stm32l562xx.h 1.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198
  1. /**
  2. ******************************************************************************
  3. * @file stm32l562xx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS STM32L562xx 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. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  16. * All rights reserved.</center></h2>
  17. *
  18. * This software component is licensed by ST under BSD 3-Clause license,
  19. * the "License"; You may not use this file except in compliance with the
  20. * License. You may obtain a copy of the License at:
  21. * opensource.org/licenses/BSD-3-Clause
  22. *
  23. ******************************************************************************
  24. */
  25. #ifndef STM32L562xx_H
  26. #define STM32L562xx_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /** @addtogroup ST
  31. * @{
  32. */
  33. /** @addtogroup STM32L562xx
  34. * @{
  35. */
  36. /** @addtogroup Configuration_of_CMSIS
  37. * @{
  38. */
  39. /* =========================================================================================================================== */
  40. /* ================ Interrupt Number Definition ================ */
  41. /* =========================================================================================================================== */
  42. typedef enum
  43. {
  44. /* ======================================= ARM Cortex-M33 Specific Interrupt Numbers ======================================= */
  45. Reset_IRQn = -15, /*!< -15 Reset Vector, invoked on Power up and warm reset */
  46. NonMaskableInt_IRQn = -14, /*!< -14 Non maskable Interrupt, cannot be stopped or preempted */
  47. HardFault_IRQn = -13, /*!< -13 Hard Fault, all classes of Fault */
  48. MemoryManagement_IRQn = -12, /*!< -12 Memory Management, MPU mismatch, including Access Violation
  49. and No Match */
  50. BusFault_IRQn = -11, /*!< -11 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
  51. related Fault */
  52. UsageFault_IRQn = -10, /*!< -10 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
  53. SecureFault_IRQn = -9, /*!< -9 Secure Fault */
  54. SVCall_IRQn = -5, /*!< -5 System Service Call via SVC instruction */
  55. DebugMonitor_IRQn = -4, /*!< -4 Debug Monitor */
  56. PendSV_IRQn = -2, /*!< -2 Pendable request for system service */
  57. SysTick_IRQn = -1, /*!< -1 System Tick Timer */
  58. /* =========================================== STM32L562xx Specific Interrupt Numbers ========================================= */
  59. WWDG_IRQn = 0, /*!< Window WatchDog interrupt */
  60. PVD_PVM_IRQn = 1, /*!< PVD/PVM1/PVM2/PVM3/PVM4 through EXTI Line detection interrupts */
  61. RTC_IRQn = 2, /*!< RTC non-secure interrupts through the EXTI line 17 */
  62. RTC_S_IRQn = 3, /*!< RTC secure interrupts through the EXTI line 18 */
  63. TAMP_IRQn = 4, /*!< Tamper non-secure interrupts through the EXTI line 19 */
  64. TAMP_S_IRQn = 5, /*!< Tamper and TimeStamp interrupts through the EXTI line 20 */
  65. FLASH_IRQn = 6, /*!< FLASH non-secure global interrupt */
  66. FLASH_S_IRQn = 7, /*!< FLASH secure global interrupt */
  67. GTZC_IRQn = 8, /*!< Global TrustZone controller global interrupt */
  68. RCC_IRQn = 9, /*!< RCC non secure global interrupt */
  69. RCC_S_IRQn = 10, /*!< RCC secure global interrupt */
  70. EXTI0_IRQn = 11, /*!< EXTI Line0 interrupt */
  71. EXTI1_IRQn = 12, /*!< EXTI Line1 interrupt */
  72. EXTI2_IRQn = 13, /*!< EXTI Line2 interrupt */
  73. EXTI3_IRQn = 14, /*!< EXTI Line3 interrupt */
  74. EXTI4_IRQn = 15, /*!< EXTI Line4 interrupt */
  75. EXTI5_IRQn = 16, /*!< EXTI Line5 interrupt */
  76. EXTI6_IRQn = 17, /*!< EXTI Line6 interrupt */
  77. EXTI7_IRQn = 18, /*!< EXTI Line7 interrupt */
  78. EXTI8_IRQn = 19, /*!< EXTI Line8 interrupt */
  79. EXTI9_IRQn = 20, /*!< EXTI Line9 interrupt */
  80. EXTI10_IRQn = 21, /*!< EXTI Line10 interrupt */
  81. EXTI11_IRQn = 22, /*!< EXTI Line11 interrupt */
  82. EXTI12_IRQn = 23, /*!< EXTI Line12 interrupt */
  83. EXTI13_IRQn = 24, /*!< EXTI Line13 interrupt */
  84. EXTI14_IRQn = 25, /*!< EXTI Line14 interrupt */
  85. EXTI15_IRQn = 26, /*!< EXTI Line15 interrupt */
  86. DMAMUX1_IRQn = 27, /*!< DMAMUX1 non-secure interrupt */
  87. DMAMUX1_S_IRQn = 28, /*!< DMAMUX1 secure interrupt */
  88. DMA1_Channel1_IRQn = 29, /*!< DMA1 Channel 1 global interrupt */
  89. DMA1_Channel2_IRQn = 30, /*!< DMA1 Channel 2 global interrupt */
  90. DMA1_Channel3_IRQn = 31, /*!< DMA1 Channel 3 global interrupt */
  91. DMA1_Channel4_IRQn = 32, /*!< DMA1 Channel 4 global interrupt */
  92. DMA1_Channel5_IRQn = 33, /*!< DMA1 Channel 5 global interrupt */
  93. DMA1_Channel6_IRQn = 34, /*!< DMA1 Channel 6 global interrupt */
  94. DMA1_Channel7_IRQn = 35, /*!< DMA1 Channel 7 global interrupt */
  95. DMA1_Channel8_IRQn = 36, /*!< DMA1 Channel 8 global interrupt */
  96. ADC1_2_IRQn = 37, /*!< ADC1 & ADC2 global interrupts */
  97. DAC_IRQn = 38, /*!< DAC global interrupts */
  98. FDCAN1_IT0_IRQn = 39, /*!< FDCAN1 interrupt 0 */
  99. FDCAN1_IT1_IRQn = 40, /*!< FDCAN1 interrupt 1 */
  100. TIM1_BRK_IRQn = 41, /*!< TIM1 Break interrupt */
  101. TIM1_UP_IRQn = 42, /*!< TIM1 Update interrupt */
  102. TIM1_TRG_COM_IRQn = 43, /*!< TIM1 Trigger and Commutation interrupt */
  103. TIM1_CC_IRQn = 44, /*!< TIM1 Capture Compare interrupt */
  104. TIM2_IRQn = 45, /*!< TIM2 global interrupt */
  105. TIM3_IRQn = 46, /*!< TIM3 global interrupt */
  106. TIM4_IRQn = 47, /*!< TIM4 global interrupt */
  107. TIM5_IRQn = 48, /*!< TIM5 global interrupt */
  108. TIM6_IRQn = 49, /*!< TIM6 global interrupt */
  109. TIM7_IRQn = 50, /*!< TIM7 global interrupt */
  110. TIM8_BRK_IRQn = 51, /*!< TIM8 Break interrupt */
  111. TIM8_UP_IRQn = 52, /*!< TIM8 Update interrupt */
  112. TIM8_TRG_COM_IRQn = 53, /*!< TIM8 Trigger and Commutation interrupt */
  113. TIM8_CC_IRQn = 54, /*!< TIM8 Capture Compare interrupt */
  114. I2C1_EV_IRQn = 55, /*!< I2C1 Event interrupt */
  115. I2C1_ER_IRQn = 56, /*!< I2C1 Error interrupt */
  116. I2C2_EV_IRQn = 57, /*!< I2C2 Event interrupt */
  117. I2C2_ER_IRQn = 58, /*!< I2C2 Error interrupt */
  118. SPI1_IRQn = 59, /*!< SPI1 global interrupt */
  119. SPI2_IRQn = 60, /*!< SPI2 global interrupt */
  120. USART1_IRQn = 61, /*!< USART1 global interrupt */
  121. USART2_IRQn = 62, /*!< USART2 global interrupt */
  122. USART3_IRQn = 63, /*!< USART3 global interrupt */
  123. UART4_IRQn = 64, /*!< UART4 global interrupt */
  124. UART5_IRQn = 65, /*!< UART5 global interrupt */
  125. LPUART1_IRQn = 66, /*!< LPUART1 global interrupt */
  126. LPTIM1_IRQn = 67, /*!< LPTIM1 global interrupt */
  127. LPTIM2_IRQn = 68, /*!< LPTIM2 global interrupt */
  128. TIM15_IRQn = 69, /*!< TIM15 global interrupt */
  129. TIM16_IRQn = 70, /*!< TIM16 global interrupt */
  130. TIM17_IRQn = 71, /*!< TIM17 global interrupt */
  131. COMP_IRQn = 72, /*!< COMP1 and COMP2 through EXTI Lines interrupts */
  132. USB_FS_IRQn = 73, /*!< USB FS global interrupt */
  133. CRS_IRQn = 74, /*!< CRS global interrupt */
  134. FMC_IRQn = 75, /*!< FMC global interrupt */
  135. OCTOSPI1_IRQn = 76, /*!< OctoSPI1 global interrupt */
  136. SDMMC1_IRQn = 78, /*!< SDMMC1 global interrupt */
  137. DMA2_Channel1_IRQn = 80, /*!< DMA2 Channel 1 global interrupt */
  138. DMA2_Channel2_IRQn = 81, /*!< DMA2 Channel 2 global interrupt */
  139. DMA2_Channel3_IRQn = 82, /*!< DMA2 Channel 3 global interrupt */
  140. DMA2_Channel4_IRQn = 83, /*!< DMA2 Channel 4 global interrupt */
  141. DMA2_Channel5_IRQn = 84, /*!< DMA2 Channel 5 global interrupt */
  142. DMA2_Channel6_IRQn = 85, /*!< DMA2 Channel 6 global interrupt */
  143. DMA2_Channel7_IRQn = 86, /*!< DMA2 Channel 7 global interrupt */
  144. DMA2_Channel8_IRQn = 87, /*!< DMA2 Channel 8 global interrupt */
  145. I2C3_EV_IRQn = 88, /*!< I2C3 event interrupt */
  146. I2C3_ER_IRQn = 89, /*!< I2C3 error interrupt */
  147. SAI1_IRQn = 90, /*!< Serial Audio Interface 1 global interrupt */
  148. SAI2_IRQn = 91, /*!< Serial Audio Interface 2 global interrupt */
  149. TSC_IRQn = 92, /*!< Touch Sense Controller global interrupt */
  150. AES_IRQn = 93, /*!< AES global interrupt */
  151. RNG_IRQn = 94, /*!< RNG global interrupt */
  152. FPU_IRQn = 95, /*!< FPU global interrupt */
  153. HASH_IRQn = 96, /*!< HASH global interrupt */
  154. PKA_IRQn = 97, /*!< PKA global interrupt */
  155. LPTIM3_IRQn = 98, /*!< LPTIM3 global interrupt */
  156. SPI3_IRQn = 99, /*!< SPI3 global interrupt */
  157. I2C4_EV_IRQn = 100, /*!< I2C4 Event interrupt */
  158. I2C4_ER_IRQn = 101, /*!< I2C4 Error interrupt */
  159. DFSDM1_FLT0_IRQn = 102, /*!< DFSDM1 Filter 0 global interrupt */
  160. DFSDM1_FLT1_IRQn = 103, /*!< DFSDM1 Filter 1 global interrupt */
  161. DFSDM1_FLT2_IRQn = 104, /*!< DFSDM1 Filter 2 global interrupt */
  162. DFSDM1_FLT3_IRQn = 105, /*!< DFSDM1 Filter 3 global interrupt */
  163. UCPD1_IRQn = 106, /*!< UCPD1 global interrupt */
  164. ICACHE_IRQn = 107, /*!< Instruction cache global interrupt */
  165. OTFDEC1_IRQn = 108 /*!< OTFDEC1 global interrupt */
  166. } IRQn_Type;
  167. /* =========================================================================================================================== */
  168. /* ================ Processor and Core Peripheral Section ================ */
  169. /* =========================================================================================================================== */
  170. /* ------- Start of section using anonymous unions and disabling warnings ------- */
  171. #if defined (__CC_ARM)
  172. #pragma push
  173. #pragma anon_unions
  174. #elif defined (__ICCARM__)
  175. #pragma language=extended
  176. #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  177. #pragma clang diagnostic push
  178. #pragma clang diagnostic ignored "-Wc11-extensions"
  179. #pragma clang diagnostic ignored "-Wreserved-id-macro"
  180. #elif defined (__GNUC__)
  181. /* anonymous unions are enabled by default */
  182. #elif defined (__TMS470__)
  183. /* anonymous unions are enabled by default */
  184. #elif defined (__TASKING__)
  185. #pragma warning 586
  186. #elif defined (__CSMC__)
  187. /* anonymous unions are enabled by default */
  188. #else
  189. #warning Not supported compiler type
  190. #endif
  191. /* -------- Configuration of the Cortex-M33 Processor and Core Peripherals ------ */
  192. #define __CM33_REV 0x0000U /* Core revision r0p1 */
  193. #define __SAUREGION_PRESENT 1U /* SAU regions present */
  194. #define __MPU_PRESENT 1U /* MPU present */
  195. #define __VTOR_PRESENT 1U /* VTOR present */
  196. #define __NVIC_PRIO_BITS 3U /* Number of Bits used for Priority Levels */
  197. #define __Vendor_SysTickConfig 0U /* Set to 1 if different SysTick Config is used */
  198. #define __FPU_PRESENT 1U /* FPU present */
  199. #define __DSP_PRESENT 1U /* DSP extension present */
  200. /** @} */ /* End of group Configuration_of_CMSIS */
  201. #include <core_cm33.h> /*!< ARM Cortex-M33 processor and core peripherals */
  202. #include "system_stm32l5xx.h" /*!< STM32L5xx System */
  203. /* =========================================================================================================================== */
  204. /* ================ Device Specific Peripheral Section ================ */
  205. /* =========================================================================================================================== */
  206. /** @addtogroup STM32L5xx_peripherals
  207. * @{
  208. */
  209. /**
  210. * @brief Analog to Digital Converter
  211. */
  212. typedef struct
  213. {
  214. __IO uint32_t ISR; /*!< ADC interrupt and status register, Address offset: 0x00 */
  215. __IO uint32_t IER; /*!< ADC interrupt enable register, Address offset: 0x04 */
  216. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  217. __IO uint32_t CFGR; /*!< ADC configuration register 1, Address offset: 0x0C */
  218. __IO uint32_t CFGR2; /*!< ADC configuration register 2, Address offset: 0x10 */
  219. __IO uint32_t SMPR1; /*!< ADC sampling time register 1, Address offset: 0x14 */
  220. __IO uint32_t SMPR2; /*!< ADC sampling time register 2, Address offset: 0x18 */
  221. uint32_t RESERVED1; /*!< Reserved, 0x1C */
  222. __IO uint32_t TR1; /*!< ADC analog watchdog 1 threshold register, Address offset: 0x20 */
  223. __IO uint32_t TR2; /*!< ADC analog watchdog 2 threshold register, Address offset: 0x24 */
  224. __IO uint32_t TR3; /*!< ADC analog watchdog 3 threshold register, Address offset: 0x28 */
  225. uint32_t RESERVED2; /*!< Reserved, 0x2C */
  226. __IO uint32_t SQR1; /*!< ADC group regular sequencer register 1, Address offset: 0x30 */
  227. __IO uint32_t SQR2; /*!< ADC group regular sequencer register 2, Address offset: 0x34 */
  228. __IO uint32_t SQR3; /*!< ADC group regular sequencer register 3, Address offset: 0x38 */
  229. __IO uint32_t SQR4; /*!< ADC group regular sequencer register 4, Address offset: 0x3C */
  230. __IO uint32_t DR; /*!< ADC group regular data register, Address offset: 0x40 */
  231. uint32_t RESERVED3; /*!< Reserved, 0x44 */
  232. uint32_t RESERVED4; /*!< Reserved, 0x48 */
  233. __IO uint32_t JSQR; /*!< ADC group injected sequencer register, Address offset: 0x4C */
  234. uint32_t RESERVED5[4]; /*!< Reserved, 0x50 - 0x5C */
  235. __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
  236. __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
  237. __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
  238. __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
  239. uint32_t RESERVED6[4]; /*!< Reserved, 0x70 - 0x7C */
  240. __IO uint32_t JDR1; /*!< ADC group injected rank 1 data register, Address offset: 0x80 */
  241. __IO uint32_t JDR2; /*!< ADC group injected rank 2 data register, Address offset: 0x84 */
  242. __IO uint32_t JDR3; /*!< ADC group injected rank 3 data register, Address offset: 0x88 */
  243. __IO uint32_t JDR4; /*!< ADC group injected rank 4 data register, Address offset: 0x8C */
  244. uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
  245. __IO uint32_t AWD2CR; /*!< ADC analog watchdog 1 configuration register, Address offset: 0xA0 */
  246. __IO uint32_t AWD3CR; /*!< ADC analog watchdog 3 Configuration Register, Address offset: 0xA4 */
  247. uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
  248. uint32_t RESERVED9; /*!< Reserved, 0x0AC */
  249. __IO uint32_t DIFSEL; /*!< ADC differential mode selection register, Address offset: 0xB0 */
  250. __IO uint32_t CALFACT; /*!< ADC calibration factors, Address offset: 0xB4 */
  251. } ADC_TypeDef;
  252. typedef struct
  253. {
  254. __IO uint32_t CSR; /*!< ADC common status register, Address offset: ADC1 base address + 0x300 */
  255. uint32_t RESERVED; /*!< Reserved, Address offset: ADC1 base address + 0x304 */
  256. __IO uint32_t CCR; /*!< ADC common configuration register, Address offset: ADC1 base address + 0x308 */
  257. __IO uint32_t CDR; /*!< ADC common group regular data register Address offset: ADC1 base address + 0x30C */
  258. } ADC_Common_TypeDef;
  259. /**
  260. * @brief FD Controller Area Network
  261. */
  262. typedef struct
  263. {
  264. __IO uint32_t CREL; /*!< FDCAN Core Release register, Address offset: 0x000 */
  265. __IO uint32_t ENDN; /*!< FDCAN Endian register, Address offset: 0x004 */
  266. uint32_t RESERVED1; /*!< Reserved, 0x008 */
  267. __IO uint32_t DBTP; /*!< FDCAN Data Bit Timing & Prescaler register, Address offset: 0x00C */
  268. __IO uint32_t TEST; /*!< FDCAN Test register, Address offset: 0x010 */
  269. __IO uint32_t RWD; /*!< FDCAN RAM Watchdog register, Address offset: 0x014 */
  270. __IO uint32_t CCCR; /*!< FDCAN CC Control register, Address offset: 0x018 */
  271. __IO uint32_t NBTP; /*!< FDCAN Nominal Bit Timing & Prescaler register, Address offset: 0x01C */
  272. __IO uint32_t TSCC; /*!< FDCAN Timestamp Counter Configuration register, Address offset: 0x020 */
  273. __IO uint32_t TSCV; /*!< FDCAN Timestamp Counter Value register, Address offset: 0x024 */
  274. __IO uint32_t TOCC; /*!< FDCAN Timeout Counter Configuration register, Address offset: 0x028 */
  275. __IO uint32_t TOCV; /*!< FDCAN Timeout Counter Value register, Address offset: 0x02C */
  276. uint32_t RESERVED2[4]; /*!< Reserved, 0x030 - 0x03C */
  277. __IO uint32_t ECR; /*!< FDCAN Error Counter register, Address offset: 0x040 */
  278. __IO uint32_t PSR; /*!< FDCAN Protocol Status register, Address offset: 0x044 */
  279. __IO uint32_t TDCR; /*!< FDCAN Transmitter Delay Compensation register, Address offset: 0x048 */
  280. uint32_t RESERVED3; /*!< Reserved, 0x04C */
  281. __IO uint32_t IR; /*!< FDCAN Interrupt register, Address offset: 0x050 */
  282. __IO uint32_t IE; /*!< FDCAN Interrupt Enable register, Address offset: 0x054 */
  283. __IO uint32_t ILS; /*!< FDCAN Interrupt Line Select register, Address offset: 0x058 */
  284. __IO uint32_t ILE; /*!< FDCAN Interrupt Line Enable register, Address offset: 0x05C */
  285. uint32_t RESERVED4[8]; /*!< Reserved, 0x060 - 0x07C */
  286. __IO uint32_t RXGFC; /*!< FDCAN Global Filter Configuration register, Address offset: 0x080 */
  287. __IO uint32_t XIDAM; /*!< FDCAN Extended ID AND Mask register, Address offset: 0x084 */
  288. __IO uint32_t HPMS; /*!< FDCAN High Priority Message Status register, Address offset: 0x088 */
  289. uint32_t RESERVED5; /*!< Reserved, 0x08C */
  290. __IO uint32_t RXF0S; /*!< FDCAN Rx FIFO 0 Status register, Address offset: 0x090 */
  291. __IO uint32_t RXF0A; /*!< FDCAN Rx FIFO 0 Acknowledge register, Address offset: 0x094 */
  292. __IO uint32_t RXF1S; /*!< FDCAN Rx FIFO 1 Status register, Address offset: 0x098 */
  293. __IO uint32_t RXF1A; /*!< FDCAN Rx FIFO 1 Acknowledge register, Address offset: 0x09C */
  294. uint32_t RESERVED6[8]; /*!< Reserved, 0x0A0 - 0x0BC */
  295. __IO uint32_t TXBC; /*!< FDCAN Tx Buffer Configuration register, Address offset: 0x0C0 */
  296. __IO uint32_t TXFQS; /*!< FDCAN Tx FIFO/Queue Status register, Address offset: 0x0C4 */
  297. __IO uint32_t TXBRP; /*!< FDCAN Tx Buffer Request Pending register, Address offset: 0x0C8 */
  298. __IO uint32_t TXBAR; /*!< FDCAN Tx Buffer Add Request register, Address offset: 0x0CC */
  299. __IO uint32_t TXBCR; /*!< FDCAN Tx Buffer Cancellation Request register, Address offset: 0x0D0 */
  300. __IO uint32_t TXBTO; /*!< FDCAN Tx Buffer Transmission Occurred register, Address offset: 0x0D4 */
  301. __IO uint32_t TXBCF; /*!< FDCAN Tx Buffer Cancellation Finished register, Address offset: 0x0D8 */
  302. __IO uint32_t TXBTIE; /*!< FDCAN Tx Buffer Transmission Interrupt Enable register, Address offset: 0x0DC */
  303. __IO uint32_t TXBCIE; /*!< FDCAN Tx Buffer Cancellation Finished Interrupt Enable register, Address offset: 0x0E0 */
  304. __IO uint32_t TXEFS; /*!< FDCAN Tx Event FIFO Status register, Address offset: 0x0E4 */
  305. __IO uint32_t TXEFA; /*!< FDCAN Tx Event FIFO Acknowledge register, Address offset: 0x0E8 */
  306. } FDCAN_GlobalTypeDef;
  307. /**
  308. * @brief FD Controller Area Network Configuration
  309. */
  310. typedef struct
  311. {
  312. __IO uint32_t CKDIV; /*!< FDCAN clock divider register, Address offset: 0x100 + 0x000 */
  313. uint32_t RESERVED1[128];/*!< Reserved, 0x100 + 0x004 - 0x100 + 0x200 */
  314. __IO uint32_t OPTR; /*!< FDCAN option register, Address offset: 0x100 + 0x204 */
  315. } FDCAN_Config_TypeDef;
  316. /**
  317. * @brief CRC calculation unit
  318. */
  319. typedef struct
  320. {
  321. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  322. __IO uint32_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  323. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  324. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  325. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  326. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  327. } CRC_TypeDef;
  328. /**
  329. * @brief Clock Recovery System
  330. */
  331. typedef struct
  332. {
  333. __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */
  334. __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */
  335. __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */
  336. __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */
  337. } CRS_TypeDef;
  338. /**
  339. * @brief AES hardware accelerator
  340. */
  341. typedef struct
  342. {
  343. __IO uint32_t CR; /*!< AES control register, Address offset: 0x00 */
  344. __IO uint32_t SR; /*!< AES status register, Address offset: 0x04 */
  345. __IO uint32_t DINR; /*!< AES data input register, Address offset: 0x08 */
  346. __IO uint32_t DOUTR; /*!< AES data output register, Address offset: 0x0C */
  347. __IO uint32_t KEYR0; /*!< AES key register 0, Address offset: 0x10 */
  348. __IO uint32_t KEYR1; /*!< AES key register 1, Address offset: 0x14 */
  349. __IO uint32_t KEYR2; /*!< AES key register 2, Address offset: 0x18 */
  350. __IO uint32_t KEYR3; /*!< AES key register 3, Address offset: 0x1C */
  351. __IO uint32_t IVR0; /*!< AES initialization vector register 0, Address offset: 0x20 */
  352. __IO uint32_t IVR1; /*!< AES initialization vector register 1, Address offset: 0x24 */
  353. __IO uint32_t IVR2; /*!< AES initialization vector register 2, Address offset: 0x28 */
  354. __IO uint32_t IVR3; /*!< AES initialization vector register 3, Address offset: 0x2C */
  355. __IO uint32_t KEYR4; /*!< AES key register 4, Address offset: 0x30 */
  356. __IO uint32_t KEYR5; /*!< AES key register 5, Address offset: 0x34 */
  357. __IO uint32_t KEYR6; /*!< AES key register 6, Address offset: 0x38 */
  358. __IO uint32_t KEYR7; /*!< AES key register 7, Address offset: 0x3C */
  359. __IO uint32_t SUSP0R; /*!< AES Suspend register 0, Address offset: 0x40 */
  360. __IO uint32_t SUSP1R; /*!< AES Suspend register 1, Address offset: 0x44 */
  361. __IO uint32_t SUSP2R; /*!< AES Suspend register 2, Address offset: 0x48 */
  362. __IO uint32_t SUSP3R; /*!< AES Suspend register 3, Address offset: 0x4C */
  363. __IO uint32_t SUSP4R; /*!< AES Suspend register 4, Address offset: 0x50 */
  364. __IO uint32_t SUSP5R; /*!< AES Suspend register 5, Address offset: 0x54 */
  365. __IO uint32_t SUSP6R; /*!< AES Suspend register 6, Address offset: 0x58 */
  366. __IO uint32_t SUSP7R; /*!< AES Suspend register 7, Address offset: 0x5C */
  367. } AES_TypeDef;
  368. /**
  369. * @brief Comparator
  370. */
  371. typedef struct
  372. {
  373. __IO uint32_t CSR; /*!< COMP control and status register, Address offset: 0x00 */
  374. } COMP_TypeDef;
  375. typedef struct
  376. {
  377. __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  378. } COMP_Common_TypeDef;
  379. /**
  380. * @brief Digital to Analog Converter
  381. */
  382. typedef struct
  383. {
  384. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  385. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  386. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  387. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  388. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  389. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  390. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  391. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  392. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  393. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  394. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  395. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  396. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  397. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  398. __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */
  399. __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */
  400. __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */
  401. __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */
  402. __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */
  403. __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */
  404. } DAC_TypeDef;
  405. /**
  406. * @brief DFSDM module registers
  407. */
  408. typedef struct
  409. {
  410. __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */
  411. __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */
  412. __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */
  413. __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */
  414. __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */
  415. __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */
  416. __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */
  417. __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */
  418. __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */
  419. __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */
  420. __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */
  421. __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */
  422. __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */
  423. __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */
  424. __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */
  425. } DFSDM_Filter_TypeDef;
  426. /**
  427. * @brief DFSDM channel configuration registers
  428. */
  429. typedef struct
  430. {
  431. __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */
  432. __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */
  433. __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and
  434. short circuit detector register, Address offset: 0x08 */
  435. __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */
  436. __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */
  437. __IO uint32_t CHDLYR; /*!< DFSDM channel delay register, Address offset: 0x14 */
  438. } DFSDM_Channel_TypeDef;
  439. /**
  440. * @brief Debug MCU - TODO review for STM32L5 to be done
  441. */
  442. typedef struct
  443. {
  444. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  445. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  446. __IO uint32_t APB1FZR1; /*!< Debug MCU APB1 freeze register 1, Address offset: 0x08 */
  447. __IO uint32_t APB1FZR2; /*!< Debug MCU APB1 freeze register 2, Address offset: 0x0C */
  448. __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x10 */
  449. } DBGMCU_TypeDef;
  450. /**
  451. * @brief DMA Controller
  452. */
  453. typedef struct
  454. {
  455. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  456. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  457. } DMA_TypeDef;
  458. typedef struct
  459. {
  460. __IO uint32_t CCR; /*!< DMA channel x configuration register, Address offset: 0x08 + (x * 0x14) */
  461. __IO uint32_t CNDTR; /*!< DMA channel x number of data register, Address offset: 0x0C + (x * 0x14) */
  462. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register, Address offset: 0x10 + (x * 0x14) */
  463. __IO uint32_t CM0AR; /*!< DMA channel x memory 0 address register, Address offset: 0x14 + (x * 0x14) */
  464. __IO uint32_t CM1AR; /*!< DMA channel x memory 1 address register, Address offset: 0x18 + (x * 0x14) */
  465. } DMA_Channel_TypeDef;
  466. /**
  467. * @brief DMA Multiplexer
  468. */
  469. typedef struct
  470. {
  471. __IO uint32_t CCR; /*!< DMA Multiplexer Channel x Control Register Address offset: 0x0004 * (channel x) */
  472. } DMAMUX_Channel_TypeDef;
  473. typedef struct
  474. {
  475. __IO uint32_t CSR; /*!< DMA Channel Status Register Address offset: 0x0080 */
  476. __IO uint32_t CFR; /*!< DMA Channel Clear Flag Register Address offset: 0x0084 */
  477. } DMAMUX_ChannelStatus_TypeDef;
  478. typedef struct
  479. {
  480. __IO uint32_t RGCR; /*!< DMA Request Generator x Control Register Address offset: 0x0100 + 0x0004 * (Req Gen x) */
  481. } DMAMUX_RequestGen_TypeDef;
  482. typedef struct
  483. {
  484. __IO uint32_t RGSR; /*!< DMA Request Generator Status Register Address offset: 0x0140 */
  485. __IO uint32_t RGCFR; /*!< DMA Request Generator Clear Flag Register Address offset: 0x0144 */
  486. } DMAMUX_RequestGenStatus_TypeDef;
  487. /**
  488. * @brief Asynch Interrupt/Event Controller (EXTI)
  489. */
  490. typedef struct
  491. {
  492. __IO uint32_t RTSR1; /*!< EXTI Rising Trigger Selection Register 1, Address offset: 0x00 */
  493. __IO uint32_t FTSR1; /*!< EXTI Falling Trigger Selection Register 1, Address offset: 0x04 */
  494. __IO uint32_t SWIER1; /*!< EXTI Software Interrupt event Register 1, Address offset: 0x08 */
  495. __IO uint32_t RPR1; /*!< EXTI Rising Pending Register 1, Address offset: 0x0C */
  496. __IO uint32_t FPR1; /*!< EXTI Falling Pending Register 1, Address offset: 0x10 */
  497. __IO uint32_t SECCFGR1; /*!< EXTI Security Configuration Register 1, Address offset: 0x14 */
  498. __IO uint32_t PRIVCFGR1; /*!< EXTI Privilege Configuration Register 1, Address offset: 0x18 */
  499. uint32_t RESERVED1; /*!< Reserved 1, 0x1C */
  500. __IO uint32_t RTSR2; /*!< EXTI Rising Trigger Selection Register 2, Address offset: 0x20 */
  501. __IO uint32_t FTSR2; /*!< EXTI Falling Trigger Selection Register 2, Address offset: 0x24 */
  502. __IO uint32_t SWIER2; /*!< EXTI Software Interrupt event Register 2, Address offset: 0x28 */
  503. __IO uint32_t RPR2; /*!< EXTI Rising Pending Register 2, Address offset: 0x2C */
  504. __IO uint32_t FPR2; /*!< EXTI Falling Pending Register 2, Address offset: 0x30 */
  505. __IO uint32_t SECCFGR2; /*!< EXTI Security Configuration Register 2, Address offset: 0x34 */
  506. __IO uint32_t PRIVCFGR2; /*!< EXTI Privilege Configuration Register 2, Address offset: 0x38 */
  507. uint32_t RESERVED2[9]; /*!< Reserved 2, 0x3C -- 0x5C */
  508. __IO uint32_t EXTICR[4]; /*!< EXTI External Interrupt Configuration Register, 0x60 -- 0x6C */
  509. __IO uint32_t LOCKR; /*!< EXTI Lock Register, Address offset: 0x70 */
  510. uint32_t RESERVED3[3]; /*!< Reserved 3, 0x74 -- 0x7C */
  511. __IO uint32_t IMR1; /*!< EXTI Interrupt Mask Register 1, Address offset: 0x80 */
  512. __IO uint32_t EMR1; /*!< EXTI Event Mask Register 1, Address offset: 0x84 */
  513. uint32_t RESERVED4[2]; /*!< Reserved 4, 0x88 -- 0x8C */
  514. __IO uint32_t IMR2; /*!< EXTI Interrupt Mask Register 2, Address offset: 0x90 */
  515. __IO uint32_t EMR2; /*!< EXTI Event Mask Register 2, Address offset: 0x94 */
  516. } EXTI_TypeDef;
  517. /**
  518. * @brief FLASH Registers
  519. */
  520. typedef struct
  521. {
  522. __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
  523. __IO uint32_t PDKEYR; /*!< FLASH power down key register, Address offset: 0x04 */
  524. __IO uint32_t NSKEYR; /*!< FLASH non-secure key register, Address offset: 0x08 */
  525. __IO uint32_t SECKEYR; /*!< FLASH secure key register, Address offset: 0x0C */
  526. __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x10 */
  527. __IO uint32_t LVEKEYR; /*!< FLASH LVE key register, Address offset: 0x14 */
  528. __IO uint32_t RESERVED1[2]; /*!< Reserved1, Address offset: 0x18-0x1C */
  529. __IO uint32_t NSSR; /*!< FLASH non-secure status register, Address offset: 0x20 */
  530. __IO uint32_t SECSR; /*!< FLASH secure status register, Address offset: 0x24 */
  531. __IO uint32_t NSCR; /*!< FLASH non-secure control register, Address offset: 0x28 */
  532. __IO uint32_t SECCR; /*!< FLASH secure control register, Address offset: 0x2C */
  533. __IO uint32_t ECCR; /*!< FLASH ECC register, Address offset: 0x30 */
  534. __IO uint32_t RESERVED2[3]; /*!< Reserved2, Address offset: 0x34-0x3C */
  535. __IO uint32_t OPTR; /*!< FLASH option control register, Address offset: 0x40 */
  536. __IO uint32_t NSBOOTADD0R; /*!< FLASH non-secure boot address 0 register, Address offset: 0x44 */
  537. __IO uint32_t NSBOOTADD1R; /*!< FLASH non-secure boot address 1 register, Address offset: 0x48 */
  538. __IO uint32_t SECBOOTADD0R; /*!< FLASH secure boot address 0 register, Address offset: 0x4C */
  539. __IO uint32_t SECWM1R1; /*!< FLASH watermark-based secure register 1 bank 1, Address offset: 0x50 */
  540. __IO uint32_t SECWM1R2; /*!< FLASH watermark-based secure register 2 bank 1, Address offset: 0x54 */
  541. __IO uint32_t WRP1AR; /*!< FLASH WRP area A register bank 1, Address offset: 0x58 */
  542. __IO uint32_t WRP1BR; /*!< FLASH WRP area B register bank 1, Address offset: 0x5C */
  543. __IO uint32_t SECWM2R1; /*!< FLASH watermark-based secure register 1 bank 2, Address offset: 0x60 */
  544. __IO uint32_t SECWM2R2; /*!< FLASH watermark-based secure register 2 bank 2, Address offset: 0x64 */
  545. __IO uint32_t WRP2AR; /*!< FLASH WRP area A register bank 2, Address offset: 0x68 */
  546. __IO uint32_t WRP2BR; /*!< FLASH WRP area B register bank 2, Address offset: 0x6C */
  547. __IO uint32_t RESERVED3[4]; /*!< Reserved3, Address offset: 0x70-0x7C */
  548. __IO uint32_t SECBB1R1; /*!< FLASH block-based secure bank 1, Address offset: 0x80 */
  549. __IO uint32_t SECBB1R2; /*!< FLASH block-based secure bank 1, Address offset: 0x84 */
  550. __IO uint32_t SECBB1R3; /*!< FLASH block-based secure bank 1, Address offset: 0x88 */
  551. __IO uint32_t SECBB1R4; /*!< FLASH block-based secure bank 1, Address offset: 0x8C */
  552. __IO uint32_t RESERVED4[4]; /*!< Reserved4, Address offset: 0x90-0x9C */
  553. __IO uint32_t SECBB2R1; /*!< FLASH block-based secure bank 2, Address offset: 0xA0 */
  554. __IO uint32_t SECBB2R2; /*!< FLASH block-based secure bank 2, Address offset: 0xA4 */
  555. __IO uint32_t SECBB2R3; /*!< FLASH block-based secure bank 2, Address offset: 0xA8 */
  556. __IO uint32_t SECBB2R4; /*!< FLASH block-based secure bank 2, Address offset: 0xAC */
  557. __IO uint32_t RESERVED5[4]; /*!< Reserved5, Address offset: 0xB0-0xBC */
  558. __IO uint32_t SECHDPCR; /*!< FLASH secure HDP control register, Address offset: 0xC0 */
  559. __IO uint32_t PRIVCFGR; /*!< FLASH privilege configuration register, Address offset: 0xC4 */
  560. } FLASH_TypeDef;
  561. /**
  562. * @brief Flexible Memory Controller
  563. */
  564. typedef struct
  565. {
  566. __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
  567. __IO uint32_t PCSCNTR; /*!< PSRAM chip-select counter register, Address offset: 0x20 */
  568. } FMC_Bank1_TypeDef;
  569. /**
  570. * @brief Flexible Memory Controller Bank1E
  571. */
  572. typedef struct
  573. {
  574. __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
  575. } FMC_Bank1E_TypeDef;
  576. /**
  577. * @brief Flexible Memory Controller Bank3
  578. */
  579. typedef struct
  580. {
  581. __IO uint32_t PCR; /*!< NAND Flash control register, Address offset: 0x80 */
  582. __IO uint32_t SR; /*!< NAND Flash FIFO status and interrupt register, Address offset: 0x84 */
  583. __IO uint32_t PMEM; /*!< NAND Flash Common memory space timing register, Address offset: 0x88 */
  584. __IO uint32_t PATT; /*!< NAND Flash Attribute memory space timing register, Address offset: 0x8C */
  585. uint32_t RESERVED0; /*!< Reserved, 0x90 */
  586. __IO uint32_t ECCR; /*!< NAND Flash ECC result registers, Address offset: 0x94 */
  587. } FMC_Bank3_TypeDef;
  588. /**
  589. * @brief General Purpose I/O
  590. */
  591. typedef struct
  592. {
  593. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  594. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  595. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  596. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  597. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  598. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  599. __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x18 */
  600. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  601. __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
  602. __IO uint32_t BRR; /*!< GPIO Bit Reset register, Address offset: 0x28 */
  603. uint32_t RESERVED; /*!< Reserved, Address offset: 0x2C */
  604. __IO uint32_t SECCFGR; /*!< GPIO Security configuration register, Address offset: 0x30 */
  605. } GPIO_TypeDef;
  606. /**
  607. * @brief Global TrustZone Controller
  608. */
  609. typedef struct{
  610. __IO uint32_t CR; /*!< TZSC control register, Address offset: 0x00 */
  611. uint32_t RESERVED1[3]; /*!< Reserved1, Address offset: 0x04-0x0C */
  612. __IO uint32_t SECCFGR1; /*!< TZSC secure configuration register 1, Address offset: 0x10 */
  613. __IO uint32_t SECCFGR2; /*!< TZSC secure configuration register 2, Address offset: 0x14 */
  614. uint32_t RESERVED2[2]; /*!< Reserved2, Address offset: 0x18-0x1C */
  615. __IO uint32_t PRIVCFGR1; /*!< TZSC privilege configuration register 1, Address offset: 0x20 */
  616. __IO uint32_t PRIVCFGR2; /*!< TZSC privilege configuration register 2, Address offset: 0x24 */
  617. uint32_t RESERVED3[2]; /*!< Reserved3, Address offset: 0x28-0x2C */
  618. __IO uint32_t MPCWM1_NSWMR1; /*!< TZSC external memory 1, non-secure watermark register 1, Address offset: 0x30 */
  619. __IO uint32_t MPCWM1_NSWMR2; /*!< TZSC external memory 1, non-secure watermark register 2, Address offset: 0x34 */
  620. __IO uint32_t MPCWM2_NSWMR1; /*!< TZSC external memory 2, non-secure watermark register 1, Address offset: 0x38 */
  621. __IO uint32_t MPCWM2_NSWMR2; /*!< TZSC external memory 2, non-secure watermark register 2, Address offset: 0x3c */
  622. __IO uint32_t MPCWM3_NSWMR1; /*!< TZSC external memory 3, non-secure watermark register 1, Address offset: 0x40 */
  623. } GTZC_TZSC_TypeDef;
  624. typedef struct{
  625. __IO uint32_t CR; /*!< MPCBBx control register, Address offset: 0x00 */
  626. uint32_t RESERVED1[3]; /*!< Reserved1, Address offset: 0x04-0x0C */
  627. __IO uint32_t LCKVTR1; /*!< MPCBBx lock register 1, Address offset: 0x10 */
  628. __IO uint32_t LCKVTR2; /*!< MPCBBx lock register 2, Address offset: 0x14 */
  629. uint32_t RESERVED2[58]; /*!< Reserved2, Address offset: 0x18-0xFC */
  630. __IO uint32_t VCTR[24]; /*!< MPCBBx vector registers, Address offset: 0x100-0x120 */
  631. } GTZC_MPCBB_TypeDef;
  632. typedef struct{
  633. __IO uint32_t IER1; /*!< TZIC interrupt enable register 1, Address offset: 0x00 */
  634. __IO uint32_t IER2; /*!< TZIC interrupt enable register 2, Address offset: 0x04 */
  635. __IO uint32_t IER3; /*!< TZIC interrupt enable register 3, Address offset: 0x08 */
  636. uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x0C */
  637. __IO uint32_t SR1; /*!< TZIC status register 1, Address offset: 0x10 */
  638. __IO uint32_t SR2; /*!< TZIC status register 2, Address offset: 0x14 */
  639. __IO uint32_t SR3; /*!< TZIC status register 3, Address offset: 0x18 */
  640. uint32_t RESERVED2; /*!< Reserved2, Address offset: 0x1C */
  641. __IO uint32_t FCR1; /*!< TZIC flag clear register 1, Address offset: 0x20 */
  642. __IO uint32_t FCR2; /*!< TZIC flag clear register 2, Address offset: 0x24 */
  643. __IO uint32_t FCR3; /*!< TZIC flag clear register 3, Address offset: 0x28 */
  644. } GTZC_TZIC_TypeDef;
  645. /**
  646. * @brief HASH
  647. */
  648. typedef struct
  649. {
  650. __IO uint32_t CR; /*!< HASH control register, Address offset: 0x00 */
  651. __IO uint32_t DIN; /*!< HASH data input register, Address offset: 0x04 */
  652. __IO uint32_t STR; /*!< HASH start register, Address offset: 0x08 */
  653. __IO uint32_t HR[5]; /*!< HASH digest registers, Address offset: 0x0C-0x1C */
  654. __IO uint32_t IMR; /*!< HASH interrupt enable register, Address offset: 0x20 */
  655. __IO uint32_t SR; /*!< HASH status register, Address offset: 0x24 */
  656. uint32_t RESERVED[52]; /*!< Reserved, 0x28-0xF4 */
  657. __IO uint32_t CSR[54]; /*!< HASH context swap registers, Address offset: 0x0F8-0x1CC */
  658. } HASH_TypeDef;
  659. /**
  660. * @brief HASH_DIGEST
  661. */
  662. typedef struct
  663. {
  664. __IO uint32_t HR[8]; /*!< HASH digest registers, Address offset: 0x310-0x32C */
  665. } HASH_DIGEST_TypeDef;
  666. /**
  667. * @brief Inter-integrated Circuit Interface
  668. */
  669. typedef struct
  670. {
  671. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  672. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  673. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  674. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  675. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  676. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  677. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  678. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  679. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  680. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  681. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  682. } I2C_TypeDef;
  683. /**
  684. * @brief Instruction Cache
  685. */
  686. typedef struct
  687. {
  688. __IO uint32_t CR; /*!< ICACHE control register, Address offset: 0x00 */
  689. __IO uint32_t SR; /*!< ICACHE status register, Address offset: 0x04 */
  690. __IO uint32_t IER; /*!< ICACHE interrupt enable register, Address offset: 0x08 */
  691. __IO uint32_t FCR; /*!< ICACHE flag clear register, Address offset: 0x0C */
  692. __IO uint32_t HMONR; /*!< ICACHE hit monitor register, Address offset: 0x10 */
  693. __IO uint32_t MMONR; /*!< ICACHE miss monitor register, Address offset: 0x14 */
  694. uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x018-0x01C */
  695. __IO uint32_t CRR0; /*!< ICACHE region 0 configuration register, Address offset: 0x20 */
  696. __IO uint32_t CRR1; /*!< ICACHE region 1 configuration register, Address offset: 0x24 */
  697. __IO uint32_t CRR2; /*!< ICACHE region 2 configuration register, Address offset: 0x28 */
  698. __IO uint32_t CRR3; /*!< ICACHE region 3 configuration register, Address offset: 0x2C */
  699. } ICACHE_TypeDef;
  700. /**
  701. * @brief Independent WATCHDOG
  702. */
  703. typedef struct
  704. {
  705. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  706. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  707. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  708. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  709. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  710. } IWDG_TypeDef;
  711. /**
  712. * @brief LPTIMER
  713. */
  714. typedef struct
  715. {
  716. __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */
  717. __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */
  718. __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */
  719. __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */
  720. __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */
  721. __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */
  722. __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */
  723. __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */
  724. __IO uint32_t OR; /*!< LPTIM Option register, Address offset: 0x20 */
  725. __IO uint32_t RESERVED; /*!< Reserved, Address offset: 0x24 */
  726. __IO uint32_t RCR; /*!< LPTIM Repetition counter register, Address offset: 0x28 */
  727. } LPTIM_TypeDef;
  728. /**
  729. * @brief OCTO Serial Peripheral Interface
  730. */
  731. typedef struct
  732. {
  733. __IO uint32_t CR; /*!< OCTOSPI Control register, Address offset: 0x000 */
  734. uint32_t RESERVED; /*!< Reserved, Address offset: 0x004 */
  735. __IO uint32_t DCR1; /*!< OCTOSPI Device Configuration register 1, Address offset: 0x008 */
  736. __IO uint32_t DCR2; /*!< OCTOSPI Device Configuration register 2, Address offset: 0x00C */
  737. __IO uint32_t DCR3; /*!< OCTOSPI Device Configuration register 3, Address offset: 0x010 */
  738. __IO uint32_t DCR4; /*!< OCTOSPI Device Configuration register 4, Address offset: 0x014 */
  739. uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x018-0x01C */
  740. __IO uint32_t SR; /*!< OCTOSPI Status register, Address offset: 0x020 */
  741. __IO uint32_t FCR; /*!< OCTOSPI Flag Clear register, Address offset: 0x024 */
  742. uint32_t RESERVED2[6]; /*!< Reserved, Address offset: 0x028-0x03C */
  743. __IO uint32_t DLR; /*!< OCTOSPI Data Length register, Address offset: 0x040 */
  744. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x044 */
  745. __IO uint32_t AR; /*!< OCTOSPI Address register, Address offset: 0x048 */
  746. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x04C */
  747. __IO uint32_t DR; /*!< OCTOPSI Data register, Address offset: 0x050 */
  748. uint32_t RESERVED5[11]; /*!< Reserved, Address offset: 0x054-0x07C */
  749. __IO uint32_t PSMKR; /*!< OCTOSPI Polling Status Mask register, Address offset: 0x080 */
  750. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x084 */
  751. __IO uint32_t PSMAR; /*!< OCTOSPI Polling Status Match register, Address offset: 0x088 */
  752. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x08C */
  753. __IO uint32_t PIR; /*!< OCTOSPI Polling Interval register, Address offset: 0x090 */
  754. uint32_t RESERVED8[27]; /*!< Reserved, Address offset: 0x094-0x0FC */
  755. __IO uint32_t CCR; /*!< OCTOSPI Communication Configuration register, Address offset: 0x100 */
  756. uint32_t RESERVED9; /*!< Reserved, Address offset: 0x104 */
  757. __IO uint32_t TCR; /*!< OCTOSPI Timing Configuration register, Address offset: 0x108 */
  758. uint32_t RESERVED10; /*!< Reserved, Address offset: 0x10C */
  759. __IO uint32_t IR; /*!< OCTOSPI Instruction register, Address offset: 0x110 */
  760. uint32_t RESERVED11[3]; /*!< Reserved, Address offset: 0x114-0x11C */
  761. __IO uint32_t ABR; /*!< OCTOSPI Alternate Bytes register, Address offset: 0x120 */
  762. uint32_t RESERVED12[3]; /*!< Reserved, Address offset: 0x124-0x12C */
  763. __IO uint32_t LPTR; /*!< OCTOSPI Low Power Timeout register, Address offset: 0x130 */
  764. uint32_t RESERVED13[3]; /*!< Reserved, Address offset: 0x134-0x13C */
  765. __IO uint32_t WPCCR; /*!< OCTOSPI Wrap Communication Configuration register, Address offset: 0x140 */
  766. uint32_t RESERVED14; /*!< Reserved, Address offset: 0x144 */
  767. __IO uint32_t WPTCR; /*!< OCTOSPI Wrap Timing Configuration register, Address offset: 0x148 */
  768. uint32_t RESERVED15; /*!< Reserved, Address offset: 0x14C */
  769. __IO uint32_t WPIR; /*!< OCTOSPI Wrap Instruction register, Address offset: 0x150 */
  770. uint32_t RESERVED16[3]; /*!< Reserved, Address offset: 0x154-0x15C */
  771. __IO uint32_t WPABR; /*!< OCTOSPI Wrap Alternate Bytes register, Address offset: 0x160 */
  772. uint32_t RESERVED17[7]; /*!< Reserved, Address offset: 0x164-0x17C */
  773. __IO uint32_t WCCR; /*!< OCTOSPI Write Communication Configuration register, Address offset: 0x180 */
  774. uint32_t RESERVED18; /*!< Reserved, Address offset: 0x184 */
  775. __IO uint32_t WTCR; /*!< OCTOSPI Write Timing Configuration register, Address offset: 0x188 */
  776. uint32_t RESERVED19; /*!< Reserved, Address offset: 0x18C */
  777. __IO uint32_t WIR; /*!< OCTOSPI Write Instruction register, Address offset: 0x190 */
  778. uint32_t RESERVED20[3]; /*!< Reserved, Address offset: 0x194-0x19C */
  779. __IO uint32_t WABR; /*!< OCTOSPI Write Alternate Bytes register, Address offset: 0x1A0 */
  780. uint32_t RESERVED21[23]; /*!< Reserved, Address offset: 0x1A4-0x1FC */
  781. __IO uint32_t HLCR; /*!< OCTOSPI Hyperbus Latency Configuration register, Address offset: 0x200 */
  782. } OCTOSPI_TypeDef;
  783. /**
  784. * @brief Operational Amplifier (OPAMP)
  785. */
  786. typedef struct
  787. {
  788. __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */
  789. __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */
  790. __IO uint32_t LPOTR; /*!< OPAMP offset trimming register for low power mode, Address offset: 0x08 */
  791. } OPAMP_TypeDef;
  792. typedef struct
  793. {
  794. __IO uint32_t CSR; /*!< OPAMP control/status register, used for bits common to several OPAMP instances, Address offset: 0x00 */
  795. } OPAMP_Common_TypeDef;
  796. /**
  797. * @brief OTFDEC register
  798. */
  799. typedef struct
  800. {
  801. __IO uint32_t REG_CONFIGR; /*!< OTFDEC Region Configuration register, Address offset: 0x20 + 0x30 * (x -1) (x = 1 to 4) */
  802. __IO uint32_t REG_START_ADDR; /*!< OTFDEC Region Start Address register, Address offset: 0x24 + 0x30 * (x -1) (x = 1 to 4) */
  803. __IO uint32_t REG_END_ADDR; /*!< OTFDEC Region End Address register, Address offset: 0x28 + 0x30 * (x -1) (x = 1 to 4) */
  804. __IO uint32_t REG_NONCER0; /*!< OTFDEC Region Nonce register 0, Address offset: 0x2C + 0x30 * (x -1) (x = 1 to 4) */
  805. __IO uint32_t REG_NONCER1; /*!< OTFDEC Region Nonce register 1, Address offset: 0x30 + 0x30 * (x -1) (x = 1 to 4) */
  806. __IO uint32_t REG_KEYR0; /*!< OTFDEC Region Key register 0, Address offset: 0x34 + 0x30 * (x -1) (x = 1 to 4) */
  807. __IO uint32_t REG_KEYR1; /*!< OTFDEC Region Key register 1, Address offset: 0x38 + 0x30 * (x -1) (x = 1 to 4) */
  808. __IO uint32_t REG_KEYR2; /*!< OTFDEC Region Key register 2, Address offset: 0x3C + 0x30 * (x -1) (x = 1 to 4) */
  809. __IO uint32_t REG_KEYR3; /*!< OTFDEC Region Key register 3, Address offset: 0x40 + 0x30 * (x -1) (x = 1 to 4) */
  810. } OTFDEC_Region_TypeDef;
  811. typedef struct
  812. {
  813. __IO uint32_t CR; /*!< OTFDEC Control register, Address offset: 0x000 */
  814. uint32_t RESERVED1[3]; /*!< Reserved, Address offset: 0x004-0x00C */
  815. __IO uint32_t PRIVCFGR; /*!< OTFDEC Privileged access control configuration register, Address offset: 0x010 */
  816. uint32_t RESERVED2[187]; /*!< Reserved, Address offset: 0x014-0x2FC */
  817. __IO uint32_t ISR; /*!< OTFDEC Interrupt Status register, Address offset: 0x300 */
  818. __IO uint32_t ICR; /*!< OTFDEC Interrupt Clear register, Address offset: 0x304 */
  819. __IO uint32_t IER; /*!< OTFDEC Interrupt Enable register, Address offset: 0x308 */
  820. } OTFDEC_TypeDef;
  821. /**
  822. * @brief Public Key Accelerator (PKA)
  823. */
  824. typedef struct
  825. {
  826. __IO uint32_t CR; /*!< PKA control register, Address offset: 0x00 */
  827. __IO uint32_t SR; /*!< PKA status register, Address offset: 0x04 */
  828. __IO uint32_t CLRFR; /*!< PKA clear flag register, Address offset: 0x08 */
  829. uint32_t Reserved1[253]; /*!< Reserved Address offset: 0x000C-0x03FC*/
  830. __IO uint32_t RAM[894]; /*!< PKA RAM, Address offset: 0x0400-0x11F4 */
  831. } PKA_TypeDef;
  832. /**
  833. * @brief Power Control
  834. */
  835. typedef struct
  836. {
  837. __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */
  838. __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x04 */
  839. __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x08 */
  840. __IO uint32_t CR4; /*!< PWR power control register 4, Address offset: 0x0C */
  841. __IO uint32_t SR1; /*!< PWR power status register 1, Address offset: 0x10 */
  842. __IO uint32_t SR2; /*!< PWR power status register 2, Address offset: 0x14 */
  843. __IO uint32_t SCR; /*!< PWR power status clear register, Address offset: 0x18 */
  844. uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x1C */
  845. __IO uint32_t PUCRA; /*!< Pull_up control register of portA, Address offset: 0x20 */
  846. __IO uint32_t PDCRA; /*!< Pull_Down control register of portA, Address offset: 0x24 */
  847. __IO uint32_t PUCRB; /*!< Pull_up control register of portB, Address offset: 0x28 */
  848. __IO uint32_t PDCRB; /*!< Pull_Down control register of portB, Address offset: 0x2C */
  849. __IO uint32_t PUCRC; /*!< Pull_up control register of portC, Address offset: 0x30 */
  850. __IO uint32_t PDCRC; /*!< Pull_Down control register of portC, Address offset: 0x34 */
  851. __IO uint32_t PUCRD; /*!< Pull_up control register of portD, Address offset: 0x38 */
  852. __IO uint32_t PDCRD; /*!< Pull_Down control register of portD, Address offset: 0x3C */
  853. __IO uint32_t PUCRE; /*!< Pull_up control register of portE, Address offset: 0x40 */
  854. __IO uint32_t PDCRE; /*!< Pull_Down control register of portE, Address offset: 0x44 */
  855. __IO uint32_t PUCRF; /*!< Pull_up control register of portF, Address offset: 0x48 */
  856. __IO uint32_t PDCRF; /*!< Pull_Down control register of portF, Address offset: 0x4C */
  857. __IO uint32_t PUCRG; /*!< Pull_up control register of portG, Address offset: 0x50 */
  858. __IO uint32_t PDCRG; /*!< Pull_Down control register of portG, Address offset: 0x54 */
  859. __IO uint32_t PUCRH; /*!< Pull_up control register of portH, Address offset: 0x58 */
  860. __IO uint32_t PDCRH; /*!< Pull_Down control register of portH, Address offset: 0x5C */
  861. uint32_t RESERVED2[6]; /*!< Reserved2, Address offset: 0x60-0x74 */
  862. __IO uint32_t SECCFGR; /*!< PWR secure configuration register, Address offset: 0x78 */
  863. uint32_t RESERVED3; /*!< Reserved3, Address offset: 0x7C */
  864. __IO uint32_t PRIVCFGR; /*!< PWR privilege configuration register, Address offset: 0x80 */
  865. } PWR_TypeDef;
  866. /**
  867. * @brief Reset and Clock Control
  868. */
  869. typedef struct
  870. {
  871. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  872. __IO uint32_t ICSCR; /*!< RCC internal clock sources calibration register, Address offset: 0x04 */
  873. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x08 */
  874. __IO uint32_t PLLCFGR; /*!< RCC system PLL configuration register, Address offset: 0x0C */
  875. __IO uint32_t PLLSAI1CFGR; /*!< RCC PLL SAI1 configuration register, Address offset: 0x10 */
  876. __IO uint32_t PLLSAI2CFGR; /*!< RCC PLL SAI2 configuration register, Address offset: 0x14 */
  877. __IO uint32_t CIER; /*!< RCC clock interrupt enable register, Address offset: 0x18 */
  878. __IO uint32_t CIFR; /*!< RCC clock interrupt flag register, Address offset: 0x1C */
  879. __IO uint32_t CICR; /*!< RCC clock interrupt clear register, Address offset: 0x20 */
  880. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x24 */
  881. __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x28 */
  882. __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x2C */
  883. __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x30 */
  884. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x34 */
  885. __IO uint32_t APB1RSTR1; /*!< RCC APB1 peripheral reset register 1, Address offset: 0x38 */
  886. __IO uint32_t APB1RSTR2; /*!< RCC APB1 peripheral reset register 2, Address offset: 0x3C */
  887. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x40 */
  888. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x44 */
  889. __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clocks enable register, Address offset: 0x48 */
  890. __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clocks enable register, Address offset: 0x4C */
  891. __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clocks enable register, Address offset: 0x50 */
  892. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x54 */
  893. __IO uint32_t APB1ENR1; /*!< RCC APB1 peripheral clocks enable register 1, Address offset: 0x58 */
  894. __IO uint32_t APB1ENR2; /*!< RCC APB1 peripheral clocks enable register 2, Address offset: 0x5C */
  895. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clocks enable register, Address offset: 0x60 */
  896. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x64 */
  897. __IO uint32_t AHB1SMENR; /*!< RCC AHB1 peripheral clocks enable in sleep and stop modes register, Address offset: 0x68 */
  898. __IO uint32_t AHB2SMENR; /*!< RCC AHB2 peripheral clocks enable in sleep and stop modes register, Address offset: 0x6C */
  899. __IO uint32_t AHB3SMENR; /*!< RCC AHB3 peripheral clocks enable in sleep and stop modes register, Address offset: 0x70 */
  900. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x74 */
  901. __IO uint32_t APB1SMENR1; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 1, Address offset: 0x78 */
  902. __IO uint32_t APB1SMENR2; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 2, Address offset: 0x7C */
  903. __IO uint32_t APB2SMENR; /*!< RCC APB2 peripheral clocks enable in sleep mode and stop modes register, Address offset: 0x80 */
  904. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x84 */
  905. __IO uint32_t CCIPR1; /*!< RCC peripherals independent clock configuration register 1, Address offset: 0x88 */
  906. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x8C */
  907. __IO uint32_t BDCR; /*!< RCC backup domain control register, Address offset: 0x90 */
  908. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x94 */
  909. __IO uint32_t CRRCR; /*!< RCC clock recovery RC register, Address offset: 0x98 */
  910. __IO uint32_t CCIPR2; /*!< RCC peripherals independent clock configuration register 2, Address offset: 0x9C */
  911. uint32_t RESERVED8[6]; /*!< Reserved, Address offset: 0xA0-0xB4 */
  912. __IO uint32_t SECCFGR; /*!< RCC secure configuration register, Address offset: 0xB8 */
  913. __IO uint32_t SECSR; /*!< RCC secure status register, Address offset: 0xBC */
  914. uint32_t RESERVED9[10]; /*!< Reserved, Address offset: 0xC0-0xE4 */
  915. __IO uint32_t AHB1SECSR; /*!< RCC AHB1 security status register, Address offset: 0xE8 */
  916. __IO uint32_t AHB2SECSR; /*!< RCC AHB2 security status register, Address offset: 0xEC */
  917. __IO uint32_t AHB3SECSR; /*!< RCC AHB3 security status register, Address offset: 0xF0 */
  918. uint32_t RESERVED10; /*!< Reserved, Address offset: 0xF4 */
  919. __IO uint32_t APB1SECSR1; /*!< RCC APB1 security status register 1, Address offset: 0xF8 */
  920. __IO uint32_t APB1SECSR2; /*!< RCC APB1 security status register 2, Address offset: 0xFC */
  921. __IO uint32_t APB2SECSR; /*!< RCC APB2 security status register, Address offset: 0x100 */
  922. } RCC_TypeDef;
  923. /**
  924. * @brief RNG
  925. */
  926. typedef struct
  927. {
  928. __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */
  929. __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */
  930. __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */
  931. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x0C */
  932. __IO uint32_t HTCR; /*!< RNG health test control register, Address offset: 0x10 */
  933. } RNG_TypeDef;
  934. /**
  935. * @brief RTC Specific device feature definitions
  936. */
  937. #define RTC_BACKUP_NB 32u
  938. #define RTC_TAMP_NB 8u
  939. /**
  940. * @brief Real-Time Clock
  941. */
  942. typedef struct
  943. {
  944. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  945. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  946. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x08 */
  947. __IO uint32_t ICSR; /*!< RTC initialization control and status register, Address offset: 0x0C */
  948. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  949. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  950. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x18 */
  951. __IO uint32_t PRIVCR; /*!< RTC privilege mode control register, Address offset: 0x1C */
  952. __IO uint32_t SMCR; /*!< RTC Secure mode control register, Address offset: 0x20 */
  953. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  954. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x28 */
  955. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  956. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  957. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  958. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  959. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x3C */
  960. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x40 */
  961. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  962. __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x48 */
  963. __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x4C */
  964. __IO uint32_t SR; /*!< RTC Status register, Address offset: 0x50 */
  965. __IO uint32_t MISR; /*!< RTC masked interrupt status register, Address offset: 0x54 */
  966. __IO uint32_t SMISR; /*!< RTC secure masked interrupt status register, Address offset: 0x58 */
  967. __IO uint32_t SCR; /*!< RTC status Clear register, Address offset: 0x5C */
  968. } RTC_TypeDef;
  969. /**
  970. * @brief Serial Peripheral Interface
  971. */
  972. typedef struct
  973. {
  974. __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */
  975. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  976. __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
  977. __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
  978. __IO uint32_t CRCPR; /*!< SPI CRC polynomial register, Address offset: 0x10 */
  979. __IO uint32_t RXCRCR; /*!< SPI Rx CRC register, Address offset: 0x14 */
  980. __IO uint32_t TXCRCR; /*!< SPI Tx CRC register, Address offset: 0x18 */
  981. } SPI_TypeDef;
  982. /**
  983. * @brief Tamper and backup registers
  984. */
  985. typedef struct
  986. {
  987. __IO uint32_t CR1; /*!< TAMP configuration register 1, Address offset: 0x00 */
  988. __IO uint32_t CR2; /*!< TAMP configuration register 2, Address offset: 0x04 */
  989. __IO uint32_t CR3; /*!< TAMP configuration register 3, Address offset: 0x08 */
  990. __IO uint32_t FLTCR; /*!< TAMP filter control register, Address offset: 0x0C */
  991. __IO uint32_t ATCR1; /*!< TAMP active tamper control register 1 Address offset: 0x10 */
  992. __IO uint32_t ATSEEDR; /*!< TAMP active tamper seed register, Address offset: 0x14 */
  993. __IO uint32_t ATOR; /*!< TAMP active tamper output register, Address offset: 0x18 */
  994. __IO uint32_t ATCR2; /*!< TAMP active tamper control register 2, Address offset: 0x1C */
  995. __IO uint32_t SMCR; /*!< TAMP secure mode control register, Address offset: 0x20 */
  996. __IO uint32_t PRIVCR; /*!< TAMP privilege mode control register, Address offset: 0x24 */
  997. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x28 */
  998. __IO uint32_t IER; /*!< TAMP interrupt enable register, Address offset: 0x2C */
  999. __IO uint32_t SR; /*!< TAMP status register, Address offset: 0x30 */
  1000. __IO uint32_t MISR; /*!< TAMP masked interrupt status register, Address offset: 0x34 */
  1001. __IO uint32_t SMISR; /*!< TAMP secure masked interrupt status register, Address offset: 0x38 */
  1002. __IO uint32_t SCR; /*!< TAMP status clear register, Address offset: 0x3C */
  1003. __IO uint32_t COUNTR; /*!< TAMP monotonic counter register, Address offset: 0x40 */
  1004. uint32_t RESERVED1[47];/*!< Reserved, Address offset: 0x54 -- 0xFC */
  1005. __IO uint32_t BKP0R; /*!< TAMP backup register 0, Address offset: 0x100 */
  1006. __IO uint32_t BKP1R; /*!< TAMP backup register 1, Address offset: 0x104 */
  1007. __IO uint32_t BKP2R; /*!< TAMP backup register 2, Address offset: 0x108 */
  1008. __IO uint32_t BKP3R; /*!< TAMP backup register 3, Address offset: 0x10C */
  1009. __IO uint32_t BKP4R; /*!< TAMP backup register 4, Address offset: 0x110 */
  1010. __IO uint32_t BKP5R; /*!< TAMP backup register 5, Address offset: 0x114 */
  1011. __IO uint32_t BKP6R; /*!< TAMP backup register 6, Address offset: 0x118 */
  1012. __IO uint32_t BKP7R; /*!< TAMP backup register 7, Address offset: 0x11C */
  1013. __IO uint32_t BKP8R; /*!< TAMP backup register 8, Address offset: 0x120 */
  1014. __IO uint32_t BKP9R; /*!< TAMP backup register 9, Address offset: 0x124 */
  1015. __IO uint32_t BKP10R; /*!< TAMP backup register 10, Address offset: 0x128 */
  1016. __IO uint32_t BKP11R; /*!< TAMP backup register 11, Address offset: 0x12C */
  1017. __IO uint32_t BKP12R; /*!< TAMP backup register 12, Address offset: 0x130 */
  1018. __IO uint32_t BKP13R; /*!< TAMP backup register 13, Address offset: 0x134 */
  1019. __IO uint32_t BKP14R; /*!< TAMP backup register 14, Address offset: 0x138 */
  1020. __IO uint32_t BKP15R; /*!< TAMP backup register 15, Address offset: 0x13C */
  1021. __IO uint32_t BKP16R; /*!< TAMP backup register 16, Address offset: 0x140 */
  1022. __IO uint32_t BKP17R; /*!< TAMP backup register 17, Address offset: 0x144 */
  1023. __IO uint32_t BKP18R; /*!< TAMP backup register 18, Address offset: 0x148 */
  1024. __IO uint32_t BKP19R; /*!< TAMP backup register 19, Address offset: 0x14C */
  1025. __IO uint32_t BKP20R; /*!< TAMP backup register 20, Address offset: 0x150 */
  1026. __IO uint32_t BKP21R; /*!< TAMP backup register 21, Address offset: 0x154 */
  1027. __IO uint32_t BKP22R; /*!< TAMP backup register 22, Address offset: 0x158 */
  1028. __IO uint32_t BKP23R; /*!< TAMP backup register 23, Address offset: 0x15C */
  1029. __IO uint32_t BKP24R; /*!< TAMP backup register 24, Address offset: 0x160 */
  1030. __IO uint32_t BKP25R; /*!< TAMP backup register 25, Address offset: 0x164 */
  1031. __IO uint32_t BKP26R; /*!< TAMP backup register 26, Address offset: 0x168 */
  1032. __IO uint32_t BKP27R; /*!< TAMP backup register 27, Address offset: 0x16C */
  1033. __IO uint32_t BKP28R; /*!< TAMP backup register 28, Address offset: 0x170 */
  1034. __IO uint32_t BKP29R; /*!< TAMP backup register 29, Address offset: 0x174 */
  1035. __IO uint32_t BKP30R; /*!< TAMP backup register 30, Address offset: 0x178 */
  1036. __IO uint32_t BKP31R; /*!< TAMP backup register 31, Address offset: 0x17C */
  1037. } TAMP_TypeDef;
  1038. /**
  1039. * @brief TIM
  1040. */
  1041. typedef struct
  1042. {
  1043. __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  1044. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  1045. __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
  1046. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  1047. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  1048. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  1049. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  1050. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  1051. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  1052. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  1053. __IO uint32_t PSC; /*!< TIM prescaler register, Address offset: 0x28 */
  1054. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  1055. __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  1056. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  1057. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  1058. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  1059. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  1060. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  1061. __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  1062. __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
  1063. __IO uint32_t OR1; /*!< TIM option register 1, Address offset: 0x50 */
  1064. __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
  1065. __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
  1066. __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */
  1067. __IO uint32_t OR2; /*!< TIM option register 2, Address offset: 0x60 */
  1068. __IO uint32_t OR3; /*!< TIM option register 3, Address offset: 0x64 */
  1069. } TIM_TypeDef;
  1070. /**
  1071. * @brief Touch Sensing Controller (TSC)
  1072. */
  1073. typedef struct
  1074. {
  1075. __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
  1076. __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
  1077. __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
  1078. __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
  1079. __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
  1080. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  1081. __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
  1082. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
  1083. __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
  1084. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
  1085. __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
  1086. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
  1087. __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
  1088. __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
  1089. } TSC_TypeDef;
  1090. /**
  1091. * @brief Serial Audio Interface
  1092. */
  1093. typedef struct
  1094. {
  1095. __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */
  1096. uint32_t RESERVED[16]; /*!< Reserved, Address offset: 0x04 to 0x40 */
  1097. __IO uint32_t PDMCR; /*!< SAI PDM control register, Address offset: 0x44 */
  1098. __IO uint32_t PDMDLY; /*!< SAI PDM delay register, Address offset: 0x48 */
  1099. } SAI_TypeDef;
  1100. typedef struct
  1101. {
  1102. __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */
  1103. __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */
  1104. __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */
  1105. __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */
  1106. __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */
  1107. __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */
  1108. __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */
  1109. __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */
  1110. } SAI_Block_TypeDef;
  1111. /**
  1112. * @brief System configuration controller
  1113. */
  1114. typedef struct
  1115. {
  1116. __IO uint32_t SECCFGR; /*!< SYSCFG secure configuration register, Address offset: 0x00 */
  1117. __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x04 */
  1118. __IO uint32_t FPUIMR; /*!< SYSCFG FPU interrupt mask register, Address offset: 0x08 */
  1119. __IO uint32_t CNSLCKR; /*!< SYSCFG CPU non-secure lock register, Address offset: 0x0C */
  1120. __IO uint32_t CSLCKR; /*!< SYSCFG CPU secure lock register, Address offset: 0x10 */
  1121. __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x14 */
  1122. __IO uint32_t SCSR; /*!< SYSCFG SRAM2 control and status register, Address offset: 0x18 */
  1123. __IO uint32_t SKR; /*!< SYSCFG SRAM2 key register, Address offset: 0x1C */
  1124. __IO uint32_t SWPR; /*!< SYSCFG SRAM2 write protection register 1, Address offset: 0x20 */
  1125. __IO uint32_t SWPR2; /*!< SYSCFG SRAM2 write protection register 2, Address offset: 0x24 */
  1126. uint32_t RESERVED; /*!< Reserved, Address offset: 0x28 */
  1127. __IO uint32_t RSSCMDR; /*!< SYSCFG RSS command register, Address offset: 0x2C */
  1128. } SYSCFG_TypeDef;
  1129. /**
  1130. * @brief Secure digital input/output Interface
  1131. */
  1132. typedef struct
  1133. {
  1134. __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */
  1135. __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */
  1136. __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */
  1137. __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */
  1138. __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */
  1139. __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */
  1140. __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */
  1141. __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */
  1142. __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */
  1143. __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */
  1144. __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */
  1145. __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */
  1146. __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */
  1147. __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */
  1148. __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */
  1149. __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */
  1150. __IO uint32_t ACKTIME; /*!< SDMMC Acknowledgement timer register, Address offset: 0x40 */
  1151. uint32_t RESERVED0[3]; /*!< Reserved, 0x44 - 0x4C - 0x4C */
  1152. __IO uint32_t IDMACTRL; /*!< SDMMC DMA control register, Address offset: 0x50 */
  1153. __IO uint32_t IDMABSIZE; /*!< SDMMC DMA buffer size register, Address offset: 0x54 */
  1154. __IO uint32_t IDMABASE0; /*!< SDMMC DMA buffer 0 base address register, Address offset: 0x58 */
  1155. __IO uint32_t IDMABASE1; /*!< SDMMC DMA buffer 1 base address register, Address offset: 0x5C */
  1156. uint32_t RESERVED1[8]; /*!< Reserved, 0x60-0x7C */
  1157. __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */
  1158. uint32_t RESERVED2[220]; /*!< Reserved, 0x84-0x3F0 */
  1159. __IO uint32_t VER; /*!< SDMMC IP version register, Address offset: 0x3F4 */
  1160. __IO uint32_t ID; /*!< SDMMC IP identification register, Address offset: 0x3F8 */
  1161. __IO uint32_t SID; /*!< SDMMC size ID register, Address offset: 0x3FC */
  1162. } SDMMC_TypeDef;
  1163. /**
  1164. * @brief UCPD
  1165. */
  1166. typedef struct
  1167. {
  1168. __IO uint32_t CFG1; /*!< UCPD configuration register 1, Address offset: 0x00 */
  1169. __IO uint32_t CFG2; /*!< UCPD configuration register 2, Address offset: 0x04 */
  1170. __IO uint32_t CFG3; /*!< UCPD configuration register 3, Address offset: 0x08 */
  1171. __IO uint32_t CR; /*!< UCPD control register, Address offset: 0x0C */
  1172. __IO uint32_t IMR; /*!< UCPD interrupt mask register, Address offset: 0x10 */
  1173. __IO uint32_t SR; /*!< UCPD status register, Address offset: 0x14 */
  1174. __IO uint32_t ICR; /*!< UCPD interrupt flag clear register Address offset: 0x18 */
  1175. __IO uint32_t TX_ORDSET; /*!< UCPD Tx ordered set type register, Address offset: 0x1C */
  1176. __IO uint32_t TX_PAYSZ; /*!< UCPD Tx payload size register, Address offset: 0x20 */
  1177. __IO uint32_t TXDR; /*!< UCPD Tx data register, Address offset: 0x24 */
  1178. __IO uint32_t RX_ORDSET; /*!< UCPD Rx ordered set type register, Address offset: 0x28 */
  1179. __IO uint32_t RX_PAYSZ; /*!< UCPD Rx payload size register, Address offset: 0x2C */
  1180. __IO uint32_t RXDR; /*!< UCPD Rx data register, Address offset: 0x30 */
  1181. __IO uint32_t RX_ORDEXT1; /*!< UCPD Rx ordered set extension 1 register, Address offset: 0x34 */
  1182. __IO uint32_t RX_ORDEXT2; /*!< UCPD Rx ordered set extension 2 register, Address offset: 0x38 */
  1183. } UCPD_TypeDef;
  1184. /**
  1185. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  1186. */
  1187. typedef struct
  1188. {
  1189. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  1190. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  1191. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  1192. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  1193. __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  1194. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  1195. __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
  1196. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  1197. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  1198. __IO uint32_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  1199. __IO uint32_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  1200. __IO uint32_t PRESC; /*!< USART Prescaler register, Address offset: 0x2C */
  1201. } USART_TypeDef;
  1202. /**
  1203. * @brief Universal Serial Bus Full Speed Device
  1204. */
  1205. typedef struct
  1206. {
  1207. __IO uint16_t EP0R; /*!< USB Endpoint 0 register, Address offset: 0x00 */
  1208. __IO uint16_t RESERVED0; /*!< Reserved */
  1209. __IO uint16_t EP1R; /*!< USB Endpoint 1 register, Address offset: 0x04 */
  1210. __IO uint16_t RESERVED1; /*!< Reserved */
  1211. __IO uint16_t EP2R; /*!< USB Endpoint 2 register, Address offset: 0x08 */
  1212. __IO uint16_t RESERVED2; /*!< Reserved */
  1213. __IO uint16_t EP3R; /*!< USB Endpoint 3 register, Address offset: 0x0C */
  1214. __IO uint16_t RESERVED3; /*!< Reserved */
  1215. __IO uint16_t EP4R; /*!< USB Endpoint 4 register, Address offset: 0x10 */
  1216. __IO uint16_t RESERVED4; /*!< Reserved */
  1217. __IO uint16_t EP5R; /*!< USB Endpoint 5 register, Address offset: 0x14 */
  1218. __IO uint16_t RESERVED5; /*!< Reserved */
  1219. __IO uint16_t EP6R; /*!< USB Endpoint 6 register, Address offset: 0x18 */
  1220. __IO uint16_t RESERVED6; /*!< Reserved */
  1221. __IO uint16_t EP7R; /*!< USB Endpoint 7 register, Address offset: 0x1C */
  1222. __IO uint16_t RESERVED7[17]; /*!< Reserved */
  1223. __IO uint16_t CNTR; /*!< Control register, Address offset: 0x40 */
  1224. __IO uint16_t RESERVED8; /*!< Reserved */
  1225. __IO uint16_t ISTR; /*!< Interrupt status register, Address offset: 0x44 */
  1226. __IO uint16_t RESERVED9; /*!< Reserved */
  1227. __IO uint16_t FNR; /*!< Frame number register, Address offset: 0x48 */
  1228. __IO uint16_t RESERVEDA; /*!< Reserved */
  1229. __IO uint16_t DADDR; /*!< Device address register, Address offset: 0x4C */
  1230. __IO uint16_t RESERVEDB; /*!< Reserved */
  1231. __IO uint16_t BTABLE; /*!< Buffer Table address register, Address offset: 0x50 */
  1232. __IO uint16_t RESERVEDC; /*!< Reserved */
  1233. __IO uint16_t LPMCSR; /*!< LPM Control and Status register, Address offset: 0x54 */
  1234. __IO uint16_t RESERVEDD; /*!< Reserved */
  1235. __IO uint16_t BCDR; /*!< Battery Charging detector register, Address offset: 0x58 */
  1236. __IO uint16_t RESERVEDE; /*!< Reserved */
  1237. } USB_TypeDef;
  1238. /**
  1239. * @brief VREFBUF
  1240. */
  1241. typedef struct
  1242. {
  1243. __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */
  1244. __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */
  1245. } VREFBUF_TypeDef;
  1246. /**
  1247. * @brief Window WATCHDOG
  1248. */
  1249. typedef struct
  1250. {
  1251. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  1252. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  1253. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  1254. } WWDG_TypeDef;
  1255. /*@}*/ /* end of group STM32L562xx_Peripherals */
  1256. /* -------- End of section using anonymous unions and disabling warnings -------- */
  1257. #if defined (__CC_ARM)
  1258. #pragma pop
  1259. #elif defined (__ICCARM__)
  1260. /* leave anonymous unions enabled */
  1261. #elif (__ARMCC_VERSION >= 6010050)
  1262. #pragma clang diagnostic pop
  1263. #elif defined (__GNUC__)
  1264. /* anonymous unions are enabled by default */
  1265. #elif defined (__TMS470__)
  1266. /* anonymous unions are enabled by default */
  1267. #elif defined (__TASKING__)
  1268. #pragma warning restore
  1269. #elif defined (__CSMC__)
  1270. /* anonymous unions are enabled by default */
  1271. #else
  1272. #warning Not supported compiler type
  1273. #endif
  1274. /* =========================================================================================================================== */
  1275. /* ================ Device Specific Peripheral Address Map ================ */
  1276. /* =========================================================================================================================== */
  1277. /** @addtogroup STM32L5xx_Peripheral_peripheralAddr
  1278. * @{
  1279. */
  1280. /* Internal SRAMs size */
  1281. #define SRAM1_SIZE 0x30000UL /*!< SRAM1=192k*/
  1282. #define SRAM2_SIZE 0x10000UL /*!< SRAM2=64k*/
  1283. /* External memories base addresses - Not aliased */
  1284. #define FMC_BASE (0x60000000UL) /*!< FMC base address */
  1285. #define OCTOSPI1_BASE (0x90000000UL) /*!< OCTOSPI1 memories accessible over AHB base address */
  1286. #define FMC_BANK1 FMC_BASE
  1287. #define FMC_BANK1_1 FMC_BANK1
  1288. #define FMC_BANK1_2 (FMC_BANK1 + 0x04000000UL)
  1289. #define FMC_BANK1_3 (FMC_BANK1 + 0x08000000UL)
  1290. #define FMC_BANK1_4 (FMC_BANK1 + 0x0C000000UL)
  1291. #define FMC_BANK3 (FMC_BASE + 0x20000000UL)
  1292. /* Flash, Peripheral and internal SRAMs base addresses - Non secure aliased */
  1293. #define FLASH_BASE_NS (0x08000000UL) /*!< FLASH(up to 512 KB) base address */
  1294. #define SRAM1_BASE_NS (0x20000000UL) /*!< SRAM1(up to 192 KB) base address */
  1295. #define SRAM2_BASE_NS (0x20030000UL) /*!< SRAM2(64 KB) base address */
  1296. #define SRAM_BASE_NS SRAM1_BASE
  1297. #define PERIPH_BASE_NS (0x40000000UL) /*!< Peripheral non secure base address */
  1298. /* Peripheral memory map - Non secure */
  1299. #define APB1PERIPH_BASE_NS PERIPH_BASE_NS
  1300. #define APB2PERIPH_BASE_NS (PERIPH_BASE_NS + 0x00010000UL)
  1301. #define AHB1PERIPH_BASE_NS (PERIPH_BASE_NS + 0x00020000UL)
  1302. #define AHB2PERIPH_BASE_NS (PERIPH_BASE_NS + 0x02020000UL)
  1303. #define AHB3PERIPH_BASE_NS (PERIPH_BASE_NS + 0x04020000UL)
  1304. /*!< APB1 Non secure peripherals */
  1305. #define TIM2_BASE_NS (APB1PERIPH_BASE_NS + 0x0000UL)
  1306. #define TIM3_BASE_NS (APB1PERIPH_BASE_NS + 0x0400UL)
  1307. #define TIM4_BASE_NS (APB1PERIPH_BASE_NS + 0x0800UL)
  1308. #define TIM5_BASE_NS (APB1PERIPH_BASE_NS + 0x0C00UL)
  1309. #define TIM6_BASE_NS (APB1PERIPH_BASE_NS + 0x1000UL)
  1310. #define TIM7_BASE_NS (APB1PERIPH_BASE_NS + 0x1400UL)
  1311. #define RTC_BASE_NS (APB1PERIPH_BASE_NS + 0x2800UL)
  1312. #define WWDG_BASE_NS (APB1PERIPH_BASE_NS + 0x2C00UL)
  1313. #define IWDG_BASE_NS (APB1PERIPH_BASE_NS + 0x3000UL)
  1314. #define TAMP_BASE_NS (APB1PERIPH_BASE_NS + 0x3400UL)
  1315. #define SPI2_BASE_NS (APB1PERIPH_BASE_NS + 0x3800UL)
  1316. #define SPI3_BASE_NS (APB1PERIPH_BASE_NS + 0x3C00UL)
  1317. #define USART2_BASE_NS (APB1PERIPH_BASE_NS + 0x4400UL)
  1318. #define USART3_BASE_NS (APB1PERIPH_BASE_NS + 0x4800UL)
  1319. #define UART4_BASE_NS (APB1PERIPH_BASE_NS + 0x4C00UL)
  1320. #define UART5_BASE_NS (APB1PERIPH_BASE_NS + 0x5000UL)
  1321. #define I2C1_BASE_NS (APB1PERIPH_BASE_NS + 0x5400UL)
  1322. #define I2C2_BASE_NS (APB1PERIPH_BASE_NS + 0x5800UL)
  1323. #define I2C3_BASE_NS (APB1PERIPH_BASE_NS + 0x5C00UL)
  1324. #define CRS_BASE_NS (APB1PERIPH_BASE_NS + 0x6000UL)
  1325. #define PWR_BASE_NS (APB1PERIPH_BASE_NS + 0x7000UL)
  1326. #define DAC_BASE_NS (APB1PERIPH_BASE_NS + 0x7400UL)
  1327. #define DAC1_BASE_NS (APB1PERIPH_BASE_NS + 0x7400UL)
  1328. #define OPAMP_BASE_NS (APB1PERIPH_BASE_NS + 0x7800UL)
  1329. #define OPAMP1_BASE_NS (APB1PERIPH_BASE_NS + 0x7800UL)
  1330. #define OPAMP2_BASE_NS (APB1PERIPH_BASE_NS + 0x7810UL)
  1331. #define LPTIM1_BASE_NS (APB1PERIPH_BASE_NS + 0x7C00UL)
  1332. #define LPUART1_BASE_NS (APB1PERIPH_BASE_NS + 0x8000UL)
  1333. #define I2C4_BASE_NS (APB1PERIPH_BASE_NS + 0x8400UL)
  1334. #define LPTIM2_BASE_NS (APB1PERIPH_BASE_NS + 0x9400UL)
  1335. #define LPTIM3_BASE_NS (APB1PERIPH_BASE_NS + 0x9800UL)
  1336. #define FDCAN1_BASE_NS (APB1PERIPH_BASE_NS + 0xA400UL)
  1337. #define FDCAN_CONFIG_BASE_NS (APB1PERIPH_BASE_NS + 0xA500UL) /*!< FDCAN configuration registers base address */
  1338. #define SRAMCAN_BASE_NS (APB1PERIPH_BASE_NS + 0xAC00UL)
  1339. #define USB_BASE_NS (APB1PERIPH_BASE_NS + 0xD400UL) /*!< USB_IP Peripheral Registers base address */
  1340. #define USB_PMAADDR_NS (APB1PERIPH_BASE_NS + 0xD800UL) /*!< USB_IP Packet Memory Area base address */
  1341. #define UCPD1_BASE_NS (APB1PERIPH_BASE_NS + 0xDC00UL)
  1342. /*!< APB2 Non secure peripherals */
  1343. #define SYSCFG_BASE_NS (APB2PERIPH_BASE_NS + 0x0000UL)
  1344. #define VREFBUF_BASE_NS (APB2PERIPH_BASE_NS + 0x0100UL)
  1345. #define COMP1_BASE_NS (APB2PERIPH_BASE_NS + 0x0200UL)
  1346. #define COMP2_BASE_NS (APB2PERIPH_BASE_NS + 0x0204UL)
  1347. #define TIM1_BASE_NS (APB2PERIPH_BASE_NS + 0x2C00UL)
  1348. #define SPI1_BASE_NS (APB2PERIPH_BASE_NS + 0x3000UL)
  1349. #define TIM8_BASE_NS (APB2PERIPH_BASE_NS + 0x3400UL)
  1350. #define USART1_BASE_NS (APB2PERIPH_BASE_NS + 0x3800UL)
  1351. #define TIM15_BASE_NS (APB2PERIPH_BASE_NS + 0x4000UL)
  1352. #define TIM16_BASE_NS (APB2PERIPH_BASE_NS + 0x4400UL)
  1353. #define TIM17_BASE_NS (APB2PERIPH_BASE_NS + 0x4800UL)
  1354. #define SAI1_BASE_NS (APB2PERIPH_BASE_NS + 0x5400UL)
  1355. #define SAI1_Block_A_BASE_NS (SAI1_BASE_NS + 0x0004UL)
  1356. #define SAI1_Block_B_BASE_NS (SAI1_BASE_NS + 0x0024UL)
  1357. #define SAI2_BASE_NS (APB2PERIPH_BASE_NS + 0x5800UL)
  1358. #define SAI2_Block_A_BASE_NS (SAI2_BASE_NS + 0x0004UL)
  1359. #define SAI2_Block_B_BASE_NS (SAI2_BASE_NS + 0x0024UL)
  1360. #define DFSDM1_BASE_NS (APB2PERIPH_BASE_NS + 0x6000UL)
  1361. #define DFSDM1_Channel0_BASE_NS (DFSDM1_BASE_NS + 0x0000UL)
  1362. #define DFSDM1_Channel1_BASE_NS (DFSDM1_BASE_NS + 0x0020UL)
  1363. #define DFSDM1_Channel2_BASE_NS (DFSDM1_BASE_NS + 0x0040UL)
  1364. #define DFSDM1_Channel3_BASE_NS (DFSDM1_BASE_NS + 0x0060UL)
  1365. #define DFSDM1_Filter0_BASE_NS (DFSDM1_BASE_NS + 0x0100UL)
  1366. #define DFSDM1_Filter1_BASE_NS (DFSDM1_BASE_NS + 0x0180UL)
  1367. #define DFSDM1_Filter2_BASE_NS (DFSDM1_BASE_NS + 0x0200UL)
  1368. #define DFSDM1_Filter3_BASE_NS (DFSDM1_BASE_NS + 0x0280UL)
  1369. /*!< AHB1 Non secure peripherals */
  1370. #define DMA1_BASE_NS (AHB1PERIPH_BASE_NS)
  1371. #define DMA2_BASE_NS (AHB1PERIPH_BASE_NS + 0x0400UL)
  1372. #define DMAMUX1_BASE_NS (AHB1PERIPH_BASE_NS + 0x0800UL)
  1373. #define RCC_BASE_NS (AHB1PERIPH_BASE_NS + 0x1000UL)
  1374. #define FLASH_R_BASE_NS (AHB1PERIPH_BASE_NS + 0x2000UL)
  1375. #define CRC_BASE_NS (AHB1PERIPH_BASE_NS + 0x3000UL)
  1376. #define TSC_BASE_NS (AHB1PERIPH_BASE_NS + 0x4000UL)
  1377. #define EXTI_BASE_NS (AHB1PERIPH_BASE_NS + 0xF400UL)
  1378. #define ICACHE_BASE_NS (AHB1PERIPH_BASE_NS + 0x10400UL)
  1379. #define GTZC_TZSC_BASE_NS (AHB1PERIPH_BASE_NS + 0x12400UL)
  1380. #define GTZC_TZIC_BASE_NS (AHB1PERIPH_BASE_NS + 0x12800UL)
  1381. #define GTZC_MPCBB1_BASE_NS (AHB1PERIPH_BASE_NS + 0x12C00UL)
  1382. #define GTZC_MPCBB2_BASE_NS (AHB1PERIPH_BASE_NS + 0x13000UL)
  1383. #define DMA1_Channel1_BASE_NS (DMA1_BASE_NS + 0x0008UL)
  1384. #define DMA1_Channel2_BASE_NS (DMA1_BASE_NS + 0x001CUL)
  1385. #define DMA1_Channel3_BASE_NS (DMA1_BASE_NS + 0x0030UL)
  1386. #define DMA1_Channel4_BASE_NS (DMA1_BASE_NS + 0x0044UL)
  1387. #define DMA1_Channel5_BASE_NS (DMA1_BASE_NS + 0x0058UL)
  1388. #define DMA1_Channel6_BASE_NS (DMA1_BASE_NS + 0x006CUL)
  1389. #define DMA1_Channel7_BASE_NS (DMA1_BASE_NS + 0x0080UL)
  1390. #define DMA1_Channel8_BASE_NS (DMA1_BASE_NS + 0x0094UL)
  1391. #define DMA2_Channel1_BASE_NS (DMA2_BASE_NS + 0x0008UL)
  1392. #define DMA2_Channel2_BASE_NS (DMA2_BASE_NS + 0x001CUL)
  1393. #define DMA2_Channel3_BASE_NS (DMA2_BASE_NS + 0x0030UL)
  1394. #define DMA2_Channel4_BASE_NS (DMA2_BASE_NS + 0x0044UL)
  1395. #define DMA2_Channel5_BASE_NS (DMA2_BASE_NS + 0x0058UL)
  1396. #define DMA2_Channel6_BASE_NS (DMA2_BASE_NS + 0x006CUL)
  1397. #define DMA2_Channel7_BASE_NS (DMA2_BASE_NS + 0x0080UL)
  1398. #define DMA2_Channel8_BASE_NS (DMA2_BASE_NS + 0x0094UL)
  1399. #define DMAMUX1_Channel0_BASE_NS (DMAMUX1_BASE_NS)
  1400. #define DMAMUX1_Channel1_BASE_NS (DMAMUX1_BASE_NS + 0x00000004UL)
  1401. #define DMAMUX1_Channel2_BASE_NS (DMAMUX1_BASE_NS + 0x00000008UL)
  1402. #define DMAMUX1_Channel3_BASE_NS (DMAMUX1_BASE_NS + 0x0000000CUL)
  1403. #define DMAMUX1_Channel4_BASE_NS (DMAMUX1_BASE_NS + 0x00000010UL)
  1404. #define DMAMUX1_Channel5_BASE_NS (DMAMUX1_BASE_NS + 0x00000014UL)
  1405. #define DMAMUX1_Channel6_BASE_NS (DMAMUX1_BASE_NS + 0x00000018UL)
  1406. #define DMAMUX1_Channel7_BASE_NS (DMAMUX1_BASE_NS + 0x0000001CUL)
  1407. #define DMAMUX1_Channel8_BASE_NS (DMAMUX1_BASE_NS + 0x00000020UL)
  1408. #define DMAMUX1_Channel9_BASE_NS (DMAMUX1_BASE_NS + 0x00000024UL)
  1409. #define DMAMUX1_Channel10_BASE_NS (DMAMUX1_BASE_NS + 0x00000028UL)
  1410. #define DMAMUX1_Channel11_BASE_NS (DMAMUX1_BASE_NS + 0x0000002CUL)
  1411. #define DMAMUX1_Channel12_BASE_NS (DMAMUX1_BASE_NS + 0x00000030UL)
  1412. #define DMAMUX1_Channel13_BASE_NS (DMAMUX1_BASE_NS + 0x00000034UL)
  1413. #define DMAMUX1_Channel14_BASE_NS (DMAMUX1_BASE_NS + 0x00000038UL)
  1414. #define DMAMUX1_Channel15_BASE_NS (DMAMUX1_BASE_NS + 0x0000003CUL)
  1415. #define DMAMUX1_RequestGenerator0_BASE_NS (DMAMUX1_BASE_NS + 0x00000100UL)
  1416. #define DMAMUX1_RequestGenerator1_BASE_NS (DMAMUX1_BASE_NS + 0x00000104UL)
  1417. #define DMAMUX1_RequestGenerator2_BASE_NS (DMAMUX1_BASE_NS + 0x00000108UL)
  1418. #define DMAMUX1_RequestGenerator3_BASE_NS (DMAMUX1_BASE_NS + 0x0000010CUL)
  1419. #define DMAMUX1_ChannelStatus_BASE_NS (DMAMUX1_BASE_NS + 0x00000080UL)
  1420. #define DMAMUX1_RequestGenStatus_BASE_NS (DMAMUX1_BASE_NS + 0x00000140UL)
  1421. /*!< AHB2 Non secure peripherals */
  1422. #define GPIOA_BASE_NS (AHB2PERIPH_BASE_NS + 0x0000UL)
  1423. #define GPIOB_BASE_NS (AHB2PERIPH_BASE_NS + 0x0400UL)
  1424. #define GPIOC_BASE_NS (AHB2PERIPH_BASE_NS + 0x0800UL)
  1425. #define GPIOD_BASE_NS (AHB2PERIPH_BASE_NS + 0x0C00UL)
  1426. #define GPIOE_BASE_NS (AHB2PERIPH_BASE_NS + 0x1000UL)
  1427. #define GPIOF_BASE_NS (AHB2PERIPH_BASE_NS + 0x1400UL)
  1428. #define GPIOG_BASE_NS (AHB2PERIPH_BASE_NS + 0x1800UL)
  1429. #define GPIOH_BASE_NS (AHB2PERIPH_BASE_NS + 0x1C00UL)
  1430. #define ADC1_BASE_NS (AHB2PERIPH_BASE_NS + 0x8000UL)
  1431. #define ADC2_BASE_NS (AHB2PERIPH_BASE_NS + 0x8100UL)
  1432. #define ADC12_COMMON_BASE_NS (AHB2PERIPH_BASE_NS + 0x8300UL)
  1433. #define AES_BASE_NS (AHB2PERIPH_BASE_NS + 0xA0000UL)
  1434. #define HASH_BASE_NS (AHB2PERIPH_BASE_NS + 0xA0400UL)
  1435. #define HASH_DIGEST_BASE_NS (AHB2PERIPH_BASE_NS + 0xA0710UL)
  1436. #define RNG_BASE_NS (AHB2PERIPH_BASE_NS + 0xA0800UL)
  1437. #define PKA_BASE_NS (AHB2PERIPH_BASE_NS + 0xA2000UL)
  1438. #define OTFDEC1_BASE_NS (AHB2PERIPH_BASE_NS + 0xA5000UL)
  1439. #define OTFDEC1_REGION1_BASE_NS (OTFDEC1_BASE_NS + 0x20UL)
  1440. #define OTFDEC1_REGION2_BASE_NS (OTFDEC1_BASE_NS + 0x50UL)
  1441. #define OTFDEC1_REGION3_BASE_NS (OTFDEC1_BASE_NS + 0x80UL)
  1442. #define OTFDEC1_REGION4_BASE_NS (OTFDEC1_BASE_NS + 0xB0UL)
  1443. #define SDMMC1_BASE_NS (AHB2PERIPH_BASE_NS + 0xA8000UL)
  1444. /*!< AHB3 Non secure peripherals */
  1445. #define FMC_R_BASE_NS (AHB3PERIPH_BASE_NS + 0x0000UL) /*!< FMC control registers base address */
  1446. #define OCTOSPI1_R_BASE_NS (AHB3PERIPH_BASE_NS + 0x1000UL) /*!< OCTOSPI1 control registers base address */
  1447. /*!< FMC Banks Non secure registers base address */
  1448. #define FMC_Bank1_R_BASE_NS (FMC_R_BASE_NS + 0x0000UL)
  1449. #define FMC_Bank1E_R_BASE_NS (FMC_R_BASE_NS + 0x0104UL)
  1450. #define FMC_Bank3_R_BASE_NS (FMC_R_BASE_NS + 0x0080UL)
  1451. /* Flash, Peripheral and internal SRAMs base addresses - Secure aliased */
  1452. #define FLASH_BASE_S (0x0C000000UL) /*!< FLASH(up to 512 KB) base address */
  1453. #define SRAM1_BASE_S (0x30000000UL) /*!< SRAM1(up to 192 KB) base address */
  1454. #define SRAM2_BASE_S (0x30030000UL) /*!< SRAM2(64 KB) base address */
  1455. #define SRAM_BASE_S SRAM1_BASE_S
  1456. #define PERIPH_BASE_S (0x50000000UL) /*!< Peripheral secure base address */
  1457. /* Peripheral memory map - Secure */
  1458. #define APB1PERIPH_BASE_S PERIPH_BASE_S
  1459. #define APB2PERIPH_BASE_S (PERIPH_BASE_S + 0x00010000UL)
  1460. #define AHB1PERIPH_BASE_S (PERIPH_BASE_S + 0x00020000UL)
  1461. #define AHB2PERIPH_BASE_S (PERIPH_BASE_S + 0x02020000UL)
  1462. #define AHB3PERIPH_BASE_S (PERIPH_BASE_S + 0x04020000UL)
  1463. /*!< APB1 Secure peripherals */
  1464. #define TIM2_BASE_S (APB1PERIPH_BASE_S + 0x0000UL)
  1465. #define TIM3_BASE_S (APB1PERIPH_BASE_S + 0x0400UL)
  1466. #define TIM4_BASE_S (APB1PERIPH_BASE_S + 0x0800UL)
  1467. #define TIM5_BASE_S (APB1PERIPH_BASE_S + 0x0C00UL)
  1468. #define TIM6_BASE_S (APB1PERIPH_BASE_S + 0x1000UL)
  1469. #define TIM7_BASE_S (APB1PERIPH_BASE_S + 0x1400UL)
  1470. #define RTC_BASE_S (APB1PERIPH_BASE_S + 0x2800UL)
  1471. #define WWDG_BASE_S (APB1PERIPH_BASE_S + 0x2C00UL)
  1472. #define IWDG_BASE_S (APB1PERIPH_BASE_S + 0x3000UL)
  1473. #define TAMP_BASE_S (APB1PERIPH_BASE_S + 0x3400UL)
  1474. #define SPI2_BASE_S (APB1PERIPH_BASE_S + 0x3800UL)
  1475. #define SPI3_BASE_S (APB1PERIPH_BASE_S + 0x3C00UL)
  1476. #define USART2_BASE_S (APB1PERIPH_BASE_S + 0x4400UL)
  1477. #define USART3_BASE_S (APB1PERIPH_BASE_S + 0x4800UL)
  1478. #define UART4_BASE_S (APB1PERIPH_BASE_S + 0x4C00UL)
  1479. #define UART5_BASE_S (APB1PERIPH_BASE_S + 0x5000UL)
  1480. #define I2C1_BASE_S (APB1PERIPH_BASE_S + 0x5400UL)
  1481. #define I2C2_BASE_S (APB1PERIPH_BASE_S + 0x5800UL)
  1482. #define I2C3_BASE_S (APB1PERIPH_BASE_S + 0x5C00UL)
  1483. #define CRS_BASE_S (APB1PERIPH_BASE_S + 0x6000UL)
  1484. #define PWR_BASE_S (APB1PERIPH_BASE_S + 0x7000UL)
  1485. #define DAC_BASE_S (APB1PERIPH_BASE_S + 0x7400UL)
  1486. #define DAC1_BASE_S (APB1PERIPH_BASE_S + 0x7400UL)
  1487. #define OPAMP_BASE_S (APB1PERIPH_BASE_S + 0x7800UL)
  1488. #define OPAMP1_BASE_S (APB1PERIPH_BASE_S + 0x7800UL)
  1489. #define OPAMP2_BASE_S (APB1PERIPH_BASE_S + 0x7810UL)
  1490. #define LPTIM1_BASE_S (APB1PERIPH_BASE_S + 0x7C00UL)
  1491. #define LPUART1_BASE_S (APB1PERIPH_BASE_S + 0x8000UL)
  1492. #define I2C4_BASE_S (APB1PERIPH_BASE_S + 0x8400UL)
  1493. #define LPTIM2_BASE_S (APB1PERIPH_BASE_S + 0x9400UL)
  1494. #define LPTIM3_BASE_S (APB1PERIPH_BASE_S + 0x9800UL)
  1495. #define FDCAN1_BASE_S (APB1PERIPH_BASE_S + 0xA400UL)
  1496. #define FDCAN_CONFIG_BASE_S (APB1PERIPH_BASE_S + 0xA500UL)
  1497. #define SRAMCAN_BASE_S (APB1PERIPH_BASE_S + 0xAC00UL)
  1498. #define USB_BASE_S (APB1PERIPH_BASE_S + 0xD400UL) /*!< USB_IP Peripheral Registers base address */
  1499. #define USB_PMAADDR_S (APB1PERIPH_BASE_S + 0xD800UL) /*!< USB_IP Packet Memory Area base address */
  1500. #define UCPD1_BASE_S (APB1PERIPH_BASE_S + 0xDC00UL)
  1501. /*!< APB2 Secure peripherals */
  1502. #define SYSCFG_BASE_S (APB2PERIPH_BASE_S + 0x0000UL)
  1503. #define VREFBUF_BASE_S (APB2PERIPH_BASE_S + 0x0100UL)
  1504. #define COMP1_BASE_S (APB2PERIPH_BASE_S + 0x0200UL)
  1505. #define COMP2_BASE_S (APB2PERIPH_BASE_S + 0x0204UL)
  1506. #define TIM1_BASE_S (APB2PERIPH_BASE_S + 0x2C00UL)
  1507. #define SPI1_BASE_S (APB2PERIPH_BASE_S + 0x3000UL)
  1508. #define TIM8_BASE_S (APB2PERIPH_BASE_S + 0x3400UL)
  1509. #define USART1_BASE_S (APB2PERIPH_BASE_S + 0x3800UL)
  1510. #define TIM15_BASE_S (APB2PERIPH_BASE_S + 0x4000UL)
  1511. #define TIM16_BASE_S (APB2PERIPH_BASE_S + 0x4400UL)
  1512. #define TIM17_BASE_S (APB2PERIPH_BASE_S + 0x4800UL)
  1513. #define SAI1_BASE_S (APB2PERIPH_BASE_S + 0x5400UL)
  1514. #define SAI1_Block_A_BASE_S (SAI1_BASE_S + 0x0004UL)
  1515. #define SAI1_Block_B_BASE_S (SAI1_BASE_S + 0x0024UL)
  1516. #define SAI2_BASE_S (APB2PERIPH_BASE_S + 0x5800UL)
  1517. #define SAI2_Block_A_BASE_S (SAI2_BASE_S + 0x0004UL)
  1518. #define SAI2_Block_B_BASE_S (SAI2_BASE_S + 0x0024UL)
  1519. #define DFSDM1_BASE_S (APB2PERIPH_BASE_S + 0x6000UL)
  1520. #define DFSDM1_Channel0_BASE_S (DFSDM1_BASE_S + 0x0000UL)
  1521. #define DFSDM1_Channel1_BASE_S (DFSDM1_BASE_S + 0x0020UL)
  1522. #define DFSDM1_Channel2_BASE_S (DFSDM1_BASE_S + 0x0040UL)
  1523. #define DFSDM1_Channel3_BASE_S (DFSDM1_BASE_S + 0x0060UL)
  1524. #define DFSDM1_Filter0_BASE_S (DFSDM1_BASE_S + 0x0100UL)
  1525. #define DFSDM1_Filter1_BASE_S (DFSDM1_BASE_S + 0x0180UL)
  1526. #define DFSDM1_Filter2_BASE_S (DFSDM1_BASE_S + 0x0200UL)
  1527. #define DFSDM1_Filter3_BASE_S (DFSDM1_BASE_S + 0x0280UL)
  1528. /*!< AHB1 Secure peripherals */
  1529. #define DMA1_BASE_S (AHB1PERIPH_BASE_S)
  1530. #define DMA2_BASE_S (AHB1PERIPH_BASE_S + 0x0400UL)
  1531. #define DMAMUX1_BASE_S (AHB1PERIPH_BASE_S + 0x0800UL)
  1532. #define RCC_BASE_S (AHB1PERIPH_BASE_S + 0x1000UL)
  1533. #define FLASH_R_BASE_S (AHB1PERIPH_BASE_S + 0x2000UL)
  1534. #define CRC_BASE_S (AHB1PERIPH_BASE_S + 0x3000UL)
  1535. #define TSC_BASE_S (AHB1PERIPH_BASE_S + 0x4000UL)
  1536. #define EXTI_BASE_S (AHB1PERIPH_BASE_S + 0xF400UL)
  1537. #define ICACHE_BASE_S (AHB1PERIPH_BASE_S + 0x10400UL)
  1538. #define GTZC_TZSC_BASE_S (AHB1PERIPH_BASE_S + 0x12400UL)
  1539. #define GTZC_TZIC_BASE_S (AHB1PERIPH_BASE_S + 0x12800UL)
  1540. #define GTZC_MPCBB1_BASE_S (AHB1PERIPH_BASE_S + 0x12C00UL)
  1541. #define GTZC_MPCBB2_BASE_S (AHB1PERIPH_BASE_S + 0x13000UL)
  1542. #define DMA1_Channel1_BASE_S (DMA1_BASE_S + 0x0008UL)
  1543. #define DMA1_Channel2_BASE_S (DMA1_BASE_S + 0x001CUL)
  1544. #define DMA1_Channel3_BASE_S (DMA1_BASE_S + 0x0030UL)
  1545. #define DMA1_Channel4_BASE_S (DMA1_BASE_S + 0x0044UL)
  1546. #define DMA1_Channel5_BASE_S (DMA1_BASE_S + 0x0058UL)
  1547. #define DMA1_Channel6_BASE_S (DMA1_BASE_S + 0x006CUL)
  1548. #define DMA1_Channel7_BASE_S (DMA1_BASE_S + 0x0080UL)
  1549. #define DMA1_Channel8_BASE_S (DMA1_BASE_S + 0x0094UL)
  1550. #define DMA2_Channel1_BASE_S (DMA2_BASE_S + 0x0008UL)
  1551. #define DMA2_Channel2_BASE_S (DMA2_BASE_S + 0x001CUL)
  1552. #define DMA2_Channel3_BASE_S (DMA2_BASE_S + 0x0030UL)
  1553. #define DMA2_Channel4_BASE_S (DMA2_BASE_S + 0x0044UL)
  1554. #define DMA2_Channel5_BASE_S (DMA2_BASE_S + 0x0058UL)
  1555. #define DMA2_Channel6_BASE_S (DMA2_BASE_S + 0x006CUL)
  1556. #define DMA2_Channel7_BASE_S (DMA2_BASE_S + 0x0080UL)
  1557. #define DMA2_Channel8_BASE_S (DMA2_BASE_S + 0x0094UL)
  1558. #define DMAMUX1_Channel0_BASE_S (DMAMUX1_BASE_S)
  1559. #define DMAMUX1_Channel1_BASE_S (DMAMUX1_BASE_S + 0x00000004UL)
  1560. #define DMAMUX1_Channel2_BASE_S (DMAMUX1_BASE_S + 0x00000008UL)
  1561. #define DMAMUX1_Channel3_BASE_S (DMAMUX1_BASE_S + 0x0000000CUL)
  1562. #define DMAMUX1_Channel4_BASE_S (DMAMUX1_BASE_S + 0x00000010UL)
  1563. #define DMAMUX1_Channel5_BASE_S (DMAMUX1_BASE_S + 0x00000014UL)
  1564. #define DMAMUX1_Channel6_BASE_S (DMAMUX1_BASE_S + 0x00000018UL)
  1565. #define DMAMUX1_Channel7_BASE_S (DMAMUX1_BASE_S + 0x0000001CUL)
  1566. #define DMAMUX1_Channel8_BASE_S (DMAMUX1_BASE_S + 0x00000020UL)
  1567. #define DMAMUX1_Channel9_BASE_S (DMAMUX1_BASE_S + 0x00000024UL)
  1568. #define DMAMUX1_Channel10_BASE_S (DMAMUX1_BASE_S + 0x00000028UL)
  1569. #define DMAMUX1_Channel11_BASE_S (DMAMUX1_BASE_S + 0x0000002CUL)
  1570. #define DMAMUX1_Channel12_BASE_S (DMAMUX1_BASE_S + 0x00000030UL)
  1571. #define DMAMUX1_Channel13_BASE_S (DMAMUX1_BASE_S + 0x00000034UL)
  1572. #define DMAMUX1_Channel14_BASE_S (DMAMUX1_BASE_S + 0x00000038UL)
  1573. #define DMAMUX1_Channel15_BASE_S (DMAMUX1_BASE_S + 0x0000003CUL)
  1574. #define DMAMUX1_RequestGenerator0_BASE_S (DMAMUX1_BASE_S + 0x00000100UL)
  1575. #define DMAMUX1_RequestGenerator1_BASE_S (DMAMUX1_BASE_S + 0x00000104UL)
  1576. #define DMAMUX1_RequestGenerator2_BASE_S (DMAMUX1_BASE_S + 0x00000108UL)
  1577. #define DMAMUX1_RequestGenerator3_BASE_S (DMAMUX1_BASE_S + 0x0000010CUL)
  1578. #define DMAMUX1_ChannelStatus_BASE_S (DMAMUX1_BASE_S + 0x00000080UL)
  1579. #define DMAMUX1_RequestGenStatus_BASE_S (DMAMUX1_BASE_S + 0x00000140UL)
  1580. /*!< AHB2 Secure peripherals */
  1581. #define GPIOA_BASE_S (AHB2PERIPH_BASE_S + 0x0000UL)
  1582. #define GPIOB_BASE_S (AHB2PERIPH_BASE_S + 0x0400UL)
  1583. #define GPIOC_BASE_S (AHB2PERIPH_BASE_S + 0x0800UL)
  1584. #define GPIOD_BASE_S (AHB2PERIPH_BASE_S + 0x0C00UL)
  1585. #define GPIOE_BASE_S (AHB2PERIPH_BASE_S + 0x1000UL)
  1586. #define GPIOF_BASE_S (AHB2PERIPH_BASE_S + 0x1400UL)
  1587. #define GPIOG_BASE_S (AHB2PERIPH_BASE_S + 0x1800UL)
  1588. #define GPIOH_BASE_S (AHB2PERIPH_BASE_S + 0x1C00UL)
  1589. #define ADC1_BASE_S (AHB2PERIPH_BASE_S + 0x8000UL)
  1590. #define ADC2_BASE_S (AHB2PERIPH_BASE_S + 0x8100UL)
  1591. #define ADC12_COMMON_BASE_S (AHB2PERIPH_BASE_S + 0x8300UL)
  1592. #define AES_BASE_S (AHB2PERIPH_BASE_S + 0xA0000UL)
  1593. #define HASH_BASE_S (AHB2PERIPH_BASE_S + 0xA0400UL)
  1594. #define HASH_DIGEST_BASE_S (AHB2PERIPH_BASE_S + 0xA0710UL)
  1595. #define RNG_BASE_S (AHB2PERIPH_BASE_S + 0xA0800UL)
  1596. #define PKA_BASE_S (AHB2PERIPH_BASE_S + 0xA2000UL)
  1597. #define OTFDEC1_BASE_S (AHB2PERIPH_BASE_S + 0xA5000UL)
  1598. #define OTFDEC1_REGION1_BASE_S (OTFDEC1_BASE_S + 0x20UL)
  1599. #define OTFDEC1_REGION2_BASE_S (OTFDEC1_BASE_S + 0x50UL)
  1600. #define OTFDEC1_REGION3_BASE_S (OTFDEC1_BASE_S + 0x80UL)
  1601. #define OTFDEC1_REGION4_BASE_S (OTFDEC1_BASE_S + 0xB0UL)
  1602. #define SDMMC1_BASE_S (AHB2PERIPH_BASE_S + 0xA8000UL)
  1603. /*!< AHB3 Secure peripherals */
  1604. #define FMC_R_BASE_S (AHB3PERIPH_BASE_S + 0x0000UL) /*!< FMC control registers base address */
  1605. #define OCTOSPI1_R_BASE_S (AHB3PERIPH_BASE_S + 0x1000UL) /*!< OCTOSPI1 control registers base address */
  1606. /*!< FMC Banks Secure registers base address */
  1607. #define FMC_Bank1_R_BASE_S (FMC_R_BASE_S + 0x0000UL)
  1608. #define FMC_Bank1E_R_BASE_S (FMC_R_BASE_S + 0x0104UL)
  1609. #define FMC_Bank3_R_BASE_S (FMC_R_BASE_S + 0x0080UL)
  1610. /* Debug MCU registers base address */
  1611. #define DBGMCU_BASE (0xE0044000UL)
  1612. #define PACKAGE_BASE (0x0BFA0500UL) /*!< Package data register base address */
  1613. #define UID_BASE (0x0BFA0590UL) /*!< Unique device ID register base address */
  1614. #define FLASHSIZE_BASE (0x0BFA05E0UL) /*!< Flash size data register base address */
  1615. /* Internal Flash size */
  1616. #define FLASH_SIZE ((((*((uint16_t *)FLASHSIZE_BASE)) == 0xFFFFU)) ? 0x80000U : \
  1617. ((((*((uint16_t *)FLASHSIZE_BASE)) == 0x0000U)) ? 0x80000U : \
  1618. (((uint32_t)(*((uint16_t *)FLASHSIZE_BASE)) & (0x0FFFU)) << 10U)))
  1619. /* OTP Area */
  1620. #define OTP_BASE (0x0BFA0000UL)
  1621. #define OTP_SIZE (0x200U)
  1622. /** @} */ /* End of group STM32L5xx_Peripheral_peripheralAddr */
  1623. /* =========================================================================================================================== */
  1624. /* ================ Peripheral declaration ================ */
  1625. /* =========================================================================================================================== */
  1626. /** @addtogroup STM32L5xx_Peripheral_declaration
  1627. * @{
  1628. */
  1629. /*!< APB1 Non secure peripherals */
  1630. #define TIM2_NS ((TIM_TypeDef *) TIM2_BASE_NS)
  1631. #define TIM3_NS ((TIM_TypeDef *) TIM3_BASE_NS)
  1632. #define TIM4_NS ((TIM_TypeDef *) TIM4_BASE_NS)
  1633. #define TIM5_NS ((TIM_TypeDef *) TIM5_BASE_NS)
  1634. #define TIM6_NS ((TIM_TypeDef *) TIM6_BASE_NS)
  1635. #define TIM7_NS ((TIM_TypeDef *) TIM7_BASE_NS)
  1636. #define RTC_NS ((RTC_TypeDef *) RTC_BASE_NS)
  1637. #define WWDG_NS ((WWDG_TypeDef *) WWDG_BASE_NS)
  1638. #define IWDG_NS ((IWDG_TypeDef *) IWDG_BASE_NS)
  1639. #define TAMP_NS ((TAMP_TypeDef *) TAMP_BASE_NS)
  1640. #define SPI2_NS ((SPI_TypeDef *) SPI2_BASE_NS)
  1641. #define SPI3_NS ((SPI_TypeDef *) SPI3_BASE_NS)
  1642. #define USART2_NS ((USART_TypeDef *) USART2_BASE_NS)
  1643. #define USART3_NS ((USART_TypeDef *) USART3_BASE_NS)
  1644. #define UART4_NS ((USART_TypeDef *) UART4_BASE_NS)
  1645. #define UART5_NS ((USART_TypeDef *) UART5_BASE_NS)
  1646. #define I2C1_NS ((I2C_TypeDef *) I2C1_BASE_NS)
  1647. #define I2C2_NS ((I2C_TypeDef *) I2C2_BASE_NS)
  1648. #define I2C3_NS ((I2C_TypeDef *) I2C3_BASE_NS)
  1649. #define CRS_NS ((CRS_TypeDef *) CRS_BASE_NS)
  1650. #define FDCAN1_NS ((FDCAN_GlobalTypeDef *) FDCAN1_BASE_NS)
  1651. #define FDCAN_CONFIG_NS ((FDCAN_Config_TypeDef *) FDCAN_CONFIG_BASE_NS)
  1652. #define I2C4_NS ((I2C_TypeDef *) I2C4_BASE_NS)
  1653. #define PWR_NS ((PWR_TypeDef *) PWR_BASE_NS)
  1654. #define DAC_NS ((DAC_TypeDef *) DAC1_BASE_NS)
  1655. #define DAC1_NS ((DAC_TypeDef *) DAC1_BASE_NS)
  1656. #define OPAMP_NS ((OPAMP_TypeDef *) OPAMP_BASE_NS)
  1657. #define OPAMP1_NS ((OPAMP_TypeDef *) OPAMP1_BASE_NS)
  1658. #define OPAMP2_NS ((OPAMP_TypeDef *) OPAMP2_BASE_NS)
  1659. #define OPAMP12_COMMON_NS ((OPAMP_Common_TypeDef *) OPAMP1_BASE_NS)
  1660. #define LPTIM1_NS ((LPTIM_TypeDef *) LPTIM1_BASE_NS)
  1661. #define LPUART1_NS ((USART_TypeDef *) LPUART1_BASE_NS)
  1662. #define LPTIM2_NS ((LPTIM_TypeDef *) LPTIM2_BASE_NS)
  1663. #define LPTIM3_NS ((LPTIM_TypeDef *) LPTIM3_BASE_NS)
  1664. #define USB_NS ((USB_TypeDef *) USB_BASE_NS)
  1665. #define UCPD1_NS ((UCPD_TypeDef *) UCPD1_BASE_NS)
  1666. /*!< APB2 Non secure peripherals */
  1667. #define SYSCFG_NS ((SYSCFG_TypeDef *) SYSCFG_BASE_NS)
  1668. #define VREFBUF_NS ((VREFBUF_TypeDef *) VREFBUF_BASE_NS)
  1669. #define COMP1_NS ((COMP_TypeDef *) COMP1_BASE_NS)
  1670. #define COMP2_NS ((COMP_TypeDef *) COMP2_BASE_NS)
  1671. #define COMP12_COMMON_NS ((COMP_Common_TypeDef *) COMP2_BASE_NS)
  1672. #define TIM1_NS ((TIM_TypeDef *) TIM1_BASE_NS)
  1673. #define SPI1_NS ((SPI_TypeDef *) SPI1_BASE_NS)
  1674. #define TIM8_NS ((TIM_TypeDef *) TIM8_BASE_NS)
  1675. #define USART1_NS ((USART_TypeDef *) USART1_BASE_NS)
  1676. #define TIM15_NS ((TIM_TypeDef *) TIM15_BASE_NS)
  1677. #define TIM16_NS ((TIM_TypeDef *) TIM16_BASE_NS)
  1678. #define TIM17_NS ((TIM_TypeDef *) TIM17_BASE_NS)
  1679. #define SAI1_NS ((SAI_TypeDef *) SAI1_BASE_NS)
  1680. #define SAI1_Block_A_NS ((SAI_Block_TypeDef *)SAI1_Block_A_BASE_NS)
  1681. #define SAI1_Block_B_NS ((SAI_Block_TypeDef *)SAI1_Block_B_BASE_NS)
  1682. #define SAI2_NS ((SAI_TypeDef *) SAI2_BASE_NS)
  1683. #define SAI2_Block_A_NS ((SAI_Block_TypeDef *)SAI2_Block_A_BASE_NS)
  1684. #define SAI2_Block_B_NS ((SAI_Block_TypeDef *)SAI2_Block_B_BASE_NS)
  1685. #define DFSDM1_Channel0_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE_NS)
  1686. #define DFSDM1_Channel1_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE_NS)
  1687. #define DFSDM1_Channel2_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE_NS)
  1688. #define DFSDM1_Channel3_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE_NS)
  1689. #define DFSDM1_Filter0_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE_NS)
  1690. #define DFSDM1_Filter1_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE_NS)
  1691. #define DFSDM1_Filter2_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE_NS)
  1692. #define DFSDM1_Filter3_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE_NS)
  1693. /*!< AHB1 Non secure peripherals */
  1694. #define DMA1_NS ((DMA_TypeDef *) DMA1_BASE_NS)
  1695. #define DMA2_NS ((DMA_TypeDef *) DMA2_BASE_NS)
  1696. #define DMAMUX1_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_BASE_NS)
  1697. #define RCC_NS ((RCC_TypeDef *) RCC_BASE_NS)
  1698. #define FLASH_NS ((FLASH_TypeDef *) FLASH_R_BASE_NS)
  1699. #define CRC_NS ((CRC_TypeDef *) CRC_BASE_NS)
  1700. #define TSC_NS ((TSC_TypeDef *) TSC_BASE_NS)
  1701. #define EXTI_NS ((EXTI_TypeDef *) EXTI_BASE_NS)
  1702. #define ICACHE_NS ((ICACHE_TypeDef *) ICACHE_BASE_NS)
  1703. #define GTZC_TZSC_NS ((GTZC_TZSC_TypeDef *) GTZC_TZSC_BASE_NS)
  1704. #define GTZC_TZIC_NS ((GTZC_TZIC_TypeDef *) GTZC_TZIC_BASE_NS)
  1705. #define GTZC_MPCBB2_NS ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB2_BASE_NS)
  1706. #define GTZC_MPCBB1_NS ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB1_BASE_NS)
  1707. #define DMA1_Channel1_NS ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE_NS)
  1708. #define DMA1_Channel2_NS ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE_NS)
  1709. #define DMA1_Channel3_NS ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE_NS)
  1710. #define DMA1_Channel4_NS ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE_NS)
  1711. #define DMA1_Channel5_NS ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE_NS)
  1712. #define DMA1_Channel6_NS ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE_NS)
  1713. #define DMA1_Channel7_NS ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE_NS)
  1714. #define DMA1_Channel8_NS ((DMA_Channel_TypeDef *) DMA1_Channel8_BASE_NS)
  1715. #define DMA2_Channel1_NS ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE_NS)
  1716. #define DMA2_Channel2_NS ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE_NS)
  1717. #define DMA2_Channel3_NS ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE_NS)
  1718. #define DMA2_Channel4_NS ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE_NS)
  1719. #define DMA2_Channel5_NS ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE_NS)
  1720. #define DMA2_Channel6_NS ((DMA_Channel_TypeDef *) DMA2_Channel6_BASE_NS)
  1721. #define DMA2_Channel7_NS ((DMA_Channel_TypeDef *) DMA2_Channel7_BASE_NS)
  1722. #define DMA2_Channel8_NS ((DMA_Channel_TypeDef *) DMA2_Channel8_BASE_NS)
  1723. #define DMAMUX1_Channel0_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE_NS)
  1724. #define DMAMUX1_Channel1_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE_NS)
  1725. #define DMAMUX1_Channel2_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE_NS)
  1726. #define DMAMUX1_Channel3_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE_NS)
  1727. #define DMAMUX1_Channel4_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE_NS)
  1728. #define DMAMUX1_Channel5_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE_NS)
  1729. #define DMAMUX1_Channel6_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE_NS)
  1730. #define DMAMUX1_Channel7_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE_NS)
  1731. #define DMAMUX1_Channel8_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE_NS)
  1732. #define DMAMUX1_Channel9_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE_NS)
  1733. #define DMAMUX1_Channel10_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE_NS)
  1734. #define DMAMUX1_Channel11_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE_NS)
  1735. #define DMAMUX1_Channel12_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE_NS)
  1736. #define DMAMUX1_Channel13_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE_NS)
  1737. #define DMAMUX1_Channel14_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE_NS)
  1738. #define DMAMUX1_Channel15_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE_NS)
  1739. #define DMAMUX1_RequestGenerator0_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE_NS)
  1740. #define DMAMUX1_RequestGenerator1_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE_NS)
  1741. #define DMAMUX1_RequestGenerator2_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE_NS)
  1742. #define DMAMUX1_RequestGenerator3_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE_NS)
  1743. #define DMAMUX1_ChannelStatus_NS ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE_NS)
  1744. #define DMAMUX1_RequestGenStatus_NS ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE_NS)
  1745. /*!< AHB2 Non secure peripherals */
  1746. #define GPIOA_NS ((GPIO_TypeDef *) GPIOA_BASE_NS)
  1747. #define GPIOB_NS ((GPIO_TypeDef *) GPIOB_BASE_NS)
  1748. #define GPIOC_NS ((GPIO_TypeDef *) GPIOC_BASE_NS)
  1749. #define GPIOD_NS ((GPIO_TypeDef *) GPIOD_BASE_NS)
  1750. #define GPIOE_NS ((GPIO_TypeDef *) GPIOE_BASE_NS)
  1751. #define GPIOF_NS ((GPIO_TypeDef *) GPIOF_BASE_NS)
  1752. #define GPIOG_NS ((GPIO_TypeDef *) GPIOG_BASE_NS)
  1753. #define GPIOH_NS ((GPIO_TypeDef *) GPIOH_BASE_NS)
  1754. #define ADC1_NS ((ADC_TypeDef *) ADC1_BASE_NS)
  1755. #define ADC2_NS ((ADC_TypeDef *) ADC2_BASE_NS)
  1756. #define ADC12_COMMON_NS ((ADC_Common_TypeDef *) ADC12_COMMON_BASE_NS)
  1757. #define AES_NS ((AES_TypeDef *) AES_BASE_NS)
  1758. #define HASH_NS ((HASH_TypeDef *) HASH_BASE_NS)
  1759. #define HASH_DIGEST_NS ((HASH_DIGEST_TypeDef *) HASH_DIGEST_BASE_NS)
  1760. #define RNG_NS ((RNG_TypeDef *) RNG_BASE_NS)
  1761. #define PKA_NS ((PKA_TypeDef *) PKA_BASE_NS)
  1762. #define OTFDEC1_NS ((OTFDEC_TypeDef *) OTFDEC1_BASE_NS)
  1763. #define OTFDEC1_REGION1_NS ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION1_BASE_NS)
  1764. #define OTFDEC1_REGION2_NS ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION2_BASE_NS)
  1765. #define OTFDEC1_REGION3_NS ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION3_BASE_NS)
  1766. #define OTFDEC1_REGION4_NS ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION4_BASE_NS)
  1767. #define SDMMC1_NS ((SDMMC_TypeDef *) SDMMC1_BASE_NS)
  1768. /*!< AHB3 Non secure peripherals */
  1769. #define FMC_Bank1_R_NS ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE_NS)
  1770. #define FMC_Bank1E_R_NS ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE_NS)
  1771. #define FMC_Bank3_R_NS ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE_NS)
  1772. #define OCTOSPI1_NS ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE_NS)
  1773. /*!< APB1 Secure peripherals */
  1774. #define TIM2_S ((TIM_TypeDef *) TIM2_BASE_S)
  1775. #define TIM3_S ((TIM_TypeDef *) TIM3_BASE_S)
  1776. #define TIM4_S ((TIM_TypeDef *) TIM4_BASE_S)
  1777. #define TIM5_S ((TIM_TypeDef *) TIM5_BASE_S)
  1778. #define TIM6_S ((TIM_TypeDef *) TIM6_BASE_S)
  1779. #define TIM7_S ((TIM_TypeDef *) TIM7_BASE_S)
  1780. #define RTC_S ((RTC_TypeDef *) RTC_BASE_S)
  1781. #define WWDG_S ((WWDG_TypeDef *) WWDG_BASE_S)
  1782. #define IWDG_S ((IWDG_TypeDef *) IWDG_BASE_S)
  1783. #define TAMP_S ((TAMP_TypeDef *) TAMP_BASE_S)
  1784. #define SPI2_S ((SPI_TypeDef *) SPI2_BASE_S)
  1785. #define SPI3_S ((SPI_TypeDef *) SPI3_BASE_S)
  1786. #define USART2_S ((USART_TypeDef *) USART2_BASE_S)
  1787. #define USART3_S ((USART_TypeDef *) USART3_BASE_S)
  1788. #define UART4_S ((USART_TypeDef *) UART4_BASE_S)
  1789. #define UART5_S ((USART_TypeDef *) UART5_BASE_S)
  1790. #define I2C1_S ((I2C_TypeDef *) I2C1_BASE_S)
  1791. #define I2C2_S ((I2C_TypeDef *) I2C2_BASE_S)
  1792. #define I2C3_S ((I2C_TypeDef *) I2C3_BASE_S)
  1793. #define CRS_S ((CRS_TypeDef *) CRS_BASE_S)
  1794. #define FDCAN1_S ((FDCAN_GlobalTypeDef *) FDCAN1_BASE_S)
  1795. #define FDCAN_CONFIG_S ((FDCAN_Config_TypeDef *) FDCAN_CONFIG_BASE_S)
  1796. #define I2C4_S ((I2C_TypeDef *) I2C4_BASE_S)
  1797. #define PWR_S ((PWR_TypeDef *) PWR_BASE_S)
  1798. #define DAC_S ((DAC_TypeDef *) DAC1_BASE_S)
  1799. #define DAC1_S ((DAC_TypeDef *) DAC1_BASE_S)
  1800. #define OPAMP_S ((OPAMP_TypeDef *) OPAMP_BASE_S)
  1801. #define OPAMP1_S ((OPAMP_TypeDef *) OPAMP1_BASE_S)
  1802. #define OPAMP2_S ((OPAMP_TypeDef *) OPAMP2_BASE_S)
  1803. #define OPAMP12_COMMON_S ((OPAMP_Common_TypeDef *) OPAMP1_BASE_S)
  1804. #define LPTIM1_S ((LPTIM_TypeDef *) LPTIM1_BASE_S)
  1805. #define LPUART1_S ((USART_TypeDef *) LPUART1_BASE_S)
  1806. #define LPTIM2_S ((LPTIM_TypeDef *) LPTIM2_BASE_S)
  1807. #define LPTIM3_S ((LPTIM_TypeDef *) LPTIM3_BASE_S)
  1808. #define USB_S ((USB_TypeDef *) USB_BASE_S)
  1809. #define UCPD1_S ((UCPD_TypeDef *) UCPD1_BASE_S)
  1810. /*!< APB2 Secure peripherals */
  1811. #define SYSCFG_S ((SYSCFG_TypeDef *) SYSCFG_BASE_S)
  1812. #define VREFBUF_S ((VREFBUF_TypeDef *) VREFBUF_BASE_S)
  1813. #define COMP1_S ((COMP_TypeDef *) COMP1_BASE_S)
  1814. #define COMP2_S ((COMP_TypeDef *) COMP2_BASE_S)
  1815. #define COMP12_COMMON_S ((COMP_Common_TypeDef *) COMP2_BASE_S)
  1816. #define TIM1_S ((TIM_TypeDef *) TIM1_BASE_S)
  1817. #define SPI1_S ((SPI_TypeDef *) SPI1_BASE_S)
  1818. #define TIM8_S ((TIM_TypeDef *) TIM8_BASE_S)
  1819. #define USART1_S ((USART_TypeDef *) USART1_BASE_S)
  1820. #define TIM15_S ((TIM_TypeDef *) TIM15_BASE_S)
  1821. #define TIM16_S ((TIM_TypeDef *) TIM16_BASE_S)
  1822. #define TIM17_S ((TIM_TypeDef *) TIM17_BASE_S)
  1823. #define SAI1_S ((SAI_TypeDef *) SAI1_BASE_S)
  1824. #define SAI1_Block_A_S ((SAI_Block_TypeDef *)SAI1_Block_A_BASE_S)
  1825. #define SAI1_Block_B_S ((SAI_Block_TypeDef *)SAI1_Block_B_BASE_S)
  1826. #define SAI2_S ((SAI_TypeDef *) SAI2_BASE_S)
  1827. #define SAI2_Block_A_S ((SAI_Block_TypeDef *)SAI2_Block_A_BASE_S)
  1828. #define SAI2_Block_B_S ((SAI_Block_TypeDef *)SAI2_Block_B_BASE_S)
  1829. #define DFSDM1_Channel0_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE_S)
  1830. #define DFSDM1_Channel1_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE_S)
  1831. #define DFSDM1_Channel2_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE_S)
  1832. #define DFSDM1_Channel3_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE_S)
  1833. #define DFSDM1_Filter0_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE_S)
  1834. #define DFSDM1_Filter1_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE_S)
  1835. #define DFSDM1_Filter2_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE_S)
  1836. #define DFSDM1_Filter3_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE_S)
  1837. /*!< AHB1 Secure peripherals */
  1838. #define DMA1_S ((DMA_TypeDef *) DMA1_BASE_S)
  1839. #define DMA2_S ((DMA_TypeDef *) DMA2_BASE_S)
  1840. #define DMAMUX1_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_BASE_S)
  1841. #define RCC_S ((RCC_TypeDef *) RCC_BASE_S)
  1842. #define FLASH_S ((FLASH_TypeDef *) FLASH_R_BASE_S)
  1843. #define CRC_S ((CRC_TypeDef *) CRC_BASE_S)
  1844. #define TSC_S ((TSC_TypeDef *) TSC_BASE_S)
  1845. #define EXTI_S ((EXTI_TypeDef *) EXTI_BASE_S)
  1846. #define ICACHE_S ((ICACHE_TypeDef *) ICACHE_BASE_S)
  1847. #define GTZC_TZSC_S ((GTZC_TZSC_TypeDef *) GTZC_TZSC_BASE_S)
  1848. #define GTZC_TZIC_S ((GTZC_TZIC_TypeDef *) GTZC_TZIC_BASE_S)
  1849. #define GTZC_MPCBB2_S ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB2_BASE_S)
  1850. #define GTZC_MPCBB1_S ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB1_BASE_S)
  1851. #define DMA1_Channel1_S ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE_S)
  1852. #define DMA1_Channel2_S ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE_S)
  1853. #define DMA1_Channel3_S ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE_S)
  1854. #define DMA1_Channel4_S ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE_S)
  1855. #define DMA1_Channel5_S ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE_S)
  1856. #define DMA1_Channel6_S ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE_S)
  1857. #define DMA1_Channel7_S ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE_S)
  1858. #define DMA1_Channel8_S ((DMA_Channel_TypeDef *) DMA1_Channel8_BASE_S)
  1859. #define DMA2_Channel1_S ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE_S)
  1860. #define DMA2_Channel2_S ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE_S)
  1861. #define DMA2_Channel3_S ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE_S)
  1862. #define DMA2_Channel4_S ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE_S)
  1863. #define DMA2_Channel5_S ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE_S)
  1864. #define DMA2_Channel6_S ((DMA_Channel_TypeDef *) DMA2_Channel6_BASE_S)
  1865. #define DMA2_Channel7_S ((DMA_Channel_TypeDef *) DMA2_Channel7_BASE_S)
  1866. #define DMA2_Channel8_S ((DMA_Channel_TypeDef *) DMA2_Channel8_BASE_S)
  1867. #define DMAMUX1_Channel0_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE_S)
  1868. #define DMAMUX1_Channel1_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE_S)
  1869. #define DMAMUX1_Channel2_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE_S)
  1870. #define DMAMUX1_Channel3_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE_S)
  1871. #define DMAMUX1_Channel4_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE_S)
  1872. #define DMAMUX1_Channel5_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE_S)
  1873. #define DMAMUX1_Channel6_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE_S)
  1874. #define DMAMUX1_Channel7_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE_S)
  1875. #define DMAMUX1_Channel8_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE_S)
  1876. #define DMAMUX1_Channel9_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE_S)
  1877. #define DMAMUX1_Channel10_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE_S)
  1878. #define DMAMUX1_Channel11_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE_S)
  1879. #define DMAMUX1_Channel12_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE_S)
  1880. #define DMAMUX1_Channel13_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE_S)
  1881. #define DMAMUX1_Channel14_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE_S)
  1882. #define DMAMUX1_Channel15_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE_S)
  1883. #define DMAMUX1_RequestGenerator0_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE_S)
  1884. #define DMAMUX1_RequestGenerator1_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE_S)
  1885. #define DMAMUX1_RequestGenerator2_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE_S)
  1886. #define DMAMUX1_RequestGenerator3_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE_S)
  1887. #define DMAMUX1_ChannelStatus_S ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE_S)
  1888. #define DMAMUX1_RequestGenStatus_S ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE_S)
  1889. /*!< AHB2 Secure peripherals */
  1890. #define GPIOA_S ((GPIO_TypeDef *) GPIOA_BASE_S)
  1891. #define GPIOB_S ((GPIO_TypeDef *) GPIOB_BASE_S)
  1892. #define GPIOC_S ((GPIO_TypeDef *) GPIOC_BASE_S)
  1893. #define GPIOD_S ((GPIO_TypeDef *) GPIOD_BASE_S)
  1894. #define GPIOE_S ((GPIO_TypeDef *) GPIOE_BASE_S)
  1895. #define GPIOF_S ((GPIO_TypeDef *) GPIOF_BASE_S)
  1896. #define GPIOG_S ((GPIO_TypeDef *) GPIOG_BASE_S)
  1897. #define GPIOH_S ((GPIO_TypeDef *) GPIOH_BASE_S)
  1898. #define ADC1_S ((ADC_TypeDef *) ADC1_BASE_S)
  1899. #define ADC2_S ((ADC_TypeDef *) ADC2_BASE_S)
  1900. #define ADC12_COMMON_S ((ADC_Common_TypeDef *) ADC12_COMMON_BASE_S)
  1901. #define AES_S ((AES_TypeDef *) AES_BASE_S)
  1902. #define HASH_S ((HASH_TypeDef *) HASH_BASE_S)
  1903. #define HASH_DIGEST_S ((HASH_DIGEST_TypeDef *) HASH_DIGEST_BASE_S)
  1904. #define RNG_S ((RNG_TypeDef *) RNG_BASE_S)
  1905. #define PKA_S ((PKA_TypeDef *) PKA_BASE_S)
  1906. #define OTFDEC1_S ((OTFDEC_TypeDef *) OTFDEC1_BASE_S)
  1907. #define OTFDEC1_REGION1_S ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION1_BASE_S)
  1908. #define OTFDEC1_REGION2_S ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION2_BASE_S)
  1909. #define OTFDEC1_REGION3_S ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION3_BASE_S)
  1910. #define OTFDEC1_REGION4_S ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION4_BASE_S)
  1911. #define SDMMC1_S ((SDMMC_TypeDef *) SDMMC1_BASE_S)
  1912. /*!< AHB3 Secure peripherals */
  1913. #define FMC_Bank1_R_S ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE_S)
  1914. #define FMC_Bank1E_R_S ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE_S)
  1915. #define FMC_Bank3_R_S ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE_S)
  1916. #define OCTOSPI1_S ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE_S)
  1917. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  1918. /*!< Memory & Instance aliases and base addresses for Non-Secure/Secure peripherals */
  1919. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  1920. /*!< Memory base addresses for Secure peripherals */
  1921. #define FLASH_BASE FLASH_BASE_S
  1922. #define SRAM1_BASE SRAM1_BASE_S
  1923. #define SRAM2_BASE SRAM2_BASE_S
  1924. #define SRAM_BASE SRAM1_BASE_S
  1925. #define PERIPH_BASE PERIPH_BASE_S
  1926. #define APB1PERIPH_BASE APB1PERIPH_BASE_S
  1927. #define APB2PERIPH_BASE APB2PERIPH_BASE_S
  1928. #define AHB1PERIPH_BASE AHB1PERIPH_BASE_S
  1929. #define AHB2PERIPH_BASE AHB2PERIPH_BASE_S
  1930. #define AHB3PERIPH_BASE AHB3PERIPH_BASE_S
  1931. /*!< Instance aliases and base addresses for Secure peripherals */
  1932. #define RCC RCC_S
  1933. #define RCC_BASE RCC_BASE_S
  1934. #define FLASH FLASH_S
  1935. #define FLASH_R_BASE FLASH_R_BASE_S
  1936. #define DMA1 DMA1_S
  1937. #define DMA1_BASE DMA1_BASE_S
  1938. #define DMA1_Channel1 DMA1_Channel1_S
  1939. #define DMA1_Channel1_BASE DMA1_Channel1_BASE_S
  1940. #define DMA1_Channel2 DMA1_Channel2_S
  1941. #define DMA1_Channel2_BASE DMA1_Channel2_BASE_S
  1942. #define DMA1_Channel3 DMA1_Channel3_S
  1943. #define DMA1_Channel3_BASE DMA1_Channel3_BASE_S
  1944. #define DMA1_Channel4 DMA1_Channel4_S
  1945. #define DMA1_Channel4_BASE DMA1_Channel4_BASE_S
  1946. #define DMA1_Channel5 DMA1_Channel5_S
  1947. #define DMA1_Channel5_BASE DMA1_Channel5_BASE_S
  1948. #define DMA1_Channel6 DMA1_Channel6_S
  1949. #define DMA1_Channel6_BASE DMA1_Channel6_BASE_S
  1950. #define DMA1_Channel7 DMA1_Channel7_S
  1951. #define DMA1_Channel7_BASE DMA1_Channel7_BASE_S
  1952. #define DMA1_Channel8 DMA1_Channel8_S
  1953. #define DMA1_Channel8_BASE DMA1_Channel8_BASE_S
  1954. #define DMA2 DMA2_S
  1955. #define DMA2_BASE DMA2_BASE_S
  1956. #define DMA2_Channel1 DMA2_Channel1_S
  1957. #define DMA2_Channel1_BASE DMA2_Channel1_BASE_S
  1958. #define DMA2_Channel2 DMA2_Channel2_S
  1959. #define DMA2_Channel2_BASE DMA2_Channel2_BASE_S
  1960. #define DMA2_Channel3 DMA2_Channel3_S
  1961. #define DMA2_Channel3_BASE DMA2_Channel3_BASE_S
  1962. #define DMA2_Channel4 DMA2_Channel4_S
  1963. #define DMA2_Channel4_BASE DMA2_Channel4_BASE_S
  1964. #define DMA2_Channel5 DMA2_Channel5_S
  1965. #define DMA2_Channel5_BASE DMA2_Channel5_BASE_S
  1966. #define DMA2_Channel6 DMA2_Channel6_S
  1967. #define DMA2_Channel6_BASE DMA2_Channel6_BASE_S
  1968. #define DMA2_Channel7 DMA2_Channel7_S
  1969. #define DMA2_Channel7_BASE DMA2_Channel7_BASE_S
  1970. #define DMA2_Channel8 DMA2_Channel8_S
  1971. #define DMA2_Channel8_BASE DMA2_Channel8_BASE_S
  1972. #define DMAMUX1 DMAMUX1_S
  1973. #define DMAMUX1_BASE DMAMUX1_BASE_S
  1974. #define DMAMUX1_Channel0 DMAMUX1_Channel0_S
  1975. #define DMAMUX1_Channel0_BASE DMAMUX1_Channel0_BASE_S
  1976. #define DMAMUX1_Channel1 DMAMUX1_Channel1_S
  1977. #define DMAMUX1_Channel1_BASE DMAMUX1_Channel1_BASE_S
  1978. #define DMAMUX1_Channel2 DMAMUX1_Channel2_S
  1979. #define DMAMUX1_Channel2_BASE DMAMUX1_Channel2_BASE_S
  1980. #define DMAMUX1_Channel3 DMAMUX1_Channel3_S
  1981. #define DMAMUX1_Channel3_BASE DMAMUX1_Channel3_BASE_S
  1982. #define DMAMUX1_Channel4 DMAMUX1_Channel4_S
  1983. #define DMAMUX1_Channel4_BASE DMAMUX1_Channel4_BASE_S
  1984. #define DMAMUX1_Channel5 DMAMUX1_Channel5_S
  1985. #define DMAMUX1_Channel5_BASE DMAMUX1_Channel5_BASE_S
  1986. #define DMAMUX1_Channel6 DMAMUX1_Channel6_S
  1987. #define DMAMUX1_Channel6_BASE DMAMUX1_Channel6_BASE_S
  1988. #define DMAMUX1_Channel7 DMAMUX1_Channel7_S
  1989. #define DMAMUX1_Channel7_BASE DMAMUX1_Channel7_BASE_S
  1990. #define DMAMUX1_Channel8 DMAMUX1_Channel8_S
  1991. #define DMAMUX1_Channel8_BASE DMAMUX1_Channel8_BASE_S
  1992. #define DMAMUX1_Channel9 DMAMUX1_Channel9_S
  1993. #define DMAMUX1_Channel9_BASE DMAMUX1_Channel9_BASE_S
  1994. #define DMAMUX1_Channel10 DMAMUX1_Channel10_S
  1995. #define DMAMUX1_Channel10_BASE DMAMUX1_Channel10_BASE_S
  1996. #define DMAMUX1_Channel11 DMAMUX1_Channel11_S
  1997. #define DMAMUX1_Channel11_BASE DMAMUX1_Channel11_BASE_S
  1998. #define DMAMUX1_Channel12 DMAMUX1_Channel12_S
  1999. #define DMAMUX1_Channel12_BASE DMAMUX1_Channel12_BASE_S
  2000. #define DMAMUX1_Channel13 DMAMUX1_Channel13_S
  2001. #define DMAMUX1_Channel13_BASE DMAMUX1_Channel13_BASE_S
  2002. #define DMAMUX1_Channel14 DMAMUX1_Channel14_S
  2003. #define DMAMUX1_Channel14_BASE DMAMUX1_Channel14_BASE_S
  2004. #define DMAMUX1_Channel15 DMAMUX1_Channel15_S
  2005. #define DMAMUX1_Channel15_BASE DMAMUX1_Channel15_BASE_S
  2006. #define DMAMUX1_RequestGenerator0 DMAMUX1_RequestGenerator0_S
  2007. #define DMAMUX1_RequestGenerator0_BASE DMAMUX1_RequestGenerator0_BASE_S
  2008. #define DMAMUX1_RequestGenerator1 DMAMUX1_RequestGenerator1_S
  2009. #define DMAMUX1_RequestGenerator1_BASE DMAMUX1_RequestGenerator1_BASE_S
  2010. #define DMAMUX1_RequestGenerator2 DMAMUX1_RequestGenerator2_S
  2011. #define DMAMUX1_RequestGenerator2_BASE DMAMUX1_RequestGenerator2_BASE_S
  2012. #define DMAMUX1_RequestGenerator3 DMAMUX1_RequestGenerator3_S
  2013. #define DMAMUX1_RequestGenerator3_BASE DMAMUX1_RequestGenerator3_BASE_S
  2014. #define DMAMUX1_ChannelStatus DMAMUX1_ChannelStatus_S
  2015. #define DMAMUX1_ChannelStatus_BASE DMAMUX1_ChannelStatus_BASE_S
  2016. #define DMAMUX1_RequestGenStatus DMAMUX1_RequestGenStatus_S
  2017. #define DMAMUX1_RequestGenStatus_BASE DMAMUX1_RequestGenStatus_BASE_S
  2018. #define GPIOA GPIOA_S
  2019. #define GPIOA_BASE GPIOA_BASE_S
  2020. #define GPIOB GPIOB_S
  2021. #define GPIOB_BASE GPIOB_BASE_S
  2022. #define GPIOC GPIOC_S
  2023. #define GPIOC_BASE GPIOC_BASE_S
  2024. #define GPIOD GPIOD_S
  2025. #define GPIOD_BASE GPIOD_BASE_S
  2026. #define GPIOE GPIOE_S
  2027. #define GPIOE_BASE GPIOE_BASE_S
  2028. #define GPIOF GPIOF_S
  2029. #define GPIOF_BASE GPIOF_BASE_S
  2030. #define GPIOG GPIOG_S
  2031. #define GPIOG_BASE GPIOG_BASE_S
  2032. #define GPIOH GPIOH_S
  2033. #define GPIOH_BASE GPIOH_BASE_S
  2034. #define PWR PWR_S
  2035. #define PWR_BASE PWR_BASE_S
  2036. #define EXTI EXTI_S
  2037. #define EXTI_BASE EXTI_BASE_S
  2038. #define ICACHE ICACHE_S
  2039. #define ICACHE_BASE ICACHE_BASE_S
  2040. #define GTZC_TZSC GTZC_TZSC_S
  2041. #define GTZC_TZSC_BASE GTZC_TZSC_BASE_S
  2042. #define GTZC_TZIC GTZC_TZIC_S
  2043. #define GTZC_TZIC_BASE GTZC_TZIC_BASE_S
  2044. #define GTZC_MPCBB2 GTZC_MPCBB2_S
  2045. #define GTZC_MPCBB2_BASE GTZC_MPCBB2_BASE_S
  2046. #define GTZC_MPCBB1 GTZC_MPCBB1_S
  2047. #define GTZC_MPCBB1_BASE GTZC_MPCBB1_BASE_S
  2048. #define RTC RTC_S
  2049. #define RTC_BASE RTC_BASE_S
  2050. #define TAMP TAMP_S
  2051. #define TAMP_BASE TAMP_BASE_S
  2052. #define TIM1 TIM1_S
  2053. #define TIM1_BASE TIM1_BASE_S
  2054. #define TIM2 TIM2_S
  2055. #define TIM2_BASE TIM2_BASE_S
  2056. #define TIM3 TIM3_S
  2057. #define TIM3_BASE TIM3_BASE_S
  2058. #define TIM4 TIM4_S
  2059. #define TIM4_BASE TIM4_BASE_S
  2060. #define TIM5 TIM5_S
  2061. #define TIM5_BASE TIM5_BASE_S
  2062. #define TIM6 TIM6_S
  2063. #define TIM6_BASE TIM6_BASE_S
  2064. #define TIM7 TIM7_S
  2065. #define TIM7_BASE TIM7_BASE_S
  2066. #define TIM8 TIM8_S
  2067. #define TIM8_BASE TIM8_BASE_S
  2068. #define TIM15 TIM15_S
  2069. #define TIM15_BASE TIM15_BASE_S
  2070. #define TIM16 TIM16_S
  2071. #define TIM16_BASE TIM16_BASE_S
  2072. #define TIM17 TIM17_S
  2073. #define TIM17_BASE TIM17_BASE_S
  2074. #define WWDG WWDG_S
  2075. #define WWDG_BASE WWDG_BASE_S
  2076. #define IWDG IWDG_S
  2077. #define IWDG_BASE IWDG_BASE_S
  2078. #define SPI1 SPI1_S
  2079. #define SPI1_BASE SPI1_BASE_S
  2080. #define SPI2 SPI2_S
  2081. #define SPI2_BASE SPI2_BASE_S
  2082. #define SPI3 SPI3_S
  2083. #define SPI3_BASE SPI3_BASE_S
  2084. #define USART1 USART1_S
  2085. #define USART1_BASE USART1_BASE_S
  2086. #define USART2 USART2_S
  2087. #define USART2_BASE USART2_BASE_S
  2088. #define USART3 USART3_S
  2089. #define USART3_BASE USART3_BASE_S
  2090. #define UART4 UART4_S
  2091. #define UART4_BASE UART4_BASE_S
  2092. #define UART5 UART5_S
  2093. #define UART5_BASE UART5_BASE_S
  2094. #define I2C1 I2C1_S
  2095. #define I2C1_BASE I2C1_BASE_S
  2096. #define I2C2 I2C2_S
  2097. #define I2C2_BASE I2C2_BASE_S
  2098. #define I2C3 I2C3_S
  2099. #define I2C3_BASE I2C3_BASE_S
  2100. #define I2C4 I2C4_S
  2101. #define I2C4_BASE I2C4_BASE_S
  2102. #define CRS CRS_S
  2103. #define CRS_BASE CRS_BASE_S
  2104. #define FDCAN1 FDCAN1_S
  2105. #define FDCAN1_BASE FDCAN1_BASE_S
  2106. #define FDCAN_CONFIG FDCAN_CONFIG_S
  2107. #define FDCAN_CONFIG_BASE FDCAN_CONFIG_BASE_S
  2108. #define SRAMCAN_BASE SRAMCAN_BASE_S
  2109. #define DAC DAC_S
  2110. #define DAC_BASE DAC_BASE_S
  2111. #define DAC1 DAC1_S
  2112. #define DAC1_BASE DAC1_BASE_S
  2113. #define OPAMP OPAMP_S
  2114. #define OPAMP_BASE OPAMP_BASE_S
  2115. #define OPAMP1 OPAMP1_S
  2116. #define OPAMP1_BASE OPAMP1_BASE_S
  2117. #define OPAMP2 OPAMP2_S
  2118. #define OPAMP2_BASE OPAMP2_BASE_S
  2119. #define OPAMP12_COMMON OPAMP12_COMMON_S
  2120. #define OPAMP12_COMMON_BASE OPAMP12_COMMON_BASE_S
  2121. #define LPTIM1 LPTIM1_S
  2122. #define LPTIM1_BASE LPTIM1_BASE_S
  2123. #define LPTIM2 LPTIM2_S
  2124. #define LPTIM2_BASE LPTIM2_BASE_S
  2125. #define LPTIM3 LPTIM3_S
  2126. #define LPTIM3_BASE LPTIM3_BASE_S
  2127. #define LPUART1 LPUART1_S
  2128. #define LPUART1_BASE LPUART1_BASE_S
  2129. #define USB USB_S
  2130. #define USB_BASE USB_BASE_S
  2131. #define UCPD1 UCPD1_S
  2132. #define UCPD1_BASE UCPD1_BASE_S
  2133. #define SYSCFG SYSCFG_S
  2134. #define SYSCFG_BASE SYSCFG_BASE_S
  2135. #define VREFBUF VREFBUF_S
  2136. #define VREFBUF_BASE VREFBUF_BASE_S
  2137. #define COMP1 COMP1_S
  2138. #define COMP1_BASE COMP1_BASE_S
  2139. #define COMP2 COMP2_S
  2140. #define COMP2_BASE COMP2_BASE_S
  2141. #define COMP12_COMMON COMP12_COMMON_S
  2142. #define COMP12_COMMON_BASE COMP12_COMMON_BASE_S
  2143. #define SAI1 SAI1_S
  2144. #define SAI1_BASE SAI1_BASE_S
  2145. #define SAI1_Block_A SAI1_Block_A_S
  2146. #define SAI1_Block_A_BASE SAI1_Block_A_BASE_S
  2147. #define SAI1_Block_B SAI1_Block_B_S
  2148. #define SAI1_Block_B_BASE SAI1_Block_B_BASE_S
  2149. #define SAI2 SAI2_S
  2150. #define SAI2_BASE SAI2_BASE_S
  2151. #define SAI2_Block_A SAI2_Block_A_S
  2152. #define SAI2_Block_A_BASE SAI2_Block_A_BASE_S
  2153. #define SAI2_Block_B SAI2_Block_B_S
  2154. #define SAI2_Block_B_BASE SAI2_Block_B_BASE_S
  2155. #define DFSDM1_Channel0 DFSDM1_Channel0_S
  2156. #define DFSDM1_Channel0_BASE DFSDM1_Channel0_BASE_S
  2157. #define DFSDM1_Channel1 DFSDM1_Channel1_S
  2158. #define DFSDM1_Channel1_BASE DFSDM1_Channel1_BASE_S
  2159. #define DFSDM1_Channel2 DFSDM1_Channel2_S
  2160. #define DFSDM1_Channel2_BASE DFSDM1_Channel2_BASE_S
  2161. #define DFSDM1_Channel3 DFSDM1_Channel3_S
  2162. #define DFSDM1_Channel3_BASE DFSDM1_Channel3_BASE_S
  2163. #define DFSDM1_Filter0 DFSDM1_Filter0_S
  2164. #define DFSDM1_Filter0_BASE DFSDM1_Filter0_BASE_S
  2165. #define DFSDM1_Filter1 DFSDM1_Filter1_S
  2166. #define DFSDM1_Filter1_BASE DFSDM1_Filter1_BASE_S
  2167. #define DFSDM1_Filter2 DFSDM1_Filter2_S
  2168. #define DFSDM1_Filter2_BASE DFSDM1_Filter2_BASE_S
  2169. #define DFSDM1_Filter3 DFSDM1_Filter3_S
  2170. #define DFSDM1_Filter3_BASE DFSDM1_Filter3_BASE_S
  2171. #define CRC CRC_S
  2172. #define CRC_BASE CRC_BASE_S
  2173. #define TSC TSC_S
  2174. #define TSC_BASE TSC_BASE_S
  2175. #define ADC1 ADC1_S
  2176. #define ADC1_BASE ADC1_BASE_S
  2177. #define ADC2 ADC2_S
  2178. #define ADC2_BASE ADC2_BASE_S
  2179. #define ADC12_COMMON ADC12_COMMON_S
  2180. #define ADC12_COMMON_BASE ADC12_COMMON_BASE_S
  2181. #define AES AES_S
  2182. #define AES_BASE AES_BASE_S
  2183. #define HASH HASH_S
  2184. #define HASH_BASE HASH_BASE_S
  2185. #define HASH_DIGEST HASH_DIGEST_S
  2186. #define HASH_DIGEST_BASE HASH_DIGEST_BASE_S
  2187. #define RNG RNG_S
  2188. #define RNG_BASE RNG_BASE_S
  2189. #define PKA PKA_S
  2190. #define PKA_BASE PKA_BASE_S
  2191. #define OTFDEC1 OTFDEC1_S
  2192. #define OTFDEC1_BASE OTFDEC1_BASE_S
  2193. #define OTFDEC1_REGION1 OTFDEC1_REGION1_S
  2194. #define OTFDEC1_REGION1_BASE OTFDEC1_REGION1_BASE_S
  2195. #define OTFDEC1_REGION2 OTFDEC1_REGION2_S
  2196. #define OTFDEC1_REGION2_BASE OTFDEC1_REGION2_BASE_S
  2197. #define OTFDEC1_REGION3 OTFDEC1_REGION3_S
  2198. #define OTFDEC1_REGION3_BASE OTFDEC1_REGION3_BASE_S
  2199. #define OTFDEC1_REGION4 OTFDEC1_REGION4_S
  2200. #define OTFDEC1_REGION4_BASE OTFDEC1_REGION4_BASE_S
  2201. #define SDMMC1 SDMMC1_S
  2202. #define SDMMC1_BASE SDMMC1_BASE_S
  2203. #define FMC_R_BASE FMC_R_BASE_S
  2204. #define FMC_Bank1_R FMC_Bank1_R_S
  2205. #define FMC_Bank1_R_BASE FMC_Bank1_R_BASE_S
  2206. #define FMC_Bank1E_R FMC_Bank1E_R_S
  2207. #define FMC_Bank1E_R_BASE FMC_Bank1E_R_BASE_S
  2208. #define FMC_Bank3_R FMC_Bank3_R_S
  2209. #define FMC_Bank3_R_BASE FMC_Bank3_R_BASE_S
  2210. #define OCTOSPI1 OCTOSPI1_S
  2211. #define OCTOSPI1_R_BASE OCTOSPI1_R_BASE_S
  2212. #else
  2213. /*!< Memory base addresses for Non secure peripherals */
  2214. #define FLASH_BASE FLASH_BASE_NS
  2215. #define SRAM1_BASE SRAM1_BASE_NS
  2216. #define SRAM2_BASE SRAM2_BASE_NS
  2217. #define SRAM_BASE SRAM1_BASE_NS
  2218. #define PERIPH_BASE PERIPH_BASE_NS
  2219. #define APB1PERIPH_BASE APB1PERIPH_BASE_NS
  2220. #define APB2PERIPH_BASE APB2PERIPH_BASE_NS
  2221. #define AHB1PERIPH_BASE AHB1PERIPH_BASE_NS
  2222. #define AHB2PERIPH_BASE AHB2PERIPH_BASE_NS
  2223. #define AHB3PERIPH_BASE AHB3PERIPH_BASE_NS
  2224. /*!< Instance aliases and base addresses for Non secure peripherals */
  2225. #define RCC RCC_NS
  2226. #define RCC_BASE RCC_BASE_NS
  2227. #define FLASH FLASH_NS
  2228. #define FLASH_R_BASE FLASH_R_BASE_NS
  2229. #define DMA1 DMA1_NS
  2230. #define DMA1_BASE DMA1_BASE_NS
  2231. #define DMA1_Channel1 DMA1_Channel1_NS
  2232. #define DMA1_Channel1_BASE DMA1_Channel1_BASE_NS
  2233. #define DMA1_Channel2 DMA1_Channel2_NS
  2234. #define DMA1_Channel2_BASE DMA1_Channel2_BASE_NS
  2235. #define DMA1_Channel3 DMA1_Channel3_NS
  2236. #define DMA1_Channel3_BASE DMA1_Channel3_BASE_NS
  2237. #define DMA1_Channel4 DMA1_Channel4_NS
  2238. #define DMA1_Channel4_BASE DMA1_Channel4_BASE_NS
  2239. #define DMA1_Channel5 DMA1_Channel5_NS
  2240. #define DMA1_Channel5_BASE DMA1_Channel5_BASE_NS
  2241. #define DMA1_Channel6 DMA1_Channel6_NS
  2242. #define DMA1_Channel6_BASE DMA1_Channel6_BASE_NS
  2243. #define DMA1_Channel7 DMA1_Channel7_NS
  2244. #define DMA1_Channel7_BASE DMA1_Channel7_BASE_NS
  2245. #define DMA1_Channel8 DMA1_Channel8_NS
  2246. #define DMA1_Channel8_BASE DMA1_Channel8_BASE_NS
  2247. #define DMA2 DMA2_NS
  2248. #define DMA2_BASE DMA2_BASE_NS
  2249. #define DMA2_Channel1 DMA2_Channel1_NS
  2250. #define DMA2_Channel1_BASE DMA2_Channel1_BASE_NS
  2251. #define DMA2_Channel2 DMA2_Channel2_NS
  2252. #define DMA2_Channel2_BASE DMA2_Channel2_BASE_NS
  2253. #define DMA2_Channel3 DMA2_Channel3_NS
  2254. #define DMA2_Channel3_BASE DMA2_Channel3_BASE_NS
  2255. #define DMA2_Channel4 DMA2_Channel4_NS
  2256. #define DMA2_Channel4_BASE DMA2_Channel4_BASE_NS
  2257. #define DMA2_Channel5 DMA2_Channel5_NS
  2258. #define DMA2_Channel5_BASE DMA2_Channel5_BASE_NS
  2259. #define DMA2_Channel6 DMA2_Channel6_NS
  2260. #define DMA2_Channel6_BASE DMA2_Channel6_BASE_NS
  2261. #define DMA2_Channel7 DMA2_Channel7_NS
  2262. #define DMA2_Channel7_BASE DMA2_Channel7_BASE_NS
  2263. #define DMA2_Channel8 DMA2_Channel8_NS
  2264. #define DMA2_Channel8_BASE DMA2_Channel8_BASE_NS
  2265. #define DMAMUX1 DMAMUX1_NS
  2266. #define DMAMUX1_BASE DMAMUX1_BASE_NS
  2267. #define DMAMUX1_Channel0 DMAMUX1_Channel0_NS
  2268. #define DMAMUX1_Channel0_BASE DMAMUX1_Channel0_BASE_NS
  2269. #define DMAMUX1_Channel1 DMAMUX1_Channel1_NS
  2270. #define DMAMUX1_Channel1_BASE DMAMUX1_Channel1_BASE_NS
  2271. #define DMAMUX1_Channel2 DMAMUX1_Channel2_NS
  2272. #define DMAMUX1_Channel2_BASE DMAMUX1_Channel2_BASE_NS
  2273. #define DMAMUX1_Channel3 DMAMUX1_Channel3_NS
  2274. #define DMAMUX1_Channel3_BASE DMAMUX1_Channel3_BASE_NS
  2275. #define DMAMUX1_Channel4 DMAMUX1_Channel4_NS
  2276. #define DMAMUX1_Channel4_BASE DMAMUX1_Channel4_BASE_NS
  2277. #define DMAMUX1_Channel5 DMAMUX1_Channel5_NS
  2278. #define DMAMUX1_Channel5_BASE DMAMUX1_Channel5_BASE_NS
  2279. #define DMAMUX1_Channel6 DMAMUX1_Channel6_NS
  2280. #define DMAMUX1_Channel6_BASE DMAMUX1_Channel6_BASE_NS
  2281. #define DMAMUX1_Channel7 DMAMUX1_Channel7_NS
  2282. #define DMAMUX1_Channel7_BASE DMAMUX1_Channel7_BASE_NS
  2283. #define DMAMUX1_Channel8 DMAMUX1_Channel8_NS
  2284. #define DMAMUX1_Channel8_BASE DMAMUX1_Channel8_BASE_NS
  2285. #define DMAMUX1_Channel9 DMAMUX1_Channel9_NS
  2286. #define DMAMUX1_Channel9_BASE DMAMUX1_Channel9_BASE_NS
  2287. #define DMAMUX1_Channel10 DMAMUX1_Channel10_NS
  2288. #define DMAMUX1_Channel10_BASE DMAMUX1_Channel10_BASE_NS
  2289. #define DMAMUX1_Channel11 DMAMUX1_Channel11_NS
  2290. #define DMAMUX1_Channel11_BASE DMAMUX1_Channel11_BASE_NS
  2291. #define DMAMUX1_Channel12 DMAMUX1_Channel12_NS
  2292. #define DMAMUX1_Channel12_BASE DMAMUX1_Channel12_BASE_NS
  2293. #define DMAMUX1_Channel13 DMAMUX1_Channel13_NS
  2294. #define DMAMUX1_Channel13_BASE DMAMUX1_Channel13_BASE_NS
  2295. #define DMAMUX1_Channel14 DMAMUX1_Channel14_NS
  2296. #define DMAMUX1_Channel14_BASE DMAMUX1_Channel14_BASE_NS
  2297. #define DMAMUX1_Channel15 DMAMUX1_Channel15_NS
  2298. #define DMAMUX1_Channel15_BASE DMAMUX1_Channel15_BASE_NS
  2299. #define DMAMUX1_RequestGenerator0 DMAMUX1_RequestGenerator0_NS
  2300. #define DMAMUX1_RequestGenerator0_BASE DMAMUX1_RequestGenerator0_BASE_NS
  2301. #define DMAMUX1_RequestGenerator1 DMAMUX1_RequestGenerator1_NS
  2302. #define DMAMUX1_RequestGenerator1_BASE DMAMUX1_RequestGenerator1_BASE_NS
  2303. #define DMAMUX1_RequestGenerator2 DMAMUX1_RequestGenerator2_NS
  2304. #define DMAMUX1_RequestGenerator2_BASE DMAMUX1_RequestGenerator2_BASE_NS
  2305. #define DMAMUX1_RequestGenerator3 DMAMUX1_RequestGenerator3_NS
  2306. #define DMAMUX1_RequestGenerator3_BASE DMAMUX1_RequestGenerator3_BASE_NS
  2307. #define DMAMUX1_ChannelStatus DMAMUX1_ChannelStatus_NS
  2308. #define DMAMUX1_ChannelStatus_BASE DMAMUX1_ChannelStatus_BASE_NS
  2309. #define DMAMUX1_RequestGenStatus DMAMUX1_RequestGenStatus_NS
  2310. #define DMAMUX1_RequestGenStatus_BASE DMAMUX1_RequestGenStatus_BASE_NS
  2311. #define GPIOA GPIOA_NS
  2312. #define GPIOA_BASE GPIOA_BASE_NS
  2313. #define GPIOB GPIOB_NS
  2314. #define GPIOB_BASE GPIOB_BASE_NS
  2315. #define GPIOC GPIOC_NS
  2316. #define GPIOC_BASE GPIOC_BASE_NS
  2317. #define GPIOD GPIOD_NS
  2318. #define GPIOD_BASE GPIOD_BASE_NS
  2319. #define GPIOE GPIOE_NS
  2320. #define GPIOE_BASE GPIOE_BASE_NS
  2321. #define GPIOF GPIOF_NS
  2322. #define GPIOF_BASE GPIOF_BASE_NS
  2323. #define GPIOG GPIOG_NS
  2324. #define GPIOG_BASE GPIOG_BASE_NS
  2325. #define GPIOH GPIOH_NS
  2326. #define GPIOH_BASE GPIOH_BASE_NS
  2327. #define PWR PWR_NS
  2328. #define PWR_BASE PWR_BASE_NS
  2329. #define EXTI EXTI_NS
  2330. #define EXTI_BASE EXTI_BASE_NS
  2331. #define ICACHE ICACHE_NS
  2332. #define ICACHE_BASE ICACHE_BASE_NS
  2333. #define GTZC_TZSC GTZC_TZSC_NS
  2334. #define GTZC_TZSC_BASE GTZC_TZSC_BASE_NS
  2335. #define GTZC_TZIC GTZC_TZIC_NS
  2336. #define GTZC_TZIC_BASE GTZC_TZIC_BASE_NS
  2337. #define GTZC_MPCBB2 GTZC_MPCBB2_NS
  2338. #define GTZC_MPCBB2_BASE GTZC_MPCBB2_BASE_NS
  2339. #define GTZC_MPCBB1 GTZC_MPCBB1_NS
  2340. #define GTZC_MPCBB1_BASE GTZC_MPCBB1_BASE_NS
  2341. #define RTC RTC_NS
  2342. #define RTC_BASE RTC_BASE_NS
  2343. #define TAMP TAMP_NS
  2344. #define TAMP_BASE TAMP_BASE_NS
  2345. #define TIM1 TIM1_NS
  2346. #define TIM1_BASE TIM1_BASE_NS
  2347. #define TIM2 TIM2_NS
  2348. #define TIM2_BASE TIM2_BASE_NS
  2349. #define TIM3 TIM3_NS
  2350. #define TIM3_BASE TIM3_BASE_NS
  2351. #define TIM4 TIM4_NS
  2352. #define TIM4_BASE TIM4_BASE_NS
  2353. #define TIM5 TIM5_NS
  2354. #define TIM5_BASE TIM5_BASE_NS
  2355. #define TIM6 TIM6_NS
  2356. #define TIM6_BASE TIM6_BASE_NS
  2357. #define TIM7 TIM7_NS
  2358. #define TIM7_BASE TIM7_BASE_NS
  2359. #define TIM8 TIM8_NS
  2360. #define TIM8_BASE TIM8_BASE_NS
  2361. #define TIM15 TIM15_NS
  2362. #define TIM15_BASE TIM15_BASE_NS
  2363. #define TIM16 TIM16_NS
  2364. #define TIM16_BASE TIM16_BASE_NS
  2365. #define TIM17 TIM17_NS
  2366. #define TIM17_BASE TIM17_BASE_NS
  2367. #define WWDG WWDG_NS
  2368. #define WWDG_BASE WWDG_BASE_NS
  2369. #define IWDG IWDG_NS
  2370. #define IWDG_BASE IWDG_BASE_NS
  2371. #define SPI1 SPI1_NS
  2372. #define SPI1_BASE SPI1_BASE_NS
  2373. #define SPI2 SPI2_NS
  2374. #define SPI2_BASE SPI2_BASE_NS
  2375. #define SPI3 SPI3_NS
  2376. #define SPI3_BASE SPI3_BASE_NS
  2377. #define USART1 USART1_NS
  2378. #define USART1_BASE USART1_BASE_NS
  2379. #define USART2 USART2_NS
  2380. #define USART2_BASE USART2_BASE_NS
  2381. #define USART3 USART3_NS
  2382. #define USART3_BASE USART3_BASE_NS
  2383. #define UART4 UART4_NS
  2384. #define UART4_BASE UART4_BASE_NS
  2385. #define UART5 UART5_NS
  2386. #define UART5_BASE UART5_BASE_NS
  2387. #define I2C1 I2C1_NS
  2388. #define I2C1_BASE I2C1_BASE_NS
  2389. #define I2C2 I2C2_NS
  2390. #define I2C2_BASE I2C2_BASE_NS
  2391. #define I2C3 I2C3_NS
  2392. #define I2C3_BASE I2C3_BASE_NS
  2393. #define I2C4 I2C4_NS
  2394. #define I2C4_BASE I2C4_BASE_NS
  2395. #define CRS CRS_NS
  2396. #define CRS_BASE CRS_BASE_NS
  2397. #define FDCAN1 FDCAN1_NS
  2398. #define FDCAN1_BASE FDCAN1_BASE_NS
  2399. #define FDCAN_CONFIG FDCAN_CONFIG_NS
  2400. #define FDCAN_CONFIG_BASE FDCAN_CONFIG_BASE_NS
  2401. #define SRAMCAN_BASE SRAMCAN_BASE_NS
  2402. #define DAC DAC_NS
  2403. #define DAC_BASE DAC_BASE_NS
  2404. #define DAC1 DAC1_NS
  2405. #define DAC1_BASE DAC1_BASE_NS
  2406. #define OPAMP OPAMP_NS
  2407. #define OPAMP_BASE OPAMP_BASE_NS
  2408. #define OPAMP1 OPAMP1_NS
  2409. #define OPAMP1_BASE OPAMP1_BASE_NS
  2410. #define OPAMP2 OPAMP2_NS
  2411. #define OPAMP2_BASE OPAMP2_BASE_NS
  2412. #define OPAMP12_COMMON OPAMP12_COMMON_NS
  2413. #define OPAMP12_COMMON_BASE OPAMP12_COMMON_BASE_NS
  2414. #define LPTIM1 LPTIM1_NS
  2415. #define LPTIM1_BASE LPTIM1_BASE_NS
  2416. #define LPTIM2 LPTIM2_NS
  2417. #define LPTIM2_BASE LPTIM2_BASE_NS
  2418. #define LPTIM3 LPTIM3_NS
  2419. #define LPTIM3_BASE LPTIM3_BASE_NS
  2420. #define LPUART1 LPUART1_NS
  2421. #define LPUART1_BASE LPUART1_BASE_NS
  2422. #define USB USB_NS
  2423. #define USB_BASE USB_BASE_NS
  2424. #define UCPD1 UCPD1_NS
  2425. #define UCPD1_BASE UCPD1_BASE_NS
  2426. #define SYSCFG SYSCFG_NS
  2427. #define SYSCFG_BASE SYSCFG_BASE_NS
  2428. #define VREFBUF VREFBUF_NS
  2429. #define VREFBUF_BASE VREFBUF_BASE_NS
  2430. #define COMP1 COMP1_NS
  2431. #define COMP1_BASE COMP1_BASE_NS
  2432. #define COMP2 COMP2_NS
  2433. #define COMP2_BASE COMP2_BASE_NS
  2434. #define COMP12_COMMON COMP12_COMMON_NS
  2435. #define COMP12_COMMON_BASE COMP12_COMMON_BASE_NS
  2436. #define SAI1 SAI1_NS
  2437. #define SAI1_BASE SAI1_BASE_NS
  2438. #define SAI1_Block_A SAI1_Block_A_NS
  2439. #define SAI1_Block_A_BASE SAI1_Block_A_BASE_NS
  2440. #define SAI1_Block_B SAI1_Block_B_NS
  2441. #define SAI1_Block_B_BASE SAI1_Block_B_BASE_NS
  2442. #define SAI2 SAI2_NS
  2443. #define SAI2_BASE SAI2_BASE_NS
  2444. #define SAI2_Block_A SAI2_Block_A_NS
  2445. #define SAI2_Block_A_BASE SAI2_Block_A_BASE_NS
  2446. #define SAI2_Block_B SAI2_Block_B_NS
  2447. #define SAI2_Block_B_BASE SAI2_Block_B_BASE_NS
  2448. #define DFSDM1_Channel0 DFSDM1_Channel0_NS
  2449. #define DFSDM1_Channel0_BASE DFSDM1_Channel0_BASE_NS
  2450. #define DFSDM1_Channel1 DFSDM1_Channel1_NS
  2451. #define DFSDM1_Channel1_BASE DFSDM1_Channel1_BASE_NS
  2452. #define DFSDM1_Channel2 DFSDM1_Channel2_NS
  2453. #define DFSDM1_Channel2_BASE DFSDM1_Channel2_BASE_NS
  2454. #define DFSDM1_Channel3 DFSDM1_Channel3_NS
  2455. #define DFSDM1_Channel3_BASE DFSDM1_Channel3_BASE_NS
  2456. #define DFSDM1_Filter0 DFSDM1_Filter0_NS
  2457. #define DFSDM1_Filter0_BASE DFSDM1_Filter0_BASE_NS
  2458. #define DFSDM1_Filter1 DFSDM1_Filter1_NS
  2459. #define DFSDM1_Filter1_BASE DFSDM1_Filter1_BASE_NS
  2460. #define DFSDM1_Filter2 DFSDM1_Filter2_NS
  2461. #define DFSDM1_Filter2_BASE DFSDM1_Filter2_BASE_NS
  2462. #define DFSDM1_Filter3 DFSDM1_Filter3_NS
  2463. #define DFSDM1_Filter3_BASE DFSDM1_Filter3_BASE_NS
  2464. #define CRC CRC_NS
  2465. #define CRC_BASE CRC_BASE_NS
  2466. #define TSC TSC_NS
  2467. #define TSC_BASE TSC_BASE_NS
  2468. #define ADC1 ADC1_NS
  2469. #define ADC1_BASE ADC1_BASE_NS
  2470. #define ADC2 ADC2_NS
  2471. #define ADC2_BASE ADC2_BASE_NS
  2472. #define ADC12_COMMON ADC12_COMMON_NS
  2473. #define ADC12_COMMON_BASE ADC12_COMMON_BASE_NS
  2474. #define AES AES_NS
  2475. #define AES_BASE AES_BASE_NS
  2476. #define HASH HASH_NS
  2477. #define HASH_BASE HASH_BASE_NS
  2478. #define HASH_DIGEST HASH_DIGEST_NS
  2479. #define HASH_DIGEST_BASE HASH_DIGEST_BASE_NS
  2480. #define RNG RNG_NS
  2481. #define RNG_BASE RNG_BASE_NS
  2482. #define PKA PKA_NS
  2483. #define PKA_BASE PKA_BASE_NS
  2484. #define OTFDEC1 OTFDEC1_NS
  2485. #define OTFDEC1_BASE OTFDEC1_BASE_NS
  2486. #define OTFDEC1_REGION1 OTFDEC1_REGION1_NS
  2487. #define OTFDEC1_REGION1_BASE OTFDEC1_REGION1_BASE_NS
  2488. #define OTFDEC1_REGION2 OTFDEC1_REGION2_NS
  2489. #define OTFDEC1_REGION2_BASE OTFDEC1_REGION2_BASE_NS
  2490. #define OTFDEC1_REGION3 OTFDEC1_REGION3_NS
  2491. #define OTFDEC1_REGION3_BASE OTFDEC1_REGION3_BASE_NS
  2492. #define OTFDEC1_REGION4 OTFDEC1_REGION4_NS
  2493. #define OTFDEC1_REGION4_BASE OTFDEC1_REGION4_BASE_NS
  2494. #define SDMMC1 SDMMC1_NS
  2495. #define SDMMC1_BASE SDMMC1_BASE_NS
  2496. #define FMC_R_BASE FMC_R_BASE_NS
  2497. #define FMC_Bank1_R FMC_Bank1_R_NS
  2498. #define FMC_Bank1_R_BASE FMC_Bank1_R_BASE_NS
  2499. #define FMC_Bank1E_R FMC_Bank1E_R_NS
  2500. #define FMC_Bank1E_R_BASE FMC_Bank1E_R_BASE_NS
  2501. #define FMC_Bank3_R FMC_Bank3_R_NS
  2502. #define FMC_Bank3_R_BASE FMC_Bank3_R_BASE_NS
  2503. #define OCTOSPI1 OCTOSPI1_NS
  2504. #define OCTOSPI1_R_BASE OCTOSPI1_R_BASE_NS
  2505. #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */
  2506. /******************************************************************************/
  2507. /* */
  2508. /* Analog Comparators (COMP) */
  2509. /* */
  2510. /******************************************************************************/
  2511. /********************** Bit definition for COMP_CSR register ****************/
  2512. #define COMP_CSR_EN_Pos (0U)
  2513. #define COMP_CSR_EN_Msk (0x1UL << COMP_CSR_EN_Pos) /*!< 0x00000001 */
  2514. #define COMP_CSR_EN COMP_CSR_EN_Msk /*!< Comparator enable */
  2515. #define COMP_CSR_PWRMODE_Pos (2U)
  2516. #define COMP_CSR_PWRMODE_Msk (0x3UL << COMP_CSR_PWRMODE_Pos) /*!< 0x0000000C */
  2517. #define COMP_CSR_PWRMODE COMP_CSR_PWRMODE_Msk /*!< Comparator power mode */
  2518. #define COMP_CSR_PWRMODE_0 (0x1UL << COMP_CSR_PWRMODE_Pos) /*!< 0x00000004 */
  2519. #define COMP_CSR_PWRMODE_1 (0x2UL << COMP_CSR_PWRMODE_Pos) /*!< 0x00000008 */
  2520. #define COMP_CSR_INMSEL_Pos (4U)
  2521. #define COMP_CSR_INMSEL_Msk (0x7UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000070 */
  2522. #define COMP_CSR_INMSEL COMP_CSR_INMSEL_Msk /*!< Comparator input minus selection */
  2523. #define COMP_CSR_INMSEL_0 (0x1UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000010 */
  2524. #define COMP_CSR_INMSEL_1 (0x2UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000020 */
  2525. #define COMP_CSR_INMSEL_2 (0x4UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000040 */
  2526. #define COMP_CSR_INPSEL_Pos (7U)
  2527. #define COMP_CSR_INPSEL_Msk (0x3UL << COMP_CSR_INPSEL_Pos) /*!< 0x00000180 */
  2528. #define COMP_CSR_INPSEL COMP_CSR_INPSEL_Msk /*!< Comparator input plus selection */
  2529. #define COMP_CSR_INPSEL_0 (0x1UL << COMP_CSR_INPSEL_Pos) /*!< 0x00000080 */
  2530. #define COMP_CSR_INPSEL_1 (0x2UL << COMP_CSR_INPSEL_Pos) /*!< 0x00000100 */
  2531. #define COMP_CSR_WINMODE_Pos (9U)
  2532. #define COMP_CSR_WINMODE_Msk (0x1UL << COMP_CSR_WINMODE_Pos) /*!< 0x00000200 */
  2533. #define COMP_CSR_WINMODE COMP_CSR_WINMODE_Msk /*!< Pair of comparators window mode. Bit intended to be used with COMP common instance (COMP_Common_TypeDef) */
  2534. #define COMP_CSR_POLARITY_Pos (15U)
  2535. #define COMP_CSR_POLARITY_Msk (0x1UL << COMP_CSR_POLARITY_Pos) /*!< 0x00008000 */
  2536. #define COMP_CSR_POLARITY COMP_CSR_POLARITY_Msk /*!< Comparator output polarity */
  2537. #define COMP_CSR_HYST_Pos (16U)
  2538. #define COMP_CSR_HYST_Msk (0x3UL << COMP_CSR_HYST_Pos) /*!< 0x00030000 */
  2539. #define COMP_CSR_HYST COMP_CSR_HYST_Msk /*!< Comparator hysteresis */
  2540. #define COMP_CSR_HYST_0 (0x1UL << COMP_CSR_HYST_Pos) /*!< 0x00010000 */
  2541. #define COMP_CSR_HYST_1 (0x2UL << COMP_CSR_HYST_Pos) /*!< 0x00020000 */
  2542. #define COMP_CSR_BLANKING_Pos (18U)
  2543. #define COMP_CSR_BLANKING_Msk (0x7UL << COMP_CSR_BLANKING_Pos) /*!< 0x001C0000 */
  2544. #define COMP_CSR_BLANKING COMP_CSR_BLANKING_Msk /*!< Comparator blanking source */
  2545. #define COMP_CSR_BLANKING_0 (0x1UL << COMP_CSR_BLANKING_Pos) /*!< 0x00040000 */
  2546. #define COMP_CSR_BLANKING_1 (0x2UL << COMP_CSR_BLANKING_Pos) /*!< 0x00080000 */
  2547. #define COMP_CSR_BLANKING_2 (0x4UL << COMP_CSR_BLANKING_Pos) /*!< 0x00100000 */
  2548. #define COMP_CSR_BRGEN_Pos (22U)
  2549. #define COMP_CSR_BRGEN_Msk (0x1UL << COMP_CSR_BRGEN_Pos) /*!< 0x00400000 */
  2550. #define COMP_CSR_BRGEN COMP_CSR_BRGEN_Msk /*!< Comparator voltage scaler enable */
  2551. #define COMP_CSR_SCALEN_Pos (23U)
  2552. #define COMP_CSR_SCALEN_Msk (0x1UL << COMP_CSR_SCALEN_Pos) /*!< 0x00800000 */
  2553. #define COMP_CSR_SCALEN COMP_CSR_SCALEN_Msk /*!< Comparator scaler bridge enable */
  2554. #define COMP_CSR_VALUE_Pos (30U)
  2555. #define COMP_CSR_VALUE_Msk (0x1UL << COMP_CSR_VALUE_Pos) /*!< 0x40000000 */
  2556. #define COMP_CSR_VALUE COMP_CSR_VALUE_Msk /*!< Comparator output level */
  2557. #define COMP_CSR_LOCK_Pos (31U)
  2558. #define COMP_CSR_LOCK_Msk (0x1UL << COMP_CSR_LOCK_Pos) /*!< 0x80000000 */
  2559. #define COMP_CSR_LOCK COMP_CSR_LOCK_Msk /*!< Comparator lock */
  2560. /******************************************************************************/
  2561. /* */
  2562. /* Analog to Digital Converter */
  2563. /* */
  2564. /******************************************************************************/
  2565. /*
  2566. * @brief Specific device feature definitions
  2567. */
  2568. #define ADC_MULTIMODE_SUPPORT /*!< ADC feature available only on specific devices: multimode available on devices with several ADC instances */
  2569. /******************** Bit definition for ADC_ISR register *******************/
  2570. #define ADC_ISR_ADRDY_Pos (0U)
  2571. #define ADC_ISR_ADRDY_Msk (0x1UL << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */
  2572. #define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC ready flag */
  2573. #define ADC_ISR_EOSMP_Pos (1U)
  2574. #define ADC_ISR_EOSMP_Msk (0x1UL << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  2575. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC group regular end of sampling flag */
  2576. #define ADC_ISR_EOC_Pos (2U)
  2577. #define ADC_ISR_EOC_Msk (0x1UL << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  2578. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC group regular end of unitary conversion flag */
  2579. #define ADC_ISR_EOS_Pos (3U)
  2580. #define ADC_ISR_EOS_Msk (0x1UL << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  2581. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */
  2582. #define ADC_ISR_OVR_Pos (4U)
  2583. #define ADC_ISR_OVR_Msk (0x1UL << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  2584. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC group regular overrun flag */
  2585. #define ADC_ISR_JEOC_Pos (5U)
  2586. #define ADC_ISR_JEOC_Msk (0x1UL << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */
  2587. #define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC group injected end of unitary conversion flag */
  2588. #define ADC_ISR_JEOS_Pos (6U)
  2589. #define ADC_ISR_JEOS_Msk (0x1UL << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */
  2590. #define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC group injected end of sequence conversions flag */
  2591. #define ADC_ISR_AWD1_Pos (7U)
  2592. #define ADC_ISR_AWD1_Msk (0x1UL << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  2593. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC analog watchdog 1 flag */
  2594. #define ADC_ISR_AWD2_Pos (8U)
  2595. #define ADC_ISR_AWD2_Msk (0x1UL << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */
  2596. #define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC analog watchdog 2 flag */
  2597. #define ADC_ISR_AWD3_Pos (9U)
  2598. #define ADC_ISR_AWD3_Msk (0x1UL << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */
  2599. #define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC analog watchdog 3 flag */
  2600. #define ADC_ISR_JQOVF_Pos (10U)
  2601. #define ADC_ISR_JQOVF_Msk (0x1UL << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */
  2602. #define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC group injected contexts queue overflow flag */
  2603. /******************** Bit definition for ADC_IER register *******************/
  2604. #define ADC_IER_ADRDYIE_Pos (0U)
  2605. #define ADC_IER_ADRDYIE_Msk (0x1UL << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */
  2606. #define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC ready interrupt */
  2607. #define ADC_IER_EOSMPIE_Pos (1U)
  2608. #define ADC_IER_EOSMPIE_Msk (0x1UL << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */
  2609. #define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC group regular end of sampling interrupt */
  2610. #define ADC_IER_EOCIE_Pos (2U)
  2611. #define ADC_IER_EOCIE_Msk (0x1UL << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */
  2612. #define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC group regular end of unitary conversion interrupt */
  2613. #define ADC_IER_EOSIE_Pos (3U)
  2614. #define ADC_IER_EOSIE_Msk (0x1UL << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */
  2615. #define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */
  2616. #define ADC_IER_OVRIE_Pos (4U)
  2617. #define ADC_IER_OVRIE_Msk (0x1UL << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */
  2618. #define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC group regular overrun interrupt */
  2619. #define ADC_IER_JEOCIE_Pos (5U)
  2620. #define ADC_IER_JEOCIE_Msk (0x1UL << ADC_IER_JEOCIE_Pos) /*!< 0x00000020 */
  2621. #define ADC_IER_JEOCIE ADC_IER_JEOCIE_Msk /*!< ADC group injected end of unitary conversion interrupt */
  2622. #define ADC_IER_JEOSIE_Pos (6U)
  2623. #define ADC_IER_JEOSIE_Msk (0x1UL << ADC_IER_JEOSIE_Pos) /*!< 0x00000040 */
  2624. #define ADC_IER_JEOSIE ADC_IER_JEOSIE_Msk /*!< ADC group injected end of sequence conversions interrupt */
  2625. #define ADC_IER_AWD1IE_Pos (7U)
  2626. #define ADC_IER_AWD1IE_Msk (0x1UL << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */
  2627. #define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC analog watchdog 1 interrupt */
  2628. #define ADC_IER_AWD2IE_Pos (8U)
  2629. #define ADC_IER_AWD2IE_Msk (0x1UL << ADC_IER_AWD2IE_Pos) /*!< 0x00000100 */
  2630. #define ADC_IER_AWD2IE ADC_IER_AWD2IE_Msk /*!< ADC analog watchdog 2 interrupt */
  2631. #define ADC_IER_AWD3IE_Pos (9U)
  2632. #define ADC_IER_AWD3IE_Msk (0x1UL << ADC_IER_AWD3IE_Pos) /*!< 0x00000200 */
  2633. #define ADC_IER_AWD3IE ADC_IER_AWD3IE_Msk /*!< ADC analog watchdog 3 interrupt */
  2634. #define ADC_IER_JQOVFIE_Pos (10U)
  2635. #define ADC_IER_JQOVFIE_Msk (0x1UL << ADC_IER_JQOVFIE_Pos) /*!< 0x00000400 */
  2636. #define ADC_IER_JQOVFIE ADC_IER_JQOVFIE_Msk /*!< ADC group injected contexts queue overflow interrupt */
  2637. /******************** Bit definition for ADC_CR register ********************/
  2638. #define ADC_CR_ADEN_Pos (0U)
  2639. #define ADC_CR_ADEN_Msk (0x1UL << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  2640. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC enable */
  2641. #define ADC_CR_ADDIS_Pos (1U)
  2642. #define ADC_CR_ADDIS_Msk (0x1UL << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  2643. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC disable */
  2644. #define ADC_CR_ADSTART_Pos (2U)
  2645. #define ADC_CR_ADSTART_Msk (0x1UL << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  2646. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC group regular conversion start */
  2647. #define ADC_CR_JADSTART_Pos (3U)
  2648. #define ADC_CR_JADSTART_Msk (0x1UL << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */
  2649. #define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC group injected conversion start */
  2650. #define ADC_CR_ADSTP_Pos (4U)
  2651. #define ADC_CR_ADSTP_Msk (0x1UL << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  2652. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC group regular conversion stop */
  2653. #define ADC_CR_JADSTP_Pos (5U)
  2654. #define ADC_CR_JADSTP_Msk (0x1UL << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */
  2655. #define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC group injected conversion stop */
  2656. #define ADC_CR_ADVREGEN_Pos (28U)
  2657. #define ADC_CR_ADVREGEN_Msk (0x1UL << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */
  2658. #define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC voltage regulator enable */
  2659. #define ADC_CR_DEEPPWD_Pos (29U)
  2660. #define ADC_CR_DEEPPWD_Msk (0x1UL << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */
  2661. #define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC deep power down enable */
  2662. #define ADC_CR_ADCALDIF_Pos (30U)
  2663. #define ADC_CR_ADCALDIF_Msk (0x1UL << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */
  2664. #define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC differential mode for calibration */
  2665. #define ADC_CR_ADCAL_Pos (31U)
  2666. #define ADC_CR_ADCAL_Msk (0x1UL << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  2667. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC calibration */
  2668. /******************** Bit definition for ADC_CFGR register ******************/
  2669. #define ADC_CFGR_DMAEN_Pos (0U)
  2670. #define ADC_CFGR_DMAEN_Msk (0x1UL << ADC_CFGR_DMAEN_Pos) /*!< 0x00000001 */
  2671. #define ADC_CFGR_DMAEN ADC_CFGR_DMAEN_Msk /*!< ADC DMA transfer enable */
  2672. #define ADC_CFGR_DMACFG_Pos (1U)
  2673. #define ADC_CFGR_DMACFG_Msk (0x1UL << ADC_CFGR_DMACFG_Pos) /*!< 0x00000002 */
  2674. #define ADC_CFGR_DMACFG ADC_CFGR_DMACFG_Msk /*!< ADC DMA transfer configuration */
  2675. #define ADC_CFGR_DFSDMCFG_Pos (2U)
  2676. #define ADC_CFGR_DFSDMCFG_Msk (0x1UL << ADC_CFGR_DFSDMCFG_Pos) /*!< 0x00000004 */
  2677. #define ADC_CFGR_DFSDMCFG ADC_CFGR_DFSDMCFG_Msk /*!< ADC DFSDM mode configuration */
  2678. #define ADC_CFGR_RES_Pos (3U)
  2679. #define ADC_CFGR_RES_Msk (0x3UL << ADC_CFGR_RES_Pos) /*!< 0x00000018 */
  2680. #define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC data resolution */
  2681. #define ADC_CFGR_RES_0 (0x1UL << ADC_CFGR_RES_Pos) /*!< 0x00000008 */
  2682. #define ADC_CFGR_RES_1 (0x2UL << ADC_CFGR_RES_Pos) /*!< 0x00000010 */
  2683. #define ADC_CFGR_ALIGN_Pos (5U)
  2684. #define ADC_CFGR_ALIGN_Msk (0x1UL << ADC_CFGR_ALIGN_Pos) /*!< 0x00000020 */
  2685. #define ADC_CFGR_ALIGN ADC_CFGR_ALIGN_Msk /*!< ADC data alignement */
  2686. #define ADC_CFGR_EXTSEL_Pos (6U)
  2687. #define ADC_CFGR_EXTSEL_Msk (0xFUL << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003C0 */
  2688. #define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC group regular external trigger source */
  2689. #define ADC_CFGR_EXTSEL_0 (0x1UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */
  2690. #define ADC_CFGR_EXTSEL_1 (0x2UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */
  2691. #define ADC_CFGR_EXTSEL_2 (0x4UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */
  2692. #define ADC_CFGR_EXTSEL_3 (0x8UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */
  2693. #define ADC_CFGR_EXTEN_Pos (10U)
  2694. #define ADC_CFGR_EXTEN_Msk (0x3UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */
  2695. #define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC group regular external trigger polarity */
  2696. #define ADC_CFGR_EXTEN_0 (0x1UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */
  2697. #define ADC_CFGR_EXTEN_1 (0x2UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */
  2698. #define ADC_CFGR_OVRMOD_Pos (12U)
  2699. #define ADC_CFGR_OVRMOD_Msk (0x1UL << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */
  2700. #define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC group regular overrun configuration */
  2701. #define ADC_CFGR_CONT_Pos (13U)
  2702. #define ADC_CFGR_CONT_Msk (0x1UL << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */
  2703. #define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC group regular continuous conversion mode */
  2704. #define ADC_CFGR_AUTDLY_Pos (14U)
  2705. #define ADC_CFGR_AUTDLY_Msk (0x1UL << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */
  2706. #define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC low power auto wait */
  2707. #define ADC_CFGR_DISCEN_Pos (16U)
  2708. #define ADC_CFGR_DISCEN_Msk (0x1UL << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */
  2709. #define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */
  2710. #define ADC_CFGR_DISCNUM_Pos (17U)
  2711. #define ADC_CFGR_DISCNUM_Msk (0x7UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */
  2712. #define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC group regular sequencer discontinuous number of ranks */
  2713. #define ADC_CFGR_DISCNUM_0 (0x1UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */
  2714. #define ADC_CFGR_DISCNUM_1 (0x2UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */
  2715. #define ADC_CFGR_DISCNUM_2 (0x4UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */
  2716. #define ADC_CFGR_JDISCEN_Pos (20U)
  2717. #define ADC_CFGR_JDISCEN_Msk (0x1UL << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */
  2718. #define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC group injected sequencer discontinuous mode */
  2719. #define ADC_CFGR_JQM_Pos (21U)
  2720. #define ADC_CFGR_JQM_Msk (0x1UL << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */
  2721. #define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC group injected contexts queue mode */
  2722. #define ADC_CFGR_AWD1SGL_Pos (22U)
  2723. #define ADC_CFGR_AWD1SGL_Msk (0x1UL << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */
  2724. #define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */
  2725. #define ADC_CFGR_AWD1EN_Pos (23U)
  2726. #define ADC_CFGR_AWD1EN_Msk (0x1UL << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */
  2727. #define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */
  2728. #define ADC_CFGR_JAWD1EN_Pos (24U)
  2729. #define ADC_CFGR_JAWD1EN_Msk (0x1UL << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */
  2730. #define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group injected */
  2731. #define ADC_CFGR_JAUTO_Pos (25U)
  2732. #define ADC_CFGR_JAUTO_Msk (0x1UL << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */
  2733. #define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC group injected automatic trigger mode */
  2734. #define ADC_CFGR_AWD1CH_Pos (26U)
  2735. #define ADC_CFGR_AWD1CH_Msk (0x1FUL << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */
  2736. #define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC analog watchdog 1 monitored channel selection */
  2737. #define ADC_CFGR_AWD1CH_0 (0x01UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */
  2738. #define ADC_CFGR_AWD1CH_1 (0x02UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */
  2739. #define ADC_CFGR_AWD1CH_2 (0x04UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */
  2740. #define ADC_CFGR_AWD1CH_3 (0x08UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */
  2741. #define ADC_CFGR_AWD1CH_4 (0x10UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */
  2742. #define ADC_CFGR_JQDIS_Pos (31U)
  2743. #define ADC_CFGR_JQDIS_Msk (0x1UL << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */
  2744. #define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC group injected contexts queue disable */
  2745. /******************** Bit definition for ADC_CFGR2 register *****************/
  2746. #define ADC_CFGR2_ROVSE_Pos (0U)
  2747. #define ADC_CFGR2_ROVSE_Msk (0x1UL << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */
  2748. #define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC oversampler enable on scope ADC group regular */
  2749. #define ADC_CFGR2_JOVSE_Pos (1U)
  2750. #define ADC_CFGR2_JOVSE_Msk (0x1UL << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */
  2751. #define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC oversampler enable on scope ADC group injected */
  2752. #define ADC_CFGR2_OVSR_Pos (2U)
  2753. #define ADC_CFGR2_OVSR_Msk (0x7UL << ADC_CFGR2_OVSR_Pos) /*!< 0x0000001C */
  2754. #define ADC_CFGR2_OVSR ADC_CFGR2_OVSR_Msk /*!< ADC oversampling ratio */
  2755. #define ADC_CFGR2_OVSR_0 (0x1UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00000004 */
  2756. #define ADC_CFGR2_OVSR_1 (0x2UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00000008 */
  2757. #define ADC_CFGR2_OVSR_2 (0x4UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00000010 */
  2758. #define ADC_CFGR2_OVSS_Pos (5U)
  2759. #define ADC_CFGR2_OVSS_Msk (0xFUL << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */
  2760. #define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC oversampling shift */
  2761. #define ADC_CFGR2_OVSS_0 (0x1UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */
  2762. #define ADC_CFGR2_OVSS_1 (0x2UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */
  2763. #define ADC_CFGR2_OVSS_2 (0x4UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */
  2764. #define ADC_CFGR2_OVSS_3 (0x8UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */
  2765. #define ADC_CFGR2_TROVS_Pos (9U)
  2766. #define ADC_CFGR2_TROVS_Msk (0x1UL << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */
  2767. #define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC oversampling discontinuous mode (triggered mode) for ADC group regular */
  2768. #define ADC_CFGR2_ROVSM_Pos (10U)
  2769. #define ADC_CFGR2_ROVSM_Msk (0x1UL << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */
  2770. #define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC oversampling mode managing interlaced conversions of ADC group regular and group injected */
  2771. /******************** Bit definition for ADC_SMPR1 register *****************/
  2772. #define ADC_SMPR1_SMP0_Pos (0U)
  2773. #define ADC_SMPR1_SMP0_Msk (0x7UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */
  2774. #define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC channel 0 sampling time selection */
  2775. #define ADC_SMPR1_SMP0_0 (0x1UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */
  2776. #define ADC_SMPR1_SMP0_1 (0x2UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */
  2777. #define ADC_SMPR1_SMP0_2 (0x4UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */
  2778. #define ADC_SMPR1_SMP1_Pos (3U)
  2779. #define ADC_SMPR1_SMP1_Msk (0x7UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */
  2780. #define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC channel 1 sampling time selection */
  2781. #define ADC_SMPR1_SMP1_0 (0x1UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */
  2782. #define ADC_SMPR1_SMP1_1 (0x2UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */
  2783. #define ADC_SMPR1_SMP1_2 (0x4UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */
  2784. #define ADC_SMPR1_SMP2_Pos (6U)
  2785. #define ADC_SMPR1_SMP2_Msk (0x7UL << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */
  2786. #define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC channel 2 sampling time selection */
  2787. #define ADC_SMPR1_SMP2_0 (0x1UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */
  2788. #define ADC_SMPR1_SMP2_1 (0x2UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */
  2789. #define ADC_SMPR1_SMP2_2 (0x4UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */
  2790. #define ADC_SMPR1_SMP3_Pos (9U)
  2791. #define ADC_SMPR1_SMP3_Msk (0x7UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */
  2792. #define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC channel 3 sampling time selection */
  2793. #define ADC_SMPR1_SMP3_0 (0x1UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */
  2794. #define ADC_SMPR1_SMP3_1 (0x2UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */
  2795. #define ADC_SMPR1_SMP3_2 (0x4UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */
  2796. #define ADC_SMPR1_SMP4_Pos (12U)
  2797. #define ADC_SMPR1_SMP4_Msk (0x7UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */
  2798. #define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC channel 4 sampling time selection */
  2799. #define ADC_SMPR1_SMP4_0 (0x1UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */
  2800. #define ADC_SMPR1_SMP4_1 (0x2UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */
  2801. #define ADC_SMPR1_SMP4_2 (0x4UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */
  2802. #define ADC_SMPR1_SMP5_Pos (15U)
  2803. #define ADC_SMPR1_SMP5_Msk (0x7UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */
  2804. #define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC channel 5 sampling time selection */
  2805. #define ADC_SMPR1_SMP5_0 (0x1UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */
  2806. #define ADC_SMPR1_SMP5_1 (0x2UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */
  2807. #define ADC_SMPR1_SMP5_2 (0x4UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */
  2808. #define ADC_SMPR1_SMP6_Pos (18U)
  2809. #define ADC_SMPR1_SMP6_Msk (0x7UL << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */
  2810. #define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC channel 6 sampling time selection */
  2811. #define ADC_SMPR1_SMP6_0 (0x1UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */
  2812. #define ADC_SMPR1_SMP6_1 (0x2UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */
  2813. #define ADC_SMPR1_SMP6_2 (0x4UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */
  2814. #define ADC_SMPR1_SMP7_Pos (21U)
  2815. #define ADC_SMPR1_SMP7_Msk (0x7UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */
  2816. #define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC channel 7 sampling time selection */
  2817. #define ADC_SMPR1_SMP7_0 (0x1UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */
  2818. #define ADC_SMPR1_SMP7_1 (0x2UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */
  2819. #define ADC_SMPR1_SMP7_2 (0x4UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */
  2820. #define ADC_SMPR1_SMP8_Pos (24U)
  2821. #define ADC_SMPR1_SMP8_Msk (0x7UL << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */
  2822. #define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC channel 8 sampling time selection */
  2823. #define ADC_SMPR1_SMP8_0 (0x1UL << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */
  2824. #define ADC_SMPR1_SMP8_1 (0x2UL << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */
  2825. #define ADC_SMPR1_SMP8_2 (0x4UL << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */
  2826. #define ADC_SMPR1_SMP9_Pos (27U)
  2827. #define ADC_SMPR1_SMP9_Msk (0x7UL << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */
  2828. #define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC channel 9 sampling time selection */
  2829. #define ADC_SMPR1_SMP9_0 (0x1UL << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */
  2830. #define ADC_SMPR1_SMP9_1 (0x2UL << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
  2831. #define ADC_SMPR1_SMP9_2 (0x4UL << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
  2832. #define ADC_SMPR1_SMPPLUS_Pos (31U)
  2833. #define ADC_SMPR1_SMPPLUS_Msk (0x1UL << ADC_SMPR1_SMPPLUS_Pos) /*!< 0x80000000 */
  2834. #define ADC_SMPR1_SMPPLUS ADC_SMPR1_SMPPLUS_Msk /*!< ADC channels sampling time additional setting */
  2835. /******************** Bit definition for ADC_SMPR2 register *****************/
  2836. #define ADC_SMPR2_SMP10_Pos (0U)
  2837. #define ADC_SMPR2_SMP10_Msk (0x7UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
  2838. #define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC channel 10 sampling time selection */
  2839. #define ADC_SMPR2_SMP10_0 (0x1UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */
  2840. #define ADC_SMPR2_SMP10_1 (0x2UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */
  2841. #define ADC_SMPR2_SMP10_2 (0x4UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */
  2842. #define ADC_SMPR2_SMP11_Pos (3U)
  2843. #define ADC_SMPR2_SMP11_Msk (0x7UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */
  2844. #define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC channel 11 sampling time selection */
  2845. #define ADC_SMPR2_SMP11_0 (0x1UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */
  2846. #define ADC_SMPR2_SMP11_1 (0x2UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */
  2847. #define ADC_SMPR2_SMP11_2 (0x4UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */
  2848. #define ADC_SMPR2_SMP12_Pos (6U)
  2849. #define ADC_SMPR2_SMP12_Msk (0x7UL << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */
  2850. #define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC channel 12 sampling time selection */
  2851. #define ADC_SMPR2_SMP12_0 (0x1UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */
  2852. #define ADC_SMPR2_SMP12_1 (0x2UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */
  2853. #define ADC_SMPR2_SMP12_2 (0x4UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */
  2854. #define ADC_SMPR2_SMP13_Pos (9U)
  2855. #define ADC_SMPR2_SMP13_Msk (0x7UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */
  2856. #define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC channel 13 sampling time selection */
  2857. #define ADC_SMPR2_SMP13_0 (0x1UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */
  2858. #define ADC_SMPR2_SMP13_1 (0x2UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */
  2859. #define ADC_SMPR2_SMP13_2 (0x4UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */
  2860. #define ADC_SMPR2_SMP14_Pos (12U)
  2861. #define ADC_SMPR2_SMP14_Msk (0x7UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */
  2862. #define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC channel 14 sampling time selection */
  2863. #define ADC_SMPR2_SMP14_0 (0x1UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */
  2864. #define ADC_SMPR2_SMP14_1 (0x2UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */
  2865. #define ADC_SMPR2_SMP14_2 (0x4UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */
  2866. #define ADC_SMPR2_SMP15_Pos (15U)
  2867. #define ADC_SMPR2_SMP15_Msk (0x7UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */
  2868. #define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC channel 15 sampling time selection */
  2869. #define ADC_SMPR2_SMP15_0 (0x1UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */
  2870. #define ADC_SMPR2_SMP15_1 (0x2UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */
  2871. #define ADC_SMPR2_SMP15_2 (0x4UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */
  2872. #define ADC_SMPR2_SMP16_Pos (18U)
  2873. #define ADC_SMPR2_SMP16_Msk (0x7UL << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */
  2874. #define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC channel 16 sampling time selection */
  2875. #define ADC_SMPR2_SMP16_0 (0x1UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */
  2876. #define ADC_SMPR2_SMP16_1 (0x2UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */
  2877. #define ADC_SMPR2_SMP16_2 (0x4UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */
  2878. #define ADC_SMPR2_SMP17_Pos (21U)
  2879. #define ADC_SMPR2_SMP17_Msk (0x7UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */
  2880. #define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC channel 17 sampling time selection */
  2881. #define ADC_SMPR2_SMP17_0 (0x1UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */
  2882. #define ADC_SMPR2_SMP17_1 (0x2UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */
  2883. #define ADC_SMPR2_SMP17_2 (0x4UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */
  2884. #define ADC_SMPR2_SMP18_Pos (24U)
  2885. #define ADC_SMPR2_SMP18_Msk (0x7UL << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */
  2886. #define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC channel 18 sampling time selection */
  2887. #define ADC_SMPR2_SMP18_0 (0x1UL << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */
  2888. #define ADC_SMPR2_SMP18_1 (0x2UL << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */
  2889. #define ADC_SMPR2_SMP18_2 (0x4UL << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */
  2890. /******************** Bit definition for ADC_TR1 register *******************/
  2891. #define ADC_TR1_LT1_Pos (0U)
  2892. #define ADC_TR1_LT1_Msk (0xFFFUL << ADC_TR1_LT1_Pos) /*!< 0x00000FFF */
  2893. #define ADC_TR1_LT1 ADC_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */
  2894. #define ADC_TR1_LT1_0 (0x001UL << ADC_TR1_LT1_Pos) /*!< 0x00000001 */
  2895. #define ADC_TR1_LT1_1 (0x002UL << ADC_TR1_LT1_Pos) /*!< 0x00000002 */
  2896. #define ADC_TR1_LT1_2 (0x004UL << ADC_TR1_LT1_Pos) /*!< 0x00000004 */
  2897. #define ADC_TR1_LT1_3 (0x008UL << ADC_TR1_LT1_Pos) /*!< 0x00000008 */
  2898. #define ADC_TR1_LT1_4 (0x010UL << ADC_TR1_LT1_Pos) /*!< 0x00000010 */
  2899. #define ADC_TR1_LT1_5 (0x020UL << ADC_TR1_LT1_Pos) /*!< 0x00000020 */
  2900. #define ADC_TR1_LT1_6 (0x040UL << ADC_TR1_LT1_Pos) /*!< 0x00000040 */
  2901. #define ADC_TR1_LT1_7 (0x080UL << ADC_TR1_LT1_Pos) /*!< 0x00000080 */
  2902. #define ADC_TR1_LT1_8 (0x100UL << ADC_TR1_LT1_Pos) /*!< 0x00000100 */
  2903. #define ADC_TR1_LT1_9 (0x200UL << ADC_TR1_LT1_Pos) /*!< 0x00000200 */
  2904. #define ADC_TR1_LT1_10 (0x400UL << ADC_TR1_LT1_Pos) /*!< 0x00000400 */
  2905. #define ADC_TR1_LT1_11 (0x800UL << ADC_TR1_LT1_Pos) /*!< 0x00000800 */
  2906. #define ADC_TR1_HT1_Pos (16U)
  2907. #define ADC_TR1_HT1_Msk (0xFFFUL << ADC_TR1_HT1_Pos) /*!< 0x0FFF0000 */
  2908. #define ADC_TR1_HT1 ADC_TR1_HT1_Msk /*!< ADC Analog watchdog 1 threshold high */
  2909. #define ADC_TR1_HT1_0 (0x001UL << ADC_TR1_HT1_Pos) /*!< 0x00010000 */
  2910. #define ADC_TR1_HT1_1 (0x002UL << ADC_TR1_HT1_Pos) /*!< 0x00020000 */
  2911. #define ADC_TR1_HT1_2 (0x004UL << ADC_TR1_HT1_Pos) /*!< 0x00040000 */
  2912. #define ADC_TR1_HT1_3 (0x008UL << ADC_TR1_HT1_Pos) /*!< 0x00080000 */
  2913. #define ADC_TR1_HT1_4 (0x010UL << ADC_TR1_HT1_Pos) /*!< 0x00100000 */
  2914. #define ADC_TR1_HT1_5 (0x020UL << ADC_TR1_HT1_Pos) /*!< 0x00200000 */
  2915. #define ADC_TR1_HT1_6 (0x040UL << ADC_TR1_HT1_Pos) /*!< 0x00400000 */
  2916. #define ADC_TR1_HT1_7 (0x080UL << ADC_TR1_HT1_Pos) /*!< 0x00800000 */
  2917. #define ADC_TR1_HT1_8 (0x100UL << ADC_TR1_HT1_Pos) /*!< 0x01000000 */
  2918. #define ADC_TR1_HT1_9 (0x200UL << ADC_TR1_HT1_Pos) /*!< 0x02000000 */
  2919. #define ADC_TR1_HT1_10 (0x400UL << ADC_TR1_HT1_Pos) /*!< 0x04000000 */
  2920. #define ADC_TR1_HT1_11 (0x800UL << ADC_TR1_HT1_Pos) /*!< 0x08000000 */
  2921. /******************** Bit definition for ADC_TR2 register *******************/
  2922. #define ADC_TR2_LT2_Pos (0U)
  2923. #define ADC_TR2_LT2_Msk (0xFFUL << ADC_TR2_LT2_Pos) /*!< 0x000000FF */
  2924. #define ADC_TR2_LT2 ADC_TR2_LT2_Msk /*!< ADC analog watchdog 2 threshold low */
  2925. #define ADC_TR2_LT2_0 (0x01UL << ADC_TR2_LT2_Pos) /*!< 0x00000001 */
  2926. #define ADC_TR2_LT2_1 (0x02UL << ADC_TR2_LT2_Pos) /*!< 0x00000002 */
  2927. #define ADC_TR2_LT2_2 (0x04UL << ADC_TR2_LT2_Pos) /*!< 0x00000004 */
  2928. #define ADC_TR2_LT2_3 (0x08UL << ADC_TR2_LT2_Pos) /*!< 0x00000008 */
  2929. #define ADC_TR2_LT2_4 (0x10UL << ADC_TR2_LT2_Pos) /*!< 0x00000010 */
  2930. #define ADC_TR2_LT2_5 (0x20UL << ADC_TR2_LT2_Pos) /*!< 0x00000020 */
  2931. #define ADC_TR2_LT2_6 (0x40UL << ADC_TR2_LT2_Pos) /*!< 0x00000040 */
  2932. #define ADC_TR2_LT2_7 (0x80UL << ADC_TR2_LT2_Pos) /*!< 0x00000080 */
  2933. #define ADC_TR2_HT2_Pos (16U)
  2934. #define ADC_TR2_HT2_Msk (0xFFUL << ADC_TR2_HT2_Pos) /*!< 0x00FF0000 */
  2935. #define ADC_TR2_HT2 ADC_TR2_HT2_Msk /*!< ADC analog watchdog 2 threshold high */
  2936. #define ADC_TR2_HT2_0 (0x01UL << ADC_TR2_HT2_Pos) /*!< 0x00010000 */
  2937. #define ADC_TR2_HT2_1 (0x02UL << ADC_TR2_HT2_Pos) /*!< 0x00020000 */
  2938. #define ADC_TR2_HT2_2 (0x04UL << ADC_TR2_HT2_Pos) /*!< 0x00040000 */
  2939. #define ADC_TR2_HT2_3 (0x08UL << ADC_TR2_HT2_Pos) /*!< 0x00080000 */
  2940. #define ADC_TR2_HT2_4 (0x10UL << ADC_TR2_HT2_Pos) /*!< 0x00100000 */
  2941. #define ADC_TR2_HT2_5 (0x20UL << ADC_TR2_HT2_Pos) /*!< 0x00200000 */
  2942. #define ADC_TR2_HT2_6 (0x40UL << ADC_TR2_HT2_Pos) /*!< 0x00400000 */
  2943. #define ADC_TR2_HT2_7 (0x80UL << ADC_TR2_HT2_Pos) /*!< 0x00800000 */
  2944. /******************** Bit definition for ADC_TR3 register *******************/
  2945. #define ADC_TR3_LT3_Pos (0U)
  2946. #define ADC_TR3_LT3_Msk (0xFFUL << ADC_TR3_LT3_Pos) /*!< 0x000000FF */
  2947. #define ADC_TR3_LT3 ADC_TR3_LT3_Msk /*!< ADC analog watchdog 3 threshold low */
  2948. #define ADC_TR3_LT3_0 (0x01UL << ADC_TR3_LT3_Pos) /*!< 0x00000001 */
  2949. #define ADC_TR3_LT3_1 (0x02UL << ADC_TR3_LT3_Pos) /*!< 0x00000002 */
  2950. #define ADC_TR3_LT3_2 (0x04UL << ADC_TR3_LT3_Pos) /*!< 0x00000004 */
  2951. #define ADC_TR3_LT3_3 (0x08UL << ADC_TR3_LT3_Pos) /*!< 0x00000008 */
  2952. #define ADC_TR3_LT3_4 (0x10UL << ADC_TR3_LT3_Pos) /*!< 0x00000010 */
  2953. #define ADC_TR3_LT3_5 (0x20UL << ADC_TR3_LT3_Pos) /*!< 0x00000020 */
  2954. #define ADC_TR3_LT3_6 (0x40UL << ADC_TR3_LT3_Pos) /*!< 0x00000040 */
  2955. #define ADC_TR3_LT3_7 (0x80UL << ADC_TR3_LT3_Pos) /*!< 0x00000080 */
  2956. #define ADC_TR3_HT3_Pos (16U)
  2957. #define ADC_TR3_HT3_Msk (0xFFUL << ADC_TR3_HT3_Pos) /*!< 0x00FF0000 */
  2958. #define ADC_TR3_HT3 ADC_TR3_HT3_Msk /*!< ADC analog watchdog 3 threshold high */
  2959. #define ADC_TR3_HT3_0 (0x01UL << ADC_TR3_HT3_Pos) /*!< 0x00010000 */
  2960. #define ADC_TR3_HT3_1 (0x02UL << ADC_TR3_HT3_Pos) /*!< 0x00020000 */
  2961. #define ADC_TR3_HT3_2 (0x04UL << ADC_TR3_HT3_Pos) /*!< 0x00040000 */
  2962. #define ADC_TR3_HT3_3 (0x08UL << ADC_TR3_HT3_Pos) /*!< 0x00080000 */
  2963. #define ADC_TR3_HT3_4 (0x10UL << ADC_TR3_HT3_Pos) /*!< 0x00100000 */
  2964. #define ADC_TR3_HT3_5 (0x20UL << ADC_TR3_HT3_Pos) /*!< 0x00200000 */
  2965. #define ADC_TR3_HT3_6 (0x40UL << ADC_TR3_HT3_Pos) /*!< 0x00400000 */
  2966. #define ADC_TR3_HT3_7 (0x80UL << ADC_TR3_HT3_Pos) /*!< 0x00800000 */
  2967. /******************** Bit definition for ADC_SQR1 register ******************/
  2968. #define ADC_SQR1_L_Pos (0U)
  2969. #define ADC_SQR1_L_Msk (0xFUL << ADC_SQR1_L_Pos) /*!< 0x0000000F */
  2970. #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC group regular sequencer scan length */
  2971. #define ADC_SQR1_L_0 (0x1UL << ADC_SQR1_L_Pos) /*!< 0x00000001 */
  2972. #define ADC_SQR1_L_1 (0x2UL << ADC_SQR1_L_Pos) /*!< 0x00000002 */
  2973. #define ADC_SQR1_L_2 (0x4UL << ADC_SQR1_L_Pos) /*!< 0x00000004 */
  2974. #define ADC_SQR1_L_3 (0x8UL << ADC_SQR1_L_Pos) /*!< 0x00000008 */
  2975. #define ADC_SQR1_SQ1_Pos (6U)
  2976. #define ADC_SQR1_SQ1_Msk (0x1FUL << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */
  2977. #define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC group regular sequencer rank 1 */
  2978. #define ADC_SQR1_SQ1_0 (0x01UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */
  2979. #define ADC_SQR1_SQ1_1 (0x02UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */
  2980. #define ADC_SQR1_SQ1_2 (0x04UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */
  2981. #define ADC_SQR1_SQ1_3 (0x08UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */
  2982. #define ADC_SQR1_SQ1_4 (0x10UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */
  2983. #define ADC_SQR1_SQ2_Pos (12U)
  2984. #define ADC_SQR1_SQ2_Msk (0x1FUL << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */
  2985. #define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC group regular sequencer rank 2 */
  2986. #define ADC_SQR1_SQ2_0 (0x01UL << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */
  2987. #define ADC_SQR1_SQ2_1 (0x02UL << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */
  2988. #define ADC_SQR1_SQ2_2 (0x04UL << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */
  2989. #define ADC_SQR1_SQ2_3 (0x08UL << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */
  2990. #define ADC_SQR1_SQ2_4 (0x10UL << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */
  2991. #define ADC_SQR1_SQ3_Pos (18U)
  2992. #define ADC_SQR1_SQ3_Msk (0x1FUL << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */
  2993. #define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC group regular sequencer rank 3 */
  2994. #define ADC_SQR1_SQ3_0 (0x01UL << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */
  2995. #define ADC_SQR1_SQ3_1 (0x02UL << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */
  2996. #define ADC_SQR1_SQ3_2 (0x04UL << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */
  2997. #define ADC_SQR1_SQ3_3 (0x08UL << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */
  2998. #define ADC_SQR1_SQ3_4 (0x10UL << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */
  2999. #define ADC_SQR1_SQ4_Pos (24U)
  3000. #define ADC_SQR1_SQ4_Msk (0x1FUL << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */
  3001. #define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC group regular sequencer rank 4 */
  3002. #define ADC_SQR1_SQ4_0 (0x01UL << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */
  3003. #define ADC_SQR1_SQ4_1 (0x02UL << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */
  3004. #define ADC_SQR1_SQ4_2 (0x04UL << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */
  3005. #define ADC_SQR1_SQ4_3 (0x08UL << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */
  3006. #define ADC_SQR1_SQ4_4 (0x10UL << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */
  3007. /******************** Bit definition for ADC_SQR2 register ******************/
  3008. #define ADC_SQR2_SQ5_Pos (0U)
  3009. #define ADC_SQR2_SQ5_Msk (0x1FUL << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */
  3010. #define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC group regular sequencer rank 5 */
  3011. #define ADC_SQR2_SQ5_0 (0x01UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */
  3012. #define ADC_SQR2_SQ5_1 (0x02UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */
  3013. #define ADC_SQR2_SQ5_2 (0x04UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */
  3014. #define ADC_SQR2_SQ5_3 (0x08UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */
  3015. #define ADC_SQR2_SQ5_4 (0x10UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */
  3016. #define ADC_SQR2_SQ6_Pos (6U)
  3017. #define ADC_SQR2_SQ6_Msk (0x1FUL << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */
  3018. #define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC group regular sequencer rank 6 */
  3019. #define ADC_SQR2_SQ6_0 (0x01UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */
  3020. #define ADC_SQR2_SQ6_1 (0x02UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */
  3021. #define ADC_SQR2_SQ6_2 (0x04UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */
  3022. #define ADC_SQR2_SQ6_3 (0x08UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */
  3023. #define ADC_SQR2_SQ6_4 (0x10UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */
  3024. #define ADC_SQR2_SQ7_Pos (12U)
  3025. #define ADC_SQR2_SQ7_Msk (0x1FUL << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */
  3026. #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC group regular sequencer rank 7 */
  3027. #define ADC_SQR2_SQ7_0 (0x01UL << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */
  3028. #define ADC_SQR2_SQ7_1 (0x02UL << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */
  3029. #define ADC_SQR2_SQ7_2 (0x04UL << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */
  3030. #define ADC_SQR2_SQ7_3 (0x08UL << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */
  3031. #define ADC_SQR2_SQ7_4 (0x10UL << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */
  3032. #define ADC_SQR2_SQ8_Pos (18U)
  3033. #define ADC_SQR2_SQ8_Msk (0x1FUL << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */
  3034. #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC group regular sequencer rank 8 */
  3035. #define ADC_SQR2_SQ8_0 (0x01UL << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */
  3036. #define ADC_SQR2_SQ8_1 (0x02UL << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */
  3037. #define ADC_SQR2_SQ8_2 (0x04UL << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */
  3038. #define ADC_SQR2_SQ8_3 (0x08UL << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */
  3039. #define ADC_SQR2_SQ8_4 (0x10UL << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */
  3040. #define ADC_SQR2_SQ9_Pos (24U)
  3041. #define ADC_SQR2_SQ9_Msk (0x1FUL << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */
  3042. #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC group regular sequencer rank 9 */
  3043. #define ADC_SQR2_SQ9_0 (0x01UL << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */
  3044. #define ADC_SQR2_SQ9_1 (0x02UL << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */
  3045. #define ADC_SQR2_SQ9_2 (0x04UL << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */
  3046. #define ADC_SQR2_SQ9_3 (0x08UL << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */
  3047. #define ADC_SQR2_SQ9_4 (0x10UL << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */
  3048. /******************** Bit definition for ADC_SQR3 register ******************/
  3049. #define ADC_SQR3_SQ10_Pos (0U)
  3050. #define ADC_SQR3_SQ10_Msk (0x1FUL << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */
  3051. #define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC group regular sequencer rank 10 */
  3052. #define ADC_SQR3_SQ10_0 (0x01UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */
  3053. #define ADC_SQR3_SQ10_1 (0x02UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */
  3054. #define ADC_SQR3_SQ10_2 (0x04UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */
  3055. #define ADC_SQR3_SQ10_3 (0x08UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */
  3056. #define ADC_SQR3_SQ10_4 (0x10UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */
  3057. #define ADC_SQR3_SQ11_Pos (6U)
  3058. #define ADC_SQR3_SQ11_Msk (0x1FUL << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */
  3059. #define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC group regular sequencer rank 11 */
  3060. #define ADC_SQR3_SQ11_0 (0x01UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */
  3061. #define ADC_SQR3_SQ11_1 (0x02UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */
  3062. #define ADC_SQR3_SQ11_2 (0x04UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */
  3063. #define ADC_SQR3_SQ11_3 (0x08UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */
  3064. #define ADC_SQR3_SQ11_4 (0x10UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */
  3065. #define ADC_SQR3_SQ12_Pos (12U)
  3066. #define ADC_SQR3_SQ12_Msk (0x1FUL << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */
  3067. #define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC group regular sequencer rank 12 */
  3068. #define ADC_SQR3_SQ12_0 (0x01UL << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */
  3069. #define ADC_SQR3_SQ12_1 (0x02UL << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */
  3070. #define ADC_SQR3_SQ12_2 (0x04UL << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */
  3071. #define ADC_SQR3_SQ12_3 (0x08UL << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */
  3072. #define ADC_SQR3_SQ12_4 (0x10UL << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */
  3073. #define ADC_SQR3_SQ13_Pos (18U)
  3074. #define ADC_SQR3_SQ13_Msk (0x1FUL << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */
  3075. #define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC group regular sequencer rank 13 */
  3076. #define ADC_SQR3_SQ13_0 (0x01UL << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */
  3077. #define ADC_SQR3_SQ13_1 (0x02UL << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */
  3078. #define ADC_SQR3_SQ13_2 (0x04UL << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */
  3079. #define ADC_SQR3_SQ13_3 (0x08UL << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */
  3080. #define ADC_SQR3_SQ13_4 (0x10UL << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */
  3081. #define ADC_SQR3_SQ14_Pos (24U)
  3082. #define ADC_SQR3_SQ14_Msk (0x1FUL << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */
  3083. #define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC group regular sequencer rank 14 */
  3084. #define ADC_SQR3_SQ14_0 (0x01UL << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */
  3085. #define ADC_SQR3_SQ14_1 (0x02UL << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */
  3086. #define ADC_SQR3_SQ14_2 (0x04UL << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */
  3087. #define ADC_SQR3_SQ14_3 (0x08UL << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */
  3088. #define ADC_SQR3_SQ14_4 (0x10UL << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */
  3089. /******************** Bit definition for ADC_SQR4 register ******************/
  3090. #define ADC_SQR4_SQ15_Pos (0U)
  3091. #define ADC_SQR4_SQ15_Msk (0x1FUL << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */
  3092. #define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC group regular sequencer rank 15 */
  3093. #define ADC_SQR4_SQ15_0 (0x01UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */
  3094. #define ADC_SQR4_SQ15_1 (0x02UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */
  3095. #define ADC_SQR4_SQ15_2 (0x04UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */
  3096. #define ADC_SQR4_SQ15_3 (0x08UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */
  3097. #define ADC_SQR4_SQ15_4 (0x10UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */
  3098. #define ADC_SQR4_SQ16_Pos (6U)
  3099. #define ADC_SQR4_SQ16_Msk (0x1FUL << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */
  3100. #define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC group regular sequencer rank 16 */
  3101. #define ADC_SQR4_SQ16_0 (0x01UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */
  3102. #define ADC_SQR4_SQ16_1 (0x02UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */
  3103. #define ADC_SQR4_SQ16_2 (0x04UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */
  3104. #define ADC_SQR4_SQ16_3 (0x08UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */
  3105. #define ADC_SQR4_SQ16_4 (0x10UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */
  3106. /******************** Bit definition for ADC_DR register ********************/
  3107. #define ADC_DR_RDATA_Pos (0U)
  3108. #define ADC_DR_RDATA_Msk (0xFFFFUL << ADC_DR_RDATA_Pos) /*!< 0x0000FFFF */
  3109. #define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC group regular conversion data */
  3110. #define ADC_DR_RDATA_0 (0x0001UL << ADC_DR_RDATA_Pos) /*!< 0x00000001 */
  3111. #define ADC_DR_RDATA_1 (0x0002UL << ADC_DR_RDATA_Pos) /*!< 0x00000002 */
  3112. #define ADC_DR_RDATA_2 (0x0004UL << ADC_DR_RDATA_Pos) /*!< 0x00000004 */
  3113. #define ADC_DR_RDATA_3 (0x0008UL << ADC_DR_RDATA_Pos) /*!< 0x00000008 */
  3114. #define ADC_DR_RDATA_4 (0x0010UL << ADC_DR_RDATA_Pos) /*!< 0x00000010 */
  3115. #define ADC_DR_RDATA_5 (0x0020UL << ADC_DR_RDATA_Pos) /*!< 0x00000020 */
  3116. #define ADC_DR_RDATA_6 (0x0040UL << ADC_DR_RDATA_Pos) /*!< 0x00000040 */
  3117. #define ADC_DR_RDATA_7 (0x0080UL << ADC_DR_RDATA_Pos) /*!< 0x00000080 */
  3118. #define ADC_DR_RDATA_8 (0x0100UL << ADC_DR_RDATA_Pos) /*!< 0x00000100 */
  3119. #define ADC_DR_RDATA_9 (0x0200UL << ADC_DR_RDATA_Pos) /*!< 0x00000200 */
  3120. #define ADC_DR_RDATA_10 (0x0400UL << ADC_DR_RDATA_Pos) /*!< 0x00000400 */
  3121. #define ADC_DR_RDATA_11 (0x0800UL << ADC_DR_RDATA_Pos) /*!< 0x00000800 */
  3122. #define ADC_DR_RDATA_12 (0x1000UL << ADC_DR_RDATA_Pos) /*!< 0x00001000 */
  3123. #define ADC_DR_RDATA_13 (0x2000UL << ADC_DR_RDATA_Pos) /*!< 0x00002000 */
  3124. #define ADC_DR_RDATA_14 (0x4000UL << ADC_DR_RDATA_Pos) /*!< 0x00004000 */
  3125. #define ADC_DR_RDATA_15 (0x8000UL << ADC_DR_RDATA_Pos) /*!< 0x00008000 */
  3126. /******************** Bit definition for ADC_JSQR register ******************/
  3127. #define ADC_JSQR_JL_Pos (0U)
  3128. #define ADC_JSQR_JL_Msk (0x3UL << ADC_JSQR_JL_Pos) /*!< 0x00000003 */
  3129. #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC group injected sequencer scan length */
  3130. #define ADC_JSQR_JL_0 (0x1UL << ADC_JSQR_JL_Pos) /*!< 0x00000001 */
  3131. #define ADC_JSQR_JL_1 (0x2UL << ADC_JSQR_JL_Pos) /*!< 0x00000002 */
  3132. #define ADC_JSQR_JEXTSEL_Pos (2U)
  3133. #define ADC_JSQR_JEXTSEL_Msk (0xFUL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000003C */
  3134. #define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC group injected external trigger source */
  3135. #define ADC_JSQR_JEXTSEL_0 (0x1UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */
  3136. #define ADC_JSQR_JEXTSEL_1 (0x2UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */
  3137. #define ADC_JSQR_JEXTSEL_2 (0x4UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */
  3138. #define ADC_JSQR_JEXTSEL_3 (0x8UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */
  3139. #define ADC_JSQR_JEXTEN_Pos (6U)
  3140. #define ADC_JSQR_JEXTEN_Msk (0x3UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x000000C0 */
  3141. #define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC group injected external trigger polarity */
  3142. #define ADC_JSQR_JEXTEN_0 (0x1UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000040 */
  3143. #define ADC_JSQR_JEXTEN_1 (0x2UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */
  3144. #define ADC_JSQR_JSQ1_Pos (8U)
  3145. #define ADC_JSQR_JSQ1_Msk (0x1FUL << ADC_JSQR_JSQ1_Pos) /*!< 0x00001F00 */
  3146. #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC group injected sequencer rank 1 */
  3147. #define ADC_JSQR_JSQ1_0 (0x01UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000100 */
  3148. #define ADC_JSQR_JSQ1_1 (0x02UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */
  3149. #define ADC_JSQR_JSQ1_2 (0x04UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */
  3150. #define ADC_JSQR_JSQ1_3 (0x08UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */
  3151. #define ADC_JSQR_JSQ1_4 (0x10UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */
  3152. #define ADC_JSQR_JSQ2_Pos (14U)
  3153. #define ADC_JSQR_JSQ2_Msk (0x1FUL << ADC_JSQR_JSQ2_Pos) /*!< 0x0007C000 */
  3154. #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC group injected sequencer rank 2 */
  3155. #define ADC_JSQR_JSQ2_0 (0x01UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00004000 */
  3156. #define ADC_JSQR_JSQ2_1 (0x02UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */
  3157. #define ADC_JSQR_JSQ2_2 (0x04UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */
  3158. #define ADC_JSQR_JSQ2_3 (0x08UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */
  3159. #define ADC_JSQR_JSQ2_4 (0x10UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */
  3160. #define ADC_JSQR_JSQ3_Pos (20U)
  3161. #define ADC_JSQR_JSQ3_Msk (0x1FUL << ADC_JSQR_JSQ3_Pos) /*!< 0x01F00000 */
  3162. #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC group injected sequencer rank 3 */
  3163. #define ADC_JSQR_JSQ3_0 (0x01UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00100000 */
  3164. #define ADC_JSQR_JSQ3_1 (0x02UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */
  3165. #define ADC_JSQR_JSQ3_2 (0x04UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */
  3166. #define ADC_JSQR_JSQ3_3 (0x08UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */
  3167. #define ADC_JSQR_JSQ3_4 (0x10UL << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */
  3168. #define ADC_JSQR_JSQ4_Pos (26U)
  3169. #define ADC_JSQR_JSQ4_Msk (0x1FUL << ADC_JSQR_JSQ4_Pos) /*!< 0x7C000000 */
  3170. #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC group injected sequencer rank 4 */
  3171. #define ADC_JSQR_JSQ4_0 (0x01UL << ADC_JSQR_JSQ4_Pos) /*!< 0x04000000 */
  3172. #define ADC_JSQR_JSQ4_1 (0x02UL << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */
  3173. #define ADC_JSQR_JSQ4_2 (0x04UL << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */
  3174. #define ADC_JSQR_JSQ4_3 (0x08UL << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */
  3175. #define ADC_JSQR_JSQ4_4 (0x10UL << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */
  3176. /******************** Bit definition for ADC_OFR1 register ******************/
  3177. #define ADC_OFR1_OFFSET1_Pos (0U)
  3178. #define ADC_OFR1_OFFSET1_Msk (0xFFFUL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000FFF */
  3179. #define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC offset number 1 offset level */
  3180. #define ADC_OFR1_OFFSET1_0 (0x001UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
  3181. #define ADC_OFR1_OFFSET1_1 (0x002UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
  3182. #define ADC_OFR1_OFFSET1_2 (0x004UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
  3183. #define ADC_OFR1_OFFSET1_3 (0x008UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
  3184. #define ADC_OFR1_OFFSET1_4 (0x010UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
  3185. #define ADC_OFR1_OFFSET1_5 (0x020UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
  3186. #define ADC_OFR1_OFFSET1_6 (0x040UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
  3187. #define ADC_OFR1_OFFSET1_7 (0x080UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
  3188. #define ADC_OFR1_OFFSET1_8 (0x100UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
  3189. #define ADC_OFR1_OFFSET1_9 (0x200UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
  3190. #define ADC_OFR1_OFFSET1_10 (0x400UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
  3191. #define ADC_OFR1_OFFSET1_11 (0x800UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
  3192. #define ADC_OFR1_OFFSET1_CH_Pos (26U)
  3193. #define ADC_OFR1_OFFSET1_CH_Msk (0x1FUL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */
  3194. #define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC offset number 1 channel selection */
  3195. #define ADC_OFR1_OFFSET1_CH_0 (0x01UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */
  3196. #define ADC_OFR1_OFFSET1_CH_1 (0x02UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */
  3197. #define ADC_OFR1_OFFSET1_CH_2 (0x04UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */
  3198. #define ADC_OFR1_OFFSET1_CH_3 (0x08UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */
  3199. #define ADC_OFR1_OFFSET1_CH_4 (0x10UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */
  3200. #define ADC_OFR1_OFFSET1_EN_Pos (31U)
  3201. #define ADC_OFR1_OFFSET1_EN_Msk (0x1UL << ADC_OFR1_OFFSET1_EN_Pos) /*!< 0x80000000 */
  3202. #define ADC_OFR1_OFFSET1_EN ADC_OFR1_OFFSET1_EN_Msk /*!< ADC offset number 1 enable */
  3203. /******************** Bit definition for ADC_OFR2 register ******************/
  3204. #define ADC_OFR2_OFFSET2_Pos (0U)
  3205. #define ADC_OFR2_OFFSET2_Msk (0xFFFUL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000FFF */
  3206. #define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC offset number 2 offset level */
  3207. #define ADC_OFR2_OFFSET2_0 (0x001UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
  3208. #define ADC_OFR2_OFFSET2_1 (0x002UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
  3209. #define ADC_OFR2_OFFSET2_2 (0x004UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
  3210. #define ADC_OFR2_OFFSET2_3 (0x008UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
  3211. #define ADC_OFR2_OFFSET2_4 (0x010UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
  3212. #define ADC_OFR2_OFFSET2_5 (0x020UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
  3213. #define ADC_OFR2_OFFSET2_6 (0x040UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
  3214. #define ADC_OFR2_OFFSET2_7 (0x080UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
  3215. #define ADC_OFR2_OFFSET2_8 (0x100UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
  3216. #define ADC_OFR2_OFFSET2_9 (0x200UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
  3217. #define ADC_OFR2_OFFSET2_10 (0x400UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
  3218. #define ADC_OFR2_OFFSET2_11 (0x800UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
  3219. #define ADC_OFR2_OFFSET2_CH_Pos (26U)
  3220. #define ADC_OFR2_OFFSET2_CH_Msk (0x1FUL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */
  3221. #define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC offset number 2 channel selection */
  3222. #define ADC_OFR2_OFFSET2_CH_0 (0x01UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */
  3223. #define ADC_OFR2_OFFSET2_CH_1 (0x02UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */
  3224. #define ADC_OFR2_OFFSET2_CH_2 (0x04UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */
  3225. #define ADC_OFR2_OFFSET2_CH_3 (0x08UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */
  3226. #define ADC_OFR2_OFFSET2_CH_4 (0x10UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */
  3227. #define ADC_OFR2_OFFSET2_EN_Pos (31U)
  3228. #define ADC_OFR2_OFFSET2_EN_Msk (0x1UL << ADC_OFR2_OFFSET2_EN_Pos) /*!< 0x80000000 */
  3229. #define ADC_OFR2_OFFSET2_EN ADC_OFR2_OFFSET2_EN_Msk /*!< ADC offset number 2 enable */
  3230. /******************** Bit definition for ADC_OFR3 register ******************/
  3231. #define ADC_OFR3_OFFSET3_Pos (0U)
  3232. #define ADC_OFR3_OFFSET3_Msk (0xFFFUL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000FFF */
  3233. #define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC offset number 3 offset level */
  3234. #define ADC_OFR3_OFFSET3_0 (0x001UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
  3235. #define ADC_OFR3_OFFSET3_1 (0x002UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
  3236. #define ADC_OFR3_OFFSET3_2 (0x004UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
  3237. #define ADC_OFR3_OFFSET3_3 (0x008UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
  3238. #define ADC_OFR3_OFFSET3_4 (0x010UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
  3239. #define ADC_OFR3_OFFSET3_5 (0x020UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
  3240. #define ADC_OFR3_OFFSET3_6 (0x040UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
  3241. #define ADC_OFR3_OFFSET3_7 (0x080UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
  3242. #define ADC_OFR3_OFFSET3_8 (0x100UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
  3243. #define ADC_OFR3_OFFSET3_9 (0x200UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
  3244. #define ADC_OFR3_OFFSET3_10 (0x400UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
  3245. #define ADC_OFR3_OFFSET3_11 (0x800UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
  3246. #define ADC_OFR3_OFFSET3_CH_Pos (26U)
  3247. #define ADC_OFR3_OFFSET3_CH_Msk (0x1FUL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */
  3248. #define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC offset number 3 channel selection */
  3249. #define ADC_OFR3_OFFSET3_CH_0 (0x01UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */
  3250. #define ADC_OFR3_OFFSET3_CH_1 (0x02UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */
  3251. #define ADC_OFR3_OFFSET3_CH_2 (0x04UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */
  3252. #define ADC_OFR3_OFFSET3_CH_3 (0x08UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */
  3253. #define ADC_OFR3_OFFSET3_CH_4 (0x10UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */
  3254. #define ADC_OFR3_OFFSET3_EN_Pos (31U)
  3255. #define ADC_OFR3_OFFSET3_EN_Msk (0x1UL << ADC_OFR3_OFFSET3_EN_Pos) /*!< 0x80000000 */
  3256. #define ADC_OFR3_OFFSET3_EN ADC_OFR3_OFFSET3_EN_Msk /*!< ADC offset number 3 enable */
  3257. /******************** Bit definition for ADC_OFR4 register ******************/
  3258. #define ADC_OFR4_OFFSET4_Pos (0U)
  3259. #define ADC_OFR4_OFFSET4_Msk (0xFFFUL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000FFF */
  3260. #define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC offset number 4 offset level */
  3261. #define ADC_OFR4_OFFSET4_0 (0x001UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
  3262. #define ADC_OFR4_OFFSET4_1 (0x002UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
  3263. #define ADC_OFR4_OFFSET4_2 (0x004UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
  3264. #define ADC_OFR4_OFFSET4_3 (0x008UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
  3265. #define ADC_OFR4_OFFSET4_4 (0x010UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
  3266. #define ADC_OFR4_OFFSET4_5 (0x020UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
  3267. #define ADC_OFR4_OFFSET4_6 (0x040UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
  3268. #define ADC_OFR4_OFFSET4_7 (0x080UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
  3269. #define ADC_OFR4_OFFSET4_8 (0x100UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
  3270. #define ADC_OFR4_OFFSET4_9 (0x200UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
  3271. #define ADC_OFR4_OFFSET4_10 (0x400UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
  3272. #define ADC_OFR4_OFFSET4_11 (0x800UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
  3273. #define ADC_OFR4_OFFSET4_CH_Pos (26U)
  3274. #define ADC_OFR4_OFFSET4_CH_Msk (0x1FUL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */
  3275. #define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC offset number 4 channel selection */
  3276. #define ADC_OFR4_OFFSET4_CH_0 (0x01UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */
  3277. #define ADC_OFR4_OFFSET4_CH_1 (0x02UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */
  3278. #define ADC_OFR4_OFFSET4_CH_2 (0x04UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */
  3279. #define ADC_OFR4_OFFSET4_CH_3 (0x08UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */
  3280. #define ADC_OFR4_OFFSET4_CH_4 (0x10UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */
  3281. #define ADC_OFR4_OFFSET4_EN_Pos (31U)
  3282. #define ADC_OFR4_OFFSET4_EN_Msk (0x1UL << ADC_OFR4_OFFSET4_EN_Pos) /*!< 0x80000000 */
  3283. #define ADC_OFR4_OFFSET4_EN ADC_OFR4_OFFSET4_EN_Msk /*!< ADC offset number 4 enable */
  3284. /******************** Bit definition for ADC_JDR1 register ******************/
  3285. #define ADC_JDR1_JDATA_Pos (0U)
  3286. #define ADC_JDR1_JDATA_Msk (0xFFFFUL << ADC_JDR1_JDATA_Pos) /*!< 0x0000FFFF */
  3287. #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC group injected sequencer rank 1 conversion data */
  3288. #define ADC_JDR1_JDATA_0 (0x0001UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */
  3289. #define ADC_JDR1_JDATA_1 (0x0002UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */
  3290. #define ADC_JDR1_JDATA_2 (0x0004UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */
  3291. #define ADC_JDR1_JDATA_3 (0x0008UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */
  3292. #define ADC_JDR1_JDATA_4 (0x0010UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */
  3293. #define ADC_JDR1_JDATA_5 (0x0020UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */
  3294. #define ADC_JDR1_JDATA_6 (0x0040UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */
  3295. #define ADC_JDR1_JDATA_7 (0x0080UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */
  3296. #define ADC_JDR1_JDATA_8 (0x0100UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */
  3297. #define ADC_JDR1_JDATA_9 (0x0200UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */
  3298. #define ADC_JDR1_JDATA_10 (0x0400UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */
  3299. #define ADC_JDR1_JDATA_11 (0x0800UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */
  3300. #define ADC_JDR1_JDATA_12 (0x1000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */
  3301. #define ADC_JDR1_JDATA_13 (0x2000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */
  3302. #define ADC_JDR1_JDATA_14 (0x4000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */
  3303. #define ADC_JDR1_JDATA_15 (0x8000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */
  3304. /******************** Bit definition for ADC_JDR2 register ******************/
  3305. #define ADC_JDR2_JDATA_Pos (0U)
  3306. #define ADC_JDR2_JDATA_Msk (0xFFFFUL << ADC_JDR2_JDATA_Pos) /*!< 0x0000FFFF */
  3307. #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC group injected sequencer rank 2 conversion data */
  3308. #define ADC_JDR2_JDATA_0 (0x0001UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */
  3309. #define ADC_JDR2_JDATA_1 (0x0002UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */
  3310. #define ADC_JDR2_JDATA_2 (0x0004UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */
  3311. #define ADC_JDR2_JDATA_3 (0x0008UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */
  3312. #define ADC_JDR2_JDATA_4 (0x0010UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */
  3313. #define ADC_JDR2_JDATA_5 (0x0020UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */
  3314. #define ADC_JDR2_JDATA_6 (0x0040UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */
  3315. #define ADC_JDR2_JDATA_7 (0x0080UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */
  3316. #define ADC_JDR2_JDATA_8 (0x0100UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */
  3317. #define ADC_JDR2_JDATA_9 (0x0200UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */
  3318. #define ADC_JDR2_JDATA_10 (0x0400UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */
  3319. #define ADC_JDR2_JDATA_11 (0x0800UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */
  3320. #define ADC_JDR2_JDATA_12 (0x1000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */
  3321. #define ADC_JDR2_JDATA_13 (0x2000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */
  3322. #define ADC_JDR2_JDATA_14 (0x4000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */
  3323. #define ADC_JDR2_JDATA_15 (0x8000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */
  3324. /******************** Bit definition for ADC_JDR3 register ******************/
  3325. #define ADC_JDR3_JDATA_Pos (0U)
  3326. #define ADC_JDR3_JDATA_Msk (0xFFFFUL << ADC_JDR3_JDATA_Pos) /*!< 0x0000FFFF */
  3327. #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC group injected sequencer rank 3 conversion data */
  3328. #define ADC_JDR3_JDATA_0 (0x0001UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */
  3329. #define ADC_JDR3_JDATA_1 (0x0002UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */
  3330. #define ADC_JDR3_JDATA_2 (0x0004UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */
  3331. #define ADC_JDR3_JDATA_3 (0x0008UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */
  3332. #define ADC_JDR3_JDATA_4 (0x0010UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */
  3333. #define ADC_JDR3_JDATA_5 (0x0020UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */
  3334. #define ADC_JDR3_JDATA_6 (0x0040UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */
  3335. #define ADC_JDR3_JDATA_7 (0x0080UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */
  3336. #define ADC_JDR3_JDATA_8 (0x0100UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */
  3337. #define ADC_JDR3_JDATA_9 (0x0200UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */
  3338. #define ADC_JDR3_JDATA_10 (0x0400UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */
  3339. #define ADC_JDR3_JDATA_11 (0x0800UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */
  3340. #define ADC_JDR3_JDATA_12 (0x1000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */
  3341. #define ADC_JDR3_JDATA_13 (0x2000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */
  3342. #define ADC_JDR3_JDATA_14 (0x4000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */
  3343. #define ADC_JDR3_JDATA_15 (0x8000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */
  3344. /******************** Bit definition for ADC_JDR4 register ******************/
  3345. #define ADC_JDR4_JDATA_Pos (0U)
  3346. #define ADC_JDR4_JDATA_Msk (0xFFFFUL << ADC_JDR4_JDATA_Pos) /*!< 0x0000FFFF */
  3347. #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC group injected sequencer rank 4 conversion data */
  3348. #define ADC_JDR4_JDATA_0 (0x0001UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */
  3349. #define ADC_JDR4_JDATA_1 (0x0002UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */
  3350. #define ADC_JDR4_JDATA_2 (0x0004UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */
  3351. #define ADC_JDR4_JDATA_3 (0x0008UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */
  3352. #define ADC_JDR4_JDATA_4 (0x0010UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */
  3353. #define ADC_JDR4_JDATA_5 (0x0020UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */
  3354. #define ADC_JDR4_JDATA_6 (0x0040UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */
  3355. #define ADC_JDR4_JDATA_7 (0x0080UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */
  3356. #define ADC_JDR4_JDATA_8 (0x0100UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */
  3357. #define ADC_JDR4_JDATA_9 (0x0200UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */
  3358. #define ADC_JDR4_JDATA_10 (0x0400UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */
  3359. #define ADC_JDR4_JDATA_11 (0x0800UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */
  3360. #define ADC_JDR4_JDATA_12 (0x1000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */
  3361. #define ADC_JDR4_JDATA_13 (0x2000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */
  3362. #define ADC_JDR4_JDATA_14 (0x4000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */
  3363. #define ADC_JDR4_JDATA_15 (0x8000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */
  3364. /******************** Bit definition for ADC_AWD2CR register ****************/
  3365. #define ADC_AWD2CR_AWD2CH_Pos (0U)
  3366. #define ADC_AWD2CR_AWD2CH_Msk (0x7FFFFUL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x0007FFFF */
  3367. #define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC analog watchdog 2 monitored channel selection */
  3368. #define ADC_AWD2CR_AWD2CH_0 (0x00001UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */
  3369. #define ADC_AWD2CR_AWD2CH_1 (0x00002UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */
  3370. #define ADC_AWD2CR_AWD2CH_2 (0x00004UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */
  3371. #define ADC_AWD2CR_AWD2CH_3 (0x00008UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */
  3372. #define ADC_AWD2CR_AWD2CH_4 (0x00010UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */
  3373. #define ADC_AWD2CR_AWD2CH_5 (0x00020UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */
  3374. #define ADC_AWD2CR_AWD2CH_6 (0x00040UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */
  3375. #define ADC_AWD2CR_AWD2CH_7 (0x00080UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */
  3376. #define ADC_AWD2CR_AWD2CH_8 (0x00100UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */
  3377. #define ADC_AWD2CR_AWD2CH_9 (0x00200UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */
  3378. #define ADC_AWD2CR_AWD2CH_10 (0x00400UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */
  3379. #define ADC_AWD2CR_AWD2CH_11 (0x00800UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */
  3380. #define ADC_AWD2CR_AWD2CH_12 (0x01000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */
  3381. #define ADC_AWD2CR_AWD2CH_13 (0x02000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */
  3382. #define ADC_AWD2CR_AWD2CH_14 (0x04000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */
  3383. #define ADC_AWD2CR_AWD2CH_15 (0x08000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */
  3384. #define ADC_AWD2CR_AWD2CH_16 (0x10000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */
  3385. #define ADC_AWD2CR_AWD2CH_17 (0x20000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */
  3386. #define ADC_AWD2CR_AWD2CH_18 (0x40000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */
  3387. /******************** Bit definition for ADC_AWD3CR register ****************/
  3388. #define ADC_AWD3CR_AWD3CH_Pos (0U)
  3389. #define ADC_AWD3CR_AWD3CH_Msk (0x7FFFFUL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x0007FFFF */
  3390. #define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC analog watchdog 3 monitored channel selection */
  3391. #define ADC_AWD3CR_AWD3CH_0 (0x00001UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */
  3392. #define ADC_AWD3CR_AWD3CH_1 (0x00002UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */
  3393. #define ADC_AWD3CR_AWD3CH_2 (0x00004UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */
  3394. #define ADC_AWD3CR_AWD3CH_3 (0x00008UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */
  3395. #define ADC_AWD3CR_AWD3CH_4 (0x00010UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */
  3396. #define ADC_AWD3CR_AWD3CH_5 (0x00020UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */
  3397. #define ADC_AWD3CR_AWD3CH_6 (0x00040UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */
  3398. #define ADC_AWD3CR_AWD3CH_7 (0x00080UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */
  3399. #define ADC_AWD3CR_AWD3CH_8 (0x00100UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */
  3400. #define ADC_AWD3CR_AWD3CH_9 (0x00200UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */
  3401. #define ADC_AWD3CR_AWD3CH_10 (0x00400UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */
  3402. #define ADC_AWD3CR_AWD3CH_11 (0x00800UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */
  3403. #define ADC_AWD3CR_AWD3CH_12 (0x01000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */
  3404. #define ADC_AWD3CR_AWD3CH_13 (0x02000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */
  3405. #define ADC_AWD3CR_AWD3CH_14 (0x04000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */
  3406. #define ADC_AWD3CR_AWD3CH_15 (0x08000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */
  3407. #define ADC_AWD3CR_AWD3CH_16 (0x10000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */
  3408. #define ADC_AWD3CR_AWD3CH_17 (0x20000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */
  3409. #define ADC_AWD3CR_AWD3CH_18 (0x40000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */
  3410. /******************** Bit definition for ADC_DIFSEL register ****************/
  3411. #define ADC_DIFSEL_DIFSEL_Pos (0U)
  3412. #define ADC_DIFSEL_DIFSEL_Msk (0x7FFFFUL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x0007FFFF */
  3413. #define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC channel differential or single-ended mode */
  3414. #define ADC_DIFSEL_DIFSEL_0 (0x00001UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */
  3415. #define ADC_DIFSEL_DIFSEL_1 (0x00002UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */
  3416. #define ADC_DIFSEL_DIFSEL_2 (0x00004UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */
  3417. #define ADC_DIFSEL_DIFSEL_3 (0x00008UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */
  3418. #define ADC_DIFSEL_DIFSEL_4 (0x00010UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */
  3419. #define ADC_DIFSEL_DIFSEL_5 (0x00020UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */
  3420. #define ADC_DIFSEL_DIFSEL_6 (0x00040UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */
  3421. #define ADC_DIFSEL_DIFSEL_7 (0x00080UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */
  3422. #define ADC_DIFSEL_DIFSEL_8 (0x00100UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */
  3423. #define ADC_DIFSEL_DIFSEL_9 (0x00200UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */
  3424. #define ADC_DIFSEL_DIFSEL_10 (0x00400UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */
  3425. #define ADC_DIFSEL_DIFSEL_11 (0x00800UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */
  3426. #define ADC_DIFSEL_DIFSEL_12 (0x01000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */
  3427. #define ADC_DIFSEL_DIFSEL_13 (0x02000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */
  3428. #define ADC_DIFSEL_DIFSEL_14 (0x04000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */
  3429. #define ADC_DIFSEL_DIFSEL_15 (0x08000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */
  3430. #define ADC_DIFSEL_DIFSEL_16 (0x10000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */
  3431. #define ADC_DIFSEL_DIFSEL_17 (0x20000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */
  3432. #define ADC_DIFSEL_DIFSEL_18 (0x40000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */
  3433. /******************** Bit definition for ADC_CALFACT register ***************/
  3434. #define ADC_CALFACT_CALFACT_S_Pos (0U)
  3435. #define ADC_CALFACT_CALFACT_S_Msk (0x7FUL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x0000007F */
  3436. #define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factor in single-ended mode */
  3437. #define ADC_CALFACT_CALFACT_S_0 (0x01UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */
  3438. #define ADC_CALFACT_CALFACT_S_1 (0x02UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */
  3439. #define ADC_CALFACT_CALFACT_S_2 (0x04UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */
  3440. #define ADC_CALFACT_CALFACT_S_3 (0x08UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */
  3441. #define ADC_CALFACT_CALFACT_S_4 (0x10UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */
  3442. #define ADC_CALFACT_CALFACT_S_5 (0x20UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */
  3443. #define ADC_CALFACT_CALFACT_S_6 (0x40UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */
  3444. #define ADC_CALFACT_CALFACT_D_Pos (16U)
  3445. #define ADC_CALFACT_CALFACT_D_Msk (0x7FUL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x007F0000 */
  3446. #define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factor in differential mode */
  3447. #define ADC_CALFACT_CALFACT_D_0 (0x01UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */
  3448. #define ADC_CALFACT_CALFACT_D_1 (0x02UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */
  3449. #define ADC_CALFACT_CALFACT_D_2 (0x04UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */
  3450. #define ADC_CALFACT_CALFACT_D_3 (0x08UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */
  3451. #define ADC_CALFACT_CALFACT_D_4 (0x10UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */
  3452. #define ADC_CALFACT_CALFACT_D_5 (0x20UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */
  3453. #define ADC_CALFACT_CALFACT_D_6 (0x40UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */
  3454. /************************* ADC Common registers *****************************/
  3455. /******************** Bit definition for ADC_CSR register *******************/
  3456. #define ADC_CSR_ADRDY_MST_Pos (0U)
  3457. #define ADC_CSR_ADRDY_MST_Msk (0x1UL << ADC_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
  3458. #define ADC_CSR_ADRDY_MST ADC_CSR_ADRDY_MST_Msk /*!< ADC multimode master ready flag */
  3459. #define ADC_CSR_EOSMP_MST_Pos (1U)
  3460. #define ADC_CSR_EOSMP_MST_Msk (0x1UL << ADC_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */
  3461. #define ADC_CSR_EOSMP_MST ADC_CSR_EOSMP_MST_Msk /*!< ADC multimode master group regular end of sampling flag */
  3462. #define ADC_CSR_EOC_MST_Pos (2U)
  3463. #define ADC_CSR_EOC_MST_Msk (0x1UL << ADC_CSR_EOC_MST_Pos) /*!< 0x00000004 */
  3464. #define ADC_CSR_EOC_MST ADC_CSR_EOC_MST_Msk /*!< ADC multimode master group regular end of unitary conversion flag */
  3465. #define ADC_CSR_EOS_MST_Pos (3U)
  3466. #define ADC_CSR_EOS_MST_Msk (0x1UL << ADC_CSR_EOS_MST_Pos) /*!< 0x00000008 */
  3467. #define ADC_CSR_EOS_MST ADC_CSR_EOS_MST_Msk /*!< ADC multimode master group regular end of sequence conversions flag */
  3468. #define ADC_CSR_OVR_MST_Pos (4U)
  3469. #define ADC_CSR_OVR_MST_Msk (0x1UL << ADC_CSR_OVR_MST_Pos) /*!< 0x00000010 */
  3470. #define ADC_CSR_OVR_MST ADC_CSR_OVR_MST_Msk /*!< ADC multimode master group regular overrun flag */
  3471. #define ADC_CSR_JEOC_MST_Pos (5U)
  3472. #define ADC_CSR_JEOC_MST_Msk (0x1UL << ADC_CSR_JEOC_MST_Pos) /*!< 0x00000020 */
  3473. #define ADC_CSR_JEOC_MST ADC_CSR_JEOC_MST_Msk /*!< ADC multimode master group injected end of unitary conversion flag */
  3474. #define ADC_CSR_JEOS_MST_Pos (6U)
  3475. #define ADC_CSR_JEOS_MST_Msk (0x1UL << ADC_CSR_JEOS_MST_Pos) /*!< 0x00000040 */
  3476. #define ADC_CSR_JEOS_MST ADC_CSR_JEOS_MST_Msk /*!< ADC multimode master group injected end of sequence conversions flag */
  3477. #define ADC_CSR_AWD1_MST_Pos (7U)
  3478. #define ADC_CSR_AWD1_MST_Msk (0x1UL << ADC_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
  3479. #define ADC_CSR_AWD1_MST ADC_CSR_AWD1_MST_Msk /*!< ADC multimode master analog watchdog 1 flag */
  3480. #define ADC_CSR_AWD2_MST_Pos (8U)
  3481. #define ADC_CSR_AWD2_MST_Msk (0x1UL << ADC_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
  3482. #define ADC_CSR_AWD2_MST ADC_CSR_AWD2_MST_Msk /*!< ADC multimode master analog watchdog 2 flag */
  3483. #define ADC_CSR_AWD3_MST_Pos (9U)
  3484. #define ADC_CSR_AWD3_MST_Msk (0x1UL << ADC_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
  3485. #define ADC_CSR_AWD3_MST ADC_CSR_AWD3_MST_Msk /*!< ADC multimode master analog watchdog 3 flag */
  3486. #define ADC_CSR_JQOVF_MST_Pos (10U)
  3487. #define ADC_CSR_JQOVF_MST_Msk (0x1UL << ADC_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
  3488. #define ADC_CSR_JQOVF_MST ADC_CSR_JQOVF_MST_Msk /*!< ADC multimode master group injected contexts queue overflow flag */
  3489. #define ADC_CSR_ADRDY_SLV_Pos (16U)
  3490. #define ADC_CSR_ADRDY_SLV_Msk (0x1UL << ADC_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
  3491. #define ADC_CSR_ADRDY_SLV ADC_CSR_ADRDY_SLV_Msk /*!< ADC multimode slave ready flag */
  3492. #define ADC_CSR_EOSMP_SLV_Pos (17U)
  3493. #define ADC_CSR_EOSMP_SLV_Msk (0x1UL << ADC_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */
  3494. #define ADC_CSR_EOSMP_SLV ADC_CSR_EOSMP_SLV_Msk /*!< ADC multimode slave group regular end of sampling flag */
  3495. #define ADC_CSR_EOC_SLV_Pos (18U)
  3496. #define ADC_CSR_EOC_SLV_Msk (0x1UL << ADC_CSR_EOC_SLV_Pos) /*!< 0x00040000 */
  3497. #define ADC_CSR_EOC_SLV ADC_CSR_EOC_SLV_Msk /*!< ADC multimode slave group regular end of unitary conversion flag */
  3498. #define ADC_CSR_EOS_SLV_Pos (19U)
  3499. #define ADC_CSR_EOS_SLV_Msk (0x1UL << ADC_CSR_EOS_SLV_Pos) /*!< 0x00080000 */
  3500. #define ADC_CSR_EOS_SLV ADC_CSR_EOS_SLV_Msk /*!< ADC multimode slave group regular end of sequence conversions flag */
  3501. #define ADC_CSR_OVR_SLV_Pos (20U)
  3502. #define ADC_CSR_OVR_SLV_Msk (0x1UL << ADC_CSR_OVR_SLV_Pos) /*!< 0x00100000 */
  3503. #define ADC_CSR_OVR_SLV ADC_CSR_OVR_SLV_Msk /*!< ADC multimode slave group regular overrun flag */
  3504. #define ADC_CSR_JEOC_SLV_Pos (21U)
  3505. #define ADC_CSR_JEOC_SLV_Msk (0x1UL << ADC_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */
  3506. #define ADC_CSR_JEOC_SLV ADC_CSR_JEOC_SLV_Msk /*!< ADC multimode slave group injected end of unitary conversion flag */
  3507. #define ADC_CSR_JEOS_SLV_Pos (22U)
  3508. #define ADC_CSR_JEOS_SLV_Msk (0x1UL << ADC_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */
  3509. #define ADC_CSR_JEOS_SLV ADC_CSR_JEOS_SLV_Msk /*!< ADC multimode slave group injected end of sequence conversions flag */
  3510. #define ADC_CSR_AWD1_SLV_Pos (23U)
  3511. #define ADC_CSR_AWD1_SLV_Msk (0x1UL << ADC_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
  3512. #define ADC_CSR_AWD1_SLV ADC_CSR_AWD1_SLV_Msk /*!< ADC multimode slave analog watchdog 1 flag */
  3513. #define ADC_CSR_AWD2_SLV_Pos (24U)
  3514. #define ADC_CSR_AWD2_SLV_Msk (0x1UL << ADC_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
  3515. #define ADC_CSR_AWD2_SLV ADC_CSR_AWD2_SLV_Msk /*!< ADC multimode slave analog watchdog 2 flag */
  3516. #define ADC_CSR_AWD3_SLV_Pos (25U)
  3517. #define ADC_CSR_AWD3_SLV_Msk (0x1UL << ADC_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
  3518. #define ADC_CSR_AWD3_SLV ADC_CSR_AWD3_SLV_Msk /*!< ADC multimode slave analog watchdog 3 flag */
  3519. #define ADC_CSR_JQOVF_SLV_Pos (26U)
  3520. #define ADC_CSR_JQOVF_SLV_Msk (0x1UL << ADC_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
  3521. #define ADC_CSR_JQOVF_SLV ADC_CSR_JQOVF_SLV_Msk /*!< ADC multimode slave group injected contexts queue overflow flag */
  3522. /******************** Bit definition for ADC_CCR register *******************/
  3523. #define ADC_CCR_DUAL_Pos (0U)
  3524. #define ADC_CCR_DUAL_Msk (0x1FUL << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */
  3525. #define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< ADC multimode mode selection */
  3526. #define ADC_CCR_DUAL_0 (0x01UL << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */
  3527. #define ADC_CCR_DUAL_1 (0x02UL << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */
  3528. #define ADC_CCR_DUAL_2 (0x04UL << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */
  3529. #define ADC_CCR_DUAL_3 (0x08UL << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */
  3530. #define ADC_CCR_DUAL_4 (0x10UL << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */
  3531. #define ADC_CCR_DELAY_Pos (8U)
  3532. #define ADC_CCR_DELAY_Msk (0xFUL << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */
  3533. #define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< ADC multimode delay between 2 sampling phases */
  3534. #define ADC_CCR_DELAY_0 (0x1UL << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */
  3535. #define ADC_CCR_DELAY_1 (0x2UL << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */
  3536. #define ADC_CCR_DELAY_2 (0x4UL << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */
  3537. #define ADC_CCR_DELAY_3 (0x8UL << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */
  3538. #define ADC_CCR_DMACFG_Pos (13U)
  3539. #define ADC_CCR_DMACFG_Msk (0x1UL << ADC_CCR_DMACFG_Pos) /*!< 0x00002000 */
  3540. #define ADC_CCR_DMACFG ADC_CCR_DMACFG_Msk /*!< ADC multimode DMA transfer configuration */
  3541. #define ADC_CCR_MDMA_Pos (14U)
  3542. #define ADC_CCR_MDMA_Msk (0x3UL << ADC_CCR_MDMA_Pos) /*!< 0x0000C000 */
  3543. #define ADC_CCR_MDMA ADC_CCR_MDMA_Msk /*!< ADC multimode DMA transfer enable */
  3544. #define ADC_CCR_MDMA_0 (0x1UL << ADC_CCR_MDMA_Pos) /*!< 0x00004000 */
  3545. #define ADC_CCR_MDMA_1 (0x2UL << ADC_CCR_MDMA_Pos) /*!< 0x00008000 */
  3546. #define ADC_CCR_CKMODE_Pos (16U)
  3547. #define ADC_CCR_CKMODE_Msk (0x3UL << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */
  3548. #define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC common clock source and prescaler (prescaler only for clock source synchronous) */
  3549. #define ADC_CCR_CKMODE_0 (0x1UL << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */
  3550. #define ADC_CCR_CKMODE_1 (0x2UL << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */
  3551. #define ADC_CCR_PRESC_Pos (18U)
  3552. #define ADC_CCR_PRESC_Msk (0xFUL << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */
  3553. #define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC common clock prescaler, only for clock source asynchronous */
  3554. #define ADC_CCR_PRESC_0 (0x1UL << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */
  3555. #define ADC_CCR_PRESC_1 (0x2UL << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */
  3556. #define ADC_CCR_PRESC_2 (0x4UL << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */
  3557. #define ADC_CCR_PRESC_3 (0x8UL << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */
  3558. #define ADC_CCR_VREFEN_Pos (22U)
  3559. #define ADC_CCR_VREFEN_Msk (0x1UL << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  3560. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< ADC internal path to VrefInt enable */
  3561. #define ADC_CCR_TSEN_Pos (23U)
  3562. #define ADC_CCR_TSEN_Msk (0x1UL << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  3563. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< ADC internal path to temperature sensor enable */
  3564. #define ADC_CCR_VBATEN_Pos (24U)
  3565. #define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  3566. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
  3567. /******************** Bit definition for ADC_CDR register *******************/
  3568. #define ADC_CDR_RDATA_MST_Pos (0U)
  3569. #define ADC_CDR_RDATA_MST_Msk (0xFFFFUL << ADC_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
  3570. #define ADC_CDR_RDATA_MST ADC_CDR_RDATA_MST_Msk /*!< ADC multimode master group regular conversion data */
  3571. #define ADC_CDR_RDATA_MST_0 (0x0001UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000001 */
  3572. #define ADC_CDR_RDATA_MST_1 (0x0002UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000002 */
  3573. #define ADC_CDR_RDATA_MST_2 (0x0004UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000004 */
  3574. #define ADC_CDR_RDATA_MST_3 (0x0008UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000008 */
  3575. #define ADC_CDR_RDATA_MST_4 (0x0010UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000010 */
  3576. #define ADC_CDR_RDATA_MST_5 (0x0020UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000020 */
  3577. #define ADC_CDR_RDATA_MST_6 (0x0040UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000040 */
  3578. #define ADC_CDR_RDATA_MST_7 (0x0080UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000080 */
  3579. #define ADC_CDR_RDATA_MST_8 (0x0100UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000100 */
  3580. #define ADC_CDR_RDATA_MST_9 (0x0200UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000200 */
  3581. #define ADC_CDR_RDATA_MST_10 (0x0400UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000400 */
  3582. #define ADC_CDR_RDATA_MST_11 (0x0800UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000800 */
  3583. #define ADC_CDR_RDATA_MST_12 (0x1000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00001000 */
  3584. #define ADC_CDR_RDATA_MST_13 (0x2000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00002000 */
  3585. #define ADC_CDR_RDATA_MST_14 (0x4000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00004000 */
  3586. #define ADC_CDR_RDATA_MST_15 (0x8000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00008000 */
  3587. #define ADC_CDR_RDATA_SLV_Pos (16U)
  3588. #define ADC_CDR_RDATA_SLV_Msk (0xFFFFUL << ADC_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
  3589. #define ADC_CDR_RDATA_SLV ADC_CDR_RDATA_SLV_Msk /*!< ADC multimode slave group regular conversion data */
  3590. #define ADC_CDR_RDATA_SLV_0 (0x0001UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00010000 */
  3591. #define ADC_CDR_RDATA_SLV_1 (0x0002UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00020000 */
  3592. #define ADC_CDR_RDATA_SLV_2 (0x0004UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00040000 */
  3593. #define ADC_CDR_RDATA_SLV_3 (0x0008UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00080000 */
  3594. #define ADC_CDR_RDATA_SLV_4 (0x0010UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00100000 */
  3595. #define ADC_CDR_RDATA_SLV_5 (0x0020UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00200000 */
  3596. #define ADC_CDR_RDATA_SLV_6 (0x0040UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00400000 */
  3597. #define ADC_CDR_RDATA_SLV_7 (0x0080UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00800000 */
  3598. #define ADC_CDR_RDATA_SLV_8 (0x0100UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x01000000 */
  3599. #define ADC_CDR_RDATA_SLV_9 (0x0200UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x02000000 */
  3600. #define ADC_CDR_RDATA_SLV_10 (0x0400UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x04000000 */
  3601. #define ADC_CDR_RDATA_SLV_11 (0x0800UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x08000000 */
  3602. #define ADC_CDR_RDATA_SLV_12 (0x1000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x10000000 */
  3603. #define ADC_CDR_RDATA_SLV_13 (0x2000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x20000000 */
  3604. #define ADC_CDR_RDATA_SLV_14 (0x4000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x40000000 */
  3605. #define ADC_CDR_RDATA_SLV_15 (0x8000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x80000000 */
  3606. /******************************************************************************/
  3607. /* */
  3608. /* CRC calculation unit */
  3609. /* */
  3610. /******************************************************************************/
  3611. /******************* Bit definition for CRC_DR register *********************/
  3612. #define CRC_DR_DR_Pos (0U)
  3613. #define CRC_DR_DR_Msk (0xFFFFFFFFUL << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  3614. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  3615. /******************* Bit definition for CRC_IDR register ********************/
  3616. #define CRC_IDR_IDR_Pos (0U)
  3617. #define CRC_IDR_IDR_Msk (0xFFFFFFFFUL << CRC_IDR_IDR_Pos) /*!< 0xFFFFFFFF */
  3618. #define CRC_IDR_IDR CRC_IDR_IDR_Msk /*!< General-purpose 32-bits data register bits */
  3619. /******************** Bit definition for CRC_CR register ********************/
  3620. #define CRC_CR_RESET_Pos (0U)
  3621. #define CRC_CR_RESET_Msk (0x1UL << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  3622. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  3623. #define CRC_CR_POLYSIZE_Pos (3U)
  3624. #define CRC_CR_POLYSIZE_Msk (0x3UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  3625. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  3626. #define CRC_CR_POLYSIZE_0 (0x1UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  3627. #define CRC_CR_POLYSIZE_1 (0x2UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  3628. #define CRC_CR_REV_IN_Pos (5U)
  3629. #define CRC_CR_REV_IN_Msk (0x3UL << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  3630. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  3631. #define CRC_CR_REV_IN_0 (0x1UL << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  3632. #define CRC_CR_REV_IN_1 (0x2UL << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  3633. #define CRC_CR_REV_OUT_Pos (7U)
  3634. #define CRC_CR_REV_OUT_Msk (0x1UL << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  3635. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  3636. /******************* Bit definition for CRC_INIT register *******************/
  3637. #define CRC_INIT_INIT_Pos (0U)
  3638. #define CRC_INIT_INIT_Msk (0xFFFFFFFFUL << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  3639. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  3640. /******************* Bit definition for CRC_POL register ********************/
  3641. #define CRC_POL_POL_Pos (0U)
  3642. #define CRC_POL_POL_Msk (0xFFFFFFFFUL << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  3643. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  3644. /******************************************************************************/
  3645. /* */
  3646. /* CRS Clock Recovery System */
  3647. /******************************************************************************/
  3648. /******************* Bit definition for CRS_CR register *********************/
  3649. #define CRS_CR_SYNCOKIE_Pos (0U)
  3650. #define CRS_CR_SYNCOKIE_Msk (0x1UL << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */
  3651. #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /*!< SYNC event OK interrupt enable */
  3652. #define CRS_CR_SYNCWARNIE_Pos (1U)
  3653. #define CRS_CR_SYNCWARNIE_Msk (0x1UL << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */
  3654. #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /*!< SYNC warning interrupt enable */
  3655. #define CRS_CR_ERRIE_Pos (2U)
  3656. #define CRS_CR_ERRIE_Msk (0x1UL << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */
  3657. #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /*!< SYNC error or trimming error interrupt enable */
  3658. #define CRS_CR_ESYNCIE_Pos (3U)
  3659. #define CRS_CR_ESYNCIE_Msk (0x1UL << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */
  3660. #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /*!< Expected SYNC interrupt enable */
  3661. #define CRS_CR_CEN_Pos (5U)
  3662. #define CRS_CR_CEN_Msk (0x1UL << CRS_CR_CEN_Pos) /*!< 0x00000020 */
  3663. #define CRS_CR_CEN CRS_CR_CEN_Msk /*!< Frequency error counter enable */
  3664. #define CRS_CR_AUTOTRIMEN_Pos (6U)
  3665. #define CRS_CR_AUTOTRIMEN_Msk (0x1UL << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */
  3666. #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /*!< Automatic trimming enable */
  3667. #define CRS_CR_SWSYNC_Pos (7U)
  3668. #define CRS_CR_SWSYNC_Msk (0x1UL << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */
  3669. #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /*!< Generate software SYNC event */
  3670. #define CRS_CR_TRIM_Pos (8U)
  3671. #define CRS_CR_TRIM_Msk (0x7FUL << CRS_CR_TRIM_Pos) /*!< 0x00007F00 */
  3672. #define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< HSI48 oscillator smooth trimming */
  3673. /******************* Bit definition for CRS_CFGR register *********************/
  3674. #define CRS_CFGR_RELOAD_Pos (0U)
  3675. #define CRS_CFGR_RELOAD_Msk (0xFFFFUL << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */
  3676. #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /*!< Counter reload value */
  3677. #define CRS_CFGR_FELIM_Pos (16U)
  3678. #define CRS_CFGR_FELIM_Msk (0xFFUL << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */
  3679. #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /*!< Frequency error limit */
  3680. #define CRS_CFGR_SYNCDIV_Pos (24U)
  3681. #define CRS_CFGR_SYNCDIV_Msk (0x7UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */
  3682. #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /*!< SYNC divider */
  3683. #define CRS_CFGR_SYNCDIV_0 (0x1UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */
  3684. #define CRS_CFGR_SYNCDIV_1 (0x2UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */
  3685. #define CRS_CFGR_SYNCDIV_2 (0x4UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */
  3686. #define CRS_CFGR_SYNCSRC_Pos (28U)
  3687. #define CRS_CFGR_SYNCSRC_Msk (0x3UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */
  3688. #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /*!< SYNC signal source selection */
  3689. #define CRS_CFGR_SYNCSRC_0 (0x1UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */
  3690. #define CRS_CFGR_SYNCSRC_1 (0x2UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */
  3691. #define CRS_CFGR_SYNCPOL_Pos (31U)
  3692. #define CRS_CFGR_SYNCPOL_Msk (0x1UL << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */
  3693. #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /*!< SYNC polarity selection */
  3694. /******************* Bit definition for CRS_ISR register *********************/
  3695. #define CRS_ISR_SYNCOKF_Pos (0U)
  3696. #define CRS_ISR_SYNCOKF_Msk (0x1UL << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */
  3697. #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /*!< SYNC event OK flag */
  3698. #define CRS_ISR_SYNCWARNF_Pos (1U)
  3699. #define CRS_ISR_SYNCWARNF_Msk (0x1UL << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */
  3700. #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /*!< SYNC warning flag */
  3701. #define CRS_ISR_ERRF_Pos (2U)
  3702. #define CRS_ISR_ERRF_Msk (0x1UL << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */
  3703. #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /*!< Error flag */
  3704. #define CRS_ISR_ESYNCF_Pos (3U)
  3705. #define CRS_ISR_ESYNCF_Msk (0x1UL << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */
  3706. #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /*!< Expected SYNC flag */
  3707. #define CRS_ISR_SYNCERR_Pos (8U)
  3708. #define CRS_ISR_SYNCERR_Msk (0x1UL << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */
  3709. #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /*!< SYNC error */
  3710. #define CRS_ISR_SYNCMISS_Pos (9U)
  3711. #define CRS_ISR_SYNCMISS_Msk (0x1UL << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */
  3712. #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /*!< SYNC missed */
  3713. #define CRS_ISR_TRIMOVF_Pos (10U)
  3714. #define CRS_ISR_TRIMOVF_Msk (0x1UL << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */
  3715. #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /*!< Trimming overflow or underflow */
  3716. #define CRS_ISR_FEDIR_Pos (15U)
  3717. #define CRS_ISR_FEDIR_Msk (0x1UL << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */
  3718. #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /*!< Frequency error direction */
  3719. #define CRS_ISR_FECAP_Pos (16U)
  3720. #define CRS_ISR_FECAP_Msk (0xFFFFUL << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */
  3721. #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /*!< Frequency error capture */
  3722. /******************* Bit definition for CRS_ICR register *********************/
  3723. #define CRS_ICR_SYNCOKC_Pos (0U)
  3724. #define CRS_ICR_SYNCOKC_Msk (0x1UL << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */
  3725. #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /*!< SYNC event OK clear flag */
  3726. #define CRS_ICR_SYNCWARNC_Pos (1U)
  3727. #define CRS_ICR_SYNCWARNC_Msk (0x1UL << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */
  3728. #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /*!< SYNC warning clear flag */
  3729. #define CRS_ICR_ERRC_Pos (2U)
  3730. #define CRS_ICR_ERRC_Msk (0x1UL << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */
  3731. #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /*!< Error clear flag */
  3732. #define CRS_ICR_ESYNCC_Pos (3U)
  3733. #define CRS_ICR_ESYNCC_Msk (0x1UL << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */
  3734. #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /*!< Expected SYNC clear flag */
  3735. /******************************************************************************/
  3736. /* */
  3737. /* Advanced Encryption Standard (AES) */
  3738. /* */
  3739. /******************************************************************************/
  3740. /******************* Bit definition for AES_CR register *********************/
  3741. #define AES_CR_EN_Pos (0U)
  3742. #define AES_CR_EN_Msk (0x1UL << AES_CR_EN_Pos) /*!< 0x00000001 */
  3743. #define AES_CR_EN AES_CR_EN_Msk /*!< AES Enable */
  3744. #define AES_CR_DATATYPE_Pos (1U)
  3745. #define AES_CR_DATATYPE_Msk (0x3UL << AES_CR_DATATYPE_Pos) /*!< 0x00000006 */
  3746. #define AES_CR_DATATYPE AES_CR_DATATYPE_Msk /*!< Data type selection */
  3747. #define AES_CR_DATATYPE_0 (0x1UL << AES_CR_DATATYPE_Pos) /*!< 0x00000002 */
  3748. #define AES_CR_DATATYPE_1 (0x2UL << AES_CR_DATATYPE_Pos) /*!< 0x00000004 */
  3749. #define AES_CR_MODE_Pos (3U)
  3750. #define AES_CR_MODE_Msk (0x3UL << AES_CR_MODE_Pos) /*!< 0x00000018 */
  3751. #define AES_CR_MODE AES_CR_MODE_Msk /*!< AES Mode Of Operation */
  3752. #define AES_CR_MODE_0 (0x1UL << AES_CR_MODE_Pos) /*!< 0x00000008 */
  3753. #define AES_CR_MODE_1 (0x2UL << AES_CR_MODE_Pos) /*!< 0x00000010 */
  3754. #define AES_CR_CHMOD_Pos (5U)
  3755. #define AES_CR_CHMOD_Msk (0x803UL << AES_CR_CHMOD_Pos) /*!< 0x00010060 */
  3756. #define AES_CR_CHMOD AES_CR_CHMOD_Msk /*!< AES Chaining Mode */
  3757. #define AES_CR_CHMOD_0 (0x001UL << AES_CR_CHMOD_Pos) /*!< 0x00000020 */
  3758. #define AES_CR_CHMOD_1 (0x002UL << AES_CR_CHMOD_Pos) /*!< 0x00000040 */
  3759. #define AES_CR_CHMOD_2 (0x800UL << AES_CR_CHMOD_Pos) /*!< 0x00010000 */
  3760. #define AES_CR_CCFC_Pos (7U)
  3761. #define AES_CR_CCFC_Msk (0x1UL << AES_CR_CCFC_Pos) /*!< 0x00000080 */
  3762. #define AES_CR_CCFC AES_CR_CCFC_Msk /*!< Computation Complete Flag Clear */
  3763. #define AES_CR_ERRC_Pos (8U)
  3764. #define AES_CR_ERRC_Msk (0x1UL << AES_CR_ERRC_Pos) /*!< 0x00000100 */
  3765. #define AES_CR_ERRC AES_CR_ERRC_Msk /*!< Error Clear */
  3766. #define AES_CR_CCFIE_Pos (9U)
  3767. #define AES_CR_CCFIE_Msk (0x1UL << AES_CR_CCFIE_Pos) /*!< 0x00000200 */
  3768. #define AES_CR_CCFIE AES_CR_CCFIE_Msk /*!< Computation Complete Flag Interrupt Enable */
  3769. #define AES_CR_ERRIE_Pos (10U)
  3770. #define AES_CR_ERRIE_Msk (0x1UL << AES_CR_ERRIE_Pos) /*!< 0x00000400 */
  3771. #define AES_CR_ERRIE AES_CR_ERRIE_Msk /*!< Error Interrupt Enable */
  3772. #define AES_CR_DMAINEN_Pos (11U)
  3773. #define AES_CR_DMAINEN_Msk (0x1UL << AES_CR_DMAINEN_Pos) /*!< 0x00000800 */
  3774. #define AES_CR_DMAINEN AES_CR_DMAINEN_Msk /*!< Enable data input phase DMA management */
  3775. #define AES_CR_DMAOUTEN_Pos (12U)
  3776. #define AES_CR_DMAOUTEN_Msk (0x1UL << AES_CR_DMAOUTEN_Pos) /*!< 0x00001000 */
  3777. #define AES_CR_DMAOUTEN AES_CR_DMAOUTEN_Msk /*!< Enable data output phase DMA management */
  3778. #define AES_CR_GCMPH_Pos (13U)
  3779. #define AES_CR_GCMPH_Msk (0x3UL << AES_CR_GCMPH_Pos) /*!< 0x00006000 */
  3780. #define AES_CR_GCMPH AES_CR_GCMPH_Msk /*!< GCM Phase */
  3781. #define AES_CR_GCMPH_0 (0x1UL << AES_CR_GCMPH_Pos) /*!< 0x00002000 */
  3782. #define AES_CR_GCMPH_1 (0x2UL << AES_CR_GCMPH_Pos) /*!< 0x00004000 */
  3783. #define AES_CR_KEYSIZE_Pos (18U)
  3784. #define AES_CR_KEYSIZE_Msk (0x1UL << AES_CR_KEYSIZE_Pos) /*!< 0x00040000 */
  3785. #define AES_CR_KEYSIZE AES_CR_KEYSIZE_Msk /*!< Key size selection */
  3786. #define AES_CR_NPBLB_Pos (20U)
  3787. #define AES_CR_NPBLB_Msk (0xFUL << AES_CR_NPBLB_Pos) /*!< 0x00F00000 */
  3788. #define AES_CR_NPBLB AES_CR_NPBLB_Msk /*!< Number of padding bytes in payload last block */
  3789. #define AES_CR_NPBLB_0 (0x1UL << AES_CR_NPBLB_Pos) /*!< 0x00100000 */
  3790. #define AES_CR_NPBLB_1 (0x2UL << AES_CR_NPBLB_Pos) /*!< 0x00200000 */
  3791. #define AES_CR_NPBLB_2 (0x4UL << AES_CR_NPBLB_Pos) /*!< 0x00400000 */
  3792. #define AES_CR_NPBLB_3 (0x8UL << AES_CR_NPBLB_Pos) /*!< 0x00800000 */
  3793. /******************* Bit definition for AES_SR register *********************/
  3794. #define AES_SR_CCF_Pos (0U)
  3795. #define AES_SR_CCF_Msk (0x1UL << AES_SR_CCF_Pos) /*!< 0x00000001 */
  3796. #define AES_SR_CCF AES_SR_CCF_Msk /*!< Computation Complete Flag */
  3797. #define AES_SR_RDERR_Pos (1U)
  3798. #define AES_SR_RDERR_Msk (0x1UL << AES_SR_RDERR_Pos) /*!< 0x00000002 */
  3799. #define AES_SR_RDERR AES_SR_RDERR_Msk /*!< Read Error Flag */
  3800. #define AES_SR_WRERR_Pos (2U)
  3801. #define AES_SR_WRERR_Msk (0x1UL << AES_SR_WRERR_Pos) /*!< 0x00000004 */
  3802. #define AES_SR_WRERR AES_SR_WRERR_Msk /*!< Write Error Flag */
  3803. #define AES_SR_BUSY_Pos (3U)
  3804. #define AES_SR_BUSY_Msk (0x1UL << AES_SR_BUSY_Pos) /*!< 0x00000008 */
  3805. #define AES_SR_BUSY AES_SR_BUSY_Msk /*!< Busy Flag */
  3806. /******************* Bit definition for AES_DINR register *******************/
  3807. #define AES_DINR_Pos (0U)
  3808. #define AES_DINR_Msk (0xFFFFFFFFUL << AES_DINR_Pos) /*!< 0xFFFFFFFF */
  3809. #define AES_DINR AES_DINR_Msk /*!< AES Data Input Register */
  3810. /******************* Bit definition for AES_DOUTR register ******************/
  3811. #define AES_DOUTR_Pos (0U)
  3812. #define AES_DOUTR_Msk (0xFFFFFFFFUL << AES_DOUTR_Pos) /*!< 0xFFFFFFFF */
  3813. #define AES_DOUTR AES_DOUTR_Msk /*!< AES Data Output Register */
  3814. /******************* Bit definition for AES_KEYR0 register ******************/
  3815. #define AES_KEYR0_Pos (0U)
  3816. #define AES_KEYR0_Msk (0xFFFFFFFFUL << AES_KEYR0_Pos) /*!< 0xFFFFFFFF */
  3817. #define AES_KEYR0 AES_KEYR0_Msk /*!< AES Key Register 0 */
  3818. /******************* Bit definition for AES_KEYR1 register ******************/
  3819. #define AES_KEYR1_Pos (0U)
  3820. #define AES_KEYR1_Msk (0xFFFFFFFFUL << AES_KEYR1_Pos) /*!< 0xFFFFFFFF */
  3821. #define AES_KEYR1 AES_KEYR1_Msk /*!< AES Key Register 1 */
  3822. /******************* Bit definition for AES_KEYR2 register ******************/
  3823. #define AES_KEYR2_Pos (0U)
  3824. #define AES_KEYR2_Msk (0xFFFFFFFFUL << AES_KEYR2_Pos) /*!< 0xFFFFFFFF */
  3825. #define AES_KEYR2 AES_KEYR2_Msk /*!< AES Key Register 2 */
  3826. /******************* Bit definition for AES_KEYR3 register ******************/
  3827. #define AES_KEYR3_Pos (0U)
  3828. #define AES_KEYR3_Msk (0xFFFFFFFFUL << AES_KEYR3_Pos) /*!< 0xFFFFFFFF */
  3829. #define AES_KEYR3 AES_KEYR3_Msk /*!< AES Key Register 3 */
  3830. /******************* Bit definition for AES_KEYR4 register ******************/
  3831. #define AES_KEYR4_Pos (0U)
  3832. #define AES_KEYR4_Msk (0xFFFFFFFFUL << AES_KEYR4_Pos) /*!< 0xFFFFFFFF */
  3833. #define AES_KEYR4 AES_KEYR4_Msk /*!< AES Key Register 4 */
  3834. /******************* Bit definition for AES_KEYR5 register ******************/
  3835. #define AES_KEYR5_Pos (0U)
  3836. #define AES_KEYR5_Msk (0xFFFFFFFFUL << AES_KEYR5_Pos) /*!< 0xFFFFFFFF */
  3837. #define AES_KEYR5 AES_KEYR5_Msk /*!< AES Key Register 5 */
  3838. /******************* Bit definition for AES_KEYR6 register ******************/
  3839. #define AES_KEYR6_Pos (0U)
  3840. #define AES_KEYR6_Msk (0xFFFFFFFFUL << AES_KEYR6_Pos) /*!< 0xFFFFFFFF */
  3841. #define AES_KEYR6 AES_KEYR6_Msk /*!< AES Key Register 6 */
  3842. /******************* Bit definition for AES_KEYR7 register ******************/
  3843. #define AES_KEYR7_Pos (0U)
  3844. #define AES_KEYR7_Msk (0xFFFFFFFFUL << AES_KEYR7_Pos) /*!< 0xFFFFFFFF */
  3845. #define AES_KEYR7 AES_KEYR7_Msk /*!< AES Key Register 7 */
  3846. /******************* Bit definition for AES_IVR0 register ******************/
  3847. #define AES_IVR0_Pos (0U)
  3848. #define AES_IVR0_Msk (0xFFFFFFFFUL << AES_IVR0_Pos) /*!< 0xFFFFFFFF */
  3849. #define AES_IVR0 AES_IVR0_Msk /*!< AES Initialization Vector Register 0 */
  3850. /******************* Bit definition for AES_IVR1 register ******************/
  3851. #define AES_IVR1_Pos (0U)
  3852. #define AES_IVR1_Msk (0xFFFFFFFFUL << AES_IVR1_Pos) /*!< 0xFFFFFFFF */
  3853. #define AES_IVR1 AES_IVR1_Msk /*!< AES Initialization Vector Register 1 */
  3854. /******************* Bit definition for AES_IVR2 register ******************/
  3855. #define AES_IVR2_Pos (0U)
  3856. #define AES_IVR2_Msk (0xFFFFFFFFUL << AES_IVR2_Pos) /*!< 0xFFFFFFFF */
  3857. #define AES_IVR2 AES_IVR2_Msk /*!< AES Initialization Vector Register 2 */
  3858. /******************* Bit definition for AES_IVR3 register ******************/
  3859. #define AES_IVR3_Pos (0U)
  3860. #define AES_IVR3_Msk (0xFFFFFFFFUL << AES_IVR3_Pos) /*!< 0xFFFFFFFF */
  3861. #define AES_IVR3 AES_IVR3_Msk /*!< AES Initialization Vector Register 3 */
  3862. /******************* Bit definition for AES_SUSP0R register ******************/
  3863. #define AES_SUSP0R_Pos (0U)
  3864. #define AES_SUSP0R_Msk (0xFFFFFFFFUL << AES_SUSP0R_Pos) /*!< 0xFFFFFFFF */
  3865. #define AES_SUSP0R AES_SUSP0R_Msk /*!< AES Suspend registers 0 */
  3866. /******************* Bit definition for AES_SUSP1R register ******************/
  3867. #define AES_SUSP1R_Pos (0U)
  3868. #define AES_SUSP1R_Msk (0xFFFFFFFFUL << AES_SUSP1R_Pos) /*!< 0xFFFFFFFF */
  3869. #define AES_SUSP1R AES_SUSP1R_Msk /*!< AES Suspend registers 1 */
  3870. /******************* Bit definition for AES_SUSP2R register ******************/
  3871. #define AES_SUSP2R_Pos (0U)
  3872. #define AES_SUSP2R_Msk (0xFFFFFFFFUL << AES_SUSP2R_Pos) /*!< 0xFFFFFFFF */
  3873. #define AES_SUSP2R AES_SUSP2R_Msk /*!< AES Suspend registers 2 */
  3874. /******************* Bit definition for AES_SUSP3R register ******************/
  3875. #define AES_SUSP3R_Pos (0U)
  3876. #define AES_SUSP3R_Msk (0xFFFFFFFFUL << AES_SUSP3R_Pos) /*!< 0xFFFFFFFF */
  3877. #define AES_SUSP3R AES_SUSP3R_Msk /*!< AES Suspend registers 3 */
  3878. /******************* Bit definition for AES_SUSP4R register ******************/
  3879. #define AES_SUSP4R_Pos (0U)
  3880. #define AES_SUSP4R_Msk (0xFFFFFFFFUL << AES_SUSP4R_Pos) /*!< 0xFFFFFFFF */
  3881. #define AES_SUSP4R AES_SUSP4R_Msk /*!< AES Suspend registers 4 */
  3882. /******************* Bit definition for AES_SUSP5R register ******************/
  3883. #define AES_SUSP5R_Pos (0U)
  3884. #define AES_SUSP5R_Msk (0xFFFFFFFFUL << AES_SUSP5R_Pos) /*!< 0xFFFFFFFF */
  3885. #define AES_SUSP5R AES_SUSP5R_Msk /*!< AES Suspend registers 5 */
  3886. /******************* Bit definition for AES_SUSP6R register ******************/
  3887. #define AES_SUSP6R_Pos (0U)
  3888. #define AES_SUSP6R_Msk (0xFFFFFFFFUL << AES_SUSP6R_Pos) /*!< 0xFFFFFFFF */
  3889. #define AES_SUSP6R AES_SUSP6R_Msk /*!< AES Suspend registers 6 */
  3890. /******************* Bit definition for AES_SUSP7R register ******************/
  3891. #define AES_SUSP7R_Pos (0U)
  3892. #define AES_SUSP7R_Msk (0xFFFFFFFFUL << AES_SUSP7R_Pos) /*!< 0xFFFFFFFF */
  3893. #define AES_SUSP7R AES_SUSP7R_Msk /*!< AES Suspend registers 7 */
  3894. /******************************************************************************/
  3895. /* */
  3896. /* Digital to Analog Converter */
  3897. /* */
  3898. /******************************************************************************/
  3899. /*
  3900. * @brief Specific device feature definitions
  3901. */
  3902. #define DAC_CHANNEL2_SUPPORT /*!< DAC feature available only on specific devices: DAC channel 2 available */
  3903. /******************** Bit definition for DAC_CR register ********************/
  3904. #define DAC_CR_EN1_Pos (0U)
  3905. #define DAC_CR_EN1_Msk (0x1UL << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  3906. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!<DAC channel1 enable */
  3907. #define DAC_CR_TEN1_Pos (1U)
  3908. #define DAC_CR_TEN1_Msk (0x1UL << DAC_CR_TEN1_Pos) /*!< 0x00000002 */
  3909. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!<DAC channel1 Trigger enable */
  3910. #define DAC_CR_TSEL1_Pos (2U)
  3911. #define DAC_CR_TSEL1_Msk (0xFUL << DAC_CR_TSEL1_Pos) /*!< 0x0000003C */
  3912. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!<TSEL1[3:0] (DAC channel1 Trigger selection) */
  3913. #define DAC_CR_TSEL1_0 (0x1UL << DAC_CR_TSEL1_Pos) /*!< 0x00000004 */
  3914. #define DAC_CR_TSEL1_1 (0x2UL << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  3915. #define DAC_CR_TSEL1_2 (0x4UL << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  3916. #define DAC_CR_TSEL1_3 (0x8UL << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  3917. #define DAC_CR_WAVE1_Pos (6U)
  3918. #define DAC_CR_WAVE1_Msk (0x3UL << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  3919. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  3920. #define DAC_CR_WAVE1_0 (0x1UL << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  3921. #define DAC_CR_WAVE1_1 (0x2UL << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  3922. #define DAC_CR_MAMP1_Pos (8U)
  3923. #define DAC_CR_MAMP1_Msk (0xFUL << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  3924. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  3925. #define DAC_CR_MAMP1_0 (0x1UL << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  3926. #define DAC_CR_MAMP1_1 (0x2UL << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  3927. #define DAC_CR_MAMP1_2 (0x4UL << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  3928. #define DAC_CR_MAMP1_3 (0x8UL << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  3929. #define DAC_CR_DMAEN1_Pos (12U)
  3930. #define DAC_CR_DMAEN1_Msk (0x1UL << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  3931. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!<DAC channel1 DMA enable */
  3932. #define DAC_CR_DMAUDRIE1_Pos (13U)
  3933. #define DAC_CR_DMAUDRIE1_Msk (0x1UL << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  3934. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!<DAC channel 1 DMA underrun interrupt enable >*/
  3935. #define DAC_CR_CEN1_Pos (14U)
  3936. #define DAC_CR_CEN1_Msk (0x1UL << DAC_CR_CEN1_Pos) /*!< 0x00004000 */
  3937. #define DAC_CR_CEN1 DAC_CR_CEN1_Msk /*!<DAC channel 1 calibration enable >*/
  3938. #define DAC_CR_HFSEL_Pos (15U)
  3939. #define DAC_CR_HFSEL_Msk (0x1UL << DAC_CR_HFSEL_Pos) /*!< 0x00008000 */
  3940. #define DAC_CR_HFSEL DAC_CR_HFSEL_Msk /*!<DAC channel 1 and 2 high frequency mode enable >*/
  3941. #define DAC_CR_EN2_Pos (16U)
  3942. #define DAC_CR_EN2_Msk (0x1UL << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  3943. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!<DAC channel2 enable */
  3944. #define DAC_CR_TEN2_Pos (17U)
  3945. #define DAC_CR_TEN2_Msk (0x1UL << DAC_CR_TEN2_Pos) /*!< 0x00020000 */
  3946. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!<DAC channel2 Trigger enable */
  3947. #define DAC_CR_TSEL2_Pos (18U)
  3948. #define DAC_CR_TSEL2_Msk (0xFUL << DAC_CR_TSEL2_Pos) /*!< 0x003C0000 */
  3949. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!<TSEL2[3:0] (DAC channel2 Trigger selection) */
  3950. #define DAC_CR_TSEL2_0 (0x1UL << DAC_CR_TSEL2_Pos) /*!< 0x00040000 */
  3951. #define DAC_CR_TSEL2_1 (0x2UL << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  3952. #define DAC_CR_TSEL2_2 (0x4UL << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  3953. #define DAC_CR_TSEL2_3 (0x8UL << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  3954. #define DAC_CR_WAVE2_Pos (22U)
  3955. #define DAC_CR_WAVE2_Msk (0x3UL << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  3956. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!<WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  3957. #define DAC_CR_WAVE2_0 (0x1UL << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  3958. #define DAC_CR_WAVE2_1 (0x2UL << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  3959. #define DAC_CR_MAMP2_Pos (24U)
  3960. #define DAC_CR_MAMP2_Msk (0xFUL << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  3961. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!<MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  3962. #define DAC_CR_MAMP2_0 (0x1UL << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  3963. #define DAC_CR_MAMP2_1 (0x2UL << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  3964. #define DAC_CR_MAMP2_2 (0x4UL << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  3965. #define DAC_CR_MAMP2_3 (0x8UL << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  3966. #define DAC_CR_DMAEN2_Pos (28U)
  3967. #define DAC_CR_DMAEN2_Msk (0x1UL << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  3968. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!<DAC channel2 DMA enabled */
  3969. #define DAC_CR_DMAUDRIE2_Pos (29U)
  3970. #define DAC_CR_DMAUDRIE2_Msk (0x1UL << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  3971. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!<DAC channel2 DMA underrun interrupt enable >*/
  3972. #define DAC_CR_CEN2_Pos (30U)
  3973. #define DAC_CR_CEN2_Msk (0x1UL << DAC_CR_CEN2_Pos) /*!< 0x40000000 */
  3974. #define DAC_CR_CEN2 DAC_CR_CEN2_Msk /*!<DAC channel2 calibration enable >*/
  3975. /***************** Bit definition for DAC_SWTRIGR register ******************/
  3976. #define DAC_SWTRIGR_SWTRIG1_Pos (0U)
  3977. #define DAC_SWTRIGR_SWTRIG1_Msk (0x1UL << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */
  3978. #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!<DAC channel1 software trigger */
  3979. #define DAC_SWTRIGR_SWTRIG2_Pos (1U)
  3980. #define DAC_SWTRIGR_SWTRIG2_Msk (0x1UL << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */
  3981. #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!<DAC channel2 software trigger */
  3982. /***************** Bit definition for DAC_DHR12R1 register ******************/
  3983. #define DAC_DHR12R1_DACC1DHR_Pos (0U)
  3984. #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFUL << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */
  3985. #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  3986. /***************** Bit definition for DAC_DHR12L1 register ******************/
  3987. #define DAC_DHR12L1_DACC1DHR_Pos (4U)
  3988. #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFUL << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  3989. #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  3990. /****************** Bit definition for DAC_DHR8R1 register ******************/
  3991. #define DAC_DHR8R1_DACC1DHR_Pos (0U)
  3992. #define DAC_DHR8R1_DACC1DHR_Msk (0xFFUL << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */
  3993. #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */
  3994. /***************** Bit definition for DAC_DHR12R2 register ******************/
  3995. #define DAC_DHR12R2_DACC2DHR_Pos (0U)
  3996. #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFUL << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */
  3997. #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  3998. /***************** Bit definition for DAC_DHR12L2 register ******************/
  3999. #define DAC_DHR12L2_DACC2DHR_Pos (4U)
  4000. #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFUL << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */
  4001. #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  4002. /****************** Bit definition for DAC_DHR8R2 register ******************/
  4003. #define DAC_DHR8R2_DACC2DHR_Pos (0U)
  4004. #define DAC_DHR8R2_DACC2DHR_Msk (0xFFUL << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */
  4005. #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */
  4006. /***************** Bit definition for DAC_DHR12RD register ******************/
  4007. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  4008. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFUL << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  4009. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  4010. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  4011. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFUL << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  4012. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  4013. /***************** Bit definition for DAC_DHR12LD register ******************/
  4014. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  4015. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFUL << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  4016. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  4017. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  4018. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFUL << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  4019. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  4020. /****************** Bit definition for DAC_DHR8RD register ******************/
  4021. #define DAC_DHR8RD_DACC1DHR_Pos (0U)
  4022. #define DAC_DHR8RD_DACC1DHR_Msk (0xFFUL << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */
  4023. #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */
  4024. #define DAC_DHR8RD_DACC2DHR_Pos (8U)
  4025. #define DAC_DHR8RD_DACC2DHR_Msk (0xFFUL << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */
  4026. #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */
  4027. /******************* Bit definition for DAC_DOR1 register *******************/
  4028. #define DAC_DOR1_DACC1DOR_Pos (0U)
  4029. #define DAC_DOR1_DACC1DOR_Msk (0xFFFUL << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */
  4030. #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!<DAC channel1 data output */
  4031. /******************* Bit definition for DAC_DOR2 register *******************/
  4032. #define DAC_DOR2_DACC2DOR_Pos (0U)
  4033. #define DAC_DOR2_DACC2DOR_Msk (0xFFFUL << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */
  4034. #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!<DAC channel2 data output */
  4035. /******************** Bit definition for DAC_SR register ********************/
  4036. #define DAC_SR_DMAUDR1_Pos (13U)
  4037. #define DAC_SR_DMAUDR1_Msk (0x1UL << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  4038. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!<DAC channel1 DMA underrun flag */
  4039. #define DAC_SR_CAL_FLAG1_Pos (14U)
  4040. #define DAC_SR_CAL_FLAG1_Msk (0x1UL << DAC_SR_CAL_FLAG1_Pos) /*!< 0x00004000 */
  4041. #define DAC_SR_CAL_FLAG1 DAC_SR_CAL_FLAG1_Msk /*!<DAC channel1 calibration offset status */
  4042. #define DAC_SR_BWST1_Pos (15U)
  4043. #define DAC_SR_BWST1_Msk (0x1UL << DAC_SR_BWST1_Pos) /*!< 0x00008000 */
  4044. #define DAC_SR_BWST1 DAC_SR_BWST1_Msk /*!<DAC channel1 busy writing sample time flag */
  4045. #define DAC_SR_DMAUDR2_Pos (29U)
  4046. #define DAC_SR_DMAUDR2_Msk (0x1UL << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  4047. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!<DAC channel2 DMA underrun flag */
  4048. #define DAC_SR_CAL_FLAG2_Pos (30U)
  4049. #define DAC_SR_CAL_FLAG2_Msk (0x1UL << DAC_SR_CAL_FLAG2_Pos) /*!< 0x40000000 */
  4050. #define DAC_SR_CAL_FLAG2 DAC_SR_CAL_FLAG2_Msk /*!<DAC channel2 calibration offset status */
  4051. #define DAC_SR_BWST2_Pos (31U)
  4052. #define DAC_SR_BWST2_Msk (0x1UL << DAC_SR_BWST2_Pos) /*!< 0x80000000 */
  4053. #define DAC_SR_BWST2 DAC_SR_BWST2_Msk /*!<DAC channel2 busy writing sample time flag */
  4054. /******************* Bit definition for DAC_CCR register ********************/
  4055. #define DAC_CCR_OTRIM1_Pos (0U)
  4056. #define DAC_CCR_OTRIM1_Msk (0x1FUL << DAC_CCR_OTRIM1_Pos) /*!< 0x0000001F */
  4057. #define DAC_CCR_OTRIM1 DAC_CCR_OTRIM1_Msk /*!<DAC channel1 offset trimming value */
  4058. #define DAC_CCR_OTRIM2_Pos (16U)
  4059. #define DAC_CCR_OTRIM2_Msk (0x1FUL << DAC_CCR_OTRIM2_Pos) /*!< 0x001F0000 */
  4060. #define DAC_CCR_OTRIM2 DAC_CCR_OTRIM2_Msk /*!<DAC channel2 offset trimming value */
  4061. /******************* Bit definition for DAC_MCR register *******************/
  4062. #define DAC_MCR_MODE1_Pos (0U)
  4063. #define DAC_MCR_MODE1_Msk (0x7UL << DAC_MCR_MODE1_Pos) /*!< 0x00000007 */
  4064. #define DAC_MCR_MODE1 DAC_MCR_MODE1_Msk /*!<MODE1[2:0] (DAC channel1 mode) */
  4065. #define DAC_MCR_MODE1_0 (0x1UL << DAC_MCR_MODE1_Pos) /*!< 0x00000001 */
  4066. #define DAC_MCR_MODE1_1 (0x2UL << DAC_MCR_MODE1_Pos) /*!< 0x00000002 */
  4067. #define DAC_MCR_MODE1_2 (0x4UL << DAC_MCR_MODE1_Pos) /*!< 0x00000004 */
  4068. #define DAC_MCR_MODE2_Pos (16U)
  4069. #define DAC_MCR_MODE2_Msk (0x7UL << DAC_MCR_MODE2_Pos) /*!< 0x00070000 */
  4070. #define DAC_MCR_MODE2 DAC_MCR_MODE2_Msk /*!<MODE2[2:0] (DAC channel2 mode) */
  4071. #define DAC_MCR_MODE2_0 (0x1UL << DAC_MCR_MODE2_Pos) /*!< 0x00010000 */
  4072. #define DAC_MCR_MODE2_1 (0x2UL << DAC_MCR_MODE2_Pos) /*!< 0x00020000 */
  4073. #define DAC_MCR_MODE2_2 (0x4UL << DAC_MCR_MODE2_Pos) /*!< 0x00040000 */
  4074. /****************** Bit definition for DAC_SHSR1 register ******************/
  4075. #define DAC_SHSR1_TSAMPLE1_Pos (0U)
  4076. #define DAC_SHSR1_TSAMPLE1_Msk (0x3FFUL << DAC_SHSR1_TSAMPLE1_Pos) /*!< 0x000003FF */
  4077. #define DAC_SHSR1_TSAMPLE1 DAC_SHSR1_TSAMPLE1_Msk /*!<DAC channel1 sample time */
  4078. /****************** Bit definition for DAC_SHSR2 register ******************/
  4079. #define DAC_SHSR2_TSAMPLE2_Pos (0U)
  4080. #define DAC_SHSR2_TSAMPLE2_Msk (0x3FFUL << DAC_SHSR2_TSAMPLE2_Pos) /*!< 0x000003FF */
  4081. #define DAC_SHSR2_TSAMPLE2 DAC_SHSR2_TSAMPLE2_Msk /*!<DAC channel2 sample time */
  4082. /****************** Bit definition for DAC_SHHR register ******************/
  4083. #define DAC_SHHR_THOLD1_Pos (0U)
  4084. #define DAC_SHHR_THOLD1_Msk (0x3FFUL << DAC_SHHR_THOLD1_Pos) /*!< 0x000003FF */
  4085. #define DAC_SHHR_THOLD1 DAC_SHHR_THOLD1_Msk /*!<DAC channel1 hold time */
  4086. #define DAC_SHHR_THOLD2_Pos (16U)
  4087. #define DAC_SHHR_THOLD2_Msk (0x3FFUL << DAC_SHHR_THOLD2_Pos) /*!< 0x03FF0000 */
  4088. #define DAC_SHHR_THOLD2 DAC_SHHR_THOLD2_Msk /*!<DAC channel2 hold time */
  4089. /****************** Bit definition for DAC_SHRR register ******************/
  4090. #define DAC_SHRR_TREFRESH1_Pos (0U)
  4091. #define DAC_SHRR_TREFRESH1_Msk (0xFFUL << DAC_SHRR_TREFRESH1_Pos) /*!< 0x000000FF */
  4092. #define DAC_SHRR_TREFRESH1 DAC_SHRR_TREFRESH1_Msk /*!<DAC channel1 refresh time */
  4093. #define DAC_SHRR_TREFRESH2_Pos (16U)
  4094. #define DAC_SHRR_TREFRESH2_Msk (0xFFUL << DAC_SHRR_TREFRESH2_Pos) /*!< 0x00FF0000 */
  4095. #define DAC_SHRR_TREFRESH2 DAC_SHRR_TREFRESH2_Msk /*!<DAC channel2 refresh time */
  4096. /******************************************************************************/
  4097. /* */
  4098. /* Debug MCU */
  4099. /* */
  4100. /******************************************************************************/
  4101. /******************** Bit definition for DBGMCU_IDCODE register *************/
  4102. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  4103. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFUL << DBGMCU_IDCODE_DEV_ID_Pos)/*!< 0x00000FFF */
  4104. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk
  4105. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  4106. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFUL << DBGMCU_IDCODE_REV_ID_Pos)/*!< 0xFFFF0000 */
  4107. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk
  4108. /******************** Bit definition for DBGMCU_CR register *****************/
  4109. #define DBGMCU_CR_DBG_SLEEP_Pos (0U)
  4110. #define DBGMCU_CR_DBG_SLEEP_Msk (0x1UL << DBGMCU_CR_DBG_SLEEP_Pos)/*!< 0x00000001 */
  4111. #define DBGMCU_CR_DBG_SLEEP DBGMCU_CR_DBG_SLEEP_Msk
  4112. #define DBGMCU_CR_DBG_STOP_Pos (1U)
  4113. #define DBGMCU_CR_DBG_STOP_Msk (0x1UL << DBGMCU_CR_DBG_STOP_Pos)/*!< 0x00000002 */
  4114. #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk
  4115. #define DBGMCU_CR_DBG_STANDBY_Pos (2U)
  4116. #define DBGMCU_CR_DBG_STANDBY_Msk (0x1UL << DBGMCU_CR_DBG_STANDBY_Pos)/*!< 0x00000004 */
  4117. #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk
  4118. #define DBGMCU_CR_TRACE_IOEN_Pos (5U)
  4119. #define DBGMCU_CR_TRACE_IOEN_Msk (0x1UL << DBGMCU_CR_TRACE_IOEN_Pos)/*!< 0x00000020 */
  4120. #define DBGMCU_CR_TRACE_IOEN DBGMCU_CR_TRACE_IOEN_Msk
  4121. #define DBGMCU_CR_TRACE_MODE_Pos (6U)
  4122. #define DBGMCU_CR_TRACE_MODE_Msk (0x3UL << DBGMCU_CR_TRACE_MODE_Pos)/*!< 0x000000C0 */
  4123. #define DBGMCU_CR_TRACE_MODE DBGMCU_CR_TRACE_MODE_Msk
  4124. #define DBGMCU_CR_TRACE_MODE_0 (0x1UL << DBGMCU_CR_TRACE_MODE_Pos)/*!< 0x00000040 */
  4125. #define DBGMCU_CR_TRACE_MODE_1 (0x2UL << DBGMCU_CR_TRACE_MODE_Pos)/*!< 0x00000080 */
  4126. /******************** Bit definition for DBGMCU_APB1FZR1 register ***********/
  4127. #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos (0U)
  4128. #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos)/*!< 0x00000001 */
  4129. #define DBGMCU_APB1FZR1_DBG_TIM2_STOP DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk
  4130. #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos (1U)
  4131. #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos)/*!< 0x00000002 */
  4132. #define DBGMCU_APB1FZR1_DBG_TIM3_STOP DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk
  4133. #define DBGMCU_APB1FZR1_DBG_TIM4_STOP_Pos (2U)
  4134. #define DBGMCU_APB1FZR1_DBG_TIM4_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM4_STOP_Pos)/*!< 0x00000004 */
  4135. #define DBGMCU_APB1FZR1_DBG_TIM4_STOP DBGMCU_APB1FZR1_DBG_TIM4_STOP_Msk
  4136. #define DBGMCU_APB1FZR1_DBG_TIM5_STOP_Pos (3U)
  4137. #define DBGMCU_APB1FZR1_DBG_TIM5_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM5_STOP_Pos)/*!< 0x00000008 */
  4138. #define DBGMCU_APB1FZR1_DBG_TIM5_STOP DBGMCU_APB1FZR1_DBG_TIM5_STOP_Msk
  4139. #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos (4U)
  4140. #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos)/*!< 0x00000010 */
  4141. #define DBGMCU_APB1FZR1_DBG_TIM6_STOP DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk
  4142. #define DBGMCU_APB1FZR1_DBG_TIM7_STOP_Pos (5U)
  4143. #define DBGMCU_APB1FZR1_DBG_TIM7_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM7_STOP_Pos)/*!< 0x00000020 */
  4144. #define DBGMCU_APB1FZR1_DBG_TIM7_STOP DBGMCU_APB1FZR1_DBG_TIM7_STOP_Msk
  4145. #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos (10U)
  4146. #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos)/*!< 0x00000400 */
  4147. #define DBGMCU_APB1FZR1_DBG_RTC_STOP DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk
  4148. #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos (11U)
  4149. #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos)/*!< 0x00000800 */
  4150. #define DBGMCU_APB1FZR1_DBG_WWDG_STOP DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk
  4151. #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos (12U)
  4152. #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos)/*!< 0x00001000 */
  4153. #define DBGMCU_APB1FZR1_DBG_IWDG_STOP DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk
  4154. #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos (21U)
  4155. #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos)/*!< 0x00200000 */
  4156. #define DBGMCU_APB1FZR1_DBG_I2C1_STOP DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk
  4157. #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos (22U)
  4158. #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos)/*!< 0x00400000 */
  4159. #define DBGMCU_APB1FZR1_DBG_I2C2_STOP DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk
  4160. #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos (23U)
  4161. #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos)/*!< 0x00800000 */
  4162. #define DBGMCU_APB1FZR1_DBG_I2C3_STOP DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk
  4163. #define DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Pos (25U)
  4164. #define DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Pos)/*!< 0x02000000 */
  4165. #define DBGMCU_APB1FZR1_DBG_FDCAN1_STOP DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Msk
  4166. #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos (31U)
  4167. #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos)/*!< 0x80000000 */
  4168. #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk
  4169. /******************** Bit definition for DBGMCU_APB1FZR2 register **********/
  4170. #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos (1U)
  4171. #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk (0x1UL << DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos)/*!< 0x00000002 */
  4172. #define DBGMCU_APB1FZR2_DBG_I2C4_STOP DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk
  4173. #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos (5U)
  4174. #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk (0x1UL << DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos)/*!< 0x00000020 */
  4175. #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk
  4176. #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Pos (6U)
  4177. #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Msk (0x1UL << DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Pos)/*!< 0x00000040 */
  4178. #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Msk
  4179. /******************** Bit definition for DBGMCU_APB2FZ register ************/
  4180. #define DBGMCU_APB2FZ_DBG_TIM1_STOP_Pos (11U)
  4181. #define DBGMCU_APB2FZ_DBG_TIM1_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM1_STOP_Pos)/*!< 0x00000800 */
  4182. #define DBGMCU_APB2FZ_DBG_TIM1_STOP DBGMCU_APB2FZ_DBG_TIM1_STOP_Msk
  4183. #define DBGMCU_APB2FZ_DBG_TIM8_STOP_Pos (13U)
  4184. #define DBGMCU_APB2FZ_DBG_TIM8_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM8_STOP_Pos)/*!< 0x00002000 */
  4185. #define DBGMCU_APB2FZ_DBG_TIM8_STOP DBGMCU_APB2FZ_DBG_TIM8_STOP_Msk
  4186. #define DBGMCU_APB2FZ_DBG_TIM15_STOP_Pos (16U)
  4187. #define DBGMCU_APB2FZ_DBG_TIM15_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM15_STOP_Pos)/*!< 0x00010000 */
  4188. #define DBGMCU_APB2FZ_DBG_TIM15_STOP DBGMCU_APB2FZ_DBG_TIM15_STOP_Msk
  4189. #define DBGMCU_APB2FZ_DBG_TIM16_STOP_Pos (17U)
  4190. #define DBGMCU_APB2FZ_DBG_TIM16_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM16_STOP_Pos)/*!< 0x00020000 */
  4191. #define DBGMCU_APB2FZ_DBG_TIM16_STOP DBGMCU_APB2FZ_DBG_TIM16_STOP_Msk
  4192. #define DBGMCU_APB2FZ_DBG_TIM17_STOP_Pos (18U)
  4193. #define DBGMCU_APB2FZ_DBG_TIM17_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM17_STOP_Pos)/*!< 0x00040000 */
  4194. #define DBGMCU_APB2FZ_DBG_TIM17_STOP DBGMCU_APB2FZ_DBG_TIM17_STOP_Msk
  4195. /******************************************************************************/
  4196. /* */
  4197. /* Digital Filter for Sigma Delta Modulators */
  4198. /* */
  4199. /******************************************************************************/
  4200. /**************** DFSDM channel configuration registers ********************/
  4201. /*************** Bit definition for DFSDM_CHCFGR1 register ******************/
  4202. #define DFSDM_CHCFGR1_DFSDMEN_Pos (31U)
  4203. #define DFSDM_CHCFGR1_DFSDMEN_Msk (0x1UL << DFSDM_CHCFGR1_DFSDMEN_Pos) /*!< 0x80000000 */
  4204. #define DFSDM_CHCFGR1_DFSDMEN DFSDM_CHCFGR1_DFSDMEN_Msk /*!< Global enable for DFSDM interface */
  4205. #define DFSDM_CHCFGR1_CKOUTSRC_Pos (30U)
  4206. #define DFSDM_CHCFGR1_CKOUTSRC_Msk (0x1UL << DFSDM_CHCFGR1_CKOUTSRC_Pos) /*!< 0x40000000 */
  4207. #define DFSDM_CHCFGR1_CKOUTSRC DFSDM_CHCFGR1_CKOUTSRC_Msk /*!< Output serial clock source selection */
  4208. #define DFSDM_CHCFGR1_CKOUTDIV_Pos (16U)
  4209. #define DFSDM_CHCFGR1_CKOUTDIV_Msk (0xFFUL << DFSDM_CHCFGR1_CKOUTDIV_Pos) /*!< 0x00FF0000 */
  4210. #define DFSDM_CHCFGR1_CKOUTDIV DFSDM_CHCFGR1_CKOUTDIV_Msk /*!< CKOUTDIV[7:0] output serial clock divider */
  4211. #define DFSDM_CHCFGR1_DATPACK_Pos (14U)
  4212. #define DFSDM_CHCFGR1_DATPACK_Msk (0x3UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x0000C000 */
  4213. #define DFSDM_CHCFGR1_DATPACK DFSDM_CHCFGR1_DATPACK_Msk /*!< DATPACK[1:0] Data packing mode */
  4214. #define DFSDM_CHCFGR1_DATPACK_1 (0x2UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00008000 */
  4215. #define DFSDM_CHCFGR1_DATPACK_0 (0x1UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00004000 */
  4216. #define DFSDM_CHCFGR1_DATMPX_Pos (12U)
  4217. #define DFSDM_CHCFGR1_DATMPX_Msk (0x3UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00003000 */
  4218. #define DFSDM_CHCFGR1_DATMPX DFSDM_CHCFGR1_DATMPX_Msk /*!< DATMPX[1:0] Input data multiplexer for channel y */
  4219. #define DFSDM_CHCFGR1_DATMPX_1 (0x2UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00002000 */
  4220. #define DFSDM_CHCFGR1_DATMPX_0 (0x1UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00001000 */
  4221. #define DFSDM_CHCFGR1_CHINSEL_Pos (8U)
  4222. #define DFSDM_CHCFGR1_CHINSEL_Msk (0x1UL << DFSDM_CHCFGR1_CHINSEL_Pos) /*!< 0x00000100 */
  4223. #define DFSDM_CHCFGR1_CHINSEL DFSDM_CHCFGR1_CHINSEL_Msk /*!< Serial inputs selection for channel y */
  4224. #define DFSDM_CHCFGR1_CHEN_Pos (7U)
  4225. #define DFSDM_CHCFGR1_CHEN_Msk (0x1UL << DFSDM_CHCFGR1_CHEN_Pos) /*!< 0x00000080 */
  4226. #define DFSDM_CHCFGR1_CHEN DFSDM_CHCFGR1_CHEN_Msk /*!< Channel y enable */
  4227. #define DFSDM_CHCFGR1_CKABEN_Pos (6U)
  4228. #define DFSDM_CHCFGR1_CKABEN_Msk (0x1UL << DFSDM_CHCFGR1_CKABEN_Pos) /*!< 0x00000040 */
  4229. #define DFSDM_CHCFGR1_CKABEN DFSDM_CHCFGR1_CKABEN_Msk /*!< Clock absence detector enable on channel y */
  4230. #define DFSDM_CHCFGR1_SCDEN_Pos (5U)
  4231. #define DFSDM_CHCFGR1_SCDEN_Msk (0x1UL << DFSDM_CHCFGR1_SCDEN_Pos) /*!< 0x00000020 */
  4232. #define DFSDM_CHCFGR1_SCDEN DFSDM_CHCFGR1_SCDEN_Msk /*!< Short circuit detector enable on channel y */
  4233. #define DFSDM_CHCFGR1_SPICKSEL_Pos (2U)
  4234. #define DFSDM_CHCFGR1_SPICKSEL_Msk (0x3UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x0000000C */
  4235. #define DFSDM_CHCFGR1_SPICKSEL DFSDM_CHCFGR1_SPICKSEL_Msk /*!< SPICKSEL[1:0] SPI clock select for channel y */
  4236. #define DFSDM_CHCFGR1_SPICKSEL_1 (0x2UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000008 */
  4237. #define DFSDM_CHCFGR1_SPICKSEL_0 (0x1UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000004 */
  4238. #define DFSDM_CHCFGR1_SITP_Pos (0U)
  4239. #define DFSDM_CHCFGR1_SITP_Msk (0x3UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000003 */
  4240. #define DFSDM_CHCFGR1_SITP DFSDM_CHCFGR1_SITP_Msk /*!< SITP[1:0] Serial interface type for channel y */
  4241. #define DFSDM_CHCFGR1_SITP_1 (0x2UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000002 */
  4242. #define DFSDM_CHCFGR1_SITP_0 (0x1UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000001 */
  4243. /*************** Bit definition for DFSDM_CHCFGR2 register ******************/
  4244. #define DFSDM_CHCFGR2_OFFSET_Pos (8U)
  4245. #define DFSDM_CHCFGR2_OFFSET_Msk (0xFFFFFFUL << DFSDM_CHCFGR2_OFFSET_Pos)/*!< 0xFFFFFF00 */
  4246. #define DFSDM_CHCFGR2_OFFSET DFSDM_CHCFGR2_OFFSET_Msk /*!< OFFSET[23:0] 24-bit calibration offset for channel y */
  4247. #define DFSDM_CHCFGR2_DTRBS_Pos (3U)
  4248. #define DFSDM_CHCFGR2_DTRBS_Msk (0x1FUL << DFSDM_CHCFGR2_DTRBS_Pos) /*!< 0x000000F8 */
  4249. #define DFSDM_CHCFGR2_DTRBS DFSDM_CHCFGR2_DTRBS_Msk /*!< DTRBS[4:0] Data right bit-shift for channel y */
  4250. /**************** Bit definition for DFSDM_CHAWSCDR register *****************/
  4251. #define DFSDM_CHAWSCDR_AWFORD_Pos (22U)
  4252. #define DFSDM_CHAWSCDR_AWFORD_Msk (0x3UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00C00000 */
  4253. #define DFSDM_CHAWSCDR_AWFORD DFSDM_CHAWSCDR_AWFORD_Msk /*!< AWFORD[1:0] Analog watchdog Sinc filter order on channel y */
  4254. #define DFSDM_CHAWSCDR_AWFORD_1 (0x2UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00800000 */
  4255. #define DFSDM_CHAWSCDR_AWFORD_0 (0x1UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00400000 */
  4256. #define DFSDM_CHAWSCDR_AWFOSR_Pos (16U)
  4257. #define DFSDM_CHAWSCDR_AWFOSR_Msk (0x1FUL << DFSDM_CHAWSCDR_AWFOSR_Pos) /*!< 0x001F0000 */
  4258. #define DFSDM_CHAWSCDR_AWFOSR DFSDM_CHAWSCDR_AWFOSR_Msk /*!< AWFOSR[4:0] Analog watchdog filter oversampling ratio on channel y */
  4259. #define DFSDM_CHAWSCDR_BKSCD_Pos (12U)
  4260. #define DFSDM_CHAWSCDR_BKSCD_Msk (0xFUL << DFSDM_CHAWSCDR_BKSCD_Pos) /*!< 0x0000F000 */
  4261. #define DFSDM_CHAWSCDR_BKSCD DFSDM_CHAWSCDR_BKSCD_Msk /*!< BKSCD[3:0] Break signal assignment for short circuit detector on channel y */
  4262. #define DFSDM_CHAWSCDR_SCDT_Pos (0U)
  4263. #define DFSDM_CHAWSCDR_SCDT_Msk (0xFFUL << DFSDM_CHAWSCDR_SCDT_Pos) /*!< 0x000000FF */
  4264. #define DFSDM_CHAWSCDR_SCDT DFSDM_CHAWSCDR_SCDT_Msk /*!< SCDT[7:0] Short circuit detector threshold for channel y */
  4265. /**************** Bit definition for DFSDM_CHWDATR register *******************/
  4266. #define DFSDM_CHWDATR_WDATA_Pos (0U)
  4267. #define DFSDM_CHWDATR_WDATA_Msk (0xFFFFUL << DFSDM_CHWDATR_WDATA_Pos) /*!< 0x0000FFFF */
  4268. #define DFSDM_CHWDATR_WDATA DFSDM_CHWDATR_WDATA_Msk /*!< WDATA[15:0] Input channel y watchdog data */
  4269. /**************** Bit definition for DFSDM_CHDATINR register *****************/
  4270. #define DFSDM_CHDATINR_INDAT0_Pos (0U)
  4271. #define DFSDM_CHDATINR_INDAT0_Msk (0xFFFFUL << DFSDM_CHDATINR_INDAT0_Pos)/*!< 0x0000FFFF */
  4272. #define DFSDM_CHDATINR_INDAT0 DFSDM_CHDATINR_INDAT0_Msk /*!< INDAT0[31:16] Input data for channel y or channel (y+1) */
  4273. #define DFSDM_CHDATINR_INDAT1_Pos (16U)
  4274. #define DFSDM_CHDATINR_INDAT1_Msk (0xFFFFUL << DFSDM_CHDATINR_INDAT1_Pos)/*!< 0xFFFF0000 */
  4275. #define DFSDM_CHDATINR_INDAT1 DFSDM_CHDATINR_INDAT1_Msk /*!< INDAT0[15:0] Input data for channel y */
  4276. /**************** Bit definition for DFSDM_CHDLYR register *******************/
  4277. #define DFSDM_CHDLYR_PLSSKP_Pos (0U)
  4278. #define DFSDM_CHDLYR_PLSSKP_Msk (0x3FUL << DFSDM_CHDLYR_PLSSKP_Pos) /*!< 0x0000003F */
  4279. #define DFSDM_CHDLYR_PLSSKP DFSDM_CHDLYR_PLSSKP_Msk /*!< PLSSKP[5:0] Number of input serial samples that will be skipped */
  4280. /************************ DFSDM module registers ****************************/
  4281. /***************** Bit definition for DFSDM_FLTCR1 register *******************/
  4282. #define DFSDM_FLTCR1_AWFSEL_Pos (30U)
  4283. #define DFSDM_FLTCR1_AWFSEL_Msk (0x1UL << DFSDM_FLTCR1_AWFSEL_Pos) /*!< 0x40000000 */
  4284. #define DFSDM_FLTCR1_AWFSEL DFSDM_FLTCR1_AWFSEL_Msk /*!< Analog watchdog fast mode select */
  4285. #define DFSDM_FLTCR1_FAST_Pos (29U)
  4286. #define DFSDM_FLTCR1_FAST_Msk (0x1UL << DFSDM_FLTCR1_FAST_Pos) /*!< 0x20000000 */
  4287. #define DFSDM_FLTCR1_FAST DFSDM_FLTCR1_FAST_Msk /*!< Fast conversion mode selection */
  4288. #define DFSDM_FLTCR1_RCH_Pos (24U)
  4289. #define DFSDM_FLTCR1_RCH_Msk (0x7UL << DFSDM_FLTCR1_RCH_Pos) /*!< 0x07000000 */
  4290. #define DFSDM_FLTCR1_RCH DFSDM_FLTCR1_RCH_Msk /*!< RCH[2:0] Regular channel selection */
  4291. #define DFSDM_FLTCR1_RDMAEN_Pos (21U)
  4292. #define DFSDM_FLTCR1_RDMAEN_Msk (0x1UL << DFSDM_FLTCR1_RDMAEN_Pos) /*!< 0x00200000 */
  4293. #define DFSDM_FLTCR1_RDMAEN DFSDM_FLTCR1_RDMAEN_Msk /*!< DMA channel enabled to read data for the regular conversion */
  4294. #define DFSDM_FLTCR1_RSYNC_Pos (19U)
  4295. #define DFSDM_FLTCR1_RSYNC_Msk (0x1UL << DFSDM_FLTCR1_RSYNC_Pos) /*!< 0x00080000 */
  4296. #define DFSDM_FLTCR1_RSYNC DFSDM_FLTCR1_RSYNC_Msk /*!< Launch regular conversion synchronously with DFSDMx */
  4297. #define DFSDM_FLTCR1_RCONT_Pos (18U)
  4298. #define DFSDM_FLTCR1_RCONT_Msk (0x1UL << DFSDM_FLTCR1_RCONT_Pos) /*!< 0x00040000 */
  4299. #define DFSDM_FLTCR1_RCONT DFSDM_FLTCR1_RCONT_Msk /*!< Continuous mode selection for regular conversions */
  4300. #define DFSDM_FLTCR1_RSWSTART_Pos (17U)
  4301. #define DFSDM_FLTCR1_RSWSTART_Msk (0x1UL << DFSDM_FLTCR1_RSWSTART_Pos) /*!< 0x00020000 */
  4302. #define DFSDM_FLTCR1_RSWSTART DFSDM_FLTCR1_RSWSTART_Msk /*!< Software start of a conversion on the regular channel */
  4303. #define DFSDM_FLTCR1_JEXTEN_Pos (13U)
  4304. #define DFSDM_FLTCR1_JEXTEN_Msk (0x3UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00006000 */
  4305. #define DFSDM_FLTCR1_JEXTEN DFSDM_FLTCR1_JEXTEN_Msk /*!< JEXTEN[1:0] Trigger enable and trigger edge selection for injected conversions */
  4306. #define DFSDM_FLTCR1_JEXTEN_1 (0x2UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00004000 */
  4307. #define DFSDM_FLTCR1_JEXTEN_0 (0x1UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00002000 */
  4308. #define DFSDM_FLTCR1_JEXTSEL_Pos (8U)
  4309. #define DFSDM_FLTCR1_JEXTSEL_Msk (0x1FUL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001F00 */
  4310. #define DFSDM_FLTCR1_JEXTSEL DFSDM_FLTCR1_JEXTSEL_Msk /*!< JEXTSEL[4:0]Trigger signal selection for launching injected conversions */
  4311. #define DFSDM_FLTCR1_JEXTSEL_4 (0x10UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001000 */
  4312. #define DFSDM_FLTCR1_JEXTSEL_3 (0x08UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000800 */
  4313. #define DFSDM_FLTCR1_JEXTSEL_2 (0x04UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000400 */
  4314. #define DFSDM_FLTCR1_JEXTSEL_1 (0x02UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000200 */
  4315. #define DFSDM_FLTCR1_JEXTSEL_0 (0x01UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000100 */
  4316. #define DFSDM_FLTCR1_JDMAEN_Pos (5U)
  4317. #define DFSDM_FLTCR1_JDMAEN_Msk (0x1UL << DFSDM_FLTCR1_JDMAEN_Pos) /*!< 0x00000020 */
  4318. #define DFSDM_FLTCR1_JDMAEN DFSDM_FLTCR1_JDMAEN_Msk /*!< DMA channel enabled to read data for the injected channel group */
  4319. #define DFSDM_FLTCR1_JSCAN_Pos (4U)
  4320. #define DFSDM_FLTCR1_JSCAN_Msk (0x1UL << DFSDM_FLTCR1_JSCAN_Pos) /*!< 0x00000010 */
  4321. #define DFSDM_FLTCR1_JSCAN DFSDM_FLTCR1_JSCAN_Msk /*!< Scanning conversion in continuous mode selection for injected conversions */
  4322. #define DFSDM_FLTCR1_JSYNC_Pos (3U)
  4323. #define DFSDM_FLTCR1_JSYNC_Msk (0x1UL << DFSDM_FLTCR1_JSYNC_Pos) /*!< 0x00000008 */
  4324. #define DFSDM_FLTCR1_JSYNC DFSDM_FLTCR1_JSYNC_Msk /*!< Launch an injected conversion synchronously with DFSDMx JSWSTART trigger */
  4325. #define DFSDM_FLTCR1_JSWSTART_Pos (1U)
  4326. #define DFSDM_FLTCR1_JSWSTART_Msk (0x1UL << DFSDM_FLTCR1_JSWSTART_Pos) /*!< 0x00000002 */
  4327. #define DFSDM_FLTCR1_JSWSTART DFSDM_FLTCR1_JSWSTART_Msk /*!< Start the conversion of the injected group of channels */
  4328. #define DFSDM_FLTCR1_DFEN_Pos (0U)
  4329. #define DFSDM_FLTCR1_DFEN_Msk (0x1UL << DFSDM_FLTCR1_DFEN_Pos) /*!< 0x00000001 */
  4330. #define DFSDM_FLTCR1_DFEN DFSDM_FLTCR1_DFEN_Msk /*!< DFSDM enable */
  4331. /***************** Bit definition for DFSDM_FLTCR2 register *******************/
  4332. #define DFSDM_FLTCR2_AWDCH_Pos (16U)
  4333. #define DFSDM_FLTCR2_AWDCH_Msk (0xFFUL << DFSDM_FLTCR2_AWDCH_Pos) /*!< 0x00FF0000 */
  4334. #define DFSDM_FLTCR2_AWDCH DFSDM_FLTCR2_AWDCH_Msk /*!< AWDCH[7:0] Analog watchdog channel selection */
  4335. #define DFSDM_FLTCR2_EXCH_Pos (8U)
  4336. #define DFSDM_FLTCR2_EXCH_Msk (0xFFUL << DFSDM_FLTCR2_EXCH_Pos) /*!< 0x0000FF00 */
  4337. #define DFSDM_FLTCR2_EXCH DFSDM_FLTCR2_EXCH_Msk /*!< EXCH[7:0] Extreme detector channel selection */
  4338. #define DFSDM_FLTCR2_CKABIE_Pos (6U)
  4339. #define DFSDM_FLTCR2_CKABIE_Msk (0x1UL << DFSDM_FLTCR2_CKABIE_Pos) /*!< 0x00000040 */
  4340. #define DFSDM_FLTCR2_CKABIE DFSDM_FLTCR2_CKABIE_Msk /*!< Clock absence interrupt enable */
  4341. #define DFSDM_FLTCR2_SCDIE_Pos (5U)
  4342. #define DFSDM_FLTCR2_SCDIE_Msk (0x1UL << DFSDM_FLTCR2_SCDIE_Pos) /*!< 0x00000020 */
  4343. #define DFSDM_FLTCR2_SCDIE DFSDM_FLTCR2_SCDIE_Msk /*!< Short circuit detector interrupt enable */
  4344. #define DFSDM_FLTCR2_AWDIE_Pos (4U)
  4345. #define DFSDM_FLTCR2_AWDIE_Msk (0x1UL << DFSDM_FLTCR2_AWDIE_Pos) /*!< 0x00000010 */
  4346. #define DFSDM_FLTCR2_AWDIE DFSDM_FLTCR2_AWDIE_Msk /*!< Analog watchdog interrupt enable */
  4347. #define DFSDM_FLTCR2_ROVRIE_Pos (3U)
  4348. #define DFSDM_FLTCR2_ROVRIE_Msk (0x1UL << DFSDM_FLTCR2_ROVRIE_Pos) /*!< 0x00000008 */
  4349. #define DFSDM_FLTCR2_ROVRIE DFSDM_FLTCR2_ROVRIE_Msk /*!< Regular data overrun interrupt enable */
  4350. #define DFSDM_FLTCR2_JOVRIE_Pos (2U)
  4351. #define DFSDM_FLTCR2_JOVRIE_Msk (0x1UL << DFSDM_FLTCR2_JOVRIE_Pos) /*!< 0x00000004 */
  4352. #define DFSDM_FLTCR2_JOVRIE DFSDM_FLTCR2_JOVRIE_Msk /*!< Injected data overrun interrupt enable */
  4353. #define DFSDM_FLTCR2_REOCIE_Pos (1U)
  4354. #define DFSDM_FLTCR2_REOCIE_Msk (0x1UL << DFSDM_FLTCR2_REOCIE_Pos) /*!< 0x00000002 */
  4355. #define DFSDM_FLTCR2_REOCIE DFSDM_FLTCR2_REOCIE_Msk /*!< Regular end of conversion interrupt enable */
  4356. #define DFSDM_FLTCR2_JEOCIE_Pos (0U)
  4357. #define DFSDM_FLTCR2_JEOCIE_Msk (0x1UL << DFSDM_FLTCR2_JEOCIE_Pos) /*!< 0x00000001 */
  4358. #define DFSDM_FLTCR2_JEOCIE DFSDM_FLTCR2_JEOCIE_Msk /*!< Injected end of conversion interrupt enable */
  4359. /***************** Bit definition for DFSDM_FLTISR register *******************/
  4360. #define DFSDM_FLTISR_SCDF_Pos (24U)
  4361. #define DFSDM_FLTISR_SCDF_Msk (0xFFUL << DFSDM_FLTISR_SCDF_Pos) /*!< 0xFF000000 */
  4362. #define DFSDM_FLTISR_SCDF DFSDM_FLTISR_SCDF_Msk /*!< SCDF[7:0] Short circuit detector flag */
  4363. #define DFSDM_FLTISR_CKABF_Pos (16U)
  4364. #define DFSDM_FLTISR_CKABF_Msk (0xFFUL << DFSDM_FLTISR_CKABF_Pos) /*!< 0x00FF0000 */
  4365. #define DFSDM_FLTISR_CKABF DFSDM_FLTISR_CKABF_Msk /*!< CKABF[7:0] Clock absence flag */
  4366. #define DFSDM_FLTISR_RCIP_Pos (14U)
  4367. #define DFSDM_FLTISR_RCIP_Msk (0x1UL << DFSDM_FLTISR_RCIP_Pos) /*!< 0x00004000 */
  4368. #define DFSDM_FLTISR_RCIP DFSDM_FLTISR_RCIP_Msk /*!< Regular conversion in progress status */
  4369. #define DFSDM_FLTISR_JCIP_Pos (13U)
  4370. #define DFSDM_FLTISR_JCIP_Msk (0x1UL << DFSDM_FLTISR_JCIP_Pos) /*!< 0x00002000 */
  4371. #define DFSDM_FLTISR_JCIP DFSDM_FLTISR_JCIP_Msk /*!< Injected conversion in progress status */
  4372. #define DFSDM_FLTISR_AWDF_Pos (4U)
  4373. #define DFSDM_FLTISR_AWDF_Msk (0x1UL << DFSDM_FLTISR_AWDF_Pos) /*!< 0x00000010 */
  4374. #define DFSDM_FLTISR_AWDF DFSDM_FLTISR_AWDF_Msk /*!< Analog watchdog */
  4375. #define DFSDM_FLTISR_ROVRF_Pos (3U)
  4376. #define DFSDM_FLTISR_ROVRF_Msk (0x1UL << DFSDM_FLTISR_ROVRF_Pos) /*!< 0x00000008 */
  4377. #define DFSDM_FLTISR_ROVRF DFSDM_FLTISR_ROVRF_Msk /*!< Regular conversion overrun flag */
  4378. #define DFSDM_FLTISR_JOVRF_Pos (2U)
  4379. #define DFSDM_FLTISR_JOVRF_Msk (0x1UL << DFSDM_FLTISR_JOVRF_Pos) /*!< 0x00000004 */
  4380. #define DFSDM_FLTISR_JOVRF DFSDM_FLTISR_JOVRF_Msk /*!< Injected conversion overrun flag */
  4381. #define DFSDM_FLTISR_REOCF_Pos (1U)
  4382. #define DFSDM_FLTISR_REOCF_Msk (0x1UL << DFSDM_FLTISR_REOCF_Pos) /*!< 0x00000002 */
  4383. #define DFSDM_FLTISR_REOCF DFSDM_FLTISR_REOCF_Msk /*!< End of regular conversion flag */
  4384. #define DFSDM_FLTISR_JEOCF_Pos (0U)
  4385. #define DFSDM_FLTISR_JEOCF_Msk (0x1UL << DFSDM_FLTISR_JEOCF_Pos) /*!< 0x00000001 */
  4386. #define DFSDM_FLTISR_JEOCF DFSDM_FLTISR_JEOCF_Msk /*!< End of injected conversion flag */
  4387. /***************** Bit definition for DFSDM_FLTICR register *******************/
  4388. #define DFSDM_FLTICR_CLRSCDF_Pos (24U)
  4389. #define DFSDM_FLTICR_CLRSCDF_Msk (0xFFUL << DFSDM_FLTICR_CLRSCDF_Pos) /*!< 0xFF000000 */
  4390. #define DFSDM_FLTICR_CLRSCDF DFSDM_FLTICR_CLRSCDF_Msk /*!< CLRSCDF[7:0] Clear the short circuit detector flag */
  4391. #define DFSDM_FLTICR_CLRCKABF_Pos (16U)
  4392. #define DFSDM_FLTICR_CLRCKABF_Msk (0xFFUL << DFSDM_FLTICR_CLRCKABF_Pos) /*!< 0x00FF0000 */
  4393. #define DFSDM_FLTICR_CLRCKABF DFSDM_FLTICR_CLRCKABF_Msk /*!< CLRCKABF[7:0] Clear the clock absence flag */
  4394. #define DFSDM_FLTICR_CLRROVRF_Pos (3U)
  4395. #define DFSDM_FLTICR_CLRROVRF_Msk (0x1UL << DFSDM_FLTICR_CLRROVRF_Pos) /*!< 0x00000008 */
  4396. #define DFSDM_FLTICR_CLRROVRF DFSDM_FLTICR_CLRROVRF_Msk /*!< Clear the regular conversion overrun flag */
  4397. #define DFSDM_FLTICR_CLRJOVRF_Pos (2U)
  4398. #define DFSDM_FLTICR_CLRJOVRF_Msk (0x1UL << DFSDM_FLTICR_CLRJOVRF_Pos) /*!< 0x00000004 */
  4399. #define DFSDM_FLTICR_CLRJOVRF DFSDM_FLTICR_CLRJOVRF_Msk /*!< Clear the injected conversion overrun flag */
  4400. /**************** Bit definition for DFSDM_FLTJCHGR register ******************/
  4401. #define DFSDM_FLTJCHGR_JCHG_Pos (0U)
  4402. #define DFSDM_FLTJCHGR_JCHG_Msk (0xFFUL << DFSDM_FLTJCHGR_JCHG_Pos) /*!< 0x000000FF */
  4403. #define DFSDM_FLTJCHGR_JCHG DFSDM_FLTJCHGR_JCHG_Msk /*!< JCHG[7:0] Injected channel group selection */
  4404. /***************** Bit definition for DFSDM_FLTFCR register *******************/
  4405. #define DFSDM_FLTFCR_FORD_Pos (29U)
  4406. #define DFSDM_FLTFCR_FORD_Msk (0x7UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0xE0000000 */
  4407. #define DFSDM_FLTFCR_FORD DFSDM_FLTFCR_FORD_Msk /*!< FORD[2:0] Sinc filter order */
  4408. #define DFSDM_FLTFCR_FORD_2 (0x4UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x80000000 */
  4409. #define DFSDM_FLTFCR_FORD_1 (0x2UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x40000000 */
  4410. #define DFSDM_FLTFCR_FORD_0 (0x1UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x20000000 */
  4411. #define DFSDM_FLTFCR_FOSR_Pos (16U)
  4412. #define DFSDM_FLTFCR_FOSR_Msk (0x3FFUL << DFSDM_FLTFCR_FOSR_Pos) /*!< 0x03FF0000 */
  4413. #define DFSDM_FLTFCR_FOSR DFSDM_FLTFCR_FOSR_Msk /*!< FOSR[9:0] Sinc filter oversampling ratio (decimation rate) */
  4414. #define DFSDM_FLTFCR_IOSR_Pos (0U)
  4415. #define DFSDM_FLTFCR_IOSR_Msk (0xFFUL << DFSDM_FLTFCR_IOSR_Pos) /*!< 0x000000FF */
  4416. #define DFSDM_FLTFCR_IOSR DFSDM_FLTFCR_IOSR_Msk /*!< IOSR[7:0] Integrator oversampling ratio (averaging length) */
  4417. /*************** Bit definition for DFSDM_FLTJDATAR register *****************/
  4418. #define DFSDM_FLTJDATAR_JDATA_Pos (8U)
  4419. #define DFSDM_FLTJDATAR_JDATA_Msk (0xFFFFFFUL << DFSDM_FLTJDATAR_JDATA_Pos)/*!< 0xFFFFFF00 */
  4420. #define DFSDM_FLTJDATAR_JDATA DFSDM_FLTJDATAR_JDATA_Msk /*!< JDATA[23:0] Injected group conversion data */
  4421. #define DFSDM_FLTJDATAR_JDATACH_Pos (0U)
  4422. #define DFSDM_FLTJDATAR_JDATACH_Msk (0x7UL << DFSDM_FLTJDATAR_JDATACH_Pos) /*!< 0x00000007 */
  4423. #define DFSDM_FLTJDATAR_JDATACH DFSDM_FLTJDATAR_JDATACH_Msk /*!< JDATACH[2:0] Injected channel most recently converted */
  4424. /*************** Bit definition for DFSDM_FLTRDATAR register *****************/
  4425. #define DFSDM_FLTRDATAR_RDATA_Pos (8U)
  4426. #define DFSDM_FLTRDATAR_RDATA_Msk (0xFFFFFFUL << DFSDM_FLTRDATAR_RDATA_Pos)/*!< 0xFFFFFF00 */
  4427. #define DFSDM_FLTRDATAR_RDATA DFSDM_FLTRDATAR_RDATA_Msk /*!< RDATA[23:0] Regular channel conversion data */
  4428. #define DFSDM_FLTRDATAR_RPEND_Pos (4U)
  4429. #define DFSDM_FLTRDATAR_RPEND_Msk (0x1UL << DFSDM_FLTRDATAR_RPEND_Pos) /*!< 0x00000010 */
  4430. #define DFSDM_FLTRDATAR_RPEND DFSDM_FLTRDATAR_RPEND_Msk /*!< RPEND Regular channel pending data */
  4431. #define DFSDM_FLTRDATAR_RDATACH_Pos (0U)
  4432. #define DFSDM_FLTRDATAR_RDATACH_Msk (0x7UL << DFSDM_FLTRDATAR_RDATACH_Pos) /*!< 0x00000007 */
  4433. #define DFSDM_FLTRDATAR_RDATACH DFSDM_FLTRDATAR_RDATACH_Msk /*!< RDATACH[2:0] Regular channel most recently converted */
  4434. /*************** Bit definition for DFSDM_FLTAWHTR register ******************/
  4435. #define DFSDM_FLTAWHTR_AWHT_Pos (8U)
  4436. #define DFSDM_FLTAWHTR_AWHT_Msk (0xFFFFFFUL << DFSDM_FLTAWHTR_AWHT_Pos)/*!< 0xFFFFFF00 */
  4437. #define DFSDM_FLTAWHTR_AWHT DFSDM_FLTAWHTR_AWHT_Msk /*!< AWHT[23:0] Analog watchdog high threshold */
  4438. #define DFSDM_FLTAWHTR_BKAWH_Pos (0U)
  4439. #define DFSDM_FLTAWHTR_BKAWH_Msk (0xFUL << DFSDM_FLTAWHTR_BKAWH_Pos) /*!< 0x0000000F */
  4440. #define DFSDM_FLTAWHTR_BKAWH DFSDM_FLTAWHTR_BKAWH_Msk /*!< BKAWH[3:0] Break signal assignment to analog watchdog high threshold event */
  4441. /*************** Bit definition for DFSDM_FLTAWLTR register ******************/
  4442. #define DFSDM_FLTAWLTR_AWLT_Pos (8U)
  4443. #define DFSDM_FLTAWLTR_AWLT_Msk (0xFFFFFFUL << DFSDM_FLTAWLTR_AWLT_Pos)/*!< 0xFFFFFF00 */
  4444. #define DFSDM_FLTAWLTR_AWLT DFSDM_FLTAWLTR_AWLT_Msk /*!< AWLT[23:0] Analog watchdog low threshold */
  4445. #define DFSDM_FLTAWLTR_BKAWL_Pos (0U)
  4446. #define DFSDM_FLTAWLTR_BKAWL_Msk (0xFUL << DFSDM_FLTAWLTR_BKAWL_Pos) /*!< 0x0000000F */
  4447. #define DFSDM_FLTAWLTR_BKAWL DFSDM_FLTAWLTR_BKAWL_Msk /*!< BKAWL[3:0] Break signal assignment to analog watchdog low threshold event */
  4448. /*************** Bit definition for DFSDM_FLTAWSR register *******************/
  4449. #define DFSDM_FLTAWSR_AWHTF_Pos (8U)
  4450. #define DFSDM_FLTAWSR_AWHTF_Msk (0xFFUL << DFSDM_FLTAWSR_AWHTF_Pos) /*!< 0x0000FF00 */
  4451. #define DFSDM_FLTAWSR_AWHTF DFSDM_FLTAWSR_AWHTF_Msk /*!< AWHTF[15:8] Analog watchdog high threshold error on given channels */
  4452. #define DFSDM_FLTAWSR_AWLTF_Pos (0U)
  4453. #define DFSDM_FLTAWSR_AWLTF_Msk (0xFFUL << DFSDM_FLTAWSR_AWLTF_Pos) /*!< 0x000000FF */
  4454. #define DFSDM_FLTAWSR_AWLTF DFSDM_FLTAWSR_AWLTF_Msk /*!< AWLTF[7:0] Analog watchdog low threshold error on given channels */
  4455. /*************** Bit definition for DFSDM_FLTAWCFR register ******************/
  4456. #define DFSDM_FLTAWCFR_CLRAWHTF_Pos (8U)
  4457. #define DFSDM_FLTAWCFR_CLRAWHTF_Msk (0xFFUL << DFSDM_FLTAWCFR_CLRAWHTF_Pos)/*!< 0x0000FF00 */
  4458. #define DFSDM_FLTAWCFR_CLRAWHTF DFSDM_FLTAWCFR_CLRAWHTF_Msk /*!< CLRAWHTF[15:8] Clear the Analog watchdog high threshold flag */
  4459. #define DFSDM_FLTAWCFR_CLRAWLTF_Pos (0U)
  4460. #define DFSDM_FLTAWCFR_CLRAWLTF_Msk (0xFFUL << DFSDM_FLTAWCFR_CLRAWLTF_Pos)/*!< 0x000000FF */
  4461. #define DFSDM_FLTAWCFR_CLRAWLTF DFSDM_FLTAWCFR_CLRAWLTF_Msk /*!< CLRAWLTF[7:0] Clear the Analog watchdog low threshold flag */
  4462. /*************** Bit definition for DFSDM_FLTEXMAX register ******************/
  4463. #define DFSDM_FLTEXMAX_EXMAX_Pos (8U)
  4464. #define DFSDM_FLTEXMAX_EXMAX_Msk (0xFFFFFFUL << DFSDM_FLTEXMAX_EXMAX_Pos)/*!< 0xFFFFFF00 */
  4465. #define DFSDM_FLTEXMAX_EXMAX DFSDM_FLTEXMAX_EXMAX_Msk /*!< EXMAX[23:0] Extreme detector maximum value */
  4466. #define DFSDM_FLTEXMAX_EXMAXCH_Pos (0U)
  4467. #define DFSDM_FLTEXMAX_EXMAXCH_Msk (0x7UL << DFSDM_FLTEXMAX_EXMAXCH_Pos) /*!< 0x00000007 */
  4468. #define DFSDM_FLTEXMAX_EXMAXCH DFSDM_FLTEXMAX_EXMAXCH_Msk /*!< EXMAXCH[2:0] Extreme detector maximum data channel */
  4469. /*************** Bit definition for DFSDM_FLTEXMIN register ******************/
  4470. #define DFSDM_FLTEXMIN_EXMIN_Pos (8U)
  4471. #define DFSDM_FLTEXMIN_EXMIN_Msk (0xFFFFFFUL << DFSDM_FLTEXMIN_EXMIN_Pos)/*!< 0xFFFFFF00 */
  4472. #define DFSDM_FLTEXMIN_EXMIN DFSDM_FLTEXMIN_EXMIN_Msk /*!< EXMIN[23:0] Extreme detector minimum value */
  4473. #define DFSDM_FLTEXMIN_EXMINCH_Pos (0U)
  4474. #define DFSDM_FLTEXMIN_EXMINCH_Msk (0x7UL << DFSDM_FLTEXMIN_EXMINCH_Pos) /*!< 0x00000007 */
  4475. #define DFSDM_FLTEXMIN_EXMINCH DFSDM_FLTEXMIN_EXMINCH_Msk /*!< EXMINCH[2:0] Extreme detector minimum data channel */
  4476. /*************** Bit definition for DFSDM_FLTCNVTIMR register ****************/
  4477. #define DFSDM_FLTCNVTIMR_CNVCNT_Pos (4U)
  4478. #define DFSDM_FLTCNVTIMR_CNVCNT_Msk (0xFFFFFFFUL << DFSDM_FLTCNVTIMR_CNVCNT_Pos)/*!< 0xFFFFFFF0 */
  4479. #define DFSDM_FLTCNVTIMR_CNVCNT DFSDM_FLTCNVTIMR_CNVCNT_Msk /*!< CNVCNT[27:0]: 28-bit timer counting conversion time */
  4480. /******************************************************************************/
  4481. /* */
  4482. /* DMA Controller (DMA) */
  4483. /* */
  4484. /******************************************************************************/
  4485. /******************* Bit definition for DMA_ISR register ********************/
  4486. #define DMA_ISR_GIF1_Pos (0U)
  4487. #define DMA_ISR_GIF1_Msk (0x1UL << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */
  4488. #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  4489. #define DMA_ISR_TCIF1_Pos (1U)
  4490. #define DMA_ISR_TCIF1_Msk (0x1UL << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */
  4491. #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  4492. #define DMA_ISR_HTIF1_Pos (2U)
  4493. #define DMA_ISR_HTIF1_Msk (0x1UL << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */
  4494. #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  4495. #define DMA_ISR_TEIF1_Pos (3U)
  4496. #define DMA_ISR_TEIF1_Msk (0x1UL << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */
  4497. #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  4498. #define DMA_ISR_GIF2_Pos (4U)
  4499. #define DMA_ISR_GIF2_Msk (0x1UL << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */
  4500. #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  4501. #define DMA_ISR_TCIF2_Pos (5U)
  4502. #define DMA_ISR_TCIF2_Msk (0x1UL << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */
  4503. #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  4504. #define DMA_ISR_HTIF2_Pos (6U)
  4505. #define DMA_ISR_HTIF2_Msk (0x1UL << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */
  4506. #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  4507. #define DMA_ISR_TEIF2_Pos (7U)
  4508. #define DMA_ISR_TEIF2_Msk (0x1UL << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */
  4509. #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  4510. #define DMA_ISR_GIF3_Pos (8U)
  4511. #define DMA_ISR_GIF3_Msk (0x1UL << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */
  4512. #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  4513. #define DMA_ISR_TCIF3_Pos (9U)
  4514. #define DMA_ISR_TCIF3_Msk (0x1UL << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */
  4515. #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  4516. #define DMA_ISR_HTIF3_Pos (10U)
  4517. #define DMA_ISR_HTIF3_Msk (0x1UL << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */
  4518. #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  4519. #define DMA_ISR_TEIF3_Pos (11U)
  4520. #define DMA_ISR_TEIF3_Msk (0x1UL << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */
  4521. #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  4522. #define DMA_ISR_GIF4_Pos (12U)
  4523. #define DMA_ISR_GIF4_Msk (0x1UL << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */
  4524. #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  4525. #define DMA_ISR_TCIF4_Pos (13U)
  4526. #define DMA_ISR_TCIF4_Msk (0x1UL << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */
  4527. #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  4528. #define DMA_ISR_HTIF4_Pos (14U)
  4529. #define DMA_ISR_HTIF4_Msk (0x1UL << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */
  4530. #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  4531. #define DMA_ISR_TEIF4_Pos (15U)
  4532. #define DMA_ISR_TEIF4_Msk (0x1UL << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */
  4533. #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  4534. #define DMA_ISR_GIF5_Pos (16U)
  4535. #define DMA_ISR_GIF5_Msk (0x1UL << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */
  4536. #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  4537. #define DMA_ISR_TCIF5_Pos (17U)
  4538. #define DMA_ISR_TCIF5_Msk (0x1UL << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */
  4539. #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  4540. #define DMA_ISR_HTIF5_Pos (18U)
  4541. #define DMA_ISR_HTIF5_Msk (0x1UL << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */
  4542. #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  4543. #define DMA_ISR_TEIF5_Pos (19U)
  4544. #define DMA_ISR_TEIF5_Msk (0x1UL << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */
  4545. #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  4546. #define DMA_ISR_GIF6_Pos (20U)
  4547. #define DMA_ISR_GIF6_Msk (0x1UL << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */
  4548. #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  4549. #define DMA_ISR_TCIF6_Pos (21U)
  4550. #define DMA_ISR_TCIF6_Msk (0x1UL << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */
  4551. #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  4552. #define DMA_ISR_HTIF6_Pos (22U)
  4553. #define DMA_ISR_HTIF6_Msk (0x1UL << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */
  4554. #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  4555. #define DMA_ISR_TEIF6_Pos (23U)
  4556. #define DMA_ISR_TEIF6_Msk (0x1UL << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */
  4557. #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  4558. #define DMA_ISR_GIF7_Pos (24U)
  4559. #define DMA_ISR_GIF7_Msk (0x1UL << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */
  4560. #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  4561. #define DMA_ISR_TCIF7_Pos (25U)
  4562. #define DMA_ISR_TCIF7_Msk (0x1UL << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */
  4563. #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  4564. #define DMA_ISR_HTIF7_Pos (26U)
  4565. #define DMA_ISR_HTIF7_Msk (0x1UL << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */
  4566. #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  4567. #define DMA_ISR_TEIF7_Pos (27U)
  4568. #define DMA_ISR_TEIF7_Msk (0x1UL << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */
  4569. #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  4570. #define DMA_ISR_GIF8_Pos (28U)
  4571. #define DMA_ISR_GIF8_Msk (0x1UL << DMA_ISR_GIF8_Pos) /*!< 0x10000000 */
  4572. #define DMA_ISR_GIF8 DMA_ISR_GIF8_Msk /*!< Channel 8 Global interrupt flag */
  4573. #define DMA_ISR_TCIF8_Pos (29U)
  4574. #define DMA_ISR_TCIF8_Msk (0x1UL << DMA_ISR_TCIF8_Pos) /*!< 0x20000000 */
  4575. #define DMA_ISR_TCIF8 DMA_ISR_TCIF8_Msk /*!< Channel 8 Transfer Complete flag */
  4576. #define DMA_ISR_HTIF8_Pos (30U)
  4577. #define DMA_ISR_HTIF8_Msk (0x1UL << DMA_ISR_HTIF8_Pos) /*!< 0x40000000 */
  4578. #define DMA_ISR_HTIF8 DMA_ISR_HTIF8_Msk /*!< Channel 8 Half Transfer flag */
  4579. #define DMA_ISR_TEIF8_Pos (31U)
  4580. #define DMA_ISR_TEIF8_Msk (0x1UL << DMA_ISR_TEIF8_Pos) /*!< 0x80000000 */
  4581. #define DMA_ISR_TEIF8 DMA_ISR_TEIF8_Msk /*!< Channel 8 Transfer Error flag */
  4582. /******************* Bit definition for DMA_IFCR register *******************/
  4583. #define DMA_IFCR_CGIF1_Pos (0U)
  4584. #define DMA_IFCR_CGIF1_Msk (0x1UL << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */
  4585. #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clearr */
  4586. #define DMA_IFCR_CTCIF1_Pos (1U)
  4587. #define DMA_IFCR_CTCIF1_Msk (0x1UL << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */
  4588. #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  4589. #define DMA_IFCR_CHTIF1_Pos (2U)
  4590. #define DMA_IFCR_CHTIF1_Msk (0x1UL << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */
  4591. #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  4592. #define DMA_IFCR_CTEIF1_Pos (3U)
  4593. #define DMA_IFCR_CTEIF1_Msk (0x1UL << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */
  4594. #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  4595. #define DMA_IFCR_CGIF2_Pos (4U)
  4596. #define DMA_IFCR_CGIF2_Msk (0x1UL << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */
  4597. #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  4598. #define DMA_IFCR_CTCIF2_Pos (5U)
  4599. #define DMA_IFCR_CTCIF2_Msk (0x1UL << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */
  4600. #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  4601. #define DMA_IFCR_CHTIF2_Pos (6U)
  4602. #define DMA_IFCR_CHTIF2_Msk (0x1UL << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */
  4603. #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  4604. #define DMA_IFCR_CTEIF2_Pos (7U)
  4605. #define DMA_IFCR_CTEIF2_Msk (0x1UL << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */
  4606. #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  4607. #define DMA_IFCR_CGIF3_Pos (8U)
  4608. #define DMA_IFCR_CGIF3_Msk (0x1UL << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */
  4609. #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  4610. #define DMA_IFCR_CTCIF3_Pos (9U)
  4611. #define DMA_IFCR_CTCIF3_Msk (0x1UL << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */
  4612. #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  4613. #define DMA_IFCR_CHTIF3_Pos (10U)
  4614. #define DMA_IFCR_CHTIF3_Msk (0x1UL << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */
  4615. #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  4616. #define DMA_IFCR_CTEIF3_Pos (11U)
  4617. #define DMA_IFCR_CTEIF3_Msk (0x1UL << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */
  4618. #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  4619. #define DMA_IFCR_CGIF4_Pos (12U)
  4620. #define DMA_IFCR_CGIF4_Msk (0x1UL << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */
  4621. #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  4622. #define DMA_IFCR_CTCIF4_Pos (13U)
  4623. #define DMA_IFCR_CTCIF4_Msk (0x1UL << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */
  4624. #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  4625. #define DMA_IFCR_CHTIF4_Pos (14U)
  4626. #define DMA_IFCR_CHTIF4_Msk (0x1UL << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */
  4627. #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  4628. #define DMA_IFCR_CTEIF4_Pos (15U)
  4629. #define DMA_IFCR_CTEIF4_Msk (0x1UL << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */
  4630. #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  4631. #define DMA_IFCR_CGIF5_Pos (16U)
  4632. #define DMA_IFCR_CGIF5_Msk (0x1UL << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */
  4633. #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  4634. #define DMA_IFCR_CTCIF5_Pos (17U)
  4635. #define DMA_IFCR_CTCIF5_Msk (0x1UL << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */
  4636. #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  4637. #define DMA_IFCR_CHTIF5_Pos (18U)
  4638. #define DMA_IFCR_CHTIF5_Msk (0x1UL << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */
  4639. #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  4640. #define DMA_IFCR_CTEIF5_Pos (19U)
  4641. #define DMA_IFCR_CTEIF5_Msk (0x1UL << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */
  4642. #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  4643. #define DMA_IFCR_CGIF6_Pos (20U)
  4644. #define DMA_IFCR_CGIF6_Msk (0x1UL << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */
  4645. #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  4646. #define DMA_IFCR_CTCIF6_Pos (21U)
  4647. #define DMA_IFCR_CTCIF6_Msk (0x1UL << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */
  4648. #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  4649. #define DMA_IFCR_CHTIF6_Pos (22U)
  4650. #define DMA_IFCR_CHTIF6_Msk (0x1UL << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */
  4651. #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  4652. #define DMA_IFCR_CTEIF6_Pos (23U)
  4653. #define DMA_IFCR_CTEIF6_Msk (0x1UL << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */
  4654. #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  4655. #define DMA_IFCR_CGIF7_Pos (24U)
  4656. #define DMA_IFCR_CGIF7_Msk (0x1UL << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */
  4657. #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  4658. #define DMA_IFCR_CTCIF7_Pos (25U)
  4659. #define DMA_IFCR_CTCIF7_Msk (0x1UL << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */
  4660. #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  4661. #define DMA_IFCR_CHTIF7_Pos (26U)
  4662. #define DMA_IFCR_CHTIF7_Msk (0x1UL << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */
  4663. #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  4664. #define DMA_IFCR_CTEIF7_Pos (27U)
  4665. #define DMA_IFCR_CTEIF7_Msk (0x1UL << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */
  4666. #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  4667. #define DMA_IFCR_CGIF8_Pos (28U)
  4668. #define DMA_IFCR_CGIF8_Msk (0x1UL << DMA_IFCR_CGIF8_Pos) /*!< 0x10000000 */
  4669. #define DMA_IFCR_CGIF8 DMA_IFCR_CGIF8_Msk /*!< Channel 8 Global interrupt clear */
  4670. #define DMA_IFCR_CTCIF8_Pos (29U)
  4671. #define DMA_IFCR_CTCIF8_Msk (0x1UL << DMA_IFCR_CTCIF8_Pos) /*!< 0x20000000 */
  4672. #define DMA_IFCR_CTCIF8 DMA_IFCR_CTCIF8_Msk /*!< Channel 8 Transfer Complete clear */
  4673. #define DMA_IFCR_CHTIF8_Pos (30U)
  4674. #define DMA_IFCR_CHTIF8_Msk (0x1UL << DMA_IFCR_CHTIF8_Pos) /*!< 0x40000000 */
  4675. #define DMA_IFCR_CHTIF8 DMA_IFCR_CHTIF8_Msk /*!< Channel 8 Half Transfer clear */
  4676. #define DMA_IFCR_CTEIF8_Pos (31U)
  4677. #define DMA_IFCR_CTEIF8_Msk (0x1UL << DMA_IFCR_CTEIF8_Pos) /*!< 0x80000000 */
  4678. #define DMA_IFCR_CTEIF8 DMA_IFCR_CTEIF8_Msk /*!< Channel 8 Transfer Error clear */
  4679. /******************* Bit definition for DMA_CCR register ********************/
  4680. #define DMA_CCR_EN_Pos (0U)
  4681. #define DMA_CCR_EN_Msk (0x1UL << DMA_CCR_EN_Pos) /*!< 0x00000001 */
  4682. #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */
  4683. #define DMA_CCR_TCIE_Pos (1U)
  4684. #define DMA_CCR_TCIE_Msk (0x1UL << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  4685. #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  4686. #define DMA_CCR_HTIE_Pos (2U)
  4687. #define DMA_CCR_HTIE_Msk (0x1UL << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  4688. #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  4689. #define DMA_CCR_TEIE_Pos (3U)
  4690. #define DMA_CCR_TEIE_Msk (0x1UL << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  4691. #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  4692. #define DMA_CCR_DIR_Pos (4U)
  4693. #define DMA_CCR_DIR_Msk (0x1UL << DMA_CCR_DIR_Pos) /*!< 0x00000010 */
  4694. #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */
  4695. #define DMA_CCR_CIRC_Pos (5U)
  4696. #define DMA_CCR_CIRC_Msk (0x1UL << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  4697. #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */
  4698. #define DMA_CCR_PINC_Pos (6U)
  4699. #define DMA_CCR_PINC_Msk (0x1UL << DMA_CCR_PINC_Pos) /*!< 0x00000040 */
  4700. #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  4701. #define DMA_CCR_MINC_Pos (7U)
  4702. #define DMA_CCR_MINC_Msk (0x1UL << DMA_CCR_MINC_Pos) /*!< 0x00000080 */
  4703. #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */
  4704. #define DMA_CCR_PSIZE_Pos (8U)
  4705. #define DMA_CCR_PSIZE_Msk (0x3UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  4706. #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  4707. #define DMA_CCR_PSIZE_0 (0x1UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  4708. #define DMA_CCR_PSIZE_1 (0x2UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  4709. #define DMA_CCR_MSIZE_Pos (10U)
  4710. #define DMA_CCR_MSIZE_Msk (0x3UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  4711. #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  4712. #define DMA_CCR_MSIZE_0 (0x1UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  4713. #define DMA_CCR_MSIZE_1 (0x2UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  4714. #define DMA_CCR_PL_Pos (12U)
  4715. #define DMA_CCR_PL_Msk (0x3UL << DMA_CCR_PL_Pos) /*!< 0x00003000 */
  4716. #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  4717. #define DMA_CCR_PL_0 (0x1UL << DMA_CCR_PL_Pos) /*!< 0x00001000 */
  4718. #define DMA_CCR_PL_1 (0x2UL << DMA_CCR_PL_Pos) /*!< 0x00002000 */
  4719. #define DMA_CCR_MEM2MEM_Pos (14U)
  4720. #define DMA_CCR_MEM2MEM_Msk (0x1UL << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  4721. #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  4722. #define DMA_CCR_DBM_Pos (15U)
  4723. #define DMA_CCR_DBM_Msk (0x1UL << DMA_CCR_DBM_Pos) /*!< 0x00008000 */
  4724. #define DMA_CCR_DBM DMA_CCR_DBM_Msk /*!< Double-buffer mode */
  4725. #define DMA_CCR_CT_Pos (16U)
  4726. #define DMA_CCR_CT_Msk (0x1UL << DMA_CCR_CT_Pos) /*!< 0x00010000 */
  4727. #define DMA_CCR_CT DMA_CCR_CT_Msk /*!< Current target of DMA transfer in double-buffer mode */
  4728. #define DMA_CCR_SECM_Pos (17U)
  4729. #define DMA_CCR_SECM_Msk (0x1UL << DMA_CCR_SECM_Pos) /*!< 0x00020000 */
  4730. #define DMA_CCR_SECM DMA_CCR_SECM_Msk /*!< Secure mode */
  4731. #define DMA_CCR_SSEC_Pos (18U)
  4732. #define DMA_CCR_SSEC_Msk (0x1UL << DMA_CCR_SSEC_Pos) /*!< 0x00040000 */
  4733. #define DMA_CCR_SSEC DMA_CCR_SSEC_Msk /*!< Security of the DMA transfer from the source */
  4734. #define DMA_CCR_DSEC_Pos (19U)
  4735. #define DMA_CCR_DSEC_Msk (0x1UL << DMA_CCR_DSEC_Pos) /*!< 0x00080000 */
  4736. #define DMA_CCR_DSEC DMA_CCR_DSEC_Msk /*!< Security of the DMA transfer to the destination */
  4737. #define DMA_CCR_PRIV_Pos (20U)
  4738. #define DMA_CCR_PRIV_Msk (0x1UL << DMA_CCR_PRIV_Pos) /*!< 0x00100000 */
  4739. #define DMA_CCR_PRIV DMA_CCR_PRIV_Msk /*!< Privileged mode */
  4740. /****************** Bit definition for DMA_CNDTR register *******************/
  4741. #define DMA_CNDTR_NDT_Pos (0U)
  4742. #define DMA_CNDTR_NDT_Msk (0x3FFFFUL << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  4743. #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  4744. /****************** Bit definition for DMA_CPAR register ********************/
  4745. #define DMA_CPAR_PA_Pos (0U)
  4746. #define DMA_CPAR_PA_Msk (0xFFFFFFFFUL << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  4747. #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */
  4748. /****************** Bit definition for DMA_CM0AR register *******************/
  4749. #define DMA_CM0AR_MA_Pos (0U)
  4750. #define DMA_CM0AR_MA_Msk (0xFFFFFFFFUL << DMA_CM0AR_MA_Pos) /*!< 0xFFFFFFFF */
  4751. #define DMA_CM0AR_MA DMA_CM0AR_MA_Msk /*!< Memory 0 Address */
  4752. /****************** Bit definition for DMA_CM1AR register *******************/
  4753. #define DMA_CM1AR_MA_Pos (0U)
  4754. #define DMA_CM1AR_MA_Msk (0xFFFFFFFFUL << DMA_CM1AR_MA_Pos) /*!< 0xFFFFFFFF */
  4755. #define DMA_CM1AR_MA DMA_CM1AR_MA_Msk /*!< Memory 1 Address */
  4756. /******************************************************************************/
  4757. /* */
  4758. /* DMAMUX Controller */
  4759. /* */
  4760. /******************************************************************************/
  4761. /******************** Bits definition for DMAMUX_CxCR register **************/
  4762. #define DMAMUX_CxCR_DMAREQ_ID_Pos (0U)
  4763. #define DMAMUX_CxCR_DMAREQ_ID_Msk (0xFFUL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x000000FF */
  4764. #define DMAMUX_CxCR_DMAREQ_ID DMAMUX_CxCR_DMAREQ_ID_Msk
  4765. #define DMAMUX_CxCR_DMAREQ_ID_0 (0x01UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000001 */
  4766. #define DMAMUX_CxCR_DMAREQ_ID_1 (0x02UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000002 */
  4767. #define DMAMUX_CxCR_DMAREQ_ID_2 (0x04UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000004 */
  4768. #define DMAMUX_CxCR_DMAREQ_ID_3 (0x08UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000008 */
  4769. #define DMAMUX_CxCR_DMAREQ_ID_4 (0x10UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000010 */
  4770. #define DMAMUX_CxCR_DMAREQ_ID_5 (0x20UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000020 */
  4771. #define DMAMUX_CxCR_DMAREQ_ID_6 (0x40UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000040 */
  4772. #define DMAMUX_CxCR_DMAREQ_ID_7 (0x80UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000080 */
  4773. #define DMAMUX_CxCR_SOIE_Pos (8U)
  4774. #define DMAMUX_CxCR_SOIE_Msk (0x1UL << DMAMUX_CxCR_SOIE_Pos)/*!< 0x00000100 */
  4775. #define DMAMUX_CxCR_SOIE DMAMUX_CxCR_SOIE_Msk
  4776. #define DMAMUX_CxCR_EGE_Pos (9U)
  4777. #define DMAMUX_CxCR_EGE_Msk (0x1UL << DMAMUX_CxCR_EGE_Pos)/*!< 0x00000200 */
  4778. #define DMAMUX_CxCR_EGE DMAMUX_CxCR_EGE_Msk
  4779. #define DMAMUX_CxCR_SE_Pos (16U)
  4780. #define DMAMUX_CxCR_SE_Msk (0x1UL << DMAMUX_CxCR_SE_Pos)/*!< 0x00010000 */
  4781. #define DMAMUX_CxCR_SE DMAMUX_CxCR_SE_Msk
  4782. #define DMAMUX_CxCR_SPOL_Pos (17U)
  4783. #define DMAMUX_CxCR_SPOL_Msk (0x3UL << DMAMUX_CxCR_SPOL_Pos)/*!< 0x00060000 */
  4784. #define DMAMUX_CxCR_SPOL DMAMUX_CxCR_SPOL_Msk
  4785. #define DMAMUX_CxCR_SPOL_0 (0x1UL << DMAMUX_CxCR_SPOL_Pos)/*!< 0x00020000 */
  4786. #define DMAMUX_CxCR_SPOL_1 (0x2UL << DMAMUX_CxCR_SPOL_Pos)/*!< 0x00040000 */
  4787. #define DMAMUX_CxCR_NBREQ_Pos (19U)
  4788. #define DMAMUX_CxCR_NBREQ_Msk (0x1FUL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00F80000 */
  4789. #define DMAMUX_CxCR_NBREQ DMAMUX_CxCR_NBREQ_Msk
  4790. #define DMAMUX_CxCR_NBREQ_0 (0x01UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00080000 */
  4791. #define DMAMUX_CxCR_NBREQ_1 (0x02UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00100000 */
  4792. #define DMAMUX_CxCR_NBREQ_2 (0x04UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00200000 */
  4793. #define DMAMUX_CxCR_NBREQ_3 (0x08UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00400000 */
  4794. #define DMAMUX_CxCR_NBREQ_4 (0x10UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00800000 */
  4795. #define DMAMUX_CxCR_SYNC_ID_Pos (24U)
  4796. #define DMAMUX_CxCR_SYNC_ID_Msk (0x1FUL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x1F000000 */
  4797. #define DMAMUX_CxCR_SYNC_ID DMAMUX_CxCR_SYNC_ID_Msk
  4798. #define DMAMUX_CxCR_SYNC_ID_0 (0x01UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x01000000 */
  4799. #define DMAMUX_CxCR_SYNC_ID_1 (0x02UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x02000000 */
  4800. #define DMAMUX_CxCR_SYNC_ID_2 (0x04UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x04000000 */
  4801. #define DMAMUX_CxCR_SYNC_ID_3 (0x08UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x08000000 */
  4802. #define DMAMUX_CxCR_SYNC_ID_4 (0x10UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x10000000 */
  4803. /******************** Bits definition for DMAMUX_CSR register ****************/
  4804. #define DMAMUX_CSR_SOF0_Pos (0U)
  4805. #define DMAMUX_CSR_SOF0_Msk (0x1UL << DMAMUX_CSR_SOF0_Pos)/*!< 0x00000001 */
  4806. #define DMAMUX_CSR_SOF0 DMAMUX_CSR_SOF0_Msk
  4807. #define DMAMUX_CSR_SOF1_Pos (1U)
  4808. #define DMAMUX_CSR_SOF1_Msk (0x1UL << DMAMUX_CSR_SOF1_Pos)/*!< 0x00000002 */
  4809. #define DMAMUX_CSR_SOF1 DMAMUX_CSR_SOF1_Msk
  4810. #define DMAMUX_CSR_SOF2_Pos (2U)
  4811. #define DMAMUX_CSR_SOF2_Msk (0x1UL << DMAMUX_CSR_SOF2_Pos)/*!< 0x00000004 */
  4812. #define DMAMUX_CSR_SOF2 DMAMUX_CSR_SOF2_Msk
  4813. #define DMAMUX_CSR_SOF3_Pos (3U)
  4814. #define DMAMUX_CSR_SOF3_Msk (0x1UL << DMAMUX_CSR_SOF3_Pos)/*!< 0x00000008 */
  4815. #define DMAMUX_CSR_SOF3 DMAMUX_CSR_SOF3_Msk
  4816. #define DMAMUX_CSR_SOF4_Pos (4U)
  4817. #define DMAMUX_CSR_SOF4_Msk (0x1UL << DMAMUX_CSR_SOF4_Pos)/*!< 0x00000010 */
  4818. #define DMAMUX_CSR_SOF4 DMAMUX_CSR_SOF4_Msk
  4819. #define DMAMUX_CSR_SOF5_Pos (5U)
  4820. #define DMAMUX_CSR_SOF5_Msk (0x1UL << DMAMUX_CSR_SOF5_Pos)/*!< 0x00000020 */
  4821. #define DMAMUX_CSR_SOF5 DMAMUX_CSR_SOF5_Msk
  4822. #define DMAMUX_CSR_SOF6_Pos (6U)
  4823. #define DMAMUX_CSR_SOF6_Msk (0x1UL << DMAMUX_CSR_SOF6_Pos)/*!< 0x00000040 */
  4824. #define DMAMUX_CSR_SOF6 DMAMUX_CSR_SOF6_Msk
  4825. #define DMAMUX_CSR_SOF7_Pos (7U)
  4826. #define DMAMUX_CSR_SOF7_Msk (0x1UL << DMAMUX_CSR_SOF7_Pos)/*!< 0x00000080 */
  4827. #define DMAMUX_CSR_SOF7 DMAMUX_CSR_SOF7_Msk
  4828. #define DMAMUX_CSR_SOF8_Pos (8U)
  4829. #define DMAMUX_CSR_SOF8_Msk (0x1UL << DMAMUX_CSR_SOF8_Pos)/*!< 0x00000100 */
  4830. #define DMAMUX_CSR_SOF8 DMAMUX_CSR_SOF8_Msk
  4831. #define DMAMUX_CSR_SOF9_Pos (9U)
  4832. #define DMAMUX_CSR_SOF9_Msk (0x1UL << DMAMUX_CSR_SOF9_Pos)/*!< 0x00000200 */
  4833. #define DMAMUX_CSR_SOF9 DMAMUX_CSR_SOF9_Msk
  4834. #define DMAMUX_CSR_SOF10_Pos (10U)
  4835. #define DMAMUX_CSR_SOF10_Msk (0x1UL << DMAMUX_CSR_SOF10_Pos)/*!< 0x00000400 */
  4836. #define DMAMUX_CSR_SOF10 DMAMUX_CSR_SOF10_Msk
  4837. #define DMAMUX_CSR_SOF11_Pos (11U)
  4838. #define DMAMUX_CSR_SOF11_Msk (0x1UL << DMAMUX_CSR_SOF11_Pos)/*!< 0x00000800 */
  4839. #define DMAMUX_CSR_SOF11 DMAMUX_CSR_SOF11_Msk
  4840. #define DMAMUX_CSR_SOF12_Pos (12U)
  4841. #define DMAMUX_CSR_SOF12_Msk (0x1UL << DMAMUX_CSR_SOF12_Pos)/*!< 0x00001000 */
  4842. #define DMAMUX_CSR_SOF12 DMAMUX_CSR_SOF12_Msk
  4843. #define DMAMUX_CSR_SOF13_Pos (13U)
  4844. #define DMAMUX_CSR_SOF13_Msk (0x1UL << DMAMUX_CSR_SOF13_Pos)/*!< 0x00002000 */
  4845. #define DMAMUX_CSR_SOF13 DMAMUX_CSR_SOF13_Msk
  4846. #define DMAMUX_CSR_SOF14_Pos (14U)
  4847. #define DMAMUX_CSR_SOF14_Msk (0x1UL << DMAMUX_CSR_SOF14_Pos)/*!< 0x00004000 */
  4848. #define DMAMUX_CSR_SOF14 DMAMUX_CSR_SOF14_Msk
  4849. #define DMAMUX_CSR_SOF15_Pos (15U)
  4850. #define DMAMUX_CSR_SOF15_Msk (0x1UL << DMAMUX_CSR_SOF15_Pos)/*!< 0x00008000 */
  4851. #define DMAMUX_CSR_SOF15 DMAMUX_CSR_SOF15_Msk
  4852. /******************** Bits definition for DMAMUX_CFR register ****************/
  4853. #define DMAMUX_CFR_CSOF0_Pos (0U)
  4854. #define DMAMUX_CFR_CSOF0_Msk (0x1UL << DMAMUX_CFR_CSOF0_Pos)/*!< 0x00000001 */
  4855. #define DMAMUX_CFR_CSOF0 DMAMUX_CFR_CSOF0_Msk
  4856. #define DMAMUX_CFR_CSOF1_Pos (1U)
  4857. #define DMAMUX_CFR_CSOF1_Msk (0x1UL << DMAMUX_CFR_CSOF1_Pos)/*!< 0x00000002 */
  4858. #define DMAMUX_CFR_CSOF1 DMAMUX_CFR_CSOF1_Msk
  4859. #define DMAMUX_CFR_CSOF2_Pos (2U)
  4860. #define DMAMUX_CFR_CSOF2_Msk (0x1UL << DMAMUX_CFR_CSOF2_Pos)/*!< 0x00000004 */
  4861. #define DMAMUX_CFR_CSOF2 DMAMUX_CFR_CSOF2_Msk
  4862. #define DMAMUX_CFR_CSOF3_Pos (3U)
  4863. #define DMAMUX_CFR_CSOF3_Msk (0x1UL << DMAMUX_CFR_CSOF3_Pos)/*!< 0x00000008 */
  4864. #define DMAMUX_CFR_CSOF3 DMAMUX_CFR_CSOF3_Msk
  4865. #define DMAMUX_CFR_CSOF4_Pos (4U)
  4866. #define DMAMUX_CFR_CSOF4_Msk (0x1UL << DMAMUX_CFR_CSOF4_Pos)/*!< 0x00000010 */
  4867. #define DMAMUX_CFR_CSOF4 DMAMUX_CFR_CSOF4_Msk
  4868. #define DMAMUX_CFR_CSOF5_Pos (5U)
  4869. #define DMAMUX_CFR_CSOF5_Msk (0x1UL << DMAMUX_CFR_CSOF5_Pos)/*!< 0x00000020 */
  4870. #define DMAMUX_CFR_CSOF5 DMAMUX_CFR_CSOF5_Msk
  4871. #define DMAMUX_CFR_CSOF6_Pos (6U)
  4872. #define DMAMUX_CFR_CSOF6_Msk (0x1UL << DMAMUX_CFR_CSOF6_Pos)/*!< 0x00000040 */
  4873. #define DMAMUX_CFR_CSOF6 DMAMUX_CFR_CSOF6_Msk
  4874. #define DMAMUX_CFR_CSOF7_Pos (7U)
  4875. #define DMAMUX_CFR_CSOF7_Msk (0x1UL << DMAMUX_CFR_CSOF7_Pos)/*!< 0x00000080 */
  4876. #define DMAMUX_CFR_CSOF7 DMAMUX_CFR_CSOF7_Msk
  4877. #define DMAMUX_CFR_CSOF8_Pos (8U)
  4878. #define DMAMUX_CFR_CSOF8_Msk (0x1UL << DMAMUX_CFR_CSOF8_Pos)/*!< 0x00000100 */
  4879. #define DMAMUX_CFR_CSOF8 DMAMUX_CFR_CSOF8_Msk
  4880. #define DMAMUX_CFR_CSOF9_Pos (9U)
  4881. #define DMAMUX_CFR_CSOF9_Msk (0x1UL << DMAMUX_CFR_CSOF9_Pos)/*!< 0x00000200 */
  4882. #define DMAMUX_CFR_CSOF9 DMAMUX_CFR_CSOF9_Msk
  4883. #define DMAMUX_CFR_CSOF10_Pos (10U)
  4884. #define DMAMUX_CFR_CSOF10_Msk (0x1UL << DMAMUX_CFR_CSOF10_Pos)/*!< 0x00000400 */
  4885. #define DMAMUX_CFR_CSOF10 DMAMUX_CFR_CSOF10_Msk
  4886. #define DMAMUX_CFR_CSOF11_Pos (11U)
  4887. #define DMAMUX_CFR_CSOF11_Msk (0x1UL << DMAMUX_CFR_CSOF11_Pos)/*!< 0x00000800 */
  4888. #define DMAMUX_CFR_CSOF11 DMAMUX_CFR_CSOF11_Msk
  4889. #define DMAMUX_CFR_CSOF12_Pos (12U)
  4890. #define DMAMUX_CFR_CSOF12_Msk (0x1UL << DMAMUX_CFR_CSOF12_Pos)/*!< 0x00001000 */
  4891. #define DMAMUX_CFR_CSOF12 DMAMUX_CFR_CSOF12_Msk
  4892. #define DMAMUX_CFR_CSOF13_Pos (13U)
  4893. #define DMAMUX_CFR_CSOF13_Msk (0x1UL << DMAMUX_CFR_CSOF13_Pos)/*!< 0x00002000 */
  4894. #define DMAMUX_CFR_CSOF13 DMAMUX_CFR_CSOF13_Msk
  4895. #define DMAMUX_CFR_CSOF14_Pos (14U)
  4896. #define DMAMUX_CFR_CSOF14_Msk (0x1UL << DMAMUX_CFR_CSOF14_Pos)/*!< 0x00004000 */
  4897. #define DMAMUX_CFR_CSOF14 DMAMUX_CFR_CSOF14_Msk
  4898. #define DMAMUX_CFR_CSOF15_Pos (15U)
  4899. #define DMAMUX_CFR_CSOF15_Msk (0x1UL << DMAMUX_CFR_CSOF15_Pos)/*!< 0x00008000 */
  4900. #define DMAMUX_CFR_CSOF15 DMAMUX_CFR_CSOF15_Msk
  4901. /******************** Bits definition for DMAMUX_RGxCR register ************/
  4902. #define DMAMUX_RGxCR_SIG_ID_Pos (0U)
  4903. #define DMAMUX_RGxCR_SIG_ID_Msk (0x1FUL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x0000001F */
  4904. #define DMAMUX_RGxCR_SIG_ID DMAMUX_RGxCR_SIG_ID_Msk
  4905. #define DMAMUX_RGxCR_SIG_ID_0 (0x01UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000001 */
  4906. #define DMAMUX_RGxCR_SIG_ID_1 (0x02UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000002 */
  4907. #define DMAMUX_RGxCR_SIG_ID_2 (0x04UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000004 */
  4908. #define DMAMUX_RGxCR_SIG_ID_3 (0x08UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000008 */
  4909. #define DMAMUX_RGxCR_SIG_ID_4 (0x10UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000010 */
  4910. #define DMAMUX_RGxCR_OIE_Pos (8U)
  4911. #define DMAMUX_RGxCR_OIE_Msk (0x1UL << DMAMUX_RGxCR_OIE_Pos)/*!< 0x00000100 */
  4912. #define DMAMUX_RGxCR_OIE DMAMUX_RGxCR_OIE_Msk
  4913. #define DMAMUX_RGxCR_GE_Pos (16U)
  4914. #define DMAMUX_RGxCR_GE_Msk (0x1UL << DMAMUX_RGxCR_GE_Pos)/*!< 0x00010000 */
  4915. #define DMAMUX_RGxCR_GE DMAMUX_RGxCR_GE_Msk
  4916. #define DMAMUX_RGxCR_GPOL_Pos (17U)
  4917. #define DMAMUX_RGxCR_GPOL_Msk (0x3UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00060000 */
  4918. #define DMAMUX_RGxCR_GPOL DMAMUX_RGxCR_GPOL_Msk
  4919. #define DMAMUX_RGxCR_GPOL_0 (0x1UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00020000 */
  4920. #define DMAMUX_RGxCR_GPOL_1 (0x2UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00040000 */
  4921. #define DMAMUX_RGxCR_GNBREQ_Pos (19U)
  4922. #define DMAMUX_RGxCR_GNBREQ_Msk (0x1FUL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00F80000 */
  4923. #define DMAMUX_RGxCR_GNBREQ DMAMUX_RGxCR_GNBREQ_Msk
  4924. #define DMAMUX_RGxCR_GNBREQ_0 (0x01UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00080000 */
  4925. #define DMAMUX_RGxCR_GNBREQ_1 (0x02UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00100000 */
  4926. #define DMAMUX_RGxCR_GNBREQ_2 (0x04UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00200000 */
  4927. #define DMAMUX_RGxCR_GNBREQ_3 (0x08UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00400000 */
  4928. #define DMAMUX_RGxCR_GNBREQ_4 (0x10UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00800000 */
  4929. /******************** Bits definition for DMAMUX_RGSR register **************/
  4930. #define DMAMUX_RGSR_OF0_Pos (0U)
  4931. #define DMAMUX_RGSR_OF0_Msk (0x1UL << DMAMUX_RGSR_OF0_Pos)/*!< 0x00000001 */
  4932. #define DMAMUX_RGSR_OF0 DMAMUX_RGSR_OF0_Msk
  4933. #define DMAMUX_RGSR_OF1_Pos (1U)
  4934. #define DMAMUX_RGSR_OF1_Msk (0x1UL << DMAMUX_RGSR_OF1_Pos)/*!< 0x00000002 */
  4935. #define DMAMUX_RGSR_OF1 DMAMUX_RGSR_OF1_Msk
  4936. #define DMAMUX_RGSR_OF2_Pos (2U)
  4937. #define DMAMUX_RGSR_OF2_Msk (0x1UL << DMAMUX_RGSR_OF2_Pos)/*!< 0x00000004 */
  4938. #define DMAMUX_RGSR_OF2 DMAMUX_RGSR_OF2_Msk
  4939. #define DMAMUX_RGSR_OF3_Pos (3U)
  4940. #define DMAMUX_RGSR_OF3_Msk (0x1UL << DMAMUX_RGSR_OF3_Pos)/*!< 0x00000008 */
  4941. #define DMAMUX_RGSR_OF3 DMAMUX_RGSR_OF3_Msk
  4942. /******************** Bits definition for DMAMUX_RGCFR register ************/
  4943. #define DMAMUX_RGCFR_COF0_Pos (0U)
  4944. #define DMAMUX_RGCFR_COF0_Msk (0x1UL << DMAMUX_RGCFR_COF0_Pos)/*!< 0x00000001 */
  4945. #define DMAMUX_RGCFR_COF0 DMAMUX_RGCFR_COF0_Msk
  4946. #define DMAMUX_RGCFR_COF1_Pos (1U)
  4947. #define DMAMUX_RGCFR_COF1_Msk (0x1UL << DMAMUX_RGCFR_COF1_Pos)/*!< 0x00000002 */
  4948. #define DMAMUX_RGCFR_COF1 DMAMUX_RGCFR_COF1_Msk
  4949. #define DMAMUX_RGCFR_COF2_Pos (2U)
  4950. #define DMAMUX_RGCFR_COF2_Msk (0x1UL << DMAMUX_RGCFR_COF2_Pos)/*!< 0x00000004 */
  4951. #define DMAMUX_RGCFR_COF2 DMAMUX_RGCFR_COF2_Msk
  4952. #define DMAMUX_RGCFR_COF3_Pos (3U)
  4953. #define DMAMUX_RGCFR_COF3_Msk (0x1UL << DMAMUX_RGCFR_COF3_Pos)/*!< 0x00000008 */
  4954. #define DMAMUX_RGCFR_COF3 DMAMUX_RGCFR_COF3_Msk
  4955. /*****************************************************************************/
  4956. /* */
  4957. /* External Interrupt/Event Controller */
  4958. /* */
  4959. /*****************************************************************************/
  4960. /******************* Bit definition for EXTI_RTSR1 register ****************/
  4961. #define EXTI_RTSR1_RT0_Pos (0U)
  4962. #define EXTI_RTSR1_RT0_Msk (0x1UL << EXTI_RTSR1_RT0_Pos) /*!< 0x00000001 */
  4963. #define EXTI_RTSR1_RT0 EXTI_RTSR1_RT0_Msk /*!< Rising trigger configuration for input line 0 */
  4964. #define EXTI_RTSR1_RT1_Pos (1U)
  4965. #define EXTI_RTSR1_RT1_Msk (0x1UL << EXTI_RTSR1_RT1_Pos) /*!< 0x00000002 */
  4966. #define EXTI_RTSR1_RT1 EXTI_RTSR1_RT1_Msk /*!< Rising trigger configuration for input line 1 */
  4967. #define EXTI_RTSR1_RT2_Pos (2U)
  4968. #define EXTI_RTSR1_RT2_Msk (0x1UL << EXTI_RTSR1_RT2_Pos) /*!< 0x00000004 */
  4969. #define EXTI_RTSR1_RT2 EXTI_RTSR1_RT2_Msk /*!< Rising trigger configuration for input line 2 */
  4970. #define EXTI_RTSR1_RT3_Pos (3U)
  4971. #define EXTI_RTSR1_RT3_Msk (0x1UL << EXTI_RTSR1_RT3_Pos) /*!< 0x00000008 */
  4972. #define EXTI_RTSR1_RT3 EXTI_RTSR1_RT3_Msk /*!< Rising trigger configuration for input line 3 */
  4973. #define EXTI_RTSR1_RT4_Pos (4U)
  4974. #define EXTI_RTSR1_RT4_Msk (0x1UL << EXTI_RTSR1_RT4_Pos) /*!< 0x00000010 */
  4975. #define EXTI_RTSR1_RT4 EXTI_RTSR1_RT4_Msk /*!< Rising trigger configuration for input line 4 */
  4976. #define EXTI_RTSR1_RT5_Pos (5U)
  4977. #define EXTI_RTSR1_RT5_Msk (0x1UL << EXTI_RTSR1_RT5_Pos) /*!< 0x00000020 */
  4978. #define EXTI_RTSR1_RT5 EXTI_RTSR1_RT5_Msk /*!< Rising trigger configuration for input line 5 */
  4979. #define EXTI_RTSR1_RT6_Pos (6U)
  4980. #define EXTI_RTSR1_RT6_Msk (0x1UL << EXTI_RTSR1_RT6_Pos) /*!< 0x00000040 */
  4981. #define EXTI_RTSR1_RT6 EXTI_RTSR1_RT6_Msk /*!< Rising trigger configuration for input line 6 */
  4982. #define EXTI_RTSR1_RT7_Pos (7U)
  4983. #define EXTI_RTSR1_RT7_Msk (0x1UL << EXTI_RTSR1_RT7_Pos) /*!< 0x00000080 */
  4984. #define EXTI_RTSR1_RT7 EXTI_RTSR1_RT7_Msk /*!< Rising trigger configuration for input line 7 */
  4985. #define EXTI_RTSR1_RT8_Pos (8U)
  4986. #define EXTI_RTSR1_RT8_Msk (0x1UL << EXTI_RTSR1_RT8_Pos) /*!< 0x00000100 */
  4987. #define EXTI_RTSR1_RT8 EXTI_RTSR1_RT8_Msk /*!< Rising trigger configuration for input line 8 */
  4988. #define EXTI_RTSR1_RT9_Pos (9U)
  4989. #define EXTI_RTSR1_RT9_Msk (0x1UL << EXTI_RTSR1_RT9_Pos) /*!< 0x00000200 */
  4990. #define EXTI_RTSR1_RT9 EXTI_RTSR1_RT9_Msk /*!< Rising trigger configuration for input line 9 */
  4991. #define EXTI_RTSR1_RT10_Pos (10U)
  4992. #define EXTI_RTSR1_RT10_Msk (0x1UL << EXTI_RTSR1_RT10_Pos) /*!< 0x00000400 */
  4993. #define EXTI_RTSR1_RT10 EXTI_RTSR1_RT10_Msk /*!< Rising trigger configuration for input line 10 */
  4994. #define EXTI_RTSR1_RT11_Pos (11U)
  4995. #define EXTI_RTSR1_RT11_Msk (0x1UL << EXTI_RTSR1_RT11_Pos) /*!< 0x00000800 */
  4996. #define EXTI_RTSR1_RT11 EXTI_RTSR1_RT11_Msk /*!< Rising trigger configuration for input line 11 */
  4997. #define EXTI_RTSR1_RT12_Pos (12U)
  4998. #define EXTI_RTSR1_RT12_Msk (0x1UL << EXTI_RTSR1_RT12_Pos) /*!< 0x00001000 */
  4999. #define EXTI_RTSR1_RT12 EXTI_RTSR1_RT12_Msk /*!< Rising trigger configuration for input line 12 */
  5000. #define EXTI_RTSR1_RT13_Pos (13U)
  5001. #define EXTI_RTSR1_RT13_Msk (0x1UL << EXTI_RTSR1_RT13_Pos) /*!< 0x00002000 */
  5002. #define EXTI_RTSR1_RT13 EXTI_RTSR1_RT13_Msk /*!< Rising trigger configuration for input line 13 */
  5003. #define EXTI_RTSR1_RT14_Pos (14U)
  5004. #define EXTI_RTSR1_RT14_Msk (0x1UL << EXTI_RTSR1_RT14_Pos) /*!< 0x00004000 */
  5005. #define EXTI_RTSR1_RT14 EXTI_RTSR1_RT14_Msk /*!< Rising trigger configuration for input line 14 */
  5006. #define EXTI_RTSR1_RT15_Pos (15U)
  5007. #define EXTI_RTSR1_RT15_Msk (0x1UL << EXTI_RTSR1_RT15_Pos) /*!< 0x00008000 */
  5008. #define EXTI_RTSR1_RT15 EXTI_RTSR1_RT15_Msk /*!< Rising trigger configuration for input line 15 */
  5009. #define EXTI_RTSR1_RT16_Pos (16U)
  5010. #define EXTI_RTSR1_RT16_Msk (0x1UL << EXTI_RTSR1_RT16_Pos) /*!< 0x00010000 */
  5011. #define EXTI_RTSR1_RT16 EXTI_RTSR1_RT16_Msk /*!< Rising trigger configuration for input line 16 */
  5012. #define EXTI_RTSR1_RT21_Pos (21U)
  5013. #define EXTI_RTSR1_RT21_Msk (0x1UL << EXTI_RTSR1_RT21_Pos) /*!< 0x00200000 */
  5014. #define EXTI_RTSR1_RT21 EXTI_RTSR1_RT21_Msk /*!< Rising trigger configuration for input line 21 */
  5015. #define EXTI_RTSR1_RT22_Pos (22U)
  5016. #define EXTI_RTSR1_RT22_Msk (0x1UL << EXTI_RTSR1_RT22_Pos) /*!< 0x00400000 */
  5017. #define EXTI_RTSR1_RT22 EXTI_RTSR1_RT22_Msk /*!< Rising trigger configuration for input line 22 */
  5018. #define EXTI_RTSR1_RT23_Pos (23U)
  5019. #define EXTI_RTSR1_RT23_Msk (0x1UL << EXTI_RTSR1_RT23_Pos) /*!< 0x00800000 */
  5020. #define EXTI_RTSR1_RT23 EXTI_RTSR1_RT23_Msk /*!< Rising trigger configuration for input line 23 */
  5021. #define EXTI_RTSR1_RT24_Pos (24U)
  5022. #define EXTI_RTSR1_RT24_Msk (0x1UL << EXTI_RTSR1_RT24_Pos) /*!< 0x01000000 */
  5023. #define EXTI_RTSR1_RT24 EXTI_RTSR1_RT24_Msk /*!< Rising trigger configuration for input line 24 */
  5024. #define EXTI_RTSR1_RT25_Pos (25U)
  5025. #define EXTI_RTSR1_RT25_Msk (0x1UL << EXTI_RTSR1_RT25_Pos) /*!< 0x02000000 */
  5026. #define EXTI_RTSR1_RT25 EXTI_RTSR1_RT25_Msk /*!< Rising trigger configuration for input line 25 */
  5027. #define EXTI_RTSR1_RT26_Pos (26U)
  5028. #define EXTI_RTSR1_RT26_Msk (0x1UL << EXTI_RTSR1_RT26_Pos) /*!< 0x04000000 */
  5029. #define EXTI_RTSR1_RT26 EXTI_RTSR1_RT26_Msk /*!< Rising trigger configuration for input line 26 */
  5030. #define EXTI_RTSR1_RT27_Pos (27U)
  5031. #define EXTI_RTSR1_RT27_Msk (0x1UL << EXTI_RTSR1_RT27_Pos) /*!< 0x08000000 */
  5032. #define EXTI_RTSR1_RT27 EXTI_RTSR1_RT27_Msk /*!< Rising trigger configuration for input line 27 */
  5033. #define EXTI_RTSR1_RT28_Pos (28U)
  5034. #define EXTI_RTSR1_RT28_Msk (0x1UL << EXTI_RTSR1_RT28_Pos) /*!< 0x10000000 */
  5035. #define EXTI_RTSR1_RT28 EXTI_RTSR1_RT28_Msk /*!< Rising trigger configuration for input line 28 */
  5036. #define EXTI_RTSR1_RT29_Pos (29U)
  5037. #define EXTI_RTSR1_RT29_Msk (0x1UL << EXTI_RTSR1_RT29_Pos) /*!< 0x20000000 */
  5038. #define EXTI_RTSR1_RT29 EXTI_RTSR1_RT29_Msk /*!< Rising trigger configuration for input line 29 */
  5039. #define EXTI_RTSR1_RT30_Pos (30U)
  5040. #define EXTI_RTSR1_RT30_Msk (0x1UL << EXTI_RTSR1_RT30_Pos) /*!< 0x40000000 */
  5041. #define EXTI_RTSR1_RT30 EXTI_RTSR1_RT30_Msk /*!< Rising trigger configuration for input line 30 */
  5042. #define EXTI_RTSR1_RT31_Pos (31U)
  5043. #define EXTI_RTSR1_RT31_Msk (0x1UL << EXTI_RTSR1_RT31_Pos) /*!< 0x80000000 */
  5044. #define EXTI_RTSR1_RT31 EXTI_RTSR1_RT31_Msk /*!< Rising trigger configuration for input line 31 */
  5045. /******************* Bit definition for EXTI_RTSR2 register ****************/
  5046. #define EXTI_RTSR2_RT32_Pos (0U)
  5047. #define EXTI_RTSR2_RT32_Msk (0x1UL << EXTI_RTSR2_RT32_Pos) /*!< 0x00000001 */
  5048. #define EXTI_RTSR2_RT32 EXTI_RTSR2_RT32_Msk /*!< Rising trigger configuration for input line 32 */
  5049. #define EXTI_RTSR2_RT33_Pos (1U)
  5050. #define EXTI_RTSR2_RT33_Msk (0x1UL << EXTI_RTSR2_RT33_Pos) /*!< 0x00000002 */
  5051. #define EXTI_RTSR2_RT33 EXTI_RTSR2_RT33_Msk /*!< Rising trigger configuration for input line 33 */
  5052. #define EXTI_RTSR2_RT34_Pos (2U)
  5053. #define EXTI_RTSR2_RT34_Msk (0x1UL << EXTI_RTSR2_RT34_Pos) /*!< 0x00000004 */
  5054. #define EXTI_RTSR2_RT34 EXTI_RTSR2_RT34_Msk /*!< Rising trigger configuration for input line 34 */
  5055. #define EXTI_RTSR2_RT35_Pos (3U)
  5056. #define EXTI_RTSR2_RT35_Msk (0x1UL << EXTI_RTSR2_RT35_Pos) /*!< 0x00000008 */
  5057. #define EXTI_RTSR2_RT35 EXTI_RTSR2_RT35_Msk /*!< Rising trigger configuration for input line 35 */
  5058. #define EXTI_RTSR2_RT36_Pos (4U)
  5059. #define EXTI_RTSR2_RT36_Msk (0x1UL << EXTI_RTSR2_RT36_Pos) /*!< 0x00000010 */
  5060. #define EXTI_RTSR2_RT36 EXTI_RTSR2_RT36_Msk /*!< Rising trigger configuration for input line 36 */
  5061. #define EXTI_RTSR2_RT37_Pos (5U)
  5062. #define EXTI_RTSR2_RT37_Msk (0x1UL << EXTI_RTSR2_RT37_Pos) /*!< 0x00000020 */
  5063. #define EXTI_RTSR2_RT37 EXTI_RTSR2_RT37_Msk /*!< Rising trigger configuration for input line 37 */
  5064. #define EXTI_RTSR2_RT38_Pos (6U)
  5065. #define EXTI_RTSR2_RT38_Msk (0x1UL << EXTI_RTSR2_RT38_Pos) /*!< 0x00000040 */
  5066. #define EXTI_RTSR2_RT38 EXTI_RTSR2_RT38_Msk /*!< Rising trigger configuration for input line 38 */
  5067. #define EXTI_RTSR2_RT39_Pos (7U)
  5068. #define EXTI_RTSR2_RT39_Msk (0x1UL << EXTI_RTSR2_RT39_Pos) /*!< 0x00000080 */
  5069. #define EXTI_RTSR2_RT39 EXTI_RTSR2_RT39_Msk /*!< Rising trigger configuration for input line 39 */
  5070. #define EXTI_RTSR2_RT40_Pos (8U)
  5071. #define EXTI_RTSR2_RT40_Msk (0x1UL << EXTI_RTSR2_RT40_Pos) /*!< 0x00000100 */
  5072. #define EXTI_RTSR2_RT40 EXTI_RTSR2_RT40_Msk /*!< Rising trigger configuration for input line 40 */
  5073. #define EXTI_RTSR2_RT41_Pos (9U)
  5074. #define EXTI_RTSR2_RT41_Msk (0x1UL << EXTI_RTSR2_RT41_Pos) /*!< 0x00000200 */
  5075. #define EXTI_RTSR2_RT41 EXTI_RTSR2_RT41_Msk /*!< Rising trigger configuration for input line 41 */
  5076. #define EXTI_RTSR2_RT42_Pos (10U)
  5077. #define EXTI_RTSR2_RT42_Msk (0x1UL << EXTI_RTSR2_RT42_Pos) /*!< 0x00000400 */
  5078. #define EXTI_RTSR2_RT42 EXTI_RTSR2_RT42_Msk /*!< Rising trigger configuration for input line 42 */
  5079. /******************* Bit definition for EXTI_FTSR1 register ****************/
  5080. #define EXTI_FTSR1_FT0_Pos (0U)
  5081. #define EXTI_FTSR1_FT0_Msk (0x1UL << EXTI_FTSR1_FT0_Pos) /*!< 0x00000001 */
  5082. #define EXTI_FTSR1_FT0 EXTI_FTSR1_FT0_Msk /*!< Falling trigger configuration for input line 0 */
  5083. #define EXTI_FTSR1_FT1_Pos (1U)
  5084. #define EXTI_FTSR1_FT1_Msk (0x1UL << EXTI_FTSR1_FT1_Pos) /*!< 0x00000002 */
  5085. #define EXTI_FTSR1_FT1 EXTI_FTSR1_FT1_Msk /*!< Falling trigger configuration for input line 1 */
  5086. #define EXTI_FTSR1_FT2_Pos (2U)
  5087. #define EXTI_FTSR1_FT2_Msk (0x1UL << EXTI_FTSR1_FT2_Pos) /*!< 0x00000004 */
  5088. #define EXTI_FTSR1_FT2 EXTI_FTSR1_FT2_Msk /*!< Falling trigger configuration for input line 2 */
  5089. #define EXTI_FTSR1_FT3_Pos (3U)
  5090. #define EXTI_FTSR1_FT3_Msk (0x1UL << EXTI_FTSR1_FT3_Pos) /*!< 0x00000008 */
  5091. #define EXTI_FTSR1_FT3 EXTI_FTSR1_FT3_Msk /*!< Falling trigger configuration for input line 3 */
  5092. #define EXTI_FTSR1_FT4_Pos (4U)
  5093. #define EXTI_FTSR1_FT4_Msk (0x1UL << EXTI_FTSR1_FT4_Pos) /*!< 0x00000010 */
  5094. #define EXTI_FTSR1_FT4 EXTI_FTSR1_FT4_Msk /*!< Falling trigger configuration for input line 4 */
  5095. #define EXTI_FTSR1_FT5_Pos (5U)
  5096. #define EXTI_FTSR1_FT5_Msk (0x1UL << EXTI_FTSR1_FT5_Pos) /*!< 0x00000020 */
  5097. #define EXTI_FTSR1_FT5 EXTI_FTSR1_FT5_Msk /*!< Falling trigger configuration for input line 5 */
  5098. #define EXTI_FTSR1_FT6_Pos (6U)
  5099. #define EXTI_FTSR1_FT6_Msk (0x1UL << EXTI_FTSR1_FT6_Pos) /*!< 0x00000040 */
  5100. #define EXTI_FTSR1_FT6 EXTI_FTSR1_FT6_Msk /*!< Falling trigger configuration for input line 6 */
  5101. #define EXTI_FTSR1_FT7_Pos (7U)
  5102. #define EXTI_FTSR1_FT7_Msk (0x1UL << EXTI_FTSR1_FT7_Pos) /*!< 0x00000080 */
  5103. #define EXTI_FTSR1_FT7 EXTI_FTSR1_FT7_Msk /*!< Falling trigger configuration for input line 7 */
  5104. #define EXTI_FTSR1_FT8_Pos (8U)
  5105. #define EXTI_FTSR1_FT8_Msk (0x1UL << EXTI_FTSR1_FT8_Pos) /*!< 0x00000100 */
  5106. #define EXTI_FTSR1_FT8 EXTI_FTSR1_FT8_Msk /*!< Falling trigger configuration for input line 8 */
  5107. #define EXTI_FTSR1_FT9_Pos (9U)
  5108. #define EXTI_FTSR1_FT9_Msk (0x1UL << EXTI_FTSR1_FT9_Pos) /*!< 0x00000200 */
  5109. #define EXTI_FTSR1_FT9 EXTI_FTSR1_FT9_Msk /*!< Falling trigger configuration for input line 9 */
  5110. #define EXTI_FTSR1_FT10_Pos (10U)
  5111. #define EXTI_FTSR1_FT10_Msk (0x1UL << EXTI_FTSR1_FT10_Pos) /*!< 0x00000400 */
  5112. #define EXTI_FTSR1_FT10 EXTI_FTSR1_FT10_Msk /*!< Falling trigger configuration for input line 10 */
  5113. #define EXTI_FTSR1_FT11_Pos (11U)
  5114. #define EXTI_FTSR1_FT11_Msk (0x1UL << EXTI_FTSR1_FT11_Pos) /*!< 0x00000800 */
  5115. #define EXTI_FTSR1_FT11 EXTI_FTSR1_FT11_Msk /*!< Falling trigger configuration for input line 11 */
  5116. #define EXTI_FTSR1_FT12_Pos (12U)
  5117. #define EXTI_FTSR1_FT12_Msk (0x1UL << EXTI_FTSR1_FT12_Pos) /*!< 0x00001000 */
  5118. #define EXTI_FTSR1_FT12 EXTI_FTSR1_FT12_Msk /*!< Falling trigger configuration for input line 12 */
  5119. #define EXTI_FTSR1_FT13_Pos (13U)
  5120. #define EXTI_FTSR1_FT13_Msk (0x1UL << EXTI_FTSR1_FT13_Pos) /*!< 0x00002000 */
  5121. #define EXTI_FTSR1_FT13 EXTI_FTSR1_FT13_Msk /*!< Falling trigger configuration for input line 13 */
  5122. #define EXTI_FTSR1_FT14_Pos (14U)
  5123. #define EXTI_FTSR1_FT14_Msk (0x1UL << EXTI_FTSR1_FT14_Pos) /*!< 0x00004000 */
  5124. #define EXTI_FTSR1_FT14 EXTI_FTSR1_FT14_Msk /*!< Falling trigger configuration for input line 14 */
  5125. #define EXTI_FTSR1_FT15_Pos (15U)
  5126. #define EXTI_FTSR1_FT15_Msk (0x1UL << EXTI_FTSR1_FT15_Pos) /*!< 0x00008000 */
  5127. #define EXTI_FTSR1_FT15 EXTI_FTSR1_FT15_Msk /*!< Falling trigger configuration for input line 15 */
  5128. #define EXTI_FTSR1_FT16_Pos (16U)
  5129. #define EXTI_FTSR1_FT16_Msk (0x1UL << EXTI_FTSR1_FT16_Pos) /*!< 0x00010000 */
  5130. #define EXTI_FTSR1_FT16 EXTI_FTSR1_FT16_Msk /*!< Falling trigger configuration for input line 16 */
  5131. #define EXTI_FTSR1_FT21_Pos (21U)
  5132. #define EXTI_FTSR1_FT21_Msk (0x1UL << EXTI_FTSR1_FT21_Pos) /*!< 0x00200000 */
  5133. #define EXTI_FTSR1_FT21 EXTI_FTSR1_FT21_Msk /*!< Falling trigger configuration for input line 21 */
  5134. #define EXTI_FTSR1_FT22_Pos (22U)
  5135. #define EXTI_FTSR1_FT22_Msk (0x1UL << EXTI_FTSR1_FT22_Pos) /*!< 0x00400000 */
  5136. #define EXTI_FTSR1_FT22 EXTI_FTSR1_FT22_Msk /*!< Falling trigger configuration for input line 22 */
  5137. #define EXTI_FTSR1_FT23_Pos (23U)
  5138. #define EXTI_FTSR1_FT23_Msk (0x1UL << EXTI_FTSR1_FT23_Pos) /*!< 0x00800000 */
  5139. #define EXTI_FTSR1_FT23 EXTI_FTSR1_FT23_Msk /*!< Falling trigger configuration for input line 23 */
  5140. #define EXTI_FTSR1_FT24_Pos (24U)
  5141. #define EXTI_FTSR1_FT24_Msk (0x1UL << EXTI_FTSR1_FT24_Pos) /*!< 0x01000000 */
  5142. #define EXTI_FTSR1_FT24 EXTI_FTSR1_FT24_Msk /*!< Falling trigger configuration for input line 24 */
  5143. #define EXTI_FTSR1_FT25_Pos (25U)
  5144. #define EXTI_FTSR1_FT25_Msk (0x1UL << EXTI_FTSR1_FT25_Pos) /*!< 0x02000000 */
  5145. #define EXTI_FTSR1_FT25 EXTI_FTSR1_FT25_Msk /*!< Falling trigger configuration for input line 25 */
  5146. #define EXTI_FTSR1_FT26_Pos (26U)
  5147. #define EXTI_FTSR1_FT26_Msk (0x1UL << EXTI_FTSR1_FT26_Pos) /*!< 0x04000000 */
  5148. #define EXTI_FTSR1_FT26 EXTI_FTSR1_FT26_Msk /*!< Falling trigger configuration for input line 26 */
  5149. #define EXTI_FTSR1_FT27_Pos (27U)
  5150. #define EXTI_FTSR1_FT27_Msk (0x1UL << EXTI_FTSR1_FT27_Pos) /*!< 0x08000000 */
  5151. #define EXTI_FTSR1_FT27 EXTI_FTSR1_FT27_Msk /*!< Falling trigger configuration for input line 27 */
  5152. #define EXTI_FTSR1_FT28_Pos (28U)
  5153. #define EXTI_FTSR1_FT28_Msk (0x1UL << EXTI_FTSR1_FT28_Pos) /*!< 0x10000000 */
  5154. #define EXTI_FTSR1_FT28 EXTI_FTSR1_FT28_Msk /*!< Falling trigger configuration for input line 28 */
  5155. #define EXTI_FTSR1_FT29_Pos (29U)
  5156. #define EXTI_FTSR1_FT29_Msk (0x1UL << EXTI_FTSR1_FT29_Pos) /*!< 0x20000000 */
  5157. #define EXTI_FTSR1_FT29 EXTI_FTSR1_FT29_Msk /*!< Falling trigger configuration for input line 29 */
  5158. #define EXTI_FTSR1_FT30_Pos (30U)
  5159. #define EXTI_FTSR1_FT30_Msk (0x1UL << EXTI_FTSR1_FT30_Pos) /*!< 0x40000000 */
  5160. #define EXTI_FTSR1_FT30 EXTI_FTSR1_FT30_Msk /*!< Falling trigger configuration for input line 30 */
  5161. #define EXTI_FTSR1_FT31_Pos (31U)
  5162. #define EXTI_FTSR1_FT31_Msk (0x1UL << EXTI_FTSR1_FT31_Pos) /*!< 0x80000000 */
  5163. #define EXTI_FTSR1_FT31 EXTI_FTSR1_FT31_Msk /*!< Falling trigger configuration for input line 31 */
  5164. /******************* Bit definition for EXTI_FTSR2 register ****************/
  5165. #define EXTI_FTSR2_FT32_Pos (0U)
  5166. #define EXTI_FTSR2_FT32_Msk (0x1UL << EXTI_FTSR2_FT32_Pos) /*!< 0x00000001 */
  5167. #define EXTI_FTSR2_FT32 EXTI_FTSR2_FT32_Msk /*!< Falling trigger configuration for input line 32 */
  5168. #define EXTI_FTSR2_FT33_Pos (1U)
  5169. #define EXTI_FTSR2_FT33_Msk (0x1UL << EXTI_FTSR2_FT33_Pos) /*!< 0x00000002 */
  5170. #define EXTI_FTSR2_FT33 EXTI_FTSR2_FT33_Msk /*!< Falling trigger configuration for input line 33 */
  5171. #define EXTI_FTSR2_FT34_Pos (2U)
  5172. #define EXTI_FTSR2_FT34_Msk (0x1UL << EXTI_FTSR2_FT34_Pos) /*!< 0x00000004 */
  5173. #define EXTI_FTSR2_FT34 EXTI_FTSR2_FT34_Msk /*!< Falling trigger configuration for input line 34 */
  5174. #define EXTI_FTSR2_FT35_Pos (3U)
  5175. #define EXTI_FTSR2_FT35_Msk (0x1UL << EXTI_FTSR2_FT35_Pos) /*!< 0x00000008 */
  5176. #define EXTI_FTSR2_FT35 EXTI_FTSR2_FT35_Msk /*!< Falling trigger configuration for input line 35 */
  5177. #define EXTI_FTSR2_FT36_Pos (4U)
  5178. #define EXTI_FTSR2_FT36_Msk (0x1UL << EXTI_FTSR2_FT36_Pos) /*!< 0x00000010 */
  5179. #define EXTI_FTSR2_FT36 EXTI_FTSR2_FT36_Msk /*!< Falling trigger configuration for input line 36 */
  5180. #define EXTI_FTSR2_FT37_Pos (5U)
  5181. #define EXTI_FTSR2_FT37_Msk (0x1UL << EXTI_FTSR2_FT37_Pos) /*!< 0x00000020 */
  5182. #define EXTI_FTSR2_FT37 EXTI_FTSR2_FT37_Msk /*!< Falling trigger configuration for input line 37 */
  5183. #define EXTI_FTSR2_FT38_Pos (6U)
  5184. #define EXTI_FTSR2_FT38_Msk (0x1UL << EXTI_FTSR2_FT38_Pos) /*!< 0x00000040 */
  5185. #define EXTI_FTSR2_FT38 EXTI_FTSR2_FT38_Msk /*!< Falling trigger configuration for input line 38 */
  5186. #define EXTI_FTSR2_FT39_Pos (7U)
  5187. #define EXTI_FTSR2_FT39_Msk (0x1UL << EXTI_FTSR2_FT39_Pos) /*!< 0x00000080 */
  5188. #define EXTI_FTSR2_FT39 EXTI_FTSR2_FT39_Msk /*!< Falling trigger configuration for input line 39 */
  5189. #define EXTI_FTSR2_FT40_Pos (8U)
  5190. #define EXTI_FTSR2_FT40_Msk (0x1UL << EXTI_FTSR2_FT40_Pos) /*!< 0x00000100 */
  5191. #define EXTI_FTSR2_FT40 EXTI_FTSR2_FT40_Msk /*!< Falling trigger configuration for input line 40 */
  5192. #define EXTI_FTSR2_FT41_Pos (9U)
  5193. #define EXTI_FTSR2_FT41_Msk (0x1UL << EXTI_FTSR2_FT41_Pos) /*!< 0x00000200 */
  5194. #define EXTI_FTSR2_FT41 EXTI_FTSR2_FT41_Msk /*!< Falling trigger configuration for input line 41 */
  5195. #define EXTI_FTSR2_FT42_Pos (10U)
  5196. #define EXTI_FTSR2_FT42_Msk (0x1UL << EXTI_FTSR2_FT42_Pos) /*!< 0x00000400 */
  5197. #define EXTI_FTSR2_FT42 EXTI_FTSR2_FT42_Msk /*!< Falling trigger configuration for input line 42 */
  5198. /******************* Bit definition for EXTI_SWIER1 register ***************/
  5199. #define EXTI_SWIER1_SWI0_Pos (0U)
  5200. #define EXTI_SWIER1_SWI0_Msk (0x1UL << EXTI_SWIER1_SWI0_Pos) /*!< 0x00000001 */
  5201. #define EXTI_SWIER1_SWI0 EXTI_SWIER1_SWI0_Msk /*!< Software Interrupt on line 0 */
  5202. #define EXTI_SWIER1_SWI1_Pos (1U)
  5203. #define EXTI_SWIER1_SWI1_Msk (0x1UL << EXTI_SWIER1_SWI1_Pos) /*!< 0x00000002 */
  5204. #define EXTI_SWIER1_SWI1 EXTI_SWIER1_SWI1_Msk /*!< Software Interrupt on line 1 */
  5205. #define EXTI_SWIER1_SWI2_Pos (2U)
  5206. #define EXTI_SWIER1_SWI2_Msk (0x1UL << EXTI_SWIER1_SWI2_Pos) /*!< 0x00000004 */
  5207. #define EXTI_SWIER1_SWI2 EXTI_SWIER1_SWI2_Msk /*!< Software Interrupt on line 2 */
  5208. #define EXTI_SWIER1_SWI3_Pos (3U)
  5209. #define EXTI_SWIER1_SWI3_Msk (0x1UL << EXTI_SWIER1_SWI3_Pos) /*!< 0x00000008 */
  5210. #define EXTI_SWIER1_SWI3 EXTI_SWIER1_SWI3_Msk /*!< Software Interrupt on line 3 */
  5211. #define EXTI_SWIER1_SWI4_Pos (4U)
  5212. #define EXTI_SWIER1_SWI4_Msk (0x1UL << EXTI_SWIER1_SWI4_Pos) /*!< 0x00000010 */
  5213. #define EXTI_SWIER1_SWI4 EXTI_SWIER1_SWI4_Msk /*!< Software Interrupt on line 4 */
  5214. #define EXTI_SWIER1_SWI5_Pos (5U)
  5215. #define EXTI_SWIER1_SWI5_Msk (0x1UL << EXTI_SWIER1_SWI5_Pos) /*!< 0x00000020 */
  5216. #define EXTI_SWIER1_SWI5 EXTI_SWIER1_SWI5_Msk /*!< Software Interrupt on line 5 */
  5217. #define EXTI_SWIER1_SWI6_Pos (6U)
  5218. #define EXTI_SWIER1_SWI6_Msk (0x1UL << EXTI_SWIER1_SWI6_Pos) /*!< 0x00000040 */
  5219. #define EXTI_SWIER1_SWI6 EXTI_SWIER1_SWI6_Msk /*!< Software Interrupt on line 6 */
  5220. #define EXTI_SWIER1_SWI7_Pos (7U)
  5221. #define EXTI_SWIER1_SWI7_Msk (0x1UL << EXTI_SWIER1_SWI7_Pos) /*!< 0x00000080 */
  5222. #define EXTI_SWIER1_SWI7 EXTI_SWIER1_SWI7_Msk /*!< Software Interrupt on line 7 */
  5223. #define EXTI_SWIER1_SWI8_Pos (8U)
  5224. #define EXTI_SWIER1_SWI8_Msk (0x1UL << EXTI_SWIER1_SWI8_Pos) /*!< 0x00000100 */
  5225. #define EXTI_SWIER1_SWI8 EXTI_SWIER1_SWI8_Msk /*!< Software Interrupt on line 8 */
  5226. #define EXTI_SWIER1_SWI9_Pos (9U)
  5227. #define EXTI_SWIER1_SWI9_Msk (0x1UL << EXTI_SWIER1_SWI9_Pos) /*!< 0x00000200 */
  5228. #define EXTI_SWIER1_SWI9 EXTI_SWIER1_SWI9_Msk /*!< Software Interrupt on line 9 */
  5229. #define EXTI_SWIER1_SWI10_Pos (10U)
  5230. #define EXTI_SWIER1_SWI10_Msk (0x1UL << EXTI_SWIER1_SWI10_Pos) /*!< 0x00000400 */
  5231. #define EXTI_SWIER1_SWI10 EXTI_SWIER1_SWI10_Msk /*!< Software Interrupt on line 10 */
  5232. #define EXTI_SWIER1_SWI11_Pos (11U)
  5233. #define EXTI_SWIER1_SWI11_Msk (0x1UL << EXTI_SWIER1_SWI11_Pos) /*!< 0x00000800 */
  5234. #define EXTI_SWIER1_SWI11 EXTI_SWIER1_SWI11_Msk /*!< Software Interrupt on line 11 */
  5235. #define EXTI_SWIER1_SWI12_Pos (12U)
  5236. #define EXTI_SWIER1_SWI12_Msk (0x1UL << EXTI_SWIER1_SWI12_Pos) /*!< 0x00001000 */
  5237. #define EXTI_SWIER1_SWI12 EXTI_SWIER1_SWI12_Msk /*!< Software Interrupt on line 12 */
  5238. #define EXTI_SWIER1_SWI13_Pos (13U)
  5239. #define EXTI_SWIER1_SWI13_Msk (0x1UL << EXTI_SWIER1_SWI13_Pos) /*!< 0x00002000 */
  5240. #define EXTI_SWIER1_SWI13 EXTI_SWIER1_SWI13_Msk /*!< Software Interrupt on line 13 */
  5241. #define EXTI_SWIER1_SWI14_Pos (14U)
  5242. #define EXTI_SWIER1_SWI14_Msk (0x1UL << EXTI_SWIER1_SWI14_Pos) /*!< 0x00004000 */
  5243. #define EXTI_SWIER1_SWI14 EXTI_SWIER1_SWI14_Msk /*!< Software Interrupt on line 14 */
  5244. #define EXTI_SWIER1_SWI15_Pos (15U)
  5245. #define EXTI_SWIER1_SWI15_Msk (0x1UL << EXTI_SWIER1_SWI15_Pos) /*!< 0x00008000 */
  5246. #define EXTI_SWIER1_SWI15 EXTI_SWIER1_SWI15_Msk /*!< Software Interrupt on line 15 */
  5247. #define EXTI_SWIER1_SWI16_Pos (16U)
  5248. #define EXTI_SWIER1_SWI16_Msk (0x1UL << EXTI_SWIER1_SWI16_Pos) /*!< 0x00010000 */
  5249. #define EXTI_SWIER1_SWI16 EXTI_SWIER1_SWI16_Msk /*!< Software Interrupt on line 16 */
  5250. #define EXTI_SWIER1_SWI21_Pos (21U)
  5251. #define EXTI_SWIER1_SWI21_Msk (0x1UL << EXTI_SWIER1_SWI21_Pos) /*!< 0x00200000 */
  5252. #define EXTI_SWIER1_SWI21 EXTI_SWIER1_SWI21_Msk /*!< Software Interrupt on line 21 */
  5253. #define EXTI_SWIER1_SWI22_Pos (22U)
  5254. #define EXTI_SWIER1_SWI22_Msk (0x1UL << EXTI_SWIER1_SWI22_Pos) /*!< 0x00400000 */
  5255. #define EXTI_SWIER1_SWI22 EXTI_SWIER1_SWI22_Msk /*!< Software Interrupt on line 22 */
  5256. #define EXTI_SWIER1_SWI23_Pos (23U)
  5257. #define EXTI_SWIER1_SWI23_Msk (0x1UL << EXTI_SWIER1_SWI23_Pos) /*!< 0x00800000 */
  5258. #define EXTI_SWIER1_SWI23 EXTI_SWIER1_SWI23_Msk /*!< Software Interrupt on line 23 */
  5259. #define EXTI_SWIER1_SWI24_Pos (24U)
  5260. #define EXTI_SWIER1_SWI24_Msk (0x1UL << EXTI_SWIER1_SWI24_Pos) /*!< 0x01000000 */
  5261. #define EXTI_SWIER1_SWI24 EXTI_SWIER1_SWI24_Msk /*!< Software Interrupt on line 24 */
  5262. #define EXTI_SWIER1_SWI25_Pos (25U)
  5263. #define EXTI_SWIER1_SWI25_Msk (0x1UL << EXTI_SWIER1_SWI25_Pos) /*!< 0x02000000 */
  5264. #define EXTI_SWIER1_SWI25 EXTI_SWIER1_SWI25_Msk /*!< Software Interrupt on line 25 */
  5265. #define EXTI_SWIER1_SWI26_Pos (26U)
  5266. #define EXTI_SWIER1_SWI26_Msk (0x1UL << EXTI_SWIER1_SWI26_Pos) /*!< 0x04000000 */
  5267. #define EXTI_SWIER1_SWI26 EXTI_SWIER1_SWI26_Msk /*!< Software Interrupt on line 26 */
  5268. #define EXTI_SWIER1_SWI27_Pos (27U)
  5269. #define EXTI_SWIER1_SWI27_Msk (0x1UL << EXTI_SWIER1_SWI27_Pos) /*!< 0x08000000 */
  5270. #define EXTI_SWIER1_SWI27 EXTI_SWIER1_SWI27_Msk /*!< Software Interrupt on line 27 */
  5271. #define EXTI_SWIER1_SWI28_Pos (28U)
  5272. #define EXTI_SWIER1_SWI28_Msk (0x1UL << EXTI_SWIER1_SWI28_Pos) /*!< 0x10000000 */
  5273. #define EXTI_SWIER1_SWI28 EXTI_SWIER1_SWI28_Msk /*!< Software Interrupt on line 28 */
  5274. #define EXTI_SWIER1_SWI29_Pos (29U)
  5275. #define EXTI_SWIER1_SWI29_Msk (0x1UL << EXTI_SWIER1_SWI29_Pos) /*!< 0x20000000 */
  5276. #define EXTI_SWIER1_SWI29 EXTI_SWIER1_SWI29_Msk /*!< Software Interrupt on line 29 */
  5277. #define EXTI_SWIER1_SWI30_Pos (30U)
  5278. #define EXTI_SWIER1_SWI30_Msk (0x1UL << EXTI_SWIER1_SWI30_Pos) /*!< 0x40000000 */
  5279. #define EXTI_SWIER1_SWI30 EXTI_SWIER1_SWI30_Msk /*!< Software Interrupt on line 30 */
  5280. #define EXTI_SWIER1_SWI31_Pos (31U)
  5281. #define EXTI_SWIER1_SWI31_Msk (0x1UL << EXTI_SWIER1_SWI31_Pos) /*!< 0x80000000 */
  5282. #define EXTI_SWIER1_SWI31 EXTI_SWIER1_SWI31_Msk /*!< Software Interrupt on line 31 */
  5283. /******************* Bit definition for EXTI_SWIER2 register ***************/
  5284. #define EXTI_SWIER2_SWI32_Pos (0U)
  5285. #define EXTI_SWIER2_SWI32_Msk (0x1UL << EXTI_SWIER2_SWI32_Pos) /*!< 0x00000001 */
  5286. #define EXTI_SWIER2_SWI32 EXTI_SWIER2_SWI32_Msk /*!< Software Interrupt on line 32 */
  5287. #define EXTI_SWIER2_SWI33_Pos (1U)
  5288. #define EXTI_SWIER2_SWI33_Msk (0x1UL << EXTI_SWIER2_SWI33_Pos) /*!< 0x00000002 */
  5289. #define EXTI_SWIER2_SWI33 EXTI_SWIER2_SWI33_Msk /*!< Software Interrupt on line 33 */
  5290. #define EXTI_SWIER2_SWI34_Pos (2U)
  5291. #define EXTI_SWIER2_SWI34_Msk (0x1UL << EXTI_SWIER2_SWI34_Pos) /*!< 0x00000004 */
  5292. #define EXTI_SWIER2_SWI34 EXTI_SWIER2_SWI34_Msk /*!< Software Interrupt on line 34 */
  5293. #define EXTI_SWIER2_SWI35_Pos (3U)
  5294. #define EXTI_SWIER2_SWI35_Msk (0x1UL << EXTI_SWIER2_SWI35_Pos) /*!< 0x00000008 */
  5295. #define EXTI_SWIER2_SWI35 EXTI_SWIER2_SWI35_Msk /*!< Software Interrupt on line 35 */
  5296. #define EXTI_SWIER2_SWI36_Pos (4U)
  5297. #define EXTI_SWIER2_SWI36_Msk (0x1UL << EXTI_SWIER2_SWI36_Pos) /*!< 0x00000010 */
  5298. #define EXTI_SWIER2_SWI36 EXTI_SWIER2_SWI36_Msk /*!< Software Interrupt on line 36 */
  5299. #define EXTI_SWIER2_SWI37_Pos (5U)
  5300. #define EXTI_SWIER2_SWI37_Msk (0x1UL << EXTI_SWIER2_SWI37_Pos) /*!< 0x00000020 */
  5301. #define EXTI_SWIER2_SWI37 EXTI_SWIER2_SWI37_Msk /*!< Software Interrupt on line 37 */
  5302. #define EXTI_SWIER2_SWI38_Pos (6U)
  5303. #define EXTI_SWIER2_SWI38_Msk (0x1UL << EXTI_SWIER2_SWI38_Pos) /*!< 0x00000040 */
  5304. #define EXTI_SWIER2_SWI38 EXTI_SWIER2_SWI38_Msk /*!< Software Interrupt on line 38 */
  5305. #define EXTI_SWIER2_SWI39_Pos (7U)
  5306. #define EXTI_SWIER2_SWI39_Msk (0x1UL << EXTI_SWIER2_SWI39_Pos) /*!< 0x00000080 */
  5307. #define EXTI_SWIER2_SWI39 EXTI_SWIER2_SWI39_Msk /*!< Software Interrupt on line 39 */
  5308. #define EXTI_SWIER2_SWI40_Pos (8U)
  5309. #define EXTI_SWIER2_SWI40_Msk (0x1UL << EXTI_SWIER2_SWI40_Pos) /*!< 0x00000100 */
  5310. #define EXTI_SWIER2_SWI40 EXTI_SWIER2_SWI40_Msk /*!< Software Interrupt on line 40 */
  5311. #define EXTI_SWIER2_SWI41_Pos (9U)
  5312. #define EXTI_SWIER2_SWI41_Msk (0x1UL << EXTI_SWIER2_SWI41_Pos) /*!< 0x00000200 */
  5313. #define EXTI_SWIER2_SWI41 EXTI_SWIER2_SWI41_Msk /*!< Software Interrupt on line 41 */
  5314. #define EXTI_SWIER2_SWI42_Pos (10U)
  5315. #define EXTI_SWIER2_SWI42_Msk (0x1UL << EXTI_SWIER2_SWI42_Pos) /*!< 0x00000400 */
  5316. #define EXTI_SWIER2_SWI42 EXTI_SWIER2_SWI42_Msk /*!< Software Interrupt on line 42 */
  5317. /******************* Bit definition for EXTI_RPR1 register *****************/
  5318. #define EXTI_RPR1_RPIF0_Pos (0U)
  5319. #define EXTI_RPR1_RPIF0_Msk (0x1UL << EXTI_RPR1_RPIF0_Pos) /*!< 0x00000001 */
  5320. #define EXTI_RPR1_RPIF0 EXTI_RPR1_RPIF0_Msk /*!< Rising Pending Interrupt Flag on line 0 */
  5321. #define EXTI_RPR1_RPIF1_Pos (1U)
  5322. #define EXTI_RPR1_RPIF1_Msk (0x1UL << EXTI_RPR1_RPIF1_Pos) /*!< 0x00000002 */
  5323. #define EXTI_RPR1_RPIF1 EXTI_RPR1_RPIF1_Msk /*!< Rising Pending Interrupt Flag on line 1 */
  5324. #define EXTI_RPR1_RPIF2_Pos (2U)
  5325. #define EXTI_RPR1_RPIF2_Msk (0x1UL << EXTI_RPR1_RPIF2_Pos) /*!< 0x00000004 */
  5326. #define EXTI_RPR1_RPIF2 EXTI_RPR1_RPIF2_Msk /*!< Rising Pending Interrupt Flag on line 2 */
  5327. #define EXTI_RPR1_RPIF3_Pos (3U)
  5328. #define EXTI_RPR1_RPIF3_Msk (0x1UL << EXTI_RPR1_RPIF3_Pos) /*!< 0x00000008 */
  5329. #define EXTI_RPR1_RPIF3 EXTI_RPR1_RPIF3_Msk /*!< Rising Pending Interrupt Flag on line 3 */
  5330. #define EXTI_RPR1_RPIF4_Pos (4U)
  5331. #define EXTI_RPR1_RPIF4_Msk (0x1UL << EXTI_RPR1_RPIF4_Pos) /*!< 0x00000010 */
  5332. #define EXTI_RPR1_RPIF4 EXTI_RPR1_RPIF4_Msk /*!< Rising Pending Interrupt Flag on line 4 */
  5333. #define EXTI_RPR1_RPIF5_Pos (5U)
  5334. #define EXTI_RPR1_RPIF5_Msk (0x1UL << EXTI_RPR1_RPIF5_Pos) /*!< 0x00000020 */
  5335. #define EXTI_RPR1_RPIF5 EXTI_RPR1_RPIF5_Msk /*!< Rising Pending Interrupt Flag on line 5 */
  5336. #define EXTI_RPR1_RPIF6_Pos (6U)
  5337. #define EXTI_RPR1_RPIF6_Msk (0x1UL << EXTI_RPR1_RPIF6_Pos) /*!< 0x00000040 */
  5338. #define EXTI_RPR1_RPIF6 EXTI_RPR1_RPIF6_Msk /*!< Rising Pending Interrupt Flag on line 6 */
  5339. #define EXTI_RPR1_RPIF7_Pos (7U)
  5340. #define EXTI_RPR1_RPIF7_Msk (0x1UL << EXTI_RPR1_RPIF7_Pos) /*!< 0x00000080 */
  5341. #define EXTI_RPR1_RPIF7 EXTI_RPR1_RPIF7_Msk /*!< Rising Pending Interrupt Flag on line 7 */
  5342. #define EXTI_RPR1_RPIF8_Pos (8U)
  5343. #define EXTI_RPR1_RPIF8_Msk (0x1UL << EXTI_RPR1_RPIF8_Pos) /*!< 0x00000100 */
  5344. #define EXTI_RPR1_RPIF8 EXTI_RPR1_RPIF8_Msk /*!< Rising Pending Interrupt Flag on line 8 */
  5345. #define EXTI_RPR1_RPIF9_Pos (9U)
  5346. #define EXTI_RPR1_RPIF9_Msk (0x1UL << EXTI_RPR1_RPIF9_Pos) /*!< 0x00000200 */
  5347. #define EXTI_RPR1_RPIF9 EXTI_RPR1_RPIF9_Msk /*!< Rising Pending Interrupt Flag on line 9 */
  5348. #define EXTI_RPR1_RPIF10_Pos (10U)
  5349. #define EXTI_RPR1_RPIF10_Msk (0x1UL << EXTI_RPR1_RPIF10_Pos) /*!< 0x00000400 */
  5350. #define EXTI_RPR1_RPIF10 EXTI_RPR1_RPIF10_Msk /*!< Rising Pending Interrupt Flag on line 10 */
  5351. #define EXTI_RPR1_RPIF11_Pos (11U)
  5352. #define EXTI_RPR1_RPIF11_Msk (0x1UL << EXTI_RPR1_RPIF11_Pos) /*!< 0x00000800 */
  5353. #define EXTI_RPR1_RPIF11 EXTI_RPR1_RPIF11_Msk /*!< Rising Pending Interrupt Flag on line 11 */
  5354. #define EXTI_RPR1_RPIF12_Pos (12U)
  5355. #define EXTI_RPR1_RPIF12_Msk (0x1UL << EXTI_RPR1_RPIF12_Pos) /*!< 0x00001000 */
  5356. #define EXTI_RPR1_RPIF12 EXTI_RPR1_RPIF12_Msk /*!< Rising Pending Interrupt Flag on line 12 */
  5357. #define EXTI_RPR1_RPIF13_Pos (13U)
  5358. #define EXTI_RPR1_RPIF13_Msk (0x1UL << EXTI_RPR1_RPIF13_Pos) /*!< 0x00002000 */
  5359. #define EXTI_RPR1_RPIF13 EXTI_RPR1_RPIF13_Msk /*!< Rising Pending Interrupt Flag on line 13 */
  5360. #define EXTI_RPR1_RPIF14_Pos (14U)
  5361. #define EXTI_RPR1_RPIF14_Msk (0x1UL << EXTI_RPR1_RPIF14_Pos) /*!< 0x00004000 */
  5362. #define EXTI_RPR1_RPIF14 EXTI_RPR1_RPIF14_Msk /*!< Rising Pending Interrupt Flag on line 14 */
  5363. #define EXTI_RPR1_RPIF15_Pos (15U)
  5364. #define EXTI_RPR1_RPIF15_Msk (0x1UL << EXTI_RPR1_RPIF15_Pos) /*!< 0x00008000 */
  5365. #define EXTI_RPR1_RPIF15 EXTI_RPR1_RPIF15_Msk /*!< Rising Pending Interrupt Flag on line 15 */
  5366. #define EXTI_RPR1_RPIF16_Pos (16U)
  5367. #define EXTI_RPR1_RPIF16_Msk (0x1UL << EXTI_RPR1_RPIF16_Pos) /*!< 0x00010000 */
  5368. #define EXTI_RPR1_RPIF16 EXTI_RPR1_RPIF16_Msk /*!< Rising Pending Interrupt Flag on line 16 */
  5369. #define EXTI_RPR1_RPIF21_Pos (21U)
  5370. #define EXTI_RPR1_RPIF21_Msk (0x1UL << EXTI_RPR1_RPIF21_Pos) /*!< 0x00200000 */
  5371. #define EXTI_RPR1_RPIF21 EXTI_RPR1_RPIF21_Msk /*!< Rising Pending Interrupt Flag on line 21 */
  5372. #define EXTI_RPR1_RPIF22_Pos (22U)
  5373. #define EXTI_RPR1_RPIF22_Msk (0x1UL << EXTI_RPR1_RPIF22_Pos) /*!< 0x00400000 */
  5374. #define EXTI_RPR1_RPIF22 EXTI_RPR1_RPIF22_Msk /*!< Rising Pending Interrupt Flag on line 22 */
  5375. #define EXTI_RPR1_RPIF23_Pos (23U)
  5376. #define EXTI_RPR1_RPIF23_Msk (0x1UL << EXTI_RPR1_RPIF23_Pos) /*!< 0x00800000 */
  5377. #define EXTI_RPR1_RPIF23 EXTI_RPR1_RPIF23_Msk /*!< Rising Pending Interrupt Flag on line 23 */
  5378. #define EXTI_RPR1_RPIF24_Pos (24U)
  5379. #define EXTI_RPR1_RPIF24_Msk (0x1UL << EXTI_RPR1_RPIF24_Pos) /*!< 0x01000000 */
  5380. #define EXTI_RPR1_RPIF24 EXTI_RPR1_RPIF24_Msk /*!< Rising Pending Interrupt Flag on line 24 */
  5381. #define EXTI_RPR1_RPIF25_Pos (25U)
  5382. #define EXTI_RPR1_RPIF25_Msk (0x1UL << EXTI_RPR1_RPIF25_Pos) /*!< 0x02000000 */
  5383. #define EXTI_RPR1_RPIF25 EXTI_RPR1_RPIF25_Msk /*!< Rising Pending Interrupt Flag on line 25 */
  5384. #define EXTI_RPR1_RPIF26_Pos (26U)
  5385. #define EXTI_RPR1_RPIF26_Msk (0x1UL << EXTI_RPR1_RPIF26_Pos) /*!< 0x04000000 */
  5386. #define EXTI_RPR1_RPIF26 EXTI_RPR1_RPIF26_Msk /*!< Rising Pending Interrupt Flag on line 26 */
  5387. #define EXTI_RPR1_RPIF27_Pos (27U)
  5388. #define EXTI_RPR1_RPIF27_Msk (0x1UL << EXTI_RPR1_RPIF27_Pos) /*!< 0x08000000 */
  5389. #define EXTI_RPR1_RPIF27 EXTI_RPR1_RPIF27_Msk /*!< Rising Pending Interrupt Flag on line 27 */
  5390. #define EXTI_RPR1_RPIF28_Pos (28U)
  5391. #define EXTI_RPR1_RPIF28_Msk (0x1UL << EXTI_RPR1_RPIF28_Pos) /*!< 0x10000000 */
  5392. #define EXTI_RPR1_RPIF28 EXTI_RPR1_RPIF28_Msk /*!< Rising Pending Interrupt Flag on line 28 */
  5393. #define EXTI_RPR1_RPIF29_Pos (29U)
  5394. #define EXTI_RPR1_RPIF29_Msk (0x1UL << EXTI_RPR1_RPIF29_Pos) /*!< 0x20000000 */
  5395. #define EXTI_RPR1_RPIF29 EXTI_RPR1_RPIF29_Msk /*!< Rising Pending Interrupt Flag on line 29 */
  5396. #define EXTI_RPR1_RPIF30_Pos (30U)
  5397. #define EXTI_RPR1_RPIF30_Msk (0x1UL << EXTI_RPR1_RPIF30_Pos) /*!< 0x40000000 */
  5398. #define EXTI_RPR1_RPIF30 EXTI_RPR1_RPIF30_Msk /*!< Rising Pending Interrupt Flag on line 30 */
  5399. #define EXTI_RPR1_RPIF31_Pos (31U)
  5400. #define EXTI_RPR1_RPIF31_Msk (0x1UL << EXTI_RPR1_RPIF31_Pos) /*!< 0x80000000 */
  5401. #define EXTI_RPR1_RPIF31 EXTI_RPR1_RPIF31_Msk /*!< Rising Pending Interrupt Flag on line 31 */
  5402. /******************* Bit definition for EXTI_RPR2 register *****************/
  5403. #define EXTI_RPR2_RPIF32_Pos (0U)
  5404. #define EXTI_RPR2_RPIF32_Msk (0x1UL << EXTI_RPR2_RPIF32_Pos) /*!< 0x00000001 */
  5405. #define EXTI_RPR2_RPIF32 EXTI_RPR2_RPIF32_Msk /*!< Rising Pending Interrupt Flag on line 32 */
  5406. #define EXTI_RPR2_RPIF33_Pos (1U)
  5407. #define EXTI_RPR2_RPIF33_Msk (0x1UL << EXTI_RPR2_RPIF33_Pos) /*!< 0x00000002 */
  5408. #define EXTI_RPR2_RPIF33 EXTI_RPR2_RPIF33_Msk /*!< Rising Pending Interrupt Flag on line 33 */
  5409. #define EXTI_RPR2_RPIF34_Pos (2U)
  5410. #define EXTI_RPR2_RPIF34_Msk (0x1UL << EXTI_RPR2_RPIF34_Pos) /*!< 0x00000004 */
  5411. #define EXTI_RPR2_RPIF34 EXTI_RPR2_RPIF34_Msk /*!< Rising Pending Interrupt Flag on line 34 */
  5412. #define EXTI_RPR2_RPIF35_Pos (3U)
  5413. #define EXTI_RPR2_RPIF35_Msk (0x1UL << EXTI_RPR2_RPIF35_Pos) /*!< 0x00000008 */
  5414. #define EXTI_RPR2_RPIF35 EXTI_RPR2_RPIF35_Msk /*!< Rising Pending Interrupt Flag on line 35 */
  5415. #define EXTI_RPR2_RPIF36_Pos (4U)
  5416. #define EXTI_RPR2_RPIF36_Msk (0x1UL << EXTI_RPR2_RPIF36_Pos) /*!< 0x00000010 */
  5417. #define EXTI_RPR2_RPIF36 EXTI_RPR2_RPIF36_Msk /*!< Rising Pending Interrupt Flag on line 36 */
  5418. #define EXTI_RPR2_RPIF37_Pos (5U)
  5419. #define EXTI_RPR2_RPIF37_Msk (0x1UL << EXTI_RPR2_RPIF37_Pos) /*!< 0x00000020 */
  5420. #define EXTI_RPR2_RPIF37 EXTI_RPR2_RPIF37_Msk /*!< Rising Pending Interrupt Flag on line 37 */
  5421. #define EXTI_RPR2_RPIF38_Pos (6U)
  5422. #define EXTI_RPR2_RPIF38_Msk (0x1UL << EXTI_RPR2_RPIF38_Pos) /*!< 0x00000040 */
  5423. #define EXTI_RPR2_RPIF38 EXTI_RPR2_RPIF38_Msk /*!< Rising Pending Interrupt Flag on line 38 */
  5424. #define EXTI_RPR2_RPIF39_Pos (7U)
  5425. #define EXTI_RPR2_RPIF39_Msk (0x1UL << EXTI_RPR2_RPIF39_Pos) /*!< 0x00000080 */
  5426. #define EXTI_RPR2_RPIF39 EXTI_RPR2_RPIF39_Msk /*!< Rising Pending Interrupt Flag on line 39 */
  5427. #define EXTI_RPR2_RPIF40_Pos (8U)
  5428. #define EXTI_RPR2_RPIF40_Msk (0x1UL << EXTI_RPR2_RPIF40_Pos) /*!< 0x00000100 */
  5429. #define EXTI_RPR2_RPIF40 EXTI_RPR2_RPIF40_Msk /*!< Rising Pending Interrupt Flag on line 40 */
  5430. #define EXTI_RPR2_RPIF41_Pos (9U)
  5431. #define EXTI_RPR2_RPIF41_Msk (0x1UL << EXTI_RPR2_RPIF41_Pos) /*!< 0x00000200 */
  5432. #define EXTI_RPR2_RPIF41 EXTI_RPR2_RPIF41_Msk /*!< Rising Pending Interrupt Flag on line 41 */
  5433. #define EXTI_RPR2_RPIF42_Pos (10U)
  5434. #define EXTI_RPR2_RPIF42_Msk (0x1UL << EXTI_RPR2_RPIF42_Pos) /*!< 0x00000400 */
  5435. #define EXTI_RPR2_RPIF42 EXTI_RPR2_RPIF42_Msk /*!< Rising Pending Interrupt Flag on line 42 */
  5436. /******************* Bit definition for EXTI_FPR1 register *****************/
  5437. #define EXTI_FPR1_FPIF0_Pos (0U)
  5438. #define EXTI_FPR1_FPIF0_Msk (0x1UL << EXTI_FPR1_FPIF0_Pos) /*!< 0x00000001 */
  5439. #define EXTI_FPR1_FPIF0 EXTI_FPR1_FPIF0_Msk /*!< Falling Pending Interrupt Flag on line 0 */
  5440. #define EXTI_FPR1_FPIF1_Pos (1U)
  5441. #define EXTI_FPR1_FPIF1_Msk (0x1UL << EXTI_FPR1_FPIF1_Pos) /*!< 0x00000002 */
  5442. #define EXTI_FPR1_FPIF1 EXTI_FPR1_FPIF1_Msk /*!< Falling Pending Interrupt Flag on line 1 */
  5443. #define EXTI_FPR1_FPIF2_Pos (2U)
  5444. #define EXTI_FPR1_FPIF2_Msk (0x1UL << EXTI_FPR1_FPIF2_Pos) /*!< 0x00000004 */
  5445. #define EXTI_FPR1_FPIF2 EXTI_FPR1_FPIF2_Msk /*!< Falling Pending Interrupt Flag on line 2 */
  5446. #define EXTI_FPR1_FPIF3_Pos (3U)
  5447. #define EXTI_FPR1_FPIF3_Msk (0x1UL << EXTI_FPR1_FPIF3_Pos) /*!< 0x00000008 */
  5448. #define EXTI_FPR1_FPIF3 EXTI_FPR1_FPIF3_Msk /*!< Falling Pending Interrupt Flag on line 3 */
  5449. #define EXTI_FPR1_FPIF4_Pos (4U)
  5450. #define EXTI_FPR1_FPIF4_Msk (0x1UL << EXTI_FPR1_FPIF4_Pos) /*!< 0x00000010 */
  5451. #define EXTI_FPR1_FPIF4 EXTI_FPR1_FPIF4_Msk /*!< Falling Pending Interrupt Flag on line 4 */
  5452. #define EXTI_FPR1_FPIF5_Pos (5U)
  5453. #define EXTI_FPR1_FPIF5_Msk (0x1UL << EXTI_FPR1_FPIF5_Pos) /*!< 0x00000020 */
  5454. #define EXTI_FPR1_FPIF5 EXTI_FPR1_FPIF5_Msk /*!< Falling Pending Interrupt Flag on line 5 */
  5455. #define EXTI_FPR1_FPIF6_Pos (6U)
  5456. #define EXTI_FPR1_FPIF6_Msk (0x1UL << EXTI_FPR1_FPIF6_Pos) /*!< 0x00000040 */
  5457. #define EXTI_FPR1_FPIF6 EXTI_FPR1_FPIF6_Msk /*!< Falling Pending Interrupt Flag on line 6 */
  5458. #define EXTI_FPR1_FPIF7_Pos (7U)
  5459. #define EXTI_FPR1_FPIF7_Msk (0x1UL << EXTI_FPR1_FPIF7_Pos) /*!< 0x00000080 */
  5460. #define EXTI_FPR1_FPIF7 EXTI_FPR1_FPIF7_Msk /*!< Falling Pending Interrupt Flag on line 7 */
  5461. #define EXTI_FPR1_FPIF8_Pos (8U)
  5462. #define EXTI_FPR1_FPIF8_Msk (0x1UL << EXTI_FPR1_FPIF8_Pos) /*!< 0x00000100 */
  5463. #define EXTI_FPR1_FPIF8 EXTI_FPR1_FPIF8_Msk /*!< Falling Pending Interrupt Flag on line 8 */
  5464. #define EXTI_FPR1_FPIF9_Pos (9U)
  5465. #define EXTI_FPR1_FPIF9_Msk (0x1UL << EXTI_FPR1_FPIF9_Pos) /*!< 0x00000200 */
  5466. #define EXTI_FPR1_FPIF9 EXTI_FPR1_FPIF9_Msk /*!< Falling Pending Interrupt Flag on line 9 */
  5467. #define EXTI_FPR1_FPIF10_Pos (10U)
  5468. #define EXTI_FPR1_FPIF10_Msk (0x1UL << EXTI_FPR1_FPIF10_Pos) /*!< 0x00000400 */
  5469. #define EXTI_FPR1_FPIF10 EXTI_FPR1_FPIF10_Msk /*!< Falling Pending Interrupt Flag on line 10 */
  5470. #define EXTI_FPR1_FPIF11_Pos (11U)
  5471. #define EXTI_FPR1_FPIF11_Msk (0x1UL << EXTI_FPR1_FPIF11_Pos) /*!< 0x00000800 */
  5472. #define EXTI_FPR1_FPIF11 EXTI_FPR1_FPIF11_Msk /*!< Falling Pending Interrupt Flag on line 11 */
  5473. #define EXTI_FPR1_FPIF12_Pos (12U)
  5474. #define EXTI_FPR1_FPIF12_Msk (0x1UL << EXTI_FPR1_FPIF12_Pos) /*!< 0x00001000 */
  5475. #define EXTI_FPR1_FPIF12 EXTI_FPR1_FPIF12_Msk /*!< Falling Pending Interrupt Flag on line 12 */
  5476. #define EXTI_FPR1_FPIF13_Pos (13U)
  5477. #define EXTI_FPR1_FPIF13_Msk (0x1UL << EXTI_FPR1_FPIF13_Pos) /*!< 0x00002000 */
  5478. #define EXTI_FPR1_FPIF13 EXTI_FPR1_FPIF13_Msk /*!< Falling Pending Interrupt Flag on line 13 */
  5479. #define EXTI_FPR1_FPIF14_Pos (14U)
  5480. #define EXTI_FPR1_FPIF14_Msk (0x1UL << EXTI_FPR1_FPIF14_Pos) /*!< 0x00004000 */
  5481. #define EXTI_FPR1_FPIF14 EXTI_FPR1_FPIF14_Msk /*!< Falling Pending Interrupt Flag on line 14 */
  5482. #define EXTI_FPR1_FPIF15_Pos (15U)
  5483. #define EXTI_FPR1_FPIF15_Msk (0x1UL << EXTI_FPR1_FPIF15_Pos) /*!< 0x00008000 */
  5484. #define EXTI_FPR1_FPIF15 EXTI_FPR1_FPIF15_Msk /*!< Falling Pending Interrupt Flag on line 15 */
  5485. #define EXTI_FPR1_FPIF16_Pos (16U)
  5486. #define EXTI_FPR1_FPIF16_Msk (0x1UL << EXTI_FPR1_FPIF16_Pos) /*!< 0x00010000 */
  5487. #define EXTI_FPR1_FPIF16 EXTI_FPR1_FPIF16_Msk /*!< Falling Pending Interrupt Flag on line 16 */
  5488. #define EXTI_FPR1_FPIF21_Pos (21U)
  5489. #define EXTI_FPR1_FPIF21_Msk (0x1UL << EXTI_FPR1_FPIF21_Pos) /*!< 0x00200000 */
  5490. #define EXTI_FPR1_FPIF21 EXTI_FPR1_FPIF21_Msk /*!< Falling Pending Interrupt Flag on line 21 */
  5491. #define EXTI_FPR1_FPIF22_Pos (22U)
  5492. #define EXTI_FPR1_FPIF22_Msk (0x1UL << EXTI_FPR1_FPIF22_Pos) /*!< 0x00400000 */
  5493. #define EXTI_FPR1_FPIF22 EXTI_FPR1_FPIF22_Msk /*!< Falling Pending Interrupt Flag on line 22 */
  5494. #define EXTI_FPR1_FPIF23_Pos (23U)
  5495. #define EXTI_FPR1_FPIF23_Msk (0x1UL << EXTI_FPR1_FPIF23_Pos) /*!< 0x00800000 */
  5496. #define EXTI_FPR1_FPIF23 EXTI_FPR1_FPIF23_Msk /*!< Falling Pending Interrupt Flag on line 23 */
  5497. #define EXTI_FPR1_FPIF24_Pos (24U)
  5498. #define EXTI_FPR1_FPIF24_Msk (0x1UL << EXTI_FPR1_FPIF24_Pos) /*!< 0x01000000 */
  5499. #define EXTI_FPR1_FPIF24 EXTI_FPR1_FPIF24_Msk /*!< Falling Pending Interrupt Flag on line 24 */
  5500. #define EXTI_FPR1_FPIF25_Pos (25U)
  5501. #define EXTI_FPR1_FPIF25_Msk (0x1UL << EXTI_FPR1_FPIF25_Pos) /*!< 0x02000000 */
  5502. #define EXTI_FPR1_FPIF25 EXTI_FPR1_FPIF25_Msk /*!< Falling Pending Interrupt Flag on line 25 */
  5503. #define EXTI_FPR1_FPIF26_Pos (26U)
  5504. #define EXTI_FPR1_FPIF26_Msk (0x1UL << EXTI_FPR1_FPIF26_Pos) /*!< 0x04000000 */
  5505. #define EXTI_FPR1_FPIF26 EXTI_FPR1_FPIF26_Msk /*!< Falling Pending Interrupt Flag on line 26 */
  5506. #define EXTI_FPR1_FPIF27_Pos (27U)
  5507. #define EXTI_FPR1_FPIF27_Msk (0x1UL << EXTI_FPR1_FPIF27_Pos) /*!< 0x08000000 */
  5508. #define EXTI_FPR1_FPIF27 EXTI_FPR1_FPIF27_Msk /*!< Falling Pending Interrupt Flag on line 27 */
  5509. #define EXTI_FPR1_FPIF28_Pos (28U)
  5510. #define EXTI_FPR1_FPIF28_Msk (0x1UL << EXTI_FPR1_FPIF28_Pos) /*!< 0x10000000 */
  5511. #define EXTI_FPR1_FPIF28 EXTI_FPR1_FPIF28_Msk /*!< Falling Pending Interrupt Flag on line 28 */
  5512. #define EXTI_FPR1_FPIF29_Pos (29U)
  5513. #define EXTI_FPR1_FPIF29_Msk (0x1UL << EXTI_FPR1_FPIF29_Pos) /*!< 0x20000000 */
  5514. #define EXTI_FPR1_FPIF29 EXTI_FPR1_FPIF29_Msk /*!< Falling Pending Interrupt Flag on line 29 */
  5515. #define EXTI_FPR1_FPIF30_Pos (30U)
  5516. #define EXTI_FPR1_FPIF30_Msk (0x1UL << EXTI_FPR1_FPIF30_Pos) /*!< 0x40000000 */
  5517. #define EXTI_FPR1_FPIF30 EXTI_FPR1_FPIF30_Msk /*!< Falling Pending Interrupt Flag on line 30 */
  5518. #define EXTI_FPR1_FPIF31_Pos (31U)
  5519. #define EXTI_FPR1_FPIF31_Msk (0x1UL << EXTI_FPR1_FPIF31_Pos) /*!< 0x80000000 */
  5520. #define EXTI_FPR1_FPIF31 EXTI_FPR1_FPIF31_Msk /*!< Falling Pending Interrupt Flag on line 31 */
  5521. /******************* Bit definition for EXTI_FPR2 register *****************/
  5522. #define EXTI_FPR2_FPIF32_Pos (0U)
  5523. #define EXTI_FPR2_FPIF32_Msk (0x1UL << EXTI_FPR2_FPIF32_Pos) /*!< 0x00000001 */
  5524. #define EXTI_FPR2_FPIF32 EXTI_FPR2_FPIF32_Msk /*!< Falling Pending Interrupt Flag on line 32 */
  5525. #define EXTI_FPR2_FPIF33_Pos (1U)
  5526. #define EXTI_FPR2_FPIF33_Msk (0x1UL << EXTI_FPR2_FPIF33_Pos) /*!< 0x00000002 */
  5527. #define EXTI_FPR2_FPIF33 EXTI_FPR2_FPIF33_Msk /*!< Falling Pending Interrupt Flag on line 33 */
  5528. #define EXTI_FPR2_FPIF34_Pos (2U)
  5529. #define EXTI_FPR2_FPIF34_Msk (0x1UL << EXTI_FPR2_FPIF34_Pos) /*!< 0x00000004 */
  5530. #define EXTI_FPR2_FPIF34 EXTI_FPR2_FPIF34_Msk /*!< Falling Pending Interrupt Flag on line 34 */
  5531. #define EXTI_FPR2_FPIF35_Pos (3U)
  5532. #define EXTI_FPR2_FPIF35_Msk (0x1UL << EXTI_FPR2_FPIF35_Pos) /*!< 0x00000008 */
  5533. #define EXTI_FPR2_FPIF35 EXTI_FPR2_FPIF35_Msk /*!< Falling Pending Interrupt Flag on line 35 */
  5534. #define EXTI_FPR2_FPIF36_Pos (4U)
  5535. #define EXTI_FPR2_FPIF36_Msk (0x1UL << EXTI_FPR2_FPIF36_Pos) /*!< 0x00000010 */
  5536. #define EXTI_FPR2_FPIF36 EXTI_FPR2_FPIF36_Msk /*!< Falling Pending Interrupt Flag on line 36 */
  5537. #define EXTI_FPR2_FPIF37_Pos (5U)
  5538. #define EXTI_FPR2_FPIF37_Msk (0x1UL << EXTI_FPR2_FPIF37_Pos) /*!< 0x00000020 */
  5539. #define EXTI_FPR2_FPIF37 EXTI_FPR2_FPIF37_Msk /*!< Falling Pending Interrupt Flag on line 37 */
  5540. #define EXTI_FPR2_FPIF38_Pos (6U)
  5541. #define EXTI_FPR2_FPIF38_Msk (0x1UL << EXTI_FPR2_FPIF38_Pos) /*!< 0x00000040 */
  5542. #define EXTI_FPR2_FPIF38 EXTI_FPR2_FPIF38_Msk /*!< Falling Pending Interrupt Flag on line 38 */
  5543. #define EXTI_FPR2_FPIF39_Pos (7U)
  5544. #define EXTI_FPR2_FPIF39_Msk (0x1UL << EXTI_FPR2_FPIF39_Pos) /*!< 0x00000080 */
  5545. #define EXTI_FPR2_FPIF39 EXTI_FPR2_FPIF39_Msk /*!< Falling Pending Interrupt Flag on line 39 */
  5546. #define EXTI_FPR2_FPIF40_Pos (8U)
  5547. #define EXTI_FPR2_FPIF40_Msk (0x1UL << EXTI_FPR2_FPIF40_Pos) /*!< 0x00000100 */
  5548. #define EXTI_FPR2_FPIF40 EXTI_FPR2_FPIF40_Msk /*!< Falling Pending Interrupt Flag on line 40 */
  5549. #define EXTI_FPR2_FPIF41_Pos (9U)
  5550. #define EXTI_FPR2_FPIF41_Msk (0x1UL << EXTI_FPR2_FPIF41_Pos) /*!< 0x00000200 */
  5551. #define EXTI_FPR2_FPIF41 EXTI_FPR2_FPIF41_Msk /*!< Falling Pending Interrupt Flag on line 41 */
  5552. #define EXTI_FPR2_FPIF42_Pos (10U)
  5553. #define EXTI_FPR2_FPIF42_Msk (0x1UL << EXTI_FPR2_FPIF42_Pos) /*!< 0x00000400 */
  5554. #define EXTI_FPR2_FPIF42 EXTI_FPR2_FPIF42_Msk /*!< Falling Pending Interrupt Flag on line 42 */
  5555. /******************* Bit definition for EXTI_SECCFGR1 register *************/
  5556. #define EXTI_SECCFGR1_SEC0_Pos (0U)
  5557. #define EXTI_SECCFGR1_SEC0_Msk (0x1UL << EXTI_SECCFGR1_SEC0_Pos) /*!< 0x00000001 */
  5558. #define EXTI_SECCFGR1_SEC0 EXTI_SECCFGR1_SEC0_Msk /*!< Security enable on Event input 0 */
  5559. #define EXTI_SECCFGR1_SEC1_Pos (1U)
  5560. #define EXTI_SECCFGR1_SEC1_Msk (0x1UL << EXTI_SECCFGR1_SEC1_Pos) /*!< 0x00000002 */
  5561. #define EXTI_SECCFGR1_SEC1 EXTI_SECCFGR1_SEC1_Msk /*!< Security enable on Event input 1 */
  5562. #define EXTI_SECCFGR1_SEC2_Pos (2U)
  5563. #define EXTI_SECCFGR1_SEC2_Msk (0x1UL << EXTI_SECCFGR1_SEC2_Pos) /*!< 0x00000004 */
  5564. #define EXTI_SECCFGR1_SEC2 EXTI_SECCFGR1_SEC2_Msk /*!< Security enable on Event input 2 */
  5565. #define EXTI_SECCFGR1_SEC3_Pos (3U)
  5566. #define EXTI_SECCFGR1_SEC3_Msk (0x1UL << EXTI_SECCFGR1_SEC3_Pos) /*!< 0x00000008 */
  5567. #define EXTI_SECCFGR1_SEC3 EXTI_SECCFGR1_SEC3_Msk /*!< Security enable on Event input 3 */
  5568. #define EXTI_SECCFGR1_SEC4_Pos (4U)
  5569. #define EXTI_SECCFGR1_SEC4_Msk (0x1UL << EXTI_SECCFGR1_SEC4_Pos) /*!< 0x00000010 */
  5570. #define EXTI_SECCFGR1_SEC4 EXTI_SECCFGR1_SEC4_Msk /*!< Security enable on Event input 4 */
  5571. #define EXTI_SECCFGR1_SEC5_Pos (5U)
  5572. #define EXTI_SECCFGR1_SEC5_Msk (0x1UL << EXTI_SECCFGR1_SEC5_Pos) /*!< 0x00000020 */
  5573. #define EXTI_SECCFGR1_SEC5 EXTI_SECCFGR1_SEC5_Msk /*!< Security enable on Event input 5 */
  5574. #define EXTI_SECCFGR1_SEC6_Pos (6U)
  5575. #define EXTI_SECCFGR1_SEC6_Msk (0x1UL << EXTI_SECCFGR1_SEC6_Pos) /*!< 0x00000040 */
  5576. #define EXTI_SECCFGR1_SEC6 EXTI_SECCFGR1_SEC6_Msk /*!< Security enable on Event input 6 */
  5577. #define EXTI_SECCFGR1_SEC7_Pos (7U)
  5578. #define EXTI_SECCFGR1_SEC7_Msk (0x1UL << EXTI_SECCFGR1_SEC7_Pos) /*!< 0x00000080 */
  5579. #define EXTI_SECCFGR1_SEC7 EXTI_SECCFGR1_SEC7_Msk /*!< Security enable on Event input 7 */
  5580. #define EXTI_SECCFGR1_SEC8_Pos (8U)
  5581. #define EXTI_SECCFGR1_SEC8_Msk (0x1UL << EXTI_SECCFGR1_SEC8_Pos) /*!< 0x00000100 */
  5582. #define EXTI_SECCFGR1_SEC8 EXTI_SECCFGR1_SEC8_Msk /*!< Security enable on Event input 8 */
  5583. #define EXTI_SECCFGR1_SEC9_Pos (9U)
  5584. #define EXTI_SECCFGR1_SEC9_Msk (0x1UL << EXTI_SECCFGR1_SEC9_Pos) /*!< 0x00000200 */
  5585. #define EXTI_SECCFGR1_SEC9 EXTI_SECCFGR1_SEC9_Msk /*!< Security enable on Event input 9 */
  5586. #define EXTI_SECCFGR1_SEC10_Pos (10U)
  5587. #define EXTI_SECCFGR1_SEC10_Msk (0x1UL << EXTI_SECCFGR1_SEC10_Pos) /*!< 0x00000400 */
  5588. #define EXTI_SECCFGR1_SEC10 EXTI_SECCFGR1_SEC10_Msk /*!< Security enable on Event input 10 */
  5589. #define EXTI_SECCFGR1_SEC11_Pos (11U)
  5590. #define EXTI_SECCFGR1_SEC11_Msk (0x1UL << EXTI_SECCFGR1_SEC11_Pos) /*!< 0x00000800 */
  5591. #define EXTI_SECCFGR1_SEC11 EXTI_SECCFGR1_SEC11_Msk /*!< Security enable on Event input 11 */
  5592. #define EXTI_SECCFGR1_SEC12_Pos (12U)
  5593. #define EXTI_SECCFGR1_SEC12_Msk (0x1UL << EXTI_SECCFGR1_SEC12_Pos) /*!< 0x00001000 */
  5594. #define EXTI_SECCFGR1_SEC12 EXTI_SECCFGR1_SEC12_Msk /*!< Security enable on Event input 12 */
  5595. #define EXTI_SECCFGR1_SEC13_Pos (13U)
  5596. #define EXTI_SECCFGR1_SEC13_Msk (0x1UL << EXTI_SECCFGR1_SEC13_Pos) /*!< 0x00002000 */
  5597. #define EXTI_SECCFGR1_SEC13 EXTI_SECCFGR1_SEC13_Msk /*!< Security enable on Event input 13 */
  5598. #define EXTI_SECCFGR1_SEC14_Pos (14U)
  5599. #define EXTI_SECCFGR1_SEC14_Msk (0x1UL << EXTI_SECCFGR1_SEC14_Pos) /*!< 0x00004000 */
  5600. #define EXTI_SECCFGR1_SEC14 EXTI_SECCFGR1_SEC14_Msk /*!< Security enable on Event input 14 */
  5601. #define EXTI_SECCFGR1_SEC15_Pos (15U)
  5602. #define EXTI_SECCFGR1_SEC15_Msk (0x1UL << EXTI_SECCFGR1_SEC15_Pos) /*!< 0x00008000 */
  5603. #define EXTI_SECCFGR1_SEC15 EXTI_SECCFGR1_SEC15_Msk /*!< Security enable on Event input 15 */
  5604. #define EXTI_SECCFGR1_SEC16_Pos (16U)
  5605. #define EXTI_SECCFGR1_SEC16_Msk (0x1UL << EXTI_SECCFGR1_SEC16_Pos) /*!< 0x00010000 */
  5606. #define EXTI_SECCFGR1_SEC16 EXTI_SECCFGR1_SEC16_Msk /*!< Security enable on Event input 16 */
  5607. #define EXTI_SECCFGR1_SEC17_Pos (17U)
  5608. #define EXTI_SECCFGR1_SEC17_Msk (0x1UL << EXTI_SECCFGR1_SEC17_Pos) /*!< 0x00020000 */
  5609. #define EXTI_SECCFGR1_SEC17 EXTI_SECCFGR1_SEC17_Msk /*!< Security enable on Event input 17 */
  5610. #define EXTI_SECCFGR1_SEC18_Pos (18U)
  5611. #define EXTI_SECCFGR1_SEC18_Msk (0x1UL << EXTI_SECCFGR1_SEC18_Pos) /*!< 0x00040000 */
  5612. #define EXTI_SECCFGR1_SEC18 EXTI_SECCFGR1_SEC18_Msk /*!< Security enable on Event input 18 */
  5613. #define EXTI_SECCFGR1_SEC19_Pos (19U)
  5614. #define EXTI_SECCFGR1_SEC19_Msk (0x1UL << EXTI_SECCFGR1_SEC19_Pos) /*!< 0x00080000 */
  5615. #define EXTI_SECCFGR1_SEC19 EXTI_SECCFGR1_SEC19_Msk /*!< Security enable on Event input 19 */
  5616. #define EXTI_SECCFGR1_SEC20_Pos (20U)
  5617. #define EXTI_SECCFGR1_SEC20_Msk (0x1UL << EXTI_SECCFGR1_SEC20_Pos) /*!< 0x00100000 */
  5618. #define EXTI_SECCFGR1_SEC20 EXTI_SECCFGR1_SEC20_Msk /*!< Security enable on Event input 20 */
  5619. #define EXTI_SECCFGR1_SEC21_Pos (21U)
  5620. #define EXTI_SECCFGR1_SEC21_Msk (0x1UL << EXTI_SECCFGR1_SEC21_Pos) /*!< 0x00200000 */
  5621. #define EXTI_SECCFGR1_SEC21 EXTI_SECCFGR1_SEC21_Msk /*!< Security enable on Event input 21 */
  5622. #define EXTI_SECCFGR1_SEC22_Pos (22U)
  5623. #define EXTI_SECCFGR1_SEC22_Msk (0x1UL << EXTI_SECCFGR1_SEC22_Pos) /*!< 0x00400000 */
  5624. #define EXTI_SECCFGR1_SEC22 EXTI_SECCFGR1_SEC22_Msk /*!< Security enable on Event input 22 */
  5625. #define EXTI_SECCFGR1_SEC23_Pos (23U)
  5626. #define EXTI_SECCFGR1_SEC23_Msk (0x1UL << EXTI_SECCFGR1_SEC23_Pos) /*!< 0x00800000 */
  5627. #define EXTI_SECCFGR1_SEC23 EXTI_SECCFGR1_SEC23_Msk /*!< Security enable on Event input 23 */
  5628. #define EXTI_SECCFGR1_SEC24_Pos (24U)
  5629. #define EXTI_SECCFGR1_SEC24_Msk (0x1UL << EXTI_SECCFGR1_SEC24_Pos) /*!< 0x01000000 */
  5630. #define EXTI_SECCFGR1_SEC24 EXTI_SECCFGR1_SEC24_Msk /*!< Security enable on Event input 24 */
  5631. #define EXTI_SECCFGR1_SEC25_Pos (25U)
  5632. #define EXTI_SECCFGR1_SEC25_Msk (0x1UL << EXTI_SECCFGR1_SEC25_Pos) /*!< 0x02000000 */
  5633. #define EXTI_SECCFGR1_SEC25 EXTI_SECCFGR1_SEC25_Msk /*!< Security enable on Event input 25 */
  5634. #define EXTI_SECCFGR1_SEC26_Pos (26U)
  5635. #define EXTI_SECCFGR1_SEC26_Msk (0x1UL << EXTI_SECCFGR1_SEC26_Pos) /*!< 0x04000000 */
  5636. #define EXTI_SECCFGR1_SEC26 EXTI_SECCFGR1_SEC26_Msk /*!< Security enable on Event input 26 */
  5637. #define EXTI_SECCFGR1_SEC27_Pos (27U)
  5638. #define EXTI_SECCFGR1_SEC27_Msk (0x1UL << EXTI_SECCFGR1_SEC27_Pos) /*!< 0x08000000 */
  5639. #define EXTI_SECCFGR1_SEC27 EXTI_SECCFGR1_SEC27_Msk /*!< Security enable on Event input 27 */
  5640. #define EXTI_SECCFGR1_SEC28_Pos (28U)
  5641. #define EXTI_SECCFGR1_SEC28_Msk (0x1UL << EXTI_SECCFGR1_SEC28_Pos) /*!< 0x10000000 */
  5642. #define EXTI_SECCFGR1_SEC28 EXTI_SECCFGR1_SEC28_Msk /*!< Security enable on Event input 28 */
  5643. #define EXTI_SECCFGR1_SEC29_Pos (29U)
  5644. #define EXTI_SECCFGR1_SEC29_Msk (0x1UL << EXTI_SECCFGR1_SEC29_Pos) /*!< 0x20000000 */
  5645. #define EXTI_SECCFGR1_SEC29 EXTI_SECCFGR1_SEC29_Msk /*!< Security enable on Event input 29 */
  5646. #define EXTI_SECCFGR1_SEC30_Pos (30U)
  5647. #define EXTI_SECCFGR1_SEC30_Msk (0x1UL << EXTI_SECCFGR1_SEC30_Pos) /*!< 0x40000000 */
  5648. #define EXTI_SECCFGR1_SEC30 EXTI_SECCFGR1_SEC30_Msk /*!< Security enable on Event input 30 */
  5649. #define EXTI_SECCFGR1_SEC31_Pos (31U)
  5650. #define EXTI_SECCFGR1_SEC31_Msk (0x1UL << EXTI_SECCFGR1_SEC31_Pos) /*!< 0x80000000 */
  5651. #define EXTI_SECCFGR1_SEC31 EXTI_SECCFGR1_SEC31_Msk /*!< Security enable on Event input 31 */
  5652. /******************* Bit definition for EXTI_SECCFGR2 register *************/
  5653. #define EXTI_SECCFGR2_SEC32_Pos (0U)
  5654. #define EXTI_SECCFGR2_SEC32_Msk (0x1UL << EXTI_SECCFGR2_SEC32_Pos) /*!< 0x00000001 */
  5655. #define EXTI_SECCFGR2_SEC32 EXTI_SECCFGR2_SEC32_Msk /*!< Security enable on Event input 32 */
  5656. #define EXTI_SECCFGR2_SEC33_Pos (1U)
  5657. #define EXTI_SECCFGR2_SEC33_Msk (0x1UL << EXTI_SECCFGR2_SEC33_Pos) /*!< 0x00000002 */
  5658. #define EXTI_SECCFGR2_SEC33 EXTI_SECCFGR2_SEC33_Msk /*!< Security enable on Event input 33 */
  5659. #define EXTI_SECCFGR2_SEC34_Pos (2U)
  5660. #define EXTI_SECCFGR2_SEC34_Msk (0x1UL << EXTI_SECCFGR2_SEC34_Pos) /*!< 0x00000004 */
  5661. #define EXTI_SECCFGR2_SEC34 EXTI_SECCFGR2_SEC34_Msk /*!< Security enable on Event input 34 */
  5662. #define EXTI_SECCFGR2_SEC35_Pos (3U)
  5663. #define EXTI_SECCFGR2_SEC35_Msk (0x1UL << EXTI_SECCFGR2_SEC35_Pos) /*!< 0x00000008 */
  5664. #define EXTI_SECCFGR2_SEC35 EXTI_SECCFGR2_SEC35_Msk /*!< Security enable on Event input 35 */
  5665. #define EXTI_SECCFGR2_SEC36_Pos (4U)
  5666. #define EXTI_SECCFGR2_SEC36_Msk (0x1UL << EXTI_SECCFGR2_SEC36_Pos) /*!< 0x00000010 */
  5667. #define EXTI_SECCFGR2_SEC36 EXTI_SECCFGR2_SEC36_Msk /*!< Security enable on Event input 36 */
  5668. #define EXTI_SECCFGR2_SEC37_Pos (5U)
  5669. #define EXTI_SECCFGR2_SEC37_Msk (0x1UL << EXTI_SECCFGR2_SEC37_Pos) /*!< 0x00000020 */
  5670. #define EXTI_SECCFGR2_SEC37 EXTI_SECCFGR2_SEC37_Msk /*!< Security enable on Event input 37 */
  5671. #define EXTI_SECCFGR2_SEC38_Pos (6U)
  5672. #define EXTI_SECCFGR2_SEC38_Msk (0x1UL << EXTI_SECCFGR2_SEC38_Pos) /*!< 0x00000040 */
  5673. #define EXTI_SECCFGR2_SEC38 EXTI_SECCFGR2_SEC38_Msk /*!< Security enable on Event input 38 */
  5674. #define EXTI_SECCFGR2_SEC39_Pos (7U)
  5675. #define EXTI_SECCFGR2_SEC39_Msk (0x1UL << EXTI_SECCFGR2_SEC39_Pos) /*!< 0x00000080 */
  5676. #define EXTI_SECCFGR2_SEC39 EXTI_SECCFGR2_SEC39_Msk /*!< Security enable on Event input 39 */
  5677. #define EXTI_SECCFGR2_SEC40_Pos (8U)
  5678. #define EXTI_SECCFGR2_SEC40_Msk (0x1UL << EXTI_SECCFGR2_SEC40_Pos) /*!< 0x00000100 */
  5679. #define EXTI_SECCFGR2_SEC40 EXTI_SECCFGR2_SEC40_Msk /*!< Security enable on Event input 40 */
  5680. #define EXTI_SECCFGR2_SEC41_Pos (9U)
  5681. #define EXTI_SECCFGR2_SEC41_Msk (0x1UL << EXTI_SECCFGR2_SEC41_Pos) /*!< 0x00000200 */
  5682. #define EXTI_SECCFGR2_SEC41 EXTI_SECCFGR2_SEC41_Msk /*!< Security enable on Event input 41 */
  5683. #define EXTI_SECCFGR2_SEC42_Pos (10U)
  5684. #define EXTI_SECCFGR2_SEC42_Msk (0x1UL << EXTI_SECCFGR2_SEC42_Pos) /*!< 0x00000400 */
  5685. #define EXTI_SECCFGR2_SEC42 EXTI_SECCFGR2_SEC42_Msk /*!< Security enable on Event input 42 */
  5686. /******************* Bit definition for EXTI_PRIVCFGR1 register ************/
  5687. #define EXTI_PRIVCFGR1_PRIV0_Pos (0U)
  5688. #define EXTI_PRIVCFGR1_PRIV0_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV0_Pos) /*!< 0x00000001 */
  5689. #define EXTI_PRIVCFGR1_PRIV0 EXTI_PRIVCFGR1_PRIV0_Msk /*!< Privilege enable on Event input 0 */
  5690. #define EXTI_PRIVCFGR1_PRIV1_Pos (1U)
  5691. #define EXTI_PRIVCFGR1_PRIV1_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV1_Pos) /*!< 0x00000002 */
  5692. #define EXTI_PRIVCFGR1_PRIV1 EXTI_PRIVCFGR1_PRIV1_Msk /*!< Privilege enable on Event input 1 */
  5693. #define EXTI_PRIVCFGR1_PRIV2_Pos (2U)
  5694. #define EXTI_PRIVCFGR1_PRIV2_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV2_Pos) /*!< 0x00000004 */
  5695. #define EXTI_PRIVCFGR1_PRIV2 EXTI_PRIVCFGR1_PRIV2_Msk /*!< Privilege enable on Event input 2 */
  5696. #define EXTI_PRIVCFGR1_PRIV3_Pos (3U)
  5697. #define EXTI_PRIVCFGR1_PRIV3_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV3_Pos) /*!< 0x00000008 */
  5698. #define EXTI_PRIVCFGR1_PRIV3 EXTI_PRIVCFGR1_PRIV3_Msk /*!< Privilege enable on Event input 3 */
  5699. #define EXTI_PRIVCFGR1_PRIV4_Pos (4U)
  5700. #define EXTI_PRIVCFGR1_PRIV4_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV4_Pos) /*!< 0x00000010 */
  5701. #define EXTI_PRIVCFGR1_PRIV4 EXTI_PRIVCFGR1_PRIV4_Msk /*!< Privilege enable on Event input 4 */
  5702. #define EXTI_PRIVCFGR1_PRIV5_Pos (5U)
  5703. #define EXTI_PRIVCFGR1_PRIV5_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV5_Pos) /*!< 0x00000020 */
  5704. #define EXTI_PRIVCFGR1_PRIV5 EXTI_PRIVCFGR1_PRIV5_Msk /*!< Privilege enable on Event input 5 */
  5705. #define EXTI_PRIVCFGR1_PRIV6_Pos (6U)
  5706. #define EXTI_PRIVCFGR1_PRIV6_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV6_Pos) /*!< 0x00000040 */
  5707. #define EXTI_PRIVCFGR1_PRIV6 EXTI_PRIVCFGR1_PRIV6_Msk /*!< Privilege enable on Event input 6 */
  5708. #define EXTI_PRIVCFGR1_PRIV7_Pos (7U)
  5709. #define EXTI_PRIVCFGR1_PRIV7_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV7_Pos) /*!< 0x00000080 */
  5710. #define EXTI_PRIVCFGR1_PRIV7 EXTI_PRIVCFGR1_PRIV7_Msk /*!< Privilege enable on Event input 7 */
  5711. #define EXTI_PRIVCFGR1_PRIV8_Pos (8U)
  5712. #define EXTI_PRIVCFGR1_PRIV8_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV8_Pos) /*!< 0x00000100 */
  5713. #define EXTI_PRIVCFGR1_PRIV8 EXTI_PRIVCFGR1_PRIV8_Msk /*!< Privilege enable on Event input 8 */
  5714. #define EXTI_PRIVCFGR1_PRIV9_Pos (9U)
  5715. #define EXTI_PRIVCFGR1_PRIV9_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV9_Pos) /*!< 0x00000200 */
  5716. #define EXTI_PRIVCFGR1_PRIV9 EXTI_PRIVCFGR1_PRIV9_Msk /*!< Privilege enable on Event input 9 */
  5717. #define EXTI_PRIVCFGR1_PRIV10_Pos (10U)
  5718. #define EXTI_PRIVCFGR1_PRIV10_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV10_Pos) /*!< 0x00000400 */
  5719. #define EXTI_PRIVCFGR1_PRIV10 EXTI_PRIVCFGR1_PRIV10_Msk /*!< Privilege enable on Event input 10 */
  5720. #define EXTI_PRIVCFGR1_PRIV11_Pos (11U)
  5721. #define EXTI_PRIVCFGR1_PRIV11_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV11_Pos) /*!< 0x00000800 */
  5722. #define EXTI_PRIVCFGR1_PRIV11 EXTI_PRIVCFGR1_PRIV11_Msk /*!< Privilege enable on Event input 11 */
  5723. #define EXTI_PRIVCFGR1_PRIV12_Pos (12U)
  5724. #define EXTI_PRIVCFGR1_PRIV12_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV12_Pos) /*!< 0x00001000 */
  5725. #define EXTI_PRIVCFGR1_PRIV12 EXTI_PRIVCFGR1_PRIV12_Msk /*!< Privilege enable on Event input 12 */
  5726. #define EXTI_PRIVCFGR1_PRIV13_Pos (13U)
  5727. #define EXTI_PRIVCFGR1_PRIV13_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV13_Pos) /*!< 0x00002000 */
  5728. #define EXTI_PRIVCFGR1_PRIV13 EXTI_PRIVCFGR1_PRIV13_Msk /*!< Privilege enable on Event input 13 */
  5729. #define EXTI_PRIVCFGR1_PRIV14_Pos (14U)
  5730. #define EXTI_PRIVCFGR1_PRIV14_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV14_Pos) /*!< 0x00004000 */
  5731. #define EXTI_PRIVCFGR1_PRIV14 EXTI_PRIVCFGR1_PRIV14_Msk /*!< Privilege enable on Event input 14 */
  5732. #define EXTI_PRIVCFGR1_PRIV15_Pos (15U)
  5733. #define EXTI_PRIVCFGR1_PRIV15_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV15_Pos) /*!< 0x00008000 */
  5734. #define EXTI_PRIVCFGR1_PRIV15 EXTI_PRIVCFGR1_PRIV15_Msk /*!< Privilege enable on Event input 15 */
  5735. #define EXTI_PRIVCFGR1_PRIV16_Pos (16U)
  5736. #define EXTI_PRIVCFGR1_PRIV16_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV16_Pos) /*!< 0x00010000 */
  5737. #define EXTI_PRIVCFGR1_PRIV16 EXTI_PRIVCFGR1_PRIV16_Msk /*!< Privilege enable on Event input 16 */
  5738. #define EXTI_PRIVCFGR1_PRIV17_Pos (17U)
  5739. #define EXTI_PRIVCFGR1_PRIV17_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV17_Pos) /*!< 0x00020000 */
  5740. #define EXTI_PRIVCFGR1_PRIV17 EXTI_PRIVCFGR1_PRIV17_Msk /*!< Privilege enable on Event input 17 */
  5741. #define EXTI_PRIVCFGR1_PRIV18_Pos (18U)
  5742. #define EXTI_PRIVCFGR1_PRIV18_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV18_Pos) /*!< 0x00040000 */
  5743. #define EXTI_PRIVCFGR1_PRIV18 EXTI_PRIVCFGR1_PRIV18_Msk /*!< Privilege enable on Event input 18 */
  5744. #define EXTI_PRIVCFGR1_PRIV19_Pos (19U)
  5745. #define EXTI_PRIVCFGR1_PRIV19_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV19_Pos) /*!< 0x00080000 */
  5746. #define EXTI_PRIVCFGR1_PRIV19 EXTI_PRIVCFGR1_PRIV19_Msk /*!< Privilege enable on Event input 19 */
  5747. #define EXTI_PRIVCFGR1_PRIV20_Pos (20U)
  5748. #define EXTI_PRIVCFGR1_PRIV20_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV20_Pos) /*!< 0x00100000 */
  5749. #define EXTI_PRIVCFGR1_PRIV20 EXTI_PRIVCFGR1_PRIV20_Msk /*!< Privilege enable on Event input 20 */
  5750. #define EXTI_PRIVCFGR1_PRIV21_Pos (21U)
  5751. #define EXTI_PRIVCFGR1_PRIV21_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV21_Pos) /*!< 0x00200000 */
  5752. #define EXTI_PRIVCFGR1_PRIV21 EXTI_PRIVCFGR1_PRIV21_Msk /*!< Privilege enable on Event input 21 */
  5753. #define EXTI_PRIVCFGR1_PRIV22_Pos (22U)
  5754. #define EXTI_PRIVCFGR1_PRIV22_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV22_Pos) /*!< 0x00400000 */
  5755. #define EXTI_PRIVCFGR1_PRIV22 EXTI_PRIVCFGR1_PRIV22_Msk /*!< Privilege enable on Event input 22 */
  5756. #define EXTI_PRIVCFGR1_PRIV23_Pos (23U)
  5757. #define EXTI_PRIVCFGR1_PRIV23_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV23_Pos) /*!< 0x00800000 */
  5758. #define EXTI_PRIVCFGR1_PRIV23 EXTI_PRIVCFGR1_PRIV23_Msk /*!< Privilege enable on Event input 23 */
  5759. #define EXTI_PRIVCFGR1_PRIV24_Pos (24U)
  5760. #define EXTI_PRIVCFGR1_PRIV24_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV24_Pos) /*!< 0x01000000 */
  5761. #define EXTI_PRIVCFGR1_PRIV24 EXTI_PRIVCFGR1_PRIV24_Msk /*!< Privilege enable on Event input 24 */
  5762. #define EXTI_PRIVCFGR1_PRIV25_Pos (25U)
  5763. #define EXTI_PRIVCFGR1_PRIV25_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV25_Pos) /*!< 0x02000000 */
  5764. #define EXTI_PRIVCFGR1_PRIV25 EXTI_PRIVCFGR1_PRIV25_Msk /*!< Privilege enable on Event input 25 */
  5765. #define EXTI_PRIVCFGR1_PRIV26_Pos (26U)
  5766. #define EXTI_PRIVCFGR1_PRIV26_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV26_Pos) /*!< 0x04000000 */
  5767. #define EXTI_PRIVCFGR1_PRIV26 EXTI_PRIVCFGR1_PRIV26_Msk /*!< Privilege enable on Event input 26 */
  5768. #define EXTI_PRIVCFGR1_PRIV27_Pos (27U)
  5769. #define EXTI_PRIVCFGR1_PRIV27_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV27_Pos) /*!< 0x08000000 */
  5770. #define EXTI_PRIVCFGR1_PRIV27 EXTI_PRIVCFGR1_PRIV27_Msk /*!< Privilege enable on Event input 27 */
  5771. #define EXTI_PRIVCFGR1_PRIV28_Pos (28U)
  5772. #define EXTI_PRIVCFGR1_PRIV28_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV28_Pos) /*!< 0x10000000 */
  5773. #define EXTI_PRIVCFGR1_PRIV28 EXTI_PRIVCFGR1_PRIV28_Msk /*!< Privilege enable on Event input 28 */
  5774. #define EXTI_PRIVCFGR1_PRIV29_Pos (29U)
  5775. #define EXTI_PRIVCFGR1_PRIV29_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV29_Pos) /*!< 0x20000000 */
  5776. #define EXTI_PRIVCFGR1_PRIV29 EXTI_PRIVCFGR1_PRIV29_Msk /*!< Privilege enable on Event input 29 */
  5777. #define EXTI_PRIVCFGR1_PRIV30_Pos (30U)
  5778. #define EXTI_PRIVCFGR1_PRIV30_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV30_Pos) /*!< 0x40000000 */
  5779. #define EXTI_PRIVCFGR1_PRIV30 EXTI_PRIVCFGR1_PRIV30_Msk /*!< Privilege enable on Event input 30 */
  5780. #define EXTI_PRIVCFGR1_PRIV31_Pos (31U)
  5781. #define EXTI_PRIVCFGR1_PRIV31_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV31_Pos) /*!< 0x80000000 */
  5782. #define EXTI_PRIVCFGR1_PRIV31 EXTI_PRIVCFGR1_PRIV31_Msk /*!< Privilege enable on Event input 31 */
  5783. /******************* Bit definition for EXTI_PRIVCFGR2 register ************/
  5784. #define EXTI_PRIVCFGR2_PRIV32_Pos (0U)
  5785. #define EXTI_PRIVCFGR2_PRIV32_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV32_Pos) /*!< 0x00000001 */
  5786. #define EXTI_PRIVCFGR2_PRIV32 EXTI_PRIVCFGR2_PRIV32_Msk /*!< Privilege enable on Event input 32 */
  5787. #define EXTI_PRIVCFGR2_PRIV33_Pos (1U)
  5788. #define EXTI_PRIVCFGR2_PRIV33_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV33_Pos) /*!< 0x00000002 */
  5789. #define EXTI_PRIVCFGR2_PRIV33 EXTI_PRIVCFGR2_PRIV33_Msk /*!< Privilege enable on Event input 33 */
  5790. #define EXTI_PRIVCFGR2_PRIV34_Pos (2U)
  5791. #define EXTI_PRIVCFGR2_PRIV34_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV34_Pos) /*!< 0x00000004 */
  5792. #define EXTI_PRIVCFGR2_PRIV34 EXTI_PRIVCFGR2_PRIV34_Msk /*!< Privilege enable on Event input 34 */
  5793. #define EXTI_PRIVCFGR2_PRIV35_Pos (3U)
  5794. #define EXTI_PRIVCFGR2_PRIV35_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV35_Pos) /*!< 0x00000008 */
  5795. #define EXTI_PRIVCFGR2_PRIV35 EXTI_PRIVCFGR2_PRIV35_Msk /*!< Privilege enable on Event input 35 */
  5796. #define EXTI_PRIVCFGR2_PRIV36_Pos (4U)
  5797. #define EXTI_PRIVCFGR2_PRIV36_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV36_Pos) /*!< 0x00000010 */
  5798. #define EXTI_PRIVCFGR2_PRIV36 EXTI_PRIVCFGR2_PRIV36_Msk /*!< Privilege enable on Event input 36 */
  5799. #define EXTI_PRIVCFGR2_PRIV37_Pos (5U)
  5800. #define EXTI_PRIVCFGR2_PRIV37_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV37_Pos) /*!< 0x00000020 */
  5801. #define EXTI_PRIVCFGR2_PRIV37 EXTI_PRIVCFGR2_PRIV37_Msk /*!< Privilege enable on Event input 37 */
  5802. #define EXTI_PRIVCFGR2_PRIV38_Pos (6U)
  5803. #define EXTI_PRIVCFGR2_PRIV38_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV38_Pos) /*!< 0x00000040 */
  5804. #define EXTI_PRIVCFGR2_PRIV38 EXTI_PRIVCFGR2_PRIV38_Msk /*!< Privilege enable on Event input 38 */
  5805. #define EXTI_PRIVCFGR2_PRIV39_Pos (7U)
  5806. #define EXTI_PRIVCFGR2_PRIV39_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV39_Pos) /*!< 0x00000080 */
  5807. #define EXTI_PRIVCFGR2_PRIV39 EXTI_PRIVCFGR2_PRIV39_Msk /*!< Privilege enable on Event input 39 */
  5808. #define EXTI_PRIVCFGR2_PRIV40_Pos (8U)
  5809. #define EXTI_PRIVCFGR2_PRIV40_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV40_Pos) /*!< 0x00000100 */
  5810. #define EXTI_PRIVCFGR2_PRIV40 EXTI_PRIVCFGR2_PRIV40_Msk /*!< Privilege enable on Event input 40 */
  5811. #define EXTI_PRIVCFGR2_PRIV41_Pos (9U)
  5812. #define EXTI_PRIVCFGR2_PRIV41_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV41_Pos) /*!< 0x00000200 */
  5813. #define EXTI_PRIVCFGR2_PRIV41 EXTI_PRIVCFGR2_PRIV41_Msk /*!< Privilege enable on Event input 41 */
  5814. #define EXTI_PRIVCFGR2_PRIV42_Pos (10U)
  5815. #define EXTI_PRIVCFGR2_PRIV42_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV42_Pos) /*!< 0x00000400 */
  5816. #define EXTI_PRIVCFGR2_PRIV42 EXTI_PRIVCFGR2_PRIV42_Msk /*!< Privilege enable on Event input 42 */
  5817. /***************** Bit definition for EXTI_EXTICR1 register **************/
  5818. #define EXTI_EXTICR1_EXTI0_Pos (0U)
  5819. #define EXTI_EXTICR1_EXTI0_Msk (0x7UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000007 */
  5820. #define EXTI_EXTICR1_EXTI0 EXTI_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */
  5821. #define EXTI_EXTICR1_EXTI0_0 (0x1UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000001 */
  5822. #define EXTI_EXTICR1_EXTI0_1 (0x2UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000002 */
  5823. #define EXTI_EXTICR1_EXTI0_2 (0x4UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000004 */
  5824. #define EXTI_EXTICR1_EXTI1_Pos (8U)
  5825. #define EXTI_EXTICR1_EXTI1_Msk (0x7UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000700 */
  5826. #define EXTI_EXTICR1_EXTI1 EXTI_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */
  5827. #define EXTI_EXTICR1_EXTI1_0 (0x1UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000100 */
  5828. #define EXTI_EXTICR1_EXTI1_1 (0x2UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000200 */
  5829. #define EXTI_EXTICR1_EXTI1_2 (0x4UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000400 */
  5830. #define EXTI_EXTICR1_EXTI2_Pos (16U)
  5831. #define EXTI_EXTICR1_EXTI2_Msk (0x7UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00070000 */
  5832. #define EXTI_EXTICR1_EXTI2 EXTI_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */
  5833. #define EXTI_EXTICR1_EXTI2_0 (0x1UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00010000 */
  5834. #define EXTI_EXTICR1_EXTI2_1 (0x2UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00020000 */
  5835. #define EXTI_EXTICR1_EXTI2_2 (0x4UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00040000 */
  5836. #define EXTI_EXTICR1_EXTI3_Pos (24U)
  5837. #define EXTI_EXTICR1_EXTI3_Msk (0x7UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x07000000 */
  5838. #define EXTI_EXTICR1_EXTI3 EXTI_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */
  5839. #define EXTI_EXTICR1_EXTI3_0 (0x1UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x01000000 */
  5840. #define EXTI_EXTICR1_EXTI3_1 (0x2UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x02000000 */
  5841. #define EXTI_EXTICR1_EXTI3_2 (0x4UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x04000000 */
  5842. /***************** Bit definition for EXTI_EXTICR2 register **************/
  5843. #define EXTI_EXTICR2_EXTI4_Pos (0U)
  5844. #define EXTI_EXTICR2_EXTI4_Msk (0x7UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000007 */
  5845. #define EXTI_EXTICR2_EXTI4 EXTI_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */
  5846. #define EXTI_EXTICR2_EXTI4_0 (0x1UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000001 */
  5847. #define EXTI_EXTICR2_EXTI4_1 (0x2UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000002 */
  5848. #define EXTI_EXTICR2_EXTI4_2 (0x4UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000004 */
  5849. #define EXTI_EXTICR2_EXTI5_Pos (8U)
  5850. #define EXTI_EXTICR2_EXTI5_Msk (0x7UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000700 */
  5851. #define EXTI_EXTICR2_EXTI5 EXTI_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */
  5852. #define EXTI_EXTICR2_EXTI5_0 (0x1UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000100 */
  5853. #define EXTI_EXTICR2_EXTI5_1 (0x2UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000200 */
  5854. #define EXTI_EXTICR2_EXTI5_2 (0x4UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000400 */
  5855. #define EXTI_EXTICR2_EXTI6_Pos (16U)
  5856. #define EXTI_EXTICR2_EXTI6_Msk (0x7UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00070000 */
  5857. #define EXTI_EXTICR2_EXTI6 EXTI_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */
  5858. #define EXTI_EXTICR2_EXTI6_0 (0x1UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00010000 */
  5859. #define EXTI_EXTICR2_EXTI6_1 (0x2UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00020000 */
  5860. #define EXTI_EXTICR2_EXTI6_2 (0x4UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00040000 */
  5861. #define EXTI_EXTICR2_EXTI7_Pos (24U)
  5862. #define EXTI_EXTICR2_EXTI7_Msk (0x7UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x07000000 */
  5863. #define EXTI_EXTICR2_EXTI7 EXTI_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */
  5864. #define EXTI_EXTICR2_EXTI7_0 (0x1UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x01000000 */
  5865. #define EXTI_EXTICR2_EXTI7_1 (0x2UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x02000000 */
  5866. #define EXTI_EXTICR2_EXTI7_2 (0x4UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x04000000 */
  5867. /***************** Bit definition for EXTI_EXTICR3 register **************/
  5868. #define EXTI_EXTICR3_EXTI8_Pos (0U)
  5869. #define EXTI_EXTICR3_EXTI8_Msk (0x7UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000007 */
  5870. #define EXTI_EXTICR3_EXTI8 EXTI_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */
  5871. #define EXTI_EXTICR3_EXTI8_0 (0x1UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000001 */
  5872. #define EXTI_EXTICR3_EXTI8_1 (0x2UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000002 */
  5873. #define EXTI_EXTICR3_EXTI8_2 (0x4UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000004 */
  5874. #define EXTI_EXTICR3_EXTI9_Pos (8U)
  5875. #define EXTI_EXTICR3_EXTI9_Msk (0x7UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000700 */
  5876. #define EXTI_EXTICR3_EXTI9 EXTI_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */
  5877. #define EXTI_EXTICR3_EXTI9_0 (0x1UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000100 */
  5878. #define EXTI_EXTICR3_EXTI9_1 (0x2UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000200 */
  5879. #define EXTI_EXTICR3_EXTI9_2 (0x4UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000400 */
  5880. #define EXTI_EXTICR3_EXTI10_Pos (16U)
  5881. #define EXTI_EXTICR3_EXTI10_Msk (0x7UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00070000 */
  5882. #define EXTI_EXTICR3_EXTI10 EXTI_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */
  5883. #define EXTI_EXTICR3_EXTI10_0 (0x1UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00010000 */
  5884. #define EXTI_EXTICR3_EXTI10_1 (0x2UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00020000 */
  5885. #define EXTI_EXTICR3_EXTI10_2 (0x4UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00040000 */
  5886. #define EXTI_EXTICR3_EXTI11_Pos (24U)
  5887. #define EXTI_EXTICR3_EXTI11_Msk (0x7UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x07000000 */
  5888. #define EXTI_EXTICR3_EXTI11 EXTI_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */
  5889. #define EXTI_EXTICR3_EXTI11_0 (0x1UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x01000000 */
  5890. #define EXTI_EXTICR3_EXTI11_1 (0x2UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x02000000 */
  5891. #define EXTI_EXTICR3_EXTI11_2 (0x4UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x04000000 */
  5892. /***************** Bit definition for EXTI_EXTICR4 register **************/
  5893. #define EXTI_EXTICR4_EXTI12_Pos (0U)
  5894. #define EXTI_EXTICR4_EXTI12_Msk (0x7UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000007 */
  5895. #define EXTI_EXTICR4_EXTI12 EXTI_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */
  5896. #define EXTI_EXTICR4_EXTI12_0 (0x1UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000001 */
  5897. #define EXTI_EXTICR4_EXTI12_1 (0x2UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000002 */
  5898. #define EXTI_EXTICR4_EXTI12_2 (0x4UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000004 */
  5899. #define EXTI_EXTICR4_EXTI13_Pos (8U)
  5900. #define EXTI_EXTICR4_EXTI13_Msk (0x7UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000700 */
  5901. #define EXTI_EXTICR4_EXTI13 EXTI_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */
  5902. #define EXTI_EXTICR4_EXTI13_0 (0x1UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000100 */
  5903. #define EXTI_EXTICR4_EXTI13_1 (0x2UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000200 */
  5904. #define EXTI_EXTICR4_EXTI13_2 (0x4UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000400 */
  5905. #define EXTI_EXTICR4_EXTI14_Pos (16U)
  5906. #define EXTI_EXTICR4_EXTI14_Msk (0x7UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00070000 */
  5907. #define EXTI_EXTICR4_EXTI14 EXTI_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */
  5908. #define EXTI_EXTICR4_EXTI14_0 (0x1UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00010000 */
  5909. #define EXTI_EXTICR4_EXTI14_1 (0x2UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00020000 */
  5910. #define EXTI_EXTICR4_EXTI14_2 (0x4UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00040000 */
  5911. #define EXTI_EXTICR4_EXTI15_Pos (24U)
  5912. #define EXTI_EXTICR4_EXTI15_Msk (0x7UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x07000000 */
  5913. #define EXTI_EXTICR4_EXTI15 EXTI_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */
  5914. #define EXTI_EXTICR4_EXTI15_0 (0x1UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x01000000 */
  5915. #define EXTI_EXTICR4_EXTI15_1 (0x2UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x02000000 */
  5916. #define EXTI_EXTICR4_EXTI15_2 (0x4UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x04000000 */
  5917. /******************* Bit definition for EXTI_LOCKR register ****************/
  5918. #define EXTI_LOCKR_LOCK_Pos (0U)
  5919. #define EXTI_LOCKR_LOCK_Msk (0x1UL << EXTI_LOCKR_LOCK_Pos) /*!< 0x00000001 */
  5920. #define EXTI_LOCKR_LOCK EXTI_LOCKR_LOCK_Msk /*!< Global security and privilege configuration lock */
  5921. /******************* Bit definition for EXTI_IMR1 register *****************/
  5922. #define EXTI_IMR1_IM0_Pos (0U)
  5923. #define EXTI_IMR1_IM0_Msk (0x1UL << EXTI_IMR1_IM0_Pos) /*!< 0x00000001 */
  5924. #define EXTI_IMR1_IM0 EXTI_IMR1_IM0_Msk /*!< Interrupt Mask on line 0 */
  5925. #define EXTI_IMR1_IM1_Pos (1U)
  5926. #define EXTI_IMR1_IM1_Msk (0x1UL << EXTI_IMR1_IM1_Pos) /*!< 0x00000002 */
  5927. #define EXTI_IMR1_IM1 EXTI_IMR1_IM1_Msk /*!< Interrupt Mask on line 1 */
  5928. #define EXTI_IMR1_IM2_Pos (2U)
  5929. #define EXTI_IMR1_IM2_Msk (0x1UL << EXTI_IMR1_IM2_Pos) /*!< 0x00000004 */
  5930. #define EXTI_IMR1_IM2 EXTI_IMR1_IM2_Msk /*!< Interrupt Mask on line 2 */
  5931. #define EXTI_IMR1_IM3_Pos (3U)
  5932. #define EXTI_IMR1_IM3_Msk (0x1UL << EXTI_IMR1_IM3_Pos) /*!< 0x00000008 */
  5933. #define EXTI_IMR1_IM3 EXTI_IMR1_IM3_Msk /*!< Interrupt Mask on line 3 */
  5934. #define EXTI_IMR1_IM4_Pos (4U)
  5935. #define EXTI_IMR1_IM4_Msk (0x1UL << EXTI_IMR1_IM4_Pos) /*!< 0x00000010 */
  5936. #define EXTI_IMR1_IM4 EXTI_IMR1_IM4_Msk /*!< Interrupt Mask on line 4 */
  5937. #define EXTI_IMR1_IM5_Pos (5U)
  5938. #define EXTI_IMR1_IM5_Msk (0x1UL << EXTI_IMR1_IM5_Pos) /*!< 0x00000020 */
  5939. #define EXTI_IMR1_IM5 EXTI_IMR1_IM5_Msk /*!< Interrupt Mask on line 5 */
  5940. #define EXTI_IMR1_IM6_Pos (6U)
  5941. #define EXTI_IMR1_IM6_Msk (0x1UL << EXTI_IMR1_IM6_Pos) /*!< 0x00000040 */
  5942. #define EXTI_IMR1_IM6 EXTI_IMR1_IM6_Msk /*!< Interrupt Mask on line 6 */
  5943. #define EXTI_IMR1_IM7_Pos (7U)
  5944. #define EXTI_IMR1_IM7_Msk (0x1UL << EXTI_IMR1_IM7_Pos) /*!< 0x00000080 */
  5945. #define EXTI_IMR1_IM7 EXTI_IMR1_IM7_Msk /*!< Interrupt Mask on line 7 */
  5946. #define EXTI_IMR1_IM8_Pos (8U)
  5947. #define EXTI_IMR1_IM8_Msk (0x1UL << EXTI_IMR1_IM8_Pos) /*!< 0x00000100 */
  5948. #define EXTI_IMR1_IM8 EXTI_IMR1_IM8_Msk /*!< Interrupt Mask on line 8 */
  5949. #define EXTI_IMR1_IM9_Pos (9U)
  5950. #define EXTI_IMR1_IM9_Msk (0x1UL << EXTI_IMR1_IM9_Pos) /*!< 0x00000200 */
  5951. #define EXTI_IMR1_IM9 EXTI_IMR1_IM9_Msk /*!< Interrupt Mask on line 9 */
  5952. #define EXTI_IMR1_IM10_Pos (10U)
  5953. #define EXTI_IMR1_IM10_Msk (0x1UL << EXTI_IMR1_IM10_Pos) /*!< 0x00000400 */
  5954. #define EXTI_IMR1_IM10 EXTI_IMR1_IM10_Msk /*!< Interrupt Mask on line 10 */
  5955. #define EXTI_IMR1_IM11_Pos (11U)
  5956. #define EXTI_IMR1_IM11_Msk (0x1UL << EXTI_IMR1_IM11_Pos) /*!< 0x00000800 */
  5957. #define EXTI_IMR1_IM11 EXTI_IMR1_IM11_Msk /*!< Interrupt Mask on line 11 */
  5958. #define EXTI_IMR1_IM12_Pos (12U)
  5959. #define EXTI_IMR1_IM12_Msk (0x1UL << EXTI_IMR1_IM12_Pos) /*!< 0x00001000 */
  5960. #define EXTI_IMR1_IM12 EXTI_IMR1_IM12_Msk /*!< Interrupt Mask on line 12 */
  5961. #define EXTI_IMR1_IM13_Pos (13U)
  5962. #define EXTI_IMR1_IM13_Msk (0x1UL << EXTI_IMR1_IM13_Pos) /*!< 0x00002000 */
  5963. #define EXTI_IMR1_IM13 EXTI_IMR1_IM13_Msk /*!< Interrupt Mask on line 13 */
  5964. #define EXTI_IMR1_IM14_Pos (14U)
  5965. #define EXTI_IMR1_IM14_Msk (0x1UL << EXTI_IMR1_IM14_Pos) /*!< 0x00004000 */
  5966. #define EXTI_IMR1_IM14 EXTI_IMR1_IM14_Msk /*!< Interrupt Mask on line 14 */
  5967. #define EXTI_IMR1_IM15_Pos (15U)
  5968. #define EXTI_IMR1_IM15_Msk (0x1UL << EXTI_IMR1_IM15_Pos) /*!< 0x00008000 */
  5969. #define EXTI_IMR1_IM15 EXTI_IMR1_IM15_Msk /*!< Interrupt Mask on line 15 */
  5970. #define EXTI_IMR1_IM16_Pos (16U)
  5971. #define EXTI_IMR1_IM16_Msk (0x1UL << EXTI_IMR1_IM16_Pos) /*!< 0x00010000 */
  5972. #define EXTI_IMR1_IM16 EXTI_IMR1_IM16_Msk /*!< Interrupt Mask on line 16 */
  5973. #define EXTI_IMR1_IM17_Pos (17U)
  5974. #define EXTI_IMR1_IM17_Msk (0x1UL << EXTI_IMR1_IM17_Pos) /*!< 0x00020000 */
  5975. #define EXTI_IMR1_IM17 EXTI_IMR1_IM17_Msk /*!< Interrupt Mask on line 17 */
  5976. #define EXTI_IMR1_IM18_Pos (18U)
  5977. #define EXTI_IMR1_IM18_Msk (0x1UL << EXTI_IMR1_IM18_Pos) /*!< 0x00040000 */
  5978. #define EXTI_IMR1_IM18 EXTI_IMR1_IM18_Msk /*!< Interrupt Mask on line 18 */
  5979. #define EXTI_IMR1_IM19_Pos (19U)
  5980. #define EXTI_IMR1_IM19_Msk (0x1UL << EXTI_IMR1_IM19_Pos) /*!< 0x00080000 */
  5981. #define EXTI_IMR1_IM19 EXTI_IMR1_IM19_Msk /*!< Interrupt Mask on line 19 */
  5982. #define EXTI_IMR1_IM20_Pos (20U)
  5983. #define EXTI_IMR1_IM20_Msk (0x1UL << EXTI_IMR1_IM20_Pos) /*!< 0x00100000 */
  5984. #define EXTI_IMR1_IM20 EXTI_IMR1_IM20_Msk /*!< Interrupt Mask on line 20 */
  5985. #define EXTI_IMR1_IM21_Pos (21U)
  5986. #define EXTI_IMR1_IM21_Msk (0x1UL << EXTI_IMR1_IM21_Pos) /*!< 0x00200000 */
  5987. #define EXTI_IMR1_IM21 EXTI_IMR1_IM21_Msk /*!< Interrupt Mask on line 21 */
  5988. #define EXTI_IMR1_IM22_Pos (22U)
  5989. #define EXTI_IMR1_IM22_Msk (0x1UL << EXTI_IMR1_IM22_Pos) /*!< 0x00400000 */
  5990. #define EXTI_IMR1_IM22 EXTI_IMR1_IM22_Msk /*!< Interrupt Mask on line 22 */
  5991. #define EXTI_IMR1_IM23_Pos (23U)
  5992. #define EXTI_IMR1_IM23_Msk (0x1UL << EXTI_IMR1_IM23_Pos) /*!< 0x00800000 */
  5993. #define EXTI_IMR1_IM23 EXTI_IMR1_IM23_Msk /*!< Interrupt Mask on line 23 */
  5994. #define EXTI_IMR1_IM24_Pos (24U)
  5995. #define EXTI_IMR1_IM24_Msk (0x1UL << EXTI_IMR1_IM24_Pos) /*!< 0x01000000 */
  5996. #define EXTI_IMR1_IM24 EXTI_IMR1_IM24_Msk /*!< Interrupt Mask on line 24 */
  5997. #define EXTI_IMR1_IM25_Pos (25U)
  5998. #define EXTI_IMR1_IM25_Msk (0x1UL << EXTI_IMR1_IM25_Pos) /*!< 0x02000000 */
  5999. #define EXTI_IMR1_IM25 EXTI_IMR1_IM25_Msk /*!< Interrupt Mask on line 25 */
  6000. #define EXTI_IMR1_IM26_Pos (26U)
  6001. #define EXTI_IMR1_IM26_Msk (0x1UL << EXTI_IMR1_IM26_Pos) /*!< 0x04000000 */
  6002. #define EXTI_IMR1_IM26 EXTI_IMR1_IM26_Msk /*!< Interrupt Mask on line 26 */
  6003. #define EXTI_IMR1_IM27_Pos (27U)
  6004. #define EXTI_IMR1_IM27_Msk (0x1UL << EXTI_IMR1_IM27_Pos) /*!< 0x08000000 */
  6005. #define EXTI_IMR1_IM27 EXTI_IMR1_IM27_Msk /*!< Interrupt Mask on line 27 */
  6006. #define EXTI_IMR1_IM28_Pos (28U)
  6007. #define EXTI_IMR1_IM28_Msk (0x1UL << EXTI_IMR1_IM28_Pos) /*!< 0x10000000 */
  6008. #define EXTI_IMR1_IM28 EXTI_IMR1_IM28_Msk /*!< Interrupt Mask on line 28 */
  6009. #define EXTI_IMR1_IM29_Pos (29U)
  6010. #define EXTI_IMR1_IM29_Msk (0x1UL << EXTI_IMR1_IM29_Pos) /*!< 0x20000000 */
  6011. #define EXTI_IMR1_IM29 EXTI_IMR1_IM29_Msk /*!< Interrupt Mask on line 29 */
  6012. #define EXTI_IMR1_IM30_Pos (30U)
  6013. #define EXTI_IMR1_IM30_Msk (0x1UL << EXTI_IMR1_IM30_Pos) /*!< 0x40000000 */
  6014. #define EXTI_IMR1_IM30 EXTI_IMR1_IM30_Msk /*!< Interrupt Mask on line 30 */
  6015. #define EXTI_IMR1_IM31_Pos (31U)
  6016. #define EXTI_IMR1_IM31_Msk (0x1UL << EXTI_IMR1_IM31_Pos) /*!< 0x80000000 */
  6017. #define EXTI_IMR1_IM31 EXTI_IMR1_IM31_Msk /*!< Interrupt Mask on line 31 */
  6018. #define EXTI_IMR1_IM_Pos (0U)
  6019. #define EXTI_IMR1_IM_Msk (0xFFFFFFFFUL << EXTI_IMR1_IM_Pos) /*!< 0xFFFFFFFF */
  6020. #define EXTI_IMR1_IM EXTI_IMR1_IM_Msk /*!< Interrupt Mask All */
  6021. /******************* Bit definition for EXTI_IMR2 register *****************/
  6022. #define EXTI_IMR2_IM32_Pos (0U)
  6023. #define EXTI_IMR2_IM32_Msk (0x1UL << EXTI_IMR2_IM32_Pos) /*!< 0x00000001 */
  6024. #define EXTI_IMR2_IM32 EXTI_IMR2_IM32_Msk /*!< Interrupt Mask on line 32 */
  6025. #define EXTI_IMR2_IM33_Pos (1U)
  6026. #define EXTI_IMR2_IM33_Msk (0x1UL << EXTI_IMR2_IM33_Pos) /*!< 0x00000002 */
  6027. #define EXTI_IMR2_IM33 EXTI_IMR2_IM33_Msk /*!< Interrupt Mask on line 33 */
  6028. #define EXTI_IMR2_IM34_Pos (2U)
  6029. #define EXTI_IMR2_IM34_Msk (0x1UL << EXTI_IMR2_IM34_Pos) /*!< 0x00000004 */
  6030. #define EXTI_IMR2_IM34 EXTI_IMR2_IM34_Msk /*!< Interrupt Mask on line 34 */
  6031. #define EXTI_IMR2_IM35_Pos (3U)
  6032. #define EXTI_IMR2_IM35_Msk (0x1UL << EXTI_IMR2_IM35_Pos) /*!< 0x00000008 */
  6033. #define EXTI_IMR2_IM35 EXTI_IMR2_IM35_Msk /*!< Interrupt Mask on line 35 */
  6034. #define EXTI_IMR2_IM36_Pos (4U)
  6035. #define EXTI_IMR2_IM36_Msk (0x1UL << EXTI_IMR2_IM36_Pos) /*!< 0x00000010 */
  6036. #define EXTI_IMR2_IM36 EXTI_IMR2_IM36_Msk /*!< Interrupt Mask on line 36 */
  6037. #define EXTI_IMR2_IM37_Pos (5U)
  6038. #define EXTI_IMR2_IM37_Msk (0x1UL << EXTI_IMR2_IM37_Pos) /*!< 0x00000020 */
  6039. #define EXTI_IMR2_IM37 EXTI_IMR2_IM37_Msk /*!< Interrupt Mask on line 37 */
  6040. #define EXTI_IMR2_IM38_Pos (6U)
  6041. #define EXTI_IMR2_IM38_Msk (0x1UL << EXTI_IMR2_IM38_Pos) /*!< 0x00000040 */
  6042. #define EXTI_IMR2_IM38 EXTI_IMR2_IM38_Msk /*!< Interrupt Mask on line 38 */
  6043. #define EXTI_IMR2_IM40_Pos (8U)
  6044. #define EXTI_IMR2_IM40_Msk (0x1UL << EXTI_IMR2_IM40_Pos) /*!< 0x00000100 */
  6045. #define EXTI_IMR2_IM40 EXTI_IMR2_IM40_Msk /*!< Interrupt Mask on line 40 */
  6046. #define EXTI_IMR2_IM41_Pos (9U)
  6047. #define EXTI_IMR2_IM41_Msk (0x1UL << EXTI_IMR2_IM41_Pos) /*!< 0x00000200 */
  6048. #define EXTI_IMR2_IM41 EXTI_IMR2_IM41_Msk /*!< Interrupt Mask on line 41 */
  6049. #define EXTI_IMR2_IM42_Pos (10U)
  6050. #define EXTI_IMR2_IM42_Msk (0x1UL << EXTI_IMR2_IM42_Pos) /*!< 0x00000400 */
  6051. #define EXTI_IMR2_IM42 EXTI_IMR2_IM42_Msk /*!< Interrupt Mask on line 42 */
  6052. #define EXTI_IMR2_IM_Pos (0U)
  6053. #define EXTI_IMR2_IM_Msk (0x77FUL << EXTI_IMR2_IM_Pos) /*!< 0x0000077F */
  6054. #define EXTI_IMR2_IM EXTI_IMR2_IM_Msk /*!< Interrupt Mask All */
  6055. /******************* Bit definition for EXTI_EMR1 register *****************/
  6056. #define EXTI_EMR1_EM0_Pos (0U)
  6057. #define EXTI_EMR1_EM0_Msk (0x1UL << EXTI_EMR1_EM0_Pos) /*!< 0x00000001 */
  6058. #define EXTI_EMR1_EM0 EXTI_EMR1_EM0_Msk /*!< Event Mask on line 0 */
  6059. #define EXTI_EMR1_EM1_Pos (1U)
  6060. #define EXTI_EMR1_EM1_Msk (0x1UL << EXTI_EMR1_EM1_Pos) /*!< 0x00000002 */
  6061. #define EXTI_EMR1_EM1 EXTI_EMR1_EM1_Msk /*!< Event Mask on line 1 */
  6062. #define EXTI_EMR1_EM2_Pos (2U)
  6063. #define EXTI_EMR1_EM2_Msk (0x1UL << EXTI_EMR1_EM2_Pos) /*!< 0x00000004 */
  6064. #define EXTI_EMR1_EM2 EXTI_EMR1_EM2_Msk /*!< Event Mask on line 2 */
  6065. #define EXTI_EMR1_EM3_Pos (3U)
  6066. #define EXTI_EMR1_EM3_Msk (0x1UL << EXTI_EMR1_EM3_Pos) /*!< 0x00000008 */
  6067. #define EXTI_EMR1_EM3 EXTI_EMR1_EM3_Msk /*!< Event Mask on line 3 */
  6068. #define EXTI_EMR1_EM4_Pos (4U)
  6069. #define EXTI_EMR1_EM4_Msk (0x1UL << EXTI_EMR1_EM4_Pos) /*!< 0x00000010 */
  6070. #define EXTI_EMR1_EM4 EXTI_EMR1_EM4_Msk /*!< Event Mask on line 4 */
  6071. #define EXTI_EMR1_EM5_Pos (5U)
  6072. #define EXTI_EMR1_EM5_Msk (0x1UL << EXTI_EMR1_EM5_Pos) /*!< 0x00000020 */
  6073. #define EXTI_EMR1_EM5 EXTI_EMR1_EM5_Msk /*!< Event Mask on line 5 */
  6074. #define EXTI_EMR1_EM6_Pos (6U)
  6075. #define EXTI_EMR1_EM6_Msk (0x1UL << EXTI_EMR1_EM6_Pos) /*!< 0x00000040 */
  6076. #define EXTI_EMR1_EM6 EXTI_EMR1_EM6_Msk /*!< Event Mask on line 6 */
  6077. #define EXTI_EMR1_EM7_Pos (7U)
  6078. #define EXTI_EMR1_EM7_Msk (0x1UL << EXTI_EMR1_EM7_Pos) /*!< 0x00000080 */
  6079. #define EXTI_EMR1_EM7 EXTI_EMR1_EM7_Msk /*!< Event Mask on line 7 */
  6080. #define EXTI_EMR1_EM8_Pos (8U)
  6081. #define EXTI_EMR1_EM8_Msk (0x1UL << EXTI_EMR1_EM8_Pos) /*!< 0x00000100 */
  6082. #define EXTI_EMR1_EM8 EXTI_EMR1_EM8_Msk /*!< Event Mask on line 8 */
  6083. #define EXTI_EMR1_EM9_Pos (9U)
  6084. #define EXTI_EMR1_EM9_Msk (0x1UL << EXTI_EMR1_EM9_Pos) /*!< 0x00000200 */
  6085. #define EXTI_EMR1_EM9 EXTI_EMR1_EM9_Msk /*!< Event Mask on line 9 */
  6086. #define EXTI_EMR1_EM10_Pos (10U)
  6087. #define EXTI_EMR1_EM10_Msk (0x1UL << EXTI_EMR1_EM10_Pos) /*!< 0x00000400 */
  6088. #define EXTI_EMR1_EM10 EXTI_EMR1_EM10_Msk /*!< Event Mask on line 10 */
  6089. #define EXTI_EMR1_EM11_Pos (11U)
  6090. #define EXTI_EMR1_EM11_Msk (0x1UL << EXTI_EMR1_EM11_Pos) /*!< 0x00000800 */
  6091. #define EXTI_EMR1_EM11 EXTI_EMR1_EM11_Msk /*!< Event Mask on line 11 */
  6092. #define EXTI_EMR1_EM12_Pos (12U)
  6093. #define EXTI_EMR1_EM12_Msk (0x1UL << EXTI_EMR1_EM12_Pos) /*!< 0x00001000 */
  6094. #define EXTI_EMR1_EM12 EXTI_EMR1_EM12_Msk /*!< Event Mask on line 12 */
  6095. #define EXTI_EMR1_EM13_Pos (13U)
  6096. #define EXTI_EMR1_EM13_Msk (0x1UL << EXTI_EMR1_EM13_Pos) /*!< 0x00002000 */
  6097. #define EXTI_EMR1_EM13 EXTI_EMR1_EM13_Msk /*!< Event Mask on line 13 */
  6098. #define EXTI_EMR1_EM14_Pos (14U)
  6099. #define EXTI_EMR1_EM14_Msk (0x1UL << EXTI_EMR1_EM14_Pos) /*!< 0x00004000 */
  6100. #define EXTI_EMR1_EM14 EXTI_EMR1_EM14_Msk /*!< Event Mask on line 14 */
  6101. #define EXTI_EMR1_EM15_Pos (15U)
  6102. #define EXTI_EMR1_EM15_Msk (0x1UL << EXTI_EMR1_EM15_Pos) /*!< 0x00008000 */
  6103. #define EXTI_EMR1_EM15 EXTI_EMR1_EM15_Msk /*!< Event Mask on line 15 */
  6104. #define EXTI_EMR1_EM16_Pos (16U)
  6105. #define EXTI_EMR1_EM16_Msk (0x1UL << EXTI_EMR1_EM16_Pos) /*!< 0x00010000 */
  6106. #define EXTI_EMR1_EM16 EXTI_EMR1_EM16_Msk /*!< Event Mask on line 16 */
  6107. #define EXTI_EMR1_EM17_Pos (17U)
  6108. #define EXTI_EMR1_EM17_Msk (0x1UL << EXTI_EMR1_EM17_Pos) /*!< 0x00020000 */
  6109. #define EXTI_EMR1_EM17 EXTI_EMR1_EM17_Msk /*!< Event Mask on line 17 */
  6110. #define EXTI_EMR1_EM18_Pos (18U)
  6111. #define EXTI_EMR1_EM18_Msk (0x1UL << EXTI_EMR1_EM18_Pos) /*!< 0x00040000 */
  6112. #define EXTI_EMR1_EM18 EXTI_EMR1_EM18_Msk /*!< Event Mask on line 18 */
  6113. #define EXTI_EMR1_EM19_Pos (19U)
  6114. #define EXTI_EMR1_EM19_Msk (0x1UL << EXTI_EMR1_EM19_Pos) /*!< 0x00080000 */
  6115. #define EXTI_EMR1_EM19 EXTI_EMR1_EM19_Msk /*!< Event Mask on line 19 */
  6116. #define EXTI_EMR1_EM20_Pos (20U)
  6117. #define EXTI_EMR1_EM20_Msk (0x1UL << EXTI_EMR1_EM20_Pos) /*!< 0x00100000 */
  6118. #define EXTI_EMR1_EM20 EXTI_EMR1_EM20_Msk /*!< Event Mask on line 20 */
  6119. #define EXTI_EMR1_EM21_Pos (21U)
  6120. #define EXTI_EMR1_EM21_Msk (0x1UL << EXTI_EMR1_EM21_Pos) /*!< 0x00200000 */
  6121. #define EXTI_EMR1_EM21 EXTI_EMR1_EM21_Msk /*!< Event Mask on line 21 */
  6122. #define EXTI_EMR1_EM22_Pos (22U)
  6123. #define EXTI_EMR1_EM22_Msk (0x1UL << EXTI_EMR1_EM22_Pos) /*!< 0x00400000 */
  6124. #define EXTI_EMR1_EM22 EXTI_EMR1_EM22_Msk /*!< Event Mask on line 22 */
  6125. #define EXTI_EMR1_EM23_Pos (23U)
  6126. #define EXTI_EMR1_EM23_Msk (0x1UL << EXTI_EMR1_EM23_Pos) /*!< 0x00800000 */
  6127. #define EXTI_EMR1_EM23 EXTI_EMR1_EM23_Msk /*!< Event Mask on line 23 */
  6128. #define EXTI_EMR1_EM24_Pos (24U)
  6129. #define EXTI_EMR1_EM24_Msk (0x1UL << EXTI_EMR1_EM24_Pos) /*!< 0x01000000 */
  6130. #define EXTI_EMR1_EM24 EXTI_EMR1_EM24_Msk /*!< Event Mask on line 24 */
  6131. #define EXTI_EMR1_EM25_Pos (25U)
  6132. #define EXTI_EMR1_EM25_Msk (0x1UL << EXTI_EMR1_EM25_Pos) /*!< 0x02000000 */
  6133. #define EXTI_EMR1_EM25 EXTI_EMR1_EM25_Msk /*!< Event Mask on line 25 */
  6134. #define EXTI_EMR1_EM26_Pos (26U)
  6135. #define EXTI_EMR1_EM26_Msk (0x1UL << EXTI_EMR1_EM26_Pos) /*!< 0x04000000 */
  6136. #define EXTI_EMR1_EM26 EXTI_EMR1_EM26_Msk /*!< Event Mask on line 26 */
  6137. #define EXTI_EMR1_EM27_Pos (27U)
  6138. #define EXTI_EMR1_EM27_Msk (0x1UL << EXTI_EMR1_EM27_Pos) /*!< 0x08000000 */
  6139. #define EXTI_EMR1_EM27 EXTI_EMR1_EM27_Msk /*!< Event Mask on line 27 */
  6140. #define EXTI_EMR1_EM28_Pos (28U)
  6141. #define EXTI_EMR1_EM28_Msk (0x1UL << EXTI_EMR1_EM28_Pos) /*!< 0x10000000 */
  6142. #define EXTI_EMR1_EM28 EXTI_EMR1_EM28_Msk /*!< Event Mask on line 28 */
  6143. #define EXTI_EMR1_EM29_Pos (29U)
  6144. #define EXTI_EMR1_EM29_Msk (0x1UL << EXTI_EMR1_EM29_Pos) /*!< 0x20000000 */
  6145. #define EXTI_EMR1_EM29 EXTI_EMR1_EM29_Msk /*!< Event Mask on line 29 */
  6146. #define EXTI_EMR1_EM30_Pos (30U)
  6147. #define EXTI_EMR1_EM30_Msk (0x1UL << EXTI_EMR1_EM30_Pos) /*!< 0x40000000 */
  6148. #define EXTI_EMR1_EM30 EXTI_EMR1_EM30_Msk /*!< Event Mask on line 30 */
  6149. #define EXTI_EMR1_EM31_Pos (31U)
  6150. #define EXTI_EMR1_EM31_Msk (0x1UL << EXTI_EMR1_EM31_Pos) /*!< 0x80000000 */
  6151. #define EXTI_EMR1_EM31 EXTI_EMR1_EM31_Msk /*!< Event Mask on line 31 */
  6152. #define EXTI_EMR1_EM_Pos (0U)
  6153. #define EXTI_EMR1_EM_Msk (0xFFFFFFFFUL << EXTI_EMR1_EM_Pos) /*!< 0xFFFFFFFF */
  6154. #define EXTI_EMR1_EM EXTI_EMR1_EM_Msk /*!< Event Mask All */
  6155. /******************* Bit definition for EXTI_EMR2 register *****************/
  6156. #define EXTI_EMR2_EM32_Pos (0U)
  6157. #define EXTI_EMR2_EM32_Msk (0x1UL << EXTI_EMR2_EM32_Pos) /*!< 0x00000001 */
  6158. #define EXTI_EMR2_EM32 EXTI_EMR2_EM32_Msk /*!< Event Mask on line 32 */
  6159. #define EXTI_EMR2_EM33_Pos (1U)
  6160. #define EXTI_EMR2_EM33_Msk (0x1UL << EXTI_EMR2_EM33_Pos) /*!< 0x00000002 */
  6161. #define EXTI_EMR2_EM33 EXTI_EMR2_EM33_Msk /*!< Event Mask on line 33 */
  6162. #define EXTI_EMR2_EM34_Pos (2U)
  6163. #define EXTI_EMR2_EM34_Msk (0x1UL << EXTI_EMR2_EM34_Pos) /*!< 0x00000004 */
  6164. #define EXTI_EMR2_EM34 EXTI_EMR2_EM34_Msk /*!< Event Mask on line 34 */
  6165. #define EXTI_EMR2_EM35_Pos (3U)
  6166. #define EXTI_EMR2_EM35_Msk (0x1UL << EXTI_EMR2_EM35_Pos) /*!< 0x00000008 */
  6167. #define EXTI_EMR2_EM35 EXTI_EMR2_EM35_Msk /*!< Event Mask on line 35 */
  6168. #define EXTI_EMR2_EM36_Pos (4U)
  6169. #define EXTI_EMR2_EM36_Msk (0x1UL << EXTI_EMR2_EM36_Pos) /*!< 0x00000010 */
  6170. #define EXTI_EMR2_EM36 EXTI_EMR2_EM36_Msk /*!< Event Mask on line 36 */
  6171. #define EXTI_EMR2_EM37_Pos (5U)
  6172. #define EXTI_EMR2_EM37_Msk (0x1UL << EXTI_EMR2_EM37_Pos) /*!< 0x00000020 */
  6173. #define EXTI_EMR2_EM37 EXTI_EMR2_EM37_Msk /*!< Event Mask on line 37 */
  6174. #define EXTI_EMR2_EM38_Pos (6U)
  6175. #define EXTI_EMR2_EM38_Msk (0x1UL << EXTI_EMR2_EM38_Pos) /*!< 0x00000040 */
  6176. #define EXTI_EMR2_EM38 EXTI_EMR2_EM38_Msk /*!< Event Mask on line 38 */
  6177. #define EXTI_EMR2_EM40_Pos (8U)
  6178. #define EXTI_EMR2_EM40_Msk (0x1UL << EXTI_EMR2_EM40_Pos) /*!< 0x00000100 */
  6179. #define EXTI_EMR2_EM40 EXTI_EMR2_EM40_Msk /*!< Event Mask on line 40 */
  6180. #define EXTI_EMR2_EM41_Pos (9U)
  6181. #define EXTI_EMR2_EM41_Msk (0x1UL << EXTI_EMR2_EM41_Pos) /*!< 0x00000200 */
  6182. #define EXTI_EMR2_EM41 EXTI_EMR2_EM41_Msk /*!< Event Mask on line 41 */
  6183. #define EXTI_EMR2_EM42_Pos (10U)
  6184. #define EXTI_EMR2_EM42_Msk (0x1UL << EXTI_EMR2_EM42_Pos) /*!< 0x00000400 */
  6185. #define EXTI_EMR2_EM42 EXTI_EMR2_EM42_Msk /*!< Event Mask on line 42 */
  6186. #define EXTI_EMR2_EM_Pos (0U)
  6187. #define EXTI_EMR2_EM_Msk (0x77FUL << EXTI_EMR2_EM_Pos) /*!< 0x0000077F */
  6188. #define EXTI_EMR2_EM EXTI_EMR2_EM_Msk /*!< Event Mask All */
  6189. /******************************************************************************/
  6190. /* */
  6191. /* Flexible Datarate Controller Area Network */
  6192. /* */
  6193. /******************************************************************************/
  6194. /*!<FDCAN control and status registers */
  6195. /***************** Bit definition for FDCAN_CREL register *******************/
  6196. #define FDCAN_CREL_DAY_Pos (0U)
  6197. #define FDCAN_CREL_DAY_Msk (0xFFUL << FDCAN_CREL_DAY_Pos) /*!< 0x000000FF */
  6198. #define FDCAN_CREL_DAY FDCAN_CREL_DAY_Msk /*!<Timestamp Day */
  6199. #define FDCAN_CREL_MON_Pos (8U)
  6200. #define FDCAN_CREL_MON_Msk (0xFFUL << FDCAN_CREL_MON_Pos) /*!< 0x0000FF00 */
  6201. #define FDCAN_CREL_MON FDCAN_CREL_MON_Msk /*!<Timestamp Month */
  6202. #define FDCAN_CREL_YEAR_Pos (16U)
  6203. #define FDCAN_CREL_YEAR_Msk (0xFUL << FDCAN_CREL_YEAR_Pos) /*!< 0x000F0000 */
  6204. #define FDCAN_CREL_YEAR FDCAN_CREL_YEAR_Msk /*!<Timestamp Year */
  6205. #define FDCAN_CREL_SUBSTEP_Pos (20U)
  6206. #define FDCAN_CREL_SUBSTEP_Msk (0xFUL << FDCAN_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  6207. #define FDCAN_CREL_SUBSTEP FDCAN_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  6208. #define FDCAN_CREL_STEP_Pos (24U)
  6209. #define FDCAN_CREL_STEP_Msk (0xFUL << FDCAN_CREL_STEP_Pos) /*!< 0x0F000000 */
  6210. #define FDCAN_CREL_STEP FDCAN_CREL_STEP_Msk /*!<Step of Core release */
  6211. #define FDCAN_CREL_REL_Pos (28U)
  6212. #define FDCAN_CREL_REL_Msk (0xFUL << FDCAN_CREL_REL_Pos) /*!< 0xF0000000 */
  6213. #define FDCAN_CREL_REL FDCAN_CREL_REL_Msk /*!<Core release */
  6214. /***************** Bit definition for FDCAN_ENDN register *******************/
  6215. #define FDCAN_ENDN_ETV_Pos (0U)
  6216. #define FDCAN_ENDN_ETV_Msk (0xFFFFFFFFUL << FDCAN_ENDN_ETV_Pos) /*!< 0xFFFFFFFF */
  6217. #define FDCAN_ENDN_ETV FDCAN_ENDN_ETV_Msk /*!<Endiannes Test Value */
  6218. /***************** Bit definition for FDCAN_DBTP register *******************/
  6219. #define FDCAN_DBTP_DSJW_Pos (0U)
  6220. #define FDCAN_DBTP_DSJW_Msk (0xFUL << FDCAN_DBTP_DSJW_Pos) /*!< 0x0000000F */
  6221. #define FDCAN_DBTP_DSJW FDCAN_DBTP_DSJW_Msk /*!<Synchronization Jump Width */
  6222. #define FDCAN_DBTP_DTSEG2_Pos (4U)
  6223. #define FDCAN_DBTP_DTSEG2_Msk (0xFUL << FDCAN_DBTP_DTSEG2_Pos) /*!< 0x000000F0 */
  6224. #define FDCAN_DBTP_DTSEG2 FDCAN_DBTP_DTSEG2_Msk /*!<Data time segment after sample point */
  6225. #define FDCAN_DBTP_DTSEG1_Pos (8U)
  6226. #define FDCAN_DBTP_DTSEG1_Msk (0x1FUL << FDCAN_DBTP_DTSEG1_Pos) /*!< 0x00001F00 */
  6227. #define FDCAN_DBTP_DTSEG1 FDCAN_DBTP_DTSEG1_Msk /*!<Data time segment before sample point */
  6228. #define FDCAN_DBTP_DBRP_Pos (16U)
  6229. #define FDCAN_DBTP_DBRP_Msk (0x1FUL << FDCAN_DBTP_DBRP_Pos) /*!< 0x001F0000 */
  6230. #define FDCAN_DBTP_DBRP FDCAN_DBTP_DBRP_Msk /*!<Data BIt Rate Prescaler */
  6231. #define FDCAN_DBTP_TDC_Pos (23U)
  6232. #define FDCAN_DBTP_TDC_Msk (0x1UL << FDCAN_DBTP_TDC_Pos) /*!< 0x00800000 */
  6233. #define FDCAN_DBTP_TDC FDCAN_DBTP_TDC_Msk /*!<Transceiver Delay Compensation */
  6234. /***************** Bit definition for FDCAN_TEST register *******************/
  6235. #define FDCAN_TEST_LBCK_Pos (4U)
  6236. #define FDCAN_TEST_LBCK_Msk (0x1UL << FDCAN_TEST_LBCK_Pos) /*!< 0x00000010 */
  6237. #define FDCAN_TEST_LBCK FDCAN_TEST_LBCK_Msk /*!<Loop Back mode */
  6238. #define FDCAN_TEST_TX_Pos (5U)
  6239. #define FDCAN_TEST_TX_Msk (0x3UL << FDCAN_TEST_TX_Pos) /*!< 0x00000060 */
  6240. #define FDCAN_TEST_TX FDCAN_TEST_TX_Msk /*!<Control of Transmit Pin */
  6241. #define FDCAN_TEST_RX_Pos (7U)
  6242. #define FDCAN_TEST_RX_Msk (0x1UL << FDCAN_TEST_RX_Pos) /*!< 0x00000080 */
  6243. #define FDCAN_TEST_RX FDCAN_TEST_RX_Msk /*!<Receive Pin */
  6244. /***************** Bit definition for FDCAN_RWD register ********************/
  6245. #define FDCAN_RWD_WDC_Pos (0U)
  6246. #define FDCAN_RWD_WDC_Msk (0xFFUL << FDCAN_RWD_WDC_Pos) /*!< 0x000000FF */
  6247. #define FDCAN_RWD_WDC FDCAN_RWD_WDC_Msk /*!<Watchdog configuration */
  6248. #define FDCAN_RWD_WDV_Pos (8U)
  6249. #define FDCAN_RWD_WDV_Msk (0xFFUL << FDCAN_RWD_WDV_Pos) /*!< 0x0000FF00 */
  6250. #define FDCAN_RWD_WDV FDCAN_RWD_WDV_Msk /*!<Watchdog value */
  6251. /***************** Bit definition for FDCAN_CCCR register ********************/
  6252. #define FDCAN_CCCR_INIT_Pos (0U)
  6253. #define FDCAN_CCCR_INIT_Msk (0x1UL << FDCAN_CCCR_INIT_Pos) /*!< 0x00000001 */
  6254. #define FDCAN_CCCR_INIT FDCAN_CCCR_INIT_Msk /*!<Initialization */
  6255. #define FDCAN_CCCR_CCE_Pos (1U)
  6256. #define FDCAN_CCCR_CCE_Msk (0x1UL << FDCAN_CCCR_CCE_Pos) /*!< 0x00000002 */
  6257. #define FDCAN_CCCR_CCE FDCAN_CCCR_CCE_Msk /*!<Configuration Change Enable */
  6258. #define FDCAN_CCCR_ASM_Pos (2U)
  6259. #define FDCAN_CCCR_ASM_Msk (0x1UL << FDCAN_CCCR_ASM_Pos) /*!< 0x00000004 */
  6260. #define FDCAN_CCCR_ASM FDCAN_CCCR_ASM_Msk /*!<ASM Restricted Operation Mode */
  6261. #define FDCAN_CCCR_CSA_Pos (3U)
  6262. #define FDCAN_CCCR_CSA_Msk (0x1UL << FDCAN_CCCR_CSA_Pos) /*!< 0x00000008 */
  6263. #define FDCAN_CCCR_CSA FDCAN_CCCR_CSA_Msk /*!<Clock Stop Acknowledge */
  6264. #define FDCAN_CCCR_CSR_Pos (4U)
  6265. #define FDCAN_CCCR_CSR_Msk (0x1UL << FDCAN_CCCR_CSR_Pos) /*!< 0x00000010 */
  6266. #define FDCAN_CCCR_CSR FDCAN_CCCR_CSR_Msk /*!<Clock Stop Request */
  6267. #define FDCAN_CCCR_MON_Pos (5U)
  6268. #define FDCAN_CCCR_MON_Msk (0x1UL << FDCAN_CCCR_MON_Pos) /*!< 0x00000020 */
  6269. #define FDCAN_CCCR_MON FDCAN_CCCR_MON_Msk /*!<Bus Monitoring Mode */
  6270. #define FDCAN_CCCR_DAR_Pos (6U)
  6271. #define FDCAN_CCCR_DAR_Msk (0x1UL << FDCAN_CCCR_DAR_Pos) /*!< 0x00000040 */
  6272. #define FDCAN_CCCR_DAR FDCAN_CCCR_DAR_Msk /*!<Disable Automatic Retransmission */
  6273. #define FDCAN_CCCR_TEST_Pos (7U)
  6274. #define FDCAN_CCCR_TEST_Msk (0x1UL << FDCAN_CCCR_TEST_Pos) /*!< 0x00000080 */
  6275. #define FDCAN_CCCR_TEST FDCAN_CCCR_TEST_Msk /*!<Test Mode Enable */
  6276. #define FDCAN_CCCR_FDOE_Pos (8U)
  6277. #define FDCAN_CCCR_FDOE_Msk (0x1UL << FDCAN_CCCR_FDOE_Pos) /*!< 0x00000100 */
  6278. #define FDCAN_CCCR_FDOE FDCAN_CCCR_FDOE_Msk /*!<FD Operation Enable */
  6279. #define FDCAN_CCCR_BRSE_Pos (9U)
  6280. #define FDCAN_CCCR_BRSE_Msk (0x1UL << FDCAN_CCCR_BRSE_Pos) /*!< 0x00000200 */
  6281. #define FDCAN_CCCR_BRSE FDCAN_CCCR_BRSE_Msk /*!<FDCAN Bit Rate Switching */
  6282. #define FDCAN_CCCR_PXHD_Pos (12U)
  6283. #define FDCAN_CCCR_PXHD_Msk (0x1UL << FDCAN_CCCR_PXHD_Pos) /*!< 0x00001000 */
  6284. #define FDCAN_CCCR_PXHD FDCAN_CCCR_PXHD_Msk /*!<Protocol Exception Handling Disable */
  6285. #define FDCAN_CCCR_EFBI_Pos (13U)
  6286. #define FDCAN_CCCR_EFBI_Msk (0x1UL << FDCAN_CCCR_EFBI_Pos) /*!< 0x00002000 */
  6287. #define FDCAN_CCCR_EFBI FDCAN_CCCR_EFBI_Msk /*!<Edge Filtering during Bus Integration */
  6288. #define FDCAN_CCCR_TXP_Pos (14U)
  6289. #define FDCAN_CCCR_TXP_Msk (0x1UL << FDCAN_CCCR_TXP_Pos) /*!< 0x00004000 */
  6290. #define FDCAN_CCCR_TXP FDCAN_CCCR_TXP_Msk /*!<Two CAN bit times Pause */
  6291. #define FDCAN_CCCR_NISO_Pos (15U)
  6292. #define FDCAN_CCCR_NISO_Msk (0x1UL << FDCAN_CCCR_NISO_Pos) /*!< 0x00008000 */
  6293. #define FDCAN_CCCR_NISO FDCAN_CCCR_NISO_Msk /*!<Non ISO Operation */
  6294. /***************** Bit definition for FDCAN_NBTP register ********************/
  6295. #define FDCAN_NBTP_NTSEG2_Pos (0U)
  6296. #define FDCAN_NBTP_NTSEG2_Msk (0x7FUL << FDCAN_NBTP_NTSEG2_Pos) /*!< 0x0000007F */
  6297. #define FDCAN_NBTP_NTSEG2 FDCAN_NBTP_NTSEG2_Msk /*!<Nominal Time segment after sample point */
  6298. #define FDCAN_NBTP_NTSEG1_Pos (8U)
  6299. #define FDCAN_NBTP_NTSEG1_Msk (0xFFUL << FDCAN_NBTP_NTSEG1_Pos) /*!< 0x0000FF00 */
  6300. #define FDCAN_NBTP_NTSEG1 FDCAN_NBTP_NTSEG1_Msk /*!<Nominal Time segment before sample point */
  6301. #define FDCAN_NBTP_NBRP_Pos (16U)
  6302. #define FDCAN_NBTP_NBRP_Msk (0x1FFUL << FDCAN_NBTP_NBRP_Pos) /*!< 0x01FF0000 */
  6303. #define FDCAN_NBTP_NBRP FDCAN_NBTP_NBRP_Msk /*!<Bit Rate Prescaler */
  6304. #define FDCAN_NBTP_NSJW_Pos (25U)
  6305. #define FDCAN_NBTP_NSJW_Msk (0x7FUL << FDCAN_NBTP_NSJW_Pos) /*!< 0xFE000000 */
  6306. #define FDCAN_NBTP_NSJW FDCAN_NBTP_NSJW_Msk /*!<Nominal (Re)Synchronization Jump Width */
  6307. /***************** Bit definition for FDCAN_TSCC register ********************/
  6308. #define FDCAN_TSCC_TSS_Pos (0U)
  6309. #define FDCAN_TSCC_TSS_Msk (0x3UL << FDCAN_TSCC_TSS_Pos) /*!< 0x00000003 */
  6310. #define FDCAN_TSCC_TSS FDCAN_TSCC_TSS_Msk /*!<Timestamp Select */
  6311. #define FDCAN_TSCC_TCP_Pos (16U)
  6312. #define FDCAN_TSCC_TCP_Msk (0xFUL << FDCAN_TSCC_TCP_Pos) /*!< 0x000F0000 */
  6313. #define FDCAN_TSCC_TCP FDCAN_TSCC_TCP_Msk /*!<Timestamp Counter Prescaler */
  6314. /***************** Bit definition for FDCAN_TSCV register ********************/
  6315. #define FDCAN_TSCV_TSC_Pos (0U)
  6316. #define FDCAN_TSCV_TSC_Msk (0xFFFFUL << FDCAN_TSCV_TSC_Pos) /*!< 0x0000FFFF */
  6317. #define FDCAN_TSCV_TSC FDCAN_TSCV_TSC_Msk /*!<Timestamp Counter */
  6318. /***************** Bit definition for FDCAN_TOCC register ********************/
  6319. #define FDCAN_TOCC_ETOC_Pos (0U)
  6320. #define FDCAN_TOCC_ETOC_Msk (0x1UL << FDCAN_TOCC_ETOC_Pos) /*!< 0x00000001 */
  6321. #define FDCAN_TOCC_ETOC FDCAN_TOCC_ETOC_Msk /*!<Enable Timeout Counter */
  6322. #define FDCAN_TOCC_TOS_Pos (1U)
  6323. #define FDCAN_TOCC_TOS_Msk (0x3UL << FDCAN_TOCC_TOS_Pos) /*!< 0x00000006 */
  6324. #define FDCAN_TOCC_TOS FDCAN_TOCC_TOS_Msk /*!<Timeout Select */
  6325. #define FDCAN_TOCC_TOP_Pos (16U)
  6326. #define FDCAN_TOCC_TOP_Msk (0xFFFFUL << FDCAN_TOCC_TOP_Pos) /*!< 0xFFFF0000 */
  6327. #define FDCAN_TOCC_TOP FDCAN_TOCC_TOP_Msk /*!<Timeout Period */
  6328. /***************** Bit definition for FDCAN_TOCV register ********************/
  6329. #define FDCAN_TOCV_TOC_Pos (0U)
  6330. #define FDCAN_TOCV_TOC_Msk (0xFFFFUL << FDCAN_TOCV_TOC_Pos) /*!< 0x0000FFFF */
  6331. #define FDCAN_TOCV_TOC FDCAN_TOCV_TOC_Msk /*!<Timeout Counter */
  6332. /***************** Bit definition for FDCAN_ECR register *********************/
  6333. #define FDCAN_ECR_TEC_Pos (0U)
  6334. #define FDCAN_ECR_TEC_Msk (0xFFUL << FDCAN_ECR_TEC_Pos) /*!< 0x000000FF */
  6335. #define FDCAN_ECR_TEC FDCAN_ECR_TEC_Msk /*!<Transmit Error Counter */
  6336. #define FDCAN_ECR_REC_Pos (8U)
  6337. #define FDCAN_ECR_REC_Msk (0x7FUL << FDCAN_ECR_REC_Pos) /*!< 0x00007F00 */
  6338. #define FDCAN_ECR_REC FDCAN_ECR_REC_Msk /*!<Receive Error Counter */
  6339. #define FDCAN_ECR_RP_Pos (15U)
  6340. #define FDCAN_ECR_RP_Msk (0x1UL << FDCAN_ECR_RP_Pos) /*!< 0x00008000 */
  6341. #define FDCAN_ECR_RP FDCAN_ECR_RP_Msk /*!<Receive Error Passive */
  6342. #define FDCAN_ECR_CEL_Pos (16U)
  6343. #define FDCAN_ECR_CEL_Msk (0xFFUL << FDCAN_ECR_CEL_Pos) /*!< 0x00FF0000 */
  6344. #define FDCAN_ECR_CEL FDCAN_ECR_CEL_Msk /*!<CAN Error Logging */
  6345. /***************** Bit definition for FDCAN_PSR register *********************/
  6346. #define FDCAN_PSR_LEC_Pos (0U)
  6347. #define FDCAN_PSR_LEC_Msk (0x7UL << FDCAN_PSR_LEC_Pos) /*!< 0x00000007 */
  6348. #define FDCAN_PSR_LEC FDCAN_PSR_LEC_Msk /*!<Last Error Code */
  6349. #define FDCAN_PSR_ACT_Pos (3U)
  6350. #define FDCAN_PSR_ACT_Msk (0x3UL << FDCAN_PSR_ACT_Pos) /*!< 0x00000018 */
  6351. #define FDCAN_PSR_ACT FDCAN_PSR_ACT_Msk /*!<Activity */
  6352. #define FDCAN_PSR_EP_Pos (5U)
  6353. #define FDCAN_PSR_EP_Msk (0x1UL << FDCAN_PSR_EP_Pos) /*!< 0x00000020 */
  6354. #define FDCAN_PSR_EP FDCAN_PSR_EP_Msk /*!<Error Passive */
  6355. #define FDCAN_PSR_EW_Pos (6U)
  6356. #define FDCAN_PSR_EW_Msk (0x1UL << FDCAN_PSR_EW_Pos) /*!< 0x00000040 */
  6357. #define FDCAN_PSR_EW FDCAN_PSR_EW_Msk /*!<Warning Status */
  6358. #define FDCAN_PSR_BO_Pos (7U)
  6359. #define FDCAN_PSR_BO_Msk (0x1UL << FDCAN_PSR_BO_Pos) /*!< 0x00000080 */
  6360. #define FDCAN_PSR_BO FDCAN_PSR_BO_Msk /*!<Bus_Off Status */
  6361. #define FDCAN_PSR_DLEC_Pos (8U)
  6362. #define FDCAN_PSR_DLEC_Msk (0x7UL << FDCAN_PSR_DLEC_Pos) /*!< 0x00000700 */
  6363. #define FDCAN_PSR_DLEC FDCAN_PSR_DLEC_Msk /*!<Data Last Error Code */
  6364. #define FDCAN_PSR_RESI_Pos (11U)
  6365. #define FDCAN_PSR_RESI_Msk (0x1UL << FDCAN_PSR_RESI_Pos) /*!< 0x00000800 */
  6366. #define FDCAN_PSR_RESI FDCAN_PSR_RESI_Msk /*!<ESI flag of last received FDCAN Message */
  6367. #define FDCAN_PSR_RBRS_Pos (12U)
  6368. #define FDCAN_PSR_RBRS_Msk (0x1UL << FDCAN_PSR_RBRS_Pos) /*!< 0x00001000 */
  6369. #define FDCAN_PSR_RBRS FDCAN_PSR_RBRS_Msk /*!<BRS flag of last received FDCAN Message */
  6370. #define FDCAN_PSR_REDL_Pos (13U)
  6371. #define FDCAN_PSR_REDL_Msk (0x1UL << FDCAN_PSR_REDL_Pos) /*!< 0x00002000 */
  6372. #define FDCAN_PSR_REDL FDCAN_PSR_REDL_Msk /*!<Received FDCAN Message */
  6373. #define FDCAN_PSR_PXE_Pos (14U)
  6374. #define FDCAN_PSR_PXE_Msk (0x1UL << FDCAN_PSR_PXE_Pos) /*!< 0x00004000 */
  6375. #define FDCAN_PSR_PXE FDCAN_PSR_PXE_Msk /*!<Protocol Exception Event */
  6376. #define FDCAN_PSR_TDCV_Pos (16U)
  6377. #define FDCAN_PSR_TDCV_Msk (0x7FUL << FDCAN_PSR_TDCV_Pos) /*!< 0x007F0000 */
  6378. #define FDCAN_PSR_TDCV FDCAN_PSR_TDCV_Msk /*!<Transmitter Delay Compensation Value */
  6379. /***************** Bit definition for FDCAN_TDCR register ********************/
  6380. #define FDCAN_TDCR_TDCF_Pos (0U)
  6381. #define FDCAN_TDCR_TDCF_Msk (0x7FUL << FDCAN_TDCR_TDCF_Pos) /*!< 0x0000007F */
  6382. #define FDCAN_TDCR_TDCF FDCAN_TDCR_TDCF_Msk /*!<Transmitter Delay Compensation Filter */
  6383. #define FDCAN_TDCR_TDCO_Pos (8U)
  6384. #define FDCAN_TDCR_TDCO_Msk (0x7FUL << FDCAN_TDCR_TDCO_Pos) /*!< 0x00007F00 */
  6385. #define FDCAN_TDCR_TDCO FDCAN_TDCR_TDCO_Msk /*!<Transmitter Delay Compensation Offset */
  6386. /***************** Bit definition for FDCAN_IR register **********************/
  6387. #define FDCAN_IR_RF0N_Pos (0U)
  6388. #define FDCAN_IR_RF0N_Msk (0x1UL << FDCAN_IR_RF0N_Pos) /*!< 0x00000001 */
  6389. #define FDCAN_IR_RF0N FDCAN_IR_RF0N_Msk /*!<Rx FIFO 0 New Message */
  6390. #define FDCAN_IR_RF0F_Pos (1U)
  6391. #define FDCAN_IR_RF0F_Msk (0x1UL << FDCAN_IR_RF0F_Pos) /*!< 0x00000002 */
  6392. #define FDCAN_IR_RF0F FDCAN_IR_RF0F_Msk /*!<Rx FIFO 0 Full */
  6393. #define FDCAN_IR_RF0L_Pos (2U)
  6394. #define FDCAN_IR_RF0L_Msk (0x1UL << FDCAN_IR_RF0L_Pos) /*!< 0x00000004 */
  6395. #define FDCAN_IR_RF0L FDCAN_IR_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  6396. #define FDCAN_IR_RF1N_Pos (3U)
  6397. #define FDCAN_IR_RF1N_Msk (0x1UL << FDCAN_IR_RF1N_Pos) /*!< 0x00000008 */
  6398. #define FDCAN_IR_RF1N FDCAN_IR_RF1N_Msk /*!<Rx FIFO 1 New Message */
  6399. #define FDCAN_IR_RF1F_Pos (4U)
  6400. #define FDCAN_IR_RF1F_Msk (0x1UL << FDCAN_IR_RF1F_Pos) /*!< 0x00000010 */
  6401. #define FDCAN_IR_RF1F FDCAN_IR_RF1F_Msk /*!<Rx FIFO 1 Full */
  6402. #define FDCAN_IR_RF1L_Pos (5U)
  6403. #define FDCAN_IR_RF1L_Msk (0x1UL << FDCAN_IR_RF1L_Pos) /*!< 0x00000020 */
  6404. #define FDCAN_IR_RF1L FDCAN_IR_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  6405. #define FDCAN_IR_HPM_Pos (6U)
  6406. #define FDCAN_IR_HPM_Msk (0x1UL << FDCAN_IR_HPM_Pos) /*!< 0x00000040 */
  6407. #define FDCAN_IR_HPM FDCAN_IR_HPM_Msk /*!<High Priority Message */
  6408. #define FDCAN_IR_TC_Pos (7U)
  6409. #define FDCAN_IR_TC_Msk (0x1UL << FDCAN_IR_TC_Pos) /*!< 0x00000080 */
  6410. #define FDCAN_IR_TC FDCAN_IR_TC_Msk /*!<Transmission Completed */
  6411. #define FDCAN_IR_TCF_Pos (8U)
  6412. #define FDCAN_IR_TCF_Msk (0x1UL << FDCAN_IR_TCF_Pos) /*!< 0x00000100 */
  6413. #define FDCAN_IR_TCF FDCAN_IR_TCF_Msk /*!<Transmission Cancellation Finished */
  6414. #define FDCAN_IR_TFE_Pos (9U)
  6415. #define FDCAN_IR_TFE_Msk (0x1UL << FDCAN_IR_TFE_Pos) /*!< 0x00000200 */
  6416. #define FDCAN_IR_TFE FDCAN_IR_TFE_Msk /*!<Tx FIFO Empty */
  6417. #define FDCAN_IR_TEFN_Pos (10U)
  6418. #define FDCAN_IR_TEFN_Msk (0x1UL << FDCAN_IR_TEFN_Pos) /*!< 0x00000400 */
  6419. #define FDCAN_IR_TEFN FDCAN_IR_TEFN_Msk /*!<Tx Event FIFO New Entry */
  6420. #define FDCAN_IR_TEFF_Pos (11U)
  6421. #define FDCAN_IR_TEFF_Msk (0x1UL << FDCAN_IR_TEFF_Pos) /*!< 0x00000800 */
  6422. #define FDCAN_IR_TEFF FDCAN_IR_TEFF_Msk /*!<Tx Event FIFO Full */
  6423. #define FDCAN_IR_TEFL_Pos (12U)
  6424. #define FDCAN_IR_TEFL_Msk (0x1UL << FDCAN_IR_TEFL_Pos) /*!< 0x00001000 */
  6425. #define FDCAN_IR_TEFL FDCAN_IR_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  6426. #define FDCAN_IR_TSW_Pos (13U)
  6427. #define FDCAN_IR_TSW_Msk (0x1UL << FDCAN_IR_TSW_Pos) /*!< 0x00002000 */
  6428. #define FDCAN_IR_TSW FDCAN_IR_TSW_Msk /*!<Timestamp Wraparound */
  6429. #define FDCAN_IR_MRAF_Pos (14U)
  6430. #define FDCAN_IR_MRAF_Msk (0x1UL << FDCAN_IR_MRAF_Pos) /*!< 0x00004000 */
  6431. #define FDCAN_IR_MRAF FDCAN_IR_MRAF_Msk /*!<Message RAM Access Failure */
  6432. #define FDCAN_IR_TOO_Pos (15U)
  6433. #define FDCAN_IR_TOO_Msk (0x1UL << FDCAN_IR_TOO_Pos) /*!< 0x00008000 */
  6434. #define FDCAN_IR_TOO FDCAN_IR_TOO_Msk /*!<Timeout Occurred */
  6435. #define FDCAN_IR_ELO_Pos (16U)
  6436. #define FDCAN_IR_ELO_Msk (0x1UL << FDCAN_IR_ELO_Pos) /*!< 0x00010000 */
  6437. #define FDCAN_IR_ELO FDCAN_IR_ELO_Msk /*!<Error Logging Overflow */
  6438. #define FDCAN_IR_EP_Pos (17U)
  6439. #define FDCAN_IR_EP_Msk (0x1UL << FDCAN_IR_EP_Pos) /*!< 0x00020000 */
  6440. #define FDCAN_IR_EP FDCAN_IR_EP_Msk /*!<Error Passive */
  6441. #define FDCAN_IR_EW_Pos (18U)
  6442. #define FDCAN_IR_EW_Msk (0x1UL << FDCAN_IR_EW_Pos) /*!< 0x00040000 */
  6443. #define FDCAN_IR_EW FDCAN_IR_EW_Msk /*!<Warning Status */
  6444. #define FDCAN_IR_BO_Pos (19U)
  6445. #define FDCAN_IR_BO_Msk (0x1UL << FDCAN_IR_BO_Pos) /*!< 0x00080000 */
  6446. #define FDCAN_IR_BO FDCAN_IR_BO_Msk /*!<Bus_Off Status */
  6447. #define FDCAN_IR_WDI_Pos (20U)
  6448. #define FDCAN_IR_WDI_Msk (0x1UL << FDCAN_IR_WDI_Pos) /*!< 0x00100000 */
  6449. #define FDCAN_IR_WDI FDCAN_IR_WDI_Msk /*!<Watchdog Interrupt */
  6450. #define FDCAN_IR_PEA_Pos (21U)
  6451. #define FDCAN_IR_PEA_Msk (0x1UL << FDCAN_IR_PEA_Pos) /*!< 0x00200000 */
  6452. #define FDCAN_IR_PEA FDCAN_IR_PEA_Msk /*!<Protocol Error in Arbitration Phase */
  6453. #define FDCAN_IR_PED_Pos (22U)
  6454. #define FDCAN_IR_PED_Msk (0x1UL << FDCAN_IR_PED_Pos) /*!< 0x00400000 */
  6455. #define FDCAN_IR_PED FDCAN_IR_PED_Msk /*!<Protocol Error in Data Phase */
  6456. #define FDCAN_IR_ARA_Pos (23U)
  6457. #define FDCAN_IR_ARA_Msk (0x1UL << FDCAN_IR_ARA_Pos) /*!< 0x00800000 */
  6458. #define FDCAN_IR_ARA FDCAN_IR_ARA_Msk /*!<Access to Reserved Address */
  6459. /***************** Bit definition for FDCAN_IE register **********************/
  6460. #define FDCAN_IE_RF0NE_Pos (0U)
  6461. #define FDCAN_IE_RF0NE_Msk (0x1UL << FDCAN_IE_RF0NE_Pos) /*!< 0x00000001 */
  6462. #define FDCAN_IE_RF0NE FDCAN_IE_RF0NE_Msk /*!<Rx FIFO 0 New Message Enable */
  6463. #define FDCAN_IE_RF0FE_Pos (1U)
  6464. #define FDCAN_IE_RF0FE_Msk (0x1UL << FDCAN_IE_RF0FE_Pos) /*!< 0x00000002 */
  6465. #define FDCAN_IE_RF0FE FDCAN_IE_RF0FE_Msk /*!<Rx FIFO 0 Full Enable */
  6466. #define FDCAN_IE_RF0LE_Pos (2U)
  6467. #define FDCAN_IE_RF0LE_Msk (0x1UL << FDCAN_IE_RF0LE_Pos) /*!< 0x00000004 */
  6468. #define FDCAN_IE_RF0LE FDCAN_IE_RF0LE_Msk /*!<Rx FIFO 0 Message Lost Enable */
  6469. #define FDCAN_IE_RF1NE_Pos (3U)
  6470. #define FDCAN_IE_RF1NE_Msk (0x1UL << FDCAN_IE_RF1NE_Pos) /*!< 0x00000008 */
  6471. #define FDCAN_IE_RF1NE FDCAN_IE_RF1NE_Msk /*!<Rx FIFO 1 New Message Enable */
  6472. #define FDCAN_IE_RF1FE_Pos (4U)
  6473. #define FDCAN_IE_RF1FE_Msk (0x1UL << FDCAN_IE_RF1FE_Pos) /*!< 0x00000010 */
  6474. #define FDCAN_IE_RF1FE FDCAN_IE_RF1FE_Msk /*!<Rx FIFO 1 Full Enable */
  6475. #define FDCAN_IE_RF1LE_Pos (5U)
  6476. #define FDCAN_IE_RF1LE_Msk (0x1UL << FDCAN_IE_RF1LE_Pos) /*!< 0x00000020 */
  6477. #define FDCAN_IE_RF1LE FDCAN_IE_RF1LE_Msk /*!<Rx FIFO 1 Message Lost Enable */
  6478. #define FDCAN_IE_HPME_Pos (6U)
  6479. #define FDCAN_IE_HPME_Msk (0x1UL << FDCAN_IE_HPME_Pos) /*!< 0x00000040 */
  6480. #define FDCAN_IE_HPME FDCAN_IE_HPME_Msk /*!<High Priority Message Enable */
  6481. #define FDCAN_IE_TCE_Pos (7U)
  6482. #define FDCAN_IE_TCE_Msk (0x1UL << FDCAN_IE_TCE_Pos) /*!< 0x00000080 */
  6483. #define FDCAN_IE_TCE FDCAN_IE_TCE_Msk /*!<Transmission Completed Enable */
  6484. #define FDCAN_IE_TCFE_Pos (8U)
  6485. #define FDCAN_IE_TCFE_Msk (0x1UL << FDCAN_IE_TCFE_Pos) /*!< 0x00000100 */
  6486. #define FDCAN_IE_TCFE FDCAN_IE_TCFE_Msk /*!<Transmission Cancellation Finished Enable*/
  6487. #define FDCAN_IE_TFEE_Pos (9U)
  6488. #define FDCAN_IE_TFEE_Msk (0x1UL << FDCAN_IE_TFEE_Pos) /*!< 0x00000200 */
  6489. #define FDCAN_IE_TFEE FDCAN_IE_TFEE_Msk /*!<Tx FIFO Empty Enable */
  6490. #define FDCAN_IE_TEFNE_Pos (10U)
  6491. #define FDCAN_IE_TEFNE_Msk (0x1UL << FDCAN_IE_TEFNE_Pos) /*!< 0x00000400 */
  6492. #define FDCAN_IE_TEFNE FDCAN_IE_TEFNE_Msk /*!<Tx Event FIFO New Entry Enable */
  6493. #define FDCAN_IE_TEFFE_Pos (11U)
  6494. #define FDCAN_IE_TEFFE_Msk (0x1UL << FDCAN_IE_TEFFE_Pos) /*!< 0x00000800 */
  6495. #define FDCAN_IE_TEFFE FDCAN_IE_TEFFE_Msk /*!<Tx Event FIFO Full Enable */
  6496. #define FDCAN_IE_TEFLE_Pos (12U)
  6497. #define FDCAN_IE_TEFLE_Msk (0x1UL << FDCAN_IE_TEFLE_Pos) /*!< 0x00001000 */
  6498. #define FDCAN_IE_TEFLE FDCAN_IE_TEFLE_Msk /*!<Tx Event FIFO Element Lost Enable */
  6499. #define FDCAN_IE_TSWE_Pos (13U)
  6500. #define FDCAN_IE_TSWE_Msk (0x1UL << FDCAN_IE_TSWE_Pos) /*!< 0x00002000 */
  6501. #define FDCAN_IE_TSWE FDCAN_IE_TSWE_Msk /*!<Timestamp Wraparound Enable */
  6502. #define FDCAN_IE_MRAFE_Pos (14U)
  6503. #define FDCAN_IE_MRAFE_Msk (0x1UL << FDCAN_IE_MRAFE_Pos) /*!< 0x00004000 */
  6504. #define FDCAN_IE_MRAFE FDCAN_IE_MRAFE_Msk /*!<Message RAM Access Failure Enable */
  6505. #define FDCAN_IE_TOOE_Pos (15U)
  6506. #define FDCAN_IE_TOOE_Msk (0x1UL << FDCAN_IE_TOOE_Pos) /*!< 0x00008000 */
  6507. #define FDCAN_IE_TOOE FDCAN_IE_TOOE_Msk /*!<Timeout Occurred Enable */
  6508. #define FDCAN_IE_ELOE_Pos (16U)
  6509. #define FDCAN_IE_ELOE_Msk (0x1UL << FDCAN_IE_ELOE_Pos) /*!< 0x00010000 */
  6510. #define FDCAN_IE_ELOE FDCAN_IE_ELOE_Msk /*!<Error Logging Overflow Enable */
  6511. #define FDCAN_IE_EPE_Pos (17U)
  6512. #define FDCAN_IE_EPE_Msk (0x1UL << FDCAN_IE_EPE_Pos) /*!< 0x00020000 */
  6513. #define FDCAN_IE_EPE FDCAN_IE_EPE_Msk /*!<Error Passive Enable */
  6514. #define FDCAN_IE_EWE_Pos (18U)
  6515. #define FDCAN_IE_EWE_Msk (0x1UL << FDCAN_IE_EWE_Pos) /*!< 0x00040000 */
  6516. #define FDCAN_IE_EWE FDCAN_IE_EWE_Msk /*!<Warning Status Enable */
  6517. #define FDCAN_IE_BOE_Pos (19U)
  6518. #define FDCAN_IE_BOE_Msk (0x1UL << FDCAN_IE_BOE_Pos) /*!< 0x00080000 */
  6519. #define FDCAN_IE_BOE FDCAN_IE_BOE_Msk /*!<Bus_Off Status Enable */
  6520. #define FDCAN_IE_WDIE_Pos (20U)
  6521. #define FDCAN_IE_WDIE_Msk (0x1UL << FDCAN_IE_WDIE_Pos) /*!< 0x00100000 */
  6522. #define FDCAN_IE_WDIE FDCAN_IE_WDIE_Msk /*!<Watchdog Interrupt Enable */
  6523. #define FDCAN_IE_PEAE_Pos (21U)
  6524. #define FDCAN_IE_PEAE_Msk (0x1UL << FDCAN_IE_PEAE_Pos) /*!< 0x00200000 */
  6525. #define FDCAN_IE_PEAE FDCAN_IE_PEAE_Msk /*!<Protocol Error in Arbitration Phase Enable*/
  6526. #define FDCAN_IE_PEDE_Pos (22U)
  6527. #define FDCAN_IE_PEDE_Msk (0x1UL << FDCAN_IE_PEDE_Pos) /*!< 0x00400000 */
  6528. #define FDCAN_IE_PEDE FDCAN_IE_PEDE_Msk /*!<Protocol Error in Data Phase Enable */
  6529. #define FDCAN_IE_ARAE_Pos (23U)
  6530. #define FDCAN_IE_ARAE_Msk (0x1UL << FDCAN_IE_ARAE_Pos) /*!< 0x00800000 */
  6531. #define FDCAN_IE_ARAE FDCAN_IE_ARAE_Msk /*!<Access to Reserved Address Enable */
  6532. /***************** Bit definition for FDCAN_ILS register **********************/
  6533. #define FDCAN_ILS_RXFIFO0_Pos (0U)
  6534. #define FDCAN_ILS_RXFIFO0_Msk (0x1UL << FDCAN_ILS_RXFIFO0_Pos) /*!< 0x00000001 */
  6535. #define FDCAN_ILS_RXFIFO0 FDCAN_ILS_RXFIFO0_Msk /*!<Rx FIFO 0 Message Lost
  6536. Rx FIFO 0 is Full
  6537. Rx FIFO 0 Has New Message */
  6538. #define FDCAN_ILS_RXFIFO1_Pos (1U)
  6539. #define FDCAN_ILS_RXFIFO1_Msk (0x1UL << FDCAN_ILS_RXFIFO1_Pos) /*!< 0x00000002 */
  6540. #define FDCAN_ILS_RXFIFO1 FDCAN_ILS_RXFIFO1_Msk /*!<Rx FIFO 1 Message Lost
  6541. Rx FIFO 1 is Full
  6542. Rx FIFO 1 Has New Message */
  6543. #define FDCAN_ILS_SMSG_Pos (2U)
  6544. #define FDCAN_ILS_SMSG_Msk (0x1UL << FDCAN_ILS_SMSG_Pos) /*!< 0x00000004 */
  6545. #define FDCAN_ILS_SMSG FDCAN_ILS_SMSG_Msk /*!<Transmission Cancellation Finished
  6546. Transmission Completed
  6547. High Priority Message */
  6548. #define FDCAN_ILS_TFERR_Pos (3U)
  6549. #define FDCAN_ILS_TFERR_Msk (0x1UL << FDCAN_ILS_TFERR_Pos) /*!< 0x00000008 */
  6550. #define FDCAN_ILS_TFERR FDCAN_ILS_TFERR_Msk /*!<Tx Event FIFO Element Lost
  6551. Tx Event FIFO Full
  6552. Tx Event FIFO New Entry
  6553. Tx FIFO Empty Interrupt Line */
  6554. #define FDCAN_ILS_MISC_Pos (4U)
  6555. #define FDCAN_ILS_MISC_Msk (0x1UL << FDCAN_ILS_MISC_Pos) /*!< 0x00000010 */
  6556. #define FDCAN_ILS_MISC FDCAN_ILS_MISC_Msk /*!<Timeout Occurred
  6557. Message RAM Access Failure
  6558. Timestamp Wraparound */
  6559. #define FDCAN_ILS_BERR_Pos (5U)
  6560. #define FDCAN_ILS_BERR_Msk (0x1UL << FDCAN_ILS_BERR_Pos) /*!< 0x00000020 */
  6561. #define FDCAN_ILS_BERR FDCAN_ILS_BERR_Msk /*!<Error Passive
  6562. Error Logging Overflow */
  6563. #define FDCAN_ILS_PERR_Pos (6U)
  6564. #define FDCAN_ILS_PERR_Msk (0x1UL << FDCAN_ILS_PERR_Pos) /*!< 0x00000040 */
  6565. #define FDCAN_ILS_PERR FDCAN_ILS_PERR_Msk /*!<Access to Reserved Address Line
  6566. Protocol Error in Data Phase Line
  6567. Protocol Error in Arbitration Phase Line
  6568. Watchdog Interrupt Line
  6569. Bus_Off Status
  6570. Warning Status */
  6571. /***************** Bit definition for FDCAN_ILE register **********************/
  6572. #define FDCAN_ILE_EINT0_Pos (0U)
  6573. #define FDCAN_ILE_EINT0_Msk (0x1UL << FDCAN_ILE_EINT0_Pos) /*!< 0x00000001 */
  6574. #define FDCAN_ILE_EINT0 FDCAN_ILE_EINT0_Msk /*!<Enable Interrupt Line 0 */
  6575. #define FDCAN_ILE_EINT1_Pos (1U)
  6576. #define FDCAN_ILE_EINT1_Msk (0x1UL << FDCAN_ILE_EINT1_Pos) /*!< 0x00000002 */
  6577. #define FDCAN_ILE_EINT1 FDCAN_ILE_EINT1_Msk /*!<Enable Interrupt Line 1 */
  6578. /***************** Bit definition for FDCAN_RXGFC register ********************/
  6579. #define FDCAN_RXGFC_RRFE_Pos (0U)
  6580. #define FDCAN_RXGFC_RRFE_Msk (0x1UL << FDCAN_RXGFC_RRFE_Pos) /*!< 0x00000001 */
  6581. #define FDCAN_RXGFC_RRFE FDCAN_RXGFC_RRFE_Msk /*!<Reject Remote Frames Extended */
  6582. #define FDCAN_RXGFC_RRFS_Pos (1U)
  6583. #define FDCAN_RXGFC_RRFS_Msk (0x1UL << FDCAN_RXGFC_RRFS_Pos) /*!< 0x00000002 */
  6584. #define FDCAN_RXGFC_RRFS FDCAN_RXGFC_RRFS_Msk /*!<Reject Remote Frames Standard */
  6585. #define FDCAN_RXGFC_ANFE_Pos (2U)
  6586. #define FDCAN_RXGFC_ANFE_Msk (0x3UL << FDCAN_RXGFC_ANFE_Pos) /*!< 0x0000000C */
  6587. #define FDCAN_RXGFC_ANFE FDCAN_RXGFC_ANFE_Msk /*!<Accept Non-matching Frames Extended */
  6588. #define FDCAN_RXGFC_ANFS_Pos (4U)
  6589. #define FDCAN_RXGFC_ANFS_Msk (0x3UL << FDCAN_RXGFC_ANFS_Pos) /*!< 0x00000030 */
  6590. #define FDCAN_RXGFC_ANFS FDCAN_RXGFC_ANFS_Msk /*!<Accept Non-matching Frames Standard */
  6591. #define FDCAN_RXGFC_F1OM_Pos (8U)
  6592. #define FDCAN_RXGFC_F1OM_Msk (0x1UL << FDCAN_RXGFC_F1OM_Pos) /*!< 0x00000100 */
  6593. #define FDCAN_RXGFC_F1OM FDCAN_RXGFC_F1OM_Msk /*!<FIFO 1 operation mode */
  6594. #define FDCAN_RXGFC_F0OM_Pos (9U)
  6595. #define FDCAN_RXGFC_F0OM_Msk (0x1UL << FDCAN_RXGFC_F0OM_Pos) /*!< 0x00000200 */
  6596. #define FDCAN_RXGFC_F0OM FDCAN_RXGFC_F0OM_Msk /*!<FIFO 0 operation mode */
  6597. #define FDCAN_RXGFC_LSS_Pos (16U)
  6598. #define FDCAN_RXGFC_LSS_Msk (0x1FUL << FDCAN_RXGFC_LSS_Pos) /*!< 0x001F0000 */
  6599. #define FDCAN_RXGFC_LSS FDCAN_RXGFC_LSS_Msk /*!<List Size Standard */
  6600. #define FDCAN_RXGFC_LSE_Pos (24U)
  6601. #define FDCAN_RXGFC_LSE_Msk (0xFUL << FDCAN_RXGFC_LSE_Pos) /*!< 0x0F000000 */
  6602. #define FDCAN_RXGFC_LSE FDCAN_RXGFC_LSE_Msk /*!<List Size Extended */
  6603. /***************** Bit definition for FDCAN_XIDAM register ********************/
  6604. #define FDCAN_XIDAM_EIDM_Pos (0U)
  6605. #define FDCAN_XIDAM_EIDM_Msk (0x1FFFFFFFUL << FDCAN_XIDAM_EIDM_Pos) /*!< 0x1FFFFFFF */
  6606. #define FDCAN_XIDAM_EIDM FDCAN_XIDAM_EIDM_Msk /*!<Extended ID Mask */
  6607. /***************** Bit definition for FDCAN_HPMS register *********************/
  6608. #define FDCAN_HPMS_BIDX_Pos (0U)
  6609. #define FDCAN_HPMS_BIDX_Msk (0x7UL << FDCAN_HPMS_BIDX_Pos) /*!< 0x00000007 */
  6610. #define FDCAN_HPMS_BIDX FDCAN_HPMS_BIDX_Msk /*!<Buffer Index */
  6611. #define FDCAN_HPMS_MSI_Pos (6U)
  6612. #define FDCAN_HPMS_MSI_Msk (0x3UL << FDCAN_HPMS_MSI_Pos) /*!< 0x000000C0 */
  6613. #define FDCAN_HPMS_MSI FDCAN_HPMS_MSI_Msk /*!<Message Storage Indicator */
  6614. #define FDCAN_HPMS_FIDX_Pos (8U)
  6615. #define FDCAN_HPMS_FIDX_Msk (0x1FUL << FDCAN_HPMS_FIDX_Pos) /*!< 0x00001F00 */
  6616. #define FDCAN_HPMS_FIDX FDCAN_HPMS_FIDX_Msk /*!<Filter Index */
  6617. #define FDCAN_HPMS_FLST_Pos (15U)
  6618. #define FDCAN_HPMS_FLST_Msk (0x1UL << FDCAN_HPMS_FLST_Pos) /*!< 0x00008000 */
  6619. #define FDCAN_HPMS_FLST FDCAN_HPMS_FLST_Msk /*!<Filter List */
  6620. /***************** Bit definition for FDCAN_RXF0S register ********************/
  6621. #define FDCAN_RXF0S_F0FL_Pos (0U)
  6622. #define FDCAN_RXF0S_F0FL_Msk (0xFUL << FDCAN_RXF0S_F0FL_Pos) /*!< 0x0000000F */
  6623. #define FDCAN_RXF0S_F0FL FDCAN_RXF0S_F0FL_Msk /*!<Rx FIFO 0 Fill Level */
  6624. #define FDCAN_RXF0S_F0GI_Pos (8U)
  6625. #define FDCAN_RXF0S_F0GI_Msk (0x3UL << FDCAN_RXF0S_F0GI_Pos) /*!< 0x00000300 */
  6626. #define FDCAN_RXF0S_F0GI FDCAN_RXF0S_F0GI_Msk /*!<Rx FIFO 0 Get Index */
  6627. #define FDCAN_RXF0S_F0PI_Pos (16U)
  6628. #define FDCAN_RXF0S_F0PI_Msk (0x3UL << FDCAN_RXF0S_F0PI_Pos) /*!< 0x00030000 */
  6629. #define FDCAN_RXF0S_F0PI FDCAN_RXF0S_F0PI_Msk /*!<Rx FIFO 0 Put Index */
  6630. #define FDCAN_RXF0S_F0F_Pos (24U)
  6631. #define FDCAN_RXF0S_F0F_Msk (0x1UL << FDCAN_RXF0S_F0F_Pos) /*!< 0x01000000 */
  6632. #define FDCAN_RXF0S_F0F FDCAN_RXF0S_F0F_Msk /*!<Rx FIFO 0 Full */
  6633. #define FDCAN_RXF0S_RF0L_Pos (25U)
  6634. #define FDCAN_RXF0S_RF0L_Msk (0x1UL << FDCAN_RXF0S_RF0L_Pos) /*!< 0x02000000 */
  6635. #define FDCAN_RXF0S_RF0L FDCAN_RXF0S_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  6636. /***************** Bit definition for FDCAN_RXF0A register ********************/
  6637. #define FDCAN_RXF0A_F0AI_Pos (0U)
  6638. #define FDCAN_RXF0A_F0AI_Msk (0x7UL << FDCAN_RXF0A_F0AI_Pos) /*!< 0x00000007 */
  6639. #define FDCAN_RXF0A_F0AI FDCAN_RXF0A_F0AI_Msk /*!<Rx FIFO 0 Acknowledge Index */
  6640. /***************** Bit definition for FDCAN_RXF1S register ********************/
  6641. #define FDCAN_RXF1S_F1FL_Pos (0U)
  6642. #define FDCAN_RXF1S_F1FL_Msk (0xFUL << FDCAN_RXF1S_F1FL_Pos) /*!< 0x0000000F */
  6643. #define FDCAN_RXF1S_F1FL FDCAN_RXF1S_F1FL_Msk /*!<Rx FIFO 1 Fill Level */
  6644. #define FDCAN_RXF1S_F1GI_Pos (8U)
  6645. #define FDCAN_RXF1S_F1GI_Msk (0x3UL << FDCAN_RXF1S_F1GI_Pos) /*!< 0x00000300 */
  6646. #define FDCAN_RXF1S_F1GI FDCAN_RXF1S_F1GI_Msk /*!<Rx FIFO 1 Get Index */
  6647. #define FDCAN_RXF1S_F1PI_Pos (16U)
  6648. #define FDCAN_RXF1S_F1PI_Msk (0x3UL << FDCAN_RXF1S_F1PI_Pos) /*!< 0x00030000 */
  6649. #define FDCAN_RXF1S_F1PI FDCAN_RXF1S_F1PI_Msk /*!<Rx FIFO 1 Put Index */
  6650. #define FDCAN_RXF1S_F1F_Pos (24U)
  6651. #define FDCAN_RXF1S_F1F_Msk (0x1UL << FDCAN_RXF1S_F1F_Pos) /*!< 0x01000000 */
  6652. #define FDCAN_RXF1S_F1F FDCAN_RXF1S_F1F_Msk /*!<Rx FIFO 1 Full */
  6653. #define FDCAN_RXF1S_RF1L_Pos (25U)
  6654. #define FDCAN_RXF1S_RF1L_Msk (0x1UL << FDCAN_RXF1S_RF1L_Pos) /*!< 0x02000000 */
  6655. #define FDCAN_RXF1S_RF1L FDCAN_RXF1S_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  6656. /***************** Bit definition for FDCAN_RXF1A register ********************/
  6657. #define FDCAN_RXF1A_F1AI_Pos (0U)
  6658. #define FDCAN_RXF1A_F1AI_Msk (0x7UL << FDCAN_RXF1A_F1AI_Pos) /*!< 0x00000007 */
  6659. #define FDCAN_RXF1A_F1AI FDCAN_RXF1A_F1AI_Msk /*!<Rx FIFO 1 Acknowledge Index */
  6660. /***************** Bit definition for FDCAN_TXBC register *********************/
  6661. #define FDCAN_TXBC_TFQM_Pos (24U)
  6662. #define FDCAN_TXBC_TFQM_Msk (0x1UL << FDCAN_TXBC_TFQM_Pos) /*!< 0x01000000 */
  6663. #define FDCAN_TXBC_TFQM FDCAN_TXBC_TFQM_Msk /*!<Tx FIFO/Queue Mode */
  6664. /***************** Bit definition for FDCAN_TXFQS register *********************/
  6665. #define FDCAN_TXFQS_TFFL_Pos (0U)
  6666. #define FDCAN_TXFQS_TFFL_Msk (0x7UL << FDCAN_TXFQS_TFFL_Pos) /*!< 0x00000007 */
  6667. #define FDCAN_TXFQS_TFFL FDCAN_TXFQS_TFFL_Msk /*!<Tx FIFO Free Level */
  6668. #define FDCAN_TXFQS_TFGI_Pos (8U)
  6669. #define FDCAN_TXFQS_TFGI_Msk (0x3UL << FDCAN_TXFQS_TFGI_Pos) /*!< 0x00000300 */
  6670. #define FDCAN_TXFQS_TFGI FDCAN_TXFQS_TFGI_Msk /*!<Tx FIFO Get Index */
  6671. #define FDCAN_TXFQS_TFQPI_Pos (16U)
  6672. #define FDCAN_TXFQS_TFQPI_Msk (0x3UL << FDCAN_TXFQS_TFQPI_Pos) /*!< 0x00030000 */
  6673. #define FDCAN_TXFQS_TFQPI FDCAN_TXFQS_TFQPI_Msk /*!<Tx FIFO/Queue Put Index */
  6674. #define FDCAN_TXFQS_TFQF_Pos (21U)
  6675. #define FDCAN_TXFQS_TFQF_Msk (0x1UL << FDCAN_TXFQS_TFQF_Pos) /*!< 0x00200000 */
  6676. #define FDCAN_TXFQS_TFQF FDCAN_TXFQS_TFQF_Msk /*!<Tx FIFO/Queue Full */
  6677. /***************** Bit definition for FDCAN_TXBRP register *********************/
  6678. #define FDCAN_TXBRP_TRP_Pos (0U)
  6679. #define FDCAN_TXBRP_TRP_Msk (0x7UL << FDCAN_TXBRP_TRP_Pos) /*!< 0x00000007 */
  6680. #define FDCAN_TXBRP_TRP FDCAN_TXBRP_TRP_Msk /*!<Transmission Request Pending */
  6681. /***************** Bit definition for FDCAN_TXBAR register *********************/
  6682. #define FDCAN_TXBAR_AR_Pos (0U)
  6683. #define FDCAN_TXBAR_AR_Msk (0x7UL << FDCAN_TXBAR_AR_Pos) /*!< 0x00000007 */
  6684. #define FDCAN_TXBAR_AR FDCAN_TXBAR_AR_Msk /*!<Add Request */
  6685. /***************** Bit definition for FDCAN_TXBCR register *********************/
  6686. #define FDCAN_TXBCR_CR_Pos (0U)
  6687. #define FDCAN_TXBCR_CR_Msk (0x7UL << FDCAN_TXBCR_CR_Pos) /*!< 0x00000007 */
  6688. #define FDCAN_TXBCR_CR FDCAN_TXBCR_CR_Msk /*!<Cancellation Request */
  6689. /***************** Bit definition for FDCAN_TXBTO register *********************/
  6690. #define FDCAN_TXBTO_TO_Pos (0U)
  6691. #define FDCAN_TXBTO_TO_Msk (0x7UL << FDCAN_TXBTO_TO_Pos) /*!< 0x00000007 */
  6692. #define FDCAN_TXBTO_TO FDCAN_TXBTO_TO_Msk /*!<Transmission Occurred */
  6693. /***************** Bit definition for FDCAN_TXBCF register *********************/
  6694. #define FDCAN_TXBCF_CF_Pos (0U)
  6695. #define FDCAN_TXBCF_CF_Msk (0x7UL << FDCAN_TXBCF_CF_Pos) /*!< 0x00000007 */
  6696. #define FDCAN_TXBCF_CF FDCAN_TXBCF_CF_Msk /*!<Cancellation Finished */
  6697. /***************** Bit definition for FDCAN_TXBTIE register ********************/
  6698. #define FDCAN_TXBTIE_TIE_Pos (0U)
  6699. #define FDCAN_TXBTIE_TIE_Msk (0x7UL << FDCAN_TXBTIE_TIE_Pos) /*!< 0x00000007 */
  6700. #define FDCAN_TXBTIE_TIE FDCAN_TXBTIE_TIE_Msk /*!<Transmission Interrupt Enable */
  6701. /***************** Bit definition for FDCAN_ TXBCIE register *******************/
  6702. #define FDCAN_TXBCIE_CFIE_Pos (0U)
  6703. #define FDCAN_TXBCIE_CFIE_Msk (0x7UL << FDCAN_TXBCIE_CFIE_Pos) /*!< 0x00000007 */
  6704. #define FDCAN_TXBCIE_CFIE FDCAN_TXBCIE_CFIE_Msk /*!<Cancellation Finished Interrupt Enable */
  6705. /***************** Bit definition for FDCAN_TXEFS register *********************/
  6706. #define FDCAN_TXEFS_EFFL_Pos (0U)
  6707. #define FDCAN_TXEFS_EFFL_Msk (0x7UL << FDCAN_TXEFS_EFFL_Pos) /*!< 0x00000007 */
  6708. #define FDCAN_TXEFS_EFFL FDCAN_TXEFS_EFFL_Msk /*!<Event FIFO Fill Level */
  6709. #define FDCAN_TXEFS_EFGI_Pos (8U)
  6710. #define FDCAN_TXEFS_EFGI_Msk (0x3UL << FDCAN_TXEFS_EFGI_Pos) /*!< 0x00000300 */
  6711. #define FDCAN_TXEFS_EFGI FDCAN_TXEFS_EFGI_Msk /*!<Event FIFO Get Index */
  6712. #define FDCAN_TXEFS_EFPI_Pos (16U)
  6713. #define FDCAN_TXEFS_EFPI_Msk (0x3UL << FDCAN_TXEFS_EFPI_Pos) /*!< 0x00030000 */
  6714. #define FDCAN_TXEFS_EFPI FDCAN_TXEFS_EFPI_Msk /*!<Event FIFO Put Index */
  6715. #define FDCAN_TXEFS_EFF_Pos (24U)
  6716. #define FDCAN_TXEFS_EFF_Msk (0x1UL << FDCAN_TXEFS_EFF_Pos) /*!< 0x01000000 */
  6717. #define FDCAN_TXEFS_EFF FDCAN_TXEFS_EFF_Msk /*!<Event FIFO Full */
  6718. #define FDCAN_TXEFS_TEFL_Pos (25U)
  6719. #define FDCAN_TXEFS_TEFL_Msk (0x1UL << FDCAN_TXEFS_TEFL_Pos) /*!< 0x02000000 */
  6720. #define FDCAN_TXEFS_TEFL FDCAN_TXEFS_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  6721. /***************** Bit definition for FDCAN_TXEFA register *********************/
  6722. #define FDCAN_TXEFA_EFAI_Pos (0U)
  6723. #define FDCAN_TXEFA_EFAI_Msk (0x3UL << FDCAN_TXEFA_EFAI_Pos) /*!< 0x00000003 */
  6724. #define FDCAN_TXEFA_EFAI FDCAN_TXEFA_EFAI_Msk /*!<Event FIFO Acknowledge Index */
  6725. /*!<FDCAN config registers */
  6726. /***************** Bit definition for FDCAN_CKDIV register *********************/
  6727. #define FDCAN_CKDIV_PDIV_Pos (0U)
  6728. #define FDCAN_CKDIV_PDIV_Msk (0xFUL << FDCAN_CKDIV_PDIV_Pos) /*!< 0x0000000F */
  6729. #define FDCAN_CKDIV_PDIV FDCAN_CKDIV_PDIV_Msk /*!<Input Clock Divider */
  6730. /***************** Bit definition for FDCAN_OPTR register *********************/
  6731. #define FDCAN_OPTR_OPTR_Pos (0U)
  6732. #define FDCAN_OPTR_OPTR_Msk (0xFFFFFFFFUL << FDCAN_OPTR_OPTR_Pos) /*!< 0xFFFFFFFF */
  6733. #define FDCAN_OPTR_OPTR FDCAN_OPTR_OPTR_Msk /*!<Option Register */
  6734. /******************************************************************************/
  6735. /* */
  6736. /* FLASH */
  6737. /* */
  6738. /******************************************************************************/
  6739. /******************* Bits definition for FLASH_ACR register *****************/
  6740. #define FLASH_ACR_LATENCY_Pos (0U)
  6741. #define FLASH_ACR_LATENCY_Msk (0xFUL << FLASH_ACR_LATENCY_Pos) /*!< 0x0000000F */
  6742. #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk
  6743. #define FLASH_ACR_LATENCY_0WS (0x00000000UL)
  6744. #define FLASH_ACR_LATENCY_1WS (0x00000001UL)
  6745. #define FLASH_ACR_LATENCY_2WS (0x00000002UL)
  6746. #define FLASH_ACR_LATENCY_3WS (0x00000003UL)
  6747. #define FLASH_ACR_LATENCY_4WS (0x00000004UL)
  6748. #define FLASH_ACR_LATENCY_5WS (0x00000005UL)
  6749. #define FLASH_ACR_LATENCY_6WS (0x00000006UL)
  6750. #define FLASH_ACR_LATENCY_7WS (0x00000007UL)
  6751. #define FLASH_ACR_LATENCY_8WS (0x00000008UL)
  6752. #define FLASH_ACR_LATENCY_9WS (0x00000009UL)
  6753. #define FLASH_ACR_LATENCY_10WS (0x0000000AUL)
  6754. #define FLASH_ACR_LATENCY_11WS (0x0000000BUL)
  6755. #define FLASH_ACR_LATENCY_12WS (0x0000000CUL)
  6756. #define FLASH_ACR_LATENCY_13WS (0x0000000DUL)
  6757. #define FLASH_ACR_LATENCY_14WS (0x0000000EUL)
  6758. #define FLASH_ACR_LATENCY_15WS (0x0000000FUL)
  6759. #define FLASH_ACR_RUN_PD_Pos (13U)
  6760. #define FLASH_ACR_RUN_PD_Msk (0x1UL << FLASH_ACR_RUN_PD_Pos) /*!< 0x00002000 */
  6761. #define FLASH_ACR_RUN_PD FLASH_ACR_RUN_PD_Msk /*!< Flash power down mode during run */
  6762. #define FLASH_ACR_SLEEP_PD_Pos (14U)
  6763. #define FLASH_ACR_SLEEP_PD_Msk (0x1UL << FLASH_ACR_SLEEP_PD_Pos) /*!< 0x00004000 */
  6764. #define FLASH_ACR_SLEEP_PD FLASH_ACR_SLEEP_PD_Msk /*!< Flash power down mode during sleep */
  6765. #define FLASH_ACR_LVEN_Pos (15U)
  6766. #define FLASH_ACR_LVEN_Msk (0x1UL << FLASH_ACR_LVEN_Pos) /*!< 0x00008000 */
  6767. #define FLASH_ACR_LVEN FLASH_ACR_LVEN_Msk /*!< LVE A/B Flash pin low */
  6768. /****************** Bits definition for FLASH_NSSR register *****************/
  6769. #define FLASH_NSSR_NSEOP_Pos (0U)
  6770. #define FLASH_NSSR_NSEOP_Msk (0x1UL << FLASH_NSSR_NSEOP_Pos) /*!< 0x00000001 */
  6771. #define FLASH_NSSR_NSEOP FLASH_NSSR_NSEOP_Msk
  6772. #define FLASH_NSSR_NSOPERR_Pos (1U)
  6773. #define FLASH_NSSR_NSOPERR_Msk (0x1UL << FLASH_NSSR_NSOPERR_Pos) /*!< 0x00000002 */
  6774. #define FLASH_NSSR_NSOPERR FLASH_NSSR_NSOPERR_Msk
  6775. #define FLASH_NSSR_NSPROGERR_Pos (3U)
  6776. #define FLASH_NSSR_NSPROGERR_Msk (0x1UL << FLASH_NSSR_NSPROGERR_Pos) /*!< 0x00000008 */
  6777. #define FLASH_NSSR_NSPROGERR FLASH_NSSR_NSPROGERR_Msk
  6778. #define FLASH_NSSR_NSWRPERR_Pos (4U)
  6779. #define FLASH_NSSR_NSWRPERR_Msk (0x1UL << FLASH_NSSR_NSWRPERR_Pos) /*!< 0x00000010 */
  6780. #define FLASH_NSSR_NSWRPERR FLASH_NSSR_NSWRPERR_Msk
  6781. #define FLASH_NSSR_NSPGAERR_Pos (5U)
  6782. #define FLASH_NSSR_NSPGAERR_Msk (0x1UL << FLASH_NSSR_NSPGAERR_Pos) /*!< 0x00000020 */
  6783. #define FLASH_NSSR_NSPGAERR FLASH_NSSR_NSPGAERR_Msk
  6784. #define FLASH_NSSR_NSSIZERR_Pos (6U)
  6785. #define FLASH_NSSR_NSSIZERR_Msk (0x1UL << FLASH_NSSR_NSSIZERR_Pos) /*!< 0x00000040 */
  6786. #define FLASH_NSSR_NSSIZERR FLASH_NSSR_NSSIZERR_Msk
  6787. #define FLASH_NSSR_NSPGSERR_Pos (7U)
  6788. #define FLASH_NSSR_NSPGSERR_Msk (0x1UL << FLASH_NSSR_NSPGSERR_Pos) /*!< 0x00000080 */
  6789. #define FLASH_NSSR_NSPGSERR FLASH_NSSR_NSPGSERR_Msk
  6790. #define FLASH_NSSR_OPTWERR_Pos (13U)
  6791. #define FLASH_NSSR_OPTWERR_Msk (0x1UL << FLASH_NSSR_OPTWERR_Pos) /*!< 0x00002000 */
  6792. #define FLASH_NSSR_OPTWERR FLASH_NSSR_OPTWERR_Msk
  6793. #define FLASH_NSSR_NSBSY_Pos (16U)
  6794. #define FLASH_NSSR_NSBSY_Msk (0x1UL << FLASH_NSSR_NSBSY_Pos) /*!< 0x00010000 */
  6795. #define FLASH_NSSR_NSBSY FLASH_NSSR_NSBSY_Msk
  6796. /****************** Bits definition for FLASH_SECSR register ****************/
  6797. #define FLASH_SECSR_SECEOP_Pos (0U)
  6798. #define FLASH_SECSR_SECEOP_Msk (0x1UL << FLASH_SECSR_SECEOP_Pos) /*!< 0x00000001 */
  6799. #define FLASH_SECSR_SECEOP FLASH_SECSR_SECEOP_Msk
  6800. #define FLASH_SECSR_SECOPERR_Pos (1U)
  6801. #define FLASH_SECSR_SECOPERR_Msk (0x1UL << FLASH_SECSR_SECOPERR_Pos) /*!< 0x00000002 */
  6802. #define FLASH_SECSR_SECOPERR FLASH_SECSR_SECOPERR_Msk
  6803. #define FLASH_SECSR_SECPROGERR_Pos (3U)
  6804. #define FLASH_SECSR_SECPROGERR_Msk (0x1UL << FLASH_SECSR_SECPROGERR_Pos)/*!< 0x00000008 */
  6805. #define FLASH_SECSR_SECPROGERR FLASH_SECSR_SECPROGERR_Msk
  6806. #define FLASH_SECSR_SECWRPERR_Pos (4U)
  6807. #define FLASH_SECSR_SECWRPERR_Msk (0x1UL << FLASH_SECSR_SECWRPERR_Pos) /*!< 0x00000010 */
  6808. #define FLASH_SECSR_SECWRPERR FLASH_SECSR_SECWRPERR_Msk
  6809. #define FLASH_SECSR_SECPGAERR_Pos (5U)
  6810. #define FLASH_SECSR_SECPGAERR_Msk (0x1UL << FLASH_SECSR_SECPGAERR_Pos) /*!< 0x00000020 */
  6811. #define FLASH_SECSR_SECPGAERR FLASH_SECSR_SECPGAERR_Msk
  6812. #define FLASH_SECSR_SECSIZERR_Pos (6U)
  6813. #define FLASH_SECSR_SECSIZERR_Msk (0x1UL << FLASH_SECSR_SECSIZERR_Pos) /*!< 0x00000040 */
  6814. #define FLASH_SECSR_SECSIZERR FLASH_SECSR_SECSIZERR_Msk
  6815. #define FLASH_SECSR_SECPGSERR_Pos (7U)
  6816. #define FLASH_SECSR_SECPGSERR_Msk (0x1UL << FLASH_SECSR_SECPGSERR_Pos) /*!< 0x00000080 */
  6817. #define FLASH_SECSR_SECPGSERR FLASH_SECSR_SECPGSERR_Msk
  6818. #define FLASH_SECSR_SECBSY_Pos (16U)
  6819. #define FLASH_SECSR_SECBSY_Msk (0x1UL << FLASH_SECSR_SECBSY_Pos) /*!< 0x00010000 */
  6820. #define FLASH_SECSR_SECBSY FLASH_SECSR_SECBSY_Msk
  6821. /****************** Bits definition for FLASH_NSCR register *****************/
  6822. #define FLASH_NSCR_NSPG_Pos (0U)
  6823. #define FLASH_NSCR_NSPG_Msk (0x1UL << FLASH_NSCR_NSPG_Pos) /*!< 0x00000001 */
  6824. #define FLASH_NSCR_NSPG FLASH_NSCR_NSPG_Msk
  6825. #define FLASH_NSCR_NSPER_Pos (1U)
  6826. #define FLASH_NSCR_NSPER_Msk (0x1UL << FLASH_NSCR_NSPER_Pos) /*!< 0x00000002 */
  6827. #define FLASH_NSCR_NSPER FLASH_NSCR_NSPER_Msk
  6828. #define FLASH_NSCR_NSMER1_Pos (2U)
  6829. #define FLASH_NSCR_NSMER1_Msk (0x1UL << FLASH_NSCR_NSMER1_Pos) /*!< 0x00000004 */
  6830. #define FLASH_NSCR_NSMER1 FLASH_NSCR_NSMER1_Msk
  6831. #define FLASH_NSCR_NSPNB_Pos (3U)
  6832. #define FLASH_NSCR_NSPNB_Msk (0x7FUL << FLASH_NSCR_NSPNB_Pos) /*!< 0x000003F8 */
  6833. #define FLASH_NSCR_NSPNB FLASH_NSCR_NSPNB_Msk
  6834. #define FLASH_NSCR_NSBKER_Pos (11U)
  6835. #define FLASH_NSCR_NSBKER_Msk (0x1UL << FLASH_NSCR_NSBKER_Pos) /*!< 0x00000800 */
  6836. #define FLASH_NSCR_NSBKER FLASH_NSCR_NSBKER_Msk
  6837. #define FLASH_NSCR_NSMER2_Pos (15U)
  6838. #define FLASH_NSCR_NSMER2_Msk (0x1UL << FLASH_NSCR_NSMER2_Pos) /*!< 0x00008000 */
  6839. #define FLASH_NSCR_NSMER2 FLASH_NSCR_NSMER2_Msk
  6840. #define FLASH_NSCR_NSSTRT_Pos (16U)
  6841. #define FLASH_NSCR_NSSTRT_Msk (0x1UL << FLASH_NSCR_NSSTRT_Pos) /*!< 0x00010000 */
  6842. #define FLASH_NSCR_NSSTRT FLASH_NSCR_NSSTRT_Msk
  6843. #define FLASH_NSCR_OPTSTRT_Pos (17U)
  6844. #define FLASH_NSCR_OPTSTRT_Msk (0x1UL << FLASH_NSCR_OPTSTRT_Pos) /*!< 0x00020000 */
  6845. #define FLASH_NSCR_OPTSTRT FLASH_NSCR_OPTSTRT_Msk
  6846. #define FLASH_NSCR_NSEOPIE_Pos (24U)
  6847. #define FLASH_NSCR_NSEOPIE_Msk (0x1UL << FLASH_NSCR_NSEOPIE_Pos) /*!< 0x01000000 */
  6848. #define FLASH_NSCR_NSEOPIE FLASH_NSCR_NSEOPIE_Msk
  6849. #define FLASH_NSCR_NSERRIE_Pos (25U)
  6850. #define FLASH_NSCR_NSERRIE_Msk (0x1UL << FLASH_NSCR_NSERRIE_Pos) /*!< 0x02000000 */
  6851. #define FLASH_NSCR_NSERRIE FLASH_NSCR_NSERRIE_Msk
  6852. #define FLASH_NSCR_OBL_LAUNCH_Pos (27U)
  6853. #define FLASH_NSCR_OBL_LAUNCH_Msk (0x1UL << FLASH_NSCR_OBL_LAUNCH_Pos) /*!< 0x08000000 */
  6854. #define FLASH_NSCR_OBL_LAUNCH FLASH_NSCR_OBL_LAUNCH_Msk
  6855. #define FLASH_NSCR_OPTLOCK_Pos (30U)
  6856. #define FLASH_NSCR_OPTLOCK_Msk (0x1UL << FLASH_NSCR_OPTLOCK_Pos) /*!< 0x40000000 */
  6857. #define FLASH_NSCR_OPTLOCK FLASH_NSCR_OPTLOCK_Msk
  6858. #define FLASH_NSCR_NSLOCK_Pos (31U)
  6859. #define FLASH_NSCR_NSLOCK_Msk (0x1UL << FLASH_NSCR_NSLOCK_Pos) /*!< 0x80000000 */
  6860. #define FLASH_NSCR_NSLOCK FLASH_NSCR_NSLOCK_Msk
  6861. /****************** Bits definition for FLASH_SECCR register ****************/
  6862. #define FLASH_SECCR_SECPG_Pos (0U)
  6863. #define FLASH_SECCR_SECPG_Msk (0x1UL << FLASH_SECCR_SECPG_Pos) /*!< 0x00000001 */
  6864. #define FLASH_SECCR_SECPG FLASH_SECCR_SECPG_Msk
  6865. #define FLASH_SECCR_SECPER_Pos (1U)
  6866. #define FLASH_SECCR_SECPER_Msk (0x1UL << FLASH_SECCR_SECPER_Pos) /*!< 0x00000002 */
  6867. #define FLASH_SECCR_SECPER FLASH_SECCR_SECPER_Msk
  6868. #define FLASH_SECCR_SECMER1_Pos (2U)
  6869. #define FLASH_SECCR_SECMER1_Msk (0x1UL << FLASH_SECCR_SECMER1_Pos) /*!< 0x00000004 */
  6870. #define FLASH_SECCR_SECMER1 FLASH_SECCR_SECMER1_Msk
  6871. #define FLASH_SECCR_SECPNB_Pos (3U)
  6872. #define FLASH_SECCR_SECPNB_Msk (0x7FUL << FLASH_SECCR_SECPNB_Pos) /*!< 0x000003F8 */
  6873. #define FLASH_SECCR_SECPNB FLASH_SECCR_SECPNB_Msk
  6874. #define FLASH_SECCR_SECBKER_Pos (11U)
  6875. #define FLASH_SECCR_SECBKER_Msk (0x1UL << FLASH_SECCR_SECBKER_Pos) /*!< 0x00000800 */
  6876. #define FLASH_SECCR_SECBKER FLASH_SECCR_SECBKER_Msk
  6877. #define FLASH_SECCR_SECMER2_Pos (15U)
  6878. #define FLASH_SECCR_SECMER2_Msk (0x1UL << FLASH_SECCR_SECMER2_Pos) /*!< 0x00008000 */
  6879. #define FLASH_SECCR_SECMER2 FLASH_SECCR_SECMER2_Msk
  6880. #define FLASH_SECCR_SECSTRT_Pos (16U)
  6881. #define FLASH_SECCR_SECSTRT_Msk (0x1UL << FLASH_SECCR_SECSTRT_Pos) /*!< 0x00010000 */
  6882. #define FLASH_SECCR_SECSTRT FLASH_SECCR_SECSTRT_Msk
  6883. #define FLASH_SECCR_SECEOPIE_Pos (24U)
  6884. #define FLASH_SECCR_SECEOPIE_Msk (0x1UL << FLASH_SECCR_SECEOPIE_Pos) /*!< 0x01000000 */
  6885. #define FLASH_SECCR_SECEOPIE FLASH_SECCR_SECEOPIE_Msk
  6886. #define FLASH_SECCR_SECERRIE_Pos (25U)
  6887. #define FLASH_SECCR_SECERRIE_Msk (0x1UL << FLASH_SECCR_SECERRIE_Pos) /*!< 0x02000000 */
  6888. #define FLASH_SECCR_SECERRIE FLASH_SECCR_SECERRIE_Msk
  6889. #define FLASH_SECCR_SECINV_Pos (29U)
  6890. #define FLASH_SECCR_SECINV_Msk (0x1UL << FLASH_SECCR_SECINV_Pos) /*!< 0x20000000 */
  6891. #define FLASH_SECCR_SECINV FLASH_SECCR_SECINV_Msk
  6892. #define FLASH_SECCR_SECLOCK_Pos (31U)
  6893. #define FLASH_SECCR_SECLOCK_Msk (0x1UL << FLASH_SECCR_SECLOCK_Pos) /*!< 0x80000000 */
  6894. #define FLASH_SECCR_SECLOCK FLASH_SECCR_SECLOCK_Msk
  6895. /******************* Bits definition for FLASH_ECCR register ***************/
  6896. #define FLASH_ECCR_ADDR_ECC_Pos (0U)
  6897. #define FLASH_ECCR_ADDR_ECC_Msk (0x7FFFFUL << FLASH_ECCR_ADDR_ECC_Pos)/*!< 0x0007FFFF */
  6898. #define FLASH_ECCR_ADDR_ECC FLASH_ECCR_ADDR_ECC_Msk
  6899. #define FLASH_ECCR_BK_ECC_Pos (21U)
  6900. #define FLASH_ECCR_BK_ECC_Msk (0x1UL << FLASH_ECCR_BK_ECC_Pos) /*!< 0x00200000 */
  6901. #define FLASH_ECCR_BK_ECC FLASH_ECCR_BK_ECC_Msk
  6902. #define FLASH_ECCR_SYSF_ECC_Pos (22U)
  6903. #define FLASH_ECCR_SYSF_ECC_Msk (0x1UL << FLASH_ECCR_SYSF_ECC_Pos) /*!< 0x00400000 */
  6904. #define FLASH_ECCR_SYSF_ECC FLASH_ECCR_SYSF_ECC_Msk
  6905. #define FLASH_ECCR_ECCIE_Pos (24U)
  6906. #define FLASH_ECCR_ECCIE_Msk (0x1UL << FLASH_ECCR_ECCIE_Pos) /*!< 0x01000000 */
  6907. #define FLASH_ECCR_ECCIE FLASH_ECCR_ECCIE_Msk
  6908. #define FLASH_ECCR_ECCC2_Pos (28U)
  6909. #define FLASH_ECCR_ECCC2_Msk (0x1UL << FLASH_ECCR_ECCC2_Pos) /*!< 0x10000000 */
  6910. #define FLASH_ECCR_ECCC2 FLASH_ECCR_ECCC2_Msk
  6911. #define FLASH_ECCR_ECCD2_Pos (29U)
  6912. #define FLASH_ECCR_ECCD2_Msk (0x1UL << FLASH_ECCR_ECCD2_Pos) /*!< 0x20000000 */
  6913. #define FLASH_ECCR_ECCD2 FLASH_ECCR_ECCD2_Msk
  6914. #define FLASH_ECCR_ECCC_Pos (30U)
  6915. #define FLASH_ECCR_ECCC_Msk (0x1UL << FLASH_ECCR_ECCC_Pos) /*!< 0x40000000 */
  6916. #define FLASH_ECCR_ECCC FLASH_ECCR_ECCC_Msk
  6917. #define FLASH_ECCR_ECCD_Pos (31U)
  6918. #define FLASH_ECCR_ECCD_Msk (0x1UL << FLASH_ECCR_ECCD_Pos) /*!< 0x80000000 */
  6919. #define FLASH_ECCR_ECCD FLASH_ECCR_ECCD_Msk
  6920. /******************* Bits definition for FLASH_OPTR register ***************/
  6921. #define FLASH_OPTR_RDP_Pos (0U)
  6922. #define FLASH_OPTR_RDP_Msk (0xFFUL << FLASH_OPTR_RDP_Pos) /*!< 0x000000FF */
  6923. #define FLASH_OPTR_RDP FLASH_OPTR_RDP_Msk
  6924. #define FLASH_OPTR_BOR_LEV_Pos (8U)
  6925. #define FLASH_OPTR_BOR_LEV_Msk (0x7UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000700 */
  6926. #define FLASH_OPTR_BOR_LEV FLASH_OPTR_BOR_LEV_Msk
  6927. #define FLASH_OPTR_BOR_LEV_0 (0x0UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000000 */
  6928. #define FLASH_OPTR_BOR_LEV_1 (0x1UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000100 */
  6929. #define FLASH_OPTR_BOR_LEV_2 (0x2UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000200 */
  6930. #define FLASH_OPTR_BOR_LEV_3 (0x3UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000300 */
  6931. #define FLASH_OPTR_BOR_LEV_4 (0x4UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000400 */
  6932. #define FLASH_OPTR_nRST_STOP_Pos (12U)
  6933. #define FLASH_OPTR_nRST_STOP_Msk (0x1UL << FLASH_OPTR_nRST_STOP_Pos) /*!< 0x00001000 */
  6934. #define FLASH_OPTR_nRST_STOP FLASH_OPTR_nRST_STOP_Msk
  6935. #define FLASH_OPTR_nRST_STDBY_Pos (13U)
  6936. #define FLASH_OPTR_nRST_STDBY_Msk (0x1UL << FLASH_OPTR_nRST_STDBY_Pos) /*!< 0x00002000 */
  6937. #define FLASH_OPTR_nRST_STDBY FLASH_OPTR_nRST_STDBY_Msk
  6938. #define FLASH_OPTR_nRST_SHDW_Pos (14U)
  6939. #define FLASH_OPTR_nRST_SHDW_Msk (0x1UL << FLASH_OPTR_nRST_SHDW_Pos) /*!< 0x00004000 */
  6940. #define FLASH_OPTR_nRST_SHDW FLASH_OPTR_nRST_SHDW_Msk
  6941. #define FLASH_OPTR_IWDG_SW_Pos (16U)
  6942. #define FLASH_OPTR_IWDG_SW_Msk (0x1UL << FLASH_OPTR_IWDG_SW_Pos) /*!< 0x00010000 */
  6943. #define FLASH_OPTR_IWDG_SW FLASH_OPTR_IWDG_SW_Msk
  6944. #define FLASH_OPTR_IWDG_STOP_Pos (17U)
  6945. #define FLASH_OPTR_IWDG_STOP_Msk (0x1UL << FLASH_OPTR_IWDG_STOP_Pos) /*!< 0x00020000 */
  6946. #define FLASH_OPTR_IWDG_STOP FLASH_OPTR_IWDG_STOP_Msk
  6947. #define FLASH_OPTR_IWDG_STDBY_Pos (18U)
  6948. #define FLASH_OPTR_IWDG_STDBY_Msk (0x1UL << FLASH_OPTR_IWDG_STDBY_Pos) /*!< 0x00040000 */
  6949. #define FLASH_OPTR_IWDG_STDBY FLASH_OPTR_IWDG_STDBY_Msk
  6950. #define FLASH_OPTR_WWDG_SW_Pos (19U)
  6951. #define FLASH_OPTR_WWDG_SW_Msk (0x1UL << FLASH_OPTR_WWDG_SW_Pos) /*!< 0x00080000 */
  6952. #define FLASH_OPTR_WWDG_SW FLASH_OPTR_WWDG_SW_Msk
  6953. #define FLASH_OPTR_SWAP_BANK_Pos (20U)
  6954. #define FLASH_OPTR_SWAP_BANK_Msk (0x1UL << FLASH_OPTR_SWAP_BANK_Pos) /*!< 0x00100000 */
  6955. #define FLASH_OPTR_SWAP_BANK FLASH_OPTR_SWAP_BANK_Msk
  6956. #define FLASH_OPTR_DB256K_Pos (21U)
  6957. #define FLASH_OPTR_DB256K_Msk (0x1UL << FLASH_OPTR_DB256K_Pos) /*!< 0x00200000 */
  6958. #define FLASH_OPTR_DB256K FLASH_OPTR_DB256K_Msk
  6959. #define FLASH_OPTR_DBANK_Pos (22U)
  6960. #define FLASH_OPTR_DBANK_Msk (0x1UL << FLASH_OPTR_DBANK_Pos) /*!< 0x00400000 */
  6961. #define FLASH_OPTR_DBANK FLASH_OPTR_DBANK_Msk
  6962. #define FLASH_OPTR_SRAM2_PE_Pos (24U)
  6963. #define FLASH_OPTR_SRAM2_PE_Msk (0x1UL << FLASH_OPTR_SRAM2_PE_Pos) /*!< 0x01000000 */
  6964. #define FLASH_OPTR_SRAM2_PE FLASH_OPTR_SRAM2_PE_Msk
  6965. #define FLASH_OPTR_SRAM2_RST_Pos (25U)
  6966. #define FLASH_OPTR_SRAM2_RST_Msk (0x1UL << FLASH_OPTR_SRAM2_RST_Pos) /*!< 0x02000000 */
  6967. #define FLASH_OPTR_SRAM2_RST FLASH_OPTR_SRAM2_RST_Msk
  6968. #define FLASH_OPTR_nSWBOOT0_Pos (26U)
  6969. #define FLASH_OPTR_nSWBOOT0_Msk (0x1UL << FLASH_OPTR_nSWBOOT0_Pos) /*!< 0x04000000 */
  6970. #define FLASH_OPTR_nSWBOOT0 FLASH_OPTR_nSWBOOT0_Msk
  6971. #define FLASH_OPTR_nBOOT0_Pos (27U)
  6972. #define FLASH_OPTR_nBOOT0_Msk (0x1UL << FLASH_OPTR_nBOOT0_Pos) /*!< 0x08000000 */
  6973. #define FLASH_OPTR_nBOOT0 FLASH_OPTR_nBOOT0_Msk
  6974. #define FLASH_OPTR_PA15_PUPEN_Pos (28U)
  6975. #define FLASH_OPTR_PA15_PUPEN_Msk (0x1UL << FLASH_OPTR_PA15_PUPEN_Pos) /*!< 0x10000000 */
  6976. #define FLASH_OPTR_PA15_PUPEN FLASH_OPTR_PA15_PUPEN_Msk
  6977. #define FLASH_OPTR_TZEN_Pos (31U)
  6978. #define FLASH_OPTR_TZEN_Msk (0x1UL << FLASH_OPTR_TZEN_Pos) /*!< 0x80000000 */
  6979. #define FLASH_OPTR_TZEN FLASH_OPTR_TZEN_Msk
  6980. /**************** Bits definition for FLASH_NSBOOTADD0R register ************/
  6981. #define FLASH_NSBOOTADD0R_NSBOOTADD0_Pos (7U)
  6982. #define FLASH_NSBOOTADD0R_NSBOOTADD0_Msk (0x1FFFFFFUL << FLASH_NSBOOTADD0R_NSBOOTADD0_Pos)/*!< 0xFFFFFF80 */
  6983. #define FLASH_NSBOOTADD0R_NSBOOTADD0 FLASH_NSBOOTADD0R_NSBOOTADD0_Msk
  6984. /**************** Bits definition for FLASH_NSBOOTADD1R register ************/
  6985. #define FLASH_NSBOOTADD1R_NSBOOTADD1_Pos (7U)
  6986. #define FLASH_NSBOOTADD1R_NSBOOTADD1_Msk (0x1FFFFFFUL << FLASH_NSBOOTADD1R_NSBOOTADD1_Pos)/*!< 0xFFFFFF80 */
  6987. #define FLASH_NSBOOTADD1R_NSBOOTADD1 FLASH_NSBOOTADD1R_NSBOOTADD1_Msk
  6988. /**************** Bits definition for FLASH_SECBOOTADD0R register ***********/
  6989. #define FLASH_SECBOOTADD0R_BOOT_LOCK_Pos (0U)
  6990. #define FLASH_SECBOOTADD0R_BOOT_LOCK_Msk (0x1UL << FLASH_SECBOOTADD0R_BOOT_LOCK_Pos) /*!< 0x00000001 */
  6991. #define FLASH_SECBOOTADD0R_BOOT_LOCK FLASH_SECBOOTADD0R_BOOT_LOCK_Msk
  6992. #define FLASH_SECBOOTADD0R_SECBOOTADD0_Pos (7U)
  6993. #define FLASH_SECBOOTADD0R_SECBOOTADD0_Msk (0x1FFFFFFUL << FLASH_SECBOOTADD0R_SECBOOTADD0_Pos)/*!< 0xFFFFFF80 */
  6994. #define FLASH_SECBOOTADD0R_SECBOOTADD0 FLASH_SECBOOTADD0R_SECBOOTADD0_Msk
  6995. /***************** Bits definition for FLASH_SECWM1R1 register **************/
  6996. #define FLASH_SECWM1R1_SECWM1_PSTRT_Pos (0U)
  6997. #define FLASH_SECWM1R1_SECWM1_PSTRT_Msk (0x7FUL << FLASH_SECWM1R1_SECWM1_PSTRT_Pos)/*!< 0x0000007F */
  6998. #define FLASH_SECWM1R1_SECWM1_PSTRT FLASH_SECWM1R1_SECWM1_PSTRT_Msk
  6999. #define FLASH_SECWM1R1_SECWM1_PEND_Pos (16U)
  7000. #define FLASH_SECWM1R1_SECWM1_PEND_Msk (0x7FUL << FLASH_SECWM1R1_SECWM1_PEND_Pos) /*!< 0x007F0000 */
  7001. #define FLASH_SECWM1R1_SECWM1_PEND FLASH_SECWM1R1_SECWM1_PEND_Msk
  7002. /***************** Bits definition for FLASH_SECWM1R2 register **************/
  7003. #define FLASH_SECWM1R2_HDP1_PEND_Pos (16U)
  7004. #define FLASH_SECWM1R2_HDP1_PEND_Msk (0x7FUL << FLASH_SECWM1R2_HDP1_PEND_Pos) /*!< 0x007F0000 */
  7005. #define FLASH_SECWM1R2_HDP1_PEND FLASH_SECWM1R2_HDP1_PEND_Msk
  7006. #define FLASH_SECWM1R2_HDP1EN_Pos (31U)
  7007. #define FLASH_SECWM1R2_HDP1EN_Msk (0x1UL << FLASH_SECWM1R2_HDP1EN_Pos) /*!< 0x80000000 */
  7008. #define FLASH_SECWM1R2_HDP1EN FLASH_SECWM1R2_HDP1EN_Msk
  7009. /****************** Bits definition for FLASH_WRP1AR register ***************/
  7010. #define FLASH_WRP1AR_WRP1A_PSTRT_Pos (0U)
  7011. #define FLASH_WRP1AR_WRP1A_PSTRT_Msk (0x7FUL << FLASH_WRP1AR_WRP1A_PSTRT_Pos)/*!< 0x0000007F */
  7012. #define FLASH_WRP1AR_WRP1A_PSTRT FLASH_WRP1AR_WRP1A_PSTRT_Msk
  7013. #define FLASH_WRP1AR_WRP1A_PEND_Pos (16U)
  7014. #define FLASH_WRP1AR_WRP1A_PEND_Msk (0x7FUL << FLASH_WRP1AR_WRP1A_PEND_Pos) /*!< 0x007F0000 */
  7015. #define FLASH_WRP1AR_WRP1A_PEND FLASH_WRP1AR_WRP1A_PEND_Msk
  7016. /****************** Bits definition for FLASH_WRP1BR register ***************/
  7017. #define FLASH_WRP1BR_WRP1B_PSTRT_Pos (0U)
  7018. #define FLASH_WRP1BR_WRP1B_PSTRT_Msk (0x7FUL << FLASH_WRP1BR_WRP1B_PSTRT_Pos)/*!< 0x0000007F */
  7019. #define FLASH_WRP1BR_WRP1B_PSTRT FLASH_WRP1BR_WRP1B_PSTRT_Msk
  7020. #define FLASH_WRP1BR_WRP1B_PEND_Pos (16U)
  7021. #define FLASH_WRP1BR_WRP1B_PEND_Msk (0x7FUL << FLASH_WRP1BR_WRP1B_PEND_Pos) /*!< 0x007F0000 */
  7022. #define FLASH_WRP1BR_WRP1B_PEND FLASH_WRP1BR_WRP1B_PEND_Msk
  7023. /***************** Bits definition for FLASH_SECWM2R1 register **************/
  7024. #define FLASH_SECWM2R1_SECWM2_PSTRT_Pos (0U)
  7025. #define FLASH_SECWM2R1_SECWM2_PSTRT_Msk (0x7FUL << FLASH_SECWM2R1_SECWM2_PSTRT_Pos)/*!< 0x0000007F */
  7026. #define FLASH_SECWM2R1_SECWM2_PSTRT FLASH_SECWM2R1_SECWM2_PSTRT_Msk
  7027. #define FLASH_SECWM2R1_SECWM2_PEND_Pos (16U)
  7028. #define FLASH_SECWM2R1_SECWM2_PEND_Msk (0x7FUL << FLASH_SECWM2R1_SECWM2_PEND_Pos)/*!< 0x007F0000 */
  7029. #define FLASH_SECWM2R1_SECWM2_PEND FLASH_SECWM2R1_SECWM2_PEND_Msk
  7030. /***************** Bits definition for FLASH_SECWM2R2 register **************/
  7031. #define FLASH_SECWM2R2_HDP2_PEND_Pos (16U)
  7032. #define FLASH_SECWM2R2_HDP2_PEND_Msk (0x7FUL << FLASH_SECWM2R2_HDP2_PEND_Pos) /*!< 0x007F0000 */
  7033. #define FLASH_SECWM2R2_HDP2_PEND FLASH_SECWM2R2_HDP2_PEND_Msk
  7034. #define FLASH_SECWM2R2_HDP2EN_Pos (31U)
  7035. #define FLASH_SECWM2R2_HDP2EN_Msk (0x1UL << FLASH_SECWM2R2_HDP2EN_Pos) /*!< 0x80000000 */
  7036. #define FLASH_SECWM2R2_HDP2EN FLASH_SECWM2R2_HDP2EN_Msk
  7037. /****************** Bits definition for FLASH_WRP2AR register ***************/
  7038. #define FLASH_WRP2AR_WRP2A_PSTRT_Pos (0U)
  7039. #define FLASH_WRP2AR_WRP2A_PSTRT_Msk (0x7FUL << FLASH_WRP2AR_WRP2A_PSTRT_Pos)/*!< 0x0000007F */
  7040. #define FLASH_WRP2AR_WRP2A_PSTRT FLASH_WRP2AR_WRP2A_PSTRT_Msk
  7041. #define FLASH_WRP2AR_WRP2A_PEND_Pos (16U)
  7042. #define FLASH_WRP2AR_WRP2A_PEND_Msk (0x7FUL << FLASH_WRP2AR_WRP2A_PEND_Pos) /*!< 0x007F0000 */
  7043. #define FLASH_WRP2AR_WRP2A_PEND FLASH_WRP2AR_WRP2A_PEND_Msk
  7044. /****************** Bits definition for FLASH_WRPB2R register ***************/
  7045. #define FLASH_WRP2BR_WRP2B_PSTRT_Pos (0U)
  7046. #define FLASH_WRP2BR_WRP2B_PSTRT_Msk (0x7FUL << FLASH_WRP2BR_WRP2B_PSTRT_Pos)/*!< 0x0000007F */
  7047. #define FLASH_WRP2BR_WRP2B_PSTRT FLASH_WRP2BR_WRP2B_PSTRT_Msk
  7048. #define FLASH_WRP2BR_WRP2B_PEND_Pos (16U)
  7049. #define FLASH_WRP2BR_WRP2B_PEND_Msk (0x7FUL << FLASH_WRP2BR_WRP2B_PEND_Pos) /*!< 0x007F0000 */
  7050. #define FLASH_WRP2BR_WRP2B_PEND FLASH_WRP2BR_WRP2B_PEND_Msk
  7051. /****************** Bits definition for FLASH_SECHDPCR register ***********/
  7052. #define FLASH_SECHDPCR_HDP1_ACCDIS_Pos (0U)
  7053. #define FLASH_SECHDPCR_HDP1_ACCDIS_Msk (0x1UL << FLASH_SECHDPCR_HDP1_ACCDIS_Pos)/*!< 0x00000001 */
  7054. #define FLASH_SECHDPCR_HDP1_ACCDIS FLASH_SECHDPCR_HDP1_ACCDIS_Msk
  7055. #define FLASH_SECHDPCR_HDP2_ACCDIS_Pos (1U)
  7056. #define FLASH_SECHDPCR_HDP2_ACCDIS_Msk (0x1UL << FLASH_SECHDPCR_HDP2_ACCDIS_Pos)/*!< 0x00000002 */
  7057. #define FLASH_SECHDPCR_HDP2_ACCDIS FLASH_SECHDPCR_HDP2_ACCDIS_Msk
  7058. /****************** Bits definition for FLASH_PRIVCFGR register ***********/
  7059. #define FLASH_PRIVCFGR_PRIV_Pos (0U)
  7060. #define FLASH_PRIVCFGR_PRIV_Msk (0x1UL << FLASH_PRIVCFGR_PRIV_Pos)/*!< 0x00000001 */
  7061. #define FLASH_PRIVCFGR_PRIV FLASH_PRIVCFGR_PRIV_Msk
  7062. /******************************************************************************/
  7063. /* */
  7064. /* Flexible Memory Controller */
  7065. /* */
  7066. /******************************************************************************/
  7067. /****************** Bit definition for FMC_BCR1 register *******************/
  7068. #define FMC_BCR1_CCLKEN_Pos (20U)
  7069. #define FMC_BCR1_CCLKEN_Msk (0x1UL << FMC_BCR1_CCLKEN_Pos) /*!< 0x00100000 */
  7070. #define FMC_BCR1_CCLKEN FMC_BCR1_CCLKEN_Msk /*!<Continous clock enable */
  7071. #define FMC_BCR1_WFDIS_Pos (21U)
  7072. #define FMC_BCR1_WFDIS_Msk (0x1UL << FMC_BCR1_WFDIS_Pos) /*!< 0x00200000 */
  7073. #define FMC_BCR1_WFDIS FMC_BCR1_WFDIS_Msk /*!<Write FIFO Disable */
  7074. /****************** Bit definition for FMC_BCRx registers (x=1..4) *********/
  7075. #define FMC_BCRx_MBKEN_Pos (0U)
  7076. #define FMC_BCRx_MBKEN_Msk (0x1UL << FMC_BCRx_MBKEN_Pos) /*!< 0x00000001 */
  7077. #define FMC_BCRx_MBKEN FMC_BCRx_MBKEN_Msk /*!<Memory bank enable bit */
  7078. #define FMC_BCRx_MUXEN_Pos (1U)
  7079. #define FMC_BCRx_MUXEN_Msk (0x1UL << FMC_BCRx_MUXEN_Pos) /*!< 0x00000002 */
  7080. #define FMC_BCRx_MUXEN FMC_BCRx_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  7081. #define FMC_BCRx_MTYP_Pos (2U)
  7082. #define FMC_BCRx_MTYP_Msk (0x3UL << FMC_BCRx_MTYP_Pos) /*!< 0x0000000C */
  7083. #define FMC_BCRx_MTYP FMC_BCRx_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  7084. #define FMC_BCRx_MTYP_0 (0x1UL << FMC_BCRx_MTYP_Pos) /*!< 0x00000004 */
  7085. #define FMC_BCRx_MTYP_1 (0x2UL << FMC_BCRx_MTYP_Pos) /*!< 0x00000008 */
  7086. #define FMC_BCRx_MWID_Pos (4U)
  7087. #define FMC_BCRx_MWID_Msk (0x3UL << FMC_BCRx_MWID_Pos) /*!< 0x00000030 */
  7088. #define FMC_BCRx_MWID FMC_BCRx_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  7089. #define FMC_BCRx_MWID_0 (0x1UL << FMC_BCRx_MWID_Pos) /*!< 0x00000010 */
  7090. #define FMC_BCRx_MWID_1 (0x2UL << FMC_BCRx_MWID_Pos) /*!< 0x00000020 */
  7091. #define FMC_BCRx_FACCEN_Pos (6U)
  7092. #define FMC_BCRx_FACCEN_Msk (0x1UL << FMC_BCRx_FACCEN_Pos) /*!< 0x00000040 */
  7093. #define FMC_BCRx_FACCEN FMC_BCRx_FACCEN_Msk /*!<Flash access enable */
  7094. #define FMC_BCRx_BURSTEN_Pos (8U)
  7095. #define FMC_BCRx_BURSTEN_Msk (0x1UL << FMC_BCRx_BURSTEN_Pos) /*!< 0x00000100 */
  7096. #define FMC_BCRx_BURSTEN FMC_BCRx_BURSTEN_Msk /*!<Burst enable bit */
  7097. #define FMC_BCRx_WAITPOL_Pos (9U)
  7098. #define FMC_BCRx_WAITPOL_Msk (0x1UL << FMC_BCRx_WAITPOL_Pos) /*!< 0x00000200 */
  7099. #define FMC_BCRx_WAITPOL FMC_BCRx_WAITPOL_Msk /*!<Wait signal polarity bit */
  7100. #define FMC_BCRx_WAITCFG_Pos (11U)
  7101. #define FMC_BCRx_WAITCFG_Msk (0x1UL << FMC_BCRx_WAITCFG_Pos) /*!< 0x00000800 */
  7102. #define FMC_BCRx_WAITCFG FMC_BCRx_WAITCFG_Msk /*!<Wait timing configuration */
  7103. #define FMC_BCRx_WREN_Pos (12U)
  7104. #define FMC_BCRx_WREN_Msk (0x1UL << FMC_BCRx_WREN_Pos) /*!< 0x00001000 */
  7105. #define FMC_BCRx_WREN FMC_BCRx_WREN_Msk /*!<Write enable bit */
  7106. #define FMC_BCRx_WAITEN_Pos (13U)
  7107. #define FMC_BCRx_WAITEN_Msk (0x1UL << FMC_BCRx_WAITEN_Pos) /*!< 0x00002000 */
  7108. #define FMC_BCRx_WAITEN FMC_BCRx_WAITEN_Msk /*!<Wait enable bit */
  7109. #define FMC_BCRx_EXTMOD_Pos (14U)
  7110. #define FMC_BCRx_EXTMOD_Msk (0x1UL << FMC_BCRx_EXTMOD_Pos) /*!< 0x00004000 */
  7111. #define FMC_BCRx_EXTMOD FMC_BCRx_EXTMOD_Msk /*!<Extended mode enable */
  7112. #define FMC_BCRx_ASYNCWAIT_Pos (15U)
  7113. #define FMC_BCRx_ASYNCWAIT_Msk (0x1UL << FMC_BCRx_ASYNCWAIT_Pos) /*!< 0x00008000 */
  7114. #define FMC_BCRx_ASYNCWAIT FMC_BCRx_ASYNCWAIT_Msk /*!<Asynchronous wait */
  7115. #define FMC_BCRx_CPSIZE_Pos (16U)
  7116. #define FMC_BCRx_CPSIZE_Msk (0x7UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00070000 */
  7117. #define FMC_BCRx_CPSIZE FMC_BCRx_CPSIZE_Msk /*!<CRAM page size */
  7118. #define FMC_BCRx_CPSIZE_0 (0x1UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00010000 */
  7119. #define FMC_BCRx_CPSIZE_1 (0x2UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00020000 */
  7120. #define FMC_BCRx_CPSIZE_2 (0x4UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00040000 */
  7121. #define FMC_BCRx_CBURSTRW_Pos (19U)
  7122. #define FMC_BCRx_CBURSTRW_Msk (0x1UL << FMC_BCRx_CBURSTRW_Pos) /*!< 0x00080000 */
  7123. #define FMC_BCRx_CBURSTRW FMC_BCRx_CBURSTRW_Msk /*!<Write burst enable */
  7124. #define FMC_BCRx_NBLSET_Pos (22U)
  7125. #define FMC_BCRx_NBLSET_Msk (0x3UL << FMC_BCRx_NBLSET_Pos) /*!< 0x00C00000 */
  7126. #define FMC_BCRx_NBLSET FMC_BCRx_NBLSET_Msk /*!<Byte lane (NBL) setup */
  7127. #define FMC_BCRx_NBLSET_0 (0x1UL << FMC_BCRx_NBLSET_Pos) /*!< 0x00400000 */
  7128. #define FMC_BCRx_NBLSET_1 (0x2UL << FMC_BCRx_NBLSET_Pos) /*!< 0x00800000 */
  7129. /****************** Bit definition for FMC_BTRx registers (x=1..4) *********/
  7130. #define FMC_BTRx_ADDSET_Pos (0U)
  7131. #define FMC_BTRx_ADDSET_Msk (0xFUL << FMC_BTRx_ADDSET_Pos) /*!< 0x0000000F */
  7132. #define FMC_BTRx_ADDSET FMC_BTRx_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  7133. #define FMC_BTRx_ADDSET_0 (0x1UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000001 */
  7134. #define FMC_BTRx_ADDSET_1 (0x2UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000002 */
  7135. #define FMC_BTRx_ADDSET_2 (0x4UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000004 */
  7136. #define FMC_BTRx_ADDSET_3 (0x8UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000008 */
  7137. #define FMC_BTRx_ADDHLD_Pos (4U)
  7138. #define FMC_BTRx_ADDHLD_Msk (0xFUL << FMC_BTRx_ADDHLD_Pos) /*!< 0x000000F0 */
  7139. #define FMC_BTRx_ADDHLD FMC_BTRx_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  7140. #define FMC_BTRx_ADDHLD_0 (0x1UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000010 */
  7141. #define FMC_BTRx_ADDHLD_1 (0x2UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000020 */
  7142. #define FMC_BTRx_ADDHLD_2 (0x4UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000040 */
  7143. #define FMC_BTRx_ADDHLD_3 (0x8UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000080 */
  7144. #define FMC_BTRx_DATAST_Pos (8U)
  7145. #define FMC_BTRx_DATAST_Msk (0xFFUL << FMC_BTRx_DATAST_Pos) /*!< 0x0000FF00 */
  7146. #define FMC_BTRx_DATAST FMC_BTRx_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  7147. #define FMC_BTRx_DATAST_0 (0x01UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000100 */
  7148. #define FMC_BTRx_DATAST_1 (0x02UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000200 */
  7149. #define FMC_BTRx_DATAST_2 (0x04UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000400 */
  7150. #define FMC_BTRx_DATAST_3 (0x08UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000800 */
  7151. #define FMC_BTRx_DATAST_4 (0x10UL << FMC_BTRx_DATAST_Pos) /*!< 0x00001000 */
  7152. #define FMC_BTRx_DATAST_5 (0x20UL << FMC_BTRx_DATAST_Pos) /*!< 0x00002000 */
  7153. #define FMC_BTRx_DATAST_6 (0x40UL << FMC_BTRx_DATAST_Pos) /*!< 0x00004000 */
  7154. #define FMC_BTRx_DATAST_7 (0x80UL << FMC_BTRx_DATAST_Pos) /*!< 0x00008000 */
  7155. #define FMC_BTRx_BUSTURN_Pos (16U)
  7156. #define FMC_BTRx_BUSTURN_Msk (0xFUL << FMC_BTRx_BUSTURN_Pos) /*!< 0x000F0000 */
  7157. #define FMC_BTRx_BUSTURN FMC_BTRx_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  7158. #define FMC_BTRx_BUSTURN_0 (0x1UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00010000 */
  7159. #define FMC_BTRx_BUSTURN_1 (0x2UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00020000 */
  7160. #define FMC_BTRx_BUSTURN_2 (0x4UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00040000 */
  7161. #define FMC_BTRx_BUSTURN_3 (0x8UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00080000 */
  7162. #define FMC_BTRx_CLKDIV_Pos (20U)
  7163. #define FMC_BTRx_CLKDIV_Msk (0xFUL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00F00000 */
  7164. #define FMC_BTRx_CLKDIV FMC_BTRx_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  7165. #define FMC_BTRx_CLKDIV_0 (0x1UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00100000 */
  7166. #define FMC_BTRx_CLKDIV_1 (0x2UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00200000 */
  7167. #define FMC_BTRx_CLKDIV_2 (0x4UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00400000 */
  7168. #define FMC_BTRx_CLKDIV_3 (0x8UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00800000 */
  7169. #define FMC_BTRx_DATLAT_Pos (24U)
  7170. #define FMC_BTRx_DATLAT_Msk (0xFUL << FMC_BTRx_DATLAT_Pos) /*!< 0x0F000000 */
  7171. #define FMC_BTRx_DATLAT FMC_BTRx_DATLAT_Msk /*!<DATLAT[3:0] bits (Data latency) */
  7172. #define FMC_BTRx_DATLAT_0 (0x1UL << FMC_BTRx_DATLAT_Pos) /*!< 0x01000000 */
  7173. #define FMC_BTRx_DATLAT_1 (0x2UL << FMC_BTRx_DATLAT_Pos) /*!< 0x02000000 */
  7174. #define FMC_BTRx_DATLAT_2 (0x4UL << FMC_BTRx_DATLAT_Pos) /*!< 0x04000000 */
  7175. #define FMC_BTRx_DATLAT_3 (0x8UL << FMC_BTRx_DATLAT_Pos) /*!< 0x08000000 */
  7176. #define FMC_BTRx_ACCMOD_Pos (28U)
  7177. #define FMC_BTRx_ACCMOD_Msk (0x3UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x30000000 */
  7178. #define FMC_BTRx_ACCMOD FMC_BTRx_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  7179. #define FMC_BTRx_ACCMOD_0 (0x1UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x10000000 */
  7180. #define FMC_BTRx_ACCMOD_1 (0x2UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x20000000 */
  7181. #define FMC_BTRx_DATAHLD_Pos (30U)
  7182. #define FMC_BTRx_DATAHLD_Msk (0x3UL << FMC_BTRx_DATAHLD_Pos) /*!< 0xC0000000 */
  7183. #define FMC_BTRx_DATAHLD FMC_BTRx_DATAHLD_Msk /*!<DATAHLD[1:0] bits (Data hold phase duration) */
  7184. #define FMC_BTRx_DATAHLD_0 (0x1UL << FMC_BTRx_DATAHLD_Pos) /*!< 0x40000000 */
  7185. #define FMC_BTRx_DATAHLD_1 (0x2UL << FMC_BTRx_DATAHLD_Pos) /*!< 0x80000000 */
  7186. /****************** Bit definition for FMC_BWTRx registers (x=1..4) *********/
  7187. #define FMC_BWTRx_ADDSET_Pos (0U)
  7188. #define FMC_BWTRx_ADDSET_Msk (0xFUL << FMC_BWTRx_ADDSET_Pos) /*!< 0x0000000F */
  7189. #define FMC_BWTRx_ADDSET FMC_BWTRx_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  7190. #define FMC_BWTRx_ADDSET_0 (0x1UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000001 */
  7191. #define FMC_BWTRx_ADDSET_1 (0x2UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000002 */
  7192. #define FMC_BWTRx_ADDSET_2 (0x4UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000004 */
  7193. #define FMC_BWTRx_ADDSET_3 (0x8UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000008 */
  7194. #define FMC_BWTRx_ADDHLD_Pos (4U)
  7195. #define FMC_BWTRx_ADDHLD_Msk (0xFUL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x000000F0 */
  7196. #define FMC_BWTRx_ADDHLD FMC_BWTRx_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  7197. #define FMC_BWTRx_ADDHLD_0 (0x1UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000010 */
  7198. #define FMC_BWTRx_ADDHLD_1 (0x2UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000020 */
  7199. #define FMC_BWTRx_ADDHLD_2 (0x4UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000040 */
  7200. #define FMC_BWTRx_ADDHLD_3 (0x8UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000080 */
  7201. #define FMC_BWTRx_DATAST_Pos (8U)
  7202. #define FMC_BWTRx_DATAST_Msk (0xFFUL << FMC_BWTRx_DATAST_Pos) /*!< 0x0000FF00 */
  7203. #define FMC_BWTRx_DATAST FMC_BWTRx_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  7204. #define FMC_BWTRx_DATAST_0 (0x01UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000100 */
  7205. #define FMC_BWTRx_DATAST_1 (0x02UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000200 */
  7206. #define FMC_BWTRx_DATAST_2 (0x04UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000400 */
  7207. #define FMC_BWTRx_DATAST_3 (0x08UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000800 */
  7208. #define FMC_BWTRx_DATAST_4 (0x10UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00001000 */
  7209. #define FMC_BWTRx_DATAST_5 (0x20UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00002000 */
  7210. #define FMC_BWTRx_DATAST_6 (0x40UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00004000 */
  7211. #define FMC_BWTRx_DATAST_7 (0x80UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00008000 */
  7212. #define FMC_BWTRx_BUSTURN_Pos (16U)
  7213. #define FMC_BWTRx_BUSTURN_Msk (0xFUL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x000F0000 */
  7214. #define FMC_BWTRx_BUSTURN FMC_BWTRx_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  7215. #define FMC_BWTRx_BUSTURN_0 (0x1UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00010000 */
  7216. #define FMC_BWTRx_BUSTURN_1 (0x2UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00020000 */
  7217. #define FMC_BWTRx_BUSTURN_2 (0x4UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00040000 */
  7218. #define FMC_BWTRx_BUSTURN_3 (0x8UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00080000 */
  7219. #define FMC_BWTRx_ACCMOD_Pos (28U)
  7220. #define FMC_BWTRx_ACCMOD_Msk (0x3UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x30000000 */
  7221. #define FMC_BWTRx_ACCMOD FMC_BWTRx_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  7222. #define FMC_BWTRx_ACCMOD_0 (0x1UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x10000000 */
  7223. #define FMC_BWTRx_ACCMOD_1 (0x2UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x20000000 */
  7224. #define FMC_BWTRx_DATAHLD_Pos (30U)
  7225. #define FMC_BWTRx_DATAHLD_Msk (0x3UL << FMC_BWTRx_DATAHLD_Pos) /*!< 0xC0000000 */
  7226. #define FMC_BWTRx_DATAHLD FMC_BWTRx_DATAHLD_Msk /*!<DATAHLD[1:0] bits (Data hold phase duration) */
  7227. #define FMC_BWTRx_DATAHLD_0 (0x1UL << FMC_BWTRx_DATAHLD_Pos) /*!< 0x40000000 */
  7228. #define FMC_BWTRx_DATAHLD_1 (0x2UL << FMC_BWTRx_DATAHLD_Pos) /*!< 0x80000000 */
  7229. /****************** Bit definition for FMC_PCSCNTR register ******************/
  7230. #define FMC_PCSCNTR_CSCOUNT_Pos (0U)
  7231. #define FMC_PCSCNTR_CSCOUNT_Msk (0xFFFFUL << FMC_PCSCNTR_CSCOUNT_Pos) /*!< 0x0000FFFF */
  7232. #define FMC_PCSCNTR_CSCOUNT FMC_PCSCNTR_CSCOUNT_Msk /*!<CSCOUNT[15:0] bits (Chip select counter) */
  7233. #define FMC_PCSCNTR_CNTB1EN_Pos (16U)
  7234. #define FMC_PCSCNTR_CNTB1EN_Msk (0x1UL << FMC_PCSCNTR_CNTB1EN_Pos) /*!< 0x00010000 */
  7235. #define FMC_PCSCNTR_CNTB1EN FMC_PCSCNTR_CNTB1EN_Msk /*!<Counter PSRAM/NOR Bank1_1 enable */
  7236. #define FMC_PCSCNTR_CNTB2EN_Pos (17U)
  7237. #define FMC_PCSCNTR_CNTB2EN_Msk (0x1UL << FMC_PCSCNTR_CNTB2EN_Pos) /*!< 0x00020000 */
  7238. #define FMC_PCSCNTR_CNTB2EN FMC_PCSCNTR_CNTB2EN_Msk /*!<Counter PSRAM/NOR Bank1_2 enable */
  7239. #define FMC_PCSCNTR_CNTB3EN_Pos (18U)
  7240. #define FMC_PCSCNTR_CNTB3EN_Msk (0x1UL << FMC_PCSCNTR_CNTB3EN_Pos) /*!< 0x00040000 */
  7241. #define FMC_PCSCNTR_CNTB3EN FMC_PCSCNTR_CNTB3EN_Msk /*!<Counter PSRAM/NOR Bank1_3 enable */
  7242. #define FMC_PCSCNTR_CNTB4EN_Pos (19U)
  7243. #define FMC_PCSCNTR_CNTB4EN_Msk (0x1UL << FMC_PCSCNTR_CNTB4EN_Pos) /*!< 0x00080000 */
  7244. #define FMC_PCSCNTR_CNTB4EN FMC_PCSCNTR_CNTB4EN_Msk /*!<Counter PSRAM/NOR Bank1_4 enable */
  7245. /****************** Bit definition for FMC_PCR register ********************/
  7246. #define FMC_PCR_PWAITEN_Pos (1U)
  7247. #define FMC_PCR_PWAITEN_Msk (0x1UL << FMC_PCR_PWAITEN_Pos) /*!< 0x00000002 */
  7248. #define FMC_PCR_PWAITEN FMC_PCR_PWAITEN_Msk /*!<Wait feature enable bit */
  7249. #define FMC_PCR_PBKEN_Pos (2U)
  7250. #define FMC_PCR_PBKEN_Msk (0x1UL << FMC_PCR_PBKEN_Pos) /*!< 0x00000004 */
  7251. #define FMC_PCR_PBKEN FMC_PCR_PBKEN_Msk /*!<NAND Flash memory bank enable bit */
  7252. #define FMC_PCR_PTYP_Pos (3U)
  7253. #define FMC_PCR_PTYP_Msk (0x1UL << FMC_PCR_PTYP_Pos) /*!< 0x00000008 */
  7254. #define FMC_PCR_PTYP FMC_PCR_PTYP_Msk /*!<Memory type */
  7255. #define FMC_PCR_PWID_Pos (4U)
  7256. #define FMC_PCR_PWID_Msk (0x3UL << FMC_PCR_PWID_Pos) /*!< 0x00000030 */
  7257. #define FMC_PCR_PWID FMC_PCR_PWID_Msk /*!<PWID[1:0] bits (NAND Flash databus width) */
  7258. #define FMC_PCR_PWID_0 (0x1UL << FMC_PCR_PWID_Pos) /*!< 0x00000010 */
  7259. #define FMC_PCR_PWID_1 (0x2UL << FMC_PCR_PWID_Pos) /*!< 0x00000020 */
  7260. #define FMC_PCR_ECCEN_Pos (6U)
  7261. #define FMC_PCR_ECCEN_Msk (0x1UL << FMC_PCR_ECCEN_Pos) /*!< 0x00000040 */
  7262. #define FMC_PCR_ECCEN FMC_PCR_ECCEN_Msk /*!<ECC computation logic enable bit */
  7263. #define FMC_PCR_TCLR_Pos (9U)
  7264. #define FMC_PCR_TCLR_Msk (0xFUL << FMC_PCR_TCLR_Pos) /*!< 0x00001E00 */
  7265. #define FMC_PCR_TCLR FMC_PCR_TCLR_Msk /*!<TCLR[3:0] bits (CLE to RE delay) */
  7266. #define FMC_PCR_TCLR_0 (0x1UL << FMC_PCR_TCLR_Pos) /*!< 0x00000200 */
  7267. #define FMC_PCR_TCLR_1 (0x2UL << FMC_PCR_TCLR_Pos) /*!< 0x00000400 */
  7268. #define FMC_PCR_TCLR_2 (0x4UL << FMC_PCR_TCLR_Pos) /*!< 0x00000800 */
  7269. #define FMC_PCR_TCLR_3 (0x8UL << FMC_PCR_TCLR_Pos) /*!< 0x00001000 */
  7270. #define FMC_PCR_TAR_Pos (13U)
  7271. #define FMC_PCR_TAR_Msk (0xFUL << FMC_PCR_TAR_Pos) /*!< 0x0001E000 */
  7272. #define FMC_PCR_TAR FMC_PCR_TAR_Msk /*!<TAR[3:0] bits (ALE to RE delay) */
  7273. #define FMC_PCR_TAR_0 (0x1UL << FMC_PCR_TAR_Pos) /*!< 0x00002000 */
  7274. #define FMC_PCR_TAR_1 (0x2UL << FMC_PCR_TAR_Pos) /*!< 0x00004000 */
  7275. #define FMC_PCR_TAR_2 (0x4UL << FMC_PCR_TAR_Pos) /*!< 0x00008000 */
  7276. #define FMC_PCR_TAR_3 (0x8UL << FMC_PCR_TAR_Pos) /*!< 0x00010000 */
  7277. #define FMC_PCR_ECCPS_Pos (17U)
  7278. #define FMC_PCR_ECCPS_Msk (0x7UL << FMC_PCR_ECCPS_Pos) /*!< 0x000E0000 */
  7279. #define FMC_PCR_ECCPS FMC_PCR_ECCPS_Msk /*!<ECCPS[1:0] bits (ECC page size) */
  7280. #define FMC_PCR_ECCPS_0 (0x1UL << FMC_PCR_ECCPS_Pos) /*!< 0x00020000 */
  7281. #define FMC_PCR_ECCPS_1 (0x2UL << FMC_PCR_ECCPS_Pos) /*!< 0x00040000 */
  7282. #define FMC_PCR_ECCPS_2 (0x4UL << FMC_PCR_ECCPS_Pos) /*!< 0x00080000 */
  7283. /******************* Bit definition for FMC_SR register ********************/
  7284. #define FMC_SR_IRS_Pos (0U)
  7285. #define FMC_SR_IRS_Msk (0x1UL << FMC_SR_IRS_Pos) /*!< 0x00000001 */
  7286. #define FMC_SR_IRS FMC_SR_IRS_Msk /*!<Interrupt Rising Edge status */
  7287. #define FMC_SR_ILS_Pos (1U)
  7288. #define FMC_SR_ILS_Msk (0x1UL << FMC_SR_ILS_Pos) /*!< 0x00000002 */
  7289. #define FMC_SR_ILS FMC_SR_ILS_Msk /*!<Interrupt Level status */
  7290. #define FMC_SR_IFS_Pos (2U)
  7291. #define FMC_SR_IFS_Msk (0x1UL << FMC_SR_IFS_Pos) /*!< 0x00000004 */
  7292. #define FMC_SR_IFS FMC_SR_IFS_Msk /*!<Interrupt Falling Edge status */
  7293. #define FMC_SR_IREN_Pos (3U)
  7294. #define FMC_SR_IREN_Msk (0x1UL << FMC_SR_IREN_Pos) /*!< 0x00000008 */
  7295. #define FMC_SR_IREN FMC_SR_IREN_Msk /*!<Interrupt Rising Edge detection Enable bit */
  7296. #define FMC_SR_ILEN_Pos (4U)
  7297. #define FMC_SR_ILEN_Msk (0x1UL << FMC_SR_ILEN_Pos) /*!< 0x00000010 */
  7298. #define FMC_SR_ILEN FMC_SR_ILEN_Msk /*!<Interrupt Level detection Enable bit */
  7299. #define FMC_SR_IFEN_Pos (5U)
  7300. #define FMC_SR_IFEN_Msk (0x1UL << FMC_SR_IFEN_Pos) /*!< 0x00000020 */
  7301. #define FMC_SR_IFEN FMC_SR_IFEN_Msk /*!<Interrupt Falling Edge detection Enable bit */
  7302. #define FMC_SR_FEMPT_Pos (6U)
  7303. #define FMC_SR_FEMPT_Msk (0x1UL << FMC_SR_FEMPT_Pos) /*!< 0x00000040 */
  7304. #define FMC_SR_FEMPT FMC_SR_FEMPT_Msk /*!<FIFO empty */
  7305. /****************** Bit definition for FMC_PMEM register ******************/
  7306. #define FMC_PMEM_MEMSET_Pos (0U)
  7307. #define FMC_PMEM_MEMSET_Msk (0xFFUL << FMC_PMEM_MEMSET_Pos) /*!< 0x000000FF */
  7308. #define FMC_PMEM_MEMSET FMC_PMEM_MEMSET_Msk /*!<MEMSET[7:0] bits (Common memory setup time) */
  7309. #define FMC_PMEM_MEMSET_0 (0x01UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000001 */
  7310. #define FMC_PMEM_MEMSET_1 (0x02UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000002 */
  7311. #define FMC_PMEM_MEMSET_2 (0x04UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000004 */
  7312. #define FMC_PMEM_MEMSET_3 (0x08UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000008 */
  7313. #define FMC_PMEM_MEMSET_4 (0x10UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000010 */
  7314. #define FMC_PMEM_MEMSET_5 (0x20UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000020 */
  7315. #define FMC_PMEM_MEMSET_6 (0x40UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000040 */
  7316. #define FMC_PMEM_MEMSET_7 (0x80UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000080 */
  7317. #define FMC_PMEM_MEMWAIT_Pos (8U)
  7318. #define FMC_PMEM_MEMWAIT_Msk (0xFFUL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x0000FF00 */
  7319. #define FMC_PMEM_MEMWAIT FMC_PMEM_MEMWAIT_Msk /*!<MEMWAIT[7:0] bits (Common memory wait time) */
  7320. #define FMC_PMEM_MEMWAIT_0 (0x01UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000100 */
  7321. #define FMC_PMEM_MEMWAIT_1 (0x02UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000200 */
  7322. #define FMC_PMEM_MEMWAIT_2 (0x04UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000400 */
  7323. #define FMC_PMEM_MEMWAIT_3 (0x08UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000800 */
  7324. #define FMC_PMEM_MEMWAIT_4 (0x10UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00001000 */
  7325. #define FMC_PMEM_MEMWAIT_5 (0x20UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00002000 */
  7326. #define FMC_PMEM_MEMWAIT_6 (0x40UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00004000 */
  7327. #define FMC_PMEM_MEMWAIT_7 (0x80UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00008000 */
  7328. #define FMC_PMEM_MEMHOLD_Pos (16U)
  7329. #define FMC_PMEM_MEMHOLD_Msk (0xFFUL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00FF0000 */
  7330. #define FMC_PMEM_MEMHOLD FMC_PMEM_MEMHOLD_Msk /*!<MEMHOLD[7:0] bits (Common memory hold time) */
  7331. #define FMC_PMEM_MEMHOLD_0 (0x01UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00010000 */
  7332. #define FMC_PMEM_MEMHOLD_1 (0x02UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00020000 */
  7333. #define FMC_PMEM_MEMHOLD_2 (0x04UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00040000 */
  7334. #define FMC_PMEM_MEMHOLD_3 (0x08UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00080000 */
  7335. #define FMC_PMEM_MEMHOLD_4 (0x10UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00100000 */
  7336. #define FMC_PMEM_MEMHOLD_5 (0x20UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00200000 */
  7337. #define FMC_PMEM_MEMHOLD_6 (0x40UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00400000 */
  7338. #define FMC_PMEM_MEMHOLD_7 (0x80UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00800000 */
  7339. #define FMC_PMEM_MEMHIZ_Pos (24U)
  7340. #define FMC_PMEM_MEMHIZ_Msk (0xFFUL << FMC_PMEM_MEMHIZ_Pos) /*!< 0xFF000000 */
  7341. #define FMC_PMEM_MEMHIZ FMC_PMEM_MEMHIZ_Msk /*!<MEMHIZ[7:0] bits (Common memory databus HiZ time) */
  7342. #define FMC_PMEM_MEMHIZ_0 (0x01UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x01000000 */
  7343. #define FMC_PMEM_MEMHIZ_1 (0x02UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x02000000 */
  7344. #define FMC_PMEM_MEMHIZ_2 (0x04UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x04000000 */
  7345. #define FMC_PMEM_MEMHIZ_3 (0x08UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x08000000 */
  7346. #define FMC_PMEM_MEMHIZ_4 (0x10UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x10000000 */
  7347. #define FMC_PMEM_MEMHIZ_5 (0x20UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x20000000 */
  7348. #define FMC_PMEM_MEMHIZ_6 (0x40UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x40000000 */
  7349. #define FMC_PMEM_MEMHIZ_7 (0x80UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x80000000 */
  7350. /****************** Bit definition for FMC_PATT register *******************/
  7351. #define FMC_PATT_ATTSET_Pos (0U)
  7352. #define FMC_PATT_ATTSET_Msk (0xFFUL << FMC_PATT_ATTSET_Pos) /*!< 0x000000FF */
  7353. #define FMC_PATT_ATTSET FMC_PATT_ATTSET_Msk /*!<ATTSET[7:0] bits (Attribute memory setup time) */
  7354. #define FMC_PATT_ATTSET_0 (0x01UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000001 */
  7355. #define FMC_PATT_ATTSET_1 (0x02UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000002 */
  7356. #define FMC_PATT_ATTSET_2 (0x04UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000004 */
  7357. #define FMC_PATT_ATTSET_3 (0x08UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000008 */
  7358. #define FMC_PATT_ATTSET_4 (0x10UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000010 */
  7359. #define FMC_PATT_ATTSET_5 (0x20UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000020 */
  7360. #define FMC_PATT_ATTSET_6 (0x40UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000040 */
  7361. #define FMC_PATT_ATTSET_7 (0x80UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000080 */
  7362. #define FMC_PATT_ATTWAIT_Pos (8U)
  7363. #define FMC_PATT_ATTWAIT_Msk (0xFFUL << FMC_PATT_ATTWAIT_Pos) /*!< 0x0000FF00 */
  7364. #define FMC_PATT_ATTWAIT FMC_PATT_ATTWAIT_Msk /*!<ATTWAIT[7:0] bits (Attribute memory wait time) */
  7365. #define FMC_PATT_ATTWAIT_0 (0x01UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000100 */
  7366. #define FMC_PATT_ATTWAIT_1 (0x02UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000200 */
  7367. #define FMC_PATT_ATTWAIT_2 (0x04UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000400 */
  7368. #define FMC_PATT_ATTWAIT_3 (0x08UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000800 */
  7369. #define FMC_PATT_ATTWAIT_4 (0x10UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00001000 */
  7370. #define FMC_PATT_ATTWAIT_5 (0x20UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00002000 */
  7371. #define FMC_PATT_ATTWAIT_6 (0x40UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00004000 */
  7372. #define FMC_PATT_ATTWAIT_7 (0x80UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00008000 */
  7373. #define FMC_PATT_ATTHOLD_Pos (16U)
  7374. #define FMC_PATT_ATTHOLD_Msk (0xFFUL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00FF0000 */
  7375. #define FMC_PATT_ATTHOLD FMC_PATT_ATTHOLD_Msk /*!<ATTHOLD[7:0] bits (Attribute memory hold time) */
  7376. #define FMC_PATT_ATTHOLD_0 (0x01UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00010000 */
  7377. #define FMC_PATT_ATTHOLD_1 (0x02UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00020000 */
  7378. #define FMC_PATT_ATTHOLD_2 (0x04UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00040000 */
  7379. #define FMC_PATT_ATTHOLD_3 (0x08UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00080000 */
  7380. #define FMC_PATT_ATTHOLD_4 (0x10UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00100000 */
  7381. #define FMC_PATT_ATTHOLD_5 (0x20UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00200000 */
  7382. #define FMC_PATT_ATTHOLD_6 (0x40UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00400000 */
  7383. #define FMC_PATT_ATTHOLD_7 (0x80UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00800000 */
  7384. #define FMC_PATT_ATTHIZ_Pos (24U)
  7385. #define FMC_PATT_ATTHIZ_Msk (0xFFUL << FMC_PATT_ATTHIZ_Pos) /*!< 0xFF000000 */
  7386. #define FMC_PATT_ATTHIZ FMC_PATT_ATTHIZ_Msk /*!<ATTHIZ[7:0] bits (Attribute memory databus HiZ time) */
  7387. #define FMC_PATT_ATTHIZ_0 (0x01UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x01000000 */
  7388. #define FMC_PATT_ATTHIZ_1 (0x02UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x02000000 */
  7389. #define FMC_PATT_ATTHIZ_2 (0x04UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x04000000 */
  7390. #define FMC_PATT_ATTHIZ_3 (0x08UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x08000000 */
  7391. #define FMC_PATT_ATTHIZ_4 (0x10UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x10000000 */
  7392. #define FMC_PATT_ATTHIZ_5 (0x20UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x20000000 */
  7393. #define FMC_PATT_ATTHIZ_6 (0x40UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x40000000 */
  7394. #define FMC_PATT_ATTHIZ_7 (0x80UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x80000000 */
  7395. /****************** Bit definition for FMC_ECCR register *******************/
  7396. #define FMC_ECCR_ECC_Pos (0U)
  7397. #define FMC_ECCR_ECC_Msk (0xFFFFFFFFUL << FMC_ECCR_ECC_Pos) /*!< 0xFFFFFFFF */
  7398. #define FMC_ECCR_ECC FMC_ECCR_ECC_Msk /*!<ECC result */
  7399. /******************************************************************************/
  7400. /* */
  7401. /* General Purpose IOs (GPIO) */
  7402. /* */
  7403. /******************************************************************************/
  7404. /****************** Bits definition for GPIO_MODER register *****************/
  7405. #define GPIO_MODER_MODE0_Pos (0U)
  7406. #define GPIO_MODER_MODE0_Msk (0x3UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000003 */
  7407. #define GPIO_MODER_MODE0 GPIO_MODER_MODE0_Msk
  7408. #define GPIO_MODER_MODE0_0 (0x1UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000001 */
  7409. #define GPIO_MODER_MODE0_1 (0x2UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000002 */
  7410. #define GPIO_MODER_MODE1_Pos (2U)
  7411. #define GPIO_MODER_MODE1_Msk (0x3UL << GPIO_MODER_MODE1_Pos) /*!< 0x0000000C */
  7412. #define GPIO_MODER_MODE1 GPIO_MODER_MODE1_Msk
  7413. #define GPIO_MODER_MODE1_0 (0x1UL << GPIO_MODER_MODE1_Pos) /*!< 0x00000004 */
  7414. #define GPIO_MODER_MODE1_1 (0x2UL << GPIO_MODER_MODE1_Pos) /*!< 0x00000008 */
  7415. #define GPIO_MODER_MODE2_Pos (4U)
  7416. #define GPIO_MODER_MODE2_Msk (0x3UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000030 */
  7417. #define GPIO_MODER_MODE2 GPIO_MODER_MODE2_Msk
  7418. #define GPIO_MODER_MODE2_0 (0x1UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000010 */
  7419. #define GPIO_MODER_MODE2_1 (0x2UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000020 */
  7420. #define GPIO_MODER_MODE3_Pos (6U)
  7421. #define GPIO_MODER_MODE3_Msk (0x3UL << GPIO_MODER_MODE3_Pos) /*!< 0x000000C0 */
  7422. #define GPIO_MODER_MODE3 GPIO_MODER_MODE3_Msk
  7423. #define GPIO_MODER_MODE3_0 (0x1UL << GPIO_MODER_MODE3_Pos) /*!< 0x00000040 */
  7424. #define GPIO_MODER_MODE3_1 (0x2UL << GPIO_MODER_MODE3_Pos) /*!< 0x00000080 */
  7425. #define GPIO_MODER_MODE4_Pos (8U)
  7426. #define GPIO_MODER_MODE4_Msk (0x3UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000300 */
  7427. #define GPIO_MODER_MODE4 GPIO_MODER_MODE4_Msk
  7428. #define GPIO_MODER_MODE4_0 (0x1UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000100 */
  7429. #define GPIO_MODER_MODE4_1 (0x2UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000200 */
  7430. #define GPIO_MODER_MODE5_Pos (10U)
  7431. #define GPIO_MODER_MODE5_Msk (0x3UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000C00 */
  7432. #define GPIO_MODER_MODE5 GPIO_MODER_MODE5_Msk
  7433. #define GPIO_MODER_MODE5_0 (0x1UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000400 */
  7434. #define GPIO_MODER_MODE5_1 (0x2UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000800 */
  7435. #define GPIO_MODER_MODE6_Pos (12U)
  7436. #define GPIO_MODER_MODE6_Msk (0x3UL << GPIO_MODER_MODE6_Pos) /*!< 0x00003000 */
  7437. #define GPIO_MODER_MODE6 GPIO_MODER_MODE6_Msk
  7438. #define GPIO_MODER_MODE6_0 (0x1UL << GPIO_MODER_MODE6_Pos) /*!< 0x00001000 */
  7439. #define GPIO_MODER_MODE6_1 (0x2UL << GPIO_MODER_MODE6_Pos) /*!< 0x00002000 */
  7440. #define GPIO_MODER_MODE7_Pos (14U)
  7441. #define GPIO_MODER_MODE7_Msk (0x3UL << GPIO_MODER_MODE7_Pos) /*!< 0x0000C000 */
  7442. #define GPIO_MODER_MODE7 GPIO_MODER_MODE7_Msk
  7443. #define GPIO_MODER_MODE7_0 (0x1UL << GPIO_MODER_MODE7_Pos) /*!< 0x00004000 */
  7444. #define GPIO_MODER_MODE7_1 (0x2UL << GPIO_MODER_MODE7_Pos) /*!< 0x00008000 */
  7445. #define GPIO_MODER_MODE8_Pos (16U)
  7446. #define GPIO_MODER_MODE8_Msk (0x3UL << GPIO_MODER_MODE8_Pos) /*!< 0x00030000 */
  7447. #define GPIO_MODER_MODE8 GPIO_MODER_MODE8_Msk
  7448. #define GPIO_MODER_MODE8_0 (0x1UL << GPIO_MODER_MODE8_Pos) /*!< 0x00010000 */
  7449. #define GPIO_MODER_MODE8_1 (0x2UL << GPIO_MODER_MODE8_Pos) /*!< 0x00020000 */
  7450. #define GPIO_MODER_MODE9_Pos (18U)
  7451. #define GPIO_MODER_MODE9_Msk (0x3UL << GPIO_MODER_MODE9_Pos) /*!< 0x000C0000 */
  7452. #define GPIO_MODER_MODE9 GPIO_MODER_MODE9_Msk
  7453. #define GPIO_MODER_MODE9_0 (0x1UL << GPIO_MODER_MODE9_Pos) /*!< 0x00040000 */
  7454. #define GPIO_MODER_MODE9_1 (0x2UL << GPIO_MODER_MODE9_Pos) /*!< 0x00080000 */
  7455. #define GPIO_MODER_MODE10_Pos (20U)
  7456. #define GPIO_MODER_MODE10_Msk (0x3UL << GPIO_MODER_MODE10_Pos) /*!< 0x00300000 */
  7457. #define GPIO_MODER_MODE10 GPIO_MODER_MODE10_Msk
  7458. #define GPIO_MODER_MODE10_0 (0x1UL << GPIO_MODER_MODE10_Pos) /*!< 0x00100000 */
  7459. #define GPIO_MODER_MODE10_1 (0x2UL << GPIO_MODER_MODE10_Pos) /*!< 0x00200000 */
  7460. #define GPIO_MODER_MODE11_Pos (22U)
  7461. #define GPIO_MODER_MODE11_Msk (0x3UL << GPIO_MODER_MODE11_Pos) /*!< 0x00C00000 */
  7462. #define GPIO_MODER_MODE11 GPIO_MODER_MODE11_Msk
  7463. #define GPIO_MODER_MODE11_0 (0x1UL << GPIO_MODER_MODE11_Pos) /*!< 0x00400000 */
  7464. #define GPIO_MODER_MODE11_1 (0x2UL << GPIO_MODER_MODE11_Pos) /*!< 0x00800000 */
  7465. #define GPIO_MODER_MODE12_Pos (24U)
  7466. #define GPIO_MODER_MODE12_Msk (0x3UL << GPIO_MODER_MODE12_Pos) /*!< 0x03000000 */
  7467. #define GPIO_MODER_MODE12 GPIO_MODER_MODE12_Msk
  7468. #define GPIO_MODER_MODE12_0 (0x1UL << GPIO_MODER_MODE12_Pos) /*!< 0x01000000 */
  7469. #define GPIO_MODER_MODE12_1 (0x2UL << GPIO_MODER_MODE12_Pos) /*!< 0x02000000 */
  7470. #define GPIO_MODER_MODE13_Pos (26U)
  7471. #define GPIO_MODER_MODE13_Msk (0x3UL << GPIO_MODER_MODE13_Pos) /*!< 0x0C000000 */
  7472. #define GPIO_MODER_MODE13 GPIO_MODER_MODE13_Msk
  7473. #define GPIO_MODER_MODE13_0 (0x1UL << GPIO_MODER_MODE13_Pos) /*!< 0x04000000 */
  7474. #define GPIO_MODER_MODE13_1 (0x2UL << GPIO_MODER_MODE13_Pos) /*!< 0x08000000 */
  7475. #define GPIO_MODER_MODE14_Pos (28U)
  7476. #define GPIO_MODER_MODE14_Msk (0x3UL << GPIO_MODER_MODE14_Pos) /*!< 0x30000000 */
  7477. #define GPIO_MODER_MODE14 GPIO_MODER_MODE14_Msk
  7478. #define GPIO_MODER_MODE14_0 (0x1UL << GPIO_MODER_MODE14_Pos) /*!< 0x10000000 */
  7479. #define GPIO_MODER_MODE14_1 (0x2UL << GPIO_MODER_MODE14_Pos) /*!< 0x20000000 */
  7480. #define GPIO_MODER_MODE15_Pos (30U)
  7481. #define GPIO_MODER_MODE15_Msk (0x3UL << GPIO_MODER_MODE15_Pos) /*!< 0xC0000000 */
  7482. #define GPIO_MODER_MODE15 GPIO_MODER_MODE15_Msk
  7483. #define GPIO_MODER_MODE15_0 (0x1UL << GPIO_MODER_MODE15_Pos) /*!< 0x40000000 */
  7484. #define GPIO_MODER_MODE15_1 (0x2UL << GPIO_MODER_MODE15_Pos) /*!< 0x80000000 */
  7485. /****************** Bits definition for GPIO_OTYPER register ****************/
  7486. #define GPIO_OTYPER_OT0_Pos (0U)
  7487. #define GPIO_OTYPER_OT0_Msk (0x1UL << GPIO_OTYPER_OT0_Pos) /*!< 0x00000001 */
  7488. #define GPIO_OTYPER_OT0 GPIO_OTYPER_OT0_Msk
  7489. #define GPIO_OTYPER_OT1_Pos (1U)
  7490. #define GPIO_OTYPER_OT1_Msk (0x1UL << GPIO_OTYPER_OT1_Pos) /*!< 0x00000002 */
  7491. #define GPIO_OTYPER_OT1 GPIO_OTYPER_OT1_Msk
  7492. #define GPIO_OTYPER_OT2_Pos (2U)
  7493. #define GPIO_OTYPER_OT2_Msk (0x1UL << GPIO_OTYPER_OT2_Pos) /*!< 0x00000004 */
  7494. #define GPIO_OTYPER_OT2 GPIO_OTYPER_OT2_Msk
  7495. #define GPIO_OTYPER_OT3_Pos (3U)
  7496. #define GPIO_OTYPER_OT3_Msk (0x1UL << GPIO_OTYPER_OT3_Pos) /*!< 0x00000008 */
  7497. #define GPIO_OTYPER_OT3 GPIO_OTYPER_OT3_Msk
  7498. #define GPIO_OTYPER_OT4_Pos (4U)
  7499. #define GPIO_OTYPER_OT4_Msk (0x1UL << GPIO_OTYPER_OT4_Pos) /*!< 0x00000010 */
  7500. #define GPIO_OTYPER_OT4 GPIO_OTYPER_OT4_Msk
  7501. #define GPIO_OTYPER_OT5_Pos (5U)
  7502. #define GPIO_OTYPER_OT5_Msk (0x1UL << GPIO_OTYPER_OT5_Pos) /*!< 0x00000020 */
  7503. #define GPIO_OTYPER_OT5 GPIO_OTYPER_OT5_Msk
  7504. #define GPIO_OTYPER_OT6_Pos (6U)
  7505. #define GPIO_OTYPER_OT6_Msk (0x1UL << GPIO_OTYPER_OT6_Pos) /*!< 0x00000040 */
  7506. #define GPIO_OTYPER_OT6 GPIO_OTYPER_OT6_Msk
  7507. #define GPIO_OTYPER_OT7_Pos (7U)
  7508. #define GPIO_OTYPER_OT7_Msk (0x1UL << GPIO_OTYPER_OT7_Pos) /*!< 0x00000080 */
  7509. #define GPIO_OTYPER_OT7 GPIO_OTYPER_OT7_Msk
  7510. #define GPIO_OTYPER_OT8_Pos (8U)
  7511. #define GPIO_OTYPER_OT8_Msk (0x1UL << GPIO_OTYPER_OT8_Pos) /*!< 0x00000100 */
  7512. #define GPIO_OTYPER_OT8 GPIO_OTYPER_OT8_Msk
  7513. #define GPIO_OTYPER_OT9_Pos (9U)
  7514. #define GPIO_OTYPER_OT9_Msk (0x1UL << GPIO_OTYPER_OT9_Pos) /*!< 0x00000200 */
  7515. #define GPIO_OTYPER_OT9 GPIO_OTYPER_OT9_Msk
  7516. #define GPIO_OTYPER_OT10_Pos (10U)
  7517. #define GPIO_OTYPER_OT10_Msk (0x1UL << GPIO_OTYPER_OT10_Pos) /*!< 0x00000400 */
  7518. #define GPIO_OTYPER_OT10 GPIO_OTYPER_OT10_Msk
  7519. #define GPIO_OTYPER_OT11_Pos (11U)
  7520. #define GPIO_OTYPER_OT11_Msk (0x1UL << GPIO_OTYPER_OT11_Pos) /*!< 0x00000800 */
  7521. #define GPIO_OTYPER_OT11 GPIO_OTYPER_OT11_Msk
  7522. #define GPIO_OTYPER_OT12_Pos (12U)
  7523. #define GPIO_OTYPER_OT12_Msk (0x1UL << GPIO_OTYPER_OT12_Pos) /*!< 0x00001000 */
  7524. #define GPIO_OTYPER_OT12 GPIO_OTYPER_OT12_Msk
  7525. #define GPIO_OTYPER_OT13_Pos (13U)
  7526. #define GPIO_OTYPER_OT13_Msk (0x1UL << GPIO_OTYPER_OT13_Pos) /*!< 0x00002000 */
  7527. #define GPIO_OTYPER_OT13 GPIO_OTYPER_OT13_Msk
  7528. #define GPIO_OTYPER_OT14_Pos (14U)
  7529. #define GPIO_OTYPER_OT14_Msk (0x1UL << GPIO_OTYPER_OT14_Pos) /*!< 0x00004000 */
  7530. #define GPIO_OTYPER_OT14 GPIO_OTYPER_OT14_Msk
  7531. #define GPIO_OTYPER_OT15_Pos (15U)
  7532. #define GPIO_OTYPER_OT15_Msk (0x1UL << GPIO_OTYPER_OT15_Pos) /*!< 0x00008000 */
  7533. #define GPIO_OTYPER_OT15 GPIO_OTYPER_OT15_Msk
  7534. /****************** Bits definition for GPIO_OSPEEDR register ***************/
  7535. #define GPIO_OSPEEDR_OSPEED0_Pos (0U)
  7536. #define GPIO_OSPEEDR_OSPEED0_Msk (0x3UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000003 */
  7537. #define GPIO_OSPEEDR_OSPEED0 GPIO_OSPEEDR_OSPEED0_Msk
  7538. #define GPIO_OSPEEDR_OSPEED0_0 (0x1UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000001 */
  7539. #define GPIO_OSPEEDR_OSPEED0_1 (0x2UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000002 */
  7540. #define GPIO_OSPEEDR_OSPEED1_Pos (2U)
  7541. #define GPIO_OSPEEDR_OSPEED1_Msk (0x3UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x0000000C */
  7542. #define GPIO_OSPEEDR_OSPEED1 GPIO_OSPEEDR_OSPEED1_Msk
  7543. #define GPIO_OSPEEDR_OSPEED1_0 (0x1UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000004 */
  7544. #define GPIO_OSPEEDR_OSPEED1_1 (0x2UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000008 */
  7545. #define GPIO_OSPEEDR_OSPEED2_Pos (4U)
  7546. #define GPIO_OSPEEDR_OSPEED2_Msk (0x3UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000030 */
  7547. #define GPIO_OSPEEDR_OSPEED2 GPIO_OSPEEDR_OSPEED2_Msk
  7548. #define GPIO_OSPEEDR_OSPEED2_0 (0x1UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000010 */
  7549. #define GPIO_OSPEEDR_OSPEED2_1 (0x2UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000020 */
  7550. #define GPIO_OSPEEDR_OSPEED3_Pos (6U)
  7551. #define GPIO_OSPEEDR_OSPEED3_Msk (0x3UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x000000C0 */
  7552. #define GPIO_OSPEEDR_OSPEED3 GPIO_OSPEEDR_OSPEED3_Msk
  7553. #define GPIO_OSPEEDR_OSPEED3_0 (0x1UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000040 */
  7554. #define GPIO_OSPEEDR_OSPEED3_1 (0x2UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000080 */
  7555. #define GPIO_OSPEEDR_OSPEED4_Pos (8U)
  7556. #define GPIO_OSPEEDR_OSPEED4_Msk (0x3UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000300 */
  7557. #define GPIO_OSPEEDR_OSPEED4 GPIO_OSPEEDR_OSPEED4_Msk
  7558. #define GPIO_OSPEEDR_OSPEED4_0 (0x1UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000100 */
  7559. #define GPIO_OSPEEDR_OSPEED4_1 (0x2UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000200 */
  7560. #define GPIO_OSPEEDR_OSPEED5_Pos (10U)
  7561. #define GPIO_OSPEEDR_OSPEED5_Msk (0x3UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000C00 */
  7562. #define GPIO_OSPEEDR_OSPEED5 GPIO_OSPEEDR_OSPEED5_Msk
  7563. #define GPIO_OSPEEDR_OSPEED5_0 (0x1UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000400 */
  7564. #define GPIO_OSPEEDR_OSPEED5_1 (0x2UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000800 */
  7565. #define GPIO_OSPEEDR_OSPEED6_Pos (12U)
  7566. #define GPIO_OSPEEDR_OSPEED6_Msk (0x3UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00003000 */
  7567. #define GPIO_OSPEEDR_OSPEED6 GPIO_OSPEEDR_OSPEED6_Msk
  7568. #define GPIO_OSPEEDR_OSPEED6_0 (0x1UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00001000 */
  7569. #define GPIO_OSPEEDR_OSPEED6_1 (0x2UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00002000 */
  7570. #define GPIO_OSPEEDR_OSPEED7_Pos (14U)
  7571. #define GPIO_OSPEEDR_OSPEED7_Msk (0x3UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x0000C000 */
  7572. #define GPIO_OSPEEDR_OSPEED7 GPIO_OSPEEDR_OSPEED7_Msk
  7573. #define GPIO_OSPEEDR_OSPEED7_0 (0x1UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00004000 */
  7574. #define GPIO_OSPEEDR_OSPEED7_1 (0x2UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00008000 */
  7575. #define GPIO_OSPEEDR_OSPEED8_Pos (16U)
  7576. #define GPIO_OSPEEDR_OSPEED8_Msk (0x3UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00030000 */
  7577. #define GPIO_OSPEEDR_OSPEED8 GPIO_OSPEEDR_OSPEED8_Msk
  7578. #define GPIO_OSPEEDR_OSPEED8_0 (0x1UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00010000 */
  7579. #define GPIO_OSPEEDR_OSPEED8_1 (0x2UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00020000 */
  7580. #define GPIO_OSPEEDR_OSPEED9_Pos (18U)
  7581. #define GPIO_OSPEEDR_OSPEED9_Msk (0x3UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x000C0000 */
  7582. #define GPIO_OSPEEDR_OSPEED9 GPIO_OSPEEDR_OSPEED9_Msk
  7583. #define GPIO_OSPEEDR_OSPEED9_0 (0x1UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00040000 */
  7584. #define GPIO_OSPEEDR_OSPEED9_1 (0x2UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00080000 */
  7585. #define GPIO_OSPEEDR_OSPEED10_Pos (20U)
  7586. #define GPIO_OSPEEDR_OSPEED10_Msk (0x3UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00300000 */
  7587. #define GPIO_OSPEEDR_OSPEED10 GPIO_OSPEEDR_OSPEED10_Msk
  7588. #define GPIO_OSPEEDR_OSPEED10_0 (0x1UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00100000 */
  7589. #define GPIO_OSPEEDR_OSPEED10_1 (0x2UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00200000 */
  7590. #define GPIO_OSPEEDR_OSPEED11_Pos (22U)
  7591. #define GPIO_OSPEEDR_OSPEED11_Msk (0x3UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00C00000 */
  7592. #define GPIO_OSPEEDR_OSPEED11 GPIO_OSPEEDR_OSPEED11_Msk
  7593. #define GPIO_OSPEEDR_OSPEED11_0 (0x1UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00400000 */
  7594. #define GPIO_OSPEEDR_OSPEED11_1 (0x2UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00800000 */
  7595. #define GPIO_OSPEEDR_OSPEED12_Pos (24U)
  7596. #define GPIO_OSPEEDR_OSPEED12_Msk (0x3UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x03000000 */
  7597. #define GPIO_OSPEEDR_OSPEED12 GPIO_OSPEEDR_OSPEED12_Msk
  7598. #define GPIO_OSPEEDR_OSPEED12_0 (0x1UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x01000000 */
  7599. #define GPIO_OSPEEDR_OSPEED12_1 (0x2UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x02000000 */
  7600. #define GPIO_OSPEEDR_OSPEED13_Pos (26U)
  7601. #define GPIO_OSPEEDR_OSPEED13_Msk (0x3UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x0C000000 */
  7602. #define GPIO_OSPEEDR_OSPEED13 GPIO_OSPEEDR_OSPEED13_Msk
  7603. #define GPIO_OSPEEDR_OSPEED13_0 (0x1UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x04000000 */
  7604. #define GPIO_OSPEEDR_OSPEED13_1 (0x2UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x08000000 */
  7605. #define GPIO_OSPEEDR_OSPEED14_Pos (28U)
  7606. #define GPIO_OSPEEDR_OSPEED14_Msk (0x3UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x30000000 */
  7607. #define GPIO_OSPEEDR_OSPEED14 GPIO_OSPEEDR_OSPEED14_Msk
  7608. #define GPIO_OSPEEDR_OSPEED14_0 (0x1UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x10000000 */
  7609. #define GPIO_OSPEEDR_OSPEED14_1 (0x2UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x20000000 */
  7610. #define GPIO_OSPEEDR_OSPEED15_Pos (30U)
  7611. #define GPIO_OSPEEDR_OSPEED15_Msk (0x3UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0xC0000000 */
  7612. #define GPIO_OSPEEDR_OSPEED15 GPIO_OSPEEDR_OSPEED15_Msk
  7613. #define GPIO_OSPEEDR_OSPEED15_0 (0x1UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x40000000 */
  7614. #define GPIO_OSPEEDR_OSPEED15_1 (0x2UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x80000000 */
  7615. /****************** Bits definition for GPIO_PUPDR register *****************/
  7616. #define GPIO_PUPDR_PUPD0_Pos (0U)
  7617. #define GPIO_PUPDR_PUPD0_Msk (0x3UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000003 */
  7618. #define GPIO_PUPDR_PUPD0 GPIO_PUPDR_PUPD0_Msk
  7619. #define GPIO_PUPDR_PUPD0_0 (0x1UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000001 */
  7620. #define GPIO_PUPDR_PUPD0_1 (0x2UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000002 */
  7621. #define GPIO_PUPDR_PUPD1_Pos (2U)
  7622. #define GPIO_PUPDR_PUPD1_Msk (0x3UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x0000000C */
  7623. #define GPIO_PUPDR_PUPD1 GPIO_PUPDR_PUPD1_Msk
  7624. #define GPIO_PUPDR_PUPD1_0 (0x1UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000004 */
  7625. #define GPIO_PUPDR_PUPD1_1 (0x2UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000008 */
  7626. #define GPIO_PUPDR_PUPD2_Pos (4U)
  7627. #define GPIO_PUPDR_PUPD2_Msk (0x3UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000030 */
  7628. #define GPIO_PUPDR_PUPD2 GPIO_PUPDR_PUPD2_Msk
  7629. #define GPIO_PUPDR_PUPD2_0 (0x1UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000010 */
  7630. #define GPIO_PUPDR_PUPD2_1 (0x2UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000020 */
  7631. #define GPIO_PUPDR_PUPD3_Pos (6U)
  7632. #define GPIO_PUPDR_PUPD3_Msk (0x3UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x000000C0 */
  7633. #define GPIO_PUPDR_PUPD3 GPIO_PUPDR_PUPD3_Msk
  7634. #define GPIO_PUPDR_PUPD3_0 (0x1UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000040 */
  7635. #define GPIO_PUPDR_PUPD3_1 (0x2UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000080 */
  7636. #define GPIO_PUPDR_PUPD4_Pos (8U)
  7637. #define GPIO_PUPDR_PUPD4_Msk (0x3UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000300 */
  7638. #define GPIO_PUPDR_PUPD4 GPIO_PUPDR_PUPD4_Msk
  7639. #define GPIO_PUPDR_PUPD4_0 (0x1UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000100 */
  7640. #define GPIO_PUPDR_PUPD4_1 (0x2UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000200 */
  7641. #define GPIO_PUPDR_PUPD5_Pos (10U)
  7642. #define GPIO_PUPDR_PUPD5_Msk (0x3UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000C00 */
  7643. #define GPIO_PUPDR_PUPD5 GPIO_PUPDR_PUPD5_Msk
  7644. #define GPIO_PUPDR_PUPD5_0 (0x1UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000400 */
  7645. #define GPIO_PUPDR_PUPD5_1 (0x2UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000800 */
  7646. #define GPIO_PUPDR_PUPD6_Pos (12U)
  7647. #define GPIO_PUPDR_PUPD6_Msk (0x3UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00003000 */
  7648. #define GPIO_PUPDR_PUPD6 GPIO_PUPDR_PUPD6_Msk
  7649. #define GPIO_PUPDR_PUPD6_0 (0x1UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00001000 */
  7650. #define GPIO_PUPDR_PUPD6_1 (0x2UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00002000 */
  7651. #define GPIO_PUPDR_PUPD7_Pos (14U)
  7652. #define GPIO_PUPDR_PUPD7_Msk (0x3UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x0000C000 */
  7653. #define GPIO_PUPDR_PUPD7 GPIO_PUPDR_PUPD7_Msk
  7654. #define GPIO_PUPDR_PUPD7_0 (0x1UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00004000 */
  7655. #define GPIO_PUPDR_PUPD7_1 (0x2UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00008000 */
  7656. #define GPIO_PUPDR_PUPD8_Pos (16U)
  7657. #define GPIO_PUPDR_PUPD8_Msk (0x3UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00030000 */
  7658. #define GPIO_PUPDR_PUPD8 GPIO_PUPDR_PUPD8_Msk
  7659. #define GPIO_PUPDR_PUPD8_0 (0x1UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00010000 */
  7660. #define GPIO_PUPDR_PUPD8_1 (0x2UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00020000 */
  7661. #define GPIO_PUPDR_PUPD9_Pos (18U)
  7662. #define GPIO_PUPDR_PUPD9_Msk (0x3UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x000C0000 */
  7663. #define GPIO_PUPDR_PUPD9 GPIO_PUPDR_PUPD9_Msk
  7664. #define GPIO_PUPDR_PUPD9_0 (0x1UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00040000 */
  7665. #define GPIO_PUPDR_PUPD9_1 (0x2UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00080000 */
  7666. #define GPIO_PUPDR_PUPD10_Pos (20U)
  7667. #define GPIO_PUPDR_PUPD10_Msk (0x3UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00300000 */
  7668. #define GPIO_PUPDR_PUPD10 GPIO_PUPDR_PUPD10_Msk
  7669. #define GPIO_PUPDR_PUPD10_0 (0x1UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00100000 */
  7670. #define GPIO_PUPDR_PUPD10_1 (0x2UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00200000 */
  7671. #define GPIO_PUPDR_PUPD11_Pos (22U)
  7672. #define GPIO_PUPDR_PUPD11_Msk (0x3UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00C00000 */
  7673. #define GPIO_PUPDR_PUPD11 GPIO_PUPDR_PUPD11_Msk
  7674. #define GPIO_PUPDR_PUPD11_0 (0x1UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00400000 */
  7675. #define GPIO_PUPDR_PUPD11_1 (0x2UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00800000 */
  7676. #define GPIO_PUPDR_PUPD12_Pos (24U)
  7677. #define GPIO_PUPDR_PUPD12_Msk (0x3UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x03000000 */
  7678. #define GPIO_PUPDR_PUPD12 GPIO_PUPDR_PUPD12_Msk
  7679. #define GPIO_PUPDR_PUPD12_0 (0x1UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x01000000 */
  7680. #define GPIO_PUPDR_PUPD12_1 (0x2UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x02000000 */
  7681. #define GPIO_PUPDR_PUPD13_Pos (26U)
  7682. #define GPIO_PUPDR_PUPD13_Msk (0x3UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x0C000000 */
  7683. #define GPIO_PUPDR_PUPD13 GPIO_PUPDR_PUPD13_Msk
  7684. #define GPIO_PUPDR_PUPD13_0 (0x1UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x04000000 */
  7685. #define GPIO_PUPDR_PUPD13_1 (0x2UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x08000000 */
  7686. #define GPIO_PUPDR_PUPD14_Pos (28U)
  7687. #define GPIO_PUPDR_PUPD14_Msk (0x3UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x30000000 */
  7688. #define GPIO_PUPDR_PUPD14 GPIO_PUPDR_PUPD14_Msk
  7689. #define GPIO_PUPDR_PUPD14_0 (0x1UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x10000000 */
  7690. #define GPIO_PUPDR_PUPD14_1 (0x2UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x20000000 */
  7691. #define GPIO_PUPDR_PUPD15_Pos (30U)
  7692. #define GPIO_PUPDR_PUPD15_Msk (0x3UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0xC0000000 */
  7693. #define GPIO_PUPDR_PUPD15 GPIO_PUPDR_PUPD15_Msk
  7694. #define GPIO_PUPDR_PUPD15_0 (0x1UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0x40000000 */
  7695. #define GPIO_PUPDR_PUPD15_1 (0x2UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0x80000000 */
  7696. /****************** Bits definition for GPIO_IDR register *******************/
  7697. #define GPIO_IDR_ID0_Pos (0U)
  7698. #define GPIO_IDR_ID0_Msk (0x1UL << GPIO_IDR_ID0_Pos) /*!< 0x00000001 */
  7699. #define GPIO_IDR_ID0 GPIO_IDR_ID0_Msk
  7700. #define GPIO_IDR_ID1_Pos (1U)
  7701. #define GPIO_IDR_ID1_Msk (0x1UL << GPIO_IDR_ID1_Pos) /*!< 0x00000002 */
  7702. #define GPIO_IDR_ID1 GPIO_IDR_ID1_Msk
  7703. #define GPIO_IDR_ID2_Pos (2U)
  7704. #define GPIO_IDR_ID2_Msk (0x1UL << GPIO_IDR_ID2_Pos) /*!< 0x00000004 */
  7705. #define GPIO_IDR_ID2 GPIO_IDR_ID2_Msk
  7706. #define GPIO_IDR_ID3_Pos (3U)
  7707. #define GPIO_IDR_ID3_Msk (0x1UL << GPIO_IDR_ID3_Pos) /*!< 0x00000008 */
  7708. #define GPIO_IDR_ID3 GPIO_IDR_ID3_Msk
  7709. #define GPIO_IDR_ID4_Pos (4U)
  7710. #define GPIO_IDR_ID4_Msk (0x1UL << GPIO_IDR_ID4_Pos) /*!< 0x00000010 */
  7711. #define GPIO_IDR_ID4 GPIO_IDR_ID4_Msk
  7712. #define GPIO_IDR_ID5_Pos (5U)
  7713. #define GPIO_IDR_ID5_Msk (0x1UL << GPIO_IDR_ID5_Pos) /*!< 0x00000020 */
  7714. #define GPIO_IDR_ID5 GPIO_IDR_ID5_Msk
  7715. #define GPIO_IDR_ID6_Pos (6U)
  7716. #define GPIO_IDR_ID6_Msk (0x1UL << GPIO_IDR_ID6_Pos) /*!< 0x00000040 */
  7717. #define GPIO_IDR_ID6 GPIO_IDR_ID6_Msk
  7718. #define GPIO_IDR_ID7_Pos (7U)
  7719. #define GPIO_IDR_ID7_Msk (0x1UL << GPIO_IDR_ID7_Pos) /*!< 0x00000080 */
  7720. #define GPIO_IDR_ID7 GPIO_IDR_ID7_Msk
  7721. #define GPIO_IDR_ID8_Pos (8U)
  7722. #define GPIO_IDR_ID8_Msk (0x1UL << GPIO_IDR_ID8_Pos) /*!< 0x00000100 */
  7723. #define GPIO_IDR_ID8 GPIO_IDR_ID8_Msk
  7724. #define GPIO_IDR_ID9_Pos (9U)
  7725. #define GPIO_IDR_ID9_Msk (0x1UL << GPIO_IDR_ID9_Pos) /*!< 0x00000200 */
  7726. #define GPIO_IDR_ID9 GPIO_IDR_ID9_Msk
  7727. #define GPIO_IDR_ID10_Pos (10U)
  7728. #define GPIO_IDR_ID10_Msk (0x1UL << GPIO_IDR_ID10_Pos) /*!< 0x00000400 */
  7729. #define GPIO_IDR_ID10 GPIO_IDR_ID10_Msk
  7730. #define GPIO_IDR_ID11_Pos (11U)
  7731. #define GPIO_IDR_ID11_Msk (0x1UL << GPIO_IDR_ID11_Pos) /*!< 0x00000800 */
  7732. #define GPIO_IDR_ID11 GPIO_IDR_ID11_Msk
  7733. #define GPIO_IDR_ID12_Pos (12U)
  7734. #define GPIO_IDR_ID12_Msk (0x1UL << GPIO_IDR_ID12_Pos) /*!< 0x00001000 */
  7735. #define GPIO_IDR_ID12 GPIO_IDR_ID12_Msk
  7736. #define GPIO_IDR_ID13_Pos (13U)
  7737. #define GPIO_IDR_ID13_Msk (0x1UL << GPIO_IDR_ID13_Pos) /*!< 0x00002000 */
  7738. #define GPIO_IDR_ID13 GPIO_IDR_ID13_Msk
  7739. #define GPIO_IDR_ID14_Pos (14U)
  7740. #define GPIO_IDR_ID14_Msk (0x1UL << GPIO_IDR_ID14_Pos) /*!< 0x00004000 */
  7741. #define GPIO_IDR_ID14 GPIO_IDR_ID14_Msk
  7742. #define GPIO_IDR_ID15_Pos (15U)
  7743. #define GPIO_IDR_ID15_Msk (0x1UL << GPIO_IDR_ID15_Pos) /*!< 0x00008000 */
  7744. #define GPIO_IDR_ID15 GPIO_IDR_ID15_Msk
  7745. /****************** Bits definition for GPIO_ODR register *******************/
  7746. #define GPIO_ODR_OD0_Pos (0U)
  7747. #define GPIO_ODR_OD0_Msk (0x1UL << GPIO_ODR_OD0_Pos) /*!< 0x00000001 */
  7748. #define GPIO_ODR_OD0 GPIO_ODR_OD0_Msk
  7749. #define GPIO_ODR_OD1_Pos (1U)
  7750. #define GPIO_ODR_OD1_Msk (0x1UL << GPIO_ODR_OD1_Pos) /*!< 0x00000002 */
  7751. #define GPIO_ODR_OD1 GPIO_ODR_OD1_Msk
  7752. #define GPIO_ODR_OD2_Pos (2U)
  7753. #define GPIO_ODR_OD2_Msk (0x1UL << GPIO_ODR_OD2_Pos) /*!< 0x00000004 */
  7754. #define GPIO_ODR_OD2 GPIO_ODR_OD2_Msk
  7755. #define GPIO_ODR_OD3_Pos (3U)
  7756. #define GPIO_ODR_OD3_Msk (0x1UL << GPIO_ODR_OD3_Pos) /*!< 0x00000008 */
  7757. #define GPIO_ODR_OD3 GPIO_ODR_OD3_Msk
  7758. #define GPIO_ODR_OD4_Pos (4U)
  7759. #define GPIO_ODR_OD4_Msk (0x1UL << GPIO_ODR_OD4_Pos) /*!< 0x00000010 */
  7760. #define GPIO_ODR_OD4 GPIO_ODR_OD4_Msk
  7761. #define GPIO_ODR_OD5_Pos (5U)
  7762. #define GPIO_ODR_OD5_Msk (0x1UL << GPIO_ODR_OD5_Pos) /*!< 0x00000020 */
  7763. #define GPIO_ODR_OD5 GPIO_ODR_OD5_Msk
  7764. #define GPIO_ODR_OD6_Pos (6U)
  7765. #define GPIO_ODR_OD6_Msk (0x1UL << GPIO_ODR_OD6_Pos) /*!< 0x00000040 */
  7766. #define GPIO_ODR_OD6 GPIO_ODR_OD6_Msk
  7767. #define GPIO_ODR_OD7_Pos (7U)
  7768. #define GPIO_ODR_OD7_Msk (0x1UL << GPIO_ODR_OD7_Pos) /*!< 0x00000080 */
  7769. #define GPIO_ODR_OD7 GPIO_ODR_OD7_Msk
  7770. #define GPIO_ODR_OD8_Pos (8U)
  7771. #define GPIO_ODR_OD8_Msk (0x1UL << GPIO_ODR_OD8_Pos) /*!< 0x00000100 */
  7772. #define GPIO_ODR_OD8 GPIO_ODR_OD8_Msk
  7773. #define GPIO_ODR_OD9_Pos (9U)
  7774. #define GPIO_ODR_OD9_Msk (0x1UL << GPIO_ODR_OD9_Pos) /*!< 0x00000200 */
  7775. #define GPIO_ODR_OD9 GPIO_ODR_OD9_Msk
  7776. #define GPIO_ODR_OD10_Pos (10U)
  7777. #define GPIO_ODR_OD10_Msk (0x1UL << GPIO_ODR_OD10_Pos) /*!< 0x00000400 */
  7778. #define GPIO_ODR_OD10 GPIO_ODR_OD10_Msk
  7779. #define GPIO_ODR_OD11_Pos (11U)
  7780. #define GPIO_ODR_OD11_Msk (0x1UL << GPIO_ODR_OD11_Pos) /*!< 0x00000800 */
  7781. #define GPIO_ODR_OD11 GPIO_ODR_OD11_Msk
  7782. #define GPIO_ODR_OD12_Pos (12U)
  7783. #define GPIO_ODR_OD12_Msk (0x1UL << GPIO_ODR_OD12_Pos) /*!< 0x00001000 */
  7784. #define GPIO_ODR_OD12 GPIO_ODR_OD12_Msk
  7785. #define GPIO_ODR_OD13_Pos (13U)
  7786. #define GPIO_ODR_OD13_Msk (0x1UL << GPIO_ODR_OD13_Pos) /*!< 0x00002000 */
  7787. #define GPIO_ODR_OD13 GPIO_ODR_OD13_Msk
  7788. #define GPIO_ODR_OD14_Pos (14U)
  7789. #define GPIO_ODR_OD14_Msk (0x1UL << GPIO_ODR_OD14_Pos) /*!< 0x00004000 */
  7790. #define GPIO_ODR_OD14 GPIO_ODR_OD14_Msk
  7791. #define GPIO_ODR_OD15_Pos (15U)
  7792. #define GPIO_ODR_OD15_Msk (0x1UL << GPIO_ODR_OD15_Pos) /*!< 0x00008000 */
  7793. #define GPIO_ODR_OD15 GPIO_ODR_OD15_Msk
  7794. /****************** Bits definition for GPIO_BSRR register ******************/
  7795. #define GPIO_BSRR_BS0_Pos (0U)
  7796. #define GPIO_BSRR_BS0_Msk (0x1UL << GPIO_BSRR_BS0_Pos) /*!< 0x00000001 */
  7797. #define GPIO_BSRR_BS0 GPIO_BSRR_BS0_Msk
  7798. #define GPIO_BSRR_BS1_Pos (1U)
  7799. #define GPIO_BSRR_BS1_Msk (0x1UL << GPIO_BSRR_BS1_Pos) /*!< 0x00000002 */
  7800. #define GPIO_BSRR_BS1 GPIO_BSRR_BS1_Msk
  7801. #define GPIO_BSRR_BS2_Pos (2U)
  7802. #define GPIO_BSRR_BS2_Msk (0x1UL << GPIO_BSRR_BS2_Pos) /*!< 0x00000004 */
  7803. #define GPIO_BSRR_BS2 GPIO_BSRR_BS2_Msk
  7804. #define GPIO_BSRR_BS3_Pos (3U)
  7805. #define GPIO_BSRR_BS3_Msk (0x1UL << GPIO_BSRR_BS3_Pos) /*!< 0x00000008 */
  7806. #define GPIO_BSRR_BS3 GPIO_BSRR_BS3_Msk
  7807. #define GPIO_BSRR_BS4_Pos (4U)
  7808. #define GPIO_BSRR_BS4_Msk (0x1UL << GPIO_BSRR_BS4_Pos) /*!< 0x00000010 */
  7809. #define GPIO_BSRR_BS4 GPIO_BSRR_BS4_Msk
  7810. #define GPIO_BSRR_BS5_Pos (5U)
  7811. #define GPIO_BSRR_BS5_Msk (0x1UL << GPIO_BSRR_BS5_Pos) /*!< 0x00000020 */
  7812. #define GPIO_BSRR_BS5 GPIO_BSRR_BS5_Msk
  7813. #define GPIO_BSRR_BS6_Pos (6U)
  7814. #define GPIO_BSRR_BS6_Msk (0x1UL << GPIO_BSRR_BS6_Pos) /*!< 0x00000040 */
  7815. #define GPIO_BSRR_BS6 GPIO_BSRR_BS6_Msk
  7816. #define GPIO_BSRR_BS7_Pos (7U)
  7817. #define GPIO_BSRR_BS7_Msk (0x1UL << GPIO_BSRR_BS7_Pos) /*!< 0x00000080 */
  7818. #define GPIO_BSRR_BS7 GPIO_BSRR_BS7_Msk
  7819. #define GPIO_BSRR_BS8_Pos (8U)
  7820. #define GPIO_BSRR_BS8_Msk (0x1UL << GPIO_BSRR_BS8_Pos) /*!< 0x00000100 */
  7821. #define GPIO_BSRR_BS8 GPIO_BSRR_BS8_Msk
  7822. #define GPIO_BSRR_BS9_Pos (9U)
  7823. #define GPIO_BSRR_BS9_Msk (0x1UL << GPIO_BSRR_BS9_Pos) /*!< 0x00000200 */
  7824. #define GPIO_BSRR_BS9 GPIO_BSRR_BS9_Msk
  7825. #define GPIO_BSRR_BS10_Pos (10U)
  7826. #define GPIO_BSRR_BS10_Msk (0x1UL << GPIO_BSRR_BS10_Pos) /*!< 0x00000400 */
  7827. #define GPIO_BSRR_BS10 GPIO_BSRR_BS10_Msk
  7828. #define GPIO_BSRR_BS11_Pos (11U)
  7829. #define GPIO_BSRR_BS11_Msk (0x1UL << GPIO_BSRR_BS11_Pos) /*!< 0x00000800 */
  7830. #define GPIO_BSRR_BS11 GPIO_BSRR_BS11_Msk
  7831. #define GPIO_BSRR_BS12_Pos (12U)
  7832. #define GPIO_BSRR_BS12_Msk (0x1UL << GPIO_BSRR_BS12_Pos) /*!< 0x00001000 */
  7833. #define GPIO_BSRR_BS12 GPIO_BSRR_BS12_Msk
  7834. #define GPIO_BSRR_BS13_Pos (13U)
  7835. #define GPIO_BSRR_BS13_Msk (0x1UL << GPIO_BSRR_BS13_Pos) /*!< 0x00002000 */
  7836. #define GPIO_BSRR_BS13 GPIO_BSRR_BS13_Msk
  7837. #define GPIO_BSRR_BS14_Pos (14U)
  7838. #define GPIO_BSRR_BS14_Msk (0x1UL << GPIO_BSRR_BS14_Pos) /*!< 0x00004000 */
  7839. #define GPIO_BSRR_BS14 GPIO_BSRR_BS14_Msk
  7840. #define GPIO_BSRR_BS15_Pos (15U)
  7841. #define GPIO_BSRR_BS15_Msk (0x1UL << GPIO_BSRR_BS15_Pos) /*!< 0x00008000 */
  7842. #define GPIO_BSRR_BS15 GPIO_BSRR_BS15_Msk
  7843. #define GPIO_BSRR_BR0_Pos (16U)
  7844. #define GPIO_BSRR_BR0_Msk (0x1UL << GPIO_BSRR_BR0_Pos) /*!< 0x00010000 */
  7845. #define GPIO_BSRR_BR0 GPIO_BSRR_BR0_Msk
  7846. #define GPIO_BSRR_BR1_Pos (17U)
  7847. #define GPIO_BSRR_BR1_Msk (0x1UL << GPIO_BSRR_BR1_Pos) /*!< 0x00020000 */
  7848. #define GPIO_BSRR_BR1 GPIO_BSRR_BR1_Msk
  7849. #define GPIO_BSRR_BR2_Pos (18U)
  7850. #define GPIO_BSRR_BR2_Msk (0x1UL << GPIO_BSRR_BR2_Pos) /*!< 0x00040000 */
  7851. #define GPIO_BSRR_BR2 GPIO_BSRR_BR2_Msk
  7852. #define GPIO_BSRR_BR3_Pos (19U)
  7853. #define GPIO_BSRR_BR3_Msk (0x1UL << GPIO_BSRR_BR3_Pos) /*!< 0x00080000 */
  7854. #define GPIO_BSRR_BR3 GPIO_BSRR_BR3_Msk
  7855. #define GPIO_BSRR_BR4_Pos (20U)
  7856. #define GPIO_BSRR_BR4_Msk (0x1UL << GPIO_BSRR_BR4_Pos) /*!< 0x00100000 */
  7857. #define GPIO_BSRR_BR4 GPIO_BSRR_BR4_Msk
  7858. #define GPIO_BSRR_BR5_Pos (21U)
  7859. #define GPIO_BSRR_BR5_Msk (0x1UL << GPIO_BSRR_BR5_Pos) /*!< 0x00200000 */
  7860. #define GPIO_BSRR_BR5 GPIO_BSRR_BR5_Msk
  7861. #define GPIO_BSRR_BR6_Pos (22U)
  7862. #define GPIO_BSRR_BR6_Msk (0x1UL << GPIO_BSRR_BR6_Pos) /*!< 0x00400000 */
  7863. #define GPIO_BSRR_BR6 GPIO_BSRR_BR6_Msk
  7864. #define GPIO_BSRR_BR7_Pos (23U)
  7865. #define GPIO_BSRR_BR7_Msk (0x1UL << GPIO_BSRR_BR7_Pos) /*!< 0x00800000 */
  7866. #define GPIO_BSRR_BR7 GPIO_BSRR_BR7_Msk
  7867. #define GPIO_BSRR_BR8_Pos (24U)
  7868. #define GPIO_BSRR_BR8_Msk (0x1UL << GPIO_BSRR_BR8_Pos) /*!< 0x01000000 */
  7869. #define GPIO_BSRR_BR8 GPIO_BSRR_BR8_Msk
  7870. #define GPIO_BSRR_BR9_Pos (25U)
  7871. #define GPIO_BSRR_BR9_Msk (0x1UL << GPIO_BSRR_BR9_Pos) /*!< 0x02000000 */
  7872. #define GPIO_BSRR_BR9 GPIO_BSRR_BR9_Msk
  7873. #define GPIO_BSRR_BR10_Pos (26U)
  7874. #define GPIO_BSRR_BR10_Msk (0x1UL << GPIO_BSRR_BR10_Pos) /*!< 0x04000000 */
  7875. #define GPIO_BSRR_BR10 GPIO_BSRR_BR10_Msk
  7876. #define GPIO_BSRR_BR11_Pos (27U)
  7877. #define GPIO_BSRR_BR11_Msk (0x1UL << GPIO_BSRR_BR11_Pos) /*!< 0x08000000 */
  7878. #define GPIO_BSRR_BR11 GPIO_BSRR_BR11_Msk
  7879. #define GPIO_BSRR_BR12_Pos (28U)
  7880. #define GPIO_BSRR_BR12_Msk (0x1UL << GPIO_BSRR_BR12_Pos) /*!< 0x10000000 */
  7881. #define GPIO_BSRR_BR12 GPIO_BSRR_BR12_Msk
  7882. #define GPIO_BSRR_BR13_Pos (29U)
  7883. #define GPIO_BSRR_BR13_Msk (0x1UL << GPIO_BSRR_BR13_Pos) /*!< 0x20000000 */
  7884. #define GPIO_BSRR_BR13 GPIO_BSRR_BR13_Msk
  7885. #define GPIO_BSRR_BR14_Pos (30U)
  7886. #define GPIO_BSRR_BR14_Msk (0x1UL << GPIO_BSRR_BR14_Pos) /*!< 0x40000000 */
  7887. #define GPIO_BSRR_BR14 GPIO_BSRR_BR14_Msk
  7888. #define GPIO_BSRR_BR15_Pos (31U)
  7889. #define GPIO_BSRR_BR15_Msk (0x1UL << GPIO_BSRR_BR15_Pos) /*!< 0x80000000 */
  7890. #define GPIO_BSRR_BR15 GPIO_BSRR_BR15_Msk
  7891. /****************** Bit definition for GPIO_LCKR register *********************/
  7892. #define GPIO_LCKR_LCK0_Pos (0U)
  7893. #define GPIO_LCKR_LCK0_Msk (0x1UL << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  7894. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  7895. #define GPIO_LCKR_LCK1_Pos (1U)
  7896. #define GPIO_LCKR_LCK1_Msk (0x1UL << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  7897. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  7898. #define GPIO_LCKR_LCK2_Pos (2U)
  7899. #define GPIO_LCKR_LCK2_Msk (0x1UL << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  7900. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  7901. #define GPIO_LCKR_LCK3_Pos (3U)
  7902. #define GPIO_LCKR_LCK3_Msk (0x1UL << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  7903. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  7904. #define GPIO_LCKR_LCK4_Pos (4U)
  7905. #define GPIO_LCKR_LCK4_Msk (0x1UL << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  7906. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  7907. #define GPIO_LCKR_LCK5_Pos (5U)
  7908. #define GPIO_LCKR_LCK5_Msk (0x1UL << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  7909. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  7910. #define GPIO_LCKR_LCK6_Pos (6U)
  7911. #define GPIO_LCKR_LCK6_Msk (0x1UL << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  7912. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  7913. #define GPIO_LCKR_LCK7_Pos (7U)
  7914. #define GPIO_LCKR_LCK7_Msk (0x1UL << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  7915. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  7916. #define GPIO_LCKR_LCK8_Pos (8U)
  7917. #define GPIO_LCKR_LCK8_Msk (0x1UL << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  7918. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  7919. #define GPIO_LCKR_LCK9_Pos (9U)
  7920. #define GPIO_LCKR_LCK9_Msk (0x1UL << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  7921. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  7922. #define GPIO_LCKR_LCK10_Pos (10U)
  7923. #define GPIO_LCKR_LCK10_Msk (0x1UL << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  7924. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  7925. #define GPIO_LCKR_LCK11_Pos (11U)
  7926. #define GPIO_LCKR_LCK11_Msk (0x1UL << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  7927. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  7928. #define GPIO_LCKR_LCK12_Pos (12U)
  7929. #define GPIO_LCKR_LCK12_Msk (0x1UL << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  7930. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  7931. #define GPIO_LCKR_LCK13_Pos (13U)
  7932. #define GPIO_LCKR_LCK13_Msk (0x1UL << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  7933. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  7934. #define GPIO_LCKR_LCK14_Pos (14U)
  7935. #define GPIO_LCKR_LCK14_Msk (0x1UL << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  7936. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  7937. #define GPIO_LCKR_LCK15_Pos (15U)
  7938. #define GPIO_LCKR_LCK15_Msk (0x1UL << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  7939. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  7940. #define GPIO_LCKR_LCKK_Pos (16U)
  7941. #define GPIO_LCKR_LCKK_Msk (0x1UL << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  7942. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  7943. /****************** Bit definition for GPIO_AFRL register *********************/
  7944. #define GPIO_AFRL_AFSEL0_Pos (0U)
  7945. #define GPIO_AFRL_AFSEL0_Msk (0xFUL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x0000000F */
  7946. #define GPIO_AFRL_AFSEL0 GPIO_AFRL_AFSEL0_Msk
  7947. #define GPIO_AFRL_AFSEL0_0 (0x1UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000001 */
  7948. #define GPIO_AFRL_AFSEL0_1 (0x2UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000002 */
  7949. #define GPIO_AFRL_AFSEL0_2 (0x4UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000004 */
  7950. #define GPIO_AFRL_AFSEL0_3 (0x8UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000008 */
  7951. #define GPIO_AFRL_AFSEL1_Pos (4U)
  7952. #define GPIO_AFRL_AFSEL1_Msk (0xFUL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x000000F0 */
  7953. #define GPIO_AFRL_AFSEL1 GPIO_AFRL_AFSEL1_Msk
  7954. #define GPIO_AFRL_AFSEL1_0 (0x1UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000010 */
  7955. #define GPIO_AFRL_AFSEL1_1 (0x2UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000020 */
  7956. #define GPIO_AFRL_AFSEL1_2 (0x4UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000040 */
  7957. #define GPIO_AFRL_AFSEL1_3 (0x8UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000080 */
  7958. #define GPIO_AFRL_AFSEL2_Pos (8U)
  7959. #define GPIO_AFRL_AFSEL2_Msk (0xFUL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000F00 */
  7960. #define GPIO_AFRL_AFSEL2 GPIO_AFRL_AFSEL2_Msk
  7961. #define GPIO_AFRL_AFSEL2_0 (0x1UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000100 */
  7962. #define GPIO_AFRL_AFSEL2_1 (0x2UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000200 */
  7963. #define GPIO_AFRL_AFSEL2_2 (0x4UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000400 */
  7964. #define GPIO_AFRL_AFSEL2_3 (0x8UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000800 */
  7965. #define GPIO_AFRL_AFSEL3_Pos (12U)
  7966. #define GPIO_AFRL_AFSEL3_Msk (0xFUL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x0000F000 */
  7967. #define GPIO_AFRL_AFSEL3 GPIO_AFRL_AFSEL3_Msk
  7968. #define GPIO_AFRL_AFSEL3_0 (0x1UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00001000 */
  7969. #define GPIO_AFRL_AFSEL3_1 (0x2UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00002000 */
  7970. #define GPIO_AFRL_AFSEL3_2 (0x4UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00004000 */
  7971. #define GPIO_AFRL_AFSEL3_3 (0x8UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00008000 */
  7972. #define GPIO_AFRL_AFSEL4_Pos (16U)
  7973. #define GPIO_AFRL_AFSEL4_Msk (0xFUL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x000F0000 */
  7974. #define GPIO_AFRL_AFSEL4 GPIO_AFRL_AFSEL4_Msk
  7975. #define GPIO_AFRL_AFSEL4_0 (0x1UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00010000 */
  7976. #define GPIO_AFRL_AFSEL4_1 (0x2UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00020000 */
  7977. #define GPIO_AFRL_AFSEL4_2 (0x4UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00040000 */
  7978. #define GPIO_AFRL_AFSEL4_3 (0x8UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00080000 */
  7979. #define GPIO_AFRL_AFSEL5_Pos (20U)
  7980. #define GPIO_AFRL_AFSEL5_Msk (0xFUL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00F00000 */
  7981. #define GPIO_AFRL_AFSEL5 GPIO_AFRL_AFSEL5_Msk
  7982. #define GPIO_AFRL_AFSEL5_0 (0x1UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00100000 */
  7983. #define GPIO_AFRL_AFSEL5_1 (0x2UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00200000 */
  7984. #define GPIO_AFRL_AFSEL5_2 (0x4UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00400000 */
  7985. #define GPIO_AFRL_AFSEL5_3 (0x8UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00800000 */
  7986. #define GPIO_AFRL_AFSEL6_Pos (24U)
  7987. #define GPIO_AFRL_AFSEL6_Msk (0xFUL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x0F000000 */
  7988. #define GPIO_AFRL_AFSEL6 GPIO_AFRL_AFSEL6_Msk
  7989. #define GPIO_AFRL_AFSEL6_0 (0x1UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x01000000 */
  7990. #define GPIO_AFRL_AFSEL6_1 (0x2UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x02000000 */
  7991. #define GPIO_AFRL_AFSEL6_2 (0x4UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x04000000 */
  7992. #define GPIO_AFRL_AFSEL6_3 (0x8UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x08000000 */
  7993. #define GPIO_AFRL_AFSEL7_Pos (28U)
  7994. #define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
  7995. #define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
  7996. #define GPIO_AFRL_AFSEL7_0 (0x1UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x10000000 */
  7997. #define GPIO_AFRL_AFSEL7_1 (0x2UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x20000000 */
  7998. #define GPIO_AFRL_AFSEL7_2 (0x4UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x40000000 */
  7999. #define GPIO_AFRL_AFSEL7_3 (0x8UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x80000000 */
  8000. /****************** Bit definition for GPIO_AFRH register *********************/
  8001. #define GPIO_AFRH_AFSEL8_Pos (0U)
  8002. #define GPIO_AFRH_AFSEL8_Msk (0xFUL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x0000000F */
  8003. #define GPIO_AFRH_AFSEL8 GPIO_AFRH_AFSEL8_Msk
  8004. #define GPIO_AFRH_AFSEL8_0 (0x1UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000001 */
  8005. #define GPIO_AFRH_AFSEL8_1 (0x2UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000002 */
  8006. #define GPIO_AFRH_AFSEL8_2 (0x4UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000004 */
  8007. #define GPIO_AFRH_AFSEL8_3 (0x8UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000008 */
  8008. #define GPIO_AFRH_AFSEL9_Pos (4U)
  8009. #define GPIO_AFRH_AFSEL9_Msk (0xFUL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x000000F0 */
  8010. #define GPIO_AFRH_AFSEL9 GPIO_AFRH_AFSEL9_Msk
  8011. #define GPIO_AFRH_AFSEL9_0 (0x1UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000010 */
  8012. #define GPIO_AFRH_AFSEL9_1 (0x2UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000020 */
  8013. #define GPIO_AFRH_AFSEL9_2 (0x4UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000040 */
  8014. #define GPIO_AFRH_AFSEL9_3 (0x8UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000080 */
  8015. #define GPIO_AFRH_AFSEL10_Pos (8U)
  8016. #define GPIO_AFRH_AFSEL10_Msk (0xFUL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000F00 */
  8017. #define GPIO_AFRH_AFSEL10 GPIO_AFRH_AFSEL10_Msk
  8018. #define GPIO_AFRH_AFSEL10_0 (0x1UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000100 */
  8019. #define GPIO_AFRH_AFSEL10_1 (0x2UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000200 */
  8020. #define GPIO_AFRH_AFSEL10_2 (0x4UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000400 */
  8021. #define GPIO_AFRH_AFSEL10_3 (0x8UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000800 */
  8022. #define GPIO_AFRH_AFSEL11_Pos (12U)
  8023. #define GPIO_AFRH_AFSEL11_Msk (0xFUL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x0000F000 */
  8024. #define GPIO_AFRH_AFSEL11 GPIO_AFRH_AFSEL11_Msk
  8025. #define GPIO_AFRH_AFSEL11_0 (0x1UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00001000 */
  8026. #define GPIO_AFRH_AFSEL11_1 (0x2UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00002000 */
  8027. #define GPIO_AFRH_AFSEL11_2 (0x4UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00004000 */
  8028. #define GPIO_AFRH_AFSEL11_3 (0x8UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00008000 */
  8029. #define GPIO_AFRH_AFSEL12_Pos (16U)
  8030. #define GPIO_AFRH_AFSEL12_Msk (0xFUL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x000F0000 */
  8031. #define GPIO_AFRH_AFSEL12 GPIO_AFRH_AFSEL12_Msk
  8032. #define GPIO_AFRH_AFSEL12_0 (0x1UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00010000 */
  8033. #define GPIO_AFRH_AFSEL12_1 (0x2UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00020000 */
  8034. #define GPIO_AFRH_AFSEL12_2 (0x4UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00040000 */
  8035. #define GPIO_AFRH_AFSEL12_3 (0x8UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00080000 */
  8036. #define GPIO_AFRH_AFSEL13_Pos (20U)
  8037. #define GPIO_AFRH_AFSEL13_Msk (0xFUL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00F00000 */
  8038. #define GPIO_AFRH_AFSEL13 GPIO_AFRH_AFSEL13_Msk
  8039. #define GPIO_AFRH_AFSEL13_0 (0x1UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00100000 */
  8040. #define GPIO_AFRH_AFSEL13_1 (0x2UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00200000 */
  8041. #define GPIO_AFRH_AFSEL13_2 (0x4UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00400000 */
  8042. #define GPIO_AFRH_AFSEL13_3 (0x8UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00800000 */
  8043. #define GPIO_AFRH_AFSEL14_Pos (24U)
  8044. #define GPIO_AFRH_AFSEL14_Msk (0xFUL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x0F000000 */
  8045. #define GPIO_AFRH_AFSEL14 GPIO_AFRH_AFSEL14_Msk
  8046. #define GPIO_AFRH_AFSEL14_0 (0x1UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x01000000 */
  8047. #define GPIO_AFRH_AFSEL14_1 (0x2UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x02000000 */
  8048. #define GPIO_AFRH_AFSEL14_2 (0x4UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x04000000 */
  8049. #define GPIO_AFRH_AFSEL14_3 (0x8UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x08000000 */
  8050. #define GPIO_AFRH_AFSEL15_Pos (28U)
  8051. #define GPIO_AFRH_AFSEL15_Msk (0xFUL << GPIO_AFRH_AFSEL15_Pos) /*!< 0xF0000000 */
  8052. #define GPIO_AFRH_AFSEL15 GPIO_AFRH_AFSEL15_Msk
  8053. #define GPIO_AFRH_AFSEL15_0 (0x1UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x10000000 */
  8054. #define GPIO_AFRH_AFSEL15_1 (0x2UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x20000000 */
  8055. #define GPIO_AFRH_AFSEL15_2 (0x4UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x40000000 */
  8056. #define GPIO_AFRH_AFSEL15_3 (0x8UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x80000000 */
  8057. /****************** Bits definition for GPIO_BRR register ******************/
  8058. #define GPIO_BRR_BR0_Pos (0U)
  8059. #define GPIO_BRR_BR0_Msk (0x1UL << GPIO_BRR_BR0_Pos) /*!< 0x00000001 */
  8060. #define GPIO_BRR_BR0 GPIO_BRR_BR0_Msk
  8061. #define GPIO_BRR_BR1_Pos (1U)
  8062. #define GPIO_BRR_BR1_Msk (0x1UL << GPIO_BRR_BR1_Pos) /*!< 0x00000002 */
  8063. #define GPIO_BRR_BR1 GPIO_BRR_BR1_Msk
  8064. #define GPIO_BRR_BR2_Pos (2U)
  8065. #define GPIO_BRR_BR2_Msk (0x1UL << GPIO_BRR_BR2_Pos) /*!< 0x00000004 */
  8066. #define GPIO_BRR_BR2 GPIO_BRR_BR2_Msk
  8067. #define GPIO_BRR_BR3_Pos (3U)
  8068. #define GPIO_BRR_BR3_Msk (0x1UL << GPIO_BRR_BR3_Pos) /*!< 0x00000008 */
  8069. #define GPIO_BRR_BR3 GPIO_BRR_BR3_Msk
  8070. #define GPIO_BRR_BR4_Pos (4U)
  8071. #define GPIO_BRR_BR4_Msk (0x1UL << GPIO_BRR_BR4_Pos) /*!< 0x00000010 */
  8072. #define GPIO_BRR_BR4 GPIO_BRR_BR4_Msk
  8073. #define GPIO_BRR_BR5_Pos (5U)
  8074. #define GPIO_BRR_BR5_Msk (0x1UL << GPIO_BRR_BR5_Pos) /*!< 0x00000020 */
  8075. #define GPIO_BRR_BR5 GPIO_BRR_BR5_Msk
  8076. #define GPIO_BRR_BR6_Pos (6U)
  8077. #define GPIO_BRR_BR6_Msk (0x1UL << GPIO_BRR_BR6_Pos) /*!< 0x00000040 */
  8078. #define GPIO_BRR_BR6 GPIO_BRR_BR6_Msk
  8079. #define GPIO_BRR_BR7_Pos (7U)
  8080. #define GPIO_BRR_BR7_Msk (0x1UL << GPIO_BRR_BR7_Pos) /*!< 0x00000080 */
  8081. #define GPIO_BRR_BR7 GPIO_BRR_BR7_Msk
  8082. #define GPIO_BRR_BR8_Pos (8U)
  8083. #define GPIO_BRR_BR8_Msk (0x1UL << GPIO_BRR_BR8_Pos) /*!< 0x00000100 */
  8084. #define GPIO_BRR_BR8 GPIO_BRR_BR8_Msk
  8085. #define GPIO_BRR_BR9_Pos (9U)
  8086. #define GPIO_BRR_BR9_Msk (0x1UL << GPIO_BRR_BR9_Pos) /*!< 0x00000200 */
  8087. #define GPIO_BRR_BR9 GPIO_BRR_BR9_Msk
  8088. #define GPIO_BRR_BR10_Pos (10U)
  8089. #define GPIO_BRR_BR10_Msk (0x1UL << GPIO_BRR_BR10_Pos) /*!< 0x00000400 */
  8090. #define GPIO_BRR_BR10 GPIO_BRR_BR10_Msk
  8091. #define GPIO_BRR_BR11_Pos (11U)
  8092. #define GPIO_BRR_BR11_Msk (0x1UL << GPIO_BRR_BR11_Pos) /*!< 0x00000800 */
  8093. #define GPIO_BRR_BR11 GPIO_BRR_BR11_Msk
  8094. #define GPIO_BRR_BR12_Pos (12U)
  8095. #define GPIO_BRR_BR12_Msk (0x1UL << GPIO_BRR_BR12_Pos) /*!< 0x00001000 */
  8096. #define GPIO_BRR_BR12 GPIO_BRR_BR12_Msk
  8097. #define GPIO_BRR_BR13_Pos (13U)
  8098. #define GPIO_BRR_BR13_Msk (0x1UL << GPIO_BRR_BR13_Pos) /*!< 0x00002000 */
  8099. #define GPIO_BRR_BR13 GPIO_BRR_BR13_Msk
  8100. #define GPIO_BRR_BR14_Pos (14U)
  8101. #define GPIO_BRR_BR14_Msk (0x1UL << GPIO_BRR_BR14_Pos) /*!< 0x00004000 */
  8102. #define GPIO_BRR_BR14 GPIO_BRR_BR14_Msk
  8103. #define GPIO_BRR_BR15_Pos (15U)
  8104. #define GPIO_BRR_BR15_Msk (0x1UL << GPIO_BRR_BR15_Pos) /*!< 0x00008000 */
  8105. #define GPIO_BRR_BR15 GPIO_BRR_BR15_Msk
  8106. /****************** Bits definition for GPIO_SECCFGR register ***************/
  8107. #define GPIO_SECCFGR_SEC0_Pos (0U)
  8108. #define GPIO_SECCFGR_SEC0_Msk (0x1UL << GPIO_SECCFGR_SEC0_Pos) /*!< 0x00000001 */
  8109. #define GPIO_SECCFGR_SEC0 GPIO_SECCFGR_SEC0_Msk
  8110. #define GPIO_SECCFGR_SEC1_Pos (1U)
  8111. #define GPIO_SECCFGR_SEC1_Msk (0x1UL << GPIO_SECCFGR_SEC1_Pos) /*!< 0x00000002 */
  8112. #define GPIO_SECCFGR_SEC1 GPIO_SECCFGR_SEC1_Msk
  8113. #define GPIO_SECCFGR_SEC2_Pos (2U)
  8114. #define GPIO_SECCFGR_SEC2_Msk (0x1UL << GPIO_SECCFGR_SEC2_Pos) /*!< 0x00000004 */
  8115. #define GPIO_SECCFGR_SEC2 GPIO_SECCFGR_SEC2_Msk
  8116. #define GPIO_SECCFGR_SEC3_Pos (3U)
  8117. #define GPIO_SECCFGR_SEC3_Msk (0x1UL << GPIO_SECCFGR_SEC3_Pos) /*!< 0x00000008 */
  8118. #define GPIO_SECCFGR_SEC3 GPIO_SECCFGR_SEC3_Msk
  8119. #define GPIO_SECCFGR_SEC4_Pos (4U)
  8120. #define GPIO_SECCFGR_SEC4_Msk (0x1UL << GPIO_SECCFGR_SEC4_Pos) /*!< 0x00000010 */
  8121. #define GPIO_SECCFGR_SEC4 GPIO_SECCFGR_SEC4_Msk
  8122. #define GPIO_SECCFGR_SEC5_Pos (5U)
  8123. #define GPIO_SECCFGR_SEC5_Msk (0x1UL << GPIO_SECCFGR_SEC5_Pos) /*!< 0x00000020 */
  8124. #define GPIO_SECCFGR_SEC5 GPIO_SECCFGR_SEC5_Msk
  8125. #define GPIO_SECCFGR_SEC6_Pos (6U)
  8126. #define GPIO_SECCFGR_SEC6_Msk (0x1UL << GPIO_SECCFGR_SEC6_Pos) /*!< 0x00000040 */
  8127. #define GPIO_SECCFGR_SEC6 GPIO_SECCFGR_SEC6_Msk
  8128. #define GPIO_SECCFGR_SEC7_Pos (7U)
  8129. #define GPIO_SECCFGR_SEC7_Msk (0x1UL << GPIO_SECCFGR_SEC7_Pos) /*!< 0x00000080 */
  8130. #define GPIO_SECCFGR_SEC7 GPIO_SECCFGR_SEC7_Msk
  8131. #define GPIO_SECCFGR_SEC8_Pos (8U)
  8132. #define GPIO_SECCFGR_SEC8_Msk (0x1UL << GPIO_SECCFGR_SEC8_Pos) /*!< 0x00000100 */
  8133. #define GPIO_SECCFGR_SEC8 GPIO_SECCFGR_SEC8_Msk
  8134. #define GPIO_SECCFGR_SEC9_Pos (9U)
  8135. #define GPIO_SECCFGR_SEC9_Msk (0x1UL << GPIO_SECCFGR_SEC9_Pos) /*!< 0x00000200 */
  8136. #define GPIO_SECCFGR_SEC9 GPIO_SECCFGR_SEC9_Msk
  8137. #define GPIO_SECCFGR_SEC10_Pos (10U)
  8138. #define GPIO_SECCFGR_SEC10_Msk (0x1UL << GPIO_SECCFGR_SEC10_Pos) /*!< 0x00000400 */
  8139. #define GPIO_SECCFGR_SEC10 GPIO_SECCFGR_SEC10_Msk
  8140. #define GPIO_SECCFGR_SEC11_Pos (11U)
  8141. #define GPIO_SECCFGR_SEC11_Msk (0x1UL << GPIO_SECCFGR_SEC11_Pos) /*!< 0x00000800 */
  8142. #define GPIO_SECCFGR_SEC11 GPIO_SECCFGR_SEC11_Msk
  8143. #define GPIO_SECCFGR_SEC12_Pos (12U)
  8144. #define GPIO_SECCFGR_SEC12_Msk (0x1UL << GPIO_SECCFGR_SEC12_Pos) /*!< 0x00001000 */
  8145. #define GPIO_SECCFGR_SEC12 GPIO_SECCFGR_SEC12_Msk
  8146. #define GPIO_SECCFGR_SEC13_Pos (13U)
  8147. #define GPIO_SECCFGR_SEC13_Msk (0x1UL << GPIO_SECCFGR_SEC13_Pos) /*!< 0x00002000 */
  8148. #define GPIO_SECCFGR_SEC13 GPIO_SECCFGR_SEC13_Msk
  8149. #define GPIO_SECCFGR_SEC14_Pos (14U)
  8150. #define GPIO_SECCFGR_SEC14_Msk (0x1UL << GPIO_SECCFGR_SEC14_Pos) /*!< 0x00004000 */
  8151. #define GPIO_SECCFGR_SEC14 GPIO_SECCFGR_SEC14_Msk
  8152. #define GPIO_SECCFGR_SEC15_Pos (15U)
  8153. #define GPIO_SECCFGR_SEC15_Msk (0x1UL << GPIO_SECCFGR_SEC15_Pos) /*!< 0x00008000 */
  8154. #define GPIO_SECCFGR_SEC15 GPIO_SECCFGR_SEC15_Msk
  8155. /******************************************************************************/
  8156. /* */
  8157. /* HASH */
  8158. /* */
  8159. /******************************************************************************/
  8160. /****************** Bits definition for HASH_CR register ********************/
  8161. #define HASH_CR_INIT_Pos (2U)
  8162. #define HASH_CR_INIT_Msk (0x1UL << HASH_CR_INIT_Pos) /*!< 0x00000004 */
  8163. #define HASH_CR_INIT HASH_CR_INIT_Msk
  8164. #define HASH_CR_DMAE_Pos (3U)
  8165. #define HASH_CR_DMAE_Msk (0x1UL << HASH_CR_DMAE_Pos) /*!< 0x00000008 */
  8166. #define HASH_CR_DMAE HASH_CR_DMAE_Msk
  8167. #define HASH_CR_DATATYPE_Pos (4U)
  8168. #define HASH_CR_DATATYPE_Msk (0x3UL << HASH_CR_DATATYPE_Pos) /*!< 0x00000030 */
  8169. #define HASH_CR_DATATYPE HASH_CR_DATATYPE_Msk
  8170. #define HASH_CR_DATATYPE_0 (0x1UL << HASH_CR_DATATYPE_Pos) /*!< 0x00000010 */
  8171. #define HASH_CR_DATATYPE_1 (0x2UL << HASH_CR_DATATYPE_Pos) /*!< 0x00000020 */
  8172. #define HASH_CR_MODE_Pos (6U)
  8173. #define HASH_CR_MODE_Msk (0x1UL << HASH_CR_MODE_Pos) /*!< 0x00000040 */
  8174. #define HASH_CR_MODE HASH_CR_MODE_Msk
  8175. #define HASH_CR_ALGO_Pos (7U)
  8176. #define HASH_CR_ALGO_Msk (0x801UL << HASH_CR_ALGO_Pos) /*!< 0x00040080 */
  8177. #define HASH_CR_ALGO HASH_CR_ALGO_Msk
  8178. #define HASH_CR_ALGO_0 (0x001UL << HASH_CR_ALGO_Pos) /*!< 0x00000080 */
  8179. #define HASH_CR_ALGO_1 (0x800UL << HASH_CR_ALGO_Pos) /*!< 0x00040000 */
  8180. #define HASH_CR_NBW_Pos (8U)
  8181. #define HASH_CR_NBW_Msk (0xFUL << HASH_CR_NBW_Pos) /*!< 0x00000F00 */
  8182. #define HASH_CR_NBW HASH_CR_NBW_Msk
  8183. #define HASH_CR_NBW_0 (0x1UL << HASH_CR_NBW_Pos) /*!< 0x00000100 */
  8184. #define HASH_CR_NBW_1 (0x2UL << HASH_CR_NBW_Pos) /*!< 0x00000200 */
  8185. #define HASH_CR_NBW_2 (0x4UL << HASH_CR_NBW_Pos) /*!< 0x00000400 */
  8186. #define HASH_CR_NBW_3 (0x8UL << HASH_CR_NBW_Pos) /*!< 0x00000800 */
  8187. #define HASH_CR_DINNE_Pos (12U)
  8188. #define HASH_CR_DINNE_Msk (0x1UL << HASH_CR_DINNE_Pos) /*!< 0x00001000 */
  8189. #define HASH_CR_DINNE HASH_CR_DINNE_Msk
  8190. #define HASH_CR_MDMAT_Pos (13U)
  8191. #define HASH_CR_MDMAT_Msk (0x1UL << HASH_CR_MDMAT_Pos) /*!< 0x00002000 */
  8192. #define HASH_CR_MDMAT HASH_CR_MDMAT_Msk
  8193. #define HASH_CR_LKEY_Pos (16U)
  8194. #define HASH_CR_LKEY_Msk (0x1UL << HASH_CR_LKEY_Pos) /*!< 0x00010000 */
  8195. #define HASH_CR_LKEY HASH_CR_LKEY_Msk
  8196. /****************** Bits definition for HASH_STR register *******************/
  8197. #define HASH_STR_NBLW_Pos (0U)
  8198. #define HASH_STR_NBLW_Msk (0x1FUL << HASH_STR_NBLW_Pos) /*!< 0x0000001F */
  8199. #define HASH_STR_NBLW HASH_STR_NBLW_Msk
  8200. #define HASH_STR_NBLW_0 (0x01UL << HASH_STR_NBLW_Pos) /*!< 0x00000001 */
  8201. #define HASH_STR_NBLW_1 (0x02UL << HASH_STR_NBLW_Pos) /*!< 0x00000002 */
  8202. #define HASH_STR_NBLW_2 (0x04UL << HASH_STR_NBLW_Pos) /*!< 0x00000004 */
  8203. #define HASH_STR_NBLW_3 (0x08UL << HASH_STR_NBLW_Pos) /*!< 0x00000008 */
  8204. #define HASH_STR_NBLW_4 (0x10UL << HASH_STR_NBLW_Pos) /*!< 0x00000010 */
  8205. #define HASH_STR_DCAL_Pos (8U)
  8206. #define HASH_STR_DCAL_Msk (0x1UL << HASH_STR_DCAL_Pos) /*!< 0x00000100 */
  8207. #define HASH_STR_DCAL HASH_STR_DCAL_Msk
  8208. /****************** Bits definition for HASH_IMR register *******************/
  8209. #define HASH_IMR_DINIE_Pos (0U)
  8210. #define HASH_IMR_DINIE_Msk (0x1UL << HASH_IMR_DINIE_Pos) /*!< 0x00000001 */
  8211. #define HASH_IMR_DINIE HASH_IMR_DINIE_Msk
  8212. #define HASH_IMR_DCIE_Pos (1U)
  8213. #define HASH_IMR_DCIE_Msk (0x1UL << HASH_IMR_DCIE_Pos) /*!< 0x00000002 */
  8214. #define HASH_IMR_DCIE HASH_IMR_DCIE_Msk
  8215. /****************** Bits definition for HASH_SR register ********************/
  8216. #define HASH_SR_DINIS_Pos (0U)
  8217. #define HASH_SR_DINIS_Msk (0x1UL << HASH_SR_DINIS_Pos) /*!< 0x00000001 */
  8218. #define HASH_SR_DINIS HASH_SR_DINIS_Msk
  8219. #define HASH_SR_DCIS_Pos (1U)
  8220. #define HASH_SR_DCIS_Msk (0x1UL << HASH_SR_DCIS_Pos) /*!< 0x00000002 */
  8221. #define HASH_SR_DCIS HASH_SR_DCIS_Msk
  8222. #define HASH_SR_DMAS_Pos (2U)
  8223. #define HASH_SR_DMAS_Msk (0x1UL << HASH_SR_DMAS_Pos) /*!< 0x00000004 */
  8224. #define HASH_SR_DMAS HASH_SR_DMAS_Msk
  8225. #define HASH_SR_BUSY_Pos (3U)
  8226. #define HASH_SR_BUSY_Msk (0x1UL << HASH_SR_BUSY_Pos) /*!< 0x00000008 */
  8227. #define HASH_SR_BUSY HASH_SR_BUSY_Msk
  8228. /******************************************************************************/
  8229. /* */
  8230. /* Inter-integrated Circuit Interface (I2C) */
  8231. /* */
  8232. /******************************************************************************/
  8233. /******************* Bit definition for I2C_CR1 register ********************/
  8234. #define I2C_CR1_PE_Pos (0U)
  8235. #define I2C_CR1_PE_Msk (0x1UL << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  8236. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  8237. #define I2C_CR1_TXIE_Pos (1U)
  8238. #define I2C_CR1_TXIE_Msk (0x1UL << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  8239. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  8240. #define I2C_CR1_RXIE_Pos (2U)
  8241. #define I2C_CR1_RXIE_Msk (0x1UL << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  8242. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  8243. #define I2C_CR1_ADDRIE_Pos (3U)
  8244. #define I2C_CR1_ADDRIE_Msk (0x1UL << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  8245. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  8246. #define I2C_CR1_NACKIE_Pos (4U)
  8247. #define I2C_CR1_NACKIE_Msk (0x1UL << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  8248. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  8249. #define I2C_CR1_STOPIE_Pos (5U)
  8250. #define I2C_CR1_STOPIE_Msk (0x1UL << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  8251. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  8252. #define I2C_CR1_TCIE_Pos (6U)
  8253. #define I2C_CR1_TCIE_Msk (0x1UL << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  8254. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  8255. #define I2C_CR1_ERRIE_Pos (7U)
  8256. #define I2C_CR1_ERRIE_Msk (0x1UL << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  8257. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  8258. #define I2C_CR1_DNF_Pos (8U)
  8259. #define I2C_CR1_DNF_Msk (0xFUL << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  8260. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  8261. #define I2C_CR1_ANFOFF_Pos (12U)
  8262. #define I2C_CR1_ANFOFF_Msk (0x1UL << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  8263. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  8264. #define I2C_CR1_SWRST_Pos (13U)
  8265. #define I2C_CR1_SWRST_Msk (0x1UL << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  8266. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  8267. #define I2C_CR1_TXDMAEN_Pos (14U)
  8268. #define I2C_CR1_TXDMAEN_Msk (0x1UL << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  8269. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  8270. #define I2C_CR1_RXDMAEN_Pos (15U)
  8271. #define I2C_CR1_RXDMAEN_Msk (0x1UL << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  8272. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  8273. #define I2C_CR1_SBC_Pos (16U)
  8274. #define I2C_CR1_SBC_Msk (0x1UL << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  8275. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  8276. #define I2C_CR1_NOSTRETCH_Pos (17U)
  8277. #define I2C_CR1_NOSTRETCH_Msk (0x1UL << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  8278. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  8279. #define I2C_CR1_WUPEN_Pos (18U)
  8280. #define I2C_CR1_WUPEN_Msk (0x1UL << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  8281. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  8282. #define I2C_CR1_GCEN_Pos (19U)
  8283. #define I2C_CR1_GCEN_Msk (0x1UL << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  8284. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  8285. #define I2C_CR1_SMBHEN_Pos (20U)
  8286. #define I2C_CR1_SMBHEN_Msk (0x1UL << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  8287. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  8288. #define I2C_CR1_SMBDEN_Pos (21U)
  8289. #define I2C_CR1_SMBDEN_Msk (0x1UL << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  8290. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  8291. #define I2C_CR1_ALERTEN_Pos (22U)
  8292. #define I2C_CR1_ALERTEN_Msk (0x1UL << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  8293. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  8294. #define I2C_CR1_PECEN_Pos (23U)
  8295. #define I2C_CR1_PECEN_Msk (0x1UL << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  8296. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  8297. /****************** Bit definition for I2C_CR2 register *********************/
  8298. #define I2C_CR2_SADD_Pos (0U)
  8299. #define I2C_CR2_SADD_Msk (0x3FFUL << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  8300. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  8301. #define I2C_CR2_RD_WRN_Pos (10U)
  8302. #define I2C_CR2_RD_WRN_Msk (0x1UL << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  8303. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  8304. #define I2C_CR2_ADD10_Pos (11U)
  8305. #define I2C_CR2_ADD10_Msk (0x1UL << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  8306. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  8307. #define I2C_CR2_HEAD10R_Pos (12U)
  8308. #define I2C_CR2_HEAD10R_Msk (0x1UL << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  8309. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  8310. #define I2C_CR2_START_Pos (13U)
  8311. #define I2C_CR2_START_Msk (0x1UL << I2C_CR2_START_Pos) /*!< 0x00002000 */
  8312. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  8313. #define I2C_CR2_STOP_Pos (14U)
  8314. #define I2C_CR2_STOP_Msk (0x1UL << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  8315. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  8316. #define I2C_CR2_NACK_Pos (15U)
  8317. #define I2C_CR2_NACK_Msk (0x1UL << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  8318. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  8319. #define I2C_CR2_NBYTES_Pos (16U)
  8320. #define I2C_CR2_NBYTES_Msk (0xFFUL << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  8321. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  8322. #define I2C_CR2_RELOAD_Pos (24U)
  8323. #define I2C_CR2_RELOAD_Msk (0x1UL << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  8324. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  8325. #define I2C_CR2_AUTOEND_Pos (25U)
  8326. #define I2C_CR2_AUTOEND_Msk (0x1UL << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  8327. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  8328. #define I2C_CR2_PECBYTE_Pos (26U)
  8329. #define I2C_CR2_PECBYTE_Msk (0x1UL << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  8330. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  8331. /******************* Bit definition for I2C_OAR1 register *******************/
  8332. #define I2C_OAR1_OA1_Pos (0U)
  8333. #define I2C_OAR1_OA1_Msk (0x3FFUL << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  8334. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  8335. #define I2C_OAR1_OA1MODE_Pos (10U)
  8336. #define I2C_OAR1_OA1MODE_Msk (0x1UL << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  8337. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  8338. #define I2C_OAR1_OA1EN_Pos (15U)
  8339. #define I2C_OAR1_OA1EN_Msk (0x1UL << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  8340. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  8341. /******************* Bit definition for I2C_OAR2 register *******************/
  8342. #define I2C_OAR2_OA2_Pos (1U)
  8343. #define I2C_OAR2_OA2_Msk (0x7FUL << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  8344. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  8345. #define I2C_OAR2_OA2MSK_Pos (8U)
  8346. #define I2C_OAR2_OA2MSK_Msk (0x7UL << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  8347. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  8348. #define I2C_OAR2_OA2NOMASK (0x00000000UL) /*!< No mask */
  8349. #define I2C_OAR2_OA2MASK01_Pos (8U)
  8350. #define I2C_OAR2_OA2MASK01_Msk (0x1UL << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */
  8351. #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */
  8352. #define I2C_OAR2_OA2MASK02_Pos (9U)
  8353. #define I2C_OAR2_OA2MASK02_Msk (0x1UL << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */
  8354. #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
  8355. #define I2C_OAR2_OA2MASK03_Pos (8U)
  8356. #define I2C_OAR2_OA2MASK03_Msk (0x3UL << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */
  8357. #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
  8358. #define I2C_OAR2_OA2MASK04_Pos (10U)
  8359. #define I2C_OAR2_OA2MASK04_Msk (0x1UL << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */
  8360. #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
  8361. #define I2C_OAR2_OA2MASK05_Pos (8U)
  8362. #define I2C_OAR2_OA2MASK05_Msk (0x5UL << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */
  8363. #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
  8364. #define I2C_OAR2_OA2MASK06_Pos (9U)
  8365. #define I2C_OAR2_OA2MASK06_Msk (0x3UL << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */
  8366. #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */
  8367. #define I2C_OAR2_OA2MASK07_Pos (8U)
  8368. #define I2C_OAR2_OA2MASK07_Msk (0x7UL << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */
  8369. #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */
  8370. #define I2C_OAR2_OA2EN_Pos (15U)
  8371. #define I2C_OAR2_OA2EN_Msk (0x1UL << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  8372. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  8373. /******************* Bit definition for I2C_TIMINGR register *****************/
  8374. #define I2C_TIMINGR_SCLL_Pos (0U)
  8375. #define I2C_TIMINGR_SCLL_Msk (0xFFUL << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  8376. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  8377. #define I2C_TIMINGR_SCLH_Pos (8U)
  8378. #define I2C_TIMINGR_SCLH_Msk (0xFFUL << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  8379. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  8380. #define I2C_TIMINGR_SDADEL_Pos (16U)
  8381. #define I2C_TIMINGR_SDADEL_Msk (0xFUL << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  8382. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  8383. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  8384. #define I2C_TIMINGR_SCLDEL_Msk (0xFUL << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  8385. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  8386. #define I2C_TIMINGR_PRESC_Pos (28U)
  8387. #define I2C_TIMINGR_PRESC_Msk (0xFUL << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  8388. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  8389. /******************* Bit definition for I2C_TIMEOUTR register *****************/
  8390. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  8391. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFUL << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  8392. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  8393. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  8394. #define I2C_TIMEOUTR_TIDLE_Msk (0x1UL << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  8395. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  8396. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  8397. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1UL << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  8398. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  8399. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  8400. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFUL << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  8401. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  8402. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  8403. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1UL << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  8404. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  8405. /****************** Bit definition for I2C_ISR register *********************/
  8406. #define I2C_ISR_TXE_Pos (0U)
  8407. #define I2C_ISR_TXE_Msk (0x1UL << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  8408. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  8409. #define I2C_ISR_TXIS_Pos (1U)
  8410. #define I2C_ISR_TXIS_Msk (0x1UL << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  8411. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  8412. #define I2C_ISR_RXNE_Pos (2U)
  8413. #define I2C_ISR_RXNE_Msk (0x1UL << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  8414. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  8415. #define I2C_ISR_ADDR_Pos (3U)
  8416. #define I2C_ISR_ADDR_Msk (0x1UL << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  8417. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  8418. #define I2C_ISR_NACKF_Pos (4U)
  8419. #define I2C_ISR_NACKF_Msk (0x1UL << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  8420. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  8421. #define I2C_ISR_STOPF_Pos (5U)
  8422. #define I2C_ISR_STOPF_Msk (0x1UL << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  8423. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  8424. #define I2C_ISR_TC_Pos (6U)
  8425. #define I2C_ISR_TC_Msk (0x1UL << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  8426. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  8427. #define I2C_ISR_TCR_Pos (7U)
  8428. #define I2C_ISR_TCR_Msk (0x1UL << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  8429. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  8430. #define I2C_ISR_BERR_Pos (8U)
  8431. #define I2C_ISR_BERR_Msk (0x1UL << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  8432. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  8433. #define I2C_ISR_ARLO_Pos (9U)
  8434. #define I2C_ISR_ARLO_Msk (0x1UL << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  8435. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  8436. #define I2C_ISR_OVR_Pos (10U)
  8437. #define I2C_ISR_OVR_Msk (0x1UL << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  8438. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  8439. #define I2C_ISR_PECERR_Pos (11U)
  8440. #define I2C_ISR_PECERR_Msk (0x1UL << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  8441. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  8442. #define I2C_ISR_TIMEOUT_Pos (12U)
  8443. #define I2C_ISR_TIMEOUT_Msk (0x1UL << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  8444. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  8445. #define I2C_ISR_ALERT_Pos (13U)
  8446. #define I2C_ISR_ALERT_Msk (0x1UL << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  8447. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  8448. #define I2C_ISR_BUSY_Pos (15U)
  8449. #define I2C_ISR_BUSY_Msk (0x1UL << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  8450. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  8451. #define I2C_ISR_DIR_Pos (16U)
  8452. #define I2C_ISR_DIR_Msk (0x1UL << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  8453. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  8454. #define I2C_ISR_ADDCODE_Pos (17U)
  8455. #define I2C_ISR_ADDCODE_Msk (0x7FUL << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  8456. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  8457. /****************** Bit definition for I2C_ICR register *********************/
  8458. #define I2C_ICR_ADDRCF_Pos (3U)
  8459. #define I2C_ICR_ADDRCF_Msk (0x1UL << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  8460. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  8461. #define I2C_ICR_NACKCF_Pos (4U)
  8462. #define I2C_ICR_NACKCF_Msk (0x1UL << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  8463. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  8464. #define I2C_ICR_STOPCF_Pos (5U)
  8465. #define I2C_ICR_STOPCF_Msk (0x1UL << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  8466. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  8467. #define I2C_ICR_BERRCF_Pos (8U)
  8468. #define I2C_ICR_BERRCF_Msk (0x1UL << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  8469. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  8470. #define I2C_ICR_ARLOCF_Pos (9U)
  8471. #define I2C_ICR_ARLOCF_Msk (0x1UL << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  8472. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  8473. #define I2C_ICR_OVRCF_Pos (10U)
  8474. #define I2C_ICR_OVRCF_Msk (0x1UL << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  8475. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  8476. #define I2C_ICR_PECCF_Pos (11U)
  8477. #define I2C_ICR_PECCF_Msk (0x1UL << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  8478. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  8479. #define I2C_ICR_TIMOUTCF_Pos (12U)
  8480. #define I2C_ICR_TIMOUTCF_Msk (0x1UL << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  8481. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  8482. #define I2C_ICR_ALERTCF_Pos (13U)
  8483. #define I2C_ICR_ALERTCF_Msk (0x1UL << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  8484. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  8485. /****************** Bit definition for I2C_PECR register ********************/
  8486. #define I2C_PECR_PEC_Pos (0U)
  8487. #define I2C_PECR_PEC_Msk (0xFFUL << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  8488. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  8489. /****************** Bit definition for I2C_RXDR register ********************/
  8490. #define I2C_RXDR_RXDATA_Pos (0U)
  8491. #define I2C_RXDR_RXDATA_Msk (0xFFUL << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  8492. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  8493. /****************** Bit definition for I2C_TXDR register ********************/
  8494. #define I2C_TXDR_TXDATA_Pos (0U)
  8495. #define I2C_TXDR_TXDATA_Msk (0xFFUL << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  8496. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  8497. /******************************************************************************/
  8498. /* */
  8499. /* ICACHE */
  8500. /* */
  8501. /******************************************************************************/
  8502. /****************** Bit definition for ICACHE_CR register *******************/
  8503. #define ICACHE_CR_EN_Pos (0U)
  8504. #define ICACHE_CR_EN_Msk (0x1UL << ICACHE_CR_EN_Pos) /*!< 0x00000001 */
  8505. #define ICACHE_CR_EN ICACHE_CR_EN_Msk /*!< Enable */
  8506. #define ICACHE_CR_CACHEINV_Pos (1U)
  8507. #define ICACHE_CR_CACHEINV_Msk (0x1UL << ICACHE_CR_CACHEINV_Pos) /*!< 0x00000002 */
  8508. #define ICACHE_CR_CACHEINV ICACHE_CR_CACHEINV_Msk /*!< Cache invalidation */
  8509. #define ICACHE_CR_WAYSEL_Pos (2U)
  8510. #define ICACHE_CR_WAYSEL_Msk (0x1UL << ICACHE_CR_WAYSEL_Pos) /*!< 0x00000004 */
  8511. #define ICACHE_CR_WAYSEL ICACHE_CR_WAYSEL_Msk /*!< Ways selection */
  8512. #define ICACHE_CR_HITMEN_Pos (16U)
  8513. #define ICACHE_CR_HITMEN_Msk (0x1UL << ICACHE_CR_HITMEN_Pos) /*!< 0x00010000 */
  8514. #define ICACHE_CR_HITMEN ICACHE_CR_HITMEN_Msk /*!< Hit monitor enable */
  8515. #define ICACHE_CR_MISSMEN_Pos (17U)
  8516. #define ICACHE_CR_MISSMEN_Msk (0x1UL << ICACHE_CR_MISSMEN_Pos) /*!< 0x00020000 */
  8517. #define ICACHE_CR_MISSMEN ICACHE_CR_MISSMEN_Msk /*!< Miss monitor enable */
  8518. #define ICACHE_CR_HITMRST_Pos (18U)
  8519. #define ICACHE_CR_HITMRST_Msk (0x1UL << ICACHE_CR_HITMRST_Pos) /*!< 0x00040000 */
  8520. #define ICACHE_CR_HITMRST ICACHE_CR_HITMRST_Msk /*!< Hit monitor reset */
  8521. #define ICACHE_CR_MISSMRST_Pos (19U)
  8522. #define ICACHE_CR_MISSMRST_Msk (0x1UL << ICACHE_CR_MISSMRST_Pos) /*!< 0x00080000 */
  8523. #define ICACHE_CR_MISSMRST ICACHE_CR_MISSMRST_Msk /*!< Miss monitor reset */
  8524. /****************** Bit definition for ICACHE_SR register *******************/
  8525. #define ICACHE_SR_BUSYF_Pos (0U)
  8526. #define ICACHE_SR_BUSYF_Msk (0x1UL << ICACHE_SR_BUSYF_Pos) /*!< 0x00000001 */
  8527. #define ICACHE_SR_BUSYF ICACHE_SR_BUSYF_Msk /*!< Busy flag */
  8528. #define ICACHE_SR_BSYENDF_Pos (1U)
  8529. #define ICACHE_SR_BSYENDF_Msk (0x1UL << ICACHE_SR_BSYENDF_Pos) /*!< 0x00000002 */
  8530. #define ICACHE_SR_BSYENDF ICACHE_SR_BSYENDF_Msk /*!< Busy end flag */
  8531. #define ICACHE_SR_ERRF_Pos (2U)
  8532. #define ICACHE_SR_ERRF_Msk (0x1UL << ICACHE_SR_ERRF_Pos) /*!< 0x00000004 */
  8533. #define ICACHE_SR_ERRF ICACHE_SR_ERRF_Msk /*!< Cache error flag */
  8534. /****************** Bit definition for ICACHE_IER register ******************/
  8535. #define ICACHE_IER_BSYENDIE_Pos (1U)
  8536. #define ICACHE_IER_BSYENDIE_Msk (0x1UL << ICACHE_IER_BSYENDIE_Pos) /*!< 0x00000002 */
  8537. #define ICACHE_IER_BSYENDIE ICACHE_IER_BSYENDIE_Msk /*!< Busy end interrupt enable */
  8538. #define ICACHE_IER_ERRIE_Pos (2U)
  8539. #define ICACHE_IER_ERRIE_Msk (0x1UL << ICACHE_IER_ERRIE_Pos) /*!< 0x00000004 */
  8540. #define ICACHE_IER_ERRIE ICACHE_IER_ERRIE_Msk /*!< Cache error interrupt enable */
  8541. /****************** Bit definition for ICACHE_FCR register ******************/
  8542. #define ICACHE_FCR_CBSYENDF_Pos (1U)
  8543. #define ICACHE_FCR_CBSYENDF_Msk (0x1UL << ICACHE_FCR_CBSYENDF_Pos) /*!< 0x00000002 */
  8544. #define ICACHE_FCR_CBSYENDF ICACHE_FCR_CBSYENDF_Msk /*!< Busy end flag clear */
  8545. #define ICACHE_FCR_CERRF_Pos (2U)
  8546. #define ICACHE_FCR_CERRF_Msk (0x1UL << ICACHE_FCR_CERRF_Pos) /*!< 0x00000004 */
  8547. #define ICACHE_FCR_CERRF ICACHE_FCR_CERRF /*!< Cache error flag clear */
  8548. /****************** Bit definition for ICACHE_HMONR register ****************/
  8549. #define ICACHE_HMONR_HITMON_Pos (0U)
  8550. #define ICACHE_HMONR_HITMON_Msk (0xFFFFFFFFUL << ICACHE_HMONR_HITMON_Pos)/*!< 0xFFFFFFFF */
  8551. #define ICACHE_HMONR_HITMON ICACHE_HMONR_HITMON_Msk /*!< Cache hit monitor register */
  8552. /****************** Bit definition for ICACHE_MMONR register ****************/
  8553. #define ICACHE_MMONR_MISSMON_Pos (0U)
  8554. #define ICACHE_MMONR_MISSMON_Msk (0xFFFFUL << ICACHE_MMONR_MISSMON_Pos) /*!< 0x0000FFFF */
  8555. #define ICACHE_MMONR_MISSMON ICACHE_MMONR_MISSMON_Msk /*!< Cache miss monitor register */
  8556. /****************** Bit definition for ICACHE_CRRx register *****************/
  8557. #define ICACHE_CRRx_BASEADDR_Pos (0U)
  8558. #define ICACHE_CRRx_BASEADDR_Msk (0xFFUL << ICACHE_CRRx_BASEADDR_Pos) /*!< 0x000000FF */
  8559. #define ICACHE_CRRx_BASEADDR ICACHE_CRRx_BASEADDR_Msk /*!< Base address of region X to remap */
  8560. #define ICACHE_CRRx_RSIZE_Pos (9U)
  8561. #define ICACHE_CRRx_RSIZE_Msk (0x7UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000E00 */
  8562. #define ICACHE_CRRx_RSIZE ICACHE_CRRx_RSIZE_Msk /*!< Region X size */
  8563. #define ICACHE_CRRx_RSIZE_0 (0x1UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000200 */
  8564. #define ICACHE_CRRx_RSIZE_1 (0x2UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000400 */
  8565. #define ICACHE_CRRx_RSIZE_2 (0x4UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000800 */
  8566. #define ICACHE_CRRx_REN_Pos (15U)
  8567. #define ICACHE_CRRx_REN_Msk (0x1UL << ICACHE_CRRx_REN_Pos) /*!< 0x00008000 */
  8568. #define ICACHE_CRRx_REN ICACHE_CRRx_REN_Msk /*!< Region X enable */
  8569. #define ICACHE_CRRx_REMAPADDR_Pos (16U)
  8570. #define ICACHE_CRRx_REMAPADDR_Msk (0x7FFUL << ICACHE_CRRx_REMAPADDR_Pos) /*!< 0x07FF0000 */
  8571. #define ICACHE_CRRx_REMAPADDR ICACHE_CRRx_REMAPADDR_Msk /*!< Remap address of Region X to be remapped */
  8572. #define ICACHE_CRRx_MSTSEL_Pos (28U)
  8573. #define ICACHE_CRRx_MSTSEL_Msk (0x1UL << ICACHE_CRRx_MSTSEL_Pos) /*!< 0x10000000 */
  8574. #define ICACHE_CRRx_MSTSEL ICACHE_CRRx_MSTSEL_Msk /*!< Region X AHB cache master selection */
  8575. #define ICACHE_CRRx_HBURST_Pos (31U)
  8576. #define ICACHE_CRRx_HBURST_Msk (0x1UL << ICACHE_CRRx_HBURST_Pos) /*!< 0x80000000 */
  8577. #define ICACHE_CRRx_HBURST ICACHE_CRRx_HBURST_Msk /*!< Region X output burst type */
  8578. /******************************************************************************/
  8579. /* */
  8580. /* Independent WATCHDOG (IWDG) */
  8581. /* */
  8582. /******************************************************************************/
  8583. /******************* Bit definition for IWDG_KR register ********************/
  8584. #define IWDG_KR_KEY_Pos (0U)
  8585. #define IWDG_KR_KEY_Msk (0xFFFFUL << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */
  8586. #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!<Key value (write only, read 0000h) */
  8587. /******************* Bit definition for IWDG_PR register ********************/
  8588. #define IWDG_PR_PR_Pos (0U)
  8589. #define IWDG_PR_PR_Msk (0x7UL << IWDG_PR_PR_Pos) /*!< 0x00000007 */
  8590. #define IWDG_PR_PR IWDG_PR_PR_Msk /*!<PR[2:0] (Prescaler divider) */
  8591. #define IWDG_PR_PR_0 (0x1UL << IWDG_PR_PR_Pos) /*!< 0x00000001 */
  8592. #define IWDG_PR_PR_1 (0x2UL << IWDG_PR_PR_Pos) /*!< 0x00000002 */
  8593. #define IWDG_PR_PR_2 (0x4UL << IWDG_PR_PR_Pos) /*!< 0x00000004 */
  8594. /******************* Bit definition for IWDG_RLR register *******************/
  8595. #define IWDG_RLR_RL_Pos (0U)
  8596. #define IWDG_RLR_RL_Msk (0xFFFUL << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */
  8597. #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!<Watchdog counter reload value */
  8598. /******************* Bit definition for IWDG_SR register ********************/
  8599. #define IWDG_SR_PVU_Pos (0U)
  8600. #define IWDG_SR_PVU_Msk (0x1UL << IWDG_SR_PVU_Pos) /*!< 0x00000001 */
  8601. #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */
  8602. #define IWDG_SR_RVU_Pos (1U)
  8603. #define IWDG_SR_RVU_Msk (0x1UL << IWDG_SR_RVU_Pos) /*!< 0x00000002 */
  8604. #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */
  8605. #define IWDG_SR_WVU_Pos (2U)
  8606. #define IWDG_SR_WVU_Msk (0x1UL << IWDG_SR_WVU_Pos) /*!< 0x00000004 */
  8607. #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */
  8608. /******************* Bit definition for IWDG_KR register ********************/
  8609. #define IWDG_WINR_WIN_Pos (0U)
  8610. #define IWDG_WINR_WIN_Msk (0xFFFUL << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */
  8611. #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */
  8612. /******************************************************************************/
  8613. /* */
  8614. /* Low Power Timer (LPTIM) */
  8615. /* */
  8616. /******************************************************************************/
  8617. /****************** Bit definition for LPTIM_ISR register *******************/
  8618. #define LPTIM_ISR_CMPM_Pos (0U)
  8619. #define LPTIM_ISR_CMPM_Msk (0x1UL << LPTIM_ISR_CMPM_Pos) /*!< 0x00000001 */
  8620. #define LPTIM_ISR_CMPM LPTIM_ISR_CMPM_Msk /*!< Compare match */
  8621. #define LPTIM_ISR_ARRM_Pos (1U)
  8622. #define LPTIM_ISR_ARRM_Msk (0x1UL << LPTIM_ISR_ARRM_Pos) /*!< 0x00000002 */
  8623. #define LPTIM_ISR_ARRM LPTIM_ISR_ARRM_Msk /*!< Autoreload match */
  8624. #define LPTIM_ISR_EXTTRIG_Pos (2U)
  8625. #define LPTIM_ISR_EXTTRIG_Msk (0x1UL << LPTIM_ISR_EXTTRIG_Pos) /*!< 0x00000004 */
  8626. #define LPTIM_ISR_EXTTRIG LPTIM_ISR_EXTTRIG_Msk /*!< External trigger edge event */
  8627. #define LPTIM_ISR_CMPOK_Pos (3U)
  8628. #define LPTIM_ISR_CMPOK_Msk (0x1UL << LPTIM_ISR_CMPOK_Pos) /*!< 0x00000008 */
  8629. #define LPTIM_ISR_CMPOK LPTIM_ISR_CMPOK_Msk /*!< Compare register update OK */
  8630. #define LPTIM_ISR_ARROK_Pos (4U)
  8631. #define LPTIM_ISR_ARROK_Msk (0x1UL << LPTIM_ISR_ARROK_Pos) /*!< 0x00000010 */
  8632. #define LPTIM_ISR_ARROK LPTIM_ISR_ARROK_Msk /*!< Autoreload register update OK */
  8633. #define LPTIM_ISR_UP_Pos (5U)
  8634. #define LPTIM_ISR_UP_Msk (0x1UL << LPTIM_ISR_UP_Pos) /*!< 0x00000020 */
  8635. #define LPTIM_ISR_UP LPTIM_ISR_UP_Msk /*!< Counter direction change down to up */
  8636. #define LPTIM_ISR_DOWN_Pos (6U)
  8637. #define LPTIM_ISR_DOWN_Msk (0x1UL << LPTIM_ISR_DOWN_Pos) /*!< 0x00000040 */
  8638. #define LPTIM_ISR_DOWN LPTIM_ISR_DOWN_Msk /*!< Counter direction change up to down */
  8639. #define LPTIM_ISR_UE_Pos (7U)
  8640. #define LPTIM_ISR_UE_Msk (0x1UL << LPTIM_ISR_UE_Pos) /*!< 0x00000080 */
  8641. #define LPTIM_ISR_UE LPTIM_ISR_UE_Msk /*!< Update event occurrence */
  8642. #define LPTIM_ISR_REPOK_Pos (8U)
  8643. #define LPTIM_ISR_REPOK_Msk (0x1UL << LPTIM_ISR_REPOK_Pos) /*!< 0x00000100 */
  8644. #define LPTIM_ISR_REPOK LPTIM_ISR_REPOK_Msk /*!< Repetition register update OK */
  8645. /****************** Bit definition for LPTIM_ICR register *******************/
  8646. #define LPTIM_ICR_CMPMCF_Pos (0U)
  8647. #define LPTIM_ICR_CMPMCF_Msk (0x1UL << LPTIM_ICR_CMPMCF_Pos) /*!< 0x00000001 */
  8648. #define LPTIM_ICR_CMPMCF LPTIM_ICR_CMPMCF_Msk /*!< Compare match Clear Flag */
  8649. #define LPTIM_ICR_ARRMCF_Pos (1U)
  8650. #define LPTIM_ICR_ARRMCF_Msk (0x1UL << LPTIM_ICR_ARRMCF_Pos) /*!< 0x00000002 */
  8651. #define LPTIM_ICR_ARRMCF LPTIM_ICR_ARRMCF_Msk /*!< Autoreload match Clear Flag */
  8652. #define LPTIM_ICR_EXTTRIGCF_Pos (2U)
  8653. #define LPTIM_ICR_EXTTRIGCF_Msk (0x1UL << LPTIM_ICR_EXTTRIGCF_Pos) /*!< 0x00000004 */
  8654. #define LPTIM_ICR_EXTTRIGCF LPTIM_ICR_EXTTRIGCF_Msk /*!< External trigger edge event Clear Flag */
  8655. #define LPTIM_ICR_CMPOKCF_Pos (3U)
  8656. #define LPTIM_ICR_CMPOKCF_Msk (0x1UL << LPTIM_ICR_CMPOKCF_Pos) /*!< 0x00000008 */
  8657. #define LPTIM_ICR_CMPOKCF LPTIM_ICR_CMPOKCF_Msk /*!< Compare register update OK Clear Flag */
  8658. #define LPTIM_ICR_ARROKCF_Pos (4U)
  8659. #define LPTIM_ICR_ARROKCF_Msk (0x1UL << LPTIM_ICR_ARROKCF_Pos) /*!< 0x00000010 */
  8660. #define LPTIM_ICR_ARROKCF LPTIM_ICR_ARROKCF_Msk /*!< Autoreload register update OK Clear Flag */
  8661. #define LPTIM_ICR_UPCF_Pos (5U)
  8662. #define LPTIM_ICR_UPCF_Msk (0x1UL << LPTIM_ICR_UPCF_Pos) /*!< 0x00000020 */
  8663. #define LPTIM_ICR_UPCF LPTIM_ICR_UPCF_Msk /*!< Counter direction change down to up Clear Flag */
  8664. #define LPTIM_ICR_DOWNCF_Pos (6U)
  8665. #define LPTIM_ICR_DOWNCF_Msk (0x1UL << LPTIM_ICR_DOWNCF_Pos) /*!< 0x00000040 */
  8666. #define LPTIM_ICR_DOWNCF LPTIM_ICR_DOWNCF_Msk /*!< Counter direction change up to down Clear Flag */
  8667. #define LPTIM_ICR_UECF_Pos (7U)
  8668. #define LPTIM_ICR_UECF_Msk (0x1UL << LPTIM_ICR_UECF_Pos) /*!< 0x00000080 */
  8669. #define LPTIM_ICR_UECF LPTIM_ICR_UECF_Msk /*!< Update event Clear Flag */
  8670. #define LPTIM_ICR_REPOKCF_Pos (8U)
  8671. #define LPTIM_ICR_REPOKCF_Msk (0x1UL << LPTIM_ICR_REPOKCF_Pos) /*!< 0x00000100 */
  8672. #define LPTIM_ICR_REPOKCF LPTIM_ICR_REPOKCF_Msk /*!< Repetition register update OK Clear Flag */
  8673. /****************** Bit definition for LPTIM_IER register ********************/
  8674. #define LPTIM_IER_CMPMIE_Pos (0U)
  8675. #define LPTIM_IER_CMPMIE_Msk (0x1UL << LPTIM_IER_CMPMIE_Pos) /*!< 0x00000001 */
  8676. #define LPTIM_IER_CMPMIE LPTIM_IER_CMPMIE_Msk /*!< Compare match Interrupt Enable */
  8677. #define LPTIM_IER_ARRMIE_Pos (1U)
  8678. #define LPTIM_IER_ARRMIE_Msk (0x1UL << LPTIM_IER_ARRMIE_Pos) /*!< 0x00000002 */
  8679. #define LPTIM_IER_ARRMIE LPTIM_IER_ARRMIE_Msk /*!< Autoreload match Interrupt Enable */
  8680. #define LPTIM_IER_EXTTRIGIE_Pos (2U)
  8681. #define LPTIM_IER_EXTTRIGIE_Msk (0x1UL << LPTIM_IER_EXTTRIGIE_Pos) /*!< 0x00000004 */
  8682. #define LPTIM_IER_EXTTRIGIE LPTIM_IER_EXTTRIGIE_Msk /*!< External trigger edge event Interrupt Enable */
  8683. #define LPTIM_IER_CMPOKIE_Pos (3U)
  8684. #define LPTIM_IER_CMPOKIE_Msk (0x1UL << LPTIM_IER_CMPOKIE_Pos) /*!< 0x00000008 */
  8685. #define LPTIM_IER_CMPOKIE LPTIM_IER_CMPOKIE_Msk /*!< Compare register update OK Interrupt Enable */
  8686. #define LPTIM_IER_ARROKIE_Pos (4U)
  8687. #define LPTIM_IER_ARROKIE_Msk (0x1UL << LPTIM_IER_ARROKIE_Pos) /*!< 0x00000010 */
  8688. #define LPTIM_IER_ARROKIE LPTIM_IER_ARROKIE_Msk /*!< Autoreload register update OK Interrupt Enable */
  8689. #define LPTIM_IER_UPIE_Pos (5U)
  8690. #define LPTIM_IER_UPIE_Msk (0x1UL << LPTIM_IER_UPIE_Pos) /*!< 0x00000020 */
  8691. #define LPTIM_IER_UPIE LPTIM_IER_UPIE_Msk /*!< Counter direction change down to up Interrupt Enable */
  8692. #define LPTIM_IER_DOWNIE_Pos (6U)
  8693. #define LPTIM_IER_DOWNIE_Msk (0x1UL << LPTIM_IER_DOWNIE_Pos) /*!< 0x00000040 */
  8694. #define LPTIM_IER_DOWNIE LPTIM_IER_DOWNIE_Msk /*!< Counter direction change up to down Interrupt Enable */
  8695. #define LPTIM_IER_UEIE_Pos (7U)
  8696. #define LPTIM_IER_UEIE_Msk (0x1UL << LPTIM_IER_UEIE_Pos) /*!< 0x00000080 */
  8697. #define LPTIM_IER_UEIE LPTIM_IER_UEIE_Msk /*!< Update event Interrupt Enable */
  8698. #define LPTIM_IER_REPOKIE_Pos (8U)
  8699. #define LPTIM_IER_REPOKIE_Msk (0x1UL << LPTIM_IER_REPOKIE_Pos) /*!< 0x00000100 */
  8700. #define LPTIM_IER_REPOKIE LPTIM_IER_REPOKIE_Msk /*!< Repetition register update OK Interrupt Enable */
  8701. /****************** Bit definition for LPTIM_CFGR register *******************/
  8702. #define LPTIM_CFGR_CKSEL_Pos (0U)
  8703. #define LPTIM_CFGR_CKSEL_Msk (0x1UL << LPTIM_CFGR_CKSEL_Pos) /*!< 0x00000001 */
  8704. #define LPTIM_CFGR_CKSEL LPTIM_CFGR_CKSEL_Msk /*!< Clock selector */
  8705. #define LPTIM_CFGR_CKPOL_Pos (1U)
  8706. #define LPTIM_CFGR_CKPOL_Msk (0x3UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000006 */
  8707. #define LPTIM_CFGR_CKPOL LPTIM_CFGR_CKPOL_Msk /*!< CKPOL[1:0] bits (Clock polarity) */
  8708. #define LPTIM_CFGR_CKPOL_0 (0x1UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000002 */
  8709. #define LPTIM_CFGR_CKPOL_1 (0x2UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000004 */
  8710. #define LPTIM_CFGR_CKFLT_Pos (3U)
  8711. #define LPTIM_CFGR_CKFLT_Msk (0x3UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000018 */
  8712. #define LPTIM_CFGR_CKFLT LPTIM_CFGR_CKFLT_Msk /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */
  8713. #define LPTIM_CFGR_CKFLT_0 (0x1UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000008 */
  8714. #define LPTIM_CFGR_CKFLT_1 (0x2UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000010 */
  8715. #define LPTIM_CFGR_TRGFLT_Pos (6U)
  8716. #define LPTIM_CFGR_TRGFLT_Msk (0x3UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x000000C0 */
  8717. #define LPTIM_CFGR_TRGFLT LPTIM_CFGR_TRGFLT_Msk /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */
  8718. #define LPTIM_CFGR_TRGFLT_0 (0x1UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000040 */
  8719. #define LPTIM_CFGR_TRGFLT_1 (0x2UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000080 */
  8720. #define LPTIM_CFGR_PRESC_Pos (9U)
  8721. #define LPTIM_CFGR_PRESC_Msk (0x7UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000E00 */
  8722. #define LPTIM_CFGR_PRESC LPTIM_CFGR_PRESC_Msk /*!< PRESC[2:0] bits (Clock prescaler) */
  8723. #define LPTIM_CFGR_PRESC_0 (0x1UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000200 */
  8724. #define LPTIM_CFGR_PRESC_1 (0x2UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000400 */
  8725. #define LPTIM_CFGR_PRESC_2 (0x4UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000800 */
  8726. #define LPTIM_CFGR_TRIGSEL_Pos (13U)
  8727. #define LPTIM_CFGR_TRIGSEL_Msk (0x7UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x0000E000 */
  8728. #define LPTIM_CFGR_TRIGSEL LPTIM_CFGR_TRIGSEL_Msk /*!< TRIGSEL[2:0]] bits (Trigger selector) */
  8729. #define LPTIM_CFGR_TRIGSEL_0 (0x1UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00002000 */
  8730. #define LPTIM_CFGR_TRIGSEL_1 (0x2UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00004000 */
  8731. #define LPTIM_CFGR_TRIGSEL_2 (0x4UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00008000 */
  8732. #define LPTIM_CFGR_TRIGEN_Pos (17U)
  8733. #define LPTIM_CFGR_TRIGEN_Msk (0x3UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00060000 */
  8734. #define LPTIM_CFGR_TRIGEN LPTIM_CFGR_TRIGEN_Msk /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */
  8735. #define LPTIM_CFGR_TRIGEN_0 (0x1UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00020000 */
  8736. #define LPTIM_CFGR_TRIGEN_1 (0x2UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00040000 */
  8737. #define LPTIM_CFGR_TIMOUT_Pos (19U)
  8738. #define LPTIM_CFGR_TIMOUT_Msk (0x1UL << LPTIM_CFGR_TIMOUT_Pos) /*!< 0x00080000 */
  8739. #define LPTIM_CFGR_TIMOUT LPTIM_CFGR_TIMOUT_Msk /*!< Timout enable */
  8740. #define LPTIM_CFGR_WAVE_Pos (20U)
  8741. #define LPTIM_CFGR_WAVE_Msk (0x1UL << LPTIM_CFGR_WAVE_Pos) /*!< 0x00100000 */
  8742. #define LPTIM_CFGR_WAVE LPTIM_CFGR_WAVE_Msk /*!< Waveform shape */
  8743. #define LPTIM_CFGR_WAVPOL_Pos (21U)
  8744. #define LPTIM_CFGR_WAVPOL_Msk (0x1UL << LPTIM_CFGR_WAVPOL_Pos) /*!< 0x00200000 */
  8745. #define LPTIM_CFGR_WAVPOL LPTIM_CFGR_WAVPOL_Msk /*!< Waveform shape polarity */
  8746. #define LPTIM_CFGR_PRELOAD_Pos (22U)
  8747. #define LPTIM_CFGR_PRELOAD_Msk (0x1UL << LPTIM_CFGR_PRELOAD_Pos) /*!< 0x00400000 */
  8748. #define LPTIM_CFGR_PRELOAD LPTIM_CFGR_PRELOAD_Msk /*!< Reg update mode */
  8749. #define LPTIM_CFGR_COUNTMODE_Pos (23U)
  8750. #define LPTIM_CFGR_COUNTMODE_Msk (0x1UL << LPTIM_CFGR_COUNTMODE_Pos) /*!< 0x00800000 */
  8751. #define LPTIM_CFGR_COUNTMODE LPTIM_CFGR_COUNTMODE_Msk /*!< Counter mode enable */
  8752. #define LPTIM_CFGR_ENC_Pos (24U)
  8753. #define LPTIM_CFGR_ENC_Msk (0x1UL << LPTIM_CFGR_ENC_Pos) /*!< 0x01000000 */
  8754. #define LPTIM_CFGR_ENC LPTIM_CFGR_ENC_Msk /*!< Encoder mode enable */
  8755. /****************** Bit definition for LPTIM_CR register ********************/
  8756. #define LPTIM_CR_ENABLE_Pos (0U)
  8757. #define LPTIM_CR_ENABLE_Msk (0x1UL << LPTIM_CR_ENABLE_Pos) /*!< 0x00000001 */
  8758. #define LPTIM_CR_ENABLE LPTIM_CR_ENABLE_Msk /*!< LPTIMer enable */
  8759. #define LPTIM_CR_SNGSTRT_Pos (1U)
  8760. #define LPTIM_CR_SNGSTRT_Msk (0x1UL << LPTIM_CR_SNGSTRT_Pos) /*!< 0x00000002 */
  8761. #define LPTIM_CR_SNGSTRT LPTIM_CR_SNGSTRT_Msk /*!< Timer start in single mode */
  8762. #define LPTIM_CR_CNTSTRT_Pos (2U)
  8763. #define LPTIM_CR_CNTSTRT_Msk (0x1UL << LPTIM_CR_CNTSTRT_Pos) /*!< 0x00000004 */
  8764. #define LPTIM_CR_CNTSTRT LPTIM_CR_CNTSTRT_Msk /*!< Timer start in continuous mode */
  8765. #define LPTIM_CR_COUNTRST_Pos (3U)
  8766. #define LPTIM_CR_COUNTRST_Msk (0x1UL << LPTIM_CR_COUNTRST_Pos) /*!< 0x00000008 */
  8767. #define LPTIM_CR_COUNTRST LPTIM_CR_COUNTRST_Msk /*!< Counter reset */
  8768. #define LPTIM_CR_RSTARE_Pos (4U)
  8769. #define LPTIM_CR_RSTARE_Msk (0x1UL << LPTIM_CR_RSTARE_Pos) /*!< 0x00000010 */
  8770. #define LPTIM_CR_RSTARE LPTIM_CR_RSTARE_Msk /*!< Reset after read enable */
  8771. /****************** Bit definition for LPTIM_CMP register *******************/
  8772. #define LPTIM_CMP_CMP_Pos (0U)
  8773. #define LPTIM_CMP_CMP_Msk (0xFFFFUL << LPTIM_CMP_CMP_Pos) /*!< 0x0000FFFF */
  8774. #define LPTIM_CMP_CMP LPTIM_CMP_CMP_Msk /*!< Compare register */
  8775. /****************** Bit definition for LPTIM_ARR register *******************/
  8776. #define LPTIM_ARR_ARR_Pos (0U)
  8777. #define LPTIM_ARR_ARR_Msk (0xFFFFUL << LPTIM_ARR_ARR_Pos) /*!< 0x0000FFFF */
  8778. #define LPTIM_ARR_ARR LPTIM_ARR_ARR_Msk /*!< Auto reload register */
  8779. /****************** Bit definition for LPTIM_CNT register *******************/
  8780. #define LPTIM_CNT_CNT_Pos (0U)
  8781. #define LPTIM_CNT_CNT_Msk (0xFFFFUL << LPTIM_CNT_CNT_Pos) /*!< 0x0000FFFF */
  8782. #define LPTIM_CNT_CNT LPTIM_CNT_CNT_Msk /*!< Counter register */
  8783. /****************** Bit definition for LPTIM_OR register *******************/
  8784. #define LPTIM_OR_OR_Pos (0U)
  8785. #define LPTIM_OR_OR_Msk (0x3UL << LPTIM_OR_OR_Pos) /*!< 0x00000003 */
  8786. #define LPTIM_OR_OR LPTIM_OR_OR_Msk /*!< OR[1:0] bits (Remap selection) */
  8787. #define LPTIM_OR_OR_0 (0x1UL << LPTIM_OR_OR_Pos) /*!< 0x00000001 */
  8788. #define LPTIM_OR_OR_1 (0x2UL << LPTIM_OR_OR_Pos) /*!< 0x00000002 */
  8789. /****************** Bit definition for LPTIM_RCR register *******************/
  8790. #define LPTIM_RCR_REP_Pos (0U)
  8791. #define LPTIM_RCR_REP_Msk (0xFFUL << LPTIM_RCR_REP_Pos) /*!< 0x000000FF */
  8792. #define LPTIM_RCR_REP LPTIM_RCR_REP_Msk /*!< Repetition Counter Value */
  8793. /******************************************************************************/
  8794. /* */
  8795. /* OCTOSPI */
  8796. /* */
  8797. /******************************************************************************/
  8798. /***************** Bit definition for OCTOSPI_CR register *******************/
  8799. #define OCTOSPI_CR_EN_Pos (0U)
  8800. #define OCTOSPI_CR_EN_Msk (0x1UL << OCTOSPI_CR_EN_Pos) /*!< 0x00000001 */
  8801. #define OCTOSPI_CR_EN OCTOSPI_CR_EN_Msk /*!< Enable */
  8802. #define OCTOSPI_CR_ABORT_Pos (1U)
  8803. #define OCTOSPI_CR_ABORT_Msk (0x1UL << OCTOSPI_CR_ABORT_Pos) /*!< 0x00000002 */
  8804. #define OCTOSPI_CR_ABORT OCTOSPI_CR_ABORT_Msk /*!< Abort request */
  8805. #define OCTOSPI_CR_DMAEN_Pos (2U)
  8806. #define OCTOSPI_CR_DMAEN_Msk (0x1UL << OCTOSPI_CR_DMAEN_Pos) /*!< 0x00000004 */
  8807. #define OCTOSPI_CR_DMAEN OCTOSPI_CR_DMAEN_Msk /*!< DMA Enable */
  8808. #define OCTOSPI_CR_TCEN_Pos (3U)
  8809. #define OCTOSPI_CR_TCEN_Msk (0x1UL << OCTOSPI_CR_TCEN_Pos) /*!< 0x00000008 */
  8810. #define OCTOSPI_CR_TCEN OCTOSPI_CR_TCEN_Msk /*!< Timeout Counter Enable */
  8811. #define OCTOSPI_CR_DQM_Pos (6U)
  8812. #define OCTOSPI_CR_DQM_Msk (0x1UL << OCTOSPI_CR_DQM_Pos) /*!< 0x00000040 */
  8813. #define OCTOSPI_CR_DQM OCTOSPI_CR_DQM_Msk /*!< Dual-Quad Mode */
  8814. #define OCTOSPI_CR_FSEL_Pos (7U)
  8815. #define OCTOSPI_CR_FSEL_Msk (0x1UL << OCTOSPI_CR_FSEL_Pos) /*!< 0x00000080 */
  8816. #define OCTOSPI_CR_FSEL OCTOSPI_CR_FSEL_Msk /*!< Flash Select */
  8817. #define OCTOSPI_CR_FTHRES_Pos (8U)
  8818. #define OCTOSPI_CR_FTHRES_Msk (0x1FUL << OCTOSPI_CR_FTHRES_Pos) /*!< 0x00001F00 */
  8819. #define OCTOSPI_CR_FTHRES OCTOSPI_CR_FTHRES_Msk /*!< FIFO Threshold Level */
  8820. #define OCTOSPI_CR_TEIE_Pos (16U)
  8821. #define OCTOSPI_CR_TEIE_Msk (0x1UL << OCTOSPI_CR_TEIE_Pos) /*!< 0x00010000 */
  8822. #define OCTOSPI_CR_TEIE OCTOSPI_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  8823. #define OCTOSPI_CR_TCIE_Pos (17U)
  8824. #define OCTOSPI_CR_TCIE_Msk (0x1UL << OCTOSPI_CR_TCIE_Pos) /*!< 0x00020000 */
  8825. #define OCTOSPI_CR_TCIE OCTOSPI_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  8826. #define OCTOSPI_CR_FTIE_Pos (18U)
  8827. #define OCTOSPI_CR_FTIE_Msk (0x1UL << OCTOSPI_CR_FTIE_Pos) /*!< 0x00040000 */
  8828. #define OCTOSPI_CR_FTIE OCTOSPI_CR_FTIE_Msk /*!< FIFO Threshold Interrupt Enable */
  8829. #define OCTOSPI_CR_SMIE_Pos (19U)
  8830. #define OCTOSPI_CR_SMIE_Msk (0x1UL << OCTOSPI_CR_SMIE_Pos) /*!< 0x00080000 */
  8831. #define OCTOSPI_CR_SMIE OCTOSPI_CR_SMIE_Msk /*!< Status Match Interrupt Enable */
  8832. #define OCTOSPI_CR_TOIE_Pos (20U)
  8833. #define OCTOSPI_CR_TOIE_Msk (0x1UL << OCTOSPI_CR_TOIE_Pos) /*!< 0x00100000 */
  8834. #define OCTOSPI_CR_TOIE OCTOSPI_CR_TOIE_Msk /*!< TimeOut Interrupt Enable */
  8835. #define OCTOSPI_CR_APMS_Pos (22U)
  8836. #define OCTOSPI_CR_APMS_Msk (0x1UL << OCTOSPI_CR_APMS_Pos) /*!< 0x00400000 */
  8837. #define OCTOSPI_CR_APMS OCTOSPI_CR_APMS_Msk /*!< Automatic Poll Mode Stop */
  8838. #define OCTOSPI_CR_PMM_Pos (23U)
  8839. #define OCTOSPI_CR_PMM_Msk (0x1UL << OCTOSPI_CR_PMM_Pos) /*!< 0x00800000 */
  8840. #define OCTOSPI_CR_PMM OCTOSPI_CR_PMM_Msk /*!< Polling Match Mode */
  8841. #define OCTOSPI_CR_FMODE_Pos (28U)
  8842. #define OCTOSPI_CR_FMODE_Msk (0x3UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x30000000 */
  8843. #define OCTOSPI_CR_FMODE OCTOSPI_CR_FMODE_Msk /*!< Functional Mode */
  8844. #define OCTOSPI_CR_FMODE_0 (0x1UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x10000000 */
  8845. #define OCTOSPI_CR_FMODE_1 (0x2UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x20000000 */
  8846. /**************** Bit definition for OCTOSPI_DCR1 register ******************/
  8847. #define OCTOSPI_DCR1_CKMODE_Pos (0U)
  8848. #define OCTOSPI_DCR1_CKMODE_Msk (0x1UL << OCTOSPI_DCR1_CKMODE_Pos) /*!< 0x00000001 */
  8849. #define OCTOSPI_DCR1_CKMODE OCTOSPI_DCR1_CKMODE_Msk /*!< Mode 0 / Mode 3 */
  8850. #define OCTOSPI_DCR1_FRCK_Pos (1U)
  8851. #define OCTOSPI_DCR1_FRCK_Msk (0x1UL << OCTOSPI_DCR1_FRCK_Pos) /*!< 0x00000002 */
  8852. #define OCTOSPI_DCR1_FRCK OCTOSPI_DCR1_FRCK_Msk /*!< Free Running Clock */
  8853. #define OCTOSPI_DCR1_DLYBYP_Pos (3U)
  8854. #define OCTOSPI_DCR1_DLYBYP_Msk (0x1UL << OCTOSPI_DCR1_DLYBYP_Pos) /*!< 0x00000008 */
  8855. #define OCTOSPI_DCR1_DLYBYP OCTOSPI_DCR1_DLYBYP_Msk /*!< Delay Block Bypass */
  8856. #define OCTOSPI_DCR1_CSHT_Pos (8U)
  8857. #define OCTOSPI_DCR1_CSHT_Msk (0x7UL << OCTOSPI_DCR1_CSHT_Pos) /*!< 0x00000700 */
  8858. #define OCTOSPI_DCR1_CSHT OCTOSPI_DCR1_CSHT_Msk /*!< Chip Select High Time */
  8859. #define OCTOSPI_DCR1_DEVSIZE_Pos (16U)
  8860. #define OCTOSPI_DCR1_DEVSIZE_Msk (0x1FUL << OCTOSPI_DCR1_DEVSIZE_Pos) /*!< 0x001F0000 */
  8861. #define OCTOSPI_DCR1_DEVSIZE OCTOSPI_DCR1_DEVSIZE_Msk /*!< Device Size */
  8862. #define OCTOSPI_DCR1_MTYP_Pos (24U)
  8863. #define OCTOSPI_DCR1_MTYP_Msk (0x7UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x07000000 */
  8864. #define OCTOSPI_DCR1_MTYP OCTOSPI_DCR1_MTYP_Msk /*!< Memory Type */
  8865. #define OCTOSPI_DCR1_MTYP_0 (0x1UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x01000000 */
  8866. #define OCTOSPI_DCR1_MTYP_1 (0x2UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x02000000 */
  8867. #define OCTOSPI_DCR1_MTYP_2 (0x4UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x04000000 */
  8868. /**************** Bit definition for OCTOSPI_DCR2 register ******************/
  8869. #define OCTOSPI_DCR2_PRESCALER_Pos (0U)
  8870. #define OCTOSPI_DCR2_PRESCALER_Msk (0xFFUL << OCTOSPI_DCR2_PRESCALER_Pos) /*!< 0x000000FF */
  8871. #define OCTOSPI_DCR2_PRESCALER OCTOSPI_DCR2_PRESCALER_Msk /*!< Clock prescaler */
  8872. #define OCTOSPI_DCR2_WRAPSIZE_Pos (16U)
  8873. #define OCTOSPI_DCR2_WRAPSIZE_Msk (0x7UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00070000 */
  8874. #define OCTOSPI_DCR2_WRAPSIZE OCTOSPI_DCR2_WRAPSIZE_Msk /*!< Wrap Size */
  8875. #define OCTOSPI_DCR2_WRAPSIZE_0 (0x1UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00010000 */
  8876. #define OCTOSPI_DCR2_WRAPSIZE_1 (0x2UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00020000 */
  8877. #define OCTOSPI_DCR2_WRAPSIZE_2 (0x4UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00040000 */
  8878. /**************** Bit definition for OCTOSPI_DCR3 register ******************/
  8879. #define OCTOSPI_DCR3_CSBOUND_Pos (16U)
  8880. #define OCTOSPI_DCR3_CSBOUND_Msk (0x1FUL << OCTOSPI_DCR3_CSBOUND_Pos) /*!< 0x001F0000 */
  8881. #define OCTOSPI_DCR3_CSBOUND OCTOSPI_DCR3_CSBOUND_Msk /*!< CS Boundary */
  8882. /**************** Bit definition for OCTOSPI_DCR4 register ******************/
  8883. #define OCTOSPI_DCR4_REFRESH_Pos (0U)
  8884. #define OCTOSPI_DCR4_REFRESH_Msk (0xFFFFFFFFUL << OCTOSPI_DCR4_REFRESH_Pos)/*!< 0xFFFFFFFF */
  8885. #define OCTOSPI_DCR4_REFRESH OCTOSPI_DCR4_REFRESH_Msk /*!< Refresh rate */
  8886. /***************** Bit definition for OCTOSPI_SR register *******************/
  8887. #define OCTOSPI_SR_TEF_Pos (0U)
  8888. #define OCTOSPI_SR_TEF_Msk (0x1UL << OCTOSPI_SR_TEF_Pos) /*!< 0x00000001 */
  8889. #define OCTOSPI_SR_TEF OCTOSPI_SR_TEF_Msk /*!< Transfer Error Flag */
  8890. #define OCTOSPI_SR_TCF_Pos (1U)
  8891. #define OCTOSPI_SR_TCF_Msk (0x1UL << OCTOSPI_SR_TCF_Pos) /*!< 0x00000002 */
  8892. #define OCTOSPI_SR_TCF OCTOSPI_SR_TCF_Msk /*!< Transfer Complete Flag */
  8893. #define OCTOSPI_SR_FTF_Pos (2U)
  8894. #define OCTOSPI_SR_FTF_Msk (0x1UL << OCTOSPI_SR_FTF_Pos) /*!< 0x00000004 */
  8895. #define OCTOSPI_SR_FTF OCTOSPI_SR_FTF_Msk /*!< FIFO Threshold Flag */
  8896. #define OCTOSPI_SR_SMF_Pos (3U)
  8897. #define OCTOSPI_SR_SMF_Msk (0x1UL << OCTOSPI_SR_SMF_Pos) /*!< 0x00000008 */
  8898. #define OCTOSPI_SR_SMF OCTOSPI_SR_SMF_Msk /*!< Status Match Flag */
  8899. #define OCTOSPI_SR_TOF_Pos (4U)
  8900. #define OCTOSPI_SR_TOF_Msk (0x1UL << OCTOSPI_SR_TOF_Pos) /*!< 0x00000010 */
  8901. #define OCTOSPI_SR_TOF OCTOSPI_SR_TOF_Msk /*!< Timeout Flag */
  8902. #define OCTOSPI_SR_BUSY_Pos (5U)
  8903. #define OCTOSPI_SR_BUSY_Msk (0x1UL << OCTOSPI_SR_BUSY_Pos) /*!< 0x00000020 */
  8904. #define OCTOSPI_SR_BUSY OCTOSPI_SR_BUSY_Msk /*!< Busy */
  8905. #define OCTOSPI_SR_FLEVEL_Pos (8U)
  8906. #define OCTOSPI_SR_FLEVEL_Msk (0x3FUL << OCTOSPI_SR_FLEVEL_Pos) /*!< 0x00003F00 */
  8907. #define OCTOSPI_SR_FLEVEL OCTOSPI_SR_FLEVEL_Msk /*!< FIFO Level */
  8908. /**************** Bit definition for OCTOSPI_FCR register *******************/
  8909. #define OCTOSPI_FCR_CTEF_Pos (0U)
  8910. #define OCTOSPI_FCR_CTEF_Msk (0x1UL << OCTOSPI_FCR_CTEF_Pos) /*!< 0x00000001 */
  8911. #define OCTOSPI_FCR_CTEF OCTOSPI_FCR_CTEF_Msk /*!< Clear Transfer Error Flag */
  8912. #define OCTOSPI_FCR_CTCF_Pos (1U)
  8913. #define OCTOSPI_FCR_CTCF_Msk (0x1UL << OCTOSPI_FCR_CTCF_Pos) /*!< 0x00000002 */
  8914. #define OCTOSPI_FCR_CTCF OCTOSPI_FCR_CTCF_Msk /*!< Clear Transfer Complete Flag */
  8915. #define OCTOSPI_FCR_CSMF_Pos (3U)
  8916. #define OCTOSPI_FCR_CSMF_Msk (0x1UL << OCTOSPI_FCR_CSMF_Pos) /*!< 0x00000008 */
  8917. #define OCTOSPI_FCR_CSMF OCTOSPI_FCR_CSMF_Msk /*!< Clear Status Match Flag */
  8918. #define OCTOSPI_FCR_CTOF_Pos (4U)
  8919. #define OCTOSPI_FCR_CTOF_Msk (0x1UL << OCTOSPI_FCR_CTOF_Pos) /*!< 0x00000010 */
  8920. #define OCTOSPI_FCR_CTOF OCTOSPI_FCR_CTOF_Msk /*!< Clear Timeout Flag */
  8921. /**************** Bit definition for OCTOSPI_DLR register *******************/
  8922. #define OCTOSPI_DLR_DL_Pos (0U)
  8923. #define OCTOSPI_DLR_DL_Msk (0xFFFFFFFFUL << OCTOSPI_DLR_DL_Pos) /*!< 0xFFFFFFFF */
  8924. #define OCTOSPI_DLR_DL OCTOSPI_DLR_DL_Msk /*!< Data Length */
  8925. /***************** Bit definition for OCTOSPI_AR register *******************/
  8926. #define OCTOSPI_AR_ADDRESS_Pos (0U)
  8927. #define OCTOSPI_AR_ADDRESS_Msk (0xFFFFFFFFUL << OCTOSPI_AR_ADDRESS_Pos)/*!< 0xFFFFFFFF */
  8928. #define OCTOSPI_AR_ADDRESS OCTOSPI_AR_ADDRESS_Msk /*!< Address */
  8929. /***************** Bit definition for OCTOSPI_DR register *******************/
  8930. #define OCTOSPI_DR_DATA_Pos (0U)
  8931. #define OCTOSPI_DR_DATA_Msk (0xFFFFFFFFUL << OCTOSPI_DR_DATA_Pos) /*!< 0xFFFFFFFF */
  8932. #define OCTOSPI_DR_DATA OCTOSPI_DR_DATA_Msk /*!< Data */
  8933. /*************** Bit definition for OCTOSPI_PSMKR register ******************/
  8934. #define OCTOSPI_PSMKR_MASK_Pos (0U)
  8935. #define OCTOSPI_PSMKR_MASK_Msk (0xFFFFFFFFUL << OCTOSPI_PSMKR_MASK_Pos)/*!< 0xFFFFFFFF */
  8936. #define OCTOSPI_PSMKR_MASK OCTOSPI_PSMKR_MASK_Msk /*!< Status mask */
  8937. /*************** Bit definition for OCTOSPI_PSMAR register ******************/
  8938. #define OCTOSPI_PSMAR_MATCH_Pos (0U)
  8939. #define OCTOSPI_PSMAR_MATCH_Msk (0xFFFFFFFFUL << OCTOSPI_PSMAR_MATCH_Pos)/*!< 0xFFFFFFFF */
  8940. #define OCTOSPI_PSMAR_MATCH OCTOSPI_PSMAR_MATCH_Msk /*!< Status match */
  8941. /**************** Bit definition for OCTOSPI_PIR register *******************/
  8942. #define OCTOSPI_PIR_INTERVAL_Pos (0U)
  8943. #define OCTOSPI_PIR_INTERVAL_Msk (0xFFFFUL << OCTOSPI_PIR_INTERVAL_Pos) /*!< 0x0000FFFF */
  8944. #define OCTOSPI_PIR_INTERVAL OCTOSPI_PIR_INTERVAL_Msk /*!< Polling Interval */
  8945. /**************** Bit definition for OCTOSPI_CCR register *******************/
  8946. #define OCTOSPI_CCR_IMODE_Pos (0U)
  8947. #define OCTOSPI_CCR_IMODE_Msk (0x7UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000007 */
  8948. #define OCTOSPI_CCR_IMODE OCTOSPI_CCR_IMODE_Msk /*!< Instruction Mode */
  8949. #define OCTOSPI_CCR_IMODE_0 (0x1UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000001 */
  8950. #define OCTOSPI_CCR_IMODE_1 (0x2UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000002 */
  8951. #define OCTOSPI_CCR_IMODE_2 (0x4UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000004 */
  8952. #define OCTOSPI_CCR_IDTR_Pos (3U)
  8953. #define OCTOSPI_CCR_IDTR_Msk (0x1UL << OCTOSPI_CCR_IDTR_Pos) /*!< 0x00000008 */
  8954. #define OCTOSPI_CCR_IDTR OCTOSPI_CCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  8955. #define OCTOSPI_CCR_ISIZE_Pos (4U)
  8956. #define OCTOSPI_CCR_ISIZE_Msk (0x3UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000030 */
  8957. #define OCTOSPI_CCR_ISIZE OCTOSPI_CCR_ISIZE_Msk /*!< Instruction Size */
  8958. #define OCTOSPI_CCR_ISIZE_0 (0x1UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000010 */
  8959. #define OCTOSPI_CCR_ISIZE_1 (0x2UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000020 */
  8960. #define OCTOSPI_CCR_ADMODE_Pos (8U)
  8961. #define OCTOSPI_CCR_ADMODE_Msk (0x7UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000700 */
  8962. #define OCTOSPI_CCR_ADMODE OCTOSPI_CCR_ADMODE_Msk /*!< Address Mode */
  8963. #define OCTOSPI_CCR_ADMODE_0 (0x1UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000100 */
  8964. #define OCTOSPI_CCR_ADMODE_1 (0x2UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000200 */
  8965. #define OCTOSPI_CCR_ADMODE_2 (0x4UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000400 */
  8966. #define OCTOSPI_CCR_ADDTR_Pos (11U)
  8967. #define OCTOSPI_CCR_ADDTR_Msk (0x1UL << OCTOSPI_CCR_ADDTR_Pos) /*!< 0x00000800 */
  8968. #define OCTOSPI_CCR_ADDTR OCTOSPI_CCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  8969. #define OCTOSPI_CCR_ADSIZE_Pos (12U)
  8970. #define OCTOSPI_CCR_ADSIZE_Msk (0x3UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00003000 */
  8971. #define OCTOSPI_CCR_ADSIZE OCTOSPI_CCR_ADSIZE_Msk /*!< Address Size */
  8972. #define OCTOSPI_CCR_ADSIZE_0 (0x1UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00001000 */
  8973. #define OCTOSPI_CCR_ADSIZE_1 (0x2UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00002000 */
  8974. #define OCTOSPI_CCR_ABMODE_Pos (16U)
  8975. #define OCTOSPI_CCR_ABMODE_Msk (0x7UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00070000 */
  8976. #define OCTOSPI_CCR_ABMODE OCTOSPI_CCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  8977. #define OCTOSPI_CCR_ABMODE_0 (0x1UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00010000 */
  8978. #define OCTOSPI_CCR_ABMODE_1 (0x2UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00020000 */
  8979. #define OCTOSPI_CCR_ABMODE_2 (0x4UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00040000 */
  8980. #define OCTOSPI_CCR_ABDTR_Pos (19U)
  8981. #define OCTOSPI_CCR_ABDTR_Msk (0x1UL << OCTOSPI_CCR_ABDTR_Pos) /*!< 0x00080000 */
  8982. #define OCTOSPI_CCR_ABDTR OCTOSPI_CCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  8983. #define OCTOSPI_CCR_ABSIZE_Pos (20U)
  8984. #define OCTOSPI_CCR_ABSIZE_Msk (0x3UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00300000 */
  8985. #define OCTOSPI_CCR_ABSIZE OCTOSPI_CCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  8986. #define OCTOSPI_CCR_ABSIZE_0 (0x1UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00100000 */
  8987. #define OCTOSPI_CCR_ABSIZE_1 (0x2UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00200000 */
  8988. #define OCTOSPI_CCR_DMODE_Pos (24U)
  8989. #define OCTOSPI_CCR_DMODE_Msk (0x7UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x07000000 */
  8990. #define OCTOSPI_CCR_DMODE OCTOSPI_CCR_DMODE_Msk /*!< Data Mode */
  8991. #define OCTOSPI_CCR_DMODE_0 (0x1UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x01000000 */
  8992. #define OCTOSPI_CCR_DMODE_1 (0x2UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x02000000 */
  8993. #define OCTOSPI_CCR_DMODE_2 (0x4UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x04000000 */
  8994. #define OCTOSPI_CCR_DDTR_Pos (27U)
  8995. #define OCTOSPI_CCR_DDTR_Msk (0x1UL << OCTOSPI_CCR_DDTR_Pos) /*!< 0x08000000 */
  8996. #define OCTOSPI_CCR_DDTR OCTOSPI_CCR_DDTR_Msk /*!< Data Double Transfer Rate */
  8997. #define OCTOSPI_CCR_DQSE_Pos (29U)
  8998. #define OCTOSPI_CCR_DQSE_Msk (0x1UL << OCTOSPI_CCR_DQSE_Pos) /*!< 0x20000000 */
  8999. #define OCTOSPI_CCR_DQSE OCTOSPI_CCR_DQSE_Msk /*!< DQS Enable */
  9000. #define OCTOSPI_CCR_SIOO_Pos (31U)
  9001. #define OCTOSPI_CCR_SIOO_Msk (0x1UL << OCTOSPI_CCR_SIOO_Pos) /*!< 0x80000000 */
  9002. #define OCTOSPI_CCR_SIOO OCTOSPI_CCR_SIOO_Msk /*!< Send Instruction Only Once Mode */
  9003. /**************** Bit definition for OCTOSPI_TCR register *******************/
  9004. #define OCTOSPI_TCR_DCYC_Pos (0U)
  9005. #define OCTOSPI_TCR_DCYC_Msk (0x1FUL << OCTOSPI_TCR_DCYC_Pos) /*!< 0x0000001F */
  9006. #define OCTOSPI_TCR_DCYC OCTOSPI_TCR_DCYC_Msk /*!< Number of Dummy Cycles */
  9007. #define OCTOSPI_TCR_DHQC_Pos (28U)
  9008. #define OCTOSPI_TCR_DHQC_Msk (0x1UL << OCTOSPI_TCR_DHQC_Pos) /*!< 0x10000000 */
  9009. #define OCTOSPI_TCR_DHQC OCTOSPI_TCR_DHQC_Msk /*!< Delay Hold Quarter Cycle */
  9010. #define OCTOSPI_TCR_SSHIFT_Pos (30U)
  9011. #define OCTOSPI_TCR_SSHIFT_Msk (0x1UL << OCTOSPI_TCR_SSHIFT_Pos) /*!< 0x40000000 */
  9012. #define OCTOSPI_TCR_SSHIFT OCTOSPI_TCR_SSHIFT_Msk /*!< Sample Shift */
  9013. /***************** Bit definition for OCTOSPI_IR register *******************/
  9014. #define OCTOSPI_IR_INSTRUCTION_Pos (0U)
  9015. #define OCTOSPI_IR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_IR_INSTRUCTION_Pos)/*!< 0xFFFFFFFF */
  9016. #define OCTOSPI_IR_INSTRUCTION OCTOSPI_IR_INSTRUCTION_Msk /*!< Instruction */
  9017. /**************** Bit definition for OCTOSPI_ABR register *******************/
  9018. #define OCTOSPI_ABR_ALTERNATE_Pos (0U)
  9019. #define OCTOSPI_ABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_ABR_ALTERNATE_Pos)/*!< 0xFFFFFFFF */
  9020. #define OCTOSPI_ABR_ALTERNATE OCTOSPI_ABR_ALTERNATE_Msk /*!< Alternate Bytes */
  9021. /**************** Bit definition for OCTOSPI_LPTR register ******************/
  9022. #define OCTOSPI_LPTR_TIMEOUT_Pos (0U)
  9023. #define OCTOSPI_LPTR_TIMEOUT_Msk (0xFFFFUL << OCTOSPI_LPTR_TIMEOUT_Pos) /*!< 0x0000FFFF */
  9024. #define OCTOSPI_LPTR_TIMEOUT OCTOSPI_LPTR_TIMEOUT_Msk /*!< Timeout period */
  9025. /**************** Bit definition for OCTOSPI_WPCCR register *******************/
  9026. #define OCTOSPI_WPCCR_IMODE_Pos (0U)
  9027. #define OCTOSPI_WPCCR_IMODE_Msk (0x7UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000007 */
  9028. #define OCTOSPI_WPCCR_IMODE OCTOSPI_WPCCR_IMODE_Msk /*!< Instruction Mode */
  9029. #define OCTOSPI_WPCCR_IMODE_0 (0x1UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000001 */
  9030. #define OCTOSPI_WPCCR_IMODE_1 (0x2UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000002 */
  9031. #define OCTOSPI_WPCCR_IMODE_2 (0x4UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000004 */
  9032. #define OCTOSPI_WPCCR_IDTR_Pos (3U)
  9033. #define OCTOSPI_WPCCR_IDTR_Msk (0x1UL << OCTOSPI_WPCCR_IDTR_Pos) /*!< 0x00000008 */
  9034. #define OCTOSPI_WPCCR_IDTR OCTOSPI_WPCCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  9035. #define OCTOSPI_WPCCR_ISIZE_Pos (4U)
  9036. #define OCTOSPI_WPCCR_ISIZE_Msk (0x3UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000030 */
  9037. #define OCTOSPI_WPCCR_ISIZE OCTOSPI_WPCCR_ISIZE_Msk /*!< Instruction Size */
  9038. #define OCTOSPI_WPCCR_ISIZE_0 (0x1UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000010 */
  9039. #define OCTOSPI_WPCCR_ISIZE_1 (0x2UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000020 */
  9040. #define OCTOSPI_WPCCR_ADMODE_Pos (8U)
  9041. #define OCTOSPI_WPCCR_ADMODE_Msk (0x7UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000700 */
  9042. #define OCTOSPI_WPCCR_ADMODE OCTOSPI_WPCCR_ADMODE_Msk /*!< Address Mode */
  9043. #define OCTOSPI_WPCCR_ADMODE_0 (0x1UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000100 */
  9044. #define OCTOSPI_WPCCR_ADMODE_1 (0x2UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000200 */
  9045. #define OCTOSPI_WPCCR_ADMODE_2 (0x4UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000400 */
  9046. #define OCTOSPI_WPCCR_ADDTR_Pos (11U)
  9047. #define OCTOSPI_WPCCR_ADDTR_Msk (0x1UL << OCTOSPI_WPCCR_ADDTR_Pos) /*!< 0x00000800 */
  9048. #define OCTOSPI_WPCCR_ADDTR OCTOSPI_WPCCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  9049. #define OCTOSPI_WPCCR_ADSIZE_Pos (12U)
  9050. #define OCTOSPI_WPCCR_ADSIZE_Msk (0x3UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00003000 */
  9051. #define OCTOSPI_WPCCR_ADSIZE OCTOSPI_WPCCR_ADSIZE_Msk /*!< Address Size */
  9052. #define OCTOSPI_WPCCR_ADSIZE_0 (0x1UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00001000 */
  9053. #define OCTOSPI_WPCCR_ADSIZE_1 (0x2UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00002000 */
  9054. #define OCTOSPI_WPCCR_ABMODE_Pos (16U)
  9055. #define OCTOSPI_WPCCR_ABMODE_Msk (0x7UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00070000 */
  9056. #define OCTOSPI_WPCCR_ABMODE OCTOSPI_WPCCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  9057. #define OCTOSPI_WPCCR_ABMODE_0 (0x1UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00010000 */
  9058. #define OCTOSPI_WPCCR_ABMODE_1 (0x2UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00020000 */
  9059. #define OCTOSPI_WPCCR_ABMODE_2 (0x4UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00040000 */
  9060. #define OCTOSPI_WPCCR_ABDTR_Pos (19U)
  9061. #define OCTOSPI_WPCCR_ABDTR_Msk (0x1UL << OCTOSPI_WPCCR_ABDTR_Pos) /*!< 0x00080000 */
  9062. #define OCTOSPI_WPCCR_ABDTR OCTOSPI_WPCCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  9063. #define OCTOSPI_WPCCR_ABSIZE_Pos (20U)
  9064. #define OCTOSPI_WPCCR_ABSIZE_Msk (0x3UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00300000 */
  9065. #define OCTOSPI_WPCCR_ABSIZE OCTOSPI_WPCCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  9066. #define OCTOSPI_WPCCR_ABSIZE_0 (0x1UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00100000 */
  9067. #define OCTOSPI_WPCCR_ABSIZE_1 (0x2UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00200000 */
  9068. #define OCTOSPI_WPCCR_DMODE_Pos (24U)
  9069. #define OCTOSPI_WPCCR_DMODE_Msk (0x7UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x07000000 */
  9070. #define OCTOSPI_WPCCR_DMODE OCTOSPI_WPCCR_DMODE_Msk /*!< Data Mode */
  9071. #define OCTOSPI_WPCCR_DMODE_0 (0x1UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x01000000 */
  9072. #define OCTOSPI_WPCCR_DMODE_1 (0x2UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x02000000 */
  9073. #define OCTOSPI_WPCCR_DMODE_2 (0x4UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x04000000 */
  9074. #define OCTOSPI_WPCCR_DDTR_Pos (27U)
  9075. #define OCTOSPI_WPCCR_DDTR_Msk (0x1UL << OCTOSPI_WPCCR_DDTR_Pos) /*!< 0x08000000 */
  9076. #define OCTOSPI_WPCCR_DDTR OCTOSPI_WPCCR_DDTR_Msk /*!< Data Double Transfer Rate */
  9077. #define OCTOSPI_WPCCR_DQSE_Pos (29U)
  9078. #define OCTOSPI_WPCCR_DQSE_Msk (0x1UL << OCTOSPI_WPCCR_DQSE_Pos) /*!< 0x20000000 */
  9079. #define OCTOSPI_WPCCR_DQSE OCTOSPI_WPCCR_DQSE_Msk /*!< DQS Enable */
  9080. /**************** Bit definition for OCTOSPI_WPTCR register *******************/
  9081. #define OCTOSPI_WPTCR_DCYC_Pos (0U)
  9082. #define OCTOSPI_WPTCR_DCYC_Msk (0x1FUL << OCTOSPI_WPTCR_DCYC_Pos) /*!< 0x0000001F */
  9083. #define OCTOSPI_WPTCR_DCYC OCTOSPI_WPTCR_DCYC_Msk /*!< Number of Dummy Cycles */
  9084. #define OCTOSPI_WPTCR_DHQC_Pos (28U)
  9085. #define OCTOSPI_WPTCR_DHQC_Msk (0x1UL << OCTOSPI_WPTCR_DHQC_Pos) /*!< 0x10000000 */
  9086. #define OCTOSPI_WPTCR_DHQC OCTOSPI_WPTCR_DHQC_Msk /*!< Delay Hold Quarter Cycle */
  9087. #define OCTOSPI_WPTCR_SSHIFT_Pos (30U)
  9088. #define OCTOSPI_WPTCR_SSHIFT_Msk (0x1UL << OCTOSPI_WPTCR_SSHIFT_Pos) /*!< 0x40000000 */
  9089. #define OCTOSPI_WPTCR_SSHIFT OCTOSPI_WPTCR_SSHIFT_Msk /*!< Sample Shift */
  9090. /***************** Bit definition for OCTOSPI_WPIR register *******************/
  9091. #define OCTOSPI_WPIR_INSTRUCTION_Pos (0U)
  9092. #define OCTOSPI_WPIR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_WPIR_INSTRUCTION_Pos)/*!< 0xFFFFFFFF */
  9093. #define OCTOSPI_WPIR_INSTRUCTION OCTOSPI_WPIR_INSTRUCTION_Msk /*!< Instruction */
  9094. /**************** Bit definition for OCTOSPI_WPABR register *******************/
  9095. #define OCTOSPI_WPABR_ALTERNATE_Pos (0U)
  9096. #define OCTOSPI_WPABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_WPABR_ALTERNATE_Pos)/*!< 0xFFFFFFFF */
  9097. #define OCTOSPI_WPABR_ALTERNATE OCTOSPI_WPABR_ALTERNATE_Msk /*!< Alternate Bytes */
  9098. /**************** Bit definition for OCTOSPI_WCCR register ******************/
  9099. #define OCTOSPI_WCCR_IMODE_Pos (0U)
  9100. #define OCTOSPI_WCCR_IMODE_Msk (0x7UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000007 */
  9101. #define OCTOSPI_WCCR_IMODE OCTOSPI_WCCR_IMODE_Msk /*!< Instruction Mode */
  9102. #define OCTOSPI_WCCR_IMODE_0 (0x1UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000001 */
  9103. #define OCTOSPI_WCCR_IMODE_1 (0x2UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000002 */
  9104. #define OCTOSPI_WCCR_IMODE_2 (0x4UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000004 */
  9105. #define OCTOSPI_WCCR_IDTR_Pos (3U)
  9106. #define OCTOSPI_WCCR_IDTR_Msk (0x1UL << OCTOSPI_WCCR_IDTR_Pos) /*!< 0x00000008 */
  9107. #define OCTOSPI_WCCR_IDTR OCTOSPI_WCCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  9108. #define OCTOSPI_WCCR_ISIZE_Pos (4U)
  9109. #define OCTOSPI_WCCR_ISIZE_Msk (0x3UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000030 */
  9110. #define OCTOSPI_WCCR_ISIZE OCTOSPI_WCCR_ISIZE_Msk /*!< Instruction Size */
  9111. #define OCTOSPI_WCCR_ISIZE_0 (0x1UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000010 */
  9112. #define OCTOSPI_WCCR_ISIZE_1 (0x2UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000020 */
  9113. #define OCTOSPI_WCCR_ADMODE_Pos (8U)
  9114. #define OCTOSPI_WCCR_ADMODE_Msk (0x7UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000700 */
  9115. #define OCTOSPI_WCCR_ADMODE OCTOSPI_WCCR_ADMODE_Msk /*!< Address Mode */
  9116. #define OCTOSPI_WCCR_ADMODE_0 (0x1UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000100 */
  9117. #define OCTOSPI_WCCR_ADMODE_1 (0x2UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000200 */
  9118. #define OCTOSPI_WCCR_ADMODE_2 (0x4UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000400 */
  9119. #define OCTOSPI_WCCR_ADDTR_Pos (11U)
  9120. #define OCTOSPI_WCCR_ADDTR_Msk (0x1UL << OCTOSPI_WCCR_ADDTR_Pos) /*!< 0x00000800 */
  9121. #define OCTOSPI_WCCR_ADDTR OCTOSPI_WCCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  9122. #define OCTOSPI_WCCR_ADSIZE_Pos (12U)
  9123. #define OCTOSPI_WCCR_ADSIZE_Msk (0x3UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00003000 */
  9124. #define OCTOSPI_WCCR_ADSIZE OCTOSPI_WCCR_ADSIZE_Msk /*!< Address Size */
  9125. #define OCTOSPI_WCCR_ADSIZE_0 (0x1UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00001000 */
  9126. #define OCTOSPI_WCCR_ADSIZE_1 (0x2UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00002000 */
  9127. #define OCTOSPI_WCCR_ABMODE_Pos (16U)
  9128. #define OCTOSPI_WCCR_ABMODE_Msk (0x7UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00070000 */
  9129. #define OCTOSPI_WCCR_ABMODE OCTOSPI_WCCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  9130. #define OCTOSPI_WCCR_ABMODE_0 (0x1UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00010000 */
  9131. #define OCTOSPI_WCCR_ABMODE_1 (0x2UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00020000 */
  9132. #define OCTOSPI_WCCR_ABMODE_2 (0x4UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00040000 */
  9133. #define OCTOSPI_WCCR_ABDTR_Pos (19U)
  9134. #define OCTOSPI_WCCR_ABDTR_Msk (0x1UL << OCTOSPI_WCCR_ABDTR_Pos) /*!< 0x00080000 */
  9135. #define OCTOSPI_WCCR_ABDTR OCTOSPI_WCCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  9136. #define OCTOSPI_WCCR_ABSIZE_Pos (20U)
  9137. #define OCTOSPI_WCCR_ABSIZE_Msk (0x3UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00300000 */
  9138. #define OCTOSPI_WCCR_ABSIZE OCTOSPI_WCCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  9139. #define OCTOSPI_WCCR_ABSIZE_0 (0x1UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00100000 */
  9140. #define OCTOSPI_WCCR_ABSIZE_1 (0x2UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00200000 */
  9141. #define OCTOSPI_WCCR_DMODE_Pos (24U)
  9142. #define OCTOSPI_WCCR_DMODE_Msk (0x7UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x07000000 */
  9143. #define OCTOSPI_WCCR_DMODE OCTOSPI_WCCR_DMODE_Msk /*!< Data Mode */
  9144. #define OCTOSPI_WCCR_DMODE_0 (0x1UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x01000000 */
  9145. #define OCTOSPI_WCCR_DMODE_1 (0x2UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x02000000 */
  9146. #define OCTOSPI_WCCR_DMODE_2 (0x4UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x04000000 */
  9147. #define OCTOSPI_WCCR_DDTR_Pos (27U)
  9148. #define OCTOSPI_WCCR_DDTR_Msk (0x1UL << OCTOSPI_WCCR_DDTR_Pos) /*!< 0x08000000 */
  9149. #define OCTOSPI_WCCR_DDTR OCTOSPI_WCCR_DDTR_Msk /*!< Data Double Transfer Rate */
  9150. #define OCTOSPI_WCCR_DQSE_Pos (29U)
  9151. #define OCTOSPI_WCCR_DQSE_Msk (0x1UL << OCTOSPI_WCCR_DQSE_Pos) /*!< 0x20000000 */
  9152. #define OCTOSPI_WCCR_DQSE OCTOSPI_WCCR_DQSE_Msk /*!< DQS Enable */
  9153. /**************** Bit definition for OCTOSPI_WTCR register ******************/
  9154. #define OCTOSPI_WTCR_DCYC_Pos (0U)
  9155. #define OCTOSPI_WTCR_DCYC_Msk (0x1FUL << OCTOSPI_WTCR_DCYC_Pos) /*!< 0x0000001F */
  9156. #define OCTOSPI_WTCR_DCYC OCTOSPI_WTCR_DCYC_Msk /*!< Number of Dummy Cycles */
  9157. /**************** Bit definition for OCTOSPI_WIR register *******************/
  9158. #define OCTOSPI_WIR_INSTRUCTION_Pos (0U)
  9159. #define OCTOSPI_WIR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_WIR_INSTRUCTION_Pos)/*!< 0xFFFFFFFF */
  9160. #define OCTOSPI_WIR_INSTRUCTION OCTOSPI_WIR_INSTRUCTION_Msk /*!< Instruction */
  9161. /**************** Bit definition for OCTOSPI_WABR register ******************/
  9162. #define OCTOSPI_WABR_ALTERNATE_Pos (0U)
  9163. #define OCTOSPI_WABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_WABR_ALTERNATE_Pos)/*!< 0xFFFFFFFF */
  9164. #define OCTOSPI_WABR_ALTERNATE OCTOSPI_WABR_ALTERNATE_Msk /*!< Alternate Bytes */
  9165. /**************** Bit definition for OCTOSPI_HLCR register ******************/
  9166. #define OCTOSPI_HLCR_LM_Pos (0U)
  9167. #define OCTOSPI_HLCR_LM_Msk (0x1UL << OCTOSPI_HLCR_LM_Pos) /*!< 0x00000001 */
  9168. #define OCTOSPI_HLCR_LM OCTOSPI_HLCR_LM_Msk /*!< Latency Mode */
  9169. #define OCTOSPI_HLCR_WZL_Pos (1U)
  9170. #define OCTOSPI_HLCR_WZL_Msk (0x1UL << OCTOSPI_HLCR_WZL_Pos) /*!< 0x00000002 */
  9171. #define OCTOSPI_HLCR_WZL OCTOSPI_HLCR_WZL_Msk /*!< Write Zero Latency */
  9172. #define OCTOSPI_HLCR_TACC_Pos (8U)
  9173. #define OCTOSPI_HLCR_TACC_Msk (0xFFUL << OCTOSPI_HLCR_TACC_Pos) /*!< 0x0000FF00 */
  9174. #define OCTOSPI_HLCR_TACC OCTOSPI_HLCR_TACC_Msk /*!< Access Time */
  9175. #define OCTOSPI_HLCR_TRWR_Pos (16U)
  9176. #define OCTOSPI_HLCR_TRWR_Msk (0xFFUL << OCTOSPI_HLCR_TRWR_Pos) /*!< 0x00FF0000 */
  9177. #define OCTOSPI_HLCR_TRWR OCTOSPI_HLCR_TRWR_Msk /*!< Read Write Recovery Time */
  9178. /******************************************************************************/
  9179. /* */
  9180. /* Operational Amplifier (OPAMP) */
  9181. /* */
  9182. /******************************************************************************/
  9183. /********************* Bit definition for OPAMPx_CSR register ***************/
  9184. #define OPAMP_CSR_OPAMPxEN_Pos (0U)
  9185. #define OPAMP_CSR_OPAMPxEN_Msk (0x1UL << OPAMP_CSR_OPAMPxEN_Pos) /*!< 0x00000001 */
  9186. #define OPAMP_CSR_OPAMPxEN OPAMP_CSR_OPAMPxEN_Msk /*!< OPAMP enable */
  9187. #define OPAMP_CSR_OPALPM_Pos (1U)
  9188. #define OPAMP_CSR_OPALPM_Msk (0x1UL << OPAMP_CSR_OPALPM_Pos) /*!< 0x00000002 */
  9189. #define OPAMP_CSR_OPALPM OPAMP_CSR_OPALPM_Msk /*!< Operational amplifier Low Power Mode */
  9190. #define OPAMP_CSR_OPAMODE_Pos (2U)
  9191. #define OPAMP_CSR_OPAMODE_Msk (0x3UL << OPAMP_CSR_OPAMODE_Pos) /*!< 0x0000000C */
  9192. #define OPAMP_CSR_OPAMODE OPAMP_CSR_OPAMODE_Msk /*!< Operational amplifier PGA mode */
  9193. #define OPAMP_CSR_OPAMODE_0 (0x1UL << OPAMP_CSR_OPAMODE_Pos) /*!< 0x00000004 */
  9194. #define OPAMP_CSR_OPAMODE_1 (0x2UL << OPAMP_CSR_OPAMODE_Pos) /*!< 0x00000008 */
  9195. #define OPAMP_CSR_PGGAIN_Pos (4U)
  9196. #define OPAMP_CSR_PGGAIN_Msk (0x3UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000030 */
  9197. #define OPAMP_CSR_PGGAIN OPAMP_CSR_PGGAIN_Msk /*!< Operational amplifier Programmable amplifier gain value */
  9198. #define OPAMP_CSR_PGGAIN_0 (0x1UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000010 */
  9199. #define OPAMP_CSR_PGGAIN_1 (0x2UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000020 */
  9200. #define OPAMP_CSR_VMSEL_Pos (8U)
  9201. #define OPAMP_CSR_VMSEL_Msk (0x3UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000300 */
  9202. #define OPAMP_CSR_VMSEL OPAMP_CSR_VMSEL_Msk /*!< Inverting input selection */
  9203. #define OPAMP_CSR_VMSEL_0 (0x1UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000100 */
  9204. #define OPAMP_CSR_VMSEL_1 (0x2UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000200 */
  9205. #define OPAMP_CSR_VPSEL_Pos (10U)
  9206. #define OPAMP_CSR_VPSEL_Msk (0x1UL << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000400 */
  9207. #define OPAMP_CSR_VPSEL OPAMP_CSR_VPSEL_Msk /*!< Non inverted input selection */
  9208. #define OPAMP_CSR_CALON_Pos (12U)
  9209. #define OPAMP_CSR_CALON_Msk (0x1UL << OPAMP_CSR_CALON_Pos) /*!< 0x00001000 */
  9210. #define OPAMP_CSR_CALON OPAMP_CSR_CALON_Msk /*!< Calibration mode enable */
  9211. #define OPAMP_CSR_CALSEL_Pos (13U)
  9212. #define OPAMP_CSR_CALSEL_Msk (0x1UL << OPAMP_CSR_CALSEL_Pos) /*!< 0x00002000 */
  9213. #define OPAMP_CSR_CALSEL OPAMP_CSR_CALSEL_Msk /*!< Calibration selection */
  9214. #define OPAMP_CSR_USERTRIM_Pos (14U)
  9215. #define OPAMP_CSR_USERTRIM_Msk (0x1UL << OPAMP_CSR_USERTRIM_Pos) /*!< 0x00004000 */
  9216. #define OPAMP_CSR_USERTRIM OPAMP_CSR_USERTRIM_Msk /*!< User trimming enable */
  9217. #define OPAMP_CSR_CALOUT_Pos (15U)
  9218. #define OPAMP_CSR_CALOUT_Msk (0x1UL << OPAMP_CSR_CALOUT_Pos) /*!< 0x00008000 */
  9219. #define OPAMP_CSR_CALOUT OPAMP_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */
  9220. /********************* Bit definition for OPAMP1_CSR register ***************/
  9221. #define OPAMP1_CSR_OPAEN_Pos (0U)
  9222. #define OPAMP1_CSR_OPAEN_Msk (0x1UL << OPAMP1_CSR_OPAEN_Pos) /*!< 0x00000001 */
  9223. #define OPAMP1_CSR_OPAEN OPAMP1_CSR_OPAEN_Msk /*!< Operational amplifier1 Enable */
  9224. #define OPAMP1_CSR_OPALPM_Pos (1U)
  9225. #define OPAMP1_CSR_OPALPM_Msk (0x1UL << OPAMP1_CSR_OPALPM_Pos) /*!< 0x00000002 */
  9226. #define OPAMP1_CSR_OPALPM OPAMP1_CSR_OPALPM_Msk /*!< Operational amplifier1 Low Power Mode */
  9227. #define OPAMP1_CSR_OPAMODE_Pos (2U)
  9228. #define OPAMP1_CSR_OPAMODE_Msk (0x3UL << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x0000000C */
  9229. #define OPAMP1_CSR_OPAMODE OPAMP1_CSR_OPAMODE_Msk /*!< Operational amplifier1 PGA mode */
  9230. #define OPAMP1_CSR_OPAMODE_0 (0x1UL << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x00000004 */
  9231. #define OPAMP1_CSR_OPAMODE_1 (0x2UL << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x00000008 */
  9232. #define OPAMP1_CSR_PGAGAIN_Pos (4U)
  9233. #define OPAMP1_CSR_PGAGAIN_Msk (0x3UL << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000030 */
  9234. #define OPAMP1_CSR_PGAGAIN OPAMP1_CSR_PGAGAIN_Msk /*!< Operational amplifier1 Programmable amplifier gain value */
  9235. #define OPAMP1_CSR_PGAGAIN_0 (0x1UL << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000010 */
  9236. #define OPAMP1_CSR_PGAGAIN_1 (0x2UL << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000020 */
  9237. #define OPAMP1_CSR_VMSEL_Pos (8U)
  9238. #define OPAMP1_CSR_VMSEL_Msk (0x3UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000300 */
  9239. #define OPAMP1_CSR_VMSEL OPAMP1_CSR_VMSEL_Msk /*!< Inverting input selection */
  9240. #define OPAMP1_CSR_VMSEL_0 (0x1UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000100 */
  9241. #define OPAMP1_CSR_VMSEL_1 (0x2UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000200 */
  9242. #define OPAMP1_CSR_VPSEL_Pos (10U)
  9243. #define OPAMP1_CSR_VPSEL_Msk (0x1UL << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000400 */
  9244. #define OPAMP1_CSR_VPSEL OPAMP1_CSR_VPSEL_Msk /*!< Non inverted input selection */
  9245. #define OPAMP1_CSR_CALON_Pos (12U)
  9246. #define OPAMP1_CSR_CALON_Msk (0x1UL << OPAMP1_CSR_CALON_Pos) /*!< 0x00001000 */
  9247. #define OPAMP1_CSR_CALON OPAMP1_CSR_CALON_Msk /*!< Calibration mode enable */
  9248. #define OPAMP1_CSR_CALSEL_Pos (13U)
  9249. #define OPAMP1_CSR_CALSEL_Msk (0x1UL << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00002000 */
  9250. #define OPAMP1_CSR_CALSEL OPAMP1_CSR_CALSEL_Msk /*!< Calibration selection */
  9251. #define OPAMP1_CSR_USERTRIM_Pos (14U)
  9252. #define OPAMP1_CSR_USERTRIM_Msk (0x1UL << OPAMP1_CSR_USERTRIM_Pos) /*!< 0x00004000 */
  9253. #define OPAMP1_CSR_USERTRIM OPAMP1_CSR_USERTRIM_Msk /*!< User trimming enable */
  9254. #define OPAMP1_CSR_CALOUT_Pos (15U)
  9255. #define OPAMP1_CSR_CALOUT_Msk (0x1UL << OPAMP1_CSR_CALOUT_Pos) /*!< 0x00008000 */
  9256. #define OPAMP1_CSR_CALOUT OPAMP1_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */
  9257. #define OPAMP1_CSR_OPARANGE_Pos (31U)
  9258. #define OPAMP1_CSR_OPARANGE_Msk (0x1UL << OPAMP1_CSR_OPARANGE_Pos) /*!< 0x80000000 */
  9259. #define OPAMP1_CSR_OPARANGE OPAMP1_CSR_OPARANGE_Msk /*!< Common to several OPAMP instances: Operational amplifier voltage supply range. Bit intended to be used with OPAMP common instance (OPAMP_Common_TypeDef) */
  9260. /********************* Bit definition for OPAMP2_CSR register ***************/
  9261. #define OPAMP2_CSR_OPAEN_Pos (0U)
  9262. #define OPAMP2_CSR_OPAEN_Msk (0x1UL << OPAMP2_CSR_OPAEN_Pos) /*!< 0x00000001 */
  9263. #define OPAMP2_CSR_OPAEN OPAMP2_CSR_OPAEN_Msk /*!< Operational amplifier2 Enable */
  9264. #define OPAMP2_CSR_OPALPM_Pos (1U)
  9265. #define OPAMP2_CSR_OPALPM_Msk (0x1UL << OPAMP2_CSR_OPALPM_Pos) /*!< 0x00000002 */
  9266. #define OPAMP2_CSR_OPALPM OPAMP2_CSR_OPALPM_Msk /*!< Operational amplifier2 Low Power Mode */
  9267. #define OPAMP2_CSR_OPAMODE_Pos (2U)
  9268. #define OPAMP2_CSR_OPAMODE_Msk (0x3UL << OPAMP2_CSR_OPAMODE_Pos) /*!< 0x0000000C */
  9269. #define OPAMP2_CSR_OPAMODE OPAMP2_CSR_OPAMODE_Msk /*!< Operational amplifier2 PGA mode */
  9270. #define OPAMP2_CSR_OPAMODE_0 (0x1UL << OPAMP2_CSR_OPAMODE_Pos) /*!< 0x00000004 */
  9271. #define OPAMP2_CSR_OPAMODE_1 (0x2UL << OPAMP2_CSR_OPAMODE_Pos) /*!< 0x00000008 */
  9272. #define OPAMP2_CSR_PGAGAIN_Pos (4U)
  9273. #define OPAMP2_CSR_PGAGAIN_Msk (0x3UL << OPAMP2_CSR_PGAGAIN_Pos) /*!< 0x00000030 */
  9274. #define OPAMP2_CSR_PGAGAIN OPAMP2_CSR_PGAGAIN_Msk /*!< Operational amplifier2 Programmable amplifier gain value */
  9275. #define OPAMP2_CSR_PGAGAIN_0 (0x1UL << OPAMP2_CSR_PGAGAIN_Pos) /*!< 0x00000010 */
  9276. #define OPAMP2_CSR_PGAGAIN_1 (0x2UL << OPAMP2_CSR_PGAGAIN_Pos) /*!< 0x00000020 */
  9277. #define OPAMP2_CSR_VMSEL_Pos (8U)
  9278. #define OPAMP2_CSR_VMSEL_Msk (0x3UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000300 */
  9279. #define OPAMP2_CSR_VMSEL OPAMP2_CSR_VMSEL_Msk /*!< Inverting input selection */
  9280. #define OPAMP2_CSR_VMSEL_0 (0x1UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000100 */
  9281. #define OPAMP2_CSR_VMSEL_1 (0x2UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000200 */
  9282. #define OPAMP2_CSR_VPSEL_Pos (10U)
  9283. #define OPAMP2_CSR_VPSEL_Msk (0x1UL << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000400 */
  9284. #define OPAMP2_CSR_VPSEL OPAMP2_CSR_VPSEL_Msk /*!< Non inverted input selection */
  9285. #define OPAMP2_CSR_CALON_Pos (12U)
  9286. #define OPAMP2_CSR_CALON_Msk (0x1UL << OPAMP2_CSR_CALON_Pos) /*!< 0x00001000 */
  9287. #define OPAMP2_CSR_CALON OPAMP2_CSR_CALON_Msk /*!< Calibration mode enable */
  9288. #define OPAMP2_CSR_CALSEL_Pos (13U)
  9289. #define OPAMP2_CSR_CALSEL_Msk (0x1UL << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00002000 */
  9290. #define OPAMP2_CSR_CALSEL OPAMP2_CSR_CALSEL_Msk /*!< Calibration selection */
  9291. #define OPAMP2_CSR_USERTRIM_Pos (14U)
  9292. #define OPAMP2_CSR_USERTRIM_Msk (0x1UL << OPAMP2_CSR_USERTRIM_Pos) /*!< 0x00004000 */
  9293. #define OPAMP2_CSR_USERTRIM OPAMP2_CSR_USERTRIM_Msk /*!< User trimming enable */
  9294. #define OPAMP2_CSR_CALOUT_Pos (15U)
  9295. #define OPAMP2_CSR_CALOUT_Msk (0x1UL << OPAMP2_CSR_CALOUT_Pos) /*!< 0x00008000 */
  9296. #define OPAMP2_CSR_CALOUT OPAMP2_CSR_CALOUT_Msk /*!< Operational amplifier2 calibration output */
  9297. /******************* Bit definition for OPAMP_OTR register ******************/
  9298. #define OPAMP_OTR_TRIMOFFSETN_Pos (0U)
  9299. #define OPAMP_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  9300. #define OPAMP_OTR_TRIMOFFSETN OPAMP_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9301. #define OPAMP_OTR_TRIMOFFSETP_Pos (8U)
  9302. #define OPAMP_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  9303. #define OPAMP_OTR_TRIMOFFSETP OPAMP_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9304. /******************* Bit definition for OPAMP1_OTR register ******************/
  9305. #define OPAMP1_OTR_TRIMOFFSETN_Pos (0U)
  9306. #define OPAMP1_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP1_OTR_TRIMOFFSETN_Pos)/*!< 0x0000001F */
  9307. #define OPAMP1_OTR_TRIMOFFSETN OPAMP1_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9308. #define OPAMP1_OTR_TRIMOFFSETP_Pos (8U)
  9309. #define OPAMP1_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP1_OTR_TRIMOFFSETP_Pos)/*!< 0x00001F00 */
  9310. #define OPAMP1_OTR_TRIMOFFSETP OPAMP1_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9311. /******************* Bit definition for OPAMP2_OTR register ******************/
  9312. #define OPAMP2_OTR_TRIMOFFSETN_Pos (0U)
  9313. #define OPAMP2_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP2_OTR_TRIMOFFSETN_Pos)/*!< 0x0000001F */
  9314. #define OPAMP2_OTR_TRIMOFFSETN OPAMP2_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9315. #define OPAMP2_OTR_TRIMOFFSETP_Pos (8U)
  9316. #define OPAMP2_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP2_OTR_TRIMOFFSETP_Pos)/*!< 0x00001F00 */
  9317. #define OPAMP2_OTR_TRIMOFFSETP OPAMP2_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9318. /******************* Bit definition for OPAMP_LPOTR register ****************/
  9319. #define OPAMP_LPOTR_TRIMLPOFFSETN_Pos (0U)
  9320. #define OPAMP_LPOTR_TRIMLPOFFSETN_Msk (0x1FUL << OPAMP_LPOTR_TRIMLPOFFSETN_Pos)/*!< 0x0000001F */
  9321. #define OPAMP_LPOTR_TRIMLPOFFSETN OPAMP_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9322. #define OPAMP_LPOTR_TRIMLPOFFSETP_Pos (8U)
  9323. #define OPAMP_LPOTR_TRIMLPOFFSETP_Msk (0x1FUL << OPAMP_LPOTR_TRIMLPOFFSETP_Pos)/*!< 0x00001F00 */
  9324. #define OPAMP_LPOTR_TRIMLPOFFSETP OPAMP_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9325. /******************* Bit definition for OPAMP1_LPOTR register ****************/
  9326. #define OPAMP1_LPOTR_TRIMLPOFFSETN_Pos (0U)
  9327. #define OPAMP1_LPOTR_TRIMLPOFFSETN_Msk (0x1FUL << OPAMP1_LPOTR_TRIMLPOFFSETN_Pos)/*!< 0x0000001F */
  9328. #define OPAMP1_LPOTR_TRIMLPOFFSETN OPAMP1_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9329. #define OPAMP1_LPOTR_TRIMLPOFFSETP_Pos (8U)
  9330. #define OPAMP1_LPOTR_TRIMLPOFFSETP_Msk (0x1FUL << OPAMP1_LPOTR_TRIMLPOFFSETP_Pos)/*!< 0x00001F00 */
  9331. #define OPAMP1_LPOTR_TRIMLPOFFSETP OPAMP1_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9332. /******************* Bit definition for OPAMP2_LPOTR register ****************/
  9333. #define OPAMP2_LPOTR_TRIMLPOFFSETN_Pos (0U)
  9334. #define OPAMP2_LPOTR_TRIMLPOFFSETN_Msk (0x1FUL << OPAMP2_LPOTR_TRIMLPOFFSETN_Pos)/*!< 0x0000001F */
  9335. #define OPAMP2_LPOTR_TRIMLPOFFSETN OPAMP2_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9336. #define OPAMP2_LPOTR_TRIMLPOFFSETP_Pos (8U)
  9337. #define OPAMP2_LPOTR_TRIMLPOFFSETP_Msk (0x1FUL << OPAMP2_LPOTR_TRIMLPOFFSETP_Pos)/*!< 0x00001F00 */
  9338. #define OPAMP2_LPOTR_TRIMLPOFFSETP OPAMP2_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9339. /******************************************************************************/
  9340. /* */
  9341. /* On The Fly Decryption */
  9342. /* */
  9343. /******************************************************************************/
  9344. /****************** Bit definition for OTFDEC_CR register ******************/
  9345. #define OTFDEC_CR_ENC_Pos (0U)
  9346. #define OTFDEC_CR_ENC_Msk (0x1UL << OTFDEC_CR_ENC_Pos) /*!< 0x00000001 */
  9347. #define OTFDEC_CR_ENC OTFDEC_CR_ENC_Msk /*!< OTFDEC encryption mode */
  9348. /****************** Bit definition for OTFDEC_PRIVCFGR register ************/
  9349. #define OTFDEC_PRIVCFGR_PRIV_Pos (0U)
  9350. #define OTFDEC_PRIVCFGR_PRIV_Msk (0x1UL << OTFDEC_PRIVCFGR_PRIV_Pos) /*!< 0x00000001 */
  9351. #define OTFDEC_PRIVCFGR_PRIV OTFDEC_PRIVCFGR_PRIV_Msk /*!< Privileged access protection */
  9352. /****************** Bit definition for OTFDEC_REG_CONFIGR register *********/
  9353. #define OTFDEC_REG_CONFIGR_REG_EN_Pos (0U)
  9354. #define OTFDEC_REG_CONFIGR_REG_EN_Msk (0x1UL << OTFDEC_REG_CONFIGR_REG_EN_Pos) /*!< 0x00000001 */
  9355. #define OTFDEC_REG_CONFIGR_REG_EN OTFDEC_REG_CONFIGR_REG_EN_Msk /*!< Region on-the-fly decryption enable */
  9356. #define OTFDEC_REG_CONFIGR_CONFIGLOCK_Pos (1U)
  9357. #define OTFDEC_REG_CONFIGR_CONFIGLOCK_Msk (0x1UL << OTFDEC_REG_CONFIGR_CONFIGLOCK_Pos) /*!< 0x00000002 */
  9358. #define OTFDEC_REG_CONFIGR_CONFIGLOCK OTFDEC_REG_CONFIGR_CONFIGLOCK_Msk /*!< Region config lock */
  9359. #define OTFDEC_REG_CONFIGR_KEYLOCK_Pos (2U)
  9360. #define OTFDEC_REG_CONFIGR_KEYLOCK_Msk (0x1UL << OTFDEC_REG_CONFIGR_KEYLOCK_Pos) /*!< 0x00000004 */
  9361. #define OTFDEC_REG_CONFIGR_KEYLOCK OTFDEC_REG_CONFIGR_KEYLOCK_Msk /*!< Region key lock */
  9362. #define OTFDEC_REG_CONFIGR_MODE_Pos (4U)
  9363. #define OTFDEC_REG_CONFIGR_MODE_Msk (0x3UL << OTFDEC_REG_CONFIGR_MODE_Pos) /*!< 0x00000030 */
  9364. #define OTFDEC_REG_CONFIGR_MODE OTFDEC_REG_CONFIGR_MODE_Msk /*!< Region operating mode */
  9365. #define OTFDEC_REG_CONFIGR_MODE_0 (0x1UL << OTFDEC_REG_CONFIGR_MODE_Pos) /*!< 0x00000010 */
  9366. #define OTFDEC_REG_CONFIGR_MODE_1 (0x2UL << OTFDEC_REG_CONFIGR_MODE_Pos) /*!< 0x00000020 */
  9367. #define OTFDEC_REG_CONFIGR_KEYCRC_Pos (8U)
  9368. #define OTFDEC_REG_CONFIGR_KEYCRC_Msk (0xFFUL << OTFDEC_REG_CONFIGR_KEYCRC_Pos) /*!< 0x0000FF00 */
  9369. #define OTFDEC_REG_CONFIGR_KEYCRC OTFDEC_REG_CONFIGR_KEYCRC_Msk /*!< Region key 8-bit CRC */
  9370. #define OTFDEC_REG_CONFIGR_VERSION_Pos (16U)
  9371. #define OTFDEC_REG_CONFIGR_VERSION_Msk (0xFFFFUL << OTFDEC_REG_CONFIGR_VERSION_Pos) /*!< 0xFFFF0000 */
  9372. #define OTFDEC_REG_CONFIGR_VERSION OTFDEC_REG_CONFIGR_VERSION_Msk /*!< Region firmware version */
  9373. /****************** Bit definition for OTFDEC_REG_START_ADDR register ******/
  9374. #define OTFDEC_REG_START_ADDR_Pos (0U)
  9375. #define OTFDEC_REG_START_ADDR_Msk (0xFFFFFFFFUL << OTFDEC_REG_START_ADDR_Pos) /*!< 0xFFFFFFFF */
  9376. #define OTFDEC_REG_START_ADDR OTFDEC_REG_START_ADDR_Msk /*!< Region AHB start address */
  9377. /****************** Bit definition for OTFDEC_REG_END_ADDR register ********/
  9378. #define OTFDEC_REG_END_ADDR_Pos (0U)
  9379. #define OTFDEC_REG_END_ADDR_Msk (0xFFFFFFFFUL << OTFDEC_REG_END_ADDR_Pos) /*!< 0xFFFFFFFF */
  9380. #define OTFDEC_REG_END_ADDR OTFDEC_REG_END_ADDR_Msk /*!< Region AHB end address */
  9381. /****************** Bit definition for OTFDEC_REG_NONCER0 register *********/
  9382. #define OTFDEC_REG_NONCER0_Pos (0U)
  9383. #define OTFDEC_REG_NONCER0_Msk (0xFFFFFFFFUL << OTFDEC_REG_NONCER0_Pos) /*!< 0xFFFFFFFF */
  9384. #define OTFDEC_REG_NONCER0 OTFDEC_REG_NONCER0_Msk /*!< Region Nonce Register (LSB nonce[31:0]) */
  9385. /****************** Bit definition for OTFDEC_REG_NONCER1 register *********/
  9386. #define OTFDEC_REG_NONCER1_Pos (0U)
  9387. #define OTFDEC_REG_NONCER1_Msk (0xFFFFFFFFUL << OTFDEC_REG_NONCER1_Pos) /*!< 0xFFFFFFFF */
  9388. #define OTFDEC_REG_NONCER1 OTFDEC_REG_NONCER1_Msk /*!< Region Nonce Register (MSB nonce[63:32]) */
  9389. /****************** Bit definition for OTFDEC_REG_KEYR0 register ***********/
  9390. #define OTFDEC_REG_KEYR0_Pos (0U)
  9391. #define OTFDEC_REG_KEYR0_Msk (0xFFFFFFFFUL << OTFDEC_REG_KEYR0_Pos) /*!< 0xFFFFFFFF */
  9392. #define OTFDEC_REG_KEYR0 OTFDEC_REG_KEYR0_Msk /*!< Region Key Register (LSB key[31:0]) */
  9393. /****************** Bit definition for OTFDEC_REG_KEYR1 register ***********/
  9394. #define OTFDEC_REG_KEYR1_Pos (0U)
  9395. #define OTFDEC_REG_KEYR1_Msk (0xFFFFFFFFUL << OTFDEC_REG_KEYR1_Pos) /*!< 0xFFFFFFFF */
  9396. #define OTFDEC_REG_KEYR1 OTFDEC_REG_KEYR1_Msk /*!< Region Key Register (key[63:32]) */
  9397. /****************** Bit definition for OTFDEC_REG_KEYR2 register ***********/
  9398. #define OTFDEC_REG_KEYR2_Pos (0U)
  9399. #define OTFDEC_REG_KEYR2_Msk (0xFFFFFFFFUL << OTFDEC_REG_KEYR2_Pos) /*!< 0xFFFFFFFF */
  9400. #define OTFDEC_REG_KEYR2 OTFDEC_REG_KEYR2_Msk /*!< Region Key Register (key[95:64]) */
  9401. /****************** Bit definition for OTFDEC_REG_KEYR3 register ***********/
  9402. #define OTFDEC_REG_KEYR3_Pos (0U)
  9403. #define OTFDEC_REG_KEYR3_Msk (0xFFFFFFFFUL << OTFDEC_REG_KEYR3_Pos) /*!< 0xFFFFFFFF */
  9404. #define OTFDEC_REG_KEYR3 OTFDEC_REG_KEYR3_Msk /*!< Region Key Register (key[127:96]) */
  9405. /****************** Bit definition for OTFDEC_ISR register *****************/
  9406. #define OTFDEC_ISR_SEIF_Pos (0U)
  9407. #define OTFDEC_ISR_SEIF_Msk (0x1UL << OTFDEC_ISR_SEIF_Pos) /*!< 0x00000001 */
  9408. #define OTFDEC_ISR_SEIF OTFDEC_ISR_SEIF_Msk /*!< Security Error Interrupt Flag status bit before enable (mask) */
  9409. #define OTFDEC_ISR_XONEIF_Pos (1U)
  9410. #define OTFDEC_ISR_XONEIF_Msk (0x1UL << OTFDEC_ISR_XONEIF_Pos) /*!< 0x00000002 */
  9411. #define OTFDEC_ISR_XONEIF OTFDEC_ISR_XONEIF_Msk /*!< Execute-only Error Interrupt Flag status bit before enable (mask) */
  9412. #define OTFDEC_ISR_KEIF_Pos (2U)
  9413. #define OTFDEC_ISR_KEIF_Msk (0x1UL << OTFDEC_ISR_KEIF_Pos) /*!< 0x00000004 */
  9414. #define OTFDEC_ISR_KEIF OTFDEC_ISR_KEIF_Msk /*!< Key Error Interrupt Flag status bit before enable (mask) */
  9415. /****************** Bit definition for OTFDEC_ICR register *****************/
  9416. #define OTFDEC_ICR_SEIF_Pos (0U)
  9417. #define OTFDEC_ICR_SEIF_Msk (0x1UL << OTFDEC_ICR_SEIF_Pos) /*!< 0x00000001 */
  9418. #define OTFDEC_ICR_SEIF OTFDEC_ICR_SEIF_Msk /*!< Security Error Interrupt Flag clear bit */
  9419. #define OTFDEC_ICR_XONEIF_Pos (1U)
  9420. #define OTFDEC_ICR_XONEIF_Msk (0x1UL << OTFDEC_ICR_XONEIF_Pos) /*!< 0x00000002 */
  9421. #define OTFDEC_ICR_XONEIF OTFDEC_ICR_XONEIF_Msk /*!< Execute-only Error Interrupt Flag clear bit */
  9422. #define OTFDEC_ICR_KEIF_Pos (2U)
  9423. #define OTFDEC_ICR_KEIF_Msk (0x1UL << OTFDEC_ICR_KEIF_Pos) /*!< 0x00000004 */
  9424. #define OTFDEC_ICR_KEIF OTFDEC_ICR_KEIF_Msk /*!< Key Error Interrupt Flag clear bit */
  9425. /****************** Bit definition for OTFDEC_IER register *****************/
  9426. #define OTFDEC_IER_SEIE_Pos (0U)
  9427. #define OTFDEC_IER_SEIE_Msk (0x1UL << OTFDEC_IER_SEIE_Pos) /*!< 0x00000001 */
  9428. #define OTFDEC_IER_SEIE OTFDEC_IER_SEIE_Msk /*!< Security Error Interrupt Enable bit */
  9429. #define OTFDEC_IER_XONEIE_Pos (1U)
  9430. #define OTFDEC_IER_XONEIE_Msk (0x1UL << OTFDEC_IER_XONEIE_Pos) /*!< 0x00000002 */
  9431. #define OTFDEC_IER_XONEIE OTFDEC_IER_XONEIE_Msk /*!< Execute-only Error Interrupt Enable bit */
  9432. #define OTFDEC_IER_KEIE_Pos (2U)
  9433. #define OTFDEC_IER_KEIE_Msk (0x1UL << OTFDEC_IER_KEIE_Pos) /*!< 0x00000004 */
  9434. #define OTFDEC_IER_KEIE OTFDEC_IER_KEIE_Msk /*!< Key Error Interrupt Enable bit */
  9435. /******************************************************************************/
  9436. /* */
  9437. /* Public Key Accelerator (PKA) */
  9438. /* */
  9439. /******************************************************************************/
  9440. /******************* Bits definition for PKA_CR register **************/
  9441. #define PKA_CR_EN_Pos (0U)
  9442. #define PKA_CR_EN_Msk (0x1UL << PKA_CR_EN_Pos) /*!< 0x00000001 */
  9443. #define PKA_CR_EN PKA_CR_EN_Msk /*!< PKA enable */
  9444. #define PKA_CR_START_Pos (1U)
  9445. #define PKA_CR_START_Msk (0x1UL << PKA_CR_START_Pos) /*!< 0x00000002 */
  9446. #define PKA_CR_START PKA_CR_START_Msk /*!< Start operation */
  9447. #define PKA_CR_MODE_Pos (8U)
  9448. #define PKA_CR_MODE_Msk (0x3FUL << PKA_CR_MODE_Pos) /*!< 0x00003F00 */
  9449. #define PKA_CR_MODE PKA_CR_MODE_Msk /*!< MODE[5:0] PKA operation code */
  9450. #define PKA_CR_MODE_0 (0x01UL << PKA_CR_MODE_Pos) /*!< 0x00000100 */
  9451. #define PKA_CR_MODE_1 (0x02UL << PKA_CR_MODE_Pos) /*!< 0x00000200 */
  9452. #define PKA_CR_MODE_2 (0x04UL << PKA_CR_MODE_Pos) /*!< 0x00000400 */
  9453. #define PKA_CR_MODE_3 (0x08UL << PKA_CR_MODE_Pos) /*!< 0x00000800 */
  9454. #define PKA_CR_MODE_4 (0x10UL << PKA_CR_MODE_Pos) /*!< 0x00001000 */
  9455. #define PKA_CR_MODE_5 (0x20UL << PKA_CR_MODE_Pos) /*!< 0x00002000 */
  9456. #define PKA_CR_PROCENDIE_Pos (17U)
  9457. #define PKA_CR_PROCENDIE_Msk (0x1UL << PKA_CR_PROCENDIE_Pos) /*!< 0x00020000 */
  9458. #define PKA_CR_PROCENDIE PKA_CR_PROCENDIE_Msk /*!< End of operation interrupt enable */
  9459. #define PKA_CR_RAMERRIE_Pos (19U)
  9460. #define PKA_CR_RAMERRIE_Msk (0x1UL << PKA_CR_RAMERRIE_Pos) /*!< 0x00080000 */
  9461. #define PKA_CR_RAMERRIE PKA_CR_RAMERRIE_Msk /*!< RAM error interrupt enable */
  9462. #define PKA_CR_ADDRERRIE_Pos (20U)
  9463. #define PKA_CR_ADDRERRIE_Msk (0x1UL << PKA_CR_ADDRERRIE_Pos) /*!< 0x00100000 */
  9464. #define PKA_CR_ADDRERRIE PKA_CR_ADDRERRIE_Msk /*!< RAM error interrupt enable */
  9465. /******************* Bits definition for PKA_SR register **************/
  9466. #define PKA_SR_BUSY_Pos (16U)
  9467. #define PKA_SR_BUSY_Msk (0x1UL << PKA_SR_BUSY_Pos) /*!< 0x00010000 */
  9468. #define PKA_SR_BUSY PKA_SR_BUSY_Msk /*!< PKA operation is in progress */
  9469. #define PKA_SR_PROCENDF_Pos (17U)
  9470. #define PKA_SR_PROCENDF_Msk (0x1UL << PKA_SR_PROCENDF_Pos) /*!< 0x00020000 */
  9471. #define PKA_SR_PROCENDF PKA_SR_PROCENDF_Msk /*!< PKA end of operation flag */
  9472. #define PKA_SR_RAMERRF_Pos (19U)
  9473. #define PKA_SR_RAMERRF_Msk (0x1UL << PKA_SR_RAMERRF_Pos) /*!< 0x00080000 */
  9474. #define PKA_SR_RAMERRF PKA_SR_RAMERRF_Msk /*!< PKA RAM error flag */
  9475. #define PKA_SR_ADDRERRF_Pos (20U)
  9476. #define PKA_SR_ADDRERRF_Msk (0x1UL << PKA_SR_ADDRERRF_Pos) /*!< 0x00100000 */
  9477. #define PKA_SR_ADDRERRF PKA_SR_ADDRERRF_Msk /*!< Address error flag */
  9478. /******************* Bits definition for PKA_CLRFR register **************/
  9479. #define PKA_CLRFR_PROCENDFC_Pos (17U)
  9480. #define PKA_CLRFR_PROCENDFC_Msk (0x1UL << PKA_CLRFR_PROCENDFC_Pos) /*!< 0x00020000 */
  9481. #define PKA_CLRFR_PROCENDFC PKA_CLRFR_PROCENDFC_Msk /*!< Clear PKA end of operation flag */
  9482. #define PKA_CLRFR_RAMERRFC_Pos (19U)
  9483. #define PKA_CLRFR_RAMERRFC_Msk (0x1UL << PKA_CLRFR_RAMERRFC_Pos) /*!< 0x00080000 */
  9484. #define PKA_CLRFR_RAMERRFC PKA_CLRFR_RAMERRFC_Msk /*!< Clear PKA RAM error flag */
  9485. #define PKA_CLRFR_ADDRERRFC_Pos (20U)
  9486. #define PKA_CLRFR_ADDRERRFC_Msk (0x1UL << PKA_CLRFR_ADDRERRFC_Pos) /*!< 0x00100000 */
  9487. #define PKA_CLRFR_ADDRERRFC PKA_CLRFR_ADDRERRFC_Msk /*!< Clear address error flag */
  9488. /******************* Bits definition for PKA RAM *************************/
  9489. #define PKA_RAM_OFFSET 0x0400UL /*!< PKA RAM address offset */
  9490. /* Compute Montgomery parameter input data */
  9491. #define PKA_MONTGOMERY_PARAM_IN_MOD_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus number of bits */
  9492. #define PKA_MONTGOMERY_PARAM_IN_MODULUS ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input modulus */
  9493. /* Compute Montgomery parameter output data */
  9494. #define PKA_MONTGOMERY_PARAM_OUT_PARAMETER ((0x0594UL - PKA_RAM_OFFSET)>>2) /*!< Output Montgomery parameter */
  9495. /* Compute modular exponentiation input data */
  9496. #define PKA_MODULAR_EXP_IN_EXP_NB_BITS ((0x0400UL - PKA_RAM_OFFSET)>>2) /*!< Input exponent number of bits */
  9497. #define PKA_MODULAR_EXP_IN_OP_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9498. #define PKA_MODULAR_EXP_IN_MONTGOMERY_PARAM ((0x0594UL - PKA_RAM_OFFSET)>>2) /*!< Input storage area for Montgomery parameter */
  9499. #define PKA_MODULAR_EXP_IN_EXPONENT_BASE ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input base of the exponentiation */
  9500. #define PKA_MODULAR_EXP_IN_EXPONENT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Input exponent to process */
  9501. #define PKA_MODULAR_EXP_IN_MODULUS ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input modulus */
  9502. /* Compute modular exponentiation output data */
  9503. #define PKA_MODULAR_EXP_OUT_MONTGOMERY_PARAM ((0x0594UL - PKA_RAM_OFFSET)>>2) /*!< Output storage area for Montgomery parameter */
  9504. #define PKA_MODULAR_EXP_OUT_SM_ALGO_ACC1 ((0x0724UL - PKA_RAM_OFFSET)>>2) /*!< Output SM algorithm accumulator 1 */
  9505. #define PKA_MODULAR_EXP_OUT_SM_ALGO_ACC2 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Output SM algorithm accumulator 2 */
  9506. #define PKA_MODULAR_EXP_OUT_EXPONENT_BASE ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Output base of the exponentiation */
  9507. #define PKA_MODULAR_EXP_OUT_SM_ALGO_ACC3 ((0x0E3CUL - PKA_RAM_OFFSET)>>2) /*!< Output SM algorithm accumulator 3 */
  9508. /* Compute ECC scalar multiplication input data */
  9509. #define PKA_ECC_SCALAR_MUL_IN_EXP_NB_BITS ((0x0400UL - PKA_RAM_OFFSET)>>2) /*!< Input exponent number of bits */
  9510. #define PKA_ECC_SCALAR_MUL_IN_OP_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9511. #define PKA_ECC_SCALAR_MUL_IN_A_COEFF_SIGN ((0x0408UL - PKA_RAM_OFFSET)>>2) /*!< Input sign of the 'a' coefficient */
  9512. #define PKA_ECC_SCALAR_MUL_IN_A_COEFF ((0x040CUL - PKA_RAM_OFFSET)>>2) /*!< Input ECC curve 'a' coefficient */
  9513. #define PKA_ECC_SCALAR_MUL_IN_MOD_GF ((0x0460UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus GF(p) */
  9514. #define PKA_ECC_SCALAR_MUL_IN_MONTGOMERY_PARAM ((0x04B4UL - PKA_RAM_OFFSET)>>2) /*!< Input storage area for Montgomery parameter */
  9515. #define PKA_ECC_SCALAR_MUL_IN_K ((0x0508UL - PKA_RAM_OFFSET)>>2) /*!< Input 'k' of KP */
  9516. #define PKA_ECC_SCALAR_MUL_IN_INITIAL_POINT_X ((0x055CUL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P X coordinate */
  9517. #define PKA_ECC_SCALAR_MUL_IN_INITIAL_POINT_Y ((0x05B0UL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P Y coordinate */
  9518. /* Compute ECC scalar multiplication output data */
  9519. #define PKA_ECC_SCALAR_MUL_OUT_RESULT_X ((0x055CUL - PKA_RAM_OFFSET)>>2) /*!< Output result X coordinate */
  9520. #define PKA_ECC_SCALAR_MUL_OUT_RESULT_Y ((0x05B0UL - PKA_RAM_OFFSET)>>2) /*!< Output result Y coordinate */
  9521. #define PKA_ECC_SCALAR_MUL_OUT_LAST_DOUBLE_X1 ((0x0DE8UL - PKA_RAM_OFFSET)>>2) /*!< Output last double X1 coordinate */
  9522. #define PKA_ECC_SCALAR_MUL_OUT_LAST_DOUBLE_Y1 ((0x0E3CUL - PKA_RAM_OFFSET)>>2) /*!< Output last double Y1 coordinate */
  9523. #define PKA_ECC_SCALAR_MUL_OUT_LAST_DOUBLE_Z1 ((0x0E90UL - PKA_RAM_OFFSET)>>2) /*!< Output last double Z1 coordinate */
  9524. #define PKA_ECC_SCALAR_MUL_OUT_CHECK_POINT_X2 ((0x0EE4UL - PKA_RAM_OFFSET)>>2) /*!< Output check point X2 coordinate */
  9525. #define PKA_ECC_SCALAR_MUL_OUT_CHECK_POINT_Y2 ((0x0F38UL - PKA_RAM_OFFSET)>>2) /*!< Output check point Y2 coordinate */
  9526. #define PKA_ECC_SCALAR_MUL_OUT_CHECK_POINT_Z2 ((0x0F8CUL - PKA_RAM_OFFSET)>>2) /*!< Output check point Z2 coordinate */
  9527. /* Point check input data */
  9528. #define PKA_POINT_CHECK_IN_MOD_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus number of bits */
  9529. #define PKA_POINT_CHECK_IN_A_COEFF_SIGN ((0x0408UL - PKA_RAM_OFFSET)>>2) /*!< Input sign of the 'a' coefficient */
  9530. #define PKA_POINT_CHECK_IN_A_COEFF ((0x040CUL - PKA_RAM_OFFSET)>>2) /*!< Input ECC curve 'a' coefficient */
  9531. #define PKA_POINT_CHECK_IN_B_COEFF ((0x07FCUL - PKA_RAM_OFFSET)>>2) /*!< Input ECC curve 'b' coefficient */
  9532. #define PKA_POINT_CHECK_IN_MOD_GF ((0x0460UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus GF(p) */
  9533. #define PKA_POINT_CHECK_IN_INITIAL_POINT_X ((0x055CUL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P X coordinate */
  9534. #define PKA_POINT_CHECK_IN_INITIAL_POINT_Y ((0x05B0UL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P Y coordinate */
  9535. /* Point check output data */
  9536. #define PKA_POINT_CHECK_OUT_ERROR ((0x0400UL - PKA_RAM_OFFSET)>>2) /*!< Output error */
  9537. /* ECDSA signature input data */
  9538. #define PKA_ECDSA_SIGN_IN_ORDER_NB_BITS ((0x0400UL - PKA_RAM_OFFSET)>>2) /*!< Input order number of bits */
  9539. #define PKA_ECDSA_SIGN_IN_MOD_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus number of bits */
  9540. #define PKA_ECDSA_SIGN_IN_A_COEFF_SIGN ((0x0408UL - PKA_RAM_OFFSET)>>2) /*!< Input sign of the 'a' coefficient */
  9541. #define PKA_ECDSA_SIGN_IN_A_COEFF ((0x040CUL - PKA_RAM_OFFSET)>>2) /*!< Input ECC curve 'a' coefficient */
  9542. #define PKA_ECDSA_SIGN_IN_MOD_GF ((0x0460UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus GF(p) */
  9543. #define PKA_ECDSA_SIGN_IN_K ((0x0508UL - PKA_RAM_OFFSET)>>2) /*!< Input k value of the ECDSA */
  9544. #define PKA_ECDSA_SIGN_IN_INITIAL_POINT_X ((0x055CUL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P X coordinate */
  9545. #define PKA_ECDSA_SIGN_IN_INITIAL_POINT_Y ((0x05B0UL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P Y coordinate */
  9546. #define PKA_ECDSA_SIGN_IN_HASH_E ((0x0DE8UL - PKA_RAM_OFFSET)>>2) /*!< Input e, hash of the message */
  9547. #define PKA_ECDSA_SIGN_IN_PRIVATE_KEY_D ((0x0E3CUL - PKA_RAM_OFFSET)>>2) /*!< Input d, private key */
  9548. #define PKA_ECDSA_SIGN_IN_ORDER_N ((0x0E94UL - PKA_RAM_OFFSET)>>2) /*!< Input n, order of the curve */
  9549. /* ECDSA signature output data */
  9550. #define PKA_ECDSA_SIGN_OUT_ERROR ((0x0EE8UL - PKA_RAM_OFFSET)>>2) /*!< Output error */
  9551. #define PKA_ECDSA_SIGN_OUT_SIGNATURE_R ((0x0700UL - PKA_RAM_OFFSET)>>2) /*!< Output signature r */
  9552. #define PKA_ECDSA_SIGN_OUT_SIGNATURE_S ((0x0754UL - PKA_RAM_OFFSET)>>2) /*!< Output signature s */
  9553. #define PKA_ECDSA_SIGN_OUT_FINAL_POINT_X ((0x103CUL - PKA_RAM_OFFSET)>>2) /*!< Output final point kP X coordinate */
  9554. #define PKA_ECDSA_SIGN_OUT_FINAL_POINT_Y ((0x1090UL - PKA_RAM_OFFSET)>>2) /*!< Output final point kP Y coordinate */
  9555. /* ECDSA verification input data */
  9556. #define PKA_ECDSA_VERIF_IN_ORDER_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input order number of bits */
  9557. #define PKA_ECDSA_VERIF_IN_MOD_NB_BITS ((0x04B4UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus number of bits */
  9558. #define PKA_ECDSA_VERIF_IN_A_COEFF_SIGN ((0x045CUL - PKA_RAM_OFFSET)>>2) /*!< Input sign of the 'a' coefficient */
  9559. #define PKA_ECDSA_VERIF_IN_A_COEFF ((0x0460UL - PKA_RAM_OFFSET)>>2) /*!< Input ECC curve 'a' coefficient */
  9560. #define PKA_ECDSA_VERIF_IN_MOD_GF ((0x04B8UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus GF(p) */
  9561. #define PKA_ECDSA_VERIF_IN_INITIAL_POINT_X ((0x05E8UL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P X coordinate */
  9562. #define PKA_ECDSA_VERIF_IN_INITIAL_POINT_Y ((0x063CUL - PKA_RAM_OFFSET)>>2) /*!< Input initial point P Y coordinate */
  9563. #define PKA_ECDSA_VERIF_IN_PUBLIC_KEY_POINT_X ((0x0F40UL - PKA_RAM_OFFSET)>>2) /*!< Input public key point X coordinate */
  9564. #define PKA_ECDSA_VERIF_IN_PUBLIC_KEY_POINT_Y ((0x0F94UL - PKA_RAM_OFFSET)>>2) /*!< Input public key point Y coordinate */
  9565. #define PKA_ECDSA_VERIF_IN_SIGNATURE_R ((0x1098UL - PKA_RAM_OFFSET)>>2) /*!< Input r, part of the signature */
  9566. #define PKA_ECDSA_VERIF_IN_SIGNATURE_S ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input s, part of the signature */
  9567. #define PKA_ECDSA_VERIF_IN_HASH_E ((0x0FE8UL - PKA_RAM_OFFSET)>>2) /*!< Input e, hash of the message */
  9568. #define PKA_ECDSA_VERIF_IN_ORDER_N ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input n, order of the curve */
  9569. /* ECDSA verification output data */
  9570. #define PKA_ECDSA_VERIF_OUT_RESULT ((0x05B0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9571. /* RSA CRT exponentiation input data */
  9572. #define PKA_RSA_CRT_EXP_IN_MOD_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operands number of bits */
  9573. #define PKA_RSA_CRT_EXP_IN_DP_CRT ((0x065CUL - PKA_RAM_OFFSET)>>2) /*!< Input Dp CRT parameter */
  9574. #define PKA_RSA_CRT_EXP_IN_DQ_CRT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Input Dq CRT parameter */
  9575. #define PKA_RSA_CRT_EXP_IN_QINV_CRT ((0x07ECUL - PKA_RAM_OFFSET)>>2) /*!< Input qInv CRT parameter */
  9576. #define PKA_RSA_CRT_EXP_IN_PRIME_P ((0x097CUL - PKA_RAM_OFFSET)>>2) /*!< Input Prime p */
  9577. #define PKA_RSA_CRT_EXP_IN_PRIME_Q ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input Prime q */
  9578. #define PKA_RSA_CRT_EXP_IN_EXPONENT_BASE ((0x0EECUL - PKA_RAM_OFFSET)>>2) /*!< Input base of the exponentiation */
  9579. /* RSA CRT exponentiation output data */
  9580. #define PKA_RSA_CRT_EXP_OUT_RESULT ((0x0724UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9581. /* Modular reduction input data */
  9582. #define PKA_MODULAR_REDUC_IN_OP_LENGTH ((0x0400UL - PKA_RAM_OFFSET)>>2) /*!< Input operand length */
  9583. #define PKA_MODULAR_REDUC_IN_OPERAND ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand */
  9584. #define PKA_MODULAR_REDUC_IN_MOD_LENGTH ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus length */
  9585. #define PKA_MODULAR_REDUC_IN_MODULUS ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input modulus */
  9586. /* Modular reduction output data */
  9587. #define PKA_MODULAR_REDUC_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9588. /* Arithmetic addition input data */
  9589. #define PKA_ARITHMETIC_ADD_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9590. #define PKA_ARITHMETIC_ADD_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9591. #define PKA_ARITHMETIC_ADD_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9592. /* Arithmetic addition output data */
  9593. #define PKA_ARITHMETIC_ADD_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9594. /* Arithmetic substraction input data */
  9595. #define PKA_ARITHMETIC_SUB_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9596. #define PKA_ARITHMETIC_SUB_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9597. #define PKA_ARITHMETIC_SUB_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9598. /* Arithmetic substraction output data */
  9599. #define PKA_ARITHMETIC_SUB_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9600. /* Arithmetic multiplication input data */
  9601. #define PKA_ARITHMETIC_MUL_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9602. #define PKA_ARITHMETIC_MUL_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9603. #define PKA_ARITHMETIC_MUL_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9604. /* Arithmetic multiplication output data */
  9605. #define PKA_ARITHMETIC_MUL_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9606. /* Comparison input data */
  9607. #define PKA_COMPARISON_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9608. #define PKA_COMPARISON_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9609. #define PKA_COMPARISON_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9610. /* Comparison output data */
  9611. #define PKA_COMPARISON_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9612. /* Modular addition input data */
  9613. #define PKA_MODULAR_ADD_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9614. #define PKA_MODULAR_ADD_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9615. #define PKA_MODULAR_ADD_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9616. #define PKA_MODULAR_ADD_IN_OP3_MOD ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input operand op3 (modulus) */
  9617. /* Modular addition output data */
  9618. #define PKA_MODULAR_ADD_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9619. /* Modular inversion input data */
  9620. #define PKA_MODULAR_INV_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9621. #define PKA_MODULAR_INV_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9622. #define PKA_MODULAR_INV_IN_OP2_MOD ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 (modulus) */
  9623. /* Modular inversion output data */
  9624. #define PKA_MODULAR_INV_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9625. /* Modular substraction input data */
  9626. #define PKA_MODULAR_SUB_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9627. #define PKA_MODULAR_SUB_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9628. #define PKA_MODULAR_SUB_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9629. #define PKA_MODULAR_SUB_IN_OP3_MOD ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input operand op3 */
  9630. /* Modular substraction output data */
  9631. #define PKA_MODULAR_SUB_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9632. /* Montgomery multiplication input data */
  9633. #define PKA_MONTGOMERY_MUL_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9634. #define PKA_MONTGOMERY_MUL_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9635. #define PKA_MONTGOMERY_MUL_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9636. #define PKA_MONTGOMERY_MUL_IN_OP3_MOD ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input modulus */
  9637. /* Montgomery multiplication output data */
  9638. #define PKA_MONTGOMERY_MUL_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9639. /* Generic Arithmetic input data */
  9640. #define PKA_ARITHMETIC_ALL_OPS_NB_BITS ((0x0404UL - PKA_RAM_OFFSET)>>2) /*!< Input operand number of bits */
  9641. #define PKA_ARITHMETIC_ALL_OPS_IN_OP1 ((0x08B4UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op1 */
  9642. #define PKA_ARITHMETIC_ALL_OPS_IN_OP2 ((0x0A44UL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9643. #define PKA_ARITHMETIC_ALL_OPS_IN_OP3 ((0x0D5CUL - PKA_RAM_OFFSET)>>2) /*!< Input operand op2 */
  9644. /* Generic Arithmetic output data */
  9645. #define PKA_ARITHMETIC_ALL_OPS_OUT_RESULT ((0x0BD0UL - PKA_RAM_OFFSET)>>2) /*!< Output result */
  9646. /******************************************************************************/
  9647. /* */
  9648. /* Power Control */
  9649. /* */
  9650. /******************************************************************************/
  9651. /******************** Bit definition for PWR_CR1 register ********************/
  9652. #define PWR_CR1_LPMS_Pos (0U)
  9653. #define PWR_CR1_LPMS_Msk (0x7UL << PWR_CR1_LPMS_Pos) /*!< 0x00000007 */
  9654. #define PWR_CR1_LPMS PWR_CR1_LPMS_Msk /*!< Low-power mode selection field */
  9655. #define PWR_CR1_LPMS_0 (0x1UL << PWR_CR1_LPMS_Pos) /*!< 0x00000001 */
  9656. #define PWR_CR1_LPMS_1 (0x2UL << PWR_CR1_LPMS_Pos) /*!< 0x00000002 */
  9657. #define PWR_CR1_LPMS_2 (0x4UL << PWR_CR1_LPMS_Pos) /*!< 0x00000004 */
  9658. #define PWR_CR1_LPMS_STOP0 (0UL) /*!< Stop 0 mode */
  9659. #define PWR_CR1_LPMS_STOP1 PWR_CR1_LPMS_0 /*!< Stop 1 mode */
  9660. #define PWR_CR1_LPMS_STOP2 PWR_CR1_LPMS_1 /*!< Stop 2 mode */
  9661. #define PWR_CR1_LPMS_STANDBY (PWR_CR1_LPMS_1 | PWR_CR1_LPMS_0) /*!< Stand-by mode */
  9662. #define PWR_CR1_LPMS_SHUTDOWN PWR_CR1_LPMS_2 /*!< Shut-down mode */
  9663. #define PWR_CR1_DBP_Pos (8U)
  9664. #define PWR_CR1_DBP_Msk (0x1UL << PWR_CR1_DBP_Pos) /*!< 0x00000100 */
  9665. #define PWR_CR1_DBP PWR_CR1_DBP_Msk /*!< Disable Back-up domain Protection */
  9666. #define PWR_CR1_VOS_Pos (9U)
  9667. #define PWR_CR1_VOS_Msk (0x3UL << PWR_CR1_VOS_Pos) /*!< 0x0000C000 */
  9668. #define PWR_CR1_VOS PWR_CR1_VOS_Msk /*!< VOS[1:0] bits (Regulator voltage scaling output selection) */
  9669. #define PWR_CR1_VOS_0 (0x1UL << PWR_CR1_VOS_Pos) /*!< 0x00004000 */
  9670. #define PWR_CR1_VOS_1 (0x2UL << PWR_CR1_VOS_Pos) /*!< 0x00008000 */
  9671. #define PWR_CR1_LPR_Pos (14U)
  9672. #define PWR_CR1_LPR_Msk (0x1UL << PWR_CR1_LPR_Pos) /*!< 0x00004000 */
  9673. #define PWR_CR1_LPR PWR_CR1_LPR_Msk /*!< Regulator low-power mode */
  9674. /******************** Bit definition for PWR_CR2 register ********************/
  9675. #define PWR_CR2_PVDE_Pos (0U)
  9676. #define PWR_CR2_PVDE_Msk (0x1UL << PWR_CR2_PVDE_Pos) /*!< 0x00000001 */
  9677. #define PWR_CR2_PVDE PWR_CR2_PVDE_Msk /*!< Power Voltage Detector Enable */
  9678. #define PWR_CR2_PLS_Pos (1U)
  9679. #define PWR_CR2_PLS_Msk (0x7UL << PWR_CR2_PLS_Pos) /*!< 0x0000000E */
  9680. #define PWR_CR2_PLS PWR_CR2_PLS_Msk /*!< PVD level selection */
  9681. #define PWR_CR2_PLS_0 (0x1UL << PWR_CR2_PLS_Pos) /*!< 0x00000002 */
  9682. #define PWR_CR2_PLS_1 (0x2UL << PWR_CR2_PLS_Pos) /*!< 0x00000004 */
  9683. #define PWR_CR2_PLS_2 (0x4UL << PWR_CR2_PLS_Pos) /*!< 0x00000008 */
  9684. #define PWR_CR2_PLS_LEV0 (0UL) /*!< PVD level 0 */
  9685. #define PWR_CR2_PLS_LEV1 PWR_CR2_PLS_0 /*!< PVD level 1 */
  9686. #define PWR_CR2_PLS_LEV2 PWR_CR2_PLS_1 /*!< PVD level 2 */
  9687. #define PWR_CR2_PLS_LEV3 (PWR_CR2_PLS_1 | PWR_CR2_PLS_0) /*!< PVD level 3 */
  9688. #define PWR_CR2_PLS_LEV4 PWR_CR2_PLS_2 /*!< PVD level 4 */
  9689. #define PWR_CR2_PLS_LEV5 (PWR_CR2_PLS_2 | PWR_CR2_PLS_0) /*!< PVD level 5 */
  9690. #define PWR_CR2_PLS_LEV6 (PWR_CR2_PLS_2 | PWR_CR2_PLS_1) /*!< PVD level 6 */
  9691. #define PWR_CR2_PLS_LEV7 (PWR_CR2_PLS_2 | PWR_CR2_PLS_1 | PWR_CR2_PLS_0) /*!< PVD level 7 */
  9692. #define PWR_CR2_PVME_Pos (4U)
  9693. #define PWR_CR2_PVME_Msk (0xFUL << PWR_CR2_PVME_Pos) /*!< 0x000000F0 */
  9694. #define PWR_CR2_PVME PWR_CR2_PVME_Msk /*!< PVM bits field */
  9695. #define PWR_CR2_PVME1_Pos (4U)
  9696. #define PWR_CR2_PVME1_Msk (0x1UL << PWR_CR2_PVME1_Pos) /*!< 0x00000010 */
  9697. #define PWR_CR2_PVME1 PWR_CR2_PVME1_Msk /*!< PVM 1 Enable */
  9698. #define PWR_CR2_PVME2_Pos (5U)
  9699. #define PWR_CR2_PVME2_Msk (0x1UL << PWR_CR2_PVME2_Pos) /*!< 0x00000020 */
  9700. #define PWR_CR2_PVME2 PWR_CR2_PVME2_Msk /*!< PVM 2 Enable */
  9701. #define PWR_CR2_PVME3_Pos (6U)
  9702. #define PWR_CR2_PVME3_Msk (0x1UL << PWR_CR2_PVME3_Pos) /*!< 0x00000040 */
  9703. #define PWR_CR2_PVME3 PWR_CR2_PVME3_Msk /*!< PVM 3 Enable */
  9704. #define PWR_CR2_PVME4_Pos (7U)
  9705. #define PWR_CR2_PVME4_Msk (0x1UL << PWR_CR2_PVME4_Pos) /*!< 0x00000080 */
  9706. #define PWR_CR2_PVME4 PWR_CR2_PVME4_Msk /*!< PVM 4 Enable */
  9707. #define PWR_CR2_IOSV_Pos (9U)
  9708. #define PWR_CR2_IOSV_Msk (0x1UL << PWR_CR2_IOSV_Pos) /*!< 0x00000200 */
  9709. #define PWR_CR2_IOSV PWR_CR2_IOSV_Msk /*!< VDD IO2 independent I/Os Supply Valid */
  9710. #define PWR_CR2_USV_Pos (10U)
  9711. #define PWR_CR2_USV_Msk (0x1UL << PWR_CR2_USV_Pos) /*!< 0x00000400 */
  9712. #define PWR_CR2_USV PWR_CR2_USV_Msk /*!< VDD USB Supply Valid */
  9713. /******************** Bit definition for PWR_CR3 register ********************/
  9714. #define PWR_CR3_EWUP_Pos (0U)
  9715. #define PWR_CR3_EWUP_Msk (0x1FUL << PWR_CR3_EWUP_Pos) /*!< 0x0000001F */
  9716. #define PWR_CR3_EWUP PWR_CR3_EWUP_Msk /*!< Enable Wake-Up Pins */
  9717. #define PWR_CR3_EWUP1_Pos (0U)
  9718. #define PWR_CR3_EWUP1_Msk (0x1UL << PWR_CR3_EWUP1_Pos) /*!< 0x00000001 */
  9719. #define PWR_CR3_EWUP1 PWR_CR3_EWUP1_Msk /*!< Enable Wake-Up Pin 1 */
  9720. #define PWR_CR3_EWUP2_Pos (1U)
  9721. #define PWR_CR3_EWUP2_Msk (0x1UL << PWR_CR3_EWUP2_Pos) /*!< 0x00000002 */
  9722. #define PWR_CR3_EWUP2 PWR_CR3_EWUP2_Msk /*!< Enable Wake-Up Pin 2 */
  9723. #define PWR_CR3_EWUP3_Pos (2U)
  9724. #define PWR_CR3_EWUP3_Msk (0x1UL << PWR_CR3_EWUP3_Pos) /*!< 0x00000004 */
  9725. #define PWR_CR3_EWUP3 PWR_CR3_EWUP3_Msk /*!< Enable Wake-Up Pin 3 */
  9726. #define PWR_CR3_EWUP4_Pos (3U)
  9727. #define PWR_CR3_EWUP4_Msk (0x1UL << PWR_CR3_EWUP4_Pos) /*!< 0x00000008 */
  9728. #define PWR_CR3_EWUP4 PWR_CR3_EWUP4_Msk /*!< Enable Wake-Up Pin 4 */
  9729. #define PWR_CR3_EWUP5_Pos (4U)
  9730. #define PWR_CR3_EWUP5_Msk (0x1UL << PWR_CR3_EWUP5_Pos) /*!< 0x00000010 */
  9731. #define PWR_CR3_EWUP5 PWR_CR3_EWUP5_Msk /*!< Enable Wake-Up Pin 5 */
  9732. #define PWR_CR3_RRS_Pos (8U)
  9733. #define PWR_CR3_RRS_Msk (0x3UL << PWR_CR3_RRS_Pos) /*!< 0x00000100 */
  9734. #define PWR_CR3_RRS PWR_CR3_RRS_Msk /*!< RRS[1:0] bits (Ram retention in STANDBY mode)*/
  9735. #define PWR_CR3_RRS_0 (0x1UL << PWR_CR3_RRS_Pos) /*!< 0x00000100 */
  9736. #define PWR_CR3_RRS_1 (0x2UL << PWR_CR3_RRS_Pos) /*!< 0x00000200 */
  9737. #define PWR_CR3_APC_Pos (10U)
  9738. #define PWR_CR3_APC_Msk (0x1UL << PWR_CR3_APC_Pos) /*!< 0x00000400 */
  9739. #define PWR_CR3_APC PWR_CR3_APC_Msk /*!< Apply pull-up and pull-down configuration */
  9740. #define PWR_CR3_ULPMEN_Pos (11U)
  9741. #define PWR_CR3_ULPMEN_Msk (0x1UL << PWR_CR3_ULPMEN_Pos) /*!< 0x00000800 */
  9742. #define PWR_CR3_ULPMEN PWR_CR3_ULPMEN_Msk /*!< Ultra Low Power Mode Enable */
  9743. #define PWR_CR3_UCPD_STDBY_Pos (13U)
  9744. #define PWR_CR3_UCPD_STDBY_Msk (0x1UL << PWR_CR3_UCPD_STDBY_Pos) /*!< 0x00002000 */
  9745. #define PWR_CR3_UCPD_STDBY PWR_CR3_UCPD_STDBY_Msk /*!< UCPD Configuration memorize when enter in STANDBY */
  9746. #define PWR_CR3_UCPD_DBDIS_Pos (14U)
  9747. #define PWR_CR3_UCPD_DBDIS_Msk (0x1UL << PWR_CR3_UCPD_DBDIS_Pos) /*!< 0x00004000 */
  9748. #define PWR_CR3_UCPD_DBDIS PWR_CR3_UCPD_DBDIS_Msk /*!< Dead Battery Behavior Disable */
  9749. /******************** Bit definition for PWR_CR4 register ********************/
  9750. #define PWR_CR4_WUPP1_Pos (0U)
  9751. #define PWR_CR4_WUPP1_Msk (0x1UL << PWR_CR4_WUPP1_Pos) /*!< 0x00000001 */
  9752. #define PWR_CR4_WUPP1 PWR_CR4_WUPP1_Msk /*!< Wake-Up Pin 1 polarity */
  9753. #define PWR_CR4_WUPP2_Pos (1U)
  9754. #define PWR_CR4_WUPP2_Msk (0x1UL << PWR_CR4_WUPP2_Pos) /*!< 0x00000002 */
  9755. #define PWR_CR4_WUPP2 PWR_CR4_WUPP2_Msk /*!< Wake-Up Pin 2 polarity */
  9756. #define PWR_CR4_WUPP3_Pos (2U)
  9757. #define PWR_CR4_WUPP3_Msk (0x1UL << PWR_CR4_WUPP3_Pos) /*!< 0x00000004 */
  9758. #define PWR_CR4_WUPP3 PWR_CR4_WUPP3_Msk /*!< Wake-Up Pin 3 polarity */
  9759. #define PWR_CR4_WUPP4_Pos (3U)
  9760. #define PWR_CR4_WUPP4_Msk (0x1UL << PWR_CR4_WUPP4_Pos) /*!< 0x00000008 */
  9761. #define PWR_CR4_WUPP4 PWR_CR4_WUPP4_Msk /*!< Wake-Up Pin 4 polarity */
  9762. #define PWR_CR4_WUPP5_Pos (4U)
  9763. #define PWR_CR4_WUPP5_Msk (0x1UL << PWR_CR4_WUPP5_Pos) /*!< 0x00000010 */
  9764. #define PWR_CR4_WUPP5 PWR_CR4_WUPP5_Msk /*!< Wake-Up Pin 5 polarity */
  9765. #define PWR_CR4_VBE_Pos (8U)
  9766. #define PWR_CR4_VBE_Msk (0x1UL << PWR_CR4_VBE_Pos) /*!< 0x00000100 */
  9767. #define PWR_CR4_VBE PWR_CR4_VBE_Msk /*!< VBAT Battery charging Enable */
  9768. #define PWR_CR4_VBRS_Pos (9U)
  9769. #define PWR_CR4_VBRS_Msk (0x1UL << PWR_CR4_VBRS_Pos) /*!< 0x00000200 */
  9770. #define PWR_CR4_VBRS PWR_CR4_VBRS_Msk /*!< VBAT Battery charging Resistor Selection */
  9771. #define PWR_CR4_SMPSBYP_Pos (12U)
  9772. #define PWR_CR4_SMPSBYP_Msk (0x1UL << PWR_CR4_SMPSBYP_Pos) /*!< 0x00001000 */
  9773. #define PWR_CR4_SMPSBYP PWR_CR4_SMPSBYP_Msk /*!< SMPS Bypass mode */
  9774. #define PWR_CR4_EXTSMPSEN_Pos (13U)
  9775. #define PWR_CR4_EXTSMPSEN_Msk (0x1UL << PWR_CR4_EXTSMPSEN_Pos) /*!< 0x00002000 */
  9776. #define PWR_CR4_EXTSMPSEN PWR_CR4_EXTSMPSEN_Msk /*!< External SMPS mode */
  9777. #define PWR_CR4_SMPSFSTEN_Pos (14U)
  9778. #define PWR_CR4_SMPSFSTEN_Msk (0x1UL << PWR_CR4_SMPSFSTEN_Pos) /*!< 0x00004000 */
  9779. #define PWR_CR4_SMPSFSTEN PWR_CR4_SMPSFSTEN_Msk /*!< SMPS fast soft start */
  9780. #define PWR_CR4_SMPSLPEN_Pos (15U)
  9781. #define PWR_CR4_SMPSLPEN_Msk (0x1UL << PWR_CR4_SMPSLPEN_Pos) /*!< 0x00008000 */
  9782. #define PWR_CR4_SMPSLPEN PWR_CR4_SMPSLPEN_Msk /*!< SMPS low-power mode */
  9783. /******************** Bit definition for PWR_SR1 register ********************/
  9784. #define PWR_SR1_WUF_Pos (0U)
  9785. #define PWR_SR1_WUF_Msk (0x1FUL << PWR_SR1_WUF_Pos) /*!< 0x0000001F */
  9786. #define PWR_SR1_WUF PWR_SR1_WUF_Msk /*!< Wake-up Flags */
  9787. #define PWR_SR1_WUF1_Pos (0U)
  9788. #define PWR_SR1_WUF1_Msk (0x1UL << PWR_SR1_WUF1_Pos) /*!< 0x00000001 */
  9789. #define PWR_SR1_WUF1 PWR_SR1_WUF1_Msk /*!< Wake-up Flag 1 */
  9790. #define PWR_SR1_WUF2_Pos (1U)
  9791. #define PWR_SR1_WUF2_Msk (0x1UL << PWR_SR1_WUF2_Pos) /*!< 0x00000002 */
  9792. #define PWR_SR1_WUF2 PWR_SR1_WUF2_Msk /*!< Wake-up Flag 2 */
  9793. #define PWR_SR1_WUF3_Pos (2U)
  9794. #define PWR_SR1_WUF3_Msk (0x1UL << PWR_SR1_WUF3_Pos) /*!< 0x00000004 */
  9795. #define PWR_SR1_WUF3 PWR_SR1_WUF3_Msk /*!< Wake-up Flag 3 */
  9796. #define PWR_SR1_WUF4_Pos (3U)
  9797. #define PWR_SR1_WUF4_Msk (0x1UL << PWR_SR1_WUF4_Pos) /*!< 0x00000008 */
  9798. #define PWR_SR1_WUF4 PWR_SR1_WUF4_Msk /*!< Wake-up Flag 4 */
  9799. #define PWR_SR1_WUF5_Pos (4U)
  9800. #define PWR_SR1_WUF5_Msk (0x1UL << PWR_SR1_WUF5_Pos) /*!< 0x00000010 */
  9801. #define PWR_SR1_WUF5 PWR_SR1_WUF5_Msk /*!< Wake-up Flag 5 */
  9802. #define PWR_SR1_SBF_Pos (8U)
  9803. #define PWR_SR1_SBF_Msk (0x1UL << PWR_SR1_SBF_Pos) /*!< 0x00000100 */
  9804. #define PWR_SR1_SBF PWR_SR1_SBF_Msk /*!< Stand-By Flag */
  9805. #define PWR_SR1_SMPSBYPRDY_Pos (12U)
  9806. #define PWR_SR1_SMPSBYPRDY_Msk (0x1UL << PWR_SR1_SMPSBYPRDY_Pos) /*!< 0x00001000 */
  9807. #define PWR_SR1_SMPSBYPRDY PWR_SR1_SMPSBYPRDY_Msk /*!< SMPS Bypass ready */
  9808. #define PWR_SR1_EXTSMPSRDY_Pos (13U)
  9809. #define PWR_SR1_EXTSMPSRDY_Msk (0x1UL << PWR_SR1_EXTSMPSRDY_Pos) /*!< 0x00002000 */
  9810. #define PWR_SR1_EXTSMPSRDY PWR_SR1_EXTSMPSRDY_Msk /*!< External SMPS mode ready */
  9811. #define PWR_SR1_SMPSHPRDY_Pos (15U)
  9812. #define PWR_SR1_SMPSHPRDY_Msk (0x1UL << PWR_SR1_SMPSHPRDY_Pos) /*!< 0x00008000 */
  9813. #define PWR_SR1_SMPSHPRDY PWR_SR1_SMPSHPRDY_Msk /*!< SMPS High-power mode ready */
  9814. /******************** Bit definition for PWR_SR2 register ********************/
  9815. #define PWR_SR2_REGLPS_Pos (8U)
  9816. #define PWR_SR2_REGLPS_Msk (0x1UL << PWR_SR2_REGLPS_Pos) /*!< 0x00000100 */
  9817. #define PWR_SR2_REGLPS PWR_SR2_REGLPS_Msk /*!< Low-power Regulator Started */
  9818. #define PWR_SR2_REGLPF_Pos (9U)
  9819. #define PWR_SR2_REGLPF_Msk (0x1UL << PWR_SR2_REGLPF_Pos) /*!< 0x00000200 */
  9820. #define PWR_SR2_REGLPF PWR_SR2_REGLPF_Msk /*!< Low-power Regulator Flag */
  9821. #define PWR_SR2_VOSF_Pos (10U)
  9822. #define PWR_SR2_VOSF_Msk (0x1UL << PWR_SR2_VOSF_Pos) /*!< 0x00000400 */
  9823. #define PWR_SR2_VOSF PWR_SR2_VOSF_Msk /*!< Voltage Scaling Flag */
  9824. #define PWR_SR2_PVDO_Pos (11U)
  9825. #define PWR_SR2_PVDO_Msk (0x1UL << PWR_SR2_PVDO_Pos) /*!< 0x00000800 */
  9826. #define PWR_SR2_PVDO PWR_SR2_PVDO_Msk /*!< Power Voltage Detector Output */
  9827. #define PWR_SR2_PVMO1_Pos (12U)
  9828. #define PWR_SR2_PVMO1_Msk (0x1UL << PWR_SR2_PVMO1_Pos) /*!< 0x00001000 */
  9829. #define PWR_SR2_PVMO1 PWR_SR2_PVMO1_Msk /*!< Peripheral Voltage Monitoring Output 1 */
  9830. #define PWR_SR2_PVMO2_Pos (13U)
  9831. #define PWR_SR2_PVMO2_Msk (0x1UL << PWR_SR2_PVMO2_Pos) /*!< 0x00002000 */
  9832. #define PWR_SR2_PVMO2 PWR_SR2_PVMO2_Msk /*!< Peripheral Voltage Monitoring Output 2 */
  9833. #define PWR_SR2_PVMO3_Pos (14U)
  9834. #define PWR_SR2_PVMO3_Msk (0x1UL << PWR_SR2_PVMO3_Pos) /*!< 0x00004000 */
  9835. #define PWR_SR2_PVMO3 PWR_SR2_PVMO3_Msk /*!< Peripheral Voltage Monitoring Output 3 */
  9836. #define PWR_SR2_PVMO4_Pos (15U)
  9837. #define PWR_SR2_PVMO4_Msk (0x1UL << PWR_SR2_PVMO4_Pos) /*!< 0x00008000 */
  9838. #define PWR_SR2_PVMO4 PWR_SR2_PVMO4_Msk /*!< Peripheral Voltage Monitoring Output 4 */
  9839. /******************** Bit definition for PWR_SCR register ********************/
  9840. #define PWR_SCR_CWUF_Pos (0U)
  9841. #define PWR_SCR_CWUF_Msk (0x1FUL << PWR_SCR_CWUF_Pos) /*!< 0x0000001F */
  9842. #define PWR_SCR_CWUF PWR_SCR_CWUF_Msk /*!< Clear Wake-up Flags */
  9843. #define PWR_SCR_CWUF1_Pos (0U)
  9844. #define PWR_SCR_CWUF1_Msk (0x1UL << PWR_SCR_CWUF1_Pos) /*!< 0x00000001 */
  9845. #define PWR_SCR_CWUF1 PWR_SCR_CWUF1_Msk /*!< Clear Wake-up Flag 1 */
  9846. #define PWR_SCR_CWUF2_Pos (1U)
  9847. #define PWR_SCR_CWUF2_Msk (0x1UL << PWR_SCR_CWUF2_Pos) /*!< 0x00000002 */
  9848. #define PWR_SCR_CWUF2 PWR_SCR_CWUF2_Msk /*!< Clear Wake-up Flag 2 */
  9849. #define PWR_SCR_CWUF3_Pos (2U)
  9850. #define PWR_SCR_CWUF3_Msk (0x1UL << PWR_SCR_CWUF3_Pos) /*!< 0x00000004 */
  9851. #define PWR_SCR_CWUF3 PWR_SCR_CWUF3_Msk /*!< Clear Wake-up Flag 3 */
  9852. #define PWR_SCR_CWUF4_Pos (3U)
  9853. #define PWR_SCR_CWUF4_Msk (0x1UL << PWR_SCR_CWUF4_Pos) /*!< 0x00000008 */
  9854. #define PWR_SCR_CWUF4 PWR_SCR_CWUF4_Msk /*!< Clear Wake-up Flag 4 */
  9855. #define PWR_SCR_CWUF5_Pos (4U)
  9856. #define PWR_SCR_CWUF5_Msk (0x1UL << PWR_SCR_CWUF5_Pos) /*!< 0x00000010 */
  9857. #define PWR_SCR_CWUF5 PWR_SCR_CWUF5_Msk /*!< Clear Wake-up Flag 5 */
  9858. #define PWR_SCR_CSBF_Pos (8U)
  9859. #define PWR_SCR_CSBF_Msk (0x1UL << PWR_SCR_CSBF_Pos) /*!< 0x00000100 */
  9860. #define PWR_SCR_CSBF PWR_SCR_CSBF_Msk /*!< Clear Stand-By Flag */
  9861. /******************** Bit definition for PWR_PUCRA register ********************/
  9862. #define PWR_PUCRA_PU0_Pos (0U)
  9863. #define PWR_PUCRA_PU0_Msk (0x1UL << PWR_PUCRA_PU0_Pos) /*!< 0x00000001 */
  9864. #define PWR_PUCRA_PU0 PWR_PUCRA_PU0_Msk /*!< Port PA0 Pull-Up set */
  9865. #define PWR_PUCRA_PU1_Pos (1U)
  9866. #define PWR_PUCRA_PU1_Msk (0x1UL << PWR_PUCRA_PU1_Pos) /*!< 0x00000002 */
  9867. #define PWR_PUCRA_PU1 PWR_PUCRA_PU1_Msk /*!< Port PA1 Pull-Up set */
  9868. #define PWR_PUCRA_PU2_Pos (2U)
  9869. #define PWR_PUCRA_PU2_Msk (0x1UL << PWR_PUCRA_PU2_Pos) /*!< 0x00000004 */
  9870. #define PWR_PUCRA_PU2 PWR_PUCRA_PU2_Msk /*!< Port PA2 Pull-Up set */
  9871. #define PWR_PUCRA_PU3_Pos (3U)
  9872. #define PWR_PUCRA_PU3_Msk (0x1UL << PWR_PUCRA_PU3_Pos) /*!< 0x00000008 */
  9873. #define PWR_PUCRA_PU3 PWR_PUCRA_PU3_Msk /*!< Port PA3 Pull-Up set */
  9874. #define PWR_PUCRA_PU4_Pos (4U)
  9875. #define PWR_PUCRA_PU4_Msk (0x1UL << PWR_PUCRA_PU4_Pos) /*!< 0x00000010 */
  9876. #define PWR_PUCRA_PU4 PWR_PUCRA_PU4_Msk /*!< Port PA4 Pull-Up set */
  9877. #define PWR_PUCRA_PU5_Pos (5U)
  9878. #define PWR_PUCRA_PU5_Msk (0x1UL << PWR_PUCRA_PU5_Pos) /*!< 0x00000020 */
  9879. #define PWR_PUCRA_PU5 PWR_PUCRA_PU5_Msk /*!< Port PA5 Pull-Up set */
  9880. #define PWR_PUCRA_PU6_Pos (6U)
  9881. #define PWR_PUCRA_PU6_Msk (0x1UL << PWR_PUCRA_PU6_Pos) /*!< 0x00000040 */
  9882. #define PWR_PUCRA_PU6 PWR_PUCRA_PU6_Msk /*!< Port PA6 Pull-Up set */
  9883. #define PWR_PUCRA_PU7_Pos (7U)
  9884. #define PWR_PUCRA_PU7_Msk (0x1UL << PWR_PUCRA_PU7_Pos) /*!< 0x00000080 */
  9885. #define PWR_PUCRA_PU7 PWR_PUCRA_PU7_Msk /*!< Port PA7 Pull-Up set */
  9886. #define PWR_PUCRA_PU8_Pos (8U)
  9887. #define PWR_PUCRA_PU8_Msk (0x1UL << PWR_PUCRA_PU8_Pos) /*!< 0x00000100 */
  9888. #define PWR_PUCRA_PU8 PWR_PUCRA_PU8_Msk /*!< Port PA8 Pull-Up set */
  9889. #define PWR_PUCRA_PU9_Pos (9U)
  9890. #define PWR_PUCRA_PU9_Msk (0x1UL << PWR_PUCRA_PU9_Pos) /*!< 0x00000200 */
  9891. #define PWR_PUCRA_PU9 PWR_PUCRA_PU9_Msk /*!< Port PA9 Pull-Up set */
  9892. #define PWR_PUCRA_PU10_Pos (10U)
  9893. #define PWR_PUCRA_PU10_Msk (0x1UL << PWR_PUCRA_PU10_Pos) /*!< 0x00000400 */
  9894. #define PWR_PUCRA_PU10 PWR_PUCRA_PU10_Msk /*!< Port PA10 Pull-Up set */
  9895. #define PWR_PUCRA_PU11_Pos (11U)
  9896. #define PWR_PUCRA_PU11_Msk (0x1UL << PWR_PUCRA_PU11_Pos) /*!< 0x00000800 */
  9897. #define PWR_PUCRA_PU11 PWR_PUCRA_PU11_Msk /*!< Port PA11 Pull-Up set */
  9898. #define PWR_PUCRA_PU12_Pos (12U)
  9899. #define PWR_PUCRA_PU12_Msk (0x1UL << PWR_PUCRA_PU12_Pos) /*!< 0x00001000 */
  9900. #define PWR_PUCRA_PU12 PWR_PUCRA_PU12_Msk /*!< Port PA12 Pull-Up set */
  9901. #define PWR_PUCRA_PU13_Pos (13U)
  9902. #define PWR_PUCRA_PU13_Msk (0x1UL << PWR_PUCRA_PU13_Pos) /*!< 0x00002000 */
  9903. #define PWR_PUCRA_PU13 PWR_PUCRA_PU13_Msk /*!< Port PA13 Pull-Up set */
  9904. #define PWR_PUCRA_PU14_Pos (14U)
  9905. #define PWR_PUCRA_PU14_Msk (0x1UL << PWR_PUCRA_PU14_Pos) /*!< 0x00004000 */
  9906. #define PWR_PUCRA_PU14 PWR_PUCRA_PU14_Msk /*!< Port PA14 Pull-Up set */
  9907. #define PWR_PUCRA_PU15_Pos (15U)
  9908. #define PWR_PUCRA_PU15_Msk (0x1UL << PWR_PUCRA_PU15_Pos) /*!< 0x00008000 */
  9909. #define PWR_PUCRA_PU15 PWR_PUCRA_PU15_Msk /*!< Port PA15 Pull-Up set */
  9910. /******************** Bit definition for PWR_PDCRA register ********************/
  9911. #define PWR_PDCRA_PD0_Pos (0U)
  9912. #define PWR_PDCRA_PD0_Msk (0x1UL << PWR_PDCRA_PD0_Pos) /*!< 0x00000001 */
  9913. #define PWR_PDCRA_PD0 PWR_PDCRA_PD0_Msk /*!< Port PA0 Pull-Down set */
  9914. #define PWR_PDCRA_PD1_Pos (1U)
  9915. #define PWR_PDCRA_PD1_Msk (0x1UL << PWR_PDCRA_PD1_Pos) /*!< 0x00000002 */
  9916. #define PWR_PDCRA_PD1 PWR_PDCRA_PD1_Msk /*!< Port PA1 Pull-Down set */
  9917. #define PWR_PDCRA_PD2_Pos (2U)
  9918. #define PWR_PDCRA_PD2_Msk (0x1UL << PWR_PDCRA_PD2_Pos) /*!< 0x00000004 */
  9919. #define PWR_PDCRA_PD2 PWR_PDCRA_PD2_Msk /*!< Port PA2 Pull-Down set */
  9920. #define PWR_PDCRA_PD3_Pos (3U)
  9921. #define PWR_PDCRA_PD3_Msk (0x1UL << PWR_PDCRA_PD3_Pos) /*!< 0x00000008 */
  9922. #define PWR_PDCRA_PD3 PWR_PDCRA_PD3_Msk /*!< Port PA3 Pull-Down set */
  9923. #define PWR_PDCRA_PD4_Pos (4U)
  9924. #define PWR_PDCRA_PD4_Msk (0x1UL << PWR_PDCRA_PD4_Pos) /*!< 0x00000010 */
  9925. #define PWR_PDCRA_PD4 PWR_PDCRA_PD4_Msk /*!< Port PA4 Pull-Down set */
  9926. #define PWR_PDCRA_PD5_Pos (5U)
  9927. #define PWR_PDCRA_PD5_Msk (0x1UL << PWR_PDCRA_PD5_Pos) /*!< 0x00000020 */
  9928. #define PWR_PDCRA_PD5 PWR_PDCRA_PD5_Msk /*!< Port PA5 Pull-Down set */
  9929. #define PWR_PDCRA_PD6_Pos (6U)
  9930. #define PWR_PDCRA_PD6_Msk (0x1UL << PWR_PDCRA_PD6_Pos) /*!< 0x00000040 */
  9931. #define PWR_PDCRA_PD6 PWR_PDCRA_PD6_Msk /*!< Port PA6 Pull-Down set */
  9932. #define PWR_PDCRA_PD7_Pos (7U)
  9933. #define PWR_PDCRA_PD7_Msk (0x1UL << PWR_PDCRA_PD7_Pos) /*!< 0x00000080 */
  9934. #define PWR_PDCRA_PD7 PWR_PDCRA_PD7_Msk /*!< Port PA7 Pull-Down set */
  9935. #define PWR_PDCRA_PD8_Pos (8U)
  9936. #define PWR_PDCRA_PD8_Msk (0x1UL << PWR_PDCRA_PD8_Pos) /*!< 0x00000100 */
  9937. #define PWR_PDCRA_PD8 PWR_PDCRA_PD8_Msk /*!< Port PA8 Pull-Down set */
  9938. #define PWR_PDCRA_PD9_Pos (9U)
  9939. #define PWR_PDCRA_PD9_Msk (0x1UL << PWR_PDCRA_PD9_Pos) /*!< 0x00000200 */
  9940. #define PWR_PDCRA_PD9 PWR_PDCRA_PD9_Msk /*!< Port PA9 Pull-Down set */
  9941. #define PWR_PDCRA_PD10_Pos (10U)
  9942. #define PWR_PDCRA_PD10_Msk (0x1UL << PWR_PDCRA_PD10_Pos) /*!< 0x00000400 */
  9943. #define PWR_PDCRA_PD10 PWR_PDCRA_PD10_Msk /*!< Port PA10 Pull-Down set */
  9944. #define PWR_PDCRA_PD11_Pos (11U)
  9945. #define PWR_PDCRA_PD11_Msk (0x1UL << PWR_PDCRA_PD11_Pos) /*!< 0x00000800 */
  9946. #define PWR_PDCRA_PD11 PWR_PDCRA_PD11_Msk /*!< Port PA11 Pull-Down set */
  9947. #define PWR_PDCRA_PD12_Pos (12U)
  9948. #define PWR_PDCRA_PD12_Msk (0x1UL << PWR_PDCRA_PD12_Pos) /*!< 0x00001000 */
  9949. #define PWR_PDCRA_PD12 PWR_PDCRA_PD12_Msk /*!< Port PA12 Pull-Down set */
  9950. #define PWR_PDCRA_PD13_Pos (13U)
  9951. #define PWR_PDCRA_PD13_Msk (0x1UL << PWR_PDCRA_PD13_Pos) /*!< 0x00002000 */
  9952. #define PWR_PDCRA_PD13 PWR_PDCRA_PD13_Msk /*!< Port PA13 Pull-Down set */
  9953. #define PWR_PDCRA_PD14_Pos (14U)
  9954. #define PWR_PDCRA_PD14_Msk (0x1UL << PWR_PDCRA_PD14_Pos) /*!< 0x00004000 */
  9955. #define PWR_PDCRA_PD14 PWR_PDCRA_PD14_Msk /*!< Port PA14 Pull-Down set */
  9956. #define PWR_PDCRA_PD15_Pos (15U)
  9957. #define PWR_PDCRA_PD15_Msk (0x1UL << PWR_PDCRA_PD15_Pos) /*!< 0x00008000 */
  9958. #define PWR_PDCRA_PD15 PWR_PDCRA_PD15_Msk /*!< Port PA15 Pull-Down set */
  9959. /******************** Bit definition for PWR_PUCRB register ********************/
  9960. #define PWR_PUCRB_PU0_Pos (0U)
  9961. #define PWR_PUCRB_PU0_Msk (0x1UL << PWR_PUCRB_PU0_Pos) /*!< 0x00000001 */
  9962. #define PWR_PUCRB_PU0 PWR_PUCRB_PU0_Msk /*!< Port PB0 Pull-Up set */
  9963. #define PWR_PUCRB_PU1_Pos (1U)
  9964. #define PWR_PUCRB_PU1_Msk (0x1UL << PWR_PUCRB_PU1_Pos) /*!< 0x00000002 */
  9965. #define PWR_PUCRB_PU1 PWR_PUCRB_PU1_Msk /*!< Port PB1 Pull-Up set */
  9966. #define PWR_PUCRB_PU2_Pos (2U)
  9967. #define PWR_PUCRB_PU2_Msk (0x1UL << PWR_PUCRB_PU2_Pos) /*!< 0x00000004 */
  9968. #define PWR_PUCRB_PU2 PWR_PUCRB_PU2_Msk /*!< Port PB2 Pull-Up set */
  9969. #define PWR_PUCRB_PU3_Pos (3U)
  9970. #define PWR_PUCRB_PU3_Msk (0x1UL << PWR_PUCRB_PU3_Pos) /*!< 0x00000008 */
  9971. #define PWR_PUCRB_PU3 PWR_PUCRB_PU3_Msk /*!< Port PB3 Pull-Up set */
  9972. #define PWR_PUCRB_PU4_Pos (4U)
  9973. #define PWR_PUCRB_PU4_Msk (0x1UL << PWR_PUCRB_PU4_Pos) /*!< 0x00000010 */
  9974. #define PWR_PUCRB_PU4 PWR_PUCRB_PU4_Msk /*!< Port PB4 Pull-Up set */
  9975. #define PWR_PUCRB_PU5_Pos (5U)
  9976. #define PWR_PUCRB_PU5_Msk (0x1UL << PWR_PUCRB_PU5_Pos) /*!< 0x00000020 */
  9977. #define PWR_PUCRB_PU5 PWR_PUCRB_PU5_Msk /*!< Port PB5 Pull-Up set */
  9978. #define PWR_PUCRB_PU6_Pos (6U)
  9979. #define PWR_PUCRB_PU6_Msk (0x1UL << PWR_PUCRB_PU6_Pos) /*!< 0x00000040 */
  9980. #define PWR_PUCRB_PU6 PWR_PUCRB_PU6_Msk /*!< Port PB6 Pull-Up set */
  9981. #define PWR_PUCRB_PU7_Pos (7U)
  9982. #define PWR_PUCRB_PU7_Msk (0x1UL << PWR_PUCRB_PU7_Pos) /*!< 0x00000080 */
  9983. #define PWR_PUCRB_PU7 PWR_PUCRB_PU7_Msk /*!< Port PB7 Pull-Up set */
  9984. #define PWR_PUCRB_PU8_Pos (8U)
  9985. #define PWR_PUCRB_PU8_Msk (0x1UL << PWR_PUCRB_PU8_Pos) /*!< 0x00000100 */
  9986. #define PWR_PUCRB_PU8 PWR_PUCRB_PU8_Msk /*!< Port PB8 Pull-Up set */
  9987. #define PWR_PUCRB_PU9_Pos (9U)
  9988. #define PWR_PUCRB_PU9_Msk (0x1UL << PWR_PUCRB_PU9_Pos) /*!< 0x00000200 */
  9989. #define PWR_PUCRB_PU9 PWR_PUCRB_PU9_Msk /*!< Port PB9 Pull-Up set */
  9990. #define PWR_PUCRB_PU10_Pos (10U)
  9991. #define PWR_PUCRB_PU10_Msk (0x1UL << PWR_PUCRB_PU10_Pos) /*!< 0x00000400 */
  9992. #define PWR_PUCRB_PU10 PWR_PUCRB_PU10_Msk /*!< Port PB10 Pull-Up set */
  9993. #define PWR_PUCRB_PU11_Pos (11U)
  9994. #define PWR_PUCRB_PU11_Msk (0x1UL << PWR_PUCRB_PU11_Pos) /*!< 0x00000800 */
  9995. #define PWR_PUCRB_PU11 PWR_PUCRB_PU11_Msk /*!< Port PB11 Pull-Up set */
  9996. #define PWR_PUCRB_PU12_Pos (12U)
  9997. #define PWR_PUCRB_PU12_Msk (0x1UL << PWR_PUCRB_PU12_Pos) /*!< 0x00001000 */
  9998. #define PWR_PUCRB_PU12 PWR_PUCRB_PU12_Msk /*!< Port PB12 Pull-Up set */
  9999. #define PWR_PUCRB_PU13_Pos (13U)
  10000. #define PWR_PUCRB_PU13_Msk (0x1UL << PWR_PUCRB_PU13_Pos) /*!< 0x00002000 */
  10001. #define PWR_PUCRB_PU13 PWR_PUCRB_PU13_Msk /*!< Port PB13 Pull-Up set */
  10002. #define PWR_PUCRB_PU14_Pos (14U)
  10003. #define PWR_PUCRB_PU14_Msk (0x1UL << PWR_PUCRB_PU14_Pos) /*!< 0x00004000 */
  10004. #define PWR_PUCRB_PU14 PWR_PUCRB_PU14_Msk /*!< Port PB14 Pull-Up set */
  10005. #define PWR_PUCRB_PU15_Pos (15U)
  10006. #define PWR_PUCRB_PU15_Msk (0x1UL << PWR_PUCRB_PU15_Pos) /*!< 0x00008000 */
  10007. #define PWR_PUCRB_PU15 PWR_PUCRB_PU15_Msk /*!< Port PB15 Pull-Up set */
  10008. /******************** Bit definition for PWR_PDCRB register ********************/
  10009. #define PWR_PDCRB_PD0_Pos (0U)
  10010. #define PWR_PDCRB_PD0_Msk (0x1UL << PWR_PDCRB_PD0_Pos) /*!< 0x00000001 */
  10011. #define PWR_PDCRB_PD0 PWR_PDCRB_PD0_Msk /*!< Port PB0 Pull-Down set */
  10012. #define PWR_PDCRB_PD1_Pos (1U)
  10013. #define PWR_PDCRB_PD1_Msk (0x1UL << PWR_PDCRB_PD1_Pos) /*!< 0x00000002 */
  10014. #define PWR_PDCRB_PD1 PWR_PDCRB_PD1_Msk /*!< Port PB1 Pull-Down set */
  10015. #define PWR_PDCRB_PD2_Pos (2U)
  10016. #define PWR_PDCRB_PD2_Msk (0x1UL << PWR_PDCRB_PD2_Pos) /*!< 0x00000004 */
  10017. #define PWR_PDCRB_PD2 PWR_PDCRB_PD2_Msk /*!< Port PB2 Pull-Down set */
  10018. #define PWR_PDCRB_PD3_Pos (3U)
  10019. #define PWR_PDCRB_PD3_Msk (0x1UL << PWR_PDCRB_PD3_Pos) /*!< 0x00000008 */
  10020. #define PWR_PDCRB_PD3 PWR_PDCRB_PD3_Msk /*!< Port PB3 Pull-Down set */
  10021. #define PWR_PDCRB_PD4_Pos (4U)
  10022. #define PWR_PDCRB_PD4_Msk (0x1UL << PWR_PDCRB_PD4_Pos) /*!< 0x00000010 */
  10023. #define PWR_PDCRB_PD4 PWR_PDCRB_PD4_Msk /*!< Port PB4 Pull-Down set */
  10024. #define PWR_PDCRB_PD5_Pos (5U)
  10025. #define PWR_PDCRB_PD5_Msk (0x1UL << PWR_PDCRB_PD5_Pos) /*!< 0x00000020 */
  10026. #define PWR_PDCRB_PD5 PWR_PDCRB_PD5_Msk /*!< Port PB5 Pull-Down set */
  10027. #define PWR_PDCRB_PD6_Pos (6U)
  10028. #define PWR_PDCRB_PD6_Msk (0x1UL << PWR_PDCRB_PD6_Pos) /*!< 0x00000040 */
  10029. #define PWR_PDCRB_PD6 PWR_PDCRB_PD6_Msk /*!< Port PB6 Pull-Down set */
  10030. #define PWR_PDCRB_PD7_Pos (7U)
  10031. #define PWR_PDCRB_PD7_Msk (0x1UL << PWR_PDCRB_PD7_Pos) /*!< 0x00000080 */
  10032. #define PWR_PDCRB_PD7 PWR_PDCRB_PD7_Msk /*!< Port PB7 Pull-Down set */
  10033. #define PWR_PDCRB_PD8_Pos (8U)
  10034. #define PWR_PDCRB_PD8_Msk (0x1UL << PWR_PDCRB_PD8_Pos) /*!< 0x00000100 */
  10035. #define PWR_PDCRB_PD8 PWR_PDCRB_PD8_Msk /*!< Port PB8 Pull-Down set */
  10036. #define PWR_PDCRB_PD9_Pos (9U)
  10037. #define PWR_PDCRB_PD9_Msk (0x1UL << PWR_PDCRB_PD9_Pos) /*!< 0x00000200 */
  10038. #define PWR_PDCRB_PD9 PWR_PDCRB_PD9_Msk /*!< Port PB9 Pull-Down set */
  10039. #define PWR_PDCRB_PD10_Pos (10U)
  10040. #define PWR_PDCRB_PD10_Msk (0x1UL << PWR_PDCRB_PD10_Pos) /*!< 0x00000400 */
  10041. #define PWR_PDCRB_PD10 PWR_PDCRB_PD10_Msk /*!< Port PB10 Pull-Down set */
  10042. #define PWR_PDCRB_PD11_Pos (11U)
  10043. #define PWR_PDCRB_PD11_Msk (0x1UL << PWR_PDCRB_PD11_Pos) /*!< 0x00000800 */
  10044. #define PWR_PDCRB_PD11 PWR_PDCRB_PD11_Msk /*!< Port PB11 Pull-Down set */
  10045. #define PWR_PDCRB_PD12_Pos (12U)
  10046. #define PWR_PDCRB_PD12_Msk (0x1UL << PWR_PDCRB_PD12_Pos) /*!< 0x00001000 */
  10047. #define PWR_PDCRB_PD12 PWR_PDCRB_PD12_Msk /*!< Port PB12 Pull-Down set */
  10048. #define PWR_PDCRB_PD13_Pos (13U)
  10049. #define PWR_PDCRB_PD13_Msk (0x1UL << PWR_PDCRB_PD13_Pos) /*!< 0x00002000 */
  10050. #define PWR_PDCRB_PD13 PWR_PDCRB_PD13_Msk /*!< Port PB13 Pull-Down set */
  10051. #define PWR_PDCRB_PD14_Pos (14U)
  10052. #define PWR_PDCRB_PD14_Msk (0x1UL << PWR_PDCRB_PD14_Pos) /*!< 0x00004000 */
  10053. #define PWR_PDCRB_PD14 PWR_PDCRB_PD14_Msk /*!< Port PB14 Pull-Down set */
  10054. #define PWR_PDCRB_PD15_Pos (15U)
  10055. #define PWR_PDCRB_PD15_Msk (0x1UL << PWR_PDCRB_PD15_Pos) /*!< 0x00008000 */
  10056. #define PWR_PDCRB_PD15 PWR_PDCRB_PD15_Msk /*!< Port PB15 Pull-Down set */
  10057. /******************** Bit definition for PWR_PUCRC register ********************/
  10058. #define PWR_PUCRC_PU0_Pos (0U)
  10059. #define PWR_PUCRC_PU0_Msk (0x1UL << PWR_PUCRC_PU0_Pos) /*!< 0x00000001 */
  10060. #define PWR_PUCRC_PU0 PWR_PUCRC_PU0_Msk /*!< Port PC0 Pull-Up set */
  10061. #define PWR_PUCRC_PU1_Pos (1U)
  10062. #define PWR_PUCRC_PU1_Msk (0x1UL << PWR_PUCRC_PU1_Pos) /*!< 0x00000002 */
  10063. #define PWR_PUCRC_PU1 PWR_PUCRC_PU1_Msk /*!< Port PC1 Pull-Up set */
  10064. #define PWR_PUCRC_PU2_Pos (2U)
  10065. #define PWR_PUCRC_PU2_Msk (0x1UL << PWR_PUCRC_PU2_Pos) /*!< 0x00000004 */
  10066. #define PWR_PUCRC_PU2 PWR_PUCRC_PU2_Msk /*!< Port PC2 Pull-Up set */
  10067. #define PWR_PUCRC_PU3_Pos (3U)
  10068. #define PWR_PUCRC_PU3_Msk (0x1UL << PWR_PUCRC_PU3_Pos) /*!< 0x00000008 */
  10069. #define PWR_PUCRC_PU3 PWR_PUCRC_PU3_Msk /*!< Port PC3 Pull-Up set */
  10070. #define PWR_PUCRC_PU4_Pos (4U)
  10071. #define PWR_PUCRC_PU4_Msk (0x1UL << PWR_PUCRC_PU4_Pos) /*!< 0x00000010 */
  10072. #define PWR_PUCRC_PU4 PWR_PUCRC_PU4_Msk /*!< Port PC4 Pull-Up set */
  10073. #define PWR_PUCRC_PU5_Pos (5U)
  10074. #define PWR_PUCRC_PU5_Msk (0x1UL << PWR_PUCRC_PU5_Pos) /*!< 0x00000020 */
  10075. #define PWR_PUCRC_PU5 PWR_PUCRC_PU5_Msk /*!< Port PC5 Pull-Up set */
  10076. #define PWR_PUCRC_PU6_Pos (6U)
  10077. #define PWR_PUCRC_PU6_Msk (0x1UL << PWR_PUCRC_PU6_Pos) /*!< 0x00000040 */
  10078. #define PWR_PUCRC_PU6 PWR_PUCRC_PU6_Msk /*!< Port PC6 Pull-Up set */
  10079. #define PWR_PUCRC_PU7_Pos (7U)
  10080. #define PWR_PUCRC_PU7_Msk (0x1UL << PWR_PUCRC_PU7_Pos) /*!< 0x00000080 */
  10081. #define PWR_PUCRC_PU7 PWR_PUCRC_PU7_Msk /*!< Port PC7 Pull-Up set */
  10082. #define PWR_PUCRC_PU8_Pos (8U)
  10083. #define PWR_PUCRC_PU8_Msk (0x1UL << PWR_PUCRC_PU8_Pos) /*!< 0x00000100 */
  10084. #define PWR_PUCRC_PU8 PWR_PUCRC_PU8_Msk /*!< Port PC8 Pull-Up set */
  10085. #define PWR_PUCRC_PU9_Pos (9U)
  10086. #define PWR_PUCRC_PU9_Msk (0x1UL << PWR_PUCRC_PU9_Pos) /*!< 0x00000200 */
  10087. #define PWR_PUCRC_PU9 PWR_PUCRC_PU9_Msk /*!< Port PC9 Pull-Up set */
  10088. #define PWR_PUCRC_PU10_Pos (10U)
  10089. #define PWR_PUCRC_PU10_Msk (0x1UL << PWR_PUCRC_PU10_Pos) /*!< 0x00000400 */
  10090. #define PWR_PUCRC_PU10 PWR_PUCRC_PU10_Msk /*!< Port PC10 Pull-Up set */
  10091. #define PWR_PUCRC_PU11_Pos (11U)
  10092. #define PWR_PUCRC_PU11_Msk (0x1UL << PWR_PUCRC_PU11_Pos) /*!< 0x00000800 */
  10093. #define PWR_PUCRC_PU11 PWR_PUCRC_PU11_Msk /*!< Port PC11 Pull-Up set */
  10094. #define PWR_PUCRC_PU12_Pos (12U)
  10095. #define PWR_PUCRC_PU12_Msk (0x1UL << PWR_PUCRC_PU12_Pos) /*!< 0x00001000 */
  10096. #define PWR_PUCRC_PU12 PWR_PUCRC_PU12_Msk /*!< Port PC12 Pull-Up set */
  10097. #define PWR_PUCRC_PU13_Pos (13U)
  10098. #define PWR_PUCRC_PU13_Msk (0x1UL << PWR_PUCRC_PU13_Pos) /*!< 0x00002000 */
  10099. #define PWR_PUCRC_PU13 PWR_PUCRC_PU13_Msk /*!< Port PC13 Pull-Up set */
  10100. #define PWR_PUCRC_PU14_Pos (14U)
  10101. #define PWR_PUCRC_PU14_Msk (0x1UL << PWR_PUCRC_PU14_Pos) /*!< 0x00004000 */
  10102. #define PWR_PUCRC_PU14 PWR_PUCRC_PU14_Msk /*!< Port PC14 Pull-Up set */
  10103. #define PWR_PUCRC_PU15_Pos (15U)
  10104. #define PWR_PUCRC_PU15_Msk (0x1UL << PWR_PUCRC_PU15_Pos) /*!< 0x00008000 */
  10105. #define PWR_PUCRC_PU15 PWR_PUCRC_PU15_Msk /*!< Port PC15 Pull-Up set */
  10106. /******************** Bit definition for PWR_PDCRC register ********************/
  10107. #define PWR_PDCRC_PD0_Pos (0U)
  10108. #define PWR_PDCRC_PD0_Msk (0x1UL << PWR_PDCRC_PD0_Pos) /*!< 0x00000001 */
  10109. #define PWR_PDCRC_PD0 PWR_PDCRC_PD0_Msk /*!< Port PC0 Pull-Down set */
  10110. #define PWR_PDCRC_PD1_Pos (1U)
  10111. #define PWR_PDCRC_PD1_Msk (0x1UL << PWR_PDCRC_PD1_Pos) /*!< 0x00000002 */
  10112. #define PWR_PDCRC_PD1 PWR_PDCRC_PD1_Msk /*!< Port PC1 Pull-Down set */
  10113. #define PWR_PDCRC_PD2_Pos (2U)
  10114. #define PWR_PDCRC_PD2_Msk (0x1UL << PWR_PDCRC_PD2_Pos) /*!< 0x00000004 */
  10115. #define PWR_PDCRC_PD2 PWR_PDCRC_PD2_Msk /*!< Port PC2 Pull-Down set */
  10116. #define PWR_PDCRC_PD3_Pos (3U)
  10117. #define PWR_PDCRC_PD3_Msk (0x1UL << PWR_PDCRC_PD3_Pos) /*!< 0x00000008 */
  10118. #define PWR_PDCRC_PD3 PWR_PDCRC_PD3_Msk /*!< Port PC3 Pull-Down set */
  10119. #define PWR_PDCRC_PD4_Pos (4U)
  10120. #define PWR_PDCRC_PD4_Msk (0x1UL << PWR_PDCRC_PD4_Pos) /*!< 0x00000010 */
  10121. #define PWR_PDCRC_PD4 PWR_PDCRC_PD4_Msk /*!< Port PC4 Pull-Down set */
  10122. #define PWR_PDCRC_PD5_Pos (5U)
  10123. #define PWR_PDCRC_PD5_Msk (0x1UL << PWR_PDCRC_PD5_Pos) /*!< 0x00000020 */
  10124. #define PWR_PDCRC_PD5 PWR_PDCRC_PD5_Msk /*!< Port PC5 Pull-Down set */
  10125. #define PWR_PDCRC_PD6_Pos (6U)
  10126. #define PWR_PDCRC_PD6_Msk (0x1UL << PWR_PDCRC_PD6_Pos) /*!< 0x00000040 */
  10127. #define PWR_PDCRC_PD6 PWR_PDCRC_PD6_Msk /*!< Port PC6 Pull-Down set */
  10128. #define PWR_PDCRC_PD7_Pos (7U)
  10129. #define PWR_PDCRC_PD7_Msk (0x1UL << PWR_PDCRC_PD7_Pos) /*!< 0x00000080 */
  10130. #define PWR_PDCRC_PD7 PWR_PDCRC_PD7_Msk /*!< Port PC7 Pull-Down set */
  10131. #define PWR_PDCRC_PD8_Pos (8U)
  10132. #define PWR_PDCRC_PD8_Msk (0x1UL << PWR_PDCRC_PD8_Pos) /*!< 0x00000100 */
  10133. #define PWR_PDCRC_PD8 PWR_PDCRC_PD8_Msk /*!< Port PC8 Pull-Down set */
  10134. #define PWR_PDCRC_PD9_Pos (9U)
  10135. #define PWR_PDCRC_PD9_Msk (0x1UL << PWR_PDCRC_PD9_Pos) /*!< 0x00000200 */
  10136. #define PWR_PDCRC_PD9 PWR_PDCRC_PD9_Msk /*!< Port PC9 Pull-Down set */
  10137. #define PWR_PDCRC_PD10_Pos (10U)
  10138. #define PWR_PDCRC_PD10_Msk (0x1UL << PWR_PDCRC_PD10_Pos) /*!< 0x00000400 */
  10139. #define PWR_PDCRC_PD10 PWR_PDCRC_PD10_Msk /*!< Port PC10 Pull-Down set */
  10140. #define PWR_PDCRC_PD11_Pos (11U)
  10141. #define PWR_PDCRC_PD11_Msk (0x1UL << PWR_PDCRC_PD11_Pos) /*!< 0x00000800 */
  10142. #define PWR_PDCRC_PD11 PWR_PDCRC_PD11_Msk /*!< Port PC11 Pull-Down set */
  10143. #define PWR_PDCRC_PD12_Pos (12U)
  10144. #define PWR_PDCRC_PD12_Msk (0x1UL << PWR_PDCRC_PD12_Pos) /*!< 0x00001000 */
  10145. #define PWR_PDCRC_PD12 PWR_PDCRC_PD12_Msk /*!< Port PC12 Pull-Down set */
  10146. #define PWR_PDCRC_PD13_Pos (13U)
  10147. #define PWR_PDCRC_PD13_Msk (0x1UL << PWR_PDCRC_PD13_Pos) /*!< 0x00002000 */
  10148. #define PWR_PDCRC_PD13 PWR_PDCRC_PD13_Msk /*!< Port PC13 Pull-Down set */
  10149. #define PWR_PDCRC_PD14_Pos (14U)
  10150. #define PWR_PDCRC_PD14_Msk (0x1UL << PWR_PDCRC_PD14_Pos) /*!< 0x00004000 */
  10151. #define PWR_PDCRC_PD14 PWR_PDCRC_PD14_Msk /*!< Port PC14 Pull-Down set */
  10152. #define PWR_PDCRC_PD15_Pos (15U)
  10153. #define PWR_PDCRC_PD15_Msk (0x1UL << PWR_PDCRC_PD15_Pos) /*!< 0x00008000 */
  10154. #define PWR_PDCRC_PD15 PWR_PDCRC_PD15_Msk /*!< Port PC15 Pull-Down set */
  10155. /******************** Bit definition for PWR_PUCRD register ********************/
  10156. #define PWR_PUCRD_PU0_Pos (0U)
  10157. #define PWR_PUCRD_PU0_Msk (0x1UL << PWR_PUCRD_PU0_Pos) /*!< 0x00000001 */
  10158. #define PWR_PUCRD_PU0 PWR_PUCRD_PU0_Msk /*!< Port PD0 Pull-Up set */
  10159. #define PWR_PUCRD_PU1_Pos (1U)
  10160. #define PWR_PUCRD_PU1_Msk (0x1UL << PWR_PUCRD_PU1_Pos) /*!< 0x00000002 */
  10161. #define PWR_PUCRD_PU1 PWR_PUCRD_PU1_Msk /*!< Port PD1 Pull-Up set */
  10162. #define PWR_PUCRD_PU2_Pos (2U)
  10163. #define PWR_PUCRD_PU2_Msk (0x1UL << PWR_PUCRD_PU2_Pos) /*!< 0x00000004 */
  10164. #define PWR_PUCRD_PU2 PWR_PUCRD_PU2_Msk /*!< Port PD2 Pull-Up set */
  10165. #define PWR_PUCRD_PU3_Pos (3U)
  10166. #define PWR_PUCRD_PU3_Msk (0x1UL << PWR_PUCRD_PU3_Pos) /*!< 0x00000008 */
  10167. #define PWR_PUCRD_PU3 PWR_PUCRD_PU3_Msk /*!< Port PD3 Pull-Up set */
  10168. #define PWR_PUCRD_PU4_Pos (4U)
  10169. #define PWR_PUCRD_PU4_Msk (0x1UL << PWR_PUCRD_PU4_Pos) /*!< 0x00000010 */
  10170. #define PWR_PUCRD_PU4 PWR_PUCRD_PU4_Msk /*!< Port PD4 Pull-Up set */
  10171. #define PWR_PUCRD_PU5_Pos (5U)
  10172. #define PWR_PUCRD_PU5_Msk (0x1UL << PWR_PUCRD_PU5_Pos) /*!< 0x00000020 */
  10173. #define PWR_PUCRD_PU5 PWR_PUCRD_PU5_Msk /*!< Port PD5 Pull-Up set */
  10174. #define PWR_PUCRD_PU6_Pos (6U)
  10175. #define PWR_PUCRD_PU6_Msk (0x1UL << PWR_PUCRD_PU6_Pos) /*!< 0x00000040 */
  10176. #define PWR_PUCRD_PU6 PWR_PUCRD_PU6_Msk /*!< Port PD6 Pull-Up set */
  10177. #define PWR_PUCRD_PU7_Pos (7U)
  10178. #define PWR_PUCRD_PU7_Msk (0x1UL << PWR_PUCRD_PU7_Pos) /*!< 0x00000080 */
  10179. #define PWR_PUCRD_PU7 PWR_PUCRD_PU7_Msk /*!< Port PD7 Pull-Up set */
  10180. #define PWR_PUCRD_PU8_Pos (8U)
  10181. #define PWR_PUCRD_PU8_Msk (0x1UL << PWR_PUCRD_PU8_Pos) /*!< 0x00000100 */
  10182. #define PWR_PUCRD_PU8 PWR_PUCRD_PU8_Msk /*!< Port PD8 Pull-Up set */
  10183. #define PWR_PUCRD_PU9_Pos (9U)
  10184. #define PWR_PUCRD_PU9_Msk (0x1UL << PWR_PUCRD_PU9_Pos) /*!< 0x00000200 */
  10185. #define PWR_PUCRD_PU9 PWR_PUCRD_PU9_Msk /*!< Port PD9 Pull-Up set */
  10186. #define PWR_PUCRD_PU10_Pos (10U)
  10187. #define PWR_PUCRD_PU10_Msk (0x1UL << PWR_PUCRD_PU10_Pos) /*!< 0x00000400 */
  10188. #define PWR_PUCRD_PU10 PWR_PUCRD_PU10_Msk /*!< Port PD10 Pull-Up set */
  10189. #define PWR_PUCRD_PU11_Pos (11U)
  10190. #define PWR_PUCRD_PU11_Msk (0x1UL << PWR_PUCRD_PU11_Pos) /*!< 0x00000800 */
  10191. #define PWR_PUCRD_PU11 PWR_PUCRD_PU11_Msk /*!< Port PD11 Pull-Up set */
  10192. #define PWR_PUCRD_PU12_Pos (12U)
  10193. #define PWR_PUCRD_PU12_Msk (0x1UL << PWR_PUCRD_PU12_Pos) /*!< 0x00001000 */
  10194. #define PWR_PUCRD_PU12 PWR_PUCRD_PU12_Msk /*!< Port PD12 Pull-Up set */
  10195. #define PWR_PUCRD_PU13_Pos (13U)
  10196. #define PWR_PUCRD_PU13_Msk (0x1UL << PWR_PUCRD_PU13_Pos) /*!< 0x00002000 */
  10197. #define PWR_PUCRD_PU13 PWR_PUCRD_PU13_Msk /*!< Port PD13 Pull-Up set */
  10198. #define PWR_PUCRD_PU14_Pos (14U)
  10199. #define PWR_PUCRD_PU14_Msk (0x1UL << PWR_PUCRD_PU14_Pos) /*!< 0x00004000 */
  10200. #define PWR_PUCRD_PU14 PWR_PUCRD_PU14_Msk /*!< Port PD14 Pull-Up set */
  10201. #define PWR_PUCRD_PU15_Pos (15U)
  10202. #define PWR_PUCRD_PU15_Msk (0x1UL << PWR_PUCRD_PU15_Pos) /*!< 0x00008000 */
  10203. #define PWR_PUCRD_PU15 PWR_PUCRD_PU15_Msk /*!< Port PD15 Pull-Up set */
  10204. /******************** Bit definition for PWR_PDCRD register ********************/
  10205. #define PWR_PDCRD_PD0_Pos (0U)
  10206. #define PWR_PDCRD_PD0_Msk (0x1UL << PWR_PDCRD_PD0_Pos) /*!< 0x00000001 */
  10207. #define PWR_PDCRD_PD0 PWR_PDCRD_PD0_Msk /*!< Port PD0 Pull-Down set */
  10208. #define PWR_PDCRD_PD1_Pos (1U)
  10209. #define PWR_PDCRD_PD1_Msk (0x1UL << PWR_PDCRD_PD1_Pos) /*!< 0x00000002 */
  10210. #define PWR_PDCRD_PD1 PWR_PDCRD_PD1_Msk /*!< Port PD1 Pull-Down set */
  10211. #define PWR_PDCRD_PD2_Pos (2U)
  10212. #define PWR_PDCRD_PD2_Msk (0x1UL << PWR_PDCRD_PD2_Pos) /*!< 0x00000004 */
  10213. #define PWR_PDCRD_PD2 PWR_PDCRD_PD2_Msk /*!< Port PD2 Pull-Down set */
  10214. #define PWR_PDCRD_PD3_Pos (3U)
  10215. #define PWR_PDCRD_PD3_Msk (0x1UL << PWR_PDCRD_PD3_Pos) /*!< 0x00000008 */
  10216. #define PWR_PDCRD_PD3 PWR_PDCRD_PD3_Msk /*!< Port PD3 Pull-Down set */
  10217. #define PWR_PDCRD_PD4_Pos (4U)
  10218. #define PWR_PDCRD_PD4_Msk (0x1UL << PWR_PDCRD_PD4_Pos) /*!< 0x00000010 */
  10219. #define PWR_PDCRD_PD4 PWR_PDCRD_PD4_Msk /*!< Port PD4 Pull-Down set */
  10220. #define PWR_PDCRD_PD5_Pos (5U)
  10221. #define PWR_PDCRD_PD5_Msk (0x1UL << PWR_PDCRD_PD5_Pos) /*!< 0x00000020 */
  10222. #define PWR_PDCRD_PD5 PWR_PDCRD_PD5_Msk /*!< Port PD5 Pull-Down set */
  10223. #define PWR_PDCRD_PD6_Pos (6U)
  10224. #define PWR_PDCRD_PD6_Msk (0x1UL << PWR_PDCRD_PD6_Pos) /*!< 0x00000040 */
  10225. #define PWR_PDCRD_PD6 PWR_PDCRD_PD6_Msk /*!< Port PD6 Pull-Down set */
  10226. #define PWR_PDCRD_PD7_Pos (7U)
  10227. #define PWR_PDCRD_PD7_Msk (0x1UL << PWR_PDCRD_PD7_Pos) /*!< 0x00000080 */
  10228. #define PWR_PDCRD_PD7 PWR_PDCRD_PD7_Msk /*!< Port PD7 Pull-Down set */
  10229. #define PWR_PDCRD_PD8_Pos (8U)
  10230. #define PWR_PDCRD_PD8_Msk (0x1UL << PWR_PDCRD_PD8_Pos) /*!< 0x00000100 */
  10231. #define PWR_PDCRD_PD8 PWR_PDCRD_PD8_Msk /*!< Port PD8 Pull-Down set */
  10232. #define PWR_PDCRD_PD9_Pos (9U)
  10233. #define PWR_PDCRD_PD9_Msk (0x1UL << PWR_PDCRD_PD9_Pos) /*!< 0x00000200 */
  10234. #define PWR_PDCRD_PD9 PWR_PDCRD_PD9_Msk /*!< Port PD9 Pull-Down set */
  10235. #define PWR_PDCRD_PD10_Pos (10U)
  10236. #define PWR_PDCRD_PD10_Msk (0x1UL << PWR_PDCRD_PD10_Pos) /*!< 0x00000400 */
  10237. #define PWR_PDCRD_PD10 PWR_PDCRD_PD10_Msk /*!< Port PD10 Pull-Down set */
  10238. #define PWR_PDCRD_PD11_Pos (11U)
  10239. #define PWR_PDCRD_PD11_Msk (0x1UL << PWR_PDCRD_PD11_Pos) /*!< 0x00000800 */
  10240. #define PWR_PDCRD_PD11 PWR_PDCRD_PD11_Msk /*!< Port PD11 Pull-Down set */
  10241. #define PWR_PDCRD_PD12_Pos (12U)
  10242. #define PWR_PDCRD_PD12_Msk (0x1UL << PWR_PDCRD_PD12_Pos) /*!< 0x00001000 */
  10243. #define PWR_PDCRD_PD12 PWR_PDCRD_PD12_Msk /*!< Port PD12 Pull-Down set */
  10244. #define PWR_PDCRD_PD13_Pos (13U)
  10245. #define PWR_PDCRD_PD13_Msk (0x1UL << PWR_PDCRD_PD13_Pos) /*!< 0x00002000 */
  10246. #define PWR_PDCRD_PD13 PWR_PDCRD_PD13_Msk /*!< Port PD13 Pull-Down set */
  10247. #define PWR_PDCRD_PD14_Pos (14U)
  10248. #define PWR_PDCRD_PD14_Msk (0x1UL << PWR_PDCRD_PD14_Pos) /*!< 0x00004000 */
  10249. #define PWR_PDCRD_PD14 PWR_PDCRD_PD14_Msk /*!< Port PD14 Pull-Down set */
  10250. #define PWR_PDCRD_PD15_Pos (15U)
  10251. #define PWR_PDCRD_PD15_Msk (0x1UL << PWR_PDCRD_PD15_Pos) /*!< 0x00008000 */
  10252. #define PWR_PDCRD_PD15 PWR_PDCRD_PD15_Msk /*!< Port PD15 Pull-Down set */
  10253. /******************** Bit definition for PWR_PUCRE register ********************/
  10254. #define PWR_PUCRE_PU0_Pos (0U)
  10255. #define PWR_PUCRE_PU0_Msk (0x1UL << PWR_PUCRE_PU0_Pos) /*!< 0x00000001 */
  10256. #define PWR_PUCRE_PU0 PWR_PUCRE_PU0_Msk /*!< Port PE0 Pull-Up set */
  10257. #define PWR_PUCRE_PU1_Pos (1U)
  10258. #define PWR_PUCRE_PU1_Msk (0x1UL << PWR_PUCRE_PU1_Pos) /*!< 0x00000002 */
  10259. #define PWR_PUCRE_PU1 PWR_PUCRE_PU1_Msk /*!< Port PE1 Pull-Up set */
  10260. #define PWR_PUCRE_PU2_Pos (2U)
  10261. #define PWR_PUCRE_PU2_Msk (0x1UL << PWR_PUCRE_PU2_Pos) /*!< 0x00000004 */
  10262. #define PWR_PUCRE_PU2 PWR_PUCRE_PU2_Msk /*!< Port PE2 Pull-Up set */
  10263. #define PWR_PUCRE_PU3_Pos (3U)
  10264. #define PWR_PUCRE_PU3_Msk (0x1UL << PWR_PUCRE_PU3_Pos) /*!< 0x00000008 */
  10265. #define PWR_PUCRE_PU3 PWR_PUCRE_PU3_Msk /*!< Port PE3 Pull-Up set */
  10266. #define PWR_PUCRE_PU4_Pos (4U)
  10267. #define PWR_PUCRE_PU4_Msk (0x1UL << PWR_PUCRE_PU4_Pos) /*!< 0x00000010 */
  10268. #define PWR_PUCRE_PU4 PWR_PUCRE_PU4_Msk /*!< Port PE4 Pull-Up set */
  10269. #define PWR_PUCRE_PU5_Pos (5U)
  10270. #define PWR_PUCRE_PU5_Msk (0x1UL << PWR_PUCRE_PU5_Pos) /*!< 0x00000020 */
  10271. #define PWR_PUCRE_PU5 PWR_PUCRE_PU5_Msk /*!< Port PE5 Pull-Up set */
  10272. #define PWR_PUCRE_PU6_Pos (6U)
  10273. #define PWR_PUCRE_PU6_Msk (0x1UL << PWR_PUCRE_PU6_Pos) /*!< 0x00000040 */
  10274. #define PWR_PUCRE_PU6 PWR_PUCRE_PU6_Msk /*!< Port PE6 Pull-Up set */
  10275. #define PWR_PUCRE_PU7_Pos (7U)
  10276. #define PWR_PUCRE_PU7_Msk (0x1UL << PWR_PUCRE_PU7_Pos) /*!< 0x00000080 */
  10277. #define PWR_PUCRE_PU7 PWR_PUCRE_PU7_Msk /*!< Port PE7 Pull-Up set */
  10278. #define PWR_PUCRE_PU8_Pos (8U)
  10279. #define PWR_PUCRE_PU8_Msk (0x1UL << PWR_PUCRE_PU8_Pos) /*!< 0x00000100 */
  10280. #define PWR_PUCRE_PU8 PWR_PUCRE_PU8_Msk /*!< Port PE8 Pull-Up set */
  10281. #define PWR_PUCRE_PU9_Pos (9U)
  10282. #define PWR_PUCRE_PU9_Msk (0x1UL << PWR_PUCRE_PU9_Pos) /*!< 0x00000200 */
  10283. #define PWR_PUCRE_PU9 PWR_PUCRE_PU9_Msk /*!< Port PE9 Pull-Up set */
  10284. #define PWR_PUCRE_PU10_Pos (10U)
  10285. #define PWR_PUCRE_PU10_Msk (0x1UL << PWR_PUCRE_PU10_Pos) /*!< 0x00000400 */
  10286. #define PWR_PUCRE_PU10 PWR_PUCRE_PU10_Msk /*!< Port PE10 Pull-Up set */
  10287. #define PWR_PUCRE_PU11_Pos (11U)
  10288. #define PWR_PUCRE_PU11_Msk (0x1UL << PWR_PUCRE_PU11_Pos) /*!< 0x00000800 */
  10289. #define PWR_PUCRE_PU11 PWR_PUCRE_PU11_Msk /*!< Port PE11 Pull-Up set */
  10290. #define PWR_PUCRE_PU12_Pos (12U)
  10291. #define PWR_PUCRE_PU12_Msk (0x1UL << PWR_PUCRE_PU12_Pos) /*!< 0x00001000 */
  10292. #define PWR_PUCRE_PU12 PWR_PUCRE_PU12_Msk /*!< Port PE12 Pull-Up set */
  10293. #define PWR_PUCRE_PU13_Pos (13U)
  10294. #define PWR_PUCRE_PU13_Msk (0x1UL << PWR_PUCRE_PU13_Pos) /*!< 0x00002000 */
  10295. #define PWR_PUCRE_PU13 PWR_PUCRE_PU13_Msk /*!< Port PE13 Pull-Up set */
  10296. #define PWR_PUCRE_PU14_Pos (14U)
  10297. #define PWR_PUCRE_PU14_Msk (0x1UL << PWR_PUCRE_PU14_Pos) /*!< 0x00004000 */
  10298. #define PWR_PUCRE_PU14 PWR_PUCRE_PU14_Msk /*!< Port PE14 Pull-Up set */
  10299. #define PWR_PUCRE_PU15_Pos (15U)
  10300. #define PWR_PUCRE_PU15_Msk (0x1UL << PWR_PUCRE_PU15_Pos) /*!< 0x00008000 */
  10301. #define PWR_PUCRE_PU15 PWR_PUCRE_PU15_Msk /*!< Port PE15 Pull-Up set */
  10302. /******************** Bit definition for PWR_PDCRE register ********************/
  10303. #define PWR_PDCRE_PD0_Pos (0U)
  10304. #define PWR_PDCRE_PD0_Msk (0x1UL << PWR_PDCRE_PD0_Pos) /*!< 0x00000001 */
  10305. #define PWR_PDCRE_PD0 PWR_PDCRE_PD0_Msk /*!< Port PE0 Pull-Down set */
  10306. #define PWR_PDCRE_PD1_Pos (1U)
  10307. #define PWR_PDCRE_PD1_Msk (0x1UL << PWR_PDCRE_PD1_Pos) /*!< 0x00000002 */
  10308. #define PWR_PDCRE_PD1 PWR_PDCRE_PD1_Msk /*!< Port PE1 Pull-Down set */
  10309. #define PWR_PDCRE_PD2_Pos (2U)
  10310. #define PWR_PDCRE_PD2_Msk (0x1UL << PWR_PDCRE_PD2_Pos) /*!< 0x00000004 */
  10311. #define PWR_PDCRE_PD2 PWR_PDCRE_PD2_Msk /*!< Port PE2 Pull-Down set */
  10312. #define PWR_PDCRE_PD3_Pos (3U)
  10313. #define PWR_PDCRE_PD3_Msk (0x1UL << PWR_PDCRE_PD3_Pos) /*!< 0x00000008 */
  10314. #define PWR_PDCRE_PD3 PWR_PDCRE_PD3_Msk /*!< Port PE3 Pull-Down set */
  10315. #define PWR_PDCRE_PD4_Pos (4U)
  10316. #define PWR_PDCRE_PD4_Msk (0x1UL << PWR_PDCRE_PD4_Pos) /*!< 0x00000010 */
  10317. #define PWR_PDCRE_PD4 PWR_PDCRE_PD4_Msk /*!< Port PE4 Pull-Down set */
  10318. #define PWR_PDCRE_PD5_Pos (5U)
  10319. #define PWR_PDCRE_PD5_Msk (0x1UL << PWR_PDCRE_PD5_Pos) /*!< 0x00000020 */
  10320. #define PWR_PDCRE_PD5 PWR_PDCRE_PD5_Msk /*!< Port PE5 Pull-Down set */
  10321. #define PWR_PDCRE_PD6_Pos (6U)
  10322. #define PWR_PDCRE_PD6_Msk (0x1UL << PWR_PDCRE_PD6_Pos) /*!< 0x00000040 */
  10323. #define PWR_PDCRE_PD6 PWR_PDCRE_PD6_Msk /*!< Port PE6 Pull-Down set */
  10324. #define PWR_PDCRE_PD7_Pos (7U)
  10325. #define PWR_PDCRE_PD7_Msk (0x1UL << PWR_PDCRE_PD7_Pos) /*!< 0x00000080 */
  10326. #define PWR_PDCRE_PD7 PWR_PDCRE_PD7_Msk /*!< Port PE7 Pull-Down set */
  10327. #define PWR_PDCRE_PD8_Pos (8U)
  10328. #define PWR_PDCRE_PD8_Msk (0x1UL << PWR_PDCRE_PD8_Pos) /*!< 0x00000100 */
  10329. #define PWR_PDCRE_PD8 PWR_PDCRE_PD8_Msk /*!< Port PE8 Pull-Down set */
  10330. #define PWR_PDCRE_PD9_Pos (9U)
  10331. #define PWR_PDCRE_PD9_Msk (0x1UL << PWR_PDCRE_PD9_Pos) /*!< 0x00000200 */
  10332. #define PWR_PDCRE_PD9 PWR_PDCRE_PD9_Msk /*!< Port PE9 Pull-Down set */
  10333. #define PWR_PDCRE_PD10_Pos (10U)
  10334. #define PWR_PDCRE_PD10_Msk (0x1UL << PWR_PDCRE_PD10_Pos) /*!< 0x00000400 */
  10335. #define PWR_PDCRE_PD10 PWR_PDCRE_PD10_Msk /*!< Port PE10 Pull-Down set */
  10336. #define PWR_PDCRE_PD11_Pos (11U)
  10337. #define PWR_PDCRE_PD11_Msk (0x1UL << PWR_PDCRE_PD11_Pos) /*!< 0x00000800 */
  10338. #define PWR_PDCRE_PD11 PWR_PDCRE_PD11_Msk /*!< Port PE11 Pull-Down set */
  10339. #define PWR_PDCRE_PD12_Pos (12U)
  10340. #define PWR_PDCRE_PD12_Msk (0x1UL << PWR_PDCRE_PD12_Pos) /*!< 0x00001000 */
  10341. #define PWR_PDCRE_PD12 PWR_PDCRE_PD12_Msk /*!< Port PE12 Pull-Down set */
  10342. #define PWR_PDCRE_PD13_Pos (13U)
  10343. #define PWR_PDCRE_PD13_Msk (0x1UL << PWR_PDCRE_PD13_Pos) /*!< 0x00002000 */
  10344. #define PWR_PDCRE_PD13 PWR_PDCRE_PD13_Msk /*!< Port PE13 Pull-Down set */
  10345. #define PWR_PDCRE_PD14_Pos (14U)
  10346. #define PWR_PDCRE_PD14_Msk (0x1UL << PWR_PDCRE_PD14_Pos) /*!< 0x00004000 */
  10347. #define PWR_PDCRE_PD14 PWR_PDCRE_PD14_Msk /*!< Port PE14 Pull-Down set */
  10348. #define PWR_PDCRE_PD15_Pos (15U)
  10349. #define PWR_PDCRE_PD15_Msk (0x1UL << PWR_PDCRE_PD15_Pos) /*!< 0x00008000 */
  10350. #define PWR_PDCRE_PD15 PWR_PDCRE_PD15_Msk /*!< Port PE15 Pull-Down set */
  10351. /******************** Bit definition for PWR_PUCRF register ********************/
  10352. #define PWR_PUCRF_PU0_Pos (0U)
  10353. #define PWR_PUCRF_PU0_Msk (0x1UL << PWR_PUCRF_PU0_Pos) /*!< 0x00000001 */
  10354. #define PWR_PUCRF_PU0 PWR_PUCRF_PU0_Msk /*!< Port PF0 Pull-Up set */
  10355. #define PWR_PUCRF_PU1_Pos (1U)
  10356. #define PWR_PUCRF_PU1_Msk (0x1UL << PWR_PUCRF_PU1_Pos) /*!< 0x00000002 */
  10357. #define PWR_PUCRF_PU1 PWR_PUCRF_PU1_Msk /*!< Port PF1 Pull-Up set */
  10358. #define PWR_PUCRF_PU2_Pos (2U)
  10359. #define PWR_PUCRF_PU2_Msk (0x1UL << PWR_PUCRF_PU2_Pos) /*!< 0x00000004 */
  10360. #define PWR_PUCRF_PU2 PWR_PUCRF_PU2_Msk /*!< Port PF2 Pull-Up set */
  10361. #define PWR_PUCRF_PU3_Pos (3U)
  10362. #define PWR_PUCRF_PU3_Msk (0x1UL << PWR_PUCRF_PU3_Pos) /*!< 0x00000008 */
  10363. #define PWR_PUCRF_PU3 PWR_PUCRF_PU3_Msk /*!< Port PF3 Pull-Up set */
  10364. #define PWR_PUCRF_PU4_Pos (4U)
  10365. #define PWR_PUCRF_PU4_Msk (0x1UL << PWR_PUCRF_PU4_Pos) /*!< 0x00000010 */
  10366. #define PWR_PUCRF_PU4 PWR_PUCRF_PU4_Msk /*!< Port PF4 Pull-Up set */
  10367. #define PWR_PUCRF_PU5_Pos (5U)
  10368. #define PWR_PUCRF_PU5_Msk (0x1UL << PWR_PUCRF_PU5_Pos) /*!< 0x00000020 */
  10369. #define PWR_PUCRF_PU5 PWR_PUCRF_PU5_Msk /*!< Port PF5 Pull-Up set */
  10370. #define PWR_PUCRF_PU6_Pos (6U)
  10371. #define PWR_PUCRF_PU6_Msk (0x1UL << PWR_PUCRF_PU6_Pos) /*!< 0x00000040 */
  10372. #define PWR_PUCRF_PU6 PWR_PUCRF_PU6_Msk /*!< Port PF6 Pull-Up set */
  10373. #define PWR_PUCRF_PU7_Pos (7U)
  10374. #define PWR_PUCRF_PU7_Msk (0x1UL << PWR_PUCRF_PU7_Pos) /*!< 0x00000080 */
  10375. #define PWR_PUCRF_PU7 PWR_PUCRF_PU7_Msk /*!< Port PF7 Pull-Up set */
  10376. #define PWR_PUCRF_PU8_Pos (8U)
  10377. #define PWR_PUCRF_PU8_Msk (0x1UL << PWR_PUCRF_PU8_Pos) /*!< 0x00000100 */
  10378. #define PWR_PUCRF_PU8 PWR_PUCRF_PU8_Msk /*!< Port PF8 Pull-Up set */
  10379. #define PWR_PUCRF_PU9_Pos (9U)
  10380. #define PWR_PUCRF_PU9_Msk (0x1UL << PWR_PUCRF_PU9_Pos) /*!< 0x00000200 */
  10381. #define PWR_PUCRF_PU9 PWR_PUCRF_PU9_Msk /*!< Port PF9 Pull-Up set */
  10382. #define PWR_PUCRF_PU10_Pos (10U)
  10383. #define PWR_PUCRF_PU10_Msk (0x1UL << PWR_PUCRF_PU10_Pos) /*!< 0x00000400 */
  10384. #define PWR_PUCRF_PU10 PWR_PUCRF_PU10_Msk /*!< Port PF10 Pull-Up set */
  10385. #define PWR_PUCRF_PU11_Pos (11U)
  10386. #define PWR_PUCRF_PU11_Msk (0x1UL << PWR_PUCRF_PU11_Pos) /*!< 0x00000800 */
  10387. #define PWR_PUCRF_PU11 PWR_PUCRF_PU11_Msk /*!< Port PF11 Pull-Up set */
  10388. #define PWR_PUCRF_PU12_Pos (12U)
  10389. #define PWR_PUCRF_PU12_Msk (0x1UL << PWR_PUCRF_PU12_Pos) /*!< 0x00001000 */
  10390. #define PWR_PUCRF_PU12 PWR_PUCRF_PU12_Msk /*!< Port PF12 Pull-Up set */
  10391. #define PWR_PUCRF_PU13_Pos (13U)
  10392. #define PWR_PUCRF_PU13_Msk (0x1UL << PWR_PUCRF_PU13_Pos) /*!< 0x00002000 */
  10393. #define PWR_PUCRF_PU13 PWR_PUCRF_PU13_Msk /*!< Port PF13 Pull-Up set */
  10394. #define PWR_PUCRF_PU14_Pos (14U)
  10395. #define PWR_PUCRF_PU14_Msk (0x1UL << PWR_PUCRF_PU14_Pos) /*!< 0x00004000 */
  10396. #define PWR_PUCRF_PU14 PWR_PUCRF_PU14_Msk /*!< Port PF14 Pull-Up set */
  10397. #define PWR_PUCRF_PU15_Pos (15U)
  10398. #define PWR_PUCRF_PU15_Msk (0x1UL << PWR_PUCRF_PU15_Pos) /*!< 0x00008000 */
  10399. #define PWR_PUCRF_PU15 PWR_PUCRF_PU15_Msk /*!< Port PF15 Pull-Up set */
  10400. /******************** Bit definition for PWR_PDCRF register ********************/
  10401. #define PWR_PDCRF_PD0_Pos (0U)
  10402. #define PWR_PDCRF_PD0_Msk (0x1UL << PWR_PDCRF_PD0_Pos) /*!< 0x00000001 */
  10403. #define PWR_PDCRF_PD0 PWR_PDCRF_PD0_Msk /*!< Port PF0 Pull-Down set */
  10404. #define PWR_PDCRF_PD1_Pos (1U)
  10405. #define PWR_PDCRF_PD1_Msk (0x1UL << PWR_PDCRF_PD1_Pos) /*!< 0x00000002 */
  10406. #define PWR_PDCRF_PD1 PWR_PDCRF_PD1_Msk /*!< Port PF1 Pull-Down set */
  10407. #define PWR_PDCRF_PD2_Pos (2U)
  10408. #define PWR_PDCRF_PD2_Msk (0x1UL << PWR_PDCRF_PD2_Pos) /*!< 0x00000004 */
  10409. #define PWR_PDCRF_PD2 PWR_PDCRF_PD2_Msk /*!< Port PF2 Pull-Down set */
  10410. #define PWR_PDCRF_PD3_Pos (3U)
  10411. #define PWR_PDCRF_PD3_Msk (0x1UL << PWR_PDCRF_PD3_Pos) /*!< 0x00000008 */
  10412. #define PWR_PDCRF_PD3 PWR_PDCRF_PD3_Msk /*!< Port PF3 Pull-Down set */
  10413. #define PWR_PDCRF_PD4_Pos (4U)
  10414. #define PWR_PDCRF_PD4_Msk (0x1UL << PWR_PDCRF_PD4_Pos) /*!< 0x00000010 */
  10415. #define PWR_PDCRF_PD4 PWR_PDCRF_PD4_Msk /*!< Port PF4 Pull-Down set */
  10416. #define PWR_PDCRF_PD5_Pos (5U)
  10417. #define PWR_PDCRF_PD5_Msk (0x1UL << PWR_PDCRF_PD5_Pos) /*!< 0x00000020 */
  10418. #define PWR_PDCRF_PD5 PWR_PDCRF_PD5_Msk /*!< Port PF5 Pull-Down set */
  10419. #define PWR_PDCRF_PD6_Pos (6U)
  10420. #define PWR_PDCRF_PD6_Msk (0x1UL << PWR_PDCRF_PD6_Pos) /*!< 0x00000040 */
  10421. #define PWR_PDCRF_PD6 PWR_PDCRF_PD6_Msk /*!< Port PF6 Pull-Down set */
  10422. #define PWR_PDCRF_PD7_Pos (7U)
  10423. #define PWR_PDCRF_PD7_Msk (0x1UL << PWR_PDCRF_PD7_Pos) /*!< 0x00000080 */
  10424. #define PWR_PDCRF_PD7 PWR_PDCRF_PD7_Msk /*!< Port PF7 Pull-Down set */
  10425. #define PWR_PDCRF_PD8_Pos (8U)
  10426. #define PWR_PDCRF_PD8_Msk (0x1UL << PWR_PDCRF_PD8_Pos) /*!< 0x00000100 */
  10427. #define PWR_PDCRF_PD8 PWR_PDCRF_PD8_Msk /*!< Port PF8 Pull-Down set */
  10428. #define PWR_PDCRF_PD9_Pos (9U)
  10429. #define PWR_PDCRF_PD9_Msk (0x1UL << PWR_PDCRF_PD9_Pos) /*!< 0x00000200 */
  10430. #define PWR_PDCRF_PD9 PWR_PDCRF_PD9_Msk /*!< Port PF9 Pull-Down set */
  10431. #define PWR_PDCRF_PD10_Pos (10U)
  10432. #define PWR_PDCRF_PD10_Msk (0x1UL << PWR_PDCRF_PD10_Pos) /*!< 0x00000400 */
  10433. #define PWR_PDCRF_PD10 PWR_PDCRF_PD10_Msk /*!< Port PF10 Pull-Down set */
  10434. #define PWR_PDCRF_PD11_Pos (11U)
  10435. #define PWR_PDCRF_PD11_Msk (0x1UL << PWR_PDCRF_PD11_Pos) /*!< 0x00000800 */
  10436. #define PWR_PDCRF_PD11 PWR_PDCRF_PD11_Msk /*!< Port PF11 Pull-Down set */
  10437. #define PWR_PDCRF_PD12_Pos (12U)
  10438. #define PWR_PDCRF_PD12_Msk (0x1UL << PWR_PDCRF_PD12_Pos) /*!< 0x00001000 */
  10439. #define PWR_PDCRF_PD12 PWR_PDCRF_PD12_Msk /*!< Port PF12 Pull-Down set */
  10440. #define PWR_PDCRF_PD13_Pos (13U)
  10441. #define PWR_PDCRF_PD13_Msk (0x1UL << PWR_PDCRF_PD13_Pos) /*!< 0x00002000 */
  10442. #define PWR_PDCRF_PD13 PWR_PDCRF_PD13_Msk /*!< Port PF13 Pull-Down set */
  10443. #define PWR_PDCRF_PD14_Pos (14U)
  10444. #define PWR_PDCRF_PD14_Msk (0x1UL << PWR_PDCRF_PD14_Pos) /*!< 0x00004000 */
  10445. #define PWR_PDCRF_PD14 PWR_PDCRF_PD14_Msk /*!< Port PF14 Pull-Down set */
  10446. #define PWR_PDCRF_PD15_Pos (15U)
  10447. #define PWR_PDCRF_PD15_Msk (0x1UL << PWR_PDCRF_PD15_Pos) /*!< 0x00008000 */
  10448. #define PWR_PDCRF_PD15 PWR_PDCRF_PD15_Msk /*!< Port PF15 Pull-Down set */
  10449. /******************** Bit definition for PWR_PUCRG register ********************/
  10450. #define PWR_PUCRG_PU0_Pos (0U)
  10451. #define PWR_PUCRG_PU0_Msk (0x1UL << PWR_PUCRG_PU0_Pos) /*!< 0x00000001 */
  10452. #define PWR_PUCRG_PU0 PWR_PUCRG_PU0_Msk /*!< Port PG0 Pull-Up set */
  10453. #define PWR_PUCRG_PU1_Pos (1U)
  10454. #define PWR_PUCRG_PU1_Msk (0x1UL << PWR_PUCRG_PU1_Pos) /*!< 0x00000002 */
  10455. #define PWR_PUCRG_PU1 PWR_PUCRG_PU1_Msk /*!< Port PG1 Pull-Up set */
  10456. #define PWR_PUCRG_PU2_Pos (2U)
  10457. #define PWR_PUCRG_PU2_Msk (0x1UL << PWR_PUCRG_PU2_Pos) /*!< 0x00000004 */
  10458. #define PWR_PUCRG_PU2 PWR_PUCRG_PU2_Msk /*!< Port PG2 Pull-Up set */
  10459. #define PWR_PUCRG_PU3_Pos (3U)
  10460. #define PWR_PUCRG_PU3_Msk (0x1UL << PWR_PUCRG_PU3_Pos) /*!< 0x00000008 */
  10461. #define PWR_PUCRG_PU3 PWR_PUCRG_PU3_Msk /*!< Port PG3 Pull-Up set */
  10462. #define PWR_PUCRG_PU4_Pos (4U)
  10463. #define PWR_PUCRG_PU4_Msk (0x1UL << PWR_PUCRG_PU4_Pos) /*!< 0x00000010 */
  10464. #define PWR_PUCRG_PU4 PWR_PUCRG_PU4_Msk /*!< Port PG4 Pull-Up set */
  10465. #define PWR_PUCRG_PU5_Pos (5U)
  10466. #define PWR_PUCRG_PU5_Msk (0x1UL << PWR_PUCRG_PU5_Pos) /*!< 0x00000020 */
  10467. #define PWR_PUCRG_PU5 PWR_PUCRG_PU5_Msk /*!< Port PG5 Pull-Up set */
  10468. #define PWR_PUCRG_PU6_Pos (6U)
  10469. #define PWR_PUCRG_PU6_Msk (0x1UL << PWR_PUCRG_PU6_Pos) /*!< 0x00000040 */
  10470. #define PWR_PUCRG_PU6 PWR_PUCRG_PU6_Msk /*!< Port PG6 Pull-Up set */
  10471. #define PWR_PUCRG_PU7_Pos (7U)
  10472. #define PWR_PUCRG_PU7_Msk (0x1UL << PWR_PUCRG_PU7_Pos) /*!< 0x00000080 */
  10473. #define PWR_PUCRG_PU7 PWR_PUCRG_PU7_Msk /*!< Port PG7 Pull-Up set */
  10474. #define PWR_PUCRG_PU8_Pos (8U)
  10475. #define PWR_PUCRG_PU8_Msk (0x1UL << PWR_PUCRG_PU8_Pos) /*!< 0x00000100 */
  10476. #define PWR_PUCRG_PU8 PWR_PUCRG_PU8_Msk /*!< Port PG8 Pull-Up set */
  10477. #define PWR_PUCRG_PU9_Pos (9U)
  10478. #define PWR_PUCRG_PU9_Msk (0x1UL << PWR_PUCRG_PU9_Pos) /*!< 0x00000200 */
  10479. #define PWR_PUCRG_PU9 PWR_PUCRG_PU9_Msk /*!< Port PG9 Pull-Up set */
  10480. #define PWR_PUCRG_PU10_Pos (10U)
  10481. #define PWR_PUCRG_PU10_Msk (0x1UL << PWR_PUCRG_PU10_Pos) /*!< 0x00000400 */
  10482. #define PWR_PUCRG_PU10 PWR_PUCRG_PU10_Msk /*!< Port PG10 Pull-Up set */
  10483. #define PWR_PUCRG_PU11_Pos (11U)
  10484. #define PWR_PUCRG_PU11_Msk (0x1UL << PWR_PUCRG_PU11_Pos) /*!< 0x00000800 */
  10485. #define PWR_PUCRG_PU11 PWR_PUCRG_PU11_Msk /*!< Port PG11 Pull-Up set */
  10486. #define PWR_PUCRG_PU12_Pos (12U)
  10487. #define PWR_PUCRG_PU12_Msk (0x1UL << PWR_PUCRG_PU12_Pos) /*!< 0x00001000 */
  10488. #define PWR_PUCRG_PU12 PWR_PUCRG_PU12_Msk /*!< Port PG12 Pull-Up set */
  10489. #define PWR_PUCRG_PU13_Pos (13U)
  10490. #define PWR_PUCRG_PU13_Msk (0x1UL << PWR_PUCRG_PU13_Pos) /*!< 0x00002000 */
  10491. #define PWR_PUCRG_PU13 PWR_PUCRG_PU13_Msk /*!< Port PG13 Pull-Up set */
  10492. #define PWR_PUCRG_PU14_Pos (14U)
  10493. #define PWR_PUCRG_PU14_Msk (0x1UL << PWR_PUCRG_PU14_Pos) /*!< 0x00004000 */
  10494. #define PWR_PUCRG_PU14 PWR_PUCRG_PU14_Msk /*!< Port PG14 Pull-Up set */
  10495. #define PWR_PUCRG_PU15_Pos (15U)
  10496. #define PWR_PUCRG_PU15_Msk (0x1UL << PWR_PUCRG_PU15_Pos) /*!< 0x00008000 */
  10497. #define PWR_PUCRG_PU15 PWR_PUCRG_PU15_Msk /*!< Port PG15 Pull-Up set */
  10498. /******************** Bit definition for PWR_PDCRG register ********************/
  10499. #define PWR_PDCRG_PD0_Pos (0U)
  10500. #define PWR_PDCRG_PD0_Msk (0x1UL << PWR_PDCRG_PD0_Pos) /*!< 0x00000001 */
  10501. #define PWR_PDCRG_PD0 PWR_PDCRG_PD0_Msk /*!< Port PG0 Pull-Down set */
  10502. #define PWR_PDCRG_PD1_Pos (1U)
  10503. #define PWR_PDCRG_PD1_Msk (0x1UL << PWR_PDCRG_PD1_Pos) /*!< 0x00000002 */
  10504. #define PWR_PDCRG_PD1 PWR_PDCRG_PD1_Msk /*!< Port PG1 Pull-Down set */
  10505. #define PWR_PDCRG_PD2_Pos (2U)
  10506. #define PWR_PDCRG_PD2_Msk (0x1UL << PWR_PDCRG_PD2_Pos) /*!< 0x00000004 */
  10507. #define PWR_PDCRG_PD2 PWR_PDCRG_PD2_Msk /*!< Port PG2 Pull-Down set */
  10508. #define PWR_PDCRG_PD3_Pos (3U)
  10509. #define PWR_PDCRG_PD3_Msk (0x1UL << PWR_PDCRG_PD3_Pos) /*!< 0x00000008 */
  10510. #define PWR_PDCRG_PD3 PWR_PDCRG_PD3_Msk /*!< Port PG3 Pull-Down set */
  10511. #define PWR_PDCRG_PD4_Pos (4U)
  10512. #define PWR_PDCRG_PD4_Msk (0x1UL << PWR_PDCRG_PD4_Pos) /*!< 0x00000010 */
  10513. #define PWR_PDCRG_PD4 PWR_PDCRG_PD4_Msk /*!< Port PG4 Pull-Down set */
  10514. #define PWR_PDCRG_PD5_Pos (5U)
  10515. #define PWR_PDCRG_PD5_Msk (0x1UL << PWR_PDCRG_PD5_Pos) /*!< 0x00000020 */
  10516. #define PWR_PDCRG_PD5 PWR_PDCRG_PD5_Msk /*!< Port PG5 Pull-Down set */
  10517. #define PWR_PDCRG_PD6_Pos (6U)
  10518. #define PWR_PDCRG_PD6_Msk (0x1UL << PWR_PDCRG_PD6_Pos) /*!< 0x00000040 */
  10519. #define PWR_PDCRG_PD6 PWR_PDCRG_PD6_Msk /*!< Port PG6 Pull-Down set */
  10520. #define PWR_PDCRG_PD7_Pos (7U)
  10521. #define PWR_PDCRG_PD7_Msk (0x1UL << PWR_PDCRG_PD7_Pos) /*!< 0x00000080 */
  10522. #define PWR_PDCRG_PD7 PWR_PDCRG_PD7_Msk /*!< Port PG7 Pull-Down set */
  10523. #define PWR_PDCRG_PD8_Pos (8U)
  10524. #define PWR_PDCRG_PD8_Msk (0x1UL << PWR_PDCRG_PD8_Pos) /*!< 0x00000100 */
  10525. #define PWR_PDCRG_PD8 PWR_PDCRG_PD8_Msk /*!< Port PG8 Pull-Down set */
  10526. #define PWR_PDCRG_PD9_Pos (9U)
  10527. #define PWR_PDCRG_PD9_Msk (0x1UL << PWR_PDCRG_PD9_Pos) /*!< 0x00000200 */
  10528. #define PWR_PDCRG_PD9 PWR_PDCRG_PD9_Msk /*!< Port PG9 Pull-Down set */
  10529. #define PWR_PDCRG_PD10_Pos (10U)
  10530. #define PWR_PDCRG_PD10_Msk (0x1UL << PWR_PDCRG_PD10_Pos) /*!< 0x00000400 */
  10531. #define PWR_PDCRG_PD10 PWR_PDCRG_PD10_Msk /*!< Port PG10 Pull-Down set */
  10532. #define PWR_PDCRG_PD11_Pos (11U)
  10533. #define PWR_PDCRG_PD11_Msk (0x1UL << PWR_PDCRG_PD11_Pos) /*!< 0x00000800 */
  10534. #define PWR_PDCRG_PD11 PWR_PDCRG_PD11_Msk /*!< Port PG11 Pull-Down set */
  10535. #define PWR_PDCRG_PD12_Pos (12U)
  10536. #define PWR_PDCRG_PD12_Msk (0x1UL << PWR_PDCRG_PD12_Pos) /*!< 0x00001000 */
  10537. #define PWR_PDCRG_PD12 PWR_PDCRG_PD12_Msk /*!< Port PG12 Pull-Down set */
  10538. #define PWR_PDCRG_PD13_Pos (13U)
  10539. #define PWR_PDCRG_PD13_Msk (0x1UL << PWR_PDCRG_PD13_Pos) /*!< 0x00002000 */
  10540. #define PWR_PDCRG_PD13 PWR_PDCRG_PD13_Msk /*!< Port PG13 Pull-Down set */
  10541. #define PWR_PDCRG_PD14_Pos (14U)
  10542. #define PWR_PDCRG_PD14_Msk (0x1UL << PWR_PDCRG_PD14_Pos) /*!< 0x00004000 */
  10543. #define PWR_PDCRG_PD14 PWR_PDCRG_PD14_Msk /*!< Port PG14 Pull-Down set */
  10544. #define PWR_PDCRG_PD15_Pos (15U)
  10545. #define PWR_PDCRG_PD15_Msk (0x1UL << PWR_PDCRG_PD15_Pos) /*!< 0x00008000 */
  10546. #define PWR_PDCRG_PD15 PWR_PDCRG_PD15_Msk /*!< Port PG15 Pull-Down set */
  10547. /******************** Bit definition for PWR_PUCRH register ********************/
  10548. #define PWR_PUCRH_PU0_Pos (0U)
  10549. #define PWR_PUCRH_PU0_Msk (0x1UL << PWR_PUCRH_PU0_Pos) /*!< 0x00000001 */
  10550. #define PWR_PUCRH_PU0 PWR_PUCRH_PU0_Msk /*!< Port PH0 Pull-Up set */
  10551. #define PWR_PUCRH_PU1_Pos (1U)
  10552. #define PWR_PUCRH_PU1_Msk (0x1UL << PWR_PUCRH_PU1_Pos) /*!< 0x00000002 */
  10553. #define PWR_PUCRH_PU1 PWR_PUCRH_PU1_Msk /*!< Port PH1 Pull-Up set */
  10554. #define PWR_PUCRH_PU2_Pos (2U)
  10555. #define PWR_PUCRH_PU2_Msk (0x1UL << PWR_PUCRH_PU2_Pos) /*!< 0x00000004 */
  10556. #define PWR_PUCRH_PU2 PWR_PUCRH_PU2_Msk /*!< Port PH2 Pull-Up set */
  10557. #define PWR_PUCRH_PU3_Pos (3U)
  10558. #define PWR_PUCRH_PU3_Msk (0x1UL << PWR_PUCRH_PU3_Pos) /*!< 0x00000008 */
  10559. #define PWR_PUCRH_PU3 PWR_PUCRH_PU3_Msk /*!< Port PH3 Pull-Up set */
  10560. /******************** Bit definition for PWR_PDCRH register ********************/
  10561. #define PWR_PDCRH_PD0_Pos (0U)
  10562. #define PWR_PDCRH_PD0_Msk (0x1UL << PWR_PDCRH_PD0_Pos) /*!< 0x00000001 */
  10563. #define PWR_PDCRH_PD0 PWR_PDCRH_PD0_Msk /*!< Port PH0 Pull-Down set */
  10564. #define PWR_PDCRH_PD1_Pos (1U)
  10565. #define PWR_PDCRH_PD1_Msk (0x1UL << PWR_PDCRH_PD1_Pos) /*!< 0x00000002 */
  10566. #define PWR_PDCRH_PD1 PWR_PDCRH_PD1_Msk /*!< Port PH1 Pull-Down set */
  10567. #define PWR_PDCRH_PD2_Pos (2U)
  10568. #define PWR_PDCRH_PD2_Msk (0x1UL << PWR_PDCRH_PD2_Pos) /*!< 0x00000004 */
  10569. #define PWR_PDCRH_PD2 PWR_PDCRH_PD2_Msk /*!< Port PH2 Pull-Down set */
  10570. #define PWR_PDCRH_PD3_Pos (3U)
  10571. #define PWR_PDCRH_PD3_Msk (0x1UL << PWR_PDCRH_PD3_Pos) /*!< 0x00000008 */
  10572. #define PWR_PDCRH_PD3 PWR_PDCRH_PD3_Msk /*!< Port PH3 Pull-Down set */
  10573. /******************** Bit definition for PWR_SECCFGR register ******************/
  10574. #define PWR_SECCFGR_WUPSEC_Pos (0U)
  10575. #define PWR_SECCFGR_WUPSEC_Msk (0x1FUL << PWR_SECCFGR_WUPSEC_Pos) /*!< 0x0000001F */
  10576. #define PWR_SECCFGR_WUPSEC PWR_SECCFGR_WUPSEC_Msk /*!< Secure Mode Wake-Up Pins */
  10577. #define PWR_SECCFGR_WUP1SEC_Pos (0U)
  10578. #define PWR_SECCFGR_WUP1SEC_Msk (0x1UL << PWR_SECCFGR_WUP1SEC_Pos) /*!< 0x00000001 */
  10579. #define PWR_SECCFGR_WUP1SEC PWR_SECCFGR_WUP1SEC_Msk /*!< Secure Mode Wake-Up Pin 1 */
  10580. #define PWR_SECCFGR_WUP2SEC_Pos (1U)
  10581. #define PWR_SECCFGR_WUP2SEC_Msk (0x1UL << PWR_SECCFGR_WUP2SEC_Pos) /*!< 0x00000002 */
  10582. #define PWR_SECCFGR_WUP2SEC PWR_SECCFGR_WUP2SEC_Msk /*!< Secure Mode Wake-Up Pin 2 */
  10583. #define PWR_SECCFGR_WUP3SEC_Pos (2U)
  10584. #define PWR_SECCFGR_WUP3SEC_Msk (0x1UL << PWR_SECCFGR_WUP3SEC_Pos) /*!< 0x00000004 */
  10585. #define PWR_SECCFGR_WUP3SEC PWR_SECCFGR_WUP3SEC_Msk /*!< Secure Mode Wake-Up Pin 3 */
  10586. #define PWR_SECCFGR_WUP4SEC_Pos (3U)
  10587. #define PWR_SECCFGR_WUP4SEC_Msk (0x1UL << PWR_SECCFGR_WUP4SEC_Pos) /*!< 0x00000008 */
  10588. #define PWR_SECCFGR_WUP4SEC PWR_SECCFGR_WUP4SEC_Msk /*!< Secure Mode Wake-Up Pin 4 */
  10589. #define PWR_SECCFGR_WUP5SEC_Pos (4U)
  10590. #define PWR_SECCFGR_WUP5SEC_Msk (0x1UL << PWR_SECCFGR_WUP5SEC_Pos) /*!< 0x00000010 */
  10591. #define PWR_SECCFGR_WUP5SEC PWR_SECCFGR_WUP5SEC_Msk /*!< Secure Mode Wake-Up Pin 5 */
  10592. #define PWR_SECCFGR_LPMSEC_Pos (8U)
  10593. #define PWR_SECCFGR_LPMSEC_Msk (0x1UL << PWR_SECCFGR_LPMSEC_Pos) /*!< 0x00000100 */
  10594. #define PWR_SECCFGR_LPMSEC PWR_SECCFGR_LPMSEC_Msk /*!< Secure Mode Low Power Modes */
  10595. #define PWR_SECCFGR_VDMSEC_Pos (9U)
  10596. #define PWR_SECCFGR_VDMSEC_Msk (0x1UL << PWR_SECCFGR_VDMSEC_Pos) /*!< 0x00000200 */
  10597. #define PWR_SECCFGR_VDMSEC PWR_SECCFGR_VDMSEC_Msk /*!< Secure Mode Voltage Detection and Monitoring */
  10598. #define PWR_SECCFGR_VBSEC_Pos (10U)
  10599. #define PWR_SECCFGR_VBSEC_Msk (0x1UL << PWR_SECCFGR_VBSEC_Pos) /*!< 0x00000400 */
  10600. #define PWR_SECCFGR_VBSEC PWR_SECCFGR_VBSEC_Msk /*!< Secure Mode VBAT */
  10601. #define PWR_SECCFGR_APCSEC_Pos (11U)
  10602. #define PWR_SECCFGR_APCSEC_Msk (0x1UL << PWR_SECCFGR_APCSEC_Pos) /*!< 0x00000800 */
  10603. #define PWR_SECCFGR_APCSEC PWR_SECCFGR_APCSEC_Msk /*!< Secure Mode Pull-Up/Down Control */
  10604. /******************** Bit definition for PWR_PRIVCFGR register *****************/
  10605. #define PWR_PRIVCFGR_PRIV_Pos (0U)
  10606. #define PWR_PRIVCFGR_PRIV_Msk (0x1UL << PWR_PRIVCFGR_PRIV_Pos) /*!< 0x00000001 */
  10607. #define PWR_PRIVCFGR_PRIV PWR_PRIVCFGR_PRIV_Msk /*!< Privileged access protection */
  10608. /******************************************************************************/
  10609. /* */
  10610. /* Reset and Clock Control */
  10611. /* */
  10612. /******************************************************************************/
  10613. /******************** Bit definition for RCC_CR register ********************/
  10614. #define RCC_CR_MSION_Pos (0U)
  10615. #define RCC_CR_MSION_Msk (0x1UL << RCC_CR_MSION_Pos) /*!< 0x00000001 */
  10616. #define RCC_CR_MSION RCC_CR_MSION_Msk /*!< Internal Multi Speed oscillator (MSI) clock enable */
  10617. #define RCC_CR_MSIRDY_Pos (1U)
  10618. #define RCC_CR_MSIRDY_Msk (0x1UL << RCC_CR_MSIRDY_Pos) /*!< 0x00000002 */
  10619. #define RCC_CR_MSIRDY RCC_CR_MSIRDY_Msk /*!< Internal Multi Speed oscillator (MSI) clock ready flag */
  10620. #define RCC_CR_MSIPLLEN_Pos (2U)
  10621. #define RCC_CR_MSIPLLEN_Msk (0x1UL << RCC_CR_MSIPLLEN_Pos) /*!< 0x00000004 */
  10622. #define RCC_CR_MSIPLLEN RCC_CR_MSIPLLEN_Msk /*!< Internal Multi Speed oscillator (MSI) PLL enable */
  10623. #define RCC_CR_MSIRGSEL_Pos (3U)
  10624. #define RCC_CR_MSIRGSEL_Msk (0x1UL << RCC_CR_MSIRGSEL_Pos) /*!< 0x00000008 */
  10625. #define RCC_CR_MSIRGSEL RCC_CR_MSIRGSEL_Msk /*!< Internal Multi Speed oscillator (MSI) range selection */
  10626. /*!< MSIRANGE configuration : 12 frequency ranges available */
  10627. #define RCC_CR_MSIRANGE_Pos (4U)
  10628. #define RCC_CR_MSIRANGE_Msk (0xFUL << RCC_CR_MSIRANGE_Pos) /*!< 0x000000F0 */
  10629. #define RCC_CR_MSIRANGE RCC_CR_MSIRANGE_Msk /*!< Internal Multi Speed oscillator (MSI) clock Range */
  10630. #define RCC_CR_MSIRANGE_0 (0x0UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000000 */
  10631. #define RCC_CR_MSIRANGE_1 (0x1UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000010 */
  10632. #define RCC_CR_MSIRANGE_2 (0x2UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000020 */
  10633. #define RCC_CR_MSIRANGE_3 (0x3UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000030 */
  10634. #define RCC_CR_MSIRANGE_4 (0x4UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000040 */
  10635. #define RCC_CR_MSIRANGE_5 (0x5UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000050 */
  10636. #define RCC_CR_MSIRANGE_6 (0x6UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000060 */
  10637. #define RCC_CR_MSIRANGE_7 (0x7UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000070 */
  10638. #define RCC_CR_MSIRANGE_8 (0x8UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000080 */
  10639. #define RCC_CR_MSIRANGE_9 (0x9UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000090 */
  10640. #define RCC_CR_MSIRANGE_10 (0xAUL << RCC_CR_MSIRANGE_Pos) /*!< 0x000000A0 */
  10641. #define RCC_CR_MSIRANGE_11 (0xBUL << RCC_CR_MSIRANGE_Pos) /*!< 0x000000B0 */
  10642. #define RCC_CR_HSION_Pos (8U)
  10643. #define RCC_CR_HSION_Msk (0x1UL << RCC_CR_HSION_Pos) /*!< 0x00000100 */
  10644. #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed oscillator (HSI16) clock enable */
  10645. #define RCC_CR_HSIKERON_Pos (9U)
  10646. #define RCC_CR_HSIKERON_Msk (0x1UL << RCC_CR_HSIKERON_Pos) /*!< 0x00000200 */
  10647. #define RCC_CR_HSIKERON RCC_CR_HSIKERON_Msk /*!< Internal High Speed oscillator (HSI16) clock enable for some IPs Kernel */
  10648. #define RCC_CR_HSIRDY_Pos (10U)
  10649. #define RCC_CR_HSIRDY_Msk (0x1UL << RCC_CR_HSIRDY_Pos) /*!< 0x00000400 */
  10650. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed oscillator (HSI16) clock ready flag */
  10651. #define RCC_CR_HSIASFS_Pos (11U)
  10652. #define RCC_CR_HSIASFS_Msk (0x1UL << RCC_CR_HSIASFS_Pos) /*!< 0x00000800 */
  10653. #define RCC_CR_HSIASFS RCC_CR_HSIASFS_Msk /*!< HSI16 Automatic Start from Stop */
  10654. #define RCC_CR_HSEON_Pos (16U)
  10655. #define RCC_CR_HSEON_Msk (0x1UL << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  10656. #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed oscillator (HSE) clock enable */
  10657. #define RCC_CR_HSERDY_Pos (17U)
  10658. #define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  10659. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed oscillator (HSE) clock ready */
  10660. #define RCC_CR_HSEBYP_Pos (18U)
  10661. #define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  10662. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed oscillator (HSE) clock bypass */
  10663. #define RCC_CR_CSSON_Pos (19U)
  10664. #define RCC_CR_CSSON_Msk (0x1UL << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
  10665. #define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< HSE Clock Security System enable */
  10666. #define RCC_CR_PLLON_Pos (24U)
  10667. #define RCC_CR_PLLON_Msk (0x1UL << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  10668. #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< System PLL clock enable */
  10669. #define RCC_CR_PLLRDY_Pos (25U)
  10670. #define RCC_CR_PLLRDY_Msk (0x1UL << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  10671. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< System PLL clock ready */
  10672. #define RCC_CR_PLLSAI1ON_Pos (26U)
  10673. #define RCC_CR_PLLSAI1ON_Msk (0x1UL << RCC_CR_PLLSAI1ON_Pos) /*!< 0x04000000 */
  10674. #define RCC_CR_PLLSAI1ON RCC_CR_PLLSAI1ON_Msk /*!< SAI1 PLL enable */
  10675. #define RCC_CR_PLLSAI1RDY_Pos (27U)
  10676. #define RCC_CR_PLLSAI1RDY_Msk (0x1UL << RCC_CR_PLLSAI1RDY_Pos) /*!< 0x08000000 */
  10677. #define RCC_CR_PLLSAI1RDY RCC_CR_PLLSAI1RDY_Msk /*!< SAI1 PLL ready */
  10678. #define RCC_CR_PLLSAI2ON_Pos (28U)
  10679. #define RCC_CR_PLLSAI2ON_Msk (0x1UL << RCC_CR_PLLSAI2ON_Pos) /*!< 0x10000000 */
  10680. #define RCC_CR_PLLSAI2ON RCC_CR_PLLSAI2ON_Msk /*!< SAI2 PLL enable */
  10681. #define RCC_CR_PLLSAI2RDY_Pos (29U)
  10682. #define RCC_CR_PLLSAI2RDY_Msk (0x1UL << RCC_CR_PLLSAI2RDY_Pos) /*!< 0x20000000 */
  10683. #define RCC_CR_PLLSAI2RDY RCC_CR_PLLSAI2RDY_Msk /*!< SAI2 PLL ready */
  10684. #define RCC_CR_PRIV_Pos (31U)
  10685. #define RCC_CR_PRIV_Msk (0x1UL << RCC_CR_PRIV_Pos) /*!< 0x80000000 */
  10686. #define RCC_CR_PRIV RCC_CR_PRIV_Msk /*!< RCC Privilege enable */
  10687. /******************** Bit definition for RCC_ICSCR register ***************/
  10688. /*!< MSICAL configuration */
  10689. #define RCC_ICSCR_MSICAL_Pos (0U)
  10690. #define RCC_ICSCR_MSICAL_Msk (0xFFUL << RCC_ICSCR_MSICAL_Pos) /*!< 0x000000FF */
  10691. #define RCC_ICSCR_MSICAL RCC_ICSCR_MSICAL_Msk /*!< MSICAL[7:0] bits */
  10692. #define RCC_ICSCR_MSICAL_0 (0x01UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000001 */
  10693. #define RCC_ICSCR_MSICAL_1 (0x02UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000002 */
  10694. #define RCC_ICSCR_MSICAL_2 (0x04UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000004 */
  10695. #define RCC_ICSCR_MSICAL_3 (0x08UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000008 */
  10696. #define RCC_ICSCR_MSICAL_4 (0x10UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000010 */
  10697. #define RCC_ICSCR_MSICAL_5 (0x20UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000020 */
  10698. #define RCC_ICSCR_MSICAL_6 (0x40UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000040 */
  10699. #define RCC_ICSCR_MSICAL_7 (0x80UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000080 */
  10700. /*!< MSITRIM configuration */
  10701. #define RCC_ICSCR_MSITRIM_Pos (8U)
  10702. #define RCC_ICSCR_MSITRIM_Msk (0xFFUL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x0000FF00 */
  10703. #define RCC_ICSCR_MSITRIM RCC_ICSCR_MSITRIM_Msk /*!< MSITRIM[7:0] bits */
  10704. #define RCC_ICSCR_MSITRIM_0 (0x01UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000100 */
  10705. #define RCC_ICSCR_MSITRIM_1 (0x02UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000200 */
  10706. #define RCC_ICSCR_MSITRIM_2 (0x04UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000400 */
  10707. #define RCC_ICSCR_MSITRIM_3 (0x08UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000800 */
  10708. #define RCC_ICSCR_MSITRIM_4 (0x10UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00001000 */
  10709. #define RCC_ICSCR_MSITRIM_5 (0x20UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00002000 */
  10710. #define RCC_ICSCR_MSITRIM_6 (0x40UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00004000 */
  10711. #define RCC_ICSCR_MSITRIM_7 (0x80UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00008000 */
  10712. /*!< HSICAL configuration */
  10713. #define RCC_ICSCR_HSICAL_Pos (16U)
  10714. #define RCC_ICSCR_HSICAL_Msk (0xFFUL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00FF0000 */
  10715. #define RCC_ICSCR_HSICAL RCC_ICSCR_HSICAL_Msk /*!< HSICAL[7:0] bits */
  10716. #define RCC_ICSCR_HSICAL_0 (0x01UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00010000 */
  10717. #define RCC_ICSCR_HSICAL_1 (0x02UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00020000 */
  10718. #define RCC_ICSCR_HSICAL_2 (0x04UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00040000 */
  10719. #define RCC_ICSCR_HSICAL_3 (0x08UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00080000 */
  10720. #define RCC_ICSCR_HSICAL_4 (0x10UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00100000 */
  10721. #define RCC_ICSCR_HSICAL_5 (0x20UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00200000 */
  10722. #define RCC_ICSCR_HSICAL_6 (0x40UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00400000 */
  10723. #define RCC_ICSCR_HSICAL_7 (0x80UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00800000 */
  10724. /*!< HSITRIM configuration */
  10725. #define RCC_ICSCR_HSITRIM_Pos (24U)
  10726. #define RCC_ICSCR_HSITRIM_Msk (0x7FUL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x7F000000 */
  10727. #define RCC_ICSCR_HSITRIM RCC_ICSCR_HSITRIM_Msk /*!< HSITRIM[6:0] bits */
  10728. #define RCC_ICSCR_HSITRIM_0 (0x01UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x01000000 */
  10729. #define RCC_ICSCR_HSITRIM_1 (0x02UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x02000000 */
  10730. #define RCC_ICSCR_HSITRIM_2 (0x04UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x04000000 */
  10731. #define RCC_ICSCR_HSITRIM_3 (0x08UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x08000000 */
  10732. #define RCC_ICSCR_HSITRIM_4 (0x10UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x10000000 */
  10733. #define RCC_ICSCR_HSITRIM_5 (0x20UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x20000000 */
  10734. #define RCC_ICSCR_HSITRIM_6 (0x40UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x40000000 */
  10735. /******************** Bit definition for RCC_CFGR register ******************/
  10736. /*!< SW configuration */
  10737. #define RCC_CFGR_SW_Pos (0U)
  10738. #define RCC_CFGR_SW_Msk (0x3UL << RCC_CFGR_SW_Pos) /*!< 0x00000003 */
  10739. #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */
  10740. #define RCC_CFGR_SW_0 (0x1UL << RCC_CFGR_SW_Pos) /*!< 0x00000001 */
  10741. #define RCC_CFGR_SW_1 (0x2UL << RCC_CFGR_SW_Pos) /*!< 0x00000002 */
  10742. #define RCC_CFGR_SW_MSI (0x00000000UL) /*!< MSI oscillator selection as system clock */
  10743. #define RCC_CFGR_SW_HSI (0x00000001UL) /*!< HSI16 oscillator selection as system clock */
  10744. #define RCC_CFGR_SW_HSE (0x00000002UL) /*!< HSE oscillator selection as system clock */
  10745. #define RCC_CFGR_SW_PLL (0x00000003UL) /*!< PLL selection as system clock */
  10746. /*!< SWS configuration */
  10747. #define RCC_CFGR_SWS_Pos (2U)
  10748. #define RCC_CFGR_SWS_Msk (0x3UL << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */
  10749. #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */
  10750. #define RCC_CFGR_SWS_0 (0x1UL << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */
  10751. #define RCC_CFGR_SWS_1 (0x2UL << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */
  10752. #define RCC_CFGR_SWS_MSI (0x00000000UL) /*!< MSI oscillator used as system clock */
  10753. #define RCC_CFGR_SWS_HSI (0x00000004UL) /*!< HSI16 oscillator used as system clock */
  10754. #define RCC_CFGR_SWS_HSE (0x00000008UL) /*!< HSE oscillator used as system clock */
  10755. #define RCC_CFGR_SWS_PLL (0x0000000CUL) /*!< PLL used as system clock */
  10756. /*!< HPRE configuration */
  10757. #define RCC_CFGR_HPRE_Pos (4U)
  10758. #define RCC_CFGR_HPRE_Msk (0xFUL << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */
  10759. #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */
  10760. #define RCC_CFGR_HPRE_0 (0x1UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */
  10761. #define RCC_CFGR_HPRE_1 (0x2UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */
  10762. #define RCC_CFGR_HPRE_2 (0x4UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */
  10763. #define RCC_CFGR_HPRE_3 (0x8UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */
  10764. #define RCC_CFGR_HPRE_DIV1 (0x00000000UL) /*!< SYSCLK not divided */
  10765. #define RCC_CFGR_HPRE_DIV2 (0x00000080UL) /*!< SYSCLK divided by 2 */
  10766. #define RCC_CFGR_HPRE_DIV4 (0x00000090UL) /*!< SYSCLK divided by 4 */
  10767. #define RCC_CFGR_HPRE_DIV8 (0x000000A0UL) /*!< SYSCLK divided by 8 */
  10768. #define RCC_CFGR_HPRE_DIV16 (0x000000B0UL) /*!< SYSCLK divided by 16 */
  10769. #define RCC_CFGR_HPRE_DIV64 (0x000000C0UL) /*!< SYSCLK divided by 64 */
  10770. #define RCC_CFGR_HPRE_DIV128 (0x000000D0UL) /*!< SYSCLK divided by 128 */
  10771. #define RCC_CFGR_HPRE_DIV256 (0x000000E0UL) /*!< SYSCLK divided by 256 */
  10772. #define RCC_CFGR_HPRE_DIV512 (0x000000F0UL) /*!< SYSCLK divided by 512 */
  10773. /*!< PPRE1 configuration */
  10774. #define RCC_CFGR_PPRE1_Pos (8U)
  10775. #define RCC_CFGR_PPRE1_Msk (0x7UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000700 */
  10776. #define RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_Msk /*!< PRE1[2:0] bits (APB2 prescaler) */
  10777. #define RCC_CFGR_PPRE1_0 (0x1UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000100 */
  10778. #define RCC_CFGR_PPRE1_1 (0x2UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000200 */
  10779. #define RCC_CFGR_PPRE1_2 (0x4UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000400 */
  10780. #define RCC_CFGR_PPRE1_DIV1 (0x00000000UL) /*!< HCLK not divided */
  10781. #define RCC_CFGR_PPRE1_DIV2 (0x00000400UL) /*!< HCLK divided by 2 */
  10782. #define RCC_CFGR_PPRE1_DIV4 (0x00000500UL) /*!< HCLK divided by 4 */
  10783. #define RCC_CFGR_PPRE1_DIV8 (0x00000600UL) /*!< HCLK divided by 8 */
  10784. #define RCC_CFGR_PPRE1_DIV16 (0x00000700UL) /*!< HCLK divided by 16 */
  10785. /*!< PPRE2 configuration */
  10786. #define RCC_CFGR_PPRE2_Pos (11U)
  10787. #define RCC_CFGR_PPRE2_Msk (0x7UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00003800 */
  10788. #define RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_Msk /*!< PRE2[2:0] bits (APB2 prescaler) */
  10789. #define RCC_CFGR_PPRE2_0 (0x1UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00000800 */
  10790. #define RCC_CFGR_PPRE2_1 (0x2UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00001000 */
  10791. #define RCC_CFGR_PPRE2_2 (0x4UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00002000 */
  10792. #define RCC_CFGR_PPRE2_DIV1 (0x00000000UL) /*!< HCLK not divided */
  10793. #define RCC_CFGR_PPRE2_DIV2 (0x00002000UL) /*!< HCLK divided by 2 */
  10794. #define RCC_CFGR_PPRE2_DIV4 (0x00002800UL) /*!< HCLK divided by 4 */
  10795. #define RCC_CFGR_PPRE2_DIV8 (0x00003000UL) /*!< HCLK divided by 8 */
  10796. #define RCC_CFGR_PPRE2_DIV16 (0x00003800UL) /*!< HCLK divided by 16 */
  10797. #define RCC_CFGR_STOPWUCK_Pos (15U)
  10798. #define RCC_CFGR_STOPWUCK_Msk (0x1UL << RCC_CFGR_STOPWUCK_Pos) /*!< 0x00008000 */
  10799. #define RCC_CFGR_STOPWUCK RCC_CFGR_STOPWUCK_Msk /*!< Wake Up from stop and CSS backup clock selection */
  10800. /*!< MCOSEL configuration */
  10801. #define RCC_CFGR_MCOSEL_Pos (24U)
  10802. #define RCC_CFGR_MCOSEL_Msk (0xFUL << RCC_CFGR_MCOSEL_Pos) /*!< 0x0F000000 */
  10803. #define RCC_CFGR_MCOSEL RCC_CFGR_MCOSEL_Msk /*!< MCOSEL [3:0] bits (Clock output selection) */
  10804. #define RCC_CFGR_MCOSEL_0 (0x1UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x01000000 */
  10805. #define RCC_CFGR_MCOSEL_1 (0x2UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x02000000 */
  10806. #define RCC_CFGR_MCOSEL_2 (0x4UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x04000000 */
  10807. #define RCC_CFGR_MCOSEL_3 (0x8UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x08000000 */
  10808. #define RCC_CFGR_MCOPRE_Pos (28U)
  10809. #define RCC_CFGR_MCOPRE_Msk (0x7UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x70000000 */
  10810. #define RCC_CFGR_MCOPRE RCC_CFGR_MCOPRE_Msk /*!< MCO prescaler */
  10811. #define RCC_CFGR_MCOPRE_0 (0x1UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x10000000 */
  10812. #define RCC_CFGR_MCOPRE_1 (0x2UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x20000000 */
  10813. #define RCC_CFGR_MCOPRE_2 (0x4UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x40000000 */
  10814. #define RCC_CFGR_MCOPRE_DIV1 (0x00000000UL) /*!< MCO is divided by 1 */
  10815. #define RCC_CFGR_MCOPRE_DIV2 (0x10000000UL) /*!< MCO is divided by 2 */
  10816. #define RCC_CFGR_MCOPRE_DIV4 (0x20000000UL) /*!< MCO is divided by 4 */
  10817. #define RCC_CFGR_MCOPRE_DIV8 (0x30000000UL) /*!< MCO is divided by 8 */
  10818. #define RCC_CFGR_MCOPRE_DIV16 (0x40000000UL) /*!< MCO is divided by 16 */
  10819. /******************** Bit definition for RCC_PLLCFGR register ***************/
  10820. #define RCC_PLLCFGR_PLLSRC_Pos (0U)
  10821. #define RCC_PLLCFGR_PLLSRC_Msk (0x3UL << RCC_PLLCFGR_PLLSRC_Pos) /*!< 0x00000003 */
  10822. #define RCC_PLLCFGR_PLLSRC RCC_PLLCFGR_PLLSRC_Msk
  10823. #define RCC_PLLCFGR_PLLSRC_0 (0x1UL << RCC_PLLCFGR_PLLSRC_Pos) /*!< 0x00000001 */
  10824. #define RCC_PLLCFGR_PLLSRC_1 (0x2UL << RCC_PLLCFGR_PLLSRC_Pos) /*!< 0x00000002 */
  10825. #define RCC_PLLCFGR_PLLSRC_MSI_Pos (0U)
  10826. #define RCC_PLLCFGR_PLLSRC_MSI_Msk (0x1UL << RCC_PLLCFGR_PLLSRC_MSI_Pos)/*!< 0x00000001 */
  10827. #define RCC_PLLCFGR_PLLSRC_MSI RCC_PLLCFGR_PLLSRC_MSI_Msk /*!< MSI oscillator source clock selected */
  10828. #define RCC_PLLCFGR_PLLSRC_HSI_Pos (1U)
  10829. #define RCC_PLLCFGR_PLLSRC_HSI_Msk (0x1UL << RCC_PLLCFGR_PLLSRC_HSI_Pos)/*!< 0x00000002 */
  10830. #define RCC_PLLCFGR_PLLSRC_HSI RCC_PLLCFGR_PLLSRC_HSI_Msk /*!< HSI16 oscillator source clock selected */
  10831. #define RCC_PLLCFGR_PLLSRC_HSE_Pos (0U)
  10832. #define RCC_PLLCFGR_PLLSRC_HSE_Msk (0x3UL << RCC_PLLCFGR_PLLSRC_HSE_Pos)/*!< 0x00000003 */
  10833. #define RCC_PLLCFGR_PLLSRC_HSE RCC_PLLCFGR_PLLSRC_HSE_Msk /*!< HSE oscillator source clock selected */
  10834. #define RCC_PLLCFGR_PLLM_Pos (4U)
  10835. #define RCC_PLLCFGR_PLLM_Msk (0xFUL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x000000F0 */
  10836. #define RCC_PLLCFGR_PLLM RCC_PLLCFGR_PLLM_Msk
  10837. #define RCC_PLLCFGR_PLLM_0 (0x1UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000010 */
  10838. #define RCC_PLLCFGR_PLLM_1 (0x2UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000020 */
  10839. #define RCC_PLLCFGR_PLLM_2 (0x4UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000040 */
  10840. #define RCC_PLLCFGR_PLLM_3 (0x8UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000080 */
  10841. #define RCC_PLLCFGR_PLLN_Pos (8U)
  10842. #define RCC_PLLCFGR_PLLN_Msk (0x7FUL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00007F00 */
  10843. #define RCC_PLLCFGR_PLLN RCC_PLLCFGR_PLLN_Msk
  10844. #define RCC_PLLCFGR_PLLN_0 (0x01UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000100 */
  10845. #define RCC_PLLCFGR_PLLN_1 (0x02UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000200 */
  10846. #define RCC_PLLCFGR_PLLN_2 (0x04UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000400 */
  10847. #define RCC_PLLCFGR_PLLN_3 (0x08UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000800 */
  10848. #define RCC_PLLCFGR_PLLN_4 (0x10UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00001000 */
  10849. #define RCC_PLLCFGR_PLLN_5 (0x20UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00002000 */
  10850. #define RCC_PLLCFGR_PLLN_6 (0x40UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00004000 */
  10851. #define RCC_PLLCFGR_PLLPEN_Pos (16U)
  10852. #define RCC_PLLCFGR_PLLPEN_Msk (0x1UL << RCC_PLLCFGR_PLLPEN_Pos) /*!< 0x00010000 */
  10853. #define RCC_PLLCFGR_PLLPEN RCC_PLLCFGR_PLLPEN_Msk
  10854. #define RCC_PLLCFGR_PLLP_Pos (17U)
  10855. #define RCC_PLLCFGR_PLLP_Msk (0x1UL << RCC_PLLCFGR_PLLP_Pos) /*!< 0x00020000 */
  10856. #define RCC_PLLCFGR_PLLP RCC_PLLCFGR_PLLP_Msk
  10857. #define RCC_PLLCFGR_PLLQEN_Pos (20U)
  10858. #define RCC_PLLCFGR_PLLQEN_Msk (0x1UL << RCC_PLLCFGR_PLLQEN_Pos) /*!< 0x00100000 */
  10859. #define RCC_PLLCFGR_PLLQEN RCC_PLLCFGR_PLLQEN_Msk
  10860. #define RCC_PLLCFGR_PLLQ_Pos (21U)
  10861. #define RCC_PLLCFGR_PLLQ_Msk (0x3UL << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00600000 */
  10862. #define RCC_PLLCFGR_PLLQ RCC_PLLCFGR_PLLQ_Msk
  10863. #define RCC_PLLCFGR_PLLQ_0 (0x1UL << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00200000 */
  10864. #define RCC_PLLCFGR_PLLQ_1 (0x2UL << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00400000 */
  10865. #define RCC_PLLCFGR_PLLREN_Pos (24U)
  10866. #define RCC_PLLCFGR_PLLREN_Msk (0x1UL << RCC_PLLCFGR_PLLREN_Pos) /*!< 0x01000000 */
  10867. #define RCC_PLLCFGR_PLLREN RCC_PLLCFGR_PLLREN_Msk
  10868. #define RCC_PLLCFGR_PLLR_Pos (25U)
  10869. #define RCC_PLLCFGR_PLLR_Msk (0x3UL << RCC_PLLCFGR_PLLR_Pos) /*!< 0x06000000 */
  10870. #define RCC_PLLCFGR_PLLR RCC_PLLCFGR_PLLR_Msk
  10871. #define RCC_PLLCFGR_PLLR_0 (0x1UL << RCC_PLLCFGR_PLLR_Pos) /*!< 0x02000000 */
  10872. #define RCC_PLLCFGR_PLLR_1 (0x2UL << RCC_PLLCFGR_PLLR_Pos) /*!< 0x04000000 */
  10873. #define RCC_PLLCFGR_PLLPDIV_Pos (27U)
  10874. #define RCC_PLLCFGR_PLLPDIV_Msk (0x1FUL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0xF8000000 */
  10875. #define RCC_PLLCFGR_PLLPDIV RCC_PLLCFGR_PLLPDIV_Msk
  10876. #define RCC_PLLCFGR_PLLPDIV_0 (0x01UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x08000000 */
  10877. #define RCC_PLLCFGR_PLLPDIV_1 (0x02UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x10000000 */
  10878. #define RCC_PLLCFGR_PLLPDIV_2 (0x04UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x20000000 */
  10879. #define RCC_PLLCFGR_PLLPDIV_3 (0x08UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x40000000 */
  10880. #define RCC_PLLCFGR_PLLPDIV_4 (0x10UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x80000000 */
  10881. /******************** Bit definition for RCC_PLLSAI1CFGR register ************/
  10882. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos (0U)
  10883. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos)/*!< 0x00000003 */
  10884. #define RCC_PLLSAI1CFGR_PLLSAI1SRC RCC_PLLSAI1CFGR_PLLSAI1SRC_Msk
  10885. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos)/*!< 0x00000001 */
  10886. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos)/*!< 0x00000002 */
  10887. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Pos (0U)
  10888. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Pos)/*!< 0x00000001 */
  10889. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Msk /*!< MSI oscillator source clock selected */
  10890. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Pos (1U)
  10891. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Pos)/*!< 0x00000002 */
  10892. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Msk /*!< HSI16 oscillator source clock selected */
  10893. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Pos (0U)
  10894. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Pos)/*!< 0x00000003 */
  10895. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Msk /*!< HSE oscillator source clock selected */
  10896. #define RCC_PLLSAI1CFGR_PLLSAI1M_Pos (4U)
  10897. #define RCC_PLLSAI1CFGR_PLLSAI1M_Msk (0xFUL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x000000F0 */
  10898. #define RCC_PLLSAI1CFGR_PLLSAI1M RCC_PLLSAI1CFGR_PLLSAI1M_Msk
  10899. #define RCC_PLLSAI1CFGR_PLLSAI1M_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000010 */
  10900. #define RCC_PLLSAI1CFGR_PLLSAI1M_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000020 */
  10901. #define RCC_PLLSAI1CFGR_PLLSAI1M_2 (0x4UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000040 */
  10902. #define RCC_PLLSAI1CFGR_PLLSAI1M_3 (0x8UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000080 */
  10903. #define RCC_PLLSAI1CFGR_PLLSAI1N_Pos (8U)
  10904. #define RCC_PLLSAI1CFGR_PLLSAI1N_Msk (0x7FUL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00007F00 */
  10905. #define RCC_PLLSAI1CFGR_PLLSAI1N RCC_PLLSAI1CFGR_PLLSAI1N_Msk
  10906. #define RCC_PLLSAI1CFGR_PLLSAI1N_0 (0x01UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000100 */
  10907. #define RCC_PLLSAI1CFGR_PLLSAI1N_1 (0x02UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000200 */
  10908. #define RCC_PLLSAI1CFGR_PLLSAI1N_2 (0x04UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000400 */
  10909. #define RCC_PLLSAI1CFGR_PLLSAI1N_3 (0x08UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000800 */
  10910. #define RCC_PLLSAI1CFGR_PLLSAI1N_4 (0x10UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00001000 */
  10911. #define RCC_PLLSAI1CFGR_PLLSAI1N_5 (0x20UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00002000 */
  10912. #define RCC_PLLSAI1CFGR_PLLSAI1N_6 (0x40UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00004000 */
  10913. #define RCC_PLLSAI1CFGR_PLLSAI1PEN_Pos (16U)
  10914. #define RCC_PLLSAI1CFGR_PLLSAI1PEN_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1PEN_Pos)/*!< 0x00010000 */
  10915. #define RCC_PLLSAI1CFGR_PLLSAI1PEN RCC_PLLSAI1CFGR_PLLSAI1PEN_Msk
  10916. #define RCC_PLLSAI1CFGR_PLLSAI1P_Pos (17U)
  10917. #define RCC_PLLSAI1CFGR_PLLSAI1P_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1P_Pos)/*!< 0x00020000 */
  10918. #define RCC_PLLSAI1CFGR_PLLSAI1P RCC_PLLSAI1CFGR_PLLSAI1P_Msk
  10919. #define RCC_PLLSAI1CFGR_PLLSAI1QEN_Pos (20U)
  10920. #define RCC_PLLSAI1CFGR_PLLSAI1QEN_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1QEN_Pos)/*!< 0x00100000 */
  10921. #define RCC_PLLSAI1CFGR_PLLSAI1QEN RCC_PLLSAI1CFGR_PLLSAI1QEN_Msk
  10922. #define RCC_PLLSAI1CFGR_PLLSAI1Q_Pos (21U)
  10923. #define RCC_PLLSAI1CFGR_PLLSAI1Q_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)/*!< 0x00600000 */
  10924. #define RCC_PLLSAI1CFGR_PLLSAI1Q RCC_PLLSAI1CFGR_PLLSAI1Q_Msk
  10925. #define RCC_PLLSAI1CFGR_PLLSAI1Q_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)/*!< 0x00200000 */
  10926. #define RCC_PLLSAI1CFGR_PLLSAI1Q_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)/*!< 0x00400000 */
  10927. #define RCC_PLLSAI1CFGR_PLLSAI1REN_Pos (24U)
  10928. #define RCC_PLLSAI1CFGR_PLLSAI1REN_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1REN_Pos)/*!< 0x01000000 */
  10929. #define RCC_PLLSAI1CFGR_PLLSAI1REN RCC_PLLSAI1CFGR_PLLSAI1REN_Msk
  10930. #define RCC_PLLSAI1CFGR_PLLSAI1R_Pos (25U)
  10931. #define RCC_PLLSAI1CFGR_PLLSAI1R_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)/*!< 0x06000000 */
  10932. #define RCC_PLLSAI1CFGR_PLLSAI1R RCC_PLLSAI1CFGR_PLLSAI1R_Msk
  10933. #define RCC_PLLSAI1CFGR_PLLSAI1R_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)/*!< 0x02000000 */
  10934. #define RCC_PLLSAI1CFGR_PLLSAI1R_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)/*!< 0x04000000 */
  10935. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos (27U)
  10936. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_Msk (0x1FUL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0xF8000000 */
  10937. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV RCC_PLLSAI1CFGR_PLLSAI1PDIV_Msk
  10938. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_0 (0x01UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x08000000 */
  10939. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_1 (0x02UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x10000000 */
  10940. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_2 (0x04UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x20000000 */
  10941. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_3 (0x08UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x40000000 */
  10942. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_4 (0x10UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x80000000 */
  10943. /******************** Bit definition for RCC_PLLSAI2CFGR register ************/
  10944. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos (0U)
  10945. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_Msk (0x3UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos)/*!< 0x00000003 */
  10946. #define RCC_PLLSAI2CFGR_PLLSAI2SRC RCC_PLLSAI2CFGR_PLLSAI2SRC_Msk
  10947. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_0 (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos)/*!< 0x00000001 */
  10948. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_1 (0x2UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos)/*!< 0x00000002 */
  10949. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Pos (0U)
  10950. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Pos)/*!< 0x00000001 */
  10951. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Msk /*!< MSI oscillator source clock selected */
  10952. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Pos (1U)
  10953. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Pos)/*!< 0x00000002 */
  10954. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Msk /*!< HSI16 oscillator source clock selected */
  10955. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Pos (0U)
  10956. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Msk (0x3UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Pos)/*!< 0x00000003 */
  10957. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Msk /*!< HSE oscillator source clock selected */
  10958. #define RCC_PLLSAI2CFGR_PLLSAI2M_Pos (4U)
  10959. #define RCC_PLLSAI2CFGR_PLLSAI2M_Msk (0xFUL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x000000F0 */
  10960. #define RCC_PLLSAI2CFGR_PLLSAI2M RCC_PLLSAI2CFGR_PLLSAI2M_Msk
  10961. #define RCC_PLLSAI2CFGR_PLLSAI2M_0 (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000010 */
  10962. #define RCC_PLLSAI2CFGR_PLLSAI2M_1 (0x2UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000020 */
  10963. #define RCC_PLLSAI2CFGR_PLLSAI2M_2 (0x4UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000040 */
  10964. #define RCC_PLLSAI2CFGR_PLLSAI2M_3 (0x8UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000080 */
  10965. #define RCC_PLLSAI2CFGR_PLLSAI2N_Pos (8U)
  10966. #define RCC_PLLSAI2CFGR_PLLSAI2N_Msk (0x7FUL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00007F00 */
  10967. #define RCC_PLLSAI2CFGR_PLLSAI2N RCC_PLLSAI2CFGR_PLLSAI2N_Msk
  10968. #define RCC_PLLSAI2CFGR_PLLSAI2N_0 (0x01UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000100 */
  10969. #define RCC_PLLSAI2CFGR_PLLSAI2N_1 (0x02UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000200 */
  10970. #define RCC_PLLSAI2CFGR_PLLSAI2N_2 (0x04UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000400 */
  10971. #define RCC_PLLSAI2CFGR_PLLSAI2N_3 (0x08UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000800 */
  10972. #define RCC_PLLSAI2CFGR_PLLSAI2N_4 (0x10UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00001000 */
  10973. #define RCC_PLLSAI2CFGR_PLLSAI2N_5 (0x20UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00002000 */
  10974. #define RCC_PLLSAI2CFGR_PLLSAI2N_6 (0x40UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00004000 */
  10975. #define RCC_PLLSAI2CFGR_PLLSAI2PEN_Pos (16U)
  10976. #define RCC_PLLSAI2CFGR_PLLSAI2PEN_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2PEN_Pos)/*!< 0x00010000 */
  10977. #define RCC_PLLSAI2CFGR_PLLSAI2PEN RCC_PLLSAI2CFGR_PLLSAI2PEN_Msk
  10978. #define RCC_PLLSAI2CFGR_PLLSAI2P_Pos (17U)
  10979. #define RCC_PLLSAI2CFGR_PLLSAI2P_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2P_Pos)/*!< 0x00020000 */
  10980. #define RCC_PLLSAI2CFGR_PLLSAI2P RCC_PLLSAI2CFGR_PLLSAI2P_Msk
  10981. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos (27U)
  10982. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_Msk (0x1FUL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0xF8000000 */
  10983. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV RCC_PLLSAI2CFGR_PLLSAI2PDIV_Msk
  10984. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_0 (0x01UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x08000000 */
  10985. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_1 (0x02UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x10000000 */
  10986. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_2 (0x04UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x20000000 */
  10987. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_3 (0x08UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x40000000 */
  10988. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_4 (0x10UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x80000000 */
  10989. /******************** Bit definition for RCC_CIER register ******************/
  10990. #define RCC_CIER_LSIRDYIE_Pos (0U)
  10991. #define RCC_CIER_LSIRDYIE_Msk (0x1UL << RCC_CIER_LSIRDYIE_Pos) /*!< 0x00000001 */
  10992. #define RCC_CIER_LSIRDYIE RCC_CIER_LSIRDYIE_Msk
  10993. #define RCC_CIER_LSERDYIE_Pos (1U)
  10994. #define RCC_CIER_LSERDYIE_Msk (0x1UL << RCC_CIER_LSERDYIE_Pos) /*!< 0x00000002 */
  10995. #define RCC_CIER_LSERDYIE RCC_CIER_LSERDYIE_Msk
  10996. #define RCC_CIER_MSIRDYIE_Pos (2U)
  10997. #define RCC_CIER_MSIRDYIE_Msk (0x1UL << RCC_CIER_MSIRDYIE_Pos) /*!< 0x00000004 */
  10998. #define RCC_CIER_MSIRDYIE RCC_CIER_MSIRDYIE_Msk
  10999. #define RCC_CIER_HSIRDYIE_Pos (3U)
  11000. #define RCC_CIER_HSIRDYIE_Msk (0x1UL << RCC_CIER_HSIRDYIE_Pos) /*!< 0x00000008 */
  11001. #define RCC_CIER_HSIRDYIE RCC_CIER_HSIRDYIE_Msk
  11002. #define RCC_CIER_HSERDYIE_Pos (4U)
  11003. #define RCC_CIER_HSERDYIE_Msk (0x1UL << RCC_CIER_HSERDYIE_Pos) /*!< 0x00000010 */
  11004. #define RCC_CIER_HSERDYIE RCC_CIER_HSERDYIE_Msk
  11005. #define RCC_CIER_PLLRDYIE_Pos (5U)
  11006. #define RCC_CIER_PLLRDYIE_Msk (0x1UL << RCC_CIER_PLLRDYIE_Pos) /*!< 0x00000020 */
  11007. #define RCC_CIER_PLLRDYIE RCC_CIER_PLLRDYIE_Msk
  11008. #define RCC_CIER_PLLSAI1RDYIE_Pos (6U)
  11009. #define RCC_CIER_PLLSAI1RDYIE_Msk (0x1UL << RCC_CIER_PLLSAI1RDYIE_Pos)/*!< 0x00000040 */
  11010. #define RCC_CIER_PLLSAI1RDYIE RCC_CIER_PLLSAI1RDYIE_Msk
  11011. #define RCC_CIER_PLLSAI2RDYIE_Pos (7U)
  11012. #define RCC_CIER_PLLSAI2RDYIE_Msk (0x1UL << RCC_CIER_PLLSAI2RDYIE_Pos)/*!< 0x00000080 */
  11013. #define RCC_CIER_PLLSAI2RDYIE RCC_CIER_PLLSAI2RDYIE_Msk
  11014. #define RCC_CIER_HSI48RDYIE_Pos (10U)
  11015. #define RCC_CIER_HSI48RDYIE_Msk (0x1UL << RCC_CIER_HSI48RDYIE_Pos)/*!< 0x00000400 */
  11016. #define RCC_CIER_HSI48RDYIE RCC_CIER_HSI48RDYIE_Msk
  11017. /******************** Bit definition for RCC_CIFR register ****************/
  11018. #define RCC_CIFR_LSIRDYF_Pos (0U)
  11019. #define RCC_CIFR_LSIRDYF_Msk (0x1UL << RCC_CIFR_LSIRDYF_Pos) /*!< 0x00000001 */
  11020. #define RCC_CIFR_LSIRDYF RCC_CIFR_LSIRDYF_Msk
  11021. #define RCC_CIFR_LSERDYF_Pos (1U)
  11022. #define RCC_CIFR_LSERDYF_Msk (0x1UL << RCC_CIFR_LSERDYF_Pos) /*!< 0x00000002 */
  11023. #define RCC_CIFR_LSERDYF RCC_CIFR_LSERDYF_Msk
  11024. #define RCC_CIFR_MSIRDYF_Pos (2U)
  11025. #define RCC_CIFR_MSIRDYF_Msk (0x1UL << RCC_CIFR_MSIRDYF_Pos) /*!< 0x00000004 */
  11026. #define RCC_CIFR_MSIRDYF RCC_CIFR_MSIRDYF_Msk
  11027. #define RCC_CIFR_HSIRDYF_Pos (3U)
  11028. #define RCC_CIFR_HSIRDYF_Msk (0x1UL << RCC_CIFR_HSIRDYF_Pos) /*!< 0x00000008 */
  11029. #define RCC_CIFR_HSIRDYF RCC_CIFR_HSIRDYF_Msk
  11030. #define RCC_CIFR_HSERDYF_Pos (4U)
  11031. #define RCC_CIFR_HSERDYF_Msk (0x1UL << RCC_CIFR_HSERDYF_Pos) /*!< 0x00000010 */
  11032. #define RCC_CIFR_HSERDYF RCC_CIFR_HSERDYF_Msk
  11033. #define RCC_CIFR_PLLRDYF_Pos (5U)
  11034. #define RCC_CIFR_PLLRDYF_Msk (0x1UL << RCC_CIFR_PLLRDYF_Pos) /*!< 0x00000020 */
  11035. #define RCC_CIFR_PLLRDYF RCC_CIFR_PLLRDYF_Msk
  11036. #define RCC_CIFR_PLLSAI1RDYF_Pos (6U)
  11037. #define RCC_CIFR_PLLSAI1RDYF_Msk (0x1UL << RCC_CIFR_PLLSAI1RDYF_Pos)/*!< 0x00000040 */
  11038. #define RCC_CIFR_PLLSAI1RDYF RCC_CIFR_PLLSAI1RDYF_Msk
  11039. #define RCC_CIFR_PLLSAI2RDYF_Pos (7U)
  11040. #define RCC_CIFR_PLLSAI2RDYF_Msk (0x1UL << RCC_CIFR_PLLSAI2RDYF_Pos)/*!< 0x00000080 */
  11041. #define RCC_CIFR_PLLSAI2RDYF RCC_CIFR_PLLSAI2RDYF_Msk
  11042. #define RCC_CIFR_CSSF_Pos (8U)
  11043. #define RCC_CIFR_CSSF_Msk (0x1UL << RCC_CIFR_CSSF_Pos) /*!< 0x00000100 */
  11044. #define RCC_CIFR_CSSF RCC_CIFR_CSSF_Msk
  11045. #define RCC_CIFR_HSI48RDYF_Pos (10U)
  11046. #define RCC_CIFR_HSI48RDYF_Msk (0x1UL << RCC_CIFR_HSI48RDYF_Pos) /*!< 0x00000400 */
  11047. #define RCC_CIFR_HSI48RDYF RCC_CIFR_HSI48RDYF_Msk
  11048. /******************** Bit definition for RCC_CICR register ****************/
  11049. #define RCC_CICR_LSIRDYC_Pos (0U)
  11050. #define RCC_CICR_LSIRDYC_Msk (0x1UL << RCC_CICR_LSIRDYC_Pos) /*!< 0x00000001 */
  11051. #define RCC_CICR_LSIRDYC RCC_CICR_LSIRDYC_Msk
  11052. #define RCC_CICR_LSERDYC_Pos (1U)
  11053. #define RCC_CICR_LSERDYC_Msk (0x1UL << RCC_CICR_LSERDYC_Pos) /*!< 0x00000002 */
  11054. #define RCC_CICR_LSERDYC RCC_CICR_LSERDYC_Msk
  11055. #define RCC_CICR_MSIRDYC_Pos (2U)
  11056. #define RCC_CICR_MSIRDYC_Msk (0x1UL << RCC_CICR_MSIRDYC_Pos) /*!< 0x00000004 */
  11057. #define RCC_CICR_MSIRDYC RCC_CICR_MSIRDYC_Msk
  11058. #define RCC_CICR_HSIRDYC_Pos (3U)
  11059. #define RCC_CICR_HSIRDYC_Msk (0x1UL << RCC_CICR_HSIRDYC_Pos) /*!< 0x00000008 */
  11060. #define RCC_CICR_HSIRDYC RCC_CICR_HSIRDYC_Msk
  11061. #define RCC_CICR_HSERDYC_Pos (4U)
  11062. #define RCC_CICR_HSERDYC_Msk (0x1UL << RCC_CICR_HSERDYC_Pos) /*!< 0x00000010 */
  11063. #define RCC_CICR_HSERDYC RCC_CICR_HSERDYC_Msk
  11064. #define RCC_CICR_PLLRDYC_Pos (5U)
  11065. #define RCC_CICR_PLLRDYC_Msk (0x1UL << RCC_CICR_PLLRDYC_Pos) /*!< 0x00000020 */
  11066. #define RCC_CICR_PLLRDYC RCC_CICR_PLLRDYC_Msk
  11067. #define RCC_CICR_PLLSAI1RDYC_Pos (6U)
  11068. #define RCC_CICR_PLLSAI1RDYC_Msk (0x1UL << RCC_CICR_PLLSAI1RDYC_Pos)/*!< 0x00000040 */
  11069. #define RCC_CICR_PLLSAI1RDYC RCC_CICR_PLLSAI1RDYC_Msk
  11070. #define RCC_CICR_PLLSAI2RDYC_Pos (7U)
  11071. #define RCC_CICR_PLLSAI2RDYC_Msk (0x1UL << RCC_CICR_PLLSAI2RDYC_Pos)/*!< 0x00000080 */
  11072. #define RCC_CICR_PLLSAI2RDYC RCC_CICR_PLLSAI2RDYC_Msk
  11073. #define RCC_CICR_CSSC_Pos (8U)
  11074. #define RCC_CICR_CSSC_Msk (0x1UL << RCC_CICR_CSSC_Pos) /*!< 0x00000100 */
  11075. #define RCC_CICR_CSSC RCC_CICR_CSSC_Msk
  11076. #define RCC_CICR_HSI48RDYC_Pos (10U)
  11077. #define RCC_CICR_HSI48RDYC_Msk (0x1UL << RCC_CICR_HSI48RDYC_Pos) /*!< 0x00000400 */
  11078. #define RCC_CICR_HSI48RDYC RCC_CICR_HSI48RDYC_Msk
  11079. /******************** Bit definition for RCC_AHB1RSTR register **************/
  11080. #define RCC_AHB1RSTR_DMA1RST_Pos (0U)
  11081. #define RCC_AHB1RSTR_DMA1RST_Msk (0x1UL << RCC_AHB1RSTR_DMA1RST_Pos)/*!< 0x00000001 */
  11082. #define RCC_AHB1RSTR_DMA1RST RCC_AHB1RSTR_DMA1RST_Msk
  11083. #define RCC_AHB1RSTR_DMA2RST_Pos (1U)
  11084. #define RCC_AHB1RSTR_DMA2RST_Msk (0x1UL << RCC_AHB1RSTR_DMA2RST_Pos)/*!< 0x00000002 */
  11085. #define RCC_AHB1RSTR_DMA2RST RCC_AHB1RSTR_DMA2RST_Msk
  11086. #define RCC_AHB1RSTR_DMAMUX1RST_Pos (2U)
  11087. #define RCC_AHB1RSTR_DMAMUX1RST_Msk (0x1UL << RCC_AHB1RSTR_DMAMUX1RST_Pos)/*!< 0x00000004 */
  11088. #define RCC_AHB1RSTR_DMAMUX1RST RCC_AHB1RSTR_DMAMUX1RST_Msk
  11089. #define RCC_AHB1RSTR_FLASHRST_Pos (8U)
  11090. #define RCC_AHB1RSTR_FLASHRST_Msk (0x1UL << RCC_AHB1RSTR_FLASHRST_Pos)/*!< 0x00000100 */
  11091. #define RCC_AHB1RSTR_FLASHRST RCC_AHB1RSTR_FLASHRST_Msk
  11092. #define RCC_AHB1RSTR_CRCRST_Pos (12U)
  11093. #define RCC_AHB1RSTR_CRCRST_Msk (0x1UL << RCC_AHB1RSTR_CRCRST_Pos)/*!< 0x00001000 */
  11094. #define RCC_AHB1RSTR_CRCRST RCC_AHB1RSTR_CRCRST_Msk
  11095. #define RCC_AHB1RSTR_TSCRST_Pos (16U)
  11096. #define RCC_AHB1RSTR_TSCRST_Msk (0x1UL << RCC_AHB1RSTR_TSCRST_Pos)/*!< 0x00010000 */
  11097. #define RCC_AHB1RSTR_TSCRST RCC_AHB1RSTR_TSCRST_Msk
  11098. /******************** Bit definition for RCC_AHB2RSTR register **************/
  11099. #define RCC_AHB2RSTR_GPIOARST_Pos (0U)
  11100. #define RCC_AHB2RSTR_GPIOARST_Msk (0x1UL << RCC_AHB2RSTR_GPIOARST_Pos)/*!< 0x00000001 */
  11101. #define RCC_AHB2RSTR_GPIOARST RCC_AHB2RSTR_GPIOARST_Msk
  11102. #define RCC_AHB2RSTR_GPIOBRST_Pos (1U)
  11103. #define RCC_AHB2RSTR_GPIOBRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOBRST_Pos)/*!< 0x00000002 */
  11104. #define RCC_AHB2RSTR_GPIOBRST RCC_AHB2RSTR_GPIOBRST_Msk
  11105. #define RCC_AHB2RSTR_GPIOCRST_Pos (2U)
  11106. #define RCC_AHB2RSTR_GPIOCRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOCRST_Pos)/*!< 0x00000004 */
  11107. #define RCC_AHB2RSTR_GPIOCRST RCC_AHB2RSTR_GPIOCRST_Msk
  11108. #define RCC_AHB2RSTR_GPIODRST_Pos (3U)
  11109. #define RCC_AHB2RSTR_GPIODRST_Msk (0x1UL << RCC_AHB2RSTR_GPIODRST_Pos)/*!< 0x00000008 */
  11110. #define RCC_AHB2RSTR_GPIODRST RCC_AHB2RSTR_GPIODRST_Msk
  11111. #define RCC_AHB2RSTR_GPIOERST_Pos (4U)
  11112. #define RCC_AHB2RSTR_GPIOERST_Msk (0x1UL << RCC_AHB2RSTR_GPIOERST_Pos)/*!< 0x00000010 */
  11113. #define RCC_AHB2RSTR_GPIOERST RCC_AHB2RSTR_GPIOERST_Msk
  11114. #define RCC_AHB2RSTR_GPIOFRST_Pos (5U)
  11115. #define RCC_AHB2RSTR_GPIOFRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOFRST_Pos)/*!< 0x00000020 */
  11116. #define RCC_AHB2RSTR_GPIOFRST RCC_AHB2RSTR_GPIOFRST_Msk
  11117. #define RCC_AHB2RSTR_GPIOGRST_Pos (6U)
  11118. #define RCC_AHB2RSTR_GPIOGRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOGRST_Pos)/*!< 0x00000040 */
  11119. #define RCC_AHB2RSTR_GPIOGRST RCC_AHB2RSTR_GPIOGRST_Msk
  11120. #define RCC_AHB2RSTR_GPIOHRST_Pos (7U)
  11121. #define RCC_AHB2RSTR_GPIOHRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOHRST_Pos)/*!< 0x00000080 */
  11122. #define RCC_AHB2RSTR_GPIOHRST RCC_AHB2RSTR_GPIOHRST_Msk
  11123. #define RCC_AHB2RSTR_ADCRST_Pos (13U)
  11124. #define RCC_AHB2RSTR_ADCRST_Msk (0x1UL << RCC_AHB2RSTR_ADCRST_Pos)/*!< 0x00002000 */
  11125. #define RCC_AHB2RSTR_ADCRST RCC_AHB2RSTR_ADCRST_Msk
  11126. #define RCC_AHB2RSTR_AESRST_Pos (16U)
  11127. #define RCC_AHB2RSTR_AESRST_Msk (0x1UL << RCC_AHB2RSTR_AESRST_Pos)/*!< 0x00010000 */
  11128. #define RCC_AHB2RSTR_AESRST RCC_AHB2RSTR_AESRST_Msk
  11129. #define RCC_AHB2RSTR_HASHRST_Pos (17U)
  11130. #define RCC_AHB2RSTR_HASHRST_Msk (0x1UL << RCC_AHB2RSTR_HASHRST_Pos)/*!< 0x00020000 */
  11131. #define RCC_AHB2RSTR_HASHRST RCC_AHB2RSTR_HASHRST_Msk
  11132. #define RCC_AHB2RSTR_RNGRST_Pos (18U)
  11133. #define RCC_AHB2RSTR_RNGRST_Msk (0x1UL << RCC_AHB2RSTR_RNGRST_Pos)/*!< 0x00040000 */
  11134. #define RCC_AHB2RSTR_RNGRST RCC_AHB2RSTR_RNGRST_Msk
  11135. #define RCC_AHB2RSTR_PKARST_Pos (19U)
  11136. #define RCC_AHB2RSTR_PKARST_Msk (0x1UL << RCC_AHB2RSTR_PKARST_Pos)/*!< 0x00080000 */
  11137. #define RCC_AHB2RSTR_PKARST RCC_AHB2RSTR_PKARST_Msk
  11138. #define RCC_AHB2RSTR_OTFDEC1RST_Pos (21U)
  11139. #define RCC_AHB2RSTR_OTFDEC1RST_Msk (0x1UL << RCC_AHB2RSTR_OTFDEC1RST_Pos)/*!< 0x00200000 */
  11140. #define RCC_AHB2RSTR_OTFDEC1RST RCC_AHB2RSTR_OTFDEC1RST_Msk
  11141. #define RCC_AHB2RSTR_SDMMC1RST_Pos (22U)
  11142. #define RCC_AHB2RSTR_SDMMC1RST_Msk (0x1UL << RCC_AHB2RSTR_SDMMC1RST_Pos)/*!< 0x00400000 */
  11143. #define RCC_AHB2RSTR_SDMMC1RST RCC_AHB2RSTR_SDMMC1RST_Msk
  11144. /******************** Bit definition for RCC_AHB3RSTR register **************/
  11145. #define RCC_AHB3RSTR_FMCRST_Pos (0U)
  11146. #define RCC_AHB3RSTR_FMCRST_Msk (0x1UL << RCC_AHB3RSTR_FMCRST_Pos)/*!< 0x00000001 */
  11147. #define RCC_AHB3RSTR_FMCRST RCC_AHB3RSTR_FMCRST_Msk
  11148. #define RCC_AHB3RSTR_OSPI1RST_Pos (8U)
  11149. #define RCC_AHB3RSTR_OSPI1RST_Msk (0x1UL << RCC_AHB3RSTR_OSPI1RST_Pos)/*!< 0x00000100 */
  11150. #define RCC_AHB3RSTR_OSPI1RST RCC_AHB3RSTR_OSPI1RST_Msk
  11151. /******************** Bit definition for RCC_APB1RSTR1 register **************/
  11152. #define RCC_APB1RSTR1_TIM2RST_Pos (0U)
  11153. #define RCC_APB1RSTR1_TIM2RST_Msk (0x1UL << RCC_APB1RSTR1_TIM2RST_Pos)/*!< 0x00000001 */
  11154. #define RCC_APB1RSTR1_TIM2RST RCC_APB1RSTR1_TIM2RST_Msk
  11155. #define RCC_APB1RSTR1_TIM3RST_Pos (1U)
  11156. #define RCC_APB1RSTR1_TIM3RST_Msk (0x1UL << RCC_APB1RSTR1_TIM3RST_Pos)/*!< 0x00000002 */
  11157. #define RCC_APB1RSTR1_TIM3RST RCC_APB1RSTR1_TIM3RST_Msk
  11158. #define RCC_APB1RSTR1_TIM4RST_Pos (2U)
  11159. #define RCC_APB1RSTR1_TIM4RST_Msk (0x1UL << RCC_APB1RSTR1_TIM4RST_Pos)/*!< 0x00000004 */
  11160. #define RCC_APB1RSTR1_TIM4RST RCC_APB1RSTR1_TIM4RST_Msk
  11161. #define RCC_APB1RSTR1_TIM5RST_Pos (3U)
  11162. #define RCC_APB1RSTR1_TIM5RST_Msk (0x1UL << RCC_APB1RSTR1_TIM5RST_Pos)/*!< 0x00000008 */
  11163. #define RCC_APB1RSTR1_TIM5RST RCC_APB1RSTR1_TIM5RST_Msk
  11164. #define RCC_APB1RSTR1_TIM6RST_Pos (4U)
  11165. #define RCC_APB1RSTR1_TIM6RST_Msk (0x1UL << RCC_APB1RSTR1_TIM6RST_Pos)/*!< 0x00000010 */
  11166. #define RCC_APB1RSTR1_TIM6RST RCC_APB1RSTR1_TIM6RST_Msk
  11167. #define RCC_APB1RSTR1_TIM7RST_Pos (5U)
  11168. #define RCC_APB1RSTR1_TIM7RST_Msk (0x1UL << RCC_APB1RSTR1_TIM7RST_Pos)/*!< 0x00000020 */
  11169. #define RCC_APB1RSTR1_TIM7RST RCC_APB1RSTR1_TIM7RST_Msk
  11170. #define RCC_APB1RSTR1_SPI2RST_Pos (14U)
  11171. #define RCC_APB1RSTR1_SPI2RST_Msk (0x1UL << RCC_APB1RSTR1_SPI2RST_Pos)/*!< 0x00004000 */
  11172. #define RCC_APB1RSTR1_SPI2RST RCC_APB1RSTR1_SPI2RST_Msk
  11173. #define RCC_APB1RSTR1_SPI3RST_Pos (15U)
  11174. #define RCC_APB1RSTR1_SPI3RST_Msk (0x1UL << RCC_APB1RSTR1_SPI3RST_Pos)/*!< 0x00008000 */
  11175. #define RCC_APB1RSTR1_SPI3RST RCC_APB1RSTR1_SPI3RST_Msk
  11176. #define RCC_APB1RSTR1_USART2RST_Pos (17U)
  11177. #define RCC_APB1RSTR1_USART2RST_Msk (0x1UL << RCC_APB1RSTR1_USART2RST_Pos)/*!< 0x00020000 */
  11178. #define RCC_APB1RSTR1_USART2RST RCC_APB1RSTR1_USART2RST_Msk
  11179. #define RCC_APB1RSTR1_USART3RST_Pos (18U)
  11180. #define RCC_APB1RSTR1_USART3RST_Msk (0x1UL << RCC_APB1RSTR1_USART3RST_Pos)/*!< 0x00040000 */
  11181. #define RCC_APB1RSTR1_USART3RST RCC_APB1RSTR1_USART3RST_Msk
  11182. #define RCC_APB1RSTR1_UART4RST_Pos (19U)
  11183. #define RCC_APB1RSTR1_UART4RST_Msk (0x1UL << RCC_APB1RSTR1_UART4RST_Pos)/*!< 0x00080000 */
  11184. #define RCC_APB1RSTR1_UART4RST RCC_APB1RSTR1_UART4RST_Msk
  11185. #define RCC_APB1RSTR1_UART5RST_Pos (20U)
  11186. #define RCC_APB1RSTR1_UART5RST_Msk (0x1UL << RCC_APB1RSTR1_UART5RST_Pos)/*!< 0x00100000 */
  11187. #define RCC_APB1RSTR1_UART5RST RCC_APB1RSTR1_UART5RST_Msk
  11188. #define RCC_APB1RSTR1_I2C1RST_Pos (21U)
  11189. #define RCC_APB1RSTR1_I2C1RST_Msk (0x1UL << RCC_APB1RSTR1_I2C1RST_Pos)/*!< 0x00200000 */
  11190. #define RCC_APB1RSTR1_I2C1RST RCC_APB1RSTR1_I2C1RST_Msk
  11191. #define RCC_APB1RSTR1_I2C2RST_Pos (22U)
  11192. #define RCC_APB1RSTR1_I2C2RST_Msk (0x1UL << RCC_APB1RSTR1_I2C2RST_Pos)/*!< 0x00400000 */
  11193. #define RCC_APB1RSTR1_I2C2RST RCC_APB1RSTR1_I2C2RST_Msk
  11194. #define RCC_APB1RSTR1_I2C3RST_Pos (23U)
  11195. #define RCC_APB1RSTR1_I2C3RST_Msk (0x1UL << RCC_APB1RSTR1_I2C3RST_Pos)/*!< 0x00800000 */
  11196. #define RCC_APB1RSTR1_I2C3RST RCC_APB1RSTR1_I2C3RST_Msk
  11197. #define RCC_APB1RSTR1_CRSRST_Pos (24U)
  11198. #define RCC_APB1RSTR1_CRSRST_Msk (0x1UL << RCC_APB1RSTR1_CRSRST_Pos)/*!< 0x01000000 */
  11199. #define RCC_APB1RSTR1_CRSRST RCC_APB1RSTR1_CRSRST_Msk
  11200. #define RCC_APB1RSTR1_PWRRST_Pos (28U)
  11201. #define RCC_APB1RSTR1_PWRRST_Msk (0x1UL << RCC_APB1RSTR1_PWRRST_Pos)/*!< 0x10000000 */
  11202. #define RCC_APB1RSTR1_PWRRST RCC_APB1RSTR1_PWRRST_Msk
  11203. #define RCC_APB1RSTR1_DAC1RST_Pos (29U)
  11204. #define RCC_APB1RSTR1_DAC1RST_Msk (0x1UL << RCC_APB1RSTR1_DAC1RST_Pos)/*!< 0x20000000 */
  11205. #define RCC_APB1RSTR1_DAC1RST RCC_APB1RSTR1_DAC1RST_Msk
  11206. #define RCC_APB1RSTR1_OPAMPRST_Pos (30U)
  11207. #define RCC_APB1RSTR1_OPAMPRST_Msk (0x1UL << RCC_APB1RSTR1_OPAMPRST_Pos)/*!< 0x40000000 */
  11208. #define RCC_APB1RSTR1_OPAMPRST RCC_APB1RSTR1_OPAMPRST_Msk
  11209. #define RCC_APB1RSTR1_LPTIM1RST_Pos (31U)
  11210. #define RCC_APB1RSTR1_LPTIM1RST_Msk (0x1UL << RCC_APB1RSTR1_LPTIM1RST_Pos)/*!< 0x80000000 */
  11211. #define RCC_APB1RSTR1_LPTIM1RST RCC_APB1RSTR1_LPTIM1RST_Msk
  11212. /******************** Bit definition for RCC_APB1RSTR2 register **************/
  11213. #define RCC_APB1RSTR2_LPUART1RST_Pos (0U)
  11214. #define RCC_APB1RSTR2_LPUART1RST_Msk (0x1UL << RCC_APB1RSTR2_LPUART1RST_Pos)/*!< 0x00000001 */
  11215. #define RCC_APB1RSTR2_LPUART1RST RCC_APB1RSTR2_LPUART1RST_Msk
  11216. #define RCC_APB1RSTR2_I2C4RST_Pos (1U)
  11217. #define RCC_APB1RSTR2_I2C4RST_Msk (0x1UL << RCC_APB1RSTR2_I2C4RST_Pos)/*!< 0x00000002 */
  11218. #define RCC_APB1RSTR2_I2C4RST RCC_APB1RSTR2_I2C4RST_Msk
  11219. #define RCC_APB1RSTR2_LPTIM2RST_Pos (5U)
  11220. #define RCC_APB1RSTR2_LPTIM2RST_Msk (0x1UL << RCC_APB1RSTR2_LPTIM2RST_Pos)/*!< 0x00000020 */
  11221. #define RCC_APB1RSTR2_LPTIM2RST RCC_APB1RSTR2_LPTIM2RST_Msk
  11222. #define RCC_APB1RSTR2_LPTIM3RST_Pos (6U)
  11223. #define RCC_APB1RSTR2_LPTIM3RST_Msk (0x1UL << RCC_APB1RSTR2_LPTIM3RST_Pos)/*!< 0x00000040 */
  11224. #define RCC_APB1RSTR2_LPTIM3RST RCC_APB1RSTR2_LPTIM3RST_Msk
  11225. #define RCC_APB1RSTR2_FDCAN1RST_Pos (9U)
  11226. #define RCC_APB1RSTR2_FDCAN1RST_Msk (0x1UL << RCC_APB1RSTR2_FDCAN1RST_Pos)/*!< 0x00000200 */
  11227. #define RCC_APB1RSTR2_FDCAN1RST RCC_APB1RSTR2_FDCAN1RST_Msk
  11228. #define RCC_APB1RSTR2_USBFSRST_Pos (21U)
  11229. #define RCC_APB1RSTR2_USBFSRST_Msk (0x1UL << RCC_APB1RSTR2_USBFSRST_Pos)/*!< 0x00200000 */
  11230. #define RCC_APB1RSTR2_USBFSRST RCC_APB1RSTR2_USBFSRST_Msk
  11231. #define RCC_APB1RSTR2_UCPD1RST_Pos (23U)
  11232. #define RCC_APB1RSTR2_UCPD1RST_Msk (0x1UL << RCC_APB1RSTR2_UCPD1RST_Pos)/*!< 0x00800000 */
  11233. #define RCC_APB1RSTR2_UCPD1RST RCC_APB1RSTR2_UCPD1RST_Msk
  11234. /******************** Bit definition for RCC_APB2RSTR register **************/
  11235. #define RCC_APB2RSTR_SYSCFGRST_Pos (0U)
  11236. #define RCC_APB2RSTR_SYSCFGRST_Msk (0x1UL << RCC_APB2RSTR_SYSCFGRST_Pos)/*!< 0x00000001 */
  11237. #define RCC_APB2RSTR_SYSCFGRST RCC_APB2RSTR_SYSCFGRST_Msk
  11238. #define RCC_APB2RSTR_TIM1RST_Pos (11U)
  11239. #define RCC_APB2RSTR_TIM1RST_Msk (0x1UL << RCC_APB2RSTR_TIM1RST_Pos)/*!< 0x00000800 */
  11240. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk
  11241. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  11242. #define RCC_APB2RSTR_SPI1RST_Msk (0x1UL << RCC_APB2RSTR_SPI1RST_Pos)/*!< 0x00001000 */
  11243. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk
  11244. #define RCC_APB2RSTR_TIM8RST_Pos (13U)
  11245. #define RCC_APB2RSTR_TIM8RST_Msk (0x1UL << RCC_APB2RSTR_TIM8RST_Pos)/*!< 0x00002000 */
  11246. #define RCC_APB2RSTR_TIM8RST RCC_APB2RSTR_TIM8RST_Msk
  11247. #define RCC_APB2RSTR_USART1RST_Pos (14U)
  11248. #define RCC_APB2RSTR_USART1RST_Msk (0x1UL << RCC_APB2RSTR_USART1RST_Pos)/*!< 0x00004000 */
  11249. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk
  11250. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  11251. #define RCC_APB2RSTR_TIM15RST_Msk (0x1UL << RCC_APB2RSTR_TIM15RST_Pos)/*!< 0x00010000 */
  11252. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk
  11253. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  11254. #define RCC_APB2RSTR_TIM16RST_Msk (0x1UL << RCC_APB2RSTR_TIM16RST_Pos)/*!< 0x00020000 */
  11255. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk
  11256. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  11257. #define RCC_APB2RSTR_TIM17RST_Msk (0x1UL << RCC_APB2RSTR_TIM17RST_Pos)/*!< 0x00040000 */
  11258. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk
  11259. #define RCC_APB2RSTR_SAI1RST_Pos (21U)
  11260. #define RCC_APB2RSTR_SAI1RST_Msk (0x1UL << RCC_APB2RSTR_SAI1RST_Pos)/*!< 0x00200000 */
  11261. #define RCC_APB2RSTR_SAI1RST RCC_APB2RSTR_SAI1RST_Msk
  11262. #define RCC_APB2RSTR_SAI2RST_Pos (22U)
  11263. #define RCC_APB2RSTR_SAI2RST_Msk (0x1UL << RCC_APB2RSTR_SAI2RST_Pos)/*!< 0x00400000 */
  11264. #define RCC_APB2RSTR_SAI2RST RCC_APB2RSTR_SAI2RST_Msk
  11265. #define RCC_APB2RSTR_DFSDM1RST_Pos (24U)
  11266. #define RCC_APB2RSTR_DFSDM1RST_Msk (0x1UL << RCC_APB2RSTR_DFSDM1RST_Pos)/*!< 0x01000000 */
  11267. #define RCC_APB2RSTR_DFSDM1RST RCC_APB2RSTR_DFSDM1RST_Msk
  11268. /******************** Bit definition for RCC_AHB1ENR register ***************/
  11269. #define RCC_AHB1ENR_DMA1EN_Pos (0U)
  11270. #define RCC_AHB1ENR_DMA1EN_Msk (0x1UL << RCC_AHB1ENR_DMA1EN_Pos) /*!< 0x00000001 */
  11271. #define RCC_AHB1ENR_DMA1EN RCC_AHB1ENR_DMA1EN_Msk
  11272. #define RCC_AHB1ENR_DMA2EN_Pos (1U)
  11273. #define RCC_AHB1ENR_DMA2EN_Msk (0x1UL << RCC_AHB1ENR_DMA2EN_Pos) /*!< 0x00000002 */
  11274. #define RCC_AHB1ENR_DMA2EN RCC_AHB1ENR_DMA2EN_Msk
  11275. #define RCC_AHB1ENR_DMAMUX1EN_Pos (2U)
  11276. #define RCC_AHB1ENR_DMAMUX1EN_Msk (0x1UL << RCC_AHB1ENR_DMAMUX1EN_Pos)/*!< 0x00000004 */
  11277. #define RCC_AHB1ENR_DMAMUX1EN RCC_AHB1ENR_DMAMUX1EN_Msk
  11278. #define RCC_AHB1ENR_FLASHEN_Pos (8U)
  11279. #define RCC_AHB1ENR_FLASHEN_Msk (0x1UL << RCC_AHB1ENR_FLASHEN_Pos)/*!< 0x00000100 */
  11280. #define RCC_AHB1ENR_FLASHEN RCC_AHB1ENR_FLASHEN_Msk
  11281. #define RCC_AHB1ENR_CRCEN_Pos (12U)
  11282. #define RCC_AHB1ENR_CRCEN_Msk (0x1UL << RCC_AHB1ENR_CRCEN_Pos) /*!< 0x00001000 */
  11283. #define RCC_AHB1ENR_CRCEN RCC_AHB1ENR_CRCEN_Msk
  11284. #define RCC_AHB1ENR_TSCEN_Pos (16U)
  11285. #define RCC_AHB1ENR_TSCEN_Msk (0x1UL << RCC_AHB1ENR_TSCEN_Pos) /*!< 0x00010000 */
  11286. #define RCC_AHB1ENR_TSCEN RCC_AHB1ENR_TSCEN_Msk
  11287. #define RCC_AHB1ENR_GTZCEN_Pos (22U)
  11288. #define RCC_AHB1ENR_GTZCEN_Msk (0x1UL << RCC_AHB1ENR_GTZCEN_Pos)/*!< 0x00400000 */
  11289. #define RCC_AHB1ENR_GTZCEN RCC_AHB1ENR_GTZCEN_Msk
  11290. /******************** Bit definition for RCC_AHB2ENR register ***************/
  11291. #define RCC_AHB2ENR_GPIOAEN_Pos (0U)
  11292. #define RCC_AHB2ENR_GPIOAEN_Msk (0x1UL << RCC_AHB2ENR_GPIOAEN_Pos)/*!< 0x00000001 */
  11293. #define RCC_AHB2ENR_GPIOAEN RCC_AHB2ENR_GPIOAEN_Msk
  11294. #define RCC_AHB2ENR_GPIOBEN_Pos (1U)
  11295. #define RCC_AHB2ENR_GPIOBEN_Msk (0x1UL << RCC_AHB2ENR_GPIOBEN_Pos)/*!< 0x00000002 */
  11296. #define RCC_AHB2ENR_GPIOBEN RCC_AHB2ENR_GPIOBEN_Msk
  11297. #define RCC_AHB2ENR_GPIOCEN_Pos (2U)
  11298. #define RCC_AHB2ENR_GPIOCEN_Msk (0x1UL << RCC_AHB2ENR_GPIOCEN_Pos)/*!< 0x00000004 */
  11299. #define RCC_AHB2ENR_GPIOCEN RCC_AHB2ENR_GPIOCEN_Msk
  11300. #define RCC_AHB2ENR_GPIODEN_Pos (3U)
  11301. #define RCC_AHB2ENR_GPIODEN_Msk (0x1UL << RCC_AHB2ENR_GPIODEN_Pos)/*!< 0x00000008 */
  11302. #define RCC_AHB2ENR_GPIODEN RCC_AHB2ENR_GPIODEN_Msk
  11303. #define RCC_AHB2ENR_GPIOEEN_Pos (4U)
  11304. #define RCC_AHB2ENR_GPIOEEN_Msk (0x1UL << RCC_AHB2ENR_GPIOEEN_Pos)/*!< 0x00000010 */
  11305. #define RCC_AHB2ENR_GPIOEEN RCC_AHB2ENR_GPIOEEN_Msk
  11306. #define RCC_AHB2ENR_GPIOFEN_Pos (5U)
  11307. #define RCC_AHB2ENR_GPIOFEN_Msk (0x1UL << RCC_AHB2ENR_GPIOFEN_Pos)/*!< 0x00000020 */
  11308. #define RCC_AHB2ENR_GPIOFEN RCC_AHB2ENR_GPIOFEN_Msk
  11309. #define RCC_AHB2ENR_GPIOGEN_Pos (6U)
  11310. #define RCC_AHB2ENR_GPIOGEN_Msk (0x1UL << RCC_AHB2ENR_GPIOGEN_Pos)/*!< 0x00000040 */
  11311. #define RCC_AHB2ENR_GPIOGEN RCC_AHB2ENR_GPIOGEN_Msk
  11312. #define RCC_AHB2ENR_GPIOHEN_Pos (7U)
  11313. #define RCC_AHB2ENR_GPIOHEN_Msk (0x1UL << RCC_AHB2ENR_GPIOHEN_Pos)/*!< 0x00000080 */
  11314. #define RCC_AHB2ENR_GPIOHEN RCC_AHB2ENR_GPIOHEN_Msk
  11315. #define RCC_AHB2ENR_ADCEN_Pos (13U)
  11316. #define RCC_AHB2ENR_ADCEN_Msk (0x1UL << RCC_AHB2ENR_ADCEN_Pos) /*!< 0x00002000 */
  11317. #define RCC_AHB2ENR_ADCEN RCC_AHB2ENR_ADCEN_Msk
  11318. #define RCC_AHB2ENR_AESEN_Pos (16U)
  11319. #define RCC_AHB2ENR_AESEN_Msk (0x1UL << RCC_AHB2ENR_AESEN_Pos) /*!< 0x00010000 */
  11320. #define RCC_AHB2ENR_AESEN RCC_AHB2ENR_AESEN_Msk
  11321. #define RCC_AHB2ENR_HASHEN_Pos (17U)
  11322. #define RCC_AHB2ENR_HASHEN_Msk (0x1UL << RCC_AHB2ENR_HASHEN_Pos) /*!< 0x00020000 */
  11323. #define RCC_AHB2ENR_HASHEN RCC_AHB2ENR_HASHEN_Msk
  11324. #define RCC_AHB2ENR_RNGEN_Pos (18U)
  11325. #define RCC_AHB2ENR_RNGEN_Msk (0x1UL << RCC_AHB2ENR_RNGEN_Pos) /*!< 0x00040000 */
  11326. #define RCC_AHB2ENR_RNGEN RCC_AHB2ENR_RNGEN_Msk
  11327. #define RCC_AHB2ENR_PKAEN_Pos (19U)
  11328. #define RCC_AHB2ENR_PKAEN_Msk (0x1UL << RCC_AHB2ENR_PKAEN_Pos)/*!< 0x00080000 */
  11329. #define RCC_AHB2ENR_PKAEN RCC_AHB2ENR_PKAEN_Msk
  11330. #define RCC_AHB2ENR_OTFDEC1EN_Pos (21U)
  11331. #define RCC_AHB2ENR_OTFDEC1EN_Msk (0x1UL << RCC_AHB2ENR_OTFDEC1EN_Pos)/*!< 0x00200000 */
  11332. #define RCC_AHB2ENR_OTFDEC1EN RCC_AHB2ENR_OTFDEC1EN_Msk
  11333. #define RCC_AHB2ENR_SDMMC1EN_Pos (22U)
  11334. #define RCC_AHB2ENR_SDMMC1EN_Msk (0x1UL << RCC_AHB2ENR_SDMMC1EN_Pos)/*!< 0x00400000 */
  11335. #define RCC_AHB2ENR_SDMMC1EN RCC_AHB2ENR_SDMMC1EN_Msk
  11336. /******************** Bit definition for RCC_AHB3ENR register ***************/
  11337. #define RCC_AHB3ENR_FMCEN_Pos (0U)
  11338. #define RCC_AHB3ENR_FMCEN_Msk (0x1UL << RCC_AHB3ENR_FMCEN_Pos) /*!< 0x00000001 */
  11339. #define RCC_AHB3ENR_FMCEN RCC_AHB3ENR_FMCEN_Msk
  11340. #define RCC_AHB3ENR_OSPI1EN_Pos (8U)
  11341. #define RCC_AHB3ENR_OSPI1EN_Msk (0x1UL << RCC_AHB3ENR_OSPI1EN_Pos)/*!< 0x00000100 */
  11342. #define RCC_AHB3ENR_OSPI1EN RCC_AHB3ENR_OSPI1EN_Msk
  11343. /******************** Bit definition for RCC_APB1ENR1 register ***************/
  11344. #define RCC_APB1ENR1_TIM2EN_Pos (0U)
  11345. #define RCC_APB1ENR1_TIM2EN_Msk (0x1UL << RCC_APB1ENR1_TIM2EN_Pos)/*!< 0x00000001 */
  11346. #define RCC_APB1ENR1_TIM2EN RCC_APB1ENR1_TIM2EN_Msk
  11347. #define RCC_APB1ENR1_TIM3EN_Pos (1U)
  11348. #define RCC_APB1ENR1_TIM3EN_Msk (0x1UL << RCC_APB1ENR1_TIM3EN_Pos)/*!< 0x00000002 */
  11349. #define RCC_APB1ENR1_TIM3EN RCC_APB1ENR1_TIM3EN_Msk
  11350. #define RCC_APB1ENR1_TIM4EN_Pos (2U)
  11351. #define RCC_APB1ENR1_TIM4EN_Msk (0x1UL << RCC_APB1ENR1_TIM4EN_Pos)/*!< 0x00000004 */
  11352. #define RCC_APB1ENR1_TIM4EN RCC_APB1ENR1_TIM4EN_Msk
  11353. #define RCC_APB1ENR1_TIM5EN_Pos (3U)
  11354. #define RCC_APB1ENR1_TIM5EN_Msk (0x1UL << RCC_APB1ENR1_TIM5EN_Pos)/*!< 0x00000008 */
  11355. #define RCC_APB1ENR1_TIM5EN RCC_APB1ENR1_TIM5EN_Msk
  11356. #define RCC_APB1ENR1_TIM6EN_Pos (4U)
  11357. #define RCC_APB1ENR1_TIM6EN_Msk (0x1UL << RCC_APB1ENR1_TIM6EN_Pos)/*!< 0x00000010 */
  11358. #define RCC_APB1ENR1_TIM6EN RCC_APB1ENR1_TIM6EN_Msk
  11359. #define RCC_APB1ENR1_TIM7EN_Pos (5U)
  11360. #define RCC_APB1ENR1_TIM7EN_Msk (0x1UL << RCC_APB1ENR1_TIM7EN_Pos)/*!< 0x00000020 */
  11361. #define RCC_APB1ENR1_TIM7EN RCC_APB1ENR1_TIM7EN_Msk
  11362. #define RCC_APB1ENR1_RTCAPBEN_Pos (10U)
  11363. #define RCC_APB1ENR1_RTCAPBEN_Msk (0x1UL << RCC_APB1ENR1_RTCAPBEN_Pos)/*!< 0x00000400 */
  11364. #define RCC_APB1ENR1_RTCAPBEN RCC_APB1ENR1_RTCAPBEN_Msk
  11365. #define RCC_APB1ENR1_WWDGEN_Pos (11U)
  11366. #define RCC_APB1ENR1_WWDGEN_Msk (0x1UL << RCC_APB1ENR1_WWDGEN_Pos)/*!< 0x00000800 */
  11367. #define RCC_APB1ENR1_WWDGEN RCC_APB1ENR1_WWDGEN_Msk
  11368. #define RCC_APB1ENR1_SPI2EN_Pos (14U)
  11369. #define RCC_APB1ENR1_SPI2EN_Msk (0x1UL << RCC_APB1ENR1_SPI2EN_Pos)/*!< 0x00004000 */
  11370. #define RCC_APB1ENR1_SPI2EN RCC_APB1ENR1_SPI2EN_Msk
  11371. #define RCC_APB1ENR1_SPI3EN_Pos (15U)
  11372. #define RCC_APB1ENR1_SPI3EN_Msk (0x1UL << RCC_APB1ENR1_SPI3EN_Pos)/*!< 0x00008000 */
  11373. #define RCC_APB1ENR1_SPI3EN RCC_APB1ENR1_SPI3EN_Msk
  11374. #define RCC_APB1ENR1_USART2EN_Pos (17U)
  11375. #define RCC_APB1ENR1_USART2EN_Msk (0x1UL << RCC_APB1ENR1_USART2EN_Pos)/*!< 0x00020000 */
  11376. #define RCC_APB1ENR1_USART2EN RCC_APB1ENR1_USART2EN_Msk
  11377. #define RCC_APB1ENR1_USART3EN_Pos (18U)
  11378. #define RCC_APB1ENR1_USART3EN_Msk (0x1UL << RCC_APB1ENR1_USART3EN_Pos)/*!< 0x00040000 */
  11379. #define RCC_APB1ENR1_USART3EN RCC_APB1ENR1_USART3EN_Msk
  11380. #define RCC_APB1ENR1_UART4EN_Pos (19U)
  11381. #define RCC_APB1ENR1_UART4EN_Msk (0x1UL << RCC_APB1ENR1_UART4EN_Pos)/*!< 0x00080000 */
  11382. #define RCC_APB1ENR1_UART4EN RCC_APB1ENR1_UART4EN_Msk
  11383. #define RCC_APB1ENR1_UART5EN_Pos (20U)
  11384. #define RCC_APB1ENR1_UART5EN_Msk (0x1UL << RCC_APB1ENR1_UART5EN_Pos)/*!< 0x00100000 */
  11385. #define RCC_APB1ENR1_UART5EN RCC_APB1ENR1_UART5EN_Msk
  11386. #define RCC_APB1ENR1_I2C1EN_Pos (21U)
  11387. #define RCC_APB1ENR1_I2C1EN_Msk (0x1UL << RCC_APB1ENR1_I2C1EN_Pos)/*!< 0x00200000 */
  11388. #define RCC_APB1ENR1_I2C1EN RCC_APB1ENR1_I2C1EN_Msk
  11389. #define RCC_APB1ENR1_I2C2EN_Pos (22U)
  11390. #define RCC_APB1ENR1_I2C2EN_Msk (0x1UL << RCC_APB1ENR1_I2C2EN_Pos)/*!< 0x00400000 */
  11391. #define RCC_APB1ENR1_I2C2EN RCC_APB1ENR1_I2C2EN_Msk
  11392. #define RCC_APB1ENR1_I2C3EN_Pos (23U)
  11393. #define RCC_APB1ENR1_I2C3EN_Msk (0x1UL << RCC_APB1ENR1_I2C3EN_Pos)/*!< 0x00800000 */
  11394. #define RCC_APB1ENR1_I2C3EN RCC_APB1ENR1_I2C3EN_Msk
  11395. #define RCC_APB1ENR1_CRSEN_Pos (24U)
  11396. #define RCC_APB1ENR1_CRSEN_Msk (0x1UL << RCC_APB1ENR1_CRSEN_Pos) /*!< 0x01000000 */
  11397. #define RCC_APB1ENR1_CRSEN RCC_APB1ENR1_CRSEN_Msk
  11398. #define RCC_APB1ENR1_PWREN_Pos (28U)
  11399. #define RCC_APB1ENR1_PWREN_Msk (0x1UL << RCC_APB1ENR1_PWREN_Pos) /*!< 0x10000000 */
  11400. #define RCC_APB1ENR1_PWREN RCC_APB1ENR1_PWREN_Msk
  11401. #define RCC_APB1ENR1_DAC1EN_Pos (29U)
  11402. #define RCC_APB1ENR1_DAC1EN_Msk (0x1UL << RCC_APB1ENR1_DAC1EN_Pos)/*!< 0x20000000 */
  11403. #define RCC_APB1ENR1_DAC1EN RCC_APB1ENR1_DAC1EN_Msk
  11404. #define RCC_APB1ENR1_OPAMPEN_Pos (30U)
  11405. #define RCC_APB1ENR1_OPAMPEN_Msk (0x1UL << RCC_APB1ENR1_OPAMPEN_Pos)/*!< 0x40000000 */
  11406. #define RCC_APB1ENR1_OPAMPEN RCC_APB1ENR1_OPAMPEN_Msk
  11407. #define RCC_APB1ENR1_LPTIM1EN_Pos (31U)
  11408. #define RCC_APB1ENR1_LPTIM1EN_Msk (0x1UL << RCC_APB1ENR1_LPTIM1EN_Pos)/*!< 0x80000000 */
  11409. #define RCC_APB1ENR1_LPTIM1EN RCC_APB1ENR1_LPTIM1EN_Msk
  11410. /******************** Bit definition for RCC_APB1RSTR2 register **************/
  11411. #define RCC_APB1ENR2_LPUART1EN_Pos (0U)
  11412. #define RCC_APB1ENR2_LPUART1EN_Msk (0x1UL << RCC_APB1ENR2_LPUART1EN_Pos)/*!< 0x00000001 */
  11413. #define RCC_APB1ENR2_LPUART1EN RCC_APB1ENR2_LPUART1EN_Msk
  11414. #define RCC_APB1ENR2_I2C4EN_Pos (1U)
  11415. #define RCC_APB1ENR2_I2C4EN_Msk (0x1UL << RCC_APB1ENR2_I2C4EN_Pos)/*!< 0x00000002 */
  11416. #define RCC_APB1ENR2_I2C4EN RCC_APB1ENR2_I2C4EN_Msk
  11417. #define RCC_APB1ENR2_LPTIM2EN_Pos (5U)
  11418. #define RCC_APB1ENR2_LPTIM2EN_Msk (0x1UL << RCC_APB1ENR2_LPTIM2EN_Pos)/*!< 0x00000020 */
  11419. #define RCC_APB1ENR2_LPTIM2EN RCC_APB1ENR2_LPTIM2EN_Msk
  11420. #define RCC_APB1ENR2_LPTIM3EN_Pos (6U)
  11421. #define RCC_APB1ENR2_LPTIM3EN_Msk (0x1UL << RCC_APB1ENR2_LPTIM3EN_Pos)/*!< 0x00000040 */
  11422. #define RCC_APB1ENR2_LPTIM3EN RCC_APB1ENR2_LPTIM3EN_Msk
  11423. #define RCC_APB1ENR2_FDCAN1EN_Pos (9U)
  11424. #define RCC_APB1ENR2_FDCAN1EN_Msk (0x1UL << RCC_APB1ENR2_FDCAN1EN_Pos)/*!< 0x00000200 */
  11425. #define RCC_APB1ENR2_FDCAN1EN RCC_APB1ENR2_FDCAN1EN_Msk
  11426. #define RCC_APB1ENR2_USBFSEN_Pos (21U)
  11427. #define RCC_APB1ENR2_USBFSEN_Msk (0x1UL << RCC_APB1ENR2_USBFSEN_Pos)/*!< 0x00200000 */
  11428. #define RCC_APB1ENR2_USBFSEN RCC_APB1ENR2_USBFSEN_Msk
  11429. #define RCC_APB1ENR2_UCPD1EN_Pos (23U)
  11430. #define RCC_APB1ENR2_UCPD1EN_Msk (0x1UL << RCC_APB1ENR2_UCPD1EN_Pos)/*!< 0x00800000 */
  11431. #define RCC_APB1ENR2_UCPD1EN RCC_APB1ENR2_UCPD1EN_Msk
  11432. /******************** Bit definition for RCC_APB2ENR register ***************/
  11433. #define RCC_APB2ENR_SYSCFGEN_Pos (0U)
  11434. #define RCC_APB2ENR_SYSCFGEN_Msk (0x1UL << RCC_APB2ENR_SYSCFGEN_Pos)/*!< 0x00000001 */
  11435. #define RCC_APB2ENR_SYSCFGEN RCC_APB2ENR_SYSCFGEN_Msk
  11436. #define RCC_APB2ENR_TIM1EN_Pos (11U)
  11437. #define RCC_APB2ENR_TIM1EN_Msk (0x1UL << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */
  11438. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk
  11439. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  11440. #define RCC_APB2ENR_SPI1EN_Msk (0x1UL << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  11441. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk
  11442. #define RCC_APB2ENR_TIM8EN_Pos (13U)
  11443. #define RCC_APB2ENR_TIM8EN_Msk (0x1UL << RCC_APB2ENR_TIM8EN_Pos) /*!< 0x00002000 */
  11444. #define RCC_APB2ENR_TIM8EN RCC_APB2ENR_TIM8EN_Msk
  11445. #define RCC_APB2ENR_USART1EN_Pos (14U)
  11446. #define RCC_APB2ENR_USART1EN_Msk (0x1UL << RCC_APB2ENR_USART1EN_Pos)/*!< 0x00004000 */
  11447. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk
  11448. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  11449. #define RCC_APB2ENR_TIM15EN_Msk (0x1UL << RCC_APB2ENR_TIM15EN_Pos)/*!< 0x00010000 */
  11450. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk
  11451. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  11452. #define RCC_APB2ENR_TIM16EN_Msk (0x1UL << RCC_APB2ENR_TIM16EN_Pos)/*!< 0x00020000 */
  11453. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk
  11454. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  11455. #define RCC_APB2ENR_TIM17EN_Msk (0x1UL << RCC_APB2ENR_TIM17EN_Pos)/*!< 0x00040000 */
  11456. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk
  11457. #define RCC_APB2ENR_SAI1EN_Pos (21U)
  11458. #define RCC_APB2ENR_SAI1EN_Msk (0x1UL << RCC_APB2ENR_SAI1EN_Pos) /*!< 0x00200000 */
  11459. #define RCC_APB2ENR_SAI1EN RCC_APB2ENR_SAI1EN_Msk
  11460. #define RCC_APB2ENR_SAI2EN_Pos (22U)
  11461. #define RCC_APB2ENR_SAI2EN_Msk (0x1UL << RCC_APB2ENR_SAI2EN_Pos) /*!< 0x00400000 */
  11462. #define RCC_APB2ENR_SAI2EN RCC_APB2ENR_SAI2EN_Msk
  11463. #define RCC_APB2ENR_DFSDM1EN_Pos (24U)
  11464. #define RCC_APB2ENR_DFSDM1EN_Msk (0x1UL << RCC_APB2ENR_DFSDM1EN_Pos)/*!< 0x01000000 */
  11465. #define RCC_APB2ENR_DFSDM1EN RCC_APB2ENR_DFSDM1EN_Msk
  11466. /******************** Bit definition for RCC_AHB1SMENR register ***************/
  11467. #define RCC_AHB1SMENR_DMA1SMEN_Pos (0U)
  11468. #define RCC_AHB1SMENR_DMA1SMEN_Msk (0x1UL << RCC_AHB1SMENR_DMA1SMEN_Pos)/*!< 0x00000001 */
  11469. #define RCC_AHB1SMENR_DMA1SMEN RCC_AHB1SMENR_DMA1SMEN_Msk
  11470. #define RCC_AHB1SMENR_DMA2SMEN_Pos (1U)
  11471. #define RCC_AHB1SMENR_DMA2SMEN_Msk (0x1UL << RCC_AHB1SMENR_DMA2SMEN_Pos)/*!< 0x00000002 */
  11472. #define RCC_AHB1SMENR_DMA2SMEN RCC_AHB1SMENR_DMA2SMEN_Msk
  11473. #define RCC_AHB1SMENR_DMAMUX1SMEN_Pos (2U)
  11474. #define RCC_AHB1SMENR_DMAMUX1SMEN_Msk (0x1UL << RCC_AHB1SMENR_DMAMUX1SMEN_Pos)/*!< 0x00000004 */
  11475. #define RCC_AHB1SMENR_DMAMUX1SMEN RCC_AHB1SMENR_DMAMUX1SMEN_Msk
  11476. #define RCC_AHB1SMENR_FLASHSMEN_Pos (8U)
  11477. #define RCC_AHB1SMENR_FLASHSMEN_Msk (0x1UL << RCC_AHB1SMENR_FLASHSMEN_Pos)/*!< 0x00000100 */
  11478. #define RCC_AHB1SMENR_FLASHSMEN RCC_AHB1SMENR_FLASHSMEN_Msk
  11479. #define RCC_AHB1SMENR_SRAM1SMEN_Pos (9U)
  11480. #define RCC_AHB1SMENR_SRAM1SMEN_Msk (0x1UL << RCC_AHB1SMENR_SRAM1SMEN_Pos)/*!< 0x00000200 */
  11481. #define RCC_AHB1SMENR_SRAM1SMEN RCC_AHB1SMENR_SRAM1SMEN_Msk
  11482. #define RCC_AHB1SMENR_CRCSMEN_Pos (12U)
  11483. #define RCC_AHB1SMENR_CRCSMEN_Msk (0x1UL << RCC_AHB1SMENR_CRCSMEN_Pos)/*!< 0x00001000 */
  11484. #define RCC_AHB1SMENR_CRCSMEN RCC_AHB1SMENR_CRCSMEN_Msk
  11485. #define RCC_AHB1SMENR_TSCSMEN_Pos (16U)
  11486. #define RCC_AHB1SMENR_TSCSMEN_Msk (0x1UL << RCC_AHB1SMENR_TSCSMEN_Pos)/*!< 0x00010000 */
  11487. #define RCC_AHB1SMENR_TSCSMEN RCC_AHB1SMENR_TSCSMEN_Msk
  11488. #define RCC_AHB1SMENR_GTZCSMEN_Pos (22U)
  11489. #define RCC_AHB1SMENR_GTZCSMEN_Msk (0x1UL << RCC_AHB1SMENR_GTZCSMEN_Pos)/*!< 0x00400000 */
  11490. #define RCC_AHB1SMENR_GTZCSMEN RCC_AHB1SMENR_GTZCSMEN_Msk
  11491. #define RCC_AHB1SMENR_ICACHESMEN_Pos (23U)
  11492. #define RCC_AHB1SMENR_ICACHESMEN_Msk (0x1UL << RCC_AHB1SMENR_ICACHESMEN_Pos)/*!< 0x00600000 */
  11493. #define RCC_AHB1SMENR_ICACHESMEN RCC_AHB1SMENR_ICACHESMEN_Msk
  11494. /******************** Bit definition for RCC_AHB2SMENR register *************/
  11495. #define RCC_AHB2SMENR_GPIOASMEN_Pos (0U)
  11496. #define RCC_AHB2SMENR_GPIOASMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOASMEN_Pos)/*!< 0x00000001 */
  11497. #define RCC_AHB2SMENR_GPIOASMEN RCC_AHB2SMENR_GPIOASMEN_Msk
  11498. #define RCC_AHB2SMENR_GPIOBSMEN_Pos (1U)
  11499. #define RCC_AHB2SMENR_GPIOBSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOBSMEN_Pos)/*!< 0x00000002 */
  11500. #define RCC_AHB2SMENR_GPIOBSMEN RCC_AHB2SMENR_GPIOBSMEN_Msk
  11501. #define RCC_AHB2SMENR_GPIOCSMEN_Pos (2U)
  11502. #define RCC_AHB2SMENR_GPIOCSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOCSMEN_Pos)/*!< 0x00000004 */
  11503. #define RCC_AHB2SMENR_GPIOCSMEN RCC_AHB2SMENR_GPIOCSMEN_Msk
  11504. #define RCC_AHB2SMENR_GPIODSMEN_Pos (3U)
  11505. #define RCC_AHB2SMENR_GPIODSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIODSMEN_Pos)/*!< 0x00000008 */
  11506. #define RCC_AHB2SMENR_GPIODSMEN RCC_AHB2SMENR_GPIODSMEN_Msk
  11507. #define RCC_AHB2SMENR_GPIOESMEN_Pos (4U)
  11508. #define RCC_AHB2SMENR_GPIOESMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOESMEN_Pos)/*!< 0x00000010 */
  11509. #define RCC_AHB2SMENR_GPIOESMEN RCC_AHB2SMENR_GPIOESMEN_Msk
  11510. #define RCC_AHB2SMENR_GPIOFSMEN_Pos (5U)
  11511. #define RCC_AHB2SMENR_GPIOFSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOFSMEN_Pos)/*!< 0x00000020 */
  11512. #define RCC_AHB2SMENR_GPIOFSMEN RCC_AHB2SMENR_GPIOFSMEN_Msk
  11513. #define RCC_AHB2SMENR_GPIOGSMEN_Pos (6U)
  11514. #define RCC_AHB2SMENR_GPIOGSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOGSMEN_Pos)/*!< 0x00000040 */
  11515. #define RCC_AHB2SMENR_GPIOGSMEN RCC_AHB2SMENR_GPIOGSMEN_Msk
  11516. #define RCC_AHB2SMENR_GPIOHSMEN_Pos (7U)
  11517. #define RCC_AHB2SMENR_GPIOHSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOHSMEN_Pos)/*!< 0x00000080 */
  11518. #define RCC_AHB2SMENR_GPIOHSMEN RCC_AHB2SMENR_GPIOHSMEN_Msk
  11519. #define RCC_AHB2SMENR_SRAM2SMEN_Pos (9U)
  11520. #define RCC_AHB2SMENR_SRAM2SMEN_Msk (0x1UL << RCC_AHB2SMENR_SRAM2SMEN_Pos)/*!< 0x00000200 */
  11521. #define RCC_AHB2SMENR_SRAM2SMEN RCC_AHB2SMENR_SRAM2SMEN_Msk
  11522. #define RCC_AHB2SMENR_ADCSMEN_Pos (13U)
  11523. #define RCC_AHB2SMENR_ADCSMEN_Msk (0x1UL << RCC_AHB2SMENR_ADCSMEN_Pos)/*!< 0x00002000 */
  11524. #define RCC_AHB2SMENR_ADCSMEN RCC_AHB2SMENR_ADCSMEN_Msk
  11525. #define RCC_AHB2SMENR_AESSMEN_Pos (16U)
  11526. #define RCC_AHB2SMENR_AESSMEN_Msk (0x1UL << RCC_AHB2SMENR_AESSMEN_Pos)/*!< 0x00010000 */
  11527. #define RCC_AHB2SMENR_AESSMEN RCC_AHB2SMENR_AESSMEN_Msk
  11528. #define RCC_AHB2SMENR_HASHSMEN_Pos (17U)
  11529. #define RCC_AHB2SMENR_HASHSMEN_Msk (0x1UL << RCC_AHB2SMENR_HASHSMEN_Pos)/*!< 0x00020000 */
  11530. #define RCC_AHB2SMENR_HASHSMEN RCC_AHB2SMENR_HASHSMEN_Msk
  11531. #define RCC_AHB2SMENR_RNGSMEN_Pos (18U)
  11532. #define RCC_AHB2SMENR_RNGSMEN_Msk (0x1UL << RCC_AHB2SMENR_RNGSMEN_Pos)/*!< 0x00040000 */
  11533. #define RCC_AHB2SMENR_RNGSMEN RCC_AHB2SMENR_RNGSMEN_Msk
  11534. #define RCC_AHB2SMENR_PKASMEN_Pos (19U)
  11535. #define RCC_AHB2SMENR_PKASMEN_Msk (0x1UL << RCC_AHB2SMENR_PKASMEN_Pos)/*!< 0x00080000 */
  11536. #define RCC_AHB2SMENR_PKASMEN RCC_AHB2SMENR_PKASMEN_Msk
  11537. #define RCC_AHB2SMENR_OTFDEC1SMEN_Pos (21U)
  11538. #define RCC_AHB2SMENR_OTFDEC1SMEN_Msk (0x1UL << RCC_AHB2SMENR_OTFDEC1SMEN_Pos)/*!< 0x00200000 */
  11539. #define RCC_AHB2SMENR_OTFDEC1SMEN RCC_AHB2SMENR_OTFDEC1SMEN_Msk
  11540. #define RCC_AHB2SMENR_SDMMC1SMEN_Pos (22U)
  11541. #define RCC_AHB2SMENR_SDMMC1SMEN_Msk (0x1UL << RCC_AHB2SMENR_SDMMC1SMEN_Pos)/*!< 0x00400000 */
  11542. #define RCC_AHB2SMENR_SDMMC1SMEN RCC_AHB2SMENR_SDMMC1SMEN_Msk
  11543. /******************** Bit definition for RCC_AHB3SMENR register *************/
  11544. #define RCC_AHB3SMENR_FMCSMEN_Pos (0U)
  11545. #define RCC_AHB3SMENR_FMCSMEN_Msk (0x1UL << RCC_AHB3SMENR_FMCSMEN_Pos)/*!< 0x00000001 */
  11546. #define RCC_AHB3SMENR_FMCSMEN RCC_AHB3SMENR_FMCSMEN_Msk
  11547. #define RCC_AHB3SMENR_OSPI1SMEN_Pos (8U)
  11548. #define RCC_AHB3SMENR_OSPI1SMEN_Msk (0x1UL << RCC_AHB3SMENR_OSPI1SMEN_Pos)/*!< 0x00000100 */
  11549. #define RCC_AHB3SMENR_OSPI1SMEN RCC_AHB3SMENR_OSPI1SMEN_Msk
  11550. /******************** Bit definition for RCC_APB1SMENR1 register *************/
  11551. #define RCC_APB1SMENR1_TIM2SMEN_Pos (0U)
  11552. #define RCC_APB1SMENR1_TIM2SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM2SMEN_Pos)/*!< 0x00000001 */
  11553. #define RCC_APB1SMENR1_TIM2SMEN RCC_APB1SMENR1_TIM2SMEN_Msk
  11554. #define RCC_APB1SMENR1_TIM3SMEN_Pos (1U)
  11555. #define RCC_APB1SMENR1_TIM3SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM3SMEN_Pos)/*!< 0x00000002 */
  11556. #define RCC_APB1SMENR1_TIM3SMEN RCC_APB1SMENR1_TIM3SMEN_Msk
  11557. #define RCC_APB1SMENR1_TIM4SMEN_Pos (2U)
  11558. #define RCC_APB1SMENR1_TIM4SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM4SMEN_Pos)/*!< 0x00000004 */
  11559. #define RCC_APB1SMENR1_TIM4SMEN RCC_APB1SMENR1_TIM4SMEN_Msk
  11560. #define RCC_APB1SMENR1_TIM5SMEN_Pos (3U)
  11561. #define RCC_APB1SMENR1_TIM5SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM5SMEN_Pos)/*!< 0x00000008 */
  11562. #define RCC_APB1SMENR1_TIM5SMEN RCC_APB1SMENR1_TIM5SMEN_Msk
  11563. #define RCC_APB1SMENR1_TIM6SMEN_Pos (4U)
  11564. #define RCC_APB1SMENR1_TIM6SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM6SMEN_Pos)/*!< 0x00000010 */
  11565. #define RCC_APB1SMENR1_TIM6SMEN RCC_APB1SMENR1_TIM6SMEN_Msk
  11566. #define RCC_APB1SMENR1_TIM7SMEN_Pos (5U)
  11567. #define RCC_APB1SMENR1_TIM7SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM7SMEN_Pos)/*!< 0x00000020 */
  11568. #define RCC_APB1SMENR1_TIM7SMEN RCC_APB1SMENR1_TIM7SMEN_Msk
  11569. #define RCC_APB1SMENR1_RTCAPBSMEN_Pos (10U)
  11570. #define RCC_APB1SMENR1_RTCAPBSMEN_Msk (0x1UL << RCC_APB1SMENR1_RTCAPBSMEN_Pos)/*!< 0x00000400 */
  11571. #define RCC_APB1SMENR1_RTCAPBSMEN RCC_APB1SMENR1_RTCAPBSMEN_Msk
  11572. #define RCC_APB1SMENR1_WWDGSMEN_Pos (11U)
  11573. #define RCC_APB1SMENR1_WWDGSMEN_Msk (0x1UL << RCC_APB1SMENR1_WWDGSMEN_Pos)/*!< 0x00000800 */
  11574. #define RCC_APB1SMENR1_WWDGSMEN RCC_APB1SMENR1_WWDGSMEN_Msk
  11575. #define RCC_APB1SMENR1_SPI2SMEN_Pos (14U)
  11576. #define RCC_APB1SMENR1_SPI2SMEN_Msk (0x1UL << RCC_APB1SMENR1_SPI2SMEN_Pos)/*!< 0x00004000 */
  11577. #define RCC_APB1SMENR1_SPI2SMEN RCC_APB1SMENR1_SPI2SMEN_Msk
  11578. #define RCC_APB1SMENR1_SPI3SMEN_Pos (15U)
  11579. #define RCC_APB1SMENR1_SPI3SMEN_Msk (0x1UL << RCC_APB1SMENR1_SPI3SMEN_Pos)/*!< 0x00008000 */
  11580. #define RCC_APB1SMENR1_SPI3SMEN RCC_APB1SMENR1_SPI3SMEN_Msk
  11581. #define RCC_APB1SMENR1_USART2SMEN_Pos (17U)
  11582. #define RCC_APB1SMENR1_USART2SMEN_Msk (0x1UL << RCC_APB1SMENR1_USART2SMEN_Pos)/*!< 0x00020000 */
  11583. #define RCC_APB1SMENR1_USART2SMEN RCC_APB1SMENR1_USART2SMEN_Msk
  11584. #define RCC_APB1SMENR1_USART3SMEN_Pos (18U)
  11585. #define RCC_APB1SMENR1_USART3SMEN_Msk (0x1UL << RCC_APB1SMENR1_USART3SMEN_Pos)/*!< 0x00040000 */
  11586. #define RCC_APB1SMENR1_USART3SMEN RCC_APB1SMENR1_USART3SMEN_Msk
  11587. #define RCC_APB1SMENR1_UART4SMEN_Pos (19U)
  11588. #define RCC_APB1SMENR1_UART4SMEN_Msk (0x1UL << RCC_APB1SMENR1_UART4SMEN_Pos)/*!< 0x00080000 */
  11589. #define RCC_APB1SMENR1_UART4SMEN RCC_APB1SMENR1_UART4SMEN_Msk
  11590. #define RCC_APB1SMENR1_UART5SMEN_Pos (20U)
  11591. #define RCC_APB1SMENR1_UART5SMEN_Msk (0x1UL << RCC_APB1SMENR1_UART5SMEN_Pos)/*!< 0x00100000 */
  11592. #define RCC_APB1SMENR1_UART5SMEN RCC_APB1SMENR1_UART5SMEN_Msk
  11593. #define RCC_APB1SMENR1_I2C1SMEN_Pos (21U)
  11594. #define RCC_APB1SMENR1_I2C1SMEN_Msk (0x1UL << RCC_APB1SMENR1_I2C1SMEN_Pos)/*!< 0x00200000 */
  11595. #define RCC_APB1SMENR1_I2C1SMEN RCC_APB1SMENR1_I2C1SMEN_Msk
  11596. #define RCC_APB1SMENR1_I2C2SMEN_Pos (22U)
  11597. #define RCC_APB1SMENR1_I2C2SMEN_Msk (0x1UL << RCC_APB1SMENR1_I2C2SMEN_Pos)/*!< 0x00400000 */
  11598. #define RCC_APB1SMENR1_I2C2SMEN RCC_APB1SMENR1_I2C2SMEN_Msk
  11599. #define RCC_APB1SMENR1_I2C3SMEN_Pos (23U)
  11600. #define RCC_APB1SMENR1_I2C3SMEN_Msk (0x1UL << RCC_APB1SMENR1_I2C3SMEN_Pos)/*!< 0x00800000 */
  11601. #define RCC_APB1SMENR1_I2C3SMEN RCC_APB1SMENR1_I2C3SMEN_Msk
  11602. #define RCC_APB1SMENR1_CRSSMEN_Pos (24U)
  11603. #define RCC_APB1SMENR1_CRSSMEN_Msk (0x1UL << RCC_APB1SMENR1_CRSSMEN_Pos)/*!< 0x01000000 */
  11604. #define RCC_APB1SMENR1_CRSSMEN RCC_APB1SMENR1_CRSSMEN_Msk
  11605. #define RCC_APB1SMENR1_PWRSMEN_Pos (28U)
  11606. #define RCC_APB1SMENR1_PWRSMEN_Msk (0x1UL << RCC_APB1SMENR1_PWRSMEN_Pos)/*!< 0x10000000 */
  11607. #define RCC_APB1SMENR1_PWRSMEN RCC_APB1SMENR1_PWRSMEN_Msk
  11608. #define RCC_APB1SMENR1_DAC1SMEN_Pos (29U)
  11609. #define RCC_APB1SMENR1_DAC1SMEN_Msk (0x1UL << RCC_APB1SMENR1_DAC1SMEN_Pos)/*!< 0x20000000 */
  11610. #define RCC_APB1SMENR1_DAC1SMEN RCC_APB1SMENR1_DAC1SMEN_Msk
  11611. #define RCC_APB1SMENR1_OPAMPSMEN_Pos (30U)
  11612. #define RCC_APB1SMENR1_OPAMPSMEN_Msk (0x1UL << RCC_APB1SMENR1_OPAMPSMEN_Pos)/*!< 0x40000000 */
  11613. #define RCC_APB1SMENR1_OPAMPSMEN RCC_APB1SMENR1_OPAMPSMEN_Msk
  11614. #define RCC_APB1SMENR1_LPTIM1SMEN_Pos (31U)
  11615. #define RCC_APB1SMENR1_LPTIM1SMEN_Msk (0x1UL << RCC_APB1SMENR1_LPTIM1SMEN_Pos)/*!< 0x80000000 */
  11616. #define RCC_APB1SMENR1_LPTIM1SMEN RCC_APB1SMENR1_LPTIM1SMEN_Msk
  11617. /******************** Bit definition for RCC_APB1SMENR2 register *************/
  11618. #define RCC_APB1SMENR2_LPUART1SMEN_Pos (0U)
  11619. #define RCC_APB1SMENR2_LPUART1SMEN_Msk (0x1UL << RCC_APB1SMENR2_LPUART1SMEN_Pos)/*!< 0x00000001 */
  11620. #define RCC_APB1SMENR2_LPUART1SMEN RCC_APB1SMENR2_LPUART1SMEN_Msk
  11621. #define RCC_APB1SMENR2_I2C4SMEN_Pos (1U)
  11622. #define RCC_APB1SMENR2_I2C4SMEN_Msk (0x1UL << RCC_APB1SMENR2_I2C4SMEN_Pos)/*!< 0x00000002 */
  11623. #define RCC_APB1SMENR2_I2C4SMEN RCC_APB1SMENR2_I2C4SMEN_Msk
  11624. #define RCC_APB1SMENR2_LPTIM2SMEN_Pos (5U)
  11625. #define RCC_APB1SMENR2_LPTIM2SMEN_Msk (0x1UL << RCC_APB1SMENR2_LPTIM2SMEN_Pos)/*!< 0x00000020 */
  11626. #define RCC_APB1SMENR2_LPTIM2SMEN RCC_APB1SMENR2_LPTIM2SMEN_Msk
  11627. #define RCC_APB1SMENR2_LPTIM3SMEN_Pos (6U)
  11628. #define RCC_APB1SMENR2_LPTIM3SMEN_Msk (0x1UL << RCC_APB1SMENR2_LPTIM3SMEN_Pos)/*!< 0x00000040 */
  11629. #define RCC_APB1SMENR2_LPTIM3SMEN RCC_APB1SMENR2_LPTIM3SMEN_Msk
  11630. #define RCC_APB1SMENR2_FDCAN1SMEN_Pos (9U)
  11631. #define RCC_APB1SMENR2_FDCAN1SMEN_Msk (0x1UL << RCC_APB1SMENR2_FDCAN1SMEN_Pos)/*!< 0x00000200 */
  11632. #define RCC_APB1SMENR2_FDCAN1SMEN RCC_APB1SMENR2_FDCAN1SMEN_Msk
  11633. #define RCC_APB1SMENR2_USBFSSMEN_Pos (21U)
  11634. #define RCC_APB1SMENR2_USBFSSMEN_Msk (0x1UL << RCC_APB1SMENR2_USBFSSMEN_Pos)/*!< 0x00200000 */
  11635. #define RCC_APB1SMENR2_USBFSSMEN RCC_APB1SMENR2_USBFSSMEN_Msk
  11636. #define RCC_APB1SMENR2_UCPD1SMEN_Pos (23U)
  11637. #define RCC_APB1SMENR2_UCPD1SMEN_Msk (0x1UL << RCC_APB1SMENR2_UCPD1SMEN_Pos)/*!< 0x00800000 */
  11638. #define RCC_APB1SMENR2_UCPD1SMEN RCC_APB1SMENR2_UCPD1SMEN_Msk
  11639. /******************** Bit definition for RCC_APB2SMENR register *************/
  11640. #define RCC_APB2SMENR_SYSCFGSMEN_Pos (0U)
  11641. #define RCC_APB2SMENR_SYSCFGSMEN_Msk (0x1UL << RCC_APB2SMENR_SYSCFGSMEN_Pos)/*!< 0x00000001 */
  11642. #define RCC_APB2SMENR_SYSCFGSMEN RCC_APB2SMENR_SYSCFGSMEN_Msk
  11643. #define RCC_APB2SMENR_TIM1SMEN_Pos (11U)
  11644. #define RCC_APB2SMENR_TIM1SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM1SMEN_Pos)/*!< 0x00000800 */
  11645. #define RCC_APB2SMENR_TIM1SMEN RCC_APB2SMENR_TIM1SMEN_Msk
  11646. #define RCC_APB2SMENR_SPI1SMEN_Pos (12U)
  11647. #define RCC_APB2SMENR_SPI1SMEN_Msk (0x1UL << RCC_APB2SMENR_SPI1SMEN_Pos)/*!< 0x00001000 */
  11648. #define RCC_APB2SMENR_SPI1SMEN RCC_APB2SMENR_SPI1SMEN_Msk
  11649. #define RCC_APB2SMENR_TIM8SMEN_Pos (13U)
  11650. #define RCC_APB2SMENR_TIM8SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM8SMEN_Pos)/*!< 0x00002000 */
  11651. #define RCC_APB2SMENR_TIM8SMEN RCC_APB2SMENR_TIM8SMEN_Msk
  11652. #define RCC_APB2SMENR_USART1SMEN_Pos (14U)
  11653. #define RCC_APB2SMENR_USART1SMEN_Msk (0x1UL << RCC_APB2SMENR_USART1SMEN_Pos)/*!< 0x00004000 */
  11654. #define RCC_APB2SMENR_USART1SMEN RCC_APB2SMENR_USART1SMEN_Msk
  11655. #define RCC_APB2SMENR_TIM15SMEN_Pos (16U)
  11656. #define RCC_APB2SMENR_TIM15SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM15SMEN_Pos)/*!< 0x00010000 */
  11657. #define RCC_APB2SMENR_TIM15SMEN RCC_APB2SMENR_TIM15SMEN_Msk
  11658. #define RCC_APB2SMENR_TIM16SMEN_Pos (17U)
  11659. #define RCC_APB2SMENR_TIM16SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM16SMEN_Pos)/*!< 0x00020000 */
  11660. #define RCC_APB2SMENR_TIM16SMEN RCC_APB2SMENR_TIM16SMEN_Msk
  11661. #define RCC_APB2SMENR_TIM17SMEN_Pos (18U)
  11662. #define RCC_APB2SMENR_TIM17SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM17SMEN_Pos)/*!< 0x00040000 */
  11663. #define RCC_APB2SMENR_TIM17SMEN RCC_APB2SMENR_TIM17SMEN_Msk
  11664. #define RCC_APB2SMENR_SAI1SMEN_Pos (21U)
  11665. #define RCC_APB2SMENR_SAI1SMEN_Msk (0x1UL << RCC_APB2SMENR_SAI1SMEN_Pos)/*!< 0x00200000 */
  11666. #define RCC_APB2SMENR_SAI1SMEN RCC_APB2SMENR_SAI1SMEN_Msk
  11667. #define RCC_APB2SMENR_SAI2SMEN_Pos (22U)
  11668. #define RCC_APB2SMENR_SAI2SMEN_Msk (0x1UL << RCC_APB2SMENR_SAI2SMEN_Pos)/*!< 0x00400000 */
  11669. #define RCC_APB2SMENR_SAI2SMEN RCC_APB2SMENR_SAI2SMEN_Msk
  11670. #define RCC_APB2SMENR_DFSDM1SMEN_Pos (24U)
  11671. #define RCC_APB2SMENR_DFSDM1SMEN_Msk (0x1UL << RCC_APB2SMENR_DFSDM1SMEN_Pos)/*!< 0x01000000 */
  11672. #define RCC_APB2SMENR_DFSDM1SMEN RCC_APB2SMENR_DFSDM1SMEN_Msk
  11673. /******************** Bit definition for RCC_CCIPR1 register ****************/
  11674. #define RCC_CCIPR1_USART1SEL_Pos (0U)
  11675. #define RCC_CCIPR1_USART1SEL_Msk (0x3UL << RCC_CCIPR1_USART1SEL_Pos)/*!< 0x00000003 */
  11676. #define RCC_CCIPR1_USART1SEL RCC_CCIPR1_USART1SEL_Msk
  11677. #define RCC_CCIPR1_USART1SEL_0 (0x1UL << RCC_CCIPR1_USART1SEL_Pos)/*!< 0x00000001 */
  11678. #define RCC_CCIPR1_USART1SEL_1 (0x2UL << RCC_CCIPR1_USART1SEL_Pos)/*!< 0x00000002 */
  11679. #define RCC_CCIPR1_USART2SEL_Pos (2U)
  11680. #define RCC_CCIPR1_USART2SEL_Msk (0x3UL << RCC_CCIPR1_USART2SEL_Pos)/*!< 0x0000000C */
  11681. #define RCC_CCIPR1_USART2SEL RCC_CCIPR1_USART2SEL_Msk
  11682. #define RCC_CCIPR1_USART2SEL_0 (0x1UL << RCC_CCIPR1_USART2SEL_Pos)/*!< 0x00000004 */
  11683. #define RCC_CCIPR1_USART2SEL_1 (0x2UL << RCC_CCIPR1_USART2SEL_Pos)/*!< 0x00000008 */
  11684. #define RCC_CCIPR1_USART3SEL_Pos (4U)
  11685. #define RCC_CCIPR1_USART3SEL_Msk (0x3UL << RCC_CCIPR1_USART3SEL_Pos)/*!< 0x00000030 */
  11686. #define RCC_CCIPR1_USART3SEL RCC_CCIPR1_USART3SEL_Msk
  11687. #define RCC_CCIPR1_USART3SEL_0 (0x1UL << RCC_CCIPR1_USART3SEL_Pos)/*!< 0x00000010 */
  11688. #define RCC_CCIPR1_USART3SEL_1 (0x2UL << RCC_CCIPR1_USART3SEL_Pos)/*!< 0x00000020 */
  11689. #define RCC_CCIPR1_UART4SEL_Pos (6U)
  11690. #define RCC_CCIPR1_UART4SEL_Msk (0x3UL << RCC_CCIPR1_UART4SEL_Pos) /*!< 0x000000C0 */
  11691. #define RCC_CCIPR1_UART4SEL RCC_CCIPR1_UART4SEL_Msk
  11692. #define RCC_CCIPR1_UART4SEL_0 (0x1UL << RCC_CCIPR1_UART4SEL_Pos) /*!< 0x00000040 */
  11693. #define RCC_CCIPR1_UART4SEL_1 (0x2UL << RCC_CCIPR1_UART4SEL_Pos) /*!< 0x00000080 */
  11694. #define RCC_CCIPR1_UART5SEL_Pos (8U)
  11695. #define RCC_CCIPR1_UART5SEL_Msk (0x3UL << RCC_CCIPR1_UART5SEL_Pos) /*!< 0x00000300 */
  11696. #define RCC_CCIPR1_UART5SEL RCC_CCIPR1_UART5SEL_Msk
  11697. #define RCC_CCIPR1_UART5SEL_0 (0x1UL << RCC_CCIPR1_UART5SEL_Pos) /*!< 0x00000100 */
  11698. #define RCC_CCIPR1_UART5SEL_1 (0x2UL << RCC_CCIPR1_UART5SEL_Pos) /*!< 0x00000200 */
  11699. #define RCC_CCIPR1_LPUART1SEL_Pos (10U)
  11700. #define RCC_CCIPR1_LPUART1SEL_Msk (0x3UL << RCC_CCIPR1_LPUART1SEL_Pos)/*!< 0x00000C00 */
  11701. #define RCC_CCIPR1_LPUART1SEL RCC_CCIPR1_LPUART1SEL_Msk
  11702. #define RCC_CCIPR1_LPUART1SEL_0 (0x1UL << RCC_CCIPR1_LPUART1SEL_Pos)/*!< 0x00000400 */
  11703. #define RCC_CCIPR1_LPUART1SEL_1 (0x2UL << RCC_CCIPR1_LPUART1SEL_Pos)/*!< 0x00000800 */
  11704. #define RCC_CCIPR1_I2C1SEL_Pos (12U)
  11705. #define RCC_CCIPR1_I2C1SEL_Msk (0x3UL << RCC_CCIPR1_I2C1SEL_Pos) /*!< 0x00003000 */
  11706. #define RCC_CCIPR1_I2C1SEL RCC_CCIPR1_I2C1SEL_Msk
  11707. #define RCC_CCIPR1_I2C1SEL_0 (0x1UL << RCC_CCIPR1_I2C1SEL_Pos) /*!< 0x00001000 */
  11708. #define RCC_CCIPR1_I2C1SEL_1 (0x2UL << RCC_CCIPR1_I2C1SEL_Pos) /*!< 0x00002000 */
  11709. #define RCC_CCIPR1_I2C2SEL_Pos (14U)
  11710. #define RCC_CCIPR1_I2C2SEL_Msk (0x3UL << RCC_CCIPR1_I2C2SEL_Pos) /*!< 0x0000C000 */
  11711. #define RCC_CCIPR1_I2C2SEL RCC_CCIPR1_I2C2SEL_Msk
  11712. #define RCC_CCIPR1_I2C2SEL_0 (0x1UL << RCC_CCIPR1_I2C2SEL_Pos) /*!< 0x00004000 */
  11713. #define RCC_CCIPR1_I2C2SEL_1 (0x2UL << RCC_CCIPR1_I2C2SEL_Pos) /*!< 0x00008000 */
  11714. #define RCC_CCIPR1_I2C3SEL_Pos (16U)
  11715. #define RCC_CCIPR1_I2C3SEL_Msk (0x3UL << RCC_CCIPR1_I2C3SEL_Pos) /*!< 0x00030000 */
  11716. #define RCC_CCIPR1_I2C3SEL RCC_CCIPR1_I2C3SEL_Msk
  11717. #define RCC_CCIPR1_I2C3SEL_0 (0x1UL << RCC_CCIPR1_I2C3SEL_Pos) /*!< 0x00010000 */
  11718. #define RCC_CCIPR1_I2C3SEL_1 (0x2UL << RCC_CCIPR1_I2C3SEL_Pos) /*!< 0x00020000 */
  11719. #define RCC_CCIPR1_LPTIM1SEL_Pos (18U)
  11720. #define RCC_CCIPR1_LPTIM1SEL_Msk (0x3UL << RCC_CCIPR1_LPTIM1SEL_Pos)/*!< 0x000C0000 */
  11721. #define RCC_CCIPR1_LPTIM1SEL RCC_CCIPR1_LPTIM1SEL_Msk
  11722. #define RCC_CCIPR1_LPTIM1SEL_0 (0x1UL << RCC_CCIPR1_LPTIM1SEL_Pos)/*!< 0x00040000 */
  11723. #define RCC_CCIPR1_LPTIM1SEL_1 (0x2UL << RCC_CCIPR1_LPTIM1SEL_Pos)/*!< 0x00080000 */
  11724. #define RCC_CCIPR1_LPTIM2SEL_Pos (20U)
  11725. #define RCC_CCIPR1_LPTIM2SEL_Msk (0x3UL << RCC_CCIPR1_LPTIM2SEL_Pos)/*!< 0x00300000 */
  11726. #define RCC_CCIPR1_LPTIM2SEL RCC_CCIPR1_LPTIM2SEL_Msk
  11727. #define RCC_CCIPR1_LPTIM2SEL_0 (0x1UL << RCC_CCIPR1_LPTIM2SEL_Pos)/*!< 0x00100000 */
  11728. #define RCC_CCIPR1_LPTIM2SEL_1 (0x2UL << RCC_CCIPR1_LPTIM2SEL_Pos)/*!< 0x00200000 */
  11729. #define RCC_CCIPR1_LPTIM3SEL_Pos (22U)
  11730. #define RCC_CCIPR1_LPTIM3SEL_Msk (0x3UL << RCC_CCIPR1_LPTIM3SEL_Pos)/*!< 0x00C00000 */
  11731. #define RCC_CCIPR1_LPTIM3SEL RCC_CCIPR1_LPTIM3SEL_Msk
  11732. #define RCC_CCIPR1_LPTIM3SEL_0 (0x1UL << RCC_CCIPR1_LPTIM3SEL_Pos)/*!< 0x00400000 */
  11733. #define RCC_CCIPR1_LPTIM3SEL_1 (0x2UL << RCC_CCIPR1_LPTIM3SEL_Pos)/*!< 0x00800000 */
  11734. #define RCC_CCIPR1_FDCANSEL_Pos (24U)
  11735. #define RCC_CCIPR1_FDCANSEL_Msk (0x3UL << RCC_CCIPR1_FDCANSEL_Pos) /*!< 0x03000000 */
  11736. #define RCC_CCIPR1_FDCANSEL RCC_CCIPR1_FDCANSEL_Msk
  11737. #define RCC_CCIPR1_FDCANSEL_0 (0x1UL << RCC_CCIPR1_FDCANSEL_Pos) /*!< 0x01000000 */
  11738. #define RCC_CCIPR1_FDCANSEL_1 (0x2UL << RCC_CCIPR1_FDCANSEL_Pos) /*!< 0x02000000 */
  11739. #define RCC_CCIPR1_CLK48MSEL_Pos (26U)
  11740. #define RCC_CCIPR1_CLK48MSEL_Msk (0x3UL << RCC_CCIPR1_CLK48MSEL_Pos) /*!< 0x0C000000 */
  11741. #define RCC_CCIPR1_CLK48MSEL RCC_CCIPR1_CLK48MSEL_Msk
  11742. #define RCC_CCIPR1_CLK48MSEL_0 (0x1UL << RCC_CCIPR1_CLK48MSEL_Pos) /*!< 0x04000000 */
  11743. #define RCC_CCIPR1_CLK48MSEL_1 (0x2UL << RCC_CCIPR1_CLK48MSEL_Pos) /*!< 0x08000000 */
  11744. #define RCC_CCIPR1_ADCSEL_Pos (28U)
  11745. #define RCC_CCIPR1_ADCSEL_Msk (0x3UL << RCC_CCIPR1_ADCSEL_Pos) /*!< 0x30000000 */
  11746. #define RCC_CCIPR1_ADCSEL RCC_CCIPR1_ADCSEL_Msk
  11747. #define RCC_CCIPR1_ADCSEL_0 (0x1UL << RCC_CCIPR1_ADCSEL_Pos) /*!< 0x10000000 */
  11748. #define RCC_CCIPR1_ADCSEL_1 (0x2UL << RCC_CCIPR1_ADCSEL_Pos) /*!< 0x20000000 */
  11749. /******************** Bit definition for RCC_BDCR register ******************/
  11750. #define RCC_BDCR_LSEON_Pos (0U)
  11751. #define RCC_BDCR_LSEON_Msk (0x1UL << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  11752. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk
  11753. #define RCC_BDCR_LSERDY_Pos (1U)
  11754. #define RCC_BDCR_LSERDY_Msk (0x1UL << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  11755. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk
  11756. #define RCC_BDCR_LSEBYP_Pos (2U)
  11757. #define RCC_BDCR_LSEBYP_Msk (0x1UL << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  11758. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk
  11759. #define RCC_BDCR_LSEDRV_Pos (3U)
  11760. #define RCC_BDCR_LSEDRV_Msk (0x3UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  11761. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk
  11762. #define RCC_BDCR_LSEDRV_0 (0x1UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  11763. #define RCC_BDCR_LSEDRV_1 (0x2UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  11764. #define RCC_BDCR_LSECSSON_Pos (5U)
  11765. #define RCC_BDCR_LSECSSON_Msk (0x1UL << RCC_BDCR_LSECSSON_Pos) /*!< 0x00000020 */
  11766. #define RCC_BDCR_LSECSSON RCC_BDCR_LSECSSON_Msk
  11767. #define RCC_BDCR_LSECSSD_Pos (6U)
  11768. #define RCC_BDCR_LSECSSD_Msk (0x1UL << RCC_BDCR_LSECSSD_Pos) /*!< 0x00000040 */
  11769. #define RCC_BDCR_LSECSSD RCC_BDCR_LSECSSD_Msk
  11770. #define RCC_BDCR_LSESYSEN_Pos (7U)
  11771. #define RCC_BDCR_LSESYSEN_Msk (0x1UL << RCC_BDCR_LSESYSEN_Pos) /*!< 0x00000080 */
  11772. #define RCC_BDCR_LSESYSEN RCC_BDCR_LSESYSEN_Msk
  11773. #define RCC_BDCR_RTCSEL_Pos (8U)
  11774. #define RCC_BDCR_RTCSEL_Msk (0x3UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  11775. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk
  11776. #define RCC_BDCR_RTCSEL_0 (0x1UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  11777. #define RCC_BDCR_RTCSEL_1 (0x2UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  11778. #define RCC_BDCR_LSESYSRDY_Pos (11U)
  11779. #define RCC_BDCR_LSESYSRDY_Msk (0x1UL << RCC_BDCR_LSESYSRDY_Pos) /*!< 0x00000800 */
  11780. #define RCC_BDCR_LSESYSRDY RCC_BDCR_LSESYSRDY_Msk
  11781. #define RCC_BDCR_RTCEN_Pos (15U)
  11782. #define RCC_BDCR_RTCEN_Msk (0x1UL << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  11783. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk
  11784. #define RCC_BDCR_BDRST_Pos (16U)
  11785. #define RCC_BDCR_BDRST_Msk (0x1UL << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  11786. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk
  11787. #define RCC_BDCR_LSCOEN_Pos (24U)
  11788. #define RCC_BDCR_LSCOEN_Msk (0x1UL << RCC_BDCR_LSCOEN_Pos) /*!< 0x01000000 */
  11789. #define RCC_BDCR_LSCOEN RCC_BDCR_LSCOEN_Msk
  11790. #define RCC_BDCR_LSCOSEL_Pos (25U)
  11791. #define RCC_BDCR_LSCOSEL_Msk (0x1UL << RCC_BDCR_LSCOSEL_Pos) /*!< 0x02000000 */
  11792. #define RCC_BDCR_LSCOSEL RCC_BDCR_LSCOSEL_Msk
  11793. /******************** Bit definition for RCC_CSR register *******************/
  11794. #define RCC_CSR_LSION_Pos (0U)
  11795. #define RCC_CSR_LSION_Msk (0x1UL << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  11796. #define RCC_CSR_LSION RCC_CSR_LSION_Msk
  11797. #define RCC_CSR_LSIRDY_Pos (1U)
  11798. #define RCC_CSR_LSIRDY_Msk (0x1UL << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  11799. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk
  11800. #define RCC_CSR_LSIPRE_Pos (4U)
  11801. #define RCC_CSR_LSIPRE_Msk (0x1UL << RCC_CSR_LSIPRE_Pos) /*!< 0x00000010 */
  11802. #define RCC_CSR_LSIPRE RCC_CSR_LSIPRE_Msk
  11803. #define RCC_CSR_MSISRANGE_Pos (8U)
  11804. #define RCC_CSR_MSISRANGE_Msk (0xFUL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000F00 */
  11805. #define RCC_CSR_MSISRANGE RCC_CSR_MSISRANGE_Msk
  11806. #define RCC_CSR_MSISRANGE_1 (0x4UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000400 */
  11807. #define RCC_CSR_MSISRANGE_2 (0x5UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000500 */
  11808. #define RCC_CSR_MSISRANGE_4 (0x6UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000600 */
  11809. #define RCC_CSR_MSISRANGE_8 (0x7UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000700 */
  11810. #define RCC_CSR_RMVF_Pos (23U)
  11811. #define RCC_CSR_RMVF_Msk (0x1UL << RCC_CSR_RMVF_Pos) /*!< 0x00800000 */
  11812. #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk
  11813. #define RCC_CSR_OBLRSTF_Pos (25U)
  11814. #define RCC_CSR_OBLRSTF_Msk (0x1UL << RCC_CSR_OBLRSTF_Pos) /*!< 0x02000000 */
  11815. #define RCC_CSR_OBLRSTF RCC_CSR_OBLRSTF_Msk
  11816. #define RCC_CSR_PINRSTF_Pos (26U)
  11817. #define RCC_CSR_PINRSTF_Msk (0x1UL << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */
  11818. #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk
  11819. #define RCC_CSR_BORRSTF_Pos (27U)
  11820. #define RCC_CSR_BORRSTF_Msk (0x1UL << RCC_CSR_BORRSTF_Pos) /*!< 0x08000000 */
  11821. #define RCC_CSR_BORRSTF RCC_CSR_BORRSTF_Msk
  11822. #define RCC_CSR_SFTRSTF_Pos (28U)
  11823. #define RCC_CSR_SFTRSTF_Msk (0x1UL << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */
  11824. #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk
  11825. #define RCC_CSR_IWDGRSTF_Pos (29U)
  11826. #define RCC_CSR_IWDGRSTF_Msk (0x1UL << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */
  11827. #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk
  11828. #define RCC_CSR_WWDGRSTF_Pos (30U)
  11829. #define RCC_CSR_WWDGRSTF_Msk (0x1UL << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */
  11830. #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk
  11831. #define RCC_CSR_LPWRRSTF_Pos (31U)
  11832. #define RCC_CSR_LPWRRSTF_Msk (0x1UL << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */
  11833. #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk
  11834. /******************** Bit definition for RCC_CRRCR register *****************/
  11835. #define RCC_CRRCR_HSI48ON_Pos (0U)
  11836. #define RCC_CRRCR_HSI48ON_Msk (0x1UL << RCC_CRRCR_HSI48ON_Pos) /*!< 0x00000001 */
  11837. #define RCC_CRRCR_HSI48ON RCC_CRRCR_HSI48ON_Msk
  11838. #define RCC_CRRCR_HSI48RDY_Pos (1U)
  11839. #define RCC_CRRCR_HSI48RDY_Msk (0x1UL << RCC_CRRCR_HSI48RDY_Pos) /*!< 0x00000002 */
  11840. #define RCC_CRRCR_HSI48RDY RCC_CRRCR_HSI48RDY_Msk
  11841. /*!< HSI48CAL configuration */
  11842. #define RCC_CRRCR_HSI48CAL_Pos (7U)
  11843. #define RCC_CRRCR_HSI48CAL_Msk (0x1FFUL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x0000FF80 */
  11844. #define RCC_CRRCR_HSI48CAL RCC_CRRCR_HSI48CAL_Msk /*!< HSI48CAL[8:0] bits */
  11845. #define RCC_CRRCR_HSI48CAL_0 (0x001UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000080 */
  11846. #define RCC_CRRCR_HSI48CAL_1 (0x002UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000100 */
  11847. #define RCC_CRRCR_HSI48CAL_2 (0x004UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000200 */
  11848. #define RCC_CRRCR_HSI48CAL_3 (0x008UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000400 */
  11849. #define RCC_CRRCR_HSI48CAL_4 (0x010UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000800 */
  11850. #define RCC_CRRCR_HSI48CAL_5 (0x020UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00001000 */
  11851. #define RCC_CRRCR_HSI48CAL_6 (0x040UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00002000 */
  11852. #define RCC_CRRCR_HSI48CAL_7 (0x080UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00004000 */
  11853. #define RCC_CRRCR_HSI48CAL_8 (0x100UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00008000 */
  11854. /******************** Bit definition for RCC_CCIPR2 register ******************/
  11855. #define RCC_CCIPR2_I2C4SEL_Pos (0U)
  11856. #define RCC_CCIPR2_I2C4SEL_Msk (0x3UL << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000003 */
  11857. #define RCC_CCIPR2_I2C4SEL RCC_CCIPR2_I2C4SEL_Msk
  11858. #define RCC_CCIPR2_I2C4SEL_0 (0x1UL << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000001 */
  11859. #define RCC_CCIPR2_I2C4SEL_1 (0x2UL << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000002 */
  11860. #define RCC_CCIPR2_DFSDMSEL_Pos (2U)
  11861. #define RCC_CCIPR2_DFSDMSEL_Msk (0x1UL << RCC_CCIPR2_DFSDMSEL_Pos)/*!< 0x00000004 */
  11862. #define RCC_CCIPR2_DFSDMSEL RCC_CCIPR2_DFSDMSEL_Msk
  11863. #define RCC_CCIPR2_ADFSDMSEL_Pos (3U)
  11864. #define RCC_CCIPR2_ADFSDMSEL_Msk (0x3UL << RCC_CCIPR2_ADFSDMSEL_Pos)/*!< 0x00000018 */
  11865. #define RCC_CCIPR2_ADFSDMSEL RCC_CCIPR2_ADFSDMSEL_Msk
  11866. #define RCC_CCIPR2_ADFSDMSEL_0 (0x1UL << RCC_CCIPR2_ADFSDMSEL_Pos)/*!< 0x00000008 */
  11867. #define RCC_CCIPR2_ADFSDMSEL_1 (0x2UL << RCC_CCIPR2_ADFSDMSEL_Pos)/*!< 0x00000010 */
  11868. #define RCC_CCIPR2_SAI1SEL_Pos (5U)
  11869. #define RCC_CCIPR2_SAI1SEL_Msk (0x7UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x000000E0 */
  11870. #define RCC_CCIPR2_SAI1SEL RCC_CCIPR2_SAI1SEL_Msk
  11871. #define RCC_CCIPR2_SAI1SEL_0 (0x1UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x00000020 */
  11872. #define RCC_CCIPR2_SAI1SEL_1 (0x2UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x00000040 */
  11873. #define RCC_CCIPR2_SAI1SEL_2 (0x4UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x00000080 */
  11874. #define RCC_CCIPR2_SAI2SEL_Pos (8U)
  11875. #define RCC_CCIPR2_SAI2SEL_Msk (0x7UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000700 */
  11876. #define RCC_CCIPR2_SAI2SEL RCC_CCIPR2_SAI2SEL_Msk
  11877. #define RCC_CCIPR2_SAI2SEL_0 (0x1UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000100 */
  11878. #define RCC_CCIPR2_SAI2SEL_1 (0x2UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000200 */
  11879. #define RCC_CCIPR2_SAI2SEL_2 (0x4UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000400 */
  11880. #define RCC_CCIPR2_SDMMCSEL_Pos (14U)
  11881. #define RCC_CCIPR2_SDMMCSEL_Msk (0x1UL << RCC_CCIPR2_SDMMCSEL_Pos)/*!< 0x00004000 */
  11882. #define RCC_CCIPR2_SDMMCSEL RCC_CCIPR2_SDMMCSEL_Msk
  11883. #define RCC_CCIPR2_OSPISEL_Pos (20U)
  11884. #define RCC_CCIPR2_OSPISEL_Msk (0x3UL << RCC_CCIPR2_OSPISEL_Pos)/*!< 0x00300000 */
  11885. #define RCC_CCIPR2_OSPISEL RCC_CCIPR2_OSPISEL_Msk
  11886. #define RCC_CCIPR2_OSPISEL_0 (0x1UL << RCC_CCIPR2_OSPISEL_Pos)/*!< 0x00100000 */
  11887. #define RCC_CCIPR2_OSPISEL_1 (0x2UL << RCC_CCIPR2_OSPISEL_Pos)/*!< 0x00200000 */
  11888. /******************** Bit definition for RCC_SECCFGR register ***************/
  11889. #define RCC_SECCFGR_HSISEC_Pos (0U)
  11890. #define RCC_SECCFGR_HSISEC_Msk (0x1UL << RCC_SECCFGR_HSISEC_Pos) /*!< 0x00000001 */
  11891. #define RCC_SECCFGR_HSISEC RCC_SECCFGR_HSISEC_Msk
  11892. #define RCC_SECCFGR_HSESEC_Pos (1U)
  11893. #define RCC_SECCFGR_HSESEC_Msk (0x1UL << RCC_SECCFGR_HSESEC_Pos) /*!< 0x00000002 */
  11894. #define RCC_SECCFGR_HSESEC RCC_SECCFGR_HSESEC_Msk
  11895. #define RCC_SECCFGR_MSISEC_Pos (2U)
  11896. #define RCC_SECCFGR_MSISEC_Msk (0x1UL << RCC_SECCFGR_MSISEC_Pos) /*!< 0x00000004 */
  11897. #define RCC_SECCFGR_MSISEC RCC_SECCFGR_MSISEC_Msk
  11898. #define RCC_SECCFGR_LSISEC_Pos (3U)
  11899. #define RCC_SECCFGR_LSISEC_Msk (0x1UL << RCC_SECCFGR_LSISEC_Pos) /*!< 0x00000008 */
  11900. #define RCC_SECCFGR_LSISEC RCC_SECCFGR_LSISEC_Msk
  11901. #define RCC_SECCFGR_LSESEC_Pos (4U)
  11902. #define RCC_SECCFGR_LSESEC_Msk (0x1UL << RCC_SECCFGR_LSESEC_Pos) /*!< 0x00000010 */
  11903. #define RCC_SECCFGR_LSESEC RCC_SECCFGR_LSESEC_Msk
  11904. #define RCC_SECCFGR_SYSCLKSEC_Pos (5U)
  11905. #define RCC_SECCFGR_SYSCLKSEC_Msk (0x1UL << RCC_SECCFGR_SYSCLKSEC_Pos)/*!< 0x00000020 */
  11906. #define RCC_SECCFGR_SYSCLKSEC RCC_SECCFGR_SYSCLKSEC_Msk
  11907. #define RCC_SECCFGR_PRESCSEC_Pos (6U)
  11908. #define RCC_SECCFGR_PRESCSEC_Msk (0x1UL << RCC_SECCFGR_PRESCSEC_Pos)/*!< 0x00000040 */
  11909. #define RCC_SECCFGR_PRESCSEC RCC_SECCFGR_PRESCSEC_Msk
  11910. #define RCC_SECCFGR_PLLSEC_Pos (7U)
  11911. #define RCC_SECCFGR_PLLSEC_Msk (0x1UL << RCC_SECCFGR_PLLSEC_Pos)/*!< 0x00000080 */
  11912. #define RCC_SECCFGR_PLLSEC RCC_SECCFGR_PLLSEC_Msk
  11913. #define RCC_SECCFGR_PLLSAI1SEC_Pos (8U)
  11914. #define RCC_SECCFGR_PLLSAI1SEC_Msk (0x1UL << RCC_SECCFGR_PLLSAI1SEC_Pos)/*!< 0x00000100 */
  11915. #define RCC_SECCFGR_PLLSAI1SEC RCC_SECCFGR_PLLSAI1SEC_Msk
  11916. #define RCC_SECCFGR_PLLSAI2SEC_Pos (9U)
  11917. #define RCC_SECCFGR_PLLSAI2SEC_Msk (0x1UL << RCC_SECCFGR_PLLSAI2SEC_Pos)/*!< 0x00000200 */
  11918. #define RCC_SECCFGR_PLLSAI2SEC RCC_SECCFGR_PLLSAI2SEC_Msk
  11919. #define RCC_SECCFGR_CLK48MSEC_Pos (10U)
  11920. #define RCC_SECCFGR_CLK48MSEC_Msk (0x1UL << RCC_SECCFGR_CLK48MSEC_Pos) /*!< 0x00000400 */
  11921. #define RCC_SECCFGR_CLK48MSEC RCC_SECCFGR_CLK48MSEC_Msk
  11922. #define RCC_SECCFGR_HSI48SEC_Pos (11U)
  11923. #define RCC_SECCFGR_HSI48SEC_Msk (0x1UL << RCC_SECCFGR_HSI48SEC_Pos) /*!< 0x00000800 */
  11924. #define RCC_SECCFGR_HSI48SEC RCC_SECCFGR_HSI48SEC_Msk
  11925. #define RCC_SECCFGR_RMVFSEC_Pos (12U)
  11926. #define RCC_SECCFGR_RMVFSEC_Msk (0x1UL << RCC_SECCFGR_RMVFSEC_Pos)/*!< 0x00001000 */
  11927. #define RCC_SECCFGR_RMVFSEC RCC_SECCFGR_RMVFSEC_Msk
  11928. /******************** Bit definition for RCC_SECSR register *****************/
  11929. #define RCC_SECSR_HSISECF_Pos (0U)
  11930. #define RCC_SECSR_HSISECF_Msk (0x1UL << RCC_SECSR_HSISECF_Pos) /*!< 0x00000001 */
  11931. #define RCC_SECSR_HSISECF RCC_SECSR_HSISECF_Msk
  11932. #define RCC_SECSR_HSESECF_Pos (1U)
  11933. #define RCC_SECSR_HSESECF_Msk (0x1UL << RCC_SECSR_HSESECF_Pos) /*!< 0x00000002 */
  11934. #define RCC_SECSR_HSESECF RCC_SECSR_HSESECF_Msk
  11935. #define RCC_SECSR_MSISECF_Pos (2U)
  11936. #define RCC_SECSR_MSISECF_Msk (0x1UL << RCC_SECSR_MSISECF_Pos) /*!< 0x00000004 */
  11937. #define RCC_SECSR_MSISECF RCC_SECSR_MSISECF_Msk
  11938. #define RCC_SECSR_LSISECF_Pos (3U)
  11939. #define RCC_SECSR_LSISECF_Msk (0x1UL << RCC_SECSR_LSISECF_Pos) /*!< 0x00000008 */
  11940. #define RCC_SECSR_LSISECF RCC_SECSR_LSISECF_Msk
  11941. #define RCC_SECSR_LSESECF_Pos (4U)
  11942. #define RCC_SECSR_LSESECF_Msk (0x1UL << RCC_SECSR_LSESECF_Pos) /*!< 0x00000010 */
  11943. #define RCC_SECSR_LSESECF RCC_SECSR_LSESECF_Msk
  11944. #define RCC_SECSR_SYSCLKSECF_Pos (5U)
  11945. #define RCC_SECSR_SYSCLKSECF_Msk (0x1UL << RCC_SECSR_SYSCLKSECF_Pos)/*!< 0x00000020 */
  11946. #define RCC_SECSR_SYSCLKSECF RCC_SECSR_SYSCLKSECF_Msk
  11947. #define RCC_SECSR_PRESCSECF_Pos (6U)
  11948. #define RCC_SECSR_PRESCSECF_Msk (0x1UL << RCC_SECSR_PRESCSECF_Pos)/*!< 0x00000040 */
  11949. #define RCC_SECSR_PRESCSECF RCC_SECSR_PRESCSECF_Msk
  11950. #define RCC_SECSR_PLLSECF_Pos (7U)
  11951. #define RCC_SECSR_PLLSECF_Msk (0x1UL << RCC_SECSR_PLLSECF_Pos) /*!< 0x00000080 */
  11952. #define RCC_SECSR_PLLSECF RCC_SECSR_PLLSECF_Msk
  11953. #define RCC_SECSR_PLLSAI1SECF_Pos (8U)
  11954. #define RCC_SECSR_PLLSAI1SECF_Msk (0x1UL << RCC_SECSR_PLLSAI1SECF_Pos)/*!< 0x00000100 */
  11955. #define RCC_SECSR_PLLSAI1SECF RCC_SECSR_PLLSAI1SECF_Msk
  11956. #define RCC_SECSR_PLLSAI2SECF_Pos (9U)
  11957. #define RCC_SECSR_PLLSAI2SECF_Msk (0x1UL << RCC_SECSR_PLLSAI2SECF_Pos)/*!< 0x00000200 */
  11958. #define RCC_SECSR_PLLSAI2SECF RCC_SECSR_PLLSAI2SECF_Msk
  11959. #define RCC_SECSR_CLK48MSECF_Pos (10U)
  11960. #define RCC_SECSR_CLK48MSECF_Msk (0x1UL << RCC_SECSR_CLK48MSECF_Pos) /*!< 0x00000400 */
  11961. #define RCC_SECSR_CLK48MSECF RCC_SECSR_CLK48MSECF_Msk
  11962. #define RCC_SECSR_HSI48SECF_Pos (11U)
  11963. #define RCC_SECSR_HSI48SECF_Msk (0x1UL << RCC_SECSR_HSI48SECF_Pos) /*!< 0x00000800 */
  11964. #define RCC_SECSR_HSI48SECF RCC_SECSR_HSI48SECF_Msk
  11965. #define RCC_SECSR_RMVFSECF_Pos (12U)
  11966. #define RCC_SECSR_RMVFSECF_Msk (0x1UL << RCC_SECSR_RMVFSECF_Pos)/*!< 0x00001000 */
  11967. #define RCC_SECSR_RMVFSECF RCC_SECSR_RMVFSECF_Msk
  11968. /******************** Bit definition for RCC_AHB1SECSR register *************/
  11969. #define RCC_AHB1SECSR_DMA1SECF_Pos (0U)
  11970. #define RCC_AHB1SECSR_DMA1SECF_Msk (0x1UL << RCC_AHB1SECSR_DMA1SECF_Pos)/*!< 0x00000001 */
  11971. #define RCC_AHB1SECSR_DMA1SECF RCC_AHB1SECSR_DMA1SECF_Msk
  11972. #define RCC_AHB1SECSR_DMA2SECF_Pos (1U)
  11973. #define RCC_AHB1SECSR_DMA2SECF_Msk (0x1UL << RCC_AHB1SECSR_DMA2SECF_Pos)/*!< 0x00000002 */
  11974. #define RCC_AHB1SECSR_DMA2SECF RCC_AHB1SECSR_DMA2SECF_Msk
  11975. #define RCC_AHB1SECSR_DMAMUX1SECF_Pos (2U)
  11976. #define RCC_AHB1SECSR_DMAMUX1SECF_Msk (0x1UL << RCC_AHB1SECSR_DMAMUX1SECF_Pos)/*!< 0x00000004 */
  11977. #define RCC_AHB1SECSR_DMAMUX1SECF RCC_AHB1SECSR_DMAMUX1SECF_Msk
  11978. #define RCC_AHB1SECSR_FLASHSECF_Pos (8U)
  11979. #define RCC_AHB1SECSR_FLASHSECF_Msk (0x1UL << RCC_AHB1SECSR_FLASHSECF_Pos)/*!< 0x00000100 */
  11980. #define RCC_AHB1SECSR_FLASHSECF RCC_AHB1SECSR_FLASHSECF_Msk
  11981. #define RCC_AHB1SECSR_SRAM1SECF_Pos (9U)
  11982. #define RCC_AHB1SECSR_SRAM1SECF_Msk (0x1UL << RCC_AHB1SECSR_SRAM1SECF_Pos)/*!< 0x00000200 */
  11983. #define RCC_AHB1SECSR_SRAM1SECF RCC_AHB1SECSR_SRAM1SECF_Msk
  11984. #define RCC_AHB1SECSR_CRCSECF_Pos (12U)
  11985. #define RCC_AHB1SECSR_CRCSECF_Msk (0x1UL << RCC_AHB1SECSR_CRCSECF_Pos)/*!< 0x00001000 */
  11986. #define RCC_AHB1SECSR_CRCSECF RCC_AHB1SECSR_CRCSECF_Msk
  11987. #define RCC_AHB1SECSR_TSCSECF_Pos (16U)
  11988. #define RCC_AHB1SECSR_TSCSECF_Msk (0x1UL << RCC_AHB1SECSR_TSCSECF_Pos)/*!< 0x00010000 */
  11989. #define RCC_AHB1SECSR_TSCSECF RCC_AHB1SECSR_TSCSECF_Msk
  11990. #define RCC_AHB1SECSR_GTZCSECF_Pos (22U)
  11991. #define RCC_AHB1SECSR_GTZCSECF_Msk (0x1UL << RCC_AHB1SECSR_GTZCSECF_Pos)/*!< 0x00400000 */
  11992. #define RCC_AHB1SECSR_GTZCSECF RCC_AHB1SECSR_GTZCSECF_Msk
  11993. #define RCC_AHB1SECSR_ICACHESECF_Pos (23U)
  11994. #define RCC_AHB1SECSR_ICACHESECF_Msk (0x1UL << RCC_AHB1SECSR_ICACHESECF_Pos)/*!< 0x00600000 */
  11995. #define RCC_AHB1SECSR_ICACHESECF RCC_AHB1SECSR_ICACHESECF_Msk
  11996. /******************** Bit definition for RCC_AHB2SECSR register *************/
  11997. #define RCC_AHB2SECSR_GPIOASECF_Pos (0U)
  11998. #define RCC_AHB2SECSR_GPIOASECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOASECF_Pos)/*!< 0x00000001 */
  11999. #define RCC_AHB2SECSR_GPIOASECF RCC_AHB2SECSR_GPIOASECF_Msk
  12000. #define RCC_AHB2SECSR_GPIOBSECF_Pos (1U)
  12001. #define RCC_AHB2SECSR_GPIOBSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOBSECF_Pos)/*!< 0x00000002 */
  12002. #define RCC_AHB2SECSR_GPIOBSECF RCC_AHB2SECSR_GPIOBSECF_Msk
  12003. #define RCC_AHB2SECSR_GPIOCSECF_Pos (2U)
  12004. #define RCC_AHB2SECSR_GPIOCSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOCSECF_Pos)/*!< 0x00000004 */
  12005. #define RCC_AHB2SECSR_GPIOCSECF RCC_AHB2SECSR_GPIOCSECF_Msk
  12006. #define RCC_AHB2SECSR_GPIODSECF_Pos (3U)
  12007. #define RCC_AHB2SECSR_GPIODSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIODSECF_Pos)/*!< 0x00000008 */
  12008. #define RCC_AHB2SECSR_GPIODSECF RCC_AHB2SECSR_GPIODSECF_Msk
  12009. #define RCC_AHB2SECSR_GPIOESECF_Pos (4U)
  12010. #define RCC_AHB2SECSR_GPIOESECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOESECF_Pos)/*!< 0x00000010 */
  12011. #define RCC_AHB2SECSR_GPIOESECF RCC_AHB2SECSR_GPIOESECF_Msk
  12012. #define RCC_AHB2SECSR_GPIOFSECF_Pos (5U)
  12013. #define RCC_AHB2SECSR_GPIOFSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOFSECF_Pos)/*!< 0x00000020 */
  12014. #define RCC_AHB2SECSR_GPIOFSECF RCC_AHB2SECSR_GPIOFSECF_Msk
  12015. #define RCC_AHB2SECSR_GPIOGSECF_Pos (6U)
  12016. #define RCC_AHB2SECSR_GPIOGSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOGSECF_Pos)/*!< 0x00000040 */
  12017. #define RCC_AHB2SECSR_GPIOGSECF RCC_AHB2SECSR_GPIOGSECF_Msk
  12018. #define RCC_AHB2SECSR_GPIOHSECF_Pos (7U)
  12019. #define RCC_AHB2SECSR_GPIOHSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOHSECF_Pos)/*!< 0x00000080 */
  12020. #define RCC_AHB2SECSR_GPIOHSECF RCC_AHB2SECSR_GPIOHSECF_Msk
  12021. #define RCC_AHB2SECSR_SRAM2SECF_Pos (9U)
  12022. #define RCC_AHB2SECSR_SRAM2SECF_Msk (0x1UL << RCC_AHB2SECSR_SRAM2SECF_Pos)/*!< 0x00000200 */
  12023. #define RCC_AHB2SECSR_SRAM2SECF RCC_AHB2SECSR_SRAM2SECF_Msk
  12024. #define RCC_AHB2SECSR_ADCSECF_Pos (13U)
  12025. #define RCC_AHB2SECSR_ADCSECF_Msk (0x1UL << RCC_AHB2SECSR_ADCSECF_Pos)/*!< 0x00002000 */
  12026. #define RCC_AHB2SECSR_ADCSECF RCC_AHB2SECSR_ADCSECF_Msk
  12027. #define RCC_AHB2SECSR_AESSECF_Pos (16U)
  12028. #define RCC_AHB2SECSR_AESSECF_Msk (0x1UL << RCC_AHB2SECSR_AESSECF_Pos)/*!< 0x00010000 */
  12029. #define RCC_AHB2SECSR_AESSECF RCC_AHB2SECSR_AESSECF_Msk
  12030. #define RCC_AHB2SECSR_HASHSECF_Pos (17U)
  12031. #define RCC_AHB2SECSR_HASHSECF_Msk (0x1UL << RCC_AHB2SECSR_HASHSECF_Pos)/*!< 0x00020000 */
  12032. #define RCC_AHB2SECSR_HASHSECF RCC_AHB2SECSR_HASHSECF_Msk
  12033. #define RCC_AHB2SECSR_RNGSECF_Pos (18U)
  12034. #define RCC_AHB2SECSR_RNGSECF_Msk (0x1UL << RCC_AHB2SECSR_RNGSECF_Pos)/*!< 0x00040000 */
  12035. #define RCC_AHB2SECSR_RNGSECF RCC_AHB2SECSR_RNGSECF_Msk
  12036. #define RCC_AHB2SECSR_PKASECF_Pos (19U)
  12037. #define RCC_AHB2SECSR_PKASECF_Msk (0x1UL << RCC_AHB2SECSR_PKASECF_Pos)/*!< 0x00080000 */
  12038. #define RCC_AHB2SECSR_PKASECF RCC_AHB2SECSR_PKASECF_Msk
  12039. #define RCC_AHB2SECSR_OTFDEC1SECF_Pos (21U)
  12040. #define RCC_AHB2SECSR_OTFDEC1SECF_Msk (0x1UL << RCC_AHB2SECSR_OTFDEC1SECF_Pos)/*!< 0x00200000 */
  12041. #define RCC_AHB2SECSR_OTFDEC1SECF RCC_AHB2SECSR_OTFDEC1SECF_Msk
  12042. #define RCC_AHB2SECSR_SDMMC1SECF_Pos (22U)
  12043. #define RCC_AHB2SECSR_SDMMC1SECF_Msk (0x1UL << RCC_AHB2SECSR_SDMMC1SECF_Pos)/*!< 0x00400000 */
  12044. #define RCC_AHB2SECSR_SDMMC1SECF RCC_AHB2SECSR_SDMMC1SECF_Msk
  12045. /******************** Bit definition for RCC_AHB3SECSR register *************/
  12046. #define RCC_AHB3SECSR_FMCSECF_Pos (0U)
  12047. #define RCC_AHB3SECSR_FMCSECF_Msk (0x1UL << RCC_AHB3SECSR_FMCSECF_Pos)/*!< 0x00000001 */
  12048. #define RCC_AHB3SECSR_FMCSECF RCC_AHB3SECSR_FMCSECF_Msk
  12049. #define RCC_AHB3SECSR_OSPI1SECF_Pos (8U)
  12050. #define RCC_AHB3SECSR_OSPI1SECF_Msk (0x1UL << RCC_AHB3SECSR_OSPI1SECF_Pos)/*!< 0x00000100 */
  12051. #define RCC_AHB3SECSR_OSPI1SECF RCC_AHB3SECSR_OSPI1SECF_Msk
  12052. /******************** Bit definition for RCC_APB1SECSR1 register ************/
  12053. #define RCC_APB1SECSR1_TIM2SECF_Pos (0U)
  12054. #define RCC_APB1SECSR1_TIM2SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM2SECF_Pos)/*!< 0x00000001 */
  12055. #define RCC_APB1SECSR1_TIM2SECF RCC_APB1SECSR1_TIM2SECF_Msk
  12056. #define RCC_APB1SECSR1_TIM3SECF_Pos (1U)
  12057. #define RCC_APB1SECSR1_TIM3SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM3SECF_Pos)/*!< 0x00000002 */
  12058. #define RCC_APB1SECSR1_TIM3SECF RCC_APB1SECSR1_TIM3SECF_Msk
  12059. #define RCC_APB1SECSR1_TIM4SECF_Pos (2U)
  12060. #define RCC_APB1SECSR1_TIM4SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM4SECF_Pos)/*!< 0x00000004 */
  12061. #define RCC_APB1SECSR1_TIM4SECF RCC_APB1SECSR1_TIM4SECF_Msk
  12062. #define RCC_APB1SECSR1_TIM5SECF_Pos (3U)
  12063. #define RCC_APB1SECSR1_TIM5SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM5SECF_Pos)/*!< 0x00000008 */
  12064. #define RCC_APB1SECSR1_TIM5SECF RCC_APB1SECSR1_TIM5SECF_Msk
  12065. #define RCC_APB1SECSR1_TIM6SECF_Pos (4U)
  12066. #define RCC_APB1SECSR1_TIM6SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM6SECF_Pos)/*!< 0x00000010 */
  12067. #define RCC_APB1SECSR1_TIM6SECF RCC_APB1SECSR1_TIM6SECF_Msk
  12068. #define RCC_APB1SECSR1_TIM7SECF_Pos (5U)
  12069. #define RCC_APB1SECSR1_TIM7SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM7SECF_Pos)/*!< 0x00000020 */
  12070. #define RCC_APB1SECSR1_TIM7SECF RCC_APB1SECSR1_TIM7SECF_Msk
  12071. #define RCC_APB1SECSR1_RTCAPBSECF_Pos (10U)
  12072. #define RCC_APB1SECSR1_RTCAPBSECF_Msk (0x1UL << RCC_APB1SECSR1_RTCAPBSECF_Pos)/*!< 0x00000400 */
  12073. #define RCC_APB1SECSR1_RTCAPBSECF RCC_APB1SECSR1_RTCAPBSECF_Msk
  12074. #define RCC_APB1SECSR1_WWDGSECF_Pos (11U)
  12075. #define RCC_APB1SECSR1_WWDGSECF_Msk (0x1UL << RCC_APB1SECSR1_WWDGSECF_Pos)/*!< 0x00000800 */
  12076. #define RCC_APB1SECSR1_WWDGSECF RCC_APB1SECSR1_WWDGSECF_Msk
  12077. #define RCC_APB1SECSR1_SPI2SECF_Pos (14U)
  12078. #define RCC_APB1SECSR1_SPI2SECF_Msk (0x1UL << RCC_APB1SECSR1_SPI2SECF_Pos)/*!< 0x00004000 */
  12079. #define RCC_APB1SECSR1_SPI2SECF RCC_APB1SECSR1_SPI2SECF_Msk
  12080. #define RCC_APB1SECSR1_SPI3SECF_Pos (15U)
  12081. #define RCC_APB1SECSR1_SPI3SECF_Msk (0x1UL << RCC_APB1SECSR1_SPI3SECF_Pos)/*!< 0x00008000 */
  12082. #define RCC_APB1SECSR1_SPI3SECF RCC_APB1SECSR1_SPI3SECF_Msk
  12083. #define RCC_APB1SECSR1_USART2SECF_Pos (17U)
  12084. #define RCC_APB1SECSR1_USART2SECF_Msk (0x1UL << RCC_APB1SECSR1_USART2SECF_Pos)/*!< 0x00020000 */
  12085. #define RCC_APB1SECSR1_USART2SECF RCC_APB1SECSR1_USART2SECF_Msk
  12086. #define RCC_APB1SECSR1_USART3SECF_Pos (18U)
  12087. #define RCC_APB1SECSR1_USART3SECF_Msk (0x1UL << RCC_APB1SECSR1_USART3SECF_Pos)/*!< 0x00040000 */
  12088. #define RCC_APB1SECSR1_USART3SECF RCC_APB1SECSR1_USART3SECF_Msk
  12089. #define RCC_APB1SECSR1_UART4SECF_Pos (19U)
  12090. #define RCC_APB1SECSR1_UART4SECF_Msk (0x1UL << RCC_APB1SECSR1_UART4SECF_Pos)/*!< 0x00080000 */
  12091. #define RCC_APB1SECSR1_UART4SECF RCC_APB1SECSR1_UART4SECF_Msk
  12092. #define RCC_APB1SECSR1_UART5SECF_Pos (20U)
  12093. #define RCC_APB1SECSR1_UART5SECF_Msk (0x1UL << RCC_APB1SECSR1_UART5SECF_Pos)/*!< 0x00100000 */
  12094. #define RCC_APB1SECSR1_UART5SECF RCC_APB1SECSR1_UART5SECF_Msk
  12095. #define RCC_APB1SECSR1_I2C1SECF_Pos (21U)
  12096. #define RCC_APB1SECSR1_I2C1SECF_Msk (0x1UL << RCC_APB1SECSR1_I2C1SECF_Pos)/*!< 0x00200000 */
  12097. #define RCC_APB1SECSR1_I2C1SECF RCC_APB1SECSR1_I2C1SECF_Msk
  12098. #define RCC_APB1SECSR1_I2C2SECF_Pos (22U)
  12099. #define RCC_APB1SECSR1_I2C2SECF_Msk (0x1UL << RCC_APB1SECSR1_I2C2SECF_Pos)/*!< 0x00400000 */
  12100. #define RCC_APB1SECSR1_I2C2SECF RCC_APB1SECSR1_I2C2SECF_Msk
  12101. #define RCC_APB1SECSR1_I2C3SECF_Pos (23U)
  12102. #define RCC_APB1SECSR1_I2C3SECF_Msk (0x1UL << RCC_APB1SECSR1_I2C3SECF_Pos)/*!< 0x00800000 */
  12103. #define RCC_APB1SECSR1_I2C3SECF RCC_APB1SECSR1_I2C3SECF_Msk
  12104. #define RCC_APB1SECSR1_CRSSECF_Pos (24U)
  12105. #define RCC_APB1SECSR1_CRSSECF_Msk (0x1UL << RCC_APB1SECSR1_CRSSECF_Pos)/*!< 0x01000000 */
  12106. #define RCC_APB1SECSR1_CRSSECF RCC_APB1SECSR1_CRSSECF_Msk
  12107. #define RCC_APB1SECSR1_PWRSECF_Pos (28U)
  12108. #define RCC_APB1SECSR1_PWRSECF_Msk (0x1UL << RCC_APB1SECSR1_PWRSECF_Pos)/*!< 0x10000000 */
  12109. #define RCC_APB1SECSR1_PWRSECF RCC_APB1SECSR1_PWRSECF_Msk
  12110. #define RCC_APB1SECSR1_DAC1SECF_Pos (29U)
  12111. #define RCC_APB1SECSR1_DAC1SECF_Msk (0x1UL << RCC_APB1SECSR1_DAC1SECF_Pos)/*!< 0x20000000 */
  12112. #define RCC_APB1SECSR1_DAC1SECF RCC_APB1SECSR1_DAC1SECF_Msk
  12113. #define RCC_APB1SECSR1_OPAMPSECF_Pos (30U)
  12114. #define RCC_APB1SECSR1_OPAMPSECF_Msk (0x1UL << RCC_APB1SECSR1_OPAMPSECF_Pos)/*!< 0x40000000 */
  12115. #define RCC_APB1SECSR1_OPAMPSECF RCC_APB1SECSR1_OPAMPSECF_Msk
  12116. #define RCC_APB1SECSR1_LPTIM1SECF_Pos (31U)
  12117. #define RCC_APB1SECSR1_LPTIM1SECF_Msk (0x1UL << RCC_APB1SECSR1_LPTIM1SECF_Pos)/*!< 0x80000000 */
  12118. #define RCC_APB1SECSR1_LPTIM1SECF RCC_APB1SECSR1_LPTIM1SECF_Msk
  12119. /******************** Bit definition for RCC_APB1SECSR2 register ************/
  12120. #define RCC_APB1SECSR2_LPUART1SECF_Pos (0U)
  12121. #define RCC_APB1SECSR2_LPUART1SECF_Msk (0x1UL << RCC_APB1SECSR2_LPUART1SECF_Pos)/*!< 0x00000001 */
  12122. #define RCC_APB1SECSR2_LPUART1SECF RCC_APB1SECSR2_LPUART1SECF_Msk
  12123. #define RCC_APB1SECSR2_I2C4SECF_Pos (1U)
  12124. #define RCC_APB1SECSR2_I2C4SECF_Msk (0x1UL << RCC_APB1SECSR2_I2C4SECF_Pos)/*!< 0x00000002 */
  12125. #define RCC_APB1SECSR2_I2C4SECF RCC_APB1SECSR2_I2C4SECF_Msk
  12126. #define RCC_APB1SECSR2_LPTIM2SECF_Pos (5U)
  12127. #define RCC_APB1SECSR2_LPTIM2SECF_Msk (0x1UL << RCC_APB1SECSR2_LPTIM2SECF_Pos)/*!< 0x00000020 */
  12128. #define RCC_APB1SECSR2_LPTIM2SECF RCC_APB1SECSR2_LPTIM2SECF_Msk
  12129. #define RCC_APB1SECSR2_LPTIM3SECF_Pos (6U)
  12130. #define RCC_APB1SECSR2_LPTIM3SECF_Msk (0x1UL << RCC_APB1SECSR2_LPTIM3SECF_Pos)/*!< 0x00000040 */
  12131. #define RCC_APB1SECSR2_LPTIM3SECF RCC_APB1SECSR2_LPTIM3SECF_Msk
  12132. #define RCC_APB1SECSR2_FDCAN1SECF_Pos (9U)
  12133. #define RCC_APB1SECSR2_FDCAN1SECF_Msk (0x1UL << RCC_APB1SECSR2_FDCAN1SECF_Pos)/*!< 0x00000200 */
  12134. #define RCC_APB1SECSR2_FDCAN1SECF RCC_APB1SECSR2_FDCAN1SECF_Msk
  12135. #define RCC_APB1SECSR2_USBFSSECF_Pos (21U)
  12136. #define RCC_APB1SECSR2_USBFSSECF_Msk (0x1UL << RCC_APB1SECSR2_USBFSSECF_Pos)/*!< 0x00200000 */
  12137. #define RCC_APB1SECSR2_USBFSSECF RCC_APB1SECSR2_USBFSSECF_Msk
  12138. #define RCC_APB1SECSR2_UCPD1SECF_Pos (23U)
  12139. #define RCC_APB1SECSR2_UCPD1SECF_Msk (0x1UL << RCC_APB1SECSR2_UCPD1SECF_Pos)/*!< 0x00800000 */
  12140. #define RCC_APB1SECSR2_UCPD1SECF RCC_APB1SECSR2_UCPD1SECF_Msk
  12141. /******************** Bit definition for RCC_APB2SECSR register *************/
  12142. #define RCC_APB2SECSR_SYSCFGSECF_Pos (0U)
  12143. #define RCC_APB2SECSR_SYSCFGSECF_Msk (0x1UL << RCC_APB2SECSR_SYSCFGSECF_Pos)/*!< 0x00000001 */
  12144. #define RCC_APB2SECSR_SYSCFGSECF RCC_APB2SECSR_SYSCFGSECF_Msk
  12145. #define RCC_APB2SECSR_TIM1SECF_Pos (11U)
  12146. #define RCC_APB2SECSR_TIM1SECF_Msk (0x1UL << RCC_APB2SECSR_TIM1SECF_Pos)/*!< 0x00000800 */
  12147. #define RCC_APB2SECSR_TIM1SECF RCC_APB2SECSR_TIM1SECF_Msk
  12148. #define RCC_APB2SECSR_SPI1SECF_Pos (12U)
  12149. #define RCC_APB2SECSR_SPI1SECF_Msk (0x1UL << RCC_APB2SECSR_SPI1SECF_Pos)/*!< 0x00001000 */
  12150. #define RCC_APB2SECSR_SPI1SECF RCC_APB2SECSR_SPI1SECF_Msk
  12151. #define RCC_APB2SECSR_TIM8SECF_Pos (13U)
  12152. #define RCC_APB2SECSR_TIM8SECF_Msk (0x1UL << RCC_APB2SECSR_TIM8SECF_Pos)/*!< 0x00002000 */
  12153. #define RCC_APB2SECSR_TIM8SECF RCC_APB2SECSR_TIM8SECF_Msk
  12154. #define RCC_APB2SECSR_USART1SECF_Pos (14U)
  12155. #define RCC_APB2SECSR_USART1SECF_Msk (0x1UL << RCC_APB2SECSR_USART1SECF_Pos)/*!< 0x00004000 */
  12156. #define RCC_APB2SECSR_USART1SECF RCC_APB2SECSR_USART1SECF_Msk
  12157. #define RCC_APB2SECSR_TIM15SECF_Pos (16U)
  12158. #define RCC_APB2SECSR_TIM15SECF_Msk (0x1UL << RCC_APB2SECSR_TIM15SECF_Pos)/*!< 0x00010000 */
  12159. #define RCC_APB2SECSR_TIM15SECF RCC_APB2SECSR_TIM15SECF_Msk
  12160. #define RCC_APB2SECSR_TIM16SECF_Pos (17U)
  12161. #define RCC_APB2SECSR_TIM16SECF_Msk (0x1UL << RCC_APB2SECSR_TIM16SECF_Pos)/*!< 0x00020000 */
  12162. #define RCC_APB2SECSR_TIM16SECF RCC_APB2SECSR_TIM16SECF_Msk
  12163. #define RCC_APB2SECSR_TIM17SECF_Pos (18U)
  12164. #define RCC_APB2SECSR_TIM17SECF_Msk (0x1UL << RCC_APB2SECSR_TIM17SECF_Pos)/*!< 0x00040000 */
  12165. #define RCC_APB2SECSR_TIM17SECF RCC_APB2SECSR_TIM17SECF_Msk
  12166. #define RCC_APB2SECSR_SAI1SECF_Pos (21U)
  12167. #define RCC_APB2SECSR_SAI1SECF_Msk (0x1UL << RCC_APB2SECSR_SAI1SECF_Pos)/*!< 0x00200000 */
  12168. #define RCC_APB2SECSR_SAI1SECF RCC_APB2SECSR_SAI1SECF_Msk
  12169. #define RCC_APB2SECSR_SAI2SECF_Pos (22U)
  12170. #define RCC_APB2SECSR_SAI2SECF_Msk (0x1UL << RCC_APB2SECSR_SAI2SECF_Pos)/*!< 0x00400000 */
  12171. #define RCC_APB2SECSR_SAI2SECF RCC_APB2SECSR_SAI2SECF_Msk
  12172. #define RCC_APB2SECSR_DFSDM1SECF_Pos (24U)
  12173. #define RCC_APB2SECSR_DFSDM1SECF_Msk (0x1UL << RCC_APB2SECSR_DFSDM1SECF_Pos)/*!< 0x01000000 */
  12174. #define RCC_APB2SECSR_DFSDM1SECF RCC_APB2SECSR_DFSDM1SECF_Msk
  12175. /******************************************************************************/
  12176. /* */
  12177. /* RNG */
  12178. /* */
  12179. /******************************************************************************/
  12180. /*
  12181. * @brief Specific device feature definitions
  12182. */
  12183. #define RNG_VER_3_1
  12184. /******************** Bits definition for RNG_CR register *******************/
  12185. #define RNG_CR_RNGEN_Pos (2U)
  12186. #define RNG_CR_RNGEN_Msk (0x1UL << RNG_CR_RNGEN_Pos) /*!< 0x00000004 */
  12187. #define RNG_CR_RNGEN RNG_CR_RNGEN_Msk
  12188. #define RNG_CR_IE_Pos (3U)
  12189. #define RNG_CR_IE_Msk (0x1UL << RNG_CR_IE_Pos) /*!< 0x00000008 */
  12190. #define RNG_CR_IE RNG_CR_IE_Msk
  12191. #define RNG_CR_CED_Pos (5U)
  12192. #define RNG_CR_CED_Msk (0x1UL << RNG_CR_CED_Pos) /*!< 0x00000020 */
  12193. #define RNG_CR_CED RNG_CR_CED_Msk
  12194. #define RNG_CR_RNG_CONFIG3_Pos (8U)
  12195. #define RNG_CR_RNG_CONFIG3_Msk (0xFUL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000F00 */
  12196. #define RNG_CR_RNG_CONFIG3 RNG_CR_RNG_CONFIG3_Msk
  12197. #define RNG_CR_RNG_CONFIG3_0 (0x01UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000100 */
  12198. #define RNG_CR_RNG_CONFIG3_1 (0x02UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000200 */
  12199. #define RNG_CR_RNG_CONFIG3_2 (0x04UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000400 */
  12200. #define RNG_CR_RNG_CONFIG3_3 (0x08UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000800 */
  12201. #define RNG_CR_NISTC_Pos (12U)
  12202. #define RNG_CR_NISTC_Msk (0x1UL << RNG_CR_NISTC_Pos) /*!< 0x00001000 */
  12203. #define RNG_CR_NISTC RNG_CR_NISTC_Msk
  12204. #define RNG_CR_RNG_CONFIG2_Pos (13U)
  12205. #define RNG_CR_RNG_CONFIG2_Msk (0x7UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x0000E000 */
  12206. #define RNG_CR_RNG_CONFIG2 RNG_CR_RNG_CONFIG2_Msk
  12207. #define RNG_CR_RNG_CONFIG2_0 (0x01UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x00002000 */
  12208. #define RNG_CR_RNG_CONFIG2_1 (0x02UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x00004000 */
  12209. #define RNG_CR_RNG_CONFIG2_2 (0x04UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x00008000 */
  12210. #define RNG_CR_CLKDIV_Pos (16U)
  12211. #define RNG_CR_CLKDIV_Msk (0xFUL << RNG_CR_CLKDIV_Pos) /*!< 0x000F0000 */
  12212. #define RNG_CR_CLKDIV RNG_CR_CLKDIV_Msk
  12213. #define RNG_CR_CLKDIV_0 (0x01UL << RNG_CR_CLKDIV_Pos) /*!< 0x00010000 */
  12214. #define RNG_CR_CLKDIV_1 (0x02UL << RNG_CR_CLKDIV_Pos) /*!< 0x00020000 */
  12215. #define RNG_CR_CLKDIV_2 (0x04UL << RNG_CR_CLKDIV_Pos) /*!< 0x00040000 */
  12216. #define RNG_CR_CLKDIV_3 (0x08UL << RNG_CR_CLKDIV_Pos) /*!< 0x00080000 */
  12217. #define RNG_CR_RNG_CONFIG1_Pos (20U)
  12218. #define RNG_CR_RNG_CONFIG1_Msk (0x3FUL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x03F00000 */
  12219. #define RNG_CR_RNG_CONFIG1 RNG_CR_RNG_CONFIG1_Msk
  12220. #define RNG_CR_RNG_CONFIG1_0 (0x01UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00100000 */
  12221. #define RNG_CR_RNG_CONFIG1_1 (0x02UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00200000 */
  12222. #define RNG_CR_RNG_CONFIG1_2 (0x04UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00400000 */
  12223. #define RNG_CR_RNG_CONFIG1_3 (0x08UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00800000 */
  12224. #define RNG_CR_RNG_CONFIG1_4 (0x08UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x01000000 */
  12225. #define RNG_CR_RNG_CONFIG1_5 (0x08UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x02000000 */
  12226. #define RNG_CR_CONDRST_Pos (30U)
  12227. #define RNG_CR_CONDRST_Msk (0x1UL << RNG_CR_CONDRST_Pos) /*!< 0x40000000 */
  12228. #define RNG_CR_CONDRST RNG_CR_CONDRST_Msk
  12229. #define RNG_CR_CONFIGLOCK_Pos (31U)
  12230. #define RNG_CR_CONFIGLOCK_Msk (0x1UL << RNG_CR_CONFIGLOCK_Pos) /*!< 0x80000000 */
  12231. #define RNG_CR_CONFIGLOCK RNG_CR_CONFIGLOCK_Msk
  12232. /******************** Bits definition for RNG_SR register *******************/
  12233. #define RNG_SR_DRDY_Pos (0U)
  12234. #define RNG_SR_DRDY_Msk (0x1UL << RNG_SR_DRDY_Pos) /*!< 0x00000001 */
  12235. #define RNG_SR_DRDY RNG_SR_DRDY_Msk
  12236. #define RNG_SR_CECS_Pos (1U)
  12237. #define RNG_SR_CECS_Msk (0x1UL << RNG_SR_CECS_Pos) /*!< 0x00000002 */
  12238. #define RNG_SR_CECS RNG_SR_CECS_Msk
  12239. #define RNG_SR_SECS_Pos (2U)
  12240. #define RNG_SR_SECS_Msk (0x1UL << RNG_SR_SECS_Pos) /*!< 0x00000004 */
  12241. #define RNG_SR_SECS RNG_SR_SECS_Msk
  12242. #define RNG_SR_CEIS_Pos (5U)
  12243. #define RNG_SR_CEIS_Msk (0x1UL << RNG_SR_CEIS_Pos) /*!< 0x00000020 */
  12244. #define RNG_SR_CEIS RNG_SR_CEIS_Msk
  12245. #define RNG_SR_SEIS_Pos (6U)
  12246. #define RNG_SR_SEIS_Msk (0x1UL << RNG_SR_SEIS_Pos) /*!< 0x00000040 */
  12247. #define RNG_SR_SEIS RNG_SR_SEIS_Msk
  12248. /******************** Bits definition for RNG_DR register *******************/
  12249. #define RNG_DR_RNDATA_Pos (0U)
  12250. #define RNG_DR_RNDATA_Msk (0xFFFFFFFFUL << RNG_DR_RNDATA_Pos) /*!< 0xFFFFFFFF */
  12251. #define RNG_DR_RNDATA RNG_DR_RNDATA_Msk
  12252. /******************** Bits definition for RNG_HTCR register *****************/
  12253. #define RNG_HTCR_HTCFG_Pos (0U)
  12254. #define RNG_HTCR_HTCFG_Msk (0xFFFFFFFFUL << RNG_HTCR_HTCFG_Pos) /*!< 0xFFFFFFFF */
  12255. #define RNG_HTCR_HTCFG RNG_HTCR_HTCFG_Msk
  12256. /******************************************************************************/
  12257. /* */
  12258. /* Real-Time Clock (RTC) */
  12259. /* */
  12260. /******************************************************************************/
  12261. /******************** Bits definition for RTC_TR register *******************/
  12262. #define RTC_TR_PM_Pos (22U)
  12263. #define RTC_TR_PM_Msk (0x1UL << RTC_TR_PM_Pos) /*!< 0x00400000 */
  12264. #define RTC_TR_PM RTC_TR_PM_Msk
  12265. #define RTC_TR_HT_Pos (20U)
  12266. #define RTC_TR_HT_Msk (0x3UL << RTC_TR_HT_Pos) /*!< 0x00300000 */
  12267. #define RTC_TR_HT RTC_TR_HT_Msk
  12268. #define RTC_TR_HT_0 (0x1UL << RTC_TR_HT_Pos) /*!< 0x00100000 */
  12269. #define RTC_TR_HT_1 (0x2UL << RTC_TR_HT_Pos) /*!< 0x00200000 */
  12270. #define RTC_TR_HU_Pos (16U)
  12271. #define RTC_TR_HU_Msk (0xFUL << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  12272. #define RTC_TR_HU RTC_TR_HU_Msk
  12273. #define RTC_TR_HU_0 (0x1UL << RTC_TR_HU_Pos) /*!< 0x00010000 */
  12274. #define RTC_TR_HU_1 (0x2UL << RTC_TR_HU_Pos) /*!< 0x00020000 */
  12275. #define RTC_TR_HU_2 (0x4UL << RTC_TR_HU_Pos) /*!< 0x00040000 */
  12276. #define RTC_TR_HU_3 (0x8UL << RTC_TR_HU_Pos) /*!< 0x00080000 */
  12277. #define RTC_TR_MNT_Pos (12U)
  12278. #define RTC_TR_MNT_Msk (0x7UL << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  12279. #define RTC_TR_MNT RTC_TR_MNT_Msk
  12280. #define RTC_TR_MNT_0 (0x1UL << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  12281. #define RTC_TR_MNT_1 (0x2UL << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  12282. #define RTC_TR_MNT_2 (0x4UL << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  12283. #define RTC_TR_MNU_Pos (8U)
  12284. #define RTC_TR_MNU_Msk (0xFUL << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  12285. #define RTC_TR_MNU RTC_TR_MNU_Msk
  12286. #define RTC_TR_MNU_0 (0x1UL << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  12287. #define RTC_TR_MNU_1 (0x2UL << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  12288. #define RTC_TR_MNU_2 (0x4UL << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  12289. #define RTC_TR_MNU_3 (0x8UL << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  12290. #define RTC_TR_ST_Pos (4U)
  12291. #define RTC_TR_ST_Msk (0x7UL << RTC_TR_ST_Pos) /*!< 0x00000070 */
  12292. #define RTC_TR_ST RTC_TR_ST_Msk
  12293. #define RTC_TR_ST_0 (0x1UL << RTC_TR_ST_Pos) /*!< 0x00000010 */
  12294. #define RTC_TR_ST_1 (0x2UL << RTC_TR_ST_Pos) /*!< 0x00000020 */
  12295. #define RTC_TR_ST_2 (0x4UL << RTC_TR_ST_Pos) /*!< 0x00000040 */
  12296. #define RTC_TR_SU_Pos (0U)
  12297. #define RTC_TR_SU_Msk (0xFUL << RTC_TR_SU_Pos) /*!< 0x0000000F */
  12298. #define RTC_TR_SU RTC_TR_SU_Msk
  12299. #define RTC_TR_SU_0 (0x1UL << RTC_TR_SU_Pos) /*!< 0x00000001 */
  12300. #define RTC_TR_SU_1 (0x2UL << RTC_TR_SU_Pos) /*!< 0x00000002 */
  12301. #define RTC_TR_SU_2 (0x4UL << RTC_TR_SU_Pos) /*!< 0x00000004 */
  12302. #define RTC_TR_SU_3 (0x8UL << RTC_TR_SU_Pos) /*!< 0x00000008 */
  12303. /******************** Bits definition for RTC_DR register *******************/
  12304. #define RTC_DR_YT_Pos (20U)
  12305. #define RTC_DR_YT_Msk (0xFUL << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  12306. #define RTC_DR_YT RTC_DR_YT_Msk
  12307. #define RTC_DR_YT_0 (0x1UL << RTC_DR_YT_Pos) /*!< 0x00100000 */
  12308. #define RTC_DR_YT_1 (0x2UL << RTC_DR_YT_Pos) /*!< 0x00200000 */
  12309. #define RTC_DR_YT_2 (0x4UL << RTC_DR_YT_Pos) /*!< 0x00400000 */
  12310. #define RTC_DR_YT_3 (0x8UL << RTC_DR_YT_Pos) /*!< 0x00800000 */
  12311. #define RTC_DR_YU_Pos (16U)
  12312. #define RTC_DR_YU_Msk (0xFUL << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  12313. #define RTC_DR_YU RTC_DR_YU_Msk
  12314. #define RTC_DR_YU_0 (0x1UL << RTC_DR_YU_Pos) /*!< 0x00010000 */
  12315. #define RTC_DR_YU_1 (0x2UL << RTC_DR_YU_Pos) /*!< 0x00020000 */
  12316. #define RTC_DR_YU_2 (0x4UL << RTC_DR_YU_Pos) /*!< 0x00040000 */
  12317. #define RTC_DR_YU_3 (0x8UL << RTC_DR_YU_Pos) /*!< 0x00080000 */
  12318. #define RTC_DR_WDU_Pos (13U)
  12319. #define RTC_DR_WDU_Msk (0x7UL << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  12320. #define RTC_DR_WDU RTC_DR_WDU_Msk
  12321. #define RTC_DR_WDU_0 (0x1UL << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  12322. #define RTC_DR_WDU_1 (0x2UL << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  12323. #define RTC_DR_WDU_2 (0x4UL << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  12324. #define RTC_DR_MT_Pos (12U)
  12325. #define RTC_DR_MT_Msk (0x1UL << RTC_DR_MT_Pos) /*!< 0x00001000 */
  12326. #define RTC_DR_MT RTC_DR_MT_Msk
  12327. #define RTC_DR_MU_Pos (8U)
  12328. #define RTC_DR_MU_Msk (0xFUL << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  12329. #define RTC_DR_MU RTC_DR_MU_Msk
  12330. #define RTC_DR_MU_0 (0x1UL << RTC_DR_MU_Pos) /*!< 0x00000100 */
  12331. #define RTC_DR_MU_1 (0x2UL << RTC_DR_MU_Pos) /*!< 0x00000200 */
  12332. #define RTC_DR_MU_2 (0x4UL << RTC_DR_MU_Pos) /*!< 0x00000400 */
  12333. #define RTC_DR_MU_3 (0x8UL << RTC_DR_MU_Pos) /*!< 0x00000800 */
  12334. #define RTC_DR_DT_Pos (4U)
  12335. #define RTC_DR_DT_Msk (0x3UL << RTC_DR_DT_Pos) /*!< 0x00000030 */
  12336. #define RTC_DR_DT RTC_DR_DT_Msk
  12337. #define RTC_DR_DT_0 (0x1UL << RTC_DR_DT_Pos) /*!< 0x00000010 */
  12338. #define RTC_DR_DT_1 (0x2UL << RTC_DR_DT_Pos) /*!< 0x00000020 */
  12339. #define RTC_DR_DU_Pos (0U)
  12340. #define RTC_DR_DU_Msk (0xFUL << RTC_DR_DU_Pos) /*!< 0x0000000F */
  12341. #define RTC_DR_DU RTC_DR_DU_Msk
  12342. #define RTC_DR_DU_0 (0x1UL << RTC_DR_DU_Pos) /*!< 0x00000001 */
  12343. #define RTC_DR_DU_1 (0x2UL << RTC_DR_DU_Pos) /*!< 0x00000002 */
  12344. #define RTC_DR_DU_2 (0x4UL << RTC_DR_DU_Pos) /*!< 0x00000004 */
  12345. #define RTC_DR_DU_3 (0x8UL << RTC_DR_DU_Pos) /*!< 0x00000008 */
  12346. /******************** Bits definition for RTC_SSR register ******************/
  12347. #define RTC_SSR_SS_Pos (0U)
  12348. #define RTC_SSR_SS_Msk (0xFFFFUL << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  12349. #define RTC_SSR_SS RTC_SSR_SS_Msk
  12350. /******************** Bits definition for RTC_ICSR register ******************/
  12351. #define RTC_ICSR_RECALPF_Pos (16U)
  12352. #define RTC_ICSR_RECALPF_Msk (0x1UL << RTC_ICSR_RECALPF_Pos) /*!< 0x00010000 */
  12353. #define RTC_ICSR_RECALPF RTC_ICSR_RECALPF_Msk
  12354. #define RTC_ICSR_INIT_Pos (7U)
  12355. #define RTC_ICSR_INIT_Msk (0x1UL << RTC_ICSR_INIT_Pos) /*!< 0x00000080 */
  12356. #define RTC_ICSR_INIT RTC_ICSR_INIT_Msk
  12357. #define RTC_ICSR_INITF_Pos (6U)
  12358. #define RTC_ICSR_INITF_Msk (0x1UL << RTC_ICSR_INITF_Pos) /*!< 0x00000040 */
  12359. #define RTC_ICSR_INITF RTC_ICSR_INITF_Msk
  12360. #define RTC_ICSR_RSF_Pos (5U)
  12361. #define RTC_ICSR_RSF_Msk (0x1UL << RTC_ICSR_RSF_Pos) /*!< 0x00000020 */
  12362. #define RTC_ICSR_RSF RTC_ICSR_RSF_Msk
  12363. #define RTC_ICSR_INITS_Pos (4U)
  12364. #define RTC_ICSR_INITS_Msk (0x1UL << RTC_ICSR_INITS_Pos) /*!< 0x00000010 */
  12365. #define RTC_ICSR_INITS RTC_ICSR_INITS_Msk
  12366. #define RTC_ICSR_SHPF_Pos (3U)
  12367. #define RTC_ICSR_SHPF_Msk (0x1UL << RTC_ICSR_SHPF_Pos) /*!< 0x00000008 */
  12368. #define RTC_ICSR_SHPF RTC_ICSR_SHPF_Msk
  12369. #define RTC_ICSR_WUTWF_Pos (2U)
  12370. #define RTC_ICSR_WUTWF_Msk (0x1UL << RTC_ICSR_WUTWF_Pos) /*!< 0x00000004 */
  12371. #define RTC_ICSR_WUTWF RTC_ICSR_WUTWF_Msk
  12372. /******************** Bits definition for RTC_PRER register *****************/
  12373. #define RTC_PRER_PREDIV_A_Pos (16U)
  12374. #define RTC_PRER_PREDIV_A_Msk (0x7FUL << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  12375. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  12376. #define RTC_PRER_PREDIV_S_Pos (0U)
  12377. #define RTC_PRER_PREDIV_S_Msk (0x7FFFUL << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  12378. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  12379. /******************** Bits definition for RTC_WUTR register *****************/
  12380. #define RTC_WUTR_WUTOCLR_Pos (16U)
  12381. #define RTC_WUTR_WUTOCLR_Msk (0xFFFFUL << RTC_WUTR_WUTOCLR_Pos) /*!< 0xFFFF0000 */
  12382. #define RTC_WUTR_WUTOCLR RTC_WUTR_WUTOCLR_Msk
  12383. #define RTC_WUTR_WUT_Pos (0U)
  12384. #define RTC_WUTR_WUT_Msk (0xFFFFUL << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  12385. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  12386. /******************** Bits definition for RTC_CR register *******************/
  12387. #define RTC_CR_OUT2EN_Pos (31U)
  12388. #define RTC_CR_OUT2EN_Msk (0x1UL << RTC_CR_OUT2EN_Pos) /*!< 0x80000000 */
  12389. #define RTC_CR_OUT2EN RTC_CR_OUT2EN_Msk /*!<RTC_OUT2 output enable */
  12390. #define RTC_CR_TAMPALRM_TYPE_Pos (30U)
  12391. #define RTC_CR_TAMPALRM_TYPE_Msk (0x1UL << RTC_CR_TAMPALRM_TYPE_Pos) /*!< 0x40000000 */
  12392. #define RTC_CR_TAMPALRM_TYPE RTC_CR_TAMPALRM_TYPE_Msk /*!<TAMPALARM output type */
  12393. #define RTC_CR_TAMPALRM_PU_Pos (29U)
  12394. #define RTC_CR_TAMPALRM_PU_Msk (0x1UL << RTC_CR_TAMPALRM_PU_Pos) /*!< 0x20000000 */
  12395. #define RTC_CR_TAMPALRM_PU RTC_CR_TAMPALRM_PU_Msk /*!<TAMPALARM output pull-up config */
  12396. #define RTC_CR_TAMPOE_Pos (26U)
  12397. #define RTC_CR_TAMPOE_Msk (0x1UL << RTC_CR_TAMPOE_Pos) /*!< 0x04000000 */
  12398. #define RTC_CR_TAMPOE RTC_CR_TAMPOE_Msk /*!<Tamper detection output enable on TAMPALARM */
  12399. #define RTC_CR_TAMPTS_Pos (25U)
  12400. #define RTC_CR_TAMPTS_Msk (0x1UL << RTC_CR_TAMPTS_Pos) /*!< 0x02000000 */
  12401. #define RTC_CR_TAMPTS RTC_CR_TAMPTS_Msk /*!<Activate timestamp on tamper detection event */
  12402. #define RTC_CR_ITSE_Pos (24U)
  12403. #define RTC_CR_ITSE_Msk (0x1UL << RTC_CR_ITSE_Pos) /*!< 0x01000000 */
  12404. #define RTC_CR_ITSE RTC_CR_ITSE_Msk /*!<Timestamp on internal event enable */
  12405. #define RTC_CR_COE_Pos (23U)
  12406. #define RTC_CR_COE_Msk (0x1UL << RTC_CR_COE_Pos) /*!< 0x00800000 */
  12407. #define RTC_CR_COE RTC_CR_COE_Msk
  12408. #define RTC_CR_OSEL_Pos (21U)
  12409. #define RTC_CR_OSEL_Msk (0x3UL << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  12410. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  12411. #define RTC_CR_OSEL_0 (0x1UL << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  12412. #define RTC_CR_OSEL_1 (0x2UL << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  12413. #define RTC_CR_POL_Pos (20U)
  12414. #define RTC_CR_POL_Msk (0x1UL << RTC_CR_POL_Pos) /*!< 0x00100000 */
  12415. #define RTC_CR_POL RTC_CR_POL_Msk
  12416. #define RTC_CR_COSEL_Pos (19U)
  12417. #define RTC_CR_COSEL_Msk (0x1UL << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  12418. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  12419. #define RTC_CR_BKP_Pos (18U)
  12420. #define RTC_CR_BKP_Msk (0x1UL << RTC_CR_BKP_Pos) /*!< 0x00040000 */
  12421. #define RTC_CR_BKP RTC_CR_BKP_Msk
  12422. #define RTC_CR_SUB1H_Pos (17U)
  12423. #define RTC_CR_SUB1H_Msk (0x1UL << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  12424. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  12425. #define RTC_CR_ADD1H_Pos (16U)
  12426. #define RTC_CR_ADD1H_Msk (0x1UL << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  12427. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  12428. #define RTC_CR_TSIE_Pos (15U)
  12429. #define RTC_CR_TSIE_Msk (0x1UL << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  12430. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  12431. #define RTC_CR_WUTIE_Pos (14U)
  12432. #define RTC_CR_WUTIE_Msk (0x1UL << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  12433. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  12434. #define RTC_CR_ALRBIE_Pos (13U)
  12435. #define RTC_CR_ALRBIE_Msk (0x1UL << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */
  12436. #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk
  12437. #define RTC_CR_ALRAIE_Pos (12U)
  12438. #define RTC_CR_ALRAIE_Msk (0x1UL << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  12439. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  12440. #define RTC_CR_TSE_Pos (11U)
  12441. #define RTC_CR_TSE_Msk (0x1UL << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  12442. #define RTC_CR_TSE RTC_CR_TSE_Msk
  12443. #define RTC_CR_WUTE_Pos (10U)
  12444. #define RTC_CR_WUTE_Msk (0x1UL << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  12445. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  12446. #define RTC_CR_ALRBE_Pos (9U)
  12447. #define RTC_CR_ALRBE_Msk (0x1UL << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */
  12448. #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk
  12449. #define RTC_CR_ALRAE_Pos (8U)
  12450. #define RTC_CR_ALRAE_Msk (0x1UL << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  12451. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  12452. #define RTC_CR_FMT_Pos (6U)
  12453. #define RTC_CR_FMT_Msk (0x1UL << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  12454. #define RTC_CR_FMT RTC_CR_FMT_Msk
  12455. #define RTC_CR_BYPSHAD_Pos (5U)
  12456. #define RTC_CR_BYPSHAD_Msk (0x1UL << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  12457. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  12458. #define RTC_CR_REFCKON_Pos (4U)
  12459. #define RTC_CR_REFCKON_Msk (0x1UL << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  12460. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  12461. #define RTC_CR_TSEDGE_Pos (3U)
  12462. #define RTC_CR_TSEDGE_Msk (0x1UL << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  12463. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  12464. #define RTC_CR_WUCKSEL_Pos (0U)
  12465. #define RTC_CR_WUCKSEL_Msk (0x7UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  12466. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  12467. #define RTC_CR_WUCKSEL_0 (0x1UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  12468. #define RTC_CR_WUCKSEL_1 (0x2UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  12469. #define RTC_CR_WUCKSEL_2 (0x4UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  12470. /******************** Bits definition for RTC_PRIVCR register ******************/
  12471. #define RTC_PRIVCR_PRIV_Pos (15U)
  12472. #define RTC_PRIVCR_PRIV_Msk (0x1UL << RTC_PRIVCR_PRIV_Pos) /*!< 0x00008000 */
  12473. #define RTC_PRIVCR_PRIV RTC_PRIVCR_PRIV_Msk
  12474. #define RTC_PRIVCR_INITPRIV_Pos (14U)
  12475. #define RTC_PRIVCR_INITPRIV_Msk (0x1UL << RTC_PRIVCR_INITPRIV_Pos) /*!< 0x00004000 */
  12476. #define RTC_PRIVCR_INITPRIV RTC_PRIVCR_INITPRIV_Msk
  12477. #define RTC_PRIVCR_CALPRIV_Pos (13U)
  12478. #define RTC_PRIVCR_CALPRIV_Msk (0x1UL << RTC_PRIVCR_CALPRIV_Pos) /*!< 0x00002000 */
  12479. #define RTC_PRIVCR_CALPRIV RTC_PRIVCR_CALPRIV_Msk
  12480. #define RTC_PRIVCR_TSPRIV_Pos (3U)
  12481. #define RTC_PRIVCR_TSPRIV_Msk (0x1UL << RTC_PRIVCR_TSPRIV_Pos) /*!< 0x00000008 */
  12482. #define RTC_PRIVCR_TSPRIV RTC_PRIVCR_TSPRIV_Msk
  12483. #define RTC_PRIVCR_WUTPRIV_Pos (2U)
  12484. #define RTC_PRIVCR_WUTPRIV_Msk (0x1UL << RTC_PRIVCR_WUTPRIV_Pos) /*!< 0x00000004 */
  12485. #define RTC_PRIVCR_WUTPRIV RTC_PRIVCR_WUTPRIV_Msk
  12486. #define RTC_PRIVCR_ALRBPRIV_Pos (1U)
  12487. #define RTC_PRIVCR_ALRBPRIV_Msk (0x1UL << RTC_PRIVCR_ALRBPRIV_Pos) /*!< 0x00000002 */
  12488. #define RTC_PRIVCR_ALRBPRIV RTC_PRIVCR_ALRBPRIV_Msk
  12489. #define RTC_PRIVCR_ALRAPRIV_Pos (0U)
  12490. #define RTC_PRIVCR_ALRAPRIV_Msk (0x1UL << RTC_PRIVCR_ALRAPRIV_Pos) /*!< 0x00000001 */
  12491. #define RTC_PRIVCR_ALRAPRIV RTC_PRIVCR_ALRAPRIV_Msk
  12492. /******************** Bits definition for RTC_SMCR register ******************/
  12493. #define RTC_SMCR_DECPROT_Pos (15U)
  12494. #define RTC_SMCR_DECPROT_Msk (0x1UL << RTC_SMCR_DECPROT_Pos) /*!< 0x00008000 */
  12495. #define RTC_SMCR_DECPROT RTC_SMCR_DECPROT_Msk
  12496. #define RTC_SMCR_INITDPROT_Pos (14U)
  12497. #define RTC_SMCR_INITDPROT_Msk (0x1UL << RTC_SMCR_INITDPROT_Pos) /*!< 0x00004000 */
  12498. #define RTC_SMCR_INITDPROT RTC_SMCR_INITDPROT_Msk
  12499. #define RTC_SMCR_CALDPROT_Pos (13U)
  12500. #define RTC_SMCR_CALDPROT_Msk (0x1UL << RTC_SMCR_CALDPROT_Pos) /*!< 0x00002000 */
  12501. #define RTC_SMCR_CALDPROT RTC_SMCR_CALDPROT_Msk
  12502. #define RTC_SMCR_TSDPROT_Pos (3U)
  12503. #define RTC_SMCR_TSDPROT_Msk (0x1UL << RTC_SMCR_TSDPROT_Pos) /*!< 0x00000008 */
  12504. #define RTC_SMCR_TSDPROT RTC_SMCR_TSDPROT_Msk
  12505. #define RTC_SMCR_WUTDPROT_Pos (2U)
  12506. #define RTC_SMCR_WUTDPROT_Msk (0x1UL << RTC_SMCR_WUTDPROT_Pos) /*!< 0x00000004 */
  12507. #define RTC_SMCR_WUTDPROT RTC_SMCR_WUTDPROT_Msk
  12508. #define RTC_SMCR_ALRBDPROT_Pos (1U)
  12509. #define RTC_SMCR_ALRBDPROT_Msk (0x1UL << RTC_SMCR_ALRBDPROT_Pos) /*!< 0x00000002 */
  12510. #define RTC_SMCR_ALRBDPROT RTC_SMCR_ALRBDPROT_Msk
  12511. #define RTC_SMCR_ALRADPROT_Pos (0U)
  12512. #define RTC_SMCR_ALRADPROT_Msk (0x1UL << RTC_SMCR_ALRADPROT_Pos) /*!< 0x00000001 */
  12513. #define RTC_SMCR_ALRADPROT RTC_SMCR_ALRADPROT_Msk
  12514. /******************** Bits definition for RTC_WPR register ******************/
  12515. #define RTC_WPR_KEY_Pos (0U)
  12516. #define RTC_WPR_KEY_Msk (0xFFUL << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  12517. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  12518. /******************** Bits definition for RTC_CALR register *****************/
  12519. #define RTC_CALR_CALP_Pos (15U)
  12520. #define RTC_CALR_CALP_Msk (0x1UL << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  12521. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  12522. #define RTC_CALR_CALW8_Pos (14U)
  12523. #define RTC_CALR_CALW8_Msk (0x1UL << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  12524. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  12525. #define RTC_CALR_CALW16_Pos (13U)
  12526. #define RTC_CALR_CALW16_Msk (0x1UL << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  12527. #define RTC_CALR_LPCAL RTC_CALR_LPCAL_Msk
  12528. #define RTC_CALR_LPCAL_Pos (12U)
  12529. #define RTC_CALR_LPCAL_Msk (0x1UL << RTC_CALR_LPCAL_Pos) /*!< 0x00001000 */
  12530. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  12531. #define RTC_CALR_CALM_Pos (0U)
  12532. #define RTC_CALR_CALM_Msk (0x1FFUL << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  12533. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  12534. #define RTC_CALR_CALM_0 (0x001UL << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  12535. #define RTC_CALR_CALM_1 (0x002UL << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  12536. #define RTC_CALR_CALM_2 (0x004UL << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  12537. #define RTC_CALR_CALM_3 (0x008UL << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  12538. #define RTC_CALR_CALM_4 (0x010UL << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  12539. #define RTC_CALR_CALM_5 (0x020UL << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  12540. #define RTC_CALR_CALM_6 (0x040UL << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  12541. #define RTC_CALR_CALM_7 (0x080UL << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  12542. #define RTC_CALR_CALM_8 (0x100UL << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  12543. /******************** Bits definition for RTC_SHIFTR register ***************/
  12544. #define RTC_SHIFTR_ADD1S_Pos (31U)
  12545. #define RTC_SHIFTR_ADD1S_Msk (0x1UL << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  12546. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  12547. #define RTC_SHIFTR_SUBFS_Pos (0U)
  12548. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFUL << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  12549. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  12550. /******************** Bits definition for RTC_TSTR register *****************/
  12551. #define RTC_TSTR_PM_Pos (22U)
  12552. #define RTC_TSTR_PM_Msk (0x1UL << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  12553. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  12554. #define RTC_TSTR_HT_Pos (20U)
  12555. #define RTC_TSTR_HT_Msk (0x3UL << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  12556. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  12557. #define RTC_TSTR_HT_0 (0x1UL << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  12558. #define RTC_TSTR_HT_1 (0x2UL << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  12559. #define RTC_TSTR_HU_Pos (16U)
  12560. #define RTC_TSTR_HU_Msk (0xFUL << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  12561. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  12562. #define RTC_TSTR_HU_0 (0x1UL << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  12563. #define RTC_TSTR_HU_1 (0x2UL << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  12564. #define RTC_TSTR_HU_2 (0x4UL << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  12565. #define RTC_TSTR_HU_3 (0x8UL << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  12566. #define RTC_TSTR_MNT_Pos (12U)
  12567. #define RTC_TSTR_MNT_Msk (0x7UL << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  12568. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  12569. #define RTC_TSTR_MNT_0 (0x1UL << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  12570. #define RTC_TSTR_MNT_1 (0x2UL << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  12571. #define RTC_TSTR_MNT_2 (0x4UL << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  12572. #define RTC_TSTR_MNU_Pos (8U)
  12573. #define RTC_TSTR_MNU_Msk (0xFUL << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  12574. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  12575. #define RTC_TSTR_MNU_0 (0x1UL << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  12576. #define RTC_TSTR_MNU_1 (0x2UL << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  12577. #define RTC_TSTR_MNU_2 (0x4UL << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  12578. #define RTC_TSTR_MNU_3 (0x8UL << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  12579. #define RTC_TSTR_ST_Pos (4U)
  12580. #define RTC_TSTR_ST_Msk (0x7UL << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  12581. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  12582. #define RTC_TSTR_ST_0 (0x1UL << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  12583. #define RTC_TSTR_ST_1 (0x2UL << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  12584. #define RTC_TSTR_ST_2 (0x4UL << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  12585. #define RTC_TSTR_SU_Pos (0U)
  12586. #define RTC_TSTR_SU_Msk (0xFUL << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  12587. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  12588. #define RTC_TSTR_SU_0 (0x1UL << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  12589. #define RTC_TSTR_SU_1 (0x2UL << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  12590. #define RTC_TSTR_SU_2 (0x4UL << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  12591. #define RTC_TSTR_SU_3 (0x8UL << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  12592. /******************** Bits definition for RTC_TSDR register *****************/
  12593. #define RTC_TSDR_WDU_Pos (13U)
  12594. #define RTC_TSDR_WDU_Msk (0x7UL << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  12595. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  12596. #define RTC_TSDR_WDU_0 (0x1UL << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  12597. #define RTC_TSDR_WDU_1 (0x2UL << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  12598. #define RTC_TSDR_WDU_2 (0x4UL << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  12599. #define RTC_TSDR_MT_Pos (12U)
  12600. #define RTC_TSDR_MT_Msk (0x1UL << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  12601. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  12602. #define RTC_TSDR_MU_Pos (8U)
  12603. #define RTC_TSDR_MU_Msk (0xFUL << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  12604. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  12605. #define RTC_TSDR_MU_0 (0x1UL << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  12606. #define RTC_TSDR_MU_1 (0x2UL << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  12607. #define RTC_TSDR_MU_2 (0x4UL << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  12608. #define RTC_TSDR_MU_3 (0x8UL << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  12609. #define RTC_TSDR_DT_Pos (4U)
  12610. #define RTC_TSDR_DT_Msk (0x3UL << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  12611. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  12612. #define RTC_TSDR_DT_0 (0x1UL << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  12613. #define RTC_TSDR_DT_1 (0x2UL << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  12614. #define RTC_TSDR_DU_Pos (0U)
  12615. #define RTC_TSDR_DU_Msk (0xFUL << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  12616. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  12617. #define RTC_TSDR_DU_0 (0x1UL << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  12618. #define RTC_TSDR_DU_1 (0x2UL << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  12619. #define RTC_TSDR_DU_2 (0x4UL << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  12620. #define RTC_TSDR_DU_3 (0x8UL << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  12621. /******************** Bits definition for RTC_TSSSR register ****************/
  12622. #define RTC_TSSSR_SS_Pos (0U)
  12623. #define RTC_TSSSR_SS_Msk (0xFFFFUL << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  12624. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  12625. /******************** Bits definition for RTC_ALRMAR register ***************/
  12626. #define RTC_ALRMAR_MSK4_Pos (31U)
  12627. #define RTC_ALRMAR_MSK4_Msk (0x1UL << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  12628. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  12629. #define RTC_ALRMAR_WDSEL_Pos (30U)
  12630. #define RTC_ALRMAR_WDSEL_Msk (0x1UL << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  12631. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  12632. #define RTC_ALRMAR_DT_Pos (28U)
  12633. #define RTC_ALRMAR_DT_Msk (0x3UL << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  12634. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  12635. #define RTC_ALRMAR_DT_0 (0x1UL << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  12636. #define RTC_ALRMAR_DT_1 (0x2UL << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  12637. #define RTC_ALRMAR_DU_Pos (24U)
  12638. #define RTC_ALRMAR_DU_Msk (0xFUL << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  12639. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  12640. #define RTC_ALRMAR_DU_0 (0x1UL << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  12641. #define RTC_ALRMAR_DU_1 (0x2UL << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  12642. #define RTC_ALRMAR_DU_2 (0x4UL << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  12643. #define RTC_ALRMAR_DU_3 (0x8UL << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  12644. #define RTC_ALRMAR_MSK3_Pos (23U)
  12645. #define RTC_ALRMAR_MSK3_Msk (0x1UL << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  12646. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  12647. #define RTC_ALRMAR_PM_Pos (22U)
  12648. #define RTC_ALRMAR_PM_Msk (0x1UL << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  12649. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  12650. #define RTC_ALRMAR_HT_Pos (20U)
  12651. #define RTC_ALRMAR_HT_Msk (0x3UL << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  12652. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  12653. #define RTC_ALRMAR_HT_0 (0x1UL << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  12654. #define RTC_ALRMAR_HT_1 (0x2UL << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  12655. #define RTC_ALRMAR_HU_Pos (16U)
  12656. #define RTC_ALRMAR_HU_Msk (0xFUL << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  12657. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  12658. #define RTC_ALRMAR_HU_0 (0x1UL << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  12659. #define RTC_ALRMAR_HU_1 (0x2UL << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  12660. #define RTC_ALRMAR_HU_2 (0x4UL << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  12661. #define RTC_ALRMAR_HU_3 (0x8UL << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  12662. #define RTC_ALRMAR_MSK2_Pos (15U)
  12663. #define RTC_ALRMAR_MSK2_Msk (0x1UL << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  12664. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  12665. #define RTC_ALRMAR_MNT_Pos (12U)
  12666. #define RTC_ALRMAR_MNT_Msk (0x7UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  12667. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  12668. #define RTC_ALRMAR_MNT_0 (0x1UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  12669. #define RTC_ALRMAR_MNT_1 (0x2UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  12670. #define RTC_ALRMAR_MNT_2 (0x4UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  12671. #define RTC_ALRMAR_MNU_Pos (8U)
  12672. #define RTC_ALRMAR_MNU_Msk (0xFUL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  12673. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  12674. #define RTC_ALRMAR_MNU_0 (0x1UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  12675. #define RTC_ALRMAR_MNU_1 (0x2UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  12676. #define RTC_ALRMAR_MNU_2 (0x4UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  12677. #define RTC_ALRMAR_MNU_3 (0x8UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  12678. #define RTC_ALRMAR_MSK1_Pos (7U)
  12679. #define RTC_ALRMAR_MSK1_Msk (0x1UL << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  12680. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  12681. #define RTC_ALRMAR_ST_Pos (4U)
  12682. #define RTC_ALRMAR_ST_Msk (0x7UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  12683. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  12684. #define RTC_ALRMAR_ST_0 (0x1UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  12685. #define RTC_ALRMAR_ST_1 (0x2UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  12686. #define RTC_ALRMAR_ST_2 (0x4UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  12687. #define RTC_ALRMAR_SU_Pos (0U)
  12688. #define RTC_ALRMAR_SU_Msk (0xFUL << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  12689. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  12690. #define RTC_ALRMAR_SU_0 (0x1UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  12691. #define RTC_ALRMAR_SU_1 (0x2UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  12692. #define RTC_ALRMAR_SU_2 (0x4UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  12693. #define RTC_ALRMAR_SU_3 (0x8UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  12694. /******************** Bits definition for RTC_ALRMASSR register *************/
  12695. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  12696. #define RTC_ALRMASSR_MASKSS_Msk (0xFUL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  12697. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  12698. #define RTC_ALRMASSR_MASKSS_0 (0x1UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  12699. #define RTC_ALRMASSR_MASKSS_1 (0x2UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  12700. #define RTC_ALRMASSR_MASKSS_2 (0x4UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  12701. #define RTC_ALRMASSR_MASKSS_3 (0x8UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  12702. #define RTC_ALRMASSR_SS_Pos (0U)
  12703. #define RTC_ALRMASSR_SS_Msk (0x7FFFUL << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  12704. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  12705. /******************** Bits definition for RTC_ALRMBR register ***************/
  12706. #define RTC_ALRMBR_MSK4_Pos (31U)
  12707. #define RTC_ALRMBR_MSK4_Msk (0x1UL << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */
  12708. #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk
  12709. #define RTC_ALRMBR_WDSEL_Pos (30U)
  12710. #define RTC_ALRMBR_WDSEL_Msk (0x1UL << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */
  12711. #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk
  12712. #define RTC_ALRMBR_DT_Pos (28U)
  12713. #define RTC_ALRMBR_DT_Msk (0x3UL << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */
  12714. #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk
  12715. #define RTC_ALRMBR_DT_0 (0x1UL << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */
  12716. #define RTC_ALRMBR_DT_1 (0x2UL << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */
  12717. #define RTC_ALRMBR_DU_Pos (24U)
  12718. #define RTC_ALRMBR_DU_Msk (0xFUL << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */
  12719. #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk
  12720. #define RTC_ALRMBR_DU_0 (0x1UL << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */
  12721. #define RTC_ALRMBR_DU_1 (0x2UL << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */
  12722. #define RTC_ALRMBR_DU_2 (0x4UL << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */
  12723. #define RTC_ALRMBR_DU_3 (0x8UL << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */
  12724. #define RTC_ALRMBR_MSK3_Pos (23U)
  12725. #define RTC_ALRMBR_MSK3_Msk (0x1UL << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */
  12726. #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk
  12727. #define RTC_ALRMBR_PM_Pos (22U)
  12728. #define RTC_ALRMBR_PM_Msk (0x1UL << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */
  12729. #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk
  12730. #define RTC_ALRMBR_HT_Pos (20U)
  12731. #define RTC_ALRMBR_HT_Msk (0x3UL << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */
  12732. #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk
  12733. #define RTC_ALRMBR_HT_0 (0x1UL << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */
  12734. #define RTC_ALRMBR_HT_1 (0x2UL << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */
  12735. #define RTC_ALRMBR_HU_Pos (16U)
  12736. #define RTC_ALRMBR_HU_Msk (0xFUL << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */
  12737. #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk
  12738. #define RTC_ALRMBR_HU_0 (0x1UL << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */
  12739. #define RTC_ALRMBR_HU_1 (0x2UL << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */
  12740. #define RTC_ALRMBR_HU_2 (0x4UL << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */
  12741. #define RTC_ALRMBR_HU_3 (0x8UL << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */
  12742. #define RTC_ALRMBR_MSK2_Pos (15U)
  12743. #define RTC_ALRMBR_MSK2_Msk (0x1UL << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */
  12744. #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk
  12745. #define RTC_ALRMBR_MNT_Pos (12U)
  12746. #define RTC_ALRMBR_MNT_Msk (0x7UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */
  12747. #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk
  12748. #define RTC_ALRMBR_MNT_0 (0x1UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */
  12749. #define RTC_ALRMBR_MNT_1 (0x2UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */
  12750. #define RTC_ALRMBR_MNT_2 (0x4UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */
  12751. #define RTC_ALRMBR_MNU_Pos (8U)
  12752. #define RTC_ALRMBR_MNU_Msk (0xFUL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */
  12753. #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk
  12754. #define RTC_ALRMBR_MNU_0 (0x1UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */
  12755. #define RTC_ALRMBR_MNU_1 (0x2UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */
  12756. #define RTC_ALRMBR_MNU_2 (0x4UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */
  12757. #define RTC_ALRMBR_MNU_3 (0x8UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */
  12758. #define RTC_ALRMBR_MSK1_Pos (7U)
  12759. #define RTC_ALRMBR_MSK1_Msk (0x1UL << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */
  12760. #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk
  12761. #define RTC_ALRMBR_ST_Pos (4U)
  12762. #define RTC_ALRMBR_ST_Msk (0x7UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */
  12763. #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk
  12764. #define RTC_ALRMBR_ST_0 (0x1UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */
  12765. #define RTC_ALRMBR_ST_1 (0x2UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */
  12766. #define RTC_ALRMBR_ST_2 (0x4UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */
  12767. #define RTC_ALRMBR_SU_Pos (0U)
  12768. #define RTC_ALRMBR_SU_Msk (0xFUL << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */
  12769. #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk
  12770. #define RTC_ALRMBR_SU_0 (0x1UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */
  12771. #define RTC_ALRMBR_SU_1 (0x2UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */
  12772. #define RTC_ALRMBR_SU_2 (0x4UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */
  12773. #define RTC_ALRMBR_SU_3 (0x8UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */
  12774. /******************** Bits definition for RTC_ALRMBSSR register *************/
  12775. #define RTC_ALRMBSSR_MASKSS_Pos (24U)
  12776. #define RTC_ALRMBSSR_MASKSS_Msk (0xFUL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */
  12777. #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk
  12778. #define RTC_ALRMBSSR_MASKSS_0 (0x1UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */
  12779. #define RTC_ALRMBSSR_MASKSS_1 (0x2UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */
  12780. #define RTC_ALRMBSSR_MASKSS_2 (0x4UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */
  12781. #define RTC_ALRMBSSR_MASKSS_3 (0x8UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */
  12782. #define RTC_ALRMBSSR_SS_Pos (0U)
  12783. #define RTC_ALRMBSSR_SS_Msk (0x7FFFUL << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */
  12784. #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk
  12785. /******************** Bits definition for RTC_SR register *******************/
  12786. #define RTC_SR_ITSF_Pos (5U)
  12787. #define RTC_SR_ITSF_Msk (0x1UL << RTC_SR_ITSF_Pos) /*!< 0x00000020 */
  12788. #define RTC_SR_ITSF RTC_SR_ITSF_Msk
  12789. #define RTC_SR_TSOVF_Pos (4U)
  12790. #define RTC_SR_TSOVF_Msk (0x1UL << RTC_SR_TSOVF_Pos) /*!< 0x00000010 */
  12791. #define RTC_SR_TSOVF RTC_SR_TSOVF_Msk
  12792. #define RTC_SR_TSF_Pos (3U)
  12793. #define RTC_SR_TSF_Msk (0x1UL << RTC_SR_TSF_Pos) /*!< 0x00000008 */
  12794. #define RTC_SR_TSF RTC_SR_TSF_Msk
  12795. #define RTC_SR_WUTF_Pos (2U)
  12796. #define RTC_SR_WUTF_Msk (0x1UL << RTC_SR_WUTF_Pos) /*!< 0x00000004 */
  12797. #define RTC_SR_WUTF RTC_SR_WUTF_Msk
  12798. #define RTC_SR_ALRBF_Pos (1U)
  12799. #define RTC_SR_ALRBF_Msk (0x1UL << RTC_SR_ALRBF_Pos) /*!< 0x00000002 */
  12800. #define RTC_SR_ALRBF RTC_SR_ALRBF_Msk
  12801. #define RTC_SR_ALRAF_Pos (0U)
  12802. #define RTC_SR_ALRAF_Msk (0x1UL << RTC_SR_ALRAF_Pos) /*!< 0x00000001 */
  12803. #define RTC_SR_ALRAF RTC_SR_ALRAF_Msk
  12804. /******************** Bits definition for RTC_MISR register *****************/
  12805. #define RTC_MISR_ITSMF_Pos (5U)
  12806. #define RTC_MISR_ITSMF_Msk (0x1UL << RTC_MISR_ITSMF_Pos) /*!< 0x00000020 */
  12807. #define RTC_MISR_ITSMF RTC_MISR_ITSMF_Msk
  12808. #define RTC_MISR_TSOVMF_Pos (4U)
  12809. #define RTC_MISR_TSOVMF_Msk (0x1UL << RTC_MISR_TSOVMF_Pos) /*!< 0x00000010 */
  12810. #define RTC_MISR_TSOVMF RTC_MISR_TSOVMF_Msk
  12811. #define RTC_MISR_TSMF_Pos (3U)
  12812. #define RTC_MISR_TSMF_Msk (0x1UL << RTC_MISR_TSMF_Pos) /*!< 0x00000008 */
  12813. #define RTC_MISR_TSMF RTC_MISR_TSMF_Msk
  12814. #define RTC_MISR_WUTMF_Pos (2U)
  12815. #define RTC_MISR_WUTMF_Msk (0x1UL << RTC_MISR_WUTMF_Pos) /*!< 0x00000004 */
  12816. #define RTC_MISR_WUTMF RTC_MISR_WUTMF_Msk
  12817. #define RTC_MISR_ALRBMF_Pos (1U)
  12818. #define RTC_MISR_ALRBMF_Msk (0x1UL << RTC_MISR_ALRBMF_Pos) /*!< 0x00000002 */
  12819. #define RTC_MISR_ALRBMF RTC_MISR_ALRBMF_Msk
  12820. #define RTC_MISR_ALRAMF_Pos (0U)
  12821. #define RTC_MISR_ALRAMF_Msk (0x1UL << RTC_MISR_ALRAMF_Pos) /*!< 0x00000001 */
  12822. #define RTC_MISR_ALRAMF RTC_MISR_ALRAMF_Msk
  12823. /******************** Bits definition for RTC_SMISR register *****************/
  12824. #define RTC_SMISR_ITSMF_Pos (5U)
  12825. #define RTC_SMISR_ITSMF_Msk (0x1UL << RTC_SMISR_ITSMF_Pos) /*!< 0x00000020 */
  12826. #define RTC_SMISR_ITSMF RTC_SMISR_ITSMF_Msk
  12827. #define RTC_SMISR_TSOVMF_Pos (4U)
  12828. #define RTC_SMISR_TSOVMF_Msk (0x1UL << RTC_SMISR_TSOVMF_Pos) /*!< 0x00000010 */
  12829. #define RTC_SMISR_TSOVMF RTC_SMISR_TSOVMF_Msk
  12830. #define RTC_SMISR_TSMF_Pos (3U)
  12831. #define RTC_SMISR_TSMF_Msk (0x1UL << RTC_SMISR_TSMF_Pos) /*!< 0x00000008 */
  12832. #define RTC_SMISR_TSMF RTC_SMISR_TSMF_Msk
  12833. #define RTC_SMISR_WUTMF_Pos (2U)
  12834. #define RTC_SMISR_WUTMF_Msk (0x1UL << RTC_SMISR_WUTMF_Pos) /*!< 0x00000004 */
  12835. #define RTC_SMISR_WUTMF RTC_SMISR_WUTMF_Msk
  12836. #define RTC_SMISR_ALRBMF_Pos (1U)
  12837. #define RTC_SMISR_ALRBMF_Msk (0x1UL << RTC_SMISR_ALRBMF_Pos) /*!< 0x00000002 */
  12838. #define RTC_SMISR_ALRBMF RTC_SMISR_ALRBMF_Msk
  12839. #define RTC_SMISR_ALRAMF_Pos (0U)
  12840. #define RTC_SMISR_ALRAMF_Msk (0x1UL << RTC_SMISR_ALRAMF_Pos) /*!< 0x00000001 */
  12841. #define RTC_SMISR_ALRAMF RTC_SMISR_ALRAMF_Msk
  12842. /******************** Bits definition for RTC_SCR register ******************/
  12843. #define RTC_SCR_CITSF_Pos (5U)
  12844. #define RTC_SCR_CITSF_Msk (0x1UL << RTC_SCR_CITSF_Pos) /*!< 0x00000020 */
  12845. #define RTC_SCR_CITSF RTC_SCR_CITSF_Msk
  12846. #define RTC_SCR_CTSOVF_Pos (4U)
  12847. #define RTC_SCR_CTSOVF_Msk (0x1UL << RTC_SCR_CTSOVF_Pos) /*!< 0x00000010 */
  12848. #define RTC_SCR_CTSOVF RTC_SCR_CTSOVF_Msk
  12849. #define RTC_SCR_CTSF_Pos (3U)
  12850. #define RTC_SCR_CTSF_Msk (0x1UL << RTC_SCR_CTSF_Pos) /*!< 0x00000008 */
  12851. #define RTC_SCR_CTSF RTC_SCR_CTSF_Msk
  12852. #define RTC_SCR_CWUTF_Pos (2U)
  12853. #define RTC_SCR_CWUTF_Msk (0x1UL << RTC_SCR_CWUTF_Pos) /*!< 0x00000004 */
  12854. #define RTC_SCR_CWUTF RTC_SCR_CWUTF_Msk
  12855. #define RTC_SCR_CALRBF_Pos (1U)
  12856. #define RTC_SCR_CALRBF_Msk (0x1UL << RTC_SCR_CALRBF_Pos) /*!< 0x00000002 */
  12857. #define RTC_SCR_CALRBF RTC_SCR_CALRBF_Msk
  12858. #define RTC_SCR_CALRAF_Pos (0U)
  12859. #define RTC_SCR_CALRAF_Msk (0x1UL << RTC_SCR_CALRAF_Pos) /*!< 0x00000001 */
  12860. #define RTC_SCR_CALRAF RTC_SCR_CALRAF_Msk
  12861. /******************************************************************************/
  12862. /* */
  12863. /* Serial Peripheral Interface (SPI) */
  12864. /* */
  12865. /******************************************************************************/
  12866. /******************* Bit definition for SPI_CR1 register ********************/
  12867. #define SPI_CR1_CPHA_Pos (0U)
  12868. #define SPI_CR1_CPHA_Msk (0x1UL << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */
  12869. #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!<Clock Phase */
  12870. #define SPI_CR1_CPOL_Pos (1U)
  12871. #define SPI_CR1_CPOL_Msk (0x1UL << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */
  12872. #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!<Clock Polarity */
  12873. #define SPI_CR1_MSTR_Pos (2U)
  12874. #define SPI_CR1_MSTR_Msk (0x1UL << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */
  12875. #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!<Master Selection */
  12876. #define SPI_CR1_BR_Pos (3U)
  12877. #define SPI_CR1_BR_Msk (0x7UL << SPI_CR1_BR_Pos) /*!< 0x00000038 */
  12878. #define SPI_CR1_BR SPI_CR1_BR_Msk /*!<BR[2:0] bits (Baud Rate Control) */
  12879. #define SPI_CR1_BR_0 (0x1UL << SPI_CR1_BR_Pos) /*!< 0x00000008 */
  12880. #define SPI_CR1_BR_1 (0x2UL << SPI_CR1_BR_Pos) /*!< 0x00000010 */
  12881. #define SPI_CR1_BR_2 (0x4UL << SPI_CR1_BR_Pos) /*!< 0x00000020 */
  12882. #define SPI_CR1_SPE_Pos (6U)
  12883. #define SPI_CR1_SPE_Msk (0x1UL << SPI_CR1_SPE_Pos) /*!< 0x00000040 */
  12884. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!<SPI Enable */
  12885. #define SPI_CR1_LSBFIRST_Pos (7U)
  12886. #define SPI_CR1_LSBFIRST_Msk (0x1UL << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */
  12887. #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!<Frame Format */
  12888. #define SPI_CR1_SSI_Pos (8U)
  12889. #define SPI_CR1_SSI_Msk (0x1UL << SPI_CR1_SSI_Pos) /*!< 0x00000100 */
  12890. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!<Internal slave select */
  12891. #define SPI_CR1_SSM_Pos (9U)
  12892. #define SPI_CR1_SSM_Msk (0x1UL << SPI_CR1_SSM_Pos) /*!< 0x00000200 */
  12893. #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!<Software slave management */
  12894. #define SPI_CR1_RXONLY_Pos (10U)
  12895. #define SPI_CR1_RXONLY_Msk (0x1UL << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */
  12896. #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!<Receive only */
  12897. #define SPI_CR1_CRCL_Pos (11U)
  12898. #define SPI_CR1_CRCL_Msk (0x1UL << SPI_CR1_CRCL_Pos) /*!< 0x00000800 */
  12899. #define SPI_CR1_CRCL SPI_CR1_CRCL_Msk /*!< CRC Length */
  12900. #define SPI_CR1_CRCNEXT_Pos (12U)
  12901. #define SPI_CR1_CRCNEXT_Msk (0x1UL << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */
  12902. #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!<Transmit CRC next */
  12903. #define SPI_CR1_CRCEN_Pos (13U)
  12904. #define SPI_CR1_CRCEN_Msk (0x1UL << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */
  12905. #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!<Hardware CRC calculation enable */
  12906. #define SPI_CR1_BIDIOE_Pos (14U)
  12907. #define SPI_CR1_BIDIOE_Msk (0x1UL << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */
  12908. #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!<Output enable in bidirectional mode */
  12909. #define SPI_CR1_BIDIMODE_Pos (15U)
  12910. #define SPI_CR1_BIDIMODE_Msk (0x1UL << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */
  12911. #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!<Bidirectional data mode enable */
  12912. /******************* Bit definition for SPI_CR2 register ********************/
  12913. #define SPI_CR2_RXDMAEN_Pos (0U)
  12914. #define SPI_CR2_RXDMAEN_Msk (0x1UL << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */
  12915. #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */
  12916. #define SPI_CR2_TXDMAEN_Pos (1U)
  12917. #define SPI_CR2_TXDMAEN_Msk (0x1UL << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */
  12918. #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */
  12919. #define SPI_CR2_SSOE_Pos (2U)
  12920. #define SPI_CR2_SSOE_Msk (0x1UL << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */
  12921. #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */
  12922. #define SPI_CR2_NSSP_Pos (3U)
  12923. #define SPI_CR2_NSSP_Msk (0x1UL << SPI_CR2_NSSP_Pos) /*!< 0x00000008 */
  12924. #define SPI_CR2_NSSP SPI_CR2_NSSP_Msk /*!< NSS pulse management Enable */
  12925. #define SPI_CR2_FRF_Pos (4U)
  12926. #define SPI_CR2_FRF_Msk (0x1UL << SPI_CR2_FRF_Pos) /*!< 0x00000010 */
  12927. #define SPI_CR2_FRF SPI_CR2_FRF_Msk /*!< Frame Format Enable */
  12928. #define SPI_CR2_ERRIE_Pos (5U)
  12929. #define SPI_CR2_ERRIE_Msk (0x1UL << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */
  12930. #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */
  12931. #define SPI_CR2_RXNEIE_Pos (6U)
  12932. #define SPI_CR2_RXNEIE_Msk (0x1UL << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */
  12933. #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */
  12934. #define SPI_CR2_TXEIE_Pos (7U)
  12935. #define SPI_CR2_TXEIE_Msk (0x1UL << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */
  12936. #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */
  12937. #define SPI_CR2_DS_Pos (8U)
  12938. #define SPI_CR2_DS_Msk (0xFUL << SPI_CR2_DS_Pos) /*!< 0x00000F00 */
  12939. #define SPI_CR2_DS SPI_CR2_DS_Msk /*!< DS[3:0] Data Size */
  12940. #define SPI_CR2_DS_0 (0x1UL << SPI_CR2_DS_Pos) /*!< 0x00000100 */
  12941. #define SPI_CR2_DS_1 (0x2UL << SPI_CR2_DS_Pos) /*!< 0x00000200 */
  12942. #define SPI_CR2_DS_2 (0x4UL << SPI_CR2_DS_Pos) /*!< 0x00000400 */
  12943. #define SPI_CR2_DS_3 (0x8UL << SPI_CR2_DS_Pos) /*!< 0x00000800 */
  12944. #define SPI_CR2_FRXTH_Pos (12U)
  12945. #define SPI_CR2_FRXTH_Msk (0x1UL << SPI_CR2_FRXTH_Pos) /*!< 0x00001000 */
  12946. #define SPI_CR2_FRXTH SPI_CR2_FRXTH_Msk /*!< FIFO reception Threshold */
  12947. #define SPI_CR2_LDMARX_Pos (13U)
  12948. #define SPI_CR2_LDMARX_Msk (0x1UL << SPI_CR2_LDMARX_Pos) /*!< 0x00002000 */
  12949. #define SPI_CR2_LDMARX SPI_CR2_LDMARX_Msk /*!< Last DMA transfer for reception */
  12950. #define SPI_CR2_LDMATX_Pos (14U)
  12951. #define SPI_CR2_LDMATX_Msk (0x1UL << SPI_CR2_LDMATX_Pos) /*!< 0x00004000 */
  12952. #define SPI_CR2_LDMATX SPI_CR2_LDMATX_Msk /*!< Last DMA transfer for transmission */
  12953. /******************** Bit definition for SPI_SR register ********************/
  12954. #define SPI_SR_RXNE_Pos (0U)
  12955. #define SPI_SR_RXNE_Msk (0x1UL << SPI_SR_RXNE_Pos) /*!< 0x00000001 */
  12956. #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */
  12957. #define SPI_SR_TXE_Pos (1U)
  12958. #define SPI_SR_TXE_Msk (0x1UL << SPI_SR_TXE_Pos) /*!< 0x00000002 */
  12959. #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */
  12960. #define SPI_SR_CRCERR_Pos (4U)
  12961. #define SPI_SR_CRCERR_Msk (0x1UL << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */
  12962. #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */
  12963. #define SPI_SR_MODF_Pos (5U)
  12964. #define SPI_SR_MODF_Msk (0x1UL << SPI_SR_MODF_Pos) /*!< 0x00000020 */
  12965. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */
  12966. #define SPI_SR_OVR_Pos (6U)
  12967. #define SPI_SR_OVR_Msk (0x1UL << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  12968. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */
  12969. #define SPI_SR_BSY_Pos (7U)
  12970. #define SPI_SR_BSY_Msk (0x1UL << SPI_SR_BSY_Pos) /*!< 0x00000080 */
  12971. #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */
  12972. #define SPI_SR_FRE_Pos (8U)
  12973. #define SPI_SR_FRE_Msk (0x1UL << SPI_SR_FRE_Pos) /*!< 0x00000100 */
  12974. #define SPI_SR_FRE SPI_SR_FRE_Msk /*!< TI frame format error */
  12975. #define SPI_SR_FRLVL_Pos (9U)
  12976. #define SPI_SR_FRLVL_Msk (0x3UL << SPI_SR_FRLVL_Pos) /*!< 0x00000600 */
  12977. #define SPI_SR_FRLVL SPI_SR_FRLVL_Msk /*!< FIFO Reception Level */
  12978. #define SPI_SR_FRLVL_0 (0x1UL << SPI_SR_FRLVL_Pos) /*!< 0x00000200 */
  12979. #define SPI_SR_FRLVL_1 (0x2UL << SPI_SR_FRLVL_Pos) /*!< 0x00000400 */
  12980. #define SPI_SR_FTLVL_Pos (11U)
  12981. #define SPI_SR_FTLVL_Msk (0x3UL << SPI_SR_FTLVL_Pos) /*!< 0x00001800 */
  12982. #define SPI_SR_FTLVL SPI_SR_FTLVL_Msk /*!< FIFO Transmission Level */
  12983. #define SPI_SR_FTLVL_0 (0x1UL << SPI_SR_FTLVL_Pos) /*!< 0x00000800 */
  12984. #define SPI_SR_FTLVL_1 (0x2UL << SPI_SR_FTLVL_Pos) /*!< 0x00001000 */
  12985. /******************** Bit definition for SPI_DR register ********************/
  12986. #define SPI_DR_DR_Pos (0U)
  12987. #define SPI_DR_DR_Msk (0xFFFFUL << SPI_DR_DR_Pos) /*!< 0x0000FFFF */
  12988. #define SPI_DR_DR SPI_DR_DR_Msk /*!<Data Register */
  12989. /******************* Bit definition for SPI_CRCPR register ******************/
  12990. #define SPI_CRCPR_CRCPOLY_Pos (0U)
  12991. #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFUL << SPI_CRCPR_CRCPOLY_Pos) /*!< 0x0000FFFF */
  12992. #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!<CRC polynomial register */
  12993. /****************** Bit definition for SPI_RXCRCR register ******************/
  12994. #define SPI_RXCRCR_RXCRC_Pos (0U)
  12995. #define SPI_RXCRCR_RXCRC_Msk (0xFFFFUL << SPI_RXCRCR_RXCRC_Pos) /*!< 0x0000FFFF */
  12996. #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!<Rx CRC Register */
  12997. /****************** Bit definition for SPI_TXCRCR register ******************/
  12998. #define SPI_TXCRCR_TXCRC_Pos (0U)
  12999. #define SPI_TXCRCR_TXCRC_Msk (0xFFFFUL << SPI_TXCRCR_TXCRC_Pos) /*!< 0x0000FFFF */
  13000. #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!<Tx CRC Register */
  13001. /******************************************************************************/
  13002. /* */
  13003. /* Tamper and backup register (TAMP) */
  13004. /* */
  13005. /******************************************************************************/
  13006. /******************** Bits definition for TAMP_CR1 register *****************/
  13007. #define TAMP_CR1_TAMP1E_Pos (0U)
  13008. #define TAMP_CR1_TAMP1E_Msk (0x1UL << TAMP_CR1_TAMP1E_Pos) /*!< 0x00000001 */
  13009. #define TAMP_CR1_TAMP1E TAMP_CR1_TAMP1E_Msk
  13010. #define TAMP_CR1_TAMP2E_Pos (1U)
  13011. #define TAMP_CR1_TAMP2E_Msk (0x1UL << TAMP_CR1_TAMP2E_Pos) /*!< 0x00000002 */
  13012. #define TAMP_CR1_TAMP2E TAMP_CR1_TAMP2E_Msk
  13013. #define TAMP_CR1_TAMP3E_Pos (2U)
  13014. #define TAMP_CR1_TAMP3E_Msk (0x1UL << TAMP_CR1_TAMP3E_Pos) /*!< 0x00000004 */
  13015. #define TAMP_CR1_TAMP3E TAMP_CR1_TAMP3E_Msk
  13016. #define TAMP_CR1_TAMP4E_Pos (3U)
  13017. #define TAMP_CR1_TAMP4E_Msk (0x1UL << TAMP_CR1_TAMP4E_Pos) /*!< 0x00000008 */
  13018. #define TAMP_CR1_TAMP4E TAMP_CR1_TAMP4E_Msk
  13019. #define TAMP_CR1_TAMP5E_Pos (4U)
  13020. #define TAMP_CR1_TAMP5E_Msk (0x1UL << TAMP_CR1_TAMP5E_Pos) /*!< 0x00000010 */
  13021. #define TAMP_CR1_TAMP5E TAMP_CR1_TAMP5E_Msk
  13022. #define TAMP_CR1_TAMP6E_Pos (5U)
  13023. #define TAMP_CR1_TAMP6E_Msk (0x1UL << TAMP_CR1_TAMP6E_Pos) /*!< 0x00000020 */
  13024. #define TAMP_CR1_TAMP6E TAMP_CR1_TAMP6E_Msk
  13025. #define TAMP_CR1_TAMP7E_Pos (6U)
  13026. #define TAMP_CR1_TAMP7E_Msk (0x1UL << TAMP_CR1_TAMP7E_Pos) /*!< 0x00000040 */
  13027. #define TAMP_CR1_TAMP7E TAMP_CR1_TAMP7E_Msk
  13028. #define TAMP_CR1_TAMP8E_Pos (7U)
  13029. #define TAMP_CR1_TAMP8E_Msk (0x1UL << TAMP_CR1_TAMP8E_Pos) /*!< 0x00000080 */
  13030. #define TAMP_CR1_TAMP8E TAMP_CR1_TAMP8E_Msk
  13031. #define TAMP_CR1_ITAMP1E_Pos (16U)
  13032. #define TAMP_CR1_ITAMP1E_Msk (0x1UL << TAMP_CR1_ITAMP1E_Pos) /*!< 0x00010000 */
  13033. #define TAMP_CR1_ITAMP1E TAMP_CR1_ITAMP1E_Msk
  13034. #define TAMP_CR1_ITAMP2E_Pos (17U)
  13035. #define TAMP_CR1_ITAMP2E_Msk (0x1UL << TAMP_CR1_ITAMP2E_Pos) /*!< 0x00040000 */
  13036. #define TAMP_CR1_ITAMP2E TAMP_CR1_ITAMP2E_Msk
  13037. #define TAMP_CR1_ITAMP3E_Pos (18U)
  13038. #define TAMP_CR1_ITAMP3E_Msk (0x1UL << TAMP_CR1_ITAMP3E_Pos) /*!< 0x00040000 */
  13039. #define TAMP_CR1_ITAMP3E TAMP_CR1_ITAMP3E_Msk
  13040. #define TAMP_CR1_ITAMP5E_Pos (20U)
  13041. #define TAMP_CR1_ITAMP5E_Msk (0x1UL << TAMP_CR1_ITAMP5E_Pos) /*!< 0x00100000 */
  13042. #define TAMP_CR1_ITAMP5E TAMP_CR1_ITAMP5E_Msk
  13043. #define TAMP_CR1_ITAMP8E_Pos (23U)
  13044. #define TAMP_CR1_ITAMP8E_Msk (0x1UL << TAMP_CR1_ITAMP8E_Pos) /*!< 0x00800000 */
  13045. #define TAMP_CR1_ITAMP8E TAMP_CR1_ITAMP8E_Msk
  13046. /******************** Bits definition for TAMP_CR2 register *****************/
  13047. #define TAMP_CR2_TAMP1NOERASE_Pos (0U)
  13048. #define TAMP_CR2_TAMP1NOERASE_Msk (0x1UL << TAMP_CR2_TAMP1NOERASE_Pos) /*!< 0x00000001 */
  13049. #define TAMP_CR2_TAMP1NOERASE TAMP_CR2_TAMP1NOERASE_Msk
  13050. #define TAMP_CR2_TAMP2NOERASE_Pos (1U)
  13051. #define TAMP_CR2_TAMP2NOERASE_Msk (0x1UL << TAMP_CR2_TAMP2NOERASE_Pos) /*!< 0x00000002 */
  13052. #define TAMP_CR2_TAMP2NOERASE TAMP_CR2_TAMP2NOERASE_Msk
  13053. #define TAMP_CR2_TAMP3NOERASE_Pos (2U)
  13054. #define TAMP_CR2_TAMP3NOERASE_Msk (0x1UL << TAMP_CR2_TAMP3NOERASE_Pos) /*!< 0x00000004 */
  13055. #define TAMP_CR2_TAMP3NOERASE TAMP_CR2_TAMP3NOERASE_Msk
  13056. #define TAMP_CR2_TAMP4NOERASE_Pos (3U)
  13057. #define TAMP_CR2_TAMP4NOERASE_Msk (0x1UL << TAMP_CR2_TAMP4NOERASE_Pos) /*!< 0x00000008 */
  13058. #define TAMP_CR2_TAMP4NOERASE TAMP_CR2_TAMP4NOERASE_Msk
  13059. #define TAMP_CR2_TAMP5NOERASE_Pos (4U)
  13060. #define TAMP_CR2_TAMP5NOERASE_Msk (0x1UL << TAMP_CR2_TAMP5NOERASE_Pos) /*!< 0x00000010 */
  13061. #define TAMP_CR2_TAMP5NOERASE TAMP_CR2_TAMP5NOERASE_Msk
  13062. #define TAMP_CR2_TAMP6NOERASE_Pos (5U)
  13063. #define TAMP_CR2_TAMP6NOERASE_Msk (0x1UL << TAMP_CR2_TAMP6NOERASE_Pos) /*!< 0x00000020 */
  13064. #define TAMP_CR2_TAMP6NOERASE TAMP_CR2_TAMP6NOERASE_Msk
  13065. #define TAMP_CR2_TAMP7NOERASE_Pos (6U)
  13066. #define TAMP_CR2_TAMP7NOERASE_Msk (0x1UL << TAMP_CR2_TAMP7NOERASE_Pos) /*!< 0x00000040 */
  13067. #define TAMP_CR2_TAMP7NOERASE TAMP_CR2_TAMP7NOERASE_Msk
  13068. #define TAMP_CR2_TAMP8NOERASE_Pos (7U)
  13069. #define TAMP_CR2_TAMP8NOERASE_Msk (0x1UL << TAMP_CR2_TAMP8NOERASE_Pos) /*!< 0x00000080 */
  13070. #define TAMP_CR2_TAMP8NOERASE TAMP_CR2_TAMP8NOERASE_Msk
  13071. #define TAMP_CR2_TAMP1MSK_Pos (16U)
  13072. #define TAMP_CR2_TAMP1MSK_Msk (0x1UL << TAMP_CR2_TAMP1MSK_Pos) /*!< 0x00010000 */
  13073. #define TAMP_CR2_TAMP1MSK TAMP_CR2_TAMP1MSK_Msk
  13074. #define TAMP_CR2_TAMP2MSK_Pos (17U)
  13075. #define TAMP_CR2_TAMP2MSK_Msk (0x1UL << TAMP_CR2_TAMP2MSK_Pos) /*!< 0x00020000 */
  13076. #define TAMP_CR2_TAMP2MSK TAMP_CR2_TAMP2MSK_Msk
  13077. #define TAMP_CR2_TAMP3MSK_Pos (18U)
  13078. #define TAMP_CR2_TAMP3MSK_Msk (0x1UL << TAMP_CR2_TAMP3MSK_Pos) /*!< 0x00040000 */
  13079. #define TAMP_CR2_TAMP3MSK TAMP_CR2_TAMP3MSK_Msk
  13080. #define TAMP_CR2_BKERASE_Pos (23U)
  13081. #define TAMP_CR2_BKERASE_Msk (0x1UL << TAMP_CR2_BKERASE_Pos) /*!< 0x00800000 */
  13082. #define TAMP_CR2_BKERASE TAMP_CR2_BKERASE_Msk
  13083. #define TAMP_CR2_TAMP1TRG_Pos (24U)
  13084. #define TAMP_CR2_TAMP1TRG_Msk (0x1UL << TAMP_CR2_TAMP1TRG_Pos) /*!< 0x01000000 */
  13085. #define TAMP_CR2_TAMP1TRG TAMP_CR2_TAMP1TRG_Msk
  13086. #define TAMP_CR2_TAMP2TRG_Pos (25U)
  13087. #define TAMP_CR2_TAMP2TRG_Msk (0x1UL << TAMP_CR2_TAMP2TRG_Pos) /*!< 0x02000000 */
  13088. #define TAMP_CR2_TAMP2TRG TAMP_CR2_TAMP2TRG_Msk
  13089. #define TAMP_CR2_TAMP3TRG_Pos (26U)
  13090. #define TAMP_CR2_TAMP3TRG_Msk (0x1UL << TAMP_CR2_TAMP3TRG_Pos) /*!< 0x02000000 */
  13091. #define TAMP_CR2_TAMP3TRG TAMP_CR2_TAMP3TRG_Msk
  13092. #define TAMP_CR2_TAMP4TRG_Pos (27U)
  13093. #define TAMP_CR2_TAMP4TRG_Msk (0x1UL << TAMP_CR2_TAMP4TRG_Pos) /*!< 0x02000000 */
  13094. #define TAMP_CR2_TAMP4TRG TAMP_CR2_TAMP4TRG_Msk
  13095. #define TAMP_CR2_TAMP5TRG_Pos (28U)
  13096. #define TAMP_CR2_TAMP5TRG_Msk (0x1UL << TAMP_CR2_TAMP5TRG_Pos) /*!< 0x02000000 */
  13097. #define TAMP_CR2_TAMP5TRG TAMP_CR2_TAMP5TRG_Msk
  13098. #define TAMP_CR2_TAMP6TRG_Pos (29U)
  13099. #define TAMP_CR2_TAMP6TRG_Msk (0x1UL << TAMP_CR2_TAMP6TRG_Pos) /*!< 0x02000000 */
  13100. #define TAMP_CR2_TAMP6TRG TAMP_CR2_TAMP6TRG_Msk
  13101. #define TAMP_CR2_TAMP7TRG_Pos (30U)
  13102. #define TAMP_CR2_TAMP7TRG_Msk (0x1UL << TAMP_CR2_TAMP7TRG_Pos) /*!< 0x02000000 */
  13103. #define TAMP_CR2_TAMP7TRG TAMP_CR2_TAMP7TRG_Msk
  13104. #define TAMP_CR2_TAMP8TRG_Pos (31U)
  13105. #define TAMP_CR2_TAMP8TRG_Msk (0x1UL << TAMP_CR2_TAMP8TRG_Pos) /*!< 0x02000000 */
  13106. #define TAMP_CR2_TAMP8TRG TAMP_CR2_TAMP8TRG_Msk
  13107. /******************** Bits definition for TAMP_CR3 register *****************/
  13108. #define TAMP_CR3_ITAMP1NOER_Pos (0U)
  13109. #define TAMP_CR3_ITAMP1NOER_Msk (0x1UL << TAMP_CR3_ITAMP1NOER_Pos) /*!< 0x00000001 */
  13110. #define TAMP_CR3_ITAMP1NOER TAMP_CR3_ITAMP1NOER_Msk
  13111. #define TAMP_CR3_ITAMP2NOER_Pos (1U)
  13112. #define TAMP_CR3_ITAMP2NOER_Msk (0x1UL << TAMP_CR3_ITAMP2NOER_Pos) /*!< 0x00000002 */
  13113. #define TAMP_CR3_ITAMP2NOER TAMP_CR3_ITAMP2NOER_Msk
  13114. #define TAMP_CR3_ITAMP3NOER_Pos (2U)
  13115. #define TAMP_CR3_ITAMP3NOER_Msk (0x1UL << TAMP_CR3_ITAMP3NOER_Pos) /*!< 0x00000004 */
  13116. #define TAMP_CR3_ITAMP3NOER TAMP_CR3_ITAMP3NOER_Msk
  13117. #define TAMP_CR3_ITAMP5NOER_Pos (4U)
  13118. #define TAMP_CR3_ITAMP5NOER_Msk (0x1UL << TAMP_CR3_ITAMP5NOER_Pos) /*!< 0x00000010 */
  13119. #define TAMP_CR3_ITAMP5NOER TAMP_CR3_ITAMP5NOER_Msk
  13120. #define TAMP_CR3_ITAMP8NOER_Pos (7U)
  13121. #define TAMP_CR3_ITAMP8NOER_Msk (0x1UL << TAMP_CR3_ITAMP8NOER_Pos) /*!< 0x00000040 */
  13122. #define TAMP_CR3_ITAMP8NOER TAMP_CR3_ITAMP8NOER_Msk
  13123. /******************** Bits definition for TAMP_FLTCR register ***************/
  13124. #define TAMP_FLTCR_TAMPFREQ_Pos (0U)
  13125. #define TAMP_FLTCR_TAMPFREQ_Msk (0x7UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000007 */
  13126. #define TAMP_FLTCR_TAMPFREQ TAMP_FLTCR_TAMPFREQ_Msk
  13127. #define TAMP_FLTCR_TAMPFREQ_0 (0x1UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000001 */
  13128. #define TAMP_FLTCR_TAMPFREQ_1 (0x2UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000002 */
  13129. #define TAMP_FLTCR_TAMPFREQ_2 (0x4UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000004 */
  13130. #define TAMP_FLTCR_TAMPFLT_Pos (3U)
  13131. #define TAMP_FLTCR_TAMPFLT_Msk (0x3UL << TAMP_FLTCR_TAMPFLT_Pos) /*!< 0x00000018 */
  13132. #define TAMP_FLTCR_TAMPFLT TAMP_FLTCR_TAMPFLT_Msk
  13133. #define TAMP_FLTCR_TAMPFLT_0 (0x1UL << TAMP_FLTCR_TAMPFLT_Pos) /*!< 0x00000008 */
  13134. #define TAMP_FLTCR_TAMPFLT_1 (0x2UL << TAMP_FLTCR_TAMPFLT_Pos) /*!< 0x00000010 */
  13135. #define TAMP_FLTCR_TAMPPRCH_Pos (5U)
  13136. #define TAMP_FLTCR_TAMPPRCH_Msk (0x3UL << TAMP_FLTCR_TAMPPRCH_Pos) /*!< 0x00000060 */
  13137. #define TAMP_FLTCR_TAMPPRCH TAMP_FLTCR_TAMPPRCH_Msk
  13138. #define TAMP_FLTCR_TAMPPRCH_0 (0x1UL << TAMP_FLTCR_TAMPPRCH_Pos) /*!< 0x00000020 */
  13139. #define TAMP_FLTCR_TAMPPRCH_1 (0x2UL << TAMP_FLTCR_TAMPPRCH_Pos) /*!< 0x00000040 */
  13140. #define TAMP_FLTCR_TAMPPUDIS_Pos (7U)
  13141. #define TAMP_FLTCR_TAMPPUDIS_Msk (0x1UL << TAMP_FLTCR_TAMPPUDIS_Pos) /*!< 0x00000080 */
  13142. #define TAMP_FLTCR_TAMPPUDIS TAMP_FLTCR_TAMPPUDIS_Msk
  13143. /******************** Bits definition for TAMP_ATCR1 register ***************/
  13144. #define TAMP_ATCR1_TAMP1AM_Pos (0U)
  13145. #define TAMP_ATCR1_TAMP1AM_Msk (0x1UL <<TAMP_ATCR1_TAMP1AM_Pos) /*!< 0x00000001 */
  13146. #define TAMP_ATCR1_TAMP1AM TAMP_ATCR1_TAMP1AM_Msk
  13147. #define TAMP_ATCR1_TAMP2AM_Pos (1U)
  13148. #define TAMP_ATCR1_TAMP2AM_Msk (0x1UL <<TAMP_ATCR1_TAMP2AM_Pos) /*!< 0x00000002 */
  13149. #define TAMP_ATCR1_TAMP2AM TAMP_ATCR1_TAMP2AM_Msk
  13150. #define TAMP_ATCR1_TAMP3AM_Pos (2U)
  13151. #define TAMP_ATCR1_TAMP3AM_Msk (0x1UL <<TAMP_ATCR1_TAMP3AM_Pos) /*!< 0x00000004 */
  13152. #define TAMP_ATCR1_TAMP3AM TAMP_ATCR1_TAMP3AM_Msk
  13153. #define TAMP_ATCR1_TAMP4AM_Pos (3U)
  13154. #define TAMP_ATCR1_TAMP4AM_Msk (0x1UL <<TAMP_ATCR1_TAMP4AM_Pos) /*!< 0x00000008 */
  13155. #define TAMP_ATCR1_TAMP4AM TAMP_ATCR1_TAMP4AM_Msk
  13156. #define TAMP_ATCR1_TAMP5AM_Pos (4U)
  13157. #define TAMP_ATCR1_TAMP5AM_Msk (0x1UL <<TAMP_ATCR1_TAMP5AM_Pos) /*!< 0x00000010 */
  13158. #define TAMP_ATCR1_TAMP5AM TAMP_ATCR1_TAMP5AM_Msk
  13159. #define TAMP_ATCR1_TAMP6AM_Pos (6U)
  13160. #define TAMP_ATCR1_TAMP6AM_Msk (0x1UL <<TAMP_ATCR1_TAMP6AM_Pos) /*!< 0x00000020 */
  13161. #define TAMP_ATCR1_TAMP6AM TAMP_ATCR1_TAMP6AM_Msk
  13162. #define TAMP_ATCR1_TAMP7AM_Pos (6U)
  13163. #define TAMP_ATCR1_TAMP7AM_Msk (0x1UL <<TAMP_ATCR1_TAMP7AM_Pos) /*!< 0x00000040 */
  13164. #define TAMP_ATCR1_TAMP7AM TAMP_ATCR1_TAMP7AM_Msk
  13165. #define TAMP_ATCR1_TAMP8AM_Pos (7U)
  13166. #define TAMP_ATCR1_TAMP8AM_Msk (0x1UL <<TAMP_ATCR1_TAMP8AM_Pos) /*!< 0x00000080 */
  13167. #define TAMP_ATCR1_TAMP8AM TAMP_ATCR1_TAMP8AM_Msk
  13168. #define TAMP_ATCR1_ATOSEL1_Pos (8U)
  13169. #define TAMP_ATCR1_ATOSEL1_Msk (0x3UL <<TAMP_ATCR1_ATOSEL1_Pos) /*!< 0x00000300 */
  13170. #define TAMP_ATCR1_ATOSEL1 TAMP_ATCR1_ATOSEL1_Msk
  13171. #define TAMP_ATCR1_ATOSEL1_0 (0x1UL << TAMP_ATCR1_ATOSEL1_Pos) /*!< 0x00000100 */
  13172. #define TAMP_ATCR1_ATOSEL1_1 (0x2UL << TAMP_ATCR1_ATOSEL1_Pos) /*!< 0x00000200 */
  13173. #define TAMP_ATCR1_ATOSEL2_Pos (10U)
  13174. #define TAMP_ATCR1_ATOSEL2_Msk (0x3UL <<TAMP_ATCR1_ATOSEL2_Pos) /*!< 0x00000C00 */
  13175. #define TAMP_ATCR1_ATOSEL2 TAMP_ATCR1_ATOSEL2_Msk
  13176. #define TAMP_ATCR1_ATOSEL2_0 (0x1UL << TAMP_ATCR1_ATOSEL2_Pos) /*!< 0x00000400 */
  13177. #define TAMP_ATCR1_ATOSEL2_1 (0x2UL << TAMP_ATCR1_ATOSEL2_Pos) /*!< 0x00000800 */
  13178. #define TAMP_ATCR1_ATOSEL3_Pos (12U)
  13179. #define TAMP_ATCR1_ATOSEL3_Msk (0x3UL <<TAMP_ATCR1_ATOSEL3_Pos) /*!< 0x00003000 */
  13180. #define TAMP_ATCR1_ATOSEL3 TAMP_ATCR1_ATOSEL3_Msk
  13181. #define TAMP_ATCR1_ATOSEL3_0 (0x1UL << TAMP_ATCR1_ATOSEL3_Pos) /*!< 0x00001000 */
  13182. #define TAMP_ATCR1_ATOSEL3_1 (0x2UL << TAMP_ATCR1_ATOSEL3_Pos) /*!< 0x00002000 */
  13183. #define TAMP_ATCR1_ATOSEL4_Pos (14U)
  13184. #define TAMP_ATCR1_ATOSEL4_Msk (0x3UL <<TAMP_ATCR1_ATOSEL4_Pos) /*!< 0x0000C000 */
  13185. #define TAMP_ATCR1_ATOSEL4 TAMP_ATCR1_ATOSEL4_Msk
  13186. #define TAMP_ATCR1_ATOSEL4_0 (0x1UL << TAMP_ATCR1_ATOSEL4_Pos) /*!< 0x00004000 */
  13187. #define TAMP_ATCR1_ATOSEL4_1 (0x2UL << TAMP_ATCR1_ATOSEL4_Pos) /*!< 0x00008000 */
  13188. #define TAMP_ATCR1_ATCKSEL_Pos (16U)
  13189. #define TAMP_ATCR1_ATCKSEL_Msk (0x7UL <<TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00070000 */
  13190. #define TAMP_ATCR1_ATCKSEL TAMP_ATCR1_ATCKSEL_Msk
  13191. #define TAMP_ATCR1_ATCKSEL_0 (0x1UL << TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00010000 */
  13192. #define TAMP_ATCR1_ATCKSEL_1 (0x2UL << TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00020000 */
  13193. #define TAMP_ATCR1_ATCKSEL_2 (0x4UL << TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00040000 */
  13194. #define TAMP_ATCR1_ATPER_Pos (24U)
  13195. #define TAMP_ATCR1_ATPER_Msk (0x7UL <<TAMP_ATCR1_ATPER_Pos) /*!< 0x07000000 */
  13196. #define TAMP_ATCR1_ATPER TAMP_ATCR1_ATPER_Msk
  13197. #define TAMP_ATCR1_ATPER_0 (0x1UL << TAMP_ATCR1_ATPER_Pos) /*!< 0x01000000 */
  13198. #define TAMP_ATCR1_ATPER_1 (0x2UL << TAMP_ATCR1_ATPER_Pos) /*!< 0x02000000 */
  13199. #define TAMP_ATCR1_ATPER_2 (0x4UL << TAMP_ATCR1_ATPER_Pos) /*!< 0x04000000 */
  13200. #define TAMP_ATCR1_ATOSHARE_Pos (30U)
  13201. #define TAMP_ATCR1_ATOSHARE_Msk (0x1UL <<TAMP_ATCR1_ATOSHARE_Pos) /*!< 0x40000000 */
  13202. #define TAMP_ATCR1_ATOSHARE TAMP_ATCR1_ATOSHARE_Msk
  13203. #define TAMP_ATCR1_FLTEN_Pos (31U)
  13204. #define TAMP_ATCR1_FLTEN_Msk (0x1UL <<TAMP_ATCR1_FLTEN_Pos) /*!< 0x80000000 */
  13205. #define TAMP_ATCR1_FLTEN TAMP_ATCR1_FLTEN_Msk
  13206. /******************** Bits definition for TAMP_ATSEEDR register ******************/
  13207. #define TAMP_ATSEEDR_SEED_Pos (0U)
  13208. #define TAMP_ATSEEDR_SEED_Msk (0xFFFFFFFFUL << TAMP_ATSEEDR_SEED_Pos) /*!< 0xFFFFFFFF */
  13209. #define TAMP_ATSEEDR_SEED TAMP_ATSEEDR_SEED_Msk
  13210. /******************** Bits definition for TAMP_ATOR register ******************/
  13211. #define TAMP_ATOR_PRNG_Pos (0U)
  13212. #define TAMP_ATOR_PRNG_Msk (0xFFUL << TAMP_ATOR_PRNG_Pos) /*!< 0x000000FF */
  13213. #define TAMP_ATOR_PRNG TAMP_ATOR_PRNG_Msk
  13214. #define TAMP_ATOR_PRNG_0 (0x1UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000001 */
  13215. #define TAMP_ATOR_PRNG_1 (0x2UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000002 */
  13216. #define TAMP_ATOR_PRNG_2 (0x4UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000004 */
  13217. #define TAMP_ATOR_PRNG_3 (0x8UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000008 */
  13218. #define TAMP_ATOR_PRNG_4 (0x10UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000010 */
  13219. #define TAMP_ATOR_PRNG_5 (0x20UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000020 */
  13220. #define TAMP_ATOR_PRNG_6 (0x40UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000040 */
  13221. #define TAMP_ATOR_PRNG_7 (0x80UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000080 */
  13222. #define TAMP_ATOR_SEEDF_Pos (14U)
  13223. #define TAMP_ATOR_SEEDF_Msk (1UL << TAMP_ATOR_SEEDF_Pos) /*!< 0x00004000 */
  13224. #define TAMP_ATOR_SEEDF TAMP_ATOR_SEEDF_Msk
  13225. #define TAMP_ATOR_INITS_Pos (15U)
  13226. #define TAMP_ATOR_INITS_Msk (1UL << TAMP_ATOR_INITS_Pos) /*!< 0x00008000 */
  13227. #define TAMP_ATOR_INITS TAMP_ATOR_INITS_Msk
  13228. /******************** Bits definition for TAMP_ATCR2 register ***************/
  13229. #define TAMP_ATCR2_ATOSEL1_Pos (8U)
  13230. #define TAMP_ATCR2_ATOSEL1_Msk (0x7UL <<TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000700 */
  13231. #define TAMP_ATCR2_ATOSEL1 TAMP_ATCR2_ATOSEL1_Msk
  13232. #define TAMP_ATCR2_ATOSEL1_0 (0x1UL << TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000100 */
  13233. #define TAMP_ATCR2_ATOSEL1_1 (0x2UL << TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000200 */
  13234. #define TAMP_ATCR2_ATOSEL1_2 (0x4UL << TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000400 */
  13235. #define TAMP_ATCR2_ATOSEL2_Pos (11U)
  13236. #define TAMP_ATCR2_ATOSEL2_Msk (0x7UL <<TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00003800 */
  13237. #define TAMP_ATCR2_ATOSEL2 TAMP_ATCR2_ATOSEL2_Msk
  13238. #define TAMP_ATCR2_ATOSEL2_0 (0x1UL << TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00000800 */
  13239. #define TAMP_ATCR2_ATOSEL2_1 (0x2UL << TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00001000 */
  13240. #define TAMP_ATCR2_ATOSEL2_2 (0x4UL << TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00002000 */
  13241. #define TAMP_ATCR2_ATOSEL3_Pos (14U)
  13242. #define TAMP_ATCR2_ATOSEL3_Msk (0x7UL <<TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x0001C000 */
  13243. #define TAMP_ATCR2_ATOSEL3 TAMP_ATCR2_ATOSEL3_Msk
  13244. #define TAMP_ATCR2_ATOSEL3_0 (0x1UL << TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x00004000 */
  13245. #define TAMP_ATCR2_ATOSEL3_1 (0x2UL << TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x00008000 */
  13246. #define TAMP_ATCR2_ATOSEL3_2 (0x4UL << TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x00010000 */
  13247. #define TAMP_ATCR2_ATOSEL4_Pos (17U)
  13248. #define TAMP_ATCR2_ATOSEL4_Msk (0x7UL <<TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x000E0000 */
  13249. #define TAMP_ATCR2_ATOSEL4 TAMP_ATCR2_ATOSEL4_Msk
  13250. #define TAMP_ATCR2_ATOSEL4_0 (0x1UL << TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x00020000 */
  13251. #define TAMP_ATCR2_ATOSEL4_1 (0x2UL << TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x00040000 */
  13252. #define TAMP_ATCR2_ATOSEL4_2 (0x4UL << TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x00080000 */
  13253. #define TAMP_ATCR2_ATOSEL5_Pos (20U)
  13254. #define TAMP_ATCR2_ATOSEL5_Msk (0x7UL <<TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00700000 */
  13255. #define TAMP_ATCR2_ATOSEL5 TAMP_ATCR2_ATOSEL5_Msk
  13256. #define TAMP_ATCR2_ATOSEL5_0 (0x1UL << TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00100000 */
  13257. #define TAMP_ATCR2_ATOSEL5_1 (0x2UL << TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00200000 */
  13258. #define TAMP_ATCR2_ATOSEL5_2 (0x4UL << TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00400000 */
  13259. #define TAMP_ATCR2_ATOSEL6_Pos (23U)
  13260. #define TAMP_ATCR2_ATOSEL6_Msk (0x7UL <<TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x03800000 */
  13261. #define TAMP_ATCR2_ATOSEL6 TAMP_ATCR2_ATOSEL6_Msk
  13262. #define TAMP_ATCR2_ATOSEL6_0 (0x1UL << TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x00800000 */
  13263. #define TAMP_ATCR2_ATOSEL6_1 (0x2UL << TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x01000000 */
  13264. #define TAMP_ATCR2_ATOSEL6_2 (0x4UL << TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x02000000 */
  13265. #define TAMP_ATCR2_ATOSEL7_Pos (26U)
  13266. #define TAMP_ATCR2_ATOSEL7_Msk (0x7UL <<TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x1C000000 */
  13267. #define TAMP_ATCR2_ATOSEL7 TAMP_ATCR2_ATOSEL7_Msk
  13268. #define TAMP_ATCR2_ATOSEL7_0 (0x1UL << TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x04000000 */
  13269. #define TAMP_ATCR2_ATOSEL7_1 (0x2UL << TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x08000000 */
  13270. #define TAMP_ATCR2_ATOSEL7_2 (0x4UL << TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x10000000 */
  13271. #define TAMP_ATCR2_ATOSEL8_Pos (29U)
  13272. #define TAMP_ATCR2_ATOSEL8_Msk (0x7UL <<TAMP_ATCR2_ATOSEL8_Pos) /*!< 0xE0000000 */
  13273. #define TAMP_ATCR2_ATOSEL8 TAMP_ATCR2_ATOSEL8_Msk
  13274. #define TAMP_ATCR2_ATOSEL8_0 (0x1UL << TAMP_ATCR2_ATOSEL8_Pos) /*!< 0x20000000 */
  13275. #define TAMP_ATCR2_ATOSEL8_1 (0x2UL << TAMP_ATCR2_ATOSEL8_Pos) /*!< 0x40000000 */
  13276. #define TAMP_ATCR2_ATOSEL8_2 (0x4UL << TAMP_ATCR2_ATOSEL8_Pos) /*!< 0x80000000 */
  13277. /******************** Bits definition for TAMP_SMCR register ******************/
  13278. #define TAMP_SMCR_BKPRWDPROT_Pos (0U)
  13279. #define TAMP_SMCR_BKPRWDPROT_Msk (0xFFUL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x000000FF */
  13280. #define TAMP_SMCR_BKPRWDPROT TAMP_SMCR_BKPRWDPROT_Msk
  13281. #define TAMP_SMCR_BKPRWDPROT_0 (0x1UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000001 */
  13282. #define TAMP_SMCR_BKPRWDPROT_1 (0x2UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000002 */
  13283. #define TAMP_SMCR_BKPRWDPROT_2 (0x4UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000004 */
  13284. #define TAMP_SMCR_BKPRWDPROT_3 (0x8UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000008 */
  13285. #define TAMP_SMCR_BKPRWDPROT_4 (0x1UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000010 */
  13286. #define TAMP_SMCR_BKPRWDPROT_5 (0x20UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000020 */
  13287. #define TAMP_SMCR_BKPRWDPROT_6 (0x40UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000040 */
  13288. #define TAMP_SMCR_BKPRWDPROT_7 (0x80UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000080 */
  13289. #define TAMP_SMCR_BKPWDPROT_Pos (16U)
  13290. #define TAMP_SMCR_BKPWDPROT_Msk (0xFFUL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00FF0000 */
  13291. #define TAMP_SMCR_BKPWDPROT TAMP_SMCR_BKPWDPROT_Msk
  13292. #define TAMP_SMCR_BKPWDPROT_0 (0x1UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00010000 */
  13293. #define TAMP_SMCR_BKPWDPROT_1 (0x2UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00020000 */
  13294. #define TAMP_SMCR_BKPWDPROT_2 (0x4UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00040000 */
  13295. #define TAMP_SMCR_BKPWDPROT_3 (0x8UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00080000 */
  13296. #define TAMP_SMCR_BKPWDPROT_4 (0x1UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00100000 */
  13297. #define TAMP_SMCR_BKPWDPROT_5 (0x20UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00200000 */
  13298. #define TAMP_SMCR_BKPWDPROT_6 (0x40UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00400000 */
  13299. #define TAMP_SMCR_BKPWDPROT_7 (0x80UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00800000 */
  13300. #define TAMP_SMCR_TAMPDPROT_Pos (31U)
  13301. #define TAMP_SMCR_TAMPDPROT_Msk (0x1UL << TAMP_SMCR_TAMPDPROT_Pos) /*!< 0x80000000 */
  13302. #define TAMP_SMCR_TAMPDPROT TAMP_SMCR_TAMPDPROT_Msk
  13303. /******************** Bits definition for TAMP_PRIVCR register ******************/
  13304. #define TAMP_PRIVCR_BKPRWPRIV_Pos (29U)
  13305. #define TAMP_PRIVCR_BKPRWPRIV_Msk (0x1UL << TAMP_PRIVCR_BKPRWPRIV_Pos) /*!< 0x20000000 */
  13306. #define TAMP_PRIVCR_BKPRWPRIV TAMP_PRIVCR_BKPRWPRIV_Msk
  13307. #define TAMP_PRIVCR_BKPWPRIV_Pos (30U)
  13308. #define TAMP_PRIVCR_BKPWPRIV_Msk (0x1UL << TAMP_PRIVCR_BKPWPRIV_Pos) /*!< 0x40000000 */
  13309. #define TAMP_PRIVCR_BKPWPRIV TAMP_PRIVCR_BKPWPRIV_Msk
  13310. #define TAMP_PRIVCR_TAMPPRIV_Pos (31U)
  13311. #define TAMP_PRIVCR_TAMPPRIV_Msk (0x1UL << TAMP_PRIVCR_TAMPPRIV_Pos) /*!< 0x80000000 */
  13312. #define TAMP_PRIVCR_TAMPPRIV TAMP_PRIVCR_TAMPPRIV_Msk
  13313. /******************** Bits definition for TAMP_IER register *****************/
  13314. #define TAMP_IER_TAMP1IE_Pos (0U)
  13315. #define TAMP_IER_TAMP1IE_Msk (0x1UL << TAMP_IER_TAMP1IE_Pos) /*!< 0x00000001 */
  13316. #define TAMP_IER_TAMP1IE TAMP_IER_TAMP1IE_Msk
  13317. #define TAMP_IER_TAMP2IE_Pos (1U)
  13318. #define TAMP_IER_TAMP2IE_Msk (0x1UL << TAMP_IER_TAMP2IE_Pos) /*!< 0x00000002 */
  13319. #define TAMP_IER_TAMP2IE TAMP_IER_TAMP2IE_Msk
  13320. #define TAMP_IER_TAMP3IE_Pos (2U)
  13321. #define TAMP_IER_TAMP3IE_Msk (0x1UL << TAMP_IER_TAMP3IE_Pos) /*!< 0x00000004 */
  13322. #define TAMP_IER_TAMP3IE TAMP_IER_TAMP3IE_Msk
  13323. #define TAMP_IER_TAMP4IE_Pos (3U)
  13324. #define TAMP_IER_TAMP4IE_Msk (0x1UL << TAMP_IER_TAMP4IE_Pos) /*!< 0x00000008 */
  13325. #define TAMP_IER_TAMP4IE TAMP_IER_TAMP4IE_Msk
  13326. #define TAMP_IER_TAMP5IE_Pos (4U)
  13327. #define TAMP_IER_TAMP5IE_Msk (0x1UL << TAMP_IER_TAMP5IE_Pos) /*!< 0x00000010 */
  13328. #define TAMP_IER_TAMP5IE TAMP_IER_TAMP5IE_Msk
  13329. #define TAMP_IER_TAMP6IE_Pos (5U)
  13330. #define TAMP_IER_TAMP6IE_Msk (0x1UL << TAMP_IER_TAMP6IE_Pos) /*!< 0x00000020 */
  13331. #define TAMP_IER_TAMP6IE TAMP_IER_TAMP6IE_Msk
  13332. #define TAMP_IER_TAMP7IE_Pos (6U)
  13333. #define TAMP_IER_TAMP7IE_Msk (0x1UL << TAMP_IER_TAMP7IE_Pos) /*!< 0x00000040 */
  13334. #define TAMP_IER_TAMP7IE TAMP_IER_TAMP7IE_Msk
  13335. #define TAMP_IER_TAMP8IE_Pos (7U)
  13336. #define TAMP_IER_TAMP8IE_Msk (0x1UL << TAMP_IER_TAMP8IE_Pos) /*!< 0x00000080 */
  13337. #define TAMP_IER_TAMP8IE TAMP_IER_TAMP8IE_Msk
  13338. #define TAMP_IER_ITAMP1IE_Pos (16U)
  13339. #define TAMP_IER_ITAMP1IE_Msk (0x1UL << TAMP_IER_ITAMP1IE_Pos) /*!< 0x00010000 */
  13340. #define TAMP_IER_ITAMP1IE TAMP_IER_ITAMP1IE_Msk
  13341. #define TAMP_IER_ITAMP2IE_Pos (17U)
  13342. #define TAMP_IER_ITAMP2IE_Msk (0x1UL << TAMP_IER_ITAMP2IE_Pos) /*!< 0x00020000 */
  13343. #define TAMP_IER_ITAMP2IE TAMP_IER_ITAMP2IE_Msk
  13344. #define TAMP_IER_ITAMP3IE_Pos (18U)
  13345. #define TAMP_IER_ITAMP3IE_Msk (0x1UL << TAMP_IER_ITAMP3IE_Pos) /*!< 0x00040000 */
  13346. #define TAMP_IER_ITAMP3IE TAMP_IER_ITAMP3IE_Msk
  13347. #define TAMP_IER_ITAMP5IE_Pos (20U)
  13348. #define TAMP_IER_ITAMP5IE_Msk (0x1UL << TAMP_IER_ITAMP5IE_Pos) /*!< 0x00100000 */
  13349. #define TAMP_IER_ITAMP5IE TAMP_IER_ITAMP5IE_Msk
  13350. #define TAMP_IER_ITAMP8IE_Pos (23U)
  13351. #define TAMP_IER_ITAMP8IE_Msk (0x1UL << TAMP_IER_ITAMP8IE_Pos) /*!< 0x00400000 */
  13352. #define TAMP_IER_ITAMP8IE TAMP_IER_ITAMP8IE_Msk
  13353. /******************** Bits definition for TAMP_SR register *****************/
  13354. #define TAMP_SR_TAMP1F_Pos (0U)
  13355. #define TAMP_SR_TAMP1F_Msk (0x1UL << TAMP_SR_TAMP1F_Pos) /*!< 0x00000001 */
  13356. #define TAMP_SR_TAMP1F TAMP_SR_TAMP1F_Msk
  13357. #define TAMP_SR_TAMP2F_Pos (1U)
  13358. #define TAMP_SR_TAMP2F_Msk (0x1UL << TAMP_SR_TAMP2F_Pos) /*!< 0x00000002 */
  13359. #define TAMP_SR_TAMP2F TAMP_SR_TAMP2F_Msk
  13360. #define TAMP_SR_TAMP3F_Pos (2U)
  13361. #define TAMP_SR_TAMP3F_Msk (0x1UL << TAMP_SR_TAMP3F_Pos) /*!< 0x00000004 */
  13362. #define TAMP_SR_TAMP3F TAMP_SR_TAMP3F_Msk
  13363. #define TAMP_SR_TAMP4F_Pos (3U)
  13364. #define TAMP_SR_TAMP4F_Msk (0x1UL << TAMP_SR_TAMP4F_Pos) /*!< 0x00000008 */
  13365. #define TAMP_SR_TAMP4F TAMP_SR_TAMP4F_Msk
  13366. #define TAMP_SR_TAMP5F_Pos (4U)
  13367. #define TAMP_SR_TAMP5F_Msk (0x1UL << TAMP_SR_TAMP5F_Pos) /*!< 0x00000010 */
  13368. #define TAMP_SR_TAMP5F TAMP_SR_TAMP5F_Msk
  13369. #define TAMP_SR_TAMP6F_Pos (5U)
  13370. #define TAMP_SR_TAMP6F_Msk (0x1UL << TAMP_SR_TAMP6F_Pos) /*!< 0x00000020 */
  13371. #define TAMP_SR_TAMP6F TAMP_SR_TAMP6F_Msk
  13372. #define TAMP_SR_TAMP7F_Pos (6U)
  13373. #define TAMP_SR_TAMP7F_Msk (0x1UL << TAMP_SR_TAMP7F_Pos) /*!< 0x00000040 */
  13374. #define TAMP_SR_TAMP7F TAMP_SR_TAMP7F_Msk
  13375. #define TAMP_SR_TAMP8F_Pos (7U)
  13376. #define TAMP_SR_TAMP8F_Msk (0x1UL << TAMP_SR_TAMP8F_Pos) /*!< 0x00000080 */
  13377. #define TAMP_SR_TAMP8F TAMP_SR_TAMP8F_Msk
  13378. #define TAMP_SR_ITAMP1F_Pos (16U)
  13379. #define TAMP_SR_ITAMP1F_Msk (0x1UL << TAMP_SR_ITAMP1F_Pos) /*!< 0x00010000 */
  13380. #define TAMP_SR_ITAMP1F TAMP_SR_ITAMP1F_Msk
  13381. #define TAMP_SR_ITAMP2F_Pos (17U)
  13382. #define TAMP_SR_ITAMP2F_Msk (0x1UL << TAMP_SR_ITAMP2F_Pos) /*!< 0x00010000 */
  13383. #define TAMP_SR_ITAMP2F TAMP_SR_ITAMP2F_Msk
  13384. #define TAMP_SR_ITAMP3F_Pos (18U)
  13385. #define TAMP_SR_ITAMP3F_Msk (0x1UL << TAMP_SR_ITAMP3F_Pos) /*!< 0x00040000 */
  13386. #define TAMP_SR_ITAMP3F TAMP_SR_ITAMP3F_Msk
  13387. #define TAMP_SR_ITAMP5F_Pos (20U)
  13388. #define TAMP_SR_ITAMP5F_Msk (0x1UL << TAMP_SR_ITAMP5F_Pos) /*!< 0x00100000 */
  13389. #define TAMP_SR_ITAMP5F TAMP_SR_ITAMP5F_Msk
  13390. #define TAMP_SR_ITAMP8F_Pos (23U)
  13391. #define TAMP_SR_ITAMP8F_Msk (0x1UL << TAMP_SR_ITAMP8F_Pos) /*!< 0x00400000 */
  13392. #define TAMP_SR_ITAMP8F TAMP_SR_ITAMP8F_Msk
  13393. /******************** Bits definition for TAMP_MISR register ************ *****/
  13394. #define TAMP_MISR_TAMP1MF_Pos (0U)
  13395. #define TAMP_MISR_TAMP1MF_Msk (0x1UL << TAMP_MISR_TAMP1MF_Pos) /*!< 0x00000001 */
  13396. #define TAMP_MISR_TAMP1MF TAMP_MISR_TAMP1MF_Msk
  13397. #define TAMP_MISR_TAMP2MF_Pos (1U)
  13398. #define TAMP_MISR_TAMP2MF_Msk (0x1UL << TAMP_MISR_TAMP2MF_Pos) /*!< 0x00000002 */
  13399. #define TAMP_MISR_TAMP2MF TAMP_MISR_TAMP2MF_Msk
  13400. #define TAMP_MISR_TAMP3MF_Pos (2U)
  13401. #define TAMP_MISR_TAMP3MF_Msk (0x1UL << TAMP_MISR_TAMP3MF_Pos) /*!< 0x00000004 */
  13402. #define TAMP_MISR_TAMP3MF TAMP_MISR_TAMP3MF_Msk
  13403. #define TAMP_MISR_TAMP4MF_Pos (3U)
  13404. #define TAMP_MISR_TAMP4MF_Msk (0x1UL << TAMP_MISR_TAMP4MF_Pos) /*!< 0x00000008 */
  13405. #define TAMP_MISR_TAMP4MF TAMP_MISR_TAMP4MF_Msk
  13406. #define TAMP_MISR_TAMP5MF_Pos (4U)
  13407. #define TAMP_MISR_TAMP5MF_Msk (0x1UL << TAMP_MISR_TAMP5MF_Pos) /*!< 0x00000010 */
  13408. #define TAMP_MISR_TAMP5MF TAMP_MISR_TAMP5MF_Msk
  13409. #define TAMP_MISR_TAMP6MF_Pos (5U)
  13410. #define TAMP_MISR_TAMP6MF_Msk (0x1UL << TAMP_MISR_TAMP6MF_Pos) /*!< 0x00000020 */
  13411. #define TAMP_MISR_TAMP6MF TAMP_MISR_TAMP6MF_Msk
  13412. #define TAMP_MISR_TAMP7MF_Pos (6U)
  13413. #define TAMP_MISR_TAMP7MF_Msk (0x1UL << TAMP_MISR_TAMP7MF_Pos) /*!< 0x00000040 */
  13414. #define TAMP_MISR_TAMP7MF TAMP_MISR_TAMP7MF_Msk
  13415. #define TAMP_MISR_TAMP8MF_Pos (7U)
  13416. #define TAMP_MISR_TAMP8MF_Msk (0x1UL << TAMP_MISR_TAMP8MF_Pos) /*!< 0x00000080 */
  13417. #define TAMP_MISR_TAMP8MF TAMP_MISR_TAMP8MF_Msk
  13418. #define TAMP_MISR_ITAMP1MF_Pos (16U)
  13419. #define TAMP_MISR_ITAMP1MF_Msk (0x1UL << TAMP_MISR_ITAMP1MF_Pos) /*!< 0x00010000 */
  13420. #define TAMP_MISR_ITAMP1MF TAMP_MISR_ITAMP1MF_Msk
  13421. #define TAMP_MISR_ITAMP2MF_Pos (17U)
  13422. #define TAMP_MISR_ITAMP2MF_Msk (0x1UL << TAMP_MISR_ITAMP2MF_Pos) /*!< 0x00010000 */
  13423. #define TAMP_MISR_ITAMP2MF TAMP_MISR_ITAMP2MF_Msk
  13424. #define TAMP_MISR_ITAMP3MF_Pos (18U)
  13425. #define TAMP_MISR_ITAMP3MF_Msk (0x1UL << TAMP_MISR_ITAMP3MF_Pos) /*!< 0x00040000 */
  13426. #define TAMP_MISR_ITAMP3MF TAMP_MISR_ITAMP3MF_Msk
  13427. #define TAMP_MISR_ITAMP5MF_Pos (20U)
  13428. #define TAMP_MISR_ITAMP5MF_Msk (0x1UL << TAMP_MISR_ITAMP5MF_Pos) /*!< 0x00100000 */
  13429. #define TAMP_MISR_ITAMP5MF TAMP_MISR_ITAMP5MF_Msk
  13430. #define TAMP_MISR_ITAMP8MF_Pos (23U)
  13431. #define TAMP_MISR_ITAMP8MF_Msk (0x1UL << TAMP_MISR_ITAMP8MF_Pos) /*!< 0x00400000 */
  13432. #define TAMP_MISR_ITAMP8MF TAMP_MISR_ITAMP8MF_Msk
  13433. /******************** Bits definition for TAMP_SMISR register ************ *****/
  13434. #define TAMP_SMISR_TAMP1MF_Pos (0U)
  13435. #define TAMP_SMISR_TAMP1MF_Msk (0x1UL << TAMP_SMISR_TAMP1MF_Pos) /*!< 0x00000001 */
  13436. #define TAMP_SMISR_TAMP1MF TAMP_SMISR_TAMP1MF_Msk
  13437. #define TAMP_SMISR_TAMP2MF_Pos (1U)
  13438. #define TAMP_SMISR_TAMP2MF_Msk (0x1UL << TAMP_SMISR_TAMP2MF_Pos) /*!< 0x00000002 */
  13439. #define TAMP_SMISR_TAMP2MF TAMP_SMISR_TAMP2MF_Msk
  13440. #define TAMP_SMISR_TAMP3MF_Pos (2U)
  13441. #define TAMP_SMISR_TAMP3MF_Msk (0x1UL << TAMP_SMISR_TAMP3MF_Pos) /*!< 0x00000004 */
  13442. #define TAMP_SMISR_TAMP3MF TAMP_SMISR_TAMP3MF_Msk
  13443. #define TAMP_SMISR_TAMP4MF_Pos (3U)
  13444. #define TAMP_SMISR_TAMP4MF_Msk (0x1UL << TAMP_SMISR_TAMP4MF_Pos) /*!< 0x00000008 */
  13445. #define TAMP_SMISR_TAMP4MF TAMP_SMISR_TAMP4MF_Msk
  13446. #define TAMP_SMISR_TAMP5MF_Pos (4U)
  13447. #define TAMP_SMISR_TAMP5MF_Msk (0x1UL << TAMP_SMISR_TAMP5MF_Pos) /*!< 0x00000010 */
  13448. #define TAMP_SMISR_TAMP5MF TAMP_SMISR_TAMP5MF_Msk
  13449. #define TAMP_SMISR_TAMP6MF_Pos (5U)
  13450. #define TAMP_SMISR_TAMP6MF_Msk (0x1UL << TAMP_SMISR_TAMP6MF_Pos) /*!< 0x00000020 */
  13451. #define TAMP_SMISR_TAMP6MF TAMP_SMISR_TAMP6MF_Msk
  13452. #define TAMP_SMISR_TAMP7MF_Pos (6U)
  13453. #define TAMP_SMISR_TAMP7MF_Msk (0x1UL << TAMP_SMISR_TAMP7MF_Pos) /*!< 0x00000040 */
  13454. #define TAMP_SMISR_TAMP7MF TAMP_SMISR_TAMP7MF_Msk
  13455. #define TAMP_SMISR_TAMP8MF_Pos (7U)
  13456. #define TAMP_SMISR_TAMP8MF_Msk (0x1UL << TAMP_SMISR_TAMP8MF_Pos) /*!< 0x00000080 */
  13457. #define TAMP_SMISR_TAMP8MF TAMP_SMISR_TAMP8MF_Msk
  13458. #define TAMP_SMISR_ITAMP1MF_Pos (16U)
  13459. #define TAMP_SMISR_ITAMP1MF_Msk (0x1UL << TAMP_SMISR_ITAMP1MF_Pos) /*!< 0x00010000 */
  13460. #define TAMP_SMISR_ITAMP1MF TAMP_SMISR_ITAMP1MF_Msk
  13461. #define TAMP_SMISR_ITAMP2MF_Pos (17U)
  13462. #define TAMP_SMISR_ITAMP2MF_Msk (0x1UL << TAMP_SMISR_ITAMP2MF_Pos) /*!< 0x00010000 */
  13463. #define TAMP_SMISR_ITAMP2MF TAMP_SMISR_ITAMP2MF_Msk
  13464. #define TAMP_SMISR_ITAMP3MF_Pos (18U)
  13465. #define TAMP_SMISR_ITAMP3MF_Msk (0x1UL << TAMP_SMISR_ITAMP3MF_Pos) /*!< 0x00040000 */
  13466. #define TAMP_SMISR_ITAMP3MF TAMP_SMISR_ITAMP3MF_Msk
  13467. #define TAMP_SMISR_ITAMP5MF_Pos (20U)
  13468. #define TAMP_SMISR_ITAMP5MF_Msk (0x1UL << TAMP_SMISR_ITAMP5MF_Pos) /*!< 0x00100000 */
  13469. #define TAMP_SMISR_ITAMP5MF TAMP_SMISR_ITAMP5MF_Msk
  13470. #define TAMP_SMISR_ITAMP8MF_Pos (23U)
  13471. #define TAMP_SMISR_ITAMP8MF_Msk (0x1UL << TAMP_SMISR_ITAMP8MF_Pos) /*!< 0x00400000 */
  13472. #define TAMP_SMISR_ITAMP8MF TAMP_SMISR_ITAMP8MF_Msk
  13473. /******************** Bits definition for TAMP_SCR register *****************/
  13474. #define TAMP_SCR_CTAMP1F_Pos (0U)
  13475. #define TAMP_SCR_CTAMP1F_Msk (0x1UL << TAMP_SCR_CTAMP1F_Pos) /*!< 0x00000001 */
  13476. #define TAMP_SCR_CTAMP1F TAMP_SCR_CTAMP1F_Msk
  13477. #define TAMP_SCR_CTAMP2F_Pos (1U)
  13478. #define TAMP_SCR_CTAMP2F_Msk (0x1UL << TAMP_SCR_CTAMP2F_Pos) /*!< 0x00000002 */
  13479. #define TAMP_SCR_CTAMP2F TAMP_SCR_CTAMP2F_Msk
  13480. #define TAMP_SCR_CTAMP3F_Pos (2U)
  13481. #define TAMP_SCR_CTAMP3F_Msk (0x1UL << TAMP_SCR_CTAMP3F_Pos) /*!< 0x00000004 */
  13482. #define TAMP_SCR_CTAMP3F TAMP_SCR_CTAMP3F_Msk
  13483. #define TAMP_SCR_CTAMP4F_Pos (3U)
  13484. #define TAMP_SCR_CTAMP4F_Msk (0x1UL << TAMP_SCR_CTAMP4F_Pos) /*!< 0x00000008 */
  13485. #define TAMP_SCR_CTAMP4F TAMP_SCR_CTAMP4F_Msk
  13486. #define TAMP_SCR_CTAMP5F_Pos (4U)
  13487. #define TAMP_SCR_CTAMP5F_Msk (0x1UL << TAMP_SCR_CTAMP5F_Pos) /*!< 0x00000010 */
  13488. #define TAMP_SCR_CTAMP5F TAMP_SCR_CTAMP5F_Msk
  13489. #define TAMP_SCR_CTAMP6F_Pos (5U)
  13490. #define TAMP_SCR_CTAMP6F_Msk (0x1UL << TAMP_SCR_CTAMP6F_Pos) /*!< 0x00000020 */
  13491. #define TAMP_SCR_CTAMP6F TAMP_SCR_CTAMP6F_Msk
  13492. #define TAMP_SCR_CTAMP7F_Pos (6U)
  13493. #define TAMP_SCR_CTAMP7F_Msk (0x1UL << TAMP_SCR_CTAMP7F_Pos) /*!< 0x00000040 */
  13494. #define TAMP_SCR_CTAMP7F TAMP_SCR_CTAMP7F_Msk
  13495. #define TAMP_SCR_CTAMP8F_Pos (7U)
  13496. #define TAMP_SCR_CTAMP8F_Msk (0x1UL << TAMP_SCR_CTAMP8F_Pos) /*!< 0x00000080 */
  13497. #define TAMP_SCR_CTAMP8F TAMP_SCR_CTAMP8F_Msk
  13498. #define TAMP_SCR_CITAMP1F_Pos (16U)
  13499. #define TAMP_SCR_CITAMP1F_Msk (0x1UL << TAMP_SCR_CITAMP1F_Pos) /*!< 0x00010000 */
  13500. #define TAMP_SCR_CITAMP1F TAMP_SCR_CITAMP1F_Msk
  13501. #define TAMP_SCR_CITAMP2F_Pos (17U)
  13502. #define TAMP_SCR_CITAMP2F_Msk (0x1UL << TAMP_SCR_CITAMP2F_Pos) /*!< 0x00010000 */
  13503. #define TAMP_SCR_CITAMP2F TAMP_SCR_CITAMP2F_Msk
  13504. #define TAMP_SCR_CITAMP3F_Pos (18U)
  13505. #define TAMP_SCR_CITAMP3F_Msk (0x1UL << TAMP_SCR_CITAMP3F_Pos) /*!< 0x00040000 */
  13506. #define TAMP_SCR_CITAMP3F TAMP_SCR_CITAMP3F_Msk
  13507. #define TAMP_SCR_CITAMP5F_Pos (20U)
  13508. #define TAMP_SCR_CITAMP5F_Msk (0x1UL << TAMP_SCR_CITAMP5F_Pos) /*!< 0x00100000 */
  13509. #define TAMP_SCR_CITAMP5F TAMP_SCR_CITAMP5F_Msk
  13510. #define TAMP_SCR_CITAMP8F_Pos (23U)
  13511. #define TAMP_SCR_CITAMP8F_Msk (0x1UL << TAMP_SCR_CITAMP8F_Pos) /*!< 0x00400000 */
  13512. #define TAMP_SCR_CITAMP8F TAMP_SCR_CITAMP8F_Msk
  13513. /******************** Bits definition for TAMP_COUNTR register ***************/
  13514. #define TAMP_COUNTR_Pos (16U)
  13515. #define TAMP_COUNTR_Msk (0xFFFFUL << TAMP_COUNTR_Pos) /*!< 0xFFFF0000 */
  13516. #define TAMP_COUNTR TAMP_COUNTR_Msk
  13517. /******************** Bits definition for TAMP_BKP0R register ***************/
  13518. #define TAMP_BKP0R_Pos (0U)
  13519. #define TAMP_BKP0R_Msk (0xFFFFFFFFUL << TAMP_BKP0R_Pos) /*!< 0xFFFFFFFF */
  13520. #define TAMP_BKP0R TAMP_BKP0R_Msk
  13521. /******************** Bits definition for TAMP_BKP1R register ****************/
  13522. #define TAMP_BKP1R_Pos (0U)
  13523. #define TAMP_BKP1R_Msk (0xFFFFFFFFUL << TAMP_BKP1R_Pos) /*!< 0xFFFFFFFF */
  13524. #define TAMP_BKP1R TAMP_BKP1R_Msk
  13525. /******************** Bits definition for TAMP_BKP2R register ****************/
  13526. #define TAMP_BKP2R_Pos (0U)
  13527. #define TAMP_BKP2R_Msk (0xFFFFFFFFUL << TAMP_BKP2R_Pos) /*!< 0xFFFFFFFF */
  13528. #define TAMP_BKP2R TAMP_BKP2R_Msk
  13529. /******************** Bits definition for TAMP_BKP3R register ****************/
  13530. #define TAMP_BKP3R_Pos (0U)
  13531. #define TAMP_BKP3R_Msk (0xFFFFFFFFUL << TAMP_BKP3R_Pos) /*!< 0xFFFFFFFF */
  13532. #define TAMP_BKP3R TAMP_BKP3R_Msk
  13533. /******************** Bits definition for TAMP_BKP4R register ****************/
  13534. #define TAMP_BKP4R_Pos (0U)
  13535. #define TAMP_BKP4R_Msk (0xFFFFFFFFUL << TAMP_BKP4R_Pos) /*!< 0xFFFFFFFF */
  13536. #define TAMP_BKP4R TAMP_BKP4R_Msk
  13537. /******************** Bits definition for TAMP_BKP5R register ****************/
  13538. #define TAMP_BKP5R_Pos (0U)
  13539. #define TAMP_BKP5R_Msk (0xFFFFFFFFUL << TAMP_BKP5R_Pos) /*!< 0xFFFFFFFF */
  13540. #define TAMP_BKP5R TAMP_BKP5R_Msk
  13541. /******************** Bits definition for TAMP_BKP6R register ****************/
  13542. #define TAMP_BKP6R_Pos (0U)
  13543. #define TAMP_BKP6R_Msk (0xFFFFFFFFUL << TAMP_BKP6R_Pos) /*!< 0xFFFFFFFF */
  13544. #define TAMP_BKP6R TAMP_BKP6R_Msk
  13545. /******************** Bits definition for TAMP_BKP7R register ****************/
  13546. #define TAMP_BKP7R_Pos (0U)
  13547. #define TAMP_BKP7R_Msk (0xFFFFFFFFUL << TAMP_BKP7R_Pos) /*!< 0xFFFFFFFF */
  13548. #define TAMP_BKP7R TAMP_BKP7R_Msk
  13549. /******************** Bits definition for TAMP_BKP8R register ****************/
  13550. #define TAMP_BKP8R_Pos (0U)
  13551. #define TAMP_BKP8R_Msk (0xFFFFFFFFUL << TAMP_BKP8R_Pos) /*!< 0xFFFFFFFF */
  13552. #define TAMP_BKP8R TAMP_BKP8R_Msk
  13553. /******************** Bits definition for TAMP_BKP9R register ****************/
  13554. #define TAMP_BKP9R_Pos (0U)
  13555. #define TAMP_BKP9R_Msk (0xFFFFFFFFUL << TAMP_BKP9R_Pos) /*!< 0xFFFFFFFF */
  13556. #define TAMP_BKP9R TAMP_BKP9R_Msk
  13557. /******************** Bits definition for TAMP_BKP10R register ***************/
  13558. #define TAMP_BKP10R_Pos (0U)
  13559. #define TAMP_BKP10R_Msk (0xFFFFFFFFUL << TAMP_BKP10R_Pos) /*!< 0xFFFFFFFF */
  13560. #define TAMP_BKP10R TAMP_BKP10R_Msk
  13561. /******************** Bits definition for TAMP_BKP11R register ***************/
  13562. #define TAMP_BKP11R_Pos (0U)
  13563. #define TAMP_BKP11R_Msk (0xFFFFFFFFUL << TAMP_BKP11R_Pos) /*!< 0xFFFFFFFF */
  13564. #define TAMP_BKP11R TAMP_BKP11R_Msk
  13565. /******************** Bits definition for TAMP_BKP12R register ***************/
  13566. #define TAMP_BKP12R_Pos (0U)
  13567. #define TAMP_BKP12R_Msk (0xFFFFFFFFUL << TAMP_BKP12R_Pos) /*!< 0xFFFFFFFF */
  13568. #define TAMP_BKP12R TAMP_BKP12R_Msk
  13569. /******************** Bits definition for TAMP_BKP13R register ***************/
  13570. #define TAMP_BKP13R_Pos (0U)
  13571. #define TAMP_BKP13R_Msk (0xFFFFFFFFUL << TAMP_BKP13R_Pos) /*!< 0xFFFFFFFF */
  13572. #define TAMP_BKP13R TAMP_BKP13R_Msk
  13573. /******************** Bits definition for TAMP_BKP14R register ***************/
  13574. #define TAMP_BKP14R_Pos (0U)
  13575. #define TAMP_BKP14R_Msk (0xFFFFFFFFUL << TAMP_BKP14R_Pos) /*!< 0xFFFFFFFF */
  13576. #define TAMP_BKP14R TAMP_BKP14R_Msk
  13577. /******************** Bits definition for TAMP_BKP15R register ***************/
  13578. #define TAMP_BKP15R_Pos (0U)
  13579. #define TAMP_BKP15R_Msk (0xFFFFFFFFUL << TAMP_BKP15R_Pos) /*!< 0xFFFFFFFF */
  13580. #define TAMP_BKP15R TAMP_BKP15R_Msk
  13581. /******************** Bits definition for TAMP_BKP16R register ***************/
  13582. #define TAMP_BKP16R_Pos (0U)
  13583. #define TAMP_BKP16R_Msk (0xFFFFFFFFUL << TAMP_BKP16R_Pos) /*!< 0xFFFFFFFF */
  13584. #define TAMP_BKP16R TAMP_BKP16R_Msk
  13585. /******************** Bits definition for TAMP_BKP17R register ***************/
  13586. #define TAMP_BKP17R_Pos (0U)
  13587. #define TAMP_BKP17R_Msk (0xFFFFFFFFUL << TAMP_BKP17R_Pos) /*!< 0xFFFFFFFF */
  13588. #define TAMP_BKP17R TAMP_BKP17R_Msk
  13589. /******************** Bits definition for TAMP_BKP18R register ***************/
  13590. #define TAMP_BKP18R_Pos (0U)
  13591. #define TAMP_BKP18R_Msk (0xFFFFFFFFUL << TAMP_BKP18R_Pos) /*!< 0xFFFFFFFF */
  13592. #define TAMP_BKP18R TAMP_BKP18R_Msk
  13593. /******************** Bits definition for TAMP_BKP19R register ***************/
  13594. #define TAMP_BKP19R_Pos (0U)
  13595. #define TAMP_BKP19R_Msk (0xFFFFFFFFUL << TAMP_BKP19R_Pos) /*!< 0xFFFFFFFF */
  13596. #define TAMP_BKP19R TAMP_BKP19R_Msk
  13597. /******************** Bits definition for TAMP_BKP20R register ***************/
  13598. #define TAMP_BKP20R_Pos (0U)
  13599. #define TAMP_BKP20R_Msk (0xFFFFFFFFUL << TAMP_BKP20R_Pos) /*!< 0xFFFFFFFF */
  13600. #define TAMP_BKP20R TAMP_BKP20R_Msk
  13601. /******************** Bits definition for TAMP_BKP21R register ***************/
  13602. #define TAMP_BKP21R_Pos (0U)
  13603. #define TAMP_BKP21R_Msk (0xFFFFFFFFUL << TAMP_BKP21R_Pos) /*!< 0xFFFFFFFF */
  13604. #define TAMP_BKP21R TAMP_BKP21R_Msk
  13605. /******************** Bits definition for TAMP_BKP22R register ***************/
  13606. #define TAMP_BKP22R_Pos (0U)
  13607. #define TAMP_BKP22R_Msk (0xFFFFFFFFUL << TAMP_BKP22R_Pos) /*!< 0xFFFFFFFF */
  13608. #define TAMP_BKP22R TAMP_BKP22R_Msk
  13609. /******************** Bits definition for TAMP_BKP23R register ***************/
  13610. #define TAMP_BKP23R_Pos (0U)
  13611. #define TAMP_BKP23R_Msk (0xFFFFFFFFUL << TAMP_BKP23R_Pos) /*!< 0xFFFFFFFF */
  13612. #define TAMP_BKP23R TAMP_BKP23R_Msk
  13613. /******************** Bits definition for TAMP_BKP24R register ***************/
  13614. #define TAMP_BKP24R_Pos (0U)
  13615. #define TAMP_BKP24R_Msk (0xFFFFFFFFUL << TAMP_BKP24R_Pos) /*!< 0xFFFFFFFF */
  13616. #define TAMP_BKP24R TAMP_BKP24R_Msk
  13617. /******************** Bits definition for TAMP_BKP25R register ***************/
  13618. #define TAMP_BKP25R_Pos (0U)
  13619. #define TAMP_BKP25R_Msk (0xFFFFFFFFUL << TAMP_BKP25R_Pos) /*!< 0xFFFFFFFF */
  13620. #define TAMP_BKP25R TAMP_BKP25R_Msk
  13621. /******************** Bits definition for TAMP_BKP26R register ***************/
  13622. #define TAMP_BKP26R_Pos (0U)
  13623. #define TAMP_BKP26R_Msk (0xFFFFFFFFUL << TAMP_BKP26R_Pos) /*!< 0xFFFFFFFF */
  13624. #define TAMP_BKP26R TAMP_BKP26R_Msk
  13625. /******************** Bits definition for TAMP_BKP27R register ***************/
  13626. #define TAMP_BKP27R_Pos (0U)
  13627. #define TAMP_BKP27R_Msk (0xFFFFFFFFUL << TAMP_BKP27R_Pos) /*!< 0xFFFFFFFF */
  13628. #define TAMP_BKP27R TAMP_BKP27R_Msk
  13629. /******************** Bits definition for TAMP_BKP28R register ***************/
  13630. #define TAMP_BKP28R_Pos (0U)
  13631. #define TAMP_BKP28R_Msk (0xFFFFFFFFUL << TAMP_BKP28R_Pos) /*!< 0xFFFFFFFF */
  13632. #define TAMP_BKP28R TAMP_BKP28R_Msk
  13633. /******************** Bits definition for TAMP_BKP29R register ***************/
  13634. #define TAMP_BKP29R_Pos (0U)
  13635. #define TAMP_BKP29R_Msk (0xFFFFFFFFUL << TAMP_BKP29R_Pos) /*!< 0xFFFFFFFF */
  13636. #define TAMP_BKP29R TAMP_BKP29R_Msk
  13637. /******************** Bits definition for TAMP_BKP30R register ***************/
  13638. #define TAMP_BKP30R_Pos (0U)
  13639. #define TAMP_BKP30R_Msk (0xFFFFFFFFUL << TAMP_BKP30R_Pos) /*!< 0xFFFFFFFF */
  13640. #define TAMP_BKP30R TAMP_BKP30R_Msk
  13641. /******************** Bits definition for TAMP_BKP31R register ***************/
  13642. #define TAMP_BKP31R_Pos (0U)
  13643. #define TAMP_BKP31R_Msk (0xFFFFFFFFUL << TAMP_BKP31R_Pos) /*!< 0xFFFFFFFF */
  13644. #define TAMP_BKP31R TAMP_BKP31R_Msk
  13645. /******************************************************************************/
  13646. /* */
  13647. /* TIM */
  13648. /* */
  13649. /******************************************************************************/
  13650. /******************* Bit definition for TIM_CR1 register ********************/
  13651. #define TIM_CR1_CEN_Pos (0U)
  13652. #define TIM_CR1_CEN_Msk (0x1UL << TIM_CR1_CEN_Pos) /*!< 0x00000001 */
  13653. #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */
  13654. #define TIM_CR1_UDIS_Pos (1U)
  13655. #define TIM_CR1_UDIS_Msk (0x1UL << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */
  13656. #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */
  13657. #define TIM_CR1_URS_Pos (2U)
  13658. #define TIM_CR1_URS_Msk (0x1UL << TIM_CR1_URS_Pos) /*!< 0x00000004 */
  13659. #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */
  13660. #define TIM_CR1_OPM_Pos (3U)
  13661. #define TIM_CR1_OPM_Msk (0x1UL << TIM_CR1_OPM_Pos) /*!< 0x00000008 */
  13662. #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */
  13663. #define TIM_CR1_DIR_Pos (4U)
  13664. #define TIM_CR1_DIR_Msk (0x1UL << TIM_CR1_DIR_Pos) /*!< 0x00000010 */
  13665. #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */
  13666. #define TIM_CR1_CMS_Pos (5U)
  13667. #define TIM_CR1_CMS_Msk (0x3UL << TIM_CR1_CMS_Pos) /*!< 0x00000060 */
  13668. #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */
  13669. #define TIM_CR1_CMS_0 (0x1UL << TIM_CR1_CMS_Pos) /*!< 0x00000020 */
  13670. #define TIM_CR1_CMS_1 (0x2UL << TIM_CR1_CMS_Pos) /*!< 0x00000040 */
  13671. #define TIM_CR1_ARPE_Pos (7U)
  13672. #define TIM_CR1_ARPE_Msk (0x1UL << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */
  13673. #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */
  13674. #define TIM_CR1_CKD_Pos (8U)
  13675. #define TIM_CR1_CKD_Msk (0x3UL << TIM_CR1_CKD_Pos) /*!< 0x00000300 */
  13676. #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */
  13677. #define TIM_CR1_CKD_0 (0x1UL << TIM_CR1_CKD_Pos) /*!< 0x00000100 */
  13678. #define TIM_CR1_CKD_1 (0x2UL << TIM_CR1_CKD_Pos) /*!< 0x00000200 */
  13679. #define TIM_CR1_UIFREMAP_Pos (11U)
  13680. #define TIM_CR1_UIFREMAP_Msk (0x1UL << TIM_CR1_UIFREMAP_Pos) /*!< 0x00000800 */
  13681. #define TIM_CR1_UIFREMAP TIM_CR1_UIFREMAP_Msk /*!<Update interrupt flag remap */
  13682. /******************* Bit definition for TIM_CR2 register ********************/
  13683. #define TIM_CR2_CCPC_Pos (0U)
  13684. #define TIM_CR2_CCPC_Msk (0x1UL << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  13685. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  13686. #define TIM_CR2_CCUS_Pos (2U)
  13687. #define TIM_CR2_CCUS_Msk (0x1UL << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  13688. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  13689. #define TIM_CR2_CCDS_Pos (3U)
  13690. #define TIM_CR2_CCDS_Msk (0x1UL << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  13691. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  13692. #define TIM_CR2_MMS_Pos (4U)
  13693. #define TIM_CR2_MMS_Msk (0x7UL << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  13694. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  13695. #define TIM_CR2_MMS_0 (0x1UL << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  13696. #define TIM_CR2_MMS_1 (0x2UL << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  13697. #define TIM_CR2_MMS_2 (0x4UL << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  13698. #define TIM_CR2_TI1S_Pos (7U)
  13699. #define TIM_CR2_TI1S_Msk (0x1UL << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  13700. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  13701. #define TIM_CR2_OIS1_Pos (8U)
  13702. #define TIM_CR2_OIS1_Msk (0x1UL << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  13703. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  13704. #define TIM_CR2_OIS1N_Pos (9U)
  13705. #define TIM_CR2_OIS1N_Msk (0x1UL << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  13706. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  13707. #define TIM_CR2_OIS2_Pos (10U)
  13708. #define TIM_CR2_OIS2_Msk (0x1UL << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  13709. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  13710. #define TIM_CR2_OIS2N_Pos (11U)
  13711. #define TIM_CR2_OIS2N_Msk (0x1UL << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  13712. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  13713. #define TIM_CR2_OIS3_Pos (12U)
  13714. #define TIM_CR2_OIS3_Msk (0x1UL << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  13715. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  13716. #define TIM_CR2_OIS3N_Pos (13U)
  13717. #define TIM_CR2_OIS3N_Msk (0x1UL << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  13718. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  13719. #define TIM_CR2_OIS4_Pos (14U)
  13720. #define TIM_CR2_OIS4_Msk (0x1UL << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  13721. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  13722. #define TIM_CR2_OIS5_Pos (16U)
  13723. #define TIM_CR2_OIS5_Msk (0x1UL << TIM_CR2_OIS5_Pos) /*!< 0x00010000 */
  13724. #define TIM_CR2_OIS5 TIM_CR2_OIS5_Msk /*!<Output Idle state 5 (OC5 output) */
  13725. #define TIM_CR2_OIS6_Pos (18U)
  13726. #define TIM_CR2_OIS6_Msk (0x1UL << TIM_CR2_OIS6_Pos) /*!< 0x00040000 */
  13727. #define TIM_CR2_OIS6 TIM_CR2_OIS6_Msk /*!<Output Idle state 6 (OC6 output) */
  13728. #define TIM_CR2_MMS2_Pos (20U)
  13729. #define TIM_CR2_MMS2_Msk (0xFUL << TIM_CR2_MMS2_Pos) /*!< 0x00F00000 */
  13730. #define TIM_CR2_MMS2 TIM_CR2_MMS2_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  13731. #define TIM_CR2_MMS2_0 (0x1UL << TIM_CR2_MMS2_Pos) /*!< 0x00100000 */
  13732. #define TIM_CR2_MMS2_1 (0x2UL << TIM_CR2_MMS2_Pos) /*!< 0x00200000 */
  13733. #define TIM_CR2_MMS2_2 (0x4UL << TIM_CR2_MMS2_Pos) /*!< 0x00400000 */
  13734. #define TIM_CR2_MMS2_3 (0x8UL << TIM_CR2_MMS2_Pos) /*!< 0x00800000 */
  13735. /******************* Bit definition for TIM_SMCR register *******************/
  13736. #define TIM_SMCR_SMS_Pos (0U)
  13737. #define TIM_SMCR_SMS_Msk (0x10007UL << TIM_SMCR_SMS_Pos) /*!< 0x00010007 */
  13738. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  13739. #define TIM_SMCR_SMS_0 (0x00001UL << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */
  13740. #define TIM_SMCR_SMS_1 (0x00002UL << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */
  13741. #define TIM_SMCR_SMS_2 (0x00004UL << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */
  13742. #define TIM_SMCR_SMS_3 (0x10000UL << TIM_SMCR_SMS_Pos) /*!< 0x00010000 */
  13743. #define TIM_SMCR_TS_Pos (4U)
  13744. #define TIM_SMCR_TS_Msk (0x30007UL << TIM_SMCR_TS_Pos) /*!< 0x00300070 */
  13745. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */
  13746. #define TIM_SMCR_TS_0 (0x00001UL << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  13747. #define TIM_SMCR_TS_1 (0x00002UL << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  13748. #define TIM_SMCR_TS_2 (0x00004UL << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  13749. #define TIM_SMCR_TS_3 (0x10000UL << TIM_SMCR_TS_Pos) /*!< 0x00100000 */
  13750. #define TIM_SMCR_TS_4 (0x20000UL << TIM_SMCR_TS_Pos) /*!< 0x00200000 */
  13751. #define TIM_SMCR_MSM_Pos (7U)
  13752. #define TIM_SMCR_MSM_Msk (0x1UL << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  13753. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  13754. #define TIM_SMCR_ETF_Pos (8U)
  13755. #define TIM_SMCR_ETF_Msk (0xFUL << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  13756. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  13757. #define TIM_SMCR_ETF_0 (0x1UL << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  13758. #define TIM_SMCR_ETF_1 (0x2UL << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  13759. #define TIM_SMCR_ETF_2 (0x4UL << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  13760. #define TIM_SMCR_ETF_3 (0x8UL << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  13761. #define TIM_SMCR_ETPS_Pos (12U)
  13762. #define TIM_SMCR_ETPS_Msk (0x3UL << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  13763. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  13764. #define TIM_SMCR_ETPS_0 (0x1UL << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  13765. #define TIM_SMCR_ETPS_1 (0x2UL << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  13766. #define TIM_SMCR_ECE_Pos (14U)
  13767. #define TIM_SMCR_ECE_Msk (0x1UL << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  13768. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  13769. #define TIM_SMCR_ETP_Pos (15U)
  13770. #define TIM_SMCR_ETP_Msk (0x1UL << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  13771. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  13772. /******************* Bit definition for TIM_DIER register *******************/
  13773. #define TIM_DIER_UIE_Pos (0U)
  13774. #define TIM_DIER_UIE_Msk (0x1UL << TIM_DIER_UIE_Pos) /*!< 0x00000001 */
  13775. #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */
  13776. #define TIM_DIER_CC1IE_Pos (1U)
  13777. #define TIM_DIER_CC1IE_Msk (0x1UL << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */
  13778. #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */
  13779. #define TIM_DIER_CC2IE_Pos (2U)
  13780. #define TIM_DIER_CC2IE_Msk (0x1UL << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */
  13781. #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */
  13782. #define TIM_DIER_CC3IE_Pos (3U)
  13783. #define TIM_DIER_CC3IE_Msk (0x1UL << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */
  13784. #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */
  13785. #define TIM_DIER_CC4IE_Pos (4U)
  13786. #define TIM_DIER_CC4IE_Msk (0x1UL << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */
  13787. #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */
  13788. #define TIM_DIER_COMIE_Pos (5U)
  13789. #define TIM_DIER_COMIE_Msk (0x1UL << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */
  13790. #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */
  13791. #define TIM_DIER_TIE_Pos (6U)
  13792. #define TIM_DIER_TIE_Msk (0x1UL << TIM_DIER_TIE_Pos) /*!< 0x00000040 */
  13793. #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */
  13794. #define TIM_DIER_BIE_Pos (7U)
  13795. #define TIM_DIER_BIE_Msk (0x1UL << TIM_DIER_BIE_Pos) /*!< 0x00000080 */
  13796. #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */
  13797. #define TIM_DIER_UDE_Pos (8U)
  13798. #define TIM_DIER_UDE_Msk (0x1UL << TIM_DIER_UDE_Pos) /*!< 0x00000100 */
  13799. #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */
  13800. #define TIM_DIER_CC1DE_Pos (9U)
  13801. #define TIM_DIER_CC1DE_Msk (0x1UL << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */
  13802. #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */
  13803. #define TIM_DIER_CC2DE_Pos (10U)
  13804. #define TIM_DIER_CC2DE_Msk (0x1UL << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */
  13805. #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */
  13806. #define TIM_DIER_CC3DE_Pos (11U)
  13807. #define TIM_DIER_CC3DE_Msk (0x1UL << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */
  13808. #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */
  13809. #define TIM_DIER_CC4DE_Pos (12U)
  13810. #define TIM_DIER_CC4DE_Msk (0x1UL << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */
  13811. #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */
  13812. #define TIM_DIER_COMDE_Pos (13U)
  13813. #define TIM_DIER_COMDE_Msk (0x1UL << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */
  13814. #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */
  13815. #define TIM_DIER_TDE_Pos (14U)
  13816. #define TIM_DIER_TDE_Msk (0x1UL << TIM_DIER_TDE_Pos) /*!< 0x00004000 */
  13817. #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */
  13818. /******************** Bit definition for TIM_SR register ********************/
  13819. #define TIM_SR_UIF_Pos (0U)
  13820. #define TIM_SR_UIF_Msk (0x1UL << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  13821. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  13822. #define TIM_SR_CC1IF_Pos (1U)
  13823. #define TIM_SR_CC1IF_Msk (0x1UL << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  13824. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  13825. #define TIM_SR_CC2IF_Pos (2U)
  13826. #define TIM_SR_CC2IF_Msk (0x1UL << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  13827. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  13828. #define TIM_SR_CC3IF_Pos (3U)
  13829. #define TIM_SR_CC3IF_Msk (0x1UL << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  13830. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  13831. #define TIM_SR_CC4IF_Pos (4U)
  13832. #define TIM_SR_CC4IF_Msk (0x1UL << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  13833. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  13834. #define TIM_SR_COMIF_Pos (5U)
  13835. #define TIM_SR_COMIF_Msk (0x1UL << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  13836. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  13837. #define TIM_SR_TIF_Pos (6U)
  13838. #define TIM_SR_TIF_Msk (0x1UL << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  13839. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  13840. #define TIM_SR_BIF_Pos (7U)
  13841. #define TIM_SR_BIF_Msk (0x1UL << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  13842. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  13843. #define TIM_SR_B2IF_Pos (8U)
  13844. #define TIM_SR_B2IF_Msk (0x1UL << TIM_SR_B2IF_Pos) /*!< 0x00000100 */
  13845. #define TIM_SR_B2IF TIM_SR_B2IF_Msk /*!<Break 2 interrupt Flag */
  13846. #define TIM_SR_CC1OF_Pos (9U)
  13847. #define TIM_SR_CC1OF_Msk (0x1UL << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  13848. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  13849. #define TIM_SR_CC2OF_Pos (10U)
  13850. #define TIM_SR_CC2OF_Msk (0x1UL << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  13851. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  13852. #define TIM_SR_CC3OF_Pos (11U)
  13853. #define TIM_SR_CC3OF_Msk (0x1UL << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  13854. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  13855. #define TIM_SR_CC4OF_Pos (12U)
  13856. #define TIM_SR_CC4OF_Msk (0x1UL << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  13857. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  13858. #define TIM_SR_SBIF_Pos (13U)
  13859. #define TIM_SR_SBIF_Msk (0x1UL << TIM_SR_SBIF_Pos) /*!< 0x00002000 */
  13860. #define TIM_SR_SBIF TIM_SR_SBIF_Msk /*!<System Break interrupt Flag */
  13861. #define TIM_SR_CC5IF_Pos (16U)
  13862. #define TIM_SR_CC5IF_Msk (0x1UL << TIM_SR_CC5IF_Pos) /*!< 0x00010000 */
  13863. #define TIM_SR_CC5IF TIM_SR_CC5IF_Msk /*!<Capture/Compare 5 interrupt Flag */
  13864. #define TIM_SR_CC6IF_Pos (17U)
  13865. #define TIM_SR_CC6IF_Msk (0x1UL << TIM_SR_CC6IF_Pos) /*!< 0x00020000 */
  13866. #define TIM_SR_CC6IF TIM_SR_CC6IF_Msk /*!<Capture/Compare 6 interrupt Flag */
  13867. /******************* Bit definition for TIM_EGR register ********************/
  13868. #define TIM_EGR_UG_Pos (0U)
  13869. #define TIM_EGR_UG_Msk (0x1UL << TIM_EGR_UG_Pos) /*!< 0x00000001 */
  13870. #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */
  13871. #define TIM_EGR_CC1G_Pos (1U)
  13872. #define TIM_EGR_CC1G_Msk (0x1UL << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */
  13873. #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */
  13874. #define TIM_EGR_CC2G_Pos (2U)
  13875. #define TIM_EGR_CC2G_Msk (0x1UL << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */
  13876. #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */
  13877. #define TIM_EGR_CC3G_Pos (3U)
  13878. #define TIM_EGR_CC3G_Msk (0x1UL << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */
  13879. #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */
  13880. #define TIM_EGR_CC4G_Pos (4U)
  13881. #define TIM_EGR_CC4G_Msk (0x1UL << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */
  13882. #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */
  13883. #define TIM_EGR_COMG_Pos (5U)
  13884. #define TIM_EGR_COMG_Msk (0x1UL << TIM_EGR_COMG_Pos) /*!< 0x00000020 */
  13885. #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */
  13886. #define TIM_EGR_TG_Pos (6U)
  13887. #define TIM_EGR_TG_Msk (0x1UL << TIM_EGR_TG_Pos) /*!< 0x00000040 */
  13888. #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */
  13889. #define TIM_EGR_BG_Pos (7U)
  13890. #define TIM_EGR_BG_Msk (0x1UL << TIM_EGR_BG_Pos) /*!< 0x00000080 */
  13891. #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */
  13892. #define TIM_EGR_B2G_Pos (8U)
  13893. #define TIM_EGR_B2G_Msk (0x1UL << TIM_EGR_B2G_Pos) /*!< 0x00000100 */
  13894. #define TIM_EGR_B2G TIM_EGR_B2G_Msk /*!<Break 2 Generation */
  13895. /****************** Bit definition for TIM_CCMR1 register *******************/
  13896. #define TIM_CCMR1_CC1S_Pos (0U)
  13897. #define TIM_CCMR1_CC1S_Msk (0x3UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  13898. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  13899. #define TIM_CCMR1_CC1S_0 (0x1UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  13900. #define TIM_CCMR1_CC1S_1 (0x2UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  13901. #define TIM_CCMR1_OC1FE_Pos (2U)
  13902. #define TIM_CCMR1_OC1FE_Msk (0x1UL << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  13903. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  13904. #define TIM_CCMR1_OC1PE_Pos (3U)
  13905. #define TIM_CCMR1_OC1PE_Msk (0x1UL << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  13906. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  13907. #define TIM_CCMR1_OC1M_Pos (4U)
  13908. #define TIM_CCMR1_OC1M_Msk (0x1007UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00010070 */
  13909. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  13910. #define TIM_CCMR1_OC1M_0 (0x0001UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */
  13911. #define TIM_CCMR1_OC1M_1 (0x0002UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */
  13912. #define TIM_CCMR1_OC1M_2 (0x0004UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */
  13913. #define TIM_CCMR1_OC1M_3 (0x1000UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00010000 */
  13914. #define TIM_CCMR1_OC1CE_Pos (7U)
  13915. #define TIM_CCMR1_OC1CE_Msk (0x1UL << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  13916. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1 Clear Enable */
  13917. #define TIM_CCMR1_CC2S_Pos (8U)
  13918. #define TIM_CCMR1_CC2S_Msk (0x3UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  13919. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  13920. #define TIM_CCMR1_CC2S_0 (0x1UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  13921. #define TIM_CCMR1_CC2S_1 (0x2UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  13922. #define TIM_CCMR1_OC2FE_Pos (10U)
  13923. #define TIM_CCMR1_OC2FE_Msk (0x1UL << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  13924. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  13925. #define TIM_CCMR1_OC2PE_Pos (11U)
  13926. #define TIM_CCMR1_OC2PE_Msk (0x1UL << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  13927. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  13928. #define TIM_CCMR1_OC2M_Pos (12U)
  13929. #define TIM_CCMR1_OC2M_Msk (0x1007UL << TIM_CCMR1_OC2M_Pos) /*!< 0x01007000 */
  13930. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  13931. #define TIM_CCMR1_OC2M_0 (0x0001UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */
  13932. #define TIM_CCMR1_OC2M_1 (0x0002UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */
  13933. #define TIM_CCMR1_OC2M_2 (0x0004UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */
  13934. #define TIM_CCMR1_OC2M_3 (0x1000UL << TIM_CCMR1_OC2M_Pos) /*!< 0x01000000 */
  13935. #define TIM_CCMR1_OC2CE_Pos (15U)
  13936. #define TIM_CCMR1_OC2CE_Msk (0x1UL << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  13937. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  13938. /*----------------------------------------------------------------------------*/
  13939. #define TIM_CCMR1_IC1PSC_Pos (2U)
  13940. #define TIM_CCMR1_IC1PSC_Msk (0x3UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  13941. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  13942. #define TIM_CCMR1_IC1PSC_0 (0x1UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  13943. #define TIM_CCMR1_IC1PSC_1 (0x2UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  13944. #define TIM_CCMR1_IC1F_Pos (4U)
  13945. #define TIM_CCMR1_IC1F_Msk (0xFUL << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  13946. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  13947. #define TIM_CCMR1_IC1F_0 (0x1UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  13948. #define TIM_CCMR1_IC1F_1 (0x2UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  13949. #define TIM_CCMR1_IC1F_2 (0x4UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  13950. #define TIM_CCMR1_IC1F_3 (0x8UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  13951. #define TIM_CCMR1_IC2PSC_Pos (10U)
  13952. #define TIM_CCMR1_IC2PSC_Msk (0x3UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  13953. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  13954. #define TIM_CCMR1_IC2PSC_0 (0x1UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  13955. #define TIM_CCMR1_IC2PSC_1 (0x2UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  13956. #define TIM_CCMR1_IC2F_Pos (12U)
  13957. #define TIM_CCMR1_IC2F_Msk (0xFUL << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  13958. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  13959. #define TIM_CCMR1_IC2F_0 (0x1UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  13960. #define TIM_CCMR1_IC2F_1 (0x2UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  13961. #define TIM_CCMR1_IC2F_2 (0x4UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  13962. #define TIM_CCMR1_IC2F_3 (0x8UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  13963. /****************** Bit definition for TIM_CCMR2 register *******************/
  13964. #define TIM_CCMR2_CC3S_Pos (0U)
  13965. #define TIM_CCMR2_CC3S_Msk (0x3UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  13966. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  13967. #define TIM_CCMR2_CC3S_0 (0x1UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  13968. #define TIM_CCMR2_CC3S_1 (0x2UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  13969. #define TIM_CCMR2_OC3FE_Pos (2U)
  13970. #define TIM_CCMR2_OC3FE_Msk (0x1UL << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  13971. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  13972. #define TIM_CCMR2_OC3PE_Pos (3U)
  13973. #define TIM_CCMR2_OC3PE_Msk (0x1UL << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  13974. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  13975. #define TIM_CCMR2_OC3M_Pos (4U)
  13976. #define TIM_CCMR2_OC3M_Msk (0x1007UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00010070 */
  13977. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  13978. #define TIM_CCMR2_OC3M_0 (0x0001UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */
  13979. #define TIM_CCMR2_OC3M_1 (0x0002UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */
  13980. #define TIM_CCMR2_OC3M_2 (0x0004UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */
  13981. #define TIM_CCMR2_OC3M_3 (0x1000UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00010000 */
  13982. #define TIM_CCMR2_OC3CE_Pos (7U)
  13983. #define TIM_CCMR2_OC3CE_Msk (0x1UL << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  13984. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  13985. #define TIM_CCMR2_CC4S_Pos (8U)
  13986. #define TIM_CCMR2_CC4S_Msk (0x3UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  13987. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  13988. #define TIM_CCMR2_CC4S_0 (0x1UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  13989. #define TIM_CCMR2_CC4S_1 (0x2UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  13990. #define TIM_CCMR2_OC4FE_Pos (10U)
  13991. #define TIM_CCMR2_OC4FE_Msk (0x1UL << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  13992. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  13993. #define TIM_CCMR2_OC4PE_Pos (11U)
  13994. #define TIM_CCMR2_OC4PE_Msk (0x1UL << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  13995. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  13996. #define TIM_CCMR2_OC4M_Pos (12U)
  13997. #define TIM_CCMR2_OC4M_Msk (0x1007UL << TIM_CCMR2_OC4M_Pos) /*!< 0x01007000 */
  13998. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  13999. #define TIM_CCMR2_OC4M_0 (0x0001UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */
  14000. #define TIM_CCMR2_OC4M_1 (0x0002UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */
  14001. #define TIM_CCMR2_OC4M_2 (0x0004UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */
  14002. #define TIM_CCMR2_OC4M_3 (0x1000UL << TIM_CCMR2_OC4M_Pos) /*!< 0x01000000 */
  14003. #define TIM_CCMR2_OC4CE_Pos (15U)
  14004. #define TIM_CCMR2_OC4CE_Msk (0x1UL << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  14005. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  14006. /*----------------------------------------------------------------------------*/
  14007. #define TIM_CCMR2_IC3PSC_Pos (2U)
  14008. #define TIM_CCMR2_IC3PSC_Msk (0x3UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */
  14009. #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  14010. #define TIM_CCMR2_IC3PSC_0 (0x1UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */
  14011. #define TIM_CCMR2_IC3PSC_1 (0x2UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */
  14012. #define TIM_CCMR2_IC3F_Pos (4U)
  14013. #define TIM_CCMR2_IC3F_Msk (0xFUL << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */
  14014. #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  14015. #define TIM_CCMR2_IC3F_0 (0x1UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */
  14016. #define TIM_CCMR2_IC3F_1 (0x2UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */
  14017. #define TIM_CCMR2_IC3F_2 (0x4UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */
  14018. #define TIM_CCMR2_IC3F_3 (0x8UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */
  14019. #define TIM_CCMR2_IC4PSC_Pos (10U)
  14020. #define TIM_CCMR2_IC4PSC_Msk (0x3UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */
  14021. #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  14022. #define TIM_CCMR2_IC4PSC_0 (0x1UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */
  14023. #define TIM_CCMR2_IC4PSC_1 (0x2UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */
  14024. #define TIM_CCMR2_IC4F_Pos (12U)
  14025. #define TIM_CCMR2_IC4F_Msk (0xFUL << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */
  14026. #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  14027. #define TIM_CCMR2_IC4F_0 (0x1UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */
  14028. #define TIM_CCMR2_IC4F_1 (0x2UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */
  14029. #define TIM_CCMR2_IC4F_2 (0x4UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */
  14030. #define TIM_CCMR2_IC4F_3 (0x8UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */
  14031. /****************** Bit definition for TIM_CCMR3 register *******************/
  14032. #define TIM_CCMR3_OC5FE_Pos (2U)
  14033. #define TIM_CCMR3_OC5FE_Msk (0x1UL << TIM_CCMR3_OC5FE_Pos) /*!< 0x00000004 */
  14034. #define TIM_CCMR3_OC5FE TIM_CCMR3_OC5FE_Msk /*!<Output Compare 5 Fast enable */
  14035. #define TIM_CCMR3_OC5PE_Pos (3U)
  14036. #define TIM_CCMR3_OC5PE_Msk (0x1UL << TIM_CCMR3_OC5PE_Pos) /*!< 0x00000008 */
  14037. #define TIM_CCMR3_OC5PE TIM_CCMR3_OC5PE_Msk /*!<Output Compare 5 Preload enable */
  14038. #define TIM_CCMR3_OC5M_Pos (4U)
  14039. #define TIM_CCMR3_OC5M_Msk (0x1007UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00010070 */
  14040. #define TIM_CCMR3_OC5M TIM_CCMR3_OC5M_Msk /*!<OC5M[3:0] bits (Output Compare 5 Mode) */
  14041. #define TIM_CCMR3_OC5M_0 (0x0001UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000010 */
  14042. #define TIM_CCMR3_OC5M_1 (0x0002UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000020 */
  14043. #define TIM_CCMR3_OC5M_2 (0x0004UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000040 */
  14044. #define TIM_CCMR3_OC5M_3 (0x1000UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00010000 */
  14045. #define TIM_CCMR3_OC5CE_Pos (7U)
  14046. #define TIM_CCMR3_OC5CE_Msk (0x1UL << TIM_CCMR3_OC5CE_Pos) /*!< 0x00000080 */
  14047. #define TIM_CCMR3_OC5CE TIM_CCMR3_OC5CE_Msk /*!<Output Compare 5 Clear Enable */
  14048. #define TIM_CCMR3_OC6FE_Pos (10U)
  14049. #define TIM_CCMR3_OC6FE_Msk (0x1UL << TIM_CCMR3_OC6FE_Pos) /*!< 0x00000400 */
  14050. #define TIM_CCMR3_OC6FE TIM_CCMR3_OC6FE_Msk /*!<Output Compare 6 Fast enable */
  14051. #define TIM_CCMR3_OC6PE_Pos (11U)
  14052. #define TIM_CCMR3_OC6PE_Msk (0x1UL << TIM_CCMR3_OC6PE_Pos) /*!< 0x00000800 */
  14053. #define TIM_CCMR3_OC6PE TIM_CCMR3_OC6PE_Msk /*!<Output Compare 6 Preload enable */
  14054. #define TIM_CCMR3_OC6M_Pos (12U)
  14055. #define TIM_CCMR3_OC6M_Msk (0x1007UL << TIM_CCMR3_OC6M_Pos) /*!< 0x01007000 */
  14056. #define TIM_CCMR3_OC6M TIM_CCMR3_OC6M_Msk /*!<OC6M[3:0] bits (Output Compare 6 Mode) */
  14057. #define TIM_CCMR3_OC6M_0 (0x0001UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00001000 */
  14058. #define TIM_CCMR3_OC6M_1 (0x0002UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00002000 */
  14059. #define TIM_CCMR3_OC6M_2 (0x0004UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00004000 */
  14060. #define TIM_CCMR3_OC6M_3 (0x1000UL << TIM_CCMR3_OC6M_Pos) /*!< 0x01000000 */
  14061. #define TIM_CCMR3_OC6CE_Pos (15U)
  14062. #define TIM_CCMR3_OC6CE_Msk (0x1UL << TIM_CCMR3_OC6CE_Pos) /*!< 0x00008000 */
  14063. #define TIM_CCMR3_OC6CE TIM_CCMR3_OC6CE_Msk /*!<Output Compare 6 Clear Enable */
  14064. /******************* Bit definition for TIM_CCER register *******************/
  14065. #define TIM_CCER_CC1E_Pos (0U)
  14066. #define TIM_CCER_CC1E_Msk (0x1UL << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  14067. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  14068. #define TIM_CCER_CC1P_Pos (1U)
  14069. #define TIM_CCER_CC1P_Msk (0x1UL << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  14070. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  14071. #define TIM_CCER_CC1NE_Pos (2U)
  14072. #define TIM_CCER_CC1NE_Msk (0x1UL << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  14073. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  14074. #define TIM_CCER_CC1NP_Pos (3U)
  14075. #define TIM_CCER_CC1NP_Msk (0x1UL << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  14076. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  14077. #define TIM_CCER_CC2E_Pos (4U)
  14078. #define TIM_CCER_CC2E_Msk (0x1UL << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  14079. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  14080. #define TIM_CCER_CC2P_Pos (5U)
  14081. #define TIM_CCER_CC2P_Msk (0x1UL << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  14082. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  14083. #define TIM_CCER_CC2NE_Pos (6U)
  14084. #define TIM_CCER_CC2NE_Msk (0x1UL << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  14085. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  14086. #define TIM_CCER_CC2NP_Pos (7U)
  14087. #define TIM_CCER_CC2NP_Msk (0x1UL << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  14088. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  14089. #define TIM_CCER_CC3E_Pos (8U)
  14090. #define TIM_CCER_CC3E_Msk (0x1UL << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  14091. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  14092. #define TIM_CCER_CC3P_Pos (9U)
  14093. #define TIM_CCER_CC3P_Msk (0x1UL << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  14094. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  14095. #define TIM_CCER_CC3NE_Pos (10U)
  14096. #define TIM_CCER_CC3NE_Msk (0x1UL << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  14097. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  14098. #define TIM_CCER_CC3NP_Pos (11U)
  14099. #define TIM_CCER_CC3NP_Msk (0x1UL << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  14100. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  14101. #define TIM_CCER_CC4E_Pos (12U)
  14102. #define TIM_CCER_CC4E_Msk (0x1UL << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  14103. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  14104. #define TIM_CCER_CC4P_Pos (13U)
  14105. #define TIM_CCER_CC4P_Msk (0x1UL << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  14106. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  14107. #define TIM_CCER_CC4NP_Pos (15U)
  14108. #define TIM_CCER_CC4NP_Msk (0x1UL << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  14109. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  14110. #define TIM_CCER_CC5E_Pos (16U)
  14111. #define TIM_CCER_CC5E_Msk (0x1UL << TIM_CCER_CC5E_Pos) /*!< 0x00010000 */
  14112. #define TIM_CCER_CC5E TIM_CCER_CC5E_Msk /*!<Capture/Compare 5 output enable */
  14113. #define TIM_CCER_CC5P_Pos (17U)
  14114. #define TIM_CCER_CC5P_Msk (0x1UL << TIM_CCER_CC5P_Pos) /*!< 0x00020000 */
  14115. #define TIM_CCER_CC5P TIM_CCER_CC5P_Msk /*!<Capture/Compare 5 output Polarity */
  14116. #define TIM_CCER_CC6E_Pos (20U)
  14117. #define TIM_CCER_CC6E_Msk (0x1UL << TIM_CCER_CC6E_Pos) /*!< 0x00100000 */
  14118. #define TIM_CCER_CC6E TIM_CCER_CC6E_Msk /*!<Capture/Compare 6 output enable */
  14119. #define TIM_CCER_CC6P_Pos (21U)
  14120. #define TIM_CCER_CC6P_Msk (0x1UL << TIM_CCER_CC6P_Pos) /*!< 0x00200000 */
  14121. #define TIM_CCER_CC6P TIM_CCER_CC6P_Msk /*!<Capture/Compare 6 output Polarity */
  14122. /******************* Bit definition for TIM_CNT register ********************/
  14123. #define TIM_CNT_CNT_Pos (0U)
  14124. #define TIM_CNT_CNT_Msk (0xFFFFFFFFUL << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  14125. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  14126. #define TIM_CNT_UIFCPY_Pos (31U)
  14127. #define TIM_CNT_UIFCPY_Msk (0x1UL << TIM_CNT_UIFCPY_Pos) /*!< 0x80000000 */
  14128. #define TIM_CNT_UIFCPY TIM_CNT_UIFCPY_Msk /*!<Update interrupt flag copy (if UIFREMAP=1) */
  14129. /******************* Bit definition for TIM_PSC register ********************/
  14130. #define TIM_PSC_PSC_Pos (0U)
  14131. #define TIM_PSC_PSC_Msk (0xFFFFUL << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */
  14132. #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */
  14133. /******************* Bit definition for TIM_ARR register ********************/
  14134. #define TIM_ARR_ARR_Pos (0U)
  14135. #define TIM_ARR_ARR_Msk (0xFFFFFFFFUL << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  14136. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<Actual auto-reload Value */
  14137. /******************* Bit definition for TIM_RCR register ********************/
  14138. #define TIM_RCR_REP_Pos (0U)
  14139. #define TIM_RCR_REP_Msk (0xFFFFUL << TIM_RCR_REP_Pos) /*!< 0x0000FFFF */
  14140. #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */
  14141. /******************* Bit definition for TIM_CCR1 register *******************/
  14142. #define TIM_CCR1_CCR1_Pos (0U)
  14143. #define TIM_CCR1_CCR1_Msk (0xFFFFUL << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */
  14144. #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */
  14145. /******************* Bit definition for TIM_CCR2 register *******************/
  14146. #define TIM_CCR2_CCR2_Pos (0U)
  14147. #define TIM_CCR2_CCR2_Msk (0xFFFFUL << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */
  14148. #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */
  14149. /******************* Bit definition for TIM_CCR3 register *******************/
  14150. #define TIM_CCR3_CCR3_Pos (0U)
  14151. #define TIM_CCR3_CCR3_Msk (0xFFFFUL << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */
  14152. #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */
  14153. /******************* Bit definition for TIM_CCR4 register *******************/
  14154. #define TIM_CCR4_CCR4_Pos (0U)
  14155. #define TIM_CCR4_CCR4_Msk (0xFFFFUL << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */
  14156. #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */
  14157. /******************* Bit definition for TIM_CCR5 register *******************/
  14158. #define TIM_CCR5_CCR5_Pos (0U)
  14159. #define TIM_CCR5_CCR5_Msk (0xFFFFFFFFUL << TIM_CCR5_CCR5_Pos) /*!< 0xFFFFFFFF */
  14160. #define TIM_CCR5_CCR5 TIM_CCR5_CCR5_Msk /*!<Capture/Compare 5 Value */
  14161. #define TIM_CCR5_GC5C1_Pos (29U)
  14162. #define TIM_CCR5_GC5C1_Msk (0x1UL << TIM_CCR5_GC5C1_Pos) /*!< 0x20000000 */
  14163. #define TIM_CCR5_GC5C1 TIM_CCR5_GC5C1_Msk /*!<Group Channel 5 and Channel 1 */
  14164. #define TIM_CCR5_GC5C2_Pos (30U)
  14165. #define TIM_CCR5_GC5C2_Msk (0x1UL << TIM_CCR5_GC5C2_Pos) /*!< 0x40000000 */
  14166. #define TIM_CCR5_GC5C2 TIM_CCR5_GC5C2_Msk /*!<Group Channel 5 and Channel 2 */
  14167. #define TIM_CCR5_GC5C3_Pos (31U)
  14168. #define TIM_CCR5_GC5C3_Msk (0x1UL << TIM_CCR5_GC5C3_Pos) /*!< 0x80000000 */
  14169. #define TIM_CCR5_GC5C3 TIM_CCR5_GC5C3_Msk /*!<Group Channel 5 and Channel 3 */
  14170. /******************* Bit definition for TIM_CCR6 register *******************/
  14171. #define TIM_CCR6_CCR6_Pos (0U)
  14172. #define TIM_CCR6_CCR6_Msk (0xFFFFUL << TIM_CCR6_CCR6_Pos) /*!< 0x0000FFFF */
  14173. #define TIM_CCR6_CCR6 TIM_CCR6_CCR6_Msk /*!<Capture/Compare 6 Value */
  14174. /******************* Bit definition for TIM_BDTR register *******************/
  14175. #define TIM_BDTR_DTG_Pos (0U)
  14176. #define TIM_BDTR_DTG_Msk (0xFFUL << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  14177. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  14178. #define TIM_BDTR_DTG_0 (0x01UL << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  14179. #define TIM_BDTR_DTG_1 (0x02UL << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  14180. #define TIM_BDTR_DTG_2 (0x04UL << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  14181. #define TIM_BDTR_DTG_3 (0x08UL << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  14182. #define TIM_BDTR_DTG_4 (0x10UL << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  14183. #define TIM_BDTR_DTG_5 (0x20UL << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  14184. #define TIM_BDTR_DTG_6 (0x40UL << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  14185. #define TIM_BDTR_DTG_7 (0x80UL << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  14186. #define TIM_BDTR_LOCK_Pos (8U)
  14187. #define TIM_BDTR_LOCK_Msk (0x3UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  14188. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  14189. #define TIM_BDTR_LOCK_0 (0x1UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  14190. #define TIM_BDTR_LOCK_1 (0x2UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  14191. #define TIM_BDTR_OSSI_Pos (10U)
  14192. #define TIM_BDTR_OSSI_Msk (0x1UL << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  14193. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  14194. #define TIM_BDTR_OSSR_Pos (11U)
  14195. #define TIM_BDTR_OSSR_Msk (0x1UL << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  14196. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  14197. #define TIM_BDTR_BKE_Pos (12U)
  14198. #define TIM_BDTR_BKE_Msk (0x1UL << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  14199. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break 1 */
  14200. #define TIM_BDTR_BKP_Pos (13U)
  14201. #define TIM_BDTR_BKP_Msk (0x1UL << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  14202. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break 1 */
  14203. #define TIM_BDTR_AOE_Pos (14U)
  14204. #define TIM_BDTR_AOE_Msk (0x1UL << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  14205. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  14206. #define TIM_BDTR_MOE_Pos (15U)
  14207. #define TIM_BDTR_MOE_Msk (0x1UL << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  14208. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  14209. #define TIM_BDTR_BKF_Pos (16U)
  14210. #define TIM_BDTR_BKF_Msk (0xFUL << TIM_BDTR_BKF_Pos) /*!< 0x000F0000 */
  14211. #define TIM_BDTR_BKF TIM_BDTR_BKF_Msk /*!<Break Filter for Break 1 */
  14212. #define TIM_BDTR_BK2F_Pos (20U)
  14213. #define TIM_BDTR_BK2F_Msk (0xFUL << TIM_BDTR_BK2F_Pos) /*!< 0x00F00000 */
  14214. #define TIM_BDTR_BK2F TIM_BDTR_BK2F_Msk /*!<Break Filter for Break 2 */
  14215. #define TIM_BDTR_BK2E_Pos (24U)
  14216. #define TIM_BDTR_BK2E_Msk (0x1UL << TIM_BDTR_BK2E_Pos) /*!< 0x01000000 */
  14217. #define TIM_BDTR_BK2E TIM_BDTR_BK2E_Msk /*!<Break enable for Break 2 */
  14218. #define TIM_BDTR_BK2P_Pos (25U)
  14219. #define TIM_BDTR_BK2P_Msk (0x1UL << TIM_BDTR_BK2P_Pos) /*!< 0x02000000 */
  14220. #define TIM_BDTR_BK2P TIM_BDTR_BK2P_Msk /*!<Break Polarity for Break 2 */
  14221. #define TIM_BDTR_BKDSRM_Pos (26U)
  14222. #define TIM_BDTR_BKDSRM_Msk (0x1UL << TIM_BDTR_BKDSRM_Pos) /*!< 0x04000000 */
  14223. #define TIM_BDTR_BKDSRM TIM_BDTR_BKDSRM_Msk /*!<Break disarming/re-arming */
  14224. #define TIM_BDTR_BK2DSRM_Pos (27U)
  14225. #define TIM_BDTR_BK2DSRM_Msk (0x1UL << TIM_BDTR_BK2DSRM_Pos) /*!< 0x08000000 */
  14226. #define TIM_BDTR_BK2DSRM TIM_BDTR_BK2DSRM_Msk /*!<Break2 disarming/re-arming */
  14227. #define TIM_BDTR_BKBID_Pos (28U)
  14228. #define TIM_BDTR_BKBID_Msk (0x1UL << TIM_BDTR_BKBID_Pos) /*!< 0x10000000 */
  14229. #define TIM_BDTR_BKBID TIM_BDTR_BKBID_Msk /*!<Break BIDirectional */
  14230. #define TIM_BDTR_BK2BID_Pos (29U)
  14231. #define TIM_BDTR_BK2BID_Msk (0x1UL << TIM_BDTR_BK2BID_Pos) /*!< 0x20000000 */
  14232. #define TIM_BDTR_BK2BID TIM_BDTR_BK2BID_Msk /*!<Break2 BIDirectional */
  14233. /******************* Bit definition for TIM_DCR register ********************/
  14234. #define TIM_DCR_DBA_Pos (0U)
  14235. #define TIM_DCR_DBA_Msk (0x1FUL << TIM_DCR_DBA_Pos) /*!< 0x0000001F */
  14236. #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */
  14237. #define TIM_DCR_DBA_0 (0x01UL << TIM_DCR_DBA_Pos) /*!< 0x00000001 */
  14238. #define TIM_DCR_DBA_1 (0x02UL << TIM_DCR_DBA_Pos) /*!< 0x00000002 */
  14239. #define TIM_DCR_DBA_2 (0x04UL << TIM_DCR_DBA_Pos) /*!< 0x00000004 */
  14240. #define TIM_DCR_DBA_3 (0x08UL << TIM_DCR_DBA_Pos) /*!< 0x00000008 */
  14241. #define TIM_DCR_DBA_4 (0x10UL << TIM_DCR_DBA_Pos) /*!< 0x00000010 */
  14242. #define TIM_DCR_DBL_Pos (8U)
  14243. #define TIM_DCR_DBL_Msk (0x1FUL << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */
  14244. #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */
  14245. #define TIM_DCR_DBL_0 (0x01UL << TIM_DCR_DBL_Pos) /*!< 0x00000100 */
  14246. #define TIM_DCR_DBL_1 (0x02UL << TIM_DCR_DBL_Pos) /*!< 0x00000200 */
  14247. #define TIM_DCR_DBL_2 (0x04UL << TIM_DCR_DBL_Pos) /*!< 0x00000400 */
  14248. #define TIM_DCR_DBL_3 (0x08UL << TIM_DCR_DBL_Pos) /*!< 0x00000800 */
  14249. #define TIM_DCR_DBL_4 (0x10UL << TIM_DCR_DBL_Pos) /*!< 0x00001000 */
  14250. /******************* Bit definition for TIM_DMAR register *******************/
  14251. #define TIM_DMAR_DMAB_Pos (0U)
  14252. #define TIM_DMAR_DMAB_Msk (0xFFFFUL << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */
  14253. #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */
  14254. /******************* Bit definition for TIM1_OR1 register *******************/
  14255. #define TIM1_OR1_ETR_ADC1_RMP_Pos (0U)
  14256. #define TIM1_OR1_ETR_ADC1_RMP_Msk (0x3UL << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000003 */
  14257. #define TIM1_OR1_ETR_ADC1_RMP TIM1_OR1_ETR_ADC1_RMP_Msk /*!<ETR_ADC1_RMP[1:0] bits (TIM1 ETR remap on ADC1) */
  14258. #define TIM1_OR1_ETR_ADC1_RMP_0 (0x1UL << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000001 */
  14259. #define TIM1_OR1_ETR_ADC1_RMP_1 (0x2UL << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000002 */
  14260. #define TIM1_OR1_TI1_RMP_Pos (4U)
  14261. #define TIM1_OR1_TI1_RMP_Msk (0x1UL << TIM1_OR1_TI1_RMP_Pos) /*!< 0x00000010 */
  14262. #define TIM1_OR1_TI1_RMP TIM1_OR1_TI1_RMP_Msk /*!<TIM1 Input Capture 1 remap */
  14263. /******************* Bit definition for TIM1_OR2 register *******************/
  14264. #define TIM1_OR2_BKINE_Pos (0U)
  14265. #define TIM1_OR2_BKINE_Msk (0x1UL << TIM1_OR2_BKINE_Pos) /*!< 0x00000001 */
  14266. #define TIM1_OR2_BKINE TIM1_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  14267. #define TIM1_OR2_BKCMP1E_Pos (1U)
  14268. #define TIM1_OR2_BKCMP1E_Msk (0x1UL << TIM1_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  14269. #define TIM1_OR2_BKCMP1E TIM1_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  14270. #define TIM1_OR2_BKCMP2E_Pos (2U)
  14271. #define TIM1_OR2_BKCMP2E_Msk (0x1UL << TIM1_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  14272. #define TIM1_OR2_BKCMP2E TIM1_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  14273. #define TIM1_OR2_BKDF1BK0E_Pos (8U)
  14274. #define TIM1_OR2_BKDF1BK0E_Msk (0x1UL << TIM1_OR2_BKDF1BK0E_Pos) /*!< 0x00000100 */
  14275. #define TIM1_OR2_BKDF1BK0E TIM1_OR2_BKDF1BK0E_Msk /*!<BRK DFSDM1_BREAK[0] enable */
  14276. #define TIM1_OR2_BKINP_Pos (9U)
  14277. #define TIM1_OR2_BKINP_Msk (0x1UL << TIM1_OR2_BKINP_Pos) /*!< 0x00000200 */
  14278. #define TIM1_OR2_BKINP TIM1_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  14279. #define TIM1_OR2_BKCMP1P_Pos (10U)
  14280. #define TIM1_OR2_BKCMP1P_Msk (0x1UL << TIM1_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  14281. #define TIM1_OR2_BKCMP1P TIM1_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  14282. #define TIM1_OR2_BKCMP2P_Pos (11U)
  14283. #define TIM1_OR2_BKCMP2P_Msk (0x1UL << TIM1_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  14284. #define TIM1_OR2_BKCMP2P TIM1_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  14285. #define TIM1_OR2_ETRSEL_Pos (14U)
  14286. #define TIM1_OR2_ETRSEL_Msk (0x7UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  14287. #define TIM1_OR2_ETRSEL TIM1_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM1 ETR source selection) */
  14288. #define TIM1_OR2_ETRSEL_0 (0x1UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  14289. #define TIM1_OR2_ETRSEL_1 (0x2UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  14290. #define TIM1_OR2_ETRSEL_2 (0x4UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  14291. /******************* Bit definition for TIM1_OR3 register *******************/
  14292. #define TIM1_OR3_BK2INE_Pos (0U)
  14293. #define TIM1_OR3_BK2INE_Msk (0x1UL << TIM1_OR3_BK2INE_Pos) /*!< 0x00000001 */
  14294. #define TIM1_OR3_BK2INE TIM1_OR3_BK2INE_Msk /*!<BRK2 BKIN2 input enable */
  14295. #define TIM1_OR3_BK2CMP1E_Pos (1U)
  14296. #define TIM1_OR3_BK2CMP1E_Msk (0x1UL << TIM1_OR3_BK2CMP1E_Pos) /*!< 0x00000002 */
  14297. #define TIM1_OR3_BK2CMP1E TIM1_OR3_BK2CMP1E_Msk /*!<BRK2 COMP1 enable */
  14298. #define TIM1_OR3_BK2CMP2E_Pos (2U)
  14299. #define TIM1_OR3_BK2CMP2E_Msk (0x1UL << TIM1_OR3_BK2CMP2E_Pos) /*!< 0x00000004 */
  14300. #define TIM1_OR3_BK2CMP2E TIM1_OR3_BK2CMP2E_Msk /*!<BRK2 COMP2 enable */
  14301. #define TIM1_OR3_BK2DF1BK1E_Pos (8U)
  14302. #define TIM1_OR3_BK2DF1BK1E_Msk (0x1UL << TIM1_OR3_BK2DF1BK1E_Pos) /*!< 0x00000100 */
  14303. #define TIM1_OR3_BK2DF1BK1E TIM1_OR3_BK2DF1BK1E_Msk /*!<BRK2 DFSDM1_BREAK[1] enable */
  14304. #define TIM1_OR3_BK2INP_Pos (9U)
  14305. #define TIM1_OR3_BK2INP_Msk (0x1UL << TIM1_OR3_BK2INP_Pos) /*!< 0x00000200 */
  14306. #define TIM1_OR3_BK2INP TIM1_OR3_BK2INP_Msk /*!<BRK2 BKIN2 input polarity */
  14307. #define TIM1_OR3_BK2CMP1P_Pos (10U)
  14308. #define TIM1_OR3_BK2CMP1P_Msk (0x1UL << TIM1_OR3_BK2CMP1P_Pos) /*!< 0x00000400 */
  14309. #define TIM1_OR3_BK2CMP1P TIM1_OR3_BK2CMP1P_Msk /*!<BRK2 COMP1 input polarity */
  14310. #define TIM1_OR3_BK2CMP2P_Pos (11U)
  14311. #define TIM1_OR3_BK2CMP2P_Msk (0x1UL << TIM1_OR3_BK2CMP2P_Pos) /*!< 0x00000800 */
  14312. #define TIM1_OR3_BK2CMP2P TIM1_OR3_BK2CMP2P_Msk /*!<BRK2 COMP2 input polarity */
  14313. /******************* Bit definition for TIM8_OR1 register *******************/
  14314. #define TIM8_OR1_TI1_RMP_Pos (4U)
  14315. #define TIM8_OR1_TI1_RMP_Msk (0x1UL << TIM8_OR1_TI1_RMP_Pos) /*!< 0x00000010 */
  14316. #define TIM8_OR1_TI1_RMP TIM8_OR1_TI1_RMP_Msk /*!<TIM8 Input Capture 1 remap */
  14317. /******************* Bit definition for TIM8_OR2 register *******************/
  14318. #define TIM8_OR2_BKINE_Pos (0U)
  14319. #define TIM8_OR2_BKINE_Msk (0x1UL << TIM8_OR2_BKINE_Pos) /*!< 0x00000001 */
  14320. #define TIM8_OR2_BKINE TIM8_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  14321. #define TIM8_OR2_BKCMP1E_Pos (1U)
  14322. #define TIM8_OR2_BKCMP1E_Msk (0x1UL << TIM8_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  14323. #define TIM8_OR2_BKCMP1E TIM8_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  14324. #define TIM8_OR2_BKCMP2E_Pos (2U)
  14325. #define TIM8_OR2_BKCMP2E_Msk (0x1UL << TIM8_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  14326. #define TIM8_OR2_BKCMP2E TIM8_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  14327. #define TIM8_OR2_BKDF1BK2E_Pos (8U)
  14328. #define TIM8_OR2_BKDF1BK2E_Msk (0x1UL << TIM8_OR2_BKDF1BK2E_Pos) /*!< 0x00000100 */
  14329. #define TIM8_OR2_BKDF1BK2E TIM8_OR2_BKDF1BK2E_Msk /*!<BRK DFSDM1_BREAK[2] enable */
  14330. #define TIM8_OR2_BKINP_Pos (9U)
  14331. #define TIM8_OR2_BKINP_Msk (0x1UL << TIM8_OR2_BKINP_Pos) /*!< 0x00000200 */
  14332. #define TIM8_OR2_BKINP TIM8_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  14333. #define TIM8_OR2_BKCMP1P_Pos (10U)
  14334. #define TIM8_OR2_BKCMP1P_Msk (0x1UL << TIM8_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  14335. #define TIM8_OR2_BKCMP1P TIM8_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  14336. #define TIM8_OR2_BKCMP2P_Pos (11U)
  14337. #define TIM8_OR2_BKCMP2P_Msk (0x1UL << TIM8_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  14338. #define TIM8_OR2_BKCMP2P TIM8_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  14339. #define TIM8_OR2_ETRSEL_Pos (14U)
  14340. #define TIM8_OR2_ETRSEL_Msk (0x7UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  14341. #define TIM8_OR2_ETRSEL TIM8_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM8 ETR source selection) */
  14342. #define TIM8_OR2_ETRSEL_0 (0x1UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  14343. #define TIM8_OR2_ETRSEL_1 (0x2UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  14344. #define TIM8_OR2_ETRSEL_2 (0x4UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  14345. /******************* Bit definition for TIM8_OR3 register *******************/
  14346. #define TIM8_OR3_BK2INE_Pos (0U)
  14347. #define TIM8_OR3_BK2INE_Msk (0x1UL << TIM8_OR3_BK2INE_Pos) /*!< 0x00000001 */
  14348. #define TIM8_OR3_BK2INE TIM8_OR3_BK2INE_Msk /*!<BRK2 BKIN2 input enable */
  14349. #define TIM8_OR3_BK2CMP1E_Pos (1U)
  14350. #define TIM8_OR3_BK2CMP1E_Msk (0x1UL << TIM8_OR3_BK2CMP1E_Pos) /*!< 0x00000002 */
  14351. #define TIM8_OR3_BK2CMP1E TIM8_OR3_BK2CMP1E_Msk /*!<BRK2 COMP1 enable */
  14352. #define TIM8_OR3_BK2CMP2E_Pos (2U)
  14353. #define TIM8_OR3_BK2CMP2E_Msk (0x1UL << TIM8_OR3_BK2CMP2E_Pos) /*!< 0x00000004 */
  14354. #define TIM8_OR3_BK2CMP2E TIM8_OR3_BK2CMP2E_Msk /*!<BRK2 COMP2 enable */
  14355. #define TIM8_OR3_BK2DF1BK3E_Pos (8U)
  14356. #define TIM8_OR3_BK2DF1BK3E_Msk (0x1UL << TIM8_OR3_BK2DF1BK3E_Pos) /*!< 0x00000100 */
  14357. #define TIM8_OR3_BK2DF1BK3E TIM8_OR3_BK2DF1BK3E_Msk /*!<BRK2 DFSDM1_BREAK[3] enable */
  14358. #define TIM8_OR3_BK2INP_Pos (9U)
  14359. #define TIM8_OR3_BK2INP_Msk (0x1UL << TIM8_OR3_BK2INP_Pos) /*!< 0x00000200 */
  14360. #define TIM8_OR3_BK2INP TIM8_OR3_BK2INP_Msk /*!<BRK2 BKIN2 input polarity */
  14361. #define TIM8_OR3_BK2CMP1P_Pos (10U)
  14362. #define TIM8_OR3_BK2CMP1P_Msk (0x1UL << TIM8_OR3_BK2CMP1P_Pos) /*!< 0x00000400 */
  14363. #define TIM8_OR3_BK2CMP1P TIM8_OR3_BK2CMP1P_Msk /*!<BRK2 COMP1 input polarity */
  14364. #define TIM8_OR3_BK2CMP2P_Pos (11U)
  14365. #define TIM8_OR3_BK2CMP2P_Msk (0x1UL << TIM8_OR3_BK2CMP2P_Pos) /*!< 0x00000800 */
  14366. #define TIM8_OR3_BK2CMP2P TIM8_OR3_BK2CMP2P_Msk /*!<BRK2 COMP2 input polarity */
  14367. /******************* Bit definition for TIM2_OR1 register *******************/
  14368. #define TIM2_OR1_ITR1_RMP_Pos (0U)
  14369. #define TIM2_OR1_ITR1_RMP_Msk (0x1UL << TIM2_OR1_ITR1_RMP_Pos) /*!< 0x00000001 */
  14370. #define TIM2_OR1_ITR1_RMP TIM2_OR1_ITR1_RMP_Msk /*!<TIM2 Internal trigger 1 remap */
  14371. #define TIM2_OR1_ETR1_RMP_Pos (1U)
  14372. #define TIM2_OR1_ETR1_RMP_Msk (0x1UL << TIM2_OR1_ETR1_RMP_Pos) /*!< 0x00000002 */
  14373. #define TIM2_OR1_ETR1_RMP TIM2_OR1_ETR1_RMP_Msk /*!<TIM2 External trigger 1 remap */
  14374. #define TIM2_OR1_TI4_RMP_Pos (2U)
  14375. #define TIM2_OR1_TI4_RMP_Msk (0x3UL << TIM2_OR1_TI4_RMP_Pos) /*!< 0x0000000C */
  14376. #define TIM2_OR1_TI4_RMP TIM2_OR1_TI4_RMP_Msk /*!<TI4_RMP[1:0] bits (TIM2 Input Capture 4 remap) */
  14377. #define TIM2_OR1_TI4_RMP_0 (0x1UL << TIM2_OR1_TI4_RMP_Pos) /*!< 0x00000004 */
  14378. #define TIM2_OR1_TI4_RMP_1 (0x2UL << TIM2_OR1_TI4_RMP_Pos) /*!< 0x00000008 */
  14379. /******************* Bit definition for TIM2_OR2 register *******************/
  14380. #define TIM2_OR2_ETRSEL_Pos (14U)
  14381. #define TIM2_OR2_ETRSEL_Msk (0x7UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  14382. #define TIM2_OR2_ETRSEL TIM2_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM2 ETR source selection) */
  14383. #define TIM2_OR2_ETRSEL_0 (0x1UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  14384. #define TIM2_OR2_ETRSEL_1 (0x2UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  14385. #define TIM2_OR2_ETRSEL_2 (0x4UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  14386. /******************* Bit definition for TIM3_OR1 register *******************/
  14387. #define TIM3_OR1_TI1_RMP_Pos (0U)
  14388. #define TIM3_OR1_TI1_RMP_Msk (0x3UL << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000003 */
  14389. #define TIM3_OR1_TI1_RMP TIM3_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM3 Input Capture 1 remap) */
  14390. #define TIM3_OR1_TI1_RMP_0 (0x1UL << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  14391. #define TIM3_OR1_TI1_RMP_1 (0x2UL << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000002 */
  14392. /******************* Bit definition for TIM3_OR2 register *******************/
  14393. #define TIM3_OR2_ETRSEL_Pos (14U)
  14394. #define TIM3_OR2_ETRSEL_Msk (0x7UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  14395. #define TIM3_OR2_ETRSEL TIM3_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM3 ETR source selection) */
  14396. #define TIM3_OR2_ETRSEL_0 (0x1UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  14397. #define TIM3_OR2_ETRSEL_1 (0x2UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  14398. #define TIM3_OR2_ETRSEL_2 (0x4UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  14399. /******************* Bit definition for TIM15_OR1 register ******************/
  14400. #define TIM15_OR1_TI1_RMP_Pos (0U)
  14401. #define TIM15_OR1_TI1_RMP_Msk (0x1UL << TIM15_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  14402. #define TIM15_OR1_TI1_RMP TIM15_OR1_TI1_RMP_Msk /*!<TIM15 Input Capture 1 remap */
  14403. #define TIM15_OR1_ENCODER_MODE_Pos (1U)
  14404. #define TIM15_OR1_ENCODER_MODE_Msk (0x3UL << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000006 */
  14405. #define TIM15_OR1_ENCODER_MODE TIM15_OR1_ENCODER_MODE_Msk /*!<ENCODER_MODE[1:0] bits (TIM15 Encoder mode) */
  14406. #define TIM15_OR1_ENCODER_MODE_0 (0x1UL << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000002 */
  14407. #define TIM15_OR1_ENCODER_MODE_1 (0x2UL << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000004 */
  14408. /******************* Bit definition for TIM15_OR2 register ******************/
  14409. #define TIM15_OR2_BKINE_Pos (0U)
  14410. #define TIM15_OR2_BKINE_Msk (0x1UL << TIM15_OR2_BKINE_Pos) /*!< 0x00000001 */
  14411. #define TIM15_OR2_BKINE TIM15_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  14412. #define TIM15_OR2_BKCMP1E_Pos (1U)
  14413. #define TIM15_OR2_BKCMP1E_Msk (0x1UL << TIM15_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  14414. #define TIM15_OR2_BKCMP1E TIM15_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  14415. #define TIM15_OR2_BKCMP2E_Pos (2U)
  14416. #define TIM15_OR2_BKCMP2E_Msk (0x1UL << TIM15_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  14417. #define TIM15_OR2_BKCMP2E TIM15_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  14418. #define TIM15_OR2_BKDF1BK0E_Pos (8U)
  14419. #define TIM15_OR2_BKDF1BK0E_Msk (0x1UL << TIM15_OR2_BKDF1BK0E_Pos) /*!< 0x00000100 */
  14420. #define TIM15_OR2_BKDF1BK0E TIM15_OR2_BKDF1BK0E_Msk /*!<BRK DFSDM1_BREAK[0] enable */
  14421. #define TIM15_OR2_BKINP_Pos (9U)
  14422. #define TIM15_OR2_BKINP_Msk (0x1UL << TIM15_OR2_BKINP_Pos) /*!< 0x00000200 */
  14423. #define TIM15_OR2_BKINP TIM15_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  14424. #define TIM15_OR2_BKCMP1P_Pos (10U)
  14425. #define TIM15_OR2_BKCMP1P_Msk (0x1UL << TIM15_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  14426. #define TIM15_OR2_BKCMP1P TIM15_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  14427. #define TIM15_OR2_BKCMP2P_Pos (11U)
  14428. #define TIM15_OR2_BKCMP2P_Msk (0x1UL << TIM15_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  14429. #define TIM15_OR2_BKCMP2P TIM15_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  14430. /******************* Bit definition for TIM16_OR1 register ******************/
  14431. #define TIM16_OR1_TI1_RMP_Pos (0U)
  14432. #define TIM16_OR1_TI1_RMP_Msk (0x3UL << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000003 */
  14433. #define TIM16_OR1_TI1_RMP TIM16_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM16 Input Capture 1 remap) */
  14434. #define TIM16_OR1_TI1_RMP_0 (0x1UL << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  14435. #define TIM16_OR1_TI1_RMP_1 (0x2UL << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000002 */
  14436. /******************* Bit definition for TIM16_OR2 register ******************/
  14437. #define TIM16_OR2_BKINE_Pos (0U)
  14438. #define TIM16_OR2_BKINE_Msk (0x1UL << TIM16_OR2_BKINE_Pos) /*!< 0x00000001 */
  14439. #define TIM16_OR2_BKINE TIM16_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  14440. #define TIM16_OR2_BKCMP1E_Pos (1U)
  14441. #define TIM16_OR2_BKCMP1E_Msk (0x1UL << TIM16_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  14442. #define TIM16_OR2_BKCMP1E TIM16_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  14443. #define TIM16_OR2_BKCMP2E_Pos (2U)
  14444. #define TIM16_OR2_BKCMP2E_Msk (0x1UL << TIM16_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  14445. #define TIM16_OR2_BKCMP2E TIM16_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  14446. #define TIM16_OR2_BKDF1BK1E_Pos (8U)
  14447. #define TIM16_OR2_BKDF1BK1E_Msk (0x1UL << TIM16_OR2_BKDF1BK1E_Pos) /*!< 0x00000100 */
  14448. #define TIM16_OR2_BKDF1BK1E TIM16_OR2_BKDF1BK1E_Msk /*!<BRK DFSDM1_BREAK[1] enable */
  14449. #define TIM16_OR2_BKINP_Pos (9U)
  14450. #define TIM16_OR2_BKINP_Msk (0x1UL << TIM16_OR2_BKINP_Pos) /*!< 0x00000200 */
  14451. #define TIM16_OR2_BKINP TIM16_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  14452. #define TIM16_OR2_BKCMP1P_Pos (10U)
  14453. #define TIM16_OR2_BKCMP1P_Msk (0x1UL << TIM16_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  14454. #define TIM16_OR2_BKCMP1P TIM16_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  14455. #define TIM16_OR2_BKCMP2P_Pos (11U)
  14456. #define TIM16_OR2_BKCMP2P_Msk (0x1UL << TIM16_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  14457. #define TIM16_OR2_BKCMP2P TIM16_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  14458. /******************* Bit definition for TIM17_OR1 register ******************/
  14459. #define TIM17_OR1_TI1_RMP_Pos (0U)
  14460. #define TIM17_OR1_TI1_RMP_Msk (0x3UL << TIM17_OR1_TI1_RMP_Pos) /*!< 0x00000003 */
  14461. #define TIM17_OR1_TI1_RMP TIM17_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM17 Input Capture 1 remap) */
  14462. #define TIM17_OR1_TI1_RMP_0 (0x1UL << TIM17_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  14463. #define TIM17_OR1_TI1_RMP_1 (0x2UL << TIM17_OR1_TI1_RMP_Pos) /*!< 0x00000002 */
  14464. /******************* Bit definition for TIM17_OR2 register ******************/
  14465. #define TIM17_OR2_BKINE_Pos (0U)
  14466. #define TIM17_OR2_BKINE_Msk (0x1UL << TIM17_OR2_BKINE_Pos) /*!< 0x00000001 */
  14467. #define TIM17_OR2_BKINE TIM17_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  14468. #define TIM17_OR2_BKCMP1E_Pos (1U)
  14469. #define TIM17_OR2_BKCMP1E_Msk (0x1UL << TIM17_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  14470. #define TIM17_OR2_BKCMP1E TIM17_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  14471. #define TIM17_OR2_BKCMP2E_Pos (2U)
  14472. #define TIM17_OR2_BKCMP2E_Msk (0x1UL << TIM17_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  14473. #define TIM17_OR2_BKCMP2E TIM17_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  14474. #define TIM17_OR2_BKDF1BK2E_Pos (8U)
  14475. #define TIM17_OR2_BKDF1BK2E_Msk (0x1UL << TIM17_OR2_BKDF1BK2E_Pos) /*!< 0x00000100 */
  14476. #define TIM17_OR2_BKDF1BK2E TIM17_OR2_BKDF1BK2E_Msk /*!<BRK DFSDM1_BREAK[2] enable */
  14477. #define TIM17_OR2_BKINP_Pos (9U)
  14478. #define TIM17_OR2_BKINP_Msk (0x1UL << TIM17_OR2_BKINP_Pos) /*!< 0x00000200 */
  14479. #define TIM17_OR2_BKINP TIM17_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  14480. #define TIM17_OR2_BKCMP1P_Pos (10U)
  14481. #define TIM17_OR2_BKCMP1P_Msk (0x1UL << TIM17_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  14482. #define TIM17_OR2_BKCMP1P TIM17_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  14483. #define TIM17_OR2_BKCMP2P_Pos (11U)
  14484. #define TIM17_OR2_BKCMP2P_Msk (0x1UL << TIM17_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  14485. #define TIM17_OR2_BKCMP2P TIM17_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  14486. /******************************************************************************/
  14487. /* */
  14488. /* Touch Sensing Controller (TSC) */
  14489. /* */
  14490. /******************************************************************************/
  14491. /******************* Bit definition for TSC_CR register *********************/
  14492. #define TSC_CR_TSCE_Pos (0U)
  14493. #define TSC_CR_TSCE_Msk (0x1UL << TSC_CR_TSCE_Pos) /*!< 0x00000001 */
  14494. #define TSC_CR_TSCE TSC_CR_TSCE_Msk /*!<Touch sensing controller enable */
  14495. #define TSC_CR_START_Pos (1U)
  14496. #define TSC_CR_START_Msk (0x1UL << TSC_CR_START_Pos) /*!< 0x00000002 */
  14497. #define TSC_CR_START TSC_CR_START_Msk /*!<Start acquisition */
  14498. #define TSC_CR_AM_Pos (2U)
  14499. #define TSC_CR_AM_Msk (0x1UL << TSC_CR_AM_Pos) /*!< 0x00000004 */
  14500. #define TSC_CR_AM TSC_CR_AM_Msk /*!<Acquisition mode */
  14501. #define TSC_CR_SYNCPOL_Pos (3U)
  14502. #define TSC_CR_SYNCPOL_Msk (0x1UL << TSC_CR_SYNCPOL_Pos) /*!< 0x00000008 */
  14503. #define TSC_CR_SYNCPOL TSC_CR_SYNCPOL_Msk /*!<Synchronization pin polarity */
  14504. #define TSC_CR_IODEF_Pos (4U)
  14505. #define TSC_CR_IODEF_Msk (0x1UL << TSC_CR_IODEF_Pos) /*!< 0x00000010 */
  14506. #define TSC_CR_IODEF TSC_CR_IODEF_Msk /*!<IO default mode */
  14507. #define TSC_CR_MCV_Pos (5U)
  14508. #define TSC_CR_MCV_Msk (0x7UL << TSC_CR_MCV_Pos) /*!< 0x000000E0 */
  14509. #define TSC_CR_MCV TSC_CR_MCV_Msk /*!<MCV[2:0] bits (Max Count Value) */
  14510. #define TSC_CR_MCV_0 (0x1UL << TSC_CR_MCV_Pos) /*!< 0x00000020 */
  14511. #define TSC_CR_MCV_1 (0x2UL << TSC_CR_MCV_Pos) /*!< 0x00000040 */
  14512. #define TSC_CR_MCV_2 (0x4UL << TSC_CR_MCV_Pos) /*!< 0x00000080 */
  14513. #define TSC_CR_PGPSC_Pos (12U)
  14514. #define TSC_CR_PGPSC_Msk (0x7UL << TSC_CR_PGPSC_Pos) /*!< 0x00007000 */
  14515. #define TSC_CR_PGPSC TSC_CR_PGPSC_Msk /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
  14516. #define TSC_CR_PGPSC_0 (0x1UL << TSC_CR_PGPSC_Pos) /*!< 0x00001000 */
  14517. #define TSC_CR_PGPSC_1 (0x2UL << TSC_CR_PGPSC_Pos) /*!< 0x00002000 */
  14518. #define TSC_CR_PGPSC_2 (0x4UL << TSC_CR_PGPSC_Pos) /*!< 0x00004000 */
  14519. #define TSC_CR_SSPSC_Pos (15U)
  14520. #define TSC_CR_SSPSC_Msk (0x1UL << TSC_CR_SSPSC_Pos) /*!< 0x00008000 */
  14521. #define TSC_CR_SSPSC TSC_CR_SSPSC_Msk /*!<Spread Spectrum Prescaler */
  14522. #define TSC_CR_SSE_Pos (16U)
  14523. #define TSC_CR_SSE_Msk (0x1UL << TSC_CR_SSE_Pos) /*!< 0x00010000 */
  14524. #define TSC_CR_SSE TSC_CR_SSE_Msk /*!<Spread Spectrum Enable */
  14525. #define TSC_CR_SSD_Pos (17U)
  14526. #define TSC_CR_SSD_Msk (0x7FUL << TSC_CR_SSD_Pos) /*!< 0x00FE0000 */
  14527. #define TSC_CR_SSD TSC_CR_SSD_Msk /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
  14528. #define TSC_CR_SSD_0 (0x01UL << TSC_CR_SSD_Pos) /*!< 0x00020000 */
  14529. #define TSC_CR_SSD_1 (0x02UL << TSC_CR_SSD_Pos) /*!< 0x00040000 */
  14530. #define TSC_CR_SSD_2 (0x04UL << TSC_CR_SSD_Pos) /*!< 0x00080000 */
  14531. #define TSC_CR_SSD_3 (0x08UL << TSC_CR_SSD_Pos) /*!< 0x00100000 */
  14532. #define TSC_CR_SSD_4 (0x10UL << TSC_CR_SSD_Pos) /*!< 0x00200000 */
  14533. #define TSC_CR_SSD_5 (0x20UL << TSC_CR_SSD_Pos) /*!< 0x00400000 */
  14534. #define TSC_CR_SSD_6 (0x40UL << TSC_CR_SSD_Pos) /*!< 0x00800000 */
  14535. #define TSC_CR_CTPL_Pos (24U)
  14536. #define TSC_CR_CTPL_Msk (0xFUL << TSC_CR_CTPL_Pos) /*!< 0x0F000000 */
  14537. #define TSC_CR_CTPL TSC_CR_CTPL_Msk /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
  14538. #define TSC_CR_CTPL_0 (0x1UL << TSC_CR_CTPL_Pos) /*!< 0x01000000 */
  14539. #define TSC_CR_CTPL_1 (0x2UL << TSC_CR_CTPL_Pos) /*!< 0x02000000 */
  14540. #define TSC_CR_CTPL_2 (0x4UL << TSC_CR_CTPL_Pos) /*!< 0x04000000 */
  14541. #define TSC_CR_CTPL_3 (0x8UL << TSC_CR_CTPL_Pos) /*!< 0x08000000 */
  14542. #define TSC_CR_CTPH_Pos (28U)
  14543. #define TSC_CR_CTPH_Msk (0xFUL << TSC_CR_CTPH_Pos) /*!< 0xF0000000 */
  14544. #define TSC_CR_CTPH TSC_CR_CTPH_Msk /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
  14545. #define TSC_CR_CTPH_0 (0x1UL << TSC_CR_CTPH_Pos) /*!< 0x10000000 */
  14546. #define TSC_CR_CTPH_1 (0x2UL << TSC_CR_CTPH_Pos) /*!< 0x20000000 */
  14547. #define TSC_CR_CTPH_2 (0x4UL << TSC_CR_CTPH_Pos) /*!< 0x40000000 */
  14548. #define TSC_CR_CTPH_3 (0x8UL << TSC_CR_CTPH_Pos) /*!< 0x80000000 */
  14549. /******************* Bit definition for TSC_IER register ********************/
  14550. #define TSC_IER_EOAIE_Pos (0U)
  14551. #define TSC_IER_EOAIE_Msk (0x1UL << TSC_IER_EOAIE_Pos) /*!< 0x00000001 */
  14552. #define TSC_IER_EOAIE TSC_IER_EOAIE_Msk /*!<End of acquisition interrupt enable */
  14553. #define TSC_IER_MCEIE_Pos (1U)
  14554. #define TSC_IER_MCEIE_Msk (0x1UL << TSC_IER_MCEIE_Pos) /*!< 0x00000002 */
  14555. #define TSC_IER_MCEIE TSC_IER_MCEIE_Msk /*!<Max count error interrupt enable */
  14556. /******************* Bit definition for TSC_ICR register ********************/
  14557. #define TSC_ICR_EOAIC_Pos (0U)
  14558. #define TSC_ICR_EOAIC_Msk (0x1UL << TSC_ICR_EOAIC_Pos) /*!< 0x00000001 */
  14559. #define TSC_ICR_EOAIC TSC_ICR_EOAIC_Msk /*!<End of acquisition interrupt clear */
  14560. #define TSC_ICR_MCEIC_Pos (1U)
  14561. #define TSC_ICR_MCEIC_Msk (0x1UL << TSC_ICR_MCEIC_Pos) /*!< 0x00000002 */
  14562. #define TSC_ICR_MCEIC TSC_ICR_MCEIC_Msk /*!<Max count error interrupt clear */
  14563. /******************* Bit definition for TSC_ISR register ********************/
  14564. #define TSC_ISR_EOAF_Pos (0U)
  14565. #define TSC_ISR_EOAF_Msk (0x1UL << TSC_ISR_EOAF_Pos) /*!< 0x00000001 */
  14566. #define TSC_ISR_EOAF TSC_ISR_EOAF_Msk /*!<End of acquisition flag */
  14567. #define TSC_ISR_MCEF_Pos (1U)
  14568. #define TSC_ISR_MCEF_Msk (0x1UL << TSC_ISR_MCEF_Pos) /*!< 0x00000002 */
  14569. #define TSC_ISR_MCEF TSC_ISR_MCEF_Msk /*!<Max count error flag */
  14570. /******************* Bit definition for TSC_IOHCR register ******************/
  14571. #define TSC_IOHCR_G1_IO1_Pos (0U)
  14572. #define TSC_IOHCR_G1_IO1_Msk (0x1UL << TSC_IOHCR_G1_IO1_Pos) /*!< 0x00000001 */
  14573. #define TSC_IOHCR_G1_IO1 TSC_IOHCR_G1_IO1_Msk /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
  14574. #define TSC_IOHCR_G1_IO2_Pos (1U)
  14575. #define TSC_IOHCR_G1_IO2_Msk (0x1UL << TSC_IOHCR_G1_IO2_Pos) /*!< 0x00000002 */
  14576. #define TSC_IOHCR_G1_IO2 TSC_IOHCR_G1_IO2_Msk /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
  14577. #define TSC_IOHCR_G1_IO3_Pos (2U)
  14578. #define TSC_IOHCR_G1_IO3_Msk (0x1UL << TSC_IOHCR_G1_IO3_Pos) /*!< 0x00000004 */
  14579. #define TSC_IOHCR_G1_IO3 TSC_IOHCR_G1_IO3_Msk /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
  14580. #define TSC_IOHCR_G1_IO4_Pos (3U)
  14581. #define TSC_IOHCR_G1_IO4_Msk (0x1UL << TSC_IOHCR_G1_IO4_Pos) /*!< 0x00000008 */
  14582. #define TSC_IOHCR_G1_IO4 TSC_IOHCR_G1_IO4_Msk /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
  14583. #define TSC_IOHCR_G2_IO1_Pos (4U)
  14584. #define TSC_IOHCR_G2_IO1_Msk (0x1UL << TSC_IOHCR_G2_IO1_Pos) /*!< 0x00000010 */
  14585. #define TSC_IOHCR_G2_IO1 TSC_IOHCR_G2_IO1_Msk /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
  14586. #define TSC_IOHCR_G2_IO2_Pos (5U)
  14587. #define TSC_IOHCR_G2_IO2_Msk (0x1UL << TSC_IOHCR_G2_IO2_Pos) /*!< 0x00000020 */
  14588. #define TSC_IOHCR_G2_IO2 TSC_IOHCR_G2_IO2_Msk /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
  14589. #define TSC_IOHCR_G2_IO3_Pos (6U)
  14590. #define TSC_IOHCR_G2_IO3_Msk (0x1UL << TSC_IOHCR_G2_IO3_Pos) /*!< 0x00000040 */
  14591. #define TSC_IOHCR_G2_IO3 TSC_IOHCR_G2_IO3_Msk /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
  14592. #define TSC_IOHCR_G2_IO4_Pos (7U)
  14593. #define TSC_IOHCR_G2_IO4_Msk (0x1UL << TSC_IOHCR_G2_IO4_Pos) /*!< 0x00000080 */
  14594. #define TSC_IOHCR_G2_IO4 TSC_IOHCR_G2_IO4_Msk /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
  14595. #define TSC_IOHCR_G3_IO1_Pos (8U)
  14596. #define TSC_IOHCR_G3_IO1_Msk (0x1UL << TSC_IOHCR_G3_IO1_Pos) /*!< 0x00000100 */
  14597. #define TSC_IOHCR_G3_IO1 TSC_IOHCR_G3_IO1_Msk /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
  14598. #define TSC_IOHCR_G3_IO2_Pos (9U)
  14599. #define TSC_IOHCR_G3_IO2_Msk (0x1UL << TSC_IOHCR_G3_IO2_Pos) /*!< 0x00000200 */
  14600. #define TSC_IOHCR_G3_IO2 TSC_IOHCR_G3_IO2_Msk /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
  14601. #define TSC_IOHCR_G3_IO3_Pos (10U)
  14602. #define TSC_IOHCR_G3_IO3_Msk (0x1UL << TSC_IOHCR_G3_IO3_Pos) /*!< 0x00000400 */
  14603. #define TSC_IOHCR_G3_IO3 TSC_IOHCR_G3_IO3_Msk /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
  14604. #define TSC_IOHCR_G3_IO4_Pos (11U)
  14605. #define TSC_IOHCR_G3_IO4_Msk (0x1UL << TSC_IOHCR_G3_IO4_Pos) /*!< 0x00000800 */
  14606. #define TSC_IOHCR_G3_IO4 TSC_IOHCR_G3_IO4_Msk /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
  14607. #define TSC_IOHCR_G4_IO1_Pos (12U)
  14608. #define TSC_IOHCR_G4_IO1_Msk (0x1UL << TSC_IOHCR_G4_IO1_Pos) /*!< 0x00001000 */
  14609. #define TSC_IOHCR_G4_IO1 TSC_IOHCR_G4_IO1_Msk /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
  14610. #define TSC_IOHCR_G4_IO2_Pos (13U)
  14611. #define TSC_IOHCR_G4_IO2_Msk (0x1UL << TSC_IOHCR_G4_IO2_Pos) /*!< 0x00002000 */
  14612. #define TSC_IOHCR_G4_IO2 TSC_IOHCR_G4_IO2_Msk /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
  14613. #define TSC_IOHCR_G4_IO3_Pos (14U)
  14614. #define TSC_IOHCR_G4_IO3_Msk (0x1UL << TSC_IOHCR_G4_IO3_Pos) /*!< 0x00004000 */
  14615. #define TSC_IOHCR_G4_IO3 TSC_IOHCR_G4_IO3_Msk /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
  14616. #define TSC_IOHCR_G4_IO4_Pos (15U)
  14617. #define TSC_IOHCR_G4_IO4_Msk (0x1UL << TSC_IOHCR_G4_IO4_Pos) /*!< 0x00008000 */
  14618. #define TSC_IOHCR_G4_IO4 TSC_IOHCR_G4_IO4_Msk /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
  14619. #define TSC_IOHCR_G5_IO1_Pos (16U)
  14620. #define TSC_IOHCR_G5_IO1_Msk (0x1UL << TSC_IOHCR_G5_IO1_Pos) /*!< 0x00010000 */
  14621. #define TSC_IOHCR_G5_IO1 TSC_IOHCR_G5_IO1_Msk /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
  14622. #define TSC_IOHCR_G5_IO2_Pos (17U)
  14623. #define TSC_IOHCR_G5_IO2_Msk (0x1UL << TSC_IOHCR_G5_IO2_Pos) /*!< 0x00020000 */
  14624. #define TSC_IOHCR_G5_IO2 TSC_IOHCR_G5_IO2_Msk /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
  14625. #define TSC_IOHCR_G5_IO3_Pos (18U)
  14626. #define TSC_IOHCR_G5_IO3_Msk (0x1UL << TSC_IOHCR_G5_IO3_Pos) /*!< 0x00040000 */
  14627. #define TSC_IOHCR_G5_IO3 TSC_IOHCR_G5_IO3_Msk /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
  14628. #define TSC_IOHCR_G5_IO4_Pos (19U)
  14629. #define TSC_IOHCR_G5_IO4_Msk (0x1UL << TSC_IOHCR_G5_IO4_Pos) /*!< 0x00080000 */
  14630. #define TSC_IOHCR_G5_IO4 TSC_IOHCR_G5_IO4_Msk /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
  14631. #define TSC_IOHCR_G6_IO1_Pos (20U)
  14632. #define TSC_IOHCR_G6_IO1_Msk (0x1UL << TSC_IOHCR_G6_IO1_Pos) /*!< 0x00100000 */
  14633. #define TSC_IOHCR_G6_IO1 TSC_IOHCR_G6_IO1_Msk /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
  14634. #define TSC_IOHCR_G6_IO2_Pos (21U)
  14635. #define TSC_IOHCR_G6_IO2_Msk (0x1UL << TSC_IOHCR_G6_IO2_Pos) /*!< 0x00200000 */
  14636. #define TSC_IOHCR_G6_IO2 TSC_IOHCR_G6_IO2_Msk /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
  14637. #define TSC_IOHCR_G6_IO3_Pos (22U)
  14638. #define TSC_IOHCR_G6_IO3_Msk (0x1UL << TSC_IOHCR_G6_IO3_Pos) /*!< 0x00400000 */
  14639. #define TSC_IOHCR_G6_IO3 TSC_IOHCR_G6_IO3_Msk /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
  14640. #define TSC_IOHCR_G6_IO4_Pos (23U)
  14641. #define TSC_IOHCR_G6_IO4_Msk (0x1UL << TSC_IOHCR_G6_IO4_Pos) /*!< 0x00800000 */
  14642. #define TSC_IOHCR_G6_IO4 TSC_IOHCR_G6_IO4_Msk /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
  14643. #define TSC_IOHCR_G7_IO1_Pos (24U)
  14644. #define TSC_IOHCR_G7_IO1_Msk (0x1UL << TSC_IOHCR_G7_IO1_Pos) /*!< 0x01000000 */
  14645. #define TSC_IOHCR_G7_IO1 TSC_IOHCR_G7_IO1_Msk /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
  14646. #define TSC_IOHCR_G7_IO2_Pos (25U)
  14647. #define TSC_IOHCR_G7_IO2_Msk (0x1UL << TSC_IOHCR_G7_IO2_Pos) /*!< 0x02000000 */
  14648. #define TSC_IOHCR_G7_IO2 TSC_IOHCR_G7_IO2_Msk /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
  14649. #define TSC_IOHCR_G7_IO3_Pos (26U)
  14650. #define TSC_IOHCR_G7_IO3_Msk (0x1UL << TSC_IOHCR_G7_IO3_Pos) /*!< 0x04000000 */
  14651. #define TSC_IOHCR_G7_IO3 TSC_IOHCR_G7_IO3_Msk /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
  14652. #define TSC_IOHCR_G7_IO4_Pos (27U)
  14653. #define TSC_IOHCR_G7_IO4_Msk (0x1UL << TSC_IOHCR_G7_IO4_Pos) /*!< 0x08000000 */
  14654. #define TSC_IOHCR_G7_IO4 TSC_IOHCR_G7_IO4_Msk /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
  14655. #define TSC_IOHCR_G8_IO1_Pos (28U)
  14656. #define TSC_IOHCR_G8_IO1_Msk (0x1UL << TSC_IOHCR_G8_IO1_Pos) /*!< 0x10000000 */
  14657. #define TSC_IOHCR_G8_IO1 TSC_IOHCR_G8_IO1_Msk /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
  14658. #define TSC_IOHCR_G8_IO2_Pos (29U)
  14659. #define TSC_IOHCR_G8_IO2_Msk (0x1UL << TSC_IOHCR_G8_IO2_Pos) /*!< 0x20000000 */
  14660. #define TSC_IOHCR_G8_IO2 TSC_IOHCR_G8_IO2_Msk /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
  14661. #define TSC_IOHCR_G8_IO3_Pos (30U)
  14662. #define TSC_IOHCR_G8_IO3_Msk (0x1UL << TSC_IOHCR_G8_IO3_Pos) /*!< 0x40000000 */
  14663. #define TSC_IOHCR_G8_IO3 TSC_IOHCR_G8_IO3_Msk /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
  14664. #define TSC_IOHCR_G8_IO4_Pos (31U)
  14665. #define TSC_IOHCR_G8_IO4_Msk (0x1UL << TSC_IOHCR_G8_IO4_Pos) /*!< 0x80000000 */
  14666. #define TSC_IOHCR_G8_IO4 TSC_IOHCR_G8_IO4_Msk /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
  14667. /******************* Bit definition for TSC_IOASCR register *****************/
  14668. #define TSC_IOASCR_G1_IO1_Pos (0U)
  14669. #define TSC_IOASCR_G1_IO1_Msk (0x1UL << TSC_IOASCR_G1_IO1_Pos) /*!< 0x00000001 */
  14670. #define TSC_IOASCR_G1_IO1 TSC_IOASCR_G1_IO1_Msk /*!<GROUP1_IO1 analog switch enable */
  14671. #define TSC_IOASCR_G1_IO2_Pos (1U)
  14672. #define TSC_IOASCR_G1_IO2_Msk (0x1UL << TSC_IOASCR_G1_IO2_Pos) /*!< 0x00000002 */
  14673. #define TSC_IOASCR_G1_IO2 TSC_IOASCR_G1_IO2_Msk /*!<GROUP1_IO2 analog switch enable */
  14674. #define TSC_IOASCR_G1_IO3_Pos (2U)
  14675. #define TSC_IOASCR_G1_IO3_Msk (0x1UL << TSC_IOASCR_G1_IO3_Pos) /*!< 0x00000004 */
  14676. #define TSC_IOASCR_G1_IO3 TSC_IOASCR_G1_IO3_Msk /*!<GROUP1_IO3 analog switch enable */
  14677. #define TSC_IOASCR_G1_IO4_Pos (3U)
  14678. #define TSC_IOASCR_G1_IO4_Msk (0x1UL << TSC_IOASCR_G1_IO4_Pos) /*!< 0x00000008 */
  14679. #define TSC_IOASCR_G1_IO4 TSC_IOASCR_G1_IO4_Msk /*!<GROUP1_IO4 analog switch enable */
  14680. #define TSC_IOASCR_G2_IO1_Pos (4U)
  14681. #define TSC_IOASCR_G2_IO1_Msk (0x1UL << TSC_IOASCR_G2_IO1_Pos) /*!< 0x00000010 */
  14682. #define TSC_IOASCR_G2_IO1 TSC_IOASCR_G2_IO1_Msk /*!<GROUP2_IO1 analog switch enable */
  14683. #define TSC_IOASCR_G2_IO2_Pos (5U)
  14684. #define TSC_IOASCR_G2_IO2_Msk (0x1UL << TSC_IOASCR_G2_IO2_Pos) /*!< 0x00000020 */
  14685. #define TSC_IOASCR_G2_IO2 TSC_IOASCR_G2_IO2_Msk /*!<GROUP2_IO2 analog switch enable */
  14686. #define TSC_IOASCR_G2_IO3_Pos (6U)
  14687. #define TSC_IOASCR_G2_IO3_Msk (0x1UL << TSC_IOASCR_G2_IO3_Pos) /*!< 0x00000040 */
  14688. #define TSC_IOASCR_G2_IO3 TSC_IOASCR_G2_IO3_Msk /*!<GROUP2_IO3 analog switch enable */
  14689. #define TSC_IOASCR_G2_IO4_Pos (7U)
  14690. #define TSC_IOASCR_G2_IO4_Msk (0x1UL << TSC_IOASCR_G2_IO4_Pos) /*!< 0x00000080 */
  14691. #define TSC_IOASCR_G2_IO4 TSC_IOASCR_G2_IO4_Msk /*!<GROUP2_IO4 analog switch enable */
  14692. #define TSC_IOASCR_G3_IO1_Pos (8U)
  14693. #define TSC_IOASCR_G3_IO1_Msk (0x1UL << TSC_IOASCR_G3_IO1_Pos) /*!< 0x00000100 */
  14694. #define TSC_IOASCR_G3_IO1 TSC_IOASCR_G3_IO1_Msk /*!<GROUP3_IO1 analog switch enable */
  14695. #define TSC_IOASCR_G3_IO2_Pos (9U)
  14696. #define TSC_IOASCR_G3_IO2_Msk (0x1UL << TSC_IOASCR_G3_IO2_Pos) /*!< 0x00000200 */
  14697. #define TSC_IOASCR_G3_IO2 TSC_IOASCR_G3_IO2_Msk /*!<GROUP3_IO2 analog switch enable */
  14698. #define TSC_IOASCR_G3_IO3_Pos (10U)
  14699. #define TSC_IOASCR_G3_IO3_Msk (0x1UL << TSC_IOASCR_G3_IO3_Pos) /*!< 0x00000400 */
  14700. #define TSC_IOASCR_G3_IO3 TSC_IOASCR_G3_IO3_Msk /*!<GROUP3_IO3 analog switch enable */
  14701. #define TSC_IOASCR_G3_IO4_Pos (11U)
  14702. #define TSC_IOASCR_G3_IO4_Msk (0x1UL << TSC_IOASCR_G3_IO4_Pos) /*!< 0x00000800 */
  14703. #define TSC_IOASCR_G3_IO4 TSC_IOASCR_G3_IO4_Msk /*!<GROUP3_IO4 analog switch enable */
  14704. #define TSC_IOASCR_G4_IO1_Pos (12U)
  14705. #define TSC_IOASCR_G4_IO1_Msk (0x1UL << TSC_IOASCR_G4_IO1_Pos) /*!< 0x00001000 */
  14706. #define TSC_IOASCR_G4_IO1 TSC_IOASCR_G4_IO1_Msk /*!<GROUP4_IO1 analog switch enable */
  14707. #define TSC_IOASCR_G4_IO2_Pos (13U)
  14708. #define TSC_IOASCR_G4_IO2_Msk (0x1UL << TSC_IOASCR_G4_IO2_Pos) /*!< 0x00002000 */
  14709. #define TSC_IOASCR_G4_IO2 TSC_IOASCR_G4_IO2_Msk /*!<GROUP4_IO2 analog switch enable */
  14710. #define TSC_IOASCR_G4_IO3_Pos (14U)
  14711. #define TSC_IOASCR_G4_IO3_Msk (0x1UL << TSC_IOASCR_G4_IO3_Pos) /*!< 0x00004000 */
  14712. #define TSC_IOASCR_G4_IO3 TSC_IOASCR_G4_IO3_Msk /*!<GROUP4_IO3 analog switch enable */
  14713. #define TSC_IOASCR_G4_IO4_Pos (15U)
  14714. #define TSC_IOASCR_G4_IO4_Msk (0x1UL << TSC_IOASCR_G4_IO4_Pos) /*!< 0x00008000 */
  14715. #define TSC_IOASCR_G4_IO4 TSC_IOASCR_G4_IO4_Msk /*!<GROUP4_IO4 analog switch enable */
  14716. #define TSC_IOASCR_G5_IO1_Pos (16U)
  14717. #define TSC_IOASCR_G5_IO1_Msk (0x1UL << TSC_IOASCR_G5_IO1_Pos) /*!< 0x00010000 */
  14718. #define TSC_IOASCR_G5_IO1 TSC_IOASCR_G5_IO1_Msk /*!<GROUP5_IO1 analog switch enable */
  14719. #define TSC_IOASCR_G5_IO2_Pos (17U)
  14720. #define TSC_IOASCR_G5_IO2_Msk (0x1UL << TSC_IOASCR_G5_IO2_Pos) /*!< 0x00020000 */
  14721. #define TSC_IOASCR_G5_IO2 TSC_IOASCR_G5_IO2_Msk /*!<GROUP5_IO2 analog switch enable */
  14722. #define TSC_IOASCR_G5_IO3_Pos (18U)
  14723. #define TSC_IOASCR_G5_IO3_Msk (0x1UL << TSC_IOASCR_G5_IO3_Pos) /*!< 0x00040000 */
  14724. #define TSC_IOASCR_G5_IO3 TSC_IOASCR_G5_IO3_Msk /*!<GROUP5_IO3 analog switch enable */
  14725. #define TSC_IOASCR_G5_IO4_Pos (19U)
  14726. #define TSC_IOASCR_G5_IO4_Msk (0x1UL << TSC_IOASCR_G5_IO4_Pos) /*!< 0x00080000 */
  14727. #define TSC_IOASCR_G5_IO4 TSC_IOASCR_G5_IO4_Msk /*!<GROUP5_IO4 analog switch enable */
  14728. #define TSC_IOASCR_G6_IO1_Pos (20U)
  14729. #define TSC_IOASCR_G6_IO1_Msk (0x1UL << TSC_IOASCR_G6_IO1_Pos) /*!< 0x00100000 */
  14730. #define TSC_IOASCR_G6_IO1 TSC_IOASCR_G6_IO1_Msk /*!<GROUP6_IO1 analog switch enable */
  14731. #define TSC_IOASCR_G6_IO2_Pos (21U)
  14732. #define TSC_IOASCR_G6_IO2_Msk (0x1UL << TSC_IOASCR_G6_IO2_Pos) /*!< 0x00200000 */
  14733. #define TSC_IOASCR_G6_IO2 TSC_IOASCR_G6_IO2_Msk /*!<GROUP6_IO2 analog switch enable */
  14734. #define TSC_IOASCR_G6_IO3_Pos (22U)
  14735. #define TSC_IOASCR_G6_IO3_Msk (0x1UL << TSC_IOASCR_G6_IO3_Pos) /*!< 0x00400000 */
  14736. #define TSC_IOASCR_G6_IO3 TSC_IOASCR_G6_IO3_Msk /*!<GROUP6_IO3 analog switch enable */
  14737. #define TSC_IOASCR_G6_IO4_Pos (23U)
  14738. #define TSC_IOASCR_G6_IO4_Msk (0x1UL << TSC_IOASCR_G6_IO4_Pos) /*!< 0x00800000 */
  14739. #define TSC_IOASCR_G6_IO4 TSC_IOASCR_G6_IO4_Msk /*!<GROUP6_IO4 analog switch enable */
  14740. #define TSC_IOASCR_G7_IO1_Pos (24U)
  14741. #define TSC_IOASCR_G7_IO1_Msk (0x1UL << TSC_IOASCR_G7_IO1_Pos) /*!< 0x01000000 */
  14742. #define TSC_IOASCR_G7_IO1 TSC_IOASCR_G7_IO1_Msk /*!<GROUP7_IO1 analog switch enable */
  14743. #define TSC_IOASCR_G7_IO2_Pos (25U)
  14744. #define TSC_IOASCR_G7_IO2_Msk (0x1UL << TSC_IOASCR_G7_IO2_Pos) /*!< 0x02000000 */
  14745. #define TSC_IOASCR_G7_IO2 TSC_IOASCR_G7_IO2_Msk /*!<GROUP7_IO2 analog switch enable */
  14746. #define TSC_IOASCR_G7_IO3_Pos (26U)
  14747. #define TSC_IOASCR_G7_IO3_Msk (0x1UL << TSC_IOASCR_G7_IO3_Pos) /*!< 0x04000000 */
  14748. #define TSC_IOASCR_G7_IO3 TSC_IOASCR_G7_IO3_Msk /*!<GROUP7_IO3 analog switch enable */
  14749. #define TSC_IOASCR_G7_IO4_Pos (27U)
  14750. #define TSC_IOASCR_G7_IO4_Msk (0x1UL << TSC_IOASCR_G7_IO4_Pos) /*!< 0x08000000 */
  14751. #define TSC_IOASCR_G7_IO4 TSC_IOASCR_G7_IO4_Msk /*!<GROUP7_IO4 analog switch enable */
  14752. #define TSC_IOASCR_G8_IO1_Pos (28U)
  14753. #define TSC_IOASCR_G8_IO1_Msk (0x1UL << TSC_IOASCR_G8_IO1_Pos) /*!< 0x10000000 */
  14754. #define TSC_IOASCR_G8_IO1 TSC_IOASCR_G8_IO1_Msk /*!<GROUP8_IO1 analog switch enable */
  14755. #define TSC_IOASCR_G8_IO2_Pos (29U)
  14756. #define TSC_IOASCR_G8_IO2_Msk (0x1UL << TSC_IOASCR_G8_IO2_Pos) /*!< 0x20000000 */
  14757. #define TSC_IOASCR_G8_IO2 TSC_IOASCR_G8_IO2_Msk /*!<GROUP8_IO2 analog switch enable */
  14758. #define TSC_IOASCR_G8_IO3_Pos (30U)
  14759. #define TSC_IOASCR_G8_IO3_Msk (0x1UL << TSC_IOASCR_G8_IO3_Pos) /*!< 0x40000000 */
  14760. #define TSC_IOASCR_G8_IO3 TSC_IOASCR_G8_IO3_Msk /*!<GROUP8_IO3 analog switch enable */
  14761. #define TSC_IOASCR_G8_IO4_Pos (31U)
  14762. #define TSC_IOASCR_G8_IO4_Msk (0x1UL << TSC_IOASCR_G8_IO4_Pos) /*!< 0x80000000 */
  14763. #define TSC_IOASCR_G8_IO4 TSC_IOASCR_G8_IO4_Msk /*!<GROUP8_IO4 analog switch enable */
  14764. /******************* Bit definition for TSC_IOSCR register ******************/
  14765. #define TSC_IOSCR_G1_IO1_Pos (0U)
  14766. #define TSC_IOSCR_G1_IO1_Msk (0x1UL << TSC_IOSCR_G1_IO1_Pos) /*!< 0x00000001 */
  14767. #define TSC_IOSCR_G1_IO1 TSC_IOSCR_G1_IO1_Msk /*!<GROUP1_IO1 sampling mode */
  14768. #define TSC_IOSCR_G1_IO2_Pos (1U)
  14769. #define TSC_IOSCR_G1_IO2_Msk (0x1UL << TSC_IOSCR_G1_IO2_Pos) /*!< 0x00000002 */
  14770. #define TSC_IOSCR_G1_IO2 TSC_IOSCR_G1_IO2_Msk /*!<GROUP1_IO2 sampling mode */
  14771. #define TSC_IOSCR_G1_IO3_Pos (2U)
  14772. #define TSC_IOSCR_G1_IO3_Msk (0x1UL << TSC_IOSCR_G1_IO3_Pos) /*!< 0x00000004 */
  14773. #define TSC_IOSCR_G1_IO3 TSC_IOSCR_G1_IO3_Msk /*!<GROUP1_IO3 sampling mode */
  14774. #define TSC_IOSCR_G1_IO4_Pos (3U)
  14775. #define TSC_IOSCR_G1_IO4_Msk (0x1UL << TSC_IOSCR_G1_IO4_Pos) /*!< 0x00000008 */
  14776. #define TSC_IOSCR_G1_IO4 TSC_IOSCR_G1_IO4_Msk /*!<GROUP1_IO4 sampling mode */
  14777. #define TSC_IOSCR_G2_IO1_Pos (4U)
  14778. #define TSC_IOSCR_G2_IO1_Msk (0x1UL << TSC_IOSCR_G2_IO1_Pos) /*!< 0x00000010 */
  14779. #define TSC_IOSCR_G2_IO1 TSC_IOSCR_G2_IO1_Msk /*!<GROUP2_IO1 sampling mode */
  14780. #define TSC_IOSCR_G2_IO2_Pos (5U)
  14781. #define TSC_IOSCR_G2_IO2_Msk (0x1UL << TSC_IOSCR_G2_IO2_Pos) /*!< 0x00000020 */
  14782. #define TSC_IOSCR_G2_IO2 TSC_IOSCR_G2_IO2_Msk /*!<GROUP2_IO2 sampling mode */
  14783. #define TSC_IOSCR_G2_IO3_Pos (6U)
  14784. #define TSC_IOSCR_G2_IO3_Msk (0x1UL << TSC_IOSCR_G2_IO3_Pos) /*!< 0x00000040 */
  14785. #define TSC_IOSCR_G2_IO3 TSC_IOSCR_G2_IO3_Msk /*!<GROUP2_IO3 sampling mode */
  14786. #define TSC_IOSCR_G2_IO4_Pos (7U)
  14787. #define TSC_IOSCR_G2_IO4_Msk (0x1UL << TSC_IOSCR_G2_IO4_Pos) /*!< 0x00000080 */
  14788. #define TSC_IOSCR_G2_IO4 TSC_IOSCR_G2_IO4_Msk /*!<GROUP2_IO4 sampling mode */
  14789. #define TSC_IOSCR_G3_IO1_Pos (8U)
  14790. #define TSC_IOSCR_G3_IO1_Msk (0x1UL << TSC_IOSCR_G3_IO1_Pos) /*!< 0x00000100 */
  14791. #define TSC_IOSCR_G3_IO1 TSC_IOSCR_G3_IO1_Msk /*!<GROUP3_IO1 sampling mode */
  14792. #define TSC_IOSCR_G3_IO2_Pos (9U)
  14793. #define TSC_IOSCR_G3_IO2_Msk (0x1UL << TSC_IOSCR_G3_IO2_Pos) /*!< 0x00000200 */
  14794. #define TSC_IOSCR_G3_IO2 TSC_IOSCR_G3_IO2_Msk /*!<GROUP3_IO2 sampling mode */
  14795. #define TSC_IOSCR_G3_IO3_Pos (10U)
  14796. #define TSC_IOSCR_G3_IO3_Msk (0x1UL << TSC_IOSCR_G3_IO3_Pos) /*!< 0x00000400 */
  14797. #define TSC_IOSCR_G3_IO3 TSC_IOSCR_G3_IO3_Msk /*!<GROUP3_IO3 sampling mode */
  14798. #define TSC_IOSCR_G3_IO4_Pos (11U)
  14799. #define TSC_IOSCR_G3_IO4_Msk (0x1UL << TSC_IOSCR_G3_IO4_Pos) /*!< 0x00000800 */
  14800. #define TSC_IOSCR_G3_IO4 TSC_IOSCR_G3_IO4_Msk /*!<GROUP3_IO4 sampling mode */
  14801. #define TSC_IOSCR_G4_IO1_Pos (12U)
  14802. #define TSC_IOSCR_G4_IO1_Msk (0x1UL << TSC_IOSCR_G4_IO1_Pos) /*!< 0x00001000 */
  14803. #define TSC_IOSCR_G4_IO1 TSC_IOSCR_G4_IO1_Msk /*!<GROUP4_IO1 sampling mode */
  14804. #define TSC_IOSCR_G4_IO2_Pos (13U)
  14805. #define TSC_IOSCR_G4_IO2_Msk (0x1UL << TSC_IOSCR_G4_IO2_Pos) /*!< 0x00002000 */
  14806. #define TSC_IOSCR_G4_IO2 TSC_IOSCR_G4_IO2_Msk /*!<GROUP4_IO2 sampling mode */
  14807. #define TSC_IOSCR_G4_IO3_Pos (14U)
  14808. #define TSC_IOSCR_G4_IO3_Msk (0x1UL << TSC_IOSCR_G4_IO3_Pos) /*!< 0x00004000 */
  14809. #define TSC_IOSCR_G4_IO3 TSC_IOSCR_G4_IO3_Msk /*!<GROUP4_IO3 sampling mode */
  14810. #define TSC_IOSCR_G4_IO4_Pos (15U)
  14811. #define TSC_IOSCR_G4_IO4_Msk (0x1UL << TSC_IOSCR_G4_IO4_Pos) /*!< 0x00008000 */
  14812. #define TSC_IOSCR_G4_IO4 TSC_IOSCR_G4_IO4_Msk /*!<GROUP4_IO4 sampling mode */
  14813. #define TSC_IOSCR_G5_IO1_Pos (16U)
  14814. #define TSC_IOSCR_G5_IO1_Msk (0x1UL << TSC_IOSCR_G5_IO1_Pos) /*!< 0x00010000 */
  14815. #define TSC_IOSCR_G5_IO1 TSC_IOSCR_G5_IO1_Msk /*!<GROUP5_IO1 sampling mode */
  14816. #define TSC_IOSCR_G5_IO2_Pos (17U)
  14817. #define TSC_IOSCR_G5_IO2_Msk (0x1UL << TSC_IOSCR_G5_IO2_Pos) /*!< 0x00020000 */
  14818. #define TSC_IOSCR_G5_IO2 TSC_IOSCR_G5_IO2_Msk /*!<GROUP5_IO2 sampling mode */
  14819. #define TSC_IOSCR_G5_IO3_Pos (18U)
  14820. #define TSC_IOSCR_G5_IO3_Msk (0x1UL << TSC_IOSCR_G5_IO3_Pos) /*!< 0x00040000 */
  14821. #define TSC_IOSCR_G5_IO3 TSC_IOSCR_G5_IO3_Msk /*!<GROUP5_IO3 sampling mode */
  14822. #define TSC_IOSCR_G5_IO4_Pos (19U)
  14823. #define TSC_IOSCR_G5_IO4_Msk (0x1UL << TSC_IOSCR_G5_IO4_Pos) /*!< 0x00080000 */
  14824. #define TSC_IOSCR_G5_IO4 TSC_IOSCR_G5_IO4_Msk /*!<GROUP5_IO4 sampling mode */
  14825. #define TSC_IOSCR_G6_IO1_Pos (20U)
  14826. #define TSC_IOSCR_G6_IO1_Msk (0x1UL << TSC_IOSCR_G6_IO1_Pos) /*!< 0x00100000 */
  14827. #define TSC_IOSCR_G6_IO1 TSC_IOSCR_G6_IO1_Msk /*!<GROUP6_IO1 sampling mode */
  14828. #define TSC_IOSCR_G6_IO2_Pos (21U)
  14829. #define TSC_IOSCR_G6_IO2_Msk (0x1UL << TSC_IOSCR_G6_IO2_Pos) /*!< 0x00200000 */
  14830. #define TSC_IOSCR_G6_IO2 TSC_IOSCR_G6_IO2_Msk /*!<GROUP6_IO2 sampling mode */
  14831. #define TSC_IOSCR_G6_IO3_Pos (22U)
  14832. #define TSC_IOSCR_G6_IO3_Msk (0x1UL << TSC_IOSCR_G6_IO3_Pos) /*!< 0x00400000 */
  14833. #define TSC_IOSCR_G6_IO3 TSC_IOSCR_G6_IO3_Msk /*!<GROUP6_IO3 sampling mode */
  14834. #define TSC_IOSCR_G6_IO4_Pos (23U)
  14835. #define TSC_IOSCR_G6_IO4_Msk (0x1UL << TSC_IOSCR_G6_IO4_Pos) /*!< 0x00800000 */
  14836. #define TSC_IOSCR_G6_IO4 TSC_IOSCR_G6_IO4_Msk /*!<GROUP6_IO4 sampling mode */
  14837. #define TSC_IOSCR_G7_IO1_Pos (24U)
  14838. #define TSC_IOSCR_G7_IO1_Msk (0x1UL << TSC_IOSCR_G7_IO1_Pos) /*!< 0x01000000 */
  14839. #define TSC_IOSCR_G7_IO1 TSC_IOSCR_G7_IO1_Msk /*!<GROUP7_IO1 sampling mode */
  14840. #define TSC_IOSCR_G7_IO2_Pos (25U)
  14841. #define TSC_IOSCR_G7_IO2_Msk (0x1UL << TSC_IOSCR_G7_IO2_Pos) /*!< 0x02000000 */
  14842. #define TSC_IOSCR_G7_IO2 TSC_IOSCR_G7_IO2_Msk /*!<GROUP7_IO2 sampling mode */
  14843. #define TSC_IOSCR_G7_IO3_Pos (26U)
  14844. #define TSC_IOSCR_G7_IO3_Msk (0x1UL << TSC_IOSCR_G7_IO3_Pos) /*!< 0x04000000 */
  14845. #define TSC_IOSCR_G7_IO3 TSC_IOSCR_G7_IO3_Msk /*!<GROUP7_IO3 sampling mode */
  14846. #define TSC_IOSCR_G7_IO4_Pos (27U)
  14847. #define TSC_IOSCR_G7_IO4_Msk (0x1UL << TSC_IOSCR_G7_IO4_Pos) /*!< 0x08000000 */
  14848. #define TSC_IOSCR_G7_IO4 TSC_IOSCR_G7_IO4_Msk /*!<GROUP7_IO4 sampling mode */
  14849. #define TSC_IOSCR_G8_IO1_Pos (28U)
  14850. #define TSC_IOSCR_G8_IO1_Msk (0x1UL << TSC_IOSCR_G8_IO1_Pos) /*!< 0x10000000 */
  14851. #define TSC_IOSCR_G8_IO1 TSC_IOSCR_G8_IO1_Msk /*!<GROUP8_IO1 sampling mode */
  14852. #define TSC_IOSCR_G8_IO2_Pos (29U)
  14853. #define TSC_IOSCR_G8_IO2_Msk (0x1UL << TSC_IOSCR_G8_IO2_Pos) /*!< 0x20000000 */
  14854. #define TSC_IOSCR_G8_IO2 TSC_IOSCR_G8_IO2_Msk /*!<GROUP8_IO2 sampling mode */
  14855. #define TSC_IOSCR_G8_IO3_Pos (30U)
  14856. #define TSC_IOSCR_G8_IO3_Msk (0x1UL << TSC_IOSCR_G8_IO3_Pos) /*!< 0x40000000 */
  14857. #define TSC_IOSCR_G8_IO3 TSC_IOSCR_G8_IO3_Msk /*!<GROUP8_IO3 sampling mode */
  14858. #define TSC_IOSCR_G8_IO4_Pos (31U)
  14859. #define TSC_IOSCR_G8_IO4_Msk (0x1UL << TSC_IOSCR_G8_IO4_Pos) /*!< 0x80000000 */
  14860. #define TSC_IOSCR_G8_IO4 TSC_IOSCR_G8_IO4_Msk /*!<GROUP8_IO4 sampling mode */
  14861. /******************* Bit definition for TSC_IOCCR register ******************/
  14862. #define TSC_IOCCR_G1_IO1_Pos (0U)
  14863. #define TSC_IOCCR_G1_IO1_Msk (0x1UL << TSC_IOCCR_G1_IO1_Pos) /*!< 0x00000001 */
  14864. #define TSC_IOCCR_G1_IO1 TSC_IOCCR_G1_IO1_Msk /*!<GROUP1_IO1 channel mode */
  14865. #define TSC_IOCCR_G1_IO2_Pos (1U)
  14866. #define TSC_IOCCR_G1_IO2_Msk (0x1UL << TSC_IOCCR_G1_IO2_Pos) /*!< 0x00000002 */
  14867. #define TSC_IOCCR_G1_IO2 TSC_IOCCR_G1_IO2_Msk /*!<GROUP1_IO2 channel mode */
  14868. #define TSC_IOCCR_G1_IO3_Pos (2U)
  14869. #define TSC_IOCCR_G1_IO3_Msk (0x1UL << TSC_IOCCR_G1_IO3_Pos) /*!< 0x00000004 */
  14870. #define TSC_IOCCR_G1_IO3 TSC_IOCCR_G1_IO3_Msk /*!<GROUP1_IO3 channel mode */
  14871. #define TSC_IOCCR_G1_IO4_Pos (3U)
  14872. #define TSC_IOCCR_G1_IO4_Msk (0x1UL << TSC_IOCCR_G1_IO4_Pos) /*!< 0x00000008 */
  14873. #define TSC_IOCCR_G1_IO4 TSC_IOCCR_G1_IO4_Msk /*!<GROUP1_IO4 channel mode */
  14874. #define TSC_IOCCR_G2_IO1_Pos (4U)
  14875. #define TSC_IOCCR_G2_IO1_Msk (0x1UL << TSC_IOCCR_G2_IO1_Pos) /*!< 0x00000010 */
  14876. #define TSC_IOCCR_G2_IO1 TSC_IOCCR_G2_IO1_Msk /*!<GROUP2_IO1 channel mode */
  14877. #define TSC_IOCCR_G2_IO2_Pos (5U)
  14878. #define TSC_IOCCR_G2_IO2_Msk (0x1UL << TSC_IOCCR_G2_IO2_Pos) /*!< 0x00000020 */
  14879. #define TSC_IOCCR_G2_IO2 TSC_IOCCR_G2_IO2_Msk /*!<GROUP2_IO2 channel mode */
  14880. #define TSC_IOCCR_G2_IO3_Pos (6U)
  14881. #define TSC_IOCCR_G2_IO3_Msk (0x1UL << TSC_IOCCR_G2_IO3_Pos) /*!< 0x00000040 */
  14882. #define TSC_IOCCR_G2_IO3 TSC_IOCCR_G2_IO3_Msk /*!<GROUP2_IO3 channel mode */
  14883. #define TSC_IOCCR_G2_IO4_Pos (7U)
  14884. #define TSC_IOCCR_G2_IO4_Msk (0x1UL << TSC_IOCCR_G2_IO4_Pos) /*!< 0x00000080 */
  14885. #define TSC_IOCCR_G2_IO4 TSC_IOCCR_G2_IO4_Msk /*!<GROUP2_IO4 channel mode */
  14886. #define TSC_IOCCR_G3_IO1_Pos (8U)
  14887. #define TSC_IOCCR_G3_IO1_Msk (0x1UL << TSC_IOCCR_G3_IO1_Pos) /*!< 0x00000100 */
  14888. #define TSC_IOCCR_G3_IO1 TSC_IOCCR_G3_IO1_Msk /*!<GROUP3_IO1 channel mode */
  14889. #define TSC_IOCCR_G3_IO2_Pos (9U)
  14890. #define TSC_IOCCR_G3_IO2_Msk (0x1UL << TSC_IOCCR_G3_IO2_Pos) /*!< 0x00000200 */
  14891. #define TSC_IOCCR_G3_IO2 TSC_IOCCR_G3_IO2_Msk /*!<GROUP3_IO2 channel mode */
  14892. #define TSC_IOCCR_G3_IO3_Pos (10U)
  14893. #define TSC_IOCCR_G3_IO3_Msk (0x1UL << TSC_IOCCR_G3_IO3_Pos) /*!< 0x00000400 */
  14894. #define TSC_IOCCR_G3_IO3 TSC_IOCCR_G3_IO3_Msk /*!<GROUP3_IO3 channel mode */
  14895. #define TSC_IOCCR_G3_IO4_Pos (11U)
  14896. #define TSC_IOCCR_G3_IO4_Msk (0x1UL << TSC_IOCCR_G3_IO4_Pos) /*!< 0x00000800 */
  14897. #define TSC_IOCCR_G3_IO4 TSC_IOCCR_G3_IO4_Msk /*!<GROUP3_IO4 channel mode */
  14898. #define TSC_IOCCR_G4_IO1_Pos (12U)
  14899. #define TSC_IOCCR_G4_IO1_Msk (0x1UL << TSC_IOCCR_G4_IO1_Pos) /*!< 0x00001000 */
  14900. #define TSC_IOCCR_G4_IO1 TSC_IOCCR_G4_IO1_Msk /*!<GROUP4_IO1 channel mode */
  14901. #define TSC_IOCCR_G4_IO2_Pos (13U)
  14902. #define TSC_IOCCR_G4_IO2_Msk (0x1UL << TSC_IOCCR_G4_IO2_Pos) /*!< 0x00002000 */
  14903. #define TSC_IOCCR_G4_IO2 TSC_IOCCR_G4_IO2_Msk /*!<GROUP4_IO2 channel mode */
  14904. #define TSC_IOCCR_G4_IO3_Pos (14U)
  14905. #define TSC_IOCCR_G4_IO3_Msk (0x1UL << TSC_IOCCR_G4_IO3_Pos) /*!< 0x00004000 */
  14906. #define TSC_IOCCR_G4_IO3 TSC_IOCCR_G4_IO3_Msk /*!<GROUP4_IO3 channel mode */
  14907. #define TSC_IOCCR_G4_IO4_Pos (15U)
  14908. #define TSC_IOCCR_G4_IO4_Msk (0x1UL << TSC_IOCCR_G4_IO4_Pos) /*!< 0x00008000 */
  14909. #define TSC_IOCCR_G4_IO4 TSC_IOCCR_G4_IO4_Msk /*!<GROUP4_IO4 channel mode */
  14910. #define TSC_IOCCR_G5_IO1_Pos (16U)
  14911. #define TSC_IOCCR_G5_IO1_Msk (0x1UL << TSC_IOCCR_G5_IO1_Pos) /*!< 0x00010000 */
  14912. #define TSC_IOCCR_G5_IO1 TSC_IOCCR_G5_IO1_Msk /*!<GROUP5_IO1 channel mode */
  14913. #define TSC_IOCCR_G5_IO2_Pos (17U)
  14914. #define TSC_IOCCR_G5_IO2_Msk (0x1UL << TSC_IOCCR_G5_IO2_Pos) /*!< 0x00020000 */
  14915. #define TSC_IOCCR_G5_IO2 TSC_IOCCR_G5_IO2_Msk /*!<GROUP5_IO2 channel mode */
  14916. #define TSC_IOCCR_G5_IO3_Pos (18U)
  14917. #define TSC_IOCCR_G5_IO3_Msk (0x1UL << TSC_IOCCR_G5_IO3_Pos) /*!< 0x00040000 */
  14918. #define TSC_IOCCR_G5_IO3 TSC_IOCCR_G5_IO3_Msk /*!<GROUP5_IO3 channel mode */
  14919. #define TSC_IOCCR_G5_IO4_Pos (19U)
  14920. #define TSC_IOCCR_G5_IO4_Msk (0x1UL << TSC_IOCCR_G5_IO4_Pos) /*!< 0x00080000 */
  14921. #define TSC_IOCCR_G5_IO4 TSC_IOCCR_G5_IO4_Msk /*!<GROUP5_IO4 channel mode */
  14922. #define TSC_IOCCR_G6_IO1_Pos (20U)
  14923. #define TSC_IOCCR_G6_IO1_Msk (0x1UL << TSC_IOCCR_G6_IO1_Pos) /*!< 0x00100000 */
  14924. #define TSC_IOCCR_G6_IO1 TSC_IOCCR_G6_IO1_Msk /*!<GROUP6_IO1 channel mode */
  14925. #define TSC_IOCCR_G6_IO2_Pos (21U)
  14926. #define TSC_IOCCR_G6_IO2_Msk (0x1UL << TSC_IOCCR_G6_IO2_Pos) /*!< 0x00200000 */
  14927. #define TSC_IOCCR_G6_IO2 TSC_IOCCR_G6_IO2_Msk /*!<GROUP6_IO2 channel mode */
  14928. #define TSC_IOCCR_G6_IO3_Pos (22U)
  14929. #define TSC_IOCCR_G6_IO3_Msk (0x1UL << TSC_IOCCR_G6_IO3_Pos) /*!< 0x00400000 */
  14930. #define TSC_IOCCR_G6_IO3 TSC_IOCCR_G6_IO3_Msk /*!<GROUP6_IO3 channel mode */
  14931. #define TSC_IOCCR_G6_IO4_Pos (23U)
  14932. #define TSC_IOCCR_G6_IO4_Msk (0x1UL << TSC_IOCCR_G6_IO4_Pos) /*!< 0x00800000 */
  14933. #define TSC_IOCCR_G6_IO4 TSC_IOCCR_G6_IO4_Msk /*!<GROUP6_IO4 channel mode */
  14934. #define TSC_IOCCR_G7_IO1_Pos (24U)
  14935. #define TSC_IOCCR_G7_IO1_Msk (0x1UL << TSC_IOCCR_G7_IO1_Pos) /*!< 0x01000000 */
  14936. #define TSC_IOCCR_G7_IO1 TSC_IOCCR_G7_IO1_Msk /*!<GROUP7_IO1 channel mode */
  14937. #define TSC_IOCCR_G7_IO2_Pos (25U)
  14938. #define TSC_IOCCR_G7_IO2_Msk (0x1UL << TSC_IOCCR_G7_IO2_Pos) /*!< 0x02000000 */
  14939. #define TSC_IOCCR_G7_IO2 TSC_IOCCR_G7_IO2_Msk /*!<GROUP7_IO2 channel mode */
  14940. #define TSC_IOCCR_G7_IO3_Pos (26U)
  14941. #define TSC_IOCCR_G7_IO3_Msk (0x1UL << TSC_IOCCR_G7_IO3_Pos) /*!< 0x04000000 */
  14942. #define TSC_IOCCR_G7_IO3 TSC_IOCCR_G7_IO3_Msk /*!<GROUP7_IO3 channel mode */
  14943. #define TSC_IOCCR_G7_IO4_Pos (27U)
  14944. #define TSC_IOCCR_G7_IO4_Msk (0x1UL << TSC_IOCCR_G7_IO4_Pos) /*!< 0x08000000 */
  14945. #define TSC_IOCCR_G7_IO4 TSC_IOCCR_G7_IO4_Msk /*!<GROUP7_IO4 channel mode */
  14946. #define TSC_IOCCR_G8_IO1_Pos (28U)
  14947. #define TSC_IOCCR_G8_IO1_Msk (0x1UL << TSC_IOCCR_G8_IO1_Pos) /*!< 0x10000000 */
  14948. #define TSC_IOCCR_G8_IO1 TSC_IOCCR_G8_IO1_Msk /*!<GROUP8_IO1 channel mode */
  14949. #define TSC_IOCCR_G8_IO2_Pos (29U)
  14950. #define TSC_IOCCR_G8_IO2_Msk (0x1UL << TSC_IOCCR_G8_IO2_Pos) /*!< 0x20000000 */
  14951. #define TSC_IOCCR_G8_IO2 TSC_IOCCR_G8_IO2_Msk /*!<GROUP8_IO2 channel mode */
  14952. #define TSC_IOCCR_G8_IO3_Pos (30U)
  14953. #define TSC_IOCCR_G8_IO3_Msk (0x1UL << TSC_IOCCR_G8_IO3_Pos) /*!< 0x40000000 */
  14954. #define TSC_IOCCR_G8_IO3 TSC_IOCCR_G8_IO3_Msk /*!<GROUP8_IO3 channel mode */
  14955. #define TSC_IOCCR_G8_IO4_Pos (31U)
  14956. #define TSC_IOCCR_G8_IO4_Msk (0x1UL << TSC_IOCCR_G8_IO4_Pos) /*!< 0x80000000 */
  14957. #define TSC_IOCCR_G8_IO4 TSC_IOCCR_G8_IO4_Msk /*!<GROUP8_IO4 channel mode */
  14958. /******************* Bit definition for TSC_IOGCSR register *****************/
  14959. #define TSC_IOGCSR_G1E_Pos (0U)
  14960. #define TSC_IOGCSR_G1E_Msk (0x1UL << TSC_IOGCSR_G1E_Pos) /*!< 0x00000001 */
  14961. #define TSC_IOGCSR_G1E TSC_IOGCSR_G1E_Msk /*!<Analog IO GROUP1 enable */
  14962. #define TSC_IOGCSR_G2E_Pos (1U)
  14963. #define TSC_IOGCSR_G2E_Msk (0x1UL << TSC_IOGCSR_G2E_Pos) /*!< 0x00000002 */
  14964. #define TSC_IOGCSR_G2E TSC_IOGCSR_G2E_Msk /*!<Analog IO GROUP2 enable */
  14965. #define TSC_IOGCSR_G3E_Pos (2U)
  14966. #define TSC_IOGCSR_G3E_Msk (0x1UL << TSC_IOGCSR_G3E_Pos) /*!< 0x00000004 */
  14967. #define TSC_IOGCSR_G3E TSC_IOGCSR_G3E_Msk /*!<Analog IO GROUP3 enable */
  14968. #define TSC_IOGCSR_G4E_Pos (3U)
  14969. #define TSC_IOGCSR_G4E_Msk (0x1UL << TSC_IOGCSR_G4E_Pos) /*!< 0x00000008 */
  14970. #define TSC_IOGCSR_G4E TSC_IOGCSR_G4E_Msk /*!<Analog IO GROUP4 enable */
  14971. #define TSC_IOGCSR_G5E_Pos (4U)
  14972. #define TSC_IOGCSR_G5E_Msk (0x1UL << TSC_IOGCSR_G5E_Pos) /*!< 0x00000010 */
  14973. #define TSC_IOGCSR_G5E TSC_IOGCSR_G5E_Msk /*!<Analog IO GROUP5 enable */
  14974. #define TSC_IOGCSR_G6E_Pos (5U)
  14975. #define TSC_IOGCSR_G6E_Msk (0x1UL << TSC_IOGCSR_G6E_Pos) /*!< 0x00000020 */
  14976. #define TSC_IOGCSR_G6E TSC_IOGCSR_G6E_Msk /*!<Analog IO GROUP6 enable */
  14977. #define TSC_IOGCSR_G7E_Pos (6U)
  14978. #define TSC_IOGCSR_G7E_Msk (0x1UL << TSC_IOGCSR_G7E_Pos) /*!< 0x00000040 */
  14979. #define TSC_IOGCSR_G7E TSC_IOGCSR_G7E_Msk /*!<Analog IO GROUP7 enable */
  14980. #define TSC_IOGCSR_G8E_Pos (7U)
  14981. #define TSC_IOGCSR_G8E_Msk (0x1UL << TSC_IOGCSR_G8E_Pos) /*!< 0x00000080 */
  14982. #define TSC_IOGCSR_G8E TSC_IOGCSR_G8E_Msk /*!<Analog IO GROUP8 enable */
  14983. #define TSC_IOGCSR_G1S_Pos (16U)
  14984. #define TSC_IOGCSR_G1S_Msk (0x1UL << TSC_IOGCSR_G1S_Pos) /*!< 0x00010000 */
  14985. #define TSC_IOGCSR_G1S TSC_IOGCSR_G1S_Msk /*!<Analog IO GROUP1 status */
  14986. #define TSC_IOGCSR_G2S_Pos (17U)
  14987. #define TSC_IOGCSR_G2S_Msk (0x1UL << TSC_IOGCSR_G2S_Pos) /*!< 0x00020000 */
  14988. #define TSC_IOGCSR_G2S TSC_IOGCSR_G2S_Msk /*!<Analog IO GROUP2 status */
  14989. #define TSC_IOGCSR_G3S_Pos (18U)
  14990. #define TSC_IOGCSR_G3S_Msk (0x1UL << TSC_IOGCSR_G3S_Pos) /*!< 0x00040000 */
  14991. #define TSC_IOGCSR_G3S TSC_IOGCSR_G3S_Msk /*!<Analog IO GROUP3 status */
  14992. #define TSC_IOGCSR_G4S_Pos (19U)
  14993. #define TSC_IOGCSR_G4S_Msk (0x1UL << TSC_IOGCSR_G4S_Pos) /*!< 0x00080000 */
  14994. #define TSC_IOGCSR_G4S TSC_IOGCSR_G4S_Msk /*!<Analog IO GROUP4 status */
  14995. #define TSC_IOGCSR_G5S_Pos (20U)
  14996. #define TSC_IOGCSR_G5S_Msk (0x1UL << TSC_IOGCSR_G5S_Pos) /*!< 0x00100000 */
  14997. #define TSC_IOGCSR_G5S TSC_IOGCSR_G5S_Msk /*!<Analog IO GROUP5 status */
  14998. #define TSC_IOGCSR_G6S_Pos (21U)
  14999. #define TSC_IOGCSR_G6S_Msk (0x1UL << TSC_IOGCSR_G6S_Pos) /*!< 0x00200000 */
  15000. #define TSC_IOGCSR_G6S TSC_IOGCSR_G6S_Msk /*!<Analog IO GROUP6 status */
  15001. #define TSC_IOGCSR_G7S_Pos (22U)
  15002. #define TSC_IOGCSR_G7S_Msk (0x1UL << TSC_IOGCSR_G7S_Pos) /*!< 0x00400000 */
  15003. #define TSC_IOGCSR_G7S TSC_IOGCSR_G7S_Msk /*!<Analog IO GROUP7 status */
  15004. #define TSC_IOGCSR_G8S_Pos (23U)
  15005. #define TSC_IOGCSR_G8S_Msk (0x1UL << TSC_IOGCSR_G8S_Pos) /*!< 0x00800000 */
  15006. #define TSC_IOGCSR_G8S TSC_IOGCSR_G8S_Msk /*!<Analog IO GROUP8 status */
  15007. /******************* Bit definition for TSC_IOGXCR register *****************/
  15008. #define TSC_IOGXCR_CNT_Pos (0U)
  15009. #define TSC_IOGXCR_CNT_Msk (0x3FFFUL << TSC_IOGXCR_CNT_Pos) /*!< 0x00003FFF */
  15010. #define TSC_IOGXCR_CNT TSC_IOGXCR_CNT_Msk /*!<CNT[13:0] bits (Counter value) */
  15011. /******************************************************************************/
  15012. /* */
  15013. /* Serial Audio Interface */
  15014. /* */
  15015. /******************************************************************************/
  15016. /******************** Bit definition for SAI_GCR register *******************/
  15017. #define SAI_GCR_SYNCIN_Pos (0U)
  15018. #define SAI_GCR_SYNCIN_Msk (0x3UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000003 */
  15019. #define SAI_GCR_SYNCIN SAI_GCR_SYNCIN_Msk /*!<SYNCIN[1:0] bits (Synchronization Inputs) */
  15020. #define SAI_GCR_SYNCIN_0 (0x1UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000001 */
  15021. #define SAI_GCR_SYNCIN_1 (0x2UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000002 */
  15022. #define SAI_GCR_SYNCOUT_Pos (4U)
  15023. #define SAI_GCR_SYNCOUT_Msk (0x3UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000030 */
  15024. #define SAI_GCR_SYNCOUT SAI_GCR_SYNCOUT_Msk /*!<SYNCOUT[1:0] bits (Synchronization Outputs) */
  15025. #define SAI_GCR_SYNCOUT_0 (0x1UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000010 */
  15026. #define SAI_GCR_SYNCOUT_1 (0x2UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000020 */
  15027. /******************* Bit definition for SAI_xCR1 register *******************/
  15028. #define SAI_xCR1_MODE_Pos (0U)
  15029. #define SAI_xCR1_MODE_Msk (0x3UL << SAI_xCR1_MODE_Pos) /*!< 0x00000003 */
  15030. #define SAI_xCR1_MODE SAI_xCR1_MODE_Msk /*!<MODE[1:0] bits (Audio Block Mode) */
  15031. #define SAI_xCR1_MODE_0 (0x1UL << SAI_xCR1_MODE_Pos) /*!< 0x00000001 */
  15032. #define SAI_xCR1_MODE_1 (0x2UL << SAI_xCR1_MODE_Pos) /*!< 0x00000002 */
  15033. #define SAI_xCR1_PRTCFG_Pos (2U)
  15034. #define SAI_xCR1_PRTCFG_Msk (0x3UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x0000000C */
  15035. #define SAI_xCR1_PRTCFG SAI_xCR1_PRTCFG_Msk /*!<PRTCFG[1:0] bits (Protocol Configuration) */
  15036. #define SAI_xCR1_PRTCFG_0 (0x1UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000004 */
  15037. #define SAI_xCR1_PRTCFG_1 (0x2UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000008 */
  15038. #define SAI_xCR1_DS_Pos (5U)
  15039. #define SAI_xCR1_DS_Msk (0x7UL << SAI_xCR1_DS_Pos) /*!< 0x000000E0 */
  15040. #define SAI_xCR1_DS SAI_xCR1_DS_Msk /*!<DS[1:0] bits (Data Size) */
  15041. #define SAI_xCR1_DS_0 (0x1UL << SAI_xCR1_DS_Pos) /*!< 0x00000020 */
  15042. #define SAI_xCR1_DS_1 (0x2UL << SAI_xCR1_DS_Pos) /*!< 0x00000040 */
  15043. #define SAI_xCR1_DS_2 (0x4UL << SAI_xCR1_DS_Pos) /*!< 0x00000080 */
  15044. #define SAI_xCR1_LSBFIRST_Pos (8U)
  15045. #define SAI_xCR1_LSBFIRST_Msk (0x1UL << SAI_xCR1_LSBFIRST_Pos) /*!< 0x00000100 */
  15046. #define SAI_xCR1_LSBFIRST SAI_xCR1_LSBFIRST_Msk /*!<LSB First Configuration */
  15047. #define SAI_xCR1_CKSTR_Pos (9U)
  15048. #define SAI_xCR1_CKSTR_Msk (0x1UL << SAI_xCR1_CKSTR_Pos) /*!< 0x00000200 */
  15049. #define SAI_xCR1_CKSTR SAI_xCR1_CKSTR_Msk /*!<ClocK STRobing edge */
  15050. #define SAI_xCR1_SYNCEN_Pos (10U)
  15051. #define SAI_xCR1_SYNCEN_Msk (0x3UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000C00 */
  15052. #define SAI_xCR1_SYNCEN SAI_xCR1_SYNCEN_Msk /*!<SYNCEN[1:0](SYNChronization ENable) */
  15053. #define SAI_xCR1_SYNCEN_0 (0x1UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000400 */
  15054. #define SAI_xCR1_SYNCEN_1 (0x2UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000800 */
  15055. #define SAI_xCR1_MONO_Pos (12U)
  15056. #define SAI_xCR1_MONO_Msk (0x1UL << SAI_xCR1_MONO_Pos) /*!< 0x00001000 */
  15057. #define SAI_xCR1_MONO SAI_xCR1_MONO_Msk /*!<Mono mode */
  15058. #define SAI_xCR1_OUTDRIV_Pos (13U)
  15059. #define SAI_xCR1_OUTDRIV_Msk (0x1UL << SAI_xCR1_OUTDRIV_Pos) /*!< 0x00002000 */
  15060. #define SAI_xCR1_OUTDRIV SAI_xCR1_OUTDRIV_Msk /*!<Output Drive */
  15061. #define SAI_xCR1_SAIEN_Pos (16U)
  15062. #define SAI_xCR1_SAIEN_Msk (0x1UL << SAI_xCR1_SAIEN_Pos) /*!< 0x00010000 */
  15063. #define SAI_xCR1_SAIEN SAI_xCR1_SAIEN_Msk /*!<Audio Block enable */
  15064. #define SAI_xCR1_DMAEN_Pos (17U)
  15065. #define SAI_xCR1_DMAEN_Msk (0x1UL << SAI_xCR1_DMAEN_Pos) /*!< 0x00020000 */
  15066. #define SAI_xCR1_DMAEN SAI_xCR1_DMAEN_Msk /*!<DMA enable */
  15067. #define SAI_xCR1_NODIV_Pos (19U)
  15068. #define SAI_xCR1_NODIV_Msk (0x1UL << SAI_xCR1_NODIV_Pos) /*!< 0x00080000 */
  15069. #define SAI_xCR1_NODIV SAI_xCR1_NODIV_Msk /*!<No Divider Configuration */
  15070. #define SAI_xCR1_MCKDIV_Pos (20U)
  15071. #define SAI_xCR1_MCKDIV_Msk (0x3FUL << SAI_xCR1_MCKDIV_Pos) /*!< 0x03F00000 */
  15072. #define SAI_xCR1_MCKDIV SAI_xCR1_MCKDIV_Msk /*!<MCKDIV[5:0] (Master ClocK Divider) */
  15073. #define SAI_xCR1_MCKDIV_0 (0x1UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00100000 */
  15074. #define SAI_xCR1_MCKDIV_1 (0x2UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00200000 */
  15075. #define SAI_xCR1_MCKDIV_2 (0x4UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00400000 */
  15076. #define SAI_xCR1_MCKDIV_3 (0x8UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00800000 */
  15077. #define SAI_xCR1_MCKDIV_4 (0x10UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x01000000 */
  15078. #define SAI_xCR1_MCKDIV_5 (0x20UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x02000000 */
  15079. #define SAI_xCR1_OSR_Pos (26U)
  15080. #define SAI_xCR1_OSR_Msk (0x1UL << SAI_xCR1_OSR_Pos) /*!< 0x04000000 */
  15081. #define SAI_xCR1_OSR SAI_xCR1_OSR_Msk /*!<Oversampling ratio for master clock */
  15082. #define SAI_xCR1_MCKEN_Pos (27U)
  15083. #define SAI_xCR1_MCKEN_Msk (0x1UL << SAI_xCR1_MCKEN_Pos) /*!< 0x08000000 */
  15084. #define SAI_xCR1_MCKEN SAI_xCR1_MCKEN_Msk /*!<Master clock generation enable */
  15085. /******************* Bit definition for SAI_xCR2 register *******************/
  15086. #define SAI_xCR2_FTH_Pos (0U)
  15087. #define SAI_xCR2_FTH_Msk (0x7UL << SAI_xCR2_FTH_Pos) /*!< 0x00000007 */
  15088. #define SAI_xCR2_FTH SAI_xCR2_FTH_Msk /*!<FTH[2:0](Fifo THreshold) */
  15089. #define SAI_xCR2_FTH_0 (0x1UL << SAI_xCR2_FTH_Pos) /*!< 0x00000001 */
  15090. #define SAI_xCR2_FTH_1 (0x2UL << SAI_xCR2_FTH_Pos) /*!< 0x00000002 */
  15091. #define SAI_xCR2_FTH_2 (0x4UL << SAI_xCR2_FTH_Pos) /*!< 0x00000004 */
  15092. #define SAI_xCR2_FFLUSH_Pos (3U)
  15093. #define SAI_xCR2_FFLUSH_Msk (0x1UL << SAI_xCR2_FFLUSH_Pos) /*!< 0x00000008 */
  15094. #define SAI_xCR2_FFLUSH SAI_xCR2_FFLUSH_Msk /*!<Fifo FLUSH */
  15095. #define SAI_xCR2_TRIS_Pos (4U)
  15096. #define SAI_xCR2_TRIS_Msk (0x1UL << SAI_xCR2_TRIS_Pos) /*!< 0x00000010 */
  15097. #define SAI_xCR2_TRIS SAI_xCR2_TRIS_Msk /*!<TRIState Management on data line */
  15098. #define SAI_xCR2_MUTE_Pos (5U)
  15099. #define SAI_xCR2_MUTE_Msk (0x1UL << SAI_xCR2_MUTE_Pos) /*!< 0x00000020 */
  15100. #define SAI_xCR2_MUTE SAI_xCR2_MUTE_Msk /*!<Mute mode */
  15101. #define SAI_xCR2_MUTEVAL_Pos (6U)
  15102. #define SAI_xCR2_MUTEVAL_Msk (0x1UL << SAI_xCR2_MUTEVAL_Pos) /*!< 0x00000040 */
  15103. #define SAI_xCR2_MUTEVAL SAI_xCR2_MUTEVAL_Msk /*!<Muate value */
  15104. #define SAI_xCR2_MUTECNT_Pos (7U)
  15105. #define SAI_xCR2_MUTECNT_Msk (0x3FUL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001F80 */
  15106. #define SAI_xCR2_MUTECNT SAI_xCR2_MUTECNT_Msk /*!<MUTECNT[5:0] (MUTE counter) */
  15107. #define SAI_xCR2_MUTECNT_0 (0x01UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000080 */
  15108. #define SAI_xCR2_MUTECNT_1 (0x02UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000100 */
  15109. #define SAI_xCR2_MUTECNT_2 (0x04UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000200 */
  15110. #define SAI_xCR2_MUTECNT_3 (0x08UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000400 */
  15111. #define SAI_xCR2_MUTECNT_4 (0x10UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000800 */
  15112. #define SAI_xCR2_MUTECNT_5 (0x20UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001000 */
  15113. #define SAI_xCR2_CPL_Pos (13U)
  15114. #define SAI_xCR2_CPL_Msk (0x1UL << SAI_xCR2_CPL_Pos) /*!< 0x00002000 */
  15115. #define SAI_xCR2_CPL SAI_xCR2_CPL_Msk /*!<CPL mode */
  15116. #define SAI_xCR2_COMP_Pos (14U)
  15117. #define SAI_xCR2_COMP_Msk (0x3UL << SAI_xCR2_COMP_Pos) /*!< 0x0000C000 */
  15118. #define SAI_xCR2_COMP SAI_xCR2_COMP_Msk /*!<COMP[1:0] (Companding mode) */
  15119. #define SAI_xCR2_COMP_0 (0x1UL << SAI_xCR2_COMP_Pos) /*!< 0x00004000 */
  15120. #define SAI_xCR2_COMP_1 (0x2UL << SAI_xCR2_COMP_Pos) /*!< 0x00008000 */
  15121. /****************** Bit definition for SAI_xFRCR register *******************/
  15122. #define SAI_xFRCR_FRL_Pos (0U)
  15123. #define SAI_xFRCR_FRL_Msk (0xFFUL << SAI_xFRCR_FRL_Pos) /*!< 0x000000FF */
  15124. #define SAI_xFRCR_FRL SAI_xFRCR_FRL_Msk /*!<FRL[7:0](Frame length) */
  15125. #define SAI_xFRCR_FRL_0 (0x01UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000001 */
  15126. #define SAI_xFRCR_FRL_1 (0x02UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000002 */
  15127. #define SAI_xFRCR_FRL_2 (0x04UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000004 */
  15128. #define SAI_xFRCR_FRL_3 (0x08UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000008 */
  15129. #define SAI_xFRCR_FRL_4 (0x10UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000010 */
  15130. #define SAI_xFRCR_FRL_5 (0x20UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000020 */
  15131. #define SAI_xFRCR_FRL_6 (0x40UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000040 */
  15132. #define SAI_xFRCR_FRL_7 (0x80UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000080 */
  15133. #define SAI_xFRCR_FSALL_Pos (8U)
  15134. #define SAI_xFRCR_FSALL_Msk (0x7FUL << SAI_xFRCR_FSALL_Pos) /*!< 0x00007F00 */
  15135. #define SAI_xFRCR_FSALL SAI_xFRCR_FSALL_Msk /*!<FRL[6:0] (Frame synchronization active level length) */
  15136. #define SAI_xFRCR_FSALL_0 (0x01UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000100 */
  15137. #define SAI_xFRCR_FSALL_1 (0x02UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000200 */
  15138. #define SAI_xFRCR_FSALL_2 (0x04UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000400 */
  15139. #define SAI_xFRCR_FSALL_3 (0x08UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000800 */
  15140. #define SAI_xFRCR_FSALL_4 (0x10UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00001000 */
  15141. #define SAI_xFRCR_FSALL_5 (0x20UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00002000 */
  15142. #define SAI_xFRCR_FSALL_6 (0x40UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00004000 */
  15143. #define SAI_xFRCR_FSDEF_Pos (16U)
  15144. #define SAI_xFRCR_FSDEF_Msk (0x1UL << SAI_xFRCR_FSDEF_Pos) /*!< 0x00010000 */
  15145. #define SAI_xFRCR_FSDEF SAI_xFRCR_FSDEF_Msk /*!< Frame Synchronization Definition */
  15146. #define SAI_xFRCR_FSPOL_Pos (17U)
  15147. #define SAI_xFRCR_FSPOL_Msk (0x1UL << SAI_xFRCR_FSPOL_Pos) /*!< 0x00020000 */
  15148. #define SAI_xFRCR_FSPOL SAI_xFRCR_FSPOL_Msk /*!<Frame Synchronization POLarity */
  15149. #define SAI_xFRCR_FSOFF_Pos (18U)
  15150. #define SAI_xFRCR_FSOFF_Msk (0x1UL << SAI_xFRCR_FSOFF_Pos) /*!< 0x00040000 */
  15151. #define SAI_xFRCR_FSOFF SAI_xFRCR_FSOFF_Msk /*!<Frame Synchronization OFFset */
  15152. /****************** Bit definition for SAI_xSLOTR register *******************/
  15153. #define SAI_xSLOTR_FBOFF_Pos (0U)
  15154. #define SAI_xSLOTR_FBOFF_Msk (0x1FUL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x0000001F */
  15155. #define SAI_xSLOTR_FBOFF SAI_xSLOTR_FBOFF_Msk /*!<FRL[4:0](First Bit Offset) */
  15156. #define SAI_xSLOTR_FBOFF_0 (0x01UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000001 */
  15157. #define SAI_xSLOTR_FBOFF_1 (0x02UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000002 */
  15158. #define SAI_xSLOTR_FBOFF_2 (0x04UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000004 */
  15159. #define SAI_xSLOTR_FBOFF_3 (0x08UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000008 */
  15160. #define SAI_xSLOTR_FBOFF_4 (0x10UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000010 */
  15161. #define SAI_xSLOTR_SLOTSZ_Pos (6U)
  15162. #define SAI_xSLOTR_SLOTSZ_Msk (0x3UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x000000C0 */
  15163. #define SAI_xSLOTR_SLOTSZ SAI_xSLOTR_SLOTSZ_Msk /*!<SLOTSZ[1:0] (Slot size) */
  15164. #define SAI_xSLOTR_SLOTSZ_0 (0x1UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000040 */
  15165. #define SAI_xSLOTR_SLOTSZ_1 (0x2UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000080 */
  15166. #define SAI_xSLOTR_NBSLOT_Pos (8U)
  15167. #define SAI_xSLOTR_NBSLOT_Msk (0xFUL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000F00 */
  15168. #define SAI_xSLOTR_NBSLOT SAI_xSLOTR_NBSLOT_Msk /*!<NBSLOT[3:0] (Number of Slot in audio Frame) */
  15169. #define SAI_xSLOTR_NBSLOT_0 (0x1UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000100 */
  15170. #define SAI_xSLOTR_NBSLOT_1 (0x2UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000200 */
  15171. #define SAI_xSLOTR_NBSLOT_2 (0x4UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000400 */
  15172. #define SAI_xSLOTR_NBSLOT_3 (0x8UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000800 */
  15173. #define SAI_xSLOTR_SLOTEN_Pos (16U)
  15174. #define SAI_xSLOTR_SLOTEN_Msk (0xFFFFUL << SAI_xSLOTR_SLOTEN_Pos) /*!< 0xFFFF0000 */
  15175. #define SAI_xSLOTR_SLOTEN SAI_xSLOTR_SLOTEN_Msk /*!<SLOTEN[15:0] (Slot Enable) */
  15176. /******************* Bit definition for SAI_xIMR register *******************/
  15177. #define SAI_xIMR_OVRUDRIE_Pos (0U)
  15178. #define SAI_xIMR_OVRUDRIE_Msk (0x1UL << SAI_xIMR_OVRUDRIE_Pos) /*!< 0x00000001 */
  15179. #define SAI_xIMR_OVRUDRIE SAI_xIMR_OVRUDRIE_Msk /*!<Overrun underrun interrupt enable */
  15180. #define SAI_xIMR_MUTEDETIE_Pos (1U)
  15181. #define SAI_xIMR_MUTEDETIE_Msk (0x1UL << SAI_xIMR_MUTEDETIE_Pos) /*!< 0x00000002 */
  15182. #define SAI_xIMR_MUTEDETIE SAI_xIMR_MUTEDETIE_Msk /*!<Mute detection interrupt enable */
  15183. #define SAI_xIMR_WCKCFGIE_Pos (2U)
  15184. #define SAI_xIMR_WCKCFGIE_Msk (0x1UL << SAI_xIMR_WCKCFGIE_Pos) /*!< 0x00000004 */
  15185. #define SAI_xIMR_WCKCFGIE SAI_xIMR_WCKCFGIE_Msk /*!<Wrong Clock Configuration interrupt enable */
  15186. #define SAI_xIMR_FREQIE_Pos (3U)
  15187. #define SAI_xIMR_FREQIE_Msk (0x1UL << SAI_xIMR_FREQIE_Pos) /*!< 0x00000008 */
  15188. #define SAI_xIMR_FREQIE SAI_xIMR_FREQIE_Msk /*!<FIFO request interrupt enable */
  15189. #define SAI_xIMR_CNRDYIE_Pos (4U)
  15190. #define SAI_xIMR_CNRDYIE_Msk (0x1UL << SAI_xIMR_CNRDYIE_Pos) /*!< 0x00000010 */
  15191. #define SAI_xIMR_CNRDYIE SAI_xIMR_CNRDYIE_Msk /*!<Codec not ready interrupt enable */
  15192. #define SAI_xIMR_AFSDETIE_Pos (5U)
  15193. #define SAI_xIMR_AFSDETIE_Msk (0x1UL << SAI_xIMR_AFSDETIE_Pos) /*!< 0x00000020 */
  15194. #define SAI_xIMR_AFSDETIE SAI_xIMR_AFSDETIE_Msk /*!<Anticipated frame synchronization detection interrupt enable */
  15195. #define SAI_xIMR_LFSDETIE_Pos (6U)
  15196. #define SAI_xIMR_LFSDETIE_Msk (0x1UL << SAI_xIMR_LFSDETIE_Pos) /*!< 0x00000040 */
  15197. #define SAI_xIMR_LFSDETIE SAI_xIMR_LFSDETIE_Msk /*!<Late frame synchronization detection interrupt enable */
  15198. /******************** Bit definition for SAI_xSR register *******************/
  15199. #define SAI_xSR_OVRUDR_Pos (0U)
  15200. #define SAI_xSR_OVRUDR_Msk (0x1UL << SAI_xSR_OVRUDR_Pos) /*!< 0x00000001 */
  15201. #define SAI_xSR_OVRUDR SAI_xSR_OVRUDR_Msk /*!<Overrun underrun */
  15202. #define SAI_xSR_MUTEDET_Pos (1U)
  15203. #define SAI_xSR_MUTEDET_Msk (0x1UL << SAI_xSR_MUTEDET_Pos) /*!< 0x00000002 */
  15204. #define SAI_xSR_MUTEDET SAI_xSR_MUTEDET_Msk /*!<Mute detection */
  15205. #define SAI_xSR_WCKCFG_Pos (2U)
  15206. #define SAI_xSR_WCKCFG_Msk (0x1UL << SAI_xSR_WCKCFG_Pos) /*!< 0x00000004 */
  15207. #define SAI_xSR_WCKCFG SAI_xSR_WCKCFG_Msk /*!<Wrong Clock Configuration */
  15208. #define SAI_xSR_FREQ_Pos (3U)
  15209. #define SAI_xSR_FREQ_Msk (0x1UL << SAI_xSR_FREQ_Pos) /*!< 0x00000008 */
  15210. #define SAI_xSR_FREQ SAI_xSR_FREQ_Msk /*!<FIFO request */
  15211. #define SAI_xSR_CNRDY_Pos (4U)
  15212. #define SAI_xSR_CNRDY_Msk (0x1UL << SAI_xSR_CNRDY_Pos) /*!< 0x00000010 */
  15213. #define SAI_xSR_CNRDY SAI_xSR_CNRDY_Msk /*!<Codec not ready */
  15214. #define SAI_xSR_AFSDET_Pos (5U)
  15215. #define SAI_xSR_AFSDET_Msk (0x1UL << SAI_xSR_AFSDET_Pos) /*!< 0x00000020 */
  15216. #define SAI_xSR_AFSDET SAI_xSR_AFSDET_Msk /*!<Anticipated frame synchronization detection */
  15217. #define SAI_xSR_LFSDET_Pos (6U)
  15218. #define SAI_xSR_LFSDET_Msk (0x1UL << SAI_xSR_LFSDET_Pos) /*!< 0x00000040 */
  15219. #define SAI_xSR_LFSDET SAI_xSR_LFSDET_Msk /*!<Late frame synchronization detection */
  15220. #define SAI_xSR_FLVL_Pos (16U)
  15221. #define SAI_xSR_FLVL_Msk (0x7UL << SAI_xSR_FLVL_Pos) /*!< 0x00070000 */
  15222. #define SAI_xSR_FLVL SAI_xSR_FLVL_Msk /*!<FLVL[2:0] (FIFO Level Threshold) */
  15223. #define SAI_xSR_FLVL_0 (0x1UL << SAI_xSR_FLVL_Pos) /*!< 0x00010000 */
  15224. #define SAI_xSR_FLVL_1 (0x2UL << SAI_xSR_FLVL_Pos) /*!< 0x00020000 */
  15225. #define SAI_xSR_FLVL_2 (0x4UL << SAI_xSR_FLVL_Pos) /*!< 0x00040000 */
  15226. /****************** Bit definition for SAI_xCLRFR register ******************/
  15227. #define SAI_xCLRFR_COVRUDR_Pos (0U)
  15228. #define SAI_xCLRFR_COVRUDR_Msk (0x1UL << SAI_xCLRFR_COVRUDR_Pos) /*!< 0x00000001 */
  15229. #define SAI_xCLRFR_COVRUDR SAI_xCLRFR_COVRUDR_Msk /*!<Clear Overrun underrun */
  15230. #define SAI_xCLRFR_CMUTEDET_Pos (1U)
  15231. #define SAI_xCLRFR_CMUTEDET_Msk (0x1UL << SAI_xCLRFR_CMUTEDET_Pos) /*!< 0x00000002 */
  15232. #define SAI_xCLRFR_CMUTEDET SAI_xCLRFR_CMUTEDET_Msk /*!<Clear Mute detection */
  15233. #define SAI_xCLRFR_CWCKCFG_Pos (2U)
  15234. #define SAI_xCLRFR_CWCKCFG_Msk (0x1UL << SAI_xCLRFR_CWCKCFG_Pos) /*!< 0x00000004 */
  15235. #define SAI_xCLRFR_CWCKCFG SAI_xCLRFR_CWCKCFG_Msk /*!<Clear Wrong Clock Configuration */
  15236. #define SAI_xCLRFR_CFREQ_Pos (3U)
  15237. #define SAI_xCLRFR_CFREQ_Msk (0x1UL << SAI_xCLRFR_CFREQ_Pos) /*!< 0x00000008 */
  15238. #define SAI_xCLRFR_CFREQ SAI_xCLRFR_CFREQ_Msk /*!<Clear FIFO request */
  15239. #define SAI_xCLRFR_CCNRDY_Pos (4U)
  15240. #define SAI_xCLRFR_CCNRDY_Msk (0x1UL << SAI_xCLRFR_CCNRDY_Pos) /*!< 0x00000010 */
  15241. #define SAI_xCLRFR_CCNRDY SAI_xCLRFR_CCNRDY_Msk /*!<Clear Codec not ready */
  15242. #define SAI_xCLRFR_CAFSDET_Pos (5U)
  15243. #define SAI_xCLRFR_CAFSDET_Msk (0x1UL << SAI_xCLRFR_CAFSDET_Pos) /*!< 0x00000020 */
  15244. #define SAI_xCLRFR_CAFSDET SAI_xCLRFR_CAFSDET_Msk /*!<Clear Anticipated frame synchronization detection */
  15245. #define SAI_xCLRFR_CLFSDET_Pos (6U)
  15246. #define SAI_xCLRFR_CLFSDET_Msk (0x1UL << SAI_xCLRFR_CLFSDET_Pos) /*!< 0x00000040 */
  15247. #define SAI_xCLRFR_CLFSDET SAI_xCLRFR_CLFSDET_Msk /*!<Clear Late frame synchronization detection */
  15248. /****************** Bit definition for SAI_xDR register ******************/
  15249. #define SAI_xDR_DATA_Pos (0U)
  15250. #define SAI_xDR_DATA_Msk (0xFFFFFFFFUL << SAI_xDR_DATA_Pos) /*!< 0xFFFFFFFF */
  15251. #define SAI_xDR_DATA SAI_xDR_DATA_Msk
  15252. /****************** Bit definition for SAI_PDMCR register *******************/
  15253. #define SAI_PDMCR_PDMEN_Pos (0U)
  15254. #define SAI_PDMCR_PDMEN_Msk (0x1UL << SAI_PDMCR_PDMEN_Pos) /*!< 0x00000001 */
  15255. #define SAI_PDMCR_PDMEN SAI_PDMCR_PDMEN_Msk /*!<PDM enable */
  15256. #define SAI_PDMCR_MICNBR_Pos (4U)
  15257. #define SAI_PDMCR_MICNBR_Msk (0x3UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000030 */
  15258. #define SAI_PDMCR_MICNBR SAI_PDMCR_MICNBR_Msk /*!<MICNBR[1:0] (Number of microphones) */
  15259. #define SAI_PDMCR_MICNBR_0 (0x1UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000010 */
  15260. #define SAI_PDMCR_MICNBR_1 (0x2UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000020 */
  15261. #define SAI_PDMCR_CKEN1_Pos (8U)
  15262. #define SAI_PDMCR_CKEN1_Msk (0x1UL << SAI_PDMCR_CKEN1_Pos) /*!< 0x00000100 */
  15263. #define SAI_PDMCR_CKEN1 SAI_PDMCR_CKEN1_Msk /*!<Clock 1 enable */
  15264. #define SAI_PDMCR_CKEN2_Pos (9U)
  15265. #define SAI_PDMCR_CKEN2_Msk (0x1UL << SAI_PDMCR_CKEN2_Pos) /*!< 0x00000200 */
  15266. #define SAI_PDMCR_CKEN2 SAI_PDMCR_CKEN2_Msk /*!<Clock 2 enable */
  15267. #define SAI_PDMCR_CKEN3_Pos (10U)
  15268. #define SAI_PDMCR_CKEN3_Msk (0x1UL << SAI_PDMCR_CKEN3_Pos) /*!< 0x00000400 */
  15269. #define SAI_PDMCR_CKEN3 SAI_PDMCR_CKEN3_Msk /*!<Clock 3 enable */
  15270. #define SAI_PDMCR_CKEN4_Pos (11U)
  15271. #define SAI_PDMCR_CKEN4_Msk (0x1UL << SAI_PDMCR_CKEN4_Pos) /*!< 0x00000800 */
  15272. #define SAI_PDMCR_CKEN4 SAI_PDMCR_CKEN4_Msk /*!<Clock 4 enable */
  15273. /****************** Bit definition for SAI_PDMDLY register ******************/
  15274. #define SAI_PDMDLY_DLYM1L_Pos (0U)
  15275. #define SAI_PDMDLY_DLYM1L_Msk (0x7UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000007 */
  15276. #define SAI_PDMDLY_DLYM1L SAI_PDMDLY_DLYM1L_Msk /*!<DLYM1L[2:0] (Delay line adjust for left microphone of pair 1) */
  15277. #define SAI_PDMDLY_DLYM1L_0 (0x1UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000001 */
  15278. #define SAI_PDMDLY_DLYM1L_1 (0x2UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000002 */
  15279. #define SAI_PDMDLY_DLYM1L_2 (0x4UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000004 */
  15280. #define SAI_PDMDLY_DLYM1R_Pos (4U)
  15281. #define SAI_PDMDLY_DLYM1R_Msk (0x7UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000070 */
  15282. #define SAI_PDMDLY_DLYM1R SAI_PDMDLY_DLYM1R_Msk /*!<DLYM1R[2:0] (Delay line adjust for right microphone of pair 1) */
  15283. #define SAI_PDMDLY_DLYM1R_0 (0x1UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000010 */
  15284. #define SAI_PDMDLY_DLYM1R_1 (0x2UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000020 */
  15285. #define SAI_PDMDLY_DLYM1R_2 (0x4UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000040 */
  15286. #define SAI_PDMDLY_DLYM2L_Pos (8U)
  15287. #define SAI_PDMDLY_DLYM2L_Msk (0x7UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000700 */
  15288. #define SAI_PDMDLY_DLYM2L SAI_PDMDLY_DLYM2L_Msk /*!<DLYM2L[2:0] (Delay line adjust for left microphone of pair 2) */
  15289. #define SAI_PDMDLY_DLYM2L_0 (0x1UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000100 */
  15290. #define SAI_PDMDLY_DLYM2L_1 (0x2UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000200 */
  15291. #define SAI_PDMDLY_DLYM2L_2 (0x4UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000400 */
  15292. #define SAI_PDMDLY_DLYM2R_Pos (12U)
  15293. #define SAI_PDMDLY_DLYM2R_Msk (0x7UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00007000 */
  15294. #define SAI_PDMDLY_DLYM2R SAI_PDMDLY_DLYM2R_Msk /*!<DLYM2R[2:0] (Delay line adjust for right microphone of pair 2) */
  15295. #define SAI_PDMDLY_DLYM2R_0 (0x1UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00001000 */
  15296. #define SAI_PDMDLY_DLYM2R_1 (0x2UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00002000 */
  15297. #define SAI_PDMDLY_DLYM2R_2 (0x4UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00004000 */
  15298. #define SAI_PDMDLY_DLYM3L_Pos (16U)
  15299. #define SAI_PDMDLY_DLYM3L_Msk (0x7UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00070000 */
  15300. #define SAI_PDMDLY_DLYM3L SAI_PDMDLY_DLYM3L_Msk /*!<DLYM3L[2:0] (Delay line adjust for left microphone of pair 3) */
  15301. #define SAI_PDMDLY_DLYM3L_0 (0x1UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00010000 */
  15302. #define SAI_PDMDLY_DLYM3L_1 (0x2UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00020000 */
  15303. #define SAI_PDMDLY_DLYM3L_2 (0x4UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00040000 */
  15304. #define SAI_PDMDLY_DLYM3R_Pos (20U)
  15305. #define SAI_PDMDLY_DLYM3R_Msk (0x7UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00700000 */
  15306. #define SAI_PDMDLY_DLYM3R SAI_PDMDLY_DLYM3R_Msk /*!<DLYM3R[2:0] (Delay line adjust for right microphone of pair 3) */
  15307. #define SAI_PDMDLY_DLYM3R_0 (0x1UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00100000 */
  15308. #define SAI_PDMDLY_DLYM3R_1 (0x2UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00200000 */
  15309. #define SAI_PDMDLY_DLYM3R_2 (0x4UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00400000 */
  15310. #define SAI_PDMDLY_DLYM4L_Pos (24U)
  15311. #define SAI_PDMDLY_DLYM4L_Msk (0x7UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x07000000 */
  15312. #define SAI_PDMDLY_DLYM4L SAI_PDMDLY_DLYM4L_Msk /*!<DLYM4L[2:0] (Delay line adjust for left microphone of pair 4) */
  15313. #define SAI_PDMDLY_DLYM4L_0 (0x1UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x01000000 */
  15314. #define SAI_PDMDLY_DLYM4L_1 (0x2UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x02000000 */
  15315. #define SAI_PDMDLY_DLYM4L_2 (0x4UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x04000000 */
  15316. #define SAI_PDMDLY_DLYM4R_Pos (28U)
  15317. #define SAI_PDMDLY_DLYM4R_Msk (0x7UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x70000000 */
  15318. #define SAI_PDMDLY_DLYM4R SAI_PDMDLY_DLYM4R_Msk /*!<DLYM4R[2:0] (Delay line adjust for right microphone of pair 4) */
  15319. #define SAI_PDMDLY_DLYM4R_0 (0x1UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x10000000 */
  15320. #define SAI_PDMDLY_DLYM4R_1 (0x2UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x20000000 */
  15321. #define SAI_PDMDLY_DLYM4R_2 (0x4UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x40000000 */
  15322. /******************************************************************************/
  15323. /* */
  15324. /* SYSCFG */
  15325. /* */
  15326. /******************************************************************************/
  15327. /****************** Bit definition for SYSCFG_SECCFGR register **************/
  15328. #define SYSCFG_SECCFGR_SYSCFGSEC_Pos (0U)
  15329. #define SYSCFG_SECCFGR_SYSCFGSEC_Msk (0x1UL << SYSCFG_SECCFGR_SYSCFGSEC_Pos) /*!< 0x00000001 */
  15330. #define SYSCFG_SECCFGR_SYSCFGSEC SYSCFG_SECCFGR_SYSCFGSEC_Msk /*!< SYSCFG clock control security enable */
  15331. #define SYSCFG_SECCFGR_CLASSBSEC_Pos (1U)
  15332. #define SYSCFG_SECCFGR_CLASSBSEC_Msk (0x1UL << SYSCFG_SECCFGR_CLASSBSEC_Pos) /*!< 0x00000002 */
  15333. #define SYSCFG_SECCFGR_CLASSBSEC SYSCFG_SECCFGR_CLASSBSEC_Msk /*!< ClassB SYSCFG security enable */
  15334. #define SYSCFG_SECCFGR_SRAM2SEC_Pos (2U)
  15335. #define SYSCFG_SECCFGR_SRAM2SEC_Msk (0x1UL << SYSCFG_SECCFGR_SRAM2SEC_Pos) /*!< 0x00000004 */
  15336. #define SYSCFG_SECCFGR_SRAM2SEC SYSCFG_SECCFGR_SRAM2SEC_Msk /*!< SRAM2 SYSCFG security enable */
  15337. #define SYSCFG_SECCFGR_FPUSEC_Pos (3U)
  15338. #define SYSCFG_SECCFGR_FPUSEC_Msk (0x1UL << SYSCFG_SECCFGR_FPUSEC_Pos) /*!< 0x00000008 */
  15339. #define SYSCFG_SECCFGR_FPUSEC SYSCFG_SECCFGR_FPUSEC_Msk /*!< FPU SYSCFG security enable */
  15340. /****************** Bit definition for SYSCFG_CFGR1 register ****************/
  15341. #define SYSCFG_CFGR1_BOOSTEN_Pos (8U)
  15342. #define SYSCFG_CFGR1_BOOSTEN_Msk (0x1UL << SYSCFG_CFGR1_BOOSTEN_Pos) /*!< 0x00000100 */
  15343. #define SYSCFG_CFGR1_BOOSTEN SYSCFG_CFGR1_BOOSTEN_Msk /*!< I/O analog switch voltage booster enable */
  15344. #define SYSCFG_CFGR1_ANASWVDD_Pos (9U)
  15345. #define SYSCFG_CFGR1_ANASWVDD_Msk (0x1UL << SYSCFG_CFGR1_ANASWVDD_Pos) /*!< 0x00000200 */
  15346. #define SYSCFG_CFGR1_ANASWVDD SYSCFG_CFGR1_ANASWVDD_Msk /*!< GPIO analog switch control voltage selection enable */
  15347. #define SYSCFG_CFGR1_I2C_PB6_FMP_Pos (16U)
  15348. #define SYSCFG_CFGR1_I2C_PB6_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB6_FMP_Pos)/*!< 0x00010000 */
  15349. #define SYSCFG_CFGR1_I2C_PB6_FMP SYSCFG_CFGR1_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */
  15350. #define SYSCFG_CFGR1_I2C_PB7_FMP_Pos (17U)
  15351. #define SYSCFG_CFGR1_I2C_PB7_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB7_FMP_Pos)/*!< 0x00020000 */
  15352. #define SYSCFG_CFGR1_I2C_PB7_FMP SYSCFG_CFGR1_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */
  15353. #define SYSCFG_CFGR1_I2C_PB8_FMP_Pos (18U)
  15354. #define SYSCFG_CFGR1_I2C_PB8_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB8_FMP_Pos)/*!< 0x00040000 */
  15355. #define SYSCFG_CFGR1_I2C_PB8_FMP SYSCFG_CFGR1_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */
  15356. #define SYSCFG_CFGR1_I2C_PB9_FMP_Pos (19U)
  15357. #define SYSCFG_CFGR1_I2C_PB9_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB9_FMP_Pos)/*!< 0x00080000 */
  15358. #define SYSCFG_CFGR1_I2C_PB9_FMP SYSCFG_CFGR1_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */
  15359. #define SYSCFG_CFGR1_I2C1_FMP_Pos (20U)
  15360. #define SYSCFG_CFGR1_I2C1_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C1_FMP_Pos) /*!< 0x00100000 */
  15361. #define SYSCFG_CFGR1_I2C1_FMP SYSCFG_CFGR1_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */
  15362. #define SYSCFG_CFGR1_I2C2_FMP_Pos (21U)
  15363. #define SYSCFG_CFGR1_I2C2_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C2_FMP_Pos) /*!< 0x00200000 */
  15364. #define SYSCFG_CFGR1_I2C2_FMP SYSCFG_CFGR1_I2C2_FMP_Msk /*!< I2C2 Fast mode plus */
  15365. #define SYSCFG_CFGR1_I2C3_FMP_Pos (22U)
  15366. #define SYSCFG_CFGR1_I2C3_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C3_FMP_Pos) /*!< 0x00400000 */
  15367. #define SYSCFG_CFGR1_I2C3_FMP SYSCFG_CFGR1_I2C3_FMP_Msk /*!< I2C3 Fast mode plus */
  15368. #define SYSCFG_CFGR1_I2C4_FMP_Pos (23U)
  15369. #define SYSCFG_CFGR1_I2C4_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C4_FMP_Pos) /*!< 0x00800000 */
  15370. #define SYSCFG_CFGR1_I2C4_FMP SYSCFG_CFGR1_I2C4_FMP_Msk /*!< I2C4 Fast mode plus */
  15371. /****************** Bit definition for SYSCFG_FPUIMR register ***************/
  15372. #define SYSCFG_FPUIMR_FPU_IE_Pos (0U)
  15373. #define SYSCFG_FPUIMR_FPU_IE_Msk (0x3FUL << SYSCFG_FPUIMR_FPU_IE_Pos) /*!< 0x0000003F */
  15374. #define SYSCFG_FPUIMR_FPU_IE SYSCFG_FPUIMR_FPU_IE_Msk /*!< All FPU interrupts enable */
  15375. #define SYSCFG_FPUIMR_FPU_IE_0_Pos (0U)
  15376. #define SYSCFG_FPUIMR_FPU_IE_0_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_0_Pos) /*!< 0x00000001 */
  15377. #define SYSCFG_FPUIMR_FPU_IE_0 SYSCFG_FPUIMR_FPU_IE_0_Msk /*!< Invalid operation Interrupt enable */
  15378. #define SYSCFG_FPUIMR_FPU_IE_1_Pos (1U)
  15379. #define SYSCFG_FPUIMR_FPU_IE_1_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_1_Pos) /*!< 0x00000002 */
  15380. #define SYSCFG_FPUIMR_FPU_IE_1 SYSCFG_FPUIMR_FPU_IE_1_Msk /*!< Divide-by-zero Interrupt enable */
  15381. #define SYSCFG_FPUIMR_FPU_IE_2_Pos (2U)
  15382. #define SYSCFG_FPUIMR_FPU_IE_2_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_2_Pos) /*!< 0x00000004 */
  15383. #define SYSCFG_FPUIMR_FPU_IE_2 SYSCFG_FPUIMR_FPU_IE_2_Msk /*!< Underflow Interrupt enable */
  15384. #define SYSCFG_FPUIMR_FPU_IE_3_Pos (3U)
  15385. #define SYSCFG_FPUIMR_FPU_IE_3_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_3_Pos) /*!< 0x00000008 */
  15386. #define SYSCFG_FPUIMR_FPU_IE_3 SYSCFG_FPUIMR_FPU_IE_3_Msk /*!< Overflow Interrupt enable */
  15387. #define SYSCFG_FPUIMR_FPU_IE_4_Pos (4U)
  15388. #define SYSCFG_FPUIMR_FPU_IE_4_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_4_Pos) /*!< 0x00000010 */
  15389. #define SYSCFG_FPUIMR_FPU_IE_4 SYSCFG_FPUIMR_FPU_IE_4_Msk /*!< Input denormal Interrupt enable */
  15390. #define SYSCFG_FPUIMR_FPU_IE_5_Pos (5U)
  15391. #define SYSCFG_FPUIMR_FPU_IE_5_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_5_Pos) /*!< 0x00000020 */
  15392. #define SYSCFG_FPUIMR_FPU_IE_5 SYSCFG_FPUIMR_FPU_IE_5_Msk /*!< Inexact Interrupt enable */
  15393. /****************** Bit definition for SYSCFG_CNSLCKR register **************/
  15394. #define SYSCFG_CNSLCKR_LOCKNSVTOR_Pos (0U)
  15395. #define SYSCFG_CNSLCKR_LOCKNSVTOR_Msk (0x1UL << SYSCFG_CNSLCKR_LOCKNSVTOR_Pos)/*!< 0x00000001 */
  15396. #define SYSCFG_CNSLCKR_LOCKNSVTOR SYSCFG_CNSLCKR_LOCKNSVTOR_Msk /*!< Disable VTOR_NS register writes by SW or debug agent */
  15397. #define SYSCFG_CNSLCKR_LOCKNSMPU_Pos (1U)
  15398. #define SYSCFG_CNSLCKR_LOCKNSMPU_Msk (0x1UL << SYSCFG_CNSLCKR_LOCKNSMPU_Pos)/*!< 0x00000002 */
  15399. #define SYSCFG_CNSLCKR_LOCKNSMPU SYSCFG_CNSLCKR_LOCKNSMPU_Msk /*!< Disable Non-Secure MPU registers writes by SW or debug agent */
  15400. /****************** Bit definition for SYSCFG_CSLCKR register ***************/
  15401. #define SYSCFG_CSLCKR_LOCKSVTAIRCR_Pos (0U)
  15402. #define SYSCFG_CSLCKR_LOCKSVTAIRCR_Msk (0x1UL << SYSCFG_CSLCKR_LOCKSVTAIRCR_Pos)/*!< 0x00000001 */
  15403. #define SYSCFG_CSLCKR_LOCKSVTAIRCR SYSCFG_CSLCKR_LOCKSVTAIRCR_Msk /*!< Disable changes to the secure vectror table address, handling of system faults */
  15404. #define SYSCFG_CSLCKR_LOCKSMPU_Pos (1U)
  15405. #define SYSCFG_CSLCKR_LOCKSMPU_Msk (0x1UL << SYSCFG_CSLCKR_LOCKSMPU_Pos) /*!< 0x00000002 */
  15406. #define SYSCFG_CSLCKR_LOCKSMPU SYSCFG_CSLCKR_LOCKSMPU_Msk /*!< Disable changes to the secure MPU registers writes by SW or debug agent */
  15407. #define SYSCFG_CSLCKR_LOCKSAU_Pos (2U)
  15408. #define SYSCFG_CSLCKR_LOCKSAU_Msk (0x1UL << SYSCFG_CSLCKR_LOCKSAU_Pos) /*!< 0x00000002 */
  15409. #define SYSCFG_CSLCKR_LOCKSAU SYSCFG_CSLCKR_LOCKSAU_Msk /*!< Disable changes to SAU registers */
  15410. /****************** Bit definition for SYSCFG_CFGR2 register ****************/
  15411. #define SYSCFG_CFGR2_CLL_Pos (0U)
  15412. #define SYSCFG_CFGR2_CLL_Msk (0x1UL << SYSCFG_CFGR2_CLL_Pos) /*!< 0x00000001 */
  15413. #define SYSCFG_CFGR2_CLL SYSCFG_CFGR2_CLL_Msk /*!< Core Lockup Lock */
  15414. #define SYSCFG_CFGR2_SPL_Pos (1U)
  15415. #define SYSCFG_CFGR2_SPL_Msk (0x1UL << SYSCFG_CFGR2_SPL_Pos) /*!< 0x00000002 */
  15416. #define SYSCFG_CFGR2_SPL SYSCFG_CFGR2_SPL_Msk /*!< SRAM Parity Lock*/
  15417. #define SYSCFG_CFGR2_PVDL_Pos (2U)
  15418. #define SYSCFG_CFGR2_PVDL_Msk (0x1UL << SYSCFG_CFGR2_PVDL_Pos) /*!< 0x00000004 */
  15419. #define SYSCFG_CFGR2_PVDL SYSCFG_CFGR2_PVDL_Msk /*!< PVD Lock */
  15420. #define SYSCFG_CFGR2_ECCL_Pos (3U)
  15421. #define SYSCFG_CFGR2_ECCL_Msk (0x1UL << SYSCFG_CFGR2_ECCL_Pos) /*!< 0x00000008 */
  15422. #define SYSCFG_CFGR2_ECCL SYSCFG_CFGR2_ECCL_Msk /*!< ECC Lock*/
  15423. #define SYSCFG_CFGR2_SPF_Pos (8U)
  15424. #define SYSCFG_CFGR2_SPF_Msk (0x1UL << SYSCFG_CFGR2_SPF_Pos) /*!< 0x00000100 */
  15425. #define SYSCFG_CFGR2_SPF SYSCFG_CFGR2_SPF_Msk /*!< SRAM Parity Flag */
  15426. /****************** Bit definition for SYSCFG_SCSR register *****************/
  15427. #define SYSCFG_SCSR_SRAM2ER_Pos (0U)
  15428. #define SYSCFG_SCSR_SRAM2ER_Msk (0x1UL << SYSCFG_SCSR_SRAM2ER_Pos) /*!< 0x00000001 */
  15429. #define SYSCFG_SCSR_SRAM2ER SYSCFG_SCSR_SRAM2ER_Msk /*!< SRAM2 Erase Request */
  15430. #define SYSCFG_SCSR_SRAM2BSY_Pos (1U)
  15431. #define SYSCFG_SCSR_SRAM2BSY_Msk (0x1UL << SYSCFG_SCSR_SRAM2BSY_Pos) /*!< 0x00000002 */
  15432. #define SYSCFG_SCSR_SRAM2BSY SYSCFG_SCSR_SRAM2BSY_Msk /*!< SRAM2 Erase Ongoing */
  15433. /****************** Bit definition for SYSCFG_SKR register *****************/
  15434. #define SYSCFG_SKR_KEY_Pos (0U)
  15435. #define SYSCFG_SKR_KEY_Msk (0xFFUL << SYSCFG_SKR_KEY_Pos) /*!< 0x000000FF */
  15436. #define SYSCFG_SKR_KEY SYSCFG_SKR_KEY_Msk /*!< SRAM2 write protection key for software erase */
  15437. /****************** Bit definition for SYSCFG_SWPR register *****************/
  15438. #define SYSCFG_SWPR_P0WP_Pos (0U)
  15439. #define SYSCFG_SWPR_P0WP_Msk (0x1UL << SYSCFG_SWPR_P0WP_Pos) /*!< 0x00000001 */
  15440. #define SYSCFG_SWPR_P0WP SYSCFG_SWPR_P0WP_Msk /*!< SRAM2 Write protection page 0 */
  15441. #define SYSCFG_SWPR_P1WP_Pos (1U)
  15442. #define SYSCFG_SWPR_P1WP_Msk (0x1UL << SYSCFG_SWPR_P1WP_Pos) /*!< 0x00000002 */
  15443. #define SYSCFG_SWPR_P1WP SYSCFG_SWPR_P1WP_Msk /*!< SRAM2 Write protection page 1 */
  15444. #define SYSCFG_SWPR_P2WP_Pos (2U)
  15445. #define SYSCFG_SWPR_P2WP_Msk (0x1UL << SYSCFG_SWPR_P2WP_Pos) /*!< 0x00000004 */
  15446. #define SYSCFG_SWPR_P2WP SYSCFG_SWPR_P2WP_Msk /*!< SRAM2 Write protection page 2 */
  15447. #define SYSCFG_SWPR_P3WP_Pos (3U)
  15448. #define SYSCFG_SWPR_P3WP_Msk (0x1UL << SYSCFG_SWPR_P3WP_Pos) /*!< 0x00000008 */
  15449. #define SYSCFG_SWPR_P3WP SYSCFG_SWPR_P3WP_Msk /*!< SRAM2 Write protection page 3 */
  15450. #define SYSCFG_SWPR_P4WP_Pos (4U)
  15451. #define SYSCFG_SWPR_P4WP_Msk (0x1UL << SYSCFG_SWPR_P4WP_Pos) /*!< 0x00000010 */
  15452. #define SYSCFG_SWPR_P4WP SYSCFG_SWPR_P4WP_Msk /*!< SRAM2 Write protection page 4 */
  15453. #define SYSCFG_SWPR_P5WP_Pos (5U)
  15454. #define SYSCFG_SWPR_P5WP_Msk (0x1UL << SYSCFG_SWPR_P5WP_Pos) /*!< 0x00000020 */
  15455. #define SYSCFG_SWPR_P5WP SYSCFG_SWPR_P5WP_Msk /*!< SRAM2 Write protection page 5 */
  15456. #define SYSCFG_SWPR_P6WP_Pos (6U)
  15457. #define SYSCFG_SWPR_P6WP_Msk (0x1UL << SYSCFG_SWPR_P6WP_Pos) /*!< 0x00000040 */
  15458. #define SYSCFG_SWPR_P6WP SYSCFG_SWPR_P6WP_Msk /*!< SRAM2 Write protection page 6 */
  15459. #define SYSCFG_SWPR_P7WP_Pos (7U)
  15460. #define SYSCFG_SWPR_P7WP_Msk (0x1UL << SYSCFG_SWPR_P7WP_Pos) /*!< 0x00000080 */
  15461. #define SYSCFG_SWPR_P7WP SYSCFG_SWPR_P7WP_Msk /*!< SRAM2 Write protection page 7 */
  15462. #define SYSCFG_SWPR_P8WP_Pos (8U)
  15463. #define SYSCFG_SWPR_P8WP_Msk (0x1UL << SYSCFG_SWPR_P8WP_Pos) /*!< 0x00000100 */
  15464. #define SYSCFG_SWPR_P8WP SYSCFG_SWPR_P8WP_Msk /*!< SRAM2 Write protection page 8 */
  15465. #define SYSCFG_SWPR_P9WP_Pos (9U)
  15466. #define SYSCFG_SWPR_P9WP_Msk (0x1UL << SYSCFG_SWPR_P9WP_Pos) /*!< 0x00000200 */
  15467. #define SYSCFG_SWPR_P9WP SYSCFG_SWPR_P9WP_Msk /*!< SRAM2 Write protection page 9 */
  15468. #define SYSCFG_SWPR_P10WP_Pos (10U)
  15469. #define SYSCFG_SWPR_P10WP_Msk (0x1UL << SYSCFG_SWPR_P10WP_Pos) /*!< 0x00000400 */
  15470. #define SYSCFG_SWPR_P10WP SYSCFG_SWPR_P10WP_Msk /*!< SRAM2 Write protection page 10*/
  15471. #define SYSCFG_SWPR_P11WP_Pos (11U)
  15472. #define SYSCFG_SWPR_P11WP_Msk (0x1UL << SYSCFG_SWPR_P11WP_Pos) /*!< 0x00000800 */
  15473. #define SYSCFG_SWPR_P11WP SYSCFG_SWPR_P11WP_Msk /*!< SRAM2 Write protection page 11*/
  15474. #define SYSCFG_SWPR_P12WP_Pos (12U)
  15475. #define SYSCFG_SWPR_P12WP_Msk (0x1UL << SYSCFG_SWPR_P12WP_Pos) /*!< 0x00001000 */
  15476. #define SYSCFG_SWPR_P12WP SYSCFG_SWPR_P12WP_Msk /*!< SRAM2 Write protection page 12*/
  15477. #define SYSCFG_SWPR_P13WP_Pos (13U)
  15478. #define SYSCFG_SWPR_P13WP_Msk (0x1UL << SYSCFG_SWPR_P13WP_Pos) /*!< 0x00002000 */
  15479. #define SYSCFG_SWPR_P13WP SYSCFG_SWPR_P13WP_Msk /*!< SRAM2 Write protection page 13*/
  15480. #define SYSCFG_SWPR_P14WP_Pos (14U)
  15481. #define SYSCFG_SWPR_P14WP_Msk (0x1UL << SYSCFG_SWPR_P14WP_Pos) /*!< 0x00004000 */
  15482. #define SYSCFG_SWPR_P14WP SYSCFG_SWPR_P14WP_Msk /*!< SRAM2 Write protection page 14*/
  15483. #define SYSCFG_SWPR_P15WP_Pos (15U)
  15484. #define SYSCFG_SWPR_P15WP_Msk (0x1UL << SYSCFG_SWPR_P15WP_Pos) /*!< 0x00008000 */
  15485. #define SYSCFG_SWPR_P15WP SYSCFG_SWPR_P15WP_Msk /*!< SRAM2 Write protection page 15*/
  15486. #define SYSCFG_SWPR_P16WP_Pos (16U)
  15487. #define SYSCFG_SWPR_P16WP_Msk (0x1UL << SYSCFG_SWPR_P16WP_Pos) /*!< 0x00010000 */
  15488. #define SYSCFG_SWPR_P16WP SYSCFG_SWPR_P16WP_Msk /*!< SRAM2 Write protection page 16*/
  15489. #define SYSCFG_SWPR_P17WP_Pos (17U)
  15490. #define SYSCFG_SWPR_P17WP_Msk (0x1UL << SYSCFG_SWPR_P17WP_Pos) /*!< 0x00020000 */
  15491. #define SYSCFG_SWPR_P17WP SYSCFG_SWPR_P17WP_Msk /*!< SRAM2 Write protection page 17*/
  15492. #define SYSCFG_SWPR_P18WP_Pos (18U)
  15493. #define SYSCFG_SWPR_P18WP_Msk (0x1UL << SYSCFG_SWPR_P18WP_Pos) /*!< 0x00040000 */
  15494. #define SYSCFG_SWPR_P18WP SYSCFG_SWPR_P18WP_Msk /*!< SRAM2 Write protection page 18*/
  15495. #define SYSCFG_SWPR_P19WP_Pos (19U)
  15496. #define SYSCFG_SWPR_P19WP_Msk (0x1UL << SYSCFG_SWPR_P19WP_Pos) /*!< 0x00080000 */
  15497. #define SYSCFG_SWPR_P19WP SYSCFG_SWPR_P19WP_Msk /*!< SRAM2 Write protection page 19*/
  15498. #define SYSCFG_SWPR_P20WP_Pos (20U)
  15499. #define SYSCFG_SWPR_P20WP_Msk (0x1UL << SYSCFG_SWPR_P20WP_Pos) /*!< 0x00100000 */
  15500. #define SYSCFG_SWPR_P20WP SYSCFG_SWPR_P20WP_Msk /*!< SRAM2 Write protection page 20*/
  15501. #define SYSCFG_SWPR_P21WP_Pos (21U)
  15502. #define SYSCFG_SWPR_P21WP_Msk (0x1UL << SYSCFG_SWPR_P21WP_Pos) /*!< 0x00200000 */
  15503. #define SYSCFG_SWPR_P21WP SYSCFG_SWPR_P21WP_Msk /*!< SRAM2 Write protection page 21*/
  15504. #define SYSCFG_SWPR_P22WP_Pos (22U)
  15505. #define SYSCFG_SWPR_P22WP_Msk (0x1UL << SYSCFG_SWPR_P22WP_Pos) /*!< 0x00400000 */
  15506. #define SYSCFG_SWPR_P22WP SYSCFG_SWPR_P22WP_Msk /*!< SRAM2 Write protection page 22*/
  15507. #define SYSCFG_SWPR_P23WP_Pos (23U)
  15508. #define SYSCFG_SWPR_P23WP_Msk (0x1UL << SYSCFG_SWPR_P23WP_Pos) /*!< 0x00800000 */
  15509. #define SYSCFG_SWPR_P23WP SYSCFG_SWPR_P23WP_Msk /*!< SRAM2 Write protection page 23*/
  15510. #define SYSCFG_SWPR_P24WP_Pos (24U)
  15511. #define SYSCFG_SWPR_P24WP_Msk (0x1UL << SYSCFG_SWPR_P24WP_Pos) /*!< 0x01000000 */
  15512. #define SYSCFG_SWPR_P24WP SYSCFG_SWPR_P24WP_Msk /*!< SRAM2 Write protection page 24*/
  15513. #define SYSCFG_SWPR_P25WP_Pos (25U)
  15514. #define SYSCFG_SWPR_P25WP_Msk (0x1UL << SYSCFG_SWPR_P25WP_Pos) /*!< 0x02000000 */
  15515. #define SYSCFG_SWPR_P25WP SYSCFG_SWPR_P25WP_Msk /*!< SRAM2 Write protection page 25*/
  15516. #define SYSCFG_SWPR_P26WP_Pos (26U)
  15517. #define SYSCFG_SWPR_P26WP_Msk (0x1UL << SYSCFG_SWPR_P26WP_Pos) /*!< 0x04000000 */
  15518. #define SYSCFG_SWPR_P26WP SYSCFG_SWPR_P26WP_Msk /*!< SRAM2 Write protection page 26*/
  15519. #define SYSCFG_SWPR_P27WP_Pos (27U)
  15520. #define SYSCFG_SWPR_P27WP_Msk (0x1UL << SYSCFG_SWPR_P27WP_Pos) /*!< 0x08000000 */
  15521. #define SYSCFG_SWPR_P27WP SYSCFG_SWPR_P27WP_Msk /*!< SRAM2 Write protection page 27*/
  15522. #define SYSCFG_SWPR_P28WP_Pos (28U)
  15523. #define SYSCFG_SWPR_P28WP_Msk (0x1UL << SYSCFG_SWPR_P28WP_Pos) /*!< 0x10000000 */
  15524. #define SYSCFG_SWPR_P28WP SYSCFG_SWPR_P28WP_Msk /*!< SRAM2 Write protection page 28*/
  15525. #define SYSCFG_SWPR_P29WP_Pos (29U)
  15526. #define SYSCFG_SWPR_P29WP_Msk (0x1UL << SYSCFG_SWPR_P29WP_Pos) /*!< 0x20000000 */
  15527. #define SYSCFG_SWPR_P29WP SYSCFG_SWPR_P29WP_Msk /*!< SRAM2 Write protection page 29*/
  15528. #define SYSCFG_SWPR_P30WP_Pos (30U)
  15529. #define SYSCFG_SWPR_P30WP_Msk (0x1UL << SYSCFG_SWPR_P30WP_Pos) /*!< 0x40000000 */
  15530. #define SYSCFG_SWPR_P30WP SYSCFG_SWPR_P30WP_Msk /*!< SRAM2 Write protection page 30*/
  15531. #define SYSCFG_SWPR_P31WP_Pos (31U)
  15532. #define SYSCFG_SWPR_P31WP_Msk (0x1UL << SYSCFG_SWPR_P31WP_Pos) /*!< 0x80000000 */
  15533. #define SYSCFG_SWPR_P31WP SYSCFG_SWPR_P31WP_Msk /*!< SRAM2 Write protection page 31*/
  15534. /****************** Bit definition for SYSCFG_SWPR2 register ****************/
  15535. #define SYSCFG_SWPR2_P32WP_Pos (0U)
  15536. #define SYSCFG_SWPR2_P32WP_Msk (0x1UL << SYSCFG_SWPR2_P32WP_Pos) /*!< 0x00000001 */
  15537. #define SYSCFG_SWPR2_P32WP SYSCFG_SWPR2_P32WP_Msk /*!< SRAM2 Write protection page 32*/
  15538. #define SYSCFG_SWPR2_P33WP_Pos (1U)
  15539. #define SYSCFG_SWPR2_P33WP_Msk (0x1UL << SYSCFG_SWPR2_P33WP_Pos) /*!< 0x00000002 */
  15540. #define SYSCFG_SWPR2_P33WP SYSCFG_SWPR2_P33WP_Msk /*!< SRAM2 Write protection page 33*/
  15541. #define SYSCFG_SWPR2_P34WP_Pos (2U)
  15542. #define SYSCFG_SWPR2_P34WP_Msk (0x1UL << SYSCFG_SWPR2_P34WP_Pos) /*!< 0x00000004 */
  15543. #define SYSCFG_SWPR2_P34WP SYSCFG_SWPR2_P34WP_Msk /*!< SRAM2 Write protection page 34*/
  15544. #define SYSCFG_SWPR2_P35WP_Pos (3U)
  15545. #define SYSCFG_SWPR2_P35WP_Msk (0x1UL << SYSCFG_SWPR2_P35WP_Pos) /*!< 0x00000008 */
  15546. #define SYSCFG_SWPR2_P35WP SYSCFG_SWPR2_P35WP_Msk /*!< SRAM2 Write protection page 35*/
  15547. #define SYSCFG_SWPR2_P36WP_Pos (4U)
  15548. #define SYSCFG_SWPR2_P36WP_Msk (0x1UL << SYSCFG_SWPR2_P36WP_Pos) /*!< 0x00000010 */
  15549. #define SYSCFG_SWPR2_P36WP SYSCFG_SWPR2_P36WP_Msk /*!< SRAM2 Write protection page 36*/
  15550. #define SYSCFG_SWPR2_P37WP_Pos (5U)
  15551. #define SYSCFG_SWPR2_P37WP_Msk (0x1UL << SYSCFG_SWPR2_P37WP_Pos) /*!< 0x00000020 */
  15552. #define SYSCFG_SWPR2_P37WP SYSCFG_SWPR2_P37WP_Msk /*!< SRAM2 Write protection page 37*/
  15553. #define SYSCFG_SWPR2_P38WP_Pos (6U)
  15554. #define SYSCFG_SWPR2_P38WP_Msk (0x1UL << SYSCFG_SWPR2_P38WP_Pos) /*!< 0x00000040 */
  15555. #define SYSCFG_SWPR2_P38WP SYSCFG_SWPR2_P38WP_Msk /*!< SRAM2 Write protection page 38*/
  15556. #define SYSCFG_SWPR2_P39WP_Pos (7U)
  15557. #define SYSCFG_SWPR2_P39WP_Msk (0x1UL << SYSCFG_SWPR2_P39WP_Pos) /*!< 0x00000080 */
  15558. #define SYSCFG_SWPR2_P39WP SYSCFG_SWPR2_P39WP_Msk /*!< SRAM2 Write protection page 39*/
  15559. #define SYSCFG_SWPR2_P40WP_Pos (8U)
  15560. #define SYSCFG_SWPR2_P40WP_Msk (0x1UL << SYSCFG_SWPR2_P40WP_Pos) /*!< 0x00000100 */
  15561. #define SYSCFG_SWPR2_P40WP SYSCFG_SWPR2_P40WP_Msk /*!< SRAM2 Write protection page 40*/
  15562. #define SYSCFG_SWPR2_P41WP_Pos (9U)
  15563. #define SYSCFG_SWPR2_P41WP_Msk (0x1UL << SYSCFG_SWPR2_P41WP_Pos) /*!< 0x00000200 */
  15564. #define SYSCFG_SWPR2_P41WP SYSCFG_SWPR2_P41WP_Msk /*!< SRAM2 Write protection page 41*/
  15565. #define SYSCFG_SWPR2_P42WP_Pos (10U)
  15566. #define SYSCFG_SWPR2_P42WP_Msk (0x1UL << SYSCFG_SWPR2_P42WP_Pos) /*!< 0x00000400 */
  15567. #define SYSCFG_SWPR2_P42WP SYSCFG_SWPR2_P42WP_Msk /*!< SRAM2 Write protection page 42*/
  15568. #define SYSCFG_SWPR2_P43WP_Pos (11U)
  15569. #define SYSCFG_SWPR2_P43WP_Msk (0x1UL << SYSCFG_SWPR2_P43WP_Pos) /*!< 0x00000800 */
  15570. #define SYSCFG_SWPR2_P43WP SYSCFG_SWPR2_P43WP_Msk /*!< SRAM2 Write protection page 43*/
  15571. #define SYSCFG_SWPR2_P44WP_Pos (12U)
  15572. #define SYSCFG_SWPR2_P44WP_Msk (0x1UL << SYSCFG_SWPR2_P44WP_Pos) /*!< 0x00001000 */
  15573. #define SYSCFG_SWPR2_P44WP SYSCFG_SWPR2_P44WP_Msk /*!< SRAM2 Write protection page 44*/
  15574. #define SYSCFG_SWPR2_P45WP_Pos (13U)
  15575. #define SYSCFG_SWPR2_P45WP_Msk (0x1UL << SYSCFG_SWPR2_P45WP_Pos) /*!< 0x00002000 */
  15576. #define SYSCFG_SWPR2_P45WP SYSCFG_SWPR2_P45WP_Msk /*!< SRAM2 Write protection page 45*/
  15577. #define SYSCFG_SWPR2_P46WP_Pos (14U)
  15578. #define SYSCFG_SWPR2_P46WP_Msk (0x1UL << SYSCFG_SWPR2_P46WP_Pos) /*!< 0x00004000 */
  15579. #define SYSCFG_SWPR2_P46WP SYSCFG_SWPR2_P46WP_Msk /*!< SRAM2 Write protection page 46*/
  15580. #define SYSCFG_SWPR2_P47WP_Pos (15U)
  15581. #define SYSCFG_SWPR2_P47WP_Msk (0x1UL << SYSCFG_SWPR2_P47WP_Pos) /*!< 0x00008000 */
  15582. #define SYSCFG_SWPR2_P47WP SYSCFG_SWPR2_P47WP_Msk /*!< SRAM2 Write protection page 47*/
  15583. #define SYSCFG_SWPR2_P48WP_Pos (16U)
  15584. #define SYSCFG_SWPR2_P48WP_Msk (0x1UL << SYSCFG_SWPR2_P48WP_Pos) /*!< 0x00010000 */
  15585. #define SYSCFG_SWPR2_P48WP SYSCFG_SWPR2_P48WP_Msk /*!< SRAM2 Write protection page 48*/
  15586. #define SYSCFG_SWPR2_P49WP_Pos (17U)
  15587. #define SYSCFG_SWPR2_P49WP_Msk (0x1UL << SYSCFG_SWPR2_P49WP_Pos) /*!< 0x00020000 */
  15588. #define SYSCFG_SWPR2_P49WP SYSCFG_SWPR2_P49WP_Msk /*!< SRAM2 Write protection page 49*/
  15589. #define SYSCFG_SWPR2_P50WP_Pos (18U)
  15590. #define SYSCFG_SWPR2_P50WP_Msk (0x1UL << SYSCFG_SWPR2_P50WP_Pos) /*!< 0x00040000 */
  15591. #define SYSCFG_SWPR2_P50WP SYSCFG_SWPR2_P50WP_Msk /*!< SRAM2 Write protection page 50*/
  15592. #define SYSCFG_SWPR2_P51WP_Pos (19U)
  15593. #define SYSCFG_SWPR2_P51WP_Msk (0x1UL << SYSCFG_SWPR2_P51WP_Pos) /*!< 0x00080000 */
  15594. #define SYSCFG_SWPR2_P51WP SYSCFG_SWPR2_P51WP_Msk /*!< SRAM2 Write protection page 51*/
  15595. #define SYSCFG_SWPR2_P52WP_Pos (20U)
  15596. #define SYSCFG_SWPR2_P52WP_Msk (0x1UL << SYSCFG_SWPR2_P52WP_Pos) /*!< 0x00100000 */
  15597. #define SYSCFG_SWPR2_P52WP SYSCFG_SWPR2_P52WP_Msk /*!< SRAM2 Write protection page 52*/
  15598. #define SYSCFG_SWPR2_P53WP_Pos (21U)
  15599. #define SYSCFG_SWPR2_P53WP_Msk (0x1UL << SYSCFG_SWPR2_P53WP_Pos) /*!< 0x00200000 */
  15600. #define SYSCFG_SWPR2_P53WP SYSCFG_SWPR2_P53WP_Msk /*!< SRAM2 Write protection page 53*/
  15601. #define SYSCFG_SWPR2_P54WP_Pos (22U)
  15602. #define SYSCFG_SWPR2_P54WP_Msk (0x1UL << SYSCFG_SWPR2_P54WP_Pos) /*!< 0x00400000 */
  15603. #define SYSCFG_SWPR2_P54WP SYSCFG_SWPR2_P54WP_Msk /*!< SRAM2 Write protection page 54*/
  15604. #define SYSCFG_SWPR2_P55WP_Pos (23U)
  15605. #define SYSCFG_SWPR2_P55WP_Msk (0x1UL << SYSCFG_SWPR2_P55WP_Pos) /*!< 0x00800000 */
  15606. #define SYSCFG_SWPR2_P55WP SYSCFG_SWPR2_P55WP_Msk /*!< SRAM2 Write protection page 55*/
  15607. #define SYSCFG_SWPR2_P56WP_Pos (24U)
  15608. #define SYSCFG_SWPR2_P56WP_Msk (0x1UL << SYSCFG_SWPR2_P56WP_Pos) /*!< 0x01000000 */
  15609. #define SYSCFG_SWPR2_P56WP SYSCFG_SWPR2_P56WP_Msk /*!< SRAM2 Write protection page 56*/
  15610. #define SYSCFG_SWPR2_P57WP_Pos (25U)
  15611. #define SYSCFG_SWPR2_P57WP_Msk (0x1UL << SYSCFG_SWPR2_P57WP_Pos) /*!< 0x02000000 */
  15612. #define SYSCFG_SWPR2_P57WP SYSCFG_SWPR2_P57WP_Msk /*!< SRAM2 Write protection page 57*/
  15613. #define SYSCFG_SWPR2_P58WP_Pos (26U)
  15614. #define SYSCFG_SWPR2_P58WP_Msk (0x1UL << SYSCFG_SWPR2_P58WP_Pos) /*!< 0x04000000 */
  15615. #define SYSCFG_SWPR2_P58WP SYSCFG_SWPR2_P58WP_Msk /*!< SRAM2 Write protection page 58*/
  15616. #define SYSCFG_SWPR2_P59WP_Pos (27U)
  15617. #define SYSCFG_SWPR2_P59WP_Msk (0x1UL << SYSCFG_SWPR2_P59WP_Pos) /*!< 0x08000000 */
  15618. #define SYSCFG_SWPR2_P59WP SYSCFG_SWPR2_P59WP_Msk /*!< SRAM2 Write protection page 59*/
  15619. #define SYSCFG_SWPR2_P60WP_Pos (28U)
  15620. #define SYSCFG_SWPR2_P60WP_Msk (0x1UL << SYSCFG_SWPR2_P60WP_Pos) /*!< 0x10000000 */
  15621. #define SYSCFG_SWPR2_P60WP SYSCFG_SWPR2_P60WP_Msk /*!< SRAM2 Write protection page 60*/
  15622. #define SYSCFG_SWPR2_P61WP_Pos (29U)
  15623. #define SYSCFG_SWPR2_P61WP_Msk (0x1UL << SYSCFG_SWPR2_P61WP_Pos) /*!< 0x20000000 */
  15624. #define SYSCFG_SWPR2_P61WP SYSCFG_SWPR2_P61WP_Msk /*!< SRAM2 Write protection page 61*/
  15625. #define SYSCFG_SWPR2_P62WP_Pos (30U)
  15626. #define SYSCFG_SWPR2_P62WP_Msk (0x1UL << SYSCFG_SWPR2_P62WP_Pos) /*!< 0x40000000 */
  15627. #define SYSCFG_SWPR2_P62WP SYSCFG_SWPR2_P62WP_Msk /*!< SRAM2 Write protection page 62*/
  15628. #define SYSCFG_SWPR2_P63WP_Pos (31U)
  15629. #define SYSCFG_SWPR2_P63WP_Msk (0x1UL << SYSCFG_SWPR2_P63WP_Pos) /*!< 0x80000000 */
  15630. #define SYSCFG_SWPR2_P63WP SYSCFG_SWPR2_P63WP_Msk /*!< SRAM2 Write protection page 63*/
  15631. /****************** Bit definition for SYSCFG_RSSCMDR register **************/
  15632. #define SYSCFG_RSSCMDR_RSSCMD_Pos (0U)
  15633. #if defined(USE_CUT2_0)
  15634. #define SYSCFG_RSSCMDR_RSSCMD_Msk (0xFFFFUL << SYSCFG_RSSCMDR_RSSCMD_Pos) /*!< 0x0000FFFF */
  15635. #else
  15636. #define SYSCFG_RSSCMDR_RSSCMD_Msk (0xFFUL << SYSCFG_RSSCMDR_RSSCMD_Pos) /*!< 0x000000FF */
  15637. #endif
  15638. #define SYSCFG_RSSCMDR_RSSCMD SYSCFG_RSSCMDR_RSSCMD_Msk /*!< RSS commands */
  15639. /*****************************************************************************/
  15640. /* */
  15641. /* Global TrustZone Control */
  15642. /* */
  15643. /*****************************************************************************/
  15644. /******************* Bits definition for GTZC_TZSC_CR register ******************/
  15645. #define GTZC_TZSC_CR_LCK_Pos (0U)
  15646. #define GTZC_TZSC_CR_LCK_Msk (0x01UL << GTZC_TZSC_CR_LCK_Pos) /*!< 0x00000001 */
  15647. /******************* Bits definition for GTZC_TZSC_MPCWM1_NSWMR1 register *******/
  15648. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1STRT_Pos (0U)
  15649. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM1_NSWMR1_NSWM1STRT_Pos)
  15650. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1LGTH_Pos (16U)
  15651. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM1_NSWMR1_NSWM1LGTH_Pos)
  15652. /******************* Bits definition for GTZC_TZSC_MPCWM1_NSWMR2 register *******/
  15653. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2STRT_Pos (0U)
  15654. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM1_NSWMR2_NSWM2STRT_Pos)
  15655. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2LGTH_Pos (16U)
  15656. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM1_NSWMR2_NSWM2LGTH_Pos)
  15657. /******************* Bits definition for GTZC_TZSC_MPCWM2_NSWMR1 register *******/
  15658. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1STRT_Pos (0U)
  15659. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM2_NSWMR1_NSWM1STRT_Pos)
  15660. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1LGTH_Pos (16U)
  15661. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM2_NSWMR1_NSWM1LGTH_Pos)
  15662. /******************* Bits definition for GTZC_TZSC_MPCWM2_NSWMR2 register *******/
  15663. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2STRT_Pos (0U)
  15664. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM2_NSWMR2_NSWM2STRT_Pos)
  15665. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2LGTH_Pos (16U)
  15666. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM2_NSWMR2_NSWM2LGTH_Pos)
  15667. /******************* Bits definition for GTZC_TZSC_MPCWM3_NSWMR1 register *******/
  15668. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1STRT_Pos (0U)
  15669. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM3_NSWMR1_NSWM1STRT_Pos)
  15670. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1LGTH_Pos (16U)
  15671. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM3_NSWMR1_NSWM1LGTH_Pos)
  15672. /******* Bits definition for GTZC_TZSC_SECCFGRx/_PRIVCFGRx registers *****/
  15673. /******* Bits definition for GTZC_TZIC_IERx/_SRx/_IFCRx registers ********/
  15674. /******************* Bits definition for registers x=1 ***************/
  15675. #define GTZC_CFGR1_SPI1_Pos (31U)
  15676. #define GTZC_CFGR1_SPI1_Msk ( 0x01UL << GTZC_CFGR1_SPI1_Pos )
  15677. #define GTZC_CFGR1_TIM1_Pos (30U)
  15678. #define GTZC_CFGR1_TIM1_Msk ( 0x01UL << GTZC_CFGR1_TIM1_Pos )
  15679. #define GTZC_CFGR1_COMP_Pos (29U)
  15680. #define GTZC_CFGR1_COMP_Msk ( 0x01UL << GTZC_CFGR1_COMP_Pos )
  15681. #define GTZC_CFGR1_VREFBUF_Pos (28U)
  15682. #define GTZC_CFGR1_VREFBUF_Msk ( 0x01UL << GTZC_CFGR1_VREFBUF_Pos )
  15683. #define GTZC_CFGR1_UCPD1_Pos (27U)
  15684. #define GTZC_CFGR1_UCPD1_Msk ( 0x01UL << GTZC_CFGR1_UCPD1_Pos )
  15685. #define GTZC_CFGR1_USBFS_Pos (26U)
  15686. #define GTZC_CFGR1_USBFS_Msk ( 0x01UL << GTZC_CFGR1_USBFS_Pos )
  15687. #define GTZC_CFGR1_FDCAN1_Pos (25U)
  15688. #define GTZC_CFGR1_FDCAN1_Msk ( 0x01UL << GTZC_CFGR1_FDCAN1_Pos )
  15689. #define GTZC_CFGR1_LPTIM3_Pos (24U)
  15690. #define GTZC_CFGR1_LPTIM3_Msk ( 0x01UL << GTZC_CFGR1_LPTIM3_Pos )
  15691. #define GTZC_CFGR1_LPTIM2_Pos (23U)
  15692. #define GTZC_CFGR1_LPTIM2_Msk ( 0x01UL << GTZC_CFGR1_LPTIM2_Pos )
  15693. #define GTZC_CFGR1_I2C4_Pos (22U)
  15694. #define GTZC_CFGR1_I2C4_Msk ( 0x01UL << GTZC_CFGR1_I2C4_Pos )
  15695. #define GTZC_CFGR1_LPUART1_Pos (21U)
  15696. #define GTZC_CFGR1_LPUART1_Msk ( 0x01UL << GTZC_CFGR1_LPUART1_Pos )
  15697. #define GTZC_CFGR1_LPTIM1_Pos (20U)
  15698. #define GTZC_CFGR1_LPTIM1_Msk ( 0x01UL << GTZC_CFGR1_LPTIM1_Pos )
  15699. #define GTZC_CFGR1_OPAMP_Pos (19U)
  15700. #define GTZC_CFGR1_OPAMP_Msk ( 0x01UL << GTZC_CFGR1_OPAMP_Pos )
  15701. #define GTZC_CFGR1_DAC1_Pos (18U)
  15702. #define GTZC_CFGR1_DAC1_Msk ( 0x01UL << GTZC_CFGR1_DAC1_Pos )
  15703. #define GTZC_CFGR1_CRS_Pos (17U)
  15704. #define GTZC_CFGR1_CRS_Msk ( 0x01UL << GTZC_CFGR1_CRS_Pos )
  15705. #define GTZC_CFGR1_I2C3_Pos (16U)
  15706. #define GTZC_CFGR1_I2C3_Msk ( 0x01UL << GTZC_CFGR1_I2C3_Pos )
  15707. #define GTZC_CFGR1_I2C2_Pos (15U)
  15708. #define GTZC_CFGR1_I2C2_Msk ( 0x01UL << GTZC_CFGR1_I2C2_Pos )
  15709. #define GTZC_CFGR1_I2C1_Pos (14U)
  15710. #define GTZC_CFGR1_I2C1_Msk ( 0x01UL << GTZC_CFGR1_I2C1_Pos )
  15711. #define GTZC_CFGR1_UART5_Pos (13U)
  15712. #define GTZC_CFGR1_UART5_Msk ( 0x01UL << GTZC_CFGR1_UART5_Pos )
  15713. #define GTZC_CFGR1_UART4_Pos (12U)
  15714. #define GTZC_CFGR1_UART4_Msk ( 0x01UL << GTZC_CFGR1_UART4_Pos )
  15715. #define GTZC_CFGR1_USART3_Pos (11U)
  15716. #define GTZC_CFGR1_USART3_Msk ( 0x01UL << GTZC_CFGR1_USART3_Pos )
  15717. #define GTZC_CFGR1_USART2_Pos (10U)
  15718. #define GTZC_CFGR1_USART2_Msk ( 0x01UL << GTZC_CFGR1_USART2_Pos )
  15719. #define GTZC_CFGR1_SPI3_Pos (9U)
  15720. #define GTZC_CFGR1_SPI3_Msk ( 0x01UL << GTZC_CFGR1_SPI3_Pos )
  15721. #define GTZC_CFGR1_SPI2_Pos (8U)
  15722. #define GTZC_CFGR1_SPI2_Msk ( 0x01UL << GTZC_CFGR1_SPI2_Pos )
  15723. #define GTZC_CFGR1_IWDG_Pos (7U)
  15724. #define GTZC_CFGR1_IWDG_Msk ( 0x01UL << GTZC_CFGR1_IWDG_Pos )
  15725. #define GTZC_CFGR1_WWDG_Pos (6U)
  15726. #define GTZC_CFGR1_WWDG_Msk ( 0x01UL << GTZC_CFGR1_WWDG_Pos )
  15727. #define GTZC_CFGR1_TIM7_Pos (5U)
  15728. #define GTZC_CFGR1_TIM7_Msk ( 0x01UL << GTZC_CFGR1_TIM7_Pos )
  15729. #define GTZC_CFGR1_TIM6_Pos (4U)
  15730. #define GTZC_CFGR1_TIM6_Msk ( 0x01UL << GTZC_CFGR1_TIM6_Pos )
  15731. #define GTZC_CFGR1_TIM5_Pos (3U)
  15732. #define GTZC_CFGR1_TIM5_Msk ( 0x01UL << GTZC_CFGR1_TIM5_Pos )
  15733. #define GTZC_CFGR1_TIM4_Pos (2U)
  15734. #define GTZC_CFGR1_TIM4_Msk ( 0x01UL << GTZC_CFGR1_TIM4_Pos )
  15735. #define GTZC_CFGR1_TIM3_Pos (1U)
  15736. #define GTZC_CFGR1_TIM3_Msk ( 0x01UL << GTZC_CFGR1_TIM3_Pos )
  15737. #define GTZC_CFGR1_TIM2_Pos (0U)
  15738. #define GTZC_CFGR1_TIM2_Msk ( 0x01UL << GTZC_CFGR1_TIM2_Pos )
  15739. /******************* Bits definition for registers x=2 ***************/
  15740. #define GTZC_CFGR2_OTFDEC1_Pos (29U)
  15741. #define GTZC_CFGR2_OTFDEC1_Msk ( 0x01UL << GTZC_CFGR2_OTFDEC1_Pos )
  15742. #define GTZC_CFGR2_EXTI_Pos (28U)
  15743. #define GTZC_CFGR2_EXTI_Msk ( 0x01UL << GTZC_CFGR2_EXTI_Pos )
  15744. #define GTZC_CFGR2_FLASH_REG_Pos (27U)
  15745. #define GTZC_CFGR2_FLASH_REG_Msk ( 0x01UL << GTZC_CFGR2_FLASH_REG_Pos )
  15746. #define GTZC_CFGR2_FLASH_Pos (26U)
  15747. #define GTZC_CFGR2_FLASH_Msk ( 0x01UL << GTZC_CFGR2_FLASH_Pos )
  15748. #define GTZC_CFGR2_RCC_Pos (25U)
  15749. #define GTZC_CFGR2_RCC_Msk ( 0x01UL << GTZC_CFGR2_RCC_Pos )
  15750. #define GTZC_CFGR2_DMAMUX1_Pos (24U)
  15751. #define GTZC_CFGR2_DMAMUX1_Msk ( 0x01UL << GTZC_CFGR2_DMAMUX1_Pos )
  15752. #define GTZC_CFGR2_DMA2_Pos (23U)
  15753. #define GTZC_CFGR2_DMA2_Msk ( 0x01UL << GTZC_CFGR2_DMA2_Pos )
  15754. #define GTZC_CFGR2_DMA1_Pos (22U)
  15755. #define GTZC_CFGR2_DMA1_Msk ( 0x01UL << GTZC_CFGR2_DMA1_Pos )
  15756. #define GTZC_CFGR2_SYSCFG_Pos (21U)
  15757. #define GTZC_CFGR2_SYSCFG_Msk ( 0x01UL << GTZC_CFGR2_SYSCFG_Pos )
  15758. #define GTZC_CFGR2_PWR_Pos (20U)
  15759. #define GTZC_CFGR2_PWR_Msk ( 0x01UL << GTZC_CFGR2_PWR_Pos )
  15760. #define GTZC_CFGR2_RTC_Pos (19U)
  15761. #define GTZC_CFGR2_RTC_Msk ( 0x01UL << GTZC_CFGR2_RTC_Pos )
  15762. #define GTZC_CFGR2_OCTOSPI1_REG_Pos (18U)
  15763. #define GTZC_CFGR2_OCTOSPI1_REG_Msk ( 0x01UL << GTZC_CFGR2_OCTOSPI1_REG_Pos )
  15764. #define GTZC_CFGR2_FMC_REG_Pos (17U)
  15765. #define GTZC_CFGR2_FMC_REG_Msk ( 0x01UL << GTZC_CFGR2_FMC_REG_Pos )
  15766. #define GTZC_CFGR2_SDMMC1_Pos (16U)
  15767. #define GTZC_CFGR2_SDMMC1_Msk ( 0x01UL << GTZC_CFGR2_SDMMC1_Pos )
  15768. #define GTZC_CFGR2_PKA_Pos (15U)
  15769. #define GTZC_CFGR2_PKA_Msk ( 0x01UL << GTZC_CFGR2_PKA_Pos )
  15770. #define GTZC_CFGR2_RNG_Pos (14U)
  15771. #define GTZC_CFGR2_RNG_Msk ( 0x01UL << GTZC_CFGR2_RNG_Pos )
  15772. #define GTZC_CFGR2_HASH_Pos (13U)
  15773. #define GTZC_CFGR2_HASH_Msk ( 0x01UL << GTZC_CFGR2_HASH_Pos )
  15774. #define GTZC_CFGR2_AES_Pos (12U)
  15775. #define GTZC_CFGR2_AES_Msk ( 0x01UL << GTZC_CFGR2_AES_Pos )
  15776. #define GTZC_CFGR2_ADC_Pos (11U)
  15777. #define GTZC_CFGR2_ADC_Msk ( 0x01UL << GTZC_CFGR2_ADC_Pos )
  15778. #define GTZC_CFGR2_ICACHE_REG_Pos (10U)
  15779. #define GTZC_CFGR2_ICACHE_REG_Msk ( 0x01UL << GTZC_CFGR2_ICACHE_REG_Pos )
  15780. #define GTZC_CFGR2_TSC_Pos (9U)
  15781. #define GTZC_CFGR2_TSC_Msk ( 0x01UL << GTZC_CFGR2_TSC_Pos )
  15782. #define GTZC_CFGR2_CRC_Pos (8U)
  15783. #define GTZC_CFGR2_CRC_Msk ( 0x01UL << GTZC_CFGR2_CRC_Pos )
  15784. #define GTZC_CFGR2_DFSDM1_Pos (7U)
  15785. #define GTZC_CFGR2_DFSDM1_Msk ( 0x01UL << GTZC_CFGR2_DFSDM1_Pos )
  15786. #define GTZC_CFGR2_SAI2_Pos (6U)
  15787. #define GTZC_CFGR2_SAI2_Msk ( 0x01UL << GTZC_CFGR2_SAI2_Pos )
  15788. #define GTZC_CFGR2_SAI1_Pos (5U)
  15789. #define GTZC_CFGR2_SAI1_Msk ( 0x01UL << GTZC_CFGR2_SAI1_Pos )
  15790. #define GTZC_CFGR2_TIM17_Pos (4U)
  15791. #define GTZC_CFGR2_TIM17_Msk ( 0x01UL << GTZC_CFGR2_TIM17_Pos )
  15792. #define GTZC_CFGR2_TIM16_Pos (3U)
  15793. #define GTZC_CFGR2_TIM16_Msk ( 0x01UL << GTZC_CFGR2_TIM16_Pos )
  15794. #define GTZC_CFGR2_TIM15_Pos (2U)
  15795. #define GTZC_CFGR2_TIM15_Msk ( 0x01UL << GTZC_CFGR2_TIM15_Pos )
  15796. #define GTZC_CFGR2_USART1_Pos (1U)
  15797. #define GTZC_CFGR2_USART1_Msk ( 0x01UL << GTZC_CFGR2_USART1_Pos )
  15798. #define GTZC_CFGR2_TIM8_Pos (0U)
  15799. #define GTZC_CFGR2_TIM8_Msk ( 0x01UL << GTZC_CFGR2_TIM8_Pos )
  15800. /******************* Bits definition for registers x=3 ***************/
  15801. #define GTZC_CFGR3_MPCBB2_REG_Pos (7U)
  15802. #define GTZC_CFGR3_MPCBB2_REG_Msk ( 0x01UL << GTZC_CFGR3_MPCBB2_REG_Pos )
  15803. #define GTZC_CFGR3_SRAM2_Pos (6U)
  15804. #define GTZC_CFGR3_SRAM2_Msk ( 0x01UL << GTZC_CFGR3_SRAM2_Pos )
  15805. #define GTZC_CFGR3_MPCBB1_REG_Pos (5U)
  15806. #define GTZC_CFGR3_MPCBB1_REG_Msk ( 0x01UL << GTZC_CFGR3_MPCBB1_REG_Pos )
  15807. #define GTZC_CFGR3_SRAM1_Pos (4U)
  15808. #define GTZC_CFGR3_SRAM1_Msk ( 0x01UL << GTZC_CFGR3_SRAM1_Pos )
  15809. #define GTZC_CFGR3_OCTOSPI1_MEM_Pos (3U)
  15810. #define GTZC_CFGR3_OCTOSPI1_MEM_Msk ( 0x01UL << GTZC_CFGR3_OCTOSPI1_MEM_Pos )
  15811. #define GTZC_CFGR3_FMC_MEM_Pos (2U)
  15812. #define GTZC_CFGR3_FMC_MEM_Msk ( 0x01UL << GTZC_CFGR3_FMC_MEM_Pos )
  15813. #define GTZC_CFGR3_TZIC_Pos (1U)
  15814. #define GTZC_CFGR3_TZIC_Msk ( 0x01UL << GTZC_CFGR3_TZIC_Pos )
  15815. #define GTZC_CFGR3_TZSC_Pos (0U)
  15816. #define GTZC_CFGR3_TZSC_Msk ( 0x01UL << GTZC_CFGR3_TZSC_Pos )
  15817. /******************* Bits definition for GTZC_TZSC_SECCFGR1 register ***************/
  15818. #define GTZC_TZSC_SECCFGR1_SPI1SEC_Pos GTZC_CFGR1_SPI1_Pos
  15819. #define GTZC_TZSC_SECCFGR1_SPI1SEC_Msk GTZC_CFGR1_SPI1_Msk
  15820. #define GTZC_TZSC_SECCFGR1_TIM1SEC_Pos GTZC_CFGR1_TIM1_Pos
  15821. #define GTZC_TZSC_SECCFGR1_TIM1SEC_Msk GTZC_CFGR1_TIM1_Msk
  15822. #define GTZC_TZSC_SECCFGR1_COMPSEC_Pos GTZC_CFGR1_COMP_Pos
  15823. #define GTZC_TZSC_SECCFGR1_COMPSEC_Msk GTZC_CFGR1_COMP_Msk
  15824. #define GTZC_TZSC_SECCFGR1_VREFBUFSEC_Pos GTZC_CFGR1_VREFBUF_Pos
  15825. #define GTZC_TZSC_SECCFGR1_VREFBUFSEC_Msk GTZC_CFGR1_VREFBUF_Msk
  15826. #define GTZC_TZSC_SECCFGR1_UCPD1SEC_Pos GTZC_CFGR1_UCPD1_Pos
  15827. #define GTZC_TZSC_SECCFGR1_UCPD1SEC_Msk GTZC_CFGR1_UCPD1_Msk
  15828. #define GTZC_TZSC_SECCFGR1_USBFSSEC_Pos GTZC_CFGR1_USBFS_Pos
  15829. #define GTZC_TZSC_SECCFGR1_USBFSSEC_Msk GTZC_CFGR1_USBFS_Msk
  15830. #define GTZC_TZSC_SECCFGR1_FDCAN1SEC_Pos GTZC_CFGR1_FDCAN1_Pos
  15831. #define GTZC_TZSC_SECCFGR1_FDCAN1SEC_Msk GTZC_CFGR1_FDCAN1_Msk
  15832. #define GTZC_TZSC_SECCFGR1_LPTIM3SEC_Pos GTZC_CFGR1_LPTIM3_Pos
  15833. #define GTZC_TZSC_SECCFGR1_LPTIM3SEC_Msk GTZC_CFGR1_LPTIM3_Msk
  15834. #define GTZC_TZSC_SECCFGR1_LPTIM2SEC_Pos GTZC_CFGR1_LPTIM2_Pos
  15835. #define GTZC_TZSC_SECCFGR1_LPTIM2SEC_Msk GTZC_CFGR1_LPTIM2_Msk
  15836. #define GTZC_TZSC_SECCFGR1_I2C4SEC_Pos GTZC_CFGR1_I2C4_Pos
  15837. #define GTZC_TZSC_SECCFGR1_I2C4SEC_Msk GTZC_CFGR1_I2C4_Msk
  15838. #define GTZC_TZSC_SECCFGR1_LPUART1SEC_Pos GTZC_CFGR1_LPUART1_Pos
  15839. #define GTZC_TZSC_SECCFGR1_LPUART1SEC_Msk GTZC_CFGR1_LPUART1_Msk
  15840. #define GTZC_TZSC_SECCFGR1_LPTIM1SEC_Pos GTZC_CFGR1_LPTIM1_Pos
  15841. #define GTZC_TZSC_SECCFGR1_LPTIM1SEC_Msk GTZC_CFGR1_LPTIM1_Msk
  15842. #define GTZC_TZSC_SECCFGR1_OPAMPSEC_Pos GTZC_CFGR1_OPAMP_Pos
  15843. #define GTZC_TZSC_SECCFGR1_OPAMPSEC_Msk GTZC_CFGR1_OPAMP_Msk
  15844. #define GTZC_TZSC_SECCFGR1_DAC1SEC_Pos GTZC_CFGR1_DAC1_Pos
  15845. #define GTZC_TZSC_SECCFGR1_DAC1SEC_Msk GTZC_CFGR1_DAC1_Msk
  15846. #define GTZC_TZSC_SECCFGR1_CRSSEC_Pos GTZC_CFGR1_CRS_Pos
  15847. #define GTZC_TZSC_SECCFGR1_CRSSEC_Msk GTZC_CFGR1_CRS_Msk
  15848. #define GTZC_TZSC_SECCFGR1_I2C3SEC_Pos GTZC_CFGR1_I2C3_Pos
  15849. #define GTZC_TZSC_SECCFGR1_I2C3SEC_Msk GTZC_CFGR1_I2C3_Msk
  15850. #define GTZC_TZSC_SECCFGR1_I2C2SEC_Pos GTZC_CFGR1_I2C2_Pos
  15851. #define GTZC_TZSC_SECCFGR1_I2C2SEC_Msk GTZC_CFGR1_I2C2_Msk
  15852. #define GTZC_TZSC_SECCFGR1_I2C1SEC_Pos GTZC_CFGR1_I2C1_Pos
  15853. #define GTZC_TZSC_SECCFGR1_I2C1SEC_Msk GTZC_CFGR1_I2C1_Msk
  15854. #define GTZC_TZSC_SECCFGR1_UART5SEC_Pos GTZC_CFGR1_UART5_Pos
  15855. #define GTZC_TZSC_SECCFGR1_UART5SEC_Msk GTZC_CFGR1_UART5_Msk
  15856. #define GTZC_TZSC_SECCFGR1_UART4SEC_Pos GTZC_CFGR1_UART4_Pos
  15857. #define GTZC_TZSC_SECCFGR1_UART4SEC_Msk GTZC_CFGR1_UART4_Msk
  15858. #define GTZC_TZSC_SECCFGR1_USART3SEC_Pos GTZC_CFGR1_USART3_Pos
  15859. #define GTZC_TZSC_SECCFGR1_USART3SEC_Msk GTZC_CFGR1_USART3_Msk
  15860. #define GTZC_TZSC_SECCFGR1_USART2SEC_Pos GTZC_CFGR1_USART2_Pos
  15861. #define GTZC_TZSC_SECCFGR1_USART2SEC_Msk GTZC_CFGR1_USART2_Msk
  15862. #define GTZC_TZSC_SECCFGR1_SPI3SEC_Pos GTZC_CFGR1_SPI3_Pos
  15863. #define GTZC_TZSC_SECCFGR1_SPI3SEC_Msk GTZC_CFGR1_SPI3_Msk
  15864. #define GTZC_TZSC_SECCFGR1_SPI2SEC_Pos GTZC_CFGR1_SPI2_Pos
  15865. #define GTZC_TZSC_SECCFGR1_SPI2SEC_Msk GTZC_CFGR1_SPI2_Msk
  15866. #define GTZC_TZSC_SECCFGR1_IWDGSEC_Pos GTZC_CFGR1_IWDG_Pos
  15867. #define GTZC_TZSC_SECCFGR1_IWDGSEC_Msk GTZC_CFGR1_IWDG_Msk
  15868. #define GTZC_TZSC_SECCFGR1_WWDGSEC_Pos GTZC_CFGR1_WWDG_Pos
  15869. #define GTZC_TZSC_SECCFGR1_WWDGSEC_Msk GTZC_CFGR1_WWDG_Msk
  15870. #define GTZC_TZSC_SECCFGR1_TIM7SEC_Pos GTZC_CFGR1_TIM7_Pos
  15871. #define GTZC_TZSC_SECCFGR1_TIM7SEC_Msk GTZC_CFGR1_TIM7_Msk
  15872. #define GTZC_TZSC_SECCFGR1_TIM6SEC_Pos GTZC_CFGR1_TIM6_Pos
  15873. #define GTZC_TZSC_SECCFGR1_TIM6SEC_Msk GTZC_CFGR1_TIM6_Msk
  15874. #define GTZC_TZSC_SECCFGR1_TIM5SEC_Pos GTZC_CFGR1_TIM5_Pos
  15875. #define GTZC_TZSC_SECCFGR1_TIM5SEC_Msk GTZC_CFGR1_TIM5_Msk
  15876. #define GTZC_TZSC_SECCFGR1_TIM4SEC_Pos GTZC_CFGR1_TIM4_Pos
  15877. #define GTZC_TZSC_SECCFGR1_TIM4SEC_Msk GTZC_CFGR1_TIM4_Msk
  15878. #define GTZC_TZSC_SECCFGR1_TIM3SEC_Pos GTZC_CFGR1_TIM3_Pos
  15879. #define GTZC_TZSC_SECCFGR1_TIM3SEC_Msk GTZC_CFGR1_TIM3_Msk
  15880. #define GTZC_TZSC_SECCFGR1_TIM2SEC_Pos GTZC_CFGR1_TIM2_Pos
  15881. #define GTZC_TZSC_SECCFGR1_TIM2SEC_Msk GTZC_CFGR1_TIM2_Msk
  15882. /******************* Bits definition for GTZC_TZSC_SECCFGR2 register ***************/
  15883. #define GTZC_TZSC_SECCFGR2_OCTOSPI1_REGSEC_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  15884. #define GTZC_TZSC_SECCFGR2_OCTOSPI1_REGSEC_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  15885. #define GTZC_TZSC_SECCFGR2_FMC_REGSEC_Pos GTZC_CFGR2_FMC_REG_Pos
  15886. #define GTZC_TZSC_SECCFGR2_FMC_REGSEC_Msk GTZC_CFGR2_FMC_REG_Msk
  15887. #define GTZC_TZSC_SECCFGR2_SDMMC1SEC_Pos GTZC_CFGR2_SDMMC1_Pos
  15888. #define GTZC_TZSC_SECCFGR2_SDMMC1SEC_Msk GTZC_CFGR2_SDMMC1_Msk
  15889. #define GTZC_TZSC_SECCFGR2_PKASEC_Pos GTZC_CFGR2_PKA_Pos
  15890. #define GTZC_TZSC_SECCFGR2_PKASEC_Msk GTZC_CFGR2_PKA_Msk
  15891. #define GTZC_TZSC_SECCFGR2_RNGSEC_Pos GTZC_CFGR2_RNG_Pos
  15892. #define GTZC_TZSC_SECCFGR2_RNGSEC_Msk GTZC_CFGR2_RNG_Msk
  15893. #define GTZC_TZSC_SECCFGR2_HASHSEC_Pos GTZC_CFGR2_HASH_Pos
  15894. #define GTZC_TZSC_SECCFGR2_HASHSEC_Msk GTZC_CFGR2_HASH_Msk
  15895. #define GTZC_TZSC_SECCFGR2_AESSEC_Pos GTZC_CFGR2_AES_Pos
  15896. #define GTZC_TZSC_SECCFGR2_AESSEC_Msk GTZC_CFGR2_AES_Msk
  15897. #define GTZC_TZSC_SECCFGR2_ADCSEC_Pos GTZC_CFGR2_ADC_Pos
  15898. #define GTZC_TZSC_SECCFGR2_ADCSEC_Msk GTZC_CFGR2_ADC_Msk
  15899. #define GTZC_TZSC_SECCFGR2_ICACHE_REGSEC_Pos GTZC_CFGR2_ICACHE_REG_Pos
  15900. #define GTZC_TZSC_SECCFGR2_ICACHE_REGSEC_Msk GTZC_CFGR2_ICACHE_REG_Msk
  15901. #define GTZC_TZSC_SECCFGR2_TSCSEC_Pos GTZC_CFGR2_TSC_Pos
  15902. #define GTZC_TZSC_SECCFGR2_TSCSEC_Msk GTZC_CFGR2_TSC_Msk
  15903. #define GTZC_TZSC_SECCFGR2_CRCSEC_Pos GTZC_CFGR2_CRC_Pos
  15904. #define GTZC_TZSC_SECCFGR2_CRCSEC_Msk GTZC_CFGR2_CRC_Msk
  15905. #define GTZC_TZSC_SECCFGR2_DFSDM1SEC_Pos GTZC_CFGR2_DFSDM1_Pos
  15906. #define GTZC_TZSC_SECCFGR2_DFSDM1SEC_Msk GTZC_CFGR2_DFSDM1_Msk
  15907. #define GTZC_TZSC_SECCFGR2_SAI2SEC_Pos GTZC_CFGR2_SAI2_Pos
  15908. #define GTZC_TZSC_SECCFGR2_SAI2SEC_Msk GTZC_CFGR2_SAI2_Msk
  15909. #define GTZC_TZSC_SECCFGR2_SAI1SEC_Pos GTZC_CFGR2_SAI1_Pos
  15910. #define GTZC_TZSC_SECCFGR2_SAI1SEC_Msk GTZC_CFGR2_SAI1_Msk
  15911. #define GTZC_TZSC_SECCFGR2_TIM17SEC_Pos GTZC_CFGR2_TIM17_Pos
  15912. #define GTZC_TZSC_SECCFGR2_TIM17SEC_Msk GTZC_CFGR2_TIM17_Msk
  15913. #define GTZC_TZSC_SECCFGR2_TIM16SEC_Pos GTZC_CFGR2_TIM16_Pos
  15914. #define GTZC_TZSC_SECCFGR2_TIM16SEC_Msk GTZC_CFGR2_TIM16_Msk
  15915. #define GTZC_TZSC_SECCFGR2_TIM15SEC_Pos GTZC_CFGR2_TIM15_Pos
  15916. #define GTZC_TZSC_SECCFGR2_TIM15SEC_Msk GTZC_CFGR2_TIM15_Msk
  15917. #define GTZC_TZSC_SECCFGR2_USART1SEC_Pos GTZC_CFGR2_USART1_Pos
  15918. #define GTZC_TZSC_SECCFGR2_USART1SEC_Msk GTZC_CFGR2_USART1_Msk
  15919. #define GTZC_TZSC_SECCFGR2_TIM8SEC_Pos GTZC_CFGR2_TIM8_Pos
  15920. #define GTZC_TZSC_SECCFGR2_TIM8SEC_Msk GTZC_CFGR2_TIM8_Msk
  15921. /******************* Bits definition for GTZC_TZSC_PRIVCFGR1 register ***************/
  15922. #define GTZC_TZSC_PRIVCFGR1_SPI1PRIV_Pos GTZC_CFGR1_SPI1_Pos
  15923. #define GTZC_TZSC_PRIVCFGR1_SPI1PRIV_Msk GTZC_CFGR1_SPI1_Msk
  15924. #define GTZC_TZSC_PRIVCFGR1_TIM1PRIV_Pos GTZC_CFGR1_TIM1_Pos
  15925. #define GTZC_TZSC_PRIVCFGR1_TIM1PRIV_Msk GTZC_CFGR1_TIM1_Msk
  15926. #define GTZC_TZSC_PRIVCFGR1_COMPPRIV_Pos GTZC_CFGR1_COMP_Pos
  15927. #define GTZC_TZSC_PRIVCFGR1_COMPPRIV_Msk GTZC_CFGR1_COMP_Msk
  15928. #define GTZC_TZSC_PRIVCFGR1_VREFBUFPRIV_Pos GTZC_CFGR1_VREFBUF_Pos
  15929. #define GTZC_TZSC_PRIVCFGR1_VREFBUFPRIV_Msk GTZC_CFGR1_VREFBUF_Msk
  15930. #define GTZC_TZSC_PRIVCFGR1_UCPD1PRIV_Pos GTZC_CFGR1_UCPD1_Pos
  15931. #define GTZC_TZSC_PRIVCFGR1_UCPD1PRIV_Msk GTZC_CFGR1_UCPD1_Msk
  15932. #define GTZC_TZSC_PRIVCFGR1_USBFSPRIV_Pos GTZC_CFGR1_USBFS_Pos
  15933. #define GTZC_TZSC_PRIVCFGR1_USBFSPRIV_Msk GTZC_CFGR1_USBFS_Msk
  15934. #define GTZC_TZSC_PRIVCFGR1_FDCAN1PRIV_Pos GTZC_CFGR1_FDCAN1_Pos
  15935. #define GTZC_TZSC_PRIVCFGR1_FDCAN1PRIV_Msk GTZC_CFGR1_FDCAN1_Msk
  15936. #define GTZC_TZSC_PRIVCFGR1_LPTIM3PRIV_Pos GTZC_CFGR1_LPTIM3_Pos
  15937. #define GTZC_TZSC_PRIVCFGR1_LPTIM3PRIV_Msk GTZC_CFGR1_LPTIM3_Msk
  15938. #define GTZC_TZSC_PRIVCFGR1_LPTIM2PRIV_Pos GTZC_CFGR1_LPTIM2_Pos
  15939. #define GTZC_TZSC_PRIVCFGR1_LPTIM2PRIV_Msk GTZC_CFGR1_LPTIM2_Msk
  15940. #define GTZC_TZSC_PRIVCFGR1_I2C4PRIV_Pos GTZC_CFGR1_I2C4_Pos
  15941. #define GTZC_TZSC_PRIVCFGR1_I2C4PRIV_Msk GTZC_CFGR1_I2C4_Msk
  15942. #define GTZC_TZSC_PRIVCFGR1_LPUART1PRIV_Pos GTZC_CFGR1_LPUART1_Pos
  15943. #define GTZC_TZSC_PRIVCFGR1_LPUART1PRIV_Msk GTZC_CFGR1_LPUART1_Msk
  15944. #define GTZC_TZSC_PRIVCFGR1_LPTIM1PRIV_Pos GTZC_CFGR1_LPTIM1_Pos
  15945. #define GTZC_TZSC_PRIVCFGR1_LPTIM1PRIV_Msk GTZC_CFGR1_LPTIM1_Msk
  15946. #define GTZC_TZSC_PRIVCFGR1_OPAMPPRIV_Pos GTZC_CFGR1_OPAMP_Pos
  15947. #define GTZC_TZSC_PRIVCFGR1_OPAMPPRIV_Msk GTZC_CFGR1_OPAMP_Msk
  15948. #define GTZC_TZSC_PRIVCFGR1_DAC1PRIV_Pos GTZC_CFGR1_DAC1_Pos
  15949. #define GTZC_TZSC_PRIVCFGR1_DAC1PRIV_Msk GTZC_CFGR1_DAC1_Msk
  15950. #define GTZC_TZSC_PRIVCFGR1_CRSPRIV_Pos GTZC_CFGR1_CRS_Pos
  15951. #define GTZC_TZSC_PRIVCFGR1_CRSPRIV_Msk GTZC_CFGR1_CRS_Msk
  15952. #define GTZC_TZSC_PRIVCFGR1_I2C3PRIV_Pos GTZC_CFGR1_I2C3_Pos
  15953. #define GTZC_TZSC_PRIVCFGR1_I2C3PRIV_Msk GTZC_CFGR1_I2C3_Msk
  15954. #define GTZC_TZSC_PRIVCFGR1_I2C2PRIV_Pos GTZC_CFGR1_I2C2_Pos
  15955. #define GTZC_TZSC_PRIVCFGR1_I2C2PRIV_Msk GTZC_CFGR1_I2C2_Msk
  15956. #define GTZC_TZSC_PRIVCFGR1_I2C1PRIV_Pos GTZC_CFGR1_I2C1_Pos
  15957. #define GTZC_TZSC_PRIVCFGR1_I2C1PRIV_Msk GTZC_CFGR1_I2C1_Msk
  15958. #define GTZC_TZSC_PRIVCFGR1_UART5PRIV_Pos GTZC_CFGR1_UART5_Pos
  15959. #define GTZC_TZSC_PRIVCFGR1_UART5PRIV_Msk GTZC_CFGR1_UART5_Msk
  15960. #define GTZC_TZSC_PRIVCFGR1_UART4PRIV_Pos GTZC_CFGR1_UART4_Pos
  15961. #define GTZC_TZSC_PRIVCFGR1_UART4PRIV_Msk GTZC_CFGR1_UART4_Msk
  15962. #define GTZC_TZSC_PRIVCFGR1_USART3PRIV_Pos GTZC_CFGR1_USART3_Pos
  15963. #define GTZC_TZSC_PRIVCFGR1_USART3PRIV_Msk GTZC_CFGR1_USART3_Msk
  15964. #define GTZC_TZSC_PRIVCFGR1_USART2PRIV_Pos GTZC_CFGR1_USART2_Pos
  15965. #define GTZC_TZSC_PRIVCFGR1_USART2PRIV_Msk GTZC_CFGR1_USART2_Msk
  15966. #define GTZC_TZSC_PRIVCFGR1_SPI3PRIV_Pos GTZC_CFGR1_PI3_Pos
  15967. #define GTZC_TZSC_PRIVCFGR1_SPI3PRIV_Msk GTZC_CFGR1_SPI3_Msk
  15968. #define GTZC_TZSC_PRIVCFGR1_SPI2PRIV_Pos GTZC_CFGR1_SPI2_Pos
  15969. #define GTZC_TZSC_PRIVCFGR1_SPI2PRIV_Msk GTZC_CFGR1_SPI2_Msk
  15970. #define GTZC_TZSC_PRIVCFGR1_IWDGPRIV_Pos GTZC_CFGR1_IWDG_Pos
  15971. #define GTZC_TZSC_PRIVCFGR1_IWDGPRIV_Msk GTZC_CFGR1_IWDG_Msk
  15972. #define GTZC_TZSC_PRIVCFGR1_WWDGPRIV_Pos GTZC_CFGR1_WWDG_Pos
  15973. #define GTZC_TZSC_PRIVCFGR1_WWDGPRIV_Msk GTZC_CFGR1_WWDG_Msk
  15974. #define GTZC_TZSC_PRIVCFGR1_TIM7PRIV_Pos GTZC_CFGR1_TIM7_Pos
  15975. #define GTZC_TZSC_PRIVCFGR1_TIM7PRIV_Msk GTZC_CFGR1_TIM7_Msk
  15976. #define GTZC_TZSC_PRIVCFGR1_TIM6PRIV_Pos GTZC_CFGR1_TIM6_Pos
  15977. #define GTZC_TZSC_PRIVCFGR1_TIM6PRIV_Msk GTZC_CFGR1_TIM6_Msk
  15978. #define GTZC_TZSC_PRIVCFGR1_TIM5PRIV_Pos GTZC_CFGR1_TIM5_Pos
  15979. #define GTZC_TZSC_PRIVCFGR1_TIM5PRIV_Msk GTZC_CFGR1_TIM5_Msk
  15980. #define GTZC_TZSC_PRIVCFGR1_TIM4PRIV_Pos GTZC_CFGR1_TIM4_Pos
  15981. #define GTZC_TZSC_PRIVCFGR1_TIM4PRIV_Msk GTZC_CFGR1_TIM4_Msk
  15982. #define GTZC_TZSC_PRIVCFGR1_TIM3PRIV_Pos GTZC_CFGR1_TIM3_Pos
  15983. #define GTZC_TZSC_PRIVCFGR1_TIM3PRIV_Msk GTZC_CFGR1_TIM3_Msk
  15984. #define GTZC_TZSC_PRIVCFGR1_TIM2PRIV_Pos GTZC_CFGR1_TIM2_Pos
  15985. #define GTZC_TZSC_PRIVCFGR1_TIM2PRIV_Msk GTZC_CFGR1_TIM2_Msk
  15986. /******************* Bits definition for GTZC_TZSC_PRIVCFGR2 register ***************/
  15987. #define GTZC_TZSC_PRIVCFGR2_OCTOSPI1_REGPRIV_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  15988. #define GTZC_TZSC_PRIVCFGR2_OCTOSPI1_REGPRIV_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  15989. #define GTZC_TZSC_PRIVCFGR2_FMC_REGPRIV_Pos GTZC_CFGR2_FMC_REG_Pos
  15990. #define GTZC_TZSC_PRIVCFGR2_FMC_REGPRIV_Msk GTZC_CFGR2_FMC_REG_Msk
  15991. #define GTZC_TZSC_PRIVCFGR2_SDMMC1PRIV_Pos GTZC_CFGR2_SDMMC1_Pos
  15992. #define GTZC_TZSC_PRIVCFGR2_SDMMC1PRIV_Msk GTZC_CFGR2_SDMMC1_Msk
  15993. #define GTZC_TZSC_PRIVCFGR2_PKAPRIV_Pos GTZC_CFGR2_PKA_Pos
  15994. #define GTZC_TZSC_PRIVCFGR2_PKAPRIV_Msk GTZC_CFGR2_PKA_Msk
  15995. #define GTZC_TZSC_PRIVCFGR2_RNGPRIV_Pos GTZC_CFGR2_RNG_Pos
  15996. #define GTZC_TZSC_PRIVCFGR2_RNGPRIV_Msk GTZC_CFGR2_RNG_Msk
  15997. #define GTZC_TZSC_PRIVCFGR2_HASHPRIV_Pos GTZC_CFGR2_HASH_Pos
  15998. #define GTZC_TZSC_PRIVCFGR2_HASHPRIV_Msk GTZC_CFGR2_HASH_Msk
  15999. #define GTZC_TZSC_PRIVCFGR2_AESPRIV_Pos GTZC_CFGR2_AES_Pos
  16000. #define GTZC_TZSC_PRIVCFGR2_AESPRIV_Msk GTZC_CFGR2_AES_Msk
  16001. #define GTZC_TZSC_PRIVCFGR2_ADCPRIV_Pos GTZC_CFGR2_ADC_Pos
  16002. #define GTZC_TZSC_PRIVCFGR2_ADCPRIV_Msk GTZC_CFGR2_ADC_Msk
  16003. #define GTZC_TZSC_PRIVCFGR2_ICACHE_REGPRIV_Pos GTZC_CFGR2_ICACHE_REG_Pos
  16004. #define GTZC_TZSC_PRIVCFGR2_ICACHE_REGPRIV_Msk GTZC_CFGR2_ICACHE_REG_Msk
  16005. #define GTZC_TZSC_PRIVCFGR2_TSCPRIV_Pos GTZC_CFGR2_TSC_Pos
  16006. #define GTZC_TZSC_PRIVCFGR2_TSCPRIV_Msk GTZC_CFGR2_TSC_Msk
  16007. #define GTZC_TZSC_PRIVCFGR2_CRCPRIV_Pos GTZC_CFGR2_CRC_Pos
  16008. #define GTZC_TZSC_PRIVCFGR2_CRCPRIV_Msk GTZC_CFGR2_CRC_Msk
  16009. #define GTZC_TZSC_PRIVCFGR2_DFSDM1PRIV_Pos GTZC_CFGR2_DFSDM1_Pos
  16010. #define GTZC_TZSC_PRIVCFGR2_DFSDM1PRIV_Msk GTZC_CFGR2_DFSDM1_Msk
  16011. #define GTZC_TZSC_PRIVCFGR2_SAI2PRIV_Pos GTZC_CFGR2_SAI2_Pos
  16012. #define GTZC_TZSC_PRIVCFGR2_SAI2PRIV_Msk GTZC_CFGR2_SAI2_Msk
  16013. #define GTZC_TZSC_PRIVCFGR2_SAI1PRIV_Pos GTZC_CFGR2_SAI1_Pos
  16014. #define GTZC_TZSC_PRIVCFGR2_SAI1PRIV_Msk GTZC_CFGR2_SAI1_Msk
  16015. #define GTZC_TZSC_PRIVCFGR2_TIM17PRIV_Pos GTZC_CFGR2_TIM17_Pos
  16016. #define GTZC_TZSC_PRIVCFGR2_TIM17PRIV_Msk GTZC_CFGR2_TIM17_Msk
  16017. #define GTZC_TZSC_PRIVCFGR2_TIM16PRIV_Pos GTZC_CFGR2_TIM16_Pos
  16018. #define GTZC_TZSC_PRIVCFGR2_TIM16PRIV_Msk GTZC_CFGR2_TIM16_Msk
  16019. #define GTZC_TZSC_PRIVCFGR2_TIM15PRIV_Pos GTZC_CFGR2_TIM15_Pos
  16020. #define GTZC_TZSC_PRIVCFGR2_TIM15PRIV_Msk GTZC_CFGR2_TIM15_Msk
  16021. #define GTZC_TZSC_PRIVCFGR2_USART1PRIV_Pos GTZC_CFGR2_USART1_Pos
  16022. #define GTZC_TZSC_PRIVCFGR2_USART1PRIV_Msk GTZC_CFGR2_USART1_Msk
  16023. #define GTZC_TZSC_PRIVCFGR2_TIM8PRIV_Pos GTZC_CFGR2_TIM8_Pos
  16024. #define GTZC_TZSC_PRIVCFGR2_TIM8PRIV_Msk GTZC_CFGR2_TIM8_Msk
  16025. /******************* Bits definition for GTZC_TZIC_IER1 register ***************/
  16026. #define GTZC_TZIC_IER1_SPI1IE_Pos GTZC_CFGR1_SPI1_Pos
  16027. #define GTZC_TZIC_IER1_SPI1IE_Msk GTZC_CFGR1_SPI1_Msk
  16028. #define GTZC_TZIC_IER1_TIM1IE_Pos GTZC_CFGR1_TIM1_Pos
  16029. #define GTZC_TZIC_IER1_TIM1IE_Msk GTZC_CFGR1_TIM1_Msk
  16030. #define GTZC_TZIC_IER1_COMPIE_Pos GTZC_CFGR1_COMP_Pos
  16031. #define GTZC_TZIC_IER1_COMPIE_Msk GTZC_CFGR1_COMP_Msk
  16032. #define GTZC_TZIC_IER1_VREFBUFIE_Pos GTZC_CFGR1_VREFBUF_Pos
  16033. #define GTZC_TZIC_IER1_VREFBUFIE_Msk GTZC_CFGR1_VREFBUF_Msk
  16034. #define GTZC_TZIC_IER1_UCPD1IE_Pos GTZC_CFGR1_UCPD1_Pos
  16035. #define GTZC_TZIC_IER1_UCPD1IE_Msk GTZC_CFGR1_UCPD1_Msk
  16036. #define GTZC_TZIC_IER1_USBFSIE_Pos GTZC_CFGR1_USBFS_Pos
  16037. #define GTZC_TZIC_IER1_USBFSIE_Msk GTZC_CFGR1_USBFS_Msk
  16038. #define GTZC_TZIC_IER1_FDCAN1IE_Pos GTZC_CFGR1_FDCAN1_Pos
  16039. #define GTZC_TZIC_IER1_FDCAN1IE_Msk GTZC_CFGR1_FDCAN1_Msk
  16040. #define GTZC_TZIC_IER1_LPTIM3IE_Pos GTZC_CFGR1_LPTIM3_Pos
  16041. #define GTZC_TZIC_IER1_LPTIM3IE_Msk GTZC_CFGR1_LPTIM3_Msk
  16042. #define GTZC_TZIC_IER1_LPTIM2IE_Pos GTZC_CFGR1_LPTIM2_Pos
  16043. #define GTZC_TZIC_IER1_LPTIM2IE_Msk GTZC_CFGR1_LPTIM2_Msk
  16044. #define GTZC_TZIC_IER1_I2C4IE_Pos GTZC_CFGR1_I2C4_Pos
  16045. #define GTZC_TZIC_IER1_I2C4IE_Msk GTZC_CFGR1_I2C4_Msk
  16046. #define GTZC_TZIC_IER1_LPUART1IE_Pos GTZC_CFGR1_LPUART1_Pos
  16047. #define GTZC_TZIC_IER1_LPUART1IE_Msk GTZC_CFGR1_LPUART1_Msk
  16048. #define GTZC_TZIC_IER1_LPTIM1IE_Pos GTZC_CFGR1_LPTIM1_Pos
  16049. #define GTZC_TZIC_IER1_LPTIM1IE_Msk GTZC_CFGR1_LPTIM1_Msk
  16050. #define GTZC_TZIC_IER1_OPAMPIE_Pos GTZC_CFGR1_OPAMP_Pos
  16051. #define GTZC_TZIC_IER1_OPAMPIE_Msk GTZC_CFGR1_OPAMP_Msk
  16052. #define GTZC_TZIC_IER1_DAC1IE_Pos GTZC_CFGR1_DAC1_Pos
  16053. #define GTZC_TZIC_IER1_DAC1IE_Msk GTZC_CFGR1_DAC1_Msk
  16054. #define GTZC_TZIC_IER1_CRSIE_Pos GTZC_CFGR1_CRS_Pos
  16055. #define GTZC_TZIC_IER1_CRSIE_Msk GTZC_CFGR1_CRS_Msk
  16056. #define GTZC_TZIC_IER1_I2C3IE_Pos GTZC_CFGR1_I2C3_Pos
  16057. #define GTZC_TZIC_IER1_I2C3IE_Msk GTZC_CFGR1_I2C3_Msk
  16058. #define GTZC_TZIC_IER1_I2C2IE_Pos GTZC_CFGR1_I2C2_Pos
  16059. #define GTZC_TZIC_IER1_I2C2IE_Msk GTZC_CFGR1_I2C2_Msk
  16060. #define GTZC_TZIC_IER1_I2C1IE_Pos GTZC_CFGR1_I2C1_Pos
  16061. #define GTZC_TZIC_IER1_I2C1IE_Msk GTZC_CFGR1_I2C1_Msk
  16062. #define GTZC_TZIC_IER1_UART5IE_Pos GTZC_CFGR1_UART5_Pos
  16063. #define GTZC_TZIC_IER1_UART5IE_Msk GTZC_CFGR1_UART5_Msk
  16064. #define GTZC_TZIC_IER1_UART4IE_Pos GTZC_CFGR1_UART4_Pos
  16065. #define GTZC_TZIC_IER1_UART4IE_Msk GTZC_CFGR1_UART4_Msk
  16066. #define GTZC_TZIC_IER1_USART3IE_Pos GTZC_CFGR1_USART3_Pos
  16067. #define GTZC_TZIC_IER1_USART3IE_Msk GTZC_CFGR1_USART3_Msk
  16068. #define GTZC_TZIC_IER1_USART2IE_Pos GTZC_CFGR1_USART2_Pos
  16069. #define GTZC_TZIC_IER1_USART2IE_Msk GTZC_CFGR1_USART2_Msk
  16070. #define GTZC_TZIC_IER1_SPI3IE_Pos GTZC_CFGR1_SPI3_Pos
  16071. #define GTZC_TZIC_IER1_SPI3IE_Msk GTZC_CFGR1_SPI3_Msk
  16072. #define GTZC_TZIC_IER1_SPI2IE_Pos GTZC_CFGR1_SPI2_Pos
  16073. #define GTZC_TZIC_IER1_SPI2IE_Msk GTZC_CFGR1_SPI2_Msk
  16074. #define GTZC_TZIC_IER1_IWDGIE_Pos GTZC_CFGR1_IWDG_Pos
  16075. #define GTZC_TZIC_IER1_IWDGIE_Msk GTZC_CFGR1_IWDG_Msk
  16076. #define GTZC_TZIC_IER1_WWDGIE_Pos GTZC_CFGR1_WWDG_Pos
  16077. #define GTZC_TZIC_IER1_WWDGIE_Msk GTZC_CFGR1_WWDG_Msk
  16078. #define GTZC_TZIC_IER1_TIM7IE_Pos GTZC_CFGR1_TIM7_Pos
  16079. #define GTZC_TZIC_IER1_TIM7IE_Msk GTZC_CFGR1_TIM7_Msk
  16080. #define GTZC_TZIC_IER1_TIM6IE_Pos GTZC_CFGR1_TIM6_Pos
  16081. #define GTZC_TZIC_IER1_TIM6IE_Msk GTZC_CFGR1_TIM6_Msk
  16082. #define GTZC_TZIC_IER1_TIM5IE_Pos GTZC_CFGR1_TIM5_Pos
  16083. #define GTZC_TZIC_IER1_TIM5IE_Msk GTZC_CFGR1_TIM5_Msk
  16084. #define GTZC_TZIC_IER1_TIM4IE_Pos GTZC_CFGR1_TIM4_Pos
  16085. #define GTZC_TZIC_IER1_TIM4IE_Msk GTZC_CFGR1_TIM4_Msk
  16086. #define GTZC_TZIC_IER1_TIM3IE_Pos GTZC_CFGR1_TIM3_Pos
  16087. #define GTZC_TZIC_IER1_TIM3IE_Msk GTZC_CFGR1_TIM3_Msk
  16088. #define GTZC_TZIC_IER1_TIM2IE_Pos GTZC_CFGR1_TIM2_Pos
  16089. #define GTZC_TZIC_IER1_TIM2IE_Msk GTZC_CFGR1_TIM2_Msk
  16090. /******************* Bits definition for GTZC_TZIC_IER2 register ***************/
  16091. #define GTZC_TZIC_IER2_OTFDEC1IE_Pos GTZC_CFGR2_OTFDEC1_Pos
  16092. #define GTZC_TZIC_IER2_OTFDEC1IE_Msk GTZC_CFGR2_OTFDEC1_Msk
  16093. #define GTZC_TZIC_IER2_EXTIIE_Pos GTZC_CFGR2_EXTI_Pos
  16094. #define GTZC_TZIC_IER2_EXTIIE_Msk GTZC_CFGR2_EXTI_Msk
  16095. #define GTZC_TZIC_IER2_FLASH_REGIE_Pos GTZC_CFGR2_FLASH_REG_Pos
  16096. #define GTZC_TZIC_IER2_FLASH_REGIE_Msk GTZC_CFGR2_FLASH_REG_Msk
  16097. #define GTZC_TZIC_IER2_FLASHIE_Pos GTZC_CFGR2_FLASH_Pos
  16098. #define GTZC_TZIC_IER2_FLASHIE_Msk GTZC_CFGR2_FLASH_Msk
  16099. #define GTZC_TZIC_IER2_RCCIE_Pos GTZC_CFGR2_RCC_Pos
  16100. #define GTZC_TZIC_IER2_RCCIE_Msk GTZC_CFGR2_RCC_Msk
  16101. #define GTZC_TZIC_IER2_DMAMUX1IE_Pos GTZC_CFGR2_DMAMUX1_Pos
  16102. #define GTZC_TZIC_IER2_DMAMUX1IE_Msk GTZC_CFGR2_DMAMUX1_Msk
  16103. #define GTZC_TZIC_IER2_DMA2IE_Pos GTZC_CFGR2_DMA2_Pos
  16104. #define GTZC_TZIC_IER2_DMA2IE_Msk GTZC_CFGR2_DMA2_Msk
  16105. #define GTZC_TZIC_IER2_DMA1IE_Pos GTZC_CFGR2_DMA1_Pos
  16106. #define GTZC_TZIC_IER2_DMA1IE_Msk GTZC_CFGR2_DMA1_Msk
  16107. #define GTZC_TZIC_IER2_SYSCFGIE_Pos GTZC_CFGR2_SYSCFG_Pos
  16108. #define GTZC_TZIC_IER2_SYSCFGIE_Msk GTZC_CFGR2_SYSCFG_Msk
  16109. #define GTZC_TZIC_IER2_PWRIE_Pos GTZC_CFGR2_PWR_Pos
  16110. #define GTZC_TZIC_IER2_PWRIE_Msk GTZC_CFGR2_PWR_Msk
  16111. #define GTZC_TZIC_IER2_RTCIE_Pos GTZC_CFGR2_RTC_Pos
  16112. #define GTZC_TZIC_IER2_RTCIE_Msk GTZC_CFGR2_RTC_Msk
  16113. #define GTZC_TZIC_IER2_OCTOSPI1_REGIE_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  16114. #define GTZC_TZIC_IER2_OCTOSPI1_REGIE_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  16115. #define GTZC_TZIC_IER2_FMC_REGIE_Pos GTZC_CFGR2_FMC_REG_Pos
  16116. #define GTZC_TZIC_IER2_FMC_REGIE_Msk GTZC_CFGR2_FMC_REG_Msk
  16117. #define GTZC_TZIC_IER2_SDMMC1IE_Pos GTZC_CFGR2_SDMMC1_Pos
  16118. #define GTZC_TZIC_IER2_SDMMC1IE_Msk GTZC_CFGR2_SDMMC1_Msk
  16119. #define GTZC_TZIC_IER2_PKAIE_Pos GTZC_CFGR2_PKA_Pos
  16120. #define GTZC_TZIC_IER2_PKAIE_Msk GTZC_CFGR2_PKA_Msk
  16121. #define GTZC_TZIC_IER2_RNGIE_Pos GTZC_CFGR2_RNG_Pos
  16122. #define GTZC_TZIC_IER2_RNGIE_Msk GTZC_CFGR2_RNG_Msk
  16123. #define GTZC_TZIC_IER2_HASHIE_Pos GTZC_CFGR2_HASH_Pos
  16124. #define GTZC_TZIC_IER2_HASHIE_Msk GTZC_CFGR2_HASH_Msk
  16125. #define GTZC_TZIC_IER2_AESIE_Pos GTZC_CFGR2_AES_Pos
  16126. #define GTZC_TZIC_IER2_AESIE_Msk GTZC_CFGR2_AES_Msk
  16127. #define GTZC_TZIC_IER2_ADCIE_Pos GTZC_CFGR2_ADC_Pos
  16128. #define GTZC_TZIC_IER2_ADCIE_Msk GTZC_CFGR2_ADC_Msk
  16129. #define GTZC_TZIC_IER2_ICACHE_REGIE_Pos GTZC_CFGR2_ICACHE_REG_Pos
  16130. #define GTZC_TZIC_IER2_ICACHE_REGIE_Msk GTZC_CFGR2_ICACHE_REG_Msk
  16131. #define GTZC_TZIC_IER2_TSCIE_Pos GTZC_CFGR2_TSC_Pos
  16132. #define GTZC_TZIC_IER2_TSCIE_Msk GTZC_CFGR2_TSC_Msk
  16133. #define GTZC_TZIC_IER2_CRCIE_Pos GTZC_CFGR2_CRC_Pos
  16134. #define GTZC_TZIC_IER2_CRCIE_Msk GTZC_CFGR2_CRC_Msk
  16135. #define GTZC_TZIC_IER2_DFSDM1IE_Pos GTZC_CFGR2_DFSDM1_Pos
  16136. #define GTZC_TZIC_IER2_DFSDM1IE_Msk GTZC_CFGR2_DFSDM1_Msk
  16137. #define GTZC_TZIC_IER2_SAI2IE_Pos GTZC_CFGR2_SAI2_Pos
  16138. #define GTZC_TZIC_IER2_SAI2IE_Msk GTZC_CFGR2_SAI2_Msk
  16139. #define GTZC_TZIC_IER2_SAI1IE_Pos GTZC_CFGR2_SAI1_Pos
  16140. #define GTZC_TZIC_IER2_SAI1IE_Msk GTZC_CFGR2_SAI1_Msk
  16141. #define GTZC_TZIC_IER2_TIM17IE_Pos GTZC_CFGR2_TIM17_Pos
  16142. #define GTZC_TZIC_IER2_TIM17IE_Msk GTZC_CFGR2_TIM17_Msk
  16143. #define GTZC_TZIC_IER2_TIM16IE_Pos GTZC_CFGR2_TIM16_Pos
  16144. #define GTZC_TZIC_IER2_TIM16IE_Msk GTZC_CFGR2_TIM16_Msk
  16145. #define GTZC_TZIC_IER2_TIM15IE_Pos GTZC_CFGR2_TIM15_Pos
  16146. #define GTZC_TZIC_IER2_TIM15IE_Msk GTZC_CFGR2_TIM15_Msk
  16147. #define GTZC_TZIC_IER2_USART1IE_Pos GTZC_CFGR2_USART1_Pos
  16148. #define GTZC_TZIC_IER2_USART1IE_Msk GTZC_CFGR2_USART1_Msk
  16149. #define GTZC_TZIC_IER2_TIM8IE_Pos GTZC_CFGR2_TIM8_Pos
  16150. #define GTZC_TZIC_IER2_TIM8IE_Msk GTZC_CFGR2_TIM8_Msk
  16151. /******************* Bits definition for GTZC_TZIC_IER3 register ***************/
  16152. #define GTZC_TZIC_IER3_MPCBB2_REGIE_Pos GTZC_CFGR3_MPCBB2_REG_Pos
  16153. #define GTZC_TZIC_IER3_MPCBB2_REGIE_Msk GTZC_CFGR3_MPCBB2_REG_Msk
  16154. #define GTZC_TZIC_IER3_SRAM2IE_Pos GTZC_CFGR3_SRAM2_Pos
  16155. #define GTZC_TZIC_IER3_SRAM2IE_Msk GTZC_CFGR3_SRAM2_Msk
  16156. #define GTZC_TZIC_IER3_MPCBB1_REGIE_Pos GTZC_CFGR3_MPCBB1_REG_Pos
  16157. #define GTZC_TZIC_IER3_MPCBB1_REGIE_Msk GTZC_CFGR3_MPCBB1_REG_Msk
  16158. #define GTZC_TZIC_IER3_SRAM1IE_Pos GTZC_CFGR3_SRAM1_Pos
  16159. #define GTZC_TZIC_IER3_SRAM1IE_Msk GTZC_CFGR3_SRAM1_Msk
  16160. #define GTZC_TZIC_IER3_OCTOSPI1_MEMIE_Pos GTZC_CFGR3_OCTOSPI1_MEM_Pos
  16161. #define GTZC_TZIC_IER3_OCTOSPI1_MEMIE_Msk GTZC_CFGR3_OCTOSPI1_MEM_Msk
  16162. #define GTZC_TZIC_IER3_FMC_MEMIE_Pos GTZC_CFGR3_FMC_MEM_Pos
  16163. #define GTZC_TZIC_IER3_FMC_MEMIE_Msk GTZC_CFGR3_FMC_MEM_Msk
  16164. #define GTZC_TZIC_IER3_TZICIE_Pos GTZC_CFGR3_TZIC_Pos
  16165. #define GTZC_TZIC_IER3_TZICIE_Msk GTZC_CFGR3_TZIC_Msk
  16166. #define GTZC_TZIC_IER3_TZSCIE_Pos GTZC_CFGR3_TZSC_Pos
  16167. #define GTZC_TZIC_IER3_TZSCIE_Msk GTZC_CFGR3_TZSC_Msk
  16168. /******************* Bits definition for GTZC_TZIC_SR1 register **************/
  16169. #define GTZC_TZIC_SR1_SPI1F_Pos GTZC_CFGR1_SPI1_Pos
  16170. #define GTZC_TZIC_SR1_SPI1F_Msk GTZC_CFGR1_SPI1_Msk
  16171. #define GTZC_TZIC_SR1_TIM1F_Pos GTZC_CFGR1_TIM1_Pos
  16172. #define GTZC_TZIC_SR1_TIM1F_Msk GTZC_CFGR1_TIM1_Msk
  16173. #define GTZC_TZIC_SR1_COMPF_Pos GTZC_CFGR1_COMP_Pos
  16174. #define GTZC_TZIC_SR1_COMPF_Msk GTZC_CFGR1_COMP_Msk
  16175. #define GTZC_TZIC_SR1_VREFBUFF_Pos GTZC_CFGR1_VREFBUF_Pos
  16176. #define GTZC_TZIC_SR1_VREFBUFF_Msk GTZC_CFGR1_VREFBUF_Msk
  16177. #define GTZC_TZIC_SR1_UCPD1F_Pos GTZC_CFGR1_UCPD1_Pos
  16178. #define GTZC_TZIC_SR1_UCPD1F_Msk GTZC_CFGR1_UCPD1_Msk
  16179. #define GTZC_TZIC_SR1_USBFSF_Pos GTZC_CFGR1_USBFS_Pos
  16180. #define GTZC_TZIC_SR1_USBFSF_Msk GTZC_CFGR1_USBFS_Msk
  16181. #define GTZC_TZIC_SR1_FDCAN1F_Pos GTZC_CFGR1_FDCAN1_Pos
  16182. #define GTZC_TZIC_SR1_FDCAN1F_Msk GTZC_CFGR1_FDCAN1_Msk
  16183. #define GTZC_TZIC_SR1_LPTIM3F_Pos GTZC_CFGR1_LPTIM3_Pos
  16184. #define GTZC_TZIC_SR1_LPTIM3F_Msk GTZC_CFGR1_LPTIM3_Msk
  16185. #define GTZC_TZIC_SR1_LPTIM2F_Pos GTZC_CFGR1_LPTIM2_Pos
  16186. #define GTZC_TZIC_SR1_LPTIM2F_Msk GTZC_CFGR1_LPTIM2_Msk
  16187. #define GTZC_TZIC_SR1_I2C4F_Pos GTZC_CFGR1_I2C4_Pos
  16188. #define GTZC_TZIC_SR1_I2C4F_Msk GTZC_CFGR1_I2C4_Msk
  16189. #define GTZC_TZIC_SR1_LPUART1F_Pos GTZC_CFGR1_LPUART1_Pos
  16190. #define GTZC_TZIC_SR1_LPUART1F_Msk GTZC_CFGR1_LPUART1_Msk
  16191. #define GTZC_TZIC_SR1_LPTIM1F_Pos GTZC_CFGR1_LPTIM1_Pos
  16192. #define GTZC_TZIC_SR1_LPTIM1F_Msk GTZC_CFGR1_LPTIM1_Msk
  16193. #define GTZC_TZIC_SR1_OPAMPF_Pos GTZC_CFGR1_OPAMP_Pos
  16194. #define GTZC_TZIC_SR1_OPAMPF_Msk GTZC_CFGR1_OPAMP_Msk
  16195. #define GTZC_TZIC_SR1_DAC1F_Pos GTZC_CFGR1_DAC1_Pos
  16196. #define GTZC_TZIC_SR1_DAC1F_Msk GTZC_CFGR1_DAC1_Msk
  16197. #define GTZC_TZIC_SR1_CRSF_Pos GTZC_CFGR1_CRS_Pos
  16198. #define GTZC_TZIC_SR1_CRSF_Msk GTZC_CFGR1_CRS_Msk
  16199. #define GTZC_TZIC_SR1_I2C3F_Pos GTZC_CFGR1_I2C3_Pos
  16200. #define GTZC_TZIC_SR1_I2C3F_Msk GTZC_CFGR1_I2C3_Msk
  16201. #define GTZC_TZIC_SR1_I2C2F_Pos GTZC_CFGR1_I2C2_Pos
  16202. #define GTZC_TZIC_SR1_I2C2F_Msk GTZC_CFGR1_I2C2_Msk
  16203. #define GTZC_TZIC_SR1_I2C1F_Pos GTZC_CFGR1_I2C1_Pos
  16204. #define GTZC_TZIC_SR1_I2C1F_Msk GTZC_CFGR1_I2C1_Msk
  16205. #define GTZC_TZIC_SR1_UART5F_Pos GTZC_CFGR1_UART5_Pos
  16206. #define GTZC_TZIC_SR1_UART5F_Msk GTZC_CFGR1_UART5_Msk
  16207. #define GTZC_TZIC_SR1_UART4F_Pos GTZC_CFGR1_UART4_Pos
  16208. #define GTZC_TZIC_SR1_UART4F_Msk GTZC_CFGR1_UART4_Msk
  16209. #define GTZC_TZIC_SR1_USART3F_Pos GTZC_CFGR1_USART3_Pos
  16210. #define GTZC_TZIC_SR1_USART3F_Msk GTZC_CFGR1_USART3_Msk
  16211. #define GTZC_TZIC_SR1_USART2F_Pos GTZC_CFGR1_USART2_Pos
  16212. #define GTZC_TZIC_SR1_USART2F_Msk GTZC_CFGR1_USART2_Msk
  16213. #define GTZC_TZIC_SR1_SPI3F_Pos GTZC_CFGR1_SPI3_Pos
  16214. #define GTZC_TZIC_SR1_SPI3F_Msk GTZC_CFGR1_SPI3_Msk
  16215. #define GTZC_TZIC_SR1_SPI2F_Pos GTZC_CFGR1_SPI2_Pos
  16216. #define GTZC_TZIC_SR1_SPI2F_Msk GTZC_CFGR1_SPI2_Msk
  16217. #define GTZC_TZIC_SR1_IWDGF_Pos GTZC_CFGR1_IWDG_Pos
  16218. #define GTZC_TZIC_SR1_IWDGF_Msk GTZC_CFGR1_IWDG_Msk
  16219. #define GTZC_TZIC_SR1_WWDGF_Pos GTZC_CFGR1_WWDG_Pos
  16220. #define GTZC_TZIC_SR1_WWDGF_Msk GTZC_CFGR1_WWDG_Msk
  16221. #define GTZC_TZIC_SR1_TIM7F_Pos GTZC_CFGR1_TIM7_Pos
  16222. #define GTZC_TZIC_SR1_TIM7F_Msk GTZC_CFGR1_TIM7_Msk
  16223. #define GTZC_TZIC_SR1_TIM6F_Pos GTZC_CFGR1_TIM6_Pos
  16224. #define GTZC_TZIC_SR1_TIM6F_Msk GTZC_CFGR1_TIM6_Msk
  16225. #define GTZC_TZIC_SR1_TIM5F_Pos GTZC_CFGR1_TIM5_Pos
  16226. #define GTZC_TZIC_SR1_TIM5F_Msk GTZC_CFGR1_TIM5_Msk
  16227. #define GTZC_TZIC_SR1_TIM4F_Pos GTZC_CFGR1_TIM4_Pos
  16228. #define GTZC_TZIC_SR1_TIM4F_Msk GTZC_CFGR1_TIM4_Msk
  16229. #define GTZC_TZIC_SR1_TIM3F_Pos GTZC_CFGR1_TIM3_Pos
  16230. #define GTZC_TZIC_SR1_TIM3F_Msk GTZC_CFGR1_TIM3_Msk
  16231. #define GTZC_TZIC_SR1_TIM2F_Pos GTZC_CFGR1_TIM2_Pos
  16232. #define GTZC_TZIC_SR1_TIM2F_Msk GTZC_CFGR1_TIM2_Msk
  16233. /******************* Bits definition for GTZC_TZIC_SR2 register **************/
  16234. #define GTZC_TZIC_SR2_OTFDEC1F_Pos GTZC_CFGR2_OTFDEC1_Pos
  16235. #define GTZC_TZIC_SR2_OTFDEC1F_Msk GTZC_CFGR2_OTFDEC1_Msk
  16236. #define GTZC_TZIC_SR2_EXTIF_Pos GTZC_CFGR2_EXTI_Pos
  16237. #define GTZC_TZIC_SR2_EXTIF_Msk GTZC_CFGR2_EXTI_Msk
  16238. #define GTZC_TZIC_SR2_FLASH_REGF_Pos GTZC_CFGR2_FLASH_REG_Pos
  16239. #define GTZC_TZIC_SR2_FLASH_REGF_Msk GTZC_CFGR2_FLASH_REG_Msk
  16240. #define GTZC_TZIC_SR2_FLASHF_Pos GTZC_CFGR2_FLASH_Pos
  16241. #define GTZC_TZIC_SR2_FLASHF_Msk GTZC_CFGR2_FLASH_Msk
  16242. #define GTZC_TZIC_SR2_RCCF_Pos GTZC_CFGR2_RCC_Pos
  16243. #define GTZC_TZIC_SR2_RCCF_Msk GTZC_CFGR2_RCC_Msk
  16244. #define GTZC_TZIC_SR2_DMAMUX1F_Pos GTZC_CFGR2_DMAMUX1_Pos
  16245. #define GTZC_TZIC_SR2_DMAMUX1F_Msk GTZC_CFGR2_DMAMUX1_Msk
  16246. #define GTZC_TZIC_SR2_DMA2F_Pos GTZC_CFGR2_DMA2_Pos
  16247. #define GTZC_TZIC_SR2_DMA2F_Msk GTZC_CFGR2_DMA2_Msk
  16248. #define GTZC_TZIC_SR2_DMA1F_Pos GTZC_CFGR2_DMA1_Pos
  16249. #define GTZC_TZIC_SR2_DMA1F_Msk GTZC_CFGR2_DMA1_Msk
  16250. #define GTZC_TZIC_SR2_SYSCFGF_Pos GTZC_CFGR2_SYSCFG_Pos
  16251. #define GTZC_TZIC_SR2_SYSCFGF_Msk GTZC_CFGR2_SYSCFG_Msk
  16252. #define GTZC_TZIC_SR2_PWRF_Pos GTZC_CFGR2_PWR_Pos
  16253. #define GTZC_TZIC_SR2_PWRF_Msk GTZC_CFGR2_PWR_Msk
  16254. #define GTZC_TZIC_SR2_RTCF_Pos GTZC_CFGR2_RTC_Pos
  16255. #define GTZC_TZIC_SR2_RTCF_Msk GTZC_CFGR2_RTC_Msk
  16256. #define GTZC_TZIC_SR2_OCTOSPI1_REGF_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  16257. #define GTZC_TZIC_SR2_OCTOSPI1_REGF_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  16258. #define GTZC_TZIC_SR2_FMC_REGF_Pos GTZC_CFGR2_FMC_REG_Pos
  16259. #define GTZC_TZIC_SR2_FMC_REGF_Msk GTZC_CFGR2_FMC_REG_Msk
  16260. #define GTZC_TZIC_SR2_SDMMC1F_Pos GTZC_CFGR2_SDMMC1_Pos
  16261. #define GTZC_TZIC_SR2_SDMMC1F_Msk GTZC_CFGR2_SDMMC1_Msk
  16262. #define GTZC_TZIC_SR2_PKAF_Pos GTZC_CFGR2_PKA_Pos
  16263. #define GTZC_TZIC_SR2_PKAF_Msk GTZC_CFGR2_PKA_Msk
  16264. #define GTZC_TZIC_SR2_RNGF_Pos GTZC_CFGR2_RNG_Pos
  16265. #define GTZC_TZIC_SR2_RNGF_Msk GTZC_CFGR2_RNG_Msk
  16266. #define GTZC_TZIC_SR2_HASHF_Pos GTZC_CFGR2_HASH_Pos
  16267. #define GTZC_TZIC_SR2_HASHF_Msk GTZC_CFGR2_HASH_Msk
  16268. #define GTZC_TZIC_SR2_AESF_Pos GTZC_CFGR2_AES_Pos
  16269. #define GTZC_TZIC_SR2_AESF_Msk GTZC_CFGR2_AES_Msk
  16270. #define GTZC_TZIC_SR2_ADCF_Pos GTZC_CFGR2_ADC_Pos
  16271. #define GTZC_TZIC_SR2_ADCF_Msk GTZC_CFGR2_ADC_Msk
  16272. #define GTZC_TZIC_SR2_ICACHE_REGF_Pos GTZC_CFGR2_ICACHE_REG_Pos
  16273. #define GTZC_TZIC_SR2_ICACHE_REGF_Msk GTZC_CFGR2_ICACHE_REG_Msk
  16274. #define GTZC_TZIC_SR2_TSCF_Pos GTZC_CFGR2_TSC_Pos
  16275. #define GTZC_TZIC_SR2_TSCF_Msk GTZC_CFGR2_TSC_Msk
  16276. #define GTZC_TZIC_SR2_CRCF_Pos GTZC_CFGR2_CRC_Pos
  16277. #define GTZC_TZIC_SR2_CRCF_Msk GTZC_CFGR2_CRC_Msk
  16278. #define GTZC_TZIC_SR2_DFSDM1F_Pos GTZC_CFGR2_DFSDM1_Pos
  16279. #define GTZC_TZIC_SR2_DFSDM1F_Msk GTZC_CFGR2_DFSDM1_Msk
  16280. #define GTZC_TZIC_SR2_SAI2F_Pos GTZC_CFGR2_SAI2_Pos
  16281. #define GTZC_TZIC_SR2_SAI2F_Msk GTZC_CFGR2_SAI2_Msk
  16282. #define GTZC_TZIC_SR2_SAI1F_Pos GTZC_CFGR2_SAI1_Pos
  16283. #define GTZC_TZIC_SR2_SAI1F_Msk GTZC_CFGR2_SAI1_Msk
  16284. #define GTZC_TZIC_SR2_TIM17F_Pos GTZC_CFGR2_TIM17_Pos
  16285. #define GTZC_TZIC_SR2_TIM17F_Msk GTZC_CFGR2_TIM17_Msk
  16286. #define GTZC_TZIC_SR2_TIM16F_Pos GTZC_CFGR2_TIM16_Pos
  16287. #define GTZC_TZIC_SR2_TIM16F_Msk GTZC_CFGR2_TIM16_Msk
  16288. #define GTZC_TZIC_SR2_TIM15F_Pos GTZC_CFGR2_TIM15_Pos
  16289. #define GTZC_TZIC_SR2_TIM15F_Msk GTZC_CFGR2_TIM15_Msk
  16290. #define GTZC_TZIC_SR2_USART1F_Pos GTZC_CFGR2_USART1_Pos
  16291. #define GTZC_TZIC_SR2_USART1F_Msk GTZC_CFGR2_USART1_Msk
  16292. #define GTZC_TZIC_SR2_TIM8F_Pos GTZC_CFGR2_TIM8_Pos
  16293. #define GTZC_TZIC_SR2_TIM8F_Msk GTZC_CFGR2_TIM8_Msk
  16294. /******************* Bits definition for GTZC_TZIC_SR3 register **************/
  16295. #define GTZC_TZIC_SR3_MPCBB2_REGF_Pos GTZC_CFGR3_MPCBB2_REG_Pos
  16296. #define GTZC_TZIC_SR3_MPCBB2_REGF_Msk GTZC_CFGR3_MPCBB2_REG_Msk
  16297. #define GTZC_TZIC_SR3_SRAM2F_Pos GTZC_CFGR3_SRAM2_Pos
  16298. #define GTZC_TZIC_SR3_SRAM2F_Msk GTZC_CFGR3_SRAM2_Msk
  16299. #define GTZC_TZIC_SR3_MPCBB1_REGF_Pos GTZC_CFGR3_MPCBB1_REG_Pos
  16300. #define GTZC_TZIC_SR3_MPCBB1_REGF_Msk GTZC_CFGR3_MPCBB1_REG_Msk
  16301. #define GTZC_TZIC_SR3_SRAM1F_Pos GTZC_CFGR3_SRAM1_Pos
  16302. #define GTZC_TZIC_SR3_SRAM1F_Msk GTZC_CFGR3_SRAM1_Msk
  16303. #define GTZC_TZIC_SR3_OCTOSPI1_MEMF_Pos GTZC_CFGR3_OCTOSPI1_MEM_Pos
  16304. #define GTZC_TZIC_SR3_OCTOSPI1_MEMF_Msk GTZC_CFGR3_OCTOSPI1_MEM_Msk
  16305. #define GTZC_TZIC_SR3_FMC_MEMF_Pos GTZC_CFGR3_FMC_MEM_Pos
  16306. #define GTZC_TZIC_SR3_FMC_MEMF_Msk GTZC_CFGR3_FMC_MEM_Msk
  16307. #define GTZC_TZIC_SR3_TZICF_Pos GTZC_CFGR3_TZIC_Pos
  16308. #define GTZC_TZIC_SR3_TZICF_Msk GTZC_CFGR3_TZIC_Msk
  16309. #define GTZC_TZIC_SR3_TZSCF_Pos GTZC_CFGR3_TZSC_Pos
  16310. #define GTZC_TZIC_SR3_TZSCF_Msk GTZC_CFGR3_TZSC_Msk
  16311. /****************** Bits definition for GTZC_TZIC_FCR1 register ****************/
  16312. #define GTZC_TZIC_FCR1_SPI1FC_Pos GTZC_CFGR1_SPI1_Pos
  16313. #define GTZC_TZIC_FCR1_SPI1FC_Msk GTZC_CFGR1_SPI1_Msk
  16314. #define GTZC_TZIC_FCR1_TIM1FC_Pos GTZC_CFGR1_TIM1_Pos
  16315. #define GTZC_TZIC_FCR1_TIM1FC_Msk GTZC_CFGR1_TIM1_Msk
  16316. #define GTZC_TZIC_FCR1_COMPFC_Pos GTZC_CFGR1_COMP_Pos
  16317. #define GTZC_TZIC_FCR1_COMPFC_Msk GTZC_CFGR1_COMP_Msk
  16318. #define GTZC_TZIC_FCR1_VREFBUFFC_Pos GTZC_CFGR1_VREFBUF_Pos
  16319. #define GTZC_TZIC_FCR1_VREFBUFFC_Msk GTZC_CFGR1_VREFBUF_Msk
  16320. #define GTZC_TZIC_FCR1_UCPD1FC_Pos GTZC_CFGR1_UCPD1_Pos
  16321. #define GTZC_TZIC_FCR1_UCPD1FC_Msk GTZC_CFGR1_UCPD1_Msk
  16322. #define GTZC_TZIC_FCR1_USBFSFC_Pos GTZC_CFGR1_USBFS_Pos
  16323. #define GTZC_TZIC_FCR1_USBFSFC_Msk GTZC_CFGR1_USBFS_Msk
  16324. #define GTZC_TZIC_FCR1_FDCAN1FC_Pos GTZC_CFGR1_FDCAN1_Pos
  16325. #define GTZC_TZIC_FCR1_FDCAN1FC_Msk GTZC_CFGR1_FDCAN1_Msk
  16326. #define GTZC_TZIC_FCR1_LPTIM3FC_Pos GTZC_CFGR1_LPTIM3_Pos
  16327. #define GTZC_TZIC_FCR1_LPTIM3FC_Msk GTZC_CFGR1_LPTIM3_Msk
  16328. #define GTZC_TZIC_FCR1_LPTIM2FC_Pos GTZC_CFGR1_LPTIM2_Pos
  16329. #define GTZC_TZIC_FCR1_LPTIM2FC_Msk GTZC_CFGR1_LPTIM2_Msk
  16330. #define GTZC_TZIC_FCR1_I2C4FC_Pos GTZC_CFGR1_I2C4_Pos
  16331. #define GTZC_TZIC_FCR1_I2C4FC_Msk GTZC_CFGR1_I2C4_Msk
  16332. #define GTZC_TZIC_FCR1_LPUART1FC_Pos GTZC_CFGR1_LPUART1_Pos
  16333. #define GTZC_TZIC_FCR1_LPUART1FC_Msk GTZC_CFGR1_LPUART1_Msk
  16334. #define GTZC_TZIC_FCR1_LPTIM1FC_Pos GTZC_CFGR1_LPTIM1_Pos
  16335. #define GTZC_TZIC_FCR1_LPTIM1FC_Msk GTZC_CFGR1_LPTIM1_Msk
  16336. #define GTZC_TZIC_FCR1_OPAMPFC_Pos GTZC_CFGR1_OPAMP_Pos
  16337. #define GTZC_TZIC_FCR1_OPAMPFC_Msk GTZC_CFGR1_OPAMP_Msk
  16338. #define GTZC_TZIC_FCR1_DAC1FC_Pos GTZC_CFGR1_DAC1_Pos
  16339. #define GTZC_TZIC_FCR1_DAC1FC_Msk GTZC_CFGR1_DAC1_Msk
  16340. #define GTZC_TZIC_FCR1_CRSFC_Pos GTZC_CFGR1_CRS_Pos
  16341. #define GTZC_TZIC_FCR1_CRSFC_Msk GTZC_CFGR1_CRS_Msk
  16342. #define GTZC_TZIC_FCR1_I2C3FC_Pos GTZC_CFGR1_I2C3_Pos
  16343. #define GTZC_TZIC_FCR1_I2C3FC_Msk GTZC_CFGR1_I2C3_Msk
  16344. #define GTZC_TZIC_FCR1_I2C2FC_Pos GTZC_CFGR1_I2C2_Pos
  16345. #define GTZC_TZIC_FCR1_I2C2FC_Msk GTZC_CFGR1_I2C2_Msk
  16346. #define GTZC_TZIC_FCR1_I2C1FC_Pos GTZC_CFGR1_I2C1_Pos
  16347. #define GTZC_TZIC_FCR1_I2C1FC_Msk GTZC_CFGR1_I2C1_Msk
  16348. #define GTZC_TZIC_FCR1_UART5FC_Pos GTZC_CFGR1_UART5_Pos
  16349. #define GTZC_TZIC_FCR1_UART5FC_Msk GTZC_CFGR1_UART5_Msk
  16350. #define GTZC_TZIC_FCR1_UART4FC_Pos GTZC_CFGR1_UART4_Pos
  16351. #define GTZC_TZIC_FCR1_UART4FC_Msk GTZC_CFGR1_UART4_Msk
  16352. #define GTZC_TZIC_FCR1_USART3FC_Pos GTZC_CFGR1_USART3_Pos
  16353. #define GTZC_TZIC_FCR1_USART3FC_Msk GTZC_CFGR1_USART3_Msk
  16354. #define GTZC_TZIC_FCR1_USART2FC_Pos GTZC_CFGR1_USART2_Pos
  16355. #define GTZC_TZIC_FCR1_USART2FC_Msk GTZC_CFGR1_USART2_Msk
  16356. #define GTZC_TZIC_FCR1_SPI3FC_Pos GTZC_CFGR1_SPI3_Pos
  16357. #define GTZC_TZIC_FCR1_SPI3FC_Msk GTZC_CFGR1_SPI3_Msk
  16358. #define GTZC_TZIC_FCR1_SPI2FC_Pos GTZC_CFGR1_SPI2_Pos
  16359. #define GTZC_TZIC_FCR1_SPI2FC_Msk GTZC_CFGR1_SPI2_Msk
  16360. #define GTZC_TZIC_FCR1_IWDGFC_Pos GTZC_CFGR1_IWDG_Pos
  16361. #define GTZC_TZIC_FCR1_IWDGFC_Msk GTZC_CFGR1_IWDG_Msk
  16362. #define GTZC_TZIC_FCR1_WWDGFC_Pos GTZC_CFGR1_WWDG_Pos
  16363. #define GTZC_TZIC_FCR1_WWDGFC_Msk GTZC_CFGR1_WWDG_Msk
  16364. #define GTZC_TZIC_FCR1_TIM7FC_Pos GTZC_CFGR1_TIM7_Pos
  16365. #define GTZC_TZIC_FCR1_TIM7FC_Msk GTZC_CFGR1_TIM7_Msk
  16366. #define GTZC_TZIC_FCR1_TIM6FC_Pos GTZC_CFGR1_TIM6_Pos
  16367. #define GTZC_TZIC_FCR1_TIM6FC_Msk GTZC_CFGR1_TIM6_Msk
  16368. #define GTZC_TZIC_FCR1_TIM5FC_Pos GTZC_CFGR1_TIM5_Pos
  16369. #define GTZC_TZIC_FCR1_TIM5FC_Msk GTZC_CFGR1_TIM5_Msk
  16370. #define GTZC_TZIC_FCR1_TIM4FC_Pos GTZC_CFGR1_TIM4_Pos
  16371. #define GTZC_TZIC_FCR1_TIM4FC_Msk GTZC_CFGR1_TIM4_Msk
  16372. #define GTZC_TZIC_FCR1_TIM3FC_Pos GTZC_CFGR1_TIM3_Pos
  16373. #define GTZC_TZIC_FCR1_TIM3FC_Msk GTZC_CFGR1_TIM3_Msk
  16374. #define GTZC_TZIC_FCR1_TIM2FC_Pos GTZC_CFGR1_TIM2_Pos
  16375. #define GTZC_TZIC_FCR1_TIM2FC_Msk GTZC_CFGR1_TIM2_Msk
  16376. /****************** Bits definition for GTZC_TZIC_FCR2 register ****************/
  16377. #define GTZC_TZIC_FCR2_OTFDEC1FC_Pos GTZC_CFGR2_OTFDEC1_Pos
  16378. #define GTZC_TZIC_FCR2_OTFDEC1FC_Msk GTZC_CFGR2_OTFDEC1_Msk
  16379. #define GTZC_TZIC_FCR2_EXTIFC_Pos GTZC_CFGR2_EXTI_Pos
  16380. #define GTZC_TZIC_FCR2_EXTIFC_Msk GTZC_CFGR2_EXTI_Msk
  16381. #define GTZC_TZIC_FCR2_FLASH_REGFC_Pos GTZC_CFGR2_FLASH_REG_Pos
  16382. #define GTZC_TZIC_FCR2_FLASH_REGFC_Msk GTZC_CFGR2_FLASH_REG_Msk
  16383. #define GTZC_TZIC_FCR2_FLASHFC_Pos GTZC_CFGR2_FLASH_Pos
  16384. #define GTZC_TZIC_FCR2_FLASHFC_Msk GTZC_CFGR2_FLASH_Msk
  16385. #define GTZC_TZIC_FCR2_RCCFC_Pos GTZC_CFGR2_RCC_Pos
  16386. #define GTZC_TZIC_FCR2_RCCFC_Msk GTZC_CFGR2_RCC_Msk
  16387. #define GTZC_TZIC_FCR2_DMAMUX1FC_Pos GTZC_CFGR2_DMAMUX1_Pos
  16388. #define GTZC_TZIC_FCR2_DMAMUX1FC_Msk GTZC_CFGR2_DMAMUX1_Msk
  16389. #define GTZC_TZIC_FCR2_DMA2FC_Pos GTZC_CFGR2_DMA2_Pos
  16390. #define GTZC_TZIC_FCR2_DMA2FC_Msk GTZC_CFGR2_DMA2_Msk
  16391. #define GTZC_TZIC_FCR2_DMA1FC_Pos GTZC_CFGR2_DMA1_Pos
  16392. #define GTZC_TZIC_FCR2_DMA1FC_Msk GTZC_CFGR2_DMA1_Msk
  16393. #define GTZC_TZIC_FCR2_SYSCFGFC_Pos GTZC_CFGR2_SYSCFG_Pos
  16394. #define GTZC_TZIC_FCR2_SYSCFGFC_Msk GTZC_CFGR2_SYSCFG_Msk
  16395. #define GTZC_TZIC_FCR2_PWRFC_Pos GTZC_CFGR2_PWR_Pos
  16396. #define GTZC_TZIC_FCR2_PWRFC_Msk GTZC_CFGR2_PWR_Msk
  16397. #define GTZC_TZIC_FCR2_RTCFC_Pos GTZC_CFGR2_RTC_Pos
  16398. #define GTZC_TZIC_FCR2_RTCFC_Msk GTZC_CFGR2_RTC_Msk
  16399. #define GTZC_TZIC_FCR2_OCTOSPI1_REGFC_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  16400. #define GTZC_TZIC_FCR2_OCTOSPI1_REGFC_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  16401. #define GTZC_TZIC_FCR2_FMC_REGFC_Pos GTZC_CFGR2_FMC_REG_Pos
  16402. #define GTZC_TZIC_FCR2_FMC_REGFC_Msk GTZC_CFGR2_FMC_REG_Msk
  16403. #define GTZC_TZIC_FCR2_SDMMC1FC_Pos GTZC_CFGR2_SDMMC1_Pos
  16404. #define GTZC_TZIC_FCR2_SDMMC1FC_Msk GTZC_CFGR2_SDMMC1_Msk
  16405. #define GTZC_TZIC_FCR2_PKAFC_Pos GTZC_CFGR2_PKA_Pos
  16406. #define GTZC_TZIC_FCR2_PKAFC_Msk GTZC_CFGR2_PKA_Msk
  16407. #define GTZC_TZIC_FCR2_RNGFC_Pos GTZC_CFGR2_RNG_Pos
  16408. #define GTZC_TZIC_FCR2_RNGFC_Msk GTZC_CFGR2_RNG_Msk
  16409. #define GTZC_TZIC_FCR2_HASHFC_Pos GTZC_CFGR2_HASH_Pos
  16410. #define GTZC_TZIC_FCR2_HASHFC_Msk GTZC_CFGR2_HASH_Msk
  16411. #define GTZC_TZIC_FCR2_AESFC_Pos GTZC_CFGR2_AES_Pos
  16412. #define GTZC_TZIC_FCR2_AESFC_Msk GTZC_CFGR2_AES_Msk
  16413. #define GTZC_TZIC_FCR2_ADCFC_Pos GTZC_CFGR2_ADC_Pos
  16414. #define GTZC_TZIC_FCR2_ADCFC_Msk GTZC_CFGR2_ADC_Msk
  16415. #define GTZC_TZIC_FCR2_ICACHE_REGFC_Pos GTZC_CFGR2_ICACHE_REG_Pos
  16416. #define GTZC_TZIC_FCR2_ICACHE_REGFC_Msk GTZC_CFGR2_ICACHE_REG_Msk
  16417. #define GTZC_TZIC_FCR2_TSCFC_Pos GTZC_CFGR2_TSC_Pos
  16418. #define GTZC_TZIC_FCR2_TSCFC_Msk GTZC_CFGR2_TSC_Msk
  16419. #define GTZC_TZIC_FCR2_CRCFC_Pos GTZC_CFGR2_CRC_Pos
  16420. #define GTZC_TZIC_FCR2_CRCFC_Msk GTZC_CFGR2_CRC_Msk
  16421. #define GTZC_TZIC_FCR2_DFSDM1FC_Pos GTZC_CFGR2_DFSDM1_Pos
  16422. #define GTZC_TZIC_FCR2_DFSDM1FC_Msk GTZC_CFGR2_DFSDM1_Msk
  16423. #define GTZC_TZIC_FCR2_SAI2FC_Pos GTZC_CFGR2_SAI2_Pos
  16424. #define GTZC_TZIC_FCR2_SAI2FC_Msk GTZC_CFGR2_SAI2_Msk
  16425. #define GTZC_TZIC_FCR2_SAI1FC_Pos GTZC_CFGR2_SAI1_Pos
  16426. #define GTZC_TZIC_FCR2_SAI1FC_Msk GTZC_CFGR2_SAI1_Msk
  16427. #define GTZC_TZIC_FCR2_TIM17FC_Pos GTZC_CFGR2_TIM17_Pos
  16428. #define GTZC_TZIC_FCR2_TIM17FC_Msk GTZC_CFGR2_TIM17_Msk
  16429. #define GTZC_TZIC_FCR2_TIM16FC_Pos GTZC_CFGR2_TIM16_Pos
  16430. #define GTZC_TZIC_FCR2_TIM16FC_Msk GTZC_CFGR2_TIM16_Msk
  16431. #define GTZC_TZIC_FCR2_TIM15FC_Pos GTZC_CFGR2_TIM15_Pos
  16432. #define GTZC_TZIC_FCR2_TIM15FC_Msk GTZC_CFGR2_TIM15_Msk
  16433. #define GTZC_TZIC_FCR2_USART1FC_Pos GTZC_CFGR2_USART1_Pos
  16434. #define GTZC_TZIC_FCR2_USART1FC_Msk GTZC_CFGR2_USART1_Msk
  16435. #define GTZC_TZIC_FCR2_TIM8FC_Pos GTZC_CFGR2_TIM8_Pos
  16436. #define GTZC_TZIC_FCR2_TIM8FC_Msk GTZC_CFGR2_TIM8_Msk
  16437. /****************** Bits definition for GTZC_TZIC_FCR3 register ****************/
  16438. #define GTZC_TZIC_FCR3_MPCBB2_REGFC_Pos GTZC_CFGR3_MPCBB2_REG_Pos
  16439. #define GTZC_TZIC_FCR3_MPCBB2_REGFC_Msk GTZC_CFGR3_MPCBB2_REG_Msk
  16440. #define GTZC_TZIC_FCR3_MPCBB2FC_Pos GTZC_CFGR3_SRAM2_Pos
  16441. #define GTZC_TZIC_FCR3_MPCBB2FC_Msk GTZC_CFGR3_SRAM2_Msk
  16442. #define GTZC_TZIC_FCR3_MPCBB1_REGFC_Pos GTZC_CFGR3_MPCBB1_REG_Pos
  16443. #define GTZC_TZIC_FCR3_MPCBB1_REGFC_Msk GTZC_CFGR3_MPCBB1_REG_Msk
  16444. #define GTZC_TZIC_FCR3_MPCBB1FC_Pos GTZC_CFGR3_SRAM1_Pos
  16445. #define GTZC_TZIC_FCR3_MPCBB1FC_Msk GTZC_CFGR3_MPCBB1_Msk
  16446. #define GTZC_TZIC_FCR3_OCTOSPI1_MEMFC_Pos GTZC_CFGR3_OCTOSPI1_MEM_Pos
  16447. #define GTZC_TZIC_FCR3_OCTOSPI1_MEMFC_Msk GTZC_CFGR3_OCTOSPI1_MEM_Msk
  16448. #define GTZC_TZIC_FCR3_FMC_MEMFC_Pos GTZC_CFGR3_FMC_MEM_Pos
  16449. #define GTZC_TZIC_FCR3_FMC_MEMFC_Msk GTZC_CFGR3_FMC_MEM_Msk
  16450. #define GTZC_TZIC_FCR3_TZICFC_Pos GTZC_CFGR3_TZIC_Pos
  16451. #define GTZC_TZIC_FCR3_TZICFC_Msk GTZC_CFGR3_TZIC_Msk
  16452. #define GTZC_TZIC_FCR3_TZSCFC_Pos GTZC_CFGR3_TZSC_Pos
  16453. #define GTZC_TZIC_FCR3_TZSCFC_Msk GTZC_CFGR3_TZSC_Msk
  16454. /******************* Bits definition for GTZC_MPCBB_CR register *****************/
  16455. #define GTZC_MPCBB_CR_LCK_Pos (0U)
  16456. #define GTZC_MPCBB_CR_LCK_Msk (0x01UL << GTZC_MPCBB_CR_LCK_Pos) /*!< 0x00000001 */
  16457. #define GTZC_MPCBB_CR_INVSECSTATE_Pos (30U)
  16458. #define GTZC_MPCBB_CR_INVSECSTATE_Msk (0x01UL << GTZC_MPCBB_CR_INVSECSTATE_Pos) /*!< 0x40000000 */
  16459. #define GTZC_MPCBB_CR_SRWILADIS_Pos (31U)
  16460. #define GTZC_MPCBB_CR_SRWILADIS_Msk (0x01UL << GTZC_MPCBB_CR_SRWILADIS_Pos) /*!< 0x80000000 */
  16461. /******************* Bits definition for GTZC_MPCBB_LCKVTR1 register ************/
  16462. #define GTZC_MPCBB_LCKVTR1_LCKSB0_Pos (0U)
  16463. #define GTZC_MPCBB_LCKVTR1_LCKSB0_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB0_Pos) /*!< 0x00000001 */
  16464. #define GTZC_MPCBB_LCKVTR1_LCKSB1_Pos (1U)
  16465. #define GTZC_MPCBB_LCKVTR1_LCKSB1_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB1_Pos) /*!< 0x00000002 */
  16466. #define GTZC_MPCBB_LCKVTR1_LCKSB2_Pos (2U)
  16467. #define GTZC_MPCBB_LCKVTR1_LCKSB2_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB2_Pos) /*!< 0x00000004 */
  16468. #define GTZC_MPCBB_LCKVTR1_LCKSB3_Pos (3U)
  16469. #define GTZC_MPCBB_LCKVTR1_LCKSB3_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB3_Pos) /*!< 0x00000008 */
  16470. #define GTZC_MPCBB_LCKVTR1_LCKSB4_Pos (4U)
  16471. #define GTZC_MPCBB_LCKVTR1_LCKSB4_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB4_Pos) /*!< 0x00000010 */
  16472. #define GTZC_MPCBB_LCKVTR1_LCKSB5_Pos (5U)
  16473. #define GTZC_MPCBB_LCKVTR1_LCKSB5_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB5_Pos) /*!< 0x00000020 */
  16474. #define GTZC_MPCBB_LCKVTR1_LCKSB6_Pos (6U)
  16475. #define GTZC_MPCBB_LCKVTR1_LCKSB6_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB6_Pos) /*!< 0x00000040 */
  16476. #define GTZC_MPCBB_LCKVTR1_LCKSB7_Pos (7U)
  16477. #define GTZC_MPCBB_LCKVTR1_LCKSB7_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB7_Pos) /*!< 0x00000080 */
  16478. #define GTZC_MPCBB_LCKVTR1_LCKSB8_Pos (8U)
  16479. #define GTZC_MPCBB_LCKVTR1_LCKSB8_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB8_Pos) /*!< 0x00000100 */
  16480. #define GTZC_MPCBB_LCKVTR1_LCKSB9_Pos (9U)
  16481. #define GTZC_MPCBB_LCKVTR1_LCKSB9_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB9_Pos) /*!< 0x00000200 */
  16482. #define GTZC_MPCBB_LCKVTR1_LCKSB10_Pos (10U)
  16483. #define GTZC_MPCBB_LCKVTR1_LCKSB10_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB10_Pos) /*!< 0x00000400 */
  16484. #define GTZC_MPCBB_LCKVTR1_LCKSB11_Pos (11U)
  16485. #define GTZC_MPCBB_LCKVTR1_LCKSB11_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB11_Pos) /*!< 0x00000800 */
  16486. #define GTZC_MPCBB_LCKVTR1_LCKSB12_Pos (12U)
  16487. #define GTZC_MPCBB_LCKVTR1_LCKSB12_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB12_Pos) /*!< 0x00001000 */
  16488. #define GTZC_MPCBB_LCKVTR1_LCKSB13_Pos (13U)
  16489. #define GTZC_MPCBB_LCKVTR1_LCKSB13_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB13_Pos) /*!< 0x00002000 */
  16490. #define GTZC_MPCBB_LCKVTR1_LCKSB14_Pos (14U)
  16491. #define GTZC_MPCBB_LCKVTR1_LCKSB14_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB14_Pos) /*!< 0x00004000 */
  16492. #define GTZC_MPCBB_LCKVTR1_LCKSB15_Pos (15U)
  16493. #define GTZC_MPCBB_LCKVTR1_LCKSB15_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB15_Pos) /*!< 0x00008000 */
  16494. #define GTZC_MPCBB_LCKVTR1_LCKSB16_Pos (16U)
  16495. #define GTZC_MPCBB_LCKVTR1_LCKSB16_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB16_Pos) /*!< 0x00010000 */
  16496. #define GTZC_MPCBB_LCKVTR1_LCKSB17_Pos (17U)
  16497. #define GTZC_MPCBB_LCKVTR1_LCKSB17_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB17_Pos) /*!< 0x00020000 */
  16498. #define GTZC_MPCBB_LCKVTR1_LCKSB18_Pos (18U)
  16499. #define GTZC_MPCBB_LCKVTR1_LCKSB18_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB18_Pos) /*!< 0x00040000 */
  16500. #define GTZC_MPCBB_LCKVTR1_LCKSB19_Pos (19U)
  16501. #define GTZC_MPCBB_LCKVTR1_LCKSB19_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB19_Pos) /*!< 0x00080000 */
  16502. #define GTZC_MPCBB_LCKVTR1_LCKSB20_Pos (20U)
  16503. #define GTZC_MPCBB_LCKVTR1_LCKSB20_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB20_Pos) /*!< 0x00100000 */
  16504. #define GTZC_MPCBB_LCKVTR1_LCKSB21_Pos (21U)
  16505. #define GTZC_MPCBB_LCKVTR1_LCKSB21_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB21_Pos) /*!< 0x00200000 */
  16506. #define GTZC_MPCBB_LCKVTR1_LCKSB22_Pos (22U)
  16507. #define GTZC_MPCBB_LCKVTR1_LCKSB22_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB22_Pos) /*!< 0x00400000 */
  16508. #define GTZC_MPCBB_LCKVTR1_LCKSB23_Pos (23U)
  16509. #define GTZC_MPCBB_LCKVTR1_LCKSB23_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB23_Pos) /*!< 0x00800000 */
  16510. #define GTZC_MPCBB_LCKVTR1_LCKSB24_Pos (24U)
  16511. #define GTZC_MPCBB_LCKVTR1_LCKSB24_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB24_Pos) /*!< 0x01000000 */
  16512. #define GTZC_MPCBB_LCKVTR1_LCKSB25_Pos (25U)
  16513. #define GTZC_MPCBB_LCKVTR1_LCKSB25_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB25_Pos) /*!< 0x02000000 */
  16514. #define GTZC_MPCBB_LCKVTR1_LCKSB26_Pos (26U)
  16515. #define GTZC_MPCBB_LCKVTR1_LCKSB26_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB26_Pos) /*!< 0x04000000 */
  16516. #define GTZC_MPCBB_LCKVTR1_LCKSB27_Pos (27U)
  16517. #define GTZC_MPCBB_LCKVTR1_LCKSB27_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB27_Pos) /*!< 0x08000000 */
  16518. #define GTZC_MPCBB_LCKVTR1_LCKSB28_Pos (28U)
  16519. #define GTZC_MPCBB_LCKVTR1_LCKSB28_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB28_Pos) /*!< 0x10000000 */
  16520. #define GTZC_MPCBB_LCKVTR1_LCKSB29_Pos (29U)
  16521. #define GTZC_MPCBB_LCKVTR1_LCKSB29_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB29_Pos) /*!< 0x20000000 */
  16522. #define GTZC_MPCBB_LCKVTR1_LCKSB30_Pos (30U)
  16523. #define GTZC_MPCBB_LCKVTR1_LCKSB30_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB30_Pos) /*!< 0x40000000 */
  16524. #define GTZC_MPCBB_LCKVTR1_LCKSB31_Pos (31U)
  16525. #define GTZC_MPCBB_LCKVTR1_LCKSB31_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB31_Pos) /*!< 0x80000000 */
  16526. /******************* Bits definition for GTZC_MPCBB_LCKVTR2 register ************/
  16527. #define GTZC_MPCBB_LCKVTR2_LCKSB32_Pos (0U)
  16528. #define GTZC_MPCBB_LCKVTR2_LCKSB32_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB32_Msk) /*!< 0x00000001 */
  16529. #define GTZC_MPCBB_LCKVTR2_LCKSB33_Pos (1U)
  16530. #define GTZC_MPCBB_LCKVTR2_LCKSB33_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB33_Pos) /*!< 0x00000002 */
  16531. #define GTZC_MPCBB_LCKVTR2_LCKSB34_Pos (2U)
  16532. #define GTZC_MPCBB_LCKVTR2_LCKSB34_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB34_Pos) /*!< 0x00000004 */
  16533. #define GTZC_MPCBB_LCKVTR2_LCKSB35_Pos (3U)
  16534. #define GTZC_MPCBB_LCKVTR2_LCKSB35_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB35_Pos) /*!< 0x00000008 */
  16535. #define GTZC_MPCBB_LCKVTR2_LCKSB36_Pos (4U)
  16536. #define GTZC_MPCBB_LCKVTR2_LCKSB36_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB36_Pos) /*!< 0x00000010 */
  16537. #define GTZC_MPCBB_LCKVTR2_LCKSB37_Pos (5U)
  16538. #define GTZC_MPCBB_LCKVTR2_LCKSB37_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB37_Pos) /*!< 0x00000020 */
  16539. #define GTZC_MPCBB_LCKVTR2_LCKSB38_Pos (6U)
  16540. #define GTZC_MPCBB_LCKVTR2_LCKSB38_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB38_Pos) /*!< 0x00000040 */
  16541. #define GTZC_MPCBB_LCKVTR2_LCKSB39_Pos (7U)
  16542. #define GTZC_MPCBB_LCKVTR2_LCKSB39_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB39_Pos) /*!< 0x00000080 */
  16543. #define GTZC_MPCBB_LCKVTR2_LCKSB40_Pos (8U)
  16544. #define GTZC_MPCBB_LCKVTR2_LCKSB40_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB40_Pos) /*!< 0x00000100 */
  16545. #define GTZC_MPCBB_LCKVTR2_LCKSB41_Pos (9U)
  16546. #define GTZC_MPCBB_LCKVTR2_LCKSB41_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB41_Pos) /*!< 0x00000200 */
  16547. #define GTZC_MPCBB_LCKVTR2_LCKSB42_Pos (10U)
  16548. #define GTZC_MPCBB_LCKVTR2_LCKSB42_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB42_Pos) /*!< 0x00000400 */
  16549. #define GTZC_MPCBB_LCKVTR2_LCKSB43_Pos (11U)
  16550. #define GTZC_MPCBB_LCKVTR2_LCKSB43_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB43_Pos) /*!< 0x00000800 */
  16551. #define GTZC_MPCBB_LCKVTR2_LCKSB44_Pos (12U)
  16552. #define GTZC_MPCBB_LCKVTR2_LCKSB44_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB44_Pos) /*!< 0x00001000 */
  16553. #define GTZC_MPCBB_LCKVTR2_LCKSB45_Pos (13U)
  16554. #define GTZC_MPCBB_LCKVTR2_LCKSB45_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB45_Pos) /*!< 0x00002000 */
  16555. #define GTZC_MPCBB_LCKVTR2_LCKSB46_Pos (14U)
  16556. #define GTZC_MPCBB_LCKVTR2_LCKSB46_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB46_Pos) /*!< 0x00004000 */
  16557. #define GTZC_MPCBB_LCKVTR2_LCKSB47_Pos (15U)
  16558. #define GTZC_MPCBB_LCKVTR2_LCKSB47_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB47_Pos) /*!< 0x00008000 */
  16559. #define GTZC_MPCBB_LCKVTR2_LCKSB48_Pos (16U)
  16560. #define GTZC_MPCBB_LCKVTR2_LCKSB48_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB48_Pos) /*!< 0x00010000 */
  16561. #define GTZC_MPCBB_LCKVTR2_LCKSB49_Pos (17U)
  16562. #define GTZC_MPCBB_LCKVTR2_LCKSB49_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB49_Pos) /*!< 0x00020000 */
  16563. #define GTZC_MPCBB_LCKVTR2_LCKSB50_Pos (18U)
  16564. #define GTZC_MPCBB_LCKVTR2_LCKSB50_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB50_Pos) /*!< 0x00040000 */
  16565. #define GTZC_MPCBB_LCKVTR2_LCKSB51_Pos (19U)
  16566. #define GTZC_MPCBB_LCKVTR2_LCKSB51_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB51_Pos) /*!< 0x00080000 */
  16567. #define GTZC_MPCBB_LCKVTR2_LCKSB52_Pos (20U)
  16568. #define GTZC_MPCBB_LCKVTR2_LCKSB52_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB52_Pos) /*!< 0x00100000 */
  16569. #define GTZC_MPCBB_LCKVTR2_LCKSB53_Pos (21U)
  16570. #define GTZC_MPCBB_LCKVTR2_LCKSB53_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB53_Pos) /*!< 0x00200000 */
  16571. #define GTZC_MPCBB_LCKVTR2_LCKSB54_Pos (22U)
  16572. #define GTZC_MPCBB_LCKVTR2_LCKSB54_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB54_Pos) /*!< 0x00400000 */
  16573. #define GTZC_MPCBB_LCKVTR2_LCKSB55_Pos (23U)
  16574. #define GTZC_MPCBB_LCKVTR2_LCKSB55_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB55_Pos) /*!< 0x00800000 */
  16575. #define GTZC_MPCBB_LCKVTR2_LCKSB56_Pos (24U)
  16576. #define GTZC_MPCBB_LCKVTR2_LCKSB56_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB56_Pos) /*!< 0x01000000 */
  16577. #define GTZC_MPCBB_LCKVTR2_LCKSB57_Pos (25U)
  16578. #define GTZC_MPCBB_LCKVTR2_LCKSB57_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB57_Pos) /*!< 0x02000000 */
  16579. #define GTZC_MPCBB_LCKVTR2_LCKSB58_Pos (26U)
  16580. #define GTZC_MPCBB_LCKVTR2_LCKSB58_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB58_Pos) /*!< 0x04000000 */
  16581. #define GTZC_MPCBB_LCKVTR2_LCKSB59_Pos (27U)
  16582. #define GTZC_MPCBB_LCKVTR2_LCKSB59_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB59_Pos) /*!< 0x08000000 */
  16583. #define GTZC_MPCBB_LCKVTR2_LCKSB60_Pos (28U)
  16584. #define GTZC_MPCBB_LCKVTR2_LCKSB60_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB60_Pos) /*!< 0x10000000 */
  16585. #define GTZC_MPCBB_LCKVTR2_LCKSB61_Pos (29U)
  16586. #define GTZC_MPCBB_LCKVTR2_LCKSB61_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB61_Pos) /*!< 0x20000000 */
  16587. #define GTZC_MPCBB_LCKVTR2_LCKSB62_Pos (30U)
  16588. #define GTZC_MPCBB_LCKVTR2_LCKSB62_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB62_Pos) /*!< 0x40000000 */
  16589. #define GTZC_MPCBB_LCKVTR2_LCKSB63_Pos (31U)
  16590. #define GTZC_MPCBB_LCKVTR2_LCKSB63_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB63_Pos) /*!< 0x80000000 */
  16591. /******************************************************************************/
  16592. /* */
  16593. /* SDMMC Interface */
  16594. /* */
  16595. /******************************************************************************/
  16596. /****************** Bit definition for SDMMC_POWER register ******************/
  16597. #define SDMMC_POWER_PWRCTRL_Pos (0U)
  16598. #define SDMMC_POWER_PWRCTRL_Msk (0x3UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000003 */
  16599. #define SDMMC_POWER_PWRCTRL SDMMC_POWER_PWRCTRL_Msk /*!<PWRCTRL[1:0] bits (Power supply control bits) */
  16600. #define SDMMC_POWER_PWRCTRL_0 (0x1UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000001 */
  16601. #define SDMMC_POWER_PWRCTRL_1 (0x2UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000002 */
  16602. #define SDMMC_POWER_VSWITCH_Pos (2U)
  16603. #define SDMMC_POWER_VSWITCH_Msk (0x1UL << SDMMC_POWER_VSWITCH_Pos) /*!< 0x00000004 */
  16604. #define SDMMC_POWER_VSWITCH SDMMC_POWER_VSWITCH_Pos /*!<Voltage switch sequence start */
  16605. #define SDMMC_POWER_VSWITCHEN_Pos (3U)
  16606. #define SDMMC_POWER_VSWITCHEN_Msk (0x1UL << SDMMC_POWER_VSWITCHEN_Pos) /*!< 0x00000008 */
  16607. #define SDMMC_POWER_VSWITCHEN SDMMC_POWER_VSWITCHEN_Pos /*!<Voltage switch procedure enable */
  16608. #define SDMMC_POWER_DIRPOL_Pos (4U)
  16609. #define SDMMC_POWER_DIRPOL_Msk (0x1UL << SDMMC_POWER_DIRPOL_Pos) /*!< 0x00000010 */
  16610. #define SDMMC_POWER_DIRPOL SDMMC_POWER_DIRPOL_Pos /*!<Data and Command direction signals polarity selection */
  16611. /****************** Bit definition for SDMMC_CLKCR register ******************/
  16612. #define SDMMC_CLKCR_CLKDIV_Pos (0U)
  16613. #define SDMMC_CLKCR_CLKDIV_Msk (0x3FFUL << SDMMC_CLKCR_CLKDIV_Pos) /*!< 0x000003FF */
  16614. #define SDMMC_CLKCR_CLKDIV SDMMC_CLKCR_CLKDIV_Msk /*!<Clock divide factor */
  16615. #define SDMMC_CLKCR_PWRSAV_Pos (12U)
  16616. #define SDMMC_CLKCR_PWRSAV_Msk (0x1UL << SDMMC_CLKCR_PWRSAV_Pos) /*!< 0x00001000 */
  16617. #define SDMMC_CLKCR_PWRSAV SDMMC_CLKCR_PWRSAV_Msk /*!<Power saving configuration bit */
  16618. #define SDMMC_CLKCR_WIDBUS_Pos (14U)
  16619. #define SDMMC_CLKCR_WIDBUS_Msk (0x3UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x0000C000 */
  16620. #define SDMMC_CLKCR_WIDBUS SDMMC_CLKCR_WIDBUS_Msk /*!<WIDBUS[1:0] bits (Wide bus mode enable bit) */
  16621. #define SDMMC_CLKCR_WIDBUS_0 (0x1UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00000800 */
  16622. #define SDMMC_CLKCR_WIDBUS_1 (0x2UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00001000 */
  16623. #define SDMMC_CLKCR_NEGEDGE_Pos (16U)
  16624. #define SDMMC_CLKCR_NEGEDGE_Msk (0x1UL << SDMMC_CLKCR_NEGEDGE_Pos) /*!< 0x00010000 */
  16625. #define SDMMC_CLKCR_NEGEDGE SDMMC_CLKCR_NEGEDGE_Msk /*!<SDMMC_CK dephasing selection bit */
  16626. #define SDMMC_CLKCR_HWFC_EN_Pos (17U)
  16627. #define SDMMC_CLKCR_HWFC_EN_Msk (0x1UL << SDMMC_CLKCR_HWFC_EN_Pos) /*!< 0x00020000 */
  16628. #define SDMMC_CLKCR_HWFC_EN SDMMC_CLKCR_HWFC_EN_Msk /*!<HW Flow Control enable */
  16629. #define SDMMC_CLKCR_DDR_Pos (18U)
  16630. #define SDMMC_CLKCR_DDR_Msk (0x1UL << SDMMC_CLKCR_DDR_Pos) /*!< 0x00040000 */
  16631. #define SDMMC_CLKCR_DDR SDMMC_CLKCR_DDR_Msk /*!<Data rate signaling selection */
  16632. #define SDMMC_CLKCR_BUSSPEED_Pos (19U)
  16633. #define SDMMC_CLKCR_BUSSPEED_Msk (0x1UL << SDMMC_CLKCR_BUSSPEED_Pos) /*!< 0x00080000 */
  16634. #define SDMMC_CLKCR_BUSSPEED SDMMC_CLKCR_BUSSPEED_Msk /*!<Bus speed mode selection */
  16635. #define SDMMC_CLKCR_SELCLKRX_Pos (20U)
  16636. #define SDMMC_CLKCR_SELCLKRX_Msk (0x3UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00300000 */
  16637. #define SDMMC_CLKCR_SELCLKRX SDMMC_CLKCR_SELCLKRX_Msk /*!<SELCLKRX[1:0] bits (Receive clock selection) */
  16638. #define SDMMC_CLKCR_SELCLKRX_0 (0x1UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00100000 */
  16639. #define SDMMC_CLKCR_SELCLKRX_1 (0x2UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00200000 */
  16640. /******************* Bit definition for SDMMC_ARG register *******************/
  16641. #define SDMMC_ARG_CMDARG_Pos (0U)
  16642. #define SDMMC_ARG_CMDARG_Msk (0xFFFFFFFFUL << SDMMC_ARG_CMDARG_Pos) /*!< 0xFFFFFFFF */
  16643. #define SDMMC_ARG_CMDARG SDMMC_ARG_CMDARG_Msk /*!<Command argument */
  16644. /******************* Bit definition for SDMMC_CMD register *******************/
  16645. #define SDMMC_CMD_CMDINDEX_Pos (0U)
  16646. #define SDMMC_CMD_CMDINDEX_Msk (0x3FUL << SDMMC_CMD_CMDINDEX_Pos) /*!< 0x0000003F */
  16647. #define SDMMC_CMD_CMDINDEX SDMMC_CMD_CMDINDEX_Msk /*!<Command Index */
  16648. #define SDMMC_CMD_CMDTRANS_Pos (6U)
  16649. #define SDMMC_CMD_CMDTRANS_Msk (0x1UL << SDMMC_CMD_CMDTRANS_Pos) /*!< 0x00000040 */
  16650. #define SDMMC_CMD_CMDTRANS SDMMC_CMD_CMDTRANS_Msk /*!<CPSM Treats command as a Data Transfer */
  16651. #define SDMMC_CMD_CMDSTOP_Pos (7U)
  16652. #define SDMMC_CMD_CMDSTOP_Msk (0x1UL << SDMMC_CMD_CMDSTOP_Pos) /*!< 0x00000080 */
  16653. #define SDMMC_CMD_CMDSTOP SDMMC_CMD_CMDSTOP_Msk /*!<CPSM Treats command as a Stop */
  16654. #define SDMMC_CMD_WAITRESP_Pos (8U)
  16655. #define SDMMC_CMD_WAITRESP_Msk (0x3UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000300 */
  16656. #define SDMMC_CMD_WAITRESP SDMMC_CMD_WAITRESP_Msk /*!<WAITRESP[1:0] bits (Wait for response bits) */
  16657. #define SDMMC_CMD_WAITRESP_0 (0x1UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000100 */
  16658. #define SDMMC_CMD_WAITRESP_1 (0x2UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000200 */
  16659. #define SDMMC_CMD_WAITINT_Pos (10U)
  16660. #define SDMMC_CMD_WAITINT_Msk (0x1UL << SDMMC_CMD_WAITINT_Pos) /*!< 0x00000400 */
  16661. #define SDMMC_CMD_WAITINT SDMMC_CMD_WAITINT_Msk /*!<CPSM Waits for Interrupt Request */
  16662. #define SDMMC_CMD_WAITPEND_Pos (11U)
  16663. #define SDMMC_CMD_WAITPEND_Msk (0x1UL << SDMMC_CMD_WAITPEND_Pos) /*!< 0x00000800 */
  16664. #define SDMMC_CMD_WAITPEND SDMMC_CMD_WAITPEND_Msk /*!<CPSM Waits for ends of data transfer (CmdPend internal signal) */
  16665. #define SDMMC_CMD_CPSMEN_Pos (12U)
  16666. #define SDMMC_CMD_CPSMEN_Msk (0x1UL << SDMMC_CMD_CPSMEN_Pos) /*!< 0x00001000 */
  16667. #define SDMMC_CMD_CPSMEN SDMMC_CMD_CPSMEN_Msk /*!<Command path state machine (CPSM) Enable bit */
  16668. #define SDMMC_CMD_DTHOLD_Pos (13U)
  16669. #define SDMMC_CMD_DTHOLD_Msk (0x1UL << SDMMC_CMD_DTHOLD_Pos) /*!< 0x00002000 */
  16670. #define SDMMC_CMD_DTHOLD SDMMC_CMD_DTHOLD_Msk /*!<Hold new data block transmission and reception in the DPSM */
  16671. #define SDMMC_CMD_BOOTMODE_Pos (14U)
  16672. #define SDMMC_CMD_BOOTMODE_Msk (0x1UL << SDMMC_CMD_BOOTMODE_Pos) /*!< 0x00004000 */
  16673. #define SDMMC_CMD_BOOTMODE SDMMC_CMD_BOOTMODE_Msk /*!<Boot mode */
  16674. #define SDMMC_CMD_BOOTEN_Pos (15U)
  16675. #define SDMMC_CMD_BOOTEN_Msk (0x1UL << SDMMC_CMD_BOOTEN_Pos) /*!< 0x00008000 */
  16676. #define SDMMC_CMD_BOOTEN SDMMC_CMD_BOOTEN_Msk /*!<Enable Boot mode procedure */
  16677. #define SDMMC_CMD_CMDSUSPEND_Pos (16U)
  16678. #define SDMMC_CMD_CMDSUSPEND_Msk (0x1UL << SDMMC_CMD_CMDSUSPEND_Pos) /*!< 0x00010000 */
  16679. #define SDMMC_CMD_CMDSUSPEND SDMMC_CMD_CMDSUSPEND_Msk /*!<CPSM treats command as a Suspend or Resume command */
  16680. /***************** Bit definition for SDMMC_RESPCMD register *****************/
  16681. #define SDMMC_RESPCMD_RESPCMD_Pos (0U)
  16682. #define SDMMC_RESPCMD_RESPCMD_Msk (0x3FUL << SDMMC_RESPCMD_RESPCMD_Pos) /*!< 0x0000003F */
  16683. #define SDMMC_RESPCMD_RESPCMD SDMMC_RESPCMD_RESPCMD_Msk /*!<Response command index */
  16684. /****************** Bit definition for SDMMC_RESP1 register ******************/
  16685. #define SDMMC_RESP1_CARDSTATUS1_Pos (0U)
  16686. #define SDMMC_RESP1_CARDSTATUS1_Msk (0xFFFFFFFFUL << SDMMC_RESP1_CARDSTATUS1_Pos)/*!< 0xFFFFFFFF */
  16687. #define SDMMC_RESP1_CARDSTATUS1 SDMMC_RESP1_CARDSTATUS1_Msk /*!<Card Status */
  16688. /****************** Bit definition for SDMMC_RESP2 register ******************/
  16689. #define SDMMC_RESP2_CARDSTATUS2_Pos (0U)
  16690. #define SDMMC_RESP2_CARDSTATUS2_Msk (0xFFFFFFFFUL << SDMMC_RESP2_CARDSTATUS2_Pos)/*!< 0xFFFFFFFF */
  16691. #define SDMMC_RESP2_CARDSTATUS2 SDMMC_RESP2_CARDSTATUS2_Msk /*!<Card Status */
  16692. /****************** Bit definition for SDMMC_RESP3 register ******************/
  16693. #define SDMMC_RESP3_CARDSTATUS3_Pos (0U)
  16694. #define SDMMC_RESP3_CARDSTATUS3_Msk (0xFFFFFFFFUL << SDMMC_RESP3_CARDSTATUS3_Pos)/*!< 0xFFFFFFFF */
  16695. #define SDMMC_RESP3_CARDSTATUS3 SDMMC_RESP3_CARDSTATUS3_Msk /*!<Card Status */
  16696. /****************** Bit definition for SDMMC_RESP4 register ******************/
  16697. #define SDMMC_RESP4_CARDSTATUS4_Pos (0U)
  16698. #define SDMMC_RESP4_CARDSTATUS4_Msk (0xFFFFFFFFUL << SDMMC_RESP4_CARDSTATUS4_Pos)/*!< 0xFFFFFFFF */
  16699. #define SDMMC_RESP4_CARDSTATUS4 SDMMC_RESP4_CARDSTATUS4_Msk /*!<Card Status */
  16700. /****************** Bit definition for SDMMC_DTIMER register *****************/
  16701. #define SDMMC_DTIMER_DATATIME_Pos (0U)
  16702. #define SDMMC_DTIMER_DATATIME_Msk (0xFFFFFFFFUL << SDMMC_DTIMER_DATATIME_Pos)/*!< 0xFFFFFFFF */
  16703. #define SDMMC_DTIMER_DATATIME SDMMC_DTIMER_DATATIME_Msk /*!<Data timeout period. */
  16704. /****************** Bit definition for SDMMC_DLEN register *******************/
  16705. #define SDMMC_DLEN_DATALENGTH_Pos (0U)
  16706. #define SDMMC_DLEN_DATALENGTH_Msk (0x1FFFFFFUL << SDMMC_DLEN_DATALENGTH_Pos)/*!< 0x01FFFFFF */
  16707. #define SDMMC_DLEN_DATALENGTH SDMMC_DLEN_DATALENGTH_Msk /*!<Data length value */
  16708. /****************** Bit definition for SDMMC_DCTRL register ******************/
  16709. #define SDMMC_DCTRL_DTEN_Pos (0U)
  16710. #define SDMMC_DCTRL_DTEN_Msk (0x1UL << SDMMC_DCTRL_DTEN_Pos) /*!< 0x00000001 */
  16711. #define SDMMC_DCTRL_DTEN SDMMC_DCTRL_DTEN_Msk /*!<Data transfer enabled bit */
  16712. #define SDMMC_DCTRL_DTDIR_Pos (1U)
  16713. #define SDMMC_DCTRL_DTDIR_Msk (0x1UL << SDMMC_DCTRL_DTDIR_Pos) /*!< 0x00000002 */
  16714. #define SDMMC_DCTRL_DTDIR SDMMC_DCTRL_DTDIR_Msk /*!<Data transfer direction selection */
  16715. #define SDMMC_DCTRL_DTMODE_Pos (2U)
  16716. #define SDMMC_DCTRL_DTMODE_Msk (0x3UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x0000000C */
  16717. #define SDMMC_DCTRL_DTMODE SDMMC_DCTRL_DTMODE_Msk /*!<Data transfer mode selection */
  16718. #define SDMMC_DCTRL_DTMODE_0 (0x1UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000004 */
  16719. #define SDMMC_DCTRL_DTMODE_1 (0x2UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000008 */
  16720. #define SDMMC_DCTRL_DBLOCKSIZE_Pos (4U)
  16721. #define SDMMC_DCTRL_DBLOCKSIZE_Msk (0xFUL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x000000F0 */
  16722. #define SDMMC_DCTRL_DBLOCKSIZE SDMMC_DCTRL_DBLOCKSIZE_Msk /*!<DBLOCKSIZE[3:0] bits (Data block size) */
  16723. #define SDMMC_DCTRL_DBLOCKSIZE_0 (0x1UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000010 */
  16724. #define SDMMC_DCTRL_DBLOCKSIZE_1 (0x2UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000020 */
  16725. #define SDMMC_DCTRL_DBLOCKSIZE_2 (0x4UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */
  16726. #define SDMMC_DCTRL_DBLOCKSIZE_3 (0x8UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */
  16727. #define SDMMC_DCTRL_RWSTART_Pos (8U)
  16728. #define SDMMC_DCTRL_RWSTART_Msk (0x1UL << SDMMC_DCTRL_RWSTART_Pos) /*!< 0x00000100 */
  16729. #define SDMMC_DCTRL_RWSTART SDMMC_DCTRL_RWSTART_Msk /*!<Read wait start */
  16730. #define SDMMC_DCTRL_RWSTOP_Pos (9U)
  16731. #define SDMMC_DCTRL_RWSTOP_Msk (0x1UL << SDMMC_DCTRL_RWSTOP_Pos) /*!< 0x00000200 */
  16732. #define SDMMC_DCTRL_RWSTOP SDMMC_DCTRL_RWSTOP_Msk /*!<Read wait stop */
  16733. #define SDMMC_DCTRL_RWMOD_Pos (10U)
  16734. #define SDMMC_DCTRL_RWMOD_Msk (0x1UL << SDMMC_DCTRL_RWMOD_Pos) /*!< 0x00000400 */
  16735. #define SDMMC_DCTRL_RWMOD SDMMC_DCTRL_RWMOD_Msk /*!<Read wait mode */
  16736. #define SDMMC_DCTRL_SDIOEN_Pos (11U)
  16737. #define SDMMC_DCTRL_SDIOEN_Msk (0x1UL << SDMMC_DCTRL_SDIOEN_Pos) /*!< 0x00000800 */
  16738. #define SDMMC_DCTRL_SDIOEN SDMMC_DCTRL_SDIOEN_Msk /*!<SD I/O enable functions */
  16739. #define SDMMC_DCTRL_BOOTACKEN_Pos (12U)
  16740. #define SDMMC_DCTRL_BOOTACKEN_Msk (0x1UL << SDMMC_DCTRL_BOOTACKEN_Pos) /*!< 0x00001000 */
  16741. #define SDMMC_DCTRL_BOOTACKEN SDMMC_DCTRL_BOOTACKEN_Msk /*!<Data transfer mode selection */
  16742. #define SDMMC_DCTRL_FIFORST_Pos (13U)
  16743. #define SDMMC_DCTRL_FIFORST_Msk (0x1UL << SDMMC_DCTRL_FIFORST_Pos) /*!< 0x00002000 */
  16744. #define SDMMC_DCTRL_FIFORST SDMMC_DCTRL_FIFORST_Msk /*!<FIFO reset */
  16745. /****************** Bit definition for SDMMC_DCOUNT register *****************/
  16746. #define SDMMC_DCOUNT_DATACOUNT_Pos (0U)
  16747. #define SDMMC_DCOUNT_DATACOUNT_Msk (0x1FFFFFFUL << SDMMC_DCOUNT_DATACOUNT_Pos)/*!< 0x01FFFFFF */
  16748. #define SDMMC_DCOUNT_DATACOUNT SDMMC_DCOUNT_DATACOUNT_Msk /*!<Data count value */
  16749. /****************** Bit definition for SDMMC_STA register ********************/
  16750. #define SDMMC_STA_CCRCFAIL_Pos (0U)
  16751. #define SDMMC_STA_CCRCFAIL_Msk (0x1UL << SDMMC_STA_CCRCFAIL_Pos) /*!< 0x00000001 */
  16752. #define SDMMC_STA_CCRCFAIL SDMMC_STA_CCRCFAIL_Msk /*!<Command response received (CRC check failed) */
  16753. #define SDMMC_STA_DCRCFAIL_Pos (1U)
  16754. #define SDMMC_STA_DCRCFAIL_Msk (0x1UL << SDMMC_STA_DCRCFAIL_Pos) /*!< 0x00000002 */
  16755. #define SDMMC_STA_DCRCFAIL SDMMC_STA_DCRCFAIL_Msk /*!<Data block sent/received (CRC check failed) */
  16756. #define SDMMC_STA_CTIMEOUT_Pos (2U)
  16757. #define SDMMC_STA_CTIMEOUT_Msk (0x1UL << SDMMC_STA_CTIMEOUT_Pos) /*!< 0x00000004 */
  16758. #define SDMMC_STA_CTIMEOUT SDMMC_STA_CTIMEOUT_Msk /*!<Command response timeout */
  16759. #define SDMMC_STA_DTIMEOUT_Pos (3U)
  16760. #define SDMMC_STA_DTIMEOUT_Msk (0x1UL << SDMMC_STA_DTIMEOUT_Pos) /*!< 0x00000008 */
  16761. #define SDMMC_STA_DTIMEOUT SDMMC_STA_DTIMEOUT_Msk /*!<Data timeout */
  16762. #define SDMMC_STA_TXUNDERR_Pos (4U)
  16763. #define SDMMC_STA_TXUNDERR_Msk (0x1UL << SDMMC_STA_TXUNDERR_Pos) /*!< 0x00000010 */
  16764. #define SDMMC_STA_TXUNDERR SDMMC_STA_TXUNDERR_Msk /*!<Transmit FIFO underrun error */
  16765. #define SDMMC_STA_RXOVERR_Pos (5U)
  16766. #define SDMMC_STA_RXOVERR_Msk (0x1UL << SDMMC_STA_RXOVERR_Pos) /*!< 0x00000020 */
  16767. #define SDMMC_STA_RXOVERR SDMMC_STA_RXOVERR_Msk /*!<Received FIFO overrun error */
  16768. #define SDMMC_STA_CMDREND_Pos (6U)
  16769. #define SDMMC_STA_CMDREND_Msk (0x1UL << SDMMC_STA_CMDREND_Pos) /*!< 0x00000040 */
  16770. #define SDMMC_STA_CMDREND SDMMC_STA_CMDREND_Msk /*!<Command response received (CRC check passed) */
  16771. #define SDMMC_STA_CMDSENT_Pos (7U)
  16772. #define SDMMC_STA_CMDSENT_Msk (0x1UL << SDMMC_STA_CMDSENT_Pos) /*!< 0x00000080 */
  16773. #define SDMMC_STA_CMDSENT SDMMC_STA_CMDSENT_Msk /*!<Command sent (no response required) */
  16774. #define SDMMC_STA_DATAEND_Pos (8U)
  16775. #define SDMMC_STA_DATAEND_Msk (0x1UL << SDMMC_STA_DATAEND_Pos) /*!< 0x00000100 */
  16776. #define SDMMC_STA_DATAEND SDMMC_STA_DATAEND_Msk /*!<Data end (data counter, SDIDCOUNT, is zero) */
  16777. #define SDMMC_STA_DHOLD_Pos (9U)
  16778. #define SDMMC_STA_DHOLD_Msk (0x1UL << SDMMC_STA_DHOLD_Pos) /*!< 0x00000200 */
  16779. #define SDMMC_STA_DHOLD SDMMC_STA_DHOLD_Msk /*!<Data transfer Hold */
  16780. #define SDMMC_STA_DBCKEND_Pos (10U)
  16781. #define SDMMC_STA_DBCKEND_Msk (0x1UL << SDMMC_STA_DBCKEND_Pos) /*!< 0x00000400 */
  16782. #define SDMMC_STA_DBCKEND SDMMC_STA_DBCKEND_Msk /*!<Data block sent/received (CRC check passed) */
  16783. #define SDMMC_STA_DABORT_Pos (11U)
  16784. #define SDMMC_STA_DABORT_Msk (0x1UL << SDMMC_STA_DABORT_Pos) /*!< 0x00000800 */
  16785. #define SDMMC_STA_DABORT SDMMC_STA_DABORT_Msk /*!<Data transfer aborted by CMD12 */
  16786. #define SDMMC_STA_DPSMACT_Pos (12U)
  16787. #define SDMMC_STA_DPSMACT_Msk (0x1UL << SDMMC_STA_DPSMACT_Pos) /*!< 0x00001000 */
  16788. #define SDMMC_STA_DPSMACT SDMMC_STA_DPSMACT_Msk /*!<Data path state machine active */
  16789. #define SDMMC_STA_CPSMACT_Pos (13U)
  16790. #define SDMMC_STA_CPSMACT_Msk (0x1UL << SDMMC_STA_CPSMACT_Pos) /*!< 0x00002000 */
  16791. #define SDMMC_STA_CPSMACT SDMMC_STA_CPSMACT_Msk /*!<Command path state machine active */
  16792. #define SDMMC_STA_TXFIFOHE_Pos (14U)
  16793. #define SDMMC_STA_TXFIFOHE_Msk (0x1UL << SDMMC_STA_TXFIFOHE_Pos) /*!< 0x00004000 */
  16794. #define SDMMC_STA_TXFIFOHE SDMMC_STA_TXFIFOHE_Msk /*!<Transmit FIFO Half Empty: at least 8 words can be written into the FIFO */
  16795. #define SDMMC_STA_RXFIFOHF_Pos (15U)
  16796. #define SDMMC_STA_RXFIFOHF_Msk (0x1UL << SDMMC_STA_RXFIFOHF_Pos) /*!< 0x00008000 */
  16797. #define SDMMC_STA_RXFIFOHF SDMMC_STA_RXFIFOHF_Msk /*!<Receive FIFO Half Full: there are at least 8 words in the FIFO */
  16798. #define SDMMC_STA_TXFIFOF_Pos (16U)
  16799. #define SDMMC_STA_TXFIFOF_Msk (0x1UL << SDMMC_STA_TXFIFOF_Pos) /*!< 0x00010000 */
  16800. #define SDMMC_STA_TXFIFOF SDMMC_STA_TXFIFOF_Msk /*!<Transmit FIFO full */
  16801. #define SDMMC_STA_RXFIFOF_Pos (17U)
  16802. #define SDMMC_STA_RXFIFOF_Msk (0x1UL << SDMMC_STA_RXFIFOF_Pos) /*!< 0x00020000 */
  16803. #define SDMMC_STA_RXFIFOF SDMMC_STA_RXFIFOF_Msk /*!<Receive FIFO full */
  16804. #define SDMMC_STA_TXFIFOE_Pos (18U)
  16805. #define SDMMC_STA_TXFIFOE_Msk (0x1UL << SDMMC_STA_TXFIFOE_Pos) /*!< 0x00040000 */
  16806. #define SDMMC_STA_TXFIFOE SDMMC_STA_TXFIFOE_Msk /*!<Transmit FIFO empty */
  16807. #define SDMMC_STA_RXFIFOE_Pos (19U)
  16808. #define SDMMC_STA_RXFIFOE_Msk (0x1UL << SDMMC_STA_RXFIFOE_Pos) /*!< 0x00080000 */
  16809. #define SDMMC_STA_RXFIFOE SDMMC_STA_RXFIFOE_Msk /*!<Receive FIFO empty */
  16810. #define SDMMC_STA_BUSYD0_Pos (20U)
  16811. #define SDMMC_STA_BUSYD0_Msk (0x1UL << SDMMC_STA_BUSYD0_Pos) /*!< 0x00100000 */
  16812. #define SDMMC_STA_BUSYD0 SDMMC_STA_BUSYD0_Msk /*!<Inverted value of SDMMC_D0 line (Busy) */
  16813. #define SDMMC_STA_BUSYD0END_Pos (21U)
  16814. #define SDMMC_STA_BUSYD0END_Msk (0x1UL << SDMMC_STA_BUSYD0END_Pos) /*!< 0x00200000 */
  16815. #define SDMMC_STA_BUSYD0END SDMMC_STA_BUSYD0END_Msk /*!<End of SDMMC_D0 Busy following a CMD response detected */
  16816. #define SDMMC_STA_SDIOIT_Pos (22U)
  16817. #define SDMMC_STA_SDIOIT_Msk (0x1UL << SDMMC_STA_SDIOIT_Pos) /*!< 0x00400000 */
  16818. #define SDMMC_STA_SDIOIT SDMMC_STA_SDIOIT_Msk /*!<SDIO interrupt received */
  16819. #define SDMMC_STA_ACKFAIL_Pos (23U)
  16820. #define SDMMC_STA_ACKFAIL_Msk (0x1UL << SDMMC_STA_ACKFAIL_Pos) /*!< 0x00800000 */
  16821. #define SDMMC_STA_ACKFAIL SDMMC_STA_ACKFAIL_Msk /*!<Boot Acknowledgment received (BootAck check fail) */
  16822. #define SDMMC_STA_ACKTIMEOUT_Pos (24U)
  16823. #define SDMMC_STA_ACKTIMEOUT_Msk (0x1UL << SDMMC_STA_ACKTIMEOUT_Pos) /*!< 0x01000000 */
  16824. #define SDMMC_STA_ACKTIMEOUT SDMMC_STA_ACKTIMEOUT_Msk /*!<Boot Acknowledgment timeout */
  16825. #define SDMMC_STA_VSWEND_Pos (25U)
  16826. #define SDMMC_STA_VSWEND_Msk (0x1UL << SDMMC_STA_VSWEND_Pos) /*!< 0x02000000 */
  16827. #define SDMMC_STA_VSWEND SDMMC_STA_VSWEND_Msk /*!<Voltage switch critical timing section completion */
  16828. #define SDMMC_STA_CKSTOP_Pos (26U)
  16829. #define SDMMC_STA_CKSTOP_Msk (0x1UL << SDMMC_STA_CKSTOP_Pos) /*!< 0x04000000 */
  16830. #define SDMMC_STA_CKSTOP SDMMC_STA_CKSTOP_Msk /*!<SDMMC_CK stopped in Voltage switch procedure */
  16831. #define SDMMC_STA_IDMATE_Pos (27U)
  16832. #define SDMMC_STA_IDMATE_Msk (0x1UL << SDMMC_STA_IDMATE_Pos) /*!< 0x08000000 */
  16833. #define SDMMC_STA_IDMATE SDMMC_STA_IDMATE_Msk /*!<IDMA transfer error */
  16834. #define SDMMC_STA_IDMABTC_Pos (28U)
  16835. #define SDMMC_STA_IDMABTC_Msk (0x1UL << SDMMC_STA_IDMABTC_Pos) /*!< 0x10000000 */
  16836. #define SDMMC_STA_IDMABTC SDMMC_STA_IDMABTC_Msk /*!<IDMA buffer transfer complete */
  16837. /******************* Bit definition for SDMMC_ICR register *******************/
  16838. #define SDMMC_ICR_CCRCFAILC_Pos (0U)
  16839. #define SDMMC_ICR_CCRCFAILC_Msk (0x1UL << SDMMC_ICR_CCRCFAILC_Pos) /*!< 0x00000001 */
  16840. #define SDMMC_ICR_CCRCFAILC SDMMC_ICR_CCRCFAILC_Msk /*!<CCRCFAIL flag clear bit */
  16841. #define SDMMC_ICR_DCRCFAILC_Pos (1U)
  16842. #define SDMMC_ICR_DCRCFAILC_Msk (0x1UL << SDMMC_ICR_DCRCFAILC_Pos) /*!< 0x00000002 */
  16843. #define SDMMC_ICR_DCRCFAILC SDMMC_ICR_DCRCFAILC_Msk /*!<DCRCFAIL flag clear bit */
  16844. #define SDMMC_ICR_CTIMEOUTC_Pos (2U)
  16845. #define SDMMC_ICR_CTIMEOUTC_Msk (0x1UL << SDMMC_ICR_CTIMEOUTC_Pos) /*!< 0x00000004 */
  16846. #define SDMMC_ICR_CTIMEOUTC SDMMC_ICR_CTIMEOUTC_Msk /*!<CTIMEOUT flag clear bit */
  16847. #define SDMMC_ICR_DTIMEOUTC_Pos (3U)
  16848. #define SDMMC_ICR_DTIMEOUTC_Msk (0x1UL << SDMMC_ICR_DTIMEOUTC_Pos) /*!< 0x00000008 */
  16849. #define SDMMC_ICR_DTIMEOUTC SDMMC_ICR_DTIMEOUTC_Msk /*!<DTIMEOUT flag clear bit */
  16850. #define SDMMC_ICR_TXUNDERRC_Pos (4U)
  16851. #define SDMMC_ICR_TXUNDERRC_Msk (0x1UL << SDMMC_ICR_TXUNDERRC_Pos) /*!< 0x00000010 */
  16852. #define SDMMC_ICR_TXUNDERRC SDMMC_ICR_TXUNDERRC_Msk /*!<TXUNDERR flag clear bit */
  16853. #define SDMMC_ICR_RXOVERRC_Pos (5U)
  16854. #define SDMMC_ICR_RXOVERRC_Msk (0x1UL << SDMMC_ICR_RXOVERRC_Pos) /*!< 0x00000020 */
  16855. #define SDMMC_ICR_RXOVERRC SDMMC_ICR_RXOVERRC_Msk /*!<RXOVERR flag clear bit */
  16856. #define SDMMC_ICR_CMDRENDC_Pos (6U)
  16857. #define SDMMC_ICR_CMDRENDC_Msk (0x1UL << SDMMC_ICR_CMDRENDC_Pos) /*!< 0x00000040 */
  16858. #define SDMMC_ICR_CMDRENDC SDMMC_ICR_CMDRENDC_Msk /*!<CMDREND flag clear bit */
  16859. #define SDMMC_ICR_CMDSENTC_Pos (7U)
  16860. #define SDMMC_ICR_CMDSENTC_Msk (0x1UL << SDMMC_ICR_CMDSENTC_Pos) /*!< 0x00000080 */
  16861. #define SDMMC_ICR_CMDSENTC SDMMC_ICR_CMDSENTC_Msk /*!<CMDSENT flag clear bit */
  16862. #define SDMMC_ICR_DATAENDC_Pos (8U)
  16863. #define SDMMC_ICR_DATAENDC_Msk (0x1UL << SDMMC_ICR_DATAENDC_Pos) /*!< 0x00000100 */
  16864. #define SDMMC_ICR_DATAENDC SDMMC_ICR_DATAENDC_Msk /*!<DATAEND flag clear bit */
  16865. #define SDMMC_ICR_DHOLDC_Pos (9U)
  16866. #define SDMMC_ICR_DHOLDC_Msk (0x1UL << SDMMC_ICR_DHOLDC_Pos) /*!< 0x00000200 */
  16867. #define SDMMC_ICR_DHOLDC SDMMC_ICR_DHOLDC_Msk /*!<DHOLD flag clear bit */
  16868. #define SDMMC_ICR_DBCKENDC_Pos (10U)
  16869. #define SDMMC_ICR_DBCKENDC_Msk (0x1UL << SDMMC_ICR_DBCKENDC_Pos) /*!< 0x00000400 */
  16870. #define SDMMC_ICR_DBCKENDC SDMMC_ICR_DBCKENDC_Msk /*!<DBCKEND flag clear bit */
  16871. #define SDMMC_ICR_DABORTC_Pos (11U)
  16872. #define SDMMC_ICR_DABORTC_Msk (0x1UL << SDMMC_ICR_DABORTC_Pos) /*!< 0x00000800 */
  16873. #define SDMMC_ICR_DABORTC SDMMC_ICR_DABORTC_Msk /*!<DABORTC flag clear bit */
  16874. #define SDMMC_ICR_BUSYD0ENDC_Pos (21U)
  16875. #define SDMMC_ICR_BUSYD0ENDC_Msk (0x1UL << SDMMC_ICR_BUSYD0ENDC_Pos) /*!< 0x00200000 */
  16876. #define SDMMC_ICR_BUSYD0ENDC SDMMC_ICR_BUSYD0ENDC_Msk /*!<BUSYD0ENDC flag clear bit */
  16877. #define SDMMC_ICR_SDIOITC_Pos (22U)
  16878. #define SDMMC_ICR_SDIOITC_Msk (0x1UL << SDMMC_ICR_SDIOITC_Pos) /*!< 0x00400000 */
  16879. #define SDMMC_ICR_SDIOITC SDMMC_ICR_SDIOITC_Msk /*!<SDIOIT flag clear bit */
  16880. #define SDMMC_ICR_ACKFAILC_Pos (23U)
  16881. #define SDMMC_ICR_ACKFAILC_Msk (0x1UL << SDMMC_ICR_ACKFAILC_Pos) /*!< 0x00800000 */
  16882. #define SDMMC_ICR_ACKFAILC SDMMC_ICR_ACKFAILC_Msk /*!<ACKFAILC flag clear bit */
  16883. #define SDMMC_ICR_ACKTIMEOUTC_Pos (24U)
  16884. #define SDMMC_ICR_ACKTIMEOUTC_Msk (0x1UL << SDMMC_ICR_ACKTIMEOUTC_Pos) /*!< 0x01000000 */
  16885. #define SDMMC_ICR_ACKTIMEOUTC SDMMC_ICR_ACKTIMEOUTC_Msk /*!<ACKTIMEOUTC flag clear bit */
  16886. #define SDMMC_ICR_VSWENDC_Pos (25U)
  16887. #define SDMMC_ICR_VSWENDC_Msk (0x1UL << SDMMC_ICR_VSWENDC_Pos) /*!< 0x02000000 */
  16888. #define SDMMC_ICR_VSWENDC SDMMC_ICR_VSWENDC_Msk /*!<VSWENDC flag clear bit */
  16889. #define SDMMC_ICR_CKSTOPC_Pos (26U)
  16890. #define SDMMC_ICR_CKSTOPC_Msk (0x1UL << SDMMC_ICR_CKSTOPC_Pos) /*!< 0x04000000 */
  16891. #define SDMMC_ICR_CKSTOPC SDMMC_ICR_CKSTOPC_Msk /*!<CKSTOPC flag clear bit */
  16892. #define SDMMC_ICR_IDMATEC_Pos (27U)
  16893. #define SDMMC_ICR_IDMATEC_Msk (0x1UL << SDMMC_ICR_IDMATEC_Pos) /*!< 0x08000000 */
  16894. #define SDMMC_ICR_IDMATEC SDMMC_ICR_IDMATEC_Msk /*!<IDMATEC flag clear bit */
  16895. #define SDMMC_ICR_IDMABTCC_Pos (28U)
  16896. #define SDMMC_ICR_IDMABTCC_Msk (0x1UL << SDMMC_ICR_IDMABTCC_Pos) /*!< 0x10000000 */
  16897. #define SDMMC_ICR_IDMABTCC SDMMC_ICR_IDMABTCC_Msk /*!<IDMABTCC flag clear bit */
  16898. /****************** Bit definition for SDMMC_MASK register *******************/
  16899. #define SDMMC_MASK_CCRCFAILIE_Pos (0U)
  16900. #define SDMMC_MASK_CCRCFAILIE_Msk (0x1UL << SDMMC_MASK_CCRCFAILIE_Pos) /*!< 0x00000001 */
  16901. #define SDMMC_MASK_CCRCFAILIE SDMMC_MASK_CCRCFAILIE_Msk /*!<Command CRC Fail Interrupt Enable */
  16902. #define SDMMC_MASK_DCRCFAILIE_Pos (1U)
  16903. #define SDMMC_MASK_DCRCFAILIE_Msk (0x1UL << SDMMC_MASK_DCRCFAILIE_Pos) /*!< 0x00000002 */
  16904. #define SDMMC_MASK_DCRCFAILIE SDMMC_MASK_DCRCFAILIE_Msk /*!<Data CRC Fail Interrupt Enable */
  16905. #define SDMMC_MASK_CTIMEOUTIE_Pos (2U)
  16906. #define SDMMC_MASK_CTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_CTIMEOUTIE_Pos) /*!< 0x00000004 */
  16907. #define SDMMC_MASK_CTIMEOUTIE SDMMC_MASK_CTIMEOUTIE_Msk /*!<Command TimeOut Interrupt Enable */
  16908. #define SDMMC_MASK_DTIMEOUTIE_Pos (3U)
  16909. #define SDMMC_MASK_DTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_DTIMEOUTIE_Pos) /*!< 0x00000008 */
  16910. #define SDMMC_MASK_DTIMEOUTIE SDMMC_MASK_DTIMEOUTIE_Msk /*!<Data TimeOut Interrupt Enable */
  16911. #define SDMMC_MASK_TXUNDERRIE_Pos (4U)
  16912. #define SDMMC_MASK_TXUNDERRIE_Msk (0x1UL << SDMMC_MASK_TXUNDERRIE_Pos) /*!< 0x00000010 */
  16913. #define SDMMC_MASK_TXUNDERRIE SDMMC_MASK_TXUNDERRIE_Msk /*!<Tx FIFO UnderRun Error Interrupt Enable */
  16914. #define SDMMC_MASK_RXOVERRIE_Pos (5U)
  16915. #define SDMMC_MASK_RXOVERRIE_Msk (0x1UL << SDMMC_MASK_RXOVERRIE_Pos) /*!< 0x00000020 */
  16916. #define SDMMC_MASK_RXOVERRIE SDMMC_MASK_RXOVERRIE_Msk /*!<Rx FIFO OverRun Error Interrupt Enable */
  16917. #define SDMMC_MASK_CMDRENDIE_Pos (6U)
  16918. #define SDMMC_MASK_CMDRENDIE_Msk (0x1UL << SDMMC_MASK_CMDRENDIE_Pos) /*!< 0x00000040 */
  16919. #define SDMMC_MASK_CMDRENDIE SDMMC_MASK_CMDRENDIE_Msk /*!<Command Response Received Interrupt Enable */
  16920. #define SDMMC_MASK_CMDSENTIE_Pos (7U)
  16921. #define SDMMC_MASK_CMDSENTIE_Msk (0x1UL << SDMMC_MASK_CMDSENTIE_Pos) /*!< 0x00000080 */
  16922. #define SDMMC_MASK_CMDSENTIE SDMMC_MASK_CMDSENTIE_Msk /*!<Command Sent Interrupt Enable */
  16923. #define SDMMC_MASK_DATAENDIE_Pos (8U)
  16924. #define SDMMC_MASK_DATAENDIE_Msk (0x1UL << SDMMC_MASK_DATAENDIE_Pos) /*!< 0x00000100 */
  16925. #define SDMMC_MASK_DATAENDIE SDMMC_MASK_DATAENDIE_Msk /*!<Data End Interrupt Enable */
  16926. #define SDMMC_MASK_DHOLDIE_Pos (9U)
  16927. #define SDMMC_MASK_DHOLDIE_Msk (0x1UL << SDMMC_MASK_DHOLDIE_Pos) /*!< 0x00000200 */
  16928. #define SDMMC_MASK_DHOLDIE SDMMC_MASK_DHOLDIE_Msk /*!<Data Hold Interrupt Enable */
  16929. #define SDMMC_MASK_DBCKENDIE_Pos (10U)
  16930. #define SDMMC_MASK_DBCKENDIE_Msk (0x1UL << SDMMC_MASK_DBCKENDIE_Pos) /*!< 0x00000400 */
  16931. #define SDMMC_MASK_DBCKENDIE SDMMC_MASK_DBCKENDIE_Msk /*!<Data Block End Interrupt Enable */
  16932. #define SDMMC_MASK_DABORTIE_Pos (11U)
  16933. #define SDMMC_MASK_DABORTIE_Msk (0x1UL << SDMMC_MASK_DABORTIE_Pos) /*!< 0x00000800 */
  16934. #define SDMMC_MASK_DABORTIE SDMMC_MASK_DABORTIE_Msk /*!<Data transfer aborted Interrupt Enable */
  16935. #define SDMMC_MASK_TXFIFOHEIE_Pos (14U)
  16936. #define SDMMC_MASK_TXFIFOHEIE_Msk (0x1UL << SDMMC_MASK_TXFIFOHEIE_Pos) /*!< 0x00004000 */
  16937. #define SDMMC_MASK_TXFIFOHEIE SDMMC_MASK_TXFIFOHEIE_Msk /*!<Tx FIFO Half Empty interrupt Enable */
  16938. #define SDMMC_MASK_RXFIFOHFIE_Pos (15U)
  16939. #define SDMMC_MASK_RXFIFOHFIE_Msk (0x1UL << SDMMC_MASK_RXFIFOHFIE_Pos) /*!< 0x00008000 */
  16940. #define SDMMC_MASK_RXFIFOHFIE SDMMC_MASK_RXFIFOHFIE_Msk /*!<Rx FIFO Half Full interrupt Enable */
  16941. #define SDMMC_MASK_RXFIFOFIE_Pos (17U)
  16942. #define SDMMC_MASK_RXFIFOFIE_Msk (0x1UL << SDMMC_MASK_RXFIFOFIE_Pos) /*!< 0x00020000 */
  16943. #define SDMMC_MASK_RXFIFOFIE SDMMC_MASK_RXFIFOFIE_Msk /*!<Rx FIFO Full interrupt Enable */
  16944. #define SDMMC_MASK_TXFIFOEIE_Pos (18U)
  16945. #define SDMMC_MASK_TXFIFOEIE_Msk (0x1UL << SDMMC_MASK_TXFIFOEIE_Pos) /*!< 0x00040000 */
  16946. #define SDMMC_MASK_TXFIFOEIE SDMMC_MASK_TXFIFOEIE_Msk /*!<Tx FIFO Empty interrupt Enable */
  16947. #define SDMMC_MASK_BUSYD0ENDIE_Pos (21U)
  16948. #define SDMMC_MASK_BUSYD0ENDIE_Msk (0x1UL << SDMMC_MASK_BUSYD0ENDIE_Pos) /*!< 0x00200000 */
  16949. #define SDMMC_MASK_BUSYD0ENDIE SDMMC_MASK_BUSYD0ENDIE_Msk /*!<BUSYD0END interrupt Enable */
  16950. #define SDMMC_MASK_SDIOITIE_Pos (22U)
  16951. #define SDMMC_MASK_SDIOITIE_Msk (0x1UL << SDMMC_MASK_SDIOITIE_Pos) /*!< 0x00400000 */
  16952. #define SDMMC_MASK_SDIOITIE SDMMC_MASK_SDIOITIE_Msk /*!<SDIO Mode Interrupt Received interrupt Enable */
  16953. #define SDMMC_MASK_ACKFAILIE_Pos (23U)
  16954. #define SDMMC_MASK_ACKFAILIE_Msk (0x1UL << SDMMC_MASK_ACKFAILIE_Pos) /*!< 0x00800000 */
  16955. #define SDMMC_MASK_ACKFAILIE SDMMC_MASK_ACKFAILIE_Msk /*!<Acknowledgment Fail Interrupt Enable */
  16956. #define SDMMC_MASK_ACKTIMEOUTIE_Pos (24U)
  16957. #define SDMMC_MASK_ACKTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_ACKTIMEOUTIE_Pos) /*!< 0x01000000 */
  16958. #define SDMMC_MASK_ACKTIMEOUTIE SDMMC_MASK_ACKTIMEOUTIE_Msk /*!<Acknowledgment timeout Interrupt Enable */
  16959. #define SDMMC_MASK_VSWENDIE_Pos (25U)
  16960. #define SDMMC_MASK_VSWENDIE_Msk (0x1UL << SDMMC_MASK_VSWENDIE_Pos) /*!< 0x02000000 */
  16961. #define SDMMC_MASK_VSWENDIE SDMMC_MASK_VSWENDIE_Msk /*!<Voltage switch critical timing section completion Interrupt Enable */
  16962. #define SDMMC_MASK_CKSTOPIE_Pos (26U)
  16963. #define SDMMC_MASK_CKSTOPIE_Msk (0x1UL << SDMMC_MASK_CKSTOPIE_Pos) /*!< 0x03000000 */
  16964. #define SDMMC_MASK_CKSTOPIE SDMMC_MASK_CKSTOPIE_Msk /*!<Voltage Switch clock stopped Interrupt Enable */
  16965. #define SDMMC_MASK_IDMABTCIE_Pos (28U)
  16966. #define SDMMC_MASK_IDMABTCIE_Msk (0x1UL << SDMMC_MASK_IDMABTCIE_Pos) /*!< 0x10000000 */
  16967. #define SDMMC_MASK_IDMABTCIE SDMMC_MASK_IDMABTCIE_Msk /*!<IDMA buffer transfer complete Interrupt Enable */
  16968. /****************** Bit definition for SDMMC_ACKTIMER register **************/
  16969. #define SDMMC_ACKTIME_ACKTIME_Pos (0U)
  16970. #define SDMMC_ACKTIME_ACKTIME_Msk (0x1FFFFFFUL << SDMMC_ACKTIME_ACKTIME_Pos)/*!< 0x01FFFFFF */
  16971. #define SDMMC_ACKTIME_ACKTIME SDMMC_ACKTIME_ACKTIME_Msk /*!<Boot acknowledgment timeout period */
  16972. /****************** Bit definition for SDMMC_FIFO register *******************/
  16973. #define SDMMC_FIFO_FIFODATA_Pos (0U)
  16974. #define SDMMC_FIFO_FIFODATA_Msk (0xFFFFFFFFUL << SDMMC_FIFO_FIFODATA_Pos)/*!< 0xFFFFFFFF */
  16975. #define SDMMC_FIFO_FIFODATA SDMMC_FIFO_FIFODATA_Msk /*!<Receive and transmit FIFO data */
  16976. /****************** Bit definition for SDMMC_IDMACTRL register ***************/
  16977. #define SDMMC_IDMA_IDMAEN_Pos (0U)
  16978. #define SDMMC_IDMA_IDMAEN_Msk (0x1UL << SDMMC_IDMA_IDMAEN_Pos) /*!< 0x00000001 */
  16979. #define SDMMC_IDMA_IDMAEN SDMMC_IDMA_IDMAEN_Msk /*!< Enable the internal DMA of the SDMMC peripheral */
  16980. #define SDMMC_IDMA_IDMABMODE_Pos (1U)
  16981. #define SDMMC_IDMA_IDMABMODE_Msk (0x1UL << SDMMC_IDMA_IDMABMODE_Pos) /*!< 0x00000002 */
  16982. #define SDMMC_IDMA_IDMABMODE SDMMC_IDMA_IDMABMODE_Msk /*!< Enable double buffer mode for IDMA */
  16983. #define SDMMC_IDMA_IDMABACT_Pos (2U)
  16984. #define SDMMC_IDMA_IDMABACT_Msk (0x1UL << SDMMC_IDMA_IDMABACT_Pos) /*!< 0x00000004 */
  16985. #define SDMMC_IDMA_IDMABACT SDMMC_IDMA_IDMABACT_Msk /*!< Uses buffer 1 when double buffer mode is selected */
  16986. /****************** Bit definition for SDMMC_IDMABSIZE register *************/
  16987. #define SDMMC_IDMABSIZE_IDMABND_Pos (5U)
  16988. #define SDMMC_IDMABSIZE_IDMABND_Msk (0xFFUL << SDMMC_IDMABSIZE_IDMABND_Pos)/*!< 0x00001FE0 */
  16989. #define SDMMC_IDMABSIZE_IDMABND SDMMC_IDMABSIZE_IDMABND_Msk /*!<Number of transfers per buffer */
  16990. /****************** Bit definition for SDMMC_IDMABASE0 register *************/
  16991. #define SDMMC_IDMABASE0_IDMABASE0_Pos (0U)
  16992. #define SDMMC_IDMABASE0_IDMABASE0_Msk (0xFFFFFFFFUL << SDMMC_IDMABASE0_IDMABASE0_Pos)/*!< 0xFFFFFFFF */
  16993. #define SDMMC_IDMABASE0_IDMABASE0 SDMMC_IDMABASE0_IDMABASE0_Msk /*!<Buffer 0 memory base address */
  16994. /****************** Bit definition for SDMMC_IDMABASE1 register *************/
  16995. #define SDMMC_IDMABASE1_IDMABASE1_Pos (0U)
  16996. #define SDMMC_IDMABASE1_IDMABASE1_Msk (0xFFFFFFFFUL << SDMMC_IDMABASE1_IDMABASE0_Pos)/*!< 0xFFFFFFFF */
  16997. #define SDMMC_IDMABASE1_IDMABASE1 SDMMC_IDMABASE0_IDMABASE1_Msk /*!<Buffer 1 memory base address */
  16998. /******************************************************************************/
  16999. /* */
  17000. /* UCPD */
  17001. /* */
  17002. /******************************************************************************/
  17003. /******************** Bits definition for UCPD_CFG1 register *******************/
  17004. #define UCPD_CFG1_HBITCLKDIV_Pos (0U)
  17005. #define UCPD_CFG1_HBITCLKDIV_Msk (0x3FUL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x0000003F */
  17006. #define UCPD_CFG1_HBITCLKDIV UCPD_CFG1_HBITCLKDIV_Msk /*!< Number of cycles (minus 1) for a half bit clock */
  17007. #define UCPD_CFG1_HBITCLKDIV_0 (0x01UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000001 */
  17008. #define UCPD_CFG1_HBITCLKDIV_1 (0x02UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000002 */
  17009. #define UCPD_CFG1_HBITCLKDIV_2 (0x04UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000004 */
  17010. #define UCPD_CFG1_HBITCLKDIV_3 (0x08UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000008 */
  17011. #define UCPD_CFG1_HBITCLKDIV_4 (0x10UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000010 */
  17012. #define UCPD_CFG1_HBITCLKDIV_5 (0x20UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000020 */
  17013. #define UCPD_CFG1_IFRGAP_Pos (6U)
  17014. #define UCPD_CFG1_IFRGAP_Msk (0x1FUL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x000007C0 */
  17015. #define UCPD_CFG1_IFRGAP UCPD_CFG1_IFRGAP_Msk /*!< Clock divider value to generates Interframe gap */
  17016. #define UCPD_CFG1_IFRGAP_0 (0x01UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000040 */
  17017. #define UCPD_CFG1_IFRGAP_1 (0x02UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000080 */
  17018. #define UCPD_CFG1_IFRGAP_2 (0x04UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000100 */
  17019. #define UCPD_CFG1_IFRGAP_3 (0x08UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000200 */
  17020. #define UCPD_CFG1_IFRGAP_4 (0x10UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000400 */
  17021. #define UCPD_CFG1_TRANSWIN_Pos (11U)
  17022. #define UCPD_CFG1_TRANSWIN_Msk (0x1FUL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x0000F800 */
  17023. #define UCPD_CFG1_TRANSWIN UCPD_CFG1_TRANSWIN_Msk /*!< Number of cycles (minus 1) of the half bit clock */
  17024. #define UCPD_CFG1_TRANSWIN_0 (0x01UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00000800 */
  17025. #define UCPD_CFG1_TRANSWIN_1 (0x02UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00001000 */
  17026. #define UCPD_CFG1_TRANSWIN_2 (0x04UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00002000 */
  17027. #define UCPD_CFG1_TRANSWIN_3 (0x08UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00004000 */
  17028. #define UCPD_CFG1_TRANSWIN_4 (0x10UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00008000 */
  17029. #define UCPD_CFG1_PSC_UCPDCLK_Pos (17U)
  17030. #define UCPD_CFG1_PSC_UCPDCLK_Msk (0x7UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x000E0000 */
  17031. #define UCPD_CFG1_PSC_UCPDCLK UCPD_CFG1_PSC_UCPDCLK_Msk /*!< Prescaler for UCPDCLK */
  17032. #define UCPD_CFG1_PSC_UCPDCLK_0 (0x1UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x00020000 */
  17033. #define UCPD_CFG1_PSC_UCPDCLK_1 (0x2UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x00040000 */
  17034. #define UCPD_CFG1_PSC_UCPDCLK_2 (0x4UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x00080000 */
  17035. #define UCPD_CFG1_RXORDSETEN_Pos (20U)
  17036. #define UCPD_CFG1_RXORDSETEN_Msk (0x1FFUL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x1FF00000 */
  17037. #define UCPD_CFG1_RXORDSETEN UCPD_CFG1_RXORDSETEN_Msk /*!< Receiver ordered set detection enable */
  17038. #define UCPD_CFG1_RXORDSETEN_0 (0x001UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00100000 */
  17039. #define UCPD_CFG1_RXORDSETEN_1 (0x002UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00200000 */
  17040. #define UCPD_CFG1_RXORDSETEN_2 (0x004UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00400000 */
  17041. #define UCPD_CFG1_RXORDSETEN_3 (0x008UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00800000 */
  17042. #define UCPD_CFG1_RXORDSETEN_4 (0x010UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x01000000 */
  17043. #define UCPD_CFG1_RXORDSETEN_5 (0x020UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x02000000 */
  17044. #define UCPD_CFG1_RXORDSETEN_6 (0x040UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x04000000 */
  17045. #define UCPD_CFG1_RXORDSETEN_7 (0x080UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x08000000 */
  17046. #define UCPD_CFG1_RXORDSETEN_8 (0x100UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x10000000 */
  17047. #define UCPD_CFG1_TXDMAEN_Pos (29U)
  17048. #define UCPD_CFG1_TXDMAEN_Msk (0x1UL << UCPD_CFG1_TXDMAEN_Pos) /*!< 0x20000000 */
  17049. #define UCPD_CFG1_TXDMAEN UCPD_CFG1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  17050. #define UCPD_CFG1_RXDMAEN_Pos (30U)
  17051. #define UCPD_CFG1_RXDMAEN_Msk (0x1UL << UCPD_CFG1_RXDMAEN_Pos) /*!< 0x40000000 */
  17052. #define UCPD_CFG1_RXDMAEN UCPD_CFG1_RXDMAEN_Msk /*!< DMA reception requests enable */
  17053. #define UCPD_CFG1_UCPDEN_Pos (31U)
  17054. #define UCPD_CFG1_UCPDEN_Msk (0x1UL << UCPD_CFG1_UCPDEN_Pos) /*!< 0x80000000 */
  17055. #define UCPD_CFG1_UCPDEN UCPD_CFG1_UCPDEN_Msk /*!< USB Power Delivery Block Enable */
  17056. /******************** Bits definition for UCPD_CFG2 register *******************/
  17057. #define UCPD_CFG2_RXFILTDIS_Pos (0U)
  17058. #define UCPD_CFG2_RXFILTDIS_Msk (0x1UL << UCPD_CFG2_RXFILTDIS_Pos) /*!< 0x00000001 */
  17059. #define UCPD_CFG2_RXFILTDIS UCPD_CFG2_RXFILTDIS_Msk /*!< Enables an Rx pre-filter for the BMC decoder */
  17060. #define UCPD_CFG2_RXFILT2N3_Pos (1U)
  17061. #define UCPD_CFG2_RXFILT2N3_Msk (0x1UL << UCPD_CFG2_RXFILT2N3_Pos) /*!< 0x00000002 */
  17062. #define UCPD_CFG2_RXFILT2N3 UCPD_CFG2_RXFILT2N3_Msk /*!< Controls the sampling method for an Rx pre-filter for the BMC decode */
  17063. #define UCPD_CFG2_FORCECLK_Pos (2U)
  17064. #define UCPD_CFG2_FORCECLK_Msk (0x1UL << UCPD_CFG2_FORCECLK_Pos) /*!< 0x00000004 */
  17065. #define UCPD_CFG2_FORCECLK UCPD_CFG2_FORCECLK_Msk /*!< Controls forcing of the clock request UCPDCLK_REQ */
  17066. #define UCPD_CFG2_WUPEN_Pos (3U)
  17067. #define UCPD_CFG2_WUPEN_Msk (0x1UL << UCPD_CFG2_WUPEN_Pos) /*!< 0x00000008 */
  17068. #define UCPD_CFG2_WUPEN UCPD_CFG2_WUPEN_Msk /*!< Wakeup from STOP enable */
  17069. /******************** Bits definition for UCPD_CFG3 register *******************/
  17070. #define UCPD_CFG3_TRIM1_NG_CCRPD_Pos (0U)
  17071. #define UCPD_CFG3_TRIM1_NG_CCRPD_Msk (0xFUL << UCPD_CFG3_TRIM1_NG_CCRPD_Pos) /*!< 0x0000000F */
  17072. #define UCPD_CFG3_TRIM1_NG_CCRPD UCPD_CFG3_TRIM1_NG_CCRPD_Msk /*!< SW trim value for RPDEFAULT resistors (CC1) */
  17073. #define UCPD_CFG3_TRIM1_NG_CC1A5_Pos (4U)
  17074. #define UCPD_CFG3_TRIM1_NG_CC1A5_Msk (0x1FUL << UCPD_CFG3_TRIM1_NG_CC1A5_Pos)/*!< 0x000001F0 */
  17075. #define UCPD_CFG3_TRIM1_NG_CC1A5 UCPD_CFG3_TRIM1_NG_CC1A5_Msk /*!< SW trim value for RP1A5 resistors (CC1) */
  17076. #define UCPD_CFG3_TRIM1_NG_CC3A0_Pos (9U)
  17077. #define UCPD_CFG3_TRIM1_NG_CC3A0_Msk (0xFUL << UCPD_CFG3_TRIM1_NG_CC3A0_Pos) /*!< 0x00001E00 */
  17078. #define UCPD_CFG3_TRIM1_NG_CC3A0 UCPD_CFG3_TRIM1_NG_CC3A0_Msk /*!< SW trim value for RP3A0 resistors (CC1) */
  17079. #define UCPD_CFG3_TRIM2_NG_CCRPD_Pos (16U)
  17080. #define UCPD_CFG3_TRIM2_NG_CCRPD_Msk (0xFUL << UCPD_CFG3_TRIM2_NG_CCRPD_Pos) /*!< 0x000F0000 */
  17081. #define UCPD_CFG3_TRIM2_NG_CCRPD UCPD_CFG3_TRIM2_NG_CCRPD_Msk /*!< SW trim value for RPDEFAULT resistors (CC1) */
  17082. #define UCPD_CFG3_TRIM2_NG_CC1A5_Pos (20U)
  17083. #define UCPD_CFG3_TRIM2_NG_CC1A5_Msk (0x1FUL << UCPD_CFG3_TRIM2_NG_CC1A5_Pos)/*!< 0x01F00000 */
  17084. #define UCPD_CFG3_TRIM2_NG_CC1A5 UCPD_CFG3_TRIM2_NG_CC1A5_Msk /*!< SW trim value for RP1A5 resistors (CC1) */
  17085. #define UCPD_CFG3_TRIM2_NG_CC3A0_Pos (25U)
  17086. #define UCPD_CFG3_TRIM2_NG_CC3A0_Msk (0xFUL << UCPD_CFG3_TRIM2_NG_CC3A0_Pos) /*!< 0x1E000000 */
  17087. #define UCPD_CFG3_TRIM2_NG_CC3A0 UCPD_CFG3_TRIM2_NG_CC3A0_Msk /*!< SW trim value for RP3A0 resistors (CC1) */
  17088. /******************** Bits definition for UCPD_CR register ********************/
  17089. #define UCPD_CR_TXMODE_Pos (0U)
  17090. #define UCPD_CR_TXMODE_Msk (0x3UL << UCPD_CR_TXMODE_Pos) /*!< 0x00000003 */
  17091. #define UCPD_CR_TXMODE UCPD_CR_TXMODE_Msk /*!< Type of Tx packet */
  17092. #define UCPD_CR_TXMODE_0 (0x1UL << UCPD_CR_TXMODE_Pos) /*!< 0x00000001 */
  17093. #define UCPD_CR_TXMODE_1 (0x2UL << UCPD_CR_TXMODE_Pos) /*!< 0x00000002 */
  17094. #define UCPD_CR_TXSEND_Pos (2U)
  17095. #define UCPD_CR_TXSEND_Msk (0x1UL << UCPD_CR_TXSEND_Pos) /*!< 0x00000004 */
  17096. #define UCPD_CR_TXSEND UCPD_CR_TXSEND_Msk /*!< Type of Tx packet */
  17097. #define UCPD_CR_TXHRST_Pos (3U)
  17098. #define UCPD_CR_TXHRST_Msk (0x1UL << UCPD_CR_TXHRST_Pos) /*!< 0x00000008 */
  17099. #define UCPD_CR_TXHRST UCPD_CR_TXHRST_Msk /*!< Command to send a Tx Hard Reset */
  17100. #define UCPD_CR_RXMODE_Pos (4U)
  17101. #define UCPD_CR_RXMODE_Msk (0x1UL << UCPD_CR_RXMODE_Pos) /*!< 0x00000010 */
  17102. #define UCPD_CR_RXMODE UCPD_CR_RXMODE_Msk /*!< Receiver mode */
  17103. #define UCPD_CR_PHYRXEN_Pos (5U)
  17104. #define UCPD_CR_PHYRXEN_Msk (0x1UL << UCPD_CR_PHYRXEN_Pos) /*!< 0x00000020 */
  17105. #define UCPD_CR_PHYRXEN UCPD_CR_PHYRXEN_Msk /*!< Controls enable of USB Power Delivery receiver */
  17106. #define UCPD_CR_PHYCCSEL_Pos (6U)
  17107. #define UCPD_CR_PHYCCSEL_Msk (0x1UL << UCPD_CR_PHYCCSEL_Pos) /*!< 0x00000040 */
  17108. #define UCPD_CR_PHYCCSEL UCPD_CR_PHYCCSEL_Msk /*!< */
  17109. #define UCPD_CR_ANASUBMODE_Pos (7U)
  17110. #define UCPD_CR_ANASUBMODE_Msk (0x3UL << UCPD_CR_ANASUBMODE_Pos) /*!< 0x00000180 */
  17111. #define UCPD_CR_ANASUBMODE UCPD_CR_ANASUBMODE_Msk /*!< Analog PHY sub-mode */
  17112. #define UCPD_CR_ANASUBMODE_0 (0x1UL << UCPD_CR_ANASUBMODE_Pos) /*!< 0x00000080 */
  17113. #define UCPD_CR_ANASUBMODE_1 (0x2UL << UCPD_CR_ANASUBMODE_Pos) /*!< 0x00000100 */
  17114. #define UCPD_CR_ANAMODE_Pos (9U)
  17115. #define UCPD_CR_ANAMODE_Msk (0x1UL << UCPD_CR_ANAMODE_Pos) /*!< 0x00000200 */
  17116. #define UCPD_CR_ANAMODE UCPD_CR_ANAMODE_Msk /*!< Analog PHY working mode */
  17117. #define UCPD_CR_CCENABLE_Pos (10U)
  17118. #define UCPD_CR_CCENABLE_Msk (0x3UL << UCPD_CR_CCENABLE_Pos) /*!< 0x00000C00 */
  17119. #define UCPD_CR_CCENABLE UCPD_CR_CCENABLE_Msk /*!< */
  17120. #define UCPD_CR_CCENABLE_0 (0x1UL << UCPD_CR_CCENABLE_Pos) /*!< 0x00000400 */
  17121. #define UCPD_CR_CCENABLE_1 (0x2UL << UCPD_CR_CCENABLE_Pos) /*!< 0x00000800 */
  17122. #define UCPD_CR_USEEXTPHY_Pos (12U)
  17123. #define UCPD_CR_USEEXTPHY_Msk (0x1UL << UCPD_CR_USEEXTPHY_Pos) /*!< 0x00001000 */
  17124. #define UCPD_CR_USEEXTPHY UCPD_CR_USEEXTPHY_Msk /*!< Controls enable of USB Power Delivery transmitter */
  17125. #define UCPD_CR_CC2VCONNEN_Pos (13U)
  17126. #define UCPD_CR_CC2VCONNEN_Msk (0x1UL << UCPD_CR_CC2VCONNEN_Pos) /*!< 0x00002000 */
  17127. #define UCPD_CR_CC2VCONNEN UCPD_CR_CC2VCONNEN_Msk /*!< VCONN enable for CC2 */
  17128. #define UCPD_CR_CC1VCONNEN_Pos (14U)
  17129. #define UCPD_CR_CC1VCONNEN_Msk (0x1UL << UCPD_CR_CC1VCONNEN_Pos) /*!< 0x00004000 */
  17130. #define UCPD_CR_CC1VCONNEN UCPD_CR_CC1VCONNEN_Msk /*!< VCONN enable for CC1 */
  17131. #define UCPD_CR_DBATEN_Pos (15U)
  17132. #define UCPD_CR_DBATEN_Msk (0x1UL << UCPD_CR_DBATEN_Pos) /*!< 0x00008000 */
  17133. #define UCPD_CR_DBATEN UCPD_CR_DBATEN_Msk /*!< Enable dead battery behavior (Active High) */
  17134. #define UCPD_CR_FRSRXEN_Pos (16U)
  17135. #define UCPD_CR_FRSRXEN_Msk (0x1UL << UCPD_CR_FRSRXEN_Pos) /*!< 0x00010000 */
  17136. #define UCPD_CR_FRSRXEN UCPD_CR_FRSRXEN_Msk /*!< Enable FRS request detection function */
  17137. #define UCPD_CR_FRSTX_Pos (17U)
  17138. #define UCPD_CR_FRSTX_Msk (0x1UL << UCPD_CR_FRSTX_Pos) /*!< 0x00020000 */
  17139. #define UCPD_CR_FRSTX UCPD_CR_FRSTX_Msk /*!< Signal Fast Role Swap request */
  17140. #define UCPD_CR_RDCH_Pos (18U)
  17141. #define UCPD_CR_RDCH_Msk (0x1UL << UCPD_CR_RDCH_Pos) /*!< 0x00040000 */
  17142. #define UCPD_CR_RDCH UCPD_CR_RDCH_Msk /*!< */
  17143. #define UCPD_CR_RPUSBABSENT_Pos (19U)
  17144. #define UCPD_CR_RPUSBABSENT_Msk (0x1UL << UCPD_CR_RPUSBABSENT_Pos) /*!< 0x00080000 */
  17145. #define UCPD_CR_RPUSBABSENT UCPD_CR_RPUSBABSENT_Msk /*!< */
  17146. #define UCPD_CR_CC1TCDIS_Pos (20U)
  17147. #define UCPD_CR_CC1TCDIS_Msk (0x1UL << UCPD_CR_CC1TCDIS_Pos) /*!< 0x00100000 */
  17148. #define UCPD_CR_CC1TCDIS UCPD_CR_CC1TCDIS_Msk /*!< The bit allows the Type-C detector for CC0 to be disabled. */
  17149. #define UCPD_CR_CC2TCDIS_Pos (21U)
  17150. #define UCPD_CR_CC2TCDIS_Msk (0x1UL << UCPD_CR_CC2TCDIS_Pos) /*!< 0x00200000 */
  17151. #define UCPD_CR_CC2TCDIS UCPD_CR_CC2TCDIS_Msk /*!< The bit allows the Type-C detector for CC2 to be disabled. */
  17152. /******************** Bits definition for UCPD_IMR register *******************/
  17153. #define UCPD_IMR_TXISIE_Pos (0U)
  17154. #define UCPD_IMR_TXISIE_Msk (0x1UL << UCPD_IMR_TXISIE_Pos) /*!< 0x00000001 */
  17155. #define UCPD_IMR_TXISIE UCPD_IMR_TXISIE_Msk /*!< Enable TXIS interrupt */
  17156. #define UCPD_IMR_TXMSGDISCIE_Pos (1U)
  17157. #define UCPD_IMR_TXMSGDISCIE_Msk (0x1UL << UCPD_IMR_TXMSGDISCIE_Pos) /*!< 0x00000002 */
  17158. #define UCPD_IMR_TXMSGDISCIE UCPD_IMR_TXMSGDISCIE_Msk /*!< Enable TXMSGDISC interrupt */
  17159. #define UCPD_IMR_TXMSGSENTIE_Pos (2U)
  17160. #define UCPD_IMR_TXMSGSENTIE_Msk (0x1UL << UCPD_IMR_TXMSGSENTIE_Pos) /*!< 0x00000004 */
  17161. #define UCPD_IMR_TXMSGSENTIE UCPD_IMR_TXMSGSENTIE_Msk /*!< Enable TXMSGSENT interrupt */
  17162. #define UCPD_IMR_TXMSGABTIE_Pos (3U)
  17163. #define UCPD_IMR_TXMSGABTIE_Msk (0x1UL << UCPD_IMR_TXMSGABTIE_Pos) /*!< 0x00000008 */
  17164. #define UCPD_IMR_TXMSGABTIE UCPD_IMR_TXMSGABTIE_Msk /*!< Enable TXMSGABT interrupt */
  17165. #define UCPD_IMR_HRSTDISCIE_Pos (4U)
  17166. #define UCPD_IMR_HRSTDISCIE_Msk (0x1UL << UCPD_IMR_HRSTDISCIE_Pos) /*!< 0x00000010 */
  17167. #define UCPD_IMR_HRSTDISCIE UCPD_IMR_HRSTDISCIE_Msk /*!< Enable HRSTDISC interrupt */
  17168. #define UCPD_IMR_HRSTSENTIE_Pos (5U)
  17169. #define UCPD_IMR_HRSTSENTIE_Msk (0x1UL << UCPD_IMR_HRSTSENTIE_Pos) /*!< 0x00000020 */
  17170. #define UCPD_IMR_HRSTSENTIE UCPD_IMR_HRSTSENTIE_Msk /*!< Enable HRSTSENT interrupt */
  17171. #define UCPD_IMR_TXUNDIE_Pos (6U)
  17172. #define UCPD_IMR_TXUNDIE_Msk (0x1UL << UCPD_IMR_TXUNDIE_Pos) /*!< 0x00000040 */
  17173. #define UCPD_IMR_TXUNDIE UCPD_IMR_TXUNDIE_Msk /*!< Enable TXUND interrupt */
  17174. #define UCPD_IMR_RXNEIE_Pos (8U)
  17175. #define UCPD_IMR_RXNEIE_Msk (0x1UL << UCPD_IMR_RXNEIE_Pos) /*!< 0x00000100 */
  17176. #define UCPD_IMR_RXNEIE UCPD_IMR_RXNEIE_Msk /*!< Enable RXNE interrupt */
  17177. #define UCPD_IMR_RXORDDETIE_Pos (9U)
  17178. #define UCPD_IMR_RXORDDETIE_Msk (0x1UL << UCPD_IMR_RXORDDETIE_Pos) /*!< 0x00000200 */
  17179. #define UCPD_IMR_RXORDDETIE UCPD_IMR_RXORDDETIE_Msk /*!< Enable RXORDDET interrupt */
  17180. #define UCPD_IMR_RXHRSTDETIE_Pos (10U)
  17181. #define UCPD_IMR_RXHRSTDETIE_Msk (0x1UL << UCPD_IMR_RXHRSTDETIE_Pos) /*!< 0x00000400 */
  17182. #define UCPD_IMR_RXHRSTDETIE UCPD_IMR_RXHRSTDETIE_Msk /*!< Enable RXHRSTDET interrupt */
  17183. #define UCPD_IMR_RXOVRIE_Pos (11U)
  17184. #define UCPD_IMR_RXOVRIE_Msk (0x1UL << UCPD_IMR_RXOVRIE_Pos) /*!< 0x00000800 */
  17185. #define UCPD_IMR_RXOVRIE UCPD_IMR_RXOVRIE_Msk /*!< Enable RXOVR interrupt */
  17186. #define UCPD_IMR_RXMSGENDIE_Pos (12U)
  17187. #define UCPD_IMR_RXMSGENDIE_Msk (0x1UL << UCPD_IMR_RXMSGENDIE_Pos) /*!< 0x00001000 */
  17188. #define UCPD_IMR_RXMSGENDIE UCPD_IMR_RXMSGENDIE_Msk /*!< Enable RXMSGEND interrupt */
  17189. #define UCPD_IMR_TYPECEVT1IE_Pos (14U)
  17190. #define UCPD_IMR_TYPECEVT1IE_Msk (0x1UL << UCPD_IMR_TYPECEVT1IE_Pos) /*!< 0x00004000 */
  17191. #define UCPD_IMR_TYPECEVT1IE UCPD_IMR_TYPECEVT1IE_Msk /*!< Enable TYPECEVT1IE interrupt */
  17192. #define UCPD_IMR_TYPECEVT2IE_Pos (15U)
  17193. #define UCPD_IMR_TYPECEVT2IE_Msk (0x1UL << UCPD_IMR_TYPECEVT2IE_Pos) /*!< 0x00008000 */
  17194. #define UCPD_IMR_TYPECEVT2IE UCPD_IMR_TYPECEVT2IE_Msk /*!< Enable TYPECEVT2IE interrupt */
  17195. #define UCPD_IMR_FRSEVTIE_Pos (20U)
  17196. #define UCPD_IMR_FRSEVTIE_Msk (0x1UL << UCPD_IMR_FRSEVTIE_Pos) /*!< 0x00100000 */
  17197. #define UCPD_IMR_FRSEVTIE UCPD_IMR_FRSEVTIE_Msk /*!< Fast Role Swap interrupt */
  17198. /******************** Bits definition for UCPD_SR register ********************/
  17199. #define UCPD_SR_TXIS_Pos (0U)
  17200. #define UCPD_SR_TXIS_Msk (0x1UL << UCPD_SR_TXIS_Pos) /*!< 0x00000001 */
  17201. #define UCPD_SR_TXIS UCPD_SR_TXIS_Msk /*!< Transmit interrupt status */
  17202. #define UCPD_SR_TXMSGDISC_Pos (1U)
  17203. #define UCPD_SR_TXMSGDISC_Msk (0x1UL << UCPD_SR_TXMSGDISC_Pos) /*!< 0x00000002 */
  17204. #define UCPD_SR_TXMSGDISC UCPD_SR_TXMSGDISC_Msk /*!< Transmit message discarded interrupt */
  17205. #define UCPD_SR_TXMSGSENT_Pos (2U)
  17206. #define UCPD_SR_TXMSGSENT_Msk (0x1UL << UCPD_SR_TXMSGSENT_Pos) /*!< 0x00000004 */
  17207. #define UCPD_SR_TXMSGSENT UCPD_SR_TXMSGSENT_Msk /*!< Transmit message sent interrupt */
  17208. #define UCPD_SR_TXMSGABT_Pos (3U)
  17209. #define UCPD_SR_TXMSGABT_Msk (0x1UL << UCPD_SR_TXMSGABT_Pos) /*!< 0x00000008 */
  17210. #define UCPD_SR_TXMSGABT UCPD_SR_TXMSGABT_Msk /*!< Transmit message abort interrupt */
  17211. #define UCPD_SR_HRSTDISC_Pos (4U)
  17212. #define UCPD_SR_HRSTDISC_Msk (0x1UL << UCPD_SR_HRSTDISC_Pos) /*!< 0x00000010 */
  17213. #define UCPD_SR_HRSTDISC UCPD_SR_HRSTDISC_Msk /*!< HRST discarded interrupt */
  17214. #define UCPD_SR_HRSTSENT_Pos (5U)
  17215. #define UCPD_SR_HRSTSENT_Msk (0x1UL << UCPD_SR_HRSTSENT_Pos) /*!< 0x00000020 */
  17216. #define UCPD_SR_HRSTSENT UCPD_SR_HRSTSENT_Msk /*!< HRST sent interrupt */
  17217. #define UCPD_SR_TXUND_Pos (6U)
  17218. #define UCPD_SR_TXUND_Msk (0x1UL << UCPD_SR_TXUND_Pos) /*!< 0x00000040 */
  17219. #define UCPD_SR_TXUND UCPD_SR_TXUND_Msk /*!< Tx data underrun condition interrupt */
  17220. #define UCPD_SR_RXNE_Pos (8U)
  17221. #define UCPD_SR_RXNE_Msk (0x1UL << UCPD_SR_RXNE_Pos) /*!< 0x00000100 */
  17222. #define UCPD_SR_RXNE UCPD_SR_RXNE_Msk /*!< Receive data register not empty interrupt */
  17223. #define UCPD_SR_RXORDDET_Pos (9U)
  17224. #define UCPD_SR_RXORDDET_Msk (0x1UL << UCPD_SR_RXORDDET_Pos) /*!< 0x00000200 */
  17225. #define UCPD_SR_RXORDDET UCPD_SR_RXORDDET_Msk /*!< Rx ordered set (4 K-codes) detected interrupt */
  17226. #define UCPD_SR_RXHRSTDET_Pos (10U)
  17227. #define UCPD_SR_RXHRSTDET_Msk (0x1UL << UCPD_SR_RXHRSTDET_Pos) /*!< 0x00000400 */
  17228. #define UCPD_SR_RXHRSTDET UCPD_SR_RXHRSTDET_Msk /*!< Rx Hard Reset detect interrupt */
  17229. #define UCPD_SR_RXOVR_Pos (11U)
  17230. #define UCPD_SR_RXOVR_Msk (0x1UL << UCPD_SR_RXOVR_Pos) /*!< 0x00000800 */
  17231. #define UCPD_SR_RXOVR UCPD_SR_RXOVR_Msk /*!< Rx data overflow interrupt */
  17232. #define UCPD_SR_RXMSGEND_Pos (12U)
  17233. #define UCPD_SR_RXMSGEND_Msk (0x1UL << UCPD_SR_RXMSGEND_Pos) /*!< 0x00001000 */
  17234. #define UCPD_SR_RXMSGEND UCPD_SR_RXMSGEND_Msk /*!< Rx message received */
  17235. #define UCPD_SR_RXERR_Pos (13U)
  17236. #define UCPD_SR_RXERR_Msk (0x1UL << UCPD_SR_RXERR_Pos) /*!< 0x00002000 */
  17237. #define UCPD_SR_RXERR UCPD_SR_RXERR_Msk /*!< RX Error */
  17238. #define UCPD_SR_TYPECEVT1_Pos (14U)
  17239. #define UCPD_SR_TYPECEVT1_Msk (0x1UL << UCPD_SR_TYPECEVT1_Pos) /*!< 0x00004000 */
  17240. #define UCPD_SR_TYPECEVT1 UCPD_SR_TYPECEVT1_Msk /*!< Type C voltage level event on CC1 */
  17241. #define UCPD_SR_TYPECEVT2_Pos (15U)
  17242. #define UCPD_SR_TYPECEVT2_Msk (0x1UL << UCPD_SR_TYPECEVT2_Pos) /*!< 0x00008000 */
  17243. #define UCPD_SR_TYPECEVT2 UCPD_SR_TYPECEVT2_Msk /*!< Type C voltage level event on CC2 */
  17244. #define UCPD_SR_TYPEC_VSTATE_CC1_Pos (16U)
  17245. #define UCPD_SR_TYPEC_VSTATE_CC1_Msk (0x3UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos)/*!< 0x00030000 */
  17246. #define UCPD_SR_TYPEC_VSTATE_CC1 UCPD_SR_TYPEC_VSTATE_CC1_Msk /*!< Status of DC level on CC1 pin */
  17247. #define UCPD_SR_TYPEC_VSTATE_CC1_0 (0x1UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos)/*!< 0x00010000 */
  17248. #define UCPD_SR_TYPEC_VSTATE_CC1_1 (0x2UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos)/*!< 0x00020000 */
  17249. #define UCPD_SR_TYPEC_VSTATE_CC2_Pos (18U)
  17250. #define UCPD_SR_TYPEC_VSTATE_CC2_Msk (0x3UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos)/*!< 0x000C0000 */
  17251. #define UCPD_SR_TYPEC_VSTATE_CC2 UCPD_SR_TYPEC_VSTATE_CC2_Msk /*!<Status of DC level on CC2 pin */
  17252. #define UCPD_SR_TYPEC_VSTATE_CC2_0 (0x1UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos)/*!< 0x00040000 */
  17253. #define UCPD_SR_TYPEC_VSTATE_CC2_1 (0x2UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos)/*!< 0x00080000 */
  17254. #define UCPD_SR_FRSEVT_Pos (20U)
  17255. #define UCPD_SR_FRSEVT_Msk (0x1UL << UCPD_SR_FRSEVT_Pos) /*!< 0x00100000 */
  17256. #define UCPD_SR_FRSEVT UCPD_SR_FRSEVT_Msk /*!< Fast Role Swap detection event */
  17257. /******************** Bits definition for UCPD_ICR register *******************/
  17258. #define UCPD_ICR_TXMSGDISCCF_Pos (1U)
  17259. #define UCPD_ICR_TXMSGDISCCF_Msk (0x1UL << UCPD_ICR_TXMSGDISCCF_Pos) /*!< 0x00000002 */
  17260. #define UCPD_ICR_TXMSGDISCCF UCPD_ICR_TXMSGDISCCF_Msk /*!< Tx message discarded flag (TXMSGDISC) clear */
  17261. #define UCPD_ICR_TXMSGSENTCF_Pos (2U)
  17262. #define UCPD_ICR_TXMSGSENTCF_Msk (0x1UL << UCPD_ICR_TXMSGSENTCF_Pos) /*!< 0x00000004 */
  17263. #define UCPD_ICR_TXMSGSENTCF UCPD_ICR_TXMSGSENTCF_Msk /*!< Tx message sent flag (TXMSGSENT) clear */
  17264. #define UCPD_ICR_TXMSGABTCF_Pos (3U)
  17265. #define UCPD_ICR_TXMSGABTCF_Msk (0x1UL << UCPD_ICR_TXMSGABTCF_Pos) /*!< 0x00000008 */
  17266. #define UCPD_ICR_TXMSGABTCF UCPD_ICR_TXMSGABTCF_Msk /*!< Tx message abort flag (TXMSGABT) clear */
  17267. #define UCPD_ICR_HRSTDISCCF_Pos (4U)
  17268. #define UCPD_ICR_HRSTDISCCF_Msk (0x1UL << UCPD_ICR_HRSTDISCCF_Pos) /*!< 0x00000010 */
  17269. #define UCPD_ICR_HRSTDISCCF UCPD_ICR_HRSTDISCCF_Msk /*!< Hard reset discarded flag (HRSTDISC) clear */
  17270. #define UCPD_ICR_HRSTSENTCF_Pos (5U)
  17271. #define UCPD_ICR_HRSTSENTCF_Msk (0x1UL << UCPD_ICR_HRSTSENTCF_Pos) /*!< 0x00000020 */
  17272. #define UCPD_ICR_HRSTSENTCF UCPD_ICR_HRSTSENTCF_Msk /*!< Hard reset sent flag (HRSTSENT) clear */
  17273. #define UCPD_ICR_TXUNDCF_Pos (6U)
  17274. #define UCPD_ICR_TXUNDCF_Msk (0x1UL << UCPD_ICR_TXUNDCF_Pos) /*!< 0x00000040 */
  17275. #define UCPD_ICR_TXUNDCF UCPD_ICR_TXUNDCF_Msk /*!< Tx underflow flag (TXUND) clear */
  17276. #define UCPD_ICR_RXORDDETCF_Pos (9U)
  17277. #define UCPD_ICR_RXORDDETCF_Msk (0x1UL << UCPD_ICR_RXORDDETCF_Pos) /*!< 0x00000200 */
  17278. #define UCPD_ICR_RXORDDETCF UCPD_ICR_RXORDDETCF_Msk /*!< Rx ordered set detect flag (RXORDDET) clear */
  17279. #define UCPD_ICR_RXHRSTDETCF_Pos (10U)
  17280. #define UCPD_ICR_RXHRSTDETCF_Msk (0x1UL << UCPD_ICR_RXHRSTDETCF_Pos) /*!< 0x00000400 */
  17281. #define UCPD_ICR_RXHRSTDETCF UCPD_ICR_RXHRSTDETCF_Msk /*!< Rx Hard Reset detected flag (RXHRSTDET) clear */
  17282. #define UCPD_ICR_RXOVRCF_Pos (11U)
  17283. #define UCPD_ICR_RXOVRCF_Msk (0x1UL << UCPD_ICR_RXOVRCF_Pos) /*!< 0x00000800 */
  17284. #define UCPD_ICR_RXOVRCF UCPD_ICR_RXOVRCF_Msk /*!< Rx overflow flag (RXOVR) clear */
  17285. #define UCPD_ICR_RXMSGENDCF_Pos (12U)
  17286. #define UCPD_ICR_RXMSGENDCF_Msk (0x1UL << UCPD_ICR_RXMSGENDCF_Pos) /*!< 0x00001000 */
  17287. #define UCPD_ICR_RXMSGENDCF UCPD_ICR_RXMSGENDCF_Msk /*!< Rx message received flag (RXMSGEND) clear */
  17288. #define UCPD_ICR_TYPECEVT1CF_Pos (14U)
  17289. #define UCPD_ICR_TYPECEVT1CF_Msk (0x1UL << UCPD_ICR_TYPECEVT1CF_Pos) /*!< 0x00004000 */
  17290. #define UCPD_ICR_TYPECEVT1CF UCPD_ICR_TYPECEVT1CF_Msk /*!< TypeC event (CC1) flag (TYPECEVT1) clear */
  17291. #define UCPD_ICR_TYPECEVT2CF_Pos (15U)
  17292. #define UCPD_ICR_TYPECEVT2CF_Msk (0x1UL << UCPD_ICR_TYPECEVT2CF_Pos) /*!< 0x00008000 */
  17293. #define UCPD_ICR_TYPECEVT2CF UCPD_ICR_TYPECEVT2CF_Msk /*!< TypeC event (CC2) flag (TYPECEVT2) clear */
  17294. #define UCPD_ICR_FRSEVTCF_Pos (20U)
  17295. #define UCPD_ICR_FRSEVTCF_Msk (0x1UL << UCPD_ICR_FRSEVTCF_Pos) /*!< 0x00100000 */
  17296. #define UCPD_ICR_FRSEVTCF UCPD_ICR_FRSEVTCF_Msk /*!< Fast Role Swap event flag clear */
  17297. /******************** Bits definition for UCPD_TXORDSET register **************/
  17298. #define UCPD_TX_ORDSET_TXORDSET_Pos (0U)
  17299. #define UCPD_TX_ORDSET_TXORDSET_Msk (0xFFFFFUL << UCPD_TX_ORDSET_TXORDSET_Pos)/*!< 0x000FFFFF */
  17300. #define UCPD_TX_ORDSET_TXORDSET UCPD_TX_ORDSET_TXORDSET_Msk /*!< Tx Ordered Set */
  17301. /******************** Bits definition for UCPD_TXPAYSZ register ****************/
  17302. #define UCPD_TX_PAYSZ_TXPAYSZ_Pos (0U)
  17303. #define UCPD_TX_PAYSZ_TXPAYSZ_Msk (0x3FFUL << UCPD_TX_PAYSZ_TXPAYSZ_Pos)/*!< 0x000003FF */
  17304. #define UCPD_TX_PAYSZ_TXPAYSZ UCPD_TX_PAYSZ_TXPAYSZ_Msk /*!< Tx payload size in bytes */
  17305. /******************** Bits definition for UCPD_TXDR register *******************/
  17306. #define UCPD_TXDR_TXDATA_Pos (0U)
  17307. #define UCPD_TXDR_TXDATA_Msk (0xFFUL << UCPD_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  17308. #define UCPD_TXDR_TXDATA UCPD_TXDR_TXDATA_Msk /*!< Tx Data Register */
  17309. /******************** Bits definition for UCPD_RXORDSET register **************/
  17310. #define UCPD_RX_ORDSET_RXORDSET_Pos (0U)
  17311. #define UCPD_RX_ORDSET_RXORDSET_Msk (0x7UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000007 */
  17312. #define UCPD_RX_ORDSET_RXORDSET UCPD_RX_ORDSET_RXORDSET_Msk /*!< Rx Ordered Set Code detected */
  17313. #define UCPD_RX_ORDSET_RXORDSET_0 (0x1UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000001 */
  17314. #define UCPD_RX_ORDSET_RXORDSET_1 (0x2UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000002 */
  17315. #define UCPD_RX_ORDSET_RXORDSET_2 (0x4UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000004 */
  17316. #define UCPD_RX_ORDSET_RXSOP3OF4_Pos (3U)
  17317. #define UCPD_RX_ORDSET_RXSOP3OF4_Msk (0x1UL << UCPD_RX_ORDSET_RXSOP3OF4_Pos)/*!< 0x00000008 */
  17318. #define UCPD_RX_ORDSET_RXSOP3OF4 UCPD_RX_ORDSET_RXSOP3OF4_Msk /*!< Rx Ordered Set Debug indication */
  17319. #define UCPD_RX_ORDSET_RXSOPKINVALID_Pos (4U)
  17320. #define UCPD_RX_ORDSET_RXSOPKINVALID_Msk (0x7UL << UCPD_RX_ORDSET_RXSOPKINVALID_Pos)/*!< 0x00000070 */
  17321. #define UCPD_RX_ORDSET_RXSOPKINVALID UCPD_RX_ORDSET_RXSOPKINVALID_Msk /*!< Rx Ordered Set corrupted K-Codes (Debug) */
  17322. /******************** Bits definition for UCPD_RXPAYSZ register ****************/
  17323. #define UCPD_RX_PAYSZ_RXPAYSZ_Pos (0U)
  17324. #define UCPD_RX_PAYSZ_RXPAYSZ_Msk (0x3FFUL << UCPD_RX_PAYSZ_RXPAYSZ_Pos)/*!< 0x000003FF */
  17325. #define UCPD_RX_PAYSZ_RXPAYSZ UCPD_RX_PAYSZ_RXPAYSZ_Msk /*!< Rx payload size in bytes */
  17326. /******************** Bits definition for UCPD_RXDR register *******************/
  17327. #define UCPD_RXDR_RXDATA_Pos (0U)
  17328. #define UCPD_RXDR_RXDATA_Msk (0xFFUL << UCPD_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  17329. #define UCPD_RXDR_RXDATA UCPD_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  17330. /******************** Bits definition for UCPD_RXORDEXT1 register **************/
  17331. #define UCPD_RX_ORDEXT1_RXSOPX1_Pos (0U)
  17332. #define UCPD_RX_ORDEXT1_RXSOPX1_Msk (0xFFFFFUL << UCPD_RX_ORDEXT1_RXSOPX1_Pos)/*!< 0x000FFFFF */
  17333. #define UCPD_RX_ORDEXT1_RXSOPX1 UCPD_RX_ORDEXT1_RXSOPX1_Msk /*!< RX Ordered Set Extension Register 1 */
  17334. /******************** Bits definition for UCPD_RXORDEXT2 register **************/
  17335. #define UCPD_RX_ORDEXT2_RXSOPX2_Pos (0U)
  17336. #define UCPD_RX_ORDEXT2_RXSOPX2_Msk (0xFFFFFUL << UCPD_RX_ORDEXT2_RXSOPX2_Pos)/*!< 0x000FFFFF */
  17337. #define UCPD_RX_ORDEXT2_RXSOPX2 UCPD_RX_ORDEXT2_RXSOPX2_Msk /*!< RX Ordered Set Extension Register 1 */
  17338. /******************************************************************************/
  17339. /* */
  17340. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  17341. /* */
  17342. /******************************************************************************/
  17343. /****************** Bit definition for USART_CR1 register *******************/
  17344. #define USART_CR1_UE_Pos (0U)
  17345. #define USART_CR1_UE_Msk (0x1UL << USART_CR1_UE_Pos) /*!< 0x00000001 */
  17346. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  17347. #define USART_CR1_UESM_Pos (1U)
  17348. #define USART_CR1_UESM_Msk (0x1UL << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  17349. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  17350. #define USART_CR1_RE_Pos (2U)
  17351. #define USART_CR1_RE_Msk (0x1UL << USART_CR1_RE_Pos) /*!< 0x00000004 */
  17352. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  17353. #define USART_CR1_TE_Pos (3U)
  17354. #define USART_CR1_TE_Msk (0x1UL << USART_CR1_TE_Pos) /*!< 0x00000008 */
  17355. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  17356. #define USART_CR1_IDLEIE_Pos (4U)
  17357. #define USART_CR1_IDLEIE_Msk (0x1UL << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  17358. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  17359. #define USART_CR1_RXNEIE_Pos (5U)
  17360. #define USART_CR1_RXNEIE_Msk (0x1UL << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  17361. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  17362. #define USART_CR1_RXNEIE_RXFNEIE_Pos USART_CR1_RXNEIE_Pos
  17363. #define USART_CR1_RXNEIE_RXFNEIE_Msk USART_CR1_RXNEIE_Msk /*!< 0x00000020 */
  17364. #define USART_CR1_RXNEIE_RXFNEIE USART_CR1_RXNEIE_Msk /*!< RXNE and RX FIFO Not Empty Interrupt Enable */
  17365. #define USART_CR1_TCIE_Pos (6U)
  17366. #define USART_CR1_TCIE_Msk (0x1UL << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  17367. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  17368. #define USART_CR1_TXEIE_Pos (7U)
  17369. #define USART_CR1_TXEIE_Msk (0x1UL << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  17370. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  17371. #define USART_CR1_TXEIE_TXFNFIE_Pos (7U)
  17372. #define USART_CR1_TXEIE_TXFNFIE_Msk (0x1UL << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  17373. #define USART_CR1_TXEIE_TXFNFIE USART_CR1_TXEIE /*!< TXE and TX FIFO Not Full Interrupt Enable */
  17374. #define USART_CR1_PEIE_Pos (8U)
  17375. #define USART_CR1_PEIE_Msk (0x1UL << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  17376. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  17377. #define USART_CR1_PS_Pos (9U)
  17378. #define USART_CR1_PS_Msk (0x1UL << USART_CR1_PS_Pos) /*!< 0x00000200 */
  17379. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  17380. #define USART_CR1_PCE_Pos (10U)
  17381. #define USART_CR1_PCE_Msk (0x1UL << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  17382. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  17383. #define USART_CR1_WAKE_Pos (11U)
  17384. #define USART_CR1_WAKE_Msk (0x1UL << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  17385. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  17386. #define USART_CR1_M0_Pos (12U)
  17387. #define USART_CR1_M0_Msk (0x1UL << USART_CR1_M0_Pos) /*!< 0x00001000 */
  17388. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length - Bit 0 */
  17389. #define USART_CR1_MME_Pos (13U)
  17390. #define USART_CR1_MME_Msk (0x1UL << USART_CR1_MME_Pos) /*!< 0x00002000 */
  17391. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  17392. #define USART_CR1_CMIE_Pos (14U)
  17393. #define USART_CR1_CMIE_Msk (0x1UL << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  17394. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  17395. #define USART_CR1_OVER8_Pos (15U)
  17396. #define USART_CR1_OVER8_Msk (0x1UL << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  17397. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  17398. #define USART_CR1_DEDT_Pos (16U)
  17399. #define USART_CR1_DEDT_Msk (0x1FUL << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  17400. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  17401. #define USART_CR1_DEDT_0 (0x01UL << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  17402. #define USART_CR1_DEDT_1 (0x02UL << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  17403. #define USART_CR1_DEDT_2 (0x04UL << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  17404. #define USART_CR1_DEDT_3 (0x08UL << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  17405. #define USART_CR1_DEDT_4 (0x10UL << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  17406. #define USART_CR1_DEAT_Pos (21U)
  17407. #define USART_CR1_DEAT_Msk (0x1FUL << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  17408. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  17409. #define USART_CR1_DEAT_0 (0x01UL << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  17410. #define USART_CR1_DEAT_1 (0x02UL << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  17411. #define USART_CR1_DEAT_2 (0x04UL << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  17412. #define USART_CR1_DEAT_3 (0x08UL << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  17413. #define USART_CR1_DEAT_4 (0x10UL << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  17414. #define USART_CR1_RTOIE_Pos (26U)
  17415. #define USART_CR1_RTOIE_Msk (0x1UL << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  17416. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out Interrupt Enable */
  17417. #define USART_CR1_EOBIE_Pos (27U)
  17418. #define USART_CR1_EOBIE_Msk (0x1UL << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  17419. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block Interrupt Enable */
  17420. #define USART_CR1_M1_Pos (28U)
  17421. #define USART_CR1_M1_Msk (0x1UL << USART_CR1_M1_Pos) /*!< 0x10000000 */
  17422. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length - Bit 1 */
  17423. #define USART_CR1_M (uint32_t)(USART_CR1_M1 | USART_CR1_M0) /*!< Word length */
  17424. #define USART_CR1_FIFOEN_Pos (29U)
  17425. #define USART_CR1_FIFOEN_Msk (0x1UL << USART_CR1_FIFOEN_Pos) /*!< 0x20000000 */
  17426. #define USART_CR1_FIFOEN USART_CR1_FIFOEN_Msk /*!< FIFO mode enable */
  17427. #define USART_CR1_TXFEIE_Pos (30U)
  17428. #define USART_CR1_TXFEIE_Msk (0x1UL << USART_CR1_TXFEIE_Pos) /*!< 0x40000000 */
  17429. #define USART_CR1_TXFEIE USART_CR1_TXFEIE_Msk /*!< TX FIFO Empty Interrupt Enable */
  17430. #define USART_CR1_RXFFIE_Pos (31U)
  17431. #define USART_CR1_RXFFIE_Msk (0x1UL << USART_CR1_RXFFIE_Pos) /*!< 0x80000000 */
  17432. #define USART_CR1_RXFFIE USART_CR1_RXFFIE_Msk /*!< RX FIFO Full Interrupt Enable */
  17433. /****************** Bit definition for USART_CR2 register *******************/
  17434. #define USART_CR2_SLVEN_Pos (0U)
  17435. #define USART_CR2_SLVEN_Msk (0x1UL << USART_CR2_SLVEN_Pos) /*!< 0x00000001 */
  17436. #define USART_CR2_SLVEN USART_CR2_SLVEN_Msk /*!< Synchronous Slave mode enable */
  17437. #define USART_CR2_DIS_NSS_Pos (3U)
  17438. #define USART_CR2_DIS_NSS_Msk (0x1UL << USART_CR2_DIS_NSS_Pos) /*!< 0x00000008 */
  17439. #define USART_CR2_DIS_NSS USART_CR2_DIS_NSS_Msk /*!< Slave Select (NSS) pin management */
  17440. #define USART_CR2_ADDM7_Pos (4U)
  17441. #define USART_CR2_ADDM7_Msk (0x1UL << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  17442. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  17443. #define USART_CR2_LBDL_Pos (5U)
  17444. #define USART_CR2_LBDL_Msk (0x1UL << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  17445. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  17446. #define USART_CR2_LBDIE_Pos (6U)
  17447. #define USART_CR2_LBDIE_Msk (0x1UL << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  17448. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  17449. #define USART_CR2_LBCL_Pos (8U)
  17450. #define USART_CR2_LBCL_Msk (0x1UL << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  17451. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  17452. #define USART_CR2_CPHA_Pos (9U)
  17453. #define USART_CR2_CPHA_Msk (0x1UL << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  17454. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  17455. #define USART_CR2_CPOL_Pos (10U)
  17456. #define USART_CR2_CPOL_Msk (0x1UL << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  17457. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  17458. #define USART_CR2_CLKEN_Pos (11U)
  17459. #define USART_CR2_CLKEN_Msk (0x1UL << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  17460. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  17461. #define USART_CR2_STOP_Pos (12U)
  17462. #define USART_CR2_STOP_Msk (0x3UL << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  17463. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  17464. #define USART_CR2_STOP_0 (0x1UL << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  17465. #define USART_CR2_STOP_1 (0x2UL << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  17466. #define USART_CR2_LINEN_Pos (14U)
  17467. #define USART_CR2_LINEN_Msk (0x1UL << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  17468. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  17469. #define USART_CR2_SWAP_Pos (15U)
  17470. #define USART_CR2_SWAP_Msk (0x1UL << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  17471. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  17472. #define USART_CR2_RXINV_Pos (16U)
  17473. #define USART_CR2_RXINV_Msk (0x1UL << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  17474. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  17475. #define USART_CR2_TXINV_Pos (17U)
  17476. #define USART_CR2_TXINV_Msk (0x1UL << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  17477. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  17478. #define USART_CR2_DATAINV_Pos (18U)
  17479. #define USART_CR2_DATAINV_Msk (0x1UL << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  17480. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  17481. #define USART_CR2_MSBFIRST_Pos (19U)
  17482. #define USART_CR2_MSBFIRST_Msk (0x1UL << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  17483. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  17484. #define USART_CR2_ABREN_Pos (20U)
  17485. #define USART_CR2_ABREN_Msk (0x1UL << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  17486. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  17487. #define USART_CR2_ABRMODE_Pos (21U)
  17488. #define USART_CR2_ABRMODE_Msk (0x3UL << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  17489. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  17490. #define USART_CR2_ABRMODE_0 (0x1UL << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  17491. #define USART_CR2_ABRMODE_1 (0x2UL << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  17492. #define USART_CR2_RTOEN_Pos (23U)
  17493. #define USART_CR2_RTOEN_Msk (0x1UL << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  17494. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  17495. #define USART_CR2_ADD_Pos (24U)
  17496. #define USART_CR2_ADD_Msk (0xFFUL << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  17497. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  17498. /****************** Bit definition for USART_CR3 register *******************/
  17499. #define USART_CR3_EIE_Pos (0U)
  17500. #define USART_CR3_EIE_Msk (0x1UL << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  17501. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  17502. #define USART_CR3_IREN_Pos (1U)
  17503. #define USART_CR3_IREN_Msk (0x1UL << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  17504. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  17505. #define USART_CR3_IRLP_Pos (2U)
  17506. #define USART_CR3_IRLP_Msk (0x1UL << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  17507. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  17508. #define USART_CR3_HDSEL_Pos (3U)
  17509. #define USART_CR3_HDSEL_Msk (0x1UL << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  17510. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  17511. #define USART_CR3_NACK_Pos (4U)
  17512. #define USART_CR3_NACK_Msk (0x1UL << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  17513. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  17514. #define USART_CR3_SCEN_Pos (5U)
  17515. #define USART_CR3_SCEN_Msk (0x1UL << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  17516. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  17517. #define USART_CR3_DMAR_Pos (6U)
  17518. #define USART_CR3_DMAR_Msk (0x1UL << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  17519. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  17520. #define USART_CR3_DMAT_Pos (7U)
  17521. #define USART_CR3_DMAT_Msk (0x1UL << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  17522. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  17523. #define USART_CR3_RTSE_Pos (8U)
  17524. #define USART_CR3_RTSE_Msk (0x1UL << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  17525. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  17526. #define USART_CR3_CTSE_Pos (9U)
  17527. #define USART_CR3_CTSE_Msk (0x1UL << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  17528. #define USART_CR3_CTSE USART_CR3_CTSE_Msk
  17529. #define USART_CR3_CTSIE_Pos (10U)
  17530. #define USART_CR3_CTSIE_Msk (0x1UL << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  17531. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  17532. #define USART_CR3_ONEBIT_Pos (11U)
  17533. #define USART_CR3_ONEBIT_Msk (0x1UL << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  17534. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  17535. #define USART_CR3_OVRDIS_Pos (12U)
  17536. #define USART_CR3_OVRDIS_Msk (0x1UL << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  17537. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  17538. #define USART_CR3_DDRE_Pos (13U)
  17539. #define USART_CR3_DDRE_Msk (0x1UL << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  17540. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  17541. #define USART_CR3_DEM_Pos (14U)
  17542. #define USART_CR3_DEM_Msk (0x1UL << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  17543. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  17544. #define USART_CR3_DEP_Pos (15U)
  17545. #define USART_CR3_DEP_Msk (0x1UL << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  17546. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  17547. #define USART_CR3_SCARCNT_Pos (17U)
  17548. #define USART_CR3_SCARCNT_Msk (0x7UL << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  17549. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  17550. #define USART_CR3_SCARCNT_0 (0x1UL << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  17551. #define USART_CR3_SCARCNT_1 (0x2UL << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  17552. #define USART_CR3_SCARCNT_2 (0x4UL << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  17553. #define USART_CR3_WUS_Pos (20U)
  17554. #define USART_CR3_WUS_Msk (0x3UL << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  17555. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  17556. #define USART_CR3_WUS_0 (0x1UL << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  17557. #define USART_CR3_WUS_1 (0x2UL << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  17558. #define USART_CR3_WUFIE_Pos (22U)
  17559. #define USART_CR3_WUFIE_Msk (0x1UL << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  17560. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  17561. #define USART_CR3_TXFTIE_Pos (23U)
  17562. #define USART_CR3_TXFTIE_Msk (0x1UL << USART_CR3_TXFTIE_Pos) /*!< 0x00800000 */
  17563. #define USART_CR3_TXFTIE USART_CR3_TXFTIE_Msk /*!< TX FIFO Threshold Interrupt Enable */
  17564. #define USART_CR3_TCBGTIE_Pos (24U)
  17565. #define USART_CR3_TCBGTIE_Msk (0x1UL << USART_CR3_TCBGTIE_Pos) /*!< 0x01000000 */
  17566. #define USART_CR3_TCBGTIE USART_CR3_TCBGTIE_Msk /*!< Transmission Complete Before Guard Time Interrupt Enable */
  17567. #define USART_CR3_RXFTCFG_Pos (25U)
  17568. #define USART_CR3_RXFTCFG_Msk (0x7UL << USART_CR3_RXFTCFG_Pos) /*!< 0x0E000000 */
  17569. #define USART_CR3_RXFTCFG USART_CR3_RXFTCFG_Msk /*!< RX FIFO Threshold Configuration */
  17570. #define USART_CR3_RXFTCFG_0 (0x1UL << USART_CR3_RXFTCFG_Pos) /*!< 0x02000000 */
  17571. #define USART_CR3_RXFTCFG_1 (0x2UL << USART_CR3_RXFTCFG_Pos) /*!< 0x04000000 */
  17572. #define USART_CR3_RXFTCFG_2 (0x4UL << USART_CR3_RXFTCFG_Pos) /*!< 0x08000000 */
  17573. #define USART_CR3_RXFTIE_Pos (28U)
  17574. #define USART_CR3_RXFTIE_Msk (0x1UL << USART_CR3_RXFTIE_Pos) /*!< 0x10000000 */
  17575. #define USART_CR3_RXFTIE USART_CR3_RXFTIE_Msk /*!< RX FIFO Threshold Interrupt Enable */
  17576. #define USART_CR3_TXFTCFG_Pos (29U)
  17577. #define USART_CR3_TXFTCFG_Msk (0x7UL << USART_CR3_TXFTCFG_Pos) /*!< 0xE0000000 */
  17578. #define USART_CR3_TXFTCFG USART_CR3_TXFTCFG_Msk /*!< TX FIFO Threshold configuration */
  17579. #define USART_CR3_TXFTCFG_0 (0x1UL << USART_CR3_TXFTCFG_Pos) /*!< 0x20000000 */
  17580. #define USART_CR3_TXFTCFG_1 (0x2UL << USART_CR3_TXFTCFG_Pos) /*!< 0x40000000 */
  17581. #define USART_CR3_TXFTCFG_2 (0x4UL << USART_CR3_TXFTCFG_Pos) /*!< 0x80000000 */
  17582. /****************** Bit definition for USART_BRR register *******************/
  17583. #define USART_BRR_LPUART ((uint32_t)0x000FFFFF) /*!< LPUART Baud rate register [19:0] */
  17584. #define USART_BRR_BRR ((uint16_t)0xFFFF) /*!< USART Baud rate register [15:0] */
  17585. /****************** Bit definition for USART_GTPR register ******************/
  17586. #define USART_GTPR_PSC_Pos (0U)
  17587. #define USART_GTPR_PSC_Msk (0xFFUL << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  17588. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  17589. #define USART_GTPR_GT_Pos (8U)
  17590. #define USART_GTPR_GT_Msk (0xFFUL << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  17591. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  17592. /******************* Bit definition for USART_RTOR register *****************/
  17593. #define USART_RTOR_RTO_Pos (0U)
  17594. #define USART_RTOR_RTO_Msk (0xFFFFFFUL << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  17595. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Timeout Value */
  17596. #define USART_RTOR_BLEN_Pos (24U)
  17597. #define USART_RTOR_BLEN_Msk (0xFFUL << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  17598. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  17599. /******************* Bit definition for USART_RQR register ******************/
  17600. #define USART_RQR_ABRRQ_Pos (0U)
  17601. #define USART_RQR_ABRRQ_Msk (0x1UL << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  17602. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  17603. #define USART_RQR_SBKRQ_Pos (1U)
  17604. #define USART_RQR_SBKRQ_Msk (0x1UL << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  17605. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  17606. #define USART_RQR_MMRQ_Pos (2U)
  17607. #define USART_RQR_MMRQ_Msk (0x1UL << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  17608. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  17609. #define USART_RQR_RXFRQ_Pos (3U)
  17610. #define USART_RQR_RXFRQ_Msk (0x1UL << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  17611. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  17612. #define USART_RQR_TXFRQ_Pos (4U)
  17613. #define USART_RQR_TXFRQ_Msk (0x1UL << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  17614. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit Data flush Request */
  17615. /******************* Bit definition for USART_ISR register ******************/
  17616. #define USART_ISR_PE_Pos (0U)
  17617. #define USART_ISR_PE_Msk (0x1UL << USART_ISR_PE_Pos) /*!< 0x00000001 */
  17618. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  17619. #define USART_ISR_FE_Pos (1U)
  17620. #define USART_ISR_FE_Msk (0x1UL << USART_ISR_FE_Pos) /*!< 0x00000002 */
  17621. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  17622. #define USART_ISR_NE_Pos (2U)
  17623. #define USART_ISR_NE_Msk (0x1UL << USART_ISR_NE_Pos) /*!< 0x00000004 */
  17624. #define USART_ISR_NE USART_ISR_NE_Msk /*!< START bit Noise Error detection Flag */
  17625. #define USART_ISR_ORE_Pos (3U)
  17626. #define USART_ISR_ORE_Msk (0x1UL << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  17627. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  17628. #define USART_ISR_IDLE_Pos (4U)
  17629. #define USART_ISR_IDLE_Msk (0x1UL << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  17630. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  17631. #define USART_ISR_RXNE_Pos (5U)
  17632. #define USART_ISR_RXNE_Msk (0x1UL << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  17633. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  17634. #define USART_ISR_RXNE_RXFNE_Pos USART_ISR_RXNE_Pos
  17635. #define USART_ISR_RXNE_RXFNE_Msk USART_ISR_RXNE_Msk /*!< 0x00000020 */
  17636. #define USART_ISR_RXNE_RXFNE USART_ISR_RXNE_Msk /*!< Read Data Register or RX FIFO Not Empty */
  17637. #define USART_ISR_TC_Pos (6U)
  17638. #define USART_ISR_TC_Msk (0x1UL << USART_ISR_TC_Pos) /*!< 0x00000040 */
  17639. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  17640. #define USART_ISR_TXE_Pos (7U)
  17641. #define USART_ISR_TXE_Msk (0x1UL << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  17642. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  17643. #define USART_ISR_TXE_TXFNF_Pos USART_ISR_TXE_Pos
  17644. #define USART_ISR_TXE_TXFNF_Msk USART_ISR_TXE_Msk /*!< 0x00000080 */
  17645. #define USART_ISR_TXE_TXFNF USART_ISR_TXE_Msk /*!< Transmit Data Register Empty or TX FIFO Not Full Flag */
  17646. #define USART_ISR_LBDF_Pos (8U)
  17647. #define USART_ISR_LBDF_Msk (0x1UL << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  17648. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  17649. #define USART_ISR_CTSIF_Pos (9U)
  17650. #define USART_ISR_CTSIF_Msk (0x1UL << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  17651. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt Flag */
  17652. #define USART_ISR_CTS_Pos (10U)
  17653. #define USART_ISR_CTS_Msk (0x1UL << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  17654. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS Flag */
  17655. #define USART_ISR_RTOF_Pos (11U)
  17656. #define USART_ISR_RTOF_Msk (0x1UL << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  17657. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Timeout */
  17658. #define USART_ISR_EOBF_Pos (12U)
  17659. #define USART_ISR_EOBF_Msk (0x1UL << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  17660. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  17661. #define USART_ISR_UDR_Pos (13U)
  17662. #define USART_ISR_UDR_Msk (0x1UL << USART_ISR_UDR_Pos) /*!< 0x00002000 */
  17663. #define USART_ISR_UDR USART_ISR_UDR_Msk /*!< SPI Slave Underrun error Flag */
  17664. #define USART_ISR_ABRE_Pos (14U)
  17665. #define USART_ISR_ABRE_Msk (0x1UL << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  17666. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  17667. #define USART_ISR_ABRF_Pos (15U)
  17668. #define USART_ISR_ABRF_Msk (0x1UL << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  17669. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  17670. #define USART_ISR_BUSY_Pos (16U)
  17671. #define USART_ISR_BUSY_Msk (0x1UL << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  17672. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  17673. #define USART_ISR_CMF_Pos (17U)
  17674. #define USART_ISR_CMF_Msk (0x1UL << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  17675. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  17676. #define USART_ISR_SBKF_Pos (18U)
  17677. #define USART_ISR_SBKF_Msk (0x1UL << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  17678. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  17679. #define USART_ISR_RWU_Pos (19U)
  17680. #define USART_ISR_RWU_Msk (0x1UL << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  17681. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  17682. #define USART_ISR_WUF_Pos (20U)
  17683. #define USART_ISR_WUF_Msk (0x1UL << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  17684. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  17685. #define USART_ISR_TEACK_Pos (21U)
  17686. #define USART_ISR_TEACK_Msk (0x1UL << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  17687. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  17688. #define USART_ISR_REACK_Pos (22U)
  17689. #define USART_ISR_REACK_Msk (0x1UL << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  17690. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  17691. #define USART_ISR_TXFE_Pos (23U)
  17692. #define USART_ISR_TXFE_Msk (0x1UL << USART_ISR_TXFE_Pos) /*!< 0x00800000 */
  17693. #define USART_ISR_TXFE USART_ISR_TXFE_Msk /*!< TX FIFO Empty Flag */
  17694. #define USART_ISR_RXFF_Pos (24U)
  17695. #define USART_ISR_RXFF_Msk (0x1UL << USART_ISR_RXFF_Pos) /*!< 0x01000000 */
  17696. #define USART_ISR_RXFF USART_ISR_RXFF_Msk /*!< RX FIFO Full Flag */
  17697. #define USART_ISR_TCBGT_Pos (25U)
  17698. #define USART_ISR_TCBGT_Msk (0x1UL << USART_ISR_TCBGT_Pos) /*!< 0x02000000 */
  17699. #define USART_ISR_TCBGT USART_ISR_TCBGT_Msk /*!< Transmission Complete Before Guard Time completion */
  17700. #define USART_ISR_RXFT_Pos (26U)
  17701. #define USART_ISR_RXFT_Msk (0x1UL << USART_ISR_RXFT_Pos) /*!< 0x04000000 */
  17702. #define USART_ISR_RXFT USART_ISR_RXFT_Msk /*!< RX FIFO Threshold Flag */
  17703. #define USART_ISR_TXFT_Pos (27U)
  17704. #define USART_ISR_TXFT_Msk (0x1UL << USART_ISR_TXFT_Pos) /*!< 0x08000000 */
  17705. #define USART_ISR_TXFT USART_ISR_TXFT_Msk /*!< TX FIFO Threshold Flag */
  17706. /******************* Bit definition for USART_ICR register ******************/
  17707. #define USART_ICR_PECF_Pos (0U)
  17708. #define USART_ICR_PECF_Msk (0x1UL << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  17709. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  17710. #define USART_ICR_FECF_Pos (1U)
  17711. #define USART_ICR_FECF_Msk (0x1UL << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  17712. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  17713. #define USART_ICR_NECF_Pos (2U)
  17714. #define USART_ICR_NECF_Msk (0x1UL << USART_ICR_NECF_Pos) /*!< 0x00000004 */
  17715. #define USART_ICR_NECF USART_ICR_NECF_Msk /*!< Noise Error detected Clear Flag */
  17716. #define USART_ICR_ORECF_Pos (3U)
  17717. #define USART_ICR_ORECF_Msk (0x1UL << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  17718. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  17719. #define USART_ICR_IDLECF_Pos (4U)
  17720. #define USART_ICR_IDLECF_Msk (0x1UL << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  17721. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  17722. #define USART_ICR_TXFECF_Pos (5U)
  17723. #define USART_ICR_TXFECF_Msk (0x1UL << USART_ICR_TXFECF_Pos) /*!< 0x00000020 */
  17724. #define USART_ICR_TXFECF USART_ICR_TXFECF_Msk /*!< TX FIFO Empty Clear Flag */
  17725. #define USART_ICR_TCCF_Pos (6U)
  17726. #define USART_ICR_TCCF_Msk (0x1UL << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  17727. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  17728. #define USART_ICR_TCBGTCF_Pos (7U)
  17729. #define USART_ICR_TCBGTCF_Msk (0x1UL << USART_ICR_TCBGTCF_Pos) /*!< 0x00000080 */
  17730. #define USART_ICR_TCBGTCF USART_ICR_TCBGTCF_Msk /*!< Transmission Complete Before Guard Time Clear Flag */
  17731. #define USART_ICR_LBDCF_Pos (8U)
  17732. #define USART_ICR_LBDCF_Msk (0x1UL << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  17733. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  17734. #define USART_ICR_CTSCF_Pos (9U)
  17735. #define USART_ICR_CTSCF_Msk (0x1UL << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  17736. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  17737. #define USART_ICR_RTOCF_Pos (11U)
  17738. #define USART_ICR_RTOCF_Msk (0x1UL << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  17739. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  17740. #define USART_ICR_EOBCF_Pos (12U)
  17741. #define USART_ICR_EOBCF_Msk (0x1UL << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  17742. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  17743. #define USART_ICR_UDRCF_Pos (13U)
  17744. #define USART_ICR_UDRCF_Msk (0x1UL << USART_ICR_UDRCF_Pos) /*!< 0x00002000 */
  17745. #define USART_ICR_UDRCF USART_ICR_UDRCF_Msk /*!< SPI Slave Underrun Clear Flag */
  17746. #define USART_ICR_CMCF_Pos (17U)
  17747. #define USART_ICR_CMCF_Msk (0x1UL << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  17748. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  17749. #define USART_ICR_WUCF_Pos (20U)
  17750. #define USART_ICR_WUCF_Msk (0x1UL << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  17751. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  17752. /******************* Bit definition for USART_RDR register ******************/
  17753. #define USART_RDR_RDR_Pos (0U)
  17754. #define USART_RDR_RDR_Msk (0x01FFUL << USART_RDR_RDR_Pos) /*!< 0x000001FF */
  17755. #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */
  17756. /******************* Bit definition for USART_TDR register ******************/
  17757. #define USART_TDR_TDR_Pos (0U)
  17758. #define USART_TDR_TDR_Msk (0x01FFUL << USART_TDR_TDR_Pos) /*!< 0x000001FF */
  17759. #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */
  17760. /******************* Bit definition for USART_PRESC register ******************/
  17761. #define USART_PRESC_PRESCALER_Pos (0U)
  17762. #define USART_PRESC_PRESCALER_Msk (0xFUL << USART_PRESC_PRESCALER_Pos) /*!< 0x0000000F */
  17763. #define USART_PRESC_PRESCALER USART_PRESC_PRESCALER_Msk /*!< PRESCALER[3:0] bits (Clock prescaler) */
  17764. #define USART_PRESC_PRESCALER_0 (0x1UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000001 */
  17765. #define USART_PRESC_PRESCALER_1 (0x2UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000002 */
  17766. #define USART_PRESC_PRESCALER_2 (0x4UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000004 */
  17767. #define USART_PRESC_PRESCALER_3 (0x8UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000008 */
  17768. /******************************************************************************/
  17769. /* */
  17770. /* USB Device FS Endpoint registers */
  17771. /* */
  17772. /******************************************************************************/
  17773. #define USB_EP0R USB_BASE /*!< endpoint 0 register address */
  17774. #define USB_EP1R (USB_BASE + 0x00000004UL) /*!< endpoint 1 register address */
  17775. #define USB_EP2R (USB_BASE + 0x00000008UL) /*!< endpoint 2 register address */
  17776. #define USB_EP3R (USB_BASE + 0x0000000CUL) /*!< endpoint 3 register address */
  17777. #define USB_EP4R (USB_BASE + 0x00000010UL) /*!< endpoint 4 register address */
  17778. #define USB_EP5R (USB_BASE + 0x00000014UL) /*!< endpoint 5 register address */
  17779. #define USB_EP6R (USB_BASE + 0x00000018UL) /*!< endpoint 6 register address */
  17780. #define USB_EP7R (USB_BASE + 0x0000001CUL) /*!< endpoint 7 register address */
  17781. /* bit positions */
  17782. #define USB_EP_CTR_RX ((uint16_t)0x8000U) /*!< EndPoint Correct TRansfer RX */
  17783. #define USB_EP_DTOG_RX ((uint16_t)0x4000U) /*!< EndPoint Data TOGGLE RX */
  17784. #define USB_EPRX_STAT ((uint16_t)0x3000U) /*!< EndPoint RX STATus bit field */
  17785. #define USB_EP_SETUP ((uint16_t)0x0800U) /*!< EndPoint SETUP */
  17786. #define USB_EP_T_FIELD ((uint16_t)0x0600U) /*!< EndPoint TYPE */
  17787. #define USB_EP_KIND ((uint16_t)0x0100U) /*!< EndPoint KIND */
  17788. #define USB_EP_CTR_TX ((uint16_t)0x0080U) /*!< EndPoint Correct TRansfer TX */
  17789. #define USB_EP_DTOG_TX ((uint16_t)0x0040U) /*!< EndPoint Data TOGGLE TX */
  17790. #define USB_EPTX_STAT ((uint16_t)0x0030U) /*!< EndPoint TX STATus bit field */
  17791. #define USB_EPADDR_FIELD ((uint16_t)0x000FU) /*!< EndPoint ADDRess FIELD */
  17792. /* EndPoint REGister MASK (no toggle fields) */
  17793. #define USB_EPREG_MASK (USB_EP_CTR_RX|USB_EP_SETUP|USB_EP_T_FIELD|USB_EP_KIND|USB_EP_CTR_TX|USB_EPADDR_FIELD)
  17794. /*!< EP_TYPE[1:0] EndPoint TYPE */
  17795. #define USB_EP_TYPE_MASK ((uint16_t)0x0600U) /*!< EndPoint TYPE Mask */
  17796. #define USB_EP_BULK ((uint16_t)0x0000U) /*!< EndPoint BULK */
  17797. #define USB_EP_CONTROL ((uint16_t)0x0200U) /*!< EndPoint CONTROL */
  17798. #define USB_EP_ISOCHRONOUS ((uint16_t)0x0400U) /*!< EndPoint ISOCHRONOUS */
  17799. #define USB_EP_INTERRUPT ((uint16_t)0x0600U) /*!< EndPoint INTERRUPT */
  17800. #define USB_EP_T_MASK ((uint16_t) ~USB_EP_T_FIELD & USB_EPREG_MASK)
  17801. #define USB_EPKIND_MASK ((uint16_t)~USB_EP_KIND & USB_EPREG_MASK) /*!< EP_KIND EndPoint KIND */
  17802. /*!< STAT_TX[1:0] STATus for TX transfer */
  17803. #define USB_EP_TX_DIS ((uint16_t)0x0000U) /*!< EndPoint TX DISabled */
  17804. #define USB_EP_TX_STALL ((uint16_t)0x0010U) /*!< EndPoint TX STALLed */
  17805. #define USB_EP_TX_NAK ((uint16_t)0x0020U) /*!< EndPoint TX NAKed */
  17806. #define USB_EP_TX_VALID ((uint16_t)0x0030U) /*!< EndPoint TX VALID */
  17807. #define USB_EPTX_DTOG1 ((uint16_t)0x0010U) /*!< EndPoint TX Data TOGgle bit1 */
  17808. #define USB_EPTX_DTOG2 ((uint16_t)0x0020U) /*!< EndPoint TX Data TOGgle bit2 */
  17809. #define USB_EPTX_DTOGMASK (USB_EPTX_STAT|USB_EPREG_MASK)
  17810. /*!< STAT_RX[1:0] STATus for RX transfer */
  17811. #define USB_EP_RX_DIS ((uint16_t)0x0000U) /*!< EndPoint RX DISabled */
  17812. #define USB_EP_RX_STALL ((uint16_t)0x1000U) /*!< EndPoint RX STALLed */
  17813. #define USB_EP_RX_NAK ((uint16_t)0x2000U) /*!< EndPoint RX NAKed */
  17814. #define USB_EP_RX_VALID ((uint16_t)0x3000U) /*!< EndPoint RX VALID */
  17815. #define USB_EPRX_DTOG1 ((uint16_t)0x1000U) /*!< EndPoint RX Data TOGgle bit1 */
  17816. #define USB_EPRX_DTOG2 ((uint16_t)0x2000U) /*!< EndPoint RX Data TOGgle bit1 */
  17817. #define USB_EPRX_DTOGMASK (USB_EPRX_STAT|USB_EPREG_MASK)
  17818. /******************************************************************************/
  17819. /* */
  17820. /* USB Device FS General registers */
  17821. /* */
  17822. /******************************************************************************/
  17823. #define USB_CNTR (USB_BASE + 0x00000040UL) /*!< Control register */
  17824. #define USB_ISTR (USB_BASE + 0x00000044UL) /*!< Interrupt status register */
  17825. #define USB_FNR (USB_BASE + 0x00000048UL) /*!< Frame number register */
  17826. #define USB_DADDR (USB_BASE + 0x0000004CUL) /*!< Device address register */
  17827. #define USB_BTABLE (USB_BASE + 0x00000050UL) /*!< Buffer Table address register */
  17828. #define USB_LPMCSR (USB_BASE + 0x00000054UL) /*!< LPM Control and Status register */
  17829. #define USB_BCDR (USB_BASE + 0x00000058UL) /*!< Battery Charging detector register*/
  17830. /****************** Bits definition for USB_CNTR register *******************/
  17831. #define USB_CNTR_CTRM ((uint16_t)0x8000U) /*!< Correct TRansfer Mask */
  17832. #define USB_CNTR_PMAOVRM ((uint16_t)0x4000U) /*!< DMA OVeR/underrun Mask */
  17833. #define USB_CNTR_ERRM ((uint16_t)0x2000U) /*!< ERRor Mask */
  17834. #define USB_CNTR_WKUPM ((uint16_t)0x1000U) /*!< WaKe UP Mask */
  17835. #define USB_CNTR_SUSPM ((uint16_t)0x0800U) /*!< SUSPend Mask */
  17836. #define USB_CNTR_RESETM ((uint16_t)0x0400U) /*!< RESET Mask */
  17837. #define USB_CNTR_SOFM ((uint16_t)0x0200U) /*!< Start Of Frame Mask */
  17838. #define USB_CNTR_ESOFM ((uint16_t)0x0100U) /*!< Expected Start Of Frame Mask */
  17839. #define USB_CNTR_L1REQM ((uint16_t)0x0080U) /*!< LPM L1 state request interrupt mask */
  17840. #define USB_CNTR_L1RESUME ((uint16_t)0x0020U) /*!< LPM L1 Resume request */
  17841. #define USB_CNTR_RESUME ((uint16_t)0x0010U) /*!< RESUME request */
  17842. #define USB_CNTR_FSUSP ((uint16_t)0x0008U) /*!< Force SUSPend */
  17843. #define USB_CNTR_LPMODE ((uint16_t)0x0004U) /*!< Low-power MODE */
  17844. #define USB_CNTR_PDWN ((uint16_t)0x0002U) /*!< Power DoWN */
  17845. #define USB_CNTR_FRES ((uint16_t)0x0001U) /*!< Force USB RESet */
  17846. /****************** Bits definition for USB_ISTR register *******************/
  17847. #define USB_ISTR_EP_ID ((uint16_t)0x000FU) /*!< EndPoint IDentifier (read-only bit) */
  17848. #define USB_ISTR_DIR ((uint16_t)0x0010U) /*!< DIRection of transaction (read-only bit) */
  17849. #define USB_ISTR_L1REQ ((uint16_t)0x0080U) /*!< LPM L1 state request */
  17850. #define USB_ISTR_ESOF ((uint16_t)0x0100U) /*!< Expected Start Of Frame (clear-only bit) */
  17851. #define USB_ISTR_SOF ((uint16_t)0x0200U) /*!< Start Of Frame (clear-only bit) */
  17852. #define USB_ISTR_RESET ((uint16_t)0x0400U) /*!< RESET (clear-only bit) */
  17853. #define USB_ISTR_SUSP ((uint16_t)0x0800U) /*!< SUSPend (clear-only bit) */
  17854. #define USB_ISTR_WKUP ((uint16_t)0x1000U) /*!< WaKe UP (clear-only bit) */
  17855. #define USB_ISTR_ERR ((uint16_t)0x2000U) /*!< ERRor (clear-only bit) */
  17856. #define USB_ISTR_PMAOVR ((uint16_t)0x4000U) /*!< DMA OVeR/underrun (clear-only bit) */
  17857. #define USB_ISTR_CTR ((uint16_t)0x8000U) /*!< Correct TRansfer (clear-only bit) */
  17858. #define USB_CLR_L1REQ (~USB_ISTR_L1REQ) /*!< clear LPM L1 bit */
  17859. #define USB_CLR_ESOF (~USB_ISTR_ESOF) /*!< clear Expected Start Of Frame bit */
  17860. #define USB_CLR_SOF (~USB_ISTR_SOF) /*!< clear Start Of Frame bit */
  17861. #define USB_CLR_RESET (~USB_ISTR_RESET) /*!< clear RESET bit */
  17862. #define USB_CLR_SUSP (~USB_ISTR_SUSP) /*!< clear SUSPend bit */
  17863. #define USB_CLR_WKUP (~USB_ISTR_WKUP) /*!< clear WaKe UP bit */
  17864. #define USB_CLR_ERR (~USB_ISTR_ERR) /*!< clear ERRor bit */
  17865. #define USB_CLR_PMAOVR (~USB_ISTR_PMAOVR) /*!< clear DMA OVeR/underrun bit*/
  17866. #define USB_CLR_CTR (~USB_ISTR_CTR) /*!< clear Correct TRansfer bit */
  17867. /****************** Bits definition for USB_FNR register ********************/
  17868. #define USB_FNR_FN ((uint16_t)0x07FFU) /*!< Frame Number */
  17869. #define USB_FNR_LSOF ((uint16_t)0x1800U) /*!< Lost SOF */
  17870. #define USB_FNR_LCK ((uint16_t)0x2000U) /*!< LoCKed */
  17871. #define USB_FNR_RXDM ((uint16_t)0x4000U) /*!< status of D- data line */
  17872. #define USB_FNR_RXDP ((uint16_t)0x8000U) /*!< status of D+ data line */
  17873. /****************** Bits definition for USB_DADDR register ****************/
  17874. #define USB_DADDR_ADD ((uint8_t)0x7FU) /*!< ADD[6:0] bits (Device Address) */
  17875. #define USB_DADDR_ADD0 ((uint8_t)0x01U) /*!< Bit 0 */
  17876. #define USB_DADDR_ADD1 ((uint8_t)0x02U) /*!< Bit 1 */
  17877. #define USB_DADDR_ADD2 ((uint8_t)0x04U) /*!< Bit 2 */
  17878. #define USB_DADDR_ADD3 ((uint8_t)0x08U) /*!< Bit 3 */
  17879. #define USB_DADDR_ADD4 ((uint8_t)0x10U) /*!< Bit 4 */
  17880. #define USB_DADDR_ADD5 ((uint8_t)0x20U) /*!< Bit 5 */
  17881. #define USB_DADDR_ADD6 ((uint8_t)0x40U) /*!< Bit 6 */
  17882. #define USB_DADDR_EF ((uint8_t)0x80U) /*!< Enable Function */
  17883. /****************** Bit definition for USB_BTABLE register ******************/
  17884. #define USB_BTABLE_BTABLE ((uint16_t)0xFFF8U) /*!< Buffer Table */
  17885. /****************** Bits definition for USB_BCDR register *******************/
  17886. #define USB_BCDR_BCDEN ((uint16_t)0x0001U) /*!< Battery charging detector (BCD) enable */
  17887. #define USB_BCDR_DCDEN ((uint16_t)0x0002U) /*!< Data contact detection (DCD) mode enable */
  17888. #define USB_BCDR_PDEN ((uint16_t)0x0004U) /*!< Primary detection (PD) mode enable */
  17889. #define USB_BCDR_SDEN ((uint16_t)0x0008U) /*!< Secondary detection (SD) mode enable */
  17890. #define USB_BCDR_DCDET ((uint16_t)0x0010U) /*!< Data contact detection (DCD) status */
  17891. #define USB_BCDR_PDET ((uint16_t)0x0020U) /*!< Primary detection (PD) status */
  17892. #define USB_BCDR_SDET ((uint16_t)0x0040U) /*!< Secondary detection (SD) status */
  17893. #define USB_BCDR_PS2DET ((uint16_t)0x0080U) /*!< PS2 port or proprietary charger detected */
  17894. #define USB_BCDR_DPPU ((uint16_t)0x8000U) /*!< DP Pull-up Enable */
  17895. /******************* Bit definition for LPMCSR register *********************/
  17896. #define USB_LPMCSR_LMPEN ((uint16_t)0x0001U) /*!< LPM support enable */
  17897. #define USB_LPMCSR_LPMACK ((uint16_t)0x0002U) /*!< LPM Token acknowledge enable*/
  17898. #define USB_LPMCSR_REMWAKE ((uint16_t)0x0008U) /*!< bRemoteWake value received with last ACKed LPM Token */
  17899. #define USB_LPMCSR_BESL ((uint16_t)0x00F0U) /*!< BESL value received with last ACKed LPM Token */
  17900. /*!< Buffer descriptor table */
  17901. /***************** Bit definition for USB_ADDR0_TX register *****************/
  17902. #define USB_ADDR0_TX_ADDR0_TX_Pos (1U)
  17903. #define USB_ADDR0_TX_ADDR0_TX_Msk (0x7FFFUL << USB_ADDR0_TX_ADDR0_TX_Pos) /*!< 0x0000FFFE */
  17904. #define USB_ADDR0_TX_ADDR0_TX USB_ADDR0_TX_ADDR0_TX_Msk /*!< Transmission Buffer Address 0 */
  17905. /***************** Bit definition for USB_ADDR1_TX register *****************/
  17906. #define USB_ADDR1_TX_ADDR1_TX_Pos (1U)
  17907. #define USB_ADDR1_TX_ADDR1_TX_Msk (0x7FFFUL << USB_ADDR1_TX_ADDR1_TX_Pos) /*!< 0x0000FFFE */
  17908. #define USB_ADDR1_TX_ADDR1_TX USB_ADDR1_TX_ADDR1_TX_Msk /*!< Transmission Buffer Address 1 */
  17909. /***************** Bit definition for USB_ADDR2_TX register *****************/
  17910. #define USB_ADDR2_TX_ADDR2_TX_Pos (1U)
  17911. #define USB_ADDR2_TX_ADDR2_TX_Msk (0x7FFFUL << USB_ADDR2_TX_ADDR2_TX_Pos) /*!< 0x0000FFFE */
  17912. #define USB_ADDR2_TX_ADDR2_TX USB_ADDR2_TX_ADDR2_TX_Msk /*!< Transmission Buffer Address 2 */
  17913. /***************** Bit definition for USB_ADDR3_TX register *****************/
  17914. #define USB_ADDR3_TX_ADDR3_TX_Pos (1U)
  17915. #define USB_ADDR3_TX_ADDR3_TX_Msk (0x7FFFUL << USB_ADDR3_TX_ADDR3_TX_Pos) /*!< 0x0000FFFE */
  17916. #define USB_ADDR3_TX_ADDR3_TX USB_ADDR3_TX_ADDR3_TX_Msk /*!< Transmission Buffer Address 3 */
  17917. /***************** Bit definition for USB_ADDR4_TX register *****************/
  17918. #define USB_ADDR4_TX_ADDR4_TX_Pos (1U)
  17919. #define USB_ADDR4_TX_ADDR4_TX_Msk (0x7FFFUL << USB_ADDR4_TX_ADDR4_TX_Pos) /*!< 0x0000FFFE */
  17920. #define USB_ADDR4_TX_ADDR4_TX USB_ADDR4_TX_ADDR4_TX_Msk /*!< Transmission Buffer Address 4 */
  17921. /***************** Bit definition for USB_ADDR5_TX register *****************/
  17922. #define USB_ADDR5_TX_ADDR5_TX_Pos (1U)
  17923. #define USB_ADDR5_TX_ADDR5_TX_Msk (0x7FFFUL << USB_ADDR5_TX_ADDR5_TX_Pos) /*!< 0x0000FFFE */
  17924. #define USB_ADDR5_TX_ADDR5_TX USB_ADDR5_TX_ADDR5_TX_Msk /*!< Transmission Buffer Address 5 */
  17925. /***************** Bit definition for USB_ADDR6_TX register *****************/
  17926. #define USB_ADDR6_TX_ADDR6_TX_Pos (1U)
  17927. #define USB_ADDR6_TX_ADDR6_TX_Msk (0x7FFFUL << USB_ADDR6_TX_ADDR6_TX_Pos) /*!< 0x0000FFFE */
  17928. #define USB_ADDR6_TX_ADDR6_TX USB_ADDR6_TX_ADDR6_TX_Msk /*!< Transmission Buffer Address 6 */
  17929. /***************** Bit definition for USB_ADDR7_TX register *****************/
  17930. #define USB_ADDR7_TX_ADDR7_TX_Pos (1U)
  17931. #define USB_ADDR7_TX_ADDR7_TX_Msk (0x7FFFUL << USB_ADDR7_TX_ADDR7_TX_Pos) /*!< 0x0000FFFE */
  17932. #define USB_ADDR7_TX_ADDR7_TX USB_ADDR7_TX_ADDR7_TX_Msk /*!< Transmission Buffer Address 7 */
  17933. /*----------------------------------------------------------------------------*/
  17934. /***************** Bit definition for USB_COUNT0_TX register ****************/
  17935. #define USB_COUNT0_TX_COUNT0_TX_Pos (0U)
  17936. #define USB_COUNT0_TX_COUNT0_TX_Msk (0x3FFUL << USB_COUNT0_TX_COUNT0_TX_Pos) /*!< 0x000003FF */
  17937. #define USB_COUNT0_TX_COUNT0_TX USB_COUNT0_TX_COUNT0_TX_Msk /*!< Transmission Byte Count 0 */
  17938. /***************** Bit definition for USB_COUNT1_TX register ****************/
  17939. #define USB_COUNT1_TX_COUNT1_TX_Pos (0U)
  17940. #define USB_COUNT1_TX_COUNT1_TX_Msk (0x3FFUL << USB_COUNT1_TX_COUNT1_TX_Pos) /*!< 0x000003FF */
  17941. #define USB_COUNT1_TX_COUNT1_TX USB_COUNT1_TX_COUNT1_TX_Msk /*!< Transmission Byte Count 1 */
  17942. /***************** Bit definition for USB_COUNT2_TX register ****************/
  17943. #define USB_COUNT2_TX_COUNT2_TX_Pos (0U)
  17944. #define USB_COUNT2_TX_COUNT2_TX_Msk (0x3FFUL << USB_COUNT2_TX_COUNT2_TX_Pos) /*!< 0x000003FF */
  17945. #define USB_COUNT2_TX_COUNT2_TX USB_COUNT2_TX_COUNT2_TX_Msk /*!< Transmission Byte Count 2 */
  17946. /***************** Bit definition for USB_COUNT3_TX register ****************/
  17947. #define USB_COUNT3_TX_COUNT3_TX_Pos (0U)
  17948. #define USB_COUNT3_TX_COUNT3_TX_Msk (0x3FFUL << USB_COUNT3_TX_COUNT3_TX_Pos) /*!< 0x000003FF */
  17949. #define USB_COUNT3_TX_COUNT3_TX USB_COUNT3_TX_COUNT3_TX_Msk /*!< Transmission Byte Count 3 */
  17950. /***************** Bit definition for USB_COUNT4_TX register ****************/
  17951. #define USB_COUNT4_TX_COUNT4_TX_Pos (0U)
  17952. #define USB_COUNT4_TX_COUNT4_TX_Msk (0x3FFUL << USB_COUNT4_TX_COUNT4_TX_Pos) /*!< 0x000003FF */
  17953. #define USB_COUNT4_TX_COUNT4_TX USB_COUNT4_TX_COUNT4_TX_Msk /*!< Transmission Byte Count 4 */
  17954. /***************** Bit definition for USB_COUNT5_TX register ****************/
  17955. #define USB_COUNT5_TX_COUNT5_TX_Pos (0U)
  17956. #define USB_COUNT5_TX_COUNT5_TX_Msk (0x3FFUL << USB_COUNT5_TX_COUNT5_TX_Pos) /*!< 0x000003FF */
  17957. #define USB_COUNT5_TX_COUNT5_TX USB_COUNT5_TX_COUNT5_TX_Msk /*!< Transmission Byte Count 5 */
  17958. /***************** Bit definition for USB_COUNT6_TX register ****************/
  17959. #define USB_COUNT6_TX_COUNT6_TX_Pos (0U)
  17960. #define USB_COUNT6_TX_COUNT6_TX_Msk (0x3FFUL << USB_COUNT6_TX_COUNT6_TX_Pos) /*!< 0x000003FF */
  17961. #define USB_COUNT6_TX_COUNT6_TX USB_COUNT6_TX_COUNT6_TX_Msk /*!< Transmission Byte Count 6 */
  17962. /***************** Bit definition for USB_COUNT7_TX register ****************/
  17963. #define USB_COUNT7_TX_COUNT7_TX_Pos (0U)
  17964. #define USB_COUNT7_TX_COUNT7_TX_Msk (0x3FFUL << USB_COUNT7_TX_COUNT7_TX_Pos) /*!< 0x000003FF */
  17965. #define USB_COUNT7_TX_COUNT7_TX USB_COUNT7_TX_COUNT7_TX_Msk /*!< Transmission Byte Count 7 */
  17966. /*----------------------------------------------------------------------------*/
  17967. /**************** Bit definition for USB_COUNT0_TX_0 register ***************/
  17968. #define USB_COUNT0_TX_0_COUNT0_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 0 (low) */
  17969. /**************** Bit definition for USB_COUNT0_TX_1 register ***************/
  17970. #define USB_COUNT0_TX_1_COUNT0_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 0 (high) */
  17971. /**************** Bit definition for USB_COUNT1_TX_0 register ***************/
  17972. #define USB_COUNT1_TX_0_COUNT1_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 1 (low) */
  17973. /**************** Bit definition for USB_COUNT1_TX_1 register ***************/
  17974. #define USB_COUNT1_TX_1_COUNT1_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 1 (high) */
  17975. /**************** Bit definition for USB_COUNT2_TX_0 register ***************/
  17976. #define USB_COUNT2_TX_0_COUNT2_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 2 (low) */
  17977. /**************** Bit definition for USB_COUNT2_TX_1 register ***************/
  17978. #define USB_COUNT2_TX_1_COUNT2_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 2 (high) */
  17979. /**************** Bit definition for USB_COUNT3_TX_0 register ***************/
  17980. #define USB_COUNT3_TX_0_COUNT3_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 3 (low) */
  17981. /**************** Bit definition for USB_COUNT3_TX_1 register ***************/
  17982. #define USB_COUNT3_TX_1_COUNT3_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 3 (high) */
  17983. /**************** Bit definition for USB_COUNT4_TX_0 register ***************/
  17984. #define USB_COUNT4_TX_0_COUNT4_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 4 (low) */
  17985. /**************** Bit definition for USB_COUNT4_TX_1 register ***************/
  17986. #define USB_COUNT4_TX_1_COUNT4_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 4 (high) */
  17987. /**************** Bit definition for USB_COUNT5_TX_0 register ***************/
  17988. #define USB_COUNT5_TX_0_COUNT5_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 5 (low) */
  17989. /**************** Bit definition for USB_COUNT5_TX_1 register ***************/
  17990. #define USB_COUNT5_TX_1_COUNT5_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 5 (high) */
  17991. /**************** Bit definition for USB_COUNT6_TX_0 register ***************/
  17992. #define USB_COUNT6_TX_0_COUNT6_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 6 (low) */
  17993. /**************** Bit definition for USB_COUNT6_TX_1 register ***************/
  17994. #define USB_COUNT6_TX_1_COUNT6_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 6 (high) */
  17995. /**************** Bit definition for USB_COUNT7_TX_0 register ***************/
  17996. #define USB_COUNT7_TX_0_COUNT7_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 7 (low) */
  17997. /**************** Bit definition for USB_COUNT7_TX_1 register ***************/
  17998. #define USB_COUNT7_TX_1_COUNT7_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 7 (high) */
  17999. /*----------------------------------------------------------------------------*/
  18000. /***************** Bit definition for USB_ADDR0_RX register *****************/
  18001. #define USB_ADDR0_RX_ADDR0_RX_Pos (1U)
  18002. #define USB_ADDR0_RX_ADDR0_RX_Msk (0x7FFFUL << USB_ADDR0_RX_ADDR0_RX_Pos) /*!< 0x0000FFFE */
  18003. #define USB_ADDR0_RX_ADDR0_RX USB_ADDR0_RX_ADDR0_RX_Msk /*!< Reception Buffer Address 0 */
  18004. /***************** Bit definition for USB_ADDR1_RX register *****************/
  18005. #define USB_ADDR1_RX_ADDR1_RX_Pos (1U)
  18006. #define USB_ADDR1_RX_ADDR1_RX_Msk (0x7FFFUL << USB_ADDR1_RX_ADDR1_RX_Pos) /*!< 0x0000FFFE */
  18007. #define USB_ADDR1_RX_ADDR1_RX USB_ADDR1_RX_ADDR1_RX_Msk /*!< Reception Buffer Address 1 */
  18008. /***************** Bit definition for USB_ADDR2_RX register *****************/
  18009. #define USB_ADDR2_RX_ADDR2_RX_Pos (1U)
  18010. #define USB_ADDR2_RX_ADDR2_RX_Msk (0x7FFFUL << USB_ADDR2_RX_ADDR2_RX_Pos) /*!< 0x0000FFFE */
  18011. #define USB_ADDR2_RX_ADDR2_RX USB_ADDR2_RX_ADDR2_RX_Msk /*!< Reception Buffer Address 2 */
  18012. /***************** Bit definition for USB_ADDR3_RX register *****************/
  18013. #define USB_ADDR3_RX_ADDR3_RX_Pos (1U)
  18014. #define USB_ADDR3_RX_ADDR3_RX_Msk (0x7FFFUL << USB_ADDR3_RX_ADDR3_RX_Pos) /*!< 0x0000FFFE */
  18015. #define USB_ADDR3_RX_ADDR3_RX USB_ADDR3_RX_ADDR3_RX_Msk /*!< Reception Buffer Address 3 */
  18016. /***************** Bit definition for USB_ADDR4_RX register *****************/
  18017. #define USB_ADDR4_RX_ADDR4_RX_Pos (1U)
  18018. #define USB_ADDR4_RX_ADDR4_RX_Msk (0x7FFFUL << USB_ADDR4_RX_ADDR4_RX_Pos) /*!< 0x0000FFFE */
  18019. #define USB_ADDR4_RX_ADDR4_RX USB_ADDR4_RX_ADDR4_RX_Msk /*!< Reception Buffer Address 4 */
  18020. /***************** Bit definition for USB_ADDR5_RX register *****************/
  18021. #define USB_ADDR5_RX_ADDR5_RX_Pos (1U)
  18022. #define USB_ADDR5_RX_ADDR5_RX_Msk (0x7FFFUL << USB_ADDR5_RX_ADDR5_RX_Pos) /*!< 0x0000FFFE */
  18023. #define USB_ADDR5_RX_ADDR5_RX USB_ADDR5_RX_ADDR5_RX_Msk /*!< Reception Buffer Address 5 */
  18024. /***************** Bit definition for USB_ADDR6_RX register *****************/
  18025. #define USB_ADDR6_RX_ADDR6_RX_Pos (1U)
  18026. #define USB_ADDR6_RX_ADDR6_RX_Msk (0x7FFFUL << USB_ADDR6_RX_ADDR6_RX_Pos) /*!< 0x0000FFFE */
  18027. #define USB_ADDR6_RX_ADDR6_RX USB_ADDR6_RX_ADDR6_RX_Msk /*!< Reception Buffer Address 6 */
  18028. /***************** Bit definition for USB_ADDR7_RX register *****************/
  18029. #define USB_ADDR7_RX_ADDR7_RX_Pos (1U)
  18030. #define USB_ADDR7_RX_ADDR7_RX_Msk (0x7FFFUL << USB_ADDR7_RX_ADDR7_RX_Pos) /*!< 0x0000FFFE */
  18031. #define USB_ADDR7_RX_ADDR7_RX USB_ADDR7_RX_ADDR7_RX_Msk /*!< Reception Buffer Address 7 */
  18032. /*----------------------------------------------------------------------------*/
  18033. /***************** Bit definition for USB_COUNT0_RX register ****************/
  18034. #define USB_COUNT0_RX_COUNT0_RX_Pos (0U)
  18035. #define USB_COUNT0_RX_COUNT0_RX_Msk (0x3FFUL << USB_COUNT0_RX_COUNT0_RX_Pos) /*!< 0x000003FF */
  18036. #define USB_COUNT0_RX_COUNT0_RX USB_COUNT0_RX_COUNT0_RX_Msk /*!< Reception Byte Count */
  18037. #define USB_COUNT0_RX_NUM_BLOCK_Pos (10U)
  18038. #define USB_COUNT0_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18039. #define USB_COUNT0_RX_NUM_BLOCK USB_COUNT0_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18040. #define USB_COUNT0_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18041. #define USB_COUNT0_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18042. #define USB_COUNT0_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18043. #define USB_COUNT0_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18044. #define USB_COUNT0_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18045. #define USB_COUNT0_RX_BLSIZE_Pos (15U)
  18046. #define USB_COUNT0_RX_BLSIZE_Msk (0x1UL << USB_COUNT0_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18047. #define USB_COUNT0_RX_BLSIZE USB_COUNT0_RX_BLSIZE_Msk /*!< BLock SIZE */
  18048. /***************** Bit definition for USB_COUNT1_RX register ****************/
  18049. #define USB_COUNT1_RX_COUNT1_RX_Pos (0U)
  18050. #define USB_COUNT1_RX_COUNT1_RX_Msk (0x3FFUL << USB_COUNT1_RX_COUNT1_RX_Pos) /*!< 0x000003FF */
  18051. #define USB_COUNT1_RX_COUNT1_RX USB_COUNT1_RX_COUNT1_RX_Msk /*!< Reception Byte Count */
  18052. #define USB_COUNT1_RX_NUM_BLOCK_Pos (10U)
  18053. #define USB_COUNT1_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18054. #define USB_COUNT1_RX_NUM_BLOCK USB_COUNT1_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18055. #define USB_COUNT1_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18056. #define USB_COUNT1_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18057. #define USB_COUNT1_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18058. #define USB_COUNT1_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18059. #define USB_COUNT1_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18060. #define USB_COUNT1_RX_BLSIZE_Pos (15U)
  18061. #define USB_COUNT1_RX_BLSIZE_Msk (0x1UL << USB_COUNT1_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18062. #define USB_COUNT1_RX_BLSIZE USB_COUNT1_RX_BLSIZE_Msk /*!< BLock SIZE */
  18063. /***************** Bit definition for USB_COUNT2_RX register ****************/
  18064. #define USB_COUNT2_RX_COUNT2_RX_Pos (0U)
  18065. #define USB_COUNT2_RX_COUNT2_RX_Msk (0x3FFUL << USB_COUNT2_RX_COUNT2_RX_Pos) /*!< 0x000003FF */
  18066. #define USB_COUNT2_RX_COUNT2_RX USB_COUNT2_RX_COUNT2_RX_Msk /*!< Reception Byte Count */
  18067. #define USB_COUNT2_RX_NUM_BLOCK_Pos (10U)
  18068. #define USB_COUNT2_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18069. #define USB_COUNT2_RX_NUM_BLOCK USB_COUNT2_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18070. #define USB_COUNT2_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18071. #define USB_COUNT2_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18072. #define USB_COUNT2_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18073. #define USB_COUNT2_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18074. #define USB_COUNT2_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18075. #define USB_COUNT2_RX_BLSIZE_Pos (15U)
  18076. #define USB_COUNT2_RX_BLSIZE_Msk (0x1UL << USB_COUNT2_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18077. #define USB_COUNT2_RX_BLSIZE USB_COUNT2_RX_BLSIZE_Msk /*!< BLock SIZE */
  18078. /***************** Bit definition for USB_COUNT3_RX register ****************/
  18079. #define USB_COUNT3_RX_COUNT3_RX_Pos (0U)
  18080. #define USB_COUNT3_RX_COUNT3_RX_Msk (0x3FFUL << USB_COUNT3_RX_COUNT3_RX_Pos) /*!< 0x000003FF */
  18081. #define USB_COUNT3_RX_COUNT3_RX USB_COUNT3_RX_COUNT3_RX_Msk /*!< Reception Byte Count */
  18082. #define USB_COUNT3_RX_NUM_BLOCK_Pos (10U)
  18083. #define USB_COUNT3_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18084. #define USB_COUNT3_RX_NUM_BLOCK USB_COUNT3_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18085. #define USB_COUNT3_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18086. #define USB_COUNT3_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18087. #define USB_COUNT3_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18088. #define USB_COUNT3_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18089. #define USB_COUNT3_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18090. #define USB_COUNT3_RX_BLSIZE_Pos (15U)
  18091. #define USB_COUNT3_RX_BLSIZE_Msk (0x1UL << USB_COUNT3_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18092. #define USB_COUNT3_RX_BLSIZE USB_COUNT3_RX_BLSIZE_Msk /*!< BLock SIZE */
  18093. /***************** Bit definition for USB_COUNT4_RX register ****************/
  18094. #define USB_COUNT4_RX_COUNT4_RX_Pos (0U)
  18095. #define USB_COUNT4_RX_COUNT4_RX_Msk (0x3FFUL << USB_COUNT4_RX_COUNT4_RX_Pos) /*!< 0x000003FF */
  18096. #define USB_COUNT4_RX_COUNT4_RX USB_COUNT4_RX_COUNT4_RX_Msk /*!< Reception Byte Count */
  18097. #define USB_COUNT4_RX_NUM_BLOCK_Pos (10U)
  18098. #define USB_COUNT4_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18099. #define USB_COUNT4_RX_NUM_BLOCK USB_COUNT4_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18100. #define USB_COUNT4_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18101. #define USB_COUNT4_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18102. #define USB_COUNT4_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18103. #define USB_COUNT4_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18104. #define USB_COUNT4_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18105. #define USB_COUNT4_RX_BLSIZE_Pos (15U)
  18106. #define USB_COUNT4_RX_BLSIZE_Msk (0x1UL << USB_COUNT4_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18107. #define USB_COUNT4_RX_BLSIZE USB_COUNT4_RX_BLSIZE_Msk /*!< BLock SIZE */
  18108. /***************** Bit definition for USB_COUNT5_RX register ****************/
  18109. #define USB_COUNT5_RX_COUNT5_RX_Pos (0U)
  18110. #define USB_COUNT5_RX_COUNT5_RX_Msk (0x3FFUL << USB_COUNT5_RX_COUNT5_RX_Pos) /*!< 0x000003FF */
  18111. #define USB_COUNT5_RX_COUNT5_RX USB_COUNT5_RX_COUNT5_RX_Msk /*!< Reception Byte Count */
  18112. #define USB_COUNT5_RX_NUM_BLOCK_Pos (10U)
  18113. #define USB_COUNT5_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18114. #define USB_COUNT5_RX_NUM_BLOCK USB_COUNT5_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18115. #define USB_COUNT5_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18116. #define USB_COUNT5_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18117. #define USB_COUNT5_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18118. #define USB_COUNT5_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18119. #define USB_COUNT5_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18120. #define USB_COUNT5_RX_BLSIZE_Pos (15U)
  18121. #define USB_COUNT5_RX_BLSIZE_Msk (0x1UL << USB_COUNT5_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18122. #define USB_COUNT5_RX_BLSIZE USB_COUNT5_RX_BLSIZE_Msk /*!< BLock SIZE */
  18123. /***************** Bit definition for USB_COUNT6_RX register ****************/
  18124. #define USB_COUNT6_RX_COUNT6_RX_Pos (0U)
  18125. #define USB_COUNT6_RX_COUNT6_RX_Msk (0x3FFUL << USB_COUNT6_RX_COUNT6_RX_Pos) /*!< 0x000003FF */
  18126. #define USB_COUNT6_RX_COUNT6_RX USB_COUNT6_RX_COUNT6_RX_Msk /*!< Reception Byte Count */
  18127. #define USB_COUNT6_RX_NUM_BLOCK_Pos (10U)
  18128. #define USB_COUNT6_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18129. #define USB_COUNT6_RX_NUM_BLOCK USB_COUNT6_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18130. #define USB_COUNT6_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18131. #define USB_COUNT6_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18132. #define USB_COUNT6_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18133. #define USB_COUNT6_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18134. #define USB_COUNT6_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18135. #define USB_COUNT6_RX_BLSIZE_Pos (15U)
  18136. #define USB_COUNT6_RX_BLSIZE_Msk (0x1UL << USB_COUNT6_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18137. #define USB_COUNT6_RX_BLSIZE USB_COUNT6_RX_BLSIZE_Msk /*!< BLock SIZE */
  18138. /***************** Bit definition for USB_COUNT7_RX register ****************/
  18139. #define USB_COUNT7_RX_COUNT7_RX_Pos (0U)
  18140. #define USB_COUNT7_RX_COUNT7_RX_Msk (0x3FFUL << USB_COUNT7_RX_COUNT7_RX_Pos) /*!< 0x000003FF */
  18141. #define USB_COUNT7_RX_COUNT7_RX USB_COUNT7_RX_COUNT7_RX_Msk /*!< Reception Byte Count */
  18142. #define USB_COUNT7_RX_NUM_BLOCK_Pos (10U)
  18143. #define USB_COUNT7_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  18144. #define USB_COUNT7_RX_NUM_BLOCK USB_COUNT7_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  18145. #define USB_COUNT7_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  18146. #define USB_COUNT7_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  18147. #define USB_COUNT7_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  18148. #define USB_COUNT7_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  18149. #define USB_COUNT7_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  18150. #define USB_COUNT7_RX_BLSIZE_Pos (15U)
  18151. #define USB_COUNT7_RX_BLSIZE_Msk (0x1UL << USB_COUNT7_RX_BLSIZE_Pos) /*!< 0x00008000 */
  18152. #define USB_COUNT7_RX_BLSIZE USB_COUNT7_RX_BLSIZE_Msk /*!< BLock SIZE */
  18153. /*----------------------------------------------------------------------------*/
  18154. /**************** Bit definition for USB_COUNT0_RX_0 register ***************/
  18155. #define USB_COUNT0_RX_0_COUNT0_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18156. #define USB_COUNT0_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18157. #define USB_COUNT0_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18158. #define USB_COUNT0_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18159. #define USB_COUNT0_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18160. #define USB_COUNT0_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18161. #define USB_COUNT0_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18162. #define USB_COUNT0_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18163. /**************** Bit definition for USB_COUNT0_RX_1 register ***************/
  18164. #define USB_COUNT0_RX_1_COUNT0_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18165. #define USB_COUNT0_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18166. #define USB_COUNT0_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 1 */
  18167. #define USB_COUNT0_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18168. #define USB_COUNT0_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18169. #define USB_COUNT0_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18170. #define USB_COUNT0_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18171. #define USB_COUNT0_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18172. /**************** Bit definition for USB_COUNT1_RX_0 register ***************/
  18173. #define USB_COUNT1_RX_0_COUNT1_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18174. #define USB_COUNT1_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18175. #define USB_COUNT1_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18176. #define USB_COUNT1_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18177. #define USB_COUNT1_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18178. #define USB_COUNT1_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18179. #define USB_COUNT1_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18180. #define USB_COUNT1_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18181. /**************** Bit definition for USB_COUNT1_RX_1 register ***************/
  18182. #define USB_COUNT1_RX_1_COUNT1_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18183. #define USB_COUNT1_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18184. #define USB_COUNT1_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  18185. #define USB_COUNT1_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18186. #define USB_COUNT1_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18187. #define USB_COUNT1_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18188. #define USB_COUNT1_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18189. #define USB_COUNT1_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18190. /**************** Bit definition for USB_COUNT2_RX_0 register ***************/
  18191. #define USB_COUNT2_RX_0_COUNT2_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18192. #define USB_COUNT2_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18193. #define USB_COUNT2_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18194. #define USB_COUNT2_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18195. #define USB_COUNT2_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18196. #define USB_COUNT2_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18197. #define USB_COUNT2_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18198. #define USB_COUNT2_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18199. /**************** Bit definition for USB_COUNT2_RX_1 register ***************/
  18200. #define USB_COUNT2_RX_1_COUNT2_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18201. #define USB_COUNT2_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18202. #define USB_COUNT2_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  18203. #define USB_COUNT2_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18204. #define USB_COUNT2_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18205. #define USB_COUNT2_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18206. #define USB_COUNT2_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18207. #define USB_COUNT2_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18208. /**************** Bit definition for USB_COUNT3_RX_0 register ***************/
  18209. #define USB_COUNT3_RX_0_COUNT3_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18210. #define USB_COUNT3_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18211. #define USB_COUNT3_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18212. #define USB_COUNT3_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18213. #define USB_COUNT3_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18214. #define USB_COUNT3_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18215. #define USB_COUNT3_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18216. #define USB_COUNT3_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18217. /**************** Bit definition for USB_COUNT3_RX_1 register ***************/
  18218. #define USB_COUNT3_RX_1_COUNT3_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18219. #define USB_COUNT3_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18220. #define USB_COUNT3_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  18221. #define USB_COUNT3_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18222. #define USB_COUNT3_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18223. #define USB_COUNT3_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18224. #define USB_COUNT3_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18225. #define USB_COUNT3_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18226. /**************** Bit definition for USB_COUNT4_RX_0 register ***************/
  18227. #define USB_COUNT4_RX_0_COUNT4_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18228. #define USB_COUNT4_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18229. #define USB_COUNT4_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18230. #define USB_COUNT4_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18231. #define USB_COUNT4_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18232. #define USB_COUNT4_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18233. #define USB_COUNT4_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18234. #define USB_COUNT4_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18235. /**************** Bit definition for USB_COUNT4_RX_1 register ***************/
  18236. #define USB_COUNT4_RX_1_COUNT4_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18237. #define USB_COUNT4_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18238. #define USB_COUNT4_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  18239. #define USB_COUNT4_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18240. #define USB_COUNT4_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18241. #define USB_COUNT4_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18242. #define USB_COUNT4_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18243. #define USB_COUNT4_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18244. /**************** Bit definition for USB_COUNT5_RX_0 register ***************/
  18245. #define USB_COUNT5_RX_0_COUNT5_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18246. #define USB_COUNT5_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18247. #define USB_COUNT5_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18248. #define USB_COUNT5_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18249. #define USB_COUNT5_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18250. #define USB_COUNT5_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18251. #define USB_COUNT5_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18252. #define USB_COUNT5_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18253. /**************** Bit definition for USB_COUNT5_RX_1 register ***************/
  18254. #define USB_COUNT5_RX_1_COUNT5_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18255. #define USB_COUNT5_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18256. #define USB_COUNT5_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  18257. #define USB_COUNT5_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18258. #define USB_COUNT5_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18259. #define USB_COUNT5_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18260. #define USB_COUNT5_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18261. #define USB_COUNT5_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18262. /*************** Bit definition for USB_COUNT6_RX_0 register ***************/
  18263. #define USB_COUNT6_RX_0_COUNT6_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18264. #define USB_COUNT6_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18265. #define USB_COUNT6_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18266. #define USB_COUNT6_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18267. #define USB_COUNT6_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18268. #define USB_COUNT6_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18269. #define USB_COUNT6_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18270. #define USB_COUNT6_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18271. /**************** Bit definition for USB_COUNT6_RX_1 register ***************/
  18272. #define USB_COUNT6_RX_1_COUNT6_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18273. #define USB_COUNT6_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18274. #define USB_COUNT6_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  18275. #define USB_COUNT6_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18276. #define USB_COUNT6_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18277. #define USB_COUNT6_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18278. #define USB_COUNT6_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18279. #define USB_COUNT6_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18280. /*************** Bit definition for USB_COUNT7_RX_0 register ****************/
  18281. #define USB_COUNT7_RX_0_COUNT7_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  18282. #define USB_COUNT7_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  18283. #define USB_COUNT7_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  18284. #define USB_COUNT7_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  18285. #define USB_COUNT7_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  18286. #define USB_COUNT7_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  18287. #define USB_COUNT7_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  18288. #define USB_COUNT7_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  18289. /*************** Bit definition for USB_COUNT7_RX_1 register ****************/
  18290. #define USB_COUNT7_RX_1_COUNT7_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  18291. #define USB_COUNT7_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  18292. #define USB_COUNT7_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  18293. #define USB_COUNT7_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  18294. #define USB_COUNT7_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  18295. #define USB_COUNT7_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  18296. #define USB_COUNT7_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  18297. #define USB_COUNT7_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  18298. /******************************************************************************/
  18299. /* */
  18300. /* VREFBUF */
  18301. /* */
  18302. /******************************************************************************/
  18303. /******************* Bit definition for VREFBUF_CSR register ****************/
  18304. #define VREFBUF_CSR_ENVR_Pos (0U)
  18305. #define VREFBUF_CSR_ENVR_Msk (0x1UL << VREFBUF_CSR_ENVR_Pos) /*!< 0x00000001 */
  18306. #define VREFBUF_CSR_ENVR VREFBUF_CSR_ENVR_Msk /*!<Voltage reference buffer enable */
  18307. #define VREFBUF_CSR_HIZ_Pos (1U)
  18308. #define VREFBUF_CSR_HIZ_Msk (0x1UL << VREFBUF_CSR_HIZ_Pos) /*!< 0x00000002 */
  18309. #define VREFBUF_CSR_HIZ VREFBUF_CSR_HIZ_Msk /*!<High impedance mode */
  18310. #define VREFBUF_CSR_VRS_Pos (2U)
  18311. #define VREFBUF_CSR_VRS_Msk (0x1UL << VREFBUF_CSR_VRS_Pos) /*!< 0x00000004 */
  18312. #define VREFBUF_CSR_VRS VREFBUF_CSR_VRS_Msk /*!<Voltage reference scale */
  18313. #define VREFBUF_CSR_VRR_Pos (3U)
  18314. #define VREFBUF_CSR_VRR_Msk (0x1UL << VREFBUF_CSR_VRR_Pos) /*!< 0x00000008 */
  18315. #define VREFBUF_CSR_VRR VREFBUF_CSR_VRR_Msk /*!<Voltage reference buffer ready */
  18316. /******************* Bit definition for VREFBUF_CCR register ******************/
  18317. #define VREFBUF_CCR_TRIM_Pos (0U)
  18318. #define VREFBUF_CCR_TRIM_Msk (0x3FUL << VREFBUF_CCR_TRIM_Pos) /*!< 0x0000003F */
  18319. #define VREFBUF_CCR_TRIM VREFBUF_CCR_TRIM_Msk /*!<TRIM[5:0] bits (Trimming code) */
  18320. /******************************************************************************/
  18321. /* */
  18322. /* Window WATCHDOG */
  18323. /* */
  18324. /******************************************************************************/
  18325. /******************* Bit definition for WWDG_CR register ********************/
  18326. #define WWDG_CR_T_Pos (0U)
  18327. #define WWDG_CR_T_Msk (0x7FUL << WWDG_CR_T_Pos) /*!< 0x0000007F */
  18328. #define WWDG_CR_T WWDG_CR_T_Msk /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
  18329. #define WWDG_CR_T_0 (0x01UL << WWDG_CR_T_Pos) /*!< 0x00000001 */
  18330. #define WWDG_CR_T_1 (0x02UL << WWDG_CR_T_Pos) /*!< 0x00000002 */
  18331. #define WWDG_CR_T_2 (0x04UL << WWDG_CR_T_Pos) /*!< 0x00000004 */
  18332. #define WWDG_CR_T_3 (0x08UL << WWDG_CR_T_Pos) /*!< 0x00000008 */
  18333. #define WWDG_CR_T_4 (0x10UL << WWDG_CR_T_Pos) /*!< 0x00000010 */
  18334. #define WWDG_CR_T_5 (0x20UL << WWDG_CR_T_Pos) /*!< 0x00000020 */
  18335. #define WWDG_CR_T_6 (0x40UL << WWDG_CR_T_Pos) /*!< 0x00000040 */
  18336. #define WWDG_CR_WDGA_Pos (7U)
  18337. #define WWDG_CR_WDGA_Msk (0x1UL << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */
  18338. #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!<Activation bit */
  18339. /******************* Bit definition for WWDG_CFR register *******************/
  18340. #define WWDG_CFR_W_Pos (0U)
  18341. #define WWDG_CFR_W_Msk (0x7FUL << WWDG_CFR_W_Pos) /*!< 0x0000007F */
  18342. #define WWDG_CFR_W WWDG_CFR_W_Msk /*!<W[6:0] bits (7-bit window value) */
  18343. #define WWDG_CFR_W_0 (0x01UL << WWDG_CFR_W_Pos) /*!< 0x00000001 */
  18344. #define WWDG_CFR_W_1 (0x02UL << WWDG_CFR_W_Pos) /*!< 0x00000002 */
  18345. #define WWDG_CFR_W_2 (0x04UL << WWDG_CFR_W_Pos) /*!< 0x00000004 */
  18346. #define WWDG_CFR_W_3 (0x08UL << WWDG_CFR_W_Pos) /*!< 0x00000008 */
  18347. #define WWDG_CFR_W_4 (0x10UL << WWDG_CFR_W_Pos) /*!< 0x00000010 */
  18348. #define WWDG_CFR_W_5 (0x20UL << WWDG_CFR_W_Pos) /*!< 0x00000020 */
  18349. #define WWDG_CFR_W_6 (0x40UL << WWDG_CFR_W_Pos) /*!< 0x00000040 */
  18350. #define WWDG_CFR_WDGTB_Pos (11U)
  18351. #define WWDG_CFR_WDGTB_Msk (0x7UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00003800 */
  18352. #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!<WDGTB[2:0] bits (Timer Base) */
  18353. #define WWDG_CFR_WDGTB_0 (0x1UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00000800 */
  18354. #define WWDG_CFR_WDGTB_1 (0x2UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00001000 */
  18355. #define WWDG_CFR_WDGTB_2 (0x4UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00002000 */
  18356. #define WWDG_CFR_EWI_Pos (9U)
  18357. #define WWDG_CFR_EWI_Msk (0x1UL << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */
  18358. #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!<Early Wakeup Interrupt */
  18359. /******************* Bit definition for WWDG_SR register ********************/
  18360. #define WWDG_SR_EWIF_Pos (0U)
  18361. #define WWDG_SR_EWIF_Msk (0x1UL << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */
  18362. #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!<Early Wakeup Interrupt Flag */
  18363. /** @} */ /* End of group STM32L5xx_Peripheral_Declaration */
  18364. /** @addtogroup STM32L5xx_Peripheral_Exported_macros
  18365. * @{
  18366. */
  18367. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  18368. /* Instances allowed from Secure state */
  18369. /******************************* ADC Instances ********************************/
  18370. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1_S) || \
  18371. ((INSTANCE) == ADC2_S))
  18372. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_S)
  18373. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON_S)
  18374. /******************************* AES Instances ********************************/
  18375. #define IS_AES_ALL_INSTANCE(INSTANCE) ((INSTANCE) == AES_S)
  18376. /******************************** FDCAN Instances *****************************/
  18377. #define IS_FDCAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN1_S)
  18378. #define IS_FDCAN_CONFIG_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN_CONFIG_S)
  18379. /******************************** COMP Instances ******************************/
  18380. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1_S) || \
  18381. ((INSTANCE) == COMP2_S))
  18382. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON_S)
  18383. /******************** COMP Instances with window mode capability **************/
  18384. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2_S)
  18385. /******************************* CRC Instances ********************************/
  18386. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC_S)
  18387. /******************************* DAC Instances ********************************/
  18388. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1_S)
  18389. /****************************** DFSDM Instances *******************************/
  18390. #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0_S) || \
  18391. ((INSTANCE) == DFSDM1_Filter1_S) || \
  18392. ((INSTANCE) == DFSDM1_Filter2_S) || \
  18393. ((INSTANCE) == DFSDM1_Filter3_S))
  18394. #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0_S) || \
  18395. ((INSTANCE) == DFSDM1_Channel1_S) || \
  18396. ((INSTANCE) == DFSDM1_Channel2_S) || \
  18397. ((INSTANCE) == DFSDM1_Channel3_S))
  18398. /******************************** DMA Instances *******************************/
  18399. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1_S) || \
  18400. ((INSTANCE) == DMA1_Channel2_S) || \
  18401. ((INSTANCE) == DMA1_Channel3_S) || \
  18402. ((INSTANCE) == DMA1_Channel4_S) || \
  18403. ((INSTANCE) == DMA1_Channel5_S) || \
  18404. ((INSTANCE) == DMA1_Channel6_S) || \
  18405. ((INSTANCE) == DMA1_Channel7_S) || \
  18406. ((INSTANCE) == DMA1_Channel8_S) || \
  18407. ((INSTANCE) == DMA2_Channel1_S) || \
  18408. ((INSTANCE) == DMA2_Channel2_S) || \
  18409. ((INSTANCE) == DMA2_Channel3_S) || \
  18410. ((INSTANCE) == DMA2_Channel4_S) || \
  18411. ((INSTANCE) == DMA2_Channel5_S) || \
  18412. ((INSTANCE) == DMA2_Channel6_S) || \
  18413. ((INSTANCE) == DMA2_Channel7_S) || \
  18414. ((INSTANCE) == DMA2_Channel8_S))
  18415. /******************************* GPIO Instances *******************************/
  18416. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA_S) || \
  18417. ((INSTANCE) == GPIOB_S) || \
  18418. ((INSTANCE) == GPIOC_S) || \
  18419. ((INSTANCE) == GPIOD_S) || \
  18420. ((INSTANCE) == GPIOE_S) || \
  18421. ((INSTANCE) == GPIOF_S) || \
  18422. ((INSTANCE) == GPIOG_S) || \
  18423. ((INSTANCE) == GPIOH_S))
  18424. /******************************* GPIO AF Instances ****************************/
  18425. /* All GPIO Banks support AF */
  18426. #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  18427. /**************************** GPIO Lock Instances *****************************/
  18428. /* All GPIO Banks support the Lock mechanism */
  18429. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  18430. /******************************** I2C Instances *******************************/
  18431. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_S) || \
  18432. ((INSTANCE) == I2C2_S) || \
  18433. ((INSTANCE) == I2C3_S) || \
  18434. ((INSTANCE) == I2C4_S))
  18435. /****************** I2C Instances : wakeup capability from stop modes *********/
  18436. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  18437. /****************************** OPAMP Instances *******************************/
  18438. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1_S) || \
  18439. ((INSTANCE) == OPAMP2_S))
  18440. #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP12_COMMON_S)
  18441. /******************************* OSPI Instances *******************************/
  18442. #define IS_OSPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OCTOSPI1_S)
  18443. /******************************** OTFDEC Instances ****************************/
  18444. #define IS_OTFDEC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OTFDEC1_S)
  18445. /******************************** OTFDEC Regions Instances ********************/
  18446. #define IS_OTFDEC_REGION_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OTFDEC1_REGION1_S) || \
  18447. ((INSTANCE) == OTFDEC1_REGION2_S) || \
  18448. ((INSTANCE) == OTFDEC1_REGION3_S) || \
  18449. ((INSTANCE) == OTFDEC1_REGION4_S))
  18450. /******************************** PKA Instances *******************************/
  18451. #define IS_PKA_ALL_INSTANCE(INSTANCE) ((INSTANCE) == PKA_S)
  18452. /******************************* RNG Instances ********************************/
  18453. #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG_S)
  18454. /****************************** RTC Instances *********************************/
  18455. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC_S)
  18456. /******************************** SAI Instances *******************************/
  18457. #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A_S) || \
  18458. ((INSTANCE) == SAI1_Block_B_S) || \
  18459. ((INSTANCE) == SAI2_Block_A_S) || \
  18460. ((INSTANCE) == SAI2_Block_B_S))
  18461. /****************************** SDMMC Instances *******************************/
  18462. #define IS_SDMMC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SDMMC1_S)
  18463. /****************************** SMBUS Instances *******************************/
  18464. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  18465. /******************************** SPI Instances *******************************/
  18466. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1_S) || \
  18467. ((INSTANCE) == SPI2_S) || \
  18468. ((INSTANCE) == SPI3_S))
  18469. /****************** LPTIM Instances : All supported instances *****************/
  18470. #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1_S) || \
  18471. ((INSTANCE) == LPTIM2_S) || \
  18472. ((INSTANCE) == LPTIM3_S))
  18473. #define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) ((INSTANCE) == LPTIM1_S)
  18474. /****************** TIM Instances : All supported instances *******************/
  18475. #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18476. ((INSTANCE) == TIM2_S) || \
  18477. ((INSTANCE) == TIM3_S) || \
  18478. ((INSTANCE) == TIM4_S) || \
  18479. ((INSTANCE) == TIM5_S) || \
  18480. ((INSTANCE) == TIM6_S) || \
  18481. ((INSTANCE) == TIM7_S) || \
  18482. ((INSTANCE) == TIM8_S) || \
  18483. ((INSTANCE) == TIM15_S) || \
  18484. ((INSTANCE) == TIM16_S) || \
  18485. ((INSTANCE) == TIM17_S))
  18486. /****************** TIM Instances : supporting 32 bits counter ****************/
  18487. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2_S) || \
  18488. ((INSTANCE) == TIM5_S))
  18489. /****************** TIM Instances : supporting the break function *************/
  18490. #define IS_TIM_BREAK_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18491. ((INSTANCE) == TIM8_S) || \
  18492. ((INSTANCE) == TIM15_S) || \
  18493. ((INSTANCE) == TIM16_S) || \
  18494. ((INSTANCE) == TIM17_S))
  18495. /************** TIM Instances : supporting Break source selection *************/
  18496. #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18497. ((INSTANCE) == TIM8_S) || \
  18498. ((INSTANCE) == TIM15_S) || \
  18499. ((INSTANCE) == TIM16_S) || \
  18500. ((INSTANCE) == TIM17_S))
  18501. /****************** TIM Instances : supporting 2 break inputs *****************/
  18502. #define IS_TIM_BKIN2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18503. ((INSTANCE) == TIM8_S))
  18504. /************* TIM Instances : at least 1 capture/compare channel *************/
  18505. #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18506. ((INSTANCE) == TIM2_S) || \
  18507. ((INSTANCE) == TIM3_S) || \
  18508. ((INSTANCE) == TIM4_S) || \
  18509. ((INSTANCE) == TIM5_S) || \
  18510. ((INSTANCE) == TIM8_S) || \
  18511. ((INSTANCE) == TIM15_S) || \
  18512. ((INSTANCE) == TIM16_S) || \
  18513. ((INSTANCE) == TIM17_S))
  18514. /************ TIM Instances : at least 2 capture/compare channels *************/
  18515. #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18516. ((INSTANCE) == TIM2_S) || \
  18517. ((INSTANCE) == TIM3_S) || \
  18518. ((INSTANCE) == TIM4_S) || \
  18519. ((INSTANCE) == TIM5_S) || \
  18520. ((INSTANCE) == TIM8_S) || \
  18521. ((INSTANCE) == TIM15_S))
  18522. /************ TIM Instances : at least 3 capture/compare channels *************/
  18523. #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18524. ((INSTANCE) == TIM2_S) || \
  18525. ((INSTANCE) == TIM3_S) || \
  18526. ((INSTANCE) == TIM4_S) || \
  18527. ((INSTANCE) == TIM5_S) || \
  18528. ((INSTANCE) == TIM8_S))
  18529. /************ TIM Instances : at least 4 capture/compare channels *************/
  18530. #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18531. ((INSTANCE) == TIM2_S) || \
  18532. ((INSTANCE) == TIM3_S) || \
  18533. ((INSTANCE) == TIM4_S) || \
  18534. ((INSTANCE) == TIM5_S) || \
  18535. ((INSTANCE) == TIM8_S))
  18536. /****************** TIM Instances : at least 5 capture/compare channels *******/
  18537. #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18538. ((INSTANCE) == TIM8_S))
  18539. /****************** TIM Instances : at least 6 capture/compare channels *******/
  18540. #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18541. ((INSTANCE) == TIM8_S))
  18542. /************ TIM Instances : DMA requests generation (TIMx_DIER.COMDE) *******/
  18543. #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18544. ((INSTANCE) == TIM8_S) || \
  18545. ((INSTANCE) == TIM15_S) || \
  18546. ((INSTANCE) == TIM16_S) || \
  18547. ((INSTANCE) == TIM17_S))
  18548. /****************** TIM Instances : DMA requests generation (TIMx_DIER.UDE) ***/
  18549. #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18550. ((INSTANCE) == TIM2_S) || \
  18551. ((INSTANCE) == TIM3_S) || \
  18552. ((INSTANCE) == TIM4_S) || \
  18553. ((INSTANCE) == TIM5_S) || \
  18554. ((INSTANCE) == TIM6_S) || \
  18555. ((INSTANCE) == TIM7_S) || \
  18556. ((INSTANCE) == TIM8_S) || \
  18557. ((INSTANCE) == TIM15_S) || \
  18558. ((INSTANCE) == TIM16_S) || \
  18559. ((INSTANCE) == TIM17_S))
  18560. /************ TIM Instances : DMA requests generation (TIMx_DIER.CCxDE) *******/
  18561. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18562. ((INSTANCE) == TIM2_S) || \
  18563. ((INSTANCE) == TIM3_S) || \
  18564. ((INSTANCE) == TIM4_S) || \
  18565. ((INSTANCE) == TIM5_S) || \
  18566. ((INSTANCE) == TIM8_S) || \
  18567. ((INSTANCE) == TIM15_S) || \
  18568. ((INSTANCE) == TIM16_S) || \
  18569. ((INSTANCE) == TIM17_S))
  18570. /******************** TIM Instances : DMA burst feature ***********************/
  18571. #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18572. ((INSTANCE) == TIM2_S) || \
  18573. ((INSTANCE) == TIM3_S) || \
  18574. ((INSTANCE) == TIM4_S) || \
  18575. ((INSTANCE) == TIM5_S) || \
  18576. ((INSTANCE) == TIM8_S) || \
  18577. ((INSTANCE) == TIM15_S) || \
  18578. ((INSTANCE) == TIM16_S) || \
  18579. ((INSTANCE) == TIM17_S))
  18580. /******************* TIM Instances : output(s) available **********************/
  18581. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  18582. ((((INSTANCE) == TIM1_S) && \
  18583. (((CHANNEL) == TIM_CHANNEL_1) || \
  18584. ((CHANNEL) == TIM_CHANNEL_2) || \
  18585. ((CHANNEL) == TIM_CHANNEL_3) || \
  18586. ((CHANNEL) == TIM_CHANNEL_4) || \
  18587. ((CHANNEL) == TIM_CHANNEL_5) || \
  18588. ((CHANNEL) == TIM_CHANNEL_6))) \
  18589. || \
  18590. (((INSTANCE) == TIM2_S) && \
  18591. (((CHANNEL) == TIM_CHANNEL_1) || \
  18592. ((CHANNEL) == TIM_CHANNEL_2) || \
  18593. ((CHANNEL) == TIM_CHANNEL_3) || \
  18594. ((CHANNEL) == TIM_CHANNEL_4))) \
  18595. || \
  18596. (((INSTANCE) == TIM3_S) && \
  18597. (((CHANNEL) == TIM_CHANNEL_1) || \
  18598. ((CHANNEL) == TIM_CHANNEL_2) || \
  18599. ((CHANNEL) == TIM_CHANNEL_3) || \
  18600. ((CHANNEL) == TIM_CHANNEL_4))) \
  18601. || \
  18602. (((INSTANCE) == TIM4_S) && \
  18603. (((CHANNEL) == TIM_CHANNEL_1) || \
  18604. ((CHANNEL) == TIM_CHANNEL_2) || \
  18605. ((CHANNEL) == TIM_CHANNEL_3) || \
  18606. ((CHANNEL) == TIM_CHANNEL_4))) \
  18607. || \
  18608. (((INSTANCE) == TIM5_S) && \
  18609. (((CHANNEL) == TIM_CHANNEL_1) || \
  18610. ((CHANNEL) == TIM_CHANNEL_2) || \
  18611. ((CHANNEL) == TIM_CHANNEL_3) || \
  18612. ((CHANNEL) == TIM_CHANNEL_4))) \
  18613. || \
  18614. (((INSTANCE) == TIM8_S) && \
  18615. (((CHANNEL) == TIM_CHANNEL_1) || \
  18616. ((CHANNEL) == TIM_CHANNEL_2) || \
  18617. ((CHANNEL) == TIM_CHANNEL_3) || \
  18618. ((CHANNEL) == TIM_CHANNEL_4) || \
  18619. ((CHANNEL) == TIM_CHANNEL_5) || \
  18620. ((CHANNEL) == TIM_CHANNEL_6))) \
  18621. || \
  18622. (((INSTANCE) == TIM15_S) && \
  18623. (((CHANNEL) == TIM_CHANNEL_1) || \
  18624. ((CHANNEL) == TIM_CHANNEL_2))) \
  18625. || \
  18626. (((INSTANCE) == TIM16_S) && \
  18627. (((CHANNEL) == TIM_CHANNEL_1))) \
  18628. || \
  18629. (((INSTANCE) == TIM17_S) && \
  18630. (((CHANNEL) == TIM_CHANNEL_1))))
  18631. /****************** TIM Instances : supporting complementary output(s) ********/
  18632. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  18633. ((((INSTANCE) == TIM1_S) && \
  18634. (((CHANNEL) == TIM_CHANNEL_1) || \
  18635. ((CHANNEL) == TIM_CHANNEL_2) || \
  18636. ((CHANNEL) == TIM_CHANNEL_3))) \
  18637. || \
  18638. (((INSTANCE) == TIM8_S) && \
  18639. (((CHANNEL) == TIM_CHANNEL_1) || \
  18640. ((CHANNEL) == TIM_CHANNEL_2) || \
  18641. ((CHANNEL) == TIM_CHANNEL_3))) \
  18642. || \
  18643. (((INSTANCE) == TIM15_S) && \
  18644. ((CHANNEL) == TIM_CHANNEL_1)) \
  18645. || \
  18646. (((INSTANCE) == TIM16_S) && \
  18647. ((CHANNEL) == TIM_CHANNEL_1)) \
  18648. || \
  18649. (((INSTANCE) == TIM17_S) && \
  18650. ((CHANNEL) == TIM_CHANNEL_1)))
  18651. /****************** TIM Instances : supporting clock division *****************/
  18652. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18653. ((INSTANCE) == TIM2_S) || \
  18654. ((INSTANCE) == TIM3_S) || \
  18655. ((INSTANCE) == TIM4_S) || \
  18656. ((INSTANCE) == TIM5_S) || \
  18657. ((INSTANCE) == TIM8_S) || \
  18658. ((INSTANCE) == TIM15_S) || \
  18659. ((INSTANCE) == TIM16_S) || \
  18660. ((INSTANCE) == TIM17_S))
  18661. /****** TIM Instances : supporting external clock mode 1 for ETRF input *******/
  18662. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18663. ((INSTANCE) == TIM2_S) || \
  18664. ((INSTANCE) == TIM3_S) || \
  18665. ((INSTANCE) == TIM4_S) || \
  18666. ((INSTANCE) == TIM5_S) || \
  18667. ((INSTANCE) == TIM8_S) || \
  18668. ((INSTANCE) == TIM15_S))
  18669. /****** TIM Instances : supporting external clock mode 2 for ETRF input *******/
  18670. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18671. ((INSTANCE) == TIM2_S) || \
  18672. ((INSTANCE) == TIM3_S) || \
  18673. ((INSTANCE) == TIM4_S) || \
  18674. ((INSTANCE) == TIM5_S) || \
  18675. ((INSTANCE) == TIM8_S))
  18676. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  18677. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18678. ((INSTANCE) == TIM2_S) || \
  18679. ((INSTANCE) == TIM3_S) || \
  18680. ((INSTANCE) == TIM4_S) || \
  18681. ((INSTANCE) == TIM5_S) || \
  18682. ((INSTANCE) == TIM8_S) || \
  18683. ((INSTANCE) == TIM15_S))
  18684. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  18685. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18686. ((INSTANCE) == TIM2_S) || \
  18687. ((INSTANCE) == TIM3_S) || \
  18688. ((INSTANCE) == TIM4_S) || \
  18689. ((INSTANCE) == TIM5_S) || \
  18690. ((INSTANCE) == TIM8_S) || \
  18691. ((INSTANCE) == TIM15_S))
  18692. /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
  18693. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18694. ((INSTANCE) == TIM8_S))
  18695. /****************** TIM Instances : supporting commutation event generation ***/
  18696. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18697. ((INSTANCE) == TIM8_S) || \
  18698. ((INSTANCE) == TIM15_S) || \
  18699. ((INSTANCE) == TIM16_S) || \
  18700. ((INSTANCE) == TIM17_S))
  18701. /****************** TIM Instances : supporting counting mode selection ********/
  18702. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18703. ((INSTANCE) == TIM2_S) || \
  18704. ((INSTANCE) == TIM3_S) || \
  18705. ((INSTANCE) == TIM4_S) || \
  18706. ((INSTANCE) == TIM5_S) || \
  18707. ((INSTANCE) == TIM8_S))
  18708. /****************** TIM Instances : supporting encoder interface **************/
  18709. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18710. ((INSTANCE) == TIM2_S) || \
  18711. ((INSTANCE) == TIM3_S) || \
  18712. ((INSTANCE) == TIM4_S) || \
  18713. ((INSTANCE) == TIM5_S) || \
  18714. ((INSTANCE) == TIM8_S))
  18715. /****************** TIM Instances : supporting Hall sensor interface **********/
  18716. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18717. ((INSTANCE) == TIM2_S) || \
  18718. ((INSTANCE) == TIM3_S) || \
  18719. ((INSTANCE) == TIM4_S) || \
  18720. ((INSTANCE) == TIM5_S))
  18721. /**************** TIM Instances : external trigger input available ************/
  18722. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18723. ((INSTANCE) == TIM2_S) || \
  18724. ((INSTANCE) == TIM3_S) || \
  18725. ((INSTANCE) == TIM4_S) || \
  18726. ((INSTANCE) == TIM5_S) || \
  18727. ((INSTANCE) == TIM8_S))
  18728. /************* TIM Instances : supporting ETR source selection ***************/
  18729. #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18730. ((INSTANCE) == TIM2_S) || \
  18731. ((INSTANCE) == TIM3_S) || \
  18732. ((INSTANCE) == TIM8_S))
  18733. /****** TIM Instances : Master mode available (TIMx_CR2.MMS available )********/
  18734. #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18735. ((INSTANCE) == TIM2_S) || \
  18736. ((INSTANCE) == TIM3_S) || \
  18737. ((INSTANCE) == TIM4_S) || \
  18738. ((INSTANCE) == TIM5_S) || \
  18739. ((INSTANCE) == TIM6_S) || \
  18740. ((INSTANCE) == TIM7_S) || \
  18741. ((INSTANCE) == TIM8_S) || \
  18742. ((INSTANCE) == TIM15_S))
  18743. /*********** TIM Instances : Slave mode available (TIMx_SMCR available )*******/
  18744. #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18745. ((INSTANCE) == TIM2_S) || \
  18746. ((INSTANCE) == TIM3_S) || \
  18747. ((INSTANCE) == TIM4_S) || \
  18748. ((INSTANCE) == TIM5_S) || \
  18749. ((INSTANCE) == TIM8_S) || \
  18750. ((INSTANCE) == TIM15_S))
  18751. /****************** TIM Instances : supporting OCxREF clear *******************/
  18752. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18753. ((INSTANCE) == TIM2_S) || \
  18754. ((INSTANCE) == TIM3_S) || \
  18755. ((INSTANCE) == TIM4_S) || \
  18756. ((INSTANCE) == TIM5_S) || \
  18757. ((INSTANCE) == TIM8_S))
  18758. /****************** TIM Instances : remapping capability **********************/
  18759. #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18760. ((INSTANCE) == TIM2_S) || \
  18761. ((INSTANCE) == TIM3_S) || \
  18762. ((INSTANCE) == TIM8_S) || \
  18763. ((INSTANCE) == TIM15_S) || \
  18764. ((INSTANCE) == TIM16_S) || \
  18765. ((INSTANCE) == TIM17_S))
  18766. /****************** TIM Instances : supporting repetition counter *************/
  18767. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18768. ((INSTANCE) == TIM8_S) || \
  18769. ((INSTANCE) == TIM15_S) || \
  18770. ((INSTANCE) == TIM16_S) || \
  18771. ((INSTANCE) == TIM17_S))
  18772. /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
  18773. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18774. ((INSTANCE) == TIM8_S))
  18775. /******************* TIM Instances : Timer input XOR function *****************/
  18776. #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18777. ((INSTANCE) == TIM2_S) || \
  18778. ((INSTANCE) == TIM3_S) || \
  18779. ((INSTANCE) == TIM4_S) || \
  18780. ((INSTANCE) == TIM5_S) || \
  18781. ((INSTANCE) == TIM8_S) || \
  18782. ((INSTANCE) == TIM15_S))
  18783. /****************** TIM Instances : Advanced timer instances *******************/
  18784. #define IS_TIM_ADVANCED_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18785. ((INSTANCE) == TIM8_S))
  18786. /****************************** TSC Instances *********************************/
  18787. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC_S)
  18788. /******************** USART Instances : Synchronous mode **********************/
  18789. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18790. ((INSTANCE) == USART2_S) || \
  18791. ((INSTANCE) == USART3_S))
  18792. /******************** UART Instances : Asynchronous mode **********************/
  18793. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18794. ((INSTANCE) == USART2_S) || \
  18795. ((INSTANCE) == USART3_S) || \
  18796. ((INSTANCE) == UART4_S) || \
  18797. ((INSTANCE) == UART5_S))
  18798. /*********************** UART Instances : FIFO mode ***************************/
  18799. #define IS_UART_FIFO_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18800. ((INSTANCE) == USART2_S) || \
  18801. ((INSTANCE) == USART3_S) || \
  18802. ((INSTANCE) == UART4_S) || \
  18803. ((INSTANCE) == UART5_S) || \
  18804. ((INSTANCE) == LPUART1_S))
  18805. /*********************** UART Instances : SPI Slave mode **********************/
  18806. #define IS_UART_SPI_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18807. ((INSTANCE) == USART2_S) || \
  18808. ((INSTANCE) == USART3_S))
  18809. /****************** UART Instances : Auto Baud Rate detection ****************/
  18810. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18811. ((INSTANCE) == USART2_S) || \
  18812. ((INSTANCE) == USART3_S) || \
  18813. ((INSTANCE) == UART4_S) || \
  18814. ((INSTANCE) == UART5_S))
  18815. /****************** UART Instances : Driver Enable *****************/
  18816. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18817. ((INSTANCE) == USART2_S) || \
  18818. ((INSTANCE) == USART3_S) || \
  18819. ((INSTANCE) == UART4_S) || \
  18820. ((INSTANCE) == UART5_S) || \
  18821. ((INSTANCE) == LPUART1_S))
  18822. /******************** UART Instances : Half-Duplex mode **********************/
  18823. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18824. ((INSTANCE) == USART2_S) || \
  18825. ((INSTANCE) == USART3_S) || \
  18826. ((INSTANCE) == UART4_S) || \
  18827. ((INSTANCE) == UART5_S) || \
  18828. ((INSTANCE) == LPUART1_S))
  18829. /****************** UART Instances : Hardware Flow control ********************/
  18830. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18831. ((INSTANCE) == USART2_S) || \
  18832. ((INSTANCE) == USART3_S) || \
  18833. ((INSTANCE) == UART4_S) || \
  18834. ((INSTANCE) == UART5_S) || \
  18835. ((INSTANCE) == LPUART1_S))
  18836. /******************** UART Instances : LIN mode **********************/
  18837. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18838. ((INSTANCE) == USART2_S) || \
  18839. ((INSTANCE) == USART3_S) || \
  18840. ((INSTANCE) == UART4_S) || \
  18841. ((INSTANCE) == UART5_S))
  18842. /******************** UART Instances : Wake-up from Stop mode **********************/
  18843. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18844. ((INSTANCE) == USART2_S) || \
  18845. ((INSTANCE) == USART3_S) || \
  18846. ((INSTANCE) == UART4_S) || \
  18847. ((INSTANCE) == UART5_S) || \
  18848. ((INSTANCE) == LPUART1_S))
  18849. /*********************** UART Instances : IRDA mode ***************************/
  18850. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18851. ((INSTANCE) == USART2_S) || \
  18852. ((INSTANCE) == USART3_S) || \
  18853. ((INSTANCE) == UART4_S) || \
  18854. ((INSTANCE) == UART5_S))
  18855. /********************* USART Instances : Smard card mode ***********************/
  18856. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18857. ((INSTANCE) == USART2_S) || \
  18858. ((INSTANCE) == USART3_S))
  18859. /******************** LPUART Instance *****************************************/
  18860. #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1_S)
  18861. /****************************** IWDG Instances ********************************/
  18862. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG_S)
  18863. /****************************** WWDG Instances ********************************/
  18864. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG_S)
  18865. /****************************** UCPD Instances ********************************/
  18866. #define IS_UCPD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == UCPD1_S)
  18867. /******************************* USB Instances ********************************/
  18868. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_S)
  18869. #define IS_PCD_ALL_INSTANCE IS_USB_ALL_INSTANCE
  18870. #else
  18871. /* Instances allowed from Non-Secure state - only alias Non-Secure */
  18872. /******************************* ADC Instances ********************************/
  18873. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1_NS) || \
  18874. ((INSTANCE) == ADC2_NS))
  18875. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_NS)
  18876. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON_NS)
  18877. /******************************* AES Instances ********************************/
  18878. #define IS_AES_ALL_INSTANCE(INSTANCE) ((INSTANCE) == AES_NS)
  18879. /******************************** FDCAN Instances *****************************/
  18880. #define IS_FDCAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN1_NS)
  18881. #define IS_FDCAN_CONFIG_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN_CONFIG_NS)
  18882. /******************************** COMP Instances ******************************/
  18883. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1_NS) || \
  18884. ((INSTANCE) == COMP2_NS))
  18885. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON_NS)
  18886. /******************** COMP Instances with window mode capability **************/
  18887. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2_NS)
  18888. /******************************* CRC Instances ********************************/
  18889. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC_NS)
  18890. /******************************* DAC Instances ********************************/
  18891. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1_NS)
  18892. /****************************** DFSDM Instances *******************************/
  18893. #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0_NS) || \
  18894. ((INSTANCE) == DFSDM1_Filter1_NS) || \
  18895. ((INSTANCE) == DFSDM1_Filter2_NS) || \
  18896. ((INSTANCE) == DFSDM1_Filter3_NS))
  18897. #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0_NS) || \
  18898. ((INSTANCE) == DFSDM1_Channel1_NS) || \
  18899. ((INSTANCE) == DFSDM1_Channel2_NS) || \
  18900. ((INSTANCE) == DFSDM1_Channel3_NS))
  18901. /******************************** DMA Instances *******************************/
  18902. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1_NS) || \
  18903. ((INSTANCE) == DMA1_Channel2_NS) || \
  18904. ((INSTANCE) == DMA1_Channel3_NS) || \
  18905. ((INSTANCE) == DMA1_Channel4_NS) || \
  18906. ((INSTANCE) == DMA1_Channel5_NS) || \
  18907. ((INSTANCE) == DMA1_Channel6_NS) || \
  18908. ((INSTANCE) == DMA1_Channel7_NS) || \
  18909. ((INSTANCE) == DMA1_Channel8_NS) || \
  18910. ((INSTANCE) == DMA2_Channel1_NS) || \
  18911. ((INSTANCE) == DMA2_Channel2_NS) || \
  18912. ((INSTANCE) == DMA2_Channel3_NS) || \
  18913. ((INSTANCE) == DMA2_Channel4_NS) || \
  18914. ((INSTANCE) == DMA2_Channel5_NS) || \
  18915. ((INSTANCE) == DMA2_Channel6_NS) || \
  18916. ((INSTANCE) == DMA2_Channel7_NS) || \
  18917. ((INSTANCE) == DMA2_Channel8_NS))
  18918. /******************************* GPIO Instances *******************************/
  18919. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA_NS) || \
  18920. ((INSTANCE) == GPIOB_NS) || \
  18921. ((INSTANCE) == GPIOC_NS) || \
  18922. ((INSTANCE) == GPIOD_NS) || \
  18923. ((INSTANCE) == GPIOE_NS) || \
  18924. ((INSTANCE) == GPIOF_NS) || \
  18925. ((INSTANCE) == GPIOG_NS) || \
  18926. ((INSTANCE) == GPIOH_NS))
  18927. /******************************* GPIO AF Instances ****************************/
  18928. /* All GPIO Banks support AF */
  18929. #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  18930. /**************************** GPIO Lock Instances *****************************/
  18931. /* All GPIO Banks support the Lock mechanism */
  18932. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  18933. /******************************** I2C Instances *******************************/
  18934. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_NS) || \
  18935. ((INSTANCE) == I2C2_NS) || \
  18936. ((INSTANCE) == I2C3_NS) || \
  18937. ((INSTANCE) == I2C4_NS))
  18938. /****************** I2C Instances : wakeup capability from stop modes *********/
  18939. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  18940. /****************************** OPAMP Instances *******************************/
  18941. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1_NS) || \
  18942. ((INSTANCE) == OPAMP2_NS))
  18943. #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP12_COMMON_NS)
  18944. /******************************* OSPI Instances *******************************/
  18945. #define IS_OSPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OCTOSPI1_NS)
  18946. /******************************** OTFDEC Instances ****************************/
  18947. #define IS_OTFDEC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OTFDEC1_NS)
  18948. /******************************** OTFDEC Regions Instances ********************/
  18949. #define IS_OTFDEC_REGION_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OTFDEC1_REGION1_NS) || \
  18950. ((INSTANCE) == OTFDEC1_REGION2_NS) || \
  18951. ((INSTANCE) == OTFDEC1_REGION3_NS) || \
  18952. ((INSTANCE) == OTFDEC1_REGION4_NS))
  18953. /******************************** PKA Instances *******************************/
  18954. #define IS_PKA_ALL_INSTANCE(INSTANCE) ((INSTANCE) == PKA_NS)
  18955. /******************************* RNG Instances ********************************/
  18956. #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG_NS)
  18957. /****************************** RTC Instances *********************************/
  18958. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC_NS)
  18959. /******************************** SAI Instances *******************************/
  18960. #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A_NS) || \
  18961. ((INSTANCE) == SAI1_Block_B_NS) || \
  18962. ((INSTANCE) == SAI2_Block_A_NS) || \
  18963. ((INSTANCE) == SAI2_Block_B_NS))
  18964. /****************************** SDMMC Instances *******************************/
  18965. #define IS_SDMMC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SDMMC1_NS)
  18966. /****************************** SMBUS Instances *******************************/
  18967. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  18968. /******************************** SPI Instances *******************************/
  18969. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1_NS) || \
  18970. ((INSTANCE) == SPI2_NS) || \
  18971. ((INSTANCE) == SPI3_NS))
  18972. /****************** LPTIM Instances : All supported instances *****************/
  18973. #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1_NS) || \
  18974. ((INSTANCE) == LPTIM2_NS) || \
  18975. ((INSTANCE) == LPTIM3_NS))
  18976. #define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) ((INSTANCE) == LPTIM1_NS)
  18977. /****************** TIM Instances : All supported instances *******************/
  18978. #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18979. ((INSTANCE) == TIM2_NS) || \
  18980. ((INSTANCE) == TIM3_NS) || \
  18981. ((INSTANCE) == TIM4_NS) || \
  18982. ((INSTANCE) == TIM5_NS) || \
  18983. ((INSTANCE) == TIM6_NS) || \
  18984. ((INSTANCE) == TIM7_NS) || \
  18985. ((INSTANCE) == TIM8_NS) || \
  18986. ((INSTANCE) == TIM15_NS) || \
  18987. ((INSTANCE) == TIM16_NS) || \
  18988. ((INSTANCE) == TIM17_NS))
  18989. /****************** TIM Instances : supporting 32 bits counter ****************/
  18990. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2_NS) || \
  18991. ((INSTANCE) == TIM5_NS))
  18992. /****************** TIM Instances : supporting the break function *************/
  18993. #define IS_TIM_BREAK_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18994. ((INSTANCE) == TIM8_NS) || \
  18995. ((INSTANCE) == TIM15_NS) || \
  18996. ((INSTANCE) == TIM16_NS) || \
  18997. ((INSTANCE) == TIM17_NS))
  18998. /************** TIM Instances : supporting Break source selection *************/
  18999. #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19000. ((INSTANCE) == TIM8_NS) || \
  19001. ((INSTANCE) == TIM15_NS) || \
  19002. ((INSTANCE) == TIM16_NS) || \
  19003. ((INSTANCE) == TIM17_NS))
  19004. /****************** TIM Instances : supporting 2 break inputs *****************/
  19005. #define IS_TIM_BKIN2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19006. ((INSTANCE) == TIM8_NS))
  19007. /************* TIM Instances : at least 1 capture/compare channel *************/
  19008. #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19009. ((INSTANCE) == TIM2_NS) || \
  19010. ((INSTANCE) == TIM3_NS) || \
  19011. ((INSTANCE) == TIM4_NS) || \
  19012. ((INSTANCE) == TIM5_NS) || \
  19013. ((INSTANCE) == TIM8_NS) || \
  19014. ((INSTANCE) == TIM15_NS) || \
  19015. ((INSTANCE) == TIM16_NS) || \
  19016. ((INSTANCE) == TIM17_NS))
  19017. /************ TIM Instances : at least 2 capture/compare channels *************/
  19018. #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19019. ((INSTANCE) == TIM2_NS) || \
  19020. ((INSTANCE) == TIM3_NS) || \
  19021. ((INSTANCE) == TIM4_NS) || \
  19022. ((INSTANCE) == TIM5_NS) || \
  19023. ((INSTANCE) == TIM8_NS) || \
  19024. ((INSTANCE) == TIM15_NS))
  19025. /************ TIM Instances : at least 3 capture/compare channels *************/
  19026. #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19027. ((INSTANCE) == TIM2_NS) || \
  19028. ((INSTANCE) == TIM3_NS) || \
  19029. ((INSTANCE) == TIM4_NS) || \
  19030. ((INSTANCE) == TIM5_NS) || \
  19031. ((INSTANCE) == TIM8_NS))
  19032. /************ TIM Instances : at least 4 capture/compare channels *************/
  19033. #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19034. ((INSTANCE) == TIM2_NS) || \
  19035. ((INSTANCE) == TIM3_NS) || \
  19036. ((INSTANCE) == TIM4_NS) || \
  19037. ((INSTANCE) == TIM5_NS) || \
  19038. ((INSTANCE) == TIM8_NS))
  19039. /****************** TIM Instances : at least 5 capture/compare channels *******/
  19040. #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19041. ((INSTANCE) == TIM8_NS))
  19042. /****************** TIM Instances : at least 6 capture/compare channels *******/
  19043. #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19044. ((INSTANCE) == TIM8_NS))
  19045. /************ TIM Instances : DMA requests generation (TIMx_DIER.COMDE) *******/
  19046. #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19047. ((INSTANCE) == TIM8_NS) || \
  19048. ((INSTANCE) == TIM15_NS) || \
  19049. ((INSTANCE) == TIM16_NS) || \
  19050. ((INSTANCE) == TIM17_NS))
  19051. /****************** TIM Instances : DMA requests generation (TIMx_DIER.UDE) ***/
  19052. #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19053. ((INSTANCE) == TIM2_NS) || \
  19054. ((INSTANCE) == TIM3_NS) || \
  19055. ((INSTANCE) == TIM4_NS) || \
  19056. ((INSTANCE) == TIM5_NS) || \
  19057. ((INSTANCE) == TIM6_NS) || \
  19058. ((INSTANCE) == TIM7_NS) || \
  19059. ((INSTANCE) == TIM8_NS) || \
  19060. ((INSTANCE) == TIM15_NS) || \
  19061. ((INSTANCE) == TIM16_NS) || \
  19062. ((INSTANCE) == TIM17_NS))
  19063. /************ TIM Instances : DMA requests generation (TIMx_DIER.CCxDE) *******/
  19064. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19065. ((INSTANCE) == TIM2_NS) || \
  19066. ((INSTANCE) == TIM3_NS) || \
  19067. ((INSTANCE) == TIM4_NS) || \
  19068. ((INSTANCE) == TIM5_NS) || \
  19069. ((INSTANCE) == TIM8_NS) || \
  19070. ((INSTANCE) == TIM15_NS) || \
  19071. ((INSTANCE) == TIM16_NS) || \
  19072. ((INSTANCE) == TIM17_NS))
  19073. /******************** TIM Instances : DMA burst feature ***********************/
  19074. #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19075. ((INSTANCE) == TIM2_NS) || \
  19076. ((INSTANCE) == TIM3_NS) || \
  19077. ((INSTANCE) == TIM4_NS) || \
  19078. ((INSTANCE) == TIM5_NS) || \
  19079. ((INSTANCE) == TIM8_NS) || \
  19080. ((INSTANCE) == TIM15_NS) || \
  19081. ((INSTANCE) == TIM16_NS) || \
  19082. ((INSTANCE) == TIM17_NS))
  19083. /******************* TIM Instances : output(s) available **********************/
  19084. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  19085. ((((INSTANCE) == TIM1_NS) && \
  19086. (((CHANNEL) == TIM_CHANNEL_1) || \
  19087. ((CHANNEL) == TIM_CHANNEL_2) || \
  19088. ((CHANNEL) == TIM_CHANNEL_3) || \
  19089. ((CHANNEL) == TIM_CHANNEL_4) || \
  19090. ((CHANNEL) == TIM_CHANNEL_5) || \
  19091. ((CHANNEL) == TIM_CHANNEL_6))) \
  19092. || \
  19093. (((INSTANCE) == TIM2_NS) && \
  19094. (((CHANNEL) == TIM_CHANNEL_1) || \
  19095. ((CHANNEL) == TIM_CHANNEL_2) || \
  19096. ((CHANNEL) == TIM_CHANNEL_3) || \
  19097. ((CHANNEL) == TIM_CHANNEL_4))) \
  19098. || \
  19099. (((INSTANCE) == TIM3_NS) && \
  19100. (((CHANNEL) == TIM_CHANNEL_1) || \
  19101. ((CHANNEL) == TIM_CHANNEL_2) || \
  19102. ((CHANNEL) == TIM_CHANNEL_3) || \
  19103. ((CHANNEL) == TIM_CHANNEL_4))) \
  19104. || \
  19105. (((INSTANCE) == TIM4_NS) && \
  19106. (((CHANNEL) == TIM_CHANNEL_1) || \
  19107. ((CHANNEL) == TIM_CHANNEL_2) || \
  19108. ((CHANNEL) == TIM_CHANNEL_3) || \
  19109. ((CHANNEL) == TIM_CHANNEL_4))) \
  19110. || \
  19111. (((INSTANCE) == TIM5_NS) && \
  19112. (((CHANNEL) == TIM_CHANNEL_1) || \
  19113. ((CHANNEL) == TIM_CHANNEL_2) || \
  19114. ((CHANNEL) == TIM_CHANNEL_3) || \
  19115. ((CHANNEL) == TIM_CHANNEL_4))) \
  19116. || \
  19117. (((INSTANCE) == TIM8_NS) && \
  19118. (((CHANNEL) == TIM_CHANNEL_1) || \
  19119. ((CHANNEL) == TIM_CHANNEL_2) || \
  19120. ((CHANNEL) == TIM_CHANNEL_3) || \
  19121. ((CHANNEL) == TIM_CHANNEL_4) || \
  19122. ((CHANNEL) == TIM_CHANNEL_5) || \
  19123. ((CHANNEL) == TIM_CHANNEL_6))) \
  19124. || \
  19125. (((INSTANCE) == TIM15_NS) && \
  19126. (((CHANNEL) == TIM_CHANNEL_1) || \
  19127. ((CHANNEL) == TIM_CHANNEL_2))) \
  19128. || \
  19129. (((INSTANCE) == TIM16_NS) && \
  19130. (((CHANNEL) == TIM_CHANNEL_1))) \
  19131. || \
  19132. (((INSTANCE) == TIM17_NS) && \
  19133. (((CHANNEL) == TIM_CHANNEL_1))))
  19134. /****************** TIM Instances : supporting complementary output(s) ********/
  19135. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  19136. ((((INSTANCE) == TIM1_NS) && \
  19137. (((CHANNEL) == TIM_CHANNEL_1) || \
  19138. ((CHANNEL) == TIM_CHANNEL_2) || \
  19139. ((CHANNEL) == TIM_CHANNEL_3))) \
  19140. || \
  19141. (((INSTANCE) == TIM8_NS) && \
  19142. (((CHANNEL) == TIM_CHANNEL_1) || \
  19143. ((CHANNEL) == TIM_CHANNEL_2) || \
  19144. ((CHANNEL) == TIM_CHANNEL_3))) \
  19145. || \
  19146. (((INSTANCE) == TIM15_NS) && \
  19147. ((CHANNEL) == TIM_CHANNEL_1)) \
  19148. || \
  19149. (((INSTANCE) == TIM16_NS) && \
  19150. ((CHANNEL) == TIM_CHANNEL_1)) \
  19151. || \
  19152. (((INSTANCE) == TIM17_NS) && \
  19153. ((CHANNEL) == TIM_CHANNEL_1)))
  19154. /****************** TIM Instances : supporting clock division *****************/
  19155. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19156. ((INSTANCE) == TIM2_NS) || \
  19157. ((INSTANCE) == TIM3_NS) || \
  19158. ((INSTANCE) == TIM4_NS) || \
  19159. ((INSTANCE) == TIM5_NS) || \
  19160. ((INSTANCE) == TIM8_NS) || \
  19161. ((INSTANCE) == TIM15_NS) || \
  19162. ((INSTANCE) == TIM16_NS) || \
  19163. ((INSTANCE) == TIM17_NS))
  19164. /****** TIM Instances : supporting external clock mode 1 for ETRF input *******/
  19165. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19166. ((INSTANCE) == TIM2_NS) || \
  19167. ((INSTANCE) == TIM3_NS) || \
  19168. ((INSTANCE) == TIM4_NS) || \
  19169. ((INSTANCE) == TIM5_NS) || \
  19170. ((INSTANCE) == TIM8_NS) || \
  19171. ((INSTANCE) == TIM15_NS))
  19172. /****** TIM Instances : supporting external clock mode 2 for ETRF input *******/
  19173. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19174. ((INSTANCE) == TIM2_NS) || \
  19175. ((INSTANCE) == TIM3_NS) || \
  19176. ((INSTANCE) == TIM4_NS) || \
  19177. ((INSTANCE) == TIM5_NS) || \
  19178. ((INSTANCE) == TIM8_NS))
  19179. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  19180. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19181. ((INSTANCE) == TIM2_NS) || \
  19182. ((INSTANCE) == TIM3_NS) || \
  19183. ((INSTANCE) == TIM4_NS) || \
  19184. ((INSTANCE) == TIM5_NS) || \
  19185. ((INSTANCE) == TIM8_NS) || \
  19186. ((INSTANCE) == TIM15_NS))
  19187. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  19188. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19189. ((INSTANCE) == TIM2_NS) || \
  19190. ((INSTANCE) == TIM3_NS) || \
  19191. ((INSTANCE) == TIM4_NS) || \
  19192. ((INSTANCE) == TIM5_NS) || \
  19193. ((INSTANCE) == TIM8_NS) || \
  19194. ((INSTANCE) == TIM15_NS))
  19195. /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
  19196. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19197. ((INSTANCE) == TIM8_NS))
  19198. /****************** TIM Instances : supporting commutation event generation ***/
  19199. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19200. ((INSTANCE) == TIM8_NS) || \
  19201. ((INSTANCE) == TIM15_NS) || \
  19202. ((INSTANCE) == TIM16_NS) || \
  19203. ((INSTANCE) == TIM17_NS))
  19204. /****************** TIM Instances : supporting counting mode selection ********/
  19205. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19206. ((INSTANCE) == TIM2_NS) || \
  19207. ((INSTANCE) == TIM3_NS) || \
  19208. ((INSTANCE) == TIM4_NS) || \
  19209. ((INSTANCE) == TIM5_NS) || \
  19210. ((INSTANCE) == TIM8_NS))
  19211. /****************** TIM Instances : supporting encoder interface **************/
  19212. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19213. ((INSTANCE) == TIM2_NS) || \
  19214. ((INSTANCE) == TIM3_NS) || \
  19215. ((INSTANCE) == TIM4_NS) || \
  19216. ((INSTANCE) == TIM5_NS) || \
  19217. ((INSTANCE) == TIM8_NS))
  19218. /****************** TIM Instances : supporting Hall sensor interface **********/
  19219. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19220. ((INSTANCE) == TIM2_NS) || \
  19221. ((INSTANCE) == TIM3_NS) || \
  19222. ((INSTANCE) == TIM4_NS) || \
  19223. ((INSTANCE) == TIM5_NS))
  19224. /**************** TIM Instances : external trigger input available ************/
  19225. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19226. ((INSTANCE) == TIM2_NS) || \
  19227. ((INSTANCE) == TIM3_NS) || \
  19228. ((INSTANCE) == TIM4_NS) || \
  19229. ((INSTANCE) == TIM5_NS) || \
  19230. ((INSTANCE) == TIM8_NS))
  19231. /************* TIM Instances : supporting ETR source selection ***************/
  19232. #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19233. ((INSTANCE) == TIM2_NS) || \
  19234. ((INSTANCE) == TIM3_NS) || \
  19235. ((INSTANCE) == TIM8_NS))
  19236. /****** TIM Instances : Master mode available (TIMx_CR2.MMS available )********/
  19237. #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19238. ((INSTANCE) == TIM2_NS) || \
  19239. ((INSTANCE) == TIM3_NS) || \
  19240. ((INSTANCE) == TIM4_NS) || \
  19241. ((INSTANCE) == TIM5_NS) || \
  19242. ((INSTANCE) == TIM6_NS) || \
  19243. ((INSTANCE) == TIM7_NS) || \
  19244. ((INSTANCE) == TIM8_NS) || \
  19245. ((INSTANCE) == TIM15_NS))
  19246. /*********** TIM Instances : Slave mode available (TIMx_SMCR available )*******/
  19247. #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19248. ((INSTANCE) == TIM2_NS) || \
  19249. ((INSTANCE) == TIM3_NS) || \
  19250. ((INSTANCE) == TIM4_NS) || \
  19251. ((INSTANCE) == TIM5_NS) || \
  19252. ((INSTANCE) == TIM8_NS) || \
  19253. ((INSTANCE) == TIM15_NS))
  19254. /****************** TIM Instances : supporting OCxREF clear *******************/
  19255. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19256. ((INSTANCE) == TIM2_NS) || \
  19257. ((INSTANCE) == TIM3_NS) || \
  19258. ((INSTANCE) == TIM4_NS) || \
  19259. ((INSTANCE) == TIM5_NS) || \
  19260. ((INSTANCE) == TIM8_NS))
  19261. /****************** TIM Instances : remapping capability **********************/
  19262. #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19263. ((INSTANCE) == TIM2_NS) || \
  19264. ((INSTANCE) == TIM3_NS) || \
  19265. ((INSTANCE) == TIM8_NS) || \
  19266. ((INSTANCE) == TIM15_NS) || \
  19267. ((INSTANCE) == TIM16_NS) || \
  19268. ((INSTANCE) == TIM17_NS))
  19269. /****************** TIM Instances : supporting repetition counter *************/
  19270. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19271. ((INSTANCE) == TIM8_NS) || \
  19272. ((INSTANCE) == TIM15_NS) || \
  19273. ((INSTANCE) == TIM16_NS) || \
  19274. ((INSTANCE) == TIM17_NS))
  19275. /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
  19276. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19277. ((INSTANCE) == TIM8_NS))
  19278. /******************* TIM Instances : Timer input XOR function *****************/
  19279. #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19280. ((INSTANCE) == TIM2_NS) || \
  19281. ((INSTANCE) == TIM3_NS) || \
  19282. ((INSTANCE) == TIM4_NS) || \
  19283. ((INSTANCE) == TIM5_NS) || \
  19284. ((INSTANCE) == TIM8_NS) || \
  19285. ((INSTANCE) == TIM15_NS))
  19286. /****************** TIM Instances : Advanced timer instances *******************/
  19287. #define IS_TIM_ADVANCED_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  19288. ((INSTANCE) == TIM8_NS))
  19289. /****************************** TSC Instances *********************************/
  19290. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC_NS)
  19291. /******************** USART Instances : Synchronous mode **********************/
  19292. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19293. ((INSTANCE) == USART2_NS) || \
  19294. ((INSTANCE) == USART3_NS))
  19295. /******************** UART Instances : Asynchronous mode **********************/
  19296. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19297. ((INSTANCE) == USART2_NS) || \
  19298. ((INSTANCE) == USART3_NS) || \
  19299. ((INSTANCE) == UART4_NS) || \
  19300. ((INSTANCE) == UART5_NS))
  19301. /*********************** UART Instances : FIFO mode ***************************/
  19302. #define IS_UART_FIFO_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19303. ((INSTANCE) == USART2_NS) || \
  19304. ((INSTANCE) == USART3_NS) || \
  19305. ((INSTANCE) == UART4_NS) || \
  19306. ((INSTANCE) == UART5_NS) || \
  19307. ((INSTANCE) == LPUART1_NS))
  19308. /*********************** UART Instances : SPI Slave mode **********************/
  19309. #define IS_UART_SPI_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19310. ((INSTANCE) == USART2_NS) || \
  19311. ((INSTANCE) == USART3_NS))
  19312. /****************** UART Instances : Auto Baud Rate detection ****************/
  19313. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19314. ((INSTANCE) == USART2_NS) || \
  19315. ((INSTANCE) == USART3_NS) || \
  19316. ((INSTANCE) == UART4_NS) || \
  19317. ((INSTANCE) == UART5_NS))
  19318. /****************** UART Instances : Driver Enable *****************/
  19319. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19320. ((INSTANCE) == USART2_NS) || \
  19321. ((INSTANCE) == USART3_NS) || \
  19322. ((INSTANCE) == UART4_NS) || \
  19323. ((INSTANCE) == UART5_NS) || \
  19324. ((INSTANCE) == LPUART1_NS))
  19325. /******************** UART Instances : Half-Duplex mode **********************/
  19326. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19327. ((INSTANCE) == USART2_NS) || \
  19328. ((INSTANCE) == USART3_NS) || \
  19329. ((INSTANCE) == UART4_NS) || \
  19330. ((INSTANCE) == UART5_NS) || \
  19331. ((INSTANCE) == LPUART1_NS))
  19332. /****************** UART Instances : Hardware Flow control ********************/
  19333. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19334. ((INSTANCE) == USART2_NS) || \
  19335. ((INSTANCE) == USART3_NS) || \
  19336. ((INSTANCE) == UART4_NS) || \
  19337. ((INSTANCE) == UART5_NS) || \
  19338. ((INSTANCE) == LPUART1_NS))
  19339. /******************** UART Instances : LIN mode **********************/
  19340. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19341. ((INSTANCE) == USART2_NS) || \
  19342. ((INSTANCE) == USART3_NS) || \
  19343. ((INSTANCE) == UART4_NS) || \
  19344. ((INSTANCE) == UART5_NS))
  19345. /******************** UART Instances : Wake-up from Stop mode **********************/
  19346. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19347. ((INSTANCE) == USART2_NS) || \
  19348. ((INSTANCE) == USART3_NS) || \
  19349. ((INSTANCE) == UART4_NS) || \
  19350. ((INSTANCE) == UART5_NS) || \
  19351. ((INSTANCE) == LPUART1_NS))
  19352. /*********************** UART Instances : IRDA mode ***************************/
  19353. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19354. ((INSTANCE) == USART2_NS) || \
  19355. ((INSTANCE) == USART3_NS) || \
  19356. ((INSTANCE) == UART4_NS) || \
  19357. ((INSTANCE) == UART5_NS))
  19358. /********************* USART Instances : Smard card mode ***********************/
  19359. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  19360. ((INSTANCE) == USART2_NS) || \
  19361. ((INSTANCE) == USART3_NS))
  19362. /******************** LPUART Instance *****************************************/
  19363. #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1_NS)
  19364. /****************************** IWDG Instances ********************************/
  19365. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG_NS)
  19366. /****************************** WWDG Instances ********************************/
  19367. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG_NS)
  19368. /****************************** UCPD Instances ********************************/
  19369. #define IS_UCPD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == UCPD1_NS)
  19370. /******************************* USB Instances ********************************/
  19371. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_NS)
  19372. #define IS_PCD_ALL_INSTANCE IS_USB_ALL_INSTANCE
  19373. #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */
  19374. /** @} */ /* End of group STM32L5xx_Peripheral_Exported_macros */
  19375. /** @} */ /* End of group STM32L562xx */
  19376. /** @} */ /* End of group ST */
  19377. #ifdef __cplusplus
  19378. }
  19379. #endif
  19380. #endif /* STM32L562xx_H */
  19381. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/