stm32h723xx.h 1.8 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257
  1. /**
  2. ******************************************************************************
  3. * @file stm32h723xx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS STM32H723xx Device Peripheral Access Layer Header File.
  6. *
  7. * This file contains:
  8. * - Data structures and the address mapping for all peripherals
  9. * - Peripheral's registers declarations and bits definition
  10. * - Macros to access peripheral's registers hardware
  11. *
  12. ******************************************************************************
  13. * @attention
  14. *
  15. * Copyright (c) 2019 STMicroelectronics.
  16. * All rights reserved.
  17. *
  18. * This software is licensed under terms that can be found in the LICENSE file
  19. * in the root directory of this software component.
  20. * If no LICENSE file comes with this software, it is provided AS-IS.
  21. *
  22. ******************************************************************************
  23. */
  24. /** @addtogroup CMSIS_Device
  25. * @{
  26. */
  27. /** @addtogroup stm32h723xx
  28. * @{
  29. */
  30. #ifndef STM32H723xx_H
  31. #define STM32H723xx_H
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif /* __cplusplus */
  35. /** @addtogroup Peripheral_interrupt_number_definition
  36. * @{
  37. */
  38. /**
  39. * @brief STM32H7XX Interrupt Number Definition, according to the selected device
  40. * in @ref Library_configuration_section
  41. */
  42. typedef enum
  43. {
  44. /****** Cortex-M Processor Exceptions Numbers *****************************************************************/
  45. NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
  46. HardFault_IRQn = -13, /*!< 3 Cortex-M Hard Fault Interrupt */
  47. MemoryManagement_IRQn = -12, /*!< 4 Cortex-M Memory Management Interrupt */
  48. BusFault_IRQn = -11, /*!< 5 Cortex-M Bus Fault Interrupt */
  49. UsageFault_IRQn = -10, /*!< 6 Cortex-M Usage Fault Interrupt */
  50. SVCall_IRQn = -5, /*!< 11 Cortex-M SV Call Interrupt */
  51. DebugMonitor_IRQn = -4, /*!< 12 Cortex-M Debug Monitor Interrupt */
  52. PendSV_IRQn = -2, /*!< 14 Cortex-M Pend SV Interrupt */
  53. SysTick_IRQn = -1, /*!< 15 Cortex-M System Tick Interrupt */
  54. /****** STM32 specific Interrupt Numbers **********************************************************************/
  55. WWDG_IRQn = 0, /*!< Window WatchDog Interrupt ( wwdg1_it, wwdg2_it) */
  56. PVD_AVD_IRQn = 1, /*!< PVD/AVD through EXTI Line detection Interrupt */
  57. TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */
  58. RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */
  59. FLASH_IRQn = 4, /*!< FLASH global Interrupt */
  60. RCC_IRQn = 5, /*!< RCC global Interrupt */
  61. EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
  62. EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
  63. EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */
  64. EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
  65. EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
  66. DMA1_Stream0_IRQn = 11, /*!< DMA1 Stream 0 global Interrupt */
  67. DMA1_Stream1_IRQn = 12, /*!< DMA1 Stream 1 global Interrupt */
  68. DMA1_Stream2_IRQn = 13, /*!< DMA1 Stream 2 global Interrupt */
  69. DMA1_Stream3_IRQn = 14, /*!< DMA1 Stream 3 global Interrupt */
  70. DMA1_Stream4_IRQn = 15, /*!< DMA1 Stream 4 global Interrupt */
  71. DMA1_Stream5_IRQn = 16, /*!< DMA1 Stream 5 global Interrupt */
  72. DMA1_Stream6_IRQn = 17, /*!< DMA1 Stream 6 global Interrupt */
  73. ADC_IRQn = 18, /*!< ADC1 and ADC2 global Interrupts */
  74. FDCAN1_IT0_IRQn = 19, /*!< FDCAN1 Interrupt line 0 */
  75. FDCAN2_IT0_IRQn = 20, /*!< FDCAN2 Interrupt line 0 */
  76. FDCAN1_IT1_IRQn = 21, /*!< FDCAN1 Interrupt line 1 */
  77. FDCAN2_IT1_IRQn = 22, /*!< FDCAN2 Interrupt line 1 */
  78. EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */
  79. TIM1_BRK_IRQn = 24, /*!< TIM1 Break Interrupt */
  80. TIM1_UP_IRQn = 25, /*!< TIM1 Update Interrupt */
  81. TIM1_TRG_COM_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt */
  82. TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */
  83. TIM2_IRQn = 28, /*!< TIM2 global Interrupt */
  84. TIM3_IRQn = 29, /*!< TIM3 global Interrupt */
  85. TIM4_IRQn = 30, /*!< TIM4 global Interrupt */
  86. I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */
  87. I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */
  88. I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */
  89. I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */
  90. SPI1_IRQn = 35, /*!< SPI1 global Interrupt */
  91. SPI2_IRQn = 36, /*!< SPI2 global Interrupt */
  92. USART1_IRQn = 37, /*!< USART1 global Interrupt */
  93. USART2_IRQn = 38, /*!< USART2 global Interrupt */
  94. USART3_IRQn = 39, /*!< USART3 global Interrupt */
  95. EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */
  96. RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */
  97. TIM8_BRK_TIM12_IRQn = 43, /*!< TIM8 Break Interrupt and TIM12 global interrupt */
  98. TIM8_UP_TIM13_IRQn = 44, /*!< TIM8 Update Interrupt and TIM13 global interrupt */
  99. TIM8_TRG_COM_TIM14_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt and TIM14 global interrupt */
  100. TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare Interrupt */
  101. DMA1_Stream7_IRQn = 47, /*!< DMA1 Stream7 Interrupt */
  102. FMC_IRQn = 48, /*!< FMC global Interrupt */
  103. SDMMC1_IRQn = 49, /*!< SDMMC1 global Interrupt */
  104. TIM5_IRQn = 50, /*!< TIM5 global Interrupt */
  105. SPI3_IRQn = 51, /*!< SPI3 global Interrupt */
  106. UART4_IRQn = 52, /*!< UART4 global Interrupt */
  107. UART5_IRQn = 53, /*!< UART5 global Interrupt */
  108. TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */
  109. TIM7_IRQn = 55, /*!< TIM7 global interrupt */
  110. DMA2_Stream0_IRQn = 56, /*!< DMA2 Stream 0 global Interrupt */
  111. DMA2_Stream1_IRQn = 57, /*!< DMA2 Stream 1 global Interrupt */
  112. DMA2_Stream2_IRQn = 58, /*!< DMA2 Stream 2 global Interrupt */
  113. DMA2_Stream3_IRQn = 59, /*!< DMA2 Stream 3 global Interrupt */
  114. DMA2_Stream4_IRQn = 60, /*!< DMA2 Stream 4 global Interrupt */
  115. ETH_IRQn = 61, /*!< Ethernet global Interrupt */
  116. ETH_WKUP_IRQn = 62, /*!< Ethernet Wakeup through EXTI line Interrupt */
  117. FDCAN_CAL_IRQn = 63, /*!< FDCAN Calibration unit Interrupt */
  118. DMA2_Stream5_IRQn = 68, /*!< DMA2 Stream 5 global interrupt */
  119. DMA2_Stream6_IRQn = 69, /*!< DMA2 Stream 6 global interrupt */
  120. DMA2_Stream7_IRQn = 70, /*!< DMA2 Stream 7 global interrupt */
  121. USART6_IRQn = 71, /*!< USART6 global interrupt */
  122. I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */
  123. I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */
  124. OTG_HS_EP1_OUT_IRQn = 74, /*!< USB OTG HS End Point 1 Out global interrupt */
  125. OTG_HS_EP1_IN_IRQn = 75, /*!< USB OTG HS End Point 1 In global interrupt */
  126. OTG_HS_WKUP_IRQn = 76, /*!< USB OTG HS Wakeup through EXTI interrupt */
  127. OTG_HS_IRQn = 77, /*!< USB OTG HS global interrupt */
  128. DCMI_PSSI_IRQn = 78, /*!< DCMI and PSSI global interrupt */
  129. RNG_IRQn = 80, /*!< RNG global interrupt */
  130. FPU_IRQn = 81, /*!< FPU global interrupt */
  131. UART7_IRQn = 82, /*!< UART7 global interrupt */
  132. UART8_IRQn = 83, /*!< UART8 global interrupt */
  133. SPI4_IRQn = 84, /*!< SPI4 global Interrupt */
  134. SPI5_IRQn = 85, /*!< SPI5 global Interrupt */
  135. SPI6_IRQn = 86, /*!< SPI6 global Interrupt */
  136. SAI1_IRQn = 87, /*!< SAI1 global Interrupt */
  137. LTDC_IRQn = 88, /*!< LTDC global Interrupt */
  138. LTDC_ER_IRQn = 89, /*!< LTDC Error global Interrupt */
  139. DMA2D_IRQn = 90, /*!< DMA2D global Interrupt */
  140. OCTOSPI1_IRQn = 92, /*!< OCTOSPI1 global interrupt */
  141. LPTIM1_IRQn = 93, /*!< LP TIM1 interrupt */
  142. CEC_IRQn = 94, /*!< HDMI-CEC global Interrupt */
  143. I2C4_EV_IRQn = 95, /*!< I2C4 Event Interrupt */
  144. I2C4_ER_IRQn = 96, /*!< I2C4 Error Interrupt */
  145. SPDIF_RX_IRQn = 97, /*!< SPDIF-RX global Interrupt */
  146. DMAMUX1_OVR_IRQn = 102, /*!<DMAMUX1 Overrun interrupt */
  147. DFSDM1_FLT0_IRQn = 110, /*!<DFSDM Filter1 Interrupt */
  148. DFSDM1_FLT1_IRQn = 111, /*!<DFSDM Filter2 Interrupt */
  149. DFSDM1_FLT2_IRQn = 112, /*!<DFSDM Filter3 Interrupt */
  150. DFSDM1_FLT3_IRQn = 113, /*!<DFSDM Filter4 Interrupt */
  151. SWPMI1_IRQn = 115, /*!< Serial Wire Interface 1 global interrupt */
  152. TIM15_IRQn = 116, /*!< TIM15 global Interrupt */
  153. TIM16_IRQn = 117, /*!< TIM16 global Interrupt */
  154. TIM17_IRQn = 118, /*!< TIM17 global Interrupt */
  155. MDIOS_WKUP_IRQn = 119, /*!< MDIOS Wakeup Interrupt */
  156. MDIOS_IRQn = 120, /*!< MDIOS global Interrupt */
  157. MDMA_IRQn = 122, /*!< MDMA global Interrupt */
  158. SDMMC2_IRQn = 124, /*!< SDMMC2 global Interrupt */
  159. HSEM1_IRQn = 125, /*!< HSEM1 global Interrupt */
  160. ADC3_IRQn = 127, /*!< ADC3 global Interrupt */
  161. DMAMUX2_OVR_IRQn = 128, /*!<DMAMUX2 Overrun interrupt */
  162. BDMA_Channel0_IRQn = 129, /*!< BDMA Channel 0 global Interrupt */
  163. BDMA_Channel1_IRQn = 130, /*!< BDMA Channel 1 global Interrupt */
  164. BDMA_Channel2_IRQn = 131, /*!< BDMA Channel 2 global Interrupt */
  165. BDMA_Channel3_IRQn = 132, /*!< BDMA Channel 3 global Interrupt */
  166. BDMA_Channel4_IRQn = 133, /*!< BDMA Channel 4 global Interrupt */
  167. BDMA_Channel5_IRQn = 134, /*!< BDMA Channel 5 global Interrupt */
  168. BDMA_Channel6_IRQn = 135, /*!< BDMA Channel 6 global Interrupt */
  169. BDMA_Channel7_IRQn = 136, /*!< BDMA Channel 7 global Interrupt */
  170. COMP_IRQn = 137 , /*!< COMP global Interrupt */
  171. LPTIM2_IRQn = 138, /*!< LP TIM2 global interrupt */
  172. LPTIM3_IRQn = 139, /*!< LP TIM3 global interrupt */
  173. LPTIM4_IRQn = 140, /*!< LP TIM4 global interrupt */
  174. LPTIM5_IRQn = 141, /*!< LP TIM5 global interrupt */
  175. LPUART1_IRQn = 142, /*!< LP UART1 interrupt */
  176. CRS_IRQn = 144, /*!< Clock Recovery Global Interrupt */
  177. ECC_IRQn = 145, /*!< ECC diagnostic Global Interrupt */
  178. SAI4_IRQn = 146, /*!< SAI4 global interrupt */
  179. DTS_IRQn = 147, /*!< Digital Temperature Sensor Global Interrupt */
  180. WAKEUP_PIN_IRQn = 149, /*!< Interrupt for all 6 wake-up pins */
  181. OCTOSPI2_IRQn = 150, /*!< OctoSPI2 global interrupt */
  182. FMAC_IRQn = 153, /*!< FMAC global interrupt */
  183. CORDIC_IRQn = 154, /*!< CORDIC global interrupt */
  184. UART9_IRQn = 155, /*!< UART9 global Interrupt */
  185. USART10_IRQn = 156, /*!< USART10 global interrupt */
  186. I2C5_EV_IRQn = 157, /*!< I2C5 event interrupt */
  187. I2C5_ER_IRQn = 158, /*!< I2C5 error interrupt */
  188. FDCAN3_IT0_IRQn = 159, /*!< FDCAN3 Interrupt line 0 */
  189. FDCAN3_IT1_IRQn = 160, /*!< FDCAN3 Interrupt line 1 */
  190. TIM23_IRQn = 161, /*!< TIM23 global interrupt */
  191. TIM24_IRQn = 162, /*!< TIM24 global interrupt */
  192. } IRQn_Type;
  193. /**
  194. * @}
  195. */
  196. /** @addtogroup Configuration_section_for_CMSIS
  197. * @{
  198. */
  199. /**
  200. * @brief Configuration of the Cortex-M7 Processor and Core Peripherals
  201. */
  202. #define __CM7_REV 0x0100U /*!< Cortex-M7 revision r1p0 */
  203. #define __MPU_PRESENT 1U /*!< CM7 provides an MPU */
  204. #define __NVIC_PRIO_BITS 4U /*!< CM7 uses 4 Bits for the Priority Levels */
  205. #define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
  206. #define __FPU_PRESENT 1U /*!< FPU present */
  207. #define __ICACHE_PRESENT 1U /*!< CM7 instruction cache present */
  208. #define __DCACHE_PRESENT 1U /*!< CM7 data cache present */
  209. #include "core_cm7.h" /*!< Cortex-M7 processor and core peripherals */
  210. /**
  211. * @}
  212. */
  213. #include "system_stm32h7xx.h"
  214. #include <stdint.h>
  215. /** @addtogroup Peripheral_registers_structures
  216. * @{
  217. */
  218. /**
  219. * @brief Analog to Digital Converter
  220. */
  221. typedef struct
  222. {
  223. __IO uint32_t ISR; /*!< ADC Interrupt and Status Register, Address offset: 0x00 */
  224. __IO uint32_t IER; /*!< ADC Interrupt Enable Register, Address offset: 0x04 */
  225. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  226. __IO uint32_t CFGR; /*!< ADC Configuration register, Address offset: 0x0C */
  227. __IO uint32_t CFGR2; /*!< ADC Configuration register 2, Address offset: 0x10 */
  228. __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x14 */
  229. __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x18 */
  230. __IO uint32_t PCSEL_RES0; /*!< Reserved for ADC3, ADC1/2 pre-channel selection, Address offset: 0x1C */
  231. __IO uint32_t LTR1_TR1; /*!< ADC watchdog Lower threshold register 1, Address offset: 0x20 */
  232. __IO uint32_t HTR1_TR2; /*!< ADC watchdog higher threshold register 1, Address offset: 0x24 */
  233. __IO uint32_t RES1_TR3; /*!< Reserved for ADC1/2, ADC3 threshold register, Address offset: 0x28 */
  234. uint32_t RESERVED2; /*!< Reserved, 0x02C */
  235. __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x30 */
  236. __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x34 */
  237. __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x38 */
  238. __IO uint32_t SQR4; /*!< ADC regular sequence register 4, Address offset: 0x3C */
  239. __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x40 */
  240. uint32_t RESERVED3; /*!< Reserved, 0x044 */
  241. uint32_t RESERVED4; /*!< Reserved, 0x048 */
  242. __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x4C */
  243. uint32_t RESERVED5[4]; /*!< Reserved, 0x050 - 0x05C */
  244. __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
  245. __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
  246. __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
  247. __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
  248. uint32_t RESERVED6[4]; /*!< Reserved, 0x070 - 0x07C */
  249. __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x80 */
  250. __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x84 */
  251. __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x88 */
  252. __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x8C */
  253. uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
  254. __IO uint32_t AWD2CR; /*!< ADC Analog Watchdog 2 Configuration Register, Address offset: 0xA0 */
  255. __IO uint32_t AWD3CR; /*!< ADC Analog Watchdog 3 Configuration Register, Address offset: 0xA4 */
  256. uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
  257. uint32_t RESERVED9; /*!< Reserved, 0x0AC */
  258. __IO uint32_t LTR2_DIFSEL; /*!< ADC watchdog Lower threshold register 2, Difsel for ADC3, Address offset: 0xB0 */
  259. __IO uint32_t HTR2_CALFACT; /*!< ADC watchdog Higher threshold register 2, Calfact for ADC3, Address offset: 0xB4 */
  260. __IO uint32_t LTR3_RES10; /*!< ADC watchdog Lower threshold register 3, specific ADC1/2, Address offset: 0xB8 */
  261. __IO uint32_t HTR3_RES11; /*!< ADC watchdog Higher threshold register 3, specific ADC1/2, Address offset: 0xBC */
  262. __IO uint32_t DIFSEL_RES12; /*!< ADC Differential Mode Selection Register specific ADC1/2, Address offset: 0xC0 */
  263. __IO uint32_t CALFACT_RES13; /*!< ADC Calibration Factors specific ADC1/2, Address offset: 0xC4 */
  264. __IO uint32_t CALFACT2_RES14; /*!< ADC Linearity Calibration Factors specific ADC1/2, Address offset: 0xC8 */
  265. } ADC_TypeDef;
  266. typedef struct
  267. {
  268. __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1/3 base address + 0x300 */
  269. uint32_t RESERVED; /*!< Reserved, ADC1/3 base address + 0x304 */
  270. __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1/3 base address + 0x308 */
  271. __IO uint32_t CDR; /*!< ADC common regular data register for dual Address offset: ADC1/3 base address + 0x30C */
  272. __IO uint32_t CDR2; /*!< ADC common regular data register for 32-bit dual mode Address offset: ADC1/3 base address + 0x310 */
  273. } ADC_Common_TypeDef;
  274. /**
  275. * @brief VREFBUF
  276. */
  277. typedef struct
  278. {
  279. __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */
  280. __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */
  281. } VREFBUF_TypeDef;
  282. /**
  283. * @brief FD Controller Area Network
  284. */
  285. typedef struct
  286. {
  287. __IO uint32_t CREL; /*!< FDCAN Core Release register, Address offset: 0x000 */
  288. __IO uint32_t ENDN; /*!< FDCAN Endian register, Address offset: 0x004 */
  289. __IO uint32_t RESERVED1; /*!< Reserved, 0x008 */
  290. __IO uint32_t DBTP; /*!< FDCAN Data Bit Timing & Prescaler register, Address offset: 0x00C */
  291. __IO uint32_t TEST; /*!< FDCAN Test register, Address offset: 0x010 */
  292. __IO uint32_t RWD; /*!< FDCAN RAM Watchdog register, Address offset: 0x014 */
  293. __IO uint32_t CCCR; /*!< FDCAN CC Control register, Address offset: 0x018 */
  294. __IO uint32_t NBTP; /*!< FDCAN Nominal Bit Timing & Prescaler register, Address offset: 0x01C */
  295. __IO uint32_t TSCC; /*!< FDCAN Timestamp Counter Configuration register, Address offset: 0x020 */
  296. __IO uint32_t TSCV; /*!< FDCAN Timestamp Counter Value register, Address offset: 0x024 */
  297. __IO uint32_t TOCC; /*!< FDCAN Timeout Counter Configuration register, Address offset: 0x028 */
  298. __IO uint32_t TOCV; /*!< FDCAN Timeout Counter Value register, Address offset: 0x02C */
  299. __IO uint32_t RESERVED2[4]; /*!< Reserved, 0x030 - 0x03C */
  300. __IO uint32_t ECR; /*!< FDCAN Error Counter register, Address offset: 0x040 */
  301. __IO uint32_t PSR; /*!< FDCAN Protocol Status register, Address offset: 0x044 */
  302. __IO uint32_t TDCR; /*!< FDCAN Transmitter Delay Compensation register, Address offset: 0x048 */
  303. __IO uint32_t RESERVED3; /*!< Reserved, 0x04C */
  304. __IO uint32_t IR; /*!< FDCAN Interrupt register, Address offset: 0x050 */
  305. __IO uint32_t IE; /*!< FDCAN Interrupt Enable register, Address offset: 0x054 */
  306. __IO uint32_t ILS; /*!< FDCAN Interrupt Line Select register, Address offset: 0x058 */
  307. __IO uint32_t ILE; /*!< FDCAN Interrupt Line Enable register, Address offset: 0x05C */
  308. __IO uint32_t RESERVED4[8]; /*!< Reserved, 0x060 - 0x07C */
  309. __IO uint32_t GFC; /*!< FDCAN Global Filter Configuration register, Address offset: 0x080 */
  310. __IO uint32_t SIDFC; /*!< FDCAN Standard ID Filter Configuration register, Address offset: 0x084 */
  311. __IO uint32_t XIDFC; /*!< FDCAN Extended ID Filter Configuration register, Address offset: 0x088 */
  312. __IO uint32_t RESERVED5; /*!< Reserved, 0x08C */
  313. __IO uint32_t XIDAM; /*!< FDCAN Extended ID AND Mask register, Address offset: 0x090 */
  314. __IO uint32_t HPMS; /*!< FDCAN High Priority Message Status register, Address offset: 0x094 */
  315. __IO uint32_t NDAT1; /*!< FDCAN New Data 1 register, Address offset: 0x098 */
  316. __IO uint32_t NDAT2; /*!< FDCAN New Data 2 register, Address offset: 0x09C */
  317. __IO uint32_t RXF0C; /*!< FDCAN Rx FIFO 0 Configuration register, Address offset: 0x0A0 */
  318. __IO uint32_t RXF0S; /*!< FDCAN Rx FIFO 0 Status register, Address offset: 0x0A4 */
  319. __IO uint32_t RXF0A; /*!< FDCAN Rx FIFO 0 Acknowledge register, Address offset: 0x0A8 */
  320. __IO uint32_t RXBC; /*!< FDCAN Rx Buffer Configuration register, Address offset: 0x0AC */
  321. __IO uint32_t RXF1C; /*!< FDCAN Rx FIFO 1 Configuration register, Address offset: 0x0B0 */
  322. __IO uint32_t RXF1S; /*!< FDCAN Rx FIFO 1 Status register, Address offset: 0x0B4 */
  323. __IO uint32_t RXF1A; /*!< FDCAN Rx FIFO 1 Acknowledge register, Address offset: 0x0B8 */
  324. __IO uint32_t RXESC; /*!< FDCAN Rx Buffer/FIFO Element Size Configuration register, Address offset: 0x0BC */
  325. __IO uint32_t TXBC; /*!< FDCAN Tx Buffer Configuration register, Address offset: 0x0C0 */
  326. __IO uint32_t TXFQS; /*!< FDCAN Tx FIFO/Queue Status register, Address offset: 0x0C4 */
  327. __IO uint32_t TXESC; /*!< FDCAN Tx Buffer Element Size Configuration register, Address offset: 0x0C8 */
  328. __IO uint32_t TXBRP; /*!< FDCAN Tx Buffer Request Pending register, Address offset: 0x0CC */
  329. __IO uint32_t TXBAR; /*!< FDCAN Tx Buffer Add Request register, Address offset: 0x0D0 */
  330. __IO uint32_t TXBCR; /*!< FDCAN Tx Buffer Cancellation Request register, Address offset: 0x0D4 */
  331. __IO uint32_t TXBTO; /*!< FDCAN Tx Buffer Transmission Occurred register, Address offset: 0x0D8 */
  332. __IO uint32_t TXBCF; /*!< FDCAN Tx Buffer Cancellation Finished register, Address offset: 0x0DC */
  333. __IO uint32_t TXBTIE; /*!< FDCAN Tx Buffer Transmission Interrupt Enable register, Address offset: 0x0E0 */
  334. __IO uint32_t TXBCIE; /*!< FDCAN Tx Buffer Cancellation Finished Interrupt Enable register, Address offset: 0x0E4 */
  335. __IO uint32_t RESERVED6[2]; /*!< Reserved, 0x0E8 - 0x0EC */
  336. __IO uint32_t TXEFC; /*!< FDCAN Tx Event FIFO Configuration register, Address offset: 0x0F0 */
  337. __IO uint32_t TXEFS; /*!< FDCAN Tx Event FIFO Status register, Address offset: 0x0F4 */
  338. __IO uint32_t TXEFA; /*!< FDCAN Tx Event FIFO Acknowledge register, Address offset: 0x0F8 */
  339. __IO uint32_t RESERVED7; /*!< Reserved, 0x0FC */
  340. } FDCAN_GlobalTypeDef;
  341. /**
  342. * @brief TTFD Controller Area Network
  343. */
  344. typedef struct
  345. {
  346. __IO uint32_t TTTMC; /*!< TT Trigger Memory Configuration register, Address offset: 0x100 */
  347. __IO uint32_t TTRMC; /*!< TT Reference Message Configuration register, Address offset: 0x104 */
  348. __IO uint32_t TTOCF; /*!< TT Operation Configuration register, Address offset: 0x108 */
  349. __IO uint32_t TTMLM; /*!< TT Matrix Limits register, Address offset: 0x10C */
  350. __IO uint32_t TURCF; /*!< TUR Configuration register, Address offset: 0x110 */
  351. __IO uint32_t TTOCN; /*!< TT Operation Control register, Address offset: 0x114 */
  352. __IO uint32_t TTGTP; /*!< TT Global Time Preset register, Address offset: 0x118 */
  353. __IO uint32_t TTTMK; /*!< TT Time Mark register, Address offset: 0x11C */
  354. __IO uint32_t TTIR; /*!< TT Interrupt register, Address offset: 0x120 */
  355. __IO uint32_t TTIE; /*!< TT Interrupt Enable register, Address offset: 0x124 */
  356. __IO uint32_t TTILS; /*!< TT Interrupt Line Select register, Address offset: 0x128 */
  357. __IO uint32_t TTOST; /*!< TT Operation Status register, Address offset: 0x12C */
  358. __IO uint32_t TURNA; /*!< TT TUR Numerator Actual register, Address offset: 0x130 */
  359. __IO uint32_t TTLGT; /*!< TT Local and Global Time register, Address offset: 0x134 */
  360. __IO uint32_t TTCTC; /*!< TT Cycle Time and Count register, Address offset: 0x138 */
  361. __IO uint32_t TTCPT; /*!< TT Capture Time register, Address offset: 0x13C */
  362. __IO uint32_t TTCSM; /*!< TT Cycle Sync Mark register, Address offset: 0x140 */
  363. __IO uint32_t RESERVED1[111]; /*!< Reserved, 0x144 - 0x2FC */
  364. __IO uint32_t TTTS; /*!< TT Trigger Select register, Address offset: 0x300 */
  365. } TTCAN_TypeDef;
  366. /**
  367. * @brief FD Controller Area Network
  368. */
  369. typedef struct
  370. {
  371. __IO uint32_t CREL; /*!< Clock Calibration Unit Core Release register, Address offset: 0x00 */
  372. __IO uint32_t CCFG; /*!< Calibration Configuration register, Address offset: 0x04 */
  373. __IO uint32_t CSTAT; /*!< Calibration Status register, Address offset: 0x08 */
  374. __IO uint32_t CWD; /*!< Calibration Watchdog register, Address offset: 0x0C */
  375. __IO uint32_t IR; /*!< CCU Interrupt register, Address offset: 0x10 */
  376. __IO uint32_t IE; /*!< CCU Interrupt Enable register, Address offset: 0x14 */
  377. } FDCAN_ClockCalibrationUnit_TypeDef;
  378. /**
  379. * @brief Consumer Electronics Control
  380. */
  381. typedef struct
  382. {
  383. __IO uint32_t CR; /*!< CEC control register, Address offset:0x00 */
  384. __IO uint32_t CFGR; /*!< CEC configuration register, Address offset:0x04 */
  385. __IO uint32_t TXDR; /*!< CEC Tx data register , Address offset:0x08 */
  386. __IO uint32_t RXDR; /*!< CEC Rx Data Register, Address offset:0x0C */
  387. __IO uint32_t ISR; /*!< CEC Interrupt and Status Register, Address offset:0x10 */
  388. __IO uint32_t IER; /*!< CEC interrupt enable register, Address offset:0x14 */
  389. }CEC_TypeDef;
  390. /**
  391. * @brief COordincate Rotation DIgital Computer
  392. */
  393. typedef struct
  394. {
  395. __IO uint32_t CSR; /*!< CORDIC control and status register, Address offset: 0x00 */
  396. __IO uint32_t WDATA; /*!< CORDIC argument register, Address offset: 0x04 */
  397. __IO uint32_t RDATA; /*!< CORDIC result register, Address offset: 0x08 */
  398. } CORDIC_TypeDef;
  399. /**
  400. * @brief CRC calculation unit
  401. */
  402. typedef struct
  403. {
  404. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  405. __IO uint32_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  406. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  407. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  408. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  409. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  410. } CRC_TypeDef;
  411. /**
  412. * @brief Clock Recovery System
  413. */
  414. typedef struct
  415. {
  416. __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */
  417. __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */
  418. __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */
  419. __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */
  420. } CRS_TypeDef;
  421. /**
  422. * @brief Digital to Analog Converter
  423. */
  424. typedef struct
  425. {
  426. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  427. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  428. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  429. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  430. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  431. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  432. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  433. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  434. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  435. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  436. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  437. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  438. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  439. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  440. __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */
  441. __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */
  442. __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */
  443. __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */
  444. __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */
  445. __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */
  446. } DAC_TypeDef;
  447. /**
  448. * @brief DFSDM module registers
  449. */
  450. typedef struct
  451. {
  452. __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */
  453. __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */
  454. __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */
  455. __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */
  456. __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */
  457. __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */
  458. __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */
  459. __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */
  460. __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */
  461. __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */
  462. __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */
  463. __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */
  464. __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */
  465. __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */
  466. __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */
  467. } DFSDM_Filter_TypeDef;
  468. /**
  469. * @brief DFSDM channel configuration registers
  470. */
  471. typedef struct
  472. {
  473. __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */
  474. __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */
  475. __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and
  476. short circuit detector register, Address offset: 0x08 */
  477. __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */
  478. __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */
  479. } DFSDM_Channel_TypeDef;
  480. /**
  481. * @brief Debug MCU
  482. */
  483. typedef struct
  484. {
  485. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  486. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  487. uint32_t RESERVED4[11]; /*!< Reserved, Address offset: 0x08 */
  488. __IO uint32_t APB3FZ1; /*!< Debug MCU APB3FZ1 freeze register, Address offset: 0x34 */
  489. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x38 */
  490. __IO uint32_t APB1LFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x3C */
  491. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x40 */
  492. __IO uint32_t APB1HFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x44 */
  493. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x48 */
  494. __IO uint32_t APB2FZ1; /*!< Debug MCU APB2FZ1 freeze register, Address offset: 0x4C */
  495. uint32_t RESERVED8; /*!< Reserved, Address offset: 0x50 */
  496. __IO uint32_t APB4FZ1; /*!< Debug MCU APB4FZ1 freeze register, Address offset: 0x54 */
  497. __IO uint32_t RESERVED9[990]; /*!< Reserved, Address offset: 0x58-0xFCC */
  498. __IO uint32_t PIDR4; /*!< Debug MCU peripheral identity register 4, Address offset: 0xFD0 */
  499. __IO uint32_t RESERVED10[3];/*!< Reserved, Address offset: 0xFD4-0xFDC */
  500. __IO uint32_t PIDR0; /*!< Debug MCU peripheral identity register 0, Address offset: 0xFE0 */
  501. __IO uint32_t PIDR1; /*!< Debug MCU peripheral identity register 1, Address offset: 0xFE4 */
  502. __IO uint32_t PIDR2; /*!< Debug MCU peripheral identity register 2, Address offset: 0xFE8 */
  503. __IO uint32_t PIDR3; /*!< Debug MCU peripheral identity register 3, Address offset: 0xFEC */
  504. __IO uint32_t CIDR0; /*!< Debug MCU component identity register 0, Address offset: 0xFF0 */
  505. __IO uint32_t CIDR1; /*!< Debug MCU component identity register 1, Address offset: 0xFF4 */
  506. __IO uint32_t CIDR2; /*!< Debug MCU component identity register 2, Address offset: 0xFF8 */
  507. __IO uint32_t CIDR3; /*!< Debug MCU component identity register 3, Address offset: 0xFFC */
  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 PSSI
  528. */
  529. typedef struct
  530. {
  531. __IO uint32_t CR; /*!< PSSI control register 1, Address offset: 0x000 */
  532. __IO uint32_t SR; /*!< PSSI status register, Address offset: 0x004 */
  533. __IO uint32_t RIS; /*!< PSSI raw interrupt status register, Address offset: 0x008 */
  534. __IO uint32_t IER; /*!< PSSI interrupt enable register, Address offset: 0x00C */
  535. __IO uint32_t MIS; /*!< PSSI masked interrupt status register, Address offset: 0x010 */
  536. __IO uint32_t ICR; /*!< PSSI interrupt clear register, Address offset: 0x014 */
  537. __IO uint32_t RESERVED1[4]; /*!< Reserved, 0x018 - 0x024 */
  538. __IO uint32_t DR; /*!< PSSI data register, Address offset: 0x028 */
  539. __IO uint32_t RESERVED2[241]; /*!< Reserved, 0x02C - 0x3EC */
  540. __IO uint32_t HWCFGR; /*!< PSSI IP HW configuration register, Address offset: 0x3F0 */
  541. __IO uint32_t VERR; /*!< PSSI IP version register, Address offset: 0x3F4 */
  542. __IO uint32_t IPIDR; /*!< PSSI IP ID register, Address offset: 0x3F8 */
  543. __IO uint32_t SIDR; /*!< PSSI SIZE ID register, Address offset: 0x3FC */
  544. } PSSI_TypeDef;
  545. /**
  546. * @brief DMA Controller
  547. */
  548. typedef struct
  549. {
  550. __IO uint32_t CR; /*!< DMA stream x configuration register */
  551. __IO uint32_t NDTR; /*!< DMA stream x number of data register */
  552. __IO uint32_t PAR; /*!< DMA stream x peripheral address register */
  553. __IO uint32_t M0AR; /*!< DMA stream x memory 0 address register */
  554. __IO uint32_t M1AR; /*!< DMA stream x memory 1 address register */
  555. __IO uint32_t FCR; /*!< DMA stream x FIFO control register */
  556. } DMA_Stream_TypeDef;
  557. typedef struct
  558. {
  559. __IO uint32_t LISR; /*!< DMA low interrupt status register, Address offset: 0x00 */
  560. __IO uint32_t HISR; /*!< DMA high interrupt status register, Address offset: 0x04 */
  561. __IO uint32_t LIFCR; /*!< DMA low interrupt flag clear register, Address offset: 0x08 */
  562. __IO uint32_t HIFCR; /*!< DMA high interrupt flag clear register, Address offset: 0x0C */
  563. } DMA_TypeDef;
  564. typedef struct
  565. {
  566. __IO uint32_t CCR; /*!< DMA channel x configuration register */
  567. __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
  568. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
  569. __IO uint32_t CM0AR; /*!< DMA channel x memory 0 address register */
  570. __IO uint32_t CM1AR; /*!< DMA channel x memory 1 address register */
  571. } BDMA_Channel_TypeDef;
  572. typedef struct
  573. {
  574. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  575. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  576. } BDMA_TypeDef;
  577. typedef struct
  578. {
  579. __IO uint32_t CCR; /*!< DMA Multiplexer Channel x Control Register */
  580. }DMAMUX_Channel_TypeDef;
  581. typedef struct
  582. {
  583. __IO uint32_t CSR; /*!< DMA Channel Status Register */
  584. __IO uint32_t CFR; /*!< DMA Channel Clear Flag Register */
  585. }DMAMUX_ChannelStatus_TypeDef;
  586. typedef struct
  587. {
  588. __IO uint32_t RGCR; /*!< DMA Request Generator x Control Register */
  589. }DMAMUX_RequestGen_TypeDef;
  590. typedef struct
  591. {
  592. __IO uint32_t RGSR; /*!< DMA Request Generator Status Register */
  593. __IO uint32_t RGCFR; /*!< DMA Request Generator Clear Flag Register */
  594. }DMAMUX_RequestGenStatus_TypeDef;
  595. /**
  596. * @brief MDMA Controller
  597. */
  598. typedef struct
  599. {
  600. __IO uint32_t GISR0; /*!< MDMA Global Interrupt/Status Register 0, Address offset: 0x00 */
  601. }MDMA_TypeDef;
  602. typedef struct
  603. {
  604. __IO uint32_t CISR; /*!< MDMA channel x interrupt/status register, Address offset: 0x40 */
  605. __IO uint32_t CIFCR; /*!< MDMA channel x interrupt flag clear register, Address offset: 0x44 */
  606. __IO uint32_t CESR; /*!< MDMA Channel x error status register, Address offset: 0x48 */
  607. __IO uint32_t CCR; /*!< MDMA channel x control register, Address offset: 0x4C */
  608. __IO uint32_t CTCR; /*!< MDMA channel x Transfer Configuration register, Address offset: 0x50 */
  609. __IO uint32_t CBNDTR; /*!< MDMA Channel x block number of data register, Address offset: 0x54 */
  610. __IO uint32_t CSAR; /*!< MDMA channel x source address register, Address offset: 0x58 */
  611. __IO uint32_t CDAR; /*!< MDMA channel x destination address register, Address offset: 0x5C */
  612. __IO uint32_t CBRUR; /*!< MDMA channel x Block Repeat address Update register, Address offset: 0x60 */
  613. __IO uint32_t CLAR; /*!< MDMA channel x Link Address register, Address offset: 0x64 */
  614. __IO uint32_t CTBR; /*!< MDMA channel x Trigger and Bus selection Register, Address offset: 0x68 */
  615. uint32_t RESERVED0; /*!< Reserved, 0x6C */
  616. __IO uint32_t CMAR; /*!< MDMA channel x Mask address register, Address offset: 0x70 */
  617. __IO uint32_t CMDR; /*!< MDMA channel x Mask Data register, Address offset: 0x74 */
  618. }MDMA_Channel_TypeDef;
  619. /**
  620. * @brief DMA2D Controller
  621. */
  622. typedef struct
  623. {
  624. __IO uint32_t CR; /*!< DMA2D Control Register, Address offset: 0x00 */
  625. __IO uint32_t ISR; /*!< DMA2D Interrupt Status Register, Address offset: 0x04 */
  626. __IO uint32_t IFCR; /*!< DMA2D Interrupt Flag Clear Register, Address offset: 0x08 */
  627. __IO uint32_t FGMAR; /*!< DMA2D Foreground Memory Address Register, Address offset: 0x0C */
  628. __IO uint32_t FGOR; /*!< DMA2D Foreground Offset Register, Address offset: 0x10 */
  629. __IO uint32_t BGMAR; /*!< DMA2D Background Memory Address Register, Address offset: 0x14 */
  630. __IO uint32_t BGOR; /*!< DMA2D Background Offset Register, Address offset: 0x18 */
  631. __IO uint32_t FGPFCCR; /*!< DMA2D Foreground PFC Control Register, Address offset: 0x1C */
  632. __IO uint32_t FGCOLR; /*!< DMA2D Foreground Color Register, Address offset: 0x20 */
  633. __IO uint32_t BGPFCCR; /*!< DMA2D Background PFC Control Register, Address offset: 0x24 */
  634. __IO uint32_t BGCOLR; /*!< DMA2D Background Color Register, Address offset: 0x28 */
  635. __IO uint32_t FGCMAR; /*!< DMA2D Foreground CLUT Memory Address Register, Address offset: 0x2C */
  636. __IO uint32_t BGCMAR; /*!< DMA2D Background CLUT Memory Address Register, Address offset: 0x30 */
  637. __IO uint32_t OPFCCR; /*!< DMA2D Output PFC Control Register, Address offset: 0x34 */
  638. __IO uint32_t OCOLR; /*!< DMA2D Output Color Register, Address offset: 0x38 */
  639. __IO uint32_t OMAR; /*!< DMA2D Output Memory Address Register, Address offset: 0x3C */
  640. __IO uint32_t OOR; /*!< DMA2D Output Offset Register, Address offset: 0x40 */
  641. __IO uint32_t NLR; /*!< DMA2D Number of Line Register, Address offset: 0x44 */
  642. __IO uint32_t LWR; /*!< DMA2D Line Watermark Register, Address offset: 0x48 */
  643. __IO uint32_t AMTCR; /*!< DMA2D AHB Master Timer Configuration Register, Address offset: 0x4C */
  644. uint32_t RESERVED[236]; /*!< Reserved, 0x50-0x3FF */
  645. __IO uint32_t FGCLUT[256]; /*!< DMA2D Foreground CLUT, Address offset:400-7FF */
  646. __IO uint32_t BGCLUT[256]; /*!< DMA2D Background CLUT, Address offset:800-BFF */
  647. } DMA2D_TypeDef;
  648. /**
  649. * @brief Ethernet MAC
  650. */
  651. typedef struct
  652. {
  653. __IO uint32_t MACCR;
  654. __IO uint32_t MACECR;
  655. __IO uint32_t MACPFR;
  656. __IO uint32_t MACWTR;
  657. __IO uint32_t MACHT0R;
  658. __IO uint32_t MACHT1R;
  659. uint32_t RESERVED1[14];
  660. __IO uint32_t MACVTR;
  661. uint32_t RESERVED2;
  662. __IO uint32_t MACVHTR;
  663. uint32_t RESERVED3;
  664. __IO uint32_t MACVIR;
  665. __IO uint32_t MACIVIR;
  666. uint32_t RESERVED4[2];
  667. __IO uint32_t MACTFCR;
  668. uint32_t RESERVED5[7];
  669. __IO uint32_t MACRFCR;
  670. uint32_t RESERVED6[7];
  671. __IO uint32_t MACISR;
  672. __IO uint32_t MACIER;
  673. __IO uint32_t MACRXTXSR;
  674. uint32_t RESERVED7;
  675. __IO uint32_t MACPCSR;
  676. __IO uint32_t MACRWKPFR;
  677. uint32_t RESERVED8[2];
  678. __IO uint32_t MACLCSR;
  679. __IO uint32_t MACLTCR;
  680. __IO uint32_t MACLETR;
  681. __IO uint32_t MAC1USTCR;
  682. uint32_t RESERVED9[12];
  683. __IO uint32_t MACVR;
  684. __IO uint32_t MACDR;
  685. uint32_t RESERVED10;
  686. __IO uint32_t MACHWF0R;
  687. __IO uint32_t MACHWF1R;
  688. __IO uint32_t MACHWF2R;
  689. uint32_t RESERVED11[54];
  690. __IO uint32_t MACMDIOAR;
  691. __IO uint32_t MACMDIODR;
  692. uint32_t RESERVED12[2];
  693. __IO uint32_t MACARPAR;
  694. uint32_t RESERVED13[59];
  695. __IO uint32_t MACA0HR;
  696. __IO uint32_t MACA0LR;
  697. __IO uint32_t MACA1HR;
  698. __IO uint32_t MACA1LR;
  699. __IO uint32_t MACA2HR;
  700. __IO uint32_t MACA2LR;
  701. __IO uint32_t MACA3HR;
  702. __IO uint32_t MACA3LR;
  703. uint32_t RESERVED14[248];
  704. __IO uint32_t MMCCR;
  705. __IO uint32_t MMCRIR;
  706. __IO uint32_t MMCTIR;
  707. __IO uint32_t MMCRIMR;
  708. __IO uint32_t MMCTIMR;
  709. uint32_t RESERVED15[14];
  710. __IO uint32_t MMCTSCGPR;
  711. __IO uint32_t MMCTMCGPR;
  712. uint32_t RESERVED16[5];
  713. __IO uint32_t MMCTPCGR;
  714. uint32_t RESERVED17[10];
  715. __IO uint32_t MMCRCRCEPR;
  716. __IO uint32_t MMCRAEPR;
  717. uint32_t RESERVED18[10];
  718. __IO uint32_t MMCRUPGR;
  719. uint32_t RESERVED19[9];
  720. __IO uint32_t MMCTLPIMSTR;
  721. __IO uint32_t MMCTLPITCR;
  722. __IO uint32_t MMCRLPIMSTR;
  723. __IO uint32_t MMCRLPITCR;
  724. uint32_t RESERVED20[65];
  725. __IO uint32_t MACL3L4C0R;
  726. __IO uint32_t MACL4A0R;
  727. uint32_t RESERVED21[2];
  728. __IO uint32_t MACL3A0R0R;
  729. __IO uint32_t MACL3A1R0R;
  730. __IO uint32_t MACL3A2R0R;
  731. __IO uint32_t MACL3A3R0R;
  732. uint32_t RESERVED22[4];
  733. __IO uint32_t MACL3L4C1R;
  734. __IO uint32_t MACL4A1R;
  735. uint32_t RESERVED23[2];
  736. __IO uint32_t MACL3A0R1R;
  737. __IO uint32_t MACL3A1R1R;
  738. __IO uint32_t MACL3A2R1R;
  739. __IO uint32_t MACL3A3R1R;
  740. uint32_t RESERVED24[108];
  741. __IO uint32_t MACTSCR;
  742. __IO uint32_t MACSSIR;
  743. __IO uint32_t MACSTSR;
  744. __IO uint32_t MACSTNR;
  745. __IO uint32_t MACSTSUR;
  746. __IO uint32_t MACSTNUR;
  747. __IO uint32_t MACTSAR;
  748. uint32_t RESERVED25;
  749. __IO uint32_t MACTSSR;
  750. uint32_t RESERVED26[3];
  751. __IO uint32_t MACTTSSNR;
  752. __IO uint32_t MACTTSSSR;
  753. uint32_t RESERVED27[2];
  754. __IO uint32_t MACACR;
  755. uint32_t RESERVED28;
  756. __IO uint32_t MACATSNR;
  757. __IO uint32_t MACATSSR;
  758. __IO uint32_t MACTSIACR;
  759. __IO uint32_t MACTSEACR;
  760. __IO uint32_t MACTSICNR;
  761. __IO uint32_t MACTSECNR;
  762. uint32_t RESERVED29[4];
  763. __IO uint32_t MACPPSCR;
  764. uint32_t RESERVED30[3];
  765. __IO uint32_t MACPPSTTSR;
  766. __IO uint32_t MACPPSTTNR;
  767. __IO uint32_t MACPPSIR;
  768. __IO uint32_t MACPPSWR;
  769. uint32_t RESERVED31[12];
  770. __IO uint32_t MACPOCR;
  771. __IO uint32_t MACSPI0R;
  772. __IO uint32_t MACSPI1R;
  773. __IO uint32_t MACSPI2R;
  774. __IO uint32_t MACLMIR;
  775. uint32_t RESERVED32[11];
  776. __IO uint32_t MTLOMR;
  777. uint32_t RESERVED33[7];
  778. __IO uint32_t MTLISR;
  779. uint32_t RESERVED34[55];
  780. __IO uint32_t MTLTQOMR;
  781. __IO uint32_t MTLTQUR;
  782. __IO uint32_t MTLTQDR;
  783. uint32_t RESERVED35[8];
  784. __IO uint32_t MTLQICSR;
  785. __IO uint32_t MTLRQOMR;
  786. __IO uint32_t MTLRQMPOCR;
  787. __IO uint32_t MTLRQDR;
  788. uint32_t RESERVED36[177];
  789. __IO uint32_t DMAMR;
  790. __IO uint32_t DMASBMR;
  791. __IO uint32_t DMAISR;
  792. __IO uint32_t DMADSR;
  793. uint32_t RESERVED37[60];
  794. __IO uint32_t DMACCR;
  795. __IO uint32_t DMACTCR;
  796. __IO uint32_t DMACRCR;
  797. uint32_t RESERVED38[2];
  798. __IO uint32_t DMACTDLAR;
  799. uint32_t RESERVED39;
  800. __IO uint32_t DMACRDLAR;
  801. __IO uint32_t DMACTDTPR;
  802. uint32_t RESERVED40;
  803. __IO uint32_t DMACRDTPR;
  804. __IO uint32_t DMACTDRLR;
  805. __IO uint32_t DMACRDRLR;
  806. __IO uint32_t DMACIER;
  807. __IO uint32_t DMACRIWTR;
  808. __IO uint32_t DMACSFCSR;
  809. uint32_t RESERVED41;
  810. __IO uint32_t DMACCATDR;
  811. uint32_t RESERVED42;
  812. __IO uint32_t DMACCARDR;
  813. uint32_t RESERVED43;
  814. __IO uint32_t DMACCATBR;
  815. uint32_t RESERVED44;
  816. __IO uint32_t DMACCARBR;
  817. __IO uint32_t DMACSR;
  818. uint32_t RESERVED45[2];
  819. __IO uint32_t DMACMFCR;
  820. }ETH_TypeDef;
  821. /**
  822. * @brief External Interrupt/Event Controller
  823. */
  824. typedef struct
  825. {
  826. __IO uint32_t RTSR1; /*!< EXTI Rising trigger selection register, Address offset: 0x00 */
  827. __IO uint32_t FTSR1; /*!< EXTI Falling trigger selection register, Address offset: 0x04 */
  828. __IO uint32_t SWIER1; /*!< EXTI Software interrupt event register, Address offset: 0x08 */
  829. __IO uint32_t D3PMR1; /*!< EXTI D3 Pending mask register, (same register as to SRDPMR1) Address offset: 0x0C */
  830. __IO uint32_t D3PCR1L; /*!< EXTI D3 Pending clear selection register low, (same register as to SRDPCR1L) Address offset: 0x10 */
  831. __IO uint32_t D3PCR1H; /*!< EXTI D3 Pending clear selection register High, (same register as to SRDPCR1H) Address offset: 0x14 */
  832. uint32_t RESERVED1[2]; /*!< Reserved, 0x18 to 0x1C */
  833. __IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register, Address offset: 0x20 */
  834. __IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register, Address offset: 0x24 */
  835. __IO uint32_t SWIER2; /*!< EXTI Software interrupt event register, Address offset: 0x28 */
  836. __IO uint32_t D3PMR2; /*!< EXTI D3 Pending mask register, (same register as to SRDPMR2) Address offset: 0x2C */
  837. __IO uint32_t D3PCR2L; /*!< EXTI D3 Pending clear selection register low, (same register as to SRDPCR2L) Address offset: 0x30 */
  838. __IO uint32_t D3PCR2H; /*!< EXTI D3 Pending clear selection register High, (same register as to SRDPCR2H) Address offset: 0x34 */
  839. uint32_t RESERVED2[2]; /*!< Reserved, 0x38 to 0x3C */
  840. __IO uint32_t RTSR3; /*!< EXTI Rising trigger selection register, Address offset: 0x40 */
  841. __IO uint32_t FTSR3; /*!< EXTI Falling trigger selection register, Address offset: 0x44 */
  842. __IO uint32_t SWIER3; /*!< EXTI Software interrupt event register, Address offset: 0x48 */
  843. __IO uint32_t D3PMR3; /*!< EXTI D3 Pending mask register, (same register as to SRDPMR3) Address offset: 0x4C */
  844. __IO uint32_t D3PCR3L; /*!< EXTI D3 Pending clear selection register low, (same register as to SRDPCR3L) Address offset: 0x50 */
  845. __IO uint32_t D3PCR3H; /*!< EXTI D3 Pending clear selection register High, (same register as to SRDPCR3H) Address offset: 0x54 */
  846. uint32_t RESERVED3[10]; /*!< Reserved, 0x58 to 0x7C */
  847. __IO uint32_t IMR1; /*!< EXTI Interrupt mask register, Address offset: 0x80 */
  848. __IO uint32_t EMR1; /*!< EXTI Event mask register, Address offset: 0x84 */
  849. __IO uint32_t PR1; /*!< EXTI Pending register, Address offset: 0x88 */
  850. uint32_t RESERVED4; /*!< Reserved, 0x8C */
  851. __IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x90 */
  852. __IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x94 */
  853. __IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x98 */
  854. uint32_t RESERVED5; /*!< Reserved, 0x9C */
  855. __IO uint32_t IMR3; /*!< EXTI Interrupt mask register, Address offset: 0xA0 */
  856. __IO uint32_t EMR3; /*!< EXTI Event mask register, Address offset: 0xA4 */
  857. __IO uint32_t PR3; /*!< EXTI Pending register, Address offset: 0xA8 */
  858. }EXTI_TypeDef;
  859. /**
  860. * @brief This structure registers corresponds to EXTI_Typdef CPU1/CPU2 registers subset (IMRx, EMRx and PRx), allowing to define EXTI_D1/EXTI_D2
  861. * with rapid/common access to these IMRx, EMRx, PRx registers for CPU1 and CPU2.
  862. * Note that EXTI_D1 and EXTI_D2 bases addresses are calculated to point to CPUx first register:
  863. * IMR1 in case of EXTI_D1 that is addressing CPU1 (Cortex-M7)
  864. * C2IMR1 in case of EXTI_D2 that is addressing CPU2 (Cortex-M4)
  865. * Note: EXTI_D2 and corresponding C2IMRx, C2EMRx and C2PRx registers are available for Dual Core devices only
  866. */
  867. typedef struct
  868. {
  869. __IO uint32_t IMR1; /*!< EXTI Interrupt mask register, Address offset: 0x00 */
  870. __IO uint32_t EMR1; /*!< EXTI Event mask register, Address offset: 0x04 */
  871. __IO uint32_t PR1; /*!< EXTI Pending register, Address offset: 0x08 */
  872. uint32_t RESERVED1; /*!< Reserved, 0x0C */
  873. __IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x10 */
  874. __IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x14 */
  875. __IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x18 */
  876. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  877. __IO uint32_t IMR3; /*!< EXTI Interrupt mask register, Address offset: 0x20 */
  878. __IO uint32_t EMR3; /*!< EXTI Event mask register, Address offset: 0x24 */
  879. __IO uint32_t PR3; /*!< EXTI Pending register, Address offset: 0x28 */
  880. }EXTI_Core_TypeDef;
  881. /**
  882. * @brief FLASH Registers
  883. */
  884. typedef struct
  885. {
  886. __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
  887. __IO uint32_t KEYR1; /*!< Flash Key Register for bank1, Address offset: 0x04 */
  888. __IO uint32_t OPTKEYR; /*!< Flash Option Key Register, Address offset: 0x08 */
  889. __IO uint32_t CR1; /*!< Flash Control Register for bank1, Address offset: 0x0C */
  890. __IO uint32_t SR1; /*!< Flash Status Register for bank1, Address offset: 0x10 */
  891. __IO uint32_t CCR1; /*!< Flash Control Register for bank1, Address offset: 0x14 */
  892. __IO uint32_t OPTCR; /*!< Flash Option Control Register, Address offset: 0x18 */
  893. __IO uint32_t OPTSR_CUR; /*!< Flash Option Status Current Register, Address offset: 0x1C */
  894. __IO uint32_t OPTSR_PRG; /*!< Flash Option Status to Program Register, Address offset: 0x20 */
  895. __IO uint32_t OPTCCR; /*!< Flash Option Clear Control Register, Address offset: 0x24 */
  896. __IO uint32_t PRAR_CUR1; /*!< Flash Current Protection Address Register for bank1, Address offset: 0x28 */
  897. __IO uint32_t PRAR_PRG1; /*!< Flash Protection Address to Program Register for bank1, Address offset: 0x2C */
  898. __IO uint32_t SCAR_CUR1; /*!< Flash Current Secure Address Register for bank1, Address offset: 0x30 */
  899. __IO uint32_t SCAR_PRG1; /*!< Flash Secure Address to Program Register for bank1, Address offset: 0x34 */
  900. __IO uint32_t WPSN_CUR1; /*!< Flash Current Write Protection Register on bank1, Address offset: 0x38 */
  901. __IO uint32_t WPSN_PRG1; /*!< Flash Write Protection to Program Register on bank1, Address offset: 0x3C */
  902. __IO uint32_t BOOT_CUR; /*!< Flash Current Boot Address for Pelican Core Register, Address offset: 0x40 */
  903. __IO uint32_t BOOT_PRG; /*!< Flash Boot Address to Program for Pelican Core Register, Address offset: 0x44 */
  904. uint32_t RESERVED0[2]; /*!< Reserved, 0x48 to 0x4C */
  905. __IO uint32_t CRCCR1; /*!< Flash CRC Control register For Bank1 Register , Address offset: 0x50 */
  906. __IO uint32_t CRCSADD1; /*!< Flash CRC Start Address Register for Bank1 , Address offset: 0x54 */
  907. __IO uint32_t CRCEADD1; /*!< Flash CRC End Address Register for Bank1 , Address offset: 0x58 */
  908. __IO uint32_t CRCDATA; /*!< Flash CRC Data Register for Bank1 , Address offset: 0x5C */
  909. __IO uint32_t ECC_FA1; /*!< Flash ECC Fail Address For Bank1 Register , Address offset: 0x60 */
  910. uint32_t RESERVED[3]; /*!< Reserved, 0x64 to 0x6C */
  911. __IO uint32_t OPTSR2_CUR; /*!< Flash Option Status Current Register 2, Address offset: 0x70 */
  912. __IO uint32_t OPTSR2_PRG; /*!< Flash Option Status to Program Register 2, Address offset: 0x74 */
  913. } FLASH_TypeDef;
  914. /**
  915. * @brief Filter and Mathematical ACcelerator
  916. */
  917. typedef struct
  918. {
  919. __IO uint32_t X1BUFCFG; /*!< FMAC X1 Buffer Configuration register, Address offset: 0x00 */
  920. __IO uint32_t X2BUFCFG; /*!< FMAC X2 Buffer Configuration register, Address offset: 0x04 */
  921. __IO uint32_t YBUFCFG; /*!< FMAC Y Buffer Configuration register, Address offset: 0x08 */
  922. __IO uint32_t PARAM; /*!< FMAC Parameter register, Address offset: 0x0C */
  923. __IO uint32_t CR; /*!< FMAC Control register, Address offset: 0x10 */
  924. __IO uint32_t SR; /*!< FMAC Status register, Address offset: 0x14 */
  925. __IO uint32_t WDATA; /*!< FMAC Write Data register, Address offset: 0x18 */
  926. __IO uint32_t RDATA; /*!< FMAC Read Data register, Address offset: 0x1C */
  927. } FMAC_TypeDef;
  928. /**
  929. * @brief Flexible Memory Controller
  930. */
  931. typedef struct
  932. {
  933. __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
  934. } FMC_Bank1_TypeDef;
  935. /**
  936. * @brief Flexible Memory Controller Bank1E
  937. */
  938. typedef struct
  939. {
  940. __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
  941. } FMC_Bank1E_TypeDef;
  942. /**
  943. * @brief Flexible Memory Controller Bank2
  944. */
  945. typedef struct
  946. {
  947. __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */
  948. __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */
  949. __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */
  950. __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */
  951. uint32_t RESERVED0; /*!< Reserved, 0x70 */
  952. __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */
  953. } FMC_Bank2_TypeDef;
  954. /**
  955. * @brief Flexible Memory Controller Bank3
  956. */
  957. typedef struct
  958. {
  959. __IO uint32_t PCR; /*!< NAND Flash control register 3, Address offset: 0x80 */
  960. __IO uint32_t SR; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */
  961. __IO uint32_t PMEM; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */
  962. __IO uint32_t PATT; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */
  963. uint32_t RESERVED; /*!< Reserved, 0x90 */
  964. __IO uint32_t ECCR; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */
  965. } FMC_Bank3_TypeDef;
  966. /**
  967. * @brief Flexible Memory Controller Bank5 and 6
  968. */
  969. typedef struct
  970. {
  971. __IO uint32_t SDCR[2]; /*!< SDRAM Control registers , Address offset: 0x140-0x144 */
  972. __IO uint32_t SDTR[2]; /*!< SDRAM Timing registers , Address offset: 0x148-0x14C */
  973. __IO uint32_t SDCMR; /*!< SDRAM Command Mode register, Address offset: 0x150 */
  974. __IO uint32_t SDRTR; /*!< SDRAM Refresh Timer register, Address offset: 0x154 */
  975. __IO uint32_t SDSR; /*!< SDRAM Status register, Address offset: 0x158 */
  976. } FMC_Bank5_6_TypeDef;
  977. /**
  978. * @brief General Purpose I/O
  979. */
  980. typedef struct
  981. {
  982. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  983. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  984. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  985. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  986. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  987. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  988. __IO uint32_t BSRR; /*!< GPIO port bit set/reset, Address offset: 0x18 */
  989. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  990. __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
  991. } GPIO_TypeDef;
  992. /**
  993. * @brief Operational Amplifier (OPAMP)
  994. */
  995. typedef struct
  996. {
  997. __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */
  998. __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */
  999. __IO uint32_t HSOTR; /*!< OPAMP offset trimming register for high speed mode, Address offset: 0x08 */
  1000. } OPAMP_TypeDef;
  1001. /**
  1002. * @brief System configuration controller
  1003. */
  1004. typedef struct
  1005. {
  1006. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x00 */
  1007. __IO uint32_t PMCR; /*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 */
  1008. __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */
  1009. __IO uint32_t CFGR; /*!< SYSCFG configuration registers, Address offset: 0x18 */
  1010. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
  1011. __IO uint32_t CCCSR; /*!< SYSCFG compensation cell control/status register, Address offset: 0x20 */
  1012. __IO uint32_t CCVR; /*!< SYSCFG compensation cell value register, Address offset: 0x24 */
  1013. __IO uint32_t CCCR; /*!< SYSCFG compensation cell code register, Address offset: 0x28 */
  1014. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x2C */
  1015. __IO uint32_t ADC2ALT; /*!< ADC2 internal input alternate connection register, Address offset: 0x30 */
  1016. uint32_t RESERVED4[60]; /*!< Reserved, 0x34-0x120 */
  1017. __IO uint32_t PKGR; /*!< SYSCFG package register, Address offset: 0x124 */
  1018. uint32_t RESERVED5[118]; /*!< Reserved, 0x128-0x2FC */
  1019. __IO uint32_t UR0; /*!< SYSCFG user register 0, Address offset: 0x300 */
  1020. __IO uint32_t UR1; /*!< SYSCFG user register 1, Address offset: 0x304 */
  1021. __IO uint32_t UR2; /*!< SYSCFG user register 2, Address offset: 0x308 */
  1022. __IO uint32_t UR3; /*!< SYSCFG user register 3, Address offset: 0x30C */
  1023. __IO uint32_t UR4; /*!< SYSCFG user register 4, Address offset: 0x310 */
  1024. __IO uint32_t UR5; /*!< SYSCFG user register 5, Address offset: 0x314 */
  1025. __IO uint32_t UR6; /*!< SYSCFG user register 6, Address offset: 0x318 */
  1026. __IO uint32_t UR7; /*!< SYSCFG user register 7, Address offset: 0x31C */
  1027. uint32_t RESERVED6[3]; /*!< Reserved, Address offset: 0x320-0x328 */
  1028. __IO uint32_t UR11; /*!< SYSCFG user register 11, Address offset: 0x32C */
  1029. __IO uint32_t UR12; /*!< SYSCFG user register 12, Address offset: 0x330 */
  1030. __IO uint32_t UR13; /*!< SYSCFG user register 13, Address offset: 0x334 */
  1031. __IO uint32_t UR14; /*!< SYSCFG user register 14, Address offset: 0x338 */
  1032. __IO uint32_t UR15; /*!< SYSCFG user register 15, Address offset: 0x33C */
  1033. __IO uint32_t UR16; /*!< SYSCFG user register 16, Address offset: 0x340 */
  1034. __IO uint32_t UR17; /*!< SYSCFG user register 17, Address offset: 0x344 */
  1035. __IO uint32_t UR18; /*!< SYSCFG user register 18, Address offset: 0x348 */
  1036. } SYSCFG_TypeDef;
  1037. /**
  1038. * @brief Inter-integrated Circuit Interface
  1039. */
  1040. typedef struct
  1041. {
  1042. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  1043. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  1044. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  1045. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  1046. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  1047. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  1048. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  1049. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  1050. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  1051. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  1052. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  1053. } I2C_TypeDef;
  1054. /**
  1055. * @brief Independent WATCHDOG
  1056. */
  1057. typedef struct
  1058. {
  1059. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  1060. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  1061. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  1062. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  1063. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  1064. } IWDG_TypeDef;
  1065. /**
  1066. * @brief LCD-TFT Display Controller
  1067. */
  1068. typedef struct
  1069. {
  1070. uint32_t RESERVED0[2]; /*!< Reserved, 0x00-0x04 */
  1071. __IO uint32_t SSCR; /*!< LTDC Synchronization Size Configuration Register, Address offset: 0x08 */
  1072. __IO uint32_t BPCR; /*!< LTDC Back Porch Configuration Register, Address offset: 0x0C */
  1073. __IO uint32_t AWCR; /*!< LTDC Active Width Configuration Register, Address offset: 0x10 */
  1074. __IO uint32_t TWCR; /*!< LTDC Total Width Configuration Register, Address offset: 0x14 */
  1075. __IO uint32_t GCR; /*!< LTDC Global Control Register, Address offset: 0x18 */
  1076. uint32_t RESERVED1[2]; /*!< Reserved, 0x1C-0x20 */
  1077. __IO uint32_t SRCR; /*!< LTDC Shadow Reload Configuration Register, Address offset: 0x24 */
  1078. uint32_t RESERVED2[1]; /*!< Reserved, 0x28 */
  1079. __IO uint32_t BCCR; /*!< LTDC Background Color Configuration Register, Address offset: 0x2C */
  1080. uint32_t RESERVED3[1]; /*!< Reserved, 0x30 */
  1081. __IO uint32_t IER; /*!< LTDC Interrupt Enable Register, Address offset: 0x34 */
  1082. __IO uint32_t ISR; /*!< LTDC Interrupt Status Register, Address offset: 0x38 */
  1083. __IO uint32_t ICR; /*!< LTDC Interrupt Clear Register, Address offset: 0x3C */
  1084. __IO uint32_t LIPCR; /*!< LTDC Line Interrupt Position Configuration Register, Address offset: 0x40 */
  1085. __IO uint32_t CPSR; /*!< LTDC Current Position Status Register, Address offset: 0x44 */
  1086. __IO uint32_t CDSR; /*!< LTDC Current Display Status Register, Address offset: 0x48 */
  1087. } LTDC_TypeDef;
  1088. /**
  1089. * @brief LCD-TFT Display layer x Controller
  1090. */
  1091. typedef struct
  1092. {
  1093. __IO uint32_t CR; /*!< LTDC Layerx Control Register Address offset: 0x84 */
  1094. __IO uint32_t WHPCR; /*!< LTDC Layerx Window Horizontal Position Configuration Register Address offset: 0x88 */
  1095. __IO uint32_t WVPCR; /*!< LTDC Layerx Window Vertical Position Configuration Register Address offset: 0x8C */
  1096. __IO uint32_t CKCR; /*!< LTDC Layerx Color Keying Configuration Register Address offset: 0x90 */
  1097. __IO uint32_t PFCR; /*!< LTDC Layerx Pixel Format Configuration Register Address offset: 0x94 */
  1098. __IO uint32_t CACR; /*!< LTDC Layerx Constant Alpha Configuration Register Address offset: 0x98 */
  1099. __IO uint32_t DCCR; /*!< LTDC Layerx Default Color Configuration Register Address offset: 0x9C */
  1100. __IO uint32_t BFCR; /*!< LTDC Layerx Blending Factors Configuration Register Address offset: 0xA0 */
  1101. uint32_t RESERVED0[2]; /*!< Reserved */
  1102. __IO uint32_t CFBAR; /*!< LTDC Layerx Color Frame Buffer Address Register Address offset: 0xAC */
  1103. __IO uint32_t CFBLR; /*!< LTDC Layerx Color Frame Buffer Length Register Address offset: 0xB0 */
  1104. __IO uint32_t CFBLNR; /*!< LTDC Layerx ColorFrame Buffer Line Number Register Address offset: 0xB4 */
  1105. uint32_t RESERVED1[3]; /*!< Reserved */
  1106. __IO uint32_t CLUTWR; /*!< LTDC Layerx CLUT Write Register Address offset: 0x144 */
  1107. } LTDC_Layer_TypeDef;
  1108. /**
  1109. * @brief Power Control
  1110. */
  1111. typedef struct
  1112. {
  1113. __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */
  1114. __IO uint32_t CSR1; /*!< PWR power control status register 1, Address offset: 0x04 */
  1115. __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x08 */
  1116. __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x0C */
  1117. __IO uint32_t CPUCR; /*!< PWR CPU control register, Address offset: 0x10 */
  1118. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x14 */
  1119. __IO uint32_t D3CR; /*!< PWR D3 domain control register, Address offset: 0x18 */
  1120. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x1C */
  1121. __IO uint32_t WKUPCR; /*!< PWR wakeup clear register, Address offset: 0x20 */
  1122. __IO uint32_t WKUPFR; /*!< PWR wakeup flag register, Address offset: 0x24 */
  1123. __IO uint32_t WKUPEPR; /*!< PWR wakeup enable and polarity register, Address offset: 0x28 */
  1124. } PWR_TypeDef;
  1125. /**
  1126. * @brief Reset and Clock Control
  1127. */
  1128. typedef struct
  1129. {
  1130. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  1131. __IO uint32_t HSICFGR; /*!< HSI Clock Calibration Register, Address offset: 0x04 */
  1132. __IO uint32_t CRRCR; /*!< Clock Recovery RC Register, Address offset: 0x08 */
  1133. __IO uint32_t CSICFGR; /*!< CSI Clock Calibration Register, Address offset: 0x0C */
  1134. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x10 */
  1135. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  1136. __IO uint32_t D1CFGR; /*!< RCC Domain 1 configuration register, Address offset: 0x18 */
  1137. __IO uint32_t D2CFGR; /*!< RCC Domain 2 configuration register, Address offset: 0x1C */
  1138. __IO uint32_t D3CFGR; /*!< RCC Domain 3 configuration register, Address offset: 0x20 */
  1139. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x24 */
  1140. __IO uint32_t PLLCKSELR; /*!< RCC PLLs Clock Source Selection Register, Address offset: 0x28 */
  1141. __IO uint32_t PLLCFGR; /*!< RCC PLLs Configuration Register, Address offset: 0x2C */
  1142. __IO uint32_t PLL1DIVR; /*!< RCC PLL1 Dividers Configuration Register, Address offset: 0x30 */
  1143. __IO uint32_t PLL1FRACR; /*!< RCC PLL1 Fractional Divider Configuration Register, Address offset: 0x34 */
  1144. __IO uint32_t PLL2DIVR; /*!< RCC PLL2 Dividers Configuration Register, Address offset: 0x38 */
  1145. __IO uint32_t PLL2FRACR; /*!< RCC PLL2 Fractional Divider Configuration Register, Address offset: 0x3C */
  1146. __IO uint32_t PLL3DIVR; /*!< RCC PLL3 Dividers Configuration Register, Address offset: 0x40 */
  1147. __IO uint32_t PLL3FRACR; /*!< RCC PLL3 Fractional Divider Configuration Register, Address offset: 0x44 */
  1148. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x48 */
  1149. __IO uint32_t D1CCIPR; /*!< RCC Domain 1 Kernel Clock Configuration Register Address offset: 0x4C */
  1150. __IO uint32_t D2CCIP1R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x50 */
  1151. __IO uint32_t D2CCIP2R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x54 */
  1152. __IO uint32_t D3CCIPR; /*!< RCC Domain 3 Kernel Clock Configuration Register Address offset: 0x58 */
  1153. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x5C */
  1154. __IO uint32_t CIER; /*!< RCC Clock Source Interrupt Enable Register Address offset: 0x60 */
  1155. __IO uint32_t CIFR; /*!< RCC Clock Source Interrupt Flag Register Address offset: 0x64 */
  1156. __IO uint32_t CICR; /*!< RCC Clock Source Interrupt Clear Register Address offset: 0x68 */
  1157. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x6C */
  1158. __IO uint32_t BDCR; /*!< RCC Vswitch Backup Domain Control Register, Address offset: 0x70 */
  1159. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x74 */
  1160. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x78 */
  1161. __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x7C */
  1162. __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x80 */
  1163. __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x84 */
  1164. __IO uint32_t AHB4RSTR; /*!< RCC AHB4 peripheral reset register, Address offset: 0x88 */
  1165. __IO uint32_t APB3RSTR; /*!< RCC APB3 peripheral reset register, Address offset: 0x8C */
  1166. __IO uint32_t APB1LRSTR; /*!< RCC APB1 peripheral reset Low Word register, Address offset: 0x90 */
  1167. __IO uint32_t APB1HRSTR; /*!< RCC APB1 peripheral reset High Word register, Address offset: 0x94 */
  1168. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x98 */
  1169. __IO uint32_t APB4RSTR; /*!< RCC APB4 peripheral reset register, Address offset: 0x9C */
  1170. __IO uint32_t GCR; /*!< RCC RCC Global Control Register, Address offset: 0xA0 */
  1171. uint32_t RESERVED8; /*!< Reserved, Address offset: 0xA4 */
  1172. __IO uint32_t D3AMR; /*!< RCC Domain 3 Autonomous Mode Register, Address offset: 0xA8 */
  1173. uint32_t RESERVED11[9]; /*!< Reserved, 0xAC-0xCC Address offset: 0xAC */
  1174. __IO uint32_t RSR; /*!< RCC Reset status register, Address offset: 0xD0 */
  1175. __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clock register, Address offset: 0xD4 */
  1176. __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clock register, Address offset: 0xD8 */
  1177. __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clock register, Address offset: 0xDC */
  1178. __IO uint32_t AHB4ENR; /*!< RCC AHB4 peripheral clock register, Address offset: 0xE0 */
  1179. __IO uint32_t APB3ENR; /*!< RCC APB3 peripheral clock register, Address offset: 0xE4 */
  1180. __IO uint32_t APB1LENR; /*!< RCC APB1 peripheral clock Low Word register, Address offset: 0xE8 */
  1181. __IO uint32_t APB1HENR; /*!< RCC APB1 peripheral clock High Word register, Address offset: 0xEC */
  1182. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock register, Address offset: 0xF0 */
  1183. __IO uint32_t APB4ENR; /*!< RCC APB4 peripheral clock register, Address offset: 0xF4 */
  1184. uint32_t RESERVED12; /*!< Reserved, Address offset: 0xF8 */
  1185. __IO uint32_t AHB3LPENR; /*!< RCC AHB3 peripheral sleep clock register, Address offset: 0xFC */
  1186. __IO uint32_t AHB1LPENR; /*!< RCC AHB1 peripheral sleep clock register, Address offset: 0x100 */
  1187. __IO uint32_t AHB2LPENR; /*!< RCC AHB2 peripheral sleep clock register, Address offset: 0x104 */
  1188. __IO uint32_t AHB4LPENR; /*!< RCC AHB4 peripheral sleep clock register, Address offset: 0x108 */
  1189. __IO uint32_t APB3LPENR; /*!< RCC APB3 peripheral sleep clock register, Address offset: 0x10C */
  1190. __IO uint32_t APB1LLPENR; /*!< RCC APB1 peripheral sleep clock Low Word register, Address offset: 0x110 */
  1191. __IO uint32_t APB1HLPENR; /*!< RCC APB1 peripheral sleep clock High Word register, Address offset: 0x114 */
  1192. __IO uint32_t APB2LPENR; /*!< RCC APB2 peripheral sleep clock register, Address offset: 0x118 */
  1193. __IO uint32_t APB4LPENR; /*!< RCC APB4 peripheral sleep clock register, Address offset: 0x11C */
  1194. uint32_t RESERVED13[4]; /*!< Reserved, 0x120-0x12C Address offset: 0x120 */
  1195. } RCC_TypeDef;
  1196. /**
  1197. * @brief Real-Time Clock
  1198. */
  1199. typedef struct
  1200. {
  1201. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  1202. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  1203. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
  1204. __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
  1205. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  1206. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  1207. uint32_t RESERVED; /*!< Reserved, Address offset: 0x18 */
  1208. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
  1209. __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */
  1210. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  1211. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
  1212. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  1213. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  1214. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  1215. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  1216. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  1217. __IO uint32_t TAMPCR; /*!< RTC tamper configuration register, Address offset: 0x40 */
  1218. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  1219. __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */
  1220. __IO uint32_t OR; /*!< RTC option register, Address offset: 0x4C */
  1221. __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  1222. __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  1223. __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  1224. __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  1225. __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  1226. __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */
  1227. __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */
  1228. __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */
  1229. __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */
  1230. __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */
  1231. __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */
  1232. __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */
  1233. __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */
  1234. __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */
  1235. __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */
  1236. __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */
  1237. __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */
  1238. __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */
  1239. __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */
  1240. __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */
  1241. __IO uint32_t BKP20R; /*!< RTC backup register 20, Address offset: 0xA0 */
  1242. __IO uint32_t BKP21R; /*!< RTC backup register 21, Address offset: 0xA4 */
  1243. __IO uint32_t BKP22R; /*!< RTC backup register 22, Address offset: 0xA8 */
  1244. __IO uint32_t BKP23R; /*!< RTC backup register 23, Address offset: 0xAC */
  1245. __IO uint32_t BKP24R; /*!< RTC backup register 24, Address offset: 0xB0 */
  1246. __IO uint32_t BKP25R; /*!< RTC backup register 25, Address offset: 0xB4 */
  1247. __IO uint32_t BKP26R; /*!< RTC backup register 26, Address offset: 0xB8 */
  1248. __IO uint32_t BKP27R; /*!< RTC backup register 27, Address offset: 0xBC */
  1249. __IO uint32_t BKP28R; /*!< RTC backup register 28, Address offset: 0xC0 */
  1250. __IO uint32_t BKP29R; /*!< RTC backup register 29, Address offset: 0xC4 */
  1251. __IO uint32_t BKP30R; /*!< RTC backup register 30, Address offset: 0xC8 */
  1252. __IO uint32_t BKP31R; /*!< RTC backup register 31, Address offset: 0xCC */
  1253. } RTC_TypeDef;
  1254. /**
  1255. * @brief Serial Audio Interface
  1256. */
  1257. typedef struct
  1258. {
  1259. __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */
  1260. uint32_t RESERVED0[16]; /*!< Reserved, 0x04 - 0x43 */
  1261. __IO uint32_t PDMCR; /*!< SAI PDM control register, Address offset: 0x44 */
  1262. __IO uint32_t PDMDLY; /*!< SAI PDM delay register, Address offset: 0x48 */
  1263. } SAI_TypeDef;
  1264. typedef struct
  1265. {
  1266. __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */
  1267. __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */
  1268. __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */
  1269. __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */
  1270. __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */
  1271. __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */
  1272. __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */
  1273. __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */
  1274. } SAI_Block_TypeDef;
  1275. /**
  1276. * @brief SPDIF-RX Interface
  1277. */
  1278. typedef struct
  1279. {
  1280. __IO uint32_t CR; /*!< Control register, Address offset: 0x00 */
  1281. __IO uint32_t IMR; /*!< Interrupt mask register, Address offset: 0x04 */
  1282. __IO uint32_t SR; /*!< Status register, Address offset: 0x08 */
  1283. __IO uint32_t IFCR; /*!< Interrupt Flag Clear register, Address offset: 0x0C */
  1284. __IO uint32_t DR; /*!< Data input register, Address offset: 0x10 */
  1285. __IO uint32_t CSR; /*!< Channel Status register, Address offset: 0x14 */
  1286. __IO uint32_t DIR; /*!< Debug Information register, Address offset: 0x18 */
  1287. uint32_t RESERVED2; /*!< Reserved, 0x1A */
  1288. } SPDIFRX_TypeDef;
  1289. /**
  1290. * @brief Secure digital input/output Interface
  1291. */
  1292. typedef struct
  1293. {
  1294. __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */
  1295. __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */
  1296. __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */
  1297. __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */
  1298. __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */
  1299. __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */
  1300. __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */
  1301. __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */
  1302. __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */
  1303. __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */
  1304. __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */
  1305. __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */
  1306. __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */
  1307. __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */
  1308. __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */
  1309. __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */
  1310. __IO uint32_t ACKTIME; /*!< SDMMC Acknowledgement timer register, Address offset: 0x40 */
  1311. uint32_t RESERVED0[3]; /*!< Reserved, 0x44 - 0x4C - 0x4C */
  1312. __IO uint32_t IDMACTRL; /*!< SDMMC DMA control register, Address offset: 0x50 */
  1313. __IO uint32_t IDMABSIZE; /*!< SDMMC DMA buffer size register, Address offset: 0x54 */
  1314. __IO uint32_t IDMABASE0; /*!< SDMMC DMA buffer 0 base address register, Address offset: 0x58 */
  1315. __IO uint32_t IDMABASE1; /*!< SDMMC DMA buffer 1 base address register, Address offset: 0x5C */
  1316. uint32_t RESERVED1[8]; /*!< Reserved, 0x60-0x7C */
  1317. __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */
  1318. uint32_t RESERVED2[222]; /*!< Reserved, 0x84-0x3F8 */
  1319. __IO uint32_t IPVR; /*!< SDMMC data FIFO register, Address offset: 0x3FC */
  1320. } SDMMC_TypeDef;
  1321. /**
  1322. * @brief Delay Block DLYB
  1323. */
  1324. typedef struct
  1325. {
  1326. __IO uint32_t CR; /*!< DELAY BLOCK control register, Address offset: 0x00 */
  1327. __IO uint32_t CFGR; /*!< DELAY BLOCK configuration register, Address offset: 0x04 */
  1328. } DLYB_TypeDef;
  1329. /**
  1330. * @brief HW Semaphore HSEM
  1331. */
  1332. typedef struct
  1333. {
  1334. __IO uint32_t R[32]; /*!< 2-step write lock and read back registers, Address offset: 00h-7Ch */
  1335. __IO uint32_t RLR[32]; /*!< 1-step read lock registers, Address offset: 80h-FCh */
  1336. __IO uint32_t C1IER; /*!< HSEM Interrupt enable register , Address offset: 100h */
  1337. __IO uint32_t C1ICR; /*!< HSEM Interrupt clear register , Address offset: 104h */
  1338. __IO uint32_t C1ISR; /*!< HSEM Interrupt Status register , Address offset: 108h */
  1339. __IO uint32_t C1MISR; /*!< HSEM Interrupt Masked Status register , Address offset: 10Ch */
  1340. uint32_t Reserved[12]; /* Reserved Address offset: 110h-13Ch */
  1341. __IO uint32_t CR; /*!< HSEM Semaphore clear register , Address offset: 140h */
  1342. __IO uint32_t KEYR; /*!< HSEM Semaphore clear key register , Address offset: 144h */
  1343. } HSEM_TypeDef;
  1344. typedef struct
  1345. {
  1346. __IO uint32_t IER; /*!< HSEM interrupt enable register , Address offset: 0h */
  1347. __IO uint32_t ICR; /*!< HSEM interrupt clear register , Address offset: 4h */
  1348. __IO uint32_t ISR; /*!< HSEM interrupt status register , Address offset: 8h */
  1349. __IO uint32_t MISR; /*!< HSEM masked interrupt status register , Address offset: Ch */
  1350. } HSEM_Common_TypeDef;
  1351. /**
  1352. * @brief Serial Peripheral Interface
  1353. */
  1354. typedef struct
  1355. {
  1356. __IO uint32_t CR1; /*!< SPI/I2S Control register 1, Address offset: 0x00 */
  1357. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  1358. __IO uint32_t CFG1; /*!< SPI Configuration register 1, Address offset: 0x08 */
  1359. __IO uint32_t CFG2; /*!< SPI Configuration register 2, Address offset: 0x0C */
  1360. __IO uint32_t IER; /*!< SPI/I2S Interrupt Enable register, Address offset: 0x10 */
  1361. __IO uint32_t SR; /*!< SPI/I2S Status register, Address offset: 0x14 */
  1362. __IO uint32_t IFCR; /*!< SPI/I2S Interrupt/Status flags clear register, Address offset: 0x18 */
  1363. uint32_t RESERVED0; /*!< Reserved, 0x1C */
  1364. __IO uint32_t TXDR; /*!< SPI/I2S Transmit data register, Address offset: 0x20 */
  1365. uint32_t RESERVED1[3]; /*!< Reserved, 0x24-0x2C */
  1366. __IO uint32_t RXDR; /*!< SPI/I2S Receive data register, Address offset: 0x30 */
  1367. uint32_t RESERVED2[3]; /*!< Reserved, 0x34-0x3C */
  1368. __IO uint32_t CRCPOLY; /*!< SPI CRC Polynomial register, Address offset: 0x40 */
  1369. __IO uint32_t TXCRC; /*!< SPI Transmitter CRC register, Address offset: 0x44 */
  1370. __IO uint32_t RXCRC; /*!< SPI Receiver CRC register, Address offset: 0x48 */
  1371. __IO uint32_t UDRDR; /*!< SPI Underrun data register, Address offset: 0x4C */
  1372. __IO uint32_t I2SCFGR; /*!< I2S Configuration register, Address offset: 0x50 */
  1373. } SPI_TypeDef;
  1374. /**
  1375. * @brief DTS
  1376. */
  1377. typedef struct
  1378. {
  1379. __IO uint32_t CFGR1; /*!< DTS configuration register, Address offset: 0x00 */
  1380. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x04 */
  1381. __IO uint32_t T0VALR1; /*!< DTS T0 Value register, Address offset: 0x08 */
  1382. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x0C */
  1383. __IO uint32_t RAMPVALR; /*!< DTS Ramp value register, Address offset: 0x10 */
  1384. __IO uint32_t ITR1; /*!< DTS Interrupt threshold register, Address offset: 0x14 */
  1385. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x18 */
  1386. __IO uint32_t DR; /*!< DTS data register, Address offset: 0x1C */
  1387. __IO uint32_t SR; /*!< DTS status register Address offset: 0x20 */
  1388. __IO uint32_t ITENR; /*!< DTS Interrupt enable register, Address offset: 0x24 */
  1389. __IO uint32_t ICIFR; /*!< DTS Clear Interrupt flag register, Address offset: 0x28 */
  1390. __IO uint32_t OR; /*!< DTS option register 1, Address offset: 0x2C */
  1391. }
  1392. DTS_TypeDef;
  1393. /**
  1394. * @brief TIM
  1395. */
  1396. typedef struct
  1397. {
  1398. __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  1399. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  1400. __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
  1401. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  1402. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  1403. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  1404. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  1405. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  1406. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  1407. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  1408. __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */
  1409. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  1410. __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  1411. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  1412. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  1413. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  1414. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  1415. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  1416. __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  1417. __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
  1418. uint32_t RESERVED1; /*!< Reserved, 0x50 */
  1419. __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
  1420. __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
  1421. __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */
  1422. __IO uint32_t AF1; /*!< TIM alternate function option register 1, Address offset: 0x60 */
  1423. __IO uint32_t AF2; /*!< TIM alternate function option register 2, Address offset: 0x64 */
  1424. __IO uint32_t TISEL; /*!< TIM Input Selection register, Address offset: 0x68 */
  1425. } TIM_TypeDef;
  1426. /**
  1427. * @brief LPTIMIMER
  1428. */
  1429. typedef struct
  1430. {
  1431. __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */
  1432. __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */
  1433. __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */
  1434. __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */
  1435. __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */
  1436. __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */
  1437. __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */
  1438. __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */
  1439. uint32_t RESERVED1; /*!< Reserved, 0x20 */
  1440. __IO uint32_t CFGR2; /*!< LPTIM Configuration register, Address offset: 0x24 */
  1441. } LPTIM_TypeDef;
  1442. /**
  1443. * @brief Comparator
  1444. */
  1445. typedef struct
  1446. {
  1447. __IO uint32_t SR; /*!< Comparator status register, Address offset: 0x00 */
  1448. __IO uint32_t ICFR; /*!< Comparator interrupt clear flag register, Address offset: 0x04 */
  1449. __IO uint32_t OR; /*!< Comparator option register, Address offset: 0x08 */
  1450. } COMPOPT_TypeDef;
  1451. typedef struct
  1452. {
  1453. __IO uint32_t CFGR; /*!< Comparator configuration register , Address offset: 0x00 */
  1454. } COMP_TypeDef;
  1455. typedef struct
  1456. {
  1457. __IO uint32_t CFGR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  1458. } COMP_Common_TypeDef;
  1459. /**
  1460. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  1461. */
  1462. typedef struct
  1463. {
  1464. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  1465. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  1466. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  1467. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  1468. __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  1469. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  1470. __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
  1471. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  1472. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  1473. __IO uint32_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  1474. __IO uint32_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  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 RAM_ECC_Specific_Registers
  1504. */
  1505. typedef struct
  1506. {
  1507. __IO uint32_t CR; /*!< RAMECC monitor configuration register */
  1508. __IO uint32_t SR; /*!< RAMECC monitor status register */
  1509. __IO uint32_t FAR; /*!< RAMECC monitor failing address register */
  1510. __IO uint32_t FDRL; /*!< RAMECC monitor failing data low register */
  1511. __IO uint32_t FDRH; /*!< RAMECC monitor failing data high register */
  1512. __IO uint32_t FECR; /*!< RAMECC monitor failing ECC error code register */
  1513. } RAMECC_MonitorTypeDef;
  1514. typedef struct
  1515. {
  1516. __IO uint32_t IER; /*!< RAMECC interrupt enable register */
  1517. } RAMECC_TypeDef;
  1518. /**
  1519. * @}
  1520. */
  1521. /**
  1522. * @brief RNG
  1523. */
  1524. typedef struct
  1525. {
  1526. __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */
  1527. __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */
  1528. __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */
  1529. uint32_t RESERVED;
  1530. __IO uint32_t HTCR; /*!< RNG health test configuration register, Address offset: 0x10 */
  1531. } RNG_TypeDef;
  1532. /**
  1533. * @brief MDIOS
  1534. */
  1535. typedef struct
  1536. {
  1537. __IO uint32_t CR;
  1538. __IO uint32_t WRFR;
  1539. __IO uint32_t CWRFR;
  1540. __IO uint32_t RDFR;
  1541. __IO uint32_t CRDFR;
  1542. __IO uint32_t SR;
  1543. __IO uint32_t CLRFR;
  1544. uint32_t RESERVED[57];
  1545. __IO uint32_t DINR0;
  1546. __IO uint32_t DINR1;
  1547. __IO uint32_t DINR2;
  1548. __IO uint32_t DINR3;
  1549. __IO uint32_t DINR4;
  1550. __IO uint32_t DINR5;
  1551. __IO uint32_t DINR6;
  1552. __IO uint32_t DINR7;
  1553. __IO uint32_t DINR8;
  1554. __IO uint32_t DINR9;
  1555. __IO uint32_t DINR10;
  1556. __IO uint32_t DINR11;
  1557. __IO uint32_t DINR12;
  1558. __IO uint32_t DINR13;
  1559. __IO uint32_t DINR14;
  1560. __IO uint32_t DINR15;
  1561. __IO uint32_t DINR16;
  1562. __IO uint32_t DINR17;
  1563. __IO uint32_t DINR18;
  1564. __IO uint32_t DINR19;
  1565. __IO uint32_t DINR20;
  1566. __IO uint32_t DINR21;
  1567. __IO uint32_t DINR22;
  1568. __IO uint32_t DINR23;
  1569. __IO uint32_t DINR24;
  1570. __IO uint32_t DINR25;
  1571. __IO uint32_t DINR26;
  1572. __IO uint32_t DINR27;
  1573. __IO uint32_t DINR28;
  1574. __IO uint32_t DINR29;
  1575. __IO uint32_t DINR30;
  1576. __IO uint32_t DINR31;
  1577. __IO uint32_t DOUTR0;
  1578. __IO uint32_t DOUTR1;
  1579. __IO uint32_t DOUTR2;
  1580. __IO uint32_t DOUTR3;
  1581. __IO uint32_t DOUTR4;
  1582. __IO uint32_t DOUTR5;
  1583. __IO uint32_t DOUTR6;
  1584. __IO uint32_t DOUTR7;
  1585. __IO uint32_t DOUTR8;
  1586. __IO uint32_t DOUTR9;
  1587. __IO uint32_t DOUTR10;
  1588. __IO uint32_t DOUTR11;
  1589. __IO uint32_t DOUTR12;
  1590. __IO uint32_t DOUTR13;
  1591. __IO uint32_t DOUTR14;
  1592. __IO uint32_t DOUTR15;
  1593. __IO uint32_t DOUTR16;
  1594. __IO uint32_t DOUTR17;
  1595. __IO uint32_t DOUTR18;
  1596. __IO uint32_t DOUTR19;
  1597. __IO uint32_t DOUTR20;
  1598. __IO uint32_t DOUTR21;
  1599. __IO uint32_t DOUTR22;
  1600. __IO uint32_t DOUTR23;
  1601. __IO uint32_t DOUTR24;
  1602. __IO uint32_t DOUTR25;
  1603. __IO uint32_t DOUTR26;
  1604. __IO uint32_t DOUTR27;
  1605. __IO uint32_t DOUTR28;
  1606. __IO uint32_t DOUTR29;
  1607. __IO uint32_t DOUTR30;
  1608. __IO uint32_t DOUTR31;
  1609. } MDIOS_TypeDef;
  1610. /**
  1611. * @brief USB_OTG_Core_Registers
  1612. */
  1613. typedef struct
  1614. {
  1615. __IO uint32_t GOTGCTL; /*!< USB_OTG Control and Status Register 000h */
  1616. __IO uint32_t GOTGINT; /*!< USB_OTG Interrupt Register 004h */
  1617. __IO uint32_t GAHBCFG; /*!< Core AHB Configuration Register 008h */
  1618. __IO uint32_t GUSBCFG; /*!< Core USB Configuration Register 00Ch */
  1619. __IO uint32_t GRSTCTL; /*!< Core Reset Register 010h */
  1620. __IO uint32_t GINTSTS; /*!< Core Interrupt Register 014h */
  1621. __IO uint32_t GINTMSK; /*!< Core Interrupt Mask Register 018h */
  1622. __IO uint32_t GRXSTSR; /*!< Receive Sts Q Read Register 01Ch */
  1623. __IO uint32_t GRXSTSP; /*!< Receive Sts Q Read & POP Register 020h */
  1624. __IO uint32_t GRXFSIZ; /*!< Receive FIFO Size Register 024h */
  1625. __IO uint32_t DIEPTXF0_HNPTXFSIZ; /*!< EP0 / Non Periodic Tx FIFO Size Register 028h */
  1626. __IO uint32_t HNPTXSTS; /*!< Non Periodic Tx FIFO/Queue Sts reg 02Ch */
  1627. uint32_t Reserved30[2]; /*!< Reserved 030h */
  1628. __IO uint32_t GCCFG; /*!< General Purpose IO Register 038h */
  1629. __IO uint32_t CID; /*!< User ID Register 03Ch */
  1630. __IO uint32_t GSNPSID; /* USB_OTG core ID 040h*/
  1631. __IO uint32_t GHWCFG1; /* User HW config1 044h*/
  1632. __IO uint32_t GHWCFG2; /* User HW config2 048h*/
  1633. __IO uint32_t GHWCFG3; /*!< User HW config3 04Ch */
  1634. uint32_t Reserved6; /*!< Reserved 050h */
  1635. __IO uint32_t GLPMCFG; /*!< LPM Register 054h */
  1636. __IO uint32_t GPWRDN; /*!< Power Down Register 058h */
  1637. __IO uint32_t GDFIFOCFG; /*!< DFIFO Software Config Register 05Ch */
  1638. __IO uint32_t GADPCTL; /*!< ADP Timer, Control and Status Register 60Ch */
  1639. uint32_t Reserved43[39]; /*!< Reserved 058h-0FFh */
  1640. __IO uint32_t HPTXFSIZ; /*!< Host Periodic Tx FIFO Size Reg 100h */
  1641. __IO uint32_t DIEPTXF[0x0F]; /*!< dev Periodic Transmit FIFO */
  1642. } USB_OTG_GlobalTypeDef;
  1643. /**
  1644. * @brief USB_OTG_device_Registers
  1645. */
  1646. typedef struct
  1647. {
  1648. __IO uint32_t DCFG; /*!< dev Configuration Register 800h */
  1649. __IO uint32_t DCTL; /*!< dev Control Register 804h */
  1650. __IO uint32_t DSTS; /*!< dev Status Register (RO) 808h */
  1651. uint32_t Reserved0C; /*!< Reserved 80Ch */
  1652. __IO uint32_t DIEPMSK; /*!< dev IN Endpoint Mask 810h */
  1653. __IO uint32_t DOEPMSK; /*!< dev OUT Endpoint Mask 814h */
  1654. __IO uint32_t DAINT; /*!< dev All Endpoints Itr Reg 818h */
  1655. __IO uint32_t DAINTMSK; /*!< dev All Endpoints Itr Mask 81Ch */
  1656. uint32_t Reserved20; /*!< Reserved 820h */
  1657. uint32_t Reserved9; /*!< Reserved 824h */
  1658. __IO uint32_t DVBUSDIS; /*!< dev VBUS discharge Register 828h */
  1659. __IO uint32_t DVBUSPULSE; /*!< dev VBUS Pulse Register 82Ch */
  1660. __IO uint32_t DTHRCTL; /*!< dev threshold 830h */
  1661. __IO uint32_t DIEPEMPMSK; /*!< dev empty msk 834h */
  1662. __IO uint32_t DEACHINT; /*!< dedicated EP interrupt 838h */
  1663. __IO uint32_t DEACHMSK; /*!< dedicated EP msk 83Ch */
  1664. uint32_t Reserved40; /*!< dedicated EP mask 840h */
  1665. __IO uint32_t DINEP1MSK; /*!< dedicated EP mask 844h */
  1666. uint32_t Reserved44[15]; /*!< Reserved 844-87Ch */
  1667. __IO uint32_t DOUTEP1MSK; /*!< dedicated EP msk 884h */
  1668. } USB_OTG_DeviceTypeDef;
  1669. /**
  1670. * @brief USB_OTG_IN_Endpoint-Specific_Register
  1671. */
  1672. typedef struct
  1673. {
  1674. __IO uint32_t DIEPCTL; /*!< dev IN Endpoint Control Reg 900h + (ep_num * 20h) + 00h */
  1675. uint32_t Reserved04; /*!< Reserved 900h + (ep_num * 20h) + 04h */
  1676. __IO uint32_t DIEPINT; /*!< dev IN Endpoint Itr Reg 900h + (ep_num * 20h) + 08h */
  1677. uint32_t Reserved0C; /*!< Reserved 900h + (ep_num * 20h) + 0Ch */
  1678. __IO uint32_t DIEPTSIZ; /*!< IN Endpoint Txfer Size 900h + (ep_num * 20h) + 10h */
  1679. __IO uint32_t DIEPDMA; /*!< IN Endpoint DMA Address Reg 900h + (ep_num * 20h) + 14h */
  1680. __IO uint32_t DTXFSTS; /*!< IN Endpoint Tx FIFO Status Reg 900h + (ep_num * 20h) + 18h */
  1681. uint32_t Reserved18; /*!< Reserved 900h+(ep_num*20h)+1Ch-900h+ (ep_num * 20h) + 1Ch */
  1682. } USB_OTG_INEndpointTypeDef;
  1683. /**
  1684. * @brief USB_OTG_OUT_Endpoint-Specific_Registers
  1685. */
  1686. typedef struct
  1687. {
  1688. __IO uint32_t DOEPCTL; /*!< dev OUT Endpoint Control Reg B00h + (ep_num * 20h) + 00h */
  1689. uint32_t Reserved04; /*!< Reserved B00h + (ep_num * 20h) + 04h */
  1690. __IO uint32_t DOEPINT; /*!< dev OUT Endpoint Itr Reg B00h + (ep_num * 20h) + 08h */
  1691. uint32_t Reserved0C; /*!< Reserved B00h + (ep_num * 20h) + 0Ch */
  1692. __IO uint32_t DOEPTSIZ; /*!< dev OUT Endpoint Txfer Size B00h + (ep_num * 20h) + 10h */
  1693. __IO uint32_t DOEPDMA; /*!< dev OUT Endpoint DMA Address B00h + (ep_num * 20h) + 14h */
  1694. uint32_t Reserved18[2]; /*!< Reserved B00h + (ep_num * 20h) + 18h - B00h + (ep_num * 20h) + 1Ch */
  1695. } USB_OTG_OUTEndpointTypeDef;
  1696. /**
  1697. * @brief USB_OTG_Host_Mode_Register_Structures
  1698. */
  1699. typedef struct
  1700. {
  1701. __IO uint32_t HCFG; /*!< Host Configuration Register 400h */
  1702. __IO uint32_t HFIR; /*!< Host Frame Interval Register 404h */
  1703. __IO uint32_t HFNUM; /*!< Host Frame Nbr/Frame Remaining 408h */
  1704. uint32_t Reserved40C; /*!< Reserved 40Ch */
  1705. __IO uint32_t HPTXSTS; /*!< Host Periodic Tx FIFO/ Queue Status 410h */
  1706. __IO uint32_t HAINT; /*!< Host All Channels Interrupt Register 414h */
  1707. __IO uint32_t HAINTMSK; /*!< Host All Channels Interrupt Mask 418h */
  1708. } USB_OTG_HostTypeDef;
  1709. /**
  1710. * @brief USB_OTG_Host_Channel_Specific_Registers
  1711. */
  1712. typedef struct
  1713. {
  1714. __IO uint32_t HCCHAR; /*!< Host Channel Characteristics Register 500h */
  1715. __IO uint32_t HCSPLT; /*!< Host Channel Split Control Register 504h */
  1716. __IO uint32_t HCINT; /*!< Host Channel Interrupt Register 508h */
  1717. __IO uint32_t HCINTMSK; /*!< Host Channel Interrupt Mask Register 50Ch */
  1718. __IO uint32_t HCTSIZ; /*!< Host Channel Transfer Size Register 510h */
  1719. __IO uint32_t HCDMA; /*!< Host Channel DMA Address Register 514h */
  1720. uint32_t Reserved[2]; /*!< Reserved */
  1721. } USB_OTG_HostChannelTypeDef;
  1722. /**
  1723. * @}
  1724. */
  1725. /**
  1726. * @brief OCTO Serial Peripheral Interface
  1727. */
  1728. typedef struct
  1729. {
  1730. __IO uint32_t CR; /*!< OCTOSPI Control register, Address offset: 0x000 */
  1731. uint32_t RESERVED; /*!< Reserved, Address offset: 0x004 */
  1732. __IO uint32_t DCR1; /*!< OCTOSPI Device Configuration register 1, Address offset: 0x008 */
  1733. __IO uint32_t DCR2; /*!< OCTOSPI Device Configuration register 2, Address offset: 0x00C */
  1734. __IO uint32_t DCR3; /*!< OCTOSPI Device Configuration register 3, Address offset: 0x010 */
  1735. __IO uint32_t DCR4; /*!< OCTOSPI Device Configuration register 4, Address offset: 0x014 */
  1736. uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x018-0x01C */
  1737. __IO uint32_t SR; /*!< OCTOSPI Status register, Address offset: 0x020 */
  1738. __IO uint32_t FCR; /*!< OCTOSPI Flag Clear register, Address offset: 0x024 */
  1739. uint32_t RESERVED2[6]; /*!< Reserved, Address offset: 0x028-0x03C */
  1740. __IO uint32_t DLR; /*!< OCTOSPI Data Length register, Address offset: 0x040 */
  1741. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x044 */
  1742. __IO uint32_t AR; /*!< OCTOSPI Address register, Address offset: 0x048 */
  1743. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x04C */
  1744. __IO uint32_t DR; /*!< OCTOSPI Data register, Address offset: 0x050 */
  1745. uint32_t RESERVED5[11]; /*!< Reserved, Address offset: 0x054-0x07C */
  1746. __IO uint32_t PSMKR; /*!< OCTOSPI Polling Status Mask register, Address offset: 0x080 */
  1747. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x084 */
  1748. __IO uint32_t PSMAR; /*!< OCTOSPI Polling Status Match register, Address offset: 0x088 */
  1749. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x08C */
  1750. __IO uint32_t PIR; /*!< OCTOSPI Polling Interval register, Address offset: 0x090 */
  1751. uint32_t RESERVED8[27]; /*!< Reserved, Address offset: 0x094-0x0FC */
  1752. __IO uint32_t CCR; /*!< OCTOSPI Communication Configuration register, Address offset: 0x100 */
  1753. uint32_t RESERVED9; /*!< Reserved, Address offset: 0x104 */
  1754. __IO uint32_t TCR; /*!< OCTOSPI Timing Configuration register, Address offset: 0x108 */
  1755. uint32_t RESERVED10; /*!< Reserved, Address offset: 0x10C */
  1756. __IO uint32_t IR; /*!< OCTOSPI Instruction register, Address offset: 0x110 */
  1757. uint32_t RESERVED11[3]; /*!< Reserved, Address offset: 0x114-0x11C */
  1758. __IO uint32_t ABR; /*!< OCTOSPI Alternate Bytes register, Address offset: 0x120 */
  1759. uint32_t RESERVED12[3]; /*!< Reserved, Address offset: 0x124-0x12C */
  1760. __IO uint32_t LPTR; /*!< OCTOSPI Low Power Timeout register, Address offset: 0x130 */
  1761. uint32_t RESERVED13[3]; /*!< Reserved, Address offset: 0x134-0x13C */
  1762. __IO uint32_t WPCCR; /*!< OCTOSPI Wrap Communication Configuration register, Address offset: 0x140 */
  1763. uint32_t RESERVED14; /*!< Reserved, Address offset: 0x144 */
  1764. __IO uint32_t WPTCR; /*!< OCTOSPI Wrap Timing Configuration register, Address offset: 0x148 */
  1765. uint32_t RESERVED15; /*!< Reserved, Address offset: 0x14C */
  1766. __IO uint32_t WPIR; /*!< OCTOSPI Wrap Instruction register, Address offset: 0x150 */
  1767. uint32_t RESERVED16[3]; /*!< Reserved, Address offset: 0x154-0x15C */
  1768. __IO uint32_t WPABR; /*!< OCTOSPI Wrap Alternate Bytes register, Address offset: 0x160 */
  1769. uint32_t RESERVED17[7]; /*!< Reserved, Address offset: 0x164-0x17C */
  1770. __IO uint32_t WCCR; /*!< OCTOSPI Write Communication Configuration register, Address offset: 0x180 */
  1771. uint32_t RESERVED18; /*!< Reserved, Address offset: 0x184 */
  1772. __IO uint32_t WTCR; /*!< OCTOSPI Write Timing Configuration register, Address offset: 0x188 */
  1773. uint32_t RESERVED19; /*!< Reserved, Address offset: 0x18C */
  1774. __IO uint32_t WIR; /*!< OCTOSPI Write Instruction register, Address offset: 0x190 */
  1775. uint32_t RESERVED20[3]; /*!< Reserved, Address offset: 0x194-0x19C */
  1776. __IO uint32_t WABR; /*!< OCTOSPI Write Alternate Bytes register, Address offset: 0x1A0 */
  1777. uint32_t RESERVED21[23]; /*!< Reserved, Address offset: 0x1A4-0x1FC */
  1778. __IO uint32_t HLCR; /*!< OCTOSPI Hyperbus Latency Configuration register, Address offset: 0x200 */
  1779. uint32_t RESERVED22[122]; /*!< Reserved, Address offset: 0x204-0x3EC */
  1780. __IO uint32_t HWCFGR; /*!< OCTOSPI HW Configuration register, Address offset: 0x3F0 */
  1781. __IO uint32_t VER; /*!< OCTOSPI Version register, Address offset: 0x3F4 */
  1782. __IO uint32_t ID; /*!< OCTOSPI Identification register, Address offset: 0x3F8 */
  1783. __IO uint32_t MID; /*!< OCTOPSI HW Magic ID register, Address offset: 0x3FC */
  1784. } OCTOSPI_TypeDef;
  1785. /**
  1786. * @}
  1787. */
  1788. /**
  1789. * @brief OCTO Serial Peripheral Interface IO Manager
  1790. */
  1791. typedef struct
  1792. {
  1793. __IO uint32_t CR; /*!< OCTOSPI IO Manager Control register, Address offset: 0x00 */
  1794. __IO uint32_t PCR[3]; /*!< OCTOSPI IO Manager Port[1:3] Configuration register, Address offset: 0x04-0x20 */
  1795. } OCTOSPIM_TypeDef;
  1796. /**
  1797. * @}
  1798. */
  1799. /**
  1800. * @brief Global Programmer View
  1801. */
  1802. typedef struct
  1803. {
  1804. uint32_t RESERVED0[2036]; /*!< Reserved, Address offset: 0x00-0x1FCC */
  1805. __IO uint32_t AXI_PERIPH_ID_4; /*!< AXI interconnect - peripheral ID4 register, Address offset: 0x1FD0 */
  1806. uint32_t AXI_PERIPH_ID_5; /*!< Reserved, Address offset: 0x1FD4 */
  1807. uint32_t AXI_PERIPH_ID_6; /*!< Reserved, Address offset: 0x1FD8 */
  1808. uint32_t AXI_PERIPH_ID_7; /*!< Reserved, Address offset: 0x1FDC */
  1809. __IO uint32_t AXI_PERIPH_ID_0; /*!< AXI interconnect - peripheral ID0 register, Address offset: 0x1FE0 */
  1810. __IO uint32_t AXI_PERIPH_ID_1; /*!< AXI interconnect - peripheral ID1 register, Address offset: 0x1FE4 */
  1811. __IO uint32_t AXI_PERIPH_ID_2; /*!< AXI interconnect - peripheral ID2 register, Address offset: 0x1FE8 */
  1812. __IO uint32_t AXI_PERIPH_ID_3; /*!< AXI interconnect - peripheral ID3 register, Address offset: 0x1FEC */
  1813. __IO uint32_t AXI_COMP_ID_0; /*!< AXI interconnect - component ID0 register, Address offset: 0x1FF0 */
  1814. __IO uint32_t AXI_COMP_ID_1; /*!< AXI interconnect - component ID1 register, Address offset: 0x1FF4 */
  1815. __IO uint32_t AXI_COMP_ID_2; /*!< AXI interconnect - component ID2 register, Address offset: 0x1FF8 */
  1816. __IO uint32_t AXI_COMP_ID_3; /*!< AXI interconnect - component ID3 register, Address offset: 0x1FFC */
  1817. uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x2000-0x2004 */
  1818. __IO uint32_t AXI_TARG1_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 1 bus matrix issuing functionality register, Address offset: 0x2008 */
  1819. uint32_t RESERVED2[6]; /*!< Reserved, Address offset: 0x200C-0x2020 */
  1820. __IO uint32_t AXI_TARG1_FN_MOD2; /*!< AXI interconnect - TARG 1 bus matrix functionality 2 register, Address offset: 0x2024 */
  1821. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x2028 */
  1822. __IO uint32_t AXI_TARG1_FN_MOD_LB; /*!< AXI interconnect - TARG 1 long burst functionality modification register, Address offset: 0x202C */
  1823. uint32_t RESERVED4[54]; /*!< Reserved, Address offset: 0x2030-0x2104 */
  1824. __IO uint32_t AXI_TARG1_FN_MOD; /*!< AXI interconnect - TARG 1 issuing functionality modification register, Address offset: 0x2108 */
  1825. uint32_t RESERVED5[959]; /*!< Reserved, Address offset: 0x210C-0x3004 */
  1826. __IO uint32_t AXI_TARG2_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 2 bus matrix issuing functionality register, Address offset: 0x3008 */
  1827. uint32_t RESERVED6[6]; /*!< Reserved, Address offset: 0x300C-0x3020 */
  1828. __IO uint32_t AXI_TARG2_FN_MOD2; /*!< AXI interconnect - TARG 2 bus matrix functionality 2 register, Address offset: 0x3024 */
  1829. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x3028 */
  1830. __IO uint32_t AXI_TARG2_FN_MOD_LB; /*!< AXI interconnect - TARG 2 long burst functionality modification register, Address offset: 0x302C */
  1831. uint32_t RESERVED8[54]; /*!< Reserved, Address offset: 0x3030-0x3104 */
  1832. __IO uint32_t AXI_TARG2_FN_MOD; /*!< AXI interconnect - TARG 2 issuing functionality modification register, Address offset: 0x3108 */
  1833. uint32_t RESERVED9[959]; /*!< Reserved, Address offset: 0x310C-0x4004 */
  1834. __IO uint32_t AXI_TARG3_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 3 bus matrix issuing functionality register, Address offset: 0x4008 */
  1835. uint32_t RESERVED10[1023]; /*!< Reserved, Address offset: 0x400C-0x5004 */
  1836. __IO uint32_t AXI_TARG4_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 4 bus matrix issuing functionality register, Address offset: 0x5008 */
  1837. uint32_t RESERVED11[1023]; /*!< Reserved, Address offset: 0x500C-0x6004 */
  1838. __IO uint32_t AXI_TARG5_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 5 bus matrix issuing functionality register, Address offset: 0x6008 */
  1839. uint32_t RESERVED12[1023]; /*!< Reserved, Address offset: 0x600C-0x7004 */
  1840. __IO uint32_t AXI_TARG6_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 6 bus matrix issuing functionality register, Address offset: 0x7008 */
  1841. uint32_t RESERVED13[1023]; /*!< Reserved, Address offset: 0x700C-0x8004 */
  1842. __IO uint32_t AXI_TARG7_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 7 bus matrix issuing functionality register, Address offset: 0x8008 */
  1843. uint32_t RESERVED14[6]; /*!< Reserved, Address offset: 0x800C-0x8020 */
  1844. __IO uint32_t AXI_TARG7_FN_MOD2; /*!< AXI interconnect - TARG 7 bus matrix functionality 2 register, Address offset: 0x8024 */
  1845. uint32_t RESERVED15; /*!< Reserved, Address offset: 0x8028 */
  1846. __IO uint32_t AXI_TARG7_FN_MOD_LB; /*!< AXI interconnect - TARG 7 long burst functionality modification register, Address offset: 0x802C */
  1847. uint32_t RESERVED16[54]; /*!< Reserved, Address offset: 0x8030-0x8104 */
  1848. __IO uint32_t AXI_TARG7_FN_MOD; /*!< AXI interconnect - TARG 7 issuing functionality modification register, Address offset: 0x8108 */
  1849. uint32_t RESERVED17[959]; /*!< Reserved, Address offset: 0x810C-0x9004 */
  1850. __IO uint32_t AXI_TARG8_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 8 bus matrix issuing functionality register, Address offset: 0x9008 */
  1851. uint32_t RESERVED117[6]; /*!< Reserved, Address offset: 0x900C-0x9020 */
  1852. __IO uint32_t AXI_TARG8_FN_MOD2; /*!< AXI interconnect - TARG 8 bus matrix functionality 2 register, Address offset: 0x9024 */
  1853. uint32_t RESERVED118[56]; /*!< Reserved, Address offset: 0x9028-0x9104 */
  1854. __IO uint32_t AXI_TARG8_FN_MOD; /*!< AXI interconnect - TARG 8 issuing functionality modification register, Address offset: 0x9108 */
  1855. uint32_t RESERVED119[58310]; /*!< Reserved, Address offset: 0x910C-0x42020 */
  1856. __IO uint32_t AXI_INI1_FN_MOD2; /*!< AXI interconnect - INI 1 functionality modification 2 register, Address offset: 0x42024 */
  1857. __IO uint32_t AXI_INI1_FN_MOD_AHB; /*!< AXI interconnect - INI 1 AHB functionality modification register, Address offset: 0x42028 */
  1858. uint32_t RESERVED18[53]; /*!< Reserved, Address offset: 0x4202C-0x420FC */
  1859. __IO uint32_t AXI_INI1_READ_QOS; /*!< AXI interconnect - INI 1 read QoS register, Address offset: 0x42100 */
  1860. __IO uint32_t AXI_INI1_WRITE_QOS; /*!< AXI interconnect - INI 1 write QoS register, Address offset: 0x42104 */
  1861. __IO uint32_t AXI_INI1_FN_MOD; /*!< AXI interconnect - INI 1 issuing functionality modification register, Address offset: 0x42108 */
  1862. uint32_t RESERVED19[1021]; /*!< Reserved, Address offset: 0x4210C-0x430FC */
  1863. __IO uint32_t AXI_INI2_READ_QOS; /*!< AXI interconnect - INI 2 read QoS register, Address offset: 0x43100 */
  1864. __IO uint32_t AXI_INI2_WRITE_QOS; /*!< AXI interconnect - INI 2 write QoS register, Address offset: 0x43104 */
  1865. __IO uint32_t AXI_INI2_FN_MOD; /*!< AXI interconnect - INI 2 issuing functionality modification register, Address offset: 0x43108 */
  1866. uint32_t RESERVED20[966]; /*!< Reserved, Address offset: 0x4310C-0x44020 */
  1867. __IO uint32_t AXI_INI3_FN_MOD2; /*!< AXI interconnect - INI 3 functionality modification 2 register, Address offset: 0x44024 */
  1868. __IO uint32_t AXI_INI3_FN_MOD_AHB; /*!< AXI interconnect - INI 3 AHB functionality modification register, Address offset: 0x44028 */
  1869. uint32_t RESERVED21[53]; /*!< Reserved, Address offset: 0x4402C-0x440FC */
  1870. __IO uint32_t AXI_INI3_READ_QOS; /*!< AXI interconnect - INI 3 read QoS register, Address offset: 0x44100 */
  1871. __IO uint32_t AXI_INI3_WRITE_QOS; /*!< AXI interconnect - INI 3 write QoS register, Address offset: 0x44104 */
  1872. __IO uint32_t AXI_INI3_FN_MOD; /*!< AXI interconnect - INI 3 issuing functionality modification register, Address offset: 0x44108 */
  1873. uint32_t RESERVED22[1021]; /*!< Reserved, Address offset: 0x4410C-0x450FC */
  1874. __IO uint32_t AXI_INI4_READ_QOS; /*!< AXI interconnect - INI 4 read QoS register, Address offset: 0x45100 */
  1875. __IO uint32_t AXI_INI4_WRITE_QOS; /*!< AXI interconnect - INI 4 write QoS register, Address offset: 0x45104 */
  1876. __IO uint32_t AXI_INI4_FN_MOD; /*!< AXI interconnect - INI 4 issuing functionality modification register, Address offset: 0x45108 */
  1877. uint32_t RESERVED23[1021]; /*!< Reserved, Address offset: 0x4510C-0x460FC */
  1878. __IO uint32_t AXI_INI5_READ_QOS; /*!< AXI interconnect - INI 5 read QoS register, Address offset: 0x46100 */
  1879. __IO uint32_t AXI_INI5_WRITE_QOS; /*!< AXI interconnect - INI 5 write QoS register, Address offset: 0x46104 */
  1880. __IO uint32_t AXI_INI5_FN_MOD; /*!< AXI interconnect - INI 5 issuing functionality modification register, Address offset: 0x46108 */
  1881. uint32_t RESERVED24[1021]; /*!< Reserved, Address offset: 0x4610C-0x470FC */
  1882. __IO uint32_t AXI_INI6_READ_QOS; /*!< AXI interconnect - INI 6 read QoS register, Address offset: 0x47100 */
  1883. __IO uint32_t AXI_INI6_WRITE_QOS; /*!< AXI interconnect - INI 6 write QoS register, Address offset: 0x47104 */
  1884. __IO uint32_t AXI_INI6_FN_MOD; /*!< AXI interconnect - INI 6 issuing functionality modification register, Address offset: 0x47108 */
  1885. } GPV_TypeDef;
  1886. /** @addtogroup Peripheral_memory_map
  1887. * @{
  1888. */
  1889. #define D1_ITCMRAM_BASE (0x00000000UL) /*!< Base address of : 64KB RAM reserved for CPU execution/instruction accessible over ITCM */
  1890. #define D1_ITCMICP_BASE (0x00100000UL) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over ITCM */
  1891. #define D1_DTCMRAM_BASE (0x20000000UL) /*!< Base address of : 128KB system data RAM accessible over DTCM */
  1892. #define D1_AXIFLASH_BASE (0x08000000UL) /*!< Base address of : (up to 1 MB) embedded FLASH memory accessible over AXI */
  1893. #define D1_AXIICP_BASE (0x1FF00000UL) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over AXI */
  1894. #define D1_AXISRAM1_BASE (0x24000000UL) /*!< Base address of : (up to 128KB) system data RAM1 accessible over over AXI */
  1895. #define D1_AXISRAM2_BASE (0x24020000UL) /*!< Base address of : (up to 192KB) system data RAM2 accessible over over AXI to be shared with ITCM (64K granularity) */
  1896. #define D1_AXISRAM_BASE D1_AXISRAM1_BASE /*!< Base address of : (up to 320KB) system data RAM1/2 accessible over over AXI */
  1897. #define D2_AHBSRAM1_BASE (0x30000000UL) /*!< Base address of : (up to 16KB) system data RAM accessible over over AXI->AHB Bridge */
  1898. #define D2_AHBSRAM2_BASE (0x30004000UL) /*!< Base address of : (up to 16KB) system data RAM accessible over over AXI->AHB Bridge */
  1899. #define D2_AHBSRAM_BASE D2_AHBSRAM1_BASE /*!< Base address of : (up to 32KB) system data RAM1/2 accessible over over AXI->AHB Bridge */
  1900. #define D3_BKPSRAM_BASE (0x38800000UL) /*!< Base address of : Backup SRAM(4 KB) over AXI->AHB Bridge */
  1901. #define D3_SRAM_BASE (0x38000000UL) /*!< Base address of : Backup SRAM(16 KB) over AXI->AHB Bridge */
  1902. #define PERIPH_BASE (0x40000000UL) /*!< Base address of : AHB/APB Peripherals */
  1903. #define OCTOSPI1_BASE (0x90000000UL) /*!< Base address of : OCTOSPI1 memories accessible over AXI */
  1904. #define OCTOSPI2_BASE (0x70000000UL) /*!< Base address of : OCTOSPI2 memories accessible over AXI */
  1905. #define FLASH_BANK1_BASE (0x08000000UL) /*!< Base address of : (up to 1 MB) Flash Bank1 accessible over AXI */
  1906. #define FLASH_END (0x080FFFFFUL) /*!< FLASH end address */
  1907. /* Legacy define */
  1908. #define FLASH_BASE FLASH_BANK1_BASE
  1909. /*!< Device electronic signature memory map */
  1910. #define UID_BASE (0x1FF1E800UL) /*!< Unique device ID register base address */
  1911. #define FLASHSIZE_BASE (0x1FF1E880UL) /*!< FLASH Size register base address */
  1912. /*!< Peripheral memory map */
  1913. #define D2_APB1PERIPH_BASE PERIPH_BASE
  1914. #define D2_APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL)
  1915. #define D2_AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000UL)
  1916. #define D2_AHB2PERIPH_BASE (PERIPH_BASE + 0x08020000UL)
  1917. #define D1_APB1PERIPH_BASE (PERIPH_BASE + 0x10000000UL)
  1918. #define D1_AHB1PERIPH_BASE (PERIPH_BASE + 0x12000000UL)
  1919. #define D3_APB1PERIPH_BASE (PERIPH_BASE + 0x18000000UL)
  1920. #define D3_AHB1PERIPH_BASE (PERIPH_BASE + 0x18020000UL)
  1921. /*!< Legacy Peripheral memory map */
  1922. #define APB1PERIPH_BASE PERIPH_BASE
  1923. #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL)
  1924. #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000UL)
  1925. #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000UL)
  1926. /*!< D1_AHB1PERIPH peripherals */
  1927. #define MDMA_BASE (D1_AHB1PERIPH_BASE + 0x0000UL)
  1928. #define DMA2D_BASE (D1_AHB1PERIPH_BASE + 0x1000UL)
  1929. #define FLASH_R_BASE (D1_AHB1PERIPH_BASE + 0x2000UL)
  1930. #define FMC_R_BASE (D1_AHB1PERIPH_BASE + 0x4000UL)
  1931. #define OCTOSPI1_R_BASE (D1_AHB1PERIPH_BASE + 0x5000UL)
  1932. #define DLYB_OCTOSPI1_BASE (D1_AHB1PERIPH_BASE + 0x6000UL)
  1933. #define SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x7000UL)
  1934. #define DLYB_SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x8000UL)
  1935. #define RAMECC1_BASE (D1_AHB1PERIPH_BASE + 0x9000UL)
  1936. #define OCTOSPI2_R_BASE (D1_AHB1PERIPH_BASE + 0xA000UL)
  1937. #define DLYB_OCTOSPI2_BASE (D1_AHB1PERIPH_BASE + 0xB000UL)
  1938. #define OCTOSPIM_BASE (D1_AHB1PERIPH_BASE + 0xB400UL)
  1939. /*!< D2_AHB1PERIPH peripherals */
  1940. #define DMA1_BASE (D2_AHB1PERIPH_BASE + 0x0000UL)
  1941. #define DMA2_BASE (D2_AHB1PERIPH_BASE + 0x0400UL)
  1942. #define DMAMUX1_BASE (D2_AHB1PERIPH_BASE + 0x0800UL)
  1943. #define ADC1_BASE (D2_AHB1PERIPH_BASE + 0x2000UL)
  1944. #define ADC2_BASE (D2_AHB1PERIPH_BASE + 0x2100UL)
  1945. #define ADC12_COMMON_BASE (D2_AHB1PERIPH_BASE + 0x2300UL)
  1946. #define ETH_BASE (D2_AHB1PERIPH_BASE + 0x8000UL)
  1947. #define ETH_MAC_BASE (ETH_BASE)
  1948. /*!< USB registers base address */
  1949. #define USB1_OTG_HS_PERIPH_BASE (0x40040000UL)
  1950. #define USB_OTG_GLOBAL_BASE (0x000UL)
  1951. #define USB_OTG_DEVICE_BASE (0x800UL)
  1952. #define USB_OTG_IN_ENDPOINT_BASE (0x900UL)
  1953. #define USB_OTG_OUT_ENDPOINT_BASE (0xB00UL)
  1954. #define USB_OTG_EP_REG_SIZE (0x20UL)
  1955. #define USB_OTG_HOST_BASE (0x400UL)
  1956. #define USB_OTG_HOST_PORT_BASE (0x440UL)
  1957. #define USB_OTG_HOST_CHANNEL_BASE (0x500UL)
  1958. #define USB_OTG_HOST_CHANNEL_SIZE (0x20UL)
  1959. #define USB_OTG_PCGCCTL_BASE (0xE00UL)
  1960. #define USB_OTG_FIFO_BASE (0x1000UL)
  1961. #define USB_OTG_FIFO_SIZE (0x1000UL)
  1962. /*!< D2_AHB2PERIPH peripherals */
  1963. #define DCMI_BASE (D2_AHB2PERIPH_BASE + 0x0000UL)
  1964. #define PSSI_BASE (D2_AHB2PERIPH_BASE + 0x0400UL)
  1965. #define RNG_BASE (D2_AHB2PERIPH_BASE + 0x1800UL)
  1966. #define SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2400UL)
  1967. #define DLYB_SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2800UL)
  1968. #define RAMECC2_BASE (D2_AHB2PERIPH_BASE + 0x3000UL)
  1969. #define FMAC_BASE (D2_AHB2PERIPH_BASE + 0x4000UL)
  1970. #define CORDIC_BASE (D2_AHB2PERIPH_BASE + 0x4400UL)
  1971. /*!< D3_AHB1PERIPH peripherals */
  1972. #define GPIOA_BASE (D3_AHB1PERIPH_BASE + 0x0000UL)
  1973. #define GPIOB_BASE (D3_AHB1PERIPH_BASE + 0x0400UL)
  1974. #define GPIOC_BASE (D3_AHB1PERIPH_BASE + 0x0800UL)
  1975. #define GPIOD_BASE (D3_AHB1PERIPH_BASE + 0x0C00UL)
  1976. #define GPIOE_BASE (D3_AHB1PERIPH_BASE + 0x1000UL)
  1977. #define GPIOF_BASE (D3_AHB1PERIPH_BASE + 0x1400UL)
  1978. #define GPIOG_BASE (D3_AHB1PERIPH_BASE + 0x1800UL)
  1979. #define GPIOH_BASE (D3_AHB1PERIPH_BASE + 0x1C00UL)
  1980. #define GPIOJ_BASE (D3_AHB1PERIPH_BASE + 0x2400UL)
  1981. #define GPIOK_BASE (D3_AHB1PERIPH_BASE + 0x2800UL)
  1982. #define RCC_BASE (D3_AHB1PERIPH_BASE + 0x4400UL)
  1983. #define PWR_BASE (D3_AHB1PERIPH_BASE + 0x4800UL)
  1984. #define CRC_BASE (D3_AHB1PERIPH_BASE + 0x4C00UL)
  1985. #define BDMA_BASE (D3_AHB1PERIPH_BASE + 0x5400UL)
  1986. #define DMAMUX2_BASE (D3_AHB1PERIPH_BASE + 0x5800UL)
  1987. #define ADC3_BASE (D3_AHB1PERIPH_BASE + 0x6000UL)
  1988. #define ADC3_COMMON_BASE (D3_AHB1PERIPH_BASE + 0x6300UL)
  1989. #define HSEM_BASE (D3_AHB1PERIPH_BASE + 0x6400UL)
  1990. #define RAMECC3_BASE (D3_AHB1PERIPH_BASE + 0x7000UL)
  1991. /*!< D1_APB1PERIPH peripherals */
  1992. #define LTDC_BASE (D1_APB1PERIPH_BASE + 0x1000UL)
  1993. #define LTDC_Layer1_BASE (LTDC_BASE + 0x84UL)
  1994. #define LTDC_Layer2_BASE (LTDC_BASE + 0x104UL)
  1995. #define WWDG1_BASE (D1_APB1PERIPH_BASE + 0x3000UL)
  1996. /*!< D2_APB1PERIPH peripherals */
  1997. #define TIM2_BASE (D2_APB1PERIPH_BASE + 0x0000UL)
  1998. #define TIM3_BASE (D2_APB1PERIPH_BASE + 0x0400UL)
  1999. #define TIM4_BASE (D2_APB1PERIPH_BASE + 0x0800UL)
  2000. #define TIM5_BASE (D2_APB1PERIPH_BASE + 0x0C00UL)
  2001. #define TIM6_BASE (D2_APB1PERIPH_BASE + 0x1000UL)
  2002. #define TIM7_BASE (D2_APB1PERIPH_BASE + 0x1400UL)
  2003. #define TIM12_BASE (D2_APB1PERIPH_BASE + 0x1800UL)
  2004. #define TIM13_BASE (D2_APB1PERIPH_BASE + 0x1C00UL)
  2005. #define TIM14_BASE (D2_APB1PERIPH_BASE + 0x2000UL)
  2006. #define LPTIM1_BASE (D2_APB1PERIPH_BASE + 0x2400UL)
  2007. #define SPI2_BASE (D2_APB1PERIPH_BASE + 0x3800UL)
  2008. #define SPI3_BASE (D2_APB1PERIPH_BASE + 0x3C00UL)
  2009. #define SPDIFRX_BASE (D2_APB1PERIPH_BASE + 0x4000UL)
  2010. #define USART2_BASE (D2_APB1PERIPH_BASE + 0x4400UL)
  2011. #define USART3_BASE (D2_APB1PERIPH_BASE + 0x4800UL)
  2012. #define UART4_BASE (D2_APB1PERIPH_BASE + 0x4C00UL)
  2013. #define UART5_BASE (D2_APB1PERIPH_BASE + 0x5000UL)
  2014. #define I2C1_BASE (D2_APB1PERIPH_BASE + 0x5400UL)
  2015. #define I2C2_BASE (D2_APB1PERIPH_BASE + 0x5800UL)
  2016. #define I2C3_BASE (D2_APB1PERIPH_BASE + 0x5C00UL)
  2017. #define I2C5_BASE (D2_APB1PERIPH_BASE + 0x6400UL)
  2018. #define CEC_BASE (D2_APB1PERIPH_BASE + 0x6C00UL)
  2019. #define DAC1_BASE (D2_APB1PERIPH_BASE + 0x7400UL)
  2020. #define UART7_BASE (D2_APB1PERIPH_BASE + 0x7800UL)
  2021. #define UART8_BASE (D2_APB1PERIPH_BASE + 0x7C00UL)
  2022. #define CRS_BASE (D2_APB1PERIPH_BASE + 0x8400UL)
  2023. #define SWPMI1_BASE (D2_APB1PERIPH_BASE + 0x8800UL)
  2024. #define OPAMP_BASE (D2_APB1PERIPH_BASE + 0x9000UL)
  2025. #define OPAMP1_BASE (D2_APB1PERIPH_BASE + 0x9000UL)
  2026. #define OPAMP2_BASE (D2_APB1PERIPH_BASE + 0x9010UL)
  2027. #define MDIOS_BASE (D2_APB1PERIPH_BASE + 0x9400UL)
  2028. #define FDCAN1_BASE (D2_APB1PERIPH_BASE + 0xA000UL)
  2029. #define FDCAN2_BASE (D2_APB1PERIPH_BASE + 0xA400UL)
  2030. #define FDCAN_CCU_BASE (D2_APB1PERIPH_BASE + 0xA800UL)
  2031. #define SRAMCAN_BASE (D2_APB1PERIPH_BASE + 0xAC00UL)
  2032. #define FDCAN3_BASE (D2_APB1PERIPH_BASE + 0xD400UL)
  2033. #define TIM23_BASE (D2_APB1PERIPH_BASE + 0xE000UL)
  2034. #define TIM24_BASE (D2_APB1PERIPH_BASE + 0xE400UL)
  2035. /*!< D2_APB2PERIPH peripherals */
  2036. #define TIM1_BASE (D2_APB2PERIPH_BASE + 0x0000UL)
  2037. #define TIM8_BASE (D2_APB2PERIPH_BASE + 0x0400UL)
  2038. #define USART1_BASE (D2_APB2PERIPH_BASE + 0x1000UL)
  2039. #define USART6_BASE (D2_APB2PERIPH_BASE + 0x1400UL)
  2040. #define UART9_BASE (D2_APB2PERIPH_BASE + 0x1800UL)
  2041. #define USART10_BASE (D2_APB2PERIPH_BASE + 0x1C00UL)
  2042. #define SPI1_BASE (D2_APB2PERIPH_BASE + 0x3000UL)
  2043. #define SPI4_BASE (D2_APB2PERIPH_BASE + 0x3400UL)
  2044. #define TIM15_BASE (D2_APB2PERIPH_BASE + 0x4000UL)
  2045. #define TIM16_BASE (D2_APB2PERIPH_BASE + 0x4400UL)
  2046. #define TIM17_BASE (D2_APB2PERIPH_BASE + 0x4800UL)
  2047. #define SPI5_BASE (D2_APB2PERIPH_BASE + 0x5000UL)
  2048. #define SAI1_BASE (D2_APB2PERIPH_BASE + 0x5800UL)
  2049. #define SAI1_Block_A_BASE (SAI1_BASE + 0x004UL)
  2050. #define SAI1_Block_B_BASE (SAI1_BASE + 0x024UL)
  2051. #define DFSDM1_BASE (D2_APB2PERIPH_BASE + 0x7800UL)
  2052. #define DFSDM1_Channel0_BASE (DFSDM1_BASE + 0x00UL)
  2053. #define DFSDM1_Channel1_BASE (DFSDM1_BASE + 0x20UL)
  2054. #define DFSDM1_Channel2_BASE (DFSDM1_BASE + 0x40UL)
  2055. #define DFSDM1_Channel3_BASE (DFSDM1_BASE + 0x60UL)
  2056. #define DFSDM1_Channel4_BASE (DFSDM1_BASE + 0x80UL)
  2057. #define DFSDM1_Channel5_BASE (DFSDM1_BASE + 0xA0UL)
  2058. #define DFSDM1_Channel6_BASE (DFSDM1_BASE + 0xC0UL)
  2059. #define DFSDM1_Channel7_BASE (DFSDM1_BASE + 0xE0UL)
  2060. #define DFSDM1_Filter0_BASE (DFSDM1_BASE + 0x100UL)
  2061. #define DFSDM1_Filter1_BASE (DFSDM1_BASE + 0x180UL)
  2062. #define DFSDM1_Filter2_BASE (DFSDM1_BASE + 0x200UL)
  2063. #define DFSDM1_Filter3_BASE (DFSDM1_BASE + 0x280UL)
  2064. /*!< D3_APB1PERIPH peripherals */
  2065. #define EXTI_BASE (D3_APB1PERIPH_BASE + 0x0000UL)
  2066. #define EXTI_D1_BASE (EXTI_BASE + 0x0080UL)
  2067. #define EXTI_D2_BASE (EXTI_BASE + 0x00C0UL)
  2068. #define SYSCFG_BASE (D3_APB1PERIPH_BASE + 0x0400UL)
  2069. #define LPUART1_BASE (D3_APB1PERIPH_BASE + 0x0C00UL)
  2070. #define SPI6_BASE (D3_APB1PERIPH_BASE + 0x1400UL)
  2071. #define I2C4_BASE (D3_APB1PERIPH_BASE + 0x1C00UL)
  2072. #define LPTIM2_BASE (D3_APB1PERIPH_BASE + 0x2400UL)
  2073. #define LPTIM3_BASE (D3_APB1PERIPH_BASE + 0x2800UL)
  2074. #define LPTIM4_BASE (D3_APB1PERIPH_BASE + 0x2C00UL)
  2075. #define LPTIM5_BASE (D3_APB1PERIPH_BASE + 0x3000UL)
  2076. #define COMP12_BASE (D3_APB1PERIPH_BASE + 0x3800UL)
  2077. #define COMP1_BASE (COMP12_BASE + 0x0CUL)
  2078. #define COMP2_BASE (COMP12_BASE + 0x10UL)
  2079. #define VREFBUF_BASE (D3_APB1PERIPH_BASE + 0x3C00UL)
  2080. #define RTC_BASE (D3_APB1PERIPH_BASE + 0x4000UL)
  2081. #define IWDG1_BASE (D3_APB1PERIPH_BASE + 0x4800UL)
  2082. #define SAI4_BASE (D3_APB1PERIPH_BASE + 0x5400UL)
  2083. #define SAI4_Block_A_BASE (SAI4_BASE + 0x004UL)
  2084. #define SAI4_Block_B_BASE (SAI4_BASE + 0x024UL)
  2085. #define DTS_BASE (D3_APB1PERIPH_BASE + 0x6800UL)
  2086. #define BDMA_Channel0_BASE (BDMA_BASE + 0x0008UL)
  2087. #define BDMA_Channel1_BASE (BDMA_BASE + 0x001CUL)
  2088. #define BDMA_Channel2_BASE (BDMA_BASE + 0x0030UL)
  2089. #define BDMA_Channel3_BASE (BDMA_BASE + 0x0044UL)
  2090. #define BDMA_Channel4_BASE (BDMA_BASE + 0x0058UL)
  2091. #define BDMA_Channel5_BASE (BDMA_BASE + 0x006CUL)
  2092. #define BDMA_Channel6_BASE (BDMA_BASE + 0x0080UL)
  2093. #define BDMA_Channel7_BASE (BDMA_BASE + 0x0094UL)
  2094. #define DMAMUX2_Channel0_BASE (DMAMUX2_BASE)
  2095. #define DMAMUX2_Channel1_BASE (DMAMUX2_BASE + 0x0004UL)
  2096. #define DMAMUX2_Channel2_BASE (DMAMUX2_BASE + 0x0008UL)
  2097. #define DMAMUX2_Channel3_BASE (DMAMUX2_BASE + 0x000CUL)
  2098. #define DMAMUX2_Channel4_BASE (DMAMUX2_BASE + 0x0010UL)
  2099. #define DMAMUX2_Channel5_BASE (DMAMUX2_BASE + 0x0014UL)
  2100. #define DMAMUX2_Channel6_BASE (DMAMUX2_BASE + 0x0018UL)
  2101. #define DMAMUX2_Channel7_BASE (DMAMUX2_BASE + 0x001CUL)
  2102. #define DMAMUX2_RequestGenerator0_BASE (DMAMUX2_BASE + 0x0100UL)
  2103. #define DMAMUX2_RequestGenerator1_BASE (DMAMUX2_BASE + 0x0104UL)
  2104. #define DMAMUX2_RequestGenerator2_BASE (DMAMUX2_BASE + 0x0108UL)
  2105. #define DMAMUX2_RequestGenerator3_BASE (DMAMUX2_BASE + 0x010CUL)
  2106. #define DMAMUX2_RequestGenerator4_BASE (DMAMUX2_BASE + 0x0110UL)
  2107. #define DMAMUX2_RequestGenerator5_BASE (DMAMUX2_BASE + 0x0114UL)
  2108. #define DMAMUX2_RequestGenerator6_BASE (DMAMUX2_BASE + 0x0118UL)
  2109. #define DMAMUX2_RequestGenerator7_BASE (DMAMUX2_BASE + 0x011CUL)
  2110. #define DMAMUX2_ChannelStatus_BASE (DMAMUX2_BASE + 0x0080UL)
  2111. #define DMAMUX2_RequestGenStatus_BASE (DMAMUX2_BASE + 0x0140UL)
  2112. #define DMA1_Stream0_BASE (DMA1_BASE + 0x010UL)
  2113. #define DMA1_Stream1_BASE (DMA1_BASE + 0x028UL)
  2114. #define DMA1_Stream2_BASE (DMA1_BASE + 0x040UL)
  2115. #define DMA1_Stream3_BASE (DMA1_BASE + 0x058UL)
  2116. #define DMA1_Stream4_BASE (DMA1_BASE + 0x070UL)
  2117. #define DMA1_Stream5_BASE (DMA1_BASE + 0x088UL)
  2118. #define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0UL)
  2119. #define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8UL)
  2120. #define DMA2_Stream0_BASE (DMA2_BASE + 0x010UL)
  2121. #define DMA2_Stream1_BASE (DMA2_BASE + 0x028UL)
  2122. #define DMA2_Stream2_BASE (DMA2_BASE + 0x040UL)
  2123. #define DMA2_Stream3_BASE (DMA2_BASE + 0x058UL)
  2124. #define DMA2_Stream4_BASE (DMA2_BASE + 0x070UL)
  2125. #define DMA2_Stream5_BASE (DMA2_BASE + 0x088UL)
  2126. #define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0UL)
  2127. #define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8UL)
  2128. #define DMAMUX1_Channel0_BASE (DMAMUX1_BASE)
  2129. #define DMAMUX1_Channel1_BASE (DMAMUX1_BASE + 0x0004UL)
  2130. #define DMAMUX1_Channel2_BASE (DMAMUX1_BASE + 0x0008UL)
  2131. #define DMAMUX1_Channel3_BASE (DMAMUX1_BASE + 0x000CUL)
  2132. #define DMAMUX1_Channel4_BASE (DMAMUX1_BASE + 0x0010UL)
  2133. #define DMAMUX1_Channel5_BASE (DMAMUX1_BASE + 0x0014UL)
  2134. #define DMAMUX1_Channel6_BASE (DMAMUX1_BASE + 0x0018UL)
  2135. #define DMAMUX1_Channel7_BASE (DMAMUX1_BASE + 0x001CUL)
  2136. #define DMAMUX1_Channel8_BASE (DMAMUX1_BASE + 0x0020UL)
  2137. #define DMAMUX1_Channel9_BASE (DMAMUX1_BASE + 0x0024UL)
  2138. #define DMAMUX1_Channel10_BASE (DMAMUX1_BASE + 0x0028UL)
  2139. #define DMAMUX1_Channel11_BASE (DMAMUX1_BASE + 0x002CUL)
  2140. #define DMAMUX1_Channel12_BASE (DMAMUX1_BASE + 0x0030UL)
  2141. #define DMAMUX1_Channel13_BASE (DMAMUX1_BASE + 0x0034UL)
  2142. #define DMAMUX1_Channel14_BASE (DMAMUX1_BASE + 0x0038UL)
  2143. #define DMAMUX1_Channel15_BASE (DMAMUX1_BASE + 0x003CUL)
  2144. #define DMAMUX1_RequestGenerator0_BASE (DMAMUX1_BASE + 0x0100UL)
  2145. #define DMAMUX1_RequestGenerator1_BASE (DMAMUX1_BASE + 0x0104UL)
  2146. #define DMAMUX1_RequestGenerator2_BASE (DMAMUX1_BASE + 0x0108UL)
  2147. #define DMAMUX1_RequestGenerator3_BASE (DMAMUX1_BASE + 0x010CUL)
  2148. #define DMAMUX1_RequestGenerator4_BASE (DMAMUX1_BASE + 0x0110UL)
  2149. #define DMAMUX1_RequestGenerator5_BASE (DMAMUX1_BASE + 0x0114UL)
  2150. #define DMAMUX1_RequestGenerator6_BASE (DMAMUX1_BASE + 0x0118UL)
  2151. #define DMAMUX1_RequestGenerator7_BASE (DMAMUX1_BASE + 0x011CUL)
  2152. #define DMAMUX1_ChannelStatus_BASE (DMAMUX1_BASE + 0x0080UL)
  2153. #define DMAMUX1_RequestGenStatus_BASE (DMAMUX1_BASE + 0x0140UL)
  2154. /*!< FMC Banks registers base address */
  2155. #define FMC_Bank1_R_BASE (FMC_R_BASE + 0x0000UL)
  2156. #define FMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104UL)
  2157. #define FMC_Bank2_R_BASE (FMC_R_BASE + 0x0060UL)
  2158. #define FMC_Bank3_R_BASE (FMC_R_BASE + 0x0080UL)
  2159. #define FMC_Bank5_6_R_BASE (FMC_R_BASE + 0x0140UL)
  2160. /* Debug MCU registers base address */
  2161. #define DBGMCU_BASE (0x5C001000UL)
  2162. #define MDMA_Channel0_BASE (MDMA_BASE + 0x00000040UL)
  2163. #define MDMA_Channel1_BASE (MDMA_BASE + 0x00000080UL)
  2164. #define MDMA_Channel2_BASE (MDMA_BASE + 0x000000C0UL)
  2165. #define MDMA_Channel3_BASE (MDMA_BASE + 0x00000100UL)
  2166. #define MDMA_Channel4_BASE (MDMA_BASE + 0x00000140UL)
  2167. #define MDMA_Channel5_BASE (MDMA_BASE + 0x00000180UL)
  2168. #define MDMA_Channel6_BASE (MDMA_BASE + 0x000001C0UL)
  2169. #define MDMA_Channel7_BASE (MDMA_BASE + 0x00000200UL)
  2170. #define MDMA_Channel8_BASE (MDMA_BASE + 0x00000240UL)
  2171. #define MDMA_Channel9_BASE (MDMA_BASE + 0x00000280UL)
  2172. #define MDMA_Channel10_BASE (MDMA_BASE + 0x000002C0UL)
  2173. #define MDMA_Channel11_BASE (MDMA_BASE + 0x00000300UL)
  2174. #define MDMA_Channel12_BASE (MDMA_BASE + 0x00000340UL)
  2175. #define MDMA_Channel13_BASE (MDMA_BASE + 0x00000380UL)
  2176. #define MDMA_Channel14_BASE (MDMA_BASE + 0x000003C0UL)
  2177. #define MDMA_Channel15_BASE (MDMA_BASE + 0x00000400UL)
  2178. #define RAMECC1_Monitor1_BASE (RAMECC1_BASE + 0x20UL)
  2179. #define RAMECC1_Monitor2_BASE (RAMECC1_BASE + 0x40UL)
  2180. #define RAMECC1_Monitor3_BASE (RAMECC1_BASE + 0x60UL)
  2181. #define RAMECC1_Monitor4_BASE (RAMECC1_BASE + 0x80UL)
  2182. #define RAMECC1_Monitor5_BASE (RAMECC1_BASE + 0xA0UL)
  2183. #define RAMECC1_Monitor6_BASE (RAMECC1_BASE + 0xC0UL)
  2184. #define RAMECC2_Monitor1_BASE (RAMECC2_BASE + 0x20UL)
  2185. #define RAMECC2_Monitor2_BASE (RAMECC2_BASE + 0x40UL)
  2186. #define RAMECC2_Monitor3_BASE (RAMECC2_BASE + 0x60UL)
  2187. #define RAMECC3_Monitor1_BASE (RAMECC3_BASE + 0x20UL)
  2188. #define RAMECC3_Monitor2_BASE (RAMECC3_BASE + 0x40UL)
  2189. #define GPV_BASE (PERIPH_BASE + 0x11000000UL) /*!< GPV_BASE (PERIPH_BASE + 0x11000000UL) */
  2190. /**
  2191. * @}
  2192. */
  2193. /** @addtogroup Peripheral_declaration
  2194. * @{
  2195. */
  2196. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  2197. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  2198. #define TIM4 ((TIM_TypeDef *) TIM4_BASE)
  2199. #define TIM5 ((TIM_TypeDef *) TIM5_BASE)
  2200. #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
  2201. #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
  2202. #define TIM13 ((TIM_TypeDef *) TIM13_BASE)
  2203. #define TIM14 ((TIM_TypeDef *) TIM14_BASE)
  2204. #define VREFBUF ((VREFBUF_TypeDef *) VREFBUF_BASE)
  2205. #define RTC ((RTC_TypeDef *) RTC_BASE)
  2206. #define WWDG1 ((WWDG_TypeDef *) WWDG1_BASE)
  2207. #define IWDG1 ((IWDG_TypeDef *) IWDG1_BASE)
  2208. #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
  2209. #define SPI3 ((SPI_TypeDef *) SPI3_BASE)
  2210. #define SPI4 ((SPI_TypeDef *) SPI4_BASE)
  2211. #define SPI5 ((SPI_TypeDef *) SPI5_BASE)
  2212. #define SPI6 ((SPI_TypeDef *) SPI6_BASE)
  2213. #define USART2 ((USART_TypeDef *) USART2_BASE)
  2214. #define USART3 ((USART_TypeDef *) USART3_BASE)
  2215. #define USART6 ((USART_TypeDef *) USART6_BASE)
  2216. #define USART10 ((USART_TypeDef *) USART10_BASE)
  2217. #define UART7 ((USART_TypeDef *) UART7_BASE)
  2218. #define UART8 ((USART_TypeDef *) UART8_BASE)
  2219. #define UART9 ((USART_TypeDef *) UART9_BASE)
  2220. #define CRS ((CRS_TypeDef *) CRS_BASE)
  2221. #define UART4 ((USART_TypeDef *) UART4_BASE)
  2222. #define UART5 ((USART_TypeDef *) UART5_BASE)
  2223. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  2224. #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
  2225. #define I2C3 ((I2C_TypeDef *) I2C3_BASE)
  2226. #define I2C4 ((I2C_TypeDef *) I2C4_BASE)
  2227. #define I2C5 ((I2C_TypeDef *) I2C5_BASE)
  2228. #define FDCAN1 ((FDCAN_GlobalTypeDef *) FDCAN1_BASE)
  2229. #define FDCAN2 ((FDCAN_GlobalTypeDef *) FDCAN2_BASE)
  2230. #define FDCAN_CCU ((FDCAN_ClockCalibrationUnit_TypeDef *) FDCAN_CCU_BASE)
  2231. #define FDCAN3 ((FDCAN_GlobalTypeDef *) FDCAN3_BASE)
  2232. #define TIM23 ((TIM_TypeDef *) TIM23_BASE)
  2233. #define TIM24 ((TIM_TypeDef *) TIM24_BASE)
  2234. #define CEC ((CEC_TypeDef *) CEC_BASE)
  2235. #define LPTIM1 ((LPTIM_TypeDef *) LPTIM1_BASE)
  2236. #define PWR ((PWR_TypeDef *) PWR_BASE)
  2237. #define DAC1 ((DAC_TypeDef *) DAC1_BASE)
  2238. #define LPUART1 ((USART_TypeDef *) LPUART1_BASE)
  2239. #define SWPMI1 ((SWPMI_TypeDef *) SWPMI1_BASE)
  2240. #define LPTIM2 ((LPTIM_TypeDef *) LPTIM2_BASE)
  2241. #define LPTIM3 ((LPTIM_TypeDef *) LPTIM3_BASE)
  2242. #define DTS ((DTS_TypeDef *) DTS_BASE)
  2243. #define LPTIM4 ((LPTIM_TypeDef *) LPTIM4_BASE)
  2244. #define LPTIM5 ((LPTIM_TypeDef *) LPTIM5_BASE)
  2245. #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
  2246. #define COMP12 ((COMPOPT_TypeDef *) COMP12_BASE)
  2247. #define COMP1 ((COMP_TypeDef *) COMP1_BASE)
  2248. #define COMP2 ((COMP_TypeDef *) COMP2_BASE)
  2249. #define COMP12_COMMON ((COMP_Common_TypeDef *) COMP2_BASE)
  2250. #define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE)
  2251. #define OPAMP1 ((OPAMP_TypeDef *) OPAMP1_BASE)
  2252. #define OPAMP2 ((OPAMP_TypeDef *) OPAMP2_BASE)
  2253. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  2254. #define EXTI_D1 ((EXTI_Core_TypeDef *) EXTI_D1_BASE)
  2255. #define EXTI_D2 ((EXTI_Core_TypeDef *) EXTI_D2_BASE)
  2256. #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
  2257. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  2258. #define TIM8 ((TIM_TypeDef *) TIM8_BASE)
  2259. #define USART1 ((USART_TypeDef *) USART1_BASE)
  2260. #define TIM12 ((TIM_TypeDef *) TIM12_BASE)
  2261. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  2262. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  2263. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  2264. #define SAI1 ((SAI_TypeDef *) SAI1_BASE)
  2265. #define SAI1_Block_A ((SAI_Block_TypeDef *)SAI1_Block_A_BASE)
  2266. #define SAI1_Block_B ((SAI_Block_TypeDef *)SAI1_Block_B_BASE)
  2267. #define SAI4 ((SAI_TypeDef *) SAI4_BASE)
  2268. #define SAI4_Block_A ((SAI_Block_TypeDef *)SAI4_Block_A_BASE)
  2269. #define SAI4_Block_B ((SAI_Block_TypeDef *)SAI4_Block_B_BASE)
  2270. #define SPDIFRX ((SPDIFRX_TypeDef *) SPDIFRX_BASE)
  2271. #define DFSDM1_Channel0 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE)
  2272. #define DFSDM1_Channel1 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE)
  2273. #define DFSDM1_Channel2 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE)
  2274. #define DFSDM1_Channel3 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE)
  2275. #define DFSDM1_Channel4 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel4_BASE)
  2276. #define DFSDM1_Channel5 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel5_BASE)
  2277. #define DFSDM1_Channel6 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel6_BASE)
  2278. #define DFSDM1_Channel7 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel7_BASE)
  2279. #define DFSDM1_Filter0 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE)
  2280. #define DFSDM1_Filter1 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE)
  2281. #define DFSDM1_Filter2 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE)
  2282. #define DFSDM1_Filter3 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE)
  2283. #define DMA2D ((DMA2D_TypeDef *) DMA2D_BASE)
  2284. #define DCMI ((DCMI_TypeDef *) DCMI_BASE)
  2285. #define PSSI ((PSSI_TypeDef *) PSSI_BASE)
  2286. #define RCC ((RCC_TypeDef *) RCC_BASE)
  2287. #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
  2288. #define CRC ((CRC_TypeDef *) CRC_BASE)
  2289. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  2290. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  2291. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  2292. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  2293. #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
  2294. #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
  2295. #define GPIOG ((GPIO_TypeDef *) GPIOG_BASE)
  2296. #define GPIOH ((GPIO_TypeDef *) GPIOH_BASE)
  2297. #define GPIOJ ((GPIO_TypeDef *) GPIOJ_BASE)
  2298. #define GPIOK ((GPIO_TypeDef *) GPIOK_BASE)
  2299. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  2300. #define ADC2 ((ADC_TypeDef *) ADC2_BASE)
  2301. #define ADC3 ((ADC_TypeDef *) ADC3_BASE)
  2302. #define ADC3_COMMON ((ADC_Common_TypeDef *) ADC3_COMMON_BASE)
  2303. #define ADC12_COMMON ((ADC_Common_TypeDef *) ADC12_COMMON_BASE)
  2304. #define RNG ((RNG_TypeDef *) RNG_BASE)
  2305. #define SDMMC2 ((SDMMC_TypeDef *) SDMMC2_BASE)
  2306. #define DLYB_SDMMC2 ((DLYB_TypeDef *) DLYB_SDMMC2_BASE)
  2307. #define FMAC ((FMAC_TypeDef *) FMAC_BASE)
  2308. #define CORDIC ((CORDIC_TypeDef *) CORDIC_BASE)
  2309. #define BDMA ((BDMA_TypeDef *) BDMA_BASE)
  2310. #define BDMA_Channel0 ((BDMA_Channel_TypeDef *) BDMA_Channel0_BASE)
  2311. #define BDMA_Channel1 ((BDMA_Channel_TypeDef *) BDMA_Channel1_BASE)
  2312. #define BDMA_Channel2 ((BDMA_Channel_TypeDef *) BDMA_Channel2_BASE)
  2313. #define BDMA_Channel3 ((BDMA_Channel_TypeDef *) BDMA_Channel3_BASE)
  2314. #define BDMA_Channel4 ((BDMA_Channel_TypeDef *) BDMA_Channel4_BASE)
  2315. #define BDMA_Channel5 ((BDMA_Channel_TypeDef *) BDMA_Channel5_BASE)
  2316. #define BDMA_Channel6 ((BDMA_Channel_TypeDef *) BDMA_Channel6_BASE)
  2317. #define BDMA_Channel7 ((BDMA_Channel_TypeDef *) BDMA_Channel7_BASE)
  2318. #define RAMECC1 ((RAMECC_TypeDef *)RAMECC1_BASE)
  2319. #define RAMECC1_Monitor1 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor1_BASE)
  2320. #define RAMECC1_Monitor2 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor2_BASE)
  2321. #define RAMECC1_Monitor3 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor3_BASE)
  2322. #define RAMECC1_Monitor4 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor4_BASE)
  2323. #define RAMECC1_Monitor5 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor5_BASE)
  2324. #define RAMECC1_Monitor6 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor6_BASE)
  2325. #define RAMECC2 ((RAMECC_TypeDef *)RAMECC2_BASE)
  2326. #define RAMECC2_Monitor1 ((RAMECC_MonitorTypeDef *)RAMECC2_Monitor1_BASE)
  2327. #define RAMECC2_Monitor2 ((RAMECC_MonitorTypeDef *)RAMECC2_Monitor2_BASE)
  2328. #define RAMECC2_Monitor3 ((RAMECC_MonitorTypeDef *)RAMECC2_Monitor3_BASE)
  2329. #define RAMECC3 ((RAMECC_TypeDef *)RAMECC3_BASE)
  2330. #define RAMECC3_Monitor1 ((RAMECC_MonitorTypeDef *)RAMECC3_Monitor1_BASE)
  2331. #define RAMECC3_Monitor2 ((RAMECC_MonitorTypeDef *)RAMECC3_Monitor2_BASE)
  2332. #define DMAMUX2 ((DMAMUX_Channel_TypeDef *) DMAMUX2_BASE)
  2333. #define DMAMUX2_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel0_BASE)
  2334. #define DMAMUX2_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel1_BASE)
  2335. #define DMAMUX2_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel2_BASE)
  2336. #define DMAMUX2_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel3_BASE)
  2337. #define DMAMUX2_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel4_BASE)
  2338. #define DMAMUX2_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel5_BASE)
  2339. #define DMAMUX2_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel6_BASE)
  2340. #define DMAMUX2_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel7_BASE)
  2341. #define DMAMUX2_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator0_BASE)
  2342. #define DMAMUX2_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator1_BASE)
  2343. #define DMAMUX2_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator2_BASE)
  2344. #define DMAMUX2_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator3_BASE)
  2345. #define DMAMUX2_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator4_BASE)
  2346. #define DMAMUX2_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator5_BASE)
  2347. #define DMAMUX2_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator6_BASE)
  2348. #define DMAMUX2_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator7_BASE)
  2349. #define DMAMUX2_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX2_ChannelStatus_BASE)
  2350. #define DMAMUX2_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX2_RequestGenStatus_BASE)
  2351. #define DMA2 ((DMA_TypeDef *) DMA2_BASE)
  2352. #define DMA2_Stream0 ((DMA_Stream_TypeDef *) DMA2_Stream0_BASE)
  2353. #define DMA2_Stream1 ((DMA_Stream_TypeDef *) DMA2_Stream1_BASE)
  2354. #define DMA2_Stream2 ((DMA_Stream_TypeDef *) DMA2_Stream2_BASE)
  2355. #define DMA2_Stream3 ((DMA_Stream_TypeDef *) DMA2_Stream3_BASE)
  2356. #define DMA2_Stream4 ((DMA_Stream_TypeDef *) DMA2_Stream4_BASE)
  2357. #define DMA2_Stream5 ((DMA_Stream_TypeDef *) DMA2_Stream5_BASE)
  2358. #define DMA2_Stream6 ((DMA_Stream_TypeDef *) DMA2_Stream6_BASE)
  2359. #define DMA2_Stream7 ((DMA_Stream_TypeDef *) DMA2_Stream7_BASE)
  2360. #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
  2361. #define DMA1_Stream0 ((DMA_Stream_TypeDef *) DMA1_Stream0_BASE)
  2362. #define DMA1_Stream1 ((DMA_Stream_TypeDef *) DMA1_Stream1_BASE)
  2363. #define DMA1_Stream2 ((DMA_Stream_TypeDef *) DMA1_Stream2_BASE)
  2364. #define DMA1_Stream3 ((DMA_Stream_TypeDef *) DMA1_Stream3_BASE)
  2365. #define DMA1_Stream4 ((DMA_Stream_TypeDef *) DMA1_Stream4_BASE)
  2366. #define DMA1_Stream5 ((DMA_Stream_TypeDef *) DMA1_Stream5_BASE)
  2367. #define DMA1_Stream6 ((DMA_Stream_TypeDef *) DMA1_Stream6_BASE)
  2368. #define DMA1_Stream7 ((DMA_Stream_TypeDef *) DMA1_Stream7_BASE)
  2369. #define DMAMUX1 ((DMAMUX_Channel_TypeDef *) DMAMUX1_BASE)
  2370. #define DMAMUX1_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE)
  2371. #define DMAMUX1_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE)
  2372. #define DMAMUX1_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE)
  2373. #define DMAMUX1_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE)
  2374. #define DMAMUX1_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE)
  2375. #define DMAMUX1_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE)
  2376. #define DMAMUX1_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE)
  2377. #define DMAMUX1_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE)
  2378. #define DMAMUX1_Channel8 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE)
  2379. #define DMAMUX1_Channel9 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE)
  2380. #define DMAMUX1_Channel10 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE)
  2381. #define DMAMUX1_Channel11 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE)
  2382. #define DMAMUX1_Channel12 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE)
  2383. #define DMAMUX1_Channel13 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE)
  2384. #define DMAMUX1_Channel14 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE)
  2385. #define DMAMUX1_Channel15 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE)
  2386. #define DMAMUX1_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE)
  2387. #define DMAMUX1_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE)
  2388. #define DMAMUX1_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE)
  2389. #define DMAMUX1_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE)
  2390. #define DMAMUX1_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator4_BASE)
  2391. #define DMAMUX1_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator5_BASE)
  2392. #define DMAMUX1_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator6_BASE)
  2393. #define DMAMUX1_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator7_BASE)
  2394. #define DMAMUX1_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE)
  2395. #define DMAMUX1_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE)
  2396. #define FMC_Bank1_R ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE)
  2397. #define FMC_Bank1E_R ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE)
  2398. #define FMC_Bank2_R ((FMC_Bank2_TypeDef *) FMC_Bank2_R_BASE)
  2399. #define FMC_Bank3_R ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE)
  2400. #define FMC_Bank5_6_R ((FMC_Bank5_6_TypeDef *) FMC_Bank5_6_R_BASE)
  2401. #define OCTOSPI1 ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE)
  2402. #define DLYB_OCTOSPI1 ((DLYB_TypeDef *) DLYB_OCTOSPI1_BASE)
  2403. #define OCTOSPI2 ((OCTOSPI_TypeDef *) OCTOSPI2_R_BASE)
  2404. #define DLYB_OCTOSPI2 ((DLYB_TypeDef *) DLYB_OCTOSPI2_BASE)
  2405. #define OCTOSPIM ((OCTOSPIM_TypeDef *) OCTOSPIM_BASE)
  2406. #define SDMMC1 ((SDMMC_TypeDef *) SDMMC1_BASE)
  2407. #define DLYB_SDMMC1 ((DLYB_TypeDef *) DLYB_SDMMC1_BASE)
  2408. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  2409. #define HSEM ((HSEM_TypeDef *) HSEM_BASE)
  2410. #define HSEM_COMMON ((HSEM_Common_TypeDef *) (HSEM_BASE + 0x100UL))
  2411. #define LTDC ((LTDC_TypeDef *)LTDC_BASE)
  2412. #define LTDC_Layer1 ((LTDC_Layer_TypeDef *)LTDC_Layer1_BASE)
  2413. #define LTDC_Layer2 ((LTDC_Layer_TypeDef *)LTDC_Layer2_BASE)
  2414. #define MDIOS ((MDIOS_TypeDef *) MDIOS_BASE)
  2415. #define ETH ((ETH_TypeDef *)ETH_BASE)
  2416. #define MDMA ((MDMA_TypeDef *)MDMA_BASE)
  2417. #define MDMA_Channel0 ((MDMA_Channel_TypeDef *)MDMA_Channel0_BASE)
  2418. #define MDMA_Channel1 ((MDMA_Channel_TypeDef *)MDMA_Channel1_BASE)
  2419. #define MDMA_Channel2 ((MDMA_Channel_TypeDef *)MDMA_Channel2_BASE)
  2420. #define MDMA_Channel3 ((MDMA_Channel_TypeDef *)MDMA_Channel3_BASE)
  2421. #define MDMA_Channel4 ((MDMA_Channel_TypeDef *)MDMA_Channel4_BASE)
  2422. #define MDMA_Channel5 ((MDMA_Channel_TypeDef *)MDMA_Channel5_BASE)
  2423. #define MDMA_Channel6 ((MDMA_Channel_TypeDef *)MDMA_Channel6_BASE)
  2424. #define MDMA_Channel7 ((MDMA_Channel_TypeDef *)MDMA_Channel7_BASE)
  2425. #define MDMA_Channel8 ((MDMA_Channel_TypeDef *)MDMA_Channel8_BASE)
  2426. #define MDMA_Channel9 ((MDMA_Channel_TypeDef *)MDMA_Channel9_BASE)
  2427. #define MDMA_Channel10 ((MDMA_Channel_TypeDef *)MDMA_Channel10_BASE)
  2428. #define MDMA_Channel11 ((MDMA_Channel_TypeDef *)MDMA_Channel11_BASE)
  2429. #define MDMA_Channel12 ((MDMA_Channel_TypeDef *)MDMA_Channel12_BASE)
  2430. #define MDMA_Channel13 ((MDMA_Channel_TypeDef *)MDMA_Channel13_BASE)
  2431. #define MDMA_Channel14 ((MDMA_Channel_TypeDef *)MDMA_Channel14_BASE)
  2432. #define MDMA_Channel15 ((MDMA_Channel_TypeDef *)MDMA_Channel15_BASE)
  2433. #define USB1_OTG_HS ((USB_OTG_GlobalTypeDef *) USB1_OTG_HS_PERIPH_BASE)
  2434. /* Legacy defines */
  2435. #define USB_OTG_HS USB1_OTG_HS
  2436. #define USB_OTG_HS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE
  2437. #define GPV ((GPV_TypeDef *) GPV_BASE)
  2438. /**
  2439. * @}
  2440. */
  2441. /** @addtogroup Exported_constants
  2442. * @{
  2443. */
  2444. /** @addtogroup Hardware_Constant_Definition
  2445. * @{
  2446. */
  2447. #define LSI_STARTUP_TIME 130U /*!< LSI Maximum startup time in us */
  2448. /**
  2449. * @}
  2450. */
  2451. /** @addtogroup Peripheral_Registers_Bits_Definition
  2452. * @{
  2453. */
  2454. /******************************************************************************/
  2455. /* Peripheral Registers_Bits_Definition */
  2456. /******************************************************************************/
  2457. /******************************************************************************/
  2458. /* */
  2459. /* Analog to Digital Converter */
  2460. /* */
  2461. /******************************************************************************/
  2462. /******************************* ADC VERSION ********************************/
  2463. #define ADC_VER_V5_V90
  2464. /******************** Bit definition for ADC_ISR register ********************/
  2465. #define ADC_ISR_ADRDY_Pos (0U)
  2466. #define ADC_ISR_ADRDY_Msk (0x1UL << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */
  2467. #define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC Ready (ADRDY) flag */
  2468. #define ADC_ISR_EOSMP_Pos (1U)
  2469. #define ADC_ISR_EOSMP_Msk (0x1UL << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  2470. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC End of Sampling flag */
  2471. #define ADC_ISR_EOC_Pos (2U)
  2472. #define ADC_ISR_EOC_Msk (0x1UL << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  2473. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC End of Regular Conversion flag */
  2474. #define ADC_ISR_EOS_Pos (3U)
  2475. #define ADC_ISR_EOS_Msk (0x1UL << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  2476. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC End of Regular sequence of Conversions flag */
  2477. #define ADC_ISR_OVR_Pos (4U)
  2478. #define ADC_ISR_OVR_Msk (0x1UL << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  2479. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC overrun flag */
  2480. #define ADC_ISR_JEOC_Pos (5U)
  2481. #define ADC_ISR_JEOC_Msk (0x1UL << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */
  2482. #define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC End of Injected Conversion flag */
  2483. #define ADC_ISR_JEOS_Pos (6U)
  2484. #define ADC_ISR_JEOS_Msk (0x1UL << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */
  2485. #define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC End of Injected sequence of Conversions flag */
  2486. #define ADC_ISR_AWD1_Pos (7U)
  2487. #define ADC_ISR_AWD1_Msk (0x1UL << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  2488. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC Analog watchdog 1 flag */
  2489. #define ADC_ISR_AWD2_Pos (8U)
  2490. #define ADC_ISR_AWD2_Msk (0x1UL << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */
  2491. #define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC Analog watchdog 2 flag */
  2492. #define ADC_ISR_AWD3_Pos (9U)
  2493. #define ADC_ISR_AWD3_Msk (0x1UL << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */
  2494. #define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC Analog watchdog 3 flag */
  2495. #define ADC_ISR_JQOVF_Pos (10U)
  2496. #define ADC_ISR_JQOVF_Msk (0x1UL << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */
  2497. #define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC Injected Context Queue Overflow flag */
  2498. /******************** Bit definition for ADC_IER register ********************/
  2499. #define ADC_IER_ADRDYIE_Pos (0U)
  2500. #define ADC_IER_ADRDYIE_Msk (0x1UL << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */
  2501. #define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC Ready (ADRDY) interrupt source */
  2502. #define ADC_IER_EOSMPIE_Pos (1U)
  2503. #define ADC_IER_EOSMPIE_Msk (0x1UL << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */
  2504. #define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC End of Sampling interrupt source */
  2505. #define ADC_IER_EOCIE_Pos (2U)
  2506. #define ADC_IER_EOCIE_Msk (0x1UL << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */
  2507. #define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC End of Regular Conversion interrupt source */
  2508. #define ADC_IER_EOSIE_Pos (3U)
  2509. #define ADC_IER_EOSIE_Msk (0x1UL << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */
  2510. #define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC End of Regular sequence of Conversions interrupt source */
  2511. #define ADC_IER_OVRIE_Pos (4U)
  2512. #define ADC_IER_OVRIE_Msk (0x1UL << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */
  2513. #define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC overrun interrupt source */
  2514. #define ADC_IER_JEOCIE_Pos (5U)
  2515. #define ADC_IER_JEOCIE_Msk (0x1UL << ADC_IER_JEOCIE_Pos) /*!< 0x00000020 */
  2516. #define ADC_IER_JEOCIE ADC_IER_JEOCIE_Msk /*!< ADC End of Injected Conversion interrupt source */
  2517. #define ADC_IER_JEOSIE_Pos (6U)
  2518. #define ADC_IER_JEOSIE_Msk (0x1UL << ADC_IER_JEOSIE_Pos) /*!< 0x00000040 */
  2519. #define ADC_IER_JEOSIE ADC_IER_JEOSIE_Msk /*!< ADC End of Injected sequence of Conversions interrupt source */
  2520. #define ADC_IER_AWD1IE_Pos (7U)
  2521. #define ADC_IER_AWD1IE_Msk (0x1UL << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */
  2522. #define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC Analog watchdog 1 interrupt source */
  2523. #define ADC_IER_AWD2IE_Pos (8U)
  2524. #define ADC_IER_AWD2IE_Msk (0x1UL << ADC_IER_AWD2IE_Pos) /*!< 0x00000100 */
  2525. #define ADC_IER_AWD2IE ADC_IER_AWD2IE_Msk /*!< ADC Analog watchdog 2 interrupt source */
  2526. #define ADC_IER_AWD3IE_Pos (9U)
  2527. #define ADC_IER_AWD3IE_Msk (0x1UL << ADC_IER_AWD3IE_Pos) /*!< 0x00000200 */
  2528. #define ADC_IER_AWD3IE ADC_IER_AWD3IE_Msk /*!< ADC Analog watchdog 3 interrupt source */
  2529. #define ADC_IER_JQOVFIE_Pos (10U)
  2530. #define ADC_IER_JQOVFIE_Msk (0x1UL << ADC_IER_JQOVFIE_Pos) /*!< 0x00000400 */
  2531. #define ADC_IER_JQOVFIE ADC_IER_JQOVFIE_Msk /*!< ADC Injected Context Queue Overflow interrupt source */
  2532. /******************** Bit definition for ADC_CR register ********************/
  2533. #define ADC_CR_ADEN_Pos (0U)
  2534. #define ADC_CR_ADEN_Msk (0x1UL << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  2535. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC Enable control */
  2536. #define ADC_CR_ADDIS_Pos (1U)
  2537. #define ADC_CR_ADDIS_Msk (0x1UL << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  2538. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC Disable command */
  2539. #define ADC_CR_ADSTART_Pos (2U)
  2540. #define ADC_CR_ADSTART_Msk (0x1UL << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  2541. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC Start of Regular conversion */
  2542. #define ADC_CR_JADSTART_Pos (3U)
  2543. #define ADC_CR_JADSTART_Msk (0x1UL << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */
  2544. #define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC Start of injected conversion */
  2545. #define ADC_CR_ADSTP_Pos (4U)
  2546. #define ADC_CR_ADSTP_Msk (0x1UL << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  2547. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC Stop of Regular conversion */
  2548. #define ADC_CR_JADSTP_Pos (5U)
  2549. #define ADC_CR_JADSTP_Msk (0x1UL << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */
  2550. #define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC Stop of injected conversion */
  2551. #define ADC_CR_BOOST_Pos (8U)
  2552. #define ADC_CR_BOOST_Msk (0x3UL << ADC_CR_BOOST_Pos) /*!< 0x00000300 */
  2553. #define ADC_CR_BOOST ADC_CR_BOOST_Msk /*!< ADC Boost Mode configuration */
  2554. #define ADC_CR_BOOST_0 (0x1UL << ADC_CR_BOOST_Pos) /*!< 0x00000100 */
  2555. #define ADC_CR_BOOST_1 (0x2UL << ADC_CR_BOOST_Pos) /*!< 0x00000200 */
  2556. #define ADC_CR_ADCALLIN_Pos (16U)
  2557. #define ADC_CR_ADCALLIN_Msk (0x1UL << ADC_CR_ADCALLIN_Pos) /*!< 0x00010000 */
  2558. #define ADC_CR_ADCALLIN ADC_CR_ADCALLIN_Msk /*!< ADC Linearity calibration */
  2559. #define ADC_CR_LINCALRDYW1_Pos (22U)
  2560. #define ADC_CR_LINCALRDYW1_Msk (0x1UL << ADC_CR_LINCALRDYW1_Pos) /*!< 0x00400000 */
  2561. #define ADC_CR_LINCALRDYW1 ADC_CR_LINCALRDYW1_Msk /*!< ADC Linearity calibration ready Word 1 */
  2562. #define ADC_CR_LINCALRDYW2_Pos (23U)
  2563. #define ADC_CR_LINCALRDYW2_Msk (0x1UL << ADC_CR_LINCALRDYW2_Pos) /*!< 0x00800000 */
  2564. #define ADC_CR_LINCALRDYW2 ADC_CR_LINCALRDYW2_Msk /*!< ADC Linearity calibration ready Word 2 */
  2565. #define ADC_CR_LINCALRDYW3_Pos (24U)
  2566. #define ADC_CR_LINCALRDYW3_Msk (0x1UL << ADC_CR_LINCALRDYW3_Pos) /*!< 0x01000000 */
  2567. #define ADC_CR_LINCALRDYW3 ADC_CR_LINCALRDYW3_Msk /*!< ADC Linearity calibration ready Word 3 */
  2568. #define ADC_CR_LINCALRDYW4_Pos (25U)
  2569. #define ADC_CR_LINCALRDYW4_Msk (0x1UL << ADC_CR_LINCALRDYW4_Pos) /*!< 0x02000000 */
  2570. #define ADC_CR_LINCALRDYW4 ADC_CR_LINCALRDYW4_Msk /*!< ADC Linearity calibration ready Word 4 */
  2571. #define ADC_CR_LINCALRDYW5_Pos (26U)
  2572. #define ADC_CR_LINCALRDYW5_Msk (0x1UL << ADC_CR_LINCALRDYW5_Pos) /*!< 0x04000000 */
  2573. #define ADC_CR_LINCALRDYW5 ADC_CR_LINCALRDYW5_Msk /*!< ADC Linearity calibration ready Word 5 */
  2574. #define ADC_CR_LINCALRDYW6_Pos (27U)
  2575. #define ADC_CR_LINCALRDYW6_Msk (0x1UL << ADC_CR_LINCALRDYW6_Pos) /*!< 0x08000000 */
  2576. #define ADC_CR_LINCALRDYW6 ADC_CR_LINCALRDYW6_Msk /*!< ADC Linearity calibration ready Word 6 */
  2577. #define ADC_CR_ADVREGEN_Pos (28U)
  2578. #define ADC_CR_ADVREGEN_Msk (0x1UL << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */
  2579. #define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC Voltage regulator Enable */
  2580. #define ADC_CR_DEEPPWD_Pos (29U)
  2581. #define ADC_CR_DEEPPWD_Msk (0x1UL << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */
  2582. #define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC Deep power down Enable */
  2583. #define ADC_CR_ADCALDIF_Pos (30U)
  2584. #define ADC_CR_ADCALDIF_Msk (0x1UL << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */
  2585. #define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC Differential Mode for calibration */
  2586. #define ADC_CR_ADCAL_Pos (31U)
  2587. #define ADC_CR_ADCAL_Msk (0x1UL << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  2588. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC Calibration */
  2589. /******************** Bit definition for ADC_CFGR register ********************/
  2590. #define ADC_CFGR_DMNGT_Pos (0U)
  2591. #define ADC_CFGR_DMNGT_Msk (0x3UL << ADC_CFGR_DMNGT_Pos) /*!< 0x00000003 */
  2592. #define ADC_CFGR_DMNGT ADC_CFGR_DMNGT_Msk /*!< ADC Data Management configuration */
  2593. #define ADC_CFGR_DMNGT_0 (0x1UL << ADC_CFGR_DMNGT_Pos) /*!< 0x00000001 */
  2594. #define ADC_CFGR_DMNGT_1 (0x2UL << ADC_CFGR_DMNGT_Pos) /*!< 0x00000002 */
  2595. #define ADC_CFGR_RES_Pos (2U)
  2596. #define ADC_CFGR_RES_Msk (0x7UL << ADC_CFGR_RES_Pos) /*!< 0x0000001C */
  2597. #define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC Data resolution */
  2598. #define ADC_CFGR_RES_0 (0x1UL << ADC_CFGR_RES_Pos) /*!< 0x00000004 */
  2599. #define ADC_CFGR_RES_1 (0x2UL << ADC_CFGR_RES_Pos) /*!< 0x00000008 */
  2600. #define ADC_CFGR_RES_2 (0x4UL << ADC_CFGR_RES_Pos) /*!< 0x00000010 */
  2601. #define ADC_CFGR_EXTSEL_Pos (5U)
  2602. #define ADC_CFGR_EXTSEL_Msk (0x1FUL << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003E0 */
  2603. #define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC External trigger selection for regular group */
  2604. #define ADC_CFGR_EXTSEL_0 (0x01UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000020 */
  2605. #define ADC_CFGR_EXTSEL_1 (0x02UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */
  2606. #define ADC_CFGR_EXTSEL_2 (0x04UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */
  2607. #define ADC_CFGR_EXTSEL_3 (0x08UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */
  2608. #define ADC_CFGR_EXTSEL_4 (0x10UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */
  2609. #define ADC_CFGR_EXTEN_Pos (10U)
  2610. #define ADC_CFGR_EXTEN_Msk (0x3UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */
  2611. #define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC External trigger enable and polarity selection for regular channels */
  2612. #define ADC_CFGR_EXTEN_0 (0x1UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */
  2613. #define ADC_CFGR_EXTEN_1 (0x2UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */
  2614. #define ADC_CFGR_OVRMOD_Pos (12U)
  2615. #define ADC_CFGR_OVRMOD_Msk (0x1UL << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */
  2616. #define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC overrun mode */
  2617. #define ADC_CFGR_CONT_Pos (13U)
  2618. #define ADC_CFGR_CONT_Msk (0x1UL << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */
  2619. #define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC Single/continuous conversion mode for regular conversion */
  2620. #define ADC_CFGR_AUTDLY_Pos (14U)
  2621. #define ADC_CFGR_AUTDLY_Msk (0x1UL << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */
  2622. #define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC Delayed conversion mode */
  2623. #define ADC_CFGR_DISCEN_Pos (16U)
  2624. #define ADC_CFGR_DISCEN_Msk (0x1UL << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */
  2625. #define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC Discontinuous mode for regular channels */
  2626. #define ADC_CFGR_DISCNUM_Pos (17U)
  2627. #define ADC_CFGR_DISCNUM_Msk (0x7UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */
  2628. #define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC Discontinuous mode channel count */
  2629. #define ADC_CFGR_DISCNUM_0 (0x1UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */
  2630. #define ADC_CFGR_DISCNUM_1 (0x2UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */
  2631. #define ADC_CFGR_DISCNUM_2 (0x4UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */
  2632. #define ADC_CFGR_JDISCEN_Pos (20U)
  2633. #define ADC_CFGR_JDISCEN_Msk (0x1UL << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */
  2634. #define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC Discontinuous mode on injected channels */
  2635. #define ADC_CFGR_JQM_Pos (21U)
  2636. #define ADC_CFGR_JQM_Msk (0x1UL << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */
  2637. #define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC JSQR Queue mode */
  2638. #define ADC_CFGR_AWD1SGL_Pos (22U)
  2639. #define ADC_CFGR_AWD1SGL_Msk (0x1UL << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */
  2640. #define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< Enable the watchdog 1 on a single channel or on all channels */
  2641. #define ADC_CFGR_AWD1EN_Pos (23U)
  2642. #define ADC_CFGR_AWD1EN_Msk (0x1UL << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */
  2643. #define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC Analog watchdog 1 enable on regular Channels */
  2644. #define ADC_CFGR_JAWD1EN_Pos (24U)
  2645. #define ADC_CFGR_JAWD1EN_Msk (0x1UL << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */
  2646. #define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC Analog watchdog 1 enable on injected Channels */
  2647. #define ADC_CFGR_JAUTO_Pos (25U)
  2648. #define ADC_CFGR_JAUTO_Msk (0x1UL << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */
  2649. #define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC Automatic injected group conversion */
  2650. #define ADC_CFGR_AWD1CH_Pos (26U)
  2651. #define ADC_CFGR_AWD1CH_Msk (0x1FUL << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */
  2652. #define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC Analog watchdog 1 Channel selection */
  2653. #define ADC_CFGR_AWD1CH_0 (0x01UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */
  2654. #define ADC_CFGR_AWD1CH_1 (0x02UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */
  2655. #define ADC_CFGR_AWD1CH_2 (0x04UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */
  2656. #define ADC_CFGR_AWD1CH_3 (0x08UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */
  2657. #define ADC_CFGR_AWD1CH_4 (0x10UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */
  2658. #define ADC_CFGR_JQDIS_Pos (31U)
  2659. #define ADC_CFGR_JQDIS_Msk (0x1UL << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */
  2660. #define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC Injected queue disable */
  2661. #define ADC3_CFGR_DMAEN_Pos (0U)
  2662. #define ADC3_CFGR_DMAEN_Msk (0x1UL << ADC3_CFGR_DMAEN_Pos) /*!< 0x00000001 */
  2663. #define ADC3_CFGR_DMAEN ADC3_CFGR_DMAEN_Msk /*!< ADC DMA transfer enable */
  2664. #define ADC3_CFGR_DMACFG_Pos (1U)
  2665. #define ADC3_CFGR_DMACFG_Msk (0x1UL << ADC3_CFGR_DMACFG_Pos) /*!< 0x00000002 */
  2666. #define ADC3_CFGR_DMACFG ADC3_CFGR_DMACFG_Msk /*!< ADC DMA transfer configuration */
  2667. #define ADC3_CFGR_RES_Pos (3U)
  2668. #define ADC3_CFGR_RES_Msk (0x3UL << ADC3_CFGR_RES_Pos) /*!< 0x00000018 */
  2669. #define ADC3_CFGR_RES ADC3_CFGR_RES_Msk /*!< ADC data resolution */
  2670. #define ADC3_CFGR_RES_0 (0x1UL << ADC3_CFGR_RES_Pos) /*!< 0x00000008 */
  2671. #define ADC3_CFGR_RES_1 (0x2UL << ADC3_CFGR_RES_Pos) /*!< 0x00000010 */
  2672. #define ADC3_CFGR_ALIGN_Pos (15U)
  2673. #define ADC3_CFGR_ALIGN_Msk (0x1UL << ADC3_CFGR_ALIGN_Pos) /*!< 0x00008000 */
  2674. #define ADC3_CFGR_ALIGN ADC3_CFGR_ALIGN_Msk /*!< ADC data alignment */
  2675. /******************** Bit definition for ADC_CFGR2 register ********************/
  2676. #define ADC_CFGR2_ROVSE_Pos (0U)
  2677. #define ADC_CFGR2_ROVSE_Msk (0x1UL << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */
  2678. #define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC Regular group oversampler enable */
  2679. #define ADC_CFGR2_JOVSE_Pos (1U)
  2680. #define ADC_CFGR2_JOVSE_Msk (0x1UL << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */
  2681. #define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC Injected group oversampler enable */
  2682. #define ADC_CFGR2_OVSS_Pos (5U)
  2683. #define ADC_CFGR2_OVSS_Msk (0xFUL << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */
  2684. #define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC Regular Oversampling shift */
  2685. #define ADC_CFGR2_OVSS_0 (0x1UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */
  2686. #define ADC_CFGR2_OVSS_1 (0x2UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */
  2687. #define ADC_CFGR2_OVSS_2 (0x4UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */
  2688. #define ADC_CFGR2_OVSS_3 (0x8UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */
  2689. #define ADC_CFGR2_TROVS_Pos (9U)
  2690. #define ADC_CFGR2_TROVS_Msk (0x1UL << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */
  2691. #define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC Triggered regular Oversampling */
  2692. #define ADC_CFGR2_ROVSM_Pos (10U)
  2693. #define ADC_CFGR2_ROVSM_Msk (0x1UL << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */
  2694. #define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC Regular oversampling mode */
  2695. #define ADC_CFGR2_RSHIFT1_Pos (11U)
  2696. #define ADC_CFGR2_RSHIFT1_Msk (0x1UL << ADC_CFGR2_RSHIFT1_Pos) /*!< 0x00000800 */
  2697. #define ADC_CFGR2_RSHIFT1 ADC_CFGR2_RSHIFT1_Msk /*!< ADC Right-shift data after Offset 1 correction */
  2698. #define ADC_CFGR2_RSHIFT2_Pos (12U)
  2699. #define ADC_CFGR2_RSHIFT2_Msk (0x1UL << ADC_CFGR2_RSHIFT2_Pos) /*!< 0x00001000 */
  2700. #define ADC_CFGR2_RSHIFT2 ADC_CFGR2_RSHIFT2_Msk /*!< ADC Right-shift data after Offset 2 correction */
  2701. #define ADC_CFGR2_RSHIFT3_Pos (13U)
  2702. #define ADC_CFGR2_RSHIFT3_Msk (0x1UL << ADC_CFGR2_RSHIFT3_Pos) /*!< 0x00002000 */
  2703. #define ADC_CFGR2_RSHIFT3 ADC_CFGR2_RSHIFT3_Msk /*!< ADC Right-shift data after Offset 3 correction */
  2704. #define ADC_CFGR2_RSHIFT4_Pos (14U)
  2705. #define ADC_CFGR2_RSHIFT4_Msk (0x1UL << ADC_CFGR2_RSHIFT4_Pos) /*!< 0x00004000 */
  2706. #define ADC_CFGR2_RSHIFT4 ADC_CFGR2_RSHIFT4_Msk /*!< ADC Right-shift data after Offset 4 correction */
  2707. #define ADC_CFGR2_OVSR_Pos (16U)
  2708. #define ADC_CFGR2_OVSR_Msk (0x3FFUL << ADC_CFGR2_OVSR_Pos) /*!< 0x03FF0000 */
  2709. #define ADC_CFGR2_OVSR ADC_CFGR2_OVSR_Msk /*!< ADC oversampling Ratio */
  2710. #define ADC_CFGR2_OVSR_0 (0x001UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00010000 */
  2711. #define ADC_CFGR2_OVSR_1 (0x002UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00020000 */
  2712. #define ADC_CFGR2_OVSR_2 (0x004UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00040000 */
  2713. #define ADC_CFGR2_OVSR_3 (0x008UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00080000 */
  2714. #define ADC_CFGR2_OVSR_4 (0x010UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00100000 */
  2715. #define ADC_CFGR2_OVSR_5 (0x020UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00200000 */
  2716. #define ADC_CFGR2_OVSR_6 (0x040UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00400000 */
  2717. #define ADC_CFGR2_OVSR_7 (0x080UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00800000 */
  2718. #define ADC_CFGR2_OVSR_8 (0x100UL << ADC_CFGR2_OVSR_Pos) /*!< 0x01000000 */
  2719. #define ADC_CFGR2_OVSR_9 (0x200UL << ADC_CFGR2_OVSR_Pos) /*!< 0x02000000 */
  2720. #define ADC_CFGR2_LSHIFT_Pos (28U)
  2721. #define ADC_CFGR2_LSHIFT_Msk (0xFUL << ADC_CFGR2_LSHIFT_Pos) /*!< 0xF0000000 */
  2722. #define ADC_CFGR2_LSHIFT ADC_CFGR2_LSHIFT_Msk /*!< ADC Left shift factor */
  2723. #define ADC_CFGR2_LSHIFT_0 (0x1UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x10000000 */
  2724. #define ADC_CFGR2_LSHIFT_1 (0x2UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x20000000 */
  2725. #define ADC_CFGR2_LSHIFT_2 (0x4UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x40000000 */
  2726. #define ADC_CFGR2_LSHIFT_3 (0x8UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x80000000 */
  2727. #define ADC3_CFGR2_OVSR_Pos (2U)
  2728. #define ADC3_CFGR2_OVSR_Msk (0x7UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x0000001C */
  2729. #define ADC3_CFGR2_OVSR ADC3_CFGR2_OVSR_Msk /*!< ADC oversampling ratio */
  2730. #define ADC3_CFGR2_OVSR_0 (0x1UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x00000004 */
  2731. #define ADC3_CFGR2_OVSR_1 (0x2UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x00000008 */
  2732. #define ADC3_CFGR2_OVSR_2 (0x4UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x00000010 */
  2733. #define ADC3_CFGR2_SWTRIG_Pos (25U)
  2734. #define ADC3_CFGR2_SWTRIG_Msk (0x1UL << ADC3_CFGR2_SWTRIG_Pos) /*!< 0x02000000 */
  2735. #define ADC3_CFGR2_SWTRIG ADC3_CFGR2_SWTRIG_Msk /*!< ADC Software Trigger Bit for Sample time control trigger mode */
  2736. #define ADC3_CFGR2_BULB_Pos (26U)
  2737. #define ADC3_CFGR2_BULB_Msk (0x1UL << ADC3_CFGR2_BULB_Pos) /*!< 0x04000000 */
  2738. #define ADC3_CFGR2_BULB ADC3_CFGR2_BULB_Msk /*!< ADC Bulb sampling mode */
  2739. #define ADC3_CFGR2_SMPTRIG_Pos (27U)
  2740. #define ADC3_CFGR2_SMPTRIG_Msk (0x1UL << ADC3_CFGR2_SMPTRIG_Pos) /*!< 0x08000000 */
  2741. #define ADC3_CFGR2_SMPTRIG ADC3_CFGR2_SMPTRIG_Msk /*!< ADC Sample Time Control Trigger mode */
  2742. /******************** Bit definition for ADC_SMPR1 register ********************/
  2743. #define ADC_SMPR1_SMP0_Pos (0U)
  2744. #define ADC_SMPR1_SMP0_Msk (0x7UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */
  2745. #define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC Channel 0 Sampling time selection */
  2746. #define ADC_SMPR1_SMP0_0 (0x1UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */
  2747. #define ADC_SMPR1_SMP0_1 (0x2UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */
  2748. #define ADC_SMPR1_SMP0_2 (0x4UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */
  2749. #define ADC_SMPR1_SMP1_Pos (3U)
  2750. #define ADC_SMPR1_SMP1_Msk (0x7UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */
  2751. #define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC Channel 1 Sampling time selection */
  2752. #define ADC_SMPR1_SMP1_0 (0x1UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */
  2753. #define ADC_SMPR1_SMP1_1 (0x2UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */
  2754. #define ADC_SMPR1_SMP1_2 (0x4UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */
  2755. #define ADC_SMPR1_SMP2_Pos (6U)
  2756. #define ADC_SMPR1_SMP2_Msk (0x7UL << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */
  2757. #define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC Channel 2 Sampling time selection */
  2758. #define ADC_SMPR1_SMP2_0 (0x1UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */
  2759. #define ADC_SMPR1_SMP2_1 (0x2UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */
  2760. #define ADC_SMPR1_SMP2_2 (0x4UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */
  2761. #define ADC_SMPR1_SMP3_Pos (9U)
  2762. #define ADC_SMPR1_SMP3_Msk (0x7UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */
  2763. #define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC Channel 3 Sampling time selection */
  2764. #define ADC_SMPR1_SMP3_0 (0x1UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */
  2765. #define ADC_SMPR1_SMP3_1 (0x2UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */
  2766. #define ADC_SMPR1_SMP3_2 (0x4UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */
  2767. #define ADC_SMPR1_SMP4_Pos (12U)
  2768. #define ADC_SMPR1_SMP4_Msk (0x7UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */
  2769. #define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC Channel 4 Sampling time selection */
  2770. #define ADC_SMPR1_SMP4_0 (0x1UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */
  2771. #define ADC_SMPR1_SMP4_1 (0x2UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */
  2772. #define ADC_SMPR1_SMP4_2 (0x4UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */
  2773. #define ADC_SMPR1_SMP5_Pos (15U)
  2774. #define ADC_SMPR1_SMP5_Msk (0x7UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */
  2775. #define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC Channel 5 Sampling time selection */
  2776. #define ADC_SMPR1_SMP5_0 (0x1UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */
  2777. #define ADC_SMPR1_SMP5_1 (0x2UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */
  2778. #define ADC_SMPR1_SMP5_2 (0x4UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */
  2779. #define ADC_SMPR1_SMP6_Pos (18U)
  2780. #define ADC_SMPR1_SMP6_Msk (0x7UL << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */
  2781. #define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC Channel 6 Sampling time selection */
  2782. #define ADC_SMPR1_SMP6_0 (0x1UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */
  2783. #define ADC_SMPR1_SMP6_1 (0x2UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */
  2784. #define ADC_SMPR1_SMP6_2 (0x4UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */
  2785. #define ADC_SMPR1_SMP7_Pos (21U)
  2786. #define ADC_SMPR1_SMP7_Msk (0x7UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */
  2787. #define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC Channel 7 Sampling time selection */
  2788. #define ADC_SMPR1_SMP7_0 (0x1UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */
  2789. #define ADC_SMPR1_SMP7_1 (0x2UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */
  2790. #define ADC_SMPR1_SMP7_2 (0x4UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */
  2791. #define ADC_SMPR1_SMP8_Pos (24U)
  2792. #define ADC_SMPR1_SMP8_Msk (0x7UL << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */
  2793. #define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC Channel 8 Sampling time selection */
  2794. #define ADC_SMPR1_SMP8_0 (0x1UL << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */
  2795. #define ADC_SMPR1_SMP8_1 (0x2UL << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */
  2796. #define ADC_SMPR1_SMP8_2 (0x4UL << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */
  2797. #define ADC_SMPR1_SMP9_Pos (27U)
  2798. #define ADC_SMPR1_SMP9_Msk (0x7UL << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */
  2799. #define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC Channel 9 Sampling time selection */
  2800. #define ADC_SMPR1_SMP9_0 (0x1UL << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */
  2801. #define ADC_SMPR1_SMP9_1 (0x2UL << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
  2802. #define ADC_SMPR1_SMP9_2 (0x4UL << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
  2803. /******************** Bit definition for ADC_SMPR2 register ********************/
  2804. #define ADC_SMPR2_SMP10_Pos (0U)
  2805. #define ADC_SMPR2_SMP10_Msk (0x7UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
  2806. #define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC Channel 10 Sampling time selection */
  2807. #define ADC_SMPR2_SMP10_0 (0x1UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */
  2808. #define ADC_SMPR2_SMP10_1 (0x2UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */
  2809. #define ADC_SMPR2_SMP10_2 (0x4UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */
  2810. #define ADC_SMPR2_SMP11_Pos (3U)
  2811. #define ADC_SMPR2_SMP11_Msk (0x7UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */
  2812. #define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC Channel 11 Sampling time selection */
  2813. #define ADC_SMPR2_SMP11_0 (0x1UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */
  2814. #define ADC_SMPR2_SMP11_1 (0x2UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */
  2815. #define ADC_SMPR2_SMP11_2 (0x4UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */
  2816. #define ADC_SMPR2_SMP12_Pos (6U)
  2817. #define ADC_SMPR2_SMP12_Msk (0x7UL << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */
  2818. #define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC Channel 12 Sampling time selection */
  2819. #define ADC_SMPR2_SMP12_0 (0x1UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */
  2820. #define ADC_SMPR2_SMP12_1 (0x2UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */
  2821. #define ADC_SMPR2_SMP12_2 (0x4UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */
  2822. #define ADC_SMPR2_SMP13_Pos (9U)
  2823. #define ADC_SMPR2_SMP13_Msk (0x7UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */
  2824. #define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC Channel 13 Sampling time selection */
  2825. #define ADC_SMPR2_SMP13_0 (0x1UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */
  2826. #define ADC_SMPR2_SMP13_1 (0x2UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */
  2827. #define ADC_SMPR2_SMP13_2 (0x4UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */
  2828. #define ADC_SMPR2_SMP14_Pos (12U)
  2829. #define ADC_SMPR2_SMP14_Msk (0x7UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */
  2830. #define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC Channel 14 Sampling time selection */
  2831. #define ADC_SMPR2_SMP14_0 (0x1UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */
  2832. #define ADC_SMPR2_SMP14_1 (0x2UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */
  2833. #define ADC_SMPR2_SMP14_2 (0x4UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */
  2834. #define ADC_SMPR2_SMP15_Pos (15U)
  2835. #define ADC_SMPR2_SMP15_Msk (0x7UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */
  2836. #define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC Channel 15 Sampling time selection */
  2837. #define ADC_SMPR2_SMP15_0 (0x1UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */
  2838. #define ADC_SMPR2_SMP15_1 (0x2UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */
  2839. #define ADC_SMPR2_SMP15_2 (0x4UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */
  2840. #define ADC_SMPR2_SMP16_Pos (18U)
  2841. #define ADC_SMPR2_SMP16_Msk (0x7UL << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */
  2842. #define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC Channel 16 Sampling time selection */
  2843. #define ADC_SMPR2_SMP16_0 (0x1UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */
  2844. #define ADC_SMPR2_SMP16_1 (0x2UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */
  2845. #define ADC_SMPR2_SMP16_2 (0x4UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */
  2846. #define ADC_SMPR2_SMP17_Pos (21U)
  2847. #define ADC_SMPR2_SMP17_Msk (0x7UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */
  2848. #define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC Channel 17 Sampling time selection */
  2849. #define ADC_SMPR2_SMP17_0 (0x1UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */
  2850. #define ADC_SMPR2_SMP17_1 (0x2UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */
  2851. #define ADC_SMPR2_SMP17_2 (0x4UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */
  2852. #define ADC_SMPR2_SMP18_Pos (24U)
  2853. #define ADC_SMPR2_SMP18_Msk (0x7UL << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */
  2854. #define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC Channel 18 Sampling time selection */
  2855. #define ADC_SMPR2_SMP18_0 (0x1UL << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */
  2856. #define ADC_SMPR2_SMP18_1 (0x2UL << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */
  2857. #define ADC_SMPR2_SMP18_2 (0x4UL << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */
  2858. #define ADC_SMPR2_SMP19_Pos (27U)
  2859. #define ADC_SMPR2_SMP19_Msk (0x7UL << ADC_SMPR2_SMP19_Pos) /*!< 0x38000000 */
  2860. #define ADC_SMPR2_SMP19 ADC_SMPR2_SMP19_Msk /*!< ADC Channel 19 Sampling time selection */
  2861. #define ADC_SMPR2_SMP19_0 (0x1UL << ADC_SMPR2_SMP19_Pos) /*!< 0x08000000 */
  2862. #define ADC_SMPR2_SMP19_1 (0x2UL << ADC_SMPR2_SMP19_Pos) /*!< 0x10000000 */
  2863. #define ADC_SMPR2_SMP19_2 (0x4UL << ADC_SMPR2_SMP19_Pos) /*!< 0x20000000 */
  2864. /******************** Bit definition for ADC_PCSEL register ********************/
  2865. #define ADC_PCSEL_PCSEL_Pos (0U)
  2866. #define ADC_PCSEL_PCSEL_Msk (0xFFFFFUL << ADC_PCSEL_PCSEL_Pos) /*!< 0x000FFFFF */
  2867. #define ADC_PCSEL_PCSEL ADC_PCSEL_PCSEL_Msk /*!< ADC pre channel selection */
  2868. #define ADC_PCSEL_PCSEL_0 (0x00001UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000001 */
  2869. #define ADC_PCSEL_PCSEL_1 (0x00002UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000002 */
  2870. #define ADC_PCSEL_PCSEL_2 (0x00004UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000004 */
  2871. #define ADC_PCSEL_PCSEL_3 (0x00008UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000008 */
  2872. #define ADC_PCSEL_PCSEL_4 (0x00010UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000010 */
  2873. #define ADC_PCSEL_PCSEL_5 (0x00020UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000020 */
  2874. #define ADC_PCSEL_PCSEL_6 (0x00040UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000040 */
  2875. #define ADC_PCSEL_PCSEL_7 (0x00080UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000080 */
  2876. #define ADC_PCSEL_PCSEL_8 (0x00100UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000100 */
  2877. #define ADC_PCSEL_PCSEL_9 (0x00200UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000200 */
  2878. #define ADC_PCSEL_PCSEL_10 (0x00400UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000400 */
  2879. #define ADC_PCSEL_PCSEL_11 (0x00800UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000800 */
  2880. #define ADC_PCSEL_PCSEL_12 (0x01000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00001000 */
  2881. #define ADC_PCSEL_PCSEL_13 (0x02000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00002000 */
  2882. #define ADC_PCSEL_PCSEL_14 (0x04000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00004000 */
  2883. #define ADC_PCSEL_PCSEL_15 (0x08000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00008000 */
  2884. #define ADC_PCSEL_PCSEL_16 (0x10000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00010000 */
  2885. #define ADC_PCSEL_PCSEL_17 (0x20000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00020000 */
  2886. #define ADC_PCSEL_PCSEL_18 (0x40000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00040000 */
  2887. #define ADC_PCSEL_PCSEL_19 (0x80000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00080000 */
  2888. /***************** Bit definition for ADC_LTR1, 2, 3 registers *****************/
  2889. #define ADC_LTR_LT_Pos (0U)
  2890. #define ADC_LTR_LT_Msk (0x3FFFFFFUL << ADC_LTR_LT_Pos) /*!< 0x03FFFFFF */
  2891. #define ADC_LTR_LT ADC_LTR_LT_Msk /*!< ADC Analog watchdog 1, 2 and 3 lower threshold */
  2892. /***************** Bit definition for ADC_HTR1, 2, 3 registers ****************/
  2893. #define ADC_HTR_HT_Pos (0U)
  2894. #define ADC_HTR_HT_Msk (0x3FFFFFFUL << ADC_HTR_HT_Pos) /*!< 0x03FFFFFF */
  2895. #define ADC_HTR_HT ADC_HTR_HT_Msk /*!< ADC Analog watchdog 1,2 and 3 higher threshold */
  2896. /******************** Bit definition for ADC3_TR1 register *******************/
  2897. #define ADC3_TR1_LT1_Pos (0U)
  2898. #define ADC3_TR1_LT1_Msk (0xFFFUL << ADC3_TR1_LT1_Pos) /*!< 0x00000FFF */
  2899. #define ADC3_TR1_LT1 ADC3_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */
  2900. #define ADC3_TR1_AWDFILT_Pos (12U)
  2901. #define ADC3_TR1_AWDFILT_Msk (0x7UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00007000 */
  2902. #define ADC3_TR1_AWDFILT ADC3_TR1_AWDFILT_Msk /*!< ADC analog watchdog filtering parameter */
  2903. #define ADC3_TR1_AWDFILT_0 (0x1UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00001000 */
  2904. #define ADC3_TR1_AWDFILT_1 (0x2UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00002000 */
  2905. #define ADC3_TR1_AWDFILT_2 (0x4UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00004000 */
  2906. #define ADC3_TR1_HT1_Pos (16U)
  2907. #define ADC3_TR1_HT1_Msk (0xFFFUL << ADC3_TR1_HT1_Pos) /*!< 0x0FFF0000 */
  2908. #define ADC3_TR1_HT1 ADC3_TR1_HT1_Msk /*!< ADC analog watchdog 1 threshold high */
  2909. /******************** Bit definition for ADC3_TR2 register *******************/
  2910. #define ADC3_TR2_LT2_Pos (0U)
  2911. #define ADC3_TR2_LT2_Msk (0xFFUL << ADC3_TR2_LT2_Pos) /*!< 0x000000FF */
  2912. #define ADC3_TR2_LT2 ADC3_TR2_LT2_Msk /*!< ADC analog watchdog 2 threshold low */
  2913. #define ADC3_TR2_HT2_Pos (16U)
  2914. #define ADC3_TR2_HT2_Msk (0xFFUL << ADC3_TR2_HT2_Pos) /*!< 0x00FF0000 */
  2915. #define ADC3_TR2_HT2 ADC3_TR2_HT2_Msk /*!< ADC analog watchdog 2 threshold high */
  2916. /******************** Bit definition for ADC3_TR3 register *******************/
  2917. #define ADC3_TR3_LT3_Pos (0U)
  2918. #define ADC3_TR3_LT3_Msk (0xFFUL << ADC3_TR3_LT3_Pos) /*!< 0x000000FF */
  2919. #define ADC3_TR3_LT3 ADC3_TR3_LT3_Msk /*!< ADC analog watchdog 3 threshold low */
  2920. #define ADC3_TR3_HT3_Pos (16U)
  2921. #define ADC3_TR3_HT3_Msk (0xFFUL << ADC3_TR3_HT3_Pos) /*!< 0x00FF0000 */
  2922. #define ADC3_TR3_HT3 ADC3_TR3_HT3_Msk /*!< ADC analog watchdog 3 threshold high */
  2923. /******************** Bit definition for ADC_SQR1 register ********************/
  2924. #define ADC_SQR1_L_Pos (0U)
  2925. #define ADC_SQR1_L_Msk (0xFUL << ADC_SQR1_L_Pos) /*!< 0x0000000F */
  2926. #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC regular channel sequence length */
  2927. #define ADC_SQR1_L_0 (0x1UL << ADC_SQR1_L_Pos) /*!< 0x00000001 */
  2928. #define ADC_SQR1_L_1 (0x2UL << ADC_SQR1_L_Pos) /*!< 0x00000002 */
  2929. #define ADC_SQR1_L_2 (0x4UL << ADC_SQR1_L_Pos) /*!< 0x00000004 */
  2930. #define ADC_SQR1_L_3 (0x8UL << ADC_SQR1_L_Pos) /*!< 0x00000008 */
  2931. #define ADC_SQR1_SQ1_Pos (6U)
  2932. #define ADC_SQR1_SQ1_Msk (0x1FUL << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */
  2933. #define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC 1st conversion in regular sequence */
  2934. #define ADC_SQR1_SQ1_0 (0x01UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */
  2935. #define ADC_SQR1_SQ1_1 (0x02UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */
  2936. #define ADC_SQR1_SQ1_2 (0x04UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */
  2937. #define ADC_SQR1_SQ1_3 (0x08UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */
  2938. #define ADC_SQR1_SQ1_4 (0x10UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */
  2939. #define ADC_SQR1_SQ2_Pos (12U)
  2940. #define ADC_SQR1_SQ2_Msk (0x1FUL << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */
  2941. #define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC 2nd conversion in regular sequence */
  2942. #define ADC_SQR1_SQ2_0 (0x01UL << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */
  2943. #define ADC_SQR1_SQ2_1 (0x02UL << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */
  2944. #define ADC_SQR1_SQ2_2 (0x04UL << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */
  2945. #define ADC_SQR1_SQ2_3 (0x08UL << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */
  2946. #define ADC_SQR1_SQ2_4 (0x10UL << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */
  2947. #define ADC_SQR1_SQ3_Pos (18U)
  2948. #define ADC_SQR1_SQ3_Msk (0x1FUL << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */
  2949. #define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC 3rd conversion in regular sequence */
  2950. #define ADC_SQR1_SQ3_0 (0x01UL << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */
  2951. #define ADC_SQR1_SQ3_1 (0x02UL << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */
  2952. #define ADC_SQR1_SQ3_2 (0x04UL << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */
  2953. #define ADC_SQR1_SQ3_3 (0x08UL << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */
  2954. #define ADC_SQR1_SQ3_4 (0x10UL << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */
  2955. #define ADC_SQR1_SQ4_Pos (24U)
  2956. #define ADC_SQR1_SQ4_Msk (0x1FUL << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */
  2957. #define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC 4th conversion in regular sequence */
  2958. #define ADC_SQR1_SQ4_0 (0x01UL << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */
  2959. #define ADC_SQR1_SQ4_1 (0x02UL << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */
  2960. #define ADC_SQR1_SQ4_2 (0x04UL << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */
  2961. #define ADC_SQR1_SQ4_3 (0x08UL << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */
  2962. #define ADC_SQR1_SQ4_4 (0x10UL << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */
  2963. /******************** Bit definition for ADC_SQR2 register ********************/
  2964. #define ADC_SQR2_SQ5_Pos (0U)
  2965. #define ADC_SQR2_SQ5_Msk (0x1FUL << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */
  2966. #define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC 5th conversion in regular sequence */
  2967. #define ADC_SQR2_SQ5_0 (0x01UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */
  2968. #define ADC_SQR2_SQ5_1 (0x02UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */
  2969. #define ADC_SQR2_SQ5_2 (0x04UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */
  2970. #define ADC_SQR2_SQ5_3 (0x08UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */
  2971. #define ADC_SQR2_SQ5_4 (0x10UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */
  2972. #define ADC_SQR2_SQ6_Pos (6U)
  2973. #define ADC_SQR2_SQ6_Msk (0x1FUL << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */
  2974. #define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC 6th conversion in regular sequence */
  2975. #define ADC_SQR2_SQ6_0 (0x01UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */
  2976. #define ADC_SQR2_SQ6_1 (0x02UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */
  2977. #define ADC_SQR2_SQ6_2 (0x04UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */
  2978. #define ADC_SQR2_SQ6_3 (0x08UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */
  2979. #define ADC_SQR2_SQ6_4 (0x10UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */
  2980. #define ADC_SQR2_SQ7_Pos (12U)
  2981. #define ADC_SQR2_SQ7_Msk (0x1FUL << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */
  2982. #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC 7th conversion in regular sequence */
  2983. #define ADC_SQR2_SQ7_0 (0x01UL << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */
  2984. #define ADC_SQR2_SQ7_1 (0x02UL << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */
  2985. #define ADC_SQR2_SQ7_2 (0x04UL << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */
  2986. #define ADC_SQR2_SQ7_3 (0x08UL << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */
  2987. #define ADC_SQR2_SQ7_4 (0x10UL << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */
  2988. #define ADC_SQR2_SQ8_Pos (18U)
  2989. #define ADC_SQR2_SQ8_Msk (0x1FUL << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */
  2990. #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC 8th conversion in regular sequence */
  2991. #define ADC_SQR2_SQ8_0 (0x01UL << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */
  2992. #define ADC_SQR2_SQ8_1 (0x02UL << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */
  2993. #define ADC_SQR2_SQ8_2 (0x04UL << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */
  2994. #define ADC_SQR2_SQ8_3 (0x08UL << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */
  2995. #define ADC_SQR2_SQ8_4 (0x10UL << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */
  2996. #define ADC_SQR2_SQ9_Pos (24U)
  2997. #define ADC_SQR2_SQ9_Msk (0x1FUL << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */
  2998. #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC 9th conversion in regular sequence */
  2999. #define ADC_SQR2_SQ9_0 (0x01UL << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */
  3000. #define ADC_SQR2_SQ9_1 (0x02UL << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */
  3001. #define ADC_SQR2_SQ9_2 (0x04UL << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */
  3002. #define ADC_SQR2_SQ9_3 (0x08UL << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */
  3003. #define ADC_SQR2_SQ9_4 (0x10UL << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */
  3004. /******************** Bit definition for ADC_SQR3 register ********************/
  3005. #define ADC_SQR3_SQ10_Pos (0U)
  3006. #define ADC_SQR3_SQ10_Msk (0x1FUL << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */
  3007. #define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC 10th conversion in regular sequence */
  3008. #define ADC_SQR3_SQ10_0 (0x01UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */
  3009. #define ADC_SQR3_SQ10_1 (0x02UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */
  3010. #define ADC_SQR3_SQ10_2 (0x04UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */
  3011. #define ADC_SQR3_SQ10_3 (0x08UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */
  3012. #define ADC_SQR3_SQ10_4 (0x10UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */
  3013. #define ADC_SQR3_SQ11_Pos (6U)
  3014. #define ADC_SQR3_SQ11_Msk (0x1FUL << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */
  3015. #define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC 11th conversion in regular sequence */
  3016. #define ADC_SQR3_SQ11_0 (0x01UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */
  3017. #define ADC_SQR3_SQ11_1 (0x02UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */
  3018. #define ADC_SQR3_SQ11_2 (0x04UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */
  3019. #define ADC_SQR3_SQ11_3 (0x08UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */
  3020. #define ADC_SQR3_SQ11_4 (0x10UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */
  3021. #define ADC_SQR3_SQ12_Pos (12U)
  3022. #define ADC_SQR3_SQ12_Msk (0x1FUL << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */
  3023. #define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC 12th conversion in regular sequence */
  3024. #define ADC_SQR3_SQ12_0 (0x01UL << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */
  3025. #define ADC_SQR3_SQ12_1 (0x02UL << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */
  3026. #define ADC_SQR3_SQ12_2 (0x04UL << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */
  3027. #define ADC_SQR3_SQ12_3 (0x08UL << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */
  3028. #define ADC_SQR3_SQ12_4 (0x10UL << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */
  3029. #define ADC_SQR3_SQ13_Pos (18U)
  3030. #define ADC_SQR3_SQ13_Msk (0x1FUL << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */
  3031. #define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC 13th conversion in regular sequence */
  3032. #define ADC_SQR3_SQ13_0 (0x01UL << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */
  3033. #define ADC_SQR3_SQ13_1 (0x02UL << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */
  3034. #define ADC_SQR3_SQ13_2 (0x04UL << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */
  3035. #define ADC_SQR3_SQ13_3 (0x08UL << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */
  3036. #define ADC_SQR3_SQ13_4 (0x10UL << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */
  3037. #define ADC_SQR3_SQ14_Pos (24U)
  3038. #define ADC_SQR3_SQ14_Msk (0x1FUL << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */
  3039. #define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC 14th conversion in regular sequence */
  3040. #define ADC_SQR3_SQ14_0 (0x01UL << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */
  3041. #define ADC_SQR3_SQ14_1 (0x02UL << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */
  3042. #define ADC_SQR3_SQ14_2 (0x04UL << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */
  3043. #define ADC_SQR3_SQ14_3 (0x08UL << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */
  3044. #define ADC_SQR3_SQ14_4 (0x10UL << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */
  3045. /******************** Bit definition for ADC_SQR4 register ********************/
  3046. #define ADC_SQR4_SQ15_Pos (0U)
  3047. #define ADC_SQR4_SQ15_Msk (0x1FUL << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */
  3048. #define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC 15th conversion in regular sequence */
  3049. #define ADC_SQR4_SQ15_0 (0x01UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */
  3050. #define ADC_SQR4_SQ15_1 (0x02UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */
  3051. #define ADC_SQR4_SQ15_2 (0x04UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */
  3052. #define ADC_SQR4_SQ15_3 (0x08UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */
  3053. #define ADC_SQR4_SQ15_4 (0x10UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */
  3054. #define ADC_SQR4_SQ16_Pos (6U)
  3055. #define ADC_SQR4_SQ16_Msk (0x1FUL << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */
  3056. #define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC 16th conversion in regular sequence */
  3057. #define ADC_SQR4_SQ16_0 (0x01UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */
  3058. #define ADC_SQR4_SQ16_1 (0x02UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */
  3059. #define ADC_SQR4_SQ16_2 (0x04UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */
  3060. #define ADC_SQR4_SQ16_3 (0x08UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */
  3061. #define ADC_SQR4_SQ16_4 (0x10UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */
  3062. /******************** Bit definition for ADC_DR register ********************/
  3063. #define ADC_DR_RDATA_Pos (0U)
  3064. #define ADC_DR_RDATA_Msk (0xFFFFFFFFUL << ADC_DR_RDATA_Pos) /*!< 0xFFFFFFFF */
  3065. #define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC regular Data converted */
  3066. /******************** Bit definition for ADC_JSQR register ********************/
  3067. #define ADC_JSQR_JL_Pos (0U)
  3068. #define ADC_JSQR_JL_Msk (0x3UL << ADC_JSQR_JL_Pos) /*!< 0x00000003 */
  3069. #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC injected channel sequence length */
  3070. #define ADC_JSQR_JL_0 (0x1UL << ADC_JSQR_JL_Pos) /*!< 0x00000001 */
  3071. #define ADC_JSQR_JL_1 (0x2UL << ADC_JSQR_JL_Pos) /*!< 0x00000002 */
  3072. #define ADC_JSQR_JEXTSEL_Pos (2U)
  3073. #define ADC_JSQR_JEXTSEL_Msk (0x1FUL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000007C */
  3074. #define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC external trigger selection for injected group */
  3075. #define ADC_JSQR_JEXTSEL_0 (0x01UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */
  3076. #define ADC_JSQR_JEXTSEL_1 (0x02UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */
  3077. #define ADC_JSQR_JEXTSEL_2 (0x04UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */
  3078. #define ADC_JSQR_JEXTSEL_3 (0x08UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */
  3079. #define ADC_JSQR_JEXTSEL_4 (0x10UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000040 */
  3080. #define ADC_JSQR_JEXTEN_Pos (7U)
  3081. #define ADC_JSQR_JEXTEN_Msk (0x3UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000180 */
  3082. #define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC external trigger enable and polarity selection for injected channels */
  3083. #define ADC_JSQR_JEXTEN_0 (0x1UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */
  3084. #define ADC_JSQR_JEXTEN_1 (0x2UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000100 */
  3085. #define ADC_JSQR_JSQ1_Pos (9U)
  3086. #define ADC_JSQR_JSQ1_Msk (0x1FUL << ADC_JSQR_JSQ1_Pos) /*!< 0x00003E00 */
  3087. #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC 1st conversion in injected sequence */
  3088. #define ADC_JSQR_JSQ1_0 (0x01UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */
  3089. #define ADC_JSQR_JSQ1_1 (0x02UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */
  3090. #define ADC_JSQR_JSQ1_2 (0x04UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */
  3091. #define ADC_JSQR_JSQ1_3 (0x08UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */
  3092. #define ADC_JSQR_JSQ1_4 (0x10UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00002000 */
  3093. #define ADC_JSQR_JSQ2_Pos (15U)
  3094. #define ADC_JSQR_JSQ2_Msk (0x1FUL << ADC_JSQR_JSQ2_Pos) /*!< 0x000F8000 */
  3095. #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC 2nd conversion in injected sequence */
  3096. #define ADC_JSQR_JSQ2_0 (0x01UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */
  3097. #define ADC_JSQR_JSQ2_1 (0x02UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */
  3098. #define ADC_JSQR_JSQ2_2 (0x04UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */
  3099. #define ADC_JSQR_JSQ2_3 (0x08UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */
  3100. #define ADC_JSQR_JSQ2_4 (0x10UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00080000 */
  3101. #define ADC_JSQR_JSQ3_Pos (21U)
  3102. #define ADC_JSQR_JSQ3_Msk (0x1FUL << ADC_JSQR_JSQ3_Pos) /*!< 0x03E00000 */
  3103. #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC 3rd conversion in injected sequence */
  3104. #define ADC_JSQR_JSQ3_0 (0x01UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */
  3105. #define ADC_JSQR_JSQ3_1 (0x02UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */
  3106. #define ADC_JSQR_JSQ3_2 (0x04UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */
  3107. #define ADC_JSQR_JSQ3_3 (0x08UL << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */
  3108. #define ADC_JSQR_JSQ3_4 (0x10UL << ADC_JSQR_JSQ3_Pos) /*!< 0x02000000 */
  3109. #define ADC_JSQR_JSQ4_Pos (27U)
  3110. #define ADC_JSQR_JSQ4_Msk (0x1FUL << ADC_JSQR_JSQ4_Pos) /*!< 0xF8000000 */
  3111. #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC 4th conversion in injected sequence */
  3112. #define ADC_JSQR_JSQ4_0 (0x01UL << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */
  3113. #define ADC_JSQR_JSQ4_1 (0x02UL << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */
  3114. #define ADC_JSQR_JSQ4_2 (0x04UL << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */
  3115. #define ADC_JSQR_JSQ4_3 (0x08UL << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */
  3116. #define ADC_JSQR_JSQ4_4 (0x10UL << ADC_JSQR_JSQ4_Pos) /*!< 0x80000000 */
  3117. /******************** Bit definition for ADC_OFR1 register ********************/
  3118. #define ADC_OFR1_OFFSET1_Pos (0U)
  3119. #define ADC_OFR1_OFFSET1_Msk (0x3FFFFFFUL << ADC_OFR1_OFFSET1_Pos) /*!< 0x03FFFFFF */
  3120. #define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */
  3121. #define ADC_OFR1_OFFSET1_0 (0x0000001UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
  3122. #define ADC_OFR1_OFFSET1_1 (0x0000002UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
  3123. #define ADC_OFR1_OFFSET1_2 (0x0000004UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
  3124. #define ADC_OFR1_OFFSET1_3 (0x0000008UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
  3125. #define ADC_OFR1_OFFSET1_4 (0x0000010UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
  3126. #define ADC_OFR1_OFFSET1_5 (0x0000020UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
  3127. #define ADC_OFR1_OFFSET1_6 (0x0000040UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
  3128. #define ADC_OFR1_OFFSET1_7 (0x0000080UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
  3129. #define ADC_OFR1_OFFSET1_8 (0x0000100UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
  3130. #define ADC_OFR1_OFFSET1_9 (0x0000200UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
  3131. #define ADC_OFR1_OFFSET1_10 (0x0000400UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
  3132. #define ADC_OFR1_OFFSET1_11 (0x0000800UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
  3133. #define ADC_OFR1_OFFSET1_12 (0x0001000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00001000 */
  3134. #define ADC_OFR1_OFFSET1_13 (0x0002000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00002000 */
  3135. #define ADC_OFR1_OFFSET1_14 (0x0004000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00004000 */
  3136. #define ADC_OFR1_OFFSET1_15 (0x0008000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00008000 */
  3137. #define ADC_OFR1_OFFSET1_16 (0x0010000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00010000 */
  3138. #define ADC_OFR1_OFFSET1_17 (0x0020000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00020000 */
  3139. #define ADC_OFR1_OFFSET1_18 (0x0040000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00040000 */
  3140. #define ADC_OFR1_OFFSET1_19 (0x0080000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00080000 */
  3141. #define ADC_OFR1_OFFSET1_20 (0x0100000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00100000 */
  3142. #define ADC_OFR1_OFFSET1_21 (0x0200000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00200000 */
  3143. #define ADC_OFR1_OFFSET1_22 (0x0400000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00400000 */
  3144. #define ADC_OFR1_OFFSET1_23 (0x0800000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00800000 */
  3145. #define ADC_OFR1_OFFSET1_24 (0x1000000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x01000000 */
  3146. #define ADC_OFR1_OFFSET1_25 (0x2000000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x02000000 */
  3147. #define ADC_OFR1_OFFSET1_CH_Pos (26U)
  3148. #define ADC_OFR1_OFFSET1_CH_Msk (0x1FUL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */
  3149. #define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC Channel selection for the data offset 1 */
  3150. #define ADC_OFR1_OFFSET1_CH_0 (0x01UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */
  3151. #define ADC_OFR1_OFFSET1_CH_1 (0x02UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */
  3152. #define ADC_OFR1_OFFSET1_CH_2 (0x04UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */
  3153. #define ADC_OFR1_OFFSET1_CH_3 (0x08UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */
  3154. #define ADC_OFR1_OFFSET1_CH_4 (0x10UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */
  3155. #define ADC_OFR1_SSATE_Pos (31U)
  3156. #define ADC_OFR1_SSATE_Msk (0x1UL << ADC_OFR1_SSATE_Pos) /*!< 0x80000000 */
  3157. #define ADC_OFR1_SSATE ADC_OFR1_SSATE_Msk /*!< ADC Signed saturation Enable */
  3158. #define ADC3_OFR1_OFFSET1_Pos (0U)
  3159. #define ADC3_OFR1_OFFSET1_Msk (0xFFFUL << ADC3_OFR1_OFFSET1_Pos) /*!< 0x00000FFF */
  3160. #define ADC3_OFR1_OFFSET1 ADC3_OFR1_OFFSET1_Msk /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */
  3161. #define ADC3_OFR1_OFFSETPOS_Pos (24U)
  3162. #define ADC3_OFR1_OFFSETPOS_Msk (0x1UL << ADC3_OFR1_OFFSETPOS_Pos) /*!< 0x01000000 */
  3163. #define ADC3_OFR1_OFFSETPOS ADC3_OFR1_OFFSETPOS_Msk /*!< ADC offset number 1 positive */
  3164. #define ADC3_OFR1_SATEN_Pos (25U)
  3165. #define ADC3_OFR1_SATEN_Msk (0x1UL << ADC3_OFR1_SATEN_Pos) /*!< 0x02000000 */
  3166. #define ADC3_OFR1_SATEN ADC3_OFR1_SATEN_Msk /*!< ADC offset number 1 saturation enable */
  3167. #define ADC3_OFR1_OFFSET1_EN_Pos (31U)
  3168. #define ADC3_OFR1_OFFSET1_EN_Msk (0x1UL << ADC3_OFR1_OFFSET1_EN_Pos) /*!< 0x80000000 */
  3169. #define ADC3_OFR1_OFFSET1_EN ADC3_OFR1_OFFSET1_EN_Msk /*!< ADC offset number 1 enable */
  3170. /******************** Bit definition for ADC_OFR2 register ********************/
  3171. #define ADC_OFR2_OFFSET2_Pos (0U)
  3172. #define ADC_OFR2_OFFSET2_Msk (0x3FFFFFFUL << ADC_OFR2_OFFSET2_Pos) /*!< 0x03FFFFFF */
  3173. #define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC data offset 2 for channel programmed into bits OFFSET2_CH[4:0] */
  3174. #define ADC_OFR2_OFFSET2_0 (0x0000001UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
  3175. #define ADC_OFR2_OFFSET2_1 (0x0000002UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
  3176. #define ADC_OFR2_OFFSET2_2 (0x0000004UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
  3177. #define ADC_OFR2_OFFSET2_3 (0x0000008UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
  3178. #define ADC_OFR2_OFFSET2_4 (0x0000010UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
  3179. #define ADC_OFR2_OFFSET2_5 (0x0000020UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
  3180. #define ADC_OFR2_OFFSET2_6 (0x0000040UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
  3181. #define ADC_OFR2_OFFSET2_7 (0x0000080UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
  3182. #define ADC_OFR2_OFFSET2_8 (0x0000100UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
  3183. #define ADC_OFR2_OFFSET2_9 (0x0000200UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
  3184. #define ADC_OFR2_OFFSET2_10 (0x0000400UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
  3185. #define ADC_OFR2_OFFSET2_11 (0x0000800UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
  3186. #define ADC_OFR2_OFFSET2_12 (0x0001000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00001000 */
  3187. #define ADC_OFR2_OFFSET2_13 (0x0002000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00002000 */
  3188. #define ADC_OFR2_OFFSET2_14 (0x0004000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00004000 */
  3189. #define ADC_OFR2_OFFSET2_15 (0x0008000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00008000 */
  3190. #define ADC_OFR2_OFFSET2_16 (0x0010000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00010000 */
  3191. #define ADC_OFR2_OFFSET2_17 (0x0020000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00020000 */
  3192. #define ADC_OFR2_OFFSET2_18 (0x0040000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00040000 */
  3193. #define ADC_OFR2_OFFSET2_19 (0x0080000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00080000 */
  3194. #define ADC_OFR2_OFFSET2_20 (0x0100000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00100000 */
  3195. #define ADC_OFR2_OFFSET2_21 (0x0200000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00200000 */
  3196. #define ADC_OFR2_OFFSET2_22 (0x0400000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00400000 */
  3197. #define ADC_OFR2_OFFSET2_23 (0x0800000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00800000 */
  3198. #define ADC_OFR2_OFFSET2_24 (0x1000000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x01000000 */
  3199. #define ADC_OFR2_OFFSET2_25 (0x2000000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x02000000 */
  3200. #define ADC_OFR2_OFFSET2_CH_Pos (26U)
  3201. #define ADC_OFR2_OFFSET2_CH_Msk (0x1FUL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */
  3202. #define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC Channel selection for the data offset 2 */
  3203. #define ADC_OFR2_OFFSET2_CH_0 (0x01UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */
  3204. #define ADC_OFR2_OFFSET2_CH_1 (0x02UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */
  3205. #define ADC_OFR2_OFFSET2_CH_2 (0x04UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */
  3206. #define ADC_OFR2_OFFSET2_CH_3 (0x08UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */
  3207. #define ADC_OFR2_OFFSET2_CH_4 (0x10UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */
  3208. #define ADC_OFR2_SSATE_Pos (31U)
  3209. #define ADC_OFR2_SSATE_Msk (0x1UL << ADC_OFR2_SSATE_Pos) /*!< 0x80000000 */
  3210. #define ADC_OFR2_SSATE ADC_OFR2_SSATE_Msk /*!< ADC Signed saturation Enable */
  3211. #define ADC3_OFR2_OFFSET2_Pos (0U)
  3212. #define ADC3_OFR2_OFFSET2_Msk (0xFFFUL << ADC3_OFR2_OFFSET2_Pos) /*!< 0x00000FFF */
  3213. #define ADC3_OFR2_OFFSET2 ADC3_OFR2_OFFSET2_Msk /*!< ADC data offset 2 for channel programmed into bits OFFSET1_CH[4:0] */
  3214. #define ADC3_OFR2_OFFSETPOS_Pos (24U)
  3215. #define ADC3_OFR2_OFFSETPOS_Msk (0x1UL << ADC3_OFR2_OFFSETPOS_Pos) /*!< 0x01000000 */
  3216. #define ADC3_OFR2_OFFSETPOS ADC3_OFR2_OFFSETPOS_Msk /*!< ADC offset number 2 positive */
  3217. #define ADC3_OFR2_SATEN_Pos (25U)
  3218. #define ADC3_OFR2_SATEN_Msk (0x1UL << ADC3_OFR2_SATEN_Pos) /*!< 0x02000000 */
  3219. #define ADC3_OFR2_SATEN ADC3_OFR2_SATEN_Msk /*!< ADC offset number 2 saturation enable */
  3220. #define ADC3_OFR2_OFFSET2_EN_Pos (31U)
  3221. #define ADC3_OFR2_OFFSET2_EN_Msk (0x1UL << ADC3_OFR2_OFFSET2_EN_Pos) /*!< 0x80000000 */
  3222. #define ADC3_OFR2_OFFSET2_EN ADC3_OFR2_OFFSET2_EN_Msk /*!< ADC offset number 2 enable */
  3223. /******************** Bit definition for ADC_OFR3 register ********************/
  3224. #define ADC_OFR3_OFFSET3_Pos (0U)
  3225. #define ADC_OFR3_OFFSET3_Msk (0x3FFFFFFUL << ADC_OFR3_OFFSET3_Pos) /*!< 0x03FFFFFF */
  3226. #define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC data offset 3 for channel programmed into bits OFFSET3_CH[4:0] */
  3227. #define ADC_OFR3_OFFSET3_0 (0x0000001UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
  3228. #define ADC_OFR3_OFFSET3_1 (0x0000002UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
  3229. #define ADC_OFR3_OFFSET3_2 (0x0000004UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
  3230. #define ADC_OFR3_OFFSET3_3 (0x0000008UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
  3231. #define ADC_OFR3_OFFSET3_4 (0x0000010UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
  3232. #define ADC_OFR3_OFFSET3_5 (0x0000020UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
  3233. #define ADC_OFR3_OFFSET3_6 (0x0000040UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
  3234. #define ADC_OFR3_OFFSET3_7 (0x0000080UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
  3235. #define ADC_OFR3_OFFSET3_8 (0x0000100UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
  3236. #define ADC_OFR3_OFFSET3_9 (0x0000200UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
  3237. #define ADC_OFR3_OFFSET3_10 (0x0000400UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
  3238. #define ADC_OFR3_OFFSET3_11 (0x0000800UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
  3239. #define ADC_OFR3_OFFSET3_12 (0x0001000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00001000 */
  3240. #define ADC_OFR3_OFFSET3_13 (0x0002000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00002000 */
  3241. #define ADC_OFR3_OFFSET3_14 (0x0004000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00004000 */
  3242. #define ADC_OFR3_OFFSET3_15 (0x0008000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00008000 */
  3243. #define ADC_OFR3_OFFSET3_16 (0x0010000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00010000 */
  3244. #define ADC_OFR3_OFFSET3_17 (0x0020000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00020000 */
  3245. #define ADC_OFR3_OFFSET3_18 (0x0040000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00040000 */
  3246. #define ADC_OFR3_OFFSET3_19 (0x0080000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00080000 */
  3247. #define ADC_OFR3_OFFSET3_20 (0x0100000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00100000 */
  3248. #define ADC_OFR3_OFFSET3_21 (0x0200000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00200000 */
  3249. #define ADC_OFR3_OFFSET3_22 (0x0400000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00400000 */
  3250. #define ADC_OFR3_OFFSET3_23 (0x0800000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00800000 */
  3251. #define ADC_OFR3_OFFSET3_24 (0x1000000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x01000000 */
  3252. #define ADC_OFR3_OFFSET3_25 (0x2000000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x02000000 */
  3253. #define ADC_OFR3_OFFSET3_CH_Pos (26U)
  3254. #define ADC_OFR3_OFFSET3_CH_Msk (0x1FUL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */
  3255. #define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC Channel selection for the data offset 3 */
  3256. #define ADC_OFR3_OFFSET3_CH_0 (0x01UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */
  3257. #define ADC_OFR3_OFFSET3_CH_1 (0x02UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */
  3258. #define ADC_OFR3_OFFSET3_CH_2 (0x04UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */
  3259. #define ADC_OFR3_OFFSET3_CH_3 (0x08UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */
  3260. #define ADC_OFR3_OFFSET3_CH_4 (0x10UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */
  3261. #define ADC_OFR3_SSATE_Pos (31U)
  3262. #define ADC_OFR3_SSATE_Msk (0x1UL << ADC_OFR3_SSATE_Pos) /*!< 0x80000000 */
  3263. #define ADC_OFR3_SSATE ADC_OFR3_SSATE_Msk /*!< ADC Signed saturation Enable */
  3264. #define ADC3_OFR3_OFFSET3_Pos (0U)
  3265. #define ADC3_OFR3_OFFSET3_Msk (0xFFFUL << ADC3_OFR3_OFFSET3_Pos) /*!< 0x00000FFF */
  3266. #define ADC3_OFR3_OFFSET3 ADC3_OFR3_OFFSET3_Msk /*!< ADC data offset 3 for channel programmed into bits OFFSET1_CH[4:0] */
  3267. #define ADC3_OFR3_OFFSETPOS_Pos (24U)
  3268. #define ADC3_OFR3_OFFSETPOS_Msk (0x1UL << ADC3_OFR3_OFFSETPOS_Pos) /*!< 0x01000000 */
  3269. #define ADC3_OFR3_OFFSETPOS ADC3_OFR3_OFFSETPOS_Msk /*!< ADC offset number 3 positive */
  3270. #define ADC3_OFR3_SATEN_Pos (25U)
  3271. #define ADC3_OFR3_SATEN_Msk (0x1UL << ADC3_OFR3_SATEN_Pos) /*!< 0x02000000 */
  3272. #define ADC3_OFR3_SATEN ADC3_OFR3_SATEN_Msk /*!< ADC offset number 3 saturation enable */
  3273. #define ADC3_OFR3_OFFSET3_EN_Pos (31U)
  3274. #define ADC3_OFR3_OFFSET3_EN_Msk (0x1UL << ADC3_OFR3_OFFSET3_EN_Pos) /*!< 0x80000000 */
  3275. #define ADC3_OFR3_OFFSET3_EN ADC3_OFR3_OFFSET3_EN_Msk /*!< ADC offset number 3 enable */
  3276. /******************** Bit definition for ADC_OFR4 register ********************/
  3277. #define ADC_OFR4_OFFSET4_Pos (0U)
  3278. #define ADC_OFR4_OFFSET4_Msk (0x3FFFFFFUL << ADC_OFR4_OFFSET4_Pos) /*!< 0x03FFFFFF */
  3279. #define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC data offset 4 for channel programmed into bits OFFSET4_CH[4:0] */
  3280. #define ADC_OFR4_OFFSET4_0 (0x0000001UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
  3281. #define ADC_OFR4_OFFSET4_1 (0x0000002UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
  3282. #define ADC_OFR4_OFFSET4_2 (0x0000004UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
  3283. #define ADC_OFR4_OFFSET4_3 (0x0000008UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
  3284. #define ADC_OFR4_OFFSET4_4 (0x0000010UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
  3285. #define ADC_OFR4_OFFSET4_5 (0x0000020UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
  3286. #define ADC_OFR4_OFFSET4_6 (0x0000040UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
  3287. #define ADC_OFR4_OFFSET4_7 (0x0000080UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
  3288. #define ADC_OFR4_OFFSET4_8 (0x0000100UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
  3289. #define ADC_OFR4_OFFSET4_9 (0x0000200UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
  3290. #define ADC_OFR4_OFFSET4_10 (0x0000400UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
  3291. #define ADC_OFR4_OFFSET4_11 (0x0000800UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
  3292. #define ADC_OFR4_OFFSET4_12 (0x0001000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00001000 */
  3293. #define ADC_OFR4_OFFSET4_13 (0x0002000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00002000 */
  3294. #define ADC_OFR4_OFFSET4_14 (0x0004000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00004000 */
  3295. #define ADC_OFR4_OFFSET4_15 (0x0008000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00008000 */
  3296. #define ADC_OFR4_OFFSET4_16 (0x0010000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00010000 */
  3297. #define ADC_OFR4_OFFSET4_17 (0x0020000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00020000 */
  3298. #define ADC_OFR4_OFFSET4_18 (0x0040000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00040000 */
  3299. #define ADC_OFR4_OFFSET4_19 (0x0080000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00080000 */
  3300. #define ADC_OFR4_OFFSET4_20 (0x0100000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00100000 */
  3301. #define ADC_OFR4_OFFSET4_21 (0x0200000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00200000 */
  3302. #define ADC_OFR4_OFFSET4_22 (0x0400000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00400000 */
  3303. #define ADC_OFR4_OFFSET4_23 (0x0800000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00800000 */
  3304. #define ADC_OFR4_OFFSET4_24 (0x1000000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x01000000 */
  3305. #define ADC_OFR4_OFFSET4_25 (0x2000000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x02000000 */
  3306. #define ADC_OFR4_OFFSET4_CH_Pos (26U)
  3307. #define ADC_OFR4_OFFSET4_CH_Msk (0x1FUL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */
  3308. #define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC Channel selection for the data offset 4 */
  3309. #define ADC_OFR4_OFFSET4_CH_0 (0x01UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */
  3310. #define ADC_OFR4_OFFSET4_CH_1 (0x02UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */
  3311. #define ADC_OFR4_OFFSET4_CH_2 (0x04UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */
  3312. #define ADC_OFR4_OFFSET4_CH_3 (0x08UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */
  3313. #define ADC_OFR4_OFFSET4_CH_4 (0x10UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */
  3314. #define ADC_OFR4_SSATE_Pos (31U)
  3315. #define ADC_OFR4_SSATE_Msk (0x1UL << ADC_OFR4_SSATE_Pos) /*!< 0x80000000 */
  3316. #define ADC_OFR4_SSATE ADC_OFR4_SSATE_Msk /*!< ADC Signed saturation Enable */
  3317. #define ADC3_OFR4_OFFSET4_Pos (0U)
  3318. #define ADC3_OFR4_OFFSET4_Msk (0xFFFUL << ADC3_OFR4_OFFSET4_Pos) /*!< 0x00000FFF */
  3319. #define ADC3_OFR4_OFFSET4 ADC3_OFR4_OFFSET4_Msk /*!< ADC data offset 4 for channel programmed into bits OFFSET1_CH[4:0] */
  3320. #define ADC3_OFR4_OFFSETPOS_Pos (24U)
  3321. #define ADC3_OFR4_OFFSETPOS_Msk (0x1UL << ADC3_OFR4_OFFSETPOS_Pos) /*!< 0x01000000 */
  3322. #define ADC3_OFR4_OFFSETPOS ADC3_OFR4_OFFSETPOS_Msk /*!< ADC offset number 4 positive */
  3323. #define ADC3_OFR4_SATEN_Pos (25U)
  3324. #define ADC3_OFR4_SATEN_Msk (0x1UL << ADC3_OFR4_SATEN_Pos) /*!< 0x02000000 */
  3325. #define ADC3_OFR4_SATEN ADC3_OFR4_SATEN_Msk /*!< ADC offset number 4 saturation enable */
  3326. #define ADC3_OFR4_OFFSET4_EN_Pos (31U)
  3327. #define ADC3_OFR4_OFFSET4_EN_Msk (0x1UL << ADC3_OFR4_OFFSET4_EN_Pos) /*!< 0x80000000 */
  3328. #define ADC3_OFR4_OFFSET4_EN ADC3_OFR4_OFFSET4_EN_Msk /*!< ADC offset number 4 enable */
  3329. /******************** Bit definition for ADC_JDR1 register ********************/
  3330. #define ADC_JDR1_JDATA_Pos (0U)
  3331. #define ADC_JDR1_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR1_JDATA_Pos) /*!< 0xFFFFFFFF */
  3332. #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC Injected DATA */
  3333. #define ADC_JDR1_JDATA_0 (0x00000001UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */
  3334. #define ADC_JDR1_JDATA_1 (0x00000002UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */
  3335. #define ADC_JDR1_JDATA_2 (0x00000004UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */
  3336. #define ADC_JDR1_JDATA_3 (0x00000008UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */
  3337. #define ADC_JDR1_JDATA_4 (0x00000010UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */
  3338. #define ADC_JDR1_JDATA_5 (0x00000020UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */
  3339. #define ADC_JDR1_JDATA_6 (0x00000040UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */
  3340. #define ADC_JDR1_JDATA_7 (0x00000080UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */
  3341. #define ADC_JDR1_JDATA_8 (0x00000100UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */
  3342. #define ADC_JDR1_JDATA_9 (0x00000200UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */
  3343. #define ADC_JDR1_JDATA_10 (0x00000400UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */
  3344. #define ADC_JDR1_JDATA_11 (0x00000800UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */
  3345. #define ADC_JDR1_JDATA_12 (0x00001000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */
  3346. #define ADC_JDR1_JDATA_13 (0x00002000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */
  3347. #define ADC_JDR1_JDATA_14 (0x00004000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */
  3348. #define ADC_JDR1_JDATA_15 (0x00008000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */
  3349. #define ADC_JDR1_JDATA_16 (0x00010000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00010000 */
  3350. #define ADC_JDR1_JDATA_17 (0x00020000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00020000 */
  3351. #define ADC_JDR1_JDATA_18 (0x00040000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00040000 */
  3352. #define ADC_JDR1_JDATA_19 (0x00080000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00080000 */
  3353. #define ADC_JDR1_JDATA_20 (0x00100000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00100000 */
  3354. #define ADC_JDR1_JDATA_21 (0x00200000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00200000 */
  3355. #define ADC_JDR1_JDATA_22 (0x00400000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00400000 */
  3356. #define ADC_JDR1_JDATA_23 (0x00800000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00800000 */
  3357. #define ADC_JDR1_JDATA_24 (0x01000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x01000000 */
  3358. #define ADC_JDR1_JDATA_25 (0x02000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x02000000 */
  3359. #define ADC_JDR1_JDATA_26 (0x04000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x04000000 */
  3360. #define ADC_JDR1_JDATA_27 (0x08000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x08000000 */
  3361. #define ADC_JDR1_JDATA_28 (0x10000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x10000000 */
  3362. #define ADC_JDR1_JDATA_29 (0x20000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x20000000 */
  3363. #define ADC_JDR1_JDATA_30 (0x40000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x40000000 */
  3364. #define ADC_JDR1_JDATA_31 (0x80000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x80000000 */
  3365. /******************** Bit definition for ADC_JDR2 register ********************/
  3366. #define ADC_JDR2_JDATA_Pos (0U)
  3367. #define ADC_JDR2_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR2_JDATA_Pos) /*!< 0xFFFFFFFF */
  3368. #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC Injected DATA */
  3369. #define ADC_JDR2_JDATA_0 (0x00000001UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */
  3370. #define ADC_JDR2_JDATA_1 (0x00000002UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */
  3371. #define ADC_JDR2_JDATA_2 (0x00000004UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */
  3372. #define ADC_JDR2_JDATA_3 (0x00000008UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */
  3373. #define ADC_JDR2_JDATA_4 (0x00000010UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */
  3374. #define ADC_JDR2_JDATA_5 (0x00000020UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */
  3375. #define ADC_JDR2_JDATA_6 (0x00000040UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */
  3376. #define ADC_JDR2_JDATA_7 (0x00000080UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */
  3377. #define ADC_JDR2_JDATA_8 (0x00000100UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */
  3378. #define ADC_JDR2_JDATA_9 (0x00000200UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */
  3379. #define ADC_JDR2_JDATA_10 (0x00000400UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */
  3380. #define ADC_JDR2_JDATA_11 (0x00000800UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */
  3381. #define ADC_JDR2_JDATA_12 (0x00001000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */
  3382. #define ADC_JDR2_JDATA_13 (0x00002000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */
  3383. #define ADC_JDR2_JDATA_14 (0x00004000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */
  3384. #define ADC_JDR2_JDATA_15 (0x00008000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */
  3385. #define ADC_JDR2_JDATA_16 (0x00010000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00010000 */
  3386. #define ADC_JDR2_JDATA_17 (0x00020000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00020000 */
  3387. #define ADC_JDR2_JDATA_18 (0x00040000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00040000 */
  3388. #define ADC_JDR2_JDATA_19 (0x00080000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00080000 */
  3389. #define ADC_JDR2_JDATA_20 (0x00100000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00100000 */
  3390. #define ADC_JDR2_JDATA_21 (0x00200000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00200000 */
  3391. #define ADC_JDR2_JDATA_22 (0x00400000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00400000 */
  3392. #define ADC_JDR2_JDATA_23 (0x00800000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00800000 */
  3393. #define ADC_JDR2_JDATA_24 (0x01000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x01000000 */
  3394. #define ADC_JDR2_JDATA_25 (0x02000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x02000000 */
  3395. #define ADC_JDR2_JDATA_26 (0x04000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x04000000 */
  3396. #define ADC_JDR2_JDATA_27 (0x08000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x08000000 */
  3397. #define ADC_JDR2_JDATA_28 (0x10000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x10000000 */
  3398. #define ADC_JDR2_JDATA_29 (0x20000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x20000000 */
  3399. #define ADC_JDR2_JDATA_30 (0x40000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x40000000 */
  3400. #define ADC_JDR2_JDATA_31 (0x80000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x80000000 */
  3401. /******************** Bit definition for ADC_JDR3 register ********************/
  3402. #define ADC_JDR3_JDATA_Pos (0U)
  3403. #define ADC_JDR3_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR3_JDATA_Pos) /*!< 0xFFFFFFFF */
  3404. #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC Injected DATA */
  3405. #define ADC_JDR3_JDATA_0 (0x00000001UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */
  3406. #define ADC_JDR3_JDATA_1 (0x00000002UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */
  3407. #define ADC_JDR3_JDATA_2 (0x00000004UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */
  3408. #define ADC_JDR3_JDATA_3 (0x00000008UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */
  3409. #define ADC_JDR3_JDATA_4 (0x00000010UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */
  3410. #define ADC_JDR3_JDATA_5 (0x00000020UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */
  3411. #define ADC_JDR3_JDATA_6 (0x00000040UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */
  3412. #define ADC_JDR3_JDATA_7 (0x00000080UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */
  3413. #define ADC_JDR3_JDATA_8 (0x00000100UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */
  3414. #define ADC_JDR3_JDATA_9 (0x00000200UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */
  3415. #define ADC_JDR3_JDATA_10 (0x00000400UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */
  3416. #define ADC_JDR3_JDATA_11 (0x00000800UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */
  3417. #define ADC_JDR3_JDATA_12 (0x00001000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */
  3418. #define ADC_JDR3_JDATA_13 (0x00002000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */
  3419. #define ADC_JDR3_JDATA_14 (0x00004000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */
  3420. #define ADC_JDR3_JDATA_15 (0x00008000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */
  3421. #define ADC_JDR3_JDATA_16 (0x00010000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00010000 */
  3422. #define ADC_JDR3_JDATA_17 (0x00020000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00020000 */
  3423. #define ADC_JDR3_JDATA_18 (0x00040000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00040000 */
  3424. #define ADC_JDR3_JDATA_19 (0x00080000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00080000 */
  3425. #define ADC_JDR3_JDATA_20 (0x00100000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00100000 */
  3426. #define ADC_JDR3_JDATA_21 (0x00200000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00200000 */
  3427. #define ADC_JDR3_JDATA_22 (0x00400000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00400000 */
  3428. #define ADC_JDR3_JDATA_23 (0x00800000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00800000 */
  3429. #define ADC_JDR3_JDATA_24 (0x01000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x01000000 */
  3430. #define ADC_JDR3_JDATA_25 (0x02000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x02000000 */
  3431. #define ADC_JDR3_JDATA_26 (0x04000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x04000000 */
  3432. #define ADC_JDR3_JDATA_27 (0x08000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x08000000 */
  3433. #define ADC_JDR3_JDATA_28 (0x10000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x10000000 */
  3434. #define ADC_JDR3_JDATA_29 (0x20000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x20000000 */
  3435. #define ADC_JDR3_JDATA_30 (0x40000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x40000000 */
  3436. #define ADC_JDR3_JDATA_31 (0x80000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x80000000 */
  3437. /******************** Bit definition for ADC_JDR4 register ********************/
  3438. #define ADC_JDR4_JDATA_Pos (0U)
  3439. #define ADC_JDR4_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR4_JDATA_Pos) /*!< 0xFFFFFFFF */
  3440. #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC Injected DATA */
  3441. #define ADC_JDR4_JDATA_0 (0x00000001UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */
  3442. #define ADC_JDR4_JDATA_1 (0x00000002UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */
  3443. #define ADC_JDR4_JDATA_2 (0x00000004UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */
  3444. #define ADC_JDR4_JDATA_3 (0x00000008UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */
  3445. #define ADC_JDR4_JDATA_4 (0x00000010UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */
  3446. #define ADC_JDR4_JDATA_5 (0x00000020UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */
  3447. #define ADC_JDR4_JDATA_6 (0x00000040UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */
  3448. #define ADC_JDR4_JDATA_7 (0x00000080UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */
  3449. #define ADC_JDR4_JDATA_8 (0x00000100UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */
  3450. #define ADC_JDR4_JDATA_9 (0x00000200UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */
  3451. #define ADC_JDR4_JDATA_10 (0x00000400UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */
  3452. #define ADC_JDR4_JDATA_11 (0x00000800UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */
  3453. #define ADC_JDR4_JDATA_12 (0x00001000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */
  3454. #define ADC_JDR4_JDATA_13 (0x00002000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */
  3455. #define ADC_JDR4_JDATA_14 (0x00004000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */
  3456. #define ADC_JDR4_JDATA_15 (0x00008000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */
  3457. #define ADC_JDR4_JDATA_16 (0x00010000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00010000 */
  3458. #define ADC_JDR4_JDATA_17 (0x00020000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00020000 */
  3459. #define ADC_JDR4_JDATA_18 (0x00040000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00040000 */
  3460. #define ADC_JDR4_JDATA_19 (0x00080000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00080000 */
  3461. #define ADC_JDR4_JDATA_20 (0x00100000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00100000 */
  3462. #define ADC_JDR4_JDATA_21 (0x00200000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00200000 */
  3463. #define ADC_JDR4_JDATA_22 (0x00400000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00400000 */
  3464. #define ADC_JDR4_JDATA_23 (0x00800000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00800000 */
  3465. #define ADC_JDR4_JDATA_24 (0x01000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x01000000 */
  3466. #define ADC_JDR4_JDATA_25 (0x02000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x02000000 */
  3467. #define ADC_JDR4_JDATA_26 (0x04000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x04000000 */
  3468. #define ADC_JDR4_JDATA_27 (0x08000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x08000000 */
  3469. #define ADC_JDR4_JDATA_28 (0x10000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x10000000 */
  3470. #define ADC_JDR4_JDATA_29 (0x20000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x20000000 */
  3471. #define ADC_JDR4_JDATA_30 (0x40000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x40000000 */
  3472. #define ADC_JDR4_JDATA_31 (0x80000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x80000000 */
  3473. /******************** Bit definition for ADC_AWD2CR register ********************/
  3474. #define ADC_AWD2CR_AWD2CH_Pos (0U)
  3475. #define ADC_AWD2CR_AWD2CH_Msk (0xFFFFFUL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x000FFFFF */
  3476. #define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC Analog watchdog 2 channel selection */
  3477. #define ADC_AWD2CR_AWD2CH_0 (0x00001UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */
  3478. #define ADC_AWD2CR_AWD2CH_1 (0x00002UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */
  3479. #define ADC_AWD2CR_AWD2CH_2 (0x00004UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */
  3480. #define ADC_AWD2CR_AWD2CH_3 (0x00008UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */
  3481. #define ADC_AWD2CR_AWD2CH_4 (0x00010UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */
  3482. #define ADC_AWD2CR_AWD2CH_5 (0x00020UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */
  3483. #define ADC_AWD2CR_AWD2CH_6 (0x00040UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */
  3484. #define ADC_AWD2CR_AWD2CH_7 (0x00080UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */
  3485. #define ADC_AWD2CR_AWD2CH_8 (0x00100UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */
  3486. #define ADC_AWD2CR_AWD2CH_9 (0x00200UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */
  3487. #define ADC_AWD2CR_AWD2CH_10 (0x00400UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */
  3488. #define ADC_AWD2CR_AWD2CH_11 (0x00800UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */
  3489. #define ADC_AWD2CR_AWD2CH_12 (0x01000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */
  3490. #define ADC_AWD2CR_AWD2CH_13 (0x02000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */
  3491. #define ADC_AWD2CR_AWD2CH_14 (0x04000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */
  3492. #define ADC_AWD2CR_AWD2CH_15 (0x08000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */
  3493. #define ADC_AWD2CR_AWD2CH_16 (0x10000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */
  3494. #define ADC_AWD2CR_AWD2CH_17 (0x20000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */
  3495. #define ADC_AWD2CR_AWD2CH_18 (0x40000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */
  3496. #define ADC_AWD2CR_AWD2CH_19 (0x80000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00080000 */
  3497. /******************** Bit definition for ADC_AWD3CR register ********************/
  3498. #define ADC_AWD3CR_AWD3CH_Pos (0U)
  3499. #define ADC_AWD3CR_AWD3CH_Msk (0xFFFFFUL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x000FFFFF */
  3500. #define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC Analog watchdog 2 channel selection */
  3501. #define ADC_AWD3CR_AWD3CH_0 (0x00001UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */
  3502. #define ADC_AWD3CR_AWD3CH_1 (0x00002UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */
  3503. #define ADC_AWD3CR_AWD3CH_2 (0x00004UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */
  3504. #define ADC_AWD3CR_AWD3CH_3 (0x00008UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */
  3505. #define ADC_AWD3CR_AWD3CH_4 (0x00010UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */
  3506. #define ADC_AWD3CR_AWD3CH_5 (0x00020UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */
  3507. #define ADC_AWD3CR_AWD3CH_6 (0x00040UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */
  3508. #define ADC_AWD3CR_AWD3CH_7 (0x00080UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */
  3509. #define ADC_AWD3CR_AWD3CH_8 (0x00100UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */
  3510. #define ADC_AWD3CR_AWD3CH_9 (0x00200UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */
  3511. #define ADC_AWD3CR_AWD3CH_10 (0x00400UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */
  3512. #define ADC_AWD3CR_AWD3CH_11 (0x00800UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */
  3513. #define ADC_AWD3CR_AWD3CH_12 (0x01000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */
  3514. #define ADC_AWD3CR_AWD3CH_13 (0x02000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */
  3515. #define ADC_AWD3CR_AWD3CH_14 (0x04000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */
  3516. #define ADC_AWD3CR_AWD3CH_15 (0x08000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */
  3517. #define ADC_AWD3CR_AWD3CH_16 (0x10000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */
  3518. #define ADC_AWD3CR_AWD3CH_17 (0x20000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */
  3519. #define ADC_AWD3CR_AWD3CH_18 (0x40000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */
  3520. #define ADC_AWD3CR_AWD3CH_19 (0x80000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00080000 */
  3521. /******************** Bit definition for ADC_DIFSEL register ********************/
  3522. #define ADC_DIFSEL_DIFSEL_Pos (0U)
  3523. #define ADC_DIFSEL_DIFSEL_Msk (0xFFFFFUL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x000FFFFF */
  3524. #define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC differential modes for channels 1 to 18 */
  3525. #define ADC_DIFSEL_DIFSEL_0 (0x00001UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */
  3526. #define ADC_DIFSEL_DIFSEL_1 (0x00002UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */
  3527. #define ADC_DIFSEL_DIFSEL_2 (0x00004UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */
  3528. #define ADC_DIFSEL_DIFSEL_3 (0x00008UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */
  3529. #define ADC_DIFSEL_DIFSEL_4 (0x00010UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */
  3530. #define ADC_DIFSEL_DIFSEL_5 (0x00020UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */
  3531. #define ADC_DIFSEL_DIFSEL_6 (0x00040UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */
  3532. #define ADC_DIFSEL_DIFSEL_7 (0x00080UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */
  3533. #define ADC_DIFSEL_DIFSEL_8 (0x00100UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */
  3534. #define ADC_DIFSEL_DIFSEL_9 (0x00200UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */
  3535. #define ADC_DIFSEL_DIFSEL_10 (0x00400UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */
  3536. #define ADC_DIFSEL_DIFSEL_11 (0x00800UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */
  3537. #define ADC_DIFSEL_DIFSEL_12 (0x01000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */
  3538. #define ADC_DIFSEL_DIFSEL_13 (0x02000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */
  3539. #define ADC_DIFSEL_DIFSEL_14 (0x04000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */
  3540. #define ADC_DIFSEL_DIFSEL_15 (0x08000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */
  3541. #define ADC_DIFSEL_DIFSEL_16 (0x10000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */
  3542. #define ADC_DIFSEL_DIFSEL_17 (0x20000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */
  3543. #define ADC_DIFSEL_DIFSEL_18 (0x40000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */
  3544. #define ADC_DIFSEL_DIFSEL_19 (0x80000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00080000 */
  3545. /******************** Bit definition for ADC_CALFACT register ********************/
  3546. #define ADC_CALFACT_CALFACT_S_Pos (0U)
  3547. #define ADC_CALFACT_CALFACT_S_Msk (0x7FFUL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x000007FF */
  3548. #define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factors in single-ended mode */
  3549. #define ADC_CALFACT_CALFACT_S_0 (0x001UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */
  3550. #define ADC_CALFACT_CALFACT_S_1 (0x002UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */
  3551. #define ADC_CALFACT_CALFACT_S_2 (0x004UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */
  3552. #define ADC_CALFACT_CALFACT_S_3 (0x008UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */
  3553. #define ADC_CALFACT_CALFACT_S_4 (0x010UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */
  3554. #define ADC_CALFACT_CALFACT_S_5 (0x020UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */
  3555. #define ADC_CALFACT_CALFACT_S_6 (0x040UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */
  3556. #define ADC_CALFACT_CALFACT_S_7 (0x080UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000080 */
  3557. #define ADC_CALFACT_CALFACT_S_8 (0x100UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000100 */
  3558. #define ADC_CALFACT_CALFACT_S_9 (0x200UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000200 */
  3559. #define ADC_CALFACT_CALFACT_S_10 (0x400UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000400 */
  3560. #define ADC_CALFACT_CALFACT_D_Pos (16U)
  3561. #define ADC_CALFACT_CALFACT_D_Msk (0x7FFUL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x07FF0000 */
  3562. #define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factors in differential mode */
  3563. #define ADC_CALFACT_CALFACT_D_0 (0x001UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */
  3564. #define ADC_CALFACT_CALFACT_D_1 (0x002UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */
  3565. #define ADC_CALFACT_CALFACT_D_2 (0x004UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */
  3566. #define ADC_CALFACT_CALFACT_D_3 (0x008UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */
  3567. #define ADC_CALFACT_CALFACT_D_4 (0x010UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */
  3568. #define ADC_CALFACT_CALFACT_D_5 (0x020UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */
  3569. #define ADC_CALFACT_CALFACT_D_6 (0x040UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */
  3570. #define ADC_CALFACT_CALFACT_D_7 (0x080UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00800000 */
  3571. #define ADC_CALFACT_CALFACT_D_8 (0x100UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x01000000 */
  3572. #define ADC_CALFACT_CALFACT_D_9 (0x200UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x02000000 */
  3573. #define ADC_CALFACT_CALFACT_D_10 (0x400UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x04000000 */
  3574. /******************** Bit definition for ADC_CALFACT2 register ********************/
  3575. #define ADC_CALFACT2_LINCALFACT_Pos (0U)
  3576. #define ADC_CALFACT2_LINCALFACT_Msk (0x3FFFFFFFUL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x3FFFFFFF */
  3577. #define ADC_CALFACT2_LINCALFACT ADC_CALFACT2_LINCALFACT_Msk /*!< ADC Linearity calibration factors */
  3578. #define ADC_CALFACT2_LINCALFACT_0 (0x00000001UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000001 */
  3579. #define ADC_CALFACT2_LINCALFACT_1 (0x00000002UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000002 */
  3580. #define ADC_CALFACT2_LINCALFACT_2 (0x00000004UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000004 */
  3581. #define ADC_CALFACT2_LINCALFACT_3 (0x00000008UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000008 */
  3582. #define ADC_CALFACT2_LINCALFACT_4 (0x00000010UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000010 */
  3583. #define ADC_CALFACT2_LINCALFACT_5 (0x00000020UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000020 */
  3584. #define ADC_CALFACT2_LINCALFACT_6 (0x00000040UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000040 */
  3585. #define ADC_CALFACT2_LINCALFACT_7 (0x00000080UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000080 */
  3586. #define ADC_CALFACT2_LINCALFACT_8 (0x00000100UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000100 */
  3587. #define ADC_CALFACT2_LINCALFACT_9 (0x00000200UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000200 */
  3588. #define ADC_CALFACT2_LINCALFACT_10 (0x00000400UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000400 */
  3589. #define ADC_CALFACT2_LINCALFACT_11 (0x00000800UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000800 */
  3590. #define ADC_CALFACT2_LINCALFACT_12 (0x00001000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00001000 */
  3591. #define ADC_CALFACT2_LINCALFACT_13 (0x00002000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00002000 */
  3592. #define ADC_CALFACT2_LINCALFACT_14 (0x00004000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00004000 */
  3593. #define ADC_CALFACT2_LINCALFACT_15 (0x00008000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00008000 */
  3594. #define ADC_CALFACT2_LINCALFACT_16 (0x00010000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00010000 */
  3595. #define ADC_CALFACT2_LINCALFACT_17 (0x00020000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00020000 */
  3596. #define ADC_CALFACT2_LINCALFACT_18 (0x00040000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00040000 */
  3597. #define ADC_CALFACT2_LINCALFACT_19 (0x00080000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00080000 */
  3598. #define ADC_CALFACT2_LINCALFACT_20 (0x00100000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00100000 */
  3599. #define ADC_CALFACT2_LINCALFACT_21 (0x00200000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00200000 */
  3600. #define ADC_CALFACT2_LINCALFACT_22 (0x00400000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00400000 */
  3601. #define ADC_CALFACT2_LINCALFACT_23 (0x00800000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00800000 */
  3602. #define ADC_CALFACT2_LINCALFACT_24 (0x01000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x01000000 */
  3603. #define ADC_CALFACT2_LINCALFACT_25 (0x02000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x02000000 */
  3604. #define ADC_CALFACT2_LINCALFACT_26 (0x04000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x04000000 */
  3605. #define ADC_CALFACT2_LINCALFACT_27 (0x08000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x08000000 */
  3606. #define ADC_CALFACT2_LINCALFACT_28 (0x10000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x10000000 */
  3607. #define ADC_CALFACT2_LINCALFACT_29 (0x20000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x20000000 */
  3608. /************************* ADC Common registers *****************************/
  3609. /******************** Bit definition for ADC_CSR register ********************/
  3610. #define ADC_CSR_ADRDY_MST_Pos (0U)
  3611. #define ADC_CSR_ADRDY_MST_Msk (0x1UL << ADC_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
  3612. #define ADC_CSR_ADRDY_MST ADC_CSR_ADRDY_MST_Msk /*!< Master ADC ready */
  3613. #define ADC_CSR_EOSMP_MST_Pos (1U)
  3614. #define ADC_CSR_EOSMP_MST_Msk (0x1UL << ADC_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */
  3615. #define ADC_CSR_EOSMP_MST ADC_CSR_EOSMP_MST_Msk /*!< End of sampling phase flag of the master ADC */
  3616. #define ADC_CSR_EOC_MST_Pos (2U)
  3617. #define ADC_CSR_EOC_MST_Msk (0x1UL << ADC_CSR_EOC_MST_Pos) /*!< 0x00000004 */
  3618. #define ADC_CSR_EOC_MST ADC_CSR_EOC_MST_Msk /*!< End of regular conversion of the master ADC */
  3619. #define ADC_CSR_EOS_MST_Pos (3U)
  3620. #define ADC_CSR_EOS_MST_Msk (0x1UL << ADC_CSR_EOS_MST_Pos) /*!< 0x00000008 */
  3621. #define ADC_CSR_EOS_MST ADC_CSR_EOS_MST_Msk /*!< End of regular sequence flag of the master ADC */
  3622. #define ADC_CSR_OVR_MST_Pos (4U)
  3623. #define ADC_CSR_OVR_MST_Msk (0x1UL << ADC_CSR_OVR_MST_Pos) /*!< 0x00000010 */
  3624. #define ADC_CSR_OVR_MST ADC_CSR_OVR_MST_Msk /*!< Overrun flag of the master ADC */
  3625. #define ADC_CSR_JEOC_MST_Pos (5U)
  3626. #define ADC_CSR_JEOC_MST_Msk (0x1UL << ADC_CSR_JEOC_MST_Pos) /*!< 0x00000020 */
  3627. #define ADC_CSR_JEOC_MST ADC_CSR_JEOC_MST_Msk /*!< End of injected conversion of the master ADC */
  3628. #define ADC_CSR_JEOS_MST_Pos (6U)
  3629. #define ADC_CSR_JEOS_MST_Msk (0x1UL << ADC_CSR_JEOS_MST_Pos) /*!< 0x00000040 */
  3630. #define ADC_CSR_JEOS_MST ADC_CSR_JEOS_MST_Msk /*!< End of injected sequence flag of the master ADC */
  3631. #define ADC_CSR_AWD1_MST_Pos (7U)
  3632. #define ADC_CSR_AWD1_MST_Msk (0x1UL << ADC_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
  3633. #define ADC_CSR_AWD1_MST ADC_CSR_AWD1_MST_Msk /*!< Analog watchdog 1 flag of the master ADC */
  3634. #define ADC_CSR_AWD2_MST_Pos (8U)
  3635. #define ADC_CSR_AWD2_MST_Msk (0x1UL << ADC_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
  3636. #define ADC_CSR_AWD2_MST ADC_CSR_AWD2_MST_Msk /*!< Analog watchdog 2 flag of the master ADC */
  3637. #define ADC_CSR_AWD3_MST_Pos (9U)
  3638. #define ADC_CSR_AWD3_MST_Msk (0x1UL << ADC_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
  3639. #define ADC_CSR_AWD3_MST ADC_CSR_AWD3_MST_Msk /*!< Analog watchdog 3 flag of the master ADC */
  3640. #define ADC_CSR_JQOVF_MST_Pos (10U)
  3641. #define ADC_CSR_JQOVF_MST_Msk (0x1UL << ADC_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
  3642. #define ADC_CSR_JQOVF_MST ADC_CSR_JQOVF_MST_Msk /*!< Injected context queue overflow flag of the master ADC */
  3643. #define ADC_CSR_ADRDY_SLV_Pos (16U)
  3644. #define ADC_CSR_ADRDY_SLV_Msk (0x1UL << ADC_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
  3645. #define ADC_CSR_ADRDY_SLV ADC_CSR_ADRDY_SLV_Msk /*!< Slave ADC ready */
  3646. #define ADC_CSR_EOSMP_SLV_Pos (17U)
  3647. #define ADC_CSR_EOSMP_SLV_Msk (0x1UL << ADC_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */
  3648. #define ADC_CSR_EOSMP_SLV ADC_CSR_EOSMP_SLV_Msk /*!< End of sampling phase flag of the slave ADC */
  3649. #define ADC_CSR_EOC_SLV_Pos (18U)
  3650. #define ADC_CSR_EOC_SLV_Msk (0x1UL << ADC_CSR_EOC_SLV_Pos) /*!< 0x00040000 */
  3651. #define ADC_CSR_EOC_SLV ADC_CSR_EOC_SLV_Msk /*!< End of regular conversion of the slave ADC */
  3652. #define ADC_CSR_EOS_SLV_Pos (19U)
  3653. #define ADC_CSR_EOS_SLV_Msk (0x1UL << ADC_CSR_EOS_SLV_Pos) /*!< 0x00080000 */
  3654. #define ADC_CSR_EOS_SLV ADC_CSR_EOS_SLV_Msk /*!< End of regular sequence flag of the slave ADC */
  3655. #define ADC_CSR_OVR_SLV_Pos (20U)
  3656. #define ADC_CSR_OVR_SLV_Msk (0x1UL << ADC_CSR_OVR_SLV_Pos) /*!< 0x00100000 */
  3657. #define ADC_CSR_OVR_SLV ADC_CSR_OVR_SLV_Msk /*!< Overrun flag of the slave ADC */
  3658. #define ADC_CSR_JEOC_SLV_Pos (21U)
  3659. #define ADC_CSR_JEOC_SLV_Msk (0x1UL << ADC_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */
  3660. #define ADC_CSR_JEOC_SLV ADC_CSR_JEOC_SLV_Msk /*!< End of injected conversion of the slave ADC */
  3661. #define ADC_CSR_JEOS_SLV_Pos (22U)
  3662. #define ADC_CSR_JEOS_SLV_Msk (0x1UL << ADC_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */
  3663. #define ADC_CSR_JEOS_SLV ADC_CSR_JEOS_SLV_Msk /*!< End of injected sequence flag of the slave ADC */
  3664. #define ADC_CSR_AWD1_SLV_Pos (23U)
  3665. #define ADC_CSR_AWD1_SLV_Msk (0x1UL << ADC_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
  3666. #define ADC_CSR_AWD1_SLV ADC_CSR_AWD1_SLV_Msk /*!< Analog watchdog 1 flag of the slave ADC */
  3667. #define ADC_CSR_AWD2_SLV_Pos (24U)
  3668. #define ADC_CSR_AWD2_SLV_Msk (0x1UL << ADC_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
  3669. #define ADC_CSR_AWD2_SLV ADC_CSR_AWD2_SLV_Msk /*!< Analog watchdog 2 flag of the slave ADC */
  3670. #define ADC_CSR_AWD3_SLV_Pos (25U)
  3671. #define ADC_CSR_AWD3_SLV_Msk (0x1UL << ADC_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
  3672. #define ADC_CSR_AWD3_SLV ADC_CSR_AWD3_SLV_Msk /*!< Analog watchdog 3 flag of the slave ADC */
  3673. #define ADC_CSR_JQOVF_SLV_Pos (26U)
  3674. #define ADC_CSR_JQOVF_SLV_Msk (0x1UL << ADC_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
  3675. #define ADC_CSR_JQOVF_SLV ADC_CSR_JQOVF_SLV_Msk /*!< Injected context queue overflow flag of the slave ADC */
  3676. /******************** Bit definition for ADC_CCR register ********************/
  3677. #define ADC_CCR_DUAL_Pos (0U)
  3678. #define ADC_CCR_DUAL_Msk (0x1FUL << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */
  3679. #define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< Dual ADC mode selection */
  3680. #define ADC_CCR_DUAL_0 (0x01UL << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */
  3681. #define ADC_CCR_DUAL_1 (0x02UL << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */
  3682. #define ADC_CCR_DUAL_2 (0x04UL << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */
  3683. #define ADC_CCR_DUAL_3 (0x08UL << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */
  3684. #define ADC_CCR_DUAL_4 (0x10UL << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */
  3685. #define ADC_CCR_DELAY_Pos (8U)
  3686. #define ADC_CCR_DELAY_Msk (0xFUL << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */
  3687. #define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< Delay between 2 sampling phases */
  3688. #define ADC_CCR_DELAY_0 (0x1UL << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */
  3689. #define ADC_CCR_DELAY_1 (0x2UL << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */
  3690. #define ADC_CCR_DELAY_2 (0x4UL << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */
  3691. #define ADC_CCR_DELAY_3 (0x8UL << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */
  3692. #define ADC_CCR_DAMDF_Pos (14U)
  3693. #define ADC_CCR_DAMDF_Msk (0x3UL << ADC_CCR_DAMDF_Pos) /*!< 0x0000C000 */
  3694. #define ADC_CCR_DAMDF ADC_CCR_DAMDF_Msk /*!< Dual ADC mode Data format */
  3695. #define ADC_CCR_DAMDF_0 (0x1UL << ADC_CCR_DAMDF_Pos) /*!< 0x00004000 */
  3696. #define ADC_CCR_DAMDF_1 (0x2UL << ADC_CCR_DAMDF_Pos) /*!< 0x00008000 */
  3697. #define ADC_CCR_CKMODE_Pos (16U)
  3698. #define ADC_CCR_CKMODE_Msk (0x3UL << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */
  3699. #define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC clock mode */
  3700. #define ADC_CCR_CKMODE_0 (0x1UL << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */
  3701. #define ADC_CCR_CKMODE_1 (0x2UL << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */
  3702. #define ADC_CCR_PRESC_Pos (18U)
  3703. #define ADC_CCR_PRESC_Msk (0xFUL << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */
  3704. #define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC prescaler */
  3705. #define ADC_CCR_PRESC_0 (0x1UL << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */
  3706. #define ADC_CCR_PRESC_1 (0x2UL << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */
  3707. #define ADC_CCR_PRESC_2 (0x4UL << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */
  3708. #define ADC_CCR_PRESC_3 (0x8UL << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */
  3709. #define ADC_CCR_VREFEN_Pos (22U)
  3710. #define ADC_CCR_VREFEN_Msk (0x1UL << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  3711. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< VREFINT enable */
  3712. #define ADC_CCR_TSEN_Pos (23U)
  3713. #define ADC_CCR_TSEN_Msk (0x1UL << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  3714. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< Temperature sensor enable */
  3715. #define ADC_CCR_VBATEN_Pos (24U)
  3716. #define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  3717. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< VBAT enable */
  3718. /******************** Bit definition for ADC_CDR register *******************/
  3719. #define ADC_CDR_RDATA_MST_Pos (0U)
  3720. #define ADC_CDR_RDATA_MST_Msk (0xFFFFUL << ADC_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
  3721. #define ADC_CDR_RDATA_MST ADC_CDR_RDATA_MST_Msk /*!< ADC multimode master group regular conversion data */
  3722. #define ADC_CDR_RDATA_SLV_Pos (16U)
  3723. #define ADC_CDR_RDATA_SLV_Msk (0xFFFFUL << ADC_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
  3724. #define ADC_CDR_RDATA_SLV ADC_CDR_RDATA_SLV_Msk /*!< ADC multimode slave group regular conversion data */
  3725. /******************** Bit definition for ADC_CDR2 register ******************/
  3726. #define ADC_CDR2_RDATA_ALT_Pos (0U)
  3727. #define ADC_CDR2_RDATA_ALT_Msk (0xFFFFFFFFUL << ADC_CDR2_RDATA_ALT_Pos) /*!< 0xFFFFFFFF */
  3728. #define ADC_CDR2_RDATA_ALT ADC_CDR2_RDATA_ALT_Msk /*!< Regular data of the master/slave alternated ADCs */
  3729. /******************************************************************************/
  3730. /* */
  3731. /* VREFBUF */
  3732. /* */
  3733. /******************************************************************************/
  3734. /******************* Bit definition for VREFBUF_CSR register ****************/
  3735. #define VREFBUF_CSR_ENVR_Pos (0U)
  3736. #define VREFBUF_CSR_ENVR_Msk (0x1UL << VREFBUF_CSR_ENVR_Pos) /*!< 0x00000001 */
  3737. #define VREFBUF_CSR_ENVR VREFBUF_CSR_ENVR_Msk /*!<Voltage reference buffer enable */
  3738. #define VREFBUF_CSR_HIZ_Pos (1U)
  3739. #define VREFBUF_CSR_HIZ_Msk (0x1UL << VREFBUF_CSR_HIZ_Pos) /*!< 0x00000002 */
  3740. #define VREFBUF_CSR_HIZ VREFBUF_CSR_HIZ_Msk /*!<High impedance mode */
  3741. #define VREFBUF_CSR_VRR_Pos (3U)
  3742. #define VREFBUF_CSR_VRR_Msk (0x1UL << VREFBUF_CSR_VRR_Pos) /*!< 0x00000008 */
  3743. #define VREFBUF_CSR_VRR VREFBUF_CSR_VRR_Msk /*!<Voltage reference buffer ready */
  3744. #define VREFBUF_CSR_VRS_Pos (4U)
  3745. #define VREFBUF_CSR_VRS_Msk (0x7UL << VREFBUF_CSR_VRS_Pos) /*!< 0x00000070 */
  3746. #define VREFBUF_CSR_VRS VREFBUF_CSR_VRS_Msk /*!<Voltage reference scale */
  3747. #define VREFBUF_CSR_VRS_OUT1 ((uint32_t)0x00000000) /*!<Voltage reference VREF_OUT1 */
  3748. #define VREFBUF_CSR_VRS_OUT2_Pos (4U)
  3749. #define VREFBUF_CSR_VRS_OUT2_Msk (0x1UL << VREFBUF_CSR_VRS_OUT2_Pos) /*!< 0x00000010 */
  3750. #define VREFBUF_CSR_VRS_OUT2 VREFBUF_CSR_VRS_OUT2_Msk /*!<Voltage reference VREF_OUT2 */
  3751. #define VREFBUF_CSR_VRS_OUT3_Pos (5U)
  3752. #define VREFBUF_CSR_VRS_OUT3_Msk (0x1UL << VREFBUF_CSR_VRS_OUT3_Pos) /*!< 0x00000020 */
  3753. #define VREFBUF_CSR_VRS_OUT3 VREFBUF_CSR_VRS_OUT3_Msk /*!<Voltage reference VREF_OUT3 */
  3754. #define VREFBUF_CSR_VRS_OUT4_Pos (4U)
  3755. #define VREFBUF_CSR_VRS_OUT4_Msk (0x3UL << VREFBUF_CSR_VRS_OUT4_Pos) /*!< 0x00000030 */
  3756. #define VREFBUF_CSR_VRS_OUT4 VREFBUF_CSR_VRS_OUT4_Msk /*!<Voltage reference VREF_OUT4 */
  3757. /******************* Bit definition for VREFBUF_CCR register ****************/
  3758. #define VREFBUF_CCR_TRIM_Pos (0U)
  3759. #define VREFBUF_CCR_TRIM_Msk (0x3FUL << VREFBUF_CCR_TRIM_Pos) /*!< 0x0000003F */
  3760. #define VREFBUF_CCR_TRIM VREFBUF_CCR_TRIM_Msk /*!<TRIM[5:0] bits (Trimming code) */
  3761. /******************************************************************************/
  3762. /* */
  3763. /* Flexible Datarate Controller Area Network */
  3764. /* */
  3765. /******************************************************************************/
  3766. /*!<FDCAN control and status registers */
  3767. /***************** Bit definition for FDCAN_CREL register *******************/
  3768. #define FDCAN_CREL_DAY_Pos (0U)
  3769. #define FDCAN_CREL_DAY_Msk (0xFFUL << FDCAN_CREL_DAY_Pos) /*!< 0x000000FF */
  3770. #define FDCAN_CREL_DAY FDCAN_CREL_DAY_Msk /*!<Timestamp Day */
  3771. #define FDCAN_CREL_MON_Pos (8U)
  3772. #define FDCAN_CREL_MON_Msk (0xFFUL << FDCAN_CREL_MON_Pos) /*!< 0x0000FF00 */
  3773. #define FDCAN_CREL_MON FDCAN_CREL_MON_Msk /*!<Timestamp Month */
  3774. #define FDCAN_CREL_YEAR_Pos (16U)
  3775. #define FDCAN_CREL_YEAR_Msk (0xFUL << FDCAN_CREL_YEAR_Pos) /*!< 0x000F0000 */
  3776. #define FDCAN_CREL_YEAR FDCAN_CREL_YEAR_Msk /*!<Timestamp Year */
  3777. #define FDCAN_CREL_SUBSTEP_Pos (20U)
  3778. #define FDCAN_CREL_SUBSTEP_Msk (0xFUL << FDCAN_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  3779. #define FDCAN_CREL_SUBSTEP FDCAN_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  3780. #define FDCAN_CREL_STEP_Pos (24U)
  3781. #define FDCAN_CREL_STEP_Msk (0xFUL << FDCAN_CREL_STEP_Pos) /*!< 0x0F000000 */
  3782. #define FDCAN_CREL_STEP FDCAN_CREL_STEP_Msk /*!<Step of Core release */
  3783. #define FDCAN_CREL_REL_Pos (28U)
  3784. #define FDCAN_CREL_REL_Msk (0xFUL << FDCAN_CREL_REL_Pos) /*!< 0xF0000000 */
  3785. #define FDCAN_CREL_REL FDCAN_CREL_REL_Msk /*!<Core release */
  3786. /***************** Bit definition for FDCAN_ENDN register *******************/
  3787. #define FDCAN_ENDN_ETV_Pos (0U)
  3788. #define FDCAN_ENDN_ETV_Msk (0xFFFFFFFFUL << FDCAN_ENDN_ETV_Pos) /*!< 0xFFFFFFFF */
  3789. #define FDCAN_ENDN_ETV FDCAN_ENDN_ETV_Msk /*!<Endianness Test Value */
  3790. /***************** Bit definition for FDCAN_DBTP register *******************/
  3791. #define FDCAN_DBTP_DSJW_Pos (0U)
  3792. #define FDCAN_DBTP_DSJW_Msk (0xFUL << FDCAN_DBTP_DSJW_Pos) /*!< 0x0000000F */
  3793. #define FDCAN_DBTP_DSJW FDCAN_DBTP_DSJW_Msk /*!<Synchronization Jump Width */
  3794. #define FDCAN_DBTP_DTSEG2_Pos (4U)
  3795. #define FDCAN_DBTP_DTSEG2_Msk (0xFUL << FDCAN_DBTP_DTSEG2_Pos) /*!< 0x000000F0 */
  3796. #define FDCAN_DBTP_DTSEG2 FDCAN_DBTP_DTSEG2_Msk /*!<Data time segment after sample point */
  3797. #define FDCAN_DBTP_DTSEG1_Pos (8U)
  3798. #define FDCAN_DBTP_DTSEG1_Msk (0x1FUL << FDCAN_DBTP_DTSEG1_Pos) /*!< 0x00001F00 */
  3799. #define FDCAN_DBTP_DTSEG1 FDCAN_DBTP_DTSEG1_Msk /*!<Data time segment before sample point */
  3800. #define FDCAN_DBTP_DBRP_Pos (16U)
  3801. #define FDCAN_DBTP_DBRP_Msk (0x1FUL << FDCAN_DBTP_DBRP_Pos) /*!< 0x001F0000 */
  3802. #define FDCAN_DBTP_DBRP FDCAN_DBTP_DBRP_Msk /*!<Data BIt Rate Prescaler */
  3803. #define FDCAN_DBTP_TDC_Pos (23U)
  3804. #define FDCAN_DBTP_TDC_Msk (0x1UL << FDCAN_DBTP_TDC_Pos) /*!< 0x00800000 */
  3805. #define FDCAN_DBTP_TDC FDCAN_DBTP_TDC_Msk /*!<Transceiver Delay Compensation */
  3806. /***************** Bit definition for FDCAN_TEST register *******************/
  3807. #define FDCAN_TEST_LBCK_Pos (4U)
  3808. #define FDCAN_TEST_LBCK_Msk (0x1UL << FDCAN_TEST_LBCK_Pos) /*!< 0x00000010 */
  3809. #define FDCAN_TEST_LBCK FDCAN_TEST_LBCK_Msk /*!<Loop Back mode */
  3810. #define FDCAN_TEST_TX_Pos (5U)
  3811. #define FDCAN_TEST_TX_Msk (0x3UL << FDCAN_TEST_TX_Pos) /*!< 0x00000060 */
  3812. #define FDCAN_TEST_TX FDCAN_TEST_TX_Msk /*!<Control of Transmit Pin */
  3813. #define FDCAN_TEST_RX_Pos (7U)
  3814. #define FDCAN_TEST_RX_Msk (0x1UL << FDCAN_TEST_RX_Pos) /*!< 0x00000080 */
  3815. #define FDCAN_TEST_RX FDCAN_TEST_RX_Msk /*!<Receive Pin */
  3816. /***************** Bit definition for FDCAN_RWD register ********************/
  3817. #define FDCAN_RWD_WDC_Pos (0U)
  3818. #define FDCAN_RWD_WDC_Msk (0xFFUL << FDCAN_RWD_WDC_Pos) /*!< 0x000000FF */
  3819. #define FDCAN_RWD_WDC FDCAN_RWD_WDC_Msk /*!<Watchdog configuration */
  3820. #define FDCAN_RWD_WDV_Pos (8U)
  3821. #define FDCAN_RWD_WDV_Msk (0xFFUL << FDCAN_RWD_WDV_Pos) /*!< 0x0000FF00 */
  3822. #define FDCAN_RWD_WDV FDCAN_RWD_WDV_Msk /*!<Watchdog value */
  3823. /***************** Bit definition for FDCAN_CCCR register ********************/
  3824. #define FDCAN_CCCR_INIT_Pos (0U)
  3825. #define FDCAN_CCCR_INIT_Msk (0x1UL << FDCAN_CCCR_INIT_Pos) /*!< 0x00000001 */
  3826. #define FDCAN_CCCR_INIT FDCAN_CCCR_INIT_Msk /*!<Initialization */
  3827. #define FDCAN_CCCR_CCE_Pos (1U)
  3828. #define FDCAN_CCCR_CCE_Msk (0x1UL << FDCAN_CCCR_CCE_Pos) /*!< 0x00000002 */
  3829. #define FDCAN_CCCR_CCE FDCAN_CCCR_CCE_Msk /*!<Configuration Change Enable */
  3830. #define FDCAN_CCCR_ASM_Pos (2U)
  3831. #define FDCAN_CCCR_ASM_Msk (0x1UL << FDCAN_CCCR_ASM_Pos) /*!< 0x00000004 */
  3832. #define FDCAN_CCCR_ASM FDCAN_CCCR_ASM_Msk /*!<ASM Restricted Operation Mode */
  3833. #define FDCAN_CCCR_CSA_Pos (3U)
  3834. #define FDCAN_CCCR_CSA_Msk (0x1UL << FDCAN_CCCR_CSA_Pos) /*!< 0x00000008 */
  3835. #define FDCAN_CCCR_CSA FDCAN_CCCR_CSA_Msk /*!<Clock Stop Acknowledge */
  3836. #define FDCAN_CCCR_CSR_Pos (4U)
  3837. #define FDCAN_CCCR_CSR_Msk (0x1UL << FDCAN_CCCR_CSR_Pos) /*!< 0x00000010 */
  3838. #define FDCAN_CCCR_CSR FDCAN_CCCR_CSR_Msk /*!<Clock Stop Request */
  3839. #define FDCAN_CCCR_MON_Pos (5U)
  3840. #define FDCAN_CCCR_MON_Msk (0x1UL << FDCAN_CCCR_MON_Pos) /*!< 0x00000020 */
  3841. #define FDCAN_CCCR_MON FDCAN_CCCR_MON_Msk /*!<Bus Monitoring Mode */
  3842. #define FDCAN_CCCR_DAR_Pos (6U)
  3843. #define FDCAN_CCCR_DAR_Msk (0x1UL << FDCAN_CCCR_DAR_Pos) /*!< 0x00000040 */
  3844. #define FDCAN_CCCR_DAR FDCAN_CCCR_DAR_Msk /*!<Disable Automatic Retransmission */
  3845. #define FDCAN_CCCR_TEST_Pos (7U)
  3846. #define FDCAN_CCCR_TEST_Msk (0x1UL << FDCAN_CCCR_TEST_Pos) /*!< 0x00000080 */
  3847. #define FDCAN_CCCR_TEST FDCAN_CCCR_TEST_Msk /*!<Test Mode Enable */
  3848. #define FDCAN_CCCR_FDOE_Pos (8U)
  3849. #define FDCAN_CCCR_FDOE_Msk (0x1UL << FDCAN_CCCR_FDOE_Pos) /*!< 0x00000100 */
  3850. #define FDCAN_CCCR_FDOE FDCAN_CCCR_FDOE_Msk /*!<FD Operation Enable */
  3851. #define FDCAN_CCCR_BRSE_Pos (9U)
  3852. #define FDCAN_CCCR_BRSE_Msk (0x1UL << FDCAN_CCCR_BRSE_Pos) /*!< 0x00000200 */
  3853. #define FDCAN_CCCR_BRSE FDCAN_CCCR_BRSE_Msk /*!<FDCAN Bit Rate Switching */
  3854. #define FDCAN_CCCR_PXHD_Pos (12U)
  3855. #define FDCAN_CCCR_PXHD_Msk (0x1UL << FDCAN_CCCR_PXHD_Pos) /*!< 0x00001000 */
  3856. #define FDCAN_CCCR_PXHD FDCAN_CCCR_PXHD_Msk /*!<Protocol Exception Handling Disable */
  3857. #define FDCAN_CCCR_EFBI_Pos (13U)
  3858. #define FDCAN_CCCR_EFBI_Msk (0x1UL << FDCAN_CCCR_EFBI_Pos) /*!< 0x00002000 */
  3859. #define FDCAN_CCCR_EFBI FDCAN_CCCR_EFBI_Msk /*!<Edge Filtering during Bus Integration */
  3860. #define FDCAN_CCCR_TXP_Pos (14U)
  3861. #define FDCAN_CCCR_TXP_Msk (0x1UL << FDCAN_CCCR_TXP_Pos) /*!< 0x00004000 */
  3862. #define FDCAN_CCCR_TXP FDCAN_CCCR_TXP_Msk /*!<Two CAN bit times Pause */
  3863. #define FDCAN_CCCR_NISO_Pos (15U)
  3864. #define FDCAN_CCCR_NISO_Msk (0x1UL << FDCAN_CCCR_NISO_Pos) /*!< 0x00008000 */
  3865. #define FDCAN_CCCR_NISO FDCAN_CCCR_NISO_Msk /*!<Non ISO Operation */
  3866. /***************** Bit definition for FDCAN_NBTP register ********************/
  3867. #define FDCAN_NBTP_NTSEG2_Pos (0U)
  3868. #define FDCAN_NBTP_NTSEG2_Msk (0x7FUL << FDCAN_NBTP_NTSEG2_Pos) /*!< 0x0000007F */
  3869. #define FDCAN_NBTP_NTSEG2 FDCAN_NBTP_NTSEG2_Msk /*!<Nominal Time segment after sample point */
  3870. #define FDCAN_NBTP_NTSEG1_Pos (8U)
  3871. #define FDCAN_NBTP_NTSEG1_Msk (0xFFUL << FDCAN_NBTP_NTSEG1_Pos) /*!< 0x0000FF00 */
  3872. #define FDCAN_NBTP_NTSEG1 FDCAN_NBTP_NTSEG1_Msk /*!<Nominal Time segment before sample point */
  3873. #define FDCAN_NBTP_NBRP_Pos (16U)
  3874. #define FDCAN_NBTP_NBRP_Msk (0x1FFUL << FDCAN_NBTP_NBRP_Pos) /*!< 0x01FF0000 */
  3875. #define FDCAN_NBTP_NBRP FDCAN_NBTP_NBRP_Msk /*!<Bit Rate Prescaler */
  3876. #define FDCAN_NBTP_NSJW_Pos (25U)
  3877. #define FDCAN_NBTP_NSJW_Msk (0x7FUL << FDCAN_NBTP_NSJW_Pos) /*!< 0xFE000000 */
  3878. #define FDCAN_NBTP_NSJW FDCAN_NBTP_NSJW_Msk /*!<Nominal (Re)Synchronization Jump Width */
  3879. /***************** Bit definition for FDCAN_TSCC register ********************/
  3880. #define FDCAN_TSCC_TSS_Pos (0U)
  3881. #define FDCAN_TSCC_TSS_Msk (0x3UL << FDCAN_TSCC_TSS_Pos) /*!< 0x00000003 */
  3882. #define FDCAN_TSCC_TSS FDCAN_TSCC_TSS_Msk /*!<Timestamp Select */
  3883. #define FDCAN_TSCC_TCP_Pos (16U)
  3884. #define FDCAN_TSCC_TCP_Msk (0xFUL << FDCAN_TSCC_TCP_Pos) /*!< 0x000F0000 */
  3885. #define FDCAN_TSCC_TCP FDCAN_TSCC_TCP_Msk /*!<Timestamp Counter Prescaler */
  3886. /***************** Bit definition for FDCAN_TSCV register ********************/
  3887. #define FDCAN_TSCV_TSC_Pos (0U)
  3888. #define FDCAN_TSCV_TSC_Msk (0xFFFFUL << FDCAN_TSCV_TSC_Pos) /*!< 0x0000FFFF */
  3889. #define FDCAN_TSCV_TSC FDCAN_TSCV_TSC_Msk /*!<Timestamp Counter */
  3890. /***************** Bit definition for FDCAN_TOCC register ********************/
  3891. #define FDCAN_TOCC_ETOC_Pos (0U)
  3892. #define FDCAN_TOCC_ETOC_Msk (0x1UL << FDCAN_TOCC_ETOC_Pos) /*!< 0x00000001 */
  3893. #define FDCAN_TOCC_ETOC FDCAN_TOCC_ETOC_Msk /*!<Enable Timeout Counter */
  3894. #define FDCAN_TOCC_TOS_Pos (1U)
  3895. #define FDCAN_TOCC_TOS_Msk (0x3UL << FDCAN_TOCC_TOS_Pos) /*!< 0x00000006 */
  3896. #define FDCAN_TOCC_TOS FDCAN_TOCC_TOS_Msk /*!<Timeout Select */
  3897. #define FDCAN_TOCC_TOP_Pos (16U)
  3898. #define FDCAN_TOCC_TOP_Msk (0xFFFFUL << FDCAN_TOCC_TOP_Pos) /*!< 0xFFFF0000 */
  3899. #define FDCAN_TOCC_TOP FDCAN_TOCC_TOP_Msk /*!<Timeout Period */
  3900. /***************** Bit definition for FDCAN_TOCV register ********************/
  3901. #define FDCAN_TOCV_TOC_Pos (0U)
  3902. #define FDCAN_TOCV_TOC_Msk (0xFFFFUL << FDCAN_TOCV_TOC_Pos) /*!< 0x0000FFFF */
  3903. #define FDCAN_TOCV_TOC FDCAN_TOCV_TOC_Msk /*!<Timeout Counter */
  3904. /***************** Bit definition for FDCAN_ECR register *********************/
  3905. #define FDCAN_ECR_TEC_Pos (0U)
  3906. #define FDCAN_ECR_TEC_Msk (0xFFUL << FDCAN_ECR_TEC_Pos) /*!< 0x000000FF */
  3907. #define FDCAN_ECR_TEC FDCAN_ECR_TEC_Msk /*!<Transmit Error Counter */
  3908. #define FDCAN_ECR_REC_Pos (8U)
  3909. #define FDCAN_ECR_REC_Msk (0x7FUL << FDCAN_ECR_REC_Pos) /*!< 0x00007F00 */
  3910. #define FDCAN_ECR_REC FDCAN_ECR_REC_Msk /*!<Receive Error Counter */
  3911. #define FDCAN_ECR_RP_Pos (15U)
  3912. #define FDCAN_ECR_RP_Msk (0x1UL << FDCAN_ECR_RP_Pos) /*!< 0x00008000 */
  3913. #define FDCAN_ECR_RP FDCAN_ECR_RP_Msk /*!<Receive Error Passive */
  3914. #define FDCAN_ECR_CEL_Pos (16U)
  3915. #define FDCAN_ECR_CEL_Msk (0xFFUL << FDCAN_ECR_CEL_Pos) /*!< 0x00FF0000 */
  3916. #define FDCAN_ECR_CEL FDCAN_ECR_CEL_Msk /*!<CAN Error Logging */
  3917. /***************** Bit definition for FDCAN_PSR register *********************/
  3918. #define FDCAN_PSR_LEC_Pos (0U)
  3919. #define FDCAN_PSR_LEC_Msk (0x7UL << FDCAN_PSR_LEC_Pos) /*!< 0x00000007 */
  3920. #define FDCAN_PSR_LEC FDCAN_PSR_LEC_Msk /*!<Last Error Code */
  3921. #define FDCAN_PSR_ACT_Pos (3U)
  3922. #define FDCAN_PSR_ACT_Msk (0x3UL << FDCAN_PSR_ACT_Pos) /*!< 0x00000018 */
  3923. #define FDCAN_PSR_ACT FDCAN_PSR_ACT_Msk /*!<Activity */
  3924. #define FDCAN_PSR_EP_Pos (5U)
  3925. #define FDCAN_PSR_EP_Msk (0x1UL << FDCAN_PSR_EP_Pos) /*!< 0x00000020 */
  3926. #define FDCAN_PSR_EP FDCAN_PSR_EP_Msk /*!<Error Passive */
  3927. #define FDCAN_PSR_EW_Pos (6U)
  3928. #define FDCAN_PSR_EW_Msk (0x1UL << FDCAN_PSR_EW_Pos) /*!< 0x00000040 */
  3929. #define FDCAN_PSR_EW FDCAN_PSR_EW_Msk /*!<Warning Status */
  3930. #define FDCAN_PSR_BO_Pos (7U)
  3931. #define FDCAN_PSR_BO_Msk (0x1UL << FDCAN_PSR_BO_Pos) /*!< 0x00000080 */
  3932. #define FDCAN_PSR_BO FDCAN_PSR_BO_Msk /*!<Bus_Off Status */
  3933. #define FDCAN_PSR_DLEC_Pos (8U)
  3934. #define FDCAN_PSR_DLEC_Msk (0x7UL << FDCAN_PSR_DLEC_Pos) /*!< 0x00000700 */
  3935. #define FDCAN_PSR_DLEC FDCAN_PSR_DLEC_Msk /*!<Data Last Error Code */
  3936. #define FDCAN_PSR_RESI_Pos (11U)
  3937. #define FDCAN_PSR_RESI_Msk (0x1UL << FDCAN_PSR_RESI_Pos) /*!< 0x00000800 */
  3938. #define FDCAN_PSR_RESI FDCAN_PSR_RESI_Msk /*!<ESI flag of last received FDCAN Message */
  3939. #define FDCAN_PSR_RBRS_Pos (12U)
  3940. #define FDCAN_PSR_RBRS_Msk (0x1UL << FDCAN_PSR_RBRS_Pos) /*!< 0x00001000 */
  3941. #define FDCAN_PSR_RBRS FDCAN_PSR_RBRS_Msk /*!<BRS flag of last received FDCAN Message */
  3942. #define FDCAN_PSR_REDL_Pos (13U)
  3943. #define FDCAN_PSR_REDL_Msk (0x1UL << FDCAN_PSR_REDL_Pos) /*!< 0x00002000 */
  3944. #define FDCAN_PSR_REDL FDCAN_PSR_REDL_Msk /*!<Received FDCAN Message */
  3945. #define FDCAN_PSR_PXE_Pos (14U)
  3946. #define FDCAN_PSR_PXE_Msk (0x1UL << FDCAN_PSR_PXE_Pos) /*!< 0x00004000 */
  3947. #define FDCAN_PSR_PXE FDCAN_PSR_PXE_Msk /*!<Protocol Exception Event */
  3948. #define FDCAN_PSR_TDCV_Pos (16U)
  3949. #define FDCAN_PSR_TDCV_Msk (0x7FUL << FDCAN_PSR_TDCV_Pos) /*!< 0x007F0000 */
  3950. #define FDCAN_PSR_TDCV FDCAN_PSR_TDCV_Msk /*!<Transmitter Delay Compensation Value */
  3951. /***************** Bit definition for FDCAN_TDCR register ********************/
  3952. #define FDCAN_TDCR_TDCF_Pos (0U)
  3953. #define FDCAN_TDCR_TDCF_Msk (0x7FUL << FDCAN_TDCR_TDCF_Pos) /*!< 0x0000007F */
  3954. #define FDCAN_TDCR_TDCF FDCAN_TDCR_TDCF_Msk /*!<Transmitter Delay Compensation Filter */
  3955. #define FDCAN_TDCR_TDCO_Pos (8U)
  3956. #define FDCAN_TDCR_TDCO_Msk (0x7FUL << FDCAN_TDCR_TDCO_Pos) /*!< 0x00007F00 */
  3957. #define FDCAN_TDCR_TDCO FDCAN_TDCR_TDCO_Msk /*!<Transmitter Delay Compensation Offset */
  3958. /***************** Bit definition for FDCAN_IR register **********************/
  3959. #define FDCAN_IR_RF0N_Pos (0U)
  3960. #define FDCAN_IR_RF0N_Msk (0x1UL << FDCAN_IR_RF0N_Pos) /*!< 0x00000001 */
  3961. #define FDCAN_IR_RF0N FDCAN_IR_RF0N_Msk /*!<Rx FIFO 0 New Message */
  3962. #define FDCAN_IR_RF0W_Pos (1U)
  3963. #define FDCAN_IR_RF0W_Msk (0x1UL << FDCAN_IR_RF0W_Pos) /*!< 0x00000002 */
  3964. #define FDCAN_IR_RF0W FDCAN_IR_RF0W_Msk /*!<Rx FIFO 0 Watermark Reached */
  3965. #define FDCAN_IR_RF0F_Pos (2U)
  3966. #define FDCAN_IR_RF0F_Msk (0x1UL << FDCAN_IR_RF0F_Pos) /*!< 0x00000004 */
  3967. #define FDCAN_IR_RF0F FDCAN_IR_RF0F_Msk /*!<Rx FIFO 0 Full */
  3968. #define FDCAN_IR_RF0L_Pos (3U)
  3969. #define FDCAN_IR_RF0L_Msk (0x1UL << FDCAN_IR_RF0L_Pos) /*!< 0x00000008 */
  3970. #define FDCAN_IR_RF0L FDCAN_IR_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  3971. #define FDCAN_IR_RF1N_Pos (4U)
  3972. #define FDCAN_IR_RF1N_Msk (0x1UL << FDCAN_IR_RF1N_Pos) /*!< 0x00000010 */
  3973. #define FDCAN_IR_RF1N FDCAN_IR_RF1N_Msk /*!<Rx FIFO 1 New Message */
  3974. #define FDCAN_IR_RF1W_Pos (5U)
  3975. #define FDCAN_IR_RF1W_Msk (0x1UL << FDCAN_IR_RF1W_Pos) /*!< 0x00000020 */
  3976. #define FDCAN_IR_RF1W FDCAN_IR_RF1W_Msk /*!<Rx FIFO 1 Watermark Reached */
  3977. #define FDCAN_IR_RF1F_Pos (6U)
  3978. #define FDCAN_IR_RF1F_Msk (0x1UL << FDCAN_IR_RF1F_Pos) /*!< 0x00000040 */
  3979. #define FDCAN_IR_RF1F FDCAN_IR_RF1F_Msk /*!<Rx FIFO 1 Full */
  3980. #define FDCAN_IR_RF1L_Pos (7U)
  3981. #define FDCAN_IR_RF1L_Msk (0x1UL << FDCAN_IR_RF1L_Pos) /*!< 0x00000080 */
  3982. #define FDCAN_IR_RF1L FDCAN_IR_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  3983. #define FDCAN_IR_HPM_Pos (8U)
  3984. #define FDCAN_IR_HPM_Msk (0x1UL << FDCAN_IR_HPM_Pos) /*!< 0x00000100 */
  3985. #define FDCAN_IR_HPM FDCAN_IR_HPM_Msk /*!<High Priority Message */
  3986. #define FDCAN_IR_TC_Pos (9U)
  3987. #define FDCAN_IR_TC_Msk (0x1UL << FDCAN_IR_TC_Pos) /*!< 0x00000200 */
  3988. #define FDCAN_IR_TC FDCAN_IR_TC_Msk /*!<Transmission Completed */
  3989. #define FDCAN_IR_TCF_Pos (10U)
  3990. #define FDCAN_IR_TCF_Msk (0x1UL << FDCAN_IR_TCF_Pos) /*!< 0x00000400 */
  3991. #define FDCAN_IR_TCF FDCAN_IR_TCF_Msk /*!<Transmission Cancellation Finished */
  3992. #define FDCAN_IR_TFE_Pos (11U)
  3993. #define FDCAN_IR_TFE_Msk (0x1UL << FDCAN_IR_TFE_Pos) /*!< 0x00000800 */
  3994. #define FDCAN_IR_TFE FDCAN_IR_TFE_Msk /*!<Tx FIFO Empty */
  3995. #define FDCAN_IR_TEFN_Pos (12U)
  3996. #define FDCAN_IR_TEFN_Msk (0x1UL << FDCAN_IR_TEFN_Pos) /*!< 0x00001000 */
  3997. #define FDCAN_IR_TEFN FDCAN_IR_TEFN_Msk /*!<Tx Event FIFO New Entry */
  3998. #define FDCAN_IR_TEFW_Pos (13U)
  3999. #define FDCAN_IR_TEFW_Msk (0x1UL << FDCAN_IR_TEFW_Pos) /*!< 0x00002000 */
  4000. #define FDCAN_IR_TEFW FDCAN_IR_TEFW_Msk /*!<Tx Event FIFO Watermark Reached */
  4001. #define FDCAN_IR_TEFF_Pos (14U)
  4002. #define FDCAN_IR_TEFF_Msk (0x1UL << FDCAN_IR_TEFF_Pos) /*!< 0x00004000 */
  4003. #define FDCAN_IR_TEFF FDCAN_IR_TEFF_Msk /*!<Tx Event FIFO Full */
  4004. #define FDCAN_IR_TEFL_Pos (15U)
  4005. #define FDCAN_IR_TEFL_Msk (0x1UL << FDCAN_IR_TEFL_Pos) /*!< 0x00008000 */
  4006. #define FDCAN_IR_TEFL FDCAN_IR_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  4007. #define FDCAN_IR_TSW_Pos (16U)
  4008. #define FDCAN_IR_TSW_Msk (0x1UL << FDCAN_IR_TSW_Pos) /*!< 0x00010000 */
  4009. #define FDCAN_IR_TSW FDCAN_IR_TSW_Msk /*!<Timestamp Wraparound */
  4010. #define FDCAN_IR_MRAF_Pos (17U)
  4011. #define FDCAN_IR_MRAF_Msk (0x1UL << FDCAN_IR_MRAF_Pos) /*!< 0x00020000 */
  4012. #define FDCAN_IR_MRAF FDCAN_IR_MRAF_Msk /*!<Message RAM Access Failure */
  4013. #define FDCAN_IR_TOO_Pos (18U)
  4014. #define FDCAN_IR_TOO_Msk (0x1UL << FDCAN_IR_TOO_Pos) /*!< 0x00040000 */
  4015. #define FDCAN_IR_TOO FDCAN_IR_TOO_Msk /*!<Timeout Occurred */
  4016. #define FDCAN_IR_DRX_Pos (19U)
  4017. #define FDCAN_IR_DRX_Msk (0x1UL << FDCAN_IR_DRX_Pos) /*!< 0x00080000 */
  4018. #define FDCAN_IR_DRX FDCAN_IR_DRX_Msk /*!<Message stored to Dedicated Rx Buffer */
  4019. #define FDCAN_IR_ELO_Pos (22U)
  4020. #define FDCAN_IR_ELO_Msk (0x1UL << FDCAN_IR_ELO_Pos) /*!< 0x00400000 */
  4021. #define FDCAN_IR_ELO FDCAN_IR_ELO_Msk /*!<Error Logging Overflow */
  4022. #define FDCAN_IR_EP_Pos (23U)
  4023. #define FDCAN_IR_EP_Msk (0x1UL << FDCAN_IR_EP_Pos) /*!< 0x00800000 */
  4024. #define FDCAN_IR_EP FDCAN_IR_EP_Msk /*!<Error Passive */
  4025. #define FDCAN_IR_EW_Pos (24U)
  4026. #define FDCAN_IR_EW_Msk (0x1UL << FDCAN_IR_EW_Pos) /*!< 0x01000000 */
  4027. #define FDCAN_IR_EW FDCAN_IR_EW_Msk /*!<Warning Status */
  4028. #define FDCAN_IR_BO_Pos (25U)
  4029. #define FDCAN_IR_BO_Msk (0x1UL << FDCAN_IR_BO_Pos) /*!< 0x02000000 */
  4030. #define FDCAN_IR_BO FDCAN_IR_BO_Msk /*!<Bus_Off Status */
  4031. #define FDCAN_IR_WDI_Pos (26U)
  4032. #define FDCAN_IR_WDI_Msk (0x1UL << FDCAN_IR_WDI_Pos) /*!< 0x04000000 */
  4033. #define FDCAN_IR_WDI FDCAN_IR_WDI_Msk /*!<Watchdog Interrupt */
  4034. #define FDCAN_IR_PEA_Pos (27U)
  4035. #define FDCAN_IR_PEA_Msk (0x1UL << FDCAN_IR_PEA_Pos) /*!< 0x08000000 */
  4036. #define FDCAN_IR_PEA FDCAN_IR_PEA_Msk /*!<Protocol Error in Arbitration Phase */
  4037. #define FDCAN_IR_PED_Pos (28U)
  4038. #define FDCAN_IR_PED_Msk (0x1UL << FDCAN_IR_PED_Pos) /*!< 0x10000000 */
  4039. #define FDCAN_IR_PED FDCAN_IR_PED_Msk /*!<Protocol Error in Data Phase */
  4040. #define FDCAN_IR_ARA_Pos (29U)
  4041. #define FDCAN_IR_ARA_Msk (0x1UL << FDCAN_IR_ARA_Pos) /*!< 0x20000000 */
  4042. #define FDCAN_IR_ARA FDCAN_IR_ARA_Msk /*!<Access to Reserved Address */
  4043. /***************** Bit definition for FDCAN_IE register **********************/
  4044. #define FDCAN_IE_RF0NE_Pos (0U)
  4045. #define FDCAN_IE_RF0NE_Msk (0x1UL << FDCAN_IE_RF0NE_Pos) /*!< 0x00000001 */
  4046. #define FDCAN_IE_RF0NE FDCAN_IE_RF0NE_Msk /*!<Rx FIFO 0 New Message Enable */
  4047. #define FDCAN_IE_RF0WE_Pos (1U)
  4048. #define FDCAN_IE_RF0WE_Msk (0x1UL << FDCAN_IE_RF0WE_Pos) /*!< 0x00000002 */
  4049. #define FDCAN_IE_RF0WE FDCAN_IE_RF0WE_Msk /*!<Rx FIFO 0 Watermark Reached Enable */
  4050. #define FDCAN_IE_RF0FE_Pos (2U)
  4051. #define FDCAN_IE_RF0FE_Msk (0x1UL << FDCAN_IE_RF0FE_Pos) /*!< 0x00000004 */
  4052. #define FDCAN_IE_RF0FE FDCAN_IE_RF0FE_Msk /*!<Rx FIFO 0 Full Enable */
  4053. #define FDCAN_IE_RF0LE_Pos (3U)
  4054. #define FDCAN_IE_RF0LE_Msk (0x1UL << FDCAN_IE_RF0LE_Pos) /*!< 0x00000008 */
  4055. #define FDCAN_IE_RF0LE FDCAN_IE_RF0LE_Msk /*!<Rx FIFO 0 Message Lost Enable */
  4056. #define FDCAN_IE_RF1NE_Pos (4U)
  4057. #define FDCAN_IE_RF1NE_Msk (0x1UL << FDCAN_IE_RF1NE_Pos) /*!< 0x00000010 */
  4058. #define FDCAN_IE_RF1NE FDCAN_IE_RF1NE_Msk /*!<Rx FIFO 1 New Message Enable */
  4059. #define FDCAN_IE_RF1WE_Pos (5U)
  4060. #define FDCAN_IE_RF1WE_Msk (0x1UL << FDCAN_IE_RF1WE_Pos) /*!< 0x00000020 */
  4061. #define FDCAN_IE_RF1WE FDCAN_IE_RF1WE_Msk /*!<Rx FIFO 1 Watermark Reached Enable */
  4062. #define FDCAN_IE_RF1FE_Pos (6U)
  4063. #define FDCAN_IE_RF1FE_Msk (0x1UL << FDCAN_IE_RF1FE_Pos) /*!< 0x00000040 */
  4064. #define FDCAN_IE_RF1FE FDCAN_IE_RF1FE_Msk /*!<Rx FIFO 1 Full Enable */
  4065. #define FDCAN_IE_RF1LE_Pos (7U)
  4066. #define FDCAN_IE_RF1LE_Msk (0x1UL << FDCAN_IE_RF1LE_Pos) /*!< 0x00000080 */
  4067. #define FDCAN_IE_RF1LE FDCAN_IE_RF1LE_Msk /*!<Rx FIFO 1 Message Lost Enable */
  4068. #define FDCAN_IE_HPME_Pos (8U)
  4069. #define FDCAN_IE_HPME_Msk (0x1UL << FDCAN_IE_HPME_Pos) /*!< 0x00000100 */
  4070. #define FDCAN_IE_HPME FDCAN_IE_HPME_Msk /*!<High Priority Message Enable */
  4071. #define FDCAN_IE_TCE_Pos (9U)
  4072. #define FDCAN_IE_TCE_Msk (0x1UL << FDCAN_IE_TCE_Pos) /*!< 0x00000200 */
  4073. #define FDCAN_IE_TCE FDCAN_IE_TCE_Msk /*!<Transmission Completed Enable */
  4074. #define FDCAN_IE_TCFE_Pos (10U)
  4075. #define FDCAN_IE_TCFE_Msk (0x1UL << FDCAN_IE_TCFE_Pos) /*!< 0x00000400 */
  4076. #define FDCAN_IE_TCFE FDCAN_IE_TCFE_Msk /*!<Transmission Cancellation Finished Enable */
  4077. #define FDCAN_IE_TFEE_Pos (11U)
  4078. #define FDCAN_IE_TFEE_Msk (0x1UL << FDCAN_IE_TFEE_Pos) /*!< 0x00000800 */
  4079. #define FDCAN_IE_TFEE FDCAN_IE_TFEE_Msk /*!<Tx FIFO Empty Enable */
  4080. #define FDCAN_IE_TEFNE_Pos (12U)
  4081. #define FDCAN_IE_TEFNE_Msk (0x1UL << FDCAN_IE_TEFNE_Pos) /*!< 0x00001000 */
  4082. #define FDCAN_IE_TEFNE FDCAN_IE_TEFNE_Msk /*!<Tx Event FIFO New Entry Enable */
  4083. #define FDCAN_IE_TEFWE_Pos (13U)
  4084. #define FDCAN_IE_TEFWE_Msk (0x1UL << FDCAN_IE_TEFWE_Pos) /*!< 0x00002000 */
  4085. #define FDCAN_IE_TEFWE FDCAN_IE_TEFWE_Msk /*!<Tx Event FIFO Watermark Reached Enable */
  4086. #define FDCAN_IE_TEFFE_Pos (14U)
  4087. #define FDCAN_IE_TEFFE_Msk (0x1UL << FDCAN_IE_TEFFE_Pos) /*!< 0x00004000 */
  4088. #define FDCAN_IE_TEFFE FDCAN_IE_TEFFE_Msk /*!<Tx Event FIFO Full Enable */
  4089. #define FDCAN_IE_TEFLE_Pos (15U)
  4090. #define FDCAN_IE_TEFLE_Msk (0x1UL << FDCAN_IE_TEFLE_Pos) /*!< 0x00008000 */
  4091. #define FDCAN_IE_TEFLE FDCAN_IE_TEFLE_Msk /*!<Tx Event FIFO Element Lost Enable */
  4092. #define FDCAN_IE_TSWE_Pos (16U)
  4093. #define FDCAN_IE_TSWE_Msk (0x1UL << FDCAN_IE_TSWE_Pos) /*!< 0x00010000 */
  4094. #define FDCAN_IE_TSWE FDCAN_IE_TSWE_Msk /*!<Timestamp Wraparound Enable */
  4095. #define FDCAN_IE_MRAFE_Pos (17U)
  4096. #define FDCAN_IE_MRAFE_Msk (0x1UL << FDCAN_IE_MRAFE_Pos) /*!< 0x00020000 */
  4097. #define FDCAN_IE_MRAFE FDCAN_IE_MRAFE_Msk /*!<Message RAM Access Failure Enable */
  4098. #define FDCAN_IE_TOOE_Pos (18U)
  4099. #define FDCAN_IE_TOOE_Msk (0x1UL << FDCAN_IE_TOOE_Pos) /*!< 0x00040000 */
  4100. #define FDCAN_IE_TOOE FDCAN_IE_TOOE_Msk /*!<Timeout Occurred Enable */
  4101. #define FDCAN_IE_DRXE_Pos (19U)
  4102. #define FDCAN_IE_DRXE_Msk (0x1UL << FDCAN_IE_DRXE_Pos) /*!< 0x00080000 */
  4103. #define FDCAN_IE_DRXE FDCAN_IE_DRXE_Msk /*!<Message stored to Dedicated Rx Buffer Enable */
  4104. #define FDCAN_IE_BECE_Pos (20U)
  4105. #define FDCAN_IE_BECE_Msk (0x1UL << FDCAN_IE_BECE_Pos) /*!< 0x00100000 */
  4106. #define FDCAN_IE_BECE FDCAN_IE_BECE_Msk /*!<Bit Error Corrected Interrupt Enable */
  4107. #define FDCAN_IE_BEUE_Pos (21U)
  4108. #define FDCAN_IE_BEUE_Msk (0x1UL << FDCAN_IE_BEUE_Pos) /*!< 0x00200000 */
  4109. #define FDCAN_IE_BEUE FDCAN_IE_BEUE_Msk /*!<Bit Error Uncorrected Interrupt Enable */
  4110. #define FDCAN_IE_ELOE_Pos (22U)
  4111. #define FDCAN_IE_ELOE_Msk (0x1UL << FDCAN_IE_ELOE_Pos) /*!< 0x00400000 */
  4112. #define FDCAN_IE_ELOE FDCAN_IE_ELOE_Msk /*!<Error Logging Overflow Enable */
  4113. #define FDCAN_IE_EPE_Pos (23U)
  4114. #define FDCAN_IE_EPE_Msk (0x1UL << FDCAN_IE_EPE_Pos) /*!< 0x00800000 */
  4115. #define FDCAN_IE_EPE FDCAN_IE_EPE_Msk /*!<Error Passive Enable */
  4116. #define FDCAN_IE_EWE_Pos (24U)
  4117. #define FDCAN_IE_EWE_Msk (0x1UL << FDCAN_IE_EWE_Pos) /*!< 0x01000000 */
  4118. #define FDCAN_IE_EWE FDCAN_IE_EWE_Msk /*!<Warning Status Enable */
  4119. #define FDCAN_IE_BOE_Pos (25U)
  4120. #define FDCAN_IE_BOE_Msk (0x1UL << FDCAN_IE_BOE_Pos) /*!< 0x02000000 */
  4121. #define FDCAN_IE_BOE FDCAN_IE_BOE_Msk /*!<Bus_Off Status Enable */
  4122. #define FDCAN_IE_WDIE_Pos (26U)
  4123. #define FDCAN_IE_WDIE_Msk (0x1UL << FDCAN_IE_WDIE_Pos) /*!< 0x04000000 */
  4124. #define FDCAN_IE_WDIE FDCAN_IE_WDIE_Msk /*!<Watchdog Interrupt Enable */
  4125. #define FDCAN_IE_PEAE_Pos (27U)
  4126. #define FDCAN_IE_PEAE_Msk (0x1UL << FDCAN_IE_PEAE_Pos) /*!< 0x08000000 */
  4127. #define FDCAN_IE_PEAE FDCAN_IE_PEAE_Msk /*!<Protocol Error in Arbitration Phase Enable */
  4128. #define FDCAN_IE_PEDE_Pos (28U)
  4129. #define FDCAN_IE_PEDE_Msk (0x1UL << FDCAN_IE_PEDE_Pos) /*!< 0x10000000 */
  4130. #define FDCAN_IE_PEDE FDCAN_IE_PEDE_Msk /*!<Protocol Error in Data Phase Enable */
  4131. #define FDCAN_IE_ARAE_Pos (29U)
  4132. #define FDCAN_IE_ARAE_Msk (0x1UL << FDCAN_IE_ARAE_Pos) /*!< 0x20000000 */
  4133. #define FDCAN_IE_ARAE FDCAN_IE_ARAE_Msk /*!<Access to Reserved Address Enable */
  4134. /***************** Bit definition for FDCAN_ILS register **********************/
  4135. #define FDCAN_ILS_RF0NL_Pos (0U)
  4136. #define FDCAN_ILS_RF0NL_Msk (0x1UL << FDCAN_ILS_RF0NL_Pos) /*!< 0x00000001 */
  4137. #define FDCAN_ILS_RF0NL FDCAN_ILS_RF0NL_Msk /*!<Rx FIFO 0 New Message Line */
  4138. #define FDCAN_ILS_RF0WL_Pos (1U)
  4139. #define FDCAN_ILS_RF0WL_Msk (0x1UL << FDCAN_ILS_RF0WL_Pos) /*!< 0x00000002 */
  4140. #define FDCAN_ILS_RF0WL FDCAN_ILS_RF0WL_Msk /*!<Rx FIFO 0 Watermark Reached Line */
  4141. #define FDCAN_ILS_RF0FL_Pos (2U)
  4142. #define FDCAN_ILS_RF0FL_Msk (0x1UL << FDCAN_ILS_RF0FL_Pos) /*!< 0x00000004 */
  4143. #define FDCAN_ILS_RF0FL FDCAN_ILS_RF0FL_Msk /*!<Rx FIFO 0 Full Line */
  4144. #define FDCAN_ILS_RF0LL_Pos (3U)
  4145. #define FDCAN_ILS_RF0LL_Msk (0x1UL << FDCAN_ILS_RF0LL_Pos) /*!< 0x00000008 */
  4146. #define FDCAN_ILS_RF0LL FDCAN_ILS_RF0LL_Msk /*!<Rx FIFO 0 Message Lost Line */
  4147. #define FDCAN_ILS_RF1NL_Pos (4U)
  4148. #define FDCAN_ILS_RF1NL_Msk (0x1UL << FDCAN_ILS_RF1NL_Pos) /*!< 0x00000010 */
  4149. #define FDCAN_ILS_RF1NL FDCAN_ILS_RF1NL_Msk /*!<Rx FIFO 1 New Message Line */
  4150. #define FDCAN_ILS_RF1WL_Pos (5U)
  4151. #define FDCAN_ILS_RF1WL_Msk (0x1UL << FDCAN_ILS_RF1WL_Pos) /*!< 0x00000020 */
  4152. #define FDCAN_ILS_RF1WL FDCAN_ILS_RF1WL_Msk /*!<Rx FIFO 1 Watermark Reached Line */
  4153. #define FDCAN_ILS_RF1FL_Pos (6U)
  4154. #define FDCAN_ILS_RF1FL_Msk (0x1UL << FDCAN_ILS_RF1FL_Pos) /*!< 0x00000040 */
  4155. #define FDCAN_ILS_RF1FL FDCAN_ILS_RF1FL_Msk /*!<Rx FIFO 1 Full Line */
  4156. #define FDCAN_ILS_RF1LL_Pos (7U)
  4157. #define FDCAN_ILS_RF1LL_Msk (0x1UL << FDCAN_ILS_RF1LL_Pos) /*!< 0x00000080 */
  4158. #define FDCAN_ILS_RF1LL FDCAN_ILS_RF1LL_Msk /*!<Rx FIFO 1 Message Lost Line */
  4159. #define FDCAN_ILS_HPML_Pos (8U)
  4160. #define FDCAN_ILS_HPML_Msk (0x1UL << FDCAN_ILS_HPML_Pos) /*!< 0x00000100 */
  4161. #define FDCAN_ILS_HPML FDCAN_ILS_HPML_Msk /*!<High Priority Message Line */
  4162. #define FDCAN_ILS_TCL_Pos (9U)
  4163. #define FDCAN_ILS_TCL_Msk (0x1UL << FDCAN_ILS_TCL_Pos) /*!< 0x00000200 */
  4164. #define FDCAN_ILS_TCL FDCAN_ILS_TCL_Msk /*!<Transmission Completed Line */
  4165. #define FDCAN_ILS_TCFL_Pos (10U)
  4166. #define FDCAN_ILS_TCFL_Msk (0x1UL << FDCAN_ILS_TCFL_Pos) /*!< 0x00000400 */
  4167. #define FDCAN_ILS_TCFL FDCAN_ILS_TCFL_Msk /*!<Transmission Cancellation Finished Line */
  4168. #define FDCAN_ILS_TFEL_Pos (11U)
  4169. #define FDCAN_ILS_TFEL_Msk (0x1UL << FDCAN_ILS_TFEL_Pos) /*!< 0x00000800 */
  4170. #define FDCAN_ILS_TFEL FDCAN_ILS_TFEL_Msk /*!<Tx FIFO Empty Line */
  4171. #define FDCAN_ILS_TEFNL_Pos (12U)
  4172. #define FDCAN_ILS_TEFNL_Msk (0x1UL << FDCAN_ILS_TEFNL_Pos) /*!< 0x00001000 */
  4173. #define FDCAN_ILS_TEFNL FDCAN_ILS_TEFNL_Msk /*!<Tx Event FIFO New Entry Line */
  4174. #define FDCAN_ILS_TEFWL_Pos (13U)
  4175. #define FDCAN_ILS_TEFWL_Msk (0x1UL << FDCAN_ILS_TEFWL_Pos) /*!< 0x00002000 */
  4176. #define FDCAN_ILS_TEFWL FDCAN_ILS_TEFWL_Msk /*!<Tx Event FIFO Watermark Reached Line */
  4177. #define FDCAN_ILS_TEFFL_Pos (14U)
  4178. #define FDCAN_ILS_TEFFL_Msk (0x1UL << FDCAN_ILS_TEFFL_Pos) /*!< 0x00004000 */
  4179. #define FDCAN_ILS_TEFFL FDCAN_ILS_TEFFL_Msk /*!<Tx Event FIFO Full Line */
  4180. #define FDCAN_ILS_TEFLL_Pos (15U)
  4181. #define FDCAN_ILS_TEFLL_Msk (0x1UL << FDCAN_ILS_TEFLL_Pos) /*!< 0x00008000 */
  4182. #define FDCAN_ILS_TEFLL FDCAN_ILS_TEFLL_Msk /*!<Tx Event FIFO Element Lost Line */
  4183. #define FDCAN_ILS_TSWL_Pos (16U)
  4184. #define FDCAN_ILS_TSWL_Msk (0x1UL << FDCAN_ILS_TSWL_Pos) /*!< 0x00010000 */
  4185. #define FDCAN_ILS_TSWL FDCAN_ILS_TSWL_Msk /*!<Timestamp Wraparound Line */
  4186. #define FDCAN_ILS_MRAFE_Pos (17U)
  4187. #define FDCAN_ILS_MRAFE_Msk (0x1UL << FDCAN_ILS_MRAFE_Pos) /*!< 0x00020000 */
  4188. #define FDCAN_ILS_MRAFE FDCAN_ILS_MRAFE_Msk /*!<Message RAM Access Failure Line */
  4189. #define FDCAN_ILS_TOOE_Pos (18U)
  4190. #define FDCAN_ILS_TOOE_Msk (0x1UL << FDCAN_ILS_TOOE_Pos) /*!< 0x00040000 */
  4191. #define FDCAN_ILS_TOOE FDCAN_ILS_TOOE_Msk /*!<Timeout Occurred Line */
  4192. #define FDCAN_ILS_DRXE_Pos (19U)
  4193. #define FDCAN_ILS_DRXE_Msk (0x1UL << FDCAN_ILS_DRXE_Pos) /*!< 0x00080000 */
  4194. #define FDCAN_ILS_DRXE FDCAN_ILS_DRXE_Msk /*!<Message stored to Dedicated Rx Buffer Line */
  4195. #define FDCAN_ILS_BECE_Pos (20U)
  4196. #define FDCAN_ILS_BECE_Msk (0x1UL << FDCAN_ILS_BECE_Pos) /*!< 0x00100000 */
  4197. #define FDCAN_ILS_BECE FDCAN_ILS_BECE_Msk /*!<Bit Error Corrected Interrupt Line */
  4198. #define FDCAN_ILS_BEUE_Pos (21U)
  4199. #define FDCAN_ILS_BEUE_Msk (0x1UL << FDCAN_ILS_BEUE_Pos) /*!< 0x00200000 */
  4200. #define FDCAN_ILS_BEUE FDCAN_ILS_BEUE_Msk /*!<Bit Error Uncorrected Interrupt Line */
  4201. #define FDCAN_ILS_ELOE_Pos (22U)
  4202. #define FDCAN_ILS_ELOE_Msk (0x1UL << FDCAN_ILS_ELOE_Pos) /*!< 0x00400000 */
  4203. #define FDCAN_ILS_ELOE FDCAN_ILS_ELOE_Msk /*!<Error Logging Overflow Line */
  4204. #define FDCAN_ILS_EPE_Pos (23U)
  4205. #define FDCAN_ILS_EPE_Msk (0x1UL << FDCAN_ILS_EPE_Pos) /*!< 0x00800000 */
  4206. #define FDCAN_ILS_EPE FDCAN_ILS_EPE_Msk /*!<Error Passive Line */
  4207. #define FDCAN_ILS_EWE_Pos (24U)
  4208. #define FDCAN_ILS_EWE_Msk (0x1UL << FDCAN_ILS_EWE_Pos) /*!< 0x01000000 */
  4209. #define FDCAN_ILS_EWE FDCAN_ILS_EWE_Msk /*!<Warning Status Line */
  4210. #define FDCAN_ILS_BOE_Pos (25U)
  4211. #define FDCAN_ILS_BOE_Msk (0x1UL << FDCAN_ILS_BOE_Pos) /*!< 0x02000000 */
  4212. #define FDCAN_ILS_BOE FDCAN_ILS_BOE_Msk /*!<Bus_Off Status Line */
  4213. #define FDCAN_ILS_WDIE_Pos (26U)
  4214. #define FDCAN_ILS_WDIE_Msk (0x1UL << FDCAN_ILS_WDIE_Pos) /*!< 0x04000000 */
  4215. #define FDCAN_ILS_WDIE FDCAN_ILS_WDIE_Msk /*!<Watchdog Interrupt Line */
  4216. #define FDCAN_ILS_PEAE_Pos (27U)
  4217. #define FDCAN_ILS_PEAE_Msk (0x1UL << FDCAN_ILS_PEAE_Pos) /*!< 0x08000000 */
  4218. #define FDCAN_ILS_PEAE FDCAN_ILS_PEAE_Msk /*!<Protocol Error in Arbitration Phase Line */
  4219. #define FDCAN_ILS_PEDE_Pos (28U)
  4220. #define FDCAN_ILS_PEDE_Msk (0x1UL << FDCAN_ILS_PEDE_Pos) /*!< 0x10000000 */
  4221. #define FDCAN_ILS_PEDE FDCAN_ILS_PEDE_Msk /*!<Protocol Error in Data Phase Line */
  4222. #define FDCAN_ILS_ARAE_Pos (29U)
  4223. #define FDCAN_ILS_ARAE_Msk (0x1UL << FDCAN_ILS_ARAE_Pos) /*!< 0x20000000 */
  4224. #define FDCAN_ILS_ARAE FDCAN_ILS_ARAE_Msk /*!<Access to Reserved Address Line */
  4225. /***************** Bit definition for FDCAN_ILE register **********************/
  4226. #define FDCAN_ILE_EINT0_Pos (0U)
  4227. #define FDCAN_ILE_EINT0_Msk (0x1UL << FDCAN_ILE_EINT0_Pos) /*!< 0x00000001 */
  4228. #define FDCAN_ILE_EINT0 FDCAN_ILE_EINT0_Msk /*!<Enable Interrupt Line 0 */
  4229. #define FDCAN_ILE_EINT1_Pos (1U)
  4230. #define FDCAN_ILE_EINT1_Msk (0x1UL << FDCAN_ILE_EINT1_Pos) /*!< 0x00000002 */
  4231. #define FDCAN_ILE_EINT1 FDCAN_ILE_EINT1_Msk /*!<Enable Interrupt Line 1 */
  4232. /***************** Bit definition for FDCAN_GFC register **********************/
  4233. #define FDCAN_GFC_RRFE_Pos (0U)
  4234. #define FDCAN_GFC_RRFE_Msk (0x1UL << FDCAN_GFC_RRFE_Pos) /*!< 0x00000001 */
  4235. #define FDCAN_GFC_RRFE FDCAN_GFC_RRFE_Msk /*!<Reject Remote Frames Extended */
  4236. #define FDCAN_GFC_RRFS_Pos (1U)
  4237. #define FDCAN_GFC_RRFS_Msk (0x1UL << FDCAN_GFC_RRFS_Pos) /*!< 0x00000002 */
  4238. #define FDCAN_GFC_RRFS FDCAN_GFC_RRFS_Msk /*!<Reject Remote Frames Standard */
  4239. #define FDCAN_GFC_ANFE_Pos (2U)
  4240. #define FDCAN_GFC_ANFE_Msk (0x3UL << FDCAN_GFC_ANFE_Pos) /*!< 0x0000000C */
  4241. #define FDCAN_GFC_ANFE FDCAN_GFC_ANFE_Msk /*!<Accept Non-matching Frames Extended */
  4242. #define FDCAN_GFC_ANFS_Pos (4U)
  4243. #define FDCAN_GFC_ANFS_Msk (0x3UL << FDCAN_GFC_ANFS_Pos) /*!< 0x00000030 */
  4244. #define FDCAN_GFC_ANFS FDCAN_GFC_ANFS_Msk /*!<Accept Non-matching Frames Standard */
  4245. /***************** Bit definition for FDCAN_SIDFC register ********************/
  4246. #define FDCAN_SIDFC_FLSSA_Pos (2U)
  4247. #define FDCAN_SIDFC_FLSSA_Msk (0x3FFFUL << FDCAN_SIDFC_FLSSA_Pos) /*!< 0x0000FFFC */
  4248. #define FDCAN_SIDFC_FLSSA FDCAN_SIDFC_FLSSA_Msk /*!<Filter List Standard Start Address */
  4249. #define FDCAN_SIDFC_LSS_Pos (16U)
  4250. #define FDCAN_SIDFC_LSS_Msk (0xFFUL << FDCAN_SIDFC_LSS_Pos) /*!< 0x00FF0000 */
  4251. #define FDCAN_SIDFC_LSS FDCAN_SIDFC_LSS_Msk /*!<List Size Standard */
  4252. /***************** Bit definition for FDCAN_XIDFC register ********************/
  4253. #define FDCAN_XIDFC_FLESA_Pos (2U)
  4254. #define FDCAN_XIDFC_FLESA_Msk (0x3FFFUL << FDCAN_XIDFC_FLESA_Pos) /*!< 0x0000FFFC */
  4255. #define FDCAN_XIDFC_FLESA FDCAN_XIDFC_FLESA_Msk /*!<Filter List Standard Start Address */
  4256. #define FDCAN_XIDFC_LSE_Pos (16U)
  4257. #define FDCAN_XIDFC_LSE_Msk (0x7FUL << FDCAN_XIDFC_LSE_Pos) /*!< 0x007F0000 */
  4258. #define FDCAN_XIDFC_LSE FDCAN_XIDFC_LSE_Msk /*!<List Size Extended */
  4259. /***************** Bit definition for FDCAN_XIDAM register ********************/
  4260. #define FDCAN_XIDAM_EIDM_Pos (0U)
  4261. #define FDCAN_XIDAM_EIDM_Msk (0x1FFFFFFFUL << FDCAN_XIDAM_EIDM_Pos) /*!< 0x1FFFFFFF */
  4262. #define FDCAN_XIDAM_EIDM FDCAN_XIDAM_EIDM_Msk /*!<Extended ID Mask */
  4263. /***************** Bit definition for FDCAN_HPMS register *********************/
  4264. #define FDCAN_HPMS_BIDX_Pos (0U)
  4265. #define FDCAN_HPMS_BIDX_Msk (0x3FUL << FDCAN_HPMS_BIDX_Pos) /*!< 0x0000003F */
  4266. #define FDCAN_HPMS_BIDX FDCAN_HPMS_BIDX_Msk /*!<Buffer Index */
  4267. #define FDCAN_HPMS_MSI_Pos (6U)
  4268. #define FDCAN_HPMS_MSI_Msk (0x3UL << FDCAN_HPMS_MSI_Pos) /*!< 0x000000C0 */
  4269. #define FDCAN_HPMS_MSI FDCAN_HPMS_MSI_Msk /*!<Message Storage Indicator */
  4270. #define FDCAN_HPMS_FIDX_Pos (8U)
  4271. #define FDCAN_HPMS_FIDX_Msk (0x7FUL << FDCAN_HPMS_FIDX_Pos) /*!< 0x00007F00 */
  4272. #define FDCAN_HPMS_FIDX FDCAN_HPMS_FIDX_Msk /*!<Filter Index */
  4273. #define FDCAN_HPMS_FLST_Pos (15U)
  4274. #define FDCAN_HPMS_FLST_Msk (0x1UL << FDCAN_HPMS_FLST_Pos) /*!< 0x00008000 */
  4275. #define FDCAN_HPMS_FLST FDCAN_HPMS_FLST_Msk /*!<Filter List */
  4276. /***************** Bit definition for FDCAN_NDAT1 register ********************/
  4277. #define FDCAN_NDAT1_ND0_Pos (0U)
  4278. #define FDCAN_NDAT1_ND0_Msk (0x1UL << FDCAN_NDAT1_ND0_Pos) /*!< 0x00000001 */
  4279. #define FDCAN_NDAT1_ND0 FDCAN_NDAT1_ND0_Msk /*!<New Data flag of Rx Buffer 0 */
  4280. #define FDCAN_NDAT1_ND1_Pos (1U)
  4281. #define FDCAN_NDAT1_ND1_Msk (0x1UL << FDCAN_NDAT1_ND1_Pos) /*!< 0x00000002 */
  4282. #define FDCAN_NDAT1_ND1 FDCAN_NDAT1_ND1_Msk /*!<New Data flag of Rx Buffer 1 */
  4283. #define FDCAN_NDAT1_ND2_Pos (2U)
  4284. #define FDCAN_NDAT1_ND2_Msk (0x1UL << FDCAN_NDAT1_ND2_Pos) /*!< 0x00000004 */
  4285. #define FDCAN_NDAT1_ND2 FDCAN_NDAT1_ND2_Msk /*!<New Data flag of Rx Buffer 2 */
  4286. #define FDCAN_NDAT1_ND3_Pos (3U)
  4287. #define FDCAN_NDAT1_ND3_Msk (0x1UL << FDCAN_NDAT1_ND3_Pos) /*!< 0x00000008 */
  4288. #define FDCAN_NDAT1_ND3 FDCAN_NDAT1_ND3_Msk /*!<New Data flag of Rx Buffer 3 */
  4289. #define FDCAN_NDAT1_ND4_Pos (4U)
  4290. #define FDCAN_NDAT1_ND4_Msk (0x1UL << FDCAN_NDAT1_ND4_Pos) /*!< 0x00000010 */
  4291. #define FDCAN_NDAT1_ND4 FDCAN_NDAT1_ND4_Msk /*!<New Data flag of Rx Buffer 4 */
  4292. #define FDCAN_NDAT1_ND5_Pos (5U)
  4293. #define FDCAN_NDAT1_ND5_Msk (0x1UL << FDCAN_NDAT1_ND5_Pos) /*!< 0x00000020 */
  4294. #define FDCAN_NDAT1_ND5 FDCAN_NDAT1_ND5_Msk /*!<New Data flag of Rx Buffer 5 */
  4295. #define FDCAN_NDAT1_ND6_Pos (6U)
  4296. #define FDCAN_NDAT1_ND6_Msk (0x1UL << FDCAN_NDAT1_ND6_Pos) /*!< 0x00000040 */
  4297. #define FDCAN_NDAT1_ND6 FDCAN_NDAT1_ND6_Msk /*!<New Data flag of Rx Buffer 6 */
  4298. #define FDCAN_NDAT1_ND7_Pos (7U)
  4299. #define FDCAN_NDAT1_ND7_Msk (0x1UL << FDCAN_NDAT1_ND7_Pos) /*!< 0x00000080 */
  4300. #define FDCAN_NDAT1_ND7 FDCAN_NDAT1_ND7_Msk /*!<New Data flag of Rx Buffer 7 */
  4301. #define FDCAN_NDAT1_ND8_Pos (8U)
  4302. #define FDCAN_NDAT1_ND8_Msk (0x1UL << FDCAN_NDAT1_ND8_Pos) /*!< 0x00000100 */
  4303. #define FDCAN_NDAT1_ND8 FDCAN_NDAT1_ND8_Msk /*!<New Data flag of Rx Buffer 8 */
  4304. #define FDCAN_NDAT1_ND9_Pos (9U)
  4305. #define FDCAN_NDAT1_ND9_Msk (0x1UL << FDCAN_NDAT1_ND9_Pos) /*!< 0x00000200 */
  4306. #define FDCAN_NDAT1_ND9 FDCAN_NDAT1_ND9_Msk /*!<New Data flag of Rx Buffer 9 */
  4307. #define FDCAN_NDAT1_ND10_Pos (10U)
  4308. #define FDCAN_NDAT1_ND10_Msk (0x1UL << FDCAN_NDAT1_ND10_Pos) /*!< 0x00000400 */
  4309. #define FDCAN_NDAT1_ND10 FDCAN_NDAT1_ND10_Msk /*!<New Data flag of Rx Buffer 10 */
  4310. #define FDCAN_NDAT1_ND11_Pos (11U)
  4311. #define FDCAN_NDAT1_ND11_Msk (0x1UL << FDCAN_NDAT1_ND11_Pos) /*!< 0x00000800 */
  4312. #define FDCAN_NDAT1_ND11 FDCAN_NDAT1_ND11_Msk /*!<New Data flag of Rx Buffer 11 */
  4313. #define FDCAN_NDAT1_ND12_Pos (12U)
  4314. #define FDCAN_NDAT1_ND12_Msk (0x1UL << FDCAN_NDAT1_ND12_Pos) /*!< 0x00001000 */
  4315. #define FDCAN_NDAT1_ND12 FDCAN_NDAT1_ND12_Msk /*!<New Data flag of Rx Buffer 12 */
  4316. #define FDCAN_NDAT1_ND13_Pos (13U)
  4317. #define FDCAN_NDAT1_ND13_Msk (0x1UL << FDCAN_NDAT1_ND13_Pos) /*!< 0x00002000 */
  4318. #define FDCAN_NDAT1_ND13 FDCAN_NDAT1_ND13_Msk /*!<New Data flag of Rx Buffer 13 */
  4319. #define FDCAN_NDAT1_ND14_Pos (14U)
  4320. #define FDCAN_NDAT1_ND14_Msk (0x1UL << FDCAN_NDAT1_ND14_Pos) /*!< 0x00004000 */
  4321. #define FDCAN_NDAT1_ND14 FDCAN_NDAT1_ND14_Msk /*!<New Data flag of Rx Buffer 14 */
  4322. #define FDCAN_NDAT1_ND15_Pos (15U)
  4323. #define FDCAN_NDAT1_ND15_Msk (0x1UL << FDCAN_NDAT1_ND15_Pos) /*!< 0x00008000 */
  4324. #define FDCAN_NDAT1_ND15 FDCAN_NDAT1_ND15_Msk /*!<New Data flag of Rx Buffer 15 */
  4325. #define FDCAN_NDAT1_ND16_Pos (16U)
  4326. #define FDCAN_NDAT1_ND16_Msk (0x1UL << FDCAN_NDAT1_ND16_Pos) /*!< 0x00010000 */
  4327. #define FDCAN_NDAT1_ND16 FDCAN_NDAT1_ND16_Msk /*!<New Data flag of Rx Buffer 16 */
  4328. #define FDCAN_NDAT1_ND17_Pos (17U)
  4329. #define FDCAN_NDAT1_ND17_Msk (0x1UL << FDCAN_NDAT1_ND17_Pos) /*!< 0x00020000 */
  4330. #define FDCAN_NDAT1_ND17 FDCAN_NDAT1_ND17_Msk /*!<New Data flag of Rx Buffer 17 */
  4331. #define FDCAN_NDAT1_ND18_Pos (18U)
  4332. #define FDCAN_NDAT1_ND18_Msk (0x1UL << FDCAN_NDAT1_ND18_Pos) /*!< 0x00040000 */
  4333. #define FDCAN_NDAT1_ND18 FDCAN_NDAT1_ND18_Msk /*!<New Data flag of Rx Buffer 18 */
  4334. #define FDCAN_NDAT1_ND19_Pos (19U)
  4335. #define FDCAN_NDAT1_ND19_Msk (0x1UL << FDCAN_NDAT1_ND19_Pos) /*!< 0x00080000 */
  4336. #define FDCAN_NDAT1_ND19 FDCAN_NDAT1_ND19_Msk /*!<New Data flag of Rx Buffer 19 */
  4337. #define FDCAN_NDAT1_ND20_Pos (20U)
  4338. #define FDCAN_NDAT1_ND20_Msk (0x1UL << FDCAN_NDAT1_ND20_Pos) /*!< 0x00100000 */
  4339. #define FDCAN_NDAT1_ND20 FDCAN_NDAT1_ND20_Msk /*!<New Data flag of Rx Buffer 20 */
  4340. #define FDCAN_NDAT1_ND21_Pos (21U)
  4341. #define FDCAN_NDAT1_ND21_Msk (0x1UL << FDCAN_NDAT1_ND21_Pos) /*!< 0x00200000 */
  4342. #define FDCAN_NDAT1_ND21 FDCAN_NDAT1_ND21_Msk /*!<New Data flag of Rx Buffer 21 */
  4343. #define FDCAN_NDAT1_ND22_Pos (22U)
  4344. #define FDCAN_NDAT1_ND22_Msk (0x1UL << FDCAN_NDAT1_ND22_Pos) /*!< 0x00400000 */
  4345. #define FDCAN_NDAT1_ND22 FDCAN_NDAT1_ND22_Msk /*!<New Data flag of Rx Buffer 22 */
  4346. #define FDCAN_NDAT1_ND23_Pos (23U)
  4347. #define FDCAN_NDAT1_ND23_Msk (0x1UL << FDCAN_NDAT1_ND23_Pos) /*!< 0x00800000 */
  4348. #define FDCAN_NDAT1_ND23 FDCAN_NDAT1_ND23_Msk /*!<New Data flag of Rx Buffer 23 */
  4349. #define FDCAN_NDAT1_ND24_Pos (24U)
  4350. #define FDCAN_NDAT1_ND24_Msk (0x1UL << FDCAN_NDAT1_ND24_Pos) /*!< 0x01000000 */
  4351. #define FDCAN_NDAT1_ND24 FDCAN_NDAT1_ND24_Msk /*!<New Data flag of Rx Buffer 24 */
  4352. #define FDCAN_NDAT1_ND25_Pos (25U)
  4353. #define FDCAN_NDAT1_ND25_Msk (0x1UL << FDCAN_NDAT1_ND25_Pos) /*!< 0x02000000 */
  4354. #define FDCAN_NDAT1_ND25 FDCAN_NDAT1_ND25_Msk /*!<New Data flag of Rx Buffer 25 */
  4355. #define FDCAN_NDAT1_ND26_Pos (26U)
  4356. #define FDCAN_NDAT1_ND26_Msk (0x1UL << FDCAN_NDAT1_ND26_Pos) /*!< 0x04000000 */
  4357. #define FDCAN_NDAT1_ND26 FDCAN_NDAT1_ND26_Msk /*!<New Data flag of Rx Buffer 26 */
  4358. #define FDCAN_NDAT1_ND27_Pos (27U)
  4359. #define FDCAN_NDAT1_ND27_Msk (0x1UL << FDCAN_NDAT1_ND27_Pos) /*!< 0x08000000 */
  4360. #define FDCAN_NDAT1_ND27 FDCAN_NDAT1_ND27_Msk /*!<New Data flag of Rx Buffer 27 */
  4361. #define FDCAN_NDAT1_ND28_Pos (28U)
  4362. #define FDCAN_NDAT1_ND28_Msk (0x1UL << FDCAN_NDAT1_ND28_Pos) /*!< 0x10000000 */
  4363. #define FDCAN_NDAT1_ND28 FDCAN_NDAT1_ND28_Msk /*!<New Data flag of Rx Buffer 28 */
  4364. #define FDCAN_NDAT1_ND29_Pos (29U)
  4365. #define FDCAN_NDAT1_ND29_Msk (0x1UL << FDCAN_NDAT1_ND29_Pos) /*!< 0x20000000 */
  4366. #define FDCAN_NDAT1_ND29 FDCAN_NDAT1_ND29_Msk /*!<New Data flag of Rx Buffer 29 */
  4367. #define FDCAN_NDAT1_ND30_Pos (30U)
  4368. #define FDCAN_NDAT1_ND30_Msk (0x1UL << FDCAN_NDAT1_ND30_Pos) /*!< 0x40000000 */
  4369. #define FDCAN_NDAT1_ND30 FDCAN_NDAT1_ND30_Msk /*!<New Data flag of Rx Buffer 30 */
  4370. #define FDCAN_NDAT1_ND31_Pos (31U)
  4371. #define FDCAN_NDAT1_ND31_Msk (0x1UL << FDCAN_NDAT1_ND31_Pos) /*!< 0x80000000 */
  4372. #define FDCAN_NDAT1_ND31 FDCAN_NDAT1_ND31_Msk /*!<New Data flag of Rx Buffer 31 */
  4373. /***************** Bit definition for FDCAN_NDAT2 register ********************/
  4374. #define FDCAN_NDAT2_ND32_Pos (0U)
  4375. #define FDCAN_NDAT2_ND32_Msk (0x1UL << FDCAN_NDAT2_ND32_Pos) /*!< 0x00000001 */
  4376. #define FDCAN_NDAT2_ND32 FDCAN_NDAT2_ND32_Msk /*!<New Data flag of Rx Buffer 32 */
  4377. #define FDCAN_NDAT2_ND33_Pos (1U)
  4378. #define FDCAN_NDAT2_ND33_Msk (0x1UL << FDCAN_NDAT2_ND33_Pos) /*!< 0x00000002 */
  4379. #define FDCAN_NDAT2_ND33 FDCAN_NDAT2_ND33_Msk /*!<New Data flag of Rx Buffer 33 */
  4380. #define FDCAN_NDAT2_ND34_Pos (2U)
  4381. #define FDCAN_NDAT2_ND34_Msk (0x1UL << FDCAN_NDAT2_ND34_Pos) /*!< 0x00000004 */
  4382. #define FDCAN_NDAT2_ND34 FDCAN_NDAT2_ND34_Msk /*!<New Data flag of Rx Buffer 34 */
  4383. #define FDCAN_NDAT2_ND35_Pos (3U)
  4384. #define FDCAN_NDAT2_ND35_Msk (0x1UL << FDCAN_NDAT2_ND35_Pos) /*!< 0x00000008 */
  4385. #define FDCAN_NDAT2_ND35 FDCAN_NDAT2_ND35_Msk /*!<New Data flag of Rx Buffer 35 */
  4386. #define FDCAN_NDAT2_ND36_Pos (4U)
  4387. #define FDCAN_NDAT2_ND36_Msk (0x1UL << FDCAN_NDAT2_ND36_Pos) /*!< 0x00000010 */
  4388. #define FDCAN_NDAT2_ND36 FDCAN_NDAT2_ND36_Msk /*!<New Data flag of Rx Buffer 36 */
  4389. #define FDCAN_NDAT2_ND37_Pos (5U)
  4390. #define FDCAN_NDAT2_ND37_Msk (0x1UL << FDCAN_NDAT2_ND37_Pos) /*!< 0x00000020 */
  4391. #define FDCAN_NDAT2_ND37 FDCAN_NDAT2_ND37_Msk /*!<New Data flag of Rx Buffer 37 */
  4392. #define FDCAN_NDAT2_ND38_Pos (6U)
  4393. #define FDCAN_NDAT2_ND38_Msk (0x1UL << FDCAN_NDAT2_ND38_Pos) /*!< 0x00000040 */
  4394. #define FDCAN_NDAT2_ND38 FDCAN_NDAT2_ND38_Msk /*!<New Data flag of Rx Buffer 38 */
  4395. #define FDCAN_NDAT2_ND39_Pos (7U)
  4396. #define FDCAN_NDAT2_ND39_Msk (0x1UL << FDCAN_NDAT2_ND39_Pos) /*!< 0x00000080 */
  4397. #define FDCAN_NDAT2_ND39 FDCAN_NDAT2_ND39_Msk /*!<New Data flag of Rx Buffer 39 */
  4398. #define FDCAN_NDAT2_ND40_Pos (8U)
  4399. #define FDCAN_NDAT2_ND40_Msk (0x1UL << FDCAN_NDAT2_ND40_Pos) /*!< 0x00000100 */
  4400. #define FDCAN_NDAT2_ND40 FDCAN_NDAT2_ND40_Msk /*!<New Data flag of Rx Buffer 40 */
  4401. #define FDCAN_NDAT2_ND41_Pos (9U)
  4402. #define FDCAN_NDAT2_ND41_Msk (0x1UL << FDCAN_NDAT2_ND41_Pos) /*!< 0x00000200 */
  4403. #define FDCAN_NDAT2_ND41 FDCAN_NDAT2_ND41_Msk /*!<New Data flag of Rx Buffer 41 */
  4404. #define FDCAN_NDAT2_ND42_Pos (10U)
  4405. #define FDCAN_NDAT2_ND42_Msk (0x1UL << FDCAN_NDAT2_ND42_Pos) /*!< 0x00000400 */
  4406. #define FDCAN_NDAT2_ND42 FDCAN_NDAT2_ND42_Msk /*!<New Data flag of Rx Buffer 42 */
  4407. #define FDCAN_NDAT2_ND43_Pos (11U)
  4408. #define FDCAN_NDAT2_ND43_Msk (0x1UL << FDCAN_NDAT2_ND43_Pos) /*!< 0x00000800 */
  4409. #define FDCAN_NDAT2_ND43 FDCAN_NDAT2_ND43_Msk /*!<New Data flag of Rx Buffer 43 */
  4410. #define FDCAN_NDAT2_ND44_Pos (12U)
  4411. #define FDCAN_NDAT2_ND44_Msk (0x1UL << FDCAN_NDAT2_ND44_Pos) /*!< 0x00001000 */
  4412. #define FDCAN_NDAT2_ND44 FDCAN_NDAT2_ND44_Msk /*!<New Data flag of Rx Buffer 44 */
  4413. #define FDCAN_NDAT2_ND45_Pos (13U)
  4414. #define FDCAN_NDAT2_ND45_Msk (0x1UL << FDCAN_NDAT2_ND45_Pos) /*!< 0x00002000 */
  4415. #define FDCAN_NDAT2_ND45 FDCAN_NDAT2_ND45_Msk /*!<New Data flag of Rx Buffer 45 */
  4416. #define FDCAN_NDAT2_ND46_Pos (14U)
  4417. #define FDCAN_NDAT2_ND46_Msk (0x1UL << FDCAN_NDAT2_ND46_Pos) /*!< 0x00004000 */
  4418. #define FDCAN_NDAT2_ND46 FDCAN_NDAT2_ND46_Msk /*!<New Data flag of Rx Buffer 46 */
  4419. #define FDCAN_NDAT2_ND47_Pos (15U)
  4420. #define FDCAN_NDAT2_ND47_Msk (0x1UL << FDCAN_NDAT2_ND47_Pos) /*!< 0x00008000 */
  4421. #define FDCAN_NDAT2_ND47 FDCAN_NDAT2_ND47_Msk /*!<New Data flag of Rx Buffer 47 */
  4422. #define FDCAN_NDAT2_ND48_Pos (16U)
  4423. #define FDCAN_NDAT2_ND48_Msk (0x1UL << FDCAN_NDAT2_ND48_Pos) /*!< 0x00010000 */
  4424. #define FDCAN_NDAT2_ND48 FDCAN_NDAT2_ND48_Msk /*!<New Data flag of Rx Buffer 48 */
  4425. #define FDCAN_NDAT2_ND49_Pos (17U)
  4426. #define FDCAN_NDAT2_ND49_Msk (0x1UL << FDCAN_NDAT2_ND49_Pos) /*!< 0x00020000 */
  4427. #define FDCAN_NDAT2_ND49 FDCAN_NDAT2_ND49_Msk /*!<New Data flag of Rx Buffer 49 */
  4428. #define FDCAN_NDAT2_ND50_Pos (18U)
  4429. #define FDCAN_NDAT2_ND50_Msk (0x1UL << FDCAN_NDAT2_ND50_Pos) /*!< 0x00040000 */
  4430. #define FDCAN_NDAT2_ND50 FDCAN_NDAT2_ND50_Msk /*!<New Data flag of Rx Buffer 50 */
  4431. #define FDCAN_NDAT2_ND51_Pos (19U)
  4432. #define FDCAN_NDAT2_ND51_Msk (0x1UL << FDCAN_NDAT2_ND51_Pos) /*!< 0x00080000 */
  4433. #define FDCAN_NDAT2_ND51 FDCAN_NDAT2_ND51_Msk /*!<New Data flag of Rx Buffer 51 */
  4434. #define FDCAN_NDAT2_ND52_Pos (20U)
  4435. #define FDCAN_NDAT2_ND52_Msk (0x1UL << FDCAN_NDAT2_ND52_Pos) /*!< 0x00100000 */
  4436. #define FDCAN_NDAT2_ND52 FDCAN_NDAT2_ND52_Msk /*!<New Data flag of Rx Buffer 52 */
  4437. #define FDCAN_NDAT2_ND53_Pos (21U)
  4438. #define FDCAN_NDAT2_ND53_Msk (0x1UL << FDCAN_NDAT2_ND53_Pos) /*!< 0x00200000 */
  4439. #define FDCAN_NDAT2_ND53 FDCAN_NDAT2_ND53_Msk /*!<New Data flag of Rx Buffer 53 */
  4440. #define FDCAN_NDAT2_ND54_Pos (22U)
  4441. #define FDCAN_NDAT2_ND54_Msk (0x1UL << FDCAN_NDAT2_ND54_Pos) /*!< 0x00400000 */
  4442. #define FDCAN_NDAT2_ND54 FDCAN_NDAT2_ND54_Msk /*!<New Data flag of Rx Buffer 54 */
  4443. #define FDCAN_NDAT2_ND55_Pos (23U)
  4444. #define FDCAN_NDAT2_ND55_Msk (0x1UL << FDCAN_NDAT2_ND55_Pos) /*!< 0x00800000 */
  4445. #define FDCAN_NDAT2_ND55 FDCAN_NDAT2_ND55_Msk /*!<New Data flag of Rx Buffer 55 */
  4446. #define FDCAN_NDAT2_ND56_Pos (24U)
  4447. #define FDCAN_NDAT2_ND56_Msk (0x1UL << FDCAN_NDAT2_ND56_Pos) /*!< 0x01000000 */
  4448. #define FDCAN_NDAT2_ND56 FDCAN_NDAT2_ND56_Msk /*!<New Data flag of Rx Buffer 56 */
  4449. #define FDCAN_NDAT2_ND57_Pos (25U)
  4450. #define FDCAN_NDAT2_ND57_Msk (0x1UL << FDCAN_NDAT2_ND57_Pos) /*!< 0x02000000 */
  4451. #define FDCAN_NDAT2_ND57 FDCAN_NDAT2_ND57_Msk /*!<New Data flag of Rx Buffer 57 */
  4452. #define FDCAN_NDAT2_ND58_Pos (26U)
  4453. #define FDCAN_NDAT2_ND58_Msk (0x1UL << FDCAN_NDAT2_ND58_Pos) /*!< 0x04000000 */
  4454. #define FDCAN_NDAT2_ND58 FDCAN_NDAT2_ND58_Msk /*!<New Data flag of Rx Buffer 58 */
  4455. #define FDCAN_NDAT2_ND59_Pos (27U)
  4456. #define FDCAN_NDAT2_ND59_Msk (0x1UL << FDCAN_NDAT2_ND59_Pos) /*!< 0x08000000 */
  4457. #define FDCAN_NDAT2_ND59 FDCAN_NDAT2_ND59_Msk /*!<New Data flag of Rx Buffer 59 */
  4458. #define FDCAN_NDAT2_ND60_Pos (28U)
  4459. #define FDCAN_NDAT2_ND60_Msk (0x1UL << FDCAN_NDAT2_ND60_Pos) /*!< 0x10000000 */
  4460. #define FDCAN_NDAT2_ND60 FDCAN_NDAT2_ND60_Msk /*!<New Data flag of Rx Buffer 60 */
  4461. #define FDCAN_NDAT2_ND61_Pos (29U)
  4462. #define FDCAN_NDAT2_ND61_Msk (0x1UL << FDCAN_NDAT2_ND61_Pos) /*!< 0x20000000 */
  4463. #define FDCAN_NDAT2_ND61 FDCAN_NDAT2_ND61_Msk /*!<New Data flag of Rx Buffer 61 */
  4464. #define FDCAN_NDAT2_ND62_Pos (30U)
  4465. #define FDCAN_NDAT2_ND62_Msk (0x1UL << FDCAN_NDAT2_ND62_Pos) /*!< 0x40000000 */
  4466. #define FDCAN_NDAT2_ND62 FDCAN_NDAT2_ND62_Msk /*!<New Data flag of Rx Buffer 62 */
  4467. #define FDCAN_NDAT2_ND63_Pos (31U)
  4468. #define FDCAN_NDAT2_ND63_Msk (0x1UL << FDCAN_NDAT2_ND63_Pos) /*!< 0x80000000 */
  4469. #define FDCAN_NDAT2_ND63 FDCAN_NDAT2_ND63_Msk /*!<New Data flag of Rx Buffer 63 */
  4470. /***************** Bit definition for FDCAN_RXF0C register ********************/
  4471. #define FDCAN_RXF0C_F0SA_Pos (2U)
  4472. #define FDCAN_RXF0C_F0SA_Msk (0x3FFFUL << FDCAN_RXF0C_F0SA_Pos) /*!< 0x0000FFFC */
  4473. #define FDCAN_RXF0C_F0SA FDCAN_RXF0C_F0SA_Msk /*!<Rx FIFO 0 Start Address */
  4474. #define FDCAN_RXF0C_F0S_Pos (16U)
  4475. #define FDCAN_RXF0C_F0S_Msk (0x7FUL << FDCAN_RXF0C_F0S_Pos) /*!< 0x007F0000 */
  4476. #define FDCAN_RXF0C_F0S FDCAN_RXF0C_F0S_Msk /*!<Number of Rx FIFO 0 elements */
  4477. #define FDCAN_RXF0C_F0WM_Pos (24U)
  4478. #define FDCAN_RXF0C_F0WM_Msk (0x7FUL << FDCAN_RXF0C_F0WM_Pos) /*!< 0x7F000000 */
  4479. #define FDCAN_RXF0C_F0WM FDCAN_RXF0C_F0WM_Msk /*!<FIFO 0 Watermark */
  4480. #define FDCAN_RXF0C_F0OM_Pos (31U)
  4481. #define FDCAN_RXF0C_F0OM_Msk (0x1UL << FDCAN_RXF0C_F0OM_Pos) /*!< 0x80000000 */
  4482. #define FDCAN_RXF0C_F0OM FDCAN_RXF0C_F0OM_Msk /*!<FIFO 0 Operation Mode */
  4483. /***************** Bit definition for FDCAN_RXF0S register ********************/
  4484. #define FDCAN_RXF0S_F0FL_Pos (0U)
  4485. #define FDCAN_RXF0S_F0FL_Msk (0x7FUL << FDCAN_RXF0S_F0FL_Pos) /*!< 0x0000007F */
  4486. #define FDCAN_RXF0S_F0FL FDCAN_RXF0S_F0FL_Msk /*!<Rx FIFO 0 Fill Level */
  4487. #define FDCAN_RXF0S_F0GI_Pos (8U)
  4488. #define FDCAN_RXF0S_F0GI_Msk (0x3FUL << FDCAN_RXF0S_F0GI_Pos) /*!< 0x00003F00 */
  4489. #define FDCAN_RXF0S_F0GI FDCAN_RXF0S_F0GI_Msk /*!<Rx FIFO 0 Get Index */
  4490. #define FDCAN_RXF0S_F0PI_Pos (16U)
  4491. #define FDCAN_RXF0S_F0PI_Msk (0x3FUL << FDCAN_RXF0S_F0PI_Pos) /*!< 0x003F0000 */
  4492. #define FDCAN_RXF0S_F0PI FDCAN_RXF0S_F0PI_Msk /*!<Rx FIFO 0 Put Index */
  4493. #define FDCAN_RXF0S_F0F_Pos (24U)
  4494. #define FDCAN_RXF0S_F0F_Msk (0x1UL << FDCAN_RXF0S_F0F_Pos) /*!< 0x01000000 */
  4495. #define FDCAN_RXF0S_F0F FDCAN_RXF0S_F0F_Msk /*!<Rx FIFO 0 Full */
  4496. #define FDCAN_RXF0S_RF0L_Pos (25U)
  4497. #define FDCAN_RXF0S_RF0L_Msk (0x1UL << FDCAN_RXF0S_RF0L_Pos) /*!< 0x02000000 */
  4498. #define FDCAN_RXF0S_RF0L FDCAN_RXF0S_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  4499. /***************** Bit definition for FDCAN_RXF0A register ********************/
  4500. #define FDCAN_RXF0A_F0AI_Pos (0U)
  4501. #define FDCAN_RXF0A_F0AI_Msk (0x3FUL << FDCAN_RXF0A_F0AI_Pos) /*!< 0x0000003F */
  4502. #define FDCAN_RXF0A_F0AI FDCAN_RXF0A_F0AI_Msk /*!<Rx FIFO 0 Acknowledge Index */
  4503. /***************** Bit definition for FDCAN_RXBC register ********************/
  4504. #define FDCAN_RXBC_RBSA_Pos (2U)
  4505. #define FDCAN_RXBC_RBSA_Msk (0x3FFFUL << FDCAN_RXBC_RBSA_Pos) /*!< 0x0000FFFC */
  4506. #define FDCAN_RXBC_RBSA FDCAN_RXBC_RBSA_Msk /*!<Rx Buffer Start Address */
  4507. /***************** Bit definition for FDCAN_RXF1C register ********************/
  4508. #define FDCAN_RXF1C_F1SA_Pos (2U)
  4509. #define FDCAN_RXF1C_F1SA_Msk (0x3FFFUL << FDCAN_RXF1C_F1SA_Pos) /*!< 0x0000FFFC */
  4510. #define FDCAN_RXF1C_F1SA FDCAN_RXF1C_F1SA_Msk /*!<Rx FIFO 1 Start Address */
  4511. #define FDCAN_RXF1C_F1S_Pos (16U)
  4512. #define FDCAN_RXF1C_F1S_Msk (0x7FUL << FDCAN_RXF1C_F1S_Pos) /*!< 0x007F0000 */
  4513. #define FDCAN_RXF1C_F1S FDCAN_RXF1C_F1S_Msk /*!<Number of Rx FIFO 1 elements */
  4514. #define FDCAN_RXF1C_F1WM_Pos (24U)
  4515. #define FDCAN_RXF1C_F1WM_Msk (0x7FUL << FDCAN_RXF1C_F1WM_Pos) /*!< 0x7F000000 */
  4516. #define FDCAN_RXF1C_F1WM FDCAN_RXF1C_F1WM_Msk /*!<Rx FIFO 1 Watermark */
  4517. #define FDCAN_RXF1C_F1OM_Pos (31U)
  4518. #define FDCAN_RXF1C_F1OM_Msk (0x1UL << FDCAN_RXF1C_F1OM_Pos) /*!< 0x80000000 */
  4519. #define FDCAN_RXF1C_F1OM FDCAN_RXF1C_F1OM_Msk /*!<FIFO 1 Operation Mode */
  4520. /***************** Bit definition for FDCAN_RXF1S register ********************/
  4521. #define FDCAN_RXF1S_F1FL_Pos (0U)
  4522. #define FDCAN_RXF1S_F1FL_Msk (0x7FUL << FDCAN_RXF1S_F1FL_Pos) /*!< 0x0000007F */
  4523. #define FDCAN_RXF1S_F1FL FDCAN_RXF1S_F1FL_Msk /*!<Rx FIFO 1 Fill Level */
  4524. #define FDCAN_RXF1S_F1GI_Pos (8U)
  4525. #define FDCAN_RXF1S_F1GI_Msk (0x3FUL << FDCAN_RXF1S_F1GI_Pos) /*!< 0x00003F00 */
  4526. #define FDCAN_RXF1S_F1GI FDCAN_RXF1S_F1GI_Msk /*!<Rx FIFO 1 Get Index */
  4527. #define FDCAN_RXF1S_F1PI_Pos (16U)
  4528. #define FDCAN_RXF1S_F1PI_Msk (0x3FUL << FDCAN_RXF1S_F1PI_Pos) /*!< 0x003F0000 */
  4529. #define FDCAN_RXF1S_F1PI FDCAN_RXF1S_F1PI_Msk /*!<Rx FIFO 1 Put Index */
  4530. #define FDCAN_RXF1S_F1F_Pos (24U)
  4531. #define FDCAN_RXF1S_F1F_Msk (0x1UL << FDCAN_RXF1S_F1F_Pos) /*!< 0x01000000 */
  4532. #define FDCAN_RXF1S_F1F FDCAN_RXF1S_F1F_Msk /*!<Rx FIFO 1 Full */
  4533. #define FDCAN_RXF1S_RF1L_Pos (25U)
  4534. #define FDCAN_RXF1S_RF1L_Msk (0x1UL << FDCAN_RXF1S_RF1L_Pos) /*!< 0x02000000 */
  4535. #define FDCAN_RXF1S_RF1L FDCAN_RXF1S_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  4536. /***************** Bit definition for FDCAN_RXF1A register ********************/
  4537. #define FDCAN_RXF1A_F1AI_Pos (0U)
  4538. #define FDCAN_RXF1A_F1AI_Msk (0x3FUL << FDCAN_RXF1A_F1AI_Pos) /*!< 0x0000003F */
  4539. #define FDCAN_RXF1A_F1AI FDCAN_RXF1A_F1AI_Msk /*!<Rx FIFO 1 Acknowledge Index */
  4540. /***************** Bit definition for FDCAN_RXESC register ********************/
  4541. #define FDCAN_RXESC_F0DS_Pos (0U)
  4542. #define FDCAN_RXESC_F0DS_Msk (0x7UL << FDCAN_RXESC_F0DS_Pos) /*!< 0x00000007 */
  4543. #define FDCAN_RXESC_F0DS FDCAN_RXESC_F0DS_Msk /*!<Rx FIFO 1 Data Field Size */
  4544. #define FDCAN_RXESC_F1DS_Pos (4U)
  4545. #define FDCAN_RXESC_F1DS_Msk (0x7UL << FDCAN_RXESC_F1DS_Pos) /*!< 0x00000070 */
  4546. #define FDCAN_RXESC_F1DS FDCAN_RXESC_F1DS_Msk /*!<Rx FIFO 0 Data Field Size */
  4547. #define FDCAN_RXESC_RBDS_Pos (8U)
  4548. #define FDCAN_RXESC_RBDS_Msk (0x7UL << FDCAN_RXESC_RBDS_Pos) /*!< 0x00000700 */
  4549. #define FDCAN_RXESC_RBDS FDCAN_RXESC_RBDS_Msk /*!<Rx Buffer Data Field Size */
  4550. /***************** Bit definition for FDCAN_TXBC register *********************/
  4551. #define FDCAN_TXBC_TBSA_Pos (2U)
  4552. #define FDCAN_TXBC_TBSA_Msk (0x3FFFUL << FDCAN_TXBC_TBSA_Pos) /*!< 0x0000FFFC */
  4553. #define FDCAN_TXBC_TBSA FDCAN_TXBC_TBSA_Msk /*!<Tx Buffers Start Address */
  4554. #define FDCAN_TXBC_NDTB_Pos (16U)
  4555. #define FDCAN_TXBC_NDTB_Msk (0x3FUL << FDCAN_TXBC_NDTB_Pos) /*!< 0x003F0000 */
  4556. #define FDCAN_TXBC_NDTB FDCAN_TXBC_NDTB_Msk /*!<Number of Dedicated Transmit Buffers */
  4557. #define FDCAN_TXBC_TFQS_Pos (24U)
  4558. #define FDCAN_TXBC_TFQS_Msk (0x3FUL << FDCAN_TXBC_TFQS_Pos) /*!< 0x3F000000 */
  4559. #define FDCAN_TXBC_TFQS FDCAN_TXBC_TFQS_Msk /*!<Transmit FIFO/Queue Size */
  4560. #define FDCAN_TXBC_TFQM_Pos (30U)
  4561. #define FDCAN_TXBC_TFQM_Msk (0x1UL << FDCAN_TXBC_TFQM_Pos) /*!< 0x40000000 */
  4562. #define FDCAN_TXBC_TFQM FDCAN_TXBC_TFQM_Msk /*!<Tx FIFO/Queue Mode */
  4563. /***************** Bit definition for FDCAN_TXFQS register *********************/
  4564. #define FDCAN_TXFQS_TFFL_Pos (0U)
  4565. #define FDCAN_TXFQS_TFFL_Msk (0x3FUL << FDCAN_TXFQS_TFFL_Pos) /*!< 0x0000003F */
  4566. #define FDCAN_TXFQS_TFFL FDCAN_TXFQS_TFFL_Msk /*!<Tx FIFO Free Level */
  4567. #define FDCAN_TXFQS_TFGI_Pos (8U)
  4568. #define FDCAN_TXFQS_TFGI_Msk (0x1FUL << FDCAN_TXFQS_TFGI_Pos) /*!< 0x00001F00 */
  4569. #define FDCAN_TXFQS_TFGI FDCAN_TXFQS_TFGI_Msk /*!<Tx FIFO Get Index */
  4570. #define FDCAN_TXFQS_TFQPI_Pos (16U)
  4571. #define FDCAN_TXFQS_TFQPI_Msk (0x1FUL << FDCAN_TXFQS_TFQPI_Pos) /*!< 0x001F0000 */
  4572. #define FDCAN_TXFQS_TFQPI FDCAN_TXFQS_TFQPI_Msk /*!<Tx FIFO/Queue Put Index */
  4573. #define FDCAN_TXFQS_TFQF_Pos (21U)
  4574. #define FDCAN_TXFQS_TFQF_Msk (0x1UL << FDCAN_TXFQS_TFQF_Pos) /*!< 0x00200000 */
  4575. #define FDCAN_TXFQS_TFQF FDCAN_TXFQS_TFQF_Msk /*!<Tx FIFO/Queue Full */
  4576. /***************** Bit definition for FDCAN_TXESC register *********************/
  4577. #define FDCAN_TXESC_TBDS_Pos (0U)
  4578. #define FDCAN_TXESC_TBDS_Msk (0x7UL << FDCAN_TXESC_TBDS_Pos) /*!< 0x00000007 */
  4579. #define FDCAN_TXESC_TBDS FDCAN_TXESC_TBDS_Msk /*!<Tx Buffer Data Field Size */
  4580. /***************** Bit definition for FDCAN_TXBRP register *********************/
  4581. #define FDCAN_TXBRP_TRP_Pos (0U)
  4582. #define FDCAN_TXBRP_TRP_Msk (0xFFFFFFFFUL << FDCAN_TXBRP_TRP_Pos) /*!< 0xFFFFFFFF */
  4583. #define FDCAN_TXBRP_TRP FDCAN_TXBRP_TRP_Msk /*!<Transmission Request Pending */
  4584. /***************** Bit definition for FDCAN_TXBAR register *********************/
  4585. #define FDCAN_TXBAR_AR_Pos (0U)
  4586. #define FDCAN_TXBAR_AR_Msk (0xFFFFFFFFUL << FDCAN_TXBAR_AR_Pos) /*!< 0xFFFFFFFF */
  4587. #define FDCAN_TXBAR_AR FDCAN_TXBAR_AR_Msk /*!<Add Request */
  4588. /***************** Bit definition for FDCAN_TXBCR register *********************/
  4589. #define FDCAN_TXBCR_CR_Pos (0U)
  4590. #define FDCAN_TXBCR_CR_Msk (0xFFFFFFFFUL << FDCAN_TXBCR_CR_Pos) /*!< 0xFFFFFFFF */
  4591. #define FDCAN_TXBCR_CR FDCAN_TXBCR_CR_Msk /*!<Cancellation Request */
  4592. /***************** Bit definition for FDCAN_TXBTO register *********************/
  4593. #define FDCAN_TXBTO_TO_Pos (0U)
  4594. #define FDCAN_TXBTO_TO_Msk (0xFFFFFFFFUL << FDCAN_TXBTO_TO_Pos) /*!< 0xFFFFFFFF */
  4595. #define FDCAN_TXBTO_TO FDCAN_TXBTO_TO_Msk /*!<Transmission Occurred */
  4596. /***************** Bit definition for FDCAN_TXBCF register *********************/
  4597. #define FDCAN_TXBCF_CF_Pos (0U)
  4598. #define FDCAN_TXBCF_CF_Msk (0xFFFFFFFFUL << FDCAN_TXBCF_CF_Pos) /*!< 0xFFFFFFFF */
  4599. #define FDCAN_TXBCF_CF FDCAN_TXBCF_CF_Msk /*!<Cancellation Finished */
  4600. /***************** Bit definition for FDCAN_TXBTIE register ********************/
  4601. #define FDCAN_TXBTIE_TIE_Pos (0U)
  4602. #define FDCAN_TXBTIE_TIE_Msk (0xFFFFFFFFUL << FDCAN_TXBTIE_TIE_Pos) /*!< 0xFFFFFFFF */
  4603. #define FDCAN_TXBTIE_TIE FDCAN_TXBTIE_TIE_Msk /*!<Transmission Interrupt Enable */
  4604. /***************** Bit definition for FDCAN_ TXBCIE register *******************/
  4605. #define FDCAN_TXBCIE_CFIE_Pos (0U)
  4606. #define FDCAN_TXBCIE_CFIE_Msk (0xFFFFFFFFUL << FDCAN_TXBCIE_CFIE_Pos) /*!< 0xFFFFFFFF */
  4607. #define FDCAN_TXBCIE_CFIE FDCAN_TXBCIE_CFIE_Msk /*!<Cancellation Finished Interrupt Enable */
  4608. /***************** Bit definition for FDCAN_TXEFC register *********************/
  4609. #define FDCAN_TXEFC_EFSA_Pos (2U)
  4610. #define FDCAN_TXEFC_EFSA_Msk (0x3FFFUL << FDCAN_TXEFC_EFSA_Pos) /*!< 0x0000FFFC */
  4611. #define FDCAN_TXEFC_EFSA FDCAN_TXEFC_EFSA_Msk /*!<Event FIFO Start Address */
  4612. #define FDCAN_TXEFC_EFS_Pos (16U)
  4613. #define FDCAN_TXEFC_EFS_Msk (0x3FUL << FDCAN_TXEFC_EFS_Pos) /*!< 0x003F0000 */
  4614. #define FDCAN_TXEFC_EFS FDCAN_TXEFC_EFS_Msk /*!<Event FIFO Size */
  4615. #define FDCAN_TXEFC_EFWM_Pos (24U)
  4616. #define FDCAN_TXEFC_EFWM_Msk (0x3FUL << FDCAN_TXEFC_EFWM_Pos) /*!< 0x3F000000 */
  4617. #define FDCAN_TXEFC_EFWM FDCAN_TXEFC_EFWM_Msk /*!<Event FIFO Watermark */
  4618. /***************** Bit definition for FDCAN_TXEFS register *********************/
  4619. #define FDCAN_TXEFS_EFFL_Pos (0U)
  4620. #define FDCAN_TXEFS_EFFL_Msk (0x3FUL << FDCAN_TXEFS_EFFL_Pos) /*!< 0x0000003F */
  4621. #define FDCAN_TXEFS_EFFL FDCAN_TXEFS_EFFL_Msk /*!<Event FIFO Fill Level */
  4622. #define FDCAN_TXEFS_EFGI_Pos (8U)
  4623. #define FDCAN_TXEFS_EFGI_Msk (0x1FUL << FDCAN_TXEFS_EFGI_Pos) /*!< 0x00001F00 */
  4624. #define FDCAN_TXEFS_EFGI FDCAN_TXEFS_EFGI_Msk /*!<Event FIFO Get Index */
  4625. #define FDCAN_TXEFS_EFPI_Pos (16U)
  4626. #define FDCAN_TXEFS_EFPI_Msk (0x1FUL << FDCAN_TXEFS_EFPI_Pos) /*!< 0x001F0000 */
  4627. #define FDCAN_TXEFS_EFPI FDCAN_TXEFS_EFPI_Msk /*!<Event FIFO Put Index */
  4628. #define FDCAN_TXEFS_EFF_Pos (24U)
  4629. #define FDCAN_TXEFS_EFF_Msk (0x1UL << FDCAN_TXEFS_EFF_Pos) /*!< 0x01000000 */
  4630. #define FDCAN_TXEFS_EFF FDCAN_TXEFS_EFF_Msk /*!<Event FIFO Full */
  4631. #define FDCAN_TXEFS_TEFL_Pos (25U)
  4632. #define FDCAN_TXEFS_TEFL_Msk (0x1UL << FDCAN_TXEFS_TEFL_Pos) /*!< 0x02000000 */
  4633. #define FDCAN_TXEFS_TEFL FDCAN_TXEFS_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  4634. /***************** Bit definition for FDCAN_TXEFA register *********************/
  4635. #define FDCAN_TXEFA_EFAI_Pos (0U)
  4636. #define FDCAN_TXEFA_EFAI_Msk (0x1FUL << FDCAN_TXEFA_EFAI_Pos) /*!< 0x0000001F */
  4637. #define FDCAN_TXEFA_EFAI FDCAN_TXEFA_EFAI_Msk /*!<Event FIFO Acknowledge Index */
  4638. /***************** Bit definition for FDCAN_TTTMC register *********************/
  4639. #define FDCAN_TTTMC_TMSA_Pos (2U)
  4640. #define FDCAN_TTTMC_TMSA_Msk (0x3FFFUL << FDCAN_TTTMC_TMSA_Pos) /*!< 0x0000FFFC */
  4641. #define FDCAN_TTTMC_TMSA FDCAN_TTTMC_TMSA_Msk /*!<Trigger Memory Start Address */
  4642. #define FDCAN_TTTMC_TME_Pos (16U)
  4643. #define FDCAN_TTTMC_TME_Msk (0x7FUL << FDCAN_TTTMC_TME_Pos) /*!< 0x007F0000 */
  4644. #define FDCAN_TTTMC_TME FDCAN_TTTMC_TME_Msk /*!<Trigger Memory Elements */
  4645. /***************** Bit definition for FDCAN_TTRMC register *********************/
  4646. #define FDCAN_TTRMC_RID_Pos (0U)
  4647. #define FDCAN_TTRMC_RID_Msk (0x1FFFFFFFUL << FDCAN_TTRMC_RID_Pos) /*!< 0x1FFFFFFF */
  4648. #define FDCAN_TTRMC_RID FDCAN_TTRMC_RID_Msk /*!<Reference Identifier */
  4649. #define FDCAN_TTRMC_XTD_Pos (30U)
  4650. #define FDCAN_TTRMC_XTD_Msk (0x1UL << FDCAN_TTRMC_XTD_Pos) /*!< 0x40000000 */
  4651. #define FDCAN_TTRMC_XTD FDCAN_TTRMC_XTD_Msk /*!< Extended Identifier */
  4652. #define FDCAN_TTRMC_RMPS_Pos (31U)
  4653. #define FDCAN_TTRMC_RMPS_Msk (0x1UL << FDCAN_TTRMC_RMPS_Pos) /*!< 0x80000000 */
  4654. #define FDCAN_TTRMC_RMPS FDCAN_TTRMC_RMPS_Msk /*!<Reference Message Payload Select */
  4655. /***************** Bit definition for FDCAN_TTOCF register *********************/
  4656. #define FDCAN_TTOCF_OM_Pos (0U)
  4657. #define FDCAN_TTOCF_OM_Msk (0x3UL << FDCAN_TTOCF_OM_Pos) /*!< 0x00000003 */
  4658. #define FDCAN_TTOCF_OM FDCAN_TTOCF_OM_Msk /*!<Operation Mode */
  4659. #define FDCAN_TTOCF_GEN_Pos (3U)
  4660. #define FDCAN_TTOCF_GEN_Msk (0x1UL << FDCAN_TTOCF_GEN_Pos) /*!< 0x00000008 */
  4661. #define FDCAN_TTOCF_GEN FDCAN_TTOCF_GEN_Msk /*!<Gap Enable */
  4662. #define FDCAN_TTOCF_TM_Pos (4U)
  4663. #define FDCAN_TTOCF_TM_Msk (0x1UL << FDCAN_TTOCF_TM_Pos) /*!< 0x00000010 */
  4664. #define FDCAN_TTOCF_TM FDCAN_TTOCF_TM_Msk /*!<Time Master */
  4665. #define FDCAN_TTOCF_LDSDL_Pos (5U)
  4666. #define FDCAN_TTOCF_LDSDL_Msk (0x7UL << FDCAN_TTOCF_LDSDL_Pos) /*!< 0x000000E0 */
  4667. #define FDCAN_TTOCF_LDSDL FDCAN_TTOCF_LDSDL_Msk /*!<LD of Synchronization Deviation Limit */
  4668. #define FDCAN_TTOCF_IRTO_Pos (8U)
  4669. #define FDCAN_TTOCF_IRTO_Msk (0x7FUL << FDCAN_TTOCF_IRTO_Pos) /*!< 0x00007F00 */
  4670. #define FDCAN_TTOCF_IRTO FDCAN_TTOCF_IRTO_Msk /*!<Initial Reference Trigger Offset */
  4671. #define FDCAN_TTOCF_EECS_Pos (15U)
  4672. #define FDCAN_TTOCF_EECS_Msk (0x1UL << FDCAN_TTOCF_EECS_Pos) /*!< 0x00008000 */
  4673. #define FDCAN_TTOCF_EECS FDCAN_TTOCF_EECS_Msk /*!<Enable External Clock Synchronization */
  4674. #define FDCAN_TTOCF_AWL_Pos (16U)
  4675. #define FDCAN_TTOCF_AWL_Msk (0xFFUL << FDCAN_TTOCF_AWL_Pos) /*!< 0x00FF0000 */
  4676. #define FDCAN_TTOCF_AWL FDCAN_TTOCF_AWL_Msk /*!<Application Watchdog Limit */
  4677. #define FDCAN_TTOCF_EGTF_Pos (24U)
  4678. #define FDCAN_TTOCF_EGTF_Msk (0x1UL << FDCAN_TTOCF_EGTF_Pos) /*!< 0x01000000 */
  4679. #define FDCAN_TTOCF_EGTF FDCAN_TTOCF_EGTF_Msk /*!<Enable Global Time Filtering */
  4680. #define FDCAN_TTOCF_ECC_Pos (25U)
  4681. #define FDCAN_TTOCF_ECC_Msk (0x1UL << FDCAN_TTOCF_ECC_Pos) /*!< 0x02000000 */
  4682. #define FDCAN_TTOCF_ECC FDCAN_TTOCF_ECC_Msk /*!<Enable Clock Calibration */
  4683. #define FDCAN_TTOCF_EVTP_Pos (26U)
  4684. #define FDCAN_TTOCF_EVTP_Msk (0x1UL << FDCAN_TTOCF_EVTP_Pos) /*!< 0x04000000 */
  4685. #define FDCAN_TTOCF_EVTP FDCAN_TTOCF_EVTP_Msk /*!<Event Trigger Polarity */
  4686. /***************** Bit definition for FDCAN_TTMLM register *********************/
  4687. #define FDCAN_TTMLM_CCM_Pos (0U)
  4688. #define FDCAN_TTMLM_CCM_Msk (0x3FUL << FDCAN_TTMLM_CCM_Pos) /*!< 0x0000003F */
  4689. #define FDCAN_TTMLM_CCM FDCAN_TTMLM_CCM_Msk /*!<Cycle Count Max */
  4690. #define FDCAN_TTMLM_CSS_Pos (6U)
  4691. #define FDCAN_TTMLM_CSS_Msk (0x3UL << FDCAN_TTMLM_CSS_Pos) /*!< 0x000000C0 */
  4692. #define FDCAN_TTMLM_CSS FDCAN_TTMLM_CSS_Msk /*!<Cycle Start Synchronization */
  4693. #define FDCAN_TTMLM_TXEW_Pos (8U)
  4694. #define FDCAN_TTMLM_TXEW_Msk (0xFUL << FDCAN_TTMLM_TXEW_Pos) /*!< 0x00000F00 */
  4695. #define FDCAN_TTMLM_TXEW FDCAN_TTMLM_TXEW_Msk /*!<Tx Enable Window */
  4696. #define FDCAN_TTMLM_ENTT_Pos (16U)
  4697. #define FDCAN_TTMLM_ENTT_Msk (0xFFFUL << FDCAN_TTMLM_ENTT_Pos) /*!< 0x0FFF0000 */
  4698. #define FDCAN_TTMLM_ENTT FDCAN_TTMLM_ENTT_Msk /*!<Expected Number of Tx Triggers */
  4699. /***************** Bit definition for FDCAN_TURCF register *********************/
  4700. #define FDCAN_TURCF_NCL_Pos (0U)
  4701. #define FDCAN_TURCF_NCL_Msk (0xFFFFUL << FDCAN_TURCF_NCL_Pos) /*!< 0x0000FFFF */
  4702. #define FDCAN_TURCF_NCL FDCAN_TURCF_NCL_Msk /*!<Numerator Configuration Low */
  4703. #define FDCAN_TURCF_DC_Pos (16U)
  4704. #define FDCAN_TURCF_DC_Msk (0x3FFFUL << FDCAN_TURCF_DC_Pos) /*!< 0x3FFF0000 */
  4705. #define FDCAN_TURCF_DC FDCAN_TURCF_DC_Msk /*!<Denominator Configuration */
  4706. #define FDCAN_TURCF_ELT_Pos (31U)
  4707. #define FDCAN_TURCF_ELT_Msk (0x1UL << FDCAN_TURCF_ELT_Pos) /*!< 0x80000000 */
  4708. #define FDCAN_TURCF_ELT FDCAN_TURCF_ELT_Msk /*!<Enable Local Time */
  4709. /***************** Bit definition for FDCAN_TTOCN register ********************/
  4710. #define FDCAN_TTOCN_SGT_Pos (0U)
  4711. #define FDCAN_TTOCN_SGT_Msk (0x1UL << FDCAN_TTOCN_SGT_Pos) /*!< 0x00000001 */
  4712. #define FDCAN_TTOCN_SGT FDCAN_TTOCN_SGT_Msk /*!<Set Global time */
  4713. #define FDCAN_TTOCN_ECS_Pos (1U)
  4714. #define FDCAN_TTOCN_ECS_Msk (0x1UL << FDCAN_TTOCN_ECS_Pos) /*!< 0x00000002 */
  4715. #define FDCAN_TTOCN_ECS FDCAN_TTOCN_ECS_Msk /*!<External Clock Synchronization */
  4716. #define FDCAN_TTOCN_SWP_Pos (2U)
  4717. #define FDCAN_TTOCN_SWP_Msk (0x1UL << FDCAN_TTOCN_SWP_Pos) /*!< 0x00000004 */
  4718. #define FDCAN_TTOCN_SWP FDCAN_TTOCN_SWP_Msk /*!<Stop Watch Polarity */
  4719. #define FDCAN_TTOCN_SWS_Pos (3U)
  4720. #define FDCAN_TTOCN_SWS_Msk (0x3UL << FDCAN_TTOCN_SWS_Pos) /*!< 0x00000018 */
  4721. #define FDCAN_TTOCN_SWS FDCAN_TTOCN_SWS_Msk /*!<Stop Watch Source */
  4722. #define FDCAN_TTOCN_RTIE_Pos (5U)
  4723. #define FDCAN_TTOCN_RTIE_Msk (0x1UL << FDCAN_TTOCN_RTIE_Pos) /*!< 0x00000020 */
  4724. #define FDCAN_TTOCN_RTIE FDCAN_TTOCN_RTIE_Msk /*!<Register Time Mark Interrupt Pulse Enable */
  4725. #define FDCAN_TTOCN_TMC_Pos (6U)
  4726. #define FDCAN_TTOCN_TMC_Msk (0x3UL << FDCAN_TTOCN_TMC_Pos) /*!< 0x000000C0 */
  4727. #define FDCAN_TTOCN_TMC FDCAN_TTOCN_TMC_Msk /*!<Register Time Mark Compare */
  4728. #define FDCAN_TTOCN_TTIE_Pos (8U)
  4729. #define FDCAN_TTOCN_TTIE_Msk (0x1UL << FDCAN_TTOCN_TTIE_Pos) /*!< 0x00000100 */
  4730. #define FDCAN_TTOCN_TTIE FDCAN_TTOCN_TTIE_Msk /*!<Trigger Time Mark Interrupt Pulse Enable */
  4731. #define FDCAN_TTOCN_GCS_Pos (9U)
  4732. #define FDCAN_TTOCN_GCS_Msk (0x1UL << FDCAN_TTOCN_GCS_Pos) /*!< 0x00000200 */
  4733. #define FDCAN_TTOCN_GCS FDCAN_TTOCN_GCS_Msk /*!<Gap Control Select */
  4734. #define FDCAN_TTOCN_FGP_Pos (10U)
  4735. #define FDCAN_TTOCN_FGP_Msk (0x1UL << FDCAN_TTOCN_FGP_Pos) /*!< 0x00000400 */
  4736. #define FDCAN_TTOCN_FGP FDCAN_TTOCN_FGP_Msk /*!<Finish Gap */
  4737. #define FDCAN_TTOCN_TMG_Pos (11U)
  4738. #define FDCAN_TTOCN_TMG_Msk (0x1UL << FDCAN_TTOCN_TMG_Pos) /*!< 0x00000800 */
  4739. #define FDCAN_TTOCN_TMG FDCAN_TTOCN_TMG_Msk /*!<Time Mark Gap */
  4740. #define FDCAN_TTOCN_NIG_Pos (12U)
  4741. #define FDCAN_TTOCN_NIG_Msk (0x1UL << FDCAN_TTOCN_NIG_Pos) /*!< 0x00001000 */
  4742. #define FDCAN_TTOCN_NIG FDCAN_TTOCN_NIG_Msk /*!<Next is Gap */
  4743. #define FDCAN_TTOCN_ESCN_Pos (13U)
  4744. #define FDCAN_TTOCN_ESCN_Msk (0x1UL << FDCAN_TTOCN_ESCN_Pos) /*!< 0x00002000 */
  4745. #define FDCAN_TTOCN_ESCN FDCAN_TTOCN_ESCN_Msk /*!<External Synchronization Control */
  4746. #define FDCAN_TTOCN_LCKC_Pos (15U)
  4747. #define FDCAN_TTOCN_LCKC_Msk (0x1UL << FDCAN_TTOCN_LCKC_Pos) /*!< 0x00008000 */
  4748. #define FDCAN_TTOCN_LCKC FDCAN_TTOCN_LCKC_Msk /*!<TT Operation Control Register Locked */
  4749. /***************** Bit definition for FDCAN_TTGTP register ********************/
  4750. #define FDCAN_TTGTP_TP_Pos (0U)
  4751. #define FDCAN_TTGTP_TP_Msk (0xFFFFUL << FDCAN_TTGTP_TP_Pos) /*!< 0x0000FFFF */
  4752. #define FDCAN_TTGTP_TP FDCAN_TTGTP_TP_Msk /*!<Time Preset */
  4753. #define FDCAN_TTGTP_CTP_Pos (16U)
  4754. #define FDCAN_TTGTP_CTP_Msk (0xFFFFUL << FDCAN_TTGTP_CTP_Pos) /*!< 0xFFFF0000 */
  4755. #define FDCAN_TTGTP_CTP FDCAN_TTGTP_CTP_Msk /*!<Cycle Time Target Phase */
  4756. /***************** Bit definition for FDCAN_TTTMK register ********************/
  4757. #define FDCAN_TTTMK_TM_Pos (0U)
  4758. #define FDCAN_TTTMK_TM_Msk (0xFFFFUL << FDCAN_TTTMK_TM_Pos) /*!< 0x0000FFFF */
  4759. #define FDCAN_TTTMK_TM FDCAN_TTTMK_TM_Msk /*!<Time Mark */
  4760. #define FDCAN_TTTMK_TICC_Pos (16U)
  4761. #define FDCAN_TTTMK_TICC_Msk (0x7FUL << FDCAN_TTTMK_TICC_Pos) /*!< 0x007F0000 */
  4762. #define FDCAN_TTTMK_TICC FDCAN_TTTMK_TICC_Msk /*!<Time Mark Cycle Code */
  4763. #define FDCAN_TTTMK_LCKM_Pos (31U)
  4764. #define FDCAN_TTTMK_LCKM_Msk (0x1UL << FDCAN_TTTMK_LCKM_Pos) /*!< 0x80000000 */
  4765. #define FDCAN_TTTMK_LCKM FDCAN_TTTMK_LCKM_Msk /*!<TT Time Mark Register Locked */
  4766. /***************** Bit definition for FDCAN_TTIR register ********************/
  4767. #define FDCAN_TTIR_SBC_Pos (0U)
  4768. #define FDCAN_TTIR_SBC_Msk (0x1UL << FDCAN_TTIR_SBC_Pos) /*!< 0x00000001 */
  4769. #define FDCAN_TTIR_SBC FDCAN_TTIR_SBC_Msk /*!<Start of Basic Cycle */
  4770. #define FDCAN_TTIR_SMC_Pos (1U)
  4771. #define FDCAN_TTIR_SMC_Msk (0x1UL << FDCAN_TTIR_SMC_Pos) /*!< 0x00000002 */
  4772. #define FDCAN_TTIR_SMC FDCAN_TTIR_SMC_Msk /*!<Start of Matrix Cycle */
  4773. #define FDCAN_TTIR_CSM_Pos (2U)
  4774. #define FDCAN_TTIR_CSM_Msk (0x1UL << FDCAN_TTIR_CSM_Pos) /*!< 0x00000004 */
  4775. #define FDCAN_TTIR_CSM FDCAN_TTIR_CSM_Msk /*!<Change of Synchronization Mode */
  4776. #define FDCAN_TTIR_SOG_Pos (3U)
  4777. #define FDCAN_TTIR_SOG_Msk (0x1UL << FDCAN_TTIR_SOG_Pos) /*!< 0x00000008 */
  4778. #define FDCAN_TTIR_SOG FDCAN_TTIR_SOG_Msk /*!<Start of Gap */
  4779. #define FDCAN_TTIR_RTMI_Pos (4U)
  4780. #define FDCAN_TTIR_RTMI_Msk (0x1UL << FDCAN_TTIR_RTMI_Pos) /*!< 0x00000010 */
  4781. #define FDCAN_TTIR_RTMI FDCAN_TTIR_RTMI_Msk /*!<Register Time Mark Interrupt */
  4782. #define FDCAN_TTIR_TTMI_Pos (5U)
  4783. #define FDCAN_TTIR_TTMI_Msk (0x1UL << FDCAN_TTIR_TTMI_Pos) /*!< 0x00000020 */
  4784. #define FDCAN_TTIR_TTMI FDCAN_TTIR_TTMI_Msk /*!<Trigger Time Mark Event Internal */
  4785. #define FDCAN_TTIR_SWE_Pos (6U)
  4786. #define FDCAN_TTIR_SWE_Msk (0x1UL << FDCAN_TTIR_SWE_Pos) /*!< 0x00000040 */
  4787. #define FDCAN_TTIR_SWE FDCAN_TTIR_SWE_Msk /*!<Stop Watch Event */
  4788. #define FDCAN_TTIR_GTW_Pos (7U)
  4789. #define FDCAN_TTIR_GTW_Msk (0x1UL << FDCAN_TTIR_GTW_Pos) /*!< 0x00000080 */
  4790. #define FDCAN_TTIR_GTW FDCAN_TTIR_GTW_Msk /*!<Global Time Wrap */
  4791. #define FDCAN_TTIR_GTD_Pos (8U)
  4792. #define FDCAN_TTIR_GTD_Msk (0x1UL << FDCAN_TTIR_GTD_Pos) /*!< 0x00000100 */
  4793. #define FDCAN_TTIR_GTD FDCAN_TTIR_GTD_Msk /*!<Global Time Discontinuity */
  4794. #define FDCAN_TTIR_GTE_Pos (9U)
  4795. #define FDCAN_TTIR_GTE_Msk (0x1UL << FDCAN_TTIR_GTE_Pos) /*!< 0x00000200 */
  4796. #define FDCAN_TTIR_GTE FDCAN_TTIR_GTE_Msk /*!<Global Time Error */
  4797. #define FDCAN_TTIR_TXU_Pos (10U)
  4798. #define FDCAN_TTIR_TXU_Msk (0x1UL << FDCAN_TTIR_TXU_Pos) /*!< 0x00000400 */
  4799. #define FDCAN_TTIR_TXU FDCAN_TTIR_TXU_Msk /*!<Tx Count Underflow */
  4800. #define FDCAN_TTIR_TXO_Pos (11U)
  4801. #define FDCAN_TTIR_TXO_Msk (0x1UL << FDCAN_TTIR_TXO_Pos) /*!< 0x00000800 */
  4802. #define FDCAN_TTIR_TXO FDCAN_TTIR_TXO_Msk /*!<Tx Count Overflow */
  4803. #define FDCAN_TTIR_SE1_Pos (12U)
  4804. #define FDCAN_TTIR_SE1_Msk (0x1UL << FDCAN_TTIR_SE1_Pos) /*!< 0x00001000 */
  4805. #define FDCAN_TTIR_SE1 FDCAN_TTIR_SE1_Msk /*!<Scheduling Error 1 */
  4806. #define FDCAN_TTIR_SE2_Pos (13U)
  4807. #define FDCAN_TTIR_SE2_Msk (0x1UL << FDCAN_TTIR_SE2_Pos) /*!< 0x00002000 */
  4808. #define FDCAN_TTIR_SE2 FDCAN_TTIR_SE2_Msk /*!<Scheduling Error 2 */
  4809. #define FDCAN_TTIR_ELC_Pos (14U)
  4810. #define FDCAN_TTIR_ELC_Msk (0x1UL << FDCAN_TTIR_ELC_Pos) /*!< 0x00004000 */
  4811. #define FDCAN_TTIR_ELC FDCAN_TTIR_ELC_Msk /*!<Error Level Changed */
  4812. #define FDCAN_TTIR_IWT_Pos (15U)
  4813. #define FDCAN_TTIR_IWT_Msk (0x1UL << FDCAN_TTIR_IWT_Pos) /*!< 0x00008000 */
  4814. #define FDCAN_TTIR_IWT FDCAN_TTIR_IWT_Msk /*!<Initialization Watch Trigger */
  4815. #define FDCAN_TTIR_WT_Pos (16U)
  4816. #define FDCAN_TTIR_WT_Msk (0x1UL << FDCAN_TTIR_WT_Pos) /*!< 0x00010000 */
  4817. #define FDCAN_TTIR_WT FDCAN_TTIR_WT_Msk /*!<Watch Trigger */
  4818. #define FDCAN_TTIR_AW_Pos (17U)
  4819. #define FDCAN_TTIR_AW_Msk (0x1UL << FDCAN_TTIR_AW_Pos) /*!< 0x00020000 */
  4820. #define FDCAN_TTIR_AW FDCAN_TTIR_AW_Msk /*!<Application Watchdog */
  4821. #define FDCAN_TTIR_CER_Pos (18U)
  4822. #define FDCAN_TTIR_CER_Msk (0x1UL << FDCAN_TTIR_CER_Pos) /*!< 0x00040000 */
  4823. #define FDCAN_TTIR_CER FDCAN_TTIR_CER_Msk /*!<Configuration Error */
  4824. /***************** Bit definition for FDCAN_TTIE register ********************/
  4825. #define FDCAN_TTIE_SBCE_Pos (0U)
  4826. #define FDCAN_TTIE_SBCE_Msk (0x1UL << FDCAN_TTIE_SBCE_Pos) /*!< 0x00000001 */
  4827. #define FDCAN_TTIE_SBCE FDCAN_TTIE_SBCE_Msk /*!<Start of Basic Cycle Interrupt Enable */
  4828. #define FDCAN_TTIE_SMCE_Pos (1U)
  4829. #define FDCAN_TTIE_SMCE_Msk (0x1UL << FDCAN_TTIE_SMCE_Pos) /*!< 0x00000002 */
  4830. #define FDCAN_TTIE_SMCE FDCAN_TTIE_SMCE_Msk /*!<Start of Matrix Cycle Interrupt Enable */
  4831. #define FDCAN_TTIE_CSME_Pos (2U)
  4832. #define FDCAN_TTIE_CSME_Msk (0x1UL << FDCAN_TTIE_CSME_Pos) /*!< 0x00000004 */
  4833. #define FDCAN_TTIE_CSME FDCAN_TTIE_CSME_Msk /*!<Change of Synchronization Mode Interrupt Enable */
  4834. #define FDCAN_TTIE_SOGE_Pos (3U)
  4835. #define FDCAN_TTIE_SOGE_Msk (0x1UL << FDCAN_TTIE_SOGE_Pos) /*!< 0x00000008 */
  4836. #define FDCAN_TTIE_SOGE FDCAN_TTIE_SOGE_Msk /*!<Start of Gap Interrupt Enable */
  4837. #define FDCAN_TTIE_RTMIE_Pos (4U)
  4838. #define FDCAN_TTIE_RTMIE_Msk (0x1UL << FDCAN_TTIE_RTMIE_Pos) /*!< 0x00000010 */
  4839. #define FDCAN_TTIE_RTMIE FDCAN_TTIE_RTMIE_Msk /*!<Register Time Mark Interrupt Interrupt Enable */
  4840. #define FDCAN_TTIE_TTMIE_Pos (5U)
  4841. #define FDCAN_TTIE_TTMIE_Msk (0x1UL << FDCAN_TTIE_TTMIE_Pos) /*!< 0x00000020 */
  4842. #define FDCAN_TTIE_TTMIE FDCAN_TTIE_TTMIE_Msk /*!<Trigger Time Mark Event Internal Interrupt Enable */
  4843. #define FDCAN_TTIE_SWEE_Pos (6U)
  4844. #define FDCAN_TTIE_SWEE_Msk (0x1UL << FDCAN_TTIE_SWEE_Pos) /*!< 0x00000040 */
  4845. #define FDCAN_TTIE_SWEE FDCAN_TTIE_SWEE_Msk /*!<Stop Watch Event Interrupt Enable */
  4846. #define FDCAN_TTIE_GTWE_Pos (7U)
  4847. #define FDCAN_TTIE_GTWE_Msk (0x1UL << FDCAN_TTIE_GTWE_Pos) /*!< 0x00000080 */
  4848. #define FDCAN_TTIE_GTWE FDCAN_TTIE_GTWE_Msk /*!<Global Time Wrap Interrupt Enable */
  4849. #define FDCAN_TTIE_GTDE_Pos (8U)
  4850. #define FDCAN_TTIE_GTDE_Msk (0x1UL << FDCAN_TTIE_GTDE_Pos) /*!< 0x00000100 */
  4851. #define FDCAN_TTIE_GTDE FDCAN_TTIE_GTDE_Msk /*!<Global Time Discontinuity Interrupt Enable */
  4852. #define FDCAN_TTIE_GTEE_Pos (9U)
  4853. #define FDCAN_TTIE_GTEE_Msk (0x1UL << FDCAN_TTIE_GTEE_Pos) /*!< 0x00000200 */
  4854. #define FDCAN_TTIE_GTEE FDCAN_TTIE_GTEE_Msk /*!<Global Time Error Interrupt Enable */
  4855. #define FDCAN_TTIE_TXUE_Pos (10U)
  4856. #define FDCAN_TTIE_TXUE_Msk (0x1UL << FDCAN_TTIE_TXUE_Pos) /*!< 0x00000400 */
  4857. #define FDCAN_TTIE_TXUE FDCAN_TTIE_TXUE_Msk /*!<Tx Count Underflow Interrupt Enable */
  4858. #define FDCAN_TTIE_TXOE_Pos (11U)
  4859. #define FDCAN_TTIE_TXOE_Msk (0x1UL << FDCAN_TTIE_TXOE_Pos) /*!< 0x00000800 */
  4860. #define FDCAN_TTIE_TXOE FDCAN_TTIE_TXOE_Msk /*!<Tx Count Overflow Interrupt Enable */
  4861. #define FDCAN_TTIE_SE1E_Pos (12U)
  4862. #define FDCAN_TTIE_SE1E_Msk (0x1UL << FDCAN_TTIE_SE1E_Pos) /*!< 0x00001000 */
  4863. #define FDCAN_TTIE_SE1E FDCAN_TTIE_SE1E_Msk /*!<Scheduling Error 1 Interrupt Enable */
  4864. #define FDCAN_TTIE_SE2E_Pos (13U)
  4865. #define FDCAN_TTIE_SE2E_Msk (0x1UL << FDCAN_TTIE_SE2E_Pos) /*!< 0x00002000 */
  4866. #define FDCAN_TTIE_SE2E FDCAN_TTIE_SE2E_Msk /*!<Scheduling Error 2 Interrupt Enable */
  4867. #define FDCAN_TTIE_ELCE_Pos (14U)
  4868. #define FDCAN_TTIE_ELCE_Msk (0x1UL << FDCAN_TTIE_ELCE_Pos) /*!< 0x00004000 */
  4869. #define FDCAN_TTIE_ELCE FDCAN_TTIE_ELCE_Msk /*!<Error Level Changed Interrupt Enable */
  4870. #define FDCAN_TTIE_IWTE_Pos (15U)
  4871. #define FDCAN_TTIE_IWTE_Msk (0x1UL << FDCAN_TTIE_IWTE_Pos) /*!< 0x00008000 */
  4872. #define FDCAN_TTIE_IWTE FDCAN_TTIE_IWTE_Msk /*!<Initialization Watch Trigger Interrupt Enable */
  4873. #define FDCAN_TTIE_WTE_Pos (16U)
  4874. #define FDCAN_TTIE_WTE_Msk (0x1UL << FDCAN_TTIE_WTE_Pos) /*!< 0x00010000 */
  4875. #define FDCAN_TTIE_WTE FDCAN_TTIE_WTE_Msk /*!<Watch Trigger Interrupt Enable */
  4876. #define FDCAN_TTIE_AWE_Pos (17U)
  4877. #define FDCAN_TTIE_AWE_Msk (0x1UL << FDCAN_TTIE_AWE_Pos) /*!< 0x00020000 */
  4878. #define FDCAN_TTIE_AWE FDCAN_TTIE_AWE_Msk /*!<Application Watchdog Interrupt Enable */
  4879. #define FDCAN_TTIE_CERE_Pos (18U)
  4880. #define FDCAN_TTIE_CERE_Msk (0x1UL << FDCAN_TTIE_CERE_Pos) /*!< 0x00040000 */
  4881. #define FDCAN_TTIE_CERE FDCAN_TTIE_CERE_Msk /*!<Configuration Error Interrupt Enable */
  4882. /***************** Bit definition for FDCAN_TTILS register ********************/
  4883. #define FDCAN_TTILS_SBCS_Pos (0U)
  4884. #define FDCAN_TTILS_SBCS_Msk (0x1UL << FDCAN_TTILS_SBCS_Pos) /*!< 0x00000001 */
  4885. #define FDCAN_TTILS_SBCS FDCAN_TTILS_SBCS_Msk /*!<Start of Basic Cycle Interrupt Line */
  4886. #define FDCAN_TTILS_SMCS_Pos (1U)
  4887. #define FDCAN_TTILS_SMCS_Msk (0x1UL << FDCAN_TTILS_SMCS_Pos) /*!< 0x00000002 */
  4888. #define FDCAN_TTILS_SMCS FDCAN_TTILS_SMCS_Msk /*!<Start of Matrix Cycle Interrupt Line */
  4889. #define FDCAN_TTILS_CSMS_Pos (2U)
  4890. #define FDCAN_TTILS_CSMS_Msk (0x1UL << FDCAN_TTILS_CSMS_Pos) /*!< 0x00000004 */
  4891. #define FDCAN_TTILS_CSMS FDCAN_TTILS_CSMS_Msk /*!<Change of Synchronization Mode Interrupt Line */
  4892. #define FDCAN_TTILS_SOGS_Pos (3U)
  4893. #define FDCAN_TTILS_SOGS_Msk (0x1UL << FDCAN_TTILS_SOGS_Pos) /*!< 0x00000008 */
  4894. #define FDCAN_TTILS_SOGS FDCAN_TTILS_SOGS_Msk /*!<Start of Gap Interrupt Line */
  4895. #define FDCAN_TTILS_RTMIS_Pos (4U)
  4896. #define FDCAN_TTILS_RTMIS_Msk (0x1UL << FDCAN_TTILS_RTMIS_Pos) /*!< 0x00000010 */
  4897. #define FDCAN_TTILS_RTMIS FDCAN_TTILS_RTMIS_Msk /*!<Register Time Mark Interrupt Interrupt Line */
  4898. #define FDCAN_TTILS_TTMIS_Pos (5U)
  4899. #define FDCAN_TTILS_TTMIS_Msk (0x1UL << FDCAN_TTILS_TTMIS_Pos) /*!< 0x00000020 */
  4900. #define FDCAN_TTILS_TTMIS FDCAN_TTILS_TTMIS_Msk /*!<Trigger Time Mark Event Internal Interrupt Line */
  4901. #define FDCAN_TTILS_SWES_Pos (6U)
  4902. #define FDCAN_TTILS_SWES_Msk (0x1UL << FDCAN_TTILS_SWES_Pos) /*!< 0x00000040 */
  4903. #define FDCAN_TTILS_SWES FDCAN_TTILS_SWES_Msk /*!<Stop Watch Event Interrupt Line */
  4904. #define FDCAN_TTILS_GTWS_Pos (7U)
  4905. #define FDCAN_TTILS_GTWS_Msk (0x1UL << FDCAN_TTILS_GTWS_Pos) /*!< 0x00000080 */
  4906. #define FDCAN_TTILS_GTWS FDCAN_TTILS_GTWS_Msk /*!<Global Time Wrap Interrupt Line */
  4907. #define FDCAN_TTILS_GTDS_Pos (8U)
  4908. #define FDCAN_TTILS_GTDS_Msk (0x1UL << FDCAN_TTILS_GTDS_Pos) /*!< 0x00000100 */
  4909. #define FDCAN_TTILS_GTDS FDCAN_TTILS_GTDS_Msk /*!<Global Time Discontinuity Interrupt Line */
  4910. #define FDCAN_TTILS_GTES_Pos (9U)
  4911. #define FDCAN_TTILS_GTES_Msk (0x1UL << FDCAN_TTILS_GTES_Pos) /*!< 0x00000200 */
  4912. #define FDCAN_TTILS_GTES FDCAN_TTILS_GTES_Msk /*!<Global Time Error Interrupt Line */
  4913. #define FDCAN_TTILS_TXUS_Pos (10U)
  4914. #define FDCAN_TTILS_TXUS_Msk (0x1UL << FDCAN_TTILS_TXUS_Pos) /*!< 0x00000400 */
  4915. #define FDCAN_TTILS_TXUS FDCAN_TTILS_TXUS_Msk /*!<Tx Count Underflow Interrupt Line */
  4916. #define FDCAN_TTILS_TXOS_Pos (11U)
  4917. #define FDCAN_TTILS_TXOS_Msk (0x1UL << FDCAN_TTILS_TXOS_Pos) /*!< 0x00000800 */
  4918. #define FDCAN_TTILS_TXOS FDCAN_TTILS_TXOS_Msk /*!<Tx Count Overflow Interrupt Line */
  4919. #define FDCAN_TTILS_SE1S_Pos (12U)
  4920. #define FDCAN_TTILS_SE1S_Msk (0x1UL << FDCAN_TTILS_SE1S_Pos) /*!< 0x00001000 */
  4921. #define FDCAN_TTILS_SE1S FDCAN_TTILS_SE1S_Msk /*!<Scheduling Error 1 Interrupt Line */
  4922. #define FDCAN_TTILS_SE2S_Pos (13U)
  4923. #define FDCAN_TTILS_SE2S_Msk (0x1UL << FDCAN_TTILS_SE2S_Pos) /*!< 0x00002000 */
  4924. #define FDCAN_TTILS_SE2S FDCAN_TTILS_SE2S_Msk /*!<Scheduling Error 2 Interrupt Line */
  4925. #define FDCAN_TTILS_ELCS_Pos (14U)
  4926. #define FDCAN_TTILS_ELCS_Msk (0x1UL << FDCAN_TTILS_ELCS_Pos) /*!< 0x00004000 */
  4927. #define FDCAN_TTILS_ELCS FDCAN_TTILS_ELCS_Msk /*!<Error Level Changed Interrupt Line */
  4928. #define FDCAN_TTILS_IWTS_Pos (15U)
  4929. #define FDCAN_TTILS_IWTS_Msk (0x1UL << FDCAN_TTILS_IWTS_Pos) /*!< 0x00008000 */
  4930. #define FDCAN_TTILS_IWTS FDCAN_TTILS_IWTS_Msk /*!<Initialization Watch Trigger Interrupt Line */
  4931. #define FDCAN_TTILS_WTS_Pos (16U)
  4932. #define FDCAN_TTILS_WTS_Msk (0x1UL << FDCAN_TTILS_WTS_Pos) /*!< 0x00010000 */
  4933. #define FDCAN_TTILS_WTS FDCAN_TTILS_WTS_Msk /*!<Watch Trigger Interrupt Line */
  4934. #define FDCAN_TTILS_AWS_Pos (17U)
  4935. #define FDCAN_TTILS_AWS_Msk (0x1UL << FDCAN_TTILS_AWS_Pos) /*!< 0x00020000 */
  4936. #define FDCAN_TTILS_AWS FDCAN_TTILS_AWS_Msk /*!<Application Watchdog Interrupt Line */
  4937. #define FDCAN_TTILS_CERS_Pos (18U)
  4938. #define FDCAN_TTILS_CERS_Msk (0x1UL << FDCAN_TTILS_CERS_Pos) /*!< 0x00040000 */
  4939. #define FDCAN_TTILS_CERS FDCAN_TTILS_CERS_Msk /*!<Configuration Error Interrupt Line */
  4940. /***************** Bit definition for FDCAN_TTOST register ********************/
  4941. #define FDCAN_TTOST_EL_Pos (0U)
  4942. #define FDCAN_TTOST_EL_Msk (0x3UL << FDCAN_TTOST_EL_Pos) /*!< 0x00000003 */
  4943. #define FDCAN_TTOST_EL FDCAN_TTOST_EL_Msk /*!<Error Level */
  4944. #define FDCAN_TTOST_MS_Pos (2U)
  4945. #define FDCAN_TTOST_MS_Msk (0x3UL << FDCAN_TTOST_MS_Pos) /*!< 0x0000000C */
  4946. #define FDCAN_TTOST_MS FDCAN_TTOST_MS_Msk /*!<Master State */
  4947. #define FDCAN_TTOST_SYS_Pos (4U)
  4948. #define FDCAN_TTOST_SYS_Msk (0x3UL << FDCAN_TTOST_SYS_Pos) /*!< 0x00000030 */
  4949. #define FDCAN_TTOST_SYS FDCAN_TTOST_SYS_Msk /*!<Synchronization State */
  4950. #define FDCAN_TTOST_QGTP_Pos (6U)
  4951. #define FDCAN_TTOST_QGTP_Msk (0x1UL << FDCAN_TTOST_QGTP_Pos) /*!< 0x00000040 */
  4952. #define FDCAN_TTOST_QGTP FDCAN_TTOST_QGTP_Msk /*!<Quality of Global Time Phase */
  4953. #define FDCAN_TTOST_QCS_Pos (7U)
  4954. #define FDCAN_TTOST_QCS_Msk (0x1UL << FDCAN_TTOST_QCS_Pos) /*!< 0x00000080 */
  4955. #define FDCAN_TTOST_QCS FDCAN_TTOST_QCS_Msk /*!<Quality of Clock Speed */
  4956. #define FDCAN_TTOST_RTO_Pos (8U)
  4957. #define FDCAN_TTOST_RTO_Msk (0xFFUL << FDCAN_TTOST_RTO_Pos) /*!< 0x0000FF00 */
  4958. #define FDCAN_TTOST_RTO FDCAN_TTOST_RTO_Msk /*!<Reference Trigger Offset */
  4959. #define FDCAN_TTOST_WGTD_Pos (22U)
  4960. #define FDCAN_TTOST_WGTD_Msk (0x1UL << FDCAN_TTOST_WGTD_Pos) /*!< 0x00400000 */
  4961. #define FDCAN_TTOST_WGTD FDCAN_TTOST_WGTD_Msk /*!<Wait for Global Time Discontinuity */
  4962. #define FDCAN_TTOST_GFI_Pos (23U)
  4963. #define FDCAN_TTOST_GFI_Msk (0x1UL << FDCAN_TTOST_GFI_Pos) /*!< 0x00800000 */
  4964. #define FDCAN_TTOST_GFI FDCAN_TTOST_GFI_Msk /*!<Gap Finished Indicator */
  4965. #define FDCAN_TTOST_TMP_Pos (24U)
  4966. #define FDCAN_TTOST_TMP_Msk (0x7UL << FDCAN_TTOST_TMP_Pos) /*!< 0x07000000 */
  4967. #define FDCAN_TTOST_TMP FDCAN_TTOST_TMP_Msk /*!<Time Master Priority */
  4968. #define FDCAN_TTOST_GSI_Pos (27U)
  4969. #define FDCAN_TTOST_GSI_Msk (0x1UL << FDCAN_TTOST_GSI_Pos) /*!< 0x08000000 */
  4970. #define FDCAN_TTOST_GSI FDCAN_TTOST_GSI_Msk /*!<Gap Started Indicator */
  4971. #define FDCAN_TTOST_WFE_Pos (28U)
  4972. #define FDCAN_TTOST_WFE_Msk (0x1UL << FDCAN_TTOST_WFE_Pos) /*!< 0x10000000 */
  4973. #define FDCAN_TTOST_WFE FDCAN_TTOST_WFE_Msk /*!<Wait for Event */
  4974. #define FDCAN_TTOST_AWE_Pos (29U)
  4975. #define FDCAN_TTOST_AWE_Msk (0x1UL << FDCAN_TTOST_AWE_Pos) /*!< 0x20000000 */
  4976. #define FDCAN_TTOST_AWE FDCAN_TTOST_AWE_Msk /*!<Application Watchdog Event */
  4977. #define FDCAN_TTOST_WECS_Pos (30U)
  4978. #define FDCAN_TTOST_WECS_Msk (0x1UL << FDCAN_TTOST_WECS_Pos) /*!< 0x40000000 */
  4979. #define FDCAN_TTOST_WECS FDCAN_TTOST_WECS_Msk /*!<Wait for External Clock Synchronization */
  4980. #define FDCAN_TTOST_SPL_Pos (31U)
  4981. #define FDCAN_TTOST_SPL_Msk (0x1UL << FDCAN_TTOST_SPL_Pos) /*!< 0x80000000 */
  4982. #define FDCAN_TTOST_SPL FDCAN_TTOST_SPL_Msk /*!<Schedule Phase Lock */
  4983. /***************** Bit definition for FDCAN_TURNA register ********************/
  4984. #define FDCAN_TURNA_NAV_Pos (0U)
  4985. #define FDCAN_TURNA_NAV_Msk (0x3FFFFUL << FDCAN_TURNA_NAV_Pos) /*!< 0x0003FFFF */
  4986. #define FDCAN_TURNA_NAV FDCAN_TURNA_NAV_Msk /*!<Numerator Actual Value */
  4987. /***************** Bit definition for FDCAN_TTLGT register ********************/
  4988. #define FDCAN_TTLGT_LT_Pos (0U)
  4989. #define FDCAN_TTLGT_LT_Msk (0xFFFFUL << FDCAN_TTLGT_LT_Pos) /*!< 0x0000FFFF */
  4990. #define FDCAN_TTLGT_LT FDCAN_TTLGT_LT_Msk /*!<Local Time */
  4991. #define FDCAN_TTLGT_GT_Pos (16U)
  4992. #define FDCAN_TTLGT_GT_Msk (0xFFFFUL << FDCAN_TTLGT_GT_Pos) /*!< 0xFFFF0000 */
  4993. #define FDCAN_TTLGT_GT FDCAN_TTLGT_GT_Msk /*!<Global Time */
  4994. /***************** Bit definition for FDCAN_TTCTC register ********************/
  4995. #define FDCAN_TTCTC_CT_Pos (0U)
  4996. #define FDCAN_TTCTC_CT_Msk (0xFFFFUL << FDCAN_TTCTC_CT_Pos) /*!< 0x0000FFFF */
  4997. #define FDCAN_TTCTC_CT FDCAN_TTCTC_CT_Msk /*!<Cycle Time */
  4998. #define FDCAN_TTCTC_CC_Pos (16U)
  4999. #define FDCAN_TTCTC_CC_Msk (0x3FUL << FDCAN_TTCTC_CC_Pos) /*!< 0x003F0000 */
  5000. #define FDCAN_TTCTC_CC FDCAN_TTCTC_CC_Msk /*!<Cycle Count */
  5001. /***************** Bit definition for FDCAN_TTCPT register ********************/
  5002. #define FDCAN_TTCPT_CCV_Pos (0U)
  5003. #define FDCAN_TTCPT_CCV_Msk (0x3FUL << FDCAN_TTCPT_CCV_Pos) /*!< 0x0000003F */
  5004. #define FDCAN_TTCPT_CCV FDCAN_TTCPT_CCV_Msk /*!<Cycle Count Value */
  5005. #define FDCAN_TTCPT_SWV_Pos (16U)
  5006. #define FDCAN_TTCPT_SWV_Msk (0xFFFFUL << FDCAN_TTCPT_SWV_Pos) /*!< 0xFFFF0000 */
  5007. #define FDCAN_TTCPT_SWV FDCAN_TTCPT_SWV_Msk /*!<Stop Watch Value */
  5008. /***************** Bit definition for FDCAN_TTCSM register ********************/
  5009. #define FDCAN_TTCSM_CSM_Pos (0U)
  5010. #define FDCAN_TTCSM_CSM_Msk (0xFFFFUL << FDCAN_TTCSM_CSM_Pos) /*!< 0x0000FFFF */
  5011. #define FDCAN_TTCSM_CSM FDCAN_TTCSM_CSM_Msk /*!<Cycle Sync Mark */
  5012. /***************** Bit definition for FDCAN_TTTS register *********************/
  5013. #define FDCAN_TTTS_SWTSEL_Pos (0U)
  5014. #define FDCAN_TTTS_SWTSEL_Msk (0x3UL << FDCAN_TTTS_SWTSEL_Pos) /*!< 0x00000003 */
  5015. #define FDCAN_TTTS_SWTSEL FDCAN_TTTS_SWTSEL_Msk /*!<Stop watch trigger input selection */
  5016. #define FDCAN_TTTS_EVTSEL_Pos (4U)
  5017. #define FDCAN_TTTS_EVTSEL_Msk (0x3UL << FDCAN_TTTS_EVTSEL_Pos) /*!< 0x00000030 */
  5018. #define FDCAN_TTTS_EVTSEL FDCAN_TTTS_EVTSEL_Msk /*!<Event trigger input selection */
  5019. /********************************************************************************/
  5020. /* */
  5021. /* FDCANCCU (Clock Calibration unit) */
  5022. /* */
  5023. /********************************************************************************/
  5024. /***************** Bit definition for FDCANCCU_CREL register ******************/
  5025. #define FDCANCCU_CREL_DAY_Pos (0U)
  5026. #define FDCANCCU_CREL_DAY_Msk (0xFFUL << FDCANCCU_CREL_DAY_Pos) /*!< 0x000000FF */
  5027. #define FDCANCCU_CREL_DAY FDCANCCU_CREL_DAY_Msk /*!<Timestamp Day */
  5028. #define FDCANCCU_CREL_MON_Pos (8U)
  5029. #define FDCANCCU_CREL_MON_Msk (0xFFUL << FDCANCCU_CREL_MON_Pos) /*!< 0x0000FF00 */
  5030. #define FDCANCCU_CREL_MON FDCANCCU_CREL_MON_Msk /*!<Timestamp Month */
  5031. #define FDCANCCU_CREL_YEAR_Pos (16U)
  5032. #define FDCANCCU_CREL_YEAR_Msk (0xFUL << FDCANCCU_CREL_YEAR_Pos) /*!< 0x000F0000 */
  5033. #define FDCANCCU_CREL_YEAR FDCANCCU_CREL_YEAR_Msk /*!<Timestamp Year */
  5034. #define FDCANCCU_CREL_SUBSTEP_Pos (20U)
  5035. #define FDCANCCU_CREL_SUBSTEP_Msk (0xFUL << FDCANCCU_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  5036. #define FDCANCCU_CREL_SUBSTEP FDCANCCU_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  5037. #define FDCANCCU_CREL_STEP_Pos (24U)
  5038. #define FDCANCCU_CREL_STEP_Msk (0xFUL << FDCANCCU_CREL_STEP_Pos) /*!< 0x0F000000 */
  5039. #define FDCANCCU_CREL_STEP FDCANCCU_CREL_STEP_Msk /*!<Step of Core release */
  5040. #define FDCANCCU_CREL_REL_Pos (28U)
  5041. #define FDCANCCU_CREL_REL_Msk (0xFUL << FDCANCCU_CREL_REL_Pos) /*!< 0xF0000000 */
  5042. #define FDCANCCU_CREL_REL FDCANCCU_CREL_REL_Msk /*!<Core release */
  5043. /***************** Bit definition for FDCANCCU_CCFG register ******************/
  5044. #define FDCANCCU_CCFG_TQBT_Pos (0U)
  5045. #define FDCANCCU_CCFG_TQBT_Msk (0x1FUL << FDCANCCU_CCFG_TQBT_Pos) /*!< 0x0000001F */
  5046. #define FDCANCCU_CCFG_TQBT FDCANCCU_CCFG_TQBT_Msk /*!<Time Quanta per Bit Time */
  5047. #define FDCANCCU_CCFG_BCC_Pos (6U)
  5048. #define FDCANCCU_CCFG_BCC_Msk (0x1UL << FDCANCCU_CCFG_BCC_Pos) /*!< 0x00000040 */
  5049. #define FDCANCCU_CCFG_BCC FDCANCCU_CCFG_BCC_Msk /*!<Bypass Clock Calibration */
  5050. #define FDCANCCU_CCFG_CFL_Pos (7U)
  5051. #define FDCANCCU_CCFG_CFL_Msk (0x1UL << FDCANCCU_CCFG_CFL_Pos) /*!< 0x00000080 */
  5052. #define FDCANCCU_CCFG_CFL FDCANCCU_CCFG_CFL_Msk /*!<Calibration Field Length */
  5053. #define FDCANCCU_CCFG_OCPM_Pos (8U)
  5054. #define FDCANCCU_CCFG_OCPM_Msk (0xFFUL << FDCANCCU_CCFG_OCPM_Pos) /*!< 0x0000FF00 */
  5055. #define FDCANCCU_CCFG_OCPM FDCANCCU_CCFG_OCPM_Msk /*!<Oscillator Clock Periods Minimum */
  5056. #define FDCANCCU_CCFG_CDIV_Pos (16U)
  5057. #define FDCANCCU_CCFG_CDIV_Msk (0xFUL << FDCANCCU_CCFG_CDIV_Pos) /*!< 0x000F0000 */
  5058. #define FDCANCCU_CCFG_CDIV FDCANCCU_CCFG_CDIV_Msk /*!<Clock Divider */
  5059. #define FDCANCCU_CCFG_SWR_Pos (31U)
  5060. #define FDCANCCU_CCFG_SWR_Msk (0x1UL << FDCANCCU_CCFG_SWR_Pos) /*!< 0x80000000 */
  5061. #define FDCANCCU_CCFG_SWR FDCANCCU_CCFG_SWR_Msk /*!<Software Reset */
  5062. /***************** Bit definition for FDCANCCU_CSTAT register *****************/
  5063. #define FDCANCCU_CSTAT_OCPC_Pos (0U)
  5064. #define FDCANCCU_CSTAT_OCPC_Msk (0x3FFFFUL << FDCANCCU_CSTAT_OCPC_Pos) /*!< 0x0003FFFF */
  5065. #define FDCANCCU_CSTAT_OCPC FDCANCCU_CSTAT_OCPC_Msk /*!<Oscillator Clock Period Counter */
  5066. #define FDCANCCU_CSTAT_TQC_Pos (18U)
  5067. #define FDCANCCU_CSTAT_TQC_Msk (0x7FFUL << FDCANCCU_CSTAT_TQC_Pos) /*!< 0x1FFC0000 */
  5068. #define FDCANCCU_CSTAT_TQC FDCANCCU_CSTAT_TQC_Msk /*!<Time Quanta Counter */
  5069. #define FDCANCCU_CSTAT_CALS_Pos (30U)
  5070. #define FDCANCCU_CSTAT_CALS_Msk (0x3UL << FDCANCCU_CSTAT_CALS_Pos) /*!< 0xC0000000 */
  5071. #define FDCANCCU_CSTAT_CALS FDCANCCU_CSTAT_CALS_Msk /*!<Calibration State */
  5072. /****************** Bit definition for FDCANCCU_CWD register ******************/
  5073. #define FDCANCCU_CWD_WDC_Pos (0U)
  5074. #define FDCANCCU_CWD_WDC_Msk (0xFFFFUL << FDCANCCU_CWD_WDC_Pos) /*!< 0x0000FFFF */
  5075. #define FDCANCCU_CWD_WDC FDCANCCU_CWD_WDC_Msk /*!<Watchdog Configuration */
  5076. #define FDCANCCU_CWD_WDV_Pos (16U)
  5077. #define FDCANCCU_CWD_WDV_Msk (0xFFFFUL << FDCANCCU_CWD_WDV_Pos) /*!< 0xFFFF0000 */
  5078. #define FDCANCCU_CWD_WDV FDCANCCU_CWD_WDV_Msk /*!<Watchdog Value */
  5079. /****************** Bit definition for FDCANCCU_IR register *******************/
  5080. #define FDCANCCU_IR_CWE_Pos (0U)
  5081. #define FDCANCCU_IR_CWE_Msk (0x1UL << FDCANCCU_IR_CWE_Pos) /*!< 0x00000001 */
  5082. #define FDCANCCU_IR_CWE FDCANCCU_IR_CWE_Msk /*!<Calibration Watchdog Event */
  5083. #define FDCANCCU_IR_CSC_Pos (1U)
  5084. #define FDCANCCU_IR_CSC_Msk (0x1UL << FDCANCCU_IR_CSC_Pos) /*!< 0x00000002 */
  5085. #define FDCANCCU_IR_CSC FDCANCCU_IR_CSC_Msk /*!<Calibration State Changed */
  5086. /****************** Bit definition for FDCANCCU_IE register *******************/
  5087. #define FDCANCCU_IE_CWEE_Pos (0U)
  5088. #define FDCANCCU_IE_CWEE_Msk (0x1UL << FDCANCCU_IE_CWEE_Pos) /*!< 0x00000001 */
  5089. #define FDCANCCU_IE_CWEE FDCANCCU_IE_CWEE_Msk /*!<Calibration Watchdog Event Enable */
  5090. #define FDCANCCU_IE_CSCE_Pos (1U)
  5091. #define FDCANCCU_IE_CSCE_Msk (0x1UL << FDCANCCU_IE_CSCE_Pos) /*!< 0x00000002 */
  5092. #define FDCANCCU_IE_CSCE FDCANCCU_IE_CSCE_Msk /*!<Calibration State Changed Enable */
  5093. /******************************************************************************/
  5094. /* */
  5095. /* HDMI-CEC (CEC) */
  5096. /* */
  5097. /******************************************************************************/
  5098. /******************* Bit definition for CEC_CR register *********************/
  5099. #define CEC_CR_CECEN_Pos (0U)
  5100. #define CEC_CR_CECEN_Msk (0x1UL << CEC_CR_CECEN_Pos) /*!< 0x00000001 */
  5101. #define CEC_CR_CECEN CEC_CR_CECEN_Msk /*!< CEC Enable */
  5102. #define CEC_CR_TXSOM_Pos (1U)
  5103. #define CEC_CR_TXSOM_Msk (0x1UL << CEC_CR_TXSOM_Pos) /*!< 0x00000002 */
  5104. #define CEC_CR_TXSOM CEC_CR_TXSOM_Msk /*!< CEC Tx Start Of Message */
  5105. #define CEC_CR_TXEOM_Pos (2U)
  5106. #define CEC_CR_TXEOM_Msk (0x1UL << CEC_CR_TXEOM_Pos) /*!< 0x00000004 */
  5107. #define CEC_CR_TXEOM CEC_CR_TXEOM_Msk /*!< CEC Tx End Of Message */
  5108. /******************* Bit definition for CEC_CFGR register *******************/
  5109. #define CEC_CFGR_SFT_Pos (0U)
  5110. #define CEC_CFGR_SFT_Msk (0x7UL << CEC_CFGR_SFT_Pos) /*!< 0x00000007 */
  5111. #define CEC_CFGR_SFT CEC_CFGR_SFT_Msk /*!< CEC Signal Free Time */
  5112. #define CEC_CFGR_RXTOL_Pos (3U)
  5113. #define CEC_CFGR_RXTOL_Msk (0x1UL << CEC_CFGR_RXTOL_Pos) /*!< 0x00000008 */
  5114. #define CEC_CFGR_RXTOL CEC_CFGR_RXTOL_Msk /*!< CEC Tolerance */
  5115. #define CEC_CFGR_BRESTP_Pos (4U)
  5116. #define CEC_CFGR_BRESTP_Msk (0x1UL << CEC_CFGR_BRESTP_Pos) /*!< 0x00000010 */
  5117. #define CEC_CFGR_BRESTP CEC_CFGR_BRESTP_Msk /*!< CEC Rx Stop */
  5118. #define CEC_CFGR_BREGEN_Pos (5U)
  5119. #define CEC_CFGR_BREGEN_Msk (0x1UL << CEC_CFGR_BREGEN_Pos) /*!< 0x00000020 */
  5120. #define CEC_CFGR_BREGEN CEC_CFGR_BREGEN_Msk /*!< CEC Bit Rising Error generation */
  5121. #define CEC_CFGR_LBPEGEN_Pos (6U)
  5122. #define CEC_CFGR_LBPEGEN_Msk (0x1UL << CEC_CFGR_LBPEGEN_Pos) /*!< 0x00000040 */
  5123. #define CEC_CFGR_LBPEGEN CEC_CFGR_LBPEGEN_Msk /*!< CEC Long Bit Period Error generation */
  5124. #define CEC_CFGR_SFTOPT_Pos (8U)
  5125. #define CEC_CFGR_SFTOPT_Msk (0x1UL << CEC_CFGR_SFTOPT_Pos) /*!< 0x00000100 */
  5126. #define CEC_CFGR_SFTOPT CEC_CFGR_SFTOPT_Msk /*!< CEC Signal Free Time optional */
  5127. #define CEC_CFGR_BRDNOGEN_Pos (7U)
  5128. #define CEC_CFGR_BRDNOGEN_Msk (0x1UL << CEC_CFGR_BRDNOGEN_Pos) /*!< 0x00000080 */
  5129. #define CEC_CFGR_BRDNOGEN CEC_CFGR_BRDNOGEN_Msk /*!< CEC Broadcast No error generation */
  5130. #define CEC_CFGR_OAR_Pos (16U)
  5131. #define CEC_CFGR_OAR_Msk (0x7FFFUL << CEC_CFGR_OAR_Pos) /*!< 0x7FFF0000 */
  5132. #define CEC_CFGR_OAR CEC_CFGR_OAR_Msk /*!< CEC Own Address */
  5133. #define CEC_CFGR_LSTN_Pos (31U)
  5134. #define CEC_CFGR_LSTN_Msk (0x1UL << CEC_CFGR_LSTN_Pos) /*!< 0x80000000 */
  5135. #define CEC_CFGR_LSTN CEC_CFGR_LSTN_Msk /*!< CEC Listen mode */
  5136. /******************* Bit definition for CEC_TXDR register *******************/
  5137. #define CEC_TXDR_TXD_Pos (0U)
  5138. #define CEC_TXDR_TXD_Msk (0xFFUL << CEC_TXDR_TXD_Pos) /*!< 0x000000FF */
  5139. #define CEC_TXDR_TXD CEC_TXDR_TXD_Msk /*!< CEC Tx Data */
  5140. /******************* Bit definition for CEC_RXDR register *******************/
  5141. #define CEC_RXDR_RXD_Pos (0U)
  5142. #define CEC_RXDR_RXD_Msk (0xFFUL << CEC_RXDR_RXD_Pos) /*!< 0x000000FF */
  5143. #define CEC_RXDR_RXD CEC_RXDR_RXD_Msk /*!< CEC Rx Data */
  5144. /******************* Bit definition for CEC_ISR register ********************/
  5145. #define CEC_ISR_RXBR_Pos (0U)
  5146. #define CEC_ISR_RXBR_Msk (0x1UL << CEC_ISR_RXBR_Pos) /*!< 0x00000001 */
  5147. #define CEC_ISR_RXBR CEC_ISR_RXBR_Msk /*!< CEC Rx-Byte Received */
  5148. #define CEC_ISR_RXEND_Pos (1U)
  5149. #define CEC_ISR_RXEND_Msk (0x1UL << CEC_ISR_RXEND_Pos) /*!< 0x00000002 */
  5150. #define CEC_ISR_RXEND CEC_ISR_RXEND_Msk /*!< CEC End Of Reception */
  5151. #define CEC_ISR_RXOVR_Pos (2U)
  5152. #define CEC_ISR_RXOVR_Msk (0x1UL << CEC_ISR_RXOVR_Pos) /*!< 0x00000004 */
  5153. #define CEC_ISR_RXOVR CEC_ISR_RXOVR_Msk /*!< CEC Rx-Overrun */
  5154. #define CEC_ISR_BRE_Pos (3U)
  5155. #define CEC_ISR_BRE_Msk (0x1UL << CEC_ISR_BRE_Pos) /*!< 0x00000008 */
  5156. #define CEC_ISR_BRE CEC_ISR_BRE_Msk /*!< CEC Rx Bit Rising Error */
  5157. #define CEC_ISR_SBPE_Pos (4U)
  5158. #define CEC_ISR_SBPE_Msk (0x1UL << CEC_ISR_SBPE_Pos) /*!< 0x00000010 */
  5159. #define CEC_ISR_SBPE CEC_ISR_SBPE_Msk /*!< CEC Rx Short Bit period Error */
  5160. #define CEC_ISR_LBPE_Pos (5U)
  5161. #define CEC_ISR_LBPE_Msk (0x1UL << CEC_ISR_LBPE_Pos) /*!< 0x00000020 */
  5162. #define CEC_ISR_LBPE CEC_ISR_LBPE_Msk /*!< CEC Rx Long Bit period Error */
  5163. #define CEC_ISR_RXACKE_Pos (6U)
  5164. #define CEC_ISR_RXACKE_Msk (0x1UL << CEC_ISR_RXACKE_Pos) /*!< 0x00000040 */
  5165. #define CEC_ISR_RXACKE CEC_ISR_RXACKE_Msk /*!< CEC Rx Missing Acknowledge */
  5166. #define CEC_ISR_ARBLST_Pos (7U)
  5167. #define CEC_ISR_ARBLST_Msk (0x1UL << CEC_ISR_ARBLST_Pos) /*!< 0x00000080 */
  5168. #define CEC_ISR_ARBLST CEC_ISR_ARBLST_Msk /*!< CEC Arbitration Lost */
  5169. #define CEC_ISR_TXBR_Pos (8U)
  5170. #define CEC_ISR_TXBR_Msk (0x1UL << CEC_ISR_TXBR_Pos) /*!< 0x00000100 */
  5171. #define CEC_ISR_TXBR CEC_ISR_TXBR_Msk /*!< CEC Tx Byte Request */
  5172. #define CEC_ISR_TXEND_Pos (9U)
  5173. #define CEC_ISR_TXEND_Msk (0x1UL << CEC_ISR_TXEND_Pos) /*!< 0x00000200 */
  5174. #define CEC_ISR_TXEND CEC_ISR_TXEND_Msk /*!< CEC End of Transmission */
  5175. #define CEC_ISR_TXUDR_Pos (10U)
  5176. #define CEC_ISR_TXUDR_Msk (0x1UL << CEC_ISR_TXUDR_Pos) /*!< 0x00000400 */
  5177. #define CEC_ISR_TXUDR CEC_ISR_TXUDR_Msk /*!< CEC Tx-Buffer Underrun */
  5178. #define CEC_ISR_TXERR_Pos (11U)
  5179. #define CEC_ISR_TXERR_Msk (0x1UL << CEC_ISR_TXERR_Pos) /*!< 0x00000800 */
  5180. #define CEC_ISR_TXERR CEC_ISR_TXERR_Msk /*!< CEC Tx-Error */
  5181. #define CEC_ISR_TXACKE_Pos (12U)
  5182. #define CEC_ISR_TXACKE_Msk (0x1UL << CEC_ISR_TXACKE_Pos) /*!< 0x00001000 */
  5183. #define CEC_ISR_TXACKE CEC_ISR_TXACKE_Msk /*!< CEC Tx Missing Acknowledge */
  5184. /******************* Bit definition for CEC_IER register ********************/
  5185. #define CEC_IER_RXBRIE_Pos (0U)
  5186. #define CEC_IER_RXBRIE_Msk (0x1UL << CEC_IER_RXBRIE_Pos) /*!< 0x00000001 */
  5187. #define CEC_IER_RXBRIE CEC_IER_RXBRIE_Msk /*!< CEC Rx-Byte Received IT Enable */
  5188. #define CEC_IER_RXENDIE_Pos (1U)
  5189. #define CEC_IER_RXENDIE_Msk (0x1UL << CEC_IER_RXENDIE_Pos) /*!< 0x00000002 */
  5190. #define CEC_IER_RXENDIE CEC_IER_RXENDIE_Msk /*!< CEC End Of Reception IT Enable */
  5191. #define CEC_IER_RXOVRIE_Pos (2U)
  5192. #define CEC_IER_RXOVRIE_Msk (0x1UL << CEC_IER_RXOVRIE_Pos) /*!< 0x00000004 */
  5193. #define CEC_IER_RXOVRIE CEC_IER_RXOVRIE_Msk /*!< CEC Rx-Overrun IT Enable */
  5194. #define CEC_IER_BREIE_Pos (3U)
  5195. #define CEC_IER_BREIE_Msk (0x1UL << CEC_IER_BREIE_Pos) /*!< 0x00000008 */
  5196. #define CEC_IER_BREIE CEC_IER_BREIE_Msk /*!< CEC Rx Bit Rising Error IT Enable */
  5197. #define CEC_IER_SBPEIE_Pos (4U)
  5198. #define CEC_IER_SBPEIE_Msk (0x1UL << CEC_IER_SBPEIE_Pos) /*!< 0x00000010 */
  5199. #define CEC_IER_SBPEIE CEC_IER_SBPEIE_Msk /*!< CEC Rx Short Bit period Error IT Enable */
  5200. #define CEC_IER_LBPEIE_Pos (5U)
  5201. #define CEC_IER_LBPEIE_Msk (0x1UL << CEC_IER_LBPEIE_Pos) /*!< 0x00000020 */
  5202. #define CEC_IER_LBPEIE CEC_IER_LBPEIE_Msk /*!< CEC Rx Long Bit period Error IT Enable */
  5203. #define CEC_IER_RXACKEIE_Pos (6U)
  5204. #define CEC_IER_RXACKEIE_Msk (0x1UL << CEC_IER_RXACKEIE_Pos) /*!< 0x00000040 */
  5205. #define CEC_IER_RXACKEIE CEC_IER_RXACKEIE_Msk /*!< CEC Rx Missing Acknowledge IT Enable */
  5206. #define CEC_IER_ARBLSTIE_Pos (7U)
  5207. #define CEC_IER_ARBLSTIE_Msk (0x1UL << CEC_IER_ARBLSTIE_Pos) /*!< 0x00000080 */
  5208. #define CEC_IER_ARBLSTIE CEC_IER_ARBLSTIE_Msk /*!< CEC Arbitration Lost IT Enable */
  5209. #define CEC_IER_TXBRIE_Pos (8U)
  5210. #define CEC_IER_TXBRIE_Msk (0x1UL << CEC_IER_TXBRIE_Pos) /*!< 0x00000100 */
  5211. #define CEC_IER_TXBRIE CEC_IER_TXBRIE_Msk /*!< CEC Tx Byte Request IT Enable */
  5212. #define CEC_IER_TXENDIE_Pos (9U)
  5213. #define CEC_IER_TXENDIE_Msk (0x1UL << CEC_IER_TXENDIE_Pos) /*!< 0x00000200 */
  5214. #define CEC_IER_TXENDIE CEC_IER_TXENDIE_Msk /*!< CEC End of Transmission IT Enable */
  5215. #define CEC_IER_TXUDRIE_Pos (10U)
  5216. #define CEC_IER_TXUDRIE_Msk (0x1UL << CEC_IER_TXUDRIE_Pos) /*!< 0x00000400 */
  5217. #define CEC_IER_TXUDRIE CEC_IER_TXUDRIE_Msk /*!< CEC Tx-Buffer Underrun IT Enable */
  5218. #define CEC_IER_TXERRIE_Pos (11U)
  5219. #define CEC_IER_TXERRIE_Msk (0x1UL << CEC_IER_TXERRIE_Pos) /*!< 0x00000800 */
  5220. #define CEC_IER_TXERRIE CEC_IER_TXERRIE_Msk /*!< CEC Tx-Error IT Enable */
  5221. #define CEC_IER_TXACKEIE_Pos (12U)
  5222. #define CEC_IER_TXACKEIE_Msk (0x1UL << CEC_IER_TXACKEIE_Pos) /*!< 0x00001000 */
  5223. #define CEC_IER_TXACKEIE CEC_IER_TXACKEIE_Msk /*!< CEC Tx Missing Acknowledge IT Enable */
  5224. /******************************************************************************/
  5225. /* */
  5226. /* CORDIC calculation unit */
  5227. /* */
  5228. /******************************************************************************/
  5229. /******************* Bit definition for CORDIC_CSR register *****************/
  5230. #define CORDIC_CSR_FUNC_Pos (0U)
  5231. #define CORDIC_CSR_FUNC_Msk (0xFUL << CORDIC_CSR_FUNC_Pos) /*!< 0x0000000F */
  5232. #define CORDIC_CSR_FUNC CORDIC_CSR_FUNC_Msk /*!< Function */
  5233. #define CORDIC_CSR_FUNC_0 (0x1UL << CORDIC_CSR_FUNC_Pos) /*!< 0x00000001 */
  5234. #define CORDIC_CSR_FUNC_1 (0x2UL << CORDIC_CSR_FUNC_Pos) /*!< 0x00000002 */
  5235. #define CORDIC_CSR_FUNC_2 (0x4UL << CORDIC_CSR_FUNC_Pos) /*!< 0x00000004 */
  5236. #define CORDIC_CSR_FUNC_3 (0x8UL << CORDIC_CSR_FUNC_Pos) /*!< 0x00000008 */
  5237. #define CORDIC_CSR_PRECISION_Pos (4U)
  5238. #define CORDIC_CSR_PRECISION_Msk (0xFUL << CORDIC_CSR_PRECISION_Pos) /*!< 0x000000F0 */
  5239. #define CORDIC_CSR_PRECISION CORDIC_CSR_PRECISION_Msk /*!< Precision */
  5240. #define CORDIC_CSR_PRECISION_0 (0x1UL << CORDIC_CSR_PRECISION_Pos) /*!< 0x00000010 */
  5241. #define CORDIC_CSR_PRECISION_1 (0x2UL << CORDIC_CSR_PRECISION_Pos) /*!< 0x00000020 */
  5242. #define CORDIC_CSR_PRECISION_2 (0x4UL << CORDIC_CSR_PRECISION_Pos) /*!< 0x00000040 */
  5243. #define CORDIC_CSR_PRECISION_3 (0x8UL << CORDIC_CSR_PRECISION_Pos) /*!< 0x00000080 */
  5244. #define CORDIC_CSR_SCALE_Pos (8U)
  5245. #define CORDIC_CSR_SCALE_Msk (0x7UL << CORDIC_CSR_SCALE_Pos) /*!< 0x00000700 */
  5246. #define CORDIC_CSR_SCALE CORDIC_CSR_SCALE_Msk /*!< Scaling factor */
  5247. #define CORDIC_CSR_SCALE_0 (0x1UL << CORDIC_CSR_SCALE_Pos) /*!< 0x00000100 */
  5248. #define CORDIC_CSR_SCALE_1 (0x2UL << CORDIC_CSR_SCALE_Pos) /*!< 0x00000200 */
  5249. #define CORDIC_CSR_SCALE_2 (0x4UL << CORDIC_CSR_SCALE_Pos) /*!< 0x00000400 */
  5250. #define CORDIC_CSR_IEN_Pos (16U)
  5251. #define CORDIC_CSR_IEN_Msk (0x1UL << CORDIC_CSR_IEN_Pos) /*!< 0x00010000 */
  5252. #define CORDIC_CSR_IEN CORDIC_CSR_IEN_Msk /*!< Interrupt Enable */
  5253. #define CORDIC_CSR_DMAREN_Pos (17U)
  5254. #define CORDIC_CSR_DMAREN_Msk (0x1UL << CORDIC_CSR_DMAREN_Pos) /*!< 0x00020000 */
  5255. #define CORDIC_CSR_DMAREN CORDIC_CSR_DMAREN_Msk /*!< DMA Read channel Enable */
  5256. #define CORDIC_CSR_DMAWEN_Pos (18U)
  5257. #define CORDIC_CSR_DMAWEN_Msk (0x1UL << CORDIC_CSR_DMAWEN_Pos) /*!< 0x00040000 */
  5258. #define CORDIC_CSR_DMAWEN CORDIC_CSR_DMAWEN_Msk /*!< DMA Write channel Enable */
  5259. #define CORDIC_CSR_NRES_Pos (19U)
  5260. #define CORDIC_CSR_NRES_Msk (0x1UL << CORDIC_CSR_NRES_Pos) /*!< 0x00080000 */
  5261. #define CORDIC_CSR_NRES CORDIC_CSR_NRES_Msk /*!< Number of results in WDATA register */
  5262. #define CORDIC_CSR_NARGS_Pos (20U)
  5263. #define CORDIC_CSR_NARGS_Msk (0x1UL << CORDIC_CSR_NARGS_Pos) /*!< 0x00100000 */
  5264. #define CORDIC_CSR_NARGS CORDIC_CSR_NARGS_Msk /*!< Number of arguments in RDATA register */
  5265. #define CORDIC_CSR_RESSIZE_Pos (21U)
  5266. #define CORDIC_CSR_RESSIZE_Msk (0x1UL << CORDIC_CSR_RESSIZE_Pos) /*!< 0x00200000 */
  5267. #define CORDIC_CSR_RESSIZE CORDIC_CSR_RESSIZE_Msk /*!< Width of output data */
  5268. #define CORDIC_CSR_ARGSIZE_Pos (22U)
  5269. #define CORDIC_CSR_ARGSIZE_Msk (0x1UL << CORDIC_CSR_ARGSIZE_Pos) /*!< 0x00400000 */
  5270. #define CORDIC_CSR_ARGSIZE CORDIC_CSR_ARGSIZE_Msk /*!< Width of input data */
  5271. #define CORDIC_CSR_RRDY_Pos (31U)
  5272. #define CORDIC_CSR_RRDY_Msk (0x1UL << CORDIC_CSR_RRDY_Pos) /*!< 0x80000000 */
  5273. #define CORDIC_CSR_RRDY CORDIC_CSR_RRDY_Msk /*!< Result Ready Flag */
  5274. /******************* Bit definition for CORDIC_WDATA register ***************/
  5275. #define CORDIC_WDATA_ARG_Pos (0U)
  5276. #define CORDIC_WDATA_ARG_Msk (0xFFFFFFFFUL << CORDIC_WDATA_ARG_Pos) /*!< 0xFFFFFFFF */
  5277. #define CORDIC_WDATA_ARG CORDIC_WDATA_ARG_Msk /*!< Input Argument */
  5278. /******************* Bit definition for CORDIC_RDATA register ***************/
  5279. #define CORDIC_RDATA_RES_Pos (0U)
  5280. #define CORDIC_RDATA_RES_Msk (0xFFFFFFFFUL << CORDIC_RDATA_RES_Pos) /*!< 0xFFFFFFFF */
  5281. #define CORDIC_RDATA_RES CORDIC_RDATA_RES_Msk /*!< Output Result */
  5282. /******************************************************************************/
  5283. /* */
  5284. /* CRC calculation unit */
  5285. /* */
  5286. /******************************************************************************/
  5287. /******************* Bit definition for CRC_DR register *********************/
  5288. #define CRC_DR_DR_Pos (0U)
  5289. #define CRC_DR_DR_Msk (0xFFFFFFFFUL << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  5290. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  5291. /******************* Bit definition for CRC_IDR register ********************/
  5292. #define CRC_IDR_IDR_Pos (0U)
  5293. #define CRC_IDR_IDR_Msk (0xFFFFFFFFUL << CRC_IDR_IDR_Pos) /*!< 0xFFFFFFFF */
  5294. #define CRC_IDR_IDR CRC_IDR_IDR_Msk /*!< General-purpose 32-bit data register bits */
  5295. /******************** Bit definition for CRC_CR register ********************/
  5296. #define CRC_CR_RESET_Pos (0U)
  5297. #define CRC_CR_RESET_Msk (0x1UL << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  5298. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  5299. #define CRC_CR_POLYSIZE_Pos (3U)
  5300. #define CRC_CR_POLYSIZE_Msk (0x3UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  5301. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  5302. #define CRC_CR_POLYSIZE_0 (0x1UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  5303. #define CRC_CR_POLYSIZE_1 (0x2UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  5304. #define CRC_CR_REV_IN_Pos (5U)
  5305. #define CRC_CR_REV_IN_Msk (0x3UL << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  5306. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  5307. #define CRC_CR_REV_IN_0 (0x1UL << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  5308. #define CRC_CR_REV_IN_1 (0x2UL << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  5309. #define CRC_CR_REV_OUT_Pos (7U)
  5310. #define CRC_CR_REV_OUT_Msk (0x1UL << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  5311. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  5312. /******************* Bit definition for CRC_INIT register *******************/
  5313. #define CRC_INIT_INIT_Pos (0U)
  5314. #define CRC_INIT_INIT_Msk (0xFFFFFFFFUL << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  5315. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  5316. /******************* Bit definition for CRC_POL register ********************/
  5317. #define CRC_POL_POL_Pos (0U)
  5318. #define CRC_POL_POL_Msk (0xFFFFFFFFUL << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  5319. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  5320. /******************************************************************************/
  5321. /* */
  5322. /* CRS Clock Recovery System */
  5323. /******************************************************************************/
  5324. /******************* Bit definition for CRS_CR register *********************/
  5325. #define CRS_CR_SYNCOKIE_Pos (0U)
  5326. #define CRS_CR_SYNCOKIE_Msk (0x1UL << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */
  5327. #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /*!< SYNC event OK interrupt enable */
  5328. #define CRS_CR_SYNCWARNIE_Pos (1U)
  5329. #define CRS_CR_SYNCWARNIE_Msk (0x1UL << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */
  5330. #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /*!< SYNC warning interrupt enable */
  5331. #define CRS_CR_ERRIE_Pos (2U)
  5332. #define CRS_CR_ERRIE_Msk (0x1UL << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */
  5333. #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /*!< SYNC error or trimming error interrupt enable */
  5334. #define CRS_CR_ESYNCIE_Pos (3U)
  5335. #define CRS_CR_ESYNCIE_Msk (0x1UL << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */
  5336. #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /*!< Expected SYNC interrupt enable */
  5337. #define CRS_CR_CEN_Pos (5U)
  5338. #define CRS_CR_CEN_Msk (0x1UL << CRS_CR_CEN_Pos) /*!< 0x00000020 */
  5339. #define CRS_CR_CEN CRS_CR_CEN_Msk /*!< Frequency error counter enable */
  5340. #define CRS_CR_AUTOTRIMEN_Pos (6U)
  5341. #define CRS_CR_AUTOTRIMEN_Msk (0x1UL << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */
  5342. #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /*!< Automatic trimming enable */
  5343. #define CRS_CR_SWSYNC_Pos (7U)
  5344. #define CRS_CR_SWSYNC_Msk (0x1UL << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */
  5345. #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /*!< Generate software SYNC event */
  5346. #define CRS_CR_TRIM_Pos (8U)
  5347. #define CRS_CR_TRIM_Msk (0x3FUL << CRS_CR_TRIM_Pos) /*!< 0x00003F00 */
  5348. #define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< HSI48 oscillator smooth trimming */
  5349. /******************* Bit definition for CRS_CFGR register *********************/
  5350. #define CRS_CFGR_RELOAD_Pos (0U)
  5351. #define CRS_CFGR_RELOAD_Msk (0xFFFFUL << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */
  5352. #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /*!< Counter reload value */
  5353. #define CRS_CFGR_FELIM_Pos (16U)
  5354. #define CRS_CFGR_FELIM_Msk (0xFFUL << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */
  5355. #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /*!< Frequency error limit */
  5356. #define CRS_CFGR_SYNCDIV_Pos (24U)
  5357. #define CRS_CFGR_SYNCDIV_Msk (0x7UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */
  5358. #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /*!< SYNC divider */
  5359. #define CRS_CFGR_SYNCDIV_0 (0x1UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */
  5360. #define CRS_CFGR_SYNCDIV_1 (0x2UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */
  5361. #define CRS_CFGR_SYNCDIV_2 (0x4UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */
  5362. #define CRS_CFGR_SYNCSRC_Pos (28U)
  5363. #define CRS_CFGR_SYNCSRC_Msk (0x3UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */
  5364. #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /*!< SYNC signal source selection */
  5365. #define CRS_CFGR_SYNCSRC_0 (0x1UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */
  5366. #define CRS_CFGR_SYNCSRC_1 (0x2UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */
  5367. #define CRS_CFGR_SYNCPOL_Pos (31U)
  5368. #define CRS_CFGR_SYNCPOL_Msk (0x1UL << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */
  5369. #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /*!< SYNC polarity selection */
  5370. /******************* Bit definition for CRS_ISR register *********************/
  5371. #define CRS_ISR_SYNCOKF_Pos (0U)
  5372. #define CRS_ISR_SYNCOKF_Msk (0x1UL << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */
  5373. #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /*!< SYNC event OK flag */
  5374. #define CRS_ISR_SYNCWARNF_Pos (1U)
  5375. #define CRS_ISR_SYNCWARNF_Msk (0x1UL << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */
  5376. #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /*!< SYNC warning flag */
  5377. #define CRS_ISR_ERRF_Pos (2U)
  5378. #define CRS_ISR_ERRF_Msk (0x1UL << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */
  5379. #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /*!< Error flag */
  5380. #define CRS_ISR_ESYNCF_Pos (3U)
  5381. #define CRS_ISR_ESYNCF_Msk (0x1UL << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */
  5382. #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /*!< Expected SYNC flag */
  5383. #define CRS_ISR_SYNCERR_Pos (8U)
  5384. #define CRS_ISR_SYNCERR_Msk (0x1UL << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */
  5385. #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /*!< SYNC error */
  5386. #define CRS_ISR_SYNCMISS_Pos (9U)
  5387. #define CRS_ISR_SYNCMISS_Msk (0x1UL << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */
  5388. #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /*!< SYNC missed */
  5389. #define CRS_ISR_TRIMOVF_Pos (10U)
  5390. #define CRS_ISR_TRIMOVF_Msk (0x1UL << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */
  5391. #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /*!< Trimming overflow or underflow */
  5392. #define CRS_ISR_FEDIR_Pos (15U)
  5393. #define CRS_ISR_FEDIR_Msk (0x1UL << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */
  5394. #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /*!< Frequency error direction */
  5395. #define CRS_ISR_FECAP_Pos (16U)
  5396. #define CRS_ISR_FECAP_Msk (0xFFFFUL << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */
  5397. #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /*!< Frequency error capture */
  5398. /******************* Bit definition for CRS_ICR register *********************/
  5399. #define CRS_ICR_SYNCOKC_Pos (0U)
  5400. #define CRS_ICR_SYNCOKC_Msk (0x1UL << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */
  5401. #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /*!< SYNC event OK clear flag */
  5402. #define CRS_ICR_SYNCWARNC_Pos (1U)
  5403. #define CRS_ICR_SYNCWARNC_Msk (0x1UL << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */
  5404. #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /*!< SYNC warning clear flag */
  5405. #define CRS_ICR_ERRC_Pos (2U)
  5406. #define CRS_ICR_ERRC_Msk (0x1UL << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */
  5407. #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /*!< Error clear flag */
  5408. #define CRS_ICR_ESYNCC_Pos (3U)
  5409. #define CRS_ICR_ESYNCC_Msk (0x1UL << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */
  5410. #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /*!< Expected SYNC clear flag */
  5411. /******************************************************************************/
  5412. /* */
  5413. /* Digital to Analog Converter */
  5414. /* */
  5415. /******************************************************************************/
  5416. /******************** Bit definition for DAC_CR register ********************/
  5417. #define DAC_CR_EN1_Pos (0U)
  5418. #define DAC_CR_EN1_Msk (0x1UL << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  5419. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!<DAC channel1 enable */
  5420. #define DAC_CR_TEN1_Pos (1U)
  5421. #define DAC_CR_TEN1_Msk (0x1UL << DAC_CR_TEN1_Pos) /*!< 0x00000002 */
  5422. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!<DAC channel1 Trigger enable */
  5423. #define DAC_CR_TSEL1_Pos (2U)
  5424. #define DAC_CR_TSEL1_Msk (0xFUL << DAC_CR_TSEL1_Pos) /*!< 0x0000003C */
  5425. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!<TSEL1[2:0] (DAC channel1 Trigger selection) */
  5426. #define DAC_CR_TSEL1_0 (0x1UL << DAC_CR_TSEL1_Pos) /*!< 0x00000004 */
  5427. #define DAC_CR_TSEL1_1 (0x2UL << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  5428. #define DAC_CR_TSEL1_2 (0x4UL << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  5429. #define DAC_CR_TSEL1_3 (0x8UL << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  5430. #define DAC_CR_WAVE1_Pos (6U)
  5431. #define DAC_CR_WAVE1_Msk (0x3UL << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  5432. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  5433. #define DAC_CR_WAVE1_0 (0x1UL << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  5434. #define DAC_CR_WAVE1_1 (0x2UL << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  5435. #define DAC_CR_MAMP1_Pos (8U)
  5436. #define DAC_CR_MAMP1_Msk (0xFUL << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  5437. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  5438. #define DAC_CR_MAMP1_0 (0x1UL << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  5439. #define DAC_CR_MAMP1_1 (0x2UL << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  5440. #define DAC_CR_MAMP1_2 (0x4UL << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  5441. #define DAC_CR_MAMP1_3 (0x8UL << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  5442. #define DAC_CR_DMAEN1_Pos (12U)
  5443. #define DAC_CR_DMAEN1_Msk (0x1UL << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  5444. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!<DAC channel1 DMA enable */
  5445. #define DAC_CR_DMAUDRIE1_Pos (13U)
  5446. #define DAC_CR_DMAUDRIE1_Msk (0x1UL << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  5447. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!<DAC channel 1 DMA underrun interrupt enable >*/
  5448. #define DAC_CR_CEN1_Pos (14U)
  5449. #define DAC_CR_CEN1_Msk (0x1UL << DAC_CR_CEN1_Pos) /*!< 0x00004000 */
  5450. #define DAC_CR_CEN1 DAC_CR_CEN1_Msk /*!<DAC channel 1 calibration enable >*/
  5451. #define DAC_CR_EN2_Pos (16U)
  5452. #define DAC_CR_EN2_Msk (0x1UL << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  5453. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!<DAC channel2 enable */
  5454. #define DAC_CR_TEN2_Pos (17U)
  5455. #define DAC_CR_TEN2_Msk (0x1UL << DAC_CR_TEN2_Pos) /*!< 0x00020000 */
  5456. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!<DAC channel2 Trigger enable */
  5457. #define DAC_CR_TSEL2_Pos (18U)
  5458. #define DAC_CR_TSEL2_Msk (0xFUL << DAC_CR_TSEL2_Pos) /*!< 0x003C0000 */
  5459. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!<TSEL2[2:0] (DAC channel2 Trigger selection) */
  5460. #define DAC_CR_TSEL2_0 (0x1UL << DAC_CR_TSEL2_Pos) /*!< 0x00040000 */
  5461. #define DAC_CR_TSEL2_1 (0x2UL << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  5462. #define DAC_CR_TSEL2_2 (0x4UL << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  5463. #define DAC_CR_TSEL2_3 (0x8UL << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  5464. #define DAC_CR_WAVE2_Pos (22U)
  5465. #define DAC_CR_WAVE2_Msk (0x3UL << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  5466. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!<WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  5467. #define DAC_CR_WAVE2_0 (0x1UL << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  5468. #define DAC_CR_WAVE2_1 (0x2UL << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  5469. #define DAC_CR_MAMP2_Pos (24U)
  5470. #define DAC_CR_MAMP2_Msk (0xFUL << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  5471. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!<MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  5472. #define DAC_CR_MAMP2_0 (0x1UL << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  5473. #define DAC_CR_MAMP2_1 (0x2UL << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  5474. #define DAC_CR_MAMP2_2 (0x4UL << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  5475. #define DAC_CR_MAMP2_3 (0x8UL << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  5476. #define DAC_CR_DMAEN2_Pos (28U)
  5477. #define DAC_CR_DMAEN2_Msk (0x1UL << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  5478. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!<DAC channel2 DMA enabled */
  5479. #define DAC_CR_DMAUDRIE2_Pos (29U)
  5480. #define DAC_CR_DMAUDRIE2_Msk (0x1UL << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  5481. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!<DAC channel2 DMA underrun interrupt enable >*/
  5482. #define DAC_CR_CEN2_Pos (30U)
  5483. #define DAC_CR_CEN2_Msk (0x1UL << DAC_CR_CEN2_Pos) /*!< 0x40000000 */
  5484. #define DAC_CR_CEN2 DAC_CR_CEN2_Msk /*!<DAC channel2 calibration enable >*/
  5485. /***************** Bit definition for DAC_SWTRIGR register ******************/
  5486. #define DAC_SWTRIGR_SWTRIG1_Pos (0U)
  5487. #define DAC_SWTRIGR_SWTRIG1_Msk (0x1UL << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */
  5488. #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!<DAC channel1 software trigger */
  5489. #define DAC_SWTRIGR_SWTRIG2_Pos (1U)
  5490. #define DAC_SWTRIGR_SWTRIG2_Msk (0x1UL << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */
  5491. #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!<DAC channel2 software trigger */
  5492. /***************** Bit definition for DAC_DHR12R1 register ******************/
  5493. #define DAC_DHR12R1_DACC1DHR_Pos (0U)
  5494. #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFUL << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */
  5495. #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  5496. /***************** Bit definition for DAC_DHR12L1 register ******************/
  5497. #define DAC_DHR12L1_DACC1DHR_Pos (4U)
  5498. #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFUL << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5499. #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  5500. /****************** Bit definition for DAC_DHR8R1 register ******************/
  5501. #define DAC_DHR8R1_DACC1DHR_Pos (0U)
  5502. #define DAC_DHR8R1_DACC1DHR_Msk (0xFFUL << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */
  5503. #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */
  5504. /***************** Bit definition for DAC_DHR12R2 register ******************/
  5505. #define DAC_DHR12R2_DACC2DHR_Pos (0U)
  5506. #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFUL << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */
  5507. #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  5508. /***************** Bit definition for DAC_DHR12L2 register ******************/
  5509. #define DAC_DHR12L2_DACC2DHR_Pos (4U)
  5510. #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFUL << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */
  5511. #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  5512. /****************** Bit definition for DAC_DHR8R2 register ******************/
  5513. #define DAC_DHR8R2_DACC2DHR_Pos (0U)
  5514. #define DAC_DHR8R2_DACC2DHR_Msk (0xFFUL << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */
  5515. #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */
  5516. /***************** Bit definition for DAC_DHR12RD register ******************/
  5517. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  5518. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFUL << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  5519. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  5520. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  5521. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFUL << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  5522. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  5523. /***************** Bit definition for DAC_DHR12LD register ******************/
  5524. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  5525. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFUL << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5526. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  5527. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  5528. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFUL << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  5529. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  5530. /****************** Bit definition for DAC_DHR8RD register ******************/
  5531. #define DAC_DHR8RD_DACC1DHR_Pos (0U)
  5532. #define DAC_DHR8RD_DACC1DHR_Msk (0xFFUL << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */
  5533. #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */
  5534. #define DAC_DHR8RD_DACC2DHR_Pos (8U)
  5535. #define DAC_DHR8RD_DACC2DHR_Msk (0xFFUL << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */
  5536. #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */
  5537. /******************* Bit definition for DAC_DOR1 register *******************/
  5538. #define DAC_DOR1_DACC1DOR_Pos (0U)
  5539. #define DAC_DOR1_DACC1DOR_Msk (0xFFFUL << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */
  5540. #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!<DAC channel1 data output */
  5541. /******************* Bit definition for DAC_DOR2 register *******************/
  5542. #define DAC_DOR2_DACC2DOR_Pos (0U)
  5543. #define DAC_DOR2_DACC2DOR_Msk (0xFFFUL << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */
  5544. #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!<DAC channel2 data output */
  5545. /******************** Bit definition for DAC_SR register ********************/
  5546. #define DAC_SR_DMAUDR1_Pos (13U)
  5547. #define DAC_SR_DMAUDR1_Msk (0x1UL << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  5548. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!<DAC channel1 DMA underrun flag */
  5549. #define DAC_SR_CAL_FLAG1_Pos (14U)
  5550. #define DAC_SR_CAL_FLAG1_Msk (0x1UL << DAC_SR_CAL_FLAG1_Pos) /*!< 0x00004000 */
  5551. #define DAC_SR_CAL_FLAG1 DAC_SR_CAL_FLAG1_Msk /*!<DAC channel1 calibration offset status */
  5552. #define DAC_SR_BWST1_Pos (15U)
  5553. #define DAC_SR_BWST1_Msk (0x4001UL << DAC_SR_BWST1_Pos) /*!< 0x20008000 */
  5554. #define DAC_SR_BWST1 DAC_SR_BWST1_Msk /*!<DAC channel1 busy writing sample time flag */
  5555. #define DAC_SR_DMAUDR2_Pos (29U)
  5556. #define DAC_SR_DMAUDR2_Msk (0x1UL << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  5557. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!<DAC channel2 DMA underrun flag */
  5558. #define DAC_SR_CAL_FLAG2_Pos (30U)
  5559. #define DAC_SR_CAL_FLAG2_Msk (0x1UL << DAC_SR_CAL_FLAG2_Pos) /*!< 0x40000000 */
  5560. #define DAC_SR_CAL_FLAG2 DAC_SR_CAL_FLAG2_Msk /*!<DAC channel2 calibration offset status */
  5561. #define DAC_SR_BWST2_Pos (31U)
  5562. #define DAC_SR_BWST2_Msk (0x1UL << DAC_SR_BWST2_Pos) /*!< 0x80000000 */
  5563. #define DAC_SR_BWST2 DAC_SR_BWST2_Msk /*!<DAC channel2 busy writing sample time flag */
  5564. /******************* Bit definition for DAC_CCR register ********************/
  5565. #define DAC_CCR_OTRIM1_Pos (0U)
  5566. #define DAC_CCR_OTRIM1_Msk (0x1FUL << DAC_CCR_OTRIM1_Pos) /*!< 0x0000001F */
  5567. #define DAC_CCR_OTRIM1 DAC_CCR_OTRIM1_Msk /*!<DAC channel1 offset trimming value */
  5568. #define DAC_CCR_OTRIM2_Pos (16U)
  5569. #define DAC_CCR_OTRIM2_Msk (0x1FUL << DAC_CCR_OTRIM2_Pos) /*!< 0x001F0000 */
  5570. #define DAC_CCR_OTRIM2 DAC_CCR_OTRIM2_Msk /*!<DAC channel2 offset trimming value */
  5571. /******************* Bit definition for DAC_MCR register *******************/
  5572. #define DAC_MCR_MODE1_Pos (0U)
  5573. #define DAC_MCR_MODE1_Msk (0x7UL << DAC_MCR_MODE1_Pos) /*!< 0x00000007 */
  5574. #define DAC_MCR_MODE1 DAC_MCR_MODE1_Msk /*!<MODE1[2:0] (DAC channel1 mode) */
  5575. #define DAC_MCR_MODE1_0 (0x1UL << DAC_MCR_MODE1_Pos) /*!< 0x00000001 */
  5576. #define DAC_MCR_MODE1_1 (0x2UL << DAC_MCR_MODE1_Pos) /*!< 0x00000002 */
  5577. #define DAC_MCR_MODE1_2 (0x4UL << DAC_MCR_MODE1_Pos) /*!< 0x00000004 */
  5578. #define DAC_MCR_MODE2_Pos (16U)
  5579. #define DAC_MCR_MODE2_Msk (0x7UL << DAC_MCR_MODE2_Pos) /*!< 0x00070000 */
  5580. #define DAC_MCR_MODE2 DAC_MCR_MODE2_Msk /*!<MODE2[2:0] (DAC channel2 mode) */
  5581. #define DAC_MCR_MODE2_0 (0x1UL << DAC_MCR_MODE2_Pos) /*!< 0x00010000 */
  5582. #define DAC_MCR_MODE2_1 (0x2UL << DAC_MCR_MODE2_Pos) /*!< 0x00020000 */
  5583. #define DAC_MCR_MODE2_2 (0x4UL << DAC_MCR_MODE2_Pos) /*!< 0x00040000 */
  5584. /****************** Bit definition for DAC_SHSR1 register ******************/
  5585. #define DAC_SHSR1_TSAMPLE1_Pos (0U)
  5586. #define DAC_SHSR1_TSAMPLE1_Msk (0x3FFUL << DAC_SHSR1_TSAMPLE1_Pos) /*!< 0x000003FF */
  5587. #define DAC_SHSR1_TSAMPLE1 DAC_SHSR1_TSAMPLE1_Msk /*!<DAC channel1 sample time */
  5588. /****************** Bit definition for DAC_SHSR2 register ******************/
  5589. #define DAC_SHSR2_TSAMPLE2_Pos (0U)
  5590. #define DAC_SHSR2_TSAMPLE2_Msk (0x3FFUL << DAC_SHSR2_TSAMPLE2_Pos) /*!< 0x000003FF */
  5591. #define DAC_SHSR2_TSAMPLE2 DAC_SHSR2_TSAMPLE2_Msk /*!<DAC channel2 sample time */
  5592. /****************** Bit definition for DAC_SHHR register ******************/
  5593. #define DAC_SHHR_THOLD1_Pos (0U)
  5594. #define DAC_SHHR_THOLD1_Msk (0x3FFUL << DAC_SHHR_THOLD1_Pos) /*!< 0x000003FF */
  5595. #define DAC_SHHR_THOLD1 DAC_SHHR_THOLD1_Msk /*!<DAC channel1 hold time */
  5596. #define DAC_SHHR_THOLD2_Pos (16U)
  5597. #define DAC_SHHR_THOLD2_Msk (0x3FFUL << DAC_SHHR_THOLD2_Pos) /*!< 0x03FF0000 */
  5598. #define DAC_SHHR_THOLD2 DAC_SHHR_THOLD2_Msk /*!<DAC channel2 hold time */
  5599. /****************** Bit definition for DAC_SHRR register ******************/
  5600. #define DAC_SHRR_TREFRESH1_Pos (0U)
  5601. #define DAC_SHRR_TREFRESH1_Msk (0xFFUL << DAC_SHRR_TREFRESH1_Pos) /*!< 0x000000FF */
  5602. #define DAC_SHRR_TREFRESH1 DAC_SHRR_TREFRESH1_Msk /*!<DAC channel1 refresh time */
  5603. #define DAC_SHRR_TREFRESH2_Pos (16U)
  5604. #define DAC_SHRR_TREFRESH2_Msk (0xFFUL << DAC_SHRR_TREFRESH2_Pos) /*!< 0x00FF0000 */
  5605. #define DAC_SHRR_TREFRESH2 DAC_SHRR_TREFRESH2_Msk /*!<DAC channel2 refresh time */
  5606. /******************************************************************************/
  5607. /* */
  5608. /* DCMI */
  5609. /* */
  5610. /******************************************************************************/
  5611. /******************** Bits definition for DCMI_CR register ******************/
  5612. #define DCMI_CR_CAPTURE_Pos (0U)
  5613. #define DCMI_CR_CAPTURE_Msk (0x1UL << DCMI_CR_CAPTURE_Pos) /*!< 0x00000001 */
  5614. #define DCMI_CR_CAPTURE DCMI_CR_CAPTURE_Msk
  5615. #define DCMI_CR_CM_Pos (1U)
  5616. #define DCMI_CR_CM_Msk (0x1UL << DCMI_CR_CM_Pos) /*!< 0x00000002 */
  5617. #define DCMI_CR_CM DCMI_CR_CM_Msk
  5618. #define DCMI_CR_CROP_Pos (2U)
  5619. #define DCMI_CR_CROP_Msk (0x1UL << DCMI_CR_CROP_Pos) /*!< 0x00000004 */
  5620. #define DCMI_CR_CROP DCMI_CR_CROP_Msk
  5621. #define DCMI_CR_JPEG_Pos (3U)
  5622. #define DCMI_CR_JPEG_Msk (0x1UL << DCMI_CR_JPEG_Pos) /*!< 0x00000008 */
  5623. #define DCMI_CR_JPEG DCMI_CR_JPEG_Msk
  5624. #define DCMI_CR_ESS_Pos (4U)
  5625. #define DCMI_CR_ESS_Msk (0x1UL << DCMI_CR_ESS_Pos) /*!< 0x00000010 */
  5626. #define DCMI_CR_ESS DCMI_CR_ESS_Msk
  5627. #define DCMI_CR_PCKPOL_Pos (5U)
  5628. #define DCMI_CR_PCKPOL_Msk (0x1UL << DCMI_CR_PCKPOL_Pos) /*!< 0x00000020 */
  5629. #define DCMI_CR_PCKPOL DCMI_CR_PCKPOL_Msk
  5630. #define DCMI_CR_HSPOL_Pos (6U)
  5631. #define DCMI_CR_HSPOL_Msk (0x1UL << DCMI_CR_HSPOL_Pos) /*!< 0x00000040 */
  5632. #define DCMI_CR_HSPOL DCMI_CR_HSPOL_Msk
  5633. #define DCMI_CR_VSPOL_Pos (7U)
  5634. #define DCMI_CR_VSPOL_Msk (0x1UL << DCMI_CR_VSPOL_Pos) /*!< 0x00000080 */
  5635. #define DCMI_CR_VSPOL DCMI_CR_VSPOL_Msk
  5636. #define DCMI_CR_FCRC_0 ((uint32_t)0x00000100U)
  5637. #define DCMI_CR_FCRC_1 ((uint32_t)0x00000200U)
  5638. #define DCMI_CR_EDM_0 ((uint32_t)0x00000400U)
  5639. #define DCMI_CR_EDM_1 ((uint32_t)0x00000800U)
  5640. #define DCMI_CR_CRE_Pos (12U)
  5641. #define DCMI_CR_CRE_Msk (0x1UL << DCMI_CR_CRE_Pos) /*!< 0x00001000 */
  5642. #define DCMI_CR_CRE DCMI_CR_CRE_Msk
  5643. #define DCMI_CR_ENABLE_Pos (14U)
  5644. #define DCMI_CR_ENABLE_Msk (0x1UL << DCMI_CR_ENABLE_Pos) /*!< 0x00004000 */
  5645. #define DCMI_CR_ENABLE DCMI_CR_ENABLE_Msk
  5646. #define DCMI_CR_BSM_Pos (16U)
  5647. #define DCMI_CR_BSM_Msk (0x3UL << DCMI_CR_BSM_Pos) /*!< 0x00030000 */
  5648. #define DCMI_CR_BSM DCMI_CR_BSM_Msk
  5649. #define DCMI_CR_BSM_0 (0x1UL << DCMI_CR_BSM_Pos) /*!< 0x00010000 */
  5650. #define DCMI_CR_BSM_1 (0x2UL << DCMI_CR_BSM_Pos) /*!< 0x00020000 */
  5651. #define DCMI_CR_OEBS_Pos (18U)
  5652. #define DCMI_CR_OEBS_Msk (0x1UL << DCMI_CR_OEBS_Pos) /*!< 0x00040000 */
  5653. #define DCMI_CR_OEBS DCMI_CR_OEBS_Msk
  5654. #define DCMI_CR_LSM_Pos (19U)
  5655. #define DCMI_CR_LSM_Msk (0x1UL << DCMI_CR_LSM_Pos) /*!< 0x00080000 */
  5656. #define DCMI_CR_LSM DCMI_CR_LSM_Msk
  5657. #define DCMI_CR_OELS_Pos (20U)
  5658. #define DCMI_CR_OELS_Msk (0x1UL << DCMI_CR_OELS_Pos) /*!< 0x00100000 */
  5659. #define DCMI_CR_OELS DCMI_CR_OELS_Msk
  5660. /******************** Bits definition for DCMI_SR register ******************/
  5661. #define DCMI_SR_HSYNC_Pos (0U)
  5662. #define DCMI_SR_HSYNC_Msk (0x1UL << DCMI_SR_HSYNC_Pos) /*!< 0x00000001 */
  5663. #define DCMI_SR_HSYNC DCMI_SR_HSYNC_Msk
  5664. #define DCMI_SR_VSYNC_Pos (1U)
  5665. #define DCMI_SR_VSYNC_Msk (0x1UL << DCMI_SR_VSYNC_Pos) /*!< 0x00000002 */
  5666. #define DCMI_SR_VSYNC DCMI_SR_VSYNC_Msk
  5667. #define DCMI_SR_FNE_Pos (2U)
  5668. #define DCMI_SR_FNE_Msk (0x1UL << DCMI_SR_FNE_Pos) /*!< 0x00000004 */
  5669. #define DCMI_SR_FNE DCMI_SR_FNE_Msk
  5670. /******************** Bits definition for DCMI_RIS register ****************/
  5671. #define DCMI_RIS_FRAME_RIS_Pos (0U)
  5672. #define DCMI_RIS_FRAME_RIS_Msk (0x1UL << DCMI_RIS_FRAME_RIS_Pos) /*!< 0x00000001 */
  5673. #define DCMI_RIS_FRAME_RIS DCMI_RIS_FRAME_RIS_Msk
  5674. #define DCMI_RIS_OVR_RIS_Pos (1U)
  5675. #define DCMI_RIS_OVR_RIS_Msk (0x1UL << DCMI_RIS_OVR_RIS_Pos) /*!< 0x00000002 */
  5676. #define DCMI_RIS_OVR_RIS DCMI_RIS_OVR_RIS_Msk
  5677. #define DCMI_RIS_ERR_RIS_Pos (2U)
  5678. #define DCMI_RIS_ERR_RIS_Msk (0x1UL << DCMI_RIS_ERR_RIS_Pos) /*!< 0x00000004 */
  5679. #define DCMI_RIS_ERR_RIS DCMI_RIS_ERR_RIS_Msk
  5680. #define DCMI_RIS_VSYNC_RIS_Pos (3U)
  5681. #define DCMI_RIS_VSYNC_RIS_Msk (0x1UL << DCMI_RIS_VSYNC_RIS_Pos) /*!< 0x00000008 */
  5682. #define DCMI_RIS_VSYNC_RIS DCMI_RIS_VSYNC_RIS_Msk
  5683. #define DCMI_RIS_LINE_RIS_Pos (4U)
  5684. #define DCMI_RIS_LINE_RIS_Msk (0x1UL << DCMI_RIS_LINE_RIS_Pos) /*!< 0x00000010 */
  5685. #define DCMI_RIS_LINE_RIS DCMI_RIS_LINE_RIS_Msk
  5686. /******************** Bits definition for DCMI_IER register *****************/
  5687. #define DCMI_IER_FRAME_IE_Pos (0U)
  5688. #define DCMI_IER_FRAME_IE_Msk (0x1UL << DCMI_IER_FRAME_IE_Pos) /*!< 0x00000001 */
  5689. #define DCMI_IER_FRAME_IE DCMI_IER_FRAME_IE_Msk
  5690. #define DCMI_IER_OVR_IE_Pos (1U)
  5691. #define DCMI_IER_OVR_IE_Msk (0x1UL << DCMI_IER_OVR_IE_Pos) /*!< 0x00000002 */
  5692. #define DCMI_IER_OVR_IE DCMI_IER_OVR_IE_Msk
  5693. #define DCMI_IER_ERR_IE_Pos (2U)
  5694. #define DCMI_IER_ERR_IE_Msk (0x1UL << DCMI_IER_ERR_IE_Pos) /*!< 0x00000004 */
  5695. #define DCMI_IER_ERR_IE DCMI_IER_ERR_IE_Msk
  5696. #define DCMI_IER_VSYNC_IE_Pos (3U)
  5697. #define DCMI_IER_VSYNC_IE_Msk (0x1UL << DCMI_IER_VSYNC_IE_Pos) /*!< 0x00000008 */
  5698. #define DCMI_IER_VSYNC_IE DCMI_IER_VSYNC_IE_Msk
  5699. #define DCMI_IER_LINE_IE_Pos (4U)
  5700. #define DCMI_IER_LINE_IE_Msk (0x1UL << DCMI_IER_LINE_IE_Pos) /*!< 0x00000010 */
  5701. #define DCMI_IER_LINE_IE DCMI_IER_LINE_IE_Msk
  5702. /******************** Bits definition for DCMI_MIS register *****************/
  5703. #define DCMI_MIS_FRAME_MIS_Pos (0U)
  5704. #define DCMI_MIS_FRAME_MIS_Msk (0x1UL << DCMI_MIS_FRAME_MIS_Pos) /*!< 0x00000001 */
  5705. #define DCMI_MIS_FRAME_MIS DCMI_MIS_FRAME_MIS_Msk
  5706. #define DCMI_MIS_OVR_MIS_Pos (1U)
  5707. #define DCMI_MIS_OVR_MIS_Msk (0x1UL << DCMI_MIS_OVR_MIS_Pos) /*!< 0x00000002 */
  5708. #define DCMI_MIS_OVR_MIS DCMI_MIS_OVR_MIS_Msk
  5709. #define DCMI_MIS_ERR_MIS_Pos (2U)
  5710. #define DCMI_MIS_ERR_MIS_Msk (0x1UL << DCMI_MIS_ERR_MIS_Pos) /*!< 0x00000004 */
  5711. #define DCMI_MIS_ERR_MIS DCMI_MIS_ERR_MIS_Msk
  5712. #define DCMI_MIS_VSYNC_MIS_Pos (3U)
  5713. #define DCMI_MIS_VSYNC_MIS_Msk (0x1UL << DCMI_MIS_VSYNC_MIS_Pos) /*!< 0x00000008 */
  5714. #define DCMI_MIS_VSYNC_MIS DCMI_MIS_VSYNC_MIS_Msk
  5715. #define DCMI_MIS_LINE_MIS_Pos (4U)
  5716. #define DCMI_MIS_LINE_MIS_Msk (0x1UL << DCMI_MIS_LINE_MIS_Pos) /*!< 0x00000010 */
  5717. #define DCMI_MIS_LINE_MIS DCMI_MIS_LINE_MIS_Msk
  5718. /******************** Bits definition for DCMI_ICR register *****************/
  5719. #define DCMI_ICR_FRAME_ISC_Pos (0U)
  5720. #define DCMI_ICR_FRAME_ISC_Msk (0x1UL << DCMI_ICR_FRAME_ISC_Pos) /*!< 0x00000001 */
  5721. #define DCMI_ICR_FRAME_ISC DCMI_ICR_FRAME_ISC_Msk
  5722. #define DCMI_ICR_OVR_ISC_Pos (1U)
  5723. #define DCMI_ICR_OVR_ISC_Msk (0x1UL << DCMI_ICR_OVR_ISC_Pos) /*!< 0x00000002 */
  5724. #define DCMI_ICR_OVR_ISC DCMI_ICR_OVR_ISC_Msk
  5725. #define DCMI_ICR_ERR_ISC_Pos (2U)
  5726. #define DCMI_ICR_ERR_ISC_Msk (0x1UL << DCMI_ICR_ERR_ISC_Pos) /*!< 0x00000004 */
  5727. #define DCMI_ICR_ERR_ISC DCMI_ICR_ERR_ISC_Msk
  5728. #define DCMI_ICR_VSYNC_ISC_Pos (3U)
  5729. #define DCMI_ICR_VSYNC_ISC_Msk (0x1UL << DCMI_ICR_VSYNC_ISC_Pos) /*!< 0x00000008 */
  5730. #define DCMI_ICR_VSYNC_ISC DCMI_ICR_VSYNC_ISC_Msk
  5731. #define DCMI_ICR_LINE_ISC_Pos (4U)
  5732. #define DCMI_ICR_LINE_ISC_Msk (0x1UL << DCMI_ICR_LINE_ISC_Pos) /*!< 0x00000010 */
  5733. #define DCMI_ICR_LINE_ISC DCMI_ICR_LINE_ISC_Msk
  5734. /******************** Bits definition for DCMI_ESCR register ******************/
  5735. #define DCMI_ESCR_FSC_Pos (0U)
  5736. #define DCMI_ESCR_FSC_Msk (0xFFUL << DCMI_ESCR_FSC_Pos) /*!< 0x000000FF */
  5737. #define DCMI_ESCR_FSC DCMI_ESCR_FSC_Msk
  5738. #define DCMI_ESCR_LSC_Pos (8U)
  5739. #define DCMI_ESCR_LSC_Msk (0xFFUL << DCMI_ESCR_LSC_Pos) /*!< 0x0000FF00 */
  5740. #define DCMI_ESCR_LSC DCMI_ESCR_LSC_Msk
  5741. #define DCMI_ESCR_LEC_Pos (16U)
  5742. #define DCMI_ESCR_LEC_Msk (0xFFUL << DCMI_ESCR_LEC_Pos) /*!< 0x00FF0000 */
  5743. #define DCMI_ESCR_LEC DCMI_ESCR_LEC_Msk
  5744. #define DCMI_ESCR_FEC_Pos (24U)
  5745. #define DCMI_ESCR_FEC_Msk (0xFFUL << DCMI_ESCR_FEC_Pos) /*!< 0xFF000000 */
  5746. #define DCMI_ESCR_FEC DCMI_ESCR_FEC_Msk
  5747. /******************** Bits definition for DCMI_ESUR register ******************/
  5748. #define DCMI_ESUR_FSU_Pos (0U)
  5749. #define DCMI_ESUR_FSU_Msk (0xFFUL << DCMI_ESUR_FSU_Pos) /*!< 0x000000FF */
  5750. #define DCMI_ESUR_FSU DCMI_ESUR_FSU_Msk
  5751. #define DCMI_ESUR_LSU_Pos (8U)
  5752. #define DCMI_ESUR_LSU_Msk (0xFFUL << DCMI_ESUR_LSU_Pos) /*!< 0x0000FF00 */
  5753. #define DCMI_ESUR_LSU DCMI_ESUR_LSU_Msk
  5754. #define DCMI_ESUR_LEU_Pos (16U)
  5755. #define DCMI_ESUR_LEU_Msk (0xFFUL << DCMI_ESUR_LEU_Pos) /*!< 0x00FF0000 */
  5756. #define DCMI_ESUR_LEU DCMI_ESUR_LEU_Msk
  5757. #define DCMI_ESUR_FEU_Pos (24U)
  5758. #define DCMI_ESUR_FEU_Msk (0xFFUL << DCMI_ESUR_FEU_Pos) /*!< 0xFF000000 */
  5759. #define DCMI_ESUR_FEU DCMI_ESUR_FEU_Msk
  5760. /******************** Bits definition for DCMI_CWSTRT register ******************/
  5761. #define DCMI_CWSTRT_HOFFCNT_Pos (0U)
  5762. #define DCMI_CWSTRT_HOFFCNT_Msk (0x3FFFUL << DCMI_CWSTRT_HOFFCNT_Pos) /*!< 0x00003FFF */
  5763. #define DCMI_CWSTRT_HOFFCNT DCMI_CWSTRT_HOFFCNT_Msk
  5764. #define DCMI_CWSTRT_VST_Pos (16U)
  5765. #define DCMI_CWSTRT_VST_Msk (0x1FFFUL << DCMI_CWSTRT_VST_Pos) /*!< 0x1FFF0000 */
  5766. #define DCMI_CWSTRT_VST DCMI_CWSTRT_VST_Msk
  5767. /******************** Bits definition for DCMI_CWSIZE register ******************/
  5768. #define DCMI_CWSIZE_CAPCNT_Pos (0U)
  5769. #define DCMI_CWSIZE_CAPCNT_Msk (0x3FFFUL << DCMI_CWSIZE_CAPCNT_Pos) /*!< 0x00003FFF */
  5770. #define DCMI_CWSIZE_CAPCNT DCMI_CWSIZE_CAPCNT_Msk
  5771. #define DCMI_CWSIZE_VLINE_Pos (16U)
  5772. #define DCMI_CWSIZE_VLINE_Msk (0x3FFFUL << DCMI_CWSIZE_VLINE_Pos) /*!< 0x3FFF0000 */
  5773. #define DCMI_CWSIZE_VLINE DCMI_CWSIZE_VLINE_Msk
  5774. /******************** Bits definition for DCMI_DR register ******************/
  5775. #define DCMI_DR_BYTE0_Pos (0U)
  5776. #define DCMI_DR_BYTE0_Msk (0xFFUL << DCMI_DR_BYTE0_Pos) /*!< 0x000000FF */
  5777. #define DCMI_DR_BYTE0 DCMI_DR_BYTE0_Msk
  5778. #define DCMI_DR_BYTE1_Pos (8U)
  5779. #define DCMI_DR_BYTE1_Msk (0xFFUL << DCMI_DR_BYTE1_Pos) /*!< 0x0000FF00 */
  5780. #define DCMI_DR_BYTE1 DCMI_DR_BYTE1_Msk
  5781. #define DCMI_DR_BYTE2_Pos (16U)
  5782. #define DCMI_DR_BYTE2_Msk (0xFFUL << DCMI_DR_BYTE2_Pos) /*!< 0x00FF0000 */
  5783. #define DCMI_DR_BYTE2 DCMI_DR_BYTE2_Msk
  5784. #define DCMI_DR_BYTE3_Pos (24U)
  5785. #define DCMI_DR_BYTE3_Msk (0xFFUL << DCMI_DR_BYTE3_Pos) /*!< 0xFF000000 */
  5786. #define DCMI_DR_BYTE3 DCMI_DR_BYTE3_Msk
  5787. /******************************************************************************/
  5788. /* */
  5789. /* Digital Filter for Sigma Delta Modulators */
  5790. /* */
  5791. /******************************************************************************/
  5792. /**************** DFSDM channel configuration registers ********************/
  5793. /*************** Bit definition for DFSDM_CHCFGR1 register ******************/
  5794. #define DFSDM_CHCFGR1_DFSDMEN_Pos (31U)
  5795. #define DFSDM_CHCFGR1_DFSDMEN_Msk (0x1UL << DFSDM_CHCFGR1_DFSDMEN_Pos) /*!< 0x80000000 */
  5796. #define DFSDM_CHCFGR1_DFSDMEN DFSDM_CHCFGR1_DFSDMEN_Msk /*!< Global enable for DFSDM interface */
  5797. #define DFSDM_CHCFGR1_CKOUTSRC_Pos (30U)
  5798. #define DFSDM_CHCFGR1_CKOUTSRC_Msk (0x1UL << DFSDM_CHCFGR1_CKOUTSRC_Pos) /*!< 0x40000000 */
  5799. #define DFSDM_CHCFGR1_CKOUTSRC DFSDM_CHCFGR1_CKOUTSRC_Msk /*!< Output serial clock source selection */
  5800. #define DFSDM_CHCFGR1_CKOUTDIV_Pos (16U)
  5801. #define DFSDM_CHCFGR1_CKOUTDIV_Msk (0xFFUL << DFSDM_CHCFGR1_CKOUTDIV_Pos) /*!< 0x00FF0000 */
  5802. #define DFSDM_CHCFGR1_CKOUTDIV DFSDM_CHCFGR1_CKOUTDIV_Msk /*!< CKOUTDIV[7:0] output serial clock divider */
  5803. #define DFSDM_CHCFGR1_DATPACK_Pos (14U)
  5804. #define DFSDM_CHCFGR1_DATPACK_Msk (0x3UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x0000C000 */
  5805. #define DFSDM_CHCFGR1_DATPACK DFSDM_CHCFGR1_DATPACK_Msk /*!< DATPACK[1:0] Data packing mode */
  5806. #define DFSDM_CHCFGR1_DATPACK_1 (0x2UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00008000 */
  5807. #define DFSDM_CHCFGR1_DATPACK_0 (0x1UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00004000 */
  5808. #define DFSDM_CHCFGR1_DATMPX_Pos (12U)
  5809. #define DFSDM_CHCFGR1_DATMPX_Msk (0x3UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00003000 */
  5810. #define DFSDM_CHCFGR1_DATMPX DFSDM_CHCFGR1_DATMPX_Msk /*!< DATMPX[1:0] Input data multiplexer for channel y */
  5811. #define DFSDM_CHCFGR1_DATMPX_1 (0x2UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00002000 */
  5812. #define DFSDM_CHCFGR1_DATMPX_0 (0x1UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00001000 */
  5813. #define DFSDM_CHCFGR1_CHINSEL_Pos (8U)
  5814. #define DFSDM_CHCFGR1_CHINSEL_Msk (0x1UL << DFSDM_CHCFGR1_CHINSEL_Pos) /*!< 0x00000100 */
  5815. #define DFSDM_CHCFGR1_CHINSEL DFSDM_CHCFGR1_CHINSEL_Msk /*!< Serial inputs selection for channel y */
  5816. #define DFSDM_CHCFGR1_CHEN_Pos (7U)
  5817. #define DFSDM_CHCFGR1_CHEN_Msk (0x1UL << DFSDM_CHCFGR1_CHEN_Pos) /*!< 0x00000080 */
  5818. #define DFSDM_CHCFGR1_CHEN DFSDM_CHCFGR1_CHEN_Msk /*!< Channel y enable */
  5819. #define DFSDM_CHCFGR1_CKABEN_Pos (6U)
  5820. #define DFSDM_CHCFGR1_CKABEN_Msk (0x1UL << DFSDM_CHCFGR1_CKABEN_Pos) /*!< 0x00000040 */
  5821. #define DFSDM_CHCFGR1_CKABEN DFSDM_CHCFGR1_CKABEN_Msk /*!< Clock absence detector enable on channel y */
  5822. #define DFSDM_CHCFGR1_SCDEN_Pos (5U)
  5823. #define DFSDM_CHCFGR1_SCDEN_Msk (0x1UL << DFSDM_CHCFGR1_SCDEN_Pos) /*!< 0x00000020 */
  5824. #define DFSDM_CHCFGR1_SCDEN DFSDM_CHCFGR1_SCDEN_Msk /*!< Short circuit detector enable on channel y */
  5825. #define DFSDM_CHCFGR1_SPICKSEL_Pos (2U)
  5826. #define DFSDM_CHCFGR1_SPICKSEL_Msk (0x3UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x0000000C */
  5827. #define DFSDM_CHCFGR1_SPICKSEL DFSDM_CHCFGR1_SPICKSEL_Msk /*!< SPICKSEL[1:0] SPI clock select for channel y */
  5828. #define DFSDM_CHCFGR1_SPICKSEL_1 (0x2UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000008 */
  5829. #define DFSDM_CHCFGR1_SPICKSEL_0 (0x1UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000004 */
  5830. #define DFSDM_CHCFGR1_SITP_Pos (0U)
  5831. #define DFSDM_CHCFGR1_SITP_Msk (0x3UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000003 */
  5832. #define DFSDM_CHCFGR1_SITP DFSDM_CHCFGR1_SITP_Msk /*!< SITP[1:0] Serial interface type for channel y */
  5833. #define DFSDM_CHCFGR1_SITP_1 (0x2UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000002 */
  5834. #define DFSDM_CHCFGR1_SITP_0 (0x1UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000001 */
  5835. /*************** Bit definition for DFSDM_CHCFGR2 register ******************/
  5836. #define DFSDM_CHCFGR2_OFFSET_Pos (8U)
  5837. #define DFSDM_CHCFGR2_OFFSET_Msk (0xFFFFFFUL << DFSDM_CHCFGR2_OFFSET_Pos) /*!< 0xFFFFFF00 */
  5838. #define DFSDM_CHCFGR2_OFFSET DFSDM_CHCFGR2_OFFSET_Msk /*!< OFFSET[23:0] 24-bit calibration offset for channel y */
  5839. #define DFSDM_CHCFGR2_DTRBS_Pos (3U)
  5840. #define DFSDM_CHCFGR2_DTRBS_Msk (0x1FUL << DFSDM_CHCFGR2_DTRBS_Pos) /*!< 0x000000F8 */
  5841. #define DFSDM_CHCFGR2_DTRBS DFSDM_CHCFGR2_DTRBS_Msk /*!< DTRBS[4:0] Data right bit-shift for channel y */
  5842. /****************** Bit definition for DFSDM_CHAWSCDR register *****************/
  5843. #define DFSDM_CHAWSCDR_AWFORD_Pos (22U)
  5844. #define DFSDM_CHAWSCDR_AWFORD_Msk (0x3UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00C00000 */
  5845. #define DFSDM_CHAWSCDR_AWFORD DFSDM_CHAWSCDR_AWFORD_Msk /*!< AWFORD[1:0] Analog watchdog Sinc filter order on channel y */
  5846. #define DFSDM_CHAWSCDR_AWFORD_1 (0x2UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00800000 */
  5847. #define DFSDM_CHAWSCDR_AWFORD_0 (0x1UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00400000 */
  5848. #define DFSDM_CHAWSCDR_AWFOSR_Pos (16U)
  5849. #define DFSDM_CHAWSCDR_AWFOSR_Msk (0x1FUL << DFSDM_CHAWSCDR_AWFOSR_Pos) /*!< 0x001F0000 */
  5850. #define DFSDM_CHAWSCDR_AWFOSR DFSDM_CHAWSCDR_AWFOSR_Msk /*!< AWFOSR[4:0] Analog watchdog filter oversampling ratio on channel y */
  5851. #define DFSDM_CHAWSCDR_BKSCD_Pos (12U)
  5852. #define DFSDM_CHAWSCDR_BKSCD_Msk (0xFUL << DFSDM_CHAWSCDR_BKSCD_Pos) /*!< 0x0000F000 */
  5853. #define DFSDM_CHAWSCDR_BKSCD DFSDM_CHAWSCDR_BKSCD_Msk /*!< BKSCD[3:0] Break signal assignment for short circuit detector on channel y */
  5854. #define DFSDM_CHAWSCDR_SCDT_Pos (0U)
  5855. #define DFSDM_CHAWSCDR_SCDT_Msk (0xFFUL << DFSDM_CHAWSCDR_SCDT_Pos) /*!< 0x000000FF */
  5856. #define DFSDM_CHAWSCDR_SCDT DFSDM_CHAWSCDR_SCDT_Msk /*!< SCDT[7:0] Short circuit detector threshold for channel y */
  5857. /**************** Bit definition for DFSDM_CHWDATR register *******************/
  5858. #define DFSDM_CHWDATR_WDATA_Pos (0U)
  5859. #define DFSDM_CHWDATR_WDATA_Msk (0xFFFFUL << DFSDM_CHWDATR_WDATA_Pos) /*!< 0x0000FFFF */
  5860. #define DFSDM_CHWDATR_WDATA DFSDM_CHWDATR_WDATA_Msk /*!< WDATA[15:0] Input channel y watchdog data */
  5861. /**************** Bit definition for DFSDM_CHDATINR register *****************/
  5862. #define DFSDM_CHDATINR_INDAT0_Pos (0U)
  5863. #define DFSDM_CHDATINR_INDAT0_Msk (0xFFFFUL << DFSDM_CHDATINR_INDAT0_Pos) /*!< 0x0000FFFF */
  5864. #define DFSDM_CHDATINR_INDAT0 DFSDM_CHDATINR_INDAT0_Msk /*!< INDAT0[31:16] Input data for channel y or channel (y+1) */
  5865. #define DFSDM_CHDATINR_INDAT1_Pos (16U)
  5866. #define DFSDM_CHDATINR_INDAT1_Msk (0xFFFFUL << DFSDM_CHDATINR_INDAT1_Pos) /*!< 0xFFFF0000 */
  5867. #define DFSDM_CHDATINR_INDAT1 DFSDM_CHDATINR_INDAT1_Msk /*!< INDAT0[15:0] Input data for channel y */
  5868. /************************ DFSDM module registers ****************************/
  5869. /******************** Bit definition for DFSDM_FLTCR1 register *******************/
  5870. #define DFSDM_FLTCR1_AWFSEL_Pos (30U)
  5871. #define DFSDM_FLTCR1_AWFSEL_Msk (0x1UL << DFSDM_FLTCR1_AWFSEL_Pos) /*!< 0x40000000 */
  5872. #define DFSDM_FLTCR1_AWFSEL DFSDM_FLTCR1_AWFSEL_Msk /*!< Analog watchdog fast mode select */
  5873. #define DFSDM_FLTCR1_FAST_Pos (29U)
  5874. #define DFSDM_FLTCR1_FAST_Msk (0x1UL << DFSDM_FLTCR1_FAST_Pos) /*!< 0x20000000 */
  5875. #define DFSDM_FLTCR1_FAST DFSDM_FLTCR1_FAST_Msk /*!< Fast conversion mode selection */
  5876. #define DFSDM_FLTCR1_RCH_Pos (24U)
  5877. #define DFSDM_FLTCR1_RCH_Msk (0x7UL << DFSDM_FLTCR1_RCH_Pos) /*!< 0x07000000 */
  5878. #define DFSDM_FLTCR1_RCH DFSDM_FLTCR1_RCH_Msk /*!< RCH[2:0] Regular channel selection */
  5879. #define DFSDM_FLTCR1_RDMAEN_Pos (21U)
  5880. #define DFSDM_FLTCR1_RDMAEN_Msk (0x1UL << DFSDM_FLTCR1_RDMAEN_Pos) /*!< 0x00200000 */
  5881. #define DFSDM_FLTCR1_RDMAEN DFSDM_FLTCR1_RDMAEN_Msk /*!< DMA channel enabled to read data for the regular conversion */
  5882. #define DFSDM_FLTCR1_RSYNC_Pos (19U)
  5883. #define DFSDM_FLTCR1_RSYNC_Msk (0x1UL << DFSDM_FLTCR1_RSYNC_Pos) /*!< 0x00080000 */
  5884. #define DFSDM_FLTCR1_RSYNC DFSDM_FLTCR1_RSYNC_Msk /*!< Launch regular conversion synchronously with DFSDMx */
  5885. #define DFSDM_FLTCR1_RCONT_Pos (18U)
  5886. #define DFSDM_FLTCR1_RCONT_Msk (0x1UL << DFSDM_FLTCR1_RCONT_Pos) /*!< 0x00040000 */
  5887. #define DFSDM_FLTCR1_RCONT DFSDM_FLTCR1_RCONT_Msk /*!< Continuous mode selection for regular conversions */
  5888. #define DFSDM_FLTCR1_RSWSTART_Pos (17U)
  5889. #define DFSDM_FLTCR1_RSWSTART_Msk (0x1UL << DFSDM_FLTCR1_RSWSTART_Pos) /*!< 0x00020000 */
  5890. #define DFSDM_FLTCR1_RSWSTART DFSDM_FLTCR1_RSWSTART_Msk /*!< Software start of a conversion on the regular channel */
  5891. #define DFSDM_FLTCR1_JEXTEN_Pos (13U)
  5892. #define DFSDM_FLTCR1_JEXTEN_Msk (0x3UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00006000 */
  5893. #define DFSDM_FLTCR1_JEXTEN DFSDM_FLTCR1_JEXTEN_Msk /*!< JEXTEN[1:0] Trigger enable and trigger edge selection for injected conversions */
  5894. #define DFSDM_FLTCR1_JEXTEN_1 (0x2UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00004000 */
  5895. #define DFSDM_FLTCR1_JEXTEN_0 (0x1UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00002000 */
  5896. #define DFSDM_FLTCR1_JEXTSEL_Pos (8U)
  5897. #define DFSDM_FLTCR1_JEXTSEL_Msk (0x1FUL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001F00 */
  5898. #define DFSDM_FLTCR1_JEXTSEL DFSDM_FLTCR1_JEXTSEL_Msk /*!< JEXTSEL[4:0]Trigger signal selection for launching injected conversions */
  5899. #define DFSDM_FLTCR1_JEXTSEL_0 (0x01UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000100 */
  5900. #define DFSDM_FLTCR1_JEXTSEL_1 (0x02UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000200 */
  5901. #define DFSDM_FLTCR1_JEXTSEL_2 (0x04UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000400 */
  5902. #define DFSDM_FLTCR1_JEXTSEL_3 (0x08UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000800 */
  5903. #define DFSDM_FLTCR1_JEXTSEL_4 (0x10UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001000 */
  5904. #define DFSDM_FLTCR1_JDMAEN_Pos (5U)
  5905. #define DFSDM_FLTCR1_JDMAEN_Msk (0x1UL << DFSDM_FLTCR1_JDMAEN_Pos) /*!< 0x00000020 */
  5906. #define DFSDM_FLTCR1_JDMAEN DFSDM_FLTCR1_JDMAEN_Msk /*!< DMA channel enabled to read data for the injected channel group */
  5907. #define DFSDM_FLTCR1_JSCAN_Pos (4U)
  5908. #define DFSDM_FLTCR1_JSCAN_Msk (0x1UL << DFSDM_FLTCR1_JSCAN_Pos) /*!< 0x00000010 */
  5909. #define DFSDM_FLTCR1_JSCAN DFSDM_FLTCR1_JSCAN_Msk /*!< Scanning conversion in continuous mode selection for injected conversions */
  5910. #define DFSDM_FLTCR1_JSYNC_Pos (3U)
  5911. #define DFSDM_FLTCR1_JSYNC_Msk (0x1UL << DFSDM_FLTCR1_JSYNC_Pos) /*!< 0x00000008 */
  5912. #define DFSDM_FLTCR1_JSYNC DFSDM_FLTCR1_JSYNC_Msk /*!< Launch an injected conversion synchronously with DFSDMx JSWSTART trigger */
  5913. #define DFSDM_FLTCR1_JSWSTART_Pos (1U)
  5914. #define DFSDM_FLTCR1_JSWSTART_Msk (0x1UL << DFSDM_FLTCR1_JSWSTART_Pos) /*!< 0x00000002 */
  5915. #define DFSDM_FLTCR1_JSWSTART DFSDM_FLTCR1_JSWSTART_Msk /*!< Start the conversion of the injected group of channels */
  5916. #define DFSDM_FLTCR1_DFEN_Pos (0U)
  5917. #define DFSDM_FLTCR1_DFEN_Msk (0x1UL << DFSDM_FLTCR1_DFEN_Pos) /*!< 0x00000001 */
  5918. #define DFSDM_FLTCR1_DFEN DFSDM_FLTCR1_DFEN_Msk /*!< DFSDM enable */
  5919. /******************** Bit definition for DFSDM_FLTCR2 register *******************/
  5920. #define DFSDM_FLTCR2_AWDCH_Pos (16U)
  5921. #define DFSDM_FLTCR2_AWDCH_Msk (0xFFUL << DFSDM_FLTCR2_AWDCH_Pos) /*!< 0x00FF0000 */
  5922. #define DFSDM_FLTCR2_AWDCH DFSDM_FLTCR2_AWDCH_Msk /*!< AWDCH[7:0] Analog watchdog channel selection */
  5923. #define DFSDM_FLTCR2_EXCH_Pos (8U)
  5924. #define DFSDM_FLTCR2_EXCH_Msk (0xFFUL << DFSDM_FLTCR2_EXCH_Pos) /*!< 0x0000FF00 */
  5925. #define DFSDM_FLTCR2_EXCH DFSDM_FLTCR2_EXCH_Msk /*!< EXCH[7:0] Extreme detector channel selection */
  5926. #define DFSDM_FLTCR2_CKABIE_Pos (6U)
  5927. #define DFSDM_FLTCR2_CKABIE_Msk (0x1UL << DFSDM_FLTCR2_CKABIE_Pos) /*!< 0x00000040 */
  5928. #define DFSDM_FLTCR2_CKABIE DFSDM_FLTCR2_CKABIE_Msk /*!< Clock absence interrupt enable */
  5929. #define DFSDM_FLTCR2_SCDIE_Pos (5U)
  5930. #define DFSDM_FLTCR2_SCDIE_Msk (0x1UL << DFSDM_FLTCR2_SCDIE_Pos) /*!< 0x00000020 */
  5931. #define DFSDM_FLTCR2_SCDIE DFSDM_FLTCR2_SCDIE_Msk /*!< Short circuit detector interrupt enable */
  5932. #define DFSDM_FLTCR2_AWDIE_Pos (4U)
  5933. #define DFSDM_FLTCR2_AWDIE_Msk (0x1UL << DFSDM_FLTCR2_AWDIE_Pos) /*!< 0x00000010 */
  5934. #define DFSDM_FLTCR2_AWDIE DFSDM_FLTCR2_AWDIE_Msk /*!< Analog watchdog interrupt enable */
  5935. #define DFSDM_FLTCR2_ROVRIE_Pos (3U)
  5936. #define DFSDM_FLTCR2_ROVRIE_Msk (0x1UL << DFSDM_FLTCR2_ROVRIE_Pos) /*!< 0x00000008 */
  5937. #define DFSDM_FLTCR2_ROVRIE DFSDM_FLTCR2_ROVRIE_Msk /*!< Regular data overrun interrupt enable */
  5938. #define DFSDM_FLTCR2_JOVRIE_Pos (2U)
  5939. #define DFSDM_FLTCR2_JOVRIE_Msk (0x1UL << DFSDM_FLTCR2_JOVRIE_Pos) /*!< 0x00000004 */
  5940. #define DFSDM_FLTCR2_JOVRIE DFSDM_FLTCR2_JOVRIE_Msk /*!< Injected data overrun interrupt enable */
  5941. #define DFSDM_FLTCR2_REOCIE_Pos (1U)
  5942. #define DFSDM_FLTCR2_REOCIE_Msk (0x1UL << DFSDM_FLTCR2_REOCIE_Pos) /*!< 0x00000002 */
  5943. #define DFSDM_FLTCR2_REOCIE DFSDM_FLTCR2_REOCIE_Msk /*!< Regular end of conversion interrupt enable */
  5944. #define DFSDM_FLTCR2_JEOCIE_Pos (0U)
  5945. #define DFSDM_FLTCR2_JEOCIE_Msk (0x1UL << DFSDM_FLTCR2_JEOCIE_Pos) /*!< 0x00000001 */
  5946. #define DFSDM_FLTCR2_JEOCIE DFSDM_FLTCR2_JEOCIE_Msk /*!< Injected end of conversion interrupt enable */
  5947. /******************** Bit definition for DFSDM_FLTISR register *******************/
  5948. #define DFSDM_FLTISR_SCDF_Pos (24U)
  5949. #define DFSDM_FLTISR_SCDF_Msk (0xFFUL << DFSDM_FLTISR_SCDF_Pos) /*!< 0xFF000000 */
  5950. #define DFSDM_FLTISR_SCDF DFSDM_FLTISR_SCDF_Msk /*!< SCDF[7:0] Short circuit detector flag */
  5951. #define DFSDM_FLTISR_CKABF_Pos (16U)
  5952. #define DFSDM_FLTISR_CKABF_Msk (0xFFUL << DFSDM_FLTISR_CKABF_Pos) /*!< 0x00FF0000 */
  5953. #define DFSDM_FLTISR_CKABF DFSDM_FLTISR_CKABF_Msk /*!< CKABF[7:0] Clock absence flag */
  5954. #define DFSDM_FLTISR_RCIP_Pos (14U)
  5955. #define DFSDM_FLTISR_RCIP_Msk (0x1UL << DFSDM_FLTISR_RCIP_Pos) /*!< 0x00004000 */
  5956. #define DFSDM_FLTISR_RCIP DFSDM_FLTISR_RCIP_Msk /*!< Regular conversion in progress status */
  5957. #define DFSDM_FLTISR_JCIP_Pos (13U)
  5958. #define DFSDM_FLTISR_JCIP_Msk (0x1UL << DFSDM_FLTISR_JCIP_Pos) /*!< 0x00002000 */
  5959. #define DFSDM_FLTISR_JCIP DFSDM_FLTISR_JCIP_Msk /*!< Injected conversion in progress status */
  5960. #define DFSDM_FLTISR_AWDF_Pos (4U)
  5961. #define DFSDM_FLTISR_AWDF_Msk (0x1UL << DFSDM_FLTISR_AWDF_Pos) /*!< 0x00000010 */
  5962. #define DFSDM_FLTISR_AWDF DFSDM_FLTISR_AWDF_Msk /*!< Analog watchdog */
  5963. #define DFSDM_FLTISR_ROVRF_Pos (3U)
  5964. #define DFSDM_FLTISR_ROVRF_Msk (0x1UL << DFSDM_FLTISR_ROVRF_Pos) /*!< 0x00000008 */
  5965. #define DFSDM_FLTISR_ROVRF DFSDM_FLTISR_ROVRF_Msk /*!< Regular conversion overrun flag */
  5966. #define DFSDM_FLTISR_JOVRF_Pos (2U)
  5967. #define DFSDM_FLTISR_JOVRF_Msk (0x1UL << DFSDM_FLTISR_JOVRF_Pos) /*!< 0x00000004 */
  5968. #define DFSDM_FLTISR_JOVRF DFSDM_FLTISR_JOVRF_Msk /*!< Injected conversion overrun flag */
  5969. #define DFSDM_FLTISR_REOCF_Pos (1U)
  5970. #define DFSDM_FLTISR_REOCF_Msk (0x1UL << DFSDM_FLTISR_REOCF_Pos) /*!< 0x00000002 */
  5971. #define DFSDM_FLTISR_REOCF DFSDM_FLTISR_REOCF_Msk /*!< End of regular conversion flag */
  5972. #define DFSDM_FLTISR_JEOCF_Pos (0U)
  5973. #define DFSDM_FLTISR_JEOCF_Msk (0x1UL << DFSDM_FLTISR_JEOCF_Pos) /*!< 0x00000001 */
  5974. #define DFSDM_FLTISR_JEOCF DFSDM_FLTISR_JEOCF_Msk /*!< End of injected conversion flag */
  5975. /******************** Bit definition for DFSDM_FLTICR register *******************/
  5976. #define DFSDM_FLTICR_CLRSCDF_Pos (24U)
  5977. #define DFSDM_FLTICR_CLRSCDF_Msk (0xFFUL << DFSDM_FLTICR_CLRSCDF_Pos) /*!< 0xFF000000 */
  5978. #define DFSDM_FLTICR_CLRSCDF DFSDM_FLTICR_CLRSCDF_Msk /*!< CLRSCSDF[7:0] Clear the short circuit detector flag */
  5979. #define DFSDM_FLTICR_CLRCKABF_Pos (16U)
  5980. #define DFSDM_FLTICR_CLRCKABF_Msk (0xFFUL << DFSDM_FLTICR_CLRCKABF_Pos) /*!< 0x00FF0000 */
  5981. #define DFSDM_FLTICR_CLRCKABF DFSDM_FLTICR_CLRCKABF_Msk /*!< CLRCKABF[7:0] Clear the clock absence flag */
  5982. #define DFSDM_FLTICR_CLRROVRF_Pos (3U)
  5983. #define DFSDM_FLTICR_CLRROVRF_Msk (0x1UL << DFSDM_FLTICR_CLRROVRF_Pos) /*!< 0x00000008 */
  5984. #define DFSDM_FLTICR_CLRROVRF DFSDM_FLTICR_CLRROVRF_Msk /*!< Clear the regular conversion overrun flag */
  5985. #define DFSDM_FLTICR_CLRJOVRF_Pos (2U)
  5986. #define DFSDM_FLTICR_CLRJOVRF_Msk (0x1UL << DFSDM_FLTICR_CLRJOVRF_Pos) /*!< 0x00000004 */
  5987. #define DFSDM_FLTICR_CLRJOVRF DFSDM_FLTICR_CLRJOVRF_Msk /*!< Clear the injected conversion overrun flag */
  5988. /******************* Bit definition for DFSDM_FLTJCHGR register ******************/
  5989. #define DFSDM_FLTJCHGR_JCHG_Pos (0U)
  5990. #define DFSDM_FLTJCHGR_JCHG_Msk (0xFFUL << DFSDM_FLTJCHGR_JCHG_Pos) /*!< 0x000000FF */
  5991. #define DFSDM_FLTJCHGR_JCHG DFSDM_FLTJCHGR_JCHG_Msk /*!< JCHG[7:0] Injected channel group selection */
  5992. /******************** Bit definition for DFSDM_FLTFCR register *******************/
  5993. #define DFSDM_FLTFCR_FORD_Pos (29U)
  5994. #define DFSDM_FLTFCR_FORD_Msk (0x7UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0xE0000000 */
  5995. #define DFSDM_FLTFCR_FORD DFSDM_FLTFCR_FORD_Msk /*!< FORD[2:0] Sinc filter order */
  5996. #define DFSDM_FLTFCR_FORD_2 (0x4UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x80000000 */
  5997. #define DFSDM_FLTFCR_FORD_1 (0x2UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x40000000 */
  5998. #define DFSDM_FLTFCR_FORD_0 (0x1UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x20000000 */
  5999. #define DFSDM_FLTFCR_FOSR_Pos (16U)
  6000. #define DFSDM_FLTFCR_FOSR_Msk (0x3FFUL << DFSDM_FLTFCR_FOSR_Pos) /*!< 0x03FF0000 */
  6001. #define DFSDM_FLTFCR_FOSR DFSDM_FLTFCR_FOSR_Msk /*!< FOSR[9:0] Sinc filter oversampling ratio (decimation rate) */
  6002. #define DFSDM_FLTFCR_IOSR_Pos (0U)
  6003. #define DFSDM_FLTFCR_IOSR_Msk (0xFFUL << DFSDM_FLTFCR_IOSR_Pos) /*!< 0x000000FF */
  6004. #define DFSDM_FLTFCR_IOSR DFSDM_FLTFCR_IOSR_Msk /*!< IOSR[7:0] Integrator oversampling ratio (averaging length) */
  6005. /****************** Bit definition for DFSDM_FLTJDATAR register *****************/
  6006. #define DFSDM_FLTJDATAR_JDATA_Pos (8U)
  6007. #define DFSDM_FLTJDATAR_JDATA_Msk (0xFFFFFFUL << DFSDM_FLTJDATAR_JDATA_Pos) /*!< 0xFFFFFF00 */
  6008. #define DFSDM_FLTJDATAR_JDATA DFSDM_FLTJDATAR_JDATA_Msk /*!< JDATA[23:0] Injected group conversion data */
  6009. #define DFSDM_FLTJDATAR_JDATACH_Pos (0U)
  6010. #define DFSDM_FLTJDATAR_JDATACH_Msk (0x7UL << DFSDM_FLTJDATAR_JDATACH_Pos) /*!< 0x00000007 */
  6011. #define DFSDM_FLTJDATAR_JDATACH DFSDM_FLTJDATAR_JDATACH_Msk /*!< JDATACH[2:0] Injected channel most recently converted */
  6012. /****************** Bit definition for DFSDM_FLTRDATAR register *****************/
  6013. #define DFSDM_FLTRDATAR_RDATA_Pos (8U)
  6014. #define DFSDM_FLTRDATAR_RDATA_Msk (0xFFFFFFUL << DFSDM_FLTRDATAR_RDATA_Pos) /*!< 0xFFFFFF00 */
  6015. #define DFSDM_FLTRDATAR_RDATA DFSDM_FLTRDATAR_RDATA_Msk /*!< RDATA[23:0] Regular channel conversion data */
  6016. #define DFSDM_FLTRDATAR_RPEND_Pos (4U)
  6017. #define DFSDM_FLTRDATAR_RPEND_Msk (0x1UL << DFSDM_FLTRDATAR_RPEND_Pos) /*!< 0x00000010 */
  6018. #define DFSDM_FLTRDATAR_RPEND DFSDM_FLTRDATAR_RPEND_Msk /*!< RPEND Regular channel pending data */
  6019. #define DFSDM_FLTRDATAR_RDATACH_Pos (0U)
  6020. #define DFSDM_FLTRDATAR_RDATACH_Msk (0x7UL << DFSDM_FLTRDATAR_RDATACH_Pos) /*!< 0x00000007 */
  6021. #define DFSDM_FLTRDATAR_RDATACH DFSDM_FLTRDATAR_RDATACH_Msk /*!< RDATACH[2:0] Regular channel most recently converted */
  6022. /****************** Bit definition for DFSDM_FLTAWHTR register ******************/
  6023. #define DFSDM_FLTAWHTR_AWHT_Pos (8U)
  6024. #define DFSDM_FLTAWHTR_AWHT_Msk (0xFFFFFFUL << DFSDM_FLTAWHTR_AWHT_Pos) /*!< 0xFFFFFF00 */
  6025. #define DFSDM_FLTAWHTR_AWHT DFSDM_FLTAWHTR_AWHT_Msk /*!< AWHT[23:0] Analog watchdog high threshold */
  6026. #define DFSDM_FLTAWHTR_BKAWH_Pos (0U)
  6027. #define DFSDM_FLTAWHTR_BKAWH_Msk (0xFUL << DFSDM_FLTAWHTR_BKAWH_Pos) /*!< 0x0000000F */
  6028. #define DFSDM_FLTAWHTR_BKAWH DFSDM_FLTAWHTR_BKAWH_Msk /*!< BKAWH[3:0] Break signal assignment to analog watchdog high threshold event */
  6029. /****************** Bit definition for DFSDM_FLTAWLTR register ******************/
  6030. #define DFSDM_FLTAWLTR_AWLT_Pos (8U)
  6031. #define DFSDM_FLTAWLTR_AWLT_Msk (0xFFFFFFUL << DFSDM_FLTAWLTR_AWLT_Pos) /*!< 0xFFFFFF00 */
  6032. #define DFSDM_FLTAWLTR_AWLT DFSDM_FLTAWLTR_AWLT_Msk /*!< AWHT[23:0] Analog watchdog low threshold */
  6033. #define DFSDM_FLTAWLTR_BKAWL_Pos (0U)
  6034. #define DFSDM_FLTAWLTR_BKAWL_Msk (0xFUL << DFSDM_FLTAWLTR_BKAWL_Pos) /*!< 0x0000000F */
  6035. #define DFSDM_FLTAWLTR_BKAWL DFSDM_FLTAWLTR_BKAWL_Msk /*!< BKAWL[3:0] Break signal assignment to analog watchdog low threshold event */
  6036. /****************** Bit definition for DFSDM_FLTAWSR register ******************/
  6037. #define DFSDM_FLTAWSR_AWHTF_Pos (8U)
  6038. #define DFSDM_FLTAWSR_AWHTF_Msk (0xFFUL << DFSDM_FLTAWSR_AWHTF_Pos) /*!< 0x0000FF00 */
  6039. #define DFSDM_FLTAWSR_AWHTF DFSDM_FLTAWSR_AWHTF_Msk /*!< AWHTF[15:8] Analog watchdog high threshold error on given channels */
  6040. #define DFSDM_FLTAWSR_AWLTF_Pos (0U)
  6041. #define DFSDM_FLTAWSR_AWLTF_Msk (0xFFUL << DFSDM_FLTAWSR_AWLTF_Pos) /*!< 0x000000FF */
  6042. #define DFSDM_FLTAWSR_AWLTF DFSDM_FLTAWSR_AWLTF_Msk /*!< AWLTF[7:0] Analog watchdog low threshold error on given channels */
  6043. /****************** Bit definition for DFSDM_FLTAWCFR) register *****************/
  6044. #define DFSDM_FLTAWCFR_CLRAWHTF_Pos (8U)
  6045. #define DFSDM_FLTAWCFR_CLRAWHTF_Msk (0xFFUL << DFSDM_FLTAWCFR_CLRAWHTF_Pos) /*!< 0x0000FF00 */
  6046. #define DFSDM_FLTAWCFR_CLRAWHTF DFSDM_FLTAWCFR_CLRAWHTF_Msk /*!< CLRAWHTF[15:8] Clear the Analog watchdog high threshold flag */
  6047. #define DFSDM_FLTAWCFR_CLRAWLTF_Pos (0U)
  6048. #define DFSDM_FLTAWCFR_CLRAWLTF_Msk (0xFFUL << DFSDM_FLTAWCFR_CLRAWLTF_Pos) /*!< 0x000000FF */
  6049. #define DFSDM_FLTAWCFR_CLRAWLTF DFSDM_FLTAWCFR_CLRAWLTF_Msk /*!< CLRAWLTF[7:0] Clear the Analog watchdog low threshold flag */
  6050. /****************** Bit definition for DFSDM_FLTEXMAX register ******************/
  6051. #define DFSDM_FLTEXMAX_EXMAX_Pos (8U)
  6052. #define DFSDM_FLTEXMAX_EXMAX_Msk (0xFFFFFFUL << DFSDM_FLTEXMAX_EXMAX_Pos) /*!< 0xFFFFFF00 */
  6053. #define DFSDM_FLTEXMAX_EXMAX DFSDM_FLTEXMAX_EXMAX_Msk /*!< EXMAX[23:0] Extreme detector maximum value */
  6054. #define DFSDM_FLTEXMAX_EXMAXCH_Pos (0U)
  6055. #define DFSDM_FLTEXMAX_EXMAXCH_Msk (0x7UL << DFSDM_FLTEXMAX_EXMAXCH_Pos) /*!< 0x00000007 */
  6056. #define DFSDM_FLTEXMAX_EXMAXCH DFSDM_FLTEXMAX_EXMAXCH_Msk /*!< EXMAXCH[2:0] Extreme detector maximum data channel */
  6057. /****************** Bit definition for DFSDM_FLTEXMIN register ******************/
  6058. #define DFSDM_FLTEXMIN_EXMIN_Pos (8U)
  6059. #define DFSDM_FLTEXMIN_EXMIN_Msk (0xFFFFFFUL << DFSDM_FLTEXMIN_EXMIN_Pos) /*!< 0xFFFFFF00 */
  6060. #define DFSDM_FLTEXMIN_EXMIN DFSDM_FLTEXMIN_EXMIN_Msk /*!< EXMIN[23:0] Extreme detector minimum value */
  6061. #define DFSDM_FLTEXMIN_EXMINCH_Pos (0U)
  6062. #define DFSDM_FLTEXMIN_EXMINCH_Msk (0x7UL << DFSDM_FLTEXMIN_EXMINCH_Pos) /*!< 0x00000007 */
  6063. #define DFSDM_FLTEXMIN_EXMINCH DFSDM_FLTEXMIN_EXMINCH_Msk /*!< EXMINCH[2:0] Extreme detector minimum data channel */
  6064. /****************** Bit definition for DFSDM_FLTCNVTIMR register ******************/
  6065. #define DFSDM_FLTCNVTIMR_CNVCNT_Pos (4U)
  6066. #define DFSDM_FLTCNVTIMR_CNVCNT_Msk (0xFFFFFFFUL << DFSDM_FLTCNVTIMR_CNVCNT_Pos) /*!< 0xFFFFFFF0 */
  6067. #define DFSDM_FLTCNVTIMR_CNVCNT DFSDM_FLTCNVTIMR_CNVCNT_Msk /*!< CNVCNT[27:0]: 28-bit timer counting conversion time */
  6068. /******************************************************************************/
  6069. /* */
  6070. /* BDMA Controller */
  6071. /* */
  6072. /******************************************************************************/
  6073. /******************* Bit definition for BDMA_ISR register ********************/
  6074. #define BDMA_ISR_GIF0_Pos (0U)
  6075. #define BDMA_ISR_GIF0_Msk (0x1UL << BDMA_ISR_GIF0_Pos) /*!< 0x00000001 */
  6076. #define BDMA_ISR_GIF0 BDMA_ISR_GIF0_Msk /*!< Channel 0 Global interrupt flag */
  6077. #define BDMA_ISR_TCIF0_Pos (1U)
  6078. #define BDMA_ISR_TCIF0_Msk (0x1UL << BDMA_ISR_TCIF0_Pos) /*!< 0x00000002 */
  6079. #define BDMA_ISR_TCIF0 BDMA_ISR_TCIF0_Msk /*!< Channel 0 Transfer Complete flag */
  6080. #define BDMA_ISR_HTIF0_Pos (2U)
  6081. #define BDMA_ISR_HTIF0_Msk (0x1UL << BDMA_ISR_HTIF0_Pos) /*!< 0x00000004 */
  6082. #define BDMA_ISR_HTIF0 BDMA_ISR_HTIF0_Msk /*!< Channel 0 Half Transfer flag */
  6083. #define BDMA_ISR_TEIF0_Pos (3U)
  6084. #define BDMA_ISR_TEIF0_Msk (0x1UL << BDMA_ISR_TEIF0_Pos) /*!< 0x00000008 */
  6085. #define BDMA_ISR_TEIF0 BDMA_ISR_TEIF0_Msk /*!< Channel 0 Transfer Error flag */
  6086. #define BDMA_ISR_GIF1_Pos (4U)
  6087. #define BDMA_ISR_GIF1_Msk (0x1UL << BDMA_ISR_GIF1_Pos) /*!< 0x00000010 */
  6088. #define BDMA_ISR_GIF1 BDMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  6089. #define BDMA_ISR_TCIF1_Pos (5U)
  6090. #define BDMA_ISR_TCIF1_Msk (0x1UL << BDMA_ISR_TCIF1_Pos) /*!< 0x00000020 */
  6091. #define BDMA_ISR_TCIF1 BDMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  6092. #define BDMA_ISR_HTIF1_Pos (6U)
  6093. #define BDMA_ISR_HTIF1_Msk (0x1UL << BDMA_ISR_HTIF1_Pos) /*!< 0x00000040 */
  6094. #define BDMA_ISR_HTIF1 BDMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  6095. #define BDMA_ISR_TEIF1_Pos (7U)
  6096. #define BDMA_ISR_TEIF1_Msk (0x1UL << BDMA_ISR_TEIF1_Pos) /*!< 0x00000080 */
  6097. #define BDMA_ISR_TEIF1 BDMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  6098. #define BDMA_ISR_GIF2_Pos (8U)
  6099. #define BDMA_ISR_GIF2_Msk (0x1UL << BDMA_ISR_GIF2_Pos) /*!< 0x00000100 */
  6100. #define BDMA_ISR_GIF2 BDMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  6101. #define BDMA_ISR_TCIF2_Pos (9U)
  6102. #define BDMA_ISR_TCIF2_Msk (0x1UL << BDMA_ISR_TCIF2_Pos) /*!< 0x00000200 */
  6103. #define BDMA_ISR_TCIF2 BDMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  6104. #define BDMA_ISR_HTIF2_Pos (10U)
  6105. #define BDMA_ISR_HTIF2_Msk (0x1UL << BDMA_ISR_HTIF2_Pos) /*!< 0x00000400 */
  6106. #define BDMA_ISR_HTIF2 BDMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  6107. #define BDMA_ISR_TEIF2_Pos (11U)
  6108. #define BDMA_ISR_TEIF2_Msk (0x1UL << BDMA_ISR_TEIF2_Pos) /*!< 0x00000800 */
  6109. #define BDMA_ISR_TEIF2 BDMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  6110. #define BDMA_ISR_GIF3_Pos (12U)
  6111. #define BDMA_ISR_GIF3_Msk (0x1UL << BDMA_ISR_GIF3_Pos) /*!< 0x00001000 */
  6112. #define BDMA_ISR_GIF3 BDMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  6113. #define BDMA_ISR_TCIF3_Pos (13U)
  6114. #define BDMA_ISR_TCIF3_Msk (0x1UL << BDMA_ISR_TCIF3_Pos) /*!< 0x00002000 */
  6115. #define BDMA_ISR_TCIF3 BDMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  6116. #define BDMA_ISR_HTIF3_Pos (14U)
  6117. #define BDMA_ISR_HTIF3_Msk (0x1UL << BDMA_ISR_HTIF3_Pos) /*!< 0x00004000 */
  6118. #define BDMA_ISR_HTIF3 BDMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  6119. #define BDMA_ISR_TEIF3_Pos (15U)
  6120. #define BDMA_ISR_TEIF3_Msk (0x1UL << BDMA_ISR_TEIF3_Pos) /*!< 0x00008000 */
  6121. #define BDMA_ISR_TEIF3 BDMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  6122. #define BDMA_ISR_GIF4_Pos (16U)
  6123. #define BDMA_ISR_GIF4_Msk (0x1UL << BDMA_ISR_GIF4_Pos) /*!< 0x00010000 */
  6124. #define BDMA_ISR_GIF4 BDMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  6125. #define BDMA_ISR_TCIF4_Pos (17U)
  6126. #define BDMA_ISR_TCIF4_Msk (0x1UL << BDMA_ISR_TCIF4_Pos) /*!< 0x00020000 */
  6127. #define BDMA_ISR_TCIF4 BDMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  6128. #define BDMA_ISR_HTIF4_Pos (18U)
  6129. #define BDMA_ISR_HTIF4_Msk (0x1UL << BDMA_ISR_HTIF4_Pos) /*!< 0x00040000 */
  6130. #define BDMA_ISR_HTIF4 BDMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  6131. #define BDMA_ISR_TEIF4_Pos (19U)
  6132. #define BDMA_ISR_TEIF4_Msk (0x1UL << BDMA_ISR_TEIF4_Pos) /*!< 0x00080000 */
  6133. #define BDMA_ISR_TEIF4 BDMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  6134. #define BDMA_ISR_GIF5_Pos (20U)
  6135. #define BDMA_ISR_GIF5_Msk (0x1UL << BDMA_ISR_GIF5_Pos) /*!< 0x00100000 */
  6136. #define BDMA_ISR_GIF5 BDMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  6137. #define BDMA_ISR_TCIF5_Pos (21U)
  6138. #define BDMA_ISR_TCIF5_Msk (0x1UL << BDMA_ISR_TCIF5_Pos) /*!< 0x00200000 */
  6139. #define BDMA_ISR_TCIF5 BDMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  6140. #define BDMA_ISR_HTIF5_Pos (22U)
  6141. #define BDMA_ISR_HTIF5_Msk (0x1UL << BDMA_ISR_HTIF5_Pos) /*!< 0x00400000 */
  6142. #define BDMA_ISR_HTIF5 BDMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  6143. #define BDMA_ISR_TEIF5_Pos (23U)
  6144. #define BDMA_ISR_TEIF5_Msk (0x1UL << BDMA_ISR_TEIF5_Pos) /*!< 0x00800000 */
  6145. #define BDMA_ISR_TEIF5 BDMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  6146. #define BDMA_ISR_GIF6_Pos (24U)
  6147. #define BDMA_ISR_GIF6_Msk (0x1UL << BDMA_ISR_GIF6_Pos) /*!< 0x01000000 */
  6148. #define BDMA_ISR_GIF6 BDMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  6149. #define BDMA_ISR_TCIF6_Pos (25U)
  6150. #define BDMA_ISR_TCIF6_Msk (0x1UL << BDMA_ISR_TCIF6_Pos) /*!< 0x02000000 */
  6151. #define BDMA_ISR_TCIF6 BDMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  6152. #define BDMA_ISR_HTIF6_Pos (26U)
  6153. #define BDMA_ISR_HTIF6_Msk (0x1UL << BDMA_ISR_HTIF6_Pos) /*!< 0x04000000 */
  6154. #define BDMA_ISR_HTIF6 BDMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  6155. #define BDMA_ISR_TEIF6_Pos (27U)
  6156. #define BDMA_ISR_TEIF6_Msk (0x1UL << BDMA_ISR_TEIF6_Pos) /*!< 0x08000000 */
  6157. #define BDMA_ISR_TEIF6 BDMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  6158. #define BDMA_ISR_GIF7_Pos (28U)
  6159. #define BDMA_ISR_GIF7_Msk (0x1UL << BDMA_ISR_GIF7_Pos) /*!< 0x10000000 */
  6160. #define BDMA_ISR_GIF7 BDMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  6161. #define BDMA_ISR_TCIF7_Pos (29U)
  6162. #define BDMA_ISR_TCIF7_Msk (0x1UL << BDMA_ISR_TCIF7_Pos) /*!< 0x20000000 */
  6163. #define BDMA_ISR_TCIF7 BDMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  6164. #define BDMA_ISR_HTIF7_Pos (30U)
  6165. #define BDMA_ISR_HTIF7_Msk (0x1UL << BDMA_ISR_HTIF7_Pos) /*!< 0x40000000 */
  6166. #define BDMA_ISR_HTIF7 BDMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  6167. #define BDMA_ISR_TEIF7_Pos (31U)
  6168. #define BDMA_ISR_TEIF7_Msk (0x1UL << BDMA_ISR_TEIF7_Pos) /*!< 0x80000000 */
  6169. #define BDMA_ISR_TEIF7 BDMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  6170. /******************* Bit definition for BDMA_IFCR register *******************/
  6171. #define BDMA_IFCR_CGIF0_Pos (0U)
  6172. #define BDMA_IFCR_CGIF0_Msk (0x1UL << BDMA_IFCR_CGIF0_Pos) /*!< 0x00000001 */
  6173. #define BDMA_IFCR_CGIF0 BDMA_IFCR_CGIF0_Msk /*!< Channel 0 Global interrupt clearr */
  6174. #define BDMA_IFCR_CTCIF0_Pos (1U)
  6175. #define BDMA_IFCR_CTCIF0_Msk (0x1UL << BDMA_IFCR_CTCIF0_Pos) /*!< 0x00000002 */
  6176. #define BDMA_IFCR_CTCIF0 BDMA_IFCR_CTCIF0_Msk /*!< Channel 0 Transfer Complete clear */
  6177. #define BDMA_IFCR_CHTIF0_Pos (2U)
  6178. #define BDMA_IFCR_CHTIF0_Msk (0x1UL << BDMA_IFCR_CHTIF0_Pos) /*!< 0x00000004 */
  6179. #define BDMA_IFCR_CHTIF0 BDMA_IFCR_CHTIF0_Msk /*!< Channel 0 Half Transfer clear */
  6180. #define BDMA_IFCR_CTEIF0_Pos (3U)
  6181. #define BDMA_IFCR_CTEIF0_Msk (0x1UL << BDMA_IFCR_CTEIF0_Pos) /*!< 0x00000008 */
  6182. #define BDMA_IFCR_CTEIF0 BDMA_IFCR_CTEIF0_Msk /*!< Channel 0 Transfer Error clear */
  6183. #define BDMA_IFCR_CGIF1_Pos (4U)
  6184. #define BDMA_IFCR_CGIF1_Msk (0x1UL << BDMA_IFCR_CGIF1_Pos) /*!< 0x00000010 */
  6185. #define BDMA_IFCR_CGIF1 BDMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */
  6186. #define BDMA_IFCR_CTCIF1_Pos (5U)
  6187. #define BDMA_IFCR_CTCIF1_Msk (0x1UL << BDMA_IFCR_CTCIF1_Pos) /*!< 0x00000020 */
  6188. #define BDMA_IFCR_CTCIF1 BDMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  6189. #define BDMA_IFCR_CHTIF1_Pos (6U)
  6190. #define BDMA_IFCR_CHTIF1_Msk (0x1UL << BDMA_IFCR_CHTIF1_Pos) /*!< 0x00000040 */
  6191. #define BDMA_IFCR_CHTIF1 BDMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  6192. #define BDMA_IFCR_CTEIF1_Pos (7U)
  6193. #define BDMA_IFCR_CTEIF1_Msk (0x1UL << BDMA_IFCR_CTEIF1_Pos) /*!< 0x00000080 */
  6194. #define BDMA_IFCR_CTEIF1 BDMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  6195. #define BDMA_IFCR_CGIF2_Pos (8U)
  6196. #define BDMA_IFCR_CGIF2_Msk (0x1UL << BDMA_IFCR_CGIF2_Pos) /*!< 0x00000100 */
  6197. #define BDMA_IFCR_CGIF2 BDMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  6198. #define BDMA_IFCR_CTCIF2_Pos (9U)
  6199. #define BDMA_IFCR_CTCIF2_Msk (0x1UL << BDMA_IFCR_CTCIF2_Pos) /*!< 0x00000200 */
  6200. #define BDMA_IFCR_CTCIF2 BDMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  6201. #define BDMA_IFCR_CHTIF2_Pos (10U)
  6202. #define BDMA_IFCR_CHTIF2_Msk (0x1UL << BDMA_IFCR_CHTIF2_Pos) /*!< 0x00000400 */
  6203. #define BDMA_IFCR_CHTIF2 BDMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  6204. #define BDMA_IFCR_CTEIF2_Pos (11U)
  6205. #define BDMA_IFCR_CTEIF2_Msk (0x1UL << BDMA_IFCR_CTEIF2_Pos) /*!< 0x00000800 */
  6206. #define BDMA_IFCR_CTEIF2 BDMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  6207. #define BDMA_IFCR_CGIF3_Pos (12U)
  6208. #define BDMA_IFCR_CGIF3_Msk (0x1UL << BDMA_IFCR_CGIF3_Pos) /*!< 0x00001000 */
  6209. #define BDMA_IFCR_CGIF3 BDMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  6210. #define BDMA_IFCR_CTCIF3_Pos (13U)
  6211. #define BDMA_IFCR_CTCIF3_Msk (0x1UL << BDMA_IFCR_CTCIF3_Pos) /*!< 0x00002000 */
  6212. #define BDMA_IFCR_CTCIF3 BDMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  6213. #define BDMA_IFCR_CHTIF3_Pos (14U)
  6214. #define BDMA_IFCR_CHTIF3_Msk (0x1UL << BDMA_IFCR_CHTIF3_Pos) /*!< 0x00004000 */
  6215. #define BDMA_IFCR_CHTIF3 BDMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  6216. #define BDMA_IFCR_CTEIF3_Pos (15U)
  6217. #define BDMA_IFCR_CTEIF3_Msk (0x1UL << BDMA_IFCR_CTEIF3_Pos) /*!< 0x00008000 */
  6218. #define BDMA_IFCR_CTEIF3 BDMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  6219. #define BDMA_IFCR_CGIF4_Pos (16U)
  6220. #define BDMA_IFCR_CGIF4_Msk (0x1UL << BDMA_IFCR_CGIF4_Pos) /*!< 0x00010000 */
  6221. #define BDMA_IFCR_CGIF4 BDMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  6222. #define BDMA_IFCR_CTCIF4_Pos (17U)
  6223. #define BDMA_IFCR_CTCIF4_Msk (0x1UL << BDMA_IFCR_CTCIF4_Pos) /*!< 0x00020000 */
  6224. #define BDMA_IFCR_CTCIF4 BDMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  6225. #define BDMA_IFCR_CHTIF4_Pos (18U)
  6226. #define BDMA_IFCR_CHTIF4_Msk (0x1UL << BDMA_IFCR_CHTIF4_Pos) /*!< 0x00040000 */
  6227. #define BDMA_IFCR_CHTIF4 BDMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  6228. #define BDMA_IFCR_CTEIF4_Pos (19U)
  6229. #define BDMA_IFCR_CTEIF4_Msk (0x1UL << BDMA_IFCR_CTEIF4_Pos) /*!< 0x00080000 */
  6230. #define BDMA_IFCR_CTEIF4 BDMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  6231. #define BDMA_IFCR_CGIF5_Pos (20U)
  6232. #define BDMA_IFCR_CGIF5_Msk (0x1UL << BDMA_IFCR_CGIF5_Pos) /*!< 0x00100000 */
  6233. #define BDMA_IFCR_CGIF5 BDMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  6234. #define BDMA_IFCR_CTCIF5_Pos (21U)
  6235. #define BDMA_IFCR_CTCIF5_Msk (0x1UL << BDMA_IFCR_CTCIF5_Pos) /*!< 0x00200000 */
  6236. #define BDMA_IFCR_CTCIF5 BDMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  6237. #define BDMA_IFCR_CHTIF5_Pos (22U)
  6238. #define BDMA_IFCR_CHTIF5_Msk (0x1UL << BDMA_IFCR_CHTIF5_Pos) /*!< 0x00400000 */
  6239. #define BDMA_IFCR_CHTIF5 BDMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  6240. #define BDMA_IFCR_CTEIF5_Pos (23U)
  6241. #define BDMA_IFCR_CTEIF5_Msk (0x1UL << BDMA_IFCR_CTEIF5_Pos) /*!< 0x00800000 */
  6242. #define BDMA_IFCR_CTEIF5 BDMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  6243. #define BDMA_IFCR_CGIF6_Pos (24U)
  6244. #define BDMA_IFCR_CGIF6_Msk (0x1UL << BDMA_IFCR_CGIF6_Pos) /*!< 0x01000000 */
  6245. #define BDMA_IFCR_CGIF6 BDMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  6246. #define BDMA_IFCR_CTCIF6_Pos (25U)
  6247. #define BDMA_IFCR_CTCIF6_Msk (0x1UL << BDMA_IFCR_CTCIF6_Pos) /*!< 0x02000000 */
  6248. #define BDMA_IFCR_CTCIF6 BDMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  6249. #define BDMA_IFCR_CHTIF6_Pos (26U)
  6250. #define BDMA_IFCR_CHTIF6_Msk (0x1UL << BDMA_IFCR_CHTIF6_Pos) /*!< 0x04000000 */
  6251. #define BDMA_IFCR_CHTIF6 BDMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  6252. #define BDMA_IFCR_CTEIF6_Pos (27U)
  6253. #define BDMA_IFCR_CTEIF6_Msk (0x1UL << BDMA_IFCR_CTEIF6_Pos) /*!< 0x08000000 */
  6254. #define BDMA_IFCR_CTEIF6 BDMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  6255. #define BDMA_IFCR_CGIF7_Pos (28U)
  6256. #define BDMA_IFCR_CGIF7_Msk (0x1UL << BDMA_IFCR_CGIF7_Pos) /*!< 0x10000000 */
  6257. #define BDMA_IFCR_CGIF7 BDMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  6258. #define BDMA_IFCR_CTCIF7_Pos (29U)
  6259. #define BDMA_IFCR_CTCIF7_Msk (0x1UL << BDMA_IFCR_CTCIF7_Pos) /*!< 0x20000000 */
  6260. #define BDMA_IFCR_CTCIF7 BDMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  6261. #define BDMA_IFCR_CHTIF7_Pos (30U)
  6262. #define BDMA_IFCR_CHTIF7_Msk (0x1UL << BDMA_IFCR_CHTIF7_Pos) /*!< 0x40000000 */
  6263. #define BDMA_IFCR_CHTIF7 BDMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  6264. #define BDMA_IFCR_CTEIF7_Pos (31U)
  6265. #define BDMA_IFCR_CTEIF7_Msk (0x1UL << BDMA_IFCR_CTEIF7_Pos) /*!< 0x80000000 */
  6266. #define BDMA_IFCR_CTEIF7 BDMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  6267. /******************* Bit definition for BDMA_CCR register ********************/
  6268. #define BDMA_CCR_EN_Pos (0U)
  6269. #define BDMA_CCR_EN_Msk (0x1UL << BDMA_CCR_EN_Pos) /*!< 0x00000001 */
  6270. #define BDMA_CCR_EN BDMA_CCR_EN_Msk /*!< Channel enable */
  6271. #define BDMA_CCR_TCIE_Pos (1U)
  6272. #define BDMA_CCR_TCIE_Msk (0x1UL << BDMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  6273. #define BDMA_CCR_TCIE BDMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  6274. #define BDMA_CCR_HTIE_Pos (2U)
  6275. #define BDMA_CCR_HTIE_Msk (0x1UL << BDMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  6276. #define BDMA_CCR_HTIE BDMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  6277. #define BDMA_CCR_TEIE_Pos (3U)
  6278. #define BDMA_CCR_TEIE_Msk (0x1UL << BDMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  6279. #define BDMA_CCR_TEIE BDMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  6280. #define BDMA_CCR_DIR_Pos (4U)
  6281. #define BDMA_CCR_DIR_Msk (0x1UL << BDMA_CCR_DIR_Pos) /*!< 0x00000010 */
  6282. #define BDMA_CCR_DIR BDMA_CCR_DIR_Msk /*!< Data transfer direction */
  6283. #define BDMA_CCR_CIRC_Pos (5U)
  6284. #define BDMA_CCR_CIRC_Msk (0x1UL << BDMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  6285. #define BDMA_CCR_CIRC BDMA_CCR_CIRC_Msk /*!< Circular mode */
  6286. #define BDMA_CCR_PINC_Pos (6U)
  6287. #define BDMA_CCR_PINC_Msk (0x1UL << BDMA_CCR_PINC_Pos) /*!< 0x00000040 */
  6288. #define BDMA_CCR_PINC BDMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  6289. #define BDMA_CCR_MINC_Pos (7U)
  6290. #define BDMA_CCR_MINC_Msk (0x1UL << BDMA_CCR_MINC_Pos) /*!< 0x00000080 */
  6291. #define BDMA_CCR_MINC BDMA_CCR_MINC_Msk /*!< Memory increment mode */
  6292. #define BDMA_CCR_PSIZE_Pos (8U)
  6293. #define BDMA_CCR_PSIZE_Msk (0x3UL << BDMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  6294. #define BDMA_CCR_PSIZE BDMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  6295. #define BDMA_CCR_PSIZE_0 (0x1UL << BDMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  6296. #define BDMA_CCR_PSIZE_1 (0x2UL << BDMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  6297. #define BDMA_CCR_MSIZE_Pos (10U)
  6298. #define BDMA_CCR_MSIZE_Msk (0x3UL << BDMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  6299. #define BDMA_CCR_MSIZE BDMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  6300. #define BDMA_CCR_MSIZE_0 (0x1UL << BDMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  6301. #define BDMA_CCR_MSIZE_1 (0x2UL << BDMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  6302. #define BDMA_CCR_PL_Pos (12U)
  6303. #define BDMA_CCR_PL_Msk (0x3UL << BDMA_CCR_PL_Pos) /*!< 0x00003000 */
  6304. #define BDMA_CCR_PL BDMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  6305. #define BDMA_CCR_PL_0 (0x1UL << BDMA_CCR_PL_Pos) /*!< 0x00001000 */
  6306. #define BDMA_CCR_PL_1 (0x2UL << BDMA_CCR_PL_Pos) /*!< 0x00002000 */
  6307. #define BDMA_CCR_MEM2MEM_Pos (14U)
  6308. #define BDMA_CCR_MEM2MEM_Msk (0x1UL << BDMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  6309. #define BDMA_CCR_MEM2MEM BDMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  6310. #define BDMA_CCR_DBM_Pos (15U)
  6311. #define BDMA_CCR_DBM_Msk (0x1UL << BDMA_CCR_DBM_Pos) /*!< 0x0000A000 */
  6312. #define BDMA_CCR_DBM BDMA_CCR_DBM_Msk /*!< Memory to memory mode */
  6313. #define BDMA_CCR_CT_Pos (16U)
  6314. #define BDMA_CCR_CT_Msk (0x1UL << BDMA_CCR_CT_Pos) /*!< 0x00010000 */
  6315. #define BDMA_CCR_CT BDMA_CCR_CT_Msk /*!< Memory to memory mode */
  6316. /****************** Bit definition for BDMA_CNDTR register *******************/
  6317. #define BDMA_CNDTR_NDT_Pos (0U)
  6318. #define BDMA_CNDTR_NDT_Msk (0xFFFFUL << BDMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  6319. #define BDMA_CNDTR_NDT BDMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  6320. /****************** Bit definition for BDMA_CPAR register ********************/
  6321. #define BDMA_CPAR_PA_Pos (0U)
  6322. #define BDMA_CPAR_PA_Msk (0xFFFFFFFFUL << BDMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  6323. #define BDMA_CPAR_PA BDMA_CPAR_PA_Msk /*!< Peripheral Address */
  6324. /****************** Bit definition for BDMA_CM0AR register ********************/
  6325. #define BDMA_CM0AR_MA_Pos (0U)
  6326. #define BDMA_CM0AR_MA_Msk (0xFFFFFFFFUL << BDMA_CM0AR_MA_Pos) /*!< 0xFFFFFFFF */
  6327. #define BDMA_CM0AR_MA BDMA_CM0AR_MA_Msk /*!< Memory Address */
  6328. /****************** Bit definition for BDMA_CM1AR register ********************/
  6329. #define BDMA_CM1AR_MA_Pos (0U)
  6330. #define BDMA_CM1AR_MA_Msk (0xFFFFFFFFUL << BDMA_CM1AR_MA_Pos) /*!< 0xFFFFFFFF */
  6331. #define BDMA_CM1AR_MA BDMA_CM1AR_MA_Msk /*!< Memory Address */
  6332. /******************************************************************************/
  6333. /* */
  6334. /* Ethernet MAC Registers bits definitions */
  6335. /* */
  6336. /******************************************************************************/
  6337. /* Bit definition for Ethernet MAC Configuration Register register */
  6338. #define ETH_MACCR_ARP_Pos (31U)
  6339. #define ETH_MACCR_ARP_Msk (0x1UL << ETH_MACCR_ARP_Pos) /*!< 0x80000000 */
  6340. #define ETH_MACCR_ARP ETH_MACCR_ARP_Msk /* ARP Offload Enable */
  6341. #define ETH_MACCR_SARC_Pos (28U)
  6342. #define ETH_MACCR_SARC_Msk (0x7UL << ETH_MACCR_SARC_Pos) /*!< 0x70000000 */
  6343. #define ETH_MACCR_SARC ETH_MACCR_SARC_Msk /* Source Address Insertion or Replacement Control */
  6344. #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. */
  6345. #define ETH_MACCR_SARC_INSADDR0_Pos (29U)
  6346. #define ETH_MACCR_SARC_INSADDR0_Msk (0x1UL << ETH_MACCR_SARC_INSADDR0_Pos) /*!< 0x20000000 */
  6347. #define ETH_MACCR_SARC_INSADDR0 ETH_MACCR_SARC_INSADDR0_Msk /* Insert MAC Address0 in the SA field of all transmitted packets. */
  6348. #define ETH_MACCR_SARC_INSADDR1_Pos (29U)
  6349. #define ETH_MACCR_SARC_INSADDR1_Msk (0x3UL << ETH_MACCR_SARC_INSADDR1_Pos) /*!< 0x60000000 */
  6350. #define ETH_MACCR_SARC_INSADDR1 ETH_MACCR_SARC_INSADDR1_Msk /* Insert MAC Address1 in the SA field of all transmitted packets. */
  6351. #define ETH_MACCR_SARC_REPADDR0_Pos (28U)
  6352. #define ETH_MACCR_SARC_REPADDR0_Msk (0x3UL << ETH_MACCR_SARC_REPADDR0_Pos) /*!< 0x30000000 */
  6353. #define ETH_MACCR_SARC_REPADDR0 ETH_MACCR_SARC_REPADDR0_Msk /* Replace MAC Address0 in the SA field of all transmitted packets. */
  6354. #define ETH_MACCR_SARC_REPADDR1_Pos (28U)
  6355. #define ETH_MACCR_SARC_REPADDR1_Msk (0x7UL << ETH_MACCR_SARC_REPADDR1_Pos) /*!< 0x70000000 */
  6356. #define ETH_MACCR_SARC_REPADDR1 ETH_MACCR_SARC_REPADDR1_Msk /* Replace MAC Address1 in the SA field of all transmitted packets. */
  6357. #define ETH_MACCR_IPC_Pos (27U)
  6358. #define ETH_MACCR_IPC_Msk (0x1UL << ETH_MACCR_IPC_Pos) /*!< 0x08000000 */
  6359. #define ETH_MACCR_IPC ETH_MACCR_IPC_Msk /* Checksum Offload */
  6360. #define ETH_MACCR_IPG_Pos (24U)
  6361. #define ETH_MACCR_IPG_Msk (0x7UL << ETH_MACCR_IPG_Pos) /*!< 0x07000000 */
  6362. #define ETH_MACCR_IPG ETH_MACCR_IPG_Msk /* Inter-Packet Gap */
  6363. #define ETH_MACCR_IPG_96BIT ((uint32_t)0x00000000) /* Minimum IFG between Packets during transmission is 96Bit */
  6364. #define ETH_MACCR_IPG_88BIT ((uint32_t)0x01000000) /* Minimum IFG between Packets during transmission is 88Bit */
  6365. #define ETH_MACCR_IPG_80BIT ((uint32_t)0x02000000) /* Minimum IFG between Packets during transmission is 80Bit */
  6366. #define ETH_MACCR_IPG_72BIT ((uint32_t)0x03000000) /* Minimum IFG between Packets during transmission is 72Bit */
  6367. #define ETH_MACCR_IPG_64BIT ((uint32_t)0x04000000) /* Minimum IFG between Packets during transmission is 64Bit */
  6368. #define ETH_MACCR_IPG_56BIT ((uint32_t)0x05000000) /* Minimum IFG between Packets during transmission is 56Bit */
  6369. #define ETH_MACCR_IPG_48BIT ((uint32_t)0x06000000) /* Minimum IFG between Packets during transmission is 48Bit */
  6370. #define ETH_MACCR_IPG_40BIT ((uint32_t)0x07000000) /* Minimum IFG between Packets during transmission is 40Bit */
  6371. #define ETH_MACCR_GPSLCE_Pos (23U)
  6372. #define ETH_MACCR_GPSLCE_Msk (0x1UL << ETH_MACCR_GPSLCE_Pos) /*!< 0x00800000 */
  6373. #define ETH_MACCR_GPSLCE ETH_MACCR_GPSLCE_Msk /* Giant Packet Size Limit Control Enable */
  6374. #define ETH_MACCR_S2KP_Pos (22U)
  6375. #define ETH_MACCR_S2KP_Msk (0x1UL << ETH_MACCR_S2KP_Pos) /*!< 0x00400000 */
  6376. #define ETH_MACCR_S2KP ETH_MACCR_S2KP_Msk /* IEEE 802.3as Support for 2K Packets */
  6377. #define ETH_MACCR_CST_Pos (21U)
  6378. #define ETH_MACCR_CST_Msk (0x1UL << ETH_MACCR_CST_Pos) /*!< 0x00200000 */
  6379. #define ETH_MACCR_CST ETH_MACCR_CST_Msk /* CRC stripping for Type packets */
  6380. #define ETH_MACCR_ACS_Pos (20U)
  6381. #define ETH_MACCR_ACS_Msk (0x1UL << ETH_MACCR_ACS_Pos) /*!< 0x00100000 */
  6382. #define ETH_MACCR_ACS ETH_MACCR_ACS_Msk /* Automatic Pad or CRC Stripping */
  6383. #define ETH_MACCR_WD_Pos (19U)
  6384. #define ETH_MACCR_WD_Msk (0x1UL << ETH_MACCR_WD_Pos) /*!< 0x00080000 */
  6385. #define ETH_MACCR_WD ETH_MACCR_WD_Msk /* Watchdog disable */
  6386. #define ETH_MACCR_JD_Pos (17U)
  6387. #define ETH_MACCR_JD_Msk (0x1UL << ETH_MACCR_JD_Pos) /*!< 0x00020000 */
  6388. #define ETH_MACCR_JD ETH_MACCR_JD_Msk /* Jabber disable */
  6389. #define ETH_MACCR_JE_Pos (16U)
  6390. #define ETH_MACCR_JE_Msk (0x1UL << ETH_MACCR_JE_Pos) /*!< 0x00010000 */
  6391. #define ETH_MACCR_JE ETH_MACCR_JE_Msk /* Jumbo Packet Enable */
  6392. #define ETH_MACCR_FES_Pos (14U)
  6393. #define ETH_MACCR_FES_Msk (0x1UL << ETH_MACCR_FES_Pos) /*!< 0x00004000 */
  6394. #define ETH_MACCR_FES ETH_MACCR_FES_Msk /* Fast ethernet speed */
  6395. #define ETH_MACCR_DM_Pos (13U)
  6396. #define ETH_MACCR_DM_Msk (0x1UL << ETH_MACCR_DM_Pos) /*!< 0x00002000 */
  6397. #define ETH_MACCR_DM ETH_MACCR_DM_Msk /* Duplex mode */
  6398. #define ETH_MACCR_LM_Pos (12U)
  6399. #define ETH_MACCR_LM_Msk (0x1UL << ETH_MACCR_LM_Pos) /*!< 0x00001000 */
  6400. #define ETH_MACCR_LM ETH_MACCR_LM_Msk /* loopback mode */
  6401. #define ETH_MACCR_ECRSFD_Pos (11U)
  6402. #define ETH_MACCR_ECRSFD_Msk (0x1UL << ETH_MACCR_ECRSFD_Pos) /*!< 0x00000800 */
  6403. #define ETH_MACCR_ECRSFD ETH_MACCR_ECRSFD_Msk /* Enable Carrier Sense Before Transmission in Full-Duplex Mode */
  6404. #define ETH_MACCR_DO_Pos (10U)
  6405. #define ETH_MACCR_DO_Msk (0x1UL << ETH_MACCR_DO_Pos) /*!< 0x00000400 */
  6406. #define ETH_MACCR_DO ETH_MACCR_DO_Msk /* Disable Receive own */
  6407. #define ETH_MACCR_DCRS_Pos (9U)
  6408. #define ETH_MACCR_DCRS_Msk (0x1UL << ETH_MACCR_DCRS_Pos) /*!< 0x00000200 */
  6409. #define ETH_MACCR_DCRS ETH_MACCR_DCRS_Msk /* Disable Carrier Sense During Transmission */
  6410. #define ETH_MACCR_DR_Pos (8U)
  6411. #define ETH_MACCR_DR_Msk (0x1UL << ETH_MACCR_DR_Pos) /*!< 0x00000100 */
  6412. #define ETH_MACCR_DR ETH_MACCR_DR_Msk /* Disable Retry */
  6413. #define ETH_MACCR_BL_Pos (5U)
  6414. #define ETH_MACCR_BL_Msk (0x3UL << ETH_MACCR_BL_Pos) /*!< 0x00000060 */
  6415. #define ETH_MACCR_BL ETH_MACCR_BL_Msk /* Back-off limit mask */
  6416. #define ETH_MACCR_BL_10 (0x0UL << ETH_MACCR_BL_Pos) /*!< 0x00000000 */
  6417. #define ETH_MACCR_BL_8 (0x1UL << ETH_MACCR_BL_Pos) /*!< 0x00000020 */
  6418. #define ETH_MACCR_BL_4 (0x2UL << ETH_MACCR_BL_Pos) /*!< 0x00000040 */
  6419. #define ETH_MACCR_BL_1 (0x3UL << ETH_MACCR_BL_Pos) /*!< 0x00000060 */
  6420. #define ETH_MACCR_DC_Pos (4U)
  6421. #define ETH_MACCR_DC_Msk (0x1UL << ETH_MACCR_DC_Pos) /*!< 0x00000010 */
  6422. #define ETH_MACCR_DC ETH_MACCR_DC_Msk /* Defferal check */
  6423. #define ETH_MACCR_PRELEN_Pos (2U)
  6424. #define ETH_MACCR_PRELEN_Msk (0x3UL << ETH_MACCR_PRELEN_Pos) /*!< 0x0000000C */
  6425. #define ETH_MACCR_PRELEN ETH_MACCR_PRELEN_Msk /* Preamble Length for Transmit packets */
  6426. #define ETH_MACCR_PRELEN_7 (0x0UL << ETH_MACCR_PRELEN_Pos) /*!< 0x00000000 */
  6427. #define ETH_MACCR_PRELEN_5 (0x1UL << ETH_MACCR_PRELEN_Pos) /*!< 0x00000004 */
  6428. #define ETH_MACCR_PRELEN_3 (0x2UL << ETH_MACCR_PRELEN_Pos) /*!< 0x00000008 */
  6429. #define ETH_MACCR_TE_Pos (1U)
  6430. #define ETH_MACCR_TE_Msk (0x1UL << ETH_MACCR_TE_Pos) /*!< 0x00000002 */
  6431. #define ETH_MACCR_TE ETH_MACCR_TE_Msk /* Transmitter enable */
  6432. #define ETH_MACCR_RE_Pos (0U)
  6433. #define ETH_MACCR_RE_Msk (0x1UL << ETH_MACCR_RE_Pos) /*!< 0x00000001 */
  6434. #define ETH_MACCR_RE ETH_MACCR_RE_Msk /* Receiver enable */
  6435. /* Bit definition for Ethernet MAC Extended Configuration Register register */
  6436. #define ETH_MACECR_EIPG_Pos (25U)
  6437. #define ETH_MACECR_EIPG_Msk (0x1FUL << ETH_MACECR_EIPG_Pos) /*!< 0x3E000000 */
  6438. #define ETH_MACECR_EIPG ETH_MACECR_EIPG_Msk /* Extended Inter-Packet Gap */
  6439. #define ETH_MACECR_EIPGEN_Pos (24U)
  6440. #define ETH_MACECR_EIPGEN_Msk (0x1UL << ETH_MACECR_EIPGEN_Pos) /*!< 0x01000000 */
  6441. #define ETH_MACECR_EIPGEN ETH_MACECR_EIPGEN_Msk /* Extended Inter-Packet Gap Enable */
  6442. #define ETH_MACECR_USP_Pos (18U)
  6443. #define ETH_MACECR_USP_Msk (0x1UL << ETH_MACECR_USP_Pos) /*!< 0x00040000 */
  6444. #define ETH_MACECR_USP ETH_MACECR_USP_Msk /* Unicast Slow Protocol Packet Detect */
  6445. #define ETH_MACECR_SPEN_Pos (17U)
  6446. #define ETH_MACECR_SPEN_Msk (0x1UL << ETH_MACECR_SPEN_Pos) /*!< 0x00020000 */
  6447. #define ETH_MACECR_SPEN ETH_MACECR_SPEN_Msk /* Slow Protocol Detection Enable */
  6448. #define ETH_MACECR_DCRCC_Pos (16U)
  6449. #define ETH_MACECR_DCRCC_Msk (0x1UL << ETH_MACECR_DCRCC_Pos) /*!< 0x00010000 */
  6450. #define ETH_MACECR_DCRCC ETH_MACECR_DCRCC_Msk /* Disable CRC Checking for Received Packets */
  6451. #define ETH_MACECR_GPSL_Pos (0U)
  6452. #define ETH_MACECR_GPSL_Msk (0x3FFFUL << ETH_MACECR_GPSL_Pos) /*!< 0x00003FFF */
  6453. #define ETH_MACECR_GPSL ETH_MACECR_GPSL_Msk /* Giant Packet Size Limit */
  6454. /* Bit definition for Ethernet MAC Packet Filter Register */
  6455. #define ETH_MACPFR_RA_Pos (31U)
  6456. #define ETH_MACPFR_RA_Msk (0x1UL << ETH_MACPFR_RA_Pos) /*!< 0x80000000 */
  6457. #define ETH_MACPFR_RA ETH_MACPFR_RA_Msk /* Receive all */
  6458. #define ETH_MACPFR_DNTU_Pos (21U)
  6459. #define ETH_MACPFR_DNTU_Msk (0x1UL << ETH_MACPFR_DNTU_Pos) /*!< 0x00200000 */
  6460. #define ETH_MACPFR_DNTU ETH_MACPFR_DNTU_Msk /* Drop Non-TCP/UDP over IP Packets */
  6461. #define ETH_MACPFR_IPFE_Pos (20U)
  6462. #define ETH_MACPFR_IPFE_Msk (0x1UL << ETH_MACPFR_IPFE_Pos) /*!< 0x00100000 */
  6463. #define ETH_MACPFR_IPFE ETH_MACPFR_IPFE_Msk /* Layer 3 and Layer 4 Filter Enable */
  6464. #define ETH_MACPFR_VTFE_Pos (16U)
  6465. #define ETH_MACPFR_VTFE_Msk (0x1UL << ETH_MACPFR_VTFE_Pos) /*!< 0x00010000 */
  6466. #define ETH_MACPFR_VTFE ETH_MACPFR_VTFE_Msk /* VLAN Tag Filter Enable */
  6467. #define ETH_MACPFR_HPF_Pos (10U)
  6468. #define ETH_MACPFR_HPF_Msk (0x1UL << ETH_MACPFR_HPF_Pos) /*!< 0x00000400 */
  6469. #define ETH_MACPFR_HPF ETH_MACPFR_HPF_Msk /* Hash or perfect filter */
  6470. #define ETH_MACPFR_SAF_Pos (9U)
  6471. #define ETH_MACPFR_SAF_Msk (0x1UL << ETH_MACPFR_SAF_Pos) /*!< 0x00000200 */
  6472. #define ETH_MACPFR_SAF ETH_MACPFR_SAF_Msk /* Source address filter enable */
  6473. #define ETH_MACPFR_SAIF_Pos (8U)
  6474. #define ETH_MACPFR_SAIF_Msk (0x1UL << ETH_MACPFR_SAIF_Pos) /*!< 0x00000100 */
  6475. #define ETH_MACPFR_SAIF ETH_MACPFR_SAIF_Msk /* SA inverse filtering */
  6476. #define ETH_MACPFR_PCF_Pos (6U)
  6477. #define ETH_MACPFR_PCF_Msk (0x3UL << ETH_MACPFR_PCF_Pos) /*!< 0x000000C0 */
  6478. #define ETH_MACPFR_PCF ETH_MACPFR_PCF_Msk /* Pass control frames: 4 cases */
  6479. #define ETH_MACPFR_PCF_BLOCKALL ((uint32_t)0x00000000) /* MAC filters all control frames from reaching the application */
  6480. #define ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Pos (6U)
  6481. #define ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Msk (0x1UL << ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Pos) /*!< 0x00000040 */
  6482. #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 */
  6483. #define ETH_MACPFR_PCF_FORWARDALL_Pos (7U)
  6484. #define ETH_MACPFR_PCF_FORWARDALL_Msk (0x1UL << ETH_MACPFR_PCF_FORWARDALL_Pos) /*!< 0x00000080 */
  6485. #define ETH_MACPFR_PCF_FORWARDALL ETH_MACPFR_PCF_FORWARDALL_Msk /* MAC forwards all control frames to application even if they fail the Address Filter */
  6486. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Pos (6U)
  6487. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Msk (0x3UL << ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Pos) /*!< 0x000000C0 */
  6488. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Msk /* MAC forwards control frames that pass the Address Filter. */
  6489. #define ETH_MACPFR_DBF_Pos (5U)
  6490. #define ETH_MACPFR_DBF_Msk (0x1UL << ETH_MACPFR_DBF_Pos) /*!< 0x00000020 */
  6491. #define ETH_MACPFR_DBF ETH_MACPFR_DBF_Msk /* Disable Broadcast Packets */
  6492. #define ETH_MACPFR_PM_Pos (4U)
  6493. #define ETH_MACPFR_PM_Msk (0x1UL << ETH_MACPFR_PM_Pos) /*!< 0x00000010 */
  6494. #define ETH_MACPFR_PM ETH_MACPFR_PM_Msk /* Pass all mutlicast */
  6495. #define ETH_MACPFR_DAIF_Pos (3U)
  6496. #define ETH_MACPFR_DAIF_Msk (0x1UL << ETH_MACPFR_DAIF_Pos) /*!< 0x00000008 */
  6497. #define ETH_MACPFR_DAIF ETH_MACPFR_DAIF_Msk /* DA Inverse filtering */
  6498. #define ETH_MACPFR_HMC_Pos (2U)
  6499. #define ETH_MACPFR_HMC_Msk (0x1UL << ETH_MACPFR_HMC_Pos) /*!< 0x00000004 */
  6500. #define ETH_MACPFR_HMC ETH_MACPFR_HMC_Msk /* Hash multicast */
  6501. #define ETH_MACPFR_HUC_Pos (1U)
  6502. #define ETH_MACPFR_HUC_Msk (0x1UL << ETH_MACPFR_HUC_Pos) /*!< 0x00000002 */
  6503. #define ETH_MACPFR_HUC ETH_MACPFR_HUC_Msk /* Hash unicast */
  6504. #define ETH_MACPFR_PR_Pos (0U)
  6505. #define ETH_MACPFR_PR_Msk (0x1UL << ETH_MACPFR_PR_Pos) /*!< 0x00000001 */
  6506. #define ETH_MACPFR_PR ETH_MACPFR_PR_Msk /* Promiscuous mode */
  6507. /* Bit definition for Ethernet MAC Watchdog Timeout Register */
  6508. #define ETH_MACWTR_PWE_Pos (8U)
  6509. #define ETH_MACWTR_PWE_Msk (0x1UL << ETH_MACWTR_PWE_Pos) /*!< 0x00000100 */
  6510. #define ETH_MACWTR_PWE ETH_MACWTR_PWE_Msk /* Programmable Watchdog Enable */
  6511. #define ETH_MACWTR_WTO_Pos (0U)
  6512. #define ETH_MACWTR_WTO_Msk (0xFUL << ETH_MACWTR_WTO_Pos) /*!< 0x0000000F */
  6513. #define ETH_MACWTR_WTO ETH_MACWTR_WTO_Msk /* Watchdog Timeout */
  6514. #define ETH_MACWTR_WTO_2KB ((uint32_t)0x00000000) /* Maximum received packet length 2KB*/
  6515. #define ETH_MACWTR_WTO_3KB ((uint32_t)0x00000001) /* Maximum received packet length 3KB */
  6516. #define ETH_MACWTR_WTO_4KB ((uint32_t)0x00000002) /* Maximum received packet length 4KB */
  6517. #define ETH_MACWTR_WTO_5KB ((uint32_t)0x00000003) /* Maximum received packet length 5KB */
  6518. #define ETH_MACWTR_WTO_6KB ((uint32_t)0x00000004) /* Maximum received packet length 6KB */
  6519. #define ETH_MACWTR_WTO_7KB ((uint32_t)0x00000005) /* Maximum received packet length 7KB */
  6520. #define ETH_MACWTR_WTO_8KB ((uint32_t)0x00000006) /* Maximum received packet length 8KB */
  6521. #define ETH_MACWTR_WTO_9KB ((uint32_t)0x00000007) /* Maximum received packet length 9KB */
  6522. #define ETH_MACWTR_WTO_10KB ((uint32_t)0x00000008) /* Maximum received packet length 10KB */
  6523. #define ETH_MACWTR_WTO_11KB ((uint32_t)0x00000009) /* Maximum received packet length 11KB */
  6524. #define ETH_MACWTR_WTO_12KB ((uint32_t)0x0000000A) /* Maximum received packet length 12KB */
  6525. #define ETH_MACWTR_WTO_13KB ((uint32_t)0x0000000B) /* Maximum received packet length 13KB */
  6526. #define ETH_MACWTR_WTO_14KB ((uint32_t)0x0000000C) /* Maximum received packet length 14KB */
  6527. #define ETH_MACWTR_WTO_15KB ((uint32_t)0x0000000D) /* Maximum received packet length 15KB */
  6528. #define ETH_MACWTR_WTO_16KB ((uint32_t)0x0000000E) /* Maximum received packet length 16KB */
  6529. /* Bit definition for Ethernet MAC Hash Table High Register */
  6530. #define ETH_MACHTHR_HTH_Pos (0U)
  6531. #define ETH_MACHTHR_HTH_Msk (0xFFFFFFFFUL << ETH_MACHTHR_HTH_Pos) /*!< 0xFFFFFFFF */
  6532. #define ETH_MACHTHR_HTH ETH_MACHTHR_HTH_Msk /* Hash table high */
  6533. /* Bit definition for Ethernet MAC Hash Table Low Register */
  6534. #define ETH_MACHTLR_HTL_Pos (0U)
  6535. #define ETH_MACHTLR_HTL_Msk (0xFFFFFFFFUL << ETH_MACHTLR_HTL_Pos) /*!< 0xFFFFFFFF */
  6536. #define ETH_MACHTLR_HTL ETH_MACHTLR_HTL_Msk /* Hash table low */
  6537. /* Bit definition for Ethernet MAC VLAN Tag Register */
  6538. #define ETH_MACVTR_EIVLRXS_Pos (31U)
  6539. #define ETH_MACVTR_EIVLRXS_Msk (0x1UL << ETH_MACVTR_EIVLRXS_Pos) /*!< 0x80000000 */
  6540. #define ETH_MACVTR_EIVLRXS ETH_MACVTR_EIVLRXS_Msk /* Enable Inner VLAN Tag in Rx Status */
  6541. #define ETH_MACVTR_EIVLS_Pos (28U)
  6542. #define ETH_MACVTR_EIVLS_Msk (0x3UL << ETH_MACVTR_EIVLS_Pos) /*!< 0x30000000 */
  6543. #define ETH_MACVTR_EIVLS ETH_MACVTR_EIVLS_Msk /* Enable Inner VLAN Tag Stripping on Receive */
  6544. #define ETH_MACVTR_EIVLS_DONOTSTRIP ((uint32_t)0x00000000) /* Do not strip */
  6545. #define ETH_MACVTR_EIVLS_STRIPIFPASS_Pos (28U)
  6546. #define ETH_MACVTR_EIVLS_STRIPIFPASS_Msk (0x1UL << ETH_MACVTR_EIVLS_STRIPIFPASS_Pos) /*!< 0x10000000 */
  6547. #define ETH_MACVTR_EIVLS_STRIPIFPASS ETH_MACVTR_EIVLS_STRIPIFPASS_Msk /* Strip if VLAN filter passes */
  6548. #define ETH_MACVTR_EIVLS_STRIPIFFAILS_Pos (29U)
  6549. #define ETH_MACVTR_EIVLS_STRIPIFFAILS_Msk (0x1UL << ETH_MACVTR_EIVLS_STRIPIFFAILS_Pos) /*!< 0x20000000 */
  6550. #define ETH_MACVTR_EIVLS_STRIPIFFAILS ETH_MACVTR_EIVLS_STRIPIFFAILS_Msk /* Strip if VLAN filter fails */
  6551. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP_Pos (28U)
  6552. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP_Msk (0x3UL << ETH_MACVTR_EIVLS_ALWAYSSTRIP_Pos) /*!< 0x30000000 */
  6553. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP ETH_MACVTR_EIVLS_ALWAYSSTRIP_Msk /* Always strip */
  6554. #define ETH_MACVTR_ERIVLT_Pos (27U)
  6555. #define ETH_MACVTR_ERIVLT_Msk (0x1UL << ETH_MACVTR_ERIVLT_Pos) /*!< 0x08000000 */
  6556. #define ETH_MACVTR_ERIVLT ETH_MACVTR_ERIVLT_Msk /* Enable Inner VLAN Tag */
  6557. #define ETH_MACVTR_EDVLP_Pos (26U)
  6558. #define ETH_MACVTR_EDVLP_Msk (0x1UL << ETH_MACVTR_EDVLP_Pos) /*!< 0x04000000 */
  6559. #define ETH_MACVTR_EDVLP ETH_MACVTR_EDVLP_Msk /* Enable Double VLAN Processing */
  6560. #define ETH_MACVTR_VTHM_Pos (25U)
  6561. #define ETH_MACVTR_VTHM_Msk (0x1UL << ETH_MACVTR_VTHM_Pos) /*!< 0x02000000 */
  6562. #define ETH_MACVTR_VTHM ETH_MACVTR_VTHM_Msk /* VLAN Tag Hash Table Match Enable */
  6563. #define ETH_MACVTR_EVLRXS_Pos (24U)
  6564. #define ETH_MACVTR_EVLRXS_Msk (0x1UL << ETH_MACVTR_EVLRXS_Pos) /*!< 0x01000000 */
  6565. #define ETH_MACVTR_EVLRXS ETH_MACVTR_EVLRXS_Msk /* Enable VLAN Tag in Rx status */
  6566. #define ETH_MACVTR_EVLS_Pos (21U)
  6567. #define ETH_MACVTR_EVLS_Msk (0x3UL << ETH_MACVTR_EVLS_Pos) /*!< 0x00600000 */
  6568. #define ETH_MACVTR_EVLS ETH_MACVTR_EVLS_Msk /* Enable VLAN Tag Stripping on Receive */
  6569. #define ETH_MACVTR_EVLS_DONOTSTRIP ((uint32_t)0x00000000) /* Do not strip */
  6570. #define ETH_MACVTR_EVLS_STRIPIFPASS_Pos (21U)
  6571. #define ETH_MACVTR_EVLS_STRIPIFPASS_Msk (0x1UL << ETH_MACVTR_EVLS_STRIPIFPASS_Pos) /*!< 0x00200000 */
  6572. #define ETH_MACVTR_EVLS_STRIPIFPASS ETH_MACVTR_EVLS_STRIPIFPASS_Msk /* Strip if VLAN filter passes */
  6573. #define ETH_MACVTR_EVLS_STRIPIFFAILS_Pos (22U)
  6574. #define ETH_MACVTR_EVLS_STRIPIFFAILS_Msk (0x1UL << ETH_MACVTR_EVLS_STRIPIFFAILS_Pos) /*!< 0x00400000 */
  6575. #define ETH_MACVTR_EVLS_STRIPIFFAILS ETH_MACVTR_EVLS_STRIPIFFAILS_Msk /* Strip if VLAN filter fails */
  6576. #define ETH_MACVTR_EVLS_ALWAYSSTRIP_Pos (21U)
  6577. #define ETH_MACVTR_EVLS_ALWAYSSTRIP_Msk (0x3UL << ETH_MACVTR_EVLS_ALWAYSSTRIP_Pos) /*!< 0x00600000 */
  6578. #define ETH_MACVTR_EVLS_ALWAYSSTRIP ETH_MACVTR_EVLS_ALWAYSSTRIP_Msk /* Always strip */
  6579. #define ETH_MACVTR_DOVLTC_Pos (20U)
  6580. #define ETH_MACVTR_DOVLTC_Msk (0x1UL << ETH_MACVTR_DOVLTC_Pos) /*!< 0x00100000 */
  6581. #define ETH_MACVTR_DOVLTC ETH_MACVTR_DOVLTC_Msk /* Disable VLAN Type Check */
  6582. #define ETH_MACVTR_ERSVLM_Pos (19U)
  6583. #define ETH_MACVTR_ERSVLM_Msk (0x1UL << ETH_MACVTR_ERSVLM_Pos) /*!< 0x00080000 */
  6584. #define ETH_MACVTR_ERSVLM ETH_MACVTR_ERSVLM_Msk /* Enable Receive S-VLAN Match */
  6585. #define ETH_MACVTR_ESVL_Pos (18U)
  6586. #define ETH_MACVTR_ESVL_Msk (0x1UL << ETH_MACVTR_ESVL_Pos) /*!< 0x00040000 */
  6587. #define ETH_MACVTR_ESVL ETH_MACVTR_ESVL_Msk /* Enable S-VLAN */
  6588. #define ETH_MACVTR_VTIM_Pos (17U)
  6589. #define ETH_MACVTR_VTIM_Msk (0x1UL << ETH_MACVTR_VTIM_Pos) /*!< 0x00020000 */
  6590. #define ETH_MACVTR_VTIM ETH_MACVTR_VTIM_Msk /* VLAN Tag Inverse Match Enable */
  6591. #define ETH_MACVTR_ETV_Pos (16U)
  6592. #define ETH_MACVTR_ETV_Msk (0x1UL << ETH_MACVTR_ETV_Pos) /*!< 0x00010000 */
  6593. #define ETH_MACVTR_ETV ETH_MACVTR_ETV_Msk /* Enable 12-Bit VLAN Tag Comparison */
  6594. #define ETH_MACVTR_VL_Pos (0U)
  6595. #define ETH_MACVTR_VL_Msk (0xFFFFUL << ETH_MACVTR_VL_Pos) /*!< 0x0000FFFF */
  6596. #define ETH_MACVTR_VL ETH_MACVTR_VL_Msk /* VLAN Tag Identifier for Receive Packets */
  6597. #define ETH_MACVTR_VL_UP_Pos (13U)
  6598. #define ETH_MACVTR_VL_UP_Msk (0x7UL << ETH_MACVTR_VL_UP_Pos) /*!< 0x0000E000 */
  6599. #define ETH_MACVTR_VL_UP ETH_MACVTR_VL_UP_Msk /* User Priority */
  6600. #define ETH_MACVTR_VL_CFIDEI_Pos (12U)
  6601. #define ETH_MACVTR_VL_CFIDEI_Msk (0x1UL << ETH_MACVTR_VL_CFIDEI_Pos) /*!< 0x00001000 */
  6602. #define ETH_MACVTR_VL_CFIDEI ETH_MACVTR_VL_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6603. #define ETH_MACVTR_VL_VID_Pos (0U)
  6604. #define ETH_MACVTR_VL_VID_Msk (0xFFFUL << ETH_MACVTR_VL_VID_Pos) /*!< 0x00000FFF */
  6605. #define ETH_MACVTR_VL_VID ETH_MACVTR_VL_VID_Msk /* VLAN Identifier field of VLAN tag */
  6606. /* Bit definition for Ethernet MAC VLAN Hash Table Register */
  6607. #define ETH_MACVHTR_VLHT_Pos (0U)
  6608. #define ETH_MACVHTR_VLHT_Msk (0xFFFFUL << ETH_MACVHTR_VLHT_Pos) /*!< 0x0000FFFF */
  6609. #define ETH_MACVHTR_VLHT ETH_MACVHTR_VLHT_Msk /* VLAN Hash Table */
  6610. /* Bit definition for Ethernet MAC VLAN Incl Register */
  6611. #define ETH_MACVIR_VLTI_Pos (20U)
  6612. #define ETH_MACVIR_VLTI_Msk (0x1UL << ETH_MACVIR_VLTI_Pos) /*!< 0x00100000 */
  6613. #define ETH_MACVIR_VLTI ETH_MACVIR_VLTI_Msk /* VLAN Tag Input */
  6614. #define ETH_MACVIR_CSVL_Pos (19U)
  6615. #define ETH_MACVIR_CSVL_Msk (0x1UL << ETH_MACVIR_CSVL_Pos) /*!< 0x00080000 */
  6616. #define ETH_MACVIR_CSVL ETH_MACVIR_CSVL_Msk /* C-VLAN or S-VLAN */
  6617. #define ETH_MACVIR_VLP_Pos (18U)
  6618. #define ETH_MACVIR_VLP_Msk (0x1UL << ETH_MACVIR_VLP_Pos) /*!< 0x00040000 */
  6619. #define ETH_MACVIR_VLP ETH_MACVIR_VLP_Msk /* VLAN Priority Control */
  6620. #define ETH_MACVIR_VLC_Pos (16U)
  6621. #define ETH_MACVIR_VLC_Msk (0x3UL << ETH_MACVIR_VLC_Pos) /*!< 0x00030000 */
  6622. #define ETH_MACVIR_VLC ETH_MACVIR_VLC_Msk /* VLAN Tag Control in Transmit Packets */
  6623. #define ETH_MACVIR_VLC_NOVLANTAG ((uint32_t)0x00000000) /* No VLAN tag deletion, insertion, or replacement */
  6624. #define ETH_MACVIR_VLC_VLANTAGDELETE_Pos (16U)
  6625. #define ETH_MACVIR_VLC_VLANTAGDELETE_Msk (0x1UL << ETH_MACVIR_VLC_VLANTAGDELETE_Pos) /*!< 0x00010000 */
  6626. #define ETH_MACVIR_VLC_VLANTAGDELETE ETH_MACVIR_VLC_VLANTAGDELETE_Msk /* VLAN tag deletion */
  6627. #define ETH_MACVIR_VLC_VLANTAGINSERT_Pos (17U)
  6628. #define ETH_MACVIR_VLC_VLANTAGINSERT_Msk (0x1UL << ETH_MACVIR_VLC_VLANTAGINSERT_Pos) /*!< 0x00020000 */
  6629. #define ETH_MACVIR_VLC_VLANTAGINSERT ETH_MACVIR_VLC_VLANTAGINSERT_Msk /* VLAN tag insertion */
  6630. #define ETH_MACVIR_VLC_VLANTAGREPLACE_Pos (16U)
  6631. #define ETH_MACVIR_VLC_VLANTAGREPLACE_Msk (0x3UL << ETH_MACVIR_VLC_VLANTAGREPLACE_Pos) /*!< 0x00030000 */
  6632. #define ETH_MACVIR_VLC_VLANTAGREPLACE ETH_MACVIR_VLC_VLANTAGREPLACE_Msk /* VLAN tag replacement */
  6633. #define ETH_MACVIR_VLT_Pos (0U)
  6634. #define ETH_MACVIR_VLT_Msk (0xFFFFUL << ETH_MACVIR_VLT_Pos) /*!< 0x0000FFFF */
  6635. #define ETH_MACVIR_VLT ETH_MACVIR_VLT_Msk /* VLAN Tag for Transmit Packets */
  6636. #define ETH_MACVIR_VLT_UP_Pos (13U)
  6637. #define ETH_MACVIR_VLT_UP_Msk (0x7UL << ETH_MACVIR_VLT_UP_Pos) /*!< 0x0000E000 */
  6638. #define ETH_MACVIR_VLT_UP ETH_MACVIR_VLT_UP_Msk /* User Priority */
  6639. #define ETH_MACVIR_VLT_CFIDEI_Pos (12U)
  6640. #define ETH_MACVIR_VLT_CFIDEI_Msk (0x1UL << ETH_MACVIR_VLT_CFIDEI_Pos) /*!< 0x00001000 */
  6641. #define ETH_MACVIR_VLT_CFIDEI ETH_MACVIR_VLT_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6642. #define ETH_MACVIR_VLT_VID_Pos (0U)
  6643. #define ETH_MACVIR_VLT_VID_Msk (0xFFFUL << ETH_MACVIR_VLT_VID_Pos) /*!< 0x00000FFF */
  6644. #define ETH_MACVIR_VLT_VID ETH_MACVIR_VLT_VID_Msk /* VLAN Identifier field of VLAN tag */
  6645. /* Bit definition for Ethernet MAC Inner_VLAN Incl Register */
  6646. #define ETH_MACIVIR_VLTI_Pos (20U)
  6647. #define ETH_MACIVIR_VLTI_Msk (0x1UL << ETH_MACIVIR_VLTI_Pos) /*!< 0x00100000 */
  6648. #define ETH_MACIVIR_VLTI ETH_MACIVIR_VLTI_Msk /* VLAN Tag Input */
  6649. #define ETH_MACIVIR_CSVL_Pos (19U)
  6650. #define ETH_MACIVIR_CSVL_Msk (0x1UL << ETH_MACIVIR_CSVL_Pos) /*!< 0x00080000 */
  6651. #define ETH_MACIVIR_CSVL ETH_MACIVIR_CSVL_Msk /* C-VLAN or S-VLAN */
  6652. #define ETH_MACIVIR_VLP_Pos (18U)
  6653. #define ETH_MACIVIR_VLP_Msk (0x1UL << ETH_MACIVIR_VLP_Pos) /*!< 0x00040000 */
  6654. #define ETH_MACIVIR_VLP ETH_MACIVIR_VLP_Msk /* VLAN Priority Control */
  6655. #define ETH_MACIVIR_VLC_Pos (16U)
  6656. #define ETH_MACIVIR_VLC_Msk (0x3UL << ETH_MACIVIR_VLC_Pos) /*!< 0x00030000 */
  6657. #define ETH_MACIVIR_VLC ETH_MACIVIR_VLC_Msk /* VLAN Tag Control in Transmit Packets */
  6658. #define ETH_MACIVIR_VLC_NOVLANTAG ((uint32_t)0x00000000) /* No VLAN tag deletion, insertion, or replacement */
  6659. #define ETH_MACIVIR_VLC_VLANTAGDELETE_Pos (16U)
  6660. #define ETH_MACIVIR_VLC_VLANTAGDELETE_Msk (0x1UL << ETH_MACIVIR_VLC_VLANTAGDELETE_Pos) /*!< 0x00010000 */
  6661. #define ETH_MACIVIR_VLC_VLANTAGDELETE ETH_MACIVIR_VLC_VLANTAGDELETE_Msk /* VLAN tag deletion */
  6662. #define ETH_MACIVIR_VLC_VLANTAGINSERT_Pos (17U)
  6663. #define ETH_MACIVIR_VLC_VLANTAGINSERT_Msk (0x1UL << ETH_MACIVIR_VLC_VLANTAGINSERT_Pos) /*!< 0x00020000 */
  6664. #define ETH_MACIVIR_VLC_VLANTAGINSERT ETH_MACIVIR_VLC_VLANTAGINSERT_Msk /* VLAN tag insertion */
  6665. #define ETH_MACIVIR_VLC_VLANTAGREPLACE_Pos (16U)
  6666. #define ETH_MACIVIR_VLC_VLANTAGREPLACE_Msk (0x3UL << ETH_MACIVIR_VLC_VLANTAGREPLACE_Pos) /*!< 0x00030000 */
  6667. #define ETH_MACIVIR_VLC_VLANTAGREPLACE ETH_MACIVIR_VLC_VLANTAGREPLACE_Msk /* VLAN tag replacement */
  6668. #define ETH_MACIVIR_VLT_Pos (0U)
  6669. #define ETH_MACIVIR_VLT_Msk (0xFFFFUL << ETH_MACIVIR_VLT_Pos) /*!< 0x0000FFFF */
  6670. #define ETH_MACIVIR_VLT ETH_MACIVIR_VLT_Msk /* VLAN Tag for Transmit Packets */
  6671. #define ETH_MACIVIR_VLT_UP_Pos (13U)
  6672. #define ETH_MACIVIR_VLT_UP_Msk (0x7UL << ETH_MACIVIR_VLT_UP_Pos) /*!< 0x0000E000 */
  6673. #define ETH_MACIVIR_VLT_UP ETH_MACIVIR_VLT_UP_Msk /* User Priority */
  6674. #define ETH_MACIVIR_VLT_CFIDEI_Pos (12U)
  6675. #define ETH_MACIVIR_VLT_CFIDEI_Msk (0x1UL << ETH_MACIVIR_VLT_CFIDEI_Pos) /*!< 0x00001000 */
  6676. #define ETH_MACIVIR_VLT_CFIDEI ETH_MACIVIR_VLT_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6677. #define ETH_MACIVIR_VLT_VID_Pos (0U)
  6678. #define ETH_MACIVIR_VLT_VID_Msk (0xFFFUL << ETH_MACIVIR_VLT_VID_Pos) /*!< 0x00000FFF */
  6679. #define ETH_MACIVIR_VLT_VID ETH_MACIVIR_VLT_VID_Msk /* VLAN Identifier field of VLAN tag */
  6680. /* Bit definition for Ethernet MAC Tx Flow Ctrl Register */
  6681. #define ETH_MACTFCR_PT_Pos (16U)
  6682. #define ETH_MACTFCR_PT_Msk (0xFFFFUL << ETH_MACTFCR_PT_Pos) /*!< 0xFFFF0000 */
  6683. #define ETH_MACTFCR_PT ETH_MACTFCR_PT_Msk /* Pause Time */
  6684. #define ETH_MACTFCR_DZPQ_Pos (7U)
  6685. #define ETH_MACTFCR_DZPQ_Msk (0x1UL << ETH_MACTFCR_DZPQ_Pos) /*!< 0x00000080 */
  6686. #define ETH_MACTFCR_DZPQ ETH_MACTFCR_DZPQ_Msk /* Disable Zero-Quanta Pause */
  6687. #define ETH_MACTFCR_PLT_Pos (4U)
  6688. #define ETH_MACTFCR_PLT_Msk (0x7UL << ETH_MACTFCR_PLT_Pos) /*!< 0x00000070 */
  6689. #define ETH_MACTFCR_PLT ETH_MACTFCR_PLT_Msk /* Pause Low Threshold */
  6690. #define ETH_MACTFCR_PLT_MINUS4 ((uint32_t)0x00000000) /* Pause time minus 4 slot times */
  6691. #define ETH_MACTFCR_PLT_MINUS28_Pos (4U)
  6692. #define ETH_MACTFCR_PLT_MINUS28_Msk (0x1UL << ETH_MACTFCR_PLT_MINUS28_Pos) /*!< 0x00000010 */
  6693. #define ETH_MACTFCR_PLT_MINUS28 ETH_MACTFCR_PLT_MINUS28_Msk /* Pause time minus 28 slot times */
  6694. #define ETH_MACTFCR_PLT_MINUS36_Pos (5U)
  6695. #define ETH_MACTFCR_PLT_MINUS36_Msk (0x1UL << ETH_MACTFCR_PLT_MINUS36_Pos) /*!< 0x00000020 */
  6696. #define ETH_MACTFCR_PLT_MINUS36 ETH_MACTFCR_PLT_MINUS36_Msk /* Pause time minus 36 slot times */
  6697. #define ETH_MACTFCR_PLT_MINUS144_Pos (4U)
  6698. #define ETH_MACTFCR_PLT_MINUS144_Msk (0x3UL << ETH_MACTFCR_PLT_MINUS144_Pos) /*!< 0x00000030 */
  6699. #define ETH_MACTFCR_PLT_MINUS144 ETH_MACTFCR_PLT_MINUS144_Msk /* Pause time minus 144 slot times */
  6700. #define ETH_MACTFCR_PLT_MINUS256_Pos (6U)
  6701. #define ETH_MACTFCR_PLT_MINUS256_Msk (0x1UL << ETH_MACTFCR_PLT_MINUS256_Pos) /*!< 0x00000040 */
  6702. #define ETH_MACTFCR_PLT_MINUS256 ETH_MACTFCR_PLT_MINUS256_Msk /* Pause time minus 256 slot times */
  6703. #define ETH_MACTFCR_PLT_MINUS512_Pos (4U)
  6704. #define ETH_MACTFCR_PLT_MINUS512_Msk (0x5UL << ETH_MACTFCR_PLT_MINUS512_Pos) /*!< 0x00000050 */
  6705. #define ETH_MACTFCR_PLT_MINUS512 ETH_MACTFCR_PLT_MINUS512_Msk /* Pause time minus 512 slot times */
  6706. #define ETH_MACTFCR_TFE_Pos (1U)
  6707. #define ETH_MACTFCR_TFE_Msk (0x1UL << ETH_MACTFCR_TFE_Pos) /*!< 0x00000002 */
  6708. #define ETH_MACTFCR_TFE ETH_MACTFCR_TFE_Msk /* Transmit Flow Control Enable */
  6709. #define ETH_MACTFCR_FCB_Pos (0U)
  6710. #define ETH_MACTFCR_FCB_Msk (0x1UL << ETH_MACTFCR_FCB_Pos) /*!< 0x00000001 */
  6711. #define ETH_MACTFCR_FCB ETH_MACTFCR_FCB_Msk /* Flow Control Busy or Backpressure Activate */
  6712. /* Bit definition for Ethernet MAC Rx Flow Ctrl Register */
  6713. #define ETH_MACRFCR_UP_Pos (1U)
  6714. #define ETH_MACRFCR_UP_Msk (0x1UL << ETH_MACRFCR_UP_Pos) /*!< 0x00000002 */
  6715. #define ETH_MACRFCR_UP ETH_MACRFCR_UP_Msk /* Unicast Pause Packet Detect */
  6716. #define ETH_MACRFCR_RFE_Pos (0U)
  6717. #define ETH_MACRFCR_RFE_Msk (0x1UL << ETH_MACRFCR_RFE_Pos) /*!< 0x00000001 */
  6718. #define ETH_MACRFCR_RFE ETH_MACRFCR_RFE_Msk /* Receive Flow Control Enable */
  6719. /* Bit definition for Ethernet MAC Interrupt Status Register */
  6720. #define ETH_MACISR_RXSTSIS_Pos (14U)
  6721. #define ETH_MACISR_RXSTSIS_Msk (0x1UL << ETH_MACISR_RXSTSIS_Pos) /*!< 0x00004000 */
  6722. #define ETH_MACISR_RXSTSIS ETH_MACISR_RXSTSIS_Msk /* Receive Status Interrupt */
  6723. #define ETH_MACISR_TXSTSIS_Pos (13U)
  6724. #define ETH_MACISR_TXSTSIS_Msk (0x1UL << ETH_MACISR_TXSTSIS_Pos) /*!< 0x00002000 */
  6725. #define ETH_MACISR_TXSTSIS ETH_MACISR_TXSTSIS_Msk /* Transmit Status Interrupt */
  6726. #define ETH_MACISR_TSIS_Pos (12U)
  6727. #define ETH_MACISR_TSIS_Msk (0x1UL << ETH_MACISR_TSIS_Pos) /*!< 0x00001000 */
  6728. #define ETH_MACISR_TSIS ETH_MACISR_TSIS_Msk /* Timestamp Interrupt Status */
  6729. #define ETH_MACISR_MMCTXIS_Pos (10U)
  6730. #define ETH_MACISR_MMCTXIS_Msk (0x1UL << ETH_MACISR_MMCTXIS_Pos) /*!< 0x00000400 */
  6731. #define ETH_MACISR_MMCTXIS ETH_MACISR_MMCTXIS_Msk /* MMC Transmit Interrupt Status */
  6732. #define ETH_MACISR_MMCRXIS_Pos (9U)
  6733. #define ETH_MACISR_MMCRXIS_Msk (0x1UL << ETH_MACISR_MMCRXIS_Pos) /*!< 0x00000200 */
  6734. #define ETH_MACISR_MMCRXIS ETH_MACISR_MMCRXIS_Msk /* MMC Receive Interrupt Status */
  6735. #define ETH_MACISR_MMCIS_Pos (8U)
  6736. #define ETH_MACISR_MMCIS_Msk (0x1UL << ETH_MACISR_MMCIS_Pos) /*!< 0x00000100 */
  6737. #define ETH_MACISR_MMCIS ETH_MACISR_MMCIS_Msk /* MMC Interrupt Status */
  6738. #define ETH_MACISR_LPIIS_Pos (5U)
  6739. #define ETH_MACISR_LPIIS_Msk (0x1UL << ETH_MACISR_LPIIS_Pos) /*!< 0x00000020 */
  6740. #define ETH_MACISR_LPIIS ETH_MACISR_LPIIS_Msk /* LPI Interrupt Status */
  6741. #define ETH_MACISR_PMTIS_Pos (4U)
  6742. #define ETH_MACISR_PMTIS_Msk (0x1UL << ETH_MACISR_PMTIS_Pos) /*!< 0x00000010 */
  6743. #define ETH_MACISR_PMTIS ETH_MACISR_PMTIS_Msk /* PMT Interrupt Status */
  6744. #define ETH_MACISR_PHYIS_Pos (3U)
  6745. #define ETH_MACISR_PHYIS_Msk (0x1UL << ETH_MACISR_PHYIS_Pos) /*!< 0x00000008 */
  6746. #define ETH_MACISR_PHYIS ETH_MACISR_PHYIS_Msk /* PHY Interrupt */
  6747. /* Bit definition for Ethernet MAC Interrupt Enable Register */
  6748. #define ETH_MACIER_RXSTSIE_Pos (14U)
  6749. #define ETH_MACIER_RXSTSIE_Msk (0x1UL << ETH_MACIER_RXSTSIE_Pos) /*!< 0x00004000 */
  6750. #define ETH_MACIER_RXSTSIE ETH_MACIER_RXSTSIE_Msk /* Receive Status Interrupt Enable */
  6751. #define ETH_MACIER_TXSTSIE_Pos (13U)
  6752. #define ETH_MACIER_TXSTSIE_Msk (0x1UL << ETH_MACIER_TXSTSIE_Pos) /*!< 0x00002000 */
  6753. #define ETH_MACIER_TXSTSIE ETH_MACIER_TXSTSIE_Msk /* Transmit Status Interrupt Enable */
  6754. #define ETH_MACIER_TSIE_Pos (12U)
  6755. #define ETH_MACIER_TSIE_Msk (0x1UL << ETH_MACIER_TSIE_Pos) /*!< 0x00001000 */
  6756. #define ETH_MACIER_TSIE ETH_MACIER_TSIE_Msk /* Timestamp Interrupt Enable */
  6757. #define ETH_MACIER_LPIIE_Pos (5U)
  6758. #define ETH_MACIER_LPIIE_Msk (0x1UL << ETH_MACIER_LPIIE_Pos) /*!< 0x00000020 */
  6759. #define ETH_MACIER_LPIIE ETH_MACIER_LPIIE_Msk /* LPI Interrupt Enable */
  6760. #define ETH_MACIER_PMTIE_Pos (4U)
  6761. #define ETH_MACIER_PMTIE_Msk (0x1UL << ETH_MACIER_PMTIE_Pos) /*!< 0x00000010 */
  6762. #define ETH_MACIER_PMTIE ETH_MACIER_PMTIE_Msk /* PMT Interrupt Enable */
  6763. #define ETH_MACIER_PHYIE_Pos (3U)
  6764. #define ETH_MACIER_PHYIE_Msk (0x1UL << ETH_MACIER_PHYIE_Pos) /*!< 0x00000008 */
  6765. #define ETH_MACIER_PHYIE ETH_MACIER_PHYIE_Msk /* PHY Interrupt Enable */
  6766. /* Bit definition for Ethernet MAC Rx Tx Status Register */
  6767. #define ETH_MACRXTXSR_RWT_Pos (8U)
  6768. #define ETH_MACRXTXSR_RWT_Msk (0x1UL << ETH_MACRXTXSR_RWT_Pos) /*!< 0x00000100 */
  6769. #define ETH_MACRXTXSR_RWT ETH_MACRXTXSR_RWT_Msk /* Receive Watchdog Timeout */
  6770. #define ETH_MACRXTXSR_EXCOL_Pos (5U)
  6771. #define ETH_MACRXTXSR_EXCOL_Msk (0x1UL << ETH_MACRXTXSR_EXCOL_Pos) /*!< 0x00000020 */
  6772. #define ETH_MACRXTXSR_EXCOL ETH_MACRXTXSR_EXCOL_Msk /* Excessive Collisions */
  6773. #define ETH_MACRXTXSR_LCOL_Pos (4U)
  6774. #define ETH_MACRXTXSR_LCOL_Msk (0x1UL << ETH_MACRXTXSR_LCOL_Pos) /*!< 0x00000010 */
  6775. #define ETH_MACRXTXSR_LCOL ETH_MACRXTXSR_LCOL_Msk /* Late Collision */
  6776. #define ETH_MACRXTXSR_EXDEF_Pos (3U)
  6777. #define ETH_MACRXTXSR_EXDEF_Msk (0x1UL << ETH_MACRXTXSR_EXDEF_Pos) /*!< 0x00000008 */
  6778. #define ETH_MACRXTXSR_EXDEF ETH_MACRXTXSR_EXDEF_Msk /* Excessive Deferral */
  6779. #define ETH_MACRXTXSR_LCARR_Pos (2U)
  6780. #define ETH_MACRXTXSR_LCARR_Msk (0x1UL << ETH_MACRXTXSR_LCARR_Pos) /*!< 0x00000004 */
  6781. #define ETH_MACRXTXSR_LCARR ETH_MACRXTXSR_LCARR_Msk /* Loss of Carrier */
  6782. #define ETH_MACRXTXSR_NCARR_Pos (1U)
  6783. #define ETH_MACRXTXSR_NCARR_Msk (0x1UL << ETH_MACRXTXSR_NCARR_Pos) /*!< 0x00000002 */
  6784. #define ETH_MACRXTXSR_NCARR ETH_MACRXTXSR_NCARR_Msk /* No Carrier */
  6785. #define ETH_MACRXTXSR_TJT_Pos (0U)
  6786. #define ETH_MACRXTXSR_TJT_Msk (0x1UL << ETH_MACRXTXSR_TJT_Pos) /*!< 0x00000001 */
  6787. #define ETH_MACRXTXSR_TJT ETH_MACRXTXSR_TJT_Msk /* Transmit Jabber Timeout */
  6788. /* Bit definition for Ethernet MAC PMT Control Status Register */
  6789. #define ETH_MACPCSR_RWKFILTRST_Pos (31U)
  6790. #define ETH_MACPCSR_RWKFILTRST_Msk (0x1UL << ETH_MACPCSR_RWKFILTRST_Pos) /*!< 0x80000000 */
  6791. #define ETH_MACPCSR_RWKFILTRST ETH_MACPCSR_RWKFILTRST_Msk /* Remote Wake-Up Packet Filter Register Pointer Reset */
  6792. #define ETH_MACPCSR_RWKPTR_Pos (24U)
  6793. #define ETH_MACPCSR_RWKPTR_Msk (0x1FUL << ETH_MACPCSR_RWKPTR_Pos) /*!< 0x1F000000 */
  6794. #define ETH_MACPCSR_RWKPTR ETH_MACPCSR_RWKPTR_Msk /* Remote Wake-up FIFO Pointer */
  6795. #define ETH_MACPCSR_RWKPFE_Pos (10U)
  6796. #define ETH_MACPCSR_RWKPFE_Msk (0x1UL << ETH_MACPCSR_RWKPFE_Pos) /*!< 0x00000400 */
  6797. #define ETH_MACPCSR_RWKPFE ETH_MACPCSR_RWKPFE_Msk /* Remote Wake-up Packet Forwarding Enable */
  6798. #define ETH_MACPCSR_GLBLUCAST_Pos (9U)
  6799. #define ETH_MACPCSR_GLBLUCAST_Msk (0x1UL << ETH_MACPCSR_GLBLUCAST_Pos) /*!< 0x00000200 */
  6800. #define ETH_MACPCSR_GLBLUCAST ETH_MACPCSR_GLBLUCAST_Msk /* Global Unicast */
  6801. #define ETH_MACPCSR_RWKPRCVD_Pos (6U)
  6802. #define ETH_MACPCSR_RWKPRCVD_Msk (0x1UL << ETH_MACPCSR_RWKPRCVD_Pos) /*!< 0x00000040 */
  6803. #define ETH_MACPCSR_RWKPRCVD ETH_MACPCSR_RWKPRCVD_Msk /* Remote Wake-Up Packet Received */
  6804. #define ETH_MACPCSR_MGKPRCVD_Pos (5U)
  6805. #define ETH_MACPCSR_MGKPRCVD_Msk (0x1UL << ETH_MACPCSR_MGKPRCVD_Pos) /*!< 0x00000020 */
  6806. #define ETH_MACPCSR_MGKPRCVD ETH_MACPCSR_MGKPRCVD_Msk /* Magic Packet Received */
  6807. #define ETH_MACPCSR_RWKPKTEN_Pos (2U)
  6808. #define ETH_MACPCSR_RWKPKTEN_Msk (0x1UL << ETH_MACPCSR_RWKPKTEN_Pos) /*!< 0x00000004 */
  6809. #define ETH_MACPCSR_RWKPKTEN ETH_MACPCSR_RWKPKTEN_Msk /* Remote Wake-Up Packet Enable */
  6810. #define ETH_MACPCSR_MGKPKTEN_Pos (1U)
  6811. #define ETH_MACPCSR_MGKPKTEN_Msk (0x1UL << ETH_MACPCSR_MGKPKTEN_Pos) /*!< 0x00000002 */
  6812. #define ETH_MACPCSR_MGKPKTEN ETH_MACPCSR_MGKPKTEN_Msk /* Magic Packet Enable */
  6813. #define ETH_MACPCSR_PWRDWN_Pos (0U)
  6814. #define ETH_MACPCSR_PWRDWN_Msk (0x1UL << ETH_MACPCSR_PWRDWN_Pos) /*!< 0x00000001 */
  6815. #define ETH_MACPCSR_PWRDWN ETH_MACPCSR_PWRDWN_Msk /* Power Down */
  6816. /* Bit definition for Ethernet MAC Remote Wake-Up Packet Filter Register */
  6817. #define ETH_MACRWUPFR_D_Pos (0U)
  6818. #define ETH_MACRWUPFR_D_Msk (0xFFFFFFFFUL << ETH_MACRWUPFR_D_Pos) /*!< 0xFFFFFFFF */
  6819. #define ETH_MACRWUPFR_D ETH_MACRWUPFR_D_Msk /* Wake-up Packet filter register data */
  6820. /* Bit definition for Ethernet MAC LPI Control Status Register */
  6821. #define ETH_MACLCSR_LPITCSE_Pos (21U)
  6822. #define ETH_MACLCSR_LPITCSE_Msk (0x1UL << ETH_MACLCSR_LPITCSE_Pos) /*!< 0x00200000 */
  6823. #define ETH_MACLCSR_LPITCSE ETH_MACLCSR_LPITCSE_Msk /* LPI Tx Clock Stop Enable */
  6824. #define ETH_MACLCSR_LPITE_Pos (20U)
  6825. #define ETH_MACLCSR_LPITE_Msk (0x1UL << ETH_MACLCSR_LPITE_Pos) /*!< 0x00100000 */
  6826. #define ETH_MACLCSR_LPITE ETH_MACLCSR_LPITE_Msk /* LPI Timer Enable */
  6827. #define ETH_MACLCSR_LPITXA_Pos (19U)
  6828. #define ETH_MACLCSR_LPITXA_Msk (0x1UL << ETH_MACLCSR_LPITXA_Pos) /*!< 0x00080000 */
  6829. #define ETH_MACLCSR_LPITXA ETH_MACLCSR_LPITXA_Msk /* LPI Tx Automate */
  6830. #define ETH_MACLCSR_PLS_Pos (17U)
  6831. #define ETH_MACLCSR_PLS_Msk (0x1UL << ETH_MACLCSR_PLS_Pos) /*!< 0x00020000 */
  6832. #define ETH_MACLCSR_PLS ETH_MACLCSR_PLS_Msk /* PHY Link Status */
  6833. #define ETH_MACLCSR_LPIEN_Pos (16U)
  6834. #define ETH_MACLCSR_LPIEN_Msk (0x1UL << ETH_MACLCSR_LPIEN_Pos) /*!< 0x00010000 */
  6835. #define ETH_MACLCSR_LPIEN ETH_MACLCSR_LPIEN_Msk /* LPI Enable */
  6836. #define ETH_MACLCSR_RLPIST_Pos (9U)
  6837. #define ETH_MACLCSR_RLPIST_Msk (0x1UL << ETH_MACLCSR_RLPIST_Pos) /*!< 0x00000200 */
  6838. #define ETH_MACLCSR_RLPIST ETH_MACLCSR_RLPIST_Msk /* Receive LPI State */
  6839. #define ETH_MACLCSR_TLPIST_Pos (8U)
  6840. #define ETH_MACLCSR_TLPIST_Msk (0x1UL << ETH_MACLCSR_TLPIST_Pos) /*!< 0x00000100 */
  6841. #define ETH_MACLCSR_TLPIST ETH_MACLCSR_TLPIST_Msk /* Transmit LPI State */
  6842. #define ETH_MACLCSR_RLPIEX_Pos (3U)
  6843. #define ETH_MACLCSR_RLPIEX_Msk (0x1UL << ETH_MACLCSR_RLPIEX_Pos) /*!< 0x00000008 */
  6844. #define ETH_MACLCSR_RLPIEX ETH_MACLCSR_RLPIEX_Msk /* Receive LPI Exit */
  6845. #define ETH_MACLCSR_RLPIEN_Pos (2U)
  6846. #define ETH_MACLCSR_RLPIEN_Msk (0x1UL << ETH_MACLCSR_RLPIEN_Pos) /*!< 0x00000004 */
  6847. #define ETH_MACLCSR_RLPIEN ETH_MACLCSR_RLPIEN_Msk /* Receive LPI Entry */
  6848. #define ETH_MACLCSR_TLPIEX_Pos (1U)
  6849. #define ETH_MACLCSR_TLPIEX_Msk (0x1UL << ETH_MACLCSR_TLPIEX_Pos) /*!< 0x00000002 */
  6850. #define ETH_MACLCSR_TLPIEX ETH_MACLCSR_TLPIEX_Msk /* Transmit LPI Exit */
  6851. #define ETH_MACLCSR_TLPIEN_Pos (0U)
  6852. #define ETH_MACLCSR_TLPIEN_Msk (0x1UL << ETH_MACLCSR_TLPIEN_Pos) /*!< 0x00000001 */
  6853. #define ETH_MACLCSR_TLPIEN ETH_MACLCSR_TLPIEN_Msk /* Transmit LPI Entry */
  6854. /* Bit definition for Ethernet MAC LPI Timers Control Register */
  6855. #define ETH_MACLTCR_LST_Pos (16U)
  6856. #define ETH_MACLTCR_LST_Msk (0x3FFUL << ETH_MACLTCR_LST_Pos) /*!< 0x03FF0000 */
  6857. #define ETH_MACLTCR_LST ETH_MACLTCR_LST_Msk /* LPI LS TIMER */
  6858. #define ETH_MACLTCR_TWT_Pos (0U)
  6859. #define ETH_MACLTCR_TWT_Msk (0xFFFFUL << ETH_MACLTCR_TWT_Pos) /*!< 0x0000FFFF */
  6860. #define ETH_MACLTCR_TWT ETH_MACLTCR_TWT_Msk /* LPI TW TIMER */
  6861. /* Bit definition for Ethernet MAC LPI Entry Timer Register */
  6862. #define ETH_MACLETR_LPIET_Pos (0U)
  6863. #define ETH_MACLETR_LPIET_Msk (0xFFFFFUL << ETH_MACLETR_LPIET_Pos) /*!< 0x000FFFFF */
  6864. #define ETH_MACLETR_LPIET ETH_MACLETR_LPIET_Msk /* LPI Entry Timer */
  6865. /* Bit definition for Ethernet MAC 1US Tic Counter Register */
  6866. #define ETH_MAC1USTCR_TIC1USCNTR_Pos (0U)
  6867. #define ETH_MAC1USTCR_TIC1USCNTR_Msk (0xFFFUL << ETH_MAC1USTCR_TIC1USCNTR_Pos) /*!< 0x00000FFF */
  6868. #define ETH_MAC1USTCR_TIC1USCNTR ETH_MAC1USTCR_TIC1USCNTR_Msk /* 1US TIC Counter */
  6869. /* Bit definition for Ethernet MAC Version Register */
  6870. #define ETH_MACVR_USERVER_Pos (8U)
  6871. #define ETH_MACVR_USERVER_Msk (0xFFUL << ETH_MACVR_USERVER_Pos) /*!< 0x0000FF00 */
  6872. #define ETH_MACVR_USERVER ETH_MACVR_USERVER_Msk /* User-defined Version */
  6873. #define ETH_MACVR_SNPSVER_Pos (0U)
  6874. #define ETH_MACVR_SNPSVER_Msk (0xFFUL << ETH_MACVR_SNPSVER_Pos) /*!< 0x000000FF */
  6875. #define ETH_MACVR_SNPSVER ETH_MACVR_SNPSVER_Msk /* Synopsys-defined Version */
  6876. /* Bit definition for Ethernet MAC Debug Register */
  6877. #define ETH_MACDR_TFCSTS_Pos (17U)
  6878. #define ETH_MACDR_TFCSTS_Msk (0x3UL << ETH_MACDR_TFCSTS_Pos) /*!< 0x00060000 */
  6879. #define ETH_MACDR_TFCSTS ETH_MACDR_TFCSTS_Msk /* MAC Transmit Packet Controller Status */
  6880. #define ETH_MACDR_TFCSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  6881. #define ETH_MACDR_TFCSTS_WAIT_Pos (17U)
  6882. #define ETH_MACDR_TFCSTS_WAIT_Msk (0x1UL << ETH_MACDR_TFCSTS_WAIT_Pos) /*!< 0x00020000 */
  6883. #define ETH_MACDR_TFCSTS_WAIT ETH_MACDR_TFCSTS_WAIT_Msk /* Waiting for status of the previous packet, IPG or backoff period to be over */
  6884. #define ETH_MACDR_TFCSTS_GENERATEPCP_Pos (18U)
  6885. #define ETH_MACDR_TFCSTS_GENERATEPCP_Msk (0x1UL << ETH_MACDR_TFCSTS_GENERATEPCP_Pos) /*!< 0x00040000 */
  6886. #define ETH_MACDR_TFCSTS_GENERATEPCP ETH_MACDR_TFCSTS_GENERATEPCP_Msk /* Generating and transmitting a Pause control packet */
  6887. #define ETH_MACDR_TFCSTS_TRASFERIP_Pos (17U)
  6888. #define ETH_MACDR_TFCSTS_TRASFERIP_Msk (0x3UL << ETH_MACDR_TFCSTS_TRASFERIP_Pos) /*!< 0x00060000 */
  6889. #define ETH_MACDR_TFCSTS_TRASFERIP ETH_MACDR_TFCSTS_TRASFERIP_Msk /* Transferring input packet for transmission */
  6890. #define ETH_MACDR_TPESTS_Pos (16U)
  6891. #define ETH_MACDR_TPESTS_Msk (0x1UL << ETH_MACDR_TPESTS_Pos) /*!< 0x00010000 */
  6892. #define ETH_MACDR_TPESTS ETH_MACDR_TPESTS_Msk /* MAC Receive Packet Controller FIFO Status */
  6893. #define ETH_MACDR_RFCFCSTS_Pos (1U)
  6894. #define ETH_MACDR_RFCFCSTS_Msk (0x3UL << ETH_MACDR_RFCFCSTS_Pos) /*!< 0x00000006 */
  6895. #define ETH_MACDR_RFCFCSTS ETH_MACDR_RFCFCSTS_Msk /* MAC MII Transmit Protocol Engine Status */
  6896. #define ETH_MACDR_RPESTS_Pos (0U)
  6897. #define ETH_MACDR_RPESTS_Msk (0x1UL << ETH_MACDR_RPESTS_Pos) /*!< 0x00000001 */
  6898. #define ETH_MACDR_RPESTS ETH_MACDR_RPESTS_Msk /* MAC MII Receive Protocol Engine Status */
  6899. /* Bit definition for Ethernet MAC HW Feature0 Register */
  6900. #define ETH_MACHWF0R_ACTPHYSEL_Pos (28U)
  6901. #define ETH_MACHWF0R_ACTPHYSEL_Msk (0x7UL << ETH_MACHWF0R_ACTPHYSEL_Pos) /*!< 0x70000000 */
  6902. #define ETH_MACHWF0R_ACTPHYSEL ETH_MACHWF0R_ACTPHYSEL_Msk /* Active PHY Selected */
  6903. #define ETH_MACHWF0R_ACTPHYSEL_MII ((uint32_t)0x00000000) /* MII */
  6904. #define ETH_MACHWF0R_ACTPHYSEL_RMII_Pos (30U)
  6905. #define ETH_MACHWF0R_ACTPHYSEL_RMII_Msk (0x1UL << ETH_MACHWF0R_ACTPHYSEL_RMII_Pos) /*!< 0x40000000 */
  6906. #define ETH_MACHWF0R_ACTPHYSEL_RMII ETH_MACHWF0R_ACTPHYSEL_RMII_Msk /* RMII */
  6907. #define ETH_MACHWF0R_ACTPHYSEL_REVMII_Pos (28U)
  6908. #define ETH_MACHWF0R_ACTPHYSEL_REVMII_Msk (0x7UL << ETH_MACHWF0R_ACTPHYSEL_REVMII_Pos) /*!< 0x70000000 */
  6909. #define ETH_MACHWF0R_ACTPHYSEL_REVMII ETH_MACHWF0R_ACTPHYSEL_REVMII_Msk /* RevMII */
  6910. #define ETH_MACHWF0R_SAVLANINS_Pos (27U)
  6911. #define ETH_MACHWF0R_SAVLANINS_Msk (0x1UL << ETH_MACHWF0R_SAVLANINS_Pos) /*!< 0x08000000 */
  6912. #define ETH_MACHWF0R_SAVLANINS ETH_MACHWF0R_SAVLANINS_Msk /* Source Address or VLAN Insertion Enable */
  6913. #define ETH_MACHWF0R_TSSTSSEL_Pos (25U)
  6914. #define ETH_MACHWF0R_TSSTSSEL_Msk (0x3UL << ETH_MACHWF0R_TSSTSSEL_Pos) /*!< 0x06000000 */
  6915. #define ETH_MACHWF0R_TSSTSSEL ETH_MACHWF0R_TSSTSSEL_Msk /* Timestamp System Time Source */
  6916. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL_Pos (25U)
  6917. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL_Msk (0x1UL << ETH_MACHWF0R_TSSTSSEL_INTERNAL_Pos) /*!< 0x02000000 */
  6918. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL ETH_MACHWF0R_TSSTSSEL_INTERNAL_Msk /* Timestamp System Time Source: Internal */
  6919. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Pos (26U)
  6920. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Msk (0x1UL << ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Pos) /*!< 0x04000000 */
  6921. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Msk /* Timestamp System Time Source: External */
  6922. #define ETH_MACHWF0R_TSSTSSEL_BOTH_Pos (25U)
  6923. #define ETH_MACHWF0R_TSSTSSEL_BOTH_Msk (0x3UL << ETH_MACHWF0R_TSSTSSEL_BOTH_Pos) /*!< 0x06000000 */
  6924. #define ETH_MACHWF0R_TSSTSSEL_BOTH ETH_MACHWF0R_TSSTSSEL_BOTH_Msk /* Timestamp System Time Source: Internal & External */
  6925. #define ETH_MACHWF0R_MACADR64SEL_Pos (24U)
  6926. #define ETH_MACHWF0R_MACADR64SEL_Msk (0x1UL << ETH_MACHWF0R_MACADR64SEL_Pos) /*!< 0x01000000 */
  6927. #define ETH_MACHWF0R_MACADR64SEL ETH_MACHWF0R_MACADR64SEL_Msk /* MAC Addresses 64-127 Selected */
  6928. #define ETH_MACHWF0R_MACADR32SEL_Pos (23U)
  6929. #define ETH_MACHWF0R_MACADR32SEL_Msk (0x1UL << ETH_MACHWF0R_MACADR32SEL_Pos) /*!< 0x00800000 */
  6930. #define ETH_MACHWF0R_MACADR32SEL ETH_MACHWF0R_MACADR32SEL_Msk /* MAC Addresses 32-63 Selected */
  6931. #define ETH_MACHWF0R_ADDMACADRSEL_Pos (18U)
  6932. #define ETH_MACHWF0R_ADDMACADRSEL_Msk (0x1FUL << ETH_MACHWF0R_ADDMACADRSEL_Pos) /*!< 0x007C0000 */
  6933. #define ETH_MACHWF0R_ADDMACADRSEL ETH_MACHWF0R_ADDMACADRSEL_Msk /* MAC Addresses 1- 31 Selected */
  6934. #define ETH_MACHWF0R_RXCOESEL_Pos (16U)
  6935. #define ETH_MACHWF0R_RXCOESEL_Msk (0x1UL << ETH_MACHWF0R_RXCOESEL_Pos) /*!< 0x00010000 */
  6936. #define ETH_MACHWF0R_RXCOESEL ETH_MACHWF0R_RXCOESEL_Msk /* Receive Checksum Offload Enabled */
  6937. #define ETH_MACHWF0R_TXCOESEL_Pos (14U)
  6938. #define ETH_MACHWF0R_TXCOESEL_Msk (0x1UL << ETH_MACHWF0R_TXCOESEL_Pos) /*!< 0x00004000 */
  6939. #define ETH_MACHWF0R_TXCOESEL ETH_MACHWF0R_TXCOESEL_Msk /* Transmit Checksum Offload Enabled */
  6940. #define ETH_MACHWF0R_EEESEL_Pos (13U)
  6941. #define ETH_MACHWF0R_EEESEL_Msk (0x1UL << ETH_MACHWF0R_EEESEL_Pos) /*!< 0x00002000 */
  6942. #define ETH_MACHWF0R_EEESEL ETH_MACHWF0R_EEESEL_Msk /* Energy Efficient Ethernet Enabled */
  6943. #define ETH_MACHWF0R_TSSEL_Pos (12U)
  6944. #define ETH_MACHWF0R_TSSEL_Msk (0x1UL << ETH_MACHWF0R_TSSEL_Pos) /*!< 0x00001000 */
  6945. #define ETH_MACHWF0R_TSSEL ETH_MACHWF0R_TSSEL_Msk /* IEEE 1588-2008 Timestamp Enabled */
  6946. #define ETH_MACHWF0R_ARPOFFSEL_Pos (9U)
  6947. #define ETH_MACHWF0R_ARPOFFSEL_Msk (0x1UL << ETH_MACHWF0R_ARPOFFSEL_Pos) /*!< 0x00000200 */
  6948. #define ETH_MACHWF0R_ARPOFFSEL ETH_MACHWF0R_ARPOFFSEL_Msk /* ARP Offload Enabled */
  6949. #define ETH_MACHWF0R_MMCSEL_Pos (8U)
  6950. #define ETH_MACHWF0R_MMCSEL_Msk (0x1UL << ETH_MACHWF0R_MMCSEL_Pos) /*!< 0x00000100 */
  6951. #define ETH_MACHWF0R_MMCSEL ETH_MACHWF0R_MMCSEL_Msk /* RMON Module Enable */
  6952. #define ETH_MACHWF0R_MGKSEL_Pos (7U)
  6953. #define ETH_MACHWF0R_MGKSEL_Msk (0x1UL << ETH_MACHWF0R_MGKSEL_Pos) /*!< 0x00000080 */
  6954. #define ETH_MACHWF0R_MGKSEL ETH_MACHWF0R_MGKSEL_Msk /* PMT Magic Packet Enable */
  6955. #define ETH_MACHWF0R_RWKSEL_Pos (6U)
  6956. #define ETH_MACHWF0R_RWKSEL_Msk (0x1UL << ETH_MACHWF0R_RWKSEL_Pos) /*!< 0x00000040 */
  6957. #define ETH_MACHWF0R_RWKSEL ETH_MACHWF0R_RWKSEL_Msk /* PMT Remote Wake-up Packet Enable */
  6958. #define ETH_MACHWF0R_SMASEL_Pos (5U)
  6959. #define ETH_MACHWF0R_SMASEL_Msk (0x1UL << ETH_MACHWF0R_SMASEL_Pos) /*!< 0x00000020 */
  6960. #define ETH_MACHWF0R_SMASEL ETH_MACHWF0R_SMASEL_Msk /* SMA (MDIO) Interface */
  6961. #define ETH_MACHWF0R_VLHASH_Pos (4U)
  6962. #define ETH_MACHWF0R_VLHASH_Msk (0x1UL << ETH_MACHWF0R_VLHASH_Pos) /*!< 0x00000010 */
  6963. #define ETH_MACHWF0R_VLHASH ETH_MACHWF0R_VLHASH_Msk /* VLAN Hash Filter Selected */
  6964. #define ETH_MACHWF0R_PCSSEL_Pos (3U)
  6965. #define ETH_MACHWF0R_PCSSEL_Msk (0x1UL << ETH_MACHWF0R_PCSSEL_Pos) /*!< 0x00000008 */
  6966. #define ETH_MACHWF0R_PCSSEL ETH_MACHWF0R_PCSSEL_Msk /* PCS Registers (TBI, SGMII, or RTBI PHY interface) */
  6967. #define ETH_MACHWF0R_HDSEL_Pos (2U)
  6968. #define ETH_MACHWF0R_HDSEL_Msk (0x1UL << ETH_MACHWF0R_HDSEL_Pos) /*!< 0x00000004 */
  6969. #define ETH_MACHWF0R_HDSEL ETH_MACHWF0R_HDSEL_Msk /* Half-duplex Support */
  6970. #define ETH_MACHWF0R_GMIISEL_Pos (1U)
  6971. #define ETH_MACHWF0R_GMIISEL_Msk (0x1UL << ETH_MACHWF0R_GMIISEL_Pos) /*!< 0x00000002 */
  6972. #define ETH_MACHWF0R_GMIISEL ETH_MACHWF0R_GMIISEL_Msk /* 1000 Mbps Support */
  6973. #define ETH_MACHWF0R_MIISEL_Pos (0U)
  6974. #define ETH_MACHWF0R_MIISEL_Msk (0x1UL << ETH_MACHWF0R_MIISEL_Pos) /*!< 0x00000001 */
  6975. #define ETH_MACHWF0R_MIISEL ETH_MACHWF0R_MIISEL_Msk /* 10 or 100 Mbps Support */
  6976. /* Bit definition for Ethernet MAC HW Feature1 Register */
  6977. #define ETH_MACHWF1R_L3L4FNUM_Pos (27U)
  6978. #define ETH_MACHWF1R_L3L4FNUM_Msk (0xFUL << ETH_MACHWF1R_L3L4FNUM_Pos) /*!< 0x78000000 */
  6979. #define ETH_MACHWF1R_L3L4FNUM ETH_MACHWF1R_L3L4FNUM_Msk /* Total number of L3 or L4 Filters */
  6980. #define ETH_MACHWF1R_HASHTBLSZ_Pos (24U)
  6981. #define ETH_MACHWF1R_HASHTBLSZ_Msk (0x3UL << ETH_MACHWF1R_HASHTBLSZ_Pos) /*!< 0x03000000 */
  6982. #define ETH_MACHWF1R_HASHTBLSZ ETH_MACHWF1R_HASHTBLSZ_Msk /* Hash Table Size */
  6983. #define ETH_MACHWF1R_AVSEL_Pos (20U)
  6984. #define ETH_MACHWF1R_AVSEL_Msk (0x1UL << ETH_MACHWF1R_AVSEL_Pos) /*!< 0x00100000 */
  6985. #define ETH_MACHWF1R_AVSEL ETH_MACHWF1R_AVSEL_Msk /* AV Feature Enabled */
  6986. #define ETH_MACHWF1R_DBGMEMA_Pos (19U)
  6987. #define ETH_MACHWF1R_DBGMEMA_Msk (0x1UL << ETH_MACHWF1R_DBGMEMA_Pos) /*!< 0x00080000 */
  6988. #define ETH_MACHWF1R_DBGMEMA ETH_MACHWF1R_DBGMEMA_Msk /* Debug Memory Interface Enabled */
  6989. #define ETH_MACHWF1R_TSOEN_Pos (18U)
  6990. #define ETH_MACHWF1R_TSOEN_Msk (0x1UL << ETH_MACHWF1R_TSOEN_Pos) /*!< 0x00040000 */
  6991. #define ETH_MACHWF1R_TSOEN ETH_MACHWF1R_TSOEN_Msk /* TCP Segmentation Offload Enable */
  6992. #define ETH_MACHWF1R_SPHEN_Pos (17U)
  6993. #define ETH_MACHWF1R_SPHEN_Msk (0x1UL << ETH_MACHWF1R_SPHEN_Pos) /*!< 0x00020000 */
  6994. #define ETH_MACHWF1R_SPHEN ETH_MACHWF1R_SPHEN_Msk /* Split Header Feature Enable */
  6995. #define ETH_MACHWF1R_DCBEN_Pos (16U)
  6996. #define ETH_MACHWF1R_DCBEN_Msk (0x1UL << ETH_MACHWF1R_DCBEN_Pos) /*!< 0x00010000 */
  6997. #define ETH_MACHWF1R_DCBEN ETH_MACHWF1R_DCBEN_Msk /* DCB Feature Enable */
  6998. #define ETH_MACHWF1R_ADDR64_Pos (14U)
  6999. #define ETH_MACHWF1R_ADDR64_Msk (0x3UL << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x0000C000 */
  7000. #define ETH_MACHWF1R_ADDR64 ETH_MACHWF1R_ADDR64_Msk /* Address Width */
  7001. #define ETH_MACHWF1R_ADDR64_32 (0x0UL << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00000000 */
  7002. #define ETH_MACHWF1R_ADDR64_40 (0x1UL << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00004000 */
  7003. #define ETH_MACHWF1R_ADDR64_48 (0x2UL << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00008000 */
  7004. #define ETH_MACHWF1R_ADVTHWORD_Pos (13U)
  7005. #define ETH_MACHWF1R_ADVTHWORD_Msk (0x1UL << ETH_MACHWF1R_ADVTHWORD_Pos) /*!< 0x00002000 */
  7006. #define ETH_MACHWF1R_ADVTHWORD ETH_MACHWF1R_ADVTHWORD_Msk /* IEEE 1588 High Word Register Enable */
  7007. #define ETH_MACHWF1R_PTOEN_Pos (12U)
  7008. #define ETH_MACHWF1R_PTOEN_Msk (0x1UL << ETH_MACHWF1R_PTOEN_Pos) /*!< 0x00001000 */
  7009. #define ETH_MACHWF1R_PTOEN ETH_MACHWF1R_PTOEN_Msk /* PTP Offload Enable */
  7010. #define ETH_MACHWF1R_OSTEN_Pos (11U)
  7011. #define ETH_MACHWF1R_OSTEN_Msk (0x1UL << ETH_MACHWF1R_OSTEN_Pos) /*!< 0x00000800 */
  7012. #define ETH_MACHWF1R_OSTEN ETH_MACHWF1R_OSTEN_Msk /* One-Step Timestamping Enable */
  7013. #define ETH_MACHWF1R_TXFIFOSIZE_Pos (6U)
  7014. #define ETH_MACHWF1R_TXFIFOSIZE_Msk (0x1FUL << ETH_MACHWF1R_TXFIFOSIZE_Pos) /*!< 0x000007C0 */
  7015. #define ETH_MACHWF1R_TXFIFOSIZE ETH_MACHWF1R_TXFIFOSIZE_Msk /* MTL Transmit FIFO Size */
  7016. #define ETH_MACHWF1R_RXFIFOSIZE_Pos (0U)
  7017. #define ETH_MACHWF1R_RXFIFOSIZE_Msk (0x1FUL << ETH_MACHWF1R_RXFIFOSIZE_Pos) /*!< 0x0000001F */
  7018. #define ETH_MACHWF1R_RXFIFOSIZE ETH_MACHWF1R_RXFIFOSIZE_Msk /* MTL Receive FIFO Size */
  7019. /* Bit definition for Ethernet MAC HW Feature2 Register */
  7020. #define ETH_MACHWF2R_AUXSNAPNUM_Pos (28U)
  7021. #define ETH_MACHWF2R_AUXSNAPNUM_Msk (0x7UL << ETH_MACHWF2R_AUXSNAPNUM_Pos) /*!< 0x70000000 */
  7022. #define ETH_MACHWF2R_AUXSNAPNUM ETH_MACHWF2R_AUXSNAPNUM_Msk /* Number of Auxiliary Snapshot Inputs */
  7023. #define ETH_MACHWF2R_PPSOUTNUM_Pos (24U)
  7024. #define ETH_MACHWF2R_PPSOUTNUM_Msk (0x7UL << ETH_MACHWF2R_PPSOUTNUM_Pos) /*!< 0x07000000 */
  7025. #define ETH_MACHWF2R_PPSOUTNUM ETH_MACHWF2R_PPSOUTNUM_Msk /* Number of PPS Outputs */
  7026. #define ETH_MACHWF2R_TXCHCNT_Pos (18U)
  7027. #define ETH_MACHWF2R_TXCHCNT_Msk (0xFUL << ETH_MACHWF2R_TXCHCNT_Pos) /*!< 0x003C0000 */
  7028. #define ETH_MACHWF2R_TXCHCNT ETH_MACHWF2R_TXCHCNT_Msk /* Number of DMA Transmit Channels */
  7029. #define ETH_MACHWF2R_RXCHCNT_Pos (13U)
  7030. #define ETH_MACHWF2R_RXCHCNT_Msk (0x7UL << ETH_MACHWF2R_RXCHCNT_Pos) /*!< 0x0000E000 */
  7031. #define ETH_MACHWF2R_RXCHCNT ETH_MACHWF2R_RXCHCNT_Msk /* Number of DMA Receive Channels */
  7032. #define ETH_MACHWF2R_TXQCNT_Pos (6U)
  7033. #define ETH_MACHWF2R_TXQCNT_Msk (0xFUL << ETH_MACHWF2R_TXQCNT_Pos) /*!< 0x000003C0 */
  7034. #define ETH_MACHWF2R_TXQCNT ETH_MACHWF2R_TXQCNT_Msk /* Number of MTL Transmit Queues */
  7035. #define ETH_MACHWF2R_RXQCNT_Pos (0U)
  7036. #define ETH_MACHWF2R_RXQCNT_Msk (0xFUL << ETH_MACHWF2R_RXQCNT_Pos) /*!< 0x0000000F */
  7037. #define ETH_MACHWF2R_RXQCNT ETH_MACHWF2R_RXQCNT_Msk /* Number of MTL Receive Queues */
  7038. /* Bit definition for Ethernet MAC MDIO Address Register */
  7039. #define ETH_MACMDIOAR_PSE_Pos (27U)
  7040. #define ETH_MACMDIOAR_PSE_Msk (0x1UL << ETH_MACMDIOAR_PSE_Pos) /*!< 0x08000000 */
  7041. #define ETH_MACMDIOAR_PSE ETH_MACMDIOAR_PSE_Msk /* Preamble Suppression Enable */
  7042. #define ETH_MACMDIOAR_BTB_Pos (26U)
  7043. #define ETH_MACMDIOAR_BTB_Msk (0x1UL << ETH_MACMDIOAR_BTB_Pos) /*!< 0x04000000 */
  7044. #define ETH_MACMDIOAR_BTB ETH_MACMDIOAR_BTB_Msk /* Back to Back transactions */
  7045. #define ETH_MACMDIOAR_PA_Pos (21U)
  7046. #define ETH_MACMDIOAR_PA_Msk (0x1FUL << ETH_MACMDIOAR_PA_Pos) /*!< 0x03E00000 */
  7047. #define ETH_MACMDIOAR_PA ETH_MACMDIOAR_PA_Msk /* Physical Layer Address */
  7048. #define ETH_MACMDIOAR_RDA_Pos (16U)
  7049. #define ETH_MACMDIOAR_RDA_Msk (0x1FUL << ETH_MACMDIOAR_RDA_Pos) /*!< 0x001F0000 */
  7050. #define ETH_MACMDIOAR_RDA ETH_MACMDIOAR_RDA_Msk /* Register/Device Address */
  7051. #define ETH_MACMDIOAR_NTC_Pos (12U)
  7052. #define ETH_MACMDIOAR_NTC_Msk (0x7UL << ETH_MACMDIOAR_NTC_Pos) /*!< 0x00007000 */
  7053. #define ETH_MACMDIOAR_NTC ETH_MACMDIOAR_NTC_Msk /* Number of Trailing Clocks */
  7054. #define ETH_MACMDIOAR_CR_Pos (8U)
  7055. #define ETH_MACMDIOAR_CR_Msk (0xFUL << ETH_MACMDIOAR_CR_Pos) /*!< 0x00000F00 */
  7056. #define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_Msk /* CSR Clock Range */
  7057. #define ETH_MACMDIOAR_CR_DIV42 ((uint32_t)0x00000000) /* CSR clock/42 */
  7058. #define ETH_MACMDIOAR_CR_DIV62_Pos (8U)
  7059. #define ETH_MACMDIOAR_CR_DIV62_Msk (0x1UL << ETH_MACMDIOAR_CR_DIV62_Pos) /*!< 0x00000100 */
  7060. #define ETH_MACMDIOAR_CR_DIV62 ETH_MACMDIOAR_CR_DIV62_Msk /* CSR clock/62 */
  7061. #define ETH_MACMDIOAR_CR_DIV16_Pos (9U)
  7062. #define ETH_MACMDIOAR_CR_DIV16_Msk (0x1UL << ETH_MACMDIOAR_CR_DIV16_Pos) /*!< 0x00000200 */
  7063. #define ETH_MACMDIOAR_CR_DIV16 ETH_MACMDIOAR_CR_DIV16_Msk /* CSR clock/16 */
  7064. #define ETH_MACMDIOAR_CR_DIV26_Pos (8U)
  7065. #define ETH_MACMDIOAR_CR_DIV26_Msk (0x3UL << ETH_MACMDIOAR_CR_DIV26_Pos) /*!< 0x00000300 */
  7066. #define ETH_MACMDIOAR_CR_DIV26 ETH_MACMDIOAR_CR_DIV26_Msk /* CSR clock/26 */
  7067. #define ETH_MACMDIOAR_CR_DIV102_Pos (10U)
  7068. #define ETH_MACMDIOAR_CR_DIV102_Msk (0x1UL << ETH_MACMDIOAR_CR_DIV102_Pos) /*!< 0x00000400 */
  7069. #define ETH_MACMDIOAR_CR_DIV102 ETH_MACMDIOAR_CR_DIV102_Msk /* CSR clock/102 */
  7070. #define ETH_MACMDIOAR_CR_DIV124_Pos (8U)
  7071. #define ETH_MACMDIOAR_CR_DIV124_Msk (0x5UL << ETH_MACMDIOAR_CR_DIV124_Pos) /*!< 0x00000500 */
  7072. #define ETH_MACMDIOAR_CR_DIV124 ETH_MACMDIOAR_CR_DIV124_Msk /* CSR clock/124 */
  7073. #define ETH_MACMDIOAR_CR_DIV4AR_Pos (11U)
  7074. #define ETH_MACMDIOAR_CR_DIV4AR_Msk (0x1UL << ETH_MACMDIOAR_CR_DIV4AR_Pos) /*!< 0x00000800 */
  7075. #define ETH_MACMDIOAR_CR_DIV4AR ETH_MACMDIOAR_CR_DIV4AR_Msk /* CSR clock/4: MDC clock above range specified in IEEE */
  7076. #define ETH_MACMDIOAR_CR_DIV6AR_Pos (8U)
  7077. #define ETH_MACMDIOAR_CR_DIV6AR_Msk (0x9UL << ETH_MACMDIOAR_CR_DIV6AR_Pos) /*!< 0x00000900 */
  7078. #define ETH_MACMDIOAR_CR_DIV6AR ETH_MACMDIOAR_CR_DIV6AR_Msk /* CSR clock/6: MDC clock above range specified in IEEE */
  7079. #define ETH_MACMDIOAR_CR_DIV8AR_Pos (9U)
  7080. #define ETH_MACMDIOAR_CR_DIV8AR_Msk (0x5UL << ETH_MACMDIOAR_CR_DIV8AR_Pos) /*!< 0x00000A00 */
  7081. #define ETH_MACMDIOAR_CR_DIV8AR ETH_MACMDIOAR_CR_DIV8AR_Msk /* CSR clock/8: MDC clock above range specified in IEEE */
  7082. #define ETH_MACMDIOAR_CR_DIV10AR_Pos (8U)
  7083. #define ETH_MACMDIOAR_CR_DIV10AR_Msk (0xBUL << ETH_MACMDIOAR_CR_DIV10AR_Pos) /*!< 0x00000B00 */
  7084. #define ETH_MACMDIOAR_CR_DIV10AR ETH_MACMDIOAR_CR_DIV10AR_Msk /* CSR clock/10: MDC clock above range specified in IEEE */
  7085. #define ETH_MACMDIOAR_CR_DIV12AR_Pos (10U)
  7086. #define ETH_MACMDIOAR_CR_DIV12AR_Msk (0x3UL << ETH_MACMDIOAR_CR_DIV12AR_Pos) /*!< 0x00000C00 */
  7087. #define ETH_MACMDIOAR_CR_DIV12AR ETH_MACMDIOAR_CR_DIV12AR_Msk /* CSR clock/12: MDC clock above range specified in IEEE */
  7088. #define ETH_MACMDIOAR_CR_DIV14AR_Pos (8U)
  7089. #define ETH_MACMDIOAR_CR_DIV14AR_Msk (0xDUL << ETH_MACMDIOAR_CR_DIV14AR_Pos) /*!< 0x00000D00 */
  7090. #define ETH_MACMDIOAR_CR_DIV14AR ETH_MACMDIOAR_CR_DIV14AR_Msk /* CSR clock/14: MDC clock above range specified in IEEE */
  7091. #define ETH_MACMDIOAR_CR_DIV16AR_Pos (9U)
  7092. #define ETH_MACMDIOAR_CR_DIV16AR_Msk (0x7UL << ETH_MACMDIOAR_CR_DIV16AR_Pos) /*!< 0x00000E00 */
  7093. #define ETH_MACMDIOAR_CR_DIV16AR ETH_MACMDIOAR_CR_DIV16AR_Msk /* CSR clock/16: MDC clock above range specified in IEEE */
  7094. #define ETH_MACMDIOAR_CR_DIV18AR_Pos (8U)
  7095. #define ETH_MACMDIOAR_CR_DIV18AR_Msk (0xFUL << ETH_MACMDIOAR_CR_DIV18AR_Pos) /*!< 0x00000F00 */
  7096. #define ETH_MACMDIOAR_CR_DIV18AR ETH_MACMDIOAR_CR_DIV18AR_Msk /* CSR clock/18: MDC clock above range specified in IEEE */
  7097. #define ETH_MACMDIOAR_SKAP_Pos (4U)
  7098. #define ETH_MACMDIOAR_SKAP_Msk (0x1UL << ETH_MACMDIOAR_SKAP_Pos) /*!< 0x00000010 */
  7099. #define ETH_MACMDIOAR_SKAP ETH_MACMDIOAR_SKAP_Msk /* Skip Address Packet */
  7100. #define ETH_MACMDIOAR_MOC_Pos (2U)
  7101. #define ETH_MACMDIOAR_MOC_Msk (0x3UL << ETH_MACMDIOAR_MOC_Pos) /*!< 0x0000000C */
  7102. #define ETH_MACMDIOAR_MOC ETH_MACMDIOAR_MOC_Msk /* MII Operation Command */
  7103. #define ETH_MACMDIOAR_MOC_WR_Pos (2U)
  7104. #define ETH_MACMDIOAR_MOC_WR_Msk (0x1UL << ETH_MACMDIOAR_MOC_WR_Pos) /*!< 0x00000004 */
  7105. #define ETH_MACMDIOAR_MOC_WR ETH_MACMDIOAR_MOC_WR_Msk /* Write */
  7106. #define ETH_MACMDIOAR_MOC_PRDIA_Pos (3U)
  7107. #define ETH_MACMDIOAR_MOC_PRDIA_Msk (0x1UL << ETH_MACMDIOAR_MOC_PRDIA_Pos) /*!< 0x00000008 */
  7108. #define ETH_MACMDIOAR_MOC_PRDIA ETH_MACMDIOAR_MOC_PRDIA_Msk /* Post Read Increment Address for Clause 45 PHY */
  7109. #define ETH_MACMDIOAR_MOC_RD_Pos (2U)
  7110. #define ETH_MACMDIOAR_MOC_RD_Msk (0x3UL << ETH_MACMDIOAR_MOC_RD_Pos) /*!< 0x0000000C */
  7111. #define ETH_MACMDIOAR_MOC_RD ETH_MACMDIOAR_MOC_RD_Msk /* Read */
  7112. #define ETH_MACMDIOAR_C45E_Pos (1U)
  7113. #define ETH_MACMDIOAR_C45E_Msk (0x1UL << ETH_MACMDIOAR_C45E_Pos) /*!< 0x00000002 */
  7114. #define ETH_MACMDIOAR_C45E ETH_MACMDIOAR_C45E_Msk /* Clause 45 PHY Enable */
  7115. #define ETH_MACMDIOAR_MB_Pos (0U)
  7116. #define ETH_MACMDIOAR_MB_Msk (0x1UL << ETH_MACMDIOAR_MB_Pos) /*!< 0x00000001 */
  7117. #define ETH_MACMDIOAR_MB ETH_MACMDIOAR_MB_Msk /* MII Busy */
  7118. /* Bit definition for Ethernet MAC MDIO Data Register */
  7119. #define ETH_MACMDIODR_RA_Pos (16U)
  7120. #define ETH_MACMDIODR_RA_Msk (0xFFFFUL << ETH_MACMDIODR_RA_Pos) /*!< 0xFFFF0000 */
  7121. #define ETH_MACMDIODR_RA ETH_MACMDIODR_RA_Msk /* Register Address */
  7122. #define ETH_MACMDIODR_MD_Pos (0U)
  7123. #define ETH_MACMDIODR_MD_Msk (0xFFFFUL << ETH_MACMDIODR_MD_Pos) /*!< 0x0000FFFF */
  7124. #define ETH_MACMDIODR_MD ETH_MACMDIODR_MD_Msk /* MII Data */
  7125. /* Bit definition for Ethernet ARP Address Register */
  7126. #define ETH_MACARPAR_ARPPA_Pos (0U)
  7127. #define ETH_MACARPAR_ARPPA_Msk (0xFFFFFFFFUL << ETH_MACARPAR_ARPPA_Pos) /*!< 0xFFFFFFFF */
  7128. #define ETH_MACARPAR_ARPPA ETH_MACARPAR_ARPPA_Msk /* ARP Protocol Address */
  7129. /* Bit definition for Ethernet MAC Address 0 High Register */
  7130. #define ETH_MACA0HR_AE_Pos (31U)
  7131. #define ETH_MACA0HR_AE_Msk (0x1UL << ETH_MACA0HR_AE_Pos) /*!< 0x80000000 */
  7132. #define ETH_MACA0HR_AE ETH_MACA0HR_AE_Msk /* Address Enable*/
  7133. #define ETH_MACA0HR_ADDRHI_Pos (0U)
  7134. #define ETH_MACA0HR_ADDRHI_Msk (0xFFFFUL << ETH_MACA0HR_ADDRHI_Pos) /*!< 0x0000FFFF */
  7135. #define ETH_MACA0HR_ADDRHI ETH_MACA0HR_ADDRHI_Msk /* MAC Address 0*/
  7136. /* Bit definition for Ethernet MAC Address 0 Low Register */
  7137. #define ETH_MACA0LR_ADDRLO_Pos (0U)
  7138. #define ETH_MACA0LR_ADDRLO_Msk (0xFFFFFFFFUL << ETH_MACA0LR_ADDRLO_Pos) /*!< 0xFFFFFFFF */
  7139. #define ETH_MACA0LR_ADDRLO ETH_MACA0LR_ADDRLO_Msk /* MAC Address 0*/
  7140. /* Bit definition for Ethernet MAC Address 1 High Register */
  7141. #define ETH_MACA1HR_AE_Pos (31U)
  7142. #define ETH_MACA1HR_AE_Msk (0x1UL << ETH_MACA1HR_AE_Pos) /*!< 0x80000000 */
  7143. #define ETH_MACA1HR_AE ETH_MACA1HR_AE_Msk /* Address Enable*/
  7144. #define ETH_MACA1HR_SA_Pos (30U)
  7145. #define ETH_MACA1HR_SA_Msk (0x1UL << ETH_MACA1HR_SA_Pos) /*!< 0x40000000 */
  7146. #define ETH_MACA1HR_SA ETH_MACA1HR_SA_Msk /* Source Address */
  7147. #define ETH_MACA1HR_MBC_Pos (24U)
  7148. #define ETH_MACA1HR_MBC_Msk (0x3FUL << ETH_MACA1HR_MBC_Pos) /*!< 0x3F000000 */
  7149. #define ETH_MACA1HR_MBC ETH_MACA1HR_MBC_Msk /* Mask Byte Control */
  7150. #define ETH_MACA1HR_ADDRHI_Pos (0U)
  7151. #define ETH_MACA1HR_ADDRHI_Msk (0xFFFFUL << ETH_MACA1HR_ADDRHI_Pos) /*!< 0x0000FFFF */
  7152. #define ETH_MACA1HR_ADDRHI ETH_MACA1HR_ADDRHI_Msk /* MAC Address 1*/
  7153. /* Bit definition for Ethernet MAC Address 1 Low Register */
  7154. #define ETH_MACA1LR_ADDRLO_Pos (0U)
  7155. #define ETH_MACA1LR_ADDRLO_Msk (0xFFFFFFFFUL << ETH_MACA1LR_ADDRLO_Pos) /*!< 0xFFFFFFFF */
  7156. #define ETH_MACA1LR_ADDRLO ETH_MACA1LR_ADDRLO_Msk /* MAC Address 1*/
  7157. /* Bit definition for Ethernet MAC Address 2 High Register */
  7158. #define ETH_MACA2HR_AE_Pos (31U)
  7159. #define ETH_MACA2HR_AE_Msk (0x1UL << ETH_MACA2HR_AE_Pos) /*!< 0x80000000 */
  7160. #define ETH_MACA2HR_AE ETH_MACA2HR_AE_Msk /* Address Enable*/
  7161. #define ETH_MACA2HR_SA_Pos (30U)
  7162. #define ETH_MACA2HR_SA_Msk (0x1UL << ETH_MACA2HR_SA_Pos) /*!< 0x40000000 */
  7163. #define ETH_MACA2HR_SA ETH_MACA2HR_SA_Msk /* Source Address */
  7164. #define ETH_MACA2HR_MBC_Pos (24U)
  7165. #define ETH_MACA2HR_MBC_Msk (0x3FUL << ETH_MACA2HR_MBC_Pos) /*!< 0x3F000000 */
  7166. #define ETH_MACA2HR_MBC ETH_MACA2HR_MBC_Msk /* Mask Byte Control */
  7167. #define ETH_MACA2HR_ADDRHI_Pos (0U)
  7168. #define ETH_MACA2HR_ADDRHI_Msk (0xFFFFUL << ETH_MACA2HR_ADDRHI_Pos) /*!< 0x0000FFFF */
  7169. #define ETH_MACA2HR_ADDRHI ETH_MACA2HR_ADDRHI_Msk /* MAC Address 1*/
  7170. /* Bit definition for Ethernet MAC Address 2 Low Register */
  7171. #define ETH_MACA2LR_ADDRLO_Pos (0U)
  7172. #define ETH_MACA2LR_ADDRLO_Msk (0xFFFFFFFFUL << ETH_MACA2LR_ADDRLO_Pos) /*!< 0xFFFFFFFF */
  7173. #define ETH_MACA2LR_ADDRLO ETH_MACA2LR_ADDRLO_Msk /* MAC Address 2*/
  7174. /* Bit definition for Ethernet MAC Address 3 High Register */
  7175. #define ETH_MACA3HR_AE_Pos (31U)
  7176. #define ETH_MACA3HR_AE_Msk (0x1UL << ETH_MACA3HR_AE_Pos) /*!< 0x80000000 */
  7177. #define ETH_MACA3HR_AE ETH_MACA3HR_AE_Msk /* Address Enable*/
  7178. #define ETH_MACA3HR_SA_Pos (30U)
  7179. #define ETH_MACA3HR_SA_Msk (0x1UL << ETH_MACA3HR_SA_Pos) /*!< 0x40000000 */
  7180. #define ETH_MACA3HR_SA ETH_MACA3HR_SA_Msk /* Source Address */
  7181. #define ETH_MACA3HR_MBC_Pos (24U)
  7182. #define ETH_MACA3HR_MBC_Msk (0x3FUL << ETH_MACA3HR_MBC_Pos) /*!< 0x3F000000 */
  7183. #define ETH_MACA3HR_MBC ETH_MACA3HR_MBC_Msk /* Mask Byte Control */
  7184. #define ETH_MACA3HR_ADDRHI_Pos (0U)
  7185. #define ETH_MACA3HR_ADDRHI_Msk (0xFFFFUL << ETH_MACA3HR_ADDRHI_Pos) /*!< 0x0000FFFF */
  7186. #define ETH_MACA3HR_ADDRHI ETH_MACA3HR_ADDRHI_Msk /* MAC Address 1*/
  7187. /* Bit definition for Ethernet MAC Address 3 Low Register */
  7188. #define ETH_MACA3LR_ADDRLO_Pos (0U)
  7189. #define ETH_MACA3LR_ADDRLO_Msk (0xFFFFFFFFUL << ETH_MACA3LR_ADDRLO_Pos) /*!< 0xFFFFFFFF */
  7190. #define ETH_MACA3LR_ADDRLO ETH_MACA3LR_ADDRLO_Msk /* MAC Address 3*/
  7191. /* Bit definition for Ethernet MAC Address High Register */
  7192. #define ETH_MACAHR_AE_Pos (31U)
  7193. #define ETH_MACAHR_AE_Msk (0x1UL << ETH_MACAHR_AE_Pos) /*!< 0x80000000 */
  7194. #define ETH_MACAHR_AE ETH_MACAHR_AE_Msk /* Address enable */
  7195. #define ETH_MACAHR_SA_Pos (30U)
  7196. #define ETH_MACAHR_SA_Msk (0x1UL << ETH_MACAHR_SA_Pos) /*!< 0x40000000 */
  7197. #define ETH_MACAHR_SA ETH_MACAHR_SA_Msk /* Source address */
  7198. #define ETH_MACAHR_MBC_Pos (24U)
  7199. #define ETH_MACAHR_MBC_Msk (0x3FUL << ETH_MACAHR_MBC_Pos) /*!< 0x3F000000 */
  7200. #define ETH_MACAHR_MBC ETH_MACAHR_MBC_Msk /* Mask byte control: bits to mask for comparison of the MAC Address bytes */
  7201. #define ETH_MACAHR_MBC_HBITS15_8 ((uint32_t)0x20000000) /* Mask MAC Address high reg bits [15:8] */
  7202. #define ETH_MACAHR_MBC_HBITS7_0 ((uint32_t)0x10000000) /* Mask MAC Address high reg bits [7:0] */
  7203. #define ETH_MACAHR_MBC_LBITS31_24 ((uint32_t)0x08000000) /* Mask MAC Address low reg bits [31:24] */
  7204. #define ETH_MACAHR_MBC_LBITS23_16 ((uint32_t)0x04000000) /* Mask MAC Address low reg bits [23:16] */
  7205. #define ETH_MACAHR_MBC_LBITS15_8 ((uint32_t)0x02000000) /* Mask MAC Address low reg bits [15:8] */
  7206. #define ETH_MACAHR_MBC_LBITS7_0 ((uint32_t)0x01000000) /* Mask MAC Address low reg bits [7:0] */
  7207. #define ETH_MACAHR_MACAH_Pos (0U)
  7208. #define ETH_MACAHR_MACAH_Msk (0xFFFFUL << ETH_MACAHR_MACAH_Pos) /*!< 0x0000FFFF */
  7209. #define ETH_MACAHR_MACAH ETH_MACAHR_MACAH_Msk /* MAC address high */
  7210. /* Bit definition for Ethernet MAC Address Low Register */
  7211. #define ETH_MACALR_MACAL_Pos (0U)
  7212. #define ETH_MACALR_MACAL_Msk (0xFFFFFFFFUL << ETH_MACALR_MACAL_Pos) /*!< 0xFFFFFFFF */
  7213. #define ETH_MACALR_MACAL ETH_MACALR_MACAL_Msk /* MAC address low */
  7214. /* Bit definition for Ethernet MMC Control Register */
  7215. #define ETH_MMCCR_UCDBC_Pos (8U)
  7216. #define ETH_MMCCR_UCDBC_Msk (0x1UL << ETH_MMCCR_UCDBC_Pos) /*!< 0x00000100 */
  7217. #define ETH_MMCCR_UCDBC ETH_MMCCR_UCDBC_Msk /* Update MMC Counters for Dropped Broadcast Packets */
  7218. #define ETH_MMCCR_CNTPRSTLVL_Pos (5U)
  7219. #define ETH_MMCCR_CNTPRSTLVL_Msk (0x1UL << ETH_MMCCR_CNTPRSTLVL_Pos) /*!< 0x00000020 */
  7220. #define ETH_MMCCR_CNTPRSTLVL ETH_MMCCR_CNTPRSTLVL_Msk /* Full-Half Preset */
  7221. #define ETH_MMCCR_CNTPRST_Pos (4U)
  7222. #define ETH_MMCCR_CNTPRST_Msk (0x1UL << ETH_MMCCR_CNTPRST_Pos) /*!< 0x00000010 */
  7223. #define ETH_MMCCR_CNTPRST ETH_MMCCR_CNTPRST_Msk /* Counters Reset */
  7224. #define ETH_MMCCR_CNTFREEZ_Pos (3U)
  7225. #define ETH_MMCCR_CNTFREEZ_Msk (0x1UL << ETH_MMCCR_CNTFREEZ_Pos) /*!< 0x00000008 */
  7226. #define ETH_MMCCR_CNTFREEZ ETH_MMCCR_CNTFREEZ_Msk /* MMC Counter Freeze */
  7227. #define ETH_MMCCR_RSTONRD_Pos (2U)
  7228. #define ETH_MMCCR_RSTONRD_Msk (0x1UL << ETH_MMCCR_RSTONRD_Pos) /*!< 0x00000004 */
  7229. #define ETH_MMCCR_RSTONRD ETH_MMCCR_RSTONRD_Msk /* Reset On Read */
  7230. #define ETH_MMCCR_CNTSTOPRO_Pos (1U)
  7231. #define ETH_MMCCR_CNTSTOPRO_Msk (0x1UL << ETH_MMCCR_CNTSTOPRO_Pos) /*!< 0x00000002 */
  7232. #define ETH_MMCCR_CNTSTOPRO ETH_MMCCR_CNTSTOPRO_Msk /* Counter Stop Rollover */
  7233. #define ETH_MMCCR_CNTRST_Pos (0U)
  7234. #define ETH_MMCCR_CNTRST_Msk (0x1UL << ETH_MMCCR_CNTRST_Pos) /*!< 0x00000001 */
  7235. #define ETH_MMCCR_CNTRST ETH_MMCCR_CNTRST_Msk /* Counters Reset */
  7236. /* Bit definition for Ethernet MMC Rx Interrupt Register */
  7237. #define ETH_MMCRIR_RXLPITRCIS_Pos (27U)
  7238. #define ETH_MMCRIR_RXLPITRCIS_Msk (0x1UL << ETH_MMCRIR_RXLPITRCIS_Pos) /*!< 0x08000000 */
  7239. #define ETH_MMCRIR_RXLPITRCIS ETH_MMCRIR_RXLPITRCIS_Msk /* MMC Receive LPI transition counter interrupt status */
  7240. #define ETH_MMCRIR_RXLPIUSCIS_Pos (26U)
  7241. #define ETH_MMCRIR_RXLPIUSCIS_Msk (0x1UL << ETH_MMCRIR_RXLPIUSCIS_Pos) /*!< 0x04000000 */
  7242. #define ETH_MMCRIR_RXLPIUSCIS ETH_MMCRIR_RXLPIUSCIS_Msk /* MMC Receive LPI microsecond counter interrupt status */
  7243. #define ETH_MMCRIR_RXUCGPIS_Pos (17U)
  7244. #define ETH_MMCRIR_RXUCGPIS_Msk (0x1UL << ETH_MMCRIR_RXUCGPIS_Pos) /*!< 0x00020000 */
  7245. #define ETH_MMCRIR_RXUCGPIS ETH_MMCRIR_RXUCGPIS_Msk /* MMC Receive Unicast Good Packet Counter Interrupt Status */
  7246. #define ETH_MMCRIR_RXALGNERPIS_Pos (6U)
  7247. #define ETH_MMCRIR_RXALGNERPIS_Msk (0x1UL << ETH_MMCRIR_RXALGNERPIS_Pos) /*!< 0x00000040 */
  7248. #define ETH_MMCRIR_RXALGNERPIS ETH_MMCRIR_RXALGNERPIS_Msk /* MMC Receive Alignment Error Packet Counter Interrupt Status */
  7249. #define ETH_MMCRIR_RXCRCERPIS_Pos (5U)
  7250. #define ETH_MMCRIR_RXCRCERPIS_Msk (0x1UL << ETH_MMCRIR_RXCRCERPIS_Pos) /*!< 0x00000020 */
  7251. #define ETH_MMCRIR_RXCRCERPIS ETH_MMCRIR_RXCRCERPIS_Msk /* MMC Receive CRC Error Packet Counter Interrupt Status */
  7252. /* Bit definition for Ethernet MMC Tx Interrupt Register */
  7253. #define ETH_MMCTIR_TXLPITRCIS_Pos (27U)
  7254. #define ETH_MMCTIR_TXLPITRCIS_Msk (0x1UL << ETH_MMCTIR_TXLPITRCIS_Pos) /*!< 0x08000000 */
  7255. #define ETH_MMCTIR_TXLPITRCIS ETH_MMCTIR_TXLPITRCIS_Msk /* MMC Transmit LPI transition counter interrupt status */
  7256. #define ETH_MMCTIR_TXLPIUSCIS_Pos (26U)
  7257. #define ETH_MMCTIR_TXLPIUSCIS_Msk (0x1UL << ETH_MMCTIR_TXLPIUSCIS_Pos) /*!< 0x04000000 */
  7258. #define ETH_MMCTIR_TXLPIUSCIS ETH_MMCTIR_TXLPIUSCIS_Msk /* MMC Transmit LPI microsecond counter interrupt status */
  7259. #define ETH_MMCTIR_TXGPKTIS_Pos (21U)
  7260. #define ETH_MMCTIR_TXGPKTIS_Msk (0x1UL << ETH_MMCTIR_TXGPKTIS_Pos) /*!< 0x00200000 */
  7261. #define ETH_MMCTIR_TXGPKTIS ETH_MMCTIR_TXGPKTIS_Msk /* MMC Transmit Good Packet Counter Interrupt Status */
  7262. #define ETH_MMCTIR_TXMCOLGPIS_Pos (15U)
  7263. #define ETH_MMCTIR_TXMCOLGPIS_Msk (0x1UL << ETH_MMCTIR_TXMCOLGPIS_Pos) /*!< 0x00008000 */
  7264. #define ETH_MMCTIR_TXMCOLGPIS ETH_MMCTIR_TXMCOLGPIS_Msk /* MMC Transmit Multiple Collision Good Packet Counter Interrupt Status */
  7265. #define ETH_MMCTIR_TXSCOLGPIS_Pos (14U)
  7266. #define ETH_MMCTIR_TXSCOLGPIS_Msk (0x1UL << ETH_MMCTIR_TXSCOLGPIS_Pos) /*!< 0x00004000 */
  7267. #define ETH_MMCTIR_TXSCOLGPIS ETH_MMCTIR_TXSCOLGPIS_Msk /* MMC Transmit Single Collision Good Packet Counter Interrupt Status */
  7268. /* Bit definition for Ethernet MMC Rx interrupt Mask register */
  7269. #define ETH_MMCRIMR_RXLPITRCIM_Pos (27U)
  7270. #define ETH_MMCRIMR_RXLPITRCIM_Msk (0x1UL << ETH_MMCRIMR_RXLPITRCIM_Pos) /*!< 0x08000000 */
  7271. #define ETH_MMCRIMR_RXLPITRCIM ETH_MMCRIMR_RXLPITRCIM_Msk /* MMC Receive LPI transition counter interrupt Mask */
  7272. #define ETH_MMCRIMR_RXLPIUSCIM_Pos (26U)
  7273. #define ETH_MMCRIMR_RXLPIUSCIM_Msk (0x1UL << ETH_MMCRIMR_RXLPIUSCIM_Pos) /*!< 0x04000000 */
  7274. #define ETH_MMCRIMR_RXLPIUSCIM ETH_MMCRIMR_RXLPIUSCIM_Msk /* MMC Receive LPI microsecond counter interrupt Mask */
  7275. #define ETH_MMCRIMR_RXUCGPIM_Pos (17U)
  7276. #define ETH_MMCRIMR_RXUCGPIM_Msk (0x1UL << ETH_MMCRIMR_RXUCGPIM_Pos) /*!< 0x00020000 */
  7277. #define ETH_MMCRIMR_RXUCGPIM ETH_MMCRIMR_RXUCGPIM_Msk /* MMC Receive Unicast Good Packet Counter Interrupt Mask */
  7278. #define ETH_MMCRIMR_RXALGNERPIM_Pos (6U)
  7279. #define ETH_MMCRIMR_RXALGNERPIM_Msk (0x1UL << ETH_MMCRIMR_RXALGNERPIM_Pos) /*!< 0x00000040 */
  7280. #define ETH_MMCRIMR_RXALGNERPIM ETH_MMCRIMR_RXALGNERPIM_Msk /* MMC Receive Alignment Error Packet Counter Interrupt Mask */
  7281. #define ETH_MMCRIMR_RXCRCERPIM_Pos (5U)
  7282. #define ETH_MMCRIMR_RXCRCERPIM_Msk (0x1UL << ETH_MMCRIMR_RXCRCERPIM_Pos) /*!< 0x00000020 */
  7283. #define ETH_MMCRIMR_RXCRCERPIM ETH_MMCRIMR_RXCRCERPIM_Msk /* MMC Receive CRC Error Packet Counter Interrupt Mask */
  7284. /* Bit definition for Ethernet MMC Tx Interrupt Mask Register */
  7285. #define ETH_MMCTIMR_TXLPITRCIM_Pos (27U)
  7286. #define ETH_MMCTIMR_TXLPITRCIM_Msk (0x1UL << ETH_MMCTIMR_TXLPITRCIM_Pos) /*!< 0x08000000 */
  7287. #define ETH_MMCTIMR_TXLPITRCIM ETH_MMCTIMR_TXLPITRCIM_Msk /* MMC Transmit LPI transition counter interrupt Mask*/
  7288. #define ETH_MMCTIMR_TXLPIUSCIM_Pos (26U)
  7289. #define ETH_MMCTIMR_TXLPIUSCIM_Msk (0x1UL << ETH_MMCTIMR_TXLPIUSCIM_Pos) /*!< 0x04000000 */
  7290. #define ETH_MMCTIMR_TXLPIUSCIM ETH_MMCTIMR_TXLPIUSCIM_Msk /* MMC Transmit LPI microsecond counter interrupt Mask*/
  7291. #define ETH_MMCTIMR_TXGPKTIM_Pos (21U)
  7292. #define ETH_MMCTIMR_TXGPKTIM_Msk (0x1UL << ETH_MMCTIMR_TXGPKTIM_Pos) /*!< 0x00200000 */
  7293. #define ETH_MMCTIMR_TXGPKTIM ETH_MMCTIMR_TXGPKTIM_Msk /* MMC Transmit Good Packet Counter Interrupt Mask*/
  7294. #define ETH_MMCTIMR_TXMCOLGPIM_Pos (15U)
  7295. #define ETH_MMCTIMR_TXMCOLGPIM_Msk (0x1UL << ETH_MMCTIMR_TXMCOLGPIM_Pos) /*!< 0x00008000 */
  7296. #define ETH_MMCTIMR_TXMCOLGPIM ETH_MMCTIMR_TXMCOLGPIM_Msk /* MMC Transmit Multiple Collision Good Packet Counter Interrupt Mask */
  7297. #define ETH_MMCTIMR_TXSCOLGPIM_Pos (14U)
  7298. #define ETH_MMCTIMR_TXSCOLGPIM_Msk (0x1UL << ETH_MMCTIMR_TXSCOLGPIM_Pos) /*!< 0x00004000 */
  7299. #define ETH_MMCTIMR_TXSCOLGPIM ETH_MMCTIMR_TXSCOLGPIM_Msk /* MMC Transmit Single Collision Good Packet Counter Interrupt Mask */
  7300. /* Bit definition for Ethernet MMC Tx Single Collision Good Packets Register */
  7301. #define ETH_MMCTSCGPR_TXSNGLCOLG_Pos (0U)
  7302. #define ETH_MMCTSCGPR_TXSNGLCOLG_msk (0xFFFFFFFFUL << ETH_MMCTSCGPR_TXSNGLCOLG_Pos) /*!< 0xFFFFFFFF */
  7303. #define ETH_MMCTSCGPR_TXSNGLCOLG ETH_MMCTSCGPR_TXSNGLCOLG_msk /* Tx Single Collision Good Packets */
  7304. /* Bit definition for Ethernet MMC Tx Multiple Collision Good Packets Register */
  7305. #define ETH_MMCTMCGPR_TXMULTCOLG_Pos (0U)
  7306. #define ETH_MMCTMCGPR_TXMULTCOLG_msk (0xFFFFFFFFUL << ETH_MMCTMCGPR_TXMULTCOLG_Pos) /*!< 0xFFFFFFFF */
  7307. #define ETH_MMCTMCGPR_TXMULTCOLG ETH_MMCTMCGPR_TXMULTCOLG_msk /* Tx Multiple Collision Good Packets */
  7308. /* Bit definition for Ethernet MMC Tx Packet Count Good Register */
  7309. #define ETH_MMCTPCGR_TXPKTG_Pos (0U)
  7310. #define ETH_MMCTPCGR_TXPKTG_msk (0xFFFFFFFFUL << ETH_MMCTPCGR_TXPKTG_Pos) /*!< 0xFFFFFFFF */
  7311. #define ETH_MMCTPCGR_TXPKTG ETH_MMCTPCGR_TXPKTG_msk /* Tx Packet Count Good */
  7312. /* Bit definition for Ethernet MMC Rx CRC Error Packets Register */
  7313. #define ETH_MMCRCRCEPR_RXCRCERR_Pos (0U)
  7314. #define ETH_MMCRCRCEPR_RXCRCERR_msk (0xFFFFFFFFUL << ETH_MMCRCRCEPR_RXCRCERR_Pos) /*!< 0xFFFFFFFF */
  7315. #define ETH_MMCRCRCEPR_RXCRCERR ETH_MMCRCRCEPR_RXCRCERR_msk /* Rx CRC Error Packets */
  7316. /* Bit definition for Ethernet MMC Rx alignment error packets register */
  7317. #define ETH_MMCRAEPR_RXALGNERR_Pos (0U)
  7318. #define ETH_MMCRAEPR_RXALGNERR_msk (0xFFFFFFFFUL << ETH_MMCRAEPR_RXALGNERR_Pos) /*!< 0xFFFFFFFF */
  7319. #define ETH_MMCRAEPR_RXALGNERR ETH_MMCRAEPR_RXALGNERR_msk /* Rx Alignment Error Packets */
  7320. /* Bit definition for Ethernet MMC Rx Unicast Packets Good Register */
  7321. #define ETH_MMCRUPGR_RXUCASTG_Pos (0U)
  7322. #define ETH_MMCRUPGR_RXUCASTG_msk (0xFFFFFFFFUL << ETH_MMCRUPGR_RXUCASTG_Pos) /*!< 0xFFFFFFFF */
  7323. #define ETH_MMCRUPGR_RXUCASTG ETH_MMCRUPGR_RXUCASTG_msk /* Rx Unicast Packets Good */
  7324. /* Bit definition for Ethernet MMC Tx LPI Microsecond Timer Register */
  7325. #define ETH_MMCTLPIMSTR_TXLPIUSC_Pos (0U)
  7326. #define ETH_MMCTLPIMSTR_TXLPIUSC_msk (0xFFFFFFFFUL << ETH_MMCTLPIMSTR_TXLPIUSC_Pos) /*!< 0xFFFFFFFF */
  7327. #define ETH_MMCTLPIMSTR_TXLPIUSC ETH_MMCTLPIMSTR_TXLPIUSC_msk /* Tx LPI Microseconds Counter */
  7328. /* Bit definition for Ethernet MMC Tx LPI Transition Counter Register */
  7329. #define ETH_MMCTLPITCR_TXLPITRC_Pos (0U)
  7330. #define ETH_MMCTLPITCR_TXLPITRC_msk (0xFFFFFFFFUL << ETH_MMCTLPITCR_TXLPITRC_Pos) /*!< 0xFFFFFFFF */
  7331. #define ETH_MMCTLPITCR_TXLPITRC ETH_MMCTLPITCR_TXLPITRC_msk /* Tx LPI Transition counter */
  7332. /* Bit definition for Ethernet MMC Rx LPI Microsecond Counter Register */
  7333. #define ETH_MMCRLPIMSTR_RXLPIUSC_Pos (0U)
  7334. #define ETH_MMCRLPIMSTR_RXLPIUSC_msk (0xFFFFFFFFUL << ETH_MMCRLPIMSTR_RXLPIUSC_Pos) /*!< 0xFFFFFFFF */
  7335. #define ETH_MMCRLPIMSTR_RXLPIUSC ETH_MMCRLPIMSTR_RXLPIUSC_msk /* Rx LPI Microseconds Counter */
  7336. /* Bit definition for Ethernet MMC Rx LPI Transition Counter Register */
  7337. #define ETH_MMCRLPITCR_RXLPITRC_Pos (0U)
  7338. #define ETH_MMCRLPITCR_RXLPITRC_msk (0xFFFFFFFFUL << ETH_MMCRLPITCR_RXLPITRC_Pos) /*!< 0xFFFFFFFF */
  7339. #define ETH_MMCRLPITCR_RXLPITRC ETH_MMCRLPITCR_RXLPITRC_msk /* Rx LPI Transition counter */
  7340. /* Bit definition for Ethernet MAC L3 L4 Control Register */
  7341. #define ETH_MACL3L4CR_L4DPIM_Pos (21U)
  7342. #define ETH_MACL3L4CR_L4DPIM_Msk (0x1UL << ETH_MACL3L4CR_L4DPIM_Pos) /*!< 0x00200000 */
  7343. #define ETH_MACL3L4CR_L4DPIM ETH_MACL3L4CR_L4DPIM_Msk /* Layer 4 Destination Port Inverse Match Enable */
  7344. #define ETH_MACL3L4CR_L4DPM_Pos (20U)
  7345. #define ETH_MACL3L4CR_L4DPM_Msk (0x1UL << ETH_MACL3L4CR_L4DPM_Pos) /*!< 0x00100000 */
  7346. #define ETH_MACL3L4CR_L4DPM ETH_MACL3L4CR_L4DPM_Msk /* Layer 4 Destination Port Match Enable */
  7347. #define ETH_MACL3L4CR_L4SPIM_Pos (19U)
  7348. #define ETH_MACL3L4CR_L4SPIM_Msk (0x1UL << ETH_MACL3L4CR_L4SPIM_Pos) /*!< 0x00080000 */
  7349. #define ETH_MACL3L4CR_L4SPIM ETH_MACL3L4CR_L4SPIM_Msk /* Layer 4 Source Port Inverse Match Enable */
  7350. #define ETH_MACL3L4CR_L4SPM_Pos (18U)
  7351. #define ETH_MACL3L4CR_L4SPM_Msk (0x1UL << ETH_MACL3L4CR_L4SPM_Pos) /*!< 0x00040000 */
  7352. #define ETH_MACL3L4CR_L4SPM ETH_MACL3L4CR_L4SPM_Msk /* Layer 4 Source Port Match Enable */
  7353. #define ETH_MACL3L4CR_L4PEN_Pos (16U)
  7354. #define ETH_MACL3L4CR_L4PEN_Msk (0x1UL << ETH_MACL3L4CR_L4PEN_Pos) /*!< 0x00010000 */
  7355. #define ETH_MACL3L4CR_L4PEN ETH_MACL3L4CR_L4PEN_Msk /* Layer 4 Protocol Enable */
  7356. #define ETH_MACL3L4CR_L3HDBM_Pos (11U)
  7357. #define ETH_MACL3L4CR_L3HDBM_Msk (0x1FUL << ETH_MACL3L4CR_L3HDBM_Pos) /*!< 0x0000F800 */
  7358. #define ETH_MACL3L4CR_L3HDBM ETH_MACL3L4CR_L3HDBM_Msk /* Layer 3 IP DA Higher Bits Match */
  7359. #define ETH_MACL3L4CR_L3HSBM_Pos (6U)
  7360. #define ETH_MACL3L4CR_L3HSBM_Msk (0x1FUL << ETH_MACL3L4CR_L3HSBM_Pos) /*!< 0x000007C0 */
  7361. #define ETH_MACL3L4CR_L3HSBM ETH_MACL3L4CR_L3HSBM_Msk /* Layer 3 IP SA Higher Bits Match */
  7362. #define ETH_MACL3L4CR_L3DAIM_Pos (5U)
  7363. #define ETH_MACL3L4CR_L3DAIM_Msk (0x1UL << ETH_MACL3L4CR_L3DAIM_Pos) /*!< 0x00000020 */
  7364. #define ETH_MACL3L4CR_L3DAIM ETH_MACL3L4CR_L3DAIM_Msk /* Layer 3 IP DA Inverse Match Enable */
  7365. #define ETH_MACL3L4CR_L3DAM_Pos (4U)
  7366. #define ETH_MACL3L4CR_L3DAM_Msk (0x1UL << ETH_MACL3L4CR_L3DAM_Pos) /*!< 0x00000010 */
  7367. #define ETH_MACL3L4CR_L3DAM ETH_MACL3L4CR_L3DAM_Msk /* Layer 3 IP DA Match Enable */
  7368. #define ETH_MACL3L4CR_L3SAIM_Pos (3U)
  7369. #define ETH_MACL3L4CR_L3SAIM_Msk (0x1UL << ETH_MACL3L4CR_L3SAIM_Pos) /*!< 0x00000008 */
  7370. #define ETH_MACL3L4CR_L3SAIM ETH_MACL3L4CR_L3SAIM_Msk /* Layer 3 IP SA Inverse Match Enable */
  7371. #define ETH_MACL3L4CR_L3SAM_Pos (2U)
  7372. #define ETH_MACL3L4CR_L3SAM_Msk (0x1UL << ETH_MACL3L4CR_L3SAM_Pos) /*!< 0x00000004 */
  7373. #define ETH_MACL3L4CR_L3SAM ETH_MACL3L4CR_L3SAM_Msk /* Layer 3 IP SA Match Enable*/
  7374. #define ETH_MACL3L4CR_L3PEN_Pos (0U)
  7375. #define ETH_MACL3L4CR_L3PEN_Msk (0x1UL << ETH_MACL3L4CR_L3PEN_Pos) /*!< 0x00000001 */
  7376. #define ETH_MACL3L4CR_L3PEN ETH_MACL3L4CR_L3PEN_Msk /* Layer 3 Protocol Enable */
  7377. /* Bit definition for Ethernet MAC L4 Address Register */
  7378. #define ETH_MACL4AR_L4DP_Pos (16U)
  7379. #define ETH_MACL4AR_L4DP_Msk (0xFFFFUL << ETH_MACL4AR_L4DP_Pos) /*!< 0xFFFF0000 */
  7380. #define ETH_MACL4AR_L4DP ETH_MACL4AR_L4DP_Msk /* Layer 4 Destination Port Number Field */
  7381. #define ETH_MACL4AR_L4SP_Pos (0U)
  7382. #define ETH_MACL4AR_L4SP_Msk (0xFFFFUL << ETH_MACL4AR_L4SP_Pos) /*!< 0x0000FFFF */
  7383. #define ETH_MACL4AR_L4SP ETH_MACL4AR_L4SP_Msk /* Layer 4 Source Port Number Field */
  7384. /* Bit definition for Ethernet MAC L3 Address0 Register */
  7385. #define ETH_MACL3A0R_L3A0_Pos (0U)
  7386. #define ETH_MACL3A0R_L3A0_Msk (0xFFFFFFFFUL << ETH_MACL3A0R_L3A0_Pos) /*!< 0xFFFFFFFF */
  7387. #define ETH_MACL3A0R_L3A0 ETH_MACL3A0R_L3A0_Msk /* Layer 3 Address 0 Field */
  7388. /* Bit definition for Ethernet MAC L4 Address1 Register */
  7389. #define ETH_MACL3A1R_L3A1_Pos (0U)
  7390. #define ETH_MACL3A1R_L3A1_Msk (0xFFFFFFFFUL << ETH_MACL3A1R_L3A1_Pos) /*!< 0xFFFFFFFF */
  7391. #define ETH_MACL3A1R_L3A1 ETH_MACL3A1R_L3A1_Msk /* Layer 3 Address 1 Field */
  7392. /* Bit definition for Ethernet MAC L4 Address2 Register */
  7393. #define ETH_MACL3A2R_L3A2_Pos (0U)
  7394. #define ETH_MACL3A2R_L3A2_Msk (0xFFFFFFFFUL << ETH_MACL3A2R_L3A2_Pos) /*!< 0xFFFFFFFF */
  7395. #define ETH_MACL3A2R_L3A2 ETH_MACL3A2R_L3A2_Msk /* Layer 3 Address 2 Field */
  7396. /* Bit definition for Ethernet MAC L4 Address3 Register */
  7397. #define ETH_MACL3A3R_L3A3_Pos (0U)
  7398. #define ETH_MACL3A3R_L3A3_Msk (0xFFFFFFFFUL << ETH_MACL3A3R_L3A3_Pos) /*!< 0xFFFFFFFF */
  7399. #define ETH_MACL3A3R_L3A3 ETH_MACL3A3R_L3A3_Msk /* Layer 3 Address 3 Field */
  7400. /* Bit definition for Ethernet MAC Timestamp Control Register */
  7401. #define ETH_MACTSCR_TXTSSTSM_Pos (24U)
  7402. #define ETH_MACTSCR_TXTSSTSM_Msk (0x1UL << ETH_MACTSCR_TXTSSTSM_Pos) /*!< 0x01000000 */
  7403. #define ETH_MACTSCR_TXTSSTSM ETH_MACTSCR_TXTSSTSM_Msk /* Transmit Timestamp Status Mode */
  7404. #define ETH_MACTSCR_CSC_Pos (19U)
  7405. #define ETH_MACTSCR_CSC_Msk (0x1UL << ETH_MACTSCR_CSC_Pos) /*!< 0x00080000 */
  7406. #define ETH_MACTSCR_CSC ETH_MACTSCR_CSC_Msk /* Enable checksum correction during OST for PTP over UDP/IPv4 packets */
  7407. #define ETH_MACTSCR_TSENMACADDR_Pos (18U)
  7408. #define ETH_MACTSCR_TSENMACADDR_Msk (0x1UL << ETH_MACTSCR_TSENMACADDR_Pos) /*!< 0x00040000 */
  7409. #define ETH_MACTSCR_TSENMACADDR ETH_MACTSCR_TSENMACADDR_Msk /* Enable MAC Address for PTP Packet Filtering */
  7410. #define ETH_MACTSCR_SNAPTYPSEL_Pos (16U)
  7411. #define ETH_MACTSCR_SNAPTYPSEL_Msk (0x3UL << ETH_MACTSCR_SNAPTYPSEL_Pos) /*!< 0x00030000 */
  7412. #define ETH_MACTSCR_SNAPTYPSEL ETH_MACTSCR_SNAPTYPSEL_Msk /* Select PTP packets for Taking Snapshots */
  7413. #define ETH_MACTSCR_TSMSTRENA_Pos (15U)
  7414. #define ETH_MACTSCR_TSMSTRENA_Msk (0x1UL << ETH_MACTSCR_TSMSTRENA_Pos) /*!< 0x00008000 */
  7415. #define ETH_MACTSCR_TSMSTRENA ETH_MACTSCR_TSMSTRENA_Msk /* Enable Snapshot for Messages Relevant to Master */
  7416. #define ETH_MACTSCR_TSEVNTENA_Pos (14U)
  7417. #define ETH_MACTSCR_TSEVNTENA_Msk (0x1UL << ETH_MACTSCR_TSEVNTENA_Pos) /*!< 0x00004000 */
  7418. #define ETH_MACTSCR_TSEVNTENA ETH_MACTSCR_TSEVNTENA_Msk /* Enable Timestamp Snapshot for Event Messages */
  7419. #define ETH_MACTSCR_TSIPV4ENA_Pos (13U)
  7420. #define ETH_MACTSCR_TSIPV4ENA_Msk (0x1UL << ETH_MACTSCR_TSIPV4ENA_Pos) /*!< 0x00002000 */
  7421. #define ETH_MACTSCR_TSIPV4ENA ETH_MACTSCR_TSIPV4ENA_Msk /* Enable Processing of PTP Packets Sent over IPv4-UDP */
  7422. #define ETH_MACTSCR_TSIPV6ENA_Pos (12U)
  7423. #define ETH_MACTSCR_TSIPV6ENA_Msk (0x1UL << ETH_MACTSCR_TSIPV6ENA_Pos) /*!< 0x00001000 */
  7424. #define ETH_MACTSCR_TSIPV6ENA ETH_MACTSCR_TSIPV6ENA_Msk /* Enable Processing of PTP Packets Sent over IPv6-UDP */
  7425. #define ETH_MACTSCR_TSIPENA_Pos (11U)
  7426. #define ETH_MACTSCR_TSIPENA_Msk (0x1UL << ETH_MACTSCR_TSIPENA_Pos) /*!< 0x00000800 */
  7427. #define ETH_MACTSCR_TSIPENA ETH_MACTSCR_TSIPENA_Msk /* Enable Processing of PTP over Ethernet Packets */
  7428. #define ETH_MACTSCR_TSVER2ENA_Pos (10U)
  7429. #define ETH_MACTSCR_TSVER2ENA_Msk (0x1UL << ETH_MACTSCR_TSVER2ENA_Pos) /*!< 0x00000400 */
  7430. #define ETH_MACTSCR_TSVER2ENA ETH_MACTSCR_TSVER2ENA_Msk /* Enable PTP Packet Processing for Version 2 Format */
  7431. #define ETH_MACTSCR_TSCTRLSSR_Pos (9U)
  7432. #define ETH_MACTSCR_TSCTRLSSR_Msk (0x1UL << ETH_MACTSCR_TSCTRLSSR_Pos) /*!< 0x00000200 */
  7433. #define ETH_MACTSCR_TSCTRLSSR ETH_MACTSCR_TSCTRLSSR_Msk /* Timestamp Digital or Binary Rollover Control */
  7434. #define ETH_MACTSCR_TSENALL_Pos (8U)
  7435. #define ETH_MACTSCR_TSENALL_Msk (0x1UL << ETH_MACTSCR_TSENALL_Pos) /*!< 0x00000100 */
  7436. #define ETH_MACTSCR_TSENALL ETH_MACTSCR_TSENALL_Msk /* Enable Timestamp for All Packets */
  7437. #define ETH_MACTSCR_TSADDREG_Pos (5U)
  7438. #define ETH_MACTSCR_TSADDREG_Msk (0x1UL << ETH_MACTSCR_TSADDREG_Pos) /*!< 0x00000020 */
  7439. #define ETH_MACTSCR_TSADDREG ETH_MACTSCR_TSADDREG_Msk /* Update Addend Register */
  7440. #define ETH_MACTSCR_TSUPDT_Pos (3U)
  7441. #define ETH_MACTSCR_TSUPDT_Msk (0x1UL << ETH_MACTSCR_TSUPDT_Pos) /*!< 0x00000008 */
  7442. #define ETH_MACTSCR_TSUPDT ETH_MACTSCR_TSUPDT_Msk /* Update Timestamp */
  7443. #define ETH_MACTSCR_TSINIT_Pos (2U)
  7444. #define ETH_MACTSCR_TSINIT_Msk (0x1UL << ETH_MACTSCR_TSINIT_Pos) /*!< 0x00000004 */
  7445. #define ETH_MACTSCR_TSINIT ETH_MACTSCR_TSINIT_Msk /* Initialize Timestamp */
  7446. #define ETH_MACTSCR_TSCFUPDT_Pos (1U)
  7447. #define ETH_MACTSCR_TSCFUPDT_Msk (0x1UL << ETH_MACTSCR_TSCFUPDT_Pos) /*!< 0x00000002 */
  7448. #define ETH_MACTSCR_TSCFUPDT ETH_MACTSCR_TSCFUPDT_Msk /* Fine or Coarse Timestamp Update*/
  7449. #define ETH_MACTSCR_TSENA_Pos (0U)
  7450. #define ETH_MACTSCR_TSENA_Msk (0x1UL << ETH_MACTSCR_TSENA_Pos) /*!< 0x00000001 */
  7451. #define ETH_MACTSCR_TSENA ETH_MACTSCR_TSENA_Msk /* Enable Timestamp */
  7452. /* Bit definition for Ethernet MAC Sub-second Increment Register */
  7453. #define ETH_MACMACSSIR_SSINC_Pos (16U)
  7454. #define ETH_MACMACSSIR_SSINC_Msk (0xFFUL << ETH_MACMACSSIR_SSINC_Pos) /*!< 0x0000FF00 */
  7455. #define ETH_MACMACSSIR_SSINC ETH_MACMACSSIR_SSINC_Msk /* Sub-second Increment Value */
  7456. #define ETH_MACMACSSIR_SNSINC_Pos (8U)
  7457. #define ETH_MACMACSSIR_SNSINC_Msk (0xFFUL << ETH_MACMACSSIR_SNSINC_Pos) /*!< 0x000000FF */
  7458. #define ETH_MACMACSSIR_SNSINC ETH_MACMACSSIR_SNSINC_Msk /* Sub-nanosecond Increment Value */
  7459. /* Bit definition for Ethernet MAC System Time Seconds Register */
  7460. #define ETH_MACSTSR_TSS_Pos (0U)
  7461. #define ETH_MACSTSR_TSS_Msk (0xFFFFFFFFUL << ETH_MACSTSR_TSS_Pos) /*!< 0xFFFFFFFF */
  7462. #define ETH_MACSTSR_TSS ETH_MACSTSR_TSS_Msk /* Timestamp Second */
  7463. /* Bit definition for Ethernet MAC System Time Nanoseconds Register */
  7464. #define ETH_MACSTNR_TSSS_Pos (0U)
  7465. #define ETH_MACSTNR_TSSS_Msk (0x7FFFFFFFUL << ETH_MACSTNR_TSSS_Pos) /*!< 0x7FFFFFFF */
  7466. #define ETH_MACSTNR_TSSS ETH_MACSTNR_TSSS_Msk /* Timestamp Sub-seconds */
  7467. /* Bit definition for Ethernet MAC System Time Seconds Update Register */
  7468. #define ETH_MACSTSUR_TSS_Pos (0U)
  7469. #define ETH_MACSTSUR_TSS_Msk (0xFFFFFFFFUL << ETH_MACSTSUR_TSS_Pos) /*!< 0xFFFFFFFF */
  7470. #define ETH_MACSTSUR_TSS ETH_MACSTSUR_TSS_Msk /* Timestamp Seconds */
  7471. /* Bit definition for Ethernet MAC System Time Nanoseconds Update Register */
  7472. #define ETH_MACSTNUR_ADDSUB_Pos (31U)
  7473. #define ETH_MACSTNUR_ADDSUB_Msk (0x1UL << ETH_MACSTNUR_ADDSUB_Pos) /*!< 0x80000000 */
  7474. #define ETH_MACSTNUR_ADDSUB ETH_MACSTNUR_ADDSUB_Msk /* Add or Subtract Time */
  7475. #define ETH_MACSTNUR_TSSS_Pos (0U)
  7476. #define ETH_MACSTNUR_TSSS_Msk (0x7FFFFFFFUL << ETH_MACSTNUR_TSSS_Pos) /*!< 0x7FFFFFFF */
  7477. #define ETH_MACSTNUR_TSSS ETH_MACSTNUR_TSSS_Msk /* Timestamp Sub-seconds */
  7478. /* Bit definition for Ethernet MAC Timestamp Addend Register */
  7479. #define ETH_MACTSAR_TSAR_Pos (0U)
  7480. #define ETH_MACTSAR_TSAR_Msk (0xFFFFFFFFUL << ETH_MACTSAR_TSAR_Pos) /*!< 0xFFFFFFFF */
  7481. #define ETH_MACTSAR_TSAR ETH_MACTSAR_TSAR_Msk /* Timestamp Addend Register */
  7482. /* Bit definition for Ethernet MAC Timestamp Status Register */
  7483. #define ETH_MACTSSR_ATSNS_Pos (25U)
  7484. #define ETH_MACTSSR_ATSNS_Msk (0x1FUL << ETH_MACTSSR_ATSNS_Pos) /*!< 0x3E000000 */
  7485. #define ETH_MACTSSR_ATSNS ETH_MACTSSR_ATSNS_Msk /* Number of Auxiliary Timestamp Snapshots */
  7486. #define ETH_MACTSSR_ATSSTM_Pos (24U)
  7487. #define ETH_MACTSSR_ATSSTM_Msk (0x1UL << ETH_MACTSSR_ATSSTM_Pos) /*!< 0x01000000 */
  7488. #define ETH_MACTSSR_ATSSTM ETH_MACTSSR_ATSSTM_Msk /* Auxiliary Timestamp Snapshot Trigger Missed */
  7489. #define ETH_MACTSSR_ATSSTN_Pos (16U)
  7490. #define ETH_MACTSSR_ATSSTN_Msk (0xFUL << ETH_MACTSSR_ATSSTN_Pos) /*!< 0x000F0000 */
  7491. #define ETH_MACTSSR_ATSSTN ETH_MACTSSR_ATSSTN_Msk /* Auxiliary Timestamp Snapshot Trigger Identifier */
  7492. #define ETH_MACTSSR_TXTSSIS_Pos (15U)
  7493. #define ETH_MACTSSR_TXTSSIS_Msk (0x1UL << ETH_MACTSSR_TXTSSIS_Pos) /*!< 0x00008000 */
  7494. #define ETH_MACTSSR_TXTSSIS ETH_MACTSSR_TXTSSIS_Msk /* Tx Timestamp Status Interrupt Status */
  7495. #define ETH_MACTSSR_TSTRGTERR0_Pos (3U)
  7496. #define ETH_MACTSSR_TSTRGTERR0_Msk (0x1UL << ETH_MACTSSR_TSTRGTERR0_Pos) /*!< 0x00000008 */
  7497. #define ETH_MACTSSR_TSTRGTERR0 ETH_MACTSSR_TSTRGTERR0_Msk /* Timestamp Target Time Error */
  7498. #define ETH_MACTSSR_AUXTSTRIG_Pos (2U)
  7499. #define ETH_MACTSSR_AUXTSTRIG_Msk (0x1UL << ETH_MACTSSR_AUXTSTRIG_Pos) /*!< 0x00000004 */
  7500. #define ETH_MACTSSR_AUXTSTRIG ETH_MACTSSR_AUXTSTRIG_Msk /* Auxiliary Timestamp Trigger Snapshot*/
  7501. #define ETH_MACTSSR_TSTARGT0_Pos (1U)
  7502. #define ETH_MACTSSR_TSTARGT0_Msk (0x1UL << ETH_MACTSSR_TSTARGT0_Pos) /*!< 0x00000002 */
  7503. #define ETH_MACTSSR_TSTARGT0 ETH_MACTSSR_TSTARGT0_Msk /* Timestamp Target Time Reached */
  7504. #define ETH_MACTSSR_TSSOVF_Pos (0U)
  7505. #define ETH_MACTSSR_TSSOVF_Msk (0x1UL << ETH_MACTSSR_TSSOVF_Pos) /*!< 0x00000001 */
  7506. #define ETH_MACTSSR_TSSOVF ETH_MACTSSR_TSSOVF_Msk /* Timestamp Seconds Overflow */
  7507. /* Bit definition for Ethernet MAC Tx Timestamp Status Nanoseconds Register */
  7508. #define ETH_MACTTSSNR_TXTSSMIS_Pos (31U)
  7509. #define ETH_MACTTSSNR_TXTSSMIS_Msk (0x1UL << ETH_MACTTSSNR_TXTSSMIS_Pos) /*!< 0x80000000 */
  7510. #define ETH_MACTTSSNR_TXTSSMIS ETH_MACTTSSNR_TXTSSMIS_Msk /* Transmit Timestamp Status Missed */
  7511. #define ETH_MACTTSSNR_TXTSSLO_Pos (0U)
  7512. #define ETH_MACTTSSNR_TXTSSLO_Msk (0x7FFFFFFFUL << ETH_MACTTSSNR_TXTSSLO_Pos) /*!< 0x7FFFFFFF */
  7513. #define ETH_MACTTSSNR_TXTSSLO ETH_MACTTSSNR_TXTSSLO_Msk /* Transmit Timestamp Status Low */
  7514. /* Bit definition for Ethernet MAC Tx Timestamp Status Seconds Register */
  7515. #define ETH_MACTTSSSR_TXTSSHI_Pos (0U)
  7516. #define ETH_MACTTSSSR_TXTSSHI_Msk (0xFFFFFFFFUL << ETH_MACTTSSSR_TXTSSHI_Pos) /*!< 0xFFFFFFFF */
  7517. #define ETH_MACTTSSSR_TXTSSHI ETH_MACTTSSSR_TXTSSHI_Msk /* Transmit Timestamp Status High */
  7518. /* Bit definition for Ethernet MAC Auxiliary Control Register*/
  7519. #define ETH_MACACR_ATSEN3_Pos (7U)
  7520. #define ETH_MACACR_ATSEN3_Msk (0x1UL << ETH_MACACR_ATSEN3_Pos) /*!< 0x00000080 */
  7521. #define ETH_MACACR_ATSEN3 ETH_MACACR_ATSEN3_Msk /* Auxiliary Snapshot 3 Enable */
  7522. #define ETH_MACACR_ATSEN2_Pos (6U)
  7523. #define ETH_MACACR_ATSEN2_Msk (0x1UL << ETH_MACACR_ATSEN2_Pos) /*!< 0x00000040 */
  7524. #define ETH_MACACR_ATSEN2 ETH_MACACR_ATSEN2_Msk /* Auxiliary Snapshot 2 Enable */
  7525. #define ETH_MACACR_ATSEN1_Pos (5U)
  7526. #define ETH_MACACR_ATSEN1_Msk (0x1UL << ETH_MACACR_ATSEN1_Pos) /*!< 0x00000020 */
  7527. #define ETH_MACACR_ATSEN1 ETH_MACACR_ATSEN1_Msk /* Auxiliary Snapshot 1 Enable */
  7528. #define ETH_MACACR_ATSEN0_Pos (4U)
  7529. #define ETH_MACACR_ATSEN0_Msk (0x1UL << ETH_MACACR_ATSEN0_Pos) /*!< 0x00000010 */
  7530. #define ETH_MACACR_ATSEN0 ETH_MACACR_ATSEN0_Msk /* Auxiliary Snapshot 0 Enable */
  7531. #define ETH_MACACR_ATSFC_Pos (0U)
  7532. #define ETH_MACACR_ATSFC_Msk (0x1UL << ETH_MACACR_ATSFC_Pos) /*!< 0x00000001 */
  7533. #define ETH_MACACR_ATSFC ETH_MACACR_ATSFC_Msk /* Auxiliary Snapshot FIFO Clear */
  7534. /* Bit definition for Ethernet MAC Auxiliary Timestamp Nanoseconds Register */
  7535. #define ETH_MACATSNR_AUXTSLO_Pos (0U)
  7536. #define ETH_MACATSNR_AUXTSLO_Msk (0x7FFFFFFFUL << ETH_MACATSNR_AUXTSLO_Pos) /*!< 0x7FFFFFFF */
  7537. #define ETH_MACATSNR_AUXTSLO ETH_MACATSNR_AUXTSLO_Msk /* Auxiliary Timestamp */
  7538. /* Bit definition for Ethernet MAC Auxiliary Timestamp Seconds Register */
  7539. #define ETH_MACATSSR_AUXTSHI_Pos (0U)
  7540. #define ETH_MACATSSR_AUXTSHI_Msk (0xFFFFFFFFUL << ETH_MACATSSR_AUXTSHI_Pos) /*!< 0xFFFFFFFF */
  7541. #define ETH_MACATSSR_AUXTSHI ETH_MACATSSR_AUXTSHI_Msk /* Auxiliary Timestamp */
  7542. /* Bit definition for Ethernet MAC Timestamp Ingress Asymmetric Correction Register */
  7543. #define ETH_MACTSIACR_OSTIAC_Pos (0U)
  7544. #define ETH_MACTSIACR_OSTIAC_Msk (0xFFFFFFFFUL << ETH_MACTSIACR_OSTIAC_Pos) /*!< 0xFFFFFFFF */
  7545. #define ETH_MACTSIACR_OSTIAC ETH_MACTSIACR_OSTIAC_Msk /* One-Step Timestamp Ingress Asymmetry Correction */
  7546. /* Bit definition for Ethernet MAC Timestamp Egress Asymmetric Correction Register */
  7547. #define ETH_MACTSEACR_OSTEAC_Pos (0U)
  7548. #define ETH_MACTSEACR_OSTEAC_Msk (0xFFFFFFFFUL << ETH_MACTSEACR_OSTEAC_Pos) /*!< 0xFFFFFFFF */
  7549. #define ETH_MACTSEACR_OSTEAC ETH_MACTSEACR_OSTEAC_Msk /* One-Step Timestamp Egress Asymmetry Correction */
  7550. /* Bit definition for Ethernet MAC Timestamp Ingress Correction Nanosecond Register */
  7551. #define ETH_MACTSICNR_TSIC_Pos (0U)
  7552. #define ETH_MACTSICNR_TSIC_Msk (0xFFFFFFFFUL << ETH_MACTSICNR_TSIC_Pos) /*!< 0xFFFFFFFF */
  7553. #define ETH_MACTSICNR_TSIC ETH_MACTSICNR_TSIC_Msk /* Timestamp Ingress Correction */
  7554. /* Bit definition for Ethernet MAC Timestamp Egress correction Nanosecond Register */
  7555. #define ETH_MACTSECNR_TSEC_Pos (0U)
  7556. #define ETH_MACTSECNR_TSEC_Msk (0xFFFFFFFFUL << ETH_MACTSECNR_TSEC_Pos) /*!< 0xFFFFFFFF */
  7557. #define ETH_MACTSECNR_TSEC ETH_MACTSECNR_TSEC_Msk /* Timestamp Egress Correction */
  7558. /* Bit definition for Ethernet MAC PPS Control Register */
  7559. #define ETH_MACPPSCR_TRGTMODSEL0_Pos (5U)
  7560. #define ETH_MACPPSCR_TRGTMODSEL0_Msk (0x3UL << ETH_MACPPSCR_TRGTMODSEL0_Pos) /*!< 0x00000060 */
  7561. #define ETH_MACPPSCR_TRGTMODSEL0 ETH_MACPPSCR_TRGTMODSEL0_Msk /* Target Time Register Mode for PPS Output */
  7562. #define ETH_MACPPSCR_PPSEN0_Pos (4U)
  7563. #define ETH_MACPPSCR_PPSEN0_Msk (0x1UL << ETH_MACPPSCR_PPSEN0_Pos) /*!< 0x00000010 */
  7564. #define ETH_MACPPSCR_PPSEN0 ETH_MACPPSCR_PPSEN0_Msk /* Flexible PPS Output Mode Enable */
  7565. #define ETH_MACPPSCR_PPSCTRL_Pos (0U)
  7566. #define ETH_MACPPSCR_PPSCTRL_Msk (0xFUL << ETH_MACPPSCR_PPSCTRL_Pos) /*!< 0x0000000F */
  7567. #define ETH_MACPPSCR_PPSCTRL ETH_MACPPSCR_PPSCTRL_Msk /* PPS Output Frequency Control */
  7568. /* Bit definition for Ethernet MAC PPS Target Time Seconds Register */
  7569. #define ETH_MACPPSTTSR_TSTRH0_Pos (0U)
  7570. #define ETH_MACPPSTTSR_TSTRH0_Msk (0xFFFFFFFFUL << ETH_MACPPSTTSR_TSTRH0_Pos) /*!< 0xFFFFFFFF */
  7571. #define ETH_MACPPSTTSR_TSTRH0 ETH_MACPPSTTSR_TSTRH0_Msk /* PPS Target Time Seconds Register */
  7572. /* Bit definition for Ethernet MAC PPS Target Time Nanoseconds Register */
  7573. #define ETH_MACPPSTTNR_TRGTBUSY0_Pos (31U)
  7574. #define ETH_MACPPSTTNR_TRGTBUSY0_Msk (0x1UL << ETH_MACPPSTTNR_TRGTBUSY0_Pos) /*!< 0x80000000 */
  7575. #define ETH_MACPPSTTNR_TRGTBUSY0 ETH_MACPPSTTNR_TRGTBUSY0_Msk /* PPS Target Time Register Busy */
  7576. #define ETH_MACPPSTTNR_TTSL0_Pos (0U)
  7577. #define ETH_MACPPSTTNR_TTSL0_Msk (0x7FFFFFFFUL << ETH_MACPPSTTNR_TTSL0_Pos) /*!< 0x7FFFFFFF */
  7578. #define ETH_MACPPSTTNR_TTSL0 ETH_MACPPSTTNR_TTSL0_Msk /* Target Time Low for PPS Register */
  7579. /* Bit definition for Ethernet MAC PPS Interval Register */
  7580. #define ETH_MACPPSIR_PPSINT0_Pos (0U)
  7581. #define ETH_MACPPSIR_PPSINT0_Msk (0xFFFFFFFFUL << ETH_MACPPSIR_PPSINT0_Pos) /*!< 0xFFFFFFFF */
  7582. #define ETH_MACPPSIR_PPSINT0 ETH_MACPPSIR_PPSINT0_Msk /* PPS Output Signal Interval */
  7583. /* Bit definition for Ethernet MAC PPS Width Register */
  7584. #define ETH_MACPPSWR_PPSWIDTH0_Pos (0U)
  7585. #define ETH_MACPPSWR_PPSWIDTH0_Msk (0xFFFFFFFFUL << ETH_MACPPSWR_PPSWIDTH0_Pos) /*!< 0xFFFFFFFF */
  7586. #define ETH_MACPPSWR_PPSWIDTH0 ETH_MACPPSWR_PPSWIDTH0_Msk /* PPS Output Signal Width */
  7587. /* Bit definition for Ethernet MAC PTP Offload Control Register */
  7588. #define ETH_MACPOCR_DN_Pos (8U)
  7589. #define ETH_MACPOCR_DN_Msk (0xFFUL << ETH_MACPOCR_DN_Pos) /*!< 0x0000FF00 */
  7590. #define ETH_MACPOCR_DN ETH_MACPOCR_DN_Msk /* Domain Number */
  7591. #define ETH_MACPOCR_DRRDIS_Pos (6U)
  7592. #define ETH_MACPOCR_DRRDIS_Msk (0x1UL << ETH_MACPOCR_DRRDIS_Pos) /*!< 0x00000040 */
  7593. #define ETH_MACPOCR_DRRDIS ETH_MACPOCR_DRRDIS_Msk /* Disable PTO Delay Request/Response response generation */
  7594. #define ETH_MACPOCR_APDREQTRIG_Pos (5U)
  7595. #define ETH_MACPOCR_APDREQTRIG_Msk (0x1UL << ETH_MACPOCR_APDREQTRIG_Pos) /*!< 0x00000020 */
  7596. #define ETH_MACPOCR_APDREQTRIG ETH_MACPOCR_APDREQTRIG_Msk /* Automatic PTP Pdelay_Req message Trigger */
  7597. #define ETH_MACPOCR_ASYNCTRIG_Pos (4U)
  7598. #define ETH_MACPOCR_ASYNCTRIG_Msk (0x1UL << ETH_MACPOCR_ASYNCTRIG_Pos) /*!< 0x00000010 */
  7599. #define ETH_MACPOCR_ASYNCTRIG ETH_MACPOCR_ASYNCTRIG_Msk /* Automatic PTP SYNC message Trigger */
  7600. #define ETH_MACPOCR_APDREQEN_Pos (2U)
  7601. #define ETH_MACPOCR_APDREQEN_Msk (0x1UL << ETH_MACPOCR_APDREQEN_Pos) /*!< 0x00000004 */
  7602. #define ETH_MACPOCR_APDREQEN ETH_MACPOCR_APDREQEN_Msk /* Automatic PTP Pdelay_Req message Enable */
  7603. #define ETH_MACPOCR_ASYNCEN_Pos (1U)
  7604. #define ETH_MACPOCR_ASYNCEN_Msk (0x1UL << ETH_MACPOCR_ASYNCEN_Pos) /*!< 0x00000002 */
  7605. #define ETH_MACPOCR_ASYNCEN ETH_MACPOCR_ASYNCEN_Msk /* Automatic PTP SYNC message Enable */
  7606. #define ETH_MACPOCR_PTOEN_Pos (0U)
  7607. #define ETH_MACPOCR_PTOEN_Msk (0x1UL << ETH_MACPOCR_PTOEN_Pos) /*!< 0x00000001 */
  7608. #define ETH_MACPOCR_PTOEN ETH_MACPOCR_PTOEN_Msk /* PTP Offload Enable */
  7609. /* Bit definition for Ethernet MAC PTP Source Port Identity 0 Register */
  7610. #define ETH_MACSPI0R_SPI0_Pos (0U)
  7611. #define ETH_MACSPI0R_SPI0_Msk (0xFFFFFFFFUL << ETH_MACSPI0R_SPI0_Pos) /*!< 0xFFFFFFFF */
  7612. #define ETH_MACSPI0R_SPI0 ETH_MACSPI0R_SPI0_Msk /* Source Port Identity 0 */
  7613. /* Bit definition for Ethernet MAC PTP Source Port Identity 1 Register */
  7614. #define ETH_MACSPI1R_SPI1_Pos (0U)
  7615. #define ETH_MACSPI1R_SPI1_Msk (0xFFFFFFFFUL << ETH_MACSPI1R_SPI1_Pos) /*!< 0xFFFFFFFF */
  7616. #define ETH_MACSPI1R_SPI1 ETH_MACSPI1R_SPI1_Msk /* Source Port Identity 1 */
  7617. /* Bit definition for Ethernet MAC PTP Source Port Identity 2 Register */
  7618. #define ETH_MACSPI2R_SPI2_Pos (0U)
  7619. #define ETH_MACSPI2R_SPI2_Msk (0xFFFFUL << ETH_MACSPI2R_SPI2_Pos) /*!< 0x0000FFFF */
  7620. #define ETH_MACSPI2R_SPI2 ETH_MACSPI2R_SPI2_Msk /* Source Port Identity 2 */
  7621. /* Bit definition for Ethernet MAC Log Message Interval Register */
  7622. #define ETH_MACLMIR_LMPDRI_Pos (24U)
  7623. #define ETH_MACLMIR_LMPDRI_Msk (0xFFUL << ETH_MACLMIR_LMPDRI_Pos) /*!< 0xFF000000 */
  7624. #define ETH_MACLMIR_LMPDRI ETH_MACLMIR_LMPDRI_Msk /* Log Min Pdelay_Req Interval */
  7625. #define ETH_MACLMIR_DRSYNCR_Pos (8U)
  7626. #define ETH_MACLMIR_DRSYNCR_Msk (0x7UL << ETH_MACLMIR_DRSYNCR_Pos) /*!< 0x00000700 */
  7627. #define ETH_MACLMIR_DRSYNCR ETH_MACLMIR_DRSYNCR_Msk /* Delay_Req to SYNC Ratio */
  7628. #define ETH_MACLMIR_LSI_Pos (0U)
  7629. #define ETH_MACLMIR_LSI_Msk (0xFFUL << ETH_MACLMIR_LSI_Pos) /*!< 0x000000FF */
  7630. #define ETH_MACLMIR_LSI ETH_MACLMIR_LSI_Msk /* Log Sync Interval */
  7631. /* Bit definition for Ethernet MTL Operation Mode Register */
  7632. #define ETH_MTLOMR_CNTCLR_Pos (9U)
  7633. #define ETH_MTLOMR_CNTCLR_Msk (0x1UL << ETH_MTLOMR_CNTCLR_Pos) /*!< 0x00000200 */
  7634. #define ETH_MTLOMR_CNTCLR ETH_MTLOMR_CNTCLR_Msk /* Counters Reset */
  7635. #define ETH_MTLOMR_CNTPRST_Pos (8U)
  7636. #define ETH_MTLOMR_CNTPRST_Msk (0x1UL << ETH_MTLOMR_CNTPRST_Pos) /*!< 0x00000100 */
  7637. #define ETH_MTLOMR_CNTPRST ETH_MTLOMR_CNTPRST_Msk /* Counters Preset */
  7638. #define ETH_MTLOMR_DTXSTS_Pos (1U)
  7639. #define ETH_MTLOMR_DTXSTS_Msk (0x1UL << ETH_MTLOMR_DTXSTS_Pos) /*!< 0x00000002 */
  7640. #define ETH_MTLOMR_DTXSTS ETH_MTLOMR_DTXSTS_Msk /* Drop Transmit Status */
  7641. /* Bit definition for Ethernet MTL Interrupt Status Register */
  7642. #define ETH_MTLISR_MACIS_Pos (16U)
  7643. #define ETH_MTLISR_MACIS_Msk (0x1UL << ETH_MTLISR_MACIS_Pos) /*!< 0x00010000 */
  7644. #define ETH_MTLISR_MACIS ETH_MTLISR_MACIS_Msk /* MAC Interrupt Status */
  7645. #define ETH_MTLISR_QIS_Pos (0U)
  7646. #define ETH_MTLISR_QIS_Msk (0x1UL << ETH_MTLISR_QIS_Pos) /*!< 0x00000001 */
  7647. #define ETH_MTLISR_QIS ETH_MTLISR_QIS_Msk /* Queue Interrupt status */
  7648. /* Bit definition for Ethernet MTL Tx Queue Operation Mode Register */
  7649. #define ETH_MTLTQOMR_TTC_Pos (4U)
  7650. #define ETH_MTLTQOMR_TTC_Msk (0x7UL << ETH_MTLTQOMR_TTC_Pos) /*!< 0x00000070 */
  7651. #define ETH_MTLTQOMR_TTC ETH_MTLTQOMR_TTC_Msk /* Transmit Threshold Control */
  7652. #define ETH_MTLTQOMR_TTC_32BITS ((uint32_t)0x00000000) /* 32 bits Threshold */
  7653. #define ETH_MTLTQOMR_TTC_64BITS ((uint32_t)0x00000010) /* 64 bits Threshold */
  7654. #define ETH_MTLTQOMR_TTC_96BITS ((uint32_t)0x00000020) /* 96 bits Threshold */
  7655. #define ETH_MTLTQOMR_TTC_128BITS ((uint32_t)0x00000030) /* 128 bits Threshold */
  7656. #define ETH_MTLTQOMR_TTC_192BITS ((uint32_t)0x00000040) /* 192 bits Threshold */
  7657. #define ETH_MTLTQOMR_TTC_256BITS ((uint32_t)0x00000050) /* 256 bits Threshold */
  7658. #define ETH_MTLTQOMR_TTC_384BITS ((uint32_t)0x00000060) /* 384 bits Threshold */
  7659. #define ETH_MTLTQOMR_TTC_512BITS ((uint32_t)0x00000070) /* 512 bits Threshold */
  7660. #define ETH_MTLTQOMR_TSF_Pos (1U)
  7661. #define ETH_MTLTQOMR_TSF_Msk (0x1UL << ETH_MTLTQOMR_TSF_Pos) /*!< 0x00000002 */
  7662. #define ETH_MTLTQOMR_TSF ETH_MTLTQOMR_TSF_Msk /* Transmit Store and Forward */
  7663. #define ETH_MTLTQOMR_FTQ_Pos (0U)
  7664. #define ETH_MTLTQOMR_FTQ_Msk (0x1UL << ETH_MTLTQOMR_FTQ_Pos) /*!< 0x00000001 */
  7665. #define ETH_MTLTQOMR_FTQ ETH_MTLTQOMR_FTQ_Msk /* Flush Transmit Queue */
  7666. /* Bit definition for Ethernet MTL Tx Queue Underflow Register */
  7667. #define ETH_MTLTQUR_UFCNTOVF_Pos (11U)
  7668. #define ETH_MTLTQUR_UFCNTOVF_Msk (0x1UL << ETH_MTLTQUR_UFCNTOVF_Pos) /*!< 0x00000800 */
  7669. #define ETH_MTLTQUR_UFCNTOVF ETH_MTLTQUR_UFCNTOVF_Msk /* Overflow Bit for Underflow Packet Counter */
  7670. #define ETH_MTLTQUR_UFPKTCNT_Pos (0U)
  7671. #define ETH_MTLTQUR_UFPKTCNT_Msk (0x7FFUL << ETH_MTLTQUR_UFPKTCNT_Pos) /*!< 0x000007FF */
  7672. #define ETH_MTLTQUR_UFPKTCNT ETH_MTLTQUR_UFPKTCNT_Msk /* Underflow Packet Counter */
  7673. /* Bit definition for Ethernet MTL Tx Queue Debug Register */
  7674. #define ETH_MTLTQDR_STXSTSF_Pos (20U)
  7675. #define ETH_MTLTQDR_STXSTSF_Msk (0x7UL << ETH_MTLTQDR_STXSTSF_Pos) /*!< 0x00700000 */
  7676. #define ETH_MTLTQDR_STXSTSF ETH_MTLTQDR_STXSTSF_Msk /* Number of Status Words in the Tx Status FIFO of Queue */
  7677. #define ETH_MTLTQDR_PTXQ_Pos (16U)
  7678. #define ETH_MTLTQDR_PTXQ_Msk (0x7UL << ETH_MTLTQDR_PTXQ_Pos) /*!< 0x00070000 */
  7679. #define ETH_MTLTQDR_PTXQ ETH_MTLTQDR_PTXQ_Msk /* Number of Packets in the Transmit Queue */
  7680. #define ETH_MTLTQDR_TXSTSFSTS_Pos (5U)
  7681. #define ETH_MTLTQDR_TXSTSFSTS_Msk (0x1UL << ETH_MTLTQDR_TXSTSFSTS_Pos) /*!< 0x00000020 */
  7682. #define ETH_MTLTQDR_TXSTSFSTS ETH_MTLTQDR_TXSTSFSTS_Msk /* MTL Tx Status FIFO Full Status */
  7683. #define ETH_MTLTQDR_TXQSTS_Pos (4U)
  7684. #define ETH_MTLTQDR_TXQSTS_Msk (0x1UL << ETH_MTLTQDR_TXQSTS_Pos) /*!< 0x00000010 */
  7685. #define ETH_MTLTQDR_TXQSTS ETH_MTLTQDR_TXQSTS_Msk /* MTL Tx Queue Not Empty Status */
  7686. #define ETH_MTLTQDR_TWCSTS_Pos (3U)
  7687. #define ETH_MTLTQDR_TWCSTS_Msk (0x1UL << ETH_MTLTQDR_TWCSTS_Pos) /*!< 0x00000008 */
  7688. #define ETH_MTLTQDR_TWCSTS ETH_MTLTQDR_TWCSTS_Msk /* MTL Tx Queue Write Controller Status */
  7689. #define ETH_MTLTQDR_TRCSTS_Pos (1U)
  7690. #define ETH_MTLTQDR_TRCSTS_Msk (0x3UL << ETH_MTLTQDR_TRCSTS_Pos) /*!< 0x00000006 */
  7691. #define ETH_MTLTQDR_TRCSTS ETH_MTLTQDR_TRCSTS_Msk /* MTL Tx Queue Read Controller Status */
  7692. #define ETH_MTLTQDR_TRCSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  7693. #define ETH_MTLTQDR_TRCSTS_READ ((uint32_t)0x00000002) /* Read state (transferring data to the MAC transmitter) */
  7694. #define ETH_MTLTQDR_TRCSTS_WAITING ((uint32_t)0x00000004) /* Waiting for pending Tx Status from the MAC transmitter */
  7695. #define ETH_MTLTQDR_TRCSTS_FLUSHING ((uint32_t)0x00000006) /* Flushing the Tx queue because of the Packet Abort request from the MAC */
  7696. #define ETH_MTLTQDR_TXQPAUSED_Pos (0U)
  7697. #define ETH_MTLTQDR_TXQPAUSED_Msk (0x1UL << ETH_MTLTQDR_TXQPAUSED_Pos) /*!< 0x00000001 */
  7698. #define ETH_MTLTQDR_TXQPAUSED ETH_MTLTQDR_TXQPAUSED_Msk /* Transmit Queue in Pause */
  7699. /* Bit definition for Ethernet MTL Queue Interrupt Control Status Register */
  7700. #define ETH_MTLQICSR_RXOIE_Pos (24U)
  7701. #define ETH_MTLQICSR_RXOIE_Msk (0x1UL << ETH_MTLQICSR_RXOIE_Pos) /*!< 0x01000000 */
  7702. #define ETH_MTLQICSR_RXOIE ETH_MTLQICSR_RXOIE_Msk /* Receive Queue Overflow Interrupt Enable */
  7703. #define ETH_MTLQICSR_RXOVFIS_Pos (16U)
  7704. #define ETH_MTLQICSR_RXOVFIS_Msk (0x1UL << ETH_MTLQICSR_RXOVFIS_Pos) /*!< 0x00010000 */
  7705. #define ETH_MTLQICSR_RXOVFIS ETH_MTLQICSR_RXOVFIS_Msk /* Receive Queue Overflow Interrupt Status */
  7706. #define ETH_MTLQICSR_TXUIE_Pos (8U)
  7707. #define ETH_MTLQICSR_TXUIE_Msk (0x1UL << ETH_MTLQICSR_TXUIE_Pos) /*!< 0x00000100 */
  7708. #define ETH_MTLQICSR_TXUIE ETH_MTLQICSR_TXUIE_Msk /* Transmit Queue Underflow Interrupt Enable */
  7709. #define ETH_MTLQICSR_TXUNFIS_Pos (0U)
  7710. #define ETH_MTLQICSR_TXUNFIS_Msk (0x1UL << ETH_MTLQICSR_TXUNFIS_Pos) /*!< 0x00000001 */
  7711. #define ETH_MTLQICSR_TXUNFIS ETH_MTLQICSR_TXUNFIS_Msk /* Transmit Queue Underflow Interrupt Status */
  7712. /* Bit definition for Ethernet MTL Rx Queue Operation Mode Register */
  7713. #define ETH_MTLRQOMR_RQS_Pos (20U)
  7714. #define ETH_MTLRQOMR_RQS_Msk (0x7UL << ETH_MTLRQOMR_RQS_Pos) /*!< 0x00700000 */
  7715. #define ETH_MTLRQOMR_RQS ETH_MTLRQOMR_RQS_Msk /* Receive Queue Size */
  7716. #define ETH_MTLRQOMR_RFD_Pos (14U)
  7717. #define ETH_MTLRQOMR_RFD_Msk (0x7UL << ETH_MTLRQOMR_RFD_Pos) /*!< 0x0001C000 */
  7718. #define ETH_MTLRQOMR_RFD ETH_MTLRQOMR_RFD_Msk /* Threshold for Deactivating Flow Control (in half-duplex and full-duplex modes) */
  7719. #define ETH_MTLRQOMR_RFA_Pos (8U)
  7720. #define ETH_MTLRQOMR_RFA_Msk (0x7UL << ETH_MTLRQOMR_RFA_Pos) /*!< 0x00000700 */
  7721. #define ETH_MTLRQOMR_RFA ETH_MTLRQOMR_RFA_Msk /* Threshold for Activating Flow Control (in half-duplex and full-duplex */
  7722. #define ETH_MTLRQOMR_EHFC_Pos (7U)
  7723. #define ETH_MTLRQOMR_EHFC_Msk (0x1UL << ETH_MTLRQOMR_EHFC_Pos) /*!< 0x00000080 */
  7724. #define ETH_MTLRQOMR_EHFC ETH_MTLRQOMR_EHFC_Msk /* DEnable Hardware Flow Control */
  7725. #define ETH_MTLRQOMR_DISTCPEF_Pos (6U)
  7726. #define ETH_MTLRQOMR_DISTCPEF_Msk (0x1UL << ETH_MTLRQOMR_DISTCPEF_Pos) /*!< 0x00000040 */
  7727. #define ETH_MTLRQOMR_DISTCPEF ETH_MTLRQOMR_DISTCPEF_Msk /* Disable Dropping of TCP/IP Checksum Error Packets */
  7728. #define ETH_MTLRQOMR_RSF_Pos (5U)
  7729. #define ETH_MTLRQOMR_RSF_Msk (0x1UL << ETH_MTLRQOMR_RSF_Pos) /*!< 0x00000020 */
  7730. #define ETH_MTLRQOMR_RSF ETH_MTLRQOMR_RSF_Msk /* Receive Queue Store and Forward */
  7731. #define ETH_MTLRQOMR_FEP_Pos (4U)
  7732. #define ETH_MTLRQOMR_FEP_Msk (0x1UL << ETH_MTLRQOMR_FEP_Pos) /*!< 0x00000010 */
  7733. #define ETH_MTLRQOMR_FEP ETH_MTLRQOMR_FEP_Msk /* Forward Error Packets */
  7734. #define ETH_MTLRQOMR_FUP_Pos (3U)
  7735. #define ETH_MTLRQOMR_FUP_Msk (0x1UL << ETH_MTLRQOMR_FUP_Pos) /*!< 0x00000008 */
  7736. #define ETH_MTLRQOMR_FUP ETH_MTLRQOMR_FUP_Msk /* Forward Undersized Good Packets */
  7737. #define ETH_MTLRQOMR_RTC_Pos (0U)
  7738. #define ETH_MTLRQOMR_RTC_Msk (0x3UL << ETH_MTLRQOMR_RTC_Pos) /*!< 0x00000003 */
  7739. #define ETH_MTLRQOMR_RTC ETH_MTLRQOMR_RTC_Msk /* Receive Queue Threshold Control */
  7740. #define ETH_MTLRQOMR_RTC_64BITS ((uint32_t)0x00000000) /* 64 bits Threshold */
  7741. #define ETH_MTLRQOMR_RTC_32BITS ((uint32_t)0x00000001) /* 32 bits Threshold */
  7742. #define ETH_MTLRQOMR_RTC_96BITS ((uint32_t)0x00000002) /* 96 bits Threshold */
  7743. #define ETH_MTLRQOMR_RTC_128BITS ((uint32_t)0x00000003) /* 128 bits Threshold */
  7744. /* Bit definition for Ethernet MTL Rx Queue Missed Packet Overflow Cnt Register */
  7745. #define ETH_MTLRQMPOCR_MISCNTOVF_Pos (27U)
  7746. #define ETH_MTLRQMPOCR_MISCNTOVF_Msk (0x1UL << ETH_MTLRQMPOCR_MISCNTOVF_Pos) /*!< 0x08000000 */
  7747. #define ETH_MTLRQMPOCR_MISCNTOVF ETH_MTLRQMPOCR_MISCNTOVF_Msk /* Missed Packet Counter Overflow Bit */
  7748. #define ETH_MTLRQMPOCR_MISPKTCNT_Pos (16U)
  7749. #define ETH_MTLRQMPOCR_MISPKTCNT_Msk (0x7FFUL << ETH_MTLRQMPOCR_MISPKTCNT_Pos) /*!< 0x07FF0000 */
  7750. #define ETH_MTLRQMPOCR_MISPKTCNT ETH_MTLRQMPOCR_MISPKTCNT_Msk /* Missed Packet Counter */
  7751. #define ETH_MTLRQMPOCR_OVFCNTOVF_Pos (11U)
  7752. #define ETH_MTLRQMPOCR_OVFCNTOVF_Msk (0x1UL << ETH_MTLRQMPOCR_OVFCNTOVF_Pos) /*!< 0x00000800 */
  7753. #define ETH_MTLRQMPOCR_OVFCNTOVF ETH_MTLRQMPOCR_OVFCNTOVF_Msk /* Overflow Counter Overflow Bit */
  7754. #define ETH_MTLRQMPOCR_OVFPKTCNT_Pos (0U)
  7755. #define ETH_MTLRQMPOCR_OVFPKTCNT_Msk (0x7FFUL << ETH_MTLRQMPOCR_OVFPKTCNT_Pos) /*!< 0x000007FF */
  7756. #define ETH_MTLRQMPOCR_OVFPKTCNT ETH_MTLRQMPOCR_OVFPKTCNT_Msk /* Overflow Packet Counter */
  7757. /* Bit definition for Ethernet MTL Rx Queue Debug Register */
  7758. #define ETH_MTLRQDR_PRXQ_Pos (16U)
  7759. #define ETH_MTLRQDR_PRXQ_Msk (0x3FFFUL << ETH_MTLRQDR_PRXQ_Pos) /*!< 0x3FFF0000 */
  7760. #define ETH_MTLRQDR_PRXQ ETH_MTLRQDR_PRXQ_Msk /* Number of Packets in Receive Queue */
  7761. #define ETH_MTLRQDR_RXQSTS_Pos (4U)
  7762. #define ETH_MTLRQDR_RXQSTS_Msk (0x3UL << ETH_MTLRQDR_RXQSTS_Pos) /*!< 0x00000030 */
  7763. #define ETH_MTLRQDR_RXQSTS ETH_MTLRQDR_RXQSTS_Msk /* MTL Rx Queue Fill-Level Status */
  7764. #define ETH_MTLRQDR_RXQSTS_EMPTY ((uint32_t)0x00000000) /* Rx Queue empty */
  7765. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Pos (4U)
  7766. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Msk (0x1UL << ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Pos) /*!< 0x00000010 */
  7767. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Msk /* Rx Queue fill-level below flow-control deactivate threshold */
  7768. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Pos (5U)
  7769. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Msk (0x1UL << ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Pos) /*!< 0x00000020 */
  7770. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Msk /* Rx Queue fill-level above flow-control activate threshold */
  7771. #define ETH_MTLRQDR_RXQSTS_FULL_Pos (4U)
  7772. #define ETH_MTLRQDR_RXQSTS_FULL_Msk (0x3UL << ETH_MTLRQDR_RXQSTS_FULL_Pos) /*!< 0x00000030 */
  7773. #define ETH_MTLRQDR_RXQSTS_FULL ETH_MTLRQDR_RXQSTS_FULL_Msk /* Rx Queue full */
  7774. #define ETH_MTLRQDR_RRCSTS_Pos (1U)
  7775. #define ETH_MTLRQDR_RRCSTS_Msk (0x3UL << ETH_MTLRQDR_RRCSTS_Pos) /*!< 0x00000006 */
  7776. #define ETH_MTLRQDR_RRCSTS ETH_MTLRQDR_RRCSTS_Msk /* MTL Rx Queue Read Controller State */
  7777. #define ETH_MTLRQDR_RRCSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  7778. #define ETH_MTLRQDR_RRCSTS_READINGDATA_Pos (1U)
  7779. #define ETH_MTLRQDR_RRCSTS_READINGDATA_Msk (0x1UL << ETH_MTLRQDR_RRCSTS_READINGDATA_Pos) /*!< 0x00000002 */
  7780. #define ETH_MTLRQDR_RRCSTS_READINGDATA ETH_MTLRQDR_RRCSTS_READINGDATA_Msk /* Reading packet data */
  7781. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS_Pos (2U)
  7782. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS_Msk (0x1UL << ETH_MTLRQDR_RRCSTS_READINGSTATUS_Pos) /*!< 0x00000004 */
  7783. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS ETH_MTLRQDR_RRCSTS_READINGSTATUS_Msk /* Reading packet status (or timestamp) */
  7784. #define ETH_MTLRQDR_RRCSTS_FLUSHING_Pos (1U)
  7785. #define ETH_MTLRQDR_RRCSTS_FLUSHING_Msk (0x3UL << ETH_MTLRQDR_RRCSTS_FLUSHING_Pos) /*!< 0x00000006 */
  7786. #define ETH_MTLRQDR_RRCSTS_FLUSHING ETH_MTLRQDR_RRCSTS_FLUSHING_Msk /* Flushing the packet data and status */
  7787. #define ETH_MTLRQDR_RWCSTS_Pos (0U)
  7788. #define ETH_MTLRQDR_RWCSTS_Msk (0x1UL << ETH_MTLRQDR_RWCSTS_Pos) /*!< 0x00000001 */
  7789. #define ETH_MTLRQDR_RWCSTS ETH_MTLRQDR_RWCSTS_Msk /* MTL Rx Queue Write Controller Active Status */
  7790. /* Bit definition for Ethernet MTL Rx Queue Control Register */
  7791. #define ETH_MTLRQCR_RQPA_Pos (3U)
  7792. #define ETH_MTLRQCR_RQPA_Msk (0x1UL << ETH_MTLRQCR_RQPA_Pos) /*!< 0x00000008 */
  7793. #define ETH_MTLRQCR_RQPA ETH_MTLRQCR_RQPA_Msk /* Receive Queue Packet Arbitration */
  7794. #define ETH_MTLRQCR_RQW_Pos (0U)
  7795. #define ETH_MTLRQCR_RQW_Msk (0x7UL << ETH_MTLRQCR_RQW_Pos) /*!< 0x00000007 */
  7796. #define ETH_MTLRQCR_RQW ETH_MTLRQCR_RQW_Msk /* Receive Queue Weight */
  7797. /* Bit definition for Ethernet DMA Mode Register */
  7798. #define ETH_DMAMR_INTM_Pos (16U)
  7799. #define ETH_DMAMR_INTM_Msk (0x3UL << ETH_DMAMR_INTM_Pos) /*!< 0x00030000 */
  7800. #define ETH_DMAMR_INTM ETH_DMAMR_INTM_Msk /* This field defines the interrupt mode */
  7801. #define ETH_DMAMR_INTM_0 (0x0UL << ETH_DMAMR_INTM_Pos) /*!< 0x00000000 */
  7802. #define ETH_DMAMR_INTM_1 (0x1UL << ETH_DMAMR_INTM_Pos) /*!< 0x00010000 */
  7803. #define ETH_DMAMR_INTM_2 (0x2UL << ETH_DMAMR_INTM_Pos) /*!< 0x00020000 */
  7804. #define ETH_DMAMR_PR_Pos (12U)
  7805. #define ETH_DMAMR_PR_Msk (0x7UL << ETH_DMAMR_PR_Pos) /*!< 0x00007000 */
  7806. #define ETH_DMAMR_PR ETH_DMAMR_PR_Msk /* Priority Ratio */
  7807. #define ETH_DMAMR_PR_1_1 ((uint32_t)0x00000000) /* The priority ratio is 1:1 */
  7808. #define ETH_DMAMR_PR_2_1 ((uint32_t)0x00001000) /* The priority ratio is 2:1 */
  7809. #define ETH_DMAMR_PR_3_1 ((uint32_t)0x00002000) /* The priority ratio is 3:1 */
  7810. #define ETH_DMAMR_PR_4_1 ((uint32_t)0x00003000) /* The priority ratio is 4:1 */
  7811. #define ETH_DMAMR_PR_5_1 ((uint32_t)0x00004000) /* The priority ratio is 5:1 */
  7812. #define ETH_DMAMR_PR_6_1 ((uint32_t)0x00005000) /* The priority ratio is 6:1 */
  7813. #define ETH_DMAMR_PR_7_1 ((uint32_t)0x00006000) /* The priority ratio is 7:1 */
  7814. #define ETH_DMAMR_PR_8_1 ((uint32_t)0x00007000) /* The priority ratio is 8:1 */
  7815. #define ETH_DMAMR_TXPR_Pos (11U)
  7816. #define ETH_DMAMR_TXPR_Msk (0x1UL << ETH_DMAMR_TXPR_Pos) /*!< 0x00000800 */
  7817. #define ETH_DMAMR_TXPR ETH_DMAMR_TXPR_Msk /* Transmit Priority */
  7818. #define ETH_DMAMR_DA_Pos (1U)
  7819. #define ETH_DMAMR_DA_Msk (0x1UL << ETH_DMAMR_DA_Pos) /*!< 0x00000002 */
  7820. #define ETH_DMAMR_DA ETH_DMAMR_DA_Msk /* DMA Tx or Rx Arbitration Scheme */
  7821. #define ETH_DMAMR_SWR_Pos (0U)
  7822. #define ETH_DMAMR_SWR_Msk (0x1UL << ETH_DMAMR_SWR_Pos) /*!< 0x00000001 */
  7823. #define ETH_DMAMR_SWR ETH_DMAMR_SWR_Msk /* Software Reset */
  7824. /* Bit definition for Ethernet DMA SysBus Mode Register */
  7825. #define ETH_DMASBMR_RB_Pos (15U)
  7826. #define ETH_DMASBMR_RB_Msk (0x1UL << ETH_DMASBMR_RB_Pos) /*!< 0x00008000 */
  7827. #define ETH_DMASBMR_RB ETH_DMASBMR_RB_Msk /* Rebuild INCRx Burst */
  7828. #define ETH_DMASBMR_MB_Pos (14U)
  7829. #define ETH_DMASBMR_MB_Msk (0x1UL << ETH_DMASBMR_MB_Pos) /*!< 0x00004000 */
  7830. #define ETH_DMASBMR_MB ETH_DMASBMR_MB_Msk /* Mixed Burst */
  7831. #define ETH_DMASBMR_AAL_Pos (12U)
  7832. #define ETH_DMASBMR_AAL_Msk (0x1UL << ETH_DMASBMR_AAL_Pos) /*!< 0x00001000 */
  7833. #define ETH_DMASBMR_AAL ETH_DMASBMR_AAL_Msk /* Address-Aligned Beats */
  7834. #define ETH_DMASBMR_FB_Pos (0U)
  7835. #define ETH_DMASBMR_FB_Msk (0x1UL << ETH_DMASBMR_FB_Pos) /*!< 0x00000001 */
  7836. #define ETH_DMASBMR_FB ETH_DMASBMR_FB_Msk /* Fixed Burst Length */
  7837. /* Bit definition for Ethernet DMA Interrupt Status Register */
  7838. #define ETH_DMAISR_MACIS_Pos (17U)
  7839. #define ETH_DMAISR_MACIS_Msk (0x1UL << ETH_DMAISR_MACIS_Pos) /*!< 0x00020000 */
  7840. #define ETH_DMAISR_MACIS ETH_DMAISR_MACIS_Msk /* MAC Interrupt Status */
  7841. #define ETH_DMAISR_MTLIS_Pos (16U)
  7842. #define ETH_DMAISR_MTLIS_Msk (0x1UL << ETH_DMAISR_MTLIS_Pos) /*!< 0x00010000 */
  7843. #define ETH_DMAISR_MTLIS ETH_DMAISR_MTLIS_Msk /* MAC Interrupt Status */
  7844. #define ETH_DMAISR_DMACIS_Pos (0U)
  7845. #define ETH_DMAISR_DMACIS_Msk (0x1UL << ETH_DMAISR_DMACIS_Pos) /*!< 0x00000001 */
  7846. #define ETH_DMAISR_DMACIS ETH_DMAISR_DMACIS_Msk /* DMA Channel Interrupt Status */
  7847. /* Bit definition for Ethernet DMA Debug Status Register */
  7848. #define ETH_DMADSR_TPS_Pos (12U)
  7849. #define ETH_DMADSR_TPS_Msk (0xFUL << ETH_DMADSR_TPS_Pos) /*!< 0x0000F000 */
  7850. #define ETH_DMADSR_TPS ETH_DMADSR_TPS_Msk /* DMA Channel Transmit Process State */
  7851. #define ETH_DMADSR_TPS_STOPPED ((uint32_t)0x00000000) /* Stopped (Reset or Stop Transmit Command issued) */
  7852. #define ETH_DMADSR_TPS_FETCHING_Pos (12U)
  7853. #define ETH_DMADSR_TPS_FETCHING_Msk (0x1UL << ETH_DMADSR_TPS_FETCHING_Pos) /*!< 0x00001000 */
  7854. #define ETH_DMADSR_TPS_FETCHING ETH_DMADSR_TPS_FETCHING_Msk /* Running (Fetching Tx Transfer Descriptor) */
  7855. #define ETH_DMADSR_TPS_WAITING_Pos (13U)
  7856. #define ETH_DMADSR_TPS_WAITING_Msk (0x1UL << ETH_DMADSR_TPS_WAITING_Pos) /*!< 0x00002000 */
  7857. #define ETH_DMADSR_TPS_WAITING ETH_DMADSR_TPS_WAITING_Msk /* Running (Waiting for status) */
  7858. #define ETH_DMADSR_TPS_READING_Pos (12U)
  7859. #define ETH_DMADSR_TPS_READING_Msk (0x3UL << ETH_DMADSR_TPS_READING_Pos) /*!< 0x00003000 */
  7860. #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)) */
  7861. #define ETH_DMADSR_TPS_TIMESTAMP_WR_Pos (14U)
  7862. #define ETH_DMADSR_TPS_TIMESTAMP_WR_Msk (0x1UL << ETH_DMADSR_TPS_TIMESTAMP_WR_Pos) /*!< 0x00004000 */
  7863. #define ETH_DMADSR_TPS_TIMESTAMP_WR ETH_DMADSR_TPS_TIMESTAMP_WR_Msk /* Timestamp write state */
  7864. #define ETH_DMADSR_TPS_SUSPENDED_Pos (13U)
  7865. #define ETH_DMADSR_TPS_SUSPENDED_Msk (0x3UL << ETH_DMADSR_TPS_SUSPENDED_Pos) /*!< 0x00006000 */
  7866. #define ETH_DMADSR_TPS_SUSPENDED ETH_DMADSR_TPS_SUSPENDED_Msk /* Suspended (Tx Descriptor Unavailable or Tx Buffer Underflow) */
  7867. #define ETH_DMADSR_TPS_CLOSING_Pos (12U)
  7868. #define ETH_DMADSR_TPS_CLOSING_Msk (0x7UL << ETH_DMADSR_TPS_CLOSING_Pos) /*!< 0x00007000 */
  7869. #define ETH_DMADSR_TPS_CLOSING ETH_DMADSR_TPS_CLOSING_Msk /* Running (Closing Tx Descriptor) */
  7870. #define ETH_DMADSR_RPS_Pos (8U)
  7871. #define ETH_DMADSR_RPS_Msk (0xFUL << ETH_DMADSR_RPS_Pos) /*!< 0x00000F00 */
  7872. #define ETH_DMADSR_RPS ETH_DMADSR_RPS_Msk /* DMA Channel Receive Process State */
  7873. #define ETH_DMADSR_RPS_STOPPED ((uint32_t)0x00000000) /* Stopped (Reset or Stop Receive Command issued) */
  7874. #define ETH_DMADSR_RPS_FETCHING_Pos (12U)
  7875. #define ETH_DMADSR_RPS_FETCHING_Msk (0x1UL << ETH_DMADSR_RPS_FETCHING_Pos) /*!< 0x00001000 */
  7876. #define ETH_DMADSR_RPS_FETCHING ETH_DMADSR_RPS_FETCHING_Msk /* Running (Fetching Rx Transfer Descriptor) */
  7877. #define ETH_DMADSR_RPS_WAITING_Pos (12U)
  7878. #define ETH_DMADSR_RPS_WAITING_Msk (0x3UL << ETH_DMADSR_RPS_WAITING_Pos) /*!< 0x00003000 */
  7879. #define ETH_DMADSR_RPS_WAITING ETH_DMADSR_RPS_WAITING_Msk /* Running (Waiting for status) */
  7880. #define ETH_DMADSR_RPS_SUSPENDED_Pos (14U)
  7881. #define ETH_DMADSR_RPS_SUSPENDED_Msk (0x1UL << ETH_DMADSR_RPS_SUSPENDED_Pos) /*!< 0x00004000 */
  7882. #define ETH_DMADSR_RPS_SUSPENDED ETH_DMADSR_RPS_SUSPENDED_Msk /* Suspended (Rx Descriptor Unavailable) */
  7883. #define ETH_DMADSR_RPS_CLOSING_Pos (12U)
  7884. #define ETH_DMADSR_RPS_CLOSING_Msk (0x5UL << ETH_DMADSR_RPS_CLOSING_Pos) /*!< 0x00005000 */
  7885. #define ETH_DMADSR_RPS_CLOSING ETH_DMADSR_RPS_CLOSING_Msk /* Running (Closing the Rx Descriptor) */
  7886. #define ETH_DMADSR_RPS_TIMESTAMP_WR_Pos (13U)
  7887. #define ETH_DMADSR_RPS_TIMESTAMP_WR_Msk (0x3UL << ETH_DMADSR_RPS_TIMESTAMP_WR_Pos) /*!< 0x00006000 */
  7888. #define ETH_DMADSR_RPS_TIMESTAMP_WR ETH_DMADSR_RPS_TIMESTAMP_WR_Msk /* Timestamp write state */
  7889. #define ETH_DMADSR_RPS_TRANSFERRING_Pos (12U)
  7890. #define ETH_DMADSR_RPS_TRANSFERRING_Msk (0x7UL << ETH_DMADSR_RPS_TRANSFERRING_Pos) /*!< 0x00007000 */
  7891. #define ETH_DMADSR_RPS_TRANSFERRING ETH_DMADSR_RPS_TRANSFERRING_Msk /* Running (Transferring the received packet data from the Rx buffer to the system memory) */
  7892. /* Bit definition for Ethernet DMA Channel Control Register */
  7893. #define ETH_DMACCR_DSL_Pos (18U)
  7894. #define ETH_DMACCR_DSL_Msk (0x7UL << ETH_DMACCR_DSL_Pos) /*!< 0x001C0000 */
  7895. #define ETH_DMACCR_DSL ETH_DMACCR_DSL_Msk /* Descriptor Skip Length */
  7896. #define ETH_DMACCR_DSL_0BIT ((uint32_t)0x00000000)
  7897. #define ETH_DMACCR_DSL_32BIT ((uint32_t)0x00040000)
  7898. #define ETH_DMACCR_DSL_64BIT ((uint32_t)0x00080000)
  7899. #define ETH_DMACCR_DSL_128BIT ((uint32_t)0x00100000)
  7900. #define ETH_DMACCR_8PBL ((uint32_t)0x00010000) /* 8xPBL mode */
  7901. #define ETH_DMACCR_MSS_Pos (0U)
  7902. #define ETH_DMACCR_MSS_Msk (0x3FFFUL << ETH_DMACCR_MSS_Pos) /*!< 0x00003FFF */
  7903. #define ETH_DMACCR_MSS ETH_DMACCR_MSS_Msk /* Maximum Segment Size */
  7904. /* Bit definition for Ethernet DMA Channel Tx Control Register */
  7905. #define ETH_DMACTCR_TPBL_Pos (16U)
  7906. #define ETH_DMACTCR_TPBL_Msk (0x3FUL << ETH_DMACTCR_TPBL_Pos) /*!< 0x003F0000 */
  7907. #define ETH_DMACTCR_TPBL ETH_DMACTCR_TPBL_Msk /* Transmit Programmable Burst Length */
  7908. #define ETH_DMACTCR_TPBL_1PBL ((uint32_t)0x00010000) /* Transmit Programmable Burst Length 1 */
  7909. #define ETH_DMACTCR_TPBL_2PBL ((uint32_t)0x00020000) /* Transmit Programmable Burst Length 2 */
  7910. #define ETH_DMACTCR_TPBL_4PBL ((uint32_t)0x00040000) /* Transmit Programmable Burst Length 4 */
  7911. #define ETH_DMACTCR_TPBL_8PBL ((uint32_t)0x00080000) /* Transmit Programmable Burst Length 8 */
  7912. #define ETH_DMACTCR_TPBL_16PBL ((uint32_t)0x00100000) /* Transmit Programmable Burst Length 16 */
  7913. #define ETH_DMACTCR_TPBL_32PBL ((uint32_t)0x00200000) /* Transmit Programmable Burst Length 32 */
  7914. #define ETH_DMACTCR_TSE_Pos (12U)
  7915. #define ETH_DMACTCR_TSE_Msk (0x1UL << ETH_DMACTCR_TSE_Pos) /*!< 0x00001000 */
  7916. #define ETH_DMACTCR_TSE ETH_DMACTCR_TSE_Msk /* TCP Segmentation Enabled */
  7917. #define ETH_DMACTCR_OSP_Pos (4U)
  7918. #define ETH_DMACTCR_OSP_Msk (0x1UL << ETH_DMACTCR_OSP_Pos) /*!< 0x00000010 */
  7919. #define ETH_DMACTCR_OSP ETH_DMACTCR_OSP_Msk /* Operate on Second Packet */
  7920. #define ETH_DMACTCR_ST_Pos (0U)
  7921. #define ETH_DMACTCR_ST_Msk (0x1UL << ETH_DMACTCR_ST_Pos) /*!< 0x00000001 */
  7922. #define ETH_DMACTCR_ST ETH_DMACTCR_ST_Msk /* Start or Stop Transmission Command */
  7923. /* Bit definition for Ethernet DMA Channel Rx Control Register */
  7924. #define ETH_DMACRCR_RPF_Pos (31U)
  7925. #define ETH_DMACRCR_RPF_Msk (0x1UL << ETH_DMACRCR_RPF_Pos) /*!< 0x80000000 */
  7926. #define ETH_DMACRCR_RPF ETH_DMACRCR_RPF_Msk /* Rx Packet Flush */
  7927. #define ETH_DMACRCR_RPBL_Pos (16U)
  7928. #define ETH_DMACRCR_RPBL_Msk (0x3FUL << ETH_DMACRCR_RPBL_Pos) /*!< 0x003F0000 */
  7929. #define ETH_DMACRCR_RPBL ETH_DMACRCR_RPBL_Msk /* Receive Programmable Burst Length */
  7930. #define ETH_DMACRCR_RPBL_1PBL ((uint32_t)0x00010000) /* Receive Programmable Burst Length 1 */
  7931. #define ETH_DMACRCR_RPBL_2PBL ((uint32_t)0x00020000) /* Receive Programmable Burst Length 2 */
  7932. #define ETH_DMACRCR_RPBL_4PBL ((uint32_t)0x00040000) /* Receive Programmable Burst Length 4 */
  7933. #define ETH_DMACRCR_RPBL_8PBL ((uint32_t)0x00080000) /* Receive Programmable Burst Length 8 */
  7934. #define ETH_DMACRCR_RPBL_16PBL ((uint32_t)0x00100000) /* Receive Programmable Burst Length 16 */
  7935. #define ETH_DMACRCR_RPBL_32PBL ((uint32_t)0x00200000) /* Receive Programmable Burst Length 32 */
  7936. #define ETH_DMACRCR_RBSZ_Pos (1U)
  7937. #define ETH_DMACRCR_RBSZ_Msk (0x3FFFUL << ETH_DMACRCR_RBSZ_Pos) /*!< 0x00007FFE */
  7938. #define ETH_DMACRCR_RBSZ ETH_DMACRCR_RBSZ_Msk /* Receive Buffer size */
  7939. #define ETH_DMACRCR_SR_Pos (0U)
  7940. #define ETH_DMACRCR_SR_Msk (0x1UL << ETH_DMACRCR_SR_Pos) /*!< 0x00000001 */
  7941. #define ETH_DMACRCR_SR ETH_DMACRCR_SR_Msk /* Start or Stop Receive */
  7942. /* Bit definition for Ethernet DMA CH Tx Desc List Address Register */
  7943. #define ETH_DMACTDLAR_TDESLA_Pos (2U)
  7944. #define ETH_DMACTDLAR_TDESLA_Msk (0x3FFFFFFFUL << ETH_DMACTDLAR_TDESLA_Pos) /*!< 0xFFFFFFFC */
  7945. #define ETH_DMACTDLAR_TDESLA ETH_DMACTDLAR_TDESLA_Msk /* Start of Transmit List */
  7946. /* Bit definition for Ethernet DMA CH Rx Desc List Address Register */
  7947. #define ETH_DMACRDLAR_RDESLA_Pos (2U)
  7948. #define ETH_DMACRDLAR_RDESLA_Msk (0x3FFFFFFFUL << ETH_DMACRDLAR_RDESLA_Pos) /*!< 0xFFFFFFFC */
  7949. #define ETH_DMACRDLAR_RDESLA ETH_DMACRDLAR_RDESLA_Msk /* Start of Receive List */
  7950. /* Bit definition for Ethernet DMA CH Tx Desc Tail Pointer Register */
  7951. #define ETH_DMACTDTPR_TDT_Pos (2U)
  7952. #define ETH_DMACTDTPR_TDT_Msk (0x3FFFFFFFUL << ETH_DMACTDTPR_TDT_Pos) /*!< 0xFFFFFFFC */
  7953. #define ETH_DMACTDTPR_TDT ETH_DMACTDTPR_TDT_Msk /* Transmit Descriptor Tail Pointer */
  7954. /* Bit definition for Ethernet DMA CH Rx Desc Tail Pointer Register */
  7955. #define ETH_DMACRDTPR_RDT_Pos (2U)
  7956. #define ETH_DMACRDTPR_RDT_Msk (0x3FFFFFFFUL << ETH_DMACRDTPR_RDT_Pos) /*!< 0xFFFFFFFC */
  7957. #define ETH_DMACRDTPR_RDT ETH_DMACRDTPR_RDT_Msk /* Receive Descriptor Tail Pointer */
  7958. /* Bit definition for Ethernet DMA CH Tx Desc Ring Length Register */
  7959. #define ETH_DMACTDRLR_TDRL_Pos (0U)
  7960. #define ETH_DMACTDRLR_TDRL_Msk (0x3FFUL << ETH_DMACTDRLR_TDRL_Pos) /*!< 0x000003FF */
  7961. #define ETH_DMACTDRLR_TDRL ETH_DMACTDRLR_TDRL_Msk /* Transmit Descriptor Ring Length */
  7962. /* Bit definition for Ethernet DMA CH Rx Desc Ring Length Register */
  7963. #define ETH_DMACRDRLR_RDRL_Pos (0U)
  7964. #define ETH_DMACRDRLR_RDRL_Msk (0x3FFUL << ETH_DMACRDRLR_RDRL_Pos) /*!< 0x000003FF */
  7965. #define ETH_DMACRDRLR_RDRL ETH_DMACRDRLR_RDRL_Msk /* Receive Descriptor Ring Length */
  7966. /* Bit definition for Ethernet DMA Channel Interrupt Enable Register */
  7967. #define ETH_DMACIER_NIE_Pos (15U)
  7968. #define ETH_DMACIER_NIE_Msk (0x1UL << ETH_DMACIER_NIE_Pos) /*!< 0x00008000 */
  7969. #define ETH_DMACIER_NIE ETH_DMACIER_NIE_Msk /* Normal Interrupt Summary Enable */
  7970. #define ETH_DMACIER_AIE_Pos (14U)
  7971. #define ETH_DMACIER_AIE_Msk (0x1UL << ETH_DMACIER_AIE_Pos) /*!< 0x00004000 */
  7972. #define ETH_DMACIER_AIE ETH_DMACIER_AIE_Msk /* Abnormal Interrupt Summary Enable */
  7973. #define ETH_DMACIER_CDEE_Pos (13U)
  7974. #define ETH_DMACIER_CDEE_Msk (0x1UL << ETH_DMACIER_CDEE_Pos) /*!< 0x00002000 */
  7975. #define ETH_DMACIER_CDEE ETH_DMACIER_CDEE_Msk /* Context Descriptor Error Enable */
  7976. #define ETH_DMACIER_FBEE_Pos (12U)
  7977. #define ETH_DMACIER_FBEE_Msk (0x1UL << ETH_DMACIER_FBEE_Pos) /*!< 0x00001000 */
  7978. #define ETH_DMACIER_FBEE ETH_DMACIER_FBEE_Msk /* Fatal Bus Error Enable */
  7979. #define ETH_DMACIER_ERIE_Pos (11U)
  7980. #define ETH_DMACIER_ERIE_Msk (0x1UL << ETH_DMACIER_ERIE_Pos) /*!< 0x00000800 */
  7981. #define ETH_DMACIER_ERIE ETH_DMACIER_ERIE_Msk /* Early Receive Interrupt Enable */
  7982. #define ETH_DMACIER_ETIE_Pos (10U)
  7983. #define ETH_DMACIER_ETIE_Msk (0x1UL << ETH_DMACIER_ETIE_Pos) /*!< 0x00000400 */
  7984. #define ETH_DMACIER_ETIE ETH_DMACIER_ETIE_Msk /* Early Transmit Interrupt Enable */
  7985. #define ETH_DMACIER_RWTE_Pos (9U)
  7986. #define ETH_DMACIER_RWTE_Msk (0x1UL << ETH_DMACIER_RWTE_Pos) /*!< 0x00000200 */
  7987. #define ETH_DMACIER_RWTE ETH_DMACIER_RWTE_Msk /* Receive Watchdog Timeout Enable */
  7988. #define ETH_DMACIER_RSE_Pos (8U)
  7989. #define ETH_DMACIER_RSE_Msk (0x1UL << ETH_DMACIER_RSE_Pos) /*!< 0x00000100 */
  7990. #define ETH_DMACIER_RSE ETH_DMACIER_RSE_Msk /* Receive Stopped Enable */
  7991. #define ETH_DMACIER_RBUE_Pos (7U)
  7992. #define ETH_DMACIER_RBUE_Msk (0x1UL << ETH_DMACIER_RBUE_Pos) /*!< 0x00000080 */
  7993. #define ETH_DMACIER_RBUE ETH_DMACIER_RBUE_Msk /* Receive Buffer Unavailable Enable */
  7994. #define ETH_DMACIER_RIE_Pos (6U)
  7995. #define ETH_DMACIER_RIE_Msk (0x1UL << ETH_DMACIER_RIE_Pos) /*!< 0x00000040 */
  7996. #define ETH_DMACIER_RIE ETH_DMACIER_RIE_Msk /* Receive Interrupt Enable */
  7997. #define ETH_DMACIER_TBUE_Pos (2U)
  7998. #define ETH_DMACIER_TBUE_Msk (0x1UL << ETH_DMACIER_TBUE_Pos) /*!< 0x00000004 */
  7999. #define ETH_DMACIER_TBUE ETH_DMACIER_TBUE_Msk /* Transmit Buffer Unavailable Enable */
  8000. #define ETH_DMACIER_TXSE_Pos (1U)
  8001. #define ETH_DMACIER_TXSE_Msk (0x1UL << ETH_DMACIER_TXSE_Pos) /*!< 0x00000002 */
  8002. #define ETH_DMACIER_TXSE ETH_DMACIER_TXSE_Msk /* Transmit Stopped Enable */
  8003. #define ETH_DMACIER_TIE_Pos (0U)
  8004. #define ETH_DMACIER_TIE_Msk (0x1UL << ETH_DMACIER_TIE_Pos) /*!< 0x00000001 */
  8005. #define ETH_DMACIER_TIE ETH_DMACIER_TIE_Msk /* Transmit Interrupt Enable */
  8006. /* Bit definition for Ethernet DMA Channel Rx Interrupt Watchdog Timer Register */
  8007. #define ETH_DMACRIWTR_RWT_Pos (0U)
  8008. #define ETH_DMACRIWTR_RWT_Msk (0xFFUL << ETH_DMACRIWTR_RWT_Pos) /*!< 0x000000FF */
  8009. #define ETH_DMACRIWTR_RWT ETH_DMACRIWTR_RWT_Msk /* Receive Interrupt Watchdog Timer Count */
  8010. /* Bit definition for Ethernet DMA Channel Current App Tx Desc Register */
  8011. #define ETH_DMACCATDR_CURTDESAPTR_Pos (0U)
  8012. #define ETH_DMACCATDR_CURTDESAPTR_Msk (0xFFFFFFFFUL << ETH_DMACCATDR_CURTDESAPTR_Pos) /*!< 0xFFFFFFFF */
  8013. #define ETH_DMACCATDR_CURTDESAPTR ETH_DMACCATDR_CURTDESAPTR_Msk /* Application Transmit Descriptor Address Pointer */
  8014. /* Bit definition for Ethernet DMA Channel Current App Rx Desc Register */
  8015. #define ETH_DMACCARDR_CURRDESAPTR_Pos (0U)
  8016. #define ETH_DMACCARDR_CURRDESAPTR_Msk (0xFFFFFFFFUL << ETH_DMACCARDR_CURRDESAPTR_Pos) /*!< 0xFFFFFFFF */
  8017. #define ETH_DMACCARDR_CURRDESAPTR ETH_DMACCARDR_CURRDESAPTR_Msk /* Application Receive Descriptor Address Pointer */
  8018. /* Bit definition for Ethernet DMA Channel Current App Tx Buffer Register */
  8019. #define ETH_DMACCATBR_CURTBUFAPTR_Pos (0U)
  8020. #define ETH_DMACCATBR_CURTBUFAPTR_Msk (0xFFFFFFFFUL << ETH_DMACCATBR_CURTBUFAPTR_Pos) /*!< 0xFFFFFFFF */
  8021. #define ETH_DMACCATBR_CURTBUFAPTR ETH_DMACCATBR_CURTBUFAPTR_Msk /* Application Transmit Buffer Address Pointer */
  8022. /* Bit definition for Ethernet DMA Channel Current App Rx Buffer Register */
  8023. #define ETH_DMACCARBR_CURRBUFAPTR_Pos (0U)
  8024. #define ETH_DMACCARBR_CURRBUFAPTR_Msk (0xFFFFFFFFUL << ETH_DMACCARBR_CURRBUFAPTR_Pos) /*!< 0xFFFFFFFF */
  8025. #define ETH_DMACCARBR_CURRBUFAPTR ETH_DMACCARBR_CURRBUFAPTR_Msk /* Application Receive Buffer Address Pointer */
  8026. /* Bit definition for Ethernet DMA Channel Status Register */
  8027. #define ETH_DMACSR_REB_Pos (19U)
  8028. #define ETH_DMACSR_REB_Msk (0x7UL << ETH_DMACSR_REB_Pos) /*!< 0x00380000 */
  8029. #define ETH_DMACSR_REB ETH_DMACSR_REB_Msk /* Rx DMA Error Bits */
  8030. #define ETH_DMACSR_TEB_Pos (16U)
  8031. #define ETH_DMACSR_TEB_Msk (0x7UL << ETH_DMACSR_TEB_Pos) /*!< 0x00070000 */
  8032. #define ETH_DMACSR_TEB ETH_DMACSR_TEB_Msk /* Tx DMA Error Bits */
  8033. #define ETH_DMACSR_NIS_Pos (15U)
  8034. #define ETH_DMACSR_NIS_Msk (0x1UL << ETH_DMACSR_NIS_Pos) /*!< 0x00008000 */
  8035. #define ETH_DMACSR_NIS ETH_DMACSR_NIS_Msk /* Normal Interrupt Summary */
  8036. #define ETH_DMACSR_AIS_Pos (14U)
  8037. #define ETH_DMACSR_AIS_Msk (0x1UL << ETH_DMACSR_AIS_Pos) /*!< 0x00004000 */
  8038. #define ETH_DMACSR_AIS ETH_DMACSR_AIS_Msk /* Abnormal Interrupt Summary */
  8039. #define ETH_DMACSR_CDE_Pos (13U)
  8040. #define ETH_DMACSR_CDE_Msk (0x1UL << ETH_DMACSR_CDE_Pos) /*!< 0x00002000 */
  8041. #define ETH_DMACSR_CDE ETH_DMACSR_CDE_Msk /* Context Descriptor Error */
  8042. #define ETH_DMACSR_FBE_Pos (12U)
  8043. #define ETH_DMACSR_FBE_Msk (0x1UL << ETH_DMACSR_FBE_Pos) /*!< 0x00001000 */
  8044. #define ETH_DMACSR_FBE ETH_DMACSR_FBE_Msk /* Fatal Bus Error */
  8045. #define ETH_DMACSR_ERI_Pos (11U)
  8046. #define ETH_DMACSR_ERI_Msk (0x1UL << ETH_DMACSR_ERI_Pos) /*!< 0x00000800 */
  8047. #define ETH_DMACSR_ERI ETH_DMACSR_ERI_Msk /* Early Receive Interrupt */
  8048. #define ETH_DMACSR_ETI_Pos (10U)
  8049. #define ETH_DMACSR_ETI_Msk (0x1UL << ETH_DMACSR_ETI_Pos) /*!< 0x00000400 */
  8050. #define ETH_DMACSR_ETI ETH_DMACSR_ETI_Msk /* Early Transmit Interrupt */
  8051. #define ETH_DMACSR_RWT_Pos (9U)
  8052. #define ETH_DMACSR_RWT_Msk (0x1UL << ETH_DMACSR_RWT_Pos) /*!< 0x00000200 */
  8053. #define ETH_DMACSR_RWT ETH_DMACSR_RWT_Msk /* Receive Watchdog Timeout */
  8054. #define ETH_DMACSR_RPS_Pos (8U)
  8055. #define ETH_DMACSR_RPS_Msk (0x1UL << ETH_DMACSR_RPS_Pos) /*!< 0x00000100 */
  8056. #define ETH_DMACSR_RPS ETH_DMACSR_RPS_Msk /* Receive Process Stopped */
  8057. #define ETH_DMACSR_RBU_Pos (7U)
  8058. #define ETH_DMACSR_RBU_Msk (0x1UL << ETH_DMACSR_RBU_Pos) /*!< 0x00000080 */
  8059. #define ETH_DMACSR_RBU ETH_DMACSR_RBU_Msk /* Receive Buffer Unavailable */
  8060. #define ETH_DMACSR_RI_Pos (6U)
  8061. #define ETH_DMACSR_RI_Msk (0x1UL << ETH_DMACSR_RI_Pos) /*!< 0x00000040 */
  8062. #define ETH_DMACSR_RI ETH_DMACSR_RI_Msk /* Receive Interrupt */
  8063. #define ETH_DMACSR_TBU_Pos (2U)
  8064. #define ETH_DMACSR_TBU_Msk (0x1UL << ETH_DMACSR_TBU_Pos) /*!< 0x00000004 */
  8065. #define ETH_DMACSR_TBU ETH_DMACSR_TBU_Msk /* Transmit Buffer Unavailable */
  8066. #define ETH_DMACSR_TPS_Pos (1U)
  8067. #define ETH_DMACSR_TPS_Msk (0x1UL << ETH_DMACSR_TPS_Pos) /*!< 0x00000002 */
  8068. #define ETH_DMACSR_TPS ETH_DMACSR_TPS_Msk /* Transmit Process Stopped */
  8069. #define ETH_DMACSR_TI_Pos (0U)
  8070. #define ETH_DMACSR_TI_Msk (0x1UL << ETH_DMACSR_TI_Pos) /*!< 0x00000001 */
  8071. #define ETH_DMACSR_TI ETH_DMACSR_TI_Msk /* Transmit Interrupt */
  8072. /* Bit definition for Ethernet DMA Channel missed frame count register */
  8073. #define ETH_DMACMFCR_MFCO_Pos (15U)
  8074. #define ETH_DMACMFCR_MFCO_Msk (0x1UL << ETH_DMACMFCR_MFCO_Pos) /*!< 0x00008000 */
  8075. #define ETH_DMACMFCR_MFCO ETH_DMACMFCR_MFCO_Msk /* Overflow status of the MFC Counter */
  8076. #define ETH_DMACMFCR_MFC_Pos (0U)
  8077. #define ETH_DMACMFCR_MFC_Msk (0x7FFUL << ETH_DMACMFCR_MFC_Pos) /*!< 0x000007FF */
  8078. #define ETH_DMACMFCR_MFC ETH_DMACMFCR_MFC_Msk /* The number of packet counters dropped by the DMA */
  8079. /******************************************************************************/
  8080. /* */
  8081. /* DMA Controller */
  8082. /* */
  8083. /******************************************************************************/
  8084. /******************** Bits definition for DMA_SxCR register *****************/
  8085. #define DMA_SxCR_MBURST_Pos (23U)
  8086. #define DMA_SxCR_MBURST_Msk (0x3UL << DMA_SxCR_MBURST_Pos) /*!< 0x01800000 */
  8087. #define DMA_SxCR_MBURST DMA_SxCR_MBURST_Msk /*!< Memory burst transfer configuration */
  8088. #define DMA_SxCR_MBURST_0 (0x1UL << DMA_SxCR_MBURST_Pos) /*!< 0x00800000 */
  8089. #define DMA_SxCR_MBURST_1 (0x2UL << DMA_SxCR_MBURST_Pos) /*!< 0x01000000 */
  8090. #define DMA_SxCR_PBURST_Pos (21U)
  8091. #define DMA_SxCR_PBURST_Msk (0x3UL << DMA_SxCR_PBURST_Pos) /*!< 0x00600000 */
  8092. #define DMA_SxCR_PBURST DMA_SxCR_PBURST_Msk /*!< Peripheral burst transfer configuration */
  8093. #define DMA_SxCR_PBURST_0 (0x1UL << DMA_SxCR_PBURST_Pos) /*!< 0x00200000 */
  8094. #define DMA_SxCR_PBURST_1 (0x2UL << DMA_SxCR_PBURST_Pos) /*!< 0x00400000 */
  8095. #define DMA_SxCR_TRBUFF_Pos (20U)
  8096. #define DMA_SxCR_TRBUFF_Msk (0x1UL << DMA_SxCR_TRBUFF_Pos) /*!< 0x00100000 */
  8097. #define DMA_SxCR_TRBUFF DMA_SxCR_TRBUFF_Msk /*!< bufferable transfers enabled/disable */
  8098. #define DMA_SxCR_CT_Pos (19U)
  8099. #define DMA_SxCR_CT_Msk (0x1UL << DMA_SxCR_CT_Pos) /*!< 0x00080000 */
  8100. #define DMA_SxCR_CT DMA_SxCR_CT_Msk /*!< Current target (only in double buffer mode) */
  8101. #define DMA_SxCR_DBM_Pos (18U)
  8102. #define DMA_SxCR_DBM_Msk (0x1UL << DMA_SxCR_DBM_Pos) /*!< 0x00040000 */
  8103. #define DMA_SxCR_DBM DMA_SxCR_DBM_Msk /*!< Double buffer mode */
  8104. #define DMA_SxCR_PL_Pos (16U)
  8105. #define DMA_SxCR_PL_Msk (0x3UL << DMA_SxCR_PL_Pos) /*!< 0x00030000 */
  8106. #define DMA_SxCR_PL DMA_SxCR_PL_Msk /*!< Priority level */
  8107. #define DMA_SxCR_PL_0 (0x1UL << DMA_SxCR_PL_Pos) /*!< 0x00010000 */
  8108. #define DMA_SxCR_PL_1 (0x2UL << DMA_SxCR_PL_Pos) /*!< 0x00020000 */
  8109. #define DMA_SxCR_PINCOS_Pos (15U)
  8110. #define DMA_SxCR_PINCOS_Msk (0x1UL << DMA_SxCR_PINCOS_Pos) /*!< 0x00008000 */
  8111. #define DMA_SxCR_PINCOS DMA_SxCR_PINCOS_Msk /*!< Peripheral increment offset size */
  8112. #define DMA_SxCR_MSIZE_Pos (13U)
  8113. #define DMA_SxCR_MSIZE_Msk (0x3UL << DMA_SxCR_MSIZE_Pos) /*!< 0x00006000 */
  8114. #define DMA_SxCR_MSIZE DMA_SxCR_MSIZE_Msk /*!< Memory data size */
  8115. #define DMA_SxCR_MSIZE_0 (0x1UL << DMA_SxCR_MSIZE_Pos) /*!< 0x00002000 */
  8116. #define DMA_SxCR_MSIZE_1 (0x2UL << DMA_SxCR_MSIZE_Pos) /*!< 0x00004000 */
  8117. #define DMA_SxCR_PSIZE_Pos (11U)
  8118. #define DMA_SxCR_PSIZE_Msk (0x3UL << DMA_SxCR_PSIZE_Pos) /*!< 0x00001800 */
  8119. #define DMA_SxCR_PSIZE DMA_SxCR_PSIZE_Msk /*< Peripheral data size */
  8120. #define DMA_SxCR_PSIZE_0 (0x1UL << DMA_SxCR_PSIZE_Pos) /*!< 0x00000800 */
  8121. #define DMA_SxCR_PSIZE_1 (0x2UL << DMA_SxCR_PSIZE_Pos) /*!< 0x00001000 */
  8122. #define DMA_SxCR_MINC_Pos (10U)
  8123. #define DMA_SxCR_MINC_Msk (0x1UL << DMA_SxCR_MINC_Pos) /*!< 0x00000400 */
  8124. #define DMA_SxCR_MINC DMA_SxCR_MINC_Msk /*!< Memory increment mode */
  8125. #define DMA_SxCR_PINC_Pos (9U)
  8126. #define DMA_SxCR_PINC_Msk (0x1UL << DMA_SxCR_PINC_Pos) /*!< 0x00000200 */
  8127. #define DMA_SxCR_PINC DMA_SxCR_PINC_Msk /*!< Peripheral increment mode */
  8128. #define DMA_SxCR_CIRC_Pos (8U)
  8129. #define DMA_SxCR_CIRC_Msk (0x1UL << DMA_SxCR_CIRC_Pos) /*!< 0x00000100 */
  8130. #define DMA_SxCR_CIRC DMA_SxCR_CIRC_Msk /*!< Circular mode */
  8131. #define DMA_SxCR_DIR_Pos (6U)
  8132. #define DMA_SxCR_DIR_Msk (0x3UL << DMA_SxCR_DIR_Pos) /*!< 0x000000C0 */
  8133. #define DMA_SxCR_DIR DMA_SxCR_DIR_Msk /*!< Data transfer direction */
  8134. #define DMA_SxCR_DIR_0 (0x1UL << DMA_SxCR_DIR_Pos) /*!< 0x00000040 */
  8135. #define DMA_SxCR_DIR_1 (0x2UL << DMA_SxCR_DIR_Pos) /*!< 0x00000080 */
  8136. #define DMA_SxCR_PFCTRL_Pos (5U)
  8137. #define DMA_SxCR_PFCTRL_Msk (0x1UL << DMA_SxCR_PFCTRL_Pos) /*!< 0x00000020 */
  8138. #define DMA_SxCR_PFCTRL DMA_SxCR_PFCTRL_Msk /*!< Peripheral flow controller */
  8139. #define DMA_SxCR_TCIE_Pos (4U)
  8140. #define DMA_SxCR_TCIE_Msk (0x1UL << DMA_SxCR_TCIE_Pos) /*!< 0x00000010 */
  8141. #define DMA_SxCR_TCIE DMA_SxCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  8142. #define DMA_SxCR_HTIE_Pos (3U)
  8143. #define DMA_SxCR_HTIE_Msk (0x1UL << DMA_SxCR_HTIE_Pos) /*!< 0x00000008 */
  8144. #define DMA_SxCR_HTIE DMA_SxCR_HTIE_Msk /*!< Half transfer interrupt enable */
  8145. #define DMA_SxCR_TEIE_Pos (2U)
  8146. #define DMA_SxCR_TEIE_Msk (0x1UL << DMA_SxCR_TEIE_Pos) /*!< 0x00000004 */
  8147. #define DMA_SxCR_TEIE DMA_SxCR_TEIE_Msk /*!< Transfer error interrupt enable */
  8148. #define DMA_SxCR_DMEIE_Pos (1U)
  8149. #define DMA_SxCR_DMEIE_Msk (0x1UL << DMA_SxCR_DMEIE_Pos) /*!< 0x00000002 */
  8150. #define DMA_SxCR_DMEIE DMA_SxCR_DMEIE_Msk /*!< Direct mode error interrupt enable */
  8151. #define DMA_SxCR_EN_Pos (0U)
  8152. #define DMA_SxCR_EN_Msk (0x1UL << DMA_SxCR_EN_Pos) /*!< 0x00000001 */
  8153. #define DMA_SxCR_EN DMA_SxCR_EN_Msk /*!< Stream enable / flag stream ready when read low */
  8154. /******************** Bits definition for DMA_SxCNDTR register **************/
  8155. #define DMA_SxNDT_Pos (0U)
  8156. #define DMA_SxNDT_Msk (0xFFFFUL << DMA_SxNDT_Pos) /*!< 0x0000FFFF */
  8157. #define DMA_SxNDT DMA_SxNDT_Msk /*!< Number of data items to transfer */
  8158. #define DMA_SxNDT_0 (0x0001UL << DMA_SxNDT_Pos) /*!< 0x00000001 */
  8159. #define DMA_SxNDT_1 (0x0002UL << DMA_SxNDT_Pos) /*!< 0x00000002 */
  8160. #define DMA_SxNDT_2 (0x0004UL << DMA_SxNDT_Pos) /*!< 0x00000004 */
  8161. #define DMA_SxNDT_3 (0x0008UL << DMA_SxNDT_Pos) /*!< 0x00000008 */
  8162. #define DMA_SxNDT_4 (0x0010UL << DMA_SxNDT_Pos) /*!< 0x00000010 */
  8163. #define DMA_SxNDT_5 (0x0020UL << DMA_SxNDT_Pos) /*!< 0x00000020 */
  8164. #define DMA_SxNDT_6 (0x0040UL << DMA_SxNDT_Pos) /*!< 0x00000040 */
  8165. #define DMA_SxNDT_7 (0x0080UL << DMA_SxNDT_Pos) /*!< 0x00000080 */
  8166. #define DMA_SxNDT_8 (0x0100UL << DMA_SxNDT_Pos) /*!< 0x00000100 */
  8167. #define DMA_SxNDT_9 (0x0200UL << DMA_SxNDT_Pos) /*!< 0x00000200 */
  8168. #define DMA_SxNDT_10 (0x0400UL << DMA_SxNDT_Pos) /*!< 0x00000400 */
  8169. #define DMA_SxNDT_11 (0x0800UL << DMA_SxNDT_Pos) /*!< 0x00000800 */
  8170. #define DMA_SxNDT_12 (0x1000UL << DMA_SxNDT_Pos) /*!< 0x00001000 */
  8171. #define DMA_SxNDT_13 (0x2000UL << DMA_SxNDT_Pos) /*!< 0x00002000 */
  8172. #define DMA_SxNDT_14 (0x4000UL << DMA_SxNDT_Pos) /*!< 0x00004000 */
  8173. #define DMA_SxNDT_15 (0x8000UL << DMA_SxNDT_Pos) /*!< 0x00008000 */
  8174. /******************** Bits definition for DMA_SxFCR register ****************/
  8175. #define DMA_SxFCR_FEIE_Pos (7U)
  8176. #define DMA_SxFCR_FEIE_Msk (0x1UL << DMA_SxFCR_FEIE_Pos) /*!< 0x00000080 */
  8177. #define DMA_SxFCR_FEIE DMA_SxFCR_FEIE_Msk /*!< FIFO error interrupt enable */
  8178. #define DMA_SxFCR_FS_Pos (3U)
  8179. #define DMA_SxFCR_FS_Msk (0x7UL << DMA_SxFCR_FS_Pos) /*!< 0x00000038 */
  8180. #define DMA_SxFCR_FS DMA_SxFCR_FS_Msk /*!< FIFO status */
  8181. #define DMA_SxFCR_FS_0 (0x1UL << DMA_SxFCR_FS_Pos) /*!< 0x00000008 */
  8182. #define DMA_SxFCR_FS_1 (0x2UL << DMA_SxFCR_FS_Pos) /*!< 0x00000010 */
  8183. #define DMA_SxFCR_FS_2 (0x4UL << DMA_SxFCR_FS_Pos) /*!< 0x00000020 */
  8184. #define DMA_SxFCR_DMDIS_Pos (2U)
  8185. #define DMA_SxFCR_DMDIS_Msk (0x1UL << DMA_SxFCR_DMDIS_Pos) /*!< 0x00000004 */
  8186. #define DMA_SxFCR_DMDIS DMA_SxFCR_DMDIS_Msk /*!< Direct mode disable */
  8187. #define DMA_SxFCR_FTH_Pos (0U)
  8188. #define DMA_SxFCR_FTH_Msk (0x3UL << DMA_SxFCR_FTH_Pos) /*!< 0x00000003 */
  8189. #define DMA_SxFCR_FTH DMA_SxFCR_FTH_Msk /*!< FIFO threshold selection */
  8190. #define DMA_SxFCR_FTH_0 (0x1UL << DMA_SxFCR_FTH_Pos) /*!< 0x00000001 */
  8191. #define DMA_SxFCR_FTH_1 (0x2UL << DMA_SxFCR_FTH_Pos) /*!< 0x00000002 */
  8192. /******************** Bits definition for DMA_LISR register *****************/
  8193. #define DMA_LISR_TCIF3_Pos (27U)
  8194. #define DMA_LISR_TCIF3_Msk (0x1UL << DMA_LISR_TCIF3_Pos) /*!< 0x08000000 */
  8195. #define DMA_LISR_TCIF3 DMA_LISR_TCIF3_Msk /*!< Stream 3 transfer complete interrupt flag */
  8196. #define DMA_LISR_HTIF3_Pos (26U)
  8197. #define DMA_LISR_HTIF3_Msk (0x1UL << DMA_LISR_HTIF3_Pos) /*!< 0x04000000 */
  8198. #define DMA_LISR_HTIF3 DMA_LISR_HTIF3_Msk /*!< Stream 3 half transfer interrupt flag */
  8199. #define DMA_LISR_TEIF3_Pos (25U)
  8200. #define DMA_LISR_TEIF3_Msk (0x1UL << DMA_LISR_TEIF3_Pos) /*!< 0x02000000 */
  8201. #define DMA_LISR_TEIF3 DMA_LISR_TEIF3_Msk /*!< Stream 3 transfer error interrupt flag */
  8202. #define DMA_LISR_DMEIF3_Pos (24U)
  8203. #define DMA_LISR_DMEIF3_Msk (0x1UL << DMA_LISR_DMEIF3_Pos) /*!< 0x01000000 */
  8204. #define DMA_LISR_DMEIF3 DMA_LISR_DMEIF3_Msk /*!< Stream 3 direct mode error interrupt flag */
  8205. #define DMA_LISR_FEIF3_Pos (22U)
  8206. #define DMA_LISR_FEIF3_Msk (0x1UL << DMA_LISR_FEIF3_Pos) /*!< 0x00400000 */
  8207. #define DMA_LISR_FEIF3 DMA_LISR_FEIF3_Msk /*!< Stream 3 FIFO error interrupt flag */
  8208. #define DMA_LISR_TCIF2_Pos (21U)
  8209. #define DMA_LISR_TCIF2_Msk (0x1UL << DMA_LISR_TCIF2_Pos) /*!< 0x00200000 */
  8210. #define DMA_LISR_TCIF2 DMA_LISR_TCIF2_Msk /*!< Stream 2 transfer complete interrupt flag */
  8211. #define DMA_LISR_HTIF2_Pos (20U)
  8212. #define DMA_LISR_HTIF2_Msk (0x1UL << DMA_LISR_HTIF2_Pos) /*!< 0x00100000 */
  8213. #define DMA_LISR_HTIF2 DMA_LISR_HTIF2_Msk /*!< Stream 2 half transfer interrupt flag */
  8214. #define DMA_LISR_TEIF2_Pos (19U)
  8215. #define DMA_LISR_TEIF2_Msk (0x1UL << DMA_LISR_TEIF2_Pos) /*!< 0x00080000 */
  8216. #define DMA_LISR_TEIF2 DMA_LISR_TEIF2_Msk /*!< Stream 2 transfer error interrupt flag */
  8217. #define DMA_LISR_DMEIF2_Pos (18U)
  8218. #define DMA_LISR_DMEIF2_Msk (0x1UL << DMA_LISR_DMEIF2_Pos) /*!< 0x00040000 */
  8219. #define DMA_LISR_DMEIF2 DMA_LISR_DMEIF2_Msk /*!< Stream 2 direct mode error interrupt flag */
  8220. #define DMA_LISR_FEIF2_Pos (16U)
  8221. #define DMA_LISR_FEIF2_Msk (0x1UL << DMA_LISR_FEIF2_Pos) /*!< 0x00010000 */
  8222. #define DMA_LISR_FEIF2 DMA_LISR_FEIF2_Msk /*!< Stream 2 FIFO error interrupt flag */
  8223. #define DMA_LISR_TCIF1_Pos (11U)
  8224. #define DMA_LISR_TCIF1_Msk (0x1UL << DMA_LISR_TCIF1_Pos) /*!< 0x00000800 */
  8225. #define DMA_LISR_TCIF1 DMA_LISR_TCIF1_Msk /*!< Stream 1 transfer complete interrupt flag */
  8226. #define DMA_LISR_HTIF1_Pos (10U)
  8227. #define DMA_LISR_HTIF1_Msk (0x1UL << DMA_LISR_HTIF1_Pos) /*!< 0x00000400 */
  8228. #define DMA_LISR_HTIF1 DMA_LISR_HTIF1_Msk /*!< Stream 1 half transfer interrupt flag */
  8229. #define DMA_LISR_TEIF1_Pos (9U)
  8230. #define DMA_LISR_TEIF1_Msk (0x1UL << DMA_LISR_TEIF1_Pos) /*!< 0x00000200 */
  8231. #define DMA_LISR_TEIF1 DMA_LISR_TEIF1_Msk /*!< Stream 1 transfer error interrupt flag */
  8232. #define DMA_LISR_DMEIF1_Pos (8U)
  8233. #define DMA_LISR_DMEIF1_Msk (0x1UL << DMA_LISR_DMEIF1_Pos) /*!< 0x00000100 */
  8234. #define DMA_LISR_DMEIF1 DMA_LISR_DMEIF1_Msk /*!< Stream 1 direct mode error interrupt flag */
  8235. #define DMA_LISR_FEIF1_Pos (6U)
  8236. #define DMA_LISR_FEIF1_Msk (0x1UL << DMA_LISR_FEIF1_Pos) /*!< 0x00000040 */
  8237. #define DMA_LISR_FEIF1 DMA_LISR_FEIF1_Msk /*!< Stream 1 FIFO error interrupt flag */
  8238. #define DMA_LISR_TCIF0_Pos (5U)
  8239. #define DMA_LISR_TCIF0_Msk (0x1UL << DMA_LISR_TCIF0_Pos) /*!< 0x00000020 */
  8240. #define DMA_LISR_TCIF0 DMA_LISR_TCIF0_Msk /*!< Stream 0 transfer complete interrupt flag */
  8241. #define DMA_LISR_HTIF0_Pos (4U)
  8242. #define DMA_LISR_HTIF0_Msk (0x1UL << DMA_LISR_HTIF0_Pos) /*!< 0x00000010 */
  8243. #define DMA_LISR_HTIF0 DMA_LISR_HTIF0_Msk /*!< Stream 0 half transfer interrupt flag */
  8244. #define DMA_LISR_TEIF0_Pos (3U)
  8245. #define DMA_LISR_TEIF0_Msk (0x1UL << DMA_LISR_TEIF0_Pos) /*!< 0x00000008 */
  8246. #define DMA_LISR_TEIF0 DMA_LISR_TEIF0_Msk /*!< Stream 0 transfer error interrupt flag */
  8247. #define DMA_LISR_DMEIF0_Pos (2U)
  8248. #define DMA_LISR_DMEIF0_Msk (0x1UL << DMA_LISR_DMEIF0_Pos) /*!< 0x00000004 */
  8249. #define DMA_LISR_DMEIF0 DMA_LISR_DMEIF0_Msk /*!< Stream 0 direct mode error interrupt flag */
  8250. #define DMA_LISR_FEIF0_Pos (0U)
  8251. #define DMA_LISR_FEIF0_Msk (0x1UL << DMA_LISR_FEIF0_Pos) /*!< 0x00000001 */
  8252. #define DMA_LISR_FEIF0 DMA_LISR_FEIF0_Msk /*!< Stream 0 FIFO error interrupt flag */
  8253. /******************** Bits definition for DMA_HISR register *****************/
  8254. #define DMA_HISR_TCIF7_Pos (27U)
  8255. #define DMA_HISR_TCIF7_Msk (0x1UL << DMA_HISR_TCIF7_Pos) /*!< 0x08000000 */
  8256. #define DMA_HISR_TCIF7 DMA_HISR_TCIF7_Msk /*!< Stream 7 transfer complete interrupt flag */
  8257. #define DMA_HISR_HTIF7_Pos (26U)
  8258. #define DMA_HISR_HTIF7_Msk (0x1UL << DMA_HISR_HTIF7_Pos) /*!< 0x04000000 */
  8259. #define DMA_HISR_HTIF7 DMA_HISR_HTIF7_Msk /*!< Stream 7 half transfer interrupt flag */
  8260. #define DMA_HISR_TEIF7_Pos (25U)
  8261. #define DMA_HISR_TEIF7_Msk (0x1UL << DMA_HISR_TEIF7_Pos) /*!< 0x02000000 */
  8262. #define DMA_HISR_TEIF7 DMA_HISR_TEIF7_Msk /*!< Stream 7 transfer error interrupt flag */
  8263. #define DMA_HISR_DMEIF7_Pos (24U)
  8264. #define DMA_HISR_DMEIF7_Msk (0x1UL << DMA_HISR_DMEIF7_Pos) /*!< 0x01000000 */
  8265. #define DMA_HISR_DMEIF7 DMA_HISR_DMEIF7_Msk /*!< Stream 7 direct mode error interrupt flag */
  8266. #define DMA_HISR_FEIF7_Pos (22U)
  8267. #define DMA_HISR_FEIF7_Msk (0x1UL << DMA_HISR_FEIF7_Pos) /*!< 0x00400000 */
  8268. #define DMA_HISR_FEIF7 DMA_HISR_FEIF7_Msk /*!< Stream 7 FIFO error interrupt flag */
  8269. #define DMA_HISR_TCIF6_Pos (21U)
  8270. #define DMA_HISR_TCIF6_Msk (0x1UL << DMA_HISR_TCIF6_Pos) /*!< 0x00200000 */
  8271. #define DMA_HISR_TCIF6 DMA_HISR_TCIF6_Msk /*!< Stream 6 transfer complete interrupt flag */
  8272. #define DMA_HISR_HTIF6_Pos (20U)
  8273. #define DMA_HISR_HTIF6_Msk (0x1UL << DMA_HISR_HTIF6_Pos) /*!< 0x00100000 */
  8274. #define DMA_HISR_HTIF6 DMA_HISR_HTIF6_Msk /*!< Stream 6 half transfer interrupt flag */
  8275. #define DMA_HISR_TEIF6_Pos (19U)
  8276. #define DMA_HISR_TEIF6_Msk (0x1UL << DMA_HISR_TEIF6_Pos) /*!< 0x00080000 */
  8277. #define DMA_HISR_TEIF6 DMA_HISR_TEIF6_Msk /*!< Stream 6 transfer error interrupt flag */
  8278. #define DMA_HISR_DMEIF6_Pos (18U)
  8279. #define DMA_HISR_DMEIF6_Msk (0x1UL << DMA_HISR_DMEIF6_Pos) /*!< 0x00040000 */
  8280. #define DMA_HISR_DMEIF6 DMA_HISR_DMEIF6_Msk /*!< Stream 6 direct mode error interrupt flag */
  8281. #define DMA_HISR_FEIF6_Pos (16U)
  8282. #define DMA_HISR_FEIF6_Msk (0x1UL << DMA_HISR_FEIF6_Pos) /*!< 0x00010000 */
  8283. #define DMA_HISR_FEIF6 DMA_HISR_FEIF6_Msk /*!< Stream 6 FIFO error interrupt flag */
  8284. #define DMA_HISR_TCIF5_Pos (11U)
  8285. #define DMA_HISR_TCIF5_Msk (0x1UL << DMA_HISR_TCIF5_Pos) /*!< 0x00000800 */
  8286. #define DMA_HISR_TCIF5 DMA_HISR_TCIF5_Msk /*!< Stream 5 transfer complete interrupt flag */
  8287. #define DMA_HISR_HTIF5_Pos (10U)
  8288. #define DMA_HISR_HTIF5_Msk (0x1UL << DMA_HISR_HTIF5_Pos) /*!< 0x00000400 */
  8289. #define DMA_HISR_HTIF5 DMA_HISR_HTIF5_Msk /*!< Stream 5 half transfer interrupt flag */
  8290. #define DMA_HISR_TEIF5_Pos (9U)
  8291. #define DMA_HISR_TEIF5_Msk (0x1UL << DMA_HISR_TEIF5_Pos) /*!< 0x00000200 */
  8292. #define DMA_HISR_TEIF5 DMA_HISR_TEIF5_Msk /*!< Stream 5 transfer error interrupt flag */
  8293. #define DMA_HISR_DMEIF5_Pos (8U)
  8294. #define DMA_HISR_DMEIF5_Msk (0x1UL << DMA_HISR_DMEIF5_Pos) /*!< 0x00000100 */
  8295. #define DMA_HISR_DMEIF5 DMA_HISR_DMEIF5_Msk /*!< Stream 5 direct mode error interrupt flag */
  8296. #define DMA_HISR_FEIF5_Pos (6U)
  8297. #define DMA_HISR_FEIF5_Msk (0x1UL << DMA_HISR_FEIF5_Pos) /*!< 0x00000040 */
  8298. #define DMA_HISR_FEIF5 DMA_HISR_FEIF5_Msk /*!< Stream 5 FIFO error interrupt flag */
  8299. #define DMA_HISR_TCIF4_Pos (5U)
  8300. #define DMA_HISR_TCIF4_Msk (0x1UL << DMA_HISR_TCIF4_Pos) /*!< 0x00000020 */
  8301. #define DMA_HISR_TCIF4 DMA_HISR_TCIF4_Msk /*!< Stream 4 transfer complete interrupt flag */
  8302. #define DMA_HISR_HTIF4_Pos (4U)
  8303. #define DMA_HISR_HTIF4_Msk (0x1UL << DMA_HISR_HTIF4_Pos) /*!< 0x00000010 */
  8304. #define DMA_HISR_HTIF4 DMA_HISR_HTIF4_Msk /*!< Stream 4 half transfer interrupt flag */
  8305. #define DMA_HISR_TEIF4_Pos (3U)
  8306. #define DMA_HISR_TEIF4_Msk (0x1UL << DMA_HISR_TEIF4_Pos) /*!< 0x00000008 */
  8307. #define DMA_HISR_TEIF4 DMA_HISR_TEIF4_Msk /*!< Stream 4 transfer error interrupt flag */
  8308. #define DMA_HISR_DMEIF4_Pos (2U)
  8309. #define DMA_HISR_DMEIF4_Msk (0x1UL << DMA_HISR_DMEIF4_Pos) /*!< 0x00000004 */
  8310. #define DMA_HISR_DMEIF4 DMA_HISR_DMEIF4_Msk /*!< Stream 4 direct mode error interrupt flag */
  8311. #define DMA_HISR_FEIF4_Pos (0U)
  8312. #define DMA_HISR_FEIF4_Msk (0x1UL << DMA_HISR_FEIF4_Pos) /*!< 0x00000001 */
  8313. #define DMA_HISR_FEIF4 DMA_HISR_FEIF4_Msk /*!< Stream 4 FIFO error interrupt flag */
  8314. /******************** Bits definition for DMA_LIFCR register ****************/
  8315. #define DMA_LIFCR_CTCIF3_Pos (27U)
  8316. #define DMA_LIFCR_CTCIF3_Msk (0x1UL << DMA_LIFCR_CTCIF3_Pos) /*!< 0x08000000 */
  8317. #define DMA_LIFCR_CTCIF3 DMA_LIFCR_CTCIF3_Msk /*!< Stream 3 clear transfer complete interrupt flag */
  8318. #define DMA_LIFCR_CHTIF3_Pos (26U)
  8319. #define DMA_LIFCR_CHTIF3_Msk (0x1UL << DMA_LIFCR_CHTIF3_Pos) /*!< 0x04000000 */
  8320. #define DMA_LIFCR_CHTIF3 DMA_LIFCR_CHTIF3_Msk /*!< Stream 3 clear half transfer interrupt flag */
  8321. #define DMA_LIFCR_CTEIF3_Pos (25U)
  8322. #define DMA_LIFCR_CTEIF3_Msk (0x1UL << DMA_LIFCR_CTEIF3_Pos) /*!< 0x02000000 */
  8323. #define DMA_LIFCR_CTEIF3 DMA_LIFCR_CTEIF3_Msk /*!< Stream 3 clear transfer error interrupt flag */
  8324. #define DMA_LIFCR_CDMEIF3_Pos (24U)
  8325. #define DMA_LIFCR_CDMEIF3_Msk (0x1UL << DMA_LIFCR_CDMEIF3_Pos) /*!< 0x01000000 */
  8326. #define DMA_LIFCR_CDMEIF3 DMA_LIFCR_CDMEIF3_Msk /*!< Stream 3 clear direct mode error interrupt flag */
  8327. #define DMA_LIFCR_CFEIF3_Pos (22U)
  8328. #define DMA_LIFCR_CFEIF3_Msk (0x1UL << DMA_LIFCR_CFEIF3_Pos) /*!< 0x00400000 */
  8329. #define DMA_LIFCR_CFEIF3 DMA_LIFCR_CFEIF3_Msk /*!< Stream 3 clear FIFO error interrupt flag */
  8330. #define DMA_LIFCR_CTCIF2_Pos (21U)
  8331. #define DMA_LIFCR_CTCIF2_Msk (0x1UL << DMA_LIFCR_CTCIF2_Pos) /*!< 0x00200000 */
  8332. #define DMA_LIFCR_CTCIF2 DMA_LIFCR_CTCIF2_Msk /*!< Stream 2 clear transfer complete interrupt flag */
  8333. #define DMA_LIFCR_CHTIF2_Pos (20U)
  8334. #define DMA_LIFCR_CHTIF2_Msk (0x1UL << DMA_LIFCR_CHTIF2_Pos) /*!< 0x00100000 */
  8335. #define DMA_LIFCR_CHTIF2 DMA_LIFCR_CHTIF2_Msk /*!< Stream 2 clear half transfer interrupt flag */
  8336. #define DMA_LIFCR_CTEIF2_Pos (19U)
  8337. #define DMA_LIFCR_CTEIF2_Msk (0x1UL << DMA_LIFCR_CTEIF2_Pos) /*!< 0x00080000 */
  8338. #define DMA_LIFCR_CTEIF2 DMA_LIFCR_CTEIF2_Msk /*!< Stream 2 clear transfer error interrupt flag */
  8339. #define DMA_LIFCR_CDMEIF2_Pos (18U)
  8340. #define DMA_LIFCR_CDMEIF2_Msk (0x1UL << DMA_LIFCR_CDMEIF2_Pos) /*!< 0x00040000 */
  8341. #define DMA_LIFCR_CDMEIF2 DMA_LIFCR_CDMEIF2_Msk /*!< Stream 2 clear direct mode error interrupt flag */
  8342. #define DMA_LIFCR_CFEIF2_Pos (16U)
  8343. #define DMA_LIFCR_CFEIF2_Msk (0x1UL << DMA_LIFCR_CFEIF2_Pos) /*!< 0x00010000 */
  8344. #define DMA_LIFCR_CFEIF2 DMA_LIFCR_CFEIF2_Msk /*!< Stream 2 clear FIFO error interrupt flag */
  8345. #define DMA_LIFCR_CTCIF1_Pos (11U)
  8346. #define DMA_LIFCR_CTCIF1_Msk (0x1UL << DMA_LIFCR_CTCIF1_Pos) /*!< 0x00000800 */
  8347. #define DMA_LIFCR_CTCIF1 DMA_LIFCR_CTCIF1_Msk /*!< Stream 1 clear transfer complete interrupt flag */
  8348. #define DMA_LIFCR_CHTIF1_Pos (10U)
  8349. #define DMA_LIFCR_CHTIF1_Msk (0x1UL << DMA_LIFCR_CHTIF1_Pos) /*!< 0x00000400 */
  8350. #define DMA_LIFCR_CHTIF1 DMA_LIFCR_CHTIF1_Msk /*!< Stream 1 clear half transfer interrupt flag */
  8351. #define DMA_LIFCR_CTEIF1_Pos (9U)
  8352. #define DMA_LIFCR_CTEIF1_Msk (0x1UL << DMA_LIFCR_CTEIF1_Pos) /*!< 0x00000200 */
  8353. #define DMA_LIFCR_CTEIF1 DMA_LIFCR_CTEIF1_Msk /*!< Stream 1 clear transfer error interrupt flag */
  8354. #define DMA_LIFCR_CDMEIF1_Pos (8U)
  8355. #define DMA_LIFCR_CDMEIF1_Msk (0x1UL << DMA_LIFCR_CDMEIF1_Pos) /*!< 0x00000100 */
  8356. #define DMA_LIFCR_CDMEIF1 DMA_LIFCR_CDMEIF1_Msk /*!< Stream 1 clear direct mode error interrupt flag */
  8357. #define DMA_LIFCR_CFEIF1_Pos (6U)
  8358. #define DMA_LIFCR_CFEIF1_Msk (0x1UL << DMA_LIFCR_CFEIF1_Pos) /*!< 0x00000040 */
  8359. #define DMA_LIFCR_CFEIF1 DMA_LIFCR_CFEIF1_Msk /*!< Stream 1 clear FIFO error interrupt flag */
  8360. #define DMA_LIFCR_CTCIF0_Pos (5U)
  8361. #define DMA_LIFCR_CTCIF0_Msk (0x1UL << DMA_LIFCR_CTCIF0_Pos) /*!< 0x00000020 */
  8362. #define DMA_LIFCR_CTCIF0 DMA_LIFCR_CTCIF0_Msk /*!< Stream 0 clear transfer complete interrupt flag */
  8363. #define DMA_LIFCR_CHTIF0_Pos (4U)
  8364. #define DMA_LIFCR_CHTIF0_Msk (0x1UL << DMA_LIFCR_CHTIF0_Pos) /*!< 0x00000010 */
  8365. #define DMA_LIFCR_CHTIF0 DMA_LIFCR_CHTIF0_Msk /*!< Stream 0 clear half transfer interrupt flag */
  8366. #define DMA_LIFCR_CTEIF0_Pos (3U)
  8367. #define DMA_LIFCR_CTEIF0_Msk (0x1UL << DMA_LIFCR_CTEIF0_Pos) /*!< 0x00000008 */
  8368. #define DMA_LIFCR_CTEIF0 DMA_LIFCR_CTEIF0_Msk /*!< Stream 0 clear transfer error interrupt flag */
  8369. #define DMA_LIFCR_CDMEIF0_Pos (2U)
  8370. #define DMA_LIFCR_CDMEIF0_Msk (0x1UL << DMA_LIFCR_CDMEIF0_Pos) /*!< 0x00000004 */
  8371. #define DMA_LIFCR_CDMEIF0 DMA_LIFCR_CDMEIF0_Msk /*!< Stream 0 clear direct mode error interrupt flag */
  8372. #define DMA_LIFCR_CFEIF0_Pos (0U)
  8373. #define DMA_LIFCR_CFEIF0_Msk (0x1UL << DMA_LIFCR_CFEIF0_Pos) /*!< 0x00000001 */
  8374. #define DMA_LIFCR_CFEIF0 DMA_LIFCR_CFEIF0_Msk /*!< Stream 0 clear FIFO error interrupt flag */
  8375. /******************** Bits definition for DMA_HIFCR register ****************/
  8376. #define DMA_HIFCR_CTCIF7_Pos (27U)
  8377. #define DMA_HIFCR_CTCIF7_Msk (0x1UL << DMA_HIFCR_CTCIF7_Pos) /*!< 0x08000000 */
  8378. #define DMA_HIFCR_CTCIF7 DMA_HIFCR_CTCIF7_Msk /*!< Stream 7 clear transfer complete interrupt flag */
  8379. #define DMA_HIFCR_CHTIF7_Pos (26U)
  8380. #define DMA_HIFCR_CHTIF7_Msk (0x1UL << DMA_HIFCR_CHTIF7_Pos) /*!< 0x04000000 */
  8381. #define DMA_HIFCR_CHTIF7 DMA_HIFCR_CHTIF7_Msk /*!< Stream 7 clear half transfer interrupt flag */
  8382. #define DMA_HIFCR_CTEIF7_Pos (25U)
  8383. #define DMA_HIFCR_CTEIF7_Msk (0x1UL << DMA_HIFCR_CTEIF7_Pos) /*!< 0x02000000 */
  8384. #define DMA_HIFCR_CTEIF7 DMA_HIFCR_CTEIF7_Msk /*!< Stream 7 clear transfer error interrupt flag */
  8385. #define DMA_HIFCR_CDMEIF7_Pos (24U)
  8386. #define DMA_HIFCR_CDMEIF7_Msk (0x1UL << DMA_HIFCR_CDMEIF7_Pos) /*!< 0x01000000 */
  8387. #define DMA_HIFCR_CDMEIF7 DMA_HIFCR_CDMEIF7_Msk /*!< Stream 7 clear direct mode error interrupt flag */
  8388. #define DMA_HIFCR_CFEIF7_Pos (22U)
  8389. #define DMA_HIFCR_CFEIF7_Msk (0x1UL << DMA_HIFCR_CFEIF7_Pos) /*!< 0x00400000 */
  8390. #define DMA_HIFCR_CFEIF7 DMA_HIFCR_CFEIF7_Msk /*!< Stream 7 clear FIFO error interrupt flag */
  8391. #define DMA_HIFCR_CTCIF6_Pos (21U)
  8392. #define DMA_HIFCR_CTCIF6_Msk (0x1UL << DMA_HIFCR_CTCIF6_Pos) /*!< 0x00200000 */
  8393. #define DMA_HIFCR_CTCIF6 DMA_HIFCR_CTCIF6_Msk /*!< Stream 6 clear transfer complete interrupt flag */
  8394. #define DMA_HIFCR_CHTIF6_Pos (20U)
  8395. #define DMA_HIFCR_CHTIF6_Msk (0x1UL << DMA_HIFCR_CHTIF6_Pos) /*!< 0x00100000 */
  8396. #define DMA_HIFCR_CHTIF6 DMA_HIFCR_CHTIF6_Msk /*!< Stream 6 clear half transfer interrupt flag */
  8397. #define DMA_HIFCR_CTEIF6_Pos (19U)
  8398. #define DMA_HIFCR_CTEIF6_Msk (0x1UL << DMA_HIFCR_CTEIF6_Pos) /*!< 0x00080000 */
  8399. #define DMA_HIFCR_CTEIF6 DMA_HIFCR_CTEIF6_Msk /*!< Stream 6 clear transfer error interrupt flag */
  8400. #define DMA_HIFCR_CDMEIF6_Pos (18U)
  8401. #define DMA_HIFCR_CDMEIF6_Msk (0x1UL << DMA_HIFCR_CDMEIF6_Pos) /*!< 0x00040000 */
  8402. #define DMA_HIFCR_CDMEIF6 DMA_HIFCR_CDMEIF6_Msk /*!< Stream 6 clear direct mode error interrupt flag */
  8403. #define DMA_HIFCR_CFEIF6_Pos (16U)
  8404. #define DMA_HIFCR_CFEIF6_Msk (0x1UL << DMA_HIFCR_CFEIF6_Pos) /*!< 0x00010000 */
  8405. #define DMA_HIFCR_CFEIF6 DMA_HIFCR_CFEIF6_Msk /*!< Stream 6 clear FIFO error interrupt flag */
  8406. #define DMA_HIFCR_CTCIF5_Pos (11U)
  8407. #define DMA_HIFCR_CTCIF5_Msk (0x1UL << DMA_HIFCR_CTCIF5_Pos) /*!< 0x00000800 */
  8408. #define DMA_HIFCR_CTCIF5 DMA_HIFCR_CTCIF5_Msk /*!< Stream 5 clear transfer complete interrupt flag */
  8409. #define DMA_HIFCR_CHTIF5_Pos (10U)
  8410. #define DMA_HIFCR_CHTIF5_Msk (0x1UL << DMA_HIFCR_CHTIF5_Pos) /*!< 0x00000400 */
  8411. #define DMA_HIFCR_CHTIF5 DMA_HIFCR_CHTIF5_Msk /*!< Stream 5 clear half transfer interrupt flag */
  8412. #define DMA_HIFCR_CTEIF5_Pos (9U)
  8413. #define DMA_HIFCR_CTEIF5_Msk (0x1UL << DMA_HIFCR_CTEIF5_Pos) /*!< 0x00000200 */
  8414. #define DMA_HIFCR_CTEIF5 DMA_HIFCR_CTEIF5_Msk /*!< Stream 5 clear transfer error interrupt flag */
  8415. #define DMA_HIFCR_CDMEIF5_Pos (8U)
  8416. #define DMA_HIFCR_CDMEIF5_Msk (0x1UL << DMA_HIFCR_CDMEIF5_Pos) /*!< 0x00000100 */
  8417. #define DMA_HIFCR_CDMEIF5 DMA_HIFCR_CDMEIF5_Msk /*!< Stream 5 clear direct mode error interrupt flag */
  8418. #define DMA_HIFCR_CFEIF5_Pos (6U)
  8419. #define DMA_HIFCR_CFEIF5_Msk (0x1UL << DMA_HIFCR_CFEIF5_Pos) /*!< 0x00000040 */
  8420. #define DMA_HIFCR_CFEIF5 DMA_HIFCR_CFEIF5_Msk /*!< Stream 5 clear FIFO error interrupt flag */
  8421. #define DMA_HIFCR_CTCIF4_Pos (5U)
  8422. #define DMA_HIFCR_CTCIF4_Msk (0x1UL << DMA_HIFCR_CTCIF4_Pos) /*!< 0x00000020 */
  8423. #define DMA_HIFCR_CTCIF4 DMA_HIFCR_CTCIF4_Msk /*!< Stream 4 clear transfer complete interrupt flag */
  8424. #define DMA_HIFCR_CHTIF4_Pos (4U)
  8425. #define DMA_HIFCR_CHTIF4_Msk (0x1UL << DMA_HIFCR_CHTIF4_Pos) /*!< 0x00000010 */
  8426. #define DMA_HIFCR_CHTIF4 DMA_HIFCR_CHTIF4_Msk /*!< Stream 4 clear half transfer interrupt flag */
  8427. #define DMA_HIFCR_CTEIF4_Pos (3U)
  8428. #define DMA_HIFCR_CTEIF4_Msk (0x1UL << DMA_HIFCR_CTEIF4_Pos) /*!< 0x00000008 */
  8429. #define DMA_HIFCR_CTEIF4 DMA_HIFCR_CTEIF4_Msk /*!< Stream 4 clear transfer error interrupt flag */
  8430. #define DMA_HIFCR_CDMEIF4_Pos (2U)
  8431. #define DMA_HIFCR_CDMEIF4_Msk (0x1UL << DMA_HIFCR_CDMEIF4_Pos) /*!< 0x00000004 */
  8432. #define DMA_HIFCR_CDMEIF4 DMA_HIFCR_CDMEIF4_Msk /*!< Stream 4 clear direct mode error interrupt flag */
  8433. #define DMA_HIFCR_CFEIF4_Pos (0U)
  8434. #define DMA_HIFCR_CFEIF4_Msk (0x1UL << DMA_HIFCR_CFEIF4_Pos) /*!< 0x00000001 */
  8435. #define DMA_HIFCR_CFEIF4 DMA_HIFCR_CFEIF4_Msk /*!< Stream 4 clear FIFO error interrupt flag */
  8436. /****************** Bit definition for DMA_SxPAR register ********************/
  8437. #define DMA_SxPAR_PA_Pos (0U)
  8438. #define DMA_SxPAR_PA_Msk (0xFFFFFFFFUL << DMA_SxPAR_PA_Pos) /*!< 0xFFFFFFFF */
  8439. #define DMA_SxPAR_PA DMA_SxPAR_PA_Msk /*!< Peripheral Address */
  8440. /****************** Bit definition for DMA_SxM0AR register ********************/
  8441. #define DMA_SxM0AR_M0A_Pos (0U)
  8442. #define DMA_SxM0AR_M0A_Msk (0xFFFFFFFFUL << DMA_SxM0AR_M0A_Pos) /*!< 0xFFFFFFFF */
  8443. #define DMA_SxM0AR_M0A DMA_SxM0AR_M0A_Msk /*!< Memory 0 Address */
  8444. /****************** Bit definition for DMA_SxM1AR register ********************/
  8445. #define DMA_SxM1AR_M1A_Pos (0U)
  8446. #define DMA_SxM1AR_M1A_Msk (0xFFFFFFFFUL << DMA_SxM1AR_M1A_Pos) /*!< 0xFFFFFFFF */
  8447. #define DMA_SxM1AR_M1A DMA_SxM1AR_M1A_Msk /*!< Memory 1 Address */
  8448. /******************************************************************************/
  8449. /* */
  8450. /* DMAMUX Controller */
  8451. /* */
  8452. /******************************************************************************/
  8453. /******************** Bits definition for DMAMUX_CxCR register **************/
  8454. #define DMAMUX_CxCR_DMAREQ_ID_Pos (0U)
  8455. #define DMAMUX_CxCR_DMAREQ_ID_Msk (0xFFUL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x000000FF */
  8456. #define DMAMUX_CxCR_DMAREQ_ID DMAMUX_CxCR_DMAREQ_ID_Msk /*!< DMA request identification */
  8457. #define DMAMUX_CxCR_DMAREQ_ID_0 (0x01UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000001 */
  8458. #define DMAMUX_CxCR_DMAREQ_ID_1 (0x02UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000002 */
  8459. #define DMAMUX_CxCR_DMAREQ_ID_2 (0x04UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000004 */
  8460. #define DMAMUX_CxCR_DMAREQ_ID_3 (0x08UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000008 */
  8461. #define DMAMUX_CxCR_DMAREQ_ID_4 (0x10UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000010 */
  8462. #define DMAMUX_CxCR_DMAREQ_ID_5 (0x20UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000020 */
  8463. #define DMAMUX_CxCR_DMAREQ_ID_6 (0x40UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000040 */
  8464. #define DMAMUX_CxCR_DMAREQ_ID_7 (0x80UL << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000080 */
  8465. #define DMAMUX_CxCR_SOIE_Pos (8U)
  8466. #define DMAMUX_CxCR_SOIE_Msk (0x1UL << DMAMUX_CxCR_SOIE_Pos) /*!< 0x00000100 */
  8467. #define DMAMUX_CxCR_SOIE DMAMUX_CxCR_SOIE_Msk /*!< Synchronization overrun interrupt enable */
  8468. #define DMAMUX_CxCR_EGE_Pos (9U)
  8469. #define DMAMUX_CxCR_EGE_Msk (0x1UL << DMAMUX_CxCR_EGE_Pos) /*!< 0x00000200 */
  8470. #define DMAMUX_CxCR_EGE DMAMUX_CxCR_EGE_Msk /*!< Event generation enable */
  8471. #define DMAMUX_CxCR_SE_Pos (16U)
  8472. #define DMAMUX_CxCR_SE_Msk (0x1UL << DMAMUX_CxCR_SE_Pos) /*!< 0x00010000 */
  8473. #define DMAMUX_CxCR_SE DMAMUX_CxCR_SE_Msk /*!< Synchronization enable */
  8474. #define DMAMUX_CxCR_SPOL_Pos (17U)
  8475. #define DMAMUX_CxCR_SPOL_Msk (0x3UL << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00060000 */
  8476. #define DMAMUX_CxCR_SPOL DMAMUX_CxCR_SPOL_Msk /*!< Synchronization polarity */
  8477. #define DMAMUX_CxCR_SPOL_0 (0x1UL << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00020000 */
  8478. #define DMAMUX_CxCR_SPOL_1 (0x2UL << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00040000 */
  8479. #define DMAMUX_CxCR_NBREQ_Pos (19U)
  8480. #define DMAMUX_CxCR_NBREQ_Msk (0x1FUL << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00F80000 */
  8481. #define DMAMUX_CxCR_NBREQ DMAMUX_CxCR_NBREQ_Msk /*!< Number of DMA requests minus 1 to forward */
  8482. #define DMAMUX_CxCR_NBREQ_0 (0x01UL << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00080000 */
  8483. #define DMAMUX_CxCR_NBREQ_1 (0x02UL << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00100000 */
  8484. #define DMAMUX_CxCR_NBREQ_2 (0x04UL << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00200000 */
  8485. #define DMAMUX_CxCR_NBREQ_3 (0x08UL << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00400000 */
  8486. #define DMAMUX_CxCR_NBREQ_4 (0x10UL << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00800000 */
  8487. #define DMAMUX_CxCR_SYNC_ID_Pos (24U)
  8488. #define DMAMUX_CxCR_SYNC_ID_Msk (0x1FUL << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x1F000000 */
  8489. #define DMAMUX_CxCR_SYNC_ID DMAMUX_CxCR_SYNC_ID_Msk /*!< Synchronization identification */
  8490. #define DMAMUX_CxCR_SYNC_ID_0 (0x01UL << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x01000000 */
  8491. #define DMAMUX_CxCR_SYNC_ID_1 (0x02UL << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x02000000 */
  8492. #define DMAMUX_CxCR_SYNC_ID_2 (0x04UL << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x04000000 */
  8493. #define DMAMUX_CxCR_SYNC_ID_3 (0x08UL << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x08000000 */
  8494. #define DMAMUX_CxCR_SYNC_ID_4 (0x10UL << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x10000000 */
  8495. /******************** Bits definition for DMAMUX_CSR register **************/
  8496. #define DMAMUX_CSR_SOF0_Pos (0U)
  8497. #define DMAMUX_CSR_SOF0_Msk (0x1UL << DMAMUX_CSR_SOF0_Pos) /*!< 0x00000001 */
  8498. #define DMAMUX_CSR_SOF0 DMAMUX_CSR_SOF0_Msk /*!< Channel 0 Synchronization overrun event flag */
  8499. #define DMAMUX_CSR_SOF1_Pos (1U)
  8500. #define DMAMUX_CSR_SOF1_Msk (0x1UL << DMAMUX_CSR_SOF1_Pos) /*!< 0x00000002 */
  8501. #define DMAMUX_CSR_SOF1 DMAMUX_CSR_SOF1_Msk /*!< Channel 1 Synchronization overrun event flag */
  8502. #define DMAMUX_CSR_SOF2_Pos (2U)
  8503. #define DMAMUX_CSR_SOF2_Msk (0x1UL << DMAMUX_CSR_SOF2_Pos) /*!< 0x00000004 */
  8504. #define DMAMUX_CSR_SOF2 DMAMUX_CSR_SOF2_Msk /*!< Channel 2 Synchronization overrun event flag */
  8505. #define DMAMUX_CSR_SOF3_Pos (3U)
  8506. #define DMAMUX_CSR_SOF3_Msk (0x1UL << DMAMUX_CSR_SOF3_Pos) /*!< 0x00000008 */
  8507. #define DMAMUX_CSR_SOF3 DMAMUX_CSR_SOF3_Msk /*!< Channel 3 Synchronization overrun event flag */
  8508. #define DMAMUX_CSR_SOF4_Pos (4U)
  8509. #define DMAMUX_CSR_SOF4_Msk (0x1UL << DMAMUX_CSR_SOF4_Pos) /*!< 0x00000010 */
  8510. #define DMAMUX_CSR_SOF4 DMAMUX_CSR_SOF4_Msk /*!< Channel 4 Synchronization overrun event flag */
  8511. #define DMAMUX_CSR_SOF5_Pos (5U)
  8512. #define DMAMUX_CSR_SOF5_Msk (0x1UL << DMAMUX_CSR_SOF5_Pos) /*!< 0x00000020 */
  8513. #define DMAMUX_CSR_SOF5 DMAMUX_CSR_SOF5_Msk /*!< Channel 5 Synchronization overrun event flag */
  8514. #define DMAMUX_CSR_SOF6_Pos (6U)
  8515. #define DMAMUX_CSR_SOF6_Msk (0x1UL << DMAMUX_CSR_SOF6_Pos) /*!< 0x00000040 */
  8516. #define DMAMUX_CSR_SOF6 DMAMUX_CSR_SOF6_Msk /*!< Channel 6 Synchronization overrun event flag */
  8517. #define DMAMUX_CSR_SOF7_Pos (7U)
  8518. #define DMAMUX_CSR_SOF7_Msk (0x1UL << DMAMUX_CSR_SOF7_Pos) /*!< 0x00000080 */
  8519. #define DMAMUX_CSR_SOF7 DMAMUX_CSR_SOF7_Msk /*!< Channel 7 Synchronization overrun event flag */
  8520. #define DMAMUX_CSR_SOF8_Pos (8U)
  8521. #define DMAMUX_CSR_SOF8_Msk (0x1UL << DMAMUX_CSR_SOF8_Pos) /*!< 0x00000100 */
  8522. #define DMAMUX_CSR_SOF8 DMAMUX_CSR_SOF8_Msk /*!< Channel 8 Synchronization overrun event flag */
  8523. #define DMAMUX_CSR_SOF9_Pos (9U)
  8524. #define DMAMUX_CSR_SOF9_Msk (0x1UL << DMAMUX_CSR_SOF9_Pos) /*!< 0x00000200 */
  8525. #define DMAMUX_CSR_SOF9 DMAMUX_CSR_SOF9_Msk /*!< Channel 9 Synchronization overrun event flag */
  8526. #define DMAMUX_CSR_SOF10_Pos (10U)
  8527. #define DMAMUX_CSR_SOF10_Msk (0x1UL << DMAMUX_CSR_SOF10_Pos) /*!< 0x00000400 */
  8528. #define DMAMUX_CSR_SOF10 DMAMUX_CSR_SOF10_Msk /*!< Channel 10 Synchronization overrun event flag */
  8529. #define DMAMUX_CSR_SOF11_Pos (11U)
  8530. #define DMAMUX_CSR_SOF11_Msk (0x1UL << DMAMUX_CSR_SOF11_Pos) /*!< 0x00000800 */
  8531. #define DMAMUX_CSR_SOF11 DMAMUX_CSR_SOF11_Msk /*!< Channel 11 Synchronization overrun event flag */
  8532. #define DMAMUX_CSR_SOF12_Pos (12U)
  8533. #define DMAMUX_CSR_SOF12_Msk (0x1UL << DMAMUX_CSR_SOF12_Pos) /*!< 0x00001000 */
  8534. #define DMAMUX_CSR_SOF12 DMAMUX_CSR_SOF12_Msk /*!< Channel 12 Synchronization overrun event flag */
  8535. #define DMAMUX_CSR_SOF13_Pos (13U)
  8536. #define DMAMUX_CSR_SOF13_Msk (0x1UL << DMAMUX_CSR_SOF13_Pos) /*!< 0x00002000 */
  8537. #define DMAMUX_CSR_SOF13 DMAMUX_CSR_SOF13_Msk /*!< Channel 13 Synchronization overrun event flag */
  8538. #define DMAMUX_CSR_SOF14_Pos (14U)
  8539. #define DMAMUX_CSR_SOF14_Msk (0x1UL << DMAMUX_CSR_SOF14_Pos) /*!< 0x00004000 */
  8540. #define DMAMUX_CSR_SOF14 DMAMUX_CSR_SOF14_Msk /*!< Channel 14 Synchronization overrun event flag */
  8541. #define DMAMUX_CSR_SOF15_Pos (15U)
  8542. #define DMAMUX_CSR_SOF15_Msk (0x1UL << DMAMUX_CSR_SOF15_Pos) /*!< 0x00008000 */
  8543. #define DMAMUX_CSR_SOF15 DMAMUX_CSR_SOF15_Msk /*!< Channel 15 Synchronization overrun event flag */
  8544. /******************** Bits definition for DMAMUX_CFR register **************/
  8545. #define DMAMUX_CFR_CSOF0_Pos (0U)
  8546. #define DMAMUX_CFR_CSOF0_Msk (0x1UL << DMAMUX_CFR_CSOF0_Pos) /*!< 0x00000001 */
  8547. #define DMAMUX_CFR_CSOF0 DMAMUX_CFR_CSOF0_Msk /*!< Channel 0 Clear synchronization overrun event flag */
  8548. #define DMAMUX_CFR_CSOF1_Pos (1U)
  8549. #define DMAMUX_CFR_CSOF1_Msk (0x1UL << DMAMUX_CFR_CSOF1_Pos) /*!< 0x00000002 */
  8550. #define DMAMUX_CFR_CSOF1 DMAMUX_CFR_CSOF1_Msk /*!< Channel 1 Clear synchronization overrun event flag */
  8551. #define DMAMUX_CFR_CSOF2_Pos (2U)
  8552. #define DMAMUX_CFR_CSOF2_Msk (0x1UL << DMAMUX_CFR_CSOF2_Pos) /*!< 0x00000004 */
  8553. #define DMAMUX_CFR_CSOF2 DMAMUX_CFR_CSOF2_Msk /*!< Channel 2 Clear synchronization overrun event flag */
  8554. #define DMAMUX_CFR_CSOF3_Pos (3U)
  8555. #define DMAMUX_CFR_CSOF3_Msk (0x1UL << DMAMUX_CFR_CSOF3_Pos) /*!< 0x00000008 */
  8556. #define DMAMUX_CFR_CSOF3 DMAMUX_CFR_CSOF3_Msk /*!< Channel 3 Clear synchronization overrun event flag */
  8557. #define DMAMUX_CFR_CSOF4_Pos (4U)
  8558. #define DMAMUX_CFR_CSOF4_Msk (0x1UL << DMAMUX_CFR_CSOF4_Pos) /*!< 0x00000010 */
  8559. #define DMAMUX_CFR_CSOF4 DMAMUX_CFR_CSOF4_Msk /*!< Channel 4 Clear synchronization overrun event flag */
  8560. #define DMAMUX_CFR_CSOF5_Pos (5U)
  8561. #define DMAMUX_CFR_CSOF5_Msk (0x1UL << DMAMUX_CFR_CSOF5_Pos) /*!< 0x00000020 */
  8562. #define DMAMUX_CFR_CSOF5 DMAMUX_CFR_CSOF5_Msk /*!< Channel 5 Clear synchronization overrun event flag */
  8563. #define DMAMUX_CFR_CSOF6_Pos (6U)
  8564. #define DMAMUX_CFR_CSOF6_Msk (0x1UL << DMAMUX_CFR_CSOF6_Pos) /*!< 0x00000040 */
  8565. #define DMAMUX_CFR_CSOF6 DMAMUX_CFR_CSOF6_Msk /*!< Channel 6 Clear synchronization overrun event flag */
  8566. #define DMAMUX_CFR_CSOF7_Pos (7U)
  8567. #define DMAMUX_CFR_CSOF7_Msk (0x1UL << DMAMUX_CFR_CSOF7_Pos) /*!< 0x00000080 */
  8568. #define DMAMUX_CFR_CSOF7 DMAMUX_CFR_CSOF7_Msk /*!< Channel 7 Clear synchronization overrun event flag */
  8569. #define DMAMUX_CFR_CSOF8_Pos (8U)
  8570. #define DMAMUX_CFR_CSOF8_Msk (0x1UL << DMAMUX_CFR_CSOF8_Pos) /*!< 0x00000100 */
  8571. #define DMAMUX_CFR_CSOF8 DMAMUX_CFR_CSOF8_Msk /*!< Channel 8 Clear synchronization overrun event flag */
  8572. #define DMAMUX_CFR_CSOF9_Pos (9U)
  8573. #define DMAMUX_CFR_CSOF9_Msk (0x1UL << DMAMUX_CFR_CSOF9_Pos) /*!< 0x00000200 */
  8574. #define DMAMUX_CFR_CSOF9 DMAMUX_CFR_CSOF9_Msk /*!< Channel 9 Clear synchronization overrun event flag */
  8575. #define DMAMUX_CFR_CSOF10_Pos (10U)
  8576. #define DMAMUX_CFR_CSOF10_Msk (0x1UL << DMAMUX_CFR_CSOF10_Pos) /*!< 0x00000400 */
  8577. #define DMAMUX_CFR_CSOF10 DMAMUX_CFR_CSOF10_Msk /*!< Channel 10 Clear synchronization overrun event flag */
  8578. #define DMAMUX_CFR_CSOF11_Pos (11U)
  8579. #define DMAMUX_CFR_CSOF11_Msk (0x1UL << DMAMUX_CFR_CSOF11_Pos) /*!< 0x00000800 */
  8580. #define DMAMUX_CFR_CSOF11 DMAMUX_CFR_CSOF11_Msk /*!< Channel 11 Clear synchronization overrun event flag */
  8581. #define DMAMUX_CFR_CSOF12_Pos (12U)
  8582. #define DMAMUX_CFR_CSOF12_Msk (0x1UL << DMAMUX_CFR_CSOF12_Pos) /*!< 0x00001000 */
  8583. #define DMAMUX_CFR_CSOF12 DMAMUX_CFR_CSOF12_Msk /*!< Channel 12 Clear synchronization overrun event flag */
  8584. #define DMAMUX_CFR_CSOF13_Pos (13U)
  8585. #define DMAMUX_CFR_CSOF13_Msk (0x1UL << DMAMUX_CFR_CSOF13_Pos) /*!< 0x00002000 */
  8586. #define DMAMUX_CFR_CSOF13 DMAMUX_CFR_CSOF13_Msk /*!< Channel 13 Clear synchronization overrun event flag */
  8587. #define DMAMUX_CFR_CSOF14_Pos (14U)
  8588. #define DMAMUX_CFR_CSOF14_Msk (0x1UL << DMAMUX_CFR_CSOF14_Pos) /*!< 0x00004000 */
  8589. #define DMAMUX_CFR_CSOF14 DMAMUX_CFR_CSOF14_Msk /*!< Channel 14 Clear synchronization overrun event flag */
  8590. #define DMAMUX_CFR_CSOF15_Pos (15U)
  8591. #define DMAMUX_CFR_CSOF15_Msk (0x1UL << DMAMUX_CFR_CSOF15_Pos) /*!< 0x00008000 */
  8592. #define DMAMUX_CFR_CSOF15 DMAMUX_CFR_CSOF15_Msk /*!< Channel 15 Clear synchronization overrun event flag */
  8593. /******************** Bits definition for DMAMUX_RGxCR register ************/
  8594. #define DMAMUX_RGxCR_SIG_ID_Pos (0U)
  8595. #define DMAMUX_RGxCR_SIG_ID_Msk (0x1FUL << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x0000001F */
  8596. #define DMAMUX_RGxCR_SIG_ID DMAMUX_RGxCR_SIG_ID_Msk /*!< Signal identification */
  8597. #define DMAMUX_RGxCR_SIG_ID_0 (0x01UL << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000001 */
  8598. #define DMAMUX_RGxCR_SIG_ID_1 (0x02UL << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000002 */
  8599. #define DMAMUX_RGxCR_SIG_ID_2 (0x04UL << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000004 */
  8600. #define DMAMUX_RGxCR_SIG_ID_3 (0x08UL << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000008 */
  8601. #define DMAMUX_RGxCR_SIG_ID_4 (0x10UL << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000010 */
  8602. #define DMAMUX_RGxCR_OIE_Pos (8U)
  8603. #define DMAMUX_RGxCR_OIE_Msk (0x1UL << DMAMUX_RGxCR_OIE_Pos) /*!< 0x00000100 */
  8604. #define DMAMUX_RGxCR_OIE DMAMUX_RGxCR_OIE_Msk /*!< Trigger overrun interrupt enable */
  8605. #define DMAMUX_RGxCR_GE_Pos (16U)
  8606. #define DMAMUX_RGxCR_GE_Msk (0x1UL << DMAMUX_RGxCR_GE_Pos) /*!< 0x00010000 */
  8607. #define DMAMUX_RGxCR_GE DMAMUX_RGxCR_GE_Msk /*!< DMA request generator enable */
  8608. #define DMAMUX_RGxCR_GPOL_Pos (17U)
  8609. #define DMAMUX_RGxCR_GPOL_Msk (0x3UL << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00060000 */
  8610. #define DMAMUX_RGxCR_GPOL DMAMUX_RGxCR_GPOL_Msk /*!< DMA request generator trigger polarity */
  8611. #define DMAMUX_RGxCR_GPOL_0 (0x1UL << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00020000 */
  8612. #define DMAMUX_RGxCR_GPOL_1 (0x2UL << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00040000 */
  8613. #define DMAMUX_RGxCR_GNBREQ_Pos (19U)
  8614. #define DMAMUX_RGxCR_GNBREQ_Msk (0x1FUL << DMAMUX_RGxCR_GNBREQ_Pos) /*!< 0x00F80000 */
  8615. #define DMAMUX_RGxCR_GNBREQ DMAMUX_RGxCR_GNBREQ_Msk /*!< Number of DMA requests to be generated */
  8616. #define DMAMUX_RGxCR_GNBREQ_0 (0x01UL << DMAMUX_RGxCR_GNBREQ_Pos) /*!< 0x00080000 */
  8617. #define DMAMUX_RGxCR_GNBREQ_1 (0x02UL << DMAMUX_RGxCR_GNBREQ_Pos) /*!< 0x00100000 */
  8618. #define DMAMUX_RGxCR_GNBREQ_2 (0x04UL << DMAMUX_RGxCR_GNBREQ_Pos) /*!< 0x00200000 */
  8619. #define DMAMUX_RGxCR_GNBREQ_3 (0x08UL << DMAMUX_RGxCR_GNBREQ_Pos) /*!< 0x00400000 */
  8620. #define DMAMUX_RGxCR_GNBREQ_4 (0x10UL << DMAMUX_RGxCR_GNBREQ_Pos) /*!< 0x00800000 */
  8621. /******************** Bits definition for DMAMUX_RGSR register **************/
  8622. #define DMAMUX_RGSR_OF0_Pos (0U)
  8623. #define DMAMUX_RGSR_OF0_Msk (0x1UL << DMAMUX_RGSR_OF0_Pos) /*!< 0x00000001 */
  8624. #define DMAMUX_RGSR_OF0 DMAMUX_RGSR_OF0_Msk /*!< Request generator channel 0 Trigger overrun event flag */
  8625. #define DMAMUX_RGSR_OF1_Pos (1U)
  8626. #define DMAMUX_RGSR_OF1_Msk (0x1UL << DMAMUX_RGSR_OF1_Pos) /*!< 0x00000002 */
  8627. #define DMAMUX_RGSR_OF1 DMAMUX_RGSR_OF1_Msk /*!< Request generator channel 1 Trigger overrun event flag */
  8628. #define DMAMUX_RGSR_OF2_Pos (2U)
  8629. #define DMAMUX_RGSR_OF2_Msk (0x1UL << DMAMUX_RGSR_OF2_Pos) /*!< 0x00000004 */
  8630. #define DMAMUX_RGSR_OF2 DMAMUX_RGSR_OF2_Msk /*!< Request generator channel 2 Trigger overrun event flag */
  8631. #define DMAMUX_RGSR_OF3_Pos (3U)
  8632. #define DMAMUX_RGSR_OF3_Msk (0x1UL << DMAMUX_RGSR_OF3_Pos) /*!< 0x00000008 */
  8633. #define DMAMUX_RGSR_OF3 DMAMUX_RGSR_OF3_Msk /*!< Request generator channel 3 Trigger overrun event flag */
  8634. #define DMAMUX_RGSR_OF4_Pos (4U)
  8635. #define DMAMUX_RGSR_OF4_Msk (0x1UL << DMAMUX_RGSR_OF4_Pos) /*!< 0x00000010 */
  8636. #define DMAMUX_RGSR_OF4 DMAMUX_RGSR_OF4_Msk /*!< Request generator channel 4 Trigger overrun event flag */
  8637. #define DMAMUX_RGSR_OF5_Pos (5U)
  8638. #define DMAMUX_RGSR_OF5_Msk (0x1UL << DMAMUX_RGSR_OF5_Pos) /*!< 0x00000020 */
  8639. #define DMAMUX_RGSR_OF5 DMAMUX_RGSR_OF5_Msk /*!< Request generator channel 5 Trigger overrun event flag */
  8640. #define DMAMUX_RGSR_OF6_Pos (6U)
  8641. #define DMAMUX_RGSR_OF6_Msk (0x1UL << DMAMUX_RGSR_OF6_Pos) /*!< 0x00000040 */
  8642. #define DMAMUX_RGSR_OF6 DMAMUX_RGSR_OF6_Msk /*!< Request generator channel 6 Trigger overrun event flag */
  8643. #define DMAMUX_RGSR_OF7_Pos (7U)
  8644. #define DMAMUX_RGSR_OF7_Msk (0x1UL << DMAMUX_RGSR_OF7_Pos) /*!< 0x00000080 */
  8645. #define DMAMUX_RGSR_OF7 DMAMUX_RGSR_OF7_Msk /*!< Request generator channel 7 Trigger overrun event flag */
  8646. /******************** Bits definition for DMAMUX_RGCFR register **************/
  8647. #define DMAMUX_RGCFR_COF0_Pos (0U)
  8648. #define DMAMUX_RGCFR_COF0_Msk (0x1UL << DMAMUX_RGCFR_COF0_Pos) /*!< 0x00000001 */
  8649. #define DMAMUX_RGCFR_COF0 DMAMUX_RGCFR_COF0_Msk /*!< Request generator channel 0 Clear trigger overrun event flag */
  8650. #define DMAMUX_RGCFR_COF1_Pos (1U)
  8651. #define DMAMUX_RGCFR_COF1_Msk (0x1UL << DMAMUX_RGCFR_COF1_Pos) /*!< 0x00000002 */
  8652. #define DMAMUX_RGCFR_COF1 DMAMUX_RGCFR_COF1_Msk /*!< Request generator channel 1 Clear trigger overrun event flag */
  8653. #define DMAMUX_RGCFR_COF2_Pos (2U)
  8654. #define DMAMUX_RGCFR_COF2_Msk (0x1UL << DMAMUX_RGCFR_COF2_Pos) /*!< 0x00000004 */
  8655. #define DMAMUX_RGCFR_COF2 DMAMUX_RGCFR_COF2_Msk /*!< Request generator channel 2 Clear trigger overrun event flag */
  8656. #define DMAMUX_RGCFR_COF3_Pos (3U)
  8657. #define DMAMUX_RGCFR_COF3_Msk (0x1UL << DMAMUX_RGCFR_COF3_Pos) /*!< 0x00000008 */
  8658. #define DMAMUX_RGCFR_COF3 DMAMUX_RGCFR_COF3_Msk /*!< Request generator channel 3 Clear trigger overrun event flag */
  8659. #define DMAMUX_RGCFR_COF4_Pos (4U)
  8660. #define DMAMUX_RGCFR_COF4_Msk (0x1UL << DMAMUX_RGCFR_COF4_Pos) /*!< 0x00000010 */
  8661. #define DMAMUX_RGCFR_COF4 DMAMUX_RGCFR_COF4_Msk /*!< Request generator channel 4 Clear trigger overrun event flag */
  8662. #define DMAMUX_RGCFR_COF5_Pos (5U)
  8663. #define DMAMUX_RGCFR_COF5_Msk (0x1UL << DMAMUX_RGCFR_COF5_Pos) /*!< 0x00000020 */
  8664. #define DMAMUX_RGCFR_COF5 DMAMUX_RGCFR_COF5_Msk /*!< Request generator channel 5 Clear trigger overrun event flag */
  8665. #define DMAMUX_RGCFR_COF6_Pos (6U)
  8666. #define DMAMUX_RGCFR_COF6_Msk (0x1UL << DMAMUX_RGCFR_COF6_Pos) /*!< 0x00000040 */
  8667. #define DMAMUX_RGCFR_COF6 DMAMUX_RGCFR_COF6_Msk /*!< Request generator channel 6 Clear trigger overrun event flag */
  8668. #define DMAMUX_RGCFR_COF7_Pos (7U)
  8669. #define DMAMUX_RGCFR_COF7_Msk (0x1UL << DMAMUX_RGCFR_COF7_Pos) /*!< 0x00000080 */
  8670. #define DMAMUX_RGCFR_COF7 DMAMUX_RGCFR_COF7_Msk /*!< Request generator channel 7 Clear trigger overrun event flag */
  8671. /******************************************************************************/
  8672. /* */
  8673. /* AHB Master DMA2D Controller (DMA2D) */
  8674. /* */
  8675. /******************************************************************************/
  8676. /******************** Bit definition for DMA2D_CR register ******************/
  8677. #define DMA2D_CR_START_Pos (0U)
  8678. #define DMA2D_CR_START_Msk (0x1UL << DMA2D_CR_START_Pos) /*!< 0x00000001 */
  8679. #define DMA2D_CR_START DMA2D_CR_START_Msk /*!< Start transfer */
  8680. #define DMA2D_CR_SUSP_Pos (1U)
  8681. #define DMA2D_CR_SUSP_Msk (0x1UL << DMA2D_CR_SUSP_Pos) /*!< 0x00000002 */
  8682. #define DMA2D_CR_SUSP DMA2D_CR_SUSP_Msk /*!< Suspend transfer */
  8683. #define DMA2D_CR_ABORT_Pos (2U)
  8684. #define DMA2D_CR_ABORT_Msk (0x1UL << DMA2D_CR_ABORT_Pos) /*!< 0x00000004 */
  8685. #define DMA2D_CR_ABORT DMA2D_CR_ABORT_Msk /*!< Abort transfer */
  8686. #define DMA2D_CR_LOM_Pos (6U)
  8687. #define DMA2D_CR_LOM_Msk (0x1UL << DMA2D_CR_LOM_Pos) /*!< 0x00000040 */
  8688. #define DMA2D_CR_LOM DMA2D_CR_LOM_Msk /*!< Line Offset Mode */
  8689. #define DMA2D_CR_TEIE_Pos (8U)
  8690. #define DMA2D_CR_TEIE_Msk (0x1UL << DMA2D_CR_TEIE_Pos) /*!< 0x00000100 */
  8691. #define DMA2D_CR_TEIE DMA2D_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  8692. #define DMA2D_CR_TCIE_Pos (9U)
  8693. #define DMA2D_CR_TCIE_Msk (0x1UL << DMA2D_CR_TCIE_Pos) /*!< 0x00000200 */
  8694. #define DMA2D_CR_TCIE DMA2D_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  8695. #define DMA2D_CR_TWIE_Pos (10U)
  8696. #define DMA2D_CR_TWIE_Msk (0x1UL << DMA2D_CR_TWIE_Pos) /*!< 0x00000400 */
  8697. #define DMA2D_CR_TWIE DMA2D_CR_TWIE_Msk /*!< Transfer Watermark Interrupt Enable */
  8698. #define DMA2D_CR_CAEIE_Pos (11U)
  8699. #define DMA2D_CR_CAEIE_Msk (0x1UL << DMA2D_CR_CAEIE_Pos) /*!< 0x00000800 */
  8700. #define DMA2D_CR_CAEIE DMA2D_CR_CAEIE_Msk /*!< CLUT Access Error Interrupt Enable */
  8701. #define DMA2D_CR_CTCIE_Pos (12U)
  8702. #define DMA2D_CR_CTCIE_Msk (0x1UL << DMA2D_CR_CTCIE_Pos) /*!< 0x00001000 */
  8703. #define DMA2D_CR_CTCIE DMA2D_CR_CTCIE_Msk /*!< CLUT Transfer Complete Interrupt Enable */
  8704. #define DMA2D_CR_CEIE_Pos (13U)
  8705. #define DMA2D_CR_CEIE_Msk (0x1UL << DMA2D_CR_CEIE_Pos) /*!< 0x00002000 */
  8706. #define DMA2D_CR_CEIE DMA2D_CR_CEIE_Msk /*!< Configuration Error Interrupt Enable */
  8707. #define DMA2D_CR_MODE_Pos (16U)
  8708. #define DMA2D_CR_MODE_Msk (0x7UL << DMA2D_CR_MODE_Pos) /*!< 0x00070000 */
  8709. #define DMA2D_CR_MODE DMA2D_CR_MODE_Msk /*!< DMA2D Mode[2:0] */
  8710. #define DMA2D_CR_MODE_0 (0x1UL << DMA2D_CR_MODE_Pos) /*!< 0x00010000 */
  8711. #define DMA2D_CR_MODE_1 (0x2UL << DMA2D_CR_MODE_Pos) /*!< 0x00020000 */
  8712. #define DMA2D_CR_MODE_2 (0x4UL << DMA2D_CR_MODE_Pos) /*!< 0x00040000 */
  8713. /******************** Bit definition for DMA2D_ISR register *****************/
  8714. #define DMA2D_ISR_TEIF_Pos (0U)
  8715. #define DMA2D_ISR_TEIF_Msk (0x1UL << DMA2D_ISR_TEIF_Pos) /*!< 0x00000001 */
  8716. #define DMA2D_ISR_TEIF DMA2D_ISR_TEIF_Msk /*!< Transfer Error Interrupt Flag */
  8717. #define DMA2D_ISR_TCIF_Pos (1U)
  8718. #define DMA2D_ISR_TCIF_Msk (0x1UL << DMA2D_ISR_TCIF_Pos) /*!< 0x00000002 */
  8719. #define DMA2D_ISR_TCIF DMA2D_ISR_TCIF_Msk /*!< Transfer Complete Interrupt Flag */
  8720. #define DMA2D_ISR_TWIF_Pos (2U)
  8721. #define DMA2D_ISR_TWIF_Msk (0x1UL << DMA2D_ISR_TWIF_Pos) /*!< 0x00000004 */
  8722. #define DMA2D_ISR_TWIF DMA2D_ISR_TWIF_Msk /*!< Transfer Watermark Interrupt Flag */
  8723. #define DMA2D_ISR_CAEIF_Pos (3U)
  8724. #define DMA2D_ISR_CAEIF_Msk (0x1UL << DMA2D_ISR_CAEIF_Pos) /*!< 0x00000008 */
  8725. #define DMA2D_ISR_CAEIF DMA2D_ISR_CAEIF_Msk /*!< CLUT Access Error Interrupt Flag */
  8726. #define DMA2D_ISR_CTCIF_Pos (4U)
  8727. #define DMA2D_ISR_CTCIF_Msk (0x1UL << DMA2D_ISR_CTCIF_Pos) /*!< 0x00000010 */
  8728. #define DMA2D_ISR_CTCIF DMA2D_ISR_CTCIF_Msk /*!< CLUT Transfer Complete Interrupt Flag */
  8729. #define DMA2D_ISR_CEIF_Pos (5U)
  8730. #define DMA2D_ISR_CEIF_Msk (0x1UL << DMA2D_ISR_CEIF_Pos) /*!< 0x00000020 */
  8731. #define DMA2D_ISR_CEIF DMA2D_ISR_CEIF_Msk /*!< Configuration Error Interrupt Flag */
  8732. /******************** Bit definition for DMA2D_IFCR register ****************/
  8733. #define DMA2D_IFCR_CTEIF_Pos (0U)
  8734. #define DMA2D_IFCR_CTEIF_Msk (0x1UL << DMA2D_IFCR_CTEIF_Pos) /*!< 0x00000001 */
  8735. #define DMA2D_IFCR_CTEIF DMA2D_IFCR_CTEIF_Msk /*!< Clears Transfer Error Interrupt Flag */
  8736. #define DMA2D_IFCR_CTCIF_Pos (1U)
  8737. #define DMA2D_IFCR_CTCIF_Msk (0x1UL << DMA2D_IFCR_CTCIF_Pos) /*!< 0x00000002 */
  8738. #define DMA2D_IFCR_CTCIF DMA2D_IFCR_CTCIF_Msk /*!< Clears Transfer Complete Interrupt Flag */
  8739. #define DMA2D_IFCR_CTWIF_Pos (2U)
  8740. #define DMA2D_IFCR_CTWIF_Msk (0x1UL << DMA2D_IFCR_CTWIF_Pos) /*!< 0x00000004 */
  8741. #define DMA2D_IFCR_CTWIF DMA2D_IFCR_CTWIF_Msk /*!< Clears Transfer Watermark Interrupt Flag */
  8742. #define DMA2D_IFCR_CAECIF_Pos (3U)
  8743. #define DMA2D_IFCR_CAECIF_Msk (0x1UL << DMA2D_IFCR_CAECIF_Pos) /*!< 0x00000008 */
  8744. #define DMA2D_IFCR_CAECIF DMA2D_IFCR_CAECIF_Msk /*!< Clears CLUT Access Error Interrupt Flag */
  8745. #define DMA2D_IFCR_CCTCIF_Pos (4U)
  8746. #define DMA2D_IFCR_CCTCIF_Msk (0x1UL << DMA2D_IFCR_CCTCIF_Pos) /*!< 0x00000010 */
  8747. #define DMA2D_IFCR_CCTCIF DMA2D_IFCR_CCTCIF_Msk /*!< Clears CLUT Transfer Complete Interrupt Flag */
  8748. #define DMA2D_IFCR_CCEIF_Pos (5U)
  8749. #define DMA2D_IFCR_CCEIF_Msk (0x1UL << DMA2D_IFCR_CCEIF_Pos) /*!< 0x00000020 */
  8750. #define DMA2D_IFCR_CCEIF DMA2D_IFCR_CCEIF_Msk /*!< Clears Configuration Error Interrupt Flag */
  8751. /******************** Bit definition for DMA2D_FGMAR register ***************/
  8752. #define DMA2D_FGMAR_MA_Pos (0U)
  8753. #define DMA2D_FGMAR_MA_Msk (0xFFFFFFFFUL << DMA2D_FGMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8754. #define DMA2D_FGMAR_MA DMA2D_FGMAR_MA_Msk /*!< Foreground Memory Address */
  8755. /******************** Bit definition for DMA2D_FGOR register ****************/
  8756. #define DMA2D_FGOR_LO_Pos (0U)
  8757. #define DMA2D_FGOR_LO_Msk (0xFFFFUL << DMA2D_FGOR_LO_Pos) /*!< 0x0000FFFF */
  8758. #define DMA2D_FGOR_LO DMA2D_FGOR_LO_Msk /*!< Line Offset */
  8759. /******************** Bit definition for DMA2D_BGMAR register ***************/
  8760. #define DMA2D_BGMAR_MA_Pos (0U)
  8761. #define DMA2D_BGMAR_MA_Msk (0xFFFFFFFFUL << DMA2D_BGMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8762. #define DMA2D_BGMAR_MA DMA2D_BGMAR_MA_Msk /*!< Background Memory Address */
  8763. /******************** Bit definition for DMA2D_BGOR register ****************/
  8764. #define DMA2D_BGOR_LO_Pos (0U)
  8765. #define DMA2D_BGOR_LO_Msk (0xFFFFUL << DMA2D_BGOR_LO_Pos) /*!< 0x0000FFFF */
  8766. #define DMA2D_BGOR_LO DMA2D_BGOR_LO_Msk /*!< Line Offset */
  8767. /******************** Bit definition for DMA2D_FGPFCCR register *************/
  8768. #define DMA2D_FGPFCCR_CM_Pos (0U)
  8769. #define DMA2D_FGPFCCR_CM_Msk (0xFUL << DMA2D_FGPFCCR_CM_Pos) /*!< 0x0000000F */
  8770. #define DMA2D_FGPFCCR_CM DMA2D_FGPFCCR_CM_Msk /*!< Input color mode CM[3:0] */
  8771. #define DMA2D_FGPFCCR_CM_0 (0x1UL << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000001 */
  8772. #define DMA2D_FGPFCCR_CM_1 (0x2UL << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000002 */
  8773. #define DMA2D_FGPFCCR_CM_2 (0x4UL << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000004 */
  8774. #define DMA2D_FGPFCCR_CM_3 (0x8UL << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000008 */
  8775. #define DMA2D_FGPFCCR_CCM_Pos (4U)
  8776. #define DMA2D_FGPFCCR_CCM_Msk (0x1UL << DMA2D_FGPFCCR_CCM_Pos) /*!< 0x00000010 */
  8777. #define DMA2D_FGPFCCR_CCM DMA2D_FGPFCCR_CCM_Msk /*!< CLUT Color mode */
  8778. #define DMA2D_FGPFCCR_START_Pos (5U)
  8779. #define DMA2D_FGPFCCR_START_Msk (0x1UL << DMA2D_FGPFCCR_START_Pos) /*!< 0x00000020 */
  8780. #define DMA2D_FGPFCCR_START DMA2D_FGPFCCR_START_Msk /*!< Start */
  8781. #define DMA2D_FGPFCCR_CS_Pos (8U)
  8782. #define DMA2D_FGPFCCR_CS_Msk (0xFFUL << DMA2D_FGPFCCR_CS_Pos) /*!< 0x0000FF00 */
  8783. #define DMA2D_FGPFCCR_CS DMA2D_FGPFCCR_CS_Msk /*!< CLUT size */
  8784. #define DMA2D_FGPFCCR_AM_Pos (16U)
  8785. #define DMA2D_FGPFCCR_AM_Msk (0x3UL << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00030000 */
  8786. #define DMA2D_FGPFCCR_AM DMA2D_FGPFCCR_AM_Msk /*!< Alpha mode AM[1:0] */
  8787. #define DMA2D_FGPFCCR_AM_0 (0x1UL << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00010000 */
  8788. #define DMA2D_FGPFCCR_AM_1 (0x2UL << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00020000 */
  8789. #define DMA2D_FGPFCCR_CSS_Pos (18U)
  8790. #define DMA2D_FGPFCCR_CSS_Msk (0x3UL << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x000C0000 */
  8791. #define DMA2D_FGPFCCR_CSS DMA2D_FGPFCCR_CSS_Msk /* !< Chroma Sub-Sampling */
  8792. #define DMA2D_FGPFCCR_CSS_0 (0x1UL << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x00040000 */
  8793. #define DMA2D_FGPFCCR_CSS_1 (0x2UL << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x00080000 */
  8794. #define DMA2D_FGPFCCR_AI_Pos (20U)
  8795. #define DMA2D_FGPFCCR_AI_Msk (0x1UL << DMA2D_FGPFCCR_AI_Pos) /*!< 0x00100000 */
  8796. #define DMA2D_FGPFCCR_AI DMA2D_FGPFCCR_AI_Msk /*!< Foreground Input Alpha Inverted */
  8797. #define DMA2D_FGPFCCR_RBS_Pos (21U)
  8798. #define DMA2D_FGPFCCR_RBS_Msk (0x1UL << DMA2D_FGPFCCR_RBS_Pos) /*!< 0x00200000 */
  8799. #define DMA2D_FGPFCCR_RBS DMA2D_FGPFCCR_RBS_Msk /*!< Foreground Input Red Blue Swap */
  8800. #define DMA2D_FGPFCCR_ALPHA_Pos (24U)
  8801. #define DMA2D_FGPFCCR_ALPHA_Msk (0xFFUL << DMA2D_FGPFCCR_ALPHA_Pos) /*!< 0xFF000000 */
  8802. #define DMA2D_FGPFCCR_ALPHA DMA2D_FGPFCCR_ALPHA_Msk /*!< Alpha value */
  8803. /******************** Bit definition for DMA2D_FGCOLR register **************/
  8804. #define DMA2D_FGCOLR_BLUE_Pos (0U)
  8805. #define DMA2D_FGCOLR_BLUE_Msk (0xFFUL << DMA2D_FGCOLR_BLUE_Pos) /*!< 0x000000FF */
  8806. #define DMA2D_FGCOLR_BLUE DMA2D_FGCOLR_BLUE_Msk /*!< Foreground Blue Value */
  8807. #define DMA2D_FGCOLR_GREEN_Pos (8U)
  8808. #define DMA2D_FGCOLR_GREEN_Msk (0xFFUL << DMA2D_FGCOLR_GREEN_Pos) /*!< 0x0000FF00 */
  8809. #define DMA2D_FGCOLR_GREEN DMA2D_FGCOLR_GREEN_Msk /*!< Foreground Green Value */
  8810. #define DMA2D_FGCOLR_RED_Pos (16U)
  8811. #define DMA2D_FGCOLR_RED_Msk (0xFFUL << DMA2D_FGCOLR_RED_Pos) /*!< 0x00FF0000 */
  8812. #define DMA2D_FGCOLR_RED DMA2D_FGCOLR_RED_Msk /*!< Foreground Red Value */
  8813. /******************** Bit definition for DMA2D_BGPFCCR register *************/
  8814. #define DMA2D_BGPFCCR_CM_Pos (0U)
  8815. #define DMA2D_BGPFCCR_CM_Msk (0xFUL << DMA2D_BGPFCCR_CM_Pos) /*!< 0x0000000F */
  8816. #define DMA2D_BGPFCCR_CM DMA2D_BGPFCCR_CM_Msk /*!< Input color mode CM[3:0] */
  8817. #define DMA2D_BGPFCCR_CM_0 (0x1UL << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000001 */
  8818. #define DMA2D_BGPFCCR_CM_1 (0x2UL << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000002 */
  8819. #define DMA2D_BGPFCCR_CM_2 (0x4UL << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000004 */
  8820. #define DMA2D_BGPFCCR_CM_3 (0x8UL << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000008 */
  8821. #define DMA2D_BGPFCCR_CCM_Pos (4U)
  8822. #define DMA2D_BGPFCCR_CCM_Msk (0x1UL << DMA2D_BGPFCCR_CCM_Pos) /*!< 0x00000010 */
  8823. #define DMA2D_BGPFCCR_CCM DMA2D_BGPFCCR_CCM_Msk /*!< CLUT Color mode */
  8824. #define DMA2D_BGPFCCR_START_Pos (5U)
  8825. #define DMA2D_BGPFCCR_START_Msk (0x1UL << DMA2D_BGPFCCR_START_Pos) /*!< 0x00000020 */
  8826. #define DMA2D_BGPFCCR_START DMA2D_BGPFCCR_START_Msk /*!< Start */
  8827. #define DMA2D_BGPFCCR_CS_Pos (8U)
  8828. #define DMA2D_BGPFCCR_CS_Msk (0xFFUL << DMA2D_BGPFCCR_CS_Pos) /*!< 0x0000FF00 */
  8829. #define DMA2D_BGPFCCR_CS DMA2D_BGPFCCR_CS_Msk /*!< CLUT size */
  8830. #define DMA2D_BGPFCCR_AM_Pos (16U)
  8831. #define DMA2D_BGPFCCR_AM_Msk (0x3UL << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00030000 */
  8832. #define DMA2D_BGPFCCR_AM DMA2D_BGPFCCR_AM_Msk /*!< Alpha mode AM[1:0] */
  8833. #define DMA2D_BGPFCCR_AM_0 (0x1UL << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00010000 */
  8834. #define DMA2D_BGPFCCR_AM_1 (0x2UL << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00020000 */
  8835. #define DMA2D_BGPFCCR_AI_Pos (20U)
  8836. #define DMA2D_BGPFCCR_AI_Msk (0x1UL << DMA2D_BGPFCCR_AI_Pos) /*!< 0x00100000 */
  8837. #define DMA2D_BGPFCCR_AI DMA2D_BGPFCCR_AI_Msk /*!< background Input Alpha Inverted */
  8838. #define DMA2D_BGPFCCR_RBS_Pos (21U)
  8839. #define DMA2D_BGPFCCR_RBS_Msk (0x1UL << DMA2D_BGPFCCR_RBS_Pos) /*!< 0x00200000 */
  8840. #define DMA2D_BGPFCCR_RBS DMA2D_BGPFCCR_RBS_Msk /*!< Background Input Red Blue Swap */
  8841. #define DMA2D_BGPFCCR_ALPHA_Pos (24U)
  8842. #define DMA2D_BGPFCCR_ALPHA_Msk (0xFFUL << DMA2D_BGPFCCR_ALPHA_Pos) /*!< 0xFF000000 */
  8843. #define DMA2D_BGPFCCR_ALPHA DMA2D_BGPFCCR_ALPHA_Msk /*!< background Input Alpha value */
  8844. /******************** Bit definition for DMA2D_BGCOLR register **************/
  8845. #define DMA2D_BGCOLR_BLUE_Pos (0U)
  8846. #define DMA2D_BGCOLR_BLUE_Msk (0xFFUL << DMA2D_BGCOLR_BLUE_Pos) /*!< 0x000000FF */
  8847. #define DMA2D_BGCOLR_BLUE DMA2D_BGCOLR_BLUE_Msk /*!< Background Blue Value */
  8848. #define DMA2D_BGCOLR_GREEN_Pos (8U)
  8849. #define DMA2D_BGCOLR_GREEN_Msk (0xFFUL << DMA2D_BGCOLR_GREEN_Pos) /*!< 0x0000FF00 */
  8850. #define DMA2D_BGCOLR_GREEN DMA2D_BGCOLR_GREEN_Msk /*!< Background Green Value */
  8851. #define DMA2D_BGCOLR_RED_Pos (16U)
  8852. #define DMA2D_BGCOLR_RED_Msk (0xFFUL << DMA2D_BGCOLR_RED_Pos) /*!< 0x00FF0000 */
  8853. #define DMA2D_BGCOLR_RED DMA2D_BGCOLR_RED_Msk /*!< Background Red Value */
  8854. /******************** Bit definition for DMA2D_FGCMAR register **************/
  8855. #define DMA2D_FGCMAR_MA_Pos (0U)
  8856. #define DMA2D_FGCMAR_MA_Msk (0xFFFFFFFFUL << DMA2D_FGCMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8857. #define DMA2D_FGCMAR_MA DMA2D_FGCMAR_MA_Msk /*!< Foreground CLUT Memory Address */
  8858. /******************** Bit definition for DMA2D_BGCMAR register **************/
  8859. #define DMA2D_BGCMAR_MA_Pos (0U)
  8860. #define DMA2D_BGCMAR_MA_Msk (0xFFFFFFFFUL << DMA2D_BGCMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8861. #define DMA2D_BGCMAR_MA DMA2D_BGCMAR_MA_Msk /*!< Background CLUT Memory Address */
  8862. /******************** Bit definition for DMA2D_OPFCCR register **************/
  8863. #define DMA2D_OPFCCR_CM_Pos (0U)
  8864. #define DMA2D_OPFCCR_CM_Msk (0x7UL << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000007 */
  8865. #define DMA2D_OPFCCR_CM DMA2D_OPFCCR_CM_Msk /*!< Output Color mode CM[2:0] */
  8866. #define DMA2D_OPFCCR_CM_0 (0x1UL << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000001 */
  8867. #define DMA2D_OPFCCR_CM_1 (0x2UL << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000002 */
  8868. #define DMA2D_OPFCCR_CM_2 (0x4UL << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000004 */
  8869. #define DMA2D_OPFCCR_SB_Pos (8U)
  8870. #define DMA2D_OPFCCR_SB_Msk (0x1UL << DMA2D_OPFCCR_SB_Pos) /*!< 0x00000100 */
  8871. #define DMA2D_OPFCCR_SB DMA2D_OPFCCR_SB_Msk /*!< Swap Bytes */
  8872. #define DMA2D_OPFCCR_AI_Pos (20U)
  8873. #define DMA2D_OPFCCR_AI_Msk (0x1UL << DMA2D_OPFCCR_AI_Pos) /*!< 0x00100000 */
  8874. #define DMA2D_OPFCCR_AI DMA2D_OPFCCR_AI_Msk /*!< Output Alpha Inverted */
  8875. #define DMA2D_OPFCCR_RBS_Pos (21U)
  8876. #define DMA2D_OPFCCR_RBS_Msk (0x1UL << DMA2D_OPFCCR_RBS_Pos) /*!< 0x00200000 */
  8877. #define DMA2D_OPFCCR_RBS DMA2D_OPFCCR_RBS_Msk /*!< Output Red Blue Swap */
  8878. /******************** Bit definition for DMA2D_OCOLR register ***************/
  8879. /*!<Mode_ARGB8888/RGB888 */
  8880. #define DMA2D_OCOLR_BLUE_1_Pos (0U)
  8881. #define DMA2D_OCOLR_BLUE_1_Msk (0xFFUL <<DMA2D_OCOLR_BLUE_1_Pos) /*0x000000FFU*/
  8882. #define DMA2D_OCOLR_BLUE_1 DMA2D_OCOLR_BLUE_1_Msk /*!< Output BLUE Value */
  8883. #define DMA2D_OCOLR_GREEN_1_Pos (8U)
  8884. #define DMA2D_OCOLR_GREEN_1_Msk (0xFFUL<<DMA2D_OCOLR_GREEN_1_Pos) /*0x0000FF00U)*/
  8885. #define DMA2D_OCOLR_GREEN_1 DMA2D_OCOLR_GREEN_1_Msk /*!< Output GREEN Value */
  8886. #define DMA2D_OCOLR_RED_1_Pos (16U)
  8887. #define DMA2D_OCOLR_RED_1_Msk (0xFFUL << DMA2D_OCOLR_RED_1_Pos) /*0x00FF0000U */
  8888. #define DMA2D_OCOLR_RED_1 DMA2D_OCOLR_RED_1_Msk /*!< Output Red Value */
  8889. #define DMA2D_OCOLR_ALPHA_1_Pos (24U)
  8890. #define DMA2D_OCOLR_ALPHA_1_Msk (0xFFUL << DMA2D_OCOLR_ALPHA_1_Pos) /*0xFF000000U*/
  8891. #define DMA2D_OCOLR_ALPHA_1 DMA2D_OCOLR_ALPHA_1_Msk /*!< Output Alpha Channel Value */
  8892. /*!<Mode_RGB565 */
  8893. #define DMA2D_OCOLR_BLUE_2_Pos (0U)
  8894. #define DMA2D_OCOLR_BLUE_2_Msk (0x1FUL <<DMA2D_OCOLR_BLUE_2_Pos) /*0x0000001FU*/
  8895. #define DMA2D_OCOLR_BLUE_2 DMA2D_OCOLR_BLUE_2_Msk /*!< Output BLUE Value */
  8896. #define DMA2D_OCOLR_GREEN_2_Pos (5U)
  8897. #define DMA2D_OCOLR_GREEN_2_Msk (0x7EUL << DMA2D_OCOLR_GREEN_2_Pos) /* 0x000007E0U */
  8898. #define DMA2D_OCOLR_GREEN_2 DMA2D_OCOLR_GREEN_2_Msk /*!< Output GREEN Value */
  8899. #define DMA2D_OCOLR_RED_2_Pos (11U)
  8900. #define DMA2D_OCOLR_RED_2_Msk (0xF8UL<<DMA2D_OCOLR_RED_2_Pos) /*0x0000F800U*/
  8901. #define DMA2D_OCOLR_RED_2 DMA2D_OCOLR_RED_2_Msk /*!< Output Red Value */
  8902. /*!<Mode_ARGB1555 */
  8903. #define DMA2D_OCOLR_BLUE_3_Pos (0U)
  8904. #define DMA2D_OCOLR_BLUE_3_Msk (0x1FUL << DMA2D_OCOLR_BLUE_3_Pos) /*0x0000001FU*/
  8905. #define DMA2D_OCOLR_BLUE_3 DMA2D_OCOLR_BLUE_3_Msk /*!< Output BLUE Value */
  8906. #define DMA2D_OCOLR_GREEN_3_Pos (5U)
  8907. #define DMA2D_OCOLR_GREEN_3_Msk (0x3EUL << DMA2D_OCOLR_GREEN_3_Pos) /*0x000003E0U*/
  8908. #define DMA2D_OCOLR_GREEN_3 DMA2D_OCOLR_GREEN_3_Msk /*!< Output GREEN Value */
  8909. #define DMA2D_OCOLR_RED_3_Pos (10U)
  8910. #define DMA2D_OCOLR_RED_3_Msk (0x7CUL << DMA2D_OCOLR_RED_3_Pos) /* 0x00007C00U*/
  8911. #define DMA2D_OCOLR_RED_3 DMA2D_OCOLR_RED_3_Msk /*!< Output Red Value */
  8912. #define DMA2D_OCOLR_ALPHA_3_Pos (15U)
  8913. #define DMA2D_OCOLR_ALPHA_3_Msk (0x1UL << DMA2D_OCOLR_ALPHA_3_Pos) /*0x00008000U*/
  8914. #define DMA2D_OCOLR_ALPHA_3 DMA2D_OCOLR_ALPHA_3_Msk /*!< Output Alpha Channel Value */
  8915. /*!<Mode_ARGB4444 */
  8916. #define DMA2D_OCOLR_BLUE_4_Pos (0U)
  8917. #define DMA2D_OCOLR_BLUE_4_Msk (0xFUL << DMA2D_OCOLR_BLUE_4_Pos) /*0x0000000FU*/
  8918. #define DMA2D_OCOLR_BLUE_4 DMA2D_OCOLR_BLUE_4_Msk /*!< Output BLUE Value */
  8919. #define DMA2D_OCOLR_GREEN_4_Pos (4U)
  8920. #define DMA2D_OCOLR_GREEN_4_Msk (0xFUL << DMA2D_OCOLR_GREEN_4_Pos) /*0x000000F0U*/
  8921. #define DMA2D_OCOLR_GREEN_4 DMA2D_OCOLR_GREEN_4_Msk /*!< Output GREEN Value */
  8922. #define DMA2D_OCOLR_RED_4_Pos (8U)
  8923. #define DMA2D_OCOLR_RED_4_Msk (0xFUL << DMA2D_OCOLR_RED_4_Pos) /*0x00000F00U*/
  8924. #define DMA2D_OCOLR_RED_4 DMA2D_OCOLR_RED_4_Msk /*!< Output Red Value */
  8925. #define DMA2D_OCOLR_ALPHA_4_Pos (12U)
  8926. #define DMA2D_OCOLR_ALPHA_4_Msk (0xFUL << DMA2D_OCOLR_ALPHA_4_Pos) /*0x0000F000U*/
  8927. #define DMA2D_OCOLR_ALPHA_4 DMA2D_OCOLR_ALPHA_4_Msk /*!< Output Alpha Channel Value */
  8928. /******************** Bit definition for DMA2D_OMAR register ****************/
  8929. #define DMA2D_OMAR_MA_Pos (0U)
  8930. #define DMA2D_OMAR_MA_Msk (0xFFFFFFFFUL << DMA2D_OMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8931. #define DMA2D_OMAR_MA DMA2D_OMAR_MA_Msk /*!< Output Memory Address */
  8932. /******************** Bit definition for DMA2D_OOR register *****************/
  8933. #define DMA2D_OOR_LO_Pos (0U)
  8934. #define DMA2D_OOR_LO_Msk (0xFFFFUL << DMA2D_OOR_LO_Pos) /*!< 0x0000FFFF */
  8935. #define DMA2D_OOR_LO DMA2D_OOR_LO_Msk /*!< Output Line Offset */
  8936. /******************** Bit definition for DMA2D_NLR register *****************/
  8937. #define DMA2D_NLR_NL_Pos (0U)
  8938. #define DMA2D_NLR_NL_Msk (0xFFFFUL << DMA2D_NLR_NL_Pos) /*!< 0x0000FFFF */
  8939. #define DMA2D_NLR_NL DMA2D_NLR_NL_Msk /*!< Number of Lines */
  8940. #define DMA2D_NLR_PL_Pos (16U)
  8941. #define DMA2D_NLR_PL_Msk (0x3FFFUL << DMA2D_NLR_PL_Pos) /*!< 0x3FFF0000 */
  8942. #define DMA2D_NLR_PL DMA2D_NLR_PL_Msk /*!< Pixel per Lines */
  8943. /******************** Bit definition for DMA2D_LWR register *****************/
  8944. #define DMA2D_LWR_LW_Pos (0U)
  8945. #define DMA2D_LWR_LW_Msk (0xFFFFUL << DMA2D_LWR_LW_Pos) /*!< 0x0000FFFF */
  8946. #define DMA2D_LWR_LW DMA2D_LWR_LW_Msk /*!< Line Watermark */
  8947. /******************** Bit definition for DMA2D_AMTCR register ***************/
  8948. #define DMA2D_AMTCR_EN_Pos (0U)
  8949. #define DMA2D_AMTCR_EN_Msk (0x1UL << DMA2D_AMTCR_EN_Pos) /*!< 0x00000001 */
  8950. #define DMA2D_AMTCR_EN DMA2D_AMTCR_EN_Msk /*!< Enable */
  8951. #define DMA2D_AMTCR_DT_Pos (8U)
  8952. #define DMA2D_AMTCR_DT_Msk (0xFFUL << DMA2D_AMTCR_DT_Pos) /*!< 0x0000FF00 */
  8953. #define DMA2D_AMTCR_DT DMA2D_AMTCR_DT_Msk /*!< Dead Time */
  8954. /******************** Bit definition for DMA2D_FGCLUT register **************/
  8955. /******************** Bit definition for DMA2D_BGCLUT register **************/
  8956. /******************************************************************************/
  8957. /* */
  8958. /* External Interrupt/Event Controller */
  8959. /* */
  8960. /******************************************************************************/
  8961. /****************** Bit definition for EXTI_RTSR1 register *******************/
  8962. #define EXTI_RTSR1_TR_Pos (0U)
  8963. #define EXTI_RTSR1_TR_Msk (0x3FFFFFUL << EXTI_RTSR1_TR_Pos) /*!< 0x003FFFFF */
  8964. #define EXTI_RTSR1_TR EXTI_RTSR1_TR_Msk /*!< Rising trigger event configuration bit */
  8965. #define EXTI_RTSR1_TR0_Pos (0U)
  8966. #define EXTI_RTSR1_TR0_Msk (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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 (0x1UL << 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_FTSR1 register *******************/
  9032. #define EXTI_FTSR1_TR_Pos (0U)
  9033. #define EXTI_FTSR1_TR_Msk (0x3FFFFFUL << EXTI_FTSR1_TR_Pos) /*!< 0x003FFFFF */
  9034. #define EXTI_FTSR1_TR EXTI_FTSR1_TR_Msk /*!< Falling trigger event configuration bit */
  9035. #define EXTI_FTSR1_TR0_Pos (0U)
  9036. #define EXTI_FTSR1_TR0_Msk (0x1UL << EXTI_FTSR1_TR0_Pos) /*!< 0x00000001 */
  9037. #define EXTI_FTSR1_TR0 EXTI_FTSR1_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */
  9038. #define EXTI_FTSR1_TR1_Pos (1U)
  9039. #define EXTI_FTSR1_TR1_Msk (0x1UL << EXTI_FTSR1_TR1_Pos) /*!< 0x00000002 */
  9040. #define EXTI_FTSR1_TR1 EXTI_FTSR1_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */
  9041. #define EXTI_FTSR1_TR2_Pos (2U)
  9042. #define EXTI_FTSR1_TR2_Msk (0x1UL << EXTI_FTSR1_TR2_Pos) /*!< 0x00000004 */
  9043. #define EXTI_FTSR1_TR2 EXTI_FTSR1_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */
  9044. #define EXTI_FTSR1_TR3_Pos (3U)
  9045. #define EXTI_FTSR1_TR3_Msk (0x1UL << EXTI_FTSR1_TR3_Pos) /*!< 0x00000008 */
  9046. #define EXTI_FTSR1_TR3 EXTI_FTSR1_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */
  9047. #define EXTI_FTSR1_TR4_Pos (4U)
  9048. #define EXTI_FTSR1_TR4_Msk (0x1UL << EXTI_FTSR1_TR4_Pos) /*!< 0x00000010 */
  9049. #define EXTI_FTSR1_TR4 EXTI_FTSR1_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */
  9050. #define EXTI_FTSR1_TR5_Pos (5U)
  9051. #define EXTI_FTSR1_TR5_Msk (0x1UL << EXTI_FTSR1_TR5_Pos) /*!< 0x00000020 */
  9052. #define EXTI_FTSR1_TR5 EXTI_FTSR1_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */
  9053. #define EXTI_FTSR1_TR6_Pos (6U)
  9054. #define EXTI_FTSR1_TR6_Msk (0x1UL << EXTI_FTSR1_TR6_Pos) /*!< 0x00000040 */
  9055. #define EXTI_FTSR1_TR6 EXTI_FTSR1_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */
  9056. #define EXTI_FTSR1_TR7_Pos (7U)
  9057. #define EXTI_FTSR1_TR7_Msk (0x1UL << EXTI_FTSR1_TR7_Pos) /*!< 0x00000080 */
  9058. #define EXTI_FTSR1_TR7 EXTI_FTSR1_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */
  9059. #define EXTI_FTSR1_TR8_Pos (8U)
  9060. #define EXTI_FTSR1_TR8_Msk (0x1UL << EXTI_FTSR1_TR8_Pos) /*!< 0x00000100 */
  9061. #define EXTI_FTSR1_TR8 EXTI_FTSR1_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */
  9062. #define EXTI_FTSR1_TR9_Pos (9U)
  9063. #define EXTI_FTSR1_TR9_Msk (0x1UL << EXTI_FTSR1_TR9_Pos) /*!< 0x00000200 */
  9064. #define EXTI_FTSR1_TR9 EXTI_FTSR1_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */
  9065. #define EXTI_FTSR1_TR10_Pos (10U)
  9066. #define EXTI_FTSR1_TR10_Msk (0x1UL << EXTI_FTSR1_TR10_Pos) /*!< 0x00000400 */
  9067. #define EXTI_FTSR1_TR10 EXTI_FTSR1_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */
  9068. #define EXTI_FTSR1_TR11_Pos (11U)
  9069. #define EXTI_FTSR1_TR11_Msk (0x1UL << EXTI_FTSR1_TR11_Pos) /*!< 0x00000800 */
  9070. #define EXTI_FTSR1_TR11 EXTI_FTSR1_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */
  9071. #define EXTI_FTSR1_TR12_Pos (12U)
  9072. #define EXTI_FTSR1_TR12_Msk (0x1UL << EXTI_FTSR1_TR12_Pos) /*!< 0x00001000 */
  9073. #define EXTI_FTSR1_TR12 EXTI_FTSR1_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */
  9074. #define EXTI_FTSR1_TR13_Pos (13U)
  9075. #define EXTI_FTSR1_TR13_Msk (0x1UL << EXTI_FTSR1_TR13_Pos) /*!< 0x00002000 */
  9076. #define EXTI_FTSR1_TR13 EXTI_FTSR1_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */
  9077. #define EXTI_FTSR1_TR14_Pos (14U)
  9078. #define EXTI_FTSR1_TR14_Msk (0x1UL << EXTI_FTSR1_TR14_Pos) /*!< 0x00004000 */
  9079. #define EXTI_FTSR1_TR14 EXTI_FTSR1_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */
  9080. #define EXTI_FTSR1_TR15_Pos (15U)
  9081. #define EXTI_FTSR1_TR15_Msk (0x1UL << EXTI_FTSR1_TR15_Pos) /*!< 0x00008000 */
  9082. #define EXTI_FTSR1_TR15 EXTI_FTSR1_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */
  9083. #define EXTI_FTSR1_TR16_Pos (16U)
  9084. #define EXTI_FTSR1_TR16_Msk (0x1UL << EXTI_FTSR1_TR16_Pos) /*!< 0x00010000 */
  9085. #define EXTI_FTSR1_TR16 EXTI_FTSR1_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */
  9086. #define EXTI_FTSR1_TR17_Pos (17U)
  9087. #define EXTI_FTSR1_TR17_Msk (0x1UL << EXTI_FTSR1_TR17_Pos) /*!< 0x00020000 */
  9088. #define EXTI_FTSR1_TR17 EXTI_FTSR1_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */
  9089. #define EXTI_FTSR1_TR18_Pos (18U)
  9090. #define EXTI_FTSR1_TR18_Msk (0x1UL << EXTI_FTSR1_TR18_Pos) /*!< 0x00040000 */
  9091. #define EXTI_FTSR1_TR18 EXTI_FTSR1_TR18_Msk /*!< Falling trigger event configuration bit of line 18 */
  9092. #define EXTI_FTSR1_TR19_Pos (19U)
  9093. #define EXTI_FTSR1_TR19_Msk (0x1UL << EXTI_FTSR1_TR19_Pos) /*!< 0x00080000 */
  9094. #define EXTI_FTSR1_TR19 EXTI_FTSR1_TR19_Msk /*!< Falling trigger event configuration bit of line 19 */
  9095. #define EXTI_FTSR1_TR20_Pos (20U)
  9096. #define EXTI_FTSR1_TR20_Msk (0x1UL << EXTI_FTSR1_TR20_Pos) /*!< 0x00100000 */
  9097. #define EXTI_FTSR1_TR20 EXTI_FTSR1_TR20_Msk /*!< Falling trigger event configuration bit of line 20 */
  9098. #define EXTI_FTSR1_TR21_Pos (21U)
  9099. #define EXTI_FTSR1_TR21_Msk (0x1UL << EXTI_FTSR1_TR21_Pos) /*!< 0x00200000 */
  9100. #define EXTI_FTSR1_TR21 EXTI_FTSR1_TR21_Msk /*!< Falling trigger event configuration bit of line 21 */
  9101. /****************** Bit definition for EXTI_SWIER1 register ******************/
  9102. #define EXTI_SWIER1_SWIER0_Pos (0U)
  9103. #define EXTI_SWIER1_SWIER0_Msk (0x1UL << EXTI_SWIER1_SWIER0_Pos) /*!< 0x00000001 */
  9104. #define EXTI_SWIER1_SWIER0 EXTI_SWIER1_SWIER0_Msk /*!< Software Interrupt on line 0 */
  9105. #define EXTI_SWIER1_SWIER1_Pos (1U)
  9106. #define EXTI_SWIER1_SWIER1_Msk (0x1UL << EXTI_SWIER1_SWIER1_Pos) /*!< 0x00000002 */
  9107. #define EXTI_SWIER1_SWIER1 EXTI_SWIER1_SWIER1_Msk /*!< Software Interrupt on line 1 */
  9108. #define EXTI_SWIER1_SWIER2_Pos (2U)
  9109. #define EXTI_SWIER1_SWIER2_Msk (0x1UL << EXTI_SWIER1_SWIER2_Pos) /*!< 0x00000004 */
  9110. #define EXTI_SWIER1_SWIER2 EXTI_SWIER1_SWIER2_Msk /*!< Software Interrupt on line 2 */
  9111. #define EXTI_SWIER1_SWIER3_Pos (3U)
  9112. #define EXTI_SWIER1_SWIER3_Msk (0x1UL << EXTI_SWIER1_SWIER3_Pos) /*!< 0x00000008 */
  9113. #define EXTI_SWIER1_SWIER3 EXTI_SWIER1_SWIER3_Msk /*!< Software Interrupt on line 3 */
  9114. #define EXTI_SWIER1_SWIER4_Pos (4U)
  9115. #define EXTI_SWIER1_SWIER4_Msk (0x1UL << EXTI_SWIER1_SWIER4_Pos) /*!< 0x00000010 */
  9116. #define EXTI_SWIER1_SWIER4 EXTI_SWIER1_SWIER4_Msk /*!< Software Interrupt on line 4 */
  9117. #define EXTI_SWIER1_SWIER5_Pos (5U)
  9118. #define EXTI_SWIER1_SWIER5_Msk (0x1UL << EXTI_SWIER1_SWIER5_Pos) /*!< 0x00000020 */
  9119. #define EXTI_SWIER1_SWIER5 EXTI_SWIER1_SWIER5_Msk /*!< Software Interrupt on line 5 */
  9120. #define EXTI_SWIER1_SWIER6_Pos (6U)
  9121. #define EXTI_SWIER1_SWIER6_Msk (0x1UL << EXTI_SWIER1_SWIER6_Pos) /*!< 0x00000040 */
  9122. #define EXTI_SWIER1_SWIER6 EXTI_SWIER1_SWIER6_Msk /*!< Software Interrupt on line 6 */
  9123. #define EXTI_SWIER1_SWIER7_Pos (7U)
  9124. #define EXTI_SWIER1_SWIER7_Msk (0x1UL << EXTI_SWIER1_SWIER7_Pos) /*!< 0x00000080 */
  9125. #define EXTI_SWIER1_SWIER7 EXTI_SWIER1_SWIER7_Msk /*!< Software Interrupt on line 7 */
  9126. #define EXTI_SWIER1_SWIER8_Pos (8U)
  9127. #define EXTI_SWIER1_SWIER8_Msk (0x1UL << EXTI_SWIER1_SWIER8_Pos) /*!< 0x00000100 */
  9128. #define EXTI_SWIER1_SWIER8 EXTI_SWIER1_SWIER8_Msk /*!< Software Interrupt on line 8 */
  9129. #define EXTI_SWIER1_SWIER9_Pos (9U)
  9130. #define EXTI_SWIER1_SWIER9_Msk (0x1UL << EXTI_SWIER1_SWIER9_Pos) /*!< 0x00000200 */
  9131. #define EXTI_SWIER1_SWIER9 EXTI_SWIER1_SWIER9_Msk /*!< Software Interrupt on line 9 */
  9132. #define EXTI_SWIER1_SWIER10_Pos (10U)
  9133. #define EXTI_SWIER1_SWIER10_Msk (0x1UL << EXTI_SWIER1_SWIER10_Pos) /*!< 0x00000400 */
  9134. #define EXTI_SWIER1_SWIER10 EXTI_SWIER1_SWIER10_Msk /*!< Software Interrupt on line 10 */
  9135. #define EXTI_SWIER1_SWIER11_Pos (11U)
  9136. #define EXTI_SWIER1_SWIER11_Msk (0x1UL << EXTI_SWIER1_SWIER11_Pos) /*!< 0x00000800 */
  9137. #define EXTI_SWIER1_SWIER11 EXTI_SWIER1_SWIER11_Msk /*!< Software Interrupt on line 11 */
  9138. #define EXTI_SWIER1_SWIER12_Pos (12U)
  9139. #define EXTI_SWIER1_SWIER12_Msk (0x1UL << EXTI_SWIER1_SWIER12_Pos) /*!< 0x00001000 */
  9140. #define EXTI_SWIER1_SWIER12 EXTI_SWIER1_SWIER12_Msk /*!< Software Interrupt on line 12 */
  9141. #define EXTI_SWIER1_SWIER13_Pos (13U)
  9142. #define EXTI_SWIER1_SWIER13_Msk (0x1UL << EXTI_SWIER1_SWIER13_Pos) /*!< 0x00002000 */
  9143. #define EXTI_SWIER1_SWIER13 EXTI_SWIER1_SWIER13_Msk /*!< Software Interrupt on line 13 */
  9144. #define EXTI_SWIER1_SWIER14_Pos (14U)
  9145. #define EXTI_SWIER1_SWIER14_Msk (0x1UL << EXTI_SWIER1_SWIER14_Pos) /*!< 0x00004000 */
  9146. #define EXTI_SWIER1_SWIER14 EXTI_SWIER1_SWIER14_Msk /*!< Software Interrupt on line 14 */
  9147. #define EXTI_SWIER1_SWIER15_Pos (15U)
  9148. #define EXTI_SWIER1_SWIER15_Msk (0x1UL << EXTI_SWIER1_SWIER15_Pos) /*!< 0x00008000 */
  9149. #define EXTI_SWIER1_SWIER15 EXTI_SWIER1_SWIER15_Msk /*!< Software Interrupt on line 15 */
  9150. #define EXTI_SWIER1_SWIER16_Pos (16U)
  9151. #define EXTI_SWIER1_SWIER16_Msk (0x1UL << EXTI_SWIER1_SWIER16_Pos) /*!< 0x00010000 */
  9152. #define EXTI_SWIER1_SWIER16 EXTI_SWIER1_SWIER16_Msk /*!< Software Interrupt on line 16 */
  9153. #define EXTI_SWIER1_SWIER17_Pos (17U)
  9154. #define EXTI_SWIER1_SWIER17_Msk (0x1UL << EXTI_SWIER1_SWIER17_Pos) /*!< 0x00020000 */
  9155. #define EXTI_SWIER1_SWIER17 EXTI_SWIER1_SWIER17_Msk /*!< Software Interrupt on line 17 */
  9156. #define EXTI_SWIER1_SWIER18_Pos (18U)
  9157. #define EXTI_SWIER1_SWIER18_Msk (0x1UL << EXTI_SWIER1_SWIER18_Pos) /*!< 0x00040000 */
  9158. #define EXTI_SWIER1_SWIER18 EXTI_SWIER1_SWIER18_Msk /*!< Software Interrupt on line 18 */
  9159. #define EXTI_SWIER1_SWIER19_Pos (19U)
  9160. #define EXTI_SWIER1_SWIER19_Msk (0x1UL << EXTI_SWIER1_SWIER19_Pos) /*!< 0x00080000 */
  9161. #define EXTI_SWIER1_SWIER19 EXTI_SWIER1_SWIER19_Msk /*!< Software Interrupt on line 19 */
  9162. #define EXTI_SWIER1_SWIER20_Pos (20U)
  9163. #define EXTI_SWIER1_SWIER20_Msk (0x1UL << EXTI_SWIER1_SWIER20_Pos) /*!< 0x00100000 */
  9164. #define EXTI_SWIER1_SWIER20 EXTI_SWIER1_SWIER20_Msk /*!< Software Interrupt on line 20 */
  9165. #define EXTI_SWIER1_SWIER21_Pos (21U)
  9166. #define EXTI_SWIER1_SWIER21_Msk (0x1UL << EXTI_SWIER1_SWIER21_Pos) /*!< 0x00200000 */
  9167. #define EXTI_SWIER1_SWIER21 EXTI_SWIER1_SWIER21_Msk /*!< Software Interrupt on line 21 */
  9168. /****************** Bit definition for EXTI_D3PMR1 register ******************/
  9169. #define EXTI_D3PMR1_MR0_Pos (0U)
  9170. #define EXTI_D3PMR1_MR0_Msk (0x1UL << EXTI_D3PMR1_MR0_Pos) /*!< 0x00000001 */
  9171. #define EXTI_D3PMR1_MR0 EXTI_D3PMR1_MR0_Msk /*!< Pending Mask Event for line 0 */
  9172. #define EXTI_D3PMR1_MR1_Pos (1U)
  9173. #define EXTI_D3PMR1_MR1_Msk (0x1UL << EXTI_D3PMR1_MR1_Pos) /*!< 0x00000002 */
  9174. #define EXTI_D3PMR1_MR1 EXTI_D3PMR1_MR1_Msk /*!< Pending Mask Event for line 1 */
  9175. #define EXTI_D3PMR1_MR2_Pos (2U)
  9176. #define EXTI_D3PMR1_MR2_Msk (0x1UL << EXTI_D3PMR1_MR2_Pos) /*!< 0x00000004 */
  9177. #define EXTI_D3PMR1_MR2 EXTI_D3PMR1_MR2_Msk /*!< Pending Mask Event for line 2 */
  9178. #define EXTI_D3PMR1_MR3_Pos (3U)
  9179. #define EXTI_D3PMR1_MR3_Msk (0x1UL << EXTI_D3PMR1_MR3_Pos) /*!< 0x00000008 */
  9180. #define EXTI_D3PMR1_MR3 EXTI_D3PMR1_MR3_Msk /*!< Pending Mask Event for line 3 */
  9181. #define EXTI_D3PMR1_MR4_Pos (4U)
  9182. #define EXTI_D3PMR1_MR4_Msk (0x1UL << EXTI_D3PMR1_MR4_Pos) /*!< 0x00000010 */
  9183. #define EXTI_D3PMR1_MR4 EXTI_D3PMR1_MR4_Msk /*!< Pending Mask Event for line 4 */
  9184. #define EXTI_D3PMR1_MR5_Pos (5U)
  9185. #define EXTI_D3PMR1_MR5_Msk (0x1UL << EXTI_D3PMR1_MR5_Pos) /*!< 0x00000020 */
  9186. #define EXTI_D3PMR1_MR5 EXTI_D3PMR1_MR5_Msk /*!< Pending Mask Event for line 5 */
  9187. #define EXTI_D3PMR1_MR6_Pos (6U)
  9188. #define EXTI_D3PMR1_MR6_Msk (0x1UL << EXTI_D3PMR1_MR6_Pos) /*!< 0x00000040 */
  9189. #define EXTI_D3PMR1_MR6 EXTI_D3PMR1_MR6_Msk /*!< Pending Mask Event for line 6 */
  9190. #define EXTI_D3PMR1_MR7_Pos (7U)
  9191. #define EXTI_D3PMR1_MR7_Msk (0x1UL << EXTI_D3PMR1_MR7_Pos) /*!< 0x00000080 */
  9192. #define EXTI_D3PMR1_MR7 EXTI_D3PMR1_MR7_Msk /*!< Pending Mask Event for line 7 */
  9193. #define EXTI_D3PMR1_MR8_Pos (8U)
  9194. #define EXTI_D3PMR1_MR8_Msk (0x1UL << EXTI_D3PMR1_MR8_Pos) /*!< 0x00000100 */
  9195. #define EXTI_D3PMR1_MR8 EXTI_D3PMR1_MR8_Msk /*!< Pending Mask Event for line 8 */
  9196. #define EXTI_D3PMR1_MR9_Pos (9U)
  9197. #define EXTI_D3PMR1_MR9_Msk (0x1UL << EXTI_D3PMR1_MR9_Pos) /*!< 0x00000200 */
  9198. #define EXTI_D3PMR1_MR9 EXTI_D3PMR1_MR9_Msk /*!< Pending Mask Event for line 9 */
  9199. #define EXTI_D3PMR1_MR10_Pos (10U)
  9200. #define EXTI_D3PMR1_MR10_Msk (0x1UL << EXTI_D3PMR1_MR10_Pos) /*!< 0x00000400 */
  9201. #define EXTI_D3PMR1_MR10 EXTI_D3PMR1_MR10_Msk /*!< Pending Mask Event for line 10 */
  9202. #define EXTI_D3PMR1_MR11_Pos (11U)
  9203. #define EXTI_D3PMR1_MR11_Msk (0x1UL << EXTI_D3PMR1_MR11_Pos) /*!< 0x00000800 */
  9204. #define EXTI_D3PMR1_MR11 EXTI_D3PMR1_MR11_Msk /*!< Pending Mask Event for line 11 */
  9205. #define EXTI_D3PMR1_MR12_Pos (12U)
  9206. #define EXTI_D3PMR1_MR12_Msk (0x1UL << EXTI_D3PMR1_MR12_Pos) /*!< 0x00001000 */
  9207. #define EXTI_D3PMR1_MR12 EXTI_D3PMR1_MR12_Msk /*!< Pending Mask Event for line 12 */
  9208. #define EXTI_D3PMR1_MR13_Pos (13U)
  9209. #define EXTI_D3PMR1_MR13_Msk (0x1UL << EXTI_D3PMR1_MR13_Pos) /*!< 0x00002000 */
  9210. #define EXTI_D3PMR1_MR13 EXTI_D3PMR1_MR13_Msk /*!< Pending Mask Event for line 13 */
  9211. #define EXTI_D3PMR1_MR14_Pos (14U)
  9212. #define EXTI_D3PMR1_MR14_Msk (0x1UL << EXTI_D3PMR1_MR14_Pos) /*!< 0x00004000 */
  9213. #define EXTI_D3PMR1_MR14 EXTI_D3PMR1_MR14_Msk /*!< Pending Mask Event for line 14 */
  9214. #define EXTI_D3PMR1_MR15_Pos (15U)
  9215. #define EXTI_D3PMR1_MR15_Msk (0x1UL << EXTI_D3PMR1_MR15_Pos) /*!< 0x00008000 */
  9216. #define EXTI_D3PMR1_MR15 EXTI_D3PMR1_MR15_Msk /*!< Pending Mask Event for line 15 */
  9217. #define EXTI_D3PMR1_MR19_Pos (19U)
  9218. #define EXTI_D3PMR1_MR19_Msk (0x1UL << EXTI_D3PMR1_MR19_Pos) /*!< 0x00080000 */
  9219. #define EXTI_D3PMR1_MR19 EXTI_D3PMR1_MR19_Msk /*!< Pending Mask Event for line 19 */
  9220. #define EXTI_D3PMR1_MR20_Pos (20U)
  9221. #define EXTI_D3PMR1_MR20_Msk (0x1UL << EXTI_D3PMR1_MR20_Pos) /*!< 0x00100000 */
  9222. #define EXTI_D3PMR1_MR20 EXTI_D3PMR1_MR20_Msk /*!< Pending Mask Event for line 20 */
  9223. #define EXTI_D3PMR1_MR21_Pos (21U)
  9224. #define EXTI_D3PMR1_MR21_Msk (0x1UL << EXTI_D3PMR1_MR21_Pos) /*!< 0x00200000 */
  9225. #define EXTI_D3PMR1_MR21 EXTI_D3PMR1_MR21_Msk /*!< Pending Mask Event for line 21 */
  9226. #define EXTI_D3PMR1_MR25_Pos (24U)
  9227. #define EXTI_D3PMR1_MR25_Msk (0x1UL << EXTI_D3PMR1_MR25_Pos) /*!< 0x01000000 */
  9228. #define EXTI_D3PMR1_MR25 EXTI_D3PMR1_MR25_Msk /*!< Pending Mask Event for line 25 */
  9229. /******************* Bit definition for EXTI_D3PCR1L register ****************/
  9230. #define EXTI_D3PCR1L_PCS0_Pos (0U)
  9231. #define EXTI_D3PCR1L_PCS0_Msk (0x3UL << EXTI_D3PCR1L_PCS0_Pos) /*!< 0x00000003 */
  9232. #define EXTI_D3PCR1L_PCS0 EXTI_D3PCR1L_PCS0_Msk /*!< D3 Pending request clear input signal selection on line 0 */
  9233. #define EXTI_D3PCR1L_PCS1_Pos (2U)
  9234. #define EXTI_D3PCR1L_PCS1_Msk (0x3UL << EXTI_D3PCR1L_PCS1_Pos) /*!< 0x000000C0 */
  9235. #define EXTI_D3PCR1L_PCS1 EXTI_D3PCR1L_PCS1_Msk /*!< D3 Pending request clear input signal selection on line 1 */
  9236. #define EXTI_D3PCR1L_PCS2_Pos (4U)
  9237. #define EXTI_D3PCR1L_PCS2_Msk (0x3UL << EXTI_D3PCR1L_PCS2_Pos) /*!< 0x00000030 */
  9238. #define EXTI_D3PCR1L_PCS2 EXTI_D3PCR1L_PCS2_Msk /*!< D3 Pending request clear input signal selection on line 2 */
  9239. #define EXTI_D3PCR1L_PCS3_Pos (6U)
  9240. #define EXTI_D3PCR1L_PCS3_Msk (0x3UL << EXTI_D3PCR1L_PCS3_Pos) /*!< 0x000000C0 */
  9241. #define EXTI_D3PCR1L_PCS3 EXTI_D3PCR1L_PCS3_Msk /*!< D3 Pending request clear input signal selection on line 3 */
  9242. #define EXTI_D3PCR1L_PCS4_Pos (8U)
  9243. #define EXTI_D3PCR1L_PCS4_Msk (0x3UL << EXTI_D3PCR1L_PCS4_Pos) /*!< 0x00000300 */
  9244. #define EXTI_D3PCR1L_PCS4 EXTI_D3PCR1L_PCS4_Msk /*!< D3 Pending request clear input signal selection on line 4 */
  9245. #define EXTI_D3PCR1L_PCS5_Pos (10U)
  9246. #define EXTI_D3PCR1L_PCS5_Msk (0x3UL << EXTI_D3PCR1L_PCS5_Pos) /*!< 0x00000C00 */
  9247. #define EXTI_D3PCR1L_PCS5 EXTI_D3PCR1L_PCS5_Msk /*!< D3 Pending request clear input signal selection on line 5 */
  9248. #define EXTI_D3PCR1L_PCS6_Pos (12U)
  9249. #define EXTI_D3PCR1L_PCS6_Msk (0x3UL << EXTI_D3PCR1L_PCS6_Pos) /*!< 0x00003000 */
  9250. #define EXTI_D3PCR1L_PCS6 EXTI_D3PCR1L_PCS6_Msk /*!< D3 Pending request clear input signal selection on line 6 */
  9251. #define EXTI_D3PCR1L_PCS7_Pos (14U)
  9252. #define EXTI_D3PCR1L_PCS7_Msk (0x3UL << EXTI_D3PCR1L_PCS7_Pos) /*!< 0x0000C000 */
  9253. #define EXTI_D3PCR1L_PCS7 EXTI_D3PCR1L_PCS7_Msk /*!< D3 Pending request clear input signal selection on line 7 */
  9254. #define EXTI_D3PCR1L_PCS8_Pos (16U)
  9255. #define EXTI_D3PCR1L_PCS8_Msk (0x3UL << EXTI_D3PCR1L_PCS8_Pos) /*!< 0x00030000 */
  9256. #define EXTI_D3PCR1L_PCS8 EXTI_D3PCR1L_PCS8_Msk /*!< D3 Pending request clear input signal selection on line 8 */
  9257. #define EXTI_D3PCR1L_PCS9_Pos (18U)
  9258. #define EXTI_D3PCR1L_PCS9_Msk (0x3UL << EXTI_D3PCR1L_PCS9_Pos) /*!< 0x000C0000 */
  9259. #define EXTI_D3PCR1L_PCS9 EXTI_D3PCR1L_PCS9_Msk /*!< D3 Pending request clear input signal selection on line 9 */
  9260. #define EXTI_D3PCR1L_PCS10_Pos (20U)
  9261. #define EXTI_D3PCR1L_PCS10_Msk (0x3UL << EXTI_D3PCR1L_PCS10_Pos) /*!< 0x00300000 */
  9262. #define EXTI_D3PCR1L_PCS10 EXTI_D3PCR1L_PCS10_Msk /*!< D3 Pending request clear input signal selection on line 10*/
  9263. #define EXTI_D3PCR1L_PCS11_Pos (22U)
  9264. #define EXTI_D3PCR1L_PCS11_Msk (0x3UL << EXTI_D3PCR1L_PCS11_Pos) /*!< 0x00C00000 */
  9265. #define EXTI_D3PCR1L_PCS11 EXTI_D3PCR1L_PCS11_Msk /*!< D3 Pending request clear input signal selection on line 11*/
  9266. #define EXTI_D3PCR1L_PCS12_Pos (24U)
  9267. #define EXTI_D3PCR1L_PCS12_Msk (0x3UL << EXTI_D3PCR1L_PCS12_Pos) /*!< 0x03000000 */
  9268. #define EXTI_D3PCR1L_PCS12 EXTI_D3PCR1L_PCS12_Msk /*!< D3 Pending request clear input signal selection on line 12*/
  9269. #define EXTI_D3PCR1L_PCS13_Pos (26U)
  9270. #define EXTI_D3PCR1L_PCS13_Msk (0x3UL << EXTI_D3PCR1L_PCS13_Pos) /*!< 0x0C000000 */
  9271. #define EXTI_D3PCR1L_PCS13 EXTI_D3PCR1L_PCS13_Msk /*!< D3 Pending request clear input signal selection on line 13*/
  9272. #define EXTI_D3PCR1L_PCS14_Pos (28U)
  9273. #define EXTI_D3PCR1L_PCS14_Msk (0x3UL << EXTI_D3PCR1L_PCS14_Pos) /*!< 0x30000000 */
  9274. #define EXTI_D3PCR1L_PCS14 EXTI_D3PCR1L_PCS14_Msk /*!< D3 Pending request clear input signal selection on line 14*/
  9275. #define EXTI_D3PCR1L_PCS15_Pos (30U)
  9276. #define EXTI_D3PCR1L_PCS15_Msk (0x3UL << EXTI_D3PCR1L_PCS15_Pos) /*!< 0xC0000000 */
  9277. #define EXTI_D3PCR1L_PCS15 EXTI_D3PCR1L_PCS15_Msk /*!< D3 Pending request clear input signal selection on line 15*/
  9278. /******************* Bit definition for EXTI_D3PCR1H register ****************/
  9279. #define EXTI_D3PCR1H_PCS19_Pos (6U)
  9280. #define EXTI_D3PCR1H_PCS19_Msk (0x3UL << EXTI_D3PCR1H_PCS19_Pos) /*!< 0x000000C0 */
  9281. #define EXTI_D3PCR1H_PCS19 EXTI_D3PCR1H_PCS19_Msk /*!< D3 Pending request clear input signal selection on line 19 */
  9282. #define EXTI_D3PCR1H_PCS20_Pos (8U)
  9283. #define EXTI_D3PCR1H_PCS20_Msk (0x3UL << EXTI_D3PCR1H_PCS20_Pos) /*!< 0x00000300 */
  9284. #define EXTI_D3PCR1H_PCS20 EXTI_D3PCR1H_PCS20_Msk /*!< D3 Pending request clear input signal selection on line 20 */
  9285. #define EXTI_D3PCR1H_PCS21_Pos (10U)
  9286. #define EXTI_D3PCR1H_PCS21_Msk (0x3UL << EXTI_D3PCR1H_PCS21_Pos) /*!< 0x00000C00 */
  9287. #define EXTI_D3PCR1H_PCS21 EXTI_D3PCR1H_PCS21_Msk /*!< D3 Pending request clear input signal selection on line 21 */
  9288. #define EXTI_D3PCR1H_PCS25_Pos (18U)
  9289. #define EXTI_D3PCR1H_PCS25_Msk (0x3UL << EXTI_D3PCR1H_PCS25_Pos) /*!< 0x000C0000 */
  9290. #define EXTI_D3PCR1H_PCS25 EXTI_D3PCR1H_PCS25_Msk /*!< D3 Pending request clear input signal selection on line 25 */
  9291. /****************** Bit definition for EXTI_RTSR2 register *******************/
  9292. #define EXTI_RTSR2_TR_Pos (17U)
  9293. #define EXTI_RTSR2_TR_Msk (0x5UL << EXTI_RTSR2_TR_Pos) /*!< 0x000A0000 */
  9294. #define EXTI_RTSR2_TR EXTI_RTSR2_TR_Msk /*!< Rising trigger event configuration bit */
  9295. #define EXTI_RTSR2_TR49_Pos (17U)
  9296. #define EXTI_RTSR2_TR49_Msk (0x1UL << EXTI_RTSR2_TR49_Pos) /*!< 0x00020000 */
  9297. #define EXTI_RTSR2_TR49 EXTI_RTSR2_TR49_Msk /*!< Rising trigger event configuration bit of line 49 */
  9298. #define EXTI_RTSR2_TR51_Pos (19U)
  9299. #define EXTI_RTSR2_TR51_Msk (0x1UL << EXTI_RTSR2_TR51_Pos) /*!< 0x00080000 */
  9300. #define EXTI_RTSR2_TR51 EXTI_RTSR2_TR51_Msk /*!< Rising trigger event configuration bit of line 51 */
  9301. /****************** Bit definition for EXTI_FTSR2 register *******************/
  9302. #define EXTI_FTSR2_TR_Pos (17U)
  9303. #define EXTI_FTSR2_TR_Msk (0x5UL << EXTI_FTSR2_TR_Pos) /*!< 0x000A0000 */
  9304. #define EXTI_FTSR2_TR EXTI_FTSR2_TR_Msk /*!< Falling trigger event configuration bit */
  9305. #define EXTI_FTSR2_TR49_Pos (17U)
  9306. #define EXTI_FTSR2_TR49_Msk (0x1UL << EXTI_FTSR2_TR49_Pos) /*!< 0x00020000 */
  9307. #define EXTI_FTSR2_TR49 EXTI_FTSR2_TR49_Msk /*!< Falling trigger event configuration bit of line 49 */
  9308. #define EXTI_FTSR2_TR51_Pos (19U)
  9309. #define EXTI_FTSR2_TR51_Msk (0x1UL << EXTI_FTSR2_TR51_Pos) /*!< 0x00080000 */
  9310. #define EXTI_FTSR2_TR51 EXTI_FTSR2_TR51_Msk /*!< Falling trigger event configuration bit of line 51 */
  9311. /****************** Bit definition for EXTI_SWIER2 register ******************/
  9312. #define EXTI_SWIER2_SWIER49_Pos (17U)
  9313. #define EXTI_SWIER2_SWIER49_Msk (0x1UL << EXTI_SWIER2_SWIER49_Pos) /*!< 0x00020000 */
  9314. #define EXTI_SWIER2_SWIER49 EXTI_SWIER2_SWIER49_Msk /*!< Software Interrupt on line 49 */
  9315. #define EXTI_SWIER2_SWIER51_Pos (19U)
  9316. #define EXTI_SWIER2_SWIER51_Msk (0x1UL << EXTI_SWIER2_SWIER51_Pos) /*!< 0x00080000 */
  9317. #define EXTI_SWIER2_SWIER51 EXTI_SWIER2_SWIER51_Msk /*!< Software Interrupt on line 51 */
  9318. /****************** Bit definition for EXTI_D3PMR2 register ******************/
  9319. #define EXTI_D3PMR2_MR34_Pos (2U)
  9320. #define EXTI_D3PMR2_MR34_Msk (0x1UL << EXTI_D3PMR2_MR34_Pos) /*!< 0x00000004 */
  9321. #define EXTI_D3PMR2_MR34 EXTI_D3PMR2_MR34_Msk /*!< Pending Mask Event for line 34 */
  9322. #define EXTI_D3PMR2_MR35_Pos (3U)
  9323. #define EXTI_D3PMR2_MR35_Msk (0x1UL << EXTI_D3PMR2_MR35_Pos) /*!< 0x00000008 */
  9324. #define EXTI_D3PMR2_MR35 EXTI_D3PMR2_MR35_Msk /*!< Pending Mask Event for line 35 */
  9325. #define EXTI_D3PMR2_MR41_Pos (9U)
  9326. #define EXTI_D3PMR2_MR41_Msk (0x1UL << EXTI_D3PMR2_MR41_Pos) /*!< 0x00000200 */
  9327. #define EXTI_D3PMR2_MR41 EXTI_D3PMR2_MR41_Msk /*!< Pending Mask Event for line 41 */
  9328. #define EXTI_D3PMR2_MR48_Pos (16U)
  9329. #define EXTI_D3PMR2_MR48_Msk (0x1UL << EXTI_D3PMR2_MR48_Pos) /*!< 0x00010000 */
  9330. #define EXTI_D3PMR2_MR48 EXTI_D3PMR2_MR48_Msk /*!< Pending Mask Event for line 48 */
  9331. #define EXTI_D3PMR2_MR49_Pos (17U)
  9332. #define EXTI_D3PMR2_MR49_Msk (0x1UL << EXTI_D3PMR2_MR49_Pos) /*!< 0x00020000 */
  9333. #define EXTI_D3PMR2_MR49 EXTI_D3PMR2_MR49_Msk /*!< Pending Mask Event for line 49 */
  9334. #define EXTI_D3PMR2_MR50_Pos (18U)
  9335. #define EXTI_D3PMR2_MR50_Msk (0x1UL << EXTI_D3PMR2_MR50_Pos) /*!< 0x00040000 */
  9336. #define EXTI_D3PMR2_MR50 EXTI_D3PMR2_MR50_Msk /*!< Pending Mask Event for line 50 */
  9337. #define EXTI_D3PMR2_MR51_Pos (19U)
  9338. #define EXTI_D3PMR2_MR51_Msk (0x1UL << EXTI_D3PMR2_MR51_Pos) /*!< 0x00080000 */
  9339. #define EXTI_D3PMR2_MR51 EXTI_D3PMR2_MR51_Msk /*!< Pending Mask Event for line 51 */
  9340. #define EXTI_D3PMR2_MR52_Pos (20U)
  9341. #define EXTI_D3PMR2_MR52_Msk (0x1UL << EXTI_D3PMR2_MR52_Pos) /*!< 0x00100000 */
  9342. #define EXTI_D3PMR2_MR52 EXTI_D3PMR2_MR52_Msk /*!< Pending Mask Event for line 52 */
  9343. #define EXTI_D3PMR2_MR53_Pos (21U)
  9344. #define EXTI_D3PMR2_MR53_Msk (0x1UL << EXTI_D3PMR2_MR53_Pos) /*!< 0x00200000 */
  9345. #define EXTI_D3PMR2_MR53 EXTI_D3PMR2_MR53_Msk /*!< Pending Mask Event for line 53 */
  9346. /******************* Bit definition for EXTI_D3PCR2L register ****************/
  9347. #define EXTI_D3PCR2L_PCS34_Pos (4U)
  9348. #define EXTI_D3PCR2L_PCS34_Msk (0x3UL << EXTI_D3PCR2L_PCS34_Pos) /*!< 0x00000030 */
  9349. #define EXTI_D3PCR2L_PCS34 EXTI_D3PCR2L_PCS34_Msk /*!< D3 Pending request clear input signal selection on line 34 */
  9350. #define EXTI_D3PCR2L_PCS35_Pos (6U)
  9351. #define EXTI_D3PCR2L_PCS35_Msk (0x3UL << EXTI_D3PCR2L_PCS35_Pos) /*!< 0x000000C0 */
  9352. #define EXTI_D3PCR2L_PCS35 EXTI_D3PCR2L_PCS35_Msk /*!< D3 Pending request clear input signal selection on line 35 */
  9353. #define EXTI_D3PCR2L_PCS41_Pos (18U)
  9354. #define EXTI_D3PCR2L_PCS41_Msk (0x3UL << EXTI_D3PCR2L_PCS41_Pos) /*!< 0x000C0000 */
  9355. #define EXTI_D3PCR2L_PCS41 EXTI_D3PCR2L_PCS41_Msk /*!< D3 Pending request clear input signal selection on line 41 */
  9356. /******************* Bit definition for EXTI_D3PCR2H register ****************/
  9357. #define EXTI_D3PCR2H_PCS48_Pos (0U)
  9358. #define EXTI_D3PCR2H_PCS48_Msk (0x3UL << EXTI_D3PCR2H_PCS48_Pos) /*!< 0x00000003 */
  9359. #define EXTI_D3PCR2H_PCS48 EXTI_D3PCR2H_PCS48_Msk /*!< D3 Pending request clear input signal selection on line 48 */
  9360. #define EXTI_D3PCR2H_PCS49_Pos (2U)
  9361. #define EXTI_D3PCR2H_PCS49_Msk (0x3UL << EXTI_D3PCR2H_PCS49_Pos) /*!< 0x0000000C */
  9362. #define EXTI_D3PCR2H_PCS49 EXTI_D3PCR2H_PCS49_Msk /*!< D3 Pending request clear input signal selection on line 49 */
  9363. #define EXTI_D3PCR2H_PCS50_Pos (4U)
  9364. #define EXTI_D3PCR2H_PCS50_Msk (0x3UL << EXTI_D3PCR2H_PCS50_Pos) /*!< 0x00000030 */
  9365. #define EXTI_D3PCR2H_PCS50 EXTI_D3PCR2H_PCS50_Msk /*!< D3 Pending request clear input signal selection on line 50 */
  9366. #define EXTI_D3PCR2H_PCS51_Pos (6U)
  9367. #define EXTI_D3PCR2H_PCS51_Msk (0x3UL << EXTI_D3PCR2H_PCS51_Pos) /*!< 0x000000C0 */
  9368. #define EXTI_D3PCR2H_PCS51 EXTI_D3PCR2H_PCS51_Msk /*!< D3 Pending request clear input signal selection on line 51 */
  9369. #define EXTI_D3PCR2H_PCS52_Pos (8U)
  9370. #define EXTI_D3PCR2H_PCS52_Msk (0x3UL << EXTI_D3PCR2H_PCS52_Pos) /*!< 0x00000300 */
  9371. #define EXTI_D3PCR2H_PCS52 EXTI_D3PCR2H_PCS52_Msk /*!< D3 Pending request clear input signal selection on line 52 */
  9372. #define EXTI_D3PCR2H_PCS53_Pos (10U)
  9373. #define EXTI_D3PCR2H_PCS53_Msk (0x3UL << EXTI_D3PCR2H_PCS53_Pos) /*!< 0x00000C00 */
  9374. #define EXTI_D3PCR2H_PCS53 EXTI_D3PCR2H_PCS53_Msk /*!< D3 Pending request clear input signal selection on line 53 */
  9375. /****************** Bit definition for EXTI_RTSR3 register *******************/
  9376. #define EXTI_RTSR3_TR_Pos (21U)
  9377. #define EXTI_RTSR3_TR_Msk (0x3UL << EXTI_RTSR3_TR_Pos) /*!< 0x00600000 */
  9378. #define EXTI_RTSR3_TR EXTI_RTSR3_TR_Msk /*!< Rising trigger event configuration bit */
  9379. #define EXTI_RTSR3_TR85_Pos (21U)
  9380. #define EXTI_RTSR3_TR85_Msk (0x1UL << EXTI_RTSR3_TR85_Pos) /*!< 0x00200000 */
  9381. #define EXTI_RTSR3_TR85 EXTI_RTSR3_TR85_Msk /*!< Rising trigger event configuration bit of line 85 */
  9382. #define EXTI_RTSR3_TR86_Pos (22U)
  9383. #define EXTI_RTSR3_TR86_Msk (0x1UL << EXTI_RTSR3_TR86_Pos) /*!< 0x00400000 */
  9384. #define EXTI_RTSR3_TR86 EXTI_RTSR3_TR86_Msk /*!< Rising trigger event configuration bit of line 86 */
  9385. /****************** Bit definition for EXTI_FTSR3 register *******************/
  9386. #define EXTI_FTSR3_TR_Pos (21U)
  9387. #define EXTI_FTSR3_TR_Msk (0x3UL << EXTI_FTSR3_TR_Pos) /*!< 0x00600000 */
  9388. #define EXTI_FTSR3_TR EXTI_FTSR3_TR_Msk /*!< Falling trigger event configuration bit */
  9389. #define EXTI_FTSR3_TR85_Pos (21U)
  9390. #define EXTI_FTSR3_TR85_Msk (0x1UL << EXTI_FTSR3_TR85_Pos) /*!< 0x00200000 */
  9391. #define EXTI_FTSR3_TR85 EXTI_FTSR3_TR85_Msk /*!< Falling trigger event configuration bit of line 85 */
  9392. #define EXTI_FTSR3_TR86_Pos (22U)
  9393. #define EXTI_FTSR3_TR86_Msk (0x1UL << EXTI_FTSR3_TR86_Pos) /*!< 0x00400000 */
  9394. #define EXTI_FTSR3_TR86 EXTI_FTSR3_TR86_Msk /*!< Falling trigger event configuration bit of line 86 */
  9395. /****************** Bit definition for EXTI_SWIER3 register ******************/
  9396. #define EXTI_SWIER3_SWI_Pos (21U)
  9397. #define EXTI_SWIER3_SWI_Msk (0x3UL << EXTI_SWIER3_SWI_Pos) /*!< 0x00600000 */
  9398. #define EXTI_SWIER3_SWI EXTI_SWIER3_SWI_Msk /*!< Software Interrupt event bit */
  9399. #define EXTI_SWIER3_SWIER85_Pos (21U)
  9400. #define EXTI_SWIER3_SWIER85_Msk (0x1UL << EXTI_SWIER3_SWIER85_Pos) /*!< 0x00200000 */
  9401. #define EXTI_SWIER3_SWIER85 EXTI_SWIER3_SWIER85_Msk /*!< Software Interrupt on line 85 */
  9402. #define EXTI_SWIER3_SWIER86_Pos (22U)
  9403. #define EXTI_SWIER3_SWIER86_Msk (0x1UL << EXTI_SWIER3_SWIER86_Pos) /*!< 0x00400000 */
  9404. #define EXTI_SWIER3_SWIER86 EXTI_SWIER3_SWIER86_Msk /*!< Software Interrupt on line 86 */
  9405. /****************** Bit definition for EXTI_D3PMR3 register ******************/
  9406. #define EXTI_D3PMR3_MR88_Pos (24U)
  9407. #define EXTI_D3PMR3_MR88_Msk (0x1UL << EXTI_D3PMR3_MR88_Pos) /*!< 0x01000000 */
  9408. #define EXTI_D3PMR3_MR88 EXTI_D3PMR3_MR88_Msk /*!< Pending Mask Event for line 88 */
  9409. /******************* Bit definition for EXTI_D3PCR3H register ****************/
  9410. #define EXTI_D3PCR3H_PCS88_Pos (16U)
  9411. #define EXTI_D3PCR3H_PCS88_Msk (0x3UL << EXTI_D3PCR3H_PCS88_Pos) /*!< 0x00030000 */
  9412. #define EXTI_D3PCR3H_PCS88 EXTI_D3PCR3H_PCS88_Msk /*!< D3 Pending request clear input signal selection on line 88 */
  9413. /******************* Bit definition for EXTI_IMR1 register *******************/
  9414. #define EXTI_IMR1_IM_Pos (0U)
  9415. #define EXTI_IMR1_IM_Msk (0xFFFFFFFFUL << EXTI_IMR1_IM_Pos) /*!< 0xFFFFFFFF */
  9416. #define EXTI_IMR1_IM EXTI_IMR1_IM_Msk /*!< Interrupt Mask */
  9417. #define EXTI_IMR1_IM0_Pos (0U)
  9418. #define EXTI_IMR1_IM0_Msk (0x1UL << EXTI_IMR1_IM0_Pos) /*!< 0x00000001 */
  9419. #define EXTI_IMR1_IM0 EXTI_IMR1_IM0_Msk /*!< Interrupt Mask on line 0 */
  9420. #define EXTI_IMR1_IM1_Pos (1U)
  9421. #define EXTI_IMR1_IM1_Msk (0x1UL << EXTI_IMR1_IM1_Pos) /*!< 0x00000002 */
  9422. #define EXTI_IMR1_IM1 EXTI_IMR1_IM1_Msk /*!< Interrupt Mask on line 1 */
  9423. #define EXTI_IMR1_IM2_Pos (2U)
  9424. #define EXTI_IMR1_IM2_Msk (0x1UL << EXTI_IMR1_IM2_Pos) /*!< 0x00000004 */
  9425. #define EXTI_IMR1_IM2 EXTI_IMR1_IM2_Msk /*!< Interrupt Mask on line 2 */
  9426. #define EXTI_IMR1_IM3_Pos (3U)
  9427. #define EXTI_IMR1_IM3_Msk (0x1UL << EXTI_IMR1_IM3_Pos) /*!< 0x00000008 */
  9428. #define EXTI_IMR1_IM3 EXTI_IMR1_IM3_Msk /*!< Interrupt Mask on line 3 */
  9429. #define EXTI_IMR1_IM4_Pos (4U)
  9430. #define EXTI_IMR1_IM4_Msk (0x1UL << EXTI_IMR1_IM4_Pos) /*!< 0x00000010 */
  9431. #define EXTI_IMR1_IM4 EXTI_IMR1_IM4_Msk /*!< Interrupt Mask on line 4 */
  9432. #define EXTI_IMR1_IM5_Pos (5U)
  9433. #define EXTI_IMR1_IM5_Msk (0x1UL << EXTI_IMR1_IM5_Pos) /*!< 0x00000020 */
  9434. #define EXTI_IMR1_IM5 EXTI_IMR1_IM5_Msk /*!< Interrupt Mask on line 5 */
  9435. #define EXTI_IMR1_IM6_Pos (6U)
  9436. #define EXTI_IMR1_IM6_Msk (0x1UL << EXTI_IMR1_IM6_Pos) /*!< 0x00000040 */
  9437. #define EXTI_IMR1_IM6 EXTI_IMR1_IM6_Msk /*!< Interrupt Mask on line 6 */
  9438. #define EXTI_IMR1_IM7_Pos (7U)
  9439. #define EXTI_IMR1_IM7_Msk (0x1UL << EXTI_IMR1_IM7_Pos) /*!< 0x00000080 */
  9440. #define EXTI_IMR1_IM7 EXTI_IMR1_IM7_Msk /*!< Interrupt Mask on line 7 */
  9441. #define EXTI_IMR1_IM8_Pos (8U)
  9442. #define EXTI_IMR1_IM8_Msk (0x1UL << EXTI_IMR1_IM8_Pos) /*!< 0x00000100 */
  9443. #define EXTI_IMR1_IM8 EXTI_IMR1_IM8_Msk /*!< Interrupt Mask on line 8 */
  9444. #define EXTI_IMR1_IM9_Pos (9U)
  9445. #define EXTI_IMR1_IM9_Msk (0x1UL << EXTI_IMR1_IM9_Pos) /*!< 0x00000200 */
  9446. #define EXTI_IMR1_IM9 EXTI_IMR1_IM9_Msk /*!< Interrupt Mask on line 9 */
  9447. #define EXTI_IMR1_IM10_Pos (10U)
  9448. #define EXTI_IMR1_IM10_Msk (0x1UL << EXTI_IMR1_IM10_Pos) /*!< 0x00000400 */
  9449. #define EXTI_IMR1_IM10 EXTI_IMR1_IM10_Msk /*!< Interrupt Mask on line 10 */
  9450. #define EXTI_IMR1_IM11_Pos (11U)
  9451. #define EXTI_IMR1_IM11_Msk (0x1UL << EXTI_IMR1_IM11_Pos) /*!< 0x00000800 */
  9452. #define EXTI_IMR1_IM11 EXTI_IMR1_IM11_Msk /*!< Interrupt Mask on line 11 */
  9453. #define EXTI_IMR1_IM12_Pos (12U)
  9454. #define EXTI_IMR1_IM12_Msk (0x1UL << EXTI_IMR1_IM12_Pos) /*!< 0x00001000 */
  9455. #define EXTI_IMR1_IM12 EXTI_IMR1_IM12_Msk /*!< Interrupt Mask on line 12 */
  9456. #define EXTI_IMR1_IM13_Pos (13U)
  9457. #define EXTI_IMR1_IM13_Msk (0x1UL << EXTI_IMR1_IM13_Pos) /*!< 0x00002000 */
  9458. #define EXTI_IMR1_IM13 EXTI_IMR1_IM13_Msk /*!< Interrupt Mask on line 13 */
  9459. #define EXTI_IMR1_IM14_Pos (14U)
  9460. #define EXTI_IMR1_IM14_Msk (0x1UL << EXTI_IMR1_IM14_Pos) /*!< 0x00004000 */
  9461. #define EXTI_IMR1_IM14 EXTI_IMR1_IM14_Msk /*!< Interrupt Mask on line 14 */
  9462. #define EXTI_IMR1_IM15_Pos (15U)
  9463. #define EXTI_IMR1_IM15_Msk (0x1UL << EXTI_IMR1_IM15_Pos) /*!< 0x00008000 */
  9464. #define EXTI_IMR1_IM15 EXTI_IMR1_IM15_Msk /*!< Interrupt Mask on line 15 */
  9465. #define EXTI_IMR1_IM16_Pos (16U)
  9466. #define EXTI_IMR1_IM16_Msk (0x1UL << EXTI_IMR1_IM16_Pos) /*!< 0x00010000 */
  9467. #define EXTI_IMR1_IM16 EXTI_IMR1_IM16_Msk /*!< Interrupt Mask on line 16 */
  9468. #define EXTI_IMR1_IM17_Pos (17U)
  9469. #define EXTI_IMR1_IM17_Msk (0x1UL << EXTI_IMR1_IM17_Pos) /*!< 0x00020000 */
  9470. #define EXTI_IMR1_IM17 EXTI_IMR1_IM17_Msk /*!< Interrupt Mask on line 17 */
  9471. #define EXTI_IMR1_IM18_Pos (18U)
  9472. #define EXTI_IMR1_IM18_Msk (0x1UL << EXTI_IMR1_IM18_Pos) /*!< 0x00040000 */
  9473. #define EXTI_IMR1_IM18 EXTI_IMR1_IM18_Msk /*!< Interrupt Mask on line 18 */
  9474. #define EXTI_IMR1_IM19_Pos (19U)
  9475. #define EXTI_IMR1_IM19_Msk (0x1UL << EXTI_IMR1_IM19_Pos) /*!< 0x00080000 */
  9476. #define EXTI_IMR1_IM19 EXTI_IMR1_IM19_Msk /*!< Interrupt Mask on line 19 */
  9477. #define EXTI_IMR1_IM20_Pos (20U)
  9478. #define EXTI_IMR1_IM20_Msk (0x1UL << EXTI_IMR1_IM20_Pos) /*!< 0x00100000 */
  9479. #define EXTI_IMR1_IM20 EXTI_IMR1_IM20_Msk /*!< Interrupt Mask on line 20 */
  9480. #define EXTI_IMR1_IM21_Pos (21U)
  9481. #define EXTI_IMR1_IM21_Msk (0x1UL << EXTI_IMR1_IM21_Pos) /*!< 0x00200000 */
  9482. #define EXTI_IMR1_IM21 EXTI_IMR1_IM21_Msk /*!< Interrupt Mask on line 21 */
  9483. #define EXTI_IMR1_IM22_Pos (22U)
  9484. #define EXTI_IMR1_IM22_Msk (0x1UL << EXTI_IMR1_IM22_Pos) /*!< 0x00400000 */
  9485. #define EXTI_IMR1_IM22 EXTI_IMR1_IM22_Msk /*!< Interrupt Mask on line 22 */
  9486. #define EXTI_IMR1_IM23_Pos (23U)
  9487. #define EXTI_IMR1_IM23_Msk (0x1UL << EXTI_IMR1_IM23_Pos) /*!< 0x00800000 */
  9488. #define EXTI_IMR1_IM23 EXTI_IMR1_IM23_Msk /*!< Interrupt Mask on line 23 */
  9489. #define EXTI_IMR1_IM24_Pos (24U)
  9490. #define EXTI_IMR1_IM24_Msk (0x1UL << EXTI_IMR1_IM24_Pos) /*!< 0x01000000 */
  9491. #define EXTI_IMR1_IM24 EXTI_IMR1_IM24_Msk /*!< Interrupt Mask on line 24 */
  9492. #define EXTI_IMR1_IM25_Pos (25U)
  9493. #define EXTI_IMR1_IM25_Msk (0x1UL << EXTI_IMR1_IM25_Pos) /*!< 0x02000000 */
  9494. #define EXTI_IMR1_IM25 EXTI_IMR1_IM25_Msk /*!< Interrupt Mask on line 25 */
  9495. #define EXTI_IMR1_IM26_Pos (26U)
  9496. #define EXTI_IMR1_IM26_Msk (0x1UL << EXTI_IMR1_IM26_Pos) /*!< 0x04000000 */
  9497. #define EXTI_IMR1_IM26 EXTI_IMR1_IM26_Msk /*!< Interrupt Mask on line 26 */
  9498. #define EXTI_IMR1_IM27_Pos (27U)
  9499. #define EXTI_IMR1_IM27_Msk (0x1UL << EXTI_IMR1_IM27_Pos) /*!< 0x08000000 */
  9500. #define EXTI_IMR1_IM27 EXTI_IMR1_IM27_Msk /*!< Interrupt Mask on line 27 */
  9501. #define EXTI_IMR1_IM28_Pos (28U)
  9502. #define EXTI_IMR1_IM28_Msk (0x1UL << EXTI_IMR1_IM28_Pos) /*!< 0x10000000 */
  9503. #define EXTI_IMR1_IM28 EXTI_IMR1_IM28_Msk /*!< Interrupt Mask on line 28 */
  9504. #define EXTI_IMR1_IM29_Pos (29U)
  9505. #define EXTI_IMR1_IM29_Msk (0x1UL << EXTI_IMR1_IM29_Pos) /*!< 0x20000000 */
  9506. #define EXTI_IMR1_IM29 EXTI_IMR1_IM29_Msk /*!< Interrupt Mask on line 29 */
  9507. #define EXTI_IMR1_IM30_Pos (30U)
  9508. #define EXTI_IMR1_IM30_Msk (0x1UL << EXTI_IMR1_IM30_Pos) /*!< 0x40000000 */
  9509. #define EXTI_IMR1_IM30 EXTI_IMR1_IM30_Msk /*!< Interrupt Mask on line 30 */
  9510. #define EXTI_IMR1_IM31_Pos (31U)
  9511. #define EXTI_IMR1_IM31_Msk (0x1UL << EXTI_IMR1_IM31_Pos) /*!< 0x80000000 */
  9512. #define EXTI_IMR1_IM31 EXTI_IMR1_IM31_Msk /*!< Interrupt Mask on line 31 */
  9513. /******************* Bit definition for EXTI_EMR1 register *******************/
  9514. #define EXTI_EMR1_EM_Pos (0U)
  9515. #define EXTI_EMR1_EM_Msk (0xFFFFFFFFUL << EXTI_EMR1_EM_Pos) /*!< 0xFFFFFFFF */
  9516. #define EXTI_EMR1_EM EXTI_EMR1_EM_Msk /*!< Event Mask */
  9517. #define EXTI_EMR1_EM0_Pos (0U)
  9518. #define EXTI_EMR1_EM0_Msk (0x1UL << EXTI_EMR1_EM0_Pos) /*!< 0x00000001 */
  9519. #define EXTI_EMR1_EM0 EXTI_EMR1_EM0_Msk /*!< Event Mask on line 0 */
  9520. #define EXTI_EMR1_EM1_Pos (1U)
  9521. #define EXTI_EMR1_EM1_Msk (0x1UL << EXTI_EMR1_EM1_Pos) /*!< 0x00000002 */
  9522. #define EXTI_EMR1_EM1 EXTI_EMR1_EM1_Msk /*!< Event Mask on line 1 */
  9523. #define EXTI_EMR1_EM2_Pos (2U)
  9524. #define EXTI_EMR1_EM2_Msk (0x1UL << EXTI_EMR1_EM2_Pos) /*!< 0x00000004 */
  9525. #define EXTI_EMR1_EM2 EXTI_EMR1_EM2_Msk /*!< Event Mask on line 2 */
  9526. #define EXTI_EMR1_EM3_Pos (3U)
  9527. #define EXTI_EMR1_EM3_Msk (0x1UL << EXTI_EMR1_EM3_Pos) /*!< 0x00000008 */
  9528. #define EXTI_EMR1_EM3 EXTI_EMR1_EM3_Msk /*!< Event Mask on line 3 */
  9529. #define EXTI_EMR1_EM4_Pos (4U)
  9530. #define EXTI_EMR1_EM4_Msk (0x1UL << EXTI_EMR1_EM4_Pos) /*!< 0x00000010 */
  9531. #define EXTI_EMR1_EM4 EXTI_EMR1_EM4_Msk /*!< Event Mask on line 4 */
  9532. #define EXTI_EMR1_EM5_Pos (5U)
  9533. #define EXTI_EMR1_EM5_Msk (0x1UL << EXTI_EMR1_EM5_Pos) /*!< 0x00000020 */
  9534. #define EXTI_EMR1_EM5 EXTI_EMR1_EM5_Msk /*!< Event Mask on line 5 */
  9535. #define EXTI_EMR1_EM6_Pos (6U)
  9536. #define EXTI_EMR1_EM6_Msk (0x1UL << EXTI_EMR1_EM6_Pos) /*!< 0x00000040 */
  9537. #define EXTI_EMR1_EM6 EXTI_EMR1_EM6_Msk /*!< Event Mask on line 6 */
  9538. #define EXTI_EMR1_EM7_Pos (7U)
  9539. #define EXTI_EMR1_EM7_Msk (0x1UL << EXTI_EMR1_EM7_Pos) /*!< 0x00000080 */
  9540. #define EXTI_EMR1_EM7 EXTI_EMR1_EM7_Msk /*!< Event Mask on line 7 */
  9541. #define EXTI_EMR1_EM8_Pos (8U)
  9542. #define EXTI_EMR1_EM8_Msk (0x1UL << EXTI_EMR1_EM8_Pos) /*!< 0x00000100 */
  9543. #define EXTI_EMR1_EM8 EXTI_EMR1_EM8_Msk /*!< Event Mask on line 8 */
  9544. #define EXTI_EMR1_EM9_Pos (9U)
  9545. #define EXTI_EMR1_EM9_Msk (0x1UL << EXTI_EMR1_EM9_Pos) /*!< 0x00000200 */
  9546. #define EXTI_EMR1_EM9 EXTI_EMR1_EM9_Msk /*!< Event Mask on line 9 */
  9547. #define EXTI_EMR1_EM10_Pos (10U)
  9548. #define EXTI_EMR1_EM10_Msk (0x1UL << EXTI_EMR1_EM10_Pos) /*!< 0x00000400 */
  9549. #define EXTI_EMR1_EM10 EXTI_EMR1_EM10_Msk /*!< Event Mask on line 10 */
  9550. #define EXTI_EMR1_EM11_Pos (11U)
  9551. #define EXTI_EMR1_EM11_Msk (0x1UL << EXTI_EMR1_EM11_Pos) /*!< 0x00000800 */
  9552. #define EXTI_EMR1_EM11 EXTI_EMR1_EM11_Msk /*!< Event Mask on line 11 */
  9553. #define EXTI_EMR1_EM12_Pos (12U)
  9554. #define EXTI_EMR1_EM12_Msk (0x1UL << EXTI_EMR1_EM12_Pos) /*!< 0x00001000 */
  9555. #define EXTI_EMR1_EM12 EXTI_EMR1_EM12_Msk /*!< Event Mask on line 12 */
  9556. #define EXTI_EMR1_EM13_Pos (13U)
  9557. #define EXTI_EMR1_EM13_Msk (0x1UL << EXTI_EMR1_EM13_Pos) /*!< 0x00002000 */
  9558. #define EXTI_EMR1_EM13 EXTI_EMR1_EM13_Msk /*!< Event Mask on line 13 */
  9559. #define EXTI_EMR1_EM14_Pos (14U)
  9560. #define EXTI_EMR1_EM14_Msk (0x1UL << EXTI_EMR1_EM14_Pos) /*!< 0x00004000 */
  9561. #define EXTI_EMR1_EM14 EXTI_EMR1_EM14_Msk /*!< Event Mask on line 14 */
  9562. #define EXTI_EMR1_EM15_Pos (15U)
  9563. #define EXTI_EMR1_EM15_Msk (0x1UL << EXTI_EMR1_EM15_Pos) /*!< 0x00008000 */
  9564. #define EXTI_EMR1_EM15 EXTI_EMR1_EM15_Msk /*!< Event Mask on line 15 */
  9565. #define EXTI_EMR1_EM16_Pos (16U)
  9566. #define EXTI_EMR1_EM16_Msk (0x1UL << EXTI_EMR1_EM16_Pos) /*!< 0x00010000 */
  9567. #define EXTI_EMR1_EM16 EXTI_EMR1_EM16_Msk /*!< Event Mask on line 16 */
  9568. #define EXTI_EMR1_EM17_Pos (17U)
  9569. #define EXTI_EMR1_EM17_Msk (0x1UL << EXTI_EMR1_EM17_Pos) /*!< 0x00020000 */
  9570. #define EXTI_EMR1_EM17 EXTI_EMR1_EM17_Msk /*!< Event Mask on line 17 */
  9571. #define EXTI_EMR1_EM18_Pos (18U)
  9572. #define EXTI_EMR1_EM18_Msk (0x1UL << EXTI_EMR1_EM18_Pos) /*!< 0x00040000 */
  9573. #define EXTI_EMR1_EM18 EXTI_EMR1_EM18_Msk /*!< Event Mask on line 18 */
  9574. #define EXTI_EMR1_EM20_Pos (20U)
  9575. #define EXTI_EMR1_EM20_Msk (0x1UL << EXTI_EMR1_EM20_Pos) /*!< 0x00100000 */
  9576. #define EXTI_EMR1_EM20 EXTI_EMR1_EM20_Msk /*!< Event Mask on line 20 */
  9577. #define EXTI_EMR1_EM21_Pos (21U)
  9578. #define EXTI_EMR1_EM21_Msk (0x1UL << EXTI_EMR1_EM21_Pos) /*!< 0x00200000 */
  9579. #define EXTI_EMR1_EM21 EXTI_EMR1_EM21_Msk /*!< Event Mask on line 21 */
  9580. #define EXTI_EMR1_EM22_Pos (22U)
  9581. #define EXTI_EMR1_EM22_Msk (0x1UL << EXTI_EMR1_EM22_Pos) /*!< 0x00400000 */
  9582. #define EXTI_EMR1_EM22 EXTI_EMR1_EM22_Msk /*!< Event Mask on line 22 */
  9583. #define EXTI_EMR1_EM23_Pos (23U)
  9584. #define EXTI_EMR1_EM23_Msk (0x1UL << EXTI_EMR1_EM23_Pos) /*!< 0x00800000 */
  9585. #define EXTI_EMR1_EM23 EXTI_EMR1_EM23_Msk /*!< Event Mask on line 23 */
  9586. #define EXTI_EMR1_EM24_Pos (24U)
  9587. #define EXTI_EMR1_EM24_Msk (0x1UL << EXTI_EMR1_EM24_Pos) /*!< 0x01000000 */
  9588. #define EXTI_EMR1_EM24 EXTI_EMR1_EM24_Msk /*!< Event Mask on line 24 */
  9589. #define EXTI_EMR1_EM25_Pos (25U)
  9590. #define EXTI_EMR1_EM25_Msk (0x1UL << EXTI_EMR1_EM25_Pos) /*!< 0x02000000 */
  9591. #define EXTI_EMR1_EM25 EXTI_EMR1_EM25_Msk /*!< Event Mask on line 25 */
  9592. #define EXTI_EMR1_EM26_Pos (26U)
  9593. #define EXTI_EMR1_EM26_Msk (0x1UL << EXTI_EMR1_EM26_Pos) /*!< 0x04000000 */
  9594. #define EXTI_EMR1_EM26 EXTI_EMR1_EM26_Msk /*!< Event Mask on line 26 */
  9595. #define EXTI_EMR1_EM27_Pos (27U)
  9596. #define EXTI_EMR1_EM27_Msk (0x1UL << EXTI_EMR1_EM27_Pos) /*!< 0x08000000 */
  9597. #define EXTI_EMR1_EM27 EXTI_EMR1_EM27_Msk /*!< Event Mask on line 27 */
  9598. #define EXTI_EMR1_EM28_Pos (28U)
  9599. #define EXTI_EMR1_EM28_Msk (0x1UL << EXTI_EMR1_EM28_Pos) /*!< 0x10000000 */
  9600. #define EXTI_EMR1_EM28 EXTI_EMR1_EM28_Msk /*!< Event Mask on line 28 */
  9601. #define EXTI_EMR1_EM29_Pos (29U)
  9602. #define EXTI_EMR1_EM29_Msk (0x1UL << EXTI_EMR1_EM29_Pos) /*!< 0x20000000 */
  9603. #define EXTI_EMR1_EM29 EXTI_EMR1_EM29_Msk /*!< Event Mask on line 29 */
  9604. #define EXTI_EMR1_EM30_Pos (30U)
  9605. #define EXTI_EMR1_EM30_Msk (0x1UL << EXTI_EMR1_EM30_Pos) /*!< 0x40000000 */
  9606. #define EXTI_EMR1_EM30 EXTI_EMR1_EM30_Msk /*!< Event Mask on line 30 */
  9607. #define EXTI_EMR1_EM31_Pos (31U)
  9608. #define EXTI_EMR1_EM31_Msk (0x1UL << EXTI_EMR1_EM31_Pos) /*!< 0x80000000 */
  9609. #define EXTI_EMR1_EM31 EXTI_EMR1_EM31_Msk /*!< Event Mask on line 31 */
  9610. /******************* Bit definition for EXTI_PR1 register ********************/
  9611. #define EXTI_PR1_PR_Pos (0U)
  9612. #define EXTI_PR1_PR_Msk (0x3FFFFFUL << EXTI_PR1_PR_Pos) /*!< 0x003FFFFF */
  9613. #define EXTI_PR1_PR EXTI_PR1_PR_Msk /*!< Pending bit */
  9614. #define EXTI_PR1_PR0_Pos (0U)
  9615. #define EXTI_PR1_PR0_Msk (0x1UL << EXTI_PR1_PR0_Pos) /*!< 0x00000001 */
  9616. #define EXTI_PR1_PR0 EXTI_PR1_PR0_Msk /*!< Pending bit for line 0 */
  9617. #define EXTI_PR1_PR1_Pos (1U)
  9618. #define EXTI_PR1_PR1_Msk (0x1UL << EXTI_PR1_PR1_Pos) /*!< 0x00000002 */
  9619. #define EXTI_PR1_PR1 EXTI_PR1_PR1_Msk /*!< Pending bit for line 1 */
  9620. #define EXTI_PR1_PR2_Pos (2U)
  9621. #define EXTI_PR1_PR2_Msk (0x1UL << EXTI_PR1_PR2_Pos) /*!< 0x00000004 */
  9622. #define EXTI_PR1_PR2 EXTI_PR1_PR2_Msk /*!< Pending bit for line 2 */
  9623. #define EXTI_PR1_PR3_Pos (3U)
  9624. #define EXTI_PR1_PR3_Msk (0x1UL << EXTI_PR1_PR3_Pos) /*!< 0x00000008 */
  9625. #define EXTI_PR1_PR3 EXTI_PR1_PR3_Msk /*!< Pending bit for line 3 */
  9626. #define EXTI_PR1_PR4_Pos (4U)
  9627. #define EXTI_PR1_PR4_Msk (0x1UL << EXTI_PR1_PR4_Pos) /*!< 0x00000010 */
  9628. #define EXTI_PR1_PR4 EXTI_PR1_PR4_Msk /*!< Pending bit for line 4 */
  9629. #define EXTI_PR1_PR5_Pos (5U)
  9630. #define EXTI_PR1_PR5_Msk (0x1UL << EXTI_PR1_PR5_Pos) /*!< 0x00000020 */
  9631. #define EXTI_PR1_PR5 EXTI_PR1_PR5_Msk /*!< Pending bit for line 5 */
  9632. #define EXTI_PR1_PR6_Pos (6U)
  9633. #define EXTI_PR1_PR6_Msk (0x1UL << EXTI_PR1_PR6_Pos) /*!< 0x00000040 */
  9634. #define EXTI_PR1_PR6 EXTI_PR1_PR6_Msk /*!< Pending bit for line 6 */
  9635. #define EXTI_PR1_PR7_Pos (7U)
  9636. #define EXTI_PR1_PR7_Msk (0x1UL << EXTI_PR1_PR7_Pos) /*!< 0x00000080 */
  9637. #define EXTI_PR1_PR7 EXTI_PR1_PR7_Msk /*!< Pending bit for line 7 */
  9638. #define EXTI_PR1_PR8_Pos (8U)
  9639. #define EXTI_PR1_PR8_Msk (0x1UL << EXTI_PR1_PR8_Pos) /*!< 0x00000100 */
  9640. #define EXTI_PR1_PR8 EXTI_PR1_PR8_Msk /*!< Pending bit for line 8 */
  9641. #define EXTI_PR1_PR9_Pos (9U)
  9642. #define EXTI_PR1_PR9_Msk (0x1UL << EXTI_PR1_PR9_Pos) /*!< 0x00000200 */
  9643. #define EXTI_PR1_PR9 EXTI_PR1_PR9_Msk /*!< Pending bit for line 9 */
  9644. #define EXTI_PR1_PR10_Pos (10U)
  9645. #define EXTI_PR1_PR10_Msk (0x1UL << EXTI_PR1_PR10_Pos) /*!< 0x00000400 */
  9646. #define EXTI_PR1_PR10 EXTI_PR1_PR10_Msk /*!< Pending bit for line 10 */
  9647. #define EXTI_PR1_PR11_Pos (11U)
  9648. #define EXTI_PR1_PR11_Msk (0x1UL << EXTI_PR1_PR11_Pos) /*!< 0x00000800 */
  9649. #define EXTI_PR1_PR11 EXTI_PR1_PR11_Msk /*!< Pending bit for line 11 */
  9650. #define EXTI_PR1_PR12_Pos (12U)
  9651. #define EXTI_PR1_PR12_Msk (0x1UL << EXTI_PR1_PR12_Pos) /*!< 0x00001000 */
  9652. #define EXTI_PR1_PR12 EXTI_PR1_PR12_Msk /*!< Pending bit for line 12 */
  9653. #define EXTI_PR1_PR13_Pos (13U)
  9654. #define EXTI_PR1_PR13_Msk (0x1UL << EXTI_PR1_PR13_Pos) /*!< 0x00002000 */
  9655. #define EXTI_PR1_PR13 EXTI_PR1_PR13_Msk /*!< Pending bit for line 13 */
  9656. #define EXTI_PR1_PR14_Pos (14U)
  9657. #define EXTI_PR1_PR14_Msk (0x1UL << EXTI_PR1_PR14_Pos) /*!< 0x00004000 */
  9658. #define EXTI_PR1_PR14 EXTI_PR1_PR14_Msk /*!< Pending bit for line 14 */
  9659. #define EXTI_PR1_PR15_Pos (15U)
  9660. #define EXTI_PR1_PR15_Msk (0x1UL << EXTI_PR1_PR15_Pos) /*!< 0x00008000 */
  9661. #define EXTI_PR1_PR15 EXTI_PR1_PR15_Msk /*!< Pending bit for line 15 */
  9662. #define EXTI_PR1_PR16_Pos (16U)
  9663. #define EXTI_PR1_PR16_Msk (0x1UL << EXTI_PR1_PR16_Pos) /*!< 0x00010000 */
  9664. #define EXTI_PR1_PR16 EXTI_PR1_PR16_Msk /*!< Pending bit for line 16 */
  9665. #define EXTI_PR1_PR17_Pos (17U)
  9666. #define EXTI_PR1_PR17_Msk (0x1UL << EXTI_PR1_PR17_Pos) /*!< 0x00020000 */
  9667. #define EXTI_PR1_PR17 EXTI_PR1_PR17_Msk /*!< Pending bit for line 17 */
  9668. #define EXTI_PR1_PR18_Pos (18U)
  9669. #define EXTI_PR1_PR18_Msk (0x1UL << EXTI_PR1_PR18_Pos) /*!< 0x00040000 */
  9670. #define EXTI_PR1_PR18 EXTI_PR1_PR18_Msk /*!< Pending bit for line 18 */
  9671. #define EXTI_PR1_PR19_Pos (19U)
  9672. #define EXTI_PR1_PR19_Msk (0x1UL << EXTI_PR1_PR19_Pos) /*!< 0x00080000 */
  9673. #define EXTI_PR1_PR19 EXTI_PR1_PR19_Msk /*!< Pending bit for line 19 */
  9674. #define EXTI_PR1_PR20_Pos (20U)
  9675. #define EXTI_PR1_PR20_Msk (0x1UL << EXTI_PR1_PR20_Pos) /*!< 0x00100000 */
  9676. #define EXTI_PR1_PR20 EXTI_PR1_PR20_Msk /*!< Pending bit for line 20 */
  9677. #define EXTI_PR1_PR21_Pos (21U)
  9678. #define EXTI_PR1_PR21_Msk (0x1UL << EXTI_PR1_PR21_Pos) /*!< 0x00200000 */
  9679. #define EXTI_PR1_PR21 EXTI_PR1_PR21_Msk /*!< Pending bit for line 21 */
  9680. /******************* Bit definition for EXTI_IMR2 register *******************/
  9681. #define EXTI_IMR2_IM_Pos (0U)
  9682. #define EXTI_IMR2_IM_Msk (0xFFFFDFFFUL << EXTI_IMR2_IM_Pos) /*!< 0xFFFFDFFF */
  9683. #define EXTI_IMR2_IM EXTI_IMR2_IM_Msk /*!< Interrupt Mask */
  9684. #define EXTI_IMR2_IM32_Pos (0U)
  9685. #define EXTI_IMR2_IM32_Msk (0x1UL << EXTI_IMR2_IM32_Pos) /*!< 0x00000001 */
  9686. #define EXTI_IMR2_IM32 EXTI_IMR2_IM32_Msk /*!< Interrupt Mask on line 32 */
  9687. #define EXTI_IMR2_IM33_Pos (1U)
  9688. #define EXTI_IMR2_IM33_Msk (0x1UL << EXTI_IMR2_IM33_Pos) /*!< 0x00000002 */
  9689. #define EXTI_IMR2_IM33 EXTI_IMR2_IM33_Msk /*!< Interrupt Mask on line 33 */
  9690. #define EXTI_IMR2_IM34_Pos (2U)
  9691. #define EXTI_IMR2_IM34_Msk (0x1UL << EXTI_IMR2_IM34_Pos) /*!< 0x00000004 */
  9692. #define EXTI_IMR2_IM34 EXTI_IMR2_IM34_Msk /*!< Interrupt Mask on line 34 */
  9693. #define EXTI_IMR2_IM35_Pos (3U)
  9694. #define EXTI_IMR2_IM35_Msk (0x1UL << EXTI_IMR2_IM35_Pos) /*!< 0x00000008 */
  9695. #define EXTI_IMR2_IM35 EXTI_IMR2_IM35_Msk /*!< Interrupt Mask on line 35 */
  9696. #define EXTI_IMR2_IM36_Pos (4U)
  9697. #define EXTI_IMR2_IM36_Msk (0x1UL << EXTI_IMR2_IM36_Pos) /*!< 0x00000010 */
  9698. #define EXTI_IMR2_IM36 EXTI_IMR2_IM36_Msk /*!< Interrupt Mask on line 36 */
  9699. #define EXTI_IMR2_IM37_Pos (5U)
  9700. #define EXTI_IMR2_IM37_Msk (0x1UL << EXTI_IMR2_IM37_Pos) /*!< 0x00000020 */
  9701. #define EXTI_IMR2_IM37 EXTI_IMR2_IM37_Msk /*!< Interrupt Mask on line 37 */
  9702. #define EXTI_IMR2_IM38_Pos (6U)
  9703. #define EXTI_IMR2_IM38_Msk (0x1UL << EXTI_IMR2_IM38_Pos) /*!< 0x00000040 */
  9704. #define EXTI_IMR2_IM38 EXTI_IMR2_IM38_Msk /*!< Interrupt Mask on line 38 */
  9705. #define EXTI_IMR2_IM39_Pos (7U)
  9706. #define EXTI_IMR2_IM39_Msk (0x1UL << EXTI_IMR2_IM39_Pos) /*!< 0x00000080 */
  9707. #define EXTI_IMR2_IM39 EXTI_IMR2_IM39_Msk /*!< Interrupt Mask on line 39 */
  9708. #define EXTI_IMR2_IM40_Pos (8U)
  9709. #define EXTI_IMR2_IM40_Msk (0x1UL << EXTI_IMR2_IM40_Pos) /*!< 0x00000100 */
  9710. #define EXTI_IMR2_IM40 EXTI_IMR2_IM40_Msk /*!< Interrupt Mask on line 40 */
  9711. #define EXTI_IMR2_IM41_Pos (9U)
  9712. #define EXTI_IMR2_IM41_Msk (0x1UL << EXTI_IMR2_IM41_Pos) /*!< 0x00000200 */
  9713. #define EXTI_IMR2_IM41 EXTI_IMR2_IM41_Msk /*!< Interrupt Mask on line 41 */
  9714. #define EXTI_IMR2_IM42_Pos (10U)
  9715. #define EXTI_IMR2_IM42_Msk (0x1UL << EXTI_IMR2_IM42_Pos) /*!< 0x00000400 */
  9716. #define EXTI_IMR2_IM42 EXTI_IMR2_IM42_Msk /*!< Interrupt Mask on line 42 */
  9717. #define EXTI_IMR2_IM43_Pos (11U)
  9718. #define EXTI_IMR2_IM43_Msk (0x1UL << EXTI_IMR2_IM43_Pos) /*!< 0x00000800 */
  9719. #define EXTI_IMR2_IM43 EXTI_IMR2_IM43_Msk /*!< Interrupt Mask on line 43 */
  9720. #define EXTI_IMR2_IM47_Pos (15U)
  9721. #define EXTI_IMR2_IM47_Msk (0x1UL << EXTI_IMR2_IM47_Pos) /*!< 0x00008000 */
  9722. #define EXTI_IMR2_IM47 EXTI_IMR2_IM47_Msk /*!< Interrupt Mask on line 47 */
  9723. #define EXTI_IMR2_IM48_Pos (16U)
  9724. #define EXTI_IMR2_IM48_Msk (0x1UL << EXTI_IMR2_IM48_Pos) /*!< 0x00010000 */
  9725. #define EXTI_IMR2_IM48 EXTI_IMR2_IM48_Msk /*!< Interrupt Mask on line 48 */
  9726. #define EXTI_IMR2_IM49_Pos (17U)
  9727. #define EXTI_IMR2_IM49_Msk (0x1UL << EXTI_IMR2_IM49_Pos) /*!< 0x00020000 */
  9728. #define EXTI_IMR2_IM49 EXTI_IMR2_IM49_Msk /*!< Interrupt Mask on line 49 */
  9729. #define EXTI_IMR2_IM50_Pos (18U)
  9730. #define EXTI_IMR2_IM50_Msk (0x1UL << EXTI_IMR2_IM50_Pos) /*!< 0x00040000 */
  9731. #define EXTI_IMR2_IM50 EXTI_IMR2_IM50_Msk /*!< Interrupt Mask on line 50 */
  9732. #define EXTI_IMR2_IM51_Pos (19U)
  9733. #define EXTI_IMR2_IM51_Msk (0x1UL << EXTI_IMR2_IM51_Pos) /*!< 0x00080000 */
  9734. #define EXTI_IMR2_IM51 EXTI_IMR2_IM51_Msk /*!< Interrupt Mask on line 51 */
  9735. #define EXTI_IMR2_IM52_Pos (20U)
  9736. #define EXTI_IMR2_IM52_Msk (0x1UL << EXTI_IMR2_IM52_Pos) /*!< 0x00100000 */
  9737. #define EXTI_IMR2_IM52 EXTI_IMR2_IM52_Msk /*!< Interrupt Mask on line 52 */
  9738. #define EXTI_IMR2_IM53_Pos (21U)
  9739. #define EXTI_IMR2_IM53_Msk (0x1UL << EXTI_IMR2_IM53_Pos) /*!< 0x00200000 */
  9740. #define EXTI_IMR2_IM53 EXTI_IMR2_IM53_Msk /*!< Interrupt Mask on line 53 */
  9741. #define EXTI_IMR2_IM54_Pos (22U)
  9742. #define EXTI_IMR2_IM54_Msk (0x1UL << EXTI_IMR2_IM54_Pos) /*!< 0x00400000 */
  9743. #define EXTI_IMR2_IM54 EXTI_IMR2_IM54_Msk /*!< Interrupt Mask on line 54 */
  9744. #define EXTI_IMR2_IM55_Pos (23U)
  9745. #define EXTI_IMR2_IM55_Msk (0x1UL << EXTI_IMR2_IM55_Pos) /*!< 0x00800000 */
  9746. #define EXTI_IMR2_IM55 EXTI_IMR2_IM55_Msk /*!< Interrupt Mask on line 55 */
  9747. #define EXTI_IMR2_IM56_Pos (24U)
  9748. #define EXTI_IMR2_IM56_Msk (0x1UL << EXTI_IMR2_IM56_Pos) /*!< 0x01000000 */
  9749. #define EXTI_IMR2_IM56 EXTI_IMR2_IM56_Msk /*!< Interrupt Mask on line 56 */
  9750. #define EXTI_IMR2_IM58_Pos (26U)
  9751. #define EXTI_IMR2_IM58_Msk (0x1UL << EXTI_IMR2_IM58_Pos) /*!< 0x04000000 */
  9752. #define EXTI_IMR2_IM58 EXTI_IMR2_IM58_Msk /*!< Interrupt Mask on line 58 */
  9753. #define EXTI_IMR2_IM60_Pos (28U)
  9754. #define EXTI_IMR2_IM60_Msk (0x1UL << EXTI_IMR2_IM60_Pos) /*!< 0x10000000 */
  9755. #define EXTI_IMR2_IM60 EXTI_IMR2_IM60_Msk /*!< Interrupt Mask on line 60 */
  9756. #define EXTI_IMR2_IM61_Pos (29U)
  9757. #define EXTI_IMR2_IM61_Msk (0x1UL << EXTI_IMR2_IM61_Pos) /*!< 0x20000000 */
  9758. #define EXTI_IMR2_IM61 EXTI_IMR2_IM61_Msk /*!< Interrupt Mask on line 61 */
  9759. #define EXTI_IMR2_IM62_Pos (30U)
  9760. #define EXTI_IMR2_IM62_Msk (0x1UL << EXTI_IMR2_IM62_Pos) /*!< 0x40000000 */
  9761. #define EXTI_IMR2_IM62 EXTI_IMR2_IM62_Msk /*!< Interrupt Mask on line 62 */
  9762. #define EXTI_IMR2_IM63_Pos (31U)
  9763. #define EXTI_IMR2_IM63_Msk (0x1UL << EXTI_IMR2_IM63_Pos) /*!< 0x80000000 */
  9764. #define EXTI_IMR2_IM63 EXTI_IMR2_IM63_Msk /*!< Interrupt Mask on line 63 */
  9765. /******************* Bit definition for EXTI_EMR2 register *******************/
  9766. #define EXTI_EMR2_EM_Pos (0U)
  9767. #define EXTI_EMR2_EM_Msk (0xFFFFDFFFUL << EXTI_EMR2_EM_Pos) /*!< 0xFFFFDFFF */
  9768. #define EXTI_EMR2_EM EXTI_EMR2_EM_Msk /*!< Event Mask */
  9769. #define EXTI_EMR2_EM32_Pos (0U)
  9770. #define EXTI_EMR2_EM32_Msk (0x1UL << EXTI_EMR2_EM32_Pos) /*!< 0x00000001 */
  9771. #define EXTI_EMR2_EM32 EXTI_EMR2_EM32_Msk /*!< Event Mask on line 32*/
  9772. #define EXTI_EMR2_EM33_Pos (1U)
  9773. #define EXTI_EMR2_EM33_Msk (0x1UL << EXTI_EMR2_EM33_Pos) /*!< 0x00000002 */
  9774. #define EXTI_EMR2_EM33 EXTI_EMR2_EM33_Msk /*!< Event Mask on line 33*/
  9775. #define EXTI_EMR2_EM34_Pos (2U)
  9776. #define EXTI_EMR2_EM34_Msk (0x1UL << EXTI_EMR2_EM34_Pos) /*!< 0x00000004 */
  9777. #define EXTI_EMR2_EM34 EXTI_EMR2_EM34_Msk /*!< Event Mask on line 34*/
  9778. #define EXTI_EMR2_EM35_Pos (3U)
  9779. #define EXTI_EMR2_EM35_Msk (0x1UL << EXTI_EMR2_EM35_Pos) /*!< 0x00000008 */
  9780. #define EXTI_EMR2_EM35 EXTI_EMR2_EM35_Msk /*!< Event Mask on line 35*/
  9781. #define EXTI_EMR2_EM36_Pos (4U)
  9782. #define EXTI_EMR2_EM36_Msk (0x1UL << EXTI_EMR2_EM36_Pos) /*!< 0x00000010 */
  9783. #define EXTI_EMR2_EM36 EXTI_EMR2_EM36_Msk /*!< Event Mask on line 36*/
  9784. #define EXTI_EMR2_EM37_Pos (5U)
  9785. #define EXTI_EMR2_EM37_Msk (0x1UL << EXTI_EMR2_EM37_Pos) /*!< 0x00000020 */
  9786. #define EXTI_EMR2_EM37 EXTI_EMR2_EM37_Msk /*!< Event Mask on line 37*/
  9787. #define EXTI_EMR2_EM38_Pos (6U)
  9788. #define EXTI_EMR2_EM38_Msk (0x1UL << EXTI_EMR2_EM38_Pos) /*!< 0x00000040 */
  9789. #define EXTI_EMR2_EM38 EXTI_EMR2_EM38_Msk /*!< Event Mask on line 38*/
  9790. #define EXTI_EMR2_EM39_Pos (7U)
  9791. #define EXTI_EMR2_EM39_Msk (0x1UL << EXTI_EMR2_EM39_Pos) /*!< 0x00000080 */
  9792. #define EXTI_EMR2_EM39 EXTI_EMR2_EM39_Msk /*!< Event Mask on line 39*/
  9793. #define EXTI_EMR2_EM40_Pos (8U)
  9794. #define EXTI_EMR2_EM40_Msk (0x1UL << EXTI_EMR2_EM40_Pos) /*!< 0x00000100 */
  9795. #define EXTI_EMR2_EM40 EXTI_EMR2_EM40_Msk /*!< Event Mask on line 40*/
  9796. #define EXTI_EMR2_EM41_Pos (9U)
  9797. #define EXTI_EMR2_EM41_Msk (0x1UL << EXTI_EMR2_EM41_Pos) /*!< 0x00000200 */
  9798. #define EXTI_EMR2_EM41 EXTI_EMR2_EM41_Msk /*!< Event Mask on line 41*/
  9799. #define EXTI_EMR2_EM42_Pos (10U)
  9800. #define EXTI_EMR2_EM42_Msk (0x1UL << EXTI_EMR2_EM42_Pos) /*!< 0x00000400 */
  9801. #define EXTI_EMR2_EM42 EXTI_EMR2_EM42_Msk /*!< Event Mask on line 42 */
  9802. #define EXTI_EMR2_EM43_Pos (11U)
  9803. #define EXTI_EMR2_EM43_Msk (0x1UL << EXTI_EMR2_EM43_Pos) /*!< 0x00000800 */
  9804. #define EXTI_EMR2_EM43 EXTI_EMR2_EM43_Msk /*!< Event Mask on line 43 */
  9805. #define EXTI_EMR2_EM47_Pos (15U)
  9806. #define EXTI_EMR2_EM47_Msk (0x1UL << EXTI_EMR2_EM47_Pos) /*!< 0x00008000 */
  9807. #define EXTI_EMR2_EM47 EXTI_EMR2_EM47_Msk /*!< Event Mask on line 47 */
  9808. #define EXTI_EMR2_EM48_Pos (16U)
  9809. #define EXTI_EMR2_EM48_Msk (0x1UL << EXTI_EMR2_EM48_Pos) /*!< 0x00010000 */
  9810. #define EXTI_EMR2_EM48 EXTI_EMR2_EM48_Msk /*!< Event Mask on line 48 */
  9811. #define EXTI_EMR2_EM49_Pos (17U)
  9812. #define EXTI_EMR2_EM49_Msk (0x1UL << EXTI_EMR2_EM49_Pos) /*!< 0x00020000 */
  9813. #define EXTI_EMR2_EM49 EXTI_EMR2_EM49_Msk /*!< Event Mask on line 49 */
  9814. #define EXTI_EMR2_EM50_Pos (18U)
  9815. #define EXTI_EMR2_EM50_Msk (0x1UL << EXTI_EMR2_EM50_Pos) /*!< 0x00040000 */
  9816. #define EXTI_EMR2_EM50 EXTI_EMR2_EM50_Msk /*!< Event Mask on line 50 */
  9817. #define EXTI_EMR2_EM51_Pos (19U)
  9818. #define EXTI_EMR2_EM51_Msk (0x1UL << EXTI_EMR2_EM51_Pos) /*!< 0x00080000 */
  9819. #define EXTI_EMR2_EM51 EXTI_EMR2_EM51_Msk /*!< Event Mask on line 51 */
  9820. #define EXTI_EMR2_EM52_Pos (20U)
  9821. #define EXTI_EMR2_EM52_Msk (0x1UL << EXTI_EMR2_EM52_Pos) /*!< 0x00100000 */
  9822. #define EXTI_EMR2_EM52 EXTI_EMR2_EM52_Msk /*!< Event Mask on line 52 */
  9823. #define EXTI_EMR2_EM53_Pos (21U)
  9824. #define EXTI_EMR2_EM53_Msk (0x1UL << EXTI_EMR2_EM53_Pos) /*!< 0x00200000 */
  9825. #define EXTI_EMR2_EM53 EXTI_EMR2_EM53_Msk /*!< Event Mask on line 53 */
  9826. #define EXTI_EMR2_EM54_Pos (22U)
  9827. #define EXTI_EMR2_EM54_Msk (0x1UL << EXTI_EMR2_EM54_Pos) /*!< 0x00400000 */
  9828. #define EXTI_EMR2_EM54 EXTI_EMR2_EM54_Msk /*!< Event Mask on line 54 */
  9829. #define EXTI_EMR2_EM55_Pos (23U)
  9830. #define EXTI_EMR2_EM55_Msk (0x1UL << EXTI_EMR2_EM55_Pos) /*!< 0x00800000 */
  9831. #define EXTI_EMR2_EM55 EXTI_EMR2_EM55_Msk /*!< Event Mask on line 55 */
  9832. #define EXTI_EMR2_EM56_Pos (24U)
  9833. #define EXTI_EMR2_EM56_Msk (0x1UL << EXTI_EMR2_EM56_Pos) /*!< 0x01000000 */
  9834. #define EXTI_EMR2_EM56 EXTI_EMR2_EM56_Msk /*!< Event Mask on line 56 */
  9835. #define EXTI_EMR2_EM58_Pos (26U)
  9836. #define EXTI_EMR2_EM58_Msk (0x1UL << EXTI_EMR2_EM58_Pos) /*!< 0x04000000 */
  9837. #define EXTI_EMR2_EM58 EXTI_EMR2_EM58_Msk /*!< Event Mask on line 58 */
  9838. #define EXTI_EMR2_EM60_Pos (28U)
  9839. #define EXTI_EMR2_EM60_Msk (0x1UL << EXTI_EMR2_EM60_Pos) /*!< 0x10000000 */
  9840. #define EXTI_EMR2_EM60 EXTI_EMR2_EM60_Msk /*!< Event Mask on line 60 */
  9841. #define EXTI_EMR2_EM61_Pos (29U)
  9842. #define EXTI_EMR2_EM61_Msk (0x1UL << EXTI_EMR2_EM61_Pos) /*!< 0x20000000 */
  9843. #define EXTI_EMR2_EM61 EXTI_EMR2_EM61_Msk /*!< Event Mask on line 61 */
  9844. #define EXTI_EMR2_EM62_Pos (30U)
  9845. #define EXTI_EMR2_EM62_Msk (0x1UL << EXTI_EMR2_EM62_Pos) /*!< 0x40000000 */
  9846. #define EXTI_EMR2_EM62 EXTI_EMR2_EM62_Msk /*!< Event Mask on line 62 */
  9847. #define EXTI_EMR2_EM63_Pos (31U)
  9848. #define EXTI_EMR2_EM63_Msk (0x1UL << EXTI_EMR2_EM63_Pos) /*!< 0x80000000 */
  9849. #define EXTI_EMR2_EM63 EXTI_EMR2_EM63_Msk /*!< Event Mask on line 63 */
  9850. /******************* Bit definition for EXTI_PR2 register ********************/
  9851. #define EXTI_PR2_PR_Pos (17U)
  9852. #define EXTI_PR2_PR_Msk (0x5UL << EXTI_PR2_PR_Pos) /*!< 0x000A0000 */
  9853. #define EXTI_PR2_PR EXTI_PR2_PR_Msk /*!< Pending bit */
  9854. #define EXTI_PR2_PR49_Pos (17U)
  9855. #define EXTI_PR2_PR49_Msk (0x1UL << EXTI_PR2_PR49_Pos) /*!< 0x00020000 */
  9856. #define EXTI_PR2_PR49 EXTI_PR2_PR49_Msk /*!< Pending bit for line 49 */
  9857. #define EXTI_PR2_PR51_Pos (19U)
  9858. #define EXTI_PR2_PR51_Msk (0x1UL << EXTI_PR2_PR51_Pos) /*!< 0x00080000 */
  9859. #define EXTI_PR2_PR51 EXTI_PR2_PR51_Msk /*!< Pending bit for line 51 */
  9860. /******************* Bit definition for EXTI_IMR3 register *******************/
  9861. #define EXTI_IMR3_IM_Pos (0U)
  9862. #define EXTI_IMR3_IM_Msk (0x0FE17FFFUL << EXTI_IMR3_IM_Pos) /*!< 0x0FE17FFF */
  9863. #define EXTI_IMR3_IM EXTI_IMR3_IM_Msk /*!< Interrupt Mask */
  9864. #define EXTI_IMR3_IM64_Pos (0U)
  9865. #define EXTI_IMR3_IM64_Msk (0x1UL << EXTI_IMR3_IM64_Pos) /*!< 0x00000001 */
  9866. #define EXTI_IMR3_IM64 EXTI_IMR3_IM64_Msk /*!< Interrupt Mask on line 64 */
  9867. #define EXTI_IMR3_IM65_Pos (1U)
  9868. #define EXTI_IMR3_IM65_Msk (0x1UL << EXTI_IMR3_IM65_Pos) /*!< 0x00000002 */
  9869. #define EXTI_IMR3_IM65 EXTI_IMR3_IM65_Msk /*!< Interrupt Mask on line 65 */
  9870. #define EXTI_IMR3_IM66_Pos (2U)
  9871. #define EXTI_IMR3_IM66_Msk (0x1UL << EXTI_IMR3_IM66_Pos) /*!< 0x00000004 */
  9872. #define EXTI_IMR3_IM66 EXTI_IMR3_IM66_Msk /*!< Interrupt Mask on line 66 */
  9873. #define EXTI_IMR3_IM67_Pos (3U)
  9874. #define EXTI_IMR3_IM67_Msk (0x1UL << EXTI_IMR3_IM67_Pos) /*!< 0x00000008 */
  9875. #define EXTI_IMR3_IM67 EXTI_IMR3_IM67_Msk /*!< Interrupt Mask on line 67 */
  9876. #define EXTI_IMR3_IM68_Pos (4U)
  9877. #define EXTI_IMR3_IM68_Msk (0x1UL << EXTI_IMR3_IM68_Pos) /*!< 0x00000010 */
  9878. #define EXTI_IMR3_IM68 EXTI_IMR3_IM68_Msk /*!< Interrupt Mask on line 68 */
  9879. #define EXTI_IMR3_IM69_Pos (5U)
  9880. #define EXTI_IMR3_IM69_Msk (0x1UL << EXTI_IMR3_IM69_Pos) /*!< 0x00000020 */
  9881. #define EXTI_IMR3_IM69 EXTI_IMR3_IM69_Msk /*!< Interrupt Mask on line 69 */
  9882. #define EXTI_IMR3_IM70_Pos (6U)
  9883. #define EXTI_IMR3_IM70_Msk (0x1UL << EXTI_IMR3_IM70_Pos) /*!< 0x00000040 */
  9884. #define EXTI_IMR3_IM70 EXTI_IMR3_IM70_Msk /*!< Interrupt Mask on line 70 */
  9885. #define EXTI_IMR3_IM71_Pos (7U)
  9886. #define EXTI_IMR3_IM71_Msk (0x1UL << EXTI_IMR3_IM71_Pos) /*!< 0x00000080 */
  9887. #define EXTI_IMR3_IM71 EXTI_IMR3_IM71_Msk /*!< Interrupt Mask on line 71 */
  9888. #define EXTI_IMR3_IM72_Pos (8U)
  9889. #define EXTI_IMR3_IM72_Msk (0x1UL << EXTI_IMR3_IM72_Pos) /*!< 0x00000100 */
  9890. #define EXTI_IMR3_IM72 EXTI_IMR3_IM72_Msk /*!< Interrupt Mask on line 72 */
  9891. #define EXTI_IMR3_IM73_Pos (9U)
  9892. #define EXTI_IMR3_IM73_Msk (0x1UL << EXTI_IMR3_IM73_Pos) /*!< 0x00000200 */
  9893. #define EXTI_IMR3_IM73 EXTI_IMR3_IM73_Msk /*!< Interrupt Mask on line 73 */
  9894. #define EXTI_IMR3_IM74_Pos (10U)
  9895. #define EXTI_IMR3_IM74_Msk (0x1UL << EXTI_IMR3_IM74_Pos) /*!< 0x00000400 */
  9896. #define EXTI_IMR3_IM74 EXTI_IMR3_IM74_Msk /*!< Interrupt Mask on line 74 */
  9897. #define EXTI_IMR3_IM75_Pos (11U)
  9898. #define EXTI_IMR3_IM75_Msk (0x1UL << EXTI_IMR3_IM75_Pos) /*!< 0x00000800 */
  9899. #define EXTI_IMR3_IM75 EXTI_IMR3_IM75_Msk /*!< Interrupt Mask on line 75 */
  9900. #define EXTI_IMR3_IM76_Pos (12U)
  9901. #define EXTI_IMR3_IM76_Msk (0x1UL << EXTI_IMR3_IM76_Pos) /*!< 0x00001000 */
  9902. #define EXTI_IMR3_IM76 EXTI_IMR3_IM76_Msk /*!< Interrupt Mask on line 76 */
  9903. #define EXTI_IMR3_IM77_Pos (13U)
  9904. #define EXTI_IMR3_IM77_Msk (0x1UL << EXTI_IMR3_IM77_Pos) /*!< 0x00002000 */
  9905. #define EXTI_IMR3_IM77 EXTI_IMR3_IM77_Msk /*!< Interrupt Mask on line 77 */
  9906. #define EXTI_IMR3_IM78_Pos (14U)
  9907. #define EXTI_IMR3_IM78_Msk (0x1UL << EXTI_IMR3_IM78_Pos) /*!< 0x00004000 */
  9908. #define EXTI_IMR3_IM78 EXTI_IMR3_IM78_Msk /*!< Interrupt Mask on line 78 */
  9909. #define EXTI_IMR3_IM80_Pos (16U)
  9910. #define EXTI_IMR3_IM80_Msk (0x1UL << EXTI_IMR3_IM80_Pos) /*!< 0x00010000 */
  9911. #define EXTI_IMR3_IM80 EXTI_IMR3_IM80_Msk /*!< Interrupt Mask on line 80 */
  9912. #define EXTI_IMR3_IM85_Pos (21U)
  9913. #define EXTI_IMR3_IM85_Msk (0x1UL << EXTI_IMR3_IM85_Pos) /*!< 0x00200000 */
  9914. #define EXTI_IMR3_IM85 EXTI_IMR3_IM85_Msk /*!< Interrupt Mask on line 85 */
  9915. #define EXTI_IMR3_IM86_Pos (22U)
  9916. #define EXTI_IMR3_IM86_Msk (0x1UL << EXTI_IMR3_IM86_Pos) /*!< 0x00400000 */
  9917. #define EXTI_IMR3_IM86 EXTI_IMR3_IM86_Msk /*!< Interrupt Mask on line 86 */
  9918. #define EXTI_IMR3_IM87_Pos (23U)
  9919. #define EXTI_IMR3_IM87_Msk (0x1UL << EXTI_IMR3_IM87_Pos) /*!< 0x00800000 */
  9920. #define EXTI_IMR3_IM87 EXTI_IMR3_IM87_Msk /*!< Interrupt Mask on line 87 */
  9921. #define EXTI_IMR3_IM88_Pos (24U)
  9922. #define EXTI_IMR3_IM88_Msk (0x1UL << EXTI_IMR3_IM88_Pos) /*!< 0x01000000 */
  9923. #define EXTI_IMR3_IM88 EXTI_IMR3_IM88_Msk /*!< Interrupt Mask on line 88 */
  9924. #define EXTI_IMR3_IM89_Pos (25U)
  9925. #define EXTI_IMR3_IM89_Msk (0x1UL << EXTI_IMR3_IM89_Pos) /*!< 0x0200000 */
  9926. #define EXTI_IMR3_IM89 EXTI_IMR3_IM89_Msk /*!< Interrupt Mask on line 89 */
  9927. #define EXTI_IMR3_IM90_Pos (26U)
  9928. #define EXTI_IMR3_IM90_Msk (0x1UL << EXTI_IMR3_IM90_Pos) /*!< 0x0400000 */
  9929. #define EXTI_IMR3_IM90 EXTI_IMR3_IM90_Msk /*!< Interrupt Mask on line 90 */
  9930. #define EXTI_IMR3_IM91_Pos (27U)
  9931. #define EXTI_IMR3_IM91_Msk (0x1UL << EXTI_IMR3_IM91_Pos) /*!< 0x0800000 */
  9932. #define EXTI_IMR3_IM91 EXTI_IMR3_IM91_Msk /*!< Interrupt Mask on line 91 */
  9933. /******************* Bit definition for EXTI_EMR3 register *******************/
  9934. #define EXTI_EMR3_EM_Pos (0U)
  9935. #define EXTI_EMR3_EM_Msk (0x0FE17FFFUL << EXTI_EMR3_EM_Pos) /*!< 0x0FE17FFF */
  9936. #define EXTI_EMR3_EM EXTI_EMR3_EM_Msk /*!< Interrupt Mask */
  9937. #define EXTI_EMR3_EM64_Pos (0U)
  9938. #define EXTI_EMR3_EM64_Msk (0x1UL << EXTI_EMR3_EM64_Pos) /*!< 0x00000001 */
  9939. #define EXTI_EMR3_EM64 EXTI_EMR3_EM64_Msk /*!< Event Mask on line 64*/
  9940. #define EXTI_EMR3_EM65_Pos (1U)
  9941. #define EXTI_EMR3_EM65_Msk (0x1UL << EXTI_EMR3_EM65_Pos) /*!< 0x00000002 */
  9942. #define EXTI_EMR3_EM65 EXTI_EMR3_EM65_Msk /*!< Event Mask on line 65*/
  9943. #define EXTI_EMR3_EM66_Pos (2U)
  9944. #define EXTI_EMR3_EM66_Msk (0x1UL << EXTI_EMR3_EM66_Pos) /*!< 0x00000004 */
  9945. #define EXTI_EMR3_EM66 EXTI_EMR3_EM66_Msk /*!< Event Mask on line 66*/
  9946. #define EXTI_EMR3_EM67_Pos (3U)
  9947. #define EXTI_EMR3_EM67_Msk (0x1UL << EXTI_EMR3_EM67_Pos) /*!< 0x00000008 */
  9948. #define EXTI_EMR3_EM67 EXTI_EMR3_EM67_Msk /*!< Event Mask on line 67*/
  9949. #define EXTI_EMR3_EM68_Pos (4U)
  9950. #define EXTI_EMR3_EM68_Msk (0x1UL << EXTI_EMR3_EM68_Pos) /*!< 0x00000010 */
  9951. #define EXTI_EMR3_EM68 EXTI_EMR3_EM68_Msk /*!< Event Mask on line 68*/
  9952. #define EXTI_EMR3_EM69_Pos (5U)
  9953. #define EXTI_EMR3_EM69_Msk (0x1UL << EXTI_EMR3_EM69_Pos) /*!< 0x00000020 */
  9954. #define EXTI_EMR3_EM69 EXTI_EMR3_EM69_Msk /*!< Event Mask on line 69*/
  9955. #define EXTI_EMR3_EM70_Pos (6U)
  9956. #define EXTI_EMR3_EM70_Msk (0x1UL << EXTI_EMR3_EM70_Pos) /*!< 0x00000040 */
  9957. #define EXTI_EMR3_EM70 EXTI_EMR3_EM70_Msk /*!< Event Mask on line 70*/
  9958. #define EXTI_EMR3_EM71_Pos (7U)
  9959. #define EXTI_EMR3_EM71_Msk (0x1UL << EXTI_EMR3_EM71_Pos) /*!< 0x00000080 */
  9960. #define EXTI_EMR3_EM71 EXTI_EMR3_EM71_Msk /*!< Event Mask on line 71*/
  9961. #define EXTI_EMR3_EM72_Pos (8U)
  9962. #define EXTI_EMR3_EM72_Msk (0x1UL << EXTI_EMR3_EM72_Pos) /*!< 0x00000100 */
  9963. #define EXTI_EMR3_EM72 EXTI_EMR3_EM72_Msk /*!< Event Mask on line 72*/
  9964. #define EXTI_EMR3_EM73_Pos (9U)
  9965. #define EXTI_EMR3_EM73_Msk (0x1UL << EXTI_EMR3_EM73_Pos) /*!< 0x00000200 */
  9966. #define EXTI_EMR3_EM73 EXTI_EMR3_EM73_Msk /*!< Event Mask on line 73*/
  9967. #define EXTI_EMR3_EM74_Pos (10U)
  9968. #define EXTI_EMR3_EM74_Msk (0x1UL << EXTI_EMR3_EM74_Pos) /*!< 0x00000400 */
  9969. #define EXTI_EMR3_EM74 EXTI_EMR3_EM74_Msk /*!< Event Mask on line 74 */
  9970. #define EXTI_EMR3_EM75_Pos (11U)
  9971. #define EXTI_EMR3_EM75_Msk (0x1UL << EXTI_EMR3_EM75_Pos) /*!< 0x00000800 */
  9972. #define EXTI_EMR3_EM75 EXTI_EMR3_EM75_Msk /*!< Event Mask on line 75 */
  9973. #define EXTI_EMR3_EM76_Pos (12U)
  9974. #define EXTI_EMR3_EM76_Msk (0x1UL << EXTI_EMR3_EM76_Pos) /*!< 0x00001000 */
  9975. #define EXTI_EMR3_EM76 EXTI_EMR3_EM76_Msk /*!< Event Mask on line 76 */
  9976. #define EXTI_EMR3_EM77_Pos (13U)
  9977. #define EXTI_EMR3_EM77_Msk (0x1UL << EXTI_EMR3_EM77_Pos) /*!< 0x00002000 */
  9978. #define EXTI_EMR3_EM77 EXTI_EMR3_EM77_Msk /*!< Event Mask on line 77 */
  9979. #define EXTI_EMR3_EM78_Pos (14U)
  9980. #define EXTI_EMR3_EM78_Msk (0x1UL << EXTI_EMR3_EM78_Pos) /*!< 0x00004000 */
  9981. #define EXTI_EMR3_EM78 EXTI_EMR3_EM78_Msk /*!< Event Mask on line 78 */
  9982. #define EXTI_EMR3_EM80_Pos (16U)
  9983. #define EXTI_EMR3_EM80_Msk (0x1UL << EXTI_EMR3_EM80_Pos) /*!< 0x00010000 */
  9984. #define EXTI_EMR3_EM80 EXTI_EMR3_EM80_Msk /*!< Event Mask on line 80 */
  9985. #define EXTI_EMR3_EM85_Pos (21U)
  9986. #define EXTI_EMR3_EM85_Msk (0x1UL << EXTI_EMR3_EM85_Pos) /*!< 0x00200000 */
  9987. #define EXTI_EMR3_EM85 EXTI_EMR3_EM85_Msk /*!< Event Mask on line 85 */
  9988. #define EXTI_EMR3_EM86_Pos (22U)
  9989. #define EXTI_EMR3_EM86_Msk (0x1UL << EXTI_EMR3_EM86_Pos) /*!< 0x00400000 */
  9990. #define EXTI_EMR3_EM86 EXTI_EMR3_EM86_Msk /*!< Event Mask on line 86 */
  9991. #define EXTI_EMR3_EM87_Pos (23U)
  9992. #define EXTI_EMR3_EM87_Msk (0x1UL << EXTI_EMR3_EM87_Pos) /*!< 0x00800000 */
  9993. #define EXTI_EMR3_EM87 EXTI_EMR3_EM87_Msk /*!< Event Mask on line 87 */
  9994. #define EXTI_EMR3_EM88_Pos (24U)
  9995. #define EXTI_EMR3_EM88_Msk (0x1UL << EXTI_EMR3_EM88_Pos) /*!< 0x01000000 */
  9996. #define EXTI_EMR3_EM88 EXTI_EMR3_EM88_Msk /*!< Event Mask on line 88 */
  9997. #define EXTI_EMR3_EM89_Pos (25U)
  9998. #define EXTI_EMR3_EM89_Msk (0x1UL << EXTI_EMR3_EM89_Pos) /*!< 0x0200000 */
  9999. #define EXTI_EMR3_EM89 EXTI_EMR3_EM89_Msk /*!< Interrupt Mask on line 89 */
  10000. #define EXTI_EMR3_EM90_Pos (26U)
  10001. #define EXTI_EMR3_EM90_Msk (0x1UL << EXTI_EMR3_EM90_Pos) /*!< 0x0400000 */
  10002. #define EXTI_EMR3_EM90 EXTI_EMR3_EM90_Msk /*!< Interrupt Mask on line 90 */
  10003. #define EXTI_EMR3_EM91_Pos (27U)
  10004. #define EXTI_EMR3_EM91_Msk (0x1UL << EXTI_EMR3_EM91_Pos) /*!< 0x0800000 */
  10005. #define EXTI_EMR3_EM91 EXTI_EMR3_EM91_Msk /*!< Interrupt Mask on line 91 */
  10006. /******************* Bit definition for EXTI_PR3 register ********************/
  10007. #define EXTI_PR3_PR_Pos (20U)
  10008. #define EXTI_PR3_PR_Msk (0x7UL << EXTI_PR3_PR_Pos) /*!< 0x00700000 */
  10009. #define EXTI_PR3_PR EXTI_PR3_PR_Msk /*!< Pending bit */
  10010. #define EXTI_PR3_PR84_Pos (20U)
  10011. #define EXTI_PR3_PR84_Msk (0x1UL << EXTI_PR3_PR84_Pos) /*!< 0x00100000 */
  10012. #define EXTI_PR3_PR84 EXTI_PR3_PR84_Msk /*!< Pending bit for line 84 */
  10013. #define EXTI_PR3_PR85_Pos (21U)
  10014. #define EXTI_PR3_PR85_Msk (0x1UL << EXTI_PR3_PR85_Pos) /*!< 0x00200000 */
  10015. #define EXTI_PR3_PR85 EXTI_PR3_PR85_Msk /*!< Pending bit for line 85 */
  10016. #define EXTI_PR3_PR86_Pos (22U)
  10017. #define EXTI_PR3_PR86_Msk (0x1UL << EXTI_PR3_PR86_Pos) /*!< 0x00400000 */
  10018. #define EXTI_PR3_PR86 EXTI_PR3_PR86_Msk /*!< Pending bit for line 86 */
  10019. /******************************************************************************/
  10020. /* */
  10021. /* FLASH */
  10022. /* */
  10023. /******************************************************************************/
  10024. /*
  10025. * @brief FLASH Global Defines
  10026. */
  10027. #define FLASH_SIZE_DATA_REGISTER 0x1FF1E880U
  10028. #define FLASH_SECTOR_TOTAL 8U /* 8 sectors */
  10029. #define FLASH_SIZE ((((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) == 0xFFFFU)) ? 0x100000U : \
  10030. ((((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) == 0x0000U)) ? 0x100000U : \
  10031. (((uint32_t)(*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) & (0x0FFFU)) << 10U))) /* 1 MB */
  10032. #define FLASH_BANK_SIZE FLASH_SIZE /* 1 MB */
  10033. #define FLASH_SECTOR_SIZE 0x00020000UL /* 128 KB */
  10034. #define FLASH_LATENCY_DEFAULT FLASH_ACR_LATENCY_7WS /* FLASH Seven Latency cycles */
  10035. #define FLASH_NB_32BITWORD_IN_FLASHWORD 8U /* 256 bits */
  10036. /******************* Bits definition for FLASH_ACR register **********************/
  10037. #define FLASH_ACR_LATENCY_Pos (0U)
  10038. #define FLASH_ACR_LATENCY_Msk (0xFUL << FLASH_ACR_LATENCY_Pos) /*!< 0x0000000F: bit4 is kept only for legacy purpose */
  10039. #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk /*!< Read Latency */
  10040. #define FLASH_ACR_LATENCY_0WS (0x00000000UL)
  10041. #define FLASH_ACR_LATENCY_1WS (0x00000001UL)
  10042. #define FLASH_ACR_LATENCY_2WS (0x00000002UL)
  10043. #define FLASH_ACR_LATENCY_3WS (0x00000003UL)
  10044. #define FLASH_ACR_LATENCY_4WS (0x00000004UL)
  10045. #define FLASH_ACR_LATENCY_5WS (0x00000005UL)
  10046. #define FLASH_ACR_LATENCY_6WS (0x00000006UL)
  10047. #define FLASH_ACR_LATENCY_7WS (0x00000007UL)
  10048. #define FLASH_ACR_WRHIGHFREQ_Pos (4U)
  10049. #define FLASH_ACR_WRHIGHFREQ_Msk (0x3UL << FLASH_ACR_WRHIGHFREQ_Pos) /*!< 0x00000030 */
  10050. #define FLASH_ACR_WRHIGHFREQ FLASH_ACR_WRHIGHFREQ_Msk /*!< Flash signal delay */
  10051. #define FLASH_ACR_WRHIGHFREQ_0 (0x1UL << FLASH_ACR_WRHIGHFREQ_Pos) /*!< 0x00000010 */
  10052. #define FLASH_ACR_WRHIGHFREQ_1 (0x2UL << FLASH_ACR_WRHIGHFREQ_Pos) /*!< 0x00000020 */
  10053. /* Legacy FLASH Latency defines */
  10054. #define FLASH_ACR_LATENCY_8WS (0x00000008UL)
  10055. #define FLASH_ACR_LATENCY_9WS (0x00000009UL)
  10056. #define FLASH_ACR_LATENCY_10WS (0x0000000AUL)
  10057. #define FLASH_ACR_LATENCY_11WS (0x0000000BUL)
  10058. #define FLASH_ACR_LATENCY_12WS (0x0000000CUL)
  10059. #define FLASH_ACR_LATENCY_13WS (0x0000000DUL)
  10060. #define FLASH_ACR_LATENCY_14WS (0x0000000EUL)
  10061. #define FLASH_ACR_LATENCY_15WS (0x0000000FUL)
  10062. /******************* Bits definition for FLASH_CR register ***********************/
  10063. #define FLASH_CR_LOCK_Pos (0U)
  10064. #define FLASH_CR_LOCK_Msk (0x1UL << FLASH_CR_LOCK_Pos) /*!< 0x00000001 */
  10065. #define FLASH_CR_LOCK FLASH_CR_LOCK_Msk /*!< Configuration lock bit */
  10066. #define FLASH_CR_PG_Pos (1U)
  10067. #define FLASH_CR_PG_Msk (0x1UL << FLASH_CR_PG_Pos) /*!< 0x00000002 */
  10068. #define FLASH_CR_PG FLASH_CR_PG_Msk /*!< Internal buffer control bit */
  10069. #define FLASH_CR_SER_Pos (2U)
  10070. #define FLASH_CR_SER_Msk (0x1UL << FLASH_CR_SER_Pos) /*!< 0x00000004 */
  10071. #define FLASH_CR_SER FLASH_CR_SER_Msk /*!< Sector erase request */
  10072. #define FLASH_CR_BER_Pos (3U)
  10073. #define FLASH_CR_BER_Msk (0x1UL << FLASH_CR_BER_Pos) /*!< 0x00000008 */
  10074. #define FLASH_CR_BER FLASH_CR_BER_Msk /*!< Bank erase request */
  10075. #define FLASH_CR_PSIZE_Pos (4U)
  10076. #define FLASH_CR_PSIZE_Msk (0x3UL << FLASH_CR_PSIZE_Pos) /*!< 0x00000030 */
  10077. #define FLASH_CR_PSIZE FLASH_CR_PSIZE_Msk /*!< Program size */
  10078. #define FLASH_CR_PSIZE_0 (0x1UL << FLASH_CR_PSIZE_Pos) /*!< 0x00000010 */
  10079. #define FLASH_CR_PSIZE_1 (0x2UL << FLASH_CR_PSIZE_Pos) /*!< 0x00000020 */
  10080. #define FLASH_CR_FW_Pos (6U)
  10081. #define FLASH_CR_FW_Msk (0x1UL << FLASH_CR_FW_Pos) /*!< 0x00000040 */
  10082. #define FLASH_CR_FW FLASH_CR_FW_Msk /*!< Write forcing control bit */
  10083. #define FLASH_CR_START_Pos (7U)
  10084. #define FLASH_CR_START_Msk (0x1UL << FLASH_CR_START_Pos) /*!< 0x00000080 */
  10085. #define FLASH_CR_START FLASH_CR_START_Msk /*!< Erase start control bit */
  10086. #define FLASH_CR_SNB_Pos (8U)
  10087. #define FLASH_CR_SNB_Msk (0x7UL << FLASH_CR_SNB_Pos) /*!< 0x00000700 */
  10088. #define FLASH_CR_SNB FLASH_CR_SNB_Msk /*!< Sector erase selection number */
  10089. #define FLASH_CR_SNB_0 (0x1UL << FLASH_CR_SNB_Pos) /*!< 0x00000100 */
  10090. #define FLASH_CR_SNB_1 (0x2UL << FLASH_CR_SNB_Pos) /*!< 0x00000200 */
  10091. #define FLASH_CR_SNB_2 (0x4UL << FLASH_CR_SNB_Pos) /*!< 0x00000400 */
  10092. #define FLASH_CR_CRC_EN_Pos (15U)
  10093. #define FLASH_CR_CRC_EN_Msk (0x1UL << FLASH_CR_CRC_EN_Pos) /*!< 0x00008000 */
  10094. #define FLASH_CR_CRC_EN FLASH_CR_CRC_EN_Msk /*!< CRC control bit */
  10095. #define FLASH_CR_EOPIE_Pos (16U)
  10096. #define FLASH_CR_EOPIE_Msk (0x1UL << FLASH_CR_EOPIE_Pos) /*!< 0x00010000 */
  10097. #define FLASH_CR_EOPIE FLASH_CR_EOPIE_Msk /*!< End-of-program interrupt control bit */
  10098. #define FLASH_CR_WRPERRIE_Pos (17U)
  10099. #define FLASH_CR_WRPERRIE_Msk (0x1UL << FLASH_CR_WRPERRIE_Pos) /*!< 0x00020000 */
  10100. #define FLASH_CR_WRPERRIE FLASH_CR_WRPERRIE_Msk /*!< Write protection error interrupt enable bit */
  10101. #define FLASH_CR_PGSERRIE_Pos (18U)
  10102. #define FLASH_CR_PGSERRIE_Msk (0x1UL << FLASH_CR_PGSERRIE_Pos) /*!< 0x00040000 */
  10103. #define FLASH_CR_PGSERRIE FLASH_CR_PGSERRIE_Msk /*!< Programming sequence error interrupt enable bit */
  10104. #define FLASH_CR_STRBERRIE_Pos (19U)
  10105. #define FLASH_CR_STRBERRIE_Msk (0x1UL << FLASH_CR_STRBERRIE_Pos) /*!< 0x00080000 */
  10106. #define FLASH_CR_STRBERRIE FLASH_CR_STRBERRIE_Msk /*!< Strobe error interrupt enable bit */
  10107. #define FLASH_CR_INCERRIE_Pos (21U)
  10108. #define FLASH_CR_INCERRIE_Msk (0x1UL << FLASH_CR_INCERRIE_Pos) /*!< 0x00200000 */
  10109. #define FLASH_CR_INCERRIE FLASH_CR_INCERRIE_Msk /*!< Inconsistency error interrupt enable bit */
  10110. #define FLASH_CR_OPERRIE_Pos (22U)
  10111. #define FLASH_CR_OPERRIE_Msk (0x1UL << FLASH_CR_OPERRIE_Pos) /*!< 0x00400000 */
  10112. #define FLASH_CR_OPERRIE FLASH_CR_OPERRIE_Msk /*!< Write/erase error interrupt enable bit */
  10113. #define FLASH_CR_RDPERRIE_Pos (23U)
  10114. #define FLASH_CR_RDPERRIE_Msk (0x1UL << FLASH_CR_RDPERRIE_Pos) /*!< 0x00800000 */
  10115. #define FLASH_CR_RDPERRIE FLASH_CR_RDPERRIE_Msk /*!< Read protection error interrupt enable bit */
  10116. #define FLASH_CR_RDSERRIE_Pos (24U)
  10117. #define FLASH_CR_RDSERRIE_Msk (0x1UL << FLASH_CR_RDSERRIE_Pos) /*!< 0x01000000 */
  10118. #define FLASH_CR_RDSERRIE FLASH_CR_RDSERRIE_Msk /*!< Secure error interrupt enable bit */
  10119. #define FLASH_CR_SNECCERRIE_Pos (25U)
  10120. #define FLASH_CR_SNECCERRIE_Msk (0x1UL << FLASH_CR_SNECCERRIE_Pos) /*!< 0x02000000 */
  10121. #define FLASH_CR_SNECCERRIE FLASH_CR_SNECCERRIE_Msk /*!< ECC single correction error interrupt enable bit */
  10122. #define FLASH_CR_DBECCERRIE_Pos (26U)
  10123. #define FLASH_CR_DBECCERRIE_Msk (0x1UL << FLASH_CR_DBECCERRIE_Pos) /*!< 0x04000000 */
  10124. #define FLASH_CR_DBECCERRIE FLASH_CR_DBECCERRIE_Msk /*!< ECC double detection error interrupt enable bit */
  10125. #define FLASH_CR_CRCENDIE_Pos (27U)
  10126. #define FLASH_CR_CRCENDIE_Msk (0x1UL << FLASH_CR_CRCENDIE_Pos) /*!< 0x08000000 */
  10127. #define FLASH_CR_CRCENDIE FLASH_CR_CRCENDIE_Msk /*!< CRC end of calculation interrupt enable bit */
  10128. #define FLASH_CR_CRCRDERRIE_Pos (28U)
  10129. #define FLASH_CR_CRCRDERRIE_Msk (0x1UL << FLASH_CR_CRCRDERRIE_Pos) /*!< 0x10000000 */
  10130. #define FLASH_CR_CRCRDERRIE FLASH_CR_CRCRDERRIE_Msk /*!< CRC read error interrupt enable bit */
  10131. /******************* Bits definition for FLASH_SR register ***********************/
  10132. #define FLASH_SR_BSY_Pos (0U)
  10133. #define FLASH_SR_BSY_Msk (0x1UL << FLASH_SR_BSY_Pos) /*!< 0x00000001 */
  10134. #define FLASH_SR_BSY FLASH_SR_BSY_Msk /*!< Busy flag */
  10135. #define FLASH_SR_WBNE_Pos (1U)
  10136. #define FLASH_SR_WBNE_Msk (0x1UL << FLASH_SR_WBNE_Pos) /*!< 0x00000002 */
  10137. #define FLASH_SR_WBNE FLASH_SR_WBNE_Msk /*!< Write buffer not empty flag */
  10138. #define FLASH_SR_QW_Pos (2U)
  10139. #define FLASH_SR_QW_Msk (0x1UL << FLASH_SR_QW_Pos) /*!< 0x00000004 */
  10140. #define FLASH_SR_QW FLASH_SR_QW_Msk /*!< Wait queue flag */
  10141. #define FLASH_SR_CRC_BUSY_Pos (3U)
  10142. #define FLASH_SR_CRC_BUSY_Msk (0x1UL << FLASH_SR_CRC_BUSY_Pos) /*!< 0x00000008 */
  10143. #define FLASH_SR_CRC_BUSY FLASH_SR_CRC_BUSY_Msk /*!< CRC busy flag */
  10144. #define FLASH_SR_EOP_Pos (16U)
  10145. #define FLASH_SR_EOP_Msk (0x1UL << FLASH_SR_EOP_Pos) /*!< 0x00010000 */
  10146. #define FLASH_SR_EOP FLASH_SR_EOP_Msk /*!< End-of-program flag */
  10147. #define FLASH_SR_WRPERR_Pos (17U)
  10148. #define FLASH_SR_WRPERR_Msk (0x1UL << FLASH_SR_WRPERR_Pos) /*!< 0x00020000 */
  10149. #define FLASH_SR_WRPERR FLASH_SR_WRPERR_Msk /*!< Write protection error flag */
  10150. #define FLASH_SR_PGSERR_Pos (18U)
  10151. #define FLASH_SR_PGSERR_Msk (0x1UL << FLASH_SR_PGSERR_Pos) /*!< 0x00040000 */
  10152. #define FLASH_SR_PGSERR FLASH_SR_PGSERR_Msk /*!< Programming sequence error flag */
  10153. #define FLASH_SR_STRBERR_Pos (19U)
  10154. #define FLASH_SR_STRBERR_Msk (0x1UL << FLASH_SR_STRBERR_Pos) /*!< 0x00080000 */
  10155. #define FLASH_SR_STRBERR FLASH_SR_STRBERR_Msk /*!< Strobe error flag */
  10156. #define FLASH_SR_INCERR_Pos (21U)
  10157. #define FLASH_SR_INCERR_Msk (0x1UL << FLASH_SR_INCERR_Pos) /*!< 0x00200000 */
  10158. #define FLASH_SR_INCERR FLASH_SR_INCERR_Msk /*!< Inconsistency error flag */
  10159. #define FLASH_SR_OPERR_Pos (22U)
  10160. #define FLASH_SR_OPERR_Msk (0x1UL << FLASH_SR_OPERR_Pos) /*!< 0x00400000 */
  10161. #define FLASH_SR_OPERR FLASH_SR_OPERR_Msk /*!< Write/erase error flag */
  10162. #define FLASH_SR_RDPERR_Pos (23U)
  10163. #define FLASH_SR_RDPERR_Msk (0x1UL << FLASH_SR_RDPERR_Pos) /*!< 0x00800000 */
  10164. #define FLASH_SR_RDPERR FLASH_SR_RDPERR_Msk /*!< Read protection error flag */
  10165. #define FLASH_SR_RDSERR_Pos (24U)
  10166. #define FLASH_SR_RDSERR_Msk (0x1UL << FLASH_SR_RDSERR_Pos) /*!< 0x01000000 */
  10167. #define FLASH_SR_RDSERR FLASH_SR_RDSERR_Msk /*!< Secure error flag */
  10168. #define FLASH_SR_SNECCERR_Pos (25U)
  10169. #define FLASH_SR_SNECCERR_Msk (0x1UL << FLASH_SR_SNECCERR_Pos) /*!< 0x02000000 */
  10170. #define FLASH_SR_SNECCERR FLASH_SR_SNECCERR_Msk /*!< Single correction error flag */
  10171. #define FLASH_SR_DBECCERR_Pos (26U)
  10172. #define FLASH_SR_DBECCERR_Msk (0x1UL << FLASH_SR_DBECCERR_Pos) /*!< 0x04000000 */
  10173. #define FLASH_SR_DBECCERR FLASH_SR_DBECCERR_Msk /*!< ECC double detection error flag */
  10174. #define FLASH_SR_CRCEND_Pos (27U)
  10175. #define FLASH_SR_CRCEND_Msk (0x1UL << FLASH_SR_CRCEND_Pos) /*!< 0x08000000 */
  10176. #define FLASH_SR_CRCEND FLASH_SR_CRCEND_Msk /*!< CRC end of calculation flag */
  10177. #define FLASH_SR_CRCRDERR_Pos (28U)
  10178. #define FLASH_SR_CRCRDERR_Msk (0x1UL << FLASH_SR_CRCRDERR_Pos) /*!< 0x10000000 */
  10179. #define FLASH_SR_CRCRDERR FLASH_SR_CRCRDERR_Msk /*!< CRC read error flag */
  10180. /******************* Bits definition for FLASH_CCR register *******************/
  10181. #define FLASH_CCR_CLR_EOP_Pos (16U)
  10182. #define FLASH_CCR_CLR_EOP_Msk (0x1UL << FLASH_CCR_CLR_EOP_Pos) /*!< 0x00010000 */
  10183. #define FLASH_CCR_CLR_EOP FLASH_CCR_CLR_EOP_Msk /*!< EOP flag clear bit */
  10184. #define FLASH_CCR_CLR_WRPERR_Pos (17U)
  10185. #define FLASH_CCR_CLR_WRPERR_Msk (0x1UL << FLASH_CCR_CLR_WRPERR_Pos) /*!< 0x00020000 */
  10186. #define FLASH_CCR_CLR_WRPERR FLASH_CCR_CLR_WRPERR_Msk /*!< WRPERR flag clear bit */
  10187. #define FLASH_CCR_CLR_PGSERR_Pos (18U)
  10188. #define FLASH_CCR_CLR_PGSERR_Msk (0x1UL << FLASH_CCR_CLR_PGSERR_Pos) /*!< 0x00040000 */
  10189. #define FLASH_CCR_CLR_PGSERR FLASH_CCR_CLR_PGSERR_Msk /*!< PGSERR flag clear bit */
  10190. #define FLASH_CCR_CLR_STRBERR_Pos (19U)
  10191. #define FLASH_CCR_CLR_STRBERR_Msk (0x1UL << FLASH_CCR_CLR_STRBERR_Pos) /*!< 0x00080000 */
  10192. #define FLASH_CCR_CLR_STRBERR FLASH_CCR_CLR_STRBERR_Msk /*!< STRBERR flag clear bit */
  10193. #define FLASH_CCR_CLR_INCERR_Pos (21U)
  10194. #define FLASH_CCR_CLR_INCERR_Msk (0x1UL << FLASH_CCR_CLR_INCERR_Pos) /*!< 0x00200000 */
  10195. #define FLASH_CCR_CLR_INCERR FLASH_CCR_CLR_INCERR_Msk /*!< INCERR flag clear bit */
  10196. #define FLASH_CCR_CLR_OPERR_Pos (22U)
  10197. #define FLASH_CCR_CLR_OPERR_Msk (0x1UL << FLASH_CCR_CLR_OPERR_Pos) /*!< 0x00400000 */
  10198. #define FLASH_CCR_CLR_OPERR FLASH_CCR_CLR_OPERR_Msk /*!< OPERR flag clear bit */
  10199. #define FLASH_CCR_CLR_RDPERR_Pos (23U)
  10200. #define FLASH_CCR_CLR_RDPERR_Msk (0x1UL << FLASH_CCR_CLR_RDPERR_Pos) /*!< 0x00800000 */
  10201. #define FLASH_CCR_CLR_RDPERR FLASH_CCR_CLR_RDPERR_Msk /*!< RDPERR flag clear bit */
  10202. #define FLASH_CCR_CLR_RDSERR_Pos (24U)
  10203. #define FLASH_CCR_CLR_RDSERR_Msk (0x1UL << FLASH_CCR_CLR_RDSERR_Pos) /*!< 0x01000000 */
  10204. #define FLASH_CCR_CLR_RDSERR FLASH_CCR_CLR_RDSERR_Msk /*!< RDSERR flag clear bit */
  10205. #define FLASH_CCR_CLR_SNECCERR_Pos (25U)
  10206. #define FLASH_CCR_CLR_SNECCERR_Msk (0x1UL << FLASH_CCR_CLR_SNECCERR_Pos) /*!< 0x02000000 */
  10207. #define FLASH_CCR_CLR_SNECCERR FLASH_CCR_CLR_SNECCERR_Msk /*!< SNECCERR flag clear bit */
  10208. #define FLASH_CCR_CLR_DBECCERR_Pos (26U)
  10209. #define FLASH_CCR_CLR_DBECCERR_Msk (0x1UL << FLASH_CCR_CLR_DBECCERR_Pos) /*!< 0x04000000 */
  10210. #define FLASH_CCR_CLR_DBECCERR FLASH_CCR_CLR_DBECCERR_Msk /*!< DBECCERR flag clear bit */
  10211. #define FLASH_CCR_CLR_CRCEND_Pos (27U)
  10212. #define FLASH_CCR_CLR_CRCEND_Msk (0x1UL << FLASH_CCR_CLR_CRCEND_Pos) /*!< 0x08000000 */
  10213. #define FLASH_CCR_CLR_CRCEND FLASH_CCR_CLR_CRCEND_Msk /*!< CRCEND flag clear bit */
  10214. #define FLASH_CCR_CLR_CRCRDERR_Pos (28U)
  10215. #define FLASH_CCR_CLR_CRCRDERR_Msk (0x1UL << FLASH_CCR_CLR_CRCRDERR_Pos) /*!< 0x10000000 */
  10216. #define FLASH_CCR_CLR_CRCRDERR FLASH_CCR_CLR_CRCRDERR_Msk /*!< CRCRDERR flag clear bit */
  10217. /******************* Bits definition for FLASH_OPTCR register *******************/
  10218. #define FLASH_OPTCR_OPTLOCK_Pos (0U)
  10219. #define FLASH_OPTCR_OPTLOCK_Msk (0x1UL << FLASH_OPTCR_OPTLOCK_Pos) /*!< 0x00000001 */
  10220. #define FLASH_OPTCR_OPTLOCK FLASH_OPTCR_OPTLOCK_Msk /*!< FLASH_OPTCR lock option configuration bit */
  10221. #define FLASH_OPTCR_OPTSTART_Pos (1U)
  10222. #define FLASH_OPTCR_OPTSTART_Msk (0x1UL << FLASH_OPTCR_OPTSTART_Pos) /*!< 0x00000002 */
  10223. #define FLASH_OPTCR_OPTSTART FLASH_OPTCR_OPTSTART_Msk /*!< Option byte start change option configuration bit */
  10224. #define FLASH_OPTCR_OPTCHANGEERRIE_Pos (30U)
  10225. #define FLASH_OPTCR_OPTCHANGEERRIE_Msk (0x1UL << FLASH_OPTCR_OPTCHANGEERRIE_Pos) /*!< 0x40000000 */
  10226. #define FLASH_OPTCR_OPTCHANGEERRIE FLASH_OPTCR_OPTCHANGEERRIE_Msk /*!< Option byte change error interrupt enable bit */
  10227. /******************* Bits definition for FLASH_OPTSR register ***************/
  10228. #define FLASH_OPTSR_OPT_BUSY_Pos (0U)
  10229. #define FLASH_OPTSR_OPT_BUSY_Msk (0x1UL << FLASH_OPTSR_OPT_BUSY_Pos) /*!< 0x00000001 */
  10230. #define FLASH_OPTSR_OPT_BUSY FLASH_OPTSR_OPT_BUSY_Msk /*!< Option byte change ongoing flag */
  10231. #define FLASH_OPTSR_BOR_LEV_Pos (2U)
  10232. #define FLASH_OPTSR_BOR_LEV_Msk (0x3UL << FLASH_OPTSR_BOR_LEV_Pos) /*!< 0x0000000C */
  10233. #define FLASH_OPTSR_BOR_LEV FLASH_OPTSR_BOR_LEV_Msk /*!< Brownout level option status bit */
  10234. #define FLASH_OPTSR_BOR_LEV_0 (0x1UL << FLASH_OPTSR_BOR_LEV_Pos) /*!< 0x00000004 */
  10235. #define FLASH_OPTSR_BOR_LEV_1 (0x2UL << FLASH_OPTSR_BOR_LEV_Pos) /*!< 0x00000008 */
  10236. #define FLASH_OPTSR_IWDG1_SW_Pos (4U)
  10237. #define FLASH_OPTSR_IWDG1_SW_Msk (0x1UL << FLASH_OPTSR_IWDG1_SW_Pos) /*!< 0x00000010 */
  10238. #define FLASH_OPTSR_IWDG1_SW FLASH_OPTSR_IWDG1_SW_Msk /*!< IWDG1 control mode option status bit */
  10239. #define FLASH_OPTSR_NRST_STOP_D1_Pos (6U)
  10240. #define FLASH_OPTSR_NRST_STOP_D1_Msk (0x1UL << FLASH_OPTSR_NRST_STOP_D1_Pos) /*!< 0x00000040 */
  10241. #define FLASH_OPTSR_NRST_STOP_D1 FLASH_OPTSR_NRST_STOP_D1_Msk /*!< D1 domain DStop entry reset option status bit */
  10242. #define FLASH_OPTSR_NRST_STBY_D1_Pos (7U)
  10243. #define FLASH_OPTSR_NRST_STBY_D1_Msk (0x1UL << FLASH_OPTSR_NRST_STBY_D1_Pos) /*!< 0x00000080 */
  10244. #define FLASH_OPTSR_NRST_STBY_D1 FLASH_OPTSR_NRST_STBY_D1_Msk /*!< D1 domain DStandby entry reset option status bit */
  10245. #define FLASH_OPTSR_RDP_Pos (8U)
  10246. #define FLASH_OPTSR_RDP_Msk (0xFFUL << FLASH_OPTSR_RDP_Pos) /*!< 0x0000FF00 */
  10247. #define FLASH_OPTSR_RDP FLASH_OPTSR_RDP_Msk /*!< Readout protection level option status byte */
  10248. #define FLASH_OPTSR_FZ_IWDG_STOP_Pos (17U)
  10249. #define FLASH_OPTSR_FZ_IWDG_STOP_Msk (0x1UL << FLASH_OPTSR_FZ_IWDG_STOP_Pos) /*!< 0x00020000 */
  10250. #define FLASH_OPTSR_FZ_IWDG_STOP FLASH_OPTSR_FZ_IWDG_STOP_Msk /*!< IWDG Stop mode freeze option status bit */
  10251. #define FLASH_OPTSR_FZ_IWDG_SDBY_Pos (18U)
  10252. #define FLASH_OPTSR_FZ_IWDG_SDBY_Msk (0x1UL << FLASH_OPTSR_FZ_IWDG_SDBY_Pos) /*!< 0x00040000 */
  10253. #define FLASH_OPTSR_FZ_IWDG_SDBY FLASH_OPTSR_FZ_IWDG_SDBY_Msk /*!< IWDG Standby mode freeze option status bit */
  10254. #define FLASH_OPTSR_ST_RAM_SIZE_Pos (19U)
  10255. #define FLASH_OPTSR_ST_RAM_SIZE_Msk (0x3UL << FLASH_OPTSR_ST_RAM_SIZE_Pos) /*!< 0x00180000 */
  10256. #define FLASH_OPTSR_ST_RAM_SIZE FLASH_OPTSR_ST_RAM_SIZE_Msk /*!< ST RAM size option status */
  10257. #define FLASH_OPTSR_ST_RAM_SIZE_0 (0x1UL << FLASH_OPTSR_ST_RAM_SIZE_Pos) /*!< 0x00080000 */
  10258. #define FLASH_OPTSR_ST_RAM_SIZE_1 (0x2UL << FLASH_OPTSR_ST_RAM_SIZE_Pos) /*!< 0x00100000 */
  10259. #define FLASH_OPTSR_SECURITY_Pos (21U)
  10260. #define FLASH_OPTSR_SECURITY_Msk (0x1UL << FLASH_OPTSR_SECURITY_Pos) /*!< 0x00200000 */
  10261. #define FLASH_OPTSR_SECURITY FLASH_OPTSR_SECURITY_Msk /*!< Security enable option status bit */
  10262. #define FLASH_OPTSR_NRST_STOP_D2_Pos (24U)
  10263. #define FLASH_OPTSR_NRST_STOP_D2_Msk (0x1UL << FLASH_OPTSR_NRST_STOP_D2_Pos) /*!< 0x01000000 */
  10264. #define FLASH_OPTSR_NRST_STOP_D2 FLASH_OPTSR_NRST_STOP_D2_Msk /*!< D2 domain DStop entry reset option status bit */
  10265. #define FLASH_OPTSR_NRST_STBY_D2_Pos (25U)
  10266. #define FLASH_OPTSR_NRST_STBY_D2_Msk (0x1UL << FLASH_OPTSR_NRST_STBY_D2_Pos) /*!< 0x02000000 */
  10267. #define FLASH_OPTSR_NRST_STBY_D2 FLASH_OPTSR_NRST_STBY_D2_Msk /*!< D2 domain DStandby entry reset option status bit */
  10268. #define FLASH_OPTSR_IO_HSLV_Pos (29U)
  10269. #define FLASH_OPTSR_IO_HSLV_Msk (0x1UL << FLASH_OPTSR_IO_HSLV_Pos) /*!< 0x20000000 */
  10270. #define FLASH_OPTSR_IO_HSLV FLASH_OPTSR_IO_HSLV_Msk /*!< I/O high-speed at low-voltage status bit */
  10271. #define FLASH_OPTSR_OPTCHANGEERR_Pos (30U)
  10272. #define FLASH_OPTSR_OPTCHANGEERR_Msk (0x1UL << FLASH_OPTSR_OPTCHANGEERR_Pos) /*!< 0x40000000 */
  10273. #define FLASH_OPTSR_OPTCHANGEERR FLASH_OPTSR_OPTCHANGEERR_Msk /*!< Option byte change error flag */
  10274. /******************* Bits definition for FLASH_OPTCCR register *******************/
  10275. #define FLASH_OPTCCR_CLR_OPTCHANGEERR_Pos (30U)
  10276. #define FLASH_OPTCCR_CLR_OPTCHANGEERR_Msk (0x1UL << FLASH_OPTCCR_CLR_OPTCHANGEERR_Pos) /*!< 0x40000000 */
  10277. #define FLASH_OPTCCR_CLR_OPTCHANGEERR FLASH_OPTCCR_CLR_OPTCHANGEERR_Msk /*!< OPTCHANGEERR reset bit */
  10278. /******************* Bits definition for FLASH_PRAR register *********************/
  10279. #define FLASH_PRAR_PROT_AREA_START_Pos (0U)
  10280. #define FLASH_PRAR_PROT_AREA_START_Msk (0xFFFUL << FLASH_PRAR_PROT_AREA_START_Pos) /*!< 0x00000FFF */
  10281. #define FLASH_PRAR_PROT_AREA_START FLASH_PRAR_PROT_AREA_START_Msk /*!< PCROP area start status bits */
  10282. #define FLASH_PRAR_PROT_AREA_END_Pos (16U)
  10283. #define FLASH_PRAR_PROT_AREA_END_Msk (0xFFFUL << FLASH_PRAR_PROT_AREA_END_Pos) /*!< 0x0FFF0000 */
  10284. #define FLASH_PRAR_PROT_AREA_END FLASH_PRAR_PROT_AREA_END_Msk /*!< PCROP area end status bits */
  10285. #define FLASH_PRAR_DMEP_Pos (31U)
  10286. #define FLASH_PRAR_DMEP_Msk (0x1UL << FLASH_PRAR_DMEP_Pos) /*!< 0x80000000 */
  10287. #define FLASH_PRAR_DMEP FLASH_PRAR_DMEP_Msk /*!< PCROP protected erase enable option status bit */
  10288. /******************* Bits definition for FLASH_SCAR register *********************/
  10289. #define FLASH_SCAR_SEC_AREA_START_Pos (0U)
  10290. #define FLASH_SCAR_SEC_AREA_START_Msk (0xFFFUL << FLASH_SCAR_SEC_AREA_START_Pos) /*!< 0x00000FFF */
  10291. #define FLASH_SCAR_SEC_AREA_START FLASH_SCAR_SEC_AREA_START_Msk /*!< Secure-only area start status bits */
  10292. #define FLASH_SCAR_SEC_AREA_END_Pos (16U)
  10293. #define FLASH_SCAR_SEC_AREA_END_Msk (0xFFFUL << FLASH_SCAR_SEC_AREA_END_Pos) /*!< 0x0FFF0000 */
  10294. #define FLASH_SCAR_SEC_AREA_END FLASH_SCAR_SEC_AREA_END_Msk /*!< Secure-only area end status bits */
  10295. #define FLASH_SCAR_DMES_Pos (31U)
  10296. #define FLASH_SCAR_DMES_Msk (0x1UL << FLASH_SCAR_DMES_Pos) /*!< 0x80000000 */
  10297. #define FLASH_SCAR_DMES FLASH_SCAR_DMES_Msk /*!< Secure access protected erase enable option status bit */
  10298. /******************* Bits definition for FLASH_WPSN register *********************/
  10299. #define FLASH_WPSN_WRPSN_Pos (0U)
  10300. #define FLASH_WPSN_WRPSN_Msk (0xFFUL << FLASH_WPSN_WRPSN_Pos) /*!< 0x000000FF */
  10301. #define FLASH_WPSN_WRPSN FLASH_WPSN_WRPSN_Msk /*!< Sector write protection option status byte */
  10302. /******************* Bits definition for FLASH_BOOT_CUR register ****************/
  10303. #define FLASH_BOOT_ADD0_Pos (0U)
  10304. #define FLASH_BOOT_ADD0_Msk (0xFFFFUL << FLASH_BOOT_ADD0_Pos) /*!< 0x0000FFFF */
  10305. #define FLASH_BOOT_ADD0 FLASH_BOOT_ADD0_Msk /*!< Arm Cortex-M7 boot address 0 */
  10306. #define FLASH_BOOT_ADD1_Pos (16U)
  10307. #define FLASH_BOOT_ADD1_Msk (0xFFFFUL << FLASH_BOOT_ADD1_Pos) /*!< 0xFFFF0000 */
  10308. #define FLASH_BOOT_ADD1 FLASH_BOOT_ADD1_Msk /*!< Arm Cortex-M7 boot address 1 */
  10309. /******************* Bits definition for FLASH_CRCCR register ********************/
  10310. #define FLASH_CRCCR_CRC_SECT_Pos (0U)
  10311. #define FLASH_CRCCR_CRC_SECT_Msk (0x7UL << FLASH_CRCCR_CRC_SECT_Pos) /*!< 0x00000007 */
  10312. #define FLASH_CRCCR_CRC_SECT FLASH_CRCCR_CRC_SECT_Msk /*!< CRC sector number */
  10313. #define FLASH_CRCCR_CRC_BY_SECT_Pos (8U)
  10314. #define FLASH_CRCCR_CRC_BY_SECT_Msk (0x1UL << FLASH_CRCCR_CRC_BY_SECT_Pos) /*!< 0x00000100 */
  10315. #define FLASH_CRCCR_CRC_BY_SECT FLASH_CRCCR_CRC_BY_SECT_Msk /*!< CRC sector mode select bit */
  10316. #define FLASH_CRCCR_ADD_SECT_Pos (9U)
  10317. #define FLASH_CRCCR_ADD_SECT_Msk (0x1UL << FLASH_CRCCR_ADD_SECT_Pos) /*!< 0x00000200 */
  10318. #define FLASH_CRCCR_ADD_SECT FLASH_CRCCR_ADD_SECT_Msk /*!< CRC sector select bit */
  10319. #define FLASH_CRCCR_CLEAN_SECT_Pos (10U)
  10320. #define FLASH_CRCCR_CLEAN_SECT_Msk (0x1UL << FLASH_CRCCR_CLEAN_SECT_Pos) /*!< 0x00000400 */
  10321. #define FLASH_CRCCR_CLEAN_SECT FLASH_CRCCR_CLEAN_SECT_Msk /*!< CRC sector list clear bit */
  10322. #define FLASH_CRCCR_START_CRC_Pos (16U)
  10323. #define FLASH_CRCCR_START_CRC_Msk (0x1UL << FLASH_CRCCR_START_CRC_Pos) /*!< 0x00010000 */
  10324. #define FLASH_CRCCR_START_CRC FLASH_CRCCR_START_CRC_Msk /*!< CRC start bit */
  10325. #define FLASH_CRCCR_CLEAN_CRC_Pos (17U)
  10326. #define FLASH_CRCCR_CLEAN_CRC_Msk (0x1UL << FLASH_CRCCR_CLEAN_CRC_Pos) /*!< 0x00020000 */
  10327. #define FLASH_CRCCR_CLEAN_CRC FLASH_CRCCR_CLEAN_CRC_Msk /*!< CRC clear bit */
  10328. #define FLASH_CRCCR_CRC_BURST_Pos (20U)
  10329. #define FLASH_CRCCR_CRC_BURST_Msk (0x3UL << FLASH_CRCCR_CRC_BURST_Pos) /*!< 0x00300000 */
  10330. #define FLASH_CRCCR_CRC_BURST FLASH_CRCCR_CRC_BURST_Msk /*!< CRC burst size */
  10331. #define FLASH_CRCCR_CRC_BURST_0 (0x1UL << FLASH_CRCCR_CRC_BURST_Pos) /*!< 0x00100000 */
  10332. #define FLASH_CRCCR_CRC_BURST_1 (0x2UL << FLASH_CRCCR_CRC_BURST_Pos) /*!< 0x00200000 */
  10333. #define FLASH_CRCCR_ALL_BANK_Pos (22U)
  10334. #define FLASH_CRCCR_ALL_BANK_Msk (0x1UL << FLASH_CRCCR_ALL_BANK_Pos) /*!< 0x00400000 */
  10335. #define FLASH_CRCCR_ALL_BANK FLASH_CRCCR_ALL_BANK_Msk /*!< CRC select bit */
  10336. /******************* Bits definition for FLASH_CRCSADD register ****************/
  10337. #define FLASH_CRCSADD_CRC_START_ADDR_Pos (0U)
  10338. #define FLASH_CRCSADD_CRC_START_ADDR_Msk (0xFFFFFFFFUL << FLASH_CRCSADD_CRC_START_ADDR_Pos) /*!< 0xFFFFFFFF */
  10339. #define FLASH_CRCSADD_CRC_START_ADDR FLASH_CRCSADD_CRC_START_ADDR_Msk /*!< CRC start address */
  10340. /******************* Bits definition for FLASH_CRCEADD register ****************/
  10341. #define FLASH_CRCEADD_CRC_END_ADDR_Pos (0U)
  10342. #define FLASH_CRCEADD_CRC_END_ADDR_Msk (0xFFFFFFFFUL << FLASH_CRCEADD_CRC_END_ADDR_Pos) /*!< 0xFFFFFFFF */
  10343. #define FLASH_CRCEADD_CRC_END_ADDR FLASH_CRCEADD_CRC_END_ADDR_Msk /*!< CRC end address */
  10344. /******************* Bits definition for FLASH_CRCDATA register ***************/
  10345. #define FLASH_CRCDATA_CRC_DATA_Pos (0U)
  10346. #define FLASH_CRCDATA_CRC_DATA_Msk (0xFFFFFFFFUL << FLASH_CRCDATA_CRC_DATA_Pos) /*!< 0xFFFFFFFF */
  10347. #define FLASH_CRCDATA_CRC_DATA FLASH_CRCDATA_CRC_DATA_Msk /*!< CRC result */
  10348. /******************* Bits definition for FLASH_ECC_FA register *******************/
  10349. #define FLASH_ECC_FA_FAIL_ECC_ADDR_Pos (0U)
  10350. #define FLASH_ECC_FA_FAIL_ECC_ADDR_Msk (0x7FFFUL << FLASH_ECC_FA_FAIL_ECC_ADDR_Pos) /*!< 0x00007FFF */
  10351. #define FLASH_ECC_FA_FAIL_ECC_ADDR FLASH_ECC_FA_FAIL_ECC_ADDR_Msk /*!< ECC error address */
  10352. /******************* Bits definition for FLASH_OPTSR2 register *******************/
  10353. #define FLASH_OPTSR2_TCM_AXI_SHARED_Pos (0U)
  10354. #define FLASH_OPTSR2_TCM_AXI_SHARED_Msk (0x3UL << FLASH_OPTSR2_TCM_AXI_SHARED_Pos) /*!< 0x00000003 */
  10355. #define FLASH_OPTSR2_TCM_AXI_SHARED FLASH_OPTSR2_TCM_AXI_SHARED_Msk /*!< TCM RAM shared */
  10356. #define FLASH_OPTSR2_TCM_AXI_SHARED_0 (0x1UL << FLASH_OPTSR2_TCM_AXI_SHARED_Pos) /*!< 0x00000001 */
  10357. #define FLASH_OPTSR2_TCM_AXI_SHARED_1 (0x2UL << FLASH_OPTSR2_TCM_AXI_SHARED_Pos) /*!< 0x00000002 */
  10358. #define FLASH_OPTSR2_CPUFREQ_BOOST_Pos (2U)
  10359. #define FLASH_OPTSR2_CPUFREQ_BOOST_Msk (0x1UL << FLASH_OPTSR2_CPUFREQ_BOOST_Pos) /*!< 0x00000004 */
  10360. #define FLASH_OPTSR2_CPUFREQ_BOOST FLASH_OPTSR2_CPUFREQ_BOOST_Msk /*!< CPU frequency boost */
  10361. /******************************************************************************/
  10362. /* */
  10363. /* Filter Mathematical ACcelerator unit (FMAC) */
  10364. /* */
  10365. /******************************************************************************/
  10366. /***************** Bit definition for FMAC_X1BUFCFG register ****************/
  10367. #define FMAC_X1BUFCFG_X1_BASE_Pos (0U)
  10368. #define FMAC_X1BUFCFG_X1_BASE_Msk (0xFFUL << FMAC_X1BUFCFG_X1_BASE_Pos) /*!< 0x000000FF */
  10369. #define FMAC_X1BUFCFG_X1_BASE FMAC_X1BUFCFG_X1_BASE_Msk /*!< Base address of X1 buffer */
  10370. #define FMAC_X1BUFCFG_X1_BUF_SIZE_Pos (8U)
  10371. #define FMAC_X1BUFCFG_X1_BUF_SIZE_Msk (0xFFUL << FMAC_X1BUFCFG_X1_BUF_SIZE_Pos)/*!< 0x0000FF00 */
  10372. #define FMAC_X1BUFCFG_X1_BUF_SIZE FMAC_X1BUFCFG_X1_BUF_SIZE_Msk /*!< Allocated size of X1 buffer in 16-bit words */
  10373. #define FMAC_X1BUFCFG_FULL_WM_Pos (24U)
  10374. #define FMAC_X1BUFCFG_FULL_WM_Msk (0x3UL << FMAC_X1BUFCFG_FULL_WM_Pos) /*!< 0x03000000 */
  10375. #define FMAC_X1BUFCFG_FULL_WM FMAC_X1BUFCFG_FULL_WM_Msk /*!< Watermark for buffer full flag */
  10376. /***************** Bit definition for FMAC_X2BUFCFG register ****************/
  10377. #define FMAC_X2BUFCFG_X2_BASE_Pos (0U)
  10378. #define FMAC_X2BUFCFG_X2_BASE_Msk (0xFFUL << FMAC_X2BUFCFG_X2_BASE_Pos) /*!< 0x000000FF */
  10379. #define FMAC_X2BUFCFG_X2_BASE FMAC_X2BUFCFG_X2_BASE_Msk /*!< Base address of X2 buffer */
  10380. #define FMAC_X2BUFCFG_X2_BUF_SIZE_Pos (8U)
  10381. #define FMAC_X2BUFCFG_X2_BUF_SIZE_Msk (0xFFUL << FMAC_X2BUFCFG_X2_BUF_SIZE_Pos)/*!< 0x0000FF00 */
  10382. #define FMAC_X2BUFCFG_X2_BUF_SIZE FMAC_X2BUFCFG_X2_BUF_SIZE_Msk /*!< Size of X2 buffer in 16-bit words */
  10383. /***************** Bit definition for FMAC_YBUFCFG register *****************/
  10384. #define FMAC_YBUFCFG_Y_BASE_Pos (0U)
  10385. #define FMAC_YBUFCFG_Y_BASE_Msk (0xFFUL << FMAC_YBUFCFG_Y_BASE_Pos) /*!< 0x000000FF */
  10386. #define FMAC_YBUFCFG_Y_BASE FMAC_YBUFCFG_Y_BASE_Msk /*!< Base address of Y buffer */
  10387. #define FMAC_YBUFCFG_Y_BUF_SIZE_Pos (8U)
  10388. #define FMAC_YBUFCFG_Y_BUF_SIZE_Msk (0xFFUL << FMAC_YBUFCFG_Y_BUF_SIZE_Pos) /*!< 0x0000FF00 */
  10389. #define FMAC_YBUFCFG_Y_BUF_SIZE FMAC_YBUFCFG_Y_BUF_SIZE_Msk /*!< Size of Y buffer in 16-bit words */
  10390. #define FMAC_YBUFCFG_EMPTY_WM_Pos (24U)
  10391. #define FMAC_YBUFCFG_EMPTY_WM_Msk (0x3UL << FMAC_YBUFCFG_EMPTY_WM_Pos) /*!< 0x03000000 */
  10392. #define FMAC_YBUFCFG_EMPTY_WM FMAC_YBUFCFG_EMPTY_WM_Msk /*!< Watermark for buffer empty flag */
  10393. /****************** Bit definition for FMAC_PARAM register ******************/
  10394. #define FMAC_PARAM_P_Pos (0U)
  10395. #define FMAC_PARAM_P_Msk (0xFFUL << FMAC_PARAM_P_Pos) /*!< 0x000000FF */
  10396. #define FMAC_PARAM_P FMAC_PARAM_P_Msk /*!< Input parameter P */
  10397. #define FMAC_PARAM_Q_Pos (8U)
  10398. #define FMAC_PARAM_Q_Msk (0xFFUL << FMAC_PARAM_Q_Pos) /*!< 0x0000FF00 */
  10399. #define FMAC_PARAM_Q FMAC_PARAM_Q_Msk /*!< Input parameter Q */
  10400. #define FMAC_PARAM_R_Pos (16U)
  10401. #define FMAC_PARAM_R_Msk (0xFFUL << FMAC_PARAM_R_Pos) /*!< 0x00FF0000 */
  10402. #define FMAC_PARAM_R FMAC_PARAM_R_Msk /*!< Input parameter R */
  10403. #define FMAC_PARAM_FUNC_Pos (24U)
  10404. #define FMAC_PARAM_FUNC_Msk (0x7FUL << FMAC_PARAM_FUNC_Pos) /*!< 0x7F000000 */
  10405. #define FMAC_PARAM_FUNC FMAC_PARAM_FUNC_Msk /*!< Function */
  10406. #define FMAC_PARAM_FUNC_0 (0x1UL << FMAC_PARAM_FUNC_Pos) /*!< 0x01000000 */
  10407. #define FMAC_PARAM_FUNC_1 (0x2UL << FMAC_PARAM_FUNC_Pos) /*!< 0x02000000 */
  10408. #define FMAC_PARAM_FUNC_2 (0x4UL << FMAC_PARAM_FUNC_Pos) /*!< 0x04000000 */
  10409. #define FMAC_PARAM_FUNC_3 (0x8UL << FMAC_PARAM_FUNC_Pos) /*!< 0x08000000 */
  10410. #define FMAC_PARAM_FUNC_4 (0x10UL << FMAC_PARAM_FUNC_Pos) /*!< 0x10000000 */
  10411. #define FMAC_PARAM_FUNC_5 (0x20UL << FMAC_PARAM_FUNC_Pos) /*!< 0x20000000 */
  10412. #define FMAC_PARAM_FUNC_6 (0x40UL << FMAC_PARAM_FUNC_Pos) /*!< 0x40000000 */
  10413. #define FMAC_PARAM_START_Pos (31U)
  10414. #define FMAC_PARAM_START_Msk (0x1UL << FMAC_PARAM_START_Pos) /*!< 0x80000000 */
  10415. #define FMAC_PARAM_START FMAC_PARAM_START_Msk /*!< Enable execution */
  10416. /******************** Bit definition for FMAC_CR register *******************/
  10417. #define FMAC_CR_RIEN_Pos (0U)
  10418. #define FMAC_CR_RIEN_Msk (0x1UL << FMAC_CR_RIEN_Pos) /*!< 0x00000001 */
  10419. #define FMAC_CR_RIEN FMAC_CR_RIEN_Msk /*!< Enable read interrupt */
  10420. #define FMAC_CR_WIEN_Pos (1U)
  10421. #define FMAC_CR_WIEN_Msk (0x1UL << FMAC_CR_WIEN_Pos) /*!< 0x00000002 */
  10422. #define FMAC_CR_WIEN FMAC_CR_WIEN_Msk /*!< Enable write interrupt */
  10423. #define FMAC_CR_OVFLIEN_Pos (2U)
  10424. #define FMAC_CR_OVFLIEN_Msk (0x1UL << FMAC_CR_OVFLIEN_Pos) /*!< 0x00000004 */
  10425. #define FMAC_CR_OVFLIEN FMAC_CR_OVFLIEN_Msk /*!< Enable overflow error interrupts */
  10426. #define FMAC_CR_UNFLIEN_Pos (3U)
  10427. #define FMAC_CR_UNFLIEN_Msk (0x1UL << FMAC_CR_UNFLIEN_Pos) /*!< 0x00000008 */
  10428. #define FMAC_CR_UNFLIEN FMAC_CR_UNFLIEN_Msk /*!< Enable underflow error interrupts */
  10429. #define FMAC_CR_SATIEN_Pos (4U)
  10430. #define FMAC_CR_SATIEN_Msk (0x1UL << FMAC_CR_SATIEN_Pos) /*!< 0x00000010 */
  10431. #define FMAC_CR_SATIEN FMAC_CR_SATIEN_Msk /*!< Enable saturation error interrupts */
  10432. #define FMAC_CR_DMAREN_Pos (8U)
  10433. #define FMAC_CR_DMAREN_Msk (0x1UL << FMAC_CR_DMAREN_Pos) /*!< 0x00000100 */
  10434. #define FMAC_CR_DMAREN FMAC_CR_DMAREN_Msk /*!< Enable DMA read channel requests */
  10435. #define FMAC_CR_DMAWEN_Pos (9U)
  10436. #define FMAC_CR_DMAWEN_Msk (0x1UL << FMAC_CR_DMAWEN_Pos) /*!< 0x00000200 */
  10437. #define FMAC_CR_DMAWEN FMAC_CR_DMAWEN_Msk /*!< Enable DMA write channel requests */
  10438. #define FMAC_CR_CLIPEN_Pos (15U)
  10439. #define FMAC_CR_CLIPEN_Msk (0x1UL << FMAC_CR_CLIPEN_Pos) /*!< 0x00008000 */
  10440. #define FMAC_CR_CLIPEN FMAC_CR_CLIPEN_Msk /*!< Enable clipping */
  10441. #define FMAC_CR_RESET_Pos (16U)
  10442. #define FMAC_CR_RESET_Msk (0x1UL << FMAC_CR_RESET_Pos) /*!< 0x00010000 */
  10443. #define FMAC_CR_RESET FMAC_CR_RESET_Msk /*!< Reset filter mathematical accelerator unit */
  10444. /******************* Bit definition for FMAC_SR register ********************/
  10445. #define FMAC_SR_YEMPTY_Pos (0U)
  10446. #define FMAC_SR_YEMPTY_Msk (0x1UL << FMAC_SR_YEMPTY_Pos) /*!< 0x00000001 */
  10447. #define FMAC_SR_YEMPTY FMAC_SR_YEMPTY_Msk /*!< Y buffer empty flag */
  10448. #define FMAC_SR_X1FULL_Pos (1U)
  10449. #define FMAC_SR_X1FULL_Msk (0x1UL << FMAC_SR_X1FULL_Pos) /*!< 0x00000002 */
  10450. #define FMAC_SR_X1FULL FMAC_SR_X1FULL_Msk /*!< X1 buffer full flag */
  10451. #define FMAC_SR_OVFL_Pos (8U)
  10452. #define FMAC_SR_OVFL_Msk (0x1UL << FMAC_SR_OVFL_Pos) /*!< 0x00000100 */
  10453. #define FMAC_SR_OVFL FMAC_SR_OVFL_Msk /*!< Overflow error flag */
  10454. #define FMAC_SR_UNFL_Pos (9U)
  10455. #define FMAC_SR_UNFL_Msk (0x1UL << FMAC_SR_UNFL_Pos) /*!< 0x00000200 */
  10456. #define FMAC_SR_UNFL FMAC_SR_UNFL_Msk /*!< Underflow error flag */
  10457. #define FMAC_SR_SAT_Pos (10U)
  10458. #define FMAC_SR_SAT_Msk (0x1UL << FMAC_SR_SAT_Pos) /*!< 0x00000400 */
  10459. #define FMAC_SR_SAT FMAC_SR_SAT_Msk /*!< Saturation error flag */
  10460. /****************** Bit definition for FMAC_WDATA register ******************/
  10461. #define FMAC_WDATA_WDATA_Pos (0U)
  10462. #define FMAC_WDATA_WDATA_Msk (0xFFFFUL << FMAC_WDATA_WDATA_Pos) /*!< 0x0000FFFF */
  10463. #define FMAC_WDATA_WDATA FMAC_WDATA_WDATA_Msk /*!< Write data */
  10464. /****************** Bit definition for FMACX_RDATA register *****************/
  10465. #define FMAC_RDATA_RDATA_Pos (0U)
  10466. #define FMAC_RDATA_RDATA_Msk (0xFFFFUL << FMAC_RDATA_RDATA_Pos) /*!< 0x0000FFFF */
  10467. #define FMAC_RDATA_RDATA FMAC_RDATA_RDATA_Msk /*!< Read data */
  10468. /******************************************************************************/
  10469. /* */
  10470. /* Flexible Memory Controller */
  10471. /* */
  10472. /******************************************************************************/
  10473. /****************** Bit definition for FMC_BCR1 register *******************/
  10474. #define FMC_BCR1_CCLKEN_Pos (20U)
  10475. #define FMC_BCR1_CCLKEN_Msk (0x1UL << FMC_BCR1_CCLKEN_Pos) /*!< 0x00100000 */
  10476. #define FMC_BCR1_CCLKEN FMC_BCR1_CCLKEN_Msk /*!<Continuous clock enable */
  10477. #define FMC_BCR1_WFDIS_Pos (21U)
  10478. #define FMC_BCR1_WFDIS_Msk (0x1UL << FMC_BCR1_WFDIS_Pos) /*!< 0x00200000 */
  10479. #define FMC_BCR1_WFDIS FMC_BCR1_WFDIS_Msk /*!<Write FIFO Disable */
  10480. #define FMC_BCR1_BMAP_Pos (24U)
  10481. #define FMC_BCR1_BMAP_Msk (0x3UL << FMC_BCR1_BMAP_Pos) /*!< 0x03000000 */
  10482. #define FMC_BCR1_BMAP FMC_BCR1_BMAP_Msk /*!<BMAP[1:0] FMC bank mapping */
  10483. #define FMC_BCR1_BMAP_0 (0x1UL << FMC_BCR1_BMAP_Pos) /*!< 0x01000000 */
  10484. #define FMC_BCR1_BMAP_1 (0x2UL << FMC_BCR1_BMAP_Pos) /*!< 0x02000000 */
  10485. #define FMC_BCR1_FMCEN_Pos (31U)
  10486. #define FMC_BCR1_FMCEN_Msk (0x1UL << FMC_BCR1_FMCEN_Pos) /*!< 0x80000000 */
  10487. #define FMC_BCR1_FMCEN FMC_BCR1_FMCEN_Msk /*!<FMC controller Enable */
  10488. /****************** Bit definition for FMC_BCRx registers (x=1..4) *********/
  10489. #define FMC_BCRx_MBKEN_Pos (0U)
  10490. #define FMC_BCRx_MBKEN_Msk (0x1UL << FMC_BCRx_MBKEN_Pos) /*!< 0x00000001 */
  10491. #define FMC_BCRx_MBKEN FMC_BCRx_MBKEN_Msk /*!<Memory bank enable bit */
  10492. #define FMC_BCRx_MUXEN_Pos (1U)
  10493. #define FMC_BCRx_MUXEN_Msk (0x1UL << FMC_BCRx_MUXEN_Pos) /*!< 0x00000002 */
  10494. #define FMC_BCRx_MUXEN FMC_BCRx_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  10495. #define FMC_BCRx_MTYP_Pos (2U)
  10496. #define FMC_BCRx_MTYP_Msk (0x3UL << FMC_BCRx_MTYP_Pos) /*!< 0x0000000C */
  10497. #define FMC_BCRx_MTYP FMC_BCRx_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  10498. #define FMC_BCRx_MTYP_0 (0x1UL << FMC_BCRx_MTYP_Pos) /*!< 0x00000004 */
  10499. #define FMC_BCRx_MTYP_1 (0x2UL << FMC_BCRx_MTYP_Pos) /*!< 0x00000008 */
  10500. #define FMC_BCRx_MWID_Pos (4U)
  10501. #define FMC_BCRx_MWID_Msk (0x3UL << FMC_BCRx_MWID_Pos) /*!< 0x00000030 */
  10502. #define FMC_BCRx_MWID FMC_BCRx_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  10503. #define FMC_BCRx_MWID_0 (0x1UL << FMC_BCRx_MWID_Pos) /*!< 0x00000010 */
  10504. #define FMC_BCRx_MWID_1 (0x2UL << FMC_BCRx_MWID_Pos) /*!< 0x00000020 */
  10505. #define FMC_BCRx_FACCEN_Pos (6U)
  10506. #define FMC_BCRx_FACCEN_Msk (0x1UL << FMC_BCRx_FACCEN_Pos) /*!< 0x00000040 */
  10507. #define FMC_BCRx_FACCEN FMC_BCRx_FACCEN_Msk /*!<Flash access enable */
  10508. #define FMC_BCRx_BURSTEN_Pos (8U)
  10509. #define FMC_BCRx_BURSTEN_Msk (0x1UL << FMC_BCRx_BURSTEN_Pos) /*!< 0x00000100 */
  10510. #define FMC_BCRx_BURSTEN FMC_BCRx_BURSTEN_Msk /*!<Burst enable bit */
  10511. #define FMC_BCRx_WAITPOL_Pos (9U)
  10512. #define FMC_BCRx_WAITPOL_Msk (0x1UL << FMC_BCRx_WAITPOL_Pos) /*!< 0x00000200 */
  10513. #define FMC_BCRx_WAITPOL FMC_BCRx_WAITPOL_Msk /*!<Wait signal polarity bit */
  10514. #define FMC_BCRx_WAITCFG_Pos (11U)
  10515. #define FMC_BCRx_WAITCFG_Msk (0x1UL << FMC_BCRx_WAITCFG_Pos) /*!< 0x00000800 */
  10516. #define FMC_BCRx_WAITCFG FMC_BCRx_WAITCFG_Msk /*!<Wait timing configuration */
  10517. #define FMC_BCRx_WREN_Pos (12U)
  10518. #define FMC_BCRx_WREN_Msk (0x1UL << FMC_BCRx_WREN_Pos) /*!< 0x00001000 */
  10519. #define FMC_BCRx_WREN FMC_BCRx_WREN_Msk /*!<Write enable bit */
  10520. #define FMC_BCRx_WAITEN_Pos (13U)
  10521. #define FMC_BCRx_WAITEN_Msk (0x1UL << FMC_BCRx_WAITEN_Pos) /*!< 0x00002000 */
  10522. #define FMC_BCRx_WAITEN FMC_BCRx_WAITEN_Msk /*!<Wait enable bit */
  10523. #define FMC_BCRx_EXTMOD_Pos (14U)
  10524. #define FMC_BCRx_EXTMOD_Msk (0x1UL << FMC_BCRx_EXTMOD_Pos) /*!< 0x00004000 */
  10525. #define FMC_BCRx_EXTMOD FMC_BCRx_EXTMOD_Msk /*!<Extended mode enable */
  10526. #define FMC_BCRx_ASYNCWAIT_Pos (15U)
  10527. #define FMC_BCRx_ASYNCWAIT_Msk (0x1UL << FMC_BCRx_ASYNCWAIT_Pos) /*!< 0x00008000 */
  10528. #define FMC_BCRx_ASYNCWAIT FMC_BCRx_ASYNCWAIT_Msk /*!<Asynchronous wait */
  10529. #define FMC_BCRx_CPSIZE_Pos (16U)
  10530. #define FMC_BCRx_CPSIZE_Msk (0x7UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00070000 */
  10531. #define FMC_BCRx_CPSIZE FMC_BCRx_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  10532. #define FMC_BCRx_CPSIZE_0 (0x1UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00010000 */
  10533. #define FMC_BCRx_CPSIZE_1 (0x2UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00020000 */
  10534. #define FMC_BCRx_CPSIZE_2 (0x4UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00040000 */
  10535. #define FMC_BCRx_CBURSTRW_Pos (19U)
  10536. #define FMC_BCRx_CBURSTRW_Msk (0x1UL << FMC_BCRx_CBURSTRW_Pos) /*!< 0x00080000 */
  10537. #define FMC_BCRx_CBURSTRW FMC_BCRx_CBURSTRW_Msk /*!<Write burst enable */
  10538. /****************** Bit definition for FMC_BTRx registers (x=1..4) *********/
  10539. #define FMC_BTRx_ADDSET_Pos (0U)
  10540. #define FMC_BTRx_ADDSET_Msk (0xFUL << FMC_BTRx_ADDSET_Pos) /*!< 0x0000000F */
  10541. #define FMC_BTRx_ADDSET FMC_BTRx_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10542. #define FMC_BTRx_ADDSET_0 (0x1UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000001 */
  10543. #define FMC_BTRx_ADDSET_1 (0x2UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000002 */
  10544. #define FMC_BTRx_ADDSET_2 (0x4UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000004 */
  10545. #define FMC_BTRx_ADDSET_3 (0x8UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000008 */
  10546. #define FMC_BTRx_ADDHLD_Pos (4U)
  10547. #define FMC_BTRx_ADDHLD_Msk (0xFUL << FMC_BTRx_ADDHLD_Pos) /*!< 0x000000F0 */
  10548. #define FMC_BTRx_ADDHLD FMC_BTRx_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10549. #define FMC_BTRx_ADDHLD_0 (0x1UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000010 */
  10550. #define FMC_BTRx_ADDHLD_1 (0x2UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000020 */
  10551. #define FMC_BTRx_ADDHLD_2 (0x4UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000040 */
  10552. #define FMC_BTRx_ADDHLD_3 (0x8UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000080 */
  10553. #define FMC_BTRx_DATAST_Pos (8U)
  10554. #define FMC_BTRx_DATAST_Msk (0xFFUL << FMC_BTRx_DATAST_Pos) /*!< 0x0000FF00 */
  10555. #define FMC_BTRx_DATAST FMC_BTRx_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10556. #define FMC_BTRx_DATAST_0 (0x01UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000100 */
  10557. #define FMC_BTRx_DATAST_1 (0x02UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000200 */
  10558. #define FMC_BTRx_DATAST_2 (0x04UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000400 */
  10559. #define FMC_BTRx_DATAST_3 (0x08UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000800 */
  10560. #define FMC_BTRx_DATAST_4 (0x10UL << FMC_BTRx_DATAST_Pos) /*!< 0x00001000 */
  10561. #define FMC_BTRx_DATAST_5 (0x20UL << FMC_BTRx_DATAST_Pos) /*!< 0x00002000 */
  10562. #define FMC_BTRx_DATAST_6 (0x40UL << FMC_BTRx_DATAST_Pos) /*!< 0x00004000 */
  10563. #define FMC_BTRx_DATAST_7 (0x80UL << FMC_BTRx_DATAST_Pos) /*!< 0x00008000 */
  10564. #define FMC_BTRx_BUSTURN_Pos (16U)
  10565. #define FMC_BTRx_BUSTURN_Msk (0xFUL << FMC_BTRx_BUSTURN_Pos) /*!< 0x000F0000 */
  10566. #define FMC_BTRx_BUSTURN FMC_BTRx_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10567. #define FMC_BTRx_BUSTURN_0 (0x1UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00010000 */
  10568. #define FMC_BTRx_BUSTURN_1 (0x2UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00020000 */
  10569. #define FMC_BTRx_BUSTURN_2 (0x4UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00040000 */
  10570. #define FMC_BTRx_BUSTURN_3 (0x8UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00080000 */
  10571. #define FMC_BTRx_CLKDIV_Pos (20U)
  10572. #define FMC_BTRx_CLKDIV_Msk (0xFUL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00F00000 */
  10573. #define FMC_BTRx_CLKDIV FMC_BTRx_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  10574. #define FMC_BTRx_CLKDIV_0 (0x1UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00100000 */
  10575. #define FMC_BTRx_CLKDIV_1 (0x2UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00200000 */
  10576. #define FMC_BTRx_CLKDIV_2 (0x4UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00400000 */
  10577. #define FMC_BTRx_CLKDIV_3 (0x8UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00800000 */
  10578. #define FMC_BTRx_DATLAT_Pos (24U)
  10579. #define FMC_BTRx_DATLAT_Msk (0xFUL << FMC_BTRx_DATLAT_Pos) /*!< 0x0F000000 */
  10580. #define FMC_BTRx_DATLAT FMC_BTRx_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  10581. #define FMC_BTRx_DATLAT_0 (0x1UL << FMC_BTRx_DATLAT_Pos) /*!< 0x01000000 */
  10582. #define FMC_BTRx_DATLAT_1 (0x2UL << FMC_BTRx_DATLAT_Pos) /*!< 0x02000000 */
  10583. #define FMC_BTRx_DATLAT_2 (0x4UL << FMC_BTRx_DATLAT_Pos) /*!< 0x04000000 */
  10584. #define FMC_BTRx_DATLAT_3 (0x8UL << FMC_BTRx_DATLAT_Pos) /*!< 0x08000000 */
  10585. #define FMC_BTRx_ACCMOD_Pos (28U)
  10586. #define FMC_BTRx_ACCMOD_Msk (0x3UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x30000000 */
  10587. #define FMC_BTRx_ACCMOD FMC_BTRx_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10588. #define FMC_BTRx_ACCMOD_0 (0x1UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x10000000 */
  10589. #define FMC_BTRx_ACCMOD_1 (0x2UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x20000000 */
  10590. /****************** Bit definition for FMC_BWTRx registers (x=1..4) *********/
  10591. #define FMC_BWTRx_ADDSET_Pos (0U)
  10592. #define FMC_BWTRx_ADDSET_Msk (0xFUL << FMC_BWTRx_ADDSET_Pos) /*!< 0x0000000F */
  10593. #define FMC_BWTRx_ADDSET FMC_BWTRx_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10594. #define FMC_BWTRx_ADDSET_0 (0x1UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000001 */
  10595. #define FMC_BWTRx_ADDSET_1 (0x2UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000002 */
  10596. #define FMC_BWTRx_ADDSET_2 (0x4UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000004 */
  10597. #define FMC_BWTRx_ADDSET_3 (0x8UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000008 */
  10598. #define FMC_BWTRx_ADDHLD_Pos (4U)
  10599. #define FMC_BWTRx_ADDHLD_Msk (0xFUL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x000000F0 */
  10600. #define FMC_BWTRx_ADDHLD FMC_BWTRx_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10601. #define FMC_BWTRx_ADDHLD_0 (0x1UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000010 */
  10602. #define FMC_BWTRx_ADDHLD_1 (0x2UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000020 */
  10603. #define FMC_BWTRx_ADDHLD_2 (0x4UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000040 */
  10604. #define FMC_BWTRx_ADDHLD_3 (0x8UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000080 */
  10605. #define FMC_BWTRx_DATAST_Pos (8U)
  10606. #define FMC_BWTRx_DATAST_Msk (0xFFUL << FMC_BWTRx_DATAST_Pos) /*!< 0x0000FF00 */
  10607. #define FMC_BWTRx_DATAST FMC_BWTRx_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10608. #define FMC_BWTRx_DATAST_0 (0x01UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000100 */
  10609. #define FMC_BWTRx_DATAST_1 (0x02UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000200 */
  10610. #define FMC_BWTRx_DATAST_2 (0x04UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000400 */
  10611. #define FMC_BWTRx_DATAST_3 (0x08UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000800 */
  10612. #define FMC_BWTRx_DATAST_4 (0x10UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00001000 */
  10613. #define FMC_BWTRx_DATAST_5 (0x20UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00002000 */
  10614. #define FMC_BWTRx_DATAST_6 (0x40UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00004000 */
  10615. #define FMC_BWTRx_DATAST_7 (0x80UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00008000 */
  10616. #define FMC_BWTRx_BUSTURN_Pos (16U)
  10617. #define FMC_BWTRx_BUSTURN_Msk (0xFUL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x000F0000 */
  10618. #define FMC_BWTRx_BUSTURN FMC_BWTRx_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10619. #define FMC_BWTRx_BUSTURN_0 (0x1UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00010000 */
  10620. #define FMC_BWTRx_BUSTURN_1 (0x2UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00020000 */
  10621. #define FMC_BWTRx_BUSTURN_2 (0x4UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00040000 */
  10622. #define FMC_BWTRx_BUSTURN_3 (0x8UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00080000 */
  10623. #define FMC_BWTRx_ACCMOD_Pos (28U)
  10624. #define FMC_BWTRx_ACCMOD_Msk (0x3UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x30000000 */
  10625. #define FMC_BWTRx_ACCMOD FMC_BWTRx_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10626. #define FMC_BWTRx_ACCMOD_0 (0x1UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x10000000 */
  10627. #define FMC_BWTRx_ACCMOD_1 (0x2UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x20000000 */
  10628. /****************** Bit definition for FMC_PCR register *******************/
  10629. #define FMC_PCR_PWAITEN_Pos (1U)
  10630. #define FMC_PCR_PWAITEN_Msk (0x1UL << FMC_PCR_PWAITEN_Pos) /*!< 0x00000002 */
  10631. #define FMC_PCR_PWAITEN FMC_PCR_PWAITEN_Msk /*!<Wait feature enable bit */
  10632. #define FMC_PCR_PBKEN_Pos (2U)
  10633. #define FMC_PCR_PBKEN_Msk (0x1UL << FMC_PCR_PBKEN_Pos) /*!< 0x00000004 */
  10634. #define FMC_PCR_PBKEN FMC_PCR_PBKEN_Msk /*!<NAND Flash memory bank enable bit */
  10635. #define FMC_PCR_PWID_Pos (4U)
  10636. #define FMC_PCR_PWID_Msk (0x3UL << FMC_PCR_PWID_Pos) /*!< 0x00000030 */
  10637. #define FMC_PCR_PWID FMC_PCR_PWID_Msk /*!<PWID[1:0] bits (NAND Flash databus width) */
  10638. #define FMC_PCR_PWID_0 (0x1UL << FMC_PCR_PWID_Pos) /*!< 0x00000010 */
  10639. #define FMC_PCR_PWID_1 (0x2UL << FMC_PCR_PWID_Pos) /*!< 0x00000020 */
  10640. #define FMC_PCR_ECCEN_Pos (6U)
  10641. #define FMC_PCR_ECCEN_Msk (0x1UL << FMC_PCR_ECCEN_Pos) /*!< 0x00000040 */
  10642. #define FMC_PCR_ECCEN FMC_PCR_ECCEN_Msk /*!<ECC computation logic enable bit */
  10643. #define FMC_PCR_TCLR_Pos (9U)
  10644. #define FMC_PCR_TCLR_Msk (0xFUL << FMC_PCR_TCLR_Pos) /*!< 0x00001E00 */
  10645. #define FMC_PCR_TCLR FMC_PCR_TCLR_Msk /*!<TCLR[3:0] bits (CLE to RE delay) */
  10646. #define FMC_PCR_TCLR_0 (0x1UL << FMC_PCR_TCLR_Pos) /*!< 0x00000200 */
  10647. #define FMC_PCR_TCLR_1 (0x2UL << FMC_PCR_TCLR_Pos) /*!< 0x00000400 */
  10648. #define FMC_PCR_TCLR_2 (0x4UL << FMC_PCR_TCLR_Pos) /*!< 0x00000800 */
  10649. #define FMC_PCR_TCLR_3 (0x8UL << FMC_PCR_TCLR_Pos) /*!< 0x00001000 */
  10650. #define FMC_PCR_TAR_Pos (13U)
  10651. #define FMC_PCR_TAR_Msk (0xFUL << FMC_PCR_TAR_Pos) /*!< 0x0001E000 */
  10652. #define FMC_PCR_TAR FMC_PCR_TAR_Msk /*!<TAR[3:0] bits (ALE to RE delay) */
  10653. #define FMC_PCR_TAR_0 (0x1UL << FMC_PCR_TAR_Pos) /*!< 0x00002000 */
  10654. #define FMC_PCR_TAR_1 (0x2UL << FMC_PCR_TAR_Pos) /*!< 0x00004000 */
  10655. #define FMC_PCR_TAR_2 (0x4UL << FMC_PCR_TAR_Pos) /*!< 0x00008000 */
  10656. #define FMC_PCR_TAR_3 (0x8UL << FMC_PCR_TAR_Pos) /*!< 0x00010000 */
  10657. #define FMC_PCR_ECCPS_Pos (17U)
  10658. #define FMC_PCR_ECCPS_Msk (0x7UL << FMC_PCR_ECCPS_Pos) /*!< 0x000E0000 */
  10659. #define FMC_PCR_ECCPS FMC_PCR_ECCPS_Msk /*!<ECCPS[1:0] bits (ECC page size) */
  10660. #define FMC_PCR_ECCPS_0 (0x1UL << FMC_PCR_ECCPS_Pos) /*!< 0x00020000 */
  10661. #define FMC_PCR_ECCPS_1 (0x2UL << FMC_PCR_ECCPS_Pos) /*!< 0x00040000 */
  10662. #define FMC_PCR_ECCPS_2 (0x4UL << FMC_PCR_ECCPS_Pos) /*!< 0x00080000 */
  10663. /******************* Bit definition for FMC_SR register *******************/
  10664. #define FMC_SR_IRS_Pos (0U)
  10665. #define FMC_SR_IRS_Msk (0x1UL << FMC_SR_IRS_Pos) /*!< 0x00000001 */
  10666. #define FMC_SR_IRS FMC_SR_IRS_Msk /*!<Interrupt Rising Edge status */
  10667. #define FMC_SR_ILS_Pos (1U)
  10668. #define FMC_SR_ILS_Msk (0x1UL << FMC_SR_ILS_Pos) /*!< 0x00000002 */
  10669. #define FMC_SR_ILS FMC_SR_ILS_Msk /*!<Interrupt Level status */
  10670. #define FMC_SR_IFS_Pos (2U)
  10671. #define FMC_SR_IFS_Msk (0x1UL << FMC_SR_IFS_Pos) /*!< 0x00000004 */
  10672. #define FMC_SR_IFS FMC_SR_IFS_Msk /*!<Interrupt Falling Edge status */
  10673. #define FMC_SR_IREN_Pos (3U)
  10674. #define FMC_SR_IREN_Msk (0x1UL << FMC_SR_IREN_Pos) /*!< 0x00000008 */
  10675. #define FMC_SR_IREN FMC_SR_IREN_Msk /*!<Interrupt Rising Edge detection Enable bit */
  10676. #define FMC_SR_ILEN_Pos (4U)
  10677. #define FMC_SR_ILEN_Msk (0x1UL << FMC_SR_ILEN_Pos) /*!< 0x00000010 */
  10678. #define FMC_SR_ILEN FMC_SR_ILEN_Msk /*!<Interrupt Level detection Enable bit */
  10679. #define FMC_SR_IFEN_Pos (5U)
  10680. #define FMC_SR_IFEN_Msk (0x1UL << FMC_SR_IFEN_Pos) /*!< 0x00000020 */
  10681. #define FMC_SR_IFEN FMC_SR_IFEN_Msk /*!<Interrupt Falling Edge detection Enable bit */
  10682. #define FMC_SR_FEMPT_Pos (6U)
  10683. #define FMC_SR_FEMPT_Msk (0x1UL << FMC_SR_FEMPT_Pos) /*!< 0x00000040 */
  10684. #define FMC_SR_FEMPT FMC_SR_FEMPT_Msk /*!<FIFO empty */
  10685. /****************** Bit definition for FMC_PMEM register ******************/
  10686. #define FMC_PMEM_MEMSET_Pos (0U)
  10687. #define FMC_PMEM_MEMSET_Msk (0xFFUL << FMC_PMEM_MEMSET_Pos) /*!< 0x000000FF */
  10688. #define FMC_PMEM_MEMSET FMC_PMEM_MEMSET_Msk /*!<MEMSET[7:0] bits (Common memory setup time) */
  10689. #define FMC_PMEM_MEMSET_0 (0x01UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000001 */
  10690. #define FMC_PMEM_MEMSET_1 (0x02UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000002 */
  10691. #define FMC_PMEM_MEMSET_2 (0x04UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000004 */
  10692. #define FMC_PMEM_MEMSET_3 (0x08UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000008 */
  10693. #define FMC_PMEM_MEMSET_4 (0x10UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000010 */
  10694. #define FMC_PMEM_MEMSET_5 (0x20UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000020 */
  10695. #define FMC_PMEM_MEMSET_6 (0x40UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000040 */
  10696. #define FMC_PMEM_MEMSET_7 (0x80UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000080 */
  10697. #define FMC_PMEM_MEMWAIT_Pos (8U)
  10698. #define FMC_PMEM_MEMWAIT_Msk (0xFFUL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x0000FF00 */
  10699. #define FMC_PMEM_MEMWAIT FMC_PMEM_MEMWAIT_Msk /*!<MEMWAIT[7:0] bits (Common memory wait time) */
  10700. #define FMC_PMEM_MEMWAIT_0 (0x01UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000100 */
  10701. #define FMC_PMEM_MEMWAIT_1 (0x02UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000200 */
  10702. #define FMC_PMEM_MEMWAIT_2 (0x04UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000400 */
  10703. #define FMC_PMEM_MEMWAIT_3 (0x08UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000800 */
  10704. #define FMC_PMEM_MEMWAIT_4 (0x10UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00001000 */
  10705. #define FMC_PMEM_MEMWAIT_5 (0x20UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00002000 */
  10706. #define FMC_PMEM_MEMWAIT_6 (0x40UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00004000 */
  10707. #define FMC_PMEM_MEMWAIT_7 (0x80UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00008000 */
  10708. #define FMC_PMEM_MEMHOLD_Pos (16U)
  10709. #define FMC_PMEM_MEMHOLD_Msk (0xFFUL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00FF0000 */
  10710. #define FMC_PMEM_MEMHOLD FMC_PMEM_MEMHOLD_Msk /*!<MEMHOLD[7:0] bits (Common memory hold time) */
  10711. #define FMC_PMEM_MEMHOLD_0 (0x01UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00010000 */
  10712. #define FMC_PMEM_MEMHOLD_1 (0x02UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00020000 */
  10713. #define FMC_PMEM_MEMHOLD_2 (0x04UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00040000 */
  10714. #define FMC_PMEM_MEMHOLD_3 (0x08UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00080000 */
  10715. #define FMC_PMEM_MEMHOLD_4 (0x10UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00100000 */
  10716. #define FMC_PMEM_MEMHOLD_5 (0x20UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00200000 */
  10717. #define FMC_PMEM_MEMHOLD_6 (0x40UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00400000 */
  10718. #define FMC_PMEM_MEMHOLD_7 (0x80UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00800000 */
  10719. #define FMC_PMEM_MEMHIZ_Pos (24U)
  10720. #define FMC_PMEM_MEMHIZ_Msk (0xFFUL << FMC_PMEM_MEMHIZ_Pos) /*!< 0xFF000000 */
  10721. #define FMC_PMEM_MEMHIZ FMC_PMEM_MEMHIZ_Msk /*!<MEMHIZ[7:0] bits (Common memory databus HiZ time) */
  10722. #define FMC_PMEM_MEMHIZ_0 (0x01UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x01000000 */
  10723. #define FMC_PMEM_MEMHIZ_1 (0x02UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x02000000 */
  10724. #define FMC_PMEM_MEMHIZ_2 (0x04UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x04000000 */
  10725. #define FMC_PMEM_MEMHIZ_3 (0x08UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x08000000 */
  10726. #define FMC_PMEM_MEMHIZ_4 (0x10UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x10000000 */
  10727. #define FMC_PMEM_MEMHIZ_5 (0x20UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x20000000 */
  10728. #define FMC_PMEM_MEMHIZ_6 (0x40UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x40000000 */
  10729. #define FMC_PMEM_MEMHIZ_7 (0x80UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x80000000 */
  10730. /****************** Bit definition for FMC_PATT register ******************/
  10731. #define FMC_PATT_ATTSET_Pos (0U)
  10732. #define FMC_PATT_ATTSET_Msk (0xFFUL << FMC_PATT_ATTSET_Pos) /*!< 0x000000FF */
  10733. #define FMC_PATT_ATTSET FMC_PATT_ATTSET_Msk /*!<ATTSET[7:0] bits (Attribute memory setup time) */
  10734. #define FMC_PATT_ATTSET_0 (0x01UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000001 */
  10735. #define FMC_PATT_ATTSET_1 (0x02UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000002 */
  10736. #define FMC_PATT_ATTSET_2 (0x04UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000004 */
  10737. #define FMC_PATT_ATTSET_3 (0x08UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000008 */
  10738. #define FMC_PATT_ATTSET_4 (0x10UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000010 */
  10739. #define FMC_PATT_ATTSET_5 (0x20UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000020 */
  10740. #define FMC_PATT_ATTSET_6 (0x40UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000040 */
  10741. #define FMC_PATT_ATTSET_7 (0x80UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000080 */
  10742. #define FMC_PATT_ATTWAIT_Pos (8U)
  10743. #define FMC_PATT_ATTWAIT_Msk (0xFFUL << FMC_PATT_ATTWAIT_Pos) /*!< 0x0000FF00 */
  10744. #define FMC_PATT_ATTWAIT FMC_PATT_ATTWAIT_Msk /*!<ATTWAIT[7:0] bits (Attribute memory wait time) */
  10745. #define FMC_PATT_ATTWAIT_0 (0x01UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000100 */
  10746. #define FMC_PATT_ATTWAIT_1 (0x02UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000200 */
  10747. #define FMC_PATT_ATTWAIT_2 (0x04UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000400 */
  10748. #define FMC_PATT_ATTWAIT_3 (0x08UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000800 */
  10749. #define FMC_PATT_ATTWAIT_4 (0x10UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00001000 */
  10750. #define FMC_PATT_ATTWAIT_5 (0x20UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00002000 */
  10751. #define FMC_PATT_ATTWAIT_6 (0x40UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00004000 */
  10752. #define FMC_PATT_ATTWAIT_7 (0x80UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00008000 */
  10753. #define FMC_PATT_ATTHOLD_Pos (16U)
  10754. #define FMC_PATT_ATTHOLD_Msk (0xFFUL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00FF0000 */
  10755. #define FMC_PATT_ATTHOLD FMC_PATT_ATTHOLD_Msk /*!<ATTHOLD[7:0] bits (Attribute memory hold time) */
  10756. #define FMC_PATT_ATTHOLD_0 (0x01UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00010000 */
  10757. #define FMC_PATT_ATTHOLD_1 (0x02UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00020000 */
  10758. #define FMC_PATT_ATTHOLD_2 (0x04UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00040000 */
  10759. #define FMC_PATT_ATTHOLD_3 (0x08UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00080000 */
  10760. #define FMC_PATT_ATTHOLD_4 (0x10UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00100000 */
  10761. #define FMC_PATT_ATTHOLD_5 (0x20UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00200000 */
  10762. #define FMC_PATT_ATTHOLD_6 (0x40UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00400000 */
  10763. #define FMC_PATT_ATTHOLD_7 (0x80UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00800000 */
  10764. #define FMC_PATT_ATTHIZ_Pos (24U)
  10765. #define FMC_PATT_ATTHIZ_Msk (0xFFUL << FMC_PATT_ATTHIZ_Pos) /*!< 0xFF000000 */
  10766. #define FMC_PATT_ATTHIZ FMC_PATT_ATTHIZ_Msk /*!<ATTHIZ[7:0] bits (Attribute memory databus HiZ time) */
  10767. #define FMC_PATT_ATTHIZ_0 (0x01UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x01000000 */
  10768. #define FMC_PATT_ATTHIZ_1 (0x02UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x02000000 */
  10769. #define FMC_PATT_ATTHIZ_2 (0x04UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x04000000 */
  10770. #define FMC_PATT_ATTHIZ_3 (0x08UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x08000000 */
  10771. #define FMC_PATT_ATTHIZ_4 (0x10UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x10000000 */
  10772. #define FMC_PATT_ATTHIZ_5 (0x20UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x20000000 */
  10773. #define FMC_PATT_ATTHIZ_6 (0x40UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x40000000 */
  10774. #define FMC_PATT_ATTHIZ_7 (0x80UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x80000000 */
  10775. /****************** Bit definition for FMC_ECCR3 register ******************/
  10776. #define FMC_ECCR3_ECC3_Pos (0U)
  10777. #define FMC_ECCR3_ECC3_Msk (0xFFFFFFFFUL << FMC_ECCR3_ECC3_Pos) /*!< 0xFFFFFFFF */
  10778. #define FMC_ECCR3_ECC3 FMC_ECCR3_ECC3_Msk /*!<ECC result */
  10779. /****************** Bit definition for FMC_SDCRx registers (x=1..4) *********/
  10780. #define FMC_SDCRx_NC_Pos (0U)
  10781. #define FMC_SDCRx_NC_Msk (0x3UL << FMC_SDCRx_NC_Pos) /*!< 0x00000003 */
  10782. #define FMC_SDCRx_NC FMC_SDCRx_NC_Msk /*!<NC[1:0] bits (Number of column bits) */
  10783. #define FMC_SDCRx_NC_0 (0x1UL << FMC_SDCRx_NC_Pos) /*!< 0x00000001 */
  10784. #define FMC_SDCRx_NC_1 (0x2UL << FMC_SDCRx_NC_Pos) /*!< 0x00000002 */
  10785. #define FMC_SDCRx_NR_Pos (2U)
  10786. #define FMC_SDCRx_NR_Msk (0x3UL << FMC_SDCRx_NR_Pos) /*!< 0x0000000C */
  10787. #define FMC_SDCRx_NR FMC_SDCRx_NR_Msk /*!<NR[1:0] bits (Number of row bits) */
  10788. #define FMC_SDCRx_NR_0 (0x1UL << FMC_SDCRx_NR_Pos) /*!< 0x00000004 */
  10789. #define FMC_SDCRx_NR_1 (0x2UL << FMC_SDCRx_NR_Pos) /*!< 0x00000008 */
  10790. #define FMC_SDCRx_MWID_Pos (4U)
  10791. #define FMC_SDCRx_MWID_Msk (0x3UL << FMC_SDCRx_MWID_Pos) /*!< 0x00000030 */
  10792. #define FMC_SDCRx_MWID FMC_SDCRx_MWID_Msk /*!<NR[1:0] bits (Number of row bits) */
  10793. #define FMC_SDCRx_MWID_0 (0x1UL << FMC_SDCRx_MWID_Pos) /*!< 0x00000010 */
  10794. #define FMC_SDCRx_MWID_1 (0x2UL << FMC_SDCRx_MWID_Pos) /*!< 0x00000020 */
  10795. #define FMC_SDCRx_NB_Pos (6U)
  10796. #define FMC_SDCRx_NB_Msk (0x1UL << FMC_SDCRx_NB_Pos) /*!< 0x00000040 */
  10797. #define FMC_SDCRx_NB FMC_SDCRx_NB_Msk /*!<Number of internal bank */
  10798. #define FMC_SDCRx_CAS_Pos (7U)
  10799. #define FMC_SDCRx_CAS_Msk (0x3UL << FMC_SDCRx_CAS_Pos) /*!< 0x00000180 */
  10800. #define FMC_SDCRx_CAS FMC_SDCRx_CAS_Msk /*!<CAS[1:0] bits (CAS latency) */
  10801. #define FMC_SDCRx_CAS_0 (0x1UL << FMC_SDCRx_CAS_Pos) /*!< 0x00000080 */
  10802. #define FMC_SDCRx_CAS_1 (0x2UL << FMC_SDCRx_CAS_Pos) /*!< 0x00000100 */
  10803. #define FMC_SDCRx_WP_Pos (9U)
  10804. #define FMC_SDCRx_WP_Msk (0x1UL << FMC_SDCRx_WP_Pos) /*!< 0x00000200 */
  10805. #define FMC_SDCRx_WP FMC_SDCRx_WP_Msk /*!<Write protection */
  10806. #define FMC_SDCRx_SDCLK_Pos (10U)
  10807. #define FMC_SDCRx_SDCLK_Msk (0x3UL << FMC_SDCRx_SDCLK_Pos) /*!< 0x00000C00 */
  10808. #define FMC_SDCRx_SDCLK FMC_SDCRx_SDCLK_Msk /*!<SDRAM clock configuration */
  10809. #define FMC_SDCRx_SDCLK_0 (0x1UL << FMC_SDCRx_SDCLK_Pos) /*!< 0x00000400 */
  10810. #define FMC_SDCRx_SDCLK_1 (0x2UL << FMC_SDCRx_SDCLK_Pos) /*!< 0x00000800 */
  10811. #define FMC_SDCRx_RBURST_Pos (12U)
  10812. #define FMC_SDCRx_RBURST_Msk (0x1UL << FMC_SDCRx_RBURST_Pos) /*!< 0x00001000 */
  10813. #define FMC_SDCRx_RBURST FMC_SDCRx_RBURST_Msk /*!<Read burst */
  10814. #define FMC_SDCRx_RPIPE_Pos (13U)
  10815. #define FMC_SDCRx_RPIPE_Msk (0x3UL << FMC_SDCRx_RPIPE_Pos) /*!< 0x00006000 */
  10816. #define FMC_SDCRx_RPIPE FMC_SDCRx_RPIPE_Msk /*!<Write protection */
  10817. #define FMC_SDCRx_RPIPE_0 (0x1UL << FMC_SDCRx_RPIPE_Pos) /*!< 0x00002000 */
  10818. #define FMC_SDCRx_RPIPE_1 (0x2UL << FMC_SDCRx_RPIPE_Pos) /*!< 0x00004000 */
  10819. /****************** Bit definition for FMC_SDTRx(1,2) register ******************/
  10820. #define FMC_SDTRx_TMRD_Pos (0U)
  10821. #define FMC_SDTRx_TMRD_Msk (0xFUL << FMC_SDTRx_TMRD_Pos) /*!< 0x0000000F */
  10822. #define FMC_SDTRx_TMRD FMC_SDTRx_TMRD_Msk /*!<TMRD[3:0] bits (Load mode register to active) */
  10823. #define FMC_SDTRx_TMRD_0 (0x1UL << FMC_SDTRx_TMRD_Pos) /*!< 0x00000001 */
  10824. #define FMC_SDTRx_TMRD_1 (0x2UL << FMC_SDTRx_TMRD_Pos) /*!< 0x00000002 */
  10825. #define FMC_SDTRx_TMRD_2 (0x4UL << FMC_SDTRx_TMRD_Pos) /*!< 0x00000004 */
  10826. #define FMC_SDTRx_TMRD_3 (0x8UL << FMC_SDTRx_TMRD_Pos) /*!< 0x00000008 */
  10827. #define FMC_SDTRx_TXSR_Pos (4U)
  10828. #define FMC_SDTRx_TXSR_Msk (0xFUL << FMC_SDTRx_TXSR_Pos) /*!< 0x000000F0 */
  10829. #define FMC_SDTRx_TXSR FMC_SDTRx_TXSR_Msk /*!<TXSR[3:0] bits (Exit self refresh) */
  10830. #define FMC_SDTRx_TXSR_0 (0x1UL << FMC_SDTRx_TXSR_Pos) /*!< 0x00000010 */
  10831. #define FMC_SDTRx_TXSR_1 (0x2UL << FMC_SDTRx_TXSR_Pos) /*!< 0x00000020 */
  10832. #define FMC_SDTRx_TXSR_2 (0x4UL << FMC_SDTRx_TXSR_Pos) /*!< 0x00000040 */
  10833. #define FMC_SDTRx_TXSR_3 (0x8UL << FMC_SDTRx_TXSR_Pos) /*!< 0x00000080 */
  10834. #define FMC_SDTRx_TRAS_Pos (8U)
  10835. #define FMC_SDTRx_TRAS_Msk (0xFUL << FMC_SDTRx_TRAS_Pos) /*!< 0x00000F00 */
  10836. #define FMC_SDTRx_TRAS FMC_SDTRx_TRAS_Msk /*!<TRAS[3:0] bits (Self refresh time) */
  10837. #define FMC_SDTRx_TRAS_0 (0x1UL << FMC_SDTRx_TRAS_Pos) /*!< 0x00000100 */
  10838. #define FMC_SDTRx_TRAS_1 (0x2UL << FMC_SDTRx_TRAS_Pos) /*!< 0x00000200 */
  10839. #define FMC_SDTRx_TRAS_2 (0x4UL << FMC_SDTRx_TRAS_Pos) /*!< 0x00000400 */
  10840. #define FMC_SDTRx_TRAS_3 (0x8UL << FMC_SDTRx_TRAS_Pos) /*!< 0x00000800 */
  10841. #define FMC_SDTRx_TRC_Pos (12U)
  10842. #define FMC_SDTRx_TRC_Msk (0xFUL << FMC_SDTRx_TRC_Pos) /*!< 0x0000F000 */
  10843. #define FMC_SDTRx_TRC FMC_SDTRx_TRC_Msk /*!<TRC[2:0] bits (Row cycle delay) */
  10844. #define FMC_SDTRx_TRC_0 (0x1UL << FMC_SDTRx_TRC_Pos) /*!< 0x00001000 */
  10845. #define FMC_SDTRx_TRC_1 (0x2UL << FMC_SDTRx_TRC_Pos) /*!< 0x00002000 */
  10846. #define FMC_SDTRx_TRC_2 (0x4UL << FMC_SDTRx_TRC_Pos) /*!< 0x00004000 */
  10847. #define FMC_SDTRx_TWR_Pos (16U)
  10848. #define FMC_SDTRx_TWR_Msk (0xFUL << FMC_SDTRx_TWR_Pos) /*!< 0x000F0000 */
  10849. #define FMC_SDTRx_TWR FMC_SDTRx_TWR_Msk /*!<TRC[2:0] bits (Write recovery delay) */
  10850. #define FMC_SDTRx_TWR_0 (0x1UL << FMC_SDTRx_TWR_Pos) /*!< 0x00010000 */
  10851. #define FMC_SDTRx_TWR_1 (0x2UL << FMC_SDTRx_TWR_Pos) /*!< 0x00020000 */
  10852. #define FMC_SDTRx_TWR_2 (0x4UL << FMC_SDTRx_TWR_Pos) /*!< 0x00040000 */
  10853. #define FMC_SDTRx_TRP_Pos (20U)
  10854. #define FMC_SDTRx_TRP_Msk (0xFUL << FMC_SDTRx_TRP_Pos) /*!< 0x00F00000 */
  10855. #define FMC_SDTRx_TRP FMC_SDTRx_TRP_Msk /*!<TRP[2:0] bits (Row precharge delay) */
  10856. #define FMC_SDTRx_TRP_0 (0x1UL << FMC_SDTRx_TRP_Pos) /*!< 0x00100000 */
  10857. #define FMC_SDTRx_TRP_1 (0x2UL << FMC_SDTRx_TRP_Pos) /*!< 0x00200000 */
  10858. #define FMC_SDTRx_TRP_2 (0x4UL << FMC_SDTRx_TRP_Pos) /*!< 0x00400000 */
  10859. #define FMC_SDTRx_TRCD_Pos (24U)
  10860. #define FMC_SDTRx_TRCD_Msk (0xFUL << FMC_SDTRx_TRCD_Pos) /*!< 0x0F000000 */
  10861. #define FMC_SDTRx_TRCD FMC_SDTRx_TRCD_Msk /*!<TRP[2:0] bits (Row to column delay) */
  10862. #define FMC_SDTRx_TRCD_0 (0x1UL << FMC_SDTRx_TRCD_Pos) /*!< 0x01000000 */
  10863. #define FMC_SDTRx_TRCD_1 (0x2UL << FMC_SDTRx_TRCD_Pos) /*!< 0x02000000 */
  10864. #define FMC_SDTRx_TRCD_2 (0x4UL << FMC_SDTRx_TRCD_Pos) /*!< 0x04000000 */
  10865. /****************** Bit definition for FMC_SDCMR register ******************/
  10866. #define FMC_SDCMR_MODE_Pos (0U)
  10867. #define FMC_SDCMR_MODE_Msk (0x7UL << FMC_SDCMR_MODE_Pos) /*!< 0x00000007 */
  10868. #define FMC_SDCMR_MODE FMC_SDCMR_MODE_Msk /*!<MODE[2:0] bits (Command mode) */
  10869. #define FMC_SDCMR_MODE_0 (0x1UL << FMC_SDCMR_MODE_Pos) /*!< 0x00000001 */
  10870. #define FMC_SDCMR_MODE_1 (0x2UL << FMC_SDCMR_MODE_Pos) /*!< 0x00000002 */
  10871. #define FMC_SDCMR_MODE_2 (0x3UL << FMC_SDCMR_MODE_Pos) /*!< 0x00000003 */
  10872. #define FMC_SDCMR_CTB2_Pos (3U)
  10873. #define FMC_SDCMR_CTB2_Msk (0x1UL << FMC_SDCMR_CTB2_Pos) /*!< 0x00000008 */
  10874. #define FMC_SDCMR_CTB2 FMC_SDCMR_CTB2_Msk /*!<Command target 2 */
  10875. #define FMC_SDCMR_CTB1_Pos (4U)
  10876. #define FMC_SDCMR_CTB1_Msk (0x1UL << FMC_SDCMR_CTB1_Pos) /*!< 0x00000010 */
  10877. #define FMC_SDCMR_CTB1 FMC_SDCMR_CTB1_Msk /*!<Command target 1 */
  10878. #define FMC_SDCMR_NRFS_Pos (5U)
  10879. #define FMC_SDCMR_NRFS_Msk (0xFUL << FMC_SDCMR_NRFS_Pos) /*!< 0x000001E0 */
  10880. #define FMC_SDCMR_NRFS FMC_SDCMR_NRFS_Msk /*!<NRFS[3:0] bits (Number of auto-refresh) */
  10881. #define FMC_SDCMR_NRFS_0 (0x1UL << FMC_SDCMR_NRFS_Pos) /*!< 0x00000020 */
  10882. #define FMC_SDCMR_NRFS_1 (0x2UL << FMC_SDCMR_NRFS_Pos) /*!< 0x00000040 */
  10883. #define FMC_SDCMR_NRFS_2 (0x4UL << FMC_SDCMR_NRFS_Pos) /*!< 0x00000080 */
  10884. #define FMC_SDCMR_NRFS_3 (0x8UL << FMC_SDCMR_NRFS_Pos) /*!< 0x00000100 */
  10885. #define FMC_SDCMR_MRD_Pos (9U)
  10886. #define FMC_SDCMR_MRD_Msk (0x1FFFUL << FMC_SDCMR_MRD_Pos) /*!< 0x003FFE00 */
  10887. #define FMC_SDCMR_MRD FMC_SDCMR_MRD_Msk /*!<MRD[12:0] bits (Mode register definition) */
  10888. /****************** Bit definition for FMC_SDRTR register ******************/
  10889. #define FMC_SDRTR_CRE_Pos (0U)
  10890. #define FMC_SDRTR_CRE_Msk (0x1UL << FMC_SDRTR_CRE_Pos) /*!< 0x00000001 */
  10891. #define FMC_SDRTR_CRE FMC_SDRTR_CRE_Msk /*!<Clear refresh error flag */
  10892. #define FMC_SDRTR_COUNT_Pos (1U)
  10893. #define FMC_SDRTR_COUNT_Msk (0x1FFFUL << FMC_SDRTR_COUNT_Pos) /*!< 0x00003FFE */
  10894. #define FMC_SDRTR_COUNT FMC_SDRTR_COUNT_Msk /*!<COUNT[12:0] bits (Refresh timer count) */
  10895. #define FMC_SDRTR_REIE_Pos (14U)
  10896. #define FMC_SDRTR_REIE_Msk (0x1UL << FMC_SDRTR_REIE_Pos) /*!< 0x00004000 */
  10897. #define FMC_SDRTR_REIE FMC_SDRTR_REIE_Msk /*!<RES interrupt enable */
  10898. /****************** Bit definition for FMC_SDSR register ******************/
  10899. #define FMC_SDSR_RE_Pos (0U)
  10900. #define FMC_SDSR_RE_Msk (0x1UL << FMC_SDSR_RE_Pos) /*!< 0x00000001 */
  10901. #define FMC_SDSR_RE FMC_SDSR_RE_Msk /*!<Refresh error flag */
  10902. #define FMC_SDSR_MODES1_Pos (1U)
  10903. #define FMC_SDSR_MODES1_Msk (0x3UL << FMC_SDSR_MODES1_Pos) /*!< 0x00000006 */
  10904. #define FMC_SDSR_MODES1 FMC_SDSR_MODES1_Msk /*!<MODES1[1:0]bits (Status mode for bank 1) */
  10905. #define FMC_SDSR_MODES1_0 (0x1UL << FMC_SDSR_MODES1_Pos) /*!< 0x00000002 */
  10906. #define FMC_SDSR_MODES1_1 (0x2UL << FMC_SDSR_MODES1_Pos) /*!< 0x00000004 */
  10907. #define FMC_SDSR_MODES2_Pos (3U)
  10908. #define FMC_SDSR_MODES2_Msk (0x3UL << FMC_SDSR_MODES2_Pos) /*!< 0x00000018 */
  10909. #define FMC_SDSR_MODES2 FMC_SDSR_MODES2_Msk /*!<MODES2[1:0]bits (Status mode for bank 2) */
  10910. #define FMC_SDSR_MODES2_0 (0x1UL << FMC_SDSR_MODES2_Pos) /*!< 0x00000008 */
  10911. #define FMC_SDSR_MODES2_1 (0x2UL << FMC_SDSR_MODES2_Pos) /*!< 0x00000010 */
  10912. /******************************************************************************/
  10913. /* */
  10914. /* General Purpose I/O */
  10915. /* */
  10916. /******************************************************************************/
  10917. /****************** Bits definition for GPIO_MODER register *****************/
  10918. #define GPIO_MODER_MODE0_Pos (0U)
  10919. #define GPIO_MODER_MODE0_Msk (0x3UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000003 */
  10920. #define GPIO_MODER_MODE0 GPIO_MODER_MODE0_Msk
  10921. #define GPIO_MODER_MODE0_0 (0x1UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000001 */
  10922. #define GPIO_MODER_MODE0_1 (0x2UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000002 */
  10923. #define GPIO_MODER_MODE1_Pos (2U)
  10924. #define GPIO_MODER_MODE1_Msk (0x3UL << GPIO_MODER_MODE1_Pos) /*!< 0x0000000C */
  10925. #define GPIO_MODER_MODE1 GPIO_MODER_MODE1_Msk
  10926. #define GPIO_MODER_MODE1_0 (0x1UL << GPIO_MODER_MODE1_Pos) /*!< 0x00000004 */
  10927. #define GPIO_MODER_MODE1_1 (0x2UL << GPIO_MODER_MODE1_Pos) /*!< 0x00000008 */
  10928. #define GPIO_MODER_MODE2_Pos (4U)
  10929. #define GPIO_MODER_MODE2_Msk (0x3UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000030 */
  10930. #define GPIO_MODER_MODE2 GPIO_MODER_MODE2_Msk
  10931. #define GPIO_MODER_MODE2_0 (0x1UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000010 */
  10932. #define GPIO_MODER_MODE2_1 (0x2UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000020 */
  10933. #define GPIO_MODER_MODE3_Pos (6U)
  10934. #define GPIO_MODER_MODE3_Msk (0x3UL << GPIO_MODER_MODE3_Pos) /*!< 0x000000C0 */
  10935. #define GPIO_MODER_MODE3 GPIO_MODER_MODE3_Msk
  10936. #define GPIO_MODER_MODE3_0 (0x1UL << GPIO_MODER_MODE3_Pos) /*!< 0x00000040 */
  10937. #define GPIO_MODER_MODE3_1 (0x2UL << GPIO_MODER_MODE3_Pos) /*!< 0x00000080 */
  10938. #define GPIO_MODER_MODE4_Pos (8U)
  10939. #define GPIO_MODER_MODE4_Msk (0x3UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000300 */
  10940. #define GPIO_MODER_MODE4 GPIO_MODER_MODE4_Msk
  10941. #define GPIO_MODER_MODE4_0 (0x1UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000100 */
  10942. #define GPIO_MODER_MODE4_1 (0x2UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000200 */
  10943. #define GPIO_MODER_MODE5_Pos (10U)
  10944. #define GPIO_MODER_MODE5_Msk (0x3UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000C00 */
  10945. #define GPIO_MODER_MODE5 GPIO_MODER_MODE5_Msk
  10946. #define GPIO_MODER_MODE5_0 (0x1UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000400 */
  10947. #define GPIO_MODER_MODE5_1 (0x2UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000800 */
  10948. #define GPIO_MODER_MODE6_Pos (12U)
  10949. #define GPIO_MODER_MODE6_Msk (0x3UL << GPIO_MODER_MODE6_Pos) /*!< 0x00003000 */
  10950. #define GPIO_MODER_MODE6 GPIO_MODER_MODE6_Msk
  10951. #define GPIO_MODER_MODE6_0 (0x1UL << GPIO_MODER_MODE6_Pos) /*!< 0x00001000 */
  10952. #define GPIO_MODER_MODE6_1 (0x2UL << GPIO_MODER_MODE6_Pos) /*!< 0x00002000 */
  10953. #define GPIO_MODER_MODE7_Pos (14U)
  10954. #define GPIO_MODER_MODE7_Msk (0x3UL << GPIO_MODER_MODE7_Pos) /*!< 0x0000C000 */
  10955. #define GPIO_MODER_MODE7 GPIO_MODER_MODE7_Msk
  10956. #define GPIO_MODER_MODE7_0 (0x1UL << GPIO_MODER_MODE7_Pos) /*!< 0x00004000 */
  10957. #define GPIO_MODER_MODE7_1 (0x2UL << GPIO_MODER_MODE7_Pos) /*!< 0x00008000 */
  10958. #define GPIO_MODER_MODE8_Pos (16U)
  10959. #define GPIO_MODER_MODE8_Msk (0x3UL << GPIO_MODER_MODE8_Pos) /*!< 0x00030000 */
  10960. #define GPIO_MODER_MODE8 GPIO_MODER_MODE8_Msk
  10961. #define GPIO_MODER_MODE8_0 (0x1UL << GPIO_MODER_MODE8_Pos) /*!< 0x00010000 */
  10962. #define GPIO_MODER_MODE8_1 (0x2UL << GPIO_MODER_MODE8_Pos) /*!< 0x00020000 */
  10963. #define GPIO_MODER_MODE9_Pos (18U)
  10964. #define GPIO_MODER_MODE9_Msk (0x3UL << GPIO_MODER_MODE9_Pos) /*!< 0x000C0000 */
  10965. #define GPIO_MODER_MODE9 GPIO_MODER_MODE9_Msk
  10966. #define GPIO_MODER_MODE9_0 (0x1UL << GPIO_MODER_MODE9_Pos) /*!< 0x00040000 */
  10967. #define GPIO_MODER_MODE9_1 (0x2UL << GPIO_MODER_MODE9_Pos) /*!< 0x00080000 */
  10968. #define GPIO_MODER_MODE10_Pos (20U)
  10969. #define GPIO_MODER_MODE10_Msk (0x3UL << GPIO_MODER_MODE10_Pos) /*!< 0x00300000 */
  10970. #define GPIO_MODER_MODE10 GPIO_MODER_MODE10_Msk
  10971. #define GPIO_MODER_MODE10_0 (0x1UL << GPIO_MODER_MODE10_Pos) /*!< 0x00100000 */
  10972. #define GPIO_MODER_MODE10_1 (0x2UL << GPIO_MODER_MODE10_Pos) /*!< 0x00200000 */
  10973. #define GPIO_MODER_MODE11_Pos (22U)
  10974. #define GPIO_MODER_MODE11_Msk (0x3UL << GPIO_MODER_MODE11_Pos) /*!< 0x00C00000 */
  10975. #define GPIO_MODER_MODE11 GPIO_MODER_MODE11_Msk
  10976. #define GPIO_MODER_MODE11_0 (0x1UL << GPIO_MODER_MODE11_Pos) /*!< 0x00400000 */
  10977. #define GPIO_MODER_MODE11_1 (0x2UL << GPIO_MODER_MODE11_Pos) /*!< 0x00800000 */
  10978. #define GPIO_MODER_MODE12_Pos (24U)
  10979. #define GPIO_MODER_MODE12_Msk (0x3UL << GPIO_MODER_MODE12_Pos) /*!< 0x03000000 */
  10980. #define GPIO_MODER_MODE12 GPIO_MODER_MODE12_Msk
  10981. #define GPIO_MODER_MODE12_0 (0x1UL << GPIO_MODER_MODE12_Pos) /*!< 0x01000000 */
  10982. #define GPIO_MODER_MODE12_1 (0x2UL << GPIO_MODER_MODE12_Pos) /*!< 0x02000000 */
  10983. #define GPIO_MODER_MODE13_Pos (26U)
  10984. #define GPIO_MODER_MODE13_Msk (0x3UL << GPIO_MODER_MODE13_Pos) /*!< 0x0C000000 */
  10985. #define GPIO_MODER_MODE13 GPIO_MODER_MODE13_Msk
  10986. #define GPIO_MODER_MODE13_0 (0x1UL << GPIO_MODER_MODE13_Pos) /*!< 0x04000000 */
  10987. #define GPIO_MODER_MODE13_1 (0x2UL << GPIO_MODER_MODE13_Pos) /*!< 0x08000000 */
  10988. #define GPIO_MODER_MODE14_Pos (28U)
  10989. #define GPIO_MODER_MODE14_Msk (0x3UL << GPIO_MODER_MODE14_Pos) /*!< 0x30000000 */
  10990. #define GPIO_MODER_MODE14 GPIO_MODER_MODE14_Msk
  10991. #define GPIO_MODER_MODE14_0 (0x1UL << GPIO_MODER_MODE14_Pos) /*!< 0x10000000 */
  10992. #define GPIO_MODER_MODE14_1 (0x2UL << GPIO_MODER_MODE14_Pos) /*!< 0x20000000 */
  10993. #define GPIO_MODER_MODE15_Pos (30U)
  10994. #define GPIO_MODER_MODE15_Msk (0x3UL << GPIO_MODER_MODE15_Pos) /*!< 0xC0000000 */
  10995. #define GPIO_MODER_MODE15 GPIO_MODER_MODE15_Msk
  10996. #define GPIO_MODER_MODE15_0 (0x1UL << GPIO_MODER_MODE15_Pos) /*!< 0x40000000 */
  10997. #define GPIO_MODER_MODE15_1 (0x2UL << GPIO_MODER_MODE15_Pos) /*!< 0x80000000 */
  10998. /****************** Bits definition for GPIO_OTYPER register ****************/
  10999. #define GPIO_OTYPER_OT0_Pos (0U)
  11000. #define GPIO_OTYPER_OT0_Msk (0x1UL << GPIO_OTYPER_OT0_Pos) /*!< 0x00000001 */
  11001. #define GPIO_OTYPER_OT0 GPIO_OTYPER_OT0_Msk
  11002. #define GPIO_OTYPER_OT1_Pos (1U)
  11003. #define GPIO_OTYPER_OT1_Msk (0x1UL << GPIO_OTYPER_OT1_Pos) /*!< 0x00000002 */
  11004. #define GPIO_OTYPER_OT1 GPIO_OTYPER_OT1_Msk
  11005. #define GPIO_OTYPER_OT2_Pos (2U)
  11006. #define GPIO_OTYPER_OT2_Msk (0x1UL << GPIO_OTYPER_OT2_Pos) /*!< 0x00000004 */
  11007. #define GPIO_OTYPER_OT2 GPIO_OTYPER_OT2_Msk
  11008. #define GPIO_OTYPER_OT3_Pos (3U)
  11009. #define GPIO_OTYPER_OT3_Msk (0x1UL << GPIO_OTYPER_OT3_Pos) /*!< 0x00000008 */
  11010. #define GPIO_OTYPER_OT3 GPIO_OTYPER_OT3_Msk
  11011. #define GPIO_OTYPER_OT4_Pos (4U)
  11012. #define GPIO_OTYPER_OT4_Msk (0x1UL << GPIO_OTYPER_OT4_Pos) /*!< 0x00000010 */
  11013. #define GPIO_OTYPER_OT4 GPIO_OTYPER_OT4_Msk
  11014. #define GPIO_OTYPER_OT5_Pos (5U)
  11015. #define GPIO_OTYPER_OT5_Msk (0x1UL << GPIO_OTYPER_OT5_Pos) /*!< 0x00000020 */
  11016. #define GPIO_OTYPER_OT5 GPIO_OTYPER_OT5_Msk
  11017. #define GPIO_OTYPER_OT6_Pos (6U)
  11018. #define GPIO_OTYPER_OT6_Msk (0x1UL << GPIO_OTYPER_OT6_Pos) /*!< 0x00000040 */
  11019. #define GPIO_OTYPER_OT6 GPIO_OTYPER_OT6_Msk
  11020. #define GPIO_OTYPER_OT7_Pos (7U)
  11021. #define GPIO_OTYPER_OT7_Msk (0x1UL << GPIO_OTYPER_OT7_Pos) /*!< 0x00000080 */
  11022. #define GPIO_OTYPER_OT7 GPIO_OTYPER_OT7_Msk
  11023. #define GPIO_OTYPER_OT8_Pos (8U)
  11024. #define GPIO_OTYPER_OT8_Msk (0x1UL << GPIO_OTYPER_OT8_Pos) /*!< 0x00000100 */
  11025. #define GPIO_OTYPER_OT8 GPIO_OTYPER_OT8_Msk
  11026. #define GPIO_OTYPER_OT9_Pos (9U)
  11027. #define GPIO_OTYPER_OT9_Msk (0x1UL << GPIO_OTYPER_OT9_Pos) /*!< 0x00000200 */
  11028. #define GPIO_OTYPER_OT9 GPIO_OTYPER_OT9_Msk
  11029. #define GPIO_OTYPER_OT10_Pos (10U)
  11030. #define GPIO_OTYPER_OT10_Msk (0x1UL << GPIO_OTYPER_OT10_Pos) /*!< 0x00000400 */
  11031. #define GPIO_OTYPER_OT10 GPIO_OTYPER_OT10_Msk
  11032. #define GPIO_OTYPER_OT11_Pos (11U)
  11033. #define GPIO_OTYPER_OT11_Msk (0x1UL << GPIO_OTYPER_OT11_Pos) /*!< 0x00000800 */
  11034. #define GPIO_OTYPER_OT11 GPIO_OTYPER_OT11_Msk
  11035. #define GPIO_OTYPER_OT12_Pos (12U)
  11036. #define GPIO_OTYPER_OT12_Msk (0x1UL << GPIO_OTYPER_OT12_Pos) /*!< 0x00001000 */
  11037. #define GPIO_OTYPER_OT12 GPIO_OTYPER_OT12_Msk
  11038. #define GPIO_OTYPER_OT13_Pos (13U)
  11039. #define GPIO_OTYPER_OT13_Msk (0x1UL << GPIO_OTYPER_OT13_Pos) /*!< 0x00002000 */
  11040. #define GPIO_OTYPER_OT13 GPIO_OTYPER_OT13_Msk
  11041. #define GPIO_OTYPER_OT14_Pos (14U)
  11042. #define GPIO_OTYPER_OT14_Msk (0x1UL << GPIO_OTYPER_OT14_Pos) /*!< 0x00004000 */
  11043. #define GPIO_OTYPER_OT14 GPIO_OTYPER_OT14_Msk
  11044. #define GPIO_OTYPER_OT15_Pos (15U)
  11045. #define GPIO_OTYPER_OT15_Msk (0x1UL << GPIO_OTYPER_OT15_Pos) /*!< 0x00008000 */
  11046. #define GPIO_OTYPER_OT15 GPIO_OTYPER_OT15_Msk
  11047. /****************** Bits definition for GPIO_OSPEEDR register ***************/
  11048. #define GPIO_OSPEEDR_OSPEED0_Pos (0U)
  11049. #define GPIO_OSPEEDR_OSPEED0_Msk (0x3UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000003 */
  11050. #define GPIO_OSPEEDR_OSPEED0 GPIO_OSPEEDR_OSPEED0_Msk
  11051. #define GPIO_OSPEEDR_OSPEED0_0 (0x1UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000001 */
  11052. #define GPIO_OSPEEDR_OSPEED0_1 (0x2UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000002 */
  11053. #define GPIO_OSPEEDR_OSPEED1_Pos (2U)
  11054. #define GPIO_OSPEEDR_OSPEED1_Msk (0x3UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x0000000C */
  11055. #define GPIO_OSPEEDR_OSPEED1 GPIO_OSPEEDR_OSPEED1_Msk
  11056. #define GPIO_OSPEEDR_OSPEED1_0 (0x1UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000004 */
  11057. #define GPIO_OSPEEDR_OSPEED1_1 (0x2UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000008 */
  11058. #define GPIO_OSPEEDR_OSPEED2_Pos (4U)
  11059. #define GPIO_OSPEEDR_OSPEED2_Msk (0x3UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000030 */
  11060. #define GPIO_OSPEEDR_OSPEED2 GPIO_OSPEEDR_OSPEED2_Msk
  11061. #define GPIO_OSPEEDR_OSPEED2_0 (0x1UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000010 */
  11062. #define GPIO_OSPEEDR_OSPEED2_1 (0x2UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000020 */
  11063. #define GPIO_OSPEEDR_OSPEED3_Pos (6U)
  11064. #define GPIO_OSPEEDR_OSPEED3_Msk (0x3UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x000000C0 */
  11065. #define GPIO_OSPEEDR_OSPEED3 GPIO_OSPEEDR_OSPEED3_Msk
  11066. #define GPIO_OSPEEDR_OSPEED3_0 (0x1UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000040 */
  11067. #define GPIO_OSPEEDR_OSPEED3_1 (0x2UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000080 */
  11068. #define GPIO_OSPEEDR_OSPEED4_Pos (8U)
  11069. #define GPIO_OSPEEDR_OSPEED4_Msk (0x3UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000300 */
  11070. #define GPIO_OSPEEDR_OSPEED4 GPIO_OSPEEDR_OSPEED4_Msk
  11071. #define GPIO_OSPEEDR_OSPEED4_0 (0x1UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000100 */
  11072. #define GPIO_OSPEEDR_OSPEED4_1 (0x2UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000200 */
  11073. #define GPIO_OSPEEDR_OSPEED5_Pos (10U)
  11074. #define GPIO_OSPEEDR_OSPEED5_Msk (0x3UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000C00 */
  11075. #define GPIO_OSPEEDR_OSPEED5 GPIO_OSPEEDR_OSPEED5_Msk
  11076. #define GPIO_OSPEEDR_OSPEED5_0 (0x1UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000400 */
  11077. #define GPIO_OSPEEDR_OSPEED5_1 (0x2UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000800 */
  11078. #define GPIO_OSPEEDR_OSPEED6_Pos (12U)
  11079. #define GPIO_OSPEEDR_OSPEED6_Msk (0x3UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00003000 */
  11080. #define GPIO_OSPEEDR_OSPEED6 GPIO_OSPEEDR_OSPEED6_Msk
  11081. #define GPIO_OSPEEDR_OSPEED6_0 (0x1UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00001000 */
  11082. #define GPIO_OSPEEDR_OSPEED6_1 (0x2UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00002000 */
  11083. #define GPIO_OSPEEDR_OSPEED7_Pos (14U)
  11084. #define GPIO_OSPEEDR_OSPEED7_Msk (0x3UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x0000C000 */
  11085. #define GPIO_OSPEEDR_OSPEED7 GPIO_OSPEEDR_OSPEED7_Msk
  11086. #define GPIO_OSPEEDR_OSPEED7_0 (0x1UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00004000 */
  11087. #define GPIO_OSPEEDR_OSPEED7_1 (0x2UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00008000 */
  11088. #define GPIO_OSPEEDR_OSPEED8_Pos (16U)
  11089. #define GPIO_OSPEEDR_OSPEED8_Msk (0x3UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00030000 */
  11090. #define GPIO_OSPEEDR_OSPEED8 GPIO_OSPEEDR_OSPEED8_Msk
  11091. #define GPIO_OSPEEDR_OSPEED8_0 (0x1UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00010000 */
  11092. #define GPIO_OSPEEDR_OSPEED8_1 (0x2UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00020000 */
  11093. #define GPIO_OSPEEDR_OSPEED9_Pos (18U)
  11094. #define GPIO_OSPEEDR_OSPEED9_Msk (0x3UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x000C0000 */
  11095. #define GPIO_OSPEEDR_OSPEED9 GPIO_OSPEEDR_OSPEED9_Msk
  11096. #define GPIO_OSPEEDR_OSPEED9_0 (0x1UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00040000 */
  11097. #define GPIO_OSPEEDR_OSPEED9_1 (0x2UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00080000 */
  11098. #define GPIO_OSPEEDR_OSPEED10_Pos (20U)
  11099. #define GPIO_OSPEEDR_OSPEED10_Msk (0x3UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00300000 */
  11100. #define GPIO_OSPEEDR_OSPEED10 GPIO_OSPEEDR_OSPEED10_Msk
  11101. #define GPIO_OSPEEDR_OSPEED10_0 (0x1UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00100000 */
  11102. #define GPIO_OSPEEDR_OSPEED10_1 (0x2UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00200000 */
  11103. #define GPIO_OSPEEDR_OSPEED11_Pos (22U)
  11104. #define GPIO_OSPEEDR_OSPEED11_Msk (0x3UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00C00000 */
  11105. #define GPIO_OSPEEDR_OSPEED11 GPIO_OSPEEDR_OSPEED11_Msk
  11106. #define GPIO_OSPEEDR_OSPEED11_0 (0x1UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00400000 */
  11107. #define GPIO_OSPEEDR_OSPEED11_1 (0x2UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00800000 */
  11108. #define GPIO_OSPEEDR_OSPEED12_Pos (24U)
  11109. #define GPIO_OSPEEDR_OSPEED12_Msk (0x3UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x03000000 */
  11110. #define GPIO_OSPEEDR_OSPEED12 GPIO_OSPEEDR_OSPEED12_Msk
  11111. #define GPIO_OSPEEDR_OSPEED12_0 (0x1UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x01000000 */
  11112. #define GPIO_OSPEEDR_OSPEED12_1 (0x2UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x02000000 */
  11113. #define GPIO_OSPEEDR_OSPEED13_Pos (26U)
  11114. #define GPIO_OSPEEDR_OSPEED13_Msk (0x3UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x0C000000 */
  11115. #define GPIO_OSPEEDR_OSPEED13 GPIO_OSPEEDR_OSPEED13_Msk
  11116. #define GPIO_OSPEEDR_OSPEED13_0 (0x1UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x04000000 */
  11117. #define GPIO_OSPEEDR_OSPEED13_1 (0x2UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x08000000 */
  11118. #define GPIO_OSPEEDR_OSPEED14_Pos (28U)
  11119. #define GPIO_OSPEEDR_OSPEED14_Msk (0x3UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x30000000 */
  11120. #define GPIO_OSPEEDR_OSPEED14 GPIO_OSPEEDR_OSPEED14_Msk
  11121. #define GPIO_OSPEEDR_OSPEED14_0 (0x1UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x10000000 */
  11122. #define GPIO_OSPEEDR_OSPEED14_1 (0x2UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x20000000 */
  11123. #define GPIO_OSPEEDR_OSPEED15_Pos (30U)
  11124. #define GPIO_OSPEEDR_OSPEED15_Msk (0x3UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0xC0000000 */
  11125. #define GPIO_OSPEEDR_OSPEED15 GPIO_OSPEEDR_OSPEED15_Msk
  11126. #define GPIO_OSPEEDR_OSPEED15_0 (0x1UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x40000000 */
  11127. #define GPIO_OSPEEDR_OSPEED15_1 (0x2UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x80000000 */
  11128. /****************** Bits definition for GPIO_PUPDR register *****************/
  11129. #define GPIO_PUPDR_PUPD0_Pos (0U)
  11130. #define GPIO_PUPDR_PUPD0_Msk (0x3UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000003 */
  11131. #define GPIO_PUPDR_PUPD0 GPIO_PUPDR_PUPD0_Msk
  11132. #define GPIO_PUPDR_PUPD0_0 (0x1UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000001 */
  11133. #define GPIO_PUPDR_PUPD0_1 (0x2UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000002 */
  11134. #define GPIO_PUPDR_PUPD1_Pos (2U)
  11135. #define GPIO_PUPDR_PUPD1_Msk (0x3UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x0000000C */
  11136. #define GPIO_PUPDR_PUPD1 GPIO_PUPDR_PUPD1_Msk
  11137. #define GPIO_PUPDR_PUPD1_0 (0x1UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000004 */
  11138. #define GPIO_PUPDR_PUPD1_1 (0x2UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000008 */
  11139. #define GPIO_PUPDR_PUPD2_Pos (4U)
  11140. #define GPIO_PUPDR_PUPD2_Msk (0x3UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000030 */
  11141. #define GPIO_PUPDR_PUPD2 GPIO_PUPDR_PUPD2_Msk
  11142. #define GPIO_PUPDR_PUPD2_0 (0x1UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000010 */
  11143. #define GPIO_PUPDR_PUPD2_1 (0x2UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000020 */
  11144. #define GPIO_PUPDR_PUPD3_Pos (6U)
  11145. #define GPIO_PUPDR_PUPD3_Msk (0x3UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x000000C0 */
  11146. #define GPIO_PUPDR_PUPD3 GPIO_PUPDR_PUPD3_Msk
  11147. #define GPIO_PUPDR_PUPD3_0 (0x1UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000040 */
  11148. #define GPIO_PUPDR_PUPD3_1 (0x2UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000080 */
  11149. #define GPIO_PUPDR_PUPD4_Pos (8U)
  11150. #define GPIO_PUPDR_PUPD4_Msk (0x3UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000300 */
  11151. #define GPIO_PUPDR_PUPD4 GPIO_PUPDR_PUPD4_Msk
  11152. #define GPIO_PUPDR_PUPD4_0 (0x1UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000100 */
  11153. #define GPIO_PUPDR_PUPD4_1 (0x2UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000200 */
  11154. #define GPIO_PUPDR_PUPD5_Pos (10U)
  11155. #define GPIO_PUPDR_PUPD5_Msk (0x3UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000C00 */
  11156. #define GPIO_PUPDR_PUPD5 GPIO_PUPDR_PUPD5_Msk
  11157. #define GPIO_PUPDR_PUPD5_0 (0x1UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000400 */
  11158. #define GPIO_PUPDR_PUPD5_1 (0x2UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000800 */
  11159. #define GPIO_PUPDR_PUPD6_Pos (12U)
  11160. #define GPIO_PUPDR_PUPD6_Msk (0x3UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00003000 */
  11161. #define GPIO_PUPDR_PUPD6 GPIO_PUPDR_PUPD6_Msk
  11162. #define GPIO_PUPDR_PUPD6_0 (0x1UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00001000 */
  11163. #define GPIO_PUPDR_PUPD6_1 (0x2UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00002000 */
  11164. #define GPIO_PUPDR_PUPD7_Pos (14U)
  11165. #define GPIO_PUPDR_PUPD7_Msk (0x3UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x0000C000 */
  11166. #define GPIO_PUPDR_PUPD7 GPIO_PUPDR_PUPD7_Msk
  11167. #define GPIO_PUPDR_PUPD7_0 (0x1UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00004000 */
  11168. #define GPIO_PUPDR_PUPD7_1 (0x2UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00008000 */
  11169. #define GPIO_PUPDR_PUPD8_Pos (16U)
  11170. #define GPIO_PUPDR_PUPD8_Msk (0x3UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00030000 */
  11171. #define GPIO_PUPDR_PUPD8 GPIO_PUPDR_PUPD8_Msk
  11172. #define GPIO_PUPDR_PUPD8_0 (0x1UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00010000 */
  11173. #define GPIO_PUPDR_PUPD8_1 (0x2UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00020000 */
  11174. #define GPIO_PUPDR_PUPD9_Pos (18U)
  11175. #define GPIO_PUPDR_PUPD9_Msk (0x3UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x000C0000 */
  11176. #define GPIO_PUPDR_PUPD9 GPIO_PUPDR_PUPD9_Msk
  11177. #define GPIO_PUPDR_PUPD9_0 (0x1UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00040000 */
  11178. #define GPIO_PUPDR_PUPD9_1 (0x2UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00080000 */
  11179. #define GPIO_PUPDR_PUPD10_Pos (20U)
  11180. #define GPIO_PUPDR_PUPD10_Msk (0x3UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00300000 */
  11181. #define GPIO_PUPDR_PUPD10 GPIO_PUPDR_PUPD10_Msk
  11182. #define GPIO_PUPDR_PUPD10_0 (0x1UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00100000 */
  11183. #define GPIO_PUPDR_PUPD10_1 (0x2UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00200000 */
  11184. #define GPIO_PUPDR_PUPD11_Pos (22U)
  11185. #define GPIO_PUPDR_PUPD11_Msk (0x3UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00C00000 */
  11186. #define GPIO_PUPDR_PUPD11 GPIO_PUPDR_PUPD11_Msk
  11187. #define GPIO_PUPDR_PUPD11_0 (0x1UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00400000 */
  11188. #define GPIO_PUPDR_PUPD11_1 (0x2UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00800000 */
  11189. #define GPIO_PUPDR_PUPD12_Pos (24U)
  11190. #define GPIO_PUPDR_PUPD12_Msk (0x3UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x03000000 */
  11191. #define GPIO_PUPDR_PUPD12 GPIO_PUPDR_PUPD12_Msk
  11192. #define GPIO_PUPDR_PUPD12_0 (0x1UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x01000000 */
  11193. #define GPIO_PUPDR_PUPD12_1 (0x2UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x02000000 */
  11194. #define GPIO_PUPDR_PUPD13_Pos (26U)
  11195. #define GPIO_PUPDR_PUPD13_Msk (0x3UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x0C000000 */
  11196. #define GPIO_PUPDR_PUPD13 GPIO_PUPDR_PUPD13_Msk
  11197. #define GPIO_PUPDR_PUPD13_0 (0x1UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x04000000 */
  11198. #define GPIO_PUPDR_PUPD13_1 (0x2UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x08000000 */
  11199. #define GPIO_PUPDR_PUPD14_Pos (28U)
  11200. #define GPIO_PUPDR_PUPD14_Msk (0x3UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x30000000 */
  11201. #define GPIO_PUPDR_PUPD14 GPIO_PUPDR_PUPD14_Msk
  11202. #define GPIO_PUPDR_PUPD14_0 (0x1UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x10000000 */
  11203. #define GPIO_PUPDR_PUPD14_1 (0x2UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x20000000 */
  11204. #define GPIO_PUPDR_PUPD15_Pos (30U)
  11205. #define GPIO_PUPDR_PUPD15_Msk (0x3UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0xC0000000 */
  11206. #define GPIO_PUPDR_PUPD15 GPIO_PUPDR_PUPD15_Msk
  11207. #define GPIO_PUPDR_PUPD15_0 (0x1UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0x40000000 */
  11208. #define GPIO_PUPDR_PUPD15_1 (0x2UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0x80000000 */
  11209. /****************** Bits definition for GPIO_IDR register *******************/
  11210. #define GPIO_IDR_ID0_Pos (0U)
  11211. #define GPIO_IDR_ID0_Msk (0x1UL << GPIO_IDR_ID0_Pos) /*!< 0x00000001 */
  11212. #define GPIO_IDR_ID0 GPIO_IDR_ID0_Msk
  11213. #define GPIO_IDR_ID1_Pos (1U)
  11214. #define GPIO_IDR_ID1_Msk (0x1UL << GPIO_IDR_ID1_Pos) /*!< 0x00000002 */
  11215. #define GPIO_IDR_ID1 GPIO_IDR_ID1_Msk
  11216. #define GPIO_IDR_ID2_Pos (2U)
  11217. #define GPIO_IDR_ID2_Msk (0x1UL << GPIO_IDR_ID2_Pos) /*!< 0x00000004 */
  11218. #define GPIO_IDR_ID2 GPIO_IDR_ID2_Msk
  11219. #define GPIO_IDR_ID3_Pos (3U)
  11220. #define GPIO_IDR_ID3_Msk (0x1UL << GPIO_IDR_ID3_Pos) /*!< 0x00000008 */
  11221. #define GPIO_IDR_ID3 GPIO_IDR_ID3_Msk
  11222. #define GPIO_IDR_ID4_Pos (4U)
  11223. #define GPIO_IDR_ID4_Msk (0x1UL << GPIO_IDR_ID4_Pos) /*!< 0x00000010 */
  11224. #define GPIO_IDR_ID4 GPIO_IDR_ID4_Msk
  11225. #define GPIO_IDR_ID5_Pos (5U)
  11226. #define GPIO_IDR_ID5_Msk (0x1UL << GPIO_IDR_ID5_Pos) /*!< 0x00000020 */
  11227. #define GPIO_IDR_ID5 GPIO_IDR_ID5_Msk
  11228. #define GPIO_IDR_ID6_Pos (6U)
  11229. #define GPIO_IDR_ID6_Msk (0x1UL << GPIO_IDR_ID6_Pos) /*!< 0x00000040 */
  11230. #define GPIO_IDR_ID6 GPIO_IDR_ID6_Msk
  11231. #define GPIO_IDR_ID7_Pos (7U)
  11232. #define GPIO_IDR_ID7_Msk (0x1UL << GPIO_IDR_ID7_Pos) /*!< 0x00000080 */
  11233. #define GPIO_IDR_ID7 GPIO_IDR_ID7_Msk
  11234. #define GPIO_IDR_ID8_Pos (8U)
  11235. #define GPIO_IDR_ID8_Msk (0x1UL << GPIO_IDR_ID8_Pos) /*!< 0x00000100 */
  11236. #define GPIO_IDR_ID8 GPIO_IDR_ID8_Msk
  11237. #define GPIO_IDR_ID9_Pos (9U)
  11238. #define GPIO_IDR_ID9_Msk (0x1UL << GPIO_IDR_ID9_Pos) /*!< 0x00000200 */
  11239. #define GPIO_IDR_ID9 GPIO_IDR_ID9_Msk
  11240. #define GPIO_IDR_ID10_Pos (10U)
  11241. #define GPIO_IDR_ID10_Msk (0x1UL << GPIO_IDR_ID10_Pos) /*!< 0x00000400 */
  11242. #define GPIO_IDR_ID10 GPIO_IDR_ID10_Msk
  11243. #define GPIO_IDR_ID11_Pos (11U)
  11244. #define GPIO_IDR_ID11_Msk (0x1UL << GPIO_IDR_ID11_Pos) /*!< 0x00000800 */
  11245. #define GPIO_IDR_ID11 GPIO_IDR_ID11_Msk
  11246. #define GPIO_IDR_ID12_Pos (12U)
  11247. #define GPIO_IDR_ID12_Msk (0x1UL << GPIO_IDR_ID12_Pos) /*!< 0x00001000 */
  11248. #define GPIO_IDR_ID12 GPIO_IDR_ID12_Msk
  11249. #define GPIO_IDR_ID13_Pos (13U)
  11250. #define GPIO_IDR_ID13_Msk (0x1UL << GPIO_IDR_ID13_Pos) /*!< 0x00002000 */
  11251. #define GPIO_IDR_ID13 GPIO_IDR_ID13_Msk
  11252. #define GPIO_IDR_ID14_Pos (14U)
  11253. #define GPIO_IDR_ID14_Msk (0x1UL << GPIO_IDR_ID14_Pos) /*!< 0x00004000 */
  11254. #define GPIO_IDR_ID14 GPIO_IDR_ID14_Msk
  11255. #define GPIO_IDR_ID15_Pos (15U)
  11256. #define GPIO_IDR_ID15_Msk (0x1UL << GPIO_IDR_ID15_Pos) /*!< 0x00008000 */
  11257. #define GPIO_IDR_ID15 GPIO_IDR_ID15_Msk
  11258. /****************** Bits definition for GPIO_ODR register *******************/
  11259. #define GPIO_ODR_OD0_Pos (0U)
  11260. #define GPIO_ODR_OD0_Msk (0x1UL << GPIO_ODR_OD0_Pos) /*!< 0x00000001 */
  11261. #define GPIO_ODR_OD0 GPIO_ODR_OD0_Msk
  11262. #define GPIO_ODR_OD1_Pos (1U)
  11263. #define GPIO_ODR_OD1_Msk (0x1UL << GPIO_ODR_OD1_Pos) /*!< 0x00000002 */
  11264. #define GPIO_ODR_OD1 GPIO_ODR_OD1_Msk
  11265. #define GPIO_ODR_OD2_Pos (2U)
  11266. #define GPIO_ODR_OD2_Msk (0x1UL << GPIO_ODR_OD2_Pos) /*!< 0x00000004 */
  11267. #define GPIO_ODR_OD2 GPIO_ODR_OD2_Msk
  11268. #define GPIO_ODR_OD3_Pos (3U)
  11269. #define GPIO_ODR_OD3_Msk (0x1UL << GPIO_ODR_OD3_Pos) /*!< 0x00000008 */
  11270. #define GPIO_ODR_OD3 GPIO_ODR_OD3_Msk
  11271. #define GPIO_ODR_OD4_Pos (4U)
  11272. #define GPIO_ODR_OD4_Msk (0x1UL << GPIO_ODR_OD4_Pos) /*!< 0x00000010 */
  11273. #define GPIO_ODR_OD4 GPIO_ODR_OD4_Msk
  11274. #define GPIO_ODR_OD5_Pos (5U)
  11275. #define GPIO_ODR_OD5_Msk (0x1UL << GPIO_ODR_OD5_Pos) /*!< 0x00000020 */
  11276. #define GPIO_ODR_OD5 GPIO_ODR_OD5_Msk
  11277. #define GPIO_ODR_OD6_Pos (6U)
  11278. #define GPIO_ODR_OD6_Msk (0x1UL << GPIO_ODR_OD6_Pos) /*!< 0x00000040 */
  11279. #define GPIO_ODR_OD6 GPIO_ODR_OD6_Msk
  11280. #define GPIO_ODR_OD7_Pos (7U)
  11281. #define GPIO_ODR_OD7_Msk (0x1UL << GPIO_ODR_OD7_Pos) /*!< 0x00000080 */
  11282. #define GPIO_ODR_OD7 GPIO_ODR_OD7_Msk
  11283. #define GPIO_ODR_OD8_Pos (8U)
  11284. #define GPIO_ODR_OD8_Msk (0x1UL << GPIO_ODR_OD8_Pos) /*!< 0x00000100 */
  11285. #define GPIO_ODR_OD8 GPIO_ODR_OD8_Msk
  11286. #define GPIO_ODR_OD9_Pos (9U)
  11287. #define GPIO_ODR_OD9_Msk (0x1UL << GPIO_ODR_OD9_Pos) /*!< 0x00000200 */
  11288. #define GPIO_ODR_OD9 GPIO_ODR_OD9_Msk
  11289. #define GPIO_ODR_OD10_Pos (10U)
  11290. #define GPIO_ODR_OD10_Msk (0x1UL << GPIO_ODR_OD10_Pos) /*!< 0x00000400 */
  11291. #define GPIO_ODR_OD10 GPIO_ODR_OD10_Msk
  11292. #define GPIO_ODR_OD11_Pos (11U)
  11293. #define GPIO_ODR_OD11_Msk (0x1UL << GPIO_ODR_OD11_Pos) /*!< 0x00000800 */
  11294. #define GPIO_ODR_OD11 GPIO_ODR_OD11_Msk
  11295. #define GPIO_ODR_OD12_Pos (12U)
  11296. #define GPIO_ODR_OD12_Msk (0x1UL << GPIO_ODR_OD12_Pos) /*!< 0x00001000 */
  11297. #define GPIO_ODR_OD12 GPIO_ODR_OD12_Msk
  11298. #define GPIO_ODR_OD13_Pos (13U)
  11299. #define GPIO_ODR_OD13_Msk (0x1UL << GPIO_ODR_OD13_Pos) /*!< 0x00002000 */
  11300. #define GPIO_ODR_OD13 GPIO_ODR_OD13_Msk
  11301. #define GPIO_ODR_OD14_Pos (14U)
  11302. #define GPIO_ODR_OD14_Msk (0x1UL << GPIO_ODR_OD14_Pos) /*!< 0x00004000 */
  11303. #define GPIO_ODR_OD14 GPIO_ODR_OD14_Msk
  11304. #define GPIO_ODR_OD15_Pos (15U)
  11305. #define GPIO_ODR_OD15_Msk (0x1UL << GPIO_ODR_OD15_Pos) /*!< 0x00008000 */
  11306. #define GPIO_ODR_OD15 GPIO_ODR_OD15_Msk
  11307. /****************** Bits definition for GPIO_BSRR register ******************/
  11308. #define GPIO_BSRR_BS0_Pos (0U)
  11309. #define GPIO_BSRR_BS0_Msk (0x1UL << GPIO_BSRR_BS0_Pos) /*!< 0x00000001 */
  11310. #define GPIO_BSRR_BS0 GPIO_BSRR_BS0_Msk
  11311. #define GPIO_BSRR_BS1_Pos (1U)
  11312. #define GPIO_BSRR_BS1_Msk (0x1UL << GPIO_BSRR_BS1_Pos) /*!< 0x00000002 */
  11313. #define GPIO_BSRR_BS1 GPIO_BSRR_BS1_Msk
  11314. #define GPIO_BSRR_BS2_Pos (2U)
  11315. #define GPIO_BSRR_BS2_Msk (0x1UL << GPIO_BSRR_BS2_Pos) /*!< 0x00000004 */
  11316. #define GPIO_BSRR_BS2 GPIO_BSRR_BS2_Msk
  11317. #define GPIO_BSRR_BS3_Pos (3U)
  11318. #define GPIO_BSRR_BS3_Msk (0x1UL << GPIO_BSRR_BS3_Pos) /*!< 0x00000008 */
  11319. #define GPIO_BSRR_BS3 GPIO_BSRR_BS3_Msk
  11320. #define GPIO_BSRR_BS4_Pos (4U)
  11321. #define GPIO_BSRR_BS4_Msk (0x1UL << GPIO_BSRR_BS4_Pos) /*!< 0x00000010 */
  11322. #define GPIO_BSRR_BS4 GPIO_BSRR_BS4_Msk
  11323. #define GPIO_BSRR_BS5_Pos (5U)
  11324. #define GPIO_BSRR_BS5_Msk (0x1UL << GPIO_BSRR_BS5_Pos) /*!< 0x00000020 */
  11325. #define GPIO_BSRR_BS5 GPIO_BSRR_BS5_Msk
  11326. #define GPIO_BSRR_BS6_Pos (6U)
  11327. #define GPIO_BSRR_BS6_Msk (0x1UL << GPIO_BSRR_BS6_Pos) /*!< 0x00000040 */
  11328. #define GPIO_BSRR_BS6 GPIO_BSRR_BS6_Msk
  11329. #define GPIO_BSRR_BS7_Pos (7U)
  11330. #define GPIO_BSRR_BS7_Msk (0x1UL << GPIO_BSRR_BS7_Pos) /*!< 0x00000080 */
  11331. #define GPIO_BSRR_BS7 GPIO_BSRR_BS7_Msk
  11332. #define GPIO_BSRR_BS8_Pos (8U)
  11333. #define GPIO_BSRR_BS8_Msk (0x1UL << GPIO_BSRR_BS8_Pos) /*!< 0x00000100 */
  11334. #define GPIO_BSRR_BS8 GPIO_BSRR_BS8_Msk
  11335. #define GPIO_BSRR_BS9_Pos (9U)
  11336. #define GPIO_BSRR_BS9_Msk (0x1UL << GPIO_BSRR_BS9_Pos) /*!< 0x00000200 */
  11337. #define GPIO_BSRR_BS9 GPIO_BSRR_BS9_Msk
  11338. #define GPIO_BSRR_BS10_Pos (10U)
  11339. #define GPIO_BSRR_BS10_Msk (0x1UL << GPIO_BSRR_BS10_Pos) /*!< 0x00000400 */
  11340. #define GPIO_BSRR_BS10 GPIO_BSRR_BS10_Msk
  11341. #define GPIO_BSRR_BS11_Pos (11U)
  11342. #define GPIO_BSRR_BS11_Msk (0x1UL << GPIO_BSRR_BS11_Pos) /*!< 0x00000800 */
  11343. #define GPIO_BSRR_BS11 GPIO_BSRR_BS11_Msk
  11344. #define GPIO_BSRR_BS12_Pos (12U)
  11345. #define GPIO_BSRR_BS12_Msk (0x1UL << GPIO_BSRR_BS12_Pos) /*!< 0x00001000 */
  11346. #define GPIO_BSRR_BS12 GPIO_BSRR_BS12_Msk
  11347. #define GPIO_BSRR_BS13_Pos (13U)
  11348. #define GPIO_BSRR_BS13_Msk (0x1UL << GPIO_BSRR_BS13_Pos) /*!< 0x00002000 */
  11349. #define GPIO_BSRR_BS13 GPIO_BSRR_BS13_Msk
  11350. #define GPIO_BSRR_BS14_Pos (14U)
  11351. #define GPIO_BSRR_BS14_Msk (0x1UL << GPIO_BSRR_BS14_Pos) /*!< 0x00004000 */
  11352. #define GPIO_BSRR_BS14 GPIO_BSRR_BS14_Msk
  11353. #define GPIO_BSRR_BS15_Pos (15U)
  11354. #define GPIO_BSRR_BS15_Msk (0x1UL << GPIO_BSRR_BS15_Pos) /*!< 0x00008000 */
  11355. #define GPIO_BSRR_BS15 GPIO_BSRR_BS15_Msk
  11356. #define GPIO_BSRR_BR0_Pos (16U)
  11357. #define GPIO_BSRR_BR0_Msk (0x1UL << GPIO_BSRR_BR0_Pos) /*!< 0x00010000 */
  11358. #define GPIO_BSRR_BR0 GPIO_BSRR_BR0_Msk
  11359. #define GPIO_BSRR_BR1_Pos (17U)
  11360. #define GPIO_BSRR_BR1_Msk (0x1UL << GPIO_BSRR_BR1_Pos) /*!< 0x00020000 */
  11361. #define GPIO_BSRR_BR1 GPIO_BSRR_BR1_Msk
  11362. #define GPIO_BSRR_BR2_Pos (18U)
  11363. #define GPIO_BSRR_BR2_Msk (0x1UL << GPIO_BSRR_BR2_Pos) /*!< 0x00040000 */
  11364. #define GPIO_BSRR_BR2 GPIO_BSRR_BR2_Msk
  11365. #define GPIO_BSRR_BR3_Pos (19U)
  11366. #define GPIO_BSRR_BR3_Msk (0x1UL << GPIO_BSRR_BR3_Pos) /*!< 0x00080000 */
  11367. #define GPIO_BSRR_BR3 GPIO_BSRR_BR3_Msk
  11368. #define GPIO_BSRR_BR4_Pos (20U)
  11369. #define GPIO_BSRR_BR4_Msk (0x1UL << GPIO_BSRR_BR4_Pos) /*!< 0x00100000 */
  11370. #define GPIO_BSRR_BR4 GPIO_BSRR_BR4_Msk
  11371. #define GPIO_BSRR_BR5_Pos (21U)
  11372. #define GPIO_BSRR_BR5_Msk (0x1UL << GPIO_BSRR_BR5_Pos) /*!< 0x00200000 */
  11373. #define GPIO_BSRR_BR5 GPIO_BSRR_BR5_Msk
  11374. #define GPIO_BSRR_BR6_Pos (22U)
  11375. #define GPIO_BSRR_BR6_Msk (0x1UL << GPIO_BSRR_BR6_Pos) /*!< 0x00400000 */
  11376. #define GPIO_BSRR_BR6 GPIO_BSRR_BR6_Msk
  11377. #define GPIO_BSRR_BR7_Pos (23U)
  11378. #define GPIO_BSRR_BR7_Msk (0x1UL << GPIO_BSRR_BR7_Pos) /*!< 0x00800000 */
  11379. #define GPIO_BSRR_BR7 GPIO_BSRR_BR7_Msk
  11380. #define GPIO_BSRR_BR8_Pos (24U)
  11381. #define GPIO_BSRR_BR8_Msk (0x1UL << GPIO_BSRR_BR8_Pos) /*!< 0x01000000 */
  11382. #define GPIO_BSRR_BR8 GPIO_BSRR_BR8_Msk
  11383. #define GPIO_BSRR_BR9_Pos (25U)
  11384. #define GPIO_BSRR_BR9_Msk (0x1UL << GPIO_BSRR_BR9_Pos) /*!< 0x02000000 */
  11385. #define GPIO_BSRR_BR9 GPIO_BSRR_BR9_Msk
  11386. #define GPIO_BSRR_BR10_Pos (26U)
  11387. #define GPIO_BSRR_BR10_Msk (0x1UL << GPIO_BSRR_BR10_Pos) /*!< 0x04000000 */
  11388. #define GPIO_BSRR_BR10 GPIO_BSRR_BR10_Msk
  11389. #define GPIO_BSRR_BR11_Pos (27U)
  11390. #define GPIO_BSRR_BR11_Msk (0x1UL << GPIO_BSRR_BR11_Pos) /*!< 0x08000000 */
  11391. #define GPIO_BSRR_BR11 GPIO_BSRR_BR11_Msk
  11392. #define GPIO_BSRR_BR12_Pos (28U)
  11393. #define GPIO_BSRR_BR12_Msk (0x1UL << GPIO_BSRR_BR12_Pos) /*!< 0x10000000 */
  11394. #define GPIO_BSRR_BR12 GPIO_BSRR_BR12_Msk
  11395. #define GPIO_BSRR_BR13_Pos (29U)
  11396. #define GPIO_BSRR_BR13_Msk (0x1UL << GPIO_BSRR_BR13_Pos) /*!< 0x20000000 */
  11397. #define GPIO_BSRR_BR13 GPIO_BSRR_BR13_Msk
  11398. #define GPIO_BSRR_BR14_Pos (30U)
  11399. #define GPIO_BSRR_BR14_Msk (0x1UL << GPIO_BSRR_BR14_Pos) /*!< 0x40000000 */
  11400. #define GPIO_BSRR_BR14 GPIO_BSRR_BR14_Msk
  11401. #define GPIO_BSRR_BR15_Pos (31U)
  11402. #define GPIO_BSRR_BR15_Msk (0x1UL << GPIO_BSRR_BR15_Pos) /*!< 0x80000000 */
  11403. #define GPIO_BSRR_BR15 GPIO_BSRR_BR15_Msk
  11404. /****************** Bit definition for GPIO_LCKR register *********************/
  11405. #define GPIO_LCKR_LCK0_Pos (0U)
  11406. #define GPIO_LCKR_LCK0_Msk (0x1UL << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  11407. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  11408. #define GPIO_LCKR_LCK1_Pos (1U)
  11409. #define GPIO_LCKR_LCK1_Msk (0x1UL << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  11410. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  11411. #define GPIO_LCKR_LCK2_Pos (2U)
  11412. #define GPIO_LCKR_LCK2_Msk (0x1UL << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  11413. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  11414. #define GPIO_LCKR_LCK3_Pos (3U)
  11415. #define GPIO_LCKR_LCK3_Msk (0x1UL << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  11416. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  11417. #define GPIO_LCKR_LCK4_Pos (4U)
  11418. #define GPIO_LCKR_LCK4_Msk (0x1UL << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  11419. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  11420. #define GPIO_LCKR_LCK5_Pos (5U)
  11421. #define GPIO_LCKR_LCK5_Msk (0x1UL << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  11422. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  11423. #define GPIO_LCKR_LCK6_Pos (6U)
  11424. #define GPIO_LCKR_LCK6_Msk (0x1UL << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  11425. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  11426. #define GPIO_LCKR_LCK7_Pos (7U)
  11427. #define GPIO_LCKR_LCK7_Msk (0x1UL << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  11428. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  11429. #define GPIO_LCKR_LCK8_Pos (8U)
  11430. #define GPIO_LCKR_LCK8_Msk (0x1UL << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  11431. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  11432. #define GPIO_LCKR_LCK9_Pos (9U)
  11433. #define GPIO_LCKR_LCK9_Msk (0x1UL << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  11434. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  11435. #define GPIO_LCKR_LCK10_Pos (10U)
  11436. #define GPIO_LCKR_LCK10_Msk (0x1UL << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  11437. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  11438. #define GPIO_LCKR_LCK11_Pos (11U)
  11439. #define GPIO_LCKR_LCK11_Msk (0x1UL << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  11440. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  11441. #define GPIO_LCKR_LCK12_Pos (12U)
  11442. #define GPIO_LCKR_LCK12_Msk (0x1UL << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  11443. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  11444. #define GPIO_LCKR_LCK13_Pos (13U)
  11445. #define GPIO_LCKR_LCK13_Msk (0x1UL << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  11446. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  11447. #define GPIO_LCKR_LCK14_Pos (14U)
  11448. #define GPIO_LCKR_LCK14_Msk (0x1UL << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  11449. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  11450. #define GPIO_LCKR_LCK15_Pos (15U)
  11451. #define GPIO_LCKR_LCK15_Msk (0x1UL << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  11452. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  11453. #define GPIO_LCKR_LCKK_Pos (16U)
  11454. #define GPIO_LCKR_LCKK_Msk (0x1UL << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  11455. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  11456. /****************** Bit definition for GPIO_AFRL register ********************/
  11457. #define GPIO_AFRL_AFSEL0_Pos (0U)
  11458. #define GPIO_AFRL_AFSEL0_Msk (0xFUL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x0000000F */
  11459. #define GPIO_AFRL_AFSEL0 GPIO_AFRL_AFSEL0_Msk
  11460. #define GPIO_AFRL_AFSEL0_0 (0x1UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000001 */
  11461. #define GPIO_AFRL_AFSEL0_1 (0x2UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000002 */
  11462. #define GPIO_AFRL_AFSEL0_2 (0x4UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000004 */
  11463. #define GPIO_AFRL_AFSEL0_3 (0x8UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000008 */
  11464. #define GPIO_AFRL_AFSEL1_Pos (4U)
  11465. #define GPIO_AFRL_AFSEL1_Msk (0xFUL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x000000F0 */
  11466. #define GPIO_AFRL_AFSEL1 GPIO_AFRL_AFSEL1_Msk
  11467. #define GPIO_AFRL_AFSEL1_0 (0x1UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000010 */
  11468. #define GPIO_AFRL_AFSEL1_1 (0x2UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000020 */
  11469. #define GPIO_AFRL_AFSEL1_2 (0x4UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000040 */
  11470. #define GPIO_AFRL_AFSEL1_3 (0x8UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000080 */
  11471. #define GPIO_AFRL_AFSEL2_Pos (8U)
  11472. #define GPIO_AFRL_AFSEL2_Msk (0xFUL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000F00 */
  11473. #define GPIO_AFRL_AFSEL2 GPIO_AFRL_AFSEL2_Msk
  11474. #define GPIO_AFRL_AFSEL2_0 (0x1UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000100 */
  11475. #define GPIO_AFRL_AFSEL2_1 (0x2UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000200 */
  11476. #define GPIO_AFRL_AFSEL2_2 (0x4UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000400 */
  11477. #define GPIO_AFRL_AFSEL2_3 (0x8UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000800 */
  11478. #define GPIO_AFRL_AFSEL3_Pos (12U)
  11479. #define GPIO_AFRL_AFSEL3_Msk (0xFUL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x0000F000 */
  11480. #define GPIO_AFRL_AFSEL3 GPIO_AFRL_AFSEL3_Msk
  11481. #define GPIO_AFRL_AFSEL3_0 (0x1UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00001000 */
  11482. #define GPIO_AFRL_AFSEL3_1 (0x2UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00002000 */
  11483. #define GPIO_AFRL_AFSEL3_2 (0x4UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00004000 */
  11484. #define GPIO_AFRL_AFSEL3_3 (0x8UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00008000 */
  11485. #define GPIO_AFRL_AFSEL4_Pos (16U)
  11486. #define GPIO_AFRL_AFSEL4_Msk (0xFUL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x000F0000 */
  11487. #define GPIO_AFRL_AFSEL4 GPIO_AFRL_AFSEL4_Msk
  11488. #define GPIO_AFRL_AFSEL4_0 (0x1UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00010000 */
  11489. #define GPIO_AFRL_AFSEL4_1 (0x2UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00020000 */
  11490. #define GPIO_AFRL_AFSEL4_2 (0x4UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00040000 */
  11491. #define GPIO_AFRL_AFSEL4_3 (0x8UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00080000 */
  11492. #define GPIO_AFRL_AFSEL5_Pos (20U)
  11493. #define GPIO_AFRL_AFSEL5_Msk (0xFUL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00F00000 */
  11494. #define GPIO_AFRL_AFSEL5 GPIO_AFRL_AFSEL5_Msk
  11495. #define GPIO_AFRL_AFSEL5_0 (0x1UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00100000 */
  11496. #define GPIO_AFRL_AFSEL5_1 (0x2UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00200000 */
  11497. #define GPIO_AFRL_AFSEL5_2 (0x4UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00400000 */
  11498. #define GPIO_AFRL_AFSEL5_3 (0x8UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00800000 */
  11499. #define GPIO_AFRL_AFSEL6_Pos (24U)
  11500. #define GPIO_AFRL_AFSEL6_Msk (0xFUL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x0F000000 */
  11501. #define GPIO_AFRL_AFSEL6 GPIO_AFRL_AFSEL6_Msk
  11502. #define GPIO_AFRL_AFSEL6_0 (0x1UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x01000000 */
  11503. #define GPIO_AFRL_AFSEL6_1 (0x2UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x02000000 */
  11504. #define GPIO_AFRL_AFSEL6_2 (0x4UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x04000000 */
  11505. #define GPIO_AFRL_AFSEL6_3 (0x8UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x08000000 */
  11506. #define GPIO_AFRL_AFSEL7_Pos (28U)
  11507. #define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
  11508. #define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
  11509. #define GPIO_AFRL_AFSEL7_0 (0x1UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x10000000 */
  11510. #define GPIO_AFRL_AFSEL7_1 (0x2UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x20000000 */
  11511. #define GPIO_AFRL_AFSEL7_2 (0x4UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x40000000 */
  11512. #define GPIO_AFRL_AFSEL7_3 (0x8UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x80000000 */
  11513. /* Legacy defines */
  11514. #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0
  11515. #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFSEL1
  11516. #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFSEL2
  11517. #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFSEL3
  11518. #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFSEL4
  11519. #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFSEL5
  11520. #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFSEL6
  11521. #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFSEL7
  11522. /****************** Bit definition for GPIO_AFRH register ********************/
  11523. #define GPIO_AFRH_AFSEL8_Pos (0U)
  11524. #define GPIO_AFRH_AFSEL8_Msk (0xFUL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x0000000F */
  11525. #define GPIO_AFRH_AFSEL8 GPIO_AFRH_AFSEL8_Msk
  11526. #define GPIO_AFRH_AFSEL8_0 (0x1UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000001 */
  11527. #define GPIO_AFRH_AFSEL8_1 (0x2UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000002 */
  11528. #define GPIO_AFRH_AFSEL8_2 (0x4UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000004 */
  11529. #define GPIO_AFRH_AFSEL8_3 (0x8UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000008 */
  11530. #define GPIO_AFRH_AFSEL9_Pos (4U)
  11531. #define GPIO_AFRH_AFSEL9_Msk (0xFUL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x000000F0 */
  11532. #define GPIO_AFRH_AFSEL9 GPIO_AFRH_AFSEL9_Msk
  11533. #define GPIO_AFRH_AFSEL9_0 (0x1UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000010 */
  11534. #define GPIO_AFRH_AFSEL9_1 (0x2UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000020 */
  11535. #define GPIO_AFRH_AFSEL9_2 (0x4UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000040 */
  11536. #define GPIO_AFRH_AFSEL9_3 (0x8UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000080 */
  11537. #define GPIO_AFRH_AFSEL10_Pos (8U)
  11538. #define GPIO_AFRH_AFSEL10_Msk (0xFUL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000F00 */
  11539. #define GPIO_AFRH_AFSEL10 GPIO_AFRH_AFSEL10_Msk
  11540. #define GPIO_AFRH_AFSEL10_0 (0x1UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000100 */
  11541. #define GPIO_AFRH_AFSEL10_1 (0x2UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000200 */
  11542. #define GPIO_AFRH_AFSEL10_2 (0x4UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000400 */
  11543. #define GPIO_AFRH_AFSEL10_3 (0x8UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000800 */
  11544. #define GPIO_AFRH_AFSEL11_Pos (12U)
  11545. #define GPIO_AFRH_AFSEL11_Msk (0xFUL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x0000F000 */
  11546. #define GPIO_AFRH_AFSEL11 GPIO_AFRH_AFSEL11_Msk
  11547. #define GPIO_AFRH_AFSEL11_0 (0x1UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00001000 */
  11548. #define GPIO_AFRH_AFSEL11_1 (0x2UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00002000 */
  11549. #define GPIO_AFRH_AFSEL11_2 (0x4UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00004000 */
  11550. #define GPIO_AFRH_AFSEL11_3 (0x8UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00008000 */
  11551. #define GPIO_AFRH_AFSEL12_Pos (16U)
  11552. #define GPIO_AFRH_AFSEL12_Msk (0xFUL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x000F0000 */
  11553. #define GPIO_AFRH_AFSEL12 GPIO_AFRH_AFSEL12_Msk
  11554. #define GPIO_AFRH_AFSEL12_0 (0x1UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00010000 */
  11555. #define GPIO_AFRH_AFSEL12_1 (0x2UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00020000 */
  11556. #define GPIO_AFRH_AFSEL12_2 (0x4UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00040000 */
  11557. #define GPIO_AFRH_AFSEL12_3 (0x8UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00080000 */
  11558. #define GPIO_AFRH_AFSEL13_Pos (20U)
  11559. #define GPIO_AFRH_AFSEL13_Msk (0xFUL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00F00000 */
  11560. #define GPIO_AFRH_AFSEL13 GPIO_AFRH_AFSEL13_Msk
  11561. #define GPIO_AFRH_AFSEL13_0 (0x1UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00100000 */
  11562. #define GPIO_AFRH_AFSEL13_1 (0x2UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00200000 */
  11563. #define GPIO_AFRH_AFSEL13_2 (0x4UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00400000 */
  11564. #define GPIO_AFRH_AFSEL13_3 (0x8UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00800000 */
  11565. #define GPIO_AFRH_AFSEL14_Pos (24U)
  11566. #define GPIO_AFRH_AFSEL14_Msk (0xFUL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x0F000000 */
  11567. #define GPIO_AFRH_AFSEL14 GPIO_AFRH_AFSEL14_Msk
  11568. #define GPIO_AFRH_AFSEL14_0 (0x1UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x01000000 */
  11569. #define GPIO_AFRH_AFSEL14_1 (0x2UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x02000000 */
  11570. #define GPIO_AFRH_AFSEL14_2 (0x4UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x04000000 */
  11571. #define GPIO_AFRH_AFSEL14_3 (0x8UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x08000000 */
  11572. #define GPIO_AFRH_AFSEL15_Pos (28U)
  11573. #define GPIO_AFRH_AFSEL15_Msk (0xFUL << GPIO_AFRH_AFSEL15_Pos) /*!< 0xF0000000 */
  11574. #define GPIO_AFRH_AFSEL15 GPIO_AFRH_AFSEL15_Msk
  11575. #define GPIO_AFRH_AFSEL15_0 (0x1UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x10000000 */
  11576. #define GPIO_AFRH_AFSEL15_1 (0x2UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x20000000 */
  11577. #define GPIO_AFRH_AFSEL15_2 (0x4UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x40000000 */
  11578. #define GPIO_AFRH_AFSEL15_3 (0x8UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x80000000 */
  11579. /* Legacy defines */
  11580. #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFSEL8
  11581. #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFSEL9
  11582. #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFSEL10
  11583. #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFSEL11
  11584. #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFSEL12
  11585. #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFSEL13
  11586. #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFSEL14
  11587. #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFSEL15
  11588. /******************************************************************************/
  11589. /* */
  11590. /* HSEM HW Semaphore */
  11591. /* */
  11592. /******************************************************************************/
  11593. /******************** Bit definition for HSEM_R register ********************/
  11594. #define HSEM_R_PROCID_Pos (0U)
  11595. #define HSEM_R_PROCID_Msk (0xFFUL << HSEM_R_PROCID_Pos) /*!< 0x000000FF */
  11596. #define HSEM_R_PROCID HSEM_R_PROCID_Msk /*!<Semaphore ProcessID */
  11597. #define HSEM_R_COREID_Pos (8U)
  11598. #define HSEM_R_COREID_Msk (0xFFUL << HSEM_R_COREID_Pos) /*!< 0x0000FF00 */
  11599. #define HSEM_R_COREID HSEM_R_COREID_Msk /*!<Semaphore CoreID. */
  11600. #define HSEM_R_LOCK_Pos (31U)
  11601. #define HSEM_R_LOCK_Msk (0x1UL << HSEM_R_LOCK_Pos) /*!< 0x80000000 */
  11602. #define HSEM_R_LOCK HSEM_R_LOCK_Msk /*!<Lock indication. */
  11603. /******************** Bit definition for HSEM_RLR register ******************/
  11604. #define HSEM_RLR_PROCID_Pos (0U)
  11605. #define HSEM_RLR_PROCID_Msk (0xFFUL << HSEM_RLR_PROCID_Pos) /*!< 0x000000FF */
  11606. #define HSEM_RLR_PROCID HSEM_RLR_PROCID_Msk /*!<Semaphore ProcessID */
  11607. #define HSEM_RLR_COREID_Pos (8U)
  11608. #define HSEM_RLR_COREID_Msk (0xFFUL << HSEM_RLR_COREID_Pos) /*!< 0x0000FF00 */
  11609. #define HSEM_RLR_COREID HSEM_RLR_COREID_Msk /*!<Semaphore CoreID. */
  11610. #define HSEM_RLR_LOCK_Pos (31U)
  11611. #define HSEM_RLR_LOCK_Msk (0x1UL << HSEM_RLR_LOCK_Pos) /*!< 0x80000000 */
  11612. #define HSEM_RLR_LOCK HSEM_RLR_LOCK_Msk /*!<Lock indication. */
  11613. /******************** Bit definition for HSEM_C1IER register *****************/
  11614. #define HSEM_C1IER_ISE0_Pos (0U)
  11615. #define HSEM_C1IER_ISE0_Msk (0x1UL << HSEM_C1IER_ISE0_Pos) /*!< 0x00000001 */
  11616. #define HSEM_C1IER_ISE0 HSEM_C1IER_ISE0_Msk /*!<semaphore 0 , interrupt 0 enable bit. */
  11617. #define HSEM_C1IER_ISE1_Pos (1U)
  11618. #define HSEM_C1IER_ISE1_Msk (0x1UL << HSEM_C1IER_ISE1_Pos) /*!< 0x00000002 */
  11619. #define HSEM_C1IER_ISE1 HSEM_C1IER_ISE1_Msk /*!<semaphore 1 , interrupt 0 enable bit. */
  11620. #define HSEM_C1IER_ISE2_Pos (2U)
  11621. #define HSEM_C1IER_ISE2_Msk (0x1UL << HSEM_C1IER_ISE2_Pos) /*!< 0x00000004 */
  11622. #define HSEM_C1IER_ISE2 HSEM_C1IER_ISE2_Msk /*!<semaphore 2 , interrupt 0 enable bit. */
  11623. #define HSEM_C1IER_ISE3_Pos (3U)
  11624. #define HSEM_C1IER_ISE3_Msk (0x1UL << HSEM_C1IER_ISE3_Pos) /*!< 0x00000008 */
  11625. #define HSEM_C1IER_ISE3 HSEM_C1IER_ISE3_Msk /*!<semaphore 3 , interrupt 0 enable bit. */
  11626. #define HSEM_C1IER_ISE4_Pos (4U)
  11627. #define HSEM_C1IER_ISE4_Msk (0x1UL << HSEM_C1IER_ISE4_Pos) /*!< 0x00000010 */
  11628. #define HSEM_C1IER_ISE4 HSEM_C1IER_ISE4_Msk /*!<semaphore 4 , interrupt 0 enable bit. */
  11629. #define HSEM_C1IER_ISE5_Pos (5U)
  11630. #define HSEM_C1IER_ISE5_Msk (0x1UL << HSEM_C1IER_ISE5_Pos) /*!< 0x00000020 */
  11631. #define HSEM_C1IER_ISE5 HSEM_C1IER_ISE5_Msk /*!<semaphore 5 interrupt 0 enable bit. */
  11632. #define HSEM_C1IER_ISE6_Pos (6U)
  11633. #define HSEM_C1IER_ISE6_Msk (0x1UL << HSEM_C1IER_ISE6_Pos) /*!< 0x00000040 */
  11634. #define HSEM_C1IER_ISE6 HSEM_C1IER_ISE6_Msk /*!<semaphore 6 interrupt 0 enable bit. */
  11635. #define HSEM_C1IER_ISE7_Pos (7U)
  11636. #define HSEM_C1IER_ISE7_Msk (0x1UL << HSEM_C1IER_ISE7_Pos) /*!< 0x00000080 */
  11637. #define HSEM_C1IER_ISE7 HSEM_C1IER_ISE7_Msk /*!<semaphore 7 interrupt 0 enable bit. */
  11638. #define HSEM_C1IER_ISE8_Pos (8U)
  11639. #define HSEM_C1IER_ISE8_Msk (0x1UL << HSEM_C1IER_ISE8_Pos) /*!< 0x00000100 */
  11640. #define HSEM_C1IER_ISE8 HSEM_C1IER_ISE8_Msk /*!<semaphore 8 interrupt 0 enable bit. */
  11641. #define HSEM_C1IER_ISE9_Pos (9U)
  11642. #define HSEM_C1IER_ISE9_Msk (0x1UL << HSEM_C1IER_ISE9_Pos) /*!< 0x00000200 */
  11643. #define HSEM_C1IER_ISE9 HSEM_C1IER_ISE9_Msk /*!<semaphore 9 interrupt 0 enable bit. */
  11644. #define HSEM_C1IER_ISE10_Pos (10U)
  11645. #define HSEM_C1IER_ISE10_Msk (0x1UL << HSEM_C1IER_ISE10_Pos) /*!< 0x00000400 */
  11646. #define HSEM_C1IER_ISE10 HSEM_C1IER_ISE10_Msk /*!<semaphore 10 interrupt 0 enable bit. */
  11647. #define HSEM_C1IER_ISE11_Pos (11U)
  11648. #define HSEM_C1IER_ISE11_Msk (0x1UL << HSEM_C1IER_ISE11_Pos) /*!< 0x00000800 */
  11649. #define HSEM_C1IER_ISE11 HSEM_C1IER_ISE11_Msk /*!<semaphore 11 interrupt 0 enable bit. */
  11650. #define HSEM_C1IER_ISE12_Pos (12U)
  11651. #define HSEM_C1IER_ISE12_Msk (0x1UL << HSEM_C1IER_ISE12_Pos) /*!< 0x00001000 */
  11652. #define HSEM_C1IER_ISE12 HSEM_C1IER_ISE12_Msk /*!<semaphore 12 interrupt 0 enable bit. */
  11653. #define HSEM_C1IER_ISE13_Pos (13U)
  11654. #define HSEM_C1IER_ISE13_Msk (0x1UL << HSEM_C1IER_ISE13_Pos) /*!< 0x00002000 */
  11655. #define HSEM_C1IER_ISE13 HSEM_C1IER_ISE13_Msk /*!<semaphore 13 interrupt 0 enable bit. */
  11656. #define HSEM_C1IER_ISE14_Pos (14U)
  11657. #define HSEM_C1IER_ISE14_Msk (0x1UL << HSEM_C1IER_ISE14_Pos) /*!< 0x00004000 */
  11658. #define HSEM_C1IER_ISE14 HSEM_C1IER_ISE14_Msk /*!<semaphore 14 interrupt 0 enable bit. */
  11659. #define HSEM_C1IER_ISE15_Pos (15U)
  11660. #define HSEM_C1IER_ISE15_Msk (0x1UL << HSEM_C1IER_ISE15_Pos) /*!< 0x00008000 */
  11661. #define HSEM_C1IER_ISE15 HSEM_C1IER_ISE15_Msk /*!<semaphore 15 interrupt 0 enable bit. */
  11662. #define HSEM_C1IER_ISE16_Pos (16U)
  11663. #define HSEM_C1IER_ISE16_Msk (0x1UL << HSEM_C1IER_ISE16_Pos) /*!< 0x00010000 */
  11664. #define HSEM_C1IER_ISE16 HSEM_C1IER_ISE16_Msk /*!<semaphore 16 interrupt 0 enable bit. */
  11665. #define HSEM_C1IER_ISE17_Pos (17U)
  11666. #define HSEM_C1IER_ISE17_Msk (0x1UL << HSEM_C1IER_ISE17_Pos) /*!< 0x00020000 */
  11667. #define HSEM_C1IER_ISE17 HSEM_C1IER_ISE17_Msk /*!<semaphore 17 interrupt 0 enable bit. */
  11668. #define HSEM_C1IER_ISE18_Pos (18U)
  11669. #define HSEM_C1IER_ISE18_Msk (0x1UL << HSEM_C1IER_ISE18_Pos) /*!< 0x00040000 */
  11670. #define HSEM_C1IER_ISE18 HSEM_C1IER_ISE18_Msk /*!<semaphore 18 interrupt 0 enable bit. */
  11671. #define HSEM_C1IER_ISE19_Pos (19U)
  11672. #define HSEM_C1IER_ISE19_Msk (0x1UL << HSEM_C1IER_ISE19_Pos) /*!< 0x00080000 */
  11673. #define HSEM_C1IER_ISE19 HSEM_C1IER_ISE19_Msk /*!<semaphore 19 interrupt 0 enable bit. */
  11674. #define HSEM_C1IER_ISE20_Pos (20U)
  11675. #define HSEM_C1IER_ISE20_Msk (0x1UL << HSEM_C1IER_ISE20_Pos) /*!< 0x00100000 */
  11676. #define HSEM_C1IER_ISE20 HSEM_C1IER_ISE20_Msk /*!<semaphore 20 interrupt 0 enable bit. */
  11677. #define HSEM_C1IER_ISE21_Pos (21U)
  11678. #define HSEM_C1IER_ISE21_Msk (0x1UL << HSEM_C1IER_ISE21_Pos) /*!< 0x00200000 */
  11679. #define HSEM_C1IER_ISE21 HSEM_C1IER_ISE21_Msk /*!<semaphore 21 interrupt 0 enable bit. */
  11680. #define HSEM_C1IER_ISE22_Pos (22U)
  11681. #define HSEM_C1IER_ISE22_Msk (0x1UL << HSEM_C1IER_ISE22_Pos) /*!< 0x00400000 */
  11682. #define HSEM_C1IER_ISE22 HSEM_C1IER_ISE22_Msk /*!<semaphore 22 interrupt 0 enable bit. */
  11683. #define HSEM_C1IER_ISE23_Pos (23U)
  11684. #define HSEM_C1IER_ISE23_Msk (0x1UL << HSEM_C1IER_ISE23_Pos) /*!< 0x00800000 */
  11685. #define HSEM_C1IER_ISE23 HSEM_C1IER_ISE23_Msk /*!<semaphore 23 interrupt 0 enable bit. */
  11686. #define HSEM_C1IER_ISE24_Pos (24U)
  11687. #define HSEM_C1IER_ISE24_Msk (0x1UL << HSEM_C1IER_ISE24_Pos) /*!< 0x01000000 */
  11688. #define HSEM_C1IER_ISE24 HSEM_C1IER_ISE24_Msk /*!<semaphore 24 interrupt 0 enable bit. */
  11689. #define HSEM_C1IER_ISE25_Pos (25U)
  11690. #define HSEM_C1IER_ISE25_Msk (0x1UL << HSEM_C1IER_ISE25_Pos) /*!< 0x02000000 */
  11691. #define HSEM_C1IER_ISE25 HSEM_C1IER_ISE25_Msk /*!<semaphore 25 interrupt 0 enable bit. */
  11692. #define HSEM_C1IER_ISE26_Pos (26U)
  11693. #define HSEM_C1IER_ISE26_Msk (0x1UL << HSEM_C1IER_ISE26_Pos) /*!< 0x04000000 */
  11694. #define HSEM_C1IER_ISE26 HSEM_C1IER_ISE26_Msk /*!<semaphore 26 interrupt 0 enable bit. */
  11695. #define HSEM_C1IER_ISE27_Pos (27U)
  11696. #define HSEM_C1IER_ISE27_Msk (0x1UL << HSEM_C1IER_ISE27_Pos) /*!< 0x08000000 */
  11697. #define HSEM_C1IER_ISE27 HSEM_C1IER_ISE27_Msk /*!<semaphore 27 interrupt 0 enable bit. */
  11698. #define HSEM_C1IER_ISE28_Pos (28U)
  11699. #define HSEM_C1IER_ISE28_Msk (0x1UL << HSEM_C1IER_ISE28_Pos) /*!< 0x10000000 */
  11700. #define HSEM_C1IER_ISE28 HSEM_C1IER_ISE28_Msk /*!<semaphore 28 interrupt 0 enable bit. */
  11701. #define HSEM_C1IER_ISE29_Pos (29U)
  11702. #define HSEM_C1IER_ISE29_Msk (0x1UL << HSEM_C1IER_ISE29_Pos) /*!< 0x20000000 */
  11703. #define HSEM_C1IER_ISE29 HSEM_C1IER_ISE29_Msk /*!<semaphore 29 interrupt 0 enable bit. */
  11704. #define HSEM_C1IER_ISE30_Pos (30U)
  11705. #define HSEM_C1IER_ISE30_Msk (0x1UL << HSEM_C1IER_ISE30_Pos) /*!< 0x40000000 */
  11706. #define HSEM_C1IER_ISE30 HSEM_C1IER_ISE30_Msk /*!<semaphore 30 interrupt 0 enable bit. */
  11707. #define HSEM_C1IER_ISE31_Pos (31U)
  11708. #define HSEM_C1IER_ISE31_Msk (0x1UL << HSEM_C1IER_ISE31_Pos) /*!< 0x80000000 */
  11709. #define HSEM_C1IER_ISE31 HSEM_C1IER_ISE31_Msk /*!<semaphore 31 interrupt 0 enable bit. */
  11710. /******************** Bit definition for HSEM_C1ICR register *****************/
  11711. #define HSEM_C1ICR_ISC0_Pos (0U)
  11712. #define HSEM_C1ICR_ISC0_Msk (0x1UL << HSEM_C1ICR_ISC0_Pos) /*!< 0x00000001 */
  11713. #define HSEM_C1ICR_ISC0 HSEM_C1ICR_ISC0_Msk /*!<semaphore 0 , interrupt 0 clear bit. */
  11714. #define HSEM_C1ICR_ISC1_Pos (1U)
  11715. #define HSEM_C1ICR_ISC1_Msk (0x1UL << HSEM_C1ICR_ISC1_Pos) /*!< 0x00000002 */
  11716. #define HSEM_C1ICR_ISC1 HSEM_C1ICR_ISC1_Msk /*!<semaphore 1 , interrupt 0 clear bit. */
  11717. #define HSEM_C1ICR_ISC2_Pos (2U)
  11718. #define HSEM_C1ICR_ISC2_Msk (0x1UL << HSEM_C1ICR_ISC2_Pos) /*!< 0x00000004 */
  11719. #define HSEM_C1ICR_ISC2 HSEM_C1ICR_ISC2_Msk /*!<semaphore 2 , interrupt 0 clear bit. */
  11720. #define HSEM_C1ICR_ISC3_Pos (3U)
  11721. #define HSEM_C1ICR_ISC3_Msk (0x1UL << HSEM_C1ICR_ISC3_Pos) /*!< 0x00000008 */
  11722. #define HSEM_C1ICR_ISC3 HSEM_C1ICR_ISC3_Msk /*!<semaphore 3 , interrupt 0 clear bit. */
  11723. #define HSEM_C1ICR_ISC4_Pos (4U)
  11724. #define HSEM_C1ICR_ISC4_Msk (0x1UL << HSEM_C1ICR_ISC4_Pos) /*!< 0x00000010 */
  11725. #define HSEM_C1ICR_ISC4 HSEM_C1ICR_ISC4_Msk /*!<semaphore 4 , interrupt 0 clear bit. */
  11726. #define HSEM_C1ICR_ISC5_Pos (5U)
  11727. #define HSEM_C1ICR_ISC5_Msk (0x1UL << HSEM_C1ICR_ISC5_Pos) /*!< 0x00000020 */
  11728. #define HSEM_C1ICR_ISC5 HSEM_C1ICR_ISC5_Msk /*!<semaphore 5 interrupt 0 clear bit. */
  11729. #define HSEM_C1ICR_ISC6_Pos (6U)
  11730. #define HSEM_C1ICR_ISC6_Msk (0x1UL << HSEM_C1ICR_ISC6_Pos) /*!< 0x00000040 */
  11731. #define HSEM_C1ICR_ISC6 HSEM_C1ICR_ISC6_Msk /*!<semaphore 6 interrupt 0 clear bit. */
  11732. #define HSEM_C1ICR_ISC7_Pos (7U)
  11733. #define HSEM_C1ICR_ISC7_Msk (0x1UL << HSEM_C1ICR_ISC7_Pos) /*!< 0x00000080 */
  11734. #define HSEM_C1ICR_ISC7 HSEM_C1ICR_ISC7_Msk /*!<semaphore 7 interrupt 0 clear bit. */
  11735. #define HSEM_C1ICR_ISC8_Pos (8U)
  11736. #define HSEM_C1ICR_ISC8_Msk (0x1UL << HSEM_C1ICR_ISC8_Pos) /*!< 0x00000100 */
  11737. #define HSEM_C1ICR_ISC8 HSEM_C1ICR_ISC8_Msk /*!<semaphore 8 interrupt 0 clear bit. */
  11738. #define HSEM_C1ICR_ISC9_Pos (9U)
  11739. #define HSEM_C1ICR_ISC9_Msk (0x1UL << HSEM_C1ICR_ISC9_Pos) /*!< 0x00000200 */
  11740. #define HSEM_C1ICR_ISC9 HSEM_C1ICR_ISC9_Msk /*!<semaphore 9 interrupt 0 clear bit. */
  11741. #define HSEM_C1ICR_ISC10_Pos (10U)
  11742. #define HSEM_C1ICR_ISC10_Msk (0x1UL << HSEM_C1ICR_ISC10_Pos) /*!< 0x00000400 */
  11743. #define HSEM_C1ICR_ISC10 HSEM_C1ICR_ISC10_Msk /*!<semaphore 10 interrupt 0 clear bit. */
  11744. #define HSEM_C1ICR_ISC11_Pos (11U)
  11745. #define HSEM_C1ICR_ISC11_Msk (0x1UL << HSEM_C1ICR_ISC11_Pos) /*!< 0x00000800 */
  11746. #define HSEM_C1ICR_ISC11 HSEM_C1ICR_ISC11_Msk /*!<semaphore 11 interrupt 0 clear bit. */
  11747. #define HSEM_C1ICR_ISC12_Pos (12U)
  11748. #define HSEM_C1ICR_ISC12_Msk (0x1UL << HSEM_C1ICR_ISC12_Pos) /*!< 0x00001000 */
  11749. #define HSEM_C1ICR_ISC12 HSEM_C1ICR_ISC12_Msk /*!<semaphore 12 interrupt 0 clear bit. */
  11750. #define HSEM_C1ICR_ISC13_Pos (13U)
  11751. #define HSEM_C1ICR_ISC13_Msk (0x1UL << HSEM_C1ICR_ISC13_Pos) /*!< 0x00002000 */
  11752. #define HSEM_C1ICR_ISC13 HSEM_C1ICR_ISC13_Msk /*!<semaphore 13 interrupt 0 clear bit. */
  11753. #define HSEM_C1ICR_ISC14_Pos (14U)
  11754. #define HSEM_C1ICR_ISC14_Msk (0x1UL << HSEM_C1ICR_ISC14_Pos) /*!< 0x00004000 */
  11755. #define HSEM_C1ICR_ISC14 HSEM_C1ICR_ISC14_Msk /*!<semaphore 14 interrupt 0 clear bit. */
  11756. #define HSEM_C1ICR_ISC15_Pos (15U)
  11757. #define HSEM_C1ICR_ISC15_Msk (0x1UL << HSEM_C1ICR_ISC15_Pos) /*!< 0x00008000 */
  11758. #define HSEM_C1ICR_ISC15 HSEM_C1ICR_ISC15_Msk /*!<semaphore 15 interrupt 0 clear bit. */
  11759. #define HSEM_C1ICR_ISC16_Pos (16U)
  11760. #define HSEM_C1ICR_ISC16_Msk (0x1UL << HSEM_C1ICR_ISC16_Pos) /*!< 0x00010000 */
  11761. #define HSEM_C1ICR_ISC16 HSEM_C1ICR_ISC16_Msk /*!<semaphore 16 interrupt 0 clear bit. */
  11762. #define HSEM_C1ICR_ISC17_Pos (17U)
  11763. #define HSEM_C1ICR_ISC17_Msk (0x1UL << HSEM_C1ICR_ISC17_Pos) /*!< 0x00020000 */
  11764. #define HSEM_C1ICR_ISC17 HSEM_C1ICR_ISC17_Msk /*!<semaphore 17 interrupt 0 clear bit. */
  11765. #define HSEM_C1ICR_ISC18_Pos (18U)
  11766. #define HSEM_C1ICR_ISC18_Msk (0x1UL << HSEM_C1ICR_ISC18_Pos) /*!< 0x00040000 */
  11767. #define HSEM_C1ICR_ISC18 HSEM_C1ICR_ISC18_Msk /*!<semaphore 18 interrupt 0 clear bit. */
  11768. #define HSEM_C1ICR_ISC19_Pos (19U)
  11769. #define HSEM_C1ICR_ISC19_Msk (0x1UL << HSEM_C1ICR_ISC19_Pos) /*!< 0x00080000 */
  11770. #define HSEM_C1ICR_ISC19 HSEM_C1ICR_ISC19_Msk /*!<semaphore 19 interrupt 0 clear bit. */
  11771. #define HSEM_C1ICR_ISC20_Pos (20U)
  11772. #define HSEM_C1ICR_ISC20_Msk (0x1UL << HSEM_C1ICR_ISC20_Pos) /*!< 0x00100000 */
  11773. #define HSEM_C1ICR_ISC20 HSEM_C1ICR_ISC20_Msk /*!<semaphore 20 interrupt 0 clear bit. */
  11774. #define HSEM_C1ICR_ISC21_Pos (21U)
  11775. #define HSEM_C1ICR_ISC21_Msk (0x1UL << HSEM_C1ICR_ISC21_Pos) /*!< 0x00200000 */
  11776. #define HSEM_C1ICR_ISC21 HSEM_C1ICR_ISC21_Msk /*!<semaphore 21 interrupt 0 clear bit. */
  11777. #define HSEM_C1ICR_ISC22_Pos (22U)
  11778. #define HSEM_C1ICR_ISC22_Msk (0x1UL << HSEM_C1ICR_ISC22_Pos) /*!< 0x00400000 */
  11779. #define HSEM_C1ICR_ISC22 HSEM_C1ICR_ISC22_Msk /*!<semaphore 22 interrupt 0 clear bit. */
  11780. #define HSEM_C1ICR_ISC23_Pos (23U)
  11781. #define HSEM_C1ICR_ISC23_Msk (0x1UL << HSEM_C1ICR_ISC23_Pos) /*!< 0x00800000 */
  11782. #define HSEM_C1ICR_ISC23 HSEM_C1ICR_ISC23_Msk /*!<semaphore 23 interrupt 0 clear bit. */
  11783. #define HSEM_C1ICR_ISC24_Pos (24U)
  11784. #define HSEM_C1ICR_ISC24_Msk (0x1UL << HSEM_C1ICR_ISC24_Pos) /*!< 0x01000000 */
  11785. #define HSEM_C1ICR_ISC24 HSEM_C1ICR_ISC24_Msk /*!<semaphore 24 interrupt 0 clear bit. */
  11786. #define HSEM_C1ICR_ISC25_Pos (25U)
  11787. #define HSEM_C1ICR_ISC25_Msk (0x1UL << HSEM_C1ICR_ISC25_Pos) /*!< 0x02000000 */
  11788. #define HSEM_C1ICR_ISC25 HSEM_C1ICR_ISC25_Msk /*!<semaphore 25 interrupt 0 clear bit. */
  11789. #define HSEM_C1ICR_ISC26_Pos (26U)
  11790. #define HSEM_C1ICR_ISC26_Msk (0x1UL << HSEM_C1ICR_ISC26_Pos) /*!< 0x04000000 */
  11791. #define HSEM_C1ICR_ISC26 HSEM_C1ICR_ISC26_Msk /*!<semaphore 26 interrupt 0 clear bit. */
  11792. #define HSEM_C1ICR_ISC27_Pos (27U)
  11793. #define HSEM_C1ICR_ISC27_Msk (0x1UL << HSEM_C1ICR_ISC27_Pos) /*!< 0x08000000 */
  11794. #define HSEM_C1ICR_ISC27 HSEM_C1ICR_ISC27_Msk /*!<semaphore 27 interrupt 0 clear bit. */
  11795. #define HSEM_C1ICR_ISC28_Pos (28U)
  11796. #define HSEM_C1ICR_ISC28_Msk (0x1UL << HSEM_C1ICR_ISC28_Pos) /*!< 0x10000000 */
  11797. #define HSEM_C1ICR_ISC28 HSEM_C1ICR_ISC28_Msk /*!<semaphore 28 interrupt 0 clear bit. */
  11798. #define HSEM_C1ICR_ISC29_Pos (29U)
  11799. #define HSEM_C1ICR_ISC29_Msk (0x1UL << HSEM_C1ICR_ISC29_Pos) /*!< 0x20000000 */
  11800. #define HSEM_C1ICR_ISC29 HSEM_C1ICR_ISC29_Msk /*!<semaphore 29 interrupt 0 clear bit. */
  11801. #define HSEM_C1ICR_ISC30_Pos (30U)
  11802. #define HSEM_C1ICR_ISC30_Msk (0x1UL << HSEM_C1ICR_ISC30_Pos) /*!< 0x40000000 */
  11803. #define HSEM_C1ICR_ISC30 HSEM_C1ICR_ISC30_Msk /*!<semaphore 30 interrupt 0 clear bit. */
  11804. #define HSEM_C1ICR_ISC31_Pos (31U)
  11805. #define HSEM_C1ICR_ISC31_Msk (0x1UL << HSEM_C1ICR_ISC31_Pos) /*!< 0x80000000 */
  11806. #define HSEM_C1ICR_ISC31 HSEM_C1ICR_ISC31_Msk /*!<semaphore 31 interrupt 0 clear bit. */
  11807. /******************** Bit definition for HSEM_C1ISR register *****************/
  11808. #define HSEM_C1ISR_ISF0_Pos (0U)
  11809. #define HSEM_C1ISR_ISF0_Msk (0x1UL << HSEM_C1ISR_ISF0_Pos) /*!< 0x00000001 */
  11810. #define HSEM_C1ISR_ISF0 HSEM_C1ISR_ISF0_Msk /*!<semaphore 0 interrupt 0 status bit. */
  11811. #define HSEM_C1ISR_ISF1_Pos (1U)
  11812. #define HSEM_C1ISR_ISF1_Msk (0x1UL << HSEM_C1ISR_ISF1_Pos) /*!< 0x00000002 */
  11813. #define HSEM_C1ISR_ISF1 HSEM_C1ISR_ISF1_Msk /*!<semaphore 1 interrupt 0 status bit. */
  11814. #define HSEM_C1ISR_ISF2_Pos (2U)
  11815. #define HSEM_C1ISR_ISF2_Msk (0x1UL << HSEM_C1ISR_ISF2_Pos) /*!< 0x00000004 */
  11816. #define HSEM_C1ISR_ISF2 HSEM_C1ISR_ISF2_Msk /*!<semaphore 2 interrupt 0 status bit. */
  11817. #define HSEM_C1ISR_ISF3_Pos (3U)
  11818. #define HSEM_C1ISR_ISF3_Msk (0x1UL << HSEM_C1ISR_ISF3_Pos) /*!< 0x00000008 */
  11819. #define HSEM_C1ISR_ISF3 HSEM_C1ISR_ISF3_Msk /*!<semaphore 3 interrupt 0 status bit. */
  11820. #define HSEM_C1ISR_ISF4_Pos (4U)
  11821. #define HSEM_C1ISR_ISF4_Msk (0x1UL << HSEM_C1ISR_ISF4_Pos) /*!< 0x00000010 */
  11822. #define HSEM_C1ISR_ISF4 HSEM_C1ISR_ISF4_Msk /*!<semaphore 4 interrupt 0 status bit. */
  11823. #define HSEM_C1ISR_ISF5_Pos (5U)
  11824. #define HSEM_C1ISR_ISF5_Msk (0x1UL << HSEM_C1ISR_ISF5_Pos) /*!< 0x00000020 */
  11825. #define HSEM_C1ISR_ISF5 HSEM_C1ISR_ISF5_Msk /*!<semaphore 5 interrupt 0 status bit. */
  11826. #define HSEM_C1ISR_ISF6_Pos (6U)
  11827. #define HSEM_C1ISR_ISF6_Msk (0x1UL << HSEM_C1ISR_ISF6_Pos) /*!< 0x00000040 */
  11828. #define HSEM_C1ISR_ISF6 HSEM_C1ISR_ISF6_Msk /*!<semaphore 6 interrupt 0 status bit. */
  11829. #define HSEM_C1ISR_ISF7_Pos (7U)
  11830. #define HSEM_C1ISR_ISF7_Msk (0x1UL << HSEM_C1ISR_ISF7_Pos) /*!< 0x00000080 */
  11831. #define HSEM_C1ISR_ISF7 HSEM_C1ISR_ISF7_Msk /*!<semaphore 7 interrupt 0 status bit. */
  11832. #define HSEM_C1ISR_ISF8_Pos (8U)
  11833. #define HSEM_C1ISR_ISF8_Msk (0x1UL << HSEM_C1ISR_ISF8_Pos) /*!< 0x00000100 */
  11834. #define HSEM_C1ISR_ISF8 HSEM_C1ISR_ISF8_Msk /*!<semaphore 8 interrupt 0 status bit. */
  11835. #define HSEM_C1ISR_ISF9_Pos (9U)
  11836. #define HSEM_C1ISR_ISF9_Msk (0x1UL << HSEM_C1ISR_ISF9_Pos) /*!< 0x00000200 */
  11837. #define HSEM_C1ISR_ISF9 HSEM_C1ISR_ISF9_Msk /*!<semaphore 9 interrupt 0 status bit. */
  11838. #define HSEM_C1ISR_ISF10_Pos (10U)
  11839. #define HSEM_C1ISR_ISF10_Msk (0x1UL << HSEM_C1ISR_ISF10_Pos) /*!< 0x00000400 */
  11840. #define HSEM_C1ISR_ISF10 HSEM_C1ISR_ISF10_Msk /*!<semaphore 10 interrupt 0 status bit. */
  11841. #define HSEM_C1ISR_ISF11_Pos (11U)
  11842. #define HSEM_C1ISR_ISF11_Msk (0x1UL << HSEM_C1ISR_ISF11_Pos) /*!< 0x00000800 */
  11843. #define HSEM_C1ISR_ISF11 HSEM_C1ISR_ISF11_Msk /*!<semaphore 11 interrupt 0 status bit. */
  11844. #define HSEM_C1ISR_ISF12_Pos (12U)
  11845. #define HSEM_C1ISR_ISF12_Msk (0x1UL << HSEM_C1ISR_ISF12_Pos) /*!< 0x00001000 */
  11846. #define HSEM_C1ISR_ISF12 HSEM_C1ISR_ISF12_Msk /*!<semaphore 12 interrupt 0 status bit. */
  11847. #define HSEM_C1ISR_ISF13_Pos (13U)
  11848. #define HSEM_C1ISR_ISF13_Msk (0x1UL << HSEM_C1ISR_ISF13_Pos) /*!< 0x00002000 */
  11849. #define HSEM_C1ISR_ISF13 HSEM_C1ISR_ISF13_Msk /*!<semaphore 13 interrupt 0 status bit. */
  11850. #define HSEM_C1ISR_ISF14_Pos (14U)
  11851. #define HSEM_C1ISR_ISF14_Msk (0x1UL << HSEM_C1ISR_ISF14_Pos) /*!< 0x00004000 */
  11852. #define HSEM_C1ISR_ISF14 HSEM_C1ISR_ISF14_Msk /*!<semaphore 14 interrupt 0 status bit. */
  11853. #define HSEM_C1ISR_ISF15_Pos (15U)
  11854. #define HSEM_C1ISR_ISF15_Msk (0x1UL << HSEM_C1ISR_ISF15_Pos) /*!< 0x00008000 */
  11855. #define HSEM_C1ISR_ISF15 HSEM_C1ISR_ISF15_Msk /*!<semaphore 15 interrupt 0 status bit. */
  11856. #define HSEM_C1ISR_ISF16_Pos (16U)
  11857. #define HSEM_C1ISR_ISF16_Msk (0x1UL << HSEM_C1ISR_ISF16_Pos) /*!< 0x00010000 */
  11858. #define HSEM_C1ISR_ISF16 HSEM_C1ISR_ISF16_Msk /*!<semaphore 16 interrupt 0 status bit. */
  11859. #define HSEM_C1ISR_ISF17_Pos (17U)
  11860. #define HSEM_C1ISR_ISF17_Msk (0x1UL << HSEM_C1ISR_ISF17_Pos) /*!< 0x00020000 */
  11861. #define HSEM_C1ISR_ISF17 HSEM_C1ISR_ISF17_Msk /*!<semaphore 17 interrupt 0 status bit. */
  11862. #define HSEM_C1ISR_ISF18_Pos (18U)
  11863. #define HSEM_C1ISR_ISF18_Msk (0x1UL << HSEM_C1ISR_ISF18_Pos) /*!< 0x00040000 */
  11864. #define HSEM_C1ISR_ISF18 HSEM_C1ISR_ISF18_Msk /*!<semaphore 18 interrupt 0 status bit. */
  11865. #define HSEM_C1ISR_ISF19_Pos (19U)
  11866. #define HSEM_C1ISR_ISF19_Msk (0x1UL << HSEM_C1ISR_ISF19_Pos) /*!< 0x00080000 */
  11867. #define HSEM_C1ISR_ISF19 HSEM_C1ISR_ISF19_Msk /*!<semaphore 19 interrupt 0 status bit. */
  11868. #define HSEM_C1ISR_ISF20_Pos (20U)
  11869. #define HSEM_C1ISR_ISF20_Msk (0x1UL << HSEM_C1ISR_ISF20_Pos) /*!< 0x00100000 */
  11870. #define HSEM_C1ISR_ISF20 HSEM_C1ISR_ISF20_Msk /*!<semaphore 20 interrupt 0 status bit. */
  11871. #define HSEM_C1ISR_ISF21_Pos (21U)
  11872. #define HSEM_C1ISR_ISF21_Msk (0x1UL << HSEM_C1ISR_ISF21_Pos) /*!< 0x00200000 */
  11873. #define HSEM_C1ISR_ISF21 HSEM_C1ISR_ISF21_Msk /*!<semaphore 21 interrupt 0 status bit. */
  11874. #define HSEM_C1ISR_ISF22_Pos (22U)
  11875. #define HSEM_C1ISR_ISF22_Msk (0x1UL << HSEM_C1ISR_ISF22_Pos) /*!< 0x00400000 */
  11876. #define HSEM_C1ISR_ISF22 HSEM_C1ISR_ISF22_Msk /*!<semaphore 22 interrupt 0 status bit. */
  11877. #define HSEM_C1ISR_ISF23_Pos (23U)
  11878. #define HSEM_C1ISR_ISF23_Msk (0x1UL << HSEM_C1ISR_ISF23_Pos) /*!< 0x00800000 */
  11879. #define HSEM_C1ISR_ISF23 HSEM_C1ISR_ISF23_Msk /*!<semaphore 23 interrupt 0 status bit. */
  11880. #define HSEM_C1ISR_ISF24_Pos (24U)
  11881. #define HSEM_C1ISR_ISF24_Msk (0x1UL << HSEM_C1ISR_ISF24_Pos) /*!< 0x01000000 */
  11882. #define HSEM_C1ISR_ISF24 HSEM_C1ISR_ISF24_Msk /*!<semaphore 24 interrupt 0 status bit. */
  11883. #define HSEM_C1ISR_ISF25_Pos (25U)
  11884. #define HSEM_C1ISR_ISF25_Msk (0x1UL << HSEM_C1ISR_ISF25_Pos) /*!< 0x02000000 */
  11885. #define HSEM_C1ISR_ISF25 HSEM_C1ISR_ISF25_Msk /*!<semaphore 25 interrupt 0 status bit. */
  11886. #define HSEM_C1ISR_ISF26_Pos (26U)
  11887. #define HSEM_C1ISR_ISF26_Msk (0x1UL << HSEM_C1ISR_ISF26_Pos) /*!< 0x04000000 */
  11888. #define HSEM_C1ISR_ISF26 HSEM_C1ISR_ISF26_Msk /*!<semaphore 26 interrupt 0 status bit. */
  11889. #define HSEM_C1ISR_ISF27_Pos (27U)
  11890. #define HSEM_C1ISR_ISF27_Msk (0x1UL << HSEM_C1ISR_ISF27_Pos) /*!< 0x08000000 */
  11891. #define HSEM_C1ISR_ISF27 HSEM_C1ISR_ISF27_Msk /*!<semaphore 27 interrupt 0 status bit. */
  11892. #define HSEM_C1ISR_ISF28_Pos (28U)
  11893. #define HSEM_C1ISR_ISF28_Msk (0x1UL << HSEM_C1ISR_ISF28_Pos) /*!< 0x10000000 */
  11894. #define HSEM_C1ISR_ISF28 HSEM_C1ISR_ISF28_Msk /*!<semaphore 28 interrupt 0 status bit. */
  11895. #define HSEM_C1ISR_ISF29_Pos (29U)
  11896. #define HSEM_C1ISR_ISF29_Msk (0x1UL << HSEM_C1ISR_ISF29_Pos) /*!< 0x20000000 */
  11897. #define HSEM_C1ISR_ISF29 HSEM_C1ISR_ISF29_Msk /*!<semaphore 29 interrupt 0 status bit. */
  11898. #define HSEM_C1ISR_ISF30_Pos (30U)
  11899. #define HSEM_C1ISR_ISF30_Msk (0x1UL << HSEM_C1ISR_ISF30_Pos) /*!< 0x40000000 */
  11900. #define HSEM_C1ISR_ISF30 HSEM_C1ISR_ISF30_Msk /*!<semaphore 30 interrupt 0 status bit. */
  11901. #define HSEM_C1ISR_ISF31_Pos (31U)
  11902. #define HSEM_C1ISR_ISF31_Msk (0x1UL << HSEM_C1ISR_ISF31_Pos) /*!< 0x80000000 */
  11903. #define HSEM_C1ISR_ISF31 HSEM_C1ISR_ISF31_Msk /*!<semaphore 31 interrupt 0 status bit. */
  11904. /******************** Bit definition for HSEM_C1MISR register *****************/
  11905. #define HSEM_C1MISR_MISF0_Pos (0U)
  11906. #define HSEM_C1MISR_MISF0_Msk (0x1UL << HSEM_C1MISR_MISF0_Pos) /*!< 0x00000001 */
  11907. #define HSEM_C1MISR_MISF0 HSEM_C1MISR_MISF0_Msk /*!<semaphore 0 interrupt 0 masked status bit. */
  11908. #define HSEM_C1MISR_MISF1_Pos (1U)
  11909. #define HSEM_C1MISR_MISF1_Msk (0x1UL << HSEM_C1MISR_MISF1_Pos) /*!< 0x00000002 */
  11910. #define HSEM_C1MISR_MISF1 HSEM_C1MISR_MISF1_Msk /*!<semaphore 1 interrupt 0 masked status bit. */
  11911. #define HSEM_C1MISR_MISF2_Pos (2U)
  11912. #define HSEM_C1MISR_MISF2_Msk (0x1UL << HSEM_C1MISR_MISF2_Pos) /*!< 0x00000004 */
  11913. #define HSEM_C1MISR_MISF2 HSEM_C1MISR_MISF2_Msk /*!<semaphore 2 interrupt 0 masked status bit. */
  11914. #define HSEM_C1MISR_MISF3_Pos (3U)
  11915. #define HSEM_C1MISR_MISF3_Msk (0x1UL << HSEM_C1MISR_MISF3_Pos) /*!< 0x00000008 */
  11916. #define HSEM_C1MISR_MISF3 HSEM_C1MISR_MISF3_Msk /*!<semaphore 3 interrupt 0 masked status bit. */
  11917. #define HSEM_C1MISR_MISF4_Pos (4U)
  11918. #define HSEM_C1MISR_MISF4_Msk (0x1UL << HSEM_C1MISR_MISF4_Pos) /*!< 0x00000010 */
  11919. #define HSEM_C1MISR_MISF4 HSEM_C1MISR_MISF4_Msk /*!<semaphore 4 interrupt 0 masked status bit. */
  11920. #define HSEM_C1MISR_MISF5_Pos (5U)
  11921. #define HSEM_C1MISR_MISF5_Msk (0x1UL << HSEM_C1MISR_MISF5_Pos) /*!< 0x00000020 */
  11922. #define HSEM_C1MISR_MISF5 HSEM_C1MISR_MISF5_Msk /*!<semaphore 5 interrupt 0 masked status bit. */
  11923. #define HSEM_C1MISR_MISF6_Pos (6U)
  11924. #define HSEM_C1MISR_MISF6_Msk (0x1UL << HSEM_C1MISR_MISF6_Pos) /*!< 0x00000040 */
  11925. #define HSEM_C1MISR_MISF6 HSEM_C1MISR_MISF6_Msk /*!<semaphore 6 interrupt 0 masked status bit. */
  11926. #define HSEM_C1MISR_MISF7_Pos (7U)
  11927. #define HSEM_C1MISR_MISF7_Msk (0x1UL << HSEM_C1MISR_MISF7_Pos) /*!< 0x00000080 */
  11928. #define HSEM_C1MISR_MISF7 HSEM_C1MISR_MISF7_Msk /*!<semaphore 7 interrupt 0 masked status bit. */
  11929. #define HSEM_C1MISR_MISF8_Pos (8U)
  11930. #define HSEM_C1MISR_MISF8_Msk (0x1UL << HSEM_C1MISR_MISF8_Pos) /*!< 0x00000100 */
  11931. #define HSEM_C1MISR_MISF8 HSEM_C1MISR_MISF8_Msk /*!<semaphore 8 interrupt 0 masked status bit. */
  11932. #define HSEM_C1MISR_MISF9_Pos (9U)
  11933. #define HSEM_C1MISR_MISF9_Msk (0x1UL << HSEM_C1MISR_MISF9_Pos) /*!< 0x00000200 */
  11934. #define HSEM_C1MISR_MISF9 HSEM_C1MISR_MISF9_Msk /*!<semaphore 9 interrupt 0 masked status bit. */
  11935. #define HSEM_C1MISR_MISF10_Pos (10U)
  11936. #define HSEM_C1MISR_MISF10_Msk (0x1UL << HSEM_C1MISR_MISF10_Pos) /*!< 0x00000400 */
  11937. #define HSEM_C1MISR_MISF10 HSEM_C1MISR_MISF10_Msk /*!<semaphore 10 interrupt 0 masked status bit. */
  11938. #define HSEM_C1MISR_MISF11_Pos (11U)
  11939. #define HSEM_C1MISR_MISF11_Msk (0x1UL << HSEM_C1MISR_MISF11_Pos) /*!< 0x00000800 */
  11940. #define HSEM_C1MISR_MISF11 HSEM_C1MISR_MISF11_Msk /*!<semaphore 11 interrupt 0 masked status bit. */
  11941. #define HSEM_C1MISR_MISF12_Pos (12U)
  11942. #define HSEM_C1MISR_MISF12_Msk (0x1UL << HSEM_C1MISR_MISF12_Pos) /*!< 0x00001000 */
  11943. #define HSEM_C1MISR_MISF12 HSEM_C1MISR_MISF12_Msk /*!<semaphore 12 interrupt 0 masked status bit. */
  11944. #define HSEM_C1MISR_MISF13_Pos (13U)
  11945. #define HSEM_C1MISR_MISF13_Msk (0x1UL << HSEM_C1MISR_MISF13_Pos) /*!< 0x00002000 */
  11946. #define HSEM_C1MISR_MISF13 HSEM_C1MISR_MISF13_Msk /*!<semaphore 13 interrupt 0 masked status bit. */
  11947. #define HSEM_C1MISR_MISF14_Pos (14U)
  11948. #define HSEM_C1MISR_MISF14_Msk (0x1UL << HSEM_C1MISR_MISF14_Pos) /*!< 0x00004000 */
  11949. #define HSEM_C1MISR_MISF14 HSEM_C1MISR_MISF14_Msk /*!<semaphore 14 interrupt 0 masked status bit. */
  11950. #define HSEM_C1MISR_MISF15_Pos (15U)
  11951. #define HSEM_C1MISR_MISF15_Msk (0x1UL << HSEM_C1MISR_MISF15_Pos) /*!< 0x00008000 */
  11952. #define HSEM_C1MISR_MISF15 HSEM_C1MISR_MISF15_Msk /*!<semaphore 15 interrupt 0 masked status bit. */
  11953. #define HSEM_C1MISR_MISF16_Pos (16U)
  11954. #define HSEM_C1MISR_MISF16_Msk (0x1UL << HSEM_C1MISR_MISF16_Pos) /*!< 0x00010000 */
  11955. #define HSEM_C1MISR_MISF16 HSEM_C1MISR_MISF16_Msk /*!<semaphore 16 interrupt 0 masked status bit. */
  11956. #define HSEM_C1MISR_MISF17_Pos (17U)
  11957. #define HSEM_C1MISR_MISF17_Msk (0x1UL << HSEM_C1MISR_MISF17_Pos) /*!< 0x00020000 */
  11958. #define HSEM_C1MISR_MISF17 HSEM_C1MISR_MISF17_Msk /*!<semaphore 17 interrupt 0 masked status bit. */
  11959. #define HSEM_C1MISR_MISF18_Pos (18U)
  11960. #define HSEM_C1MISR_MISF18_Msk (0x1UL << HSEM_C1MISR_MISF18_Pos) /*!< 0x00040000 */
  11961. #define HSEM_C1MISR_MISF18 HSEM_C1MISR_MISF18_Msk /*!<semaphore 18 interrupt 0 masked status bit. */
  11962. #define HSEM_C1MISR_MISF19_Pos (19U)
  11963. #define HSEM_C1MISR_MISF19_Msk (0x1UL << HSEM_C1MISR_MISF19_Pos) /*!< 0x00080000 */
  11964. #define HSEM_C1MISR_MISF19 HSEM_C1MISR_MISF19_Msk /*!<semaphore 19 interrupt 0 masked status bit. */
  11965. #define HSEM_C1MISR_MISF20_Pos (20U)
  11966. #define HSEM_C1MISR_MISF20_Msk (0x1UL << HSEM_C1MISR_MISF20_Pos) /*!< 0x00100000 */
  11967. #define HSEM_C1MISR_MISF20 HSEM_C1MISR_MISF20_Msk /*!<semaphore 20 interrupt 0 masked status bit. */
  11968. #define HSEM_C1MISR_MISF21_Pos (21U)
  11969. #define HSEM_C1MISR_MISF21_Msk (0x1UL << HSEM_C1MISR_MISF21_Pos) /*!< 0x00200000 */
  11970. #define HSEM_C1MISR_MISF21 HSEM_C1MISR_MISF21_Msk /*!<semaphore 21 interrupt 0 masked status bit. */
  11971. #define HSEM_C1MISR_MISF22_Pos (22U)
  11972. #define HSEM_C1MISR_MISF22_Msk (0x1UL << HSEM_C1MISR_MISF22_Pos) /*!< 0x00400000 */
  11973. #define HSEM_C1MISR_MISF22 HSEM_C1MISR_MISF22_Msk /*!<semaphore 22 interrupt 0 masked status bit. */
  11974. #define HSEM_C1MISR_MISF23_Pos (23U)
  11975. #define HSEM_C1MISR_MISF23_Msk (0x1UL << HSEM_C1MISR_MISF23_Pos) /*!< 0x00800000 */
  11976. #define HSEM_C1MISR_MISF23 HSEM_C1MISR_MISF23_Msk /*!<semaphore 23 interrupt 0 masked status bit. */
  11977. #define HSEM_C1MISR_MISF24_Pos (24U)
  11978. #define HSEM_C1MISR_MISF24_Msk (0x1UL << HSEM_C1MISR_MISF24_Pos) /*!< 0x01000000 */
  11979. #define HSEM_C1MISR_MISF24 HSEM_C1MISR_MISF24_Msk /*!<semaphore 24 interrupt 0 masked status bit. */
  11980. #define HSEM_C1MISR_MISF25_Pos (25U)
  11981. #define HSEM_C1MISR_MISF25_Msk (0x1UL << HSEM_C1MISR_MISF25_Pos) /*!< 0x02000000 */
  11982. #define HSEM_C1MISR_MISF25 HSEM_C1MISR_MISF25_Msk /*!<semaphore 25 interrupt 0 masked status bit. */
  11983. #define HSEM_C1MISR_MISF26_Pos (26U)
  11984. #define HSEM_C1MISR_MISF26_Msk (0x1UL << HSEM_C1MISR_MISF26_Pos) /*!< 0x04000000 */
  11985. #define HSEM_C1MISR_MISF26 HSEM_C1MISR_MISF26_Msk /*!<semaphore 26 interrupt 0 masked status bit. */
  11986. #define HSEM_C1MISR_MISF27_Pos (27U)
  11987. #define HSEM_C1MISR_MISF27_Msk (0x1UL << HSEM_C1MISR_MISF27_Pos) /*!< 0x08000000 */
  11988. #define HSEM_C1MISR_MISF27 HSEM_C1MISR_MISF27_Msk /*!<semaphore 27 interrupt 0 masked status bit. */
  11989. #define HSEM_C1MISR_MISF28_Pos (28U)
  11990. #define HSEM_C1MISR_MISF28_Msk (0x1UL << HSEM_C1MISR_MISF28_Pos) /*!< 0x10000000 */
  11991. #define HSEM_C1MISR_MISF28 HSEM_C1MISR_MISF28_Msk /*!<semaphore 28 interrupt 0 masked status bit. */
  11992. #define HSEM_C1MISR_MISF29_Pos (29U)
  11993. #define HSEM_C1MISR_MISF29_Msk (0x1UL << HSEM_C1MISR_MISF29_Pos) /*!< 0x20000000 */
  11994. #define HSEM_C1MISR_MISF29 HSEM_C1MISR_MISF29_Msk /*!<semaphore 29 interrupt 0 masked status bit. */
  11995. #define HSEM_C1MISR_MISF30_Pos (30U)
  11996. #define HSEM_C1MISR_MISF30_Msk (0x1UL << HSEM_C1MISR_MISF30_Pos) /*!< 0x40000000 */
  11997. #define HSEM_C1MISR_MISF30 HSEM_C1MISR_MISF30_Msk /*!<semaphore 30 interrupt 0 masked status bit. */
  11998. #define HSEM_C1MISR_MISF31_Pos (31U)
  11999. #define HSEM_C1MISR_MISF31_Msk (0x1UL << HSEM_C1MISR_MISF31_Pos) /*!< 0x80000000 */
  12000. #define HSEM_C1MISR_MISF31 HSEM_C1MISR_MISF31_Msk /*!<semaphore 31 interrupt 0 masked status bit. */
  12001. /******************** Bit definition for HSEM_CR register *****************/
  12002. #define HSEM_CR_COREID_Pos (8U)
  12003. #define HSEM_CR_COREID_Msk (0xFFUL << HSEM_CR_COREID_Pos) /*!< 0x0000FF00 */
  12004. #define HSEM_CR_COREID HSEM_CR_COREID_Msk /*!<CoreID of semaphores to be cleared. */
  12005. #define HSEM_CR_KEY_Pos (16U)
  12006. #define HSEM_CR_KEY_Msk (0xFFFFUL << HSEM_CR_KEY_Pos) /*!< 0xFFFF0000 */
  12007. #define HSEM_CR_KEY HSEM_CR_KEY_Msk /*!<semaphores clear key. */
  12008. /******************** Bit definition for HSEM_KEYR register *****************/
  12009. #define HSEM_KEYR_KEY_Pos (16U)
  12010. #define HSEM_KEYR_KEY_Msk (0xFFFFUL << HSEM_KEYR_KEY_Pos) /*!< 0xFFFF0000 */
  12011. #define HSEM_KEYR_KEY HSEM_KEYR_KEY_Msk /*!<semaphores clear key. */
  12012. /******************************************************************************/
  12013. /* */
  12014. /* Inter-integrated Circuit Interface (I2C) */
  12015. /* */
  12016. /******************************************************************************/
  12017. /******************* Bit definition for I2C_CR1 register *******************/
  12018. #define I2C_CR1_PE_Pos (0U)
  12019. #define I2C_CR1_PE_Msk (0x1UL << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  12020. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  12021. #define I2C_CR1_TXIE_Pos (1U)
  12022. #define I2C_CR1_TXIE_Msk (0x1UL << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  12023. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  12024. #define I2C_CR1_RXIE_Pos (2U)
  12025. #define I2C_CR1_RXIE_Msk (0x1UL << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  12026. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  12027. #define I2C_CR1_ADDRIE_Pos (3U)
  12028. #define I2C_CR1_ADDRIE_Msk (0x1UL << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  12029. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  12030. #define I2C_CR1_NACKIE_Pos (4U)
  12031. #define I2C_CR1_NACKIE_Msk (0x1UL << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  12032. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  12033. #define I2C_CR1_STOPIE_Pos (5U)
  12034. #define I2C_CR1_STOPIE_Msk (0x1UL << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  12035. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  12036. #define I2C_CR1_TCIE_Pos (6U)
  12037. #define I2C_CR1_TCIE_Msk (0x1UL << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  12038. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  12039. #define I2C_CR1_ERRIE_Pos (7U)
  12040. #define I2C_CR1_ERRIE_Msk (0x1UL << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  12041. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  12042. #define I2C_CR1_DNF_Pos (8U)
  12043. #define I2C_CR1_DNF_Msk (0xFUL << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  12044. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  12045. #define I2C_CR1_ANFOFF_Pos (12U)
  12046. #define I2C_CR1_ANFOFF_Msk (0x1UL << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  12047. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  12048. #define I2C_CR1_TXDMAEN_Pos (14U)
  12049. #define I2C_CR1_TXDMAEN_Msk (0x1UL << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  12050. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  12051. #define I2C_CR1_RXDMAEN_Pos (15U)
  12052. #define I2C_CR1_RXDMAEN_Msk (0x1UL << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  12053. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  12054. #define I2C_CR1_SBC_Pos (16U)
  12055. #define I2C_CR1_SBC_Msk (0x1UL << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  12056. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  12057. #define I2C_CR1_NOSTRETCH_Pos (17U)
  12058. #define I2C_CR1_NOSTRETCH_Msk (0x1UL << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  12059. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  12060. #define I2C_CR1_WUPEN_Pos (18U)
  12061. #define I2C_CR1_WUPEN_Msk (0x1UL << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  12062. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  12063. #define I2C_CR1_GCEN_Pos (19U)
  12064. #define I2C_CR1_GCEN_Msk (0x1UL << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  12065. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  12066. #define I2C_CR1_SMBHEN_Pos (20U)
  12067. #define I2C_CR1_SMBHEN_Msk (0x1UL << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  12068. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  12069. #define I2C_CR1_SMBDEN_Pos (21U)
  12070. #define I2C_CR1_SMBDEN_Msk (0x1UL << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  12071. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  12072. #define I2C_CR1_ALERTEN_Pos (22U)
  12073. #define I2C_CR1_ALERTEN_Msk (0x1UL << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  12074. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  12075. #define I2C_CR1_PECEN_Pos (23U)
  12076. #define I2C_CR1_PECEN_Msk (0x1UL << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  12077. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  12078. /****************** Bit definition for I2C_CR2 register ********************/
  12079. #define I2C_CR2_SADD_Pos (0U)
  12080. #define I2C_CR2_SADD_Msk (0x3FFUL << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  12081. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  12082. #define I2C_CR2_RD_WRN_Pos (10U)
  12083. #define I2C_CR2_RD_WRN_Msk (0x1UL << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  12084. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  12085. #define I2C_CR2_ADD10_Pos (11U)
  12086. #define I2C_CR2_ADD10_Msk (0x1UL << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  12087. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  12088. #define I2C_CR2_HEAD10R_Pos (12U)
  12089. #define I2C_CR2_HEAD10R_Msk (0x1UL << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  12090. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  12091. #define I2C_CR2_START_Pos (13U)
  12092. #define I2C_CR2_START_Msk (0x1UL << I2C_CR2_START_Pos) /*!< 0x00002000 */
  12093. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  12094. #define I2C_CR2_STOP_Pos (14U)
  12095. #define I2C_CR2_STOP_Msk (0x1UL << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  12096. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  12097. #define I2C_CR2_NACK_Pos (15U)
  12098. #define I2C_CR2_NACK_Msk (0x1UL << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  12099. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  12100. #define I2C_CR2_NBYTES_Pos (16U)
  12101. #define I2C_CR2_NBYTES_Msk (0xFFUL << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  12102. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  12103. #define I2C_CR2_RELOAD_Pos (24U)
  12104. #define I2C_CR2_RELOAD_Msk (0x1UL << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  12105. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  12106. #define I2C_CR2_AUTOEND_Pos (25U)
  12107. #define I2C_CR2_AUTOEND_Msk (0x1UL << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  12108. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  12109. #define I2C_CR2_PECBYTE_Pos (26U)
  12110. #define I2C_CR2_PECBYTE_Msk (0x1UL << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  12111. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  12112. /******************* Bit definition for I2C_OAR1 register ******************/
  12113. #define I2C_OAR1_OA1_Pos (0U)
  12114. #define I2C_OAR1_OA1_Msk (0x3FFUL << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  12115. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  12116. #define I2C_OAR1_OA1MODE_Pos (10U)
  12117. #define I2C_OAR1_OA1MODE_Msk (0x1UL << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  12118. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  12119. #define I2C_OAR1_OA1EN_Pos (15U)
  12120. #define I2C_OAR1_OA1EN_Msk (0x1UL << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  12121. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  12122. /******************* Bit definition for I2C_OAR2 register ******************/
  12123. #define I2C_OAR2_OA2_Pos (1U)
  12124. #define I2C_OAR2_OA2_Msk (0x7FUL << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  12125. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  12126. #define I2C_OAR2_OA2MSK_Pos (8U)
  12127. #define I2C_OAR2_OA2MSK_Msk (0x7UL << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  12128. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  12129. #define I2C_OAR2_OA2NOMASK 0x00000000UL /*!< No mask */
  12130. #define I2C_OAR2_OA2MASK01_Pos (8U)
  12131. #define I2C_OAR2_OA2MASK01_Msk (0x1UL << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */
  12132. #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */
  12133. #define I2C_OAR2_OA2MASK02_Pos (9U)
  12134. #define I2C_OAR2_OA2MASK02_Msk (0x1UL << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */
  12135. #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
  12136. #define I2C_OAR2_OA2MASK03_Pos (8U)
  12137. #define I2C_OAR2_OA2MASK03_Msk (0x3UL << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */
  12138. #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
  12139. #define I2C_OAR2_OA2MASK04_Pos (10U)
  12140. #define I2C_OAR2_OA2MASK04_Msk (0x1UL << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */
  12141. #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
  12142. #define I2C_OAR2_OA2MASK05_Pos (8U)
  12143. #define I2C_OAR2_OA2MASK05_Msk (0x5UL << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */
  12144. #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
  12145. #define I2C_OAR2_OA2MASK06_Pos (9U)
  12146. #define I2C_OAR2_OA2MASK06_Msk (0x3UL << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */
  12147. #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */
  12148. #define I2C_OAR2_OA2MASK07_Pos (8U)
  12149. #define I2C_OAR2_OA2MASK07_Msk (0x7UL << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */
  12150. #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */
  12151. #define I2C_OAR2_OA2EN_Pos (15U)
  12152. #define I2C_OAR2_OA2EN_Msk (0x1UL << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  12153. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  12154. /******************* Bit definition for I2C_TIMINGR register *******************/
  12155. #define I2C_TIMINGR_SCLL_Pos (0U)
  12156. #define I2C_TIMINGR_SCLL_Msk (0xFFUL << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  12157. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  12158. #define I2C_TIMINGR_SCLH_Pos (8U)
  12159. #define I2C_TIMINGR_SCLH_Msk (0xFFUL << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  12160. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  12161. #define I2C_TIMINGR_SDADEL_Pos (16U)
  12162. #define I2C_TIMINGR_SDADEL_Msk (0xFUL << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  12163. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  12164. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  12165. #define I2C_TIMINGR_SCLDEL_Msk (0xFUL << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  12166. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  12167. #define I2C_TIMINGR_PRESC_Pos (28U)
  12168. #define I2C_TIMINGR_PRESC_Msk (0xFUL << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  12169. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  12170. /******************* Bit definition for I2C_TIMEOUTR register *******************/
  12171. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  12172. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFUL << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  12173. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  12174. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  12175. #define I2C_TIMEOUTR_TIDLE_Msk (0x1UL << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  12176. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  12177. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  12178. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1UL << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  12179. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  12180. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  12181. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFUL << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  12182. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  12183. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  12184. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1UL << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  12185. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  12186. /****************** Bit definition for I2C_ISR register *********************/
  12187. #define I2C_ISR_TXE_Pos (0U)
  12188. #define I2C_ISR_TXE_Msk (0x1UL << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  12189. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  12190. #define I2C_ISR_TXIS_Pos (1U)
  12191. #define I2C_ISR_TXIS_Msk (0x1UL << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  12192. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  12193. #define I2C_ISR_RXNE_Pos (2U)
  12194. #define I2C_ISR_RXNE_Msk (0x1UL << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  12195. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  12196. #define I2C_ISR_ADDR_Pos (3U)
  12197. #define I2C_ISR_ADDR_Msk (0x1UL << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  12198. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  12199. #define I2C_ISR_NACKF_Pos (4U)
  12200. #define I2C_ISR_NACKF_Msk (0x1UL << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  12201. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  12202. #define I2C_ISR_STOPF_Pos (5U)
  12203. #define I2C_ISR_STOPF_Msk (0x1UL << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  12204. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  12205. #define I2C_ISR_TC_Pos (6U)
  12206. #define I2C_ISR_TC_Msk (0x1UL << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  12207. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  12208. #define I2C_ISR_TCR_Pos (7U)
  12209. #define I2C_ISR_TCR_Msk (0x1UL << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  12210. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  12211. #define I2C_ISR_BERR_Pos (8U)
  12212. #define I2C_ISR_BERR_Msk (0x1UL << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  12213. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  12214. #define I2C_ISR_ARLO_Pos (9U)
  12215. #define I2C_ISR_ARLO_Msk (0x1UL << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  12216. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  12217. #define I2C_ISR_OVR_Pos (10U)
  12218. #define I2C_ISR_OVR_Msk (0x1UL << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  12219. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  12220. #define I2C_ISR_PECERR_Pos (11U)
  12221. #define I2C_ISR_PECERR_Msk (0x1UL << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  12222. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  12223. #define I2C_ISR_TIMEOUT_Pos (12U)
  12224. #define I2C_ISR_TIMEOUT_Msk (0x1UL << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  12225. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  12226. #define I2C_ISR_ALERT_Pos (13U)
  12227. #define I2C_ISR_ALERT_Msk (0x1UL << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  12228. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  12229. #define I2C_ISR_BUSY_Pos (15U)
  12230. #define I2C_ISR_BUSY_Msk (0x1UL << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  12231. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  12232. #define I2C_ISR_DIR_Pos (16U)
  12233. #define I2C_ISR_DIR_Msk (0x1UL << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  12234. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  12235. #define I2C_ISR_ADDCODE_Pos (17U)
  12236. #define I2C_ISR_ADDCODE_Msk (0x7FUL << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  12237. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  12238. /****************** Bit definition for I2C_ICR register *********************/
  12239. #define I2C_ICR_ADDRCF_Pos (3U)
  12240. #define I2C_ICR_ADDRCF_Msk (0x1UL << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  12241. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  12242. #define I2C_ICR_NACKCF_Pos (4U)
  12243. #define I2C_ICR_NACKCF_Msk (0x1UL << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  12244. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  12245. #define I2C_ICR_STOPCF_Pos (5U)
  12246. #define I2C_ICR_STOPCF_Msk (0x1UL << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  12247. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  12248. #define I2C_ICR_BERRCF_Pos (8U)
  12249. #define I2C_ICR_BERRCF_Msk (0x1UL << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  12250. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  12251. #define I2C_ICR_ARLOCF_Pos (9U)
  12252. #define I2C_ICR_ARLOCF_Msk (0x1UL << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  12253. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  12254. #define I2C_ICR_OVRCF_Pos (10U)
  12255. #define I2C_ICR_OVRCF_Msk (0x1UL << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  12256. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  12257. #define I2C_ICR_PECCF_Pos (11U)
  12258. #define I2C_ICR_PECCF_Msk (0x1UL << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  12259. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  12260. #define I2C_ICR_TIMOUTCF_Pos (12U)
  12261. #define I2C_ICR_TIMOUTCF_Msk (0x1UL << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  12262. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  12263. #define I2C_ICR_ALERTCF_Pos (13U)
  12264. #define I2C_ICR_ALERTCF_Msk (0x1UL << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  12265. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  12266. /****************** Bit definition for I2C_PECR register *********************/
  12267. #define I2C_PECR_PEC_Pos (0U)
  12268. #define I2C_PECR_PEC_Msk (0xFFUL << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  12269. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  12270. /****************** Bit definition for I2C_RXDR register *********************/
  12271. #define I2C_RXDR_RXDATA_Pos (0U)
  12272. #define I2C_RXDR_RXDATA_Msk (0xFFUL << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  12273. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  12274. /****************** Bit definition for I2C_TXDR register *********************/
  12275. #define I2C_TXDR_TXDATA_Pos (0U)
  12276. #define I2C_TXDR_TXDATA_Msk (0xFFUL << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  12277. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  12278. /******************************************************************************/
  12279. /* */
  12280. /* Independent WATCHDOG */
  12281. /* */
  12282. /******************************************************************************/
  12283. /******************* Bit definition for IWDG_KR register ********************/
  12284. #define IWDG_KR_KEY_Pos (0U)
  12285. #define IWDG_KR_KEY_Msk (0xFFFFUL << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */
  12286. #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!<Key value (write only, read 0000h) */
  12287. /******************* Bit definition for IWDG_PR register ********************/
  12288. #define IWDG_PR_PR_Pos (0U)
  12289. #define IWDG_PR_PR_Msk (0x7UL << IWDG_PR_PR_Pos) /*!< 0x00000007 */
  12290. #define IWDG_PR_PR IWDG_PR_PR_Msk /*!<PR[2:0] (Prescaler divider) */
  12291. #define IWDG_PR_PR_0 (0x1UL << IWDG_PR_PR_Pos) /*!< 0x00000001 */
  12292. #define IWDG_PR_PR_1 (0x2UL << IWDG_PR_PR_Pos) /*!< 0x00000002 */
  12293. #define IWDG_PR_PR_2 (0x4UL << IWDG_PR_PR_Pos) /*!< 0x00000004 */
  12294. /******************* Bit definition for IWDG_RLR register *******************/
  12295. #define IWDG_RLR_RL_Pos (0U)
  12296. #define IWDG_RLR_RL_Msk (0xFFFUL << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */
  12297. #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!<Watchdog counter reload value */
  12298. /******************* Bit definition for IWDG_SR register ********************/
  12299. #define IWDG_SR_PVU_Pos (0U)
  12300. #define IWDG_SR_PVU_Msk (0x1UL << IWDG_SR_PVU_Pos) /*!< 0x00000001 */
  12301. #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */
  12302. #define IWDG_SR_RVU_Pos (1U)
  12303. #define IWDG_SR_RVU_Msk (0x1UL << IWDG_SR_RVU_Pos) /*!< 0x00000002 */
  12304. #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */
  12305. #define IWDG_SR_WVU_Pos (2U)
  12306. #define IWDG_SR_WVU_Msk (0x1UL << IWDG_SR_WVU_Pos) /*!< 0x00000004 */
  12307. #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */
  12308. /******************* Bit definition for IWDG_KR register ********************/
  12309. #define IWDG_WINR_WIN_Pos (0U)
  12310. #define IWDG_WINR_WIN_Msk (0xFFFUL << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */
  12311. #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */
  12312. /******************************************************************************/
  12313. /* */
  12314. /* LCD-TFT Display Controller (LTDC) */
  12315. /* */
  12316. /******************************************************************************/
  12317. /******************** Bit definition for LTDC_SSCR register *****************/
  12318. #define LTDC_SSCR_VSH_Pos (0U)
  12319. #define LTDC_SSCR_VSH_Msk (0x7FFUL << LTDC_SSCR_VSH_Pos) /*!< 0x000007FF */
  12320. #define LTDC_SSCR_VSH LTDC_SSCR_VSH_Msk /*!< Vertical Synchronization Height */
  12321. #define LTDC_SSCR_HSW_Pos (16U)
  12322. #define LTDC_SSCR_HSW_Msk (0xFFFUL << LTDC_SSCR_HSW_Pos) /*!< 0x0FFF0000 */
  12323. #define LTDC_SSCR_HSW LTDC_SSCR_HSW_Msk /*!< Horizontal Synchronization Width */
  12324. /******************** Bit definition for LTDC_BPCR register *****************/
  12325. #define LTDC_BPCR_AVBP_Pos (0U)
  12326. #define LTDC_BPCR_AVBP_Msk (0x7FFUL << LTDC_BPCR_AVBP_Pos) /*!< 0x000007FF */
  12327. #define LTDC_BPCR_AVBP LTDC_BPCR_AVBP_Msk /*!< Accumulated Vertical Back Porch */
  12328. #define LTDC_BPCR_AHBP_Pos (16U)
  12329. #define LTDC_BPCR_AHBP_Msk (0xFFFUL << LTDC_BPCR_AHBP_Pos) /*!< 0x0FFF0000 */
  12330. #define LTDC_BPCR_AHBP LTDC_BPCR_AHBP_Msk /*!< Accumulated Horizontal Back Porch */
  12331. /******************** Bit definition for LTDC_AWCR register *****************/
  12332. #define LTDC_AWCR_AAH_Pos (0U)
  12333. #define LTDC_AWCR_AAH_Msk (0x7FFUL << LTDC_AWCR_AAH_Pos) /*!< 0x000007FF */
  12334. #define LTDC_AWCR_AAH LTDC_AWCR_AAH_Msk /*!< Accumulated Active height */
  12335. #define LTDC_AWCR_AAW_Pos (16U)
  12336. #define LTDC_AWCR_AAW_Msk (0xFFFUL << LTDC_AWCR_AAW_Pos) /*!< 0x0FFF0000 */
  12337. #define LTDC_AWCR_AAW LTDC_AWCR_AAW_Msk /*!< Accumulated Active Width */
  12338. /******************** Bit definition for LTDC_TWCR register *****************/
  12339. #define LTDC_TWCR_TOTALH_Pos (0U)
  12340. #define LTDC_TWCR_TOTALH_Msk (0x7FFUL << LTDC_TWCR_TOTALH_Pos) /*!< 0x000007FF */
  12341. #define LTDC_TWCR_TOTALH LTDC_TWCR_TOTALH_Msk /*!< Total height */
  12342. #define LTDC_TWCR_TOTALW_Pos (16U)
  12343. #define LTDC_TWCR_TOTALW_Msk (0xFFFUL << LTDC_TWCR_TOTALW_Pos) /*!< 0x0FFF0000 */
  12344. #define LTDC_TWCR_TOTALW LTDC_TWCR_TOTALW_Msk /*!< Total Width */
  12345. /******************** Bit definition for LTDC_GCR register ******************/
  12346. #define LTDC_GCR_LTDCEN_Pos (0U)
  12347. #define LTDC_GCR_LTDCEN_Msk (0x1UL << LTDC_GCR_LTDCEN_Pos) /*!< 0x00000001 */
  12348. #define LTDC_GCR_LTDCEN LTDC_GCR_LTDCEN_Msk /*!< LCD-TFT controller enable bit */
  12349. #define LTDC_GCR_DBW_Pos (4U)
  12350. #define LTDC_GCR_DBW_Msk (0x7UL << LTDC_GCR_DBW_Pos) /*!< 0x00000070 */
  12351. #define LTDC_GCR_DBW LTDC_GCR_DBW_Msk /*!< Dither Blue Width */
  12352. #define LTDC_GCR_DGW_Pos (8U)
  12353. #define LTDC_GCR_DGW_Msk (0x7UL << LTDC_GCR_DGW_Pos) /*!< 0x00000700 */
  12354. #define LTDC_GCR_DGW LTDC_GCR_DGW_Msk /*!< Dither Green Width */
  12355. #define LTDC_GCR_DRW_Pos (12U)
  12356. #define LTDC_GCR_DRW_Msk (0x7UL << LTDC_GCR_DRW_Pos) /*!< 0x00007000 */
  12357. #define LTDC_GCR_DRW LTDC_GCR_DRW_Msk /*!< Dither Red Width */
  12358. #define LTDC_GCR_DEN_Pos (16U)
  12359. #define LTDC_GCR_DEN_Msk (0x1UL << LTDC_GCR_DEN_Pos) /*!< 0x00010000 */
  12360. #define LTDC_GCR_DEN LTDC_GCR_DEN_Msk /*!< Dither Enable */
  12361. #define LTDC_GCR_PCPOL_Pos (28U)
  12362. #define LTDC_GCR_PCPOL_Msk (0x1UL << LTDC_GCR_PCPOL_Pos) /*!< 0x10000000 */
  12363. #define LTDC_GCR_PCPOL LTDC_GCR_PCPOL_Msk /*!< Pixel Clock Polarity */
  12364. #define LTDC_GCR_DEPOL_Pos (29U)
  12365. #define LTDC_GCR_DEPOL_Msk (0x1UL << LTDC_GCR_DEPOL_Pos) /*!< 0x20000000 */
  12366. #define LTDC_GCR_DEPOL LTDC_GCR_DEPOL_Msk /*!< Data Enable Polarity */
  12367. #define LTDC_GCR_VSPOL_Pos (30U)
  12368. #define LTDC_GCR_VSPOL_Msk (0x1UL << LTDC_GCR_VSPOL_Pos) /*!< 0x40000000 */
  12369. #define LTDC_GCR_VSPOL LTDC_GCR_VSPOL_Msk /*!< Vertical Synchronization Polarity */
  12370. #define LTDC_GCR_HSPOL_Pos (31U)
  12371. #define LTDC_GCR_HSPOL_Msk (0x1UL << LTDC_GCR_HSPOL_Pos) /*!< 0x80000000 */
  12372. #define LTDC_GCR_HSPOL LTDC_GCR_HSPOL_Msk /*!< Horizontal Synchronization Polarity */
  12373. /******************** Bit definition for LTDC_SRCR register *****************/
  12374. #define LTDC_SRCR_IMR_Pos (0U)
  12375. #define LTDC_SRCR_IMR_Msk (0x1UL << LTDC_SRCR_IMR_Pos) /*!< 0x00000001 */
  12376. #define LTDC_SRCR_IMR LTDC_SRCR_IMR_Msk /*!< Immediate Reload */
  12377. #define LTDC_SRCR_VBR_Pos (1U)
  12378. #define LTDC_SRCR_VBR_Msk (0x1UL << LTDC_SRCR_VBR_Pos) /*!< 0x00000002 */
  12379. #define LTDC_SRCR_VBR LTDC_SRCR_VBR_Msk /*!< Vertical Blanking Reload */
  12380. /******************** Bit definition for LTDC_BCCR register *****************/
  12381. #define LTDC_BCCR_BCBLUE_Pos (0U)
  12382. #define LTDC_BCCR_BCBLUE_Msk (0xFFUL << LTDC_BCCR_BCBLUE_Pos) /*!< 0x000000FF */
  12383. #define LTDC_BCCR_BCBLUE LTDC_BCCR_BCBLUE_Msk /*!< Background Blue value */
  12384. #define LTDC_BCCR_BCGREEN_Pos (8U)
  12385. #define LTDC_BCCR_BCGREEN_Msk (0xFFUL << LTDC_BCCR_BCGREEN_Pos) /*!< 0x0000FF00 */
  12386. #define LTDC_BCCR_BCGREEN LTDC_BCCR_BCGREEN_Msk /*!< Background Green value */
  12387. #define LTDC_BCCR_BCRED_Pos (16U)
  12388. #define LTDC_BCCR_BCRED_Msk (0xFFUL << LTDC_BCCR_BCRED_Pos) /*!< 0x00FF0000 */
  12389. #define LTDC_BCCR_BCRED LTDC_BCCR_BCRED_Msk /*!< Background Red value */
  12390. /******************** Bit definition for LTDC_IER register ******************/
  12391. #define LTDC_IER_LIE_Pos (0U)
  12392. #define LTDC_IER_LIE_Msk (0x1UL << LTDC_IER_LIE_Pos) /*!< 0x00000001 */
  12393. #define LTDC_IER_LIE LTDC_IER_LIE_Msk /*!< Line Interrupt Enable */
  12394. #define LTDC_IER_FUIE_Pos (1U)
  12395. #define LTDC_IER_FUIE_Msk (0x1UL << LTDC_IER_FUIE_Pos) /*!< 0x00000002 */
  12396. #define LTDC_IER_FUIE LTDC_IER_FUIE_Msk /*!< FIFO Underrun Interrupt Enable */
  12397. #define LTDC_IER_TERRIE_Pos (2U)
  12398. #define LTDC_IER_TERRIE_Msk (0x1UL << LTDC_IER_TERRIE_Pos) /*!< 0x00000004 */
  12399. #define LTDC_IER_TERRIE LTDC_IER_TERRIE_Msk /*!< Transfer Error Interrupt Enable */
  12400. #define LTDC_IER_RRIE_Pos (3U)
  12401. #define LTDC_IER_RRIE_Msk (0x1UL << LTDC_IER_RRIE_Pos) /*!< 0x00000008 */
  12402. #define LTDC_IER_RRIE LTDC_IER_RRIE_Msk /*!< Register Reload interrupt enable */
  12403. /******************** Bit definition for LTDC_ISR register ******************/
  12404. #define LTDC_ISR_LIF_Pos (0U)
  12405. #define LTDC_ISR_LIF_Msk (0x1UL << LTDC_ISR_LIF_Pos) /*!< 0x00000001 */
  12406. #define LTDC_ISR_LIF LTDC_ISR_LIF_Msk /*!< Line Interrupt Flag */
  12407. #define LTDC_ISR_FUIF_Pos (1U)
  12408. #define LTDC_ISR_FUIF_Msk (0x1UL << LTDC_ISR_FUIF_Pos) /*!< 0x00000002 */
  12409. #define LTDC_ISR_FUIF LTDC_ISR_FUIF_Msk /*!< FIFO Underrun Interrupt Flag */
  12410. #define LTDC_ISR_TERRIF_Pos (2U)
  12411. #define LTDC_ISR_TERRIF_Msk (0x1UL << LTDC_ISR_TERRIF_Pos) /*!< 0x00000004 */
  12412. #define LTDC_ISR_TERRIF LTDC_ISR_TERRIF_Msk /*!< Transfer Error Interrupt Flag */
  12413. #define LTDC_ISR_RRIF_Pos (3U)
  12414. #define LTDC_ISR_RRIF_Msk (0x1UL << LTDC_ISR_RRIF_Pos) /*!< 0x00000008 */
  12415. #define LTDC_ISR_RRIF LTDC_ISR_RRIF_Msk /*!< Register Reload interrupt Flag */
  12416. /******************** Bit definition for LTDC_ICR register ******************/
  12417. #define LTDC_ICR_CLIF_Pos (0U)
  12418. #define LTDC_ICR_CLIF_Msk (0x1UL << LTDC_ICR_CLIF_Pos) /*!< 0x00000001 */
  12419. #define LTDC_ICR_CLIF LTDC_ICR_CLIF_Msk /*!< Clears the Line Interrupt Flag */
  12420. #define LTDC_ICR_CFUIF_Pos (1U)
  12421. #define LTDC_ICR_CFUIF_Msk (0x1UL << LTDC_ICR_CFUIF_Pos) /*!< 0x00000002 */
  12422. #define LTDC_ICR_CFUIF LTDC_ICR_CFUIF_Msk /*!< Clears the FIFO Underrun Interrupt Flag */
  12423. #define LTDC_ICR_CTERRIF_Pos (2U)
  12424. #define LTDC_ICR_CTERRIF_Msk (0x1UL << LTDC_ICR_CTERRIF_Pos) /*!< 0x00000004 */
  12425. #define LTDC_ICR_CTERRIF LTDC_ICR_CTERRIF_Msk /*!< Clears the Transfer Error Interrupt Flag */
  12426. #define LTDC_ICR_CRRIF_Pos (3U)
  12427. #define LTDC_ICR_CRRIF_Msk (0x1UL << LTDC_ICR_CRRIF_Pos) /*!< 0x00000008 */
  12428. #define LTDC_ICR_CRRIF LTDC_ICR_CRRIF_Msk /*!< Clears Register Reload interrupt Flag */
  12429. /******************** Bit definition for LTDC_LIPCR register ****************/
  12430. #define LTDC_LIPCR_LIPOS_Pos (0U)
  12431. #define LTDC_LIPCR_LIPOS_Msk (0x7FFUL << LTDC_LIPCR_LIPOS_Pos) /*!< 0x000007FF */
  12432. #define LTDC_LIPCR_LIPOS LTDC_LIPCR_LIPOS_Msk /*!< Line Interrupt Position */
  12433. /******************** Bit definition for LTDC_CPSR register *****************/
  12434. #define LTDC_CPSR_CYPOS_Pos (0U)
  12435. #define LTDC_CPSR_CYPOS_Msk (0xFFFFUL << LTDC_CPSR_CYPOS_Pos) /*!< 0x0000FFFF */
  12436. #define LTDC_CPSR_CYPOS LTDC_CPSR_CYPOS_Msk /*!< Current Y Position */
  12437. #define LTDC_CPSR_CXPOS_Pos (16U)
  12438. #define LTDC_CPSR_CXPOS_Msk (0xFFFFUL << LTDC_CPSR_CXPOS_Pos) /*!< 0xFFFF0000 */
  12439. #define LTDC_CPSR_CXPOS LTDC_CPSR_CXPOS_Msk /*!< Current X Position */
  12440. /******************** Bit definition for LTDC_CDSR register *****************/
  12441. #define LTDC_CDSR_VDES_Pos (0U)
  12442. #define LTDC_CDSR_VDES_Msk (0x1UL << LTDC_CDSR_VDES_Pos) /*!< 0x00000001 */
  12443. #define LTDC_CDSR_VDES LTDC_CDSR_VDES_Msk /*!< Vertical Data Enable Status */
  12444. #define LTDC_CDSR_HDES_Pos (1U)
  12445. #define LTDC_CDSR_HDES_Msk (0x1UL << LTDC_CDSR_HDES_Pos) /*!< 0x00000002 */
  12446. #define LTDC_CDSR_HDES LTDC_CDSR_HDES_Msk /*!< Horizontal Data Enable Status */
  12447. #define LTDC_CDSR_VSYNCS_Pos (2U)
  12448. #define LTDC_CDSR_VSYNCS_Msk (0x1UL << LTDC_CDSR_VSYNCS_Pos) /*!< 0x00000004 */
  12449. #define LTDC_CDSR_VSYNCS LTDC_CDSR_VSYNCS_Msk /*!< Vertical Synchronization Status */
  12450. #define LTDC_CDSR_HSYNCS_Pos (3U)
  12451. #define LTDC_CDSR_HSYNCS_Msk (0x1UL << LTDC_CDSR_HSYNCS_Pos) /*!< 0x00000008 */
  12452. #define LTDC_CDSR_HSYNCS LTDC_CDSR_HSYNCS_Msk /*!< Horizontal Synchronization Status */
  12453. /******************** Bit definition for LTDC_LxCR register *****************/
  12454. #define LTDC_LxCR_LEN_Pos (0U)
  12455. #define LTDC_LxCR_LEN_Msk (0x1UL << LTDC_LxCR_LEN_Pos) /*!< 0x00000001 */
  12456. #define LTDC_LxCR_LEN LTDC_LxCR_LEN_Msk /*!< Layer Enable */
  12457. #define LTDC_LxCR_COLKEN_Pos (1U)
  12458. #define LTDC_LxCR_COLKEN_Msk (0x1UL << LTDC_LxCR_COLKEN_Pos) /*!< 0x00000002 */
  12459. #define LTDC_LxCR_COLKEN LTDC_LxCR_COLKEN_Msk /*!< Color Keying Enable */
  12460. #define LTDC_LxCR_CLUTEN_Pos (4U)
  12461. #define LTDC_LxCR_CLUTEN_Msk (0x1UL << LTDC_LxCR_CLUTEN_Pos) /*!< 0x00000010 */
  12462. #define LTDC_LxCR_CLUTEN LTDC_LxCR_CLUTEN_Msk /*!< Color Lockup Table Enable */
  12463. /******************** Bit definition for LTDC_LxWHPCR register **************/
  12464. #define LTDC_LxWHPCR_WHSTPOS_Pos (0U)
  12465. #define LTDC_LxWHPCR_WHSTPOS_Msk (0xFFFUL << LTDC_LxWHPCR_WHSTPOS_Pos) /*!< 0x00000FFF */
  12466. #define LTDC_LxWHPCR_WHSTPOS LTDC_LxWHPCR_WHSTPOS_Msk /*!< Window Horizontal Start Position */
  12467. #define LTDC_LxWHPCR_WHSPPOS_Pos (16U)
  12468. #define LTDC_LxWHPCR_WHSPPOS_Msk (0xFFFFUL << LTDC_LxWHPCR_WHSPPOS_Pos) /*!< 0xFFFF0000 */
  12469. #define LTDC_LxWHPCR_WHSPPOS LTDC_LxWHPCR_WHSPPOS_Msk /*!< Window Horizontal Stop Position */
  12470. /******************** Bit definition for LTDC_LxWVPCR register **************/
  12471. #define LTDC_LxWVPCR_WVSTPOS_Pos (0U)
  12472. #define LTDC_LxWVPCR_WVSTPOS_Msk (0xFFFUL << LTDC_LxWVPCR_WVSTPOS_Pos) /*!< 0x00000FFF */
  12473. #define LTDC_LxWVPCR_WVSTPOS LTDC_LxWVPCR_WVSTPOS_Msk /*!< Window Vertical Start Position */
  12474. #define LTDC_LxWVPCR_WVSPPOS_Pos (16U)
  12475. #define LTDC_LxWVPCR_WVSPPOS_Msk (0xFFFFUL << LTDC_LxWVPCR_WVSPPOS_Pos) /*!< 0xFFFF0000 */
  12476. #define LTDC_LxWVPCR_WVSPPOS LTDC_LxWVPCR_WVSPPOS_Msk /*!< Window Vertical Stop Position */
  12477. /******************** Bit definition for LTDC_LxCKCR register ***************/
  12478. #define LTDC_LxCKCR_CKBLUE_Pos (0U)
  12479. #define LTDC_LxCKCR_CKBLUE_Msk (0xFFUL << LTDC_LxCKCR_CKBLUE_Pos) /*!< 0x000000FF */
  12480. #define LTDC_LxCKCR_CKBLUE LTDC_LxCKCR_CKBLUE_Msk /*!< Color Key Blue value */
  12481. #define LTDC_LxCKCR_CKGREEN_Pos (8U)
  12482. #define LTDC_LxCKCR_CKGREEN_Msk (0xFFUL << LTDC_LxCKCR_CKGREEN_Pos) /*!< 0x0000FF00 */
  12483. #define LTDC_LxCKCR_CKGREEN LTDC_LxCKCR_CKGREEN_Msk /*!< Color Key Green value */
  12484. #define LTDC_LxCKCR_CKRED_Pos (16U)
  12485. #define LTDC_LxCKCR_CKRED_Msk (0xFFUL << LTDC_LxCKCR_CKRED_Pos) /*!< 0x00FF0000 */
  12486. #define LTDC_LxCKCR_CKRED LTDC_LxCKCR_CKRED_Msk /*!< Color Key Red value */
  12487. /******************** Bit definition for LTDC_LxPFCR register ***************/
  12488. #define LTDC_LxPFCR_PF_Pos (0U)
  12489. #define LTDC_LxPFCR_PF_Msk (0x7UL << LTDC_LxPFCR_PF_Pos) /*!< 0x00000007 */
  12490. #define LTDC_LxPFCR_PF LTDC_LxPFCR_PF_Msk /*!< Pixel Format */
  12491. /******************** Bit definition for LTDC_LxCACR register ***************/
  12492. #define LTDC_LxCACR_CONSTA_Pos (0U)
  12493. #define LTDC_LxCACR_CONSTA_Msk (0xFFUL << LTDC_LxCACR_CONSTA_Pos) /*!< 0x000000FF */
  12494. #define LTDC_LxCACR_CONSTA LTDC_LxCACR_CONSTA_Msk /*!< Constant Alpha */
  12495. /******************** Bit definition for LTDC_LxDCCR register ***************/
  12496. #define LTDC_LxDCCR_DCBLUE_Pos (0U)
  12497. #define LTDC_LxDCCR_DCBLUE_Msk (0xFFUL << LTDC_LxDCCR_DCBLUE_Pos) /*!< 0x000000FF */
  12498. #define LTDC_LxDCCR_DCBLUE LTDC_LxDCCR_DCBLUE_Msk /*!< Default Color Blue */
  12499. #define LTDC_LxDCCR_DCGREEN_Pos (8U)
  12500. #define LTDC_LxDCCR_DCGREEN_Msk (0xFFUL << LTDC_LxDCCR_DCGREEN_Pos) /*!< 0x0000FF00 */
  12501. #define LTDC_LxDCCR_DCGREEN LTDC_LxDCCR_DCGREEN_Msk /*!< Default Color Green */
  12502. #define LTDC_LxDCCR_DCRED_Pos (16U)
  12503. #define LTDC_LxDCCR_DCRED_Msk (0xFFUL << LTDC_LxDCCR_DCRED_Pos) /*!< 0x00FF0000 */
  12504. #define LTDC_LxDCCR_DCRED LTDC_LxDCCR_DCRED_Msk /*!< Default Color Red */
  12505. #define LTDC_LxDCCR_DCALPHA_Pos (24U)
  12506. #define LTDC_LxDCCR_DCALPHA_Msk (0xFFUL << LTDC_LxDCCR_DCALPHA_Pos) /*!< 0xFF000000 */
  12507. #define LTDC_LxDCCR_DCALPHA LTDC_LxDCCR_DCALPHA_Msk /*!< Default Color Alpha */
  12508. /******************** Bit definition for LTDC_LxBFCR register ***************/
  12509. #define LTDC_LxBFCR_BF2_Pos (0U)
  12510. #define LTDC_LxBFCR_BF2_Msk (0x7UL << LTDC_LxBFCR_BF2_Pos) /*!< 0x00000007 */
  12511. #define LTDC_LxBFCR_BF2 LTDC_LxBFCR_BF2_Msk /*!< Blending Factor 2 */
  12512. #define LTDC_LxBFCR_BF1_Pos (8U)
  12513. #define LTDC_LxBFCR_BF1_Msk (0x7UL << LTDC_LxBFCR_BF1_Pos) /*!< 0x00000700 */
  12514. #define LTDC_LxBFCR_BF1 LTDC_LxBFCR_BF1_Msk /*!< Blending Factor 1 */
  12515. /******************** Bit definition for LTDC_LxCFBAR register **************/
  12516. #define LTDC_LxCFBAR_CFBADD_Pos (0U)
  12517. #define LTDC_LxCFBAR_CFBADD_Msk (0xFFFFFFFFUL << LTDC_LxCFBAR_CFBADD_Pos) /*!< 0xFFFFFFFF */
  12518. #define LTDC_LxCFBAR_CFBADD LTDC_LxCFBAR_CFBADD_Msk /*!< Color Frame Buffer Start Address */
  12519. /******************** Bit definition for LTDC_LxCFBLR register **************/
  12520. #define LTDC_LxCFBLR_CFBLL_Pos (0U)
  12521. #define LTDC_LxCFBLR_CFBLL_Msk (0x1FFFUL << LTDC_LxCFBLR_CFBLL_Pos) /*!< 0x00001FFF */
  12522. #define LTDC_LxCFBLR_CFBLL LTDC_LxCFBLR_CFBLL_Msk /*!< Color Frame Buffer Line Length */
  12523. #define LTDC_LxCFBLR_CFBP_Pos (16U)
  12524. #define LTDC_LxCFBLR_CFBP_Msk (0x1FFFUL << LTDC_LxCFBLR_CFBP_Pos) /*!< 0x1FFF0000 */
  12525. #define LTDC_LxCFBLR_CFBP LTDC_LxCFBLR_CFBP_Msk /*!< Color Frame Buffer Pitch in bytes */
  12526. /******************** Bit definition for LTDC_LxCFBLNR register *************/
  12527. #define LTDC_LxCFBLNR_CFBLNBR_Pos (0U)
  12528. #define LTDC_LxCFBLNR_CFBLNBR_Msk (0x7FFUL << LTDC_LxCFBLNR_CFBLNBR_Pos) /*!< 0x000007FF */
  12529. #define LTDC_LxCFBLNR_CFBLNBR LTDC_LxCFBLNR_CFBLNBR_Msk /*!< Frame Buffer Line Number */
  12530. /******************** Bit definition for LTDC_LxCLUTWR register *************/
  12531. #define LTDC_LxCLUTWR_BLUE_Pos (0U)
  12532. #define LTDC_LxCLUTWR_BLUE_Msk (0xFFUL << LTDC_LxCLUTWR_BLUE_Pos) /*!< 0x000000FF */
  12533. #define LTDC_LxCLUTWR_BLUE LTDC_LxCLUTWR_BLUE_Msk /*!< Blue value */
  12534. #define LTDC_LxCLUTWR_GREEN_Pos (8U)
  12535. #define LTDC_LxCLUTWR_GREEN_Msk (0xFFUL << LTDC_LxCLUTWR_GREEN_Pos) /*!< 0x0000FF00 */
  12536. #define LTDC_LxCLUTWR_GREEN LTDC_LxCLUTWR_GREEN_Msk /*!< Green value */
  12537. #define LTDC_LxCLUTWR_RED_Pos (16U)
  12538. #define LTDC_LxCLUTWR_RED_Msk (0xFFUL << LTDC_LxCLUTWR_RED_Pos) /*!< 0x00FF0000 */
  12539. #define LTDC_LxCLUTWR_RED LTDC_LxCLUTWR_RED_Msk /*!< Red value */
  12540. #define LTDC_LxCLUTWR_CLUTADD_Pos (24U)
  12541. #define LTDC_LxCLUTWR_CLUTADD_Msk (0xFFUL << LTDC_LxCLUTWR_CLUTADD_Pos) /*!< 0xFF000000 */
  12542. #define LTDC_LxCLUTWR_CLUTADD LTDC_LxCLUTWR_CLUTADD_Msk /*!< CLUT address */
  12543. /******************************************************************************/
  12544. /* */
  12545. /* MDMA */
  12546. /* */
  12547. /******************************************************************************/
  12548. /******************** Bit definition for MDMA_GISR0 register ****************/
  12549. #define MDMA_GISR0_GIF0_Pos (0U)
  12550. #define MDMA_GISR0_GIF0_Msk (0x1UL << MDMA_GISR0_GIF0_Pos) /*!< 0x00000001 */
  12551. #define MDMA_GISR0_GIF0 MDMA_GISR0_GIF0_Msk /*!< Channel 0 global interrupt flag */
  12552. #define MDMA_GISR0_GIF1_Pos (1U)
  12553. #define MDMA_GISR0_GIF1_Msk (0x1UL << MDMA_GISR0_GIF1_Pos) /*!< 0x00000002 */
  12554. #define MDMA_GISR0_GIF1 MDMA_GISR0_GIF1_Msk /*!< Channel 1 global interrupt flag */
  12555. #define MDMA_GISR0_GIF2_Pos (2U)
  12556. #define MDMA_GISR0_GIF2_Msk (0x1UL << MDMA_GISR0_GIF2_Pos) /*!< 0x00000004 */
  12557. #define MDMA_GISR0_GIF2 MDMA_GISR0_GIF2_Msk /*!< Channel 2 global interrupt flag */
  12558. #define MDMA_GISR0_GIF3_Pos (3U)
  12559. #define MDMA_GISR0_GIF3_Msk (0x1UL << MDMA_GISR0_GIF3_Pos) /*!< 0x00000008 */
  12560. #define MDMA_GISR0_GIF3 MDMA_GISR0_GIF3_Msk /*!< Channel 3 global interrupt flag */
  12561. #define MDMA_GISR0_GIF4_Pos (4U)
  12562. #define MDMA_GISR0_GIF4_Msk (0x1UL << MDMA_GISR0_GIF4_Pos) /*!< 0x00000010 */
  12563. #define MDMA_GISR0_GIF4 MDMA_GISR0_GIF4_Msk /*!< Channel 4 global interrupt flag */
  12564. #define MDMA_GISR0_GIF5_Pos (5U)
  12565. #define MDMA_GISR0_GIF5_Msk (0x1UL << MDMA_GISR0_GIF5_Pos) /*!< 0x00000020 */
  12566. #define MDMA_GISR0_GIF5 MDMA_GISR0_GIF5_Msk /*!< Channel 5 global interrupt flag */
  12567. #define MDMA_GISR0_GIF6_Pos (6U)
  12568. #define MDMA_GISR0_GIF6_Msk (0x1UL << MDMA_GISR0_GIF6_Pos) /*!< 0x00000040 */
  12569. #define MDMA_GISR0_GIF6 MDMA_GISR0_GIF6_Msk /*!< Channel 6 global interrupt flag */
  12570. #define MDMA_GISR0_GIF7_Pos (7U)
  12571. #define MDMA_GISR0_GIF7_Msk (0x1UL << MDMA_GISR0_GIF7_Pos) /*!< 0x00000080 */
  12572. #define MDMA_GISR0_GIF7 MDMA_GISR0_GIF7_Msk /*!< Channel 7 global interrupt flag */
  12573. #define MDMA_GISR0_GIF8_Pos (8U)
  12574. #define MDMA_GISR0_GIF8_Msk (0x1UL << MDMA_GISR0_GIF8_Pos) /*!< 0x00000100 */
  12575. #define MDMA_GISR0_GIF8 MDMA_GISR0_GIF8_Msk /*!< Channel 8 global interrupt flag */
  12576. #define MDMA_GISR0_GIF9_Pos (9U)
  12577. #define MDMA_GISR0_GIF9_Msk (0x1UL << MDMA_GISR0_GIF9_Pos) /*!< 0x00000200 */
  12578. #define MDMA_GISR0_GIF9 MDMA_GISR0_GIF9_Msk /*!< Channel 9 global interrupt flag */
  12579. #define MDMA_GISR0_GIF10_Pos (10U)
  12580. #define MDMA_GISR0_GIF10_Msk (0x1UL << MDMA_GISR0_GIF10_Pos) /*!< 0x00000400 */
  12581. #define MDMA_GISR0_GIF10 MDMA_GISR0_GIF10_Msk /*!< Channel 10 global interrupt flag */
  12582. #define MDMA_GISR0_GIF11_Pos (11U)
  12583. #define MDMA_GISR0_GIF11_Msk (0x1UL << MDMA_GISR0_GIF11_Pos) /*!< 0x00000800 */
  12584. #define MDMA_GISR0_GIF11 MDMA_GISR0_GIF11_Msk /*!< Channel 11 global interrupt flag */
  12585. #define MDMA_GISR0_GIF12_Pos (12U)
  12586. #define MDMA_GISR0_GIF12_Msk (0x1UL << MDMA_GISR0_GIF12_Pos) /*!< 0x00001000 */
  12587. #define MDMA_GISR0_GIF12 MDMA_GISR0_GIF12_Msk /*!< Channel 12 global interrupt flag */
  12588. #define MDMA_GISR0_GIF13_Pos (13U)
  12589. #define MDMA_GISR0_GIF13_Msk (0x1UL << MDMA_GISR0_GIF13_Pos) /*!< 0x00002000 */
  12590. #define MDMA_GISR0_GIF13 MDMA_GISR0_GIF13_Msk /*!< Channel 13 global interrupt flag */
  12591. #define MDMA_GISR0_GIF14_Pos (14U)
  12592. #define MDMA_GISR0_GIF14_Msk (0x1UL << MDMA_GISR0_GIF14_Pos) /*!< 0x00004000 */
  12593. #define MDMA_GISR0_GIF14 MDMA_GISR0_GIF14_Msk /*!< Channel 14 global interrupt flag */
  12594. #define MDMA_GISR0_GIF15_Pos (15U)
  12595. #define MDMA_GISR0_GIF15_Msk (0x1UL << MDMA_GISR0_GIF15_Pos) /*!< 0x00008000 */
  12596. #define MDMA_GISR0_GIF15 MDMA_GISR0_GIF15_Msk /*!< Channel 15 global interrupt flag */
  12597. /******************** Bit definition for MDMA_CxISR register ****************/
  12598. #define MDMA_CISR_TEIF_Pos (0U)
  12599. #define MDMA_CISR_TEIF_Msk (0x1UL << MDMA_CISR_TEIF_Pos) /*!< 0x00000001 */
  12600. #define MDMA_CISR_TEIF MDMA_CISR_TEIF_Msk /*!< Channel x transfer error interrupt flag */
  12601. #define MDMA_CISR_CTCIF_Pos (1U)
  12602. #define MDMA_CISR_CTCIF_Msk (0x1UL << MDMA_CISR_CTCIF_Pos) /*!< 0x00000002 */
  12603. #define MDMA_CISR_CTCIF MDMA_CISR_CTCIF_Msk /*!< Channel x Channel Transfer Complete interrupt flag */
  12604. #define MDMA_CISR_BRTIF_Pos (2U)
  12605. #define MDMA_CISR_BRTIF_Msk (0x1UL << MDMA_CISR_BRTIF_Pos) /*!< 0x00000004 */
  12606. #define MDMA_CISR_BRTIF MDMA_CISR_BRTIF_Msk /*!< Channel x block repeat transfer complete interrupt flag */
  12607. #define MDMA_CISR_BTIF_Pos (3U)
  12608. #define MDMA_CISR_BTIF_Msk (0x1UL << MDMA_CISR_BTIF_Pos) /*!< 0x00000008 */
  12609. #define MDMA_CISR_BTIF MDMA_CISR_BTIF_Msk /*!< Channel x block transfer complete interrupt flag */
  12610. #define MDMA_CISR_TCIF_Pos (4U)
  12611. #define MDMA_CISR_TCIF_Msk (0x1UL << MDMA_CISR_TCIF_Pos) /*!< 0x00000010 */
  12612. #define MDMA_CISR_TCIF MDMA_CISR_TCIF_Msk /*!< Channel x buffer transfer complete interrupt flag */
  12613. #define MDMA_CISR_CRQA_Pos (16U)
  12614. #define MDMA_CISR_CRQA_Msk (0x1UL << MDMA_CISR_CRQA_Pos) /*!< 0x00010000 */
  12615. #define MDMA_CISR_CRQA MDMA_CISR_CRQA_Msk /*!< Channel x request Active flag */
  12616. /******************** Bit definition for MDMA_CxIFCR register ****************/
  12617. #define MDMA_CIFCR_CTEIF_Pos (0U)
  12618. #define MDMA_CIFCR_CTEIF_Msk (0x1UL << MDMA_CIFCR_CTEIF_Pos) /*!< 0x00000001 */
  12619. #define MDMA_CIFCR_CTEIF MDMA_CIFCR_CTEIF_Msk /*!< Channel x clear transfer error interrupt flag */
  12620. #define MDMA_CIFCR_CCTCIF_Pos (1U)
  12621. #define MDMA_CIFCR_CCTCIF_Msk (0x1UL << MDMA_CIFCR_CCTCIF_Pos) /*!< 0x00000002 */
  12622. #define MDMA_CIFCR_CCTCIF MDMA_CIFCR_CCTCIF_Msk /*!< Clear Channel transfer complete interrupt flag for channel x */
  12623. #define MDMA_CIFCR_CBRTIF_Pos (2U)
  12624. #define MDMA_CIFCR_CBRTIF_Msk (0x1UL << MDMA_CIFCR_CBRTIF_Pos) /*!< 0x00000004 */
  12625. #define MDMA_CIFCR_CBRTIF MDMA_CIFCR_CBRTIF_Msk /*!< Channel x clear block repeat transfer complete interrupt flag */
  12626. #define MDMA_CIFCR_CBTIF_Pos (3U)
  12627. #define MDMA_CIFCR_CBTIF_Msk (0x1UL << MDMA_CIFCR_CBTIF_Pos) /*!< 0x00000008 */
  12628. #define MDMA_CIFCR_CBTIF MDMA_CIFCR_CBTIF_Msk /*!< Channel x Clear block transfer complete interrupt flag */
  12629. #define MDMA_CIFCR_CLTCIF_Pos (4U)
  12630. #define MDMA_CIFCR_CLTCIF_Msk (0x1UL << MDMA_CIFCR_CLTCIF_Pos) /*!< 0x00000010 */
  12631. #define MDMA_CIFCR_CLTCIF MDMA_CIFCR_CLTCIF_Msk /*!< CLear Transfer buffer Complete Interrupt Flag for channel */
  12632. /******************** Bit definition for MDMA_CxESR register ****************/
  12633. #define MDMA_CESR_TEA_Pos (0U)
  12634. #define MDMA_CESR_TEA_Msk (0x7FUL << MDMA_CESR_TEA_Pos) /*!< 0x0000007F */
  12635. #define MDMA_CESR_TEA MDMA_CESR_TEA_Msk /*!< Transfer Error Address */
  12636. #define MDMA_CESR_TED_Pos (7U)
  12637. #define MDMA_CESR_TED_Msk (0x1UL << MDMA_CESR_TED_Pos) /*!< 0x00000080 */
  12638. #define MDMA_CESR_TED MDMA_CESR_TED_Msk /*!< Transfer Error Direction */
  12639. #define MDMA_CESR_TELD_Pos (8U)
  12640. #define MDMA_CESR_TELD_Msk (0x1UL << MDMA_CESR_TELD_Pos) /*!< 0x00000100 */
  12641. #define MDMA_CESR_TELD MDMA_CESR_TELD_Msk /*!< Transfer Error Link Data */
  12642. #define MDMA_CESR_TEMD_Pos (9U)
  12643. #define MDMA_CESR_TEMD_Msk (0x1UL << MDMA_CESR_TEMD_Pos) /*!< 0x00000200 */
  12644. #define MDMA_CESR_TEMD MDMA_CESR_TEMD_Msk /*!< Transfer Error Mask Data */
  12645. #define MDMA_CESR_ASE_Pos (10U)
  12646. #define MDMA_CESR_ASE_Msk (0x1UL << MDMA_CESR_ASE_Pos) /*!< 0x00000400 */
  12647. #define MDMA_CESR_ASE MDMA_CESR_ASE_Msk /*!< Address/Size Error */
  12648. #define MDMA_CESR_BSE_Pos (11U)
  12649. #define MDMA_CESR_BSE_Msk (0x1UL << MDMA_CESR_BSE_Pos) /*!< 0x00000800 */
  12650. #define MDMA_CESR_BSE MDMA_CESR_BSE_Msk /*!< Block Size Error */
  12651. /******************** Bit definition for MDMA_CxCR register ****************/
  12652. #define MDMA_CCR_EN_Pos (0U)
  12653. #define MDMA_CCR_EN_Msk (0x1UL << MDMA_CCR_EN_Pos) /*!< 0x00000001 */
  12654. #define MDMA_CCR_EN MDMA_CCR_EN_Msk /*!< Channel enable / flag channel ready when read low */
  12655. #define MDMA_CCR_TEIE_Pos (1U)
  12656. #define MDMA_CCR_TEIE_Msk (0x1UL << MDMA_CCR_TEIE_Pos) /*!< 0x00000002 */
  12657. #define MDMA_CCR_TEIE MDMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  12658. #define MDMA_CCR_CTCIE_Pos (2U)
  12659. #define MDMA_CCR_CTCIE_Msk (0x1UL << MDMA_CCR_CTCIE_Pos) /*!< 0x00000004 */
  12660. #define MDMA_CCR_CTCIE MDMA_CCR_CTCIE_Msk /*!< Channel Transfer Complete interrupt enable */
  12661. #define MDMA_CCR_BRTIE_Pos (3U)
  12662. #define MDMA_CCR_BRTIE_Msk (0x1UL << MDMA_CCR_BRTIE_Pos) /*!< 0x00000008 */
  12663. #define MDMA_CCR_BRTIE MDMA_CCR_BRTIE_Msk /*!< Block Repeat transfer interrupt enable */
  12664. #define MDMA_CCR_BTIE_Pos (4U)
  12665. #define MDMA_CCR_BTIE_Msk (0x1UL << MDMA_CCR_BTIE_Pos) /*!< 0x00000010 */
  12666. #define MDMA_CCR_BTIE MDMA_CCR_BTIE_Msk /*!< Block Transfer interrupt enable */
  12667. #define MDMA_CCR_TCIE_Pos (5U)
  12668. #define MDMA_CCR_TCIE_Msk (0x1UL << MDMA_CCR_TCIE_Pos) /*!< 0x00000020 */
  12669. #define MDMA_CCR_TCIE MDMA_CCR_TCIE_Msk /*!< buffer Transfer Complete interrupt enable */
  12670. #define MDMA_CCR_PL_Pos (6U)
  12671. #define MDMA_CCR_PL_Msk (0x3UL << MDMA_CCR_PL_Pos) /*!< 0x000000C0 */
  12672. #define MDMA_CCR_PL MDMA_CCR_PL_Msk /*!< Priority level */
  12673. #define MDMA_CCR_PL_0 (0x1UL << MDMA_CCR_PL_Pos) /*!< 0x00000040 */
  12674. #define MDMA_CCR_PL_1 (0x2UL << MDMA_CCR_PL_Pos) /*!< 0x00000080 */
  12675. #define MDMA_CCR_BEX_Pos (12U)
  12676. #define MDMA_CCR_BEX_Msk (0x1UL << MDMA_CCR_BEX_Pos) /*!< 0x00001000 */
  12677. #define MDMA_CCR_BEX MDMA_CCR_BEX_Msk /*!< Byte Endianness eXchange */
  12678. #define MDMA_CCR_HEX_Pos (13U)
  12679. #define MDMA_CCR_HEX_Msk (0x1UL << MDMA_CCR_HEX_Pos) /*!< 0x00002000 */
  12680. #define MDMA_CCR_HEX MDMA_CCR_HEX_Msk /*!< Half word Endianness eXchange */
  12681. #define MDMA_CCR_WEX_Pos (14U)
  12682. #define MDMA_CCR_WEX_Msk (0x1UL << MDMA_CCR_WEX_Pos) /*!< 0x00004000 */
  12683. #define MDMA_CCR_WEX MDMA_CCR_WEX_Msk /*!< Word Endianness eXchange */
  12684. #define MDMA_CCR_SWRQ_Pos (16U)
  12685. #define MDMA_CCR_SWRQ_Msk (0x1UL << MDMA_CCR_SWRQ_Pos) /*!< 0x00010000 */
  12686. #define MDMA_CCR_SWRQ MDMA_CCR_SWRQ_Msk /*!< SW ReQuest */
  12687. /******************** Bit definition for MDMA_CxTCR register ****************/
  12688. #define MDMA_CTCR_SINC_Pos (0U)
  12689. #define MDMA_CTCR_SINC_Msk (0x3UL << MDMA_CTCR_SINC_Pos) /*!< 0x00000003 */
  12690. #define MDMA_CTCR_SINC MDMA_CTCR_SINC_Msk /*!< Source increment mode */
  12691. #define MDMA_CTCR_SINC_0 (0x1UL << MDMA_CTCR_SINC_Pos) /*!< 0x00000001 */
  12692. #define MDMA_CTCR_SINC_1 (0x2UL << MDMA_CTCR_SINC_Pos) /*!< 0x00000002 */
  12693. #define MDMA_CTCR_DINC_Pos (2U)
  12694. #define MDMA_CTCR_DINC_Msk (0x3UL << MDMA_CTCR_DINC_Pos) /*!< 0x0000000C */
  12695. #define MDMA_CTCR_DINC MDMA_CTCR_DINC_Msk /*!< Source increment mode */
  12696. #define MDMA_CTCR_DINC_0 (0x1UL << MDMA_CTCR_DINC_Pos) /*!< 0x00000004 */
  12697. #define MDMA_CTCR_DINC_1 (0x2UL << MDMA_CTCR_DINC_Pos) /*!< 0x00000008 */
  12698. #define MDMA_CTCR_SSIZE_Pos (4U)
  12699. #define MDMA_CTCR_SSIZE_Msk (0x3UL << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000030 */
  12700. #define MDMA_CTCR_SSIZE MDMA_CTCR_SSIZE_Msk /*!< Source data size */
  12701. #define MDMA_CTCR_SSIZE_0 (0x1UL << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000010 */
  12702. #define MDMA_CTCR_SSIZE_1 (0x2UL << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000020 */
  12703. #define MDMA_CTCR_DSIZE_Pos (6U)
  12704. #define MDMA_CTCR_DSIZE_Msk (0x3UL << MDMA_CTCR_DSIZE_Pos) /*!< 0x000000C0 */
  12705. #define MDMA_CTCR_DSIZE MDMA_CTCR_DSIZE_Msk /*!< Destination data size */
  12706. #define MDMA_CTCR_DSIZE_0 (0x1UL << MDMA_CTCR_DSIZE_Pos) /*!< 0x00000040 */
  12707. #define MDMA_CTCR_DSIZE_1 (0x2UL << MDMA_CTCR_DSIZE_Pos) /*!< 0x00000080 */
  12708. #define MDMA_CTCR_SINCOS_Pos (8U)
  12709. #define MDMA_CTCR_SINCOS_Msk (0x3UL << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000300 */
  12710. #define MDMA_CTCR_SINCOS MDMA_CTCR_SINCOS_Msk /*!< Source increment offset size */
  12711. #define MDMA_CTCR_SINCOS_0 (0x1UL << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000100 */
  12712. #define MDMA_CTCR_SINCOS_1 (0x2UL << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000200 */
  12713. #define MDMA_CTCR_DINCOS_Pos (10U)
  12714. #define MDMA_CTCR_DINCOS_Msk (0x3UL << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000C00 */
  12715. #define MDMA_CTCR_DINCOS MDMA_CTCR_DINCOS_Msk /*!< Destination increment offset size */
  12716. #define MDMA_CTCR_DINCOS_0 (0x1UL << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000400 */
  12717. #define MDMA_CTCR_DINCOS_1 (0x2UL << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000800 */
  12718. #define MDMA_CTCR_SBURST_Pos (12U)
  12719. #define MDMA_CTCR_SBURST_Msk (0x7UL << MDMA_CTCR_SBURST_Pos) /*!< 0x00007000 */
  12720. #define MDMA_CTCR_SBURST MDMA_CTCR_SBURST_Msk /*!< Source burst transfer configuration */
  12721. #define MDMA_CTCR_SBURST_0 (0x1UL << MDMA_CTCR_SBURST_Pos) /*!< 0x00001000 */
  12722. #define MDMA_CTCR_SBURST_1 (0x2UL << MDMA_CTCR_SBURST_Pos) /*!< 0x00002000 */
  12723. #define MDMA_CTCR_SBURST_2 (0x4UL << MDMA_CTCR_SBURST_Pos) /*!< 0x00004000 */
  12724. #define MDMA_CTCR_DBURST_Pos (15U)
  12725. #define MDMA_CTCR_DBURST_Msk (0x7UL << MDMA_CTCR_DBURST_Pos) /*!< 0x00038000 */
  12726. #define MDMA_CTCR_DBURST MDMA_CTCR_DBURST_Msk /*!< Destination burst transfer configuration */
  12727. #define MDMA_CTCR_DBURST_0 (0x1UL << MDMA_CTCR_DBURST_Pos) /*!< 0x00008000 */
  12728. #define MDMA_CTCR_DBURST_1 (0x2UL << MDMA_CTCR_DBURST_Pos) /*!< 0x00010000 */
  12729. #define MDMA_CTCR_DBURST_2 (0x4UL << MDMA_CTCR_DBURST_Pos) /*!< 0x00020000 */
  12730. #define MDMA_CTCR_TLEN_Pos (18U)
  12731. #define MDMA_CTCR_TLEN_Msk (0x7FUL << MDMA_CTCR_TLEN_Pos) /*!< 0x01FC0000 */
  12732. #define MDMA_CTCR_TLEN MDMA_CTCR_TLEN_Msk /*!< buffer Transfer Length (number of bytes - 1) */
  12733. #define MDMA_CTCR_PKE_Pos (25U)
  12734. #define MDMA_CTCR_PKE_Msk (0x1UL << MDMA_CTCR_PKE_Pos) /*!< 0x02000000 */
  12735. #define MDMA_CTCR_PKE MDMA_CTCR_PKE_Msk /*!< PacK Enable */
  12736. #define MDMA_CTCR_PAM_Pos (26U)
  12737. #define MDMA_CTCR_PAM_Msk (0x3UL << MDMA_CTCR_PAM_Pos) /*!< 0x0C000000 */
  12738. #define MDMA_CTCR_PAM MDMA_CTCR_PAM_Msk /*!< Padding/Alignment Mode */
  12739. #define MDMA_CTCR_PAM_0 (0x1UL << MDMA_CTCR_PAM_Pos) /*!< 0x4000000 */
  12740. #define MDMA_CTCR_PAM_1 (0x2UL << MDMA_CTCR_PAM_Pos) /*!< 0x8000000 */
  12741. #define MDMA_CTCR_TRGM_Pos (28U)
  12742. #define MDMA_CTCR_TRGM_Msk (0x3UL << MDMA_CTCR_TRGM_Pos) /*!< 0x30000000 */
  12743. #define MDMA_CTCR_TRGM MDMA_CTCR_TRGM_Msk /*!< Trigger Mode */
  12744. #define MDMA_CTCR_TRGM_0 (0x1UL << MDMA_CTCR_TRGM_Pos) /*!< 0x10000000 */
  12745. #define MDMA_CTCR_TRGM_1 (0x2UL << MDMA_CTCR_TRGM_Pos) /*!< 0x20000000 */
  12746. #define MDMA_CTCR_SWRM_Pos (30U)
  12747. #define MDMA_CTCR_SWRM_Msk (0x1UL << MDMA_CTCR_SWRM_Pos) /*!< 0x40000000 */
  12748. #define MDMA_CTCR_SWRM MDMA_CTCR_SWRM_Msk /*!< SW Request Mode */
  12749. #define MDMA_CTCR_BWM_Pos (31U)
  12750. #define MDMA_CTCR_BWM_Msk (0x1UL << MDMA_CTCR_BWM_Pos) /*!< 0x80000000 */
  12751. #define MDMA_CTCR_BWM MDMA_CTCR_BWM_Msk /*!< Bufferable Write Mode */
  12752. /******************** Bit definition for MDMA_CxBNDTR register ****************/
  12753. #define MDMA_CBNDTR_BNDT_Pos (0U)
  12754. #define MDMA_CBNDTR_BNDT_Msk (0x1FFFFUL << MDMA_CBNDTR_BNDT_Pos) /*!< 0x0001FFFF */
  12755. #define MDMA_CBNDTR_BNDT MDMA_CBNDTR_BNDT_Msk /*!< Block Number of data bytes to transfer */
  12756. #define MDMA_CBNDTR_BRSUM_Pos (18U)
  12757. #define MDMA_CBNDTR_BRSUM_Msk (0x1UL << MDMA_CBNDTR_BRSUM_Pos) /*!< 0x00040000 */
  12758. #define MDMA_CBNDTR_BRSUM MDMA_CBNDTR_BRSUM_Msk /*!< Block Repeat Source address Update Mode */
  12759. #define MDMA_CBNDTR_BRDUM_Pos (19U)
  12760. #define MDMA_CBNDTR_BRDUM_Msk (0x1UL << MDMA_CBNDTR_BRDUM_Pos) /*!< 0x00080000 */
  12761. #define MDMA_CBNDTR_BRDUM MDMA_CBNDTR_BRDUM_Msk /*!< Block Repeat Destination address Update Mode */
  12762. #define MDMA_CBNDTR_BRC_Pos (20U)
  12763. #define MDMA_CBNDTR_BRC_Msk (0xFFFUL << MDMA_CBNDTR_BRC_Pos) /*!< 0xFFF00000 */
  12764. #define MDMA_CBNDTR_BRC MDMA_CBNDTR_BRC_Msk /*!< Block Repeat Count */
  12765. /******************** Bit definition for MDMA_CxSAR register ****************/
  12766. #define MDMA_CSAR_SAR_Pos (0U)
  12767. #define MDMA_CSAR_SAR_Msk (0xFFFFFFFFUL << MDMA_CSAR_SAR_Pos) /*!< 0xFFFFFFFF */
  12768. #define MDMA_CSAR_SAR MDMA_CSAR_SAR_Msk /*!< Source address */
  12769. /******************** Bit definition for MDMA_CxDAR register ****************/
  12770. #define MDMA_CDAR_DAR_Pos (0U)
  12771. #define MDMA_CDAR_DAR_Msk (0xFFFFFFFFUL << MDMA_CDAR_DAR_Pos) /*!< 0xFFFFFFFF */
  12772. #define MDMA_CDAR_DAR MDMA_CDAR_DAR_Msk /*!< Destination address */
  12773. /******************** Bit definition for MDMA_CxBRUR ************************/
  12774. #define MDMA_CBRUR_SUV_Pos (0U)
  12775. #define MDMA_CBRUR_SUV_Msk (0xFFFFUL << MDMA_CBRUR_SUV_Pos) /*!< 0x0000FFFF */
  12776. #define MDMA_CBRUR_SUV MDMA_CBRUR_SUV_Msk /*!< Source address Update Value */
  12777. #define MDMA_CBRUR_DUV_Pos (16U)
  12778. #define MDMA_CBRUR_DUV_Msk (0xFFFFUL << MDMA_CBRUR_DUV_Pos) /*!< 0xFFFF0000 */
  12779. #define MDMA_CBRUR_DUV MDMA_CBRUR_DUV_Msk /*!< Destination address Update Value */
  12780. /******************** Bit definition for MDMA_CxLAR *************************/
  12781. #define MDMA_CLAR_LAR_Pos (0U)
  12782. #define MDMA_CLAR_LAR_Msk (0xFFFFFFFFUL << MDMA_CLAR_LAR_Pos) /*!< 0xFFFFFFFF */
  12783. #define MDMA_CLAR_LAR MDMA_CLAR_LAR_Msk /*!< Link Address Register */
  12784. /******************** Bit definition for MDMA_CxTBR) ************************/
  12785. #define MDMA_CTBR_TSEL_Pos (0U)
  12786. #define MDMA_CTBR_TSEL_Msk (0xFFUL << MDMA_CTBR_TSEL_Pos) /*!< 0x000000FF */
  12787. #define MDMA_CTBR_TSEL MDMA_CTBR_TSEL_Msk /*!< Trigger SELection */
  12788. #define MDMA_CTBR_SBUS_Pos (16U)
  12789. #define MDMA_CTBR_SBUS_Msk (0x1UL << MDMA_CTBR_SBUS_Pos) /*!< 0x00010000 */
  12790. #define MDMA_CTBR_SBUS MDMA_CTBR_SBUS_Msk /*!< Source BUS select */
  12791. #define MDMA_CTBR_DBUS_Pos (17U)
  12792. #define MDMA_CTBR_DBUS_Msk (0x1UL << MDMA_CTBR_DBUS_Pos) /*!< 0x00020000 */
  12793. #define MDMA_CTBR_DBUS MDMA_CTBR_DBUS_Msk /*!< Destination BUS select */
  12794. /******************** Bit definition for MDMA_CxMAR) ************************/
  12795. #define MDMA_CMAR_MAR_Pos (0U)
  12796. #define MDMA_CMAR_MAR_Msk (0xFFFFFFFFUL << MDMA_CMAR_MAR_Pos) /*!< 0xFFFFFFFF */
  12797. #define MDMA_CMAR_MAR MDMA_CMAR_MAR_Msk /*!< Mask address */
  12798. /******************** Bit definition for MDMA_CxMDR) ************************/
  12799. #define MDMA_CMDR_MDR_Pos (0U)
  12800. #define MDMA_CMDR_MDR_Msk (0xFFFFFFFFUL << MDMA_CMDR_MDR_Pos) /*!< 0xFFFFFFFF */
  12801. #define MDMA_CMDR_MDR MDMA_CMDR_MDR_Msk /*!< Mask Data */
  12802. /******************************************************************************/
  12803. /* */
  12804. /* Operational Amplifier (OPAMP) */
  12805. /* */
  12806. /******************************************************************************/
  12807. /********************* Bit definition for OPAMPx_CSR register ***************/
  12808. #define OPAMP_CSR_OPAMPxEN_Pos (0U)
  12809. #define OPAMP_CSR_OPAMPxEN_Msk (0x1UL << OPAMP_CSR_OPAMPxEN_Pos) /*!< 0x00000001 */
  12810. #define OPAMP_CSR_OPAMPxEN OPAMP_CSR_OPAMPxEN_Msk /*!< OPAMP enable */
  12811. #define OPAMP_CSR_FORCEVP_Pos (1U)
  12812. #define OPAMP_CSR_FORCEVP_Msk (0x1UL << OPAMP_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12813. #define OPAMP_CSR_FORCEVP OPAMP_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12814. #define OPAMP_CSR_VPSEL_Pos (2U)
  12815. #define OPAMP_CSR_VPSEL_Msk (0x3UL << OPAMP_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12816. #define OPAMP_CSR_VPSEL OPAMP_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12817. #define OPAMP_CSR_VPSEL_0 (0x1UL << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12818. #define OPAMP_CSR_VPSEL_1 (0x2UL << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12819. #define OPAMP_CSR_VMSEL_Pos (5U)
  12820. #define OPAMP_CSR_VMSEL_Msk (0x3UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12821. #define OPAMP_CSR_VMSEL OPAMP_CSR_VMSEL_Msk /*!< Inverting input selection */
  12822. #define OPAMP_CSR_VMSEL_0 (0x1UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12823. #define OPAMP_CSR_VMSEL_1 (0x2UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12824. #define OPAMP_CSR_OPAHSM_Pos (8U)
  12825. #define OPAMP_CSR_OPAHSM_Msk (0x1UL << OPAMP_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12826. #define OPAMP_CSR_OPAHSM OPAMP_CSR_OPAHSM_Msk /*!< Operational amplifier high speed mode */
  12827. #define OPAMP_CSR_CALON_Pos (11U)
  12828. #define OPAMP_CSR_CALON_Msk (0x1UL << OPAMP_CSR_CALON_Pos) /*!< 0x00000800 */
  12829. #define OPAMP_CSR_CALON OPAMP_CSR_CALON_Msk /*!< Calibration mode enable */
  12830. #define OPAMP_CSR_CALSEL_Pos (12U)
  12831. #define OPAMP_CSR_CALSEL_Msk (0x3UL << OPAMP_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12832. #define OPAMP_CSR_CALSEL OPAMP_CSR_CALSEL_Msk /*!< Calibration selection */
  12833. #define OPAMP_CSR_CALSEL_0 (0x1UL << OPAMP_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12834. #define OPAMP_CSR_CALSEL_1 (0x2UL << OPAMP_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12835. #define OPAMP_CSR_PGGAIN_Pos (14U)
  12836. #define OPAMP_CSR_PGGAIN_Msk (0xFUL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12837. #define OPAMP_CSR_PGGAIN OPAMP_CSR_PGGAIN_Msk /*!< Operational amplifier Programmable amplifier gain value */
  12838. #define OPAMP_CSR_PGGAIN_0 (0x1UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12839. #define OPAMP_CSR_PGGAIN_1 (0x2UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12840. #define OPAMP_CSR_PGGAIN_2 (0x4UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12841. #define OPAMP_CSR_PGGAIN_3 (0x8UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12842. #define OPAMP_CSR_USERTRIM_Pos (18U)
  12843. #define OPAMP_CSR_USERTRIM_Msk (0x1UL << OPAMP_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12844. #define OPAMP_CSR_USERTRIM OPAMP_CSR_USERTRIM_Msk /*!< User trimming enable */
  12845. #define OPAMP_CSR_TSTREF_Pos (29U)
  12846. #define OPAMP_CSR_TSTREF_Msk (0x1UL << OPAMP_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12847. #define OPAMP_CSR_TSTREF OPAMP_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12848. #define OPAMP_CSR_CALOUT_Pos (30U)
  12849. #define OPAMP_CSR_CALOUT_Msk (0x1UL << OPAMP_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12850. #define OPAMP_CSR_CALOUT OPAMP_CSR_CALOUT_Msk /*!< Operational amplifier calibration output */
  12851. /********************* Bit definition for OPAMP1_CSR register ***************/
  12852. #define OPAMP1_CSR_OPAEN_Pos (0U)
  12853. #define OPAMP1_CSR_OPAEN_Msk (0x1UL << OPAMP1_CSR_OPAEN_Pos) /*!< 0x00000001 */
  12854. #define OPAMP1_CSR_OPAEN OPAMP1_CSR_OPAEN_Msk /*!< Operational amplifier1 Enable */
  12855. #define OPAMP1_CSR_FORCEVP_Pos (1U)
  12856. #define OPAMP1_CSR_FORCEVP_Msk (0x1UL << OPAMP1_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12857. #define OPAMP1_CSR_FORCEVP OPAMP1_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12858. #define OPAMP1_CSR_VPSEL_Pos (2U)
  12859. #define OPAMP1_CSR_VPSEL_Msk (0x3UL << OPAMP1_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12860. #define OPAMP1_CSR_VPSEL OPAMP1_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12861. #define OPAMP1_CSR_VPSEL_0 (0x1UL << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12862. #define OPAMP1_CSR_VPSEL_1 (0x2UL << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12863. #define OPAMP1_CSR_VMSEL_Pos (5U)
  12864. #define OPAMP1_CSR_VMSEL_Msk (0x3UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12865. #define OPAMP1_CSR_VMSEL OPAMP1_CSR_VMSEL_Msk /*!< Inverting input selection */
  12866. #define OPAMP1_CSR_VMSEL_0 (0x1UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12867. #define OPAMP1_CSR_VMSEL_1 (0x2UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12868. #define OPAMP1_CSR_OPAHSM_Pos (8U)
  12869. #define OPAMP1_CSR_OPAHSM_Msk (0x1UL << OPAMP1_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12870. #define OPAMP1_CSR_OPAHSM OPAMP1_CSR_OPAHSM_Msk /*!< Operational amplifier1 high speed mode */
  12871. #define OPAMP1_CSR_CALON_Pos (11U)
  12872. #define OPAMP1_CSR_CALON_Msk (0x1UL << OPAMP1_CSR_CALON_Pos) /*!< 0x00000800 */
  12873. #define OPAMP1_CSR_CALON OPAMP1_CSR_CALON_Msk /*!< Calibration mode enable */
  12874. #define OPAMP1_CSR_CALSEL_Pos (12U)
  12875. #define OPAMP1_CSR_CALSEL_Msk (0x3UL << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12876. #define OPAMP1_CSR_CALSEL OPAMP1_CSR_CALSEL_Msk /*!< Calibration selection */
  12877. #define OPAMP1_CSR_CALSEL_0 (0x1UL << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12878. #define OPAMP1_CSR_CALSEL_1 (0x2UL << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12879. #define OPAMP1_CSR_PGGAIN_Pos (14U)
  12880. #define OPAMP1_CSR_PGGAIN_Msk (0xFUL << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12881. #define OPAMP1_CSR_PGGAIN OPAMP1_CSR_PGGAIN_Msk /*!< Operational amplifier1 Programmable amplifier gain value */
  12882. #define OPAMP1_CSR_PGGAIN_0 (0x1UL << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12883. #define OPAMP1_CSR_PGGAIN_1 (0x2UL << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12884. #define OPAMP1_CSR_PGGAIN_2 (0x4UL << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12885. #define OPAMP1_CSR_PGGAIN_3 (0x8UL << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12886. #define OPAMP1_CSR_USERTRIM_Pos (18U)
  12887. #define OPAMP1_CSR_USERTRIM_Msk (0x1UL << OPAMP1_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12888. #define OPAMP1_CSR_USERTRIM OPAMP1_CSR_USERTRIM_Msk /*!< User trimming enable */
  12889. #define OPAMP1_CSR_TSTREF_Pos (29U)
  12890. #define OPAMP1_CSR_TSTREF_Msk (0x1UL << OPAMP1_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12891. #define OPAMP1_CSR_TSTREF OPAMP1_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12892. #define OPAMP1_CSR_CALOUT_Pos (30U)
  12893. #define OPAMP1_CSR_CALOUT_Msk (0x1UL << OPAMP1_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12894. #define OPAMP1_CSR_CALOUT OPAMP1_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */
  12895. /********************* Bit definition for OPAMP2_CSR register ***************/
  12896. #define OPAMP2_CSR_OPAEN_Pos (0U)
  12897. #define OPAMP2_CSR_OPAEN_Msk (0x1UL << OPAMP2_CSR_OPAEN_Pos) /*!< 0x00000001 */
  12898. #define OPAMP2_CSR_OPAEN OPAMP2_CSR_OPAEN_Msk /*!< Operational amplifier2 Enable */
  12899. #define OPAMP2_CSR_FORCEVP_Pos (1U)
  12900. #define OPAMP2_CSR_FORCEVP_Msk (0x1UL << OPAMP2_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12901. #define OPAMP2_CSR_FORCEVP OPAMP2_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12902. #define OPAMP2_CSR_VPSEL_Pos (2U)
  12903. #define OPAMP2_CSR_VPSEL_Msk (0x3UL << OPAMP2_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12904. #define OPAMP2_CSR_VPSEL OPAMP2_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12905. #define OPAMP2_CSR_VPSEL_0 (0x1UL << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12906. #define OPAMP2_CSR_VPSEL_1 (0x2UL << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12907. #define OPAMP2_CSR_VMSEL_Pos (5U)
  12908. #define OPAMP2_CSR_VMSEL_Msk (0x3UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12909. #define OPAMP2_CSR_VMSEL OPAMP2_CSR_VMSEL_Msk /*!< Inverting input selection */
  12910. #define OPAMP2_CSR_VMSEL_0 (0x1UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12911. #define OPAMP2_CSR_VMSEL_1 (0x2UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12912. #define OPAMP2_CSR_OPAHSM_Pos (8U)
  12913. #define OPAMP2_CSR_OPAHSM_Msk (0x1UL << OPAMP2_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12914. #define OPAMP2_CSR_OPAHSM OPAMP2_CSR_OPAHSM_Msk /*!< Operational amplifier2 high speed mode */
  12915. #define OPAMP2_CSR_CALON_Pos (11U)
  12916. #define OPAMP2_CSR_CALON_Msk (0x1UL << OPAMP2_CSR_CALON_Pos) /*!< 0x00000800 */
  12917. #define OPAMP2_CSR_CALON OPAMP2_CSR_CALON_Msk /*!< Calibration mode enable */
  12918. #define OPAMP2_CSR_CALSEL_Pos (12U)
  12919. #define OPAMP2_CSR_CALSEL_Msk (0x3UL << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12920. #define OPAMP2_CSR_CALSEL OPAMP2_CSR_CALSEL_Msk /*!< Calibration selection */
  12921. #define OPAMP2_CSR_CALSEL_0 (0x1UL << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12922. #define OPAMP2_CSR_CALSEL_1 (0x2UL << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12923. #define OPAMP2_CSR_PGGAIN_Pos (14U)
  12924. #define OPAMP2_CSR_PGGAIN_Msk (0xFUL << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12925. #define OPAMP2_CSR_PGGAIN OPAMP2_CSR_PGGAIN_Msk /*!< Operational amplifier2 Programmable amplifier gain value */
  12926. #define OPAMP2_CSR_PGGAIN_0 (0x1UL << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12927. #define OPAMP2_CSR_PGGAIN_1 (0x2UL << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12928. #define OPAMP2_CSR_PGGAIN_2 (0x4UL << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12929. #define OPAMP2_CSR_PGGAIN_3 (0x8UL << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12930. #define OPAMP2_CSR_USERTRIM_Pos (18U)
  12931. #define OPAMP2_CSR_USERTRIM_Msk (0x1UL << OPAMP2_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12932. #define OPAMP2_CSR_USERTRIM OPAMP2_CSR_USERTRIM_Msk /*!< User trimming enable */
  12933. #define OPAMP2_CSR_TSTREF_Pos (29U)
  12934. #define OPAMP2_CSR_TSTREF_Msk (0x1UL << OPAMP2_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12935. #define OPAMP2_CSR_TSTREF OPAMP2_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12936. #define OPAMP2_CSR_CALOUT_Pos (30U)
  12937. #define OPAMP2_CSR_CALOUT_Msk (0x1UL << OPAMP2_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12938. #define OPAMP2_CSR_CALOUT OPAMP2_CSR_CALOUT_Msk /*!< Operational amplifier2 calibration output */
  12939. /******************* Bit definition for OPAMP_OTR register ******************/
  12940. #define OPAMP_OTR_TRIMOFFSETN_Pos (0U)
  12941. #define OPAMP_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12942. #define OPAMP_OTR_TRIMOFFSETN OPAMP_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12943. #define OPAMP_OTR_TRIMOFFSETP_Pos (8U)
  12944. #define OPAMP_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12945. #define OPAMP_OTR_TRIMOFFSETP OPAMP_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12946. /******************* Bit definition for OPAMP1_OTR register ******************/
  12947. #define OPAMP1_OTR_TRIMOFFSETN_Pos (0U)
  12948. #define OPAMP1_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP1_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12949. #define OPAMP1_OTR_TRIMOFFSETN OPAMP1_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12950. #define OPAMP1_OTR_TRIMOFFSETP_Pos (8U)
  12951. #define OPAMP1_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP1_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12952. #define OPAMP1_OTR_TRIMOFFSETP OPAMP1_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12953. /******************* Bit definition for OPAMP2_OTR register ******************/
  12954. #define OPAMP2_OTR_TRIMOFFSETN_Pos (0U)
  12955. #define OPAMP2_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP2_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12956. #define OPAMP2_OTR_TRIMOFFSETN OPAMP2_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12957. #define OPAMP2_OTR_TRIMOFFSETP_Pos (8U)
  12958. #define OPAMP2_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP2_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12959. #define OPAMP2_OTR_TRIMOFFSETP OPAMP2_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12960. /******************* Bit definition for OPAMP_HSOTR register ****************/
  12961. #define OPAMP_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12962. #define OPAMP_HSOTR_TRIMHSOFFSETN_Msk (0x1FUL << OPAMP_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12963. #define OPAMP_HSOTR_TRIMHSOFFSETN OPAMP_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12964. #define OPAMP_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12965. #define OPAMP_HSOTR_TRIMHSOFFSETP_Msk (0x1FUL << OPAMP_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12966. #define OPAMP_HSOTR_TRIMHSOFFSETP OPAMP_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12967. /******************* Bit definition for OPAMP1_HSOTR register ****************/
  12968. #define OPAMP1_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12969. #define OPAMP1_HSOTR_TRIMHSOFFSETN_Msk (0x1FUL << OPAMP1_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12970. #define OPAMP1_HSOTR_TRIMHSOFFSETN OPAMP1_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12971. #define OPAMP1_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12972. #define OPAMP1_HSOTR_TRIMHSOFFSETP_Msk (0x1FUL << OPAMP1_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12973. #define OPAMP1_HSOTR_TRIMHSOFFSETP OPAMP1_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12974. /******************* Bit definition for OPAMP2_HSOTR register ****************/
  12975. #define OPAMP2_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12976. #define OPAMP2_HSOTR_TRIMHSOFFSETN_Msk (0x1FUL << OPAMP2_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12977. #define OPAMP2_HSOTR_TRIMHSOFFSETN OPAMP2_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12978. #define OPAMP2_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12979. #define OPAMP2_HSOTR_TRIMHSOFFSETP_Msk (0x1FUL << OPAMP2_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12980. #define OPAMP2_HSOTR_TRIMHSOFFSETP OPAMP2_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12981. /******************************************************************************/
  12982. /* */
  12983. /* Parallel Synchronous Slave Interface (PSSI ) */
  12984. /* */
  12985. /******************************************************************************/
  12986. /******************** Bit definition for PSSI_CR register *******************/
  12987. #define PSSI_CR_OUTEN_Pos (31U)
  12988. #define PSSI_CR_OUTEN_Msk (0x1UL << PSSI_CR_OUTEN_Pos) /*!< 0x80000000 */
  12989. #define PSSI_CR_OUTEN PSSI_CR_OUTEN_Msk /*!< Data direction selection */
  12990. #define PSSI_CR_DMAEN_Pos (30U)
  12991. #define PSSI_CR_DMAEN_Msk (0x1UL << PSSI_CR_DMAEN_Pos) /*!< 0x40000000 */
  12992. #define PSSI_CR_DMAEN PSSI_CR_DMAEN_Msk /*!< DMA enable */
  12993. #define PSSI_CR_DERDYCFG_Pos (18U)
  12994. #define PSSI_CR_DERDYCFG_Msk (0x7UL << PSSI_CR_DERDYCFG_Pos) /*!< 0x001C0000 */
  12995. #define PSSI_CR_DERDYCFG PSSI_CR_DERDYCFG_Msk /*!< Data enable and ready configuration */
  12996. #define PSSI_CR_ENABLE_Pos (14U)
  12997. #define PSSI_CR_ENABLE_Msk (0x1UL << PSSI_CR_ENABLE_Pos) /*!< 0x00004000 */
  12998. #define PSSI_CR_ENABLE PSSI_CR_ENABLE_Msk /*!< PSSI enable */
  12999. #define PSSI_CR_EDM_Pos (10U)
  13000. #define PSSI_CR_EDM_Msk (0x3UL << PSSI_CR_EDM_Pos) /*!< 0x00000C00 */
  13001. #define PSSI_CR_EDM PSSI_CR_EDM_Msk /*!< Extended data mode */
  13002. #define PSSI_CR_RDYPOL_Pos (8U)
  13003. #define PSSI_CR_RDYPOL_Msk (0x1UL << PSSI_CR_RDYPOL_Pos) /*!< 0x00000C00 */
  13004. #define PSSI_CR_RDYPOL PSSI_CR_RDYPOL_Msk /*!< Ready polarity */
  13005. #define PSSI_CR_DEPOL_Pos (6U)
  13006. #define PSSI_CR_DEPOL_Msk (0x1UL << PSSI_CR_DEPOL_Pos) /*!< 0x00000C00 */
  13007. #define PSSI_CR_DEPOL PSSI_CR_DEPOL_Msk /*!< Data enable polarity */
  13008. #define PSSI_CR_CKPOL_Pos (5U)
  13009. #define PSSI_CR_CKPOL_Msk (0x1UL << PSSI_CR_CKPOL_Pos) /*!< 0x00000C00 */
  13010. #define PSSI_CR_CKPOL PSSI_CR_CKPOL_Msk /*!< Parallel data clock polarity */
  13011. /******************** Bit definition for PSSI_SR register *******************/
  13012. #define PSSI_SR_RTT1B_Pos (3U)
  13013. #define PSSI_SR_RTT1B_Msk (0x1UL << PSSI_SR_RTT1B_Pos) /*!< 0x00000008 */
  13014. #define PSSI_SR_RTT1B PSSI_SR_RTT1B_Msk /*!< Ready to transfer one byte */
  13015. #define PSSI_SR_RTT4B_Pos (2U)
  13016. #define PSSI_SR_RTT4B_Msk (0x1UL << PSSI_SR_RTT4B_Pos) /*!< 0x00000004 */
  13017. #define PSSI_SR_RTT4B PSSI_SR_RTT4B_Msk /*!< Ready to transfer four bytes */
  13018. /******************** Bit definition for PSSI_RIS register *******************/
  13019. #define PSSI_RIS_OVR_RIS_Pos (1U)
  13020. #define PSSI_RIS_OVR_RIS_Msk (0x1UL << PSSI_RIS_OVR_RIS_Pos) /*!< 0x00000002 */
  13021. #define PSSI_RIS_OVR_RIS PSSI_RIS_OVR_RIS_Msk /*!< Data buffer overrun/underrun raw interrupt status */
  13022. /******************** Bit definition for PSSI_IER register *******************/
  13023. #define PSSI_IER_OVR_IE_Pos (1U)
  13024. #define PSSI_IER_OVR_IE_Msk (0x1UL << PSSI_IER_OVR_IE_Pos) /*!< 0x00000002 */
  13025. #define PSSI_IER_OVR_IE PSSI_IER_OVR_IE_Msk /*!< Data buffer overrun/underrun interrupt enable */
  13026. /******************** Bit definition for PSSI_MIS register *******************/
  13027. #define PSSI_MIS_OVR_MIS_Pos (1U)
  13028. #define PSSI_MIS_OVR_MIS_Msk (0x1UL << PSSI_MIS_OVR_MIS_Pos) /*!< 0x00000002 */
  13029. #define PSSI_MIS_OVR_MIS PSSI_MIS_OVR_MIS_Msk /*!< Data buffer overrun/underrun masked interrupt status */
  13030. /******************** Bit definition for PSSI_ICR register *******************/
  13031. #define PSSI_ICR_OVR_ISC_Pos (1U)
  13032. #define PSSI_ICR_OVR_ISC_Msk (0x1UL << PSSI_ICR_OVR_ISC_Pos) /*!< 0x00000002 */
  13033. #define PSSI_ICR_OVR_ISC PSSI_ICR_OVR_ISC_Msk /*!< Data buffer overrun/underrun interrupt status clear */
  13034. /******************** Bit definition for PSSI_DR register *******************/
  13035. #define PSSI_DR_DR_Pos (0U)
  13036. #define PSSI_DR_DR_Msk (0xFFFFFFFFUL << PSSI_DR_DR_Pos) /*!< 0xFFFFFFF */
  13037. #define PSSI_DR_DR PSSI_DR_DR_Msk /*!< Data register */
  13038. /******************************************************************************/
  13039. /* */
  13040. /* Power Control */
  13041. /* */
  13042. /******************************************************************************/
  13043. /************************* NUMBER OF POWER DOMAINS **************************/
  13044. #define POWER_DOMAINS_NUMBER 3U /*!< 3 Domains */
  13045. /******************** Bit definition for PWR_CR1 register *******************/
  13046. #define PWR_CR1_ALS_Pos (17U)
  13047. #define PWR_CR1_ALS_Msk (0x3UL << PWR_CR1_ALS_Pos) /*!< 0x00060000 */
  13048. #define PWR_CR1_ALS PWR_CR1_ALS_Msk /*!< Analog Voltage Detector level selection */
  13049. #define PWR_CR1_ALS_0 (0x1UL << PWR_CR1_ALS_Pos) /*!< 0x00020000 */
  13050. #define PWR_CR1_ALS_1 (0x2UL << PWR_CR1_ALS_Pos) /*!< 0x00040000 */
  13051. #define PWR_CR1_AVDEN_Pos (16U)
  13052. #define PWR_CR1_AVDEN_Msk (0x1UL << PWR_CR1_AVDEN_Pos) /*!< 0x00010000 */
  13053. #define PWR_CR1_AVDEN PWR_CR1_AVDEN_Msk /*!< Analog Voltage Detector Enable */
  13054. #define PWR_CR1_SVOS_Pos (14U)
  13055. #define PWR_CR1_SVOS_Msk (0x3UL << PWR_CR1_SVOS_Pos) /*!< 0x0000C000 */
  13056. #define PWR_CR1_SVOS PWR_CR1_SVOS_Msk /*!< System STOP mode Voltage Scaling selection */
  13057. #define PWR_CR1_SVOS_0 (0x1UL << PWR_CR1_SVOS_Pos) /*!< 0x00004000 */
  13058. #define PWR_CR1_SVOS_1 (0x2UL << PWR_CR1_SVOS_Pos) /*!< 0x00008000 */
  13059. #define PWR_CR1_FLPS_Pos (9U)
  13060. #define PWR_CR1_FLPS_Msk (0x1UL << PWR_CR1_FLPS_Pos) /*!< 0x00000200 */
  13061. #define PWR_CR1_FLPS PWR_CR1_FLPS_Msk /*!< Flash low power mode in DSTOP */
  13062. #define PWR_CR1_DBP_Pos (8U)
  13063. #define PWR_CR1_DBP_Msk (0x1UL << PWR_CR1_DBP_Pos) /*!< 0x00000100 */
  13064. #define PWR_CR1_DBP PWR_CR1_DBP_Msk /*!< Disable Back-up domain Protection */
  13065. #define PWR_CR1_PLS_Pos (5U)
  13066. #define PWR_CR1_PLS_Msk (0x7UL << PWR_CR1_PLS_Pos) /*!< 0x000000E0 */
  13067. #define PWR_CR1_PLS PWR_CR1_PLS_Msk /*!< Programmable Voltage Detector level selection */
  13068. #define PWR_CR1_PLS_0 (0x1UL << PWR_CR1_PLS_Pos) /*!< 0x00000020 */
  13069. #define PWR_CR1_PLS_1 (0x2UL << PWR_CR1_PLS_Pos) /*!< 0x00000040 */
  13070. #define PWR_CR1_PLS_2 (0x4UL << PWR_CR1_PLS_Pos) /*!< 0x00000080 */
  13071. #define PWR_CR1_PVDEN_Pos (4U)
  13072. #define PWR_CR1_PVDEN_Msk (0x1UL << PWR_CR1_PVDEN_Pos) /*!< 0x00000010 */
  13073. #define PWR_CR1_PVDEN PWR_CR1_PVDEN_Msk /*!< Programmable Voltage detector enable */
  13074. #define PWR_CR1_LPDS_Pos (0U)
  13075. #define PWR_CR1_LPDS_Msk (0x1UL << PWR_CR1_LPDS_Pos) /*!< 0x00000001 */
  13076. #define PWR_CR1_LPDS PWR_CR1_LPDS_Msk /*!< Low Power Deepsleep with SVOS3 */
  13077. /*!< PVD level configuration */
  13078. #define PWR_CR1_PLS_LEV0 (0UL) /*!< PVD level 0 */
  13079. #define PWR_CR1_PLS_LEV1_Pos (5U)
  13080. #define PWR_CR1_PLS_LEV1_Msk (0x1UL << PWR_CR1_PLS_LEV1_Pos) /*!< 0x00000020 */
  13081. #define PWR_CR1_PLS_LEV1 PWR_CR1_PLS_LEV1_Msk /*!< PVD level 1 */
  13082. #define PWR_CR1_PLS_LEV2_Pos (6U)
  13083. #define PWR_CR1_PLS_LEV2_Msk (0x1UL << PWR_CR1_PLS_LEV2_Pos) /*!< 0x00000040 */
  13084. #define PWR_CR1_PLS_LEV2 PWR_CR1_PLS_LEV2_Msk /*!< PVD level 2 */
  13085. #define PWR_CR1_PLS_LEV3_Pos (5U)
  13086. #define PWR_CR1_PLS_LEV3_Msk (0x3UL << PWR_CR1_PLS_LEV3_Pos) /*!< 0x00000060 */
  13087. #define PWR_CR1_PLS_LEV3 PWR_CR1_PLS_LEV3_Msk /*!< PVD level 3 */
  13088. #define PWR_CR1_PLS_LEV4_Pos (7U)
  13089. #define PWR_CR1_PLS_LEV4_Msk (0x1UL << PWR_CR1_PLS_LEV4_Pos) /*!< 0x00000080 */
  13090. #define PWR_CR1_PLS_LEV4 PWR_CR1_PLS_LEV4_Msk /*!< PVD level 4 */
  13091. #define PWR_CR1_PLS_LEV5_Pos (5U)
  13092. #define PWR_CR1_PLS_LEV5_Msk (0x5UL << PWR_CR1_PLS_LEV5_Pos) /*!< 0x000000A0 */
  13093. #define PWR_CR1_PLS_LEV5 PWR_CR1_PLS_LEV5_Msk /*!< PVD level 5 */
  13094. #define PWR_CR1_PLS_LEV6_Pos (6U)
  13095. #define PWR_CR1_PLS_LEV6_Msk (0x3UL << PWR_CR1_PLS_LEV6_Pos) /*!< 0x000000C0 */
  13096. #define PWR_CR1_PLS_LEV6 PWR_CR1_PLS_LEV6_Msk /*!< PVD level 6 */
  13097. #define PWR_CR1_PLS_LEV7_Pos (5U)
  13098. #define PWR_CR1_PLS_LEV7_Msk (0x7UL << PWR_CR1_PLS_LEV7_Pos) /*!< 0x000000E0 */
  13099. #define PWR_CR1_PLS_LEV7 PWR_CR1_PLS_LEV7_Msk /*!< PVD level 7 */
  13100. /*!< AVD level configuration */
  13101. #define PWR_CR1_ALS_LEV0 (0UL) /*!< AVD level 0 */
  13102. #define PWR_CR1_ALS_LEV1_Pos (17U)
  13103. #define PWR_CR1_ALS_LEV1_Msk (0x1UL << PWR_CR1_ALS_LEV1_Pos) /*!< 0x00020000 */
  13104. #define PWR_CR1_ALS_LEV1 PWR_CR1_ALS_LEV1_Msk /*!< AVD level 1 */
  13105. #define PWR_CR1_ALS_LEV2_Pos (18U)
  13106. #define PWR_CR1_ALS_LEV2_Msk (0x1UL << PWR_CR1_ALS_LEV2_Pos) /*!< 0x00040000 */
  13107. #define PWR_CR1_ALS_LEV2 PWR_CR1_ALS_LEV2_Msk /*!< AVD level 2 */
  13108. #define PWR_CR1_ALS_LEV3_Pos (17U)
  13109. #define PWR_CR1_ALS_LEV3_Msk (0x3UL << PWR_CR1_ALS_LEV3_Pos) /*!< 0x00060000 */
  13110. #define PWR_CR1_ALS_LEV3 PWR_CR1_ALS_LEV3_Msk /*!< AVD level 3 */
  13111. /******************** Bit definition for PWR_CSR1 register ******************/
  13112. #define PWR_CSR1_AVDO_Pos (16U)
  13113. #define PWR_CSR1_AVDO_Msk (0x1UL << PWR_CSR1_AVDO_Pos) /*!< 0x00010000 */
  13114. #define PWR_CSR1_AVDO PWR_CSR1_AVDO_Msk /*!< Analog Voltage Detect Output */
  13115. #define PWR_CSR1_ACTVOS_Pos (14U)
  13116. #define PWR_CSR1_ACTVOS_Msk (0x3UL << PWR_CSR1_ACTVOS_Pos) /*!< 0x0000C000 */
  13117. #define PWR_CSR1_ACTVOS PWR_CSR1_ACTVOS_Msk /*!< Current actual used VOS for VDD11 Voltage Scaling */
  13118. #define PWR_CSR1_ACTVOS_0 (0x1UL << PWR_CSR1_ACTVOS_Pos) /*!< 0x00004000 */
  13119. #define PWR_CSR1_ACTVOS_1 (0x2UL << PWR_CSR1_ACTVOS_Pos) /*!< 0x00008000 */
  13120. #define PWR_CSR1_ACTVOSRDY_Pos (13U)
  13121. #define PWR_CSR1_ACTVOSRDY_Msk (0x1UL << PWR_CSR1_ACTVOSRDY_Pos) /*!< 0x00002000 */
  13122. #define PWR_CSR1_ACTVOSRDY PWR_CSR1_ACTVOSRDY_Msk /*!< Ready bit for current actual used VOS for VDD11 Voltage Scaling */
  13123. #define PWR_CSR1_PVDO_Pos (4U)
  13124. #define PWR_CSR1_PVDO_Msk (0x1UL << PWR_CSR1_PVDO_Pos) /*!< 0x00000010 */
  13125. #define PWR_CSR1_PVDO PWR_CSR1_PVDO_Msk /*!< Programmable Voltage Detect Output */
  13126. /******************** Bit definition for PWR_CR2 register *******************/
  13127. #define PWR_CR2_TEMPH_Pos (23U)
  13128. #define PWR_CR2_TEMPH_Msk (0x1UL << PWR_CR2_TEMPH_Pos) /*!< 0x00800000 */
  13129. #define PWR_CR2_TEMPH PWR_CR2_TEMPH_Msk /*!< Monitored temperature level above high threshold */
  13130. #define PWR_CR2_TEMPL_Pos (22U)
  13131. #define PWR_CR2_TEMPL_Msk (0x1UL << PWR_CR2_TEMPL_Pos) /*!< 0x00400000 */
  13132. #define PWR_CR2_TEMPL PWR_CR2_TEMPL_Msk /*!< Monitored temperature level above low threshold */
  13133. #define PWR_CR2_VBATH_Pos (21U)
  13134. #define PWR_CR2_VBATH_Msk (0x1UL << PWR_CR2_VBATH_Pos) /*!< 0x00200000 */
  13135. #define PWR_CR2_VBATH PWR_CR2_VBATH_Msk /*!< Monitored VBAT level above high threshold */
  13136. #define PWR_CR2_VBATL_Pos (20U)
  13137. #define PWR_CR2_VBATL_Msk (0x1UL << PWR_CR2_VBATL_Pos) /*!< 0x00100000 */
  13138. #define PWR_CR2_VBATL PWR_CR2_VBATL_Msk /*!< Monitored VBAT level above low threshold */
  13139. #define PWR_CR2_BRRDY_Pos (16U)
  13140. #define PWR_CR2_BRRDY_Msk (0x1UL << PWR_CR2_BRRDY_Pos) /*!< 0x00010000 */
  13141. #define PWR_CR2_BRRDY PWR_CR2_BRRDY_Msk /*!< Backup regulator ready */
  13142. #define PWR_CR2_MONEN_Pos (4U)
  13143. #define PWR_CR2_MONEN_Msk (0x1UL << PWR_CR2_MONEN_Pos) /*!< 0x00000010 */
  13144. #define PWR_CR2_MONEN PWR_CR2_MONEN_Msk /*!< VBAT and temperature monitoring enable */
  13145. #define PWR_CR2_BREN_Pos (0U)
  13146. #define PWR_CR2_BREN_Msk (0x1UL << PWR_CR2_BREN_Pos) /*!< 0x00000001 */
  13147. #define PWR_CR2_BREN PWR_CR2_BREN_Msk /*!< Backup regulator enable */
  13148. /******************** Bit definition for PWR_CR3 register *******************/
  13149. #define PWR_CR3_USB33RDY_Pos (26U)
  13150. #define PWR_CR3_USB33RDY_Msk (0x1UL << PWR_CR3_USB33RDY_Pos) /*!< 0x04000000 */
  13151. #define PWR_CR3_USB33RDY PWR_CR3_USB33RDY_Msk /*!< USB supply ready */
  13152. #define PWR_CR3_USBREGEN_Pos (25U)
  13153. #define PWR_CR3_USBREGEN_Msk (0x1UL << PWR_CR3_USBREGEN_Pos) /*!< 0x02000000 */
  13154. #define PWR_CR3_USBREGEN PWR_CR3_USBREGEN_Msk /*!< USB regulator enable */
  13155. #define PWR_CR3_USB33DEN_Pos (24U)
  13156. #define PWR_CR3_USB33DEN_Msk (0x1UL << PWR_CR3_USB33DEN_Pos) /*!< 0x01000000 */
  13157. #define PWR_CR3_USB33DEN PWR_CR3_USB33DEN_Msk /*!< VDD33_USB voltage level detector enable */
  13158. #define PWR_CR3_VBRS_Pos (9U)
  13159. #define PWR_CR3_VBRS_Msk (0x1UL << PWR_CR3_VBRS_Pos) /*!< 0x00000200 */
  13160. #define PWR_CR3_VBRS PWR_CR3_VBRS_Msk /*!< VBAT charging resistor selection */
  13161. #define PWR_CR3_VBE_Pos (8U)
  13162. #define PWR_CR3_VBE_Msk (0x1UL << PWR_CR3_VBE_Pos) /*!< 0x00000100 */
  13163. #define PWR_CR3_VBE PWR_CR3_VBE_Msk /*!< VBAT charging enable */
  13164. #define PWR_CR3_SCUEN_Pos (2U)
  13165. #define PWR_CR3_SCUEN_Msk (0x1UL << PWR_CR3_SCUEN_Pos) /*!< 0x00000004 */
  13166. #define PWR_CR3_SCUEN PWR_CR3_SCUEN_Msk /*!< Supply configuration update enable */
  13167. #define PWR_CR3_LDOEN_Pos (1U)
  13168. #define PWR_CR3_LDOEN_Msk (0x1UL << PWR_CR3_LDOEN_Pos) /*!< 0x00000002 */
  13169. #define PWR_CR3_LDOEN PWR_CR3_LDOEN_Msk /*!< Low Drop Output regulator enable */
  13170. #define PWR_CR3_BYPASS_Pos (0U)
  13171. #define PWR_CR3_BYPASS_Msk (0x1UL << PWR_CR3_BYPASS_Pos) /*!< 0x00000001 */
  13172. #define PWR_CR3_BYPASS PWR_CR3_BYPASS_Msk /*!< Power Management Unit bypass */
  13173. /******************** Bit definition for PWR_CPUCR register *****************/
  13174. #define PWR_CPUCR_RUN_D3_Pos (11U)
  13175. #define PWR_CPUCR_RUN_D3_Msk (0x1UL << PWR_CPUCR_RUN_D3_Pos) /*!< 0x00000800 */
  13176. #define PWR_CPUCR_RUN_D3 PWR_CPUCR_RUN_D3_Msk /*!< Keep system D3 domain in RUN mode regardless of the CPU sub-systems modes */
  13177. #define PWR_CPUCR_CSSF_Pos (9U)
  13178. #define PWR_CPUCR_CSSF_Msk (0x1UL << PWR_CPUCR_CSSF_Pos) /*!< 0x00000200 */
  13179. #define PWR_CPUCR_CSSF PWR_CPUCR_CSSF_Msk /*!< Clear D1 domain CPU1 STANDBY, STOP and HOLD flags */
  13180. #define PWR_CPUCR_SBF_D2_Pos (8U)
  13181. #define PWR_CPUCR_SBF_D2_Msk (0x1UL << PWR_CPUCR_SBF_D2_Pos) /*!< 0x00000100 */
  13182. #define PWR_CPUCR_SBF_D2 PWR_CPUCR_SBF_D2_Msk /*!< D2 domain DSTANDBY Flag */
  13183. #define PWR_CPUCR_SBF_D1_Pos (7U)
  13184. #define PWR_CPUCR_SBF_D1_Msk (0x1UL << PWR_CPUCR_SBF_D1_Pos) /*!< 0x00000080 */
  13185. #define PWR_CPUCR_SBF_D1 PWR_CPUCR_SBF_D1_Msk /*!< D1 domain DSTANDBY Flag */
  13186. #define PWR_CPUCR_SBF_Pos (6U)
  13187. #define PWR_CPUCR_SBF_Msk (0x1UL << PWR_CPUCR_SBF_Pos) /*!< 0x00000040 */
  13188. #define PWR_CPUCR_SBF PWR_CPUCR_SBF_Msk /*!< System STANDBY Flag */
  13189. #define PWR_CPUCR_STOPF_Pos (5U)
  13190. #define PWR_CPUCR_STOPF_Msk (0x1UL << PWR_CPUCR_STOPF_Pos) /*!< 0x00000020 */
  13191. #define PWR_CPUCR_STOPF PWR_CPUCR_STOPF_Msk /*!< STOP Flag */
  13192. #define PWR_CPUCR_PDDS_D3_Pos (2U)
  13193. #define PWR_CPUCR_PDDS_D3_Msk (0x1UL << PWR_CPUCR_PDDS_D3_Pos) /*!< 0x00000004 */
  13194. #define PWR_CPUCR_PDDS_D3 PWR_CPUCR_PDDS_D3_Msk /*!< System D3 domain Power Down Deepsleep */
  13195. #define PWR_CPUCR_PDDS_D2_Pos (1U)
  13196. #define PWR_CPUCR_PDDS_D2_Msk (0x1UL << PWR_CPUCR_PDDS_D2_Pos) /*!< 0x00000002 */
  13197. #define PWR_CPUCR_PDDS_D2 PWR_CPUCR_PDDS_D2_Msk /*!< D2 domain Power Down Deepsleep */
  13198. #define PWR_CPUCR_PDDS_D1_Pos (0U)
  13199. #define PWR_CPUCR_PDDS_D1_Msk (0x1UL << PWR_CPUCR_PDDS_D1_Pos) /*!< 0x00000001 */
  13200. #define PWR_CPUCR_PDDS_D1 PWR_CPUCR_PDDS_D1_Msk /*!< D1 domain Power Down Deepsleep selection */
  13201. /******************** Bit definition for PWR_D3CR register ******************/
  13202. #define PWR_D3CR_VOS_Pos (14U)
  13203. #define PWR_D3CR_VOS_Msk (0x3UL << PWR_D3CR_VOS_Pos) /*!< 0x0000C000 */
  13204. #define PWR_D3CR_VOS PWR_D3CR_VOS_Msk /*!< Voltage Scaling selection according performance */
  13205. #define PWR_D3CR_VOS_0 (0x1UL << PWR_D3CR_VOS_Pos) /*!< 0x00004000 */
  13206. #define PWR_D3CR_VOS_1 (0x2UL << PWR_D3CR_VOS_Pos) /*!< 0x00008000 */
  13207. #define PWR_D3CR_VOSRDY_Pos (13U)
  13208. #define PWR_D3CR_VOSRDY_Msk (0x1UL << PWR_D3CR_VOSRDY_Pos) /*!< 0x00002000 */
  13209. #define PWR_D3CR_VOSRDY PWR_D3CR_VOSRDY_Msk /*!< VOS Ready bit for VDD11 Voltage Scaling output selection */
  13210. /****************** Bit definition for PWR_WKUPCR register ******************/
  13211. #define PWR_WKUPCR_WKUPC6_Pos (5U)
  13212. #define PWR_WKUPCR_WKUPC6_Msk (0x1UL << PWR_WKUPCR_WKUPC6_Pos) /*!< 0x00000020 */
  13213. #define PWR_WKUPCR_WKUPC6 PWR_WKUPCR_WKUPC6_Msk /*!< Clear Wakeup Pin Flag 6 */
  13214. #define PWR_WKUPCR_WKUPC4_Pos (3U)
  13215. #define PWR_WKUPCR_WKUPC4_Msk (0x1UL << PWR_WKUPCR_WKUPC4_Pos) /*!< 0x00000008 */
  13216. #define PWR_WKUPCR_WKUPC4 PWR_WKUPCR_WKUPC4_Msk /*!< Clear Wakeup Pin Flag 4 */
  13217. #define PWR_WKUPCR_WKUPC2_Pos (1U)
  13218. #define PWR_WKUPCR_WKUPC2_Msk (0x1UL << PWR_WKUPCR_WKUPC2_Pos) /*!< 0x00000002 */
  13219. #define PWR_WKUPCR_WKUPC2 PWR_WKUPCR_WKUPC2_Msk /*!< Clear Wakeup Pin Flag 2 */
  13220. #define PWR_WKUPCR_WKUPC1_Pos (0U)
  13221. #define PWR_WKUPCR_WKUPC1_Msk (0x1UL << PWR_WKUPCR_WKUPC1_Pos) /*!< 0x00000001 */
  13222. #define PWR_WKUPCR_WKUPC1 PWR_WKUPCR_WKUPC1_Msk /*!< Clear Wakeup Pin Flag 1 */
  13223. /******************** Bit definition for PWR_WKUPFR register ****************/
  13224. #define PWR_WKUPFR_WKUPF6_Pos (5U)
  13225. #define PWR_WKUPFR_WKUPF6_Msk (0x1UL << PWR_WKUPFR_WKUPF6_Pos) /*!< 0x00000020 */
  13226. #define PWR_WKUPFR_WKUPF6 PWR_WKUPFR_WKUPF6_Msk /*!< Wakeup Pin Flag 6 */
  13227. #define PWR_WKUPFR_WKUPF4_Pos (3U)
  13228. #define PWR_WKUPFR_WKUPF4_Msk (0x1UL << PWR_WKUPFR_WKUPF4_Pos) /*!< 0x00000008 */
  13229. #define PWR_WKUPFR_WKUPF4 PWR_WKUPFR_WKUPF4_Msk /*!< Wakeup Pin Flag 4 */
  13230. #define PWR_WKUPFR_WKUPF2_Pos (1U)
  13231. #define PWR_WKUPFR_WKUPF2_Msk (0x1UL << PWR_WKUPFR_WKUPF2_Pos) /*!< 0x00000002 */
  13232. #define PWR_WKUPFR_WKUPF2 PWR_WKUPFR_WKUPF2_Msk /*!< Wakeup Pin Flag 2 */
  13233. #define PWR_WKUPFR_WKUPF1_Pos (0U)
  13234. #define PWR_WKUPFR_WKUPF1_Msk (0x1UL << PWR_WKUPFR_WKUPF1_Pos) /*!< 0x00000001 */
  13235. #define PWR_WKUPFR_WKUPF1 PWR_WKUPFR_WKUPF1_Msk /*!< Wakeup Pin Flag 1 */
  13236. /****************** Bit definition for PWR_WKUPEPR register *****************/
  13237. #define PWR_WKUPEPR_WKUPPUPD6_Pos (26U)
  13238. #define PWR_WKUPEPR_WKUPPUPD6_Msk (0x3UL << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x0C000000 */
  13239. #define PWR_WKUPEPR_WKUPPUPD6 PWR_WKUPEPR_WKUPPUPD6_Msk /*!< Wakeup Pin pull configuration for WKUP6 */
  13240. #define PWR_WKUPEPR_WKUPPUPD6_0 (0x1UL << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x04000000 */
  13241. #define PWR_WKUPEPR_WKUPPUPD6_1 (0x2UL << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x08000000 */
  13242. #define PWR_WKUPEPR_WKUPPUPD4_Pos (22U)
  13243. #define PWR_WKUPEPR_WKUPPUPD4_Msk (0x3UL << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00C00000 */
  13244. #define PWR_WKUPEPR_WKUPPUPD4 PWR_WKUPEPR_WKUPPUPD4_Msk /*!< Wakeup Pin pull configuration for WKUP4 */
  13245. #define PWR_WKUPEPR_WKUPPUPD4_0 (0x1UL << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00400000 */
  13246. #define PWR_WKUPEPR_WKUPPUPD4_1 (0x2UL << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00800000 */
  13247. #define PWR_WKUPEPR_WKUPPUPD2_Pos (18U)
  13248. #define PWR_WKUPEPR_WKUPPUPD2_Msk (0x3UL << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x000C0000 */
  13249. #define PWR_WKUPEPR_WKUPPUPD2 PWR_WKUPEPR_WKUPPUPD2_Msk /*!< Wakeup Pin pull configuration for WKUP2 */
  13250. #define PWR_WKUPEPR_WKUPPUPD2_0 (0x1UL << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x00040000 */
  13251. #define PWR_WKUPEPR_WKUPPUPD2_1 (0x2UL << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x00080000 */
  13252. #define PWR_WKUPEPR_WKUPPUPD1_Pos (16U)
  13253. #define PWR_WKUPEPR_WKUPPUPD1_Msk (0x3UL << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00030000 */
  13254. #define PWR_WKUPEPR_WKUPPUPD1 PWR_WKUPEPR_WKUPPUPD1_Msk /*!< Wakeup Pin pull configuration for WKUP1 */
  13255. #define PWR_WKUPEPR_WKUPPUPD1_0 (0x1UL << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00010000 */
  13256. #define PWR_WKUPEPR_WKUPPUPD1_1 (0x2UL << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00020000 */
  13257. #define PWR_WKUPEPR_WKUPP6_Pos (13U)
  13258. #define PWR_WKUPEPR_WKUPP6_Msk (0x1UL << PWR_WKUPEPR_WKUPP6_Pos) /*!< 0x00002000 */
  13259. #define PWR_WKUPEPR_WKUPP6 PWR_WKUPEPR_WKUPP6_Msk /*!< Wakeup Pin Polarity for WKUP6 */
  13260. #define PWR_WKUPEPR_WKUPP4_Pos (11U)
  13261. #define PWR_WKUPEPR_WKUPP4_Msk (0x1UL << PWR_WKUPEPR_WKUPP4_Pos) /*!< 0x00000800 */
  13262. #define PWR_WKUPEPR_WKUPP4 PWR_WKUPEPR_WKUPP4_Msk /*!< Wakeup Pin Polarity for WKUP4 */
  13263. #define PWR_WKUPEPR_WKUPP2_Pos (9U)
  13264. #define PWR_WKUPEPR_WKUPP2_Msk (0x1UL << PWR_WKUPEPR_WKUPP2_Pos) /*!< 0x00000200 */
  13265. #define PWR_WKUPEPR_WKUPP2 PWR_WKUPEPR_WKUPP2_Msk /*!< Wakeup Pin Polarity for WKUP2 */
  13266. #define PWR_WKUPEPR_WKUPP1_Pos (8U)
  13267. #define PWR_WKUPEPR_WKUPP1_Msk (0x1UL << PWR_WKUPEPR_WKUPP1_Pos) /*!< 0x00000100 */
  13268. #define PWR_WKUPEPR_WKUPP1 PWR_WKUPEPR_WKUPP1_Msk /*!< Wakeup Pin Polarity for WKUP1 */
  13269. #define PWR_WKUPEPR_WKUPEN6_Pos (5U)
  13270. #define PWR_WKUPEPR_WKUPEN6_Msk (0x1UL << PWR_WKUPEPR_WKUPEN6_Pos) /*!< 0x00000020 */
  13271. #define PWR_WKUPEPR_WKUPEN6 PWR_WKUPEPR_WKUPEN6_Msk /*!< Enable Wakeup Pin WKUP6 */
  13272. #define PWR_WKUPEPR_WKUPEN4_Pos (3U)
  13273. #define PWR_WKUPEPR_WKUPEN4_Msk (0x1UL << PWR_WKUPEPR_WKUPEN4_Pos) /*!< 0x00000008 */
  13274. #define PWR_WKUPEPR_WKUPEN4 PWR_WKUPEPR_WKUPEN4_Msk /*!< Enable Wakeup Pin WKUP4 */
  13275. #define PWR_WKUPEPR_WKUPEN2_Pos (1U)
  13276. #define PWR_WKUPEPR_WKUPEN2_Msk (0x1UL << PWR_WKUPEPR_WKUPEN2_Pos) /*!< 0x00000002 */
  13277. #define PWR_WKUPEPR_WKUPEN2 PWR_WKUPEPR_WKUPEN2_Msk /*!< Enable Wakeup Pin WKUP2 */
  13278. #define PWR_WKUPEPR_WKUPEN1_Pos (0U)
  13279. #define PWR_WKUPEPR_WKUPEN1_Msk (0x1UL << PWR_WKUPEPR_WKUPEN1_Pos) /*!< 0x00000001 */
  13280. #define PWR_WKUPEPR_WKUPEN1 PWR_WKUPEPR_WKUPEN1_Msk /*!< Enable Wakeup Pin WKUP1 */
  13281. #define PWR_WKUPEPR_WKUPEN_Pos (0U)
  13282. #define PWR_WKUPEPR_WKUPEN_Msk (0x3FUL << PWR_WKUPEPR_WKUPEN_Pos) /*!< 0x0000003F */
  13283. #define PWR_WKUPEPR_WKUPEN PWR_WKUPEPR_WKUPEN_Msk /*!< Enable all Wakeup Pin */
  13284. /******************************************************************************/
  13285. /* */
  13286. /* Reset and Clock Control */
  13287. /* */
  13288. /******************************************************************************/
  13289. /******************************* RCC VERSION ********************************/
  13290. #define RCC_VER_3_0
  13291. /******************** Bit definition for RCC_CR register ********************/
  13292. #define RCC_CR_HSION_Pos (0U)
  13293. #define RCC_CR_HSION_Msk (0x1UL << RCC_CR_HSION_Pos) /*!< 0x00000001 */
  13294. #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed clock enable */
  13295. #define RCC_CR_HSIKERON_Pos (1U)
  13296. #define RCC_CR_HSIKERON_Msk (0x1UL << RCC_CR_HSIKERON_Pos) /*!< 0x00000002 */
  13297. #define RCC_CR_HSIKERON RCC_CR_HSIKERON_Msk /*!< Internal High Speed clock enable for some IPs Kernel */
  13298. #define RCC_CR_HSIRDY_Pos (2U)
  13299. #define RCC_CR_HSIRDY_Msk (0x1UL << RCC_CR_HSIRDY_Pos) /*!< 0x00000004 */
  13300. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed clock ready flag */
  13301. #define RCC_CR_HSIDIV_Pos (3U)
  13302. #define RCC_CR_HSIDIV_Msk (0x3UL << RCC_CR_HSIDIV_Pos) /*!< 0x00000018 */
  13303. #define RCC_CR_HSIDIV RCC_CR_HSIDIV_Msk /*!< Internal High Speed clock divider selection */
  13304. #define RCC_CR_HSIDIV_1 (0x0UL << RCC_CR_HSIDIV_Pos) /*!< 0x00000000 */
  13305. #define RCC_CR_HSIDIV_2 (0x1UL << RCC_CR_HSIDIV_Pos) /*!< 0x00000008 */
  13306. #define RCC_CR_HSIDIV_4 (0x2UL << RCC_CR_HSIDIV_Pos) /*!< 0x00000010 */
  13307. #define RCC_CR_HSIDIV_8 (0x3UL << RCC_CR_HSIDIV_Pos) /*!< 0x00000018 */
  13308. #define RCC_CR_HSIDIVF_Pos (5U)
  13309. #define RCC_CR_HSIDIVF_Msk (0x1UL << RCC_CR_HSIDIVF_Pos) /*!< 0x00000020 */
  13310. #define RCC_CR_HSIDIVF RCC_CR_HSIDIVF_Msk /*!< HSI Divider flag */
  13311. #define RCC_CR_CSION_Pos (7U)
  13312. #define RCC_CR_CSION_Msk (0x1UL << RCC_CR_CSION_Pos) /*!< 0x00000080 */
  13313. #define RCC_CR_CSION RCC_CR_CSION_Msk /*!< The Internal RC 4MHz oscillator clock enable */
  13314. #define RCC_CR_CSIRDY_Pos (8U)
  13315. #define RCC_CR_CSIRDY_Msk (0x1UL << RCC_CR_CSIRDY_Pos) /*!< 0x00000100 */
  13316. #define RCC_CR_CSIRDY RCC_CR_CSIRDY_Msk /*!< The Internal RC 4MHz oscillator clock ready */
  13317. #define RCC_CR_CSIKERON_Pos (9U)
  13318. #define RCC_CR_CSIKERON_Msk (0x1UL << RCC_CR_CSIKERON_Pos) /*!< 0x00000200 */
  13319. #define RCC_CR_CSIKERON RCC_CR_CSIKERON_Msk /*!< Internal RC 4MHz oscillator clock enable for some IPs Kernel */
  13320. #define RCC_CR_HSI48ON_Pos (12U)
  13321. #define RCC_CR_HSI48ON_Msk (0x1UL << RCC_CR_HSI48ON_Pos) /*!< 0x00001000 */
  13322. #define RCC_CR_HSI48ON RCC_CR_HSI48ON_Msk /*!< HSI48 clock enable clock enable */
  13323. #define RCC_CR_HSI48RDY_Pos (13U)
  13324. #define RCC_CR_HSI48RDY_Msk (0x1UL << RCC_CR_HSI48RDY_Pos) /*!< 0x00002000 */
  13325. #define RCC_CR_HSI48RDY RCC_CR_HSI48RDY_Msk /*!< HSI48 clock ready */
  13326. #define RCC_CR_D1CKRDY_Pos (14U)
  13327. #define RCC_CR_D1CKRDY_Msk (0x1UL << RCC_CR_D1CKRDY_Pos) /*!< 0x00004000 */
  13328. #define RCC_CR_D1CKRDY RCC_CR_D1CKRDY_Msk /*!< D1 domain clocks ready flag */
  13329. #define RCC_CR_D2CKRDY_Pos (15U)
  13330. #define RCC_CR_D2CKRDY_Msk (0x1UL << RCC_CR_D2CKRDY_Pos) /*!< 0x00008000 */
  13331. #define RCC_CR_D2CKRDY RCC_CR_D2CKRDY_Msk /*!< D2 domain clocks ready flag */
  13332. #define RCC_CR_HSEON_Pos (16U)
  13333. #define RCC_CR_HSEON_Msk (0x1UL << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  13334. #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed clock enable */
  13335. #define RCC_CR_HSERDY_Pos (17U)
  13336. #define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  13337. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed clock ready */
  13338. #define RCC_CR_HSEBYP_Pos (18U)
  13339. #define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  13340. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed clock Bypass */
  13341. #define RCC_CR_CSSHSEON_Pos (19U)
  13342. #define RCC_CR_CSSHSEON_Msk (0x1UL << RCC_CR_CSSHSEON_Pos) /*!< 0x00080000 */
  13343. #define RCC_CR_CSSHSEON RCC_CR_CSSHSEON_Msk /*!< HSE Clock security System enable */
  13344. #define RCC_CR_PLL1ON_Pos (24U)
  13345. #define RCC_CR_PLL1ON_Msk (0x1UL << RCC_CR_PLL1ON_Pos) /*!< 0x01000000 */
  13346. #define RCC_CR_PLL1ON RCC_CR_PLL1ON_Msk /*!< System PLL1 clock enable */
  13347. #define RCC_CR_PLL1RDY_Pos (25U)
  13348. #define RCC_CR_PLL1RDY_Msk (0x1UL << RCC_CR_PLL1RDY_Pos) /*!< 0x02000000 */
  13349. #define RCC_CR_PLL1RDY RCC_CR_PLL1RDY_Msk /*!< System PLL1 clock ready */
  13350. #define RCC_CR_PLL2ON_Pos (26U)
  13351. #define RCC_CR_PLL2ON_Msk (0x1UL << RCC_CR_PLL2ON_Pos) /*!< 0x04000000 */
  13352. #define RCC_CR_PLL2ON RCC_CR_PLL2ON_Msk /*!< System PLL2 clock enable */
  13353. #define RCC_CR_PLL2RDY_Pos (27U)
  13354. #define RCC_CR_PLL2RDY_Msk (0x1UL << RCC_CR_PLL2RDY_Pos) /*!< 0x08000000 */
  13355. #define RCC_CR_PLL2RDY RCC_CR_PLL2RDY_Msk /*!< System PLL2 clock ready */
  13356. #define RCC_CR_PLL3ON_Pos (28U)
  13357. #define RCC_CR_PLL3ON_Msk (0x1UL << RCC_CR_PLL3ON_Pos) /*!< 0x10000000 */
  13358. #define RCC_CR_PLL3ON RCC_CR_PLL3ON_Msk /*!< System PLL3 clock enable */
  13359. #define RCC_CR_PLL3RDY_Pos (29U)
  13360. #define RCC_CR_PLL3RDY_Msk (0x1UL << RCC_CR_PLL3RDY_Pos) /*!< 0x20000000 */
  13361. #define RCC_CR_PLL3RDY RCC_CR_PLL3RDY_Msk /*!< System PLL3 clock ready */
  13362. /*Legacy */
  13363. #define RCC_CR_PLLON_Pos (24U)
  13364. #define RCC_CR_PLLON_Msk (0x1UL << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  13365. #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< System PLL clock enable */
  13366. #define RCC_CR_PLLRDY_Pos (25U)
  13367. #define RCC_CR_PLLRDY_Msk (0x1UL << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  13368. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< System PLL clock ready */
  13369. /******************** Bit definition for RCC_HSICFGR register ***************/
  13370. /*!< HSICAL configuration */
  13371. #define RCC_HSICFGR_HSICAL_Pos (0U)
  13372. #define RCC_HSICFGR_HSICAL_Msk (0xFFFUL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000FFF */
  13373. #define RCC_HSICFGR_HSICAL RCC_HSICFGR_HSICAL_Msk /*!< HSICAL[11:0] bits */
  13374. #define RCC_HSICFGR_HSICAL_0 (0x001UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000001 */
  13375. #define RCC_HSICFGR_HSICAL_1 (0x002UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000002 */
  13376. #define RCC_HSICFGR_HSICAL_2 (0x004UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000004 */
  13377. #define RCC_HSICFGR_HSICAL_3 (0x008UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000008 */
  13378. #define RCC_HSICFGR_HSICAL_4 (0x010UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000010 */
  13379. #define RCC_HSICFGR_HSICAL_5 (0x020UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000020 */
  13380. #define RCC_HSICFGR_HSICAL_6 (0x040UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000040 */
  13381. #define RCC_HSICFGR_HSICAL_7 (0x080UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000080 */
  13382. #define RCC_HSICFGR_HSICAL_8 (0x100UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000100 */
  13383. #define RCC_HSICFGR_HSICAL_9 (0x200UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000200 */
  13384. #define RCC_HSICFGR_HSICAL_10 (0x400UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000400 */
  13385. #define RCC_HSICFGR_HSICAL_11 (0x800UL << RCC_HSICFGR_HSICAL_Pos) /*!< 0x00000800 */
  13386. /*!< HSITRIM configuration */
  13387. #define RCC_HSICFGR_HSITRIM_Pos (24U)
  13388. #define RCC_HSICFGR_HSITRIM_Msk (0x7FUL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x7F000000 */
  13389. #define RCC_HSICFGR_HSITRIM RCC_HSICFGR_HSITRIM_Msk /*!< HSITRIM[6:0] bits */
  13390. #define RCC_HSICFGR_HSITRIM_0 (0x01UL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x01000000 */
  13391. #define RCC_HSICFGR_HSITRIM_1 (0x02UL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x02000000 */
  13392. #define RCC_HSICFGR_HSITRIM_2 (0x04UL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x04000000 */
  13393. #define RCC_HSICFGR_HSITRIM_3 (0x08UL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x08000000 */
  13394. #define RCC_HSICFGR_HSITRIM_4 (0x10UL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x10000000 */
  13395. #define RCC_HSICFGR_HSITRIM_5 (0x20UL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x20000000 */
  13396. #define RCC_HSICFGR_HSITRIM_6 (0x40UL << RCC_HSICFGR_HSITRIM_Pos) /*!< 0x40000000 */
  13397. /******************** Bit definition for RCC_CRRCR register *****************/
  13398. /*!< HSI48CAL configuration */
  13399. #define RCC_CRRCR_HSI48CAL_Pos (0U)
  13400. #define RCC_CRRCR_HSI48CAL_Msk (0x3FFUL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x000003FF */
  13401. #define RCC_CRRCR_HSI48CAL RCC_CRRCR_HSI48CAL_Msk /*!< HSI48CAL[9:0] bits */
  13402. #define RCC_CRRCR_HSI48CAL_0 (0x001UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000001 */
  13403. #define RCC_CRRCR_HSI48CAL_1 (0x002UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000002 */
  13404. #define RCC_CRRCR_HSI48CAL_2 (0x004UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000004 */
  13405. #define RCC_CRRCR_HSI48CAL_3 (0x008UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000008 */
  13406. #define RCC_CRRCR_HSI48CAL_4 (0x010UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000010 */
  13407. #define RCC_CRRCR_HSI48CAL_5 (0x020UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000020 */
  13408. #define RCC_CRRCR_HSI48CAL_6 (0x040UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000040 */
  13409. #define RCC_CRRCR_HSI48CAL_7 (0x080UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000080 */
  13410. #define RCC_CRRCR_HSI48CAL_8 (0x100UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000100 */
  13411. #define RCC_CRRCR_HSI48CAL_9 (0x200UL << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000200 */
  13412. /******************** Bit definition for RCC_CSICFGR register *****************/
  13413. /*!< CSICAL configuration */
  13414. #define RCC_CSICFGR_CSICAL_Pos (0U)
  13415. #define RCC_CSICFGR_CSICAL_Msk (0xFFUL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x000000FF */
  13416. #define RCC_CSICFGR_CSICAL RCC_CSICFGR_CSICAL_Msk /*!< CSICAL[7:0] bits */
  13417. #define RCC_CSICFGR_CSICAL_0 (0x01UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000001 */
  13418. #define RCC_CSICFGR_CSICAL_1 (0x02UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000002 */
  13419. #define RCC_CSICFGR_CSICAL_2 (0x04UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000004 */
  13420. #define RCC_CSICFGR_CSICAL_3 (0x08UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000008 */
  13421. #define RCC_CSICFGR_CSICAL_4 (0x10UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000010 */
  13422. #define RCC_CSICFGR_CSICAL_5 (0x20UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000020 */
  13423. #define RCC_CSICFGR_CSICAL_6 (0x40UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000040 */
  13424. #define RCC_CSICFGR_CSICAL_7 (0x80UL << RCC_CSICFGR_CSICAL_Pos) /*!< 0x00000080 */
  13425. /*!< CSITRIM configuration */
  13426. #define RCC_CSICFGR_CSITRIM_Pos (24U)
  13427. #define RCC_CSICFGR_CSITRIM_Msk (0x3FUL << RCC_CSICFGR_CSITRIM_Pos) /*!< 0x3F000000 */
  13428. #define RCC_CSICFGR_CSITRIM RCC_CSICFGR_CSITRIM_Msk /*!< CSITRIM[5:0] bits */
  13429. #define RCC_CSICFGR_CSITRIM_0 (0x01UL << RCC_CSICFGR_CSITRIM_Pos) /*!< 0x01000000 */
  13430. #define RCC_CSICFGR_CSITRIM_1 (0x02UL << RCC_CSICFGR_CSITRIM_Pos) /*!< 0x02000000 */
  13431. #define RCC_CSICFGR_CSITRIM_2 (0x04UL << RCC_CSICFGR_CSITRIM_Pos) /*!< 0x04000000 */
  13432. #define RCC_CSICFGR_CSITRIM_3 (0x08UL << RCC_CSICFGR_CSITRIM_Pos) /*!< 0x08000000 */
  13433. #define RCC_CSICFGR_CSITRIM_4 (0x10UL << RCC_CSICFGR_CSITRIM_Pos) /*!< 0x10000000 */
  13434. #define RCC_CSICFGR_CSITRIM_5 (0x20UL << RCC_CSICFGR_CSITRIM_Pos) /*!< 0x20000000 */
  13435. /******************** Bit definition for RCC_CFGR register ******************/
  13436. /*!< SW configuration */
  13437. #define RCC_CFGR_SW_Pos (0U)
  13438. #define RCC_CFGR_SW_Msk (0x7UL << RCC_CFGR_SW_Pos) /*!< 0x00000007 */
  13439. #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[2:0] bits (System clock Switch) */
  13440. #define RCC_CFGR_SW_0 (0x1UL << RCC_CFGR_SW_Pos) /*!< 0x00000001 */
  13441. #define RCC_CFGR_SW_1 (0x2UL << RCC_CFGR_SW_Pos) /*!< 0x00000002 */
  13442. #define RCC_CFGR_SW_2 (0x4UL << RCC_CFGR_SW_Pos) /*!< 0x00000004 */
  13443. #define RCC_CFGR_SW_HSI (0x00000000UL) /*!< HSI selection as system clock */
  13444. #define RCC_CFGR_SW_CSI (0x00000001UL) /*!< CSI selection as system clock */
  13445. #define RCC_CFGR_SW_HSE (0x00000002UL) /*!< HSE selection as system clock */
  13446. #define RCC_CFGR_SW_PLL1 (0x00000003UL) /*!< PLL1 selection as system clock */
  13447. /*!< SWS configuration */
  13448. #define RCC_CFGR_SWS_Pos (3U)
  13449. #define RCC_CFGR_SWS_Msk (0x7UL << RCC_CFGR_SWS_Pos) /*!< 0x00000038 */
  13450. #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[2:0] bits (System Clock Switch Status) */
  13451. #define RCC_CFGR_SWS_0 (0x1UL << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */
  13452. #define RCC_CFGR_SWS_1 (0x2UL << RCC_CFGR_SWS_Pos) /*!< 0x00000010 */
  13453. #define RCC_CFGR_SWS_2 (0x4UL << RCC_CFGR_SWS_Pos) /*!< 0x00000020 */
  13454. #define RCC_CFGR_SWS_HSI (0x00000000UL) /*!< HSI used as system clock */
  13455. #define RCC_CFGR_SWS_CSI (0x00000008UL) /*!< CSI used as system clock */
  13456. #define RCC_CFGR_SWS_HSE (0x00000010UL) /*!< HSE used as system clock */
  13457. #define RCC_CFGR_SWS_PLL1 (0x00000018UL) /*!< PLL1 used as system clock */
  13458. #define RCC_CFGR_STOPWUCK_Pos (6U)
  13459. #define RCC_CFGR_STOPWUCK_Msk (0x1UL << RCC_CFGR_STOPWUCK_Pos) /*!< 0x00000040 */
  13460. #define RCC_CFGR_STOPWUCK RCC_CFGR_STOPWUCK_Msk /*!< Wake Up from stop and CSS backup clock selection */
  13461. #define RCC_CFGR_STOPKERWUCK_Pos (7U)
  13462. #define RCC_CFGR_STOPKERWUCK_Msk (0x1UL << RCC_CFGR_STOPKERWUCK_Pos) /*!< 0x00000080 */
  13463. #define RCC_CFGR_STOPKERWUCK RCC_CFGR_STOPKERWUCK_Msk /*!< Kernel Clock Selection after a Wake Up from STOP */
  13464. /*!< RTCPRE configuration */
  13465. #define RCC_CFGR_RTCPRE_Pos (8U)
  13466. #define RCC_CFGR_RTCPRE_Msk (0x3FUL << RCC_CFGR_RTCPRE_Pos)
  13467. #define RCC_CFGR_RTCPRE RCC_CFGR_RTCPRE_Msk /*!< 0x00003F00 */
  13468. #define RCC_CFGR_RTCPRE_0 (0x1UL << RCC_CFGR_RTCPRE_Pos) /*!< 0x00000100 */
  13469. #define RCC_CFGR_RTCPRE_1 (0x2UL << RCC_CFGR_RTCPRE_Pos) /*!< 0x00000200 */
  13470. #define RCC_CFGR_RTCPRE_2 (0x4UL << RCC_CFGR_RTCPRE_Pos) /*!< 0x00000400 */
  13471. #define RCC_CFGR_RTCPRE_3 (0x8UL << RCC_CFGR_RTCPRE_Pos) /*!< 0x00000800 */
  13472. #define RCC_CFGR_RTCPRE_4 (0x10UL << RCC_CFGR_RTCPRE_Pos) /*!< 0x00001000 */
  13473. #define RCC_CFGR_RTCPRE_5 (0x20UL << RCC_CFGR_RTCPRE_Pos) /*!< 0x00002000 */
  13474. /*!< TIMPRE configuration */
  13475. #define RCC_CFGR_TIMPRE_Pos (15U)
  13476. #define RCC_CFGR_TIMPRE_Msk (0x1UL << RCC_CFGR_TIMPRE_Pos)
  13477. #define RCC_CFGR_TIMPRE RCC_CFGR_TIMPRE_Msk /*!< 0x00008000 */
  13478. /*!< MCO1 configuration */
  13479. #define RCC_CFGR_MCO1_Pos (22U)
  13480. #define RCC_CFGR_MCO1_Msk (0x7UL << RCC_CFGR_MCO1_Pos)
  13481. #define RCC_CFGR_MCO1 RCC_CFGR_MCO1_Msk /*!< 0x01C00000 */
  13482. #define RCC_CFGR_MCO1_0 (0x1UL << RCC_CFGR_MCO1_Pos) /*!< 0x00400000 */
  13483. #define RCC_CFGR_MCO1_1 (0x2UL << RCC_CFGR_MCO1_Pos) /*!< 0x00800000 */
  13484. #define RCC_CFGR_MCO1_2 (0x4UL << RCC_CFGR_MCO1_Pos) /*!< 0x01000000 */
  13485. #define RCC_CFGR_MCO1PRE_Pos (18U)
  13486. #define RCC_CFGR_MCO1PRE_Msk (0xFUL << RCC_CFGR_MCO1PRE_Pos)
  13487. #define RCC_CFGR_MCO1PRE RCC_CFGR_MCO1PRE_Msk /*!< 0x003C0000 */
  13488. #define RCC_CFGR_MCO1PRE_0 (0x1UL << RCC_CFGR_MCO1PRE_Pos) /*!< 0x00040000 */
  13489. #define RCC_CFGR_MCO1PRE_1 (0x2UL << RCC_CFGR_MCO1PRE_Pos) /*!< 0x00080000 */
  13490. #define RCC_CFGR_MCO1PRE_2 (0x4UL << RCC_CFGR_MCO1PRE_Pos) /*!< 0x00100000 */
  13491. #define RCC_CFGR_MCO1PRE_3 (0x8UL << RCC_CFGR_MCO1PRE_Pos) /*!< 0x00200000 */
  13492. #define RCC_CFGR_MCO2PRE_Pos (25U)
  13493. #define RCC_CFGR_MCO2PRE_Msk (0xFUL << RCC_CFGR_MCO2PRE_Pos)
  13494. #define RCC_CFGR_MCO2PRE RCC_CFGR_MCO2PRE_Msk /*!< 0x1E000000 */
  13495. #define RCC_CFGR_MCO2PRE_0 (0x1UL << RCC_CFGR_MCO2PRE_Pos) /*!< 0x02000000 */
  13496. #define RCC_CFGR_MCO2PRE_1 (0x2UL << RCC_CFGR_MCO2PRE_Pos) /*!< 0x04000000 */
  13497. #define RCC_CFGR_MCO2PRE_2 (0x4UL << RCC_CFGR_MCO2PRE_Pos) /*!< 0x08000000 */
  13498. #define RCC_CFGR_MCO2PRE_3 (0x8UL << RCC_CFGR_MCO2PRE_Pos) /*!< 0x10000000 */
  13499. #define RCC_CFGR_MCO2_Pos (29U)
  13500. #define RCC_CFGR_MCO2_Msk (0x7UL << RCC_CFGR_MCO2_Pos)
  13501. #define RCC_CFGR_MCO2 RCC_CFGR_MCO2_Msk /*!< 0xE0000000 */
  13502. #define RCC_CFGR_MCO2_0 (0x1UL << RCC_CFGR_MCO2_Pos) /*!< 0x20000000 */
  13503. #define RCC_CFGR_MCO2_1 (0x2UL << RCC_CFGR_MCO2_Pos) /*!< 0x40000000 */
  13504. #define RCC_CFGR_MCO2_2 (0x4UL << RCC_CFGR_MCO2_Pos) /*!< 0x80000000 */
  13505. /******************** Bit definition for RCC_D1CFGR register ******************/
  13506. /*!< D1HPRE configuration */
  13507. #define RCC_D1CFGR_HPRE_Pos (0U)
  13508. #define RCC_D1CFGR_HPRE_Msk (0xFUL << RCC_D1CFGR_HPRE_Pos) /*!< 0x0000000F */
  13509. #define RCC_D1CFGR_HPRE RCC_D1CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB3 prescaler) */
  13510. #define RCC_D1CFGR_HPRE_0 (0x1UL << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000001 */
  13511. #define RCC_D1CFGR_HPRE_1 (0x2UL << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000002 */
  13512. #define RCC_D1CFGR_HPRE_2 (0x4UL << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000004 */
  13513. #define RCC_D1CFGR_HPRE_3 (0x8UL << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000008 */
  13514. #define RCC_D1CFGR_HPRE_DIV1 ((uint32_t)0x00000000) /*!< AHB3 Clock not divided */
  13515. #define RCC_D1CFGR_HPRE_DIV2_Pos (3U)
  13516. #define RCC_D1CFGR_HPRE_DIV2_Msk (0x1UL << RCC_D1CFGR_HPRE_DIV2_Pos) /*!< 0x00000008 */
  13517. #define RCC_D1CFGR_HPRE_DIV2 RCC_D1CFGR_HPRE_DIV2_Msk /*!< AHB3 Clock divided by 2 */
  13518. #define RCC_D1CFGR_HPRE_DIV4_Pos (0U)
  13519. #define RCC_D1CFGR_HPRE_DIV4_Msk (0x9UL << RCC_D1CFGR_HPRE_DIV4_Pos) /*!< 0x00000009 */
  13520. #define RCC_D1CFGR_HPRE_DIV4 RCC_D1CFGR_HPRE_DIV4_Msk /*!< AHB3 Clock divided by 4 */
  13521. #define RCC_D1CFGR_HPRE_DIV8_Pos (1U)
  13522. #define RCC_D1CFGR_HPRE_DIV8_Msk (0x5UL << RCC_D1CFGR_HPRE_DIV8_Pos) /*!< 0x0000000A */
  13523. #define RCC_D1CFGR_HPRE_DIV8 RCC_D1CFGR_HPRE_DIV8_Msk /*!< AHB3 Clock divided by 8 */
  13524. #define RCC_D1CFGR_HPRE_DIV16_Pos (0U)
  13525. #define RCC_D1CFGR_HPRE_DIV16_Msk (0xBUL << RCC_D1CFGR_HPRE_DIV16_Pos) /*!< 0x0000000B */
  13526. #define RCC_D1CFGR_HPRE_DIV16 RCC_D1CFGR_HPRE_DIV16_Msk /*!< AHB3 Clock divided by 16 */
  13527. #define RCC_D1CFGR_HPRE_DIV64_Pos (2U)
  13528. #define RCC_D1CFGR_HPRE_DIV64_Msk (0x3UL << RCC_D1CFGR_HPRE_DIV64_Pos) /*!< 0x0000000C */
  13529. #define RCC_D1CFGR_HPRE_DIV64 RCC_D1CFGR_HPRE_DIV64_Msk /*!< AHB3 Clock divided by 64 */
  13530. #define RCC_D1CFGR_HPRE_DIV128_Pos (0U)
  13531. #define RCC_D1CFGR_HPRE_DIV128_Msk (0xDUL << RCC_D1CFGR_HPRE_DIV128_Pos) /*!< 0x0000000D */
  13532. #define RCC_D1CFGR_HPRE_DIV128 RCC_D1CFGR_HPRE_DIV128_Msk /*!< AHB3 Clock divided by 128 */
  13533. #define RCC_D1CFGR_HPRE_DIV256_Pos (1U)
  13534. #define RCC_D1CFGR_HPRE_DIV256_Msk (0x7UL << RCC_D1CFGR_HPRE_DIV256_Pos) /*!< 0x0000000E */
  13535. #define RCC_D1CFGR_HPRE_DIV256 RCC_D1CFGR_HPRE_DIV256_Msk /*!< AHB3 Clock divided by 256 */
  13536. #define RCC_D1CFGR_HPRE_DIV512_Pos (0U)
  13537. #define RCC_D1CFGR_HPRE_DIV512_Msk (0xFUL << RCC_D1CFGR_HPRE_DIV512_Pos) /*!< 0x0000000F */
  13538. #define RCC_D1CFGR_HPRE_DIV512 RCC_D1CFGR_HPRE_DIV512_Msk /*!< AHB3 Clock divided by 512 */
  13539. /*!< D1PPRE configuration */
  13540. #define RCC_D1CFGR_D1PPRE_Pos (4U)
  13541. #define RCC_D1CFGR_D1PPRE_Msk (0x7UL << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000070 */
  13542. #define RCC_D1CFGR_D1PPRE RCC_D1CFGR_D1PPRE_Msk /*!< D1PRE[2:0] bits (APB3 prescaler) */
  13543. #define RCC_D1CFGR_D1PPRE_0 (0x1UL << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000010 */
  13544. #define RCC_D1CFGR_D1PPRE_1 (0x2UL << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000020 */
  13545. #define RCC_D1CFGR_D1PPRE_2 (0x4UL << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000040 */
  13546. #define RCC_D1CFGR_D1PPRE_DIV1 ((uint32_t)0x00000000) /*!< APB3 clock not divided */
  13547. #define RCC_D1CFGR_D1PPRE_DIV2_Pos (6U)
  13548. #define RCC_D1CFGR_D1PPRE_DIV2_Msk (0x1UL << RCC_D1CFGR_D1PPRE_DIV2_Pos) /*!< 0x00000040 */
  13549. #define RCC_D1CFGR_D1PPRE_DIV2 RCC_D1CFGR_D1PPRE_DIV2_Msk /*!< APB3 clock divided by 2 */
  13550. #define RCC_D1CFGR_D1PPRE_DIV4_Pos (4U)
  13551. #define RCC_D1CFGR_D1PPRE_DIV4_Msk (0x5UL << RCC_D1CFGR_D1PPRE_DIV4_Pos) /*!< 0x00000050 */
  13552. #define RCC_D1CFGR_D1PPRE_DIV4 RCC_D1CFGR_D1PPRE_DIV4_Msk /*!< APB3 clock divided by 4 */
  13553. #define RCC_D1CFGR_D1PPRE_DIV8_Pos (5U)
  13554. #define RCC_D1CFGR_D1PPRE_DIV8_Msk (0x3UL << RCC_D1CFGR_D1PPRE_DIV8_Pos) /*!< 0x00000060 */
  13555. #define RCC_D1CFGR_D1PPRE_DIV8 RCC_D1CFGR_D1PPRE_DIV8_Msk /*!< APB3 clock divided by 8 */
  13556. #define RCC_D1CFGR_D1PPRE_DIV16_Pos (4U)
  13557. #define RCC_D1CFGR_D1PPRE_DIV16_Msk (0x7UL << RCC_D1CFGR_D1PPRE_DIV16_Pos) /*!< 0x00000070 */
  13558. #define RCC_D1CFGR_D1PPRE_DIV16 RCC_D1CFGR_D1PPRE_DIV16_Msk /*!< APB3 clock divided by 16 */
  13559. #define RCC_D1CFGR_D1CPRE_Pos (8U)
  13560. #define RCC_D1CFGR_D1CPRE_Msk (0xFUL << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000F00 */
  13561. #define RCC_D1CFGR_D1CPRE RCC_D1CFGR_D1CPRE_Msk /*!< D1CPRE[2:0] bits (Domain 1 Core prescaler) */
  13562. #define RCC_D1CFGR_D1CPRE_0 (0x1UL << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000100 */
  13563. #define RCC_D1CFGR_D1CPRE_1 (0x2UL << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000200 */
  13564. #define RCC_D1CFGR_D1CPRE_2 (0x4UL << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000400 */
  13565. #define RCC_D1CFGR_D1CPRE_3 (0x8UL << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000800 */
  13566. #define RCC_D1CFGR_D1CPRE_DIV1 ((uint32_t)0x00000000) /*!< Domain 1 Core clock not divided */
  13567. #define RCC_D1CFGR_D1CPRE_DIV2_Pos (11U)
  13568. #define RCC_D1CFGR_D1CPRE_DIV2_Msk (0x1UL << RCC_D1CFGR_D1CPRE_DIV2_Pos) /*!< 0x00000800 */
  13569. #define RCC_D1CFGR_D1CPRE_DIV2 RCC_D1CFGR_D1CPRE_DIV2_Msk /*!< Domain 1 Core clock divided by 2 */
  13570. #define RCC_D1CFGR_D1CPRE_DIV4_Pos (8U)
  13571. #define RCC_D1CFGR_D1CPRE_DIV4_Msk (0x9UL << RCC_D1CFGR_D1CPRE_DIV4_Pos) /*!< 0x00000900 */
  13572. #define RCC_D1CFGR_D1CPRE_DIV4 RCC_D1CFGR_D1CPRE_DIV4_Msk /*!< Domain 1 Core clock divided by 4 */
  13573. #define RCC_D1CFGR_D1CPRE_DIV8_Pos (9U)
  13574. #define RCC_D1CFGR_D1CPRE_DIV8_Msk (0x5UL << RCC_D1CFGR_D1CPRE_DIV8_Pos) /*!< 0x00000A00 */
  13575. #define RCC_D1CFGR_D1CPRE_DIV8 RCC_D1CFGR_D1CPRE_DIV8_Msk /*!< Domain 1 Core clock divided by 8 */
  13576. #define RCC_D1CFGR_D1CPRE_DIV16_Pos (8U)
  13577. #define RCC_D1CFGR_D1CPRE_DIV16_Msk (0xBUL << RCC_D1CFGR_D1CPRE_DIV16_Pos) /*!< 0x00000B00 */
  13578. #define RCC_D1CFGR_D1CPRE_DIV16 RCC_D1CFGR_D1CPRE_DIV16_Msk /*!< Domain 1 Core clock divided by 16 */
  13579. #define RCC_D1CFGR_D1CPRE_DIV64_Pos (10U)
  13580. #define RCC_D1CFGR_D1CPRE_DIV64_Msk (0x3UL << RCC_D1CFGR_D1CPRE_DIV64_Pos) /*!< 0x00000C00 */
  13581. #define RCC_D1CFGR_D1CPRE_DIV64 RCC_D1CFGR_D1CPRE_DIV64_Msk /*!< Domain 1 Core clock divided by 64 */
  13582. #define RCC_D1CFGR_D1CPRE_DIV128_Pos (8U)
  13583. #define RCC_D1CFGR_D1CPRE_DIV128_Msk (0xDUL << RCC_D1CFGR_D1CPRE_DIV128_Pos) /*!< 0x00000D00 */
  13584. #define RCC_D1CFGR_D1CPRE_DIV128 RCC_D1CFGR_D1CPRE_DIV128_Msk /*!< Domain 1 Core clock divided by 128 */
  13585. #define RCC_D1CFGR_D1CPRE_DIV256_Pos (9U)
  13586. #define RCC_D1CFGR_D1CPRE_DIV256_Msk (0x7UL << RCC_D1CFGR_D1CPRE_DIV256_Pos) /*!< 0x00000E00 */
  13587. #define RCC_D1CFGR_D1CPRE_DIV256 RCC_D1CFGR_D1CPRE_DIV256_Msk /*!< Domain 1 Core clock divided by 256 */
  13588. #define RCC_D1CFGR_D1CPRE_DIV512_Pos (8U)
  13589. #define RCC_D1CFGR_D1CPRE_DIV512_Msk (0xFUL << RCC_D1CFGR_D1CPRE_DIV512_Pos) /*!< 0x00000F00 */
  13590. #define RCC_D1CFGR_D1CPRE_DIV512 RCC_D1CFGR_D1CPRE_DIV512_Msk /*!< Domain 1 Core clock divided by 512 */
  13591. /******************** Bit definition for RCC_D2CFGR register ******************/
  13592. /*!< D2PPRE1 configuration */
  13593. #define RCC_D2CFGR_D2PPRE1_Pos (4U)
  13594. #define RCC_D2CFGR_D2PPRE1_Msk (0x7UL << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000070 */
  13595. #define RCC_D2CFGR_D2PPRE1 RCC_D2CFGR_D2PPRE1_Msk /*!< D1PPRE1[2:0] bits (APB1 prescaler) */
  13596. #define RCC_D2CFGR_D2PPRE1_0 (0x1UL << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000010 */
  13597. #define RCC_D2CFGR_D2PPRE1_1 (0x2UL << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000020 */
  13598. #define RCC_D2CFGR_D2PPRE1_2 (0x4UL << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000040 */
  13599. #define RCC_D2CFGR_D2PPRE1_DIV1 ((uint32_t)0x00000000) /*!< APB1 clock not divided */
  13600. #define RCC_D2CFGR_D2PPRE1_DIV2_Pos (6U)
  13601. #define RCC_D2CFGR_D2PPRE1_DIV2_Msk (0x1UL << RCC_D2CFGR_D2PPRE1_DIV2_Pos) /*!< 0x00000040 */
  13602. #define RCC_D2CFGR_D2PPRE1_DIV2 RCC_D2CFGR_D2PPRE1_DIV2_Msk /*!< APB1 clock divided by 2 */
  13603. #define RCC_D2CFGR_D2PPRE1_DIV4_Pos (4U)
  13604. #define RCC_D2CFGR_D2PPRE1_DIV4_Msk (0x5UL << RCC_D2CFGR_D2PPRE1_DIV4_Pos) /*!< 0x00000050 */
  13605. #define RCC_D2CFGR_D2PPRE1_DIV4 RCC_D2CFGR_D2PPRE1_DIV4_Msk /*!< APB1 clock divided by 4 */
  13606. #define RCC_D2CFGR_D2PPRE1_DIV8_Pos (5U)
  13607. #define RCC_D2CFGR_D2PPRE1_DIV8_Msk (0x3UL << RCC_D2CFGR_D2PPRE1_DIV8_Pos) /*!< 0x00000060 */
  13608. #define RCC_D2CFGR_D2PPRE1_DIV8 RCC_D2CFGR_D2PPRE1_DIV8_Msk /*!< APB1 clock divided by 8 */
  13609. #define RCC_D2CFGR_D2PPRE1_DIV16_Pos (4U)
  13610. #define RCC_D2CFGR_D2PPRE1_DIV16_Msk (0x7UL << RCC_D2CFGR_D2PPRE1_DIV16_Pos) /*!< 0x00000070 */
  13611. #define RCC_D2CFGR_D2PPRE1_DIV16 RCC_D2CFGR_D2PPRE1_DIV16_Msk /*!< APB1 clock divided by 16 */
  13612. /*!< D2PPRE2 configuration */
  13613. #define RCC_D2CFGR_D2PPRE2_Pos (8U)
  13614. #define RCC_D2CFGR_D2PPRE2_Msk (0x7UL << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000700 */
  13615. #define RCC_D2CFGR_D2PPRE2 RCC_D2CFGR_D2PPRE2_Msk /*!< D2PPRE2[2:0] bits (APB2 prescaler) */
  13616. #define RCC_D2CFGR_D2PPRE2_0 (0x1UL << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000100 */
  13617. #define RCC_D2CFGR_D2PPRE2_1 (0x2UL << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000200 */
  13618. #define RCC_D2CFGR_D2PPRE2_2 (0x4UL << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000400 */
  13619. #define RCC_D2CFGR_D2PPRE2_DIV1 ((uint32_t)0x00000000) /*!< APB2 clock not divided */
  13620. #define RCC_D2CFGR_D2PPRE2_DIV2_Pos (10U)
  13621. #define RCC_D2CFGR_D2PPRE2_DIV2_Msk (0x1UL << RCC_D2CFGR_D2PPRE2_DIV2_Pos) /*!< 0x00000400 */
  13622. #define RCC_D2CFGR_D2PPRE2_DIV2 RCC_D2CFGR_D2PPRE2_DIV2_Msk /*!< APB2 clock divided by 2 */
  13623. #define RCC_D2CFGR_D2PPRE2_DIV4_Pos (8U)
  13624. #define RCC_D2CFGR_D2PPRE2_DIV4_Msk (0x5UL << RCC_D2CFGR_D2PPRE2_DIV4_Pos) /*!< 0x00000500 */
  13625. #define RCC_D2CFGR_D2PPRE2_DIV4 RCC_D2CFGR_D2PPRE2_DIV4_Msk /*!< APB2 clock divided by 4 */
  13626. #define RCC_D2CFGR_D2PPRE2_DIV8_Pos (9U)
  13627. #define RCC_D2CFGR_D2PPRE2_DIV8_Msk (0x3UL << RCC_D2CFGR_D2PPRE2_DIV8_Pos) /*!< 0x00000600 */
  13628. #define RCC_D2CFGR_D2PPRE2_DIV8 RCC_D2CFGR_D2PPRE2_DIV8_Msk /*!< APB2 clock divided by 8 */
  13629. #define RCC_D2CFGR_D2PPRE2_DIV16_Pos (8U)
  13630. #define RCC_D2CFGR_D2PPRE2_DIV16_Msk (0x7UL << RCC_D2CFGR_D2PPRE2_DIV16_Pos) /*!< 0x00000700 */
  13631. #define RCC_D2CFGR_D2PPRE2_DIV16 RCC_D2CFGR_D2PPRE2_DIV16_Msk /*!< APB2 clock divided by 16 */
  13632. /******************** Bit definition for RCC_D3CFGR register ******************/
  13633. /*!< D3PPRE configuration */
  13634. #define RCC_D3CFGR_D3PPRE_Pos (4U)
  13635. #define RCC_D3CFGR_D3PPRE_Msk (0x7UL << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000070 */
  13636. #define RCC_D3CFGR_D3PPRE RCC_D3CFGR_D3PPRE_Msk /*!< D3PPRE1[2:0] bits (APB4 prescaler) */
  13637. #define RCC_D3CFGR_D3PPRE_0 (0x1UL << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000010 */
  13638. #define RCC_D3CFGR_D3PPRE_1 (0x2UL << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000020 */
  13639. #define RCC_D3CFGR_D3PPRE_2 (0x4UL << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000040 */
  13640. #define RCC_D3CFGR_D3PPRE_DIV1 ((uint32_t)0x00000000) /*!< APB4 clock not divided */
  13641. #define RCC_D3CFGR_D3PPRE_DIV2_Pos (6U)
  13642. #define RCC_D3CFGR_D3PPRE_DIV2_Msk (0x1UL << RCC_D3CFGR_D3PPRE_DIV2_Pos) /*!< 0x00000040 */
  13643. #define RCC_D3CFGR_D3PPRE_DIV2 RCC_D3CFGR_D3PPRE_DIV2_Msk /*!< APB4 clock divided by 2 */
  13644. #define RCC_D3CFGR_D3PPRE_DIV4_Pos (4U)
  13645. #define RCC_D3CFGR_D3PPRE_DIV4_Msk (0x5UL << RCC_D3CFGR_D3PPRE_DIV4_Pos) /*!< 0x00000050 */
  13646. #define RCC_D3CFGR_D3PPRE_DIV4 RCC_D3CFGR_D3PPRE_DIV4_Msk /*!< APB4 clock divided by 4 */
  13647. #define RCC_D3CFGR_D3PPRE_DIV8_Pos (5U)
  13648. #define RCC_D3CFGR_D3PPRE_DIV8_Msk (0x3UL << RCC_D3CFGR_D3PPRE_DIV8_Pos) /*!< 0x00000060 */
  13649. #define RCC_D3CFGR_D3PPRE_DIV8 RCC_D3CFGR_D3PPRE_DIV8_Msk /*!< APB4 clock divided by 8 */
  13650. #define RCC_D3CFGR_D3PPRE_DIV16_Pos (4U)
  13651. #define RCC_D3CFGR_D3PPRE_DIV16_Msk (0x7UL << RCC_D3CFGR_D3PPRE_DIV16_Pos) /*!< 0x00000070 */
  13652. #define RCC_D3CFGR_D3PPRE_DIV16 RCC_D3CFGR_D3PPRE_DIV16_Msk /*!< APB4 clock divided by 16 */
  13653. /******************** Bit definition for RCC_PLLCKSELR register *************/
  13654. #define RCC_PLLCKSELR_PLLSRC_Pos (0U)
  13655. #define RCC_PLLCKSELR_PLLSRC_Msk (0x3UL << RCC_PLLCKSELR_PLLSRC_Pos) /*!< 0x00000003 */
  13656. #define RCC_PLLCKSELR_PLLSRC RCC_PLLCKSELR_PLLSRC_Msk
  13657. #define RCC_PLLCKSELR_PLLSRC_HSI ((uint32_t)0x00000000) /*!< HSI source clock selected */
  13658. #define RCC_PLLCKSELR_PLLSRC_CSI_Pos (0U)
  13659. #define RCC_PLLCKSELR_PLLSRC_CSI_Msk (0x1UL << RCC_PLLCKSELR_PLLSRC_CSI_Pos) /*!< 0x00000001 */
  13660. #define RCC_PLLCKSELR_PLLSRC_CSI RCC_PLLCKSELR_PLLSRC_CSI_Msk /*!< CSI source clock selected */
  13661. #define RCC_PLLCKSELR_PLLSRC_HSE_Pos (1U)
  13662. #define RCC_PLLCKSELR_PLLSRC_HSE_Msk (0x1UL << RCC_PLLCKSELR_PLLSRC_HSE_Pos) /*!< 0x00000002 */
  13663. #define RCC_PLLCKSELR_PLLSRC_HSE RCC_PLLCKSELR_PLLSRC_HSE_Msk /*!< HSE source clock selected */
  13664. #define RCC_PLLCKSELR_PLLSRC_NONE_Pos (0U)
  13665. #define RCC_PLLCKSELR_PLLSRC_NONE_Msk (0x3UL << RCC_PLLCKSELR_PLLSRC_NONE_Pos) /*!< 0x00000003 */
  13666. #define RCC_PLLCKSELR_PLLSRC_NONE RCC_PLLCKSELR_PLLSRC_NONE_Msk /*!< No source clock selected */
  13667. #define RCC_PLLCKSELR_DIVM1_Pos (4U)
  13668. #define RCC_PLLCKSELR_DIVM1_Msk (0x3FUL << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x000003F0 */
  13669. #define RCC_PLLCKSELR_DIVM1 RCC_PLLCKSELR_DIVM1_Msk
  13670. #define RCC_PLLCKSELR_DIVM1_0 (0x01UL << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000010 */
  13671. #define RCC_PLLCKSELR_DIVM1_1 (0x02UL << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000020 */
  13672. #define RCC_PLLCKSELR_DIVM1_2 (0x04UL << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000040 */
  13673. #define RCC_PLLCKSELR_DIVM1_3 (0x08UL << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000080 */
  13674. #define RCC_PLLCKSELR_DIVM1_4 (0x10UL << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000100 */
  13675. #define RCC_PLLCKSELR_DIVM1_5 (0x20UL << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000200 */
  13676. #define RCC_PLLCKSELR_DIVM2_Pos (12U)
  13677. #define RCC_PLLCKSELR_DIVM2_Msk (0x3FUL << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x0003F000 */
  13678. #define RCC_PLLCKSELR_DIVM2 RCC_PLLCKSELR_DIVM2_Msk
  13679. #define RCC_PLLCKSELR_DIVM2_0 (0x01UL << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00001000 */
  13680. #define RCC_PLLCKSELR_DIVM2_1 (0x02UL << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00002000 */
  13681. #define RCC_PLLCKSELR_DIVM2_2 (0x04UL << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00004000 */
  13682. #define RCC_PLLCKSELR_DIVM2_3 (0x08UL << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00008000 */
  13683. #define RCC_PLLCKSELR_DIVM2_4 (0x10UL << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00010000 */
  13684. #define RCC_PLLCKSELR_DIVM2_5 (0x20UL << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00020000 */
  13685. #define RCC_PLLCKSELR_DIVM3_Pos (20U)
  13686. #define RCC_PLLCKSELR_DIVM3_Msk (0x3FUL << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x03F00000 */
  13687. #define RCC_PLLCKSELR_DIVM3 RCC_PLLCKSELR_DIVM3_Msk
  13688. #define RCC_PLLCKSELR_DIVM3_0 (0x01UL << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00100000 */
  13689. #define RCC_PLLCKSELR_DIVM3_1 (0x02UL << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00200000 */
  13690. #define RCC_PLLCKSELR_DIVM3_2 (0x04UL << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00400000 */
  13691. #define RCC_PLLCKSELR_DIVM3_3 (0x08UL << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00800000 */
  13692. #define RCC_PLLCKSELR_DIVM3_4 (0x10UL << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x01000000 */
  13693. #define RCC_PLLCKSELR_DIVM3_5 (0x20UL << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x02000000 */
  13694. /******************** Bit definition for RCC_PLLCFGR register ***************/
  13695. #define RCC_PLLCFGR_PLL1FRACEN_Pos (0U)
  13696. #define RCC_PLLCFGR_PLL1FRACEN_Msk (0x1UL << RCC_PLLCFGR_PLL1FRACEN_Pos) /*!< 0x00000001 */
  13697. #define RCC_PLLCFGR_PLL1FRACEN RCC_PLLCFGR_PLL1FRACEN_Msk
  13698. #define RCC_PLLCFGR_PLL1VCOSEL_Pos (1U)
  13699. #define RCC_PLLCFGR_PLL1VCOSEL_Msk (0x1UL << RCC_PLLCFGR_PLL1VCOSEL_Pos) /*!< 0x00000002 */
  13700. #define RCC_PLLCFGR_PLL1VCOSEL RCC_PLLCFGR_PLL1VCOSEL_Msk
  13701. #define RCC_PLLCFGR_PLL1RGE_Pos (2U)
  13702. #define RCC_PLLCFGR_PLL1RGE_Msk (0x3UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x0000000C */
  13703. #define RCC_PLLCFGR_PLL1RGE RCC_PLLCFGR_PLL1RGE_Msk
  13704. #define RCC_PLLCFGR_PLL1RGE_0 (0x0UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000000 */
  13705. #define RCC_PLLCFGR_PLL1RGE_1 (0x1UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000004 */
  13706. #define RCC_PLLCFGR_PLL1RGE_2 (0x2UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000008 */
  13707. #define RCC_PLLCFGR_PLL1RGE_3 (0x3UL << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x0000000C */
  13708. #define RCC_PLLCFGR_PLL2FRACEN_Pos (4U)
  13709. #define RCC_PLLCFGR_PLL2FRACEN_Msk (0x1UL << RCC_PLLCFGR_PLL2FRACEN_Pos) /*!< 0x00000010 */
  13710. #define RCC_PLLCFGR_PLL2FRACEN RCC_PLLCFGR_PLL2FRACEN_Msk
  13711. #define RCC_PLLCFGR_PLL2VCOSEL_Pos (5U)
  13712. #define RCC_PLLCFGR_PLL2VCOSEL_Msk (0x1UL << RCC_PLLCFGR_PLL2VCOSEL_Pos) /*!< 0x00000020 */
  13713. #define RCC_PLLCFGR_PLL2VCOSEL RCC_PLLCFGR_PLL2VCOSEL_Msk
  13714. #define RCC_PLLCFGR_PLL2RGE_Pos (6U)
  13715. #define RCC_PLLCFGR_PLL2RGE_Msk (0x3UL << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x000000C0 */
  13716. #define RCC_PLLCFGR_PLL2RGE RCC_PLLCFGR_PLL2RGE_Msk
  13717. #define RCC_PLLCFGR_PLL2RGE_0 (0x0UL << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000000 */
  13718. #define RCC_PLLCFGR_PLL2RGE_1 (0x1UL << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000040 */
  13719. #define RCC_PLLCFGR_PLL2RGE_2 (0x2UL << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000080 */
  13720. #define RCC_PLLCFGR_PLL2RGE_3 (0x3UL << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x000000C0 */
  13721. #define RCC_PLLCFGR_PLL3FRACEN_Pos (8U)
  13722. #define RCC_PLLCFGR_PLL3FRACEN_Msk (0x1UL << RCC_PLLCFGR_PLL3FRACEN_Pos) /*!< 0x00000100 */
  13723. #define RCC_PLLCFGR_PLL3FRACEN RCC_PLLCFGR_PLL3FRACEN_Msk
  13724. #define RCC_PLLCFGR_PLL3VCOSEL_Pos (9U)
  13725. #define RCC_PLLCFGR_PLL3VCOSEL_Msk (0x1UL << RCC_PLLCFGR_PLL3VCOSEL_Pos) /*!< 0x00000200 */
  13726. #define RCC_PLLCFGR_PLL3VCOSEL RCC_PLLCFGR_PLL3VCOSEL_Msk
  13727. #define RCC_PLLCFGR_PLL3RGE_Pos (10U)
  13728. #define RCC_PLLCFGR_PLL3RGE_Msk (0x3UL << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000C00 */
  13729. #define RCC_PLLCFGR_PLL3RGE RCC_PLLCFGR_PLL3RGE_Msk
  13730. #define RCC_PLLCFGR_PLL3RGE_0 (0x0UL << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000000 */
  13731. #define RCC_PLLCFGR_PLL3RGE_1 (0x1UL << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000400 */
  13732. #define RCC_PLLCFGR_PLL3RGE_2 (0x2UL << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000800 */
  13733. #define RCC_PLLCFGR_PLL3RGE_3 (0x3UL << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000C00 */
  13734. #define RCC_PLLCFGR_DIVP1EN_Pos (16U)
  13735. #define RCC_PLLCFGR_DIVP1EN_Msk (0x1UL << RCC_PLLCFGR_DIVP1EN_Pos) /*!< 0x00010000 */
  13736. #define RCC_PLLCFGR_DIVP1EN RCC_PLLCFGR_DIVP1EN_Msk
  13737. #define RCC_PLLCFGR_DIVQ1EN_Pos (17U)
  13738. #define RCC_PLLCFGR_DIVQ1EN_Msk (0x1UL << RCC_PLLCFGR_DIVQ1EN_Pos) /*!< 0x00020000 */
  13739. #define RCC_PLLCFGR_DIVQ1EN RCC_PLLCFGR_DIVQ1EN_Msk
  13740. #define RCC_PLLCFGR_DIVR1EN_Pos (18U)
  13741. #define RCC_PLLCFGR_DIVR1EN_Msk (0x1UL << RCC_PLLCFGR_DIVR1EN_Pos) /*!< 0x00040000 */
  13742. #define RCC_PLLCFGR_DIVR1EN RCC_PLLCFGR_DIVR1EN_Msk
  13743. #define RCC_PLLCFGR_DIVP2EN_Pos (19U)
  13744. #define RCC_PLLCFGR_DIVP2EN_Msk (0x1UL << RCC_PLLCFGR_DIVP2EN_Pos) /*!< 0x00080000 */
  13745. #define RCC_PLLCFGR_DIVP2EN RCC_PLLCFGR_DIVP2EN_Msk
  13746. #define RCC_PLLCFGR_DIVQ2EN_Pos (20U)
  13747. #define RCC_PLLCFGR_DIVQ2EN_Msk (0x1UL << RCC_PLLCFGR_DIVQ2EN_Pos) /*!< 0x00100000 */
  13748. #define RCC_PLLCFGR_DIVQ2EN RCC_PLLCFGR_DIVQ2EN_Msk
  13749. #define RCC_PLLCFGR_DIVR2EN_Pos (21U)
  13750. #define RCC_PLLCFGR_DIVR2EN_Msk (0x1UL << RCC_PLLCFGR_DIVR2EN_Pos) /*!< 0x00200000 */
  13751. #define RCC_PLLCFGR_DIVR2EN RCC_PLLCFGR_DIVR2EN_Msk
  13752. #define RCC_PLLCFGR_DIVP3EN_Pos (22U)
  13753. #define RCC_PLLCFGR_DIVP3EN_Msk (0x1UL << RCC_PLLCFGR_DIVP3EN_Pos) /*!< 0x00400000 */
  13754. #define RCC_PLLCFGR_DIVP3EN RCC_PLLCFGR_DIVP3EN_Msk
  13755. #define RCC_PLLCFGR_DIVQ3EN_Pos (23U)
  13756. #define RCC_PLLCFGR_DIVQ3EN_Msk (0x1UL << RCC_PLLCFGR_DIVQ3EN_Pos) /*!< 0x00800000 */
  13757. #define RCC_PLLCFGR_DIVQ3EN RCC_PLLCFGR_DIVQ3EN_Msk
  13758. #define RCC_PLLCFGR_DIVR3EN_Pos (24U)
  13759. #define RCC_PLLCFGR_DIVR3EN_Msk (0x1UL << RCC_PLLCFGR_DIVR3EN_Pos) /*!< 0x01000000 */
  13760. #define RCC_PLLCFGR_DIVR3EN RCC_PLLCFGR_DIVR3EN_Msk
  13761. /******************** Bit definition for RCC_PLL1DIVR register ***************/
  13762. #define RCC_PLL1DIVR_N1_Pos (0U)
  13763. #define RCC_PLL1DIVR_N1_Msk (0x1FFUL << RCC_PLL1DIVR_N1_Pos) /*!< 0x000001FF */
  13764. #define RCC_PLL1DIVR_N1 RCC_PLL1DIVR_N1_Msk
  13765. #define RCC_PLL1DIVR_P1_Pos (9U)
  13766. #define RCC_PLL1DIVR_P1_Msk (0x7FUL << RCC_PLL1DIVR_P1_Pos) /*!< 0x0000FE00 */
  13767. #define RCC_PLL1DIVR_P1 RCC_PLL1DIVR_P1_Msk
  13768. #define RCC_PLL1DIVR_Q1_Pos (16U)
  13769. #define RCC_PLL1DIVR_Q1_Msk (0x7FUL << RCC_PLL1DIVR_Q1_Pos) /*!< 0x007F0000 */
  13770. #define RCC_PLL1DIVR_Q1 RCC_PLL1DIVR_Q1_Msk
  13771. #define RCC_PLL1DIVR_R1_Pos (24U)
  13772. #define RCC_PLL1DIVR_R1_Msk (0x7FUL << RCC_PLL1DIVR_R1_Pos) /*!< 0x7F000000 */
  13773. #define RCC_PLL1DIVR_R1 RCC_PLL1DIVR_R1_Msk
  13774. /******************** Bit definition for RCC_PLL1FRACR register ***************/
  13775. #define RCC_PLL1FRACR_FRACN1_Pos (3U)
  13776. #define RCC_PLL1FRACR_FRACN1_Msk (0x1FFFUL << RCC_PLL1FRACR_FRACN1_Pos) /*!< 0x0000FFF8 */
  13777. #define RCC_PLL1FRACR_FRACN1 RCC_PLL1FRACR_FRACN1_Msk
  13778. /******************** Bit definition for RCC_PLL2DIVR register ***************/
  13779. #define RCC_PLL2DIVR_N2_Pos (0U)
  13780. #define RCC_PLL2DIVR_N2_Msk (0x1FFUL << RCC_PLL2DIVR_N2_Pos) /*!< 0x000001FF */
  13781. #define RCC_PLL2DIVR_N2 RCC_PLL2DIVR_N2_Msk
  13782. #define RCC_PLL2DIVR_P2_Pos (9U)
  13783. #define RCC_PLL2DIVR_P2_Msk (0x7FUL << RCC_PLL2DIVR_P2_Pos) /*!< 0x0000FE00 */
  13784. #define RCC_PLL2DIVR_P2 RCC_PLL2DIVR_P2_Msk
  13785. #define RCC_PLL2DIVR_Q2_Pos (16U)
  13786. #define RCC_PLL2DIVR_Q2_Msk (0x7FUL << RCC_PLL2DIVR_Q2_Pos) /*!< 0x007F0000 */
  13787. #define RCC_PLL2DIVR_Q2 RCC_PLL2DIVR_Q2_Msk
  13788. #define RCC_PLL2DIVR_R2_Pos (24U)
  13789. #define RCC_PLL2DIVR_R2_Msk (0x7FUL << RCC_PLL2DIVR_R2_Pos) /*!< 0x7F000000 */
  13790. #define RCC_PLL2DIVR_R2 RCC_PLL2DIVR_R2_Msk
  13791. /******************** Bit definition for RCC_PLL2FRACR register ***************/
  13792. #define RCC_PLL2FRACR_FRACN2_Pos (3U)
  13793. #define RCC_PLL2FRACR_FRACN2_Msk (0x1FFFUL << RCC_PLL2FRACR_FRACN2_Pos) /*!< 0x0000FFF8 */
  13794. #define RCC_PLL2FRACR_FRACN2 RCC_PLL2FRACR_FRACN2_Msk
  13795. /******************** Bit definition for RCC_PLL3DIVR register ***************/
  13796. #define RCC_PLL3DIVR_N3_Pos (0U)
  13797. #define RCC_PLL3DIVR_N3_Msk (0x1FFUL << RCC_PLL3DIVR_N3_Pos) /*!< 0x000001FF */
  13798. #define RCC_PLL3DIVR_N3 RCC_PLL3DIVR_N3_Msk
  13799. #define RCC_PLL3DIVR_P3_Pos (9U)
  13800. #define RCC_PLL3DIVR_P3_Msk (0x7FUL << RCC_PLL3DIVR_P3_Pos) /*!< 0x0000FE00 */
  13801. #define RCC_PLL3DIVR_P3 RCC_PLL3DIVR_P3_Msk
  13802. #define RCC_PLL3DIVR_Q3_Pos (16U)
  13803. #define RCC_PLL3DIVR_Q3_Msk (0x7FUL << RCC_PLL3DIVR_Q3_Pos) /*!< 0x007F0000 */
  13804. #define RCC_PLL3DIVR_Q3 RCC_PLL3DIVR_Q3_Msk
  13805. #define RCC_PLL3DIVR_R3_Pos (24U)
  13806. #define RCC_PLL3DIVR_R3_Msk (0x7FUL << RCC_PLL3DIVR_R3_Pos) /*!< 0x7F000000 */
  13807. #define RCC_PLL3DIVR_R3 RCC_PLL3DIVR_R3_Msk
  13808. /******************** Bit definition for RCC_PLL3FRACR register ***************/
  13809. #define RCC_PLL3FRACR_FRACN3_Pos (3U)
  13810. #define RCC_PLL3FRACR_FRACN3_Msk (0x1FFFUL << RCC_PLL3FRACR_FRACN3_Pos) /*!< 0x0000FFF8 */
  13811. #define RCC_PLL3FRACR_FRACN3 RCC_PLL3FRACR_FRACN3_Msk
  13812. /******************** Bit definition for RCC_D1CCIPR register ***************/
  13813. #define RCC_D1CCIPR_FMCSEL_Pos (0U)
  13814. #define RCC_D1CCIPR_FMCSEL_Msk (0x3UL << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000003 */
  13815. #define RCC_D1CCIPR_FMCSEL RCC_D1CCIPR_FMCSEL_Msk
  13816. #define RCC_D1CCIPR_FMCSEL_0 (0x1UL << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000001 */
  13817. #define RCC_D1CCIPR_FMCSEL_1 (0x2UL << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000002 */
  13818. #define RCC_D1CCIPR_OCTOSPISEL_Pos (4U)
  13819. #define RCC_D1CCIPR_OCTOSPISEL_Msk (0x3UL << RCC_D1CCIPR_OCTOSPISEL_Pos) /*!< 0x00000030 */
  13820. #define RCC_D1CCIPR_OCTOSPISEL RCC_D1CCIPR_OCTOSPISEL_Msk
  13821. #define RCC_D1CCIPR_OCTOSPISEL_0 (0x1UL << RCC_D1CCIPR_OCTOSPISEL_Pos) /*!< 0x00000010 */
  13822. #define RCC_D1CCIPR_OCTOSPISEL_1 (0x2UL << RCC_D1CCIPR_OCTOSPISEL_Pos) /*!< 0x00000020 */
  13823. #define RCC_D1CCIPR_SDMMCSEL_Pos (16U)
  13824. #define RCC_D1CCIPR_SDMMCSEL_Msk (0x1UL << RCC_D1CCIPR_SDMMCSEL_Pos) /*!< 0x00010000 */
  13825. #define RCC_D1CCIPR_SDMMCSEL RCC_D1CCIPR_SDMMCSEL_Msk
  13826. #define RCC_D1CCIPR_CKPERSEL_Pos (28U)
  13827. #define RCC_D1CCIPR_CKPERSEL_Msk (0x3UL << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x30000000 */
  13828. #define RCC_D1CCIPR_CKPERSEL RCC_D1CCIPR_CKPERSEL_Msk
  13829. #define RCC_D1CCIPR_CKPERSEL_0 (0x1UL << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x10000000 */
  13830. #define RCC_D1CCIPR_CKPERSEL_1 (0x2UL << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x20000000 */
  13831. /******************** Bit definition for RCC_D2CCIP1R register ***************/
  13832. #define RCC_D2CCIP1R_SAI1SEL_Pos (0U)
  13833. #define RCC_D2CCIP1R_SAI1SEL_Msk (0x7UL << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000007 */
  13834. #define RCC_D2CCIP1R_SAI1SEL RCC_D2CCIP1R_SAI1SEL_Msk
  13835. #define RCC_D2CCIP1R_SAI1SEL_0 (0x1UL << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000001 */
  13836. #define RCC_D2CCIP1R_SAI1SEL_1 (0x2UL << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000002 */
  13837. #define RCC_D2CCIP1R_SAI1SEL_2 (0x4UL << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000004 */
  13838. #define RCC_D2CCIP1R_SPI123SEL_Pos (12U)
  13839. #define RCC_D2CCIP1R_SPI123SEL_Msk (0x7UL << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00007000 */
  13840. #define RCC_D2CCIP1R_SPI123SEL RCC_D2CCIP1R_SPI123SEL_Msk
  13841. #define RCC_D2CCIP1R_SPI123SEL_0 (0x1UL << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00001000 */
  13842. #define RCC_D2CCIP1R_SPI123SEL_1 (0x2UL << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00002000 */
  13843. #define RCC_D2CCIP1R_SPI123SEL_2 (0x4UL << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00004000 */
  13844. #define RCC_D2CCIP1R_SPI45SEL_Pos (16U)
  13845. #define RCC_D2CCIP1R_SPI45SEL_Msk (0x7UL << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00070000 */
  13846. #define RCC_D2CCIP1R_SPI45SEL RCC_D2CCIP1R_SPI45SEL_Msk
  13847. #define RCC_D2CCIP1R_SPI45SEL_0 (0x1UL << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00010000 */
  13848. #define RCC_D2CCIP1R_SPI45SEL_1 (0x2UL << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00020000 */
  13849. #define RCC_D2CCIP1R_SPI45SEL_2 (0x4UL << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00040000 */
  13850. #define RCC_D2CCIP1R_SPDIFSEL_Pos (20U)
  13851. #define RCC_D2CCIP1R_SPDIFSEL_Msk (0x3UL << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00300000 */
  13852. #define RCC_D2CCIP1R_SPDIFSEL RCC_D2CCIP1R_SPDIFSEL_Msk
  13853. #define RCC_D2CCIP1R_SPDIFSEL_0 (0x1UL << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00100000 */
  13854. #define RCC_D2CCIP1R_SPDIFSEL_1 (0x2UL << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00200000 */
  13855. #define RCC_D2CCIP1R_DFSDM1SEL_Pos (24U)
  13856. #define RCC_D2CCIP1R_DFSDM1SEL_Msk (0x1UL << RCC_D2CCIP1R_DFSDM1SEL_Pos) /*!< 0x01000000 */
  13857. #define RCC_D2CCIP1R_DFSDM1SEL RCC_D2CCIP1R_DFSDM1SEL_Msk
  13858. #define RCC_D2CCIP1R_FDCANSEL_Pos (28U)
  13859. #define RCC_D2CCIP1R_FDCANSEL_Msk (0x3UL << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x30000000 */
  13860. #define RCC_D2CCIP1R_FDCANSEL RCC_D2CCIP1R_FDCANSEL_Msk
  13861. #define RCC_D2CCIP1R_FDCANSEL_0 (0x1UL << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x10000000 */
  13862. #define RCC_D2CCIP1R_FDCANSEL_1 (0x2UL << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x20000000 */
  13863. #define RCC_D2CCIP1R_SWPSEL_Pos (31U)
  13864. #define RCC_D2CCIP1R_SWPSEL_Msk (0x1UL << RCC_D2CCIP1R_SWPSEL_Pos) /*!< 0x80000000 */
  13865. #define RCC_D2CCIP1R_SWPSEL RCC_D2CCIP1R_SWPSEL_Msk
  13866. /******************** Bit definition for RCC_D2CCIP2R register ***************/
  13867. #define RCC_D2CCIP2R_USART16910SEL_Pos (3U)
  13868. #define RCC_D2CCIP2R_USART16910SEL_Msk (0x7UL << RCC_D2CCIP2R_USART16910SEL_Pos) /*!< 0x00000038 */
  13869. #define RCC_D2CCIP2R_USART16910SEL RCC_D2CCIP2R_USART16910SEL_Msk
  13870. #define RCC_D2CCIP2R_USART16910SEL_0 (0x1UL << RCC_D2CCIP2R_USART16910SEL_Pos) /*!< 0x00000008 */
  13871. #define RCC_D2CCIP2R_USART16910SEL_1 (0x2UL << RCC_D2CCIP2R_USART16910SEL_Pos) /*!< 0x00000010 */
  13872. #define RCC_D2CCIP2R_USART16910SEL_2 (0x4UL << RCC_D2CCIP2R_USART16910SEL_Pos) /*!< 0x00000020 */
  13873. #define RCC_D2CCIP2R_USART28SEL_Pos (0U)
  13874. #define RCC_D2CCIP2R_USART28SEL_Msk (0x7UL << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000007 */
  13875. #define RCC_D2CCIP2R_USART28SEL RCC_D2CCIP2R_USART28SEL_Msk
  13876. #define RCC_D2CCIP2R_USART28SEL_0 (0x1UL << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000001 */
  13877. #define RCC_D2CCIP2R_USART28SEL_1 (0x2UL << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000002 */
  13878. #define RCC_D2CCIP2R_USART28SEL_2 (0x4UL << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000004 */
  13879. #define RCC_D2CCIP2R_RNGSEL_Pos (8U)
  13880. #define RCC_D2CCIP2R_RNGSEL_Msk (0x3UL << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000300 */
  13881. #define RCC_D2CCIP2R_RNGSEL RCC_D2CCIP2R_RNGSEL_Msk
  13882. #define RCC_D2CCIP2R_RNGSEL_0 (0x1UL << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000100 */
  13883. #define RCC_D2CCIP2R_RNGSEL_1 (0x2UL << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000200 */
  13884. #define RCC_D2CCIP2R_I2C1235SEL_Pos (12U)
  13885. #define RCC_D2CCIP2R_I2C1235SEL_Msk (0x3UL << RCC_D2CCIP2R_I2C1235SEL_Pos) /*!< 0x00003000 */
  13886. #define RCC_D2CCIP2R_I2C1235SEL RCC_D2CCIP2R_I2C1235SEL_Msk
  13887. #define RCC_D2CCIP2R_I2C1235SEL_0 (0x1UL << RCC_D2CCIP2R_I2C1235SEL_Pos) /*!< 0x00001000 */
  13888. #define RCC_D2CCIP2R_I2C1235SEL_1 (0x2UL << RCC_D2CCIP2R_I2C1235SEL_Pos) /*!< 0x00002000 */
  13889. #define RCC_D2CCIP2R_USBSEL_Pos (20U)
  13890. #define RCC_D2CCIP2R_USBSEL_Msk (0x3UL << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00300000 */
  13891. #define RCC_D2CCIP2R_USBSEL RCC_D2CCIP2R_USBSEL_Msk
  13892. #define RCC_D2CCIP2R_USBSEL_0 (0x1UL << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00100000 */
  13893. #define RCC_D2CCIP2R_USBSEL_1 (0x2UL << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00200000 */
  13894. #define RCC_D2CCIP2R_CECSEL_Pos (22U)
  13895. #define RCC_D2CCIP2R_CECSEL_Msk (0x3UL << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00C00000 */
  13896. #define RCC_D2CCIP2R_CECSEL RCC_D2CCIP2R_CECSEL_Msk
  13897. #define RCC_D2CCIP2R_CECSEL_0 (0x1UL << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00400000 */
  13898. #define RCC_D2CCIP2R_CECSEL_1 (0x2UL << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00800000 */
  13899. #define RCC_D2CCIP2R_LPTIM1SEL_Pos (28U)
  13900. #define RCC_D2CCIP2R_LPTIM1SEL_Msk (0x7UL << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x70000000 */
  13901. #define RCC_D2CCIP2R_LPTIM1SEL RCC_D2CCIP2R_LPTIM1SEL_Msk
  13902. #define RCC_D2CCIP2R_LPTIM1SEL_0 (0x1UL << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x10000000 */
  13903. #define RCC_D2CCIP2R_LPTIM1SEL_1 (0x2UL << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x20000000 */
  13904. #define RCC_D2CCIP2R_LPTIM1SEL_2 (0x4UL << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x40000000 */
  13905. /******************** Bit definition for RCC_D3CCIPR register ***************/
  13906. #define RCC_D3CCIPR_LPUART1SEL_Pos (0U)
  13907. #define RCC_D3CCIPR_LPUART1SEL_Msk (0x7UL << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000007 */
  13908. #define RCC_D3CCIPR_LPUART1SEL RCC_D3CCIPR_LPUART1SEL_Msk
  13909. #define RCC_D3CCIPR_LPUART1SEL_0 (0x1UL << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000001 */
  13910. #define RCC_D3CCIPR_LPUART1SEL_1 (0x2UL << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000002 */
  13911. #define RCC_D3CCIPR_LPUART1SEL_2 (0x4UL << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000004 */
  13912. #define RCC_D3CCIPR_I2C4SEL_Pos (8U)
  13913. #define RCC_D3CCIPR_I2C4SEL_Msk (0x3UL << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000300 */
  13914. #define RCC_D3CCIPR_I2C4SEL RCC_D3CCIPR_I2C4SEL_Msk
  13915. #define RCC_D3CCIPR_I2C4SEL_0 (0x1UL << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000100 */
  13916. #define RCC_D3CCIPR_I2C4SEL_1 (0x2UL << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000200 */
  13917. #define RCC_D3CCIPR_LPTIM2SEL_Pos (10U)
  13918. #define RCC_D3CCIPR_LPTIM2SEL_Msk (0x7UL << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00001C00 */
  13919. #define RCC_D3CCIPR_LPTIM2SEL RCC_D3CCIPR_LPTIM2SEL_Msk
  13920. #define RCC_D3CCIPR_LPTIM2SEL_0 (0x1UL << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00000400 */
  13921. #define RCC_D3CCIPR_LPTIM2SEL_1 (0x2UL << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00000800 */
  13922. #define RCC_D3CCIPR_LPTIM2SEL_2 (0x4UL << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00001000 */
  13923. #define RCC_D3CCIPR_LPTIM345SEL_Pos (13U)
  13924. #define RCC_D3CCIPR_LPTIM345SEL_Msk (0x7UL << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x0000E000 */
  13925. #define RCC_D3CCIPR_LPTIM345SEL RCC_D3CCIPR_LPTIM345SEL_Msk
  13926. #define RCC_D3CCIPR_LPTIM345SEL_0 (0x1UL << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00002000 */
  13927. #define RCC_D3CCIPR_LPTIM345SEL_1 (0x2UL << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00004000 */
  13928. #define RCC_D3CCIPR_LPTIM345SEL_2 (0x4UL << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00008000 */
  13929. #define RCC_D3CCIPR_SAI4ASEL_Pos (21U)
  13930. #define RCC_D3CCIPR_SAI4ASEL_Msk (0x7UL << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00E00000 */
  13931. #define RCC_D3CCIPR_SAI4ASEL RCC_D3CCIPR_SAI4ASEL_Msk
  13932. #define RCC_D3CCIPR_SAI4ASEL_0 (0x1UL << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00200000 */
  13933. #define RCC_D3CCIPR_SAI4ASEL_1 (0x2UL << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00400000 */
  13934. #define RCC_D3CCIPR_SAI4ASEL_2 (0x4UL << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00800000 */
  13935. #define RCC_D3CCIPR_SAI4BSEL_Pos (24U)
  13936. #define RCC_D3CCIPR_SAI4BSEL_Msk (0x7UL << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x07000000 */
  13937. #define RCC_D3CCIPR_SAI4BSEL RCC_D3CCIPR_SAI4BSEL_Msk
  13938. #define RCC_D3CCIPR_SAI4BSEL_0 (0x1UL << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x01000000 */
  13939. #define RCC_D3CCIPR_SAI4BSEL_1 (0x2UL << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x02000000 */
  13940. #define RCC_D3CCIPR_SAI4BSEL_2 (0x4UL << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x04000000 */
  13941. #define RCC_D3CCIPR_ADCSEL_Pos (16U)
  13942. #define RCC_D3CCIPR_ADCSEL_Msk (0x3UL << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00030000 */
  13943. #define RCC_D3CCIPR_ADCSEL RCC_D3CCIPR_ADCSEL_Msk
  13944. #define RCC_D3CCIPR_ADCSEL_0 (0x1UL << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00010000 */
  13945. #define RCC_D3CCIPR_ADCSEL_1 (0x2UL << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00020000 */
  13946. #define RCC_D3CCIPR_SPI6SEL_Pos (28U)
  13947. #define RCC_D3CCIPR_SPI6SEL_Msk (0x7UL << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x70000000 */
  13948. #define RCC_D3CCIPR_SPI6SEL RCC_D3CCIPR_SPI6SEL_Msk
  13949. #define RCC_D3CCIPR_SPI6SEL_0 (0x1UL << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x10000000 */
  13950. #define RCC_D3CCIPR_SPI6SEL_1 (0x2UL << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x20000000 */
  13951. #define RCC_D3CCIPR_SPI6SEL_2 (0x4UL << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x40000000 */
  13952. /******************** Bit definition for RCC_CIER register ******************/
  13953. #define RCC_CIER_LSIRDYIE_Pos (0U)
  13954. #define RCC_CIER_LSIRDYIE_Msk (0x1UL << RCC_CIER_LSIRDYIE_Pos) /*!< 0x00000001 */
  13955. #define RCC_CIER_LSIRDYIE RCC_CIER_LSIRDYIE_Msk
  13956. #define RCC_CIER_LSERDYIE_Pos (1U)
  13957. #define RCC_CIER_LSERDYIE_Msk (0x1UL << RCC_CIER_LSERDYIE_Pos) /*!< 0x00000002 */
  13958. #define RCC_CIER_LSERDYIE RCC_CIER_LSERDYIE_Msk
  13959. #define RCC_CIER_HSIRDYIE_Pos (2U)
  13960. #define RCC_CIER_HSIRDYIE_Msk (0x1UL << RCC_CIER_HSIRDYIE_Pos) /*!< 0x00000004 */
  13961. #define RCC_CIER_HSIRDYIE RCC_CIER_HSIRDYIE_Msk
  13962. #define RCC_CIER_HSERDYIE_Pos (3U)
  13963. #define RCC_CIER_HSERDYIE_Msk (0x1UL << RCC_CIER_HSERDYIE_Pos) /*!< 0x00000008 */
  13964. #define RCC_CIER_HSERDYIE RCC_CIER_HSERDYIE_Msk
  13965. #define RCC_CIER_CSIRDYIE_Pos (4U)
  13966. #define RCC_CIER_CSIRDYIE_Msk (0x1UL << RCC_CIER_CSIRDYIE_Pos) /*!< 0x00000010 */
  13967. #define RCC_CIER_CSIRDYIE RCC_CIER_CSIRDYIE_Msk
  13968. #define RCC_CIER_HSI48RDYIE_Pos (5U)
  13969. #define RCC_CIER_HSI48RDYIE_Msk (0x1UL << RCC_CIER_HSI48RDYIE_Pos) /*!< 0x00000020 */
  13970. #define RCC_CIER_HSI48RDYIE RCC_CIER_HSI48RDYIE_Msk
  13971. #define RCC_CIER_PLL1RDYIE_Pos (6U)
  13972. #define RCC_CIER_PLL1RDYIE_Msk (0x1UL << RCC_CIER_PLL1RDYIE_Pos) /*!< 0x00000040 */
  13973. #define RCC_CIER_PLL1RDYIE RCC_CIER_PLL1RDYIE_Msk
  13974. #define RCC_CIER_PLL2RDYIE_Pos (7U)
  13975. #define RCC_CIER_PLL2RDYIE_Msk (0x1UL << RCC_CIER_PLL2RDYIE_Pos) /*!< 0x00000080 */
  13976. #define RCC_CIER_PLL2RDYIE RCC_CIER_PLL2RDYIE_Msk
  13977. #define RCC_CIER_PLL3RDYIE_Pos (8U)
  13978. #define RCC_CIER_PLL3RDYIE_Msk (0x1UL << RCC_CIER_PLL3RDYIE_Pos) /*!< 0x00000100 */
  13979. #define RCC_CIER_PLL3RDYIE RCC_CIER_PLL3RDYIE_Msk
  13980. #define RCC_CIER_LSECSSIE_Pos (9U)
  13981. #define RCC_CIER_LSECSSIE_Msk (0x1UL << RCC_CIER_LSECSSIE_Pos) /*!< 0x00000200 */
  13982. #define RCC_CIER_LSECSSIE RCC_CIER_LSECSSIE_Msk
  13983. /******************** Bit definition for RCC_CIFR register ******************/
  13984. #define RCC_CIFR_LSIRDYF_Pos (0U)
  13985. #define RCC_CIFR_LSIRDYF_Msk (0x1UL << RCC_CIFR_LSIRDYF_Pos) /*!< 0x00000001 */
  13986. #define RCC_CIFR_LSIRDYF RCC_CIFR_LSIRDYF_Msk
  13987. #define RCC_CIFR_LSERDYF_Pos (1U)
  13988. #define RCC_CIFR_LSERDYF_Msk (0x1UL << RCC_CIFR_LSERDYF_Pos) /*!< 0x00000002 */
  13989. #define RCC_CIFR_LSERDYF RCC_CIFR_LSERDYF_Msk
  13990. #define RCC_CIFR_HSIRDYF_Pos (2U)
  13991. #define RCC_CIFR_HSIRDYF_Msk (0x1UL << RCC_CIFR_HSIRDYF_Pos) /*!< 0x00000004 */
  13992. #define RCC_CIFR_HSIRDYF RCC_CIFR_HSIRDYF_Msk
  13993. #define RCC_CIFR_HSERDYF_Pos (3U)
  13994. #define RCC_CIFR_HSERDYF_Msk (0x1UL << RCC_CIFR_HSERDYF_Pos) /*!< 0x00000008 */
  13995. #define RCC_CIFR_HSERDYF RCC_CIFR_HSERDYF_Msk
  13996. #define RCC_CIFR_CSIRDYF_Pos (4U)
  13997. #define RCC_CIFR_CSIRDYF_Msk (0x1UL << RCC_CIFR_CSIRDYF_Pos) /*!< 0x00000010 */
  13998. #define RCC_CIFR_CSIRDYF RCC_CIFR_CSIRDYF_Msk
  13999. #define RCC_CIFR_HSI48RDYF_Pos (5U)
  14000. #define RCC_CIFR_HSI48RDYF_Msk (0x1UL << RCC_CIFR_HSI48RDYF_Pos) /*!< 0x00000020 */
  14001. #define RCC_CIFR_HSI48RDYF RCC_CIFR_HSI48RDYF_Msk
  14002. #define RCC_CIFR_PLLRDYF_Pos (6U)
  14003. #define RCC_CIFR_PLLRDYF_Msk (0x1UL << RCC_CIFR_PLLRDYF_Pos) /*!< 0x00000040 */
  14004. #define RCC_CIFR_PLLRDYF RCC_CIFR_PLLRDYF_Msk
  14005. #define RCC_CIFR_PLL2RDYF_Pos (7U)
  14006. #define RCC_CIFR_PLL2RDYF_Msk (0x1UL << RCC_CIFR_PLL2RDYF_Pos) /*!< 0x00000080 */
  14007. #define RCC_CIFR_PLL2RDYF RCC_CIFR_PLL2RDYF_Msk
  14008. #define RCC_CIFR_PLL3RDYF_Pos (8U)
  14009. #define RCC_CIFR_PLL3RDYF_Msk (0x1UL << RCC_CIFR_PLL3RDYF_Pos) /*!< 0x00000100 */
  14010. #define RCC_CIFR_PLL3RDYF RCC_CIFR_PLL3RDYF_Msk
  14011. #define RCC_CIFR_LSECSSF_Pos (9U)
  14012. #define RCC_CIFR_LSECSSF_Msk (0x1UL << RCC_CIFR_LSECSSF_Pos) /*!< 0x00000200 */
  14013. #define RCC_CIFR_LSECSSF RCC_CIFR_LSECSSF_Msk
  14014. #define RCC_CIFR_HSECSSF_Pos (10U)
  14015. #define RCC_CIFR_HSECSSF_Msk (0x1UL << RCC_CIFR_HSECSSF_Pos) /*!< 0x00000400 */
  14016. #define RCC_CIFR_HSECSSF RCC_CIFR_HSECSSF_Msk
  14017. /******************** Bit definition for RCC_CICR register ******************/
  14018. #define RCC_CICR_LSIRDYC_Pos (0U)
  14019. #define RCC_CICR_LSIRDYC_Msk (0x1UL << RCC_CICR_LSIRDYC_Pos) /*!< 0x00000001 */
  14020. #define RCC_CICR_LSIRDYC RCC_CICR_LSIRDYC_Msk
  14021. #define RCC_CICR_LSERDYC_Pos (1U)
  14022. #define RCC_CICR_LSERDYC_Msk (0x1UL << RCC_CICR_LSERDYC_Pos) /*!< 0x00000002 */
  14023. #define RCC_CICR_LSERDYC RCC_CICR_LSERDYC_Msk
  14024. #define RCC_CICR_HSIRDYC_Pos (2U)
  14025. #define RCC_CICR_HSIRDYC_Msk (0x1UL << RCC_CICR_HSIRDYC_Pos) /*!< 0x00000004 */
  14026. #define RCC_CICR_HSIRDYC RCC_CICR_HSIRDYC_Msk
  14027. #define RCC_CICR_HSERDYC_Pos (3U)
  14028. #define RCC_CICR_HSERDYC_Msk (0x1UL << RCC_CICR_HSERDYC_Pos) /*!< 0x00000008 */
  14029. #define RCC_CICR_HSERDYC RCC_CICR_HSERDYC_Msk
  14030. #define RCC_CICR_CSIRDYC_Pos (4U)
  14031. #define RCC_CICR_CSIRDYC_Msk (0x1UL << RCC_CICR_CSIRDYC_Pos) /*!< 0x00000010 */
  14032. #define RCC_CICR_CSIRDYC RCC_CICR_CSIRDYC_Msk
  14033. #define RCC_CICR_HSI48RDYC_Pos (5U)
  14034. #define RCC_CICR_HSI48RDYC_Msk (0x1UL << RCC_CICR_HSI48RDYC_Pos) /*!< 0x00000020 */
  14035. #define RCC_CICR_HSI48RDYC RCC_CICR_HSI48RDYC_Msk
  14036. #define RCC_CICR_PLLRDYC_Pos (6U)
  14037. #define RCC_CICR_PLLRDYC_Msk (0x1UL << RCC_CICR_PLLRDYC_Pos) /*!< 0x00000040 */
  14038. #define RCC_CICR_PLLRDYC RCC_CICR_PLLRDYC_Msk
  14039. #define RCC_CICR_PLL2RDYC_Pos (7U)
  14040. #define RCC_CICR_PLL2RDYC_Msk (0x1UL << RCC_CICR_PLL2RDYC_Pos) /*!< 0x00000080 */
  14041. #define RCC_CICR_PLL2RDYC RCC_CICR_PLL2RDYC_Msk
  14042. #define RCC_CICR_PLL3RDYC_Pos (8U)
  14043. #define RCC_CICR_PLL3RDYC_Msk (0x1UL << RCC_CICR_PLL3RDYC_Pos) /*!< 0x00000100 */
  14044. #define RCC_CICR_PLL3RDYC RCC_CICR_PLL3RDYC_Msk
  14045. #define RCC_CICR_LSECSSC_Pos (9U)
  14046. #define RCC_CICR_LSECSSC_Msk (0x1UL << RCC_CICR_LSECSSC_Pos) /*!< 0x00000200 */
  14047. #define RCC_CICR_LSECSSC RCC_CICR_LSECSSC_Msk
  14048. #define RCC_CICR_HSECSSC_Pos (10U)
  14049. #define RCC_CICR_HSECSSC_Msk (0x1UL << RCC_CICR_HSECSSC_Pos) /*!< 0x00000400 */
  14050. #define RCC_CICR_HSECSSC RCC_CICR_HSECSSC_Msk
  14051. /******************** Bit definition for RCC_BDCR register ******************/
  14052. #define RCC_BDCR_LSEON_Pos (0U)
  14053. #define RCC_BDCR_LSEON_Msk (0x1UL << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  14054. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk
  14055. #define RCC_BDCR_LSERDY_Pos (1U)
  14056. #define RCC_BDCR_LSERDY_Msk (0x1UL << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  14057. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk
  14058. #define RCC_BDCR_LSEBYP_Pos (2U)
  14059. #define RCC_BDCR_LSEBYP_Msk (0x1UL << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  14060. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk
  14061. #define RCC_BDCR_LSEDRV_Pos (3U)
  14062. #define RCC_BDCR_LSEDRV_Msk (0x3UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  14063. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk
  14064. #define RCC_BDCR_LSEDRV_0 (0x1UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  14065. #define RCC_BDCR_LSEDRV_1 (0x2UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  14066. #define RCC_BDCR_LSECSSON_Pos (5U)
  14067. #define RCC_BDCR_LSECSSON_Msk (0x1UL << RCC_BDCR_LSECSSON_Pos) /*!< 0x00000020 */
  14068. #define RCC_BDCR_LSECSSON RCC_BDCR_LSECSSON_Msk
  14069. #define RCC_BDCR_LSECSSD_Pos (6U)
  14070. #define RCC_BDCR_LSECSSD_Msk (0x1UL << RCC_BDCR_LSECSSD_Pos) /*!< 0x00000040 */
  14071. #define RCC_BDCR_LSECSSD RCC_BDCR_LSECSSD_Msk
  14072. #define RCC_BDCR_RTCSEL_Pos (8U)
  14073. #define RCC_BDCR_RTCSEL_Msk (0x3UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  14074. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk
  14075. #define RCC_BDCR_RTCSEL_0 (0x1UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  14076. #define RCC_BDCR_RTCSEL_1 (0x2UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  14077. #define RCC_BDCR_RTCEN_Pos (15U)
  14078. #define RCC_BDCR_RTCEN_Msk (0x1UL << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  14079. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk
  14080. #define RCC_BDCR_VSWRST_Pos (16U)
  14081. #define RCC_BDCR_VSWRST_Msk (0x1UL << RCC_BDCR_VSWRST_Pos) /*!< 0x00010000 */
  14082. #define RCC_BDCR_VSWRST RCC_BDCR_VSWRST_Msk
  14083. /* Legacy define */
  14084. #define RCC_BDCR_BDRST_Pos RCC_BDCR_VSWRST_Pos
  14085. #define RCC_BDCR_BDRST_Msk RCC_BDCR_VSWRST_Msk
  14086. #define RCC_BDCR_BDRST RCC_BDCR_VSWRST
  14087. /******************** Bit definition for RCC_CSR register *******************/
  14088. #define RCC_CSR_LSION_Pos (0U)
  14089. #define RCC_CSR_LSION_Msk (0x1UL << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  14090. #define RCC_CSR_LSION RCC_CSR_LSION_Msk
  14091. #define RCC_CSR_LSIRDY_Pos (1U)
  14092. #define RCC_CSR_LSIRDY_Msk (0x1UL << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  14093. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk
  14094. /******************** Bit definition for RCC_AHB3ENR register **************/
  14095. #define RCC_AHB3ENR_MDMAEN_Pos (0U)
  14096. #define RCC_AHB3ENR_MDMAEN_Msk (0x1UL << RCC_AHB3ENR_MDMAEN_Pos) /*!< 0x00000001 */
  14097. #define RCC_AHB3ENR_MDMAEN RCC_AHB3ENR_MDMAEN_Msk
  14098. #define RCC_AHB3ENR_DMA2DEN_Pos (4U)
  14099. #define RCC_AHB3ENR_DMA2DEN_Msk (0x1UL << RCC_AHB3ENR_DMA2DEN_Pos) /*!< 0x00000010 */
  14100. #define RCC_AHB3ENR_DMA2DEN RCC_AHB3ENR_DMA2DEN_Msk
  14101. #define RCC_AHB3ENR_FMCEN_Pos (12U)
  14102. #define RCC_AHB3ENR_FMCEN_Msk (0x1UL << RCC_AHB3ENR_FMCEN_Pos) /*!< 0x00001000 */
  14103. #define RCC_AHB3ENR_FMCEN RCC_AHB3ENR_FMCEN_Msk
  14104. #define RCC_AHB3ENR_OSPI1EN_Pos (14U)
  14105. #define RCC_AHB3ENR_OSPI1EN_Msk (0x1UL << RCC_AHB3ENR_OSPI1EN_Pos) /*!< 0x00004000 */
  14106. #define RCC_AHB3ENR_OSPI1EN RCC_AHB3ENR_OSPI1EN_Msk
  14107. #define RCC_AHB3ENR_SDMMC1EN_Pos (16U)
  14108. #define RCC_AHB3ENR_SDMMC1EN_Msk (0x1UL << RCC_AHB3ENR_SDMMC1EN_Pos) /*!< 0x00010000 */
  14109. #define RCC_AHB3ENR_SDMMC1EN RCC_AHB3ENR_SDMMC1EN_Msk
  14110. #define RCC_AHB3ENR_OSPI2EN_Pos (19U)
  14111. #define RCC_AHB3ENR_OSPI2EN_Msk (0x1UL << RCC_AHB3ENR_OSPI2EN_Pos) /*!< 0x00040000 */
  14112. #define RCC_AHB3ENR_OSPI2EN RCC_AHB3ENR_OSPI2EN_Msk
  14113. #define RCC_AHB3ENR_IOMNGREN_Pos (21U)
  14114. #define RCC_AHB3ENR_IOMNGREN_Msk (0x1UL << RCC_AHB3ENR_IOMNGREN_Pos) /*!< 0x00100000 */
  14115. #define RCC_AHB3ENR_IOMNGREN RCC_AHB3ENR_IOMNGREN_Msk
  14116. /******************** Bit definition for RCC_AHB1ENR register ***************/
  14117. #define RCC_AHB1ENR_DMA1EN_Pos (0U)
  14118. #define RCC_AHB1ENR_DMA1EN_Msk (0x1UL << RCC_AHB1ENR_DMA1EN_Pos) /*!< 0x00000001 */
  14119. #define RCC_AHB1ENR_DMA1EN RCC_AHB1ENR_DMA1EN_Msk
  14120. #define RCC_AHB1ENR_DMA2EN_Pos (1U)
  14121. #define RCC_AHB1ENR_DMA2EN_Msk (0x1UL << RCC_AHB1ENR_DMA2EN_Pos) /*!< 0x00000002 */
  14122. #define RCC_AHB1ENR_DMA2EN RCC_AHB1ENR_DMA2EN_Msk
  14123. #define RCC_AHB1ENR_ADC12EN_Pos (5U)
  14124. #define RCC_AHB1ENR_ADC12EN_Msk (0x1UL << RCC_AHB1ENR_ADC12EN_Pos) /*!< 0x00000020 */
  14125. #define RCC_AHB1ENR_ADC12EN RCC_AHB1ENR_ADC12EN_Msk
  14126. #define RCC_AHB1ENR_ETH1MACEN_Pos (15U)
  14127. #define RCC_AHB1ENR_ETH1MACEN_Msk (0x1UL << RCC_AHB1ENR_ETH1MACEN_Pos) /*!< 0x00008000 */
  14128. #define RCC_AHB1ENR_ETH1MACEN RCC_AHB1ENR_ETH1MACEN_Msk
  14129. #define RCC_AHB1ENR_ETH1TXEN_Pos (16U)
  14130. #define RCC_AHB1ENR_ETH1TXEN_Msk (0x1UL << RCC_AHB1ENR_ETH1TXEN_Pos) /*!< 0x00010000 */
  14131. #define RCC_AHB1ENR_ETH1TXEN RCC_AHB1ENR_ETH1TXEN_Msk
  14132. #define RCC_AHB1ENR_ETH1RXEN_Pos (17U)
  14133. #define RCC_AHB1ENR_ETH1RXEN_Msk (0x1UL << RCC_AHB1ENR_ETH1RXEN_Pos) /*!< 0x00020000 */
  14134. #define RCC_AHB1ENR_ETH1RXEN RCC_AHB1ENR_ETH1RXEN_Msk
  14135. #define RCC_AHB1ENR_USB1OTGHSEN_Pos (25U)
  14136. #define RCC_AHB1ENR_USB1OTGHSEN_Msk (0x1UL << RCC_AHB1ENR_USB1OTGHSEN_Pos) /*!< 0x02000000 */
  14137. #define RCC_AHB1ENR_USB1OTGHSEN RCC_AHB1ENR_USB1OTGHSEN_Msk
  14138. #define RCC_AHB1ENR_USB1OTGHSULPIEN_Pos (26U)
  14139. #define RCC_AHB1ENR_USB1OTGHSULPIEN_Msk (0x1UL << RCC_AHB1ENR_USB1OTGHSULPIEN_Pos) /*!< 0x04000000 */
  14140. #define RCC_AHB1ENR_USB1OTGHSULPIEN RCC_AHB1ENR_USB1OTGHSULPIEN_Msk
  14141. /******************** Bit definition for RCC_AHB2ENR register ***************/
  14142. #define RCC_AHB2ENR_DCMI_PSSIEN_Pos (0U)
  14143. #define RCC_AHB2ENR_DCMI_PSSIEN_Msk (0x1UL << RCC_AHB2ENR_DCMI_PSSIEN_Pos) /*!< 0x00000001 */
  14144. #define RCC_AHB2ENR_DCMI_PSSIEN RCC_AHB2ENR_DCMI_PSSIEN_Msk
  14145. #define RCC_AHB2ENR_RNGEN_Pos (6U)
  14146. #define RCC_AHB2ENR_RNGEN_Msk (0x1UL << RCC_AHB2ENR_RNGEN_Pos) /*!< 0x00000040 */
  14147. #define RCC_AHB2ENR_RNGEN RCC_AHB2ENR_RNGEN_Msk
  14148. #define RCC_AHB2ENR_SDMMC2EN_Pos (9U)
  14149. #define RCC_AHB2ENR_SDMMC2EN_Msk (0x1UL << RCC_AHB2ENR_SDMMC2EN_Pos) /*!< 0x00000200 */
  14150. #define RCC_AHB2ENR_SDMMC2EN RCC_AHB2ENR_SDMMC2EN_Msk
  14151. #define RCC_AHB2ENR_FMACEN_Pos (16U)
  14152. #define RCC_AHB2ENR_FMACEN_Msk (0x1UL << RCC_AHB2ENR_FMACEN_Pos) /*!< 0x00010000 */
  14153. #define RCC_AHB2ENR_FMACEN RCC_AHB2ENR_FMACEN_Msk
  14154. #define RCC_AHB2ENR_CORDICEN_Pos (17U)
  14155. #define RCC_AHB2ENR_CORDICEN_Msk (0x1UL << RCC_AHB2ENR_CORDICEN_Pos) /*!< 0x00020000 */
  14156. #define RCC_AHB2ENR_CORDICEN RCC_AHB2ENR_CORDICEN_Msk
  14157. #define RCC_AHB2ENR_SRAM1EN_Pos (29U)
  14158. #define RCC_AHB2ENR_SRAM1EN_Msk (0x1UL << RCC_AHB2ENR_SRAM1EN_Pos) /*!< 0x20000000 */
  14159. #define RCC_AHB2ENR_SRAM1EN RCC_AHB2ENR_SRAM1EN_Msk
  14160. #define RCC_AHB2ENR_SRAM2EN_Pos (30U)
  14161. #define RCC_AHB2ENR_SRAM2EN_Msk (0x1UL << RCC_AHB2ENR_SRAM2EN_Pos) /*!< 0x40000000 */
  14162. #define RCC_AHB2ENR_SRAM2EN RCC_AHB2ENR_SRAM2EN_Msk
  14163. /* Legacy define */
  14164. #define RCC_AHB2ENR_DCMIEN_Pos RCC_AHB2ENR_DCMI_PSSIEN_Pos
  14165. #define RCC_AHB2ENR_DCMIEN_Msk RCC_AHB2ENR_DCMI_PSSIEN_Msk
  14166. #define RCC_AHB2ENR_DCMIEN RCC_AHB2ENR_DCMI_PSSIEN
  14167. /* Legacy define */
  14168. #define RCC_AHB2ENR_D2SRAM1EN_Pos RCC_AHB2ENR_SRAM1EN_Pos
  14169. #define RCC_AHB2ENR_D2SRAM1EN_Msk RCC_AHB2ENR_SRAM1EN_Msk
  14170. #define RCC_AHB2ENR_D2SRAM1EN RCC_AHB2ENR_SRAM1EN
  14171. #define RCC_AHB2ENR_D2SRAM2EN_Pos RCC_AHB2ENR_SRAM2EN_Pos
  14172. #define RCC_AHB2ENR_D2SRAM2EN_Msk RCC_AHB2ENR_SRAM2EN_Msk
  14173. #define RCC_AHB2ENR_D2SRAM2EN RCC_AHB2ENR_SRAM2EN
  14174. /******************** Bit definition for RCC_AHB4ENR register ******************/
  14175. #define RCC_AHB4ENR_GPIOAEN_Pos (0U)
  14176. #define RCC_AHB4ENR_GPIOAEN_Msk (0x1UL << RCC_AHB4ENR_GPIOAEN_Pos) /*!< 0x00000001 */
  14177. #define RCC_AHB4ENR_GPIOAEN RCC_AHB4ENR_GPIOAEN_Msk
  14178. #define RCC_AHB4ENR_GPIOBEN_Pos (1U)
  14179. #define RCC_AHB4ENR_GPIOBEN_Msk (0x1UL << RCC_AHB4ENR_GPIOBEN_Pos) /*!< 0x00000002 */
  14180. #define RCC_AHB4ENR_GPIOBEN RCC_AHB4ENR_GPIOBEN_Msk
  14181. #define RCC_AHB4ENR_GPIOCEN_Pos (2U)
  14182. #define RCC_AHB4ENR_GPIOCEN_Msk (0x1UL << RCC_AHB4ENR_GPIOCEN_Pos) /*!< 0x00000004 */
  14183. #define RCC_AHB4ENR_GPIOCEN RCC_AHB4ENR_GPIOCEN_Msk
  14184. #define RCC_AHB4ENR_GPIODEN_Pos (3U)
  14185. #define RCC_AHB4ENR_GPIODEN_Msk (0x1UL << RCC_AHB4ENR_GPIODEN_Pos) /*!< 0x00000008 */
  14186. #define RCC_AHB4ENR_GPIODEN RCC_AHB4ENR_GPIODEN_Msk
  14187. #define RCC_AHB4ENR_GPIOEEN_Pos (4U)
  14188. #define RCC_AHB4ENR_GPIOEEN_Msk (0x1UL << RCC_AHB4ENR_GPIOEEN_Pos) /*!< 0x00000010 */
  14189. #define RCC_AHB4ENR_GPIOEEN RCC_AHB4ENR_GPIOEEN_Msk
  14190. #define RCC_AHB4ENR_GPIOFEN_Pos (5U)
  14191. #define RCC_AHB4ENR_GPIOFEN_Msk (0x1UL << RCC_AHB4ENR_GPIOFEN_Pos) /*!< 0x00000020 */
  14192. #define RCC_AHB4ENR_GPIOFEN RCC_AHB4ENR_GPIOFEN_Msk
  14193. #define RCC_AHB4ENR_GPIOGEN_Pos (6U)
  14194. #define RCC_AHB4ENR_GPIOGEN_Msk (0x1UL << RCC_AHB4ENR_GPIOGEN_Pos) /*!< 0x00000040 */
  14195. #define RCC_AHB4ENR_GPIOGEN RCC_AHB4ENR_GPIOGEN_Msk
  14196. #define RCC_AHB4ENR_GPIOHEN_Pos (7U)
  14197. #define RCC_AHB4ENR_GPIOHEN_Msk (0x1UL << RCC_AHB4ENR_GPIOHEN_Pos) /*!< 0x00000080 */
  14198. #define RCC_AHB4ENR_GPIOHEN RCC_AHB4ENR_GPIOHEN_Msk
  14199. #define RCC_AHB4ENR_GPIOJEN_Pos (9U)
  14200. #define RCC_AHB4ENR_GPIOJEN_Msk (0x1UL << RCC_AHB4ENR_GPIOJEN_Pos) /*!< 0x00000200 */
  14201. #define RCC_AHB4ENR_GPIOJEN RCC_AHB4ENR_GPIOJEN_Msk
  14202. #define RCC_AHB4ENR_GPIOKEN_Pos (10U)
  14203. #define RCC_AHB4ENR_GPIOKEN_Msk (0x1UL << RCC_AHB4ENR_GPIOKEN_Pos) /*!< 0x00000400 */
  14204. #define RCC_AHB4ENR_GPIOKEN RCC_AHB4ENR_GPIOKEN_Msk
  14205. #define RCC_AHB4ENR_CRCEN_Pos (19U)
  14206. #define RCC_AHB4ENR_CRCEN_Msk (0x1UL << RCC_AHB4ENR_CRCEN_Pos) /*!< 0x00080000 */
  14207. #define RCC_AHB4ENR_CRCEN RCC_AHB4ENR_CRCEN_Msk
  14208. #define RCC_AHB4ENR_BDMAEN_Pos (21U)
  14209. #define RCC_AHB4ENR_BDMAEN_Msk (0x1UL << RCC_AHB4ENR_BDMAEN_Pos) /*!< 0x00200000 */
  14210. #define RCC_AHB4ENR_BDMAEN RCC_AHB4ENR_BDMAEN_Msk
  14211. #define RCC_AHB4ENR_ADC3EN_Pos (24U)
  14212. #define RCC_AHB4ENR_ADC3EN_Msk (0x1UL << RCC_AHB4ENR_ADC3EN_Pos) /*!< 0x01000000 */
  14213. #define RCC_AHB4ENR_ADC3EN RCC_AHB4ENR_ADC3EN_Msk
  14214. #define RCC_AHB4ENR_HSEMEN_Pos (25U)
  14215. #define RCC_AHB4ENR_HSEMEN_Msk (0x1UL << RCC_AHB4ENR_HSEMEN_Pos) /*!< 0x02000000 */
  14216. #define RCC_AHB4ENR_HSEMEN RCC_AHB4ENR_HSEMEN_Msk
  14217. #define RCC_AHB4ENR_BKPRAMEN_Pos (28U)
  14218. #define RCC_AHB4ENR_BKPRAMEN_Msk (0x1UL << RCC_AHB4ENR_BKPRAMEN_Pos) /*!< 0x10000000 */
  14219. #define RCC_AHB4ENR_BKPRAMEN RCC_AHB4ENR_BKPRAMEN_Msk
  14220. /******************** Bit definition for RCC_APB3ENR register ******************/
  14221. #define RCC_APB3ENR_LTDCEN_Pos (3U)
  14222. #define RCC_APB3ENR_LTDCEN_Msk (0x1UL << RCC_APB3ENR_LTDCEN_Pos) /*!< 0x00000008 */
  14223. #define RCC_APB3ENR_LTDCEN RCC_APB3ENR_LTDCEN_Msk
  14224. #define RCC_APB3ENR_WWDG1EN_Pos (6U)
  14225. #define RCC_APB3ENR_WWDG1EN_Msk (0x1UL << RCC_APB3ENR_WWDG1EN_Pos) /*!< 0x00000040 */
  14226. #define RCC_APB3ENR_WWDG1EN RCC_APB3ENR_WWDG1EN_Msk
  14227. /******************** Bit definition for RCC_APB1LENR register ******************/
  14228. #define RCC_APB1LENR_TIM2EN_Pos (0U)
  14229. #define RCC_APB1LENR_TIM2EN_Msk (0x1UL << RCC_APB1LENR_TIM2EN_Pos) /*!< 0x00000001 */
  14230. #define RCC_APB1LENR_TIM2EN RCC_APB1LENR_TIM2EN_Msk
  14231. #define RCC_APB1LENR_TIM3EN_Pos (1U)
  14232. #define RCC_APB1LENR_TIM3EN_Msk (0x1UL << RCC_APB1LENR_TIM3EN_Pos) /*!< 0x00000002 */
  14233. #define RCC_APB1LENR_TIM3EN RCC_APB1LENR_TIM3EN_Msk
  14234. #define RCC_APB1LENR_TIM4EN_Pos (2U)
  14235. #define RCC_APB1LENR_TIM4EN_Msk (0x1UL << RCC_APB1LENR_TIM4EN_Pos) /*!< 0x00000004 */
  14236. #define RCC_APB1LENR_TIM4EN RCC_APB1LENR_TIM4EN_Msk
  14237. #define RCC_APB1LENR_TIM5EN_Pos (3U)
  14238. #define RCC_APB1LENR_TIM5EN_Msk (0x1UL << RCC_APB1LENR_TIM5EN_Pos) /*!< 0x00000008 */
  14239. #define RCC_APB1LENR_TIM5EN RCC_APB1LENR_TIM5EN_Msk
  14240. #define RCC_APB1LENR_TIM6EN_Pos (4U)
  14241. #define RCC_APB1LENR_TIM6EN_Msk (0x1UL << RCC_APB1LENR_TIM6EN_Pos) /*!< 0x00000010 */
  14242. #define RCC_APB1LENR_TIM6EN RCC_APB1LENR_TIM6EN_Msk
  14243. #define RCC_APB1LENR_TIM7EN_Pos (5U)
  14244. #define RCC_APB1LENR_TIM7EN_Msk (0x1UL << RCC_APB1LENR_TIM7EN_Pos) /*!< 0x00000020 */
  14245. #define RCC_APB1LENR_TIM7EN RCC_APB1LENR_TIM7EN_Msk
  14246. #define RCC_APB1LENR_TIM12EN_Pos (6U)
  14247. #define RCC_APB1LENR_TIM12EN_Msk (0x1UL << RCC_APB1LENR_TIM12EN_Pos) /*!< 0x00000040 */
  14248. #define RCC_APB1LENR_TIM12EN RCC_APB1LENR_TIM12EN_Msk
  14249. #define RCC_APB1LENR_TIM13EN_Pos (7U)
  14250. #define RCC_APB1LENR_TIM13EN_Msk (0x1UL << RCC_APB1LENR_TIM13EN_Pos) /*!< 0x00000080 */
  14251. #define RCC_APB1LENR_TIM13EN RCC_APB1LENR_TIM13EN_Msk
  14252. #define RCC_APB1LENR_TIM14EN_Pos (8U)
  14253. #define RCC_APB1LENR_TIM14EN_Msk (0x1UL << RCC_APB1LENR_TIM14EN_Pos) /*!< 0x00000100 */
  14254. #define RCC_APB1LENR_TIM14EN RCC_APB1LENR_TIM14EN_Msk
  14255. #define RCC_APB1LENR_LPTIM1EN_Pos (9U)
  14256. #define RCC_APB1LENR_LPTIM1EN_Msk (0x1UL << RCC_APB1LENR_LPTIM1EN_Pos) /*!< 0x00000200 */
  14257. #define RCC_APB1LENR_LPTIM1EN RCC_APB1LENR_LPTIM1EN_Msk
  14258. #define RCC_APB1LENR_SPI2EN_Pos (14U)
  14259. #define RCC_APB1LENR_SPI2EN_Msk (0x1UL << RCC_APB1LENR_SPI2EN_Pos) /*!< 0x00004000 */
  14260. #define RCC_APB1LENR_SPI2EN RCC_APB1LENR_SPI2EN_Msk
  14261. #define RCC_APB1LENR_SPI3EN_Pos (15U)
  14262. #define RCC_APB1LENR_SPI3EN_Msk (0x1UL << RCC_APB1LENR_SPI3EN_Pos) /*!< 0x00008000 */
  14263. #define RCC_APB1LENR_SPI3EN RCC_APB1LENR_SPI3EN_Msk
  14264. #define RCC_APB1LENR_SPDIFRXEN_Pos (16U)
  14265. #define RCC_APB1LENR_SPDIFRXEN_Msk (0x1UL << RCC_APB1LENR_SPDIFRXEN_Pos) /*!< 0x00010000 */
  14266. #define RCC_APB1LENR_SPDIFRXEN RCC_APB1LENR_SPDIFRXEN_Msk
  14267. #define RCC_APB1LENR_USART2EN_Pos (17U)
  14268. #define RCC_APB1LENR_USART2EN_Msk (0x1UL << RCC_APB1LENR_USART2EN_Pos) /*!< 0x00020000 */
  14269. #define RCC_APB1LENR_USART2EN RCC_APB1LENR_USART2EN_Msk
  14270. #define RCC_APB1LENR_USART3EN_Pos (18U)
  14271. #define RCC_APB1LENR_USART3EN_Msk (0x1UL << RCC_APB1LENR_USART3EN_Pos) /*!< 0x00040000 */
  14272. #define RCC_APB1LENR_USART3EN RCC_APB1LENR_USART3EN_Msk
  14273. #define RCC_APB1LENR_UART4EN_Pos (19U)
  14274. #define RCC_APB1LENR_UART4EN_Msk (0x1UL << RCC_APB1LENR_UART4EN_Pos) /*!< 0x00080000 */
  14275. #define RCC_APB1LENR_UART4EN RCC_APB1LENR_UART4EN_Msk
  14276. #define RCC_APB1LENR_UART5EN_Pos (20U)
  14277. #define RCC_APB1LENR_UART5EN_Msk (0x1UL << RCC_APB1LENR_UART5EN_Pos) /*!< 0x00100000 */
  14278. #define RCC_APB1LENR_UART5EN RCC_APB1LENR_UART5EN_Msk
  14279. #define RCC_APB1LENR_I2C1EN_Pos (21U)
  14280. #define RCC_APB1LENR_I2C1EN_Msk (0x1UL << RCC_APB1LENR_I2C1EN_Pos) /*!< 0x00200000 */
  14281. #define RCC_APB1LENR_I2C1EN RCC_APB1LENR_I2C1EN_Msk
  14282. #define RCC_APB1LENR_I2C2EN_Pos (22U)
  14283. #define RCC_APB1LENR_I2C2EN_Msk (0x1UL << RCC_APB1LENR_I2C2EN_Pos) /*!< 0x00400000 */
  14284. #define RCC_APB1LENR_I2C2EN RCC_APB1LENR_I2C2EN_Msk
  14285. #define RCC_APB1LENR_I2C3EN_Pos (23U)
  14286. #define RCC_APB1LENR_I2C3EN_Msk (0x1UL << RCC_APB1LENR_I2C3EN_Pos) /*!< 0x00800000 */
  14287. #define RCC_APB1LENR_I2C3EN RCC_APB1LENR_I2C3EN_Msk
  14288. #define RCC_APB1LENR_I2C5EN_Pos (25U)
  14289. #define RCC_APB1LENR_I2C5EN_Msk (0x1UL << RCC_APB1LENR_I2C5EN_Pos) /*!< 0x02000000 */
  14290. #define RCC_APB1LENR_I2C5EN RCC_APB1LENR_I2C5EN_Msk
  14291. #define RCC_APB1LENR_CECEN_Pos (27U)
  14292. #define RCC_APB1LENR_CECEN_Msk (0x1UL << RCC_APB1LENR_CECEN_Pos) /*!< 0x08000000 */
  14293. #define RCC_APB1LENR_CECEN RCC_APB1LENR_CECEN_Msk
  14294. #define RCC_APB1LENR_DAC12EN_Pos (29U)
  14295. #define RCC_APB1LENR_DAC12EN_Msk (0x1UL << RCC_APB1LENR_DAC12EN_Pos) /*!< 0x20000000 */
  14296. #define RCC_APB1LENR_DAC12EN RCC_APB1LENR_DAC12EN_Msk
  14297. #define RCC_APB1LENR_UART7EN_Pos (30U)
  14298. #define RCC_APB1LENR_UART7EN_Msk (0x1UL << RCC_APB1LENR_UART7EN_Pos) /*!< 0x40000000 */
  14299. #define RCC_APB1LENR_UART7EN RCC_APB1LENR_UART7EN_Msk
  14300. #define RCC_APB1LENR_UART8EN_Pos (31U)
  14301. #define RCC_APB1LENR_UART8EN_Msk (0x1UL << RCC_APB1LENR_UART8EN_Pos) /*!< 0x80000000 */
  14302. #define RCC_APB1LENR_UART8EN RCC_APB1LENR_UART8EN_Msk
  14303. /* Legacy define */
  14304. #define RCC_APB1LENR_HDMICECEN_Pos RCC_APB1LENR_CECEN_Pos
  14305. #define RCC_APB1LENR_HDMICECEN_Msk RCC_APB1LENR_CECEN_Msk
  14306. #define RCC_APB1LENR_HDMICECEN RCC_APB1LENR_CECEN
  14307. /******************** Bit definition for RCC_APB1HENR register ******************/
  14308. #define RCC_APB1HENR_CRSEN_Pos (1U)
  14309. #define RCC_APB1HENR_CRSEN_Msk (0x1UL << RCC_APB1HENR_CRSEN_Pos) /*!< 0x00000002 */
  14310. #define RCC_APB1HENR_CRSEN RCC_APB1HENR_CRSEN_Msk
  14311. #define RCC_APB1HENR_SWPMIEN_Pos (2U)
  14312. #define RCC_APB1HENR_SWPMIEN_Msk (0x1UL << RCC_APB1HENR_SWPMIEN_Pos) /*!< 0x00000004 */
  14313. #define RCC_APB1HENR_SWPMIEN RCC_APB1HENR_SWPMIEN_Msk
  14314. #define RCC_APB1HENR_OPAMPEN_Pos (4U)
  14315. #define RCC_APB1HENR_OPAMPEN_Msk (0x1UL << RCC_APB1HENR_OPAMPEN_Pos) /*!< 0x00000010 */
  14316. #define RCC_APB1HENR_OPAMPEN RCC_APB1HENR_OPAMPEN_Msk
  14317. #define RCC_APB1HENR_MDIOSEN_Pos (5U)
  14318. #define RCC_APB1HENR_MDIOSEN_Msk (0x1UL << RCC_APB1HENR_MDIOSEN_Pos) /*!< 0x00000020 */
  14319. #define RCC_APB1HENR_MDIOSEN RCC_APB1HENR_MDIOSEN_Msk
  14320. #define RCC_APB1HENR_FDCANEN_Pos (8U)
  14321. #define RCC_APB1HENR_FDCANEN_Msk (0x1UL << RCC_APB1HENR_FDCANEN_Pos) /*!< 0x00000100 */
  14322. #define RCC_APB1HENR_FDCANEN RCC_APB1HENR_FDCANEN_Msk
  14323. #define RCC_APB1HENR_TIM23EN_Pos (24U)
  14324. #define RCC_APB1HENR_TIM23EN_Msk (0x1UL << RCC_APB1HENR_TIM23EN_Pos) /*!< 0x01000000 */
  14325. #define RCC_APB1HENR_TIM23EN RCC_APB1HENR_TIM23EN_Msk
  14326. #define RCC_APB1HENR_TIM24EN_Pos (25U)
  14327. #define RCC_APB1HENR_TIM24EN_Msk (0x1UL << RCC_APB1HENR_TIM24EN_Pos) /*!< 0x02000000 */
  14328. #define RCC_APB1HENR_TIM24EN RCC_APB1HENR_TIM24EN_Msk
  14329. /******************** Bit definition for RCC_APB2ENR register ******************/
  14330. #define RCC_APB2ENR_TIM1EN_Pos (0U)
  14331. #define RCC_APB2ENR_TIM1EN_Msk (0x1UL << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000001 */
  14332. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk
  14333. #define RCC_APB2ENR_TIM8EN_Pos (1U)
  14334. #define RCC_APB2ENR_TIM8EN_Msk (0x1UL << RCC_APB2ENR_TIM8EN_Pos) /*!< 0x00000002 */
  14335. #define RCC_APB2ENR_TIM8EN RCC_APB2ENR_TIM8EN_Msk
  14336. #define RCC_APB2ENR_USART1EN_Pos (4U)
  14337. #define RCC_APB2ENR_USART1EN_Msk (0x1UL << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00000010 */
  14338. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk
  14339. #define RCC_APB2ENR_USART6EN_Pos (5U)
  14340. #define RCC_APB2ENR_USART6EN_Msk (0x1UL << RCC_APB2ENR_USART6EN_Pos) /*!< 0x00000020 */
  14341. #define RCC_APB2ENR_USART6EN RCC_APB2ENR_USART6EN_Msk
  14342. #define RCC_APB2ENR_UART9EN_Pos (6U)
  14343. #define RCC_APB2ENR_UART9EN_Msk (0x1UL << RCC_APB2ENR_UART9EN_Pos) /*!< 0x00000040 */
  14344. #define RCC_APB2ENR_UART9EN RCC_APB2ENR_UART9EN_Msk
  14345. #define RCC_APB2ENR_USART10EN_Pos (7U)
  14346. #define RCC_APB2ENR_USART10EN_Msk (0x1UL << RCC_APB2ENR_USART10EN_Pos) /*!< 0x00000080 */
  14347. #define RCC_APB2ENR_USART10EN RCC_APB2ENR_USART10EN_Msk
  14348. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  14349. #define RCC_APB2ENR_SPI1EN_Msk (0x1UL << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  14350. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk
  14351. #define RCC_APB2ENR_SPI4EN_Pos (13U)
  14352. #define RCC_APB2ENR_SPI4EN_Msk (0x1UL << RCC_APB2ENR_SPI4EN_Pos) /*!< 0x00002000 */
  14353. #define RCC_APB2ENR_SPI4EN RCC_APB2ENR_SPI4EN_Msk
  14354. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  14355. #define RCC_APB2ENR_TIM15EN_Msk (0x1UL << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */
  14356. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk
  14357. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  14358. #define RCC_APB2ENR_TIM16EN_Msk (0x1UL << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
  14359. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk
  14360. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  14361. #define RCC_APB2ENR_TIM17EN_Msk (0x1UL << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
  14362. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk
  14363. #define RCC_APB2ENR_SPI5EN_Pos (20U)
  14364. #define RCC_APB2ENR_SPI5EN_Msk (0x1UL << RCC_APB2ENR_SPI5EN_Pos) /*!< 0x00100000 */
  14365. #define RCC_APB2ENR_SPI5EN RCC_APB2ENR_SPI5EN_Msk
  14366. #define RCC_APB2ENR_SAI1EN_Pos (22U)
  14367. #define RCC_APB2ENR_SAI1EN_Msk (0x1UL << RCC_APB2ENR_SAI1EN_Pos) /*!< 0x00400000 */
  14368. #define RCC_APB2ENR_SAI1EN RCC_APB2ENR_SAI1EN_Msk
  14369. #define RCC_APB2ENR_DFSDM1EN_Pos (30U)
  14370. #define RCC_APB2ENR_DFSDM1EN_Msk (0x1UL << RCC_APB2ENR_DFSDM1EN_Pos) /*!< 0x40000000 */
  14371. #define RCC_APB2ENR_DFSDM1EN RCC_APB2ENR_DFSDM1EN_Msk
  14372. /******************** Bit definition for RCC_APB4ENR register ******************/
  14373. #define RCC_APB4ENR_SYSCFGEN_Pos (1U)
  14374. #define RCC_APB4ENR_SYSCFGEN_Msk (0x1UL << RCC_APB4ENR_SYSCFGEN_Pos) /*!< 0x00000002 */
  14375. #define RCC_APB4ENR_SYSCFGEN RCC_APB4ENR_SYSCFGEN_Msk
  14376. #define RCC_APB4ENR_LPUART1EN_Pos (3U)
  14377. #define RCC_APB4ENR_LPUART1EN_Msk (0x1UL << RCC_APB4ENR_LPUART1EN_Pos) /*!< 0x00000008 */
  14378. #define RCC_APB4ENR_LPUART1EN RCC_APB4ENR_LPUART1EN_Msk
  14379. #define RCC_APB4ENR_SPI6EN_Pos (5U)
  14380. #define RCC_APB4ENR_SPI6EN_Msk (0x1UL << RCC_APB4ENR_SPI6EN_Pos) /*!< 0x00000020 */
  14381. #define RCC_APB4ENR_SPI6EN RCC_APB4ENR_SPI6EN_Msk
  14382. #define RCC_APB4ENR_I2C4EN_Pos (7U)
  14383. #define RCC_APB4ENR_I2C4EN_Msk (0x1UL << RCC_APB4ENR_I2C4EN_Pos) /*!< 0x00000080 */
  14384. #define RCC_APB4ENR_I2C4EN RCC_APB4ENR_I2C4EN_Msk
  14385. #define RCC_APB4ENR_LPTIM2EN_Pos (9U)
  14386. #define RCC_APB4ENR_LPTIM2EN_Msk (0x1UL << RCC_APB4ENR_LPTIM2EN_Pos) /*!< 0x00000200 */
  14387. #define RCC_APB4ENR_LPTIM2EN RCC_APB4ENR_LPTIM2EN_Msk
  14388. #define RCC_APB4ENR_LPTIM3EN_Pos (10U)
  14389. #define RCC_APB4ENR_LPTIM3EN_Msk (0x1UL << RCC_APB4ENR_LPTIM3EN_Pos) /*!< 0x00000400 */
  14390. #define RCC_APB4ENR_LPTIM3EN RCC_APB4ENR_LPTIM3EN_Msk
  14391. #define RCC_APB4ENR_LPTIM4EN_Pos (11U)
  14392. #define RCC_APB4ENR_LPTIM4EN_Msk (0x1UL << RCC_APB4ENR_LPTIM4EN_Pos) /*!< 0x00000800 */
  14393. #define RCC_APB4ENR_LPTIM4EN RCC_APB4ENR_LPTIM4EN_Msk
  14394. #define RCC_APB4ENR_LPTIM5EN_Pos (12U)
  14395. #define RCC_APB4ENR_LPTIM5EN_Msk (0x1UL << RCC_APB4ENR_LPTIM5EN_Pos) /*!< 0x00001000 */
  14396. #define RCC_APB4ENR_LPTIM5EN RCC_APB4ENR_LPTIM5EN_Msk
  14397. #define RCC_APB4ENR_COMP12EN_Pos (14U)
  14398. #define RCC_APB4ENR_COMP12EN_Msk (0x1UL << RCC_APB4ENR_COMP12EN_Pos) /*!< 0x00004000 */
  14399. #define RCC_APB4ENR_COMP12EN RCC_APB4ENR_COMP12EN_Msk
  14400. #define RCC_APB4ENR_VREFEN_Pos (15U)
  14401. #define RCC_APB4ENR_VREFEN_Msk (0x1UL << RCC_APB4ENR_VREFEN_Pos) /*!< 0x00008000 */
  14402. #define RCC_APB4ENR_VREFEN RCC_APB4ENR_VREFEN_Msk
  14403. #define RCC_APB4ENR_RTCAPBEN_Pos (16U)
  14404. #define RCC_APB4ENR_RTCAPBEN_Msk (0x1UL << RCC_APB4ENR_RTCAPBEN_Pos) /*!< 0x00010000 */
  14405. #define RCC_APB4ENR_RTCAPBEN RCC_APB4ENR_RTCAPBEN_Msk
  14406. #define RCC_APB4ENR_SAI4EN_Pos (21U)
  14407. #define RCC_APB4ENR_SAI4EN_Msk (0x1UL << RCC_APB4ENR_SAI4EN_Pos) /*!< 0x00200000 */
  14408. #define RCC_APB4ENR_SAI4EN RCC_APB4ENR_SAI4EN_Msk
  14409. #define RCC_APB4ENR_DTSEN_Pos (26U)
  14410. #define RCC_APB4ENR_DTSEN_Msk (0x1UL << RCC_APB4ENR_DTSEN_Pos) /*!< 0x04000000 */
  14411. #define RCC_APB4ENR_DTSEN RCC_APB4ENR_DTSEN_Msk
  14412. /******************** Bit definition for RCC_AHB3RSTR register ***************/
  14413. #define RCC_AHB3RSTR_MDMARST_Pos (0U)
  14414. #define RCC_AHB3RSTR_MDMARST_Msk (0x1UL << RCC_AHB3RSTR_MDMARST_Pos) /*!< 0x00000001 */
  14415. #define RCC_AHB3RSTR_MDMARST RCC_AHB3RSTR_MDMARST_Msk
  14416. #define RCC_AHB3RSTR_DMA2DRST_Pos (4U)
  14417. #define RCC_AHB3RSTR_DMA2DRST_Msk (0x1UL << RCC_AHB3RSTR_DMA2DRST_Pos) /*!< 0x00000010 */
  14418. #define RCC_AHB3RSTR_DMA2DRST RCC_AHB3RSTR_DMA2DRST_Msk
  14419. #define RCC_AHB3RSTR_FMCRST_Pos (12U)
  14420. #define RCC_AHB3RSTR_FMCRST_Msk (0x1UL << RCC_AHB3RSTR_FMCRST_Pos) /*!< 0x00001000 */
  14421. #define RCC_AHB3RSTR_FMCRST RCC_AHB3RSTR_FMCRST_Msk
  14422. #define RCC_AHB3RSTR_OSPI1RST_Pos (14U)
  14423. #define RCC_AHB3RSTR_OSPI1RST_Msk (0x1UL << RCC_AHB3RSTR_OSPI1RST_Pos) /*!< 0x00004000 */
  14424. #define RCC_AHB3RSTR_OSPI1RST RCC_AHB3RSTR_OSPI1RST_Msk
  14425. #define RCC_AHB3RSTR_SDMMC1RST_Pos (16U)
  14426. #define RCC_AHB3RSTR_SDMMC1RST_Msk (0x1UL << RCC_AHB3RSTR_SDMMC1RST_Pos) /*!< 0x00010000 */
  14427. #define RCC_AHB3RSTR_SDMMC1RST RCC_AHB3RSTR_SDMMC1RST_Msk
  14428. #define RCC_AHB3RSTR_OSPI2RST_Pos (19U)
  14429. #define RCC_AHB3RSTR_OSPI2RST_Msk (0x1UL << RCC_AHB3RSTR_OSPI2RST_Pos) /*!< 0x00008000 */
  14430. #define RCC_AHB3RSTR_OSPI2RST RCC_AHB3RSTR_OSPI2RST_Msk
  14431. #define RCC_AHB3RSTR_IOMNGRRST_Pos (21U)
  14432. #define RCC_AHB3RSTR_IOMNGRRST_Msk (0x1UL << RCC_AHB3RSTR_IOMNGRRST_Pos) /*!< 0x00020000 */
  14433. #define RCC_AHB3RSTR_IOMNGRRST RCC_AHB3RSTR_IOMNGRRST_Msk
  14434. #define RCC_AHB3RSTR_CPURST_Pos (31U)
  14435. #define RCC_AHB3RSTR_CPURST_Msk (0x1UL << RCC_AHB3RSTR_CPURST_Pos) /*!< 0x80000000 */
  14436. #define RCC_AHB3RSTR_CPURST RCC_AHB3RSTR_CPURST_Msk
  14437. /******************** Bit definition for RCC_AHB1RSTR register ***************/
  14438. #define RCC_AHB1RSTR_DMA1RST_Pos (0U)
  14439. #define RCC_AHB1RSTR_DMA1RST_Msk (0x1UL << RCC_AHB1RSTR_DMA1RST_Pos) /*!< 0x00000001 */
  14440. #define RCC_AHB1RSTR_DMA1RST RCC_AHB1RSTR_DMA1RST_Msk
  14441. #define RCC_AHB1RSTR_DMA2RST_Pos (1U)
  14442. #define RCC_AHB1RSTR_DMA2RST_Msk (0x1UL << RCC_AHB1RSTR_DMA2RST_Pos) /*!< 0x00000002 */
  14443. #define RCC_AHB1RSTR_DMA2RST RCC_AHB1RSTR_DMA2RST_Msk
  14444. #define RCC_AHB1RSTR_ADC12RST_Pos (5U)
  14445. #define RCC_AHB1RSTR_ADC12RST_Msk (0x1UL << RCC_AHB1RSTR_ADC12RST_Pos) /*!< 0x00000020 */
  14446. #define RCC_AHB1RSTR_ADC12RST RCC_AHB1RSTR_ADC12RST_Msk
  14447. #define RCC_AHB1RSTR_ETH1MACRST_Pos (15U)
  14448. #define RCC_AHB1RSTR_ETH1MACRST_Msk (0x1UL << RCC_AHB1RSTR_ETH1MACRST_Pos) /*!< 0x00008000 */
  14449. #define RCC_AHB1RSTR_ETH1MACRST RCC_AHB1RSTR_ETH1MACRST_Msk
  14450. #define RCC_AHB1RSTR_USB1OTGHSRST_Pos (25U)
  14451. #define RCC_AHB1RSTR_USB1OTGHSRST_Msk (0x1UL << RCC_AHB1RSTR_USB1OTGHSRST_Pos) /*!< 0x02000000 */
  14452. #define RCC_AHB1RSTR_USB1OTGHSRST RCC_AHB1RSTR_USB1OTGHSRST_Msk
  14453. /******************** Bit definition for RCC_AHB2RSTR register ***************/
  14454. #define RCC_AHB2RSTR_DCMI_PSSIRST_Pos (0U)
  14455. #define RCC_AHB2RSTR_DCMI_PSSIRST_Msk (0x1UL << RCC_AHB2RSTR_DCMI_PSSIRST_Pos) /*!< 0x00000001 */
  14456. #define RCC_AHB2RSTR_DCMI_PSSIRST RCC_AHB2RSTR_DCMI_PSSIRST_Msk
  14457. #define RCC_AHB2RSTR_RNGRST_Pos (6U)
  14458. #define RCC_AHB2RSTR_RNGRST_Msk (0x1UL << RCC_AHB2RSTR_RNGRST_Pos) /*!< 0x00000040 */
  14459. #define RCC_AHB2RSTR_RNGRST RCC_AHB2RSTR_RNGRST_Msk
  14460. #define RCC_AHB2RSTR_SDMMC2RST_Pos (9U)
  14461. #define RCC_AHB2RSTR_SDMMC2RST_Msk (0x1UL << RCC_AHB2RSTR_SDMMC2RST_Pos) /*!< 0x00000200 */
  14462. #define RCC_AHB2RSTR_SDMMC2RST RCC_AHB2RSTR_SDMMC2RST_Msk
  14463. #define RCC_AHB2RSTR_FMACRST_Pos (16U)
  14464. #define RCC_AHB2RSTR_FMACRST_Msk (0x1UL << RCC_AHB2RSTR_FMACRST_Pos) /*!< 0x00010000 */
  14465. #define RCC_AHB2RSTR_FMACRST RCC_AHB2RSTR_FMACRST_Msk
  14466. #define RCC_AHB2RSTR_CORDICRST_Pos (17U)
  14467. #define RCC_AHB2RSTR_CORDICRST_Msk (0x1UL << RCC_AHB2RSTR_CORDICRST_Pos) /*!< 0x00020000 */
  14468. #define RCC_AHB2RSTR_CORDICRST RCC_AHB2RSTR_CORDICRST_Msk
  14469. /* Legacy define */
  14470. #define RCC_AHB2RSTR_DCMIRST_Pos RCC_AHB2RSTR_DCMI_PSSIRST_Pos
  14471. #define RCC_AHB2RSTR_DCMIRST_Msk RCC_AHB2RSTR_DCMI_PSSIRST_Msk
  14472. #define RCC_AHB2RSTR_DCMIRST RCC_AHB2RSTR_DCMI_PSSIRST
  14473. /******************** Bit definition for RCC_AHB4RSTR register ******************/
  14474. #define RCC_AHB4RSTR_GPIOARST_Pos (0U)
  14475. #define RCC_AHB4RSTR_GPIOARST_Msk (0x1UL << RCC_AHB4RSTR_GPIOARST_Pos) /*!< 0x00000001 */
  14476. #define RCC_AHB4RSTR_GPIOARST RCC_AHB4RSTR_GPIOARST_Msk
  14477. #define RCC_AHB4RSTR_GPIOBRST_Pos (1U)
  14478. #define RCC_AHB4RSTR_GPIOBRST_Msk (0x1UL << RCC_AHB4RSTR_GPIOBRST_Pos) /*!< 0x00000002 */
  14479. #define RCC_AHB4RSTR_GPIOBRST RCC_AHB4RSTR_GPIOBRST_Msk
  14480. #define RCC_AHB4RSTR_GPIOCRST_Pos (2U)
  14481. #define RCC_AHB4RSTR_GPIOCRST_Msk (0x1UL << RCC_AHB4RSTR_GPIOCRST_Pos) /*!< 0x00000004 */
  14482. #define RCC_AHB4RSTR_GPIOCRST RCC_AHB4RSTR_GPIOCRST_Msk
  14483. #define RCC_AHB4RSTR_GPIODRST_Pos (3U)
  14484. #define RCC_AHB4RSTR_GPIODRST_Msk (0x1UL << RCC_AHB4RSTR_GPIODRST_Pos) /*!< 0x00000008 */
  14485. #define RCC_AHB4RSTR_GPIODRST RCC_AHB4RSTR_GPIODRST_Msk
  14486. #define RCC_AHB4RSTR_GPIOERST_Pos (4U)
  14487. #define RCC_AHB4RSTR_GPIOERST_Msk (0x1UL << RCC_AHB4RSTR_GPIOERST_Pos) /*!< 0x00000010 */
  14488. #define RCC_AHB4RSTR_GPIOERST RCC_AHB4RSTR_GPIOERST_Msk
  14489. #define RCC_AHB4RSTR_GPIOFRST_Pos (5U)
  14490. #define RCC_AHB4RSTR_GPIOFRST_Msk (0x1UL << RCC_AHB4RSTR_GPIOFRST_Pos) /*!< 0x00000020 */
  14491. #define RCC_AHB4RSTR_GPIOFRST RCC_AHB4RSTR_GPIOFRST_Msk
  14492. #define RCC_AHB4RSTR_GPIOGRST_Pos (6U)
  14493. #define RCC_AHB4RSTR_GPIOGRST_Msk (0x1UL << RCC_AHB4RSTR_GPIOGRST_Pos) /*!< 0x00000040 */
  14494. #define RCC_AHB4RSTR_GPIOGRST RCC_AHB4RSTR_GPIOGRST_Msk
  14495. #define RCC_AHB4RSTR_GPIOHRST_Pos (7U)
  14496. #define RCC_AHB4RSTR_GPIOHRST_Msk (0x1UL << RCC_AHB4RSTR_GPIOHRST_Pos) /*!< 0x00000080 */
  14497. #define RCC_AHB4RSTR_GPIOHRST RCC_AHB4RSTR_GPIOHRST_Msk
  14498. #define RCC_AHB4RSTR_GPIOJRST_Pos (9U)
  14499. #define RCC_AHB4RSTR_GPIOJRST_Msk (0x1UL << RCC_AHB4RSTR_GPIOJRST_Pos) /*!< 0x00000200 */
  14500. #define RCC_AHB4RSTR_GPIOJRST RCC_AHB4RSTR_GPIOJRST_Msk
  14501. #define RCC_AHB4RSTR_GPIOKRST_Pos (10U)
  14502. #define RCC_AHB4RSTR_GPIOKRST_Msk (0x1UL << RCC_AHB4RSTR_GPIOKRST_Pos) /*!< 0x00000400 */
  14503. #define RCC_AHB4RSTR_GPIOKRST RCC_AHB4RSTR_GPIOKRST_Msk
  14504. #define RCC_AHB4RSTR_CRCRST_Pos (19U)
  14505. #define RCC_AHB4RSTR_CRCRST_Msk (0x1UL << RCC_AHB4RSTR_CRCRST_Pos) /*!< 0x00080000 */
  14506. #define RCC_AHB4RSTR_CRCRST RCC_AHB4RSTR_CRCRST_Msk
  14507. #define RCC_AHB4RSTR_BDMARST_Pos (21U)
  14508. #define RCC_AHB4RSTR_BDMARST_Msk (0x1UL << RCC_AHB4RSTR_BDMARST_Pos) /*!< 0x00200000 */
  14509. #define RCC_AHB4RSTR_BDMARST RCC_AHB4RSTR_BDMARST_Msk
  14510. #define RCC_AHB4RSTR_ADC3RST_Pos (24U)
  14511. #define RCC_AHB4RSTR_ADC3RST_Msk (0x1UL << RCC_AHB4RSTR_ADC3RST_Pos) /*!< 0x01000000 */
  14512. #define RCC_AHB4RSTR_ADC3RST RCC_AHB4RSTR_ADC3RST_Msk
  14513. #define RCC_AHB4RSTR_HSEMRST_Pos (25U)
  14514. #define RCC_AHB4RSTR_HSEMRST_Msk (0x1UL << RCC_AHB4RSTR_HSEMRST_Pos) /*!< 0x02000000 */
  14515. #define RCC_AHB4RSTR_HSEMRST RCC_AHB4RSTR_HSEMRST_Msk
  14516. /******************** Bit definition for RCC_APB3RSTR register ******************/
  14517. #define RCC_APB3RSTR_LTDCRST_Pos (3U)
  14518. #define RCC_APB3RSTR_LTDCRST_Msk (0x1UL << RCC_APB3RSTR_LTDCRST_Pos) /*!< 0x00000008 */
  14519. #define RCC_APB3RSTR_LTDCRST RCC_APB3RSTR_LTDCRST_Msk
  14520. /******************** Bit definition for RCC_APB1LRSTR register ******************/
  14521. #define RCC_APB1LRSTR_TIM2RST_Pos (0U)
  14522. #define RCC_APB1LRSTR_TIM2RST_Msk (0x1UL << RCC_APB1LRSTR_TIM2RST_Pos) /*!< 0x00000001 */
  14523. #define RCC_APB1LRSTR_TIM2RST RCC_APB1LRSTR_TIM2RST_Msk
  14524. #define RCC_APB1LRSTR_TIM3RST_Pos (1U)
  14525. #define RCC_APB1LRSTR_TIM3RST_Msk (0x1UL << RCC_APB1LRSTR_TIM3RST_Pos) /*!< 0x00000002 */
  14526. #define RCC_APB1LRSTR_TIM3RST RCC_APB1LRSTR_TIM3RST_Msk
  14527. #define RCC_APB1LRSTR_TIM4RST_Pos (2U)
  14528. #define RCC_APB1LRSTR_TIM4RST_Msk (0x1UL << RCC_APB1LRSTR_TIM4RST_Pos) /*!< 0x00000004 */
  14529. #define RCC_APB1LRSTR_TIM4RST RCC_APB1LRSTR_TIM4RST_Msk
  14530. #define RCC_APB1LRSTR_TIM5RST_Pos (3U)
  14531. #define RCC_APB1LRSTR_TIM5RST_Msk (0x1UL << RCC_APB1LRSTR_TIM5RST_Pos) /*!< 0x00000008 */
  14532. #define RCC_APB1LRSTR_TIM5RST RCC_APB1LRSTR_TIM5RST_Msk
  14533. #define RCC_APB1LRSTR_TIM6RST_Pos (4U)
  14534. #define RCC_APB1LRSTR_TIM6RST_Msk (0x1UL << RCC_APB1LRSTR_TIM6RST_Pos) /*!< 0x00000010 */
  14535. #define RCC_APB1LRSTR_TIM6RST RCC_APB1LRSTR_TIM6RST_Msk
  14536. #define RCC_APB1LRSTR_TIM7RST_Pos (5U)
  14537. #define RCC_APB1LRSTR_TIM7RST_Msk (0x1UL << RCC_APB1LRSTR_TIM7RST_Pos) /*!< 0x00000020 */
  14538. #define RCC_APB1LRSTR_TIM7RST RCC_APB1LRSTR_TIM7RST_Msk
  14539. #define RCC_APB1LRSTR_TIM12RST_Pos (6U)
  14540. #define RCC_APB1LRSTR_TIM12RST_Msk (0x1UL << RCC_APB1LRSTR_TIM12RST_Pos) /*!< 0x00000040 */
  14541. #define RCC_APB1LRSTR_TIM12RST RCC_APB1LRSTR_TIM12RST_Msk
  14542. #define RCC_APB1LRSTR_TIM13RST_Pos (7U)
  14543. #define RCC_APB1LRSTR_TIM13RST_Msk (0x1UL << RCC_APB1LRSTR_TIM13RST_Pos) /*!< 0x00000080 */
  14544. #define RCC_APB1LRSTR_TIM13RST RCC_APB1LRSTR_TIM13RST_Msk
  14545. #define RCC_APB1LRSTR_TIM14RST_Pos (8U)
  14546. #define RCC_APB1LRSTR_TIM14RST_Msk (0x1UL << RCC_APB1LRSTR_TIM14RST_Pos) /*!< 0x00000100 */
  14547. #define RCC_APB1LRSTR_TIM14RST RCC_APB1LRSTR_TIM14RST_Msk
  14548. #define RCC_APB1LRSTR_LPTIM1RST_Pos (9U)
  14549. #define RCC_APB1LRSTR_LPTIM1RST_Msk (0x1UL << RCC_APB1LRSTR_LPTIM1RST_Pos) /*!< 0x00000200 */
  14550. #define RCC_APB1LRSTR_LPTIM1RST RCC_APB1LRSTR_LPTIM1RST_Msk
  14551. #define RCC_APB1LRSTR_SPI2RST_Pos (14U)
  14552. #define RCC_APB1LRSTR_SPI2RST_Msk (0x1UL << RCC_APB1LRSTR_SPI2RST_Pos) /*!< 0x00004000 */
  14553. #define RCC_APB1LRSTR_SPI2RST RCC_APB1LRSTR_SPI2RST_Msk
  14554. #define RCC_APB1LRSTR_SPI3RST_Pos (15U)
  14555. #define RCC_APB1LRSTR_SPI3RST_Msk (0x1UL << RCC_APB1LRSTR_SPI3RST_Pos) /*!< 0x00008000 */
  14556. #define RCC_APB1LRSTR_SPI3RST RCC_APB1LRSTR_SPI3RST_Msk
  14557. #define RCC_APB1LRSTR_SPDIFRXRST_Pos (16U)
  14558. #define RCC_APB1LRSTR_SPDIFRXRST_Msk (0x1UL << RCC_APB1LRSTR_SPDIFRXRST_Pos) /*!< 0x00010000 */
  14559. #define RCC_APB1LRSTR_SPDIFRXRST RCC_APB1LRSTR_SPDIFRXRST_Msk
  14560. #define RCC_APB1LRSTR_USART2RST_Pos (17U)
  14561. #define RCC_APB1LRSTR_USART2RST_Msk (0x1UL << RCC_APB1LRSTR_USART2RST_Pos) /*!< 0x00020000 */
  14562. #define RCC_APB1LRSTR_USART2RST RCC_APB1LRSTR_USART2RST_Msk
  14563. #define RCC_APB1LRSTR_USART3RST_Pos (18U)
  14564. #define RCC_APB1LRSTR_USART3RST_Msk (0x1UL << RCC_APB1LRSTR_USART3RST_Pos) /*!< 0x00040000 */
  14565. #define RCC_APB1LRSTR_USART3RST RCC_APB1LRSTR_USART3RST_Msk
  14566. #define RCC_APB1LRSTR_UART4RST_Pos (19U)
  14567. #define RCC_APB1LRSTR_UART4RST_Msk (0x1UL << RCC_APB1LRSTR_UART4RST_Pos) /*!< 0x00080000 */
  14568. #define RCC_APB1LRSTR_UART4RST RCC_APB1LRSTR_UART4RST_Msk
  14569. #define RCC_APB1LRSTR_UART5RST_Pos (20U)
  14570. #define RCC_APB1LRSTR_UART5RST_Msk (0x1UL << RCC_APB1LRSTR_UART5RST_Pos) /*!< 0x00100000 */
  14571. #define RCC_APB1LRSTR_UART5RST RCC_APB1LRSTR_UART5RST_Msk
  14572. #define RCC_APB1LRSTR_I2C1RST_Pos (21U)
  14573. #define RCC_APB1LRSTR_I2C1RST_Msk (0x1UL << RCC_APB1LRSTR_I2C1RST_Pos) /*!< 0x00200000 */
  14574. #define RCC_APB1LRSTR_I2C1RST RCC_APB1LRSTR_I2C1RST_Msk
  14575. #define RCC_APB1LRSTR_I2C2RST_Pos (22U)
  14576. #define RCC_APB1LRSTR_I2C2RST_Msk (0x1UL << RCC_APB1LRSTR_I2C2RST_Pos) /*!< 0x00400000 */
  14577. #define RCC_APB1LRSTR_I2C2RST RCC_APB1LRSTR_I2C2RST_Msk
  14578. #define RCC_APB1LRSTR_I2C3RST_Pos (23U)
  14579. #define RCC_APB1LRSTR_I2C3RST_Msk (0x1UL << RCC_APB1LRSTR_I2C3RST_Pos) /*!< 0x00800000 */
  14580. #define RCC_APB1LRSTR_I2C3RST RCC_APB1LRSTR_I2C3RST_Msk
  14581. #define RCC_APB1LRSTR_I2C5RST_Pos (25U)
  14582. #define RCC_APB1LRSTR_I2C5RST_Msk (0x1UL << RCC_APB1LRSTR_I2C5RST_Pos) /*!< 0x02000000 */
  14583. #define RCC_APB1LRSTR_I2C5RST RCC_APB1LRSTR_I2C5RST_Msk
  14584. #define RCC_APB1LRSTR_CECRST_Pos (27U)
  14585. #define RCC_APB1LRSTR_CECRST_Msk (0x1UL << RCC_APB1LRSTR_CECRST_Pos) /*!< 0x08000000 */
  14586. #define RCC_APB1LRSTR_CECRST RCC_APB1LRSTR_CECRST_Msk
  14587. #define RCC_APB1LRSTR_DAC12RST_Pos (29U)
  14588. #define RCC_APB1LRSTR_DAC12RST_Msk (0x1UL << RCC_APB1LRSTR_DAC12RST_Pos) /*!< 0x20000000 */
  14589. #define RCC_APB1LRSTR_DAC12RST RCC_APB1LRSTR_DAC12RST_Msk
  14590. #define RCC_APB1LRSTR_UART7RST_Pos (30U)
  14591. #define RCC_APB1LRSTR_UART7RST_Msk (0x1UL << RCC_APB1LRSTR_UART7RST_Pos) /*!< 0x40000000 */
  14592. #define RCC_APB1LRSTR_UART7RST RCC_APB1LRSTR_UART7RST_Msk
  14593. #define RCC_APB1LRSTR_UART8RST_Pos (31U)
  14594. #define RCC_APB1LRSTR_UART8RST_Msk (0x1UL << RCC_APB1LRSTR_UART8RST_Pos) /*!< 0x80000000 */
  14595. #define RCC_APB1LRSTR_UART8RST RCC_APB1LRSTR_UART8RST_Msk
  14596. /* Legacy define */
  14597. #define RCC_APB1LRSTR_HDMICECRST_Pos RCC_APB1LRSTR_CECRST_Pos
  14598. #define RCC_APB1LRSTR_HDMICECRST_Msk RCC_APB1LRSTR_CECRST_Msk
  14599. #define RCC_APB1LRSTR_HDMICECRST RCC_APB1LRSTR_CECRST
  14600. /******************** Bit definition for RCC_APB1HRSTR register ******************/
  14601. #define RCC_APB1HRSTR_CRSRST_Pos (1U)
  14602. #define RCC_APB1HRSTR_CRSRST_Msk (0x1UL << RCC_APB1HRSTR_CRSRST_Pos) /*!< 0x00000002 */
  14603. #define RCC_APB1HRSTR_CRSRST RCC_APB1HRSTR_CRSRST_Msk
  14604. #define RCC_APB1HRSTR_SWPMIRST_Pos (2U)
  14605. #define RCC_APB1HRSTR_SWPMIRST_Msk (0x1UL << RCC_APB1HRSTR_SWPMIRST_Pos) /*!< 0x00000004 */
  14606. #define RCC_APB1HRSTR_SWPMIRST RCC_APB1HRSTR_SWPMIRST_Msk
  14607. #define RCC_APB1HRSTR_OPAMPRST_Pos (4U)
  14608. #define RCC_APB1HRSTR_OPAMPRST_Msk (0x1UL << RCC_APB1HRSTR_OPAMPRST_Pos) /*!< 0x00000010 */
  14609. #define RCC_APB1HRSTR_OPAMPRST RCC_APB1HRSTR_OPAMPRST_Msk
  14610. #define RCC_APB1HRSTR_MDIOSRST_Pos (5U)
  14611. #define RCC_APB1HRSTR_MDIOSRST_Msk (0x1UL << RCC_APB1HRSTR_MDIOSRST_Pos) /*!< 0x00000020 */
  14612. #define RCC_APB1HRSTR_MDIOSRST RCC_APB1HRSTR_MDIOSRST_Msk
  14613. #define RCC_APB1HRSTR_FDCANRST_Pos (8U)
  14614. #define RCC_APB1HRSTR_FDCANRST_Msk (0x1UL << RCC_APB1HRSTR_FDCANRST_Pos) /*!< 0x00000100 */
  14615. #define RCC_APB1HRSTR_FDCANRST RCC_APB1HRSTR_FDCANRST_Msk
  14616. #define RCC_APB1HRSTR_TIM23RST_Pos (24U)
  14617. #define RCC_APB1HRSTR_TIM23RST_Msk (0x1UL << RCC_APB1HRSTR_TIM23RST_Pos) /*!< 0x01000000 */
  14618. #define RCC_APB1HRSTR_TIM23RST RCC_APB1HRSTR_TIM23RST_Msk
  14619. #define RCC_APB1HRSTR_TIM24RST_Pos (25U)
  14620. #define RCC_APB1HRSTR_TIM24RST_Msk (0x1UL << RCC_APB1HRSTR_TIM24RST_Pos) /*!< 0x02000000 */
  14621. #define RCC_APB1HRSTR_TIM24RST RCC_APB1HRSTR_TIM24RST_Msk
  14622. /******************** Bit definition for RCC_APB2RSTR register ******************/
  14623. #define RCC_APB2RSTR_TIM1RST_Pos (0U)
  14624. #define RCC_APB2RSTR_TIM1RST_Msk (0x1UL << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000001 */
  14625. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk
  14626. #define RCC_APB2RSTR_TIM8RST_Pos (1U)
  14627. #define RCC_APB2RSTR_TIM8RST_Msk (0x1UL << RCC_APB2RSTR_TIM8RST_Pos) /*!< 0x00000002 */
  14628. #define RCC_APB2RSTR_TIM8RST RCC_APB2RSTR_TIM8RST_Msk
  14629. #define RCC_APB2RSTR_USART1RST_Pos (4U)
  14630. #define RCC_APB2RSTR_USART1RST_Msk (0x1UL << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00000010 */
  14631. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk
  14632. #define RCC_APB2RSTR_USART6RST_Pos (5U)
  14633. #define RCC_APB2RSTR_USART6RST_Msk (0x1UL << RCC_APB2RSTR_USART6RST_Pos) /*!< 0x00000020 */
  14634. #define RCC_APB2RSTR_USART6RST RCC_APB2RSTR_USART6RST_Msk
  14635. #define RCC_APB2RSTR_UART9RST_Pos (6U)
  14636. #define RCC_APB2RSTR_UART9RST_Msk (0x1UL << RCC_APB2RSTR_UART9RST_Pos) /*!< 0x00000040 */
  14637. #define RCC_APB2RSTR_UART9RST RCC_APB2RSTR_UART9RST_Msk
  14638. #define RCC_APB2RSTR_USART10RST_Pos (7U)
  14639. #define RCC_APB2RSTR_USART10RST_Msk (0x1UL << RCC_APB2RSTR_USART10RST_Pos) /*!< 0x00000080 */
  14640. #define RCC_APB2RSTR_USART10RST RCC_APB2RSTR_USART10RST_Msk
  14641. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  14642. #define RCC_APB2RSTR_SPI1RST_Msk (0x1UL << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */
  14643. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk
  14644. #define RCC_APB2RSTR_SPI4RST_Pos (13U)
  14645. #define RCC_APB2RSTR_SPI4RST_Msk (0x1UL << RCC_APB2RSTR_SPI4RST_Pos) /*!< 0x00002000 */
  14646. #define RCC_APB2RSTR_SPI4RST RCC_APB2RSTR_SPI4RST_Msk
  14647. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  14648. #define RCC_APB2RSTR_TIM15RST_Msk (0x1UL << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */
  14649. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk
  14650. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  14651. #define RCC_APB2RSTR_TIM16RST_Msk (0x1UL << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */
  14652. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk
  14653. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  14654. #define RCC_APB2RSTR_TIM17RST_Msk (0x1UL << RCC_APB2RSTR_TIM17RST_Pos) /*!< 0x00040000 */
  14655. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk
  14656. #define RCC_APB2RSTR_SPI5RST_Pos (20U)
  14657. #define RCC_APB2RSTR_SPI5RST_Msk (0x1UL << RCC_APB2RSTR_SPI5RST_Pos) /*!< 0x00100000 */
  14658. #define RCC_APB2RSTR_SPI5RST RCC_APB2RSTR_SPI5RST_Msk
  14659. #define RCC_APB2RSTR_SAI1RST_Pos (22U)
  14660. #define RCC_APB2RSTR_SAI1RST_Msk (0x1UL << RCC_APB2RSTR_SAI1RST_Pos) /*!< 0x00400000 */
  14661. #define RCC_APB2RSTR_SAI1RST RCC_APB2RSTR_SAI1RST_Msk
  14662. #define RCC_APB2RSTR_DFSDM1RST_Pos (30U)
  14663. #define RCC_APB2RSTR_DFSDM1RST_Msk (0x1UL << RCC_APB2RSTR_DFSDM1RST_Pos) /*!< 0x10000000 */
  14664. #define RCC_APB2RSTR_DFSDM1RST RCC_APB2RSTR_DFSDM1RST_Msk
  14665. /******************** Bit definition for RCC_APB4RSTR register ******************/
  14666. #define RCC_APB4RSTR_SYSCFGRST_Pos (1U)
  14667. #define RCC_APB4RSTR_SYSCFGRST_Msk (0x1UL << RCC_APB4RSTR_SYSCFGRST_Pos) /*!< 0x00000002 */
  14668. #define RCC_APB4RSTR_SYSCFGRST RCC_APB4RSTR_SYSCFGRST_Msk
  14669. #define RCC_APB4RSTR_LPUART1RST_Pos (3U)
  14670. #define RCC_APB4RSTR_LPUART1RST_Msk (0x1UL << RCC_APB4RSTR_LPUART1RST_Pos) /*!< 0x00000008 */
  14671. #define RCC_APB4RSTR_LPUART1RST RCC_APB4RSTR_LPUART1RST_Msk
  14672. #define RCC_APB4RSTR_SPI6RST_Pos (5U)
  14673. #define RCC_APB4RSTR_SPI6RST_Msk (0x1UL << RCC_APB4RSTR_SPI6RST_Pos) /*!< 0x00000020 */
  14674. #define RCC_APB4RSTR_SPI6RST RCC_APB4RSTR_SPI6RST_Msk
  14675. #define RCC_APB4RSTR_I2C4RST_Pos (7U)
  14676. #define RCC_APB4RSTR_I2C4RST_Msk (0x1UL << RCC_APB4RSTR_I2C4RST_Pos) /*!< 0x00000080 */
  14677. #define RCC_APB4RSTR_I2C4RST RCC_APB4RSTR_I2C4RST_Msk
  14678. #define RCC_APB4RSTR_LPTIM2RST_Pos (9U)
  14679. #define RCC_APB4RSTR_LPTIM2RST_Msk (0x1UL << RCC_APB4RSTR_LPTIM2RST_Pos) /*!< 0x00000200 */
  14680. #define RCC_APB4RSTR_LPTIM2RST RCC_APB4RSTR_LPTIM2RST_Msk
  14681. #define RCC_APB4RSTR_LPTIM3RST_Pos (10U)
  14682. #define RCC_APB4RSTR_LPTIM3RST_Msk (0x1UL << RCC_APB4RSTR_LPTIM3RST_Pos) /*!< 0x00000400 */
  14683. #define RCC_APB4RSTR_LPTIM3RST RCC_APB4RSTR_LPTIM3RST_Msk
  14684. #define RCC_APB4RSTR_LPTIM4RST_Pos (11U)
  14685. #define RCC_APB4RSTR_LPTIM4RST_Msk (0x1UL << RCC_APB4RSTR_LPTIM4RST_Pos) /*!< 0x00000800 */
  14686. #define RCC_APB4RSTR_LPTIM4RST RCC_APB4RSTR_LPTIM4RST_Msk
  14687. #define RCC_APB4RSTR_LPTIM5RST_Pos (12U)
  14688. #define RCC_APB4RSTR_LPTIM5RST_Msk (0x1UL << RCC_APB4RSTR_LPTIM5RST_Pos) /*!< 0x00001000 */
  14689. #define RCC_APB4RSTR_LPTIM5RST RCC_APB4RSTR_LPTIM5RST_Msk
  14690. #define RCC_APB4RSTR_COMP12RST_Pos (14U)
  14691. #define RCC_APB4RSTR_COMP12RST_Msk (0x1UL << RCC_APB4RSTR_COMP12RST_Pos) /*!< 0x00004000 */
  14692. #define RCC_APB4RSTR_COMP12RST RCC_APB4RSTR_COMP12RST_Msk
  14693. #define RCC_APB4RSTR_VREFRST_Pos (15U)
  14694. #define RCC_APB4RSTR_VREFRST_Msk (0x1UL << RCC_APB4RSTR_VREFRST_Pos) /*!< 0x00008000 */
  14695. #define RCC_APB4RSTR_VREFRST RCC_APB4RSTR_VREFRST_Msk
  14696. #define RCC_APB4RSTR_SAI4RST_Pos (21U)
  14697. #define RCC_APB4RSTR_SAI4RST_Msk (0x1UL << RCC_APB4RSTR_SAI4RST_Pos) /*!< 0x00200000 */
  14698. #define RCC_APB4RSTR_SAI4RST RCC_APB4RSTR_SAI4RST_Msk
  14699. #define RCC_APB4RSTR_DTSRST_Pos (26U)
  14700. #define RCC_APB4RSTR_DTSRST_Msk (0x1UL << RCC_APB4RSTR_DTSRST_Pos) /*!< 0x04000000 */
  14701. #define RCC_APB4RSTR_DTSRST RCC_APB4RSTR_DTSRST_Msk
  14702. /******************** Bit definition for RCC_GCR register ********************/
  14703. #define RCC_GCR_WW1RSC_Pos (0U)
  14704. #define RCC_GCR_WW1RSC_Msk (0x1UL << RCC_GCR_WW1RSC_Pos) /*!< 0x00000001 */
  14705. #define RCC_GCR_WW1RSC RCC_GCR_WW1RSC_Msk
  14706. /******************** Bit definition for RCC_D3AMR register ********************/
  14707. #define RCC_D3AMR_BDMAAMEN_Pos (0U)
  14708. #define RCC_D3AMR_BDMAAMEN_Msk (0x1UL << RCC_D3AMR_BDMAAMEN_Pos) /*!< 0x00000001 */
  14709. #define RCC_D3AMR_BDMAAMEN RCC_D3AMR_BDMAAMEN_Msk
  14710. #define RCC_D3AMR_LPUART1AMEN_Pos (3U)
  14711. #define RCC_D3AMR_LPUART1AMEN_Msk (0x1UL << RCC_D3AMR_LPUART1AMEN_Pos) /*!< 0x00000008 */
  14712. #define RCC_D3AMR_LPUART1AMEN RCC_D3AMR_LPUART1AMEN_Msk
  14713. #define RCC_D3AMR_SPI6AMEN_Pos (5U)
  14714. #define RCC_D3AMR_SPI6AMEN_Msk (0x1UL << RCC_D3AMR_SPI6AMEN_Pos) /*!< 0x00000020 */
  14715. #define RCC_D3AMR_SPI6AMEN RCC_D3AMR_SPI6AMEN_Msk
  14716. #define RCC_D3AMR_I2C4AMEN_Pos (7U)
  14717. #define RCC_D3AMR_I2C4AMEN_Msk (0x1UL << RCC_D3AMR_I2C4AMEN_Pos) /*!< 0x00000080 */
  14718. #define RCC_D3AMR_I2C4AMEN RCC_D3AMR_I2C4AMEN_Msk
  14719. #define RCC_D3AMR_LPTIM2AMEN_Pos (9U)
  14720. #define RCC_D3AMR_LPTIM2AMEN_Msk (0x1UL << RCC_D3AMR_LPTIM2AMEN_Pos) /*!< 0x00000200 */
  14721. #define RCC_D3AMR_LPTIM2AMEN RCC_D3AMR_LPTIM2AMEN_Msk
  14722. #define RCC_D3AMR_LPTIM3AMEN_Pos (10U)
  14723. #define RCC_D3AMR_LPTIM3AMEN_Msk (0x1UL << RCC_D3AMR_LPTIM3AMEN_Pos) /*!< 0x00000400 */
  14724. #define RCC_D3AMR_LPTIM3AMEN RCC_D3AMR_LPTIM3AMEN_Msk
  14725. #define RCC_D3AMR_LPTIM4AMEN_Pos (11U)
  14726. #define RCC_D3AMR_LPTIM4AMEN_Msk (0x1UL << RCC_D3AMR_LPTIM4AMEN_Pos) /*!< 0x00000800 */
  14727. #define RCC_D3AMR_LPTIM4AMEN RCC_D3AMR_LPTIM4AMEN_Msk
  14728. #define RCC_D3AMR_LPTIM5AMEN_Pos (12U)
  14729. #define RCC_D3AMR_LPTIM5AMEN_Msk (0x1UL << RCC_D3AMR_LPTIM5AMEN_Pos) /*!< 0x00001000 */
  14730. #define RCC_D3AMR_LPTIM5AMEN RCC_D3AMR_LPTIM5AMEN_Msk
  14731. #define RCC_D3AMR_COMP12AMEN_Pos (14U)
  14732. #define RCC_D3AMR_COMP12AMEN_Msk (0x1UL << RCC_D3AMR_COMP12AMEN_Pos) /*!< 0x00004000 */
  14733. #define RCC_D3AMR_COMP12AMEN RCC_D3AMR_COMP12AMEN_Msk
  14734. #define RCC_D3AMR_VREFAMEN_Pos (15U)
  14735. #define RCC_D3AMR_VREFAMEN_Msk (0x1UL << RCC_D3AMR_VREFAMEN_Pos) /*!< 0x00008000 */
  14736. #define RCC_D3AMR_VREFAMEN RCC_D3AMR_VREFAMEN_Msk
  14737. #define RCC_D3AMR_RTCAMEN_Pos (16U)
  14738. #define RCC_D3AMR_RTCAMEN_Msk (0x1UL << RCC_D3AMR_RTCAMEN_Pos) /*!< 0x00010000 */
  14739. #define RCC_D3AMR_RTCAMEN RCC_D3AMR_RTCAMEN_Msk
  14740. #define RCC_D3AMR_CRCAMEN_Pos (19U)
  14741. #define RCC_D3AMR_CRCAMEN_Msk (0x1UL << RCC_D3AMR_CRCAMEN_Pos) /*!< 0x00080000 */
  14742. #define RCC_D3AMR_CRCAMEN RCC_D3AMR_CRCAMEN_Msk
  14743. #define RCC_D3AMR_SAI4AMEN_Pos (21U)
  14744. #define RCC_D3AMR_SAI4AMEN_Msk (0x1UL << RCC_D3AMR_SAI4AMEN_Pos) /*!< 0x00200000 */
  14745. #define RCC_D3AMR_SAI4AMEN RCC_D3AMR_SAI4AMEN_Msk
  14746. #define RCC_D3AMR_ADC3AMEN_Pos (24U)
  14747. #define RCC_D3AMR_ADC3AMEN_Msk (0x1UL << RCC_D3AMR_ADC3AMEN_Pos) /*!< 0x01000000 */
  14748. #define RCC_D3AMR_ADC3AMEN RCC_D3AMR_ADC3AMEN_Msk
  14749. #define RCC_D3AMR_DTSAMEN_Pos (26U)
  14750. #define RCC_D3AMR_DTSAMEN_Msk (0x1UL << RCC_D3AMR_DTSAMEN_Pos) /*!< 0x04000000 */
  14751. #define RCC_D3AMR_DTSAMEN RCC_D3AMR_DTSAMEN_Msk
  14752. #define RCC_D3AMR_BKPRAMAMEN_Pos (28U)
  14753. #define RCC_D3AMR_BKPRAMAMEN_Msk (0x1UL << RCC_D3AMR_BKPRAMAMEN_Pos) /*!< 0x10000000 */
  14754. #define RCC_D3AMR_BKPRAMAMEN RCC_D3AMR_BKPRAMAMEN_Msk
  14755. #define RCC_D3AMR_SRAM4AMEN_Pos (29U)
  14756. #define RCC_D3AMR_SRAM4AMEN_Msk (0x1UL << RCC_D3AMR_SRAM4AMEN_Pos) /*!< 0x20000000 */
  14757. #define RCC_D3AMR_SRAM4AMEN RCC_D3AMR_SRAM4AMEN_Msk
  14758. /******************** Bit definition for RCC_AHB3LPENR register **************/
  14759. #define RCC_AHB3LPENR_MDMALPEN_Pos (0U)
  14760. #define RCC_AHB3LPENR_MDMALPEN_Msk (0x1UL << RCC_AHB3LPENR_MDMALPEN_Pos) /*!< 0x00000001 */
  14761. #define RCC_AHB3LPENR_MDMALPEN RCC_AHB3LPENR_MDMALPEN_Msk
  14762. #define RCC_AHB3LPENR_DMA2DLPEN_Pos (4U)
  14763. #define RCC_AHB3LPENR_DMA2DLPEN_Msk (0x1UL << RCC_AHB3LPENR_DMA2DLPEN_Pos) /*!< 0x00000010 */
  14764. #define RCC_AHB3LPENR_DMA2DLPEN RCC_AHB3LPENR_DMA2DLPEN_Msk
  14765. #define RCC_AHB3LPENR_FLASHLPEN_Pos (8U)
  14766. #define RCC_AHB3LPENR_FLASHLPEN_Msk (0x1UL << RCC_AHB3LPENR_FLASHLPEN_Pos) /*!< 0x00000100 */
  14767. #define RCC_AHB3LPENR_FLASHLPEN RCC_AHB3LPENR_FLASHLPEN_Msk
  14768. #define RCC_AHB3LPENR_FMCLPEN_Pos (12U)
  14769. #define RCC_AHB3LPENR_FMCLPEN_Msk (0x1UL << RCC_AHB3LPENR_FMCLPEN_Pos) /*!< 0x00001000 */
  14770. #define RCC_AHB3LPENR_FMCLPEN RCC_AHB3LPENR_FMCLPEN_Msk
  14771. #define RCC_AHB3LPENR_OSPI1LPEN_Pos (14U)
  14772. #define RCC_AHB3LPENR_OSPI1LPEN_Msk (0x1UL << RCC_AHB3LPENR_OSPI1LPEN_Pos) /*!< 0x00004000 */
  14773. #define RCC_AHB3LPENR_OSPI1LPEN RCC_AHB3LPENR_OSPI1LPEN_Msk
  14774. #define RCC_AHB3LPENR_SDMMC1LPEN_Pos (16U)
  14775. #define RCC_AHB3LPENR_SDMMC1LPEN_Msk (0x1UL << RCC_AHB3LPENR_SDMMC1LPEN_Pos) /*!< 0x00010000 */
  14776. #define RCC_AHB3LPENR_SDMMC1LPEN RCC_AHB3LPENR_SDMMC1LPEN_Msk
  14777. #define RCC_AHB3LPENR_OSPI2LPEN_Pos (19U)
  14778. #define RCC_AHB3LPENR_OSPI2LPEN_Msk (0x1UL << RCC_AHB3LPENR_OSPI2LPEN_Pos) /*!< 0x00080000 */
  14779. #define RCC_AHB3LPENR_OSPI2LPEN RCC_AHB3LPENR_OSPI2LPEN_Msk
  14780. #define RCC_AHB3LPENR_IOMNGRLPEN_Pos (21U)
  14781. #define RCC_AHB3LPENR_IOMNGRLPEN_Msk (0x1UL << RCC_AHB3LPENR_IOMNGRLPEN_Pos) /*!< 0x00200000 */
  14782. #define RCC_AHB3LPENR_IOMNGRLPEN RCC_AHB3LPENR_IOMNGRLPEN_Msk
  14783. #define RCC_AHB3LPENR_DTCM1LPEN_Pos (28U)
  14784. #define RCC_AHB3LPENR_DTCM1LPEN_Msk (0x1UL << RCC_AHB3LPENR_DTCM1LPEN_Pos) /*!< 0x10000000 */
  14785. #define RCC_AHB3LPENR_DTCM1LPEN RCC_AHB3LPENR_DTCM1LPEN_Msk
  14786. #define RCC_AHB3LPENR_DTCM2LPEN_Pos (29U)
  14787. #define RCC_AHB3LPENR_DTCM2LPEN_Msk (0x1UL << RCC_AHB3LPENR_DTCM2LPEN_Pos) /*!< 0x20000000 */
  14788. #define RCC_AHB3LPENR_DTCM2LPEN RCC_AHB3LPENR_DTCM2LPEN_Msk
  14789. #define RCC_AHB3LPENR_ITCMLPEN_Pos (30U)
  14790. #define RCC_AHB3LPENR_ITCMLPEN_Msk (0x1UL << RCC_AHB3LPENR_ITCMLPEN_Pos) /*!< 0x40000000 */
  14791. #define RCC_AHB3LPENR_ITCMLPEN RCC_AHB3LPENR_ITCMLPEN_Msk
  14792. #define RCC_AHB3LPENR_AXISRAMLPEN_Pos (31U)
  14793. #define RCC_AHB3LPENR_AXISRAMLPEN_Msk (0x1UL << RCC_AHB3LPENR_AXISRAMLPEN_Pos) /*!< 0x80000000 */
  14794. #define RCC_AHB3LPENR_AXISRAMLPEN RCC_AHB3LPENR_AXISRAMLPEN_Msk
  14795. /******************** Bit definition for RCC_AHB1LPENR register ***************/
  14796. #define RCC_AHB1LPENR_DMA1LPEN_Pos (0U)
  14797. #define RCC_AHB1LPENR_DMA1LPEN_Msk (0x1UL << RCC_AHB1LPENR_DMA1LPEN_Pos) /*!< 0x00000001 */
  14798. #define RCC_AHB1LPENR_DMA1LPEN RCC_AHB1LPENR_DMA1LPEN_Msk
  14799. #define RCC_AHB1LPENR_DMA2LPEN_Pos (1U)
  14800. #define RCC_AHB1LPENR_DMA2LPEN_Msk (0x1UL << RCC_AHB1LPENR_DMA2LPEN_Pos) /*!< 0x00000002 */
  14801. #define RCC_AHB1LPENR_DMA2LPEN RCC_AHB1LPENR_DMA2LPEN_Msk
  14802. #define RCC_AHB1LPENR_ADC12LPEN_Pos (5U)
  14803. #define RCC_AHB1LPENR_ADC12LPEN_Msk (0x1UL << RCC_AHB1LPENR_ADC12LPEN_Pos) /*!< 0x00000020 */
  14804. #define RCC_AHB1LPENR_ADC12LPEN RCC_AHB1LPENR_ADC12LPEN_Msk
  14805. #define RCC_AHB1LPENR_ETH1MACLPEN_Pos (15U)
  14806. #define RCC_AHB1LPENR_ETH1MACLPEN_Msk (0x1UL << RCC_AHB1LPENR_ETH1MACLPEN_Pos) /*!< 0x00008000 */
  14807. #define RCC_AHB1LPENR_ETH1MACLPEN RCC_AHB1LPENR_ETH1MACLPEN_Msk
  14808. #define RCC_AHB1LPENR_ETH1TXLPEN_Pos (16U)
  14809. #define RCC_AHB1LPENR_ETH1TXLPEN_Msk (0x1UL << RCC_AHB1LPENR_ETH1TXLPEN_Pos) /*!< 0x00010000 */
  14810. #define RCC_AHB1LPENR_ETH1TXLPEN RCC_AHB1LPENR_ETH1TXLPEN_Msk
  14811. #define RCC_AHB1LPENR_ETH1RXLPEN_Pos (17U)
  14812. #define RCC_AHB1LPENR_ETH1RXLPEN_Msk (0x1UL << RCC_AHB1LPENR_ETH1RXLPEN_Pos) /*!< 0x00020000 */
  14813. #define RCC_AHB1LPENR_ETH1RXLPEN RCC_AHB1LPENR_ETH1RXLPEN_Msk
  14814. #define RCC_AHB1LPENR_USB1OTGHSLPEN_Pos (25U)
  14815. #define RCC_AHB1LPENR_USB1OTGHSLPEN_Msk (0x1UL << RCC_AHB1LPENR_USB1OTGHSLPEN_Pos) /*!< 0x02000000 */
  14816. #define RCC_AHB1LPENR_USB1OTGHSLPEN RCC_AHB1LPENR_USB1OTGHSLPEN_Msk
  14817. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN_Pos (26U)
  14818. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN_Msk (0x1UL << RCC_AHB1LPENR_USB1OTGHSULPILPEN_Pos) /*!< 0x04000000 */
  14819. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN RCC_AHB1LPENR_USB1OTGHSULPILPEN_Msk
  14820. /******************** Bit definition for RCC_AHB2LPENR register ***************/
  14821. #define RCC_AHB2LPENR_DCMI_PSSILPEN_Pos (0U)
  14822. #define RCC_AHB2LPENR_DCMI_PSSILPEN_Msk (0x1UL << RCC_AHB2LPENR_DCMI_PSSILPEN_Pos) /*!< 0x00000001 */
  14823. #define RCC_AHB2LPENR_DCMI_PSSILPEN RCC_AHB2LPENR_DCMI_PSSILPEN_Msk
  14824. #define RCC_AHB2LPENR_RNGLPEN_Pos (6U)
  14825. #define RCC_AHB2LPENR_RNGLPEN_Msk (0x1UL << RCC_AHB2LPENR_RNGLPEN_Pos) /*!< 0x00000040 */
  14826. #define RCC_AHB2LPENR_RNGLPEN RCC_AHB2LPENR_RNGLPEN_Msk
  14827. #define RCC_AHB2LPENR_SDMMC2LPEN_Pos (9U)
  14828. #define RCC_AHB2LPENR_SDMMC2LPEN_Msk (0x1UL << RCC_AHB2LPENR_SDMMC2LPEN_Pos) /*!< 0x00000200 */
  14829. #define RCC_AHB2LPENR_SDMMC2LPEN RCC_AHB2LPENR_SDMMC2LPEN_Msk
  14830. #define RCC_AHB2LPENR_FMACLPEN_Pos (16U)
  14831. #define RCC_AHB2LPENR_FMACLPEN_Msk (0x1UL << RCC_AHB2LPENR_FMACLPEN_Pos) /*!< 0x00010000 */
  14832. #define RCC_AHB2LPENR_FMACLPEN RCC_AHB2LPENR_FMACLPEN_Msk
  14833. #define RCC_AHB2LPENR_CORDICLPEN_Pos (17U)
  14834. #define RCC_AHB2LPENR_CORDICLPEN_Msk (0x1UL << RCC_AHB2LPENR_CORDICLPEN_Pos) /*!< 0x00020000 */
  14835. #define RCC_AHB2LPENR_CORDICLPEN RCC_AHB2LPENR_CORDICLPEN_Msk
  14836. #define RCC_AHB2LPENR_SRAM1LPEN_Pos (29U)
  14837. #define RCC_AHB2LPENR_SRAM1LPEN_Msk (0x1UL << RCC_AHB2LPENR_SRAM1LPEN_Pos) /*!< 0x20000000 */
  14838. #define RCC_AHB2LPENR_SRAM1LPEN RCC_AHB2LPENR_SRAM1LPEN_Msk
  14839. #define RCC_AHB2LPENR_SRAM2LPEN_Pos (30U)
  14840. #define RCC_AHB2LPENR_SRAM2LPEN_Msk (0x1UL << RCC_AHB2LPENR_SRAM2LPEN_Pos) /*!< 0x40000000 */
  14841. #define RCC_AHB2LPENR_SRAM2LPEN RCC_AHB2LPENR_SRAM2LPEN_Msk
  14842. /* Legacy define */
  14843. #define RCC_AHB2LPENR_DCMILPEN_Pos RCC_AHB2LPENR_DCMI_PSSILPEN_Pos
  14844. #define RCC_AHB2LPENR_DCMILPEN_Msk RCC_AHB2LPENR_DCMI_PSSILPEN_Msk
  14845. #define RCC_AHB2LPENR_DCMILPEN RCC_AHB2LPENR_DCMI_PSSILPEN
  14846. #define RCC_AHB2LPENR_D2SRAM1LPEN_Pos RCC_AHB2LPENR_SRAM1LPEN_Pos
  14847. #define RCC_AHB2LPENR_D2SRAM1LPEN_Msk RCC_AHB2LPENR_SRAM1LPEN_Msk
  14848. #define RCC_AHB2LPENR_D2SRAM1LPEN RCC_AHB2LPENR_SRAM1LPEN
  14849. #define RCC_AHB2LPENR_D2SRAM2LPEN_Pos RCC_AHB2LPENR_SRAM2LPEN_Pos
  14850. #define RCC_AHB2LPENR_D2SRAM2LPEN_Msk RCC_AHB2LPENR_SRAM2LPEN_Msk
  14851. #define RCC_AHB2LPENR_D2SRAM2LPEN RCC_AHB2LPENR_SRAM2LPEN
  14852. /******************** Bit definition for RCC_AHB4LPENR register ******************/
  14853. #define RCC_AHB4LPENR_GPIOALPEN_Pos (0U)
  14854. #define RCC_AHB4LPENR_GPIOALPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOALPEN_Pos) /*!< 0x00000001 */
  14855. #define RCC_AHB4LPENR_GPIOALPEN RCC_AHB4LPENR_GPIOALPEN_Msk
  14856. #define RCC_AHB4LPENR_GPIOBLPEN_Pos (1U)
  14857. #define RCC_AHB4LPENR_GPIOBLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOBLPEN_Pos) /*!< 0x00000002 */
  14858. #define RCC_AHB4LPENR_GPIOBLPEN RCC_AHB4LPENR_GPIOBLPEN_Msk
  14859. #define RCC_AHB4LPENR_GPIOCLPEN_Pos (2U)
  14860. #define RCC_AHB4LPENR_GPIOCLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOCLPEN_Pos) /*!< 0x00000004 */
  14861. #define RCC_AHB4LPENR_GPIOCLPEN RCC_AHB4LPENR_GPIOCLPEN_Msk
  14862. #define RCC_AHB4LPENR_GPIODLPEN_Pos (3U)
  14863. #define RCC_AHB4LPENR_GPIODLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIODLPEN_Pos) /*!< 0x00000008 */
  14864. #define RCC_AHB4LPENR_GPIODLPEN RCC_AHB4LPENR_GPIODLPEN_Msk
  14865. #define RCC_AHB4LPENR_GPIOELPEN_Pos (4U)
  14866. #define RCC_AHB4LPENR_GPIOELPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOELPEN_Pos) /*!< 0x00000010 */
  14867. #define RCC_AHB4LPENR_GPIOELPEN RCC_AHB4LPENR_GPIOELPEN_Msk
  14868. #define RCC_AHB4LPENR_GPIOFLPEN_Pos (5U)
  14869. #define RCC_AHB4LPENR_GPIOFLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOFLPEN_Pos) /*!< 0x00000020 */
  14870. #define RCC_AHB4LPENR_GPIOFLPEN RCC_AHB4LPENR_GPIOFLPEN_Msk
  14871. #define RCC_AHB4LPENR_GPIOGLPEN_Pos (6U)
  14872. #define RCC_AHB4LPENR_GPIOGLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOGLPEN_Pos) /*!< 0x00000040 */
  14873. #define RCC_AHB4LPENR_GPIOGLPEN RCC_AHB4LPENR_GPIOGLPEN_Msk
  14874. #define RCC_AHB4LPENR_GPIOHLPEN_Pos (7U)
  14875. #define RCC_AHB4LPENR_GPIOHLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOHLPEN_Pos) /*!< 0x00000080 */
  14876. #define RCC_AHB4LPENR_GPIOHLPEN RCC_AHB4LPENR_GPIOHLPEN_Msk
  14877. #define RCC_AHB4LPENR_GPIOJLPEN_Pos (9U)
  14878. #define RCC_AHB4LPENR_GPIOJLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOJLPEN_Pos) /*!< 0x00000200 */
  14879. #define RCC_AHB4LPENR_GPIOJLPEN RCC_AHB4LPENR_GPIOJLPEN_Msk
  14880. #define RCC_AHB4LPENR_GPIOKLPEN_Pos (10U)
  14881. #define RCC_AHB4LPENR_GPIOKLPEN_Msk (0x1UL << RCC_AHB4LPENR_GPIOKLPEN_Pos) /*!< 0x00000400 */
  14882. #define RCC_AHB4LPENR_GPIOKLPEN RCC_AHB4LPENR_GPIOKLPEN_Msk
  14883. #define RCC_AHB4LPENR_CRCLPEN_Pos (19U)
  14884. #define RCC_AHB4LPENR_CRCLPEN_Msk (0x1UL << RCC_AHB4LPENR_CRCLPEN_Pos) /*!< 0x00080000 */
  14885. #define RCC_AHB4LPENR_CRCLPEN RCC_AHB4LPENR_CRCLPEN_Msk
  14886. #define RCC_AHB4LPENR_BDMALPEN_Pos (21U)
  14887. #define RCC_AHB4LPENR_BDMALPEN_Msk (0x1UL << RCC_AHB4LPENR_BDMALPEN_Pos) /*!< 0x00200000 */
  14888. #define RCC_AHB4LPENR_BDMALPEN RCC_AHB4LPENR_BDMALPEN_Msk
  14889. #define RCC_AHB4LPENR_ADC3LPEN_Pos (24U)
  14890. #define RCC_AHB4LPENR_ADC3LPEN_Msk (0x1UL << RCC_AHB4LPENR_ADC3LPEN_Pos) /*!< 0x01000000 */
  14891. #define RCC_AHB4LPENR_ADC3LPEN RCC_AHB4LPENR_ADC3LPEN_Msk
  14892. #define RCC_AHB4LPENR_BKPRAMLPEN_Pos (28U)
  14893. #define RCC_AHB4LPENR_BKPRAMLPEN_Msk (0x1UL << RCC_AHB4LPENR_BKPRAMLPEN_Pos) /*!< 0x10000000 */
  14894. #define RCC_AHB4LPENR_BKPRAMLPEN RCC_AHB4LPENR_BKPRAMLPEN_Msk
  14895. #define RCC_AHB4LPENR_SRAM4LPEN_Pos (29U)
  14896. #define RCC_AHB4LPENR_SRAM4LPEN_Msk (0x1UL << RCC_AHB4LPENR_SRAM4LPEN_Pos) /*!< 0x20000000 */
  14897. #define RCC_AHB4LPENR_SRAM4LPEN RCC_AHB4LPENR_SRAM4LPEN_Msk
  14898. /* Legacy define */
  14899. #define RCC_AHB4LPENR_D3SRAM1LPEN_Pos RCC_AHB4LPENR_SRAM4LPEN_Pos
  14900. #define RCC_AHB4LPENR_D3SRAM1LPEN_Msk RCC_AHB4LPENR_SRAM4LPEN_Msk
  14901. #define RCC_AHB4LPENR_D3SRAM1LPEN RCC_AHB4LPENR_SRAM4LPEN
  14902. /******************** Bit definition for RCC_APB3LPENR register ******************/
  14903. #define RCC_APB3LPENR_LTDCLPEN_Pos (3U)
  14904. #define RCC_APB3LPENR_LTDCLPEN_Msk (0x1UL << RCC_APB3LPENR_LTDCLPEN_Pos) /*!< 0x00000008 */
  14905. #define RCC_APB3LPENR_LTDCLPEN RCC_APB3LPENR_LTDCLPEN_Msk
  14906. #define RCC_APB3LPENR_WWDG1LPEN_Pos (6U)
  14907. #define RCC_APB3LPENR_WWDG1LPEN_Msk (0x1UL << RCC_APB3LPENR_WWDG1LPEN_Pos) /*!< 0x00000040 */
  14908. #define RCC_APB3LPENR_WWDG1LPEN RCC_APB3LPENR_WWDG1LPEN_Msk
  14909. /******************** Bit definition for RCC_APB1LLPENR register ******************/
  14910. #define RCC_APB1LLPENR_TIM2LPEN_Pos (0U)
  14911. #define RCC_APB1LLPENR_TIM2LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM2LPEN_Pos) /*!< 0x00000001 */
  14912. #define RCC_APB1LLPENR_TIM2LPEN RCC_APB1LLPENR_TIM2LPEN_Msk
  14913. #define RCC_APB1LLPENR_TIM3LPEN_Pos (1U)
  14914. #define RCC_APB1LLPENR_TIM3LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM3LPEN_Pos) /*!< 0x00000002 */
  14915. #define RCC_APB1LLPENR_TIM3LPEN RCC_APB1LLPENR_TIM3LPEN_Msk
  14916. #define RCC_APB1LLPENR_TIM4LPEN_Pos (2U)
  14917. #define RCC_APB1LLPENR_TIM4LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM4LPEN_Pos) /*!< 0x00000004 */
  14918. #define RCC_APB1LLPENR_TIM4LPEN RCC_APB1LLPENR_TIM4LPEN_Msk
  14919. #define RCC_APB1LLPENR_TIM5LPEN_Pos (3U)
  14920. #define RCC_APB1LLPENR_TIM5LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM5LPEN_Pos) /*!< 0x00000008 */
  14921. #define RCC_APB1LLPENR_TIM5LPEN RCC_APB1LLPENR_TIM5LPEN_Msk
  14922. #define RCC_APB1LLPENR_TIM6LPEN_Pos (4U)
  14923. #define RCC_APB1LLPENR_TIM6LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM6LPEN_Pos) /*!< 0x00000010 */
  14924. #define RCC_APB1LLPENR_TIM6LPEN RCC_APB1LLPENR_TIM6LPEN_Msk
  14925. #define RCC_APB1LLPENR_TIM7LPEN_Pos (5U)
  14926. #define RCC_APB1LLPENR_TIM7LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM7LPEN_Pos) /*!< 0x00000020 */
  14927. #define RCC_APB1LLPENR_TIM7LPEN RCC_APB1LLPENR_TIM7LPEN_Msk
  14928. #define RCC_APB1LLPENR_TIM12LPEN_Pos (6U)
  14929. #define RCC_APB1LLPENR_TIM12LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM12LPEN_Pos) /*!< 0x00000040 */
  14930. #define RCC_APB1LLPENR_TIM12LPEN RCC_APB1LLPENR_TIM12LPEN_Msk
  14931. #define RCC_APB1LLPENR_TIM13LPEN_Pos (7U)
  14932. #define RCC_APB1LLPENR_TIM13LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM13LPEN_Pos) /*!< 0x00000080 */
  14933. #define RCC_APB1LLPENR_TIM13LPEN RCC_APB1LLPENR_TIM13LPEN_Msk
  14934. #define RCC_APB1LLPENR_TIM14LPEN_Pos (8U)
  14935. #define RCC_APB1LLPENR_TIM14LPEN_Msk (0x1UL << RCC_APB1LLPENR_TIM14LPEN_Pos) /*!< 0x00000100 */
  14936. #define RCC_APB1LLPENR_TIM14LPEN RCC_APB1LLPENR_TIM14LPEN_Msk
  14937. #define RCC_APB1LLPENR_LPTIM1LPEN_Pos (9U)
  14938. #define RCC_APB1LLPENR_LPTIM1LPEN_Msk (0x1UL << RCC_APB1LLPENR_LPTIM1LPEN_Pos) /*!< 0x00000200 */
  14939. #define RCC_APB1LLPENR_LPTIM1LPEN RCC_APB1LLPENR_LPTIM1LPEN_Msk
  14940. #define RCC_APB1LLPENR_SPI2LPEN_Pos (14U)
  14941. #define RCC_APB1LLPENR_SPI2LPEN_Msk (0x1UL << RCC_APB1LLPENR_SPI2LPEN_Pos) /*!< 0x00004000 */
  14942. #define RCC_APB1LLPENR_SPI2LPEN RCC_APB1LLPENR_SPI2LPEN_Msk
  14943. #define RCC_APB1LLPENR_SPI3LPEN_Pos (15U)
  14944. #define RCC_APB1LLPENR_SPI3LPEN_Msk (0x1UL << RCC_APB1LLPENR_SPI3LPEN_Pos) /*!< 0x00008000 */
  14945. #define RCC_APB1LLPENR_SPI3LPEN RCC_APB1LLPENR_SPI3LPEN_Msk
  14946. #define RCC_APB1LLPENR_SPDIFRXLPEN_Pos (16U)
  14947. #define RCC_APB1LLPENR_SPDIFRXLPEN_Msk (0x1UL << RCC_APB1LLPENR_SPDIFRXLPEN_Pos) /*!< 0x00010000 */
  14948. #define RCC_APB1LLPENR_SPDIFRXLPEN RCC_APB1LLPENR_SPDIFRXLPEN_Msk
  14949. #define RCC_APB1LLPENR_USART2LPEN_Pos (17U)
  14950. #define RCC_APB1LLPENR_USART2LPEN_Msk (0x1UL << RCC_APB1LLPENR_USART2LPEN_Pos) /*!< 0x00020000 */
  14951. #define RCC_APB1LLPENR_USART2LPEN RCC_APB1LLPENR_USART2LPEN_Msk
  14952. #define RCC_APB1LLPENR_USART3LPEN_Pos (18U)
  14953. #define RCC_APB1LLPENR_USART3LPEN_Msk (0x1UL << RCC_APB1LLPENR_USART3LPEN_Pos) /*!< 0x00040000 */
  14954. #define RCC_APB1LLPENR_USART3LPEN RCC_APB1LLPENR_USART3LPEN_Msk
  14955. #define RCC_APB1LLPENR_UART4LPEN_Pos (19U)
  14956. #define RCC_APB1LLPENR_UART4LPEN_Msk (0x1UL << RCC_APB1LLPENR_UART4LPEN_Pos) /*!< 0x00080000 */
  14957. #define RCC_APB1LLPENR_UART4LPEN RCC_APB1LLPENR_UART4LPEN_Msk
  14958. #define RCC_APB1LLPENR_UART5LPEN_Pos (20U)
  14959. #define RCC_APB1LLPENR_UART5LPEN_Msk (0x1UL << RCC_APB1LLPENR_UART5LPEN_Pos) /*!< 0x00100000 */
  14960. #define RCC_APB1LLPENR_UART5LPEN RCC_APB1LLPENR_UART5LPEN_Msk
  14961. #define RCC_APB1LLPENR_I2C1LPEN_Pos (21U)
  14962. #define RCC_APB1LLPENR_I2C1LPEN_Msk (0x1UL << RCC_APB1LLPENR_I2C1LPEN_Pos) /*!< 0x00200000 */
  14963. #define RCC_APB1LLPENR_I2C1LPEN RCC_APB1LLPENR_I2C1LPEN_Msk
  14964. #define RCC_APB1LLPENR_I2C2LPEN_Pos (22U)
  14965. #define RCC_APB1LLPENR_I2C2LPEN_Msk (0x1UL << RCC_APB1LLPENR_I2C2LPEN_Pos) /*!< 0x00400000 */
  14966. #define RCC_APB1LLPENR_I2C2LPEN RCC_APB1LLPENR_I2C2LPEN_Msk
  14967. #define RCC_APB1LLPENR_I2C3LPEN_Pos (23U)
  14968. #define RCC_APB1LLPENR_I2C3LPEN_Msk (0x1UL << RCC_APB1LLPENR_I2C3LPEN_Pos) /*!< 0x00800000 */
  14969. #define RCC_APB1LLPENR_I2C3LPEN RCC_APB1LLPENR_I2C3LPEN_Msk
  14970. #define RCC_APB1LLPENR_I2C5LPEN_Pos (25U)
  14971. #define RCC_APB1LLPENR_I2C5LPEN_Msk (0x1UL << RCC_APB1LLPENR_I2C5LPEN_Pos) /*!< 0x02000000 */
  14972. #define RCC_APB1LLPENR_I2C5LPEN RCC_APB1LLPENR_I2C5LPEN_Msk
  14973. #define RCC_APB1LLPENR_CECLPEN_Pos (27U)
  14974. #define RCC_APB1LLPENR_CECLPEN_Msk (0x1UL << RCC_APB1LLPENR_CECLPEN_Pos) /*!< 0x08000000 */
  14975. #define RCC_APB1LLPENR_CECLPEN RCC_APB1LLPENR_CECLPEN_Msk
  14976. #define RCC_APB1LLPENR_DAC12LPEN_Pos (29U)
  14977. #define RCC_APB1LLPENR_DAC12LPEN_Msk (0x1UL << RCC_APB1LLPENR_DAC12LPEN_Pos) /*!< 0x20000000 */
  14978. #define RCC_APB1LLPENR_DAC12LPEN RCC_APB1LLPENR_DAC12LPEN_Msk
  14979. #define RCC_APB1LLPENR_UART7LPEN_Pos (30U)
  14980. #define RCC_APB1LLPENR_UART7LPEN_Msk (0x1UL << RCC_APB1LLPENR_UART7LPEN_Pos) /*!< 0x40000000 */
  14981. #define RCC_APB1LLPENR_UART7LPEN RCC_APB1LLPENR_UART7LPEN_Msk
  14982. #define RCC_APB1LLPENR_UART8LPEN_Pos (31U)
  14983. #define RCC_APB1LLPENR_UART8LPEN_Msk (0x1UL << RCC_APB1LLPENR_UART8LPEN_Pos) /*!< 0x80000000 */
  14984. #define RCC_APB1LLPENR_UART8LPEN RCC_APB1LLPENR_UART8LPEN_Msk
  14985. /* Legacy define */
  14986. #define RCC_APB1LLPENR_HDMICECEN_Pos RCC_APB1LLPENR_CECLPEN_Pos
  14987. #define RCC_APB1LLPENR_HDMICECEN_Msk RCC_APB1LLPENR_CECLPEN_Msk
  14988. #define RCC_APB1LLPENR_HDMICECEN RCC_APB1LLPENR_CECLPEN
  14989. /******************** Bit definition for RCC_APB1HLPENR register ******************/
  14990. #define RCC_APB1HLPENR_CRSLPEN_Pos (1U)
  14991. #define RCC_APB1HLPENR_CRSLPEN_Msk (0x1UL << RCC_APB1HLPENR_CRSLPEN_Pos) /*!< 0x00000002 */
  14992. #define RCC_APB1HLPENR_CRSLPEN RCC_APB1HLPENR_CRSLPEN_Msk
  14993. #define RCC_APB1HLPENR_SWPMILPEN_Pos (2U)
  14994. #define RCC_APB1HLPENR_SWPMILPEN_Msk (0x1UL << RCC_APB1HLPENR_SWPMILPEN_Pos) /*!< 0x00000004 */
  14995. #define RCC_APB1HLPENR_SWPMILPEN RCC_APB1HLPENR_SWPMILPEN_Msk
  14996. #define RCC_APB1HLPENR_OPAMPLPEN_Pos (4U)
  14997. #define RCC_APB1HLPENR_OPAMPLPEN_Msk (0x1UL << RCC_APB1HLPENR_OPAMPLPEN_Pos) /*!< 0x00000010 */
  14998. #define RCC_APB1HLPENR_OPAMPLPEN RCC_APB1HLPENR_OPAMPLPEN_Msk
  14999. #define RCC_APB1HLPENR_MDIOSLPEN_Pos (5U)
  15000. #define RCC_APB1HLPENR_MDIOSLPEN_Msk (0x1UL << RCC_APB1HLPENR_MDIOSLPEN_Pos) /*!< 0x00000020 */
  15001. #define RCC_APB1HLPENR_MDIOSLPEN RCC_APB1HLPENR_MDIOSLPEN_Msk
  15002. #define RCC_APB1HLPENR_FDCANLPEN_Pos (8U)
  15003. #define RCC_APB1HLPENR_FDCANLPEN_Msk (0x1UL << RCC_APB1HLPENR_FDCANLPEN_Pos) /*!< 0x00000100 */
  15004. #define RCC_APB1HLPENR_FDCANLPEN RCC_APB1HLPENR_FDCANLPEN_Msk
  15005. #define RCC_APB1HLPENR_TIM23LPEN_Pos (24U)
  15006. #define RCC_APB1HLPENR_TIM23LPEN_Msk (0x1UL << RCC_APB1HLPENR_TIM23LPEN_Pos) /*!< 0x01000000 */
  15007. #define RCC_APB1HLPENR_TIM23LPEN RCC_APB1HLPENR_TIM23LPEN_Msk
  15008. #define RCC_APB1HLPENR_TIM24LPEN_Pos (25U)
  15009. #define RCC_APB1HLPENR_TIM24LPEN_Msk (0x1UL << RCC_APB1HLPENR_TIM24LPEN_Pos) /*!< 0x02000000 */
  15010. #define RCC_APB1HLPENR_TIM24LPEN RCC_APB1HLPENR_TIM24LPEN_Msk
  15011. /******************** Bit definition for RCC_APB2LPENR register ******************/
  15012. #define RCC_APB2LPENR_TIM1LPEN_Pos (0U)
  15013. #define RCC_APB2LPENR_TIM1LPEN_Msk (0x1UL << RCC_APB2LPENR_TIM1LPEN_Pos) /*!< 0x00000001 */
  15014. #define RCC_APB2LPENR_TIM1LPEN RCC_APB2LPENR_TIM1LPEN_Msk
  15015. #define RCC_APB2LPENR_TIM8LPEN_Pos (1U)
  15016. #define RCC_APB2LPENR_TIM8LPEN_Msk (0x1UL << RCC_APB2LPENR_TIM8LPEN_Pos) /*!< 0x00000002 */
  15017. #define RCC_APB2LPENR_TIM8LPEN RCC_APB2LPENR_TIM8LPEN_Msk
  15018. #define RCC_APB2LPENR_USART1LPEN_Pos (4U)
  15019. #define RCC_APB2LPENR_USART1LPEN_Msk (0x1UL << RCC_APB2LPENR_USART1LPEN_Pos) /*!< 0x00000010 */
  15020. #define RCC_APB2LPENR_USART1LPEN RCC_APB2LPENR_USART1LPEN_Msk
  15021. #define RCC_APB2LPENR_USART6LPEN_Pos (5U)
  15022. #define RCC_APB2LPENR_USART6LPEN_Msk (0x1UL << RCC_APB2LPENR_USART6LPEN_Pos) /*!< 0x00000020 */
  15023. #define RCC_APB2LPENR_USART6LPEN RCC_APB2LPENR_USART6LPEN_Msk
  15024. #define RCC_APB2LPENR_UART9LPEN_Pos (6U)
  15025. #define RCC_APB2LPENR_UART9LPEN_Msk (0x1UL << RCC_APB2LPENR_UART9LPEN_Pos) /*!< 0x00000040 */
  15026. #define RCC_APB2LPENR_UART9LPEN RCC_APB2LPENR_UART9LPEN_Msk
  15027. #define RCC_APB2LPENR_USART10LPEN_Pos (7U)
  15028. #define RCC_APB2LPENR_USART10LPEN_Msk (0x1UL << RCC_APB2LPENR_USART10LPEN_Pos) /*!< 0x00000080 */
  15029. #define RCC_APB2LPENR_USART10LPEN RCC_APB2LPENR_USART10LPEN_Msk
  15030. #define RCC_APB2LPENR_SPI1LPEN_Pos (12U)
  15031. #define RCC_APB2LPENR_SPI1LPEN_Msk (0x1UL << RCC_APB2LPENR_SPI1LPEN_Pos) /*!< 0x00001000 */
  15032. #define RCC_APB2LPENR_SPI1LPEN RCC_APB2LPENR_SPI1LPEN_Msk
  15033. #define RCC_APB2LPENR_SPI4LPEN_Pos (13U)
  15034. #define RCC_APB2LPENR_SPI4LPEN_Msk (0x1UL << RCC_APB2LPENR_SPI4LPEN_Pos) /*!< 0x00002000 */
  15035. #define RCC_APB2LPENR_SPI4LPEN RCC_APB2LPENR_SPI4LPEN_Msk
  15036. #define RCC_APB2LPENR_TIM15LPEN_Pos (16U)
  15037. #define RCC_APB2LPENR_TIM15LPEN_Msk (0x1UL << RCC_APB2LPENR_TIM15LPEN_Pos) /*!< 0x00010000 */
  15038. #define RCC_APB2LPENR_TIM15LPEN RCC_APB2LPENR_TIM15LPEN_Msk
  15039. #define RCC_APB2LPENR_TIM16LPEN_Pos (17U)
  15040. #define RCC_APB2LPENR_TIM16LPEN_Msk (0x1UL << RCC_APB2LPENR_TIM16LPEN_Pos) /*!< 0x00020000 */
  15041. #define RCC_APB2LPENR_TIM16LPEN RCC_APB2LPENR_TIM16LPEN_Msk
  15042. #define RCC_APB2LPENR_TIM17LPEN_Pos (18U)
  15043. #define RCC_APB2LPENR_TIM17LPEN_Msk (0x1UL << RCC_APB2LPENR_TIM17LPEN_Pos) /*!< 0x00040000 */
  15044. #define RCC_APB2LPENR_TIM17LPEN RCC_APB2LPENR_TIM17LPEN_Msk
  15045. #define RCC_APB2LPENR_SPI5LPEN_Pos (20U)
  15046. #define RCC_APB2LPENR_SPI5LPEN_Msk (0x1UL << RCC_APB2LPENR_SPI5LPEN_Pos) /*!< 0x00100000 */
  15047. #define RCC_APB2LPENR_SPI5LPEN RCC_APB2LPENR_SPI5LPEN_Msk
  15048. #define RCC_APB2LPENR_SAI1LPEN_Pos (22U)
  15049. #define RCC_APB2LPENR_SAI1LPEN_Msk (0x1UL << RCC_APB2LPENR_SAI1LPEN_Pos) /*!< 0x00400000 */
  15050. #define RCC_APB2LPENR_SAI1LPEN RCC_APB2LPENR_SAI1LPEN_Msk
  15051. #define RCC_APB2LPENR_DFSDM1LPEN_Pos (30U)
  15052. #define RCC_APB2LPENR_DFSDM1LPEN_Msk (0x1UL << RCC_APB2LPENR_DFSDM1LPEN_Pos) /*!< 0x40000000 */
  15053. #define RCC_APB2LPENR_DFSDM1LPEN RCC_APB2LPENR_DFSDM1LPEN_Msk
  15054. /******************** Bit definition for RCC_APB4LPENR register ******************/
  15055. #define RCC_APB4LPENR_SYSCFGLPEN_Pos (1U)
  15056. #define RCC_APB4LPENR_SYSCFGLPEN_Msk (0x1UL << RCC_APB4LPENR_SYSCFGLPEN_Pos) /*!< 0x00000002 */
  15057. #define RCC_APB4LPENR_SYSCFGLPEN RCC_APB4LPENR_SYSCFGLPEN_Msk
  15058. #define RCC_APB4LPENR_LPUART1LPEN_Pos (3U)
  15059. #define RCC_APB4LPENR_LPUART1LPEN_Msk (0x1UL << RCC_APB4LPENR_LPUART1LPEN_Pos) /*!< 0x00000008 */
  15060. #define RCC_APB4LPENR_LPUART1LPEN RCC_APB4LPENR_LPUART1LPEN_Msk
  15061. #define RCC_APB4LPENR_SPI6LPEN_Pos (5U)
  15062. #define RCC_APB4LPENR_SPI6LPEN_Msk (0x1UL << RCC_APB4LPENR_SPI6LPEN_Pos) /*!< 0x00000020 */
  15063. #define RCC_APB4LPENR_SPI6LPEN RCC_APB4LPENR_SPI6LPEN_Msk
  15064. #define RCC_APB4LPENR_I2C4LPEN_Pos (7U)
  15065. #define RCC_APB4LPENR_I2C4LPEN_Msk (0x1UL << RCC_APB4LPENR_I2C4LPEN_Pos) /*!< 0x00000080 */
  15066. #define RCC_APB4LPENR_I2C4LPEN RCC_APB4LPENR_I2C4LPEN_Msk
  15067. #define RCC_APB4LPENR_LPTIM2LPEN_Pos (9U)
  15068. #define RCC_APB4LPENR_LPTIM2LPEN_Msk (0x1UL << RCC_APB4LPENR_LPTIM2LPEN_Pos) /*!< 0x00000200 */
  15069. #define RCC_APB4LPENR_LPTIM2LPEN RCC_APB4LPENR_LPTIM2LPEN_Msk
  15070. #define RCC_APB4LPENR_LPTIM3LPEN_Pos (10U)
  15071. #define RCC_APB4LPENR_LPTIM3LPEN_Msk (0x1UL << RCC_APB4LPENR_LPTIM3LPEN_Pos) /*!< 0x00000400 */
  15072. #define RCC_APB4LPENR_LPTIM3LPEN RCC_APB4LPENR_LPTIM3LPEN_Msk
  15073. #define RCC_APB4LPENR_LPTIM4LPEN_Pos (11U)
  15074. #define RCC_APB4LPENR_LPTIM4LPEN_Msk (0x1UL << RCC_APB4LPENR_LPTIM4LPEN_Pos) /*!< 0x00000800 */
  15075. #define RCC_APB4LPENR_LPTIM4LPEN RCC_APB4LPENR_LPTIM4LPEN_Msk
  15076. #define RCC_APB4LPENR_LPTIM5LPEN_Pos (12U)
  15077. #define RCC_APB4LPENR_LPTIM5LPEN_Msk (0x1UL << RCC_APB4LPENR_LPTIM5LPEN_Pos) /*!< 0x00001000 */
  15078. #define RCC_APB4LPENR_LPTIM5LPEN RCC_APB4LPENR_LPTIM5LPEN_Msk
  15079. #define RCC_APB4LPENR_COMP12LPEN_Pos (14U)
  15080. #define RCC_APB4LPENR_COMP12LPEN_Msk (0x1UL << RCC_APB4LPENR_COMP12LPEN_Pos) /*!< 0x00004000 */
  15081. #define RCC_APB4LPENR_COMP12LPEN RCC_APB4LPENR_COMP12LPEN_Msk
  15082. #define RCC_APB4LPENR_VREFLPEN_Pos (15U)
  15083. #define RCC_APB4LPENR_VREFLPEN_Msk (0x1UL << RCC_APB4LPENR_VREFLPEN_Pos) /*!< 0x00008000 */
  15084. #define RCC_APB4LPENR_VREFLPEN RCC_APB4LPENR_VREFLPEN_Msk
  15085. #define RCC_APB4LPENR_RTCAPBLPEN_Pos (16U)
  15086. #define RCC_APB4LPENR_RTCAPBLPEN_Msk (0x1UL << RCC_APB4LPENR_RTCAPBLPEN_Pos) /*!< 0x00010000 */
  15087. #define RCC_APB4LPENR_RTCAPBLPEN RCC_APB4LPENR_RTCAPBLPEN_Msk
  15088. #define RCC_APB4LPENR_SAI4LPEN_Pos (21U)
  15089. #define RCC_APB4LPENR_SAI4LPEN_Msk (0x1UL << RCC_APB4LPENR_SAI4LPEN_Pos) /*!< 0x00200000 */
  15090. #define RCC_APB4LPENR_SAI4LPEN RCC_APB4LPENR_SAI4LPEN_Msk
  15091. #define RCC_APB4LPENR_DTSLPEN_Pos (26U)
  15092. #define RCC_APB4LPENR_DTSLPEN_Msk (0x1UL << RCC_APB4LPENR_DTSLPEN_Pos) /*!< 0x04000000 */
  15093. #define RCC_APB4LPENR_DTSLPEN RCC_APB4LPENR_DTSLPEN_Msk
  15094. /******************** Bit definition for RCC_RSR register *******************/
  15095. #define RCC_RSR_RMVF_Pos (16U)
  15096. #define RCC_RSR_RMVF_Msk (0x1UL << RCC_RSR_RMVF_Pos) /*!< 0x00010000 */
  15097. #define RCC_RSR_RMVF RCC_RSR_RMVF_Msk
  15098. #define RCC_RSR_CPURSTF_Pos (17U)
  15099. #define RCC_RSR_CPURSTF_Msk (0x1UL << RCC_RSR_CPURSTF_Pos) /*!< 0x00020000 */
  15100. #define RCC_RSR_CPURSTF RCC_RSR_CPURSTF_Msk
  15101. #define RCC_RSR_D1RSTF_Pos (19U)
  15102. #define RCC_RSR_D1RSTF_Msk (0x1UL << RCC_RSR_D1RSTF_Pos) /*!< 0x00080000 */
  15103. #define RCC_RSR_D1RSTF RCC_RSR_D1RSTF_Msk
  15104. #define RCC_RSR_D2RSTF_Pos (20U)
  15105. #define RCC_RSR_D2RSTF_Msk (0x1UL << RCC_RSR_D2RSTF_Pos) /*!< 0x00100000 */
  15106. #define RCC_RSR_D2RSTF RCC_RSR_D2RSTF_Msk
  15107. #define RCC_RSR_BORRSTF_Pos (21U)
  15108. #define RCC_RSR_BORRSTF_Msk (0x1UL << RCC_RSR_BORRSTF_Pos) /*!< 0x00200000 */
  15109. #define RCC_RSR_BORRSTF RCC_RSR_BORRSTF_Msk
  15110. #define RCC_RSR_PINRSTF_Pos (22U)
  15111. #define RCC_RSR_PINRSTF_Msk (0x1UL << RCC_RSR_PINRSTF_Pos) /*!< 0x00400000 */
  15112. #define RCC_RSR_PINRSTF RCC_RSR_PINRSTF_Msk
  15113. #define RCC_RSR_PORRSTF_Pos (23U)
  15114. #define RCC_RSR_PORRSTF_Msk (0x1UL << RCC_RSR_PORRSTF_Pos) /*!< 0x00800000 */
  15115. #define RCC_RSR_PORRSTF RCC_RSR_PORRSTF_Msk
  15116. #define RCC_RSR_SFTRSTF_Pos (24U)
  15117. #define RCC_RSR_SFTRSTF_Msk (0x1UL << RCC_RSR_SFTRSTF_Pos) /*!< 0x01000000 */
  15118. #define RCC_RSR_SFTRSTF RCC_RSR_SFTRSTF_Msk
  15119. #define RCC_RSR_IWDG1RSTF_Pos (26U)
  15120. #define RCC_RSR_IWDG1RSTF_Msk (0x1UL << RCC_RSR_IWDG1RSTF_Pos) /*!< 0x04000000 */
  15121. #define RCC_RSR_IWDG1RSTF RCC_RSR_IWDG1RSTF_Msk
  15122. #define RCC_RSR_WWDG1RSTF_Pos (28U)
  15123. #define RCC_RSR_WWDG1RSTF_Msk (0x1UL << RCC_RSR_WWDG1RSTF_Pos) /*!< 0x10000000 */
  15124. #define RCC_RSR_WWDG1RSTF RCC_RSR_WWDG1RSTF_Msk
  15125. #define RCC_RSR_LPWRRSTF_Pos (30U)
  15126. #define RCC_RSR_LPWRRSTF_Msk (0x1UL << RCC_RSR_LPWRRSTF_Pos) /*!< 0x40000000 */
  15127. #define RCC_RSR_LPWRRSTF RCC_RSR_LPWRRSTF_Msk
  15128. /******************************************************************************/
  15129. /* */
  15130. /* RNG */
  15131. /* */
  15132. /******************************************************************************/
  15133. /*************************** RNG VER **************************************/
  15134. #define RNG_VER_3_2
  15135. /******************** Bits definition for RNG_CR register *******************/
  15136. #define RNG_CR_RNGEN_Pos (2U)
  15137. #define RNG_CR_RNGEN_Msk (0x1UL << RNG_CR_RNGEN_Pos) /*!< 0x00000004 */
  15138. #define RNG_CR_RNGEN RNG_CR_RNGEN_Msk
  15139. #define RNG_CR_IE_Pos (3U)
  15140. #define RNG_CR_IE_Msk (0x1UL << RNG_CR_IE_Pos) /*!< 0x00000008 */
  15141. #define RNG_CR_IE RNG_CR_IE_Msk
  15142. #define RNG_CR_CED_Pos (5U)
  15143. #define RNG_CR_CED_Msk (0x1UL << RNG_CR_CED_Pos) /*!< 0x00000020 */
  15144. #define RNG_CR_CED RNG_CR_CED_Msk
  15145. #define RNG_CR_RNG_CONFIG3_Pos (8U)
  15146. #define RNG_CR_RNG_CONFIG3_Msk (0xFUL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000F00 */
  15147. #define RNG_CR_RNG_CONFIG3 RNG_CR_RNG_CONFIG3_Msk
  15148. #define RNG_CR_NISTC_Pos (12U)
  15149. #define RNG_CR_NISTC_Msk (0x1UL << RNG_CR_NISTC_Pos) /*!< 0x00001000 */
  15150. #define RNG_CR_NISTC RNG_CR_NISTC_Msk
  15151. #define RNG_CR_RNG_CONFIG2_Pos (13U)
  15152. #define RNG_CR_RNG_CONFIG2_Msk (0x7UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x0000E000 */
  15153. #define RNG_CR_RNG_CONFIG2 RNG_CR_RNG_CONFIG2_Msk
  15154. #define RNG_CR_CLKDIV_Pos (16U)
  15155. #define RNG_CR_CLKDIV_Msk (0xFUL << RNG_CR_CLKDIV_Pos) /*!< 0x000F0000 */
  15156. #define RNG_CR_CLKDIV RNG_CR_CLKDIV_Msk
  15157. #define RNG_CR_CLKDIV_0 (0x1U << RNG_CR_CLKDIV_Pos) /*!< 0x00010000 */
  15158. #define RNG_CR_CLKDIV_1 (0x2U << RNG_CR_CLKDIV_Pos) /*!< 0x00020000 */
  15159. #define RNG_CR_CLKDIV_2 (0x4U << RNG_CR_CLKDIV_Pos) /*!< 0x00040000 */
  15160. #define RNG_CR_CLKDIV_3 (0x8U << RNG_CR_CLKDIV_Pos) /*!< 0x00080000 */
  15161. #define RNG_CR_RNG_CONFIG1_Pos (20U)
  15162. #define RNG_CR_RNG_CONFIG1_Msk (0x3FUL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x03F00000 */
  15163. #define RNG_CR_RNG_CONFIG1 RNG_CR_RNG_CONFIG1_Msk
  15164. #define RNG_CR_CONDRST_Pos (30U)
  15165. #define RNG_CR_CONDRST_Msk (0x1UL << RNG_CR_CONDRST_Pos) /*!< 0x40000000 */
  15166. #define RNG_CR_CONDRST RNG_CR_CONDRST_Msk
  15167. #define RNG_CR_CONFIGLOCK_Pos (31U)
  15168. #define RNG_CR_CONFIGLOCK_Msk (0x1UL << RNG_CR_CONFIGLOCK_Pos) /*!< 0x80000000 */
  15169. #define RNG_CR_CONFIGLOCK RNG_CR_CONFIGLOCK_Msk
  15170. /******************** Bits definition for RNG_SR register *******************/
  15171. #define RNG_SR_DRDY_Pos (0U)
  15172. #define RNG_SR_DRDY_Msk (0x1UL << RNG_SR_DRDY_Pos) /*!< 0x00000001 */
  15173. #define RNG_SR_DRDY RNG_SR_DRDY_Msk
  15174. #define RNG_SR_CECS_Pos (1U)
  15175. #define RNG_SR_CECS_Msk (0x1UL << RNG_SR_CECS_Pos) /*!< 0x00000002 */
  15176. #define RNG_SR_CECS RNG_SR_CECS_Msk
  15177. #define RNG_SR_SECS_Pos (2U)
  15178. #define RNG_SR_SECS_Msk (0x1UL << RNG_SR_SECS_Pos) /*!< 0x00000004 */
  15179. #define RNG_SR_SECS RNG_SR_SECS_Msk
  15180. #define RNG_SR_CEIS_Pos (5U)
  15181. #define RNG_SR_CEIS_Msk (0x1UL << RNG_SR_CEIS_Pos) /*!< 0x00000020 */
  15182. #define RNG_SR_CEIS RNG_SR_CEIS_Msk
  15183. #define RNG_SR_SEIS_Pos (6U)
  15184. #define RNG_SR_SEIS_Msk (0x1UL << RNG_SR_SEIS_Pos) /*!< 0x00000040 */
  15185. #define RNG_SR_SEIS RNG_SR_SEIS_Msk
  15186. /******************************************************************************/
  15187. /* */
  15188. /* Real-Time Clock (RTC) */
  15189. /* */
  15190. /******************************************************************************/
  15191. /******************** Bits definition for RTC_TR register *******************/
  15192. #define RTC_TR_PM_Pos (22U)
  15193. #define RTC_TR_PM_Msk (0x1UL << RTC_TR_PM_Pos) /*!< 0x00400000 */
  15194. #define RTC_TR_PM RTC_TR_PM_Msk
  15195. #define RTC_TR_HT_Pos (20U)
  15196. #define RTC_TR_HT_Msk (0x3UL << RTC_TR_HT_Pos) /*!< 0x00300000 */
  15197. #define RTC_TR_HT RTC_TR_HT_Msk
  15198. #define RTC_TR_HT_0 (0x1UL << RTC_TR_HT_Pos) /*!< 0x00100000 */
  15199. #define RTC_TR_HT_1 (0x2UL << RTC_TR_HT_Pos) /*!< 0x00200000 */
  15200. #define RTC_TR_HU_Pos (16U)
  15201. #define RTC_TR_HU_Msk (0xFUL << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  15202. #define RTC_TR_HU RTC_TR_HU_Msk
  15203. #define RTC_TR_HU_0 (0x1UL << RTC_TR_HU_Pos) /*!< 0x00010000 */
  15204. #define RTC_TR_HU_1 (0x2UL << RTC_TR_HU_Pos) /*!< 0x00020000 */
  15205. #define RTC_TR_HU_2 (0x4UL << RTC_TR_HU_Pos) /*!< 0x00040000 */
  15206. #define RTC_TR_HU_3 (0x8UL << RTC_TR_HU_Pos) /*!< 0x00080000 */
  15207. #define RTC_TR_MNT_Pos (12U)
  15208. #define RTC_TR_MNT_Msk (0x7UL << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  15209. #define RTC_TR_MNT RTC_TR_MNT_Msk
  15210. #define RTC_TR_MNT_0 (0x1UL << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  15211. #define RTC_TR_MNT_1 (0x2UL << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  15212. #define RTC_TR_MNT_2 (0x4UL << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  15213. #define RTC_TR_MNU_Pos (8U)
  15214. #define RTC_TR_MNU_Msk (0xFUL << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  15215. #define RTC_TR_MNU RTC_TR_MNU_Msk
  15216. #define RTC_TR_MNU_0 (0x1UL << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  15217. #define RTC_TR_MNU_1 (0x2UL << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  15218. #define RTC_TR_MNU_2 (0x4UL << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  15219. #define RTC_TR_MNU_3 (0x8UL << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  15220. #define RTC_TR_ST_Pos (4U)
  15221. #define RTC_TR_ST_Msk (0x7UL << RTC_TR_ST_Pos) /*!< 0x00000070 */
  15222. #define RTC_TR_ST RTC_TR_ST_Msk
  15223. #define RTC_TR_ST_0 (0x1UL << RTC_TR_ST_Pos) /*!< 0x00000010 */
  15224. #define RTC_TR_ST_1 (0x2UL << RTC_TR_ST_Pos) /*!< 0x00000020 */
  15225. #define RTC_TR_ST_2 (0x4UL << RTC_TR_ST_Pos) /*!< 0x00000040 */
  15226. #define RTC_TR_SU_Pos (0U)
  15227. #define RTC_TR_SU_Msk (0xFUL << RTC_TR_SU_Pos) /*!< 0x0000000F */
  15228. #define RTC_TR_SU RTC_TR_SU_Msk
  15229. #define RTC_TR_SU_0 (0x1UL << RTC_TR_SU_Pos) /*!< 0x00000001 */
  15230. #define RTC_TR_SU_1 (0x2UL << RTC_TR_SU_Pos) /*!< 0x00000002 */
  15231. #define RTC_TR_SU_2 (0x4UL << RTC_TR_SU_Pos) /*!< 0x00000004 */
  15232. #define RTC_TR_SU_3 (0x8UL << RTC_TR_SU_Pos) /*!< 0x00000008 */
  15233. /******************** Bits definition for RTC_DR register *******************/
  15234. #define RTC_DR_YT_Pos (20U)
  15235. #define RTC_DR_YT_Msk (0xFUL << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  15236. #define RTC_DR_YT RTC_DR_YT_Msk
  15237. #define RTC_DR_YT_0 (0x1UL << RTC_DR_YT_Pos) /*!< 0x00100000 */
  15238. #define RTC_DR_YT_1 (0x2UL << RTC_DR_YT_Pos) /*!< 0x00200000 */
  15239. #define RTC_DR_YT_2 (0x4UL << RTC_DR_YT_Pos) /*!< 0x00400000 */
  15240. #define RTC_DR_YT_3 (0x8UL << RTC_DR_YT_Pos) /*!< 0x00800000 */
  15241. #define RTC_DR_YU_Pos (16U)
  15242. #define RTC_DR_YU_Msk (0xFUL << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  15243. #define RTC_DR_YU RTC_DR_YU_Msk
  15244. #define RTC_DR_YU_0 (0x1UL << RTC_DR_YU_Pos) /*!< 0x00010000 */
  15245. #define RTC_DR_YU_1 (0x2UL << RTC_DR_YU_Pos) /*!< 0x00020000 */
  15246. #define RTC_DR_YU_2 (0x4UL << RTC_DR_YU_Pos) /*!< 0x00040000 */
  15247. #define RTC_DR_YU_3 (0x8UL << RTC_DR_YU_Pos) /*!< 0x00080000 */
  15248. #define RTC_DR_WDU_Pos (13U)
  15249. #define RTC_DR_WDU_Msk (0x7UL << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  15250. #define RTC_DR_WDU RTC_DR_WDU_Msk
  15251. #define RTC_DR_WDU_0 (0x1UL << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  15252. #define RTC_DR_WDU_1 (0x2UL << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  15253. #define RTC_DR_WDU_2 (0x4UL << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  15254. #define RTC_DR_MT_Pos (12U)
  15255. #define RTC_DR_MT_Msk (0x1UL << RTC_DR_MT_Pos) /*!< 0x00001000 */
  15256. #define RTC_DR_MT RTC_DR_MT_Msk
  15257. #define RTC_DR_MU_Pos (8U)
  15258. #define RTC_DR_MU_Msk (0xFUL << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  15259. #define RTC_DR_MU RTC_DR_MU_Msk
  15260. #define RTC_DR_MU_0 (0x1UL << RTC_DR_MU_Pos) /*!< 0x00000100 */
  15261. #define RTC_DR_MU_1 (0x2UL << RTC_DR_MU_Pos) /*!< 0x00000200 */
  15262. #define RTC_DR_MU_2 (0x4UL << RTC_DR_MU_Pos) /*!< 0x00000400 */
  15263. #define RTC_DR_MU_3 (0x8UL << RTC_DR_MU_Pos) /*!< 0x00000800 */
  15264. #define RTC_DR_DT_Pos (4U)
  15265. #define RTC_DR_DT_Msk (0x3UL << RTC_DR_DT_Pos) /*!< 0x00000030 */
  15266. #define RTC_DR_DT RTC_DR_DT_Msk
  15267. #define RTC_DR_DT_0 (0x1UL << RTC_DR_DT_Pos) /*!< 0x00000010 */
  15268. #define RTC_DR_DT_1 (0x2UL << RTC_DR_DT_Pos) /*!< 0x00000020 */
  15269. #define RTC_DR_DU_Pos (0U)
  15270. #define RTC_DR_DU_Msk (0xFUL << RTC_DR_DU_Pos) /*!< 0x0000000F */
  15271. #define RTC_DR_DU RTC_DR_DU_Msk
  15272. #define RTC_DR_DU_0 (0x1UL << RTC_DR_DU_Pos) /*!< 0x00000001 */
  15273. #define RTC_DR_DU_1 (0x2UL << RTC_DR_DU_Pos) /*!< 0x00000002 */
  15274. #define RTC_DR_DU_2 (0x4UL << RTC_DR_DU_Pos) /*!< 0x00000004 */
  15275. #define RTC_DR_DU_3 (0x8UL << RTC_DR_DU_Pos) /*!< 0x00000008 */
  15276. /******************** Bits definition for RTC_CR register *******************/
  15277. #define RTC_CR_ITSE_Pos (24U)
  15278. #define RTC_CR_ITSE_Msk (0x1UL << RTC_CR_ITSE_Pos) /*!< 0x01000000 */
  15279. #define RTC_CR_ITSE RTC_CR_ITSE_Msk
  15280. #define RTC_CR_COE_Pos (23U)
  15281. #define RTC_CR_COE_Msk (0x1UL << RTC_CR_COE_Pos) /*!< 0x00800000 */
  15282. #define RTC_CR_COE RTC_CR_COE_Msk
  15283. #define RTC_CR_OSEL_Pos (21U)
  15284. #define RTC_CR_OSEL_Msk (0x3UL << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  15285. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  15286. #define RTC_CR_OSEL_0 (0x1UL << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  15287. #define RTC_CR_OSEL_1 (0x2UL << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  15288. #define RTC_CR_POL_Pos (20U)
  15289. #define RTC_CR_POL_Msk (0x1UL << RTC_CR_POL_Pos) /*!< 0x00100000 */
  15290. #define RTC_CR_POL RTC_CR_POL_Msk
  15291. #define RTC_CR_COSEL_Pos (19U)
  15292. #define RTC_CR_COSEL_Msk (0x1UL << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  15293. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  15294. #define RTC_CR_BKP_Pos (18U)
  15295. #define RTC_CR_BKP_Msk (0x1UL << RTC_CR_BKP_Pos) /*!< 0x00040000 */
  15296. #define RTC_CR_BKP RTC_CR_BKP_Msk
  15297. #define RTC_CR_SUB1H_Pos (17U)
  15298. #define RTC_CR_SUB1H_Msk (0x1UL << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  15299. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  15300. #define RTC_CR_ADD1H_Pos (16U)
  15301. #define RTC_CR_ADD1H_Msk (0x1UL << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  15302. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  15303. #define RTC_CR_TSIE_Pos (15U)
  15304. #define RTC_CR_TSIE_Msk (0x1UL << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  15305. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  15306. #define RTC_CR_WUTIE_Pos (14U)
  15307. #define RTC_CR_WUTIE_Msk (0x1UL << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  15308. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  15309. #define RTC_CR_ALRBIE_Pos (13U)
  15310. #define RTC_CR_ALRBIE_Msk (0x1UL << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */
  15311. #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk
  15312. #define RTC_CR_ALRAIE_Pos (12U)
  15313. #define RTC_CR_ALRAIE_Msk (0x1UL << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  15314. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  15315. #define RTC_CR_TSE_Pos (11U)
  15316. #define RTC_CR_TSE_Msk (0x1UL << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  15317. #define RTC_CR_TSE RTC_CR_TSE_Msk
  15318. #define RTC_CR_WUTE_Pos (10U)
  15319. #define RTC_CR_WUTE_Msk (0x1UL << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  15320. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  15321. #define RTC_CR_ALRBE_Pos (9U)
  15322. #define RTC_CR_ALRBE_Msk (0x1UL << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */
  15323. #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk
  15324. #define RTC_CR_ALRAE_Pos (8U)
  15325. #define RTC_CR_ALRAE_Msk (0x1UL << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  15326. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  15327. #define RTC_CR_FMT_Pos (6U)
  15328. #define RTC_CR_FMT_Msk (0x1UL << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  15329. #define RTC_CR_FMT RTC_CR_FMT_Msk
  15330. #define RTC_CR_BYPSHAD_Pos (5U)
  15331. #define RTC_CR_BYPSHAD_Msk (0x1UL << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  15332. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  15333. #define RTC_CR_REFCKON_Pos (4U)
  15334. #define RTC_CR_REFCKON_Msk (0x1UL << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  15335. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  15336. #define RTC_CR_TSEDGE_Pos (3U)
  15337. #define RTC_CR_TSEDGE_Msk (0x1UL << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  15338. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  15339. #define RTC_CR_WUCKSEL_Pos (0U)
  15340. #define RTC_CR_WUCKSEL_Msk (0x7UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  15341. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  15342. #define RTC_CR_WUCKSEL_0 (0x1UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  15343. #define RTC_CR_WUCKSEL_1 (0x2UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  15344. #define RTC_CR_WUCKSEL_2 (0x4UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  15345. /******************** Bits definition for RTC_ISR register ******************/
  15346. #define RTC_ISR_ITSF_Pos (17U)
  15347. #define RTC_ISR_ITSF_Msk (0x1UL << RTC_ISR_ITSF_Pos) /*!< 0x00020000 */
  15348. #define RTC_ISR_ITSF RTC_ISR_ITSF_Msk
  15349. #define RTC_ISR_RECALPF_Pos (16U)
  15350. #define RTC_ISR_RECALPF_Msk (0x1UL << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */
  15351. #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk
  15352. #define RTC_ISR_TAMP3F_Pos (15U)
  15353. #define RTC_ISR_TAMP3F_Msk (0x1UL << RTC_ISR_TAMP3F_Pos) /*!< 0x00008000 */
  15354. #define RTC_ISR_TAMP3F RTC_ISR_TAMP3F_Msk
  15355. #define RTC_ISR_TAMP2F_Pos (14U)
  15356. #define RTC_ISR_TAMP2F_Msk (0x1UL << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */
  15357. #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk
  15358. #define RTC_ISR_TAMP1F_Pos (13U)
  15359. #define RTC_ISR_TAMP1F_Msk (0x1UL << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */
  15360. #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk
  15361. #define RTC_ISR_TSOVF_Pos (12U)
  15362. #define RTC_ISR_TSOVF_Msk (0x1UL << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */
  15363. #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk
  15364. #define RTC_ISR_TSF_Pos (11U)
  15365. #define RTC_ISR_TSF_Msk (0x1UL << RTC_ISR_TSF_Pos) /*!< 0x00000800 */
  15366. #define RTC_ISR_TSF RTC_ISR_TSF_Msk
  15367. #define RTC_ISR_WUTF_Pos (10U)
  15368. #define RTC_ISR_WUTF_Msk (0x1UL << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */
  15369. #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk
  15370. #define RTC_ISR_ALRBF_Pos (9U)
  15371. #define RTC_ISR_ALRBF_Msk (0x1UL << RTC_ISR_ALRBF_Pos) /*!< 0x00000200 */
  15372. #define RTC_ISR_ALRBF RTC_ISR_ALRBF_Msk
  15373. #define RTC_ISR_ALRAF_Pos (8U)
  15374. #define RTC_ISR_ALRAF_Msk (0x1UL << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */
  15375. #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk
  15376. #define RTC_ISR_INIT_Pos (7U)
  15377. #define RTC_ISR_INIT_Msk (0x1UL << RTC_ISR_INIT_Pos) /*!< 0x00000080 */
  15378. #define RTC_ISR_INIT RTC_ISR_INIT_Msk
  15379. #define RTC_ISR_INITF_Pos (6U)
  15380. #define RTC_ISR_INITF_Msk (0x1UL << RTC_ISR_INITF_Pos) /*!< 0x00000040 */
  15381. #define RTC_ISR_INITF RTC_ISR_INITF_Msk
  15382. #define RTC_ISR_RSF_Pos (5U)
  15383. #define RTC_ISR_RSF_Msk (0x1UL << RTC_ISR_RSF_Pos) /*!< 0x00000020 */
  15384. #define RTC_ISR_RSF RTC_ISR_RSF_Msk
  15385. #define RTC_ISR_INITS_Pos (4U)
  15386. #define RTC_ISR_INITS_Msk (0x1UL << RTC_ISR_INITS_Pos) /*!< 0x00000010 */
  15387. #define RTC_ISR_INITS RTC_ISR_INITS_Msk
  15388. #define RTC_ISR_SHPF_Pos (3U)
  15389. #define RTC_ISR_SHPF_Msk (0x1UL << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */
  15390. #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk
  15391. #define RTC_ISR_WUTWF_Pos (2U)
  15392. #define RTC_ISR_WUTWF_Msk (0x1UL << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */
  15393. #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk
  15394. #define RTC_ISR_ALRBWF_Pos (1U)
  15395. #define RTC_ISR_ALRBWF_Msk (0x1UL << RTC_ISR_ALRBWF_Pos) /*!< 0x00000002 */
  15396. #define RTC_ISR_ALRBWF RTC_ISR_ALRBWF_Msk
  15397. #define RTC_ISR_ALRAWF_Pos (0U)
  15398. #define RTC_ISR_ALRAWF_Msk (0x1UL << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */
  15399. #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk
  15400. /******************** Bits definition for RTC_PRER register *****************/
  15401. #define RTC_PRER_PREDIV_A_Pos (16U)
  15402. #define RTC_PRER_PREDIV_A_Msk (0x7FUL << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  15403. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  15404. #define RTC_PRER_PREDIV_S_Pos (0U)
  15405. #define RTC_PRER_PREDIV_S_Msk (0x7FFFUL << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  15406. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  15407. /******************** Bits definition for RTC_WUTR register *****************/
  15408. #define RTC_WUTR_WUT_Pos (0U)
  15409. #define RTC_WUTR_WUT_Msk (0xFFFFUL << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  15410. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  15411. /******************** Bits definition for RTC_ALRMAR register ***************/
  15412. #define RTC_ALRMAR_MSK4_Pos (31U)
  15413. #define RTC_ALRMAR_MSK4_Msk (0x1UL << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  15414. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  15415. #define RTC_ALRMAR_WDSEL_Pos (30U)
  15416. #define RTC_ALRMAR_WDSEL_Msk (0x1UL << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  15417. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  15418. #define RTC_ALRMAR_DT_Pos (28U)
  15419. #define RTC_ALRMAR_DT_Msk (0x3UL << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  15420. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  15421. #define RTC_ALRMAR_DT_0 (0x1UL << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  15422. #define RTC_ALRMAR_DT_1 (0x2UL << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  15423. #define RTC_ALRMAR_DU_Pos (24U)
  15424. #define RTC_ALRMAR_DU_Msk (0xFUL << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  15425. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  15426. #define RTC_ALRMAR_DU_0 (0x1UL << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  15427. #define RTC_ALRMAR_DU_1 (0x2UL << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  15428. #define RTC_ALRMAR_DU_2 (0x4UL << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  15429. #define RTC_ALRMAR_DU_3 (0x8UL << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  15430. #define RTC_ALRMAR_MSK3_Pos (23U)
  15431. #define RTC_ALRMAR_MSK3_Msk (0x1UL << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  15432. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  15433. #define RTC_ALRMAR_PM_Pos (22U)
  15434. #define RTC_ALRMAR_PM_Msk (0x1UL << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  15435. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  15436. #define RTC_ALRMAR_HT_Pos (20U)
  15437. #define RTC_ALRMAR_HT_Msk (0x3UL << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  15438. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  15439. #define RTC_ALRMAR_HT_0 (0x1UL << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  15440. #define RTC_ALRMAR_HT_1 (0x2UL << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  15441. #define RTC_ALRMAR_HU_Pos (16U)
  15442. #define RTC_ALRMAR_HU_Msk (0xFUL << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  15443. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  15444. #define RTC_ALRMAR_HU_0 (0x1UL << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  15445. #define RTC_ALRMAR_HU_1 (0x2UL << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  15446. #define RTC_ALRMAR_HU_2 (0x4UL << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  15447. #define RTC_ALRMAR_HU_3 (0x8UL << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  15448. #define RTC_ALRMAR_MSK2_Pos (15U)
  15449. #define RTC_ALRMAR_MSK2_Msk (0x1UL << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  15450. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  15451. #define RTC_ALRMAR_MNT_Pos (12U)
  15452. #define RTC_ALRMAR_MNT_Msk (0x7UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  15453. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  15454. #define RTC_ALRMAR_MNT_0 (0x1UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  15455. #define RTC_ALRMAR_MNT_1 (0x2UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  15456. #define RTC_ALRMAR_MNT_2 (0x4UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  15457. #define RTC_ALRMAR_MNU_Pos (8U)
  15458. #define RTC_ALRMAR_MNU_Msk (0xFUL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  15459. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  15460. #define RTC_ALRMAR_MNU_0 (0x1UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  15461. #define RTC_ALRMAR_MNU_1 (0x2UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  15462. #define RTC_ALRMAR_MNU_2 (0x4UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  15463. #define RTC_ALRMAR_MNU_3 (0x8UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  15464. #define RTC_ALRMAR_MSK1_Pos (7U)
  15465. #define RTC_ALRMAR_MSK1_Msk (0x1UL << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  15466. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  15467. #define RTC_ALRMAR_ST_Pos (4U)
  15468. #define RTC_ALRMAR_ST_Msk (0x7UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  15469. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  15470. #define RTC_ALRMAR_ST_0 (0x1UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  15471. #define RTC_ALRMAR_ST_1 (0x2UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  15472. #define RTC_ALRMAR_ST_2 (0x4UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  15473. #define RTC_ALRMAR_SU_Pos (0U)
  15474. #define RTC_ALRMAR_SU_Msk (0xFUL << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  15475. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  15476. #define RTC_ALRMAR_SU_0 (0x1UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  15477. #define RTC_ALRMAR_SU_1 (0x2UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  15478. #define RTC_ALRMAR_SU_2 (0x4UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  15479. #define RTC_ALRMAR_SU_3 (0x8UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  15480. /******************** Bits definition for RTC_ALRMBR register ***************/
  15481. #define RTC_ALRMBR_MSK4_Pos (31U)
  15482. #define RTC_ALRMBR_MSK4_Msk (0x1UL << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */
  15483. #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk
  15484. #define RTC_ALRMBR_WDSEL_Pos (30U)
  15485. #define RTC_ALRMBR_WDSEL_Msk (0x1UL << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */
  15486. #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk
  15487. #define RTC_ALRMBR_DT_Pos (28U)
  15488. #define RTC_ALRMBR_DT_Msk (0x3UL << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */
  15489. #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk
  15490. #define RTC_ALRMBR_DT_0 (0x1UL << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */
  15491. #define RTC_ALRMBR_DT_1 (0x2UL << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */
  15492. #define RTC_ALRMBR_DU_Pos (24U)
  15493. #define RTC_ALRMBR_DU_Msk (0xFUL << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */
  15494. #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk
  15495. #define RTC_ALRMBR_DU_0 (0x1UL << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */
  15496. #define RTC_ALRMBR_DU_1 (0x2UL << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */
  15497. #define RTC_ALRMBR_DU_2 (0x4UL << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */
  15498. #define RTC_ALRMBR_DU_3 (0x8UL << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */
  15499. #define RTC_ALRMBR_MSK3_Pos (23U)
  15500. #define RTC_ALRMBR_MSK3_Msk (0x1UL << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */
  15501. #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk
  15502. #define RTC_ALRMBR_PM_Pos (22U)
  15503. #define RTC_ALRMBR_PM_Msk (0x1UL << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */
  15504. #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk
  15505. #define RTC_ALRMBR_HT_Pos (20U)
  15506. #define RTC_ALRMBR_HT_Msk (0x3UL << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */
  15507. #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk
  15508. #define RTC_ALRMBR_HT_0 (0x1UL << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */
  15509. #define RTC_ALRMBR_HT_1 (0x2UL << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */
  15510. #define RTC_ALRMBR_HU_Pos (16U)
  15511. #define RTC_ALRMBR_HU_Msk (0xFUL << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */
  15512. #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk
  15513. #define RTC_ALRMBR_HU_0 (0x1UL << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */
  15514. #define RTC_ALRMBR_HU_1 (0x2UL << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */
  15515. #define RTC_ALRMBR_HU_2 (0x4UL << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */
  15516. #define RTC_ALRMBR_HU_3 (0x8UL << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */
  15517. #define RTC_ALRMBR_MSK2_Pos (15U)
  15518. #define RTC_ALRMBR_MSK2_Msk (0x1UL << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */
  15519. #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk
  15520. #define RTC_ALRMBR_MNT_Pos (12U)
  15521. #define RTC_ALRMBR_MNT_Msk (0x7UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */
  15522. #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk
  15523. #define RTC_ALRMBR_MNT_0 (0x1UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */
  15524. #define RTC_ALRMBR_MNT_1 (0x2UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */
  15525. #define RTC_ALRMBR_MNT_2 (0x4UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */
  15526. #define RTC_ALRMBR_MNU_Pos (8U)
  15527. #define RTC_ALRMBR_MNU_Msk (0xFUL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */
  15528. #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk
  15529. #define RTC_ALRMBR_MNU_0 (0x1UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */
  15530. #define RTC_ALRMBR_MNU_1 (0x2UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */
  15531. #define RTC_ALRMBR_MNU_2 (0x4UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */
  15532. #define RTC_ALRMBR_MNU_3 (0x8UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */
  15533. #define RTC_ALRMBR_MSK1_Pos (7U)
  15534. #define RTC_ALRMBR_MSK1_Msk (0x1UL << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */
  15535. #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk
  15536. #define RTC_ALRMBR_ST_Pos (4U)
  15537. #define RTC_ALRMBR_ST_Msk (0x7UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */
  15538. #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk
  15539. #define RTC_ALRMBR_ST_0 (0x1UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */
  15540. #define RTC_ALRMBR_ST_1 (0x2UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */
  15541. #define RTC_ALRMBR_ST_2 (0x4UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */
  15542. #define RTC_ALRMBR_SU_Pos (0U)
  15543. #define RTC_ALRMBR_SU_Msk (0xFUL << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */
  15544. #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk
  15545. #define RTC_ALRMBR_SU_0 (0x1UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */
  15546. #define RTC_ALRMBR_SU_1 (0x2UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */
  15547. #define RTC_ALRMBR_SU_2 (0x4UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */
  15548. #define RTC_ALRMBR_SU_3 (0x8UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */
  15549. /******************** Bits definition for RTC_WPR register ******************/
  15550. #define RTC_WPR_KEY_Pos (0U)
  15551. #define RTC_WPR_KEY_Msk (0xFFUL << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  15552. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  15553. /******************** Bits definition for RTC_SSR register ******************/
  15554. #define RTC_SSR_SS_Pos (0U)
  15555. #define RTC_SSR_SS_Msk (0xFFFFUL << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  15556. #define RTC_SSR_SS RTC_SSR_SS_Msk
  15557. /******************** Bits definition for RTC_SHIFTR register ***************/
  15558. #define RTC_SHIFTR_SUBFS_Pos (0U)
  15559. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFUL << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  15560. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  15561. #define RTC_SHIFTR_ADD1S_Pos (31U)
  15562. #define RTC_SHIFTR_ADD1S_Msk (0x1UL << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  15563. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  15564. /******************** Bits definition for RTC_TSTR register *****************/
  15565. #define RTC_TSTR_PM_Pos (22U)
  15566. #define RTC_TSTR_PM_Msk (0x1UL << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  15567. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  15568. #define RTC_TSTR_HT_Pos (20U)
  15569. #define RTC_TSTR_HT_Msk (0x3UL << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  15570. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  15571. #define RTC_TSTR_HT_0 (0x1UL << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  15572. #define RTC_TSTR_HT_1 (0x2UL << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  15573. #define RTC_TSTR_HU_Pos (16U)
  15574. #define RTC_TSTR_HU_Msk (0xFUL << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  15575. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  15576. #define RTC_TSTR_HU_0 (0x1UL << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  15577. #define RTC_TSTR_HU_1 (0x2UL << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  15578. #define RTC_TSTR_HU_2 (0x4UL << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  15579. #define RTC_TSTR_HU_3 (0x8UL << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  15580. #define RTC_TSTR_MNT_Pos (12U)
  15581. #define RTC_TSTR_MNT_Msk (0x7UL << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  15582. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  15583. #define RTC_TSTR_MNT_0 (0x1UL << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  15584. #define RTC_TSTR_MNT_1 (0x2UL << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  15585. #define RTC_TSTR_MNT_2 (0x4UL << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  15586. #define RTC_TSTR_MNU_Pos (8U)
  15587. #define RTC_TSTR_MNU_Msk (0xFUL << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  15588. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  15589. #define RTC_TSTR_MNU_0 (0x1UL << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  15590. #define RTC_TSTR_MNU_1 (0x2UL << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  15591. #define RTC_TSTR_MNU_2 (0x4UL << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  15592. #define RTC_TSTR_MNU_3 (0x8UL << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  15593. #define RTC_TSTR_ST_Pos (4U)
  15594. #define RTC_TSTR_ST_Msk (0x7UL << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  15595. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  15596. #define RTC_TSTR_ST_0 (0x1UL << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  15597. #define RTC_TSTR_ST_1 (0x2UL << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  15598. #define RTC_TSTR_ST_2 (0x4UL << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  15599. #define RTC_TSTR_SU_Pos (0U)
  15600. #define RTC_TSTR_SU_Msk (0xFUL << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  15601. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  15602. #define RTC_TSTR_SU_0 (0x1UL << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  15603. #define RTC_TSTR_SU_1 (0x2UL << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  15604. #define RTC_TSTR_SU_2 (0x4UL << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  15605. #define RTC_TSTR_SU_3 (0x8UL << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  15606. /******************** Bits definition for RTC_TSDR register *****************/
  15607. #define RTC_TSDR_WDU_Pos (13U)
  15608. #define RTC_TSDR_WDU_Msk (0x7UL << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  15609. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  15610. #define RTC_TSDR_WDU_0 (0x1UL << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  15611. #define RTC_TSDR_WDU_1 (0x2UL << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  15612. #define RTC_TSDR_WDU_2 (0x4UL << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  15613. #define RTC_TSDR_MT_Pos (12U)
  15614. #define RTC_TSDR_MT_Msk (0x1UL << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  15615. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  15616. #define RTC_TSDR_MU_Pos (8U)
  15617. #define RTC_TSDR_MU_Msk (0xFUL << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  15618. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  15619. #define RTC_TSDR_MU_0 (0x1UL << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  15620. #define RTC_TSDR_MU_1 (0x2UL << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  15621. #define RTC_TSDR_MU_2 (0x4UL << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  15622. #define RTC_TSDR_MU_3 (0x8UL << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  15623. #define RTC_TSDR_DT_Pos (4U)
  15624. #define RTC_TSDR_DT_Msk (0x3UL << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  15625. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  15626. #define RTC_TSDR_DT_0 (0x1UL << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  15627. #define RTC_TSDR_DT_1 (0x2UL << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  15628. #define RTC_TSDR_DU_Pos (0U)
  15629. #define RTC_TSDR_DU_Msk (0xFUL << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  15630. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  15631. #define RTC_TSDR_DU_0 (0x1UL << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  15632. #define RTC_TSDR_DU_1 (0x2UL << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  15633. #define RTC_TSDR_DU_2 (0x4UL << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  15634. #define RTC_TSDR_DU_3 (0x8UL << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  15635. /******************** Bits definition for RTC_TSSSR register ****************/
  15636. #define RTC_TSSSR_SS_Pos (0U)
  15637. #define RTC_TSSSR_SS_Msk (0xFFFFUL << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  15638. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  15639. /******************** Bits definition for RTC_CALR register *****************/
  15640. #define RTC_CALR_CALP_Pos (15U)
  15641. #define RTC_CALR_CALP_Msk (0x1UL << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  15642. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  15643. #define RTC_CALR_CALW8_Pos (14U)
  15644. #define RTC_CALR_CALW8_Msk (0x1UL << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  15645. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  15646. #define RTC_CALR_CALW16_Pos (13U)
  15647. #define RTC_CALR_CALW16_Msk (0x1UL << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  15648. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  15649. #define RTC_CALR_CALM_Pos (0U)
  15650. #define RTC_CALR_CALM_Msk (0x1FFUL << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  15651. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  15652. #define RTC_CALR_CALM_0 (0x001UL << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  15653. #define RTC_CALR_CALM_1 (0x002UL << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  15654. #define RTC_CALR_CALM_2 (0x004UL << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  15655. #define RTC_CALR_CALM_3 (0x008UL << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  15656. #define RTC_CALR_CALM_4 (0x010UL << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  15657. #define RTC_CALR_CALM_5 (0x020UL << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  15658. #define RTC_CALR_CALM_6 (0x040UL << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  15659. #define RTC_CALR_CALM_7 (0x080UL << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  15660. #define RTC_CALR_CALM_8 (0x100UL << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  15661. /******************** Bits definition for RTC_TAMPCR register ***************/
  15662. #define RTC_TAMPCR_TAMP3MF_Pos (24U)
  15663. #define RTC_TAMPCR_TAMP3MF_Msk (0x1UL << RTC_TAMPCR_TAMP3MF_Pos) /*!< 0x01000000 */
  15664. #define RTC_TAMPCR_TAMP3MF RTC_TAMPCR_TAMP3MF_Msk
  15665. #define RTC_TAMPCR_TAMP3NOERASE_Pos (23U)
  15666. #define RTC_TAMPCR_TAMP3NOERASE_Msk (0x1UL << RTC_TAMPCR_TAMP3NOERASE_Pos) /*!< 0x00800000 */
  15667. #define RTC_TAMPCR_TAMP3NOERASE RTC_TAMPCR_TAMP3NOERASE_Msk
  15668. #define RTC_TAMPCR_TAMP3IE_Pos (22U)
  15669. #define RTC_TAMPCR_TAMP3IE_Msk (0x1UL << RTC_TAMPCR_TAMP3IE_Pos) /*!< 0x00400000 */
  15670. #define RTC_TAMPCR_TAMP3IE RTC_TAMPCR_TAMP3IE_Msk
  15671. #define RTC_TAMPCR_TAMP2MF_Pos (21U)
  15672. #define RTC_TAMPCR_TAMP2MF_Msk (0x1UL << RTC_TAMPCR_TAMP2MF_Pos) /*!< 0x00200000 */
  15673. #define RTC_TAMPCR_TAMP2MF RTC_TAMPCR_TAMP2MF_Msk
  15674. #define RTC_TAMPCR_TAMP2NOERASE_Pos (20U)
  15675. #define RTC_TAMPCR_TAMP2NOERASE_Msk (0x1UL << RTC_TAMPCR_TAMP2NOERASE_Pos) /*!< 0x00100000 */
  15676. #define RTC_TAMPCR_TAMP2NOERASE RTC_TAMPCR_TAMP2NOERASE_Msk
  15677. #define RTC_TAMPCR_TAMP2IE_Pos (19U)
  15678. #define RTC_TAMPCR_TAMP2IE_Msk (0x1UL << RTC_TAMPCR_TAMP2IE_Pos) /*!< 0x00080000 */
  15679. #define RTC_TAMPCR_TAMP2IE RTC_TAMPCR_TAMP2IE_Msk
  15680. #define RTC_TAMPCR_TAMP1MF_Pos (18U)
  15681. #define RTC_TAMPCR_TAMP1MF_Msk (0x1UL << RTC_TAMPCR_TAMP1MF_Pos) /*!< 0x00040000 */
  15682. #define RTC_TAMPCR_TAMP1MF RTC_TAMPCR_TAMP1MF_Msk
  15683. #define RTC_TAMPCR_TAMP1NOERASE_Pos (17U)
  15684. #define RTC_TAMPCR_TAMP1NOERASE_Msk (0x1UL << RTC_TAMPCR_TAMP1NOERASE_Pos) /*!< 0x00020000 */
  15685. #define RTC_TAMPCR_TAMP1NOERASE RTC_TAMPCR_TAMP1NOERASE_Msk
  15686. #define RTC_TAMPCR_TAMP1IE_Pos (16U)
  15687. #define RTC_TAMPCR_TAMP1IE_Msk (0x1UL << RTC_TAMPCR_TAMP1IE_Pos) /*!< 0x00010000 */
  15688. #define RTC_TAMPCR_TAMP1IE RTC_TAMPCR_TAMP1IE_Msk
  15689. #define RTC_TAMPCR_TAMPPUDIS_Pos (15U)
  15690. #define RTC_TAMPCR_TAMPPUDIS_Msk (0x1UL << RTC_TAMPCR_TAMPPUDIS_Pos) /*!< 0x00008000 */
  15691. #define RTC_TAMPCR_TAMPPUDIS RTC_TAMPCR_TAMPPUDIS_Msk
  15692. #define RTC_TAMPCR_TAMPPRCH_Pos (13U)
  15693. #define RTC_TAMPCR_TAMPPRCH_Msk (0x3UL << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00006000 */
  15694. #define RTC_TAMPCR_TAMPPRCH RTC_TAMPCR_TAMPPRCH_Msk
  15695. #define RTC_TAMPCR_TAMPPRCH_0 (0x1UL << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00002000 */
  15696. #define RTC_TAMPCR_TAMPPRCH_1 (0x2UL << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00004000 */
  15697. #define RTC_TAMPCR_TAMPFLT_Pos (11U)
  15698. #define RTC_TAMPCR_TAMPFLT_Msk (0x3UL << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001800 */
  15699. #define RTC_TAMPCR_TAMPFLT RTC_TAMPCR_TAMPFLT_Msk
  15700. #define RTC_TAMPCR_TAMPFLT_0 (0x1UL << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00000800 */
  15701. #define RTC_TAMPCR_TAMPFLT_1 (0x2UL << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001000 */
  15702. #define RTC_TAMPCR_TAMPFREQ_Pos (8U)
  15703. #define RTC_TAMPCR_TAMPFREQ_Msk (0x7UL << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000700 */
  15704. #define RTC_TAMPCR_TAMPFREQ RTC_TAMPCR_TAMPFREQ_Msk
  15705. #define RTC_TAMPCR_TAMPFREQ_0 (0x1UL << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000100 */
  15706. #define RTC_TAMPCR_TAMPFREQ_1 (0x2UL << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000200 */
  15707. #define RTC_TAMPCR_TAMPFREQ_2 (0x4UL << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000400 */
  15708. #define RTC_TAMPCR_TAMPTS_Pos (7U)
  15709. #define RTC_TAMPCR_TAMPTS_Msk (0x1UL << RTC_TAMPCR_TAMPTS_Pos) /*!< 0x00000080 */
  15710. #define RTC_TAMPCR_TAMPTS RTC_TAMPCR_TAMPTS_Msk
  15711. #define RTC_TAMPCR_TAMP3TRG_Pos (6U)
  15712. #define RTC_TAMPCR_TAMP3TRG_Msk (0x1UL << RTC_TAMPCR_TAMP3TRG_Pos) /*!< 0x00000040 */
  15713. #define RTC_TAMPCR_TAMP3TRG RTC_TAMPCR_TAMP3TRG_Msk
  15714. #define RTC_TAMPCR_TAMP3E_Pos (5U)
  15715. #define RTC_TAMPCR_TAMP3E_Msk (0x1UL << RTC_TAMPCR_TAMP3E_Pos) /*!< 0x00000020 */
  15716. #define RTC_TAMPCR_TAMP3E RTC_TAMPCR_TAMP3E_Msk
  15717. #define RTC_TAMPCR_TAMP2TRG_Pos (4U)
  15718. #define RTC_TAMPCR_TAMP2TRG_Msk (0x1UL << RTC_TAMPCR_TAMP2TRG_Pos) /*!< 0x00000010 */
  15719. #define RTC_TAMPCR_TAMP2TRG RTC_TAMPCR_TAMP2TRG_Msk
  15720. #define RTC_TAMPCR_TAMP2E_Pos (3U)
  15721. #define RTC_TAMPCR_TAMP2E_Msk (0x1UL << RTC_TAMPCR_TAMP2E_Pos) /*!< 0x00000008 */
  15722. #define RTC_TAMPCR_TAMP2E RTC_TAMPCR_TAMP2E_Msk
  15723. #define RTC_TAMPCR_TAMPIE_Pos (2U)
  15724. #define RTC_TAMPCR_TAMPIE_Msk (0x1UL << RTC_TAMPCR_TAMPIE_Pos) /*!< 0x00000004 */
  15725. #define RTC_TAMPCR_TAMPIE RTC_TAMPCR_TAMPIE_Msk
  15726. #define RTC_TAMPCR_TAMP1TRG_Pos (1U)
  15727. #define RTC_TAMPCR_TAMP1TRG_Msk (0x1UL << RTC_TAMPCR_TAMP1TRG_Pos) /*!< 0x00000002 */
  15728. #define RTC_TAMPCR_TAMP1TRG RTC_TAMPCR_TAMP1TRG_Msk
  15729. #define RTC_TAMPCR_TAMP1E_Pos (0U)
  15730. #define RTC_TAMPCR_TAMP1E_Msk (0x1UL << RTC_TAMPCR_TAMP1E_Pos) /*!< 0x00000001 */
  15731. #define RTC_TAMPCR_TAMP1E RTC_TAMPCR_TAMP1E_Msk
  15732. /******************** Bits definition for RTC_ALRMASSR register *************/
  15733. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  15734. #define RTC_ALRMASSR_MASKSS_Msk (0xFUL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  15735. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  15736. #define RTC_ALRMASSR_MASKSS_0 (0x1UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  15737. #define RTC_ALRMASSR_MASKSS_1 (0x2UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  15738. #define RTC_ALRMASSR_MASKSS_2 (0x4UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  15739. #define RTC_ALRMASSR_MASKSS_3 (0x8UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  15740. #define RTC_ALRMASSR_SS_Pos (0U)
  15741. #define RTC_ALRMASSR_SS_Msk (0x7FFFUL << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  15742. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  15743. /******************** Bits definition for RTC_ALRMBSSR register *************/
  15744. #define RTC_ALRMBSSR_MASKSS_Pos (24U)
  15745. #define RTC_ALRMBSSR_MASKSS_Msk (0xFUL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */
  15746. #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk
  15747. #define RTC_ALRMBSSR_MASKSS_0 (0x1UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */
  15748. #define RTC_ALRMBSSR_MASKSS_1 (0x2UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */
  15749. #define RTC_ALRMBSSR_MASKSS_2 (0x4UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */
  15750. #define RTC_ALRMBSSR_MASKSS_3 (0x8UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */
  15751. #define RTC_ALRMBSSR_SS_Pos (0U)
  15752. #define RTC_ALRMBSSR_SS_Msk (0x7FFFUL << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */
  15753. #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk
  15754. /******************** Bits definition for RTC_OR register *******************/
  15755. #define RTC_OR_OUT_RMP_Pos (1U)
  15756. #define RTC_OR_OUT_RMP_Msk (0x1UL << RTC_OR_OUT_RMP_Pos) /*!< 0x00000002 */
  15757. #define RTC_OR_OUT_RMP RTC_OR_OUT_RMP_Msk
  15758. #define RTC_OR_ALARMOUTTYPE_Pos (0U)
  15759. #define RTC_OR_ALARMOUTTYPE_Msk (0x1UL << RTC_OR_ALARMOUTTYPE_Pos) /*!< 0x00000001 */
  15760. #define RTC_OR_ALARMOUTTYPE RTC_OR_ALARMOUTTYPE_Msk
  15761. /******************** Bits definition for RTC_BKP0R register ****************/
  15762. #define RTC_BKP0R_Pos (0U)
  15763. #define RTC_BKP0R_Msk (0xFFFFFFFFUL << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  15764. #define RTC_BKP0R RTC_BKP0R_Msk
  15765. /******************** Bits definition for RTC_BKP1R register ****************/
  15766. #define RTC_BKP1R_Pos (0U)
  15767. #define RTC_BKP1R_Msk (0xFFFFFFFFUL << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  15768. #define RTC_BKP1R RTC_BKP1R_Msk
  15769. /******************** Bits definition for RTC_BKP2R register ****************/
  15770. #define RTC_BKP2R_Pos (0U)
  15771. #define RTC_BKP2R_Msk (0xFFFFFFFFUL << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  15772. #define RTC_BKP2R RTC_BKP2R_Msk
  15773. /******************** Bits definition for RTC_BKP3R register ****************/
  15774. #define RTC_BKP3R_Pos (0U)
  15775. #define RTC_BKP3R_Msk (0xFFFFFFFFUL << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  15776. #define RTC_BKP3R RTC_BKP3R_Msk
  15777. /******************** Bits definition for RTC_BKP4R register ****************/
  15778. #define RTC_BKP4R_Pos (0U)
  15779. #define RTC_BKP4R_Msk (0xFFFFFFFFUL << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  15780. #define RTC_BKP4R RTC_BKP4R_Msk
  15781. /******************** Bits definition for RTC_BKP5R register ****************/
  15782. #define RTC_BKP5R_Pos (0U)
  15783. #define RTC_BKP5R_Msk (0xFFFFFFFFUL << RTC_BKP5R_Pos) /*!< 0xFFFFFFFF */
  15784. #define RTC_BKP5R RTC_BKP5R_Msk
  15785. /******************** Bits definition for RTC_BKP6R register ****************/
  15786. #define RTC_BKP6R_Pos (0U)
  15787. #define RTC_BKP6R_Msk (0xFFFFFFFFUL << RTC_BKP6R_Pos) /*!< 0xFFFFFFFF */
  15788. #define RTC_BKP6R RTC_BKP6R_Msk
  15789. /******************** Bits definition for RTC_BKP7R register ****************/
  15790. #define RTC_BKP7R_Pos (0U)
  15791. #define RTC_BKP7R_Msk (0xFFFFFFFFUL << RTC_BKP7R_Pos) /*!< 0xFFFFFFFF */
  15792. #define RTC_BKP7R RTC_BKP7R_Msk
  15793. /******************** Bits definition for RTC_BKP8R register ****************/
  15794. #define RTC_BKP8R_Pos (0U)
  15795. #define RTC_BKP8R_Msk (0xFFFFFFFFUL << RTC_BKP8R_Pos) /*!< 0xFFFFFFFF */
  15796. #define RTC_BKP8R RTC_BKP8R_Msk
  15797. /******************** Bits definition for RTC_BKP9R register ****************/
  15798. #define RTC_BKP9R_Pos (0U)
  15799. #define RTC_BKP9R_Msk (0xFFFFFFFFUL << RTC_BKP9R_Pos) /*!< 0xFFFFFFFF */
  15800. #define RTC_BKP9R RTC_BKP9R_Msk
  15801. /******************** Bits definition for RTC_BKP10R register ***************/
  15802. #define RTC_BKP10R_Pos (0U)
  15803. #define RTC_BKP10R_Msk (0xFFFFFFFFUL << RTC_BKP10R_Pos) /*!< 0xFFFFFFFF */
  15804. #define RTC_BKP10R RTC_BKP10R_Msk
  15805. /******************** Bits definition for RTC_BKP11R register ***************/
  15806. #define RTC_BKP11R_Pos (0U)
  15807. #define RTC_BKP11R_Msk (0xFFFFFFFFUL << RTC_BKP11R_Pos) /*!< 0xFFFFFFFF */
  15808. #define RTC_BKP11R RTC_BKP11R_Msk
  15809. /******************** Bits definition for RTC_BKP12R register ***************/
  15810. #define RTC_BKP12R_Pos (0U)
  15811. #define RTC_BKP12R_Msk (0xFFFFFFFFUL << RTC_BKP12R_Pos) /*!< 0xFFFFFFFF */
  15812. #define RTC_BKP12R RTC_BKP12R_Msk
  15813. /******************** Bits definition for RTC_BKP13R register ***************/
  15814. #define RTC_BKP13R_Pos (0U)
  15815. #define RTC_BKP13R_Msk (0xFFFFFFFFUL << RTC_BKP13R_Pos) /*!< 0xFFFFFFFF */
  15816. #define RTC_BKP13R RTC_BKP13R_Msk
  15817. /******************** Bits definition for RTC_BKP14R register ***************/
  15818. #define RTC_BKP14R_Pos (0U)
  15819. #define RTC_BKP14R_Msk (0xFFFFFFFFUL << RTC_BKP14R_Pos) /*!< 0xFFFFFFFF */
  15820. #define RTC_BKP14R RTC_BKP14R_Msk
  15821. /******************** Bits definition for RTC_BKP15R register ***************/
  15822. #define RTC_BKP15R_Pos (0U)
  15823. #define RTC_BKP15R_Msk (0xFFFFFFFFUL << RTC_BKP15R_Pos) /*!< 0xFFFFFFFF */
  15824. #define RTC_BKP15R RTC_BKP15R_Msk
  15825. /******************** Bits definition for RTC_BKP16R register ***************/
  15826. #define RTC_BKP16R_Pos (0U)
  15827. #define RTC_BKP16R_Msk (0xFFFFFFFFUL << RTC_BKP16R_Pos) /*!< 0xFFFFFFFF */
  15828. #define RTC_BKP16R RTC_BKP16R_Msk
  15829. /******************** Bits definition for RTC_BKP17R register ***************/
  15830. #define RTC_BKP17R_Pos (0U)
  15831. #define RTC_BKP17R_Msk (0xFFFFFFFFUL << RTC_BKP17R_Pos) /*!< 0xFFFFFFFF */
  15832. #define RTC_BKP17R RTC_BKP17R_Msk
  15833. /******************** Bits definition for RTC_BKP18R register ***************/
  15834. #define RTC_BKP18R_Pos (0U)
  15835. #define RTC_BKP18R_Msk (0xFFFFFFFFUL << RTC_BKP18R_Pos) /*!< 0xFFFFFFFF */
  15836. #define RTC_BKP18R RTC_BKP18R_Msk
  15837. /******************** Bits definition for RTC_BKP19R register ***************/
  15838. #define RTC_BKP19R_Pos (0U)
  15839. #define RTC_BKP19R_Msk (0xFFFFFFFFUL << RTC_BKP19R_Pos) /*!< 0xFFFFFFFF */
  15840. #define RTC_BKP19R RTC_BKP19R_Msk
  15841. /******************** Bits definition for RTC_BKP20R register ***************/
  15842. #define RTC_BKP20R_Pos (0U)
  15843. #define RTC_BKP20R_Msk (0xFFFFFFFFUL << RTC_BKP20R_Pos) /*!< 0xFFFFFFFF */
  15844. #define RTC_BKP20R RTC_BKP20R_Msk
  15845. /******************** Bits definition for RTC_BKP21R register ***************/
  15846. #define RTC_BKP21R_Pos (0U)
  15847. #define RTC_BKP21R_Msk (0xFFFFFFFFUL << RTC_BKP21R_Pos) /*!< 0xFFFFFFFF */
  15848. #define RTC_BKP21R RTC_BKP21R_Msk
  15849. /******************** Bits definition for RTC_BKP22R register ***************/
  15850. #define RTC_BKP22R_Pos (0U)
  15851. #define RTC_BKP22R_Msk (0xFFFFFFFFUL << RTC_BKP22R_Pos) /*!< 0xFFFFFFFF */
  15852. #define RTC_BKP22R RTC_BKP22R_Msk
  15853. /******************** Bits definition for RTC_BKP23R register ***************/
  15854. #define RTC_BKP23R_Pos (0U)
  15855. #define RTC_BKP23R_Msk (0xFFFFFFFFUL << RTC_BKP23R_Pos) /*!< 0xFFFFFFFF */
  15856. #define RTC_BKP23R RTC_BKP23R_Msk
  15857. /******************** Bits definition for RTC_BKP24R register ***************/
  15858. #define RTC_BKP24R_Pos (0U)
  15859. #define RTC_BKP24R_Msk (0xFFFFFFFFUL << RTC_BKP24R_Pos) /*!< 0xFFFFFFFF */
  15860. #define RTC_BKP24R RTC_BKP24R_Msk
  15861. /******************** Bits definition for RTC_BKP25R register ***************/
  15862. #define RTC_BKP25R_Pos (0U)
  15863. #define RTC_BKP25R_Msk (0xFFFFFFFFUL << RTC_BKP25R_Pos) /*!< 0xFFFFFFFF */
  15864. #define RTC_BKP25R RTC_BKP25R_Msk
  15865. /******************** Bits definition for RTC_BKP26R register ***************/
  15866. #define RTC_BKP26R_Pos (0U)
  15867. #define RTC_BKP26R_Msk (0xFFFFFFFFUL << RTC_BKP26R_Pos) /*!< 0xFFFFFFFF */
  15868. #define RTC_BKP26R RTC_BKP26R_Msk
  15869. /******************** Bits definition for RTC_BKP27R register ***************/
  15870. #define RTC_BKP27R_Pos (0U)
  15871. #define RTC_BKP27R_Msk (0xFFFFFFFFUL << RTC_BKP27R_Pos) /*!< 0xFFFFFFFF */
  15872. #define RTC_BKP27R RTC_BKP27R_Msk
  15873. /******************** Bits definition for RTC_BKP28R register ***************/
  15874. #define RTC_BKP28R_Pos (0U)
  15875. #define RTC_BKP28R_Msk (0xFFFFFFFFUL << RTC_BKP28R_Pos) /*!< 0xFFFFFFFF */
  15876. #define RTC_BKP28R RTC_BKP28R_Msk
  15877. /******************** Bits definition for RTC_BKP29R register ***************/
  15878. #define RTC_BKP29R_Pos (0U)
  15879. #define RTC_BKP29R_Msk (0xFFFFFFFFUL << RTC_BKP29R_Pos) /*!< 0xFFFFFFFF */
  15880. #define RTC_BKP29R RTC_BKP29R_Msk
  15881. /******************** Bits definition for RTC_BKP30R register ***************/
  15882. #define RTC_BKP30R_Pos (0U)
  15883. #define RTC_BKP30R_Msk (0xFFFFFFFFUL << RTC_BKP30R_Pos) /*!< 0xFFFFFFFF */
  15884. #define RTC_BKP30R RTC_BKP30R_Msk
  15885. /******************** Bits definition for RTC_BKP31R register ***************/
  15886. #define RTC_BKP31R_Pos (0U)
  15887. #define RTC_BKP31R_Msk (0xFFFFFFFFUL << RTC_BKP31R_Pos) /*!< 0xFFFFFFFF */
  15888. #define RTC_BKP31R RTC_BKP31R_Msk
  15889. /******************** Number of backup registers ******************************/
  15890. #define RTC_BKP_NUMBER_Pos (5U)
  15891. #define RTC_BKP_NUMBER_Msk (0x1UL << RTC_BKP_NUMBER_Pos) /*!< 0x00000020 */
  15892. #define RTC_BKP_NUMBER RTC_BKP_NUMBER_Msk
  15893. /******************************************************************************/
  15894. /* */
  15895. /* SPDIF-RX Interface */
  15896. /* */
  15897. /******************************************************************************/
  15898. /******************** Bit definition for SPDIF_CR register ******************/
  15899. #define SPDIFRX_CR_SPDIFEN_Pos (0U)
  15900. #define SPDIFRX_CR_SPDIFEN_Msk (0x3UL << SPDIFRX_CR_SPDIFEN_Pos) /*!< 0x00000003 */
  15901. #define SPDIFRX_CR_SPDIFEN SPDIFRX_CR_SPDIFEN_Msk /*!<Peripheral Block Enable */
  15902. #define SPDIFRX_CR_RXDMAEN_Pos (2U)
  15903. #define SPDIFRX_CR_RXDMAEN_Msk (0x1UL << SPDIFRX_CR_RXDMAEN_Pos) /*!< 0x00000004 */
  15904. #define SPDIFRX_CR_RXDMAEN SPDIFRX_CR_RXDMAEN_Msk /*!<Receiver DMA Enable for data flow */
  15905. #define SPDIFRX_CR_RXSTEO_Pos (3U)
  15906. #define SPDIFRX_CR_RXSTEO_Msk (0x1UL << SPDIFRX_CR_RXSTEO_Pos) /*!< 0x00000008 */
  15907. #define SPDIFRX_CR_RXSTEO SPDIFRX_CR_RXSTEO_Msk /*!<Stereo Mode */
  15908. #define SPDIFRX_CR_DRFMT_Pos (4U)
  15909. #define SPDIFRX_CR_DRFMT_Msk (0x3UL << SPDIFRX_CR_DRFMT_Pos) /*!< 0x00000030 */
  15910. #define SPDIFRX_CR_DRFMT SPDIFRX_CR_DRFMT_Msk /*!<RX Data format */
  15911. #define SPDIFRX_CR_PMSK_Pos (6U)
  15912. #define SPDIFRX_CR_PMSK_Msk (0x1UL << SPDIFRX_CR_PMSK_Pos) /*!< 0x00000040 */
  15913. #define SPDIFRX_CR_PMSK SPDIFRX_CR_PMSK_Msk /*!<Mask Parity error bit */
  15914. #define SPDIFRX_CR_VMSK_Pos (7U)
  15915. #define SPDIFRX_CR_VMSK_Msk (0x1UL << SPDIFRX_CR_VMSK_Pos) /*!< 0x00000080 */
  15916. #define SPDIFRX_CR_VMSK SPDIFRX_CR_VMSK_Msk /*!<Mask of Validity bit */
  15917. #define SPDIFRX_CR_CUMSK_Pos (8U)
  15918. #define SPDIFRX_CR_CUMSK_Msk (0x1UL << SPDIFRX_CR_CUMSK_Pos) /*!< 0x00000100 */
  15919. #define SPDIFRX_CR_CUMSK SPDIFRX_CR_CUMSK_Msk /*!<Mask of channel status and user bits */
  15920. #define SPDIFRX_CR_PTMSK_Pos (9U)
  15921. #define SPDIFRX_CR_PTMSK_Msk (0x1UL << SPDIFRX_CR_PTMSK_Pos) /*!< 0x00000200 */
  15922. #define SPDIFRX_CR_PTMSK SPDIFRX_CR_PTMSK_Msk /*!<Mask of Preamble Type bits */
  15923. #define SPDIFRX_CR_CBDMAEN_Pos (10U)
  15924. #define SPDIFRX_CR_CBDMAEN_Msk (0x1UL << SPDIFRX_CR_CBDMAEN_Pos) /*!< 0x00000400 */
  15925. #define SPDIFRX_CR_CBDMAEN SPDIFRX_CR_CBDMAEN_Msk /*!<Control Buffer DMA ENable for control flow */
  15926. #define SPDIFRX_CR_CHSEL_Pos (11U)
  15927. #define SPDIFRX_CR_CHSEL_Msk (0x1UL << SPDIFRX_CR_CHSEL_Pos) /*!< 0x00000800 */
  15928. #define SPDIFRX_CR_CHSEL SPDIFRX_CR_CHSEL_Msk /*!<Channel Selection */
  15929. #define SPDIFRX_CR_NBTR_Pos (12U)
  15930. #define SPDIFRX_CR_NBTR_Msk (0x3UL << SPDIFRX_CR_NBTR_Pos) /*!< 0x00003000 */
  15931. #define SPDIFRX_CR_NBTR SPDIFRX_CR_NBTR_Msk /*!<Maximum allowed re-tries during synchronization phase */
  15932. #define SPDIFRX_CR_WFA_Pos (14U)
  15933. #define SPDIFRX_CR_WFA_Msk (0x1UL << SPDIFRX_CR_WFA_Pos) /*!< 0x00004000 */
  15934. #define SPDIFRX_CR_WFA SPDIFRX_CR_WFA_Msk /*!<Wait For Activity */
  15935. #define SPDIFRX_CR_INSEL_Pos (16U)
  15936. #define SPDIFRX_CR_INSEL_Msk (0x7UL << SPDIFRX_CR_INSEL_Pos) /*!< 0x00070000 */
  15937. #define SPDIFRX_CR_INSEL SPDIFRX_CR_INSEL_Msk /*!<SPDIF input selection */
  15938. #define SPDIFRX_CR_CKSEN_Pos (20U)
  15939. #define SPDIFRX_CR_CKSEN_Msk (0x1UL << SPDIFRX_CR_CKSEN_Pos) /*!< 0x00100000 */
  15940. #define SPDIFRX_CR_CKSEN SPDIFRX_CR_CKSEN_Msk /*!<Symbol Clock Enable */
  15941. #define SPDIFRX_CR_CKSBKPEN_Pos (21U)
  15942. #define SPDIFRX_CR_CKSBKPEN_Msk (0x1UL << SPDIFRX_CR_CKSBKPEN_Pos) /*!< 0x00200000 */
  15943. #define SPDIFRX_CR_CKSBKPEN SPDIFRX_CR_CKSBKPEN_Msk /*!<Backup Symbol Clock Enable */
  15944. /******************* Bit definition for SPDIFRX_IMR register *******************/
  15945. #define SPDIFRX_IMR_RXNEIE_Pos (0U)
  15946. #define SPDIFRX_IMR_RXNEIE_Msk (0x1UL << SPDIFRX_IMR_RXNEIE_Pos) /*!< 0x00000001 */
  15947. #define SPDIFRX_IMR_RXNEIE SPDIFRX_IMR_RXNEIE_Msk /*!<RXNE interrupt enable */
  15948. #define SPDIFRX_IMR_CSRNEIE_Pos (1U)
  15949. #define SPDIFRX_IMR_CSRNEIE_Msk (0x1UL << SPDIFRX_IMR_CSRNEIE_Pos) /*!< 0x00000002 */
  15950. #define SPDIFRX_IMR_CSRNEIE SPDIFRX_IMR_CSRNEIE_Msk /*!<Control Buffer Ready Interrupt Enable */
  15951. #define SPDIFRX_IMR_PERRIE_Pos (2U)
  15952. #define SPDIFRX_IMR_PERRIE_Msk (0x1UL << SPDIFRX_IMR_PERRIE_Pos) /*!< 0x00000004 */
  15953. #define SPDIFRX_IMR_PERRIE SPDIFRX_IMR_PERRIE_Msk /*!<Parity error interrupt enable */
  15954. #define SPDIFRX_IMR_OVRIE_Pos (3U)
  15955. #define SPDIFRX_IMR_OVRIE_Msk (0x1UL << SPDIFRX_IMR_OVRIE_Pos) /*!< 0x00000008 */
  15956. #define SPDIFRX_IMR_OVRIE SPDIFRX_IMR_OVRIE_Msk /*!<Overrun error Interrupt Enable */
  15957. #define SPDIFRX_IMR_SBLKIE_Pos (4U)
  15958. #define SPDIFRX_IMR_SBLKIE_Msk (0x1UL << SPDIFRX_IMR_SBLKIE_Pos) /*!< 0x00000010 */
  15959. #define SPDIFRX_IMR_SBLKIE SPDIFRX_IMR_SBLKIE_Msk /*!<Synchronization Block Detected Interrupt Enable */
  15960. #define SPDIFRX_IMR_SYNCDIE_Pos (5U)
  15961. #define SPDIFRX_IMR_SYNCDIE_Msk (0x1UL << SPDIFRX_IMR_SYNCDIE_Pos) /*!< 0x00000020 */
  15962. #define SPDIFRX_IMR_SYNCDIE SPDIFRX_IMR_SYNCDIE_Msk /*!<Synchronization Done */
  15963. #define SPDIFRX_IMR_IFEIE_Pos (6U)
  15964. #define SPDIFRX_IMR_IFEIE_Msk (0x1UL << SPDIFRX_IMR_IFEIE_Pos) /*!< 0x00000040 */
  15965. #define SPDIFRX_IMR_IFEIE SPDIFRX_IMR_IFEIE_Msk /*!<Serial Interface Error Interrupt Enable */
  15966. /******************* Bit definition for SPDIFRX_SR register *******************/
  15967. #define SPDIFRX_SR_RXNE_Pos (0U)
  15968. #define SPDIFRX_SR_RXNE_Msk (0x1UL << SPDIFRX_SR_RXNE_Pos) /*!< 0x00000001 */
  15969. #define SPDIFRX_SR_RXNE SPDIFRX_SR_RXNE_Msk /*!<Read data register not empty */
  15970. #define SPDIFRX_SR_CSRNE_Pos (1U)
  15971. #define SPDIFRX_SR_CSRNE_Msk (0x1UL << SPDIFRX_SR_CSRNE_Pos) /*!< 0x00000002 */
  15972. #define SPDIFRX_SR_CSRNE SPDIFRX_SR_CSRNE_Msk /*!<The Control Buffer register is not empty */
  15973. #define SPDIFRX_SR_PERR_Pos (2U)
  15974. #define SPDIFRX_SR_PERR_Msk (0x1UL << SPDIFRX_SR_PERR_Pos) /*!< 0x00000004 */
  15975. #define SPDIFRX_SR_PERR SPDIFRX_SR_PERR_Msk /*!<Parity error */
  15976. #define SPDIFRX_SR_OVR_Pos (3U)
  15977. #define SPDIFRX_SR_OVR_Msk (0x1UL << SPDIFRX_SR_OVR_Pos) /*!< 0x00000008 */
  15978. #define SPDIFRX_SR_OVR SPDIFRX_SR_OVR_Msk /*!<Overrun error */
  15979. #define SPDIFRX_SR_SBD_Pos (4U)
  15980. #define SPDIFRX_SR_SBD_Msk (0x1UL << SPDIFRX_SR_SBD_Pos) /*!< 0x00000010 */
  15981. #define SPDIFRX_SR_SBD SPDIFRX_SR_SBD_Msk /*!<Synchronization Block Detected */
  15982. #define SPDIFRX_SR_SYNCD_Pos (5U)
  15983. #define SPDIFRX_SR_SYNCD_Msk (0x1UL << SPDIFRX_SR_SYNCD_Pos) /*!< 0x00000020 */
  15984. #define SPDIFRX_SR_SYNCD SPDIFRX_SR_SYNCD_Msk /*!<Synchronization Done */
  15985. #define SPDIFRX_SR_FERR_Pos (6U)
  15986. #define SPDIFRX_SR_FERR_Msk (0x1UL << SPDIFRX_SR_FERR_Pos) /*!< 0x00000040 */
  15987. #define SPDIFRX_SR_FERR SPDIFRX_SR_FERR_Msk /*!<Framing error */
  15988. #define SPDIFRX_SR_SERR_Pos (7U)
  15989. #define SPDIFRX_SR_SERR_Msk (0x1UL << SPDIFRX_SR_SERR_Pos) /*!< 0x00000080 */
  15990. #define SPDIFRX_SR_SERR SPDIFRX_SR_SERR_Msk /*!<Synchronization error */
  15991. #define SPDIFRX_SR_TERR_Pos (8U)
  15992. #define SPDIFRX_SR_TERR_Msk (0x1UL << SPDIFRX_SR_TERR_Pos) /*!< 0x00000100 */
  15993. #define SPDIFRX_SR_TERR SPDIFRX_SR_TERR_Msk /*!<Time-out error */
  15994. #define SPDIFRX_SR_WIDTH5_Pos (16U)
  15995. #define SPDIFRX_SR_WIDTH5_Msk (0x7FFFUL << SPDIFRX_SR_WIDTH5_Pos) /*!< 0x7FFF0000 */
  15996. #define SPDIFRX_SR_WIDTH5 SPDIFRX_SR_WIDTH5_Msk /*!<Duration of 5 symbols counted with spdif_clk */
  15997. /******************* Bit definition for SPDIFRX_IFCR register *******************/
  15998. #define SPDIFRX_IFCR_PERRCF_Pos (2U)
  15999. #define SPDIFRX_IFCR_PERRCF_Msk (0x1UL << SPDIFRX_IFCR_PERRCF_Pos) /*!< 0x00000004 */
  16000. #define SPDIFRX_IFCR_PERRCF SPDIFRX_IFCR_PERRCF_Msk /*!<Clears the Parity error flag */
  16001. #define SPDIFRX_IFCR_OVRCF_Pos (3U)
  16002. #define SPDIFRX_IFCR_OVRCF_Msk (0x1UL << SPDIFRX_IFCR_OVRCF_Pos) /*!< 0x00000008 */
  16003. #define SPDIFRX_IFCR_OVRCF SPDIFRX_IFCR_OVRCF_Msk /*!<Clears the Overrun error flag */
  16004. #define SPDIFRX_IFCR_SBDCF_Pos (4U)
  16005. #define SPDIFRX_IFCR_SBDCF_Msk (0x1UL << SPDIFRX_IFCR_SBDCF_Pos) /*!< 0x00000010 */
  16006. #define SPDIFRX_IFCR_SBDCF SPDIFRX_IFCR_SBDCF_Msk /*!<Clears the Synchronization Block Detected flag */
  16007. #define SPDIFRX_IFCR_SYNCDCF_Pos (5U)
  16008. #define SPDIFRX_IFCR_SYNCDCF_Msk (0x1UL << SPDIFRX_IFCR_SYNCDCF_Pos) /*!< 0x00000020 */
  16009. #define SPDIFRX_IFCR_SYNCDCF SPDIFRX_IFCR_SYNCDCF_Msk /*!<Clears the Synchronization Done flag */
  16010. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b00 case) *******************/
  16011. #define SPDIFRX_DR0_DR_Pos (0U)
  16012. #define SPDIFRX_DR0_DR_Msk (0xFFFFFFUL << SPDIFRX_DR0_DR_Pos) /*!< 0x00FFFFFF */
  16013. #define SPDIFRX_DR0_DR SPDIFRX_DR0_DR_Msk /*!<Data value */
  16014. #define SPDIFRX_DR0_PE_Pos (24U)
  16015. #define SPDIFRX_DR0_PE_Msk (0x1UL << SPDIFRX_DR0_PE_Pos) /*!< 0x01000000 */
  16016. #define SPDIFRX_DR0_PE SPDIFRX_DR0_PE_Msk /*!<Parity Error bit */
  16017. #define SPDIFRX_DR0_V_Pos (25U)
  16018. #define SPDIFRX_DR0_V_Msk (0x1UL << SPDIFRX_DR0_V_Pos) /*!< 0x02000000 */
  16019. #define SPDIFRX_DR0_V SPDIFRX_DR0_V_Msk /*!<Validity bit */
  16020. #define SPDIFRX_DR0_U_Pos (26U)
  16021. #define SPDIFRX_DR0_U_Msk (0x1UL << SPDIFRX_DR0_U_Pos) /*!< 0x04000000 */
  16022. #define SPDIFRX_DR0_U SPDIFRX_DR0_U_Msk /*!<User bit */
  16023. #define SPDIFRX_DR0_C_Pos (27U)
  16024. #define SPDIFRX_DR0_C_Msk (0x1UL << SPDIFRX_DR0_C_Pos) /*!< 0x08000000 */
  16025. #define SPDIFRX_DR0_C SPDIFRX_DR0_C_Msk /*!<Channel Status bit */
  16026. #define SPDIFRX_DR0_PT_Pos (28U)
  16027. #define SPDIFRX_DR0_PT_Msk (0x3UL << SPDIFRX_DR0_PT_Pos) /*!< 0x30000000 */
  16028. #define SPDIFRX_DR0_PT SPDIFRX_DR0_PT_Msk /*!<Preamble Type */
  16029. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b01 case) *******************/
  16030. #define SPDIFRX_DR1_DR_Pos (8U)
  16031. #define SPDIFRX_DR1_DR_Msk (0xFFFFFFUL << SPDIFRX_DR1_DR_Pos) /*!< 0xFFFFFF00 */
  16032. #define SPDIFRX_DR1_DR SPDIFRX_DR1_DR_Msk /*!<Data value */
  16033. #define SPDIFRX_DR1_PT_Pos (4U)
  16034. #define SPDIFRX_DR1_PT_Msk (0x3UL << SPDIFRX_DR1_PT_Pos) /*!< 0x00000030 */
  16035. #define SPDIFRX_DR1_PT SPDIFRX_DR1_PT_Msk /*!<Preamble Type */
  16036. #define SPDIFRX_DR1_C_Pos (3U)
  16037. #define SPDIFRX_DR1_C_Msk (0x1UL << SPDIFRX_DR1_C_Pos) /*!< 0x00000008 */
  16038. #define SPDIFRX_DR1_C SPDIFRX_DR1_C_Msk /*!<Channel Status bit */
  16039. #define SPDIFRX_DR1_U_Pos (2U)
  16040. #define SPDIFRX_DR1_U_Msk (0x1UL << SPDIFRX_DR1_U_Pos) /*!< 0x00000004 */
  16041. #define SPDIFRX_DR1_U SPDIFRX_DR1_U_Msk /*!<User bit */
  16042. #define SPDIFRX_DR1_V_Pos (1U)
  16043. #define SPDIFRX_DR1_V_Msk (0x1UL << SPDIFRX_DR1_V_Pos) /*!< 0x00000002 */
  16044. #define SPDIFRX_DR1_V SPDIFRX_DR1_V_Msk /*!<Validity bit */
  16045. #define SPDIFRX_DR1_PE_Pos (0U)
  16046. #define SPDIFRX_DR1_PE_Msk (0x1UL << SPDIFRX_DR1_PE_Pos) /*!< 0x00000001 */
  16047. #define SPDIFRX_DR1_PE SPDIFRX_DR1_PE_Msk /*!<Parity Error bit */
  16048. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b10 case) *******************/
  16049. #define SPDIFRX_DR1_DRNL1_Pos (16U)
  16050. #define SPDIFRX_DR1_DRNL1_Msk (0xFFFFUL << SPDIFRX_DR1_DRNL1_Pos) /*!< 0xFFFF0000 */
  16051. #define SPDIFRX_DR1_DRNL1 SPDIFRX_DR1_DRNL1_Msk /*!<Data value Channel B */
  16052. #define SPDIFRX_DR1_DRNL2_Pos (0U)
  16053. #define SPDIFRX_DR1_DRNL2_Msk (0xFFFFUL << SPDIFRX_DR1_DRNL2_Pos) /*!< 0x0000FFFF */
  16054. #define SPDIFRX_DR1_DRNL2 SPDIFRX_DR1_DRNL2_Msk /*!<Data value Channel A */
  16055. /******************* Bit definition for SPDIFRX_CSR register *******************/
  16056. #define SPDIFRX_CSR_USR_Pos (0U)
  16057. #define SPDIFRX_CSR_USR_Msk (0xFFFFUL << SPDIFRX_CSR_USR_Pos) /*!< 0x0000FFFF */
  16058. #define SPDIFRX_CSR_USR SPDIFRX_CSR_USR_Msk /*!<User data information */
  16059. #define SPDIFRX_CSR_CS_Pos (16U)
  16060. #define SPDIFRX_CSR_CS_Msk (0xFFUL << SPDIFRX_CSR_CS_Pos) /*!< 0x00FF0000 */
  16061. #define SPDIFRX_CSR_CS SPDIFRX_CSR_CS_Msk /*!<Channel A status information */
  16062. #define SPDIFRX_CSR_SOB_Pos (24U)
  16063. #define SPDIFRX_CSR_SOB_Msk (0x1UL << SPDIFRX_CSR_SOB_Pos) /*!< 0x01000000 */
  16064. #define SPDIFRX_CSR_SOB SPDIFRX_CSR_SOB_Msk /*!<Start Of Block */
  16065. /******************* Bit definition for SPDIFRX_DIR register *******************/
  16066. #define SPDIFRX_DIR_THI_Pos (0U)
  16067. #define SPDIFRX_DIR_THI_Msk (0x1FFFUL << SPDIFRX_DIR_THI_Pos) /*!< 0x00001FFF */
  16068. #define SPDIFRX_DIR_THI SPDIFRX_DIR_THI_Msk /*!<Threshold LOW */
  16069. #define SPDIFRX_DIR_TLO_Pos (16U)
  16070. #define SPDIFRX_DIR_TLO_Msk (0x1FFFUL << SPDIFRX_DIR_TLO_Pos) /*!< 0x1FFF0000 */
  16071. #define SPDIFRX_DIR_TLO SPDIFRX_DIR_TLO_Msk /*!<Threshold HIGH */
  16072. /******************* Bit definition for SPDIFRX_VERR register *******************/
  16073. #define SPDIFRX_VERR_MINREV_Pos (0U)
  16074. #define SPDIFRX_VERR_MINREV_Msk (0xFUL << SPDIFRX_VERR_MINREV_Pos) /*!< 0x0000000F */
  16075. #define SPDIFRX_VERR_MINREV SPDIFRX_VERR_MINREV_Msk /*!<SPDIFRX Minor revision */
  16076. #define SPDIFRX_VERR_MAJREV_Pos (4U)
  16077. #define SPDIFRX_VERR_MAJREV_Msk (0xFUL << SPDIFRX_VERR_MAJREV_Pos) /*!< 0x000000F0 */
  16078. #define SPDIFRX_VERR_MAJREV SPDIFRX_VERR_MAJREV_Msk /*!<SPDIFRX Major revision */
  16079. /******************* Bit definition for SPDIFRX_IDR register *******************/
  16080. #define SPDIFRX_IDR_ID_Pos (0U)
  16081. #define SPDIFRX_IDR_ID_Msk (0xFFFFFFFFUL << SPDIFRX_IDR_ID_Pos) /*!< 0xFFFFFFFF */
  16082. #define SPDIFRX_IDR_ID SPDIFRX_IDR_ID_Msk /*!<SPDIFRX identifier */
  16083. /******************* Bit definition for SPDIFRX_SIDR register *******************/
  16084. #define SPDIFRX_SIDR_SID_Pos (0U)
  16085. #define SPDIFRX_SIDR_SID_Msk (0xFFFFFFFFUL << SPDIFRX_SIDR_SID_Pos) /*!< 0xFFFFFFFF */
  16086. #define SPDIFRX_SIDR_SID SPDIFRX_SIDR_SID_Msk /*!<Size of the memory region allocated to SPDIFRX registers */
  16087. /******************************************************************************/
  16088. /* */
  16089. /* Serial Audio Interface */
  16090. /* */
  16091. /******************************************************************************/
  16092. /******************************* SAI VERSION ********************************/
  16093. #define SAI_VER_V2_1
  16094. /******************** Bit definition for SAI_GCR register *******************/
  16095. #define SAI_GCR_SYNCIN_Pos (0U)
  16096. #define SAI_GCR_SYNCIN_Msk (0x3UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000003 */
  16097. #define SAI_GCR_SYNCIN SAI_GCR_SYNCIN_Msk /*!<SYNCIN[1:0] bits (Synchronization Inputs) */
  16098. #define SAI_GCR_SYNCIN_0 (0x1UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000001 */
  16099. #define SAI_GCR_SYNCIN_1 (0x2UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000002 */
  16100. #define SAI_GCR_SYNCOUT_Pos (4U)
  16101. #define SAI_GCR_SYNCOUT_Msk (0x3UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000030 */
  16102. #define SAI_GCR_SYNCOUT SAI_GCR_SYNCOUT_Msk /*!<SYNCOUT[1:0] bits (Synchronization Outputs) */
  16103. #define SAI_GCR_SYNCOUT_0 (0x1UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000010 */
  16104. #define SAI_GCR_SYNCOUT_1 (0x2UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000020 */
  16105. /******************* Bit definition for SAI_xCR1 register *******************/
  16106. #define SAI_xCR1_MODE_Pos (0U)
  16107. #define SAI_xCR1_MODE_Msk (0x3UL << SAI_xCR1_MODE_Pos) /*!< 0x00000003 */
  16108. #define SAI_xCR1_MODE SAI_xCR1_MODE_Msk /*!<MODE[1:0] bits (Audio Block Mode) */
  16109. #define SAI_xCR1_MODE_0 (0x1UL << SAI_xCR1_MODE_Pos) /*!< 0x00000001 */
  16110. #define SAI_xCR1_MODE_1 (0x2UL << SAI_xCR1_MODE_Pos) /*!< 0x00000002 */
  16111. #define SAI_xCR1_PRTCFG_Pos (2U)
  16112. #define SAI_xCR1_PRTCFG_Msk (0x3UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x0000000C */
  16113. #define SAI_xCR1_PRTCFG SAI_xCR1_PRTCFG_Msk /*!<PRTCFG[1:0] bits (Protocol Configuration) */
  16114. #define SAI_xCR1_PRTCFG_0 (0x1UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000004 */
  16115. #define SAI_xCR1_PRTCFG_1 (0x2UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000008 */
  16116. #define SAI_xCR1_DS_Pos (5U)
  16117. #define SAI_xCR1_DS_Msk (0x7UL << SAI_xCR1_DS_Pos) /*!< 0x000000E0 */
  16118. #define SAI_xCR1_DS SAI_xCR1_DS_Msk /*!<DS[1:0] bits (Data Size) */
  16119. #define SAI_xCR1_DS_0 (0x1UL << SAI_xCR1_DS_Pos) /*!< 0x00000020 */
  16120. #define SAI_xCR1_DS_1 (0x2UL << SAI_xCR1_DS_Pos) /*!< 0x00000040 */
  16121. #define SAI_xCR1_DS_2 (0x4UL << SAI_xCR1_DS_Pos) /*!< 0x00000080 */
  16122. #define SAI_xCR1_LSBFIRST_Pos (8U)
  16123. #define SAI_xCR1_LSBFIRST_Msk (0x1UL << SAI_xCR1_LSBFIRST_Pos) /*!< 0x00000100 */
  16124. #define SAI_xCR1_LSBFIRST SAI_xCR1_LSBFIRST_Msk /*!<LSB First Configuration */
  16125. #define SAI_xCR1_CKSTR_Pos (9U)
  16126. #define SAI_xCR1_CKSTR_Msk (0x1UL << SAI_xCR1_CKSTR_Pos) /*!< 0x00000200 */
  16127. #define SAI_xCR1_CKSTR SAI_xCR1_CKSTR_Msk /*!<ClocK STRobing edge */
  16128. #define SAI_xCR1_SYNCEN_Pos (10U)
  16129. #define SAI_xCR1_SYNCEN_Msk (0x3UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000C00 */
  16130. #define SAI_xCR1_SYNCEN SAI_xCR1_SYNCEN_Msk /*!<SYNCEN[1:0](SYNChronization ENable) */
  16131. #define SAI_xCR1_SYNCEN_0 (0x1UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000400 */
  16132. #define SAI_xCR1_SYNCEN_1 (0x2UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000800 */
  16133. #define SAI_xCR1_MONO_Pos (12U)
  16134. #define SAI_xCR1_MONO_Msk (0x1UL << SAI_xCR1_MONO_Pos) /*!< 0x00001000 */
  16135. #define SAI_xCR1_MONO SAI_xCR1_MONO_Msk /*!<Mono mode */
  16136. #define SAI_xCR1_OUTDRIV_Pos (13U)
  16137. #define SAI_xCR1_OUTDRIV_Msk (0x1UL << SAI_xCR1_OUTDRIV_Pos) /*!< 0x00002000 */
  16138. #define SAI_xCR1_OUTDRIV SAI_xCR1_OUTDRIV_Msk /*!<Output Drive */
  16139. #define SAI_xCR1_SAIEN_Pos (16U)
  16140. #define SAI_xCR1_SAIEN_Msk (0x1UL << SAI_xCR1_SAIEN_Pos) /*!< 0x00010000 */
  16141. #define SAI_xCR1_SAIEN SAI_xCR1_SAIEN_Msk /*!<Audio Block enable */
  16142. #define SAI_xCR1_DMAEN_Pos (17U)
  16143. #define SAI_xCR1_DMAEN_Msk (0x1UL << SAI_xCR1_DMAEN_Pos) /*!< 0x00020000 */
  16144. #define SAI_xCR1_DMAEN SAI_xCR1_DMAEN_Msk /*!<DMA enable */
  16145. #define SAI_xCR1_NODIV_Pos (19U)
  16146. #define SAI_xCR1_NODIV_Msk (0x1UL << SAI_xCR1_NODIV_Pos) /*!< 0x00080000 */
  16147. #define SAI_xCR1_NODIV SAI_xCR1_NODIV_Msk /*!<No Divider Configuration */
  16148. #define SAI_xCR1_MCKDIV_Pos (20U)
  16149. #define SAI_xCR1_MCKDIV_Msk (0x3FUL << SAI_xCR1_MCKDIV_Pos) /*!< 0x03F00000 */
  16150. #define SAI_xCR1_MCKDIV SAI_xCR1_MCKDIV_Msk /*!<MCKDIV[5:0] (Master ClocK Divider) */
  16151. #define SAI_xCR1_MCKDIV_0 (0x01UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00100000 */
  16152. #define SAI_xCR1_MCKDIV_1 (0x02UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00200000 */
  16153. #define SAI_xCR1_MCKDIV_2 (0x04UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00400000 */
  16154. #define SAI_xCR1_MCKDIV_3 (0x08UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00800000 */
  16155. #define SAI_xCR1_MCKDIV_4 (0x10UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x01000000 */
  16156. #define SAI_xCR1_MCKDIV_5 (0x20UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x02000000 */
  16157. #define SAI_xCR1_MCKEN_Pos (27U)
  16158. #define SAI_xCR1_MCKEN_Msk (0x1UL << SAI_xCR1_MCKEN_Pos) /*!< 0x08000000 */
  16159. #define SAI_xCR1_MCKEN SAI_xCR1_MCKEN_Msk /*!<Master ClocK enable */
  16160. #define SAI_xCR1_OSR_Pos (26U)
  16161. #define SAI_xCR1_OSR_Msk (0x1UL << SAI_xCR1_OSR_Pos) /*!< 0x04000000 */
  16162. #define SAI_xCR1_OSR SAI_xCR1_OSR_Msk /*!<OverSampling Ratio for master clock */
  16163. /* Legacy define */
  16164. #define SAI_xCR1_NOMCK SAI_xCR1_NODIV
  16165. /******************* Bit definition for SAI_xCR2 register *******************/
  16166. #define SAI_xCR2_FTH_Pos (0U)
  16167. #define SAI_xCR2_FTH_Msk (0x7UL << SAI_xCR2_FTH_Pos) /*!< 0x00000007 */
  16168. #define SAI_xCR2_FTH SAI_xCR2_FTH_Msk /*!<FTH[2:0](Fifo THreshold) */
  16169. #define SAI_xCR2_FTH_0 (0x1UL << SAI_xCR2_FTH_Pos) /*!< 0x00000001 */
  16170. #define SAI_xCR2_FTH_1 (0x2UL << SAI_xCR2_FTH_Pos) /*!< 0x00000002 */
  16171. #define SAI_xCR2_FTH_2 (0x4UL << SAI_xCR2_FTH_Pos) /*!< 0x00000004 */
  16172. #define SAI_xCR2_FFLUSH_Pos (3U)
  16173. #define SAI_xCR2_FFLUSH_Msk (0x1UL << SAI_xCR2_FFLUSH_Pos) /*!< 0x00000008 */
  16174. #define SAI_xCR2_FFLUSH SAI_xCR2_FFLUSH_Msk /*!<Fifo FLUSH */
  16175. #define SAI_xCR2_TRIS_Pos (4U)
  16176. #define SAI_xCR2_TRIS_Msk (0x1UL << SAI_xCR2_TRIS_Pos) /*!< 0x00000010 */
  16177. #define SAI_xCR2_TRIS SAI_xCR2_TRIS_Msk /*!<TRIState Management on data line */
  16178. #define SAI_xCR2_MUTE_Pos (5U)
  16179. #define SAI_xCR2_MUTE_Msk (0x1UL << SAI_xCR2_MUTE_Pos) /*!< 0x00000020 */
  16180. #define SAI_xCR2_MUTE SAI_xCR2_MUTE_Msk /*!<Mute mode */
  16181. #define SAI_xCR2_MUTEVAL_Pos (6U)
  16182. #define SAI_xCR2_MUTEVAL_Msk (0x1UL << SAI_xCR2_MUTEVAL_Pos) /*!< 0x00000040 */
  16183. #define SAI_xCR2_MUTEVAL SAI_xCR2_MUTEVAL_Msk /*!<Muate value */
  16184. #define SAI_xCR2_MUTECNT_Pos (7U)
  16185. #define SAI_xCR2_MUTECNT_Msk (0x3FUL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001F80 */
  16186. #define SAI_xCR2_MUTECNT SAI_xCR2_MUTECNT_Msk /*!<MUTECNT[5:0] (MUTE counter) */
  16187. #define SAI_xCR2_MUTECNT_0 (0x01UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000080 */
  16188. #define SAI_xCR2_MUTECNT_1 (0x02UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000100 */
  16189. #define SAI_xCR2_MUTECNT_2 (0x04UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000200 */
  16190. #define SAI_xCR2_MUTECNT_3 (0x08UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000400 */
  16191. #define SAI_xCR2_MUTECNT_4 (0x10UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000800 */
  16192. #define SAI_xCR2_MUTECNT_5 (0x20UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001000 */
  16193. #define SAI_xCR2_CPL_Pos (13U)
  16194. #define SAI_xCR2_CPL_Msk (0x1UL << SAI_xCR2_CPL_Pos) /*!< 0x00002000 */
  16195. #define SAI_xCR2_CPL SAI_xCR2_CPL_Msk /*!< Complement Bit */
  16196. #define SAI_xCR2_COMP_Pos (14U)
  16197. #define SAI_xCR2_COMP_Msk (0x3UL << SAI_xCR2_COMP_Pos) /*!< 0x0000C000 */
  16198. #define SAI_xCR2_COMP SAI_xCR2_COMP_Msk /*!<COMP[1:0] (Companding mode) */
  16199. #define SAI_xCR2_COMP_0 (0x1UL << SAI_xCR2_COMP_Pos) /*!< 0x00004000 */
  16200. #define SAI_xCR2_COMP_1 (0x2UL << SAI_xCR2_COMP_Pos) /*!< 0x00008000 */
  16201. /****************** Bit definition for SAI_xFRCR register *******************/
  16202. #define SAI_xFRCR_FRL_Pos (0U)
  16203. #define SAI_xFRCR_FRL_Msk (0xFFUL << SAI_xFRCR_FRL_Pos) /*!< 0x000000FF */
  16204. #define SAI_xFRCR_FRL SAI_xFRCR_FRL_Msk /*!<FRL[7:0](FRame Length) */
  16205. #define SAI_xFRCR_FRL_0 (0x01UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000001 */
  16206. #define SAI_xFRCR_FRL_1 (0x02UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000002 */
  16207. #define SAI_xFRCR_FRL_2 (0x04UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000004 */
  16208. #define SAI_xFRCR_FRL_3 (0x08UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000008 */
  16209. #define SAI_xFRCR_FRL_4 (0x10UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000010 */
  16210. #define SAI_xFRCR_FRL_5 (0x20UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000020 */
  16211. #define SAI_xFRCR_FRL_6 (0x40UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000040 */
  16212. #define SAI_xFRCR_FRL_7 (0x80UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000080 */
  16213. #define SAI_xFRCR_FSALL_Pos (8U)
  16214. #define SAI_xFRCR_FSALL_Msk (0x7FUL << SAI_xFRCR_FSALL_Pos) /*!< 0x00007F00 */
  16215. #define SAI_xFRCR_FSALL SAI_xFRCR_FSALL_Msk /*!<FSALL[6:0] (Frame Synchronization Active Level Length) */
  16216. #define SAI_xFRCR_FSALL_0 (0x01UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000100 */
  16217. #define SAI_xFRCR_FSALL_1 (0x02UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000200 */
  16218. #define SAI_xFRCR_FSALL_2 (0x04UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000400 */
  16219. #define SAI_xFRCR_FSALL_3 (0x08UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000800 */
  16220. #define SAI_xFRCR_FSALL_4 (0x10UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00001000 */
  16221. #define SAI_xFRCR_FSALL_5 (0x20UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00002000 */
  16222. #define SAI_xFRCR_FSALL_6 (0x40UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00004000 */
  16223. #define SAI_xFRCR_FSDEF_Pos (16U)
  16224. #define SAI_xFRCR_FSDEF_Msk (0x1UL << SAI_xFRCR_FSDEF_Pos) /*!< 0x00010000 */
  16225. #define SAI_xFRCR_FSDEF SAI_xFRCR_FSDEF_Msk /*!<Frame Synchronization Definition */
  16226. #define SAI_xFRCR_FSPOL_Pos (17U)
  16227. #define SAI_xFRCR_FSPOL_Msk (0x1UL << SAI_xFRCR_FSPOL_Pos) /*!< 0x00020000 */
  16228. #define SAI_xFRCR_FSPOL SAI_xFRCR_FSPOL_Msk /*!<Frame Synchronization POLarity */
  16229. #define SAI_xFRCR_FSOFF_Pos (18U)
  16230. #define SAI_xFRCR_FSOFF_Msk (0x1UL << SAI_xFRCR_FSOFF_Pos) /*!< 0x00040000 */
  16231. #define SAI_xFRCR_FSOFF SAI_xFRCR_FSOFF_Msk /*!<Frame Synchronization OFFset */
  16232. /* Legacy define */
  16233. #define SAI_xFRCR_FSPO SAI_xFRCR_FSPOL
  16234. /****************** Bit definition for SAI_xSLOTR register *******************/
  16235. #define SAI_xSLOTR_FBOFF_Pos (0U)
  16236. #define SAI_xSLOTR_FBOFF_Msk (0x1FUL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x0000001F */
  16237. #define SAI_xSLOTR_FBOFF SAI_xSLOTR_FBOFF_Msk /*!<FBOFF[4:0](First Bit Offset) */
  16238. #define SAI_xSLOTR_FBOFF_0 (0x01UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000001 */
  16239. #define SAI_xSLOTR_FBOFF_1 (0x02UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000002 */
  16240. #define SAI_xSLOTR_FBOFF_2 (0x04UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000004 */
  16241. #define SAI_xSLOTR_FBOFF_3 (0x08UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000008 */
  16242. #define SAI_xSLOTR_FBOFF_4 (0x10UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000010 */
  16243. #define SAI_xSLOTR_SLOTSZ_Pos (6U)
  16244. #define SAI_xSLOTR_SLOTSZ_Msk (0x3UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x000000C0 */
  16245. #define SAI_xSLOTR_SLOTSZ SAI_xSLOTR_SLOTSZ_Msk /*!<SLOTSZ[1:0] (Slot size) */
  16246. #define SAI_xSLOTR_SLOTSZ_0 (0x1UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000040 */
  16247. #define SAI_xSLOTR_SLOTSZ_1 (0x2UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000080 */
  16248. #define SAI_xSLOTR_NBSLOT_Pos (8U)
  16249. #define SAI_xSLOTR_NBSLOT_Msk (0xFUL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000F00 */
  16250. #define SAI_xSLOTR_NBSLOT SAI_xSLOTR_NBSLOT_Msk /*!<NBSLOT[3:0] (Number of Slot in audio Frame) */
  16251. #define SAI_xSLOTR_NBSLOT_0 (0x1UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000100 */
  16252. #define SAI_xSLOTR_NBSLOT_1 (0x2UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000200 */
  16253. #define SAI_xSLOTR_NBSLOT_2 (0x4UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000400 */
  16254. #define SAI_xSLOTR_NBSLOT_3 (0x8UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000800 */
  16255. #define SAI_xSLOTR_SLOTEN_Pos (16U)
  16256. #define SAI_xSLOTR_SLOTEN_Msk (0xFFFFUL << SAI_xSLOTR_SLOTEN_Pos) /*!< 0xFFFF0000 */
  16257. #define SAI_xSLOTR_SLOTEN SAI_xSLOTR_SLOTEN_Msk /*!<SLOTEN[15:0] (Slot Enable) */
  16258. /******************* Bit definition for SAI_xIMR register *******************/
  16259. #define SAI_xIMR_OVRUDRIE_Pos (0U)
  16260. #define SAI_xIMR_OVRUDRIE_Msk (0x1UL << SAI_xIMR_OVRUDRIE_Pos) /*!< 0x00000001 */
  16261. #define SAI_xIMR_OVRUDRIE SAI_xIMR_OVRUDRIE_Msk /*!<Overrun underrun interrupt enable */
  16262. #define SAI_xIMR_MUTEDETIE_Pos (1U)
  16263. #define SAI_xIMR_MUTEDETIE_Msk (0x1UL << SAI_xIMR_MUTEDETIE_Pos) /*!< 0x00000002 */
  16264. #define SAI_xIMR_MUTEDETIE SAI_xIMR_MUTEDETIE_Msk /*!<Mute detection interrupt enable */
  16265. #define SAI_xIMR_WCKCFGIE_Pos (2U)
  16266. #define SAI_xIMR_WCKCFGIE_Msk (0x1UL << SAI_xIMR_WCKCFGIE_Pos) /*!< 0x00000004 */
  16267. #define SAI_xIMR_WCKCFGIE SAI_xIMR_WCKCFGIE_Msk /*!<Wrong Clock Configuration interrupt enable */
  16268. #define SAI_xIMR_FREQIE_Pos (3U)
  16269. #define SAI_xIMR_FREQIE_Msk (0x1UL << SAI_xIMR_FREQIE_Pos) /*!< 0x00000008 */
  16270. #define SAI_xIMR_FREQIE SAI_xIMR_FREQIE_Msk /*!<FIFO request interrupt enable */
  16271. #define SAI_xIMR_CNRDYIE_Pos (4U)
  16272. #define SAI_xIMR_CNRDYIE_Msk (0x1UL << SAI_xIMR_CNRDYIE_Pos) /*!< 0x00000010 */
  16273. #define SAI_xIMR_CNRDYIE SAI_xIMR_CNRDYIE_Msk /*!<Codec not ready interrupt enable */
  16274. #define SAI_xIMR_AFSDETIE_Pos (5U)
  16275. #define SAI_xIMR_AFSDETIE_Msk (0x1UL << SAI_xIMR_AFSDETIE_Pos) /*!< 0x00000020 */
  16276. #define SAI_xIMR_AFSDETIE SAI_xIMR_AFSDETIE_Msk /*!<Anticipated frame synchronization detection interrupt enable */
  16277. #define SAI_xIMR_LFSDETIE_Pos (6U)
  16278. #define SAI_xIMR_LFSDETIE_Msk (0x1UL << SAI_xIMR_LFSDETIE_Pos) /*!< 0x00000040 */
  16279. #define SAI_xIMR_LFSDETIE SAI_xIMR_LFSDETIE_Msk /*!<Late frame synchronization detection interrupt enable */
  16280. /******************** Bit definition for SAI_xSR register *******************/
  16281. #define SAI_xSR_OVRUDR_Pos (0U)
  16282. #define SAI_xSR_OVRUDR_Msk (0x1UL << SAI_xSR_OVRUDR_Pos) /*!< 0x00000001 */
  16283. #define SAI_xSR_OVRUDR SAI_xSR_OVRUDR_Msk /*!<Overrun underrun */
  16284. #define SAI_xSR_MUTEDET_Pos (1U)
  16285. #define SAI_xSR_MUTEDET_Msk (0x1UL << SAI_xSR_MUTEDET_Pos) /*!< 0x00000002 */
  16286. #define SAI_xSR_MUTEDET SAI_xSR_MUTEDET_Msk /*!<Mute detection */
  16287. #define SAI_xSR_WCKCFG_Pos (2U)
  16288. #define SAI_xSR_WCKCFG_Msk (0x1UL << SAI_xSR_WCKCFG_Pos) /*!< 0x00000004 */
  16289. #define SAI_xSR_WCKCFG SAI_xSR_WCKCFG_Msk /*!<Wrong Clock Configuration */
  16290. #define SAI_xSR_FREQ_Pos (3U)
  16291. #define SAI_xSR_FREQ_Msk (0x1UL << SAI_xSR_FREQ_Pos) /*!< 0x00000008 */
  16292. #define SAI_xSR_FREQ SAI_xSR_FREQ_Msk /*!<FIFO request */
  16293. #define SAI_xSR_CNRDY_Pos (4U)
  16294. #define SAI_xSR_CNRDY_Msk (0x1UL << SAI_xSR_CNRDY_Pos) /*!< 0x00000010 */
  16295. #define SAI_xSR_CNRDY SAI_xSR_CNRDY_Msk /*!<Codec not ready */
  16296. #define SAI_xSR_AFSDET_Pos (5U)
  16297. #define SAI_xSR_AFSDET_Msk (0x1UL << SAI_xSR_AFSDET_Pos) /*!< 0x00000020 */
  16298. #define SAI_xSR_AFSDET SAI_xSR_AFSDET_Msk /*!<Anticipated frame synchronization detection */
  16299. #define SAI_xSR_LFSDET_Pos (6U)
  16300. #define SAI_xSR_LFSDET_Msk (0x1UL << SAI_xSR_LFSDET_Pos) /*!< 0x00000040 */
  16301. #define SAI_xSR_LFSDET SAI_xSR_LFSDET_Msk /*!<Late frame synchronization detection */
  16302. #define SAI_xSR_FLVL_Pos (16U)
  16303. #define SAI_xSR_FLVL_Msk (0x7UL << SAI_xSR_FLVL_Pos) /*!< 0x00070000 */
  16304. #define SAI_xSR_FLVL SAI_xSR_FLVL_Msk /*!<FLVL[2:0] (FIFO Level Threshold) */
  16305. #define SAI_xSR_FLVL_0 (0x1UL << SAI_xSR_FLVL_Pos) /*!< 0x00010000 */
  16306. #define SAI_xSR_FLVL_1 (0x2UL << SAI_xSR_FLVL_Pos) /*!< 0x00020000 */
  16307. #define SAI_xSR_FLVL_2 (0x4UL << SAI_xSR_FLVL_Pos) /*!< 0x00040000 */
  16308. /****************** Bit definition for SAI_xCLRFR register ******************/
  16309. #define SAI_xCLRFR_COVRUDR_Pos (0U)
  16310. #define SAI_xCLRFR_COVRUDR_Msk (0x1UL << SAI_xCLRFR_COVRUDR_Pos) /*!< 0x00000001 */
  16311. #define SAI_xCLRFR_COVRUDR SAI_xCLRFR_COVRUDR_Msk /*!<Clear Overrun underrun */
  16312. #define SAI_xCLRFR_CMUTEDET_Pos (1U)
  16313. #define SAI_xCLRFR_CMUTEDET_Msk (0x1UL << SAI_xCLRFR_CMUTEDET_Pos) /*!< 0x00000002 */
  16314. #define SAI_xCLRFR_CMUTEDET SAI_xCLRFR_CMUTEDET_Msk /*!<Clear Mute detection */
  16315. #define SAI_xCLRFR_CWCKCFG_Pos (2U)
  16316. #define SAI_xCLRFR_CWCKCFG_Msk (0x1UL << SAI_xCLRFR_CWCKCFG_Pos) /*!< 0x00000004 */
  16317. #define SAI_xCLRFR_CWCKCFG SAI_xCLRFR_CWCKCFG_Msk /*!<Clear Wrong Clock Configuration */
  16318. #define SAI_xCLRFR_CFREQ_Pos (3U)
  16319. #define SAI_xCLRFR_CFREQ_Msk (0x1UL << SAI_xCLRFR_CFREQ_Pos) /*!< 0x00000008 */
  16320. #define SAI_xCLRFR_CFREQ SAI_xCLRFR_CFREQ_Msk /*!<Clear FIFO request */
  16321. #define SAI_xCLRFR_CCNRDY_Pos (4U)
  16322. #define SAI_xCLRFR_CCNRDY_Msk (0x1UL << SAI_xCLRFR_CCNRDY_Pos) /*!< 0x00000010 */
  16323. #define SAI_xCLRFR_CCNRDY SAI_xCLRFR_CCNRDY_Msk /*!<Clear Codec not ready */
  16324. #define SAI_xCLRFR_CAFSDET_Pos (5U)
  16325. #define SAI_xCLRFR_CAFSDET_Msk (0x1UL << SAI_xCLRFR_CAFSDET_Pos) /*!< 0x00000020 */
  16326. #define SAI_xCLRFR_CAFSDET SAI_xCLRFR_CAFSDET_Msk /*!<Clear Anticipated frame synchronization detection */
  16327. #define SAI_xCLRFR_CLFSDET_Pos (6U)
  16328. #define SAI_xCLRFR_CLFSDET_Msk (0x1UL << SAI_xCLRFR_CLFSDET_Pos) /*!< 0x00000040 */
  16329. #define SAI_xCLRFR_CLFSDET SAI_xCLRFR_CLFSDET_Msk /*!<Clear Late frame synchronization detection */
  16330. /****************** Bit definition for SAI_xDR register *********************/
  16331. #define SAI_xDR_DATA_Pos (0U)
  16332. #define SAI_xDR_DATA_Msk (0xFFFFFFFFUL << SAI_xDR_DATA_Pos) /*!< 0xFFFFFFFF */
  16333. #define SAI_xDR_DATA SAI_xDR_DATA_Msk
  16334. /******************* Bit definition for SAI_PDMCR register ******************/
  16335. #define SAI_PDMCR_PDMEN_Pos (0U)
  16336. #define SAI_PDMCR_PDMEN_Msk (0x1UL << SAI_PDMCR_PDMEN_Pos) /*!< 0x00000001 */
  16337. #define SAI_PDMCR_PDMEN SAI_PDMCR_PDMEN_Msk /*!<PDM Enable */
  16338. #define SAI_PDMCR_MICNBR_Pos (4U)
  16339. #define SAI_PDMCR_MICNBR_Msk (0x3UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000030 */
  16340. #define SAI_PDMCR_MICNBR SAI_PDMCR_MICNBR_Msk /*!<Number of microphones */
  16341. #define SAI_PDMCR_MICNBR_0 (0x1UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000010 */
  16342. #define SAI_PDMCR_MICNBR_1 (0x2UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000020 */
  16343. #define SAI_PDMCR_CKEN1_Pos (8U)
  16344. #define SAI_PDMCR_CKEN1_Msk (0x1UL << SAI_PDMCR_CKEN1_Pos) /*!< 0x00000100 */
  16345. #define SAI_PDMCR_CKEN1 SAI_PDMCR_CKEN1_Msk /*!<Clock enable of bitstream clock number 1 */
  16346. #define SAI_PDMCR_CKEN2_Pos (9U)
  16347. #define SAI_PDMCR_CKEN2_Msk (0x1UL << SAI_PDMCR_CKEN2_Pos) /*!< 0x00000200 */
  16348. #define SAI_PDMCR_CKEN2 SAI_PDMCR_CKEN2_Msk /*!<Clock enable of bitstream clock number 2 */
  16349. #define SAI_PDMCR_CKEN3_Pos (10U)
  16350. #define SAI_PDMCR_CKEN3_Msk (0x1UL << SAI_PDMCR_CKEN3_Pos) /*!< 0x00000400 */
  16351. #define SAI_PDMCR_CKEN3 SAI_PDMCR_CKEN3_Msk /*!<Clock enable of bitstream clock number 3 */
  16352. #define SAI_PDMCR_CKEN4_Pos (11U)
  16353. #define SAI_PDMCR_CKEN4_Msk (0x1UL << SAI_PDMCR_CKEN4_Pos) /*!< 0x00000800 */
  16354. #define SAI_PDMCR_CKEN4 SAI_PDMCR_CKEN4_Msk /*!<Clock enable of bitstream clock number 4 */
  16355. /****************** Bit definition for SAI_PDMDLY register ******************/
  16356. #define SAI_PDMDLY_DLYM1L_Pos (0U)
  16357. #define SAI_PDMDLY_DLYM1L_Msk (0x7UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000007 */
  16358. #define SAI_PDMDLY_DLYM1L SAI_PDMDLY_DLYM1L_Msk /*!<DLYM1L[2:0] (Delay line adjust for left microphone of pair 1) */
  16359. #define SAI_PDMDLY_DLYM1L_0 (0x1UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000001 */
  16360. #define SAI_PDMDLY_DLYM1L_1 (0x2UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000002 */
  16361. #define SAI_PDMDLY_DLYM1L_2 (0x4UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000004 */
  16362. #define SAI_PDMDLY_DLYM1R_Pos (4U)
  16363. #define SAI_PDMDLY_DLYM1R_Msk (0x7UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000070 */
  16364. #define SAI_PDMDLY_DLYM1R SAI_PDMDLY_DLYM1R_Msk /*!<DLYM1R[2:0] (Delay line adjust for right microphone of pair 1) */
  16365. #define SAI_PDMDLY_DLYM1R_0 (0x1UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000010 */
  16366. #define SAI_PDMDLY_DLYM1R_1 (0x2UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000020 */
  16367. #define SAI_PDMDLY_DLYM1R_2 (0x4UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000040 */
  16368. #define SAI_PDMDLY_DLYM2L_Pos (8U)
  16369. #define SAI_PDMDLY_DLYM2L_Msk (0x7UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000700 */
  16370. #define SAI_PDMDLY_DLYM2L SAI_PDMDLY_DLYM2L_Msk /*!<DLYM2L[2:0] (Delay line adjust for left microphone of pair 2) */
  16371. #define SAI_PDMDLY_DLYM2L_0 (0x1UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000100 */
  16372. #define SAI_PDMDLY_DLYM2L_1 (0x2UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000200 */
  16373. #define SAI_PDMDLY_DLYM2L_2 (0x4UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000400 */
  16374. #define SAI_PDMDLY_DLYM2R_Pos (12U)
  16375. #define SAI_PDMDLY_DLYM2R_Msk (0x7UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00007000 */
  16376. #define SAI_PDMDLY_DLYM2R SAI_PDMDLY_DLYM2R_Msk /*!<DLYM2R[2:0] (Delay line adjust for right microphone of pair 2)*/
  16377. #define SAI_PDMDLY_DLYM2R_0 (0x1UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00001000 */
  16378. #define SAI_PDMDLY_DLYM2R_1 (0x2UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00002000 */
  16379. #define SAI_PDMDLY_DLYM2R_2 (0x4UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00004000 */
  16380. #define SAI_PDMDLY_DLYM3L_Pos (16U)
  16381. #define SAI_PDMDLY_DLYM3L_Msk (0x7UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00070000 */
  16382. #define SAI_PDMDLY_DLYM3L SAI_PDMDLY_DLYM3L_Msk /*!<DLYM3L[2:0] (Delay line adjust for left microphone of pair 3)*/
  16383. #define SAI_PDMDLY_DLYM3L_0 (0x1UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00010000 */
  16384. #define SAI_PDMDLY_DLYM3L_1 (0x2UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00020000 */
  16385. #define SAI_PDMDLY_DLYM3L_2 (0x4UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00040000 */
  16386. #define SAI_PDMDLY_DLYM3R_Pos (20U)
  16387. #define SAI_PDMDLY_DLYM3R_Msk (0x7UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00700000 */
  16388. #define SAI_PDMDLY_DLYM3R SAI_PDMDLY_DLYM3R_Msk /*!<DLYM3R[2:0] (Delay line adjust for right microphone of pair 3)*/
  16389. #define SAI_PDMDLY_DLYM3R_0 (0x1UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00100000 */
  16390. #define SAI_PDMDLY_DLYM3R_1 (0x2UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00200000 */
  16391. #define SAI_PDMDLY_DLYM3R_2 (0x4UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00400000 */
  16392. #define SAI_PDMDLY_DLYM4L_Pos (24U)
  16393. #define SAI_PDMDLY_DLYM4L_Msk (0x7UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x07000000 */
  16394. #define SAI_PDMDLY_DLYM4L SAI_PDMDLY_DLYM4L_Msk /*!<DLYM4L[2:0] (Delay line adjust for left microphone of pair 4)*/
  16395. #define SAI_PDMDLY_DLYM4L_0 (0x1UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x01000000 */
  16396. #define SAI_PDMDLY_DLYM4L_1 (0x2UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x02000000 */
  16397. #define SAI_PDMDLY_DLYM4L_2 (0x4UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x04000000 */
  16398. #define SAI_PDMDLY_DLYM4R_Pos (28U)
  16399. #define SAI_PDMDLY_DLYM4R_Msk (0x7UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x70000000 */
  16400. #define SAI_PDMDLY_DLYM4R SAI_PDMDLY_DLYM4R_Msk /*!<DLYM4R[2:0] (Delay line adjust for right microphone of pair 4)*/
  16401. #define SAI_PDMDLY_DLYM4R_0 (0x1UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x10000000 */
  16402. #define SAI_PDMDLY_DLYM4R_1 (0x2UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x20000000 */
  16403. #define SAI_PDMDLY_DLYM4R_2 (0x4UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x40000000 */
  16404. /******************************************************************************/
  16405. /* */
  16406. /* SDMMC Interface */
  16407. /* */
  16408. /******************************************************************************/
  16409. /****************** Bit definition for SDMMC_POWER register ******************/
  16410. #define SDMMC_POWER_PWRCTRL_Pos (0U)
  16411. #define SDMMC_POWER_PWRCTRL_Msk (0x3UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000003 */
  16412. #define SDMMC_POWER_PWRCTRL SDMMC_POWER_PWRCTRL_Msk /*!<PWRCTRL[1:0] bits (Power supply control bits) */
  16413. #define SDMMC_POWER_PWRCTRL_0 (0x1UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000001 */
  16414. #define SDMMC_POWER_PWRCTRL_1 (0x2UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000002 */
  16415. #define SDMMC_POWER_VSWITCH_Pos (2U)
  16416. #define SDMMC_POWER_VSWITCH_Msk (0x1UL << SDMMC_POWER_VSWITCH_Pos) /*!< 0x00000004 */
  16417. #define SDMMC_POWER_VSWITCH SDMMC_POWER_VSWITCH_Msk /*!<Voltage switch sequence start */
  16418. #define SDMMC_POWER_VSWITCHEN_Pos (3U)
  16419. #define SDMMC_POWER_VSWITCHEN_Msk (0x1UL << SDMMC_POWER_VSWITCHEN_Pos) /*!< 0x00000008 */
  16420. #define SDMMC_POWER_VSWITCHEN SDMMC_POWER_VSWITCHEN_Msk /*!<Voltage switch procedure enable */
  16421. #define SDMMC_POWER_DIRPOL_Pos (4U)
  16422. #define SDMMC_POWER_DIRPOL_Msk (0x1UL << SDMMC_POWER_DIRPOL_Pos) /*!< 0x00000010 */
  16423. #define SDMMC_POWER_DIRPOL SDMMC_POWER_DIRPOL_Msk /*!<Data and Command direction signals polarity selection */
  16424. /****************** Bit definition for SDMMC_CLKCR register ******************/
  16425. #define SDMMC_CLKCR_CLKDIV_Pos (0U)
  16426. #define SDMMC_CLKCR_CLKDIV_Msk (0x3FFUL << SDMMC_CLKCR_CLKDIV_Pos) /*!< 0x000003FF */
  16427. #define SDMMC_CLKCR_CLKDIV SDMMC_CLKCR_CLKDIV_Msk /*!<Clock divide factor */
  16428. #define SDMMC_CLKCR_PWRSAV_Pos (12U)
  16429. #define SDMMC_CLKCR_PWRSAV_Msk (0x1UL << SDMMC_CLKCR_PWRSAV_Pos) /*!< 0x00001000 */
  16430. #define SDMMC_CLKCR_PWRSAV SDMMC_CLKCR_PWRSAV_Msk /*!<Power saving configuration bit */
  16431. #define SDMMC_CLKCR_WIDBUS_Pos (14U)
  16432. #define SDMMC_CLKCR_WIDBUS_Msk (0x3UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x0000C000 */
  16433. #define SDMMC_CLKCR_WIDBUS SDMMC_CLKCR_WIDBUS_Msk /*!<WIDBUS[1:0] bits (Wide bus mode enable bit) */
  16434. #define SDMMC_CLKCR_WIDBUS_0 (0x1UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00004000 */
  16435. #define SDMMC_CLKCR_WIDBUS_1 (0x2UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00008000 */
  16436. #define SDMMC_CLKCR_NEGEDGE_Pos (16U)
  16437. #define SDMMC_CLKCR_NEGEDGE_Msk (0x1UL << SDMMC_CLKCR_NEGEDGE_Pos) /*!< 0x00010000 */
  16438. #define SDMMC_CLKCR_NEGEDGE SDMMC_CLKCR_NEGEDGE_Msk /*!<SDMMC_CK dephasing selection bit */
  16439. #define SDMMC_CLKCR_HWFC_EN_Pos (17U)
  16440. #define SDMMC_CLKCR_HWFC_EN_Msk (0x1UL << SDMMC_CLKCR_HWFC_EN_Pos) /*!< 0x00020000 */
  16441. #define SDMMC_CLKCR_HWFC_EN SDMMC_CLKCR_HWFC_EN_Msk /*!<HW Flow Control enable */
  16442. #define SDMMC_CLKCR_DDR_Pos (18U)
  16443. #define SDMMC_CLKCR_DDR_Msk (0x1UL << SDMMC_CLKCR_DDR_Pos) /*!< 0x00040000 */
  16444. #define SDMMC_CLKCR_DDR SDMMC_CLKCR_DDR_Msk /*!<Data rate signaling selection */
  16445. #define SDMMC_CLKCR_BUSSPEED_Pos (19U)
  16446. #define SDMMC_CLKCR_BUSSPEED_Msk (0x1UL << SDMMC_CLKCR_BUSSPEED_Pos) /*!< 0x00080000 */
  16447. #define SDMMC_CLKCR_BUSSPEED SDMMC_CLKCR_BUSSPEED_Msk /*!<Bus speed mode selection */
  16448. #define SDMMC_CLKCR_SELCLKRX_Pos (20U)
  16449. #define SDMMC_CLKCR_SELCLKRX_Msk (0x3UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00300000 */
  16450. #define SDMMC_CLKCR_SELCLKRX SDMMC_CLKCR_SELCLKRX_Msk /*!<SELCLKRX[1:0] bits (Receive clock selection) */
  16451. #define SDMMC_CLKCR_SELCLKRX_0 (0x1UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00100000 */
  16452. #define SDMMC_CLKCR_SELCLKRX_1 (0x2UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00200000 */
  16453. /******************* Bit definition for SDMMC_ARG register *******************/
  16454. #define SDMMC_ARG_CMDARG_Pos (0U)
  16455. #define SDMMC_ARG_CMDARG_Msk (0xFFFFFFFFUL << SDMMC_ARG_CMDARG_Pos) /*!< 0xFFFFFFFF */
  16456. #define SDMMC_ARG_CMDARG SDMMC_ARG_CMDARG_Msk /*!<Command argument */
  16457. /******************* Bit definition for SDMMC_CMD register *******************/
  16458. #define SDMMC_CMD_CMDINDEX_Pos (0U)
  16459. #define SDMMC_CMD_CMDINDEX_Msk (0x3FUL << SDMMC_CMD_CMDINDEX_Pos) /*!< 0x0000003F */
  16460. #define SDMMC_CMD_CMDINDEX SDMMC_CMD_CMDINDEX_Msk /*!<Command Index */
  16461. #define SDMMC_CMD_CMDTRANS_Pos (6U)
  16462. #define SDMMC_CMD_CMDTRANS_Msk (0x1UL << SDMMC_CMD_CMDTRANS_Pos) /*!< 0x00000040 */
  16463. #define SDMMC_CMD_CMDTRANS SDMMC_CMD_CMDTRANS_Msk /*!<CPSM Treats command as a Data Transfer */
  16464. #define SDMMC_CMD_CMDSTOP_Pos (7U)
  16465. #define SDMMC_CMD_CMDSTOP_Msk (0x1UL << SDMMC_CMD_CMDSTOP_Pos) /*!< 0x00000080 */
  16466. #define SDMMC_CMD_CMDSTOP SDMMC_CMD_CMDSTOP_Msk /*!<CPSM Treats command as a Stop */
  16467. #define SDMMC_CMD_WAITRESP_Pos (8U)
  16468. #define SDMMC_CMD_WAITRESP_Msk (0x3UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000300 */
  16469. #define SDMMC_CMD_WAITRESP SDMMC_CMD_WAITRESP_Msk /*!<WAITRESP[1:0] bits (Wait for response bits) */
  16470. #define SDMMC_CMD_WAITRESP_0 (0x1UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000100 */
  16471. #define SDMMC_CMD_WAITRESP_1 (0x2UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000200 */
  16472. #define SDMMC_CMD_WAITINT_Pos (10U)
  16473. #define SDMMC_CMD_WAITINT_Msk (0x1UL << SDMMC_CMD_WAITINT_Pos) /*!< 0x00000400 */
  16474. #define SDMMC_CMD_WAITINT SDMMC_CMD_WAITINT_Msk /*!<CPSM Waits for Interrupt Request */
  16475. #define SDMMC_CMD_WAITPEND_Pos (11U)
  16476. #define SDMMC_CMD_WAITPEND_Msk (0x1UL << SDMMC_CMD_WAITPEND_Pos) /*!< 0x00000800 */
  16477. #define SDMMC_CMD_WAITPEND SDMMC_CMD_WAITPEND_Msk /*!<CPSM Waits for ends of data transfer (CmdPend internal signal) */
  16478. #define SDMMC_CMD_CPSMEN_Pos (12U)
  16479. #define SDMMC_CMD_CPSMEN_Msk (0x1UL << SDMMC_CMD_CPSMEN_Pos) /*!< 0x00001000 */
  16480. #define SDMMC_CMD_CPSMEN SDMMC_CMD_CPSMEN_Msk /*!<Command path state machine (CPSM) Enable bit */
  16481. #define SDMMC_CMD_DTHOLD_Pos (13U)
  16482. #define SDMMC_CMD_DTHOLD_Msk (0x1UL << SDMMC_CMD_DTHOLD_Pos) /*!< 0x00002000 */
  16483. #define SDMMC_CMD_DTHOLD SDMMC_CMD_DTHOLD_Msk /*!<Hold new data block transmission and reception in the DPSM */
  16484. #define SDMMC_CMD_BOOTMODE_Pos (14U)
  16485. #define SDMMC_CMD_BOOTMODE_Msk (0x1UL << SDMMC_CMD_BOOTMODE_Pos) /*!< 0x00004000 */
  16486. #define SDMMC_CMD_BOOTMODE SDMMC_CMD_BOOTMODE_Msk /*!<Boot mode */
  16487. #define SDMMC_CMD_BOOTEN_Pos (15U)
  16488. #define SDMMC_CMD_BOOTEN_Msk (0x1UL << SDMMC_CMD_BOOTEN_Pos) /*!< 0x00008000 */
  16489. #define SDMMC_CMD_BOOTEN SDMMC_CMD_BOOTEN_Msk /*!<Enable Boot mode procedure */
  16490. #define SDMMC_CMD_CMDSUSPEND_Pos (16U)
  16491. #define SDMMC_CMD_CMDSUSPEND_Msk (0x1UL << SDMMC_CMD_CMDSUSPEND_Pos) /*!< 0x00010000 */
  16492. #define SDMMC_CMD_CMDSUSPEND SDMMC_CMD_CMDSUSPEND_Msk /*!<CPSM Treats command as a Suspend or Resume command */
  16493. /***************** Bit definition for SDMMC_RESPCMD register *****************/
  16494. #define SDMMC_RESPCMD_RESPCMD_Pos (0U)
  16495. #define SDMMC_RESPCMD_RESPCMD_Msk (0x3FUL << SDMMC_RESPCMD_RESPCMD_Pos) /*!< 0x0000003F */
  16496. #define SDMMC_RESPCMD_RESPCMD SDMMC_RESPCMD_RESPCMD_Msk /*!<Response command index */
  16497. /****************** Bit definition for SDMMC_RESP0 register ******************/
  16498. #define SDMMC_RESP0_CARDSTATUS0_Pos (0U)
  16499. #define SDMMC_RESP0_CARDSTATUS0_Msk (0xFFFFFFFFUL << SDMMC_RESP0_CARDSTATUS0_Pos) /*!< 0xFFFFFFFF */
  16500. #define SDMMC_RESP0_CARDSTATUS0 SDMMC_RESP0_CARDSTATUS0_Msk /*!<Card Status */
  16501. /****************** Bit definition for SDMMC_RESP1 register ******************/
  16502. #define SDMMC_RESP1_CARDSTATUS1_Pos (0U)
  16503. #define SDMMC_RESP1_CARDSTATUS1_Msk (0xFFFFFFFFUL << SDMMC_RESP1_CARDSTATUS1_Pos) /*!< 0xFFFFFFFF */
  16504. #define SDMMC_RESP1_CARDSTATUS1 SDMMC_RESP1_CARDSTATUS1_Msk /*!<Card Status */
  16505. /****************** Bit definition for SDMMC_RESP2 register ******************/
  16506. #define SDMMC_RESP2_CARDSTATUS2_Pos (0U)
  16507. #define SDMMC_RESP2_CARDSTATUS2_Msk (0xFFFFFFFFUL << SDMMC_RESP2_CARDSTATUS2_Pos) /*!< 0xFFFFFFFF */
  16508. #define SDMMC_RESP2_CARDSTATUS2 SDMMC_RESP2_CARDSTATUS2_Msk /*!<Card Status */
  16509. /****************** Bit definition for SDMMC_RESP3 register ******************/
  16510. #define SDMMC_RESP3_CARDSTATUS3_Pos (0U)
  16511. #define SDMMC_RESP3_CARDSTATUS3_Msk (0xFFFFFFFFUL << SDMMC_RESP3_CARDSTATUS3_Pos) /*!< 0xFFFFFFFF */
  16512. #define SDMMC_RESP3_CARDSTATUS3 SDMMC_RESP3_CARDSTATUS3_Msk /*!<Card Status */
  16513. /****************** Bit definition for SDMMC_RESP4 register ******************/
  16514. #define SDMMC_RESP4_CARDSTATUS4_Pos (0U)
  16515. #define SDMMC_RESP4_CARDSTATUS4_Msk (0xFFFFFFFFUL << SDMMC_RESP4_CARDSTATUS4_Pos) /*!< 0xFFFFFFFF */
  16516. #define SDMMC_RESP4_CARDSTATUS4 SDMMC_RESP4_CARDSTATUS4_Msk /*!<Card Status */
  16517. /****************** Bit definition for SDMMC_DTIMER register *****************/
  16518. #define SDMMC_DTIMER_DATATIME_Pos (0U)
  16519. #define SDMMC_DTIMER_DATATIME_Msk (0xFFFFFFFFUL << SDMMC_DTIMER_DATATIME_Pos) /*!< 0xFFFFFFFF */
  16520. #define SDMMC_DTIMER_DATATIME SDMMC_DTIMER_DATATIME_Msk /*!<Data timeout period. */
  16521. /****************** Bit definition for SDMMC_DLEN register *******************/
  16522. #define SDMMC_DLEN_DATALENGTH_Pos (0U)
  16523. #define SDMMC_DLEN_DATALENGTH_Msk (0x1FFFFFFUL << SDMMC_DLEN_DATALENGTH_Pos) /*!< 0x01FFFFFF */
  16524. #define SDMMC_DLEN_DATALENGTH SDMMC_DLEN_DATALENGTH_Msk /*!<Data length value */
  16525. /****************** Bit definition for SDMMC_DCTRL register ******************/
  16526. #define SDMMC_DCTRL_DTEN_Pos (0U)
  16527. #define SDMMC_DCTRL_DTEN_Msk (0x1UL << SDMMC_DCTRL_DTEN_Pos) /*!< 0x00000001 */
  16528. #define SDMMC_DCTRL_DTEN SDMMC_DCTRL_DTEN_Msk /*!<Data transfer enabled bit */
  16529. #define SDMMC_DCTRL_DTDIR_Pos (1U)
  16530. #define SDMMC_DCTRL_DTDIR_Msk (0x1UL << SDMMC_DCTRL_DTDIR_Pos) /*!< 0x00000002 */
  16531. #define SDMMC_DCTRL_DTDIR SDMMC_DCTRL_DTDIR_Msk /*!<Data transfer direction selection */
  16532. #define SDMMC_DCTRL_DTMODE_Pos (2U)
  16533. #define SDMMC_DCTRL_DTMODE_Msk (0x3UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x0000000C */
  16534. #define SDMMC_DCTRL_DTMODE SDMMC_DCTRL_DTMODE_Msk /*!<DTMODE[1:0] Data transfer mode selection */
  16535. #define SDMMC_DCTRL_DTMODE_0 (0x1UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000004 */
  16536. #define SDMMC_DCTRL_DTMODE_1 (0x2UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000008 */
  16537. #define SDMMC_DCTRL_DBLOCKSIZE_Pos (4U)
  16538. #define SDMMC_DCTRL_DBLOCKSIZE_Msk (0xFUL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x000000F0 */
  16539. #define SDMMC_DCTRL_DBLOCKSIZE SDMMC_DCTRL_DBLOCKSIZE_Msk /*!<DBLOCKSIZE[3:0] bits (Data block size) */
  16540. #define SDMMC_DCTRL_DBLOCKSIZE_0 (0x1UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000010 */
  16541. #define SDMMC_DCTRL_DBLOCKSIZE_1 (0x2UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000020 */
  16542. #define SDMMC_DCTRL_DBLOCKSIZE_2 (0x4UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */
  16543. #define SDMMC_DCTRL_DBLOCKSIZE_3 (0x8UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */
  16544. #define SDMMC_DCTRL_RWSTART_Pos (8U)
  16545. #define SDMMC_DCTRL_RWSTART_Msk (0x1UL << SDMMC_DCTRL_RWSTART_Pos) /*!< 0x00000100 */
  16546. #define SDMMC_DCTRL_RWSTART SDMMC_DCTRL_RWSTART_Msk /*!<Read wait start */
  16547. #define SDMMC_DCTRL_RWSTOP_Pos (9U)
  16548. #define SDMMC_DCTRL_RWSTOP_Msk (0x1UL << SDMMC_DCTRL_RWSTOP_Pos) /*!< 0x00000200 */
  16549. #define SDMMC_DCTRL_RWSTOP SDMMC_DCTRL_RWSTOP_Msk /*!<Read wait stop */
  16550. #define SDMMC_DCTRL_RWMOD_Pos (10U)
  16551. #define SDMMC_DCTRL_RWMOD_Msk (0x1UL << SDMMC_DCTRL_RWMOD_Pos) /*!< 0x00000400 */
  16552. #define SDMMC_DCTRL_RWMOD SDMMC_DCTRL_RWMOD_Msk /*!<Read wait mode */
  16553. #define SDMMC_DCTRL_SDIOEN_Pos (11U)
  16554. #define SDMMC_DCTRL_SDIOEN_Msk (0x1UL << SDMMC_DCTRL_SDIOEN_Pos) /*!< 0x00000800 */
  16555. #define SDMMC_DCTRL_SDIOEN SDMMC_DCTRL_SDIOEN_Msk /*!<SD I/O enable functions */
  16556. #define SDMMC_DCTRL_BOOTACKEN_Pos (12U)
  16557. #define SDMMC_DCTRL_BOOTACKEN_Msk (0x1UL << SDMMC_DCTRL_BOOTACKEN_Pos) /*!< 0x00001000 */
  16558. #define SDMMC_DCTRL_BOOTACKEN SDMMC_DCTRL_BOOTACKEN_Msk /*!<Enable the reception of the Boot Acknowledgment */
  16559. #define SDMMC_DCTRL_FIFORST_Pos (13U)
  16560. #define SDMMC_DCTRL_FIFORST_Msk (0x1UL << SDMMC_DCTRL_FIFORST_Pos) /*!< 0x00002000 */
  16561. #define SDMMC_DCTRL_FIFORST SDMMC_DCTRL_FIFORST_Msk /*!<FIFO reset */
  16562. /****************** Bit definition for SDMMC_DCOUNT register *****************/
  16563. #define SDMMC_DCOUNT_DATACOUNT_Pos (0U)
  16564. #define SDMMC_DCOUNT_DATACOUNT_Msk (0x1FFFFFFUL << SDMMC_DCOUNT_DATACOUNT_Pos) /*!< 0x01FFFFFF */
  16565. #define SDMMC_DCOUNT_DATACOUNT SDMMC_DCOUNT_DATACOUNT_Msk /*!<Data count value */
  16566. /****************** Bit definition for SDMMC_STA register ********************/
  16567. #define SDMMC_STA_CCRCFAIL_Pos (0U)
  16568. #define SDMMC_STA_CCRCFAIL_Msk (0x1UL << SDMMC_STA_CCRCFAIL_Pos) /*!< 0x00000001 */
  16569. #define SDMMC_STA_CCRCFAIL SDMMC_STA_CCRCFAIL_Msk /*!<Command response received (CRC check failed) */
  16570. #define SDMMC_STA_DCRCFAIL_Pos (1U)
  16571. #define SDMMC_STA_DCRCFAIL_Msk (0x1UL << SDMMC_STA_DCRCFAIL_Pos) /*!< 0x00000002 */
  16572. #define SDMMC_STA_DCRCFAIL SDMMC_STA_DCRCFAIL_Msk /*!<Data block sent/received (CRC check failed) */
  16573. #define SDMMC_STA_CTIMEOUT_Pos (2U)
  16574. #define SDMMC_STA_CTIMEOUT_Msk (0x1UL << SDMMC_STA_CTIMEOUT_Pos) /*!< 0x00000004 */
  16575. #define SDMMC_STA_CTIMEOUT SDMMC_STA_CTIMEOUT_Msk /*!<Command response timeout */
  16576. #define SDMMC_STA_DTIMEOUT_Pos (3U)
  16577. #define SDMMC_STA_DTIMEOUT_Msk (0x1UL << SDMMC_STA_DTIMEOUT_Pos) /*!< 0x00000008 */
  16578. #define SDMMC_STA_DTIMEOUT SDMMC_STA_DTIMEOUT_Msk /*!<Data timeout */
  16579. #define SDMMC_STA_TXUNDERR_Pos (4U)
  16580. #define SDMMC_STA_TXUNDERR_Msk (0x1UL << SDMMC_STA_TXUNDERR_Pos) /*!< 0x00000010 */
  16581. #define SDMMC_STA_TXUNDERR SDMMC_STA_TXUNDERR_Msk /*!<Transmit FIFO underrun error */
  16582. #define SDMMC_STA_RXOVERR_Pos (5U)
  16583. #define SDMMC_STA_RXOVERR_Msk (0x1UL << SDMMC_STA_RXOVERR_Pos) /*!< 0x00000020 */
  16584. #define SDMMC_STA_RXOVERR SDMMC_STA_RXOVERR_Msk /*!<Received FIFO overrun error */
  16585. #define SDMMC_STA_CMDREND_Pos (6U)
  16586. #define SDMMC_STA_CMDREND_Msk (0x1UL << SDMMC_STA_CMDREND_Pos) /*!< 0x00000040 */
  16587. #define SDMMC_STA_CMDREND SDMMC_STA_CMDREND_Msk /*!<Command response received (CRC check passed) */
  16588. #define SDMMC_STA_CMDSENT_Pos (7U)
  16589. #define SDMMC_STA_CMDSENT_Msk (0x1UL << SDMMC_STA_CMDSENT_Pos) /*!< 0x00000080 */
  16590. #define SDMMC_STA_CMDSENT SDMMC_STA_CMDSENT_Msk /*!<Command sent (no response required) */
  16591. #define SDMMC_STA_DATAEND_Pos (8U)
  16592. #define SDMMC_STA_DATAEND_Msk (0x1UL << SDMMC_STA_DATAEND_Pos) /*!< 0x00000100 */
  16593. #define SDMMC_STA_DATAEND SDMMC_STA_DATAEND_Msk /*!<Data end (data counter, SDIDCOUNT, is zero) */
  16594. #define SDMMC_STA_DHOLD_Pos (9U)
  16595. #define SDMMC_STA_DHOLD_Msk (0x1UL << SDMMC_STA_DHOLD_Pos) /*!< 0x00000200 */
  16596. #define SDMMC_STA_DHOLD SDMMC_STA_DHOLD_Msk /*!<Data transfer Hold */
  16597. #define SDMMC_STA_DBCKEND_Pos (10U)
  16598. #define SDMMC_STA_DBCKEND_Msk (0x1UL << SDMMC_STA_DBCKEND_Pos) /*!< 0x00000400 */
  16599. #define SDMMC_STA_DBCKEND SDMMC_STA_DBCKEND_Msk /*!<Data block sent/received (CRC check passed) */
  16600. #define SDMMC_STA_DABORT_Pos (11U)
  16601. #define SDMMC_STA_DABORT_Msk (0x1UL << SDMMC_STA_DABORT_Pos) /*!< 0x00000800 */
  16602. #define SDMMC_STA_DABORT SDMMC_STA_DABORT_Msk /*!<Data transfer aborted by CMD12 */
  16603. #define SDMMC_STA_DPSMACT_Pos (12U)
  16604. #define SDMMC_STA_DPSMACT_Msk (0x1UL << SDMMC_STA_DPSMACT_Pos) /*!< 0x00001000 */
  16605. #define SDMMC_STA_DPSMACT SDMMC_STA_DPSMACT_Msk /*!<Data path state machine active */
  16606. #define SDMMC_STA_CPSMACT_Pos (13U)
  16607. #define SDMMC_STA_CPSMACT_Msk (0x1UL << SDMMC_STA_CPSMACT_Pos) /*!< 0x00002000 */
  16608. #define SDMMC_STA_CPSMACT SDMMC_STA_CPSMACT_Msk /*!<Command path state machine active */
  16609. #define SDMMC_STA_TXFIFOHE_Pos (14U)
  16610. #define SDMMC_STA_TXFIFOHE_Msk (0x1UL << SDMMC_STA_TXFIFOHE_Pos) /*!< 0x00004000 */
  16611. #define SDMMC_STA_TXFIFOHE SDMMC_STA_TXFIFOHE_Msk /*!<Transmit FIFO Half Empty: at least 8 words can be written into the FIFO */
  16612. #define SDMMC_STA_RXFIFOHF_Pos (15U)
  16613. #define SDMMC_STA_RXFIFOHF_Msk (0x1UL << SDMMC_STA_RXFIFOHF_Pos) /*!< 0x00008000 */
  16614. #define SDMMC_STA_RXFIFOHF SDMMC_STA_RXFIFOHF_Msk /*!<Receive FIFO Half Full: there are at least 8 words in the FIFO */
  16615. #define SDMMC_STA_TXFIFOF_Pos (16U)
  16616. #define SDMMC_STA_TXFIFOF_Msk (0x1UL << SDMMC_STA_TXFIFOF_Pos) /*!< 0x00010000 */
  16617. #define SDMMC_STA_TXFIFOF SDMMC_STA_TXFIFOF_Msk /*!<Transmit FIFO full */
  16618. #define SDMMC_STA_RXFIFOF_Pos (17U)
  16619. #define SDMMC_STA_RXFIFOF_Msk (0x1UL << SDMMC_STA_RXFIFOF_Pos) /*!< 0x00020000 */
  16620. #define SDMMC_STA_RXFIFOF SDMMC_STA_RXFIFOF_Msk /*!<Receive FIFO full */
  16621. #define SDMMC_STA_TXFIFOE_Pos (18U)
  16622. #define SDMMC_STA_TXFIFOE_Msk (0x1UL << SDMMC_STA_TXFIFOE_Pos) /*!< 0x00040000 */
  16623. #define SDMMC_STA_TXFIFOE SDMMC_STA_TXFIFOE_Msk /*!<Transmit FIFO empty */
  16624. #define SDMMC_STA_RXFIFOE_Pos (19U)
  16625. #define SDMMC_STA_RXFIFOE_Msk (0x1UL << SDMMC_STA_RXFIFOE_Pos) /*!< 0x00080000 */
  16626. #define SDMMC_STA_RXFIFOE SDMMC_STA_RXFIFOE_Msk /*!<Receive FIFO empty */
  16627. #define SDMMC_STA_BUSYD0_Pos (20U)
  16628. #define SDMMC_STA_BUSYD0_Msk (0x1UL << SDMMC_STA_BUSYD0_Pos) /*!< 0x00100000 */
  16629. #define SDMMC_STA_BUSYD0 SDMMC_STA_BUSYD0_Msk /*!<Inverted value of SDMMC_D0 line (Busy) */
  16630. #define SDMMC_STA_BUSYD0END_Pos (21U)
  16631. #define SDMMC_STA_BUSYD0END_Msk (0x1UL << SDMMC_STA_BUSYD0END_Pos) /*!< 0x00200000 */
  16632. #define SDMMC_STA_BUSYD0END SDMMC_STA_BUSYD0END_Msk /*!<End of SDMMC_D0 Busy following a CMD response detected */
  16633. #define SDMMC_STA_SDIOIT_Pos (22U)
  16634. #define SDMMC_STA_SDIOIT_Msk (0x1UL << SDMMC_STA_SDIOIT_Pos) /*!< 0x00400000 */
  16635. #define SDMMC_STA_SDIOIT SDMMC_STA_SDIOIT_Msk /*!<SDIO interrupt received */
  16636. #define SDMMC_STA_ACKFAIL_Pos (23U)
  16637. #define SDMMC_STA_ACKFAIL_Msk (0x1UL << SDMMC_STA_ACKFAIL_Pos) /*!< 0x00800000 */
  16638. #define SDMMC_STA_ACKFAIL SDMMC_STA_ACKFAIL_Msk /*!<Boot Acknowledgment received (BootAck check fail) */
  16639. #define SDMMC_STA_ACKTIMEOUT_Pos (24U)
  16640. #define SDMMC_STA_ACKTIMEOUT_Msk (0x1UL << SDMMC_STA_ACKTIMEOUT_Pos) /*!< 0x01000000 */
  16641. #define SDMMC_STA_ACKTIMEOUT SDMMC_STA_ACKTIMEOUT_Msk /*!<Boot Acknowledgment timeout */
  16642. #define SDMMC_STA_VSWEND_Pos (25U)
  16643. #define SDMMC_STA_VSWEND_Msk (0x1UL << SDMMC_STA_VSWEND_Pos) /*!< 0x02000000 */
  16644. #define SDMMC_STA_VSWEND SDMMC_STA_VSWEND_Msk /*!<Voltage switch critical timing section completion */
  16645. #define SDMMC_STA_CKSTOP_Pos (26U)
  16646. #define SDMMC_STA_CKSTOP_Msk (0x1UL << SDMMC_STA_CKSTOP_Pos) /*!< 0x04000000 */
  16647. #define SDMMC_STA_CKSTOP SDMMC_STA_CKSTOP_Msk /*!<SDMMC_CK stopped in Voltage switch procedure */
  16648. #define SDMMC_STA_IDMATE_Pos (27U)
  16649. #define SDMMC_STA_IDMATE_Msk (0x1UL << SDMMC_STA_IDMATE_Pos) /*!< 0x08000000 */
  16650. #define SDMMC_STA_IDMATE SDMMC_STA_IDMATE_Msk /*!<IDMA transfer error */
  16651. #define SDMMC_STA_IDMABTC_Pos (28U)
  16652. #define SDMMC_STA_IDMABTC_Msk (0x1UL << SDMMC_STA_IDMABTC_Pos) /*!< 0x10000000 */
  16653. #define SDMMC_STA_IDMABTC SDMMC_STA_IDMABTC_Msk /*!<IDMA buffer transfer complete */
  16654. /******************* Bit definition for SDMMC_ICR register *******************/
  16655. #define SDMMC_ICR_CCRCFAILC_Pos (0U)
  16656. #define SDMMC_ICR_CCRCFAILC_Msk (0x1UL << SDMMC_ICR_CCRCFAILC_Pos) /*!< 0x00000001 */
  16657. #define SDMMC_ICR_CCRCFAILC SDMMC_ICR_CCRCFAILC_Msk /*!<CCRCFAIL flag clear bit */
  16658. #define SDMMC_ICR_DCRCFAILC_Pos (1U)
  16659. #define SDMMC_ICR_DCRCFAILC_Msk (0x1UL << SDMMC_ICR_DCRCFAILC_Pos) /*!< 0x00000002 */
  16660. #define SDMMC_ICR_DCRCFAILC SDMMC_ICR_DCRCFAILC_Msk /*!<DCRCFAIL flag clear bit */
  16661. #define SDMMC_ICR_CTIMEOUTC_Pos (2U)
  16662. #define SDMMC_ICR_CTIMEOUTC_Msk (0x1UL << SDMMC_ICR_CTIMEOUTC_Pos) /*!< 0x00000004 */
  16663. #define SDMMC_ICR_CTIMEOUTC SDMMC_ICR_CTIMEOUTC_Msk /*!<CTIMEOUT flag clear bit */
  16664. #define SDMMC_ICR_DTIMEOUTC_Pos (3U)
  16665. #define SDMMC_ICR_DTIMEOUTC_Msk (0x1UL << SDMMC_ICR_DTIMEOUTC_Pos) /*!< 0x00000008 */
  16666. #define SDMMC_ICR_DTIMEOUTC SDMMC_ICR_DTIMEOUTC_Msk /*!<DTIMEOUT flag clear bit */
  16667. #define SDMMC_ICR_TXUNDERRC_Pos (4U)
  16668. #define SDMMC_ICR_TXUNDERRC_Msk (0x1UL << SDMMC_ICR_TXUNDERRC_Pos) /*!< 0x00000010 */
  16669. #define SDMMC_ICR_TXUNDERRC SDMMC_ICR_TXUNDERRC_Msk /*!<TXUNDERR flag clear bit */
  16670. #define SDMMC_ICR_RXOVERRC_Pos (5U)
  16671. #define SDMMC_ICR_RXOVERRC_Msk (0x1UL << SDMMC_ICR_RXOVERRC_Pos) /*!< 0x00000020 */
  16672. #define SDMMC_ICR_RXOVERRC SDMMC_ICR_RXOVERRC_Msk /*!<RXOVERR flag clear bit */
  16673. #define SDMMC_ICR_CMDRENDC_Pos (6U)
  16674. #define SDMMC_ICR_CMDRENDC_Msk (0x1UL << SDMMC_ICR_CMDRENDC_Pos) /*!< 0x00000040 */
  16675. #define SDMMC_ICR_CMDRENDC SDMMC_ICR_CMDRENDC_Msk /*!<CMDREND flag clear bit */
  16676. #define SDMMC_ICR_CMDSENTC_Pos (7U)
  16677. #define SDMMC_ICR_CMDSENTC_Msk (0x1UL << SDMMC_ICR_CMDSENTC_Pos) /*!< 0x00000080 */
  16678. #define SDMMC_ICR_CMDSENTC SDMMC_ICR_CMDSENTC_Msk /*!<CMDSENT flag clear bit */
  16679. #define SDMMC_ICR_DATAENDC_Pos (8U)
  16680. #define SDMMC_ICR_DATAENDC_Msk (0x1UL << SDMMC_ICR_DATAENDC_Pos) /*!< 0x00000100 */
  16681. #define SDMMC_ICR_DATAENDC SDMMC_ICR_DATAENDC_Msk /*!<DATAEND flag clear bit */
  16682. #define SDMMC_ICR_DHOLDC_Pos (9U)
  16683. #define SDMMC_ICR_DHOLDC_Msk (0x1UL << SDMMC_ICR_DHOLDC_Pos) /*!< 0x00000200 */
  16684. #define SDMMC_ICR_DHOLDC SDMMC_ICR_DHOLDC_Msk /*!<DHOLD flag clear bit */
  16685. #define SDMMC_ICR_DBCKENDC_Pos (10U)
  16686. #define SDMMC_ICR_DBCKENDC_Msk (0x1UL << SDMMC_ICR_DBCKENDC_Pos) /*!< 0x00000400 */
  16687. #define SDMMC_ICR_DBCKENDC SDMMC_ICR_DBCKENDC_Msk /*!<DBCKEND flag clear bit */
  16688. #define SDMMC_ICR_DABORTC_Pos (11U)
  16689. #define SDMMC_ICR_DABORTC_Msk (0x1UL << SDMMC_ICR_DABORTC_Pos) /*!< 0x00000800 */
  16690. #define SDMMC_ICR_DABORTC SDMMC_ICR_DABORTC_Msk /*!<DABORTC flag clear bit */
  16691. #define SDMMC_ICR_BUSYD0ENDC_Pos (21U)
  16692. #define SDMMC_ICR_BUSYD0ENDC_Msk (0x1UL << SDMMC_ICR_BUSYD0ENDC_Pos) /*!< 0x00200000 */
  16693. #define SDMMC_ICR_BUSYD0ENDC SDMMC_ICR_BUSYD0ENDC_Msk /*!<BUSYD0ENDC flag clear bit */
  16694. #define SDMMC_ICR_SDIOITC_Pos (22U)
  16695. #define SDMMC_ICR_SDIOITC_Msk (0x1UL << SDMMC_ICR_SDIOITC_Pos) /*!< 0x00400000 */
  16696. #define SDMMC_ICR_SDIOITC SDMMC_ICR_SDIOITC_Msk /*!<SDIOIT flag clear bit */
  16697. #define SDMMC_ICR_ACKFAILC_Pos (23U)
  16698. #define SDMMC_ICR_ACKFAILC_Msk (0x1UL << SDMMC_ICR_ACKFAILC_Pos) /*!< 0x00800000 */
  16699. #define SDMMC_ICR_ACKFAILC SDMMC_ICR_ACKFAILC_Msk /*!<ACKFAILC flag clear bit */
  16700. #define SDMMC_ICR_ACKTIMEOUTC_Pos (24U)
  16701. #define SDMMC_ICR_ACKTIMEOUTC_Msk (0x1UL << SDMMC_ICR_ACKTIMEOUTC_Pos) /*!< 0x01000000 */
  16702. #define SDMMC_ICR_ACKTIMEOUTC SDMMC_ICR_ACKTIMEOUTC_Msk /*!<ACKTIMEOUTC flag clear bit */
  16703. #define SDMMC_ICR_VSWENDC_Pos (25U)
  16704. #define SDMMC_ICR_VSWENDC_Msk (0x1UL << SDMMC_ICR_VSWENDC_Pos) /*!< 0x02000000 */
  16705. #define SDMMC_ICR_VSWENDC SDMMC_ICR_VSWENDC_Msk /*!<VSWENDC flag clear bit */
  16706. #define SDMMC_ICR_CKSTOPC_Pos (26U)
  16707. #define SDMMC_ICR_CKSTOPC_Msk (0x1UL << SDMMC_ICR_CKSTOPC_Pos) /*!< 0x04000000 */
  16708. #define SDMMC_ICR_CKSTOPC SDMMC_ICR_CKSTOPC_Msk /*!<CKSTOPC flag clear bit */
  16709. #define SDMMC_ICR_IDMATEC_Pos (27U)
  16710. #define SDMMC_ICR_IDMATEC_Msk (0x1UL << SDMMC_ICR_IDMATEC_Pos) /*!< 0x08000000 */
  16711. #define SDMMC_ICR_IDMATEC SDMMC_ICR_IDMATEC_Msk /*!<IDMATEC flag clear bit */
  16712. #define SDMMC_ICR_IDMABTCC_Pos (28U)
  16713. #define SDMMC_ICR_IDMABTCC_Msk (0x1UL << SDMMC_ICR_IDMABTCC_Pos) /*!< 0x10000000 */
  16714. #define SDMMC_ICR_IDMABTCC SDMMC_ICR_IDMABTCC_Msk /*!<IDMABTCC flag clear bit */
  16715. /****************** Bit definition for SDMMC_MASK register *******************/
  16716. #define SDMMC_MASK_CCRCFAILIE_Pos (0U)
  16717. #define SDMMC_MASK_CCRCFAILIE_Msk (0x1UL << SDMMC_MASK_CCRCFAILIE_Pos) /*!< 0x00000001 */
  16718. #define SDMMC_MASK_CCRCFAILIE SDMMC_MASK_CCRCFAILIE_Msk /*!<Command CRC Fail Interrupt Enable */
  16719. #define SDMMC_MASK_DCRCFAILIE_Pos (1U)
  16720. #define SDMMC_MASK_DCRCFAILIE_Msk (0x1UL << SDMMC_MASK_DCRCFAILIE_Pos) /*!< 0x00000002 */
  16721. #define SDMMC_MASK_DCRCFAILIE SDMMC_MASK_DCRCFAILIE_Msk /*!<Data CRC Fail Interrupt Enable */
  16722. #define SDMMC_MASK_CTIMEOUTIE_Pos (2U)
  16723. #define SDMMC_MASK_CTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_CTIMEOUTIE_Pos) /*!< 0x00000004 */
  16724. #define SDMMC_MASK_CTIMEOUTIE SDMMC_MASK_CTIMEOUTIE_Msk /*!<Command TimeOut Interrupt Enable */
  16725. #define SDMMC_MASK_DTIMEOUTIE_Pos (3U)
  16726. #define SDMMC_MASK_DTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_DTIMEOUTIE_Pos) /*!< 0x00000008 */
  16727. #define SDMMC_MASK_DTIMEOUTIE SDMMC_MASK_DTIMEOUTIE_Msk /*!<Data TimeOut Interrupt Enable */
  16728. #define SDMMC_MASK_TXUNDERRIE_Pos (4U)
  16729. #define SDMMC_MASK_TXUNDERRIE_Msk (0x1UL << SDMMC_MASK_TXUNDERRIE_Pos) /*!< 0x00000010 */
  16730. #define SDMMC_MASK_TXUNDERRIE SDMMC_MASK_TXUNDERRIE_Msk /*!<Tx FIFO UnderRun Error Interrupt Enable */
  16731. #define SDMMC_MASK_RXOVERRIE_Pos (5U)
  16732. #define SDMMC_MASK_RXOVERRIE_Msk (0x1UL << SDMMC_MASK_RXOVERRIE_Pos) /*!< 0x00000020 */
  16733. #define SDMMC_MASK_RXOVERRIE SDMMC_MASK_RXOVERRIE_Msk /*!<Rx FIFO OverRun Error Interrupt Enable */
  16734. #define SDMMC_MASK_CMDRENDIE_Pos (6U)
  16735. #define SDMMC_MASK_CMDRENDIE_Msk (0x1UL << SDMMC_MASK_CMDRENDIE_Pos) /*!< 0x00000040 */
  16736. #define SDMMC_MASK_CMDRENDIE SDMMC_MASK_CMDRENDIE_Msk /*!<Command Response Received Interrupt Enable */
  16737. #define SDMMC_MASK_CMDSENTIE_Pos (7U)
  16738. #define SDMMC_MASK_CMDSENTIE_Msk (0x1UL << SDMMC_MASK_CMDSENTIE_Pos) /*!< 0x00000080 */
  16739. #define SDMMC_MASK_CMDSENTIE SDMMC_MASK_CMDSENTIE_Msk /*!<Command Sent Interrupt Enable */
  16740. #define SDMMC_MASK_DATAENDIE_Pos (8U)
  16741. #define SDMMC_MASK_DATAENDIE_Msk (0x1UL << SDMMC_MASK_DATAENDIE_Pos) /*!< 0x00000100 */
  16742. #define SDMMC_MASK_DATAENDIE SDMMC_MASK_DATAENDIE_Msk /*!<Data End Interrupt Enable */
  16743. #define SDMMC_MASK_DHOLDIE_Pos (9U)
  16744. #define SDMMC_MASK_DHOLDIE_Msk (0x1UL << SDMMC_MASK_DHOLDIE_Pos) /*!< 0x00000200 */
  16745. #define SDMMC_MASK_DHOLDIE SDMMC_MASK_DHOLDIE_Msk /*!<Data Hold Interrupt Enable */
  16746. #define SDMMC_MASK_DBCKENDIE_Pos (10U)
  16747. #define SDMMC_MASK_DBCKENDIE_Msk (0x1UL << SDMMC_MASK_DBCKENDIE_Pos) /*!< 0x00000400 */
  16748. #define SDMMC_MASK_DBCKENDIE SDMMC_MASK_DBCKENDIE_Msk /*!<Data Block End Interrupt Enable */
  16749. #define SDMMC_MASK_DABORTIE_Pos (11U)
  16750. #define SDMMC_MASK_DABORTIE_Msk (0x1UL << SDMMC_MASK_DABORTIE_Pos) /*!< 0x00000800 */
  16751. #define SDMMC_MASK_DABORTIE SDMMC_MASK_DABORTIE_Msk /*!<Data transfer aborted interrupt enable */
  16752. #define SDMMC_MASK_TXFIFOHEIE_Pos (14U)
  16753. #define SDMMC_MASK_TXFIFOHEIE_Msk (0x1UL << SDMMC_MASK_TXFIFOHEIE_Pos) /*!< 0x00004000 */
  16754. #define SDMMC_MASK_TXFIFOHEIE SDMMC_MASK_TXFIFOHEIE_Msk /*!<Tx FIFO Half Empty interrupt Enable */
  16755. #define SDMMC_MASK_RXFIFOHFIE_Pos (15U)
  16756. #define SDMMC_MASK_RXFIFOHFIE_Msk (0x1UL << SDMMC_MASK_RXFIFOHFIE_Pos) /*!< 0x00008000 */
  16757. #define SDMMC_MASK_RXFIFOHFIE SDMMC_MASK_RXFIFOHFIE_Msk /*!<Rx FIFO Half Full interrupt Enable */
  16758. #define SDMMC_MASK_RXFIFOFIE_Pos (17U)
  16759. #define SDMMC_MASK_RXFIFOFIE_Msk (0x1UL << SDMMC_MASK_RXFIFOFIE_Pos) /*!< 0x00020000 */
  16760. #define SDMMC_MASK_RXFIFOFIE SDMMC_MASK_RXFIFOFIE_Msk /*!<Rx FIFO Full interrupt Enable */
  16761. #define SDMMC_MASK_TXFIFOEIE_Pos (18U)
  16762. #define SDMMC_MASK_TXFIFOEIE_Msk (0x1UL << SDMMC_MASK_TXFIFOEIE_Pos) /*!< 0x00040000 */
  16763. #define SDMMC_MASK_TXFIFOEIE SDMMC_MASK_TXFIFOEIE_Msk /*!<Tx FIFO Empty interrupt Enable */
  16764. #define SDMMC_MASK_BUSYD0ENDIE_Pos (21U)
  16765. #define SDMMC_MASK_BUSYD0ENDIE_Msk (0x1UL << SDMMC_MASK_BUSYD0ENDIE_Pos) /*!< 0x00200000 */
  16766. #define SDMMC_MASK_BUSYD0ENDIE SDMMC_MASK_BUSYD0ENDIE_Msk /*!<BUSYD0ENDIE interrupt Enable */
  16767. #define SDMMC_MASK_SDIOITIE_Pos (22U)
  16768. #define SDMMC_MASK_SDIOITIE_Msk (0x1UL << SDMMC_MASK_SDIOITIE_Pos) /*!< 0x00400000 */
  16769. #define SDMMC_MASK_SDIOITIE SDMMC_MASK_SDIOITIE_Msk /*!<SDMMC Mode Interrupt Received interrupt Enable */
  16770. #define SDMMC_MASK_ACKFAILIE_Pos (23U)
  16771. #define SDMMC_MASK_ACKFAILIE_Msk (0x1UL << SDMMC_MASK_ACKFAILIE_Pos) /*!< 0x00800000 */
  16772. #define SDMMC_MASK_ACKFAILIE SDMMC_MASK_ACKFAILIE_Msk /*!<Acknowledgment Fail Interrupt Enable */
  16773. #define SDMMC_MASK_ACKTIMEOUTIE_Pos (24U)
  16774. #define SDMMC_MASK_ACKTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_ACKTIMEOUTIE_Pos) /*!< 0x01000000 */
  16775. #define SDMMC_MASK_ACKTIMEOUTIE SDMMC_MASK_ACKTIMEOUTIE_Msk /*!<Acknowledgment timeout Interrupt Enable */
  16776. #define SDMMC_MASK_VSWENDIE_Pos (25U)
  16777. #define SDMMC_MASK_VSWENDIE_Msk (0x1UL << SDMMC_MASK_VSWENDIE_Pos) /*!< 0x02000000 */
  16778. #define SDMMC_MASK_VSWENDIE SDMMC_MASK_VSWENDIE_Msk /*!<Voltage switch critical timing section completion Interrupt Enable */
  16779. #define SDMMC_MASK_CKSTOPIE_Pos (26U)
  16780. #define SDMMC_MASK_CKSTOPIE_Msk (0x1UL << SDMMC_MASK_CKSTOPIE_Pos) /*!< 0x04000000 */
  16781. #define SDMMC_MASK_CKSTOPIE SDMMC_MASK_CKSTOPIE_Msk /*!<Voltage Switch clock stopped Interrupt Enable */
  16782. #define SDMMC_MASK_IDMABTCIE_Pos (28U)
  16783. #define SDMMC_MASK_IDMABTCIE_Msk (0x1UL << SDMMC_MASK_IDMABTCIE_Pos) /*!< 0x10000000 */
  16784. #define SDMMC_MASK_IDMABTCIE SDMMC_MASK_IDMABTCIE_Msk /*!<IDMA buffer transfer complete Interrupt Enable */
  16785. /***************** Bit definition for SDMMC_ACKTIME register *****************/
  16786. #define SDMMC_ACKTIME_ACKTIME_Pos (0U)
  16787. #define SDMMC_ACKTIME_ACKTIME_Msk (0x1FFFFFFUL << SDMMC_ACKTIME_ACKTIME_Pos) /*!< 0x01FFFFFF */
  16788. #define SDMMC_ACKTIME_ACKTIME SDMMC_ACKTIME_ACKTIME_Msk /*!<Boot acknowledgment timeout period */
  16789. /****************** Bit definition for SDMMC_FIFO register *******************/
  16790. #define SDMMC_FIFO_FIFODATA_Pos (0U)
  16791. #define SDMMC_FIFO_FIFODATA_Msk (0xFFFFFFFFUL << SDMMC_FIFO_FIFODATA_Pos) /*!< 0xFFFFFFFF */
  16792. #define SDMMC_FIFO_FIFODATA SDMMC_FIFO_FIFODATA_Msk /*!<Receive and transmit FIFO data */
  16793. /****************** Bit definition for SDMMC_IDMACTRL register ****************/
  16794. #define SDMMC_IDMA_IDMAEN_Pos (0U)
  16795. #define SDMMC_IDMA_IDMAEN_Msk (0x1UL << SDMMC_IDMA_IDMAEN_Pos) /*!< 0x00000001 */
  16796. #define SDMMC_IDMA_IDMAEN SDMMC_IDMA_IDMAEN_Msk /*!< Enable the internal DMA of the SDMMC peripheral */
  16797. #define SDMMC_IDMA_IDMABMODE_Pos (1U)
  16798. #define SDMMC_IDMA_IDMABMODE_Msk (0x1UL << SDMMC_IDMA_IDMABMODE_Pos) /*!< 0x00000002 */
  16799. #define SDMMC_IDMA_IDMABMODE SDMMC_IDMA_IDMABMODE_Msk /*!< Enable double buffer mode for IDMA */
  16800. #define SDMMC_IDMA_IDMABACT_Pos (2U)
  16801. #define SDMMC_IDMA_IDMABACT_Msk (0x1UL << SDMMC_IDMA_IDMABACT_Pos) /*!< 0x00000004 */
  16802. #define SDMMC_IDMA_IDMABACT SDMMC_IDMA_IDMABACT_Msk /*!< Uses buffer 1 when double buffer mode is selected */
  16803. /***************** Bit definition for SDMMC_IDMABSIZE register ***************/
  16804. #define SDMMC_IDMABSIZE_IDMABNDT_Pos (5U)
  16805. #define SDMMC_IDMABSIZE_IDMABNDT_Msk (0xFFUL << SDMMC_IDMABSIZE_IDMABNDT_Pos) /*!< 0x00001FE0 */
  16806. #define SDMMC_IDMABSIZE_IDMABNDT SDMMC_IDMABSIZE_IDMABNDT_Msk /*!< Number of transfers per buffer */
  16807. /***************** Bit definition for SDMMC_IDMABASE0 register ***************/
  16808. #define SDMMC_IDMABASE0_IDMABASE0 ((uint32_t)0xFFFFFFFF) /*!< Buffer 0 memory base address */
  16809. /***************** Bit definition for SDMMC_IDMABASE1 register ***************/
  16810. #define SDMMC_IDMABASE1_IDMABASE1 ((uint32_t)0xFFFFFFFF) /*!< Buffer 1 memory base address */
  16811. /******************************************************************************/
  16812. /* */
  16813. /* Delay Block Interface (DLYB) */
  16814. /* */
  16815. /******************************************************************************/
  16816. /******************* Bit definition for DLYB_CR register ********************/
  16817. #define DLYB_CR_DEN_Pos (0U)
  16818. #define DLYB_CR_DEN_Msk (0x1UL << DLYB_CR_DEN_Pos) /*!< 0x00000001 */
  16819. #define DLYB_CR_DEN DLYB_CR_DEN_Msk /*!<Delay Block enable */
  16820. #define DLYB_CR_SEN_Pos (1U)
  16821. #define DLYB_CR_SEN_Msk (0x1UL << DLYB_CR_SEN_Pos) /*!< 0x00000002 */
  16822. #define DLYB_CR_SEN DLYB_CR_SEN_Msk /*!<Sampler length enable */
  16823. /******************* Bit definition for DLYB_CFGR register ********************/
  16824. #define DLYB_CFGR_SEL_Pos (0U)
  16825. #define DLYB_CFGR_SEL_Msk (0xFUL << DLYB_CFGR_SEL_Pos) /*!< 0x0000000F */
  16826. #define DLYB_CFGR_SEL DLYB_CFGR_SEL_Msk /*!<Select the phase for the Output clock[3:0] */
  16827. #define DLYB_CFGR_SEL_0 (0x1UL << DLYB_CFGR_SEL_Pos) /*!< 0x00000001 */
  16828. #define DLYB_CFGR_SEL_1 (0x2UL << DLYB_CFGR_SEL_Pos) /*!< 0x00000002 */
  16829. #define DLYB_CFGR_SEL_2 (0x3UL << DLYB_CFGR_SEL_Pos) /*!< 0x00000003 */
  16830. #define DLYB_CFGR_SEL_3 (0x8UL << DLYB_CFGR_SEL_Pos) /*!< 0x00000008 */
  16831. #define DLYB_CFGR_UNIT_Pos (8U)
  16832. #define DLYB_CFGR_UNIT_Msk (0x7FUL << DLYB_CFGR_UNIT_Pos) /*!< 0x00007F00 */
  16833. #define DLYB_CFGR_UNIT DLYB_CFGR_UNIT_Msk /*!<Delay Defines the delay of a Unit delay cell[6:0] */
  16834. #define DLYB_CFGR_UNIT_0 (0x01UL << DLYB_CFGR_UNIT_Pos) /*!< 0x00000100 */
  16835. #define DLYB_CFGR_UNIT_1 (0x02UL << DLYB_CFGR_UNIT_Pos) /*!< 0x00000200 */
  16836. #define DLYB_CFGR_UNIT_2 (0x04UL << DLYB_CFGR_UNIT_Pos) /*!< 0x00000400 */
  16837. #define DLYB_CFGR_UNIT_3 (0x08UL << DLYB_CFGR_UNIT_Pos) /*!< 0x00000800 */
  16838. #define DLYB_CFGR_UNIT_4 (0x10UL << DLYB_CFGR_UNIT_Pos) /*!< 0x00001000 */
  16839. #define DLYB_CFGR_UNIT_5 (0x20UL << DLYB_CFGR_UNIT_Pos) /*!< 0x00002000 */
  16840. #define DLYB_CFGR_UNIT_6 (0x40UL << DLYB_CFGR_UNIT_Pos) /*!< 0x00004000 */
  16841. #define DLYB_CFGR_LNG_Pos (16U)
  16842. #define DLYB_CFGR_LNG_Msk (0xFFFUL << DLYB_CFGR_LNG_Pos) /*!< 0x0FFF0000 */
  16843. #define DLYB_CFGR_LNG DLYB_CFGR_LNG_Msk /*!<Delay line length value[11:0] */
  16844. #define DLYB_CFGR_LNG_0 (0x001UL << DLYB_CFGR_LNG_Pos) /*!< 0x00010000 */
  16845. #define DLYB_CFGR_LNG_1 (0x002UL << DLYB_CFGR_LNG_Pos) /*!< 0x00020000 */
  16846. #define DLYB_CFGR_LNG_2 (0x004UL << DLYB_CFGR_LNG_Pos) /*!< 0x00040000 */
  16847. #define DLYB_CFGR_LNG_3 (0x008UL << DLYB_CFGR_LNG_Pos) /*!< 0x00080000 */
  16848. #define DLYB_CFGR_LNG_4 (0x010UL << DLYB_CFGR_LNG_Pos) /*!< 0x00100000 */
  16849. #define DLYB_CFGR_LNG_5 (0x020UL << DLYB_CFGR_LNG_Pos) /*!< 0x00200000 */
  16850. #define DLYB_CFGR_LNG_6 (0x040UL << DLYB_CFGR_LNG_Pos) /*!< 0x00400000 */
  16851. #define DLYB_CFGR_LNG_7 (0x080UL << DLYB_CFGR_LNG_Pos) /*!< 0x00800000 */
  16852. #define DLYB_CFGR_LNG_8 (0x100UL << DLYB_CFGR_LNG_Pos) /*!< 0x01000000 */
  16853. #define DLYB_CFGR_LNG_9 (0x200UL << DLYB_CFGR_LNG_Pos) /*!< 0x02000000 */
  16854. #define DLYB_CFGR_LNG_10 (0x400UL << DLYB_CFGR_LNG_Pos) /*!< 0x04000000 */
  16855. #define DLYB_CFGR_LNG_11 (0x800UL << DLYB_CFGR_LNG_Pos) /*!< 0x08000000 */
  16856. #define DLYB_CFGR_LNGF_Pos (31U)
  16857. #define DLYB_CFGR_LNGF_Msk (0x1UL << DLYB_CFGR_LNGF_Pos) /*!< 0x80000000 */
  16858. #define DLYB_CFGR_LNGF DLYB_CFGR_LNGF_Msk /*!<Length valid flag */
  16859. /******************************************************************************/
  16860. /* */
  16861. /* Serial Peripheral Interface (SPI/I2S) */
  16862. /* */
  16863. /******************************************************************************/
  16864. /******************* Bit definition for SPI_CR1 register ********************/
  16865. #define SPI_CR1_SPE_Pos (0U)
  16866. #define SPI_CR1_SPE_Msk (0x1UL << SPI_CR1_SPE_Pos) /*!< 0x00000001 */
  16867. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!<Serial Peripheral Enable */
  16868. #define SPI_CR1_MASRX_Pos (8U)
  16869. #define SPI_CR1_MASRX_Msk (0x1UL << SPI_CR1_MASRX_Pos) /*!< 0x00000100 */
  16870. #define SPI_CR1_MASRX SPI_CR1_MASRX_Msk /*!<Master automatic SUSP in Receive mode */
  16871. #define SPI_CR1_CSTART_Pos (9U)
  16872. #define SPI_CR1_CSTART_Msk (0x1UL << SPI_CR1_CSTART_Pos) /*!< 0x00000200 */
  16873. #define SPI_CR1_CSTART SPI_CR1_CSTART_Msk /*!<Master transfer start */
  16874. #define SPI_CR1_CSUSP_Pos (10U)
  16875. #define SPI_CR1_CSUSP_Msk (0x1UL << SPI_CR1_CSUSP_Pos) /*!< 0x00000400 */
  16876. #define SPI_CR1_CSUSP SPI_CR1_CSUSP_Msk /*!<Master SUSPend request */
  16877. #define SPI_CR1_HDDIR_Pos (11U)
  16878. #define SPI_CR1_HDDIR_Msk (0x1UL << SPI_CR1_HDDIR_Pos) /*!< 0x00000800 */
  16879. #define SPI_CR1_HDDIR SPI_CR1_HDDIR_Msk /*!<Rx/Tx direction at Half-duplex mode */
  16880. #define SPI_CR1_SSI_Pos (12U)
  16881. #define SPI_CR1_SSI_Msk (0x1UL << SPI_CR1_SSI_Pos) /*!< 0x00001000 */
  16882. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!<Internal SS signal input level */
  16883. #define SPI_CR1_CRC33_17_Pos (13U)
  16884. #define SPI_CR1_CRC33_17_Msk (0x1UL << SPI_CR1_CRC33_17_Pos) /*!< 0x00002000 */
  16885. #define SPI_CR1_CRC33_17 SPI_CR1_CRC33_17_Msk /*!<32-bit CRC polynomial configuration */
  16886. #define SPI_CR1_RCRCINI_Pos (14U)
  16887. #define SPI_CR1_RCRCINI_Msk (0x1UL << SPI_CR1_RCRCINI_Pos) /*!< 0x00004000 */
  16888. #define SPI_CR1_RCRCINI SPI_CR1_RCRCINI_Msk /*!<CRC init pattern control for receiver */
  16889. #define SPI_CR1_TCRCINI_Pos (15U)
  16890. #define SPI_CR1_TCRCINI_Msk (0x1UL << SPI_CR1_TCRCINI_Pos) /*!< 0x00008000 */
  16891. #define SPI_CR1_TCRCINI SPI_CR1_TCRCINI_Msk /*!<CRC init pattern control for transmitter */
  16892. #define SPI_CR1_IOLOCK_Pos (16U)
  16893. #define SPI_CR1_IOLOCK_Msk (0x1UL << SPI_CR1_IOLOCK_Pos) /*!< 0x00010000 */
  16894. #define SPI_CR1_IOLOCK SPI_CR1_IOLOCK_Msk /*!<Locking the AF configuration of associated IOs */
  16895. /******************* Bit definition for SPI_CR2 register ********************/
  16896. #define SPI_CR2_TSER_Pos (16U)
  16897. #define SPI_CR2_TSER_Msk (0xFFFFUL << SPI_CR2_TSER_Pos) /*!< 0xFFFF0000 */
  16898. #define SPI_CR2_TSER SPI_CR2_TSER_Msk /*!<Number of data transfer extension */
  16899. #define SPI_CR2_TSIZE_Pos (0U)
  16900. #define SPI_CR2_TSIZE_Msk (0xFFFFUL << SPI_CR2_TSIZE_Pos) /*!< 0x0000FFFF */
  16901. #define SPI_CR2_TSIZE SPI_CR2_TSIZE_Msk /*!<Number of data at current transfer */
  16902. /******************* Bit definition for SPI_CFG1 register ********************/
  16903. #define SPI_CFG1_DSIZE_Pos (0U)
  16904. #define SPI_CFG1_DSIZE_Msk (0x1FUL << SPI_CFG1_DSIZE_Pos) /*!< 0x0000001F */
  16905. #define SPI_CFG1_DSIZE SPI_CFG1_DSIZE_Msk /*!<DSIZE[4:0]: Bits number in single SPI data frame */
  16906. #define SPI_CFG1_DSIZE_0 (0x01UL << SPI_CFG1_DSIZE_Pos) /*!< 0x00000001 */
  16907. #define SPI_CFG1_DSIZE_1 (0x02UL << SPI_CFG1_DSIZE_Pos) /*!< 0x00000002 */
  16908. #define SPI_CFG1_DSIZE_2 (0x04UL << SPI_CFG1_DSIZE_Pos) /*!< 0x00000004 */
  16909. #define SPI_CFG1_DSIZE_3 (0x08UL << SPI_CFG1_DSIZE_Pos) /*!< 0x00000008 */
  16910. #define SPI_CFG1_DSIZE_4 (0x10UL << SPI_CFG1_DSIZE_Pos) /*!< 0x00000010 */
  16911. #define SPI_CFG1_FTHLV_Pos (5U)
  16912. #define SPI_CFG1_FTHLV_Msk (0xFUL << SPI_CFG1_FTHLV_Pos) /*!< 0x000001E0 */
  16913. #define SPI_CFG1_FTHLV SPI_CFG1_FTHLV_Msk /*!<FTHVL [3:0]: FIFO threshold level*/
  16914. #define SPI_CFG1_FTHLV_0 (0x1UL << SPI_CFG1_FTHLV_Pos) /*!< 0x00000020 */
  16915. #define SPI_CFG1_FTHLV_1 (0x2UL << SPI_CFG1_FTHLV_Pos) /*!< 0x00000040 */
  16916. #define SPI_CFG1_FTHLV_2 (0x4UL << SPI_CFG1_FTHLV_Pos) /*!< 0x00000080 */
  16917. #define SPI_CFG1_FTHLV_3 (0x8UL << SPI_CFG1_FTHLV_Pos) /*!< 0x00000100 */
  16918. #define SPI_CFG1_UDRCFG_Pos (9U)
  16919. #define SPI_CFG1_UDRCFG_Msk (0x3UL << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000600 */
  16920. #define SPI_CFG1_UDRCFG SPI_CFG1_UDRCFG_Msk /*!<UDRCFG[1:0]: Behavior of transmitter at underrun */
  16921. #define SPI_CFG1_UDRCFG_0 (0x1UL << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000200 */
  16922. #define SPI_CFG1_UDRCFG_1 (0x2UL << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000400 */
  16923. #define SPI_CFG1_UDRDET_Pos (11U)
  16924. #define SPI_CFG1_UDRDET_Msk (0x3UL << SPI_CFG1_UDRDET_Pos) /*!< 0x00001800 */
  16925. #define SPI_CFG1_UDRDET SPI_CFG1_UDRDET_Msk /*!<UDRDET[1:0]: Detection of underrun condition */
  16926. #define SPI_CFG1_UDRDET_0 (0x1UL << SPI_CFG1_UDRDET_Pos) /*!< 0x00000800 */
  16927. #define SPI_CFG1_UDRDET_1 (0x2UL << SPI_CFG1_UDRDET_Pos) /*!< 0x00001000 */
  16928. #define SPI_CFG1_RXDMAEN_Pos (14U)
  16929. #define SPI_CFG1_RXDMAEN_Msk (0x1UL << SPI_CFG1_RXDMAEN_Pos) /*!< 0x00004000 */
  16930. #define SPI_CFG1_RXDMAEN SPI_CFG1_RXDMAEN_Msk /*!<Rx DMA stream enable */
  16931. #define SPI_CFG1_TXDMAEN_Pos (15U)
  16932. #define SPI_CFG1_TXDMAEN_Msk (0x1UL << SPI_CFG1_TXDMAEN_Pos) /*!< 0x00008000 */
  16933. #define SPI_CFG1_TXDMAEN SPI_CFG1_TXDMAEN_Msk /*!<Tx DMA stream enable */
  16934. #define SPI_CFG1_CRCSIZE_Pos (16U)
  16935. #define SPI_CFG1_CRCSIZE_Msk (0x1FUL << SPI_CFG1_CRCSIZE_Pos) /*!< 0x001F0000 */
  16936. #define SPI_CFG1_CRCSIZE SPI_CFG1_CRCSIZE_Msk /*!<CRCSIZE [4:0]: Length of CRC frame*/
  16937. #define SPI_CFG1_CRCSIZE_0 (0x01UL << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00010000 */
  16938. #define SPI_CFG1_CRCSIZE_1 (0x02UL << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00020000 */
  16939. #define SPI_CFG1_CRCSIZE_2 (0x04UL << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00040000 */
  16940. #define SPI_CFG1_CRCSIZE_3 (0x08UL << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00080000 */
  16941. #define SPI_CFG1_CRCSIZE_4 (0x10UL << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00100000 */
  16942. #define SPI_CFG1_CRCEN_Pos (22U)
  16943. #define SPI_CFG1_CRCEN_Msk (0x1UL << SPI_CFG1_CRCEN_Pos) /*!< 0x00400000 */
  16944. #define SPI_CFG1_CRCEN SPI_CFG1_CRCEN_Msk /*!<Hardware CRC computation enable */
  16945. #define SPI_CFG1_MBR_Pos (28U)
  16946. #define SPI_CFG1_MBR_Msk (0x7UL << SPI_CFG1_MBR_Pos) /*!< 0x70000000 */
  16947. #define SPI_CFG1_MBR SPI_CFG1_MBR_Msk /*!<Master baud rate */
  16948. #define SPI_CFG1_MBR_0 (0x1UL << SPI_CFG1_MBR_Pos) /*!< 0x10000000 */
  16949. #define SPI_CFG1_MBR_1 (0x2UL << SPI_CFG1_MBR_Pos) /*!< 0x20000000 */
  16950. #define SPI_CFG1_MBR_2 (0x4UL << SPI_CFG1_MBR_Pos) /*!< 0x40000000 */
  16951. /******************* Bit definition for SPI_CFG2 register ********************/
  16952. #define SPI_CFG2_MSSI_Pos (0U)
  16953. #define SPI_CFG2_MSSI_Msk (0xFUL << SPI_CFG2_MSSI_Pos) /*!< 0x0000000F */
  16954. #define SPI_CFG2_MSSI SPI_CFG2_MSSI_Msk /*!<Master SS Idleness */
  16955. #define SPI_CFG2_MSSI_0 (0x1UL << SPI_CFG2_MSSI_Pos) /*!< 0x00000001 */
  16956. #define SPI_CFG2_MSSI_1 (0x2UL << SPI_CFG2_MSSI_Pos) /*!< 0x00000002 */
  16957. #define SPI_CFG2_MSSI_2 (0x4UL << SPI_CFG2_MSSI_Pos) /*!< 0x00000004 */
  16958. #define SPI_CFG2_MSSI_3 (0x8UL << SPI_CFG2_MSSI_Pos) /*!< 0x00000008 */
  16959. #define SPI_CFG2_MIDI_Pos (4U)
  16960. #define SPI_CFG2_MIDI_Msk (0xFUL << SPI_CFG2_MIDI_Pos) /*!< 0x000000F0 */
  16961. #define SPI_CFG2_MIDI SPI_CFG2_MIDI_Msk /*!<Master Inter-Data Idleness */
  16962. #define SPI_CFG2_MIDI_0 (0x1UL << SPI_CFG2_MIDI_Pos) /*!< 0x00000010 */
  16963. #define SPI_CFG2_MIDI_1 (0x2UL << SPI_CFG2_MIDI_Pos) /*!< 0x00000020 */
  16964. #define SPI_CFG2_MIDI_2 (0x4UL << SPI_CFG2_MIDI_Pos) /*!< 0x00000040 */
  16965. #define SPI_CFG2_MIDI_3 (0x8UL << SPI_CFG2_MIDI_Pos) /*!< 0x00000080 */
  16966. #define SPI_CFG2_IOSWP_Pos (15U)
  16967. #define SPI_CFG2_IOSWP_Msk (0x1UL << SPI_CFG2_IOSWP_Pos) /*!< 0x00008000 */
  16968. #define SPI_CFG2_IOSWP SPI_CFG2_IOSWP_Msk /*!<Swap functionality of MISO and MOSI pins */
  16969. #define SPI_CFG2_COMM_Pos (17U)
  16970. #define SPI_CFG2_COMM_Msk (0x3UL << SPI_CFG2_COMM_Pos) /*!< 0x00060000 */
  16971. #define SPI_CFG2_COMM SPI_CFG2_COMM_Msk /*!<COMM [1:0]: SPI Communication Mode*/
  16972. #define SPI_CFG2_COMM_0 (0x1UL << SPI_CFG2_COMM_Pos) /*!< 0x00020000 */
  16973. #define SPI_CFG2_COMM_1 (0x2UL << SPI_CFG2_COMM_Pos) /*!< 0x00040000 */
  16974. #define SPI_CFG2_SP_Pos (19U)
  16975. #define SPI_CFG2_SP_Msk (0x7UL << SPI_CFG2_SP_Pos) /*!< 0x00380000 */
  16976. #define SPI_CFG2_SP SPI_CFG2_SP_Msk /*!<SP[2:0]: Serial Protocol */
  16977. #define SPI_CFG2_SP_0 (0x1UL << SPI_CFG2_SP_Pos) /*!< 0x00080000 */
  16978. #define SPI_CFG2_SP_1 (0x2UL << SPI_CFG2_SP_Pos) /*!< 0x00100000 */
  16979. #define SPI_CFG2_SP_2 (0x4UL << SPI_CFG2_SP_Pos) /*!< 0x00200000 */
  16980. #define SPI_CFG2_MASTER_Pos (22U)
  16981. #define SPI_CFG2_MASTER_Msk (0x1UL << SPI_CFG2_MASTER_Pos) /*!< 0x00400000 */
  16982. #define SPI_CFG2_MASTER SPI_CFG2_MASTER_Msk /*!<SPI Master */
  16983. #define SPI_CFG2_LSBFRST_Pos (23U)
  16984. #define SPI_CFG2_LSBFRST_Msk (0x1UL << SPI_CFG2_LSBFRST_Pos) /*!< 0x00800000 */
  16985. #define SPI_CFG2_LSBFRST SPI_CFG2_LSBFRST_Msk /*!<Data frame format */
  16986. #define SPI_CFG2_CPHA_Pos (24U)
  16987. #define SPI_CFG2_CPHA_Msk (0x1UL << SPI_CFG2_CPHA_Pos) /*!< 0x01000000 */
  16988. #define SPI_CFG2_CPHA SPI_CFG2_CPHA_Msk /*!<Clock Phase */
  16989. #define SPI_CFG2_CPOL_Pos (25U)
  16990. #define SPI_CFG2_CPOL_Msk (0x1UL << SPI_CFG2_CPOL_Pos) /*!< 0x02000000 */
  16991. #define SPI_CFG2_CPOL SPI_CFG2_CPOL_Msk /*!<Clock Polarity */
  16992. #define SPI_CFG2_SSM_Pos (26U)
  16993. #define SPI_CFG2_SSM_Msk (0x1UL << SPI_CFG2_SSM_Pos) /*!< 0x04000000 */
  16994. #define SPI_CFG2_SSM SPI_CFG2_SSM_Msk /*!<Software slave management */
  16995. #define SPI_CFG2_SSIOP_Pos (28U)
  16996. #define SPI_CFG2_SSIOP_Msk (0x1UL << SPI_CFG2_SSIOP_Pos) /*!< 0x10000000 */
  16997. #define SPI_CFG2_SSIOP SPI_CFG2_SSIOP_Msk /*!<SS input/output polarity */
  16998. #define SPI_CFG2_SSOE_Pos (29U)
  16999. #define SPI_CFG2_SSOE_Msk (0x1UL << SPI_CFG2_SSOE_Pos) /*!< 0x20000000 */
  17000. #define SPI_CFG2_SSOE SPI_CFG2_SSOE_Msk /*!<SS output enable */
  17001. #define SPI_CFG2_SSOM_Pos (30U)
  17002. #define SPI_CFG2_SSOM_Msk (0x1UL << SPI_CFG2_SSOM_Pos) /*!< 0x40000000 */
  17003. #define SPI_CFG2_SSOM SPI_CFG2_SSOM_Msk /*!<SS output management in master mode */
  17004. #define SPI_CFG2_AFCNTR_Pos (31U)
  17005. #define SPI_CFG2_AFCNTR_Msk (0x1UL << SPI_CFG2_AFCNTR_Pos) /*!< 0x80000000 */
  17006. #define SPI_CFG2_AFCNTR SPI_CFG2_AFCNTR_Msk /*!<Alternate function GPIOs control */
  17007. /******************* Bit definition for SPI_IER register ********************/
  17008. #define SPI_IER_RXPIE_Pos (0U)
  17009. #define SPI_IER_RXPIE_Msk (0x1UL << SPI_IER_RXPIE_Pos) /*!< 0x00000001 */
  17010. #define SPI_IER_RXPIE SPI_IER_RXPIE_Msk /*!<RXP Interrupt Enable */
  17011. #define SPI_IER_TXPIE_Pos (1U)
  17012. #define SPI_IER_TXPIE_Msk (0x1UL << SPI_IER_TXPIE_Pos) /*!< 0x00000002 */
  17013. #define SPI_IER_TXPIE SPI_IER_TXPIE_Msk /*!<TXP interrupt enable */
  17014. #define SPI_IER_DXPIE_Pos (2U)
  17015. #define SPI_IER_DXPIE_Msk (0x1UL << SPI_IER_DXPIE_Pos) /*!< 0x00000004 */
  17016. #define SPI_IER_DXPIE SPI_IER_DXPIE_Msk /*!<DXP interrupt enable */
  17017. #define SPI_IER_EOTIE_Pos (3U)
  17018. #define SPI_IER_EOTIE_Msk (0x1UL << SPI_IER_EOTIE_Pos) /*!< 0x00000008 */
  17019. #define SPI_IER_EOTIE SPI_IER_EOTIE_Msk /*!<EOT/SUSP/TXC interrupt enable */
  17020. #define SPI_IER_TXTFIE_Pos (4U)
  17021. #define SPI_IER_TXTFIE_Msk (0x1UL << SPI_IER_TXTFIE_Pos) /*!< 0x00000010 */
  17022. #define SPI_IER_TXTFIE SPI_IER_TXTFIE_Msk /*!<TXTF interrupt enable */
  17023. #define SPI_IER_UDRIE_Pos (5U)
  17024. #define SPI_IER_UDRIE_Msk (0x1UL << SPI_IER_UDRIE_Pos) /*!< 0x00000020 */
  17025. #define SPI_IER_UDRIE SPI_IER_UDRIE_Msk /*!<UDR interrupt enable */
  17026. #define SPI_IER_OVRIE_Pos (6U)
  17027. #define SPI_IER_OVRIE_Msk (0x1UL << SPI_IER_OVRIE_Pos) /*!< 0x00000040 */
  17028. #define SPI_IER_OVRIE SPI_IER_OVRIE_Msk /*!<OVR interrupt enable */
  17029. #define SPI_IER_CRCEIE_Pos (7U)
  17030. #define SPI_IER_CRCEIE_Msk (0x1UL << SPI_IER_CRCEIE_Pos) /*!< 0x00000080 */
  17031. #define SPI_IER_CRCEIE SPI_IER_CRCEIE_Msk /*!<CRCE interrupt enable */
  17032. #define SPI_IER_TIFREIE_Pos (8U)
  17033. #define SPI_IER_TIFREIE_Msk (0x1UL << SPI_IER_TIFREIE_Pos) /*!< 0x00000100 */
  17034. #define SPI_IER_TIFREIE SPI_IER_TIFREIE_Msk /*!<TI Frame Error interrupt enable */
  17035. #define SPI_IER_MODFIE_Pos (9U)
  17036. #define SPI_IER_MODFIE_Msk (0x1UL << SPI_IER_MODFIE_Pos) /*!< 0x00000200 */
  17037. #define SPI_IER_MODFIE SPI_IER_MODFIE_Msk /*!<MODF interrupt enable */
  17038. #define SPI_IER_TSERFIE_Pos (10U)
  17039. #define SPI_IER_TSERFIE_Msk (0x1UL << SPI_IER_TSERFIE_Pos) /*!< 0x00000400 */
  17040. #define SPI_IER_TSERFIE SPI_IER_TSERFIE_Msk /*!<TSERF interrupt enable */
  17041. /******************* Bit definition for SPI_SR register ********************/
  17042. #define SPI_SR_RXP_Pos (0U)
  17043. #define SPI_SR_RXP_Msk (0x1UL << SPI_SR_RXP_Pos) /*!< 0x00000001 */
  17044. #define SPI_SR_RXP SPI_SR_RXP_Msk /*!<Rx-Packet available */
  17045. #define SPI_SR_TXP_Pos (1U)
  17046. #define SPI_SR_TXP_Msk (0x1UL << SPI_SR_TXP_Pos) /*!< 0x00000002 */
  17047. #define SPI_SR_TXP SPI_SR_TXP_Msk /*!<Tx-Packet space available */
  17048. #define SPI_SR_DXP_Pos (2U)
  17049. #define SPI_SR_DXP_Msk (0x1UL << SPI_SR_DXP_Pos) /*!< 0x00000004 */
  17050. #define SPI_SR_DXP SPI_SR_DXP_Msk /*!<Duplex Packet available */
  17051. #define SPI_SR_EOT_Pos (3U)
  17052. #define SPI_SR_EOT_Msk (0x1UL << SPI_SR_EOT_Pos) /*!< 0x00000008 */
  17053. #define SPI_SR_EOT SPI_SR_EOT_Msk /*!<Duplex Packet available */
  17054. #define SPI_SR_TXTF_Pos (4U)
  17055. #define SPI_SR_TXTF_Msk (0x1UL << SPI_SR_TXTF_Pos) /*!< 0x00000010 */
  17056. #define SPI_SR_TXTF SPI_SR_TXTF_Msk /*!<Transmission Transfer Filled */
  17057. #define SPI_SR_UDR_Pos (5U)
  17058. #define SPI_SR_UDR_Msk (0x1UL << SPI_SR_UDR_Pos) /*!< 0x00000020 */
  17059. #define SPI_SR_UDR SPI_SR_UDR_Msk /*!<UDR at Slave transmission */
  17060. #define SPI_SR_OVR_Pos (6U)
  17061. #define SPI_SR_OVR_Msk (0x1UL << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  17062. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!<Rx-Packet available */
  17063. #define SPI_SR_CRCE_Pos (7U)
  17064. #define SPI_SR_CRCE_Msk (0x1UL << SPI_SR_CRCE_Pos) /*!< 0x00000080 */
  17065. #define SPI_SR_CRCE SPI_SR_CRCE_Msk /*!<CRC Error Detected */
  17066. #define SPI_SR_TIFRE_Pos (8U)
  17067. #define SPI_SR_TIFRE_Msk (0x1UL << SPI_SR_TIFRE_Pos) /*!< 0x00000100 */
  17068. #define SPI_SR_TIFRE SPI_SR_TIFRE_Msk /*!<TI frame format error Detected */
  17069. #define SPI_SR_MODF_Pos (9U)
  17070. #define SPI_SR_MODF_Msk (0x1UL << SPI_SR_MODF_Pos) /*!< 0x00000200 */
  17071. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!<Mode Fault Detected */
  17072. #define SPI_SR_TSERF_Pos (10U)
  17073. #define SPI_SR_TSERF_Msk (0x1UL << SPI_SR_TSERF_Pos) /*!< 0x00000400 */
  17074. #define SPI_SR_TSERF SPI_SR_TSERF_Msk /*!<Number of SPI data to be transacted reloaded */
  17075. #define SPI_SR_SUSP_Pos (11U)
  17076. #define SPI_SR_SUSP_Msk (0x1UL << SPI_SR_SUSP_Pos) /*!< 0x00000800 */
  17077. #define SPI_SR_SUSP SPI_SR_SUSP_Msk /*!<SUSP is set by hardware */
  17078. #define SPI_SR_TXC_Pos (12U)
  17079. #define SPI_SR_TXC_Msk (0x1UL << SPI_SR_TXC_Pos) /*!< 0x00001000 */
  17080. #define SPI_SR_TXC SPI_SR_TXC_Msk /*!<TxFIFO transmission complete */
  17081. #define SPI_SR_RXPLVL_Pos (13U)
  17082. #define SPI_SR_RXPLVL_Msk (0x3UL << SPI_SR_RXPLVL_Pos) /*!< 0x00006000 */
  17083. #define SPI_SR_RXPLVL SPI_SR_RXPLVL_Msk /*!<RxFIFO Packing Level */
  17084. #define SPI_SR_RXPLVL_0 (0x1UL << SPI_SR_RXPLVL_Pos) /*!< 0x00002000 */
  17085. #define SPI_SR_RXPLVL_1 (0x2UL << SPI_SR_RXPLVL_Pos) /*!< 0x00004000 */
  17086. #define SPI_SR_RXWNE_Pos (15U)
  17087. #define SPI_SR_RXWNE_Msk (0x1UL << SPI_SR_RXWNE_Pos) /*!< 0x00008000 */
  17088. #define SPI_SR_RXWNE SPI_SR_RXWNE_Msk /*!<Rx FIFO Word Not Empty */
  17089. #define SPI_SR_CTSIZE_Pos (16U)
  17090. #define SPI_SR_CTSIZE_Msk (0xFFFFUL << SPI_SR_CTSIZE_Pos) /*!< 0xFFFF0000 */
  17091. #define SPI_SR_CTSIZE SPI_SR_CTSIZE_Msk /*!<Number of data frames remaining in TSIZE */
  17092. /******************* Bit definition for SPI_IFCR register ********************/
  17093. #define SPI_IFCR_EOTC_Pos (3U)
  17094. #define SPI_IFCR_EOTC_Msk (0x1UL << SPI_IFCR_EOTC_Pos) /*!< 0x00000008 */
  17095. #define SPI_IFCR_EOTC SPI_IFCR_EOTC_Msk /*!<End Of Transfer flag clear */
  17096. #define SPI_IFCR_TXTFC_Pos (4U)
  17097. #define SPI_IFCR_TXTFC_Msk (0x1UL << SPI_IFCR_TXTFC_Pos) /*!< 0x00000010 */
  17098. #define SPI_IFCR_TXTFC SPI_IFCR_TXTFC_Msk /*!<Transmission Transfer Filled flag clear */
  17099. #define SPI_IFCR_UDRC_Pos (5U)
  17100. #define SPI_IFCR_UDRC_Msk (0x1UL << SPI_IFCR_UDRC_Pos) /*!< 0x00000020 */
  17101. #define SPI_IFCR_UDRC SPI_IFCR_UDRC_Msk /*!<Underrun flag clear */
  17102. #define SPI_IFCR_OVRC_Pos (6U)
  17103. #define SPI_IFCR_OVRC_Msk (0x1UL << SPI_IFCR_OVRC_Pos) /*!< 0x00000040 */
  17104. #define SPI_IFCR_OVRC SPI_IFCR_OVRC_Msk /*!<Overrun flag clear */
  17105. #define SPI_IFCR_CRCEC_Pos (7U)
  17106. #define SPI_IFCR_CRCEC_Msk (0x1UL << SPI_IFCR_CRCEC_Pos) /*!< 0x00000080 */
  17107. #define SPI_IFCR_CRCEC SPI_IFCR_CRCEC_Msk /*!<CRC Error flag clear */
  17108. #define SPI_IFCR_TIFREC_Pos (8U)
  17109. #define SPI_IFCR_TIFREC_Msk (0x1UL << SPI_IFCR_TIFREC_Pos) /*!< 0x00000100 */
  17110. #define SPI_IFCR_TIFREC SPI_IFCR_TIFREC_Msk /*!<TI frame format error flag clear */
  17111. #define SPI_IFCR_MODFC_Pos (9U)
  17112. #define SPI_IFCR_MODFC_Msk (0x1UL << SPI_IFCR_MODFC_Pos) /*!< 0x00000200 */
  17113. #define SPI_IFCR_MODFC SPI_IFCR_MODFC_Msk /*!<Mode Fault flag clear */
  17114. #define SPI_IFCR_TSERFC_Pos (10U)
  17115. #define SPI_IFCR_TSERFC_Msk (0x1UL << SPI_IFCR_TSERFC_Pos) /*!< 0x00000400 */
  17116. #define SPI_IFCR_TSERFC SPI_IFCR_TSERFC_Msk /*!<TSERFC flag clear */
  17117. #define SPI_IFCR_SUSPC_Pos (11U)
  17118. #define SPI_IFCR_SUSPC_Msk (0x1UL << SPI_IFCR_SUSPC_Pos) /*!< 0x00000800 */
  17119. #define SPI_IFCR_SUSPC SPI_IFCR_SUSPC_Msk /*!<SUSPend flag clear */
  17120. /******************* Bit definition for SPI_TXDR register ********************/
  17121. #define SPI_TXDR_TXDR_Pos (0U)
  17122. #define SPI_TXDR_TXDR_Msk (0xFFFFFFFFUL << SPI_TXDR_TXDR_Pos) /*!< 0xFFFFFFFF */
  17123. #define SPI_TXDR_TXDR SPI_TXDR_TXDR_Msk /* Transmit Data Register */
  17124. /******************* Bit definition for SPI_RXDR register ********************/
  17125. #define SPI_RXDR_RXDR_Pos (0U)
  17126. #define SPI_RXDR_RXDR_Msk (0xFFFFFFFFUL << SPI_RXDR_RXDR_Pos) /*!< 0xFFFFFFFF */
  17127. #define SPI_RXDR_RXDR SPI_RXDR_RXDR_Msk /* Receive Data Register */
  17128. /******************* Bit definition for SPI_CRCPOLY register ********************/
  17129. #define SPI_CRCPOLY_CRCPOLY_Pos (0U)
  17130. #define SPI_CRCPOLY_CRCPOLY_Msk (0xFFFFFFFFUL << SPI_CRCPOLY_CRCPOLY_Pos) /*!< 0xFFFFFFFF */
  17131. #define SPI_CRCPOLY_CRCPOLY SPI_CRCPOLY_CRCPOLY_Msk /* CRC Polynomial register */
  17132. /******************* Bit definition for SPI_TXCRC register ********************/
  17133. #define SPI_TXCRC_TXCRC_Pos (0U)
  17134. #define SPI_TXCRC_TXCRC_Msk (0xFFFFFFFFUL << SPI_TXCRC_TXCRC_Pos) /*!< 0xFFFFFFFF */
  17135. #define SPI_TXCRC_TXCRC SPI_TXCRC_TXCRC_Msk /* CRCRegister for transmitter */
  17136. /******************* Bit definition for SPI_RXCRC register ********************/
  17137. #define SPI_RXCRC_RXCRC_Pos (0U)
  17138. #define SPI_RXCRC_RXCRC_Msk (0xFFFFFFFFUL << SPI_RXCRC_RXCRC_Pos) /*!< 0xFFFFFFFF */
  17139. #define SPI_RXCRC_RXCRC SPI_RXCRC_RXCRC_Msk /* CRCRegister for receiver */
  17140. /******************* Bit definition for SPI_UDRDR register ********************/
  17141. #define SPI_UDRDR_UDRDR_Pos (0U)
  17142. #define SPI_UDRDR_UDRDR_Msk (0xFFFFFFFFUL << SPI_UDRDR_UDRDR_Pos) /*!< 0xFFFFFFFF */
  17143. #define SPI_UDRDR_UDRDR SPI_UDRDR_UDRDR_Msk /* Data at slave underrun condition */
  17144. /****************** Bit definition for SPI_I2SCFGR register *****************/
  17145. #define SPI_I2SCFGR_I2SMOD_Pos (0U)
  17146. #define SPI_I2SCFGR_I2SMOD_Msk (0x1UL << SPI_I2SCFGR_I2SMOD_Pos) /*!< 0x00000001 */
  17147. #define SPI_I2SCFGR_I2SMOD SPI_I2SCFGR_I2SMOD_Msk /*!<I2S mode selection */
  17148. #define SPI_I2SCFGR_I2SCFG_Pos (1U)
  17149. #define SPI_I2SCFGR_I2SCFG_Msk (0x7UL << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x0000000E */
  17150. #define SPI_I2SCFGR_I2SCFG SPI_I2SCFGR_I2SCFG_Msk /*!<I2SCFG[2:0] I2S configuration mode */
  17151. #define SPI_I2SCFGR_I2SCFG_0 (0x1UL << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000002 */
  17152. #define SPI_I2SCFGR_I2SCFG_1 (0x2UL << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000004 */
  17153. #define SPI_I2SCFGR_I2SCFG_2 (0x4UL << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000008 */
  17154. #define SPI_I2SCFGR_I2SSTD_Pos (4U)
  17155. #define SPI_I2SCFGR_I2SSTD_Msk (0x3UL << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000030 */
  17156. #define SPI_I2SCFGR_I2SSTD SPI_I2SCFGR_I2SSTD_Msk /*!<I2SSTD[1:0] I2S standard selection */
  17157. #define SPI_I2SCFGR_I2SSTD_0 (0x1UL << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000010 */
  17158. #define SPI_I2SCFGR_I2SSTD_1 (0x2UL << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000020 */
  17159. #define SPI_I2SCFGR_PCMSYNC_Pos (7U)
  17160. #define SPI_I2SCFGR_PCMSYNC_Msk (0x1UL << SPI_I2SCFGR_PCMSYNC_Pos) /*!< 0x00000080 */
  17161. #define SPI_I2SCFGR_PCMSYNC SPI_I2SCFGR_PCMSYNC_Msk /*!<PCM frame synchronization */
  17162. #define SPI_I2SCFGR_DATLEN_Pos (8U)
  17163. #define SPI_I2SCFGR_DATLEN_Msk (0x3UL << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000300 */
  17164. #define SPI_I2SCFGR_DATLEN SPI_I2SCFGR_DATLEN_Msk /*!<DATLEN[1:0] Data length to be transferred */
  17165. #define SPI_I2SCFGR_DATLEN_0 (0x1UL << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000100 */
  17166. #define SPI_I2SCFGR_DATLEN_1 (0x2UL << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000200 */
  17167. #define SPI_I2SCFGR_CHLEN_Pos (10U)
  17168. #define SPI_I2SCFGR_CHLEN_Msk (0x1UL << SPI_I2SCFGR_CHLEN_Pos) /*!< 0x00000400 */
  17169. #define SPI_I2SCFGR_CHLEN SPI_I2SCFGR_CHLEN_Msk /*!<Channel length (number of bits per audio channel) */
  17170. #define SPI_I2SCFGR_CKPOL_Pos (11U)
  17171. #define SPI_I2SCFGR_CKPOL_Msk (0x1UL << SPI_I2SCFGR_CKPOL_Pos) /*!< 0x00000800 */
  17172. #define SPI_I2SCFGR_CKPOL SPI_I2SCFGR_CKPOL_Msk /*!<Steady state clock polarity */
  17173. #define SPI_I2SCFGR_FIXCH_Pos (12U)
  17174. #define SPI_I2SCFGR_FIXCH_Msk (0x1UL << SPI_I2SCFGR_FIXCH_Pos) /*!< 0x00001000 */
  17175. #define SPI_I2SCFGR_FIXCH SPI_I2SCFGR_FIXCH_Msk /*!<Fixed channel length in SLAVE */
  17176. #define SPI_I2SCFGR_WSINV_Pos (13U)
  17177. #define SPI_I2SCFGR_WSINV_Msk (0x1UL << SPI_I2SCFGR_WSINV_Pos) /*!< 0x00002000 */
  17178. #define SPI_I2SCFGR_WSINV SPI_I2SCFGR_WSINV_Msk /*!<Word select inversion */
  17179. #define SPI_I2SCFGR_DATFMT_Pos (14U)
  17180. #define SPI_I2SCFGR_DATFMT_Msk (0x1UL << SPI_I2SCFGR_DATFMT_Pos) /*!< 0x00004000 */
  17181. #define SPI_I2SCFGR_DATFMT SPI_I2SCFGR_DATFMT_Msk /*!<Data format */
  17182. #define SPI_I2SCFGR_I2SDIV_Pos (16U)
  17183. #define SPI_I2SCFGR_I2SDIV_Msk (0xFFUL << SPI_I2SCFGR_I2SDIV_Pos) /*!< 0x00FF0000 */
  17184. #define SPI_I2SCFGR_I2SDIV SPI_I2SCFGR_I2SDIV_Msk /*!<I2S Linear prescaler */
  17185. #define SPI_I2SCFGR_ODD_Pos (24U)
  17186. #define SPI_I2SCFGR_ODD_Msk (0x1UL << SPI_I2SCFGR_ODD_Pos) /*!< 0x01000000 */
  17187. #define SPI_I2SCFGR_ODD SPI_I2SCFGR_ODD_Msk /*!<Odd factor for the prescaler */
  17188. #define SPI_I2SCFGR_MCKOE_Pos (25U)
  17189. #define SPI_I2SCFGR_MCKOE_Msk (0x1UL << SPI_I2SCFGR_MCKOE_Pos) /*!< 0x02000000 */
  17190. #define SPI_I2SCFGR_MCKOE SPI_I2SCFGR_MCKOE_Msk /*!<Master Clock Output Enable */
  17191. /******************************************************************************/
  17192. /* */
  17193. /* SYSCFG */
  17194. /* */
  17195. /******************************************************************************/
  17196. /****************** Bit definition for SYSCFG_PMCR register ******************/
  17197. #define SYSCFG_PMCR_I2C1_FMP_Pos (0U)
  17198. #define SYSCFG_PMCR_I2C1_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C1_FMP_Pos) /*!< 0x00000001 */
  17199. #define SYSCFG_PMCR_I2C1_FMP SYSCFG_PMCR_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */
  17200. #define SYSCFG_PMCR_I2C2_FMP_Pos (1U)
  17201. #define SYSCFG_PMCR_I2C2_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C2_FMP_Pos) /*!< 0x00000002 */
  17202. #define SYSCFG_PMCR_I2C2_FMP SYSCFG_PMCR_I2C2_FMP_Msk /*!< I2C2 Fast mode plus */
  17203. #define SYSCFG_PMCR_I2C3_FMP_Pos (2U)
  17204. #define SYSCFG_PMCR_I2C3_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C3_FMP_Pos) /*!< 0x00000004 */
  17205. #define SYSCFG_PMCR_I2C3_FMP SYSCFG_PMCR_I2C3_FMP_Msk /*!< I2C3 Fast mode plus */
  17206. #define SYSCFG_PMCR_I2C4_FMP_Pos (3U)
  17207. #define SYSCFG_PMCR_I2C4_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C4_FMP_Pos) /*!< 0x00000008 */
  17208. #define SYSCFG_PMCR_I2C4_FMP SYSCFG_PMCR_I2C4_FMP_Msk /*!< I2C4 Fast mode plus */
  17209. #define SYSCFG_PMCR_I2C_PB6_FMP_Pos (4U)
  17210. #define SYSCFG_PMCR_I2C_PB6_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C_PB6_FMP_Pos) /*!< 0x00000010 */
  17211. #define SYSCFG_PMCR_I2C_PB6_FMP SYSCFG_PMCR_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */
  17212. #define SYSCFG_PMCR_I2C_PB7_FMP_Pos (5U)
  17213. #define SYSCFG_PMCR_I2C_PB7_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C_PB7_FMP_Pos) /*!< 0x00000020 */
  17214. #define SYSCFG_PMCR_I2C_PB7_FMP SYSCFG_PMCR_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */
  17215. #define SYSCFG_PMCR_I2C_PB8_FMP_Pos (6U)
  17216. #define SYSCFG_PMCR_I2C_PB8_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C_PB8_FMP_Pos) /*!< 0x00000040 */
  17217. #define SYSCFG_PMCR_I2C_PB8_FMP SYSCFG_PMCR_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */
  17218. #define SYSCFG_PMCR_I2C_PB9_FMP_Pos (7U)
  17219. #define SYSCFG_PMCR_I2C_PB9_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C_PB9_FMP_Pos) /*!< 0x00000080 */
  17220. #define SYSCFG_PMCR_I2C_PB9_FMP SYSCFG_PMCR_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */
  17221. #define SYSCFG_PMCR_BOOSTEN_Pos (8U)
  17222. #define SYSCFG_PMCR_BOOSTEN_Msk (0x1UL << SYSCFG_PMCR_BOOSTEN_Pos) /*!< 0x00000100 */
  17223. #define SYSCFG_PMCR_BOOSTEN SYSCFG_PMCR_BOOSTEN_Msk /*!< I/O analog switch voltage booster enable */
  17224. #define SYSCFG_PMCR_BOOSTVDDSEL_Pos (9U)
  17225. #define SYSCFG_PMCR_BOOSTVDDSEL_Msk (0x1UL << SYSCFG_PMCR_BOOSTVDDSEL_Pos) /*!< 0x00000200 */
  17226. #define SYSCFG_PMCR_BOOSTVDDSEL SYSCFG_PMCR_BOOSTVDDSEL_Msk /*!< Analog switch supply source selection : VDD/VDDA */
  17227. #define SYSCFG_PMCR_I2C5_FMP_Pos (10U)
  17228. #define SYSCFG_PMCR_I2C5_FMP_Msk (0x1UL << SYSCFG_PMCR_I2C5_FMP_Pos) /*!< 0x00000400 */
  17229. #define SYSCFG_PMCR_I2C5_FMP SYSCFG_PMCR_I2C5_FMP_Msk /*!< I2C5 Fast mode plus */
  17230. #define SYSCFG_PMCR_EPIS_SEL_Pos (21U)
  17231. #define SYSCFG_PMCR_EPIS_SEL_Msk (0x7UL << SYSCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00E00000 */
  17232. #define SYSCFG_PMCR_EPIS_SEL SYSCFG_PMCR_EPIS_SEL_Msk /*!< Ethernet PHY Interface Selection */
  17233. #define SYSCFG_PMCR_EPIS_SEL_0 (0x1UL << SYSCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00200000 */
  17234. #define SYSCFG_PMCR_EPIS_SEL_1 (0x2UL << SYSCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00400000 */
  17235. #define SYSCFG_PMCR_EPIS_SEL_2 (0x4UL << SYSCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00800000 */
  17236. #define SYSCFG_PMCR_PA0SO_Pos (24U)
  17237. #define SYSCFG_PMCR_PA0SO_Msk (0x1UL << SYSCFG_PMCR_PA0SO_Pos) /*!< 0x01000000 */
  17238. #define SYSCFG_PMCR_PA0SO SYSCFG_PMCR_PA0SO_Msk /*!< PA0 Switch Open */
  17239. #define SYSCFG_PMCR_PA1SO_Pos (25U)
  17240. #define SYSCFG_PMCR_PA1SO_Msk (0x1UL << SYSCFG_PMCR_PA1SO_Pos) /*!< 0x02000000 */
  17241. #define SYSCFG_PMCR_PA1SO SYSCFG_PMCR_PA1SO_Msk /*!< PA1 Switch Open */
  17242. #define SYSCFG_PMCR_PC2SO_Pos (26U)
  17243. #define SYSCFG_PMCR_PC2SO_Msk (0x1UL << SYSCFG_PMCR_PC2SO_Pos) /*!< 0x04000000 */
  17244. #define SYSCFG_PMCR_PC2SO SYSCFG_PMCR_PC2SO_Msk /*!< PC2 Switch Open */
  17245. #define SYSCFG_PMCR_PC3SO_Pos (27U)
  17246. #define SYSCFG_PMCR_PC3SO_Msk (0x1UL << SYSCFG_PMCR_PC3SO_Pos) /*!< 0x08000000 */
  17247. #define SYSCFG_PMCR_PC3SO SYSCFG_PMCR_PC3SO_Msk /*!< PC3 Switch Open */
  17248. /***************** Bit definition for SYSCFG_EXTICR1 register ***************/
  17249. #define SYSCFG_EXTICR1_EXTI0_Pos (0U)
  17250. #define SYSCFG_EXTICR1_EXTI0_Msk (0xFUL << SYSCFG_EXTICR1_EXTI0_Pos) /*!< 0x0000000F */
  17251. #define SYSCFG_EXTICR1_EXTI0 SYSCFG_EXTICR1_EXTI0_Msk /*!<EXTI 0 configuration */
  17252. #define SYSCFG_EXTICR1_EXTI1_Pos (4U)
  17253. #define SYSCFG_EXTICR1_EXTI1_Msk (0xFUL << SYSCFG_EXTICR1_EXTI1_Pos) /*!< 0x000000F0 */
  17254. #define SYSCFG_EXTICR1_EXTI1 SYSCFG_EXTICR1_EXTI1_Msk /*!<EXTI 1 configuration */
  17255. #define SYSCFG_EXTICR1_EXTI2_Pos (8U)
  17256. #define SYSCFG_EXTICR1_EXTI2_Msk (0xFUL << SYSCFG_EXTICR1_EXTI2_Pos) /*!< 0x00000F00 */
  17257. #define SYSCFG_EXTICR1_EXTI2 SYSCFG_EXTICR1_EXTI2_Msk /*!<EXTI 2 configuration */
  17258. #define SYSCFG_EXTICR1_EXTI3_Pos (12U)
  17259. #define SYSCFG_EXTICR1_EXTI3_Msk (0xFUL << SYSCFG_EXTICR1_EXTI3_Pos) /*!< 0x0000F000 */
  17260. #define SYSCFG_EXTICR1_EXTI3 SYSCFG_EXTICR1_EXTI3_Msk /*!<EXTI 3 configuration */
  17261. /**
  17262. * @brief EXTI0 configuration
  17263. */
  17264. #define SYSCFG_EXTICR1_EXTI0_PA ((uint32_t)0x00000000) /*!<PA[0] pin */
  17265. #define SYSCFG_EXTICR1_EXTI0_PB ((uint32_t)0x00000001) /*!<PB[0] pin */
  17266. #define SYSCFG_EXTICR1_EXTI0_PC ((uint32_t)0x00000002) /*!<PC[0] pin */
  17267. #define SYSCFG_EXTICR1_EXTI0_PD ((uint32_t)0x00000003) /*!<PD[0] pin */
  17268. #define SYSCFG_EXTICR1_EXTI0_PE ((uint32_t)0x00000004) /*!<PE[0] pin */
  17269. #define SYSCFG_EXTICR1_EXTI0_PF ((uint32_t)0x00000005) /*!<PF[0] pin */
  17270. #define SYSCFG_EXTICR1_EXTI0_PG ((uint32_t)0x00000006) /*!<PG[0] pin */
  17271. #define SYSCFG_EXTICR1_EXTI0_PH ((uint32_t)0x00000007) /*!<PH[0] pin */
  17272. #define SYSCFG_EXTICR1_EXTI0_PJ ((uint32_t)0x00000009) /*!<PJ[0] pin */
  17273. #define SYSCFG_EXTICR1_EXTI0_PK ((uint32_t)0x0000000A) /*!<PK[0] pin */
  17274. /**
  17275. * @brief EXTI1 configuration
  17276. */
  17277. #define SYSCFG_EXTICR1_EXTI1_PA ((uint32_t)0x00000000) /*!<PA[1] pin */
  17278. #define SYSCFG_EXTICR1_EXTI1_PB ((uint32_t)0x00000010) /*!<PB[1] pin */
  17279. #define SYSCFG_EXTICR1_EXTI1_PC ((uint32_t)0x00000020) /*!<PC[1] pin */
  17280. #define SYSCFG_EXTICR1_EXTI1_PD ((uint32_t)0x00000030) /*!<PD[1] pin */
  17281. #define SYSCFG_EXTICR1_EXTI1_PE ((uint32_t)0x00000040) /*!<PE[1] pin */
  17282. #define SYSCFG_EXTICR1_EXTI1_PF ((uint32_t)0x00000050) /*!<PF[1] pin */
  17283. #define SYSCFG_EXTICR1_EXTI1_PG ((uint32_t)0x00000060) /*!<PG[1] pin */
  17284. #define SYSCFG_EXTICR1_EXTI1_PH ((uint32_t)0x00000070) /*!<PH[1] pin */
  17285. #define SYSCFG_EXTICR1_EXTI1_PJ ((uint32_t)0x00000090) /*!<PJ[1] pin */
  17286. #define SYSCFG_EXTICR1_EXTI1_PK ((uint32_t)0x000000A0) /*!<PK[1] pin */
  17287. /**
  17288. * @brief EXTI2 configuration
  17289. */
  17290. #define SYSCFG_EXTICR1_EXTI2_PA ((uint32_t)0x00000000) /*!<PA[2] pin */
  17291. #define SYSCFG_EXTICR1_EXTI2_PB ((uint32_t)0x00000100) /*!<PB[2] pin */
  17292. #define SYSCFG_EXTICR1_EXTI2_PC ((uint32_t)0x00000200) /*!<PC[2] pin */
  17293. #define SYSCFG_EXTICR1_EXTI2_PD ((uint32_t)0x00000300) /*!<PD[2] pin */
  17294. #define SYSCFG_EXTICR1_EXTI2_PE ((uint32_t)0x00000400) /*!<PE[2] pin */
  17295. #define SYSCFG_EXTICR1_EXTI2_PF ((uint32_t)0x00000500) /*!<PF[2] pin */
  17296. #define SYSCFG_EXTICR1_EXTI2_PG ((uint32_t)0x00000600) /*!<PG[2] pin */
  17297. #define SYSCFG_EXTICR1_EXTI2_PH ((uint32_t)0x00000700) /*!<PH[2] pin */
  17298. #define SYSCFG_EXTICR1_EXTI2_PJ ((uint32_t)0x00000900) /*!<PJ[2] pin */
  17299. #define SYSCFG_EXTICR1_EXTI2_PK ((uint32_t)0x00000A00) /*!<PK[2] pin */
  17300. /**
  17301. * @brief EXTI3 configuration
  17302. */
  17303. #define SYSCFG_EXTICR1_EXTI3_PA ((uint32_t)0x00000000) /*!<PA[3] pin */
  17304. #define SYSCFG_EXTICR1_EXTI3_PB ((uint32_t)0x00001000) /*!<PB[3] pin */
  17305. #define SYSCFG_EXTICR1_EXTI3_PC ((uint32_t)0x00002000) /*!<PC[3] pin */
  17306. #define SYSCFG_EXTICR1_EXTI3_PD ((uint32_t)0x00003000) /*!<PD[3] pin */
  17307. #define SYSCFG_EXTICR1_EXTI3_PE ((uint32_t)0x00004000) /*!<PE[3] pin */
  17308. #define SYSCFG_EXTICR1_EXTI3_PF ((uint32_t)0x00005000) /*!<PF[3] pin */
  17309. #define SYSCFG_EXTICR1_EXTI3_PG ((uint32_t)0x00006000) /*!<PG[3] pin */
  17310. #define SYSCFG_EXTICR1_EXTI3_PH ((uint32_t)0x00007000) /*!<PH[3] pin */
  17311. #define SYSCFG_EXTICR1_EXTI3_PJ ((uint32_t)0x00009000) /*!<PJ[3] pin */
  17312. #define SYSCFG_EXTICR1_EXTI3_PK ((uint32_t)0x0000A000) /*!<PK[3] pin */
  17313. /***************** Bit definition for SYSCFG_EXTICR2 register ***************/
  17314. #define SYSCFG_EXTICR2_EXTI4_Pos (0U)
  17315. #define SYSCFG_EXTICR2_EXTI4_Msk (0xFUL << SYSCFG_EXTICR2_EXTI4_Pos) /*!< 0x0000000F */
  17316. #define SYSCFG_EXTICR2_EXTI4 SYSCFG_EXTICR2_EXTI4_Msk /*!<EXTI 4 configuration */
  17317. #define SYSCFG_EXTICR2_EXTI5_Pos (4U)
  17318. #define SYSCFG_EXTICR2_EXTI5_Msk (0xFUL << SYSCFG_EXTICR2_EXTI5_Pos) /*!< 0x000000F0 */
  17319. #define SYSCFG_EXTICR2_EXTI5 SYSCFG_EXTICR2_EXTI5_Msk /*!<EXTI 5 configuration */
  17320. #define SYSCFG_EXTICR2_EXTI6_Pos (8U)
  17321. #define SYSCFG_EXTICR2_EXTI6_Msk (0xFUL << SYSCFG_EXTICR2_EXTI6_Pos) /*!< 0x00000F00 */
  17322. #define SYSCFG_EXTICR2_EXTI6 SYSCFG_EXTICR2_EXTI6_Msk /*!<EXTI 6 configuration */
  17323. #define SYSCFG_EXTICR2_EXTI7_Pos (12U)
  17324. #define SYSCFG_EXTICR2_EXTI7_Msk (0xFUL << SYSCFG_EXTICR2_EXTI7_Pos) /*!< 0x0000F000 */
  17325. #define SYSCFG_EXTICR2_EXTI7 SYSCFG_EXTICR2_EXTI7_Msk /*!<EXTI 7 configuration */
  17326. /**
  17327. * @brief EXTI4 configuration
  17328. */
  17329. #define SYSCFG_EXTICR2_EXTI4_PA ((uint32_t)0x00000000) /*!<PA[4] pin */
  17330. #define SYSCFG_EXTICR2_EXTI4_PB ((uint32_t)0x00000001) /*!<PB[4] pin */
  17331. #define SYSCFG_EXTICR2_EXTI4_PC ((uint32_t)0x00000002) /*!<PC[4] pin */
  17332. #define SYSCFG_EXTICR2_EXTI4_PD ((uint32_t)0x00000003) /*!<PD[4] pin */
  17333. #define SYSCFG_EXTICR2_EXTI4_PE ((uint32_t)0x00000004) /*!<PE[4] pin */
  17334. #define SYSCFG_EXTICR2_EXTI4_PF ((uint32_t)0x00000005) /*!<PF[4] pin */
  17335. #define SYSCFG_EXTICR2_EXTI4_PG ((uint32_t)0x00000006) /*!<PG[4] pin */
  17336. #define SYSCFG_EXTICR2_EXTI4_PH ((uint32_t)0x00000007) /*!<PH[4] pin */
  17337. #define SYSCFG_EXTICR2_EXTI4_PJ ((uint32_t)0x00000009) /*!<PJ[4] pin */
  17338. #define SYSCFG_EXTICR2_EXTI4_PK ((uint32_t)0x0000000A) /*!<PK[4] pin */
  17339. /**
  17340. * @brief EXTI5 configuration
  17341. */
  17342. #define SYSCFG_EXTICR2_EXTI5_PA ((uint32_t)0x00000000) /*!<PA[5] pin */
  17343. #define SYSCFG_EXTICR2_EXTI5_PB ((uint32_t)0x00000010) /*!<PB[5] pin */
  17344. #define SYSCFG_EXTICR2_EXTI5_PC ((uint32_t)0x00000020) /*!<PC[5] pin */
  17345. #define SYSCFG_EXTICR2_EXTI5_PD ((uint32_t)0x00000030) /*!<PD[5] pin */
  17346. #define SYSCFG_EXTICR2_EXTI5_PE ((uint32_t)0x00000040) /*!<PE[5] pin */
  17347. #define SYSCFG_EXTICR2_EXTI5_PF ((uint32_t)0x00000050) /*!<PF[5] pin */
  17348. #define SYSCFG_EXTICR2_EXTI5_PG ((uint32_t)0x00000060) /*!<PG[5] pin */
  17349. #define SYSCFG_EXTICR2_EXTI5_PH ((uint32_t)0x00000070) /*!<PH[5] pin */
  17350. #define SYSCFG_EXTICR2_EXTI5_PJ ((uint32_t)0x00000090) /*!<PJ[5] pin */
  17351. #define SYSCFG_EXTICR2_EXTI5_PK ((uint32_t)0x000000A0) /*!<PK[5] pin */
  17352. /**
  17353. * @brief EXTI6 configuration
  17354. */
  17355. #define SYSCFG_EXTICR2_EXTI6_PA ((uint32_t)0x00000000) /*!<PA[6] pin */
  17356. #define SYSCFG_EXTICR2_EXTI6_PB ((uint32_t)0x00000100) /*!<PB[6] pin */
  17357. #define SYSCFG_EXTICR2_EXTI6_PC ((uint32_t)0x00000200) /*!<PC[6] pin */
  17358. #define SYSCFG_EXTICR2_EXTI6_PD ((uint32_t)0x00000300) /*!<PD[6] pin */
  17359. #define SYSCFG_EXTICR2_EXTI6_PE ((uint32_t)0x00000400) /*!<PE[6] pin */
  17360. #define SYSCFG_EXTICR2_EXTI6_PF ((uint32_t)0x00000500) /*!<PF[6] pin */
  17361. #define SYSCFG_EXTICR2_EXTI6_PG ((uint32_t)0x00000600) /*!<PG[6] pin */
  17362. #define SYSCFG_EXTICR2_EXTI6_PH ((uint32_t)0x00000700) /*!<PH[6] pin */
  17363. #define SYSCFG_EXTICR2_EXTI6_PJ ((uint32_t)0x00000900) /*!<PJ[6] pin */
  17364. #define SYSCFG_EXTICR2_EXTI6_PK ((uint32_t)0x00000A00) /*!<PK[6] pin */
  17365. /**
  17366. * @brief EXTI7 configuration
  17367. */
  17368. #define SYSCFG_EXTICR2_EXTI7_PA ((uint32_t)0x00000000) /*!<PA[7] pin */
  17369. #define SYSCFG_EXTICR2_EXTI7_PB ((uint32_t)0x00001000) /*!<PB[7] pin */
  17370. #define SYSCFG_EXTICR2_EXTI7_PC ((uint32_t)0x00002000) /*!<PC[7] pin */
  17371. #define SYSCFG_EXTICR2_EXTI7_PD ((uint32_t)0x00003000) /*!<PD[7] pin */
  17372. #define SYSCFG_EXTICR2_EXTI7_PE ((uint32_t)0x00004000) /*!<PE[7] pin */
  17373. #define SYSCFG_EXTICR2_EXTI7_PF ((uint32_t)0x00005000) /*!<PF[7] pin */
  17374. #define SYSCFG_EXTICR2_EXTI7_PG ((uint32_t)0x00006000) /*!<PG[7] pin */
  17375. #define SYSCFG_EXTICR2_EXTI7_PH ((uint32_t)0x00007000) /*!<PH[7] pin */
  17376. #define SYSCFG_EXTICR2_EXTI7_PJ ((uint32_t)0x00009000) /*!<PJ[7] pin */
  17377. #define SYSCFG_EXTICR2_EXTI7_PK ((uint32_t)0x0000A000) /*!<PK[7] pin */
  17378. /***************** Bit definition for SYSCFG_EXTICR3 register ***************/
  17379. #define SYSCFG_EXTICR3_EXTI8_Pos (0U)
  17380. #define SYSCFG_EXTICR3_EXTI8_Msk (0xFUL << SYSCFG_EXTICR3_EXTI8_Pos) /*!< 0x0000000F */
  17381. #define SYSCFG_EXTICR3_EXTI8 SYSCFG_EXTICR3_EXTI8_Msk /*!<EXTI 8 configuration */
  17382. #define SYSCFG_EXTICR3_EXTI9_Pos (4U)
  17383. #define SYSCFG_EXTICR3_EXTI9_Msk (0xFUL << SYSCFG_EXTICR3_EXTI9_Pos) /*!< 0x000000F0 */
  17384. #define SYSCFG_EXTICR3_EXTI9 SYSCFG_EXTICR3_EXTI9_Msk /*!<EXTI 9 configuration */
  17385. #define SYSCFG_EXTICR3_EXTI10_Pos (8U)
  17386. #define SYSCFG_EXTICR3_EXTI10_Msk (0xFUL << SYSCFG_EXTICR3_EXTI10_Pos) /*!< 0x00000F00 */
  17387. #define SYSCFG_EXTICR3_EXTI10 SYSCFG_EXTICR3_EXTI10_Msk /*!<EXTI 10 configuration */
  17388. #define SYSCFG_EXTICR3_EXTI11_Pos (12U)
  17389. #define SYSCFG_EXTICR3_EXTI11_Msk (0xFUL << SYSCFG_EXTICR3_EXTI11_Pos) /*!< 0x0000F000 */
  17390. #define SYSCFG_EXTICR3_EXTI11 SYSCFG_EXTICR3_EXTI11_Msk /*!<EXTI 11 configuration */
  17391. /**
  17392. * @brief EXTI8 configuration
  17393. */
  17394. #define SYSCFG_EXTICR3_EXTI8_PA ((uint32_t)0x00000000) /*!<PA[8] pin */
  17395. #define SYSCFG_EXTICR3_EXTI8_PB ((uint32_t)0x00000001) /*!<PB[8] pin */
  17396. #define SYSCFG_EXTICR3_EXTI8_PC ((uint32_t)0x00000002) /*!<PC[8] pin */
  17397. #define SYSCFG_EXTICR3_EXTI8_PD ((uint32_t)0x00000003) /*!<PD[8] pin */
  17398. #define SYSCFG_EXTICR3_EXTI8_PE ((uint32_t)0x00000004) /*!<PE[8] pin */
  17399. #define SYSCFG_EXTICR3_EXTI8_PF ((uint32_t)0x00000005) /*!<PF[8] pin */
  17400. #define SYSCFG_EXTICR3_EXTI8_PG ((uint32_t)0x00000006) /*!<PG[8] pin */
  17401. #define SYSCFG_EXTICR3_EXTI8_PH ((uint32_t)0x00000007) /*!<PH[8] pin */
  17402. #define SYSCFG_EXTICR3_EXTI8_PJ ((uint32_t)0x00000009) /*!<PJ[8] pin */
  17403. #define SYSCFG_EXTICR3_EXTI8_PK ((uint32_t)0x0000000A) /*!<PK[8] pin */
  17404. /**
  17405. * @brief EXTI9 configuration
  17406. */
  17407. #define SYSCFG_EXTICR3_EXTI9_PA ((uint32_t)0x00000000) /*!<PA[9] pin */
  17408. #define SYSCFG_EXTICR3_EXTI9_PB ((uint32_t)0x00000010) /*!<PB[9] pin */
  17409. #define SYSCFG_EXTICR3_EXTI9_PC ((uint32_t)0x00000020) /*!<PC[9] pin */
  17410. #define SYSCFG_EXTICR3_EXTI9_PD ((uint32_t)0x00000030) /*!<PD[9] pin */
  17411. #define SYSCFG_EXTICR3_EXTI9_PE ((uint32_t)0x00000040) /*!<PE[9] pin */
  17412. #define SYSCFG_EXTICR3_EXTI9_PF ((uint32_t)0x00000050) /*!<PF[9] pin */
  17413. #define SYSCFG_EXTICR3_EXTI9_PG ((uint32_t)0x00000060) /*!<PG[9] pin */
  17414. #define SYSCFG_EXTICR3_EXTI9_PH ((uint32_t)0x00000070) /*!<PH[9] pin */
  17415. #define SYSCFG_EXTICR3_EXTI9_PJ ((uint32_t)0x00000090) /*!<PJ[9] pin */
  17416. #define SYSCFG_EXTICR3_EXTI9_PK ((uint32_t)0x000000A0) /*!<PK[9] pin */
  17417. /**
  17418. * @brief EXTI10 configuration
  17419. */
  17420. #define SYSCFG_EXTICR3_EXTI10_PA ((uint32_t)0x00000000) /*!<PA[10] pin */
  17421. #define SYSCFG_EXTICR3_EXTI10_PB ((uint32_t)0x00000100) /*!<PB[10] pin */
  17422. #define SYSCFG_EXTICR3_EXTI10_PC ((uint32_t)0x00000200) /*!<PC[10] pin */
  17423. #define SYSCFG_EXTICR3_EXTI10_PD ((uint32_t)0x00000300) /*!<PD[10] pin */
  17424. #define SYSCFG_EXTICR3_EXTI10_PE ((uint32_t)0x00000400) /*!<PE[10] pin */
  17425. #define SYSCFG_EXTICR3_EXTI10_PF ((uint32_t)0x00000500) /*!<PF[10] pin */
  17426. #define SYSCFG_EXTICR3_EXTI10_PG ((uint32_t)0x00000600) /*!<PG[10] pin */
  17427. #define SYSCFG_EXTICR3_EXTI10_PH ((uint32_t)0x00000700) /*!<PH[10] pin */
  17428. #define SYSCFG_EXTICR3_EXTI10_PJ ((uint32_t)0x00000900) /*!<PJ[10] pin */
  17429. #define SYSCFG_EXTICR3_EXTI10_PK ((uint32_t)0x00000A00) /*!<PK[10] pin */
  17430. /**
  17431. * @brief EXTI11 configuration
  17432. */
  17433. #define SYSCFG_EXTICR3_EXTI11_PA ((uint32_t)0x00000000) /*!<PA[11] pin */
  17434. #define SYSCFG_EXTICR3_EXTI11_PB ((uint32_t)0x00001000) /*!<PB[11] pin */
  17435. #define SYSCFG_EXTICR3_EXTI11_PC ((uint32_t)0x00002000) /*!<PC[11] pin */
  17436. #define SYSCFG_EXTICR3_EXTI11_PD ((uint32_t)0x00003000) /*!<PD[11] pin */
  17437. #define SYSCFG_EXTICR3_EXTI11_PE ((uint32_t)0x00004000) /*!<PE[11] pin */
  17438. #define SYSCFG_EXTICR3_EXTI11_PF ((uint32_t)0x00005000) /*!<PF[11] pin */
  17439. #define SYSCFG_EXTICR3_EXTI11_PG ((uint32_t)0x00006000) /*!<PG[11] pin */
  17440. #define SYSCFG_EXTICR3_EXTI11_PH ((uint32_t)0x00007000) /*!<PH[11] pin */
  17441. #define SYSCFG_EXTICR3_EXTI11_PJ ((uint32_t)0x00009000) /*!<PJ[11] pin */
  17442. #define SYSCFG_EXTICR3_EXTI11_PK ((uint32_t)0x0000A000) /*!<PK[11] pin */
  17443. /***************** Bit definition for SYSCFG_EXTICR4 register ***************/
  17444. #define SYSCFG_EXTICR4_EXTI12_Pos (0U)
  17445. #define SYSCFG_EXTICR4_EXTI12_Msk (0xFUL << SYSCFG_EXTICR4_EXTI12_Pos) /*!< 0x0000000F */
  17446. #define SYSCFG_EXTICR4_EXTI12 SYSCFG_EXTICR4_EXTI12_Msk /*!<EXTI 12 configuration */
  17447. #define SYSCFG_EXTICR4_EXTI13_Pos (4U)
  17448. #define SYSCFG_EXTICR4_EXTI13_Msk (0xFUL << SYSCFG_EXTICR4_EXTI13_Pos) /*!< 0x000000F0 */
  17449. #define SYSCFG_EXTICR4_EXTI13 SYSCFG_EXTICR4_EXTI13_Msk /*!<EXTI 13 configuration */
  17450. #define SYSCFG_EXTICR4_EXTI14_Pos (8U)
  17451. #define SYSCFG_EXTICR4_EXTI14_Msk (0xFUL << SYSCFG_EXTICR4_EXTI14_Pos) /*!< 0x00000F00 */
  17452. #define SYSCFG_EXTICR4_EXTI14 SYSCFG_EXTICR4_EXTI14_Msk /*!<EXTI 14 configuration */
  17453. #define SYSCFG_EXTICR4_EXTI15_Pos (12U)
  17454. #define SYSCFG_EXTICR4_EXTI15_Msk (0xFUL << SYSCFG_EXTICR4_EXTI15_Pos) /*!< 0x0000F000 */
  17455. #define SYSCFG_EXTICR4_EXTI15 SYSCFG_EXTICR4_EXTI15_Msk /*!<EXTI 15 configuration */
  17456. /**
  17457. * @brief EXTI12 configuration
  17458. */
  17459. #define SYSCFG_EXTICR4_EXTI12_PA ((uint32_t)0x00000000) /*!<PA[12] pin */
  17460. #define SYSCFG_EXTICR4_EXTI12_PB ((uint32_t)0x00000001) /*!<PB[12] pin */
  17461. #define SYSCFG_EXTICR4_EXTI12_PC ((uint32_t)0x00000002) /*!<PC[12] pin */
  17462. #define SYSCFG_EXTICR4_EXTI12_PD ((uint32_t)0x00000003) /*!<PD[12] pin */
  17463. #define SYSCFG_EXTICR4_EXTI12_PE ((uint32_t)0x00000004) /*!<PE[12] pin */
  17464. #define SYSCFG_EXTICR4_EXTI12_PF ((uint32_t)0x00000005) /*!<PF[12] pin */
  17465. #define SYSCFG_EXTICR4_EXTI12_PG ((uint32_t)0x00000006) /*!<PG[12] pin */
  17466. #define SYSCFG_EXTICR4_EXTI12_PH ((uint32_t)0x00000007) /*!<PH[12] pin */
  17467. #define SYSCFG_EXTICR4_EXTI12_PJ ((uint32_t)0x00000009) /*!<PJ[12] pin */
  17468. #define SYSCFG_EXTICR4_EXTI12_PK ((uint32_t)0x0000000A) /*!<PK[12] pin */
  17469. /**
  17470. * @brief EXTI13 configuration
  17471. */
  17472. #define SYSCFG_EXTICR4_EXTI13_PA ((uint32_t)0x00000000) /*!<PA[13] pin */
  17473. #define SYSCFG_EXTICR4_EXTI13_PB ((uint32_t)0x00000010) /*!<PB[13] pin */
  17474. #define SYSCFG_EXTICR4_EXTI13_PC ((uint32_t)0x00000020) /*!<PC[13] pin */
  17475. #define SYSCFG_EXTICR4_EXTI13_PD ((uint32_t)0x00000030) /*!<PD[13] pin */
  17476. #define SYSCFG_EXTICR4_EXTI13_PE ((uint32_t)0x00000040) /*!<PE[13] pin */
  17477. #define SYSCFG_EXTICR4_EXTI13_PF ((uint32_t)0x00000050) /*!<PF[13] pin */
  17478. #define SYSCFG_EXTICR4_EXTI13_PG ((uint32_t)0x00000060) /*!<PG[13] pin */
  17479. #define SYSCFG_EXTICR4_EXTI13_PH ((uint32_t)0x00000070) /*!<PH[13] pin */
  17480. #define SYSCFG_EXTICR4_EXTI13_PJ ((uint32_t)0x00000090) /*!<PJ[13] pin */
  17481. #define SYSCFG_EXTICR4_EXTI13_PK ((uint32_t)0x000000A0) /*!<PK[13] pin */
  17482. /**
  17483. * @brief EXTI14 configuration
  17484. */
  17485. #define SYSCFG_EXTICR4_EXTI14_PA ((uint32_t)0x00000000) /*!<PA[14] pin */
  17486. #define SYSCFG_EXTICR4_EXTI14_PB ((uint32_t)0x00000100) /*!<PB[14] pin */
  17487. #define SYSCFG_EXTICR4_EXTI14_PC ((uint32_t)0x00000200) /*!<PC[14] pin */
  17488. #define SYSCFG_EXTICR4_EXTI14_PD ((uint32_t)0x00000300) /*!<PD[14] pin */
  17489. #define SYSCFG_EXTICR4_EXTI14_PE ((uint32_t)0x00000400) /*!<PE[14] pin */
  17490. #define SYSCFG_EXTICR4_EXTI14_PF ((uint32_t)0x00000500) /*!<PF[14] pin */
  17491. #define SYSCFG_EXTICR4_EXTI14_PG ((uint32_t)0x00000600) /*!<PG[14] pin */
  17492. #define SYSCFG_EXTICR4_EXTI14_PH ((uint32_t)0x00000700) /*!<PH[14] pin */
  17493. #define SYSCFG_EXTICR4_EXTI14_PJ ((uint32_t)0x00000900) /*!<PJ[14] pin */
  17494. #define SYSCFG_EXTICR4_EXTI14_PK ((uint32_t)0x00000A00) /*!<PK[14] pin */
  17495. /**
  17496. * @brief EXTI15 configuration
  17497. */
  17498. #define SYSCFG_EXTICR4_EXTI15_PA ((uint32_t)0x00000000) /*!<PA[15] pin */
  17499. #define SYSCFG_EXTICR4_EXTI15_PB ((uint32_t)0x00001000) /*!<PB[15] pin */
  17500. #define SYSCFG_EXTICR4_EXTI15_PC ((uint32_t)0x00002000) /*!<PC[15] pin */
  17501. #define SYSCFG_EXTICR4_EXTI15_PD ((uint32_t)0x00003000) /*!<PD[15] pin */
  17502. #define SYSCFG_EXTICR4_EXTI15_PE ((uint32_t)0x00004000) /*!<PE[15] pin */
  17503. #define SYSCFG_EXTICR4_EXTI15_PF ((uint32_t)0x00005000) /*!<PF[15] pin */
  17504. #define SYSCFG_EXTICR4_EXTI15_PG ((uint32_t)0x00006000) /*!<PG[15] pin */
  17505. #define SYSCFG_EXTICR4_EXTI15_PH ((uint32_t)0x00007000) /*!<PH[15] pin */
  17506. #define SYSCFG_EXTICR4_EXTI15_PJ ((uint32_t)0x00009000) /*!<PJ[15] pin */
  17507. #define SYSCFG_EXTICR4_EXTI15_PK ((uint32_t)0x0000A000) /*!<PK[15] pin */
  17508. /****************** Bit definition for SYSCFG_CFGR register ******************/
  17509. #define SYSCFG_CFGR_PVDL_Pos (2U)
  17510. #define SYSCFG_CFGR_PVDL_Msk (0x1UL << SYSCFG_CFGR_PVDL_Pos) /*!< 0x00000004 */
  17511. #define SYSCFG_CFGR_PVDL SYSCFG_CFGR_PVDL_Msk /*!<PVD lock enable bit */
  17512. #define SYSCFG_CFGR_FLASHL_Pos (3U)
  17513. #define SYSCFG_CFGR_FLASHL_Msk (0x1UL << SYSCFG_CFGR_FLASHL_Pos) /*!< 0x00000008 */
  17514. #define SYSCFG_CFGR_FLASHL SYSCFG_CFGR_FLASHL_Msk /*!<FLASH double ECC error lock bit */
  17515. #define SYSCFG_CFGR_CM7L_Pos (6U)
  17516. #define SYSCFG_CFGR_CM7L_Msk (0x1UL << SYSCFG_CFGR_CM7L_Pos) /*!< 0x00000040 */
  17517. #define SYSCFG_CFGR_CM7L SYSCFG_CFGR_CM7L_Msk /*!<Cortex-M7 LOCKUP (Hardfault) output enable bit */
  17518. #define SYSCFG_CFGR_BKRAML_Pos (7U)
  17519. #define SYSCFG_CFGR_BKRAML_Msk (0x1UL << SYSCFG_CFGR_BKRAML_Pos) /*!< 0x00000080 */
  17520. #define SYSCFG_CFGR_BKRAML SYSCFG_CFGR_BKRAML_Msk /*!<Backup SRAM double ECC error lock bit */
  17521. #define SYSCFG_CFGR_SRAM4L_Pos (9U)
  17522. #define SYSCFG_CFGR_SRAM4L_Msk (0x1UL << SYSCFG_CFGR_SRAM4L_Pos) /*!< 0x00000200 */
  17523. #define SYSCFG_CFGR_SRAM4L SYSCFG_CFGR_SRAM4L_Msk /*!<SRAM4 double ECC error lock bit */
  17524. #define SYSCFG_CFGR_SRAM2L_Pos (11U)
  17525. #define SYSCFG_CFGR_SRAM2L_Msk (0x1UL << SYSCFG_CFGR_SRAM2L_Pos) /*!< 0x00000800 */
  17526. #define SYSCFG_CFGR_SRAM2L SYSCFG_CFGR_SRAM2L_Msk /*!<SRAM2 double ECC error lock bit */
  17527. #define SYSCFG_CFGR_SRAM1L_Pos (12U)
  17528. #define SYSCFG_CFGR_SRAM1L_Msk (0x1UL << SYSCFG_CFGR_SRAM1L_Pos) /*!< 0x00001000 */
  17529. #define SYSCFG_CFGR_SRAM1L SYSCFG_CFGR_SRAM1L_Msk /*!<SRAM1 double ECC error lock bit */
  17530. #define SYSCFG_CFGR_DTCML_Pos (13U)
  17531. #define SYSCFG_CFGR_DTCML_Msk (0x1UL << SYSCFG_CFGR_DTCML_Pos) /*!< 0x00002000 */
  17532. #define SYSCFG_CFGR_DTCML SYSCFG_CFGR_DTCML_Msk /*!<DTCM double ECC error lock bit */
  17533. #define SYSCFG_CFGR_ITCML_Pos (14U)
  17534. #define SYSCFG_CFGR_ITCML_Msk (0x1UL << SYSCFG_CFGR_ITCML_Pos) /*!< 0x00004000 */
  17535. #define SYSCFG_CFGR_ITCML SYSCFG_CFGR_ITCML_Msk /*!<ITCM double ECC error lock bit */
  17536. #define SYSCFG_CFGR_AXISRAML_Pos (15U)
  17537. #define SYSCFG_CFGR_AXISRAML_Msk (0x1UL << SYSCFG_CFGR_AXISRAML_Pos) /*!< 0x00008000 */
  17538. #define SYSCFG_CFGR_AXISRAML SYSCFG_CFGR_AXISRAML_Msk /*!<AXISRAM double ECC error lock bit */
  17539. /****************** Bit definition for SYSCFG_CCCSR register ******************/
  17540. #define SYSCFG_CCCSR_EN_Pos (0U)
  17541. #define SYSCFG_CCCSR_EN_Msk (0x1UL << SYSCFG_CCCSR_EN_Pos) /*!< 0x00000001 */
  17542. #define SYSCFG_CCCSR_EN SYSCFG_CCCSR_EN_Msk /*!< I/O compensation cell enable */
  17543. #define SYSCFG_CCCSR_CS_Pos (1U)
  17544. #define SYSCFG_CCCSR_CS_Msk (0x1UL << SYSCFG_CCCSR_CS_Pos) /*!< 0x00000002 */
  17545. #define SYSCFG_CCCSR_CS SYSCFG_CCCSR_CS_Msk /*!< I/O compensation cell code selection */
  17546. #define SYSCFG_CCCSR_READY_Pos (8U)
  17547. #define SYSCFG_CCCSR_READY_Msk (0x1UL << SYSCFG_CCCSR_READY_Pos) /*!< 0x00000100 */
  17548. #define SYSCFG_CCCSR_READY SYSCFG_CCCSR_READY_Msk /*!< I/O compensation cell ready flag */
  17549. #define SYSCFG_CCCSR_HSLV_Pos (16U)
  17550. #define SYSCFG_CCCSR_HSLV_Msk (0x1UL << SYSCFG_CCCSR_HSLV_Pos) /*!< 0x00010000 */
  17551. #define SYSCFG_CCCSR_HSLV SYSCFG_CCCSR_HSLV_Msk /*!< High-speed at low-voltage */
  17552. /****************** Bit definition for SYSCFG_CCVR register *******************/
  17553. #define SYSCFG_CCVR_NCV_Pos (0U)
  17554. #define SYSCFG_CCVR_NCV_Msk (0xFUL << SYSCFG_CCVR_NCV_Pos) /*!< 0x0000000F */
  17555. #define SYSCFG_CCVR_NCV SYSCFG_CCVR_NCV_Msk /*!< NMOS compensation value */
  17556. #define SYSCFG_CCVR_PCV_Pos (4U)
  17557. #define SYSCFG_CCVR_PCV_Msk (0xFUL << SYSCFG_CCVR_PCV_Pos) /*!< 0x000000F0 */
  17558. #define SYSCFG_CCVR_PCV SYSCFG_CCVR_PCV_Msk /*!< PMOS compensation value */
  17559. /****************** Bit definition for SYSCFG_CCCR register *******************/
  17560. #define SYSCFG_CCCR_NCC_Pos (0U)
  17561. #define SYSCFG_CCCR_NCC_Msk (0xFUL << SYSCFG_CCCR_NCC_Pos) /*!< 0x0000000F */
  17562. #define SYSCFG_CCCR_NCC SYSCFG_CCCR_NCC_Msk /*!< NMOS compensation code */
  17563. #define SYSCFG_CCCR_PCC_Pos (4U)
  17564. #define SYSCFG_CCCR_PCC_Msk (0xFUL << SYSCFG_CCCR_PCC_Pos) /*!< 0x000000F0 */
  17565. #define SYSCFG_CCCR_PCC SYSCFG_CCCR_PCC_Msk /*!< PMOS compensation code */
  17566. /****************** Bit definition for SYSCFG_ADC2ALT register *******************/
  17567. #define SYSCFG_ADC2ALT_ADC2_ROUT0_Pos (0U)
  17568. #define SYSCFG_ADC2ALT_ADC2_ROUT0_Msk (0x1UL << SYSCFG_ADC2ALT_ADC2_ROUT0_Pos) /*!< 0x00000001 */
  17569. #define SYSCFG_ADC2ALT_ADC2_ROUT0 SYSCFG_ADC2ALT_ADC2_ROUT0_Msk /*!< VBAT/4 connected to ADC2 V_INP[16] */
  17570. #define SYSCFG_ADC2ALT_ADC2_ROUT1_Pos (1U)
  17571. #define SYSCFG_ADC2ALT_ADC2_ROUT1_Msk (0x1UL << SYSCFG_ADC2ALT_ADC2_ROUT1_Pos) /*!< 0x00000002 */
  17572. #define SYSCFG_ADC2ALT_ADC2_ROUT1 SYSCFG_ADC2ALT_ADC2_ROUT1_Msk /*!< Internal reference voltage (V_REFINT) connected to ADC2 V_INP[17] */
  17573. /****************** Bit definition for SYSCFG_PKGR register *******************/
  17574. #define SYSCFG_PKGR_PKG_Pos (0U)
  17575. #define SYSCFG_PKGR_PKG_Msk (0xFUL << SYSCFG_PKGR_PKG_Pos) /*!< 0x0000000F */
  17576. #define SYSCFG_PKGR_PKG SYSCFG_PKGR_PKG_Msk /*!< Package type */
  17577. /****************** Bit definition for SYSCFG_UR0 register *******************/
  17578. #define SYSCFG_UR0_RDP_Pos (16U)
  17579. #define SYSCFG_UR0_RDP_Msk (0xFFUL << SYSCFG_UR0_RDP_Pos) /*!< 0x00FF0000 */
  17580. #define SYSCFG_UR0_RDP SYSCFG_UR0_RDP_Msk /*!< Readout protection */
  17581. /****************** Bit definition for SYSCFG_UR2 register *******************/
  17582. #define SYSCFG_UR2_BORH_Pos (0U)
  17583. #define SYSCFG_UR2_BORH_Msk (0x3UL << SYSCFG_UR2_BORH_Pos) /*!< 0x00000003 */
  17584. #define SYSCFG_UR2_BORH SYSCFG_UR2_BORH_Msk /*!< Brown Out Reset High level */
  17585. #define SYSCFG_UR2_BORH_0 (0x1UL << SYSCFG_UR2_BORH_Pos) /*!< 0x00000001 */
  17586. #define SYSCFG_UR2_BORH_1 (0x2UL << SYSCFG_UR2_BORH_Pos) /*!< 0x00000002 */
  17587. #define SYSCFG_UR2_BOOT_ADD0_Pos (16U)
  17588. #define SYSCFG_UR2_BOOT_ADD0_Msk (0xFFFFUL << SYSCFG_UR2_BOOT_ADD0_Pos) /*!< 0xFFFF0000 */
  17589. #define SYSCFG_UR2_BOOT_ADD0 SYSCFG_UR2_BOOT_ADD0_Msk /*!< Core Boot Address 0 */
  17590. /****************** Bit definition for SYSCFG_UR3 register *******************/
  17591. #define SYSCFG_UR3_BOOT_ADD1_Pos (0U)
  17592. #define SYSCFG_UR3_BOOT_ADD1_Msk (0xFFFFUL << SYSCFG_UR3_BOOT_ADD1_Pos) /*!< 0x0000FFFF */
  17593. #define SYSCFG_UR3_BOOT_ADD1 SYSCFG_UR3_BOOT_ADD1_Msk /*!< Core Boot Address 1 */
  17594. /****************** Bit definition for SYSCFG_UR4 register *******************/
  17595. #define SYSCFG_UR4_MEPAD_BANK1_Pos (16U)
  17596. #define SYSCFG_UR4_MEPAD_BANK1_Msk (0x1UL << SYSCFG_UR4_MEPAD_BANK1_Pos) /*!< 0x00010000 */
  17597. #define SYSCFG_UR4_MEPAD_BANK1 SYSCFG_UR4_MEPAD_BANK1_Msk /*!< Mass Erase Protected Area Disabled for bank 1 */
  17598. /****************** Bit definition for SYSCFG_UR5 register *******************/
  17599. #define SYSCFG_UR5_MESAD_BANK1_Pos (0U)
  17600. #define SYSCFG_UR5_MESAD_BANK1_Msk (0x1UL << SYSCFG_UR5_MESAD_BANK1_Pos) /*!< 0x00000001 */
  17601. #define SYSCFG_UR5_MESAD_BANK1 SYSCFG_UR5_MESAD_BANK1_Msk /*!< Mass erase secured area disabled for bank 1 */
  17602. #define SYSCFG_UR5_WRPN_BANK1_Pos (16U)
  17603. #define SYSCFG_UR5_WRPN_BANK1_Msk (0xFFUL << SYSCFG_UR5_WRPN_BANK1_Pos) /*!< 0x00FF0000 */
  17604. #define SYSCFG_UR5_WRPN_BANK1 SYSCFG_UR5_WRPN_BANK1_Msk /*!< Write protection for flash bank 1 */
  17605. /****************** Bit definition for SYSCFG_UR6 register *******************/
  17606. #define SYSCFG_UR6_PABEG_BANK1_Pos (0U)
  17607. #define SYSCFG_UR6_PABEG_BANK1_Msk (0xFFFUL << SYSCFG_UR6_PABEG_BANK1_Pos) /*!< 0x00000FFF */
  17608. #define SYSCFG_UR6_PABEG_BANK1 SYSCFG_UR6_PABEG_BANK1_Msk /*!< Protected area start address for bank 1 */
  17609. #define SYSCFG_UR6_PAEND_BANK1_Pos (16U)
  17610. #define SYSCFG_UR6_PAEND_BANK1_Msk (0xFFFUL << SYSCFG_UR6_PAEND_BANK1_Pos) /*!< 0x0FFF0000 */
  17611. #define SYSCFG_UR6_PAEND_BANK1 SYSCFG_UR6_PAEND_BANK1_Msk /*!< Protected area end address for bank 1 */
  17612. /****************** Bit definition for SYSCFG_UR7 register *******************/
  17613. #define SYSCFG_UR7_SABEG_BANK1_Pos (0U)
  17614. #define SYSCFG_UR7_SABEG_BANK1_Msk (0xFFFUL << SYSCFG_UR7_SABEG_BANK1_Pos) /*!< 0x00000FFF */
  17615. #define SYSCFG_UR7_SABEG_BANK1 SYSCFG_UR7_SABEG_BANK1_Msk /*!< Secured area start address for bank 1 */
  17616. #define SYSCFG_UR7_SAEND_BANK1_Pos (16U)
  17617. #define SYSCFG_UR7_SAEND_BANK1_Msk (0xFFFUL << SYSCFG_UR7_SAEND_BANK1_Pos) /*!< 0x0FFF0000 */
  17618. #define SYSCFG_UR7_SAEND_BANK1 SYSCFG_UR7_SAEND_BANK1_Msk /*!< Secured area end address for bank 1 */
  17619. /****************** Bit definition for SYSCFG_UR11 register *******************/
  17620. #define SYSCFG_UR11_IWDG1M_Pos (16U)
  17621. #define SYSCFG_UR11_IWDG1M_Msk (0x1UL << SYSCFG_UR11_IWDG1M_Pos) /*!< 0x00010000 */
  17622. #define SYSCFG_UR11_IWDG1M SYSCFG_UR11_IWDG1M_Msk /*!< Independent Watchdog 1 mode (SW or HW) */
  17623. /****************** Bit definition for SYSCFG_UR12 register *******************/
  17624. #define SYSCFG_UR12_SECURE_Pos (16U)
  17625. #define SYSCFG_UR12_SECURE_Msk (0x1UL << SYSCFG_UR12_SECURE_Pos) /*!< 0x00010000 */
  17626. #define SYSCFG_UR12_SECURE SYSCFG_UR12_SECURE_Msk /*!< Secure mode status */
  17627. /****************** Bit definition for SYSCFG_UR13 register *******************/
  17628. #define SYSCFG_UR13_SDRS_Pos (0U)
  17629. #define SYSCFG_UR13_SDRS_Msk (0x3UL << SYSCFG_UR13_SDRS_Pos) /*!< 0x00000003 */
  17630. #define SYSCFG_UR13_SDRS SYSCFG_UR13_SDRS_Msk /*!< Secured DTCM RAM Size */
  17631. #define SYSCFG_UR13_D1SBRST_Pos (16U)
  17632. #define SYSCFG_UR13_D1SBRST_Msk (0x1UL << SYSCFG_UR13_D1SBRST_Pos) /*!< 0x00010000 */
  17633. #define SYSCFG_UR13_D1SBRST SYSCFG_UR13_D1SBRST_Msk /*!< D1 Standby reset */
  17634. /****************** Bit definition for SYSCFG_UR14 register *******************/
  17635. #define SYSCFG_UR14_D1STPRST_Pos (0U)
  17636. #define SYSCFG_UR14_D1STPRST_Msk (0x1UL << SYSCFG_UR14_D1STPRST_Pos) /*!< 0x00000001 */
  17637. #define SYSCFG_UR14_D1STPRST SYSCFG_UR14_D1STPRST_Msk /*!< D1 Stop Reset */
  17638. /****************** Bit definition for SYSCFG_UR15 register *******************/
  17639. #define SYSCFG_UR15_FZIWDGSTB_Pos (16U)
  17640. #define SYSCFG_UR15_FZIWDGSTB_Msk (0x1UL << SYSCFG_UR15_FZIWDGSTB_Pos) /*!< 0x00010000 */
  17641. #define SYSCFG_UR15_FZIWDGSTB SYSCFG_UR15_FZIWDGSTB_Msk /*!< Freeze independent watchdogs in Standby mode */
  17642. /****************** Bit definition for SYSCFG_UR16 register *******************/
  17643. #define SYSCFG_UR16_FZIWDGSTP_Pos (0U)
  17644. #define SYSCFG_UR16_FZIWDGSTP_Msk (0x1UL << SYSCFG_UR16_FZIWDGSTP_Pos) /*!< 0x00000001 */
  17645. #define SYSCFG_UR16_FZIWDGSTP SYSCFG_UR16_FZIWDGSTP_Msk /*!< Freeze independent watchdogs in Stop mode */
  17646. #define SYSCFG_UR16_PKP_Pos (16U)
  17647. #define SYSCFG_UR16_PKP_Msk (0x1UL << SYSCFG_UR16_PKP_Pos) /*!< 0x00010000 */
  17648. #define SYSCFG_UR16_PKP SYSCFG_UR16_PKP_Msk /*!< Private key programmed */
  17649. /****************** Bit definition for SYSCFG_UR17 register *******************/
  17650. #define SYSCFG_UR17_IOHSLV_Pos (0U)
  17651. #define SYSCFG_UR17_IOHSLV_Msk (0x1UL << SYSCFG_UR17_IOHSLV_Pos) /*!< 0x00000001 */
  17652. #define SYSCFG_UR17_IOHSLV SYSCFG_UR17_IOHSLV_Msk /*!< I/O high speed / low voltage */
  17653. #define SYSCFG_UR17_TCM_AXI_CFG_Pos (16U)
  17654. #define SYSCFG_UR17_TCM_AXI_CFG_Msk (0x3UL << SYSCFG_UR17_TCM_AXI_CFG_Pos) /*!< 0x00030000 */
  17655. #define SYSCFG_UR17_TCM_AXI_CFG SYSCFG_UR17_TCM_AXI_CFG_Msk /*!< ITCM-RAM / AXI-SRAM size */
  17656. /****************** Bit definition for SYSCFG_UR18 register *******************/
  17657. #define SYSCFG_UR18_CPU_FREQ_BOOST_Pos (0U)
  17658. #define SYSCFG_UR18_CPU_FREQ_BOOST_Msk (0x1UL << SYSCFG_UR18_CPU_FREQ_BOOST_Pos) /*!< 0x00000001 */
  17659. #define SYSCFG_UR18_CPU_FREQ_BOOST SYSCFG_UR18_CPU_FREQ_BOOST_Msk /*!< CPU maximum frequency boost enable */
  17660. /******************************************************************************/
  17661. /* */
  17662. /* Digital Temperature Sensor (DTS) */
  17663. /* */
  17664. /******************************************************************************/
  17665. /****************** Bit definition for DTS_CFGR1 register ******************/
  17666. #define DTS_CFGR1_TS1_EN_Pos (0U)
  17667. #define DTS_CFGR1_TS1_EN_Msk (0x1UL << DTS_CFGR1_TS1_EN_Pos) /*!< 0x00000001 */
  17668. #define DTS_CFGR1_TS1_EN DTS_CFGR1_TS1_EN_Msk /*!< DTS Enable */
  17669. #define DTS_CFGR1_TS1_START_Pos (4U)
  17670. #define DTS_CFGR1_TS1_START_Msk (0x1UL << DTS_CFGR1_TS1_START_Pos) /*!< 0x00000010 */
  17671. #define DTS_CFGR1_TS1_START DTS_CFGR1_TS1_START_Msk /*!< Proceed to a frequency measurement on DTS */
  17672. #define DTS_CFGR1_TS1_INTRIG_SEL_Pos (8U)
  17673. #define DTS_CFGR1_TS1_INTRIG_SEL_Msk (0xFUL << DTS_CFGR1_TS1_INTRIG_SEL_Pos) /*!< 0x00000F00 */
  17674. #define DTS_CFGR1_TS1_INTRIG_SEL DTS_CFGR1_TS1_INTRIG_SEL_Msk /*!< Input triggers selection bits [3:0] for DTS */
  17675. #define DTS_CFGR1_TS1_INTRIG_SEL_0 (0x1UL << DTS_CFGR1_TS1_INTRIG_SEL_Pos) /*!< 0x00000100 */
  17676. #define DTS_CFGR1_TS1_INTRIG_SEL_1 (0x2UL << DTS_CFGR1_TS1_INTRIG_SEL_Pos) /*!< 0x00000200 */
  17677. #define DTS_CFGR1_TS1_INTRIG_SEL_2 (0x4UL << DTS_CFGR1_TS1_INTRIG_SEL_Pos) /*!< 0x00000400 */
  17678. #define DTS_CFGR1_TS1_INTRIG_SEL_3 (0x8UL << DTS_CFGR1_TS1_INTRIG_SEL_Pos) /*!< 0x00000800 */
  17679. #define DTS_CFGR1_TS1_SMP_TIME_Pos (16U)
  17680. #define DTS_CFGR1_TS1_SMP_TIME_Msk (0xFUL << DTS_CFGR1_TS1_SMP_TIME_Pos) /*!< 0x000F0000 */
  17681. #define DTS_CFGR1_TS1_SMP_TIME DTS_CFGR1_TS1_SMP_TIME_Msk /*!< Sample time [3:0] for DTS */
  17682. #define DTS_CFGR1_TS1_SMP_TIME_0 (0x1UL << DTS_CFGR1_TS1_SMP_TIME_Pos) /*!< 0x00010000 */
  17683. #define DTS_CFGR1_TS1_SMP_TIME_1 (0x2UL << DTS_CFGR1_TS1_SMP_TIME_Pos) /*!< 0x00020000 */
  17684. #define DTS_CFGR1_TS1_SMP_TIME_2 (0x4UL << DTS_CFGR1_TS1_SMP_TIME_Pos) /*!< 0x00040000 */
  17685. #define DTS_CFGR1_TS1_SMP_TIME_3 (0x8UL << DTS_CFGR1_TS1_SMP_TIME_Pos) /*!< 0x00080000 */
  17686. #define DTS_CFGR1_REFCLK_SEL_Pos (20U)
  17687. #define DTS_CFGR1_REFCLK_SEL_Msk (0x1UL << DTS_CFGR1_REFCLK_SEL_Pos) /*!< 0x00100000 */
  17688. #define DTS_CFGR1_REFCLK_SEL DTS_CFGR1_REFCLK_SEL_Msk /*!< Reference Clock Selection */
  17689. #define DTS_CFGR1_Q_MEAS_OPT_Pos (21U)
  17690. #define DTS_CFGR1_Q_MEAS_OPT_Msk (0x1UL << DTS_CFGR1_Q_MEAS_OPT_Pos) /*!< 0x00200000 */
  17691. #define DTS_CFGR1_Q_MEAS_OPT DTS_CFGR1_Q_MEAS_OPT_Msk /*!< Quick measure option bit */
  17692. #define DTS_CFGR1_HSREF_CLK_DIV_Pos (24U)
  17693. #define DTS_CFGR1_HSREF_CLK_DIV_Msk (0x7FUL << DTS_CFGR1_HSREF_CLK_DIV_Pos) /*!< 0x7F000000 */
  17694. #define DTS_CFGR1_HSREF_CLK_DIV DTS_CFGR1_HSREF_CLK_DIV_Msk /*!< High Speed Clock Divider Ratio [6:0]*/
  17695. /****************** Bit definition for DTS_T0VALR1 register ******************/
  17696. #define DTS_T0VALR1_TS1_FMT0_Pos (0U)
  17697. #define DTS_T0VALR1_TS1_FMT0_Msk (0xFFFFUL << DTS_T0VALR1_TS1_FMT0_Pos) /*!< 0x0000FFFF */
  17698. #define DTS_T0VALR1_TS1_FMT0 DTS_T0VALR1_TS1_FMT0_Msk /*!< Engineering value of the measured frequency at T0 for DTS */
  17699. #define DTS_T0VALR1_TS1_T0_Pos (16U)
  17700. #define DTS_T0VALR1_TS1_T0_Msk (0x3UL << DTS_T0VALR1_TS1_T0_Pos) /*!< 0x00030000 */
  17701. #define DTS_T0VALR1_TS1_T0 DTS_T0VALR1_TS1_T0_Msk /*!< Engineering value of the DTSerature T0 for DTS */
  17702. /****************** Bit definition for DTS_RAMPVALR register ******************/
  17703. #define DTS_RAMPVALR_TS1_RAMP_COEFF_Pos (0U)
  17704. #define DTS_RAMPVALR_TS1_RAMP_COEFF_Msk (0xFFFFUL << DTS_RAMPVALR_TS1_RAMP_COEFF_Pos) /*!< 0x0000FFFF */
  17705. #define DTS_RAMPVALR_TS1_RAMP_COEFF DTS_RAMPVALR_TS1_RAMP_COEFF_Msk /*!< Engineering value of the ramp coefficient for DTS */
  17706. /****************** Bit definition for DTS_ITR1 register ******************/
  17707. #define DTS_ITR1_TS1_LITTHD_Pos (0U)
  17708. #define DTS_ITR1_TS1_LITTHD_Msk (0xFFFFUL << DTS_ITR1_TS1_LITTHD_Pos) /*!< 0x0000FFFF */
  17709. #define DTS_ITR1_TS1_LITTHD DTS_ITR1_TS1_LITTHD_Msk /*!< Low interrupt threshold[15:0] for DTS */
  17710. #define DTS_ITR1_TS1_HITTHD_Pos (16U)
  17711. #define DTS_ITR1_TS1_HITTHD_Msk (0xFFFFUL << DTS_ITR1_TS1_HITTHD_Pos) /*!< 0xFFFF0000 */
  17712. #define DTS_ITR1_TS1_HITTHD DTS_ITR1_TS1_HITTHD_Msk /*!< High interrupt threshold[15:0] for DTS */
  17713. /****************** Bit definition for DTS_DR register ******************/
  17714. #define DTS_DR_TS1_MFREQ_Pos (0U)
  17715. #define DTS_DR_TS1_MFREQ_Msk (0xFFFFUL << DTS_DR_TS1_MFREQ_Pos) /*!< 0x0000FFFF */
  17716. #define DTS_DR_TS1_MFREQ DTS_DR_TS1_MFREQ_Msk /*!< Measured Frequency[15:0] for DTS */
  17717. /****************** Bit definition for DTS_SR register ******************/
  17718. #define DTS_SR_TS1_ITEF_Pos (0U)
  17719. #define DTS_SR_TS1_ITEF_Msk (0x1UL << DTS_SR_TS1_ITEF_Pos) /*!< 0x00000001 */
  17720. #define DTS_SR_TS1_ITEF DTS_SR_TS1_ITEF_Msk /*!< Interrupt flag for end of measure for DTS */
  17721. #define DTS_SR_TS1_ITLF_Pos (1U)
  17722. #define DTS_SR_TS1_ITLF_Msk (0x1UL << DTS_SR_TS1_ITLF_Pos) /*!< 0x00000002 */
  17723. #define DTS_SR_TS1_ITLF DTS_SR_TS1_ITLF_Msk /*!< Interrupt flag for low threshold for DTS */
  17724. #define DTS_SR_TS1_ITHF_Pos (2U)
  17725. #define DTS_SR_TS1_ITHF_Msk (0x1UL << DTS_SR_TS1_ITHF_Pos) /*!< 0x00000004 */
  17726. #define DTS_SR_TS1_ITHF DTS_SR_TS1_ITHF_Msk /*!< Interrupt flag for high threshold for DTS */
  17727. #define DTS_SR_TS1_AITEF_Pos (4U)
  17728. #define DTS_SR_TS1_AITEF_Msk (0x1UL << DTS_SR_TS1_AITEF_Pos) /*!< 0x00000010 */
  17729. #define DTS_SR_TS1_AITEF DTS_SR_TS1_AITEF_Msk /*!< Asynchronous interrupt flag for end of measure for DTS */
  17730. #define DTS_SR_TS1_AITLF_Pos (5U)
  17731. #define DTS_SR_TS1_AITLF_Msk (0x1UL << DTS_SR_TS1_AITLF_Pos) /*!< 0x00000020 */
  17732. #define DTS_SR_TS1_AITLF DTS_SR_TS1_AITLF_Msk /*!< Asynchronous interrupt flag for low threshold for DTS */
  17733. #define DTS_SR_TS1_AITHF_Pos (6U)
  17734. #define DTS_SR_TS1_AITHF_Msk (0x1UL << DTS_SR_TS1_AITHF_Pos) /*!< 0x00000040 */
  17735. #define DTS_SR_TS1_AITHF DTS_SR_TS1_AITHF_Msk /*!< Asynchronous interrupt flag for high threshold for DTS */
  17736. #define DTS_SR_TS1_RDY_Pos (15U)
  17737. #define DTS_SR_TS1_RDY_Msk (0x1UL << DTS_SR_TS1_RDY_Pos) /*!< 0x00008000 */
  17738. #define DTS_SR_TS1_RDY DTS_SR_TS1_RDY_Msk /*!< DTS ready flag */
  17739. /****************** Bit definition for DTS_ITENR register ******************/
  17740. #define DTS_ITENR_TS1_ITEEN_Pos (0U)
  17741. #define DTS_ITENR_TS1_ITEEN_Msk (0x1UL << DTS_ITENR_TS1_ITEEN_Pos) /*!< 0x00000001 */
  17742. #define DTS_ITENR_TS1_ITEEN DTS_ITENR_TS1_ITEEN_Msk /*!< Enable interrupt flag for end of measure for DTS */
  17743. #define DTS_ITENR_TS1_ITLEN_Pos (1U)
  17744. #define DTS_ITENR_TS1_ITLEN_Msk (0x1UL << DTS_ITENR_TS1_ITLEN_Pos) /*!< 0x00000002 */
  17745. #define DTS_ITENR_TS1_ITLEN DTS_ITENR_TS1_ITLEN_Msk /*!< Enable interrupt flag for low threshold for DTS */
  17746. #define DTS_ITENR_TS1_ITHEN_Pos (2U)
  17747. #define DTS_ITENR_TS1_ITHEN_Msk (0x1UL << DTS_ITENR_TS1_ITHEN_Pos) /*!< 0x00000004 */
  17748. #define DTS_ITENR_TS1_ITHEN DTS_ITENR_TS1_ITHEN_Msk /*!< Enable interrupt flag for high threshold for DTS */
  17749. #define DTS_ITENR_TS1_AITEEN_Pos (4U)
  17750. #define DTS_ITENR_TS1_AITEEN_Msk (0x1UL << DTS_ITENR_TS1_AITEEN_Pos) /*!< 0x00000010 */
  17751. #define DTS_ITENR_TS1_AITEEN DTS_ITENR_TS1_AITEEN_Msk /*!< Enable asynchronous interrupt flag for end of measure for DTS */
  17752. #define DTS_ITENR_TS1_AITLEN_Pos (5U)
  17753. #define DTS_ITENR_TS1_AITLEN_Msk (0x1UL << DTS_ITENR_TS1_AITLEN_Pos) /*!< 0x00000020 */
  17754. #define DTS_ITENR_TS1_AITLEN DTS_ITENR_TS1_AITLEN_Msk /*!< Enable Asynchronous interrupt flag for low threshold for DTS */
  17755. #define DTS_ITENR_TS1_AITHEN_Pos (6U)
  17756. #define DTS_ITENR_TS1_AITHEN_Msk (0x1UL << DTS_ITENR_TS1_AITHEN_Pos) /*!< 0x00000040 */
  17757. #define DTS_ITENR_TS1_AITHEN DTS_ITENR_TS1_AITHEN_Msk /*!< Enable asynchronous interrupt flag for high threshold for DTS */
  17758. /****************** Bit definition for DTS_ICIFR register ******************/
  17759. #define DTS_ICIFR_TS1_CITEF_Pos (0U)
  17760. #define DTS_ICIFR_TS1_CITEF_Msk (0x1UL << DTS_ICIFR_TS1_CITEF_Pos) /*!< 0x00000001 */
  17761. #define DTS_ICIFR_TS1_CITEF DTS_ICIFR_TS1_CITEF_Msk /*!< Clear the IT flag for End Of Measure for DTS */
  17762. #define DTS_ICIFR_TS1_CITLF_Pos (1U)
  17763. #define DTS_ICIFR_TS1_CITLF_Msk (0x1UL << DTS_ICIFR_TS1_CITLF_Pos) /*!< 0x00000002 */
  17764. #define DTS_ICIFR_TS1_CITLF DTS_ICIFR_TS1_CITLF_Msk /*!< Clear the IT flag for low threshold for DTS */
  17765. #define DTS_ICIFR_TS1_CITHF_Pos (2U)
  17766. #define DTS_ICIFR_TS1_CITHF_Msk (0x1UL << DTS_ICIFR_TS1_CITHF_Pos) /*!< 0x00000004 */
  17767. #define DTS_ICIFR_TS1_CITHF DTS_ICIFR_TS1_CITHF_Msk /*!< Clear the IT flag for high threshold on DTS */
  17768. #define DTS_ICIFR_TS1_CAITEF_Pos (4U)
  17769. #define DTS_ICIFR_TS1_CAITEF_Msk (0x1UL << DTS_ICIFR_TS1_CAITEF_Pos) /*!< 0x00000010 */
  17770. #define DTS_ICIFR_TS1_CAITEF DTS_ICIFR_TS1_CAITEF_Msk /*!< Clear the asynchronous IT flag for End Of Measure for DTS */
  17771. #define DTS_ICIFR_TS1_CAITLF_Pos (5U)
  17772. #define DTS_ICIFR_TS1_CAITLF_Msk (0x1UL << DTS_ICIFR_TS1_CAITLF_Pos) /*!< 0x00000020 */
  17773. #define DTS_ICIFR_TS1_CAITLF DTS_ICIFR_TS1_CAITLF_Msk /*!< Clear the asynchronous IT flag for low threshold for DTS */
  17774. #define DTS_ICIFR_TS1_CAITHF_Pos (6U)
  17775. #define DTS_ICIFR_TS1_CAITHF_Msk (0x1UL << DTS_ICIFR_TS1_CAITHF_Pos) /*!< 0x00000040 */
  17776. #define DTS_ICIFR_TS1_CAITHF DTS_ICIFR_TS1_CAITHF_Msk /*!< Clear the asynchronous IT flag for high threshold on DTS */
  17777. /******************************************************************************/
  17778. /* */
  17779. /* TIM */
  17780. /* */
  17781. /******************************************************************************/
  17782. #define TIM_BREAK_INPUT_SUPPORT /*!<TIM Break input feature */
  17783. /******************* Bit definition for TIM_CR1 register ********************/
  17784. #define TIM_CR1_CEN_Pos (0U)
  17785. #define TIM_CR1_CEN_Msk (0x1UL << TIM_CR1_CEN_Pos) /*!< 0x00000001 */
  17786. #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */
  17787. #define TIM_CR1_UDIS_Pos (1U)
  17788. #define TIM_CR1_UDIS_Msk (0x1UL << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */
  17789. #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */
  17790. #define TIM_CR1_URS_Pos (2U)
  17791. #define TIM_CR1_URS_Msk (0x1UL << TIM_CR1_URS_Pos) /*!< 0x00000004 */
  17792. #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */
  17793. #define TIM_CR1_OPM_Pos (3U)
  17794. #define TIM_CR1_OPM_Msk (0x1UL << TIM_CR1_OPM_Pos) /*!< 0x00000008 */
  17795. #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */
  17796. #define TIM_CR1_DIR_Pos (4U)
  17797. #define TIM_CR1_DIR_Msk (0x1UL << TIM_CR1_DIR_Pos) /*!< 0x00000010 */
  17798. #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */
  17799. #define TIM_CR1_CMS_Pos (5U)
  17800. #define TIM_CR1_CMS_Msk (0x3UL << TIM_CR1_CMS_Pos) /*!< 0x00000060 */
  17801. #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */
  17802. #define TIM_CR1_CMS_0 (0x1UL << TIM_CR1_CMS_Pos) /*!< 0x00000020 */
  17803. #define TIM_CR1_CMS_1 (0x2UL << TIM_CR1_CMS_Pos) /*!< 0x00000040 */
  17804. #define TIM_CR1_ARPE_Pos (7U)
  17805. #define TIM_CR1_ARPE_Msk (0x1UL << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */
  17806. #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */
  17807. #define TIM_CR1_CKD_Pos (8U)
  17808. #define TIM_CR1_CKD_Msk (0x3UL << TIM_CR1_CKD_Pos) /*!< 0x00000300 */
  17809. #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */
  17810. #define TIM_CR1_CKD_0 (0x1UL << TIM_CR1_CKD_Pos) /*!< 0x00000100 */
  17811. #define TIM_CR1_CKD_1 (0x2UL << TIM_CR1_CKD_Pos) /*!< 0x00000200 */
  17812. #define TIM_CR1_UIFREMAP_Pos (11U)
  17813. #define TIM_CR1_UIFREMAP_Msk (0x1UL << TIM_CR1_UIFREMAP_Pos) /*!< 0x00000800 */
  17814. #define TIM_CR1_UIFREMAP TIM_CR1_UIFREMAP_Msk /*!<Update interrupt flag remap */
  17815. /******************* Bit definition for TIM_CR2 register ********************/
  17816. #define TIM_CR2_CCPC_Pos (0U)
  17817. #define TIM_CR2_CCPC_Msk (0x1UL << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  17818. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  17819. #define TIM_CR2_CCUS_Pos (2U)
  17820. #define TIM_CR2_CCUS_Msk (0x1UL << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  17821. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  17822. #define TIM_CR2_CCDS_Pos (3U)
  17823. #define TIM_CR2_CCDS_Msk (0x1UL << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  17824. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  17825. #define TIM_CR2_MMS_Pos (4U)
  17826. #define TIM_CR2_MMS_Msk (0x7UL << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  17827. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  17828. #define TIM_CR2_MMS_0 (0x1UL << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  17829. #define TIM_CR2_MMS_1 (0x2UL << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  17830. #define TIM_CR2_MMS_2 (0x4UL << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  17831. #define TIM_CR2_TI1S_Pos (7U)
  17832. #define TIM_CR2_TI1S_Msk (0x1UL << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  17833. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  17834. #define TIM_CR2_OIS1_Pos (8U)
  17835. #define TIM_CR2_OIS1_Msk (0x1UL << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  17836. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  17837. #define TIM_CR2_OIS1N_Pos (9U)
  17838. #define TIM_CR2_OIS1N_Msk (0x1UL << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  17839. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  17840. #define TIM_CR2_OIS2_Pos (10U)
  17841. #define TIM_CR2_OIS2_Msk (0x1UL << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  17842. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  17843. #define TIM_CR2_OIS2N_Pos (11U)
  17844. #define TIM_CR2_OIS2N_Msk (0x1UL << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  17845. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  17846. #define TIM_CR2_OIS3_Pos (12U)
  17847. #define TIM_CR2_OIS3_Msk (0x1UL << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  17848. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  17849. #define TIM_CR2_OIS3N_Pos (13U)
  17850. #define TIM_CR2_OIS3N_Msk (0x1UL << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  17851. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  17852. #define TIM_CR2_OIS4_Pos (14U)
  17853. #define TIM_CR2_OIS4_Msk (0x1UL << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  17854. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  17855. #define TIM_CR2_OIS5_Pos (16U)
  17856. #define TIM_CR2_OIS5_Msk (0x1UL << TIM_CR2_OIS5_Pos) /*!< 0x00010000 */
  17857. #define TIM_CR2_OIS5 TIM_CR2_OIS5_Msk /*!<Output Idle state 4 (OC4 output) */
  17858. #define TIM_CR2_OIS6_Pos (18U)
  17859. #define TIM_CR2_OIS6_Msk (0x1UL << TIM_CR2_OIS6_Pos) /*!< 0x00040000 */
  17860. #define TIM_CR2_OIS6 TIM_CR2_OIS6_Msk /*!<Output Idle state 4 (OC4 output) */
  17861. #define TIM_CR2_MMS2_Pos (20U)
  17862. #define TIM_CR2_MMS2_Msk (0xFUL << TIM_CR2_MMS2_Pos) /*!< 0x00F00000 */
  17863. #define TIM_CR2_MMS2 TIM_CR2_MMS2_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  17864. #define TIM_CR2_MMS2_0 (0x1UL << TIM_CR2_MMS2_Pos) /*!< 0x00100000 */
  17865. #define TIM_CR2_MMS2_1 (0x2UL << TIM_CR2_MMS2_Pos) /*!< 0x00200000 */
  17866. #define TIM_CR2_MMS2_2 (0x4UL << TIM_CR2_MMS2_Pos) /*!< 0x00400000 */
  17867. #define TIM_CR2_MMS2_3 (0x8UL << TIM_CR2_MMS2_Pos) /*!< 0x00800000 */
  17868. /******************* Bit definition for TIM_SMCR register *******************/
  17869. #define TIM_SMCR_SMS_Pos (0U)
  17870. #define TIM_SMCR_SMS_Msk (0x10007UL << TIM_SMCR_SMS_Pos) /*!< 0x00010007 */
  17871. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  17872. #define TIM_SMCR_SMS_0 (0x00001UL << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */
  17873. #define TIM_SMCR_SMS_1 (0x00002UL << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */
  17874. #define TIM_SMCR_SMS_2 (0x00004UL << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */
  17875. #define TIM_SMCR_SMS_3 (0x10000UL << TIM_SMCR_SMS_Pos) /*!< 0x00010000 */
  17876. #define TIM_SMCR_TS_Pos (4U)
  17877. #define TIM_SMCR_TS_Msk (0x30007UL << TIM_SMCR_TS_Pos) /*!< 0x00300070 */
  17878. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[4:0] bits (Trigger selection) */
  17879. #define TIM_SMCR_TS_0 (0x00001UL << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  17880. #define TIM_SMCR_TS_1 (0x00002UL << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  17881. #define TIM_SMCR_TS_2 (0x00004UL << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  17882. #define TIM_SMCR_TS_3 (0x10000UL << TIM_SMCR_TS_Pos) /*!< 0x00100000 */
  17883. #define TIM_SMCR_TS_4 (0x20000UL << TIM_SMCR_TS_Pos) /*!< 0x00200000 */
  17884. #define TIM_SMCR_MSM_Pos (7U)
  17885. #define TIM_SMCR_MSM_Msk (0x1UL << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  17886. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  17887. #define TIM_SMCR_ETF_Pos (8U)
  17888. #define TIM_SMCR_ETF_Msk (0xFUL << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  17889. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  17890. #define TIM_SMCR_ETF_0 (0x1UL << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  17891. #define TIM_SMCR_ETF_1 (0x2UL << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  17892. #define TIM_SMCR_ETF_2 (0x4UL << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  17893. #define TIM_SMCR_ETF_3 (0x8UL << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  17894. #define TIM_SMCR_ETPS_Pos (12U)
  17895. #define TIM_SMCR_ETPS_Msk (0x3UL << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  17896. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  17897. #define TIM_SMCR_ETPS_0 (0x1UL << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  17898. #define TIM_SMCR_ETPS_1 (0x2UL << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  17899. #define TIM_SMCR_ECE_Pos (14U)
  17900. #define TIM_SMCR_ECE_Msk (0x1UL << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  17901. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  17902. #define TIM_SMCR_ETP_Pos (15U)
  17903. #define TIM_SMCR_ETP_Msk (0x1UL << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  17904. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  17905. /******************* Bit definition for TIM_DIER register *******************/
  17906. #define TIM_DIER_UIE_Pos (0U)
  17907. #define TIM_DIER_UIE_Msk (0x1UL << TIM_DIER_UIE_Pos) /*!< 0x00000001 */
  17908. #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */
  17909. #define TIM_DIER_CC1IE_Pos (1U)
  17910. #define TIM_DIER_CC1IE_Msk (0x1UL << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */
  17911. #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */
  17912. #define TIM_DIER_CC2IE_Pos (2U)
  17913. #define TIM_DIER_CC2IE_Msk (0x1UL << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */
  17914. #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */
  17915. #define TIM_DIER_CC3IE_Pos (3U)
  17916. #define TIM_DIER_CC3IE_Msk (0x1UL << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */
  17917. #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */
  17918. #define TIM_DIER_CC4IE_Pos (4U)
  17919. #define TIM_DIER_CC4IE_Msk (0x1UL << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */
  17920. #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */
  17921. #define TIM_DIER_COMIE_Pos (5U)
  17922. #define TIM_DIER_COMIE_Msk (0x1UL << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */
  17923. #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */
  17924. #define TIM_DIER_TIE_Pos (6U)
  17925. #define TIM_DIER_TIE_Msk (0x1UL << TIM_DIER_TIE_Pos) /*!< 0x00000040 */
  17926. #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */
  17927. #define TIM_DIER_BIE_Pos (7U)
  17928. #define TIM_DIER_BIE_Msk (0x1UL << TIM_DIER_BIE_Pos) /*!< 0x00000080 */
  17929. #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */
  17930. #define TIM_DIER_UDE_Pos (8U)
  17931. #define TIM_DIER_UDE_Msk (0x1UL << TIM_DIER_UDE_Pos) /*!< 0x00000100 */
  17932. #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */
  17933. #define TIM_DIER_CC1DE_Pos (9U)
  17934. #define TIM_DIER_CC1DE_Msk (0x1UL << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */
  17935. #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */
  17936. #define TIM_DIER_CC2DE_Pos (10U)
  17937. #define TIM_DIER_CC2DE_Msk (0x1UL << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */
  17938. #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */
  17939. #define TIM_DIER_CC3DE_Pos (11U)
  17940. #define TIM_DIER_CC3DE_Msk (0x1UL << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */
  17941. #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */
  17942. #define TIM_DIER_CC4DE_Pos (12U)
  17943. #define TIM_DIER_CC4DE_Msk (0x1UL << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */
  17944. #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */
  17945. #define TIM_DIER_COMDE_Pos (13U)
  17946. #define TIM_DIER_COMDE_Msk (0x1UL << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */
  17947. #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */
  17948. #define TIM_DIER_TDE_Pos (14U)
  17949. #define TIM_DIER_TDE_Msk (0x1UL << TIM_DIER_TDE_Pos) /*!< 0x00004000 */
  17950. #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */
  17951. /******************** Bit definition for TIM_SR register ********************/
  17952. #define TIM_SR_UIF_Pos (0U)
  17953. #define TIM_SR_UIF_Msk (0x1UL << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  17954. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  17955. #define TIM_SR_CC1IF_Pos (1U)
  17956. #define TIM_SR_CC1IF_Msk (0x1UL << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  17957. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  17958. #define TIM_SR_CC2IF_Pos (2U)
  17959. #define TIM_SR_CC2IF_Msk (0x1UL << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  17960. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  17961. #define TIM_SR_CC3IF_Pos (3U)
  17962. #define TIM_SR_CC3IF_Msk (0x1UL << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  17963. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  17964. #define TIM_SR_CC4IF_Pos (4U)
  17965. #define TIM_SR_CC4IF_Msk (0x1UL << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  17966. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  17967. #define TIM_SR_COMIF_Pos (5U)
  17968. #define TIM_SR_COMIF_Msk (0x1UL << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  17969. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  17970. #define TIM_SR_TIF_Pos (6U)
  17971. #define TIM_SR_TIF_Msk (0x1UL << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  17972. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  17973. #define TIM_SR_BIF_Pos (7U)
  17974. #define TIM_SR_BIF_Msk (0x1UL << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  17975. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  17976. #define TIM_SR_B2IF_Pos (8U)
  17977. #define TIM_SR_B2IF_Msk (0x1UL << TIM_SR_B2IF_Pos) /*!< 0x00000100 */
  17978. #define TIM_SR_B2IF TIM_SR_B2IF_Msk /*!<Break2 interrupt Flag */
  17979. #define TIM_SR_CC1OF_Pos (9U)
  17980. #define TIM_SR_CC1OF_Msk (0x1UL << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  17981. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  17982. #define TIM_SR_CC2OF_Pos (10U)
  17983. #define TIM_SR_CC2OF_Msk (0x1UL << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  17984. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  17985. #define TIM_SR_CC3OF_Pos (11U)
  17986. #define TIM_SR_CC3OF_Msk (0x1UL << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  17987. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  17988. #define TIM_SR_CC4OF_Pos (12U)
  17989. #define TIM_SR_CC4OF_Msk (0x1UL << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  17990. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  17991. #define TIM_SR_CC5IF_Pos (16U)
  17992. #define TIM_SR_CC5IF_Msk (0x1UL << TIM_SR_CC5IF_Pos) /*!< 0x00010000 */
  17993. #define TIM_SR_CC5IF TIM_SR_CC5IF_Msk /*!<Capture/Compare 5 interrupt Flag */
  17994. #define TIM_SR_CC6IF_Pos (17U)
  17995. #define TIM_SR_CC6IF_Msk (0x1UL << TIM_SR_CC6IF_Pos) /*!< 0x00020000 */
  17996. #define TIM_SR_CC6IF TIM_SR_CC6IF_Msk /*!<Capture/Compare 6 interrupt Flag */
  17997. #define TIM_SR_SBIF_Pos (13U)
  17998. #define TIM_SR_SBIF_Msk (0x1UL << TIM_SR_SBIF_Pos) /*!< 0x00002000 */
  17999. #define TIM_SR_SBIF TIM_SR_SBIF_Msk /*!< System Break Flag */
  18000. /******************* Bit definition for TIM_EGR register ********************/
  18001. #define TIM_EGR_UG_Pos (0U)
  18002. #define TIM_EGR_UG_Msk (0x1UL << TIM_EGR_UG_Pos) /*!< 0x00000001 */
  18003. #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */
  18004. #define TIM_EGR_CC1G_Pos (1U)
  18005. #define TIM_EGR_CC1G_Msk (0x1UL << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */
  18006. #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */
  18007. #define TIM_EGR_CC2G_Pos (2U)
  18008. #define TIM_EGR_CC2G_Msk (0x1UL << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */
  18009. #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */
  18010. #define TIM_EGR_CC3G_Pos (3U)
  18011. #define TIM_EGR_CC3G_Msk (0x1UL << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */
  18012. #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */
  18013. #define TIM_EGR_CC4G_Pos (4U)
  18014. #define TIM_EGR_CC4G_Msk (0x1UL << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */
  18015. #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */
  18016. #define TIM_EGR_COMG_Pos (5U)
  18017. #define TIM_EGR_COMG_Msk (0x1UL << TIM_EGR_COMG_Pos) /*!< 0x00000020 */
  18018. #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */
  18019. #define TIM_EGR_TG_Pos (6U)
  18020. #define TIM_EGR_TG_Msk (0x1UL << TIM_EGR_TG_Pos) /*!< 0x00000040 */
  18021. #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */
  18022. #define TIM_EGR_BG_Pos (7U)
  18023. #define TIM_EGR_BG_Msk (0x1UL << TIM_EGR_BG_Pos) /*!< 0x00000080 */
  18024. #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */
  18025. #define TIM_EGR_B2G_Pos (8U)
  18026. #define TIM_EGR_B2G_Msk (0x1UL << TIM_EGR_B2G_Pos) /*!< 0x00000100 */
  18027. #define TIM_EGR_B2G TIM_EGR_B2G_Msk /*!<Break Generation */
  18028. /****************** Bit definition for TIM_CCMR1 register *******************/
  18029. #define TIM_CCMR1_CC1S_Pos (0U)
  18030. #define TIM_CCMR1_CC1S_Msk (0x3UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  18031. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  18032. #define TIM_CCMR1_CC1S_0 (0x1UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  18033. #define TIM_CCMR1_CC1S_1 (0x2UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  18034. #define TIM_CCMR1_OC1FE_Pos (2U)
  18035. #define TIM_CCMR1_OC1FE_Msk (0x1UL << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  18036. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  18037. #define TIM_CCMR1_OC1PE_Pos (3U)
  18038. #define TIM_CCMR1_OC1PE_Msk (0x1UL << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  18039. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  18040. #define TIM_CCMR1_OC1M_Pos (4U)
  18041. #define TIM_CCMR1_OC1M_Msk (0x1007UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00010070 */
  18042. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  18043. #define TIM_CCMR1_OC1M_0 (0x0001UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */
  18044. #define TIM_CCMR1_OC1M_1 (0x0002UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */
  18045. #define TIM_CCMR1_OC1M_2 (0x0004UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */
  18046. #define TIM_CCMR1_OC1M_3 (0x1000UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00010000 */
  18047. #define TIM_CCMR1_OC1CE_Pos (7U)
  18048. #define TIM_CCMR1_OC1CE_Msk (0x1UL << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  18049. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */
  18050. #define TIM_CCMR1_CC2S_Pos (8U)
  18051. #define TIM_CCMR1_CC2S_Msk (0x3UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  18052. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  18053. #define TIM_CCMR1_CC2S_0 (0x1UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  18054. #define TIM_CCMR1_CC2S_1 (0x2UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  18055. #define TIM_CCMR1_OC2FE_Pos (10U)
  18056. #define TIM_CCMR1_OC2FE_Msk (0x1UL << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  18057. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  18058. #define TIM_CCMR1_OC2PE_Pos (11U)
  18059. #define TIM_CCMR1_OC2PE_Msk (0x1UL << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  18060. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  18061. #define TIM_CCMR1_OC2M_Pos (12U)
  18062. #define TIM_CCMR1_OC2M_Msk (0x1007UL << TIM_CCMR1_OC2M_Pos) /*!< 0x01007000 */
  18063. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  18064. #define TIM_CCMR1_OC2M_0 (0x0001UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */
  18065. #define TIM_CCMR1_OC2M_1 (0x0002UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */
  18066. #define TIM_CCMR1_OC2M_2 (0x0004UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */
  18067. #define TIM_CCMR1_OC2M_3 (0x1000UL << TIM_CCMR1_OC2M_Pos) /*!< 0x01000000 */
  18068. #define TIM_CCMR1_OC2CE_Pos (15U)
  18069. #define TIM_CCMR1_OC2CE_Msk (0x1UL << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  18070. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  18071. /*----------------------------------------------------------------------------*/
  18072. #define TIM_CCMR1_IC1PSC_Pos (2U)
  18073. #define TIM_CCMR1_IC1PSC_Msk (0x3UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  18074. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  18075. #define TIM_CCMR1_IC1PSC_0 (0x1UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  18076. #define TIM_CCMR1_IC1PSC_1 (0x2UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  18077. #define TIM_CCMR1_IC1F_Pos (4U)
  18078. #define TIM_CCMR1_IC1F_Msk (0xFUL << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  18079. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  18080. #define TIM_CCMR1_IC1F_0 (0x1UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  18081. #define TIM_CCMR1_IC1F_1 (0x2UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  18082. #define TIM_CCMR1_IC1F_2 (0x4UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  18083. #define TIM_CCMR1_IC1F_3 (0x8UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  18084. #define TIM_CCMR1_IC2PSC_Pos (10U)
  18085. #define TIM_CCMR1_IC2PSC_Msk (0x3UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  18086. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  18087. #define TIM_CCMR1_IC2PSC_0 (0x1UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  18088. #define TIM_CCMR1_IC2PSC_1 (0x2UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  18089. #define TIM_CCMR1_IC2F_Pos (12U)
  18090. #define TIM_CCMR1_IC2F_Msk (0xFUL << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  18091. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  18092. #define TIM_CCMR1_IC2F_0 (0x1UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  18093. #define TIM_CCMR1_IC2F_1 (0x2UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  18094. #define TIM_CCMR1_IC2F_2 (0x4UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  18095. #define TIM_CCMR1_IC2F_3 (0x8UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  18096. /****************** Bit definition for TIM_CCMR2 register *******************/
  18097. #define TIM_CCMR2_CC3S_Pos (0U)
  18098. #define TIM_CCMR2_CC3S_Msk (0x3UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  18099. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  18100. #define TIM_CCMR2_CC3S_0 (0x1UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  18101. #define TIM_CCMR2_CC3S_1 (0x2UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  18102. #define TIM_CCMR2_OC3FE_Pos (2U)
  18103. #define TIM_CCMR2_OC3FE_Msk (0x1UL << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  18104. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  18105. #define TIM_CCMR2_OC3PE_Pos (3U)
  18106. #define TIM_CCMR2_OC3PE_Msk (0x1UL << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  18107. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  18108. #define TIM_CCMR2_OC3M_Pos (4U)
  18109. #define TIM_CCMR2_OC3M_Msk (0x1007UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00010070 */
  18110. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[3:0] bits (Output Compare 3 Mode) */
  18111. #define TIM_CCMR2_OC3M_0 (0x1UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */
  18112. #define TIM_CCMR2_OC3M_1 (0x2UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */
  18113. #define TIM_CCMR2_OC3M_2 (0x4UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */
  18114. #define TIM_CCMR2_OC3M_3 (0x1000UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00010000 */
  18115. #define TIM_CCMR2_OC3CE_Pos (7U)
  18116. #define TIM_CCMR2_OC3CE_Msk (0x1UL << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  18117. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  18118. #define TIM_CCMR2_CC4S_Pos (8U)
  18119. #define TIM_CCMR2_CC4S_Msk (0x3UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  18120. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  18121. #define TIM_CCMR2_CC4S_0 (0x1UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  18122. #define TIM_CCMR2_CC4S_1 (0x2UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  18123. #define TIM_CCMR2_OC4FE_Pos (10U)
  18124. #define TIM_CCMR2_OC4FE_Msk (0x1UL << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  18125. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  18126. #define TIM_CCMR2_OC4PE_Pos (11U)
  18127. #define TIM_CCMR2_OC4PE_Msk (0x1UL << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  18128. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  18129. #define TIM_CCMR2_OC4M_Pos (12U)
  18130. #define TIM_CCMR2_OC4M_Msk (0x1007UL << TIM_CCMR2_OC4M_Pos) /*!< 0x01007000 */
  18131. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[3:0] bits (Output Compare 4 Mode) */
  18132. #define TIM_CCMR2_OC4M_0 (0x1UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */
  18133. #define TIM_CCMR2_OC4M_1 (0x2UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */
  18134. #define TIM_CCMR2_OC4M_2 (0x4UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */
  18135. #define TIM_CCMR2_OC4M_3 (0x1000UL << TIM_CCMR2_OC4M_Pos) /*!< 0x01000000 */
  18136. #define TIM_CCMR2_OC4CE_Pos (15U)
  18137. #define TIM_CCMR2_OC4CE_Msk (0x1UL << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  18138. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  18139. /*----------------------------------------------------------------------------*/
  18140. #define TIM_CCMR2_IC3PSC_Pos (2U)
  18141. #define TIM_CCMR2_IC3PSC_Msk (0x3UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */
  18142. #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  18143. #define TIM_CCMR2_IC3PSC_0 (0x1UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */
  18144. #define TIM_CCMR2_IC3PSC_1 (0x2UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */
  18145. #define TIM_CCMR2_IC3F_Pos (4U)
  18146. #define TIM_CCMR2_IC3F_Msk (0xFUL << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */
  18147. #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  18148. #define TIM_CCMR2_IC3F_0 (0x1UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */
  18149. #define TIM_CCMR2_IC3F_1 (0x2UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */
  18150. #define TIM_CCMR2_IC3F_2 (0x4UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */
  18151. #define TIM_CCMR2_IC3F_3 (0x8UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */
  18152. #define TIM_CCMR2_IC4PSC_Pos (10U)
  18153. #define TIM_CCMR2_IC4PSC_Msk (0x3UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */
  18154. #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  18155. #define TIM_CCMR2_IC4PSC_0 (0x1UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */
  18156. #define TIM_CCMR2_IC4PSC_1 (0x2UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */
  18157. #define TIM_CCMR2_IC4F_Pos (12U)
  18158. #define TIM_CCMR2_IC4F_Msk (0xFUL << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */
  18159. #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  18160. #define TIM_CCMR2_IC4F_0 (0x1UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */
  18161. #define TIM_CCMR2_IC4F_1 (0x2UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */
  18162. #define TIM_CCMR2_IC4F_2 (0x4UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */
  18163. #define TIM_CCMR2_IC4F_3 (0x8UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */
  18164. /******************* Bit definition for TIM_CCER register *******************/
  18165. #define TIM_CCER_CC1E_Pos (0U)
  18166. #define TIM_CCER_CC1E_Msk (0x1UL << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  18167. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  18168. #define TIM_CCER_CC1P_Pos (1U)
  18169. #define TIM_CCER_CC1P_Msk (0x1UL << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  18170. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  18171. #define TIM_CCER_CC1NE_Pos (2U)
  18172. #define TIM_CCER_CC1NE_Msk (0x1UL << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  18173. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  18174. #define TIM_CCER_CC1NP_Pos (3U)
  18175. #define TIM_CCER_CC1NP_Msk (0x1UL << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  18176. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  18177. #define TIM_CCER_CC2E_Pos (4U)
  18178. #define TIM_CCER_CC2E_Msk (0x1UL << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  18179. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  18180. #define TIM_CCER_CC2P_Pos (5U)
  18181. #define TIM_CCER_CC2P_Msk (0x1UL << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  18182. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  18183. #define TIM_CCER_CC2NE_Pos (6U)
  18184. #define TIM_CCER_CC2NE_Msk (0x1UL << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  18185. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  18186. #define TIM_CCER_CC2NP_Pos (7U)
  18187. #define TIM_CCER_CC2NP_Msk (0x1UL << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  18188. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  18189. #define TIM_CCER_CC3E_Pos (8U)
  18190. #define TIM_CCER_CC3E_Msk (0x1UL << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  18191. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  18192. #define TIM_CCER_CC3P_Pos (9U)
  18193. #define TIM_CCER_CC3P_Msk (0x1UL << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  18194. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  18195. #define TIM_CCER_CC3NE_Pos (10U)
  18196. #define TIM_CCER_CC3NE_Msk (0x1UL << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  18197. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  18198. #define TIM_CCER_CC3NP_Pos (11U)
  18199. #define TIM_CCER_CC3NP_Msk (0x1UL << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  18200. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  18201. #define TIM_CCER_CC4E_Pos (12U)
  18202. #define TIM_CCER_CC4E_Msk (0x1UL << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  18203. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  18204. #define TIM_CCER_CC4P_Pos (13U)
  18205. #define TIM_CCER_CC4P_Msk (0x1UL << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  18206. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  18207. #define TIM_CCER_CC4NP_Pos (15U)
  18208. #define TIM_CCER_CC4NP_Msk (0x1UL << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  18209. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  18210. #define TIM_CCER_CC5E_Pos (16U)
  18211. #define TIM_CCER_CC5E_Msk (0x1UL << TIM_CCER_CC5E_Pos) /*!< 0x00010000 */
  18212. #define TIM_CCER_CC5E TIM_CCER_CC5E_Msk /*!<Capture/Compare 5 output enable */
  18213. #define TIM_CCER_CC5P_Pos (17U)
  18214. #define TIM_CCER_CC5P_Msk (0x1UL << TIM_CCER_CC5P_Pos) /*!< 0x00020000 */
  18215. #define TIM_CCER_CC5P TIM_CCER_CC5P_Msk /*!<Capture/Compare 5 output Polarity */
  18216. #define TIM_CCER_CC6E_Pos (20U)
  18217. #define TIM_CCER_CC6E_Msk (0x1UL << TIM_CCER_CC6E_Pos) /*!< 0x00100000 */
  18218. #define TIM_CCER_CC6E TIM_CCER_CC6E_Msk /*!<Capture/Compare 6 output enable */
  18219. #define TIM_CCER_CC6P_Pos (21U)
  18220. #define TIM_CCER_CC6P_Msk (0x1UL << TIM_CCER_CC6P_Pos) /*!< 0x00200000 */
  18221. #define TIM_CCER_CC6P TIM_CCER_CC6P_Msk /*!<Capture/Compare 6 output Polarity */
  18222. /******************* Bit definition for TIM_CNT register ********************/
  18223. #define TIM_CNT_CNT_Pos (0U)
  18224. #define TIM_CNT_CNT_Msk (0xFFFFFFFFUL << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  18225. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  18226. #define TIM_CNT_UIFCPY_Pos (31U)
  18227. #define TIM_CNT_UIFCPY_Msk (0x1UL << TIM_CNT_UIFCPY_Pos) /*!< 0x80000000 */
  18228. #define TIM_CNT_UIFCPY TIM_CNT_UIFCPY_Msk /*!<Update interrupt flag copy */
  18229. /******************* Bit definition for TIM_PSC register ********************/
  18230. #define TIM_PSC_PSC_Pos (0U)
  18231. #define TIM_PSC_PSC_Msk (0xFFFFUL << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */
  18232. #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */
  18233. /******************* Bit definition for TIM_ARR register ********************/
  18234. #define TIM_ARR_ARR_Pos (0U)
  18235. #define TIM_ARR_ARR_Msk (0xFFFFFFFFUL << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  18236. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */
  18237. /******************* Bit definition for TIM_RCR register ********************/
  18238. #define TIM_RCR_REP_Pos (0U)
  18239. #define TIM_RCR_REP_Msk (0xFFUL << TIM_RCR_REP_Pos) /*!< 0x000000FF */
  18240. #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */
  18241. /******************* Bit definition for TIM_CCR1 register *******************/
  18242. #define TIM_CCR1_CCR1_Pos (0U)
  18243. #define TIM_CCR1_CCR1_Msk (0xFFFFUL << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */
  18244. #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */
  18245. /******************* Bit definition for TIM_CCR2 register *******************/
  18246. #define TIM_CCR2_CCR2_Pos (0U)
  18247. #define TIM_CCR2_CCR2_Msk (0xFFFFUL << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */
  18248. #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */
  18249. /******************* Bit definition for TIM_CCR3 register *******************/
  18250. #define TIM_CCR3_CCR3_Pos (0U)
  18251. #define TIM_CCR3_CCR3_Msk (0xFFFFUL << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */
  18252. #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */
  18253. /******************* Bit definition for TIM_CCR4 register *******************/
  18254. #define TIM_CCR4_CCR4_Pos (0U)
  18255. #define TIM_CCR4_CCR4_Msk (0xFFFFUL << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */
  18256. #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */
  18257. /******************* Bit definition for TIM_CCR5 register *******************/
  18258. #define TIM_CCR5_CCR5_Pos (0U)
  18259. #define TIM_CCR5_CCR5_Msk (0xFFFFFFFFUL << TIM_CCR5_CCR5_Pos) /*!< 0xFFFFFFFF */
  18260. #define TIM_CCR5_CCR5 TIM_CCR5_CCR5_Msk /*!<Capture/Compare 5 Value */
  18261. #define TIM_CCR5_GC5C1_Pos (29U)
  18262. #define TIM_CCR5_GC5C1_Msk (0x1UL << TIM_CCR5_GC5C1_Pos) /*!< 0x20000000 */
  18263. #define TIM_CCR5_GC5C1 TIM_CCR5_GC5C1_Msk /*!<Group Channel 5 and Channel 1 */
  18264. #define TIM_CCR5_GC5C2_Pos (30U)
  18265. #define TIM_CCR5_GC5C2_Msk (0x1UL << TIM_CCR5_GC5C2_Pos) /*!< 0x40000000 */
  18266. #define TIM_CCR5_GC5C2 TIM_CCR5_GC5C2_Msk /*!<Group Channel 5 and Channel 2 */
  18267. #define TIM_CCR5_GC5C3_Pos (31U)
  18268. #define TIM_CCR5_GC5C3_Msk (0x1UL << TIM_CCR5_GC5C3_Pos) /*!< 0x80000000 */
  18269. #define TIM_CCR5_GC5C3 TIM_CCR5_GC5C3_Msk /*!<Group Channel 5 and Channel 3 */
  18270. /******************* Bit definition for TIM_CCR6 register *******************/
  18271. #define TIM_CCR6_CCR6_Pos (0U)
  18272. #define TIM_CCR6_CCR6_Msk (0xFFFFUL << TIM_CCR6_CCR6_Pos) /*!< 0x0000FFFF */
  18273. #define TIM_CCR6_CCR6 TIM_CCR6_CCR6_Msk /*!<Capture/Compare 6 Value */
  18274. /******************* Bit definition for TIM_BDTR register *******************/
  18275. #define TIM_BDTR_DTG_Pos (0U)
  18276. #define TIM_BDTR_DTG_Msk (0xFFUL << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  18277. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  18278. #define TIM_BDTR_DTG_0 (0x01UL << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  18279. #define TIM_BDTR_DTG_1 (0x02UL << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  18280. #define TIM_BDTR_DTG_2 (0x04UL << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  18281. #define TIM_BDTR_DTG_3 (0x08UL << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  18282. #define TIM_BDTR_DTG_4 (0x10UL << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  18283. #define TIM_BDTR_DTG_5 (0x20UL << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  18284. #define TIM_BDTR_DTG_6 (0x40UL << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  18285. #define TIM_BDTR_DTG_7 (0x80UL << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  18286. #define TIM_BDTR_LOCK_Pos (8U)
  18287. #define TIM_BDTR_LOCK_Msk (0x3UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  18288. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  18289. #define TIM_BDTR_LOCK_0 (0x1UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  18290. #define TIM_BDTR_LOCK_1 (0x2UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  18291. #define TIM_BDTR_OSSI_Pos (10U)
  18292. #define TIM_BDTR_OSSI_Msk (0x1UL << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  18293. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  18294. #define TIM_BDTR_OSSR_Pos (11U)
  18295. #define TIM_BDTR_OSSR_Msk (0x1UL << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  18296. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  18297. #define TIM_BDTR_BKE_Pos (12U)
  18298. #define TIM_BDTR_BKE_Msk (0x1UL << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  18299. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break1 */
  18300. #define TIM_BDTR_BKP_Pos (13U)
  18301. #define TIM_BDTR_BKP_Msk (0x1UL << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  18302. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break1 */
  18303. #define TIM_BDTR_AOE_Pos (14U)
  18304. #define TIM_BDTR_AOE_Msk (0x1UL << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  18305. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  18306. #define TIM_BDTR_MOE_Pos (15U)
  18307. #define TIM_BDTR_MOE_Msk (0x1UL << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  18308. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  18309. #define TIM_BDTR_BKF_Pos (16U)
  18310. #define TIM_BDTR_BKF_Msk (0xFUL << TIM_BDTR_BKF_Pos) /*!< 0x000F0000 */
  18311. #define TIM_BDTR_BKF TIM_BDTR_BKF_Msk /*!<Break Filter for Break1 */
  18312. #define TIM_BDTR_BK2F_Pos (20U)
  18313. #define TIM_BDTR_BK2F_Msk (0xFUL << TIM_BDTR_BK2F_Pos) /*!< 0x00F00000 */
  18314. #define TIM_BDTR_BK2F TIM_BDTR_BK2F_Msk /*!<Break Filter for Break2 */
  18315. #define TIM_BDTR_BK2E_Pos (24U)
  18316. #define TIM_BDTR_BK2E_Msk (0x1UL << TIM_BDTR_BK2E_Pos) /*!< 0x01000000 */
  18317. #define TIM_BDTR_BK2E TIM_BDTR_BK2E_Msk /*!<Break enable for Break2 */
  18318. #define TIM_BDTR_BK2P_Pos (25U)
  18319. #define TIM_BDTR_BK2P_Msk (0x1UL << TIM_BDTR_BK2P_Pos) /*!< 0x02000000 */
  18320. #define TIM_BDTR_BK2P TIM_BDTR_BK2P_Msk /*!<Break Polarity for Break2 */
  18321. #define TIM_BDTR_BKDSRM_Pos (26U)
  18322. #define TIM_BDTR_BKDSRM_Msk (0x1UL << TIM_BDTR_BKDSRM_Pos) /*!< 0x04000000 */
  18323. #define TIM_BDTR_BKDSRM TIM_BDTR_BKDSRM_Msk /*!<Break Disarm */
  18324. #define TIM_BDTR_BK2DSRM_Pos (27U)
  18325. #define TIM_BDTR_BK2DSRM_Msk (0x1UL << TIM_BDTR_BK2DSRM_Pos) /*!< 0x08000000 */
  18326. #define TIM_BDTR_BK2DSRM TIM_BDTR_BK2DSRM_Msk /*!<Break2 Disarm */
  18327. #define TIM_BDTR_BKBID_Pos (28U)
  18328. #define TIM_BDTR_BKBID_Msk (0x1UL << TIM_BDTR_BKBID_Pos) /*!< 0x10000000 */
  18329. #define TIM_BDTR_BKBID TIM_BDTR_BKBID_Msk /*!<Break Bidirectional */
  18330. #define TIM_BDTR_BK2BID_Pos (29U)
  18331. #define TIM_BDTR_BK2BID_Msk (0x1UL << TIM_BDTR_BK2BID_Pos) /*!< 0x20000000 */
  18332. #define TIM_BDTR_BK2BID TIM_BDTR_BK2BID_Msk /*!<Break2 Bidirectional */
  18333. /******************* Bit definition for TIM_DCR register ********************/
  18334. #define TIM_DCR_DBA_Pos (0U)
  18335. #define TIM_DCR_DBA_Msk (0x1FUL << TIM_DCR_DBA_Pos) /*!< 0x0000001F */
  18336. #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */
  18337. #define TIM_DCR_DBA_0 (0x01UL << TIM_DCR_DBA_Pos) /*!< 0x00000001 */
  18338. #define TIM_DCR_DBA_1 (0x02UL << TIM_DCR_DBA_Pos) /*!< 0x00000002 */
  18339. #define TIM_DCR_DBA_2 (0x04UL << TIM_DCR_DBA_Pos) /*!< 0x00000004 */
  18340. #define TIM_DCR_DBA_3 (0x08UL << TIM_DCR_DBA_Pos) /*!< 0x00000008 */
  18341. #define TIM_DCR_DBA_4 (0x10UL << TIM_DCR_DBA_Pos) /*!< 0x00000010 */
  18342. #define TIM_DCR_DBL_Pos (8U)
  18343. #define TIM_DCR_DBL_Msk (0x1FUL << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */
  18344. #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */
  18345. #define TIM_DCR_DBL_0 (0x01UL << TIM_DCR_DBL_Pos) /*!< 0x00000100 */
  18346. #define TIM_DCR_DBL_1 (0x02UL << TIM_DCR_DBL_Pos) /*!< 0x00000200 */
  18347. #define TIM_DCR_DBL_2 (0x04UL << TIM_DCR_DBL_Pos) /*!< 0x00000400 */
  18348. #define TIM_DCR_DBL_3 (0x08UL << TIM_DCR_DBL_Pos) /*!< 0x00000800 */
  18349. #define TIM_DCR_DBL_4 (0x10UL << TIM_DCR_DBL_Pos) /*!< 0x00001000 */
  18350. /******************* Bit definition for TIM_DMAR register *******************/
  18351. #define TIM_DMAR_DMAB_Pos (0U)
  18352. #define TIM_DMAR_DMAB_Msk (0xFFFFUL << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */
  18353. #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */
  18354. /****************** Bit definition for TIM_CCMR3 register *******************/
  18355. #define TIM_CCMR3_OC5FE_Pos (2U)
  18356. #define TIM_CCMR3_OC5FE_Msk (0x1UL << TIM_CCMR3_OC5FE_Pos) /*!< 0x00000004 */
  18357. #define TIM_CCMR3_OC5FE TIM_CCMR3_OC5FE_Msk /*!<Output Compare 5 Fast enable */
  18358. #define TIM_CCMR3_OC5PE_Pos (3U)
  18359. #define TIM_CCMR3_OC5PE_Msk (0x1UL << TIM_CCMR3_OC5PE_Pos) /*!< 0x00000008 */
  18360. #define TIM_CCMR3_OC5PE TIM_CCMR3_OC5PE_Msk /*!<Output Compare 5 Preload enable */
  18361. #define TIM_CCMR3_OC5M_Pos (4U)
  18362. #define TIM_CCMR3_OC5M_Msk (0x1007UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00010070 */
  18363. #define TIM_CCMR3_OC5M TIM_CCMR3_OC5M_Msk /*!<OC5M[3:0] bits (Output Compare 5 Mode) */
  18364. #define TIM_CCMR3_OC5M_0 (0x1UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000010 */
  18365. #define TIM_CCMR3_OC5M_1 (0x2UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000020 */
  18366. #define TIM_CCMR3_OC5M_2 (0x4UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000040 */
  18367. #define TIM_CCMR3_OC5M_3 (0x1000UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00010000 */
  18368. #define TIM_CCMR3_OC5CE_Pos (7U)
  18369. #define TIM_CCMR3_OC5CE_Msk (0x1UL << TIM_CCMR3_OC5CE_Pos) /*!< 0x00000080 */
  18370. #define TIM_CCMR3_OC5CE TIM_CCMR3_OC5CE_Msk /*!<Output Compare 5 Clear Enable */
  18371. #define TIM_CCMR3_OC6FE_Pos (10U)
  18372. #define TIM_CCMR3_OC6FE_Msk (0x1UL << TIM_CCMR3_OC6FE_Pos) /*!< 0x00000400 */
  18373. #define TIM_CCMR3_OC6FE TIM_CCMR3_OC6FE_Msk /*!<Output Compare 4 Fast enable */
  18374. #define TIM_CCMR3_OC6PE_Pos (11U)
  18375. #define TIM_CCMR3_OC6PE_Msk (0x1UL << TIM_CCMR3_OC6PE_Pos) /*!< 0x00000800 */
  18376. #define TIM_CCMR3_OC6PE TIM_CCMR3_OC6PE_Msk /*!<Output Compare 4 Preload enable */
  18377. #define TIM_CCMR3_OC6M_Pos (12U)
  18378. #define TIM_CCMR3_OC6M_Msk (0x1007UL << TIM_CCMR3_OC6M_Pos) /*!< 0x01007000 */
  18379. #define TIM_CCMR3_OC6M TIM_CCMR3_OC6M_Msk /*!<OC4M[3:0] bits (Output Compare 4 Mode) */
  18380. #define TIM_CCMR3_OC6M_0 (0x1UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00001000 */
  18381. #define TIM_CCMR3_OC6M_1 (0x2UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00002000 */
  18382. #define TIM_CCMR3_OC6M_2 (0x4UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00004000 */
  18383. #define TIM_CCMR3_OC6M_3 (0x1000UL << TIM_CCMR3_OC6M_Pos) /*!< 0x01000000 */
  18384. #define TIM_CCMR3_OC6CE_Pos (15U)
  18385. #define TIM_CCMR3_OC6CE_Msk (0x1UL << TIM_CCMR3_OC6CE_Pos) /*!< 0x00008000 */
  18386. #define TIM_CCMR3_OC6CE TIM_CCMR3_OC6CE_Msk /*!<Output Compare 4 Clear Enable */
  18387. /******************* Bit definition for TIM1_AF1 register *********************/
  18388. #define TIM1_AF1_BKINE_Pos (0U)
  18389. #define TIM1_AF1_BKINE_Msk (0x1UL << TIM1_AF1_BKINE_Pos) /*!< 0x00000001 */
  18390. #define TIM1_AF1_BKINE TIM1_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18391. #define TIM1_AF1_BKCMP1E_Pos (1U)
  18392. #define TIM1_AF1_BKCMP1E_Msk (0x1UL << TIM1_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18393. #define TIM1_AF1_BKCMP1E TIM1_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18394. #define TIM1_AF1_BKCMP2E_Pos (2U)
  18395. #define TIM1_AF1_BKCMP2E_Msk (0x1UL << TIM1_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18396. #define TIM1_AF1_BKCMP2E TIM1_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18397. #define TIM1_AF1_BKDF1BK0E_Pos (8U)
  18398. #define TIM1_AF1_BKDF1BK0E_Msk (0x1UL << TIM1_AF1_BKDF1BK0E_Pos) /*!< 0x00000100 */
  18399. #define TIM1_AF1_BKDF1BK0E TIM1_AF1_BKDF1BK0E_Msk /*!<BKDF1BK0E Break input DFSDM Break 0 */
  18400. #define TIM1_AF1_BKINP_Pos (9U)
  18401. #define TIM1_AF1_BKINP_Msk (0x1UL << TIM1_AF1_BKINP_Pos) /*!< 0x00000200 */
  18402. #define TIM1_AF1_BKINP TIM1_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18403. #define TIM1_AF1_BKCMP1P_Pos (10U)
  18404. #define TIM1_AF1_BKCMP1P_Msk (0x1UL << TIM1_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18405. #define TIM1_AF1_BKCMP1P TIM1_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18406. #define TIM1_AF1_BKCMP2P_Pos (11U)
  18407. #define TIM1_AF1_BKCMP2P_Msk (0x1UL << TIM1_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18408. #define TIM1_AF1_BKCMP2P TIM1_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18409. #define TIM1_AF1_ETRSEL_Pos (14U)
  18410. #define TIM1_AF1_ETRSEL_Msk (0xFUL << TIM1_AF1_ETRSEL_Pos) /*!< 0x0003C000 */
  18411. #define TIM1_AF1_ETRSEL TIM1_AF1_ETRSEL_Msk /*!<ETRSEL[3:0] bits (TIM1 ETRSEL) */
  18412. #define TIM1_AF1_ETRSEL_0 (0x1UL << TIM1_AF1_ETRSEL_Pos) /*!< 0x00004000 */
  18413. #define TIM1_AF1_ETRSEL_1 (0x2UL << TIM1_AF1_ETRSEL_Pos) /*!< 0x00008000 */
  18414. #define TIM1_AF1_ETRSEL_2 (0x4UL << TIM1_AF1_ETRSEL_Pos) /*!< 0x00010000 */
  18415. #define TIM1_AF1_ETRSEL_3 (0x8UL << TIM1_AF1_ETRSEL_Pos) /*!< 0x00020000 */
  18416. /******************* Bit definition for TIM1_AF2 register *********************/
  18417. #define TIM1_AF2_BK2INE_Pos (0U)
  18418. #define TIM1_AF2_BK2INE_Msk (0x1UL << TIM1_AF2_BK2INE_Pos) /*!< 0x00000001 */
  18419. #define TIM1_AF2_BK2INE TIM1_AF2_BK2INE_Msk /*!<BK2INE Break input 2 enable bit */
  18420. #define TIM1_AF2_BK2CMP1E_Pos (1U)
  18421. #define TIM1_AF2_BK2CMP1E_Msk (0x1UL << TIM1_AF2_BK2CMP1E_Pos) /*!< 0x00000002 */
  18422. #define TIM1_AF2_BK2CMP1E TIM1_AF2_BK2CMP1E_Msk /*!<BK2CMP1E Break2 Compare1 Enable bit */
  18423. #define TIM1_AF2_BK2CMP2E_Pos (2U)
  18424. #define TIM1_AF2_BK2CMP2E_Msk (0x1UL << TIM1_AF2_BK2CMP2E_Pos) /*!< 0x00000004 */
  18425. #define TIM1_AF2_BK2CMP2E TIM1_AF2_BK2CMP2E_Msk /*!<BK2CMP1E Break2 Compare2 Enable bit */
  18426. #define TIM1_AF2_BK2DFBK1E_Pos (8U)
  18427. #define TIM1_AF2_BK2DFBK1E_Msk (0x1UL << TIM1_AF2_BK2DFBK1E_Pos) /*!< 0x00000100 */
  18428. #define TIM1_AF2_BK2DFBK1E TIM1_AF2_BK2DFBK1E_Msk /*!<BK2DFBK1E Break input2 DFSDM Break 1 */
  18429. #define TIM1_AF2_BK2INP_Pos (9U)
  18430. #define TIM1_AF2_BK2INP_Msk (0x1UL << TIM1_AF2_BK2INP_Pos) /*!< 0x00000200 */
  18431. #define TIM1_AF2_BK2INP TIM1_AF2_BK2INP_Msk /*!<BRKINP Break2 input polarity */
  18432. #define TIM1_AF2_BK2CMP1P_Pos (10U)
  18433. #define TIM1_AF2_BK2CMP1P_Msk (0x1UL << TIM1_AF2_BK2CMP1P_Pos) /*!< 0x00000400 */
  18434. #define TIM1_AF2_BK2CMP1P TIM1_AF2_BK2CMP1P_Msk /*!<BKCMP1P Break2 COMP1 input polarity */
  18435. #define TIM1_AF2_BK2CMP2P_Pos (11U)
  18436. #define TIM1_AF2_BK2CMP2P_Msk (0x1UL << TIM1_AF2_BK2CMP2P_Pos) /*!< 0x00000800 */
  18437. #define TIM1_AF2_BK2CMP2P TIM1_AF2_BK2CMP2P_Msk /*!<BKCMP2P Break2 COMP2 input polarity */
  18438. /******************* Bit definition for TIM_TISEL register *********************/
  18439. #define TIM_TISEL_TI1SEL_Pos (0U)
  18440. #define TIM_TISEL_TI1SEL_Msk (0xFUL << TIM_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  18441. #define TIM_TISEL_TI1SEL TIM_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM TI1 SEL)*/
  18442. #define TIM_TISEL_TI1SEL_0 (0x1UL << TIM_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  18443. #define TIM_TISEL_TI1SEL_1 (0x2UL << TIM_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18444. #define TIM_TISEL_TI1SEL_2 (0x4UL << TIM_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18445. #define TIM_TISEL_TI1SEL_3 (0x8UL << TIM_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18446. #define TIM_TISEL_TI2SEL_Pos (8U)
  18447. #define TIM_TISEL_TI2SEL_Msk (0xFUL << TIM_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  18448. #define TIM_TISEL_TI2SEL TIM_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM TI2 SEL)*/
  18449. #define TIM_TISEL_TI2SEL_0 (0x1UL << TIM_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  18450. #define TIM_TISEL_TI2SEL_1 (0x2UL << TIM_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  18451. #define TIM_TISEL_TI2SEL_2 (0x4UL << TIM_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  18452. #define TIM_TISEL_TI2SEL_3 (0x8UL << TIM_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  18453. #define TIM_TISEL_TI3SEL_Pos (16U)
  18454. #define TIM_TISEL_TI3SEL_Msk (0xFUL << TIM_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  18455. #define TIM_TISEL_TI3SEL TIM_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM TI3 SEL)*/
  18456. #define TIM_TISEL_TI3SEL_0 (0x1UL << TIM_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  18457. #define TIM_TISEL_TI3SEL_1 (0x2UL << TIM_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  18458. #define TIM_TISEL_TI3SEL_2 (0x4UL << TIM_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  18459. #define TIM_TISEL_TI3SEL_3 (0x8UL << TIM_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  18460. #define TIM_TISEL_TI4SEL_Pos (24U)
  18461. #define TIM_TISEL_TI4SEL_Msk (0xFUL << TIM_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  18462. #define TIM_TISEL_TI4SEL TIM_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM TI4 SEL)*/
  18463. #define TIM_TISEL_TI4SEL_0 (0x1UL << TIM_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  18464. #define TIM_TISEL_TI4SEL_1 (0x2UL << TIM_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  18465. #define TIM_TISEL_TI4SEL_2 (0x4UL << TIM_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  18466. #define TIM_TISEL_TI4SEL_3 (0x8UL << TIM_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  18467. /******************* Bit definition for TIM8_AF1 register *********************/
  18468. #define TIM8_AF1_BKINE_Pos (0U)
  18469. #define TIM8_AF1_BKINE_Msk (0x1UL << TIM8_AF1_BKINE_Pos) /*!< 0x00000001 */
  18470. #define TIM8_AF1_BKINE TIM8_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18471. #define TIM8_AF1_BKCMP1E_Pos (1U)
  18472. #define TIM8_AF1_BKCMP1E_Msk (0x1UL << TIM8_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18473. #define TIM8_AF1_BKCMP1E TIM8_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18474. #define TIM8_AF1_BKCMP2E_Pos (2U)
  18475. #define TIM8_AF1_BKCMP2E_Msk (0x1UL << TIM8_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18476. #define TIM8_AF1_BKCMP2E TIM8_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18477. #define TIM8_AF1_BKDFBK2E_Pos (8U)
  18478. #define TIM8_AF1_BKDFBK2E_Msk (0x1UL << TIM8_AF1_BKDFBK2E_Pos) /*!< 0x00000100 */
  18479. #define TIM8_AF1_BKDFBK2E TIM8_AF1_BKDFBK2E_Msk /*!<BKDFBK2E Break input DFSDM Break 2 */
  18480. #define TIM8_AF1_BKINP_Pos (9U)
  18481. #define TIM8_AF1_BKINP_Msk (0x1UL << TIM8_AF1_BKINP_Pos) /*!< 0x00000200 */
  18482. #define TIM8_AF1_BKINP TIM8_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18483. #define TIM8_AF1_BKCMP1P_Pos (10U)
  18484. #define TIM8_AF1_BKCMP1P_Msk (0x1UL << TIM8_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18485. #define TIM8_AF1_BKCMP1P TIM8_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18486. #define TIM8_AF1_BKCMP2P_Pos (11U)
  18487. #define TIM8_AF1_BKCMP2P_Msk (0x1UL << TIM8_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18488. #define TIM8_AF1_BKCMP2P TIM8_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18489. #define TIM8_AF1_ETRSEL_Pos (14U)
  18490. #define TIM8_AF1_ETRSEL_Msk (0xFUL << TIM8_AF1_ETRSEL_Pos) /*!< 0x0003C000 */
  18491. #define TIM8_AF1_ETRSEL TIM8_AF1_ETRSEL_Msk /*!<ETRSEL[3:0] bits (TIM8 ETRSEL) */
  18492. #define TIM8_AF1_ETRSEL_0 (0x1UL << TIM8_AF1_ETRSEL_Pos) /*!< 0x00004000 */
  18493. #define TIM8_AF1_ETRSEL_1 (0x2UL << TIM8_AF1_ETRSEL_Pos) /*!< 0x00008000 */
  18494. #define TIM8_AF1_ETRSEL_2 (0x4UL << TIM8_AF1_ETRSEL_Pos) /*!< 0x00010000 */
  18495. #define TIM8_AF1_ETRSEL_3 (0x8UL << TIM8_AF1_ETRSEL_Pos) /*!< 0x00020000 */
  18496. /******************* Bit definition for TIM8_AF2 register *********************/
  18497. #define TIM8_AF2_BK2INE_Pos (0U)
  18498. #define TIM8_AF2_BK2INE_Msk (0x1UL << TIM8_AF2_BK2INE_Pos) /*!< 0x00000001 */
  18499. #define TIM8_AF2_BK2INE TIM8_AF2_BK2INE_Msk /*!<BK2INE Break input 2 enable bit */
  18500. #define TIM8_AF2_BK2CMP1E_Pos (1U)
  18501. #define TIM8_AF2_BK2CMP1E_Msk (0x1UL << TIM8_AF2_BK2CMP1E_Pos) /*!< 0x00000002 */
  18502. #define TIM8_AF2_BK2CMP1E TIM8_AF2_BK2CMP1E_Msk /*!<BK2CMP1E Break2 Compare1 Enable bit */
  18503. #define TIM8_AF2_BK2CMP2E_Pos (2U)
  18504. #define TIM8_AF2_BK2CMP2E_Msk (0x1UL << TIM8_AF2_BK2CMP2E_Pos) /*!< 0x00000004 */
  18505. #define TIM8_AF2_BK2CMP2E TIM8_AF2_BK2CMP2E_Msk /*!<BK2CMP1E Break2 Compare2 Enable bit */
  18506. #define TIM8_AF2_BK2DFBK3E_Pos (8U)
  18507. #define TIM8_AF2_BK2DFBK3E_Msk (0x1UL << TIM8_AF2_BK2DFBK3E_Pos) /*!< 0x00000100 */
  18508. #define TIM8_AF2_BK2DFBK3E TIM8_AF2_BK2DFBK3E_Msk /*!<BK2DFBK1E Break input2 DFSDM Break 3 */
  18509. #define TIM8_AF2_BK2INP_Pos (9U)
  18510. #define TIM8_AF2_BK2INP_Msk (0x1UL << TIM8_AF2_BK2INP_Pos) /*!< 0x00000200 */
  18511. #define TIM8_AF2_BK2INP TIM8_AF2_BK2INP_Msk /*!<BRKINP Break2 input polarity */
  18512. #define TIM8_AF2_BK2CMP1P_Pos (10U)
  18513. #define TIM8_AF2_BK2CMP1P_Msk (0x1UL << TIM8_AF2_BK2CMP1P_Pos) /*!< 0x00000400 */
  18514. #define TIM8_AF2_BK2CMP1P TIM8_AF2_BK2CMP1P_Msk /*!<BKCMP1P Break2 COMP1 input polarity */
  18515. #define TIM8_AF2_BK2CMP2P_Pos (11U)
  18516. #define TIM8_AF2_BK2CMP2P_Msk (0x1UL << TIM8_AF2_BK2CMP2P_Pos) /*!< 0x00000800 */
  18517. #define TIM8_AF2_BK2CMP2P TIM8_AF2_BK2CMP2P_Msk /*!<BKCMP2P Break2 COMP2 input polarity */
  18518. /******************* Bit definition for TIM2_AF1 register *********************/
  18519. #define TIM2_AF1_ETRSEL_Pos (14U)
  18520. #define TIM2_AF1_ETRSEL_Msk (0xFUL << TIM2_AF1_ETRSEL_Pos) /*!< 0x0003C000 */
  18521. #define TIM2_AF1_ETRSEL TIM2_AF1_ETRSEL_Msk /*!<ETRSEL[3:0] bits (TIM2 ETRSEL) */
  18522. #define TIM2_AF1_ETRSEL_0 (0x1UL << TIM2_AF1_ETRSEL_Pos) /*!< 0x00004000 */
  18523. #define TIM2_AF1_ETRSEL_1 (0x2UL << TIM2_AF1_ETRSEL_Pos) /*!< 0x00008000 */
  18524. #define TIM2_AF1_ETRSEL_2 (0x4UL << TIM2_AF1_ETRSEL_Pos) /*!< 0x00010000 */
  18525. #define TIM2_AF1_ETRSEL_3 (0x8UL << TIM2_AF1_ETRSEL_Pos) /*!< 0x00020000 */
  18526. /******************* Bit definition for TIM3_AF1 register *********************/
  18527. #define TIM3_AF1_ETRSEL_Pos (14U)
  18528. #define TIM3_AF1_ETRSEL_Msk (0xFUL << TIM3_AF1_ETRSEL_Pos) /*!< 0x0003C000 */
  18529. #define TIM3_AF1_ETRSEL TIM3_AF1_ETRSEL_Msk /*!<ETRSEL[3:0] bits (TIM3 ETRSEL) */
  18530. #define TIM3_AF1_ETRSEL_0 (0x1UL << TIM3_AF1_ETRSEL_Pos) /*!< 0x00004000 */
  18531. #define TIM3_AF1_ETRSEL_1 (0x2UL << TIM3_AF1_ETRSEL_Pos) /*!< 0x00008000 */
  18532. #define TIM3_AF1_ETRSEL_2 (0x4UL << TIM3_AF1_ETRSEL_Pos) /*!< 0x00010000 */
  18533. #define TIM3_AF1_ETRSEL_3 (0x8UL << TIM3_AF1_ETRSEL_Pos) /*!< 0x00020000 */
  18534. /******************* Bit definition for TIM5_AF1 register *********************/
  18535. #define TIM5_AF1_ETRSEL_Pos (14U)
  18536. #define TIM5_AF1_ETRSEL_Msk (0xFUL << TIM5_AF1_ETRSEL_Pos) /*!< 0x0003C000 */
  18537. #define TIM5_AF1_ETRSEL TIM5_AF1_ETRSEL_Msk /*!<ETRSEL[3:0] bits (TIM5 ETRSEL) */
  18538. #define TIM5_AF1_ETRSEL_0 (0x1UL << TIM5_AF1_ETRSEL_Pos) /*!< 0x00004000 */
  18539. #define TIM5_AF1_ETRSEL_1 (0x2UL << TIM5_AF1_ETRSEL_Pos) /*!< 0x00008000 */
  18540. #define TIM5_AF1_ETRSEL_2 (0x4UL << TIM5_AF1_ETRSEL_Pos) /*!< 0x00010000 */
  18541. #define TIM5_AF1_ETRSEL_3 (0x8UL << TIM5_AF1_ETRSEL_Pos) /*!< 0x00020000 */
  18542. /******************* Bit definition for TIM15_AF1 register *********************/
  18543. #define TIM15_AF1_BKINE_Pos (0U)
  18544. #define TIM15_AF1_BKINE_Msk (0x1UL << TIM15_AF1_BKINE_Pos) /*!< 0x00000001 */
  18545. #define TIM15_AF1_BKINE TIM15_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18546. #define TIM15_AF1_BKCMP1E_Pos (1U)
  18547. #define TIM15_AF1_BKCMP1E_Msk (0x1UL << TIM15_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18548. #define TIM15_AF1_BKCMP1E TIM15_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18549. #define TIM15_AF1_BKCMP2E_Pos (2U)
  18550. #define TIM15_AF1_BKCMP2E_Msk (0x1UL << TIM15_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18551. #define TIM15_AF1_BKCMP2E TIM15_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18552. #define TIM15_AF1_BKDF1BK2E_Pos (8U)
  18553. #define TIM15_AF1_BKDF1BK2E_Msk (0x1UL << TIM15_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  18554. #define TIM15_AF1_BKDF1BK2E TIM15_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[0] enable */
  18555. #define TIM15_AF1_BKINP_Pos (9U)
  18556. #define TIM15_AF1_BKINP_Msk (0x1UL << TIM15_AF1_BKINP_Pos) /*!< 0x00000200 */
  18557. #define TIM15_AF1_BKINP TIM15_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18558. #define TIM15_AF1_BKCMP1P_Pos (10U)
  18559. #define TIM15_AF1_BKCMP1P_Msk (0x1UL << TIM15_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18560. #define TIM15_AF1_BKCMP1P TIM15_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18561. #define TIM15_AF1_BKCMP2P_Pos (11U)
  18562. #define TIM15_AF1_BKCMP2P_Msk (0x1UL << TIM15_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18563. #define TIM15_AF1_BKCMP2P TIM15_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18564. /******************* Bit definition for TIM16_ register *********************/
  18565. #define TIM16_AF1_BKINE_Pos (0U)
  18566. #define TIM16_AF1_BKINE_Msk (0x1UL << TIM16_AF1_BKINE_Pos) /*!< 0x00000001 */
  18567. #define TIM16_AF1_BKINE TIM16_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18568. #define TIM16_AF1_BKCMP1E_Pos (1U)
  18569. #define TIM16_AF1_BKCMP1E_Msk (0x1UL << TIM16_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18570. #define TIM16_AF1_BKCMP1E TIM16_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18571. #define TIM16_AF1_BKCMP2E_Pos (2U)
  18572. #define TIM16_AF1_BKCMP2E_Msk (0x1UL << TIM16_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18573. #define TIM16_AF1_BKCMP2E TIM16_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18574. #define TIM16_AF1_BKDF1BK2E_Pos (8U)
  18575. #define TIM16_AF1_BKDF1BK2E_Msk (0x1UL << TIM16_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  18576. #define TIM16_AF1_BKDF1BK2E TIM16_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[1] enable */
  18577. #define TIM16_AF1_BKINP_Pos (9U)
  18578. #define TIM16_AF1_BKINP_Msk (0x1UL << TIM16_AF1_BKINP_Pos) /*!< 0x00000200 */
  18579. #define TIM16_AF1_BKINP TIM16_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18580. #define TIM16_AF1_BKCMP1P_Pos (10U)
  18581. #define TIM16_AF1_BKCMP1P_Msk (0x1UL << TIM16_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18582. #define TIM16_AF1_BKCMP1P TIM16_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18583. #define TIM16_AF1_BKCMP2P_Pos (11U)
  18584. #define TIM16_AF1_BKCMP2P_Msk (0x1UL << TIM16_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18585. #define TIM16_AF1_BKCMP2P TIM16_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18586. /******************* Bit definition for TIM17_AF1 register *********************/
  18587. #define TIM17_AF1_BKINE_Pos (0U)
  18588. #define TIM17_AF1_BKINE_Msk (0x1UL << TIM17_AF1_BKINE_Pos) /*!< 0x00000001 */
  18589. #define TIM17_AF1_BKINE TIM17_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18590. #define TIM17_AF1_BKCMP1E_Pos (1U)
  18591. #define TIM17_AF1_BKCMP1E_Msk (0x1UL << TIM17_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18592. #define TIM17_AF1_BKCMP1E TIM17_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18593. #define TIM17_AF1_BKCMP2E_Pos (2U)
  18594. #define TIM17_AF1_BKCMP2E_Msk (0x1UL << TIM17_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18595. #define TIM17_AF1_BKCMP2E TIM17_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18596. #define TIM17_AF1_BKDF1BK2E_Pos (8U)
  18597. #define TIM17_AF1_BKDF1BK2E_Msk (0x1UL << TIM17_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  18598. #define TIM17_AF1_BKDF1BK2E TIM17_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[2] enable */
  18599. #define TIM17_AF1_BKINP_Pos (9U)
  18600. #define TIM17_AF1_BKINP_Msk (0x1UL << TIM17_AF1_BKINP_Pos) /*!< 0x00000200 */
  18601. #define TIM17_AF1_BKINP TIM17_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18602. #define TIM17_AF1_BKCMP1P_Pos (10U)
  18603. #define TIM17_AF1_BKCMP1P_Msk (0x1UL << TIM17_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18604. #define TIM17_AF1_BKCMP1P TIM17_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18605. #define TIM17_AF1_BKCMP2P_Pos (11U)
  18606. #define TIM17_AF1_BKCMP2P_Msk (0x1UL << TIM17_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18607. #define TIM17_AF1_BKCMP2P TIM17_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18608. /******************************************************************************/
  18609. /* */
  18610. /* Low Power Timer (LPTTIM) */
  18611. /* */
  18612. /******************************************************************************/
  18613. /****************** Bit definition for LPTIM_ISR register *******************/
  18614. #define LPTIM_ISR_CMPM_Pos (0U)
  18615. #define LPTIM_ISR_CMPM_Msk (0x1UL << LPTIM_ISR_CMPM_Pos) /*!< 0x00000001 */
  18616. #define LPTIM_ISR_CMPM LPTIM_ISR_CMPM_Msk /*!< Compare match */
  18617. #define LPTIM_ISR_ARRM_Pos (1U)
  18618. #define LPTIM_ISR_ARRM_Msk (0x1UL << LPTIM_ISR_ARRM_Pos) /*!< 0x00000002 */
  18619. #define LPTIM_ISR_ARRM LPTIM_ISR_ARRM_Msk /*!< Autoreload match */
  18620. #define LPTIM_ISR_EXTTRIG_Pos (2U)
  18621. #define LPTIM_ISR_EXTTRIG_Msk (0x1UL << LPTIM_ISR_EXTTRIG_Pos) /*!< 0x00000004 */
  18622. #define LPTIM_ISR_EXTTRIG LPTIM_ISR_EXTTRIG_Msk /*!< External trigger edge event */
  18623. #define LPTIM_ISR_CMPOK_Pos (3U)
  18624. #define LPTIM_ISR_CMPOK_Msk (0x1UL << LPTIM_ISR_CMPOK_Pos) /*!< 0x00000008 */
  18625. #define LPTIM_ISR_CMPOK LPTIM_ISR_CMPOK_Msk /*!< Compare register update OK */
  18626. #define LPTIM_ISR_ARROK_Pos (4U)
  18627. #define LPTIM_ISR_ARROK_Msk (0x1UL << LPTIM_ISR_ARROK_Pos) /*!< 0x00000010 */
  18628. #define LPTIM_ISR_ARROK LPTIM_ISR_ARROK_Msk /*!< Autoreload register update OK */
  18629. #define LPTIM_ISR_UP_Pos (5U)
  18630. #define LPTIM_ISR_UP_Msk (0x1UL << LPTIM_ISR_UP_Pos) /*!< 0x00000020 */
  18631. #define LPTIM_ISR_UP LPTIM_ISR_UP_Msk /*!< Counter direction change down to up */
  18632. #define LPTIM_ISR_DOWN_Pos (6U)
  18633. #define LPTIM_ISR_DOWN_Msk (0x1UL << LPTIM_ISR_DOWN_Pos) /*!< 0x00000040 */
  18634. #define LPTIM_ISR_DOWN LPTIM_ISR_DOWN_Msk /*!< Counter direction change up to down */
  18635. /****************** Bit definition for LPTIM_ICR register *******************/
  18636. #define LPTIM_ICR_CMPMCF_Pos (0U)
  18637. #define LPTIM_ICR_CMPMCF_Msk (0x1UL << LPTIM_ICR_CMPMCF_Pos) /*!< 0x00000001 */
  18638. #define LPTIM_ICR_CMPMCF LPTIM_ICR_CMPMCF_Msk /*!< Compare match Clear Flag */
  18639. #define LPTIM_ICR_ARRMCF_Pos (1U)
  18640. #define LPTIM_ICR_ARRMCF_Msk (0x1UL << LPTIM_ICR_ARRMCF_Pos) /*!< 0x00000002 */
  18641. #define LPTIM_ICR_ARRMCF LPTIM_ICR_ARRMCF_Msk /*!< Autoreload match Clear Flag */
  18642. #define LPTIM_ICR_EXTTRIGCF_Pos (2U)
  18643. #define LPTIM_ICR_EXTTRIGCF_Msk (0x1UL << LPTIM_ICR_EXTTRIGCF_Pos) /*!< 0x00000004 */
  18644. #define LPTIM_ICR_EXTTRIGCF LPTIM_ICR_EXTTRIGCF_Msk /*!< External trigger edge event Clear Flag */
  18645. #define LPTIM_ICR_CMPOKCF_Pos (3U)
  18646. #define LPTIM_ICR_CMPOKCF_Msk (0x1UL << LPTIM_ICR_CMPOKCF_Pos) /*!< 0x00000008 */
  18647. #define LPTIM_ICR_CMPOKCF LPTIM_ICR_CMPOKCF_Msk /*!< Compare register update OK Clear Flag */
  18648. #define LPTIM_ICR_ARROKCF_Pos (4U)
  18649. #define LPTIM_ICR_ARROKCF_Msk (0x1UL << LPTIM_ICR_ARROKCF_Pos) /*!< 0x00000010 */
  18650. #define LPTIM_ICR_ARROKCF LPTIM_ICR_ARROKCF_Msk /*!< Autoreload register update OK Clear Flag */
  18651. #define LPTIM_ICR_UPCF_Pos (5U)
  18652. #define LPTIM_ICR_UPCF_Msk (0x1UL << LPTIM_ICR_UPCF_Pos) /*!< 0x00000020 */
  18653. #define LPTIM_ICR_UPCF LPTIM_ICR_UPCF_Msk /*!< Counter direction change down to up Clear Flag */
  18654. #define LPTIM_ICR_DOWNCF_Pos (6U)
  18655. #define LPTIM_ICR_DOWNCF_Msk (0x1UL << LPTIM_ICR_DOWNCF_Pos) /*!< 0x00000040 */
  18656. #define LPTIM_ICR_DOWNCF LPTIM_ICR_DOWNCF_Msk /*!< Counter direction change up to down Clear Flag */
  18657. /****************** Bit definition for LPTIM_IER register ********************/
  18658. #define LPTIM_IER_CMPMIE_Pos (0U)
  18659. #define LPTIM_IER_CMPMIE_Msk (0x1UL << LPTIM_IER_CMPMIE_Pos) /*!< 0x00000001 */
  18660. #define LPTIM_IER_CMPMIE LPTIM_IER_CMPMIE_Msk /*!< Compare match Interrupt Enable */
  18661. #define LPTIM_IER_ARRMIE_Pos (1U)
  18662. #define LPTIM_IER_ARRMIE_Msk (0x1UL << LPTIM_IER_ARRMIE_Pos) /*!< 0x00000002 */
  18663. #define LPTIM_IER_ARRMIE LPTIM_IER_ARRMIE_Msk /*!< Autoreload match Interrupt Enable */
  18664. #define LPTIM_IER_EXTTRIGIE_Pos (2U)
  18665. #define LPTIM_IER_EXTTRIGIE_Msk (0x1UL << LPTIM_IER_EXTTRIGIE_Pos) /*!< 0x00000004 */
  18666. #define LPTIM_IER_EXTTRIGIE LPTIM_IER_EXTTRIGIE_Msk /*!< External trigger edge event Interrupt Enable */
  18667. #define LPTIM_IER_CMPOKIE_Pos (3U)
  18668. #define LPTIM_IER_CMPOKIE_Msk (0x1UL << LPTIM_IER_CMPOKIE_Pos) /*!< 0x00000008 */
  18669. #define LPTIM_IER_CMPOKIE LPTIM_IER_CMPOKIE_Msk /*!< Compare register update OK Interrupt Enable */
  18670. #define LPTIM_IER_ARROKIE_Pos (4U)
  18671. #define LPTIM_IER_ARROKIE_Msk (0x1UL << LPTIM_IER_ARROKIE_Pos) /*!< 0x00000010 */
  18672. #define LPTIM_IER_ARROKIE LPTIM_IER_ARROKIE_Msk /*!< Autoreload register update OK Interrupt Enable */
  18673. #define LPTIM_IER_UPIE_Pos (5U)
  18674. #define LPTIM_IER_UPIE_Msk (0x1UL << LPTIM_IER_UPIE_Pos) /*!< 0x00000020 */
  18675. #define LPTIM_IER_UPIE LPTIM_IER_UPIE_Msk /*!< Counter direction change down to up Interrupt Enable */
  18676. #define LPTIM_IER_DOWNIE_Pos (6U)
  18677. #define LPTIM_IER_DOWNIE_Msk (0x1UL << LPTIM_IER_DOWNIE_Pos) /*!< 0x00000040 */
  18678. #define LPTIM_IER_DOWNIE LPTIM_IER_DOWNIE_Msk /*!< Counter direction change up to down Interrupt Enable */
  18679. /****************** Bit definition for LPTIM_CFGR register *******************/
  18680. #define LPTIM_CFGR_CKSEL_Pos (0U)
  18681. #define LPTIM_CFGR_CKSEL_Msk (0x1UL << LPTIM_CFGR_CKSEL_Pos) /*!< 0x00000001 */
  18682. #define LPTIM_CFGR_CKSEL LPTIM_CFGR_CKSEL_Msk /*!< Clock selector */
  18683. #define LPTIM_CFGR_CKPOL_Pos (1U)
  18684. #define LPTIM_CFGR_CKPOL_Msk (0x3UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000006 */
  18685. #define LPTIM_CFGR_CKPOL LPTIM_CFGR_CKPOL_Msk /*!< CKPOL[1:0] bits (Clock polarity) */
  18686. #define LPTIM_CFGR_CKPOL_0 (0x1UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000002 */
  18687. #define LPTIM_CFGR_CKPOL_1 (0x2UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000004 */
  18688. #define LPTIM_CFGR_CKFLT_Pos (3U)
  18689. #define LPTIM_CFGR_CKFLT_Msk (0x3UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000018 */
  18690. #define LPTIM_CFGR_CKFLT LPTIM_CFGR_CKFLT_Msk /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */
  18691. #define LPTIM_CFGR_CKFLT_0 (0x1UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000008 */
  18692. #define LPTIM_CFGR_CKFLT_1 (0x2UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000010 */
  18693. #define LPTIM_CFGR_TRGFLT_Pos (6U)
  18694. #define LPTIM_CFGR_TRGFLT_Msk (0x3UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x000000C0 */
  18695. #define LPTIM_CFGR_TRGFLT LPTIM_CFGR_TRGFLT_Msk /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */
  18696. #define LPTIM_CFGR_TRGFLT_0 (0x1UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000040 */
  18697. #define LPTIM_CFGR_TRGFLT_1 (0x2UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000080 */
  18698. #define LPTIM_CFGR_PRESC_Pos (9U)
  18699. #define LPTIM_CFGR_PRESC_Msk (0x7UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000E00 */
  18700. #define LPTIM_CFGR_PRESC LPTIM_CFGR_PRESC_Msk /*!< PRESC[2:0] bits (Clock prescaler) */
  18701. #define LPTIM_CFGR_PRESC_0 (0x1UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000200 */
  18702. #define LPTIM_CFGR_PRESC_1 (0x2UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000400 */
  18703. #define LPTIM_CFGR_PRESC_2 (0x4UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000800 */
  18704. #define LPTIM_CFGR_TRIGSEL_Pos (13U)
  18705. #define LPTIM_CFGR_TRIGSEL_Msk (0x7UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x0000E000 */
  18706. #define LPTIM_CFGR_TRIGSEL LPTIM_CFGR_TRIGSEL_Msk /*!< TRIGSEL[2:0]] bits (Trigger selector) */
  18707. #define LPTIM_CFGR_TRIGSEL_0 (0x1UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00002000 */
  18708. #define LPTIM_CFGR_TRIGSEL_1 (0x2UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00004000 */
  18709. #define LPTIM_CFGR_TRIGSEL_2 (0x4UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00008000 */
  18710. #define LPTIM_CFGR_TRIGEN_Pos (17U)
  18711. #define LPTIM_CFGR_TRIGEN_Msk (0x3UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00060000 */
  18712. #define LPTIM_CFGR_TRIGEN LPTIM_CFGR_TRIGEN_Msk /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */
  18713. #define LPTIM_CFGR_TRIGEN_0 (0x1UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00020000 */
  18714. #define LPTIM_CFGR_TRIGEN_1 (0x2UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00040000 */
  18715. #define LPTIM_CFGR_TIMOUT_Pos (19U)
  18716. #define LPTIM_CFGR_TIMOUT_Msk (0x1UL << LPTIM_CFGR_TIMOUT_Pos) /*!< 0x00080000 */
  18717. #define LPTIM_CFGR_TIMOUT LPTIM_CFGR_TIMOUT_Msk /*!< Timout enable */
  18718. #define LPTIM_CFGR_WAVE_Pos (20U)
  18719. #define LPTIM_CFGR_WAVE_Msk (0x1UL << LPTIM_CFGR_WAVE_Pos) /*!< 0x00100000 */
  18720. #define LPTIM_CFGR_WAVE LPTIM_CFGR_WAVE_Msk /*!< Waveform shape */
  18721. #define LPTIM_CFGR_WAVPOL_Pos (21U)
  18722. #define LPTIM_CFGR_WAVPOL_Msk (0x1UL << LPTIM_CFGR_WAVPOL_Pos) /*!< 0x00200000 */
  18723. #define LPTIM_CFGR_WAVPOL LPTIM_CFGR_WAVPOL_Msk /*!< Waveform shape polarity */
  18724. #define LPTIM_CFGR_PRELOAD_Pos (22U)
  18725. #define LPTIM_CFGR_PRELOAD_Msk (0x1UL << LPTIM_CFGR_PRELOAD_Pos) /*!< 0x00400000 */
  18726. #define LPTIM_CFGR_PRELOAD LPTIM_CFGR_PRELOAD_Msk /*!< Reg update mode */
  18727. #define LPTIM_CFGR_COUNTMODE_Pos (23U)
  18728. #define LPTIM_CFGR_COUNTMODE_Msk (0x1UL << LPTIM_CFGR_COUNTMODE_Pos) /*!< 0x00800000 */
  18729. #define LPTIM_CFGR_COUNTMODE LPTIM_CFGR_COUNTMODE_Msk /*!< Counter mode enable */
  18730. #define LPTIM_CFGR_ENC_Pos (24U)
  18731. #define LPTIM_CFGR_ENC_Msk (0x1UL << LPTIM_CFGR_ENC_Pos) /*!< 0x01000000 */
  18732. #define LPTIM_CFGR_ENC LPTIM_CFGR_ENC_Msk /*!< Encoder mode enable */
  18733. /****************** Bit definition for LPTIM_CR register ********************/
  18734. #define LPTIM_CR_ENABLE_Pos (0U)
  18735. #define LPTIM_CR_ENABLE_Msk (0x1UL << LPTIM_CR_ENABLE_Pos) /*!< 0x00000001 */
  18736. #define LPTIM_CR_ENABLE LPTIM_CR_ENABLE_Msk /*!< LPTIMer enable */
  18737. #define LPTIM_CR_SNGSTRT_Pos (1U)
  18738. #define LPTIM_CR_SNGSTRT_Msk (0x40001UL << LPTIM_CR_SNGSTRT_Pos) /*!< 0x00080002 */
  18739. #define LPTIM_CR_SNGSTRT LPTIM_CR_SNGSTRT_Msk /*!< Timer start in single mode */
  18740. #define LPTIM_CR_CNTSTRT_Pos (2U)
  18741. #define LPTIM_CR_CNTSTRT_Msk (0x1UL << LPTIM_CR_CNTSTRT_Pos) /*!< 0x00000004 */
  18742. #define LPTIM_CR_CNTSTRT LPTIM_CR_CNTSTRT_Msk /*!< Timer start in continuous mode */
  18743. #define LPTIM_CR_COUNTRST_Pos (3U)
  18744. #define LPTIM_CR_COUNTRST_Msk (0x1UL << LPTIM_CR_COUNTRST_Pos) /*!< 0x00000008 */
  18745. #define LPTIM_CR_COUNTRST LPTIM_CR_COUNTRST_Msk /*!< Timer Counter reset in synchronous mode*/
  18746. #define LPTIM_CR_RSTARE_Pos (4U)
  18747. #define LPTIM_CR_RSTARE_Msk (0x1UL << LPTIM_CR_RSTARE_Pos) /*!< 0x00000010 */
  18748. #define LPTIM_CR_RSTARE LPTIM_CR_RSTARE_Msk /*!< Timer Counter reset after read enable (asynchronously)*/
  18749. /****************** Bit definition for LPTIM_CMP register *******************/
  18750. #define LPTIM_CMP_CMP_Pos (0U)
  18751. #define LPTIM_CMP_CMP_Msk (0xFFFFUL << LPTIM_CMP_CMP_Pos) /*!< 0x0000FFFF */
  18752. #define LPTIM_CMP_CMP LPTIM_CMP_CMP_Msk /*!< Compare register */
  18753. /****************** Bit definition for LPTIM_ARR register *******************/
  18754. #define LPTIM_ARR_ARR_Pos (0U)
  18755. #define LPTIM_ARR_ARR_Msk (0xFFFFUL << LPTIM_ARR_ARR_Pos) /*!< 0x0000FFFF */
  18756. #define LPTIM_ARR_ARR LPTIM_ARR_ARR_Msk /*!< Auto reload register */
  18757. /****************** Bit definition for LPTIM_CNT register *******************/
  18758. #define LPTIM_CNT_CNT_Pos (0U)
  18759. #define LPTIM_CNT_CNT_Msk (0xFFFFUL << LPTIM_CNT_CNT_Pos) /*!< 0x0000FFFF */
  18760. #define LPTIM_CNT_CNT LPTIM_CNT_CNT_Msk /*!< Counter register */
  18761. /****************** Bit definition for LPTIM_CFGR2 register *****************/
  18762. #define LPTIM_CFGR2_IN1SEL_Pos (0U)
  18763. #define LPTIM_CFGR2_IN1SEL_Msk (0x3UL << LPTIM_CFGR2_IN1SEL_Pos) /*!< 0x00000003 */
  18764. #define LPTIM_CFGR2_IN1SEL LPTIM_CFGR2_IN1SEL_Msk /*!< IN1SEL[1:0] bits (Remap selection) */
  18765. #define LPTIM_CFGR2_IN1SEL_0 (0x1UL << LPTIM_CFGR2_IN1SEL_Pos) /*!< 0x00000001 */
  18766. #define LPTIM_CFGR2_IN1SEL_1 (0x2UL << LPTIM_CFGR2_IN1SEL_Pos) /*!< 0x00000002 */
  18767. #define LPTIM_CFGR2_IN2SEL_Pos (4U)
  18768. #define LPTIM_CFGR2_IN2SEL_Msk (0x3UL << LPTIM_CFGR2_IN2SEL_Pos) /*!< 0x00000030 */
  18769. #define LPTIM_CFGR2_IN2SEL LPTIM_CFGR2_IN2SEL_Msk /*!< IN2SEL[5:4] bits (Remap selection) */
  18770. #define LPTIM_CFGR2_IN2SEL_0 (0x1UL << LPTIM_CFGR2_IN2SEL_Pos) /*!< 0x00000010 */
  18771. #define LPTIM_CFGR2_IN2SEL_1 (0x2UL << LPTIM_CFGR2_IN2SEL_Pos) /*!< 0x00000020 */
  18772. /******************************************************************************/
  18773. /* */
  18774. /* OCTOSPI */
  18775. /* */
  18776. /******************************************************************************/
  18777. /***************** Bit definition for OCTOSPI_CR register *******************/
  18778. #define OCTOSPI_CR_EN_Pos (0U)
  18779. #define OCTOSPI_CR_EN_Msk (0x1UL << OCTOSPI_CR_EN_Pos) /*!< 0x00000001 */
  18780. #define OCTOSPI_CR_EN OCTOSPI_CR_EN_Msk /*!< Enable */
  18781. #define OCTOSPI_CR_ABORT_Pos (1U)
  18782. #define OCTOSPI_CR_ABORT_Msk (0x1UL << OCTOSPI_CR_ABORT_Pos) /*!< 0x00000002 */
  18783. #define OCTOSPI_CR_ABORT OCTOSPI_CR_ABORT_Msk /*!< Abort request */
  18784. #define OCTOSPI_CR_DMAEN_Pos (2U)
  18785. #define OCTOSPI_CR_DMAEN_Msk (0x1UL << OCTOSPI_CR_DMAEN_Pos) /*!< 0x00000004 */
  18786. #define OCTOSPI_CR_DMAEN OCTOSPI_CR_DMAEN_Msk /*!< DMA Enable */
  18787. #define OCTOSPI_CR_TCEN_Pos (3U)
  18788. #define OCTOSPI_CR_TCEN_Msk (0x1UL << OCTOSPI_CR_TCEN_Pos) /*!< 0x00000008 */
  18789. #define OCTOSPI_CR_TCEN OCTOSPI_CR_TCEN_Msk /*!< Timeout Counter Enable */
  18790. #define OCTOSPI_CR_DQM_Pos (6U)
  18791. #define OCTOSPI_CR_DQM_Msk (0x1UL << OCTOSPI_CR_DQM_Pos) /*!< 0x00000040 */
  18792. #define OCTOSPI_CR_DQM OCTOSPI_CR_DQM_Msk /*!< Dual-Quad Mode */
  18793. #define OCTOSPI_CR_FSEL_Pos (7U)
  18794. #define OCTOSPI_CR_FSEL_Msk (0x1UL << OCTOSPI_CR_FSEL_Pos) /*!< 0x00000080 */
  18795. #define OCTOSPI_CR_FSEL OCTOSPI_CR_FSEL_Msk /*!< Flash Select */
  18796. #define OCTOSPI_CR_FTHRES_Pos (8U)
  18797. #define OCTOSPI_CR_FTHRES_Msk (0x1FUL << OCTOSPI_CR_FTHRES_Pos) /*!< 0x00001F00 */
  18798. #define OCTOSPI_CR_FTHRES OCTOSPI_CR_FTHRES_Msk /*!< FIFO Threshold Level */
  18799. #define OCTOSPI_CR_TEIE_Pos (16U)
  18800. #define OCTOSPI_CR_TEIE_Msk (0x1UL << OCTOSPI_CR_TEIE_Pos) /*!< 0x00010000 */
  18801. #define OCTOSPI_CR_TEIE OCTOSPI_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  18802. #define OCTOSPI_CR_TCIE_Pos (17U)
  18803. #define OCTOSPI_CR_TCIE_Msk (0x1UL << OCTOSPI_CR_TCIE_Pos) /*!< 0x00020000 */
  18804. #define OCTOSPI_CR_TCIE OCTOSPI_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  18805. #define OCTOSPI_CR_FTIE_Pos (18U)
  18806. #define OCTOSPI_CR_FTIE_Msk (0x1UL << OCTOSPI_CR_FTIE_Pos) /*!< 0x00040000 */
  18807. #define OCTOSPI_CR_FTIE OCTOSPI_CR_FTIE_Msk /*!< FIFO Threshold Interrupt Enable */
  18808. #define OCTOSPI_CR_SMIE_Pos (19U)
  18809. #define OCTOSPI_CR_SMIE_Msk (0x1UL << OCTOSPI_CR_SMIE_Pos) /*!< 0x00080000 */
  18810. #define OCTOSPI_CR_SMIE OCTOSPI_CR_SMIE_Msk /*!< Status Match Interrupt Enable */
  18811. #define OCTOSPI_CR_TOIE_Pos (20U)
  18812. #define OCTOSPI_CR_TOIE_Msk (0x1UL << OCTOSPI_CR_TOIE_Pos) /*!< 0x00100000 */
  18813. #define OCTOSPI_CR_TOIE OCTOSPI_CR_TOIE_Msk /*!< TimeOut Interrupt Enable */
  18814. #define OCTOSPI_CR_APMS_Pos (22U)
  18815. #define OCTOSPI_CR_APMS_Msk (0x1UL << OCTOSPI_CR_APMS_Pos) /*!< 0x00400000 */
  18816. #define OCTOSPI_CR_APMS OCTOSPI_CR_APMS_Msk /*!< Automatic Poll Mode Stop */
  18817. #define OCTOSPI_CR_PMM_Pos (23U)
  18818. #define OCTOSPI_CR_PMM_Msk (0x1UL << OCTOSPI_CR_PMM_Pos) /*!< 0x00800000 */
  18819. #define OCTOSPI_CR_PMM OCTOSPI_CR_PMM_Msk /*!< Polling Match Mode */
  18820. #define OCTOSPI_CR_FMODE_Pos (28U)
  18821. #define OCTOSPI_CR_FMODE_Msk (0x3UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x30000000 */
  18822. #define OCTOSPI_CR_FMODE OCTOSPI_CR_FMODE_Msk /*!< Functional Mode */
  18823. #define OCTOSPI_CR_FMODE_0 (0x1UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x10000000 */
  18824. #define OCTOSPI_CR_FMODE_1 (0x2UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x20000000 */
  18825. /**************** Bit definition for OCTOSPI_DCR1 register ******************/
  18826. #define OCTOSPI_DCR1_CKMODE_Pos (0U)
  18827. #define OCTOSPI_DCR1_CKMODE_Msk (0x1UL << OCTOSPI_DCR1_CKMODE_Pos) /*!< 0x00000001 */
  18828. #define OCTOSPI_DCR1_CKMODE OCTOSPI_DCR1_CKMODE_Msk /*!< Mode 0 / Mode 3 */
  18829. #define OCTOSPI_DCR1_FRCK_Pos (1U)
  18830. #define OCTOSPI_DCR1_FRCK_Msk (0x1UL << OCTOSPI_DCR1_FRCK_Pos) /*!< 0x00000002 */
  18831. #define OCTOSPI_DCR1_FRCK OCTOSPI_DCR1_FRCK_Msk /*!< Free Running Clock */
  18832. #define OCTOSPI_DCR1_DLYBYP_Pos (3U)
  18833. #define OCTOSPI_DCR1_DLYBYP_Msk (0x1UL << OCTOSPI_DCR1_DLYBYP_Pos) /*!< 0x00000008 */
  18834. #define OCTOSPI_DCR1_DLYBYP OCTOSPI_DCR1_DLYBYP_Msk /*!< Delay Block */
  18835. #define OCTOSPI_DCR1_CKCSHT_Pos (4U)
  18836. #define OCTOSPI_DCR1_CKCSHT_Msk (0x7UL << OCTOSPI_DCR1_CKCSHT_Pos) /*!< 0x00000070 */
  18837. #define OCTOSPI_DCR1_CKCSHT OCTOSPI_DCR1_CKCSHT_Msk /*!< Clocked Chip Select High Time */
  18838. #define OCTOSPI_DCR1_CSHT_Pos (8U)
  18839. #define OCTOSPI_DCR1_CSHT_Msk (0x7UL << OCTOSPI_DCR1_CSHT_Pos) /*!< 0x00000700 */
  18840. #define OCTOSPI_DCR1_CSHT OCTOSPI_DCR1_CSHT_Msk /*!< Chip Select High Time */
  18841. #define OCTOSPI_DCR1_DEVSIZE_Pos (16U)
  18842. #define OCTOSPI_DCR1_DEVSIZE_Msk (0x1FUL << OCTOSPI_DCR1_DEVSIZE_Pos) /*!< 0x001F0000 */
  18843. #define OCTOSPI_DCR1_DEVSIZE OCTOSPI_DCR1_DEVSIZE_Msk /*!< Device Size */
  18844. #define OCTOSPI_DCR1_MTYP_Pos (24U)
  18845. #define OCTOSPI_DCR1_MTYP_Msk (0x7UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x07000000 */
  18846. #define OCTOSPI_DCR1_MTYP OCTOSPI_DCR1_MTYP_Msk /*!< Memory Type */
  18847. #define OCTOSPI_DCR1_MTYP_0 (0x1UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x01000000 */
  18848. #define OCTOSPI_DCR1_MTYP_1 (0x2UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x02000000 */
  18849. #define OCTOSPI_DCR1_MTYP_2 (0x4UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x04000000 */
  18850. /**************** Bit definition for OCTOSPI_DCR2 register ******************/
  18851. #define OCTOSPI_DCR2_PRESCALER_Pos (0U)
  18852. #define OCTOSPI_DCR2_PRESCALER_Msk (0xFFUL << OCTOSPI_DCR2_PRESCALER_Pos) /*!< 0x000000FF */
  18853. #define OCTOSPI_DCR2_PRESCALER OCTOSPI_DCR2_PRESCALER_Msk /*!< Clock prescaler */
  18854. #define OCTOSPI_DCR2_WRAPSIZE_Pos (16U)
  18855. #define OCTOSPI_DCR2_WRAPSIZE_Msk (0x7UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00070000 */
  18856. #define OCTOSPI_DCR2_WRAPSIZE OCTOSPI_DCR2_WRAPSIZE_Msk /*!< Wrap Size */
  18857. #define OCTOSPI_DCR2_WRAPSIZE_0 (0x1UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00010000 */
  18858. #define OCTOSPI_DCR2_WRAPSIZE_1 (0x2UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00020000 */
  18859. #define OCTOSPI_DCR2_WRAPSIZE_2 (0x4UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00040000 */
  18860. /**************** Bit definition for OCTOSPI_DCR3 register ******************/
  18861. #define OCTOSPI_DCR3_MAXTRAN_Pos (0U)
  18862. #define OCTOSPI_DCR3_MAXTRAN_Msk (0xFFUL << OCTOSPI_DCR3_MAXTRAN_Pos) /*!< 0x000000FF */
  18863. #define OCTOSPI_DCR3_MAXTRAN OCTOSPI_DCR3_MAXTRAN_Msk /*!< Maximum Transfer */
  18864. #define OCTOSPI_DCR3_CSBOUND_Pos (16U)
  18865. #define OCTOSPI_DCR3_CSBOUND_Msk (0x1FUL << OCTOSPI_DCR3_CSBOUND_Pos) /*!< 0x001F0000 */
  18866. #define OCTOSPI_DCR3_CSBOUND OCTOSPI_DCR3_CSBOUND_Msk /*!< CS Boundary */
  18867. /**************** Bit definition for OCTOSPI_DCR4 register ******************/
  18868. #define OCTOSPI_DCR4_REFRESH_Pos (0U)
  18869. #define OCTOSPI_DCR4_REFRESH_Msk (0xFFFFFFFFUL << OCTOSPI_DCR4_REFRESH_Pos) /*!< 0xFFFFFFFF */
  18870. #define OCTOSPI_DCR4_REFRESH OCTOSPI_DCR4_REFRESH_Msk /*!< Refresh rate */
  18871. /***************** Bit definition for OCTOSPI_SR register *******************/
  18872. #define OCTOSPI_SR_TEF_Pos (0U)
  18873. #define OCTOSPI_SR_TEF_Msk (0x1UL << OCTOSPI_SR_TEF_Pos) /*!< 0x00000001 */
  18874. #define OCTOSPI_SR_TEF OCTOSPI_SR_TEF_Msk /*!< Transfer Error Flag */
  18875. #define OCTOSPI_SR_TCF_Pos (1U)
  18876. #define OCTOSPI_SR_TCF_Msk (0x1UL << OCTOSPI_SR_TCF_Pos) /*!< 0x00000002 */
  18877. #define OCTOSPI_SR_TCF OCTOSPI_SR_TCF_Msk /*!< Transfer Complete Flag */
  18878. #define OCTOSPI_SR_FTF_Pos (2U)
  18879. #define OCTOSPI_SR_FTF_Msk (0x1UL << OCTOSPI_SR_FTF_Pos) /*!< 0x00000004 */
  18880. #define OCTOSPI_SR_FTF OCTOSPI_SR_FTF_Msk /*!< FIFO Threshold Flag */
  18881. #define OCTOSPI_SR_SMF_Pos (3U)
  18882. #define OCTOSPI_SR_SMF_Msk (0x1UL << OCTOSPI_SR_SMF_Pos) /*!< 0x00000008 */
  18883. #define OCTOSPI_SR_SMF OCTOSPI_SR_SMF_Msk /*!< Status Match Flag */
  18884. #define OCTOSPI_SR_TOF_Pos (4U)
  18885. #define OCTOSPI_SR_TOF_Msk (0x1UL << OCTOSPI_SR_TOF_Pos) /*!< 0x00000010 */
  18886. #define OCTOSPI_SR_TOF OCTOSPI_SR_TOF_Msk /*!< Timeout Flag */
  18887. #define OCTOSPI_SR_BUSY_Pos (5U)
  18888. #define OCTOSPI_SR_BUSY_Msk (0x1UL << OCTOSPI_SR_BUSY_Pos) /*!< 0x00000020 */
  18889. #define OCTOSPI_SR_BUSY OCTOSPI_SR_BUSY_Msk /*!< Busy */
  18890. #define OCTOSPI_SR_FLEVEL_Pos (8U)
  18891. #define OCTOSPI_SR_FLEVEL_Msk (0x3FUL << OCTOSPI_SR_FLEVEL_Pos) /*!< 0x00003F00 */
  18892. #define OCTOSPI_SR_FLEVEL OCTOSPI_SR_FLEVEL_Msk /*!< FIFO Level */
  18893. /**************** Bit definition for OCTOSPI_FCR register *******************/
  18894. #define OCTOSPI_FCR_CTEF_Pos (0U)
  18895. #define OCTOSPI_FCR_CTEF_Msk (0x1UL << OCTOSPI_FCR_CTEF_Pos) /*!< 0x00000001 */
  18896. #define OCTOSPI_FCR_CTEF OCTOSPI_FCR_CTEF_Msk /*!< Clear Transfer Error Flag */
  18897. #define OCTOSPI_FCR_CTCF_Pos (1U)
  18898. #define OCTOSPI_FCR_CTCF_Msk (0x1UL << OCTOSPI_FCR_CTCF_Pos) /*!< 0x00000002 */
  18899. #define OCTOSPI_FCR_CTCF OCTOSPI_FCR_CTCF_Msk /*!< Clear Transfer Complete Flag */
  18900. #define OCTOSPI_FCR_CSMF_Pos (3U)
  18901. #define OCTOSPI_FCR_CSMF_Msk (0x1UL << OCTOSPI_FCR_CSMF_Pos) /*!< 0x00000008 */
  18902. #define OCTOSPI_FCR_CSMF OCTOSPI_FCR_CSMF_Msk /*!< Clear Status Match Flag */
  18903. #define OCTOSPI_FCR_CTOF_Pos (4U)
  18904. #define OCTOSPI_FCR_CTOF_Msk (0x1UL << OCTOSPI_FCR_CTOF_Pos) /*!< 0x00000010 */
  18905. #define OCTOSPI_FCR_CTOF OCTOSPI_FCR_CTOF_Msk /*!< Clear Timeout Flag */
  18906. /**************** Bit definition for OCTOSPI_DLR register *******************/
  18907. #define OCTOSPI_DLR_DL_Pos (0U)
  18908. #define OCTOSPI_DLR_DL_Msk (0xFFFFFFFFUL << OCTOSPI_DLR_DL_Pos) /*!< 0xFFFFFFFF */
  18909. #define OCTOSPI_DLR_DL OCTOSPI_DLR_DL_Msk /*!< Data Length */
  18910. /***************** Bit definition for OCTOSPI_AR register *******************/
  18911. #define OCTOSPI_AR_ADDRESS_Pos (0U)
  18912. #define OCTOSPI_AR_ADDRESS_Msk (0xFFFFFFFFUL << OCTOSPI_AR_ADDRESS_Pos) /*!< 0xFFFFFFFF */
  18913. #define OCTOSPI_AR_ADDRESS OCTOSPI_AR_ADDRESS_Msk /*!< Address */
  18914. /***************** Bit definition for OCTOSPI_DR register *******************/
  18915. #define OCTOSPI_DR_DATA_Pos (0U)
  18916. #define OCTOSPI_DR_DATA_Msk (0xFFFFFFFFUL << OCTOSPI_DR_DATA_Pos) /*!< 0xFFFFFFFF */
  18917. #define OCTOSPI_DR_DATA OCTOSPI_DR_DATA_Msk /*!< Data */
  18918. /*************** Bit definition for OCTOSPI_PSMKR register ******************/
  18919. #define OCTOSPI_PSMKR_MASK_Pos (0U)
  18920. #define OCTOSPI_PSMKR_MASK_Msk (0xFFFFFFFFUL << OCTOSPI_PSMKR_MASK_Pos) /*!< 0xFFFFFFFF */
  18921. #define OCTOSPI_PSMKR_MASK OCTOSPI_PSMKR_MASK_Msk /*!< Status mask */
  18922. /*************** Bit definition for OCTOSPI_PSMAR register ******************/
  18923. #define OCTOSPI_PSMAR_MATCH_Pos (0U)
  18924. #define OCTOSPI_PSMAR_MATCH_Msk (0xFFFFFFFFUL << OCTOSPI_PSMAR_MATCH_Pos) /*!< 0xFFFFFFFF */
  18925. #define OCTOSPI_PSMAR_MATCH OCTOSPI_PSMAR_MATCH_Msk /*!< Status match */
  18926. /**************** Bit definition for OCTOSPI_PIR register *******************/
  18927. #define OCTOSPI_PIR_INTERVAL_Pos (0U)
  18928. #define OCTOSPI_PIR_INTERVAL_Msk (0xFFFFUL << OCTOSPI_PIR_INTERVAL_Pos) /*!< 0x0000FFFF */
  18929. #define OCTOSPI_PIR_INTERVAL OCTOSPI_PIR_INTERVAL_Msk /*!< Polling Interval */
  18930. /**************** Bit definition for OCTOSPI_CCR register *******************/
  18931. #define OCTOSPI_CCR_IMODE_Pos (0U)
  18932. #define OCTOSPI_CCR_IMODE_Msk (0x7UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000007 */
  18933. #define OCTOSPI_CCR_IMODE OCTOSPI_CCR_IMODE_Msk /*!< Instruction Mode */
  18934. #define OCTOSPI_CCR_IMODE_0 (0x1UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000001 */
  18935. #define OCTOSPI_CCR_IMODE_1 (0x2UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000002 */
  18936. #define OCTOSPI_CCR_IMODE_2 (0x4UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000004 */
  18937. #define OCTOSPI_CCR_IDTR_Pos (3U)
  18938. #define OCTOSPI_CCR_IDTR_Msk (0x1UL << OCTOSPI_CCR_IDTR_Pos) /*!< 0x00000008 */
  18939. #define OCTOSPI_CCR_IDTR OCTOSPI_CCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  18940. #define OCTOSPI_CCR_ISIZE_Pos (4U)
  18941. #define OCTOSPI_CCR_ISIZE_Msk (0x3UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000030 */
  18942. #define OCTOSPI_CCR_ISIZE OCTOSPI_CCR_ISIZE_Msk /*!< Instruction Size */
  18943. #define OCTOSPI_CCR_ISIZE_0 (0x1UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000010 */
  18944. #define OCTOSPI_CCR_ISIZE_1 (0x2UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000020 */
  18945. #define OCTOSPI_CCR_ADMODE_Pos (8U)
  18946. #define OCTOSPI_CCR_ADMODE_Msk (0x7UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000700 */
  18947. #define OCTOSPI_CCR_ADMODE OCTOSPI_CCR_ADMODE_Msk /*!< Address Mode */
  18948. #define OCTOSPI_CCR_ADMODE_0 (0x1UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000100 */
  18949. #define OCTOSPI_CCR_ADMODE_1 (0x2UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000200 */
  18950. #define OCTOSPI_CCR_ADMODE_2 (0x4UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000400 */
  18951. #define OCTOSPI_CCR_ADDTR_Pos (11U)
  18952. #define OCTOSPI_CCR_ADDTR_Msk (0x1UL << OCTOSPI_CCR_ADDTR_Pos) /*!< 0x00000800 */
  18953. #define OCTOSPI_CCR_ADDTR OCTOSPI_CCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  18954. #define OCTOSPI_CCR_ADSIZE_Pos (12U)
  18955. #define OCTOSPI_CCR_ADSIZE_Msk (0x3UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00003000 */
  18956. #define OCTOSPI_CCR_ADSIZE OCTOSPI_CCR_ADSIZE_Msk /*!< Address Size */
  18957. #define OCTOSPI_CCR_ADSIZE_0 (0x1UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00001000 */
  18958. #define OCTOSPI_CCR_ADSIZE_1 (0x2UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00002000 */
  18959. #define OCTOSPI_CCR_ABMODE_Pos (16U)
  18960. #define OCTOSPI_CCR_ABMODE_Msk (0x7UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00070000 */
  18961. #define OCTOSPI_CCR_ABMODE OCTOSPI_CCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  18962. #define OCTOSPI_CCR_ABMODE_0 (0x1UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00010000 */
  18963. #define OCTOSPI_CCR_ABMODE_1 (0x2UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00020000 */
  18964. #define OCTOSPI_CCR_ABMODE_2 (0x4UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00040000 */
  18965. #define OCTOSPI_CCR_ABDTR_Pos (19U)
  18966. #define OCTOSPI_CCR_ABDTR_Msk (0x1UL << OCTOSPI_CCR_ABDTR_Pos) /*!< 0x00080000 */
  18967. #define OCTOSPI_CCR_ABDTR OCTOSPI_CCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  18968. #define OCTOSPI_CCR_ABSIZE_Pos (20U)
  18969. #define OCTOSPI_CCR_ABSIZE_Msk (0x3UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00300000 */
  18970. #define OCTOSPI_CCR_ABSIZE OCTOSPI_CCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  18971. #define OCTOSPI_CCR_ABSIZE_0 (0x1UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00100000 */
  18972. #define OCTOSPI_CCR_ABSIZE_1 (0x2UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00200000 */
  18973. #define OCTOSPI_CCR_DMODE_Pos (24U)
  18974. #define OCTOSPI_CCR_DMODE_Msk (0x7UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x07000000 */
  18975. #define OCTOSPI_CCR_DMODE OCTOSPI_CCR_DMODE_Msk /*!< Data Mode */
  18976. #define OCTOSPI_CCR_DMODE_0 (0x1UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x01000000 */
  18977. #define OCTOSPI_CCR_DMODE_1 (0x2UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x02000000 */
  18978. #define OCTOSPI_CCR_DMODE_2 (0x4UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x04000000 */
  18979. #define OCTOSPI_CCR_DDTR_Pos (27U)
  18980. #define OCTOSPI_CCR_DDTR_Msk (0x1UL << OCTOSPI_CCR_DDTR_Pos) /*!< 0x08000000 */
  18981. #define OCTOSPI_CCR_DDTR OCTOSPI_CCR_DDTR_Msk /*!< Data Double Transfer Rate */
  18982. #define OCTOSPI_CCR_DQSE_Pos (29U)
  18983. #define OCTOSPI_CCR_DQSE_Msk (0x1UL << OCTOSPI_CCR_DQSE_Pos) /*!< 0x20000000 */
  18984. #define OCTOSPI_CCR_DQSE OCTOSPI_CCR_DQSE_Msk /*!< DQS Enable */
  18985. #define OCTOSPI_CCR_SIOO_Pos (31U)
  18986. #define OCTOSPI_CCR_SIOO_Msk (0x1UL << OCTOSPI_CCR_SIOO_Pos) /*!< 0x80000000 */
  18987. #define OCTOSPI_CCR_SIOO OCTOSPI_CCR_SIOO_Msk /*!< Send Instruction Only Once Mode */
  18988. /**************** Bit definition for OCTOSPI_TCR register *******************/
  18989. #define OCTOSPI_TCR_DCYC_Pos (0U)
  18990. #define OCTOSPI_TCR_DCYC_Msk (0x1FUL << OCTOSPI_TCR_DCYC_Pos) /*!< 0x0000001F */
  18991. #define OCTOSPI_TCR_DCYC OCTOSPI_TCR_DCYC_Msk /*!< Number of Dummy Cycles */
  18992. #define OCTOSPI_TCR_DHQC_Pos (28U)
  18993. #define OCTOSPI_TCR_DHQC_Msk (0x1UL << OCTOSPI_TCR_DHQC_Pos) /*!< 0x10000000 */
  18994. #define OCTOSPI_TCR_DHQC OCTOSPI_TCR_DHQC_Msk /*!< Delay Hold Quarter Cycle */
  18995. #define OCTOSPI_TCR_SSHIFT_Pos (30U)
  18996. #define OCTOSPI_TCR_SSHIFT_Msk (0x1UL << OCTOSPI_TCR_SSHIFT_Pos) /*!< 0x40000000 */
  18997. #define OCTOSPI_TCR_SSHIFT OCTOSPI_TCR_SSHIFT_Msk /*!< Sample Shift */
  18998. /***************** Bit definition for OCTOSPI_IR register *******************/
  18999. #define OCTOSPI_IR_INSTRUCTION_Pos (0U)
  19000. #define OCTOSPI_IR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_IR_INSTRUCTION_Pos) /*!< 0xFFFFFFFF */
  19001. #define OCTOSPI_IR_INSTRUCTION OCTOSPI_IR_INSTRUCTION_Msk /*!< Instruction */
  19002. /**************** Bit definition for OCTOSPI_ABR register *******************/
  19003. #define OCTOSPI_ABR_ALTERNATE_Pos (0U)
  19004. #define OCTOSPI_ABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_ABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
  19005. #define OCTOSPI_ABR_ALTERNATE OCTOSPI_ABR_ALTERNATE_Msk /*!< Alternate Bytes */
  19006. /**************** Bit definition for OCTOSPI_LPTR register ******************/
  19007. #define OCTOSPI_LPTR_TIMEOUT_Pos (0U)
  19008. #define OCTOSPI_LPTR_TIMEOUT_Msk (0xFFFFUL << OCTOSPI_LPTR_TIMEOUT_Pos) /*!< 0x0000FFFF */
  19009. #define OCTOSPI_LPTR_TIMEOUT OCTOSPI_LPTR_TIMEOUT_Msk /*!< Timeout period */
  19010. /**************** Bit definition for OCTOSPI_WPCCR register *******************/
  19011. #define OCTOSPI_WPCCR_IMODE_Pos (0U)
  19012. #define OCTOSPI_WPCCR_IMODE_Msk (0x7UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000007 */
  19013. #define OCTOSPI_WPCCR_IMODE OCTOSPI_WPCCR_IMODE_Msk /*!< Instruction Mode */
  19014. #define OCTOSPI_WPCCR_IMODE_0 (0x1UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000001 */
  19015. #define OCTOSPI_WPCCR_IMODE_1 (0x2UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000002 */
  19016. #define OCTOSPI_WPCCR_IMODE_2 (0x4UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000004 */
  19017. #define OCTOSPI_WPCCR_IDTR_Pos (3U)
  19018. #define OCTOSPI_WPCCR_IDTR_Msk (0x1UL << OCTOSPI_WPCCR_IDTR_Pos) /*!< 0x00000008 */
  19019. #define OCTOSPI_WPCCR_IDTR OCTOSPI_WPCCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  19020. #define OCTOSPI_WPCCR_ISIZE_Pos (4U)
  19021. #define OCTOSPI_WPCCR_ISIZE_Msk (0x3UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000030 */
  19022. #define OCTOSPI_WPCCR_ISIZE OCTOSPI_WPCCR_ISIZE_Msk /*!< Instruction Size */
  19023. #define OCTOSPI_WPCCR_ISIZE_0 (0x1UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000010 */
  19024. #define OCTOSPI_WPCCR_ISIZE_1 (0x2UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000020 */
  19025. #define OCTOSPI_WPCCR_ADMODE_Pos (8U)
  19026. #define OCTOSPI_WPCCR_ADMODE_Msk (0x7UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000700 */
  19027. #define OCTOSPI_WPCCR_ADMODE OCTOSPI_WPCCR_ADMODE_Msk /*!< Address Mode */
  19028. #define OCTOSPI_WPCCR_ADMODE_0 (0x1UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000100 */
  19029. #define OCTOSPI_WPCCR_ADMODE_1 (0x2UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000200 */
  19030. #define OCTOSPI_WPCCR_ADMODE_2 (0x4UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000400 */
  19031. #define OCTOSPI_WPCCR_ADDTR_Pos (11U)
  19032. #define OCTOSPI_WPCCR_ADDTR_Msk (0x1UL << OCTOSPI_WPCCR_ADDTR_Pos) /*!< 0x00000800 */
  19033. #define OCTOSPI_WPCCR_ADDTR OCTOSPI_WPCCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  19034. #define OCTOSPI_WPCCR_ADSIZE_Pos (12U)
  19035. #define OCTOSPI_WPCCR_ADSIZE_Msk (0x3UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00003000 */
  19036. #define OCTOSPI_WPCCR_ADSIZE OCTOSPI_WPCCR_ADSIZE_Msk /*!< Address Size */
  19037. #define OCTOSPI_WPCCR_ADSIZE_0 (0x1UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00001000 */
  19038. #define OCTOSPI_WPCCR_ADSIZE_1 (0x2UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00002000 */
  19039. #define OCTOSPI_WPCCR_ABMODE_Pos (16U)
  19040. #define OCTOSPI_WPCCR_ABMODE_Msk (0x7UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00070000 */
  19041. #define OCTOSPI_WPCCR_ABMODE OCTOSPI_WPCCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  19042. #define OCTOSPI_WPCCR_ABMODE_0 (0x1UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00010000 */
  19043. #define OCTOSPI_WPCCR_ABMODE_1 (0x2UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00020000 */
  19044. #define OCTOSPI_WPCCR_ABMODE_2 (0x4UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00040000 */
  19045. #define OCTOSPI_WPCCR_ABDTR_Pos (19U)
  19046. #define OCTOSPI_WPCCR_ABDTR_Msk (0x1UL << OCTOSPI_WPCCR_ABDTR_Pos) /*!< 0x00080000 */
  19047. #define OCTOSPI_WPCCR_ABDTR OCTOSPI_WPCCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  19048. #define OCTOSPI_WPCCR_ABSIZE_Pos (20U)
  19049. #define OCTOSPI_WPCCR_ABSIZE_Msk (0x3UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00300000 */
  19050. #define OCTOSPI_WPCCR_ABSIZE OCTOSPI_WPCCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  19051. #define OCTOSPI_WPCCR_ABSIZE_0 (0x1UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00100000 */
  19052. #define OCTOSPI_WPCCR_ABSIZE_1 (0x2UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00200000 */
  19053. #define OCTOSPI_WPCCR_DMODE_Pos (24U)
  19054. #define OCTOSPI_WPCCR_DMODE_Msk (0x7UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x07000000 */
  19055. #define OCTOSPI_WPCCR_DMODE OCTOSPI_WPCCR_DMODE_Msk /*!< Data Mode */
  19056. #define OCTOSPI_WPCCR_DMODE_0 (0x1UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x01000000 */
  19057. #define OCTOSPI_WPCCR_DMODE_1 (0x2UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x02000000 */
  19058. #define OCTOSPI_WPCCR_DMODE_2 (0x4UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x04000000 */
  19059. #define OCTOSPI_WPCCR_DDTR_Pos (27U)
  19060. #define OCTOSPI_WPCCR_DDTR_Msk (0x1UL << OCTOSPI_WPCCR_DDTR_Pos) /*!< 0x08000000 */
  19061. #define OCTOSPI_WPCCR_DDTR OCTOSPI_WPCCR_DDTR_Msk /*!< Data Double Transfer Rate */
  19062. #define OCTOSPI_WPCCR_DQSE_Pos (29U)
  19063. #define OCTOSPI_WPCCR_DQSE_Msk (0x1UL << OCTOSPI_WPCCR_DQSE_Pos) /*!< 0x20000000 */
  19064. #define OCTOSPI_WPCCR_DQSE OCTOSPI_WPCCR_DQSE_Msk /*!< DQS Enable */
  19065. #define OCTOSPI_WPCCR_SIOO_Pos (31U)
  19066. #define OCTOSPI_WPCCR_SIOO_Msk (0x1UL << OCTOSPI_WPCCR_SIOO_Pos) /*!< 0x80000000 */
  19067. #define OCTOSPI_WPCCR_SIOO OCTOSPI_WPCCR_SIOO_Msk /*!< Send Instruction Only Once Mode */
  19068. /**************** Bit definition for OCTOSPI_WPTCR register *******************/
  19069. #define OCTOSPI_WPTCR_DCYC_Pos (0U)
  19070. #define OCTOSPI_WPTCR_DCYC_Msk (0x1FUL << OCTOSPI_WPTCR_DCYC_Pos) /*!< 0x0000001F */
  19071. #define OCTOSPI_WPTCR_DCYC OCTOSPI_WPTCR_DCYC_Msk /*!< Number of Dummy Cycles */
  19072. #define OCTOSPI_WPTCR_DHQC_Pos (28U)
  19073. #define OCTOSPI_WPTCR_DHQC_Msk (0x1UL << OCTOSPI_WPTCR_DHQC_Pos) /*!< 0x10000000 */
  19074. #define OCTOSPI_WPTCR_DHQC OCTOSPI_WPTCR_DHQC_Msk /*!< Delay Hold Quarter Cycle */
  19075. #define OCTOSPI_WPTCR_SSHIFT_Pos (30U)
  19076. #define OCTOSPI_WPTCR_SSHIFT_Msk (0x1UL << OCTOSPI_WPTCR_SSHIFT_Pos) /*!< 0x40000000 */
  19077. #define OCTOSPI_WPTCR_SSHIFT OCTOSPI_WPTCR_SSHIFT_Msk /*!< Sample Shift */
  19078. /***************** Bit definition for OCTOSPI_WPIR register *******************/
  19079. #define OCTOSPI_WPIR_INSTRUCTION_Pos (0U)
  19080. #define OCTOSPI_WPIR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_WPIR_INSTRUCTION_Pos) /*!< 0xFFFFFFFF */
  19081. #define OCTOSPI_WPIR_INSTRUCTION OCTOSPI_WPIR_INSTRUCTION_Msk /*!< Instruction */
  19082. /**************** Bit definition for OCTOSPI_WPABR register *******************/
  19083. #define OCTOSPI_WPABR_ALTERNATE_Pos (0U)
  19084. #define OCTOSPI_WPABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_WPABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
  19085. #define OCTOSPI_WPABR_ALTERNATE OCTOSPI_WPABR_ALTERNATE_Msk /*!< Alternate Bytes */
  19086. /**************** Bit definition for OCTOSPI_WCCR register ******************/
  19087. #define OCTOSPI_WCCR_IMODE_Pos (0U)
  19088. #define OCTOSPI_WCCR_IMODE_Msk (0x7UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000007 */
  19089. #define OCTOSPI_WCCR_IMODE OCTOSPI_WCCR_IMODE_Msk /*!< Instruction Mode */
  19090. #define OCTOSPI_WCCR_IMODE_0 (0x1UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000001 */
  19091. #define OCTOSPI_WCCR_IMODE_1 (0x2UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000002 */
  19092. #define OCTOSPI_WCCR_IMODE_2 (0x4UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000004 */
  19093. #define OCTOSPI_WCCR_IDTR_Pos (3U)
  19094. #define OCTOSPI_WCCR_IDTR_Msk (0x1UL << OCTOSPI_WCCR_IDTR_Pos) /*!< 0x00000008 */
  19095. #define OCTOSPI_WCCR_IDTR OCTOSPI_WCCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  19096. #define OCTOSPI_WCCR_ISIZE_Pos (4U)
  19097. #define OCTOSPI_WCCR_ISIZE_Msk (0x3UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000030 */
  19098. #define OCTOSPI_WCCR_ISIZE OCTOSPI_WCCR_ISIZE_Msk /*!< Instruction Size */
  19099. #define OCTOSPI_WCCR_ISIZE_0 (0x1UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000010 */
  19100. #define OCTOSPI_WCCR_ISIZE_1 (0x2UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000020 */
  19101. #define OCTOSPI_WCCR_ADMODE_Pos (8U)
  19102. #define OCTOSPI_WCCR_ADMODE_Msk (0x7UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000700 */
  19103. #define OCTOSPI_WCCR_ADMODE OCTOSPI_WCCR_ADMODE_Msk /*!< Address Mode */
  19104. #define OCTOSPI_WCCR_ADMODE_0 (0x1UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000100 */
  19105. #define OCTOSPI_WCCR_ADMODE_1 (0x2UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000200 */
  19106. #define OCTOSPI_WCCR_ADMODE_2 (0x4UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000400 */
  19107. #define OCTOSPI_WCCR_ADDTR_Pos (11U)
  19108. #define OCTOSPI_WCCR_ADDTR_Msk (0x1UL << OCTOSPI_WCCR_ADDTR_Pos) /*!< 0x00000800 */
  19109. #define OCTOSPI_WCCR_ADDTR OCTOSPI_WCCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  19110. #define OCTOSPI_WCCR_ADSIZE_Pos (12U)
  19111. #define OCTOSPI_WCCR_ADSIZE_Msk (0x3UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00003000 */
  19112. #define OCTOSPI_WCCR_ADSIZE OCTOSPI_WCCR_ADSIZE_Msk /*!< Address Size */
  19113. #define OCTOSPI_WCCR_ADSIZE_0 (0x1UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00001000 */
  19114. #define OCTOSPI_WCCR_ADSIZE_1 (0x2UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00002000 */
  19115. #define OCTOSPI_WCCR_ABMODE_Pos (16U)
  19116. #define OCTOSPI_WCCR_ABMODE_Msk (0x7UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00070000 */
  19117. #define OCTOSPI_WCCR_ABMODE OCTOSPI_WCCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  19118. #define OCTOSPI_WCCR_ABMODE_0 (0x1UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00010000 */
  19119. #define OCTOSPI_WCCR_ABMODE_1 (0x2UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00020000 */
  19120. #define OCTOSPI_WCCR_ABMODE_2 (0x4UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00040000 */
  19121. #define OCTOSPI_WCCR_ABDTR_Pos (19U)
  19122. #define OCTOSPI_WCCR_ABDTR_Msk (0x1UL << OCTOSPI_WCCR_ABDTR_Pos) /*!< 0x00080000 */
  19123. #define OCTOSPI_WCCR_ABDTR OCTOSPI_WCCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  19124. #define OCTOSPI_WCCR_ABSIZE_Pos (20U)
  19125. #define OCTOSPI_WCCR_ABSIZE_Msk (0x3UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00300000 */
  19126. #define OCTOSPI_WCCR_ABSIZE OCTOSPI_WCCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  19127. #define OCTOSPI_WCCR_ABSIZE_0 (0x1UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00100000 */
  19128. #define OCTOSPI_WCCR_ABSIZE_1 (0x2UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00200000 */
  19129. #define OCTOSPI_WCCR_DMODE_Pos (24U)
  19130. #define OCTOSPI_WCCR_DMODE_Msk (0x7UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x07000000 */
  19131. #define OCTOSPI_WCCR_DMODE OCTOSPI_WCCR_DMODE_Msk /*!< Data Mode */
  19132. #define OCTOSPI_WCCR_DMODE_0 (0x1UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x01000000 */
  19133. #define OCTOSPI_WCCR_DMODE_1 (0x2UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x02000000 */
  19134. #define OCTOSPI_WCCR_DMODE_2 (0x4UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x04000000 */
  19135. #define OCTOSPI_WCCR_DDTR_Pos (27U)
  19136. #define OCTOSPI_WCCR_DDTR_Msk (0x1UL << OCTOSPI_WCCR_DDTR_Pos) /*!< 0x08000000 */
  19137. #define OCTOSPI_WCCR_DDTR OCTOSPI_WCCR_DDTR_Msk /*!< Data Double Transfer Rate */
  19138. #define OCTOSPI_WCCR_DQSE_Pos (29U)
  19139. #define OCTOSPI_WCCR_DQSE_Msk (0x1UL << OCTOSPI_WCCR_DQSE_Pos) /*!< 0x20000000 */
  19140. #define OCTOSPI_WCCR_DQSE OCTOSPI_WCCR_DQSE_Msk /*!< DQS Enable */
  19141. #define OCTOSPI_WCCR_SIOO_Pos (31U)
  19142. #define OCTOSPI_WCCR_SIOO_Msk (0x1UL << OCTOSPI_WCCR_SIOO_Pos) /*!< 0x80000000 */
  19143. #define OCTOSPI_WCCR_SIOO OCTOSPI_WCCR_SIOO_Msk /*!< Send Instruction Only Once Mode */
  19144. /**************** Bit definition for OCTOSPI_WTCR register ******************/
  19145. #define OCTOSPI_WTCR_DCYC_Pos (0U)
  19146. #define OCTOSPI_WTCR_DCYC_Msk (0x1FUL << OCTOSPI_WTCR_DCYC_Pos) /*!< 0x0000001F */
  19147. #define OCTOSPI_WTCR_DCYC OCTOSPI_WTCR_DCYC_Msk /*!< Number of Dummy Cycles */
  19148. /**************** Bit definition for OCTOSPI_WIR register *******************/
  19149. #define OCTOSPI_WIR_INSTRUCTION_Pos (0U)
  19150. #define OCTOSPI_WIR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_WIR_INSTRUCTION_Pos) /*!< 0xFFFFFFFF */
  19151. #define OCTOSPI_WIR_INSTRUCTION OCTOSPI_WIR_INSTRUCTION_Msk /*!< Instruction */
  19152. /**************** Bit definition for OCTOSPI_WABR register ******************/
  19153. #define OCTOSPI_WABR_ALTERNATE_Pos (0U)
  19154. #define OCTOSPI_WABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_WABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
  19155. #define OCTOSPI_WABR_ALTERNATE OCTOSPI_WABR_ALTERNATE_Msk /*!< Alternate Bytes */
  19156. /**************** Bit definition for OCTOSPI_HLCR register ******************/
  19157. #define OCTOSPI_HLCR_LM_Pos (0U)
  19158. #define OCTOSPI_HLCR_LM_Msk (0x1UL << OCTOSPI_HLCR_LM_Pos) /*!< 0x00000001 */
  19159. #define OCTOSPI_HLCR_LM OCTOSPI_HLCR_LM_Msk /*!< Latency Mode */
  19160. #define OCTOSPI_HLCR_WZL_Pos (1U)
  19161. #define OCTOSPI_HLCR_WZL_Msk (0x1UL << OCTOSPI_HLCR_WZL_Pos) /*!< 0x00000002 */
  19162. #define OCTOSPI_HLCR_WZL OCTOSPI_HLCR_WZL_Msk /*!< Write Zero Latency */
  19163. #define OCTOSPI_HLCR_TACC_Pos (8U)
  19164. #define OCTOSPI_HLCR_TACC_Msk (0xFFUL << OCTOSPI_HLCR_TACC_Pos) /*!< 0x0000FF00 */
  19165. #define OCTOSPI_HLCR_TACC OCTOSPI_HLCR_TACC_Msk /*!< Access Time */
  19166. #define OCTOSPI_HLCR_TRWR_Pos (16U)
  19167. #define OCTOSPI_HLCR_TRWR_Msk (0xFFUL << OCTOSPI_HLCR_TRWR_Pos) /*!< 0x00FF0000 */
  19168. #define OCTOSPI_HLCR_TRWR OCTOSPI_HLCR_TRWR_Msk /*!< Read Write Recovery Time */
  19169. /**************** Bit definition for OCTOSPI_VER register *******************/
  19170. #define OCTOSPI_VER_VER_Pos (0U)
  19171. #define OCTOSPI_VER_VER_Msk (0xFFUL << OCTOSPI_VER_VER_Pos) /*!< 0x000000FF */
  19172. #define OCTOSPI_VER_VER OCTOSPI_VER_VER_Msk /*!< Version */
  19173. /***************** Bit definition for OCTOSPI_ID register *******************/
  19174. #define OCTOSPI_ID_ID_Pos (0U)
  19175. #define OCTOSPI_ID_ID_Msk (0xFFFFFFFFUL << OCTOSPI_ID_ID_Pos) /*!< 0xFFFFFFFF */
  19176. #define OCTOSPI_ID_ID OCTOSPI_ID_ID_Msk /*!< Identification */
  19177. /**************** Bit definition for OCTOSPI_MID register *******************/
  19178. #define OCTOSPI_MID_MID_Pos (0U)
  19179. #define OCTOSPI_MID_MID_Msk (0xFFFFFFFFUL << OCTOSPI_MID_MID_Pos) /*!< 0xFFFFFFFF */
  19180. #define OCTOSPI_MID_MID OCTOSPI_MID_MID_Msk /*!< Magic ID */
  19181. /******************************************************************************/
  19182. /* */
  19183. /* OCTOSPIM */
  19184. /* */
  19185. /******************************************************************************/
  19186. /*************** Bit definition for OCTOSPIM_CR register ********************/
  19187. #define OCTOSPIM_CR_MUXEN_Pos (0U)
  19188. #define OCTOSPIM_CR_MUXEN_Msk (0x1UL << OCTOSPIM_CR_MUXEN_Pos) /*!< 0x00000001 */
  19189. #define OCTOSPIM_CR_MUXEN OCTOSPIM_CR_MUXEN_Msk /*!< Multiplexed mode enable */
  19190. #define OCTOSPIM_CR_REQ2ACK_TIME_Pos (16U)
  19191. #define OCTOSPIM_CR_REQ2ACK_TIME_Msk (0xFFUL << OCTOSPIM_CR_REQ2ACK_TIME_Pos)/*!< 0x00FF0000 */
  19192. #define OCTOSPIM_CR_REQ2ACK_TIME OCTOSPIM_CR_REQ2ACK_TIME_Msk /*!< REQ to ACK time */
  19193. /*************** Bit definition for OCTOSPIM_PCR register *******************/
  19194. #define OCTOSPIM_PCR_CLKEN_Pos (0U)
  19195. #define OCTOSPIM_PCR_CLKEN_Msk (0x1UL << OCTOSPIM_PCR_CLKEN_Pos) /*!< 0x00000001 */
  19196. #define OCTOSPIM_PCR_CLKEN OCTOSPIM_PCR_CLKEN_Msk /*!< CLK/CLKn Enable for Port n */
  19197. #define OCTOSPIM_PCR_CLKSRC_Pos (1U)
  19198. #define OCTOSPIM_PCR_CLKSRC_Msk (0x1UL << OCTOSPIM_PCR_CLKSRC_Pos) /*!< 0x00000002 */
  19199. #define OCTOSPIM_PCR_CLKSRC OCTOSPIM_PCR_CLKSRC_Msk /*!< CLK/CLKn Source for Port n */
  19200. #define OCTOSPIM_PCR_DQSEN_Pos (4U)
  19201. #define OCTOSPIM_PCR_DQSEN_Msk (0x1UL << OCTOSPIM_PCR_DQSEN_Pos) /*!< 0x00000010 */
  19202. #define OCTOSPIM_PCR_DQSEN OCTOSPIM_PCR_DQSEN_Msk /*!< DQS Enable for Port n */
  19203. #define OCTOSPIM_PCR_DQSSRC_Pos (5U)
  19204. #define OCTOSPIM_PCR_DQSSRC_Msk (0x1UL << OCTOSPIM_PCR_DQSSRC_Pos) /*!< 0x00000020 */
  19205. #define OCTOSPIM_PCR_DQSSRC OCTOSPIM_PCR_DQSSRC_Msk /*!< DQS Source for Port n */
  19206. #define OCTOSPIM_PCR_NCSEN_Pos (8U)
  19207. #define OCTOSPIM_PCR_NCSEN_Msk (0x1UL << OCTOSPIM_PCR_NCSEN_Pos) /*!< 0x00000100 */
  19208. #define OCTOSPIM_PCR_NCSEN OCTOSPIM_PCR_NCSEN_Msk /*!< nCS Enable for Port n */
  19209. #define OCTOSPIM_PCR_NCSSRC_Pos (9U)
  19210. #define OCTOSPIM_PCR_NCSSRC_Msk (0x1UL << OCTOSPIM_PCR_NCSSRC_Pos) /*!< 0x00000200 */
  19211. #define OCTOSPIM_PCR_NCSSRC OCTOSPIM_PCR_NCSSRC_Msk /*!< nCS Source for Port n */
  19212. #define OCTOSPIM_PCR_IOLEN_Pos (16U)
  19213. #define OCTOSPIM_PCR_IOLEN_Msk (0x1UL << OCTOSPIM_PCR_IOLEN_Pos) /*!< 0x00010000 */
  19214. #define OCTOSPIM_PCR_IOLEN OCTOSPIM_PCR_IOLEN_Msk /*!< IO[3:0] Enable for Port n */
  19215. #define OCTOSPIM_PCR_IOLSRC_Pos (17U)
  19216. #define OCTOSPIM_PCR_IOLSRC_Msk (0x3UL << OCTOSPIM_PCR_IOLSRC_Pos) /*!< 0x00060000 */
  19217. #define OCTOSPIM_PCR_IOLSRC OCTOSPIM_PCR_IOLSRC_Msk /*!< IO[3:0] Source for Port n */
  19218. #define OCTOSPIM_PCR_IOLSRC_0 (0x1UL << OCTOSPIM_PCR_IOLSRC_Pos) /*!< 0x00020000 */
  19219. #define OCTOSPIM_PCR_IOLSRC_1 (0x2UL << OCTOSPIM_PCR_IOLSRC_Pos) /*!< 0x00040000 */
  19220. #define OCTOSPIM_PCR_IOHEN_Pos (24U)
  19221. #define OCTOSPIM_PCR_IOHEN_Msk (0x1UL << OCTOSPIM_PCR_IOHEN_Pos) /*!< 0x01000000 */
  19222. #define OCTOSPIM_PCR_IOHEN OCTOSPIM_PCR_IOHEN_Msk /*!< IO[7:4] Enable for Port n */
  19223. #define OCTOSPIM_PCR_IOHSRC_Pos (25U)
  19224. #define OCTOSPIM_PCR_IOHSRC_Msk (0x3UL << OCTOSPIM_PCR_IOHSRC_Pos) /*!< 0x06000000 */
  19225. #define OCTOSPIM_PCR_IOHSRC OCTOSPIM_PCR_IOHSRC_Msk /*!< IO[7:4] Source for Port n */
  19226. #define OCTOSPIM_PCR_IOHSRC_0 (0x1UL << OCTOSPIM_PCR_IOHSRC_Pos) /*!< 0x02000000 */
  19227. #define OCTOSPIM_PCR_IOHSRC_1 (0x2UL << OCTOSPIM_PCR_IOHSRC_Pos) /*!< 0x04000000 */
  19228. /******************************************************************************/
  19229. /* */
  19230. /* Analog Comparators (COMP) */
  19231. /* */
  19232. /******************************************************************************/
  19233. /******************* Bit definition for COMP_SR register ********************/
  19234. #define COMP_SR_C1VAL_Pos (0U)
  19235. #define COMP_SR_C1VAL_Msk (0x1UL << COMP_SR_C1VAL_Pos) /*!< 0x00000001 */
  19236. #define COMP_SR_C1VAL COMP_SR_C1VAL_Msk
  19237. #define COMP_SR_C2VAL_Pos (1U)
  19238. #define COMP_SR_C2VAL_Msk (0x1UL << COMP_SR_C2VAL_Pos) /*!< 0x00000002 */
  19239. #define COMP_SR_C2VAL COMP_SR_C2VAL_Msk
  19240. #define COMP_SR_C1IF_Pos (16U)
  19241. #define COMP_SR_C1IF_Msk (0x1UL << COMP_SR_C1IF_Pos) /*!< 0x00010000 */
  19242. #define COMP_SR_C1IF COMP_SR_C1IF_Msk
  19243. #define COMP_SR_C2IF_Pos (17U)
  19244. #define COMP_SR_C2IF_Msk (0x1UL << COMP_SR_C2IF_Pos) /*!< 0x00020000 */
  19245. #define COMP_SR_C2IF COMP_SR_C2IF_Msk
  19246. /******************* Bit definition for COMP_ICFR register ********************/
  19247. #define COMP_ICFR_C1IF_Pos (16U)
  19248. #define COMP_ICFR_C1IF_Msk (0x1UL << COMP_ICFR_C1IF_Pos) /*!< 0x00010000 */
  19249. #define COMP_ICFR_C1IF COMP_ICFR_C1IF_Msk
  19250. #define COMP_ICFR_C2IF_Pos (17U)
  19251. #define COMP_ICFR_C2IF_Msk (0x1UL << COMP_ICFR_C2IF_Pos) /*!< 0x00020000 */
  19252. #define COMP_ICFR_C2IF COMP_ICFR_C2IF_Msk
  19253. /******************* Bit definition for COMP_OR register ********************/
  19254. #define COMP_OR_AFOPA6_Pos (0U)
  19255. #define COMP_OR_AFOPA6_Msk (0x1UL << COMP_OR_AFOPA6_Pos) /*!< 0x00000001 */
  19256. #define COMP_OR_AFOPA6 COMP_OR_AFOPA6_Msk
  19257. #define COMP_OR_AFOPA8_Pos (1U)
  19258. #define COMP_OR_AFOPA8_Msk (0x1UL << COMP_OR_AFOPA8_Pos) /*!< 0x00000002 */
  19259. #define COMP_OR_AFOPA8 COMP_OR_AFOPA8_Msk
  19260. #define COMP_OR_AFOPB12_Pos (2U)
  19261. #define COMP_OR_AFOPB12_Msk (0x1UL << COMP_OR_AFOPB12_Pos) /*!< 0x00000004 */
  19262. #define COMP_OR_AFOPB12 COMP_OR_AFOPB12_Msk
  19263. #define COMP_OR_AFOPE6_Pos (3U)
  19264. #define COMP_OR_AFOPE6_Msk (0x1UL << COMP_OR_AFOPE6_Pos) /*!< 0x00000008 */
  19265. #define COMP_OR_AFOPE6 COMP_OR_AFOPE6_Msk
  19266. #define COMP_OR_AFOPE15_Pos (4U)
  19267. #define COMP_OR_AFOPE15_Msk (0x1UL << COMP_OR_AFOPE15_Pos) /*!< 0x00000010 */
  19268. #define COMP_OR_AFOPE15 COMP_OR_AFOPE15_Msk
  19269. #define COMP_OR_AFOPG2_Pos (5U)
  19270. #define COMP_OR_AFOPG2_Msk (0x1UL << COMP_OR_AFOPG2_Pos) /*!< 0x00000020 */
  19271. #define COMP_OR_AFOPG2 COMP_OR_AFOPG2_Msk
  19272. #define COMP_OR_AFOPG3_Pos (6U)
  19273. #define COMP_OR_AFOPG3_Msk (0x1UL << COMP_OR_AFOPG3_Pos) /*!< 0x00000040 */
  19274. #define COMP_OR_AFOPG3 COMP_OR_AFOPG3_Msk
  19275. #define COMP_OR_AFOPG4_Pos (7U)
  19276. #define COMP_OR_AFOPG4_Msk (0x1UL << COMP_OR_AFOPG4_Pos) /*!< 0x00000080 */
  19277. #define COMP_OR_AFOPG4 COMP_OR_AFOPG4_Msk
  19278. #define COMP_OR_AFOPI1_Pos (8U)
  19279. #define COMP_OR_AFOPI1_Msk (0x1UL << COMP_OR_AFOPI1_Pos) /*!< 0x00000100 */
  19280. #define COMP_OR_AFOPI1 COMP_OR_AFOPI1_Msk
  19281. #define COMP_OR_AFOPI4_Pos (9U)
  19282. #define COMP_OR_AFOPI4_Msk (0x1UL << COMP_OR_AFOPI4_Pos) /*!< 0x00000200 */
  19283. #define COMP_OR_AFOPI4 COMP_OR_AFOPI4_Msk
  19284. #define COMP_OR_AFOPK2_Pos (10U)
  19285. #define COMP_OR_AFOPK2_Msk (0x1UL << COMP_OR_AFOPK2_Pos) /*!< 0x00000400 */
  19286. #define COMP_OR_AFOPK2 COMP_OR_AFOPK2_Msk
  19287. /*!< ****************** Bit definition for COMP_CFGRx register ********************/
  19288. #define COMP_CFGRx_EN_Pos (0U)
  19289. #define COMP_CFGRx_EN_Msk (0x1UL << COMP_CFGRx_EN_Pos) /*!< 0x00000001 */
  19290. #define COMP_CFGRx_EN COMP_CFGRx_EN_Msk /*!< COMPx enable bit */
  19291. #define COMP_CFGRx_BRGEN_Pos (1U)
  19292. #define COMP_CFGRx_BRGEN_Msk (0x1UL << COMP_CFGRx_BRGEN_Pos) /*!< 0x00000002 */
  19293. #define COMP_CFGRx_BRGEN COMP_CFGRx_BRGEN_Msk /*!< COMPx Scaler bridge enable */
  19294. #define COMP_CFGRx_SCALEN_Pos (2U)
  19295. #define COMP_CFGRx_SCALEN_Msk (0x1UL << COMP_CFGRx_SCALEN_Pos) /*!< 0x00000004 */
  19296. #define COMP_CFGRx_SCALEN COMP_CFGRx_SCALEN_Msk /*!< COMPx Voltage scaler enable bit */
  19297. #define COMP_CFGRx_POLARITY_Pos (3U)
  19298. #define COMP_CFGRx_POLARITY_Msk (0x1UL << COMP_CFGRx_POLARITY_Pos) /*!< 0x00000008 */
  19299. #define COMP_CFGRx_POLARITY COMP_CFGRx_POLARITY_Msk /*!< COMPx polarity selection bit */
  19300. #define COMP_CFGRx_WINMODE_Pos (4U)
  19301. #define COMP_CFGRx_WINMODE_Msk (0x1UL << COMP_CFGRx_WINMODE_Pos) /*!< 0x00000010 */
  19302. #define COMP_CFGRx_WINMODE COMP_CFGRx_WINMODE_Msk /*!< COMPx Windows mode selection bit */
  19303. #define COMP_CFGRx_ITEN_Pos (6U)
  19304. #define COMP_CFGRx_ITEN_Msk (0x1UL << COMP_CFGRx_ITEN_Pos) /*!< 0x00000040 */
  19305. #define COMP_CFGRx_ITEN COMP_CFGRx_ITEN_Msk /*!< COMPx interrupt enable */
  19306. #define COMP_CFGRx_HYST_Pos (8U)
  19307. #define COMP_CFGRx_HYST_Msk (0x3UL << COMP_CFGRx_HYST_Pos) /*!< 0x00000300 */
  19308. #define COMP_CFGRx_HYST COMP_CFGRx_HYST_Msk /*!< COMPx hysteresis selection bits */
  19309. #define COMP_CFGRx_HYST_0 (0x1UL << COMP_CFGRx_HYST_Pos) /*!< 0x00000100 */
  19310. #define COMP_CFGRx_HYST_1 (0x2UL << COMP_CFGRx_HYST_Pos) /*!< 0x00000200 */
  19311. #define COMP_CFGRx_PWRMODE_Pos (12U)
  19312. #define COMP_CFGRx_PWRMODE_Msk (0x3UL << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00003000 */
  19313. #define COMP_CFGRx_PWRMODE COMP_CFGRx_PWRMODE_Msk /*!< COMPx Power Mode of the comparator */
  19314. #define COMP_CFGRx_PWRMODE_0 (0x1UL << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00001000 */
  19315. #define COMP_CFGRx_PWRMODE_1 (0x2UL << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00002000 */
  19316. #define COMP_CFGRx_INMSEL_Pos (16U)
  19317. #define COMP_CFGRx_INMSEL_Msk (0x7UL << COMP_CFGRx_INMSEL_Pos) /*!< 0x00070000 */
  19318. #define COMP_CFGRx_INMSEL COMP_CFGRx_INMSEL_Msk /*!< COMPx input minus selection bit */
  19319. #define COMP_CFGRx_INMSEL_0 (0x1UL << COMP_CFGRx_INMSEL_Pos) /*!< 0x00010000 */
  19320. #define COMP_CFGRx_INMSEL_1 (0x2UL << COMP_CFGRx_INMSEL_Pos) /*!< 0x00020000 */
  19321. #define COMP_CFGRx_INMSEL_2 (0x4UL << COMP_CFGRx_INMSEL_Pos) /*!< 0x00040000 */
  19322. #define COMP_CFGRx_INPSEL_Pos (20U)
  19323. #define COMP_CFGRx_INPSEL_Msk (0x1UL << COMP_CFGRx_INPSEL_Pos) /*!< 0x00100000 */
  19324. #define COMP_CFGRx_INPSEL COMP_CFGRx_INPSEL_Msk /*!< COMPx input plus selection bit */
  19325. #define COMP_CFGRx_BLANKING_Pos (24U)
  19326. #define COMP_CFGRx_BLANKING_Msk (0xFUL << COMP_CFGRx_BLANKING_Pos) /*!< 0x0F000000 */
  19327. #define COMP_CFGRx_BLANKING COMP_CFGRx_BLANKING_Msk /*!< COMPx blanking source selection bits */
  19328. #define COMP_CFGRx_BLANKING_0 (0x1UL << COMP_CFGRx_BLANKING_Pos) /*!< 0x01000000 */
  19329. #define COMP_CFGRx_BLANKING_1 (0x2UL << COMP_CFGRx_BLANKING_Pos) /*!< 0x02000000 */
  19330. #define COMP_CFGRx_BLANKING_2 (0x4UL << COMP_CFGRx_BLANKING_Pos) /*!< 0x04000000 */
  19331. #define COMP_CFGRx_LOCK_Pos (31U)
  19332. #define COMP_CFGRx_LOCK_Msk (0x1UL << COMP_CFGRx_LOCK_Pos) /*!< 0x80000000 */
  19333. #define COMP_CFGRx_LOCK COMP_CFGRx_LOCK_Msk /*!< COMPx Lock Bit */
  19334. /******************************************************************************/
  19335. /* */
  19336. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  19337. /* */
  19338. /******************************************************************************/
  19339. /****************** Bit definition for USART_CR1 register *******************/
  19340. #define USART_CR1_UE_Pos (0U)
  19341. #define USART_CR1_UE_Msk (0x1UL << USART_CR1_UE_Pos) /*!< 0x00000001 */
  19342. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  19343. #define USART_CR1_UESM_Pos (1U)
  19344. #define USART_CR1_UESM_Msk (0x1UL << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  19345. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  19346. #define USART_CR1_RE_Pos (2U)
  19347. #define USART_CR1_RE_Msk (0x1UL << USART_CR1_RE_Pos) /*!< 0x00000004 */
  19348. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  19349. #define USART_CR1_TE_Pos (3U)
  19350. #define USART_CR1_TE_Msk (0x1UL << USART_CR1_TE_Pos) /*!< 0x00000008 */
  19351. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  19352. #define USART_CR1_IDLEIE_Pos (4U)
  19353. #define USART_CR1_IDLEIE_Msk (0x1UL << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  19354. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  19355. #define USART_CR1_RXNEIE_RXFNEIE_Pos (5U)
  19356. #define USART_CR1_RXNEIE_RXFNEIE_Msk (0x1UL << USART_CR1_RXNEIE_RXFNEIE_Pos) /*!< 0x00000020 */
  19357. #define USART_CR1_RXNEIE_RXFNEIE USART_CR1_RXNEIE_RXFNEIE_Msk /*!< RXNE and RX FIFO Not Empty Interrupt Enable */
  19358. #define USART_CR1_TCIE_Pos (6U)
  19359. #define USART_CR1_TCIE_Msk (0x1UL << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  19360. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  19361. #define USART_CR1_TXEIE_TXFNFIE_Pos (7U)
  19362. #define USART_CR1_TXEIE_TXFNFIE_Msk (0x1UL << USART_CR1_TXEIE_TXFNFIE_Pos) /*!< 0x00000080 */
  19363. #define USART_CR1_TXEIE_TXFNFIE USART_CR1_TXEIE_TXFNFIE_Msk /*!< TXE and TX FIFO Not Full Interrupt Enable */
  19364. #define USART_CR1_PEIE_Pos (8U)
  19365. #define USART_CR1_PEIE_Msk (0x1UL << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  19366. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  19367. #define USART_CR1_PS_Pos (9U)
  19368. #define USART_CR1_PS_Msk (0x1UL << USART_CR1_PS_Pos) /*!< 0x00000200 */
  19369. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  19370. #define USART_CR1_PCE_Pos (10U)
  19371. #define USART_CR1_PCE_Msk (0x1UL << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  19372. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  19373. #define USART_CR1_WAKE_Pos (11U)
  19374. #define USART_CR1_WAKE_Msk (0x1UL << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  19375. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  19376. #define USART_CR1_M_Pos (12U)
  19377. #define USART_CR1_M_Msk (0x10001UL << USART_CR1_M_Pos) /*!< 0x10001000 */
  19378. #define USART_CR1_M USART_CR1_M_Msk /*!< Word length */
  19379. #define USART_CR1_M0_Pos (12U)
  19380. #define USART_CR1_M0_Msk (0x1UL << USART_CR1_M0_Pos) /*!< 0x00001000 */
  19381. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length - Bit 0 */
  19382. #define USART_CR1_MME_Pos (13U)
  19383. #define USART_CR1_MME_Msk (0x1UL << USART_CR1_MME_Pos) /*!< 0x00002000 */
  19384. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  19385. #define USART_CR1_CMIE_Pos (14U)
  19386. #define USART_CR1_CMIE_Msk (0x1UL << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  19387. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  19388. #define USART_CR1_OVER8_Pos (15U)
  19389. #define USART_CR1_OVER8_Msk (0x1UL << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  19390. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  19391. #define USART_CR1_DEDT_Pos (16U)
  19392. #define USART_CR1_DEDT_Msk (0x1FUL << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  19393. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  19394. #define USART_CR1_DEDT_0 (0x01UL << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  19395. #define USART_CR1_DEDT_1 (0x02UL << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  19396. #define USART_CR1_DEDT_2 (0x04UL << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  19397. #define USART_CR1_DEDT_3 (0x08UL << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  19398. #define USART_CR1_DEDT_4 (0x10UL << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  19399. #define USART_CR1_DEAT_Pos (21U)
  19400. #define USART_CR1_DEAT_Msk (0x1FUL << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  19401. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  19402. #define USART_CR1_DEAT_0 (0x01UL << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  19403. #define USART_CR1_DEAT_1 (0x02UL << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  19404. #define USART_CR1_DEAT_2 (0x04UL << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  19405. #define USART_CR1_DEAT_3 (0x08UL << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  19406. #define USART_CR1_DEAT_4 (0x10UL << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  19407. #define USART_CR1_RTOIE_Pos (26U)
  19408. #define USART_CR1_RTOIE_Msk (0x1UL << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  19409. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */
  19410. #define USART_CR1_EOBIE_Pos (27U)
  19411. #define USART_CR1_EOBIE_Msk (0x1UL << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  19412. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */
  19413. #define USART_CR1_M1_Pos (28U)
  19414. #define USART_CR1_M1_Msk (0x1UL << USART_CR1_M1_Pos) /*!< 0x10000000 */
  19415. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length - Bit 1 */
  19416. #define USART_CR1_FIFOEN_Pos (29U)
  19417. #define USART_CR1_FIFOEN_Msk (0x1UL << USART_CR1_FIFOEN_Pos) /*!< 0x20000000 */
  19418. #define USART_CR1_FIFOEN USART_CR1_FIFOEN_Msk /*!< FIFO mode enable */
  19419. #define USART_CR1_TXFEIE_Pos (30U)
  19420. #define USART_CR1_TXFEIE_Msk (0x1UL << USART_CR1_TXFEIE_Pos) /*!< 0x40000000 */
  19421. #define USART_CR1_TXFEIE USART_CR1_TXFEIE_Msk /*!< TXFIFO empty interrupt enable */
  19422. #define USART_CR1_RXFFIE_Pos (31U)
  19423. #define USART_CR1_RXFFIE_Msk (0x1UL << USART_CR1_RXFFIE_Pos) /*!< 0x80000000 */
  19424. #define USART_CR1_RXFFIE USART_CR1_RXFFIE_Msk /*!< RXFIFO Full interrupt enable */
  19425. /* Legacy define */
  19426. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_RXFNEIE
  19427. #define USART_CR1_TXEIE USART_CR1_TXEIE_TXFNFIE
  19428. /****************** Bit definition for USART_CR2 register *******************/
  19429. #define USART_CR2_SLVEN_Pos (0U)
  19430. #define USART_CR2_SLVEN_Msk (0x1UL << USART_CR2_SLVEN_Pos) /*!< 0x00000001 */
  19431. #define USART_CR2_SLVEN USART_CR2_SLVEN_Msk /*!< Synchronous Slave mode Enable */
  19432. #define USART_CR2_DIS_NSS_Pos (3U)
  19433. #define USART_CR2_DIS_NSS_Msk (0x1UL << USART_CR2_DIS_NSS_Pos) /*!< 0x00000008 */
  19434. #define USART_CR2_DIS_NSS USART_CR2_DIS_NSS_Msk /*!< Negative Slave Select (NSS) pin management */
  19435. #define USART_CR2_ADDM7_Pos (4U)
  19436. #define USART_CR2_ADDM7_Msk (0x1UL << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  19437. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  19438. #define USART_CR2_LBDL_Pos (5U)
  19439. #define USART_CR2_LBDL_Msk (0x1UL << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  19440. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  19441. #define USART_CR2_LBDIE_Pos (6U)
  19442. #define USART_CR2_LBDIE_Msk (0x1UL << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  19443. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  19444. #define USART_CR2_LBCL_Pos (8U)
  19445. #define USART_CR2_LBCL_Msk (0x1UL << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  19446. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  19447. #define USART_CR2_CPHA_Pos (9U)
  19448. #define USART_CR2_CPHA_Msk (0x1UL << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  19449. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  19450. #define USART_CR2_CPOL_Pos (10U)
  19451. #define USART_CR2_CPOL_Msk (0x1UL << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  19452. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  19453. #define USART_CR2_CLKEN_Pos (11U)
  19454. #define USART_CR2_CLKEN_Msk (0x1UL << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  19455. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  19456. #define USART_CR2_STOP_Pos (12U)
  19457. #define USART_CR2_STOP_Msk (0x3UL << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  19458. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  19459. #define USART_CR2_STOP_0 (0x1UL << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  19460. #define USART_CR2_STOP_1 (0x2UL << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  19461. #define USART_CR2_LINEN_Pos (14U)
  19462. #define USART_CR2_LINEN_Msk (0x1UL << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  19463. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  19464. #define USART_CR2_SWAP_Pos (15U)
  19465. #define USART_CR2_SWAP_Msk (0x1UL << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  19466. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  19467. #define USART_CR2_RXINV_Pos (16U)
  19468. #define USART_CR2_RXINV_Msk (0x1UL << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  19469. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  19470. #define USART_CR2_TXINV_Pos (17U)
  19471. #define USART_CR2_TXINV_Msk (0x1UL << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  19472. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  19473. #define USART_CR2_DATAINV_Pos (18U)
  19474. #define USART_CR2_DATAINV_Msk (0x1UL << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  19475. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  19476. #define USART_CR2_MSBFIRST_Pos (19U)
  19477. #define USART_CR2_MSBFIRST_Msk (0x1UL << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  19478. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  19479. #define USART_CR2_ABREN_Pos (20U)
  19480. #define USART_CR2_ABREN_Msk (0x1UL << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  19481. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  19482. #define USART_CR2_ABRMODE_Pos (21U)
  19483. #define USART_CR2_ABRMODE_Msk (0x3UL << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  19484. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  19485. #define USART_CR2_ABRMODE_0 (0x1UL << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  19486. #define USART_CR2_ABRMODE_1 (0x2UL << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  19487. #define USART_CR2_RTOEN_Pos (23U)
  19488. #define USART_CR2_RTOEN_Msk (0x1UL << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  19489. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  19490. #define USART_CR2_ADD_Pos (24U)
  19491. #define USART_CR2_ADD_Msk (0xFFUL << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  19492. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  19493. /****************** Bit definition for USART_CR3 register *******************/
  19494. #define USART_CR3_EIE_Pos (0U)
  19495. #define USART_CR3_EIE_Msk (0x1UL << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  19496. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  19497. #define USART_CR3_IREN_Pos (1U)
  19498. #define USART_CR3_IREN_Msk (0x1UL << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  19499. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  19500. #define USART_CR3_IRLP_Pos (2U)
  19501. #define USART_CR3_IRLP_Msk (0x1UL << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  19502. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  19503. #define USART_CR3_HDSEL_Pos (3U)
  19504. #define USART_CR3_HDSEL_Msk (0x1UL << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  19505. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  19506. #define USART_CR3_NACK_Pos (4U)
  19507. #define USART_CR3_NACK_Msk (0x1UL << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  19508. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  19509. #define USART_CR3_SCEN_Pos (5U)
  19510. #define USART_CR3_SCEN_Msk (0x1UL << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  19511. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  19512. #define USART_CR3_DMAR_Pos (6U)
  19513. #define USART_CR3_DMAR_Msk (0x1UL << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  19514. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  19515. #define USART_CR3_DMAT_Pos (7U)
  19516. #define USART_CR3_DMAT_Msk (0x1UL << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  19517. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  19518. #define USART_CR3_RTSE_Pos (8U)
  19519. #define USART_CR3_RTSE_Msk (0x1UL << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  19520. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  19521. #define USART_CR3_CTSE_Pos (9U)
  19522. #define USART_CR3_CTSE_Msk (0x1UL << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  19523. #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */
  19524. #define USART_CR3_CTSIE_Pos (10U)
  19525. #define USART_CR3_CTSIE_Msk (0x1UL << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  19526. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  19527. #define USART_CR3_ONEBIT_Pos (11U)
  19528. #define USART_CR3_ONEBIT_Msk (0x1UL << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  19529. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  19530. #define USART_CR3_OVRDIS_Pos (12U)
  19531. #define USART_CR3_OVRDIS_Msk (0x1UL << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  19532. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  19533. #define USART_CR3_DDRE_Pos (13U)
  19534. #define USART_CR3_DDRE_Msk (0x1UL << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  19535. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  19536. #define USART_CR3_DEM_Pos (14U)
  19537. #define USART_CR3_DEM_Msk (0x1UL << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  19538. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  19539. #define USART_CR3_DEP_Pos (15U)
  19540. #define USART_CR3_DEP_Msk (0x1UL << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  19541. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  19542. #define USART_CR3_SCARCNT_Pos (17U)
  19543. #define USART_CR3_SCARCNT_Msk (0x7UL << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  19544. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  19545. #define USART_CR3_SCARCNT_0 (0x1UL << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  19546. #define USART_CR3_SCARCNT_1 (0x2UL << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  19547. #define USART_CR3_SCARCNT_2 (0x4UL << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  19548. #define USART_CR3_WUS_Pos (20U)
  19549. #define USART_CR3_WUS_Msk (0x3UL << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  19550. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  19551. #define USART_CR3_WUS_0 (0x1UL << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  19552. #define USART_CR3_WUS_1 (0x2UL << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  19553. #define USART_CR3_WUFIE_Pos (22U)
  19554. #define USART_CR3_WUFIE_Msk (0x1UL << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  19555. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  19556. #define USART_CR3_TXFTIE_Pos (23U)
  19557. #define USART_CR3_TXFTIE_Msk (0x1UL << USART_CR3_TXFTIE_Pos) /*!< 0x00800000 */
  19558. #define USART_CR3_TXFTIE USART_CR3_TXFTIE_Msk /*!< TXFIFO threshold interrupt enable */
  19559. #define USART_CR3_TCBGTIE_Pos (24U)
  19560. #define USART_CR3_TCBGTIE_Msk (0x1UL << USART_CR3_TCBGTIE_Pos) /*!< 0x01000000 */
  19561. #define USART_CR3_TCBGTIE USART_CR3_TCBGTIE_Msk /*!< Transmission Complete before guard time, interrupt enable */
  19562. #define USART_CR3_RXFTCFG_Pos (25U)
  19563. #define USART_CR3_RXFTCFG_Msk (0x7UL << USART_CR3_RXFTCFG_Pos) /*!< 0x0E000000 */
  19564. #define USART_CR3_RXFTCFG USART_CR3_RXFTCFG_Msk /*!< RXFTCFG [2:0]Receive FIFO threshold configuration */
  19565. #define USART_CR3_RXFTCFG_0 (0x1UL << USART_CR3_RXFTCFG_Pos) /*!< 0x02000000 */
  19566. #define USART_CR3_RXFTCFG_1 (0x2UL << USART_CR3_RXFTCFG_Pos) /*!< 0x04000000 */
  19567. #define USART_CR3_RXFTCFG_2 (0x4UL << USART_CR3_RXFTCFG_Pos) /*!< 0x08000000 */
  19568. #define USART_CR3_RXFTIE_Pos (28U)
  19569. #define USART_CR3_RXFTIE_Msk (0x1UL << USART_CR3_RXFTIE_Pos) /*!< 0x10000000 */
  19570. #define USART_CR3_RXFTIE USART_CR3_RXFTIE_Msk /*!< RXFIFO threshold interrupt enable */
  19571. #define USART_CR3_TXFTCFG_Pos (29U)
  19572. #define USART_CR3_TXFTCFG_Msk (0x7UL << USART_CR3_TXFTCFG_Pos) /*!< 0xE0000000 */
  19573. #define USART_CR3_TXFTCFG USART_CR3_TXFTCFG_Msk /*!< TXFIFO [2:0] threshold configuration */
  19574. #define USART_CR3_TXFTCFG_0 (0x1UL << USART_CR3_TXFTCFG_Pos) /*!< 0x20000000 */
  19575. #define USART_CR3_TXFTCFG_1 (0x2UL << USART_CR3_TXFTCFG_Pos) /*!< 0x40000000 */
  19576. #define USART_CR3_TXFTCFG_2 (0x4UL << USART_CR3_TXFTCFG_Pos) /*!< 0x80000000 */
  19577. /****************** Bit definition for USART_BRR register *******************/
  19578. #define USART_BRR_DIV_FRACTION_Pos (0U)
  19579. #define USART_BRR_DIV_FRACTION_Msk (0xFUL << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */
  19580. #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */
  19581. #define USART_BRR_DIV_MANTISSA_Pos (4U)
  19582. #define USART_BRR_DIV_MANTISSA_Msk (0xFFFUL << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */
  19583. #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */
  19584. /****************** Bit definition for USART_GTPR register ******************/
  19585. #define USART_GTPR_PSC_Pos (0U)
  19586. #define USART_GTPR_PSC_Msk (0xFFUL << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  19587. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  19588. #define USART_GTPR_GT_Pos (8U)
  19589. #define USART_GTPR_GT_Msk (0xFFUL << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  19590. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  19591. /******************* Bit definition for USART_RTOR register *****************/
  19592. #define USART_RTOR_RTO_Pos (0U)
  19593. #define USART_RTOR_RTO_Msk (0xFFFFFFUL << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  19594. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */
  19595. #define USART_RTOR_BLEN_Pos (24U)
  19596. #define USART_RTOR_BLEN_Msk (0xFFUL << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  19597. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  19598. /******************* Bit definition for USART_RQR register ******************/
  19599. #define USART_RQR_ABRRQ_Pos (0U)
  19600. #define USART_RQR_ABRRQ_Msk (0x1UL << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  19601. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  19602. #define USART_RQR_SBKRQ_Pos (1U)
  19603. #define USART_RQR_SBKRQ_Msk (0x1UL << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  19604. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  19605. #define USART_RQR_MMRQ_Pos (2U)
  19606. #define USART_RQR_MMRQ_Msk (0x1UL << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  19607. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  19608. #define USART_RQR_RXFRQ_Pos (3U)
  19609. #define USART_RQR_RXFRQ_Msk (0x1UL << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  19610. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  19611. #define USART_RQR_TXFRQ_Pos (4U)
  19612. #define USART_RQR_TXFRQ_Msk (0x1UL << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  19613. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */
  19614. /******************* Bit definition for USART_ISR register ******************/
  19615. #define USART_ISR_PE_Pos (0U)
  19616. #define USART_ISR_PE_Msk (0x1UL << USART_ISR_PE_Pos) /*!< 0x00000001 */
  19617. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  19618. #define USART_ISR_FE_Pos (1U)
  19619. #define USART_ISR_FE_Msk (0x1UL << USART_ISR_FE_Pos) /*!< 0x00000002 */
  19620. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  19621. #define USART_ISR_NE_Pos (2U)
  19622. #define USART_ISR_NE_Msk (0x1UL << USART_ISR_NE_Pos) /*!< 0x00000004 */
  19623. #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */
  19624. #define USART_ISR_ORE_Pos (3U)
  19625. #define USART_ISR_ORE_Msk (0x1UL << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  19626. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  19627. #define USART_ISR_IDLE_Pos (4U)
  19628. #define USART_ISR_IDLE_Msk (0x1UL << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  19629. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  19630. #define USART_ISR_RXNE_RXFNE_Pos (5U)
  19631. #define USART_ISR_RXNE_RXFNE_Msk (0x1UL << USART_ISR_RXNE_RXFNE_Pos) /*!< 0x00000020 */
  19632. #define USART_ISR_RXNE_RXFNE USART_ISR_RXNE_RXFNE_Msk /*!< Read Data Register or RX FIFO Not Empty */
  19633. #define USART_ISR_TC_Pos (6U)
  19634. #define USART_ISR_TC_Msk (0x1UL << USART_ISR_TC_Pos) /*!< 0x00000040 */
  19635. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  19636. #define USART_ISR_TXE_TXFNF_Pos (7U)
  19637. #define USART_ISR_TXE_TXFNF_Msk (0x1UL << USART_ISR_TXE_TXFNF_Pos) /*!< 0x00000080 */
  19638. #define USART_ISR_TXE_TXFNF USART_ISR_TXE_TXFNF_Msk /*!< Transmit Data Register Empty or TX FIFO Not Full Flag */
  19639. #define USART_ISR_LBDF_Pos (8U)
  19640. #define USART_ISR_LBDF_Msk (0x1UL << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  19641. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  19642. #define USART_ISR_CTSIF_Pos (9U)
  19643. #define USART_ISR_CTSIF_Msk (0x1UL << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  19644. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */
  19645. #define USART_ISR_CTS_Pos (10U)
  19646. #define USART_ISR_CTS_Msk (0x1UL << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  19647. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */
  19648. #define USART_ISR_RTOF_Pos (11U)
  19649. #define USART_ISR_RTOF_Msk (0x1UL << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  19650. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */
  19651. #define USART_ISR_EOBF_Pos (12U)
  19652. #define USART_ISR_EOBF_Msk (0x1UL << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  19653. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  19654. #define USART_ISR_UDR_Pos (13U)
  19655. #define USART_ISR_UDR_Msk (0x1UL << USART_ISR_UDR_Pos) /*!< 0x00002000 */
  19656. #define USART_ISR_UDR USART_ISR_UDR_Msk /*!< SPI slave underrun error flag */
  19657. #define USART_ISR_ABRE_Pos (14U)
  19658. #define USART_ISR_ABRE_Msk (0x1UL << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  19659. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  19660. #define USART_ISR_ABRF_Pos (15U)
  19661. #define USART_ISR_ABRF_Msk (0x1UL << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  19662. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  19663. #define USART_ISR_BUSY_Pos (16U)
  19664. #define USART_ISR_BUSY_Msk (0x1UL << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  19665. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  19666. #define USART_ISR_CMF_Pos (17U)
  19667. #define USART_ISR_CMF_Msk (0x1UL << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  19668. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  19669. #define USART_ISR_SBKF_Pos (18U)
  19670. #define USART_ISR_SBKF_Msk (0x1UL << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  19671. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  19672. #define USART_ISR_RWU_Pos (19U)
  19673. #define USART_ISR_RWU_Msk (0x1UL << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  19674. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  19675. #define USART_ISR_WUF_Pos (20U)
  19676. #define USART_ISR_WUF_Msk (0x1UL << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  19677. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  19678. #define USART_ISR_TEACK_Pos (21U)
  19679. #define USART_ISR_TEACK_Msk (0x1UL << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  19680. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  19681. #define USART_ISR_REACK_Pos (22U)
  19682. #define USART_ISR_REACK_Msk (0x1UL << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  19683. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  19684. #define USART_ISR_TXFE_Pos (23U)
  19685. #define USART_ISR_TXFE_Msk (0x1UL << USART_ISR_TXFE_Pos) /*!< 0x00800000 */
  19686. #define USART_ISR_TXFE USART_ISR_TXFE_Msk /*!< TXFIFO Empty */
  19687. #define USART_ISR_RXFF_Pos (24U)
  19688. #define USART_ISR_RXFF_Msk (0x1UL << USART_ISR_RXFF_Pos) /*!< 0x01000000 */
  19689. #define USART_ISR_RXFF USART_ISR_RXFF_Msk /*!< RXFIFO Full Flag */
  19690. #define USART_ISR_TCBGT_Pos (25U)
  19691. #define USART_ISR_TCBGT_Msk (0x1UL << USART_ISR_TCBGT_Pos) /*!< 0x02000000 */
  19692. #define USART_ISR_TCBGT USART_ISR_TCBGT_Msk /*!< Transmission complete before guard time Flag */
  19693. #define USART_ISR_RXFT_Pos (26U)
  19694. #define USART_ISR_RXFT_Msk (0x1UL << USART_ISR_RXFT_Pos) /*!< 0x04000000 */
  19695. #define USART_ISR_RXFT USART_ISR_RXFT_Msk /*!< RXFIFO threshold Flag */
  19696. #define USART_ISR_TXFT_Pos (27U)
  19697. #define USART_ISR_TXFT_Msk (0x1UL << USART_ISR_TXFT_Pos) /*!< 0x08000000 */
  19698. #define USART_ISR_TXFT USART_ISR_TXFT_Msk /*!< TXFIFO threshold Flag */
  19699. /******************* Bit definition for USART_ICR register ******************/
  19700. #define USART_ICR_PECF_Pos (0U)
  19701. #define USART_ICR_PECF_Msk (0x1UL << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  19702. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  19703. #define USART_ICR_FECF_Pos (1U)
  19704. #define USART_ICR_FECF_Msk (0x1UL << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  19705. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  19706. #define USART_ICR_NECF_Pos (2U)
  19707. #define USART_ICR_NECF_Msk (0x1UL << USART_ICR_NECF_Pos) /*!< 0x00000004 */
  19708. #define USART_ICR_NECF USART_ICR_NECF_Msk /*!< Noise detected Clear Flag */
  19709. #define USART_ICR_ORECF_Pos (3U)
  19710. #define USART_ICR_ORECF_Msk (0x1UL << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  19711. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  19712. #define USART_ICR_IDLECF_Pos (4U)
  19713. #define USART_ICR_IDLECF_Msk (0x1UL << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  19714. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  19715. #define USART_ICR_TXFECF_Pos (5U)
  19716. #define USART_ICR_TXFECF_Msk (0x1UL << USART_ICR_TXFECF_Pos) /*!< 0x00000020 */
  19717. #define USART_ICR_TXFECF USART_ICR_TXFECF_Msk /*!< TXFIFO empty clear flag */
  19718. #define USART_ICR_TCCF_Pos (6U)
  19719. #define USART_ICR_TCCF_Msk (0x1UL << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  19720. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  19721. #define USART_ICR_TCBGTCF_Pos (7U)
  19722. #define USART_ICR_TCBGTCF_Msk (0x1UL << USART_ICR_TCBGTCF_Pos) /*!< 0x00000080 */
  19723. #define USART_ICR_TCBGTCF USART_ICR_TCBGTCF_Msk /*!< Transmission complete before guard time Clear Flag */
  19724. #define USART_ICR_LBDCF_Pos (8U)
  19725. #define USART_ICR_LBDCF_Msk (0x1UL << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  19726. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  19727. #define USART_ICR_CTSCF_Pos (9U)
  19728. #define USART_ICR_CTSCF_Msk (0x1UL << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  19729. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  19730. #define USART_ICR_RTOCF_Pos (11U)
  19731. #define USART_ICR_RTOCF_Msk (0x1UL << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  19732. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  19733. #define USART_ICR_EOBCF_Pos (12U)
  19734. #define USART_ICR_EOBCF_Msk (0x1UL << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  19735. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  19736. #define USART_ICR_UDRCF_Pos (13U)
  19737. #define USART_ICR_UDRCF_Msk (0x1UL << USART_ICR_UDRCF_Pos) /*!< 0x00002000 */
  19738. #define USART_ICR_UDRCF USART_ICR_UDRCF_Msk /*!< SPI slave underrun clear flag */
  19739. #define USART_ICR_CMCF_Pos (17U)
  19740. #define USART_ICR_CMCF_Msk (0x1UL << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  19741. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  19742. #define USART_ICR_WUCF_Pos (20U)
  19743. #define USART_ICR_WUCF_Msk (0x1UL << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  19744. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  19745. /******************* Bit definition for USART_RDR register ******************/
  19746. #define USART_RDR_RDR_Pos (0U)
  19747. #define USART_RDR_RDR_Msk (0x1FFUL << USART_RDR_RDR_Pos) /*!< 0x000001FF */
  19748. #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */
  19749. /******************* Bit definition for USART_TDR register ******************/
  19750. #define USART_TDR_TDR_Pos (0U)
  19751. #define USART_TDR_TDR_Msk (0x1FFUL << USART_TDR_TDR_Pos) /*!< 0x000001FF */
  19752. #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */
  19753. /******************* Bit definition for USART_PRESC register ******************/
  19754. #define USART_PRESC_PRESCALER_Pos (0U)
  19755. #define USART_PRESC_PRESCALER_Msk (0xFUL << USART_PRESC_PRESCALER_Pos) /*!< 0x0000000F */
  19756. #define USART_PRESC_PRESCALER USART_PRESC_PRESCALER_Msk /*!< PRESCALER[3:0] bits (Clock prescaler) */
  19757. #define USART_PRESC_PRESCALER_0 (0x1UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000001 */
  19758. #define USART_PRESC_PRESCALER_1 (0x2UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000002 */
  19759. #define USART_PRESC_PRESCALER_2 (0x4UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000004 */
  19760. #define USART_PRESC_PRESCALER_3 (0x8UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000008 */
  19761. /******************************************************************************/
  19762. /* */
  19763. /* Single Wire Protocol Master Interface (SWPMI) */
  19764. /* */
  19765. /******************************************************************************/
  19766. /******************* Bit definition for SWPMI_CR register ********************/
  19767. #define SWPMI_CR_RXDMA_Pos (0U)
  19768. #define SWPMI_CR_RXDMA_Msk (0x1UL << SWPMI_CR_RXDMA_Pos) /*!< 0x00000001 */
  19769. #define SWPMI_CR_RXDMA SWPMI_CR_RXDMA_Msk /*!<Reception DMA enable */
  19770. #define SWPMI_CR_TXDMA_Pos (1U)
  19771. #define SWPMI_CR_TXDMA_Msk (0x1UL << SWPMI_CR_TXDMA_Pos) /*!< 0x00000002 */
  19772. #define SWPMI_CR_TXDMA SWPMI_CR_TXDMA_Msk /*!<Transmission DMA enable */
  19773. #define SWPMI_CR_RXMODE_Pos (2U)
  19774. #define SWPMI_CR_RXMODE_Msk (0x1UL << SWPMI_CR_RXMODE_Pos) /*!< 0x00000004 */
  19775. #define SWPMI_CR_RXMODE SWPMI_CR_RXMODE_Msk /*!<Reception buffering mode */
  19776. #define SWPMI_CR_TXMODE_Pos (3U)
  19777. #define SWPMI_CR_TXMODE_Msk (0x1UL << SWPMI_CR_TXMODE_Pos) /*!< 0x00000008 */
  19778. #define SWPMI_CR_TXMODE SWPMI_CR_TXMODE_Msk /*!<Transmission buffering mode */
  19779. #define SWPMI_CR_LPBK_Pos (4U)
  19780. #define SWPMI_CR_LPBK_Msk (0x1UL << SWPMI_CR_LPBK_Pos) /*!< 0x00000010 */
  19781. #define SWPMI_CR_LPBK SWPMI_CR_LPBK_Msk /*!<Loopback mode enable */
  19782. #define SWPMI_CR_SWPACT_Pos (5U)
  19783. #define SWPMI_CR_SWPACT_Msk (0x1UL << SWPMI_CR_SWPACT_Pos) /*!< 0x00000020 */
  19784. #define SWPMI_CR_SWPACT SWPMI_CR_SWPACT_Msk /*!<Single wire protocol master interface activate */
  19785. #define SWPMI_CR_DEACT_Pos (10U)
  19786. #define SWPMI_CR_DEACT_Msk (0x1UL << SWPMI_CR_DEACT_Pos) /*!< 0x00000400 */
  19787. #define SWPMI_CR_DEACT SWPMI_CR_DEACT_Msk /*!<Single wire protocol master interface deactivate */
  19788. #define SWPMI_CR_SWPEN_Pos (11U)
  19789. #define SWPMI_CR_SWPEN_Msk (0x1UL << SWPMI_CR_SWPEN_Pos) /*!< 0x00000800 */
  19790. #define SWPMI_CR_SWPEN SWPMI_CR_SWPEN_Msk /*!<Single wire protocol master transceiver enable */
  19791. /******************* Bit definition for SWPMI_BRR register ********************/
  19792. #define SWPMI_BRR_BR_Pos (0U)
  19793. #define SWPMI_BRR_BR_Msk (0xFFUL << SWPMI_BRR_BR_Pos) /*!< 0x000000FF */
  19794. #define SWPMI_BRR_BR SWPMI_BRR_BR_Msk /*!<BR[7:0] bits (Bitrate prescaler) */
  19795. /******************* Bit definition for SWPMI_ISR register ********************/
  19796. #define SWPMI_ISR_RXBFF_Pos (0U)
  19797. #define SWPMI_ISR_RXBFF_Msk (0x1UL << SWPMI_ISR_RXBFF_Pos) /*!< 0x00000001 */
  19798. #define SWPMI_ISR_RXBFF SWPMI_ISR_RXBFF_Msk /*!<Receive buffer full flag */
  19799. #define SWPMI_ISR_TXBEF_Pos (1U)
  19800. #define SWPMI_ISR_TXBEF_Msk (0x1UL << SWPMI_ISR_TXBEF_Pos) /*!< 0x00000002 */
  19801. #define SWPMI_ISR_TXBEF SWPMI_ISR_TXBEF_Msk /*!<Transmit buffer empty flag */
  19802. #define SWPMI_ISR_RXBERF_Pos (2U)
  19803. #define SWPMI_ISR_RXBERF_Msk (0x1UL << SWPMI_ISR_RXBERF_Pos) /*!< 0x00000004 */
  19804. #define SWPMI_ISR_RXBERF SWPMI_ISR_RXBERF_Msk /*!<Receive CRC error flag */
  19805. #define SWPMI_ISR_RXOVRF_Pos (3U)
  19806. #define SWPMI_ISR_RXOVRF_Msk (0x1UL << SWPMI_ISR_RXOVRF_Pos) /*!< 0x00000008 */
  19807. #define SWPMI_ISR_RXOVRF SWPMI_ISR_RXOVRF_Msk /*!<Receive overrun error flag */
  19808. #define SWPMI_ISR_TXUNRF_Pos (4U)
  19809. #define SWPMI_ISR_TXUNRF_Msk (0x1UL << SWPMI_ISR_TXUNRF_Pos) /*!< 0x00000010 */
  19810. #define SWPMI_ISR_TXUNRF SWPMI_ISR_TXUNRF_Msk /*!<Transmit underrun error flag */
  19811. #define SWPMI_ISR_RXNE_Pos (5U)
  19812. #define SWPMI_ISR_RXNE_Msk (0x1UL << SWPMI_ISR_RXNE_Pos) /*!< 0x00000020 */
  19813. #define SWPMI_ISR_RXNE SWPMI_ISR_RXNE_Msk /*!<Receive data register not empty */
  19814. #define SWPMI_ISR_TXE_Pos (6U)
  19815. #define SWPMI_ISR_TXE_Msk (0x1UL << SWPMI_ISR_TXE_Pos) /*!< 0x00000040 */
  19816. #define SWPMI_ISR_TXE SWPMI_ISR_TXE_Msk /*!<Transmit data register empty */
  19817. #define SWPMI_ISR_TCF_Pos (7U)
  19818. #define SWPMI_ISR_TCF_Msk (0x1UL << SWPMI_ISR_TCF_Pos) /*!< 0x00000080 */
  19819. #define SWPMI_ISR_TCF SWPMI_ISR_TCF_Msk /*!<Transfer complete flag */
  19820. #define SWPMI_ISR_SRF_Pos (8U)
  19821. #define SWPMI_ISR_SRF_Msk (0x1UL << SWPMI_ISR_SRF_Pos) /*!< 0x00000100 */
  19822. #define SWPMI_ISR_SRF SWPMI_ISR_SRF_Msk /*!<Slave resume flag */
  19823. #define SWPMI_ISR_SUSP_Pos (9U)
  19824. #define SWPMI_ISR_SUSP_Msk (0x1UL << SWPMI_ISR_SUSP_Pos) /*!< 0x00000200 */
  19825. #define SWPMI_ISR_SUSP SWPMI_ISR_SUSP_Msk /*!<SUSPEND flag */
  19826. #define SWPMI_ISR_DEACTF_Pos (10U)
  19827. #define SWPMI_ISR_DEACTF_Msk (0x1UL << SWPMI_ISR_DEACTF_Pos) /*!< 0x00000400 */
  19828. #define SWPMI_ISR_DEACTF SWPMI_ISR_DEACTF_Msk /*!<DEACTIVATED flag */
  19829. #define SWPMI_ISR_RDYF_Pos (11U)
  19830. #define SWPMI_ISR_RDYF_Msk (0x1UL << SWPMI_ISR_RDYF_Pos) /*!< 0x00000800 */
  19831. #define SWPMI_ISR_RDYF SWPMI_ISR_RDYF_Msk /*!<Transceiver ready flag */
  19832. /******************* Bit definition for SWPMI_ICR register ********************/
  19833. #define SWPMI_ICR_CRXBFF_Pos (0U)
  19834. #define SWPMI_ICR_CRXBFF_Msk (0x1UL << SWPMI_ICR_CRXBFF_Pos) /*!< 0x00000001 */
  19835. #define SWPMI_ICR_CRXBFF SWPMI_ICR_CRXBFF_Msk /*!<Clear receive buffer full flag */
  19836. #define SWPMI_ICR_CTXBEF_Pos (1U)
  19837. #define SWPMI_ICR_CTXBEF_Msk (0x1UL << SWPMI_ICR_CTXBEF_Pos) /*!< 0x00000002 */
  19838. #define SWPMI_ICR_CTXBEF SWPMI_ICR_CTXBEF_Msk /*!<Clear transmit buffer empty flag */
  19839. #define SWPMI_ICR_CRXBERF_Pos (2U)
  19840. #define SWPMI_ICR_CRXBERF_Msk (0x1UL << SWPMI_ICR_CRXBERF_Pos) /*!< 0x00000004 */
  19841. #define SWPMI_ICR_CRXBERF SWPMI_ICR_CRXBERF_Msk /*!<Clear receive CRC error flag */
  19842. #define SWPMI_ICR_CRXOVRF_Pos (3U)
  19843. #define SWPMI_ICR_CRXOVRF_Msk (0x1UL << SWPMI_ICR_CRXOVRF_Pos) /*!< 0x00000008 */
  19844. #define SWPMI_ICR_CRXOVRF SWPMI_ICR_CRXOVRF_Msk /*!<Clear receive overrun error flag */
  19845. #define SWPMI_ICR_CTXUNRF_Pos (4U)
  19846. #define SWPMI_ICR_CTXUNRF_Msk (0x1UL << SWPMI_ICR_CTXUNRF_Pos) /*!< 0x00000010 */
  19847. #define SWPMI_ICR_CTXUNRF SWPMI_ICR_CTXUNRF_Msk /*!<Clear transmit underrun error flag */
  19848. #define SWPMI_ICR_CTCF_Pos (7U)
  19849. #define SWPMI_ICR_CTCF_Msk (0x1UL << SWPMI_ICR_CTCF_Pos) /*!< 0x00000080 */
  19850. #define SWPMI_ICR_CTCF SWPMI_ICR_CTCF_Msk /*!<Clear transfer complete flag */
  19851. #define SWPMI_ICR_CSRF_Pos (8U)
  19852. #define SWPMI_ICR_CSRF_Msk (0x1UL << SWPMI_ICR_CSRF_Pos) /*!< 0x00000100 */
  19853. #define SWPMI_ICR_CSRF SWPMI_ICR_CSRF_Msk /*!<Clear slave resume flag */
  19854. #define SWPMI_ICR_CRDYF_Pos (11U)
  19855. #define SWPMI_ICR_CRDYF_Msk (0x1UL << SWPMI_ICR_CRDYF_Pos) /*!< 0x00000800 */
  19856. #define SWPMI_ICR_CRDYF SWPMI_ICR_CRDYF_Msk /*!<Clear transceiver ready flag */
  19857. /******************* Bit definition for SWPMI_IER register ********************/
  19858. #define SWPMI_IER_RXBFIE_Pos (0U)
  19859. #define SWPMI_IER_RXBFIE_Msk (0x1UL << SWPMI_IER_RXBFIE_Pos) /*!< 0x00000001 */
  19860. #define SWPMI_IER_RXBFIE SWPMI_IER_RXBFIE_Msk /*!<Receive buffer full interrupt enable */
  19861. #define SWPMI_IER_TXBEIE_Pos (1U)
  19862. #define SWPMI_IER_TXBEIE_Msk (0x1UL << SWPMI_IER_TXBEIE_Pos) /*!< 0x00000002 */
  19863. #define SWPMI_IER_TXBEIE SWPMI_IER_TXBEIE_Msk /*!<Transmit buffer empty interrupt enable */
  19864. #define SWPMI_IER_RXBERIE_Pos (2U)
  19865. #define SWPMI_IER_RXBERIE_Msk (0x1UL << SWPMI_IER_RXBERIE_Pos) /*!< 0x00000004 */
  19866. #define SWPMI_IER_RXBERIE SWPMI_IER_RXBERIE_Msk /*!<Receive CRC error interrupt enable */
  19867. #define SWPMI_IER_RXOVRIE_Pos (3U)
  19868. #define SWPMI_IER_RXOVRIE_Msk (0x1UL << SWPMI_IER_RXOVRIE_Pos) /*!< 0x00000008 */
  19869. #define SWPMI_IER_RXOVRIE SWPMI_IER_RXOVRIE_Msk /*!<Receive overrun error interrupt enable */
  19870. #define SWPMI_IER_TXUNRIE_Pos (4U)
  19871. #define SWPMI_IER_TXUNRIE_Msk (0x1UL << SWPMI_IER_TXUNRIE_Pos) /*!< 0x00000010 */
  19872. #define SWPMI_IER_TXUNRIE SWPMI_IER_TXUNRIE_Msk /*!<Transmit underrun error interrupt enable */
  19873. #define SWPMI_IER_RIE_Pos (5U)
  19874. #define SWPMI_IER_RIE_Msk (0x1UL << SWPMI_IER_RIE_Pos) /*!< 0x00000020 */
  19875. #define SWPMI_IER_RIE SWPMI_IER_RIE_Msk /*!<Receive interrupt enable */
  19876. #define SWPMI_IER_TIE_Pos (6U)
  19877. #define SWPMI_IER_TIE_Msk (0x1UL << SWPMI_IER_TIE_Pos) /*!< 0x00000040 */
  19878. #define SWPMI_IER_TIE SWPMI_IER_TIE_Msk /*!<Transmit interrupt enable */
  19879. #define SWPMI_IER_TCIE_Pos (7U)
  19880. #define SWPMI_IER_TCIE_Msk (0x1UL << SWPMI_IER_TCIE_Pos) /*!< 0x00000080 */
  19881. #define SWPMI_IER_TCIE SWPMI_IER_TCIE_Msk /*!<Transmit complete interrupt enable */
  19882. #define SWPMI_IER_SRIE_Pos (8U)
  19883. #define SWPMI_IER_SRIE_Msk (0x1UL << SWPMI_IER_SRIE_Pos) /*!< 0x00000100 */
  19884. #define SWPMI_IER_SRIE SWPMI_IER_SRIE_Msk /*!<Slave resume interrupt enable */
  19885. #define SWPMI_IER_RDYIE_Pos (11U)
  19886. #define SWPMI_IER_RDYIE_Msk (0x1UL << SWPMI_IER_RDYIE_Pos) /*!< 0x00000800 */
  19887. #define SWPMI_IER_RDYIE SWPMI_IER_RDYIE_Msk /*!<Transceiver ready interrupt enable */
  19888. /******************* Bit definition for SWPMI_RFL register ********************/
  19889. #define SWPMI_RFL_RFL_Pos (0U)
  19890. #define SWPMI_RFL_RFL_Msk (0x1FUL << SWPMI_RFL_RFL_Pos) /*!< 0x0000001F */
  19891. #define SWPMI_RFL_RFL SWPMI_RFL_RFL_Msk /*!<RFL[4:0] bits (Receive Frame length) */
  19892. #define SWPMI_RFL_RFL_0_1 ((uint32_t)0x00000003) /*!<RFL[1:0] bits (number of relevant bytes for the last SWPMI_RDR register read.) */
  19893. /******************* Bit definition for SWPMI_TDR register ********************/
  19894. #define SWPMI_TDR_TD_Pos (0U)
  19895. #define SWPMI_TDR_TD_Msk (0xFFFFFFFFUL << SWPMI_TDR_TD_Pos) /*!< 0xFFFFFFFF */
  19896. #define SWPMI_TDR_TD SWPMI_TDR_TD_Msk /*!<Transmit Data Register */
  19897. /******************* Bit definition for SWPMI_RDR register ********************/
  19898. #define SWPMI_RDR_RD_Pos (0U)
  19899. #define SWPMI_RDR_RD_Msk (0xFFFFFFFFUL << SWPMI_RDR_RD_Pos) /*!< 0xFFFFFFFF */
  19900. #define SWPMI_RDR_RD SWPMI_RDR_RD_Msk /*!<Receive Data Register */
  19901. /******************* Bit definition for SWPMI_OR register ********************/
  19902. #define SWPMI_OR_TBYP_Pos (0U)
  19903. #define SWPMI_OR_TBYP_Msk (0x1UL << SWPMI_OR_TBYP_Pos) /*!< 0x00000001 */
  19904. #define SWPMI_OR_TBYP SWPMI_OR_TBYP_Msk /*!<SWP Transceiver Bypass */
  19905. #define SWPMI_OR_CLASS_Pos (1U)
  19906. #define SWPMI_OR_CLASS_Msk (0x1UL << SWPMI_OR_CLASS_Pos) /*!< 0x00000002 */
  19907. #define SWPMI_OR_CLASS SWPMI_OR_CLASS_Msk /*!<SWP CLASS selection */
  19908. /******************************************************************************/
  19909. /* */
  19910. /* Window WATCHDOG */
  19911. /* */
  19912. /******************************************************************************/
  19913. /******************* Bit definition for WWDG_CR register ********************/
  19914. #define WWDG_CR_T_Pos (0U)
  19915. #define WWDG_CR_T_Msk (0x7FUL << WWDG_CR_T_Pos) /*!< 0x0000007F */
  19916. #define WWDG_CR_T WWDG_CR_T_Msk /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
  19917. #define WWDG_CR_T_0 (0x01UL << WWDG_CR_T_Pos) /*!< 0x00000001 */
  19918. #define WWDG_CR_T_1 (0x02UL << WWDG_CR_T_Pos) /*!< 0x00000002 */
  19919. #define WWDG_CR_T_2 (0x04UL << WWDG_CR_T_Pos) /*!< 0x00000004 */
  19920. #define WWDG_CR_T_3 (0x08UL << WWDG_CR_T_Pos) /*!< 0x00000008 */
  19921. #define WWDG_CR_T_4 (0x10UL << WWDG_CR_T_Pos) /*!< 0x00000010 */
  19922. #define WWDG_CR_T_5 (0x20UL << WWDG_CR_T_Pos) /*!< 0x00000020 */
  19923. #define WWDG_CR_T_6 (0x40UL << WWDG_CR_T_Pos) /*!< 0x00000040 */
  19924. #define WWDG_CR_WDGA_Pos (7U)
  19925. #define WWDG_CR_WDGA_Msk (0x1UL << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */
  19926. #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!<Activation bit */
  19927. /******************* Bit definition for WWDG_CFR register *******************/
  19928. #define WWDG_CFR_W_Pos (0U)
  19929. #define WWDG_CFR_W_Msk (0x7FUL << WWDG_CFR_W_Pos) /*!< 0x0000007F */
  19930. #define WWDG_CFR_W WWDG_CFR_W_Msk /*!<W[6:0] bits (7-bit window value) */
  19931. #define WWDG_CFR_W_0 (0x01UL << WWDG_CFR_W_Pos) /*!< 0x00000001 */
  19932. #define WWDG_CFR_W_1 (0x02UL << WWDG_CFR_W_Pos) /*!< 0x00000002 */
  19933. #define WWDG_CFR_W_2 (0x04UL << WWDG_CFR_W_Pos) /*!< 0x00000004 */
  19934. #define WWDG_CFR_W_3 (0x08UL << WWDG_CFR_W_Pos) /*!< 0x00000008 */
  19935. #define WWDG_CFR_W_4 (0x10UL << WWDG_CFR_W_Pos) /*!< 0x00000010 */
  19936. #define WWDG_CFR_W_5 (0x20UL << WWDG_CFR_W_Pos) /*!< 0x00000020 */
  19937. #define WWDG_CFR_W_6 (0x40UL << WWDG_CFR_W_Pos) /*!< 0x00000040 */
  19938. #define WWDG_CFR_EWI_Pos (9U)
  19939. #define WWDG_CFR_EWI_Msk (0x1UL << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */
  19940. #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!<Early Wakeup Interrupt */
  19941. #define WWDG_CFR_WDGTB_Pos (11U)
  19942. #define WWDG_CFR_WDGTB_Msk (0x7UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00003800 */
  19943. #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!<WDGTB[2:0] bits (Timer Base) */
  19944. #define WWDG_CFR_WDGTB_0 (0x1UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00000800 */
  19945. #define WWDG_CFR_WDGTB_1 (0x2UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00001000 */
  19946. #define WWDG_CFR_WDGTB_2 (0x4UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00002000 */
  19947. /******************* Bit definition for WWDG_SR register ********************/
  19948. #define WWDG_SR_EWIF_Pos (0U)
  19949. #define WWDG_SR_EWIF_Msk (0x1UL << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */
  19950. #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!<Early Wakeup Interrupt Flag */
  19951. /******************************************************************************/
  19952. /* */
  19953. /* DBG */
  19954. /* */
  19955. /******************************************************************************/
  19956. /********************************* DEVICE ID ********************************/
  19957. #define STM32H7_DEV_ID 0x483UL
  19958. /******************** Bit definition for DBGMCU_IDCODE register *************/
  19959. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  19960. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFUL << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
  19961. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk
  19962. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  19963. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFUL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */
  19964. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk
  19965. /******************** Bit definition for DBGMCU_CR register *****************/
  19966. #define DBGMCU_CR_DBG_SLEEPD1_Pos (0U)
  19967. #define DBGMCU_CR_DBG_SLEEPD1_Msk (0x1UL << DBGMCU_CR_DBG_SLEEPD1_Pos) /*!< 0x00000001 */
  19968. #define DBGMCU_CR_DBG_SLEEPD1 DBGMCU_CR_DBG_SLEEPD1_Msk
  19969. #define DBGMCU_CR_DBG_STOPD1_Pos (1U)
  19970. #define DBGMCU_CR_DBG_STOPD1_Msk (0x1UL << DBGMCU_CR_DBG_STOPD1_Pos) /*!< 0x00000002 */
  19971. #define DBGMCU_CR_DBG_STOPD1 DBGMCU_CR_DBG_STOPD1_Msk
  19972. #define DBGMCU_CR_DBG_STANDBYD1_Pos (2U)
  19973. #define DBGMCU_CR_DBG_STANDBYD1_Msk (0x1UL << DBGMCU_CR_DBG_STANDBYD1_Pos) /*!< 0x00000004 */
  19974. #define DBGMCU_CR_DBG_STANDBYD1 DBGMCU_CR_DBG_STANDBYD1_Msk
  19975. #define DBGMCU_CR_DBG_STOPD3_Pos (7U)
  19976. #define DBGMCU_CR_DBG_STOPD3_Msk (0x1UL << DBGMCU_CR_DBG_STOPD3_Pos) /*!< 0x00000080 */
  19977. #define DBGMCU_CR_DBG_STOPD3 DBGMCU_CR_DBG_STOPD3_Msk
  19978. #define DBGMCU_CR_DBG_STANDBYD3_Pos (8U)
  19979. #define DBGMCU_CR_DBG_STANDBYD3_Msk (0x1UL << DBGMCU_CR_DBG_STANDBYD3_Pos) /*!< 0x00000100 */
  19980. #define DBGMCU_CR_DBG_STANDBYD3 DBGMCU_CR_DBG_STANDBYD3_Msk
  19981. #define DBGMCU_CR_DBG_TRACECKEN_Pos (20U)
  19982. #define DBGMCU_CR_DBG_TRACECKEN_Msk (0x1UL << DBGMCU_CR_DBG_TRACECKEN_Pos) /*!< 0x00100000 */
  19983. #define DBGMCU_CR_DBG_TRACECKEN DBGMCU_CR_DBG_TRACECKEN_Msk
  19984. #define DBGMCU_CR_DBG_CKD1EN_Pos (21U)
  19985. #define DBGMCU_CR_DBG_CKD1EN_Msk (0x1UL << DBGMCU_CR_DBG_CKD1EN_Pos) /*!< 0x00200000 */
  19986. #define DBGMCU_CR_DBG_CKD1EN DBGMCU_CR_DBG_CKD1EN_Msk
  19987. #define DBGMCU_CR_DBG_CKD3EN_Pos (22U)
  19988. #define DBGMCU_CR_DBG_CKD3EN_Msk (0x1UL << DBGMCU_CR_DBG_CKD3EN_Pos) /*!< 0x00400000 */
  19989. #define DBGMCU_CR_DBG_CKD3EN DBGMCU_CR_DBG_CKD3EN_Msk
  19990. #define DBGMCU_CR_DBG_TRGOEN_Pos (28U)
  19991. #define DBGMCU_CR_DBG_TRGOEN_Msk (0x1UL << DBGMCU_CR_DBG_TRGOEN_Pos) /*!< 0x10000000 */
  19992. #define DBGMCU_CR_DBG_TRGOEN DBGMCU_CR_DBG_TRGOEN_Msk
  19993. /******************** Bit definition for APB3FZ1 register ************/
  19994. #define DBGMCU_APB3FZ1_DBG_WWDG1_Pos (6U)
  19995. #define DBGMCU_APB3FZ1_DBG_WWDG1_Msk (0x1UL << DBGMCU_APB3FZ1_DBG_WWDG1_Pos) /*!< 0x00000040 */
  19996. #define DBGMCU_APB3FZ1_DBG_WWDG1 DBGMCU_APB3FZ1_DBG_WWDG1_Msk
  19997. /******************** Bit definition for APB1LFZ1 register ************/
  19998. #define DBGMCU_APB1LFZ1_DBG_TIM2_Pos (0U)
  19999. #define DBGMCU_APB1LFZ1_DBG_TIM2_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM2_Pos) /*!< 0x00000001 */
  20000. #define DBGMCU_APB1LFZ1_DBG_TIM2 DBGMCU_APB1LFZ1_DBG_TIM2_Msk
  20001. #define DBGMCU_APB1LFZ1_DBG_TIM3_Pos (1U)
  20002. #define DBGMCU_APB1LFZ1_DBG_TIM3_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM3_Pos) /*!< 0x00000002 */
  20003. #define DBGMCU_APB1LFZ1_DBG_TIM3 DBGMCU_APB1LFZ1_DBG_TIM3_Msk
  20004. #define DBGMCU_APB1LFZ1_DBG_TIM4_Pos (2U)
  20005. #define DBGMCU_APB1LFZ1_DBG_TIM4_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM4_Pos) /*!< 0x00000004 */
  20006. #define DBGMCU_APB1LFZ1_DBG_TIM4 DBGMCU_APB1LFZ1_DBG_TIM4_Msk
  20007. #define DBGMCU_APB1LFZ1_DBG_TIM5_Pos (3U)
  20008. #define DBGMCU_APB1LFZ1_DBG_TIM5_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM5_Pos) /*!< 0x00000008 */
  20009. #define DBGMCU_APB1LFZ1_DBG_TIM5 DBGMCU_APB1LFZ1_DBG_TIM5_Msk
  20010. #define DBGMCU_APB1LFZ1_DBG_TIM6_Pos (4U)
  20011. #define DBGMCU_APB1LFZ1_DBG_TIM6_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM6_Pos) /*!< 0x00000010 */
  20012. #define DBGMCU_APB1LFZ1_DBG_TIM6 DBGMCU_APB1LFZ1_DBG_TIM6_Msk
  20013. #define DBGMCU_APB1LFZ1_DBG_TIM7_Pos (5U)
  20014. #define DBGMCU_APB1LFZ1_DBG_TIM7_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM7_Pos) /*!< 0x00000020 */
  20015. #define DBGMCU_APB1LFZ1_DBG_TIM7 DBGMCU_APB1LFZ1_DBG_TIM7_Msk
  20016. #define DBGMCU_APB1LFZ1_DBG_TIM12_Pos (6U)
  20017. #define DBGMCU_APB1LFZ1_DBG_TIM12_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM12_Pos) /*!< 0x00000040 */
  20018. #define DBGMCU_APB1LFZ1_DBG_TIM12 DBGMCU_APB1LFZ1_DBG_TIM12_Msk
  20019. #define DBGMCU_APB1LFZ1_DBG_TIM13_Pos (7U)
  20020. #define DBGMCU_APB1LFZ1_DBG_TIM13_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM13_Pos) /*!< 0x00000080 */
  20021. #define DBGMCU_APB1LFZ1_DBG_TIM13 DBGMCU_APB1LFZ1_DBG_TIM13_Msk
  20022. #define DBGMCU_APB1LFZ1_DBG_TIM14_Pos (8U)
  20023. #define DBGMCU_APB1LFZ1_DBG_TIM14_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_TIM14_Pos) /*!< 0x00000100 */
  20024. #define DBGMCU_APB1LFZ1_DBG_TIM14 DBGMCU_APB1LFZ1_DBG_TIM14_Msk
  20025. #define DBGMCU_APB1LFZ1_DBG_LPTIM1_Pos (9U)
  20026. #define DBGMCU_APB1LFZ1_DBG_LPTIM1_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_LPTIM1_Pos) /*!< 0x00000200 */
  20027. #define DBGMCU_APB1LFZ1_DBG_LPTIM1 DBGMCU_APB1LFZ1_DBG_LPTIM1_Msk
  20028. #define DBGMCU_APB1LFZ1_DBG_I2C1_Pos (21U)
  20029. #define DBGMCU_APB1LFZ1_DBG_I2C1_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_I2C1_Pos) /*!< 0x00200000 */
  20030. #define DBGMCU_APB1LFZ1_DBG_I2C1 DBGMCU_APB1LFZ1_DBG_I2C1_Msk
  20031. #define DBGMCU_APB1LFZ1_DBG_I2C2_Pos (22U)
  20032. #define DBGMCU_APB1LFZ1_DBG_I2C2_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_I2C2_Pos) /*!< 0x00400000 */
  20033. #define DBGMCU_APB1LFZ1_DBG_I2C2 DBGMCU_APB1LFZ1_DBG_I2C2_Msk
  20034. #define DBGMCU_APB1LFZ1_DBG_I2C3_Pos (23U)
  20035. #define DBGMCU_APB1LFZ1_DBG_I2C3_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_I2C3_Pos) /*!< 0x00800000 */
  20036. #define DBGMCU_APB1LFZ1_DBG_I2C3 DBGMCU_APB1LFZ1_DBG_I2C3_Msk
  20037. #define DBGMCU_APB1LFZ1_DBG_I2C5_Pos (25U)
  20038. #define DBGMCU_APB1LFZ1_DBG_I2C5_Msk (0x1UL << DBGMCU_APB1LFZ1_DBG_I2C5_Pos) /*!< 0x02000000 */
  20039. #define DBGMCU_APB1LFZ1_DBG_I2C5 DBGMCU_APB1LFZ1_DBG_I2C5_Msk
  20040. /******************** Bit definition for APB1HFZ1 register ************/
  20041. #define DBGMCU_APB1HFZ1_DBG_TIM23_Pos (24U)
  20042. #define DBGMCU_APB1HFZ1_DBG_TIM23_Msk (0x1UL << DBGMCU_APB1HFZ1_DBG_TIM23_Pos) /*!< 0x01000000 */
  20043. #define DBGMCU_APB1HFZ1_DBG_TIM23 DBGMCU_APB1HFZ1_DBG_TIM23_Msk
  20044. #define DBGMCU_APB1HFZ1_DBG_TIM24_Pos (24U)
  20045. #define DBGMCU_APB1HFZ1_DBG_TIM24_Msk (0x1UL << DBGMCU_APB1HFZ1_DBG_TIM24_Pos) /*!< 0x02000000 */
  20046. #define DBGMCU_APB1HFZ1_DBG_TIM24 DBGMCU_APB1HFZ1_DBG_TIM24_Msk
  20047. /******************** Bit definition for APB2FZ1 register ************/
  20048. #define DBGMCU_APB2FZ1_DBG_TIM1_Pos (0U)
  20049. #define DBGMCU_APB2FZ1_DBG_TIM1_Msk (0x1UL << DBGMCU_APB2FZ1_DBG_TIM1_Pos) /*!< 0x00000001 */
  20050. #define DBGMCU_APB2FZ1_DBG_TIM1 DBGMCU_APB2FZ1_DBG_TIM1_Msk
  20051. #define DBGMCU_APB2FZ1_DBG_TIM8_Pos (1U)
  20052. #define DBGMCU_APB2FZ1_DBG_TIM8_Msk (0x1UL << DBGMCU_APB2FZ1_DBG_TIM8_Pos) /*!< 0x00000002 */
  20053. #define DBGMCU_APB2FZ1_DBG_TIM8 DBGMCU_APB2FZ1_DBG_TIM8_Msk
  20054. #define DBGMCU_APB2FZ1_DBG_TIM15_Pos (16U)
  20055. #define DBGMCU_APB2FZ1_DBG_TIM15_Msk (0x1UL << DBGMCU_APB2FZ1_DBG_TIM15_Pos) /*!< 0x00010000 */
  20056. #define DBGMCU_APB2FZ1_DBG_TIM15 DBGMCU_APB2FZ1_DBG_TIM15_Msk
  20057. #define DBGMCU_APB2FZ1_DBG_TIM16_Pos (17U)
  20058. #define DBGMCU_APB2FZ1_DBG_TIM16_Msk (0x1UL << DBGMCU_APB2FZ1_DBG_TIM16_Pos) /*!< 0x00020000 */
  20059. #define DBGMCU_APB2FZ1_DBG_TIM16 DBGMCU_APB2FZ1_DBG_TIM16_Msk
  20060. #define DBGMCU_APB2FZ1_DBG_TIM17_Pos (18U)
  20061. #define DBGMCU_APB2FZ1_DBG_TIM17_Msk (0x1UL << DBGMCU_APB2FZ1_DBG_TIM17_Pos) /*!< 0x00040000 */
  20062. #define DBGMCU_APB2FZ1_DBG_TIM17 DBGMCU_APB2FZ1_DBG_TIM17_Msk
  20063. /******************** Bit definition for APB4FZ1 register ************/
  20064. #define DBGMCU_APB4FZ1_DBG_I2C4_Pos (7U)
  20065. #define DBGMCU_APB4FZ1_DBG_I2C4_Msk (0x1UL << DBGMCU_APB4FZ1_DBG_I2C4_Pos) /*!< 0x00000080 */
  20066. #define DBGMCU_APB4FZ1_DBG_I2C4 DBGMCU_APB4FZ1_DBG_I2C4_Msk
  20067. #define DBGMCU_APB4FZ1_DBG_LPTIM2_Pos (9U)
  20068. #define DBGMCU_APB4FZ1_DBG_LPTIM2_Msk (0x1UL << DBGMCU_APB4FZ1_DBG_LPTIM2_Pos) /*!< 0x00000200 */
  20069. #define DBGMCU_APB4FZ1_DBG_LPTIM2 DBGMCU_APB4FZ1_DBG_LPTIM2_Msk
  20070. #define DBGMCU_APB4FZ1_DBG_LPTIM3_Pos (10U)
  20071. #define DBGMCU_APB4FZ1_DBG_LPTIM3_Msk (0x1UL << DBGMCU_APB4FZ1_DBG_LPTIM3_Pos) /*!< 0x00000400 */
  20072. #define DBGMCU_APB4FZ1_DBG_LPTIM3 DBGMCU_APB4FZ1_DBG_LPTIM3_Msk
  20073. #define DBGMCU_APB4FZ1_DBG_LPTIM4_Pos (11U)
  20074. #define DBGMCU_APB4FZ1_DBG_LPTIM4_Msk (0x1UL << DBGMCU_APB4FZ1_DBG_LPTIM4_Pos) /*!< 0x00000800 */
  20075. #define DBGMCU_APB4FZ1_DBG_LPTIM4 DBGMCU_APB4FZ1_DBG_LPTIM4_Msk
  20076. #define DBGMCU_APB4FZ1_DBG_LPTIM5_Pos (12U)
  20077. #define DBGMCU_APB4FZ1_DBG_LPTIM5_Msk (0x1UL << DBGMCU_APB4FZ1_DBG_LPTIM5_Pos) /*!< 0x00001000 */
  20078. #define DBGMCU_APB4FZ1_DBG_LPTIM5 DBGMCU_APB4FZ1_DBG_LPTIM5_Msk
  20079. #define DBGMCU_APB4FZ1_DBG_RTC_Pos (16U)
  20080. #define DBGMCU_APB4FZ1_DBG_RTC_Msk (0x1UL << DBGMCU_APB4FZ1_DBG_RTC_Pos) /*!< 0x00010000 */
  20081. #define DBGMCU_APB4FZ1_DBG_RTC DBGMCU_APB4FZ1_DBG_RTC_Msk
  20082. #define DBGMCU_APB4FZ1_DBG_IWDG1_Pos (18U)
  20083. #define DBGMCU_APB4FZ1_DBG_IWDG1_Msk (0x1UL << DBGMCU_APB4FZ1_DBG_IWDG1_Pos) /*!< 0x00040000 */
  20084. #define DBGMCU_APB4FZ1_DBG_IWDG1 DBGMCU_APB4FZ1_DBG_IWDG1_Msk
  20085. /******************** Bit definition for DBGMCU_PIDR4 register ************/
  20086. #define DBGMCU_PIDR4_JEP106CON_Pos (0U)
  20087. #define DBGMCU_PIDR4_JEP106CON_Msk (0xFUL << DBGMCU_PIDR4_JEP106CON_Pos) /*!< 0x0000000F */
  20088. #define DBGMCU_PIDR4_JEP106CON DBGMCU_PIDR4_JEP106CON_Msk
  20089. #define DBGMCU_PIDR4_4KCOUNT_Pos (4U)
  20090. #define DBGMCU_PIDR4_4KCOUNT_Msk (0xFUL << DBGMCU_PIDR4_4KCOUNT_Pos) /*!< 0x000000F0 */
  20091. #define DBGMCU_PIDR4_4KCOUNT DBGMCU_PIDR4_4KCOUNT_Msk
  20092. /******************** Bit definition for DBGMCU_PIDR0 register ************/
  20093. #define DBGMCU_PIDR0_PARTNUM_Pos (0U)
  20094. #define DBGMCU_PIDR0_PARTNUM_Msk (0xFFUL << DBGMCU_PIDR0_PARTNUM_Pos) /*!< 0x000000FF */
  20095. #define DBGMCU_PIDR0_PARTNUM DBGMCU_PIDR0_PARTNUM_Msk
  20096. /******************** Bit definition for DBGMCU_PIDR1 register ************/
  20097. #define DBGMCU_PIDR1_PARTNUM_Pos (0U)
  20098. #define DBGMCU_PIDR1_PARTNUM_Msk (0xFUL << DBGMCU_PIDR1_PARTNUM_Pos) /*!< 0x0000000F */
  20099. #define DBGMCU_PIDR1_PARTNUM DBGMCU_PIDR1_PARTNUM_Msk
  20100. #define DBGMCU_PIDR1_JEP106ID_Pos (4U)
  20101. #define DBGMCU_PIDR1_JEP106ID_Msk (0xFUL << DBGMCU_PIDR1_JEP106ID_Pos) /*!< 0x000000F0 */
  20102. #define DBGMCU_PIDR1_JEP106ID DBGMCU_PIDR1_JEP106ID_Msk
  20103. /******************** Bit definition for DBGMCU_PIDR2 register ************/
  20104. #define DBGMCU_PIDR2_JEP106ID_Pos (0U)
  20105. #define DBGMCU_PIDR2_JEP106ID_Msk (0x7UL << DBGMCU_PIDR2_JEP106ID_Pos) /*!< 0x00000007 */
  20106. #define DBGMCU_PIDR2_JEP106ID DBGMCU_PIDR2_JEP106ID_Msk
  20107. #define DBGMCU_PIDR2_JEDEC_Pos (3U)
  20108. #define DBGMCU_PIDR2_JEDEC_Msk (0x1UL << DBGMCU_PIDR2_JEDEC_Pos) /*!< 0x00000008 */
  20109. #define DBGMCU_PIDR2_JEDEC DBGMCU_PIDR2_JEDEC_Msk
  20110. #define DBGMCU_PIDR2_REVISION_Pos (4U)
  20111. #define DBGMCU_PIDR2_REVISION_Msk (0xFUL << DBGMCU_PIDR2_REVISION_Pos) /*!< 0x000000F0 */
  20112. #define DBGMCU_PIDR2_REVISION DBGMCU_PIDR2_REVISION_Msk
  20113. /******************** Bit definition for DBGMCU_PIDR3 register ************/
  20114. #define DBGMCU_PIDR3_CMOD_Pos (0U)
  20115. #define DBGMCU_PIDR3_CMOD_Msk (0xFUL << DBGMCU_PIDR3_CMOD_Pos) /*!< 0x0000000F */
  20116. #define DBGMCU_PIDR3_CMOD DBGMCU_PIDR3_CMOD_Msk
  20117. #define DBGMCU_PIDR3_REVAND_Pos (4U)
  20118. #define DBGMCU_PIDR3_REVAND_Msk (0xFUL << DBGMCU_PIDR3_REVAND_Pos) /*!< 0x000000F0 */
  20119. #define DBGMCU_PIDR3_REVAND DBGMCU_PIDR3_REVAND_Msk
  20120. /******************** Bit definition for DBGMCU_CIDR0 register ************/
  20121. #define DBGMCU_CIR0_PREAMBLE_Pos (0U)
  20122. #define DBGMCU_CIR0_PREAMBLE_Msk (0xFFUL << DBGMCU_CIR0_PREAMBLE_Pos) /*!< 0x000000FF */
  20123. #define DBGMCU_CIR0_PREAMBLE DBGMCU_CIR0_PREAMBLE_Msk
  20124. /******************** Bit definition for DBGMCU_CIDR1 register ************/
  20125. #define DBGMCU_CIR1_PREAMBLE_Pos (0U)
  20126. #define DBGMCU_CIR1_PREAMBLE_Msk (0xFUL << DBGMCU_CIR1_PREAMBLE_Pos) /*!< 0x0000000F */
  20127. #define DBGMCU_CIR1_PREAMBLE DBGMCU_CIR1_PREAMBLE_Msk
  20128. #define DBGMCU_CIR1_CLASS_Pos (4U)
  20129. #define DBGMCU_CIR1_CLASS_Msk (0xFUL << DBGMCU_CIR1_CLASS_Pos) /*!< 0x000000F0 */
  20130. #define DBGMCU_CIR1_CLASS DBGMCU_CIR1_CLASS_Msk
  20131. /******************** Bit definition for DBGMCU_CIDR2 register ************/
  20132. #define DBGMCU_CIR2_PREAMBLE_Pos (0U)
  20133. #define DBGMCU_CIR2_PREAMBLE_Msk (0xFFUL << DBGMCU_CIR2_PREAMBLE_Pos) /*!< 0x000000FF */
  20134. #define DBGMCU_CIR2_PREAMBLE DBGMCU_CIR2_PREAMBLE_Msk
  20135. /******************** Bit definition for DBGMCU_CIDR3 register ************/
  20136. #define DBGMCU_CIR3_PREAMBLE_Pos (0U)
  20137. #define DBGMCU_CIR3_PREAMBLE_Msk (0xFFUL << DBGMCU_CIR3_PREAMBLE_Pos) /*!< 0x000000FF */
  20138. #define DBGMCU_CIR3_PREAMBLE DBGMCU_CIR3_PREAMBLE_Msk
  20139. /******************************************************************************/
  20140. /* */
  20141. /* RAM ECC monitoring */
  20142. /* */
  20143. /******************************************************************************/
  20144. /****************** Bit definition for RAMECC_IER register ******************/
  20145. #define RAMECC_IER_GECCDEBWIE_Pos (3U)
  20146. #define RAMECC_IER_GECCDEBWIE_Msk (0x1UL << RAMECC_IER_GECCDEBWIE_Pos) /*!< 0x00000008 */
  20147. #define RAMECC_IER_GECCDEBWIE RAMECC_IER_GECCDEBWIE_Msk /*!< Global ECC double error on byte write (BW) interrupt enable */
  20148. #define RAMECC_IER_GECCDEIE_Pos (2U)
  20149. #define RAMECC_IER_GECCDEIE_Msk (0x1UL << RAMECC_IER_GECCDEIE_Pos) /*!< 0x00000004 */
  20150. #define RAMECC_IER_GECCDEIE RAMECC_IER_GECCDEIE_Msk /*!< Global ECC double error interrupt enable */
  20151. #define RAMECC_IER_GECCSEIE_Pos (1U)
  20152. #define RAMECC_IER_GECCSEIE_Msk (0x1UL << RAMECC_IER_GECCSEIE_Pos) /*!< 0x00000002 */
  20153. #define RAMECC_IER_GECCSEIE RAMECC_IER_GECCSEIE_Msk /*!< Global ECC single error interrupt enable */
  20154. #define RAMECC_IER_GIE_Pos (0U)
  20155. #define RAMECC_IER_GIE_Msk (0x1UL << RAMECC_IER_GIE_Pos) /*!< 0x00000001 */
  20156. #define RAMECC_IER_GIE RAMECC_IER_GIE_Msk /*!< Global interrupt enable */
  20157. /******************* Bit definition for RAMECC_CR register ******************/
  20158. #define RAMECC_CR_ECCELEN_Pos (5U)
  20159. #define RAMECC_CR_ECCELEN_Msk (0x1UL << RAMECC_CR_ECCELEN_Pos) /*!< 0x00000020 */
  20160. #define RAMECC_CR_ECCELEN RAMECC_CR_ECCELEN_Msk /*!< ECC error latching enable */
  20161. #define RAMECC_CR_ECCDEBWIE_Pos (4U)
  20162. #define RAMECC_CR_ECCDEBWIE_Msk (0x1UL << RAMECC_CR_ECCDEBWIE_Pos) /*!< 0x00000010 */
  20163. #define RAMECC_CR_ECCDEBWIE RAMECC_CR_ECCDEBWIE_Msk /*!< ECC double error on byte write (BW) interrupt enable */
  20164. #define RAMECC_CR_ECCDEIE_Pos (3U)
  20165. #define RAMECC_CR_ECCDEIE_Msk (0x1UL << RAMECC_CR_ECCDEIE_Pos) /*!< 0x00000008 */
  20166. #define RAMECC_CR_ECCDEIE RAMECC_CR_ECCDEIE_Msk /*!< ECC double error interrupt enable */
  20167. #define RAMECC_CR_ECCSEIE_Pos (2U)
  20168. #define RAMECC_CR_ECCSEIE_Msk (0x1UL << RAMECC_CR_ECCSEIE_Pos) /*!< 0x00000004 */
  20169. #define RAMECC_CR_ECCSEIE RAMECC_CR_ECCSEIE_Msk /*!< ECC single error interrupt enable */
  20170. /******************* Bit definition for RAMECC_SR register ******************/
  20171. #define RAMECC_SR_DEBWDF_Pos (2U)
  20172. #define RAMECC_SR_DEBWDF_Msk (0x1UL << RAMECC_SR_DEBWDF_Pos) /*!< 0x00000004 */
  20173. #define RAMECC_SR_DEBWDF RAMECC_SR_DEBWDF_Msk /*!< ECC double error on byte write (BW) detected flag */
  20174. #define RAMECC_SR_DEDF_Pos (1U)
  20175. #define RAMECC_SR_DEDF_Msk (0x1UL << RAMECC_SR_DEDF_Pos) /*!< 0x00000002 */
  20176. #define RAMECC_SR_DEDF RAMECC_SR_DEDF_Msk /*!< ECC double error detected flag */
  20177. #define RAMECC_SR_SEDCF_Pos (0U)
  20178. #define RAMECC_SR_SEDCF_Msk (0x1UL << RAMECC_SR_SEDCF_Pos) /*!< 0x00000001 */
  20179. #define RAMECC_SR_SEDCF RAMECC_SR_SEDCF_Msk /*!< ECC single error detected and corrected flag */
  20180. /****************** Bit definition for RAMECC_FAR register ******************/
  20181. #define RAMECC_FAR_FADD_Pos (0U)
  20182. #define RAMECC_FAR_FADD_Msk (0xFFFFFFFFUL << RAMECC_FAR_FADD_Pos) /*!< 0xFFFFFFFF */
  20183. #define RAMECC_FAR_FADD RAMECC_FAR_FADD_Msk /*!< ECC error failing address */
  20184. /****************** Bit definition for RAMECC_FDRL register *****************/
  20185. #define RAMECC_FAR_FDATAL_Pos (0U)
  20186. #define RAMECC_FAR_FDATAL_Msk (0xFFFFFFFFUL << RAMECC_FAR_FDATAL_Pos)/*!< 0xFFFFFFFF */
  20187. #define RAMECC_FAR_FDATAL RAMECC_FAR_FDATAL_Msk /*!< ECC error failing address */
  20188. /****************** Bit definition for RAMECC_FDRH register *****************/
  20189. #define RAMECC_FAR_FDATAH_Pos (0U)
  20190. #define RAMECC_FAR_FDATAH_Msk (0xFFFFFFFFUL << RAMECC_FAR_FDATAH_Pos)/*!< 0xFFFFFFFF */
  20191. #define RAMECC_FAR_FDATAH RAMECC_FAR_FDATAH_Msk /* Failing data high (64-bit memory) */
  20192. /***************** Bit definition for RAMECC_FECR register ******************/
  20193. #define RAMECC_FECR_FEC_Pos (0U)
  20194. #define RAMECC_FECR_FEC_Msk (0xFFFFFFFFUL << RAMECC_FECR_FEC_Pos) /*!< 0xFFFFFFFF */
  20195. #define RAMECC_FECR_FEC RAMECC_FECR_FEC_Msk /*!< Failing error code */
  20196. /******************************************************************************/
  20197. /* */
  20198. /* MDIOS */
  20199. /* */
  20200. /******************************************************************************/
  20201. /******************** Bit definition for MDIOS_CR register *******************/
  20202. #define MDIOS_CR_EN_Pos (0U)
  20203. #define MDIOS_CR_EN_Msk (0x1UL << MDIOS_CR_EN_Pos) /*!< 0x00000001 */
  20204. #define MDIOS_CR_EN MDIOS_CR_EN_Msk /*!< MDIOS slave peripheral enable */
  20205. #define MDIOS_CR_WRIE_Pos (1U)
  20206. #define MDIOS_CR_WRIE_Msk (0x1UL << MDIOS_CR_WRIE_Pos) /*!< 0x00000002 */
  20207. #define MDIOS_CR_WRIE MDIOS_CR_WRIE_Msk /*!< MDIOS slave register write interrupt enable. */
  20208. #define MDIOS_CR_RDIE_Pos (2U)
  20209. #define MDIOS_CR_RDIE_Msk (0x1UL << MDIOS_CR_RDIE_Pos) /*!< 0x00000004 */
  20210. #define MDIOS_CR_RDIE MDIOS_CR_RDIE_Msk /*!< MDIOS slave register read interrupt enable. */
  20211. #define MDIOS_CR_EIE_Pos (3U)
  20212. #define MDIOS_CR_EIE_Msk (0x1UL << MDIOS_CR_EIE_Pos) /*!< 0x00000008 */
  20213. #define MDIOS_CR_EIE MDIOS_CR_EIE_Msk /*!< MDIOS slave register error interrupt enable. */
  20214. #define MDIOS_CR_DPC_Pos (7U)
  20215. #define MDIOS_CR_DPC_Msk (0x1UL << MDIOS_CR_DPC_Pos) /*!< 0x00000080 */
  20216. #define MDIOS_CR_DPC MDIOS_CR_DPC_Msk /*!< MDIOS slave disable preamble check. */
  20217. #define MDIOS_CR_PORT_ADDRESS_Pos (8U)
  20218. #define MDIOS_CR_PORT_ADDRESS_Msk (0x1FUL << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00001F00 */
  20219. #define MDIOS_CR_PORT_ADDRESS MDIOS_CR_PORT_ADDRESS_Msk /*!< MDIOS slave port address mask. */
  20220. #define MDIOS_CR_PORT_ADDRESS_0 (0x01UL << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000100 */
  20221. #define MDIOS_CR_PORT_ADDRESS_1 (0x02UL << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000200 */
  20222. #define MDIOS_CR_PORT_ADDRESS_2 (0x04UL << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000400 */
  20223. #define MDIOS_CR_PORT_ADDRESS_3 (0x08UL << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000800 */
  20224. #define MDIOS_CR_PORT_ADDRESS_4 (0x10UL << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00001000 */
  20225. /******************** Bit definition for MDIOS_SR register *******************/
  20226. #define MDIOS_SR_PERF_Pos (0U)
  20227. #define MDIOS_SR_PERF_Msk (0x1UL << MDIOS_SR_PERF_Pos) /*!< 0x00000001 */
  20228. #define MDIOS_SR_PERF MDIOS_SR_PERF_Msk /*!< MDIOS slave turnaround error flag*/
  20229. #define MDIOS_SR_SERF_Pos (1U)
  20230. #define MDIOS_SR_SERF_Msk (0x1UL << MDIOS_SR_SERF_Pos) /*!< 0x00000002 */
  20231. #define MDIOS_SR_SERF MDIOS_SR_SERF_Msk /*!< MDIOS slave start error flag */
  20232. #define MDIOS_SR_TERF_Pos (2U)
  20233. #define MDIOS_SR_TERF_Msk (0x1UL << MDIOS_SR_TERF_Pos) /*!< 0x00000004 */
  20234. #define MDIOS_SR_TERF MDIOS_SR_TERF_Msk /*!< MDIOS slave preamble error flag */
  20235. /******************** Bit definition for MDIOS_CLRFR register *******************/
  20236. #define MDIOS_SR_CPERF_Pos (0U)
  20237. #define MDIOS_SR_CPERF_Msk (0x1UL << MDIOS_SR_CPERF_Pos) /*!< 0x00000001 */
  20238. #define MDIOS_SR_CPERF MDIOS_SR_CPERF_Msk /*!< MDIOS slave Clear the turnaround error flag */
  20239. #define MDIOS_SR_CSERF_Pos (1U)
  20240. #define MDIOS_SR_CSERF_Msk (0x1UL << MDIOS_SR_CSERF_Pos) /*!< 0x00000002 */
  20241. #define MDIOS_SR_CSERF MDIOS_SR_CSERF_Msk /*!< MDIOS slave Clear the start error flag */
  20242. #define MDIOS_SR_CTERF_Pos (2U)
  20243. #define MDIOS_SR_CTERF_Msk (0x1UL << MDIOS_SR_CTERF_Pos) /*!< 0x00000004 */
  20244. #define MDIOS_SR_CTERF MDIOS_SR_CTERF_Msk /*!< MDIOS slave Clear the preamble error flag */
  20245. /******************************************************************************/
  20246. /* */
  20247. /* USB_OTG */
  20248. /* */
  20249. /******************************************************************************/
  20250. /******************** Bit definition forUSB_OTG_GOTGCTL register ********************/
  20251. #define USB_OTG_GOTGCTL_SRQSCS_Pos (0U)
  20252. #define USB_OTG_GOTGCTL_SRQSCS_Msk (0x1UL << USB_OTG_GOTGCTL_SRQSCS_Pos) /*!< 0x00000001 */
  20253. #define USB_OTG_GOTGCTL_SRQSCS USB_OTG_GOTGCTL_SRQSCS_Msk /*!< Session request success */
  20254. #define USB_OTG_GOTGCTL_SRQ_Pos (1U)
  20255. #define USB_OTG_GOTGCTL_SRQ_Msk (0x1UL << USB_OTG_GOTGCTL_SRQ_Pos) /*!< 0x00000002 */
  20256. #define USB_OTG_GOTGCTL_SRQ USB_OTG_GOTGCTL_SRQ_Msk /*!< Session request */
  20257. #define USB_OTG_GOTGCTL_VBVALOEN_Pos (2U)
  20258. #define USB_OTG_GOTGCTL_VBVALOEN_Msk (0x1UL << USB_OTG_GOTGCTL_VBVALOEN_Pos) /*!< 0x00000004 */
  20259. #define USB_OTG_GOTGCTL_VBVALOEN USB_OTG_GOTGCTL_VBVALOEN_Msk /*!< VBUS valid override enable */
  20260. #define USB_OTG_GOTGCTL_VBVALOVAL_Pos (3U)
  20261. #define USB_OTG_GOTGCTL_VBVALOVAL_Msk (0x1UL << USB_OTG_GOTGCTL_VBVALOVAL_Pos) /*!< 0x00000008 */
  20262. #define USB_OTG_GOTGCTL_VBVALOVAL USB_OTG_GOTGCTL_VBVALOVAL_Msk /*!< VBUS valid override value */
  20263. #define USB_OTG_GOTGCTL_AVALOEN_Pos (4U)
  20264. #define USB_OTG_GOTGCTL_AVALOEN_Msk (0x1UL << USB_OTG_GOTGCTL_AVALOEN_Pos) /*!< 0x00000010 */
  20265. #define USB_OTG_GOTGCTL_AVALOEN USB_OTG_GOTGCTL_AVALOEN_Msk /*!< A-peripheral session valid override enable */
  20266. #define USB_OTG_GOTGCTL_AVALOVAL_Pos (5U)
  20267. #define USB_OTG_GOTGCTL_AVALOVAL_Msk (0x1UL << USB_OTG_GOTGCTL_AVALOVAL_Pos) /*!< 0x00000020 */
  20268. #define USB_OTG_GOTGCTL_AVALOVAL USB_OTG_GOTGCTL_AVALOVAL_Msk /*!< A-peripheral session valid override value */
  20269. #define USB_OTG_GOTGCTL_BVALOEN_Pos (6U)
  20270. #define USB_OTG_GOTGCTL_BVALOEN_Msk (0x1UL << USB_OTG_GOTGCTL_BVALOEN_Pos) /*!< 0x00000040 */
  20271. #define USB_OTG_GOTGCTL_BVALOEN USB_OTG_GOTGCTL_BVALOEN_Msk /*!< B-peripheral session valid override enable */
  20272. #define USB_OTG_GOTGCTL_BVALOVAL_Pos (7U)
  20273. #define USB_OTG_GOTGCTL_BVALOVAL_Msk (0x1UL << USB_OTG_GOTGCTL_BVALOVAL_Pos) /*!< 0x00000080 */
  20274. #define USB_OTG_GOTGCTL_BVALOVAL USB_OTG_GOTGCTL_BVALOVAL_Msk /*!< B-peripheral session valid override value */
  20275. #define USB_OTG_GOTGCTL_HNGSCS_Pos (8U)
  20276. #define USB_OTG_GOTGCTL_HNGSCS_Msk (0x1UL << USB_OTG_GOTGCTL_HNGSCS_Pos) /*!< 0x00000100 */
  20277. #define USB_OTG_GOTGCTL_HNGSCS USB_OTG_GOTGCTL_HNGSCS_Msk /*!< Host set HNP enable */
  20278. #define USB_OTG_GOTGCTL_HNPRQ_Pos (9U)
  20279. #define USB_OTG_GOTGCTL_HNPRQ_Msk (0x1UL << USB_OTG_GOTGCTL_HNPRQ_Pos) /*!< 0x00000200 */
  20280. #define USB_OTG_GOTGCTL_HNPRQ USB_OTG_GOTGCTL_HNPRQ_Msk /*!< HNP request */
  20281. #define USB_OTG_GOTGCTL_HSHNPEN_Pos (10U)
  20282. #define USB_OTG_GOTGCTL_HSHNPEN_Msk (0x1UL << USB_OTG_GOTGCTL_HSHNPEN_Pos) /*!< 0x00000400 */
  20283. #define USB_OTG_GOTGCTL_HSHNPEN USB_OTG_GOTGCTL_HSHNPEN_Msk /*!< Host set HNP enable */
  20284. #define USB_OTG_GOTGCTL_DHNPEN_Pos (11U)
  20285. #define USB_OTG_GOTGCTL_DHNPEN_Msk (0x1UL << USB_OTG_GOTGCTL_DHNPEN_Pos) /*!< 0x00000800 */
  20286. #define USB_OTG_GOTGCTL_DHNPEN USB_OTG_GOTGCTL_DHNPEN_Msk /*!< Device HNP enabled */
  20287. #define USB_OTG_GOTGCTL_EHEN_Pos (12U)
  20288. #define USB_OTG_GOTGCTL_EHEN_Msk (0x1UL << USB_OTG_GOTGCTL_EHEN_Pos) /*!< 0x00001000 */
  20289. #define USB_OTG_GOTGCTL_EHEN USB_OTG_GOTGCTL_EHEN_Msk /*!< Embedded host enable */
  20290. #define USB_OTG_GOTGCTL_CIDSTS_Pos (16U)
  20291. #define USB_OTG_GOTGCTL_CIDSTS_Msk (0x1UL << USB_OTG_GOTGCTL_CIDSTS_Pos) /*!< 0x00010000 */
  20292. #define USB_OTG_GOTGCTL_CIDSTS USB_OTG_GOTGCTL_CIDSTS_Msk /*!< Connector ID status */
  20293. #define USB_OTG_GOTGCTL_DBCT_Pos (17U)
  20294. #define USB_OTG_GOTGCTL_DBCT_Msk (0x1UL << USB_OTG_GOTGCTL_DBCT_Pos) /*!< 0x00020000 */
  20295. #define USB_OTG_GOTGCTL_DBCT USB_OTG_GOTGCTL_DBCT_Msk /*!< Long/short debounce time */
  20296. #define USB_OTG_GOTGCTL_ASVLD_Pos (18U)
  20297. #define USB_OTG_GOTGCTL_ASVLD_Msk (0x1UL << USB_OTG_GOTGCTL_ASVLD_Pos) /*!< 0x00040000 */
  20298. #define USB_OTG_GOTGCTL_ASVLD USB_OTG_GOTGCTL_ASVLD_Msk /*!< A-session valid */
  20299. #define USB_OTG_GOTGCTL_BSESVLD_Pos (19U)
  20300. #define USB_OTG_GOTGCTL_BSESVLD_Msk (0x1UL << USB_OTG_GOTGCTL_BSESVLD_Pos) /*!< 0x00080000 */
  20301. #define USB_OTG_GOTGCTL_BSESVLD USB_OTG_GOTGCTL_BSESVLD_Msk /*!< B-session valid */
  20302. #define USB_OTG_GOTGCTL_OTGVER_Pos (20U)
  20303. #define USB_OTG_GOTGCTL_OTGVER_Msk (0x1UL << USB_OTG_GOTGCTL_OTGVER_Pos) /*!< 0x00100000 */
  20304. #define USB_OTG_GOTGCTL_OTGVER USB_OTG_GOTGCTL_OTGVER_Msk /*!< OTG version */
  20305. /******************** Bit definition forUSB_OTG_HCFG register ********************/
  20306. #define USB_OTG_HCFG_FSLSPCS_Pos (0U)
  20307. #define USB_OTG_HCFG_FSLSPCS_Msk (0x3UL << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000003 */
  20308. #define USB_OTG_HCFG_FSLSPCS USB_OTG_HCFG_FSLSPCS_Msk /*!< FS/LS PHY clock select */
  20309. #define USB_OTG_HCFG_FSLSPCS_0 (0x1UL << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000001 */
  20310. #define USB_OTG_HCFG_FSLSPCS_1 (0x2UL << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000002 */
  20311. #define USB_OTG_HCFG_FSLSS_Pos (2U)
  20312. #define USB_OTG_HCFG_FSLSS_Msk (0x1UL << USB_OTG_HCFG_FSLSS_Pos) /*!< 0x00000004 */
  20313. #define USB_OTG_HCFG_FSLSS USB_OTG_HCFG_FSLSS_Msk /*!< FS- and LS-only support */
  20314. /******************** Bit definition forUSB_OTG_DCFG register ********************/
  20315. #define USB_OTG_DCFG_DSPD_Pos (0U)
  20316. #define USB_OTG_DCFG_DSPD_Msk (0x3UL << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000003 */
  20317. #define USB_OTG_DCFG_DSPD USB_OTG_DCFG_DSPD_Msk /*!< Device speed */
  20318. #define USB_OTG_DCFG_DSPD_0 (0x1UL << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000001 */
  20319. #define USB_OTG_DCFG_DSPD_1 (0x2UL << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000002 */
  20320. #define USB_OTG_DCFG_NZLSOHSK_Pos (2U)
  20321. #define USB_OTG_DCFG_NZLSOHSK_Msk (0x1UL << USB_OTG_DCFG_NZLSOHSK_Pos) /*!< 0x00000004 */
  20322. #define USB_OTG_DCFG_NZLSOHSK USB_OTG_DCFG_NZLSOHSK_Msk /*!< Nonzero-length status OUT handshake */
  20323. #define USB_OTG_DCFG_DAD_Pos (4U)
  20324. #define USB_OTG_DCFG_DAD_Msk (0x7FUL << USB_OTG_DCFG_DAD_Pos) /*!< 0x000007F0 */
  20325. #define USB_OTG_DCFG_DAD USB_OTG_DCFG_DAD_Msk /*!< Device address */
  20326. #define USB_OTG_DCFG_DAD_0 (0x01UL << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000010 */
  20327. #define USB_OTG_DCFG_DAD_1 (0x02UL << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000020 */
  20328. #define USB_OTG_DCFG_DAD_2 (0x04UL << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000040 */
  20329. #define USB_OTG_DCFG_DAD_3 (0x08UL << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000080 */
  20330. #define USB_OTG_DCFG_DAD_4 (0x10UL << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000100 */
  20331. #define USB_OTG_DCFG_DAD_5 (0x20UL << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000200 */
  20332. #define USB_OTG_DCFG_DAD_6 (0x40UL << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000400 */
  20333. #define USB_OTG_DCFG_PFIVL_Pos (11U)
  20334. #define USB_OTG_DCFG_PFIVL_Msk (0x3UL << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00001800 */
  20335. #define USB_OTG_DCFG_PFIVL USB_OTG_DCFG_PFIVL_Msk /*!< Periodic (micro)frame interval */
  20336. #define USB_OTG_DCFG_PFIVL_0 (0x1UL << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00000800 */
  20337. #define USB_OTG_DCFG_PFIVL_1 (0x2UL << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00001000 */
  20338. #define USB_OTG_DCFG_PERSCHIVL_Pos (24U)
  20339. #define USB_OTG_DCFG_PERSCHIVL_Msk (0x3UL << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x03000000 */
  20340. #define USB_OTG_DCFG_PERSCHIVL USB_OTG_DCFG_PERSCHIVL_Msk /*!< Periodic scheduling interval */
  20341. #define USB_OTG_DCFG_PERSCHIVL_0 (0x1UL << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x01000000 */
  20342. #define USB_OTG_DCFG_PERSCHIVL_1 (0x2UL << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x02000000 */
  20343. /******************** Bit definition forUSB_OTG_PCGCR register ********************/
  20344. #define USB_OTG_PCGCR_STPPCLK_Pos (0U)
  20345. #define USB_OTG_PCGCR_STPPCLK_Msk (0x1UL << USB_OTG_PCGCR_STPPCLK_Pos) /*!< 0x00000001 */
  20346. #define USB_OTG_PCGCR_STPPCLK USB_OTG_PCGCR_STPPCLK_Msk /*!< Stop PHY clock */
  20347. #define USB_OTG_PCGCR_GATEHCLK_Pos (1U)
  20348. #define USB_OTG_PCGCR_GATEHCLK_Msk (0x1UL << USB_OTG_PCGCR_GATEHCLK_Pos) /*!< 0x00000002 */
  20349. #define USB_OTG_PCGCR_GATEHCLK USB_OTG_PCGCR_GATEHCLK_Msk /*!< Gate HCLK */
  20350. #define USB_OTG_PCGCR_PHYSUSP_Pos (4U)
  20351. #define USB_OTG_PCGCR_PHYSUSP_Msk (0x1UL << USB_OTG_PCGCR_PHYSUSP_Pos) /*!< 0x00000010 */
  20352. #define USB_OTG_PCGCR_PHYSUSP USB_OTG_PCGCR_PHYSUSP_Msk /*!< PHY suspended */
  20353. /******************** Bit definition forUSB_OTG_GOTGINT register ********************/
  20354. #define USB_OTG_GOTGINT_SEDET_Pos (2U)
  20355. #define USB_OTG_GOTGINT_SEDET_Msk (0x1UL << USB_OTG_GOTGINT_SEDET_Pos) /*!< 0x00000004 */
  20356. #define USB_OTG_GOTGINT_SEDET USB_OTG_GOTGINT_SEDET_Msk /*!< Session end detected */
  20357. #define USB_OTG_GOTGINT_SRSSCHG_Pos (8U)
  20358. #define USB_OTG_GOTGINT_SRSSCHG_Msk (0x1UL << USB_OTG_GOTGINT_SRSSCHG_Pos) /*!< 0x00000100 */
  20359. #define USB_OTG_GOTGINT_SRSSCHG USB_OTG_GOTGINT_SRSSCHG_Msk /*!< Session request success status change */
  20360. #define USB_OTG_GOTGINT_HNSSCHG_Pos (9U)
  20361. #define USB_OTG_GOTGINT_HNSSCHG_Msk (0x1UL << USB_OTG_GOTGINT_HNSSCHG_Pos) /*!< 0x00000200 */
  20362. #define USB_OTG_GOTGINT_HNSSCHG USB_OTG_GOTGINT_HNSSCHG_Msk /*!< Host negotiation success status change */
  20363. #define USB_OTG_GOTGINT_HNGDET_Pos (17U)
  20364. #define USB_OTG_GOTGINT_HNGDET_Msk (0x1UL << USB_OTG_GOTGINT_HNGDET_Pos) /*!< 0x00020000 */
  20365. #define USB_OTG_GOTGINT_HNGDET USB_OTG_GOTGINT_HNGDET_Msk /*!< Host negotiation detected */
  20366. #define USB_OTG_GOTGINT_ADTOCHG_Pos (18U)
  20367. #define USB_OTG_GOTGINT_ADTOCHG_Msk (0x1UL << USB_OTG_GOTGINT_ADTOCHG_Pos) /*!< 0x00040000 */
  20368. #define USB_OTG_GOTGINT_ADTOCHG USB_OTG_GOTGINT_ADTOCHG_Msk /*!< A-device timeout change */
  20369. #define USB_OTG_GOTGINT_DBCDNE_Pos (19U)
  20370. #define USB_OTG_GOTGINT_DBCDNE_Msk (0x1UL << USB_OTG_GOTGINT_DBCDNE_Pos) /*!< 0x00080000 */
  20371. #define USB_OTG_GOTGINT_DBCDNE USB_OTG_GOTGINT_DBCDNE_Msk /*!< Debounce done */
  20372. /******************** Bit definition forUSB_OTG_DCTL register ********************/
  20373. #define USB_OTG_DCTL_RWUSIG_Pos (0U)
  20374. #define USB_OTG_DCTL_RWUSIG_Msk (0x1UL << USB_OTG_DCTL_RWUSIG_Pos) /*!< 0x00000001 */
  20375. #define USB_OTG_DCTL_RWUSIG USB_OTG_DCTL_RWUSIG_Msk /*!< Remote wakeup signaling */
  20376. #define USB_OTG_DCTL_SDIS_Pos (1U)
  20377. #define USB_OTG_DCTL_SDIS_Msk (0x1UL << USB_OTG_DCTL_SDIS_Pos) /*!< 0x00000002 */
  20378. #define USB_OTG_DCTL_SDIS USB_OTG_DCTL_SDIS_Msk /*!< Soft disconnect */
  20379. #define USB_OTG_DCTL_GINSTS_Pos (2U)
  20380. #define USB_OTG_DCTL_GINSTS_Msk (0x1UL << USB_OTG_DCTL_GINSTS_Pos) /*!< 0x00000004 */
  20381. #define USB_OTG_DCTL_GINSTS USB_OTG_DCTL_GINSTS_Msk /*!< Global IN NAK status */
  20382. #define USB_OTG_DCTL_GONSTS_Pos (3U)
  20383. #define USB_OTG_DCTL_GONSTS_Msk (0x1UL << USB_OTG_DCTL_GONSTS_Pos) /*!< 0x00000008 */
  20384. #define USB_OTG_DCTL_GONSTS USB_OTG_DCTL_GONSTS_Msk /*!< Global OUT NAK status */
  20385. #define USB_OTG_DCTL_TCTL_Pos (4U)
  20386. #define USB_OTG_DCTL_TCTL_Msk (0x7UL << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000070 */
  20387. #define USB_OTG_DCTL_TCTL USB_OTG_DCTL_TCTL_Msk /*!< Test control */
  20388. #define USB_OTG_DCTL_TCTL_0 (0x1UL << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000010 */
  20389. #define USB_OTG_DCTL_TCTL_1 (0x2UL << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000020 */
  20390. #define USB_OTG_DCTL_TCTL_2 (0x4UL << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000040 */
  20391. #define USB_OTG_DCTL_SGINAK_Pos (7U)
  20392. #define USB_OTG_DCTL_SGINAK_Msk (0x1UL << USB_OTG_DCTL_SGINAK_Pos) /*!< 0x00000080 */
  20393. #define USB_OTG_DCTL_SGINAK USB_OTG_DCTL_SGINAK_Msk /*!< Set global IN NAK */
  20394. #define USB_OTG_DCTL_CGINAK_Pos (8U)
  20395. #define USB_OTG_DCTL_CGINAK_Msk (0x1UL << USB_OTG_DCTL_CGINAK_Pos) /*!< 0x00000100 */
  20396. #define USB_OTG_DCTL_CGINAK USB_OTG_DCTL_CGINAK_Msk /*!< Clear global IN NAK */
  20397. #define USB_OTG_DCTL_SGONAK_Pos (9U)
  20398. #define USB_OTG_DCTL_SGONAK_Msk (0x1UL << USB_OTG_DCTL_SGONAK_Pos) /*!< 0x00000200 */
  20399. #define USB_OTG_DCTL_SGONAK USB_OTG_DCTL_SGONAK_Msk /*!< Set global OUT NAK */
  20400. #define USB_OTG_DCTL_CGONAK_Pos (10U)
  20401. #define USB_OTG_DCTL_CGONAK_Msk (0x1UL << USB_OTG_DCTL_CGONAK_Pos) /*!< 0x00000400 */
  20402. #define USB_OTG_DCTL_CGONAK USB_OTG_DCTL_CGONAK_Msk /*!< Clear global OUT NAK */
  20403. #define USB_OTG_DCTL_POPRGDNE_Pos (11U)
  20404. #define USB_OTG_DCTL_POPRGDNE_Msk (0x1UL << USB_OTG_DCTL_POPRGDNE_Pos) /*!< 0x00000800 */
  20405. #define USB_OTG_DCTL_POPRGDNE USB_OTG_DCTL_POPRGDNE_Msk /*!< Power-on programming done */
  20406. /******************** Bit definition forUSB_OTG_HFIR register ********************/
  20407. #define USB_OTG_HFIR_FRIVL_Pos (0U)
  20408. #define USB_OTG_HFIR_FRIVL_Msk (0xFFFFUL << USB_OTG_HFIR_FRIVL_Pos) /*!< 0x0000FFFF */
  20409. #define USB_OTG_HFIR_FRIVL USB_OTG_HFIR_FRIVL_Msk /*!< Frame interval */
  20410. /******************** Bit definition forUSB_OTG_HFNUM register ********************/
  20411. #define USB_OTG_HFNUM_FRNUM_Pos (0U)
  20412. #define USB_OTG_HFNUM_FRNUM_Msk (0xFFFFUL << USB_OTG_HFNUM_FRNUM_Pos) /*!< 0x0000FFFF */
  20413. #define USB_OTG_HFNUM_FRNUM USB_OTG_HFNUM_FRNUM_Msk /*!< Frame number */
  20414. #define USB_OTG_HFNUM_FTREM_Pos (16U)
  20415. #define USB_OTG_HFNUM_FTREM_Msk (0xFFFFUL << USB_OTG_HFNUM_FTREM_Pos) /*!< 0xFFFF0000 */
  20416. #define USB_OTG_HFNUM_FTREM USB_OTG_HFNUM_FTREM_Msk /*!< Frame time remaining */
  20417. /******************** Bit definition forUSB_OTG_DSTS register ********************/
  20418. #define USB_OTG_DSTS_SUSPSTS_Pos (0U)
  20419. #define USB_OTG_DSTS_SUSPSTS_Msk (0x1UL << USB_OTG_DSTS_SUSPSTS_Pos) /*!< 0x00000001 */
  20420. #define USB_OTG_DSTS_SUSPSTS USB_OTG_DSTS_SUSPSTS_Msk /*!< Suspend status */
  20421. #define USB_OTG_DSTS_ENUMSPD_Pos (1U)
  20422. #define USB_OTG_DSTS_ENUMSPD_Msk (0x3UL << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000006 */
  20423. #define USB_OTG_DSTS_ENUMSPD USB_OTG_DSTS_ENUMSPD_Msk /*!< Enumerated speed */
  20424. #define USB_OTG_DSTS_ENUMSPD_0 (0x1UL << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000002 */
  20425. #define USB_OTG_DSTS_ENUMSPD_1 (0x2UL << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000004 */
  20426. #define USB_OTG_DSTS_EERR_Pos (3U)
  20427. #define USB_OTG_DSTS_EERR_Msk (0x1UL << USB_OTG_DSTS_EERR_Pos) /*!< 0x00000008 */
  20428. #define USB_OTG_DSTS_EERR USB_OTG_DSTS_EERR_Msk /*!< Erratic error */
  20429. #define USB_OTG_DSTS_FNSOF_Pos (8U)
  20430. #define USB_OTG_DSTS_FNSOF_Msk (0x3FFFUL << USB_OTG_DSTS_FNSOF_Pos) /*!< 0x003FFF00 */
  20431. #define USB_OTG_DSTS_FNSOF USB_OTG_DSTS_FNSOF_Msk /*!< Frame number of the received SOF */
  20432. /******************** Bit definition forUSB_OTG_GAHBCFG register ********************/
  20433. #define USB_OTG_GAHBCFG_GINT_Pos (0U)
  20434. #define USB_OTG_GAHBCFG_GINT_Msk (0x1UL << USB_OTG_GAHBCFG_GINT_Pos) /*!< 0x00000001 */
  20435. #define USB_OTG_GAHBCFG_GINT USB_OTG_GAHBCFG_GINT_Msk /*!< Global interrupt mask */
  20436. #define USB_OTG_GAHBCFG_HBSTLEN_Pos (1U)
  20437. #define USB_OTG_GAHBCFG_HBSTLEN_Msk (0xFUL << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x0000001E */
  20438. #define USB_OTG_GAHBCFG_HBSTLEN USB_OTG_GAHBCFG_HBSTLEN_Msk /*!< Burst length/type */
  20439. #define USB_OTG_GAHBCFG_HBSTLEN_0 (0x0UL << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< Single */
  20440. #define USB_OTG_GAHBCFG_HBSTLEN_1 (0x1UL << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< INCR */
  20441. #define USB_OTG_GAHBCFG_HBSTLEN_2 (0x3UL << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< INCR4 */
  20442. #define USB_OTG_GAHBCFG_HBSTLEN_3 (0x5UL << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< INCR8 */
  20443. #define USB_OTG_GAHBCFG_HBSTLEN_4 (0x7UL << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< INCR16 */
  20444. #define USB_OTG_GAHBCFG_DMAEN_Pos (5U)
  20445. #define USB_OTG_GAHBCFG_DMAEN_Msk (0x1UL << USB_OTG_GAHBCFG_DMAEN_Pos) /*!< 0x00000020 */
  20446. #define USB_OTG_GAHBCFG_DMAEN USB_OTG_GAHBCFG_DMAEN_Msk /*!< DMA enable */
  20447. #define USB_OTG_GAHBCFG_TXFELVL_Pos (7U)
  20448. #define USB_OTG_GAHBCFG_TXFELVL_Msk (0x1UL << USB_OTG_GAHBCFG_TXFELVL_Pos) /*!< 0x00000080 */
  20449. #define USB_OTG_GAHBCFG_TXFELVL USB_OTG_GAHBCFG_TXFELVL_Msk /*!< TxFIFO empty level */
  20450. #define USB_OTG_GAHBCFG_PTXFELVL_Pos (8U)
  20451. #define USB_OTG_GAHBCFG_PTXFELVL_Msk (0x1UL << USB_OTG_GAHBCFG_PTXFELVL_Pos) /*!< 0x00000100 */
  20452. #define USB_OTG_GAHBCFG_PTXFELVL USB_OTG_GAHBCFG_PTXFELVL_Msk /*!< Periodic TxFIFO empty level */
  20453. /******************** Bit definition forUSB_OTG_GUSBCFG register ********************/
  20454. #define USB_OTG_GUSBCFG_TOCAL_Pos (0U)
  20455. #define USB_OTG_GUSBCFG_TOCAL_Msk (0x7UL << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000007 */
  20456. #define USB_OTG_GUSBCFG_TOCAL USB_OTG_GUSBCFG_TOCAL_Msk /*!< FS timeout calibration */
  20457. #define USB_OTG_GUSBCFG_TOCAL_0 (0x1UL << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000001 */
  20458. #define USB_OTG_GUSBCFG_TOCAL_1 (0x2UL << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000002 */
  20459. #define USB_OTG_GUSBCFG_TOCAL_2 (0x4UL << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000004 */
  20460. #define USB_OTG_GUSBCFG_PHYSEL_Pos (6U)
  20461. #define USB_OTG_GUSBCFG_PHYSEL_Msk (0x1UL << USB_OTG_GUSBCFG_PHYSEL_Pos) /*!< 0x00000040 */
  20462. #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 */
  20463. #define USB_OTG_GUSBCFG_SRPCAP_Pos (8U)
  20464. #define USB_OTG_GUSBCFG_SRPCAP_Msk (0x1UL << USB_OTG_GUSBCFG_SRPCAP_Pos) /*!< 0x00000100 */
  20465. #define USB_OTG_GUSBCFG_SRPCAP USB_OTG_GUSBCFG_SRPCAP_Msk /*!< SRP-capable */
  20466. #define USB_OTG_GUSBCFG_HNPCAP_Pos (9U)
  20467. #define USB_OTG_GUSBCFG_HNPCAP_Msk (0x1UL << USB_OTG_GUSBCFG_HNPCAP_Pos) /*!< 0x00000200 */
  20468. #define USB_OTG_GUSBCFG_HNPCAP USB_OTG_GUSBCFG_HNPCAP_Msk /*!< HNP-capable */
  20469. #define USB_OTG_GUSBCFG_TRDT_Pos (10U)
  20470. #define USB_OTG_GUSBCFG_TRDT_Msk (0xFUL << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00003C00 */
  20471. #define USB_OTG_GUSBCFG_TRDT USB_OTG_GUSBCFG_TRDT_Msk /*!< USB turnaround time */
  20472. #define USB_OTG_GUSBCFG_TRDT_0 (0x1UL << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00000400 */
  20473. #define USB_OTG_GUSBCFG_TRDT_1 (0x2UL << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00000800 */
  20474. #define USB_OTG_GUSBCFG_TRDT_2 (0x4UL << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00001000 */
  20475. #define USB_OTG_GUSBCFG_TRDT_3 (0x8UL << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00002000 */
  20476. #define USB_OTG_GUSBCFG_PHYLPCS_Pos (15U)
  20477. #define USB_OTG_GUSBCFG_PHYLPCS_Msk (0x1UL << USB_OTG_GUSBCFG_PHYLPCS_Pos) /*!< 0x00008000 */
  20478. #define USB_OTG_GUSBCFG_PHYLPCS USB_OTG_GUSBCFG_PHYLPCS_Msk /*!< PHY Low-power clock select */
  20479. #define USB_OTG_GUSBCFG_ULPIFSLS_Pos (17U)
  20480. #define USB_OTG_GUSBCFG_ULPIFSLS_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIFSLS_Pos) /*!< 0x00020000 */
  20481. #define USB_OTG_GUSBCFG_ULPIFSLS USB_OTG_GUSBCFG_ULPIFSLS_Msk /*!< ULPI FS/LS select */
  20482. #define USB_OTG_GUSBCFG_ULPIAR_Pos (18U)
  20483. #define USB_OTG_GUSBCFG_ULPIAR_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIAR_Pos) /*!< 0x00040000 */
  20484. #define USB_OTG_GUSBCFG_ULPIAR USB_OTG_GUSBCFG_ULPIAR_Msk /*!< ULPI Auto-resume */
  20485. #define USB_OTG_GUSBCFG_ULPICSM_Pos (19U)
  20486. #define USB_OTG_GUSBCFG_ULPICSM_Msk (0x1UL << USB_OTG_GUSBCFG_ULPICSM_Pos) /*!< 0x00080000 */
  20487. #define USB_OTG_GUSBCFG_ULPICSM USB_OTG_GUSBCFG_ULPICSM_Msk /*!< ULPI Clock SuspendM */
  20488. #define USB_OTG_GUSBCFG_ULPIEVBUSD_Pos (20U)
  20489. #define USB_OTG_GUSBCFG_ULPIEVBUSD_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIEVBUSD_Pos) /*!< 0x00100000 */
  20490. #define USB_OTG_GUSBCFG_ULPIEVBUSD USB_OTG_GUSBCFG_ULPIEVBUSD_Msk /*!< ULPI External VBUS Drive */
  20491. #define USB_OTG_GUSBCFG_ULPIEVBUSI_Pos (21U)
  20492. #define USB_OTG_GUSBCFG_ULPIEVBUSI_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIEVBUSI_Pos) /*!< 0x00200000 */
  20493. #define USB_OTG_GUSBCFG_ULPIEVBUSI USB_OTG_GUSBCFG_ULPIEVBUSI_Msk /*!< ULPI external VBUS indicator */
  20494. #define USB_OTG_GUSBCFG_TSDPS_Pos (22U)
  20495. #define USB_OTG_GUSBCFG_TSDPS_Msk (0x1UL << USB_OTG_GUSBCFG_TSDPS_Pos) /*!< 0x00400000 */
  20496. #define USB_OTG_GUSBCFG_TSDPS USB_OTG_GUSBCFG_TSDPS_Msk /*!< TermSel DLine pulsing selection */
  20497. #define USB_OTG_GUSBCFG_PCCI_Pos (23U)
  20498. #define USB_OTG_GUSBCFG_PCCI_Msk (0x1UL << USB_OTG_GUSBCFG_PCCI_Pos) /*!< 0x00800000 */
  20499. #define USB_OTG_GUSBCFG_PCCI USB_OTG_GUSBCFG_PCCI_Msk /*!< Indicator complement */
  20500. #define USB_OTG_GUSBCFG_PTCI_Pos (24U)
  20501. #define USB_OTG_GUSBCFG_PTCI_Msk (0x1UL << USB_OTG_GUSBCFG_PTCI_Pos) /*!< 0x01000000 */
  20502. #define USB_OTG_GUSBCFG_PTCI USB_OTG_GUSBCFG_PTCI_Msk /*!< Indicator pass through */
  20503. #define USB_OTG_GUSBCFG_ULPIIPD_Pos (25U)
  20504. #define USB_OTG_GUSBCFG_ULPIIPD_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIIPD_Pos) /*!< 0x02000000 */
  20505. #define USB_OTG_GUSBCFG_ULPIIPD USB_OTG_GUSBCFG_ULPIIPD_Msk /*!< ULPI interface protect disable */
  20506. #define USB_OTG_GUSBCFG_FHMOD_Pos (29U)
  20507. #define USB_OTG_GUSBCFG_FHMOD_Msk (0x1UL << USB_OTG_GUSBCFG_FHMOD_Pos) /*!< 0x20000000 */
  20508. #define USB_OTG_GUSBCFG_FHMOD USB_OTG_GUSBCFG_FHMOD_Msk /*!< Forced host mode */
  20509. #define USB_OTG_GUSBCFG_FDMOD_Pos (30U)
  20510. #define USB_OTG_GUSBCFG_FDMOD_Msk (0x1UL << USB_OTG_GUSBCFG_FDMOD_Pos) /*!< 0x40000000 */
  20511. #define USB_OTG_GUSBCFG_FDMOD USB_OTG_GUSBCFG_FDMOD_Msk /*!< Forced peripheral mode */
  20512. #define USB_OTG_GUSBCFG_CTXPKT_Pos (31U)
  20513. #define USB_OTG_GUSBCFG_CTXPKT_Msk (0x1UL << USB_OTG_GUSBCFG_CTXPKT_Pos) /*!< 0x80000000 */
  20514. #define USB_OTG_GUSBCFG_CTXPKT USB_OTG_GUSBCFG_CTXPKT_Msk /*!< Corrupt Tx packet */
  20515. /******************** Bit definition forUSB_OTG_GRSTCTL register ********************/
  20516. #define USB_OTG_GRSTCTL_CSRST_Pos (0U)
  20517. #define USB_OTG_GRSTCTL_CSRST_Msk (0x1UL << USB_OTG_GRSTCTL_CSRST_Pos) /*!< 0x00000001 */
  20518. #define USB_OTG_GRSTCTL_CSRST USB_OTG_GRSTCTL_CSRST_Msk /*!< Core soft reset */
  20519. #define USB_OTG_GRSTCTL_HSRST_Pos (1U)
  20520. #define USB_OTG_GRSTCTL_HSRST_Msk (0x1UL << USB_OTG_GRSTCTL_HSRST_Pos) /*!< 0x00000002 */
  20521. #define USB_OTG_GRSTCTL_HSRST USB_OTG_GRSTCTL_HSRST_Msk /*!< HCLK soft reset */
  20522. #define USB_OTG_GRSTCTL_FCRST_Pos (2U)
  20523. #define USB_OTG_GRSTCTL_FCRST_Msk (0x1UL << USB_OTG_GRSTCTL_FCRST_Pos) /*!< 0x00000004 */
  20524. #define USB_OTG_GRSTCTL_FCRST USB_OTG_GRSTCTL_FCRST_Msk /*!< Host frame counter reset */
  20525. #define USB_OTG_GRSTCTL_RXFFLSH_Pos (4U)
  20526. #define USB_OTG_GRSTCTL_RXFFLSH_Msk (0x1UL << USB_OTG_GRSTCTL_RXFFLSH_Pos) /*!< 0x00000010 */
  20527. #define USB_OTG_GRSTCTL_RXFFLSH USB_OTG_GRSTCTL_RXFFLSH_Msk /*!< RxFIFO flush */
  20528. #define USB_OTG_GRSTCTL_TXFFLSH_Pos (5U)
  20529. #define USB_OTG_GRSTCTL_TXFFLSH_Msk (0x1UL << USB_OTG_GRSTCTL_TXFFLSH_Pos) /*!< 0x00000020 */
  20530. #define USB_OTG_GRSTCTL_TXFFLSH USB_OTG_GRSTCTL_TXFFLSH_Msk /*!< TxFIFO flush */
  20531. #define USB_OTG_GRSTCTL_TXFNUM_Pos (6U)
  20532. #define USB_OTG_GRSTCTL_TXFNUM_Msk (0x1FUL << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x000007C0 */
  20533. #define USB_OTG_GRSTCTL_TXFNUM USB_OTG_GRSTCTL_TXFNUM_Msk /*!< TxFIFO number */
  20534. #define USB_OTG_GRSTCTL_TXFNUM_0 (0x01UL << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000040 */
  20535. #define USB_OTG_GRSTCTL_TXFNUM_1 (0x02UL << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000080 */
  20536. #define USB_OTG_GRSTCTL_TXFNUM_2 (0x04UL << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000100 */
  20537. #define USB_OTG_GRSTCTL_TXFNUM_3 (0x08UL << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000200 */
  20538. #define USB_OTG_GRSTCTL_TXFNUM_4 (0x10UL << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000400 */
  20539. #define USB_OTG_GRSTCTL_DMAREQ_Pos (30U)
  20540. #define USB_OTG_GRSTCTL_DMAREQ_Msk (0x1UL << USB_OTG_GRSTCTL_DMAREQ_Pos) /*!< 0x40000000 */
  20541. #define USB_OTG_GRSTCTL_DMAREQ USB_OTG_GRSTCTL_DMAREQ_Msk /*!< DMA request signal */
  20542. #define USB_OTG_GRSTCTL_AHBIDL_Pos (31U)
  20543. #define USB_OTG_GRSTCTL_AHBIDL_Msk (0x1UL << USB_OTG_GRSTCTL_AHBIDL_Pos) /*!< 0x80000000 */
  20544. #define USB_OTG_GRSTCTL_AHBIDL USB_OTG_GRSTCTL_AHBIDL_Msk /*!< AHB master idle */
  20545. /******************** Bit definition forUSB_OTG_DIEPMSK register ********************/
  20546. #define USB_OTG_DIEPMSK_XFRCM_Pos (0U)
  20547. #define USB_OTG_DIEPMSK_XFRCM_Msk (0x1UL << USB_OTG_DIEPMSK_XFRCM_Pos) /*!< 0x00000001 */
  20548. #define USB_OTG_DIEPMSK_XFRCM USB_OTG_DIEPMSK_XFRCM_Msk /*!< Transfer completed interrupt mask */
  20549. #define USB_OTG_DIEPMSK_EPDM_Pos (1U)
  20550. #define USB_OTG_DIEPMSK_EPDM_Msk (0x1UL << USB_OTG_DIEPMSK_EPDM_Pos) /*!< 0x00000002 */
  20551. #define USB_OTG_DIEPMSK_EPDM USB_OTG_DIEPMSK_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  20552. #define USB_OTG_DIEPMSK_TOM_Pos (3U)
  20553. #define USB_OTG_DIEPMSK_TOM_Msk (0x1UL << USB_OTG_DIEPMSK_TOM_Pos) /*!< 0x00000008 */
  20554. #define USB_OTG_DIEPMSK_TOM USB_OTG_DIEPMSK_TOM_Msk /*!< Timeout condition mask (nonisochronous endpoints) */
  20555. #define USB_OTG_DIEPMSK_ITTXFEMSK_Pos (4U)
  20556. #define USB_OTG_DIEPMSK_ITTXFEMSK_Msk (0x1UL << USB_OTG_DIEPMSK_ITTXFEMSK_Pos) /*!< 0x00000010 */
  20557. #define USB_OTG_DIEPMSK_ITTXFEMSK USB_OTG_DIEPMSK_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  20558. #define USB_OTG_DIEPMSK_INEPNMM_Pos (5U)
  20559. #define USB_OTG_DIEPMSK_INEPNMM_Msk (0x1UL << USB_OTG_DIEPMSK_INEPNMM_Pos) /*!< 0x00000020 */
  20560. #define USB_OTG_DIEPMSK_INEPNMM USB_OTG_DIEPMSK_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  20561. #define USB_OTG_DIEPMSK_INEPNEM_Pos (6U)
  20562. #define USB_OTG_DIEPMSK_INEPNEM_Msk (0x1UL << USB_OTG_DIEPMSK_INEPNEM_Pos) /*!< 0x00000040 */
  20563. #define USB_OTG_DIEPMSK_INEPNEM USB_OTG_DIEPMSK_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  20564. #define USB_OTG_DIEPMSK_TXFURM_Pos (8U)
  20565. #define USB_OTG_DIEPMSK_TXFURM_Msk (0x1UL << USB_OTG_DIEPMSK_TXFURM_Pos) /*!< 0x00000100 */
  20566. #define USB_OTG_DIEPMSK_TXFURM USB_OTG_DIEPMSK_TXFURM_Msk /*!< FIFO underrun mask */
  20567. #define USB_OTG_DIEPMSK_BIM_Pos (9U)
  20568. #define USB_OTG_DIEPMSK_BIM_Msk (0x1UL << USB_OTG_DIEPMSK_BIM_Pos) /*!< 0x00000200 */
  20569. #define USB_OTG_DIEPMSK_BIM USB_OTG_DIEPMSK_BIM_Msk /*!< BNA interrupt mask */
  20570. /******************** Bit definition forUSB_OTG_HPTXSTS register ********************/
  20571. #define USB_OTG_HPTXSTS_PTXFSAVL_Pos (0U)
  20572. #define USB_OTG_HPTXSTS_PTXFSAVL_Msk (0xFFFFUL << USB_OTG_HPTXSTS_PTXFSAVL_Pos) /*!< 0x0000FFFF */
  20573. #define USB_OTG_HPTXSTS_PTXFSAVL USB_OTG_HPTXSTS_PTXFSAVL_Msk /*!< Periodic transmit data FIFO space available */
  20574. #define USB_OTG_HPTXSTS_PTXQSAV_Pos (16U)
  20575. #define USB_OTG_HPTXSTS_PTXQSAV_Msk (0xFFUL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00FF0000 */
  20576. #define USB_OTG_HPTXSTS_PTXQSAV USB_OTG_HPTXSTS_PTXQSAV_Msk /*!< Periodic transmit request queue space available */
  20577. #define USB_OTG_HPTXSTS_PTXQSAV_0 (0x01UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00010000 */
  20578. #define USB_OTG_HPTXSTS_PTXQSAV_1 (0x02UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00020000 */
  20579. #define USB_OTG_HPTXSTS_PTXQSAV_2 (0x04UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00040000 */
  20580. #define USB_OTG_HPTXSTS_PTXQSAV_3 (0x08UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00080000 */
  20581. #define USB_OTG_HPTXSTS_PTXQSAV_4 (0x10UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00100000 */
  20582. #define USB_OTG_HPTXSTS_PTXQSAV_5 (0x20UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00200000 */
  20583. #define USB_OTG_HPTXSTS_PTXQSAV_6 (0x40UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00400000 */
  20584. #define USB_OTG_HPTXSTS_PTXQSAV_7 (0x80UL << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00800000 */
  20585. #define USB_OTG_HPTXSTS_PTXQTOP_Pos (24U)
  20586. #define USB_OTG_HPTXSTS_PTXQTOP_Msk (0xFFUL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0xFF000000 */
  20587. #define USB_OTG_HPTXSTS_PTXQTOP USB_OTG_HPTXSTS_PTXQTOP_Msk /*!< Top of the periodic transmit request queue */
  20588. #define USB_OTG_HPTXSTS_PTXQTOP_0 (0x01UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x01000000 */
  20589. #define USB_OTG_HPTXSTS_PTXQTOP_1 (0x02UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x02000000 */
  20590. #define USB_OTG_HPTXSTS_PTXQTOP_2 (0x04UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x04000000 */
  20591. #define USB_OTG_HPTXSTS_PTXQTOP_3 (0x08UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x08000000 */
  20592. #define USB_OTG_HPTXSTS_PTXQTOP_4 (0x10UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x10000000 */
  20593. #define USB_OTG_HPTXSTS_PTXQTOP_5 (0x20UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x20000000 */
  20594. #define USB_OTG_HPTXSTS_PTXQTOP_6 (0x40UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x40000000 */
  20595. #define USB_OTG_HPTXSTS_PTXQTOP_7 (0x80UL << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x80000000 */
  20596. /******************** Bit definition forUSB_OTG_HAINT register ********************/
  20597. #define USB_OTG_HAINT_HAINT_Pos (0U)
  20598. #define USB_OTG_HAINT_HAINT_Msk (0xFFFFUL << USB_OTG_HAINT_HAINT_Pos) /*!< 0x0000FFFF */
  20599. #define USB_OTG_HAINT_HAINT USB_OTG_HAINT_HAINT_Msk /*!< Channel interrupts */
  20600. /******************** Bit definition forUSB_OTG_DOEPMSK register ********************/
  20601. #define USB_OTG_DOEPMSK_XFRCM_Pos (0U)
  20602. #define USB_OTG_DOEPMSK_XFRCM_Msk (0x1UL << USB_OTG_DOEPMSK_XFRCM_Pos) /*!< 0x00000001 */
  20603. #define USB_OTG_DOEPMSK_XFRCM USB_OTG_DOEPMSK_XFRCM_Msk /*!< Transfer completed interrupt mask */
  20604. #define USB_OTG_DOEPMSK_EPDM_Pos (1U)
  20605. #define USB_OTG_DOEPMSK_EPDM_Msk (0x1UL << USB_OTG_DOEPMSK_EPDM_Pos) /*!< 0x00000002 */
  20606. #define USB_OTG_DOEPMSK_EPDM USB_OTG_DOEPMSK_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  20607. #define USB_OTG_DOEPMSK_AHBERRM_Pos (2U)
  20608. #define USB_OTG_DOEPMSK_AHBERRM_Msk (0x1UL << USB_OTG_DOEPMSK_AHBERRM_Pos) /*!< 0x00000004 */
  20609. #define USB_OTG_DOEPMSK_AHBERRM USB_OTG_DOEPMSK_AHBERRM_Msk /*!< OUT transaction AHB Error interrupt mask */
  20610. #define USB_OTG_DOEPMSK_STUPM_Pos (3U)
  20611. #define USB_OTG_DOEPMSK_STUPM_Msk (0x1UL << USB_OTG_DOEPMSK_STUPM_Pos) /*!< 0x00000008 */
  20612. #define USB_OTG_DOEPMSK_STUPM USB_OTG_DOEPMSK_STUPM_Msk /*!< SETUP phase done mask */
  20613. #define USB_OTG_DOEPMSK_OTEPDM_Pos (4U)
  20614. #define USB_OTG_DOEPMSK_OTEPDM_Msk (0x1UL << USB_OTG_DOEPMSK_OTEPDM_Pos) /*!< 0x00000010 */
  20615. #define USB_OTG_DOEPMSK_OTEPDM USB_OTG_DOEPMSK_OTEPDM_Msk /*!< OUT token received when endpoint disabled mask */
  20616. #define USB_OTG_DOEPMSK_OTEPSPRM_Pos (5U)
  20617. #define USB_OTG_DOEPMSK_OTEPSPRM_Msk (0x1UL << USB_OTG_DOEPMSK_OTEPSPRM_Pos) /*!< 0x00000020 */
  20618. #define USB_OTG_DOEPMSK_OTEPSPRM USB_OTG_DOEPMSK_OTEPSPRM_Msk /*!< Status Phase Received mask */
  20619. #define USB_OTG_DOEPMSK_B2BSTUP_Pos (6U)
  20620. #define USB_OTG_DOEPMSK_B2BSTUP_Msk (0x1UL << USB_OTG_DOEPMSK_B2BSTUP_Pos) /*!< 0x00000040 */
  20621. #define USB_OTG_DOEPMSK_B2BSTUP USB_OTG_DOEPMSK_B2BSTUP_Msk /*!< Back-to-back SETUP packets received mask */
  20622. #define USB_OTG_DOEPMSK_OPEM_Pos (8U)
  20623. #define USB_OTG_DOEPMSK_OPEM_Msk (0x1UL << USB_OTG_DOEPMSK_OPEM_Pos) /*!< 0x00000100 */
  20624. #define USB_OTG_DOEPMSK_OPEM USB_OTG_DOEPMSK_OPEM_Msk /*!< OUT packet error mask */
  20625. #define USB_OTG_DOEPMSK_BOIM_Pos (9U)
  20626. #define USB_OTG_DOEPMSK_BOIM_Msk (0x1UL << USB_OTG_DOEPMSK_BOIM_Pos) /*!< 0x00000200 */
  20627. #define USB_OTG_DOEPMSK_BOIM USB_OTG_DOEPMSK_BOIM_Msk /*!< BNA interrupt mask */
  20628. #define USB_OTG_DOEPMSK_BERRM_Pos (12U)
  20629. #define USB_OTG_DOEPMSK_BERRM_Msk (0x1UL << USB_OTG_DOEPMSK_BERRM_Pos) /*!< 0x00001000 */
  20630. #define USB_OTG_DOEPMSK_BERRM USB_OTG_DOEPMSK_BERRM_Msk /*!< Babble error interrupt mask */
  20631. #define USB_OTG_DOEPMSK_NAKM_Pos (13U)
  20632. #define USB_OTG_DOEPMSK_NAKM_Msk (0x1UL << USB_OTG_DOEPMSK_NAKM_Pos) /*!< 0x00002000 */
  20633. #define USB_OTG_DOEPMSK_NAKM USB_OTG_DOEPMSK_NAKM_Msk /*!< OUT Packet NAK interrupt mask */
  20634. #define USB_OTG_DOEPMSK_NYETM_Pos (14U)
  20635. #define USB_OTG_DOEPMSK_NYETM_Msk (0x1UL << USB_OTG_DOEPMSK_NYETM_Pos) /*!< 0x00004000 */
  20636. #define USB_OTG_DOEPMSK_NYETM USB_OTG_DOEPMSK_NYETM_Msk /*!< NYET interrupt mask */
  20637. /******************** Bit definition forUSB_OTG_GINTSTS register ********************/
  20638. #define USB_OTG_GINTSTS_CMOD_Pos (0U)
  20639. #define USB_OTG_GINTSTS_CMOD_Msk (0x1UL << USB_OTG_GINTSTS_CMOD_Pos) /*!< 0x00000001 */
  20640. #define USB_OTG_GINTSTS_CMOD USB_OTG_GINTSTS_CMOD_Msk /*!< Current mode of operation */
  20641. #define USB_OTG_GINTSTS_MMIS_Pos (1U)
  20642. #define USB_OTG_GINTSTS_MMIS_Msk (0x1UL << USB_OTG_GINTSTS_MMIS_Pos) /*!< 0x00000002 */
  20643. #define USB_OTG_GINTSTS_MMIS USB_OTG_GINTSTS_MMIS_Msk /*!< Mode mismatch interrupt */
  20644. #define USB_OTG_GINTSTS_OTGINT_Pos (2U)
  20645. #define USB_OTG_GINTSTS_OTGINT_Msk (0x1UL << USB_OTG_GINTSTS_OTGINT_Pos) /*!< 0x00000004 */
  20646. #define USB_OTG_GINTSTS_OTGINT USB_OTG_GINTSTS_OTGINT_Msk /*!< OTG interrupt */
  20647. #define USB_OTG_GINTSTS_SOF_Pos (3U)
  20648. #define USB_OTG_GINTSTS_SOF_Msk (0x1UL << USB_OTG_GINTSTS_SOF_Pos) /*!< 0x00000008 */
  20649. #define USB_OTG_GINTSTS_SOF USB_OTG_GINTSTS_SOF_Msk /*!< Start of frame */
  20650. #define USB_OTG_GINTSTS_RXFLVL_Pos (4U)
  20651. #define USB_OTG_GINTSTS_RXFLVL_Msk (0x1UL << USB_OTG_GINTSTS_RXFLVL_Pos) /*!< 0x00000010 */
  20652. #define USB_OTG_GINTSTS_RXFLVL USB_OTG_GINTSTS_RXFLVL_Msk /*!< RxFIFO nonempty */
  20653. #define USB_OTG_GINTSTS_NPTXFE_Pos (5U)
  20654. #define USB_OTG_GINTSTS_NPTXFE_Msk (0x1UL << USB_OTG_GINTSTS_NPTXFE_Pos) /*!< 0x00000020 */
  20655. #define USB_OTG_GINTSTS_NPTXFE USB_OTG_GINTSTS_NPTXFE_Msk /*!< Nonperiodic TxFIFO empty */
  20656. #define USB_OTG_GINTSTS_GINAKEFF_Pos (6U)
  20657. #define USB_OTG_GINTSTS_GINAKEFF_Msk (0x1UL << USB_OTG_GINTSTS_GINAKEFF_Pos) /*!< 0x00000040 */
  20658. #define USB_OTG_GINTSTS_GINAKEFF USB_OTG_GINTSTS_GINAKEFF_Msk /*!< Global IN nonperiodic NAK effective */
  20659. #define USB_OTG_GINTSTS_BOUTNAKEFF_Pos (7U)
  20660. #define USB_OTG_GINTSTS_BOUTNAKEFF_Msk (0x1UL << USB_OTG_GINTSTS_BOUTNAKEFF_Pos) /*!< 0x00000080 */
  20661. #define USB_OTG_GINTSTS_BOUTNAKEFF USB_OTG_GINTSTS_BOUTNAKEFF_Msk /*!< Global OUT NAK effective */
  20662. #define USB_OTG_GINTSTS_ESUSP_Pos (10U)
  20663. #define USB_OTG_GINTSTS_ESUSP_Msk (0x1UL << USB_OTG_GINTSTS_ESUSP_Pos) /*!< 0x00000400 */
  20664. #define USB_OTG_GINTSTS_ESUSP USB_OTG_GINTSTS_ESUSP_Msk /*!< Early suspend */
  20665. #define USB_OTG_GINTSTS_USBSUSP_Pos (11U)
  20666. #define USB_OTG_GINTSTS_USBSUSP_Msk (0x1UL << USB_OTG_GINTSTS_USBSUSP_Pos) /*!< 0x00000800 */
  20667. #define USB_OTG_GINTSTS_USBSUSP USB_OTG_GINTSTS_USBSUSP_Msk /*!< USB suspend */
  20668. #define USB_OTG_GINTSTS_USBRST_Pos (12U)
  20669. #define USB_OTG_GINTSTS_USBRST_Msk (0x1UL << USB_OTG_GINTSTS_USBRST_Pos) /*!< 0x00001000 */
  20670. #define USB_OTG_GINTSTS_USBRST USB_OTG_GINTSTS_USBRST_Msk /*!< USB reset */
  20671. #define USB_OTG_GINTSTS_ENUMDNE_Pos (13U)
  20672. #define USB_OTG_GINTSTS_ENUMDNE_Msk (0x1UL << USB_OTG_GINTSTS_ENUMDNE_Pos) /*!< 0x00002000 */
  20673. #define USB_OTG_GINTSTS_ENUMDNE USB_OTG_GINTSTS_ENUMDNE_Msk /*!< Enumeration done */
  20674. #define USB_OTG_GINTSTS_ISOODRP_Pos (14U)
  20675. #define USB_OTG_GINTSTS_ISOODRP_Msk (0x1UL << USB_OTG_GINTSTS_ISOODRP_Pos) /*!< 0x00004000 */
  20676. #define USB_OTG_GINTSTS_ISOODRP USB_OTG_GINTSTS_ISOODRP_Msk /*!< Isochronous OUT packet dropped interrupt */
  20677. #define USB_OTG_GINTSTS_EOPF_Pos (15U)
  20678. #define USB_OTG_GINTSTS_EOPF_Msk (0x1UL << USB_OTG_GINTSTS_EOPF_Pos) /*!< 0x00008000 */
  20679. #define USB_OTG_GINTSTS_EOPF USB_OTG_GINTSTS_EOPF_Msk /*!< End of periodic frame interrupt */
  20680. #define USB_OTG_GINTSTS_IEPINT_Pos (18U)
  20681. #define USB_OTG_GINTSTS_IEPINT_Msk (0x1UL << USB_OTG_GINTSTS_IEPINT_Pos) /*!< 0x00040000 */
  20682. #define USB_OTG_GINTSTS_IEPINT USB_OTG_GINTSTS_IEPINT_Msk /*!< IN endpoint interrupt */
  20683. #define USB_OTG_GINTSTS_OEPINT_Pos (19U)
  20684. #define USB_OTG_GINTSTS_OEPINT_Msk (0x1UL << USB_OTG_GINTSTS_OEPINT_Pos) /*!< 0x00080000 */
  20685. #define USB_OTG_GINTSTS_OEPINT USB_OTG_GINTSTS_OEPINT_Msk /*!< OUT endpoint interrupt */
  20686. #define USB_OTG_GINTSTS_IISOIXFR_Pos (20U)
  20687. #define USB_OTG_GINTSTS_IISOIXFR_Msk (0x1UL << USB_OTG_GINTSTS_IISOIXFR_Pos) /*!< 0x00100000 */
  20688. #define USB_OTG_GINTSTS_IISOIXFR USB_OTG_GINTSTS_IISOIXFR_Msk /*!< Incomplete isochronous IN transfer */
  20689. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos (21U)
  20690. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk (0x1UL << USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos) /*!< 0x00200000 */
  20691. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk /*!< Incomplete periodic transfer */
  20692. #define USB_OTG_GINTSTS_DATAFSUSP_Pos (22U)
  20693. #define USB_OTG_GINTSTS_DATAFSUSP_Msk (0x1UL << USB_OTG_GINTSTS_DATAFSUSP_Pos) /*!< 0x00400000 */
  20694. #define USB_OTG_GINTSTS_DATAFSUSP USB_OTG_GINTSTS_DATAFSUSP_Msk /*!< Data fetch suspended */
  20695. #define USB_OTG_GINTSTS_RSTDET_Pos (23U)
  20696. #define USB_OTG_GINTSTS_RSTDET_Msk (0x1UL << USB_OTG_GINTSTS_RSTDET_Pos) /*!< 0x00800000 */
  20697. #define USB_OTG_GINTSTS_RSTDET USB_OTG_GINTSTS_RSTDET_Msk /*!< Reset detected interrupt */
  20698. #define USB_OTG_GINTSTS_HPRTINT_Pos (24U)
  20699. #define USB_OTG_GINTSTS_HPRTINT_Msk (0x1UL << USB_OTG_GINTSTS_HPRTINT_Pos) /*!< 0x01000000 */
  20700. #define USB_OTG_GINTSTS_HPRTINT USB_OTG_GINTSTS_HPRTINT_Msk /*!< Host port interrupt */
  20701. #define USB_OTG_GINTSTS_HCINT_Pos (25U)
  20702. #define USB_OTG_GINTSTS_HCINT_Msk (0x1UL << USB_OTG_GINTSTS_HCINT_Pos) /*!< 0x02000000 */
  20703. #define USB_OTG_GINTSTS_HCINT USB_OTG_GINTSTS_HCINT_Msk /*!< Host channels interrupt */
  20704. #define USB_OTG_GINTSTS_PTXFE_Pos (26U)
  20705. #define USB_OTG_GINTSTS_PTXFE_Msk (0x1UL << USB_OTG_GINTSTS_PTXFE_Pos) /*!< 0x04000000 */
  20706. #define USB_OTG_GINTSTS_PTXFE USB_OTG_GINTSTS_PTXFE_Msk /*!< Periodic TxFIFO empty */
  20707. #define USB_OTG_GINTSTS_LPMINT_Pos (27U)
  20708. #define USB_OTG_GINTSTS_LPMINT_Msk (0x1UL << USB_OTG_GINTSTS_LPMINT_Pos) /*!< 0x08000000 */
  20709. #define USB_OTG_GINTSTS_LPMINT USB_OTG_GINTSTS_LPMINT_Msk /*!< LPM interrupt */
  20710. #define USB_OTG_GINTSTS_CIDSCHG_Pos (28U)
  20711. #define USB_OTG_GINTSTS_CIDSCHG_Msk (0x1UL << USB_OTG_GINTSTS_CIDSCHG_Pos) /*!< 0x10000000 */
  20712. #define USB_OTG_GINTSTS_CIDSCHG USB_OTG_GINTSTS_CIDSCHG_Msk /*!< Connector ID status change */
  20713. #define USB_OTG_GINTSTS_DISCINT_Pos (29U)
  20714. #define USB_OTG_GINTSTS_DISCINT_Msk (0x1UL << USB_OTG_GINTSTS_DISCINT_Pos) /*!< 0x20000000 */
  20715. #define USB_OTG_GINTSTS_DISCINT USB_OTG_GINTSTS_DISCINT_Msk /*!< Disconnect detected interrupt */
  20716. #define USB_OTG_GINTSTS_SRQINT_Pos (30U)
  20717. #define USB_OTG_GINTSTS_SRQINT_Msk (0x1UL << USB_OTG_GINTSTS_SRQINT_Pos) /*!< 0x40000000 */
  20718. #define USB_OTG_GINTSTS_SRQINT USB_OTG_GINTSTS_SRQINT_Msk /*!< Session request/new session detected interrupt */
  20719. #define USB_OTG_GINTSTS_WKUINT_Pos (31U)
  20720. #define USB_OTG_GINTSTS_WKUINT_Msk (0x1UL << USB_OTG_GINTSTS_WKUINT_Pos) /*!< 0x80000000 */
  20721. #define USB_OTG_GINTSTS_WKUINT USB_OTG_GINTSTS_WKUINT_Msk /*!< Resume/remote wakeup detected interrupt */
  20722. /******************** Bit definition forUSB_OTG_GINTMSK register ********************/
  20723. #define USB_OTG_GINTMSK_MMISM_Pos (1U)
  20724. #define USB_OTG_GINTMSK_MMISM_Msk (0x1UL << USB_OTG_GINTMSK_MMISM_Pos) /*!< 0x00000002 */
  20725. #define USB_OTG_GINTMSK_MMISM USB_OTG_GINTMSK_MMISM_Msk /*!< Mode mismatch interrupt mask */
  20726. #define USB_OTG_GINTMSK_OTGINT_Pos (2U)
  20727. #define USB_OTG_GINTMSK_OTGINT_Msk (0x1UL << USB_OTG_GINTMSK_OTGINT_Pos) /*!< 0x00000004 */
  20728. #define USB_OTG_GINTMSK_OTGINT USB_OTG_GINTMSK_OTGINT_Msk /*!< OTG interrupt mask */
  20729. #define USB_OTG_GINTMSK_SOFM_Pos (3U)
  20730. #define USB_OTG_GINTMSK_SOFM_Msk (0x1UL << USB_OTG_GINTMSK_SOFM_Pos) /*!< 0x00000008 */
  20731. #define USB_OTG_GINTMSK_SOFM USB_OTG_GINTMSK_SOFM_Msk /*!< Start of frame mask */
  20732. #define USB_OTG_GINTMSK_RXFLVLM_Pos (4U)
  20733. #define USB_OTG_GINTMSK_RXFLVLM_Msk (0x1UL << USB_OTG_GINTMSK_RXFLVLM_Pos) /*!< 0x00000010 */
  20734. #define USB_OTG_GINTMSK_RXFLVLM USB_OTG_GINTMSK_RXFLVLM_Msk /*!< Receive FIFO nonempty mask */
  20735. #define USB_OTG_GINTMSK_NPTXFEM_Pos (5U)
  20736. #define USB_OTG_GINTMSK_NPTXFEM_Msk (0x1UL << USB_OTG_GINTMSK_NPTXFEM_Pos) /*!< 0x00000020 */
  20737. #define USB_OTG_GINTMSK_NPTXFEM USB_OTG_GINTMSK_NPTXFEM_Msk /*!< Nonperiodic TxFIFO empty mask */
  20738. #define USB_OTG_GINTMSK_GINAKEFFM_Pos (6U)
  20739. #define USB_OTG_GINTMSK_GINAKEFFM_Msk (0x1UL << USB_OTG_GINTMSK_GINAKEFFM_Pos) /*!< 0x00000040 */
  20740. #define USB_OTG_GINTMSK_GINAKEFFM USB_OTG_GINTMSK_GINAKEFFM_Msk /*!< Global nonperiodic IN NAK effective mask */
  20741. #define USB_OTG_GINTMSK_GONAKEFFM_Pos (7U)
  20742. #define USB_OTG_GINTMSK_GONAKEFFM_Msk (0x1UL << USB_OTG_GINTMSK_GONAKEFFM_Pos) /*!< 0x00000080 */
  20743. #define USB_OTG_GINTMSK_GONAKEFFM USB_OTG_GINTMSK_GONAKEFFM_Msk /*!< Global OUT NAK effective mask */
  20744. #define USB_OTG_GINTMSK_ESUSPM_Pos (10U)
  20745. #define USB_OTG_GINTMSK_ESUSPM_Msk (0x1UL << USB_OTG_GINTMSK_ESUSPM_Pos) /*!< 0x00000400 */
  20746. #define USB_OTG_GINTMSK_ESUSPM USB_OTG_GINTMSK_ESUSPM_Msk /*!< Early suspend mask */
  20747. #define USB_OTG_GINTMSK_USBSUSPM_Pos (11U)
  20748. #define USB_OTG_GINTMSK_USBSUSPM_Msk (0x1UL << USB_OTG_GINTMSK_USBSUSPM_Pos) /*!< 0x00000800 */
  20749. #define USB_OTG_GINTMSK_USBSUSPM USB_OTG_GINTMSK_USBSUSPM_Msk /*!< USB suspend mask */
  20750. #define USB_OTG_GINTMSK_USBRST_Pos (12U)
  20751. #define USB_OTG_GINTMSK_USBRST_Msk (0x1UL << USB_OTG_GINTMSK_USBRST_Pos) /*!< 0x00001000 */
  20752. #define USB_OTG_GINTMSK_USBRST USB_OTG_GINTMSK_USBRST_Msk /*!< USB reset mask */
  20753. #define USB_OTG_GINTMSK_ENUMDNEM_Pos (13U)
  20754. #define USB_OTG_GINTMSK_ENUMDNEM_Msk (0x1UL << USB_OTG_GINTMSK_ENUMDNEM_Pos) /*!< 0x00002000 */
  20755. #define USB_OTG_GINTMSK_ENUMDNEM USB_OTG_GINTMSK_ENUMDNEM_Msk /*!< Enumeration done mask */
  20756. #define USB_OTG_GINTMSK_ISOODRPM_Pos (14U)
  20757. #define USB_OTG_GINTMSK_ISOODRPM_Msk (0x1UL << USB_OTG_GINTMSK_ISOODRPM_Pos) /*!< 0x00004000 */
  20758. #define USB_OTG_GINTMSK_ISOODRPM USB_OTG_GINTMSK_ISOODRPM_Msk /*!< Isochronous OUT packet dropped interrupt mask */
  20759. #define USB_OTG_GINTMSK_EOPFM_Pos (15U)
  20760. #define USB_OTG_GINTMSK_EOPFM_Msk (0x1UL << USB_OTG_GINTMSK_EOPFM_Pos) /*!< 0x00008000 */
  20761. #define USB_OTG_GINTMSK_EOPFM USB_OTG_GINTMSK_EOPFM_Msk /*!< End of periodic frame interrupt mask */
  20762. #define USB_OTG_GINTMSK_EPMISM_Pos (17U)
  20763. #define USB_OTG_GINTMSK_EPMISM_Msk (0x1UL << USB_OTG_GINTMSK_EPMISM_Pos) /*!< 0x00020000 */
  20764. #define USB_OTG_GINTMSK_EPMISM USB_OTG_GINTMSK_EPMISM_Msk /*!< Endpoint mismatch interrupt mask */
  20765. #define USB_OTG_GINTMSK_IEPINT_Pos (18U)
  20766. #define USB_OTG_GINTMSK_IEPINT_Msk (0x1UL << USB_OTG_GINTMSK_IEPINT_Pos) /*!< 0x00040000 */
  20767. #define USB_OTG_GINTMSK_IEPINT USB_OTG_GINTMSK_IEPINT_Msk /*!< IN endpoints interrupt mask */
  20768. #define USB_OTG_GINTMSK_OEPINT_Pos (19U)
  20769. #define USB_OTG_GINTMSK_OEPINT_Msk (0x1UL << USB_OTG_GINTMSK_OEPINT_Pos) /*!< 0x00080000 */
  20770. #define USB_OTG_GINTMSK_OEPINT USB_OTG_GINTMSK_OEPINT_Msk /*!< OUT endpoints interrupt mask */
  20771. #define USB_OTG_GINTMSK_IISOIXFRM_Pos (20U)
  20772. #define USB_OTG_GINTMSK_IISOIXFRM_Msk (0x1UL << USB_OTG_GINTMSK_IISOIXFRM_Pos) /*!< 0x00100000 */
  20773. #define USB_OTG_GINTMSK_IISOIXFRM USB_OTG_GINTMSK_IISOIXFRM_Msk /*!< Incomplete isochronous IN transfer mask */
  20774. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos (21U)
  20775. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk (0x1UL << USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos) /*!< 0x00200000 */
  20776. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk /*!< Incomplete periodic transfer mask */
  20777. #define USB_OTG_GINTMSK_FSUSPM_Pos (22U)
  20778. #define USB_OTG_GINTMSK_FSUSPM_Msk (0x1UL << USB_OTG_GINTMSK_FSUSPM_Pos) /*!< 0x00400000 */
  20779. #define USB_OTG_GINTMSK_FSUSPM USB_OTG_GINTMSK_FSUSPM_Msk /*!< Data fetch suspended mask */
  20780. #define USB_OTG_GINTMSK_RSTDEM_Pos (23U)
  20781. #define USB_OTG_GINTMSK_RSTDEM_Msk (0x1UL << USB_OTG_GINTMSK_RSTDEM_Pos) /*!< 0x00800000 */
  20782. #define USB_OTG_GINTMSK_RSTDEM USB_OTG_GINTMSK_RSTDEM_Msk /*!< Reset detected interrupt mask */
  20783. #define USB_OTG_GINTMSK_PRTIM_Pos (24U)
  20784. #define USB_OTG_GINTMSK_PRTIM_Msk (0x1UL << USB_OTG_GINTMSK_PRTIM_Pos) /*!< 0x01000000 */
  20785. #define USB_OTG_GINTMSK_PRTIM USB_OTG_GINTMSK_PRTIM_Msk /*!< Host port interrupt mask */
  20786. #define USB_OTG_GINTMSK_HCIM_Pos (25U)
  20787. #define USB_OTG_GINTMSK_HCIM_Msk (0x1UL << USB_OTG_GINTMSK_HCIM_Pos) /*!< 0x02000000 */
  20788. #define USB_OTG_GINTMSK_HCIM USB_OTG_GINTMSK_HCIM_Msk /*!< Host channels interrupt mask */
  20789. #define USB_OTG_GINTMSK_PTXFEM_Pos (26U)
  20790. #define USB_OTG_GINTMSK_PTXFEM_Msk (0x1UL << USB_OTG_GINTMSK_PTXFEM_Pos) /*!< 0x04000000 */
  20791. #define USB_OTG_GINTMSK_PTXFEM USB_OTG_GINTMSK_PTXFEM_Msk /*!< Periodic TxFIFO empty mask */
  20792. #define USB_OTG_GINTMSK_LPMINTM_Pos (27U)
  20793. #define USB_OTG_GINTMSK_LPMINTM_Msk (0x1UL << USB_OTG_GINTMSK_LPMINTM_Pos) /*!< 0x08000000 */
  20794. #define USB_OTG_GINTMSK_LPMINTM USB_OTG_GINTMSK_LPMINTM_Msk /*!< LPM interrupt Mask */
  20795. #define USB_OTG_GINTMSK_CIDSCHGM_Pos (28U)
  20796. #define USB_OTG_GINTMSK_CIDSCHGM_Msk (0x1UL << USB_OTG_GINTMSK_CIDSCHGM_Pos) /*!< 0x10000000 */
  20797. #define USB_OTG_GINTMSK_CIDSCHGM USB_OTG_GINTMSK_CIDSCHGM_Msk /*!< Connector ID status change mask */
  20798. #define USB_OTG_GINTMSK_DISCINT_Pos (29U)
  20799. #define USB_OTG_GINTMSK_DISCINT_Msk (0x1UL << USB_OTG_GINTMSK_DISCINT_Pos) /*!< 0x20000000 */
  20800. #define USB_OTG_GINTMSK_DISCINT USB_OTG_GINTMSK_DISCINT_Msk /*!< Disconnect detected interrupt mask */
  20801. #define USB_OTG_GINTMSK_SRQIM_Pos (30U)
  20802. #define USB_OTG_GINTMSK_SRQIM_Msk (0x1UL << USB_OTG_GINTMSK_SRQIM_Pos) /*!< 0x40000000 */
  20803. #define USB_OTG_GINTMSK_SRQIM USB_OTG_GINTMSK_SRQIM_Msk /*!< Session request/new session detected interrupt mask */
  20804. #define USB_OTG_GINTMSK_WUIM_Pos (31U)
  20805. #define USB_OTG_GINTMSK_WUIM_Msk (0x1UL << USB_OTG_GINTMSK_WUIM_Pos) /*!< 0x80000000 */
  20806. #define USB_OTG_GINTMSK_WUIM USB_OTG_GINTMSK_WUIM_Msk /*!< Resume/remote wakeup detected interrupt mask */
  20807. /******************** Bit definition forUSB_OTG_DAINT register ********************/
  20808. #define USB_OTG_DAINT_IEPINT_Pos (0U)
  20809. #define USB_OTG_DAINT_IEPINT_Msk (0xFFFFUL << USB_OTG_DAINT_IEPINT_Pos) /*!< 0x0000FFFF */
  20810. #define USB_OTG_DAINT_IEPINT USB_OTG_DAINT_IEPINT_Msk /*!< IN endpoint interrupt bits */
  20811. #define USB_OTG_DAINT_OEPINT_Pos (16U)
  20812. #define USB_OTG_DAINT_OEPINT_Msk (0xFFFFUL << USB_OTG_DAINT_OEPINT_Pos) /*!< 0xFFFF0000 */
  20813. #define USB_OTG_DAINT_OEPINT USB_OTG_DAINT_OEPINT_Msk /*!< OUT endpoint interrupt bits */
  20814. /******************** Bit definition forUSB_OTG_HAINTMSK register ********************/
  20815. #define USB_OTG_HAINTMSK_HAINTM_Pos (0U)
  20816. #define USB_OTG_HAINTMSK_HAINTM_Msk (0xFFFFUL << USB_OTG_HAINTMSK_HAINTM_Pos) /*!< 0x0000FFFF */
  20817. #define USB_OTG_HAINTMSK_HAINTM USB_OTG_HAINTMSK_HAINTM_Msk /*!< Channel interrupt mask */
  20818. /******************** Bit definition for USB_OTG_GRXSTSP register ********************/
  20819. #define USB_OTG_GRXSTSP_EPNUM_Pos (0U)
  20820. #define USB_OTG_GRXSTSP_EPNUM_Msk (0xFUL << USB_OTG_GRXSTSP_EPNUM_Pos) /*!< 0x0000000F */
  20821. #define USB_OTG_GRXSTSP_EPNUM USB_OTG_GRXSTSP_EPNUM_Msk /*!< IN EP interrupt mask bits */
  20822. #define USB_OTG_GRXSTSP_BCNT_Pos (4U)
  20823. #define USB_OTG_GRXSTSP_BCNT_Msk (0x7FFUL << USB_OTG_GRXSTSP_BCNT_Pos) /*!< 0x00007FF0 */
  20824. #define USB_OTG_GRXSTSP_BCNT USB_OTG_GRXSTSP_BCNT_Msk /*!< OUT EP interrupt mask bits */
  20825. #define USB_OTG_GRXSTSP_DPID_Pos (15U)
  20826. #define USB_OTG_GRXSTSP_DPID_Msk (0x3UL << USB_OTG_GRXSTSP_DPID_Pos) /*!< 0x00018000 */
  20827. #define USB_OTG_GRXSTSP_DPID USB_OTG_GRXSTSP_DPID_Msk /*!< OUT EP interrupt mask bits */
  20828. #define USB_OTG_GRXSTSP_PKTSTS_Pos (17U)
  20829. #define USB_OTG_GRXSTSP_PKTSTS_Msk (0xFUL << USB_OTG_GRXSTSP_PKTSTS_Pos) /*!< 0x001E0000 */
  20830. #define USB_OTG_GRXSTSP_PKTSTS USB_OTG_GRXSTSP_PKTSTS_Msk /*!< OUT EP interrupt mask bits */
  20831. /******************** Bit definition forUSB_OTG_DAINTMSK register ********************/
  20832. #define USB_OTG_DAINTMSK_IEPM_Pos (0U)
  20833. #define USB_OTG_DAINTMSK_IEPM_Msk (0xFFFFUL << USB_OTG_DAINTMSK_IEPM_Pos) /*!< 0x0000FFFF */
  20834. #define USB_OTG_DAINTMSK_IEPM USB_OTG_DAINTMSK_IEPM_Msk /*!< IN EP interrupt mask bits */
  20835. #define USB_OTG_DAINTMSK_OEPM_Pos (16U)
  20836. #define USB_OTG_DAINTMSK_OEPM_Msk (0xFFFFUL << USB_OTG_DAINTMSK_OEPM_Pos) /*!< 0xFFFF0000 */
  20837. #define USB_OTG_DAINTMSK_OEPM USB_OTG_DAINTMSK_OEPM_Msk /*!< OUT EP interrupt mask bits */
  20838. /******************** Bit definition for OTG register ********************/
  20839. #define USB_OTG_CHNUM_Pos (0U)
  20840. #define USB_OTG_CHNUM_Msk (0xFUL << USB_OTG_CHNUM_Pos) /*!< 0x0000000F */
  20841. #define USB_OTG_CHNUM USB_OTG_CHNUM_Msk /*!< Channel number */
  20842. #define USB_OTG_CHNUM_0 (0x1UL << USB_OTG_CHNUM_Pos) /*!< 0x00000001 */
  20843. #define USB_OTG_CHNUM_1 (0x2UL << USB_OTG_CHNUM_Pos) /*!< 0x00000002 */
  20844. #define USB_OTG_CHNUM_2 (0x4UL << USB_OTG_CHNUM_Pos) /*!< 0x00000004 */
  20845. #define USB_OTG_CHNUM_3 (0x8UL << USB_OTG_CHNUM_Pos) /*!< 0x00000008 */
  20846. #define USB_OTG_BCNT_Pos (4U)
  20847. #define USB_OTG_BCNT_Msk (0x7FFUL << USB_OTG_BCNT_Pos) /*!< 0x00007FF0 */
  20848. #define USB_OTG_BCNT USB_OTG_BCNT_Msk /*!< Byte count */
  20849. #define USB_OTG_DPID_Pos (15U)
  20850. #define USB_OTG_DPID_Msk (0x3UL << USB_OTG_DPID_Pos) /*!< 0x00018000 */
  20851. #define USB_OTG_DPID USB_OTG_DPID_Msk /*!< Data PID */
  20852. #define USB_OTG_DPID_0 (0x1UL << USB_OTG_DPID_Pos) /*!< 0x00008000 */
  20853. #define USB_OTG_DPID_1 (0x2UL << USB_OTG_DPID_Pos) /*!< 0x00010000 */
  20854. #define USB_OTG_PKTSTS_Pos (17U)
  20855. #define USB_OTG_PKTSTS_Msk (0xFUL << USB_OTG_PKTSTS_Pos) /*!< 0x001E0000 */
  20856. #define USB_OTG_PKTSTS USB_OTG_PKTSTS_Msk /*!< Packet status */
  20857. #define USB_OTG_PKTSTS_0 (0x1UL << USB_OTG_PKTSTS_Pos) /*!< 0x00020000 */
  20858. #define USB_OTG_PKTSTS_1 (0x2UL << USB_OTG_PKTSTS_Pos) /*!< 0x00040000 */
  20859. #define USB_OTG_PKTSTS_2 (0x4UL << USB_OTG_PKTSTS_Pos) /*!< 0x00080000 */
  20860. #define USB_OTG_PKTSTS_3 (0x8UL << USB_OTG_PKTSTS_Pos) /*!< 0x00100000 */
  20861. #define USB_OTG_EPNUM_Pos (0U)
  20862. #define USB_OTG_EPNUM_Msk (0xFUL << USB_OTG_EPNUM_Pos) /*!< 0x0000000F */
  20863. #define USB_OTG_EPNUM USB_OTG_EPNUM_Msk /*!< Endpoint number */
  20864. #define USB_OTG_EPNUM_0 (0x1UL << USB_OTG_EPNUM_Pos) /*!< 0x00000001 */
  20865. #define USB_OTG_EPNUM_1 (0x2UL << USB_OTG_EPNUM_Pos) /*!< 0x00000002 */
  20866. #define USB_OTG_EPNUM_2 (0x4UL << USB_OTG_EPNUM_Pos) /*!< 0x00000004 */
  20867. #define USB_OTG_EPNUM_3 (0x8UL << USB_OTG_EPNUM_Pos) /*!< 0x00000008 */
  20868. #define USB_OTG_FRMNUM_Pos (21U)
  20869. #define USB_OTG_FRMNUM_Msk (0xFUL << USB_OTG_FRMNUM_Pos) /*!< 0x01E00000 */
  20870. #define USB_OTG_FRMNUM USB_OTG_FRMNUM_Msk /*!< Frame number */
  20871. #define USB_OTG_FRMNUM_0 (0x1UL << USB_OTG_FRMNUM_Pos) /*!< 0x00200000 */
  20872. #define USB_OTG_FRMNUM_1 (0x2UL << USB_OTG_FRMNUM_Pos) /*!< 0x00400000 */
  20873. #define USB_OTG_FRMNUM_2 (0x4UL << USB_OTG_FRMNUM_Pos) /*!< 0x00800000 */
  20874. #define USB_OTG_FRMNUM_3 (0x8UL << USB_OTG_FRMNUM_Pos) /*!< 0x01000000 */
  20875. /******************** Bit definition forUSB_OTG_GRXFSIZ register ********************/
  20876. #define USB_OTG_GRXFSIZ_RXFD_Pos (0U)
  20877. #define USB_OTG_GRXFSIZ_RXFD_Msk (0xFFFFUL << USB_OTG_GRXFSIZ_RXFD_Pos) /*!< 0x0000FFFF */
  20878. #define USB_OTG_GRXFSIZ_RXFD USB_OTG_GRXFSIZ_RXFD_Msk /*!< RxFIFO depth */
  20879. /******************** Bit definition forUSB_OTG_DVBUSDIS register ********************/
  20880. #define USB_OTG_DVBUSDIS_VBUSDT_Pos (0U)
  20881. #define USB_OTG_DVBUSDIS_VBUSDT_Msk (0xFFFFUL << USB_OTG_DVBUSDIS_VBUSDT_Pos) /*!< 0x0000FFFF */
  20882. #define USB_OTG_DVBUSDIS_VBUSDT USB_OTG_DVBUSDIS_VBUSDT_Msk /*!< Device VBUS discharge time */
  20883. /******************** Bit definition for OTG register ********************/
  20884. #define USB_OTG_NPTXFSA_Pos (0U)
  20885. #define USB_OTG_NPTXFSA_Msk (0xFFFFUL << USB_OTG_NPTXFSA_Pos) /*!< 0x0000FFFF */
  20886. #define USB_OTG_NPTXFSA USB_OTG_NPTXFSA_Msk /*!< Nonperiodic transmit RAM start address */
  20887. #define USB_OTG_NPTXFD_Pos (16U)
  20888. #define USB_OTG_NPTXFD_Msk (0xFFFFUL << USB_OTG_NPTXFD_Pos) /*!< 0xFFFF0000 */
  20889. #define USB_OTG_NPTXFD USB_OTG_NPTXFD_Msk /*!< Nonperiodic TxFIFO depth */
  20890. #define USB_OTG_TX0FSA_Pos (0U)
  20891. #define USB_OTG_TX0FSA_Msk (0xFFFFUL << USB_OTG_TX0FSA_Pos) /*!< 0x0000FFFF */
  20892. #define USB_OTG_TX0FSA USB_OTG_TX0FSA_Msk /*!< Endpoint 0 transmit RAM start address */
  20893. #define USB_OTG_TX0FD_Pos (16U)
  20894. #define USB_OTG_TX0FD_Msk (0xFFFFUL << USB_OTG_TX0FD_Pos) /*!< 0xFFFF0000 */
  20895. #define USB_OTG_TX0FD USB_OTG_TX0FD_Msk /*!< Endpoint 0 TxFIFO depth */
  20896. /******************** Bit definition forUSB_OTG_DVBUSPULSE register ********************/
  20897. #define USB_OTG_DVBUSPULSE_DVBUSP_Pos (0U)
  20898. #define USB_OTG_DVBUSPULSE_DVBUSP_Msk (0xFFFUL << USB_OTG_DVBUSPULSE_DVBUSP_Pos) /*!< 0x00000FFF */
  20899. #define USB_OTG_DVBUSPULSE_DVBUSP USB_OTG_DVBUSPULSE_DVBUSP_Msk /*!< Device VBUS pulsing time */
  20900. /******************** Bit definition forUSB_OTG_GNPTXSTS register ********************/
  20901. #define USB_OTG_GNPTXSTS_NPTXFSAV_Pos (0U)
  20902. #define USB_OTG_GNPTXSTS_NPTXFSAV_Msk (0xFFFFUL << USB_OTG_GNPTXSTS_NPTXFSAV_Pos) /*!< 0x0000FFFF */
  20903. #define USB_OTG_GNPTXSTS_NPTXFSAV USB_OTG_GNPTXSTS_NPTXFSAV_Msk /*!< Nonperiodic TxFIFO space available */
  20904. #define USB_OTG_GNPTXSTS_NPTQXSAV_Pos (16U)
  20905. #define USB_OTG_GNPTXSTS_NPTQXSAV_Msk (0xFFUL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00FF0000 */
  20906. #define USB_OTG_GNPTXSTS_NPTQXSAV USB_OTG_GNPTXSTS_NPTQXSAV_Msk /*!< Nonperiodic transmit request queue space available */
  20907. #define USB_OTG_GNPTXSTS_NPTQXSAV_0 (0x01UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00010000 */
  20908. #define USB_OTG_GNPTXSTS_NPTQXSAV_1 (0x02UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00020000 */
  20909. #define USB_OTG_GNPTXSTS_NPTQXSAV_2 (0x04UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00040000 */
  20910. #define USB_OTG_GNPTXSTS_NPTQXSAV_3 (0x08UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00080000 */
  20911. #define USB_OTG_GNPTXSTS_NPTQXSAV_4 (0x10UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00100000 */
  20912. #define USB_OTG_GNPTXSTS_NPTQXSAV_5 (0x20UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00200000 */
  20913. #define USB_OTG_GNPTXSTS_NPTQXSAV_6 (0x40UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00400000 */
  20914. #define USB_OTG_GNPTXSTS_NPTQXSAV_7 (0x80UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00800000 */
  20915. #define USB_OTG_GNPTXSTS_NPTXQTOP_Pos (24U)
  20916. #define USB_OTG_GNPTXSTS_NPTXQTOP_Msk (0x7FUL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x7F000000 */
  20917. #define USB_OTG_GNPTXSTS_NPTXQTOP USB_OTG_GNPTXSTS_NPTXQTOP_Msk /*!< Top of the nonperiodic transmit request queue */
  20918. #define USB_OTG_GNPTXSTS_NPTXQTOP_0 (0x01UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x01000000 */
  20919. #define USB_OTG_GNPTXSTS_NPTXQTOP_1 (0x02UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x02000000 */
  20920. #define USB_OTG_GNPTXSTS_NPTXQTOP_2 (0x04UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x04000000 */
  20921. #define USB_OTG_GNPTXSTS_NPTXQTOP_3 (0x08UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x08000000 */
  20922. #define USB_OTG_GNPTXSTS_NPTXQTOP_4 (0x10UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x10000000 */
  20923. #define USB_OTG_GNPTXSTS_NPTXQTOP_5 (0x20UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x20000000 */
  20924. #define USB_OTG_GNPTXSTS_NPTXQTOP_6 (0x40UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x40000000 */
  20925. /******************** Bit definition forUSB_OTG_DTHRCTL register ********************/
  20926. #define USB_OTG_DTHRCTL_NONISOTHREN_Pos (0U)
  20927. #define USB_OTG_DTHRCTL_NONISOTHREN_Msk (0x1UL << USB_OTG_DTHRCTL_NONISOTHREN_Pos) /*!< 0x00000001 */
  20928. #define USB_OTG_DTHRCTL_NONISOTHREN USB_OTG_DTHRCTL_NONISOTHREN_Msk /*!< Nonisochronous IN endpoints threshold enable */
  20929. #define USB_OTG_DTHRCTL_ISOTHREN_Pos (1U)
  20930. #define USB_OTG_DTHRCTL_ISOTHREN_Msk (0x1UL << USB_OTG_DTHRCTL_ISOTHREN_Pos) /*!< 0x00000002 */
  20931. #define USB_OTG_DTHRCTL_ISOTHREN USB_OTG_DTHRCTL_ISOTHREN_Msk /*!< ISO IN endpoint threshold enable */
  20932. #define USB_OTG_DTHRCTL_TXTHRLEN_Pos (2U)
  20933. #define USB_OTG_DTHRCTL_TXTHRLEN_Msk (0x1FFUL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x000007FC */
  20934. #define USB_OTG_DTHRCTL_TXTHRLEN USB_OTG_DTHRCTL_TXTHRLEN_Msk /*!< Transmit threshold length */
  20935. #define USB_OTG_DTHRCTL_TXTHRLEN_0 (0x001UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000004 */
  20936. #define USB_OTG_DTHRCTL_TXTHRLEN_1 (0x002UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000008 */
  20937. #define USB_OTG_DTHRCTL_TXTHRLEN_2 (0x004UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000010 */
  20938. #define USB_OTG_DTHRCTL_TXTHRLEN_3 (0x008UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000020 */
  20939. #define USB_OTG_DTHRCTL_TXTHRLEN_4 (0x010UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000040 */
  20940. #define USB_OTG_DTHRCTL_TXTHRLEN_5 (0x020UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000080 */
  20941. #define USB_OTG_DTHRCTL_TXTHRLEN_6 (0x040UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000100 */
  20942. #define USB_OTG_DTHRCTL_TXTHRLEN_7 (0x080UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000200 */
  20943. #define USB_OTG_DTHRCTL_TXTHRLEN_8 (0x100UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000400 */
  20944. #define USB_OTG_DTHRCTL_RXTHREN_Pos (16U)
  20945. #define USB_OTG_DTHRCTL_RXTHREN_Msk (0x1UL << USB_OTG_DTHRCTL_RXTHREN_Pos) /*!< 0x00010000 */
  20946. #define USB_OTG_DTHRCTL_RXTHREN USB_OTG_DTHRCTL_RXTHREN_Msk /*!< Receive threshold enable */
  20947. #define USB_OTG_DTHRCTL_RXTHRLEN_Pos (17U)
  20948. #define USB_OTG_DTHRCTL_RXTHRLEN_Msk (0x1FFUL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x03FE0000 */
  20949. #define USB_OTG_DTHRCTL_RXTHRLEN USB_OTG_DTHRCTL_RXTHRLEN_Msk /*!< Receive threshold length */
  20950. #define USB_OTG_DTHRCTL_RXTHRLEN_0 (0x001UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00020000 */
  20951. #define USB_OTG_DTHRCTL_RXTHRLEN_1 (0x002UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00040000 */
  20952. #define USB_OTG_DTHRCTL_RXTHRLEN_2 (0x004UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00080000 */
  20953. #define USB_OTG_DTHRCTL_RXTHRLEN_3 (0x008UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00100000 */
  20954. #define USB_OTG_DTHRCTL_RXTHRLEN_4 (0x010UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00200000 */
  20955. #define USB_OTG_DTHRCTL_RXTHRLEN_5 (0x020UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00400000 */
  20956. #define USB_OTG_DTHRCTL_RXTHRLEN_6 (0x040UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00800000 */
  20957. #define USB_OTG_DTHRCTL_RXTHRLEN_7 (0x080UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x01000000 */
  20958. #define USB_OTG_DTHRCTL_RXTHRLEN_8 (0x100UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x02000000 */
  20959. #define USB_OTG_DTHRCTL_ARPEN_Pos (27U)
  20960. #define USB_OTG_DTHRCTL_ARPEN_Msk (0x1UL << USB_OTG_DTHRCTL_ARPEN_Pos) /*!< 0x08000000 */
  20961. #define USB_OTG_DTHRCTL_ARPEN USB_OTG_DTHRCTL_ARPEN_Msk /*!< Arbiter parking enable */
  20962. /******************** Bit definition forUSB_OTG_DIEPEMPMSK register ********************/
  20963. #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos (0U)
  20964. #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk (0xFFFFUL << USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos) /*!< 0x0000FFFF */
  20965. #define USB_OTG_DIEPEMPMSK_INEPTXFEM USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk /*!< IN EP Tx FIFO empty interrupt mask bits */
  20966. /******************** Bit definition forUSB_OTG_DEACHINT register ********************/
  20967. #define USB_OTG_DEACHINT_IEP1INT_Pos (1U)
  20968. #define USB_OTG_DEACHINT_IEP1INT_Msk (0x1UL << USB_OTG_DEACHINT_IEP1INT_Pos) /*!< 0x00000002 */
  20969. #define USB_OTG_DEACHINT_IEP1INT USB_OTG_DEACHINT_IEP1INT_Msk /*!< IN endpoint 1interrupt bit */
  20970. #define USB_OTG_DEACHINT_OEP1INT_Pos (17U)
  20971. #define USB_OTG_DEACHINT_OEP1INT_Msk (0x1UL << USB_OTG_DEACHINT_OEP1INT_Pos) /*!< 0x00020000 */
  20972. #define USB_OTG_DEACHINT_OEP1INT USB_OTG_DEACHINT_OEP1INT_Msk /*!< OUT endpoint 1 interrupt bit */
  20973. /******************** Bit definition forUSB_OTG_GCCFG register ********************/
  20974. #define USB_OTG_GCCFG_DCDET_Pos (0U)
  20975. #define USB_OTG_GCCFG_DCDET_Msk (0x1UL << USB_OTG_GCCFG_DCDET_Pos) /*!< 0x00000001 */
  20976. #define USB_OTG_GCCFG_DCDET USB_OTG_GCCFG_DCDET_Msk /*!< Data contact detection (DCD) status */
  20977. #define USB_OTG_GCCFG_PDET_Pos (1U)
  20978. #define USB_OTG_GCCFG_PDET_Msk (0x1UL << USB_OTG_GCCFG_PDET_Pos) /*!< 0x00000002 */
  20979. #define USB_OTG_GCCFG_PDET USB_OTG_GCCFG_PDET_Msk /*!< Primary detection (PD) status */
  20980. #define USB_OTG_GCCFG_SDET_Pos (2U)
  20981. #define USB_OTG_GCCFG_SDET_Msk (0x1UL << USB_OTG_GCCFG_SDET_Pos) /*!< 0x00000004 */
  20982. #define USB_OTG_GCCFG_SDET USB_OTG_GCCFG_SDET_Msk /*!< Secondary detection (SD) status */
  20983. #define USB_OTG_GCCFG_PS2DET_Pos (3U)
  20984. #define USB_OTG_GCCFG_PS2DET_Msk (0x1UL << USB_OTG_GCCFG_PS2DET_Pos) /*!< 0x00000008 */
  20985. #define USB_OTG_GCCFG_PS2DET USB_OTG_GCCFG_PS2DET_Msk /*!< DM pull-up detection status */
  20986. #define USB_OTG_GCCFG_PWRDWN_Pos (16U)
  20987. #define USB_OTG_GCCFG_PWRDWN_Msk (0x1UL << USB_OTG_GCCFG_PWRDWN_Pos) /*!< 0x00010000 */
  20988. #define USB_OTG_GCCFG_PWRDWN USB_OTG_GCCFG_PWRDWN_Msk /*!< Power down */
  20989. #define USB_OTG_GCCFG_BCDEN_Pos (17U)
  20990. #define USB_OTG_GCCFG_BCDEN_Msk (0x1UL << USB_OTG_GCCFG_BCDEN_Pos) /*!< 0x00020000 */
  20991. #define USB_OTG_GCCFG_BCDEN USB_OTG_GCCFG_BCDEN_Msk /*!< Battery charging detector (BCD) enable */
  20992. #define USB_OTG_GCCFG_DCDEN_Pos (18U)
  20993. #define USB_OTG_GCCFG_DCDEN_Msk (0x1UL << USB_OTG_GCCFG_DCDEN_Pos) /*!< 0x00040000 */
  20994. #define USB_OTG_GCCFG_DCDEN USB_OTG_GCCFG_DCDEN_Msk /*!< Data contact detection (DCD) mode enable*/
  20995. #define USB_OTG_GCCFG_PDEN_Pos (19U)
  20996. #define USB_OTG_GCCFG_PDEN_Msk (0x1UL << USB_OTG_GCCFG_PDEN_Pos) /*!< 0x00080000 */
  20997. #define USB_OTG_GCCFG_PDEN USB_OTG_GCCFG_PDEN_Msk /*!< Primary detection (PD) mode enable*/
  20998. #define USB_OTG_GCCFG_SDEN_Pos (20U)
  20999. #define USB_OTG_GCCFG_SDEN_Msk (0x1UL << USB_OTG_GCCFG_SDEN_Pos) /*!< 0x00100000 */
  21000. #define USB_OTG_GCCFG_SDEN USB_OTG_GCCFG_SDEN_Msk /*!< Secondary detection (SD) mode enable */
  21001. #define USB_OTG_GCCFG_VBDEN_Pos (21U)
  21002. #define USB_OTG_GCCFG_VBDEN_Msk (0x1UL << USB_OTG_GCCFG_VBDEN_Pos) /*!< 0x00200000 */
  21003. #define USB_OTG_GCCFG_VBDEN USB_OTG_GCCFG_VBDEN_Msk /*!< Secondary detection (SD) mode enable */
  21004. /******************** Bit definition forUSB_OTG_GPWRDN) register ********************/
  21005. #define USB_OTG_GPWRDN_ADPMEN_Pos (0U)
  21006. #define USB_OTG_GPWRDN_ADPMEN_Msk (0x1UL << USB_OTG_GPWRDN_ADPMEN_Pos) /*!< 0x00000001 */
  21007. #define USB_OTG_GPWRDN_ADPMEN USB_OTG_GPWRDN_ADPMEN_Msk /*!< ADP module enable */
  21008. #define USB_OTG_GPWRDN_ADPIF_Pos (23U)
  21009. #define USB_OTG_GPWRDN_ADPIF_Msk (0x1UL << USB_OTG_GPWRDN_ADPIF_Pos) /*!< 0x00800000 */
  21010. #define USB_OTG_GPWRDN_ADPIF USB_OTG_GPWRDN_ADPIF_Msk /*!< ADP Interrupt flag */
  21011. /******************** Bit definition forUSB_OTG_DEACHINTMSK register ********************/
  21012. #define USB_OTG_DEACHINTMSK_IEP1INTM_Pos (1U)
  21013. #define USB_OTG_DEACHINTMSK_IEP1INTM_Msk (0x1UL << USB_OTG_DEACHINTMSK_IEP1INTM_Pos) /*!< 0x00000002 */
  21014. #define USB_OTG_DEACHINTMSK_IEP1INTM USB_OTG_DEACHINTMSK_IEP1INTM_Msk /*!< IN Endpoint 1 interrupt mask bit */
  21015. #define USB_OTG_DEACHINTMSK_OEP1INTM_Pos (17U)
  21016. #define USB_OTG_DEACHINTMSK_OEP1INTM_Msk (0x1UL << USB_OTG_DEACHINTMSK_OEP1INTM_Pos) /*!< 0x00020000 */
  21017. #define USB_OTG_DEACHINTMSK_OEP1INTM USB_OTG_DEACHINTMSK_OEP1INTM_Msk /*!< OUT Endpoint 1 interrupt mask bit */
  21018. /******************** Bit definition forUSB_OTG_CID register ********************/
  21019. #define USB_OTG_CID_PRODUCT_ID_Pos (0U)
  21020. #define USB_OTG_CID_PRODUCT_ID_Msk (0xFFFFFFFFUL << USB_OTG_CID_PRODUCT_ID_Pos) /*!< 0xFFFFFFFF */
  21021. #define USB_OTG_CID_PRODUCT_ID USB_OTG_CID_PRODUCT_ID_Msk /*!< Product ID field */
  21022. /******************** Bit definition for USB_OTG_GLPMCFG register ********************/
  21023. #define USB_OTG_GLPMCFG_LPMEN_Pos (0U)
  21024. #define USB_OTG_GLPMCFG_LPMEN_Msk (0x1UL << USB_OTG_GLPMCFG_LPMEN_Pos) /*!< 0x00000001 */
  21025. #define USB_OTG_GLPMCFG_LPMEN USB_OTG_GLPMCFG_LPMEN_Msk /*!< LPM support enable */
  21026. #define USB_OTG_GLPMCFG_LPMACK_Pos (1U)
  21027. #define USB_OTG_GLPMCFG_LPMACK_Msk (0x1UL << USB_OTG_GLPMCFG_LPMACK_Pos) /*!< 0x00000002 */
  21028. #define USB_OTG_GLPMCFG_LPMACK USB_OTG_GLPMCFG_LPMACK_Msk /*!< LPM Token acknowledge enable */
  21029. #define USB_OTG_GLPMCFG_BESL_Pos (2U)
  21030. #define USB_OTG_GLPMCFG_BESL_Msk (0xFUL << USB_OTG_GLPMCFG_BESL_Pos) /*!< 0x0000003C */
  21031. #define USB_OTG_GLPMCFG_BESL USB_OTG_GLPMCFG_BESL_Msk /*!< BESL value received with last ACKed LPM Token */
  21032. #define USB_OTG_GLPMCFG_REMWAKE_Pos (6U)
  21033. #define USB_OTG_GLPMCFG_REMWAKE_Msk (0x1UL << USB_OTG_GLPMCFG_REMWAKE_Pos) /*!< 0x00000040 */
  21034. #define USB_OTG_GLPMCFG_REMWAKE USB_OTG_GLPMCFG_REMWAKE_Msk /*!< bRemoteWake value received with last ACKed LPM Token */
  21035. #define USB_OTG_GLPMCFG_L1SSEN_Pos (7U)
  21036. #define USB_OTG_GLPMCFG_L1SSEN_Msk (0x1UL << USB_OTG_GLPMCFG_L1SSEN_Pos) /*!< 0x00000080 */
  21037. #define USB_OTG_GLPMCFG_L1SSEN USB_OTG_GLPMCFG_L1SSEN_Msk /*!< L1 shallow sleep enable */
  21038. #define USB_OTG_GLPMCFG_BESLTHRS_Pos (8U)
  21039. #define USB_OTG_GLPMCFG_BESLTHRS_Msk (0xFUL << USB_OTG_GLPMCFG_BESLTHRS_Pos) /*!< 0x00000F00 */
  21040. #define USB_OTG_GLPMCFG_BESLTHRS USB_OTG_GLPMCFG_BESLTHRS_Msk /*!< BESL threshold */
  21041. #define USB_OTG_GLPMCFG_L1DSEN_Pos (12U)
  21042. #define USB_OTG_GLPMCFG_L1DSEN_Msk (0x1UL << USB_OTG_GLPMCFG_L1DSEN_Pos) /*!< 0x00001000 */
  21043. #define USB_OTG_GLPMCFG_L1DSEN USB_OTG_GLPMCFG_L1DSEN_Msk /*!< L1 deep sleep enable */
  21044. #define USB_OTG_GLPMCFG_LPMRSP_Pos (13U)
  21045. #define USB_OTG_GLPMCFG_LPMRSP_Msk (0x3UL << USB_OTG_GLPMCFG_LPMRSP_Pos) /*!< 0x00006000 */
  21046. #define USB_OTG_GLPMCFG_LPMRSP USB_OTG_GLPMCFG_LPMRSP_Msk /*!< LPM response */
  21047. #define USB_OTG_GLPMCFG_SLPSTS_Pos (15U)
  21048. #define USB_OTG_GLPMCFG_SLPSTS_Msk (0x1UL << USB_OTG_GLPMCFG_SLPSTS_Pos) /*!< 0x00008000 */
  21049. #define USB_OTG_GLPMCFG_SLPSTS USB_OTG_GLPMCFG_SLPSTS_Msk /*!< Port sleep status */
  21050. #define USB_OTG_GLPMCFG_L1RSMOK_Pos (16U)
  21051. #define USB_OTG_GLPMCFG_L1RSMOK_Msk (0x1UL << USB_OTG_GLPMCFG_L1RSMOK_Pos) /*!< 0x00010000 */
  21052. #define USB_OTG_GLPMCFG_L1RSMOK USB_OTG_GLPMCFG_L1RSMOK_Msk /*!< Sleep State Resume OK */
  21053. #define USB_OTG_GLPMCFG_LPMCHIDX_Pos (17U)
  21054. #define USB_OTG_GLPMCFG_LPMCHIDX_Msk (0xFUL << USB_OTG_GLPMCFG_LPMCHIDX_Pos) /*!< 0x001E0000 */
  21055. #define USB_OTG_GLPMCFG_LPMCHIDX USB_OTG_GLPMCFG_LPMCHIDX_Msk /*!< LPM Channel Index */
  21056. #define USB_OTG_GLPMCFG_LPMRCNT_Pos (21U)
  21057. #define USB_OTG_GLPMCFG_LPMRCNT_Msk (0x7UL << USB_OTG_GLPMCFG_LPMRCNT_Pos) /*!< 0x00E00000 */
  21058. #define USB_OTG_GLPMCFG_LPMRCNT USB_OTG_GLPMCFG_LPMRCNT_Msk /*!< LPM retry count */
  21059. #define USB_OTG_GLPMCFG_SNDLPM_Pos (24U)
  21060. #define USB_OTG_GLPMCFG_SNDLPM_Msk (0x1UL << USB_OTG_GLPMCFG_SNDLPM_Pos) /*!< 0x01000000 */
  21061. #define USB_OTG_GLPMCFG_SNDLPM USB_OTG_GLPMCFG_SNDLPM_Msk /*!< Send LPM transaction */
  21062. #define USB_OTG_GLPMCFG_LPMRCNTSTS_Pos (25U)
  21063. #define USB_OTG_GLPMCFG_LPMRCNTSTS_Msk (0x7UL << USB_OTG_GLPMCFG_LPMRCNTSTS_Pos) /*!< 0x0E000000 */
  21064. #define USB_OTG_GLPMCFG_LPMRCNTSTS USB_OTG_GLPMCFG_LPMRCNTSTS_Msk /*!< LPM retry count status */
  21065. #define USB_OTG_GLPMCFG_ENBESL_Pos (28U)
  21066. #define USB_OTG_GLPMCFG_ENBESL_Msk (0x1UL << USB_OTG_GLPMCFG_ENBESL_Pos) /*!< 0x10000000 */
  21067. #define USB_OTG_GLPMCFG_ENBESL USB_OTG_GLPMCFG_ENBESL_Msk /*!< Enable best effort service latency */
  21068. /******************** Bit definition forUSB_OTG_DIEPEACHMSK1 register ********************/
  21069. #define USB_OTG_DIEPEACHMSK1_XFRCM_Pos (0U)
  21070. #define USB_OTG_DIEPEACHMSK1_XFRCM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_XFRCM_Pos) /*!< 0x00000001 */
  21071. #define USB_OTG_DIEPEACHMSK1_XFRCM USB_OTG_DIEPEACHMSK1_XFRCM_Msk /*!< Transfer completed interrupt mask */
  21072. #define USB_OTG_DIEPEACHMSK1_EPDM_Pos (1U)
  21073. #define USB_OTG_DIEPEACHMSK1_EPDM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_EPDM_Pos) /*!< 0x00000002 */
  21074. #define USB_OTG_DIEPEACHMSK1_EPDM USB_OTG_DIEPEACHMSK1_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  21075. #define USB_OTG_DIEPEACHMSK1_TOM_Pos (3U)
  21076. #define USB_OTG_DIEPEACHMSK1_TOM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_TOM_Pos) /*!< 0x00000008 */
  21077. #define USB_OTG_DIEPEACHMSK1_TOM USB_OTG_DIEPEACHMSK1_TOM_Msk /*!< Timeout condition mask (nonisochronous endpoints) */
  21078. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos (4U)
  21079. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
  21080. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  21081. #define USB_OTG_DIEPEACHMSK1_INEPNMM_Pos (5U)
  21082. #define USB_OTG_DIEPEACHMSK1_INEPNMM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_INEPNMM_Pos) /*!< 0x00000020 */
  21083. #define USB_OTG_DIEPEACHMSK1_INEPNMM USB_OTG_DIEPEACHMSK1_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  21084. #define USB_OTG_DIEPEACHMSK1_INEPNEM_Pos (6U)
  21085. #define USB_OTG_DIEPEACHMSK1_INEPNEM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_INEPNEM_Pos) /*!< 0x00000040 */
  21086. #define USB_OTG_DIEPEACHMSK1_INEPNEM USB_OTG_DIEPEACHMSK1_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  21087. #define USB_OTG_DIEPEACHMSK1_TXFURM_Pos (8U)
  21088. #define USB_OTG_DIEPEACHMSK1_TXFURM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_TXFURM_Pos) /*!< 0x00000100 */
  21089. #define USB_OTG_DIEPEACHMSK1_TXFURM USB_OTG_DIEPEACHMSK1_TXFURM_Msk /*!< FIFO underrun mask */
  21090. #define USB_OTG_DIEPEACHMSK1_BIM_Pos (9U)
  21091. #define USB_OTG_DIEPEACHMSK1_BIM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_BIM_Pos) /*!< 0x00000200 */
  21092. #define USB_OTG_DIEPEACHMSK1_BIM USB_OTG_DIEPEACHMSK1_BIM_Msk /*!< BNA interrupt mask */
  21093. #define USB_OTG_DIEPEACHMSK1_NAKM_Pos (13U)
  21094. #define USB_OTG_DIEPEACHMSK1_NAKM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_NAKM_Pos) /*!< 0x00002000 */
  21095. #define USB_OTG_DIEPEACHMSK1_NAKM USB_OTG_DIEPEACHMSK1_NAKM_Msk /*!< NAK interrupt mask */
  21096. /******************** Bit definition forUSB_OTG_HPRT register ********************/
  21097. #define USB_OTG_HPRT_PCSTS_Pos (0U)
  21098. #define USB_OTG_HPRT_PCSTS_Msk (0x1UL << USB_OTG_HPRT_PCSTS_Pos) /*!< 0x00000001 */
  21099. #define USB_OTG_HPRT_PCSTS USB_OTG_HPRT_PCSTS_Msk /*!< Port connect status */
  21100. #define USB_OTG_HPRT_PCDET_Pos (1U)
  21101. #define USB_OTG_HPRT_PCDET_Msk (0x1UL << USB_OTG_HPRT_PCDET_Pos) /*!< 0x00000002 */
  21102. #define USB_OTG_HPRT_PCDET USB_OTG_HPRT_PCDET_Msk /*!< Port connect detected */
  21103. #define USB_OTG_HPRT_PENA_Pos (2U)
  21104. #define USB_OTG_HPRT_PENA_Msk (0x1UL << USB_OTG_HPRT_PENA_Pos) /*!< 0x00000004 */
  21105. #define USB_OTG_HPRT_PENA USB_OTG_HPRT_PENA_Msk /*!< Port enable */
  21106. #define USB_OTG_HPRT_PENCHNG_Pos (3U)
  21107. #define USB_OTG_HPRT_PENCHNG_Msk (0x1UL << USB_OTG_HPRT_PENCHNG_Pos) /*!< 0x00000008 */
  21108. #define USB_OTG_HPRT_PENCHNG USB_OTG_HPRT_PENCHNG_Msk /*!< Port enable/disable change */
  21109. #define USB_OTG_HPRT_POCA_Pos (4U)
  21110. #define USB_OTG_HPRT_POCA_Msk (0x1UL << USB_OTG_HPRT_POCA_Pos) /*!< 0x00000010 */
  21111. #define USB_OTG_HPRT_POCA USB_OTG_HPRT_POCA_Msk /*!< Port overcurrent active */
  21112. #define USB_OTG_HPRT_POCCHNG_Pos (5U)
  21113. #define USB_OTG_HPRT_POCCHNG_Msk (0x1UL << USB_OTG_HPRT_POCCHNG_Pos) /*!< 0x00000020 */
  21114. #define USB_OTG_HPRT_POCCHNG USB_OTG_HPRT_POCCHNG_Msk /*!< Port overcurrent change */
  21115. #define USB_OTG_HPRT_PRES_Pos (6U)
  21116. #define USB_OTG_HPRT_PRES_Msk (0x1UL << USB_OTG_HPRT_PRES_Pos) /*!< 0x00000040 */
  21117. #define USB_OTG_HPRT_PRES USB_OTG_HPRT_PRES_Msk /*!< Port resume */
  21118. #define USB_OTG_HPRT_PSUSP_Pos (7U)
  21119. #define USB_OTG_HPRT_PSUSP_Msk (0x1UL << USB_OTG_HPRT_PSUSP_Pos) /*!< 0x00000080 */
  21120. #define USB_OTG_HPRT_PSUSP USB_OTG_HPRT_PSUSP_Msk /*!< Port suspend */
  21121. #define USB_OTG_HPRT_PRST_Pos (8U)
  21122. #define USB_OTG_HPRT_PRST_Msk (0x1UL << USB_OTG_HPRT_PRST_Pos) /*!< 0x00000100 */
  21123. #define USB_OTG_HPRT_PRST USB_OTG_HPRT_PRST_Msk /*!< Port reset */
  21124. #define USB_OTG_HPRT_PLSTS_Pos (10U)
  21125. #define USB_OTG_HPRT_PLSTS_Msk (0x3UL << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000C00 */
  21126. #define USB_OTG_HPRT_PLSTS USB_OTG_HPRT_PLSTS_Msk /*!< Port line status */
  21127. #define USB_OTG_HPRT_PLSTS_0 (0x1UL << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000400 */
  21128. #define USB_OTG_HPRT_PLSTS_1 (0x2UL << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000800 */
  21129. #define USB_OTG_HPRT_PPWR_Pos (12U)
  21130. #define USB_OTG_HPRT_PPWR_Msk (0x1UL << USB_OTG_HPRT_PPWR_Pos) /*!< 0x00001000 */
  21131. #define USB_OTG_HPRT_PPWR USB_OTG_HPRT_PPWR_Msk /*!< Port power */
  21132. #define USB_OTG_HPRT_PTCTL_Pos (13U)
  21133. #define USB_OTG_HPRT_PTCTL_Msk (0xFUL << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x0001E000 */
  21134. #define USB_OTG_HPRT_PTCTL USB_OTG_HPRT_PTCTL_Msk /*!< Port test control */
  21135. #define USB_OTG_HPRT_PTCTL_0 (0x1UL << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00002000 */
  21136. #define USB_OTG_HPRT_PTCTL_1 (0x2UL << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00004000 */
  21137. #define USB_OTG_HPRT_PTCTL_2 (0x4UL << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00008000 */
  21138. #define USB_OTG_HPRT_PTCTL_3 (0x8UL << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00010000 */
  21139. #define USB_OTG_HPRT_PSPD_Pos (17U)
  21140. #define USB_OTG_HPRT_PSPD_Msk (0x3UL << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00060000 */
  21141. #define USB_OTG_HPRT_PSPD USB_OTG_HPRT_PSPD_Msk /*!< Port speed */
  21142. #define USB_OTG_HPRT_PSPD_0 (0x1UL << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00020000 */
  21143. #define USB_OTG_HPRT_PSPD_1 (0x2UL << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00040000 */
  21144. /******************** Bit definition forUSB_OTG_DOEPEACHMSK1 register ********************/
  21145. #define USB_OTG_DOEPEACHMSK1_XFRCM_Pos (0U)
  21146. #define USB_OTG_DOEPEACHMSK1_XFRCM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_XFRCM_Pos) /*!< 0x00000001 */
  21147. #define USB_OTG_DOEPEACHMSK1_XFRCM USB_OTG_DOEPEACHMSK1_XFRCM_Msk /*!< Transfer completed interrupt mask */
  21148. #define USB_OTG_DOEPEACHMSK1_EPDM_Pos (1U)
  21149. #define USB_OTG_DOEPEACHMSK1_EPDM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_EPDM_Pos) /*!< 0x00000002 */
  21150. #define USB_OTG_DOEPEACHMSK1_EPDM USB_OTG_DOEPEACHMSK1_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  21151. #define USB_OTG_DOEPEACHMSK1_TOM_Pos (3U)
  21152. #define USB_OTG_DOEPEACHMSK1_TOM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_TOM_Pos) /*!< 0x00000008 */
  21153. #define USB_OTG_DOEPEACHMSK1_TOM USB_OTG_DOEPEACHMSK1_TOM_Msk /*!< Timeout condition mask */
  21154. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos (4U)
  21155. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
  21156. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  21157. #define USB_OTG_DOEPEACHMSK1_INEPNMM_Pos (5U)
  21158. #define USB_OTG_DOEPEACHMSK1_INEPNMM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_INEPNMM_Pos) /*!< 0x00000020 */
  21159. #define USB_OTG_DOEPEACHMSK1_INEPNMM USB_OTG_DOEPEACHMSK1_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  21160. #define USB_OTG_DOEPEACHMSK1_INEPNEM_Pos (6U)
  21161. #define USB_OTG_DOEPEACHMSK1_INEPNEM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_INEPNEM_Pos) /*!< 0x00000040 */
  21162. #define USB_OTG_DOEPEACHMSK1_INEPNEM USB_OTG_DOEPEACHMSK1_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  21163. #define USB_OTG_DOEPEACHMSK1_TXFURM_Pos (8U)
  21164. #define USB_OTG_DOEPEACHMSK1_TXFURM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_TXFURM_Pos) /*!< 0x00000100 */
  21165. #define USB_OTG_DOEPEACHMSK1_TXFURM USB_OTG_DOEPEACHMSK1_TXFURM_Msk /*!< OUT packet error mask */
  21166. #define USB_OTG_DOEPEACHMSK1_BIM_Pos (9U)
  21167. #define USB_OTG_DOEPEACHMSK1_BIM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_BIM_Pos) /*!< 0x00000200 */
  21168. #define USB_OTG_DOEPEACHMSK1_BIM USB_OTG_DOEPEACHMSK1_BIM_Msk /*!< BNA interrupt mask */
  21169. #define USB_OTG_DOEPEACHMSK1_BERRM_Pos (12U)
  21170. #define USB_OTG_DOEPEACHMSK1_BERRM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_BERRM_Pos) /*!< 0x00001000 */
  21171. #define USB_OTG_DOEPEACHMSK1_BERRM USB_OTG_DOEPEACHMSK1_BERRM_Msk /*!< Bubble error interrupt mask */
  21172. #define USB_OTG_DOEPEACHMSK1_NAKM_Pos (13U)
  21173. #define USB_OTG_DOEPEACHMSK1_NAKM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_NAKM_Pos) /*!< 0x00002000 */
  21174. #define USB_OTG_DOEPEACHMSK1_NAKM USB_OTG_DOEPEACHMSK1_NAKM_Msk /*!< NAK interrupt mask */
  21175. #define USB_OTG_DOEPEACHMSK1_NYETM_Pos (14U)
  21176. #define USB_OTG_DOEPEACHMSK1_NYETM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_NYETM_Pos) /*!< 0x00004000 */
  21177. #define USB_OTG_DOEPEACHMSK1_NYETM USB_OTG_DOEPEACHMSK1_NYETM_Msk /*!< NYET interrupt mask */
  21178. /******************** Bit definition forUSB_OTG_HPTXFSIZ register ********************/
  21179. #define USB_OTG_HPTXFSIZ_PTXSA_Pos (0U)
  21180. #define USB_OTG_HPTXFSIZ_PTXSA_Msk (0xFFFFUL << USB_OTG_HPTXFSIZ_PTXSA_Pos) /*!< 0x0000FFFF */
  21181. #define USB_OTG_HPTXFSIZ_PTXSA USB_OTG_HPTXFSIZ_PTXSA_Msk /*!< Host periodic TxFIFO start address */
  21182. #define USB_OTG_HPTXFSIZ_PTXFD_Pos (16U)
  21183. #define USB_OTG_HPTXFSIZ_PTXFD_Msk (0xFFFFUL << USB_OTG_HPTXFSIZ_PTXFD_Pos) /*!< 0xFFFF0000 */
  21184. #define USB_OTG_HPTXFSIZ_PTXFD USB_OTG_HPTXFSIZ_PTXFD_Msk /*!< Host periodic TxFIFO depth */
  21185. /******************** Bit definition forUSB_OTG_DIEPCTL register ********************/
  21186. #define USB_OTG_DIEPCTL_MPSIZ_Pos (0U)
  21187. #define USB_OTG_DIEPCTL_MPSIZ_Msk (0x7FFUL << USB_OTG_DIEPCTL_MPSIZ_Pos) /*!< 0x000007FF */
  21188. #define USB_OTG_DIEPCTL_MPSIZ USB_OTG_DIEPCTL_MPSIZ_Msk /*!< Maximum packet size */
  21189. #define USB_OTG_DIEPCTL_USBAEP_Pos (15U)
  21190. #define USB_OTG_DIEPCTL_USBAEP_Msk (0x1UL << USB_OTG_DIEPCTL_USBAEP_Pos) /*!< 0x00008000 */
  21191. #define USB_OTG_DIEPCTL_USBAEP USB_OTG_DIEPCTL_USBAEP_Msk /*!< USB active endpoint */
  21192. #define USB_OTG_DIEPCTL_EONUM_DPID_Pos (16U)
  21193. #define USB_OTG_DIEPCTL_EONUM_DPID_Msk (0x1UL << USB_OTG_DIEPCTL_EONUM_DPID_Pos) /*!< 0x00010000 */
  21194. #define USB_OTG_DIEPCTL_EONUM_DPID USB_OTG_DIEPCTL_EONUM_DPID_Msk /*!< Even/odd frame */
  21195. #define USB_OTG_DIEPCTL_NAKSTS_Pos (17U)
  21196. #define USB_OTG_DIEPCTL_NAKSTS_Msk (0x1UL << USB_OTG_DIEPCTL_NAKSTS_Pos) /*!< 0x00020000 */
  21197. #define USB_OTG_DIEPCTL_NAKSTS USB_OTG_DIEPCTL_NAKSTS_Msk /*!< NAK status */
  21198. #define USB_OTG_DIEPCTL_EPTYP_Pos (18U)
  21199. #define USB_OTG_DIEPCTL_EPTYP_Msk (0x3UL << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x000C0000 */
  21200. #define USB_OTG_DIEPCTL_EPTYP USB_OTG_DIEPCTL_EPTYP_Msk /*!< Endpoint type */
  21201. #define USB_OTG_DIEPCTL_EPTYP_0 (0x1UL << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x00040000 */
  21202. #define USB_OTG_DIEPCTL_EPTYP_1 (0x2UL << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x00080000 */
  21203. #define USB_OTG_DIEPCTL_STALL_Pos (21U)
  21204. #define USB_OTG_DIEPCTL_STALL_Msk (0x1UL << USB_OTG_DIEPCTL_STALL_Pos) /*!< 0x00200000 */
  21205. #define USB_OTG_DIEPCTL_STALL USB_OTG_DIEPCTL_STALL_Msk /*!< STALL handshake */
  21206. #define USB_OTG_DIEPCTL_TXFNUM_Pos (22U)
  21207. #define USB_OTG_DIEPCTL_TXFNUM_Msk (0xFUL << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x03C00000 */
  21208. #define USB_OTG_DIEPCTL_TXFNUM USB_OTG_DIEPCTL_TXFNUM_Msk /*!< TxFIFO number */
  21209. #define USB_OTG_DIEPCTL_TXFNUM_0 (0x1UL << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x00400000 */
  21210. #define USB_OTG_DIEPCTL_TXFNUM_1 (0x2UL << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x00800000 */
  21211. #define USB_OTG_DIEPCTL_TXFNUM_2 (0x4UL << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x01000000 */
  21212. #define USB_OTG_DIEPCTL_TXFNUM_3 (0x8UL << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x02000000 */
  21213. #define USB_OTG_DIEPCTL_CNAK_Pos (26U)
  21214. #define USB_OTG_DIEPCTL_CNAK_Msk (0x1UL << USB_OTG_DIEPCTL_CNAK_Pos) /*!< 0x04000000 */
  21215. #define USB_OTG_DIEPCTL_CNAK USB_OTG_DIEPCTL_CNAK_Msk /*!< Clear NAK */
  21216. #define USB_OTG_DIEPCTL_SNAK_Pos (27U)
  21217. #define USB_OTG_DIEPCTL_SNAK_Msk (0x1UL << USB_OTG_DIEPCTL_SNAK_Pos) /*!< 0x08000000 */
  21218. #define USB_OTG_DIEPCTL_SNAK USB_OTG_DIEPCTL_SNAK_Msk /*!< Set NAK */
  21219. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos (28U)
  21220. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk (0x1UL << USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
  21221. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk /*!< Set DATA0 PID */
  21222. #define USB_OTG_DIEPCTL_SODDFRM_Pos (29U)
  21223. #define USB_OTG_DIEPCTL_SODDFRM_Msk (0x1UL << USB_OTG_DIEPCTL_SODDFRM_Pos) /*!< 0x20000000 */
  21224. #define USB_OTG_DIEPCTL_SODDFRM USB_OTG_DIEPCTL_SODDFRM_Msk /*!< Set odd frame */
  21225. #define USB_OTG_DIEPCTL_EPDIS_Pos (30U)
  21226. #define USB_OTG_DIEPCTL_EPDIS_Msk (0x1UL << USB_OTG_DIEPCTL_EPDIS_Pos) /*!< 0x40000000 */
  21227. #define USB_OTG_DIEPCTL_EPDIS USB_OTG_DIEPCTL_EPDIS_Msk /*!< Endpoint disable */
  21228. #define USB_OTG_DIEPCTL_EPENA_Pos (31U)
  21229. #define USB_OTG_DIEPCTL_EPENA_Msk (0x1UL << USB_OTG_DIEPCTL_EPENA_Pos) /*!< 0x80000000 */
  21230. #define USB_OTG_DIEPCTL_EPENA USB_OTG_DIEPCTL_EPENA_Msk /*!< Endpoint enable */
  21231. /******************** Bit definition forUSB_OTG_HCCHAR register ********************/
  21232. #define USB_OTG_HCCHAR_MPSIZ_Pos (0U)
  21233. #define USB_OTG_HCCHAR_MPSIZ_Msk (0x7FFUL << USB_OTG_HCCHAR_MPSIZ_Pos) /*!< 0x000007FF */
  21234. #define USB_OTG_HCCHAR_MPSIZ USB_OTG_HCCHAR_MPSIZ_Msk /*!< Maximum packet size */
  21235. #define USB_OTG_HCCHAR_EPNUM_Pos (11U)
  21236. #define USB_OTG_HCCHAR_EPNUM_Msk (0xFUL << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00007800 */
  21237. #define USB_OTG_HCCHAR_EPNUM USB_OTG_HCCHAR_EPNUM_Msk /*!< Endpoint number */
  21238. #define USB_OTG_HCCHAR_EPNUM_0 (0x1UL << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00000800 */
  21239. #define USB_OTG_HCCHAR_EPNUM_1 (0x2UL << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00001000 */
  21240. #define USB_OTG_HCCHAR_EPNUM_2 (0x4UL << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00002000 */
  21241. #define USB_OTG_HCCHAR_EPNUM_3 (0x8UL << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00004000 */
  21242. #define USB_OTG_HCCHAR_EPDIR_Pos (15U)
  21243. #define USB_OTG_HCCHAR_EPDIR_Msk (0x1UL << USB_OTG_HCCHAR_EPDIR_Pos) /*!< 0x00008000 */
  21244. #define USB_OTG_HCCHAR_EPDIR USB_OTG_HCCHAR_EPDIR_Msk /*!< Endpoint direction */
  21245. #define USB_OTG_HCCHAR_LSDEV_Pos (17U)
  21246. #define USB_OTG_HCCHAR_LSDEV_Msk (0x1UL << USB_OTG_HCCHAR_LSDEV_Pos) /*!< 0x00020000 */
  21247. #define USB_OTG_HCCHAR_LSDEV USB_OTG_HCCHAR_LSDEV_Msk /*!< Low-speed device */
  21248. #define USB_OTG_HCCHAR_EPTYP_Pos (18U)
  21249. #define USB_OTG_HCCHAR_EPTYP_Msk (0x3UL << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x000C0000 */
  21250. #define USB_OTG_HCCHAR_EPTYP USB_OTG_HCCHAR_EPTYP_Msk /*!< Endpoint type */
  21251. #define USB_OTG_HCCHAR_EPTYP_0 (0x1UL << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x00040000 */
  21252. #define USB_OTG_HCCHAR_EPTYP_1 (0x2UL << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x00080000 */
  21253. #define USB_OTG_HCCHAR_MC_Pos (20U)
  21254. #define USB_OTG_HCCHAR_MC_Msk (0x3UL << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00300000 */
  21255. #define USB_OTG_HCCHAR_MC USB_OTG_HCCHAR_MC_Msk /*!< Multi Count (MC) / Error Count (EC) */
  21256. #define USB_OTG_HCCHAR_MC_0 (0x1UL << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00100000 */
  21257. #define USB_OTG_HCCHAR_MC_1 (0x2UL << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00200000 */
  21258. #define USB_OTG_HCCHAR_DAD_Pos (22U)
  21259. #define USB_OTG_HCCHAR_DAD_Msk (0x7FUL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x1FC00000 */
  21260. #define USB_OTG_HCCHAR_DAD USB_OTG_HCCHAR_DAD_Msk /*!< Device address */
  21261. #define USB_OTG_HCCHAR_DAD_0 (0x01UL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x00400000 */
  21262. #define USB_OTG_HCCHAR_DAD_1 (0x02UL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x00800000 */
  21263. #define USB_OTG_HCCHAR_DAD_2 (0x04UL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x01000000 */
  21264. #define USB_OTG_HCCHAR_DAD_3 (0x08UL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x02000000 */
  21265. #define USB_OTG_HCCHAR_DAD_4 (0x10UL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x04000000 */
  21266. #define USB_OTG_HCCHAR_DAD_5 (0x20UL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x08000000 */
  21267. #define USB_OTG_HCCHAR_DAD_6 (0x40UL << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x10000000 */
  21268. #define USB_OTG_HCCHAR_ODDFRM_Pos (29U)
  21269. #define USB_OTG_HCCHAR_ODDFRM_Msk (0x1UL << USB_OTG_HCCHAR_ODDFRM_Pos) /*!< 0x20000000 */
  21270. #define USB_OTG_HCCHAR_ODDFRM USB_OTG_HCCHAR_ODDFRM_Msk /*!< Odd frame */
  21271. #define USB_OTG_HCCHAR_CHDIS_Pos (30U)
  21272. #define USB_OTG_HCCHAR_CHDIS_Msk (0x1UL << USB_OTG_HCCHAR_CHDIS_Pos) /*!< 0x40000000 */
  21273. #define USB_OTG_HCCHAR_CHDIS USB_OTG_HCCHAR_CHDIS_Msk /*!< Channel disable */
  21274. #define USB_OTG_HCCHAR_CHENA_Pos (31U)
  21275. #define USB_OTG_HCCHAR_CHENA_Msk (0x1UL << USB_OTG_HCCHAR_CHENA_Pos) /*!< 0x80000000 */
  21276. #define USB_OTG_HCCHAR_CHENA USB_OTG_HCCHAR_CHENA_Msk /*!< Channel enable */
  21277. /******************** Bit definition forUSB_OTG_HCSPLT register ********************/
  21278. #define USB_OTG_HCSPLT_PRTADDR_Pos (0U)
  21279. #define USB_OTG_HCSPLT_PRTADDR_Msk (0x7FUL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x0000007F */
  21280. #define USB_OTG_HCSPLT_PRTADDR USB_OTG_HCSPLT_PRTADDR_Msk /*!< Port address */
  21281. #define USB_OTG_HCSPLT_PRTADDR_0 (0x01UL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000001 */
  21282. #define USB_OTG_HCSPLT_PRTADDR_1 (0x02UL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000002 */
  21283. #define USB_OTG_HCSPLT_PRTADDR_2 (0x04UL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000004 */
  21284. #define USB_OTG_HCSPLT_PRTADDR_3 (0x08UL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000008 */
  21285. #define USB_OTG_HCSPLT_PRTADDR_4 (0x10UL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000010 */
  21286. #define USB_OTG_HCSPLT_PRTADDR_5 (0x20UL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000020 */
  21287. #define USB_OTG_HCSPLT_PRTADDR_6 (0x40UL << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000040 */
  21288. #define USB_OTG_HCSPLT_HUBADDR_Pos (7U)
  21289. #define USB_OTG_HCSPLT_HUBADDR_Msk (0x7FUL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00003F80 */
  21290. #define USB_OTG_HCSPLT_HUBADDR USB_OTG_HCSPLT_HUBADDR_Msk /*!< Hub address */
  21291. #define USB_OTG_HCSPLT_HUBADDR_0 (0x01UL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000080 */
  21292. #define USB_OTG_HCSPLT_HUBADDR_1 (0x02UL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000100 */
  21293. #define USB_OTG_HCSPLT_HUBADDR_2 (0x04UL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000200 */
  21294. #define USB_OTG_HCSPLT_HUBADDR_3 (0x08UL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000400 */
  21295. #define USB_OTG_HCSPLT_HUBADDR_4 (0x10UL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000800 */
  21296. #define USB_OTG_HCSPLT_HUBADDR_5 (0x20UL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00001000 */
  21297. #define USB_OTG_HCSPLT_HUBADDR_6 (0x40UL << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00002000 */
  21298. #define USB_OTG_HCSPLT_XACTPOS_Pos (14U)
  21299. #define USB_OTG_HCSPLT_XACTPOS_Msk (0x3UL << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x0000C000 */
  21300. #define USB_OTG_HCSPLT_XACTPOS USB_OTG_HCSPLT_XACTPOS_Msk /*!< XACTPOS */
  21301. #define USB_OTG_HCSPLT_XACTPOS_0 (0x1UL << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x00004000 */
  21302. #define USB_OTG_HCSPLT_XACTPOS_1 (0x2UL << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x00008000 */
  21303. #define USB_OTG_HCSPLT_COMPLSPLT_Pos (16U)
  21304. #define USB_OTG_HCSPLT_COMPLSPLT_Msk (0x1UL << USB_OTG_HCSPLT_COMPLSPLT_Pos) /*!< 0x00010000 */
  21305. #define USB_OTG_HCSPLT_COMPLSPLT USB_OTG_HCSPLT_COMPLSPLT_Msk /*!< Do complete split */
  21306. #define USB_OTG_HCSPLT_SPLITEN_Pos (31U)
  21307. #define USB_OTG_HCSPLT_SPLITEN_Msk (0x1UL << USB_OTG_HCSPLT_SPLITEN_Pos) /*!< 0x80000000 */
  21308. #define USB_OTG_HCSPLT_SPLITEN USB_OTG_HCSPLT_SPLITEN_Msk /*!< Split enable */
  21309. /******************** Bit definition forUSB_OTG_HCINT register ********************/
  21310. #define USB_OTG_HCINT_XFRC_Pos (0U)
  21311. #define USB_OTG_HCINT_XFRC_Msk (0x1UL << USB_OTG_HCINT_XFRC_Pos) /*!< 0x00000001 */
  21312. #define USB_OTG_HCINT_XFRC USB_OTG_HCINT_XFRC_Msk /*!< Transfer completed */
  21313. #define USB_OTG_HCINT_CHH_Pos (1U)
  21314. #define USB_OTG_HCINT_CHH_Msk (0x1UL << USB_OTG_HCINT_CHH_Pos) /*!< 0x00000002 */
  21315. #define USB_OTG_HCINT_CHH USB_OTG_HCINT_CHH_Msk /*!< Channel halted */
  21316. #define USB_OTG_HCINT_AHBERR_Pos (2U)
  21317. #define USB_OTG_HCINT_AHBERR_Msk (0x1UL << USB_OTG_HCINT_AHBERR_Pos) /*!< 0x00000004 */
  21318. #define USB_OTG_HCINT_AHBERR USB_OTG_HCINT_AHBERR_Msk /*!< AHB error */
  21319. #define USB_OTG_HCINT_STALL_Pos (3U)
  21320. #define USB_OTG_HCINT_STALL_Msk (0x1UL << USB_OTG_HCINT_STALL_Pos) /*!< 0x00000008 */
  21321. #define USB_OTG_HCINT_STALL USB_OTG_HCINT_STALL_Msk /*!< STALL response received interrupt */
  21322. #define USB_OTG_HCINT_NAK_Pos (4U)
  21323. #define USB_OTG_HCINT_NAK_Msk (0x1UL << USB_OTG_HCINT_NAK_Pos) /*!< 0x00000010 */
  21324. #define USB_OTG_HCINT_NAK USB_OTG_HCINT_NAK_Msk /*!< NAK response received interrupt */
  21325. #define USB_OTG_HCINT_ACK_Pos (5U)
  21326. #define USB_OTG_HCINT_ACK_Msk (0x1UL << USB_OTG_HCINT_ACK_Pos) /*!< 0x00000020 */
  21327. #define USB_OTG_HCINT_ACK USB_OTG_HCINT_ACK_Msk /*!< ACK response received/transmitted interrupt */
  21328. #define USB_OTG_HCINT_NYET_Pos (6U)
  21329. #define USB_OTG_HCINT_NYET_Msk (0x1UL << USB_OTG_HCINT_NYET_Pos) /*!< 0x00000040 */
  21330. #define USB_OTG_HCINT_NYET USB_OTG_HCINT_NYET_Msk /*!< Response received interrupt */
  21331. #define USB_OTG_HCINT_TXERR_Pos (7U)
  21332. #define USB_OTG_HCINT_TXERR_Msk (0x1UL << USB_OTG_HCINT_TXERR_Pos) /*!< 0x00000080 */
  21333. #define USB_OTG_HCINT_TXERR USB_OTG_HCINT_TXERR_Msk /*!< Transaction error */
  21334. #define USB_OTG_HCINT_BBERR_Pos (8U)
  21335. #define USB_OTG_HCINT_BBERR_Msk (0x1UL << USB_OTG_HCINT_BBERR_Pos) /*!< 0x00000100 */
  21336. #define USB_OTG_HCINT_BBERR USB_OTG_HCINT_BBERR_Msk /*!< Babble error */
  21337. #define USB_OTG_HCINT_FRMOR_Pos (9U)
  21338. #define USB_OTG_HCINT_FRMOR_Msk (0x1UL << USB_OTG_HCINT_FRMOR_Pos) /*!< 0x00000200 */
  21339. #define USB_OTG_HCINT_FRMOR USB_OTG_HCINT_FRMOR_Msk /*!< Frame overrun */
  21340. #define USB_OTG_HCINT_DTERR_Pos (10U)
  21341. #define USB_OTG_HCINT_DTERR_Msk (0x1UL << USB_OTG_HCINT_DTERR_Pos) /*!< 0x00000400 */
  21342. #define USB_OTG_HCINT_DTERR USB_OTG_HCINT_DTERR_Msk /*!< Data toggle error */
  21343. /******************** Bit definition forUSB_OTG_DIEPINT register ********************/
  21344. #define USB_OTG_DIEPINT_XFRC_Pos (0U)
  21345. #define USB_OTG_DIEPINT_XFRC_Msk (0x1UL << USB_OTG_DIEPINT_XFRC_Pos) /*!< 0x00000001 */
  21346. #define USB_OTG_DIEPINT_XFRC USB_OTG_DIEPINT_XFRC_Msk /*!< Transfer completed interrupt */
  21347. #define USB_OTG_DIEPINT_EPDISD_Pos (1U)
  21348. #define USB_OTG_DIEPINT_EPDISD_Msk (0x1UL << USB_OTG_DIEPINT_EPDISD_Pos) /*!< 0x00000002 */
  21349. #define USB_OTG_DIEPINT_EPDISD USB_OTG_DIEPINT_EPDISD_Msk /*!< Endpoint disabled interrupt */
  21350. #define USB_OTG_DIEPINT_AHBERR_Pos (2U)
  21351. #define USB_OTG_DIEPINT_AHBERR_Msk (0x1UL << USB_OTG_DIEPINT_AHBERR_Pos) /*!< 0x00000004 */
  21352. #define USB_OTG_DIEPINT_AHBERR USB_OTG_DIEPINT_AHBERR_Msk /*!< AHB Error (AHBErr) during an IN transaction */
  21353. #define USB_OTG_DIEPINT_TOC_Pos (3U)
  21354. #define USB_OTG_DIEPINT_TOC_Msk (0x1UL << USB_OTG_DIEPINT_TOC_Pos) /*!< 0x00000008 */
  21355. #define USB_OTG_DIEPINT_TOC USB_OTG_DIEPINT_TOC_Msk /*!< Timeout condition */
  21356. #define USB_OTG_DIEPINT_ITTXFE_Pos (4U)
  21357. #define USB_OTG_DIEPINT_ITTXFE_Msk (0x1UL << USB_OTG_DIEPINT_ITTXFE_Pos) /*!< 0x00000010 */
  21358. #define USB_OTG_DIEPINT_ITTXFE USB_OTG_DIEPINT_ITTXFE_Msk /*!< IN token received when TxFIFO is empty */
  21359. #define USB_OTG_DIEPINT_INEPNM_Pos (5U)
  21360. #define USB_OTG_DIEPINT_INEPNM_Msk (0x1UL << USB_OTG_DIEPINT_INEPNM_Pos) /*!< 0x00000020 */
  21361. #define USB_OTG_DIEPINT_INEPNM USB_OTG_DIEPINT_INEPNM_Msk /*!< IN token received with EP mismatch */
  21362. #define USB_OTG_DIEPINT_INEPNE_Pos (6U)
  21363. #define USB_OTG_DIEPINT_INEPNE_Msk (0x1UL << USB_OTG_DIEPINT_INEPNE_Pos) /*!< 0x00000040 */
  21364. #define USB_OTG_DIEPINT_INEPNE USB_OTG_DIEPINT_INEPNE_Msk /*!< IN endpoint NAK effective */
  21365. #define USB_OTG_DIEPINT_TXFE_Pos (7U)
  21366. #define USB_OTG_DIEPINT_TXFE_Msk (0x1UL << USB_OTG_DIEPINT_TXFE_Pos) /*!< 0x00000080 */
  21367. #define USB_OTG_DIEPINT_TXFE USB_OTG_DIEPINT_TXFE_Msk /*!< Transmit FIFO empty */
  21368. #define USB_OTG_DIEPINT_TXFIFOUDRN_Pos (8U)
  21369. #define USB_OTG_DIEPINT_TXFIFOUDRN_Msk (0x1UL << USB_OTG_DIEPINT_TXFIFOUDRN_Pos) /*!< 0x00000100 */
  21370. #define USB_OTG_DIEPINT_TXFIFOUDRN USB_OTG_DIEPINT_TXFIFOUDRN_Msk /*!< Transmit Fifo Underrun */
  21371. #define USB_OTG_DIEPINT_BNA_Pos (9U)
  21372. #define USB_OTG_DIEPINT_BNA_Msk (0x1UL << USB_OTG_DIEPINT_BNA_Pos) /*!< 0x00000200 */
  21373. #define USB_OTG_DIEPINT_BNA USB_OTG_DIEPINT_BNA_Msk /*!< Buffer not available interrupt */
  21374. #define USB_OTG_DIEPINT_PKTDRPSTS_Pos (11U)
  21375. #define USB_OTG_DIEPINT_PKTDRPSTS_Msk (0x1UL << USB_OTG_DIEPINT_PKTDRPSTS_Pos) /*!< 0x00000800 */
  21376. #define USB_OTG_DIEPINT_PKTDRPSTS USB_OTG_DIEPINT_PKTDRPSTS_Msk /*!< Packet dropped status */
  21377. #define USB_OTG_DIEPINT_BERR_Pos (12U)
  21378. #define USB_OTG_DIEPINT_BERR_Msk (0x1UL << USB_OTG_DIEPINT_BERR_Pos) /*!< 0x00001000 */
  21379. #define USB_OTG_DIEPINT_BERR USB_OTG_DIEPINT_BERR_Msk /*!< Babble error interrupt */
  21380. #define USB_OTG_DIEPINT_NAK_Pos (13U)
  21381. #define USB_OTG_DIEPINT_NAK_Msk (0x1UL << USB_OTG_DIEPINT_NAK_Pos) /*!< 0x00002000 */
  21382. #define USB_OTG_DIEPINT_NAK USB_OTG_DIEPINT_NAK_Msk /*!< NAK interrupt */
  21383. /******************** Bit definition forUSB_OTG_HCINTMSK register ********************/
  21384. #define USB_OTG_HCINTMSK_XFRCM_Pos (0U)
  21385. #define USB_OTG_HCINTMSK_XFRCM_Msk (0x1UL << USB_OTG_HCINTMSK_XFRCM_Pos) /*!< 0x00000001 */
  21386. #define USB_OTG_HCINTMSK_XFRCM USB_OTG_HCINTMSK_XFRCM_Msk /*!< Transfer completed mask */
  21387. #define USB_OTG_HCINTMSK_CHHM_Pos (1U)
  21388. #define USB_OTG_HCINTMSK_CHHM_Msk (0x1UL << USB_OTG_HCINTMSK_CHHM_Pos) /*!< 0x00000002 */
  21389. #define USB_OTG_HCINTMSK_CHHM USB_OTG_HCINTMSK_CHHM_Msk /*!< Channel halted mask */
  21390. #define USB_OTG_HCINTMSK_AHBERR_Pos (2U)
  21391. #define USB_OTG_HCINTMSK_AHBERR_Msk (0x1UL << USB_OTG_HCINTMSK_AHBERR_Pos) /*!< 0x00000004 */
  21392. #define USB_OTG_HCINTMSK_AHBERR USB_OTG_HCINTMSK_AHBERR_Msk /*!< AHB error */
  21393. #define USB_OTG_HCINTMSK_STALLM_Pos (3U)
  21394. #define USB_OTG_HCINTMSK_STALLM_Msk (0x1UL << USB_OTG_HCINTMSK_STALLM_Pos) /*!< 0x00000008 */
  21395. #define USB_OTG_HCINTMSK_STALLM USB_OTG_HCINTMSK_STALLM_Msk /*!< STALL response received interrupt mask */
  21396. #define USB_OTG_HCINTMSK_NAKM_Pos (4U)
  21397. #define USB_OTG_HCINTMSK_NAKM_Msk (0x1UL << USB_OTG_HCINTMSK_NAKM_Pos) /*!< 0x00000010 */
  21398. #define USB_OTG_HCINTMSK_NAKM USB_OTG_HCINTMSK_NAKM_Msk /*!< NAK response received interrupt mask */
  21399. #define USB_OTG_HCINTMSK_ACKM_Pos (5U)
  21400. #define USB_OTG_HCINTMSK_ACKM_Msk (0x1UL << USB_OTG_HCINTMSK_ACKM_Pos) /*!< 0x00000020 */
  21401. #define USB_OTG_HCINTMSK_ACKM USB_OTG_HCINTMSK_ACKM_Msk /*!< ACK response received/transmitted interrupt mask */
  21402. #define USB_OTG_HCINTMSK_NYET_Pos (6U)
  21403. #define USB_OTG_HCINTMSK_NYET_Msk (0x1UL << USB_OTG_HCINTMSK_NYET_Pos) /*!< 0x00000040 */
  21404. #define USB_OTG_HCINTMSK_NYET USB_OTG_HCINTMSK_NYET_Msk /*!< response received interrupt mask */
  21405. #define USB_OTG_HCINTMSK_TXERRM_Pos (7U)
  21406. #define USB_OTG_HCINTMSK_TXERRM_Msk (0x1UL << USB_OTG_HCINTMSK_TXERRM_Pos) /*!< 0x00000080 */
  21407. #define USB_OTG_HCINTMSK_TXERRM USB_OTG_HCINTMSK_TXERRM_Msk /*!< Transaction error mask */
  21408. #define USB_OTG_HCINTMSK_BBERRM_Pos (8U)
  21409. #define USB_OTG_HCINTMSK_BBERRM_Msk (0x1UL << USB_OTG_HCINTMSK_BBERRM_Pos) /*!< 0x00000100 */
  21410. #define USB_OTG_HCINTMSK_BBERRM USB_OTG_HCINTMSK_BBERRM_Msk /*!< Babble error mask */
  21411. #define USB_OTG_HCINTMSK_FRMORM_Pos (9U)
  21412. #define USB_OTG_HCINTMSK_FRMORM_Msk (0x1UL << USB_OTG_HCINTMSK_FRMORM_Pos) /*!< 0x00000200 */
  21413. #define USB_OTG_HCINTMSK_FRMORM USB_OTG_HCINTMSK_FRMORM_Msk /*!< Frame overrun mask */
  21414. #define USB_OTG_HCINTMSK_DTERRM_Pos (10U)
  21415. #define USB_OTG_HCINTMSK_DTERRM_Msk (0x1UL << USB_OTG_HCINTMSK_DTERRM_Pos) /*!< 0x00000400 */
  21416. #define USB_OTG_HCINTMSK_DTERRM USB_OTG_HCINTMSK_DTERRM_Msk /*!< Data toggle error mask */
  21417. /******************** Bit definition for USB_OTG_DIEPTSIZ register ********************/
  21418. #define USB_OTG_DIEPTSIZ_XFRSIZ_Pos (0U)
  21419. #define USB_OTG_DIEPTSIZ_XFRSIZ_Msk (0x7FFFFUL << USB_OTG_DIEPTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  21420. #define USB_OTG_DIEPTSIZ_XFRSIZ USB_OTG_DIEPTSIZ_XFRSIZ_Msk /*!< Transfer size */
  21421. #define USB_OTG_DIEPTSIZ_PKTCNT_Pos (19U)
  21422. #define USB_OTG_DIEPTSIZ_PKTCNT_Msk (0x3FFUL << USB_OTG_DIEPTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  21423. #define USB_OTG_DIEPTSIZ_PKTCNT USB_OTG_DIEPTSIZ_PKTCNT_Msk /*!< Packet count */
  21424. #define USB_OTG_DIEPTSIZ_MULCNT_Pos (29U)
  21425. #define USB_OTG_DIEPTSIZ_MULCNT_Msk (0x3UL << USB_OTG_DIEPTSIZ_MULCNT_Pos) /*!< 0x60000000 */
  21426. #define USB_OTG_DIEPTSIZ_MULCNT USB_OTG_DIEPTSIZ_MULCNT_Msk /*!< Packet count */
  21427. /******************** Bit definition forUSB_OTG_HCTSIZ register ********************/
  21428. #define USB_OTG_HCTSIZ_XFRSIZ_Pos (0U)
  21429. #define USB_OTG_HCTSIZ_XFRSIZ_Msk (0x7FFFFUL << USB_OTG_HCTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  21430. #define USB_OTG_HCTSIZ_XFRSIZ USB_OTG_HCTSIZ_XFRSIZ_Msk /*!< Transfer size */
  21431. #define USB_OTG_HCTSIZ_PKTCNT_Pos (19U)
  21432. #define USB_OTG_HCTSIZ_PKTCNT_Msk (0x3FFUL << USB_OTG_HCTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  21433. #define USB_OTG_HCTSIZ_PKTCNT USB_OTG_HCTSIZ_PKTCNT_Msk /*!< Packet count */
  21434. #define USB_OTG_HCTSIZ_DOPING_Pos (31U)
  21435. #define USB_OTG_HCTSIZ_DOPING_Msk (0x1UL << USB_OTG_HCTSIZ_DOPING_Pos) /*!< 0x80000000 */
  21436. #define USB_OTG_HCTSIZ_DOPING USB_OTG_HCTSIZ_DOPING_Msk /*!< Do PING */
  21437. #define USB_OTG_HCTSIZ_DPID_Pos (29U)
  21438. #define USB_OTG_HCTSIZ_DPID_Msk (0x3UL << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x60000000 */
  21439. #define USB_OTG_HCTSIZ_DPID USB_OTG_HCTSIZ_DPID_Msk /*!< Data PID */
  21440. #define USB_OTG_HCTSIZ_DPID_0 (0x1UL << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x20000000 */
  21441. #define USB_OTG_HCTSIZ_DPID_1 (0x2UL << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x40000000 */
  21442. /******************** Bit definition forUSB_OTG_DIEPDMA register ********************/
  21443. #define USB_OTG_DIEPDMA_DMAADDR_Pos (0U)
  21444. #define USB_OTG_DIEPDMA_DMAADDR_Msk (0xFFFFFFFFUL << USB_OTG_DIEPDMA_DMAADDR_Pos) /*!< 0xFFFFFFFF */
  21445. #define USB_OTG_DIEPDMA_DMAADDR USB_OTG_DIEPDMA_DMAADDR_Msk /*!< DMA address */
  21446. /******************** Bit definition forUSB_OTG_HCDMA register ********************/
  21447. #define USB_OTG_HCDMA_DMAADDR_Pos (0U)
  21448. #define USB_OTG_HCDMA_DMAADDR_Msk (0xFFFFFFFFUL << USB_OTG_HCDMA_DMAADDR_Pos) /*!< 0xFFFFFFFF */
  21449. #define USB_OTG_HCDMA_DMAADDR USB_OTG_HCDMA_DMAADDR_Msk /*!< DMA address */
  21450. /******************** Bit definition forUSB_OTG_DTXFSTS register ********************/
  21451. #define USB_OTG_DTXFSTS_INEPTFSAV_Pos (0U)
  21452. #define USB_OTG_DTXFSTS_INEPTFSAV_Msk (0xFFFFUL << USB_OTG_DTXFSTS_INEPTFSAV_Pos) /*!< 0x0000FFFF */
  21453. #define USB_OTG_DTXFSTS_INEPTFSAV USB_OTG_DTXFSTS_INEPTFSAV_Msk /*!< IN endpoint TxFIFO space available */
  21454. /******************** Bit definition forUSB_OTG_DIEPTXF register ********************/
  21455. #define USB_OTG_DIEPTXF_INEPTXSA_Pos (0U)
  21456. #define USB_OTG_DIEPTXF_INEPTXSA_Msk (0xFFFFUL << USB_OTG_DIEPTXF_INEPTXSA_Pos) /*!< 0x0000FFFF */
  21457. #define USB_OTG_DIEPTXF_INEPTXSA USB_OTG_DIEPTXF_INEPTXSA_Msk /*!< IN endpoint FIFOx transmit RAM start address */
  21458. #define USB_OTG_DIEPTXF_INEPTXFD_Pos (16U)
  21459. #define USB_OTG_DIEPTXF_INEPTXFD_Msk (0xFFFFUL << USB_OTG_DIEPTXF_INEPTXFD_Pos) /*!< 0xFFFF0000 */
  21460. #define USB_OTG_DIEPTXF_INEPTXFD USB_OTG_DIEPTXF_INEPTXFD_Msk /*!< IN endpoint TxFIFO depth */
  21461. /******************** Bit definition forUSB_OTG_DOEPCTL register ********************/
  21462. #define USB_OTG_DOEPCTL_MPSIZ_Pos (0U)
  21463. #define USB_OTG_DOEPCTL_MPSIZ_Msk (0x7FFUL << USB_OTG_DOEPCTL_MPSIZ_Pos) /*!< 0x000007FF */
  21464. #define USB_OTG_DOEPCTL_MPSIZ USB_OTG_DOEPCTL_MPSIZ_Msk /*!< Maximum packet size */ /*!<Bit 1 */
  21465. #define USB_OTG_DOEPCTL_USBAEP_Pos (15U)
  21466. #define USB_OTG_DOEPCTL_USBAEP_Msk (0x1UL << USB_OTG_DOEPCTL_USBAEP_Pos) /*!< 0x00008000 */
  21467. #define USB_OTG_DOEPCTL_USBAEP USB_OTG_DOEPCTL_USBAEP_Msk /*!< USB active endpoint */
  21468. #define USB_OTG_DOEPCTL_NAKSTS_Pos (17U)
  21469. #define USB_OTG_DOEPCTL_NAKSTS_Msk (0x1UL << USB_OTG_DOEPCTL_NAKSTS_Pos) /*!< 0x00020000 */
  21470. #define USB_OTG_DOEPCTL_NAKSTS USB_OTG_DOEPCTL_NAKSTS_Msk /*!< NAK status */
  21471. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos (28U)
  21472. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk (0x1UL << USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
  21473. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk /*!< Set DATA0 PID */
  21474. #define USB_OTG_DOEPCTL_SODDFRM_Pos (29U)
  21475. #define USB_OTG_DOEPCTL_SODDFRM_Msk (0x1UL << USB_OTG_DOEPCTL_SODDFRM_Pos) /*!< 0x20000000 */
  21476. #define USB_OTG_DOEPCTL_SODDFRM USB_OTG_DOEPCTL_SODDFRM_Msk /*!< Set odd frame */
  21477. #define USB_OTG_DOEPCTL_EPTYP_Pos (18U)
  21478. #define USB_OTG_DOEPCTL_EPTYP_Msk (0x3UL << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x000C0000 */
  21479. #define USB_OTG_DOEPCTL_EPTYP USB_OTG_DOEPCTL_EPTYP_Msk /*!< Endpoint type */
  21480. #define USB_OTG_DOEPCTL_EPTYP_0 (0x1UL << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x00040000 */
  21481. #define USB_OTG_DOEPCTL_EPTYP_1 (0x2UL << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x00080000 */
  21482. #define USB_OTG_DOEPCTL_SNPM_Pos (20U)
  21483. #define USB_OTG_DOEPCTL_SNPM_Msk (0x1UL << USB_OTG_DOEPCTL_SNPM_Pos) /*!< 0x00100000 */
  21484. #define USB_OTG_DOEPCTL_SNPM USB_OTG_DOEPCTL_SNPM_Msk /*!< Snoop mode */
  21485. #define USB_OTG_DOEPCTL_STALL_Pos (21U)
  21486. #define USB_OTG_DOEPCTL_STALL_Msk (0x1UL << USB_OTG_DOEPCTL_STALL_Pos) /*!< 0x00200000 */
  21487. #define USB_OTG_DOEPCTL_STALL USB_OTG_DOEPCTL_STALL_Msk /*!< STALL handshake */
  21488. #define USB_OTG_DOEPCTL_CNAK_Pos (26U)
  21489. #define USB_OTG_DOEPCTL_CNAK_Msk (0x1UL << USB_OTG_DOEPCTL_CNAK_Pos) /*!< 0x04000000 */
  21490. #define USB_OTG_DOEPCTL_CNAK USB_OTG_DOEPCTL_CNAK_Msk /*!< Clear NAK */
  21491. #define USB_OTG_DOEPCTL_SNAK_Pos (27U)
  21492. #define USB_OTG_DOEPCTL_SNAK_Msk (0x1UL << USB_OTG_DOEPCTL_SNAK_Pos) /*!< 0x08000000 */
  21493. #define USB_OTG_DOEPCTL_SNAK USB_OTG_DOEPCTL_SNAK_Msk /*!< Set NAK */
  21494. #define USB_OTG_DOEPCTL_EPDIS_Pos (30U)
  21495. #define USB_OTG_DOEPCTL_EPDIS_Msk (0x1UL << USB_OTG_DOEPCTL_EPDIS_Pos) /*!< 0x40000000 */
  21496. #define USB_OTG_DOEPCTL_EPDIS USB_OTG_DOEPCTL_EPDIS_Msk /*!< Endpoint disable */
  21497. #define USB_OTG_DOEPCTL_EPENA_Pos (31U)
  21498. #define USB_OTG_DOEPCTL_EPENA_Msk (0x1UL << USB_OTG_DOEPCTL_EPENA_Pos) /*!< 0x80000000 */
  21499. #define USB_OTG_DOEPCTL_EPENA USB_OTG_DOEPCTL_EPENA_Msk /*!< Endpoint enable */
  21500. /******************** Bit definition forUSB_OTG_DOEPINT register ********************/
  21501. #define USB_OTG_DOEPINT_XFRC_Pos (0U)
  21502. #define USB_OTG_DOEPINT_XFRC_Msk (0x1UL << USB_OTG_DOEPINT_XFRC_Pos) /*!< 0x00000001 */
  21503. #define USB_OTG_DOEPINT_XFRC USB_OTG_DOEPINT_XFRC_Msk /*!< Transfer completed interrupt */
  21504. #define USB_OTG_DOEPINT_EPDISD_Pos (1U)
  21505. #define USB_OTG_DOEPINT_EPDISD_Msk (0x1UL << USB_OTG_DOEPINT_EPDISD_Pos) /*!< 0x00000002 */
  21506. #define USB_OTG_DOEPINT_EPDISD USB_OTG_DOEPINT_EPDISD_Msk /*!< Endpoint disabled interrupt */
  21507. #define USB_OTG_DOEPINT_AHBERR_Pos (2U)
  21508. #define USB_OTG_DOEPINT_AHBERR_Msk (0x1UL << USB_OTG_DOEPINT_AHBERR_Pos) /*!< 0x00000004 */
  21509. #define USB_OTG_DOEPINT_AHBERR USB_OTG_DOEPINT_AHBERR_Msk /*!< AHB Error (AHBErr) during an OUT transaction */
  21510. #define USB_OTG_DOEPINT_STUP_Pos (3U)
  21511. #define USB_OTG_DOEPINT_STUP_Msk (0x1UL << USB_OTG_DOEPINT_STUP_Pos) /*!< 0x00000008 */
  21512. #define USB_OTG_DOEPINT_STUP USB_OTG_DOEPINT_STUP_Msk /*!< SETUP phase done */
  21513. #define USB_OTG_DOEPINT_OTEPDIS_Pos (4U)
  21514. #define USB_OTG_DOEPINT_OTEPDIS_Msk (0x1UL << USB_OTG_DOEPINT_OTEPDIS_Pos) /*!< 0x00000010 */
  21515. #define USB_OTG_DOEPINT_OTEPDIS USB_OTG_DOEPINT_OTEPDIS_Msk /*!< OUT token received when endpoint disabled */
  21516. #define USB_OTG_DOEPINT_OTEPSPR_Pos (5U)
  21517. #define USB_OTG_DOEPINT_OTEPSPR_Msk (0x1UL << USB_OTG_DOEPINT_OTEPSPR_Pos) /*!< 0x00000020 */
  21518. #define USB_OTG_DOEPINT_OTEPSPR USB_OTG_DOEPINT_OTEPSPR_Msk /*!< OUT Status Phase Received interrupt */
  21519. #define USB_OTG_DOEPINT_B2BSTUP_Pos (6U)
  21520. #define USB_OTG_DOEPINT_B2BSTUP_Msk (0x1UL << USB_OTG_DOEPINT_B2BSTUP_Pos) /*!< 0x00000040 */
  21521. #define USB_OTG_DOEPINT_B2BSTUP USB_OTG_DOEPINT_B2BSTUP_Msk /*!< Back-to-back SETUP packets received */
  21522. #define USB_OTG_DOEPINT_OUTPKTERR_Pos (8U)
  21523. #define USB_OTG_DOEPINT_OUTPKTERR_Msk (0x1UL << USB_OTG_DOEPINT_OUTPKTERR_Pos) /*!< 0x00000100 */
  21524. #define USB_OTG_DOEPINT_OUTPKTERR USB_OTG_DOEPINT_OUTPKTERR_Msk /*!< OUT packet error */
  21525. #define USB_OTG_DOEPINT_BNA_Pos (9U)
  21526. #define USB_OTG_DOEPINT_BNA_Msk (0x1UL << USB_OTG_DOEPINT_BNA_Pos) /*!< 0x00000200 */
  21527. #define USB_OTG_DOEPINT_BNA USB_OTG_DOEPINT_BNA_Msk /*!< Buffer not available interrupt */
  21528. #define USB_OTG_DOEPINT_BERR_Pos (12U)
  21529. #define USB_OTG_DOEPINT_BERR_Msk (0x1UL << USB_OTG_DOEPINT_BERR_Pos) /*!< 0x00001000 */
  21530. #define USB_OTG_DOEPINT_BERR USB_OTG_DOEPINT_BERR_Msk /*!< Babble error interrupt */
  21531. #define USB_OTG_DOEPINT_NAK_Pos (13U)
  21532. #define USB_OTG_DOEPINT_NAK_Msk (0x1UL << USB_OTG_DOEPINT_NAK_Pos) /*!< 0x00002000 */
  21533. #define USB_OTG_DOEPINT_NAK USB_OTG_DOEPINT_NAK_Msk /*!< NAK Packet is transmitted by the device */
  21534. #define USB_OTG_DOEPINT_NYET_Pos (14U)
  21535. #define USB_OTG_DOEPINT_NYET_Msk (0x1UL << USB_OTG_DOEPINT_NYET_Pos) /*!< 0x00004000 */
  21536. #define USB_OTG_DOEPINT_NYET USB_OTG_DOEPINT_NYET_Msk /*!< NYET interrupt */
  21537. #define USB_OTG_DOEPINT_STPKTRX_Pos (15U)
  21538. #define USB_OTG_DOEPINT_STPKTRX_Msk (0x1UL << USB_OTG_DOEPINT_STPKTRX_Pos) /*!< 0x00008000 */
  21539. #define USB_OTG_DOEPINT_STPKTRX USB_OTG_DOEPINT_STPKTRX_Msk /*!< Setup Packet Received */
  21540. /******************** Bit definition forUSB_OTG_DOEPTSIZ register ********************/
  21541. #define USB_OTG_DOEPTSIZ_XFRSIZ_Pos (0U)
  21542. #define USB_OTG_DOEPTSIZ_XFRSIZ_Msk (0x7FFFFUL << USB_OTG_DOEPTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  21543. #define USB_OTG_DOEPTSIZ_XFRSIZ USB_OTG_DOEPTSIZ_XFRSIZ_Msk /*!< Transfer size */
  21544. #define USB_OTG_DOEPTSIZ_PKTCNT_Pos (19U)
  21545. #define USB_OTG_DOEPTSIZ_PKTCNT_Msk (0x3FFUL << USB_OTG_DOEPTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  21546. #define USB_OTG_DOEPTSIZ_PKTCNT USB_OTG_DOEPTSIZ_PKTCNT_Msk /*!< Packet count */
  21547. #define USB_OTG_DOEPTSIZ_STUPCNT_Pos (29U)
  21548. #define USB_OTG_DOEPTSIZ_STUPCNT_Msk (0x3UL << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x60000000 */
  21549. #define USB_OTG_DOEPTSIZ_STUPCNT USB_OTG_DOEPTSIZ_STUPCNT_Msk /*!< SETUP packet count */
  21550. #define USB_OTG_DOEPTSIZ_STUPCNT_0 (0x1UL << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x20000000 */
  21551. #define USB_OTG_DOEPTSIZ_STUPCNT_1 (0x2UL << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x40000000 */
  21552. /******************** Bit definition for PCGCCTL register ********************/
  21553. #define USB_OTG_PCGCCTL_STOPCLK_Pos (0U)
  21554. #define USB_OTG_PCGCCTL_STOPCLK_Msk (0x1UL << USB_OTG_PCGCCTL_STOPCLK_Pos) /*!< 0x00000001 */
  21555. #define USB_OTG_PCGCCTL_STOPCLK USB_OTG_PCGCCTL_STOPCLK_Msk /*!< SETUP packet count */
  21556. #define USB_OTG_PCGCCTL_GATECLK_Pos (1U)
  21557. #define USB_OTG_PCGCCTL_GATECLK_Msk (0x1UL << USB_OTG_PCGCCTL_GATECLK_Pos) /*!< 0x00000002 */
  21558. #define USB_OTG_PCGCCTL_GATECLK USB_OTG_PCGCCTL_GATECLK_Msk /*!<Bit 0 */
  21559. #define USB_OTG_PCGCCTL_PHYSUSP_Pos (4U)
  21560. #define USB_OTG_PCGCCTL_PHYSUSP_Msk (0x1UL << USB_OTG_PCGCCTL_PHYSUSP_Pos) /*!< 0x00000010 */
  21561. #define USB_OTG_PCGCCTL_PHYSUSP USB_OTG_PCGCCTL_PHYSUSP_Msk /*!<Bit 1 */
  21562. /**
  21563. * @}
  21564. */
  21565. /**
  21566. * @}
  21567. */
  21568. /** @addtogroup Exported_macros
  21569. * @{
  21570. */
  21571. /******************************* ADC Instances ********************************/
  21572. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \
  21573. ((INSTANCE) == ADC2) || \
  21574. ((INSTANCE) == ADC3))
  21575. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1)
  21576. #define IS_ADC_COMMON_INSTANCE(INSTANCE) (((INSTANCE) == ADC12_COMMON) ||\
  21577. ((INSTANCE) == ADC3_COMMON))
  21578. /******************************* CORDIC Instances *****************************/
  21579. #define IS_CORDIC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CORDIC)
  21580. /******************************** FMAC Instances ******************************/
  21581. #define IS_FMAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == FMAC)
  21582. /******************************** COMP Instances ******************************/
  21583. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
  21584. ((INSTANCE) == COMP2))
  21585. #define IS_COMP_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == COMP12_COMMON)
  21586. /******************** COMP Instances with window mode capability **************/
  21587. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2)
  21588. /******************************** DTS Instances ******************************/
  21589. #define IS_DTS_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DTS)
  21590. /******************************* CRC Instances ********************************/
  21591. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
  21592. /******************************* DAC Instances ********************************/
  21593. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1)
  21594. /******************************* DCMI Instances *******************************/
  21595. #define IS_DCMI_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == DCMI)
  21596. /******************************* DELAYBLOCK Instances *******************************/
  21597. #define IS_DLYB_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DLYB_SDMMC1) || \
  21598. ((INSTANCE) == DLYB_SDMMC2) || \
  21599. ((INSTANCE) == DLYB_OCTOSPI1) || \
  21600. ((INSTANCE) == DLYB_OCTOSPI2) )
  21601. /****************************** DFSDM Instances *******************************/
  21602. #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0) || \
  21603. ((INSTANCE) == DFSDM1_Filter1) || \
  21604. ((INSTANCE) == DFSDM1_Filter2) || \
  21605. ((INSTANCE) == DFSDM1_Filter3))
  21606. #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0) || \
  21607. ((INSTANCE) == DFSDM1_Channel1) || \
  21608. ((INSTANCE) == DFSDM1_Channel2) || \
  21609. ((INSTANCE) == DFSDM1_Channel3) || \
  21610. ((INSTANCE) == DFSDM1_Channel4) || \
  21611. ((INSTANCE) == DFSDM1_Channel5) || \
  21612. ((INSTANCE) == DFSDM1_Channel6) || \
  21613. ((INSTANCE) == DFSDM1_Channel7))
  21614. /****************************** RAMECC Instances ******************************/
  21615. #define IS_RAMECC_MONITOR_ALL_INSTANCE(INSTANCE) (((INSTANCE) == RAMECC1_Monitor1) || \
  21616. ((INSTANCE) == RAMECC1_Monitor2) || \
  21617. ((INSTANCE) == RAMECC1_Monitor3) || \
  21618. ((INSTANCE) == RAMECC1_Monitor4) || \
  21619. ((INSTANCE) == RAMECC1_Monitor5) || \
  21620. ((INSTANCE) == RAMECC1_Monitor6) || \
  21621. ((INSTANCE) == RAMECC2_Monitor1) || \
  21622. ((INSTANCE) == RAMECC2_Monitor2) || \
  21623. ((INSTANCE) == RAMECC2_Monitor3) || \
  21624. ((INSTANCE) == RAMECC3_Monitor1) || \
  21625. ((INSTANCE) == RAMECC3_Monitor2))
  21626. /******************************** DMA Instances *******************************/
  21627. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Stream0) || \
  21628. ((INSTANCE) == DMA1_Stream1) || \
  21629. ((INSTANCE) == DMA1_Stream2) || \
  21630. ((INSTANCE) == DMA1_Stream3) || \
  21631. ((INSTANCE) == DMA1_Stream4) || \
  21632. ((INSTANCE) == DMA1_Stream5) || \
  21633. ((INSTANCE) == DMA1_Stream6) || \
  21634. ((INSTANCE) == DMA1_Stream7) || \
  21635. ((INSTANCE) == DMA2_Stream0) || \
  21636. ((INSTANCE) == DMA2_Stream1) || \
  21637. ((INSTANCE) == DMA2_Stream2) || \
  21638. ((INSTANCE) == DMA2_Stream3) || \
  21639. ((INSTANCE) == DMA2_Stream4) || \
  21640. ((INSTANCE) == DMA2_Stream5) || \
  21641. ((INSTANCE) == DMA2_Stream6) || \
  21642. ((INSTANCE) == DMA2_Stream7) || \
  21643. ((INSTANCE) == BDMA_Channel0) || \
  21644. ((INSTANCE) == BDMA_Channel1) || \
  21645. ((INSTANCE) == BDMA_Channel2) || \
  21646. ((INSTANCE) == BDMA_Channel3) || \
  21647. ((INSTANCE) == BDMA_Channel4) || \
  21648. ((INSTANCE) == BDMA_Channel5) || \
  21649. ((INSTANCE) == BDMA_Channel6) || \
  21650. ((INSTANCE) == BDMA_Channel7))
  21651. /****************************** BDMA CHANNEL Instances ***************************/
  21652. #define IS_BDMA_CHANNEL_INSTANCE(INSTANCE) (((INSTANCE) == BDMA_Channel0) || \
  21653. ((INSTANCE) == BDMA_Channel1) || \
  21654. ((INSTANCE) == BDMA_Channel2) || \
  21655. ((INSTANCE) == BDMA_Channel3) || \
  21656. ((INSTANCE) == BDMA_Channel4) || \
  21657. ((INSTANCE) == BDMA_Channel5) || \
  21658. ((INSTANCE) == BDMA_Channel6) || \
  21659. ((INSTANCE) == BDMA_Channel7))
  21660. /****************************** DMA DMAMUX ALL Instances ***************************/
  21661. #define IS_DMA_DMAMUX_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Stream0) || \
  21662. ((INSTANCE) == DMA1_Stream1) || \
  21663. ((INSTANCE) == DMA1_Stream2) || \
  21664. ((INSTANCE) == DMA1_Stream3) || \
  21665. ((INSTANCE) == DMA1_Stream4) || \
  21666. ((INSTANCE) == DMA1_Stream5) || \
  21667. ((INSTANCE) == DMA1_Stream6) || \
  21668. ((INSTANCE) == DMA1_Stream7) || \
  21669. ((INSTANCE) == DMA2_Stream0) || \
  21670. ((INSTANCE) == DMA2_Stream1) || \
  21671. ((INSTANCE) == DMA2_Stream2) || \
  21672. ((INSTANCE) == DMA2_Stream3) || \
  21673. ((INSTANCE) == DMA2_Stream4) || \
  21674. ((INSTANCE) == DMA2_Stream5) || \
  21675. ((INSTANCE) == DMA2_Stream6) || \
  21676. ((INSTANCE) == DMA2_Stream7) || \
  21677. ((INSTANCE) == BDMA_Channel0) || \
  21678. ((INSTANCE) == BDMA_Channel1) || \
  21679. ((INSTANCE) == BDMA_Channel2) || \
  21680. ((INSTANCE) == BDMA_Channel3) || \
  21681. ((INSTANCE) == BDMA_Channel4) || \
  21682. ((INSTANCE) == BDMA_Channel5) || \
  21683. ((INSTANCE) == BDMA_Channel6) || \
  21684. ((INSTANCE) == BDMA_Channel7))
  21685. /****************************** BDMA DMAMUX Instances ***************************/
  21686. #define IS_BDMA_CHANNEL_DMAMUX_INSTANCE(INSTANCE) (((INSTANCE) == BDMA_Channel0) || \
  21687. ((INSTANCE) == BDMA_Channel1) || \
  21688. ((INSTANCE) == BDMA_Channel2) || \
  21689. ((INSTANCE) == BDMA_Channel3) || \
  21690. ((INSTANCE) == BDMA_Channel4) || \
  21691. ((INSTANCE) == BDMA_Channel5) || \
  21692. ((INSTANCE) == BDMA_Channel6) || \
  21693. ((INSTANCE) == BDMA_Channel7))
  21694. /****************************** DMA STREAM Instances ***************************/
  21695. #define IS_DMA_STREAM_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Stream0) || \
  21696. ((INSTANCE) == DMA1_Stream1) || \
  21697. ((INSTANCE) == DMA1_Stream2) || \
  21698. ((INSTANCE) == DMA1_Stream3) || \
  21699. ((INSTANCE) == DMA1_Stream4) || \
  21700. ((INSTANCE) == DMA1_Stream5) || \
  21701. ((INSTANCE) == DMA1_Stream6) || \
  21702. ((INSTANCE) == DMA1_Stream7) || \
  21703. ((INSTANCE) == DMA2_Stream0) || \
  21704. ((INSTANCE) == DMA2_Stream1) || \
  21705. ((INSTANCE) == DMA2_Stream2) || \
  21706. ((INSTANCE) == DMA2_Stream3) || \
  21707. ((INSTANCE) == DMA2_Stream4) || \
  21708. ((INSTANCE) == DMA2_Stream5) || \
  21709. ((INSTANCE) == DMA2_Stream6) || \
  21710. ((INSTANCE) == DMA2_Stream7))
  21711. /****************************** DMA DMAMUX Instances ***************************/
  21712. #define IS_DMA_STREAM_DMAMUX_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Stream0) || \
  21713. ((INSTANCE) == DMA1_Stream1) || \
  21714. ((INSTANCE) == DMA1_Stream2) || \
  21715. ((INSTANCE) == DMA1_Stream3) || \
  21716. ((INSTANCE) == DMA1_Stream4) || \
  21717. ((INSTANCE) == DMA1_Stream5) || \
  21718. ((INSTANCE) == DMA1_Stream6) || \
  21719. ((INSTANCE) == DMA1_Stream7) || \
  21720. ((INSTANCE) == DMA2_Stream0) || \
  21721. ((INSTANCE) == DMA2_Stream1) || \
  21722. ((INSTANCE) == DMA2_Stream2) || \
  21723. ((INSTANCE) == DMA2_Stream3) || \
  21724. ((INSTANCE) == DMA2_Stream4) || \
  21725. ((INSTANCE) == DMA2_Stream5) || \
  21726. ((INSTANCE) == DMA2_Stream6) || \
  21727. ((INSTANCE) == DMA2_Stream7))
  21728. /******************************** DMA Request Generator Instances **************/
  21729. #define IS_DMA_REQUEST_GEN_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMAMUX1_RequestGenerator0) || \
  21730. ((INSTANCE) == DMAMUX1_RequestGenerator1) || \
  21731. ((INSTANCE) == DMAMUX1_RequestGenerator2) || \
  21732. ((INSTANCE) == DMAMUX1_RequestGenerator3) || \
  21733. ((INSTANCE) == DMAMUX1_RequestGenerator4) || \
  21734. ((INSTANCE) == DMAMUX1_RequestGenerator5) || \
  21735. ((INSTANCE) == DMAMUX1_RequestGenerator6) || \
  21736. ((INSTANCE) == DMAMUX1_RequestGenerator7) || \
  21737. ((INSTANCE) == DMAMUX2_RequestGenerator0) || \
  21738. ((INSTANCE) == DMAMUX2_RequestGenerator1) || \
  21739. ((INSTANCE) == DMAMUX2_RequestGenerator2) || \
  21740. ((INSTANCE) == DMAMUX2_RequestGenerator3) || \
  21741. ((INSTANCE) == DMAMUX2_RequestGenerator4) || \
  21742. ((INSTANCE) == DMAMUX2_RequestGenerator5) || \
  21743. ((INSTANCE) == DMAMUX2_RequestGenerator6) || \
  21744. ((INSTANCE) == DMAMUX2_RequestGenerator7))
  21745. /******************************* DMA2D Instances *******************************/
  21746. #define IS_DMA2D_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == DMA2D)
  21747. /****************************** PSSI Instance *********************************/
  21748. #define IS_PSSI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == PSSI)
  21749. /******************************** MDMA Request Generator Instances **************/
  21750. #define IS_MDMA_STREAM_ALL_INSTANCE(INSTANCE) (((INSTANCE) == MDMA_Channel0) || \
  21751. ((INSTANCE) == MDMA_Channel1) || \
  21752. ((INSTANCE) == MDMA_Channel2) || \
  21753. ((INSTANCE) == MDMA_Channel3) || \
  21754. ((INSTANCE) == MDMA_Channel4) || \
  21755. ((INSTANCE) == MDMA_Channel5) || \
  21756. ((INSTANCE) == MDMA_Channel6) || \
  21757. ((INSTANCE) == MDMA_Channel7) || \
  21758. ((INSTANCE) == MDMA_Channel8) || \
  21759. ((INSTANCE) == MDMA_Channel9) || \
  21760. ((INSTANCE) == MDMA_Channel10) || \
  21761. ((INSTANCE) == MDMA_Channel11) || \
  21762. ((INSTANCE) == MDMA_Channel12) || \
  21763. ((INSTANCE) == MDMA_Channel13) || \
  21764. ((INSTANCE) == MDMA_Channel14) || \
  21765. ((INSTANCE) == MDMA_Channel15))
  21766. /******************************* FDCAN Instances ******************************/
  21767. #define IS_FDCAN_ALL_INSTANCE(__INSTANCE__) (((__INSTANCE__) == FDCAN1) || \
  21768. ((__INSTANCE__) == FDCAN2) || \
  21769. ((__INSTANCE__) == FDCAN3))
  21770. #define IS_FDCAN_TT_INSTANCE(__INSTANCE__) ((__INSTANCE__) == FDCAN1)
  21771. /******************************* GPIO Instances *******************************/
  21772. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  21773. ((INSTANCE) == GPIOB) || \
  21774. ((INSTANCE) == GPIOC) || \
  21775. ((INSTANCE) == GPIOD) || \
  21776. ((INSTANCE) == GPIOE) || \
  21777. ((INSTANCE) == GPIOF) || \
  21778. ((INSTANCE) == GPIOG) || \
  21779. ((INSTANCE) == GPIOH) || \
  21780. ((INSTANCE) == GPIOJ) || \
  21781. ((INSTANCE) == GPIOK))
  21782. /******************************* GPIO AF Instances ****************************/
  21783. #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  21784. /**************************** GPIO Lock Instances *****************************/
  21785. /* On H7, all GPIO Bank support the Lock mechanism */
  21786. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  21787. /******************************** HSEM Instances *******************************/
  21788. #define IS_HSEM_ALL_INSTANCE(INSTANCE) ((INSTANCE) == HSEM)
  21789. #define HSEM_CPU1_COREID (0x00000003U) /* Semaphore Core CM7 ID */
  21790. #define HSEM_CR_COREID_CPU1 (HSEM_CPU1_COREID << HSEM_CR_COREID_Pos)
  21791. #define HSEM_CR_COREID_CURRENT (HSEM_CPU1_COREID << HSEM_CR_COREID_Pos)
  21792. #define HSEM_SEMID_MIN (0U) /* HSEM ID Min*/
  21793. #define HSEM_SEMID_MAX (31U) /* HSEM ID Max */
  21794. #define HSEM_PROCESSID_MIN (0U) /* HSEM Process ID Min */
  21795. #define HSEM_PROCESSID_MAX (255U) /* HSEM Process ID Max */
  21796. #define HSEM_CLEAR_KEY_MIN (0U) /* HSEM clear Key Min value */
  21797. #define HSEM_CLEAR_KEY_MAX (0xFFFFU) /* HSEM clear Key Max value */
  21798. /******************************** I2C Instances *******************************/
  21799. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  21800. ((INSTANCE) == I2C2) || \
  21801. ((INSTANCE) == I2C3) || \
  21802. ((INSTANCE) == I2C4) || \
  21803. ((INSTANCE) == I2C5))
  21804. /****************************** SMBUS Instances *******************************/
  21805. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  21806. ((INSTANCE) == I2C2) || \
  21807. ((INSTANCE) == I2C3) || \
  21808. ((INSTANCE) == I2C4) || \
  21809. ((INSTANCE) == I2C5))
  21810. /************** I2C Instances : wakeup capability from stop modes *************/
  21811. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  21812. /******************************** I2S Instances *******************************/
  21813. #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  21814. ((INSTANCE) == SPI2) || \
  21815. ((INSTANCE) == SPI3))
  21816. /****************************** LTDC Instances ********************************/
  21817. #define IS_LTDC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == LTDC)
  21818. /******************************* RNG Instances ********************************/
  21819. #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG)
  21820. /****************************** RTC Instances *********************************/
  21821. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
  21822. /****************************** SDMMC Instances *********************************/
  21823. #define IS_SDMMC_ALL_INSTANCE(_INSTANCE_) (((_INSTANCE_) == SDMMC1) || \
  21824. ((_INSTANCE_) == SDMMC2))
  21825. /******************************** SPI Instances *******************************/
  21826. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  21827. ((INSTANCE) == SPI2) || \
  21828. ((INSTANCE) == SPI3) || \
  21829. ((INSTANCE) == SPI4) || \
  21830. ((INSTANCE) == SPI5) || \
  21831. ((INSTANCE) == SPI6))
  21832. #define IS_SPI_HIGHEND_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  21833. ((INSTANCE) == SPI2) || \
  21834. ((INSTANCE) == SPI3))
  21835. /******************************** SWPMI Instances *****************************/
  21836. #define IS_SWPMI_INSTANCE(INSTANCE) ((INSTANCE) == SWPMI1)
  21837. /****************** LPTIM Instances : All supported instances *****************/
  21838. #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1) || \
  21839. ((INSTANCE) == LPTIM2) || \
  21840. ((INSTANCE) == LPTIM3) || \
  21841. ((INSTANCE) == LPTIM4) || \
  21842. ((INSTANCE) == LPTIM5))
  21843. /****************** LPTIM Instances : supporting encoder interface **************/
  21844. #define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1) || \
  21845. ((INSTANCE) == LPTIM2))
  21846. /****************** TIM Instances : All supported instances *******************/
  21847. #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21848. ((INSTANCE) == TIM2) || \
  21849. ((INSTANCE) == TIM3) || \
  21850. ((INSTANCE) == TIM4) || \
  21851. ((INSTANCE) == TIM5) || \
  21852. ((INSTANCE) == TIM6) || \
  21853. ((INSTANCE) == TIM7) || \
  21854. ((INSTANCE) == TIM8) || \
  21855. ((INSTANCE) == TIM12) || \
  21856. ((INSTANCE) == TIM13) || \
  21857. ((INSTANCE) == TIM14) || \
  21858. ((INSTANCE) == TIM15) || \
  21859. ((INSTANCE) == TIM16) || \
  21860. ((INSTANCE) == TIM17) || \
  21861. ((INSTANCE) == TIM23) || \
  21862. ((INSTANCE) == TIM24))
  21863. /************* TIM Instances : at least 1 capture/compare channel *************/
  21864. #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21865. ((INSTANCE) == TIM2) || \
  21866. ((INSTANCE) == TIM3) || \
  21867. ((INSTANCE) == TIM4) || \
  21868. ((INSTANCE) == TIM5) || \
  21869. ((INSTANCE) == TIM8) || \
  21870. ((INSTANCE) == TIM12) || \
  21871. ((INSTANCE) == TIM13) || \
  21872. ((INSTANCE) == TIM14) || \
  21873. ((INSTANCE) == TIM15) || \
  21874. ((INSTANCE) == TIM16) || \
  21875. ((INSTANCE) == TIM17) || \
  21876. ((INSTANCE) == TIM23) || \
  21877. ((INSTANCE) == TIM24))
  21878. /************ TIM Instances : at least 2 capture/compare channels *************/
  21879. #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21880. ((INSTANCE) == TIM2) || \
  21881. ((INSTANCE) == TIM3) || \
  21882. ((INSTANCE) == TIM4) || \
  21883. ((INSTANCE) == TIM5) || \
  21884. ((INSTANCE) == TIM8) || \
  21885. ((INSTANCE) == TIM12) || \
  21886. ((INSTANCE) == TIM15) || \
  21887. ((INSTANCE) == TIM23) || \
  21888. ((INSTANCE) == TIM24))
  21889. /************ TIM Instances : at least 3 capture/compare channels *************/
  21890. #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21891. ((INSTANCE) == TIM2) || \
  21892. ((INSTANCE) == TIM3) || \
  21893. ((INSTANCE) == TIM4) || \
  21894. ((INSTANCE) == TIM5) || \
  21895. ((INSTANCE) == TIM8) || \
  21896. ((INSTANCE) == TIM23) || \
  21897. ((INSTANCE) == TIM24))
  21898. /************ TIM Instances : at least 4 capture/compare channels *************/
  21899. #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21900. ((INSTANCE) == TIM2) || \
  21901. ((INSTANCE) == TIM3) || \
  21902. ((INSTANCE) == TIM4) || \
  21903. ((INSTANCE) == TIM5) || \
  21904. ((INSTANCE) == TIM8) || \
  21905. ((INSTANCE) == TIM23) || \
  21906. ((INSTANCE) == TIM24))
  21907. /************ TIM Instances : at least 5 capture/compare channels *************/
  21908. #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21909. ((INSTANCE) == TIM8))
  21910. /************ TIM Instances : at least 6 capture/compare channels *************/
  21911. #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21912. ((INSTANCE) == TIM8))
  21913. /******************** TIM Instances : Advanced-control timers *****************/
  21914. #define IS_TIM_ADVANCED_INSTANCE(__INSTANCE__) (((__INSTANCE__) == TIM1) || \
  21915. ((__INSTANCE__) == TIM8))
  21916. /******************** TIM Instances : Advanced-control timers *****************/
  21917. /******************* TIM Instances : Timer input XOR function *****************/
  21918. #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21919. ((INSTANCE) == TIM2) || \
  21920. ((INSTANCE) == TIM3) || \
  21921. ((INSTANCE) == TIM4) || \
  21922. ((INSTANCE) == TIM5) || \
  21923. ((INSTANCE) == TIM8) || \
  21924. ((INSTANCE) == TIM15) || \
  21925. ((INSTANCE) == TIM23) || \
  21926. ((INSTANCE) == TIM24))
  21927. /****************** TIM Instances : DMA requests generation (UDE) *************/
  21928. #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21929. ((INSTANCE) == TIM2) || \
  21930. ((INSTANCE) == TIM3) || \
  21931. ((INSTANCE) == TIM4) || \
  21932. ((INSTANCE) == TIM5) || \
  21933. ((INSTANCE) == TIM6) || \
  21934. ((INSTANCE) == TIM7) || \
  21935. ((INSTANCE) == TIM8) || \
  21936. ((INSTANCE) == TIM15) || \
  21937. ((INSTANCE) == TIM16) || \
  21938. ((INSTANCE) == TIM17) || \
  21939. ((INSTANCE) == TIM23) || \
  21940. ((INSTANCE) == TIM24))
  21941. /************ TIM Instances : DMA requests generation (CCxDE) *****************/
  21942. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21943. ((INSTANCE) == TIM2) || \
  21944. ((INSTANCE) == TIM3) || \
  21945. ((INSTANCE) == TIM4) || \
  21946. ((INSTANCE) == TIM5) || \
  21947. ((INSTANCE) == TIM8) || \
  21948. ((INSTANCE) == TIM15) || \
  21949. ((INSTANCE) == TIM16) || \
  21950. ((INSTANCE) == TIM17) || \
  21951. ((INSTANCE) == TIM23) || \
  21952. ((INSTANCE) == TIM24))
  21953. /************ TIM Instances : DMA requests generation (COMDE) *****************/
  21954. #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21955. ((INSTANCE) == TIM2) || \
  21956. ((INSTANCE) == TIM3) || \
  21957. ((INSTANCE) == TIM4) || \
  21958. ((INSTANCE) == TIM5) || \
  21959. ((INSTANCE) == TIM8) || \
  21960. ((INSTANCE) == TIM15))
  21961. /******************** TIM Instances : DMA burst feature ***********************/
  21962. #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21963. ((INSTANCE) == TIM2) || \
  21964. ((INSTANCE) == TIM3) || \
  21965. ((INSTANCE) == TIM4) || \
  21966. ((INSTANCE) == TIM5) || \
  21967. ((INSTANCE) == TIM8))
  21968. /*************** TIM Instances : external trigger reamp input available *******/
  21969. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21970. ((INSTANCE) == TIM2) || \
  21971. ((INSTANCE) == TIM3) || \
  21972. ((INSTANCE) == TIM4) || \
  21973. ((INSTANCE) == TIM5) || \
  21974. ((INSTANCE) == TIM8) || \
  21975. ((INSTANCE) == TIM23) || \
  21976. ((INSTANCE) == TIM24))
  21977. /****************** TIM Instances : remapping capability **********************/
  21978. #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21979. ((INSTANCE) == TIM2) || \
  21980. ((INSTANCE) == TIM3) || \
  21981. ((INSTANCE) == TIM5) || \
  21982. ((INSTANCE) == TIM8) || \
  21983. ((INSTANCE) == TIM16) || \
  21984. ((INSTANCE) == TIM17) || \
  21985. ((INSTANCE) == TIM23) || \
  21986. ((INSTANCE) == TIM24))
  21987. /*************** TIM Instances : external trigger reamp input available *******/
  21988. #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21989. ((INSTANCE) == TIM2) || \
  21990. ((INSTANCE) == TIM3) || \
  21991. ((INSTANCE) == TIM5) || \
  21992. ((INSTANCE) == TIM8) || \
  21993. ((INSTANCE) == TIM23) || \
  21994. ((INSTANCE) == TIM24)))
  21995. /****** TIM Instances : master mode available (TIMx_CR2.MMS available )********/
  21996. #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  21997. ((INSTANCE) == TIM2) || \
  21998. ((INSTANCE) == TIM3) || \
  21999. ((INSTANCE) == TIM4) || \
  22000. ((INSTANCE) == TIM5) || \
  22001. ((INSTANCE) == TIM6) || \
  22002. ((INSTANCE) == TIM7) || \
  22003. ((INSTANCE) == TIM8) || \
  22004. ((INSTANCE) == TIM12) || \
  22005. ((INSTANCE) == TIM15) || \
  22006. ((INSTANCE) == TIM23) || \
  22007. ((INSTANCE) == TIM24))
  22008. /****** TIM Instances : Salve mode available (TIMx_SMCR.TS available )*********/
  22009. #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22010. ((INSTANCE) == TIM2) || \
  22011. ((INSTANCE) == TIM3) || \
  22012. ((INSTANCE) == TIM4) || \
  22013. ((INSTANCE) == TIM5) || \
  22014. ((INSTANCE) == TIM8) || \
  22015. ((INSTANCE) == TIM12) || \
  22016. ((INSTANCE) == TIM15) || \
  22017. ((INSTANCE) == TIM23) || \
  22018. ((INSTANCE) == TIM24))
  22019. /****** TIM Instances : TRGO2 available (TIMx_CR2.MMS2 available )*********/
  22020. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22021. ((INSTANCE) == TIM8))
  22022. /****** TIM Instances : TISEL available (TIMx_TISEL available )*********/
  22023. #define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22024. ((INSTANCE) == TIM2) || \
  22025. ((INSTANCE) == TIM3) || \
  22026. ((INSTANCE) == TIM4) || \
  22027. ((INSTANCE) == TIM5) || \
  22028. ((INSTANCE) == TIM8) || \
  22029. ((INSTANCE) == TIM15) || \
  22030. ((INSTANCE) == TIM16) || \
  22031. ((INSTANCE) == TIM17) || \
  22032. ((INSTANCE) == TIM23) || \
  22033. ((INSTANCE) == TIM24))
  22034. /****************** TIM Instances : supporting commutation event *************/
  22035. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22036. ((INSTANCE) == TIM8) || \
  22037. ((INSTANCE) == TIM15) || \
  22038. ((INSTANCE) == TIM16) || \
  22039. ((INSTANCE) == TIM17))
  22040. /****************** TIM Instances : supporting encoder interface **************/
  22041. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(__INSTANCE__) (((__INSTANCE__) == TIM1) || \
  22042. ((__INSTANCE__) == TIM2) || \
  22043. ((__INSTANCE__) == TIM3) || \
  22044. ((__INSTANCE__) == TIM4) || \
  22045. ((__INSTANCE__) == TIM5) || \
  22046. ((__INSTANCE__) == TIM8) || \
  22047. ((__INSTANCE__) == TIM23) || \
  22048. ((__INSTANCE__) == TIM24))
  22049. /****** TIM Instances : TIM_CCR5_GC5C available (TIMx_CCR5.GC5C available )*********/
  22050. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22051. ((INSTANCE) == TIM8))
  22052. /******************* TIM Instances : output(s) available **********************/
  22053. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  22054. ((((INSTANCE) == TIM1) && \
  22055. (((CHANNEL) == TIM_CHANNEL_1) || \
  22056. ((CHANNEL) == TIM_CHANNEL_2) || \
  22057. ((CHANNEL) == TIM_CHANNEL_3) || \
  22058. ((CHANNEL) == TIM_CHANNEL_4) || \
  22059. ((CHANNEL) == TIM_CHANNEL_5) || \
  22060. ((CHANNEL) == TIM_CHANNEL_6))) \
  22061. || \
  22062. (((INSTANCE) == TIM2) && \
  22063. (((CHANNEL) == TIM_CHANNEL_1) || \
  22064. ((CHANNEL) == TIM_CHANNEL_2) || \
  22065. ((CHANNEL) == TIM_CHANNEL_3) || \
  22066. ((CHANNEL) == TIM_CHANNEL_4))) \
  22067. || \
  22068. (((INSTANCE) == TIM3) && \
  22069. (((CHANNEL) == TIM_CHANNEL_1)|| \
  22070. ((CHANNEL) == TIM_CHANNEL_2) || \
  22071. ((CHANNEL) == TIM_CHANNEL_3) || \
  22072. ((CHANNEL) == TIM_CHANNEL_4))) \
  22073. || \
  22074. (((INSTANCE) == TIM4) && \
  22075. (((CHANNEL) == TIM_CHANNEL_1) || \
  22076. ((CHANNEL) == TIM_CHANNEL_2) || \
  22077. ((CHANNEL) == TIM_CHANNEL_3) || \
  22078. ((CHANNEL) == TIM_CHANNEL_4))) \
  22079. || \
  22080. (((INSTANCE) == TIM5) && \
  22081. (((CHANNEL) == TIM_CHANNEL_1) || \
  22082. ((CHANNEL) == TIM_CHANNEL_2) || \
  22083. ((CHANNEL) == TIM_CHANNEL_3) || \
  22084. ((CHANNEL) == TIM_CHANNEL_4))) \
  22085. || \
  22086. (((INSTANCE) == TIM8) && \
  22087. (((CHANNEL) == TIM_CHANNEL_1) || \
  22088. ((CHANNEL) == TIM_CHANNEL_2) || \
  22089. ((CHANNEL) == TIM_CHANNEL_3) || \
  22090. ((CHANNEL) == TIM_CHANNEL_4) || \
  22091. ((CHANNEL) == TIM_CHANNEL_5) || \
  22092. ((CHANNEL) == TIM_CHANNEL_6))) \
  22093. || \
  22094. (((INSTANCE) == TIM12) && \
  22095. (((CHANNEL) == TIM_CHANNEL_1) || \
  22096. ((CHANNEL) == TIM_CHANNEL_2))) \
  22097. || \
  22098. (((INSTANCE) == TIM13) && \
  22099. (((CHANNEL) == TIM_CHANNEL_1))) \
  22100. || \
  22101. (((INSTANCE) == TIM14) && \
  22102. (((CHANNEL) == TIM_CHANNEL_1))) \
  22103. || \
  22104. (((INSTANCE) == TIM15) && \
  22105. (((CHANNEL) == TIM_CHANNEL_1) || \
  22106. ((CHANNEL) == TIM_CHANNEL_2))) \
  22107. || \
  22108. (((INSTANCE) == TIM16) && \
  22109. (((CHANNEL) == TIM_CHANNEL_1))) \
  22110. || \
  22111. (((INSTANCE) == TIM17) && \
  22112. (((CHANNEL) == TIM_CHANNEL_1))) \
  22113. || \
  22114. (((INSTANCE) == TIM23) && \
  22115. (((CHANNEL) == TIM_CHANNEL_1) || \
  22116. ((CHANNEL) == TIM_CHANNEL_2) || \
  22117. ((CHANNEL) == TIM_CHANNEL_3) || \
  22118. ((CHANNEL) == TIM_CHANNEL_4))) \
  22119. || \
  22120. (((INSTANCE) == TIM24) && \
  22121. (((CHANNEL) == TIM_CHANNEL_1) || \
  22122. ((CHANNEL) == TIM_CHANNEL_2) || \
  22123. ((CHANNEL) == TIM_CHANNEL_3) || \
  22124. ((CHANNEL) == TIM_CHANNEL_4))))
  22125. /****************** TIM Instances : supporting the break function *************/
  22126. #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
  22127. (((INSTANCE) == TIM1) || \
  22128. ((INSTANCE) == TIM8) || \
  22129. ((INSTANCE) == TIM15) || \
  22130. ((INSTANCE) == TIM16) || \
  22131. ((INSTANCE) == TIM17))
  22132. /************** TIM Instances : supporting Break source selection *************/
  22133. #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22134. ((INSTANCE) == TIM8))
  22135. /****************** TIM Instances : supporting complementary output(s) ********/
  22136. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  22137. ((((INSTANCE) == TIM1) && \
  22138. (((CHANNEL) == TIM_CHANNEL_1) || \
  22139. ((CHANNEL) == TIM_CHANNEL_2) || \
  22140. ((CHANNEL) == TIM_CHANNEL_3))) \
  22141. || \
  22142. (((INSTANCE) == TIM8) && \
  22143. (((CHANNEL) == TIM_CHANNEL_1) || \
  22144. ((CHANNEL) == TIM_CHANNEL_2) || \
  22145. ((CHANNEL) == TIM_CHANNEL_3))) \
  22146. || \
  22147. (((INSTANCE) == TIM15) && \
  22148. ((CHANNEL) == TIM_CHANNEL_1)) \
  22149. || \
  22150. (((INSTANCE) == TIM16) && \
  22151. ((CHANNEL) == TIM_CHANNEL_1)) \
  22152. || \
  22153. (((INSTANCE) == TIM17) && \
  22154. ((CHANNEL) == TIM_CHANNEL_1)))
  22155. /****************** TIM Instances : supporting counting mode selection ********/
  22156. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
  22157. (((INSTANCE) == TIM1) || \
  22158. ((INSTANCE) == TIM2) || \
  22159. ((INSTANCE) == TIM3) || \
  22160. ((INSTANCE) == TIM4) || \
  22161. ((INSTANCE) == TIM5) || \
  22162. ((INSTANCE) == TIM8))
  22163. /****************** TIM Instances : supporting repetition counter *************/
  22164. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
  22165. (((INSTANCE) == TIM1) || \
  22166. ((INSTANCE) == TIM8) || \
  22167. ((INSTANCE) == TIM15) || \
  22168. ((INSTANCE) == TIM16) || \
  22169. ((INSTANCE) == TIM17))
  22170. /****************** TIM Instances : supporting synchronization ****************/
  22171. #define IS_TIM_SYNCHRO_INSTANCE(__INSTANCE__)\
  22172. (((__INSTANCE__) == TIM1) || \
  22173. ((__INSTANCE__) == TIM2) || \
  22174. ((__INSTANCE__) == TIM3) || \
  22175. ((__INSTANCE__) == TIM4) || \
  22176. ((__INSTANCE__) == TIM5) || \
  22177. ((__INSTANCE__) == TIM6) || \
  22178. ((__INSTANCE__) == TIM8) || \
  22179. ((__INSTANCE__) == TIM12) || \
  22180. ((__INSTANCE__) == TIM15) || \
  22181. ((__INSTANCE__) == TIM23) || \
  22182. ((__INSTANCE__) == TIM24))
  22183. /****************** TIM Instances : supporting clock division *****************/
  22184. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
  22185. (((INSTANCE) == TIM1) || \
  22186. ((INSTANCE) == TIM2) || \
  22187. ((INSTANCE) == TIM3) || \
  22188. ((INSTANCE) == TIM4) || \
  22189. ((INSTANCE) == TIM5) || \
  22190. ((INSTANCE) == TIM8) || \
  22191. ((INSTANCE) == TIM15) || \
  22192. ((INSTANCE) == TIM16) || \
  22193. ((INSTANCE) == TIM17) || \
  22194. ((INSTANCE) == TIM23) || \
  22195. ((INSTANCE) == TIM24))
  22196. /****************** TIM Instances : supporting external clock mode 1 for ETRF input */
  22197. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
  22198. (((INSTANCE) == TIM1) || \
  22199. ((INSTANCE) == TIM2) || \
  22200. ((INSTANCE) == TIM3) || \
  22201. ((INSTANCE) == TIM4) || \
  22202. ((INSTANCE) == TIM5) || \
  22203. ((INSTANCE) == TIM8) || \
  22204. ((INSTANCE) == TIM23) || \
  22205. ((INSTANCE) == TIM24))
  22206. /****************** TIM Instances : supporting external clock mode 2 **********/
  22207. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
  22208. (((INSTANCE) == TIM1) || \
  22209. ((INSTANCE) == TIM2) || \
  22210. ((INSTANCE) == TIM3) || \
  22211. ((INSTANCE) == TIM4) || \
  22212. ((INSTANCE) == TIM5) || \
  22213. ((INSTANCE) == TIM8) || \
  22214. ((INSTANCE) == TIM23) || \
  22215. ((INSTANCE) == TIM24))
  22216. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  22217. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
  22218. (((INSTANCE) == TIM1) || \
  22219. ((INSTANCE) == TIM2) || \
  22220. ((INSTANCE) == TIM3) || \
  22221. ((INSTANCE) == TIM4) || \
  22222. ((INSTANCE) == TIM5) || \
  22223. ((INSTANCE) == TIM8) || \
  22224. ((INSTANCE) == TIM12) || \
  22225. ((INSTANCE) == TIM15) || \
  22226. ((INSTANCE) == TIM23) || \
  22227. ((INSTANCE) == TIM24))
  22228. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  22229. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
  22230. (((INSTANCE) == TIM1) || \
  22231. ((INSTANCE) == TIM2) || \
  22232. ((INSTANCE) == TIM3) || \
  22233. ((INSTANCE) == TIM4) || \
  22234. ((INSTANCE) == TIM5) || \
  22235. ((INSTANCE) == TIM8) || \
  22236. ((INSTANCE) == TIM12) || \
  22237. ((INSTANCE) == TIM15) || \
  22238. ((INSTANCE) == TIM23) || \
  22239. ((INSTANCE) == TIM24))
  22240. /****************** TIM Instances : supporting OCxREF clear *******************/
  22241. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
  22242. (((INSTANCE) == TIM1) || \
  22243. ((INSTANCE) == TIM2) || \
  22244. ((INSTANCE) == TIM3))
  22245. /****************** TIM Instances : TIM_32B_COUNTER ***************************/
  22246. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
  22247. (((INSTANCE) == TIM2) || \
  22248. ((INSTANCE) == TIM5) || \
  22249. ((INSTANCE) == TIM23) || \
  22250. ((INSTANCE) == TIM24))
  22251. /****************** TIM Instances : TIM_BKIN2 ***************************/
  22252. #define IS_TIM_BKIN2_INSTANCE(INSTANCE)\
  22253. (((INSTANCE) == TIM1) || \
  22254. ((INSTANCE) == TIM8))
  22255. /****************** TIM Instances : supporting Hall sensor interface **********/
  22256. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(__INSTANCE__) (((__INSTANCE__) == TIM1) || \
  22257. ((__INSTANCE__) == TIM2) || \
  22258. ((__INSTANCE__) == TIM3) || \
  22259. ((__INSTANCE__) == TIM4) || \
  22260. ((__INSTANCE__) == TIM5) || \
  22261. ((__INSTANCE__) == TIM15) || \
  22262. ((__INSTANCE__) == TIM8) || \
  22263. ((__INSTANCE__) == TIM23) || \
  22264. ((__INSTANCE__) == TIM24))
  22265. /******************** USART Instances : Synchronous mode **********************/
  22266. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22267. ((INSTANCE) == USART2) || \
  22268. ((INSTANCE) == USART3) || \
  22269. ((INSTANCE) == USART6) || \
  22270. ((INSTANCE) == USART10))
  22271. /******************** USART Instances : SPI slave mode ************************/
  22272. #define IS_UART_SPI_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22273. ((INSTANCE) == USART2) || \
  22274. ((INSTANCE) == USART3) || \
  22275. ((INSTANCE) == USART6) || \
  22276. ((INSTANCE) == USART10))
  22277. /******************** UART Instances : Asynchronous mode **********************/
  22278. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22279. ((INSTANCE) == USART2) || \
  22280. ((INSTANCE) == USART3) || \
  22281. ((INSTANCE) == UART4) || \
  22282. ((INSTANCE) == UART5) || \
  22283. ((INSTANCE) == USART6) || \
  22284. ((INSTANCE) == UART7) || \
  22285. ((INSTANCE) == UART8) || \
  22286. ((INSTANCE) == UART9) || \
  22287. ((INSTANCE) == USART10))
  22288. /******************** UART Instances : FIFO mode.******************************/
  22289. #define IS_UART_FIFO_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22290. ((INSTANCE) == USART2) || \
  22291. ((INSTANCE) == USART3) || \
  22292. ((INSTANCE) == UART4) || \
  22293. ((INSTANCE) == UART5) || \
  22294. ((INSTANCE) == USART6) || \
  22295. ((INSTANCE) == UART7) || \
  22296. ((INSTANCE) == UART8) || \
  22297. ((INSTANCE) == UART9) || \
  22298. ((INSTANCE) == USART10)|| \
  22299. ((INSTANCE) == LPUART1))
  22300. /****************** UART Instances : Auto Baud Rate detection *****************/
  22301. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22302. ((INSTANCE) == USART2) || \
  22303. ((INSTANCE) == USART3) || \
  22304. ((INSTANCE) == UART4) || \
  22305. ((INSTANCE) == UART5) || \
  22306. ((INSTANCE) == USART6) || \
  22307. ((INSTANCE) == UART7) || \
  22308. ((INSTANCE) == UART8) || \
  22309. ((INSTANCE) == UART9) || \
  22310. ((INSTANCE) == USART10))
  22311. /*********************** UART Instances : Driver Enable ***********************/
  22312. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22313. ((INSTANCE) == USART2) || \
  22314. ((INSTANCE) == USART3) || \
  22315. ((INSTANCE) == UART4) || \
  22316. ((INSTANCE) == UART5) || \
  22317. ((INSTANCE) == USART6) || \
  22318. ((INSTANCE) == UART7) || \
  22319. ((INSTANCE) == UART8) || \
  22320. ((INSTANCE) == UART9) || \
  22321. ((INSTANCE) == USART10)|| \
  22322. ((INSTANCE) == LPUART1))
  22323. /********************* UART Instances : Half-Duplex mode **********************/
  22324. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22325. ((INSTANCE) == USART2) || \
  22326. ((INSTANCE) == USART3) || \
  22327. ((INSTANCE) == UART4) || \
  22328. ((INSTANCE) == UART5) || \
  22329. ((INSTANCE) == USART6) || \
  22330. ((INSTANCE) == UART7) || \
  22331. ((INSTANCE) == UART8) || \
  22332. ((INSTANCE) == UART9) || \
  22333. ((INSTANCE) == USART10)|| \
  22334. ((INSTANCE) == LPUART1))
  22335. /******************* UART Instances : Hardware Flow control *******************/
  22336. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22337. ((INSTANCE) == USART2) || \
  22338. ((INSTANCE) == USART3) || \
  22339. ((INSTANCE) == UART4) || \
  22340. ((INSTANCE) == UART5) || \
  22341. ((INSTANCE) == USART6) || \
  22342. ((INSTANCE) == UART7) || \
  22343. ((INSTANCE) == UART8) || \
  22344. ((INSTANCE) == UART9) || \
  22345. ((INSTANCE) == USART10)|| \
  22346. ((INSTANCE) == LPUART1))
  22347. /************************* UART Instances : LIN mode **************************/
  22348. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22349. ((INSTANCE) == USART2) || \
  22350. ((INSTANCE) == USART3) || \
  22351. ((INSTANCE) == UART4) || \
  22352. ((INSTANCE) == UART5) || \
  22353. ((INSTANCE) == USART6) || \
  22354. ((INSTANCE) == UART7) || \
  22355. ((INSTANCE) == UART8) || \
  22356. ((INSTANCE) == UART9) || \
  22357. ((INSTANCE) == USART10))
  22358. /****************** UART Instances : Wake-up from Stop mode *******************/
  22359. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22360. ((INSTANCE) == USART2) || \
  22361. ((INSTANCE) == USART3) || \
  22362. ((INSTANCE) == UART4) || \
  22363. ((INSTANCE) == UART5) || \
  22364. ((INSTANCE) == USART6) || \
  22365. ((INSTANCE) == UART7) || \
  22366. ((INSTANCE) == UART8) || \
  22367. ((INSTANCE) == UART9) || \
  22368. ((INSTANCE) == USART10)|| \
  22369. ((INSTANCE) == LPUART1))
  22370. /************************* UART Instances : IRDA mode *************************/
  22371. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22372. ((INSTANCE) == USART2) || \
  22373. ((INSTANCE) == USART3) || \
  22374. ((INSTANCE) == UART4) || \
  22375. ((INSTANCE) == UART5) || \
  22376. ((INSTANCE) == USART6) || \
  22377. ((INSTANCE) == UART7) || \
  22378. ((INSTANCE) == UART8) || \
  22379. ((INSTANCE) == UART9) || \
  22380. ((INSTANCE) == USART10))
  22381. /********************* USART Instances : Smard card mode **********************/
  22382. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  22383. ((INSTANCE) == USART2) || \
  22384. ((INSTANCE) == USART3) || \
  22385. ((INSTANCE) == USART6) ||\
  22386. ((INSTANCE) == USART10))
  22387. /****************************** LPUART Instance *******************************/
  22388. #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1)
  22389. /****************************** IWDG Instances ********************************/
  22390. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG1)
  22391. /****************************** USB Instances ********************************/
  22392. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB)
  22393. /****************************** WWDG Instances ********************************/
  22394. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG1)
  22395. /****************************** MDIOS Instances ********************************/
  22396. #define IS_MDIOS_ALL_INSTANCE(INSTANCE) ((INSTANCE) == MDIOS)
  22397. /****************************** CEC Instances *********************************/
  22398. #define IS_CEC_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == CEC)
  22399. /****************************** SAI Instances ********************************/
  22400. #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A) || \
  22401. ((INSTANCE) == SAI1_Block_B) || \
  22402. ((INSTANCE) == SAI4_Block_A) || \
  22403. ((INSTANCE) == SAI4_Block_B))
  22404. /****************************** SPDIFRX Instances ********************************/
  22405. #define IS_SPDIFRX_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SPDIFRX)
  22406. /****************************** OPAMP Instances *******************************/
  22407. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1) || \
  22408. ((INSTANCE) == OPAMP2))
  22409. #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP12_COMMON)
  22410. /*********************** USB OTG PCD Instances ********************************/
  22411. #define IS_PCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_OTG_HS)
  22412. /*********************** USB OTG HCD Instances ********************************/
  22413. #define IS_HCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_OTG_HS)
  22414. /******************************************************************************/
  22415. /* For a painless codes migration between the STM32H7xx device product */
  22416. /* lines, or with STM32F7xx devices the aliases defined below are put */
  22417. /* in place to overcome the differences in the interrupt handlers and IRQn */
  22418. /* definitions. No need to update developed interrupt code when moving */
  22419. /* across product lines within the same STM32H7 Family */
  22420. /******************************************************************************/
  22421. /* Aliases for __IRQn */
  22422. #define HASH_RNG_IRQn RNG_IRQn
  22423. #define TIM1_BRK_TIM9_IRQn TIM1_BRK_IRQn
  22424. #define TIM1_UP_TIM10_IRQn TIM1_UP_IRQn
  22425. #define TIM1_TRG_COM_TIM11_IRQn TIM1_TRG_COM_IRQn
  22426. #define PVD_IRQn PVD_AVD_IRQn
  22427. /* Aliases for DCMI/PSSI __IRQn */
  22428. #define DCMI_IRQn DCMI_PSSI_IRQn
  22429. /* Aliases for __IRQHandler */
  22430. #define HASH_RNG_IRQHandler RNG_IRQHandler
  22431. #define TIM1_BRK_TIM9_IRQHandler TIM1_BRK_IRQHandler
  22432. #define TIM1_UP_TIM9_IRQHandler TIM1_UP_IRQHandler
  22433. #define TIM1_TRG_COM_TIM11_IRQHandler TIM1_TRG_COM_IRQHandler
  22434. #define PVD_IRQHandler PVD_AVD_IRQHandler
  22435. /* Aliases for COMP __IRQHandler */
  22436. #define COMP_IRQHandler COMP1_IRQHandler
  22437. /**
  22438. * @}
  22439. */
  22440. /**
  22441. * @}
  22442. */
  22443. /**
  22444. * @}
  22445. */
  22446. #ifdef __cplusplus
  22447. }
  22448. #endif /* __cplusplus */
  22449. #endif /* STM32H723xx_H */