stm32l552xx.h 1.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397
  1. /**
  2. ******************************************************************************
  3. * @file stm32l552xx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS STM32L552xx 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 STM32L552xx_H
  26. #define STM32L552xx_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /** @addtogroup ST
  31. * @{
  32. */
  33. /** @addtogroup STM32L552xx
  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. /* =========================================== STM32L552xx 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. RNG_IRQn = 94, /*!< RNG global interrupt */
  151. FPU_IRQn = 95, /*!< FPU global interrupt */
  152. HASH_IRQn = 96, /*!< HASH global interrupt */
  153. LPTIM3_IRQn = 98, /*!< LPTIM3 global interrupt */
  154. SPI3_IRQn = 99, /*!< SPI3 global interrupt */
  155. I2C4_EV_IRQn = 100, /*!< I2C4 Event interrupt */
  156. I2C4_ER_IRQn = 101, /*!< I2C4 Error interrupt */
  157. DFSDM1_FLT0_IRQn = 102, /*!< DFSDM1 Filter 0 global interrupt */
  158. DFSDM1_FLT1_IRQn = 103, /*!< DFSDM1 Filter 1 global interrupt */
  159. DFSDM1_FLT2_IRQn = 104, /*!< DFSDM1 Filter 2 global interrupt */
  160. DFSDM1_FLT3_IRQn = 105, /*!< DFSDM1 Filter 3 global interrupt */
  161. UCPD1_IRQn = 106, /*!< UCPD1 global interrupt */
  162. ICACHE_IRQn = 107, /*!< Instruction cache global interrupt */
  163. } IRQn_Type;
  164. /* =========================================================================================================================== */
  165. /* ================ Processor and Core Peripheral Section ================ */
  166. /* =========================================================================================================================== */
  167. /* ------- Start of section using anonymous unions and disabling warnings ------- */
  168. #if defined (__CC_ARM)
  169. #pragma push
  170. #pragma anon_unions
  171. #elif defined (__ICCARM__)
  172. #pragma language=extended
  173. #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  174. #pragma clang diagnostic push
  175. #pragma clang diagnostic ignored "-Wc11-extensions"
  176. #pragma clang diagnostic ignored "-Wreserved-id-macro"
  177. #elif defined (__GNUC__)
  178. /* anonymous unions are enabled by default */
  179. #elif defined (__TMS470__)
  180. /* anonymous unions are enabled by default */
  181. #elif defined (__TASKING__)
  182. #pragma warning 586
  183. #elif defined (__CSMC__)
  184. /* anonymous unions are enabled by default */
  185. #else
  186. #warning Not supported compiler type
  187. #endif
  188. /* -------- Configuration of the Cortex-M33 Processor and Core Peripherals ------ */
  189. #define __CM33_REV 0x0000U /* Core revision r0p1 */
  190. #define __SAUREGION_PRESENT 1U /* SAU regions present */
  191. #define __MPU_PRESENT 1U /* MPU present */
  192. #define __VTOR_PRESENT 1U /* VTOR present */
  193. #define __NVIC_PRIO_BITS 3U /* Number of Bits used for Priority Levels */
  194. #define __Vendor_SysTickConfig 0U /* Set to 1 if different SysTick Config is used */
  195. #define __FPU_PRESENT 1U /* FPU present */
  196. #define __DSP_PRESENT 1U /* DSP extension present */
  197. /** @} */ /* End of group Configuration_of_CMSIS */
  198. #include <core_cm33.h> /*!< ARM Cortex-M33 processor and core peripherals */
  199. #include "system_stm32l5xx.h" /*!< STM32L5xx System */
  200. /* =========================================================================================================================== */
  201. /* ================ Device Specific Peripheral Section ================ */
  202. /* =========================================================================================================================== */
  203. /** @addtogroup STM32L5xx_peripherals
  204. * @{
  205. */
  206. /**
  207. * @brief Analog to Digital Converter
  208. */
  209. typedef struct
  210. {
  211. __IO uint32_t ISR; /*!< ADC interrupt and status register, Address offset: 0x00 */
  212. __IO uint32_t IER; /*!< ADC interrupt enable register, Address offset: 0x04 */
  213. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  214. __IO uint32_t CFGR; /*!< ADC configuration register 1, Address offset: 0x0C */
  215. __IO uint32_t CFGR2; /*!< ADC configuration register 2, Address offset: 0x10 */
  216. __IO uint32_t SMPR1; /*!< ADC sampling time register 1, Address offset: 0x14 */
  217. __IO uint32_t SMPR2; /*!< ADC sampling time register 2, Address offset: 0x18 */
  218. uint32_t RESERVED1; /*!< Reserved, 0x1C */
  219. __IO uint32_t TR1; /*!< ADC analog watchdog 1 threshold register, Address offset: 0x20 */
  220. __IO uint32_t TR2; /*!< ADC analog watchdog 2 threshold register, Address offset: 0x24 */
  221. __IO uint32_t TR3; /*!< ADC analog watchdog 3 threshold register, Address offset: 0x28 */
  222. uint32_t RESERVED2; /*!< Reserved, 0x2C */
  223. __IO uint32_t SQR1; /*!< ADC group regular sequencer register 1, Address offset: 0x30 */
  224. __IO uint32_t SQR2; /*!< ADC group regular sequencer register 2, Address offset: 0x34 */
  225. __IO uint32_t SQR3; /*!< ADC group regular sequencer register 3, Address offset: 0x38 */
  226. __IO uint32_t SQR4; /*!< ADC group regular sequencer register 4, Address offset: 0x3C */
  227. __IO uint32_t DR; /*!< ADC group regular data register, Address offset: 0x40 */
  228. uint32_t RESERVED3; /*!< Reserved, 0x44 */
  229. uint32_t RESERVED4; /*!< Reserved, 0x48 */
  230. __IO uint32_t JSQR; /*!< ADC group injected sequencer register, Address offset: 0x4C */
  231. uint32_t RESERVED5[4]; /*!< Reserved, 0x50 - 0x5C */
  232. __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
  233. __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
  234. __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
  235. __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
  236. uint32_t RESERVED6[4]; /*!< Reserved, 0x70 - 0x7C */
  237. __IO uint32_t JDR1; /*!< ADC group injected rank 1 data register, Address offset: 0x80 */
  238. __IO uint32_t JDR2; /*!< ADC group injected rank 2 data register, Address offset: 0x84 */
  239. __IO uint32_t JDR3; /*!< ADC group injected rank 3 data register, Address offset: 0x88 */
  240. __IO uint32_t JDR4; /*!< ADC group injected rank 4 data register, Address offset: 0x8C */
  241. uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
  242. __IO uint32_t AWD2CR; /*!< ADC analog watchdog 1 configuration register, Address offset: 0xA0 */
  243. __IO uint32_t AWD3CR; /*!< ADC analog watchdog 3 Configuration Register, Address offset: 0xA4 */
  244. uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
  245. uint32_t RESERVED9; /*!< Reserved, 0x0AC */
  246. __IO uint32_t DIFSEL; /*!< ADC differential mode selection register, Address offset: 0xB0 */
  247. __IO uint32_t CALFACT; /*!< ADC calibration factors, Address offset: 0xB4 */
  248. } ADC_TypeDef;
  249. typedef struct
  250. {
  251. __IO uint32_t CSR; /*!< ADC common status register, Address offset: ADC1 base address + 0x300 */
  252. uint32_t RESERVED; /*!< Reserved, Address offset: ADC1 base address + 0x304 */
  253. __IO uint32_t CCR; /*!< ADC common configuration register, Address offset: ADC1 base address + 0x308 */
  254. __IO uint32_t CDR; /*!< ADC common group regular data register Address offset: ADC1 base address + 0x30C */
  255. } ADC_Common_TypeDef;
  256. /**
  257. * @brief FD Controller Area Network
  258. */
  259. typedef struct
  260. {
  261. __IO uint32_t CREL; /*!< FDCAN Core Release register, Address offset: 0x000 */
  262. __IO uint32_t ENDN; /*!< FDCAN Endian register, Address offset: 0x004 */
  263. uint32_t RESERVED1; /*!< Reserved, 0x008 */
  264. __IO uint32_t DBTP; /*!< FDCAN Data Bit Timing & Prescaler register, Address offset: 0x00C */
  265. __IO uint32_t TEST; /*!< FDCAN Test register, Address offset: 0x010 */
  266. __IO uint32_t RWD; /*!< FDCAN RAM Watchdog register, Address offset: 0x014 */
  267. __IO uint32_t CCCR; /*!< FDCAN CC Control register, Address offset: 0x018 */
  268. __IO uint32_t NBTP; /*!< FDCAN Nominal Bit Timing & Prescaler register, Address offset: 0x01C */
  269. __IO uint32_t TSCC; /*!< FDCAN Timestamp Counter Configuration register, Address offset: 0x020 */
  270. __IO uint32_t TSCV; /*!< FDCAN Timestamp Counter Value register, Address offset: 0x024 */
  271. __IO uint32_t TOCC; /*!< FDCAN Timeout Counter Configuration register, Address offset: 0x028 */
  272. __IO uint32_t TOCV; /*!< FDCAN Timeout Counter Value register, Address offset: 0x02C */
  273. uint32_t RESERVED2[4]; /*!< Reserved, 0x030 - 0x03C */
  274. __IO uint32_t ECR; /*!< FDCAN Error Counter register, Address offset: 0x040 */
  275. __IO uint32_t PSR; /*!< FDCAN Protocol Status register, Address offset: 0x044 */
  276. __IO uint32_t TDCR; /*!< FDCAN Transmitter Delay Compensation register, Address offset: 0x048 */
  277. uint32_t RESERVED3; /*!< Reserved, 0x04C */
  278. __IO uint32_t IR; /*!< FDCAN Interrupt register, Address offset: 0x050 */
  279. __IO uint32_t IE; /*!< FDCAN Interrupt Enable register, Address offset: 0x054 */
  280. __IO uint32_t ILS; /*!< FDCAN Interrupt Line Select register, Address offset: 0x058 */
  281. __IO uint32_t ILE; /*!< FDCAN Interrupt Line Enable register, Address offset: 0x05C */
  282. uint32_t RESERVED4[8]; /*!< Reserved, 0x060 - 0x07C */
  283. __IO uint32_t RXGFC; /*!< FDCAN Global Filter Configuration register, Address offset: 0x080 */
  284. __IO uint32_t XIDAM; /*!< FDCAN Extended ID AND Mask register, Address offset: 0x084 */
  285. __IO uint32_t HPMS; /*!< FDCAN High Priority Message Status register, Address offset: 0x088 */
  286. uint32_t RESERVED5; /*!< Reserved, 0x08C */
  287. __IO uint32_t RXF0S; /*!< FDCAN Rx FIFO 0 Status register, Address offset: 0x090 */
  288. __IO uint32_t RXF0A; /*!< FDCAN Rx FIFO 0 Acknowledge register, Address offset: 0x094 */
  289. __IO uint32_t RXF1S; /*!< FDCAN Rx FIFO 1 Status register, Address offset: 0x098 */
  290. __IO uint32_t RXF1A; /*!< FDCAN Rx FIFO 1 Acknowledge register, Address offset: 0x09C */
  291. uint32_t RESERVED6[8]; /*!< Reserved, 0x0A0 - 0x0BC */
  292. __IO uint32_t TXBC; /*!< FDCAN Tx Buffer Configuration register, Address offset: 0x0C0 */
  293. __IO uint32_t TXFQS; /*!< FDCAN Tx FIFO/Queue Status register, Address offset: 0x0C4 */
  294. __IO uint32_t TXBRP; /*!< FDCAN Tx Buffer Request Pending register, Address offset: 0x0C8 */
  295. __IO uint32_t TXBAR; /*!< FDCAN Tx Buffer Add Request register, Address offset: 0x0CC */
  296. __IO uint32_t TXBCR; /*!< FDCAN Tx Buffer Cancellation Request register, Address offset: 0x0D0 */
  297. __IO uint32_t TXBTO; /*!< FDCAN Tx Buffer Transmission Occurred register, Address offset: 0x0D4 */
  298. __IO uint32_t TXBCF; /*!< FDCAN Tx Buffer Cancellation Finished register, Address offset: 0x0D8 */
  299. __IO uint32_t TXBTIE; /*!< FDCAN Tx Buffer Transmission Interrupt Enable register, Address offset: 0x0DC */
  300. __IO uint32_t TXBCIE; /*!< FDCAN Tx Buffer Cancellation Finished Interrupt Enable register, Address offset: 0x0E0 */
  301. __IO uint32_t TXEFS; /*!< FDCAN Tx Event FIFO Status register, Address offset: 0x0E4 */
  302. __IO uint32_t TXEFA; /*!< FDCAN Tx Event FIFO Acknowledge register, Address offset: 0x0E8 */
  303. } FDCAN_GlobalTypeDef;
  304. /**
  305. * @brief FD Controller Area Network Configuration
  306. */
  307. typedef struct
  308. {
  309. __IO uint32_t CKDIV; /*!< FDCAN clock divider register, Address offset: 0x100 + 0x000 */
  310. uint32_t RESERVED1[128];/*!< Reserved, 0x100 + 0x004 - 0x100 + 0x200 */
  311. __IO uint32_t OPTR; /*!< FDCAN option register, Address offset: 0x100 + 0x204 */
  312. } FDCAN_Config_TypeDef;
  313. /**
  314. * @brief CRC calculation unit
  315. */
  316. typedef struct
  317. {
  318. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  319. __IO uint32_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  320. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  321. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  322. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  323. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  324. } CRC_TypeDef;
  325. /**
  326. * @brief Clock Recovery System
  327. */
  328. typedef struct
  329. {
  330. __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */
  331. __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */
  332. __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */
  333. __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */
  334. } CRS_TypeDef;
  335. /**
  336. * @brief Comparator
  337. */
  338. typedef struct
  339. {
  340. __IO uint32_t CSR; /*!< COMP control and status register, Address offset: 0x00 */
  341. } COMP_TypeDef;
  342. typedef struct
  343. {
  344. __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  345. } COMP_Common_TypeDef;
  346. /**
  347. * @brief Digital to Analog Converter
  348. */
  349. typedef struct
  350. {
  351. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  352. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  353. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  354. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  355. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  356. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  357. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  358. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  359. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  360. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  361. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  362. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  363. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  364. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  365. __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */
  366. __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */
  367. __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */
  368. __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */
  369. __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */
  370. __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */
  371. } DAC_TypeDef;
  372. /**
  373. * @brief DFSDM module registers
  374. */
  375. typedef struct
  376. {
  377. __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */
  378. __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */
  379. __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */
  380. __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */
  381. __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */
  382. __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */
  383. __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */
  384. __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */
  385. __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */
  386. __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */
  387. __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */
  388. __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */
  389. __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */
  390. __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */
  391. __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */
  392. } DFSDM_Filter_TypeDef;
  393. /**
  394. * @brief DFSDM channel configuration registers
  395. */
  396. typedef struct
  397. {
  398. __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */
  399. __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */
  400. __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and
  401. short circuit detector register, Address offset: 0x08 */
  402. __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */
  403. __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */
  404. __IO uint32_t CHDLYR; /*!< DFSDM channel delay register, Address offset: 0x14 */
  405. } DFSDM_Channel_TypeDef;
  406. /**
  407. * @brief Debug MCU - TODO review for STM32L5 to be done
  408. */
  409. typedef struct
  410. {
  411. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  412. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  413. __IO uint32_t APB1FZR1; /*!< Debug MCU APB1 freeze register 1, Address offset: 0x08 */
  414. __IO uint32_t APB1FZR2; /*!< Debug MCU APB1 freeze register 2, Address offset: 0x0C */
  415. __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x10 */
  416. } DBGMCU_TypeDef;
  417. /**
  418. * @brief DMA Controller
  419. */
  420. typedef struct
  421. {
  422. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  423. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  424. } DMA_TypeDef;
  425. typedef struct
  426. {
  427. __IO uint32_t CCR; /*!< DMA channel x configuration register, Address offset: 0x08 + (x * 0x14) */
  428. __IO uint32_t CNDTR; /*!< DMA channel x number of data register, Address offset: 0x0C + (x * 0x14) */
  429. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register, Address offset: 0x10 + (x * 0x14) */
  430. __IO uint32_t CM0AR; /*!< DMA channel x memory 0 address register, Address offset: 0x14 + (x * 0x14) */
  431. __IO uint32_t CM1AR; /*!< DMA channel x memory 1 address register, Address offset: 0x18 + (x * 0x14) */
  432. } DMA_Channel_TypeDef;
  433. /**
  434. * @brief DMA Multiplexer
  435. */
  436. typedef struct
  437. {
  438. __IO uint32_t CCR; /*!< DMA Multiplexer Channel x Control Register Address offset: 0x0004 * (channel x) */
  439. } DMAMUX_Channel_TypeDef;
  440. typedef struct
  441. {
  442. __IO uint32_t CSR; /*!< DMA Channel Status Register Address offset: 0x0080 */
  443. __IO uint32_t CFR; /*!< DMA Channel Clear Flag Register Address offset: 0x0084 */
  444. } DMAMUX_ChannelStatus_TypeDef;
  445. typedef struct
  446. {
  447. __IO uint32_t RGCR; /*!< DMA Request Generator x Control Register Address offset: 0x0100 + 0x0004 * (Req Gen x) */
  448. } DMAMUX_RequestGen_TypeDef;
  449. typedef struct
  450. {
  451. __IO uint32_t RGSR; /*!< DMA Request Generator Status Register Address offset: 0x0140 */
  452. __IO uint32_t RGCFR; /*!< DMA Request Generator Clear Flag Register Address offset: 0x0144 */
  453. } DMAMUX_RequestGenStatus_TypeDef;
  454. /**
  455. * @brief Asynch Interrupt/Event Controller (EXTI)
  456. */
  457. typedef struct
  458. {
  459. __IO uint32_t RTSR1; /*!< EXTI Rising Trigger Selection Register 1, Address offset: 0x00 */
  460. __IO uint32_t FTSR1; /*!< EXTI Falling Trigger Selection Register 1, Address offset: 0x04 */
  461. __IO uint32_t SWIER1; /*!< EXTI Software Interrupt event Register 1, Address offset: 0x08 */
  462. __IO uint32_t RPR1; /*!< EXTI Rising Pending Register 1, Address offset: 0x0C */
  463. __IO uint32_t FPR1; /*!< EXTI Falling Pending Register 1, Address offset: 0x10 */
  464. __IO uint32_t SECCFGR1; /*!< EXTI Security Configuration Register 1, Address offset: 0x14 */
  465. __IO uint32_t PRIVCFGR1; /*!< EXTI Privilege Configuration Register 1, Address offset: 0x18 */
  466. uint32_t RESERVED1; /*!< Reserved 1, 0x1C */
  467. __IO uint32_t RTSR2; /*!< EXTI Rising Trigger Selection Register 2, Address offset: 0x20 */
  468. __IO uint32_t FTSR2; /*!< EXTI Falling Trigger Selection Register 2, Address offset: 0x24 */
  469. __IO uint32_t SWIER2; /*!< EXTI Software Interrupt event Register 2, Address offset: 0x28 */
  470. __IO uint32_t RPR2; /*!< EXTI Rising Pending Register 2, Address offset: 0x2C */
  471. __IO uint32_t FPR2; /*!< EXTI Falling Pending Register 2, Address offset: 0x30 */
  472. __IO uint32_t SECCFGR2; /*!< EXTI Security Configuration Register 2, Address offset: 0x34 */
  473. __IO uint32_t PRIVCFGR2; /*!< EXTI Privilege Configuration Register 2, Address offset: 0x38 */
  474. uint32_t RESERVED2[9]; /*!< Reserved 2, 0x3C -- 0x5C */
  475. __IO uint32_t EXTICR[4]; /*!< EXTI External Interrupt Configuration Register, 0x60 -- 0x6C */
  476. __IO uint32_t LOCKR; /*!< EXTI Lock Register, Address offset: 0x70 */
  477. uint32_t RESERVED3[3]; /*!< Reserved 3, 0x74 -- 0x7C */
  478. __IO uint32_t IMR1; /*!< EXTI Interrupt Mask Register 1, Address offset: 0x80 */
  479. __IO uint32_t EMR1; /*!< EXTI Event Mask Register 1, Address offset: 0x84 */
  480. uint32_t RESERVED4[2]; /*!< Reserved 4, 0x88 -- 0x8C */
  481. __IO uint32_t IMR2; /*!< EXTI Interrupt Mask Register 2, Address offset: 0x90 */
  482. __IO uint32_t EMR2; /*!< EXTI Event Mask Register 2, Address offset: 0x94 */
  483. } EXTI_TypeDef;
  484. /**
  485. * @brief FLASH Registers
  486. */
  487. typedef struct
  488. {
  489. __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
  490. __IO uint32_t PDKEYR; /*!< FLASH power down key register, Address offset: 0x04 */
  491. __IO uint32_t NSKEYR; /*!< FLASH non-secure key register, Address offset: 0x08 */
  492. __IO uint32_t SECKEYR; /*!< FLASH secure key register, Address offset: 0x0C */
  493. __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x10 */
  494. __IO uint32_t LVEKEYR; /*!< FLASH LVE key register, Address offset: 0x14 */
  495. __IO uint32_t RESERVED1[2]; /*!< Reserved1, Address offset: 0x18-0x1C */
  496. __IO uint32_t NSSR; /*!< FLASH non-secure status register, Address offset: 0x20 */
  497. __IO uint32_t SECSR; /*!< FLASH secure status register, Address offset: 0x24 */
  498. __IO uint32_t NSCR; /*!< FLASH non-secure control register, Address offset: 0x28 */
  499. __IO uint32_t SECCR; /*!< FLASH secure control register, Address offset: 0x2C */
  500. __IO uint32_t ECCR; /*!< FLASH ECC register, Address offset: 0x30 */
  501. __IO uint32_t RESERVED2[3]; /*!< Reserved2, Address offset: 0x34-0x3C */
  502. __IO uint32_t OPTR; /*!< FLASH option control register, Address offset: 0x40 */
  503. __IO uint32_t NSBOOTADD0R; /*!< FLASH non-secure boot address 0 register, Address offset: 0x44 */
  504. __IO uint32_t NSBOOTADD1R; /*!< FLASH non-secure boot address 1 register, Address offset: 0x48 */
  505. __IO uint32_t SECBOOTADD0R; /*!< FLASH secure boot address 0 register, Address offset: 0x4C */
  506. __IO uint32_t SECWM1R1; /*!< FLASH watermark-based secure register 1 bank 1, Address offset: 0x50 */
  507. __IO uint32_t SECWM1R2; /*!< FLASH watermark-based secure register 2 bank 1, Address offset: 0x54 */
  508. __IO uint32_t WRP1AR; /*!< FLASH WRP area A register bank 1, Address offset: 0x58 */
  509. __IO uint32_t WRP1BR; /*!< FLASH WRP area B register bank 1, Address offset: 0x5C */
  510. __IO uint32_t SECWM2R1; /*!< FLASH watermark-based secure register 1 bank 2, Address offset: 0x60 */
  511. __IO uint32_t SECWM2R2; /*!< FLASH watermark-based secure register 2 bank 2, Address offset: 0x64 */
  512. __IO uint32_t WRP2AR; /*!< FLASH WRP area A register bank 2, Address offset: 0x68 */
  513. __IO uint32_t WRP2BR; /*!< FLASH WRP area B register bank 2, Address offset: 0x6C */
  514. __IO uint32_t RESERVED3[4]; /*!< Reserved3, Address offset: 0x70-0x7C */
  515. __IO uint32_t SECBB1R1; /*!< FLASH block-based secure bank 1, Address offset: 0x80 */
  516. __IO uint32_t SECBB1R2; /*!< FLASH block-based secure bank 1, Address offset: 0x84 */
  517. __IO uint32_t SECBB1R3; /*!< FLASH block-based secure bank 1, Address offset: 0x88 */
  518. __IO uint32_t SECBB1R4; /*!< FLASH block-based secure bank 1, Address offset: 0x8C */
  519. __IO uint32_t RESERVED4[4]; /*!< Reserved4, Address offset: 0x90-0x9C */
  520. __IO uint32_t SECBB2R1; /*!< FLASH block-based secure bank 2, Address offset: 0xA0 */
  521. __IO uint32_t SECBB2R2; /*!< FLASH block-based secure bank 2, Address offset: 0xA4 */
  522. __IO uint32_t SECBB2R3; /*!< FLASH block-based secure bank 2, Address offset: 0xA8 */
  523. __IO uint32_t SECBB2R4; /*!< FLASH block-based secure bank 2, Address offset: 0xAC */
  524. __IO uint32_t RESERVED5[4]; /*!< Reserved5, Address offset: 0xB0-0xBC */
  525. __IO uint32_t SECHDPCR; /*!< FLASH secure HDP control register, Address offset: 0xC0 */
  526. __IO uint32_t PRIVCFGR; /*!< FLASH privilege configuration register, Address offset: 0xC4 */
  527. } FLASH_TypeDef;
  528. /**
  529. * @brief Flexible Memory Controller
  530. */
  531. typedef struct
  532. {
  533. __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
  534. __IO uint32_t PCSCNTR; /*!< PSRAM chip-select counter register, Address offset: 0x20 */
  535. } FMC_Bank1_TypeDef;
  536. /**
  537. * @brief Flexible Memory Controller Bank1E
  538. */
  539. typedef struct
  540. {
  541. __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
  542. } FMC_Bank1E_TypeDef;
  543. /**
  544. * @brief Flexible Memory Controller Bank3
  545. */
  546. typedef struct
  547. {
  548. __IO uint32_t PCR; /*!< NAND Flash control register, Address offset: 0x80 */
  549. __IO uint32_t SR; /*!< NAND Flash FIFO status and interrupt register, Address offset: 0x84 */
  550. __IO uint32_t PMEM; /*!< NAND Flash Common memory space timing register, Address offset: 0x88 */
  551. __IO uint32_t PATT; /*!< NAND Flash Attribute memory space timing register, Address offset: 0x8C */
  552. uint32_t RESERVED0; /*!< Reserved, 0x90 */
  553. __IO uint32_t ECCR; /*!< NAND Flash ECC result registers, Address offset: 0x94 */
  554. } FMC_Bank3_TypeDef;
  555. /**
  556. * @brief General Purpose I/O
  557. */
  558. typedef struct
  559. {
  560. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  561. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  562. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  563. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  564. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  565. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  566. __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x18 */
  567. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  568. __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
  569. __IO uint32_t BRR; /*!< GPIO Bit Reset register, Address offset: 0x28 */
  570. uint32_t RESERVED; /*!< Reserved, Address offset: 0x2C */
  571. __IO uint32_t SECCFGR; /*!< GPIO Security configuration register, Address offset: 0x30 */
  572. } GPIO_TypeDef;
  573. /**
  574. * @brief Global TrustZone Controller
  575. */
  576. typedef struct{
  577. __IO uint32_t CR; /*!< TZSC control register, Address offset: 0x00 */
  578. uint32_t RESERVED1[3]; /*!< Reserved1, Address offset: 0x04-0x0C */
  579. __IO uint32_t SECCFGR1; /*!< TZSC secure configuration register 1, Address offset: 0x10 */
  580. __IO uint32_t SECCFGR2; /*!< TZSC secure configuration register 2, Address offset: 0x14 */
  581. uint32_t RESERVED2[2]; /*!< Reserved2, Address offset: 0x18-0x1C */
  582. __IO uint32_t PRIVCFGR1; /*!< TZSC privilege configuration register 1, Address offset: 0x20 */
  583. __IO uint32_t PRIVCFGR2; /*!< TZSC privilege configuration register 2, Address offset: 0x24 */
  584. uint32_t RESERVED3[2]; /*!< Reserved3, Address offset: 0x28-0x2C */
  585. __IO uint32_t MPCWM1_NSWMR1; /*!< TZSC external memory 1, non-secure watermark register 1, Address offset: 0x30 */
  586. __IO uint32_t MPCWM1_NSWMR2; /*!< TZSC external memory 1, non-secure watermark register 2, Address offset: 0x34 */
  587. __IO uint32_t MPCWM2_NSWMR1; /*!< TZSC external memory 2, non-secure watermark register 1, Address offset: 0x38 */
  588. __IO uint32_t MPCWM2_NSWMR2; /*!< TZSC external memory 2, non-secure watermark register 2, Address offset: 0x3c */
  589. __IO uint32_t MPCWM3_NSWMR1; /*!< TZSC external memory 3, non-secure watermark register 1, Address offset: 0x40 */
  590. } GTZC_TZSC_TypeDef;
  591. typedef struct{
  592. __IO uint32_t CR; /*!< MPCBBx control register, Address offset: 0x00 */
  593. uint32_t RESERVED1[3]; /*!< Reserved1, Address offset: 0x04-0x0C */
  594. __IO uint32_t LCKVTR1; /*!< MPCBBx lock register 1, Address offset: 0x10 */
  595. __IO uint32_t LCKVTR2; /*!< MPCBBx lock register 2, Address offset: 0x14 */
  596. uint32_t RESERVED2[58]; /*!< Reserved2, Address offset: 0x18-0xFC */
  597. __IO uint32_t VCTR[24]; /*!< MPCBBx vector registers, Address offset: 0x100-0x120 */
  598. } GTZC_MPCBB_TypeDef;
  599. typedef struct{
  600. __IO uint32_t IER1; /*!< TZIC interrupt enable register 1, Address offset: 0x00 */
  601. __IO uint32_t IER2; /*!< TZIC interrupt enable register 2, Address offset: 0x04 */
  602. __IO uint32_t IER3; /*!< TZIC interrupt enable register 3, Address offset: 0x08 */
  603. uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x0C */
  604. __IO uint32_t SR1; /*!< TZIC status register 1, Address offset: 0x10 */
  605. __IO uint32_t SR2; /*!< TZIC status register 2, Address offset: 0x14 */
  606. __IO uint32_t SR3; /*!< TZIC status register 3, Address offset: 0x18 */
  607. uint32_t RESERVED2; /*!< Reserved2, Address offset: 0x1C */
  608. __IO uint32_t FCR1; /*!< TZIC flag clear register 1, Address offset: 0x20 */
  609. __IO uint32_t FCR2; /*!< TZIC flag clear register 2, Address offset: 0x24 */
  610. __IO uint32_t FCR3; /*!< TZIC flag clear register 3, Address offset: 0x28 */
  611. } GTZC_TZIC_TypeDef;
  612. /**
  613. * @brief HASH
  614. */
  615. typedef struct
  616. {
  617. __IO uint32_t CR; /*!< HASH control register, Address offset: 0x00 */
  618. __IO uint32_t DIN; /*!< HASH data input register, Address offset: 0x04 */
  619. __IO uint32_t STR; /*!< HASH start register, Address offset: 0x08 */
  620. __IO uint32_t HR[5]; /*!< HASH digest registers, Address offset: 0x0C-0x1C */
  621. __IO uint32_t IMR; /*!< HASH interrupt enable register, Address offset: 0x20 */
  622. __IO uint32_t SR; /*!< HASH status register, Address offset: 0x24 */
  623. uint32_t RESERVED[52]; /*!< Reserved, 0x28-0xF4 */
  624. __IO uint32_t CSR[54]; /*!< HASH context swap registers, Address offset: 0x0F8-0x1CC */
  625. } HASH_TypeDef;
  626. /**
  627. * @brief HASH_DIGEST
  628. */
  629. typedef struct
  630. {
  631. __IO uint32_t HR[8]; /*!< HASH digest registers, Address offset: 0x310-0x32C */
  632. } HASH_DIGEST_TypeDef;
  633. /**
  634. * @brief Inter-integrated Circuit Interface
  635. */
  636. typedef struct
  637. {
  638. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  639. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  640. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  641. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  642. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  643. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  644. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  645. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  646. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  647. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  648. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  649. } I2C_TypeDef;
  650. /**
  651. * @brief Instruction Cache
  652. */
  653. typedef struct
  654. {
  655. __IO uint32_t CR; /*!< ICACHE control register, Address offset: 0x00 */
  656. __IO uint32_t SR; /*!< ICACHE status register, Address offset: 0x04 */
  657. __IO uint32_t IER; /*!< ICACHE interrupt enable register, Address offset: 0x08 */
  658. __IO uint32_t FCR; /*!< ICACHE flag clear register, Address offset: 0x0C */
  659. __IO uint32_t HMONR; /*!< ICACHE hit monitor register, Address offset: 0x10 */
  660. __IO uint32_t MMONR; /*!< ICACHE miss monitor register, Address offset: 0x14 */
  661. uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x018-0x01C */
  662. __IO uint32_t CRR0; /*!< ICACHE region 0 configuration register, Address offset: 0x20 */
  663. __IO uint32_t CRR1; /*!< ICACHE region 1 configuration register, Address offset: 0x24 */
  664. __IO uint32_t CRR2; /*!< ICACHE region 2 configuration register, Address offset: 0x28 */
  665. __IO uint32_t CRR3; /*!< ICACHE region 3 configuration register, Address offset: 0x2C */
  666. } ICACHE_TypeDef;
  667. /**
  668. * @brief Independent WATCHDOG
  669. */
  670. typedef struct
  671. {
  672. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  673. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  674. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  675. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  676. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  677. } IWDG_TypeDef;
  678. /**
  679. * @brief LPTIMER
  680. */
  681. typedef struct
  682. {
  683. __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */
  684. __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */
  685. __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */
  686. __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */
  687. __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */
  688. __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */
  689. __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */
  690. __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */
  691. __IO uint32_t OR; /*!< LPTIM Option register, Address offset: 0x20 */
  692. __IO uint32_t RESERVED; /*!< Reserved, Address offset: 0x24 */
  693. __IO uint32_t RCR; /*!< LPTIM Repetition counter register, Address offset: 0x28 */
  694. } LPTIM_TypeDef;
  695. /**
  696. * @brief OCTO Serial Peripheral Interface
  697. */
  698. typedef struct
  699. {
  700. __IO uint32_t CR; /*!< OCTOSPI Control register, Address offset: 0x000 */
  701. uint32_t RESERVED; /*!< Reserved, Address offset: 0x004 */
  702. __IO uint32_t DCR1; /*!< OCTOSPI Device Configuration register 1, Address offset: 0x008 */
  703. __IO uint32_t DCR2; /*!< OCTOSPI Device Configuration register 2, Address offset: 0x00C */
  704. __IO uint32_t DCR3; /*!< OCTOSPI Device Configuration register 3, Address offset: 0x010 */
  705. __IO uint32_t DCR4; /*!< OCTOSPI Device Configuration register 4, Address offset: 0x014 */
  706. uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x018-0x01C */
  707. __IO uint32_t SR; /*!< OCTOSPI Status register, Address offset: 0x020 */
  708. __IO uint32_t FCR; /*!< OCTOSPI Flag Clear register, Address offset: 0x024 */
  709. uint32_t RESERVED2[6]; /*!< Reserved, Address offset: 0x028-0x03C */
  710. __IO uint32_t DLR; /*!< OCTOSPI Data Length register, Address offset: 0x040 */
  711. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x044 */
  712. __IO uint32_t AR; /*!< OCTOSPI Address register, Address offset: 0x048 */
  713. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x04C */
  714. __IO uint32_t DR; /*!< OCTOPSI Data register, Address offset: 0x050 */
  715. uint32_t RESERVED5[11]; /*!< Reserved, Address offset: 0x054-0x07C */
  716. __IO uint32_t PSMKR; /*!< OCTOSPI Polling Status Mask register, Address offset: 0x080 */
  717. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x084 */
  718. __IO uint32_t PSMAR; /*!< OCTOSPI Polling Status Match register, Address offset: 0x088 */
  719. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x08C */
  720. __IO uint32_t PIR; /*!< OCTOSPI Polling Interval register, Address offset: 0x090 */
  721. uint32_t RESERVED8[27]; /*!< Reserved, Address offset: 0x094-0x0FC */
  722. __IO uint32_t CCR; /*!< OCTOSPI Communication Configuration register, Address offset: 0x100 */
  723. uint32_t RESERVED9; /*!< Reserved, Address offset: 0x104 */
  724. __IO uint32_t TCR; /*!< OCTOSPI Timing Configuration register, Address offset: 0x108 */
  725. uint32_t RESERVED10; /*!< Reserved, Address offset: 0x10C */
  726. __IO uint32_t IR; /*!< OCTOSPI Instruction register, Address offset: 0x110 */
  727. uint32_t RESERVED11[3]; /*!< Reserved, Address offset: 0x114-0x11C */
  728. __IO uint32_t ABR; /*!< OCTOSPI Alternate Bytes register, Address offset: 0x120 */
  729. uint32_t RESERVED12[3]; /*!< Reserved, Address offset: 0x124-0x12C */
  730. __IO uint32_t LPTR; /*!< OCTOSPI Low Power Timeout register, Address offset: 0x130 */
  731. uint32_t RESERVED13[3]; /*!< Reserved, Address offset: 0x134-0x13C */
  732. __IO uint32_t WPCCR; /*!< OCTOSPI Wrap Communication Configuration register, Address offset: 0x140 */
  733. uint32_t RESERVED14; /*!< Reserved, Address offset: 0x144 */
  734. __IO uint32_t WPTCR; /*!< OCTOSPI Wrap Timing Configuration register, Address offset: 0x148 */
  735. uint32_t RESERVED15; /*!< Reserved, Address offset: 0x14C */
  736. __IO uint32_t WPIR; /*!< OCTOSPI Wrap Instruction register, Address offset: 0x150 */
  737. uint32_t RESERVED16[3]; /*!< Reserved, Address offset: 0x154-0x15C */
  738. __IO uint32_t WPABR; /*!< OCTOSPI Wrap Alternate Bytes register, Address offset: 0x160 */
  739. uint32_t RESERVED17[7]; /*!< Reserved, Address offset: 0x164-0x17C */
  740. __IO uint32_t WCCR; /*!< OCTOSPI Write Communication Configuration register, Address offset: 0x180 */
  741. uint32_t RESERVED18; /*!< Reserved, Address offset: 0x184 */
  742. __IO uint32_t WTCR; /*!< OCTOSPI Write Timing Configuration register, Address offset: 0x188 */
  743. uint32_t RESERVED19; /*!< Reserved, Address offset: 0x18C */
  744. __IO uint32_t WIR; /*!< OCTOSPI Write Instruction register, Address offset: 0x190 */
  745. uint32_t RESERVED20[3]; /*!< Reserved, Address offset: 0x194-0x19C */
  746. __IO uint32_t WABR; /*!< OCTOSPI Write Alternate Bytes register, Address offset: 0x1A0 */
  747. uint32_t RESERVED21[23]; /*!< Reserved, Address offset: 0x1A4-0x1FC */
  748. __IO uint32_t HLCR; /*!< OCTOSPI Hyperbus Latency Configuration register, Address offset: 0x200 */
  749. } OCTOSPI_TypeDef;
  750. /**
  751. * @brief Operational Amplifier (OPAMP)
  752. */
  753. typedef struct
  754. {
  755. __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */
  756. __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */
  757. __IO uint32_t LPOTR; /*!< OPAMP offset trimming register for low power mode, Address offset: 0x08 */
  758. } OPAMP_TypeDef;
  759. typedef struct
  760. {
  761. __IO uint32_t CSR; /*!< OPAMP control/status register, used for bits common to several OPAMP instances, Address offset: 0x00 */
  762. } OPAMP_Common_TypeDef;
  763. /**
  764. * @brief Power Control
  765. */
  766. typedef struct
  767. {
  768. __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */
  769. __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x04 */
  770. __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x08 */
  771. __IO uint32_t CR4; /*!< PWR power control register 4, Address offset: 0x0C */
  772. __IO uint32_t SR1; /*!< PWR power status register 1, Address offset: 0x10 */
  773. __IO uint32_t SR2; /*!< PWR power status register 2, Address offset: 0x14 */
  774. __IO uint32_t SCR; /*!< PWR power status clear register, Address offset: 0x18 */
  775. uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x1C */
  776. __IO uint32_t PUCRA; /*!< Pull_up control register of portA, Address offset: 0x20 */
  777. __IO uint32_t PDCRA; /*!< Pull_Down control register of portA, Address offset: 0x24 */
  778. __IO uint32_t PUCRB; /*!< Pull_up control register of portB, Address offset: 0x28 */
  779. __IO uint32_t PDCRB; /*!< Pull_Down control register of portB, Address offset: 0x2C */
  780. __IO uint32_t PUCRC; /*!< Pull_up control register of portC, Address offset: 0x30 */
  781. __IO uint32_t PDCRC; /*!< Pull_Down control register of portC, Address offset: 0x34 */
  782. __IO uint32_t PUCRD; /*!< Pull_up control register of portD, Address offset: 0x38 */
  783. __IO uint32_t PDCRD; /*!< Pull_Down control register of portD, Address offset: 0x3C */
  784. __IO uint32_t PUCRE; /*!< Pull_up control register of portE, Address offset: 0x40 */
  785. __IO uint32_t PDCRE; /*!< Pull_Down control register of portE, Address offset: 0x44 */
  786. __IO uint32_t PUCRF; /*!< Pull_up control register of portF, Address offset: 0x48 */
  787. __IO uint32_t PDCRF; /*!< Pull_Down control register of portF, Address offset: 0x4C */
  788. __IO uint32_t PUCRG; /*!< Pull_up control register of portG, Address offset: 0x50 */
  789. __IO uint32_t PDCRG; /*!< Pull_Down control register of portG, Address offset: 0x54 */
  790. __IO uint32_t PUCRH; /*!< Pull_up control register of portH, Address offset: 0x58 */
  791. __IO uint32_t PDCRH; /*!< Pull_Down control register of portH, Address offset: 0x5C */
  792. uint32_t RESERVED2[6]; /*!< Reserved2, Address offset: 0x60-0x74 */
  793. __IO uint32_t SECCFGR; /*!< PWR secure configuration register, Address offset: 0x78 */
  794. uint32_t RESERVED3; /*!< Reserved3, Address offset: 0x7C */
  795. __IO uint32_t PRIVCFGR; /*!< PWR privilege configuration register, Address offset: 0x80 */
  796. } PWR_TypeDef;
  797. /**
  798. * @brief Reset and Clock Control
  799. */
  800. typedef struct
  801. {
  802. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  803. __IO uint32_t ICSCR; /*!< RCC internal clock sources calibration register, Address offset: 0x04 */
  804. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x08 */
  805. __IO uint32_t PLLCFGR; /*!< RCC system PLL configuration register, Address offset: 0x0C */
  806. __IO uint32_t PLLSAI1CFGR; /*!< RCC PLL SAI1 configuration register, Address offset: 0x10 */
  807. __IO uint32_t PLLSAI2CFGR; /*!< RCC PLL SAI2 configuration register, Address offset: 0x14 */
  808. __IO uint32_t CIER; /*!< RCC clock interrupt enable register, Address offset: 0x18 */
  809. __IO uint32_t CIFR; /*!< RCC clock interrupt flag register, Address offset: 0x1C */
  810. __IO uint32_t CICR; /*!< RCC clock interrupt clear register, Address offset: 0x20 */
  811. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x24 */
  812. __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x28 */
  813. __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x2C */
  814. __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x30 */
  815. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x34 */
  816. __IO uint32_t APB1RSTR1; /*!< RCC APB1 peripheral reset register 1, Address offset: 0x38 */
  817. __IO uint32_t APB1RSTR2; /*!< RCC APB1 peripheral reset register 2, Address offset: 0x3C */
  818. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x40 */
  819. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x44 */
  820. __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clocks enable register, Address offset: 0x48 */
  821. __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clocks enable register, Address offset: 0x4C */
  822. __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clocks enable register, Address offset: 0x50 */
  823. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x54 */
  824. __IO uint32_t APB1ENR1; /*!< RCC APB1 peripheral clocks enable register 1, Address offset: 0x58 */
  825. __IO uint32_t APB1ENR2; /*!< RCC APB1 peripheral clocks enable register 2, Address offset: 0x5C */
  826. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clocks enable register, Address offset: 0x60 */
  827. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x64 */
  828. __IO uint32_t AHB1SMENR; /*!< RCC AHB1 peripheral clocks enable in sleep and stop modes register, Address offset: 0x68 */
  829. __IO uint32_t AHB2SMENR; /*!< RCC AHB2 peripheral clocks enable in sleep and stop modes register, Address offset: 0x6C */
  830. __IO uint32_t AHB3SMENR; /*!< RCC AHB3 peripheral clocks enable in sleep and stop modes register, Address offset: 0x70 */
  831. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x74 */
  832. __IO uint32_t APB1SMENR1; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 1, Address offset: 0x78 */
  833. __IO uint32_t APB1SMENR2; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 2, Address offset: 0x7C */
  834. __IO uint32_t APB2SMENR; /*!< RCC APB2 peripheral clocks enable in sleep mode and stop modes register, Address offset: 0x80 */
  835. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x84 */
  836. __IO uint32_t CCIPR1; /*!< RCC peripherals independent clock configuration register 1, Address offset: 0x88 */
  837. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x8C */
  838. __IO uint32_t BDCR; /*!< RCC backup domain control register, Address offset: 0x90 */
  839. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x94 */
  840. __IO uint32_t CRRCR; /*!< RCC clock recovery RC register, Address offset: 0x98 */
  841. __IO uint32_t CCIPR2; /*!< RCC peripherals independent clock configuration register 2, Address offset: 0x9C */
  842. uint32_t RESERVED8[6]; /*!< Reserved, Address offset: 0xA0-0xB4 */
  843. __IO uint32_t SECCFGR; /*!< RCC secure configuration register, Address offset: 0xB8 */
  844. __IO uint32_t SECSR; /*!< RCC secure status register, Address offset: 0xBC */
  845. uint32_t RESERVED9[10]; /*!< Reserved, Address offset: 0xC0-0xE4 */
  846. __IO uint32_t AHB1SECSR; /*!< RCC AHB1 security status register, Address offset: 0xE8 */
  847. __IO uint32_t AHB2SECSR; /*!< RCC AHB2 security status register, Address offset: 0xEC */
  848. __IO uint32_t AHB3SECSR; /*!< RCC AHB3 security status register, Address offset: 0xF0 */
  849. uint32_t RESERVED10; /*!< Reserved, Address offset: 0xF4 */
  850. __IO uint32_t APB1SECSR1; /*!< RCC APB1 security status register 1, Address offset: 0xF8 */
  851. __IO uint32_t APB1SECSR2; /*!< RCC APB1 security status register 2, Address offset: 0xFC */
  852. __IO uint32_t APB2SECSR; /*!< RCC APB2 security status register, Address offset: 0x100 */
  853. } RCC_TypeDef;
  854. /**
  855. * @brief RNG
  856. */
  857. typedef struct
  858. {
  859. __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */
  860. __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */
  861. __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */
  862. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x0C */
  863. __IO uint32_t HTCR; /*!< RNG health test control register, Address offset: 0x10 */
  864. } RNG_TypeDef;
  865. /**
  866. * @brief RTC Specific device feature definitions
  867. */
  868. #define RTC_BACKUP_NB 32u
  869. #define RTC_TAMP_NB 8u
  870. /**
  871. * @brief Real-Time Clock
  872. */
  873. typedef struct
  874. {
  875. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  876. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  877. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x08 */
  878. __IO uint32_t ICSR; /*!< RTC initialization control and status register, Address offset: 0x0C */
  879. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  880. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  881. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x18 */
  882. __IO uint32_t PRIVCR; /*!< RTC privilege mode control register, Address offset: 0x1C */
  883. __IO uint32_t SMCR; /*!< RTC Secure mode control register, Address offset: 0x20 */
  884. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  885. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x28 */
  886. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  887. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  888. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  889. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  890. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x3C */
  891. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x40 */
  892. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  893. __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x48 */
  894. __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x4C */
  895. __IO uint32_t SR; /*!< RTC Status register, Address offset: 0x50 */
  896. __IO uint32_t MISR; /*!< RTC masked interrupt status register, Address offset: 0x54 */
  897. __IO uint32_t SMISR; /*!< RTC secure masked interrupt status register, Address offset: 0x58 */
  898. __IO uint32_t SCR; /*!< RTC status Clear register, Address offset: 0x5C */
  899. } RTC_TypeDef;
  900. /**
  901. * @brief Serial Peripheral Interface
  902. */
  903. typedef struct
  904. {
  905. __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */
  906. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  907. __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
  908. __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
  909. __IO uint32_t CRCPR; /*!< SPI CRC polynomial register, Address offset: 0x10 */
  910. __IO uint32_t RXCRCR; /*!< SPI Rx CRC register, Address offset: 0x14 */
  911. __IO uint32_t TXCRCR; /*!< SPI Tx CRC register, Address offset: 0x18 */
  912. } SPI_TypeDef;
  913. /**
  914. * @brief Tamper and backup registers
  915. */
  916. typedef struct
  917. {
  918. __IO uint32_t CR1; /*!< TAMP configuration register 1, Address offset: 0x00 */
  919. __IO uint32_t CR2; /*!< TAMP configuration register 2, Address offset: 0x04 */
  920. __IO uint32_t CR3; /*!< TAMP configuration register 3, Address offset: 0x08 */
  921. __IO uint32_t FLTCR; /*!< TAMP filter control register, Address offset: 0x0C */
  922. __IO uint32_t ATCR1; /*!< TAMP active tamper control register 1 Address offset: 0x10 */
  923. __IO uint32_t ATSEEDR; /*!< TAMP active tamper seed register, Address offset: 0x14 */
  924. __IO uint32_t ATOR; /*!< TAMP active tamper output register, Address offset: 0x18 */
  925. __IO uint32_t ATCR2; /*!< TAMP active tamper control register 2, Address offset: 0x1C */
  926. __IO uint32_t SMCR; /*!< TAMP secure mode control register, Address offset: 0x20 */
  927. __IO uint32_t PRIVCR; /*!< TAMP privilege mode control register, Address offset: 0x24 */
  928. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x28 */
  929. __IO uint32_t IER; /*!< TAMP interrupt enable register, Address offset: 0x2C */
  930. __IO uint32_t SR; /*!< TAMP status register, Address offset: 0x30 */
  931. __IO uint32_t MISR; /*!< TAMP masked interrupt status register, Address offset: 0x34 */
  932. __IO uint32_t SMISR; /*!< TAMP secure masked interrupt status register, Address offset: 0x38 */
  933. __IO uint32_t SCR; /*!< TAMP status clear register, Address offset: 0x3C */
  934. __IO uint32_t COUNTR; /*!< TAMP monotonic counter register, Address offset: 0x40 */
  935. uint32_t RESERVED1[47];/*!< Reserved, Address offset: 0x54 -- 0xFC */
  936. __IO uint32_t BKP0R; /*!< TAMP backup register 0, Address offset: 0x100 */
  937. __IO uint32_t BKP1R; /*!< TAMP backup register 1, Address offset: 0x104 */
  938. __IO uint32_t BKP2R; /*!< TAMP backup register 2, Address offset: 0x108 */
  939. __IO uint32_t BKP3R; /*!< TAMP backup register 3, Address offset: 0x10C */
  940. __IO uint32_t BKP4R; /*!< TAMP backup register 4, Address offset: 0x110 */
  941. __IO uint32_t BKP5R; /*!< TAMP backup register 5, Address offset: 0x114 */
  942. __IO uint32_t BKP6R; /*!< TAMP backup register 6, Address offset: 0x118 */
  943. __IO uint32_t BKP7R; /*!< TAMP backup register 7, Address offset: 0x11C */
  944. __IO uint32_t BKP8R; /*!< TAMP backup register 8, Address offset: 0x120 */
  945. __IO uint32_t BKP9R; /*!< TAMP backup register 9, Address offset: 0x124 */
  946. __IO uint32_t BKP10R; /*!< TAMP backup register 10, Address offset: 0x128 */
  947. __IO uint32_t BKP11R; /*!< TAMP backup register 11, Address offset: 0x12C */
  948. __IO uint32_t BKP12R; /*!< TAMP backup register 12, Address offset: 0x130 */
  949. __IO uint32_t BKP13R; /*!< TAMP backup register 13, Address offset: 0x134 */
  950. __IO uint32_t BKP14R; /*!< TAMP backup register 14, Address offset: 0x138 */
  951. __IO uint32_t BKP15R; /*!< TAMP backup register 15, Address offset: 0x13C */
  952. __IO uint32_t BKP16R; /*!< TAMP backup register 16, Address offset: 0x140 */
  953. __IO uint32_t BKP17R; /*!< TAMP backup register 17, Address offset: 0x144 */
  954. __IO uint32_t BKP18R; /*!< TAMP backup register 18, Address offset: 0x148 */
  955. __IO uint32_t BKP19R; /*!< TAMP backup register 19, Address offset: 0x14C */
  956. __IO uint32_t BKP20R; /*!< TAMP backup register 20, Address offset: 0x150 */
  957. __IO uint32_t BKP21R; /*!< TAMP backup register 21, Address offset: 0x154 */
  958. __IO uint32_t BKP22R; /*!< TAMP backup register 22, Address offset: 0x158 */
  959. __IO uint32_t BKP23R; /*!< TAMP backup register 23, Address offset: 0x15C */
  960. __IO uint32_t BKP24R; /*!< TAMP backup register 24, Address offset: 0x160 */
  961. __IO uint32_t BKP25R; /*!< TAMP backup register 25, Address offset: 0x164 */
  962. __IO uint32_t BKP26R; /*!< TAMP backup register 26, Address offset: 0x168 */
  963. __IO uint32_t BKP27R; /*!< TAMP backup register 27, Address offset: 0x16C */
  964. __IO uint32_t BKP28R; /*!< TAMP backup register 28, Address offset: 0x170 */
  965. __IO uint32_t BKP29R; /*!< TAMP backup register 29, Address offset: 0x174 */
  966. __IO uint32_t BKP30R; /*!< TAMP backup register 30, Address offset: 0x178 */
  967. __IO uint32_t BKP31R; /*!< TAMP backup register 31, Address offset: 0x17C */
  968. } TAMP_TypeDef;
  969. /**
  970. * @brief TIM
  971. */
  972. typedef struct
  973. {
  974. __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  975. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  976. __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
  977. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  978. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  979. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  980. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  981. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  982. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  983. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  984. __IO uint32_t PSC; /*!< TIM prescaler register, Address offset: 0x28 */
  985. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  986. __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  987. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  988. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  989. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  990. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  991. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  992. __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  993. __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
  994. __IO uint32_t OR1; /*!< TIM option register 1, Address offset: 0x50 */
  995. __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
  996. __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
  997. __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */
  998. __IO uint32_t OR2; /*!< TIM option register 2, Address offset: 0x60 */
  999. __IO uint32_t OR3; /*!< TIM option register 3, Address offset: 0x64 */
  1000. } TIM_TypeDef;
  1001. /**
  1002. * @brief Touch Sensing Controller (TSC)
  1003. */
  1004. typedef struct
  1005. {
  1006. __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
  1007. __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
  1008. __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
  1009. __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
  1010. __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
  1011. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  1012. __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
  1013. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
  1014. __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
  1015. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
  1016. __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
  1017. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
  1018. __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
  1019. __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
  1020. } TSC_TypeDef;
  1021. /**
  1022. * @brief Serial Audio Interface
  1023. */
  1024. typedef struct
  1025. {
  1026. __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */
  1027. uint32_t RESERVED[16]; /*!< Reserved, Address offset: 0x04 to 0x40 */
  1028. __IO uint32_t PDMCR; /*!< SAI PDM control register, Address offset: 0x44 */
  1029. __IO uint32_t PDMDLY; /*!< SAI PDM delay register, Address offset: 0x48 */
  1030. } SAI_TypeDef;
  1031. typedef struct
  1032. {
  1033. __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */
  1034. __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */
  1035. __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */
  1036. __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */
  1037. __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */
  1038. __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */
  1039. __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */
  1040. __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */
  1041. } SAI_Block_TypeDef;
  1042. /**
  1043. * @brief System configuration controller
  1044. */
  1045. typedef struct
  1046. {
  1047. __IO uint32_t SECCFGR; /*!< SYSCFG secure configuration register, Address offset: 0x00 */
  1048. __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x04 */
  1049. __IO uint32_t FPUIMR; /*!< SYSCFG FPU interrupt mask register, Address offset: 0x08 */
  1050. __IO uint32_t CNSLCKR; /*!< SYSCFG CPU non-secure lock register, Address offset: 0x0C */
  1051. __IO uint32_t CSLCKR; /*!< SYSCFG CPU secure lock register, Address offset: 0x10 */
  1052. __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x14 */
  1053. __IO uint32_t SCSR; /*!< SYSCFG SRAM2 control and status register, Address offset: 0x18 */
  1054. __IO uint32_t SKR; /*!< SYSCFG SRAM2 key register, Address offset: 0x1C */
  1055. __IO uint32_t SWPR; /*!< SYSCFG SRAM2 write protection register 1, Address offset: 0x20 */
  1056. __IO uint32_t SWPR2; /*!< SYSCFG SRAM2 write protection register 2, Address offset: 0x24 */
  1057. uint32_t RESERVED; /*!< Reserved, Address offset: 0x28 */
  1058. __IO uint32_t RSSCMDR; /*!< SYSCFG RSS command register, Address offset: 0x2C */
  1059. } SYSCFG_TypeDef;
  1060. /**
  1061. * @brief Secure digital input/output Interface
  1062. */
  1063. typedef struct
  1064. {
  1065. __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */
  1066. __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */
  1067. __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */
  1068. __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */
  1069. __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */
  1070. __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */
  1071. __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */
  1072. __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */
  1073. __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */
  1074. __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */
  1075. __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */
  1076. __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */
  1077. __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */
  1078. __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */
  1079. __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */
  1080. __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */
  1081. __IO uint32_t ACKTIME; /*!< SDMMC Acknowledgement timer register, Address offset: 0x40 */
  1082. uint32_t RESERVED0[3]; /*!< Reserved, 0x44 - 0x4C - 0x4C */
  1083. __IO uint32_t IDMACTRL; /*!< SDMMC DMA control register, Address offset: 0x50 */
  1084. __IO uint32_t IDMABSIZE; /*!< SDMMC DMA buffer size register, Address offset: 0x54 */
  1085. __IO uint32_t IDMABASE0; /*!< SDMMC DMA buffer 0 base address register, Address offset: 0x58 */
  1086. __IO uint32_t IDMABASE1; /*!< SDMMC DMA buffer 1 base address register, Address offset: 0x5C */
  1087. uint32_t RESERVED1[8]; /*!< Reserved, 0x60-0x7C */
  1088. __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */
  1089. uint32_t RESERVED2[220]; /*!< Reserved, 0x84-0x3F0 */
  1090. __IO uint32_t VER; /*!< SDMMC IP version register, Address offset: 0x3F4 */
  1091. __IO uint32_t ID; /*!< SDMMC IP identification register, Address offset: 0x3F8 */
  1092. __IO uint32_t SID; /*!< SDMMC size ID register, Address offset: 0x3FC */
  1093. } SDMMC_TypeDef;
  1094. /**
  1095. * @brief UCPD
  1096. */
  1097. typedef struct
  1098. {
  1099. __IO uint32_t CFG1; /*!< UCPD configuration register 1, Address offset: 0x00 */
  1100. __IO uint32_t CFG2; /*!< UCPD configuration register 2, Address offset: 0x04 */
  1101. __IO uint32_t CFG3; /*!< UCPD configuration register 3, Address offset: 0x08 */
  1102. __IO uint32_t CR; /*!< UCPD control register, Address offset: 0x0C */
  1103. __IO uint32_t IMR; /*!< UCPD interrupt mask register, Address offset: 0x10 */
  1104. __IO uint32_t SR; /*!< UCPD status register, Address offset: 0x14 */
  1105. __IO uint32_t ICR; /*!< UCPD interrupt flag clear register Address offset: 0x18 */
  1106. __IO uint32_t TX_ORDSET; /*!< UCPD Tx ordered set type register, Address offset: 0x1C */
  1107. __IO uint32_t TX_PAYSZ; /*!< UCPD Tx payload size register, Address offset: 0x20 */
  1108. __IO uint32_t TXDR; /*!< UCPD Tx data register, Address offset: 0x24 */
  1109. __IO uint32_t RX_ORDSET; /*!< UCPD Rx ordered set type register, Address offset: 0x28 */
  1110. __IO uint32_t RX_PAYSZ; /*!< UCPD Rx payload size register, Address offset: 0x2C */
  1111. __IO uint32_t RXDR; /*!< UCPD Rx data register, Address offset: 0x30 */
  1112. __IO uint32_t RX_ORDEXT1; /*!< UCPD Rx ordered set extension 1 register, Address offset: 0x34 */
  1113. __IO uint32_t RX_ORDEXT2; /*!< UCPD Rx ordered set extension 2 register, Address offset: 0x38 */
  1114. } UCPD_TypeDef;
  1115. /**
  1116. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  1117. */
  1118. typedef struct
  1119. {
  1120. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  1121. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  1122. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  1123. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  1124. __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  1125. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  1126. __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
  1127. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  1128. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  1129. __IO uint32_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  1130. __IO uint32_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  1131. __IO uint32_t PRESC; /*!< USART Prescaler register, Address offset: 0x2C */
  1132. } USART_TypeDef;
  1133. /**
  1134. * @brief Universal Serial Bus Full Speed Device
  1135. */
  1136. typedef struct
  1137. {
  1138. __IO uint16_t EP0R; /*!< USB Endpoint 0 register, Address offset: 0x00 */
  1139. __IO uint16_t RESERVED0; /*!< Reserved */
  1140. __IO uint16_t EP1R; /*!< USB Endpoint 1 register, Address offset: 0x04 */
  1141. __IO uint16_t RESERVED1; /*!< Reserved */
  1142. __IO uint16_t EP2R; /*!< USB Endpoint 2 register, Address offset: 0x08 */
  1143. __IO uint16_t RESERVED2; /*!< Reserved */
  1144. __IO uint16_t EP3R; /*!< USB Endpoint 3 register, Address offset: 0x0C */
  1145. __IO uint16_t RESERVED3; /*!< Reserved */
  1146. __IO uint16_t EP4R; /*!< USB Endpoint 4 register, Address offset: 0x10 */
  1147. __IO uint16_t RESERVED4; /*!< Reserved */
  1148. __IO uint16_t EP5R; /*!< USB Endpoint 5 register, Address offset: 0x14 */
  1149. __IO uint16_t RESERVED5; /*!< Reserved */
  1150. __IO uint16_t EP6R; /*!< USB Endpoint 6 register, Address offset: 0x18 */
  1151. __IO uint16_t RESERVED6; /*!< Reserved */
  1152. __IO uint16_t EP7R; /*!< USB Endpoint 7 register, Address offset: 0x1C */
  1153. __IO uint16_t RESERVED7[17]; /*!< Reserved */
  1154. __IO uint16_t CNTR; /*!< Control register, Address offset: 0x40 */
  1155. __IO uint16_t RESERVED8; /*!< Reserved */
  1156. __IO uint16_t ISTR; /*!< Interrupt status register, Address offset: 0x44 */
  1157. __IO uint16_t RESERVED9; /*!< Reserved */
  1158. __IO uint16_t FNR; /*!< Frame number register, Address offset: 0x48 */
  1159. __IO uint16_t RESERVEDA; /*!< Reserved */
  1160. __IO uint16_t DADDR; /*!< Device address register, Address offset: 0x4C */
  1161. __IO uint16_t RESERVEDB; /*!< Reserved */
  1162. __IO uint16_t BTABLE; /*!< Buffer Table address register, Address offset: 0x50 */
  1163. __IO uint16_t RESERVEDC; /*!< Reserved */
  1164. __IO uint16_t LPMCSR; /*!< LPM Control and Status register, Address offset: 0x54 */
  1165. __IO uint16_t RESERVEDD; /*!< Reserved */
  1166. __IO uint16_t BCDR; /*!< Battery Charging detector register, Address offset: 0x58 */
  1167. __IO uint16_t RESERVEDE; /*!< Reserved */
  1168. } USB_TypeDef;
  1169. /**
  1170. * @brief VREFBUF
  1171. */
  1172. typedef struct
  1173. {
  1174. __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */
  1175. __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */
  1176. } VREFBUF_TypeDef;
  1177. /**
  1178. * @brief Window WATCHDOG
  1179. */
  1180. typedef struct
  1181. {
  1182. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  1183. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  1184. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  1185. } WWDG_TypeDef;
  1186. /*@}*/ /* end of group STM32L562xx_Peripherals */
  1187. /* -------- End of section using anonymous unions and disabling warnings -------- */
  1188. #if defined (__CC_ARM)
  1189. #pragma pop
  1190. #elif defined (__ICCARM__)
  1191. /* leave anonymous unions enabled */
  1192. #elif (__ARMCC_VERSION >= 6010050)
  1193. #pragma clang diagnostic pop
  1194. #elif defined (__GNUC__)
  1195. /* anonymous unions are enabled by default */
  1196. #elif defined (__TMS470__)
  1197. /* anonymous unions are enabled by default */
  1198. #elif defined (__TASKING__)
  1199. #pragma warning restore
  1200. #elif defined (__CSMC__)
  1201. /* anonymous unions are enabled by default */
  1202. #else
  1203. #warning Not supported compiler type
  1204. #endif
  1205. /* =========================================================================================================================== */
  1206. /* ================ Device Specific Peripheral Address Map ================ */
  1207. /* =========================================================================================================================== */
  1208. /** @addtogroup STM32L5xx_Peripheral_peripheralAddr
  1209. * @{
  1210. */
  1211. /* Internal SRAMs size */
  1212. #define SRAM1_SIZE 0x30000UL /*!< SRAM1=192k*/
  1213. #define SRAM2_SIZE 0x10000UL /*!< SRAM2=64k*/
  1214. /* External memories base addresses - Not aliased */
  1215. #define FMC_BASE (0x60000000UL) /*!< FMC base address */
  1216. #define OCTOSPI1_BASE (0x90000000UL) /*!< OCTOSPI1 memories accessible over AHB base address */
  1217. #define FMC_BANK1 FMC_BASE
  1218. #define FMC_BANK1_1 FMC_BANK1
  1219. #define FMC_BANK1_2 (FMC_BANK1 + 0x04000000UL)
  1220. #define FMC_BANK1_3 (FMC_BANK1 + 0x08000000UL)
  1221. #define FMC_BANK1_4 (FMC_BANK1 + 0x0C000000UL)
  1222. #define FMC_BANK3 (FMC_BASE + 0x20000000UL)
  1223. /* Flash, Peripheral and internal SRAMs base addresses - Non secure aliased */
  1224. #define FLASH_BASE_NS (0x08000000UL) /*!< FLASH(up to 512 KB) base address */
  1225. #define SRAM1_BASE_NS (0x20000000UL) /*!< SRAM1(up to 192 KB) base address */
  1226. #define SRAM2_BASE_NS (0x20030000UL) /*!< SRAM2(64 KB) base address */
  1227. #define SRAM_BASE_NS SRAM1_BASE
  1228. #define PERIPH_BASE_NS (0x40000000UL) /*!< Peripheral non secure base address */
  1229. /* Peripheral memory map - Non secure */
  1230. #define APB1PERIPH_BASE_NS PERIPH_BASE_NS
  1231. #define APB2PERIPH_BASE_NS (PERIPH_BASE_NS + 0x00010000UL)
  1232. #define AHB1PERIPH_BASE_NS (PERIPH_BASE_NS + 0x00020000UL)
  1233. #define AHB2PERIPH_BASE_NS (PERIPH_BASE_NS + 0x02020000UL)
  1234. #define AHB3PERIPH_BASE_NS (PERIPH_BASE_NS + 0x04020000UL)
  1235. /*!< APB1 Non secure peripherals */
  1236. #define TIM2_BASE_NS (APB1PERIPH_BASE_NS + 0x0000UL)
  1237. #define TIM3_BASE_NS (APB1PERIPH_BASE_NS + 0x0400UL)
  1238. #define TIM4_BASE_NS (APB1PERIPH_BASE_NS + 0x0800UL)
  1239. #define TIM5_BASE_NS (APB1PERIPH_BASE_NS + 0x0C00UL)
  1240. #define TIM6_BASE_NS (APB1PERIPH_BASE_NS + 0x1000UL)
  1241. #define TIM7_BASE_NS (APB1PERIPH_BASE_NS + 0x1400UL)
  1242. #define RTC_BASE_NS (APB1PERIPH_BASE_NS + 0x2800UL)
  1243. #define WWDG_BASE_NS (APB1PERIPH_BASE_NS + 0x2C00UL)
  1244. #define IWDG_BASE_NS (APB1PERIPH_BASE_NS + 0x3000UL)
  1245. #define TAMP_BASE_NS (APB1PERIPH_BASE_NS + 0x3400UL)
  1246. #define SPI2_BASE_NS (APB1PERIPH_BASE_NS + 0x3800UL)
  1247. #define SPI3_BASE_NS (APB1PERIPH_BASE_NS + 0x3C00UL)
  1248. #define USART2_BASE_NS (APB1PERIPH_BASE_NS + 0x4400UL)
  1249. #define USART3_BASE_NS (APB1PERIPH_BASE_NS + 0x4800UL)
  1250. #define UART4_BASE_NS (APB1PERIPH_BASE_NS + 0x4C00UL)
  1251. #define UART5_BASE_NS (APB1PERIPH_BASE_NS + 0x5000UL)
  1252. #define I2C1_BASE_NS (APB1PERIPH_BASE_NS + 0x5400UL)
  1253. #define I2C2_BASE_NS (APB1PERIPH_BASE_NS + 0x5800UL)
  1254. #define I2C3_BASE_NS (APB1PERIPH_BASE_NS + 0x5C00UL)
  1255. #define CRS_BASE_NS (APB1PERIPH_BASE_NS + 0x6000UL)
  1256. #define PWR_BASE_NS (APB1PERIPH_BASE_NS + 0x7000UL)
  1257. #define DAC_BASE_NS (APB1PERIPH_BASE_NS + 0x7400UL)
  1258. #define DAC1_BASE_NS (APB1PERIPH_BASE_NS + 0x7400UL)
  1259. #define OPAMP_BASE_NS (APB1PERIPH_BASE_NS + 0x7800UL)
  1260. #define OPAMP1_BASE_NS (APB1PERIPH_BASE_NS + 0x7800UL)
  1261. #define OPAMP2_BASE_NS (APB1PERIPH_BASE_NS + 0x7810UL)
  1262. #define LPTIM1_BASE_NS (APB1PERIPH_BASE_NS + 0x7C00UL)
  1263. #define LPUART1_BASE_NS (APB1PERIPH_BASE_NS + 0x8000UL)
  1264. #define I2C4_BASE_NS (APB1PERIPH_BASE_NS + 0x8400UL)
  1265. #define LPTIM2_BASE_NS (APB1PERIPH_BASE_NS + 0x9400UL)
  1266. #define LPTIM3_BASE_NS (APB1PERIPH_BASE_NS + 0x9800UL)
  1267. #define FDCAN1_BASE_NS (APB1PERIPH_BASE_NS + 0xA400UL)
  1268. #define FDCAN_CONFIG_BASE_NS (APB1PERIPH_BASE_NS + 0xA500UL) /*!< FDCAN configuration registers base address */
  1269. #define SRAMCAN_BASE_NS (APB1PERIPH_BASE_NS + 0xAC00UL)
  1270. #define USB_BASE_NS (APB1PERIPH_BASE_NS + 0xD400UL) /*!< USB_IP Peripheral Registers base address */
  1271. #define USB_PMAADDR_NS (APB1PERIPH_BASE_NS + 0xD800UL) /*!< USB_IP Packet Memory Area base address */
  1272. #define UCPD1_BASE_NS (APB1PERIPH_BASE_NS + 0xDC00UL)
  1273. /*!< APB2 Non secure peripherals */
  1274. #define SYSCFG_BASE_NS (APB2PERIPH_BASE_NS + 0x0000UL)
  1275. #define VREFBUF_BASE_NS (APB2PERIPH_BASE_NS + 0x0100UL)
  1276. #define COMP1_BASE_NS (APB2PERIPH_BASE_NS + 0x0200UL)
  1277. #define COMP2_BASE_NS (APB2PERIPH_BASE_NS + 0x0204UL)
  1278. #define TIM1_BASE_NS (APB2PERIPH_BASE_NS + 0x2C00UL)
  1279. #define SPI1_BASE_NS (APB2PERIPH_BASE_NS + 0x3000UL)
  1280. #define TIM8_BASE_NS (APB2PERIPH_BASE_NS + 0x3400UL)
  1281. #define USART1_BASE_NS (APB2PERIPH_BASE_NS + 0x3800UL)
  1282. #define TIM15_BASE_NS (APB2PERIPH_BASE_NS + 0x4000UL)
  1283. #define TIM16_BASE_NS (APB2PERIPH_BASE_NS + 0x4400UL)
  1284. #define TIM17_BASE_NS (APB2PERIPH_BASE_NS + 0x4800UL)
  1285. #define SAI1_BASE_NS (APB2PERIPH_BASE_NS + 0x5400UL)
  1286. #define SAI1_Block_A_BASE_NS (SAI1_BASE_NS + 0x0004UL)
  1287. #define SAI1_Block_B_BASE_NS (SAI1_BASE_NS + 0x0024UL)
  1288. #define SAI2_BASE_NS (APB2PERIPH_BASE_NS + 0x5800UL)
  1289. #define SAI2_Block_A_BASE_NS (SAI2_BASE_NS + 0x0004UL)
  1290. #define SAI2_Block_B_BASE_NS (SAI2_BASE_NS + 0x0024UL)
  1291. #define DFSDM1_BASE_NS (APB2PERIPH_BASE_NS + 0x6000UL)
  1292. #define DFSDM1_Channel0_BASE_NS (DFSDM1_BASE_NS + 0x0000UL)
  1293. #define DFSDM1_Channel1_BASE_NS (DFSDM1_BASE_NS + 0x0020UL)
  1294. #define DFSDM1_Channel2_BASE_NS (DFSDM1_BASE_NS + 0x0040UL)
  1295. #define DFSDM1_Channel3_BASE_NS (DFSDM1_BASE_NS + 0x0060UL)
  1296. #define DFSDM1_Filter0_BASE_NS (DFSDM1_BASE_NS + 0x0100UL)
  1297. #define DFSDM1_Filter1_BASE_NS (DFSDM1_BASE_NS + 0x0180UL)
  1298. #define DFSDM1_Filter2_BASE_NS (DFSDM1_BASE_NS + 0x0200UL)
  1299. #define DFSDM1_Filter3_BASE_NS (DFSDM1_BASE_NS + 0x0280UL)
  1300. /*!< AHB1 Non secure peripherals */
  1301. #define DMA1_BASE_NS (AHB1PERIPH_BASE_NS)
  1302. #define DMA2_BASE_NS (AHB1PERIPH_BASE_NS + 0x0400UL)
  1303. #define DMAMUX1_BASE_NS (AHB1PERIPH_BASE_NS + 0x0800UL)
  1304. #define RCC_BASE_NS (AHB1PERIPH_BASE_NS + 0x1000UL)
  1305. #define FLASH_R_BASE_NS (AHB1PERIPH_BASE_NS + 0x2000UL)
  1306. #define CRC_BASE_NS (AHB1PERIPH_BASE_NS + 0x3000UL)
  1307. #define TSC_BASE_NS (AHB1PERIPH_BASE_NS + 0x4000UL)
  1308. #define EXTI_BASE_NS (AHB1PERIPH_BASE_NS + 0xF400UL)
  1309. #define ICACHE_BASE_NS (AHB1PERIPH_BASE_NS + 0x10400UL)
  1310. #define GTZC_TZSC_BASE_NS (AHB1PERIPH_BASE_NS + 0x12400UL)
  1311. #define GTZC_TZIC_BASE_NS (AHB1PERIPH_BASE_NS + 0x12800UL)
  1312. #define GTZC_MPCBB1_BASE_NS (AHB1PERIPH_BASE_NS + 0x12C00UL)
  1313. #define GTZC_MPCBB2_BASE_NS (AHB1PERIPH_BASE_NS + 0x13000UL)
  1314. #define DMA1_Channel1_BASE_NS (DMA1_BASE_NS + 0x0008UL)
  1315. #define DMA1_Channel2_BASE_NS (DMA1_BASE_NS + 0x001CUL)
  1316. #define DMA1_Channel3_BASE_NS (DMA1_BASE_NS + 0x0030UL)
  1317. #define DMA1_Channel4_BASE_NS (DMA1_BASE_NS + 0x0044UL)
  1318. #define DMA1_Channel5_BASE_NS (DMA1_BASE_NS + 0x0058UL)
  1319. #define DMA1_Channel6_BASE_NS (DMA1_BASE_NS + 0x006CUL)
  1320. #define DMA1_Channel7_BASE_NS (DMA1_BASE_NS + 0x0080UL)
  1321. #define DMA1_Channel8_BASE_NS (DMA1_BASE_NS + 0x0094UL)
  1322. #define DMA2_Channel1_BASE_NS (DMA2_BASE_NS + 0x0008UL)
  1323. #define DMA2_Channel2_BASE_NS (DMA2_BASE_NS + 0x001CUL)
  1324. #define DMA2_Channel3_BASE_NS (DMA2_BASE_NS + 0x0030UL)
  1325. #define DMA2_Channel4_BASE_NS (DMA2_BASE_NS + 0x0044UL)
  1326. #define DMA2_Channel5_BASE_NS (DMA2_BASE_NS + 0x0058UL)
  1327. #define DMA2_Channel6_BASE_NS (DMA2_BASE_NS + 0x006CUL)
  1328. #define DMA2_Channel7_BASE_NS (DMA2_BASE_NS + 0x0080UL)
  1329. #define DMA2_Channel8_BASE_NS (DMA2_BASE_NS + 0x0094UL)
  1330. #define DMAMUX1_Channel0_BASE_NS (DMAMUX1_BASE_NS)
  1331. #define DMAMUX1_Channel1_BASE_NS (DMAMUX1_BASE_NS + 0x00000004UL)
  1332. #define DMAMUX1_Channel2_BASE_NS (DMAMUX1_BASE_NS + 0x00000008UL)
  1333. #define DMAMUX1_Channel3_BASE_NS (DMAMUX1_BASE_NS + 0x0000000CUL)
  1334. #define DMAMUX1_Channel4_BASE_NS (DMAMUX1_BASE_NS + 0x00000010UL)
  1335. #define DMAMUX1_Channel5_BASE_NS (DMAMUX1_BASE_NS + 0x00000014UL)
  1336. #define DMAMUX1_Channel6_BASE_NS (DMAMUX1_BASE_NS + 0x00000018UL)
  1337. #define DMAMUX1_Channel7_BASE_NS (DMAMUX1_BASE_NS + 0x0000001CUL)
  1338. #define DMAMUX1_Channel8_BASE_NS (DMAMUX1_BASE_NS + 0x00000020UL)
  1339. #define DMAMUX1_Channel9_BASE_NS (DMAMUX1_BASE_NS + 0x00000024UL)
  1340. #define DMAMUX1_Channel10_BASE_NS (DMAMUX1_BASE_NS + 0x00000028UL)
  1341. #define DMAMUX1_Channel11_BASE_NS (DMAMUX1_BASE_NS + 0x0000002CUL)
  1342. #define DMAMUX1_Channel12_BASE_NS (DMAMUX1_BASE_NS + 0x00000030UL)
  1343. #define DMAMUX1_Channel13_BASE_NS (DMAMUX1_BASE_NS + 0x00000034UL)
  1344. #define DMAMUX1_Channel14_BASE_NS (DMAMUX1_BASE_NS + 0x00000038UL)
  1345. #define DMAMUX1_Channel15_BASE_NS (DMAMUX1_BASE_NS + 0x0000003CUL)
  1346. #define DMAMUX1_RequestGenerator0_BASE_NS (DMAMUX1_BASE_NS + 0x00000100UL)
  1347. #define DMAMUX1_RequestGenerator1_BASE_NS (DMAMUX1_BASE_NS + 0x00000104UL)
  1348. #define DMAMUX1_RequestGenerator2_BASE_NS (DMAMUX1_BASE_NS + 0x00000108UL)
  1349. #define DMAMUX1_RequestGenerator3_BASE_NS (DMAMUX1_BASE_NS + 0x0000010CUL)
  1350. #define DMAMUX1_ChannelStatus_BASE_NS (DMAMUX1_BASE_NS + 0x00000080UL)
  1351. #define DMAMUX1_RequestGenStatus_BASE_NS (DMAMUX1_BASE_NS + 0x00000140UL)
  1352. /*!< AHB2 Non secure peripherals */
  1353. #define GPIOA_BASE_NS (AHB2PERIPH_BASE_NS + 0x0000UL)
  1354. #define GPIOB_BASE_NS (AHB2PERIPH_BASE_NS + 0x0400UL)
  1355. #define GPIOC_BASE_NS (AHB2PERIPH_BASE_NS + 0x0800UL)
  1356. #define GPIOD_BASE_NS (AHB2PERIPH_BASE_NS + 0x0C00UL)
  1357. #define GPIOE_BASE_NS (AHB2PERIPH_BASE_NS + 0x1000UL)
  1358. #define GPIOF_BASE_NS (AHB2PERIPH_BASE_NS + 0x1400UL)
  1359. #define GPIOG_BASE_NS (AHB2PERIPH_BASE_NS + 0x1800UL)
  1360. #define GPIOH_BASE_NS (AHB2PERIPH_BASE_NS + 0x1C00UL)
  1361. #define ADC1_BASE_NS (AHB2PERIPH_BASE_NS + 0x8000UL)
  1362. #define ADC2_BASE_NS (AHB2PERIPH_BASE_NS + 0x8100UL)
  1363. #define ADC12_COMMON_BASE_NS (AHB2PERIPH_BASE_NS + 0x8300UL)
  1364. #define HASH_BASE_NS (AHB2PERIPH_BASE_NS + 0xA0400UL)
  1365. #define HASH_DIGEST_BASE_NS (AHB2PERIPH_BASE_NS + 0xA0710UL)
  1366. #define RNG_BASE_NS (AHB2PERIPH_BASE_NS + 0xA0800UL)
  1367. #define SDMMC1_BASE_NS (AHB2PERIPH_BASE_NS + 0xA8000UL)
  1368. /*!< AHB3 Non secure peripherals */
  1369. #define FMC_R_BASE_NS (AHB3PERIPH_BASE_NS + 0x0000UL) /*!< FMC control registers base address */
  1370. #define OCTOSPI1_R_BASE_NS (AHB3PERIPH_BASE_NS + 0x1000UL) /*!< OCTOSPI1 control registers base address */
  1371. /*!< FMC Banks Non secure registers base address */
  1372. #define FMC_Bank1_R_BASE_NS (FMC_R_BASE_NS + 0x0000UL)
  1373. #define FMC_Bank1E_R_BASE_NS (FMC_R_BASE_NS + 0x0104UL)
  1374. #define FMC_Bank3_R_BASE_NS (FMC_R_BASE_NS + 0x0080UL)
  1375. /* Flash, Peripheral and internal SRAMs base addresses - Secure aliased */
  1376. #define FLASH_BASE_S (0x0C000000UL) /*!< FLASH(up to 512 KB) base address */
  1377. #define SRAM1_BASE_S (0x30000000UL) /*!< SRAM1(up to 192 KB) base address */
  1378. #define SRAM2_BASE_S (0x30030000UL) /*!< SRAM2(64 KB) base address */
  1379. #define SRAM_BASE_S SRAM1_BASE_S
  1380. #define PERIPH_BASE_S (0x50000000UL) /*!< Peripheral secure base address */
  1381. /* Peripheral memory map - Secure */
  1382. #define APB1PERIPH_BASE_S PERIPH_BASE_S
  1383. #define APB2PERIPH_BASE_S (PERIPH_BASE_S + 0x00010000UL)
  1384. #define AHB1PERIPH_BASE_S (PERIPH_BASE_S + 0x00020000UL)
  1385. #define AHB2PERIPH_BASE_S (PERIPH_BASE_S + 0x02020000UL)
  1386. #define AHB3PERIPH_BASE_S (PERIPH_BASE_S + 0x04020000UL)
  1387. /*!< APB1 Secure peripherals */
  1388. #define TIM2_BASE_S (APB1PERIPH_BASE_S + 0x0000UL)
  1389. #define TIM3_BASE_S (APB1PERIPH_BASE_S + 0x0400UL)
  1390. #define TIM4_BASE_S (APB1PERIPH_BASE_S + 0x0800UL)
  1391. #define TIM5_BASE_S (APB1PERIPH_BASE_S + 0x0C00UL)
  1392. #define TIM6_BASE_S (APB1PERIPH_BASE_S + 0x1000UL)
  1393. #define TIM7_BASE_S (APB1PERIPH_BASE_S + 0x1400UL)
  1394. #define RTC_BASE_S (APB1PERIPH_BASE_S + 0x2800UL)
  1395. #define WWDG_BASE_S (APB1PERIPH_BASE_S + 0x2C00UL)
  1396. #define IWDG_BASE_S (APB1PERIPH_BASE_S + 0x3000UL)
  1397. #define TAMP_BASE_S (APB1PERIPH_BASE_S + 0x3400UL)
  1398. #define SPI2_BASE_S (APB1PERIPH_BASE_S + 0x3800UL)
  1399. #define SPI3_BASE_S (APB1PERIPH_BASE_S + 0x3C00UL)
  1400. #define USART2_BASE_S (APB1PERIPH_BASE_S + 0x4400UL)
  1401. #define USART3_BASE_S (APB1PERIPH_BASE_S + 0x4800UL)
  1402. #define UART4_BASE_S (APB1PERIPH_BASE_S + 0x4C00UL)
  1403. #define UART5_BASE_S (APB1PERIPH_BASE_S + 0x5000UL)
  1404. #define I2C1_BASE_S (APB1PERIPH_BASE_S + 0x5400UL)
  1405. #define I2C2_BASE_S (APB1PERIPH_BASE_S + 0x5800UL)
  1406. #define I2C3_BASE_S (APB1PERIPH_BASE_S + 0x5C00UL)
  1407. #define CRS_BASE_S (APB1PERIPH_BASE_S + 0x6000UL)
  1408. #define PWR_BASE_S (APB1PERIPH_BASE_S + 0x7000UL)
  1409. #define DAC_BASE_S (APB1PERIPH_BASE_S + 0x7400UL)
  1410. #define DAC1_BASE_S (APB1PERIPH_BASE_S + 0x7400UL)
  1411. #define OPAMP_BASE_S (APB1PERIPH_BASE_S + 0x7800UL)
  1412. #define OPAMP1_BASE_S (APB1PERIPH_BASE_S + 0x7800UL)
  1413. #define OPAMP2_BASE_S (APB1PERIPH_BASE_S + 0x7810UL)
  1414. #define LPTIM1_BASE_S (APB1PERIPH_BASE_S + 0x7C00UL)
  1415. #define LPUART1_BASE_S (APB1PERIPH_BASE_S + 0x8000UL)
  1416. #define I2C4_BASE_S (APB1PERIPH_BASE_S + 0x8400UL)
  1417. #define LPTIM2_BASE_S (APB1PERIPH_BASE_S + 0x9400UL)
  1418. #define LPTIM3_BASE_S (APB1PERIPH_BASE_S + 0x9800UL)
  1419. #define FDCAN1_BASE_S (APB1PERIPH_BASE_S + 0xA400UL)
  1420. #define FDCAN_CONFIG_BASE_S (APB1PERIPH_BASE_S + 0xA500UL)
  1421. #define SRAMCAN_BASE_S (APB1PERIPH_BASE_S + 0xAC00UL)
  1422. #define USB_BASE_S (APB1PERIPH_BASE_S + 0xD400UL) /*!< USB_IP Peripheral Registers base address */
  1423. #define USB_PMAADDR_S (APB1PERIPH_BASE_S + 0xD800UL) /*!< USB_IP Packet Memory Area base address */
  1424. #define UCPD1_BASE_S (APB1PERIPH_BASE_S + 0xDC00UL)
  1425. /*!< APB2 Secure peripherals */
  1426. #define SYSCFG_BASE_S (APB2PERIPH_BASE_S + 0x0000UL)
  1427. #define VREFBUF_BASE_S (APB2PERIPH_BASE_S + 0x0100UL)
  1428. #define COMP1_BASE_S (APB2PERIPH_BASE_S + 0x0200UL)
  1429. #define COMP2_BASE_S (APB2PERIPH_BASE_S + 0x0204UL)
  1430. #define TIM1_BASE_S (APB2PERIPH_BASE_S + 0x2C00UL)
  1431. #define SPI1_BASE_S (APB2PERIPH_BASE_S + 0x3000UL)
  1432. #define TIM8_BASE_S (APB2PERIPH_BASE_S + 0x3400UL)
  1433. #define USART1_BASE_S (APB2PERIPH_BASE_S + 0x3800UL)
  1434. #define TIM15_BASE_S (APB2PERIPH_BASE_S + 0x4000UL)
  1435. #define TIM16_BASE_S (APB2PERIPH_BASE_S + 0x4400UL)
  1436. #define TIM17_BASE_S (APB2PERIPH_BASE_S + 0x4800UL)
  1437. #define SAI1_BASE_S (APB2PERIPH_BASE_S + 0x5400UL)
  1438. #define SAI1_Block_A_BASE_S (SAI1_BASE_S + 0x0004UL)
  1439. #define SAI1_Block_B_BASE_S (SAI1_BASE_S + 0x0024UL)
  1440. #define SAI2_BASE_S (APB2PERIPH_BASE_S + 0x5800UL)
  1441. #define SAI2_Block_A_BASE_S (SAI2_BASE_S + 0x0004UL)
  1442. #define SAI2_Block_B_BASE_S (SAI2_BASE_S + 0x0024UL)
  1443. #define DFSDM1_BASE_S (APB2PERIPH_BASE_S + 0x6000UL)
  1444. #define DFSDM1_Channel0_BASE_S (DFSDM1_BASE_S + 0x0000UL)
  1445. #define DFSDM1_Channel1_BASE_S (DFSDM1_BASE_S + 0x0020UL)
  1446. #define DFSDM1_Channel2_BASE_S (DFSDM1_BASE_S + 0x0040UL)
  1447. #define DFSDM1_Channel3_BASE_S (DFSDM1_BASE_S + 0x0060UL)
  1448. #define DFSDM1_Filter0_BASE_S (DFSDM1_BASE_S + 0x0100UL)
  1449. #define DFSDM1_Filter1_BASE_S (DFSDM1_BASE_S + 0x0180UL)
  1450. #define DFSDM1_Filter2_BASE_S (DFSDM1_BASE_S + 0x0200UL)
  1451. #define DFSDM1_Filter3_BASE_S (DFSDM1_BASE_S + 0x0280UL)
  1452. /*!< AHB1 Secure peripherals */
  1453. #define DMA1_BASE_S (AHB1PERIPH_BASE_S)
  1454. #define DMA2_BASE_S (AHB1PERIPH_BASE_S + 0x0400UL)
  1455. #define DMAMUX1_BASE_S (AHB1PERIPH_BASE_S + 0x0800UL)
  1456. #define RCC_BASE_S (AHB1PERIPH_BASE_S + 0x1000UL)
  1457. #define FLASH_R_BASE_S (AHB1PERIPH_BASE_S + 0x2000UL)
  1458. #define CRC_BASE_S (AHB1PERIPH_BASE_S + 0x3000UL)
  1459. #define TSC_BASE_S (AHB1PERIPH_BASE_S + 0x4000UL)
  1460. #define EXTI_BASE_S (AHB1PERIPH_BASE_S + 0xF400UL)
  1461. #define ICACHE_BASE_S (AHB1PERIPH_BASE_S + 0x10400UL)
  1462. #define GTZC_TZSC_BASE_S (AHB1PERIPH_BASE_S + 0x12400UL)
  1463. #define GTZC_TZIC_BASE_S (AHB1PERIPH_BASE_S + 0x12800UL)
  1464. #define GTZC_MPCBB1_BASE_S (AHB1PERIPH_BASE_S + 0x12C00UL)
  1465. #define GTZC_MPCBB2_BASE_S (AHB1PERIPH_BASE_S + 0x13000UL)
  1466. #define DMA1_Channel1_BASE_S (DMA1_BASE_S + 0x0008UL)
  1467. #define DMA1_Channel2_BASE_S (DMA1_BASE_S + 0x001CUL)
  1468. #define DMA1_Channel3_BASE_S (DMA1_BASE_S + 0x0030UL)
  1469. #define DMA1_Channel4_BASE_S (DMA1_BASE_S + 0x0044UL)
  1470. #define DMA1_Channel5_BASE_S (DMA1_BASE_S + 0x0058UL)
  1471. #define DMA1_Channel6_BASE_S (DMA1_BASE_S + 0x006CUL)
  1472. #define DMA1_Channel7_BASE_S (DMA1_BASE_S + 0x0080UL)
  1473. #define DMA1_Channel8_BASE_S (DMA1_BASE_S + 0x0094UL)
  1474. #define DMA2_Channel1_BASE_S (DMA2_BASE_S + 0x0008UL)
  1475. #define DMA2_Channel2_BASE_S (DMA2_BASE_S + 0x001CUL)
  1476. #define DMA2_Channel3_BASE_S (DMA2_BASE_S + 0x0030UL)
  1477. #define DMA2_Channel4_BASE_S (DMA2_BASE_S + 0x0044UL)
  1478. #define DMA2_Channel5_BASE_S (DMA2_BASE_S + 0x0058UL)
  1479. #define DMA2_Channel6_BASE_S (DMA2_BASE_S + 0x006CUL)
  1480. #define DMA2_Channel7_BASE_S (DMA2_BASE_S + 0x0080UL)
  1481. #define DMA2_Channel8_BASE_S (DMA2_BASE_S + 0x0094UL)
  1482. #define DMAMUX1_Channel0_BASE_S (DMAMUX1_BASE_S)
  1483. #define DMAMUX1_Channel1_BASE_S (DMAMUX1_BASE_S + 0x00000004UL)
  1484. #define DMAMUX1_Channel2_BASE_S (DMAMUX1_BASE_S + 0x00000008UL)
  1485. #define DMAMUX1_Channel3_BASE_S (DMAMUX1_BASE_S + 0x0000000CUL)
  1486. #define DMAMUX1_Channel4_BASE_S (DMAMUX1_BASE_S + 0x00000010UL)
  1487. #define DMAMUX1_Channel5_BASE_S (DMAMUX1_BASE_S + 0x00000014UL)
  1488. #define DMAMUX1_Channel6_BASE_S (DMAMUX1_BASE_S + 0x00000018UL)
  1489. #define DMAMUX1_Channel7_BASE_S (DMAMUX1_BASE_S + 0x0000001CUL)
  1490. #define DMAMUX1_Channel8_BASE_S (DMAMUX1_BASE_S + 0x00000020UL)
  1491. #define DMAMUX1_Channel9_BASE_S (DMAMUX1_BASE_S + 0x00000024UL)
  1492. #define DMAMUX1_Channel10_BASE_S (DMAMUX1_BASE_S + 0x00000028UL)
  1493. #define DMAMUX1_Channel11_BASE_S (DMAMUX1_BASE_S + 0x0000002CUL)
  1494. #define DMAMUX1_Channel12_BASE_S (DMAMUX1_BASE_S + 0x00000030UL)
  1495. #define DMAMUX1_Channel13_BASE_S (DMAMUX1_BASE_S + 0x00000034UL)
  1496. #define DMAMUX1_Channel14_BASE_S (DMAMUX1_BASE_S + 0x00000038UL)
  1497. #define DMAMUX1_Channel15_BASE_S (DMAMUX1_BASE_S + 0x0000003CUL)
  1498. #define DMAMUX1_RequestGenerator0_BASE_S (DMAMUX1_BASE_S + 0x00000100UL)
  1499. #define DMAMUX1_RequestGenerator1_BASE_S (DMAMUX1_BASE_S + 0x00000104UL)
  1500. #define DMAMUX1_RequestGenerator2_BASE_S (DMAMUX1_BASE_S + 0x00000108UL)
  1501. #define DMAMUX1_RequestGenerator3_BASE_S (DMAMUX1_BASE_S + 0x0000010CUL)
  1502. #define DMAMUX1_ChannelStatus_BASE_S (DMAMUX1_BASE_S + 0x00000080UL)
  1503. #define DMAMUX1_RequestGenStatus_BASE_S (DMAMUX1_BASE_S + 0x00000140UL)
  1504. /*!< AHB2 Secure peripherals */
  1505. #define GPIOA_BASE_S (AHB2PERIPH_BASE_S + 0x0000UL)
  1506. #define GPIOB_BASE_S (AHB2PERIPH_BASE_S + 0x0400UL)
  1507. #define GPIOC_BASE_S (AHB2PERIPH_BASE_S + 0x0800UL)
  1508. #define GPIOD_BASE_S (AHB2PERIPH_BASE_S + 0x0C00UL)
  1509. #define GPIOE_BASE_S (AHB2PERIPH_BASE_S + 0x1000UL)
  1510. #define GPIOF_BASE_S (AHB2PERIPH_BASE_S + 0x1400UL)
  1511. #define GPIOG_BASE_S (AHB2PERIPH_BASE_S + 0x1800UL)
  1512. #define GPIOH_BASE_S (AHB2PERIPH_BASE_S + 0x1C00UL)
  1513. #define ADC1_BASE_S (AHB2PERIPH_BASE_S + 0x8000UL)
  1514. #define ADC2_BASE_S (AHB2PERIPH_BASE_S + 0x8100UL)
  1515. #define ADC12_COMMON_BASE_S (AHB2PERIPH_BASE_S + 0x8300UL)
  1516. #define HASH_BASE_S (AHB2PERIPH_BASE_S + 0xA0400UL)
  1517. #define HASH_DIGEST_BASE_S (AHB2PERIPH_BASE_S + 0xA0710UL)
  1518. #define RNG_BASE_S (AHB2PERIPH_BASE_S + 0xA0800UL)
  1519. #define SDMMC1_BASE_S (AHB2PERIPH_BASE_S + 0xA8000UL)
  1520. /*!< AHB3 Secure peripherals */
  1521. #define FMC_R_BASE_S (AHB3PERIPH_BASE_S + 0x0000UL) /*!< FMC control registers base address */
  1522. #define OCTOSPI1_R_BASE_S (AHB3PERIPH_BASE_S + 0x1000UL) /*!< OCTOSPI1 control registers base address */
  1523. /*!< FMC Banks Secure registers base address */
  1524. #define FMC_Bank1_R_BASE_S (FMC_R_BASE_S + 0x0000UL)
  1525. #define FMC_Bank1E_R_BASE_S (FMC_R_BASE_S + 0x0104UL)
  1526. #define FMC_Bank3_R_BASE_S (FMC_R_BASE_S + 0x0080UL)
  1527. /* Debug MCU registers base address */
  1528. #define DBGMCU_BASE (0xE0044000UL)
  1529. #define PACKAGE_BASE (0x0BFA0500UL) /*!< Package data register base address */
  1530. #define UID_BASE (0x0BFA0590UL) /*!< Unique device ID register base address */
  1531. #define FLASHSIZE_BASE (0x0BFA05E0UL) /*!< Flash size data register base address */
  1532. /* Internal Flash size */
  1533. #define FLASH_SIZE ((((*((uint16_t *)FLASHSIZE_BASE)) == 0xFFFFU)) ? 0x80000U : \
  1534. ((((*((uint16_t *)FLASHSIZE_BASE)) == 0x0000U)) ? 0x80000U : \
  1535. (((uint32_t)(*((uint16_t *)FLASHSIZE_BASE)) & (0x0FFFU)) << 10U)))
  1536. /* OTP Area */
  1537. #define OTP_BASE (0x0BFA0000UL)
  1538. #define OTP_SIZE (0x200U)
  1539. /** @} */ /* End of group STM32L5xx_Peripheral_peripheralAddr */
  1540. /* =========================================================================================================================== */
  1541. /* ================ Peripheral declaration ================ */
  1542. /* =========================================================================================================================== */
  1543. /** @addtogroup STM32L5xx_Peripheral_declaration
  1544. * @{
  1545. */
  1546. /*!< APB1 Non secure peripherals */
  1547. #define TIM2_NS ((TIM_TypeDef *) TIM2_BASE_NS)
  1548. #define TIM3_NS ((TIM_TypeDef *) TIM3_BASE_NS)
  1549. #define TIM4_NS ((TIM_TypeDef *) TIM4_BASE_NS)
  1550. #define TIM5_NS ((TIM_TypeDef *) TIM5_BASE_NS)
  1551. #define TIM6_NS ((TIM_TypeDef *) TIM6_BASE_NS)
  1552. #define TIM7_NS ((TIM_TypeDef *) TIM7_BASE_NS)
  1553. #define RTC_NS ((RTC_TypeDef *) RTC_BASE_NS)
  1554. #define WWDG_NS ((WWDG_TypeDef *) WWDG_BASE_NS)
  1555. #define IWDG_NS ((IWDG_TypeDef *) IWDG_BASE_NS)
  1556. #define TAMP_NS ((TAMP_TypeDef *) TAMP_BASE_NS)
  1557. #define SPI2_NS ((SPI_TypeDef *) SPI2_BASE_NS)
  1558. #define SPI3_NS ((SPI_TypeDef *) SPI3_BASE_NS)
  1559. #define USART2_NS ((USART_TypeDef *) USART2_BASE_NS)
  1560. #define USART3_NS ((USART_TypeDef *) USART3_BASE_NS)
  1561. #define UART4_NS ((USART_TypeDef *) UART4_BASE_NS)
  1562. #define UART5_NS ((USART_TypeDef *) UART5_BASE_NS)
  1563. #define I2C1_NS ((I2C_TypeDef *) I2C1_BASE_NS)
  1564. #define I2C2_NS ((I2C_TypeDef *) I2C2_BASE_NS)
  1565. #define I2C3_NS ((I2C_TypeDef *) I2C3_BASE_NS)
  1566. #define CRS_NS ((CRS_TypeDef *) CRS_BASE_NS)
  1567. #define FDCAN1_NS ((FDCAN_GlobalTypeDef *) FDCAN1_BASE_NS)
  1568. #define FDCAN_CONFIG_NS ((FDCAN_Config_TypeDef *) FDCAN_CONFIG_BASE_NS)
  1569. #define I2C4_NS ((I2C_TypeDef *) I2C4_BASE_NS)
  1570. #define PWR_NS ((PWR_TypeDef *) PWR_BASE_NS)
  1571. #define DAC_NS ((DAC_TypeDef *) DAC1_BASE_NS)
  1572. #define DAC1_NS ((DAC_TypeDef *) DAC1_BASE_NS)
  1573. #define OPAMP_NS ((OPAMP_TypeDef *) OPAMP_BASE_NS)
  1574. #define OPAMP1_NS ((OPAMP_TypeDef *) OPAMP1_BASE_NS)
  1575. #define OPAMP2_NS ((OPAMP_TypeDef *) OPAMP2_BASE_NS)
  1576. #define OPAMP12_COMMON_NS ((OPAMP_Common_TypeDef *) OPAMP1_BASE_NS)
  1577. #define LPTIM1_NS ((LPTIM_TypeDef *) LPTIM1_BASE_NS)
  1578. #define LPUART1_NS ((USART_TypeDef *) LPUART1_BASE_NS)
  1579. #define LPTIM2_NS ((LPTIM_TypeDef *) LPTIM2_BASE_NS)
  1580. #define LPTIM3_NS ((LPTIM_TypeDef *) LPTIM3_BASE_NS)
  1581. #define USB_NS ((USB_TypeDef *) USB_BASE_NS)
  1582. #define UCPD1_NS ((UCPD_TypeDef *) UCPD1_BASE_NS)
  1583. /*!< APB2 Non secure peripherals */
  1584. #define SYSCFG_NS ((SYSCFG_TypeDef *) SYSCFG_BASE_NS)
  1585. #define VREFBUF_NS ((VREFBUF_TypeDef *) VREFBUF_BASE_NS)
  1586. #define COMP1_NS ((COMP_TypeDef *) COMP1_BASE_NS)
  1587. #define COMP2_NS ((COMP_TypeDef *) COMP2_BASE_NS)
  1588. #define COMP12_COMMON_NS ((COMP_Common_TypeDef *) COMP2_BASE_NS)
  1589. #define TIM1_NS ((TIM_TypeDef *) TIM1_BASE_NS)
  1590. #define SPI1_NS ((SPI_TypeDef *) SPI1_BASE_NS)
  1591. #define TIM8_NS ((TIM_TypeDef *) TIM8_BASE_NS)
  1592. #define USART1_NS ((USART_TypeDef *) USART1_BASE_NS)
  1593. #define TIM15_NS ((TIM_TypeDef *) TIM15_BASE_NS)
  1594. #define TIM16_NS ((TIM_TypeDef *) TIM16_BASE_NS)
  1595. #define TIM17_NS ((TIM_TypeDef *) TIM17_BASE_NS)
  1596. #define SAI1_NS ((SAI_TypeDef *) SAI1_BASE_NS)
  1597. #define SAI1_Block_A_NS ((SAI_Block_TypeDef *)SAI1_Block_A_BASE_NS)
  1598. #define SAI1_Block_B_NS ((SAI_Block_TypeDef *)SAI1_Block_B_BASE_NS)
  1599. #define SAI2_NS ((SAI_TypeDef *) SAI2_BASE_NS)
  1600. #define SAI2_Block_A_NS ((SAI_Block_TypeDef *)SAI2_Block_A_BASE_NS)
  1601. #define SAI2_Block_B_NS ((SAI_Block_TypeDef *)SAI2_Block_B_BASE_NS)
  1602. #define DFSDM1_Channel0_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE_NS)
  1603. #define DFSDM1_Channel1_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE_NS)
  1604. #define DFSDM1_Channel2_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE_NS)
  1605. #define DFSDM1_Channel3_NS ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE_NS)
  1606. #define DFSDM1_Filter0_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE_NS)
  1607. #define DFSDM1_Filter1_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE_NS)
  1608. #define DFSDM1_Filter2_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE_NS)
  1609. #define DFSDM1_Filter3_NS ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE_NS)
  1610. /*!< AHB1 Non secure peripherals */
  1611. #define DMA1_NS ((DMA_TypeDef *) DMA1_BASE_NS)
  1612. #define DMA2_NS ((DMA_TypeDef *) DMA2_BASE_NS)
  1613. #define DMAMUX1_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_BASE_NS)
  1614. #define RCC_NS ((RCC_TypeDef *) RCC_BASE_NS)
  1615. #define FLASH_NS ((FLASH_TypeDef *) FLASH_R_BASE_NS)
  1616. #define CRC_NS ((CRC_TypeDef *) CRC_BASE_NS)
  1617. #define TSC_NS ((TSC_TypeDef *) TSC_BASE_NS)
  1618. #define EXTI_NS ((EXTI_TypeDef *) EXTI_BASE_NS)
  1619. #define ICACHE_NS ((ICACHE_TypeDef *) ICACHE_BASE_NS)
  1620. #define GTZC_TZSC_NS ((GTZC_TZSC_TypeDef *) GTZC_TZSC_BASE_NS)
  1621. #define GTZC_TZIC_NS ((GTZC_TZIC_TypeDef *) GTZC_TZIC_BASE_NS)
  1622. #define GTZC_MPCBB2_NS ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB2_BASE_NS)
  1623. #define GTZC_MPCBB1_NS ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB1_BASE_NS)
  1624. #define DMA1_Channel1_NS ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE_NS)
  1625. #define DMA1_Channel2_NS ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE_NS)
  1626. #define DMA1_Channel3_NS ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE_NS)
  1627. #define DMA1_Channel4_NS ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE_NS)
  1628. #define DMA1_Channel5_NS ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE_NS)
  1629. #define DMA1_Channel6_NS ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE_NS)
  1630. #define DMA1_Channel7_NS ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE_NS)
  1631. #define DMA1_Channel8_NS ((DMA_Channel_TypeDef *) DMA1_Channel8_BASE_NS)
  1632. #define DMA2_Channel1_NS ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE_NS)
  1633. #define DMA2_Channel2_NS ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE_NS)
  1634. #define DMA2_Channel3_NS ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE_NS)
  1635. #define DMA2_Channel4_NS ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE_NS)
  1636. #define DMA2_Channel5_NS ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE_NS)
  1637. #define DMA2_Channel6_NS ((DMA_Channel_TypeDef *) DMA2_Channel6_BASE_NS)
  1638. #define DMA2_Channel7_NS ((DMA_Channel_TypeDef *) DMA2_Channel7_BASE_NS)
  1639. #define DMA2_Channel8_NS ((DMA_Channel_TypeDef *) DMA2_Channel8_BASE_NS)
  1640. #define DMAMUX1_Channel0_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE_NS)
  1641. #define DMAMUX1_Channel1_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE_NS)
  1642. #define DMAMUX1_Channel2_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE_NS)
  1643. #define DMAMUX1_Channel3_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE_NS)
  1644. #define DMAMUX1_Channel4_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE_NS)
  1645. #define DMAMUX1_Channel5_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE_NS)
  1646. #define DMAMUX1_Channel6_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE_NS)
  1647. #define DMAMUX1_Channel7_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE_NS)
  1648. #define DMAMUX1_Channel8_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE_NS)
  1649. #define DMAMUX1_Channel9_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE_NS)
  1650. #define DMAMUX1_Channel10_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE_NS)
  1651. #define DMAMUX1_Channel11_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE_NS)
  1652. #define DMAMUX1_Channel12_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE_NS)
  1653. #define DMAMUX1_Channel13_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE_NS)
  1654. #define DMAMUX1_Channel14_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE_NS)
  1655. #define DMAMUX1_Channel15_NS ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE_NS)
  1656. #define DMAMUX1_RequestGenerator0_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE_NS)
  1657. #define DMAMUX1_RequestGenerator1_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE_NS)
  1658. #define DMAMUX1_RequestGenerator2_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE_NS)
  1659. #define DMAMUX1_RequestGenerator3_NS ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE_NS)
  1660. #define DMAMUX1_ChannelStatus_NS ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE_NS)
  1661. #define DMAMUX1_RequestGenStatus_NS ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE_NS)
  1662. /*!< AHB2 Non secure peripherals */
  1663. #define GPIOA_NS ((GPIO_TypeDef *) GPIOA_BASE_NS)
  1664. #define GPIOB_NS ((GPIO_TypeDef *) GPIOB_BASE_NS)
  1665. #define GPIOC_NS ((GPIO_TypeDef *) GPIOC_BASE_NS)
  1666. #define GPIOD_NS ((GPIO_TypeDef *) GPIOD_BASE_NS)
  1667. #define GPIOE_NS ((GPIO_TypeDef *) GPIOE_BASE_NS)
  1668. #define GPIOF_NS ((GPIO_TypeDef *) GPIOF_BASE_NS)
  1669. #define GPIOG_NS ((GPIO_TypeDef *) GPIOG_BASE_NS)
  1670. #define GPIOH_NS ((GPIO_TypeDef *) GPIOH_BASE_NS)
  1671. #define ADC1_NS ((ADC_TypeDef *) ADC1_BASE_NS)
  1672. #define ADC2_NS ((ADC_TypeDef *) ADC2_BASE_NS)
  1673. #define ADC12_COMMON_NS ((ADC_Common_TypeDef *) ADC12_COMMON_BASE_NS)
  1674. #define HASH_NS ((HASH_TypeDef *) HASH_BASE_NS)
  1675. #define HASH_DIGEST_NS ((HASH_DIGEST_TypeDef *) HASH_DIGEST_BASE_NS)
  1676. #define RNG_NS ((RNG_TypeDef *) RNG_BASE_NS)
  1677. #define SDMMC1_NS ((SDMMC_TypeDef *) SDMMC1_BASE_NS)
  1678. /*!< AHB3 Non secure peripherals */
  1679. #define FMC_Bank1_R_NS ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE_NS)
  1680. #define FMC_Bank1E_R_NS ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE_NS)
  1681. #define FMC_Bank3_R_NS ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE_NS)
  1682. #define OCTOSPI1_NS ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE_NS)
  1683. /*!< APB1 Secure peripherals */
  1684. #define TIM2_S ((TIM_TypeDef *) TIM2_BASE_S)
  1685. #define TIM3_S ((TIM_TypeDef *) TIM3_BASE_S)
  1686. #define TIM4_S ((TIM_TypeDef *) TIM4_BASE_S)
  1687. #define TIM5_S ((TIM_TypeDef *) TIM5_BASE_S)
  1688. #define TIM6_S ((TIM_TypeDef *) TIM6_BASE_S)
  1689. #define TIM7_S ((TIM_TypeDef *) TIM7_BASE_S)
  1690. #define RTC_S ((RTC_TypeDef *) RTC_BASE_S)
  1691. #define WWDG_S ((WWDG_TypeDef *) WWDG_BASE_S)
  1692. #define IWDG_S ((IWDG_TypeDef *) IWDG_BASE_S)
  1693. #define TAMP_S ((TAMP_TypeDef *) TAMP_BASE_S)
  1694. #define SPI2_S ((SPI_TypeDef *) SPI2_BASE_S)
  1695. #define SPI3_S ((SPI_TypeDef *) SPI3_BASE_S)
  1696. #define USART2_S ((USART_TypeDef *) USART2_BASE_S)
  1697. #define USART3_S ((USART_TypeDef *) USART3_BASE_S)
  1698. #define UART4_S ((USART_TypeDef *) UART4_BASE_S)
  1699. #define UART5_S ((USART_TypeDef *) UART5_BASE_S)
  1700. #define I2C1_S ((I2C_TypeDef *) I2C1_BASE_S)
  1701. #define I2C2_S ((I2C_TypeDef *) I2C2_BASE_S)
  1702. #define I2C3_S ((I2C_TypeDef *) I2C3_BASE_S)
  1703. #define CRS_S ((CRS_TypeDef *) CRS_BASE_S)
  1704. #define FDCAN1_S ((FDCAN_GlobalTypeDef *) FDCAN1_BASE_S)
  1705. #define FDCAN_CONFIG_S ((FDCAN_Config_TypeDef *) FDCAN_CONFIG_BASE_S)
  1706. #define I2C4_S ((I2C_TypeDef *) I2C4_BASE_S)
  1707. #define PWR_S ((PWR_TypeDef *) PWR_BASE_S)
  1708. #define DAC_S ((DAC_TypeDef *) DAC1_BASE_S)
  1709. #define DAC1_S ((DAC_TypeDef *) DAC1_BASE_S)
  1710. #define OPAMP_S ((OPAMP_TypeDef *) OPAMP_BASE_S)
  1711. #define OPAMP1_S ((OPAMP_TypeDef *) OPAMP1_BASE_S)
  1712. #define OPAMP2_S ((OPAMP_TypeDef *) OPAMP2_BASE_S)
  1713. #define OPAMP12_COMMON_S ((OPAMP_Common_TypeDef *) OPAMP1_BASE_S)
  1714. #define LPTIM1_S ((LPTIM_TypeDef *) LPTIM1_BASE_S)
  1715. #define LPUART1_S ((USART_TypeDef *) LPUART1_BASE_S)
  1716. #define LPTIM2_S ((LPTIM_TypeDef *) LPTIM2_BASE_S)
  1717. #define LPTIM3_S ((LPTIM_TypeDef *) LPTIM3_BASE_S)
  1718. #define USB_S ((USB_TypeDef *) USB_BASE_S)
  1719. #define UCPD1_S ((UCPD_TypeDef *) UCPD1_BASE_S)
  1720. /*!< APB2 Secure peripherals */
  1721. #define SYSCFG_S ((SYSCFG_TypeDef *) SYSCFG_BASE_S)
  1722. #define VREFBUF_S ((VREFBUF_TypeDef *) VREFBUF_BASE_S)
  1723. #define COMP1_S ((COMP_TypeDef *) COMP1_BASE_S)
  1724. #define COMP2_S ((COMP_TypeDef *) COMP2_BASE_S)
  1725. #define COMP12_COMMON_S ((COMP_Common_TypeDef *) COMP2_BASE_S)
  1726. #define TIM1_S ((TIM_TypeDef *) TIM1_BASE_S)
  1727. #define SPI1_S ((SPI_TypeDef *) SPI1_BASE_S)
  1728. #define TIM8_S ((TIM_TypeDef *) TIM8_BASE_S)
  1729. #define USART1_S ((USART_TypeDef *) USART1_BASE_S)
  1730. #define TIM15_S ((TIM_TypeDef *) TIM15_BASE_S)
  1731. #define TIM16_S ((TIM_TypeDef *) TIM16_BASE_S)
  1732. #define TIM17_S ((TIM_TypeDef *) TIM17_BASE_S)
  1733. #define SAI1_S ((SAI_TypeDef *) SAI1_BASE_S)
  1734. #define SAI1_Block_A_S ((SAI_Block_TypeDef *)SAI1_Block_A_BASE_S)
  1735. #define SAI1_Block_B_S ((SAI_Block_TypeDef *)SAI1_Block_B_BASE_S)
  1736. #define SAI2_S ((SAI_TypeDef *) SAI2_BASE_S)
  1737. #define SAI2_Block_A_S ((SAI_Block_TypeDef *)SAI2_Block_A_BASE_S)
  1738. #define SAI2_Block_B_S ((SAI_Block_TypeDef *)SAI2_Block_B_BASE_S)
  1739. #define DFSDM1_Channel0_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE_S)
  1740. #define DFSDM1_Channel1_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE_S)
  1741. #define DFSDM1_Channel2_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE_S)
  1742. #define DFSDM1_Channel3_S ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE_S)
  1743. #define DFSDM1_Filter0_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE_S)
  1744. #define DFSDM1_Filter1_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE_S)
  1745. #define DFSDM1_Filter2_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE_S)
  1746. #define DFSDM1_Filter3_S ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE_S)
  1747. /*!< AHB1 Secure peripherals */
  1748. #define DMA1_S ((DMA_TypeDef *) DMA1_BASE_S)
  1749. #define DMA2_S ((DMA_TypeDef *) DMA2_BASE_S)
  1750. #define DMAMUX1_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_BASE_S)
  1751. #define RCC_S ((RCC_TypeDef *) RCC_BASE_S)
  1752. #define FLASH_S ((FLASH_TypeDef *) FLASH_R_BASE_S)
  1753. #define CRC_S ((CRC_TypeDef *) CRC_BASE_S)
  1754. #define TSC_S ((TSC_TypeDef *) TSC_BASE_S)
  1755. #define EXTI_S ((EXTI_TypeDef *) EXTI_BASE_S)
  1756. #define ICACHE_S ((ICACHE_TypeDef *) ICACHE_BASE_S)
  1757. #define GTZC_TZSC_S ((GTZC_TZSC_TypeDef *) GTZC_TZSC_BASE_S)
  1758. #define GTZC_TZIC_S ((GTZC_TZIC_TypeDef *) GTZC_TZIC_BASE_S)
  1759. #define GTZC_MPCBB2_S ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB2_BASE_S)
  1760. #define GTZC_MPCBB1_S ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB1_BASE_S)
  1761. #define DMA1_Channel1_S ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE_S)
  1762. #define DMA1_Channel2_S ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE_S)
  1763. #define DMA1_Channel3_S ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE_S)
  1764. #define DMA1_Channel4_S ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE_S)
  1765. #define DMA1_Channel5_S ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE_S)
  1766. #define DMA1_Channel6_S ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE_S)
  1767. #define DMA1_Channel7_S ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE_S)
  1768. #define DMA1_Channel8_S ((DMA_Channel_TypeDef *) DMA1_Channel8_BASE_S)
  1769. #define DMA2_Channel1_S ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE_S)
  1770. #define DMA2_Channel2_S ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE_S)
  1771. #define DMA2_Channel3_S ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE_S)
  1772. #define DMA2_Channel4_S ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE_S)
  1773. #define DMA2_Channel5_S ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE_S)
  1774. #define DMA2_Channel6_S ((DMA_Channel_TypeDef *) DMA2_Channel6_BASE_S)
  1775. #define DMA2_Channel7_S ((DMA_Channel_TypeDef *) DMA2_Channel7_BASE_S)
  1776. #define DMA2_Channel8_S ((DMA_Channel_TypeDef *) DMA2_Channel8_BASE_S)
  1777. #define DMAMUX1_Channel0_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE_S)
  1778. #define DMAMUX1_Channel1_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE_S)
  1779. #define DMAMUX1_Channel2_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE_S)
  1780. #define DMAMUX1_Channel3_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE_S)
  1781. #define DMAMUX1_Channel4_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE_S)
  1782. #define DMAMUX1_Channel5_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE_S)
  1783. #define DMAMUX1_Channel6_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE_S)
  1784. #define DMAMUX1_Channel7_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE_S)
  1785. #define DMAMUX1_Channel8_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE_S)
  1786. #define DMAMUX1_Channel9_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE_S)
  1787. #define DMAMUX1_Channel10_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE_S)
  1788. #define DMAMUX1_Channel11_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE_S)
  1789. #define DMAMUX1_Channel12_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE_S)
  1790. #define DMAMUX1_Channel13_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE_S)
  1791. #define DMAMUX1_Channel14_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE_S)
  1792. #define DMAMUX1_Channel15_S ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE_S)
  1793. #define DMAMUX1_RequestGenerator0_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE_S)
  1794. #define DMAMUX1_RequestGenerator1_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE_S)
  1795. #define DMAMUX1_RequestGenerator2_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE_S)
  1796. #define DMAMUX1_RequestGenerator3_S ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE_S)
  1797. #define DMAMUX1_ChannelStatus_S ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE_S)
  1798. #define DMAMUX1_RequestGenStatus_S ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE_S)
  1799. /*!< AHB2 Secure peripherals */
  1800. #define GPIOA_S ((GPIO_TypeDef *) GPIOA_BASE_S)
  1801. #define GPIOB_S ((GPIO_TypeDef *) GPIOB_BASE_S)
  1802. #define GPIOC_S ((GPIO_TypeDef *) GPIOC_BASE_S)
  1803. #define GPIOD_S ((GPIO_TypeDef *) GPIOD_BASE_S)
  1804. #define GPIOE_S ((GPIO_TypeDef *) GPIOE_BASE_S)
  1805. #define GPIOF_S ((GPIO_TypeDef *) GPIOF_BASE_S)
  1806. #define GPIOG_S ((GPIO_TypeDef *) GPIOG_BASE_S)
  1807. #define GPIOH_S ((GPIO_TypeDef *) GPIOH_BASE_S)
  1808. #define ADC1_S ((ADC_TypeDef *) ADC1_BASE_S)
  1809. #define ADC2_S ((ADC_TypeDef *) ADC2_BASE_S)
  1810. #define ADC12_COMMON_S ((ADC_Common_TypeDef *) ADC12_COMMON_BASE_S)
  1811. #define HASH_S ((HASH_TypeDef *) HASH_BASE_S)
  1812. #define HASH_DIGEST_S ((HASH_DIGEST_TypeDef *) HASH_DIGEST_BASE_S)
  1813. #define RNG_S ((RNG_TypeDef *) RNG_BASE_S)
  1814. #define SDMMC1_S ((SDMMC_TypeDef *) SDMMC1_BASE_S)
  1815. /*!< AHB3 Secure peripherals */
  1816. #define FMC_Bank1_R_S ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE_S)
  1817. #define FMC_Bank1E_R_S ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE_S)
  1818. #define FMC_Bank3_R_S ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE_S)
  1819. #define OCTOSPI1_S ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE_S)
  1820. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  1821. /*!< Memory & Instance aliases and base addresses for Non-Secure/Secure peripherals */
  1822. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  1823. /*!< Memory base addresses for Secure peripherals */
  1824. #define FLASH_BASE FLASH_BASE_S
  1825. #define SRAM1_BASE SRAM1_BASE_S
  1826. #define SRAM2_BASE SRAM2_BASE_S
  1827. #define SRAM_BASE SRAM1_BASE_S
  1828. #define PERIPH_BASE PERIPH_BASE_S
  1829. #define APB1PERIPH_BASE APB1PERIPH_BASE_S
  1830. #define APB2PERIPH_BASE APB2PERIPH_BASE_S
  1831. #define AHB1PERIPH_BASE AHB1PERIPH_BASE_S
  1832. #define AHB2PERIPH_BASE AHB2PERIPH_BASE_S
  1833. #define AHB3PERIPH_BASE AHB3PERIPH_BASE_S
  1834. /*!< Instance aliases and base addresses for Secure peripherals */
  1835. #define RCC RCC_S
  1836. #define RCC_BASE RCC_BASE_S
  1837. #define FLASH FLASH_S
  1838. #define FLASH_R_BASE FLASH_R_BASE_S
  1839. #define DMA1 DMA1_S
  1840. #define DMA1_BASE DMA1_BASE_S
  1841. #define DMA1_Channel1 DMA1_Channel1_S
  1842. #define DMA1_Channel1_BASE DMA1_Channel1_BASE_S
  1843. #define DMA1_Channel2 DMA1_Channel2_S
  1844. #define DMA1_Channel2_BASE DMA1_Channel2_BASE_S
  1845. #define DMA1_Channel3 DMA1_Channel3_S
  1846. #define DMA1_Channel3_BASE DMA1_Channel3_BASE_S
  1847. #define DMA1_Channel4 DMA1_Channel4_S
  1848. #define DMA1_Channel4_BASE DMA1_Channel4_BASE_S
  1849. #define DMA1_Channel5 DMA1_Channel5_S
  1850. #define DMA1_Channel5_BASE DMA1_Channel5_BASE_S
  1851. #define DMA1_Channel6 DMA1_Channel6_S
  1852. #define DMA1_Channel6_BASE DMA1_Channel6_BASE_S
  1853. #define DMA1_Channel7 DMA1_Channel7_S
  1854. #define DMA1_Channel7_BASE DMA1_Channel7_BASE_S
  1855. #define DMA1_Channel8 DMA1_Channel8_S
  1856. #define DMA1_Channel8_BASE DMA1_Channel8_BASE_S
  1857. #define DMA2 DMA2_S
  1858. #define DMA2_BASE DMA2_BASE_S
  1859. #define DMA2_Channel1 DMA2_Channel1_S
  1860. #define DMA2_Channel1_BASE DMA2_Channel1_BASE_S
  1861. #define DMA2_Channel2 DMA2_Channel2_S
  1862. #define DMA2_Channel2_BASE DMA2_Channel2_BASE_S
  1863. #define DMA2_Channel3 DMA2_Channel3_S
  1864. #define DMA2_Channel3_BASE DMA2_Channel3_BASE_S
  1865. #define DMA2_Channel4 DMA2_Channel4_S
  1866. #define DMA2_Channel4_BASE DMA2_Channel4_BASE_S
  1867. #define DMA2_Channel5 DMA2_Channel5_S
  1868. #define DMA2_Channel5_BASE DMA2_Channel5_BASE_S
  1869. #define DMA2_Channel6 DMA2_Channel6_S
  1870. #define DMA2_Channel6_BASE DMA2_Channel6_BASE_S
  1871. #define DMA2_Channel7 DMA2_Channel7_S
  1872. #define DMA2_Channel7_BASE DMA2_Channel7_BASE_S
  1873. #define DMA2_Channel8 DMA2_Channel8_S
  1874. #define DMA2_Channel8_BASE DMA2_Channel8_BASE_S
  1875. #define DMAMUX1 DMAMUX1_S
  1876. #define DMAMUX1_BASE DMAMUX1_BASE_S
  1877. #define DMAMUX1_Channel0 DMAMUX1_Channel0_S
  1878. #define DMAMUX1_Channel0_BASE DMAMUX1_Channel0_BASE_S
  1879. #define DMAMUX1_Channel1 DMAMUX1_Channel1_S
  1880. #define DMAMUX1_Channel1_BASE DMAMUX1_Channel1_BASE_S
  1881. #define DMAMUX1_Channel2 DMAMUX1_Channel2_S
  1882. #define DMAMUX1_Channel2_BASE DMAMUX1_Channel2_BASE_S
  1883. #define DMAMUX1_Channel3 DMAMUX1_Channel3_S
  1884. #define DMAMUX1_Channel3_BASE DMAMUX1_Channel3_BASE_S
  1885. #define DMAMUX1_Channel4 DMAMUX1_Channel4_S
  1886. #define DMAMUX1_Channel4_BASE DMAMUX1_Channel4_BASE_S
  1887. #define DMAMUX1_Channel5 DMAMUX1_Channel5_S
  1888. #define DMAMUX1_Channel5_BASE DMAMUX1_Channel5_BASE_S
  1889. #define DMAMUX1_Channel6 DMAMUX1_Channel6_S
  1890. #define DMAMUX1_Channel6_BASE DMAMUX1_Channel6_BASE_S
  1891. #define DMAMUX1_Channel7 DMAMUX1_Channel7_S
  1892. #define DMAMUX1_Channel7_BASE DMAMUX1_Channel7_BASE_S
  1893. #define DMAMUX1_Channel8 DMAMUX1_Channel8_S
  1894. #define DMAMUX1_Channel8_BASE DMAMUX1_Channel8_BASE_S
  1895. #define DMAMUX1_Channel9 DMAMUX1_Channel9_S
  1896. #define DMAMUX1_Channel9_BASE DMAMUX1_Channel9_BASE_S
  1897. #define DMAMUX1_Channel10 DMAMUX1_Channel10_S
  1898. #define DMAMUX1_Channel10_BASE DMAMUX1_Channel10_BASE_S
  1899. #define DMAMUX1_Channel11 DMAMUX1_Channel11_S
  1900. #define DMAMUX1_Channel11_BASE DMAMUX1_Channel11_BASE_S
  1901. #define DMAMUX1_Channel12 DMAMUX1_Channel12_S
  1902. #define DMAMUX1_Channel12_BASE DMAMUX1_Channel12_BASE_S
  1903. #define DMAMUX1_Channel13 DMAMUX1_Channel13_S
  1904. #define DMAMUX1_Channel13_BASE DMAMUX1_Channel13_BASE_S
  1905. #define DMAMUX1_Channel14 DMAMUX1_Channel14_S
  1906. #define DMAMUX1_Channel14_BASE DMAMUX1_Channel14_BASE_S
  1907. #define DMAMUX1_Channel15 DMAMUX1_Channel15_S
  1908. #define DMAMUX1_Channel15_BASE DMAMUX1_Channel15_BASE_S
  1909. #define DMAMUX1_RequestGenerator0 DMAMUX1_RequestGenerator0_S
  1910. #define DMAMUX1_RequestGenerator0_BASE DMAMUX1_RequestGenerator0_BASE_S
  1911. #define DMAMUX1_RequestGenerator1 DMAMUX1_RequestGenerator1_S
  1912. #define DMAMUX1_RequestGenerator1_BASE DMAMUX1_RequestGenerator1_BASE_S
  1913. #define DMAMUX1_RequestGenerator2 DMAMUX1_RequestGenerator2_S
  1914. #define DMAMUX1_RequestGenerator2_BASE DMAMUX1_RequestGenerator2_BASE_S
  1915. #define DMAMUX1_RequestGenerator3 DMAMUX1_RequestGenerator3_S
  1916. #define DMAMUX1_RequestGenerator3_BASE DMAMUX1_RequestGenerator3_BASE_S
  1917. #define DMAMUX1_ChannelStatus DMAMUX1_ChannelStatus_S
  1918. #define DMAMUX1_ChannelStatus_BASE DMAMUX1_ChannelStatus_BASE_S
  1919. #define DMAMUX1_RequestGenStatus DMAMUX1_RequestGenStatus_S
  1920. #define DMAMUX1_RequestGenStatus_BASE DMAMUX1_RequestGenStatus_BASE_S
  1921. #define GPIOA GPIOA_S
  1922. #define GPIOA_BASE GPIOA_BASE_S
  1923. #define GPIOB GPIOB_S
  1924. #define GPIOB_BASE GPIOB_BASE_S
  1925. #define GPIOC GPIOC_S
  1926. #define GPIOC_BASE GPIOC_BASE_S
  1927. #define GPIOD GPIOD_S
  1928. #define GPIOD_BASE GPIOD_BASE_S
  1929. #define GPIOE GPIOE_S
  1930. #define GPIOE_BASE GPIOE_BASE_S
  1931. #define GPIOF GPIOF_S
  1932. #define GPIOF_BASE GPIOF_BASE_S
  1933. #define GPIOG GPIOG_S
  1934. #define GPIOG_BASE GPIOG_BASE_S
  1935. #define GPIOH GPIOH_S
  1936. #define GPIOH_BASE GPIOH_BASE_S
  1937. #define PWR PWR_S
  1938. #define PWR_BASE PWR_BASE_S
  1939. #define EXTI EXTI_S
  1940. #define EXTI_BASE EXTI_BASE_S
  1941. #define ICACHE ICACHE_S
  1942. #define ICACHE_BASE ICACHE_BASE_S
  1943. #define GTZC_TZSC GTZC_TZSC_S
  1944. #define GTZC_TZSC_BASE GTZC_TZSC_BASE_S
  1945. #define GTZC_TZIC GTZC_TZIC_S
  1946. #define GTZC_TZIC_BASE GTZC_TZIC_BASE_S
  1947. #define GTZC_MPCBB2 GTZC_MPCBB2_S
  1948. #define GTZC_MPCBB2_BASE GTZC_MPCBB2_BASE_S
  1949. #define GTZC_MPCBB1 GTZC_MPCBB1_S
  1950. #define GTZC_MPCBB1_BASE GTZC_MPCBB1_BASE_S
  1951. #define RTC RTC_S
  1952. #define RTC_BASE RTC_BASE_S
  1953. #define TAMP TAMP_S
  1954. #define TAMP_BASE TAMP_BASE_S
  1955. #define TIM1 TIM1_S
  1956. #define TIM1_BASE TIM1_BASE_S
  1957. #define TIM2 TIM2_S
  1958. #define TIM2_BASE TIM2_BASE_S
  1959. #define TIM3 TIM3_S
  1960. #define TIM3_BASE TIM3_BASE_S
  1961. #define TIM4 TIM4_S
  1962. #define TIM4_BASE TIM4_BASE_S
  1963. #define TIM5 TIM5_S
  1964. #define TIM5_BASE TIM5_BASE_S
  1965. #define TIM6 TIM6_S
  1966. #define TIM6_BASE TIM6_BASE_S
  1967. #define TIM7 TIM7_S
  1968. #define TIM7_BASE TIM7_BASE_S
  1969. #define TIM8 TIM8_S
  1970. #define TIM8_BASE TIM8_BASE_S
  1971. #define TIM15 TIM15_S
  1972. #define TIM15_BASE TIM15_BASE_S
  1973. #define TIM16 TIM16_S
  1974. #define TIM16_BASE TIM16_BASE_S
  1975. #define TIM17 TIM17_S
  1976. #define TIM17_BASE TIM17_BASE_S
  1977. #define WWDG WWDG_S
  1978. #define WWDG_BASE WWDG_BASE_S
  1979. #define IWDG IWDG_S
  1980. #define IWDG_BASE IWDG_BASE_S
  1981. #define SPI1 SPI1_S
  1982. #define SPI1_BASE SPI1_BASE_S
  1983. #define SPI2 SPI2_S
  1984. #define SPI2_BASE SPI2_BASE_S
  1985. #define SPI3 SPI3_S
  1986. #define SPI3_BASE SPI3_BASE_S
  1987. #define USART1 USART1_S
  1988. #define USART1_BASE USART1_BASE_S
  1989. #define USART2 USART2_S
  1990. #define USART2_BASE USART2_BASE_S
  1991. #define USART3 USART3_S
  1992. #define USART3_BASE USART3_BASE_S
  1993. #define UART4 UART4_S
  1994. #define UART4_BASE UART4_BASE_S
  1995. #define UART5 UART5_S
  1996. #define UART5_BASE UART5_BASE_S
  1997. #define I2C1 I2C1_S
  1998. #define I2C1_BASE I2C1_BASE_S
  1999. #define I2C2 I2C2_S
  2000. #define I2C2_BASE I2C2_BASE_S
  2001. #define I2C3 I2C3_S
  2002. #define I2C3_BASE I2C3_BASE_S
  2003. #define I2C4 I2C4_S
  2004. #define I2C4_BASE I2C4_BASE_S
  2005. #define CRS CRS_S
  2006. #define CRS_BASE CRS_BASE_S
  2007. #define FDCAN1 FDCAN1_S
  2008. #define FDCAN1_BASE FDCAN1_BASE_S
  2009. #define FDCAN_CONFIG FDCAN_CONFIG_S
  2010. #define FDCAN_CONFIG_BASE FDCAN_CONFIG_BASE_S
  2011. #define SRAMCAN_BASE SRAMCAN_BASE_S
  2012. #define DAC DAC_S
  2013. #define DAC_BASE DAC_BASE_S
  2014. #define DAC1 DAC1_S
  2015. #define DAC1_BASE DAC1_BASE_S
  2016. #define OPAMP OPAMP_S
  2017. #define OPAMP_BASE OPAMP_BASE_S
  2018. #define OPAMP1 OPAMP1_S
  2019. #define OPAMP1_BASE OPAMP1_BASE_S
  2020. #define OPAMP2 OPAMP2_S
  2021. #define OPAMP2_BASE OPAMP2_BASE_S
  2022. #define OPAMP12_COMMON OPAMP12_COMMON_S
  2023. #define OPAMP12_COMMON_BASE OPAMP12_COMMON_BASE_S
  2024. #define LPTIM1 LPTIM1_S
  2025. #define LPTIM1_BASE LPTIM1_BASE_S
  2026. #define LPTIM2 LPTIM2_S
  2027. #define LPTIM2_BASE LPTIM2_BASE_S
  2028. #define LPTIM3 LPTIM3_S
  2029. #define LPTIM3_BASE LPTIM3_BASE_S
  2030. #define LPUART1 LPUART1_S
  2031. #define LPUART1_BASE LPUART1_BASE_S
  2032. #define USB USB_S
  2033. #define USB_BASE USB_BASE_S
  2034. #define UCPD1 UCPD1_S
  2035. #define UCPD1_BASE UCPD1_BASE_S
  2036. #define SYSCFG SYSCFG_S
  2037. #define SYSCFG_BASE SYSCFG_BASE_S
  2038. #define VREFBUF VREFBUF_S
  2039. #define VREFBUF_BASE VREFBUF_BASE_S
  2040. #define COMP1 COMP1_S
  2041. #define COMP1_BASE COMP1_BASE_S
  2042. #define COMP2 COMP2_S
  2043. #define COMP2_BASE COMP2_BASE_S
  2044. #define COMP12_COMMON COMP12_COMMON_S
  2045. #define COMP12_COMMON_BASE COMP12_COMMON_BASE_S
  2046. #define SAI1 SAI1_S
  2047. #define SAI1_BASE SAI1_BASE_S
  2048. #define SAI1_Block_A SAI1_Block_A_S
  2049. #define SAI1_Block_A_BASE SAI1_Block_A_BASE_S
  2050. #define SAI1_Block_B SAI1_Block_B_S
  2051. #define SAI1_Block_B_BASE SAI1_Block_B_BASE_S
  2052. #define SAI2 SAI2_S
  2053. #define SAI2_BASE SAI2_BASE_S
  2054. #define SAI2_Block_A SAI2_Block_A_S
  2055. #define SAI2_Block_A_BASE SAI2_Block_A_BASE_S
  2056. #define SAI2_Block_B SAI2_Block_B_S
  2057. #define SAI2_Block_B_BASE SAI2_Block_B_BASE_S
  2058. #define DFSDM1_Channel0 DFSDM1_Channel0_S
  2059. #define DFSDM1_Channel0_BASE DFSDM1_Channel0_BASE_S
  2060. #define DFSDM1_Channel1 DFSDM1_Channel1_S
  2061. #define DFSDM1_Channel1_BASE DFSDM1_Channel1_BASE_S
  2062. #define DFSDM1_Channel2 DFSDM1_Channel2_S
  2063. #define DFSDM1_Channel2_BASE DFSDM1_Channel2_BASE_S
  2064. #define DFSDM1_Channel3 DFSDM1_Channel3_S
  2065. #define DFSDM1_Channel3_BASE DFSDM1_Channel3_BASE_S
  2066. #define DFSDM1_Filter0 DFSDM1_Filter0_S
  2067. #define DFSDM1_Filter0_BASE DFSDM1_Filter0_BASE_S
  2068. #define DFSDM1_Filter1 DFSDM1_Filter1_S
  2069. #define DFSDM1_Filter1_BASE DFSDM1_Filter1_BASE_S
  2070. #define DFSDM1_Filter2 DFSDM1_Filter2_S
  2071. #define DFSDM1_Filter2_BASE DFSDM1_Filter2_BASE_S
  2072. #define DFSDM1_Filter3 DFSDM1_Filter3_S
  2073. #define DFSDM1_Filter3_BASE DFSDM1_Filter3_BASE_S
  2074. #define CRC CRC_S
  2075. #define CRC_BASE CRC_BASE_S
  2076. #define TSC TSC_S
  2077. #define TSC_BASE TSC_BASE_S
  2078. #define ADC1 ADC1_S
  2079. #define ADC1_BASE ADC1_BASE_S
  2080. #define ADC2 ADC2_S
  2081. #define ADC2_BASE ADC2_BASE_S
  2082. #define ADC12_COMMON ADC12_COMMON_S
  2083. #define ADC12_COMMON_BASE ADC12_COMMON_BASE_S
  2084. #define HASH HASH_S
  2085. #define HASH_BASE HASH_BASE_S
  2086. #define HASH_DIGEST HASH_DIGEST_S
  2087. #define HASH_DIGEST_BASE HASH_DIGEST_BASE_S
  2088. #define RNG RNG_S
  2089. #define RNG_BASE RNG_BASE_S
  2090. #define SDMMC1 SDMMC1_S
  2091. #define SDMMC1_BASE SDMMC1_BASE_S
  2092. #define FMC_R_BASE FMC_R_BASE_S
  2093. #define FMC_Bank1_R FMC_Bank1_R_S
  2094. #define FMC_Bank1_R_BASE FMC_Bank1_R_BASE_S
  2095. #define FMC_Bank1E_R FMC_Bank1E_R_S
  2096. #define FMC_Bank1E_R_BASE FMC_Bank1E_R_BASE_S
  2097. #define FMC_Bank3_R FMC_Bank3_R_S
  2098. #define FMC_Bank3_R_BASE FMC_Bank3_R_BASE_S
  2099. #define OCTOSPI1 OCTOSPI1_S
  2100. #define OCTOSPI1_R_BASE OCTOSPI1_R_BASE_S
  2101. #else
  2102. /*!< Memory base addresses for Non secure peripherals */
  2103. #define FLASH_BASE FLASH_BASE_NS
  2104. #define SRAM1_BASE SRAM1_BASE_NS
  2105. #define SRAM2_BASE SRAM2_BASE_NS
  2106. #define SRAM_BASE SRAM1_BASE_NS
  2107. #define PERIPH_BASE PERIPH_BASE_NS
  2108. #define APB1PERIPH_BASE APB1PERIPH_BASE_NS
  2109. #define APB2PERIPH_BASE APB2PERIPH_BASE_NS
  2110. #define AHB1PERIPH_BASE AHB1PERIPH_BASE_NS
  2111. #define AHB2PERIPH_BASE AHB2PERIPH_BASE_NS
  2112. #define AHB3PERIPH_BASE AHB3PERIPH_BASE_NS
  2113. /*!< Instance aliases and base addresses for Non secure peripherals */
  2114. #define RCC RCC_NS
  2115. #define RCC_BASE RCC_BASE_NS
  2116. #define FLASH FLASH_NS
  2117. #define FLASH_R_BASE FLASH_R_BASE_NS
  2118. #define DMA1 DMA1_NS
  2119. #define DMA1_BASE DMA1_BASE_NS
  2120. #define DMA1_Channel1 DMA1_Channel1_NS
  2121. #define DMA1_Channel1_BASE DMA1_Channel1_BASE_NS
  2122. #define DMA1_Channel2 DMA1_Channel2_NS
  2123. #define DMA1_Channel2_BASE DMA1_Channel2_BASE_NS
  2124. #define DMA1_Channel3 DMA1_Channel3_NS
  2125. #define DMA1_Channel3_BASE DMA1_Channel3_BASE_NS
  2126. #define DMA1_Channel4 DMA1_Channel4_NS
  2127. #define DMA1_Channel4_BASE DMA1_Channel4_BASE_NS
  2128. #define DMA1_Channel5 DMA1_Channel5_NS
  2129. #define DMA1_Channel5_BASE DMA1_Channel5_BASE_NS
  2130. #define DMA1_Channel6 DMA1_Channel6_NS
  2131. #define DMA1_Channel6_BASE DMA1_Channel6_BASE_NS
  2132. #define DMA1_Channel7 DMA1_Channel7_NS
  2133. #define DMA1_Channel7_BASE DMA1_Channel7_BASE_NS
  2134. #define DMA1_Channel8 DMA1_Channel8_NS
  2135. #define DMA1_Channel8_BASE DMA1_Channel8_BASE_NS
  2136. #define DMA2 DMA2_NS
  2137. #define DMA2_BASE DMA2_BASE_NS
  2138. #define DMA2_Channel1 DMA2_Channel1_NS
  2139. #define DMA2_Channel1_BASE DMA2_Channel1_BASE_NS
  2140. #define DMA2_Channel2 DMA2_Channel2_NS
  2141. #define DMA2_Channel2_BASE DMA2_Channel2_BASE_NS
  2142. #define DMA2_Channel3 DMA2_Channel3_NS
  2143. #define DMA2_Channel3_BASE DMA2_Channel3_BASE_NS
  2144. #define DMA2_Channel4 DMA2_Channel4_NS
  2145. #define DMA2_Channel4_BASE DMA2_Channel4_BASE_NS
  2146. #define DMA2_Channel5 DMA2_Channel5_NS
  2147. #define DMA2_Channel5_BASE DMA2_Channel5_BASE_NS
  2148. #define DMA2_Channel6 DMA2_Channel6_NS
  2149. #define DMA2_Channel6_BASE DMA2_Channel6_BASE_NS
  2150. #define DMA2_Channel7 DMA2_Channel7_NS
  2151. #define DMA2_Channel7_BASE DMA2_Channel7_BASE_NS
  2152. #define DMA2_Channel8 DMA2_Channel8_NS
  2153. #define DMA2_Channel8_BASE DMA2_Channel8_BASE_NS
  2154. #define DMAMUX1 DMAMUX1_NS
  2155. #define DMAMUX1_BASE DMAMUX1_BASE_NS
  2156. #define DMAMUX1_Channel0 DMAMUX1_Channel0_NS
  2157. #define DMAMUX1_Channel0_BASE DMAMUX1_Channel0_BASE_NS
  2158. #define DMAMUX1_Channel1 DMAMUX1_Channel1_NS
  2159. #define DMAMUX1_Channel1_BASE DMAMUX1_Channel1_BASE_NS
  2160. #define DMAMUX1_Channel2 DMAMUX1_Channel2_NS
  2161. #define DMAMUX1_Channel2_BASE DMAMUX1_Channel2_BASE_NS
  2162. #define DMAMUX1_Channel3 DMAMUX1_Channel3_NS
  2163. #define DMAMUX1_Channel3_BASE DMAMUX1_Channel3_BASE_NS
  2164. #define DMAMUX1_Channel4 DMAMUX1_Channel4_NS
  2165. #define DMAMUX1_Channel4_BASE DMAMUX1_Channel4_BASE_NS
  2166. #define DMAMUX1_Channel5 DMAMUX1_Channel5_NS
  2167. #define DMAMUX1_Channel5_BASE DMAMUX1_Channel5_BASE_NS
  2168. #define DMAMUX1_Channel6 DMAMUX1_Channel6_NS
  2169. #define DMAMUX1_Channel6_BASE DMAMUX1_Channel6_BASE_NS
  2170. #define DMAMUX1_Channel7 DMAMUX1_Channel7_NS
  2171. #define DMAMUX1_Channel7_BASE DMAMUX1_Channel7_BASE_NS
  2172. #define DMAMUX1_Channel8 DMAMUX1_Channel8_NS
  2173. #define DMAMUX1_Channel8_BASE DMAMUX1_Channel8_BASE_NS
  2174. #define DMAMUX1_Channel9 DMAMUX1_Channel9_NS
  2175. #define DMAMUX1_Channel9_BASE DMAMUX1_Channel9_BASE_NS
  2176. #define DMAMUX1_Channel10 DMAMUX1_Channel10_NS
  2177. #define DMAMUX1_Channel10_BASE DMAMUX1_Channel10_BASE_NS
  2178. #define DMAMUX1_Channel11 DMAMUX1_Channel11_NS
  2179. #define DMAMUX1_Channel11_BASE DMAMUX1_Channel11_BASE_NS
  2180. #define DMAMUX1_Channel12 DMAMUX1_Channel12_NS
  2181. #define DMAMUX1_Channel12_BASE DMAMUX1_Channel12_BASE_NS
  2182. #define DMAMUX1_Channel13 DMAMUX1_Channel13_NS
  2183. #define DMAMUX1_Channel13_BASE DMAMUX1_Channel13_BASE_NS
  2184. #define DMAMUX1_Channel14 DMAMUX1_Channel14_NS
  2185. #define DMAMUX1_Channel14_BASE DMAMUX1_Channel14_BASE_NS
  2186. #define DMAMUX1_Channel15 DMAMUX1_Channel15_NS
  2187. #define DMAMUX1_Channel15_BASE DMAMUX1_Channel15_BASE_NS
  2188. #define DMAMUX1_RequestGenerator0 DMAMUX1_RequestGenerator0_NS
  2189. #define DMAMUX1_RequestGenerator0_BASE DMAMUX1_RequestGenerator0_BASE_NS
  2190. #define DMAMUX1_RequestGenerator1 DMAMUX1_RequestGenerator1_NS
  2191. #define DMAMUX1_RequestGenerator1_BASE DMAMUX1_RequestGenerator1_BASE_NS
  2192. #define DMAMUX1_RequestGenerator2 DMAMUX1_RequestGenerator2_NS
  2193. #define DMAMUX1_RequestGenerator2_BASE DMAMUX1_RequestGenerator2_BASE_NS
  2194. #define DMAMUX1_RequestGenerator3 DMAMUX1_RequestGenerator3_NS
  2195. #define DMAMUX1_RequestGenerator3_BASE DMAMUX1_RequestGenerator3_BASE_NS
  2196. #define DMAMUX1_ChannelStatus DMAMUX1_ChannelStatus_NS
  2197. #define DMAMUX1_ChannelStatus_BASE DMAMUX1_ChannelStatus_BASE_NS
  2198. #define DMAMUX1_RequestGenStatus DMAMUX1_RequestGenStatus_NS
  2199. #define DMAMUX1_RequestGenStatus_BASE DMAMUX1_RequestGenStatus_BASE_NS
  2200. #define GPIOA GPIOA_NS
  2201. #define GPIOA_BASE GPIOA_BASE_NS
  2202. #define GPIOB GPIOB_NS
  2203. #define GPIOB_BASE GPIOB_BASE_NS
  2204. #define GPIOC GPIOC_NS
  2205. #define GPIOC_BASE GPIOC_BASE_NS
  2206. #define GPIOD GPIOD_NS
  2207. #define GPIOD_BASE GPIOD_BASE_NS
  2208. #define GPIOE GPIOE_NS
  2209. #define GPIOE_BASE GPIOE_BASE_NS
  2210. #define GPIOF GPIOF_NS
  2211. #define GPIOF_BASE GPIOF_BASE_NS
  2212. #define GPIOG GPIOG_NS
  2213. #define GPIOG_BASE GPIOG_BASE_NS
  2214. #define GPIOH GPIOH_NS
  2215. #define GPIOH_BASE GPIOH_BASE_NS
  2216. #define PWR PWR_NS
  2217. #define PWR_BASE PWR_BASE_NS
  2218. #define EXTI EXTI_NS
  2219. #define EXTI_BASE EXTI_BASE_NS
  2220. #define ICACHE ICACHE_NS
  2221. #define ICACHE_BASE ICACHE_BASE_NS
  2222. #define GTZC_TZSC GTZC_TZSC_NS
  2223. #define GTZC_TZSC_BASE GTZC_TZSC_BASE_NS
  2224. #define GTZC_TZIC GTZC_TZIC_NS
  2225. #define GTZC_TZIC_BASE GTZC_TZIC_BASE_NS
  2226. #define GTZC_MPCBB2 GTZC_MPCBB2_NS
  2227. #define GTZC_MPCBB2_BASE GTZC_MPCBB2_BASE_NS
  2228. #define GTZC_MPCBB1 GTZC_MPCBB1_NS
  2229. #define GTZC_MPCBB1_BASE GTZC_MPCBB1_BASE_NS
  2230. #define RTC RTC_NS
  2231. #define RTC_BASE RTC_BASE_NS
  2232. #define TAMP TAMP_NS
  2233. #define TAMP_BASE TAMP_BASE_NS
  2234. #define TIM1 TIM1_NS
  2235. #define TIM1_BASE TIM1_BASE_NS
  2236. #define TIM2 TIM2_NS
  2237. #define TIM2_BASE TIM2_BASE_NS
  2238. #define TIM3 TIM3_NS
  2239. #define TIM3_BASE TIM3_BASE_NS
  2240. #define TIM4 TIM4_NS
  2241. #define TIM4_BASE TIM4_BASE_NS
  2242. #define TIM5 TIM5_NS
  2243. #define TIM5_BASE TIM5_BASE_NS
  2244. #define TIM6 TIM6_NS
  2245. #define TIM6_BASE TIM6_BASE_NS
  2246. #define TIM7 TIM7_NS
  2247. #define TIM7_BASE TIM7_BASE_NS
  2248. #define TIM8 TIM8_NS
  2249. #define TIM8_BASE TIM8_BASE_NS
  2250. #define TIM15 TIM15_NS
  2251. #define TIM15_BASE TIM15_BASE_NS
  2252. #define TIM16 TIM16_NS
  2253. #define TIM16_BASE TIM16_BASE_NS
  2254. #define TIM17 TIM17_NS
  2255. #define TIM17_BASE TIM17_BASE_NS
  2256. #define WWDG WWDG_NS
  2257. #define WWDG_BASE WWDG_BASE_NS
  2258. #define IWDG IWDG_NS
  2259. #define IWDG_BASE IWDG_BASE_NS
  2260. #define SPI1 SPI1_NS
  2261. #define SPI1_BASE SPI1_BASE_NS
  2262. #define SPI2 SPI2_NS
  2263. #define SPI2_BASE SPI2_BASE_NS
  2264. #define SPI3 SPI3_NS
  2265. #define SPI3_BASE SPI3_BASE_NS
  2266. #define USART1 USART1_NS
  2267. #define USART1_BASE USART1_BASE_NS
  2268. #define USART2 USART2_NS
  2269. #define USART2_BASE USART2_BASE_NS
  2270. #define USART3 USART3_NS
  2271. #define USART3_BASE USART3_BASE_NS
  2272. #define UART4 UART4_NS
  2273. #define UART4_BASE UART4_BASE_NS
  2274. #define UART5 UART5_NS
  2275. #define UART5_BASE UART5_BASE_NS
  2276. #define I2C1 I2C1_NS
  2277. #define I2C1_BASE I2C1_BASE_NS
  2278. #define I2C2 I2C2_NS
  2279. #define I2C2_BASE I2C2_BASE_NS
  2280. #define I2C3 I2C3_NS
  2281. #define I2C3_BASE I2C3_BASE_NS
  2282. #define I2C4 I2C4_NS
  2283. #define I2C4_BASE I2C4_BASE_NS
  2284. #define CRS CRS_NS
  2285. #define CRS_BASE CRS_BASE_NS
  2286. #define FDCAN1 FDCAN1_NS
  2287. #define FDCAN1_BASE FDCAN1_BASE_NS
  2288. #define FDCAN_CONFIG FDCAN_CONFIG_NS
  2289. #define FDCAN_CONFIG_BASE FDCAN_CONFIG_BASE_NS
  2290. #define SRAMCAN_BASE SRAMCAN_BASE_NS
  2291. #define DAC DAC_NS
  2292. #define DAC_BASE DAC_BASE_NS
  2293. #define DAC1 DAC1_NS
  2294. #define DAC1_BASE DAC1_BASE_NS
  2295. #define OPAMP OPAMP_NS
  2296. #define OPAMP_BASE OPAMP_BASE_NS
  2297. #define OPAMP1 OPAMP1_NS
  2298. #define OPAMP1_BASE OPAMP1_BASE_NS
  2299. #define OPAMP2 OPAMP2_NS
  2300. #define OPAMP2_BASE OPAMP2_BASE_NS
  2301. #define OPAMP12_COMMON OPAMP12_COMMON_NS
  2302. #define OPAMP12_COMMON_BASE OPAMP12_COMMON_BASE_NS
  2303. #define LPTIM1 LPTIM1_NS
  2304. #define LPTIM1_BASE LPTIM1_BASE_NS
  2305. #define LPTIM2 LPTIM2_NS
  2306. #define LPTIM2_BASE LPTIM2_BASE_NS
  2307. #define LPTIM3 LPTIM3_NS
  2308. #define LPTIM3_BASE LPTIM3_BASE_NS
  2309. #define LPUART1 LPUART1_NS
  2310. #define LPUART1_BASE LPUART1_BASE_NS
  2311. #define USB USB_NS
  2312. #define USB_BASE USB_BASE_NS
  2313. #define UCPD1 UCPD1_NS
  2314. #define UCPD1_BASE UCPD1_BASE_NS
  2315. #define SYSCFG SYSCFG_NS
  2316. #define SYSCFG_BASE SYSCFG_BASE_NS
  2317. #define VREFBUF VREFBUF_NS
  2318. #define VREFBUF_BASE VREFBUF_BASE_NS
  2319. #define COMP1 COMP1_NS
  2320. #define COMP1_BASE COMP1_BASE_NS
  2321. #define COMP2 COMP2_NS
  2322. #define COMP2_BASE COMP2_BASE_NS
  2323. #define COMP12_COMMON COMP12_COMMON_NS
  2324. #define COMP12_COMMON_BASE COMP12_COMMON_BASE_NS
  2325. #define SAI1 SAI1_NS
  2326. #define SAI1_BASE SAI1_BASE_NS
  2327. #define SAI1_Block_A SAI1_Block_A_NS
  2328. #define SAI1_Block_A_BASE SAI1_Block_A_BASE_NS
  2329. #define SAI1_Block_B SAI1_Block_B_NS
  2330. #define SAI1_Block_B_BASE SAI1_Block_B_BASE_NS
  2331. #define SAI2 SAI2_NS
  2332. #define SAI2_BASE SAI2_BASE_NS
  2333. #define SAI2_Block_A SAI2_Block_A_NS
  2334. #define SAI2_Block_A_BASE SAI2_Block_A_BASE_NS
  2335. #define SAI2_Block_B SAI2_Block_B_NS
  2336. #define SAI2_Block_B_BASE SAI2_Block_B_BASE_NS
  2337. #define DFSDM1_Channel0 DFSDM1_Channel0_NS
  2338. #define DFSDM1_Channel0_BASE DFSDM1_Channel0_BASE_NS
  2339. #define DFSDM1_Channel1 DFSDM1_Channel1_NS
  2340. #define DFSDM1_Channel1_BASE DFSDM1_Channel1_BASE_NS
  2341. #define DFSDM1_Channel2 DFSDM1_Channel2_NS
  2342. #define DFSDM1_Channel2_BASE DFSDM1_Channel2_BASE_NS
  2343. #define DFSDM1_Channel3 DFSDM1_Channel3_NS
  2344. #define DFSDM1_Channel3_BASE DFSDM1_Channel3_BASE_NS
  2345. #define DFSDM1_Filter0 DFSDM1_Filter0_NS
  2346. #define DFSDM1_Filter0_BASE DFSDM1_Filter0_BASE_NS
  2347. #define DFSDM1_Filter1 DFSDM1_Filter1_NS
  2348. #define DFSDM1_Filter1_BASE DFSDM1_Filter1_BASE_NS
  2349. #define DFSDM1_Filter2 DFSDM1_Filter2_NS
  2350. #define DFSDM1_Filter2_BASE DFSDM1_Filter2_BASE_NS
  2351. #define DFSDM1_Filter3 DFSDM1_Filter3_NS
  2352. #define DFSDM1_Filter3_BASE DFSDM1_Filter3_BASE_NS
  2353. #define CRC CRC_NS
  2354. #define CRC_BASE CRC_BASE_NS
  2355. #define TSC TSC_NS
  2356. #define TSC_BASE TSC_BASE_NS
  2357. #define ADC1 ADC1_NS
  2358. #define ADC1_BASE ADC1_BASE_NS
  2359. #define ADC2 ADC2_NS
  2360. #define ADC2_BASE ADC2_BASE_NS
  2361. #define ADC12_COMMON ADC12_COMMON_NS
  2362. #define ADC12_COMMON_BASE ADC12_COMMON_BASE_NS
  2363. #define HASH HASH_NS
  2364. #define HASH_BASE HASH_BASE_NS
  2365. #define HASH_DIGEST HASH_DIGEST_NS
  2366. #define HASH_DIGEST_BASE HASH_DIGEST_BASE_NS
  2367. #define RNG RNG_NS
  2368. #define RNG_BASE RNG_BASE_NS
  2369. #define SDMMC1 SDMMC1_NS
  2370. #define SDMMC1_BASE SDMMC1_BASE_NS
  2371. #define FMC_R_BASE FMC_R_BASE_NS
  2372. #define FMC_Bank1_R FMC_Bank1_R_NS
  2373. #define FMC_Bank1_R_BASE FMC_Bank1_R_BASE_NS
  2374. #define FMC_Bank1E_R FMC_Bank1E_R_NS
  2375. #define FMC_Bank1E_R_BASE FMC_Bank1E_R_BASE_NS
  2376. #define FMC_Bank3_R FMC_Bank3_R_NS
  2377. #define FMC_Bank3_R_BASE FMC_Bank3_R_BASE_NS
  2378. #define OCTOSPI1 OCTOSPI1_NS
  2379. #define OCTOSPI1_R_BASE OCTOSPI1_R_BASE_NS
  2380. #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */
  2381. /******************************************************************************/
  2382. /* */
  2383. /* Analog Comparators (COMP) */
  2384. /* */
  2385. /******************************************************************************/
  2386. /********************** Bit definition for COMP_CSR register ****************/
  2387. #define COMP_CSR_EN_Pos (0U)
  2388. #define COMP_CSR_EN_Msk (0x1UL << COMP_CSR_EN_Pos) /*!< 0x00000001 */
  2389. #define COMP_CSR_EN COMP_CSR_EN_Msk /*!< Comparator enable */
  2390. #define COMP_CSR_PWRMODE_Pos (2U)
  2391. #define COMP_CSR_PWRMODE_Msk (0x3UL << COMP_CSR_PWRMODE_Pos) /*!< 0x0000000C */
  2392. #define COMP_CSR_PWRMODE COMP_CSR_PWRMODE_Msk /*!< Comparator power mode */
  2393. #define COMP_CSR_PWRMODE_0 (0x1UL << COMP_CSR_PWRMODE_Pos) /*!< 0x00000004 */
  2394. #define COMP_CSR_PWRMODE_1 (0x2UL << COMP_CSR_PWRMODE_Pos) /*!< 0x00000008 */
  2395. #define COMP_CSR_INMSEL_Pos (4U)
  2396. #define COMP_CSR_INMSEL_Msk (0x7UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000070 */
  2397. #define COMP_CSR_INMSEL COMP_CSR_INMSEL_Msk /*!< Comparator input minus selection */
  2398. #define COMP_CSR_INMSEL_0 (0x1UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000010 */
  2399. #define COMP_CSR_INMSEL_1 (0x2UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000020 */
  2400. #define COMP_CSR_INMSEL_2 (0x4UL << COMP_CSR_INMSEL_Pos) /*!< 0x00000040 */
  2401. #define COMP_CSR_INPSEL_Pos (7U)
  2402. #define COMP_CSR_INPSEL_Msk (0x3UL << COMP_CSR_INPSEL_Pos) /*!< 0x00000180 */
  2403. #define COMP_CSR_INPSEL COMP_CSR_INPSEL_Msk /*!< Comparator input plus selection */
  2404. #define COMP_CSR_INPSEL_0 (0x1UL << COMP_CSR_INPSEL_Pos) /*!< 0x00000080 */
  2405. #define COMP_CSR_INPSEL_1 (0x2UL << COMP_CSR_INPSEL_Pos) /*!< 0x00000100 */
  2406. #define COMP_CSR_WINMODE_Pos (9U)
  2407. #define COMP_CSR_WINMODE_Msk (0x1UL << COMP_CSR_WINMODE_Pos) /*!< 0x00000200 */
  2408. #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) */
  2409. #define COMP_CSR_POLARITY_Pos (15U)
  2410. #define COMP_CSR_POLARITY_Msk (0x1UL << COMP_CSR_POLARITY_Pos) /*!< 0x00008000 */
  2411. #define COMP_CSR_POLARITY COMP_CSR_POLARITY_Msk /*!< Comparator output polarity */
  2412. #define COMP_CSR_HYST_Pos (16U)
  2413. #define COMP_CSR_HYST_Msk (0x3UL << COMP_CSR_HYST_Pos) /*!< 0x00030000 */
  2414. #define COMP_CSR_HYST COMP_CSR_HYST_Msk /*!< Comparator hysteresis */
  2415. #define COMP_CSR_HYST_0 (0x1UL << COMP_CSR_HYST_Pos) /*!< 0x00010000 */
  2416. #define COMP_CSR_HYST_1 (0x2UL << COMP_CSR_HYST_Pos) /*!< 0x00020000 */
  2417. #define COMP_CSR_BLANKING_Pos (18U)
  2418. #define COMP_CSR_BLANKING_Msk (0x7UL << COMP_CSR_BLANKING_Pos) /*!< 0x001C0000 */
  2419. #define COMP_CSR_BLANKING COMP_CSR_BLANKING_Msk /*!< Comparator blanking source */
  2420. #define COMP_CSR_BLANKING_0 (0x1UL << COMP_CSR_BLANKING_Pos) /*!< 0x00040000 */
  2421. #define COMP_CSR_BLANKING_1 (0x2UL << COMP_CSR_BLANKING_Pos) /*!< 0x00080000 */
  2422. #define COMP_CSR_BLANKING_2 (0x4UL << COMP_CSR_BLANKING_Pos) /*!< 0x00100000 */
  2423. #define COMP_CSR_BRGEN_Pos (22U)
  2424. #define COMP_CSR_BRGEN_Msk (0x1UL << COMP_CSR_BRGEN_Pos) /*!< 0x00400000 */
  2425. #define COMP_CSR_BRGEN COMP_CSR_BRGEN_Msk /*!< Comparator voltage scaler enable */
  2426. #define COMP_CSR_SCALEN_Pos (23U)
  2427. #define COMP_CSR_SCALEN_Msk (0x1UL << COMP_CSR_SCALEN_Pos) /*!< 0x00800000 */
  2428. #define COMP_CSR_SCALEN COMP_CSR_SCALEN_Msk /*!< Comparator scaler bridge enable */
  2429. #define COMP_CSR_VALUE_Pos (30U)
  2430. #define COMP_CSR_VALUE_Msk (0x1UL << COMP_CSR_VALUE_Pos) /*!< 0x40000000 */
  2431. #define COMP_CSR_VALUE COMP_CSR_VALUE_Msk /*!< Comparator output level */
  2432. #define COMP_CSR_LOCK_Pos (31U)
  2433. #define COMP_CSR_LOCK_Msk (0x1UL << COMP_CSR_LOCK_Pos) /*!< 0x80000000 */
  2434. #define COMP_CSR_LOCK COMP_CSR_LOCK_Msk /*!< Comparator lock */
  2435. /******************************************************************************/
  2436. /* */
  2437. /* Analog to Digital Converter */
  2438. /* */
  2439. /******************************************************************************/
  2440. /*
  2441. * @brief Specific device feature definitions
  2442. */
  2443. #define ADC_MULTIMODE_SUPPORT /*!< ADC feature available only on specific devices: multimode available on devices with several ADC instances */
  2444. /******************** Bit definition for ADC_ISR register *******************/
  2445. #define ADC_ISR_ADRDY_Pos (0U)
  2446. #define ADC_ISR_ADRDY_Msk (0x1UL << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */
  2447. #define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC ready flag */
  2448. #define ADC_ISR_EOSMP_Pos (1U)
  2449. #define ADC_ISR_EOSMP_Msk (0x1UL << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  2450. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC group regular end of sampling flag */
  2451. #define ADC_ISR_EOC_Pos (2U)
  2452. #define ADC_ISR_EOC_Msk (0x1UL << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  2453. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC group regular end of unitary conversion flag */
  2454. #define ADC_ISR_EOS_Pos (3U)
  2455. #define ADC_ISR_EOS_Msk (0x1UL << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  2456. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */
  2457. #define ADC_ISR_OVR_Pos (4U)
  2458. #define ADC_ISR_OVR_Msk (0x1UL << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  2459. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC group regular overrun flag */
  2460. #define ADC_ISR_JEOC_Pos (5U)
  2461. #define ADC_ISR_JEOC_Msk (0x1UL << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */
  2462. #define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC group injected end of unitary conversion flag */
  2463. #define ADC_ISR_JEOS_Pos (6U)
  2464. #define ADC_ISR_JEOS_Msk (0x1UL << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */
  2465. #define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC group injected end of sequence conversions flag */
  2466. #define ADC_ISR_AWD1_Pos (7U)
  2467. #define ADC_ISR_AWD1_Msk (0x1UL << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  2468. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC analog watchdog 1 flag */
  2469. #define ADC_ISR_AWD2_Pos (8U)
  2470. #define ADC_ISR_AWD2_Msk (0x1UL << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */
  2471. #define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC analog watchdog 2 flag */
  2472. #define ADC_ISR_AWD3_Pos (9U)
  2473. #define ADC_ISR_AWD3_Msk (0x1UL << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */
  2474. #define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC analog watchdog 3 flag */
  2475. #define ADC_ISR_JQOVF_Pos (10U)
  2476. #define ADC_ISR_JQOVF_Msk (0x1UL << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */
  2477. #define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC group injected contexts queue overflow flag */
  2478. /******************** Bit definition for ADC_IER register *******************/
  2479. #define ADC_IER_ADRDYIE_Pos (0U)
  2480. #define ADC_IER_ADRDYIE_Msk (0x1UL << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */
  2481. #define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC ready interrupt */
  2482. #define ADC_IER_EOSMPIE_Pos (1U)
  2483. #define ADC_IER_EOSMPIE_Msk (0x1UL << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */
  2484. #define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC group regular end of sampling interrupt */
  2485. #define ADC_IER_EOCIE_Pos (2U)
  2486. #define ADC_IER_EOCIE_Msk (0x1UL << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */
  2487. #define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC group regular end of unitary conversion interrupt */
  2488. #define ADC_IER_EOSIE_Pos (3U)
  2489. #define ADC_IER_EOSIE_Msk (0x1UL << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */
  2490. #define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */
  2491. #define ADC_IER_OVRIE_Pos (4U)
  2492. #define ADC_IER_OVRIE_Msk (0x1UL << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */
  2493. #define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC group regular overrun interrupt */
  2494. #define ADC_IER_JEOCIE_Pos (5U)
  2495. #define ADC_IER_JEOCIE_Msk (0x1UL << ADC_IER_JEOCIE_Pos) /*!< 0x00000020 */
  2496. #define ADC_IER_JEOCIE ADC_IER_JEOCIE_Msk /*!< ADC group injected end of unitary conversion interrupt */
  2497. #define ADC_IER_JEOSIE_Pos (6U)
  2498. #define ADC_IER_JEOSIE_Msk (0x1UL << ADC_IER_JEOSIE_Pos) /*!< 0x00000040 */
  2499. #define ADC_IER_JEOSIE ADC_IER_JEOSIE_Msk /*!< ADC group injected end of sequence conversions interrupt */
  2500. #define ADC_IER_AWD1IE_Pos (7U)
  2501. #define ADC_IER_AWD1IE_Msk (0x1UL << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */
  2502. #define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC analog watchdog 1 interrupt */
  2503. #define ADC_IER_AWD2IE_Pos (8U)
  2504. #define ADC_IER_AWD2IE_Msk (0x1UL << ADC_IER_AWD2IE_Pos) /*!< 0x00000100 */
  2505. #define ADC_IER_AWD2IE ADC_IER_AWD2IE_Msk /*!< ADC analog watchdog 2 interrupt */
  2506. #define ADC_IER_AWD3IE_Pos (9U)
  2507. #define ADC_IER_AWD3IE_Msk (0x1UL << ADC_IER_AWD3IE_Pos) /*!< 0x00000200 */
  2508. #define ADC_IER_AWD3IE ADC_IER_AWD3IE_Msk /*!< ADC analog watchdog 3 interrupt */
  2509. #define ADC_IER_JQOVFIE_Pos (10U)
  2510. #define ADC_IER_JQOVFIE_Msk (0x1UL << ADC_IER_JQOVFIE_Pos) /*!< 0x00000400 */
  2511. #define ADC_IER_JQOVFIE ADC_IER_JQOVFIE_Msk /*!< ADC group injected contexts queue overflow interrupt */
  2512. /******************** Bit definition for ADC_CR register ********************/
  2513. #define ADC_CR_ADEN_Pos (0U)
  2514. #define ADC_CR_ADEN_Msk (0x1UL << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  2515. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC enable */
  2516. #define ADC_CR_ADDIS_Pos (1U)
  2517. #define ADC_CR_ADDIS_Msk (0x1UL << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  2518. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC disable */
  2519. #define ADC_CR_ADSTART_Pos (2U)
  2520. #define ADC_CR_ADSTART_Msk (0x1UL << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  2521. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC group regular conversion start */
  2522. #define ADC_CR_JADSTART_Pos (3U)
  2523. #define ADC_CR_JADSTART_Msk (0x1UL << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */
  2524. #define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC group injected conversion start */
  2525. #define ADC_CR_ADSTP_Pos (4U)
  2526. #define ADC_CR_ADSTP_Msk (0x1UL << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  2527. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC group regular conversion stop */
  2528. #define ADC_CR_JADSTP_Pos (5U)
  2529. #define ADC_CR_JADSTP_Msk (0x1UL << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */
  2530. #define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC group injected conversion stop */
  2531. #define ADC_CR_ADVREGEN_Pos (28U)
  2532. #define ADC_CR_ADVREGEN_Msk (0x1UL << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */
  2533. #define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC voltage regulator enable */
  2534. #define ADC_CR_DEEPPWD_Pos (29U)
  2535. #define ADC_CR_DEEPPWD_Msk (0x1UL << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */
  2536. #define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC deep power down enable */
  2537. #define ADC_CR_ADCALDIF_Pos (30U)
  2538. #define ADC_CR_ADCALDIF_Msk (0x1UL << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */
  2539. #define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC differential mode for calibration */
  2540. #define ADC_CR_ADCAL_Pos (31U)
  2541. #define ADC_CR_ADCAL_Msk (0x1UL << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  2542. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC calibration */
  2543. /******************** Bit definition for ADC_CFGR register ******************/
  2544. #define ADC_CFGR_DMAEN_Pos (0U)
  2545. #define ADC_CFGR_DMAEN_Msk (0x1UL << ADC_CFGR_DMAEN_Pos) /*!< 0x00000001 */
  2546. #define ADC_CFGR_DMAEN ADC_CFGR_DMAEN_Msk /*!< ADC DMA transfer enable */
  2547. #define ADC_CFGR_DMACFG_Pos (1U)
  2548. #define ADC_CFGR_DMACFG_Msk (0x1UL << ADC_CFGR_DMACFG_Pos) /*!< 0x00000002 */
  2549. #define ADC_CFGR_DMACFG ADC_CFGR_DMACFG_Msk /*!< ADC DMA transfer configuration */
  2550. #define ADC_CFGR_DFSDMCFG_Pos (2U)
  2551. #define ADC_CFGR_DFSDMCFG_Msk (0x1UL << ADC_CFGR_DFSDMCFG_Pos) /*!< 0x00000004 */
  2552. #define ADC_CFGR_DFSDMCFG ADC_CFGR_DFSDMCFG_Msk /*!< ADC DFSDM mode configuration */
  2553. #define ADC_CFGR_RES_Pos (3U)
  2554. #define ADC_CFGR_RES_Msk (0x3UL << ADC_CFGR_RES_Pos) /*!< 0x00000018 */
  2555. #define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC data resolution */
  2556. #define ADC_CFGR_RES_0 (0x1UL << ADC_CFGR_RES_Pos) /*!< 0x00000008 */
  2557. #define ADC_CFGR_RES_1 (0x2UL << ADC_CFGR_RES_Pos) /*!< 0x00000010 */
  2558. #define ADC_CFGR_ALIGN_Pos (5U)
  2559. #define ADC_CFGR_ALIGN_Msk (0x1UL << ADC_CFGR_ALIGN_Pos) /*!< 0x00000020 */
  2560. #define ADC_CFGR_ALIGN ADC_CFGR_ALIGN_Msk /*!< ADC data alignement */
  2561. #define ADC_CFGR_EXTSEL_Pos (6U)
  2562. #define ADC_CFGR_EXTSEL_Msk (0xFUL << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003C0 */
  2563. #define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC group regular external trigger source */
  2564. #define ADC_CFGR_EXTSEL_0 (0x1UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */
  2565. #define ADC_CFGR_EXTSEL_1 (0x2UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */
  2566. #define ADC_CFGR_EXTSEL_2 (0x4UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */
  2567. #define ADC_CFGR_EXTSEL_3 (0x8UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */
  2568. #define ADC_CFGR_EXTEN_Pos (10U)
  2569. #define ADC_CFGR_EXTEN_Msk (0x3UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */
  2570. #define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC group regular external trigger polarity */
  2571. #define ADC_CFGR_EXTEN_0 (0x1UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */
  2572. #define ADC_CFGR_EXTEN_1 (0x2UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */
  2573. #define ADC_CFGR_OVRMOD_Pos (12U)
  2574. #define ADC_CFGR_OVRMOD_Msk (0x1UL << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */
  2575. #define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC group regular overrun configuration */
  2576. #define ADC_CFGR_CONT_Pos (13U)
  2577. #define ADC_CFGR_CONT_Msk (0x1UL << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */
  2578. #define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC group regular continuous conversion mode */
  2579. #define ADC_CFGR_AUTDLY_Pos (14U)
  2580. #define ADC_CFGR_AUTDLY_Msk (0x1UL << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */
  2581. #define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC low power auto wait */
  2582. #define ADC_CFGR_DISCEN_Pos (16U)
  2583. #define ADC_CFGR_DISCEN_Msk (0x1UL << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */
  2584. #define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */
  2585. #define ADC_CFGR_DISCNUM_Pos (17U)
  2586. #define ADC_CFGR_DISCNUM_Msk (0x7UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */
  2587. #define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC group regular sequencer discontinuous number of ranks */
  2588. #define ADC_CFGR_DISCNUM_0 (0x1UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */
  2589. #define ADC_CFGR_DISCNUM_1 (0x2UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */
  2590. #define ADC_CFGR_DISCNUM_2 (0x4UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */
  2591. #define ADC_CFGR_JDISCEN_Pos (20U)
  2592. #define ADC_CFGR_JDISCEN_Msk (0x1UL << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */
  2593. #define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC group injected sequencer discontinuous mode */
  2594. #define ADC_CFGR_JQM_Pos (21U)
  2595. #define ADC_CFGR_JQM_Msk (0x1UL << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */
  2596. #define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC group injected contexts queue mode */
  2597. #define ADC_CFGR_AWD1SGL_Pos (22U)
  2598. #define ADC_CFGR_AWD1SGL_Msk (0x1UL << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */
  2599. #define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */
  2600. #define ADC_CFGR_AWD1EN_Pos (23U)
  2601. #define ADC_CFGR_AWD1EN_Msk (0x1UL << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */
  2602. #define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */
  2603. #define ADC_CFGR_JAWD1EN_Pos (24U)
  2604. #define ADC_CFGR_JAWD1EN_Msk (0x1UL << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */
  2605. #define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group injected */
  2606. #define ADC_CFGR_JAUTO_Pos (25U)
  2607. #define ADC_CFGR_JAUTO_Msk (0x1UL << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */
  2608. #define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC group injected automatic trigger mode */
  2609. #define ADC_CFGR_AWD1CH_Pos (26U)
  2610. #define ADC_CFGR_AWD1CH_Msk (0x1FUL << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */
  2611. #define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC analog watchdog 1 monitored channel selection */
  2612. #define ADC_CFGR_AWD1CH_0 (0x01UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */
  2613. #define ADC_CFGR_AWD1CH_1 (0x02UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */
  2614. #define ADC_CFGR_AWD1CH_2 (0x04UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */
  2615. #define ADC_CFGR_AWD1CH_3 (0x08UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */
  2616. #define ADC_CFGR_AWD1CH_4 (0x10UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */
  2617. #define ADC_CFGR_JQDIS_Pos (31U)
  2618. #define ADC_CFGR_JQDIS_Msk (0x1UL << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */
  2619. #define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC group injected contexts queue disable */
  2620. /******************** Bit definition for ADC_CFGR2 register *****************/
  2621. #define ADC_CFGR2_ROVSE_Pos (0U)
  2622. #define ADC_CFGR2_ROVSE_Msk (0x1UL << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */
  2623. #define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC oversampler enable on scope ADC group regular */
  2624. #define ADC_CFGR2_JOVSE_Pos (1U)
  2625. #define ADC_CFGR2_JOVSE_Msk (0x1UL << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */
  2626. #define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC oversampler enable on scope ADC group injected */
  2627. #define ADC_CFGR2_OVSR_Pos (2U)
  2628. #define ADC_CFGR2_OVSR_Msk (0x7UL << ADC_CFGR2_OVSR_Pos) /*!< 0x0000001C */
  2629. #define ADC_CFGR2_OVSR ADC_CFGR2_OVSR_Msk /*!< ADC oversampling ratio */
  2630. #define ADC_CFGR2_OVSR_0 (0x1UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00000004 */
  2631. #define ADC_CFGR2_OVSR_1 (0x2UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00000008 */
  2632. #define ADC_CFGR2_OVSR_2 (0x4UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00000010 */
  2633. #define ADC_CFGR2_OVSS_Pos (5U)
  2634. #define ADC_CFGR2_OVSS_Msk (0xFUL << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */
  2635. #define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC oversampling shift */
  2636. #define ADC_CFGR2_OVSS_0 (0x1UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */
  2637. #define ADC_CFGR2_OVSS_1 (0x2UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */
  2638. #define ADC_CFGR2_OVSS_2 (0x4UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */
  2639. #define ADC_CFGR2_OVSS_3 (0x8UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */
  2640. #define ADC_CFGR2_TROVS_Pos (9U)
  2641. #define ADC_CFGR2_TROVS_Msk (0x1UL << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */
  2642. #define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC oversampling discontinuous mode (triggered mode) for ADC group regular */
  2643. #define ADC_CFGR2_ROVSM_Pos (10U)
  2644. #define ADC_CFGR2_ROVSM_Msk (0x1UL << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */
  2645. #define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC oversampling mode managing interlaced conversions of ADC group regular and group injected */
  2646. /******************** Bit definition for ADC_SMPR1 register *****************/
  2647. #define ADC_SMPR1_SMP0_Pos (0U)
  2648. #define ADC_SMPR1_SMP0_Msk (0x7UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */
  2649. #define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC channel 0 sampling time selection */
  2650. #define ADC_SMPR1_SMP0_0 (0x1UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */
  2651. #define ADC_SMPR1_SMP0_1 (0x2UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */
  2652. #define ADC_SMPR1_SMP0_2 (0x4UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */
  2653. #define ADC_SMPR1_SMP1_Pos (3U)
  2654. #define ADC_SMPR1_SMP1_Msk (0x7UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */
  2655. #define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC channel 1 sampling time selection */
  2656. #define ADC_SMPR1_SMP1_0 (0x1UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */
  2657. #define ADC_SMPR1_SMP1_1 (0x2UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */
  2658. #define ADC_SMPR1_SMP1_2 (0x4UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */
  2659. #define ADC_SMPR1_SMP2_Pos (6U)
  2660. #define ADC_SMPR1_SMP2_Msk (0x7UL << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */
  2661. #define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC channel 2 sampling time selection */
  2662. #define ADC_SMPR1_SMP2_0 (0x1UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */
  2663. #define ADC_SMPR1_SMP2_1 (0x2UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */
  2664. #define ADC_SMPR1_SMP2_2 (0x4UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */
  2665. #define ADC_SMPR1_SMP3_Pos (9U)
  2666. #define ADC_SMPR1_SMP3_Msk (0x7UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */
  2667. #define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC channel 3 sampling time selection */
  2668. #define ADC_SMPR1_SMP3_0 (0x1UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */
  2669. #define ADC_SMPR1_SMP3_1 (0x2UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */
  2670. #define ADC_SMPR1_SMP3_2 (0x4UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */
  2671. #define ADC_SMPR1_SMP4_Pos (12U)
  2672. #define ADC_SMPR1_SMP4_Msk (0x7UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */
  2673. #define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC channel 4 sampling time selection */
  2674. #define ADC_SMPR1_SMP4_0 (0x1UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */
  2675. #define ADC_SMPR1_SMP4_1 (0x2UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */
  2676. #define ADC_SMPR1_SMP4_2 (0x4UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */
  2677. #define ADC_SMPR1_SMP5_Pos (15U)
  2678. #define ADC_SMPR1_SMP5_Msk (0x7UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */
  2679. #define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC channel 5 sampling time selection */
  2680. #define ADC_SMPR1_SMP5_0 (0x1UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */
  2681. #define ADC_SMPR1_SMP5_1 (0x2UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */
  2682. #define ADC_SMPR1_SMP5_2 (0x4UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */
  2683. #define ADC_SMPR1_SMP6_Pos (18U)
  2684. #define ADC_SMPR1_SMP6_Msk (0x7UL << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */
  2685. #define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC channel 6 sampling time selection */
  2686. #define ADC_SMPR1_SMP6_0 (0x1UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */
  2687. #define ADC_SMPR1_SMP6_1 (0x2UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */
  2688. #define ADC_SMPR1_SMP6_2 (0x4UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */
  2689. #define ADC_SMPR1_SMP7_Pos (21U)
  2690. #define ADC_SMPR1_SMP7_Msk (0x7UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */
  2691. #define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC channel 7 sampling time selection */
  2692. #define ADC_SMPR1_SMP7_0 (0x1UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */
  2693. #define ADC_SMPR1_SMP7_1 (0x2UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */
  2694. #define ADC_SMPR1_SMP7_2 (0x4UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */
  2695. #define ADC_SMPR1_SMP8_Pos (24U)
  2696. #define ADC_SMPR1_SMP8_Msk (0x7UL << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */
  2697. #define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC channel 8 sampling time selection */
  2698. #define ADC_SMPR1_SMP8_0 (0x1UL << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */
  2699. #define ADC_SMPR1_SMP8_1 (0x2UL << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */
  2700. #define ADC_SMPR1_SMP8_2 (0x4UL << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */
  2701. #define ADC_SMPR1_SMP9_Pos (27U)
  2702. #define ADC_SMPR1_SMP9_Msk (0x7UL << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */
  2703. #define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC channel 9 sampling time selection */
  2704. #define ADC_SMPR1_SMP9_0 (0x1UL << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */
  2705. #define ADC_SMPR1_SMP9_1 (0x2UL << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
  2706. #define ADC_SMPR1_SMP9_2 (0x4UL << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
  2707. #define ADC_SMPR1_SMPPLUS_Pos (31U)
  2708. #define ADC_SMPR1_SMPPLUS_Msk (0x1UL << ADC_SMPR1_SMPPLUS_Pos) /*!< 0x80000000 */
  2709. #define ADC_SMPR1_SMPPLUS ADC_SMPR1_SMPPLUS_Msk /*!< ADC channels sampling time additional setting */
  2710. /******************** Bit definition for ADC_SMPR2 register *****************/
  2711. #define ADC_SMPR2_SMP10_Pos (0U)
  2712. #define ADC_SMPR2_SMP10_Msk (0x7UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
  2713. #define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC channel 10 sampling time selection */
  2714. #define ADC_SMPR2_SMP10_0 (0x1UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */
  2715. #define ADC_SMPR2_SMP10_1 (0x2UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */
  2716. #define ADC_SMPR2_SMP10_2 (0x4UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */
  2717. #define ADC_SMPR2_SMP11_Pos (3U)
  2718. #define ADC_SMPR2_SMP11_Msk (0x7UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */
  2719. #define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC channel 11 sampling time selection */
  2720. #define ADC_SMPR2_SMP11_0 (0x1UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */
  2721. #define ADC_SMPR2_SMP11_1 (0x2UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */
  2722. #define ADC_SMPR2_SMP11_2 (0x4UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */
  2723. #define ADC_SMPR2_SMP12_Pos (6U)
  2724. #define ADC_SMPR2_SMP12_Msk (0x7UL << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */
  2725. #define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC channel 12 sampling time selection */
  2726. #define ADC_SMPR2_SMP12_0 (0x1UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */
  2727. #define ADC_SMPR2_SMP12_1 (0x2UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */
  2728. #define ADC_SMPR2_SMP12_2 (0x4UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */
  2729. #define ADC_SMPR2_SMP13_Pos (9U)
  2730. #define ADC_SMPR2_SMP13_Msk (0x7UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */
  2731. #define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC channel 13 sampling time selection */
  2732. #define ADC_SMPR2_SMP13_0 (0x1UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */
  2733. #define ADC_SMPR2_SMP13_1 (0x2UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */
  2734. #define ADC_SMPR2_SMP13_2 (0x4UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */
  2735. #define ADC_SMPR2_SMP14_Pos (12U)
  2736. #define ADC_SMPR2_SMP14_Msk (0x7UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */
  2737. #define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC channel 14 sampling time selection */
  2738. #define ADC_SMPR2_SMP14_0 (0x1UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */
  2739. #define ADC_SMPR2_SMP14_1 (0x2UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */
  2740. #define ADC_SMPR2_SMP14_2 (0x4UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */
  2741. #define ADC_SMPR2_SMP15_Pos (15U)
  2742. #define ADC_SMPR2_SMP15_Msk (0x7UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */
  2743. #define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC channel 15 sampling time selection */
  2744. #define ADC_SMPR2_SMP15_0 (0x1UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */
  2745. #define ADC_SMPR2_SMP15_1 (0x2UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */
  2746. #define ADC_SMPR2_SMP15_2 (0x4UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */
  2747. #define ADC_SMPR2_SMP16_Pos (18U)
  2748. #define ADC_SMPR2_SMP16_Msk (0x7UL << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */
  2749. #define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC channel 16 sampling time selection */
  2750. #define ADC_SMPR2_SMP16_0 (0x1UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */
  2751. #define ADC_SMPR2_SMP16_1 (0x2UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */
  2752. #define ADC_SMPR2_SMP16_2 (0x4UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */
  2753. #define ADC_SMPR2_SMP17_Pos (21U)
  2754. #define ADC_SMPR2_SMP17_Msk (0x7UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */
  2755. #define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC channel 17 sampling time selection */
  2756. #define ADC_SMPR2_SMP17_0 (0x1UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */
  2757. #define ADC_SMPR2_SMP17_1 (0x2UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */
  2758. #define ADC_SMPR2_SMP17_2 (0x4UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */
  2759. #define ADC_SMPR2_SMP18_Pos (24U)
  2760. #define ADC_SMPR2_SMP18_Msk (0x7UL << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */
  2761. #define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC channel 18 sampling time selection */
  2762. #define ADC_SMPR2_SMP18_0 (0x1UL << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */
  2763. #define ADC_SMPR2_SMP18_1 (0x2UL << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */
  2764. #define ADC_SMPR2_SMP18_2 (0x4UL << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */
  2765. /******************** Bit definition for ADC_TR1 register *******************/
  2766. #define ADC_TR1_LT1_Pos (0U)
  2767. #define ADC_TR1_LT1_Msk (0xFFFUL << ADC_TR1_LT1_Pos) /*!< 0x00000FFF */
  2768. #define ADC_TR1_LT1 ADC_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */
  2769. #define ADC_TR1_LT1_0 (0x001UL << ADC_TR1_LT1_Pos) /*!< 0x00000001 */
  2770. #define ADC_TR1_LT1_1 (0x002UL << ADC_TR1_LT1_Pos) /*!< 0x00000002 */
  2771. #define ADC_TR1_LT1_2 (0x004UL << ADC_TR1_LT1_Pos) /*!< 0x00000004 */
  2772. #define ADC_TR1_LT1_3 (0x008UL << ADC_TR1_LT1_Pos) /*!< 0x00000008 */
  2773. #define ADC_TR1_LT1_4 (0x010UL << ADC_TR1_LT1_Pos) /*!< 0x00000010 */
  2774. #define ADC_TR1_LT1_5 (0x020UL << ADC_TR1_LT1_Pos) /*!< 0x00000020 */
  2775. #define ADC_TR1_LT1_6 (0x040UL << ADC_TR1_LT1_Pos) /*!< 0x00000040 */
  2776. #define ADC_TR1_LT1_7 (0x080UL << ADC_TR1_LT1_Pos) /*!< 0x00000080 */
  2777. #define ADC_TR1_LT1_8 (0x100UL << ADC_TR1_LT1_Pos) /*!< 0x00000100 */
  2778. #define ADC_TR1_LT1_9 (0x200UL << ADC_TR1_LT1_Pos) /*!< 0x00000200 */
  2779. #define ADC_TR1_LT1_10 (0x400UL << ADC_TR1_LT1_Pos) /*!< 0x00000400 */
  2780. #define ADC_TR1_LT1_11 (0x800UL << ADC_TR1_LT1_Pos) /*!< 0x00000800 */
  2781. #define ADC_TR1_HT1_Pos (16U)
  2782. #define ADC_TR1_HT1_Msk (0xFFFUL << ADC_TR1_HT1_Pos) /*!< 0x0FFF0000 */
  2783. #define ADC_TR1_HT1 ADC_TR1_HT1_Msk /*!< ADC Analog watchdog 1 threshold high */
  2784. #define ADC_TR1_HT1_0 (0x001UL << ADC_TR1_HT1_Pos) /*!< 0x00010000 */
  2785. #define ADC_TR1_HT1_1 (0x002UL << ADC_TR1_HT1_Pos) /*!< 0x00020000 */
  2786. #define ADC_TR1_HT1_2 (0x004UL << ADC_TR1_HT1_Pos) /*!< 0x00040000 */
  2787. #define ADC_TR1_HT1_3 (0x008UL << ADC_TR1_HT1_Pos) /*!< 0x00080000 */
  2788. #define ADC_TR1_HT1_4 (0x010UL << ADC_TR1_HT1_Pos) /*!< 0x00100000 */
  2789. #define ADC_TR1_HT1_5 (0x020UL << ADC_TR1_HT1_Pos) /*!< 0x00200000 */
  2790. #define ADC_TR1_HT1_6 (0x040UL << ADC_TR1_HT1_Pos) /*!< 0x00400000 */
  2791. #define ADC_TR1_HT1_7 (0x080UL << ADC_TR1_HT1_Pos) /*!< 0x00800000 */
  2792. #define ADC_TR1_HT1_8 (0x100UL << ADC_TR1_HT1_Pos) /*!< 0x01000000 */
  2793. #define ADC_TR1_HT1_9 (0x200UL << ADC_TR1_HT1_Pos) /*!< 0x02000000 */
  2794. #define ADC_TR1_HT1_10 (0x400UL << ADC_TR1_HT1_Pos) /*!< 0x04000000 */
  2795. #define ADC_TR1_HT1_11 (0x800UL << ADC_TR1_HT1_Pos) /*!< 0x08000000 */
  2796. /******************** Bit definition for ADC_TR2 register *******************/
  2797. #define ADC_TR2_LT2_Pos (0U)
  2798. #define ADC_TR2_LT2_Msk (0xFFUL << ADC_TR2_LT2_Pos) /*!< 0x000000FF */
  2799. #define ADC_TR2_LT2 ADC_TR2_LT2_Msk /*!< ADC analog watchdog 2 threshold low */
  2800. #define ADC_TR2_LT2_0 (0x01UL << ADC_TR2_LT2_Pos) /*!< 0x00000001 */
  2801. #define ADC_TR2_LT2_1 (0x02UL << ADC_TR2_LT2_Pos) /*!< 0x00000002 */
  2802. #define ADC_TR2_LT2_2 (0x04UL << ADC_TR2_LT2_Pos) /*!< 0x00000004 */
  2803. #define ADC_TR2_LT2_3 (0x08UL << ADC_TR2_LT2_Pos) /*!< 0x00000008 */
  2804. #define ADC_TR2_LT2_4 (0x10UL << ADC_TR2_LT2_Pos) /*!< 0x00000010 */
  2805. #define ADC_TR2_LT2_5 (0x20UL << ADC_TR2_LT2_Pos) /*!< 0x00000020 */
  2806. #define ADC_TR2_LT2_6 (0x40UL << ADC_TR2_LT2_Pos) /*!< 0x00000040 */
  2807. #define ADC_TR2_LT2_7 (0x80UL << ADC_TR2_LT2_Pos) /*!< 0x00000080 */
  2808. #define ADC_TR2_HT2_Pos (16U)
  2809. #define ADC_TR2_HT2_Msk (0xFFUL << ADC_TR2_HT2_Pos) /*!< 0x00FF0000 */
  2810. #define ADC_TR2_HT2 ADC_TR2_HT2_Msk /*!< ADC analog watchdog 2 threshold high */
  2811. #define ADC_TR2_HT2_0 (0x01UL << ADC_TR2_HT2_Pos) /*!< 0x00010000 */
  2812. #define ADC_TR2_HT2_1 (0x02UL << ADC_TR2_HT2_Pos) /*!< 0x00020000 */
  2813. #define ADC_TR2_HT2_2 (0x04UL << ADC_TR2_HT2_Pos) /*!< 0x00040000 */
  2814. #define ADC_TR2_HT2_3 (0x08UL << ADC_TR2_HT2_Pos) /*!< 0x00080000 */
  2815. #define ADC_TR2_HT2_4 (0x10UL << ADC_TR2_HT2_Pos) /*!< 0x00100000 */
  2816. #define ADC_TR2_HT2_5 (0x20UL << ADC_TR2_HT2_Pos) /*!< 0x00200000 */
  2817. #define ADC_TR2_HT2_6 (0x40UL << ADC_TR2_HT2_Pos) /*!< 0x00400000 */
  2818. #define ADC_TR2_HT2_7 (0x80UL << ADC_TR2_HT2_Pos) /*!< 0x00800000 */
  2819. /******************** Bit definition for ADC_TR3 register *******************/
  2820. #define ADC_TR3_LT3_Pos (0U)
  2821. #define ADC_TR3_LT3_Msk (0xFFUL << ADC_TR3_LT3_Pos) /*!< 0x000000FF */
  2822. #define ADC_TR3_LT3 ADC_TR3_LT3_Msk /*!< ADC analog watchdog 3 threshold low */
  2823. #define ADC_TR3_LT3_0 (0x01UL << ADC_TR3_LT3_Pos) /*!< 0x00000001 */
  2824. #define ADC_TR3_LT3_1 (0x02UL << ADC_TR3_LT3_Pos) /*!< 0x00000002 */
  2825. #define ADC_TR3_LT3_2 (0x04UL << ADC_TR3_LT3_Pos) /*!< 0x00000004 */
  2826. #define ADC_TR3_LT3_3 (0x08UL << ADC_TR3_LT3_Pos) /*!< 0x00000008 */
  2827. #define ADC_TR3_LT3_4 (0x10UL << ADC_TR3_LT3_Pos) /*!< 0x00000010 */
  2828. #define ADC_TR3_LT3_5 (0x20UL << ADC_TR3_LT3_Pos) /*!< 0x00000020 */
  2829. #define ADC_TR3_LT3_6 (0x40UL << ADC_TR3_LT3_Pos) /*!< 0x00000040 */
  2830. #define ADC_TR3_LT3_7 (0x80UL << ADC_TR3_LT3_Pos) /*!< 0x00000080 */
  2831. #define ADC_TR3_HT3_Pos (16U)
  2832. #define ADC_TR3_HT3_Msk (0xFFUL << ADC_TR3_HT3_Pos) /*!< 0x00FF0000 */
  2833. #define ADC_TR3_HT3 ADC_TR3_HT3_Msk /*!< ADC analog watchdog 3 threshold high */
  2834. #define ADC_TR3_HT3_0 (0x01UL << ADC_TR3_HT3_Pos) /*!< 0x00010000 */
  2835. #define ADC_TR3_HT3_1 (0x02UL << ADC_TR3_HT3_Pos) /*!< 0x00020000 */
  2836. #define ADC_TR3_HT3_2 (0x04UL << ADC_TR3_HT3_Pos) /*!< 0x00040000 */
  2837. #define ADC_TR3_HT3_3 (0x08UL << ADC_TR3_HT3_Pos) /*!< 0x00080000 */
  2838. #define ADC_TR3_HT3_4 (0x10UL << ADC_TR3_HT3_Pos) /*!< 0x00100000 */
  2839. #define ADC_TR3_HT3_5 (0x20UL << ADC_TR3_HT3_Pos) /*!< 0x00200000 */
  2840. #define ADC_TR3_HT3_6 (0x40UL << ADC_TR3_HT3_Pos) /*!< 0x00400000 */
  2841. #define ADC_TR3_HT3_7 (0x80UL << ADC_TR3_HT3_Pos) /*!< 0x00800000 */
  2842. /******************** Bit definition for ADC_SQR1 register ******************/
  2843. #define ADC_SQR1_L_Pos (0U)
  2844. #define ADC_SQR1_L_Msk (0xFUL << ADC_SQR1_L_Pos) /*!< 0x0000000F */
  2845. #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC group regular sequencer scan length */
  2846. #define ADC_SQR1_L_0 (0x1UL << ADC_SQR1_L_Pos) /*!< 0x00000001 */
  2847. #define ADC_SQR1_L_1 (0x2UL << ADC_SQR1_L_Pos) /*!< 0x00000002 */
  2848. #define ADC_SQR1_L_2 (0x4UL << ADC_SQR1_L_Pos) /*!< 0x00000004 */
  2849. #define ADC_SQR1_L_3 (0x8UL << ADC_SQR1_L_Pos) /*!< 0x00000008 */
  2850. #define ADC_SQR1_SQ1_Pos (6U)
  2851. #define ADC_SQR1_SQ1_Msk (0x1FUL << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */
  2852. #define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC group regular sequencer rank 1 */
  2853. #define ADC_SQR1_SQ1_0 (0x01UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */
  2854. #define ADC_SQR1_SQ1_1 (0x02UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */
  2855. #define ADC_SQR1_SQ1_2 (0x04UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */
  2856. #define ADC_SQR1_SQ1_3 (0x08UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */
  2857. #define ADC_SQR1_SQ1_4 (0x10UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */
  2858. #define ADC_SQR1_SQ2_Pos (12U)
  2859. #define ADC_SQR1_SQ2_Msk (0x1FUL << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */
  2860. #define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC group regular sequencer rank 2 */
  2861. #define ADC_SQR1_SQ2_0 (0x01UL << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */
  2862. #define ADC_SQR1_SQ2_1 (0x02UL << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */
  2863. #define ADC_SQR1_SQ2_2 (0x04UL << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */
  2864. #define ADC_SQR1_SQ2_3 (0x08UL << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */
  2865. #define ADC_SQR1_SQ2_4 (0x10UL << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */
  2866. #define ADC_SQR1_SQ3_Pos (18U)
  2867. #define ADC_SQR1_SQ3_Msk (0x1FUL << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */
  2868. #define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC group regular sequencer rank 3 */
  2869. #define ADC_SQR1_SQ3_0 (0x01UL << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */
  2870. #define ADC_SQR1_SQ3_1 (0x02UL << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */
  2871. #define ADC_SQR1_SQ3_2 (0x04UL << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */
  2872. #define ADC_SQR1_SQ3_3 (0x08UL << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */
  2873. #define ADC_SQR1_SQ3_4 (0x10UL << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */
  2874. #define ADC_SQR1_SQ4_Pos (24U)
  2875. #define ADC_SQR1_SQ4_Msk (0x1FUL << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */
  2876. #define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC group regular sequencer rank 4 */
  2877. #define ADC_SQR1_SQ4_0 (0x01UL << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */
  2878. #define ADC_SQR1_SQ4_1 (0x02UL << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */
  2879. #define ADC_SQR1_SQ4_2 (0x04UL << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */
  2880. #define ADC_SQR1_SQ4_3 (0x08UL << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */
  2881. #define ADC_SQR1_SQ4_4 (0x10UL << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */
  2882. /******************** Bit definition for ADC_SQR2 register ******************/
  2883. #define ADC_SQR2_SQ5_Pos (0U)
  2884. #define ADC_SQR2_SQ5_Msk (0x1FUL << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */
  2885. #define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC group regular sequencer rank 5 */
  2886. #define ADC_SQR2_SQ5_0 (0x01UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */
  2887. #define ADC_SQR2_SQ5_1 (0x02UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */
  2888. #define ADC_SQR2_SQ5_2 (0x04UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */
  2889. #define ADC_SQR2_SQ5_3 (0x08UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */
  2890. #define ADC_SQR2_SQ5_4 (0x10UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */
  2891. #define ADC_SQR2_SQ6_Pos (6U)
  2892. #define ADC_SQR2_SQ6_Msk (0x1FUL << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */
  2893. #define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC group regular sequencer rank 6 */
  2894. #define ADC_SQR2_SQ6_0 (0x01UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */
  2895. #define ADC_SQR2_SQ6_1 (0x02UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */
  2896. #define ADC_SQR2_SQ6_2 (0x04UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */
  2897. #define ADC_SQR2_SQ6_3 (0x08UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */
  2898. #define ADC_SQR2_SQ6_4 (0x10UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */
  2899. #define ADC_SQR2_SQ7_Pos (12U)
  2900. #define ADC_SQR2_SQ7_Msk (0x1FUL << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */
  2901. #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC group regular sequencer rank 7 */
  2902. #define ADC_SQR2_SQ7_0 (0x01UL << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */
  2903. #define ADC_SQR2_SQ7_1 (0x02UL << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */
  2904. #define ADC_SQR2_SQ7_2 (0x04UL << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */
  2905. #define ADC_SQR2_SQ7_3 (0x08UL << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */
  2906. #define ADC_SQR2_SQ7_4 (0x10UL << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */
  2907. #define ADC_SQR2_SQ8_Pos (18U)
  2908. #define ADC_SQR2_SQ8_Msk (0x1FUL << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */
  2909. #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC group regular sequencer rank 8 */
  2910. #define ADC_SQR2_SQ8_0 (0x01UL << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */
  2911. #define ADC_SQR2_SQ8_1 (0x02UL << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */
  2912. #define ADC_SQR2_SQ8_2 (0x04UL << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */
  2913. #define ADC_SQR2_SQ8_3 (0x08UL << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */
  2914. #define ADC_SQR2_SQ8_4 (0x10UL << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */
  2915. #define ADC_SQR2_SQ9_Pos (24U)
  2916. #define ADC_SQR2_SQ9_Msk (0x1FUL << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */
  2917. #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC group regular sequencer rank 9 */
  2918. #define ADC_SQR2_SQ9_0 (0x01UL << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */
  2919. #define ADC_SQR2_SQ9_1 (0x02UL << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */
  2920. #define ADC_SQR2_SQ9_2 (0x04UL << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */
  2921. #define ADC_SQR2_SQ9_3 (0x08UL << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */
  2922. #define ADC_SQR2_SQ9_4 (0x10UL << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */
  2923. /******************** Bit definition for ADC_SQR3 register ******************/
  2924. #define ADC_SQR3_SQ10_Pos (0U)
  2925. #define ADC_SQR3_SQ10_Msk (0x1FUL << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */
  2926. #define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC group regular sequencer rank 10 */
  2927. #define ADC_SQR3_SQ10_0 (0x01UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */
  2928. #define ADC_SQR3_SQ10_1 (0x02UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */
  2929. #define ADC_SQR3_SQ10_2 (0x04UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */
  2930. #define ADC_SQR3_SQ10_3 (0x08UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */
  2931. #define ADC_SQR3_SQ10_4 (0x10UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */
  2932. #define ADC_SQR3_SQ11_Pos (6U)
  2933. #define ADC_SQR3_SQ11_Msk (0x1FUL << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */
  2934. #define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC group regular sequencer rank 11 */
  2935. #define ADC_SQR3_SQ11_0 (0x01UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */
  2936. #define ADC_SQR3_SQ11_1 (0x02UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */
  2937. #define ADC_SQR3_SQ11_2 (0x04UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */
  2938. #define ADC_SQR3_SQ11_3 (0x08UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */
  2939. #define ADC_SQR3_SQ11_4 (0x10UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */
  2940. #define ADC_SQR3_SQ12_Pos (12U)
  2941. #define ADC_SQR3_SQ12_Msk (0x1FUL << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */
  2942. #define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC group regular sequencer rank 12 */
  2943. #define ADC_SQR3_SQ12_0 (0x01UL << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */
  2944. #define ADC_SQR3_SQ12_1 (0x02UL << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */
  2945. #define ADC_SQR3_SQ12_2 (0x04UL << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */
  2946. #define ADC_SQR3_SQ12_3 (0x08UL << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */
  2947. #define ADC_SQR3_SQ12_4 (0x10UL << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */
  2948. #define ADC_SQR3_SQ13_Pos (18U)
  2949. #define ADC_SQR3_SQ13_Msk (0x1FUL << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */
  2950. #define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC group regular sequencer rank 13 */
  2951. #define ADC_SQR3_SQ13_0 (0x01UL << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */
  2952. #define ADC_SQR3_SQ13_1 (0x02UL << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */
  2953. #define ADC_SQR3_SQ13_2 (0x04UL << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */
  2954. #define ADC_SQR3_SQ13_3 (0x08UL << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */
  2955. #define ADC_SQR3_SQ13_4 (0x10UL << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */
  2956. #define ADC_SQR3_SQ14_Pos (24U)
  2957. #define ADC_SQR3_SQ14_Msk (0x1FUL << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */
  2958. #define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC group regular sequencer rank 14 */
  2959. #define ADC_SQR3_SQ14_0 (0x01UL << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */
  2960. #define ADC_SQR3_SQ14_1 (0x02UL << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */
  2961. #define ADC_SQR3_SQ14_2 (0x04UL << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */
  2962. #define ADC_SQR3_SQ14_3 (0x08UL << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */
  2963. #define ADC_SQR3_SQ14_4 (0x10UL << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */
  2964. /******************** Bit definition for ADC_SQR4 register ******************/
  2965. #define ADC_SQR4_SQ15_Pos (0U)
  2966. #define ADC_SQR4_SQ15_Msk (0x1FUL << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */
  2967. #define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC group regular sequencer rank 15 */
  2968. #define ADC_SQR4_SQ15_0 (0x01UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */
  2969. #define ADC_SQR4_SQ15_1 (0x02UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */
  2970. #define ADC_SQR4_SQ15_2 (0x04UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */
  2971. #define ADC_SQR4_SQ15_3 (0x08UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */
  2972. #define ADC_SQR4_SQ15_4 (0x10UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */
  2973. #define ADC_SQR4_SQ16_Pos (6U)
  2974. #define ADC_SQR4_SQ16_Msk (0x1FUL << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */
  2975. #define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC group regular sequencer rank 16 */
  2976. #define ADC_SQR4_SQ16_0 (0x01UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */
  2977. #define ADC_SQR4_SQ16_1 (0x02UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */
  2978. #define ADC_SQR4_SQ16_2 (0x04UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */
  2979. #define ADC_SQR4_SQ16_3 (0x08UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */
  2980. #define ADC_SQR4_SQ16_4 (0x10UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */
  2981. /******************** Bit definition for ADC_DR register ********************/
  2982. #define ADC_DR_RDATA_Pos (0U)
  2983. #define ADC_DR_RDATA_Msk (0xFFFFUL << ADC_DR_RDATA_Pos) /*!< 0x0000FFFF */
  2984. #define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC group regular conversion data */
  2985. #define ADC_DR_RDATA_0 (0x0001UL << ADC_DR_RDATA_Pos) /*!< 0x00000001 */
  2986. #define ADC_DR_RDATA_1 (0x0002UL << ADC_DR_RDATA_Pos) /*!< 0x00000002 */
  2987. #define ADC_DR_RDATA_2 (0x0004UL << ADC_DR_RDATA_Pos) /*!< 0x00000004 */
  2988. #define ADC_DR_RDATA_3 (0x0008UL << ADC_DR_RDATA_Pos) /*!< 0x00000008 */
  2989. #define ADC_DR_RDATA_4 (0x0010UL << ADC_DR_RDATA_Pos) /*!< 0x00000010 */
  2990. #define ADC_DR_RDATA_5 (0x0020UL << ADC_DR_RDATA_Pos) /*!< 0x00000020 */
  2991. #define ADC_DR_RDATA_6 (0x0040UL << ADC_DR_RDATA_Pos) /*!< 0x00000040 */
  2992. #define ADC_DR_RDATA_7 (0x0080UL << ADC_DR_RDATA_Pos) /*!< 0x00000080 */
  2993. #define ADC_DR_RDATA_8 (0x0100UL << ADC_DR_RDATA_Pos) /*!< 0x00000100 */
  2994. #define ADC_DR_RDATA_9 (0x0200UL << ADC_DR_RDATA_Pos) /*!< 0x00000200 */
  2995. #define ADC_DR_RDATA_10 (0x0400UL << ADC_DR_RDATA_Pos) /*!< 0x00000400 */
  2996. #define ADC_DR_RDATA_11 (0x0800UL << ADC_DR_RDATA_Pos) /*!< 0x00000800 */
  2997. #define ADC_DR_RDATA_12 (0x1000UL << ADC_DR_RDATA_Pos) /*!< 0x00001000 */
  2998. #define ADC_DR_RDATA_13 (0x2000UL << ADC_DR_RDATA_Pos) /*!< 0x00002000 */
  2999. #define ADC_DR_RDATA_14 (0x4000UL << ADC_DR_RDATA_Pos) /*!< 0x00004000 */
  3000. #define ADC_DR_RDATA_15 (0x8000UL << ADC_DR_RDATA_Pos) /*!< 0x00008000 */
  3001. /******************** Bit definition for ADC_JSQR register ******************/
  3002. #define ADC_JSQR_JL_Pos (0U)
  3003. #define ADC_JSQR_JL_Msk (0x3UL << ADC_JSQR_JL_Pos) /*!< 0x00000003 */
  3004. #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC group injected sequencer scan length */
  3005. #define ADC_JSQR_JL_0 (0x1UL << ADC_JSQR_JL_Pos) /*!< 0x00000001 */
  3006. #define ADC_JSQR_JL_1 (0x2UL << ADC_JSQR_JL_Pos) /*!< 0x00000002 */
  3007. #define ADC_JSQR_JEXTSEL_Pos (2U)
  3008. #define ADC_JSQR_JEXTSEL_Msk (0xFUL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000003C */
  3009. #define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC group injected external trigger source */
  3010. #define ADC_JSQR_JEXTSEL_0 (0x1UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */
  3011. #define ADC_JSQR_JEXTSEL_1 (0x2UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */
  3012. #define ADC_JSQR_JEXTSEL_2 (0x4UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */
  3013. #define ADC_JSQR_JEXTSEL_3 (0x8UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */
  3014. #define ADC_JSQR_JEXTEN_Pos (6U)
  3015. #define ADC_JSQR_JEXTEN_Msk (0x3UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x000000C0 */
  3016. #define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC group injected external trigger polarity */
  3017. #define ADC_JSQR_JEXTEN_0 (0x1UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000040 */
  3018. #define ADC_JSQR_JEXTEN_1 (0x2UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */
  3019. #define ADC_JSQR_JSQ1_Pos (8U)
  3020. #define ADC_JSQR_JSQ1_Msk (0x1FUL << ADC_JSQR_JSQ1_Pos) /*!< 0x00001F00 */
  3021. #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC group injected sequencer rank 1 */
  3022. #define ADC_JSQR_JSQ1_0 (0x01UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000100 */
  3023. #define ADC_JSQR_JSQ1_1 (0x02UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */
  3024. #define ADC_JSQR_JSQ1_2 (0x04UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */
  3025. #define ADC_JSQR_JSQ1_3 (0x08UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */
  3026. #define ADC_JSQR_JSQ1_4 (0x10UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */
  3027. #define ADC_JSQR_JSQ2_Pos (14U)
  3028. #define ADC_JSQR_JSQ2_Msk (0x1FUL << ADC_JSQR_JSQ2_Pos) /*!< 0x0007C000 */
  3029. #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC group injected sequencer rank 2 */
  3030. #define ADC_JSQR_JSQ2_0 (0x01UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00004000 */
  3031. #define ADC_JSQR_JSQ2_1 (0x02UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */
  3032. #define ADC_JSQR_JSQ2_2 (0x04UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */
  3033. #define ADC_JSQR_JSQ2_3 (0x08UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */
  3034. #define ADC_JSQR_JSQ2_4 (0x10UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */
  3035. #define ADC_JSQR_JSQ3_Pos (20U)
  3036. #define ADC_JSQR_JSQ3_Msk (0x1FUL << ADC_JSQR_JSQ3_Pos) /*!< 0x01F00000 */
  3037. #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC group injected sequencer rank 3 */
  3038. #define ADC_JSQR_JSQ3_0 (0x01UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00100000 */
  3039. #define ADC_JSQR_JSQ3_1 (0x02UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */
  3040. #define ADC_JSQR_JSQ3_2 (0x04UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */
  3041. #define ADC_JSQR_JSQ3_3 (0x08UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */
  3042. #define ADC_JSQR_JSQ3_4 (0x10UL << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */
  3043. #define ADC_JSQR_JSQ4_Pos (26U)
  3044. #define ADC_JSQR_JSQ4_Msk (0x1FUL << ADC_JSQR_JSQ4_Pos) /*!< 0x7C000000 */
  3045. #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC group injected sequencer rank 4 */
  3046. #define ADC_JSQR_JSQ4_0 (0x01UL << ADC_JSQR_JSQ4_Pos) /*!< 0x04000000 */
  3047. #define ADC_JSQR_JSQ4_1 (0x02UL << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */
  3048. #define ADC_JSQR_JSQ4_2 (0x04UL << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */
  3049. #define ADC_JSQR_JSQ4_3 (0x08UL << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */
  3050. #define ADC_JSQR_JSQ4_4 (0x10UL << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */
  3051. /******************** Bit definition for ADC_OFR1 register ******************/
  3052. #define ADC_OFR1_OFFSET1_Pos (0U)
  3053. #define ADC_OFR1_OFFSET1_Msk (0xFFFUL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000FFF */
  3054. #define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC offset number 1 offset level */
  3055. #define ADC_OFR1_OFFSET1_0 (0x001UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
  3056. #define ADC_OFR1_OFFSET1_1 (0x002UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
  3057. #define ADC_OFR1_OFFSET1_2 (0x004UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
  3058. #define ADC_OFR1_OFFSET1_3 (0x008UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
  3059. #define ADC_OFR1_OFFSET1_4 (0x010UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
  3060. #define ADC_OFR1_OFFSET1_5 (0x020UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
  3061. #define ADC_OFR1_OFFSET1_6 (0x040UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
  3062. #define ADC_OFR1_OFFSET1_7 (0x080UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
  3063. #define ADC_OFR1_OFFSET1_8 (0x100UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
  3064. #define ADC_OFR1_OFFSET1_9 (0x200UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
  3065. #define ADC_OFR1_OFFSET1_10 (0x400UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
  3066. #define ADC_OFR1_OFFSET1_11 (0x800UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
  3067. #define ADC_OFR1_OFFSET1_CH_Pos (26U)
  3068. #define ADC_OFR1_OFFSET1_CH_Msk (0x1FUL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */
  3069. #define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC offset number 1 channel selection */
  3070. #define ADC_OFR1_OFFSET1_CH_0 (0x01UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */
  3071. #define ADC_OFR1_OFFSET1_CH_1 (0x02UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */
  3072. #define ADC_OFR1_OFFSET1_CH_2 (0x04UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */
  3073. #define ADC_OFR1_OFFSET1_CH_3 (0x08UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */
  3074. #define ADC_OFR1_OFFSET1_CH_4 (0x10UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */
  3075. #define ADC_OFR1_OFFSET1_EN_Pos (31U)
  3076. #define ADC_OFR1_OFFSET1_EN_Msk (0x1UL << ADC_OFR1_OFFSET1_EN_Pos) /*!< 0x80000000 */
  3077. #define ADC_OFR1_OFFSET1_EN ADC_OFR1_OFFSET1_EN_Msk /*!< ADC offset number 1 enable */
  3078. /******************** Bit definition for ADC_OFR2 register ******************/
  3079. #define ADC_OFR2_OFFSET2_Pos (0U)
  3080. #define ADC_OFR2_OFFSET2_Msk (0xFFFUL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000FFF */
  3081. #define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC offset number 2 offset level */
  3082. #define ADC_OFR2_OFFSET2_0 (0x001UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
  3083. #define ADC_OFR2_OFFSET2_1 (0x002UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
  3084. #define ADC_OFR2_OFFSET2_2 (0x004UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
  3085. #define ADC_OFR2_OFFSET2_3 (0x008UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
  3086. #define ADC_OFR2_OFFSET2_4 (0x010UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
  3087. #define ADC_OFR2_OFFSET2_5 (0x020UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
  3088. #define ADC_OFR2_OFFSET2_6 (0x040UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
  3089. #define ADC_OFR2_OFFSET2_7 (0x080UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
  3090. #define ADC_OFR2_OFFSET2_8 (0x100UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
  3091. #define ADC_OFR2_OFFSET2_9 (0x200UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
  3092. #define ADC_OFR2_OFFSET2_10 (0x400UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
  3093. #define ADC_OFR2_OFFSET2_11 (0x800UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
  3094. #define ADC_OFR2_OFFSET2_CH_Pos (26U)
  3095. #define ADC_OFR2_OFFSET2_CH_Msk (0x1FUL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */
  3096. #define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC offset number 2 channel selection */
  3097. #define ADC_OFR2_OFFSET2_CH_0 (0x01UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */
  3098. #define ADC_OFR2_OFFSET2_CH_1 (0x02UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */
  3099. #define ADC_OFR2_OFFSET2_CH_2 (0x04UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */
  3100. #define ADC_OFR2_OFFSET2_CH_3 (0x08UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */
  3101. #define ADC_OFR2_OFFSET2_CH_4 (0x10UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */
  3102. #define ADC_OFR2_OFFSET2_EN_Pos (31U)
  3103. #define ADC_OFR2_OFFSET2_EN_Msk (0x1UL << ADC_OFR2_OFFSET2_EN_Pos) /*!< 0x80000000 */
  3104. #define ADC_OFR2_OFFSET2_EN ADC_OFR2_OFFSET2_EN_Msk /*!< ADC offset number 2 enable */
  3105. /******************** Bit definition for ADC_OFR3 register ******************/
  3106. #define ADC_OFR3_OFFSET3_Pos (0U)
  3107. #define ADC_OFR3_OFFSET3_Msk (0xFFFUL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000FFF */
  3108. #define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC offset number 3 offset level */
  3109. #define ADC_OFR3_OFFSET3_0 (0x001UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
  3110. #define ADC_OFR3_OFFSET3_1 (0x002UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
  3111. #define ADC_OFR3_OFFSET3_2 (0x004UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
  3112. #define ADC_OFR3_OFFSET3_3 (0x008UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
  3113. #define ADC_OFR3_OFFSET3_4 (0x010UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
  3114. #define ADC_OFR3_OFFSET3_5 (0x020UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
  3115. #define ADC_OFR3_OFFSET3_6 (0x040UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
  3116. #define ADC_OFR3_OFFSET3_7 (0x080UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
  3117. #define ADC_OFR3_OFFSET3_8 (0x100UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
  3118. #define ADC_OFR3_OFFSET3_9 (0x200UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
  3119. #define ADC_OFR3_OFFSET3_10 (0x400UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
  3120. #define ADC_OFR3_OFFSET3_11 (0x800UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
  3121. #define ADC_OFR3_OFFSET3_CH_Pos (26U)
  3122. #define ADC_OFR3_OFFSET3_CH_Msk (0x1FUL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */
  3123. #define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC offset number 3 channel selection */
  3124. #define ADC_OFR3_OFFSET3_CH_0 (0x01UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */
  3125. #define ADC_OFR3_OFFSET3_CH_1 (0x02UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */
  3126. #define ADC_OFR3_OFFSET3_CH_2 (0x04UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */
  3127. #define ADC_OFR3_OFFSET3_CH_3 (0x08UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */
  3128. #define ADC_OFR3_OFFSET3_CH_4 (0x10UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */
  3129. #define ADC_OFR3_OFFSET3_EN_Pos (31U)
  3130. #define ADC_OFR3_OFFSET3_EN_Msk (0x1UL << ADC_OFR3_OFFSET3_EN_Pos) /*!< 0x80000000 */
  3131. #define ADC_OFR3_OFFSET3_EN ADC_OFR3_OFFSET3_EN_Msk /*!< ADC offset number 3 enable */
  3132. /******************** Bit definition for ADC_OFR4 register ******************/
  3133. #define ADC_OFR4_OFFSET4_Pos (0U)
  3134. #define ADC_OFR4_OFFSET4_Msk (0xFFFUL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000FFF */
  3135. #define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC offset number 4 offset level */
  3136. #define ADC_OFR4_OFFSET4_0 (0x001UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
  3137. #define ADC_OFR4_OFFSET4_1 (0x002UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
  3138. #define ADC_OFR4_OFFSET4_2 (0x004UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
  3139. #define ADC_OFR4_OFFSET4_3 (0x008UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
  3140. #define ADC_OFR4_OFFSET4_4 (0x010UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
  3141. #define ADC_OFR4_OFFSET4_5 (0x020UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
  3142. #define ADC_OFR4_OFFSET4_6 (0x040UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
  3143. #define ADC_OFR4_OFFSET4_7 (0x080UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
  3144. #define ADC_OFR4_OFFSET4_8 (0x100UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
  3145. #define ADC_OFR4_OFFSET4_9 (0x200UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
  3146. #define ADC_OFR4_OFFSET4_10 (0x400UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
  3147. #define ADC_OFR4_OFFSET4_11 (0x800UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
  3148. #define ADC_OFR4_OFFSET4_CH_Pos (26U)
  3149. #define ADC_OFR4_OFFSET4_CH_Msk (0x1FUL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */
  3150. #define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC offset number 4 channel selection */
  3151. #define ADC_OFR4_OFFSET4_CH_0 (0x01UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */
  3152. #define ADC_OFR4_OFFSET4_CH_1 (0x02UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */
  3153. #define ADC_OFR4_OFFSET4_CH_2 (0x04UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */
  3154. #define ADC_OFR4_OFFSET4_CH_3 (0x08UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */
  3155. #define ADC_OFR4_OFFSET4_CH_4 (0x10UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */
  3156. #define ADC_OFR4_OFFSET4_EN_Pos (31U)
  3157. #define ADC_OFR4_OFFSET4_EN_Msk (0x1UL << ADC_OFR4_OFFSET4_EN_Pos) /*!< 0x80000000 */
  3158. #define ADC_OFR4_OFFSET4_EN ADC_OFR4_OFFSET4_EN_Msk /*!< ADC offset number 4 enable */
  3159. /******************** Bit definition for ADC_JDR1 register ******************/
  3160. #define ADC_JDR1_JDATA_Pos (0U)
  3161. #define ADC_JDR1_JDATA_Msk (0xFFFFUL << ADC_JDR1_JDATA_Pos) /*!< 0x0000FFFF */
  3162. #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC group injected sequencer rank 1 conversion data */
  3163. #define ADC_JDR1_JDATA_0 (0x0001UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */
  3164. #define ADC_JDR1_JDATA_1 (0x0002UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */
  3165. #define ADC_JDR1_JDATA_2 (0x0004UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */
  3166. #define ADC_JDR1_JDATA_3 (0x0008UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */
  3167. #define ADC_JDR1_JDATA_4 (0x0010UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */
  3168. #define ADC_JDR1_JDATA_5 (0x0020UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */
  3169. #define ADC_JDR1_JDATA_6 (0x0040UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */
  3170. #define ADC_JDR1_JDATA_7 (0x0080UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */
  3171. #define ADC_JDR1_JDATA_8 (0x0100UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */
  3172. #define ADC_JDR1_JDATA_9 (0x0200UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */
  3173. #define ADC_JDR1_JDATA_10 (0x0400UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */
  3174. #define ADC_JDR1_JDATA_11 (0x0800UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */
  3175. #define ADC_JDR1_JDATA_12 (0x1000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */
  3176. #define ADC_JDR1_JDATA_13 (0x2000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */
  3177. #define ADC_JDR1_JDATA_14 (0x4000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */
  3178. #define ADC_JDR1_JDATA_15 (0x8000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */
  3179. /******************** Bit definition for ADC_JDR2 register ******************/
  3180. #define ADC_JDR2_JDATA_Pos (0U)
  3181. #define ADC_JDR2_JDATA_Msk (0xFFFFUL << ADC_JDR2_JDATA_Pos) /*!< 0x0000FFFF */
  3182. #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC group injected sequencer rank 2 conversion data */
  3183. #define ADC_JDR2_JDATA_0 (0x0001UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */
  3184. #define ADC_JDR2_JDATA_1 (0x0002UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */
  3185. #define ADC_JDR2_JDATA_2 (0x0004UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */
  3186. #define ADC_JDR2_JDATA_3 (0x0008UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */
  3187. #define ADC_JDR2_JDATA_4 (0x0010UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */
  3188. #define ADC_JDR2_JDATA_5 (0x0020UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */
  3189. #define ADC_JDR2_JDATA_6 (0x0040UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */
  3190. #define ADC_JDR2_JDATA_7 (0x0080UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */
  3191. #define ADC_JDR2_JDATA_8 (0x0100UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */
  3192. #define ADC_JDR2_JDATA_9 (0x0200UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */
  3193. #define ADC_JDR2_JDATA_10 (0x0400UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */
  3194. #define ADC_JDR2_JDATA_11 (0x0800UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */
  3195. #define ADC_JDR2_JDATA_12 (0x1000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */
  3196. #define ADC_JDR2_JDATA_13 (0x2000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */
  3197. #define ADC_JDR2_JDATA_14 (0x4000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */
  3198. #define ADC_JDR2_JDATA_15 (0x8000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */
  3199. /******************** Bit definition for ADC_JDR3 register ******************/
  3200. #define ADC_JDR3_JDATA_Pos (0U)
  3201. #define ADC_JDR3_JDATA_Msk (0xFFFFUL << ADC_JDR3_JDATA_Pos) /*!< 0x0000FFFF */
  3202. #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC group injected sequencer rank 3 conversion data */
  3203. #define ADC_JDR3_JDATA_0 (0x0001UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */
  3204. #define ADC_JDR3_JDATA_1 (0x0002UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */
  3205. #define ADC_JDR3_JDATA_2 (0x0004UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */
  3206. #define ADC_JDR3_JDATA_3 (0x0008UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */
  3207. #define ADC_JDR3_JDATA_4 (0x0010UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */
  3208. #define ADC_JDR3_JDATA_5 (0x0020UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */
  3209. #define ADC_JDR3_JDATA_6 (0x0040UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */
  3210. #define ADC_JDR3_JDATA_7 (0x0080UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */
  3211. #define ADC_JDR3_JDATA_8 (0x0100UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */
  3212. #define ADC_JDR3_JDATA_9 (0x0200UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */
  3213. #define ADC_JDR3_JDATA_10 (0x0400UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */
  3214. #define ADC_JDR3_JDATA_11 (0x0800UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */
  3215. #define ADC_JDR3_JDATA_12 (0x1000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */
  3216. #define ADC_JDR3_JDATA_13 (0x2000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */
  3217. #define ADC_JDR3_JDATA_14 (0x4000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */
  3218. #define ADC_JDR3_JDATA_15 (0x8000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */
  3219. /******************** Bit definition for ADC_JDR4 register ******************/
  3220. #define ADC_JDR4_JDATA_Pos (0U)
  3221. #define ADC_JDR4_JDATA_Msk (0xFFFFUL << ADC_JDR4_JDATA_Pos) /*!< 0x0000FFFF */
  3222. #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC group injected sequencer rank 4 conversion data */
  3223. #define ADC_JDR4_JDATA_0 (0x0001UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */
  3224. #define ADC_JDR4_JDATA_1 (0x0002UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */
  3225. #define ADC_JDR4_JDATA_2 (0x0004UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */
  3226. #define ADC_JDR4_JDATA_3 (0x0008UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */
  3227. #define ADC_JDR4_JDATA_4 (0x0010UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */
  3228. #define ADC_JDR4_JDATA_5 (0x0020UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */
  3229. #define ADC_JDR4_JDATA_6 (0x0040UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */
  3230. #define ADC_JDR4_JDATA_7 (0x0080UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */
  3231. #define ADC_JDR4_JDATA_8 (0x0100UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */
  3232. #define ADC_JDR4_JDATA_9 (0x0200UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */
  3233. #define ADC_JDR4_JDATA_10 (0x0400UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */
  3234. #define ADC_JDR4_JDATA_11 (0x0800UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */
  3235. #define ADC_JDR4_JDATA_12 (0x1000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */
  3236. #define ADC_JDR4_JDATA_13 (0x2000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */
  3237. #define ADC_JDR4_JDATA_14 (0x4000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */
  3238. #define ADC_JDR4_JDATA_15 (0x8000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */
  3239. /******************** Bit definition for ADC_AWD2CR register ****************/
  3240. #define ADC_AWD2CR_AWD2CH_Pos (0U)
  3241. #define ADC_AWD2CR_AWD2CH_Msk (0x7FFFFUL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x0007FFFF */
  3242. #define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC analog watchdog 2 monitored channel selection */
  3243. #define ADC_AWD2CR_AWD2CH_0 (0x00001UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */
  3244. #define ADC_AWD2CR_AWD2CH_1 (0x00002UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */
  3245. #define ADC_AWD2CR_AWD2CH_2 (0x00004UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */
  3246. #define ADC_AWD2CR_AWD2CH_3 (0x00008UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */
  3247. #define ADC_AWD2CR_AWD2CH_4 (0x00010UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */
  3248. #define ADC_AWD2CR_AWD2CH_5 (0x00020UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */
  3249. #define ADC_AWD2CR_AWD2CH_6 (0x00040UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */
  3250. #define ADC_AWD2CR_AWD2CH_7 (0x00080UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */
  3251. #define ADC_AWD2CR_AWD2CH_8 (0x00100UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */
  3252. #define ADC_AWD2CR_AWD2CH_9 (0x00200UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */
  3253. #define ADC_AWD2CR_AWD2CH_10 (0x00400UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */
  3254. #define ADC_AWD2CR_AWD2CH_11 (0x00800UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */
  3255. #define ADC_AWD2CR_AWD2CH_12 (0x01000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */
  3256. #define ADC_AWD2CR_AWD2CH_13 (0x02000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */
  3257. #define ADC_AWD2CR_AWD2CH_14 (0x04000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */
  3258. #define ADC_AWD2CR_AWD2CH_15 (0x08000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */
  3259. #define ADC_AWD2CR_AWD2CH_16 (0x10000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */
  3260. #define ADC_AWD2CR_AWD2CH_17 (0x20000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */
  3261. #define ADC_AWD2CR_AWD2CH_18 (0x40000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */
  3262. /******************** Bit definition for ADC_AWD3CR register ****************/
  3263. #define ADC_AWD3CR_AWD3CH_Pos (0U)
  3264. #define ADC_AWD3CR_AWD3CH_Msk (0x7FFFFUL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x0007FFFF */
  3265. #define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC analog watchdog 3 monitored channel selection */
  3266. #define ADC_AWD3CR_AWD3CH_0 (0x00001UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */
  3267. #define ADC_AWD3CR_AWD3CH_1 (0x00002UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */
  3268. #define ADC_AWD3CR_AWD3CH_2 (0x00004UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */
  3269. #define ADC_AWD3CR_AWD3CH_3 (0x00008UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */
  3270. #define ADC_AWD3CR_AWD3CH_4 (0x00010UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */
  3271. #define ADC_AWD3CR_AWD3CH_5 (0x00020UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */
  3272. #define ADC_AWD3CR_AWD3CH_6 (0x00040UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */
  3273. #define ADC_AWD3CR_AWD3CH_7 (0x00080UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */
  3274. #define ADC_AWD3CR_AWD3CH_8 (0x00100UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */
  3275. #define ADC_AWD3CR_AWD3CH_9 (0x00200UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */
  3276. #define ADC_AWD3CR_AWD3CH_10 (0x00400UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */
  3277. #define ADC_AWD3CR_AWD3CH_11 (0x00800UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */
  3278. #define ADC_AWD3CR_AWD3CH_12 (0x01000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */
  3279. #define ADC_AWD3CR_AWD3CH_13 (0x02000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */
  3280. #define ADC_AWD3CR_AWD3CH_14 (0x04000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */
  3281. #define ADC_AWD3CR_AWD3CH_15 (0x08000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */
  3282. #define ADC_AWD3CR_AWD3CH_16 (0x10000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */
  3283. #define ADC_AWD3CR_AWD3CH_17 (0x20000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */
  3284. #define ADC_AWD3CR_AWD3CH_18 (0x40000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */
  3285. /******************** Bit definition for ADC_DIFSEL register ****************/
  3286. #define ADC_DIFSEL_DIFSEL_Pos (0U)
  3287. #define ADC_DIFSEL_DIFSEL_Msk (0x7FFFFUL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x0007FFFF */
  3288. #define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC channel differential or single-ended mode */
  3289. #define ADC_DIFSEL_DIFSEL_0 (0x00001UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */
  3290. #define ADC_DIFSEL_DIFSEL_1 (0x00002UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */
  3291. #define ADC_DIFSEL_DIFSEL_2 (0x00004UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */
  3292. #define ADC_DIFSEL_DIFSEL_3 (0x00008UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */
  3293. #define ADC_DIFSEL_DIFSEL_4 (0x00010UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */
  3294. #define ADC_DIFSEL_DIFSEL_5 (0x00020UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */
  3295. #define ADC_DIFSEL_DIFSEL_6 (0x00040UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */
  3296. #define ADC_DIFSEL_DIFSEL_7 (0x00080UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */
  3297. #define ADC_DIFSEL_DIFSEL_8 (0x00100UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */
  3298. #define ADC_DIFSEL_DIFSEL_9 (0x00200UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */
  3299. #define ADC_DIFSEL_DIFSEL_10 (0x00400UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */
  3300. #define ADC_DIFSEL_DIFSEL_11 (0x00800UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */
  3301. #define ADC_DIFSEL_DIFSEL_12 (0x01000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */
  3302. #define ADC_DIFSEL_DIFSEL_13 (0x02000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */
  3303. #define ADC_DIFSEL_DIFSEL_14 (0x04000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */
  3304. #define ADC_DIFSEL_DIFSEL_15 (0x08000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */
  3305. #define ADC_DIFSEL_DIFSEL_16 (0x10000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */
  3306. #define ADC_DIFSEL_DIFSEL_17 (0x20000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */
  3307. #define ADC_DIFSEL_DIFSEL_18 (0x40000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */
  3308. /******************** Bit definition for ADC_CALFACT register ***************/
  3309. #define ADC_CALFACT_CALFACT_S_Pos (0U)
  3310. #define ADC_CALFACT_CALFACT_S_Msk (0x7FUL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x0000007F */
  3311. #define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factor in single-ended mode */
  3312. #define ADC_CALFACT_CALFACT_S_0 (0x01UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */
  3313. #define ADC_CALFACT_CALFACT_S_1 (0x02UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */
  3314. #define ADC_CALFACT_CALFACT_S_2 (0x04UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */
  3315. #define ADC_CALFACT_CALFACT_S_3 (0x08UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */
  3316. #define ADC_CALFACT_CALFACT_S_4 (0x10UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */
  3317. #define ADC_CALFACT_CALFACT_S_5 (0x20UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */
  3318. #define ADC_CALFACT_CALFACT_S_6 (0x40UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */
  3319. #define ADC_CALFACT_CALFACT_D_Pos (16U)
  3320. #define ADC_CALFACT_CALFACT_D_Msk (0x7FUL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x007F0000 */
  3321. #define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factor in differential mode */
  3322. #define ADC_CALFACT_CALFACT_D_0 (0x01UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */
  3323. #define ADC_CALFACT_CALFACT_D_1 (0x02UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */
  3324. #define ADC_CALFACT_CALFACT_D_2 (0x04UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */
  3325. #define ADC_CALFACT_CALFACT_D_3 (0x08UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */
  3326. #define ADC_CALFACT_CALFACT_D_4 (0x10UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */
  3327. #define ADC_CALFACT_CALFACT_D_5 (0x20UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */
  3328. #define ADC_CALFACT_CALFACT_D_6 (0x40UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */
  3329. /************************* ADC Common registers *****************************/
  3330. /******************** Bit definition for ADC_CSR register *******************/
  3331. #define ADC_CSR_ADRDY_MST_Pos (0U)
  3332. #define ADC_CSR_ADRDY_MST_Msk (0x1UL << ADC_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
  3333. #define ADC_CSR_ADRDY_MST ADC_CSR_ADRDY_MST_Msk /*!< ADC multimode master ready flag */
  3334. #define ADC_CSR_EOSMP_MST_Pos (1U)
  3335. #define ADC_CSR_EOSMP_MST_Msk (0x1UL << ADC_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */
  3336. #define ADC_CSR_EOSMP_MST ADC_CSR_EOSMP_MST_Msk /*!< ADC multimode master group regular end of sampling flag */
  3337. #define ADC_CSR_EOC_MST_Pos (2U)
  3338. #define ADC_CSR_EOC_MST_Msk (0x1UL << ADC_CSR_EOC_MST_Pos) /*!< 0x00000004 */
  3339. #define ADC_CSR_EOC_MST ADC_CSR_EOC_MST_Msk /*!< ADC multimode master group regular end of unitary conversion flag */
  3340. #define ADC_CSR_EOS_MST_Pos (3U)
  3341. #define ADC_CSR_EOS_MST_Msk (0x1UL << ADC_CSR_EOS_MST_Pos) /*!< 0x00000008 */
  3342. #define ADC_CSR_EOS_MST ADC_CSR_EOS_MST_Msk /*!< ADC multimode master group regular end of sequence conversions flag */
  3343. #define ADC_CSR_OVR_MST_Pos (4U)
  3344. #define ADC_CSR_OVR_MST_Msk (0x1UL << ADC_CSR_OVR_MST_Pos) /*!< 0x00000010 */
  3345. #define ADC_CSR_OVR_MST ADC_CSR_OVR_MST_Msk /*!< ADC multimode master group regular overrun flag */
  3346. #define ADC_CSR_JEOC_MST_Pos (5U)
  3347. #define ADC_CSR_JEOC_MST_Msk (0x1UL << ADC_CSR_JEOC_MST_Pos) /*!< 0x00000020 */
  3348. #define ADC_CSR_JEOC_MST ADC_CSR_JEOC_MST_Msk /*!< ADC multimode master group injected end of unitary conversion flag */
  3349. #define ADC_CSR_JEOS_MST_Pos (6U)
  3350. #define ADC_CSR_JEOS_MST_Msk (0x1UL << ADC_CSR_JEOS_MST_Pos) /*!< 0x00000040 */
  3351. #define ADC_CSR_JEOS_MST ADC_CSR_JEOS_MST_Msk /*!< ADC multimode master group injected end of sequence conversions flag */
  3352. #define ADC_CSR_AWD1_MST_Pos (7U)
  3353. #define ADC_CSR_AWD1_MST_Msk (0x1UL << ADC_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
  3354. #define ADC_CSR_AWD1_MST ADC_CSR_AWD1_MST_Msk /*!< ADC multimode master analog watchdog 1 flag */
  3355. #define ADC_CSR_AWD2_MST_Pos (8U)
  3356. #define ADC_CSR_AWD2_MST_Msk (0x1UL << ADC_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
  3357. #define ADC_CSR_AWD2_MST ADC_CSR_AWD2_MST_Msk /*!< ADC multimode master analog watchdog 2 flag */
  3358. #define ADC_CSR_AWD3_MST_Pos (9U)
  3359. #define ADC_CSR_AWD3_MST_Msk (0x1UL << ADC_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
  3360. #define ADC_CSR_AWD3_MST ADC_CSR_AWD3_MST_Msk /*!< ADC multimode master analog watchdog 3 flag */
  3361. #define ADC_CSR_JQOVF_MST_Pos (10U)
  3362. #define ADC_CSR_JQOVF_MST_Msk (0x1UL << ADC_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
  3363. #define ADC_CSR_JQOVF_MST ADC_CSR_JQOVF_MST_Msk /*!< ADC multimode master group injected contexts queue overflow flag */
  3364. #define ADC_CSR_ADRDY_SLV_Pos (16U)
  3365. #define ADC_CSR_ADRDY_SLV_Msk (0x1UL << ADC_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
  3366. #define ADC_CSR_ADRDY_SLV ADC_CSR_ADRDY_SLV_Msk /*!< ADC multimode slave ready flag */
  3367. #define ADC_CSR_EOSMP_SLV_Pos (17U)
  3368. #define ADC_CSR_EOSMP_SLV_Msk (0x1UL << ADC_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */
  3369. #define ADC_CSR_EOSMP_SLV ADC_CSR_EOSMP_SLV_Msk /*!< ADC multimode slave group regular end of sampling flag */
  3370. #define ADC_CSR_EOC_SLV_Pos (18U)
  3371. #define ADC_CSR_EOC_SLV_Msk (0x1UL << ADC_CSR_EOC_SLV_Pos) /*!< 0x00040000 */
  3372. #define ADC_CSR_EOC_SLV ADC_CSR_EOC_SLV_Msk /*!< ADC multimode slave group regular end of unitary conversion flag */
  3373. #define ADC_CSR_EOS_SLV_Pos (19U)
  3374. #define ADC_CSR_EOS_SLV_Msk (0x1UL << ADC_CSR_EOS_SLV_Pos) /*!< 0x00080000 */
  3375. #define ADC_CSR_EOS_SLV ADC_CSR_EOS_SLV_Msk /*!< ADC multimode slave group regular end of sequence conversions flag */
  3376. #define ADC_CSR_OVR_SLV_Pos (20U)
  3377. #define ADC_CSR_OVR_SLV_Msk (0x1UL << ADC_CSR_OVR_SLV_Pos) /*!< 0x00100000 */
  3378. #define ADC_CSR_OVR_SLV ADC_CSR_OVR_SLV_Msk /*!< ADC multimode slave group regular overrun flag */
  3379. #define ADC_CSR_JEOC_SLV_Pos (21U)
  3380. #define ADC_CSR_JEOC_SLV_Msk (0x1UL << ADC_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */
  3381. #define ADC_CSR_JEOC_SLV ADC_CSR_JEOC_SLV_Msk /*!< ADC multimode slave group injected end of unitary conversion flag */
  3382. #define ADC_CSR_JEOS_SLV_Pos (22U)
  3383. #define ADC_CSR_JEOS_SLV_Msk (0x1UL << ADC_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */
  3384. #define ADC_CSR_JEOS_SLV ADC_CSR_JEOS_SLV_Msk /*!< ADC multimode slave group injected end of sequence conversions flag */
  3385. #define ADC_CSR_AWD1_SLV_Pos (23U)
  3386. #define ADC_CSR_AWD1_SLV_Msk (0x1UL << ADC_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
  3387. #define ADC_CSR_AWD1_SLV ADC_CSR_AWD1_SLV_Msk /*!< ADC multimode slave analog watchdog 1 flag */
  3388. #define ADC_CSR_AWD2_SLV_Pos (24U)
  3389. #define ADC_CSR_AWD2_SLV_Msk (0x1UL << ADC_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
  3390. #define ADC_CSR_AWD2_SLV ADC_CSR_AWD2_SLV_Msk /*!< ADC multimode slave analog watchdog 2 flag */
  3391. #define ADC_CSR_AWD3_SLV_Pos (25U)
  3392. #define ADC_CSR_AWD3_SLV_Msk (0x1UL << ADC_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
  3393. #define ADC_CSR_AWD3_SLV ADC_CSR_AWD3_SLV_Msk /*!< ADC multimode slave analog watchdog 3 flag */
  3394. #define ADC_CSR_JQOVF_SLV_Pos (26U)
  3395. #define ADC_CSR_JQOVF_SLV_Msk (0x1UL << ADC_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
  3396. #define ADC_CSR_JQOVF_SLV ADC_CSR_JQOVF_SLV_Msk /*!< ADC multimode slave group injected contexts queue overflow flag */
  3397. /******************** Bit definition for ADC_CCR register *******************/
  3398. #define ADC_CCR_DUAL_Pos (0U)
  3399. #define ADC_CCR_DUAL_Msk (0x1FUL << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */
  3400. #define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< ADC multimode mode selection */
  3401. #define ADC_CCR_DUAL_0 (0x01UL << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */
  3402. #define ADC_CCR_DUAL_1 (0x02UL << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */
  3403. #define ADC_CCR_DUAL_2 (0x04UL << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */
  3404. #define ADC_CCR_DUAL_3 (0x08UL << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */
  3405. #define ADC_CCR_DUAL_4 (0x10UL << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */
  3406. #define ADC_CCR_DELAY_Pos (8U)
  3407. #define ADC_CCR_DELAY_Msk (0xFUL << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */
  3408. #define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< ADC multimode delay between 2 sampling phases */
  3409. #define ADC_CCR_DELAY_0 (0x1UL << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */
  3410. #define ADC_CCR_DELAY_1 (0x2UL << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */
  3411. #define ADC_CCR_DELAY_2 (0x4UL << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */
  3412. #define ADC_CCR_DELAY_3 (0x8UL << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */
  3413. #define ADC_CCR_DMACFG_Pos (13U)
  3414. #define ADC_CCR_DMACFG_Msk (0x1UL << ADC_CCR_DMACFG_Pos) /*!< 0x00002000 */
  3415. #define ADC_CCR_DMACFG ADC_CCR_DMACFG_Msk /*!< ADC multimode DMA transfer configuration */
  3416. #define ADC_CCR_MDMA_Pos (14U)
  3417. #define ADC_CCR_MDMA_Msk (0x3UL << ADC_CCR_MDMA_Pos) /*!< 0x0000C000 */
  3418. #define ADC_CCR_MDMA ADC_CCR_MDMA_Msk /*!< ADC multimode DMA transfer enable */
  3419. #define ADC_CCR_MDMA_0 (0x1UL << ADC_CCR_MDMA_Pos) /*!< 0x00004000 */
  3420. #define ADC_CCR_MDMA_1 (0x2UL << ADC_CCR_MDMA_Pos) /*!< 0x00008000 */
  3421. #define ADC_CCR_CKMODE_Pos (16U)
  3422. #define ADC_CCR_CKMODE_Msk (0x3UL << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */
  3423. #define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC common clock source and prescaler (prescaler only for clock source synchronous) */
  3424. #define ADC_CCR_CKMODE_0 (0x1UL << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */
  3425. #define ADC_CCR_CKMODE_1 (0x2UL << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */
  3426. #define ADC_CCR_PRESC_Pos (18U)
  3427. #define ADC_CCR_PRESC_Msk (0xFUL << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */
  3428. #define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC common clock prescaler, only for clock source asynchronous */
  3429. #define ADC_CCR_PRESC_0 (0x1UL << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */
  3430. #define ADC_CCR_PRESC_1 (0x2UL << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */
  3431. #define ADC_CCR_PRESC_2 (0x4UL << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */
  3432. #define ADC_CCR_PRESC_3 (0x8UL << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */
  3433. #define ADC_CCR_VREFEN_Pos (22U)
  3434. #define ADC_CCR_VREFEN_Msk (0x1UL << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  3435. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< ADC internal path to VrefInt enable */
  3436. #define ADC_CCR_TSEN_Pos (23U)
  3437. #define ADC_CCR_TSEN_Msk (0x1UL << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  3438. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< ADC internal path to temperature sensor enable */
  3439. #define ADC_CCR_VBATEN_Pos (24U)
  3440. #define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  3441. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
  3442. /******************** Bit definition for ADC_CDR register *******************/
  3443. #define ADC_CDR_RDATA_MST_Pos (0U)
  3444. #define ADC_CDR_RDATA_MST_Msk (0xFFFFUL << ADC_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
  3445. #define ADC_CDR_RDATA_MST ADC_CDR_RDATA_MST_Msk /*!< ADC multimode master group regular conversion data */
  3446. #define ADC_CDR_RDATA_MST_0 (0x0001UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000001 */
  3447. #define ADC_CDR_RDATA_MST_1 (0x0002UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000002 */
  3448. #define ADC_CDR_RDATA_MST_2 (0x0004UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000004 */
  3449. #define ADC_CDR_RDATA_MST_3 (0x0008UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000008 */
  3450. #define ADC_CDR_RDATA_MST_4 (0x0010UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000010 */
  3451. #define ADC_CDR_RDATA_MST_5 (0x0020UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000020 */
  3452. #define ADC_CDR_RDATA_MST_6 (0x0040UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000040 */
  3453. #define ADC_CDR_RDATA_MST_7 (0x0080UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000080 */
  3454. #define ADC_CDR_RDATA_MST_8 (0x0100UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000100 */
  3455. #define ADC_CDR_RDATA_MST_9 (0x0200UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000200 */
  3456. #define ADC_CDR_RDATA_MST_10 (0x0400UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000400 */
  3457. #define ADC_CDR_RDATA_MST_11 (0x0800UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000800 */
  3458. #define ADC_CDR_RDATA_MST_12 (0x1000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00001000 */
  3459. #define ADC_CDR_RDATA_MST_13 (0x2000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00002000 */
  3460. #define ADC_CDR_RDATA_MST_14 (0x4000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00004000 */
  3461. #define ADC_CDR_RDATA_MST_15 (0x8000UL << ADC_CDR_RDATA_MST_Pos) /*!< 0x00008000 */
  3462. #define ADC_CDR_RDATA_SLV_Pos (16U)
  3463. #define ADC_CDR_RDATA_SLV_Msk (0xFFFFUL << ADC_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
  3464. #define ADC_CDR_RDATA_SLV ADC_CDR_RDATA_SLV_Msk /*!< ADC multimode slave group regular conversion data */
  3465. #define ADC_CDR_RDATA_SLV_0 (0x0001UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00010000 */
  3466. #define ADC_CDR_RDATA_SLV_1 (0x0002UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00020000 */
  3467. #define ADC_CDR_RDATA_SLV_2 (0x0004UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00040000 */
  3468. #define ADC_CDR_RDATA_SLV_3 (0x0008UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00080000 */
  3469. #define ADC_CDR_RDATA_SLV_4 (0x0010UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00100000 */
  3470. #define ADC_CDR_RDATA_SLV_5 (0x0020UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00200000 */
  3471. #define ADC_CDR_RDATA_SLV_6 (0x0040UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00400000 */
  3472. #define ADC_CDR_RDATA_SLV_7 (0x0080UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00800000 */
  3473. #define ADC_CDR_RDATA_SLV_8 (0x0100UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x01000000 */
  3474. #define ADC_CDR_RDATA_SLV_9 (0x0200UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x02000000 */
  3475. #define ADC_CDR_RDATA_SLV_10 (0x0400UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x04000000 */
  3476. #define ADC_CDR_RDATA_SLV_11 (0x0800UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x08000000 */
  3477. #define ADC_CDR_RDATA_SLV_12 (0x1000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x10000000 */
  3478. #define ADC_CDR_RDATA_SLV_13 (0x2000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x20000000 */
  3479. #define ADC_CDR_RDATA_SLV_14 (0x4000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x40000000 */
  3480. #define ADC_CDR_RDATA_SLV_15 (0x8000UL << ADC_CDR_RDATA_SLV_Pos) /*!< 0x80000000 */
  3481. /******************************************************************************/
  3482. /* */
  3483. /* CRC calculation unit */
  3484. /* */
  3485. /******************************************************************************/
  3486. /******************* Bit definition for CRC_DR register *********************/
  3487. #define CRC_DR_DR_Pos (0U)
  3488. #define CRC_DR_DR_Msk (0xFFFFFFFFUL << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  3489. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  3490. /******************* Bit definition for CRC_IDR register ********************/
  3491. #define CRC_IDR_IDR_Pos (0U)
  3492. #define CRC_IDR_IDR_Msk (0xFFFFFFFFUL << CRC_IDR_IDR_Pos) /*!< 0xFFFFFFFF */
  3493. #define CRC_IDR_IDR CRC_IDR_IDR_Msk /*!< General-purpose 32-bits data register bits */
  3494. /******************** Bit definition for CRC_CR register ********************/
  3495. #define CRC_CR_RESET_Pos (0U)
  3496. #define CRC_CR_RESET_Msk (0x1UL << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  3497. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  3498. #define CRC_CR_POLYSIZE_Pos (3U)
  3499. #define CRC_CR_POLYSIZE_Msk (0x3UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  3500. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  3501. #define CRC_CR_POLYSIZE_0 (0x1UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  3502. #define CRC_CR_POLYSIZE_1 (0x2UL << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  3503. #define CRC_CR_REV_IN_Pos (5U)
  3504. #define CRC_CR_REV_IN_Msk (0x3UL << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  3505. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  3506. #define CRC_CR_REV_IN_0 (0x1UL << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  3507. #define CRC_CR_REV_IN_1 (0x2UL << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  3508. #define CRC_CR_REV_OUT_Pos (7U)
  3509. #define CRC_CR_REV_OUT_Msk (0x1UL << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  3510. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  3511. /******************* Bit definition for CRC_INIT register *******************/
  3512. #define CRC_INIT_INIT_Pos (0U)
  3513. #define CRC_INIT_INIT_Msk (0xFFFFFFFFUL << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  3514. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  3515. /******************* Bit definition for CRC_POL register ********************/
  3516. #define CRC_POL_POL_Pos (0U)
  3517. #define CRC_POL_POL_Msk (0xFFFFFFFFUL << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  3518. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  3519. /******************************************************************************/
  3520. /* */
  3521. /* CRS Clock Recovery System */
  3522. /******************************************************************************/
  3523. /******************* Bit definition for CRS_CR register *********************/
  3524. #define CRS_CR_SYNCOKIE_Pos (0U)
  3525. #define CRS_CR_SYNCOKIE_Msk (0x1UL << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */
  3526. #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /*!< SYNC event OK interrupt enable */
  3527. #define CRS_CR_SYNCWARNIE_Pos (1U)
  3528. #define CRS_CR_SYNCWARNIE_Msk (0x1UL << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */
  3529. #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /*!< SYNC warning interrupt enable */
  3530. #define CRS_CR_ERRIE_Pos (2U)
  3531. #define CRS_CR_ERRIE_Msk (0x1UL << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */
  3532. #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /*!< SYNC error or trimming error interrupt enable */
  3533. #define CRS_CR_ESYNCIE_Pos (3U)
  3534. #define CRS_CR_ESYNCIE_Msk (0x1UL << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */
  3535. #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /*!< Expected SYNC interrupt enable */
  3536. #define CRS_CR_CEN_Pos (5U)
  3537. #define CRS_CR_CEN_Msk (0x1UL << CRS_CR_CEN_Pos) /*!< 0x00000020 */
  3538. #define CRS_CR_CEN CRS_CR_CEN_Msk /*!< Frequency error counter enable */
  3539. #define CRS_CR_AUTOTRIMEN_Pos (6U)
  3540. #define CRS_CR_AUTOTRIMEN_Msk (0x1UL << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */
  3541. #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /*!< Automatic trimming enable */
  3542. #define CRS_CR_SWSYNC_Pos (7U)
  3543. #define CRS_CR_SWSYNC_Msk (0x1UL << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */
  3544. #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /*!< Generate software SYNC event */
  3545. #define CRS_CR_TRIM_Pos (8U)
  3546. #define CRS_CR_TRIM_Msk (0x7FUL << CRS_CR_TRIM_Pos) /*!< 0x00007F00 */
  3547. #define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< HSI48 oscillator smooth trimming */
  3548. /******************* Bit definition for CRS_CFGR register *********************/
  3549. #define CRS_CFGR_RELOAD_Pos (0U)
  3550. #define CRS_CFGR_RELOAD_Msk (0xFFFFUL << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */
  3551. #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /*!< Counter reload value */
  3552. #define CRS_CFGR_FELIM_Pos (16U)
  3553. #define CRS_CFGR_FELIM_Msk (0xFFUL << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */
  3554. #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /*!< Frequency error limit */
  3555. #define CRS_CFGR_SYNCDIV_Pos (24U)
  3556. #define CRS_CFGR_SYNCDIV_Msk (0x7UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */
  3557. #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /*!< SYNC divider */
  3558. #define CRS_CFGR_SYNCDIV_0 (0x1UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */
  3559. #define CRS_CFGR_SYNCDIV_1 (0x2UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */
  3560. #define CRS_CFGR_SYNCDIV_2 (0x4UL << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */
  3561. #define CRS_CFGR_SYNCSRC_Pos (28U)
  3562. #define CRS_CFGR_SYNCSRC_Msk (0x3UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */
  3563. #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /*!< SYNC signal source selection */
  3564. #define CRS_CFGR_SYNCSRC_0 (0x1UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */
  3565. #define CRS_CFGR_SYNCSRC_1 (0x2UL << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */
  3566. #define CRS_CFGR_SYNCPOL_Pos (31U)
  3567. #define CRS_CFGR_SYNCPOL_Msk (0x1UL << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */
  3568. #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /*!< SYNC polarity selection */
  3569. /******************* Bit definition for CRS_ISR register *********************/
  3570. #define CRS_ISR_SYNCOKF_Pos (0U)
  3571. #define CRS_ISR_SYNCOKF_Msk (0x1UL << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */
  3572. #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /*!< SYNC event OK flag */
  3573. #define CRS_ISR_SYNCWARNF_Pos (1U)
  3574. #define CRS_ISR_SYNCWARNF_Msk (0x1UL << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */
  3575. #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /*!< SYNC warning flag */
  3576. #define CRS_ISR_ERRF_Pos (2U)
  3577. #define CRS_ISR_ERRF_Msk (0x1UL << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */
  3578. #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /*!< Error flag */
  3579. #define CRS_ISR_ESYNCF_Pos (3U)
  3580. #define CRS_ISR_ESYNCF_Msk (0x1UL << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */
  3581. #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /*!< Expected SYNC flag */
  3582. #define CRS_ISR_SYNCERR_Pos (8U)
  3583. #define CRS_ISR_SYNCERR_Msk (0x1UL << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */
  3584. #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /*!< SYNC error */
  3585. #define CRS_ISR_SYNCMISS_Pos (9U)
  3586. #define CRS_ISR_SYNCMISS_Msk (0x1UL << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */
  3587. #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /*!< SYNC missed */
  3588. #define CRS_ISR_TRIMOVF_Pos (10U)
  3589. #define CRS_ISR_TRIMOVF_Msk (0x1UL << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */
  3590. #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /*!< Trimming overflow or underflow */
  3591. #define CRS_ISR_FEDIR_Pos (15U)
  3592. #define CRS_ISR_FEDIR_Msk (0x1UL << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */
  3593. #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /*!< Frequency error direction */
  3594. #define CRS_ISR_FECAP_Pos (16U)
  3595. #define CRS_ISR_FECAP_Msk (0xFFFFUL << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */
  3596. #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /*!< Frequency error capture */
  3597. /******************* Bit definition for CRS_ICR register *********************/
  3598. #define CRS_ICR_SYNCOKC_Pos (0U)
  3599. #define CRS_ICR_SYNCOKC_Msk (0x1UL << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */
  3600. #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /*!< SYNC event OK clear flag */
  3601. #define CRS_ICR_SYNCWARNC_Pos (1U)
  3602. #define CRS_ICR_SYNCWARNC_Msk (0x1UL << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */
  3603. #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /*!< SYNC warning clear flag */
  3604. #define CRS_ICR_ERRC_Pos (2U)
  3605. #define CRS_ICR_ERRC_Msk (0x1UL << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */
  3606. #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /*!< Error clear flag */
  3607. #define CRS_ICR_ESYNCC_Pos (3U)
  3608. #define CRS_ICR_ESYNCC_Msk (0x1UL << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */
  3609. #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /*!< Expected SYNC clear flag */
  3610. /******************************************************************************/
  3611. /* */
  3612. /* Digital to Analog Converter */
  3613. /* */
  3614. /******************************************************************************/
  3615. /*
  3616. * @brief Specific device feature definitions
  3617. */
  3618. #define DAC_CHANNEL2_SUPPORT /*!< DAC feature available only on specific devices: DAC channel 2 available */
  3619. /******************** Bit definition for DAC_CR register ********************/
  3620. #define DAC_CR_EN1_Pos (0U)
  3621. #define DAC_CR_EN1_Msk (0x1UL << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  3622. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!<DAC channel1 enable */
  3623. #define DAC_CR_TEN1_Pos (1U)
  3624. #define DAC_CR_TEN1_Msk (0x1UL << DAC_CR_TEN1_Pos) /*!< 0x00000002 */
  3625. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!<DAC channel1 Trigger enable */
  3626. #define DAC_CR_TSEL1_Pos (2U)
  3627. #define DAC_CR_TSEL1_Msk (0xFUL << DAC_CR_TSEL1_Pos) /*!< 0x0000003C */
  3628. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!<TSEL1[3:0] (DAC channel1 Trigger selection) */
  3629. #define DAC_CR_TSEL1_0 (0x1UL << DAC_CR_TSEL1_Pos) /*!< 0x00000004 */
  3630. #define DAC_CR_TSEL1_1 (0x2UL << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  3631. #define DAC_CR_TSEL1_2 (0x4UL << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  3632. #define DAC_CR_TSEL1_3 (0x8UL << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  3633. #define DAC_CR_WAVE1_Pos (6U)
  3634. #define DAC_CR_WAVE1_Msk (0x3UL << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  3635. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  3636. #define DAC_CR_WAVE1_0 (0x1UL << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  3637. #define DAC_CR_WAVE1_1 (0x2UL << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  3638. #define DAC_CR_MAMP1_Pos (8U)
  3639. #define DAC_CR_MAMP1_Msk (0xFUL << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  3640. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  3641. #define DAC_CR_MAMP1_0 (0x1UL << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  3642. #define DAC_CR_MAMP1_1 (0x2UL << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  3643. #define DAC_CR_MAMP1_2 (0x4UL << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  3644. #define DAC_CR_MAMP1_3 (0x8UL << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  3645. #define DAC_CR_DMAEN1_Pos (12U)
  3646. #define DAC_CR_DMAEN1_Msk (0x1UL << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  3647. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!<DAC channel1 DMA enable */
  3648. #define DAC_CR_DMAUDRIE1_Pos (13U)
  3649. #define DAC_CR_DMAUDRIE1_Msk (0x1UL << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  3650. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!<DAC channel 1 DMA underrun interrupt enable >*/
  3651. #define DAC_CR_CEN1_Pos (14U)
  3652. #define DAC_CR_CEN1_Msk (0x1UL << DAC_CR_CEN1_Pos) /*!< 0x00004000 */
  3653. #define DAC_CR_CEN1 DAC_CR_CEN1_Msk /*!<DAC channel 1 calibration enable >*/
  3654. #define DAC_CR_HFSEL_Pos (15U)
  3655. #define DAC_CR_HFSEL_Msk (0x1UL << DAC_CR_HFSEL_Pos) /*!< 0x00008000 */
  3656. #define DAC_CR_HFSEL DAC_CR_HFSEL_Msk /*!<DAC channel 1 and 2 high frequency mode enable >*/
  3657. #define DAC_CR_EN2_Pos (16U)
  3658. #define DAC_CR_EN2_Msk (0x1UL << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  3659. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!<DAC channel2 enable */
  3660. #define DAC_CR_TEN2_Pos (17U)
  3661. #define DAC_CR_TEN2_Msk (0x1UL << DAC_CR_TEN2_Pos) /*!< 0x00020000 */
  3662. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!<DAC channel2 Trigger enable */
  3663. #define DAC_CR_TSEL2_Pos (18U)
  3664. #define DAC_CR_TSEL2_Msk (0xFUL << DAC_CR_TSEL2_Pos) /*!< 0x003C0000 */
  3665. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!<TSEL2[3:0] (DAC channel2 Trigger selection) */
  3666. #define DAC_CR_TSEL2_0 (0x1UL << DAC_CR_TSEL2_Pos) /*!< 0x00040000 */
  3667. #define DAC_CR_TSEL2_1 (0x2UL << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  3668. #define DAC_CR_TSEL2_2 (0x4UL << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  3669. #define DAC_CR_TSEL2_3 (0x8UL << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  3670. #define DAC_CR_WAVE2_Pos (22U)
  3671. #define DAC_CR_WAVE2_Msk (0x3UL << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  3672. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!<WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  3673. #define DAC_CR_WAVE2_0 (0x1UL << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  3674. #define DAC_CR_WAVE2_1 (0x2UL << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  3675. #define DAC_CR_MAMP2_Pos (24U)
  3676. #define DAC_CR_MAMP2_Msk (0xFUL << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  3677. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!<MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  3678. #define DAC_CR_MAMP2_0 (0x1UL << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  3679. #define DAC_CR_MAMP2_1 (0x2UL << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  3680. #define DAC_CR_MAMP2_2 (0x4UL << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  3681. #define DAC_CR_MAMP2_3 (0x8UL << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  3682. #define DAC_CR_DMAEN2_Pos (28U)
  3683. #define DAC_CR_DMAEN2_Msk (0x1UL << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  3684. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!<DAC channel2 DMA enabled */
  3685. #define DAC_CR_DMAUDRIE2_Pos (29U)
  3686. #define DAC_CR_DMAUDRIE2_Msk (0x1UL << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  3687. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!<DAC channel2 DMA underrun interrupt enable >*/
  3688. #define DAC_CR_CEN2_Pos (30U)
  3689. #define DAC_CR_CEN2_Msk (0x1UL << DAC_CR_CEN2_Pos) /*!< 0x40000000 */
  3690. #define DAC_CR_CEN2 DAC_CR_CEN2_Msk /*!<DAC channel2 calibration enable >*/
  3691. /***************** Bit definition for DAC_SWTRIGR register ******************/
  3692. #define DAC_SWTRIGR_SWTRIG1_Pos (0U)
  3693. #define DAC_SWTRIGR_SWTRIG1_Msk (0x1UL << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */
  3694. #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!<DAC channel1 software trigger */
  3695. #define DAC_SWTRIGR_SWTRIG2_Pos (1U)
  3696. #define DAC_SWTRIGR_SWTRIG2_Msk (0x1UL << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */
  3697. #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!<DAC channel2 software trigger */
  3698. /***************** Bit definition for DAC_DHR12R1 register ******************/
  3699. #define DAC_DHR12R1_DACC1DHR_Pos (0U)
  3700. #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFUL << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */
  3701. #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  3702. /***************** Bit definition for DAC_DHR12L1 register ******************/
  3703. #define DAC_DHR12L1_DACC1DHR_Pos (4U)
  3704. #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFUL << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  3705. #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  3706. /****************** Bit definition for DAC_DHR8R1 register ******************/
  3707. #define DAC_DHR8R1_DACC1DHR_Pos (0U)
  3708. #define DAC_DHR8R1_DACC1DHR_Msk (0xFFUL << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */
  3709. #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */
  3710. /***************** Bit definition for DAC_DHR12R2 register ******************/
  3711. #define DAC_DHR12R2_DACC2DHR_Pos (0U)
  3712. #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFUL << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */
  3713. #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  3714. /***************** Bit definition for DAC_DHR12L2 register ******************/
  3715. #define DAC_DHR12L2_DACC2DHR_Pos (4U)
  3716. #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFUL << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */
  3717. #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  3718. /****************** Bit definition for DAC_DHR8R2 register ******************/
  3719. #define DAC_DHR8R2_DACC2DHR_Pos (0U)
  3720. #define DAC_DHR8R2_DACC2DHR_Msk (0xFFUL << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */
  3721. #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */
  3722. /***************** Bit definition for DAC_DHR12RD register ******************/
  3723. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  3724. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFUL << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  3725. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  3726. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  3727. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFUL << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  3728. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  3729. /***************** Bit definition for DAC_DHR12LD register ******************/
  3730. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  3731. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFUL << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  3732. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  3733. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  3734. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFUL << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  3735. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  3736. /****************** Bit definition for DAC_DHR8RD register ******************/
  3737. #define DAC_DHR8RD_DACC1DHR_Pos (0U)
  3738. #define DAC_DHR8RD_DACC1DHR_Msk (0xFFUL << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */
  3739. #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */
  3740. #define DAC_DHR8RD_DACC2DHR_Pos (8U)
  3741. #define DAC_DHR8RD_DACC2DHR_Msk (0xFFUL << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */
  3742. #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */
  3743. /******************* Bit definition for DAC_DOR1 register *******************/
  3744. #define DAC_DOR1_DACC1DOR_Pos (0U)
  3745. #define DAC_DOR1_DACC1DOR_Msk (0xFFFUL << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */
  3746. #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!<DAC channel1 data output */
  3747. /******************* Bit definition for DAC_DOR2 register *******************/
  3748. #define DAC_DOR2_DACC2DOR_Pos (0U)
  3749. #define DAC_DOR2_DACC2DOR_Msk (0xFFFUL << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */
  3750. #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!<DAC channel2 data output */
  3751. /******************** Bit definition for DAC_SR register ********************/
  3752. #define DAC_SR_DMAUDR1_Pos (13U)
  3753. #define DAC_SR_DMAUDR1_Msk (0x1UL << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  3754. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!<DAC channel1 DMA underrun flag */
  3755. #define DAC_SR_CAL_FLAG1_Pos (14U)
  3756. #define DAC_SR_CAL_FLAG1_Msk (0x1UL << DAC_SR_CAL_FLAG1_Pos) /*!< 0x00004000 */
  3757. #define DAC_SR_CAL_FLAG1 DAC_SR_CAL_FLAG1_Msk /*!<DAC channel1 calibration offset status */
  3758. #define DAC_SR_BWST1_Pos (15U)
  3759. #define DAC_SR_BWST1_Msk (0x1UL << DAC_SR_BWST1_Pos) /*!< 0x00008000 */
  3760. #define DAC_SR_BWST1 DAC_SR_BWST1_Msk /*!<DAC channel1 busy writing sample time flag */
  3761. #define DAC_SR_DMAUDR2_Pos (29U)
  3762. #define DAC_SR_DMAUDR2_Msk (0x1UL << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  3763. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!<DAC channel2 DMA underrun flag */
  3764. #define DAC_SR_CAL_FLAG2_Pos (30U)
  3765. #define DAC_SR_CAL_FLAG2_Msk (0x1UL << DAC_SR_CAL_FLAG2_Pos) /*!< 0x40000000 */
  3766. #define DAC_SR_CAL_FLAG2 DAC_SR_CAL_FLAG2_Msk /*!<DAC channel2 calibration offset status */
  3767. #define DAC_SR_BWST2_Pos (31U)
  3768. #define DAC_SR_BWST2_Msk (0x1UL << DAC_SR_BWST2_Pos) /*!< 0x80000000 */
  3769. #define DAC_SR_BWST2 DAC_SR_BWST2_Msk /*!<DAC channel2 busy writing sample time flag */
  3770. /******************* Bit definition for DAC_CCR register ********************/
  3771. #define DAC_CCR_OTRIM1_Pos (0U)
  3772. #define DAC_CCR_OTRIM1_Msk (0x1FUL << DAC_CCR_OTRIM1_Pos) /*!< 0x0000001F */
  3773. #define DAC_CCR_OTRIM1 DAC_CCR_OTRIM1_Msk /*!<DAC channel1 offset trimming value */
  3774. #define DAC_CCR_OTRIM2_Pos (16U)
  3775. #define DAC_CCR_OTRIM2_Msk (0x1FUL << DAC_CCR_OTRIM2_Pos) /*!< 0x001F0000 */
  3776. #define DAC_CCR_OTRIM2 DAC_CCR_OTRIM2_Msk /*!<DAC channel2 offset trimming value */
  3777. /******************* Bit definition for DAC_MCR register *******************/
  3778. #define DAC_MCR_MODE1_Pos (0U)
  3779. #define DAC_MCR_MODE1_Msk (0x7UL << DAC_MCR_MODE1_Pos) /*!< 0x00000007 */
  3780. #define DAC_MCR_MODE1 DAC_MCR_MODE1_Msk /*!<MODE1[2:0] (DAC channel1 mode) */
  3781. #define DAC_MCR_MODE1_0 (0x1UL << DAC_MCR_MODE1_Pos) /*!< 0x00000001 */
  3782. #define DAC_MCR_MODE1_1 (0x2UL << DAC_MCR_MODE1_Pos) /*!< 0x00000002 */
  3783. #define DAC_MCR_MODE1_2 (0x4UL << DAC_MCR_MODE1_Pos) /*!< 0x00000004 */
  3784. #define DAC_MCR_MODE2_Pos (16U)
  3785. #define DAC_MCR_MODE2_Msk (0x7UL << DAC_MCR_MODE2_Pos) /*!< 0x00070000 */
  3786. #define DAC_MCR_MODE2 DAC_MCR_MODE2_Msk /*!<MODE2[2:0] (DAC channel2 mode) */
  3787. #define DAC_MCR_MODE2_0 (0x1UL << DAC_MCR_MODE2_Pos) /*!< 0x00010000 */
  3788. #define DAC_MCR_MODE2_1 (0x2UL << DAC_MCR_MODE2_Pos) /*!< 0x00020000 */
  3789. #define DAC_MCR_MODE2_2 (0x4UL << DAC_MCR_MODE2_Pos) /*!< 0x00040000 */
  3790. /****************** Bit definition for DAC_SHSR1 register ******************/
  3791. #define DAC_SHSR1_TSAMPLE1_Pos (0U)
  3792. #define DAC_SHSR1_TSAMPLE1_Msk (0x3FFUL << DAC_SHSR1_TSAMPLE1_Pos) /*!< 0x000003FF */
  3793. #define DAC_SHSR1_TSAMPLE1 DAC_SHSR1_TSAMPLE1_Msk /*!<DAC channel1 sample time */
  3794. /****************** Bit definition for DAC_SHSR2 register ******************/
  3795. #define DAC_SHSR2_TSAMPLE2_Pos (0U)
  3796. #define DAC_SHSR2_TSAMPLE2_Msk (0x3FFUL << DAC_SHSR2_TSAMPLE2_Pos) /*!< 0x000003FF */
  3797. #define DAC_SHSR2_TSAMPLE2 DAC_SHSR2_TSAMPLE2_Msk /*!<DAC channel2 sample time */
  3798. /****************** Bit definition for DAC_SHHR register ******************/
  3799. #define DAC_SHHR_THOLD1_Pos (0U)
  3800. #define DAC_SHHR_THOLD1_Msk (0x3FFUL << DAC_SHHR_THOLD1_Pos) /*!< 0x000003FF */
  3801. #define DAC_SHHR_THOLD1 DAC_SHHR_THOLD1_Msk /*!<DAC channel1 hold time */
  3802. #define DAC_SHHR_THOLD2_Pos (16U)
  3803. #define DAC_SHHR_THOLD2_Msk (0x3FFUL << DAC_SHHR_THOLD2_Pos) /*!< 0x03FF0000 */
  3804. #define DAC_SHHR_THOLD2 DAC_SHHR_THOLD2_Msk /*!<DAC channel2 hold time */
  3805. /****************** Bit definition for DAC_SHRR register ******************/
  3806. #define DAC_SHRR_TREFRESH1_Pos (0U)
  3807. #define DAC_SHRR_TREFRESH1_Msk (0xFFUL << DAC_SHRR_TREFRESH1_Pos) /*!< 0x000000FF */
  3808. #define DAC_SHRR_TREFRESH1 DAC_SHRR_TREFRESH1_Msk /*!<DAC channel1 refresh time */
  3809. #define DAC_SHRR_TREFRESH2_Pos (16U)
  3810. #define DAC_SHRR_TREFRESH2_Msk (0xFFUL << DAC_SHRR_TREFRESH2_Pos) /*!< 0x00FF0000 */
  3811. #define DAC_SHRR_TREFRESH2 DAC_SHRR_TREFRESH2_Msk /*!<DAC channel2 refresh time */
  3812. /******************************************************************************/
  3813. /* */
  3814. /* Debug MCU */
  3815. /* */
  3816. /******************************************************************************/
  3817. /******************** Bit definition for DBGMCU_IDCODE register *************/
  3818. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  3819. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFUL << DBGMCU_IDCODE_DEV_ID_Pos)/*!< 0x00000FFF */
  3820. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk
  3821. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  3822. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFUL << DBGMCU_IDCODE_REV_ID_Pos)/*!< 0xFFFF0000 */
  3823. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk
  3824. /******************** Bit definition for DBGMCU_CR register *****************/
  3825. #define DBGMCU_CR_DBG_SLEEP_Pos (0U)
  3826. #define DBGMCU_CR_DBG_SLEEP_Msk (0x1UL << DBGMCU_CR_DBG_SLEEP_Pos)/*!< 0x00000001 */
  3827. #define DBGMCU_CR_DBG_SLEEP DBGMCU_CR_DBG_SLEEP_Msk
  3828. #define DBGMCU_CR_DBG_STOP_Pos (1U)
  3829. #define DBGMCU_CR_DBG_STOP_Msk (0x1UL << DBGMCU_CR_DBG_STOP_Pos)/*!< 0x00000002 */
  3830. #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk
  3831. #define DBGMCU_CR_DBG_STANDBY_Pos (2U)
  3832. #define DBGMCU_CR_DBG_STANDBY_Msk (0x1UL << DBGMCU_CR_DBG_STANDBY_Pos)/*!< 0x00000004 */
  3833. #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk
  3834. #define DBGMCU_CR_TRACE_IOEN_Pos (5U)
  3835. #define DBGMCU_CR_TRACE_IOEN_Msk (0x1UL << DBGMCU_CR_TRACE_IOEN_Pos)/*!< 0x00000020 */
  3836. #define DBGMCU_CR_TRACE_IOEN DBGMCU_CR_TRACE_IOEN_Msk
  3837. #define DBGMCU_CR_TRACE_MODE_Pos (6U)
  3838. #define DBGMCU_CR_TRACE_MODE_Msk (0x3UL << DBGMCU_CR_TRACE_MODE_Pos)/*!< 0x000000C0 */
  3839. #define DBGMCU_CR_TRACE_MODE DBGMCU_CR_TRACE_MODE_Msk
  3840. #define DBGMCU_CR_TRACE_MODE_0 (0x1UL << DBGMCU_CR_TRACE_MODE_Pos)/*!< 0x00000040 */
  3841. #define DBGMCU_CR_TRACE_MODE_1 (0x2UL << DBGMCU_CR_TRACE_MODE_Pos)/*!< 0x00000080 */
  3842. /******************** Bit definition for DBGMCU_APB1FZR1 register ***********/
  3843. #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos (0U)
  3844. #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos)/*!< 0x00000001 */
  3845. #define DBGMCU_APB1FZR1_DBG_TIM2_STOP DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk
  3846. #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos (1U)
  3847. #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos)/*!< 0x00000002 */
  3848. #define DBGMCU_APB1FZR1_DBG_TIM3_STOP DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk
  3849. #define DBGMCU_APB1FZR1_DBG_TIM4_STOP_Pos (2U)
  3850. #define DBGMCU_APB1FZR1_DBG_TIM4_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM4_STOP_Pos)/*!< 0x00000004 */
  3851. #define DBGMCU_APB1FZR1_DBG_TIM4_STOP DBGMCU_APB1FZR1_DBG_TIM4_STOP_Msk
  3852. #define DBGMCU_APB1FZR1_DBG_TIM5_STOP_Pos (3U)
  3853. #define DBGMCU_APB1FZR1_DBG_TIM5_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM5_STOP_Pos)/*!< 0x00000008 */
  3854. #define DBGMCU_APB1FZR1_DBG_TIM5_STOP DBGMCU_APB1FZR1_DBG_TIM5_STOP_Msk
  3855. #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos (4U)
  3856. #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos)/*!< 0x00000010 */
  3857. #define DBGMCU_APB1FZR1_DBG_TIM6_STOP DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk
  3858. #define DBGMCU_APB1FZR1_DBG_TIM7_STOP_Pos (5U)
  3859. #define DBGMCU_APB1FZR1_DBG_TIM7_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_TIM7_STOP_Pos)/*!< 0x00000020 */
  3860. #define DBGMCU_APB1FZR1_DBG_TIM7_STOP DBGMCU_APB1FZR1_DBG_TIM7_STOP_Msk
  3861. #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos (10U)
  3862. #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos)/*!< 0x00000400 */
  3863. #define DBGMCU_APB1FZR1_DBG_RTC_STOP DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk
  3864. #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos (11U)
  3865. #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos)/*!< 0x00000800 */
  3866. #define DBGMCU_APB1FZR1_DBG_WWDG_STOP DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk
  3867. #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos (12U)
  3868. #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos)/*!< 0x00001000 */
  3869. #define DBGMCU_APB1FZR1_DBG_IWDG_STOP DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk
  3870. #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos (21U)
  3871. #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos)/*!< 0x00200000 */
  3872. #define DBGMCU_APB1FZR1_DBG_I2C1_STOP DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk
  3873. #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos (22U)
  3874. #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos)/*!< 0x00400000 */
  3875. #define DBGMCU_APB1FZR1_DBG_I2C2_STOP DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk
  3876. #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos (23U)
  3877. #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos)/*!< 0x00800000 */
  3878. #define DBGMCU_APB1FZR1_DBG_I2C3_STOP DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk
  3879. #define DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Pos (25U)
  3880. #define DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Pos)/*!< 0x02000000 */
  3881. #define DBGMCU_APB1FZR1_DBG_FDCAN1_STOP DBGMCU_APB1FZR1_DBG_FDCAN1_STOP_Msk
  3882. #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos (31U)
  3883. #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk (0x1UL << DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos)/*!< 0x80000000 */
  3884. #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk
  3885. /******************** Bit definition for DBGMCU_APB1FZR2 register **********/
  3886. #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos (1U)
  3887. #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk (0x1UL << DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos)/*!< 0x00000002 */
  3888. #define DBGMCU_APB1FZR2_DBG_I2C4_STOP DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk
  3889. #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos (5U)
  3890. #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk (0x1UL << DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos)/*!< 0x00000020 */
  3891. #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk
  3892. #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Pos (6U)
  3893. #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Msk (0x1UL << DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Pos)/*!< 0x00000040 */
  3894. #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Msk
  3895. /******************** Bit definition for DBGMCU_APB2FZ register ************/
  3896. #define DBGMCU_APB2FZ_DBG_TIM1_STOP_Pos (11U)
  3897. #define DBGMCU_APB2FZ_DBG_TIM1_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM1_STOP_Pos)/*!< 0x00000800 */
  3898. #define DBGMCU_APB2FZ_DBG_TIM1_STOP DBGMCU_APB2FZ_DBG_TIM1_STOP_Msk
  3899. #define DBGMCU_APB2FZ_DBG_TIM8_STOP_Pos (13U)
  3900. #define DBGMCU_APB2FZ_DBG_TIM8_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM8_STOP_Pos)/*!< 0x00002000 */
  3901. #define DBGMCU_APB2FZ_DBG_TIM8_STOP DBGMCU_APB2FZ_DBG_TIM8_STOP_Msk
  3902. #define DBGMCU_APB2FZ_DBG_TIM15_STOP_Pos (16U)
  3903. #define DBGMCU_APB2FZ_DBG_TIM15_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM15_STOP_Pos)/*!< 0x00010000 */
  3904. #define DBGMCU_APB2FZ_DBG_TIM15_STOP DBGMCU_APB2FZ_DBG_TIM15_STOP_Msk
  3905. #define DBGMCU_APB2FZ_DBG_TIM16_STOP_Pos (17U)
  3906. #define DBGMCU_APB2FZ_DBG_TIM16_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM16_STOP_Pos)/*!< 0x00020000 */
  3907. #define DBGMCU_APB2FZ_DBG_TIM16_STOP DBGMCU_APB2FZ_DBG_TIM16_STOP_Msk
  3908. #define DBGMCU_APB2FZ_DBG_TIM17_STOP_Pos (18U)
  3909. #define DBGMCU_APB2FZ_DBG_TIM17_STOP_Msk (0x1UL << DBGMCU_APB2FZ_DBG_TIM17_STOP_Pos)/*!< 0x00040000 */
  3910. #define DBGMCU_APB2FZ_DBG_TIM17_STOP DBGMCU_APB2FZ_DBG_TIM17_STOP_Msk
  3911. /******************************************************************************/
  3912. /* */
  3913. /* Digital Filter for Sigma Delta Modulators */
  3914. /* */
  3915. /******************************************************************************/
  3916. /**************** DFSDM channel configuration registers ********************/
  3917. /*************** Bit definition for DFSDM_CHCFGR1 register ******************/
  3918. #define DFSDM_CHCFGR1_DFSDMEN_Pos (31U)
  3919. #define DFSDM_CHCFGR1_DFSDMEN_Msk (0x1UL << DFSDM_CHCFGR1_DFSDMEN_Pos) /*!< 0x80000000 */
  3920. #define DFSDM_CHCFGR1_DFSDMEN DFSDM_CHCFGR1_DFSDMEN_Msk /*!< Global enable for DFSDM interface */
  3921. #define DFSDM_CHCFGR1_CKOUTSRC_Pos (30U)
  3922. #define DFSDM_CHCFGR1_CKOUTSRC_Msk (0x1UL << DFSDM_CHCFGR1_CKOUTSRC_Pos) /*!< 0x40000000 */
  3923. #define DFSDM_CHCFGR1_CKOUTSRC DFSDM_CHCFGR1_CKOUTSRC_Msk /*!< Output serial clock source selection */
  3924. #define DFSDM_CHCFGR1_CKOUTDIV_Pos (16U)
  3925. #define DFSDM_CHCFGR1_CKOUTDIV_Msk (0xFFUL << DFSDM_CHCFGR1_CKOUTDIV_Pos) /*!< 0x00FF0000 */
  3926. #define DFSDM_CHCFGR1_CKOUTDIV DFSDM_CHCFGR1_CKOUTDIV_Msk /*!< CKOUTDIV[7:0] output serial clock divider */
  3927. #define DFSDM_CHCFGR1_DATPACK_Pos (14U)
  3928. #define DFSDM_CHCFGR1_DATPACK_Msk (0x3UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x0000C000 */
  3929. #define DFSDM_CHCFGR1_DATPACK DFSDM_CHCFGR1_DATPACK_Msk /*!< DATPACK[1:0] Data packing mode */
  3930. #define DFSDM_CHCFGR1_DATPACK_1 (0x2UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00008000 */
  3931. #define DFSDM_CHCFGR1_DATPACK_0 (0x1UL << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00004000 */
  3932. #define DFSDM_CHCFGR1_DATMPX_Pos (12U)
  3933. #define DFSDM_CHCFGR1_DATMPX_Msk (0x3UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00003000 */
  3934. #define DFSDM_CHCFGR1_DATMPX DFSDM_CHCFGR1_DATMPX_Msk /*!< DATMPX[1:0] Input data multiplexer for channel y */
  3935. #define DFSDM_CHCFGR1_DATMPX_1 (0x2UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00002000 */
  3936. #define DFSDM_CHCFGR1_DATMPX_0 (0x1UL << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00001000 */
  3937. #define DFSDM_CHCFGR1_CHINSEL_Pos (8U)
  3938. #define DFSDM_CHCFGR1_CHINSEL_Msk (0x1UL << DFSDM_CHCFGR1_CHINSEL_Pos) /*!< 0x00000100 */
  3939. #define DFSDM_CHCFGR1_CHINSEL DFSDM_CHCFGR1_CHINSEL_Msk /*!< Serial inputs selection for channel y */
  3940. #define DFSDM_CHCFGR1_CHEN_Pos (7U)
  3941. #define DFSDM_CHCFGR1_CHEN_Msk (0x1UL << DFSDM_CHCFGR1_CHEN_Pos) /*!< 0x00000080 */
  3942. #define DFSDM_CHCFGR1_CHEN DFSDM_CHCFGR1_CHEN_Msk /*!< Channel y enable */
  3943. #define DFSDM_CHCFGR1_CKABEN_Pos (6U)
  3944. #define DFSDM_CHCFGR1_CKABEN_Msk (0x1UL << DFSDM_CHCFGR1_CKABEN_Pos) /*!< 0x00000040 */
  3945. #define DFSDM_CHCFGR1_CKABEN DFSDM_CHCFGR1_CKABEN_Msk /*!< Clock absence detector enable on channel y */
  3946. #define DFSDM_CHCFGR1_SCDEN_Pos (5U)
  3947. #define DFSDM_CHCFGR1_SCDEN_Msk (0x1UL << DFSDM_CHCFGR1_SCDEN_Pos) /*!< 0x00000020 */
  3948. #define DFSDM_CHCFGR1_SCDEN DFSDM_CHCFGR1_SCDEN_Msk /*!< Short circuit detector enable on channel y */
  3949. #define DFSDM_CHCFGR1_SPICKSEL_Pos (2U)
  3950. #define DFSDM_CHCFGR1_SPICKSEL_Msk (0x3UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x0000000C */
  3951. #define DFSDM_CHCFGR1_SPICKSEL DFSDM_CHCFGR1_SPICKSEL_Msk /*!< SPICKSEL[1:0] SPI clock select for channel y */
  3952. #define DFSDM_CHCFGR1_SPICKSEL_1 (0x2UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000008 */
  3953. #define DFSDM_CHCFGR1_SPICKSEL_0 (0x1UL << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000004 */
  3954. #define DFSDM_CHCFGR1_SITP_Pos (0U)
  3955. #define DFSDM_CHCFGR1_SITP_Msk (0x3UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000003 */
  3956. #define DFSDM_CHCFGR1_SITP DFSDM_CHCFGR1_SITP_Msk /*!< SITP[1:0] Serial interface type for channel y */
  3957. #define DFSDM_CHCFGR1_SITP_1 (0x2UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000002 */
  3958. #define DFSDM_CHCFGR1_SITP_0 (0x1UL << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000001 */
  3959. /*************** Bit definition for DFSDM_CHCFGR2 register ******************/
  3960. #define DFSDM_CHCFGR2_OFFSET_Pos (8U)
  3961. #define DFSDM_CHCFGR2_OFFSET_Msk (0xFFFFFFUL << DFSDM_CHCFGR2_OFFSET_Pos)/*!< 0xFFFFFF00 */
  3962. #define DFSDM_CHCFGR2_OFFSET DFSDM_CHCFGR2_OFFSET_Msk /*!< OFFSET[23:0] 24-bit calibration offset for channel y */
  3963. #define DFSDM_CHCFGR2_DTRBS_Pos (3U)
  3964. #define DFSDM_CHCFGR2_DTRBS_Msk (0x1FUL << DFSDM_CHCFGR2_DTRBS_Pos) /*!< 0x000000F8 */
  3965. #define DFSDM_CHCFGR2_DTRBS DFSDM_CHCFGR2_DTRBS_Msk /*!< DTRBS[4:0] Data right bit-shift for channel y */
  3966. /**************** Bit definition for DFSDM_CHAWSCDR register *****************/
  3967. #define DFSDM_CHAWSCDR_AWFORD_Pos (22U)
  3968. #define DFSDM_CHAWSCDR_AWFORD_Msk (0x3UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00C00000 */
  3969. #define DFSDM_CHAWSCDR_AWFORD DFSDM_CHAWSCDR_AWFORD_Msk /*!< AWFORD[1:0] Analog watchdog Sinc filter order on channel y */
  3970. #define DFSDM_CHAWSCDR_AWFORD_1 (0x2UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00800000 */
  3971. #define DFSDM_CHAWSCDR_AWFORD_0 (0x1UL << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00400000 */
  3972. #define DFSDM_CHAWSCDR_AWFOSR_Pos (16U)
  3973. #define DFSDM_CHAWSCDR_AWFOSR_Msk (0x1FUL << DFSDM_CHAWSCDR_AWFOSR_Pos) /*!< 0x001F0000 */
  3974. #define DFSDM_CHAWSCDR_AWFOSR DFSDM_CHAWSCDR_AWFOSR_Msk /*!< AWFOSR[4:0] Analog watchdog filter oversampling ratio on channel y */
  3975. #define DFSDM_CHAWSCDR_BKSCD_Pos (12U)
  3976. #define DFSDM_CHAWSCDR_BKSCD_Msk (0xFUL << DFSDM_CHAWSCDR_BKSCD_Pos) /*!< 0x0000F000 */
  3977. #define DFSDM_CHAWSCDR_BKSCD DFSDM_CHAWSCDR_BKSCD_Msk /*!< BKSCD[3:0] Break signal assignment for short circuit detector on channel y */
  3978. #define DFSDM_CHAWSCDR_SCDT_Pos (0U)
  3979. #define DFSDM_CHAWSCDR_SCDT_Msk (0xFFUL << DFSDM_CHAWSCDR_SCDT_Pos) /*!< 0x000000FF */
  3980. #define DFSDM_CHAWSCDR_SCDT DFSDM_CHAWSCDR_SCDT_Msk /*!< SCDT[7:0] Short circuit detector threshold for channel y */
  3981. /**************** Bit definition for DFSDM_CHWDATR register *******************/
  3982. #define DFSDM_CHWDATR_WDATA_Pos (0U)
  3983. #define DFSDM_CHWDATR_WDATA_Msk (0xFFFFUL << DFSDM_CHWDATR_WDATA_Pos) /*!< 0x0000FFFF */
  3984. #define DFSDM_CHWDATR_WDATA DFSDM_CHWDATR_WDATA_Msk /*!< WDATA[15:0] Input channel y watchdog data */
  3985. /**************** Bit definition for DFSDM_CHDATINR register *****************/
  3986. #define DFSDM_CHDATINR_INDAT0_Pos (0U)
  3987. #define DFSDM_CHDATINR_INDAT0_Msk (0xFFFFUL << DFSDM_CHDATINR_INDAT0_Pos)/*!< 0x0000FFFF */
  3988. #define DFSDM_CHDATINR_INDAT0 DFSDM_CHDATINR_INDAT0_Msk /*!< INDAT0[31:16] Input data for channel y or channel (y+1) */
  3989. #define DFSDM_CHDATINR_INDAT1_Pos (16U)
  3990. #define DFSDM_CHDATINR_INDAT1_Msk (0xFFFFUL << DFSDM_CHDATINR_INDAT1_Pos)/*!< 0xFFFF0000 */
  3991. #define DFSDM_CHDATINR_INDAT1 DFSDM_CHDATINR_INDAT1_Msk /*!< INDAT0[15:0] Input data for channel y */
  3992. /**************** Bit definition for DFSDM_CHDLYR register *******************/
  3993. #define DFSDM_CHDLYR_PLSSKP_Pos (0U)
  3994. #define DFSDM_CHDLYR_PLSSKP_Msk (0x3FUL << DFSDM_CHDLYR_PLSSKP_Pos) /*!< 0x0000003F */
  3995. #define DFSDM_CHDLYR_PLSSKP DFSDM_CHDLYR_PLSSKP_Msk /*!< PLSSKP[5:0] Number of input serial samples that will be skipped */
  3996. /************************ DFSDM module registers ****************************/
  3997. /***************** Bit definition for DFSDM_FLTCR1 register *******************/
  3998. #define DFSDM_FLTCR1_AWFSEL_Pos (30U)
  3999. #define DFSDM_FLTCR1_AWFSEL_Msk (0x1UL << DFSDM_FLTCR1_AWFSEL_Pos) /*!< 0x40000000 */
  4000. #define DFSDM_FLTCR1_AWFSEL DFSDM_FLTCR1_AWFSEL_Msk /*!< Analog watchdog fast mode select */
  4001. #define DFSDM_FLTCR1_FAST_Pos (29U)
  4002. #define DFSDM_FLTCR1_FAST_Msk (0x1UL << DFSDM_FLTCR1_FAST_Pos) /*!< 0x20000000 */
  4003. #define DFSDM_FLTCR1_FAST DFSDM_FLTCR1_FAST_Msk /*!< Fast conversion mode selection */
  4004. #define DFSDM_FLTCR1_RCH_Pos (24U)
  4005. #define DFSDM_FLTCR1_RCH_Msk (0x7UL << DFSDM_FLTCR1_RCH_Pos) /*!< 0x07000000 */
  4006. #define DFSDM_FLTCR1_RCH DFSDM_FLTCR1_RCH_Msk /*!< RCH[2:0] Regular channel selection */
  4007. #define DFSDM_FLTCR1_RDMAEN_Pos (21U)
  4008. #define DFSDM_FLTCR1_RDMAEN_Msk (0x1UL << DFSDM_FLTCR1_RDMAEN_Pos) /*!< 0x00200000 */
  4009. #define DFSDM_FLTCR1_RDMAEN DFSDM_FLTCR1_RDMAEN_Msk /*!< DMA channel enabled to read data for the regular conversion */
  4010. #define DFSDM_FLTCR1_RSYNC_Pos (19U)
  4011. #define DFSDM_FLTCR1_RSYNC_Msk (0x1UL << DFSDM_FLTCR1_RSYNC_Pos) /*!< 0x00080000 */
  4012. #define DFSDM_FLTCR1_RSYNC DFSDM_FLTCR1_RSYNC_Msk /*!< Launch regular conversion synchronously with DFSDMx */
  4013. #define DFSDM_FLTCR1_RCONT_Pos (18U)
  4014. #define DFSDM_FLTCR1_RCONT_Msk (0x1UL << DFSDM_FLTCR1_RCONT_Pos) /*!< 0x00040000 */
  4015. #define DFSDM_FLTCR1_RCONT DFSDM_FLTCR1_RCONT_Msk /*!< Continuous mode selection for regular conversions */
  4016. #define DFSDM_FLTCR1_RSWSTART_Pos (17U)
  4017. #define DFSDM_FLTCR1_RSWSTART_Msk (0x1UL << DFSDM_FLTCR1_RSWSTART_Pos) /*!< 0x00020000 */
  4018. #define DFSDM_FLTCR1_RSWSTART DFSDM_FLTCR1_RSWSTART_Msk /*!< Software start of a conversion on the regular channel */
  4019. #define DFSDM_FLTCR1_JEXTEN_Pos (13U)
  4020. #define DFSDM_FLTCR1_JEXTEN_Msk (0x3UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00006000 */
  4021. #define DFSDM_FLTCR1_JEXTEN DFSDM_FLTCR1_JEXTEN_Msk /*!< JEXTEN[1:0] Trigger enable and trigger edge selection for injected conversions */
  4022. #define DFSDM_FLTCR1_JEXTEN_1 (0x2UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00004000 */
  4023. #define DFSDM_FLTCR1_JEXTEN_0 (0x1UL << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00002000 */
  4024. #define DFSDM_FLTCR1_JEXTSEL_Pos (8U)
  4025. #define DFSDM_FLTCR1_JEXTSEL_Msk (0x1FUL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001F00 */
  4026. #define DFSDM_FLTCR1_JEXTSEL DFSDM_FLTCR1_JEXTSEL_Msk /*!< JEXTSEL[4:0]Trigger signal selection for launching injected conversions */
  4027. #define DFSDM_FLTCR1_JEXTSEL_4 (0x10UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001000 */
  4028. #define DFSDM_FLTCR1_JEXTSEL_3 (0x08UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000800 */
  4029. #define DFSDM_FLTCR1_JEXTSEL_2 (0x04UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000400 */
  4030. #define DFSDM_FLTCR1_JEXTSEL_1 (0x02UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000200 */
  4031. #define DFSDM_FLTCR1_JEXTSEL_0 (0x01UL << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000100 */
  4032. #define DFSDM_FLTCR1_JDMAEN_Pos (5U)
  4033. #define DFSDM_FLTCR1_JDMAEN_Msk (0x1UL << DFSDM_FLTCR1_JDMAEN_Pos) /*!< 0x00000020 */
  4034. #define DFSDM_FLTCR1_JDMAEN DFSDM_FLTCR1_JDMAEN_Msk /*!< DMA channel enabled to read data for the injected channel group */
  4035. #define DFSDM_FLTCR1_JSCAN_Pos (4U)
  4036. #define DFSDM_FLTCR1_JSCAN_Msk (0x1UL << DFSDM_FLTCR1_JSCAN_Pos) /*!< 0x00000010 */
  4037. #define DFSDM_FLTCR1_JSCAN DFSDM_FLTCR1_JSCAN_Msk /*!< Scanning conversion in continuous mode selection for injected conversions */
  4038. #define DFSDM_FLTCR1_JSYNC_Pos (3U)
  4039. #define DFSDM_FLTCR1_JSYNC_Msk (0x1UL << DFSDM_FLTCR1_JSYNC_Pos) /*!< 0x00000008 */
  4040. #define DFSDM_FLTCR1_JSYNC DFSDM_FLTCR1_JSYNC_Msk /*!< Launch an injected conversion synchronously with DFSDMx JSWSTART trigger */
  4041. #define DFSDM_FLTCR1_JSWSTART_Pos (1U)
  4042. #define DFSDM_FLTCR1_JSWSTART_Msk (0x1UL << DFSDM_FLTCR1_JSWSTART_Pos) /*!< 0x00000002 */
  4043. #define DFSDM_FLTCR1_JSWSTART DFSDM_FLTCR1_JSWSTART_Msk /*!< Start the conversion of the injected group of channels */
  4044. #define DFSDM_FLTCR1_DFEN_Pos (0U)
  4045. #define DFSDM_FLTCR1_DFEN_Msk (0x1UL << DFSDM_FLTCR1_DFEN_Pos) /*!< 0x00000001 */
  4046. #define DFSDM_FLTCR1_DFEN DFSDM_FLTCR1_DFEN_Msk /*!< DFSDM enable */
  4047. /***************** Bit definition for DFSDM_FLTCR2 register *******************/
  4048. #define DFSDM_FLTCR2_AWDCH_Pos (16U)
  4049. #define DFSDM_FLTCR2_AWDCH_Msk (0xFFUL << DFSDM_FLTCR2_AWDCH_Pos) /*!< 0x00FF0000 */
  4050. #define DFSDM_FLTCR2_AWDCH DFSDM_FLTCR2_AWDCH_Msk /*!< AWDCH[7:0] Analog watchdog channel selection */
  4051. #define DFSDM_FLTCR2_EXCH_Pos (8U)
  4052. #define DFSDM_FLTCR2_EXCH_Msk (0xFFUL << DFSDM_FLTCR2_EXCH_Pos) /*!< 0x0000FF00 */
  4053. #define DFSDM_FLTCR2_EXCH DFSDM_FLTCR2_EXCH_Msk /*!< EXCH[7:0] Extreme detector channel selection */
  4054. #define DFSDM_FLTCR2_CKABIE_Pos (6U)
  4055. #define DFSDM_FLTCR2_CKABIE_Msk (0x1UL << DFSDM_FLTCR2_CKABIE_Pos) /*!< 0x00000040 */
  4056. #define DFSDM_FLTCR2_CKABIE DFSDM_FLTCR2_CKABIE_Msk /*!< Clock absence interrupt enable */
  4057. #define DFSDM_FLTCR2_SCDIE_Pos (5U)
  4058. #define DFSDM_FLTCR2_SCDIE_Msk (0x1UL << DFSDM_FLTCR2_SCDIE_Pos) /*!< 0x00000020 */
  4059. #define DFSDM_FLTCR2_SCDIE DFSDM_FLTCR2_SCDIE_Msk /*!< Short circuit detector interrupt enable */
  4060. #define DFSDM_FLTCR2_AWDIE_Pos (4U)
  4061. #define DFSDM_FLTCR2_AWDIE_Msk (0x1UL << DFSDM_FLTCR2_AWDIE_Pos) /*!< 0x00000010 */
  4062. #define DFSDM_FLTCR2_AWDIE DFSDM_FLTCR2_AWDIE_Msk /*!< Analog watchdog interrupt enable */
  4063. #define DFSDM_FLTCR2_ROVRIE_Pos (3U)
  4064. #define DFSDM_FLTCR2_ROVRIE_Msk (0x1UL << DFSDM_FLTCR2_ROVRIE_Pos) /*!< 0x00000008 */
  4065. #define DFSDM_FLTCR2_ROVRIE DFSDM_FLTCR2_ROVRIE_Msk /*!< Regular data overrun interrupt enable */
  4066. #define DFSDM_FLTCR2_JOVRIE_Pos (2U)
  4067. #define DFSDM_FLTCR2_JOVRIE_Msk (0x1UL << DFSDM_FLTCR2_JOVRIE_Pos) /*!< 0x00000004 */
  4068. #define DFSDM_FLTCR2_JOVRIE DFSDM_FLTCR2_JOVRIE_Msk /*!< Injected data overrun interrupt enable */
  4069. #define DFSDM_FLTCR2_REOCIE_Pos (1U)
  4070. #define DFSDM_FLTCR2_REOCIE_Msk (0x1UL << DFSDM_FLTCR2_REOCIE_Pos) /*!< 0x00000002 */
  4071. #define DFSDM_FLTCR2_REOCIE DFSDM_FLTCR2_REOCIE_Msk /*!< Regular end of conversion interrupt enable */
  4072. #define DFSDM_FLTCR2_JEOCIE_Pos (0U)
  4073. #define DFSDM_FLTCR2_JEOCIE_Msk (0x1UL << DFSDM_FLTCR2_JEOCIE_Pos) /*!< 0x00000001 */
  4074. #define DFSDM_FLTCR2_JEOCIE DFSDM_FLTCR2_JEOCIE_Msk /*!< Injected end of conversion interrupt enable */
  4075. /***************** Bit definition for DFSDM_FLTISR register *******************/
  4076. #define DFSDM_FLTISR_SCDF_Pos (24U)
  4077. #define DFSDM_FLTISR_SCDF_Msk (0xFFUL << DFSDM_FLTISR_SCDF_Pos) /*!< 0xFF000000 */
  4078. #define DFSDM_FLTISR_SCDF DFSDM_FLTISR_SCDF_Msk /*!< SCDF[7:0] Short circuit detector flag */
  4079. #define DFSDM_FLTISR_CKABF_Pos (16U)
  4080. #define DFSDM_FLTISR_CKABF_Msk (0xFFUL << DFSDM_FLTISR_CKABF_Pos) /*!< 0x00FF0000 */
  4081. #define DFSDM_FLTISR_CKABF DFSDM_FLTISR_CKABF_Msk /*!< CKABF[7:0] Clock absence flag */
  4082. #define DFSDM_FLTISR_RCIP_Pos (14U)
  4083. #define DFSDM_FLTISR_RCIP_Msk (0x1UL << DFSDM_FLTISR_RCIP_Pos) /*!< 0x00004000 */
  4084. #define DFSDM_FLTISR_RCIP DFSDM_FLTISR_RCIP_Msk /*!< Regular conversion in progress status */
  4085. #define DFSDM_FLTISR_JCIP_Pos (13U)
  4086. #define DFSDM_FLTISR_JCIP_Msk (0x1UL << DFSDM_FLTISR_JCIP_Pos) /*!< 0x00002000 */
  4087. #define DFSDM_FLTISR_JCIP DFSDM_FLTISR_JCIP_Msk /*!< Injected conversion in progress status */
  4088. #define DFSDM_FLTISR_AWDF_Pos (4U)
  4089. #define DFSDM_FLTISR_AWDF_Msk (0x1UL << DFSDM_FLTISR_AWDF_Pos) /*!< 0x00000010 */
  4090. #define DFSDM_FLTISR_AWDF DFSDM_FLTISR_AWDF_Msk /*!< Analog watchdog */
  4091. #define DFSDM_FLTISR_ROVRF_Pos (3U)
  4092. #define DFSDM_FLTISR_ROVRF_Msk (0x1UL << DFSDM_FLTISR_ROVRF_Pos) /*!< 0x00000008 */
  4093. #define DFSDM_FLTISR_ROVRF DFSDM_FLTISR_ROVRF_Msk /*!< Regular conversion overrun flag */
  4094. #define DFSDM_FLTISR_JOVRF_Pos (2U)
  4095. #define DFSDM_FLTISR_JOVRF_Msk (0x1UL << DFSDM_FLTISR_JOVRF_Pos) /*!< 0x00000004 */
  4096. #define DFSDM_FLTISR_JOVRF DFSDM_FLTISR_JOVRF_Msk /*!< Injected conversion overrun flag */
  4097. #define DFSDM_FLTISR_REOCF_Pos (1U)
  4098. #define DFSDM_FLTISR_REOCF_Msk (0x1UL << DFSDM_FLTISR_REOCF_Pos) /*!< 0x00000002 */
  4099. #define DFSDM_FLTISR_REOCF DFSDM_FLTISR_REOCF_Msk /*!< End of regular conversion flag */
  4100. #define DFSDM_FLTISR_JEOCF_Pos (0U)
  4101. #define DFSDM_FLTISR_JEOCF_Msk (0x1UL << DFSDM_FLTISR_JEOCF_Pos) /*!< 0x00000001 */
  4102. #define DFSDM_FLTISR_JEOCF DFSDM_FLTISR_JEOCF_Msk /*!< End of injected conversion flag */
  4103. /***************** Bit definition for DFSDM_FLTICR register *******************/
  4104. #define DFSDM_FLTICR_CLRSCDF_Pos (24U)
  4105. #define DFSDM_FLTICR_CLRSCDF_Msk (0xFFUL << DFSDM_FLTICR_CLRSCDF_Pos) /*!< 0xFF000000 */
  4106. #define DFSDM_FLTICR_CLRSCDF DFSDM_FLTICR_CLRSCDF_Msk /*!< CLRSCDF[7:0] Clear the short circuit detector flag */
  4107. #define DFSDM_FLTICR_CLRCKABF_Pos (16U)
  4108. #define DFSDM_FLTICR_CLRCKABF_Msk (0xFFUL << DFSDM_FLTICR_CLRCKABF_Pos) /*!< 0x00FF0000 */
  4109. #define DFSDM_FLTICR_CLRCKABF DFSDM_FLTICR_CLRCKABF_Msk /*!< CLRCKABF[7:0] Clear the clock absence flag */
  4110. #define DFSDM_FLTICR_CLRROVRF_Pos (3U)
  4111. #define DFSDM_FLTICR_CLRROVRF_Msk (0x1UL << DFSDM_FLTICR_CLRROVRF_Pos) /*!< 0x00000008 */
  4112. #define DFSDM_FLTICR_CLRROVRF DFSDM_FLTICR_CLRROVRF_Msk /*!< Clear the regular conversion overrun flag */
  4113. #define DFSDM_FLTICR_CLRJOVRF_Pos (2U)
  4114. #define DFSDM_FLTICR_CLRJOVRF_Msk (0x1UL << DFSDM_FLTICR_CLRJOVRF_Pos) /*!< 0x00000004 */
  4115. #define DFSDM_FLTICR_CLRJOVRF DFSDM_FLTICR_CLRJOVRF_Msk /*!< Clear the injected conversion overrun flag */
  4116. /**************** Bit definition for DFSDM_FLTJCHGR register ******************/
  4117. #define DFSDM_FLTJCHGR_JCHG_Pos (0U)
  4118. #define DFSDM_FLTJCHGR_JCHG_Msk (0xFFUL << DFSDM_FLTJCHGR_JCHG_Pos) /*!< 0x000000FF */
  4119. #define DFSDM_FLTJCHGR_JCHG DFSDM_FLTJCHGR_JCHG_Msk /*!< JCHG[7:0] Injected channel group selection */
  4120. /***************** Bit definition for DFSDM_FLTFCR register *******************/
  4121. #define DFSDM_FLTFCR_FORD_Pos (29U)
  4122. #define DFSDM_FLTFCR_FORD_Msk (0x7UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0xE0000000 */
  4123. #define DFSDM_FLTFCR_FORD DFSDM_FLTFCR_FORD_Msk /*!< FORD[2:0] Sinc filter order */
  4124. #define DFSDM_FLTFCR_FORD_2 (0x4UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x80000000 */
  4125. #define DFSDM_FLTFCR_FORD_1 (0x2UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x40000000 */
  4126. #define DFSDM_FLTFCR_FORD_0 (0x1UL << DFSDM_FLTFCR_FORD_Pos) /*!< 0x20000000 */
  4127. #define DFSDM_FLTFCR_FOSR_Pos (16U)
  4128. #define DFSDM_FLTFCR_FOSR_Msk (0x3FFUL << DFSDM_FLTFCR_FOSR_Pos) /*!< 0x03FF0000 */
  4129. #define DFSDM_FLTFCR_FOSR DFSDM_FLTFCR_FOSR_Msk /*!< FOSR[9:0] Sinc filter oversampling ratio (decimation rate) */
  4130. #define DFSDM_FLTFCR_IOSR_Pos (0U)
  4131. #define DFSDM_FLTFCR_IOSR_Msk (0xFFUL << DFSDM_FLTFCR_IOSR_Pos) /*!< 0x000000FF */
  4132. #define DFSDM_FLTFCR_IOSR DFSDM_FLTFCR_IOSR_Msk /*!< IOSR[7:0] Integrator oversampling ratio (averaging length) */
  4133. /*************** Bit definition for DFSDM_FLTJDATAR register *****************/
  4134. #define DFSDM_FLTJDATAR_JDATA_Pos (8U)
  4135. #define DFSDM_FLTJDATAR_JDATA_Msk (0xFFFFFFUL << DFSDM_FLTJDATAR_JDATA_Pos)/*!< 0xFFFFFF00 */
  4136. #define DFSDM_FLTJDATAR_JDATA DFSDM_FLTJDATAR_JDATA_Msk /*!< JDATA[23:0] Injected group conversion data */
  4137. #define DFSDM_FLTJDATAR_JDATACH_Pos (0U)
  4138. #define DFSDM_FLTJDATAR_JDATACH_Msk (0x7UL << DFSDM_FLTJDATAR_JDATACH_Pos) /*!< 0x00000007 */
  4139. #define DFSDM_FLTJDATAR_JDATACH DFSDM_FLTJDATAR_JDATACH_Msk /*!< JDATACH[2:0] Injected channel most recently converted */
  4140. /*************** Bit definition for DFSDM_FLTRDATAR register *****************/
  4141. #define DFSDM_FLTRDATAR_RDATA_Pos (8U)
  4142. #define DFSDM_FLTRDATAR_RDATA_Msk (0xFFFFFFUL << DFSDM_FLTRDATAR_RDATA_Pos)/*!< 0xFFFFFF00 */
  4143. #define DFSDM_FLTRDATAR_RDATA DFSDM_FLTRDATAR_RDATA_Msk /*!< RDATA[23:0] Regular channel conversion data */
  4144. #define DFSDM_FLTRDATAR_RPEND_Pos (4U)
  4145. #define DFSDM_FLTRDATAR_RPEND_Msk (0x1UL << DFSDM_FLTRDATAR_RPEND_Pos) /*!< 0x00000010 */
  4146. #define DFSDM_FLTRDATAR_RPEND DFSDM_FLTRDATAR_RPEND_Msk /*!< RPEND Regular channel pending data */
  4147. #define DFSDM_FLTRDATAR_RDATACH_Pos (0U)
  4148. #define DFSDM_FLTRDATAR_RDATACH_Msk (0x7UL << DFSDM_FLTRDATAR_RDATACH_Pos) /*!< 0x00000007 */
  4149. #define DFSDM_FLTRDATAR_RDATACH DFSDM_FLTRDATAR_RDATACH_Msk /*!< RDATACH[2:0] Regular channel most recently converted */
  4150. /*************** Bit definition for DFSDM_FLTAWHTR register ******************/
  4151. #define DFSDM_FLTAWHTR_AWHT_Pos (8U)
  4152. #define DFSDM_FLTAWHTR_AWHT_Msk (0xFFFFFFUL << DFSDM_FLTAWHTR_AWHT_Pos)/*!< 0xFFFFFF00 */
  4153. #define DFSDM_FLTAWHTR_AWHT DFSDM_FLTAWHTR_AWHT_Msk /*!< AWHT[23:0] Analog watchdog high threshold */
  4154. #define DFSDM_FLTAWHTR_BKAWH_Pos (0U)
  4155. #define DFSDM_FLTAWHTR_BKAWH_Msk (0xFUL << DFSDM_FLTAWHTR_BKAWH_Pos) /*!< 0x0000000F */
  4156. #define DFSDM_FLTAWHTR_BKAWH DFSDM_FLTAWHTR_BKAWH_Msk /*!< BKAWH[3:0] Break signal assignment to analog watchdog high threshold event */
  4157. /*************** Bit definition for DFSDM_FLTAWLTR register ******************/
  4158. #define DFSDM_FLTAWLTR_AWLT_Pos (8U)
  4159. #define DFSDM_FLTAWLTR_AWLT_Msk (0xFFFFFFUL << DFSDM_FLTAWLTR_AWLT_Pos)/*!< 0xFFFFFF00 */
  4160. #define DFSDM_FLTAWLTR_AWLT DFSDM_FLTAWLTR_AWLT_Msk /*!< AWLT[23:0] Analog watchdog low threshold */
  4161. #define DFSDM_FLTAWLTR_BKAWL_Pos (0U)
  4162. #define DFSDM_FLTAWLTR_BKAWL_Msk (0xFUL << DFSDM_FLTAWLTR_BKAWL_Pos) /*!< 0x0000000F */
  4163. #define DFSDM_FLTAWLTR_BKAWL DFSDM_FLTAWLTR_BKAWL_Msk /*!< BKAWL[3:0] Break signal assignment to analog watchdog low threshold event */
  4164. /*************** Bit definition for DFSDM_FLTAWSR register *******************/
  4165. #define DFSDM_FLTAWSR_AWHTF_Pos (8U)
  4166. #define DFSDM_FLTAWSR_AWHTF_Msk (0xFFUL << DFSDM_FLTAWSR_AWHTF_Pos) /*!< 0x0000FF00 */
  4167. #define DFSDM_FLTAWSR_AWHTF DFSDM_FLTAWSR_AWHTF_Msk /*!< AWHTF[15:8] Analog watchdog high threshold error on given channels */
  4168. #define DFSDM_FLTAWSR_AWLTF_Pos (0U)
  4169. #define DFSDM_FLTAWSR_AWLTF_Msk (0xFFUL << DFSDM_FLTAWSR_AWLTF_Pos) /*!< 0x000000FF */
  4170. #define DFSDM_FLTAWSR_AWLTF DFSDM_FLTAWSR_AWLTF_Msk /*!< AWLTF[7:0] Analog watchdog low threshold error on given channels */
  4171. /*************** Bit definition for DFSDM_FLTAWCFR register ******************/
  4172. #define DFSDM_FLTAWCFR_CLRAWHTF_Pos (8U)
  4173. #define DFSDM_FLTAWCFR_CLRAWHTF_Msk (0xFFUL << DFSDM_FLTAWCFR_CLRAWHTF_Pos)/*!< 0x0000FF00 */
  4174. #define DFSDM_FLTAWCFR_CLRAWHTF DFSDM_FLTAWCFR_CLRAWHTF_Msk /*!< CLRAWHTF[15:8] Clear the Analog watchdog high threshold flag */
  4175. #define DFSDM_FLTAWCFR_CLRAWLTF_Pos (0U)
  4176. #define DFSDM_FLTAWCFR_CLRAWLTF_Msk (0xFFUL << DFSDM_FLTAWCFR_CLRAWLTF_Pos)/*!< 0x000000FF */
  4177. #define DFSDM_FLTAWCFR_CLRAWLTF DFSDM_FLTAWCFR_CLRAWLTF_Msk /*!< CLRAWLTF[7:0] Clear the Analog watchdog low threshold flag */
  4178. /*************** Bit definition for DFSDM_FLTEXMAX register ******************/
  4179. #define DFSDM_FLTEXMAX_EXMAX_Pos (8U)
  4180. #define DFSDM_FLTEXMAX_EXMAX_Msk (0xFFFFFFUL << DFSDM_FLTEXMAX_EXMAX_Pos)/*!< 0xFFFFFF00 */
  4181. #define DFSDM_FLTEXMAX_EXMAX DFSDM_FLTEXMAX_EXMAX_Msk /*!< EXMAX[23:0] Extreme detector maximum value */
  4182. #define DFSDM_FLTEXMAX_EXMAXCH_Pos (0U)
  4183. #define DFSDM_FLTEXMAX_EXMAXCH_Msk (0x7UL << DFSDM_FLTEXMAX_EXMAXCH_Pos) /*!< 0x00000007 */
  4184. #define DFSDM_FLTEXMAX_EXMAXCH DFSDM_FLTEXMAX_EXMAXCH_Msk /*!< EXMAXCH[2:0] Extreme detector maximum data channel */
  4185. /*************** Bit definition for DFSDM_FLTEXMIN register ******************/
  4186. #define DFSDM_FLTEXMIN_EXMIN_Pos (8U)
  4187. #define DFSDM_FLTEXMIN_EXMIN_Msk (0xFFFFFFUL << DFSDM_FLTEXMIN_EXMIN_Pos)/*!< 0xFFFFFF00 */
  4188. #define DFSDM_FLTEXMIN_EXMIN DFSDM_FLTEXMIN_EXMIN_Msk /*!< EXMIN[23:0] Extreme detector minimum value */
  4189. #define DFSDM_FLTEXMIN_EXMINCH_Pos (0U)
  4190. #define DFSDM_FLTEXMIN_EXMINCH_Msk (0x7UL << DFSDM_FLTEXMIN_EXMINCH_Pos) /*!< 0x00000007 */
  4191. #define DFSDM_FLTEXMIN_EXMINCH DFSDM_FLTEXMIN_EXMINCH_Msk /*!< EXMINCH[2:0] Extreme detector minimum data channel */
  4192. /*************** Bit definition for DFSDM_FLTCNVTIMR register ****************/
  4193. #define DFSDM_FLTCNVTIMR_CNVCNT_Pos (4U)
  4194. #define DFSDM_FLTCNVTIMR_CNVCNT_Msk (0xFFFFFFFUL << DFSDM_FLTCNVTIMR_CNVCNT_Pos)/*!< 0xFFFFFFF0 */
  4195. #define DFSDM_FLTCNVTIMR_CNVCNT DFSDM_FLTCNVTIMR_CNVCNT_Msk /*!< CNVCNT[27:0]: 28-bit timer counting conversion time */
  4196. /******************************************************************************/
  4197. /* */
  4198. /* DMA Controller (DMA) */
  4199. /* */
  4200. /******************************************************************************/
  4201. /******************* Bit definition for DMA_ISR register ********************/
  4202. #define DMA_ISR_GIF1_Pos (0U)
  4203. #define DMA_ISR_GIF1_Msk (0x1UL << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */
  4204. #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  4205. #define DMA_ISR_TCIF1_Pos (1U)
  4206. #define DMA_ISR_TCIF1_Msk (0x1UL << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */
  4207. #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  4208. #define DMA_ISR_HTIF1_Pos (2U)
  4209. #define DMA_ISR_HTIF1_Msk (0x1UL << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */
  4210. #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  4211. #define DMA_ISR_TEIF1_Pos (3U)
  4212. #define DMA_ISR_TEIF1_Msk (0x1UL << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */
  4213. #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  4214. #define DMA_ISR_GIF2_Pos (4U)
  4215. #define DMA_ISR_GIF2_Msk (0x1UL << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */
  4216. #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  4217. #define DMA_ISR_TCIF2_Pos (5U)
  4218. #define DMA_ISR_TCIF2_Msk (0x1UL << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */
  4219. #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  4220. #define DMA_ISR_HTIF2_Pos (6U)
  4221. #define DMA_ISR_HTIF2_Msk (0x1UL << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */
  4222. #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  4223. #define DMA_ISR_TEIF2_Pos (7U)
  4224. #define DMA_ISR_TEIF2_Msk (0x1UL << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */
  4225. #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  4226. #define DMA_ISR_GIF3_Pos (8U)
  4227. #define DMA_ISR_GIF3_Msk (0x1UL << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */
  4228. #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  4229. #define DMA_ISR_TCIF3_Pos (9U)
  4230. #define DMA_ISR_TCIF3_Msk (0x1UL << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */
  4231. #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  4232. #define DMA_ISR_HTIF3_Pos (10U)
  4233. #define DMA_ISR_HTIF3_Msk (0x1UL << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */
  4234. #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  4235. #define DMA_ISR_TEIF3_Pos (11U)
  4236. #define DMA_ISR_TEIF3_Msk (0x1UL << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */
  4237. #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  4238. #define DMA_ISR_GIF4_Pos (12U)
  4239. #define DMA_ISR_GIF4_Msk (0x1UL << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */
  4240. #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  4241. #define DMA_ISR_TCIF4_Pos (13U)
  4242. #define DMA_ISR_TCIF4_Msk (0x1UL << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */
  4243. #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  4244. #define DMA_ISR_HTIF4_Pos (14U)
  4245. #define DMA_ISR_HTIF4_Msk (0x1UL << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */
  4246. #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  4247. #define DMA_ISR_TEIF4_Pos (15U)
  4248. #define DMA_ISR_TEIF4_Msk (0x1UL << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */
  4249. #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  4250. #define DMA_ISR_GIF5_Pos (16U)
  4251. #define DMA_ISR_GIF5_Msk (0x1UL << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */
  4252. #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  4253. #define DMA_ISR_TCIF5_Pos (17U)
  4254. #define DMA_ISR_TCIF5_Msk (0x1UL << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */
  4255. #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  4256. #define DMA_ISR_HTIF5_Pos (18U)
  4257. #define DMA_ISR_HTIF5_Msk (0x1UL << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */
  4258. #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  4259. #define DMA_ISR_TEIF5_Pos (19U)
  4260. #define DMA_ISR_TEIF5_Msk (0x1UL << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */
  4261. #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  4262. #define DMA_ISR_GIF6_Pos (20U)
  4263. #define DMA_ISR_GIF6_Msk (0x1UL << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */
  4264. #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  4265. #define DMA_ISR_TCIF6_Pos (21U)
  4266. #define DMA_ISR_TCIF6_Msk (0x1UL << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */
  4267. #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  4268. #define DMA_ISR_HTIF6_Pos (22U)
  4269. #define DMA_ISR_HTIF6_Msk (0x1UL << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */
  4270. #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  4271. #define DMA_ISR_TEIF6_Pos (23U)
  4272. #define DMA_ISR_TEIF6_Msk (0x1UL << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */
  4273. #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  4274. #define DMA_ISR_GIF7_Pos (24U)
  4275. #define DMA_ISR_GIF7_Msk (0x1UL << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */
  4276. #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  4277. #define DMA_ISR_TCIF7_Pos (25U)
  4278. #define DMA_ISR_TCIF7_Msk (0x1UL << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */
  4279. #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  4280. #define DMA_ISR_HTIF7_Pos (26U)
  4281. #define DMA_ISR_HTIF7_Msk (0x1UL << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */
  4282. #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  4283. #define DMA_ISR_TEIF7_Pos (27U)
  4284. #define DMA_ISR_TEIF7_Msk (0x1UL << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */
  4285. #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  4286. #define DMA_ISR_GIF8_Pos (28U)
  4287. #define DMA_ISR_GIF8_Msk (0x1UL << DMA_ISR_GIF8_Pos) /*!< 0x10000000 */
  4288. #define DMA_ISR_GIF8 DMA_ISR_GIF8_Msk /*!< Channel 8 Global interrupt flag */
  4289. #define DMA_ISR_TCIF8_Pos (29U)
  4290. #define DMA_ISR_TCIF8_Msk (0x1UL << DMA_ISR_TCIF8_Pos) /*!< 0x20000000 */
  4291. #define DMA_ISR_TCIF8 DMA_ISR_TCIF8_Msk /*!< Channel 8 Transfer Complete flag */
  4292. #define DMA_ISR_HTIF8_Pos (30U)
  4293. #define DMA_ISR_HTIF8_Msk (0x1UL << DMA_ISR_HTIF8_Pos) /*!< 0x40000000 */
  4294. #define DMA_ISR_HTIF8 DMA_ISR_HTIF8_Msk /*!< Channel 8 Half Transfer flag */
  4295. #define DMA_ISR_TEIF8_Pos (31U)
  4296. #define DMA_ISR_TEIF8_Msk (0x1UL << DMA_ISR_TEIF8_Pos) /*!< 0x80000000 */
  4297. #define DMA_ISR_TEIF8 DMA_ISR_TEIF8_Msk /*!< Channel 8 Transfer Error flag */
  4298. /******************* Bit definition for DMA_IFCR register *******************/
  4299. #define DMA_IFCR_CGIF1_Pos (0U)
  4300. #define DMA_IFCR_CGIF1_Msk (0x1UL << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */
  4301. #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clearr */
  4302. #define DMA_IFCR_CTCIF1_Pos (1U)
  4303. #define DMA_IFCR_CTCIF1_Msk (0x1UL << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */
  4304. #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  4305. #define DMA_IFCR_CHTIF1_Pos (2U)
  4306. #define DMA_IFCR_CHTIF1_Msk (0x1UL << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */
  4307. #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  4308. #define DMA_IFCR_CTEIF1_Pos (3U)
  4309. #define DMA_IFCR_CTEIF1_Msk (0x1UL << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */
  4310. #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  4311. #define DMA_IFCR_CGIF2_Pos (4U)
  4312. #define DMA_IFCR_CGIF2_Msk (0x1UL << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */
  4313. #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  4314. #define DMA_IFCR_CTCIF2_Pos (5U)
  4315. #define DMA_IFCR_CTCIF2_Msk (0x1UL << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */
  4316. #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  4317. #define DMA_IFCR_CHTIF2_Pos (6U)
  4318. #define DMA_IFCR_CHTIF2_Msk (0x1UL << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */
  4319. #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  4320. #define DMA_IFCR_CTEIF2_Pos (7U)
  4321. #define DMA_IFCR_CTEIF2_Msk (0x1UL << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */
  4322. #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  4323. #define DMA_IFCR_CGIF3_Pos (8U)
  4324. #define DMA_IFCR_CGIF3_Msk (0x1UL << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */
  4325. #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  4326. #define DMA_IFCR_CTCIF3_Pos (9U)
  4327. #define DMA_IFCR_CTCIF3_Msk (0x1UL << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */
  4328. #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  4329. #define DMA_IFCR_CHTIF3_Pos (10U)
  4330. #define DMA_IFCR_CHTIF3_Msk (0x1UL << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */
  4331. #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  4332. #define DMA_IFCR_CTEIF3_Pos (11U)
  4333. #define DMA_IFCR_CTEIF3_Msk (0x1UL << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */
  4334. #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  4335. #define DMA_IFCR_CGIF4_Pos (12U)
  4336. #define DMA_IFCR_CGIF4_Msk (0x1UL << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */
  4337. #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  4338. #define DMA_IFCR_CTCIF4_Pos (13U)
  4339. #define DMA_IFCR_CTCIF4_Msk (0x1UL << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */
  4340. #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  4341. #define DMA_IFCR_CHTIF4_Pos (14U)
  4342. #define DMA_IFCR_CHTIF4_Msk (0x1UL << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */
  4343. #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  4344. #define DMA_IFCR_CTEIF4_Pos (15U)
  4345. #define DMA_IFCR_CTEIF4_Msk (0x1UL << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */
  4346. #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  4347. #define DMA_IFCR_CGIF5_Pos (16U)
  4348. #define DMA_IFCR_CGIF5_Msk (0x1UL << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */
  4349. #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  4350. #define DMA_IFCR_CTCIF5_Pos (17U)
  4351. #define DMA_IFCR_CTCIF5_Msk (0x1UL << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */
  4352. #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  4353. #define DMA_IFCR_CHTIF5_Pos (18U)
  4354. #define DMA_IFCR_CHTIF5_Msk (0x1UL << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */
  4355. #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  4356. #define DMA_IFCR_CTEIF5_Pos (19U)
  4357. #define DMA_IFCR_CTEIF5_Msk (0x1UL << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */
  4358. #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  4359. #define DMA_IFCR_CGIF6_Pos (20U)
  4360. #define DMA_IFCR_CGIF6_Msk (0x1UL << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */
  4361. #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  4362. #define DMA_IFCR_CTCIF6_Pos (21U)
  4363. #define DMA_IFCR_CTCIF6_Msk (0x1UL << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */
  4364. #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  4365. #define DMA_IFCR_CHTIF6_Pos (22U)
  4366. #define DMA_IFCR_CHTIF6_Msk (0x1UL << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */
  4367. #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  4368. #define DMA_IFCR_CTEIF6_Pos (23U)
  4369. #define DMA_IFCR_CTEIF6_Msk (0x1UL << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */
  4370. #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  4371. #define DMA_IFCR_CGIF7_Pos (24U)
  4372. #define DMA_IFCR_CGIF7_Msk (0x1UL << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */
  4373. #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  4374. #define DMA_IFCR_CTCIF7_Pos (25U)
  4375. #define DMA_IFCR_CTCIF7_Msk (0x1UL << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */
  4376. #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  4377. #define DMA_IFCR_CHTIF7_Pos (26U)
  4378. #define DMA_IFCR_CHTIF7_Msk (0x1UL << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */
  4379. #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  4380. #define DMA_IFCR_CTEIF7_Pos (27U)
  4381. #define DMA_IFCR_CTEIF7_Msk (0x1UL << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */
  4382. #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  4383. #define DMA_IFCR_CGIF8_Pos (28U)
  4384. #define DMA_IFCR_CGIF8_Msk (0x1UL << DMA_IFCR_CGIF8_Pos) /*!< 0x10000000 */
  4385. #define DMA_IFCR_CGIF8 DMA_IFCR_CGIF8_Msk /*!< Channel 8 Global interrupt clear */
  4386. #define DMA_IFCR_CTCIF8_Pos (29U)
  4387. #define DMA_IFCR_CTCIF8_Msk (0x1UL << DMA_IFCR_CTCIF8_Pos) /*!< 0x20000000 */
  4388. #define DMA_IFCR_CTCIF8 DMA_IFCR_CTCIF8_Msk /*!< Channel 8 Transfer Complete clear */
  4389. #define DMA_IFCR_CHTIF8_Pos (30U)
  4390. #define DMA_IFCR_CHTIF8_Msk (0x1UL << DMA_IFCR_CHTIF8_Pos) /*!< 0x40000000 */
  4391. #define DMA_IFCR_CHTIF8 DMA_IFCR_CHTIF8_Msk /*!< Channel 8 Half Transfer clear */
  4392. #define DMA_IFCR_CTEIF8_Pos (31U)
  4393. #define DMA_IFCR_CTEIF8_Msk (0x1UL << DMA_IFCR_CTEIF8_Pos) /*!< 0x80000000 */
  4394. #define DMA_IFCR_CTEIF8 DMA_IFCR_CTEIF8_Msk /*!< Channel 8 Transfer Error clear */
  4395. /******************* Bit definition for DMA_CCR register ********************/
  4396. #define DMA_CCR_EN_Pos (0U)
  4397. #define DMA_CCR_EN_Msk (0x1UL << DMA_CCR_EN_Pos) /*!< 0x00000001 */
  4398. #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */
  4399. #define DMA_CCR_TCIE_Pos (1U)
  4400. #define DMA_CCR_TCIE_Msk (0x1UL << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  4401. #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  4402. #define DMA_CCR_HTIE_Pos (2U)
  4403. #define DMA_CCR_HTIE_Msk (0x1UL << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  4404. #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  4405. #define DMA_CCR_TEIE_Pos (3U)
  4406. #define DMA_CCR_TEIE_Msk (0x1UL << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  4407. #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  4408. #define DMA_CCR_DIR_Pos (4U)
  4409. #define DMA_CCR_DIR_Msk (0x1UL << DMA_CCR_DIR_Pos) /*!< 0x00000010 */
  4410. #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */
  4411. #define DMA_CCR_CIRC_Pos (5U)
  4412. #define DMA_CCR_CIRC_Msk (0x1UL << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  4413. #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */
  4414. #define DMA_CCR_PINC_Pos (6U)
  4415. #define DMA_CCR_PINC_Msk (0x1UL << DMA_CCR_PINC_Pos) /*!< 0x00000040 */
  4416. #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  4417. #define DMA_CCR_MINC_Pos (7U)
  4418. #define DMA_CCR_MINC_Msk (0x1UL << DMA_CCR_MINC_Pos) /*!< 0x00000080 */
  4419. #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */
  4420. #define DMA_CCR_PSIZE_Pos (8U)
  4421. #define DMA_CCR_PSIZE_Msk (0x3UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  4422. #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  4423. #define DMA_CCR_PSIZE_0 (0x1UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  4424. #define DMA_CCR_PSIZE_1 (0x2UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  4425. #define DMA_CCR_MSIZE_Pos (10U)
  4426. #define DMA_CCR_MSIZE_Msk (0x3UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  4427. #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  4428. #define DMA_CCR_MSIZE_0 (0x1UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  4429. #define DMA_CCR_MSIZE_1 (0x2UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  4430. #define DMA_CCR_PL_Pos (12U)
  4431. #define DMA_CCR_PL_Msk (0x3UL << DMA_CCR_PL_Pos) /*!< 0x00003000 */
  4432. #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  4433. #define DMA_CCR_PL_0 (0x1UL << DMA_CCR_PL_Pos) /*!< 0x00001000 */
  4434. #define DMA_CCR_PL_1 (0x2UL << DMA_CCR_PL_Pos) /*!< 0x00002000 */
  4435. #define DMA_CCR_MEM2MEM_Pos (14U)
  4436. #define DMA_CCR_MEM2MEM_Msk (0x1UL << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  4437. #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  4438. #define DMA_CCR_DBM_Pos (15U)
  4439. #define DMA_CCR_DBM_Msk (0x1UL << DMA_CCR_DBM_Pos) /*!< 0x00008000 */
  4440. #define DMA_CCR_DBM DMA_CCR_DBM_Msk /*!< Double-buffer mode */
  4441. #define DMA_CCR_CT_Pos (16U)
  4442. #define DMA_CCR_CT_Msk (0x1UL << DMA_CCR_CT_Pos) /*!< 0x00010000 */
  4443. #define DMA_CCR_CT DMA_CCR_CT_Msk /*!< Current target of DMA transfer in double-buffer mode */
  4444. #define DMA_CCR_SECM_Pos (17U)
  4445. #define DMA_CCR_SECM_Msk (0x1UL << DMA_CCR_SECM_Pos) /*!< 0x00020000 */
  4446. #define DMA_CCR_SECM DMA_CCR_SECM_Msk /*!< Secure mode */
  4447. #define DMA_CCR_SSEC_Pos (18U)
  4448. #define DMA_CCR_SSEC_Msk (0x1UL << DMA_CCR_SSEC_Pos) /*!< 0x00040000 */
  4449. #define DMA_CCR_SSEC DMA_CCR_SSEC_Msk /*!< Security of the DMA transfer from the source */
  4450. #define DMA_CCR_DSEC_Pos (19U)
  4451. #define DMA_CCR_DSEC_Msk (0x1UL << DMA_CCR_DSEC_Pos) /*!< 0x00080000 */
  4452. #define DMA_CCR_DSEC DMA_CCR_DSEC_Msk /*!< Security of the DMA transfer to the destination */
  4453. #define DMA_CCR_PRIV_Pos (20U)
  4454. #define DMA_CCR_PRIV_Msk (0x1UL << DMA_CCR_PRIV_Pos) /*!< 0x00100000 */
  4455. #define DMA_CCR_PRIV DMA_CCR_PRIV_Msk /*!< Privileged mode */
  4456. /****************** Bit definition for DMA_CNDTR register *******************/
  4457. #define DMA_CNDTR_NDT_Pos (0U)
  4458. #define DMA_CNDTR_NDT_Msk (0x3FFFFUL << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  4459. #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  4460. /****************** Bit definition for DMA_CPAR register ********************/
  4461. #define DMA_CPAR_PA_Pos (0U)
  4462. #define DMA_CPAR_PA_Msk (0xFFFFFFFFUL << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  4463. #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */
  4464. /****************** Bit definition for DMA_CM0AR register *******************/
  4465. #define DMA_CM0AR_MA_Pos (0U)
  4466. #define DMA_CM0AR_MA_Msk (0xFFFFFFFFUL << DMA_CM0AR_MA_Pos) /*!< 0xFFFFFFFF */
  4467. #define DMA_CM0AR_MA DMA_CM0AR_MA_Msk /*!< Memory 0 Address */
  4468. /****************** Bit definition for DMA_CM1AR register *******************/
  4469. #define DMA_CM1AR_MA_Pos (0U)
  4470. #define DMA_CM1AR_MA_Msk (0xFFFFFFFFUL << DMA_CM1AR_MA_Pos) /*!< 0xFFFFFFFF */
  4471. #define DMA_CM1AR_MA DMA_CM1AR_MA_Msk /*!< Memory 1 Address */
  4472. /******************************************************************************/
  4473. /* */
  4474. /* DMAMUX Controller */
  4475. /* */
  4476. /******************************************************************************/
  4477. /******************** Bits definition for DMAMUX_CxCR register **************/
  4478. #define DMAMUX_CxCR_DMAREQ_ID_Pos (0U)
  4479. #define DMAMUX_CxCR_DMAREQ_ID_Msk (0xFFUL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x000000FF */
  4480. #define DMAMUX_CxCR_DMAREQ_ID DMAMUX_CxCR_DMAREQ_ID_Msk
  4481. #define DMAMUX_CxCR_DMAREQ_ID_0 (0x01UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000001 */
  4482. #define DMAMUX_CxCR_DMAREQ_ID_1 (0x02UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000002 */
  4483. #define DMAMUX_CxCR_DMAREQ_ID_2 (0x04UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000004 */
  4484. #define DMAMUX_CxCR_DMAREQ_ID_3 (0x08UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000008 */
  4485. #define DMAMUX_CxCR_DMAREQ_ID_4 (0x10UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000010 */
  4486. #define DMAMUX_CxCR_DMAREQ_ID_5 (0x20UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000020 */
  4487. #define DMAMUX_CxCR_DMAREQ_ID_6 (0x40UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000040 */
  4488. #define DMAMUX_CxCR_DMAREQ_ID_7 (0x80UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000080 */
  4489. #define DMAMUX_CxCR_SOIE_Pos (8U)
  4490. #define DMAMUX_CxCR_SOIE_Msk (0x1UL << DMAMUX_CxCR_SOIE_Pos)/*!< 0x00000100 */
  4491. #define DMAMUX_CxCR_SOIE DMAMUX_CxCR_SOIE_Msk
  4492. #define DMAMUX_CxCR_EGE_Pos (9U)
  4493. #define DMAMUX_CxCR_EGE_Msk (0x1UL << DMAMUX_CxCR_EGE_Pos)/*!< 0x00000200 */
  4494. #define DMAMUX_CxCR_EGE DMAMUX_CxCR_EGE_Msk
  4495. #define DMAMUX_CxCR_SE_Pos (16U)
  4496. #define DMAMUX_CxCR_SE_Msk (0x1UL << DMAMUX_CxCR_SE_Pos)/*!< 0x00010000 */
  4497. #define DMAMUX_CxCR_SE DMAMUX_CxCR_SE_Msk
  4498. #define DMAMUX_CxCR_SPOL_Pos (17U)
  4499. #define DMAMUX_CxCR_SPOL_Msk (0x3UL << DMAMUX_CxCR_SPOL_Pos)/*!< 0x00060000 */
  4500. #define DMAMUX_CxCR_SPOL DMAMUX_CxCR_SPOL_Msk
  4501. #define DMAMUX_CxCR_SPOL_0 (0x1UL << DMAMUX_CxCR_SPOL_Pos)/*!< 0x00020000 */
  4502. #define DMAMUX_CxCR_SPOL_1 (0x2UL << DMAMUX_CxCR_SPOL_Pos)/*!< 0x00040000 */
  4503. #define DMAMUX_CxCR_NBREQ_Pos (19U)
  4504. #define DMAMUX_CxCR_NBREQ_Msk (0x1FUL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00F80000 */
  4505. #define DMAMUX_CxCR_NBREQ DMAMUX_CxCR_NBREQ_Msk
  4506. #define DMAMUX_CxCR_NBREQ_0 (0x01UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00080000 */
  4507. #define DMAMUX_CxCR_NBREQ_1 (0x02UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00100000 */
  4508. #define DMAMUX_CxCR_NBREQ_2 (0x04UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00200000 */
  4509. #define DMAMUX_CxCR_NBREQ_3 (0x08UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00400000 */
  4510. #define DMAMUX_CxCR_NBREQ_4 (0x10UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00800000 */
  4511. #define DMAMUX_CxCR_SYNC_ID_Pos (24U)
  4512. #define DMAMUX_CxCR_SYNC_ID_Msk (0x1FUL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x1F000000 */
  4513. #define DMAMUX_CxCR_SYNC_ID DMAMUX_CxCR_SYNC_ID_Msk
  4514. #define DMAMUX_CxCR_SYNC_ID_0 (0x01UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x01000000 */
  4515. #define DMAMUX_CxCR_SYNC_ID_1 (0x02UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x02000000 */
  4516. #define DMAMUX_CxCR_SYNC_ID_2 (0x04UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x04000000 */
  4517. #define DMAMUX_CxCR_SYNC_ID_3 (0x08UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x08000000 */
  4518. #define DMAMUX_CxCR_SYNC_ID_4 (0x10UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x10000000 */
  4519. /******************** Bits definition for DMAMUX_CSR register ****************/
  4520. #define DMAMUX_CSR_SOF0_Pos (0U)
  4521. #define DMAMUX_CSR_SOF0_Msk (0x1UL << DMAMUX_CSR_SOF0_Pos)/*!< 0x00000001 */
  4522. #define DMAMUX_CSR_SOF0 DMAMUX_CSR_SOF0_Msk
  4523. #define DMAMUX_CSR_SOF1_Pos (1U)
  4524. #define DMAMUX_CSR_SOF1_Msk (0x1UL << DMAMUX_CSR_SOF1_Pos)/*!< 0x00000002 */
  4525. #define DMAMUX_CSR_SOF1 DMAMUX_CSR_SOF1_Msk
  4526. #define DMAMUX_CSR_SOF2_Pos (2U)
  4527. #define DMAMUX_CSR_SOF2_Msk (0x1UL << DMAMUX_CSR_SOF2_Pos)/*!< 0x00000004 */
  4528. #define DMAMUX_CSR_SOF2 DMAMUX_CSR_SOF2_Msk
  4529. #define DMAMUX_CSR_SOF3_Pos (3U)
  4530. #define DMAMUX_CSR_SOF3_Msk (0x1UL << DMAMUX_CSR_SOF3_Pos)/*!< 0x00000008 */
  4531. #define DMAMUX_CSR_SOF3 DMAMUX_CSR_SOF3_Msk
  4532. #define DMAMUX_CSR_SOF4_Pos (4U)
  4533. #define DMAMUX_CSR_SOF4_Msk (0x1UL << DMAMUX_CSR_SOF4_Pos)/*!< 0x00000010 */
  4534. #define DMAMUX_CSR_SOF4 DMAMUX_CSR_SOF4_Msk
  4535. #define DMAMUX_CSR_SOF5_Pos (5U)
  4536. #define DMAMUX_CSR_SOF5_Msk (0x1UL << DMAMUX_CSR_SOF5_Pos)/*!< 0x00000020 */
  4537. #define DMAMUX_CSR_SOF5 DMAMUX_CSR_SOF5_Msk
  4538. #define DMAMUX_CSR_SOF6_Pos (6U)
  4539. #define DMAMUX_CSR_SOF6_Msk (0x1UL << DMAMUX_CSR_SOF6_Pos)/*!< 0x00000040 */
  4540. #define DMAMUX_CSR_SOF6 DMAMUX_CSR_SOF6_Msk
  4541. #define DMAMUX_CSR_SOF7_Pos (7U)
  4542. #define DMAMUX_CSR_SOF7_Msk (0x1UL << DMAMUX_CSR_SOF7_Pos)/*!< 0x00000080 */
  4543. #define DMAMUX_CSR_SOF7 DMAMUX_CSR_SOF7_Msk
  4544. #define DMAMUX_CSR_SOF8_Pos (8U)
  4545. #define DMAMUX_CSR_SOF8_Msk (0x1UL << DMAMUX_CSR_SOF8_Pos)/*!< 0x00000100 */
  4546. #define DMAMUX_CSR_SOF8 DMAMUX_CSR_SOF8_Msk
  4547. #define DMAMUX_CSR_SOF9_Pos (9U)
  4548. #define DMAMUX_CSR_SOF9_Msk (0x1UL << DMAMUX_CSR_SOF9_Pos)/*!< 0x00000200 */
  4549. #define DMAMUX_CSR_SOF9 DMAMUX_CSR_SOF9_Msk
  4550. #define DMAMUX_CSR_SOF10_Pos (10U)
  4551. #define DMAMUX_CSR_SOF10_Msk (0x1UL << DMAMUX_CSR_SOF10_Pos)/*!< 0x00000400 */
  4552. #define DMAMUX_CSR_SOF10 DMAMUX_CSR_SOF10_Msk
  4553. #define DMAMUX_CSR_SOF11_Pos (11U)
  4554. #define DMAMUX_CSR_SOF11_Msk (0x1UL << DMAMUX_CSR_SOF11_Pos)/*!< 0x00000800 */
  4555. #define DMAMUX_CSR_SOF11 DMAMUX_CSR_SOF11_Msk
  4556. #define DMAMUX_CSR_SOF12_Pos (12U)
  4557. #define DMAMUX_CSR_SOF12_Msk (0x1UL << DMAMUX_CSR_SOF12_Pos)/*!< 0x00001000 */
  4558. #define DMAMUX_CSR_SOF12 DMAMUX_CSR_SOF12_Msk
  4559. #define DMAMUX_CSR_SOF13_Pos (13U)
  4560. #define DMAMUX_CSR_SOF13_Msk (0x1UL << DMAMUX_CSR_SOF13_Pos)/*!< 0x00002000 */
  4561. #define DMAMUX_CSR_SOF13 DMAMUX_CSR_SOF13_Msk
  4562. #define DMAMUX_CSR_SOF14_Pos (14U)
  4563. #define DMAMUX_CSR_SOF14_Msk (0x1UL << DMAMUX_CSR_SOF14_Pos)/*!< 0x00004000 */
  4564. #define DMAMUX_CSR_SOF14 DMAMUX_CSR_SOF14_Msk
  4565. #define DMAMUX_CSR_SOF15_Pos (15U)
  4566. #define DMAMUX_CSR_SOF15_Msk (0x1UL << DMAMUX_CSR_SOF15_Pos)/*!< 0x00008000 */
  4567. #define DMAMUX_CSR_SOF15 DMAMUX_CSR_SOF15_Msk
  4568. /******************** Bits definition for DMAMUX_CFR register ****************/
  4569. #define DMAMUX_CFR_CSOF0_Pos (0U)
  4570. #define DMAMUX_CFR_CSOF0_Msk (0x1UL << DMAMUX_CFR_CSOF0_Pos)/*!< 0x00000001 */
  4571. #define DMAMUX_CFR_CSOF0 DMAMUX_CFR_CSOF0_Msk
  4572. #define DMAMUX_CFR_CSOF1_Pos (1U)
  4573. #define DMAMUX_CFR_CSOF1_Msk (0x1UL << DMAMUX_CFR_CSOF1_Pos)/*!< 0x00000002 */
  4574. #define DMAMUX_CFR_CSOF1 DMAMUX_CFR_CSOF1_Msk
  4575. #define DMAMUX_CFR_CSOF2_Pos (2U)
  4576. #define DMAMUX_CFR_CSOF2_Msk (0x1UL << DMAMUX_CFR_CSOF2_Pos)/*!< 0x00000004 */
  4577. #define DMAMUX_CFR_CSOF2 DMAMUX_CFR_CSOF2_Msk
  4578. #define DMAMUX_CFR_CSOF3_Pos (3U)
  4579. #define DMAMUX_CFR_CSOF3_Msk (0x1UL << DMAMUX_CFR_CSOF3_Pos)/*!< 0x00000008 */
  4580. #define DMAMUX_CFR_CSOF3 DMAMUX_CFR_CSOF3_Msk
  4581. #define DMAMUX_CFR_CSOF4_Pos (4U)
  4582. #define DMAMUX_CFR_CSOF4_Msk (0x1UL << DMAMUX_CFR_CSOF4_Pos)/*!< 0x00000010 */
  4583. #define DMAMUX_CFR_CSOF4 DMAMUX_CFR_CSOF4_Msk
  4584. #define DMAMUX_CFR_CSOF5_Pos (5U)
  4585. #define DMAMUX_CFR_CSOF5_Msk (0x1UL << DMAMUX_CFR_CSOF5_Pos)/*!< 0x00000020 */
  4586. #define DMAMUX_CFR_CSOF5 DMAMUX_CFR_CSOF5_Msk
  4587. #define DMAMUX_CFR_CSOF6_Pos (6U)
  4588. #define DMAMUX_CFR_CSOF6_Msk (0x1UL << DMAMUX_CFR_CSOF6_Pos)/*!< 0x00000040 */
  4589. #define DMAMUX_CFR_CSOF6 DMAMUX_CFR_CSOF6_Msk
  4590. #define DMAMUX_CFR_CSOF7_Pos (7U)
  4591. #define DMAMUX_CFR_CSOF7_Msk (0x1UL << DMAMUX_CFR_CSOF7_Pos)/*!< 0x00000080 */
  4592. #define DMAMUX_CFR_CSOF7 DMAMUX_CFR_CSOF7_Msk
  4593. #define DMAMUX_CFR_CSOF8_Pos (8U)
  4594. #define DMAMUX_CFR_CSOF8_Msk (0x1UL << DMAMUX_CFR_CSOF8_Pos)/*!< 0x00000100 */
  4595. #define DMAMUX_CFR_CSOF8 DMAMUX_CFR_CSOF8_Msk
  4596. #define DMAMUX_CFR_CSOF9_Pos (9U)
  4597. #define DMAMUX_CFR_CSOF9_Msk (0x1UL << DMAMUX_CFR_CSOF9_Pos)/*!< 0x00000200 */
  4598. #define DMAMUX_CFR_CSOF9 DMAMUX_CFR_CSOF9_Msk
  4599. #define DMAMUX_CFR_CSOF10_Pos (10U)
  4600. #define DMAMUX_CFR_CSOF10_Msk (0x1UL << DMAMUX_CFR_CSOF10_Pos)/*!< 0x00000400 */
  4601. #define DMAMUX_CFR_CSOF10 DMAMUX_CFR_CSOF10_Msk
  4602. #define DMAMUX_CFR_CSOF11_Pos (11U)
  4603. #define DMAMUX_CFR_CSOF11_Msk (0x1UL << DMAMUX_CFR_CSOF11_Pos)/*!< 0x00000800 */
  4604. #define DMAMUX_CFR_CSOF11 DMAMUX_CFR_CSOF11_Msk
  4605. #define DMAMUX_CFR_CSOF12_Pos (12U)
  4606. #define DMAMUX_CFR_CSOF12_Msk (0x1UL << DMAMUX_CFR_CSOF12_Pos)/*!< 0x00001000 */
  4607. #define DMAMUX_CFR_CSOF12 DMAMUX_CFR_CSOF12_Msk
  4608. #define DMAMUX_CFR_CSOF13_Pos (13U)
  4609. #define DMAMUX_CFR_CSOF13_Msk (0x1UL << DMAMUX_CFR_CSOF13_Pos)/*!< 0x00002000 */
  4610. #define DMAMUX_CFR_CSOF13 DMAMUX_CFR_CSOF13_Msk
  4611. #define DMAMUX_CFR_CSOF14_Pos (14U)
  4612. #define DMAMUX_CFR_CSOF14_Msk (0x1UL << DMAMUX_CFR_CSOF14_Pos)/*!< 0x00004000 */
  4613. #define DMAMUX_CFR_CSOF14 DMAMUX_CFR_CSOF14_Msk
  4614. #define DMAMUX_CFR_CSOF15_Pos (15U)
  4615. #define DMAMUX_CFR_CSOF15_Msk (0x1UL << DMAMUX_CFR_CSOF15_Pos)/*!< 0x00008000 */
  4616. #define DMAMUX_CFR_CSOF15 DMAMUX_CFR_CSOF15_Msk
  4617. /******************** Bits definition for DMAMUX_RGxCR register ************/
  4618. #define DMAMUX_RGxCR_SIG_ID_Pos (0U)
  4619. #define DMAMUX_RGxCR_SIG_ID_Msk (0x1FUL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x0000001F */
  4620. #define DMAMUX_RGxCR_SIG_ID DMAMUX_RGxCR_SIG_ID_Msk
  4621. #define DMAMUX_RGxCR_SIG_ID_0 (0x01UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000001 */
  4622. #define DMAMUX_RGxCR_SIG_ID_1 (0x02UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000002 */
  4623. #define DMAMUX_RGxCR_SIG_ID_2 (0x04UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000004 */
  4624. #define DMAMUX_RGxCR_SIG_ID_3 (0x08UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000008 */
  4625. #define DMAMUX_RGxCR_SIG_ID_4 (0x10UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000010 */
  4626. #define DMAMUX_RGxCR_OIE_Pos (8U)
  4627. #define DMAMUX_RGxCR_OIE_Msk (0x1UL << DMAMUX_RGxCR_OIE_Pos)/*!< 0x00000100 */
  4628. #define DMAMUX_RGxCR_OIE DMAMUX_RGxCR_OIE_Msk
  4629. #define DMAMUX_RGxCR_GE_Pos (16U)
  4630. #define DMAMUX_RGxCR_GE_Msk (0x1UL << DMAMUX_RGxCR_GE_Pos)/*!< 0x00010000 */
  4631. #define DMAMUX_RGxCR_GE DMAMUX_RGxCR_GE_Msk
  4632. #define DMAMUX_RGxCR_GPOL_Pos (17U)
  4633. #define DMAMUX_RGxCR_GPOL_Msk (0x3UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00060000 */
  4634. #define DMAMUX_RGxCR_GPOL DMAMUX_RGxCR_GPOL_Msk
  4635. #define DMAMUX_RGxCR_GPOL_0 (0x1UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00020000 */
  4636. #define DMAMUX_RGxCR_GPOL_1 (0x2UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00040000 */
  4637. #define DMAMUX_RGxCR_GNBREQ_Pos (19U)
  4638. #define DMAMUX_RGxCR_GNBREQ_Msk (0x1FUL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00F80000 */
  4639. #define DMAMUX_RGxCR_GNBREQ DMAMUX_RGxCR_GNBREQ_Msk
  4640. #define DMAMUX_RGxCR_GNBREQ_0 (0x01UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00080000 */
  4641. #define DMAMUX_RGxCR_GNBREQ_1 (0x02UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00100000 */
  4642. #define DMAMUX_RGxCR_GNBREQ_2 (0x04UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00200000 */
  4643. #define DMAMUX_RGxCR_GNBREQ_3 (0x08UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00400000 */
  4644. #define DMAMUX_RGxCR_GNBREQ_4 (0x10UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00800000 */
  4645. /******************** Bits definition for DMAMUX_RGSR register **************/
  4646. #define DMAMUX_RGSR_OF0_Pos (0U)
  4647. #define DMAMUX_RGSR_OF0_Msk (0x1UL << DMAMUX_RGSR_OF0_Pos)/*!< 0x00000001 */
  4648. #define DMAMUX_RGSR_OF0 DMAMUX_RGSR_OF0_Msk
  4649. #define DMAMUX_RGSR_OF1_Pos (1U)
  4650. #define DMAMUX_RGSR_OF1_Msk (0x1UL << DMAMUX_RGSR_OF1_Pos)/*!< 0x00000002 */
  4651. #define DMAMUX_RGSR_OF1 DMAMUX_RGSR_OF1_Msk
  4652. #define DMAMUX_RGSR_OF2_Pos (2U)
  4653. #define DMAMUX_RGSR_OF2_Msk (0x1UL << DMAMUX_RGSR_OF2_Pos)/*!< 0x00000004 */
  4654. #define DMAMUX_RGSR_OF2 DMAMUX_RGSR_OF2_Msk
  4655. #define DMAMUX_RGSR_OF3_Pos (3U)
  4656. #define DMAMUX_RGSR_OF3_Msk (0x1UL << DMAMUX_RGSR_OF3_Pos)/*!< 0x00000008 */
  4657. #define DMAMUX_RGSR_OF3 DMAMUX_RGSR_OF3_Msk
  4658. /******************** Bits definition for DMAMUX_RGCFR register ************/
  4659. #define DMAMUX_RGCFR_COF0_Pos (0U)
  4660. #define DMAMUX_RGCFR_COF0_Msk (0x1UL << DMAMUX_RGCFR_COF0_Pos)/*!< 0x00000001 */
  4661. #define DMAMUX_RGCFR_COF0 DMAMUX_RGCFR_COF0_Msk
  4662. #define DMAMUX_RGCFR_COF1_Pos (1U)
  4663. #define DMAMUX_RGCFR_COF1_Msk (0x1UL << DMAMUX_RGCFR_COF1_Pos)/*!< 0x00000002 */
  4664. #define DMAMUX_RGCFR_COF1 DMAMUX_RGCFR_COF1_Msk
  4665. #define DMAMUX_RGCFR_COF2_Pos (2U)
  4666. #define DMAMUX_RGCFR_COF2_Msk (0x1UL << DMAMUX_RGCFR_COF2_Pos)/*!< 0x00000004 */
  4667. #define DMAMUX_RGCFR_COF2 DMAMUX_RGCFR_COF2_Msk
  4668. #define DMAMUX_RGCFR_COF3_Pos (3U)
  4669. #define DMAMUX_RGCFR_COF3_Msk (0x1UL << DMAMUX_RGCFR_COF3_Pos)/*!< 0x00000008 */
  4670. #define DMAMUX_RGCFR_COF3 DMAMUX_RGCFR_COF3_Msk
  4671. /*****************************************************************************/
  4672. /* */
  4673. /* External Interrupt/Event Controller */
  4674. /* */
  4675. /*****************************************************************************/
  4676. /******************* Bit definition for EXTI_RTSR1 register ****************/
  4677. #define EXTI_RTSR1_RT0_Pos (0U)
  4678. #define EXTI_RTSR1_RT0_Msk (0x1UL << EXTI_RTSR1_RT0_Pos) /*!< 0x00000001 */
  4679. #define EXTI_RTSR1_RT0 EXTI_RTSR1_RT0_Msk /*!< Rising trigger configuration for input line 0 */
  4680. #define EXTI_RTSR1_RT1_Pos (1U)
  4681. #define EXTI_RTSR1_RT1_Msk (0x1UL << EXTI_RTSR1_RT1_Pos) /*!< 0x00000002 */
  4682. #define EXTI_RTSR1_RT1 EXTI_RTSR1_RT1_Msk /*!< Rising trigger configuration for input line 1 */
  4683. #define EXTI_RTSR1_RT2_Pos (2U)
  4684. #define EXTI_RTSR1_RT2_Msk (0x1UL << EXTI_RTSR1_RT2_Pos) /*!< 0x00000004 */
  4685. #define EXTI_RTSR1_RT2 EXTI_RTSR1_RT2_Msk /*!< Rising trigger configuration for input line 2 */
  4686. #define EXTI_RTSR1_RT3_Pos (3U)
  4687. #define EXTI_RTSR1_RT3_Msk (0x1UL << EXTI_RTSR1_RT3_Pos) /*!< 0x00000008 */
  4688. #define EXTI_RTSR1_RT3 EXTI_RTSR1_RT3_Msk /*!< Rising trigger configuration for input line 3 */
  4689. #define EXTI_RTSR1_RT4_Pos (4U)
  4690. #define EXTI_RTSR1_RT4_Msk (0x1UL << EXTI_RTSR1_RT4_Pos) /*!< 0x00000010 */
  4691. #define EXTI_RTSR1_RT4 EXTI_RTSR1_RT4_Msk /*!< Rising trigger configuration for input line 4 */
  4692. #define EXTI_RTSR1_RT5_Pos (5U)
  4693. #define EXTI_RTSR1_RT5_Msk (0x1UL << EXTI_RTSR1_RT5_Pos) /*!< 0x00000020 */
  4694. #define EXTI_RTSR1_RT5 EXTI_RTSR1_RT5_Msk /*!< Rising trigger configuration for input line 5 */
  4695. #define EXTI_RTSR1_RT6_Pos (6U)
  4696. #define EXTI_RTSR1_RT6_Msk (0x1UL << EXTI_RTSR1_RT6_Pos) /*!< 0x00000040 */
  4697. #define EXTI_RTSR1_RT6 EXTI_RTSR1_RT6_Msk /*!< Rising trigger configuration for input line 6 */
  4698. #define EXTI_RTSR1_RT7_Pos (7U)
  4699. #define EXTI_RTSR1_RT7_Msk (0x1UL << EXTI_RTSR1_RT7_Pos) /*!< 0x00000080 */
  4700. #define EXTI_RTSR1_RT7 EXTI_RTSR1_RT7_Msk /*!< Rising trigger configuration for input line 7 */
  4701. #define EXTI_RTSR1_RT8_Pos (8U)
  4702. #define EXTI_RTSR1_RT8_Msk (0x1UL << EXTI_RTSR1_RT8_Pos) /*!< 0x00000100 */
  4703. #define EXTI_RTSR1_RT8 EXTI_RTSR1_RT8_Msk /*!< Rising trigger configuration for input line 8 */
  4704. #define EXTI_RTSR1_RT9_Pos (9U)
  4705. #define EXTI_RTSR1_RT9_Msk (0x1UL << EXTI_RTSR1_RT9_Pos) /*!< 0x00000200 */
  4706. #define EXTI_RTSR1_RT9 EXTI_RTSR1_RT9_Msk /*!< Rising trigger configuration for input line 9 */
  4707. #define EXTI_RTSR1_RT10_Pos (10U)
  4708. #define EXTI_RTSR1_RT10_Msk (0x1UL << EXTI_RTSR1_RT10_Pos) /*!< 0x00000400 */
  4709. #define EXTI_RTSR1_RT10 EXTI_RTSR1_RT10_Msk /*!< Rising trigger configuration for input line 10 */
  4710. #define EXTI_RTSR1_RT11_Pos (11U)
  4711. #define EXTI_RTSR1_RT11_Msk (0x1UL << EXTI_RTSR1_RT11_Pos) /*!< 0x00000800 */
  4712. #define EXTI_RTSR1_RT11 EXTI_RTSR1_RT11_Msk /*!< Rising trigger configuration for input line 11 */
  4713. #define EXTI_RTSR1_RT12_Pos (12U)
  4714. #define EXTI_RTSR1_RT12_Msk (0x1UL << EXTI_RTSR1_RT12_Pos) /*!< 0x00001000 */
  4715. #define EXTI_RTSR1_RT12 EXTI_RTSR1_RT12_Msk /*!< Rising trigger configuration for input line 12 */
  4716. #define EXTI_RTSR1_RT13_Pos (13U)
  4717. #define EXTI_RTSR1_RT13_Msk (0x1UL << EXTI_RTSR1_RT13_Pos) /*!< 0x00002000 */
  4718. #define EXTI_RTSR1_RT13 EXTI_RTSR1_RT13_Msk /*!< Rising trigger configuration for input line 13 */
  4719. #define EXTI_RTSR1_RT14_Pos (14U)
  4720. #define EXTI_RTSR1_RT14_Msk (0x1UL << EXTI_RTSR1_RT14_Pos) /*!< 0x00004000 */
  4721. #define EXTI_RTSR1_RT14 EXTI_RTSR1_RT14_Msk /*!< Rising trigger configuration for input line 14 */
  4722. #define EXTI_RTSR1_RT15_Pos (15U)
  4723. #define EXTI_RTSR1_RT15_Msk (0x1UL << EXTI_RTSR1_RT15_Pos) /*!< 0x00008000 */
  4724. #define EXTI_RTSR1_RT15 EXTI_RTSR1_RT15_Msk /*!< Rising trigger configuration for input line 15 */
  4725. #define EXTI_RTSR1_RT16_Pos (16U)
  4726. #define EXTI_RTSR1_RT16_Msk (0x1UL << EXTI_RTSR1_RT16_Pos) /*!< 0x00010000 */
  4727. #define EXTI_RTSR1_RT16 EXTI_RTSR1_RT16_Msk /*!< Rising trigger configuration for input line 16 */
  4728. #define EXTI_RTSR1_RT21_Pos (21U)
  4729. #define EXTI_RTSR1_RT21_Msk (0x1UL << EXTI_RTSR1_RT21_Pos) /*!< 0x00200000 */
  4730. #define EXTI_RTSR1_RT21 EXTI_RTSR1_RT21_Msk /*!< Rising trigger configuration for input line 21 */
  4731. #define EXTI_RTSR1_RT22_Pos (22U)
  4732. #define EXTI_RTSR1_RT22_Msk (0x1UL << EXTI_RTSR1_RT22_Pos) /*!< 0x00400000 */
  4733. #define EXTI_RTSR1_RT22 EXTI_RTSR1_RT22_Msk /*!< Rising trigger configuration for input line 22 */
  4734. #define EXTI_RTSR1_RT23_Pos (23U)
  4735. #define EXTI_RTSR1_RT23_Msk (0x1UL << EXTI_RTSR1_RT23_Pos) /*!< 0x00800000 */
  4736. #define EXTI_RTSR1_RT23 EXTI_RTSR1_RT23_Msk /*!< Rising trigger configuration for input line 23 */
  4737. #define EXTI_RTSR1_RT24_Pos (24U)
  4738. #define EXTI_RTSR1_RT24_Msk (0x1UL << EXTI_RTSR1_RT24_Pos) /*!< 0x01000000 */
  4739. #define EXTI_RTSR1_RT24 EXTI_RTSR1_RT24_Msk /*!< Rising trigger configuration for input line 24 */
  4740. #define EXTI_RTSR1_RT25_Pos (25U)
  4741. #define EXTI_RTSR1_RT25_Msk (0x1UL << EXTI_RTSR1_RT25_Pos) /*!< 0x02000000 */
  4742. #define EXTI_RTSR1_RT25 EXTI_RTSR1_RT25_Msk /*!< Rising trigger configuration for input line 25 */
  4743. #define EXTI_RTSR1_RT26_Pos (26U)
  4744. #define EXTI_RTSR1_RT26_Msk (0x1UL << EXTI_RTSR1_RT26_Pos) /*!< 0x04000000 */
  4745. #define EXTI_RTSR1_RT26 EXTI_RTSR1_RT26_Msk /*!< Rising trigger configuration for input line 26 */
  4746. #define EXTI_RTSR1_RT27_Pos (27U)
  4747. #define EXTI_RTSR1_RT27_Msk (0x1UL << EXTI_RTSR1_RT27_Pos) /*!< 0x08000000 */
  4748. #define EXTI_RTSR1_RT27 EXTI_RTSR1_RT27_Msk /*!< Rising trigger configuration for input line 27 */
  4749. #define EXTI_RTSR1_RT28_Pos (28U)
  4750. #define EXTI_RTSR1_RT28_Msk (0x1UL << EXTI_RTSR1_RT28_Pos) /*!< 0x10000000 */
  4751. #define EXTI_RTSR1_RT28 EXTI_RTSR1_RT28_Msk /*!< Rising trigger configuration for input line 28 */
  4752. #define EXTI_RTSR1_RT29_Pos (29U)
  4753. #define EXTI_RTSR1_RT29_Msk (0x1UL << EXTI_RTSR1_RT29_Pos) /*!< 0x20000000 */
  4754. #define EXTI_RTSR1_RT29 EXTI_RTSR1_RT29_Msk /*!< Rising trigger configuration for input line 29 */
  4755. #define EXTI_RTSR1_RT30_Pos (30U)
  4756. #define EXTI_RTSR1_RT30_Msk (0x1UL << EXTI_RTSR1_RT30_Pos) /*!< 0x40000000 */
  4757. #define EXTI_RTSR1_RT30 EXTI_RTSR1_RT30_Msk /*!< Rising trigger configuration for input line 30 */
  4758. #define EXTI_RTSR1_RT31_Pos (31U)
  4759. #define EXTI_RTSR1_RT31_Msk (0x1UL << EXTI_RTSR1_RT31_Pos) /*!< 0x80000000 */
  4760. #define EXTI_RTSR1_RT31 EXTI_RTSR1_RT31_Msk /*!< Rising trigger configuration for input line 31 */
  4761. /******************* Bit definition for EXTI_RTSR2 register ****************/
  4762. #define EXTI_RTSR2_RT32_Pos (0U)
  4763. #define EXTI_RTSR2_RT32_Msk (0x1UL << EXTI_RTSR2_RT32_Pos) /*!< 0x00000001 */
  4764. #define EXTI_RTSR2_RT32 EXTI_RTSR2_RT32_Msk /*!< Rising trigger configuration for input line 32 */
  4765. #define EXTI_RTSR2_RT33_Pos (1U)
  4766. #define EXTI_RTSR2_RT33_Msk (0x1UL << EXTI_RTSR2_RT33_Pos) /*!< 0x00000002 */
  4767. #define EXTI_RTSR2_RT33 EXTI_RTSR2_RT33_Msk /*!< Rising trigger configuration for input line 33 */
  4768. #define EXTI_RTSR2_RT34_Pos (2U)
  4769. #define EXTI_RTSR2_RT34_Msk (0x1UL << EXTI_RTSR2_RT34_Pos) /*!< 0x00000004 */
  4770. #define EXTI_RTSR2_RT34 EXTI_RTSR2_RT34_Msk /*!< Rising trigger configuration for input line 34 */
  4771. #define EXTI_RTSR2_RT35_Pos (3U)
  4772. #define EXTI_RTSR2_RT35_Msk (0x1UL << EXTI_RTSR2_RT35_Pos) /*!< 0x00000008 */
  4773. #define EXTI_RTSR2_RT35 EXTI_RTSR2_RT35_Msk /*!< Rising trigger configuration for input line 35 */
  4774. #define EXTI_RTSR2_RT36_Pos (4U)
  4775. #define EXTI_RTSR2_RT36_Msk (0x1UL << EXTI_RTSR2_RT36_Pos) /*!< 0x00000010 */
  4776. #define EXTI_RTSR2_RT36 EXTI_RTSR2_RT36_Msk /*!< Rising trigger configuration for input line 36 */
  4777. #define EXTI_RTSR2_RT37_Pos (5U)
  4778. #define EXTI_RTSR2_RT37_Msk (0x1UL << EXTI_RTSR2_RT37_Pos) /*!< 0x00000020 */
  4779. #define EXTI_RTSR2_RT37 EXTI_RTSR2_RT37_Msk /*!< Rising trigger configuration for input line 37 */
  4780. #define EXTI_RTSR2_RT38_Pos (6U)
  4781. #define EXTI_RTSR2_RT38_Msk (0x1UL << EXTI_RTSR2_RT38_Pos) /*!< 0x00000040 */
  4782. #define EXTI_RTSR2_RT38 EXTI_RTSR2_RT38_Msk /*!< Rising trigger configuration for input line 38 */
  4783. #define EXTI_RTSR2_RT39_Pos (7U)
  4784. #define EXTI_RTSR2_RT39_Msk (0x1UL << EXTI_RTSR2_RT39_Pos) /*!< 0x00000080 */
  4785. #define EXTI_RTSR2_RT39 EXTI_RTSR2_RT39_Msk /*!< Rising trigger configuration for input line 39 */
  4786. #define EXTI_RTSR2_RT40_Pos (8U)
  4787. #define EXTI_RTSR2_RT40_Msk (0x1UL << EXTI_RTSR2_RT40_Pos) /*!< 0x00000100 */
  4788. #define EXTI_RTSR2_RT40 EXTI_RTSR2_RT40_Msk /*!< Rising trigger configuration for input line 40 */
  4789. #define EXTI_RTSR2_RT41_Pos (9U)
  4790. #define EXTI_RTSR2_RT41_Msk (0x1UL << EXTI_RTSR2_RT41_Pos) /*!< 0x00000200 */
  4791. #define EXTI_RTSR2_RT41 EXTI_RTSR2_RT41_Msk /*!< Rising trigger configuration for input line 41 */
  4792. #define EXTI_RTSR2_RT42_Pos (10U)
  4793. #define EXTI_RTSR2_RT42_Msk (0x1UL << EXTI_RTSR2_RT42_Pos) /*!< 0x00000400 */
  4794. #define EXTI_RTSR2_RT42 EXTI_RTSR2_RT42_Msk /*!< Rising trigger configuration for input line 42 */
  4795. /******************* Bit definition for EXTI_FTSR1 register ****************/
  4796. #define EXTI_FTSR1_FT0_Pos (0U)
  4797. #define EXTI_FTSR1_FT0_Msk (0x1UL << EXTI_FTSR1_FT0_Pos) /*!< 0x00000001 */
  4798. #define EXTI_FTSR1_FT0 EXTI_FTSR1_FT0_Msk /*!< Falling trigger configuration for input line 0 */
  4799. #define EXTI_FTSR1_FT1_Pos (1U)
  4800. #define EXTI_FTSR1_FT1_Msk (0x1UL << EXTI_FTSR1_FT1_Pos) /*!< 0x00000002 */
  4801. #define EXTI_FTSR1_FT1 EXTI_FTSR1_FT1_Msk /*!< Falling trigger configuration for input line 1 */
  4802. #define EXTI_FTSR1_FT2_Pos (2U)
  4803. #define EXTI_FTSR1_FT2_Msk (0x1UL << EXTI_FTSR1_FT2_Pos) /*!< 0x00000004 */
  4804. #define EXTI_FTSR1_FT2 EXTI_FTSR1_FT2_Msk /*!< Falling trigger configuration for input line 2 */
  4805. #define EXTI_FTSR1_FT3_Pos (3U)
  4806. #define EXTI_FTSR1_FT3_Msk (0x1UL << EXTI_FTSR1_FT3_Pos) /*!< 0x00000008 */
  4807. #define EXTI_FTSR1_FT3 EXTI_FTSR1_FT3_Msk /*!< Falling trigger configuration for input line 3 */
  4808. #define EXTI_FTSR1_FT4_Pos (4U)
  4809. #define EXTI_FTSR1_FT4_Msk (0x1UL << EXTI_FTSR1_FT4_Pos) /*!< 0x00000010 */
  4810. #define EXTI_FTSR1_FT4 EXTI_FTSR1_FT4_Msk /*!< Falling trigger configuration for input line 4 */
  4811. #define EXTI_FTSR1_FT5_Pos (5U)
  4812. #define EXTI_FTSR1_FT5_Msk (0x1UL << EXTI_FTSR1_FT5_Pos) /*!< 0x00000020 */
  4813. #define EXTI_FTSR1_FT5 EXTI_FTSR1_FT5_Msk /*!< Falling trigger configuration for input line 5 */
  4814. #define EXTI_FTSR1_FT6_Pos (6U)
  4815. #define EXTI_FTSR1_FT6_Msk (0x1UL << EXTI_FTSR1_FT6_Pos) /*!< 0x00000040 */
  4816. #define EXTI_FTSR1_FT6 EXTI_FTSR1_FT6_Msk /*!< Falling trigger configuration for input line 6 */
  4817. #define EXTI_FTSR1_FT7_Pos (7U)
  4818. #define EXTI_FTSR1_FT7_Msk (0x1UL << EXTI_FTSR1_FT7_Pos) /*!< 0x00000080 */
  4819. #define EXTI_FTSR1_FT7 EXTI_FTSR1_FT7_Msk /*!< Falling trigger configuration for input line 7 */
  4820. #define EXTI_FTSR1_FT8_Pos (8U)
  4821. #define EXTI_FTSR1_FT8_Msk (0x1UL << EXTI_FTSR1_FT8_Pos) /*!< 0x00000100 */
  4822. #define EXTI_FTSR1_FT8 EXTI_FTSR1_FT8_Msk /*!< Falling trigger configuration for input line 8 */
  4823. #define EXTI_FTSR1_FT9_Pos (9U)
  4824. #define EXTI_FTSR1_FT9_Msk (0x1UL << EXTI_FTSR1_FT9_Pos) /*!< 0x00000200 */
  4825. #define EXTI_FTSR1_FT9 EXTI_FTSR1_FT9_Msk /*!< Falling trigger configuration for input line 9 */
  4826. #define EXTI_FTSR1_FT10_Pos (10U)
  4827. #define EXTI_FTSR1_FT10_Msk (0x1UL << EXTI_FTSR1_FT10_Pos) /*!< 0x00000400 */
  4828. #define EXTI_FTSR1_FT10 EXTI_FTSR1_FT10_Msk /*!< Falling trigger configuration for input line 10 */
  4829. #define EXTI_FTSR1_FT11_Pos (11U)
  4830. #define EXTI_FTSR1_FT11_Msk (0x1UL << EXTI_FTSR1_FT11_Pos) /*!< 0x00000800 */
  4831. #define EXTI_FTSR1_FT11 EXTI_FTSR1_FT11_Msk /*!< Falling trigger configuration for input line 11 */
  4832. #define EXTI_FTSR1_FT12_Pos (12U)
  4833. #define EXTI_FTSR1_FT12_Msk (0x1UL << EXTI_FTSR1_FT12_Pos) /*!< 0x00001000 */
  4834. #define EXTI_FTSR1_FT12 EXTI_FTSR1_FT12_Msk /*!< Falling trigger configuration for input line 12 */
  4835. #define EXTI_FTSR1_FT13_Pos (13U)
  4836. #define EXTI_FTSR1_FT13_Msk (0x1UL << EXTI_FTSR1_FT13_Pos) /*!< 0x00002000 */
  4837. #define EXTI_FTSR1_FT13 EXTI_FTSR1_FT13_Msk /*!< Falling trigger configuration for input line 13 */
  4838. #define EXTI_FTSR1_FT14_Pos (14U)
  4839. #define EXTI_FTSR1_FT14_Msk (0x1UL << EXTI_FTSR1_FT14_Pos) /*!< 0x00004000 */
  4840. #define EXTI_FTSR1_FT14 EXTI_FTSR1_FT14_Msk /*!< Falling trigger configuration for input line 14 */
  4841. #define EXTI_FTSR1_FT15_Pos (15U)
  4842. #define EXTI_FTSR1_FT15_Msk (0x1UL << EXTI_FTSR1_FT15_Pos) /*!< 0x00008000 */
  4843. #define EXTI_FTSR1_FT15 EXTI_FTSR1_FT15_Msk /*!< Falling trigger configuration for input line 15 */
  4844. #define EXTI_FTSR1_FT16_Pos (16U)
  4845. #define EXTI_FTSR1_FT16_Msk (0x1UL << EXTI_FTSR1_FT16_Pos) /*!< 0x00010000 */
  4846. #define EXTI_FTSR1_FT16 EXTI_FTSR1_FT16_Msk /*!< Falling trigger configuration for input line 16 */
  4847. #define EXTI_FTSR1_FT21_Pos (21U)
  4848. #define EXTI_FTSR1_FT21_Msk (0x1UL << EXTI_FTSR1_FT21_Pos) /*!< 0x00200000 */
  4849. #define EXTI_FTSR1_FT21 EXTI_FTSR1_FT21_Msk /*!< Falling trigger configuration for input line 21 */
  4850. #define EXTI_FTSR1_FT22_Pos (22U)
  4851. #define EXTI_FTSR1_FT22_Msk (0x1UL << EXTI_FTSR1_FT22_Pos) /*!< 0x00400000 */
  4852. #define EXTI_FTSR1_FT22 EXTI_FTSR1_FT22_Msk /*!< Falling trigger configuration for input line 22 */
  4853. #define EXTI_FTSR1_FT23_Pos (23U)
  4854. #define EXTI_FTSR1_FT23_Msk (0x1UL << EXTI_FTSR1_FT23_Pos) /*!< 0x00800000 */
  4855. #define EXTI_FTSR1_FT23 EXTI_FTSR1_FT23_Msk /*!< Falling trigger configuration for input line 23 */
  4856. #define EXTI_FTSR1_FT24_Pos (24U)
  4857. #define EXTI_FTSR1_FT24_Msk (0x1UL << EXTI_FTSR1_FT24_Pos) /*!< 0x01000000 */
  4858. #define EXTI_FTSR1_FT24 EXTI_FTSR1_FT24_Msk /*!< Falling trigger configuration for input line 24 */
  4859. #define EXTI_FTSR1_FT25_Pos (25U)
  4860. #define EXTI_FTSR1_FT25_Msk (0x1UL << EXTI_FTSR1_FT25_Pos) /*!< 0x02000000 */
  4861. #define EXTI_FTSR1_FT25 EXTI_FTSR1_FT25_Msk /*!< Falling trigger configuration for input line 25 */
  4862. #define EXTI_FTSR1_FT26_Pos (26U)
  4863. #define EXTI_FTSR1_FT26_Msk (0x1UL << EXTI_FTSR1_FT26_Pos) /*!< 0x04000000 */
  4864. #define EXTI_FTSR1_FT26 EXTI_FTSR1_FT26_Msk /*!< Falling trigger configuration for input line 26 */
  4865. #define EXTI_FTSR1_FT27_Pos (27U)
  4866. #define EXTI_FTSR1_FT27_Msk (0x1UL << EXTI_FTSR1_FT27_Pos) /*!< 0x08000000 */
  4867. #define EXTI_FTSR1_FT27 EXTI_FTSR1_FT27_Msk /*!< Falling trigger configuration for input line 27 */
  4868. #define EXTI_FTSR1_FT28_Pos (28U)
  4869. #define EXTI_FTSR1_FT28_Msk (0x1UL << EXTI_FTSR1_FT28_Pos) /*!< 0x10000000 */
  4870. #define EXTI_FTSR1_FT28 EXTI_FTSR1_FT28_Msk /*!< Falling trigger configuration for input line 28 */
  4871. #define EXTI_FTSR1_FT29_Pos (29U)
  4872. #define EXTI_FTSR1_FT29_Msk (0x1UL << EXTI_FTSR1_FT29_Pos) /*!< 0x20000000 */
  4873. #define EXTI_FTSR1_FT29 EXTI_FTSR1_FT29_Msk /*!< Falling trigger configuration for input line 29 */
  4874. #define EXTI_FTSR1_FT30_Pos (30U)
  4875. #define EXTI_FTSR1_FT30_Msk (0x1UL << EXTI_FTSR1_FT30_Pos) /*!< 0x40000000 */
  4876. #define EXTI_FTSR1_FT30 EXTI_FTSR1_FT30_Msk /*!< Falling trigger configuration for input line 30 */
  4877. #define EXTI_FTSR1_FT31_Pos (31U)
  4878. #define EXTI_FTSR1_FT31_Msk (0x1UL << EXTI_FTSR1_FT31_Pos) /*!< 0x80000000 */
  4879. #define EXTI_FTSR1_FT31 EXTI_FTSR1_FT31_Msk /*!< Falling trigger configuration for input line 31 */
  4880. /******************* Bit definition for EXTI_FTSR2 register ****************/
  4881. #define EXTI_FTSR2_FT32_Pos (0U)
  4882. #define EXTI_FTSR2_FT32_Msk (0x1UL << EXTI_FTSR2_FT32_Pos) /*!< 0x00000001 */
  4883. #define EXTI_FTSR2_FT32 EXTI_FTSR2_FT32_Msk /*!< Falling trigger configuration for input line 32 */
  4884. #define EXTI_FTSR2_FT33_Pos (1U)
  4885. #define EXTI_FTSR2_FT33_Msk (0x1UL << EXTI_FTSR2_FT33_Pos) /*!< 0x00000002 */
  4886. #define EXTI_FTSR2_FT33 EXTI_FTSR2_FT33_Msk /*!< Falling trigger configuration for input line 33 */
  4887. #define EXTI_FTSR2_FT34_Pos (2U)
  4888. #define EXTI_FTSR2_FT34_Msk (0x1UL << EXTI_FTSR2_FT34_Pos) /*!< 0x00000004 */
  4889. #define EXTI_FTSR2_FT34 EXTI_FTSR2_FT34_Msk /*!< Falling trigger configuration for input line 34 */
  4890. #define EXTI_FTSR2_FT35_Pos (3U)
  4891. #define EXTI_FTSR2_FT35_Msk (0x1UL << EXTI_FTSR2_FT35_Pos) /*!< 0x00000008 */
  4892. #define EXTI_FTSR2_FT35 EXTI_FTSR2_FT35_Msk /*!< Falling trigger configuration for input line 35 */
  4893. #define EXTI_FTSR2_FT36_Pos (4U)
  4894. #define EXTI_FTSR2_FT36_Msk (0x1UL << EXTI_FTSR2_FT36_Pos) /*!< 0x00000010 */
  4895. #define EXTI_FTSR2_FT36 EXTI_FTSR2_FT36_Msk /*!< Falling trigger configuration for input line 36 */
  4896. #define EXTI_FTSR2_FT37_Pos (5U)
  4897. #define EXTI_FTSR2_FT37_Msk (0x1UL << EXTI_FTSR2_FT37_Pos) /*!< 0x00000020 */
  4898. #define EXTI_FTSR2_FT37 EXTI_FTSR2_FT37_Msk /*!< Falling trigger configuration for input line 37 */
  4899. #define EXTI_FTSR2_FT38_Pos (6U)
  4900. #define EXTI_FTSR2_FT38_Msk (0x1UL << EXTI_FTSR2_FT38_Pos) /*!< 0x00000040 */
  4901. #define EXTI_FTSR2_FT38 EXTI_FTSR2_FT38_Msk /*!< Falling trigger configuration for input line 38 */
  4902. #define EXTI_FTSR2_FT39_Pos (7U)
  4903. #define EXTI_FTSR2_FT39_Msk (0x1UL << EXTI_FTSR2_FT39_Pos) /*!< 0x00000080 */
  4904. #define EXTI_FTSR2_FT39 EXTI_FTSR2_FT39_Msk /*!< Falling trigger configuration for input line 39 */
  4905. #define EXTI_FTSR2_FT40_Pos (8U)
  4906. #define EXTI_FTSR2_FT40_Msk (0x1UL << EXTI_FTSR2_FT40_Pos) /*!< 0x00000100 */
  4907. #define EXTI_FTSR2_FT40 EXTI_FTSR2_FT40_Msk /*!< Falling trigger configuration for input line 40 */
  4908. #define EXTI_FTSR2_FT41_Pos (9U)
  4909. #define EXTI_FTSR2_FT41_Msk (0x1UL << EXTI_FTSR2_FT41_Pos) /*!< 0x00000200 */
  4910. #define EXTI_FTSR2_FT41 EXTI_FTSR2_FT41_Msk /*!< Falling trigger configuration for input line 41 */
  4911. #define EXTI_FTSR2_FT42_Pos (10U)
  4912. #define EXTI_FTSR2_FT42_Msk (0x1UL << EXTI_FTSR2_FT42_Pos) /*!< 0x00000400 */
  4913. #define EXTI_FTSR2_FT42 EXTI_FTSR2_FT42_Msk /*!< Falling trigger configuration for input line 42 */
  4914. /******************* Bit definition for EXTI_SWIER1 register ***************/
  4915. #define EXTI_SWIER1_SWI0_Pos (0U)
  4916. #define EXTI_SWIER1_SWI0_Msk (0x1UL << EXTI_SWIER1_SWI0_Pos) /*!< 0x00000001 */
  4917. #define EXTI_SWIER1_SWI0 EXTI_SWIER1_SWI0_Msk /*!< Software Interrupt on line 0 */
  4918. #define EXTI_SWIER1_SWI1_Pos (1U)
  4919. #define EXTI_SWIER1_SWI1_Msk (0x1UL << EXTI_SWIER1_SWI1_Pos) /*!< 0x00000002 */
  4920. #define EXTI_SWIER1_SWI1 EXTI_SWIER1_SWI1_Msk /*!< Software Interrupt on line 1 */
  4921. #define EXTI_SWIER1_SWI2_Pos (2U)
  4922. #define EXTI_SWIER1_SWI2_Msk (0x1UL << EXTI_SWIER1_SWI2_Pos) /*!< 0x00000004 */
  4923. #define EXTI_SWIER1_SWI2 EXTI_SWIER1_SWI2_Msk /*!< Software Interrupt on line 2 */
  4924. #define EXTI_SWIER1_SWI3_Pos (3U)
  4925. #define EXTI_SWIER1_SWI3_Msk (0x1UL << EXTI_SWIER1_SWI3_Pos) /*!< 0x00000008 */
  4926. #define EXTI_SWIER1_SWI3 EXTI_SWIER1_SWI3_Msk /*!< Software Interrupt on line 3 */
  4927. #define EXTI_SWIER1_SWI4_Pos (4U)
  4928. #define EXTI_SWIER1_SWI4_Msk (0x1UL << EXTI_SWIER1_SWI4_Pos) /*!< 0x00000010 */
  4929. #define EXTI_SWIER1_SWI4 EXTI_SWIER1_SWI4_Msk /*!< Software Interrupt on line 4 */
  4930. #define EXTI_SWIER1_SWI5_Pos (5U)
  4931. #define EXTI_SWIER1_SWI5_Msk (0x1UL << EXTI_SWIER1_SWI5_Pos) /*!< 0x00000020 */
  4932. #define EXTI_SWIER1_SWI5 EXTI_SWIER1_SWI5_Msk /*!< Software Interrupt on line 5 */
  4933. #define EXTI_SWIER1_SWI6_Pos (6U)
  4934. #define EXTI_SWIER1_SWI6_Msk (0x1UL << EXTI_SWIER1_SWI6_Pos) /*!< 0x00000040 */
  4935. #define EXTI_SWIER1_SWI6 EXTI_SWIER1_SWI6_Msk /*!< Software Interrupt on line 6 */
  4936. #define EXTI_SWIER1_SWI7_Pos (7U)
  4937. #define EXTI_SWIER1_SWI7_Msk (0x1UL << EXTI_SWIER1_SWI7_Pos) /*!< 0x00000080 */
  4938. #define EXTI_SWIER1_SWI7 EXTI_SWIER1_SWI7_Msk /*!< Software Interrupt on line 7 */
  4939. #define EXTI_SWIER1_SWI8_Pos (8U)
  4940. #define EXTI_SWIER1_SWI8_Msk (0x1UL << EXTI_SWIER1_SWI8_Pos) /*!< 0x00000100 */
  4941. #define EXTI_SWIER1_SWI8 EXTI_SWIER1_SWI8_Msk /*!< Software Interrupt on line 8 */
  4942. #define EXTI_SWIER1_SWI9_Pos (9U)
  4943. #define EXTI_SWIER1_SWI9_Msk (0x1UL << EXTI_SWIER1_SWI9_Pos) /*!< 0x00000200 */
  4944. #define EXTI_SWIER1_SWI9 EXTI_SWIER1_SWI9_Msk /*!< Software Interrupt on line 9 */
  4945. #define EXTI_SWIER1_SWI10_Pos (10U)
  4946. #define EXTI_SWIER1_SWI10_Msk (0x1UL << EXTI_SWIER1_SWI10_Pos) /*!< 0x00000400 */
  4947. #define EXTI_SWIER1_SWI10 EXTI_SWIER1_SWI10_Msk /*!< Software Interrupt on line 10 */
  4948. #define EXTI_SWIER1_SWI11_Pos (11U)
  4949. #define EXTI_SWIER1_SWI11_Msk (0x1UL << EXTI_SWIER1_SWI11_Pos) /*!< 0x00000800 */
  4950. #define EXTI_SWIER1_SWI11 EXTI_SWIER1_SWI11_Msk /*!< Software Interrupt on line 11 */
  4951. #define EXTI_SWIER1_SWI12_Pos (12U)
  4952. #define EXTI_SWIER1_SWI12_Msk (0x1UL << EXTI_SWIER1_SWI12_Pos) /*!< 0x00001000 */
  4953. #define EXTI_SWIER1_SWI12 EXTI_SWIER1_SWI12_Msk /*!< Software Interrupt on line 12 */
  4954. #define EXTI_SWIER1_SWI13_Pos (13U)
  4955. #define EXTI_SWIER1_SWI13_Msk (0x1UL << EXTI_SWIER1_SWI13_Pos) /*!< 0x00002000 */
  4956. #define EXTI_SWIER1_SWI13 EXTI_SWIER1_SWI13_Msk /*!< Software Interrupt on line 13 */
  4957. #define EXTI_SWIER1_SWI14_Pos (14U)
  4958. #define EXTI_SWIER1_SWI14_Msk (0x1UL << EXTI_SWIER1_SWI14_Pos) /*!< 0x00004000 */
  4959. #define EXTI_SWIER1_SWI14 EXTI_SWIER1_SWI14_Msk /*!< Software Interrupt on line 14 */
  4960. #define EXTI_SWIER1_SWI15_Pos (15U)
  4961. #define EXTI_SWIER1_SWI15_Msk (0x1UL << EXTI_SWIER1_SWI15_Pos) /*!< 0x00008000 */
  4962. #define EXTI_SWIER1_SWI15 EXTI_SWIER1_SWI15_Msk /*!< Software Interrupt on line 15 */
  4963. #define EXTI_SWIER1_SWI16_Pos (16U)
  4964. #define EXTI_SWIER1_SWI16_Msk (0x1UL << EXTI_SWIER1_SWI16_Pos) /*!< 0x00010000 */
  4965. #define EXTI_SWIER1_SWI16 EXTI_SWIER1_SWI16_Msk /*!< Software Interrupt on line 16 */
  4966. #define EXTI_SWIER1_SWI21_Pos (21U)
  4967. #define EXTI_SWIER1_SWI21_Msk (0x1UL << EXTI_SWIER1_SWI21_Pos) /*!< 0x00200000 */
  4968. #define EXTI_SWIER1_SWI21 EXTI_SWIER1_SWI21_Msk /*!< Software Interrupt on line 21 */
  4969. #define EXTI_SWIER1_SWI22_Pos (22U)
  4970. #define EXTI_SWIER1_SWI22_Msk (0x1UL << EXTI_SWIER1_SWI22_Pos) /*!< 0x00400000 */
  4971. #define EXTI_SWIER1_SWI22 EXTI_SWIER1_SWI22_Msk /*!< Software Interrupt on line 22 */
  4972. #define EXTI_SWIER1_SWI23_Pos (23U)
  4973. #define EXTI_SWIER1_SWI23_Msk (0x1UL << EXTI_SWIER1_SWI23_Pos) /*!< 0x00800000 */
  4974. #define EXTI_SWIER1_SWI23 EXTI_SWIER1_SWI23_Msk /*!< Software Interrupt on line 23 */
  4975. #define EXTI_SWIER1_SWI24_Pos (24U)
  4976. #define EXTI_SWIER1_SWI24_Msk (0x1UL << EXTI_SWIER1_SWI24_Pos) /*!< 0x01000000 */
  4977. #define EXTI_SWIER1_SWI24 EXTI_SWIER1_SWI24_Msk /*!< Software Interrupt on line 24 */
  4978. #define EXTI_SWIER1_SWI25_Pos (25U)
  4979. #define EXTI_SWIER1_SWI25_Msk (0x1UL << EXTI_SWIER1_SWI25_Pos) /*!< 0x02000000 */
  4980. #define EXTI_SWIER1_SWI25 EXTI_SWIER1_SWI25_Msk /*!< Software Interrupt on line 25 */
  4981. #define EXTI_SWIER1_SWI26_Pos (26U)
  4982. #define EXTI_SWIER1_SWI26_Msk (0x1UL << EXTI_SWIER1_SWI26_Pos) /*!< 0x04000000 */
  4983. #define EXTI_SWIER1_SWI26 EXTI_SWIER1_SWI26_Msk /*!< Software Interrupt on line 26 */
  4984. #define EXTI_SWIER1_SWI27_Pos (27U)
  4985. #define EXTI_SWIER1_SWI27_Msk (0x1UL << EXTI_SWIER1_SWI27_Pos) /*!< 0x08000000 */
  4986. #define EXTI_SWIER1_SWI27 EXTI_SWIER1_SWI27_Msk /*!< Software Interrupt on line 27 */
  4987. #define EXTI_SWIER1_SWI28_Pos (28U)
  4988. #define EXTI_SWIER1_SWI28_Msk (0x1UL << EXTI_SWIER1_SWI28_Pos) /*!< 0x10000000 */
  4989. #define EXTI_SWIER1_SWI28 EXTI_SWIER1_SWI28_Msk /*!< Software Interrupt on line 28 */
  4990. #define EXTI_SWIER1_SWI29_Pos (29U)
  4991. #define EXTI_SWIER1_SWI29_Msk (0x1UL << EXTI_SWIER1_SWI29_Pos) /*!< 0x20000000 */
  4992. #define EXTI_SWIER1_SWI29 EXTI_SWIER1_SWI29_Msk /*!< Software Interrupt on line 29 */
  4993. #define EXTI_SWIER1_SWI30_Pos (30U)
  4994. #define EXTI_SWIER1_SWI30_Msk (0x1UL << EXTI_SWIER1_SWI30_Pos) /*!< 0x40000000 */
  4995. #define EXTI_SWIER1_SWI30 EXTI_SWIER1_SWI30_Msk /*!< Software Interrupt on line 30 */
  4996. #define EXTI_SWIER1_SWI31_Pos (31U)
  4997. #define EXTI_SWIER1_SWI31_Msk (0x1UL << EXTI_SWIER1_SWI31_Pos) /*!< 0x80000000 */
  4998. #define EXTI_SWIER1_SWI31 EXTI_SWIER1_SWI31_Msk /*!< Software Interrupt on line 31 */
  4999. /******************* Bit definition for EXTI_SWIER2 register ***************/
  5000. #define EXTI_SWIER2_SWI32_Pos (0U)
  5001. #define EXTI_SWIER2_SWI32_Msk (0x1UL << EXTI_SWIER2_SWI32_Pos) /*!< 0x00000001 */
  5002. #define EXTI_SWIER2_SWI32 EXTI_SWIER2_SWI32_Msk /*!< Software Interrupt on line 32 */
  5003. #define EXTI_SWIER2_SWI33_Pos (1U)
  5004. #define EXTI_SWIER2_SWI33_Msk (0x1UL << EXTI_SWIER2_SWI33_Pos) /*!< 0x00000002 */
  5005. #define EXTI_SWIER2_SWI33 EXTI_SWIER2_SWI33_Msk /*!< Software Interrupt on line 33 */
  5006. #define EXTI_SWIER2_SWI34_Pos (2U)
  5007. #define EXTI_SWIER2_SWI34_Msk (0x1UL << EXTI_SWIER2_SWI34_Pos) /*!< 0x00000004 */
  5008. #define EXTI_SWIER2_SWI34 EXTI_SWIER2_SWI34_Msk /*!< Software Interrupt on line 34 */
  5009. #define EXTI_SWIER2_SWI35_Pos (3U)
  5010. #define EXTI_SWIER2_SWI35_Msk (0x1UL << EXTI_SWIER2_SWI35_Pos) /*!< 0x00000008 */
  5011. #define EXTI_SWIER2_SWI35 EXTI_SWIER2_SWI35_Msk /*!< Software Interrupt on line 35 */
  5012. #define EXTI_SWIER2_SWI36_Pos (4U)
  5013. #define EXTI_SWIER2_SWI36_Msk (0x1UL << EXTI_SWIER2_SWI36_Pos) /*!< 0x00000010 */
  5014. #define EXTI_SWIER2_SWI36 EXTI_SWIER2_SWI36_Msk /*!< Software Interrupt on line 36 */
  5015. #define EXTI_SWIER2_SWI37_Pos (5U)
  5016. #define EXTI_SWIER2_SWI37_Msk (0x1UL << EXTI_SWIER2_SWI37_Pos) /*!< 0x00000020 */
  5017. #define EXTI_SWIER2_SWI37 EXTI_SWIER2_SWI37_Msk /*!< Software Interrupt on line 37 */
  5018. #define EXTI_SWIER2_SWI38_Pos (6U)
  5019. #define EXTI_SWIER2_SWI38_Msk (0x1UL << EXTI_SWIER2_SWI38_Pos) /*!< 0x00000040 */
  5020. #define EXTI_SWIER2_SWI38 EXTI_SWIER2_SWI38_Msk /*!< Software Interrupt on line 38 */
  5021. #define EXTI_SWIER2_SWI39_Pos (7U)
  5022. #define EXTI_SWIER2_SWI39_Msk (0x1UL << EXTI_SWIER2_SWI39_Pos) /*!< 0x00000080 */
  5023. #define EXTI_SWIER2_SWI39 EXTI_SWIER2_SWI39_Msk /*!< Software Interrupt on line 39 */
  5024. #define EXTI_SWIER2_SWI40_Pos (8U)
  5025. #define EXTI_SWIER2_SWI40_Msk (0x1UL << EXTI_SWIER2_SWI40_Pos) /*!< 0x00000100 */
  5026. #define EXTI_SWIER2_SWI40 EXTI_SWIER2_SWI40_Msk /*!< Software Interrupt on line 40 */
  5027. #define EXTI_SWIER2_SWI41_Pos (9U)
  5028. #define EXTI_SWIER2_SWI41_Msk (0x1UL << EXTI_SWIER2_SWI41_Pos) /*!< 0x00000200 */
  5029. #define EXTI_SWIER2_SWI41 EXTI_SWIER2_SWI41_Msk /*!< Software Interrupt on line 41 */
  5030. #define EXTI_SWIER2_SWI42_Pos (10U)
  5031. #define EXTI_SWIER2_SWI42_Msk (0x1UL << EXTI_SWIER2_SWI42_Pos) /*!< 0x00000400 */
  5032. #define EXTI_SWIER2_SWI42 EXTI_SWIER2_SWI42_Msk /*!< Software Interrupt on line 42 */
  5033. /******************* Bit definition for EXTI_RPR1 register *****************/
  5034. #define EXTI_RPR1_RPIF0_Pos (0U)
  5035. #define EXTI_RPR1_RPIF0_Msk (0x1UL << EXTI_RPR1_RPIF0_Pos) /*!< 0x00000001 */
  5036. #define EXTI_RPR1_RPIF0 EXTI_RPR1_RPIF0_Msk /*!< Rising Pending Interrupt Flag on line 0 */
  5037. #define EXTI_RPR1_RPIF1_Pos (1U)
  5038. #define EXTI_RPR1_RPIF1_Msk (0x1UL << EXTI_RPR1_RPIF1_Pos) /*!< 0x00000002 */
  5039. #define EXTI_RPR1_RPIF1 EXTI_RPR1_RPIF1_Msk /*!< Rising Pending Interrupt Flag on line 1 */
  5040. #define EXTI_RPR1_RPIF2_Pos (2U)
  5041. #define EXTI_RPR1_RPIF2_Msk (0x1UL << EXTI_RPR1_RPIF2_Pos) /*!< 0x00000004 */
  5042. #define EXTI_RPR1_RPIF2 EXTI_RPR1_RPIF2_Msk /*!< Rising Pending Interrupt Flag on line 2 */
  5043. #define EXTI_RPR1_RPIF3_Pos (3U)
  5044. #define EXTI_RPR1_RPIF3_Msk (0x1UL << EXTI_RPR1_RPIF3_Pos) /*!< 0x00000008 */
  5045. #define EXTI_RPR1_RPIF3 EXTI_RPR1_RPIF3_Msk /*!< Rising Pending Interrupt Flag on line 3 */
  5046. #define EXTI_RPR1_RPIF4_Pos (4U)
  5047. #define EXTI_RPR1_RPIF4_Msk (0x1UL << EXTI_RPR1_RPIF4_Pos) /*!< 0x00000010 */
  5048. #define EXTI_RPR1_RPIF4 EXTI_RPR1_RPIF4_Msk /*!< Rising Pending Interrupt Flag on line 4 */
  5049. #define EXTI_RPR1_RPIF5_Pos (5U)
  5050. #define EXTI_RPR1_RPIF5_Msk (0x1UL << EXTI_RPR1_RPIF5_Pos) /*!< 0x00000020 */
  5051. #define EXTI_RPR1_RPIF5 EXTI_RPR1_RPIF5_Msk /*!< Rising Pending Interrupt Flag on line 5 */
  5052. #define EXTI_RPR1_RPIF6_Pos (6U)
  5053. #define EXTI_RPR1_RPIF6_Msk (0x1UL << EXTI_RPR1_RPIF6_Pos) /*!< 0x00000040 */
  5054. #define EXTI_RPR1_RPIF6 EXTI_RPR1_RPIF6_Msk /*!< Rising Pending Interrupt Flag on line 6 */
  5055. #define EXTI_RPR1_RPIF7_Pos (7U)
  5056. #define EXTI_RPR1_RPIF7_Msk (0x1UL << EXTI_RPR1_RPIF7_Pos) /*!< 0x00000080 */
  5057. #define EXTI_RPR1_RPIF7 EXTI_RPR1_RPIF7_Msk /*!< Rising Pending Interrupt Flag on line 7 */
  5058. #define EXTI_RPR1_RPIF8_Pos (8U)
  5059. #define EXTI_RPR1_RPIF8_Msk (0x1UL << EXTI_RPR1_RPIF8_Pos) /*!< 0x00000100 */
  5060. #define EXTI_RPR1_RPIF8 EXTI_RPR1_RPIF8_Msk /*!< Rising Pending Interrupt Flag on line 8 */
  5061. #define EXTI_RPR1_RPIF9_Pos (9U)
  5062. #define EXTI_RPR1_RPIF9_Msk (0x1UL << EXTI_RPR1_RPIF9_Pos) /*!< 0x00000200 */
  5063. #define EXTI_RPR1_RPIF9 EXTI_RPR1_RPIF9_Msk /*!< Rising Pending Interrupt Flag on line 9 */
  5064. #define EXTI_RPR1_RPIF10_Pos (10U)
  5065. #define EXTI_RPR1_RPIF10_Msk (0x1UL << EXTI_RPR1_RPIF10_Pos) /*!< 0x00000400 */
  5066. #define EXTI_RPR1_RPIF10 EXTI_RPR1_RPIF10_Msk /*!< Rising Pending Interrupt Flag on line 10 */
  5067. #define EXTI_RPR1_RPIF11_Pos (11U)
  5068. #define EXTI_RPR1_RPIF11_Msk (0x1UL << EXTI_RPR1_RPIF11_Pos) /*!< 0x00000800 */
  5069. #define EXTI_RPR1_RPIF11 EXTI_RPR1_RPIF11_Msk /*!< Rising Pending Interrupt Flag on line 11 */
  5070. #define EXTI_RPR1_RPIF12_Pos (12U)
  5071. #define EXTI_RPR1_RPIF12_Msk (0x1UL << EXTI_RPR1_RPIF12_Pos) /*!< 0x00001000 */
  5072. #define EXTI_RPR1_RPIF12 EXTI_RPR1_RPIF12_Msk /*!< Rising Pending Interrupt Flag on line 12 */
  5073. #define EXTI_RPR1_RPIF13_Pos (13U)
  5074. #define EXTI_RPR1_RPIF13_Msk (0x1UL << EXTI_RPR1_RPIF13_Pos) /*!< 0x00002000 */
  5075. #define EXTI_RPR1_RPIF13 EXTI_RPR1_RPIF13_Msk /*!< Rising Pending Interrupt Flag on line 13 */
  5076. #define EXTI_RPR1_RPIF14_Pos (14U)
  5077. #define EXTI_RPR1_RPIF14_Msk (0x1UL << EXTI_RPR1_RPIF14_Pos) /*!< 0x00004000 */
  5078. #define EXTI_RPR1_RPIF14 EXTI_RPR1_RPIF14_Msk /*!< Rising Pending Interrupt Flag on line 14 */
  5079. #define EXTI_RPR1_RPIF15_Pos (15U)
  5080. #define EXTI_RPR1_RPIF15_Msk (0x1UL << EXTI_RPR1_RPIF15_Pos) /*!< 0x00008000 */
  5081. #define EXTI_RPR1_RPIF15 EXTI_RPR1_RPIF15_Msk /*!< Rising Pending Interrupt Flag on line 15 */
  5082. #define EXTI_RPR1_RPIF16_Pos (16U)
  5083. #define EXTI_RPR1_RPIF16_Msk (0x1UL << EXTI_RPR1_RPIF16_Pos) /*!< 0x00010000 */
  5084. #define EXTI_RPR1_RPIF16 EXTI_RPR1_RPIF16_Msk /*!< Rising Pending Interrupt Flag on line 16 */
  5085. #define EXTI_RPR1_RPIF21_Pos (21U)
  5086. #define EXTI_RPR1_RPIF21_Msk (0x1UL << EXTI_RPR1_RPIF21_Pos) /*!< 0x00200000 */
  5087. #define EXTI_RPR1_RPIF21 EXTI_RPR1_RPIF21_Msk /*!< Rising Pending Interrupt Flag on line 21 */
  5088. #define EXTI_RPR1_RPIF22_Pos (22U)
  5089. #define EXTI_RPR1_RPIF22_Msk (0x1UL << EXTI_RPR1_RPIF22_Pos) /*!< 0x00400000 */
  5090. #define EXTI_RPR1_RPIF22 EXTI_RPR1_RPIF22_Msk /*!< Rising Pending Interrupt Flag on line 22 */
  5091. #define EXTI_RPR1_RPIF23_Pos (23U)
  5092. #define EXTI_RPR1_RPIF23_Msk (0x1UL << EXTI_RPR1_RPIF23_Pos) /*!< 0x00800000 */
  5093. #define EXTI_RPR1_RPIF23 EXTI_RPR1_RPIF23_Msk /*!< Rising Pending Interrupt Flag on line 23 */
  5094. #define EXTI_RPR1_RPIF24_Pos (24U)
  5095. #define EXTI_RPR1_RPIF24_Msk (0x1UL << EXTI_RPR1_RPIF24_Pos) /*!< 0x01000000 */
  5096. #define EXTI_RPR1_RPIF24 EXTI_RPR1_RPIF24_Msk /*!< Rising Pending Interrupt Flag on line 24 */
  5097. #define EXTI_RPR1_RPIF25_Pos (25U)
  5098. #define EXTI_RPR1_RPIF25_Msk (0x1UL << EXTI_RPR1_RPIF25_Pos) /*!< 0x02000000 */
  5099. #define EXTI_RPR1_RPIF25 EXTI_RPR1_RPIF25_Msk /*!< Rising Pending Interrupt Flag on line 25 */
  5100. #define EXTI_RPR1_RPIF26_Pos (26U)
  5101. #define EXTI_RPR1_RPIF26_Msk (0x1UL << EXTI_RPR1_RPIF26_Pos) /*!< 0x04000000 */
  5102. #define EXTI_RPR1_RPIF26 EXTI_RPR1_RPIF26_Msk /*!< Rising Pending Interrupt Flag on line 26 */
  5103. #define EXTI_RPR1_RPIF27_Pos (27U)
  5104. #define EXTI_RPR1_RPIF27_Msk (0x1UL << EXTI_RPR1_RPIF27_Pos) /*!< 0x08000000 */
  5105. #define EXTI_RPR1_RPIF27 EXTI_RPR1_RPIF27_Msk /*!< Rising Pending Interrupt Flag on line 27 */
  5106. #define EXTI_RPR1_RPIF28_Pos (28U)
  5107. #define EXTI_RPR1_RPIF28_Msk (0x1UL << EXTI_RPR1_RPIF28_Pos) /*!< 0x10000000 */
  5108. #define EXTI_RPR1_RPIF28 EXTI_RPR1_RPIF28_Msk /*!< Rising Pending Interrupt Flag on line 28 */
  5109. #define EXTI_RPR1_RPIF29_Pos (29U)
  5110. #define EXTI_RPR1_RPIF29_Msk (0x1UL << EXTI_RPR1_RPIF29_Pos) /*!< 0x20000000 */
  5111. #define EXTI_RPR1_RPIF29 EXTI_RPR1_RPIF29_Msk /*!< Rising Pending Interrupt Flag on line 29 */
  5112. #define EXTI_RPR1_RPIF30_Pos (30U)
  5113. #define EXTI_RPR1_RPIF30_Msk (0x1UL << EXTI_RPR1_RPIF30_Pos) /*!< 0x40000000 */
  5114. #define EXTI_RPR1_RPIF30 EXTI_RPR1_RPIF30_Msk /*!< Rising Pending Interrupt Flag on line 30 */
  5115. #define EXTI_RPR1_RPIF31_Pos (31U)
  5116. #define EXTI_RPR1_RPIF31_Msk (0x1UL << EXTI_RPR1_RPIF31_Pos) /*!< 0x80000000 */
  5117. #define EXTI_RPR1_RPIF31 EXTI_RPR1_RPIF31_Msk /*!< Rising Pending Interrupt Flag on line 31 */
  5118. /******************* Bit definition for EXTI_RPR2 register *****************/
  5119. #define EXTI_RPR2_RPIF32_Pos (0U)
  5120. #define EXTI_RPR2_RPIF32_Msk (0x1UL << EXTI_RPR2_RPIF32_Pos) /*!< 0x00000001 */
  5121. #define EXTI_RPR2_RPIF32 EXTI_RPR2_RPIF32_Msk /*!< Rising Pending Interrupt Flag on line 32 */
  5122. #define EXTI_RPR2_RPIF33_Pos (1U)
  5123. #define EXTI_RPR2_RPIF33_Msk (0x1UL << EXTI_RPR2_RPIF33_Pos) /*!< 0x00000002 */
  5124. #define EXTI_RPR2_RPIF33 EXTI_RPR2_RPIF33_Msk /*!< Rising Pending Interrupt Flag on line 33 */
  5125. #define EXTI_RPR2_RPIF34_Pos (2U)
  5126. #define EXTI_RPR2_RPIF34_Msk (0x1UL << EXTI_RPR2_RPIF34_Pos) /*!< 0x00000004 */
  5127. #define EXTI_RPR2_RPIF34 EXTI_RPR2_RPIF34_Msk /*!< Rising Pending Interrupt Flag on line 34 */
  5128. #define EXTI_RPR2_RPIF35_Pos (3U)
  5129. #define EXTI_RPR2_RPIF35_Msk (0x1UL << EXTI_RPR2_RPIF35_Pos) /*!< 0x00000008 */
  5130. #define EXTI_RPR2_RPIF35 EXTI_RPR2_RPIF35_Msk /*!< Rising Pending Interrupt Flag on line 35 */
  5131. #define EXTI_RPR2_RPIF36_Pos (4U)
  5132. #define EXTI_RPR2_RPIF36_Msk (0x1UL << EXTI_RPR2_RPIF36_Pos) /*!< 0x00000010 */
  5133. #define EXTI_RPR2_RPIF36 EXTI_RPR2_RPIF36_Msk /*!< Rising Pending Interrupt Flag on line 36 */
  5134. #define EXTI_RPR2_RPIF37_Pos (5U)
  5135. #define EXTI_RPR2_RPIF37_Msk (0x1UL << EXTI_RPR2_RPIF37_Pos) /*!< 0x00000020 */
  5136. #define EXTI_RPR2_RPIF37 EXTI_RPR2_RPIF37_Msk /*!< Rising Pending Interrupt Flag on line 37 */
  5137. #define EXTI_RPR2_RPIF38_Pos (6U)
  5138. #define EXTI_RPR2_RPIF38_Msk (0x1UL << EXTI_RPR2_RPIF38_Pos) /*!< 0x00000040 */
  5139. #define EXTI_RPR2_RPIF38 EXTI_RPR2_RPIF38_Msk /*!< Rising Pending Interrupt Flag on line 38 */
  5140. #define EXTI_RPR2_RPIF39_Pos (7U)
  5141. #define EXTI_RPR2_RPIF39_Msk (0x1UL << EXTI_RPR2_RPIF39_Pos) /*!< 0x00000080 */
  5142. #define EXTI_RPR2_RPIF39 EXTI_RPR2_RPIF39_Msk /*!< Rising Pending Interrupt Flag on line 39 */
  5143. #define EXTI_RPR2_RPIF40_Pos (8U)
  5144. #define EXTI_RPR2_RPIF40_Msk (0x1UL << EXTI_RPR2_RPIF40_Pos) /*!< 0x00000100 */
  5145. #define EXTI_RPR2_RPIF40 EXTI_RPR2_RPIF40_Msk /*!< Rising Pending Interrupt Flag on line 40 */
  5146. #define EXTI_RPR2_RPIF41_Pos (9U)
  5147. #define EXTI_RPR2_RPIF41_Msk (0x1UL << EXTI_RPR2_RPIF41_Pos) /*!< 0x00000200 */
  5148. #define EXTI_RPR2_RPIF41 EXTI_RPR2_RPIF41_Msk /*!< Rising Pending Interrupt Flag on line 41 */
  5149. #define EXTI_RPR2_RPIF42_Pos (10U)
  5150. #define EXTI_RPR2_RPIF42_Msk (0x1UL << EXTI_RPR2_RPIF42_Pos) /*!< 0x00000400 */
  5151. #define EXTI_RPR2_RPIF42 EXTI_RPR2_RPIF42_Msk /*!< Rising Pending Interrupt Flag on line 42 */
  5152. /******************* Bit definition for EXTI_FPR1 register *****************/
  5153. #define EXTI_FPR1_FPIF0_Pos (0U)
  5154. #define EXTI_FPR1_FPIF0_Msk (0x1UL << EXTI_FPR1_FPIF0_Pos) /*!< 0x00000001 */
  5155. #define EXTI_FPR1_FPIF0 EXTI_FPR1_FPIF0_Msk /*!< Falling Pending Interrupt Flag on line 0 */
  5156. #define EXTI_FPR1_FPIF1_Pos (1U)
  5157. #define EXTI_FPR1_FPIF1_Msk (0x1UL << EXTI_FPR1_FPIF1_Pos) /*!< 0x00000002 */
  5158. #define EXTI_FPR1_FPIF1 EXTI_FPR1_FPIF1_Msk /*!< Falling Pending Interrupt Flag on line 1 */
  5159. #define EXTI_FPR1_FPIF2_Pos (2U)
  5160. #define EXTI_FPR1_FPIF2_Msk (0x1UL << EXTI_FPR1_FPIF2_Pos) /*!< 0x00000004 */
  5161. #define EXTI_FPR1_FPIF2 EXTI_FPR1_FPIF2_Msk /*!< Falling Pending Interrupt Flag on line 2 */
  5162. #define EXTI_FPR1_FPIF3_Pos (3U)
  5163. #define EXTI_FPR1_FPIF3_Msk (0x1UL << EXTI_FPR1_FPIF3_Pos) /*!< 0x00000008 */
  5164. #define EXTI_FPR1_FPIF3 EXTI_FPR1_FPIF3_Msk /*!< Falling Pending Interrupt Flag on line 3 */
  5165. #define EXTI_FPR1_FPIF4_Pos (4U)
  5166. #define EXTI_FPR1_FPIF4_Msk (0x1UL << EXTI_FPR1_FPIF4_Pos) /*!< 0x00000010 */
  5167. #define EXTI_FPR1_FPIF4 EXTI_FPR1_FPIF4_Msk /*!< Falling Pending Interrupt Flag on line 4 */
  5168. #define EXTI_FPR1_FPIF5_Pos (5U)
  5169. #define EXTI_FPR1_FPIF5_Msk (0x1UL << EXTI_FPR1_FPIF5_Pos) /*!< 0x00000020 */
  5170. #define EXTI_FPR1_FPIF5 EXTI_FPR1_FPIF5_Msk /*!< Falling Pending Interrupt Flag on line 5 */
  5171. #define EXTI_FPR1_FPIF6_Pos (6U)
  5172. #define EXTI_FPR1_FPIF6_Msk (0x1UL << EXTI_FPR1_FPIF6_Pos) /*!< 0x00000040 */
  5173. #define EXTI_FPR1_FPIF6 EXTI_FPR1_FPIF6_Msk /*!< Falling Pending Interrupt Flag on line 6 */
  5174. #define EXTI_FPR1_FPIF7_Pos (7U)
  5175. #define EXTI_FPR1_FPIF7_Msk (0x1UL << EXTI_FPR1_FPIF7_Pos) /*!< 0x00000080 */
  5176. #define EXTI_FPR1_FPIF7 EXTI_FPR1_FPIF7_Msk /*!< Falling Pending Interrupt Flag on line 7 */
  5177. #define EXTI_FPR1_FPIF8_Pos (8U)
  5178. #define EXTI_FPR1_FPIF8_Msk (0x1UL << EXTI_FPR1_FPIF8_Pos) /*!< 0x00000100 */
  5179. #define EXTI_FPR1_FPIF8 EXTI_FPR1_FPIF8_Msk /*!< Falling Pending Interrupt Flag on line 8 */
  5180. #define EXTI_FPR1_FPIF9_Pos (9U)
  5181. #define EXTI_FPR1_FPIF9_Msk (0x1UL << EXTI_FPR1_FPIF9_Pos) /*!< 0x00000200 */
  5182. #define EXTI_FPR1_FPIF9 EXTI_FPR1_FPIF9_Msk /*!< Falling Pending Interrupt Flag on line 9 */
  5183. #define EXTI_FPR1_FPIF10_Pos (10U)
  5184. #define EXTI_FPR1_FPIF10_Msk (0x1UL << EXTI_FPR1_FPIF10_Pos) /*!< 0x00000400 */
  5185. #define EXTI_FPR1_FPIF10 EXTI_FPR1_FPIF10_Msk /*!< Falling Pending Interrupt Flag on line 10 */
  5186. #define EXTI_FPR1_FPIF11_Pos (11U)
  5187. #define EXTI_FPR1_FPIF11_Msk (0x1UL << EXTI_FPR1_FPIF11_Pos) /*!< 0x00000800 */
  5188. #define EXTI_FPR1_FPIF11 EXTI_FPR1_FPIF11_Msk /*!< Falling Pending Interrupt Flag on line 11 */
  5189. #define EXTI_FPR1_FPIF12_Pos (12U)
  5190. #define EXTI_FPR1_FPIF12_Msk (0x1UL << EXTI_FPR1_FPIF12_Pos) /*!< 0x00001000 */
  5191. #define EXTI_FPR1_FPIF12 EXTI_FPR1_FPIF12_Msk /*!< Falling Pending Interrupt Flag on line 12 */
  5192. #define EXTI_FPR1_FPIF13_Pos (13U)
  5193. #define EXTI_FPR1_FPIF13_Msk (0x1UL << EXTI_FPR1_FPIF13_Pos) /*!< 0x00002000 */
  5194. #define EXTI_FPR1_FPIF13 EXTI_FPR1_FPIF13_Msk /*!< Falling Pending Interrupt Flag on line 13 */
  5195. #define EXTI_FPR1_FPIF14_Pos (14U)
  5196. #define EXTI_FPR1_FPIF14_Msk (0x1UL << EXTI_FPR1_FPIF14_Pos) /*!< 0x00004000 */
  5197. #define EXTI_FPR1_FPIF14 EXTI_FPR1_FPIF14_Msk /*!< Falling Pending Interrupt Flag on line 14 */
  5198. #define EXTI_FPR1_FPIF15_Pos (15U)
  5199. #define EXTI_FPR1_FPIF15_Msk (0x1UL << EXTI_FPR1_FPIF15_Pos) /*!< 0x00008000 */
  5200. #define EXTI_FPR1_FPIF15 EXTI_FPR1_FPIF15_Msk /*!< Falling Pending Interrupt Flag on line 15 */
  5201. #define EXTI_FPR1_FPIF16_Pos (16U)
  5202. #define EXTI_FPR1_FPIF16_Msk (0x1UL << EXTI_FPR1_FPIF16_Pos) /*!< 0x00010000 */
  5203. #define EXTI_FPR1_FPIF16 EXTI_FPR1_FPIF16_Msk /*!< Falling Pending Interrupt Flag on line 16 */
  5204. #define EXTI_FPR1_FPIF21_Pos (21U)
  5205. #define EXTI_FPR1_FPIF21_Msk (0x1UL << EXTI_FPR1_FPIF21_Pos) /*!< 0x00200000 */
  5206. #define EXTI_FPR1_FPIF21 EXTI_FPR1_FPIF21_Msk /*!< Falling Pending Interrupt Flag on line 21 */
  5207. #define EXTI_FPR1_FPIF22_Pos (22U)
  5208. #define EXTI_FPR1_FPIF22_Msk (0x1UL << EXTI_FPR1_FPIF22_Pos) /*!< 0x00400000 */
  5209. #define EXTI_FPR1_FPIF22 EXTI_FPR1_FPIF22_Msk /*!< Falling Pending Interrupt Flag on line 22 */
  5210. #define EXTI_FPR1_FPIF23_Pos (23U)
  5211. #define EXTI_FPR1_FPIF23_Msk (0x1UL << EXTI_FPR1_FPIF23_Pos) /*!< 0x00800000 */
  5212. #define EXTI_FPR1_FPIF23 EXTI_FPR1_FPIF23_Msk /*!< Falling Pending Interrupt Flag on line 23 */
  5213. #define EXTI_FPR1_FPIF24_Pos (24U)
  5214. #define EXTI_FPR1_FPIF24_Msk (0x1UL << EXTI_FPR1_FPIF24_Pos) /*!< 0x01000000 */
  5215. #define EXTI_FPR1_FPIF24 EXTI_FPR1_FPIF24_Msk /*!< Falling Pending Interrupt Flag on line 24 */
  5216. #define EXTI_FPR1_FPIF25_Pos (25U)
  5217. #define EXTI_FPR1_FPIF25_Msk (0x1UL << EXTI_FPR1_FPIF25_Pos) /*!< 0x02000000 */
  5218. #define EXTI_FPR1_FPIF25 EXTI_FPR1_FPIF25_Msk /*!< Falling Pending Interrupt Flag on line 25 */
  5219. #define EXTI_FPR1_FPIF26_Pos (26U)
  5220. #define EXTI_FPR1_FPIF26_Msk (0x1UL << EXTI_FPR1_FPIF26_Pos) /*!< 0x04000000 */
  5221. #define EXTI_FPR1_FPIF26 EXTI_FPR1_FPIF26_Msk /*!< Falling Pending Interrupt Flag on line 26 */
  5222. #define EXTI_FPR1_FPIF27_Pos (27U)
  5223. #define EXTI_FPR1_FPIF27_Msk (0x1UL << EXTI_FPR1_FPIF27_Pos) /*!< 0x08000000 */
  5224. #define EXTI_FPR1_FPIF27 EXTI_FPR1_FPIF27_Msk /*!< Falling Pending Interrupt Flag on line 27 */
  5225. #define EXTI_FPR1_FPIF28_Pos (28U)
  5226. #define EXTI_FPR1_FPIF28_Msk (0x1UL << EXTI_FPR1_FPIF28_Pos) /*!< 0x10000000 */
  5227. #define EXTI_FPR1_FPIF28 EXTI_FPR1_FPIF28_Msk /*!< Falling Pending Interrupt Flag on line 28 */
  5228. #define EXTI_FPR1_FPIF29_Pos (29U)
  5229. #define EXTI_FPR1_FPIF29_Msk (0x1UL << EXTI_FPR1_FPIF29_Pos) /*!< 0x20000000 */
  5230. #define EXTI_FPR1_FPIF29 EXTI_FPR1_FPIF29_Msk /*!< Falling Pending Interrupt Flag on line 29 */
  5231. #define EXTI_FPR1_FPIF30_Pos (30U)
  5232. #define EXTI_FPR1_FPIF30_Msk (0x1UL << EXTI_FPR1_FPIF30_Pos) /*!< 0x40000000 */
  5233. #define EXTI_FPR1_FPIF30 EXTI_FPR1_FPIF30_Msk /*!< Falling Pending Interrupt Flag on line 30 */
  5234. #define EXTI_FPR1_FPIF31_Pos (31U)
  5235. #define EXTI_FPR1_FPIF31_Msk (0x1UL << EXTI_FPR1_FPIF31_Pos) /*!< 0x80000000 */
  5236. #define EXTI_FPR1_FPIF31 EXTI_FPR1_FPIF31_Msk /*!< Falling Pending Interrupt Flag on line 31 */
  5237. /******************* Bit definition for EXTI_FPR2 register *****************/
  5238. #define EXTI_FPR2_FPIF32_Pos (0U)
  5239. #define EXTI_FPR2_FPIF32_Msk (0x1UL << EXTI_FPR2_FPIF32_Pos) /*!< 0x00000001 */
  5240. #define EXTI_FPR2_FPIF32 EXTI_FPR2_FPIF32_Msk /*!< Falling Pending Interrupt Flag on line 32 */
  5241. #define EXTI_FPR2_FPIF33_Pos (1U)
  5242. #define EXTI_FPR2_FPIF33_Msk (0x1UL << EXTI_FPR2_FPIF33_Pos) /*!< 0x00000002 */
  5243. #define EXTI_FPR2_FPIF33 EXTI_FPR2_FPIF33_Msk /*!< Falling Pending Interrupt Flag on line 33 */
  5244. #define EXTI_FPR2_FPIF34_Pos (2U)
  5245. #define EXTI_FPR2_FPIF34_Msk (0x1UL << EXTI_FPR2_FPIF34_Pos) /*!< 0x00000004 */
  5246. #define EXTI_FPR2_FPIF34 EXTI_FPR2_FPIF34_Msk /*!< Falling Pending Interrupt Flag on line 34 */
  5247. #define EXTI_FPR2_FPIF35_Pos (3U)
  5248. #define EXTI_FPR2_FPIF35_Msk (0x1UL << EXTI_FPR2_FPIF35_Pos) /*!< 0x00000008 */
  5249. #define EXTI_FPR2_FPIF35 EXTI_FPR2_FPIF35_Msk /*!< Falling Pending Interrupt Flag on line 35 */
  5250. #define EXTI_FPR2_FPIF36_Pos (4U)
  5251. #define EXTI_FPR2_FPIF36_Msk (0x1UL << EXTI_FPR2_FPIF36_Pos) /*!< 0x00000010 */
  5252. #define EXTI_FPR2_FPIF36 EXTI_FPR2_FPIF36_Msk /*!< Falling Pending Interrupt Flag on line 36 */
  5253. #define EXTI_FPR2_FPIF37_Pos (5U)
  5254. #define EXTI_FPR2_FPIF37_Msk (0x1UL << EXTI_FPR2_FPIF37_Pos) /*!< 0x00000020 */
  5255. #define EXTI_FPR2_FPIF37 EXTI_FPR2_FPIF37_Msk /*!< Falling Pending Interrupt Flag on line 37 */
  5256. #define EXTI_FPR2_FPIF38_Pos (6U)
  5257. #define EXTI_FPR2_FPIF38_Msk (0x1UL << EXTI_FPR2_FPIF38_Pos) /*!< 0x00000040 */
  5258. #define EXTI_FPR2_FPIF38 EXTI_FPR2_FPIF38_Msk /*!< Falling Pending Interrupt Flag on line 38 */
  5259. #define EXTI_FPR2_FPIF39_Pos (7U)
  5260. #define EXTI_FPR2_FPIF39_Msk (0x1UL << EXTI_FPR2_FPIF39_Pos) /*!< 0x00000080 */
  5261. #define EXTI_FPR2_FPIF39 EXTI_FPR2_FPIF39_Msk /*!< Falling Pending Interrupt Flag on line 39 */
  5262. #define EXTI_FPR2_FPIF40_Pos (8U)
  5263. #define EXTI_FPR2_FPIF40_Msk (0x1UL << EXTI_FPR2_FPIF40_Pos) /*!< 0x00000100 */
  5264. #define EXTI_FPR2_FPIF40 EXTI_FPR2_FPIF40_Msk /*!< Falling Pending Interrupt Flag on line 40 */
  5265. #define EXTI_FPR2_FPIF41_Pos (9U)
  5266. #define EXTI_FPR2_FPIF41_Msk (0x1UL << EXTI_FPR2_FPIF41_Pos) /*!< 0x00000200 */
  5267. #define EXTI_FPR2_FPIF41 EXTI_FPR2_FPIF41_Msk /*!< Falling Pending Interrupt Flag on line 41 */
  5268. #define EXTI_FPR2_FPIF42_Pos (10U)
  5269. #define EXTI_FPR2_FPIF42_Msk (0x1UL << EXTI_FPR2_FPIF42_Pos) /*!< 0x00000400 */
  5270. #define EXTI_FPR2_FPIF42 EXTI_FPR2_FPIF42_Msk /*!< Falling Pending Interrupt Flag on line 42 */
  5271. /******************* Bit definition for EXTI_SECCFGR1 register *************/
  5272. #define EXTI_SECCFGR1_SEC0_Pos (0U)
  5273. #define EXTI_SECCFGR1_SEC0_Msk (0x1UL << EXTI_SECCFGR1_SEC0_Pos) /*!< 0x00000001 */
  5274. #define EXTI_SECCFGR1_SEC0 EXTI_SECCFGR1_SEC0_Msk /*!< Security enable on Event input 0 */
  5275. #define EXTI_SECCFGR1_SEC1_Pos (1U)
  5276. #define EXTI_SECCFGR1_SEC1_Msk (0x1UL << EXTI_SECCFGR1_SEC1_Pos) /*!< 0x00000002 */
  5277. #define EXTI_SECCFGR1_SEC1 EXTI_SECCFGR1_SEC1_Msk /*!< Security enable on Event input 1 */
  5278. #define EXTI_SECCFGR1_SEC2_Pos (2U)
  5279. #define EXTI_SECCFGR1_SEC2_Msk (0x1UL << EXTI_SECCFGR1_SEC2_Pos) /*!< 0x00000004 */
  5280. #define EXTI_SECCFGR1_SEC2 EXTI_SECCFGR1_SEC2_Msk /*!< Security enable on Event input 2 */
  5281. #define EXTI_SECCFGR1_SEC3_Pos (3U)
  5282. #define EXTI_SECCFGR1_SEC3_Msk (0x1UL << EXTI_SECCFGR1_SEC3_Pos) /*!< 0x00000008 */
  5283. #define EXTI_SECCFGR1_SEC3 EXTI_SECCFGR1_SEC3_Msk /*!< Security enable on Event input 3 */
  5284. #define EXTI_SECCFGR1_SEC4_Pos (4U)
  5285. #define EXTI_SECCFGR1_SEC4_Msk (0x1UL << EXTI_SECCFGR1_SEC4_Pos) /*!< 0x00000010 */
  5286. #define EXTI_SECCFGR1_SEC4 EXTI_SECCFGR1_SEC4_Msk /*!< Security enable on Event input 4 */
  5287. #define EXTI_SECCFGR1_SEC5_Pos (5U)
  5288. #define EXTI_SECCFGR1_SEC5_Msk (0x1UL << EXTI_SECCFGR1_SEC5_Pos) /*!< 0x00000020 */
  5289. #define EXTI_SECCFGR1_SEC5 EXTI_SECCFGR1_SEC5_Msk /*!< Security enable on Event input 5 */
  5290. #define EXTI_SECCFGR1_SEC6_Pos (6U)
  5291. #define EXTI_SECCFGR1_SEC6_Msk (0x1UL << EXTI_SECCFGR1_SEC6_Pos) /*!< 0x00000040 */
  5292. #define EXTI_SECCFGR1_SEC6 EXTI_SECCFGR1_SEC6_Msk /*!< Security enable on Event input 6 */
  5293. #define EXTI_SECCFGR1_SEC7_Pos (7U)
  5294. #define EXTI_SECCFGR1_SEC7_Msk (0x1UL << EXTI_SECCFGR1_SEC7_Pos) /*!< 0x00000080 */
  5295. #define EXTI_SECCFGR1_SEC7 EXTI_SECCFGR1_SEC7_Msk /*!< Security enable on Event input 7 */
  5296. #define EXTI_SECCFGR1_SEC8_Pos (8U)
  5297. #define EXTI_SECCFGR1_SEC8_Msk (0x1UL << EXTI_SECCFGR1_SEC8_Pos) /*!< 0x00000100 */
  5298. #define EXTI_SECCFGR1_SEC8 EXTI_SECCFGR1_SEC8_Msk /*!< Security enable on Event input 8 */
  5299. #define EXTI_SECCFGR1_SEC9_Pos (9U)
  5300. #define EXTI_SECCFGR1_SEC9_Msk (0x1UL << EXTI_SECCFGR1_SEC9_Pos) /*!< 0x00000200 */
  5301. #define EXTI_SECCFGR1_SEC9 EXTI_SECCFGR1_SEC9_Msk /*!< Security enable on Event input 9 */
  5302. #define EXTI_SECCFGR1_SEC10_Pos (10U)
  5303. #define EXTI_SECCFGR1_SEC10_Msk (0x1UL << EXTI_SECCFGR1_SEC10_Pos) /*!< 0x00000400 */
  5304. #define EXTI_SECCFGR1_SEC10 EXTI_SECCFGR1_SEC10_Msk /*!< Security enable on Event input 10 */
  5305. #define EXTI_SECCFGR1_SEC11_Pos (11U)
  5306. #define EXTI_SECCFGR1_SEC11_Msk (0x1UL << EXTI_SECCFGR1_SEC11_Pos) /*!< 0x00000800 */
  5307. #define EXTI_SECCFGR1_SEC11 EXTI_SECCFGR1_SEC11_Msk /*!< Security enable on Event input 11 */
  5308. #define EXTI_SECCFGR1_SEC12_Pos (12U)
  5309. #define EXTI_SECCFGR1_SEC12_Msk (0x1UL << EXTI_SECCFGR1_SEC12_Pos) /*!< 0x00001000 */
  5310. #define EXTI_SECCFGR1_SEC12 EXTI_SECCFGR1_SEC12_Msk /*!< Security enable on Event input 12 */
  5311. #define EXTI_SECCFGR1_SEC13_Pos (13U)
  5312. #define EXTI_SECCFGR1_SEC13_Msk (0x1UL << EXTI_SECCFGR1_SEC13_Pos) /*!< 0x00002000 */
  5313. #define EXTI_SECCFGR1_SEC13 EXTI_SECCFGR1_SEC13_Msk /*!< Security enable on Event input 13 */
  5314. #define EXTI_SECCFGR1_SEC14_Pos (14U)
  5315. #define EXTI_SECCFGR1_SEC14_Msk (0x1UL << EXTI_SECCFGR1_SEC14_Pos) /*!< 0x00004000 */
  5316. #define EXTI_SECCFGR1_SEC14 EXTI_SECCFGR1_SEC14_Msk /*!< Security enable on Event input 14 */
  5317. #define EXTI_SECCFGR1_SEC15_Pos (15U)
  5318. #define EXTI_SECCFGR1_SEC15_Msk (0x1UL << EXTI_SECCFGR1_SEC15_Pos) /*!< 0x00008000 */
  5319. #define EXTI_SECCFGR1_SEC15 EXTI_SECCFGR1_SEC15_Msk /*!< Security enable on Event input 15 */
  5320. #define EXTI_SECCFGR1_SEC16_Pos (16U)
  5321. #define EXTI_SECCFGR1_SEC16_Msk (0x1UL << EXTI_SECCFGR1_SEC16_Pos) /*!< 0x00010000 */
  5322. #define EXTI_SECCFGR1_SEC16 EXTI_SECCFGR1_SEC16_Msk /*!< Security enable on Event input 16 */
  5323. #define EXTI_SECCFGR1_SEC17_Pos (17U)
  5324. #define EXTI_SECCFGR1_SEC17_Msk (0x1UL << EXTI_SECCFGR1_SEC17_Pos) /*!< 0x00020000 */
  5325. #define EXTI_SECCFGR1_SEC17 EXTI_SECCFGR1_SEC17_Msk /*!< Security enable on Event input 17 */
  5326. #define EXTI_SECCFGR1_SEC18_Pos (18U)
  5327. #define EXTI_SECCFGR1_SEC18_Msk (0x1UL << EXTI_SECCFGR1_SEC18_Pos) /*!< 0x00040000 */
  5328. #define EXTI_SECCFGR1_SEC18 EXTI_SECCFGR1_SEC18_Msk /*!< Security enable on Event input 18 */
  5329. #define EXTI_SECCFGR1_SEC19_Pos (19U)
  5330. #define EXTI_SECCFGR1_SEC19_Msk (0x1UL << EXTI_SECCFGR1_SEC19_Pos) /*!< 0x00080000 */
  5331. #define EXTI_SECCFGR1_SEC19 EXTI_SECCFGR1_SEC19_Msk /*!< Security enable on Event input 19 */
  5332. #define EXTI_SECCFGR1_SEC20_Pos (20U)
  5333. #define EXTI_SECCFGR1_SEC20_Msk (0x1UL << EXTI_SECCFGR1_SEC20_Pos) /*!< 0x00100000 */
  5334. #define EXTI_SECCFGR1_SEC20 EXTI_SECCFGR1_SEC20_Msk /*!< Security enable on Event input 20 */
  5335. #define EXTI_SECCFGR1_SEC21_Pos (21U)
  5336. #define EXTI_SECCFGR1_SEC21_Msk (0x1UL << EXTI_SECCFGR1_SEC21_Pos) /*!< 0x00200000 */
  5337. #define EXTI_SECCFGR1_SEC21 EXTI_SECCFGR1_SEC21_Msk /*!< Security enable on Event input 21 */
  5338. #define EXTI_SECCFGR1_SEC22_Pos (22U)
  5339. #define EXTI_SECCFGR1_SEC22_Msk (0x1UL << EXTI_SECCFGR1_SEC22_Pos) /*!< 0x00400000 */
  5340. #define EXTI_SECCFGR1_SEC22 EXTI_SECCFGR1_SEC22_Msk /*!< Security enable on Event input 22 */
  5341. #define EXTI_SECCFGR1_SEC23_Pos (23U)
  5342. #define EXTI_SECCFGR1_SEC23_Msk (0x1UL << EXTI_SECCFGR1_SEC23_Pos) /*!< 0x00800000 */
  5343. #define EXTI_SECCFGR1_SEC23 EXTI_SECCFGR1_SEC23_Msk /*!< Security enable on Event input 23 */
  5344. #define EXTI_SECCFGR1_SEC24_Pos (24U)
  5345. #define EXTI_SECCFGR1_SEC24_Msk (0x1UL << EXTI_SECCFGR1_SEC24_Pos) /*!< 0x01000000 */
  5346. #define EXTI_SECCFGR1_SEC24 EXTI_SECCFGR1_SEC24_Msk /*!< Security enable on Event input 24 */
  5347. #define EXTI_SECCFGR1_SEC25_Pos (25U)
  5348. #define EXTI_SECCFGR1_SEC25_Msk (0x1UL << EXTI_SECCFGR1_SEC25_Pos) /*!< 0x02000000 */
  5349. #define EXTI_SECCFGR1_SEC25 EXTI_SECCFGR1_SEC25_Msk /*!< Security enable on Event input 25 */
  5350. #define EXTI_SECCFGR1_SEC26_Pos (26U)
  5351. #define EXTI_SECCFGR1_SEC26_Msk (0x1UL << EXTI_SECCFGR1_SEC26_Pos) /*!< 0x04000000 */
  5352. #define EXTI_SECCFGR1_SEC26 EXTI_SECCFGR1_SEC26_Msk /*!< Security enable on Event input 26 */
  5353. #define EXTI_SECCFGR1_SEC27_Pos (27U)
  5354. #define EXTI_SECCFGR1_SEC27_Msk (0x1UL << EXTI_SECCFGR1_SEC27_Pos) /*!< 0x08000000 */
  5355. #define EXTI_SECCFGR1_SEC27 EXTI_SECCFGR1_SEC27_Msk /*!< Security enable on Event input 27 */
  5356. #define EXTI_SECCFGR1_SEC28_Pos (28U)
  5357. #define EXTI_SECCFGR1_SEC28_Msk (0x1UL << EXTI_SECCFGR1_SEC28_Pos) /*!< 0x10000000 */
  5358. #define EXTI_SECCFGR1_SEC28 EXTI_SECCFGR1_SEC28_Msk /*!< Security enable on Event input 28 */
  5359. #define EXTI_SECCFGR1_SEC29_Pos (29U)
  5360. #define EXTI_SECCFGR1_SEC29_Msk (0x1UL << EXTI_SECCFGR1_SEC29_Pos) /*!< 0x20000000 */
  5361. #define EXTI_SECCFGR1_SEC29 EXTI_SECCFGR1_SEC29_Msk /*!< Security enable on Event input 29 */
  5362. #define EXTI_SECCFGR1_SEC30_Pos (30U)
  5363. #define EXTI_SECCFGR1_SEC30_Msk (0x1UL << EXTI_SECCFGR1_SEC30_Pos) /*!< 0x40000000 */
  5364. #define EXTI_SECCFGR1_SEC30 EXTI_SECCFGR1_SEC30_Msk /*!< Security enable on Event input 30 */
  5365. #define EXTI_SECCFGR1_SEC31_Pos (31U)
  5366. #define EXTI_SECCFGR1_SEC31_Msk (0x1UL << EXTI_SECCFGR1_SEC31_Pos) /*!< 0x80000000 */
  5367. #define EXTI_SECCFGR1_SEC31 EXTI_SECCFGR1_SEC31_Msk /*!< Security enable on Event input 31 */
  5368. /******************* Bit definition for EXTI_SECCFGR2 register *************/
  5369. #define EXTI_SECCFGR2_SEC32_Pos (0U)
  5370. #define EXTI_SECCFGR2_SEC32_Msk (0x1UL << EXTI_SECCFGR2_SEC32_Pos) /*!< 0x00000001 */
  5371. #define EXTI_SECCFGR2_SEC32 EXTI_SECCFGR2_SEC32_Msk /*!< Security enable on Event input 32 */
  5372. #define EXTI_SECCFGR2_SEC33_Pos (1U)
  5373. #define EXTI_SECCFGR2_SEC33_Msk (0x1UL << EXTI_SECCFGR2_SEC33_Pos) /*!< 0x00000002 */
  5374. #define EXTI_SECCFGR2_SEC33 EXTI_SECCFGR2_SEC33_Msk /*!< Security enable on Event input 33 */
  5375. #define EXTI_SECCFGR2_SEC34_Pos (2U)
  5376. #define EXTI_SECCFGR2_SEC34_Msk (0x1UL << EXTI_SECCFGR2_SEC34_Pos) /*!< 0x00000004 */
  5377. #define EXTI_SECCFGR2_SEC34 EXTI_SECCFGR2_SEC34_Msk /*!< Security enable on Event input 34 */
  5378. #define EXTI_SECCFGR2_SEC35_Pos (3U)
  5379. #define EXTI_SECCFGR2_SEC35_Msk (0x1UL << EXTI_SECCFGR2_SEC35_Pos) /*!< 0x00000008 */
  5380. #define EXTI_SECCFGR2_SEC35 EXTI_SECCFGR2_SEC35_Msk /*!< Security enable on Event input 35 */
  5381. #define EXTI_SECCFGR2_SEC36_Pos (4U)
  5382. #define EXTI_SECCFGR2_SEC36_Msk (0x1UL << EXTI_SECCFGR2_SEC36_Pos) /*!< 0x00000010 */
  5383. #define EXTI_SECCFGR2_SEC36 EXTI_SECCFGR2_SEC36_Msk /*!< Security enable on Event input 36 */
  5384. #define EXTI_SECCFGR2_SEC37_Pos (5U)
  5385. #define EXTI_SECCFGR2_SEC37_Msk (0x1UL << EXTI_SECCFGR2_SEC37_Pos) /*!< 0x00000020 */
  5386. #define EXTI_SECCFGR2_SEC37 EXTI_SECCFGR2_SEC37_Msk /*!< Security enable on Event input 37 */
  5387. #define EXTI_SECCFGR2_SEC38_Pos (6U)
  5388. #define EXTI_SECCFGR2_SEC38_Msk (0x1UL << EXTI_SECCFGR2_SEC38_Pos) /*!< 0x00000040 */
  5389. #define EXTI_SECCFGR2_SEC38 EXTI_SECCFGR2_SEC38_Msk /*!< Security enable on Event input 38 */
  5390. #define EXTI_SECCFGR2_SEC39_Pos (7U)
  5391. #define EXTI_SECCFGR2_SEC39_Msk (0x1UL << EXTI_SECCFGR2_SEC39_Pos) /*!< 0x00000080 */
  5392. #define EXTI_SECCFGR2_SEC39 EXTI_SECCFGR2_SEC39_Msk /*!< Security enable on Event input 39 */
  5393. #define EXTI_SECCFGR2_SEC40_Pos (8U)
  5394. #define EXTI_SECCFGR2_SEC40_Msk (0x1UL << EXTI_SECCFGR2_SEC40_Pos) /*!< 0x00000100 */
  5395. #define EXTI_SECCFGR2_SEC40 EXTI_SECCFGR2_SEC40_Msk /*!< Security enable on Event input 40 */
  5396. #define EXTI_SECCFGR2_SEC41_Pos (9U)
  5397. #define EXTI_SECCFGR2_SEC41_Msk (0x1UL << EXTI_SECCFGR2_SEC41_Pos) /*!< 0x00000200 */
  5398. #define EXTI_SECCFGR2_SEC41 EXTI_SECCFGR2_SEC41_Msk /*!< Security enable on Event input 41 */
  5399. #define EXTI_SECCFGR2_SEC42_Pos (10U)
  5400. #define EXTI_SECCFGR2_SEC42_Msk (0x1UL << EXTI_SECCFGR2_SEC42_Pos) /*!< 0x00000400 */
  5401. #define EXTI_SECCFGR2_SEC42 EXTI_SECCFGR2_SEC42_Msk /*!< Security enable on Event input 42 */
  5402. /******************* Bit definition for EXTI_PRIVCFGR1 register ************/
  5403. #define EXTI_PRIVCFGR1_PRIV0_Pos (0U)
  5404. #define EXTI_PRIVCFGR1_PRIV0_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV0_Pos) /*!< 0x00000001 */
  5405. #define EXTI_PRIVCFGR1_PRIV0 EXTI_PRIVCFGR1_PRIV0_Msk /*!< Privilege enable on Event input 0 */
  5406. #define EXTI_PRIVCFGR1_PRIV1_Pos (1U)
  5407. #define EXTI_PRIVCFGR1_PRIV1_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV1_Pos) /*!< 0x00000002 */
  5408. #define EXTI_PRIVCFGR1_PRIV1 EXTI_PRIVCFGR1_PRIV1_Msk /*!< Privilege enable on Event input 1 */
  5409. #define EXTI_PRIVCFGR1_PRIV2_Pos (2U)
  5410. #define EXTI_PRIVCFGR1_PRIV2_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV2_Pos) /*!< 0x00000004 */
  5411. #define EXTI_PRIVCFGR1_PRIV2 EXTI_PRIVCFGR1_PRIV2_Msk /*!< Privilege enable on Event input 2 */
  5412. #define EXTI_PRIVCFGR1_PRIV3_Pos (3U)
  5413. #define EXTI_PRIVCFGR1_PRIV3_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV3_Pos) /*!< 0x00000008 */
  5414. #define EXTI_PRIVCFGR1_PRIV3 EXTI_PRIVCFGR1_PRIV3_Msk /*!< Privilege enable on Event input 3 */
  5415. #define EXTI_PRIVCFGR1_PRIV4_Pos (4U)
  5416. #define EXTI_PRIVCFGR1_PRIV4_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV4_Pos) /*!< 0x00000010 */
  5417. #define EXTI_PRIVCFGR1_PRIV4 EXTI_PRIVCFGR1_PRIV4_Msk /*!< Privilege enable on Event input 4 */
  5418. #define EXTI_PRIVCFGR1_PRIV5_Pos (5U)
  5419. #define EXTI_PRIVCFGR1_PRIV5_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV5_Pos) /*!< 0x00000020 */
  5420. #define EXTI_PRIVCFGR1_PRIV5 EXTI_PRIVCFGR1_PRIV5_Msk /*!< Privilege enable on Event input 5 */
  5421. #define EXTI_PRIVCFGR1_PRIV6_Pos (6U)
  5422. #define EXTI_PRIVCFGR1_PRIV6_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV6_Pos) /*!< 0x00000040 */
  5423. #define EXTI_PRIVCFGR1_PRIV6 EXTI_PRIVCFGR1_PRIV6_Msk /*!< Privilege enable on Event input 6 */
  5424. #define EXTI_PRIVCFGR1_PRIV7_Pos (7U)
  5425. #define EXTI_PRIVCFGR1_PRIV7_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV7_Pos) /*!< 0x00000080 */
  5426. #define EXTI_PRIVCFGR1_PRIV7 EXTI_PRIVCFGR1_PRIV7_Msk /*!< Privilege enable on Event input 7 */
  5427. #define EXTI_PRIVCFGR1_PRIV8_Pos (8U)
  5428. #define EXTI_PRIVCFGR1_PRIV8_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV8_Pos) /*!< 0x00000100 */
  5429. #define EXTI_PRIVCFGR1_PRIV8 EXTI_PRIVCFGR1_PRIV8_Msk /*!< Privilege enable on Event input 8 */
  5430. #define EXTI_PRIVCFGR1_PRIV9_Pos (9U)
  5431. #define EXTI_PRIVCFGR1_PRIV9_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV9_Pos) /*!< 0x00000200 */
  5432. #define EXTI_PRIVCFGR1_PRIV9 EXTI_PRIVCFGR1_PRIV9_Msk /*!< Privilege enable on Event input 9 */
  5433. #define EXTI_PRIVCFGR1_PRIV10_Pos (10U)
  5434. #define EXTI_PRIVCFGR1_PRIV10_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV10_Pos) /*!< 0x00000400 */
  5435. #define EXTI_PRIVCFGR1_PRIV10 EXTI_PRIVCFGR1_PRIV10_Msk /*!< Privilege enable on Event input 10 */
  5436. #define EXTI_PRIVCFGR1_PRIV11_Pos (11U)
  5437. #define EXTI_PRIVCFGR1_PRIV11_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV11_Pos) /*!< 0x00000800 */
  5438. #define EXTI_PRIVCFGR1_PRIV11 EXTI_PRIVCFGR1_PRIV11_Msk /*!< Privilege enable on Event input 11 */
  5439. #define EXTI_PRIVCFGR1_PRIV12_Pos (12U)
  5440. #define EXTI_PRIVCFGR1_PRIV12_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV12_Pos) /*!< 0x00001000 */
  5441. #define EXTI_PRIVCFGR1_PRIV12 EXTI_PRIVCFGR1_PRIV12_Msk /*!< Privilege enable on Event input 12 */
  5442. #define EXTI_PRIVCFGR1_PRIV13_Pos (13U)
  5443. #define EXTI_PRIVCFGR1_PRIV13_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV13_Pos) /*!< 0x00002000 */
  5444. #define EXTI_PRIVCFGR1_PRIV13 EXTI_PRIVCFGR1_PRIV13_Msk /*!< Privilege enable on Event input 13 */
  5445. #define EXTI_PRIVCFGR1_PRIV14_Pos (14U)
  5446. #define EXTI_PRIVCFGR1_PRIV14_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV14_Pos) /*!< 0x00004000 */
  5447. #define EXTI_PRIVCFGR1_PRIV14 EXTI_PRIVCFGR1_PRIV14_Msk /*!< Privilege enable on Event input 14 */
  5448. #define EXTI_PRIVCFGR1_PRIV15_Pos (15U)
  5449. #define EXTI_PRIVCFGR1_PRIV15_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV15_Pos) /*!< 0x00008000 */
  5450. #define EXTI_PRIVCFGR1_PRIV15 EXTI_PRIVCFGR1_PRIV15_Msk /*!< Privilege enable on Event input 15 */
  5451. #define EXTI_PRIVCFGR1_PRIV16_Pos (16U)
  5452. #define EXTI_PRIVCFGR1_PRIV16_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV16_Pos) /*!< 0x00010000 */
  5453. #define EXTI_PRIVCFGR1_PRIV16 EXTI_PRIVCFGR1_PRIV16_Msk /*!< Privilege enable on Event input 16 */
  5454. #define EXTI_PRIVCFGR1_PRIV17_Pos (17U)
  5455. #define EXTI_PRIVCFGR1_PRIV17_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV17_Pos) /*!< 0x00020000 */
  5456. #define EXTI_PRIVCFGR1_PRIV17 EXTI_PRIVCFGR1_PRIV17_Msk /*!< Privilege enable on Event input 17 */
  5457. #define EXTI_PRIVCFGR1_PRIV18_Pos (18U)
  5458. #define EXTI_PRIVCFGR1_PRIV18_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV18_Pos) /*!< 0x00040000 */
  5459. #define EXTI_PRIVCFGR1_PRIV18 EXTI_PRIVCFGR1_PRIV18_Msk /*!< Privilege enable on Event input 18 */
  5460. #define EXTI_PRIVCFGR1_PRIV19_Pos (19U)
  5461. #define EXTI_PRIVCFGR1_PRIV19_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV19_Pos) /*!< 0x00080000 */
  5462. #define EXTI_PRIVCFGR1_PRIV19 EXTI_PRIVCFGR1_PRIV19_Msk /*!< Privilege enable on Event input 19 */
  5463. #define EXTI_PRIVCFGR1_PRIV20_Pos (20U)
  5464. #define EXTI_PRIVCFGR1_PRIV20_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV20_Pos) /*!< 0x00100000 */
  5465. #define EXTI_PRIVCFGR1_PRIV20 EXTI_PRIVCFGR1_PRIV20_Msk /*!< Privilege enable on Event input 20 */
  5466. #define EXTI_PRIVCFGR1_PRIV21_Pos (21U)
  5467. #define EXTI_PRIVCFGR1_PRIV21_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV21_Pos) /*!< 0x00200000 */
  5468. #define EXTI_PRIVCFGR1_PRIV21 EXTI_PRIVCFGR1_PRIV21_Msk /*!< Privilege enable on Event input 21 */
  5469. #define EXTI_PRIVCFGR1_PRIV22_Pos (22U)
  5470. #define EXTI_PRIVCFGR1_PRIV22_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV22_Pos) /*!< 0x00400000 */
  5471. #define EXTI_PRIVCFGR1_PRIV22 EXTI_PRIVCFGR1_PRIV22_Msk /*!< Privilege enable on Event input 22 */
  5472. #define EXTI_PRIVCFGR1_PRIV23_Pos (23U)
  5473. #define EXTI_PRIVCFGR1_PRIV23_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV23_Pos) /*!< 0x00800000 */
  5474. #define EXTI_PRIVCFGR1_PRIV23 EXTI_PRIVCFGR1_PRIV23_Msk /*!< Privilege enable on Event input 23 */
  5475. #define EXTI_PRIVCFGR1_PRIV24_Pos (24U)
  5476. #define EXTI_PRIVCFGR1_PRIV24_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV24_Pos) /*!< 0x01000000 */
  5477. #define EXTI_PRIVCFGR1_PRIV24 EXTI_PRIVCFGR1_PRIV24_Msk /*!< Privilege enable on Event input 24 */
  5478. #define EXTI_PRIVCFGR1_PRIV25_Pos (25U)
  5479. #define EXTI_PRIVCFGR1_PRIV25_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV25_Pos) /*!< 0x02000000 */
  5480. #define EXTI_PRIVCFGR1_PRIV25 EXTI_PRIVCFGR1_PRIV25_Msk /*!< Privilege enable on Event input 25 */
  5481. #define EXTI_PRIVCFGR1_PRIV26_Pos (26U)
  5482. #define EXTI_PRIVCFGR1_PRIV26_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV26_Pos) /*!< 0x04000000 */
  5483. #define EXTI_PRIVCFGR1_PRIV26 EXTI_PRIVCFGR1_PRIV26_Msk /*!< Privilege enable on Event input 26 */
  5484. #define EXTI_PRIVCFGR1_PRIV27_Pos (27U)
  5485. #define EXTI_PRIVCFGR1_PRIV27_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV27_Pos) /*!< 0x08000000 */
  5486. #define EXTI_PRIVCFGR1_PRIV27 EXTI_PRIVCFGR1_PRIV27_Msk /*!< Privilege enable on Event input 27 */
  5487. #define EXTI_PRIVCFGR1_PRIV28_Pos (28U)
  5488. #define EXTI_PRIVCFGR1_PRIV28_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV28_Pos) /*!< 0x10000000 */
  5489. #define EXTI_PRIVCFGR1_PRIV28 EXTI_PRIVCFGR1_PRIV28_Msk /*!< Privilege enable on Event input 28 */
  5490. #define EXTI_PRIVCFGR1_PRIV29_Pos (29U)
  5491. #define EXTI_PRIVCFGR1_PRIV29_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV29_Pos) /*!< 0x20000000 */
  5492. #define EXTI_PRIVCFGR1_PRIV29 EXTI_PRIVCFGR1_PRIV29_Msk /*!< Privilege enable on Event input 29 */
  5493. #define EXTI_PRIVCFGR1_PRIV30_Pos (30U)
  5494. #define EXTI_PRIVCFGR1_PRIV30_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV30_Pos) /*!< 0x40000000 */
  5495. #define EXTI_PRIVCFGR1_PRIV30 EXTI_PRIVCFGR1_PRIV30_Msk /*!< Privilege enable on Event input 30 */
  5496. #define EXTI_PRIVCFGR1_PRIV31_Pos (31U)
  5497. #define EXTI_PRIVCFGR1_PRIV31_Msk (0x1UL << EXTI_PRIVCFGR1_PRIV31_Pos) /*!< 0x80000000 */
  5498. #define EXTI_PRIVCFGR1_PRIV31 EXTI_PRIVCFGR1_PRIV31_Msk /*!< Privilege enable on Event input 31 */
  5499. /******************* Bit definition for EXTI_PRIVCFGR2 register ************/
  5500. #define EXTI_PRIVCFGR2_PRIV32_Pos (0U)
  5501. #define EXTI_PRIVCFGR2_PRIV32_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV32_Pos) /*!< 0x00000001 */
  5502. #define EXTI_PRIVCFGR2_PRIV32 EXTI_PRIVCFGR2_PRIV32_Msk /*!< Privilege enable on Event input 32 */
  5503. #define EXTI_PRIVCFGR2_PRIV33_Pos (1U)
  5504. #define EXTI_PRIVCFGR2_PRIV33_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV33_Pos) /*!< 0x00000002 */
  5505. #define EXTI_PRIVCFGR2_PRIV33 EXTI_PRIVCFGR2_PRIV33_Msk /*!< Privilege enable on Event input 33 */
  5506. #define EXTI_PRIVCFGR2_PRIV34_Pos (2U)
  5507. #define EXTI_PRIVCFGR2_PRIV34_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV34_Pos) /*!< 0x00000004 */
  5508. #define EXTI_PRIVCFGR2_PRIV34 EXTI_PRIVCFGR2_PRIV34_Msk /*!< Privilege enable on Event input 34 */
  5509. #define EXTI_PRIVCFGR2_PRIV35_Pos (3U)
  5510. #define EXTI_PRIVCFGR2_PRIV35_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV35_Pos) /*!< 0x00000008 */
  5511. #define EXTI_PRIVCFGR2_PRIV35 EXTI_PRIVCFGR2_PRIV35_Msk /*!< Privilege enable on Event input 35 */
  5512. #define EXTI_PRIVCFGR2_PRIV36_Pos (4U)
  5513. #define EXTI_PRIVCFGR2_PRIV36_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV36_Pos) /*!< 0x00000010 */
  5514. #define EXTI_PRIVCFGR2_PRIV36 EXTI_PRIVCFGR2_PRIV36_Msk /*!< Privilege enable on Event input 36 */
  5515. #define EXTI_PRIVCFGR2_PRIV37_Pos (5U)
  5516. #define EXTI_PRIVCFGR2_PRIV37_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV37_Pos) /*!< 0x00000020 */
  5517. #define EXTI_PRIVCFGR2_PRIV37 EXTI_PRIVCFGR2_PRIV37_Msk /*!< Privilege enable on Event input 37 */
  5518. #define EXTI_PRIVCFGR2_PRIV38_Pos (6U)
  5519. #define EXTI_PRIVCFGR2_PRIV38_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV38_Pos) /*!< 0x00000040 */
  5520. #define EXTI_PRIVCFGR2_PRIV38 EXTI_PRIVCFGR2_PRIV38_Msk /*!< Privilege enable on Event input 38 */
  5521. #define EXTI_PRIVCFGR2_PRIV39_Pos (7U)
  5522. #define EXTI_PRIVCFGR2_PRIV39_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV39_Pos) /*!< 0x00000080 */
  5523. #define EXTI_PRIVCFGR2_PRIV39 EXTI_PRIVCFGR2_PRIV39_Msk /*!< Privilege enable on Event input 39 */
  5524. #define EXTI_PRIVCFGR2_PRIV40_Pos (8U)
  5525. #define EXTI_PRIVCFGR2_PRIV40_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV40_Pos) /*!< 0x00000100 */
  5526. #define EXTI_PRIVCFGR2_PRIV40 EXTI_PRIVCFGR2_PRIV40_Msk /*!< Privilege enable on Event input 40 */
  5527. #define EXTI_PRIVCFGR2_PRIV41_Pos (9U)
  5528. #define EXTI_PRIVCFGR2_PRIV41_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV41_Pos) /*!< 0x00000200 */
  5529. #define EXTI_PRIVCFGR2_PRIV41 EXTI_PRIVCFGR2_PRIV41_Msk /*!< Privilege enable on Event input 41 */
  5530. #define EXTI_PRIVCFGR2_PRIV42_Pos (10U)
  5531. #define EXTI_PRIVCFGR2_PRIV42_Msk (0x1UL << EXTI_PRIVCFGR2_PRIV42_Pos) /*!< 0x00000400 */
  5532. #define EXTI_PRIVCFGR2_PRIV42 EXTI_PRIVCFGR2_PRIV42_Msk /*!< Privilege enable on Event input 42 */
  5533. /***************** Bit definition for EXTI_EXTICR1 register **************/
  5534. #define EXTI_EXTICR1_EXTI0_Pos (0U)
  5535. #define EXTI_EXTICR1_EXTI0_Msk (0x7UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000007 */
  5536. #define EXTI_EXTICR1_EXTI0 EXTI_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */
  5537. #define EXTI_EXTICR1_EXTI0_0 (0x1UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000001 */
  5538. #define EXTI_EXTICR1_EXTI0_1 (0x2UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000002 */
  5539. #define EXTI_EXTICR1_EXTI0_2 (0x4UL << EXTI_EXTICR1_EXTI0_Pos) /*!< 0x00000004 */
  5540. #define EXTI_EXTICR1_EXTI1_Pos (8U)
  5541. #define EXTI_EXTICR1_EXTI1_Msk (0x7UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000700 */
  5542. #define EXTI_EXTICR1_EXTI1 EXTI_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */
  5543. #define EXTI_EXTICR1_EXTI1_0 (0x1UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000100 */
  5544. #define EXTI_EXTICR1_EXTI1_1 (0x2UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000200 */
  5545. #define EXTI_EXTICR1_EXTI1_2 (0x4UL << EXTI_EXTICR1_EXTI1_Pos) /*!< 0x00000400 */
  5546. #define EXTI_EXTICR1_EXTI2_Pos (16U)
  5547. #define EXTI_EXTICR1_EXTI2_Msk (0x7UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00070000 */
  5548. #define EXTI_EXTICR1_EXTI2 EXTI_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */
  5549. #define EXTI_EXTICR1_EXTI2_0 (0x1UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00010000 */
  5550. #define EXTI_EXTICR1_EXTI2_1 (0x2UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00020000 */
  5551. #define EXTI_EXTICR1_EXTI2_2 (0x4UL << EXTI_EXTICR1_EXTI2_Pos) /*!< 0x00040000 */
  5552. #define EXTI_EXTICR1_EXTI3_Pos (24U)
  5553. #define EXTI_EXTICR1_EXTI3_Msk (0x7UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x07000000 */
  5554. #define EXTI_EXTICR1_EXTI3 EXTI_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */
  5555. #define EXTI_EXTICR1_EXTI3_0 (0x1UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x01000000 */
  5556. #define EXTI_EXTICR1_EXTI3_1 (0x2UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x02000000 */
  5557. #define EXTI_EXTICR1_EXTI3_2 (0x4UL << EXTI_EXTICR1_EXTI3_Pos) /*!< 0x04000000 */
  5558. /***************** Bit definition for EXTI_EXTICR2 register **************/
  5559. #define EXTI_EXTICR2_EXTI4_Pos (0U)
  5560. #define EXTI_EXTICR2_EXTI4_Msk (0x7UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000007 */
  5561. #define EXTI_EXTICR2_EXTI4 EXTI_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */
  5562. #define EXTI_EXTICR2_EXTI4_0 (0x1UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000001 */
  5563. #define EXTI_EXTICR2_EXTI4_1 (0x2UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000002 */
  5564. #define EXTI_EXTICR2_EXTI4_2 (0x4UL << EXTI_EXTICR2_EXTI4_Pos) /*!< 0x00000004 */
  5565. #define EXTI_EXTICR2_EXTI5_Pos (8U)
  5566. #define EXTI_EXTICR2_EXTI5_Msk (0x7UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000700 */
  5567. #define EXTI_EXTICR2_EXTI5 EXTI_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */
  5568. #define EXTI_EXTICR2_EXTI5_0 (0x1UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000100 */
  5569. #define EXTI_EXTICR2_EXTI5_1 (0x2UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000200 */
  5570. #define EXTI_EXTICR2_EXTI5_2 (0x4UL << EXTI_EXTICR2_EXTI5_Pos) /*!< 0x00000400 */
  5571. #define EXTI_EXTICR2_EXTI6_Pos (16U)
  5572. #define EXTI_EXTICR2_EXTI6_Msk (0x7UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00070000 */
  5573. #define EXTI_EXTICR2_EXTI6 EXTI_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */
  5574. #define EXTI_EXTICR2_EXTI6_0 (0x1UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00010000 */
  5575. #define EXTI_EXTICR2_EXTI6_1 (0x2UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00020000 */
  5576. #define EXTI_EXTICR2_EXTI6_2 (0x4UL << EXTI_EXTICR2_EXTI6_Pos) /*!< 0x00040000 */
  5577. #define EXTI_EXTICR2_EXTI7_Pos (24U)
  5578. #define EXTI_EXTICR2_EXTI7_Msk (0x7UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x07000000 */
  5579. #define EXTI_EXTICR2_EXTI7 EXTI_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */
  5580. #define EXTI_EXTICR2_EXTI7_0 (0x1UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x01000000 */
  5581. #define EXTI_EXTICR2_EXTI7_1 (0x2UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x02000000 */
  5582. #define EXTI_EXTICR2_EXTI7_2 (0x4UL << EXTI_EXTICR2_EXTI7_Pos) /*!< 0x04000000 */
  5583. /***************** Bit definition for EXTI_EXTICR3 register **************/
  5584. #define EXTI_EXTICR3_EXTI8_Pos (0U)
  5585. #define EXTI_EXTICR3_EXTI8_Msk (0x7UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000007 */
  5586. #define EXTI_EXTICR3_EXTI8 EXTI_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */
  5587. #define EXTI_EXTICR3_EXTI8_0 (0x1UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000001 */
  5588. #define EXTI_EXTICR3_EXTI8_1 (0x2UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000002 */
  5589. #define EXTI_EXTICR3_EXTI8_2 (0x4UL << EXTI_EXTICR3_EXTI8_Pos) /*!< 0x00000004 */
  5590. #define EXTI_EXTICR3_EXTI9_Pos (8U)
  5591. #define EXTI_EXTICR3_EXTI9_Msk (0x7UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000700 */
  5592. #define EXTI_EXTICR3_EXTI9 EXTI_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */
  5593. #define EXTI_EXTICR3_EXTI9_0 (0x1UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000100 */
  5594. #define EXTI_EXTICR3_EXTI9_1 (0x2UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000200 */
  5595. #define EXTI_EXTICR3_EXTI9_2 (0x4UL << EXTI_EXTICR3_EXTI9_Pos) /*!< 0x00000400 */
  5596. #define EXTI_EXTICR3_EXTI10_Pos (16U)
  5597. #define EXTI_EXTICR3_EXTI10_Msk (0x7UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00070000 */
  5598. #define EXTI_EXTICR3_EXTI10 EXTI_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */
  5599. #define EXTI_EXTICR3_EXTI10_0 (0x1UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00010000 */
  5600. #define EXTI_EXTICR3_EXTI10_1 (0x2UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00020000 */
  5601. #define EXTI_EXTICR3_EXTI10_2 (0x4UL << EXTI_EXTICR3_EXTI10_Pos) /*!< 0x00040000 */
  5602. #define EXTI_EXTICR3_EXTI11_Pos (24U)
  5603. #define EXTI_EXTICR3_EXTI11_Msk (0x7UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x07000000 */
  5604. #define EXTI_EXTICR3_EXTI11 EXTI_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */
  5605. #define EXTI_EXTICR3_EXTI11_0 (0x1UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x01000000 */
  5606. #define EXTI_EXTICR3_EXTI11_1 (0x2UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x02000000 */
  5607. #define EXTI_EXTICR3_EXTI11_2 (0x4UL << EXTI_EXTICR3_EXTI11_Pos) /*!< 0x04000000 */
  5608. /***************** Bit definition for EXTI_EXTICR4 register **************/
  5609. #define EXTI_EXTICR4_EXTI12_Pos (0U)
  5610. #define EXTI_EXTICR4_EXTI12_Msk (0x7UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000007 */
  5611. #define EXTI_EXTICR4_EXTI12 EXTI_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */
  5612. #define EXTI_EXTICR4_EXTI12_0 (0x1UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000001 */
  5613. #define EXTI_EXTICR4_EXTI12_1 (0x2UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000002 */
  5614. #define EXTI_EXTICR4_EXTI12_2 (0x4UL << EXTI_EXTICR4_EXTI12_Pos) /*!< 0x00000004 */
  5615. #define EXTI_EXTICR4_EXTI13_Pos (8U)
  5616. #define EXTI_EXTICR4_EXTI13_Msk (0x7UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000700 */
  5617. #define EXTI_EXTICR4_EXTI13 EXTI_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */
  5618. #define EXTI_EXTICR4_EXTI13_0 (0x1UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000100 */
  5619. #define EXTI_EXTICR4_EXTI13_1 (0x2UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000200 */
  5620. #define EXTI_EXTICR4_EXTI13_2 (0x4UL << EXTI_EXTICR4_EXTI13_Pos) /*!< 0x00000400 */
  5621. #define EXTI_EXTICR4_EXTI14_Pos (16U)
  5622. #define EXTI_EXTICR4_EXTI14_Msk (0x7UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00070000 */
  5623. #define EXTI_EXTICR4_EXTI14 EXTI_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */
  5624. #define EXTI_EXTICR4_EXTI14_0 (0x1UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00010000 */
  5625. #define EXTI_EXTICR4_EXTI14_1 (0x2UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00020000 */
  5626. #define EXTI_EXTICR4_EXTI14_2 (0x4UL << EXTI_EXTICR4_EXTI14_Pos) /*!< 0x00040000 */
  5627. #define EXTI_EXTICR4_EXTI15_Pos (24U)
  5628. #define EXTI_EXTICR4_EXTI15_Msk (0x7UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x07000000 */
  5629. #define EXTI_EXTICR4_EXTI15 EXTI_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */
  5630. #define EXTI_EXTICR4_EXTI15_0 (0x1UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x01000000 */
  5631. #define EXTI_EXTICR4_EXTI15_1 (0x2UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x02000000 */
  5632. #define EXTI_EXTICR4_EXTI15_2 (0x4UL << EXTI_EXTICR4_EXTI15_Pos) /*!< 0x04000000 */
  5633. /******************* Bit definition for EXTI_LOCKR register ****************/
  5634. #define EXTI_LOCKR_LOCK_Pos (0U)
  5635. #define EXTI_LOCKR_LOCK_Msk (0x1UL << EXTI_LOCKR_LOCK_Pos) /*!< 0x00000001 */
  5636. #define EXTI_LOCKR_LOCK EXTI_LOCKR_LOCK_Msk /*!< Global security and privilege configuration lock */
  5637. /******************* Bit definition for EXTI_IMR1 register *****************/
  5638. #define EXTI_IMR1_IM0_Pos (0U)
  5639. #define EXTI_IMR1_IM0_Msk (0x1UL << EXTI_IMR1_IM0_Pos) /*!< 0x00000001 */
  5640. #define EXTI_IMR1_IM0 EXTI_IMR1_IM0_Msk /*!< Interrupt Mask on line 0 */
  5641. #define EXTI_IMR1_IM1_Pos (1U)
  5642. #define EXTI_IMR1_IM1_Msk (0x1UL << EXTI_IMR1_IM1_Pos) /*!< 0x00000002 */
  5643. #define EXTI_IMR1_IM1 EXTI_IMR1_IM1_Msk /*!< Interrupt Mask on line 1 */
  5644. #define EXTI_IMR1_IM2_Pos (2U)
  5645. #define EXTI_IMR1_IM2_Msk (0x1UL << EXTI_IMR1_IM2_Pos) /*!< 0x00000004 */
  5646. #define EXTI_IMR1_IM2 EXTI_IMR1_IM2_Msk /*!< Interrupt Mask on line 2 */
  5647. #define EXTI_IMR1_IM3_Pos (3U)
  5648. #define EXTI_IMR1_IM3_Msk (0x1UL << EXTI_IMR1_IM3_Pos) /*!< 0x00000008 */
  5649. #define EXTI_IMR1_IM3 EXTI_IMR1_IM3_Msk /*!< Interrupt Mask on line 3 */
  5650. #define EXTI_IMR1_IM4_Pos (4U)
  5651. #define EXTI_IMR1_IM4_Msk (0x1UL << EXTI_IMR1_IM4_Pos) /*!< 0x00000010 */
  5652. #define EXTI_IMR1_IM4 EXTI_IMR1_IM4_Msk /*!< Interrupt Mask on line 4 */
  5653. #define EXTI_IMR1_IM5_Pos (5U)
  5654. #define EXTI_IMR1_IM5_Msk (0x1UL << EXTI_IMR1_IM5_Pos) /*!< 0x00000020 */
  5655. #define EXTI_IMR1_IM5 EXTI_IMR1_IM5_Msk /*!< Interrupt Mask on line 5 */
  5656. #define EXTI_IMR1_IM6_Pos (6U)
  5657. #define EXTI_IMR1_IM6_Msk (0x1UL << EXTI_IMR1_IM6_Pos) /*!< 0x00000040 */
  5658. #define EXTI_IMR1_IM6 EXTI_IMR1_IM6_Msk /*!< Interrupt Mask on line 6 */
  5659. #define EXTI_IMR1_IM7_Pos (7U)
  5660. #define EXTI_IMR1_IM7_Msk (0x1UL << EXTI_IMR1_IM7_Pos) /*!< 0x00000080 */
  5661. #define EXTI_IMR1_IM7 EXTI_IMR1_IM7_Msk /*!< Interrupt Mask on line 7 */
  5662. #define EXTI_IMR1_IM8_Pos (8U)
  5663. #define EXTI_IMR1_IM8_Msk (0x1UL << EXTI_IMR1_IM8_Pos) /*!< 0x00000100 */
  5664. #define EXTI_IMR1_IM8 EXTI_IMR1_IM8_Msk /*!< Interrupt Mask on line 8 */
  5665. #define EXTI_IMR1_IM9_Pos (9U)
  5666. #define EXTI_IMR1_IM9_Msk (0x1UL << EXTI_IMR1_IM9_Pos) /*!< 0x00000200 */
  5667. #define EXTI_IMR1_IM9 EXTI_IMR1_IM9_Msk /*!< Interrupt Mask on line 9 */
  5668. #define EXTI_IMR1_IM10_Pos (10U)
  5669. #define EXTI_IMR1_IM10_Msk (0x1UL << EXTI_IMR1_IM10_Pos) /*!< 0x00000400 */
  5670. #define EXTI_IMR1_IM10 EXTI_IMR1_IM10_Msk /*!< Interrupt Mask on line 10 */
  5671. #define EXTI_IMR1_IM11_Pos (11U)
  5672. #define EXTI_IMR1_IM11_Msk (0x1UL << EXTI_IMR1_IM11_Pos) /*!< 0x00000800 */
  5673. #define EXTI_IMR1_IM11 EXTI_IMR1_IM11_Msk /*!< Interrupt Mask on line 11 */
  5674. #define EXTI_IMR1_IM12_Pos (12U)
  5675. #define EXTI_IMR1_IM12_Msk (0x1UL << EXTI_IMR1_IM12_Pos) /*!< 0x00001000 */
  5676. #define EXTI_IMR1_IM12 EXTI_IMR1_IM12_Msk /*!< Interrupt Mask on line 12 */
  5677. #define EXTI_IMR1_IM13_Pos (13U)
  5678. #define EXTI_IMR1_IM13_Msk (0x1UL << EXTI_IMR1_IM13_Pos) /*!< 0x00002000 */
  5679. #define EXTI_IMR1_IM13 EXTI_IMR1_IM13_Msk /*!< Interrupt Mask on line 13 */
  5680. #define EXTI_IMR1_IM14_Pos (14U)
  5681. #define EXTI_IMR1_IM14_Msk (0x1UL << EXTI_IMR1_IM14_Pos) /*!< 0x00004000 */
  5682. #define EXTI_IMR1_IM14 EXTI_IMR1_IM14_Msk /*!< Interrupt Mask on line 14 */
  5683. #define EXTI_IMR1_IM15_Pos (15U)
  5684. #define EXTI_IMR1_IM15_Msk (0x1UL << EXTI_IMR1_IM15_Pos) /*!< 0x00008000 */
  5685. #define EXTI_IMR1_IM15 EXTI_IMR1_IM15_Msk /*!< Interrupt Mask on line 15 */
  5686. #define EXTI_IMR1_IM16_Pos (16U)
  5687. #define EXTI_IMR1_IM16_Msk (0x1UL << EXTI_IMR1_IM16_Pos) /*!< 0x00010000 */
  5688. #define EXTI_IMR1_IM16 EXTI_IMR1_IM16_Msk /*!< Interrupt Mask on line 16 */
  5689. #define EXTI_IMR1_IM17_Pos (17U)
  5690. #define EXTI_IMR1_IM17_Msk (0x1UL << EXTI_IMR1_IM17_Pos) /*!< 0x00020000 */
  5691. #define EXTI_IMR1_IM17 EXTI_IMR1_IM17_Msk /*!< Interrupt Mask on line 17 */
  5692. #define EXTI_IMR1_IM18_Pos (18U)
  5693. #define EXTI_IMR1_IM18_Msk (0x1UL << EXTI_IMR1_IM18_Pos) /*!< 0x00040000 */
  5694. #define EXTI_IMR1_IM18 EXTI_IMR1_IM18_Msk /*!< Interrupt Mask on line 18 */
  5695. #define EXTI_IMR1_IM19_Pos (19U)
  5696. #define EXTI_IMR1_IM19_Msk (0x1UL << EXTI_IMR1_IM19_Pos) /*!< 0x00080000 */
  5697. #define EXTI_IMR1_IM19 EXTI_IMR1_IM19_Msk /*!< Interrupt Mask on line 19 */
  5698. #define EXTI_IMR1_IM20_Pos (20U)
  5699. #define EXTI_IMR1_IM20_Msk (0x1UL << EXTI_IMR1_IM20_Pos) /*!< 0x00100000 */
  5700. #define EXTI_IMR1_IM20 EXTI_IMR1_IM20_Msk /*!< Interrupt Mask on line 20 */
  5701. #define EXTI_IMR1_IM21_Pos (21U)
  5702. #define EXTI_IMR1_IM21_Msk (0x1UL << EXTI_IMR1_IM21_Pos) /*!< 0x00200000 */
  5703. #define EXTI_IMR1_IM21 EXTI_IMR1_IM21_Msk /*!< Interrupt Mask on line 21 */
  5704. #define EXTI_IMR1_IM22_Pos (22U)
  5705. #define EXTI_IMR1_IM22_Msk (0x1UL << EXTI_IMR1_IM22_Pos) /*!< 0x00400000 */
  5706. #define EXTI_IMR1_IM22 EXTI_IMR1_IM22_Msk /*!< Interrupt Mask on line 22 */
  5707. #define EXTI_IMR1_IM23_Pos (23U)
  5708. #define EXTI_IMR1_IM23_Msk (0x1UL << EXTI_IMR1_IM23_Pos) /*!< 0x00800000 */
  5709. #define EXTI_IMR1_IM23 EXTI_IMR1_IM23_Msk /*!< Interrupt Mask on line 23 */
  5710. #define EXTI_IMR1_IM24_Pos (24U)
  5711. #define EXTI_IMR1_IM24_Msk (0x1UL << EXTI_IMR1_IM24_Pos) /*!< 0x01000000 */
  5712. #define EXTI_IMR1_IM24 EXTI_IMR1_IM24_Msk /*!< Interrupt Mask on line 24 */
  5713. #define EXTI_IMR1_IM25_Pos (25U)
  5714. #define EXTI_IMR1_IM25_Msk (0x1UL << EXTI_IMR1_IM25_Pos) /*!< 0x02000000 */
  5715. #define EXTI_IMR1_IM25 EXTI_IMR1_IM25_Msk /*!< Interrupt Mask on line 25 */
  5716. #define EXTI_IMR1_IM26_Pos (26U)
  5717. #define EXTI_IMR1_IM26_Msk (0x1UL << EXTI_IMR1_IM26_Pos) /*!< 0x04000000 */
  5718. #define EXTI_IMR1_IM26 EXTI_IMR1_IM26_Msk /*!< Interrupt Mask on line 26 */
  5719. #define EXTI_IMR1_IM27_Pos (27U)
  5720. #define EXTI_IMR1_IM27_Msk (0x1UL << EXTI_IMR1_IM27_Pos) /*!< 0x08000000 */
  5721. #define EXTI_IMR1_IM27 EXTI_IMR1_IM27_Msk /*!< Interrupt Mask on line 27 */
  5722. #define EXTI_IMR1_IM28_Pos (28U)
  5723. #define EXTI_IMR1_IM28_Msk (0x1UL << EXTI_IMR1_IM28_Pos) /*!< 0x10000000 */
  5724. #define EXTI_IMR1_IM28 EXTI_IMR1_IM28_Msk /*!< Interrupt Mask on line 28 */
  5725. #define EXTI_IMR1_IM29_Pos (29U)
  5726. #define EXTI_IMR1_IM29_Msk (0x1UL << EXTI_IMR1_IM29_Pos) /*!< 0x20000000 */
  5727. #define EXTI_IMR1_IM29 EXTI_IMR1_IM29_Msk /*!< Interrupt Mask on line 29 */
  5728. #define EXTI_IMR1_IM30_Pos (30U)
  5729. #define EXTI_IMR1_IM30_Msk (0x1UL << EXTI_IMR1_IM30_Pos) /*!< 0x40000000 */
  5730. #define EXTI_IMR1_IM30 EXTI_IMR1_IM30_Msk /*!< Interrupt Mask on line 30 */
  5731. #define EXTI_IMR1_IM31_Pos (31U)
  5732. #define EXTI_IMR1_IM31_Msk (0x1UL << EXTI_IMR1_IM31_Pos) /*!< 0x80000000 */
  5733. #define EXTI_IMR1_IM31 EXTI_IMR1_IM31_Msk /*!< Interrupt Mask on line 31 */
  5734. #define EXTI_IMR1_IM_Pos (0U)
  5735. #define EXTI_IMR1_IM_Msk (0xFFFFFFFFUL << EXTI_IMR1_IM_Pos) /*!< 0xFFFFFFFF */
  5736. #define EXTI_IMR1_IM EXTI_IMR1_IM_Msk /*!< Interrupt Mask All */
  5737. /******************* Bit definition for EXTI_IMR2 register *****************/
  5738. #define EXTI_IMR2_IM32_Pos (0U)
  5739. #define EXTI_IMR2_IM32_Msk (0x1UL << EXTI_IMR2_IM32_Pos) /*!< 0x00000001 */
  5740. #define EXTI_IMR2_IM32 EXTI_IMR2_IM32_Msk /*!< Interrupt Mask on line 32 */
  5741. #define EXTI_IMR2_IM33_Pos (1U)
  5742. #define EXTI_IMR2_IM33_Msk (0x1UL << EXTI_IMR2_IM33_Pos) /*!< 0x00000002 */
  5743. #define EXTI_IMR2_IM33 EXTI_IMR2_IM33_Msk /*!< Interrupt Mask on line 33 */
  5744. #define EXTI_IMR2_IM34_Pos (2U)
  5745. #define EXTI_IMR2_IM34_Msk (0x1UL << EXTI_IMR2_IM34_Pos) /*!< 0x00000004 */
  5746. #define EXTI_IMR2_IM34 EXTI_IMR2_IM34_Msk /*!< Interrupt Mask on line 34 */
  5747. #define EXTI_IMR2_IM35_Pos (3U)
  5748. #define EXTI_IMR2_IM35_Msk (0x1UL << EXTI_IMR2_IM35_Pos) /*!< 0x00000008 */
  5749. #define EXTI_IMR2_IM35 EXTI_IMR2_IM35_Msk /*!< Interrupt Mask on line 35 */
  5750. #define EXTI_IMR2_IM36_Pos (4U)
  5751. #define EXTI_IMR2_IM36_Msk (0x1UL << EXTI_IMR2_IM36_Pos) /*!< 0x00000010 */
  5752. #define EXTI_IMR2_IM36 EXTI_IMR2_IM36_Msk /*!< Interrupt Mask on line 36 */
  5753. #define EXTI_IMR2_IM37_Pos (5U)
  5754. #define EXTI_IMR2_IM37_Msk (0x1UL << EXTI_IMR2_IM37_Pos) /*!< 0x00000020 */
  5755. #define EXTI_IMR2_IM37 EXTI_IMR2_IM37_Msk /*!< Interrupt Mask on line 37 */
  5756. #define EXTI_IMR2_IM38_Pos (6U)
  5757. #define EXTI_IMR2_IM38_Msk (0x1UL << EXTI_IMR2_IM38_Pos) /*!< 0x00000040 */
  5758. #define EXTI_IMR2_IM38 EXTI_IMR2_IM38_Msk /*!< Interrupt Mask on line 38 */
  5759. #define EXTI_IMR2_IM40_Pos (8U)
  5760. #define EXTI_IMR2_IM40_Msk (0x1UL << EXTI_IMR2_IM40_Pos) /*!< 0x00000100 */
  5761. #define EXTI_IMR2_IM40 EXTI_IMR2_IM40_Msk /*!< Interrupt Mask on line 40 */
  5762. #define EXTI_IMR2_IM41_Pos (9U)
  5763. #define EXTI_IMR2_IM41_Msk (0x1UL << EXTI_IMR2_IM41_Pos) /*!< 0x00000200 */
  5764. #define EXTI_IMR2_IM41 EXTI_IMR2_IM41_Msk /*!< Interrupt Mask on line 41 */
  5765. #define EXTI_IMR2_IM42_Pos (10U)
  5766. #define EXTI_IMR2_IM42_Msk (0x1UL << EXTI_IMR2_IM42_Pos) /*!< 0x00000400 */
  5767. #define EXTI_IMR2_IM42 EXTI_IMR2_IM42_Msk /*!< Interrupt Mask on line 42 */
  5768. #define EXTI_IMR2_IM_Pos (0U)
  5769. #define EXTI_IMR2_IM_Msk (0x77FUL << EXTI_IMR2_IM_Pos) /*!< 0x0000077F */
  5770. #define EXTI_IMR2_IM EXTI_IMR2_IM_Msk /*!< Interrupt Mask All */
  5771. /******************* Bit definition for EXTI_EMR1 register *****************/
  5772. #define EXTI_EMR1_EM0_Pos (0U)
  5773. #define EXTI_EMR1_EM0_Msk (0x1UL << EXTI_EMR1_EM0_Pos) /*!< 0x00000001 */
  5774. #define EXTI_EMR1_EM0 EXTI_EMR1_EM0_Msk /*!< Event Mask on line 0 */
  5775. #define EXTI_EMR1_EM1_Pos (1U)
  5776. #define EXTI_EMR1_EM1_Msk (0x1UL << EXTI_EMR1_EM1_Pos) /*!< 0x00000002 */
  5777. #define EXTI_EMR1_EM1 EXTI_EMR1_EM1_Msk /*!< Event Mask on line 1 */
  5778. #define EXTI_EMR1_EM2_Pos (2U)
  5779. #define EXTI_EMR1_EM2_Msk (0x1UL << EXTI_EMR1_EM2_Pos) /*!< 0x00000004 */
  5780. #define EXTI_EMR1_EM2 EXTI_EMR1_EM2_Msk /*!< Event Mask on line 2 */
  5781. #define EXTI_EMR1_EM3_Pos (3U)
  5782. #define EXTI_EMR1_EM3_Msk (0x1UL << EXTI_EMR1_EM3_Pos) /*!< 0x00000008 */
  5783. #define EXTI_EMR1_EM3 EXTI_EMR1_EM3_Msk /*!< Event Mask on line 3 */
  5784. #define EXTI_EMR1_EM4_Pos (4U)
  5785. #define EXTI_EMR1_EM4_Msk (0x1UL << EXTI_EMR1_EM4_Pos) /*!< 0x00000010 */
  5786. #define EXTI_EMR1_EM4 EXTI_EMR1_EM4_Msk /*!< Event Mask on line 4 */
  5787. #define EXTI_EMR1_EM5_Pos (5U)
  5788. #define EXTI_EMR1_EM5_Msk (0x1UL << EXTI_EMR1_EM5_Pos) /*!< 0x00000020 */
  5789. #define EXTI_EMR1_EM5 EXTI_EMR1_EM5_Msk /*!< Event Mask on line 5 */
  5790. #define EXTI_EMR1_EM6_Pos (6U)
  5791. #define EXTI_EMR1_EM6_Msk (0x1UL << EXTI_EMR1_EM6_Pos) /*!< 0x00000040 */
  5792. #define EXTI_EMR1_EM6 EXTI_EMR1_EM6_Msk /*!< Event Mask on line 6 */
  5793. #define EXTI_EMR1_EM7_Pos (7U)
  5794. #define EXTI_EMR1_EM7_Msk (0x1UL << EXTI_EMR1_EM7_Pos) /*!< 0x00000080 */
  5795. #define EXTI_EMR1_EM7 EXTI_EMR1_EM7_Msk /*!< Event Mask on line 7 */
  5796. #define EXTI_EMR1_EM8_Pos (8U)
  5797. #define EXTI_EMR1_EM8_Msk (0x1UL << EXTI_EMR1_EM8_Pos) /*!< 0x00000100 */
  5798. #define EXTI_EMR1_EM8 EXTI_EMR1_EM8_Msk /*!< Event Mask on line 8 */
  5799. #define EXTI_EMR1_EM9_Pos (9U)
  5800. #define EXTI_EMR1_EM9_Msk (0x1UL << EXTI_EMR1_EM9_Pos) /*!< 0x00000200 */
  5801. #define EXTI_EMR1_EM9 EXTI_EMR1_EM9_Msk /*!< Event Mask on line 9 */
  5802. #define EXTI_EMR1_EM10_Pos (10U)
  5803. #define EXTI_EMR1_EM10_Msk (0x1UL << EXTI_EMR1_EM10_Pos) /*!< 0x00000400 */
  5804. #define EXTI_EMR1_EM10 EXTI_EMR1_EM10_Msk /*!< Event Mask on line 10 */
  5805. #define EXTI_EMR1_EM11_Pos (11U)
  5806. #define EXTI_EMR1_EM11_Msk (0x1UL << EXTI_EMR1_EM11_Pos) /*!< 0x00000800 */
  5807. #define EXTI_EMR1_EM11 EXTI_EMR1_EM11_Msk /*!< Event Mask on line 11 */
  5808. #define EXTI_EMR1_EM12_Pos (12U)
  5809. #define EXTI_EMR1_EM12_Msk (0x1UL << EXTI_EMR1_EM12_Pos) /*!< 0x00001000 */
  5810. #define EXTI_EMR1_EM12 EXTI_EMR1_EM12_Msk /*!< Event Mask on line 12 */
  5811. #define EXTI_EMR1_EM13_Pos (13U)
  5812. #define EXTI_EMR1_EM13_Msk (0x1UL << EXTI_EMR1_EM13_Pos) /*!< 0x00002000 */
  5813. #define EXTI_EMR1_EM13 EXTI_EMR1_EM13_Msk /*!< Event Mask on line 13 */
  5814. #define EXTI_EMR1_EM14_Pos (14U)
  5815. #define EXTI_EMR1_EM14_Msk (0x1UL << EXTI_EMR1_EM14_Pos) /*!< 0x00004000 */
  5816. #define EXTI_EMR1_EM14 EXTI_EMR1_EM14_Msk /*!< Event Mask on line 14 */
  5817. #define EXTI_EMR1_EM15_Pos (15U)
  5818. #define EXTI_EMR1_EM15_Msk (0x1UL << EXTI_EMR1_EM15_Pos) /*!< 0x00008000 */
  5819. #define EXTI_EMR1_EM15 EXTI_EMR1_EM15_Msk /*!< Event Mask on line 15 */
  5820. #define EXTI_EMR1_EM16_Pos (16U)
  5821. #define EXTI_EMR1_EM16_Msk (0x1UL << EXTI_EMR1_EM16_Pos) /*!< 0x00010000 */
  5822. #define EXTI_EMR1_EM16 EXTI_EMR1_EM16_Msk /*!< Event Mask on line 16 */
  5823. #define EXTI_EMR1_EM17_Pos (17U)
  5824. #define EXTI_EMR1_EM17_Msk (0x1UL << EXTI_EMR1_EM17_Pos) /*!< 0x00020000 */
  5825. #define EXTI_EMR1_EM17 EXTI_EMR1_EM17_Msk /*!< Event Mask on line 17 */
  5826. #define EXTI_EMR1_EM18_Pos (18U)
  5827. #define EXTI_EMR1_EM18_Msk (0x1UL << EXTI_EMR1_EM18_Pos) /*!< 0x00040000 */
  5828. #define EXTI_EMR1_EM18 EXTI_EMR1_EM18_Msk /*!< Event Mask on line 18 */
  5829. #define EXTI_EMR1_EM19_Pos (19U)
  5830. #define EXTI_EMR1_EM19_Msk (0x1UL << EXTI_EMR1_EM19_Pos) /*!< 0x00080000 */
  5831. #define EXTI_EMR1_EM19 EXTI_EMR1_EM19_Msk /*!< Event Mask on line 19 */
  5832. #define EXTI_EMR1_EM20_Pos (20U)
  5833. #define EXTI_EMR1_EM20_Msk (0x1UL << EXTI_EMR1_EM20_Pos) /*!< 0x00100000 */
  5834. #define EXTI_EMR1_EM20 EXTI_EMR1_EM20_Msk /*!< Event Mask on line 20 */
  5835. #define EXTI_EMR1_EM21_Pos (21U)
  5836. #define EXTI_EMR1_EM21_Msk (0x1UL << EXTI_EMR1_EM21_Pos) /*!< 0x00200000 */
  5837. #define EXTI_EMR1_EM21 EXTI_EMR1_EM21_Msk /*!< Event Mask on line 21 */
  5838. #define EXTI_EMR1_EM22_Pos (22U)
  5839. #define EXTI_EMR1_EM22_Msk (0x1UL << EXTI_EMR1_EM22_Pos) /*!< 0x00400000 */
  5840. #define EXTI_EMR1_EM22 EXTI_EMR1_EM22_Msk /*!< Event Mask on line 22 */
  5841. #define EXTI_EMR1_EM23_Pos (23U)
  5842. #define EXTI_EMR1_EM23_Msk (0x1UL << EXTI_EMR1_EM23_Pos) /*!< 0x00800000 */
  5843. #define EXTI_EMR1_EM23 EXTI_EMR1_EM23_Msk /*!< Event Mask on line 23 */
  5844. #define EXTI_EMR1_EM24_Pos (24U)
  5845. #define EXTI_EMR1_EM24_Msk (0x1UL << EXTI_EMR1_EM24_Pos) /*!< 0x01000000 */
  5846. #define EXTI_EMR1_EM24 EXTI_EMR1_EM24_Msk /*!< Event Mask on line 24 */
  5847. #define EXTI_EMR1_EM25_Pos (25U)
  5848. #define EXTI_EMR1_EM25_Msk (0x1UL << EXTI_EMR1_EM25_Pos) /*!< 0x02000000 */
  5849. #define EXTI_EMR1_EM25 EXTI_EMR1_EM25_Msk /*!< Event Mask on line 25 */
  5850. #define EXTI_EMR1_EM26_Pos (26U)
  5851. #define EXTI_EMR1_EM26_Msk (0x1UL << EXTI_EMR1_EM26_Pos) /*!< 0x04000000 */
  5852. #define EXTI_EMR1_EM26 EXTI_EMR1_EM26_Msk /*!< Event Mask on line 26 */
  5853. #define EXTI_EMR1_EM27_Pos (27U)
  5854. #define EXTI_EMR1_EM27_Msk (0x1UL << EXTI_EMR1_EM27_Pos) /*!< 0x08000000 */
  5855. #define EXTI_EMR1_EM27 EXTI_EMR1_EM27_Msk /*!< Event Mask on line 27 */
  5856. #define EXTI_EMR1_EM28_Pos (28U)
  5857. #define EXTI_EMR1_EM28_Msk (0x1UL << EXTI_EMR1_EM28_Pos) /*!< 0x10000000 */
  5858. #define EXTI_EMR1_EM28 EXTI_EMR1_EM28_Msk /*!< Event Mask on line 28 */
  5859. #define EXTI_EMR1_EM29_Pos (29U)
  5860. #define EXTI_EMR1_EM29_Msk (0x1UL << EXTI_EMR1_EM29_Pos) /*!< 0x20000000 */
  5861. #define EXTI_EMR1_EM29 EXTI_EMR1_EM29_Msk /*!< Event Mask on line 29 */
  5862. #define EXTI_EMR1_EM30_Pos (30U)
  5863. #define EXTI_EMR1_EM30_Msk (0x1UL << EXTI_EMR1_EM30_Pos) /*!< 0x40000000 */
  5864. #define EXTI_EMR1_EM30 EXTI_EMR1_EM30_Msk /*!< Event Mask on line 30 */
  5865. #define EXTI_EMR1_EM31_Pos (31U)
  5866. #define EXTI_EMR1_EM31_Msk (0x1UL << EXTI_EMR1_EM31_Pos) /*!< 0x80000000 */
  5867. #define EXTI_EMR1_EM31 EXTI_EMR1_EM31_Msk /*!< Event Mask on line 31 */
  5868. #define EXTI_EMR1_EM_Pos (0U)
  5869. #define EXTI_EMR1_EM_Msk (0xFFFFFFFFUL << EXTI_EMR1_EM_Pos) /*!< 0xFFFFFFFF */
  5870. #define EXTI_EMR1_EM EXTI_EMR1_EM_Msk /*!< Event Mask All */
  5871. /******************* Bit definition for EXTI_EMR2 register *****************/
  5872. #define EXTI_EMR2_EM32_Pos (0U)
  5873. #define EXTI_EMR2_EM32_Msk (0x1UL << EXTI_EMR2_EM32_Pos) /*!< 0x00000001 */
  5874. #define EXTI_EMR2_EM32 EXTI_EMR2_EM32_Msk /*!< Event Mask on line 32 */
  5875. #define EXTI_EMR2_EM33_Pos (1U)
  5876. #define EXTI_EMR2_EM33_Msk (0x1UL << EXTI_EMR2_EM33_Pos) /*!< 0x00000002 */
  5877. #define EXTI_EMR2_EM33 EXTI_EMR2_EM33_Msk /*!< Event Mask on line 33 */
  5878. #define EXTI_EMR2_EM34_Pos (2U)
  5879. #define EXTI_EMR2_EM34_Msk (0x1UL << EXTI_EMR2_EM34_Pos) /*!< 0x00000004 */
  5880. #define EXTI_EMR2_EM34 EXTI_EMR2_EM34_Msk /*!< Event Mask on line 34 */
  5881. #define EXTI_EMR2_EM35_Pos (3U)
  5882. #define EXTI_EMR2_EM35_Msk (0x1UL << EXTI_EMR2_EM35_Pos) /*!< 0x00000008 */
  5883. #define EXTI_EMR2_EM35 EXTI_EMR2_EM35_Msk /*!< Event Mask on line 35 */
  5884. #define EXTI_EMR2_EM36_Pos (4U)
  5885. #define EXTI_EMR2_EM36_Msk (0x1UL << EXTI_EMR2_EM36_Pos) /*!< 0x00000010 */
  5886. #define EXTI_EMR2_EM36 EXTI_EMR2_EM36_Msk /*!< Event Mask on line 36 */
  5887. #define EXTI_EMR2_EM37_Pos (5U)
  5888. #define EXTI_EMR2_EM37_Msk (0x1UL << EXTI_EMR2_EM37_Pos) /*!< 0x00000020 */
  5889. #define EXTI_EMR2_EM37 EXTI_EMR2_EM37_Msk /*!< Event Mask on line 37 */
  5890. #define EXTI_EMR2_EM38_Pos (6U)
  5891. #define EXTI_EMR2_EM38_Msk (0x1UL << EXTI_EMR2_EM38_Pos) /*!< 0x00000040 */
  5892. #define EXTI_EMR2_EM38 EXTI_EMR2_EM38_Msk /*!< Event Mask on line 38 */
  5893. #define EXTI_EMR2_EM40_Pos (8U)
  5894. #define EXTI_EMR2_EM40_Msk (0x1UL << EXTI_EMR2_EM40_Pos) /*!< 0x00000100 */
  5895. #define EXTI_EMR2_EM40 EXTI_EMR2_EM40_Msk /*!< Event Mask on line 40 */
  5896. #define EXTI_EMR2_EM41_Pos (9U)
  5897. #define EXTI_EMR2_EM41_Msk (0x1UL << EXTI_EMR2_EM41_Pos) /*!< 0x00000200 */
  5898. #define EXTI_EMR2_EM41 EXTI_EMR2_EM41_Msk /*!< Event Mask on line 41 */
  5899. #define EXTI_EMR2_EM42_Pos (10U)
  5900. #define EXTI_EMR2_EM42_Msk (0x1UL << EXTI_EMR2_EM42_Pos) /*!< 0x00000400 */
  5901. #define EXTI_EMR2_EM42 EXTI_EMR2_EM42_Msk /*!< Event Mask on line 42 */
  5902. #define EXTI_EMR2_EM_Pos (0U)
  5903. #define EXTI_EMR2_EM_Msk (0x77FUL << EXTI_EMR2_EM_Pos) /*!< 0x0000077F */
  5904. #define EXTI_EMR2_EM EXTI_EMR2_EM_Msk /*!< Event Mask All */
  5905. /******************************************************************************/
  5906. /* */
  5907. /* Flexible Datarate Controller Area Network */
  5908. /* */
  5909. /******************************************************************************/
  5910. /*!<FDCAN control and status registers */
  5911. /***************** Bit definition for FDCAN_CREL register *******************/
  5912. #define FDCAN_CREL_DAY_Pos (0U)
  5913. #define FDCAN_CREL_DAY_Msk (0xFFUL << FDCAN_CREL_DAY_Pos) /*!< 0x000000FF */
  5914. #define FDCAN_CREL_DAY FDCAN_CREL_DAY_Msk /*!<Timestamp Day */
  5915. #define FDCAN_CREL_MON_Pos (8U)
  5916. #define FDCAN_CREL_MON_Msk (0xFFUL << FDCAN_CREL_MON_Pos) /*!< 0x0000FF00 */
  5917. #define FDCAN_CREL_MON FDCAN_CREL_MON_Msk /*!<Timestamp Month */
  5918. #define FDCAN_CREL_YEAR_Pos (16U)
  5919. #define FDCAN_CREL_YEAR_Msk (0xFUL << FDCAN_CREL_YEAR_Pos) /*!< 0x000F0000 */
  5920. #define FDCAN_CREL_YEAR FDCAN_CREL_YEAR_Msk /*!<Timestamp Year */
  5921. #define FDCAN_CREL_SUBSTEP_Pos (20U)
  5922. #define FDCAN_CREL_SUBSTEP_Msk (0xFUL << FDCAN_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  5923. #define FDCAN_CREL_SUBSTEP FDCAN_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  5924. #define FDCAN_CREL_STEP_Pos (24U)
  5925. #define FDCAN_CREL_STEP_Msk (0xFUL << FDCAN_CREL_STEP_Pos) /*!< 0x0F000000 */
  5926. #define FDCAN_CREL_STEP FDCAN_CREL_STEP_Msk /*!<Step of Core release */
  5927. #define FDCAN_CREL_REL_Pos (28U)
  5928. #define FDCAN_CREL_REL_Msk (0xFUL << FDCAN_CREL_REL_Pos) /*!< 0xF0000000 */
  5929. #define FDCAN_CREL_REL FDCAN_CREL_REL_Msk /*!<Core release */
  5930. /***************** Bit definition for FDCAN_ENDN register *******************/
  5931. #define FDCAN_ENDN_ETV_Pos (0U)
  5932. #define FDCAN_ENDN_ETV_Msk (0xFFFFFFFFUL << FDCAN_ENDN_ETV_Pos) /*!< 0xFFFFFFFF */
  5933. #define FDCAN_ENDN_ETV FDCAN_ENDN_ETV_Msk /*!<Endiannes Test Value */
  5934. /***************** Bit definition for FDCAN_DBTP register *******************/
  5935. #define FDCAN_DBTP_DSJW_Pos (0U)
  5936. #define FDCAN_DBTP_DSJW_Msk (0xFUL << FDCAN_DBTP_DSJW_Pos) /*!< 0x0000000F */
  5937. #define FDCAN_DBTP_DSJW FDCAN_DBTP_DSJW_Msk /*!<Synchronization Jump Width */
  5938. #define FDCAN_DBTP_DTSEG2_Pos (4U)
  5939. #define FDCAN_DBTP_DTSEG2_Msk (0xFUL << FDCAN_DBTP_DTSEG2_Pos) /*!< 0x000000F0 */
  5940. #define FDCAN_DBTP_DTSEG2 FDCAN_DBTP_DTSEG2_Msk /*!<Data time segment after sample point */
  5941. #define FDCAN_DBTP_DTSEG1_Pos (8U)
  5942. #define FDCAN_DBTP_DTSEG1_Msk (0x1FUL << FDCAN_DBTP_DTSEG1_Pos) /*!< 0x00001F00 */
  5943. #define FDCAN_DBTP_DTSEG1 FDCAN_DBTP_DTSEG1_Msk /*!<Data time segment before sample point */
  5944. #define FDCAN_DBTP_DBRP_Pos (16U)
  5945. #define FDCAN_DBTP_DBRP_Msk (0x1FUL << FDCAN_DBTP_DBRP_Pos) /*!< 0x001F0000 */
  5946. #define FDCAN_DBTP_DBRP FDCAN_DBTP_DBRP_Msk /*!<Data BIt Rate Prescaler */
  5947. #define FDCAN_DBTP_TDC_Pos (23U)
  5948. #define FDCAN_DBTP_TDC_Msk (0x1UL << FDCAN_DBTP_TDC_Pos) /*!< 0x00800000 */
  5949. #define FDCAN_DBTP_TDC FDCAN_DBTP_TDC_Msk /*!<Transceiver Delay Compensation */
  5950. /***************** Bit definition for FDCAN_TEST register *******************/
  5951. #define FDCAN_TEST_LBCK_Pos (4U)
  5952. #define FDCAN_TEST_LBCK_Msk (0x1UL << FDCAN_TEST_LBCK_Pos) /*!< 0x00000010 */
  5953. #define FDCAN_TEST_LBCK FDCAN_TEST_LBCK_Msk /*!<Loop Back mode */
  5954. #define FDCAN_TEST_TX_Pos (5U)
  5955. #define FDCAN_TEST_TX_Msk (0x3UL << FDCAN_TEST_TX_Pos) /*!< 0x00000060 */
  5956. #define FDCAN_TEST_TX FDCAN_TEST_TX_Msk /*!<Control of Transmit Pin */
  5957. #define FDCAN_TEST_RX_Pos (7U)
  5958. #define FDCAN_TEST_RX_Msk (0x1UL << FDCAN_TEST_RX_Pos) /*!< 0x00000080 */
  5959. #define FDCAN_TEST_RX FDCAN_TEST_RX_Msk /*!<Receive Pin */
  5960. /***************** Bit definition for FDCAN_RWD register ********************/
  5961. #define FDCAN_RWD_WDC_Pos (0U)
  5962. #define FDCAN_RWD_WDC_Msk (0xFFUL << FDCAN_RWD_WDC_Pos) /*!< 0x000000FF */
  5963. #define FDCAN_RWD_WDC FDCAN_RWD_WDC_Msk /*!<Watchdog configuration */
  5964. #define FDCAN_RWD_WDV_Pos (8U)
  5965. #define FDCAN_RWD_WDV_Msk (0xFFUL << FDCAN_RWD_WDV_Pos) /*!< 0x0000FF00 */
  5966. #define FDCAN_RWD_WDV FDCAN_RWD_WDV_Msk /*!<Watchdog value */
  5967. /***************** Bit definition for FDCAN_CCCR register ********************/
  5968. #define FDCAN_CCCR_INIT_Pos (0U)
  5969. #define FDCAN_CCCR_INIT_Msk (0x1UL << FDCAN_CCCR_INIT_Pos) /*!< 0x00000001 */
  5970. #define FDCAN_CCCR_INIT FDCAN_CCCR_INIT_Msk /*!<Initialization */
  5971. #define FDCAN_CCCR_CCE_Pos (1U)
  5972. #define FDCAN_CCCR_CCE_Msk (0x1UL << FDCAN_CCCR_CCE_Pos) /*!< 0x00000002 */
  5973. #define FDCAN_CCCR_CCE FDCAN_CCCR_CCE_Msk /*!<Configuration Change Enable */
  5974. #define FDCAN_CCCR_ASM_Pos (2U)
  5975. #define FDCAN_CCCR_ASM_Msk (0x1UL << FDCAN_CCCR_ASM_Pos) /*!< 0x00000004 */
  5976. #define FDCAN_CCCR_ASM FDCAN_CCCR_ASM_Msk /*!<ASM Restricted Operation Mode */
  5977. #define FDCAN_CCCR_CSA_Pos (3U)
  5978. #define FDCAN_CCCR_CSA_Msk (0x1UL << FDCAN_CCCR_CSA_Pos) /*!< 0x00000008 */
  5979. #define FDCAN_CCCR_CSA FDCAN_CCCR_CSA_Msk /*!<Clock Stop Acknowledge */
  5980. #define FDCAN_CCCR_CSR_Pos (4U)
  5981. #define FDCAN_CCCR_CSR_Msk (0x1UL << FDCAN_CCCR_CSR_Pos) /*!< 0x00000010 */
  5982. #define FDCAN_CCCR_CSR FDCAN_CCCR_CSR_Msk /*!<Clock Stop Request */
  5983. #define FDCAN_CCCR_MON_Pos (5U)
  5984. #define FDCAN_CCCR_MON_Msk (0x1UL << FDCAN_CCCR_MON_Pos) /*!< 0x00000020 */
  5985. #define FDCAN_CCCR_MON FDCAN_CCCR_MON_Msk /*!<Bus Monitoring Mode */
  5986. #define FDCAN_CCCR_DAR_Pos (6U)
  5987. #define FDCAN_CCCR_DAR_Msk (0x1UL << FDCAN_CCCR_DAR_Pos) /*!< 0x00000040 */
  5988. #define FDCAN_CCCR_DAR FDCAN_CCCR_DAR_Msk /*!<Disable Automatic Retransmission */
  5989. #define FDCAN_CCCR_TEST_Pos (7U)
  5990. #define FDCAN_CCCR_TEST_Msk (0x1UL << FDCAN_CCCR_TEST_Pos) /*!< 0x00000080 */
  5991. #define FDCAN_CCCR_TEST FDCAN_CCCR_TEST_Msk /*!<Test Mode Enable */
  5992. #define FDCAN_CCCR_FDOE_Pos (8U)
  5993. #define FDCAN_CCCR_FDOE_Msk (0x1UL << FDCAN_CCCR_FDOE_Pos) /*!< 0x00000100 */
  5994. #define FDCAN_CCCR_FDOE FDCAN_CCCR_FDOE_Msk /*!<FD Operation Enable */
  5995. #define FDCAN_CCCR_BRSE_Pos (9U)
  5996. #define FDCAN_CCCR_BRSE_Msk (0x1UL << FDCAN_CCCR_BRSE_Pos) /*!< 0x00000200 */
  5997. #define FDCAN_CCCR_BRSE FDCAN_CCCR_BRSE_Msk /*!<FDCAN Bit Rate Switching */
  5998. #define FDCAN_CCCR_PXHD_Pos (12U)
  5999. #define FDCAN_CCCR_PXHD_Msk (0x1UL << FDCAN_CCCR_PXHD_Pos) /*!< 0x00001000 */
  6000. #define FDCAN_CCCR_PXHD FDCAN_CCCR_PXHD_Msk /*!<Protocol Exception Handling Disable */
  6001. #define FDCAN_CCCR_EFBI_Pos (13U)
  6002. #define FDCAN_CCCR_EFBI_Msk (0x1UL << FDCAN_CCCR_EFBI_Pos) /*!< 0x00002000 */
  6003. #define FDCAN_CCCR_EFBI FDCAN_CCCR_EFBI_Msk /*!<Edge Filtering during Bus Integration */
  6004. #define FDCAN_CCCR_TXP_Pos (14U)
  6005. #define FDCAN_CCCR_TXP_Msk (0x1UL << FDCAN_CCCR_TXP_Pos) /*!< 0x00004000 */
  6006. #define FDCAN_CCCR_TXP FDCAN_CCCR_TXP_Msk /*!<Two CAN bit times Pause */
  6007. #define FDCAN_CCCR_NISO_Pos (15U)
  6008. #define FDCAN_CCCR_NISO_Msk (0x1UL << FDCAN_CCCR_NISO_Pos) /*!< 0x00008000 */
  6009. #define FDCAN_CCCR_NISO FDCAN_CCCR_NISO_Msk /*!<Non ISO Operation */
  6010. /***************** Bit definition for FDCAN_NBTP register ********************/
  6011. #define FDCAN_NBTP_NTSEG2_Pos (0U)
  6012. #define FDCAN_NBTP_NTSEG2_Msk (0x7FUL << FDCAN_NBTP_NTSEG2_Pos) /*!< 0x0000007F */
  6013. #define FDCAN_NBTP_NTSEG2 FDCAN_NBTP_NTSEG2_Msk /*!<Nominal Time segment after sample point */
  6014. #define FDCAN_NBTP_NTSEG1_Pos (8U)
  6015. #define FDCAN_NBTP_NTSEG1_Msk (0xFFUL << FDCAN_NBTP_NTSEG1_Pos) /*!< 0x0000FF00 */
  6016. #define FDCAN_NBTP_NTSEG1 FDCAN_NBTP_NTSEG1_Msk /*!<Nominal Time segment before sample point */
  6017. #define FDCAN_NBTP_NBRP_Pos (16U)
  6018. #define FDCAN_NBTP_NBRP_Msk (0x1FFUL << FDCAN_NBTP_NBRP_Pos) /*!< 0x01FF0000 */
  6019. #define FDCAN_NBTP_NBRP FDCAN_NBTP_NBRP_Msk /*!<Bit Rate Prescaler */
  6020. #define FDCAN_NBTP_NSJW_Pos (25U)
  6021. #define FDCAN_NBTP_NSJW_Msk (0x7FUL << FDCAN_NBTP_NSJW_Pos) /*!< 0xFE000000 */
  6022. #define FDCAN_NBTP_NSJW FDCAN_NBTP_NSJW_Msk /*!<Nominal (Re)Synchronization Jump Width */
  6023. /***************** Bit definition for FDCAN_TSCC register ********************/
  6024. #define FDCAN_TSCC_TSS_Pos (0U)
  6025. #define FDCAN_TSCC_TSS_Msk (0x3UL << FDCAN_TSCC_TSS_Pos) /*!< 0x00000003 */
  6026. #define FDCAN_TSCC_TSS FDCAN_TSCC_TSS_Msk /*!<Timestamp Select */
  6027. #define FDCAN_TSCC_TCP_Pos (16U)
  6028. #define FDCAN_TSCC_TCP_Msk (0xFUL << FDCAN_TSCC_TCP_Pos) /*!< 0x000F0000 */
  6029. #define FDCAN_TSCC_TCP FDCAN_TSCC_TCP_Msk /*!<Timestamp Counter Prescaler */
  6030. /***************** Bit definition for FDCAN_TSCV register ********************/
  6031. #define FDCAN_TSCV_TSC_Pos (0U)
  6032. #define FDCAN_TSCV_TSC_Msk (0xFFFFUL << FDCAN_TSCV_TSC_Pos) /*!< 0x0000FFFF */
  6033. #define FDCAN_TSCV_TSC FDCAN_TSCV_TSC_Msk /*!<Timestamp Counter */
  6034. /***************** Bit definition for FDCAN_TOCC register ********************/
  6035. #define FDCAN_TOCC_ETOC_Pos (0U)
  6036. #define FDCAN_TOCC_ETOC_Msk (0x1UL << FDCAN_TOCC_ETOC_Pos) /*!< 0x00000001 */
  6037. #define FDCAN_TOCC_ETOC FDCAN_TOCC_ETOC_Msk /*!<Enable Timeout Counter */
  6038. #define FDCAN_TOCC_TOS_Pos (1U)
  6039. #define FDCAN_TOCC_TOS_Msk (0x3UL << FDCAN_TOCC_TOS_Pos) /*!< 0x00000006 */
  6040. #define FDCAN_TOCC_TOS FDCAN_TOCC_TOS_Msk /*!<Timeout Select */
  6041. #define FDCAN_TOCC_TOP_Pos (16U)
  6042. #define FDCAN_TOCC_TOP_Msk (0xFFFFUL << FDCAN_TOCC_TOP_Pos) /*!< 0xFFFF0000 */
  6043. #define FDCAN_TOCC_TOP FDCAN_TOCC_TOP_Msk /*!<Timeout Period */
  6044. /***************** Bit definition for FDCAN_TOCV register ********************/
  6045. #define FDCAN_TOCV_TOC_Pos (0U)
  6046. #define FDCAN_TOCV_TOC_Msk (0xFFFFUL << FDCAN_TOCV_TOC_Pos) /*!< 0x0000FFFF */
  6047. #define FDCAN_TOCV_TOC FDCAN_TOCV_TOC_Msk /*!<Timeout Counter */
  6048. /***************** Bit definition for FDCAN_ECR register *********************/
  6049. #define FDCAN_ECR_TEC_Pos (0U)
  6050. #define FDCAN_ECR_TEC_Msk (0xFFUL << FDCAN_ECR_TEC_Pos) /*!< 0x000000FF */
  6051. #define FDCAN_ECR_TEC FDCAN_ECR_TEC_Msk /*!<Transmit Error Counter */
  6052. #define FDCAN_ECR_REC_Pos (8U)
  6053. #define FDCAN_ECR_REC_Msk (0x7FUL << FDCAN_ECR_REC_Pos) /*!< 0x00007F00 */
  6054. #define FDCAN_ECR_REC FDCAN_ECR_REC_Msk /*!<Receive Error Counter */
  6055. #define FDCAN_ECR_RP_Pos (15U)
  6056. #define FDCAN_ECR_RP_Msk (0x1UL << FDCAN_ECR_RP_Pos) /*!< 0x00008000 */
  6057. #define FDCAN_ECR_RP FDCAN_ECR_RP_Msk /*!<Receive Error Passive */
  6058. #define FDCAN_ECR_CEL_Pos (16U)
  6059. #define FDCAN_ECR_CEL_Msk (0xFFUL << FDCAN_ECR_CEL_Pos) /*!< 0x00FF0000 */
  6060. #define FDCAN_ECR_CEL FDCAN_ECR_CEL_Msk /*!<CAN Error Logging */
  6061. /***************** Bit definition for FDCAN_PSR register *********************/
  6062. #define FDCAN_PSR_LEC_Pos (0U)
  6063. #define FDCAN_PSR_LEC_Msk (0x7UL << FDCAN_PSR_LEC_Pos) /*!< 0x00000007 */
  6064. #define FDCAN_PSR_LEC FDCAN_PSR_LEC_Msk /*!<Last Error Code */
  6065. #define FDCAN_PSR_ACT_Pos (3U)
  6066. #define FDCAN_PSR_ACT_Msk (0x3UL << FDCAN_PSR_ACT_Pos) /*!< 0x00000018 */
  6067. #define FDCAN_PSR_ACT FDCAN_PSR_ACT_Msk /*!<Activity */
  6068. #define FDCAN_PSR_EP_Pos (5U)
  6069. #define FDCAN_PSR_EP_Msk (0x1UL << FDCAN_PSR_EP_Pos) /*!< 0x00000020 */
  6070. #define FDCAN_PSR_EP FDCAN_PSR_EP_Msk /*!<Error Passive */
  6071. #define FDCAN_PSR_EW_Pos (6U)
  6072. #define FDCAN_PSR_EW_Msk (0x1UL << FDCAN_PSR_EW_Pos) /*!< 0x00000040 */
  6073. #define FDCAN_PSR_EW FDCAN_PSR_EW_Msk /*!<Warning Status */
  6074. #define FDCAN_PSR_BO_Pos (7U)
  6075. #define FDCAN_PSR_BO_Msk (0x1UL << FDCAN_PSR_BO_Pos) /*!< 0x00000080 */
  6076. #define FDCAN_PSR_BO FDCAN_PSR_BO_Msk /*!<Bus_Off Status */
  6077. #define FDCAN_PSR_DLEC_Pos (8U)
  6078. #define FDCAN_PSR_DLEC_Msk (0x7UL << FDCAN_PSR_DLEC_Pos) /*!< 0x00000700 */
  6079. #define FDCAN_PSR_DLEC FDCAN_PSR_DLEC_Msk /*!<Data Last Error Code */
  6080. #define FDCAN_PSR_RESI_Pos (11U)
  6081. #define FDCAN_PSR_RESI_Msk (0x1UL << FDCAN_PSR_RESI_Pos) /*!< 0x00000800 */
  6082. #define FDCAN_PSR_RESI FDCAN_PSR_RESI_Msk /*!<ESI flag of last received FDCAN Message */
  6083. #define FDCAN_PSR_RBRS_Pos (12U)
  6084. #define FDCAN_PSR_RBRS_Msk (0x1UL << FDCAN_PSR_RBRS_Pos) /*!< 0x00001000 */
  6085. #define FDCAN_PSR_RBRS FDCAN_PSR_RBRS_Msk /*!<BRS flag of last received FDCAN Message */
  6086. #define FDCAN_PSR_REDL_Pos (13U)
  6087. #define FDCAN_PSR_REDL_Msk (0x1UL << FDCAN_PSR_REDL_Pos) /*!< 0x00002000 */
  6088. #define FDCAN_PSR_REDL FDCAN_PSR_REDL_Msk /*!<Received FDCAN Message */
  6089. #define FDCAN_PSR_PXE_Pos (14U)
  6090. #define FDCAN_PSR_PXE_Msk (0x1UL << FDCAN_PSR_PXE_Pos) /*!< 0x00004000 */
  6091. #define FDCAN_PSR_PXE FDCAN_PSR_PXE_Msk /*!<Protocol Exception Event */
  6092. #define FDCAN_PSR_TDCV_Pos (16U)
  6093. #define FDCAN_PSR_TDCV_Msk (0x7FUL << FDCAN_PSR_TDCV_Pos) /*!< 0x007F0000 */
  6094. #define FDCAN_PSR_TDCV FDCAN_PSR_TDCV_Msk /*!<Transmitter Delay Compensation Value */
  6095. /***************** Bit definition for FDCAN_TDCR register ********************/
  6096. #define FDCAN_TDCR_TDCF_Pos (0U)
  6097. #define FDCAN_TDCR_TDCF_Msk (0x7FUL << FDCAN_TDCR_TDCF_Pos) /*!< 0x0000007F */
  6098. #define FDCAN_TDCR_TDCF FDCAN_TDCR_TDCF_Msk /*!<Transmitter Delay Compensation Filter */
  6099. #define FDCAN_TDCR_TDCO_Pos (8U)
  6100. #define FDCAN_TDCR_TDCO_Msk (0x7FUL << FDCAN_TDCR_TDCO_Pos) /*!< 0x00007F00 */
  6101. #define FDCAN_TDCR_TDCO FDCAN_TDCR_TDCO_Msk /*!<Transmitter Delay Compensation Offset */
  6102. /***************** Bit definition for FDCAN_IR register **********************/
  6103. #define FDCAN_IR_RF0N_Pos (0U)
  6104. #define FDCAN_IR_RF0N_Msk (0x1UL << FDCAN_IR_RF0N_Pos) /*!< 0x00000001 */
  6105. #define FDCAN_IR_RF0N FDCAN_IR_RF0N_Msk /*!<Rx FIFO 0 New Message */
  6106. #define FDCAN_IR_RF0F_Pos (1U)
  6107. #define FDCAN_IR_RF0F_Msk (0x1UL << FDCAN_IR_RF0F_Pos) /*!< 0x00000002 */
  6108. #define FDCAN_IR_RF0F FDCAN_IR_RF0F_Msk /*!<Rx FIFO 0 Full */
  6109. #define FDCAN_IR_RF0L_Pos (2U)
  6110. #define FDCAN_IR_RF0L_Msk (0x1UL << FDCAN_IR_RF0L_Pos) /*!< 0x00000004 */
  6111. #define FDCAN_IR_RF0L FDCAN_IR_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  6112. #define FDCAN_IR_RF1N_Pos (3U)
  6113. #define FDCAN_IR_RF1N_Msk (0x1UL << FDCAN_IR_RF1N_Pos) /*!< 0x00000008 */
  6114. #define FDCAN_IR_RF1N FDCAN_IR_RF1N_Msk /*!<Rx FIFO 1 New Message */
  6115. #define FDCAN_IR_RF1F_Pos (4U)
  6116. #define FDCAN_IR_RF1F_Msk (0x1UL << FDCAN_IR_RF1F_Pos) /*!< 0x00000010 */
  6117. #define FDCAN_IR_RF1F FDCAN_IR_RF1F_Msk /*!<Rx FIFO 1 Full */
  6118. #define FDCAN_IR_RF1L_Pos (5U)
  6119. #define FDCAN_IR_RF1L_Msk (0x1UL << FDCAN_IR_RF1L_Pos) /*!< 0x00000020 */
  6120. #define FDCAN_IR_RF1L FDCAN_IR_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  6121. #define FDCAN_IR_HPM_Pos (6U)
  6122. #define FDCAN_IR_HPM_Msk (0x1UL << FDCAN_IR_HPM_Pos) /*!< 0x00000040 */
  6123. #define FDCAN_IR_HPM FDCAN_IR_HPM_Msk /*!<High Priority Message */
  6124. #define FDCAN_IR_TC_Pos (7U)
  6125. #define FDCAN_IR_TC_Msk (0x1UL << FDCAN_IR_TC_Pos) /*!< 0x00000080 */
  6126. #define FDCAN_IR_TC FDCAN_IR_TC_Msk /*!<Transmission Completed */
  6127. #define FDCAN_IR_TCF_Pos (8U)
  6128. #define FDCAN_IR_TCF_Msk (0x1UL << FDCAN_IR_TCF_Pos) /*!< 0x00000100 */
  6129. #define FDCAN_IR_TCF FDCAN_IR_TCF_Msk /*!<Transmission Cancellation Finished */
  6130. #define FDCAN_IR_TFE_Pos (9U)
  6131. #define FDCAN_IR_TFE_Msk (0x1UL << FDCAN_IR_TFE_Pos) /*!< 0x00000200 */
  6132. #define FDCAN_IR_TFE FDCAN_IR_TFE_Msk /*!<Tx FIFO Empty */
  6133. #define FDCAN_IR_TEFN_Pos (10U)
  6134. #define FDCAN_IR_TEFN_Msk (0x1UL << FDCAN_IR_TEFN_Pos) /*!< 0x00000400 */
  6135. #define FDCAN_IR_TEFN FDCAN_IR_TEFN_Msk /*!<Tx Event FIFO New Entry */
  6136. #define FDCAN_IR_TEFF_Pos (11U)
  6137. #define FDCAN_IR_TEFF_Msk (0x1UL << FDCAN_IR_TEFF_Pos) /*!< 0x00000800 */
  6138. #define FDCAN_IR_TEFF FDCAN_IR_TEFF_Msk /*!<Tx Event FIFO Full */
  6139. #define FDCAN_IR_TEFL_Pos (12U)
  6140. #define FDCAN_IR_TEFL_Msk (0x1UL << FDCAN_IR_TEFL_Pos) /*!< 0x00001000 */
  6141. #define FDCAN_IR_TEFL FDCAN_IR_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  6142. #define FDCAN_IR_TSW_Pos (13U)
  6143. #define FDCAN_IR_TSW_Msk (0x1UL << FDCAN_IR_TSW_Pos) /*!< 0x00002000 */
  6144. #define FDCAN_IR_TSW FDCAN_IR_TSW_Msk /*!<Timestamp Wraparound */
  6145. #define FDCAN_IR_MRAF_Pos (14U)
  6146. #define FDCAN_IR_MRAF_Msk (0x1UL << FDCAN_IR_MRAF_Pos) /*!< 0x00004000 */
  6147. #define FDCAN_IR_MRAF FDCAN_IR_MRAF_Msk /*!<Message RAM Access Failure */
  6148. #define FDCAN_IR_TOO_Pos (15U)
  6149. #define FDCAN_IR_TOO_Msk (0x1UL << FDCAN_IR_TOO_Pos) /*!< 0x00008000 */
  6150. #define FDCAN_IR_TOO FDCAN_IR_TOO_Msk /*!<Timeout Occurred */
  6151. #define FDCAN_IR_ELO_Pos (16U)
  6152. #define FDCAN_IR_ELO_Msk (0x1UL << FDCAN_IR_ELO_Pos) /*!< 0x00010000 */
  6153. #define FDCAN_IR_ELO FDCAN_IR_ELO_Msk /*!<Error Logging Overflow */
  6154. #define FDCAN_IR_EP_Pos (17U)
  6155. #define FDCAN_IR_EP_Msk (0x1UL << FDCAN_IR_EP_Pos) /*!< 0x00020000 */
  6156. #define FDCAN_IR_EP FDCAN_IR_EP_Msk /*!<Error Passive */
  6157. #define FDCAN_IR_EW_Pos (18U)
  6158. #define FDCAN_IR_EW_Msk (0x1UL << FDCAN_IR_EW_Pos) /*!< 0x00040000 */
  6159. #define FDCAN_IR_EW FDCAN_IR_EW_Msk /*!<Warning Status */
  6160. #define FDCAN_IR_BO_Pos (19U)
  6161. #define FDCAN_IR_BO_Msk (0x1UL << FDCAN_IR_BO_Pos) /*!< 0x00080000 */
  6162. #define FDCAN_IR_BO FDCAN_IR_BO_Msk /*!<Bus_Off Status */
  6163. #define FDCAN_IR_WDI_Pos (20U)
  6164. #define FDCAN_IR_WDI_Msk (0x1UL << FDCAN_IR_WDI_Pos) /*!< 0x00100000 */
  6165. #define FDCAN_IR_WDI FDCAN_IR_WDI_Msk /*!<Watchdog Interrupt */
  6166. #define FDCAN_IR_PEA_Pos (21U)
  6167. #define FDCAN_IR_PEA_Msk (0x1UL << FDCAN_IR_PEA_Pos) /*!< 0x00200000 */
  6168. #define FDCAN_IR_PEA FDCAN_IR_PEA_Msk /*!<Protocol Error in Arbitration Phase */
  6169. #define FDCAN_IR_PED_Pos (22U)
  6170. #define FDCAN_IR_PED_Msk (0x1UL << FDCAN_IR_PED_Pos) /*!< 0x00400000 */
  6171. #define FDCAN_IR_PED FDCAN_IR_PED_Msk /*!<Protocol Error in Data Phase */
  6172. #define FDCAN_IR_ARA_Pos (23U)
  6173. #define FDCAN_IR_ARA_Msk (0x1UL << FDCAN_IR_ARA_Pos) /*!< 0x00800000 */
  6174. #define FDCAN_IR_ARA FDCAN_IR_ARA_Msk /*!<Access to Reserved Address */
  6175. /***************** Bit definition for FDCAN_IE register **********************/
  6176. #define FDCAN_IE_RF0NE_Pos (0U)
  6177. #define FDCAN_IE_RF0NE_Msk (0x1UL << FDCAN_IE_RF0NE_Pos) /*!< 0x00000001 */
  6178. #define FDCAN_IE_RF0NE FDCAN_IE_RF0NE_Msk /*!<Rx FIFO 0 New Message Enable */
  6179. #define FDCAN_IE_RF0FE_Pos (1U)
  6180. #define FDCAN_IE_RF0FE_Msk (0x1UL << FDCAN_IE_RF0FE_Pos) /*!< 0x00000002 */
  6181. #define FDCAN_IE_RF0FE FDCAN_IE_RF0FE_Msk /*!<Rx FIFO 0 Full Enable */
  6182. #define FDCAN_IE_RF0LE_Pos (2U)
  6183. #define FDCAN_IE_RF0LE_Msk (0x1UL << FDCAN_IE_RF0LE_Pos) /*!< 0x00000004 */
  6184. #define FDCAN_IE_RF0LE FDCAN_IE_RF0LE_Msk /*!<Rx FIFO 0 Message Lost Enable */
  6185. #define FDCAN_IE_RF1NE_Pos (3U)
  6186. #define FDCAN_IE_RF1NE_Msk (0x1UL << FDCAN_IE_RF1NE_Pos) /*!< 0x00000008 */
  6187. #define FDCAN_IE_RF1NE FDCAN_IE_RF1NE_Msk /*!<Rx FIFO 1 New Message Enable */
  6188. #define FDCAN_IE_RF1FE_Pos (4U)
  6189. #define FDCAN_IE_RF1FE_Msk (0x1UL << FDCAN_IE_RF1FE_Pos) /*!< 0x00000010 */
  6190. #define FDCAN_IE_RF1FE FDCAN_IE_RF1FE_Msk /*!<Rx FIFO 1 Full Enable */
  6191. #define FDCAN_IE_RF1LE_Pos (5U)
  6192. #define FDCAN_IE_RF1LE_Msk (0x1UL << FDCAN_IE_RF1LE_Pos) /*!< 0x00000020 */
  6193. #define FDCAN_IE_RF1LE FDCAN_IE_RF1LE_Msk /*!<Rx FIFO 1 Message Lost Enable */
  6194. #define FDCAN_IE_HPME_Pos (6U)
  6195. #define FDCAN_IE_HPME_Msk (0x1UL << FDCAN_IE_HPME_Pos) /*!< 0x00000040 */
  6196. #define FDCAN_IE_HPME FDCAN_IE_HPME_Msk /*!<High Priority Message Enable */
  6197. #define FDCAN_IE_TCE_Pos (7U)
  6198. #define FDCAN_IE_TCE_Msk (0x1UL << FDCAN_IE_TCE_Pos) /*!< 0x00000080 */
  6199. #define FDCAN_IE_TCE FDCAN_IE_TCE_Msk /*!<Transmission Completed Enable */
  6200. #define FDCAN_IE_TCFE_Pos (8U)
  6201. #define FDCAN_IE_TCFE_Msk (0x1UL << FDCAN_IE_TCFE_Pos) /*!< 0x00000100 */
  6202. #define FDCAN_IE_TCFE FDCAN_IE_TCFE_Msk /*!<Transmission Cancellation Finished Enable*/
  6203. #define FDCAN_IE_TFEE_Pos (9U)
  6204. #define FDCAN_IE_TFEE_Msk (0x1UL << FDCAN_IE_TFEE_Pos) /*!< 0x00000200 */
  6205. #define FDCAN_IE_TFEE FDCAN_IE_TFEE_Msk /*!<Tx FIFO Empty Enable */
  6206. #define FDCAN_IE_TEFNE_Pos (10U)
  6207. #define FDCAN_IE_TEFNE_Msk (0x1UL << FDCAN_IE_TEFNE_Pos) /*!< 0x00000400 */
  6208. #define FDCAN_IE_TEFNE FDCAN_IE_TEFNE_Msk /*!<Tx Event FIFO New Entry Enable */
  6209. #define FDCAN_IE_TEFFE_Pos (11U)
  6210. #define FDCAN_IE_TEFFE_Msk (0x1UL << FDCAN_IE_TEFFE_Pos) /*!< 0x00000800 */
  6211. #define FDCAN_IE_TEFFE FDCAN_IE_TEFFE_Msk /*!<Tx Event FIFO Full Enable */
  6212. #define FDCAN_IE_TEFLE_Pos (12U)
  6213. #define FDCAN_IE_TEFLE_Msk (0x1UL << FDCAN_IE_TEFLE_Pos) /*!< 0x00001000 */
  6214. #define FDCAN_IE_TEFLE FDCAN_IE_TEFLE_Msk /*!<Tx Event FIFO Element Lost Enable */
  6215. #define FDCAN_IE_TSWE_Pos (13U)
  6216. #define FDCAN_IE_TSWE_Msk (0x1UL << FDCAN_IE_TSWE_Pos) /*!< 0x00002000 */
  6217. #define FDCAN_IE_TSWE FDCAN_IE_TSWE_Msk /*!<Timestamp Wraparound Enable */
  6218. #define FDCAN_IE_MRAFE_Pos (14U)
  6219. #define FDCAN_IE_MRAFE_Msk (0x1UL << FDCAN_IE_MRAFE_Pos) /*!< 0x00004000 */
  6220. #define FDCAN_IE_MRAFE FDCAN_IE_MRAFE_Msk /*!<Message RAM Access Failure Enable */
  6221. #define FDCAN_IE_TOOE_Pos (15U)
  6222. #define FDCAN_IE_TOOE_Msk (0x1UL << FDCAN_IE_TOOE_Pos) /*!< 0x00008000 */
  6223. #define FDCAN_IE_TOOE FDCAN_IE_TOOE_Msk /*!<Timeout Occurred Enable */
  6224. #define FDCAN_IE_ELOE_Pos (16U)
  6225. #define FDCAN_IE_ELOE_Msk (0x1UL << FDCAN_IE_ELOE_Pos) /*!< 0x00010000 */
  6226. #define FDCAN_IE_ELOE FDCAN_IE_ELOE_Msk /*!<Error Logging Overflow Enable */
  6227. #define FDCAN_IE_EPE_Pos (17U)
  6228. #define FDCAN_IE_EPE_Msk (0x1UL << FDCAN_IE_EPE_Pos) /*!< 0x00020000 */
  6229. #define FDCAN_IE_EPE FDCAN_IE_EPE_Msk /*!<Error Passive Enable */
  6230. #define FDCAN_IE_EWE_Pos (18U)
  6231. #define FDCAN_IE_EWE_Msk (0x1UL << FDCAN_IE_EWE_Pos) /*!< 0x00040000 */
  6232. #define FDCAN_IE_EWE FDCAN_IE_EWE_Msk /*!<Warning Status Enable */
  6233. #define FDCAN_IE_BOE_Pos (19U)
  6234. #define FDCAN_IE_BOE_Msk (0x1UL << FDCAN_IE_BOE_Pos) /*!< 0x00080000 */
  6235. #define FDCAN_IE_BOE FDCAN_IE_BOE_Msk /*!<Bus_Off Status Enable */
  6236. #define FDCAN_IE_WDIE_Pos (20U)
  6237. #define FDCAN_IE_WDIE_Msk (0x1UL << FDCAN_IE_WDIE_Pos) /*!< 0x00100000 */
  6238. #define FDCAN_IE_WDIE FDCAN_IE_WDIE_Msk /*!<Watchdog Interrupt Enable */
  6239. #define FDCAN_IE_PEAE_Pos (21U)
  6240. #define FDCAN_IE_PEAE_Msk (0x1UL << FDCAN_IE_PEAE_Pos) /*!< 0x00200000 */
  6241. #define FDCAN_IE_PEAE FDCAN_IE_PEAE_Msk /*!<Protocol Error in Arbitration Phase Enable*/
  6242. #define FDCAN_IE_PEDE_Pos (22U)
  6243. #define FDCAN_IE_PEDE_Msk (0x1UL << FDCAN_IE_PEDE_Pos) /*!< 0x00400000 */
  6244. #define FDCAN_IE_PEDE FDCAN_IE_PEDE_Msk /*!<Protocol Error in Data Phase Enable */
  6245. #define FDCAN_IE_ARAE_Pos (23U)
  6246. #define FDCAN_IE_ARAE_Msk (0x1UL << FDCAN_IE_ARAE_Pos) /*!< 0x00800000 */
  6247. #define FDCAN_IE_ARAE FDCAN_IE_ARAE_Msk /*!<Access to Reserved Address Enable */
  6248. /***************** Bit definition for FDCAN_ILS register **********************/
  6249. #define FDCAN_ILS_RXFIFO0_Pos (0U)
  6250. #define FDCAN_ILS_RXFIFO0_Msk (0x1UL << FDCAN_ILS_RXFIFO0_Pos) /*!< 0x00000001 */
  6251. #define FDCAN_ILS_RXFIFO0 FDCAN_ILS_RXFIFO0_Msk /*!<Rx FIFO 0 Message Lost
  6252. Rx FIFO 0 is Full
  6253. Rx FIFO 0 Has New Message */
  6254. #define FDCAN_ILS_RXFIFO1_Pos (1U)
  6255. #define FDCAN_ILS_RXFIFO1_Msk (0x1UL << FDCAN_ILS_RXFIFO1_Pos) /*!< 0x00000002 */
  6256. #define FDCAN_ILS_RXFIFO1 FDCAN_ILS_RXFIFO1_Msk /*!<Rx FIFO 1 Message Lost
  6257. Rx FIFO 1 is Full
  6258. Rx FIFO 1 Has New Message */
  6259. #define FDCAN_ILS_SMSG_Pos (2U)
  6260. #define FDCAN_ILS_SMSG_Msk (0x1UL << FDCAN_ILS_SMSG_Pos) /*!< 0x00000004 */
  6261. #define FDCAN_ILS_SMSG FDCAN_ILS_SMSG_Msk /*!<Transmission Cancellation Finished
  6262. Transmission Completed
  6263. High Priority Message */
  6264. #define FDCAN_ILS_TFERR_Pos (3U)
  6265. #define FDCAN_ILS_TFERR_Msk (0x1UL << FDCAN_ILS_TFERR_Pos) /*!< 0x00000008 */
  6266. #define FDCAN_ILS_TFERR FDCAN_ILS_TFERR_Msk /*!<Tx Event FIFO Element Lost
  6267. Tx Event FIFO Full
  6268. Tx Event FIFO New Entry
  6269. Tx FIFO Empty Interrupt Line */
  6270. #define FDCAN_ILS_MISC_Pos (4U)
  6271. #define FDCAN_ILS_MISC_Msk (0x1UL << FDCAN_ILS_MISC_Pos) /*!< 0x00000010 */
  6272. #define FDCAN_ILS_MISC FDCAN_ILS_MISC_Msk /*!<Timeout Occurred
  6273. Message RAM Access Failure
  6274. Timestamp Wraparound */
  6275. #define FDCAN_ILS_BERR_Pos (5U)
  6276. #define FDCAN_ILS_BERR_Msk (0x1UL << FDCAN_ILS_BERR_Pos) /*!< 0x00000020 */
  6277. #define FDCAN_ILS_BERR FDCAN_ILS_BERR_Msk /*!<Error Passive
  6278. Error Logging Overflow */
  6279. #define FDCAN_ILS_PERR_Pos (6U)
  6280. #define FDCAN_ILS_PERR_Msk (0x1UL << FDCAN_ILS_PERR_Pos) /*!< 0x00000040 */
  6281. #define FDCAN_ILS_PERR FDCAN_ILS_PERR_Msk /*!<Access to Reserved Address Line
  6282. Protocol Error in Data Phase Line
  6283. Protocol Error in Arbitration Phase Line
  6284. Watchdog Interrupt Line
  6285. Bus_Off Status
  6286. Warning Status */
  6287. /***************** Bit definition for FDCAN_ILE register **********************/
  6288. #define FDCAN_ILE_EINT0_Pos (0U)
  6289. #define FDCAN_ILE_EINT0_Msk (0x1UL << FDCAN_ILE_EINT0_Pos) /*!< 0x00000001 */
  6290. #define FDCAN_ILE_EINT0 FDCAN_ILE_EINT0_Msk /*!<Enable Interrupt Line 0 */
  6291. #define FDCAN_ILE_EINT1_Pos (1U)
  6292. #define FDCAN_ILE_EINT1_Msk (0x1UL << FDCAN_ILE_EINT1_Pos) /*!< 0x00000002 */
  6293. #define FDCAN_ILE_EINT1 FDCAN_ILE_EINT1_Msk /*!<Enable Interrupt Line 1 */
  6294. /***************** Bit definition for FDCAN_RXGFC register ********************/
  6295. #define FDCAN_RXGFC_RRFE_Pos (0U)
  6296. #define FDCAN_RXGFC_RRFE_Msk (0x1UL << FDCAN_RXGFC_RRFE_Pos) /*!< 0x00000001 */
  6297. #define FDCAN_RXGFC_RRFE FDCAN_RXGFC_RRFE_Msk /*!<Reject Remote Frames Extended */
  6298. #define FDCAN_RXGFC_RRFS_Pos (1U)
  6299. #define FDCAN_RXGFC_RRFS_Msk (0x1UL << FDCAN_RXGFC_RRFS_Pos) /*!< 0x00000002 */
  6300. #define FDCAN_RXGFC_RRFS FDCAN_RXGFC_RRFS_Msk /*!<Reject Remote Frames Standard */
  6301. #define FDCAN_RXGFC_ANFE_Pos (2U)
  6302. #define FDCAN_RXGFC_ANFE_Msk (0x3UL << FDCAN_RXGFC_ANFE_Pos) /*!< 0x0000000C */
  6303. #define FDCAN_RXGFC_ANFE FDCAN_RXGFC_ANFE_Msk /*!<Accept Non-matching Frames Extended */
  6304. #define FDCAN_RXGFC_ANFS_Pos (4U)
  6305. #define FDCAN_RXGFC_ANFS_Msk (0x3UL << FDCAN_RXGFC_ANFS_Pos) /*!< 0x00000030 */
  6306. #define FDCAN_RXGFC_ANFS FDCAN_RXGFC_ANFS_Msk /*!<Accept Non-matching Frames Standard */
  6307. #define FDCAN_RXGFC_F1OM_Pos (8U)
  6308. #define FDCAN_RXGFC_F1OM_Msk (0x1UL << FDCAN_RXGFC_F1OM_Pos) /*!< 0x00000100 */
  6309. #define FDCAN_RXGFC_F1OM FDCAN_RXGFC_F1OM_Msk /*!<FIFO 1 operation mode */
  6310. #define FDCAN_RXGFC_F0OM_Pos (9U)
  6311. #define FDCAN_RXGFC_F0OM_Msk (0x1UL << FDCAN_RXGFC_F0OM_Pos) /*!< 0x00000200 */
  6312. #define FDCAN_RXGFC_F0OM FDCAN_RXGFC_F0OM_Msk /*!<FIFO 0 operation mode */
  6313. #define FDCAN_RXGFC_LSS_Pos (16U)
  6314. #define FDCAN_RXGFC_LSS_Msk (0x1FUL << FDCAN_RXGFC_LSS_Pos) /*!< 0x001F0000 */
  6315. #define FDCAN_RXGFC_LSS FDCAN_RXGFC_LSS_Msk /*!<List Size Standard */
  6316. #define FDCAN_RXGFC_LSE_Pos (24U)
  6317. #define FDCAN_RXGFC_LSE_Msk (0xFUL << FDCAN_RXGFC_LSE_Pos) /*!< 0x0F000000 */
  6318. #define FDCAN_RXGFC_LSE FDCAN_RXGFC_LSE_Msk /*!<List Size Extended */
  6319. /***************** Bit definition for FDCAN_XIDAM register ********************/
  6320. #define FDCAN_XIDAM_EIDM_Pos (0U)
  6321. #define FDCAN_XIDAM_EIDM_Msk (0x1FFFFFFFUL << FDCAN_XIDAM_EIDM_Pos) /*!< 0x1FFFFFFF */
  6322. #define FDCAN_XIDAM_EIDM FDCAN_XIDAM_EIDM_Msk /*!<Extended ID Mask */
  6323. /***************** Bit definition for FDCAN_HPMS register *********************/
  6324. #define FDCAN_HPMS_BIDX_Pos (0U)
  6325. #define FDCAN_HPMS_BIDX_Msk (0x7UL << FDCAN_HPMS_BIDX_Pos) /*!< 0x00000007 */
  6326. #define FDCAN_HPMS_BIDX FDCAN_HPMS_BIDX_Msk /*!<Buffer Index */
  6327. #define FDCAN_HPMS_MSI_Pos (6U)
  6328. #define FDCAN_HPMS_MSI_Msk (0x3UL << FDCAN_HPMS_MSI_Pos) /*!< 0x000000C0 */
  6329. #define FDCAN_HPMS_MSI FDCAN_HPMS_MSI_Msk /*!<Message Storage Indicator */
  6330. #define FDCAN_HPMS_FIDX_Pos (8U)
  6331. #define FDCAN_HPMS_FIDX_Msk (0x1FUL << FDCAN_HPMS_FIDX_Pos) /*!< 0x00001F00 */
  6332. #define FDCAN_HPMS_FIDX FDCAN_HPMS_FIDX_Msk /*!<Filter Index */
  6333. #define FDCAN_HPMS_FLST_Pos (15U)
  6334. #define FDCAN_HPMS_FLST_Msk (0x1UL << FDCAN_HPMS_FLST_Pos) /*!< 0x00008000 */
  6335. #define FDCAN_HPMS_FLST FDCAN_HPMS_FLST_Msk /*!<Filter List */
  6336. /***************** Bit definition for FDCAN_RXF0S register ********************/
  6337. #define FDCAN_RXF0S_F0FL_Pos (0U)
  6338. #define FDCAN_RXF0S_F0FL_Msk (0xFUL << FDCAN_RXF0S_F0FL_Pos) /*!< 0x0000000F */
  6339. #define FDCAN_RXF0S_F0FL FDCAN_RXF0S_F0FL_Msk /*!<Rx FIFO 0 Fill Level */
  6340. #define FDCAN_RXF0S_F0GI_Pos (8U)
  6341. #define FDCAN_RXF0S_F0GI_Msk (0x3UL << FDCAN_RXF0S_F0GI_Pos) /*!< 0x00000300 */
  6342. #define FDCAN_RXF0S_F0GI FDCAN_RXF0S_F0GI_Msk /*!<Rx FIFO 0 Get Index */
  6343. #define FDCAN_RXF0S_F0PI_Pos (16U)
  6344. #define FDCAN_RXF0S_F0PI_Msk (0x3UL << FDCAN_RXF0S_F0PI_Pos) /*!< 0x00030000 */
  6345. #define FDCAN_RXF0S_F0PI FDCAN_RXF0S_F0PI_Msk /*!<Rx FIFO 0 Put Index */
  6346. #define FDCAN_RXF0S_F0F_Pos (24U)
  6347. #define FDCAN_RXF0S_F0F_Msk (0x1UL << FDCAN_RXF0S_F0F_Pos) /*!< 0x01000000 */
  6348. #define FDCAN_RXF0S_F0F FDCAN_RXF0S_F0F_Msk /*!<Rx FIFO 0 Full */
  6349. #define FDCAN_RXF0S_RF0L_Pos (25U)
  6350. #define FDCAN_RXF0S_RF0L_Msk (0x1UL << FDCAN_RXF0S_RF0L_Pos) /*!< 0x02000000 */
  6351. #define FDCAN_RXF0S_RF0L FDCAN_RXF0S_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  6352. /***************** Bit definition for FDCAN_RXF0A register ********************/
  6353. #define FDCAN_RXF0A_F0AI_Pos (0U)
  6354. #define FDCAN_RXF0A_F0AI_Msk (0x7UL << FDCAN_RXF0A_F0AI_Pos) /*!< 0x00000007 */
  6355. #define FDCAN_RXF0A_F0AI FDCAN_RXF0A_F0AI_Msk /*!<Rx FIFO 0 Acknowledge Index */
  6356. /***************** Bit definition for FDCAN_RXF1S register ********************/
  6357. #define FDCAN_RXF1S_F1FL_Pos (0U)
  6358. #define FDCAN_RXF1S_F1FL_Msk (0xFUL << FDCAN_RXF1S_F1FL_Pos) /*!< 0x0000000F */
  6359. #define FDCAN_RXF1S_F1FL FDCAN_RXF1S_F1FL_Msk /*!<Rx FIFO 1 Fill Level */
  6360. #define FDCAN_RXF1S_F1GI_Pos (8U)
  6361. #define FDCAN_RXF1S_F1GI_Msk (0x3UL << FDCAN_RXF1S_F1GI_Pos) /*!< 0x00000300 */
  6362. #define FDCAN_RXF1S_F1GI FDCAN_RXF1S_F1GI_Msk /*!<Rx FIFO 1 Get Index */
  6363. #define FDCAN_RXF1S_F1PI_Pos (16U)
  6364. #define FDCAN_RXF1S_F1PI_Msk (0x3UL << FDCAN_RXF1S_F1PI_Pos) /*!< 0x00030000 */
  6365. #define FDCAN_RXF1S_F1PI FDCAN_RXF1S_F1PI_Msk /*!<Rx FIFO 1 Put Index */
  6366. #define FDCAN_RXF1S_F1F_Pos (24U)
  6367. #define FDCAN_RXF1S_F1F_Msk (0x1UL << FDCAN_RXF1S_F1F_Pos) /*!< 0x01000000 */
  6368. #define FDCAN_RXF1S_F1F FDCAN_RXF1S_F1F_Msk /*!<Rx FIFO 1 Full */
  6369. #define FDCAN_RXF1S_RF1L_Pos (25U)
  6370. #define FDCAN_RXF1S_RF1L_Msk (0x1UL << FDCAN_RXF1S_RF1L_Pos) /*!< 0x02000000 */
  6371. #define FDCAN_RXF1S_RF1L FDCAN_RXF1S_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  6372. /***************** Bit definition for FDCAN_RXF1A register ********************/
  6373. #define FDCAN_RXF1A_F1AI_Pos (0U)
  6374. #define FDCAN_RXF1A_F1AI_Msk (0x7UL << FDCAN_RXF1A_F1AI_Pos) /*!< 0x00000007 */
  6375. #define FDCAN_RXF1A_F1AI FDCAN_RXF1A_F1AI_Msk /*!<Rx FIFO 1 Acknowledge Index */
  6376. /***************** Bit definition for FDCAN_TXBC register *********************/
  6377. #define FDCAN_TXBC_TFQM_Pos (24U)
  6378. #define FDCAN_TXBC_TFQM_Msk (0x1UL << FDCAN_TXBC_TFQM_Pos) /*!< 0x01000000 */
  6379. #define FDCAN_TXBC_TFQM FDCAN_TXBC_TFQM_Msk /*!<Tx FIFO/Queue Mode */
  6380. /***************** Bit definition for FDCAN_TXFQS register *********************/
  6381. #define FDCAN_TXFQS_TFFL_Pos (0U)
  6382. #define FDCAN_TXFQS_TFFL_Msk (0x7UL << FDCAN_TXFQS_TFFL_Pos) /*!< 0x00000007 */
  6383. #define FDCAN_TXFQS_TFFL FDCAN_TXFQS_TFFL_Msk /*!<Tx FIFO Free Level */
  6384. #define FDCAN_TXFQS_TFGI_Pos (8U)
  6385. #define FDCAN_TXFQS_TFGI_Msk (0x3UL << FDCAN_TXFQS_TFGI_Pos) /*!< 0x00000300 */
  6386. #define FDCAN_TXFQS_TFGI FDCAN_TXFQS_TFGI_Msk /*!<Tx FIFO Get Index */
  6387. #define FDCAN_TXFQS_TFQPI_Pos (16U)
  6388. #define FDCAN_TXFQS_TFQPI_Msk (0x3UL << FDCAN_TXFQS_TFQPI_Pos) /*!< 0x00030000 */
  6389. #define FDCAN_TXFQS_TFQPI FDCAN_TXFQS_TFQPI_Msk /*!<Tx FIFO/Queue Put Index */
  6390. #define FDCAN_TXFQS_TFQF_Pos (21U)
  6391. #define FDCAN_TXFQS_TFQF_Msk (0x1UL << FDCAN_TXFQS_TFQF_Pos) /*!< 0x00200000 */
  6392. #define FDCAN_TXFQS_TFQF FDCAN_TXFQS_TFQF_Msk /*!<Tx FIFO/Queue Full */
  6393. /***************** Bit definition for FDCAN_TXBRP register *********************/
  6394. #define FDCAN_TXBRP_TRP_Pos (0U)
  6395. #define FDCAN_TXBRP_TRP_Msk (0x7UL << FDCAN_TXBRP_TRP_Pos) /*!< 0x00000007 */
  6396. #define FDCAN_TXBRP_TRP FDCAN_TXBRP_TRP_Msk /*!<Transmission Request Pending */
  6397. /***************** Bit definition for FDCAN_TXBAR register *********************/
  6398. #define FDCAN_TXBAR_AR_Pos (0U)
  6399. #define FDCAN_TXBAR_AR_Msk (0x7UL << FDCAN_TXBAR_AR_Pos) /*!< 0x00000007 */
  6400. #define FDCAN_TXBAR_AR FDCAN_TXBAR_AR_Msk /*!<Add Request */
  6401. /***************** Bit definition for FDCAN_TXBCR register *********************/
  6402. #define FDCAN_TXBCR_CR_Pos (0U)
  6403. #define FDCAN_TXBCR_CR_Msk (0x7UL << FDCAN_TXBCR_CR_Pos) /*!< 0x00000007 */
  6404. #define FDCAN_TXBCR_CR FDCAN_TXBCR_CR_Msk /*!<Cancellation Request */
  6405. /***************** Bit definition for FDCAN_TXBTO register *********************/
  6406. #define FDCAN_TXBTO_TO_Pos (0U)
  6407. #define FDCAN_TXBTO_TO_Msk (0x7UL << FDCAN_TXBTO_TO_Pos) /*!< 0x00000007 */
  6408. #define FDCAN_TXBTO_TO FDCAN_TXBTO_TO_Msk /*!<Transmission Occurred */
  6409. /***************** Bit definition for FDCAN_TXBCF register *********************/
  6410. #define FDCAN_TXBCF_CF_Pos (0U)
  6411. #define FDCAN_TXBCF_CF_Msk (0x7UL << FDCAN_TXBCF_CF_Pos) /*!< 0x00000007 */
  6412. #define FDCAN_TXBCF_CF FDCAN_TXBCF_CF_Msk /*!<Cancellation Finished */
  6413. /***************** Bit definition for FDCAN_TXBTIE register ********************/
  6414. #define FDCAN_TXBTIE_TIE_Pos (0U)
  6415. #define FDCAN_TXBTIE_TIE_Msk (0x7UL << FDCAN_TXBTIE_TIE_Pos) /*!< 0x00000007 */
  6416. #define FDCAN_TXBTIE_TIE FDCAN_TXBTIE_TIE_Msk /*!<Transmission Interrupt Enable */
  6417. /***************** Bit definition for FDCAN_ TXBCIE register *******************/
  6418. #define FDCAN_TXBCIE_CFIE_Pos (0U)
  6419. #define FDCAN_TXBCIE_CFIE_Msk (0x7UL << FDCAN_TXBCIE_CFIE_Pos) /*!< 0x00000007 */
  6420. #define FDCAN_TXBCIE_CFIE FDCAN_TXBCIE_CFIE_Msk /*!<Cancellation Finished Interrupt Enable */
  6421. /***************** Bit definition for FDCAN_TXEFS register *********************/
  6422. #define FDCAN_TXEFS_EFFL_Pos (0U)
  6423. #define FDCAN_TXEFS_EFFL_Msk (0x7UL << FDCAN_TXEFS_EFFL_Pos) /*!< 0x00000007 */
  6424. #define FDCAN_TXEFS_EFFL FDCAN_TXEFS_EFFL_Msk /*!<Event FIFO Fill Level */
  6425. #define FDCAN_TXEFS_EFGI_Pos (8U)
  6426. #define FDCAN_TXEFS_EFGI_Msk (0x3UL << FDCAN_TXEFS_EFGI_Pos) /*!< 0x00000300 */
  6427. #define FDCAN_TXEFS_EFGI FDCAN_TXEFS_EFGI_Msk /*!<Event FIFO Get Index */
  6428. #define FDCAN_TXEFS_EFPI_Pos (16U)
  6429. #define FDCAN_TXEFS_EFPI_Msk (0x3UL << FDCAN_TXEFS_EFPI_Pos) /*!< 0x00030000 */
  6430. #define FDCAN_TXEFS_EFPI FDCAN_TXEFS_EFPI_Msk /*!<Event FIFO Put Index */
  6431. #define FDCAN_TXEFS_EFF_Pos (24U)
  6432. #define FDCAN_TXEFS_EFF_Msk (0x1UL << FDCAN_TXEFS_EFF_Pos) /*!< 0x01000000 */
  6433. #define FDCAN_TXEFS_EFF FDCAN_TXEFS_EFF_Msk /*!<Event FIFO Full */
  6434. #define FDCAN_TXEFS_TEFL_Pos (25U)
  6435. #define FDCAN_TXEFS_TEFL_Msk (0x1UL << FDCAN_TXEFS_TEFL_Pos) /*!< 0x02000000 */
  6436. #define FDCAN_TXEFS_TEFL FDCAN_TXEFS_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  6437. /***************** Bit definition for FDCAN_TXEFA register *********************/
  6438. #define FDCAN_TXEFA_EFAI_Pos (0U)
  6439. #define FDCAN_TXEFA_EFAI_Msk (0x3UL << FDCAN_TXEFA_EFAI_Pos) /*!< 0x00000003 */
  6440. #define FDCAN_TXEFA_EFAI FDCAN_TXEFA_EFAI_Msk /*!<Event FIFO Acknowledge Index */
  6441. /*!<FDCAN config registers */
  6442. /***************** Bit definition for FDCAN_CKDIV register *********************/
  6443. #define FDCAN_CKDIV_PDIV_Pos (0U)
  6444. #define FDCAN_CKDIV_PDIV_Msk (0xFUL << FDCAN_CKDIV_PDIV_Pos) /*!< 0x0000000F */
  6445. #define FDCAN_CKDIV_PDIV FDCAN_CKDIV_PDIV_Msk /*!<Input Clock Divider */
  6446. /***************** Bit definition for FDCAN_OPTR register *********************/
  6447. #define FDCAN_OPTR_OPTR_Pos (0U)
  6448. #define FDCAN_OPTR_OPTR_Msk (0xFFFFFFFFUL << FDCAN_OPTR_OPTR_Pos) /*!< 0xFFFFFFFF */
  6449. #define FDCAN_OPTR_OPTR FDCAN_OPTR_OPTR_Msk /*!<Option Register */
  6450. /******************************************************************************/
  6451. /* */
  6452. /* FLASH */
  6453. /* */
  6454. /******************************************************************************/
  6455. /******************* Bits definition for FLASH_ACR register *****************/
  6456. #define FLASH_ACR_LATENCY_Pos (0U)
  6457. #define FLASH_ACR_LATENCY_Msk (0xFUL << FLASH_ACR_LATENCY_Pos) /*!< 0x0000000F */
  6458. #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk
  6459. #define FLASH_ACR_LATENCY_0WS (0x00000000UL)
  6460. #define FLASH_ACR_LATENCY_1WS (0x00000001UL)
  6461. #define FLASH_ACR_LATENCY_2WS (0x00000002UL)
  6462. #define FLASH_ACR_LATENCY_3WS (0x00000003UL)
  6463. #define FLASH_ACR_LATENCY_4WS (0x00000004UL)
  6464. #define FLASH_ACR_LATENCY_5WS (0x00000005UL)
  6465. #define FLASH_ACR_LATENCY_6WS (0x00000006UL)
  6466. #define FLASH_ACR_LATENCY_7WS (0x00000007UL)
  6467. #define FLASH_ACR_LATENCY_8WS (0x00000008UL)
  6468. #define FLASH_ACR_LATENCY_9WS (0x00000009UL)
  6469. #define FLASH_ACR_LATENCY_10WS (0x0000000AUL)
  6470. #define FLASH_ACR_LATENCY_11WS (0x0000000BUL)
  6471. #define FLASH_ACR_LATENCY_12WS (0x0000000CUL)
  6472. #define FLASH_ACR_LATENCY_13WS (0x0000000DUL)
  6473. #define FLASH_ACR_LATENCY_14WS (0x0000000EUL)
  6474. #define FLASH_ACR_LATENCY_15WS (0x0000000FUL)
  6475. #define FLASH_ACR_RUN_PD_Pos (13U)
  6476. #define FLASH_ACR_RUN_PD_Msk (0x1UL << FLASH_ACR_RUN_PD_Pos) /*!< 0x00002000 */
  6477. #define FLASH_ACR_RUN_PD FLASH_ACR_RUN_PD_Msk /*!< Flash power down mode during run */
  6478. #define FLASH_ACR_SLEEP_PD_Pos (14U)
  6479. #define FLASH_ACR_SLEEP_PD_Msk (0x1UL << FLASH_ACR_SLEEP_PD_Pos) /*!< 0x00004000 */
  6480. #define FLASH_ACR_SLEEP_PD FLASH_ACR_SLEEP_PD_Msk /*!< Flash power down mode during sleep */
  6481. #define FLASH_ACR_LVEN_Pos (15U)
  6482. #define FLASH_ACR_LVEN_Msk (0x1UL << FLASH_ACR_LVEN_Pos) /*!< 0x00008000 */
  6483. #define FLASH_ACR_LVEN FLASH_ACR_LVEN_Msk /*!< LVE A/B Flash pin low */
  6484. /****************** Bits definition for FLASH_NSSR register *****************/
  6485. #define FLASH_NSSR_NSEOP_Pos (0U)
  6486. #define FLASH_NSSR_NSEOP_Msk (0x1UL << FLASH_NSSR_NSEOP_Pos) /*!< 0x00000001 */
  6487. #define FLASH_NSSR_NSEOP FLASH_NSSR_NSEOP_Msk
  6488. #define FLASH_NSSR_NSOPERR_Pos (1U)
  6489. #define FLASH_NSSR_NSOPERR_Msk (0x1UL << FLASH_NSSR_NSOPERR_Pos) /*!< 0x00000002 */
  6490. #define FLASH_NSSR_NSOPERR FLASH_NSSR_NSOPERR_Msk
  6491. #define FLASH_NSSR_NSPROGERR_Pos (3U)
  6492. #define FLASH_NSSR_NSPROGERR_Msk (0x1UL << FLASH_NSSR_NSPROGERR_Pos) /*!< 0x00000008 */
  6493. #define FLASH_NSSR_NSPROGERR FLASH_NSSR_NSPROGERR_Msk
  6494. #define FLASH_NSSR_NSWRPERR_Pos (4U)
  6495. #define FLASH_NSSR_NSWRPERR_Msk (0x1UL << FLASH_NSSR_NSWRPERR_Pos) /*!< 0x00000010 */
  6496. #define FLASH_NSSR_NSWRPERR FLASH_NSSR_NSWRPERR_Msk
  6497. #define FLASH_NSSR_NSPGAERR_Pos (5U)
  6498. #define FLASH_NSSR_NSPGAERR_Msk (0x1UL << FLASH_NSSR_NSPGAERR_Pos) /*!< 0x00000020 */
  6499. #define FLASH_NSSR_NSPGAERR FLASH_NSSR_NSPGAERR_Msk
  6500. #define FLASH_NSSR_NSSIZERR_Pos (6U)
  6501. #define FLASH_NSSR_NSSIZERR_Msk (0x1UL << FLASH_NSSR_NSSIZERR_Pos) /*!< 0x00000040 */
  6502. #define FLASH_NSSR_NSSIZERR FLASH_NSSR_NSSIZERR_Msk
  6503. #define FLASH_NSSR_NSPGSERR_Pos (7U)
  6504. #define FLASH_NSSR_NSPGSERR_Msk (0x1UL << FLASH_NSSR_NSPGSERR_Pos) /*!< 0x00000080 */
  6505. #define FLASH_NSSR_NSPGSERR FLASH_NSSR_NSPGSERR_Msk
  6506. #define FLASH_NSSR_OPTWERR_Pos (13U)
  6507. #define FLASH_NSSR_OPTWERR_Msk (0x1UL << FLASH_NSSR_OPTWERR_Pos) /*!< 0x00002000 */
  6508. #define FLASH_NSSR_OPTWERR FLASH_NSSR_OPTWERR_Msk
  6509. #define FLASH_NSSR_NSBSY_Pos (16U)
  6510. #define FLASH_NSSR_NSBSY_Msk (0x1UL << FLASH_NSSR_NSBSY_Pos) /*!< 0x00010000 */
  6511. #define FLASH_NSSR_NSBSY FLASH_NSSR_NSBSY_Msk
  6512. /****************** Bits definition for FLASH_SECSR register ****************/
  6513. #define FLASH_SECSR_SECEOP_Pos (0U)
  6514. #define FLASH_SECSR_SECEOP_Msk (0x1UL << FLASH_SECSR_SECEOP_Pos) /*!< 0x00000001 */
  6515. #define FLASH_SECSR_SECEOP FLASH_SECSR_SECEOP_Msk
  6516. #define FLASH_SECSR_SECOPERR_Pos (1U)
  6517. #define FLASH_SECSR_SECOPERR_Msk (0x1UL << FLASH_SECSR_SECOPERR_Pos) /*!< 0x00000002 */
  6518. #define FLASH_SECSR_SECOPERR FLASH_SECSR_SECOPERR_Msk
  6519. #define FLASH_SECSR_SECPROGERR_Pos (3U)
  6520. #define FLASH_SECSR_SECPROGERR_Msk (0x1UL << FLASH_SECSR_SECPROGERR_Pos)/*!< 0x00000008 */
  6521. #define FLASH_SECSR_SECPROGERR FLASH_SECSR_SECPROGERR_Msk
  6522. #define FLASH_SECSR_SECWRPERR_Pos (4U)
  6523. #define FLASH_SECSR_SECWRPERR_Msk (0x1UL << FLASH_SECSR_SECWRPERR_Pos) /*!< 0x00000010 */
  6524. #define FLASH_SECSR_SECWRPERR FLASH_SECSR_SECWRPERR_Msk
  6525. #define FLASH_SECSR_SECPGAERR_Pos (5U)
  6526. #define FLASH_SECSR_SECPGAERR_Msk (0x1UL << FLASH_SECSR_SECPGAERR_Pos) /*!< 0x00000020 */
  6527. #define FLASH_SECSR_SECPGAERR FLASH_SECSR_SECPGAERR_Msk
  6528. #define FLASH_SECSR_SECSIZERR_Pos (6U)
  6529. #define FLASH_SECSR_SECSIZERR_Msk (0x1UL << FLASH_SECSR_SECSIZERR_Pos) /*!< 0x00000040 */
  6530. #define FLASH_SECSR_SECSIZERR FLASH_SECSR_SECSIZERR_Msk
  6531. #define FLASH_SECSR_SECPGSERR_Pos (7U)
  6532. #define FLASH_SECSR_SECPGSERR_Msk (0x1UL << FLASH_SECSR_SECPGSERR_Pos) /*!< 0x00000080 */
  6533. #define FLASH_SECSR_SECPGSERR FLASH_SECSR_SECPGSERR_Msk
  6534. #define FLASH_SECSR_SECBSY_Pos (16U)
  6535. #define FLASH_SECSR_SECBSY_Msk (0x1UL << FLASH_SECSR_SECBSY_Pos) /*!< 0x00010000 */
  6536. #define FLASH_SECSR_SECBSY FLASH_SECSR_SECBSY_Msk
  6537. /****************** Bits definition for FLASH_NSCR register *****************/
  6538. #define FLASH_NSCR_NSPG_Pos (0U)
  6539. #define FLASH_NSCR_NSPG_Msk (0x1UL << FLASH_NSCR_NSPG_Pos) /*!< 0x00000001 */
  6540. #define FLASH_NSCR_NSPG FLASH_NSCR_NSPG_Msk
  6541. #define FLASH_NSCR_NSPER_Pos (1U)
  6542. #define FLASH_NSCR_NSPER_Msk (0x1UL << FLASH_NSCR_NSPER_Pos) /*!< 0x00000002 */
  6543. #define FLASH_NSCR_NSPER FLASH_NSCR_NSPER_Msk
  6544. #define FLASH_NSCR_NSMER1_Pos (2U)
  6545. #define FLASH_NSCR_NSMER1_Msk (0x1UL << FLASH_NSCR_NSMER1_Pos) /*!< 0x00000004 */
  6546. #define FLASH_NSCR_NSMER1 FLASH_NSCR_NSMER1_Msk
  6547. #define FLASH_NSCR_NSPNB_Pos (3U)
  6548. #define FLASH_NSCR_NSPNB_Msk (0x7FUL << FLASH_NSCR_NSPNB_Pos) /*!< 0x000003F8 */
  6549. #define FLASH_NSCR_NSPNB FLASH_NSCR_NSPNB_Msk
  6550. #define FLASH_NSCR_NSBKER_Pos (11U)
  6551. #define FLASH_NSCR_NSBKER_Msk (0x1UL << FLASH_NSCR_NSBKER_Pos) /*!< 0x00000800 */
  6552. #define FLASH_NSCR_NSBKER FLASH_NSCR_NSBKER_Msk
  6553. #define FLASH_NSCR_NSMER2_Pos (15U)
  6554. #define FLASH_NSCR_NSMER2_Msk (0x1UL << FLASH_NSCR_NSMER2_Pos) /*!< 0x00008000 */
  6555. #define FLASH_NSCR_NSMER2 FLASH_NSCR_NSMER2_Msk
  6556. #define FLASH_NSCR_NSSTRT_Pos (16U)
  6557. #define FLASH_NSCR_NSSTRT_Msk (0x1UL << FLASH_NSCR_NSSTRT_Pos) /*!< 0x00010000 */
  6558. #define FLASH_NSCR_NSSTRT FLASH_NSCR_NSSTRT_Msk
  6559. #define FLASH_NSCR_OPTSTRT_Pos (17U)
  6560. #define FLASH_NSCR_OPTSTRT_Msk (0x1UL << FLASH_NSCR_OPTSTRT_Pos) /*!< 0x00020000 */
  6561. #define FLASH_NSCR_OPTSTRT FLASH_NSCR_OPTSTRT_Msk
  6562. #define FLASH_NSCR_NSEOPIE_Pos (24U)
  6563. #define FLASH_NSCR_NSEOPIE_Msk (0x1UL << FLASH_NSCR_NSEOPIE_Pos) /*!< 0x01000000 */
  6564. #define FLASH_NSCR_NSEOPIE FLASH_NSCR_NSEOPIE_Msk
  6565. #define FLASH_NSCR_NSERRIE_Pos (25U)
  6566. #define FLASH_NSCR_NSERRIE_Msk (0x1UL << FLASH_NSCR_NSERRIE_Pos) /*!< 0x02000000 */
  6567. #define FLASH_NSCR_NSERRIE FLASH_NSCR_NSERRIE_Msk
  6568. #define FLASH_NSCR_OBL_LAUNCH_Pos (27U)
  6569. #define FLASH_NSCR_OBL_LAUNCH_Msk (0x1UL << FLASH_NSCR_OBL_LAUNCH_Pos) /*!< 0x08000000 */
  6570. #define FLASH_NSCR_OBL_LAUNCH FLASH_NSCR_OBL_LAUNCH_Msk
  6571. #define FLASH_NSCR_OPTLOCK_Pos (30U)
  6572. #define FLASH_NSCR_OPTLOCK_Msk (0x1UL << FLASH_NSCR_OPTLOCK_Pos) /*!< 0x40000000 */
  6573. #define FLASH_NSCR_OPTLOCK FLASH_NSCR_OPTLOCK_Msk
  6574. #define FLASH_NSCR_NSLOCK_Pos (31U)
  6575. #define FLASH_NSCR_NSLOCK_Msk (0x1UL << FLASH_NSCR_NSLOCK_Pos) /*!< 0x80000000 */
  6576. #define FLASH_NSCR_NSLOCK FLASH_NSCR_NSLOCK_Msk
  6577. /****************** Bits definition for FLASH_SECCR register ****************/
  6578. #define FLASH_SECCR_SECPG_Pos (0U)
  6579. #define FLASH_SECCR_SECPG_Msk (0x1UL << FLASH_SECCR_SECPG_Pos) /*!< 0x00000001 */
  6580. #define FLASH_SECCR_SECPG FLASH_SECCR_SECPG_Msk
  6581. #define FLASH_SECCR_SECPER_Pos (1U)
  6582. #define FLASH_SECCR_SECPER_Msk (0x1UL << FLASH_SECCR_SECPER_Pos) /*!< 0x00000002 */
  6583. #define FLASH_SECCR_SECPER FLASH_SECCR_SECPER_Msk
  6584. #define FLASH_SECCR_SECMER1_Pos (2U)
  6585. #define FLASH_SECCR_SECMER1_Msk (0x1UL << FLASH_SECCR_SECMER1_Pos) /*!< 0x00000004 */
  6586. #define FLASH_SECCR_SECMER1 FLASH_SECCR_SECMER1_Msk
  6587. #define FLASH_SECCR_SECPNB_Pos (3U)
  6588. #define FLASH_SECCR_SECPNB_Msk (0x7FUL << FLASH_SECCR_SECPNB_Pos) /*!< 0x000003F8 */
  6589. #define FLASH_SECCR_SECPNB FLASH_SECCR_SECPNB_Msk
  6590. #define FLASH_SECCR_SECBKER_Pos (11U)
  6591. #define FLASH_SECCR_SECBKER_Msk (0x1UL << FLASH_SECCR_SECBKER_Pos) /*!< 0x00000800 */
  6592. #define FLASH_SECCR_SECBKER FLASH_SECCR_SECBKER_Msk
  6593. #define FLASH_SECCR_SECMER2_Pos (15U)
  6594. #define FLASH_SECCR_SECMER2_Msk (0x1UL << FLASH_SECCR_SECMER2_Pos) /*!< 0x00008000 */
  6595. #define FLASH_SECCR_SECMER2 FLASH_SECCR_SECMER2_Msk
  6596. #define FLASH_SECCR_SECSTRT_Pos (16U)
  6597. #define FLASH_SECCR_SECSTRT_Msk (0x1UL << FLASH_SECCR_SECSTRT_Pos) /*!< 0x00010000 */
  6598. #define FLASH_SECCR_SECSTRT FLASH_SECCR_SECSTRT_Msk
  6599. #define FLASH_SECCR_SECEOPIE_Pos (24U)
  6600. #define FLASH_SECCR_SECEOPIE_Msk (0x1UL << FLASH_SECCR_SECEOPIE_Pos) /*!< 0x01000000 */
  6601. #define FLASH_SECCR_SECEOPIE FLASH_SECCR_SECEOPIE_Msk
  6602. #define FLASH_SECCR_SECERRIE_Pos (25U)
  6603. #define FLASH_SECCR_SECERRIE_Msk (0x1UL << FLASH_SECCR_SECERRIE_Pos) /*!< 0x02000000 */
  6604. #define FLASH_SECCR_SECERRIE FLASH_SECCR_SECERRIE_Msk
  6605. #define FLASH_SECCR_SECINV_Pos (29U)
  6606. #define FLASH_SECCR_SECINV_Msk (0x1UL << FLASH_SECCR_SECINV_Pos) /*!< 0x20000000 */
  6607. #define FLASH_SECCR_SECINV FLASH_SECCR_SECINV_Msk
  6608. #define FLASH_SECCR_SECLOCK_Pos (31U)
  6609. #define FLASH_SECCR_SECLOCK_Msk (0x1UL << FLASH_SECCR_SECLOCK_Pos) /*!< 0x80000000 */
  6610. #define FLASH_SECCR_SECLOCK FLASH_SECCR_SECLOCK_Msk
  6611. /******************* Bits definition for FLASH_ECCR register ***************/
  6612. #define FLASH_ECCR_ADDR_ECC_Pos (0U)
  6613. #define FLASH_ECCR_ADDR_ECC_Msk (0x7FFFFUL << FLASH_ECCR_ADDR_ECC_Pos)/*!< 0x0007FFFF */
  6614. #define FLASH_ECCR_ADDR_ECC FLASH_ECCR_ADDR_ECC_Msk
  6615. #define FLASH_ECCR_BK_ECC_Pos (21U)
  6616. #define FLASH_ECCR_BK_ECC_Msk (0x1UL << FLASH_ECCR_BK_ECC_Pos) /*!< 0x00200000 */
  6617. #define FLASH_ECCR_BK_ECC FLASH_ECCR_BK_ECC_Msk
  6618. #define FLASH_ECCR_SYSF_ECC_Pos (22U)
  6619. #define FLASH_ECCR_SYSF_ECC_Msk (0x1UL << FLASH_ECCR_SYSF_ECC_Pos) /*!< 0x00400000 */
  6620. #define FLASH_ECCR_SYSF_ECC FLASH_ECCR_SYSF_ECC_Msk
  6621. #define FLASH_ECCR_ECCIE_Pos (24U)
  6622. #define FLASH_ECCR_ECCIE_Msk (0x1UL << FLASH_ECCR_ECCIE_Pos) /*!< 0x01000000 */
  6623. #define FLASH_ECCR_ECCIE FLASH_ECCR_ECCIE_Msk
  6624. #define FLASH_ECCR_ECCC2_Pos (28U)
  6625. #define FLASH_ECCR_ECCC2_Msk (0x1UL << FLASH_ECCR_ECCC2_Pos) /*!< 0x10000000 */
  6626. #define FLASH_ECCR_ECCC2 FLASH_ECCR_ECCC2_Msk
  6627. #define FLASH_ECCR_ECCD2_Pos (29U)
  6628. #define FLASH_ECCR_ECCD2_Msk (0x1UL << FLASH_ECCR_ECCD2_Pos) /*!< 0x20000000 */
  6629. #define FLASH_ECCR_ECCD2 FLASH_ECCR_ECCD2_Msk
  6630. #define FLASH_ECCR_ECCC_Pos (30U)
  6631. #define FLASH_ECCR_ECCC_Msk (0x1UL << FLASH_ECCR_ECCC_Pos) /*!< 0x40000000 */
  6632. #define FLASH_ECCR_ECCC FLASH_ECCR_ECCC_Msk
  6633. #define FLASH_ECCR_ECCD_Pos (31U)
  6634. #define FLASH_ECCR_ECCD_Msk (0x1UL << FLASH_ECCR_ECCD_Pos) /*!< 0x80000000 */
  6635. #define FLASH_ECCR_ECCD FLASH_ECCR_ECCD_Msk
  6636. /******************* Bits definition for FLASH_OPTR register ***************/
  6637. #define FLASH_OPTR_RDP_Pos (0U)
  6638. #define FLASH_OPTR_RDP_Msk (0xFFUL << FLASH_OPTR_RDP_Pos) /*!< 0x000000FF */
  6639. #define FLASH_OPTR_RDP FLASH_OPTR_RDP_Msk
  6640. #define FLASH_OPTR_BOR_LEV_Pos (8U)
  6641. #define FLASH_OPTR_BOR_LEV_Msk (0x7UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000700 */
  6642. #define FLASH_OPTR_BOR_LEV FLASH_OPTR_BOR_LEV_Msk
  6643. #define FLASH_OPTR_BOR_LEV_0 (0x0UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000000 */
  6644. #define FLASH_OPTR_BOR_LEV_1 (0x1UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000100 */
  6645. #define FLASH_OPTR_BOR_LEV_2 (0x2UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000200 */
  6646. #define FLASH_OPTR_BOR_LEV_3 (0x3UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000300 */
  6647. #define FLASH_OPTR_BOR_LEV_4 (0x4UL << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000400 */
  6648. #define FLASH_OPTR_nRST_STOP_Pos (12U)
  6649. #define FLASH_OPTR_nRST_STOP_Msk (0x1UL << FLASH_OPTR_nRST_STOP_Pos) /*!< 0x00001000 */
  6650. #define FLASH_OPTR_nRST_STOP FLASH_OPTR_nRST_STOP_Msk
  6651. #define FLASH_OPTR_nRST_STDBY_Pos (13U)
  6652. #define FLASH_OPTR_nRST_STDBY_Msk (0x1UL << FLASH_OPTR_nRST_STDBY_Pos) /*!< 0x00002000 */
  6653. #define FLASH_OPTR_nRST_STDBY FLASH_OPTR_nRST_STDBY_Msk
  6654. #define FLASH_OPTR_nRST_SHDW_Pos (14U)
  6655. #define FLASH_OPTR_nRST_SHDW_Msk (0x1UL << FLASH_OPTR_nRST_SHDW_Pos) /*!< 0x00004000 */
  6656. #define FLASH_OPTR_nRST_SHDW FLASH_OPTR_nRST_SHDW_Msk
  6657. #define FLASH_OPTR_IWDG_SW_Pos (16U)
  6658. #define FLASH_OPTR_IWDG_SW_Msk (0x1UL << FLASH_OPTR_IWDG_SW_Pos) /*!< 0x00010000 */
  6659. #define FLASH_OPTR_IWDG_SW FLASH_OPTR_IWDG_SW_Msk
  6660. #define FLASH_OPTR_IWDG_STOP_Pos (17U)
  6661. #define FLASH_OPTR_IWDG_STOP_Msk (0x1UL << FLASH_OPTR_IWDG_STOP_Pos) /*!< 0x00020000 */
  6662. #define FLASH_OPTR_IWDG_STOP FLASH_OPTR_IWDG_STOP_Msk
  6663. #define FLASH_OPTR_IWDG_STDBY_Pos (18U)
  6664. #define FLASH_OPTR_IWDG_STDBY_Msk (0x1UL << FLASH_OPTR_IWDG_STDBY_Pos) /*!< 0x00040000 */
  6665. #define FLASH_OPTR_IWDG_STDBY FLASH_OPTR_IWDG_STDBY_Msk
  6666. #define FLASH_OPTR_WWDG_SW_Pos (19U)
  6667. #define FLASH_OPTR_WWDG_SW_Msk (0x1UL << FLASH_OPTR_WWDG_SW_Pos) /*!< 0x00080000 */
  6668. #define FLASH_OPTR_WWDG_SW FLASH_OPTR_WWDG_SW_Msk
  6669. #define FLASH_OPTR_SWAP_BANK_Pos (20U)
  6670. #define FLASH_OPTR_SWAP_BANK_Msk (0x1UL << FLASH_OPTR_SWAP_BANK_Pos) /*!< 0x00100000 */
  6671. #define FLASH_OPTR_SWAP_BANK FLASH_OPTR_SWAP_BANK_Msk
  6672. #define FLASH_OPTR_DB256K_Pos (21U)
  6673. #define FLASH_OPTR_DB256K_Msk (0x1UL << FLASH_OPTR_DB256K_Pos) /*!< 0x00200000 */
  6674. #define FLASH_OPTR_DB256K FLASH_OPTR_DB256K_Msk
  6675. #define FLASH_OPTR_DBANK_Pos (22U)
  6676. #define FLASH_OPTR_DBANK_Msk (0x1UL << FLASH_OPTR_DBANK_Pos) /*!< 0x00400000 */
  6677. #define FLASH_OPTR_DBANK FLASH_OPTR_DBANK_Msk
  6678. #define FLASH_OPTR_SRAM2_PE_Pos (24U)
  6679. #define FLASH_OPTR_SRAM2_PE_Msk (0x1UL << FLASH_OPTR_SRAM2_PE_Pos) /*!< 0x01000000 */
  6680. #define FLASH_OPTR_SRAM2_PE FLASH_OPTR_SRAM2_PE_Msk
  6681. #define FLASH_OPTR_SRAM2_RST_Pos (25U)
  6682. #define FLASH_OPTR_SRAM2_RST_Msk (0x1UL << FLASH_OPTR_SRAM2_RST_Pos) /*!< 0x02000000 */
  6683. #define FLASH_OPTR_SRAM2_RST FLASH_OPTR_SRAM2_RST_Msk
  6684. #define FLASH_OPTR_nSWBOOT0_Pos (26U)
  6685. #define FLASH_OPTR_nSWBOOT0_Msk (0x1UL << FLASH_OPTR_nSWBOOT0_Pos) /*!< 0x04000000 */
  6686. #define FLASH_OPTR_nSWBOOT0 FLASH_OPTR_nSWBOOT0_Msk
  6687. #define FLASH_OPTR_nBOOT0_Pos (27U)
  6688. #define FLASH_OPTR_nBOOT0_Msk (0x1UL << FLASH_OPTR_nBOOT0_Pos) /*!< 0x08000000 */
  6689. #define FLASH_OPTR_nBOOT0 FLASH_OPTR_nBOOT0_Msk
  6690. #define FLASH_OPTR_PA15_PUPEN_Pos (28U)
  6691. #define FLASH_OPTR_PA15_PUPEN_Msk (0x1UL << FLASH_OPTR_PA15_PUPEN_Pos) /*!< 0x10000000 */
  6692. #define FLASH_OPTR_PA15_PUPEN FLASH_OPTR_PA15_PUPEN_Msk
  6693. #define FLASH_OPTR_TZEN_Pos (31U)
  6694. #define FLASH_OPTR_TZEN_Msk (0x1UL << FLASH_OPTR_TZEN_Pos) /*!< 0x80000000 */
  6695. #define FLASH_OPTR_TZEN FLASH_OPTR_TZEN_Msk
  6696. /**************** Bits definition for FLASH_NSBOOTADD0R register ************/
  6697. #define FLASH_NSBOOTADD0R_NSBOOTADD0_Pos (7U)
  6698. #define FLASH_NSBOOTADD0R_NSBOOTADD0_Msk (0x1FFFFFFUL << FLASH_NSBOOTADD0R_NSBOOTADD0_Pos)/*!< 0xFFFFFF80 */
  6699. #define FLASH_NSBOOTADD0R_NSBOOTADD0 FLASH_NSBOOTADD0R_NSBOOTADD0_Msk
  6700. /**************** Bits definition for FLASH_NSBOOTADD1R register ************/
  6701. #define FLASH_NSBOOTADD1R_NSBOOTADD1_Pos (7U)
  6702. #define FLASH_NSBOOTADD1R_NSBOOTADD1_Msk (0x1FFFFFFUL << FLASH_NSBOOTADD1R_NSBOOTADD1_Pos)/*!< 0xFFFFFF80 */
  6703. #define FLASH_NSBOOTADD1R_NSBOOTADD1 FLASH_NSBOOTADD1R_NSBOOTADD1_Msk
  6704. /**************** Bits definition for FLASH_SECBOOTADD0R register ***********/
  6705. #define FLASH_SECBOOTADD0R_BOOT_LOCK_Pos (0U)
  6706. #define FLASH_SECBOOTADD0R_BOOT_LOCK_Msk (0x1UL << FLASH_SECBOOTADD0R_BOOT_LOCK_Pos) /*!< 0x00000001 */
  6707. #define FLASH_SECBOOTADD0R_BOOT_LOCK FLASH_SECBOOTADD0R_BOOT_LOCK_Msk
  6708. #define FLASH_SECBOOTADD0R_SECBOOTADD0_Pos (7U)
  6709. #define FLASH_SECBOOTADD0R_SECBOOTADD0_Msk (0x1FFFFFFUL << FLASH_SECBOOTADD0R_SECBOOTADD0_Pos)/*!< 0xFFFFFF80 */
  6710. #define FLASH_SECBOOTADD0R_SECBOOTADD0 FLASH_SECBOOTADD0R_SECBOOTADD0_Msk
  6711. /***************** Bits definition for FLASH_SECWM1R1 register **************/
  6712. #define FLASH_SECWM1R1_SECWM1_PSTRT_Pos (0U)
  6713. #define FLASH_SECWM1R1_SECWM1_PSTRT_Msk (0x7FUL << FLASH_SECWM1R1_SECWM1_PSTRT_Pos)/*!< 0x0000007F */
  6714. #define FLASH_SECWM1R1_SECWM1_PSTRT FLASH_SECWM1R1_SECWM1_PSTRT_Msk
  6715. #define FLASH_SECWM1R1_SECWM1_PEND_Pos (16U)
  6716. #define FLASH_SECWM1R1_SECWM1_PEND_Msk (0x7FUL << FLASH_SECWM1R1_SECWM1_PEND_Pos) /*!< 0x007F0000 */
  6717. #define FLASH_SECWM1R1_SECWM1_PEND FLASH_SECWM1R1_SECWM1_PEND_Msk
  6718. /***************** Bits definition for FLASH_SECWM1R2 register **************/
  6719. #define FLASH_SECWM1R2_HDP1_PEND_Pos (16U)
  6720. #define FLASH_SECWM1R2_HDP1_PEND_Msk (0x7FUL << FLASH_SECWM1R2_HDP1_PEND_Pos) /*!< 0x007F0000 */
  6721. #define FLASH_SECWM1R2_HDP1_PEND FLASH_SECWM1R2_HDP1_PEND_Msk
  6722. #define FLASH_SECWM1R2_HDP1EN_Pos (31U)
  6723. #define FLASH_SECWM1R2_HDP1EN_Msk (0x1UL << FLASH_SECWM1R2_HDP1EN_Pos) /*!< 0x80000000 */
  6724. #define FLASH_SECWM1R2_HDP1EN FLASH_SECWM1R2_HDP1EN_Msk
  6725. /****************** Bits definition for FLASH_WRP1AR register ***************/
  6726. #define FLASH_WRP1AR_WRP1A_PSTRT_Pos (0U)
  6727. #define FLASH_WRP1AR_WRP1A_PSTRT_Msk (0x7FUL << FLASH_WRP1AR_WRP1A_PSTRT_Pos)/*!< 0x0000007F */
  6728. #define FLASH_WRP1AR_WRP1A_PSTRT FLASH_WRP1AR_WRP1A_PSTRT_Msk
  6729. #define FLASH_WRP1AR_WRP1A_PEND_Pos (16U)
  6730. #define FLASH_WRP1AR_WRP1A_PEND_Msk (0x7FUL << FLASH_WRP1AR_WRP1A_PEND_Pos) /*!< 0x007F0000 */
  6731. #define FLASH_WRP1AR_WRP1A_PEND FLASH_WRP1AR_WRP1A_PEND_Msk
  6732. /****************** Bits definition for FLASH_WRP1BR register ***************/
  6733. #define FLASH_WRP1BR_WRP1B_PSTRT_Pos (0U)
  6734. #define FLASH_WRP1BR_WRP1B_PSTRT_Msk (0x7FUL << FLASH_WRP1BR_WRP1B_PSTRT_Pos)/*!< 0x0000007F */
  6735. #define FLASH_WRP1BR_WRP1B_PSTRT FLASH_WRP1BR_WRP1B_PSTRT_Msk
  6736. #define FLASH_WRP1BR_WRP1B_PEND_Pos (16U)
  6737. #define FLASH_WRP1BR_WRP1B_PEND_Msk (0x7FUL << FLASH_WRP1BR_WRP1B_PEND_Pos) /*!< 0x007F0000 */
  6738. #define FLASH_WRP1BR_WRP1B_PEND FLASH_WRP1BR_WRP1B_PEND_Msk
  6739. /***************** Bits definition for FLASH_SECWM2R1 register **************/
  6740. #define FLASH_SECWM2R1_SECWM2_PSTRT_Pos (0U)
  6741. #define FLASH_SECWM2R1_SECWM2_PSTRT_Msk (0x7FUL << FLASH_SECWM2R1_SECWM2_PSTRT_Pos)/*!< 0x0000007F */
  6742. #define FLASH_SECWM2R1_SECWM2_PSTRT FLASH_SECWM2R1_SECWM2_PSTRT_Msk
  6743. #define FLASH_SECWM2R1_SECWM2_PEND_Pos (16U)
  6744. #define FLASH_SECWM2R1_SECWM2_PEND_Msk (0x7FUL << FLASH_SECWM2R1_SECWM2_PEND_Pos)/*!< 0x007F0000 */
  6745. #define FLASH_SECWM2R1_SECWM2_PEND FLASH_SECWM2R1_SECWM2_PEND_Msk
  6746. /***************** Bits definition for FLASH_SECWM2R2 register **************/
  6747. #define FLASH_SECWM2R2_HDP2_PEND_Pos (16U)
  6748. #define FLASH_SECWM2R2_HDP2_PEND_Msk (0x7FUL << FLASH_SECWM2R2_HDP2_PEND_Pos) /*!< 0x007F0000 */
  6749. #define FLASH_SECWM2R2_HDP2_PEND FLASH_SECWM2R2_HDP2_PEND_Msk
  6750. #define FLASH_SECWM2R2_HDP2EN_Pos (31U)
  6751. #define FLASH_SECWM2R2_HDP2EN_Msk (0x1UL << FLASH_SECWM2R2_HDP2EN_Pos) /*!< 0x80000000 */
  6752. #define FLASH_SECWM2R2_HDP2EN FLASH_SECWM2R2_HDP2EN_Msk
  6753. /****************** Bits definition for FLASH_WRP2AR register ***************/
  6754. #define FLASH_WRP2AR_WRP2A_PSTRT_Pos (0U)
  6755. #define FLASH_WRP2AR_WRP2A_PSTRT_Msk (0x7FUL << FLASH_WRP2AR_WRP2A_PSTRT_Pos)/*!< 0x0000007F */
  6756. #define FLASH_WRP2AR_WRP2A_PSTRT FLASH_WRP2AR_WRP2A_PSTRT_Msk
  6757. #define FLASH_WRP2AR_WRP2A_PEND_Pos (16U)
  6758. #define FLASH_WRP2AR_WRP2A_PEND_Msk (0x7FUL << FLASH_WRP2AR_WRP2A_PEND_Pos) /*!< 0x007F0000 */
  6759. #define FLASH_WRP2AR_WRP2A_PEND FLASH_WRP2AR_WRP2A_PEND_Msk
  6760. /****************** Bits definition for FLASH_WRPB2R register ***************/
  6761. #define FLASH_WRP2BR_WRP2B_PSTRT_Pos (0U)
  6762. #define FLASH_WRP2BR_WRP2B_PSTRT_Msk (0x7FUL << FLASH_WRP2BR_WRP2B_PSTRT_Pos)/*!< 0x0000007F */
  6763. #define FLASH_WRP2BR_WRP2B_PSTRT FLASH_WRP2BR_WRP2B_PSTRT_Msk
  6764. #define FLASH_WRP2BR_WRP2B_PEND_Pos (16U)
  6765. #define FLASH_WRP2BR_WRP2B_PEND_Msk (0x7FUL << FLASH_WRP2BR_WRP2B_PEND_Pos) /*!< 0x007F0000 */
  6766. #define FLASH_WRP2BR_WRP2B_PEND FLASH_WRP2BR_WRP2B_PEND_Msk
  6767. /****************** Bits definition for FLASH_SECHDPCR register ***********/
  6768. #define FLASH_SECHDPCR_HDP1_ACCDIS_Pos (0U)
  6769. #define FLASH_SECHDPCR_HDP1_ACCDIS_Msk (0x1UL << FLASH_SECHDPCR_HDP1_ACCDIS_Pos)/*!< 0x00000001 */
  6770. #define FLASH_SECHDPCR_HDP1_ACCDIS FLASH_SECHDPCR_HDP1_ACCDIS_Msk
  6771. #define FLASH_SECHDPCR_HDP2_ACCDIS_Pos (1U)
  6772. #define FLASH_SECHDPCR_HDP2_ACCDIS_Msk (0x1UL << FLASH_SECHDPCR_HDP2_ACCDIS_Pos)/*!< 0x00000002 */
  6773. #define FLASH_SECHDPCR_HDP2_ACCDIS FLASH_SECHDPCR_HDP2_ACCDIS_Msk
  6774. /****************** Bits definition for FLASH_PRIVCFGR register ***********/
  6775. #define FLASH_PRIVCFGR_PRIV_Pos (0U)
  6776. #define FLASH_PRIVCFGR_PRIV_Msk (0x1UL << FLASH_PRIVCFGR_PRIV_Pos)/*!< 0x00000001 */
  6777. #define FLASH_PRIVCFGR_PRIV FLASH_PRIVCFGR_PRIV_Msk
  6778. /******************************************************************************/
  6779. /* */
  6780. /* Flexible Memory Controller */
  6781. /* */
  6782. /******************************************************************************/
  6783. /****************** Bit definition for FMC_BCR1 register *******************/
  6784. #define FMC_BCR1_CCLKEN_Pos (20U)
  6785. #define FMC_BCR1_CCLKEN_Msk (0x1UL << FMC_BCR1_CCLKEN_Pos) /*!< 0x00100000 */
  6786. #define FMC_BCR1_CCLKEN FMC_BCR1_CCLKEN_Msk /*!<Continous clock enable */
  6787. #define FMC_BCR1_WFDIS_Pos (21U)
  6788. #define FMC_BCR1_WFDIS_Msk (0x1UL << FMC_BCR1_WFDIS_Pos) /*!< 0x00200000 */
  6789. #define FMC_BCR1_WFDIS FMC_BCR1_WFDIS_Msk /*!<Write FIFO Disable */
  6790. /****************** Bit definition for FMC_BCRx registers (x=1..4) *********/
  6791. #define FMC_BCRx_MBKEN_Pos (0U)
  6792. #define FMC_BCRx_MBKEN_Msk (0x1UL << FMC_BCRx_MBKEN_Pos) /*!< 0x00000001 */
  6793. #define FMC_BCRx_MBKEN FMC_BCRx_MBKEN_Msk /*!<Memory bank enable bit */
  6794. #define FMC_BCRx_MUXEN_Pos (1U)
  6795. #define FMC_BCRx_MUXEN_Msk (0x1UL << FMC_BCRx_MUXEN_Pos) /*!< 0x00000002 */
  6796. #define FMC_BCRx_MUXEN FMC_BCRx_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  6797. #define FMC_BCRx_MTYP_Pos (2U)
  6798. #define FMC_BCRx_MTYP_Msk (0x3UL << FMC_BCRx_MTYP_Pos) /*!< 0x0000000C */
  6799. #define FMC_BCRx_MTYP FMC_BCRx_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  6800. #define FMC_BCRx_MTYP_0 (0x1UL << FMC_BCRx_MTYP_Pos) /*!< 0x00000004 */
  6801. #define FMC_BCRx_MTYP_1 (0x2UL << FMC_BCRx_MTYP_Pos) /*!< 0x00000008 */
  6802. #define FMC_BCRx_MWID_Pos (4U)
  6803. #define FMC_BCRx_MWID_Msk (0x3UL << FMC_BCRx_MWID_Pos) /*!< 0x00000030 */
  6804. #define FMC_BCRx_MWID FMC_BCRx_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  6805. #define FMC_BCRx_MWID_0 (0x1UL << FMC_BCRx_MWID_Pos) /*!< 0x00000010 */
  6806. #define FMC_BCRx_MWID_1 (0x2UL << FMC_BCRx_MWID_Pos) /*!< 0x00000020 */
  6807. #define FMC_BCRx_FACCEN_Pos (6U)
  6808. #define FMC_BCRx_FACCEN_Msk (0x1UL << FMC_BCRx_FACCEN_Pos) /*!< 0x00000040 */
  6809. #define FMC_BCRx_FACCEN FMC_BCRx_FACCEN_Msk /*!<Flash access enable */
  6810. #define FMC_BCRx_BURSTEN_Pos (8U)
  6811. #define FMC_BCRx_BURSTEN_Msk (0x1UL << FMC_BCRx_BURSTEN_Pos) /*!< 0x00000100 */
  6812. #define FMC_BCRx_BURSTEN FMC_BCRx_BURSTEN_Msk /*!<Burst enable bit */
  6813. #define FMC_BCRx_WAITPOL_Pos (9U)
  6814. #define FMC_BCRx_WAITPOL_Msk (0x1UL << FMC_BCRx_WAITPOL_Pos) /*!< 0x00000200 */
  6815. #define FMC_BCRx_WAITPOL FMC_BCRx_WAITPOL_Msk /*!<Wait signal polarity bit */
  6816. #define FMC_BCRx_WAITCFG_Pos (11U)
  6817. #define FMC_BCRx_WAITCFG_Msk (0x1UL << FMC_BCRx_WAITCFG_Pos) /*!< 0x00000800 */
  6818. #define FMC_BCRx_WAITCFG FMC_BCRx_WAITCFG_Msk /*!<Wait timing configuration */
  6819. #define FMC_BCRx_WREN_Pos (12U)
  6820. #define FMC_BCRx_WREN_Msk (0x1UL << FMC_BCRx_WREN_Pos) /*!< 0x00001000 */
  6821. #define FMC_BCRx_WREN FMC_BCRx_WREN_Msk /*!<Write enable bit */
  6822. #define FMC_BCRx_WAITEN_Pos (13U)
  6823. #define FMC_BCRx_WAITEN_Msk (0x1UL << FMC_BCRx_WAITEN_Pos) /*!< 0x00002000 */
  6824. #define FMC_BCRx_WAITEN FMC_BCRx_WAITEN_Msk /*!<Wait enable bit */
  6825. #define FMC_BCRx_EXTMOD_Pos (14U)
  6826. #define FMC_BCRx_EXTMOD_Msk (0x1UL << FMC_BCRx_EXTMOD_Pos) /*!< 0x00004000 */
  6827. #define FMC_BCRx_EXTMOD FMC_BCRx_EXTMOD_Msk /*!<Extended mode enable */
  6828. #define FMC_BCRx_ASYNCWAIT_Pos (15U)
  6829. #define FMC_BCRx_ASYNCWAIT_Msk (0x1UL << FMC_BCRx_ASYNCWAIT_Pos) /*!< 0x00008000 */
  6830. #define FMC_BCRx_ASYNCWAIT FMC_BCRx_ASYNCWAIT_Msk /*!<Asynchronous wait */
  6831. #define FMC_BCRx_CPSIZE_Pos (16U)
  6832. #define FMC_BCRx_CPSIZE_Msk (0x7UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00070000 */
  6833. #define FMC_BCRx_CPSIZE FMC_BCRx_CPSIZE_Msk /*!<CRAM page size */
  6834. #define FMC_BCRx_CPSIZE_0 (0x1UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00010000 */
  6835. #define FMC_BCRx_CPSIZE_1 (0x2UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00020000 */
  6836. #define FMC_BCRx_CPSIZE_2 (0x4UL << FMC_BCRx_CPSIZE_Pos) /*!< 0x00040000 */
  6837. #define FMC_BCRx_CBURSTRW_Pos (19U)
  6838. #define FMC_BCRx_CBURSTRW_Msk (0x1UL << FMC_BCRx_CBURSTRW_Pos) /*!< 0x00080000 */
  6839. #define FMC_BCRx_CBURSTRW FMC_BCRx_CBURSTRW_Msk /*!<Write burst enable */
  6840. #define FMC_BCRx_NBLSET_Pos (22U)
  6841. #define FMC_BCRx_NBLSET_Msk (0x3UL << FMC_BCRx_NBLSET_Pos) /*!< 0x00C00000 */
  6842. #define FMC_BCRx_NBLSET FMC_BCRx_NBLSET_Msk /*!<Byte lane (NBL) setup */
  6843. #define FMC_BCRx_NBLSET_0 (0x1UL << FMC_BCRx_NBLSET_Pos) /*!< 0x00400000 */
  6844. #define FMC_BCRx_NBLSET_1 (0x2UL << FMC_BCRx_NBLSET_Pos) /*!< 0x00800000 */
  6845. /****************** Bit definition for FMC_BTRx registers (x=1..4) *********/
  6846. #define FMC_BTRx_ADDSET_Pos (0U)
  6847. #define FMC_BTRx_ADDSET_Msk (0xFUL << FMC_BTRx_ADDSET_Pos) /*!< 0x0000000F */
  6848. #define FMC_BTRx_ADDSET FMC_BTRx_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  6849. #define FMC_BTRx_ADDSET_0 (0x1UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000001 */
  6850. #define FMC_BTRx_ADDSET_1 (0x2UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000002 */
  6851. #define FMC_BTRx_ADDSET_2 (0x4UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000004 */
  6852. #define FMC_BTRx_ADDSET_3 (0x8UL << FMC_BTRx_ADDSET_Pos) /*!< 0x00000008 */
  6853. #define FMC_BTRx_ADDHLD_Pos (4U)
  6854. #define FMC_BTRx_ADDHLD_Msk (0xFUL << FMC_BTRx_ADDHLD_Pos) /*!< 0x000000F0 */
  6855. #define FMC_BTRx_ADDHLD FMC_BTRx_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  6856. #define FMC_BTRx_ADDHLD_0 (0x1UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000010 */
  6857. #define FMC_BTRx_ADDHLD_1 (0x2UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000020 */
  6858. #define FMC_BTRx_ADDHLD_2 (0x4UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000040 */
  6859. #define FMC_BTRx_ADDHLD_3 (0x8UL << FMC_BTRx_ADDHLD_Pos) /*!< 0x00000080 */
  6860. #define FMC_BTRx_DATAST_Pos (8U)
  6861. #define FMC_BTRx_DATAST_Msk (0xFFUL << FMC_BTRx_DATAST_Pos) /*!< 0x0000FF00 */
  6862. #define FMC_BTRx_DATAST FMC_BTRx_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  6863. #define FMC_BTRx_DATAST_0 (0x01UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000100 */
  6864. #define FMC_BTRx_DATAST_1 (0x02UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000200 */
  6865. #define FMC_BTRx_DATAST_2 (0x04UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000400 */
  6866. #define FMC_BTRx_DATAST_3 (0x08UL << FMC_BTRx_DATAST_Pos) /*!< 0x00000800 */
  6867. #define FMC_BTRx_DATAST_4 (0x10UL << FMC_BTRx_DATAST_Pos) /*!< 0x00001000 */
  6868. #define FMC_BTRx_DATAST_5 (0x20UL << FMC_BTRx_DATAST_Pos) /*!< 0x00002000 */
  6869. #define FMC_BTRx_DATAST_6 (0x40UL << FMC_BTRx_DATAST_Pos) /*!< 0x00004000 */
  6870. #define FMC_BTRx_DATAST_7 (0x80UL << FMC_BTRx_DATAST_Pos) /*!< 0x00008000 */
  6871. #define FMC_BTRx_BUSTURN_Pos (16U)
  6872. #define FMC_BTRx_BUSTURN_Msk (0xFUL << FMC_BTRx_BUSTURN_Pos) /*!< 0x000F0000 */
  6873. #define FMC_BTRx_BUSTURN FMC_BTRx_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  6874. #define FMC_BTRx_BUSTURN_0 (0x1UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00010000 */
  6875. #define FMC_BTRx_BUSTURN_1 (0x2UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00020000 */
  6876. #define FMC_BTRx_BUSTURN_2 (0x4UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00040000 */
  6877. #define FMC_BTRx_BUSTURN_3 (0x8UL << FMC_BTRx_BUSTURN_Pos) /*!< 0x00080000 */
  6878. #define FMC_BTRx_CLKDIV_Pos (20U)
  6879. #define FMC_BTRx_CLKDIV_Msk (0xFUL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00F00000 */
  6880. #define FMC_BTRx_CLKDIV FMC_BTRx_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  6881. #define FMC_BTRx_CLKDIV_0 (0x1UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00100000 */
  6882. #define FMC_BTRx_CLKDIV_1 (0x2UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00200000 */
  6883. #define FMC_BTRx_CLKDIV_2 (0x4UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00400000 */
  6884. #define FMC_BTRx_CLKDIV_3 (0x8UL << FMC_BTRx_CLKDIV_Pos) /*!< 0x00800000 */
  6885. #define FMC_BTRx_DATLAT_Pos (24U)
  6886. #define FMC_BTRx_DATLAT_Msk (0xFUL << FMC_BTRx_DATLAT_Pos) /*!< 0x0F000000 */
  6887. #define FMC_BTRx_DATLAT FMC_BTRx_DATLAT_Msk /*!<DATLAT[3:0] bits (Data latency) */
  6888. #define FMC_BTRx_DATLAT_0 (0x1UL << FMC_BTRx_DATLAT_Pos) /*!< 0x01000000 */
  6889. #define FMC_BTRx_DATLAT_1 (0x2UL << FMC_BTRx_DATLAT_Pos) /*!< 0x02000000 */
  6890. #define FMC_BTRx_DATLAT_2 (0x4UL << FMC_BTRx_DATLAT_Pos) /*!< 0x04000000 */
  6891. #define FMC_BTRx_DATLAT_3 (0x8UL << FMC_BTRx_DATLAT_Pos) /*!< 0x08000000 */
  6892. #define FMC_BTRx_ACCMOD_Pos (28U)
  6893. #define FMC_BTRx_ACCMOD_Msk (0x3UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x30000000 */
  6894. #define FMC_BTRx_ACCMOD FMC_BTRx_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  6895. #define FMC_BTRx_ACCMOD_0 (0x1UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x10000000 */
  6896. #define FMC_BTRx_ACCMOD_1 (0x2UL << FMC_BTRx_ACCMOD_Pos) /*!< 0x20000000 */
  6897. #define FMC_BTRx_DATAHLD_Pos (30U)
  6898. #define FMC_BTRx_DATAHLD_Msk (0x3UL << FMC_BTRx_DATAHLD_Pos) /*!< 0xC0000000 */
  6899. #define FMC_BTRx_DATAHLD FMC_BTRx_DATAHLD_Msk /*!<DATAHLD[1:0] bits (Data hold phase duration) */
  6900. #define FMC_BTRx_DATAHLD_0 (0x1UL << FMC_BTRx_DATAHLD_Pos) /*!< 0x40000000 */
  6901. #define FMC_BTRx_DATAHLD_1 (0x2UL << FMC_BTRx_DATAHLD_Pos) /*!< 0x80000000 */
  6902. /****************** Bit definition for FMC_BWTRx registers (x=1..4) *********/
  6903. #define FMC_BWTRx_ADDSET_Pos (0U)
  6904. #define FMC_BWTRx_ADDSET_Msk (0xFUL << FMC_BWTRx_ADDSET_Pos) /*!< 0x0000000F */
  6905. #define FMC_BWTRx_ADDSET FMC_BWTRx_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  6906. #define FMC_BWTRx_ADDSET_0 (0x1UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000001 */
  6907. #define FMC_BWTRx_ADDSET_1 (0x2UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000002 */
  6908. #define FMC_BWTRx_ADDSET_2 (0x4UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000004 */
  6909. #define FMC_BWTRx_ADDSET_3 (0x8UL << FMC_BWTRx_ADDSET_Pos) /*!< 0x00000008 */
  6910. #define FMC_BWTRx_ADDHLD_Pos (4U)
  6911. #define FMC_BWTRx_ADDHLD_Msk (0xFUL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x000000F0 */
  6912. #define FMC_BWTRx_ADDHLD FMC_BWTRx_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  6913. #define FMC_BWTRx_ADDHLD_0 (0x1UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000010 */
  6914. #define FMC_BWTRx_ADDHLD_1 (0x2UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000020 */
  6915. #define FMC_BWTRx_ADDHLD_2 (0x4UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000040 */
  6916. #define FMC_BWTRx_ADDHLD_3 (0x8UL << FMC_BWTRx_ADDHLD_Pos) /*!< 0x00000080 */
  6917. #define FMC_BWTRx_DATAST_Pos (8U)
  6918. #define FMC_BWTRx_DATAST_Msk (0xFFUL << FMC_BWTRx_DATAST_Pos) /*!< 0x0000FF00 */
  6919. #define FMC_BWTRx_DATAST FMC_BWTRx_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  6920. #define FMC_BWTRx_DATAST_0 (0x01UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000100 */
  6921. #define FMC_BWTRx_DATAST_1 (0x02UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000200 */
  6922. #define FMC_BWTRx_DATAST_2 (0x04UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000400 */
  6923. #define FMC_BWTRx_DATAST_3 (0x08UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00000800 */
  6924. #define FMC_BWTRx_DATAST_4 (0x10UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00001000 */
  6925. #define FMC_BWTRx_DATAST_5 (0x20UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00002000 */
  6926. #define FMC_BWTRx_DATAST_6 (0x40UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00004000 */
  6927. #define FMC_BWTRx_DATAST_7 (0x80UL << FMC_BWTRx_DATAST_Pos) /*!< 0x00008000 */
  6928. #define FMC_BWTRx_BUSTURN_Pos (16U)
  6929. #define FMC_BWTRx_BUSTURN_Msk (0xFUL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x000F0000 */
  6930. #define FMC_BWTRx_BUSTURN FMC_BWTRx_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  6931. #define FMC_BWTRx_BUSTURN_0 (0x1UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00010000 */
  6932. #define FMC_BWTRx_BUSTURN_1 (0x2UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00020000 */
  6933. #define FMC_BWTRx_BUSTURN_2 (0x4UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00040000 */
  6934. #define FMC_BWTRx_BUSTURN_3 (0x8UL << FMC_BWTRx_BUSTURN_Pos) /*!< 0x00080000 */
  6935. #define FMC_BWTRx_ACCMOD_Pos (28U)
  6936. #define FMC_BWTRx_ACCMOD_Msk (0x3UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x30000000 */
  6937. #define FMC_BWTRx_ACCMOD FMC_BWTRx_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  6938. #define FMC_BWTRx_ACCMOD_0 (0x1UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x10000000 */
  6939. #define FMC_BWTRx_ACCMOD_1 (0x2UL << FMC_BWTRx_ACCMOD_Pos) /*!< 0x20000000 */
  6940. #define FMC_BWTRx_DATAHLD_Pos (30U)
  6941. #define FMC_BWTRx_DATAHLD_Msk (0x3UL << FMC_BWTRx_DATAHLD_Pos) /*!< 0xC0000000 */
  6942. #define FMC_BWTRx_DATAHLD FMC_BWTRx_DATAHLD_Msk /*!<DATAHLD[1:0] bits (Data hold phase duration) */
  6943. #define FMC_BWTRx_DATAHLD_0 (0x1UL << FMC_BWTRx_DATAHLD_Pos) /*!< 0x40000000 */
  6944. #define FMC_BWTRx_DATAHLD_1 (0x2UL << FMC_BWTRx_DATAHLD_Pos) /*!< 0x80000000 */
  6945. /****************** Bit definition for FMC_PCSCNTR register ******************/
  6946. #define FMC_PCSCNTR_CSCOUNT_Pos (0U)
  6947. #define FMC_PCSCNTR_CSCOUNT_Msk (0xFFFFUL << FMC_PCSCNTR_CSCOUNT_Pos) /*!< 0x0000FFFF */
  6948. #define FMC_PCSCNTR_CSCOUNT FMC_PCSCNTR_CSCOUNT_Msk /*!<CSCOUNT[15:0] bits (Chip select counter) */
  6949. #define FMC_PCSCNTR_CNTB1EN_Pos (16U)
  6950. #define FMC_PCSCNTR_CNTB1EN_Msk (0x1UL << FMC_PCSCNTR_CNTB1EN_Pos) /*!< 0x00010000 */
  6951. #define FMC_PCSCNTR_CNTB1EN FMC_PCSCNTR_CNTB1EN_Msk /*!<Counter PSRAM/NOR Bank1_1 enable */
  6952. #define FMC_PCSCNTR_CNTB2EN_Pos (17U)
  6953. #define FMC_PCSCNTR_CNTB2EN_Msk (0x1UL << FMC_PCSCNTR_CNTB2EN_Pos) /*!< 0x00020000 */
  6954. #define FMC_PCSCNTR_CNTB2EN FMC_PCSCNTR_CNTB2EN_Msk /*!<Counter PSRAM/NOR Bank1_2 enable */
  6955. #define FMC_PCSCNTR_CNTB3EN_Pos (18U)
  6956. #define FMC_PCSCNTR_CNTB3EN_Msk (0x1UL << FMC_PCSCNTR_CNTB3EN_Pos) /*!< 0x00040000 */
  6957. #define FMC_PCSCNTR_CNTB3EN FMC_PCSCNTR_CNTB3EN_Msk /*!<Counter PSRAM/NOR Bank1_3 enable */
  6958. #define FMC_PCSCNTR_CNTB4EN_Pos (19U)
  6959. #define FMC_PCSCNTR_CNTB4EN_Msk (0x1UL << FMC_PCSCNTR_CNTB4EN_Pos) /*!< 0x00080000 */
  6960. #define FMC_PCSCNTR_CNTB4EN FMC_PCSCNTR_CNTB4EN_Msk /*!<Counter PSRAM/NOR Bank1_4 enable */
  6961. /****************** Bit definition for FMC_PCR register ********************/
  6962. #define FMC_PCR_PWAITEN_Pos (1U)
  6963. #define FMC_PCR_PWAITEN_Msk (0x1UL << FMC_PCR_PWAITEN_Pos) /*!< 0x00000002 */
  6964. #define FMC_PCR_PWAITEN FMC_PCR_PWAITEN_Msk /*!<Wait feature enable bit */
  6965. #define FMC_PCR_PBKEN_Pos (2U)
  6966. #define FMC_PCR_PBKEN_Msk (0x1UL << FMC_PCR_PBKEN_Pos) /*!< 0x00000004 */
  6967. #define FMC_PCR_PBKEN FMC_PCR_PBKEN_Msk /*!<NAND Flash memory bank enable bit */
  6968. #define FMC_PCR_PTYP_Pos (3U)
  6969. #define FMC_PCR_PTYP_Msk (0x1UL << FMC_PCR_PTYP_Pos) /*!< 0x00000008 */
  6970. #define FMC_PCR_PTYP FMC_PCR_PTYP_Msk /*!<Memory type */
  6971. #define FMC_PCR_PWID_Pos (4U)
  6972. #define FMC_PCR_PWID_Msk (0x3UL << FMC_PCR_PWID_Pos) /*!< 0x00000030 */
  6973. #define FMC_PCR_PWID FMC_PCR_PWID_Msk /*!<PWID[1:0] bits (NAND Flash databus width) */
  6974. #define FMC_PCR_PWID_0 (0x1UL << FMC_PCR_PWID_Pos) /*!< 0x00000010 */
  6975. #define FMC_PCR_PWID_1 (0x2UL << FMC_PCR_PWID_Pos) /*!< 0x00000020 */
  6976. #define FMC_PCR_ECCEN_Pos (6U)
  6977. #define FMC_PCR_ECCEN_Msk (0x1UL << FMC_PCR_ECCEN_Pos) /*!< 0x00000040 */
  6978. #define FMC_PCR_ECCEN FMC_PCR_ECCEN_Msk /*!<ECC computation logic enable bit */
  6979. #define FMC_PCR_TCLR_Pos (9U)
  6980. #define FMC_PCR_TCLR_Msk (0xFUL << FMC_PCR_TCLR_Pos) /*!< 0x00001E00 */
  6981. #define FMC_PCR_TCLR FMC_PCR_TCLR_Msk /*!<TCLR[3:0] bits (CLE to RE delay) */
  6982. #define FMC_PCR_TCLR_0 (0x1UL << FMC_PCR_TCLR_Pos) /*!< 0x00000200 */
  6983. #define FMC_PCR_TCLR_1 (0x2UL << FMC_PCR_TCLR_Pos) /*!< 0x00000400 */
  6984. #define FMC_PCR_TCLR_2 (0x4UL << FMC_PCR_TCLR_Pos) /*!< 0x00000800 */
  6985. #define FMC_PCR_TCLR_3 (0x8UL << FMC_PCR_TCLR_Pos) /*!< 0x00001000 */
  6986. #define FMC_PCR_TAR_Pos (13U)
  6987. #define FMC_PCR_TAR_Msk (0xFUL << FMC_PCR_TAR_Pos) /*!< 0x0001E000 */
  6988. #define FMC_PCR_TAR FMC_PCR_TAR_Msk /*!<TAR[3:0] bits (ALE to RE delay) */
  6989. #define FMC_PCR_TAR_0 (0x1UL << FMC_PCR_TAR_Pos) /*!< 0x00002000 */
  6990. #define FMC_PCR_TAR_1 (0x2UL << FMC_PCR_TAR_Pos) /*!< 0x00004000 */
  6991. #define FMC_PCR_TAR_2 (0x4UL << FMC_PCR_TAR_Pos) /*!< 0x00008000 */
  6992. #define FMC_PCR_TAR_3 (0x8UL << FMC_PCR_TAR_Pos) /*!< 0x00010000 */
  6993. #define FMC_PCR_ECCPS_Pos (17U)
  6994. #define FMC_PCR_ECCPS_Msk (0x7UL << FMC_PCR_ECCPS_Pos) /*!< 0x000E0000 */
  6995. #define FMC_PCR_ECCPS FMC_PCR_ECCPS_Msk /*!<ECCPS[1:0] bits (ECC page size) */
  6996. #define FMC_PCR_ECCPS_0 (0x1UL << FMC_PCR_ECCPS_Pos) /*!< 0x00020000 */
  6997. #define FMC_PCR_ECCPS_1 (0x2UL << FMC_PCR_ECCPS_Pos) /*!< 0x00040000 */
  6998. #define FMC_PCR_ECCPS_2 (0x4UL << FMC_PCR_ECCPS_Pos) /*!< 0x00080000 */
  6999. /******************* Bit definition for FMC_SR register ********************/
  7000. #define FMC_SR_IRS_Pos (0U)
  7001. #define FMC_SR_IRS_Msk (0x1UL << FMC_SR_IRS_Pos) /*!< 0x00000001 */
  7002. #define FMC_SR_IRS FMC_SR_IRS_Msk /*!<Interrupt Rising Edge status */
  7003. #define FMC_SR_ILS_Pos (1U)
  7004. #define FMC_SR_ILS_Msk (0x1UL << FMC_SR_ILS_Pos) /*!< 0x00000002 */
  7005. #define FMC_SR_ILS FMC_SR_ILS_Msk /*!<Interrupt Level status */
  7006. #define FMC_SR_IFS_Pos (2U)
  7007. #define FMC_SR_IFS_Msk (0x1UL << FMC_SR_IFS_Pos) /*!< 0x00000004 */
  7008. #define FMC_SR_IFS FMC_SR_IFS_Msk /*!<Interrupt Falling Edge status */
  7009. #define FMC_SR_IREN_Pos (3U)
  7010. #define FMC_SR_IREN_Msk (0x1UL << FMC_SR_IREN_Pos) /*!< 0x00000008 */
  7011. #define FMC_SR_IREN FMC_SR_IREN_Msk /*!<Interrupt Rising Edge detection Enable bit */
  7012. #define FMC_SR_ILEN_Pos (4U)
  7013. #define FMC_SR_ILEN_Msk (0x1UL << FMC_SR_ILEN_Pos) /*!< 0x00000010 */
  7014. #define FMC_SR_ILEN FMC_SR_ILEN_Msk /*!<Interrupt Level detection Enable bit */
  7015. #define FMC_SR_IFEN_Pos (5U)
  7016. #define FMC_SR_IFEN_Msk (0x1UL << FMC_SR_IFEN_Pos) /*!< 0x00000020 */
  7017. #define FMC_SR_IFEN FMC_SR_IFEN_Msk /*!<Interrupt Falling Edge detection Enable bit */
  7018. #define FMC_SR_FEMPT_Pos (6U)
  7019. #define FMC_SR_FEMPT_Msk (0x1UL << FMC_SR_FEMPT_Pos) /*!< 0x00000040 */
  7020. #define FMC_SR_FEMPT FMC_SR_FEMPT_Msk /*!<FIFO empty */
  7021. /****************** Bit definition for FMC_PMEM register ******************/
  7022. #define FMC_PMEM_MEMSET_Pos (0U)
  7023. #define FMC_PMEM_MEMSET_Msk (0xFFUL << FMC_PMEM_MEMSET_Pos) /*!< 0x000000FF */
  7024. #define FMC_PMEM_MEMSET FMC_PMEM_MEMSET_Msk /*!<MEMSET[7:0] bits (Common memory setup time) */
  7025. #define FMC_PMEM_MEMSET_0 (0x01UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000001 */
  7026. #define FMC_PMEM_MEMSET_1 (0x02UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000002 */
  7027. #define FMC_PMEM_MEMSET_2 (0x04UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000004 */
  7028. #define FMC_PMEM_MEMSET_3 (0x08UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000008 */
  7029. #define FMC_PMEM_MEMSET_4 (0x10UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000010 */
  7030. #define FMC_PMEM_MEMSET_5 (0x20UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000020 */
  7031. #define FMC_PMEM_MEMSET_6 (0x40UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000040 */
  7032. #define FMC_PMEM_MEMSET_7 (0x80UL << FMC_PMEM_MEMSET_Pos) /*!< 0x00000080 */
  7033. #define FMC_PMEM_MEMWAIT_Pos (8U)
  7034. #define FMC_PMEM_MEMWAIT_Msk (0xFFUL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x0000FF00 */
  7035. #define FMC_PMEM_MEMWAIT FMC_PMEM_MEMWAIT_Msk /*!<MEMWAIT[7:0] bits (Common memory wait time) */
  7036. #define FMC_PMEM_MEMWAIT_0 (0x01UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000100 */
  7037. #define FMC_PMEM_MEMWAIT_1 (0x02UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000200 */
  7038. #define FMC_PMEM_MEMWAIT_2 (0x04UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000400 */
  7039. #define FMC_PMEM_MEMWAIT_3 (0x08UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00000800 */
  7040. #define FMC_PMEM_MEMWAIT_4 (0x10UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00001000 */
  7041. #define FMC_PMEM_MEMWAIT_5 (0x20UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00002000 */
  7042. #define FMC_PMEM_MEMWAIT_6 (0x40UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00004000 */
  7043. #define FMC_PMEM_MEMWAIT_7 (0x80UL << FMC_PMEM_MEMWAIT_Pos) /*!< 0x00008000 */
  7044. #define FMC_PMEM_MEMHOLD_Pos (16U)
  7045. #define FMC_PMEM_MEMHOLD_Msk (0xFFUL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00FF0000 */
  7046. #define FMC_PMEM_MEMHOLD FMC_PMEM_MEMHOLD_Msk /*!<MEMHOLD[7:0] bits (Common memory hold time) */
  7047. #define FMC_PMEM_MEMHOLD_0 (0x01UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00010000 */
  7048. #define FMC_PMEM_MEMHOLD_1 (0x02UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00020000 */
  7049. #define FMC_PMEM_MEMHOLD_2 (0x04UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00040000 */
  7050. #define FMC_PMEM_MEMHOLD_3 (0x08UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00080000 */
  7051. #define FMC_PMEM_MEMHOLD_4 (0x10UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00100000 */
  7052. #define FMC_PMEM_MEMHOLD_5 (0x20UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00200000 */
  7053. #define FMC_PMEM_MEMHOLD_6 (0x40UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00400000 */
  7054. #define FMC_PMEM_MEMHOLD_7 (0x80UL << FMC_PMEM_MEMHOLD_Pos) /*!< 0x00800000 */
  7055. #define FMC_PMEM_MEMHIZ_Pos (24U)
  7056. #define FMC_PMEM_MEMHIZ_Msk (0xFFUL << FMC_PMEM_MEMHIZ_Pos) /*!< 0xFF000000 */
  7057. #define FMC_PMEM_MEMHIZ FMC_PMEM_MEMHIZ_Msk /*!<MEMHIZ[7:0] bits (Common memory databus HiZ time) */
  7058. #define FMC_PMEM_MEMHIZ_0 (0x01UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x01000000 */
  7059. #define FMC_PMEM_MEMHIZ_1 (0x02UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x02000000 */
  7060. #define FMC_PMEM_MEMHIZ_2 (0x04UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x04000000 */
  7061. #define FMC_PMEM_MEMHIZ_3 (0x08UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x08000000 */
  7062. #define FMC_PMEM_MEMHIZ_4 (0x10UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x10000000 */
  7063. #define FMC_PMEM_MEMHIZ_5 (0x20UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x20000000 */
  7064. #define FMC_PMEM_MEMHIZ_6 (0x40UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x40000000 */
  7065. #define FMC_PMEM_MEMHIZ_7 (0x80UL << FMC_PMEM_MEMHIZ_Pos) /*!< 0x80000000 */
  7066. /****************** Bit definition for FMC_PATT register *******************/
  7067. #define FMC_PATT_ATTSET_Pos (0U)
  7068. #define FMC_PATT_ATTSET_Msk (0xFFUL << FMC_PATT_ATTSET_Pos) /*!< 0x000000FF */
  7069. #define FMC_PATT_ATTSET FMC_PATT_ATTSET_Msk /*!<ATTSET[7:0] bits (Attribute memory setup time) */
  7070. #define FMC_PATT_ATTSET_0 (0x01UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000001 */
  7071. #define FMC_PATT_ATTSET_1 (0x02UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000002 */
  7072. #define FMC_PATT_ATTSET_2 (0x04UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000004 */
  7073. #define FMC_PATT_ATTSET_3 (0x08UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000008 */
  7074. #define FMC_PATT_ATTSET_4 (0x10UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000010 */
  7075. #define FMC_PATT_ATTSET_5 (0x20UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000020 */
  7076. #define FMC_PATT_ATTSET_6 (0x40UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000040 */
  7077. #define FMC_PATT_ATTSET_7 (0x80UL << FMC_PATT_ATTSET_Pos) /*!< 0x00000080 */
  7078. #define FMC_PATT_ATTWAIT_Pos (8U)
  7079. #define FMC_PATT_ATTWAIT_Msk (0xFFUL << FMC_PATT_ATTWAIT_Pos) /*!< 0x0000FF00 */
  7080. #define FMC_PATT_ATTWAIT FMC_PATT_ATTWAIT_Msk /*!<ATTWAIT[7:0] bits (Attribute memory wait time) */
  7081. #define FMC_PATT_ATTWAIT_0 (0x01UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000100 */
  7082. #define FMC_PATT_ATTWAIT_1 (0x02UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000200 */
  7083. #define FMC_PATT_ATTWAIT_2 (0x04UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000400 */
  7084. #define FMC_PATT_ATTWAIT_3 (0x08UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00000800 */
  7085. #define FMC_PATT_ATTWAIT_4 (0x10UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00001000 */
  7086. #define FMC_PATT_ATTWAIT_5 (0x20UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00002000 */
  7087. #define FMC_PATT_ATTWAIT_6 (0x40UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00004000 */
  7088. #define FMC_PATT_ATTWAIT_7 (0x80UL << FMC_PATT_ATTWAIT_Pos) /*!< 0x00008000 */
  7089. #define FMC_PATT_ATTHOLD_Pos (16U)
  7090. #define FMC_PATT_ATTHOLD_Msk (0xFFUL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00FF0000 */
  7091. #define FMC_PATT_ATTHOLD FMC_PATT_ATTHOLD_Msk /*!<ATTHOLD[7:0] bits (Attribute memory hold time) */
  7092. #define FMC_PATT_ATTHOLD_0 (0x01UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00010000 */
  7093. #define FMC_PATT_ATTHOLD_1 (0x02UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00020000 */
  7094. #define FMC_PATT_ATTHOLD_2 (0x04UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00040000 */
  7095. #define FMC_PATT_ATTHOLD_3 (0x08UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00080000 */
  7096. #define FMC_PATT_ATTHOLD_4 (0x10UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00100000 */
  7097. #define FMC_PATT_ATTHOLD_5 (0x20UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00200000 */
  7098. #define FMC_PATT_ATTHOLD_6 (0x40UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00400000 */
  7099. #define FMC_PATT_ATTHOLD_7 (0x80UL << FMC_PATT_ATTHOLD_Pos) /*!< 0x00800000 */
  7100. #define FMC_PATT_ATTHIZ_Pos (24U)
  7101. #define FMC_PATT_ATTHIZ_Msk (0xFFUL << FMC_PATT_ATTHIZ_Pos) /*!< 0xFF000000 */
  7102. #define FMC_PATT_ATTHIZ FMC_PATT_ATTHIZ_Msk /*!<ATTHIZ[7:0] bits (Attribute memory databus HiZ time) */
  7103. #define FMC_PATT_ATTHIZ_0 (0x01UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x01000000 */
  7104. #define FMC_PATT_ATTHIZ_1 (0x02UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x02000000 */
  7105. #define FMC_PATT_ATTHIZ_2 (0x04UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x04000000 */
  7106. #define FMC_PATT_ATTHIZ_3 (0x08UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x08000000 */
  7107. #define FMC_PATT_ATTHIZ_4 (0x10UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x10000000 */
  7108. #define FMC_PATT_ATTHIZ_5 (0x20UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x20000000 */
  7109. #define FMC_PATT_ATTHIZ_6 (0x40UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x40000000 */
  7110. #define FMC_PATT_ATTHIZ_7 (0x80UL << FMC_PATT_ATTHIZ_Pos) /*!< 0x80000000 */
  7111. /****************** Bit definition for FMC_ECCR register *******************/
  7112. #define FMC_ECCR_ECC_Pos (0U)
  7113. #define FMC_ECCR_ECC_Msk (0xFFFFFFFFUL << FMC_ECCR_ECC_Pos) /*!< 0xFFFFFFFF */
  7114. #define FMC_ECCR_ECC FMC_ECCR_ECC_Msk /*!<ECC result */
  7115. /******************************************************************************/
  7116. /* */
  7117. /* General Purpose IOs (GPIO) */
  7118. /* */
  7119. /******************************************************************************/
  7120. /****************** Bits definition for GPIO_MODER register *****************/
  7121. #define GPIO_MODER_MODE0_Pos (0U)
  7122. #define GPIO_MODER_MODE0_Msk (0x3UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000003 */
  7123. #define GPIO_MODER_MODE0 GPIO_MODER_MODE0_Msk
  7124. #define GPIO_MODER_MODE0_0 (0x1UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000001 */
  7125. #define GPIO_MODER_MODE0_1 (0x2UL << GPIO_MODER_MODE0_Pos) /*!< 0x00000002 */
  7126. #define GPIO_MODER_MODE1_Pos (2U)
  7127. #define GPIO_MODER_MODE1_Msk (0x3UL << GPIO_MODER_MODE1_Pos) /*!< 0x0000000C */
  7128. #define GPIO_MODER_MODE1 GPIO_MODER_MODE1_Msk
  7129. #define GPIO_MODER_MODE1_0 (0x1UL << GPIO_MODER_MODE1_Pos) /*!< 0x00000004 */
  7130. #define GPIO_MODER_MODE1_1 (0x2UL << GPIO_MODER_MODE1_Pos) /*!< 0x00000008 */
  7131. #define GPIO_MODER_MODE2_Pos (4U)
  7132. #define GPIO_MODER_MODE2_Msk (0x3UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000030 */
  7133. #define GPIO_MODER_MODE2 GPIO_MODER_MODE2_Msk
  7134. #define GPIO_MODER_MODE2_0 (0x1UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000010 */
  7135. #define GPIO_MODER_MODE2_1 (0x2UL << GPIO_MODER_MODE2_Pos) /*!< 0x00000020 */
  7136. #define GPIO_MODER_MODE3_Pos (6U)
  7137. #define GPIO_MODER_MODE3_Msk (0x3UL << GPIO_MODER_MODE3_Pos) /*!< 0x000000C0 */
  7138. #define GPIO_MODER_MODE3 GPIO_MODER_MODE3_Msk
  7139. #define GPIO_MODER_MODE3_0 (0x1UL << GPIO_MODER_MODE3_Pos) /*!< 0x00000040 */
  7140. #define GPIO_MODER_MODE3_1 (0x2UL << GPIO_MODER_MODE3_Pos) /*!< 0x00000080 */
  7141. #define GPIO_MODER_MODE4_Pos (8U)
  7142. #define GPIO_MODER_MODE4_Msk (0x3UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000300 */
  7143. #define GPIO_MODER_MODE4 GPIO_MODER_MODE4_Msk
  7144. #define GPIO_MODER_MODE4_0 (0x1UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000100 */
  7145. #define GPIO_MODER_MODE4_1 (0x2UL << GPIO_MODER_MODE4_Pos) /*!< 0x00000200 */
  7146. #define GPIO_MODER_MODE5_Pos (10U)
  7147. #define GPIO_MODER_MODE5_Msk (0x3UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000C00 */
  7148. #define GPIO_MODER_MODE5 GPIO_MODER_MODE5_Msk
  7149. #define GPIO_MODER_MODE5_0 (0x1UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000400 */
  7150. #define GPIO_MODER_MODE5_1 (0x2UL << GPIO_MODER_MODE5_Pos) /*!< 0x00000800 */
  7151. #define GPIO_MODER_MODE6_Pos (12U)
  7152. #define GPIO_MODER_MODE6_Msk (0x3UL << GPIO_MODER_MODE6_Pos) /*!< 0x00003000 */
  7153. #define GPIO_MODER_MODE6 GPIO_MODER_MODE6_Msk
  7154. #define GPIO_MODER_MODE6_0 (0x1UL << GPIO_MODER_MODE6_Pos) /*!< 0x00001000 */
  7155. #define GPIO_MODER_MODE6_1 (0x2UL << GPIO_MODER_MODE6_Pos) /*!< 0x00002000 */
  7156. #define GPIO_MODER_MODE7_Pos (14U)
  7157. #define GPIO_MODER_MODE7_Msk (0x3UL << GPIO_MODER_MODE7_Pos) /*!< 0x0000C000 */
  7158. #define GPIO_MODER_MODE7 GPIO_MODER_MODE7_Msk
  7159. #define GPIO_MODER_MODE7_0 (0x1UL << GPIO_MODER_MODE7_Pos) /*!< 0x00004000 */
  7160. #define GPIO_MODER_MODE7_1 (0x2UL << GPIO_MODER_MODE7_Pos) /*!< 0x00008000 */
  7161. #define GPIO_MODER_MODE8_Pos (16U)
  7162. #define GPIO_MODER_MODE8_Msk (0x3UL << GPIO_MODER_MODE8_Pos) /*!< 0x00030000 */
  7163. #define GPIO_MODER_MODE8 GPIO_MODER_MODE8_Msk
  7164. #define GPIO_MODER_MODE8_0 (0x1UL << GPIO_MODER_MODE8_Pos) /*!< 0x00010000 */
  7165. #define GPIO_MODER_MODE8_1 (0x2UL << GPIO_MODER_MODE8_Pos) /*!< 0x00020000 */
  7166. #define GPIO_MODER_MODE9_Pos (18U)
  7167. #define GPIO_MODER_MODE9_Msk (0x3UL << GPIO_MODER_MODE9_Pos) /*!< 0x000C0000 */
  7168. #define GPIO_MODER_MODE9 GPIO_MODER_MODE9_Msk
  7169. #define GPIO_MODER_MODE9_0 (0x1UL << GPIO_MODER_MODE9_Pos) /*!< 0x00040000 */
  7170. #define GPIO_MODER_MODE9_1 (0x2UL << GPIO_MODER_MODE9_Pos) /*!< 0x00080000 */
  7171. #define GPIO_MODER_MODE10_Pos (20U)
  7172. #define GPIO_MODER_MODE10_Msk (0x3UL << GPIO_MODER_MODE10_Pos) /*!< 0x00300000 */
  7173. #define GPIO_MODER_MODE10 GPIO_MODER_MODE10_Msk
  7174. #define GPIO_MODER_MODE10_0 (0x1UL << GPIO_MODER_MODE10_Pos) /*!< 0x00100000 */
  7175. #define GPIO_MODER_MODE10_1 (0x2UL << GPIO_MODER_MODE10_Pos) /*!< 0x00200000 */
  7176. #define GPIO_MODER_MODE11_Pos (22U)
  7177. #define GPIO_MODER_MODE11_Msk (0x3UL << GPIO_MODER_MODE11_Pos) /*!< 0x00C00000 */
  7178. #define GPIO_MODER_MODE11 GPIO_MODER_MODE11_Msk
  7179. #define GPIO_MODER_MODE11_0 (0x1UL << GPIO_MODER_MODE11_Pos) /*!< 0x00400000 */
  7180. #define GPIO_MODER_MODE11_1 (0x2UL << GPIO_MODER_MODE11_Pos) /*!< 0x00800000 */
  7181. #define GPIO_MODER_MODE12_Pos (24U)
  7182. #define GPIO_MODER_MODE12_Msk (0x3UL << GPIO_MODER_MODE12_Pos) /*!< 0x03000000 */
  7183. #define GPIO_MODER_MODE12 GPIO_MODER_MODE12_Msk
  7184. #define GPIO_MODER_MODE12_0 (0x1UL << GPIO_MODER_MODE12_Pos) /*!< 0x01000000 */
  7185. #define GPIO_MODER_MODE12_1 (0x2UL << GPIO_MODER_MODE12_Pos) /*!< 0x02000000 */
  7186. #define GPIO_MODER_MODE13_Pos (26U)
  7187. #define GPIO_MODER_MODE13_Msk (0x3UL << GPIO_MODER_MODE13_Pos) /*!< 0x0C000000 */
  7188. #define GPIO_MODER_MODE13 GPIO_MODER_MODE13_Msk
  7189. #define GPIO_MODER_MODE13_0 (0x1UL << GPIO_MODER_MODE13_Pos) /*!< 0x04000000 */
  7190. #define GPIO_MODER_MODE13_1 (0x2UL << GPIO_MODER_MODE13_Pos) /*!< 0x08000000 */
  7191. #define GPIO_MODER_MODE14_Pos (28U)
  7192. #define GPIO_MODER_MODE14_Msk (0x3UL << GPIO_MODER_MODE14_Pos) /*!< 0x30000000 */
  7193. #define GPIO_MODER_MODE14 GPIO_MODER_MODE14_Msk
  7194. #define GPIO_MODER_MODE14_0 (0x1UL << GPIO_MODER_MODE14_Pos) /*!< 0x10000000 */
  7195. #define GPIO_MODER_MODE14_1 (0x2UL << GPIO_MODER_MODE14_Pos) /*!< 0x20000000 */
  7196. #define GPIO_MODER_MODE15_Pos (30U)
  7197. #define GPIO_MODER_MODE15_Msk (0x3UL << GPIO_MODER_MODE15_Pos) /*!< 0xC0000000 */
  7198. #define GPIO_MODER_MODE15 GPIO_MODER_MODE15_Msk
  7199. #define GPIO_MODER_MODE15_0 (0x1UL << GPIO_MODER_MODE15_Pos) /*!< 0x40000000 */
  7200. #define GPIO_MODER_MODE15_1 (0x2UL << GPIO_MODER_MODE15_Pos) /*!< 0x80000000 */
  7201. /****************** Bits definition for GPIO_OTYPER register ****************/
  7202. #define GPIO_OTYPER_OT0_Pos (0U)
  7203. #define GPIO_OTYPER_OT0_Msk (0x1UL << GPIO_OTYPER_OT0_Pos) /*!< 0x00000001 */
  7204. #define GPIO_OTYPER_OT0 GPIO_OTYPER_OT0_Msk
  7205. #define GPIO_OTYPER_OT1_Pos (1U)
  7206. #define GPIO_OTYPER_OT1_Msk (0x1UL << GPIO_OTYPER_OT1_Pos) /*!< 0x00000002 */
  7207. #define GPIO_OTYPER_OT1 GPIO_OTYPER_OT1_Msk
  7208. #define GPIO_OTYPER_OT2_Pos (2U)
  7209. #define GPIO_OTYPER_OT2_Msk (0x1UL << GPIO_OTYPER_OT2_Pos) /*!< 0x00000004 */
  7210. #define GPIO_OTYPER_OT2 GPIO_OTYPER_OT2_Msk
  7211. #define GPIO_OTYPER_OT3_Pos (3U)
  7212. #define GPIO_OTYPER_OT3_Msk (0x1UL << GPIO_OTYPER_OT3_Pos) /*!< 0x00000008 */
  7213. #define GPIO_OTYPER_OT3 GPIO_OTYPER_OT3_Msk
  7214. #define GPIO_OTYPER_OT4_Pos (4U)
  7215. #define GPIO_OTYPER_OT4_Msk (0x1UL << GPIO_OTYPER_OT4_Pos) /*!< 0x00000010 */
  7216. #define GPIO_OTYPER_OT4 GPIO_OTYPER_OT4_Msk
  7217. #define GPIO_OTYPER_OT5_Pos (5U)
  7218. #define GPIO_OTYPER_OT5_Msk (0x1UL << GPIO_OTYPER_OT5_Pos) /*!< 0x00000020 */
  7219. #define GPIO_OTYPER_OT5 GPIO_OTYPER_OT5_Msk
  7220. #define GPIO_OTYPER_OT6_Pos (6U)
  7221. #define GPIO_OTYPER_OT6_Msk (0x1UL << GPIO_OTYPER_OT6_Pos) /*!< 0x00000040 */
  7222. #define GPIO_OTYPER_OT6 GPIO_OTYPER_OT6_Msk
  7223. #define GPIO_OTYPER_OT7_Pos (7U)
  7224. #define GPIO_OTYPER_OT7_Msk (0x1UL << GPIO_OTYPER_OT7_Pos) /*!< 0x00000080 */
  7225. #define GPIO_OTYPER_OT7 GPIO_OTYPER_OT7_Msk
  7226. #define GPIO_OTYPER_OT8_Pos (8U)
  7227. #define GPIO_OTYPER_OT8_Msk (0x1UL << GPIO_OTYPER_OT8_Pos) /*!< 0x00000100 */
  7228. #define GPIO_OTYPER_OT8 GPIO_OTYPER_OT8_Msk
  7229. #define GPIO_OTYPER_OT9_Pos (9U)
  7230. #define GPIO_OTYPER_OT9_Msk (0x1UL << GPIO_OTYPER_OT9_Pos) /*!< 0x00000200 */
  7231. #define GPIO_OTYPER_OT9 GPIO_OTYPER_OT9_Msk
  7232. #define GPIO_OTYPER_OT10_Pos (10U)
  7233. #define GPIO_OTYPER_OT10_Msk (0x1UL << GPIO_OTYPER_OT10_Pos) /*!< 0x00000400 */
  7234. #define GPIO_OTYPER_OT10 GPIO_OTYPER_OT10_Msk
  7235. #define GPIO_OTYPER_OT11_Pos (11U)
  7236. #define GPIO_OTYPER_OT11_Msk (0x1UL << GPIO_OTYPER_OT11_Pos) /*!< 0x00000800 */
  7237. #define GPIO_OTYPER_OT11 GPIO_OTYPER_OT11_Msk
  7238. #define GPIO_OTYPER_OT12_Pos (12U)
  7239. #define GPIO_OTYPER_OT12_Msk (0x1UL << GPIO_OTYPER_OT12_Pos) /*!< 0x00001000 */
  7240. #define GPIO_OTYPER_OT12 GPIO_OTYPER_OT12_Msk
  7241. #define GPIO_OTYPER_OT13_Pos (13U)
  7242. #define GPIO_OTYPER_OT13_Msk (0x1UL << GPIO_OTYPER_OT13_Pos) /*!< 0x00002000 */
  7243. #define GPIO_OTYPER_OT13 GPIO_OTYPER_OT13_Msk
  7244. #define GPIO_OTYPER_OT14_Pos (14U)
  7245. #define GPIO_OTYPER_OT14_Msk (0x1UL << GPIO_OTYPER_OT14_Pos) /*!< 0x00004000 */
  7246. #define GPIO_OTYPER_OT14 GPIO_OTYPER_OT14_Msk
  7247. #define GPIO_OTYPER_OT15_Pos (15U)
  7248. #define GPIO_OTYPER_OT15_Msk (0x1UL << GPIO_OTYPER_OT15_Pos) /*!< 0x00008000 */
  7249. #define GPIO_OTYPER_OT15 GPIO_OTYPER_OT15_Msk
  7250. /****************** Bits definition for GPIO_OSPEEDR register ***************/
  7251. #define GPIO_OSPEEDR_OSPEED0_Pos (0U)
  7252. #define GPIO_OSPEEDR_OSPEED0_Msk (0x3UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000003 */
  7253. #define GPIO_OSPEEDR_OSPEED0 GPIO_OSPEEDR_OSPEED0_Msk
  7254. #define GPIO_OSPEEDR_OSPEED0_0 (0x1UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000001 */
  7255. #define GPIO_OSPEEDR_OSPEED0_1 (0x2UL << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000002 */
  7256. #define GPIO_OSPEEDR_OSPEED1_Pos (2U)
  7257. #define GPIO_OSPEEDR_OSPEED1_Msk (0x3UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x0000000C */
  7258. #define GPIO_OSPEEDR_OSPEED1 GPIO_OSPEEDR_OSPEED1_Msk
  7259. #define GPIO_OSPEEDR_OSPEED1_0 (0x1UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000004 */
  7260. #define GPIO_OSPEEDR_OSPEED1_1 (0x2UL << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000008 */
  7261. #define GPIO_OSPEEDR_OSPEED2_Pos (4U)
  7262. #define GPIO_OSPEEDR_OSPEED2_Msk (0x3UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000030 */
  7263. #define GPIO_OSPEEDR_OSPEED2 GPIO_OSPEEDR_OSPEED2_Msk
  7264. #define GPIO_OSPEEDR_OSPEED2_0 (0x1UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000010 */
  7265. #define GPIO_OSPEEDR_OSPEED2_1 (0x2UL << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000020 */
  7266. #define GPIO_OSPEEDR_OSPEED3_Pos (6U)
  7267. #define GPIO_OSPEEDR_OSPEED3_Msk (0x3UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x000000C0 */
  7268. #define GPIO_OSPEEDR_OSPEED3 GPIO_OSPEEDR_OSPEED3_Msk
  7269. #define GPIO_OSPEEDR_OSPEED3_0 (0x1UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000040 */
  7270. #define GPIO_OSPEEDR_OSPEED3_1 (0x2UL << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000080 */
  7271. #define GPIO_OSPEEDR_OSPEED4_Pos (8U)
  7272. #define GPIO_OSPEEDR_OSPEED4_Msk (0x3UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000300 */
  7273. #define GPIO_OSPEEDR_OSPEED4 GPIO_OSPEEDR_OSPEED4_Msk
  7274. #define GPIO_OSPEEDR_OSPEED4_0 (0x1UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000100 */
  7275. #define GPIO_OSPEEDR_OSPEED4_1 (0x2UL << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000200 */
  7276. #define GPIO_OSPEEDR_OSPEED5_Pos (10U)
  7277. #define GPIO_OSPEEDR_OSPEED5_Msk (0x3UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000C00 */
  7278. #define GPIO_OSPEEDR_OSPEED5 GPIO_OSPEEDR_OSPEED5_Msk
  7279. #define GPIO_OSPEEDR_OSPEED5_0 (0x1UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000400 */
  7280. #define GPIO_OSPEEDR_OSPEED5_1 (0x2UL << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000800 */
  7281. #define GPIO_OSPEEDR_OSPEED6_Pos (12U)
  7282. #define GPIO_OSPEEDR_OSPEED6_Msk (0x3UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00003000 */
  7283. #define GPIO_OSPEEDR_OSPEED6 GPIO_OSPEEDR_OSPEED6_Msk
  7284. #define GPIO_OSPEEDR_OSPEED6_0 (0x1UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00001000 */
  7285. #define GPIO_OSPEEDR_OSPEED6_1 (0x2UL << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00002000 */
  7286. #define GPIO_OSPEEDR_OSPEED7_Pos (14U)
  7287. #define GPIO_OSPEEDR_OSPEED7_Msk (0x3UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x0000C000 */
  7288. #define GPIO_OSPEEDR_OSPEED7 GPIO_OSPEEDR_OSPEED7_Msk
  7289. #define GPIO_OSPEEDR_OSPEED7_0 (0x1UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00004000 */
  7290. #define GPIO_OSPEEDR_OSPEED7_1 (0x2UL << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00008000 */
  7291. #define GPIO_OSPEEDR_OSPEED8_Pos (16U)
  7292. #define GPIO_OSPEEDR_OSPEED8_Msk (0x3UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00030000 */
  7293. #define GPIO_OSPEEDR_OSPEED8 GPIO_OSPEEDR_OSPEED8_Msk
  7294. #define GPIO_OSPEEDR_OSPEED8_0 (0x1UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00010000 */
  7295. #define GPIO_OSPEEDR_OSPEED8_1 (0x2UL << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00020000 */
  7296. #define GPIO_OSPEEDR_OSPEED9_Pos (18U)
  7297. #define GPIO_OSPEEDR_OSPEED9_Msk (0x3UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x000C0000 */
  7298. #define GPIO_OSPEEDR_OSPEED9 GPIO_OSPEEDR_OSPEED9_Msk
  7299. #define GPIO_OSPEEDR_OSPEED9_0 (0x1UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00040000 */
  7300. #define GPIO_OSPEEDR_OSPEED9_1 (0x2UL << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00080000 */
  7301. #define GPIO_OSPEEDR_OSPEED10_Pos (20U)
  7302. #define GPIO_OSPEEDR_OSPEED10_Msk (0x3UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00300000 */
  7303. #define GPIO_OSPEEDR_OSPEED10 GPIO_OSPEEDR_OSPEED10_Msk
  7304. #define GPIO_OSPEEDR_OSPEED10_0 (0x1UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00100000 */
  7305. #define GPIO_OSPEEDR_OSPEED10_1 (0x2UL << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00200000 */
  7306. #define GPIO_OSPEEDR_OSPEED11_Pos (22U)
  7307. #define GPIO_OSPEEDR_OSPEED11_Msk (0x3UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00C00000 */
  7308. #define GPIO_OSPEEDR_OSPEED11 GPIO_OSPEEDR_OSPEED11_Msk
  7309. #define GPIO_OSPEEDR_OSPEED11_0 (0x1UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00400000 */
  7310. #define GPIO_OSPEEDR_OSPEED11_1 (0x2UL << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00800000 */
  7311. #define GPIO_OSPEEDR_OSPEED12_Pos (24U)
  7312. #define GPIO_OSPEEDR_OSPEED12_Msk (0x3UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x03000000 */
  7313. #define GPIO_OSPEEDR_OSPEED12 GPIO_OSPEEDR_OSPEED12_Msk
  7314. #define GPIO_OSPEEDR_OSPEED12_0 (0x1UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x01000000 */
  7315. #define GPIO_OSPEEDR_OSPEED12_1 (0x2UL << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x02000000 */
  7316. #define GPIO_OSPEEDR_OSPEED13_Pos (26U)
  7317. #define GPIO_OSPEEDR_OSPEED13_Msk (0x3UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x0C000000 */
  7318. #define GPIO_OSPEEDR_OSPEED13 GPIO_OSPEEDR_OSPEED13_Msk
  7319. #define GPIO_OSPEEDR_OSPEED13_0 (0x1UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x04000000 */
  7320. #define GPIO_OSPEEDR_OSPEED13_1 (0x2UL << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x08000000 */
  7321. #define GPIO_OSPEEDR_OSPEED14_Pos (28U)
  7322. #define GPIO_OSPEEDR_OSPEED14_Msk (0x3UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x30000000 */
  7323. #define GPIO_OSPEEDR_OSPEED14 GPIO_OSPEEDR_OSPEED14_Msk
  7324. #define GPIO_OSPEEDR_OSPEED14_0 (0x1UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x10000000 */
  7325. #define GPIO_OSPEEDR_OSPEED14_1 (0x2UL << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x20000000 */
  7326. #define GPIO_OSPEEDR_OSPEED15_Pos (30U)
  7327. #define GPIO_OSPEEDR_OSPEED15_Msk (0x3UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0xC0000000 */
  7328. #define GPIO_OSPEEDR_OSPEED15 GPIO_OSPEEDR_OSPEED15_Msk
  7329. #define GPIO_OSPEEDR_OSPEED15_0 (0x1UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x40000000 */
  7330. #define GPIO_OSPEEDR_OSPEED15_1 (0x2UL << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x80000000 */
  7331. /****************** Bits definition for GPIO_PUPDR register *****************/
  7332. #define GPIO_PUPDR_PUPD0_Pos (0U)
  7333. #define GPIO_PUPDR_PUPD0_Msk (0x3UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000003 */
  7334. #define GPIO_PUPDR_PUPD0 GPIO_PUPDR_PUPD0_Msk
  7335. #define GPIO_PUPDR_PUPD0_0 (0x1UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000001 */
  7336. #define GPIO_PUPDR_PUPD0_1 (0x2UL << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000002 */
  7337. #define GPIO_PUPDR_PUPD1_Pos (2U)
  7338. #define GPIO_PUPDR_PUPD1_Msk (0x3UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x0000000C */
  7339. #define GPIO_PUPDR_PUPD1 GPIO_PUPDR_PUPD1_Msk
  7340. #define GPIO_PUPDR_PUPD1_0 (0x1UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000004 */
  7341. #define GPIO_PUPDR_PUPD1_1 (0x2UL << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000008 */
  7342. #define GPIO_PUPDR_PUPD2_Pos (4U)
  7343. #define GPIO_PUPDR_PUPD2_Msk (0x3UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000030 */
  7344. #define GPIO_PUPDR_PUPD2 GPIO_PUPDR_PUPD2_Msk
  7345. #define GPIO_PUPDR_PUPD2_0 (0x1UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000010 */
  7346. #define GPIO_PUPDR_PUPD2_1 (0x2UL << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000020 */
  7347. #define GPIO_PUPDR_PUPD3_Pos (6U)
  7348. #define GPIO_PUPDR_PUPD3_Msk (0x3UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x000000C0 */
  7349. #define GPIO_PUPDR_PUPD3 GPIO_PUPDR_PUPD3_Msk
  7350. #define GPIO_PUPDR_PUPD3_0 (0x1UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000040 */
  7351. #define GPIO_PUPDR_PUPD3_1 (0x2UL << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000080 */
  7352. #define GPIO_PUPDR_PUPD4_Pos (8U)
  7353. #define GPIO_PUPDR_PUPD4_Msk (0x3UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000300 */
  7354. #define GPIO_PUPDR_PUPD4 GPIO_PUPDR_PUPD4_Msk
  7355. #define GPIO_PUPDR_PUPD4_0 (0x1UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000100 */
  7356. #define GPIO_PUPDR_PUPD4_1 (0x2UL << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000200 */
  7357. #define GPIO_PUPDR_PUPD5_Pos (10U)
  7358. #define GPIO_PUPDR_PUPD5_Msk (0x3UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000C00 */
  7359. #define GPIO_PUPDR_PUPD5 GPIO_PUPDR_PUPD5_Msk
  7360. #define GPIO_PUPDR_PUPD5_0 (0x1UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000400 */
  7361. #define GPIO_PUPDR_PUPD5_1 (0x2UL << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000800 */
  7362. #define GPIO_PUPDR_PUPD6_Pos (12U)
  7363. #define GPIO_PUPDR_PUPD6_Msk (0x3UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00003000 */
  7364. #define GPIO_PUPDR_PUPD6 GPIO_PUPDR_PUPD6_Msk
  7365. #define GPIO_PUPDR_PUPD6_0 (0x1UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00001000 */
  7366. #define GPIO_PUPDR_PUPD6_1 (0x2UL << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00002000 */
  7367. #define GPIO_PUPDR_PUPD7_Pos (14U)
  7368. #define GPIO_PUPDR_PUPD7_Msk (0x3UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x0000C000 */
  7369. #define GPIO_PUPDR_PUPD7 GPIO_PUPDR_PUPD7_Msk
  7370. #define GPIO_PUPDR_PUPD7_0 (0x1UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00004000 */
  7371. #define GPIO_PUPDR_PUPD7_1 (0x2UL << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00008000 */
  7372. #define GPIO_PUPDR_PUPD8_Pos (16U)
  7373. #define GPIO_PUPDR_PUPD8_Msk (0x3UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00030000 */
  7374. #define GPIO_PUPDR_PUPD8 GPIO_PUPDR_PUPD8_Msk
  7375. #define GPIO_PUPDR_PUPD8_0 (0x1UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00010000 */
  7376. #define GPIO_PUPDR_PUPD8_1 (0x2UL << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00020000 */
  7377. #define GPIO_PUPDR_PUPD9_Pos (18U)
  7378. #define GPIO_PUPDR_PUPD9_Msk (0x3UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x000C0000 */
  7379. #define GPIO_PUPDR_PUPD9 GPIO_PUPDR_PUPD9_Msk
  7380. #define GPIO_PUPDR_PUPD9_0 (0x1UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00040000 */
  7381. #define GPIO_PUPDR_PUPD9_1 (0x2UL << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00080000 */
  7382. #define GPIO_PUPDR_PUPD10_Pos (20U)
  7383. #define GPIO_PUPDR_PUPD10_Msk (0x3UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00300000 */
  7384. #define GPIO_PUPDR_PUPD10 GPIO_PUPDR_PUPD10_Msk
  7385. #define GPIO_PUPDR_PUPD10_0 (0x1UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00100000 */
  7386. #define GPIO_PUPDR_PUPD10_1 (0x2UL << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00200000 */
  7387. #define GPIO_PUPDR_PUPD11_Pos (22U)
  7388. #define GPIO_PUPDR_PUPD11_Msk (0x3UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00C00000 */
  7389. #define GPIO_PUPDR_PUPD11 GPIO_PUPDR_PUPD11_Msk
  7390. #define GPIO_PUPDR_PUPD11_0 (0x1UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00400000 */
  7391. #define GPIO_PUPDR_PUPD11_1 (0x2UL << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00800000 */
  7392. #define GPIO_PUPDR_PUPD12_Pos (24U)
  7393. #define GPIO_PUPDR_PUPD12_Msk (0x3UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x03000000 */
  7394. #define GPIO_PUPDR_PUPD12 GPIO_PUPDR_PUPD12_Msk
  7395. #define GPIO_PUPDR_PUPD12_0 (0x1UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x01000000 */
  7396. #define GPIO_PUPDR_PUPD12_1 (0x2UL << GPIO_PUPDR_PUPD12_Pos) /*!< 0x02000000 */
  7397. #define GPIO_PUPDR_PUPD13_Pos (26U)
  7398. #define GPIO_PUPDR_PUPD13_Msk (0x3UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x0C000000 */
  7399. #define GPIO_PUPDR_PUPD13 GPIO_PUPDR_PUPD13_Msk
  7400. #define GPIO_PUPDR_PUPD13_0 (0x1UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x04000000 */
  7401. #define GPIO_PUPDR_PUPD13_1 (0x2UL << GPIO_PUPDR_PUPD13_Pos) /*!< 0x08000000 */
  7402. #define GPIO_PUPDR_PUPD14_Pos (28U)
  7403. #define GPIO_PUPDR_PUPD14_Msk (0x3UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x30000000 */
  7404. #define GPIO_PUPDR_PUPD14 GPIO_PUPDR_PUPD14_Msk
  7405. #define GPIO_PUPDR_PUPD14_0 (0x1UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x10000000 */
  7406. #define GPIO_PUPDR_PUPD14_1 (0x2UL << GPIO_PUPDR_PUPD14_Pos) /*!< 0x20000000 */
  7407. #define GPIO_PUPDR_PUPD15_Pos (30U)
  7408. #define GPIO_PUPDR_PUPD15_Msk (0x3UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0xC0000000 */
  7409. #define GPIO_PUPDR_PUPD15 GPIO_PUPDR_PUPD15_Msk
  7410. #define GPIO_PUPDR_PUPD15_0 (0x1UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0x40000000 */
  7411. #define GPIO_PUPDR_PUPD15_1 (0x2UL << GPIO_PUPDR_PUPD15_Pos) /*!< 0x80000000 */
  7412. /****************** Bits definition for GPIO_IDR register *******************/
  7413. #define GPIO_IDR_ID0_Pos (0U)
  7414. #define GPIO_IDR_ID0_Msk (0x1UL << GPIO_IDR_ID0_Pos) /*!< 0x00000001 */
  7415. #define GPIO_IDR_ID0 GPIO_IDR_ID0_Msk
  7416. #define GPIO_IDR_ID1_Pos (1U)
  7417. #define GPIO_IDR_ID1_Msk (0x1UL << GPIO_IDR_ID1_Pos) /*!< 0x00000002 */
  7418. #define GPIO_IDR_ID1 GPIO_IDR_ID1_Msk
  7419. #define GPIO_IDR_ID2_Pos (2U)
  7420. #define GPIO_IDR_ID2_Msk (0x1UL << GPIO_IDR_ID2_Pos) /*!< 0x00000004 */
  7421. #define GPIO_IDR_ID2 GPIO_IDR_ID2_Msk
  7422. #define GPIO_IDR_ID3_Pos (3U)
  7423. #define GPIO_IDR_ID3_Msk (0x1UL << GPIO_IDR_ID3_Pos) /*!< 0x00000008 */
  7424. #define GPIO_IDR_ID3 GPIO_IDR_ID3_Msk
  7425. #define GPIO_IDR_ID4_Pos (4U)
  7426. #define GPIO_IDR_ID4_Msk (0x1UL << GPIO_IDR_ID4_Pos) /*!< 0x00000010 */
  7427. #define GPIO_IDR_ID4 GPIO_IDR_ID4_Msk
  7428. #define GPIO_IDR_ID5_Pos (5U)
  7429. #define GPIO_IDR_ID5_Msk (0x1UL << GPIO_IDR_ID5_Pos) /*!< 0x00000020 */
  7430. #define GPIO_IDR_ID5 GPIO_IDR_ID5_Msk
  7431. #define GPIO_IDR_ID6_Pos (6U)
  7432. #define GPIO_IDR_ID6_Msk (0x1UL << GPIO_IDR_ID6_Pos) /*!< 0x00000040 */
  7433. #define GPIO_IDR_ID6 GPIO_IDR_ID6_Msk
  7434. #define GPIO_IDR_ID7_Pos (7U)
  7435. #define GPIO_IDR_ID7_Msk (0x1UL << GPIO_IDR_ID7_Pos) /*!< 0x00000080 */
  7436. #define GPIO_IDR_ID7 GPIO_IDR_ID7_Msk
  7437. #define GPIO_IDR_ID8_Pos (8U)
  7438. #define GPIO_IDR_ID8_Msk (0x1UL << GPIO_IDR_ID8_Pos) /*!< 0x00000100 */
  7439. #define GPIO_IDR_ID8 GPIO_IDR_ID8_Msk
  7440. #define GPIO_IDR_ID9_Pos (9U)
  7441. #define GPIO_IDR_ID9_Msk (0x1UL << GPIO_IDR_ID9_Pos) /*!< 0x00000200 */
  7442. #define GPIO_IDR_ID9 GPIO_IDR_ID9_Msk
  7443. #define GPIO_IDR_ID10_Pos (10U)
  7444. #define GPIO_IDR_ID10_Msk (0x1UL << GPIO_IDR_ID10_Pos) /*!< 0x00000400 */
  7445. #define GPIO_IDR_ID10 GPIO_IDR_ID10_Msk
  7446. #define GPIO_IDR_ID11_Pos (11U)
  7447. #define GPIO_IDR_ID11_Msk (0x1UL << GPIO_IDR_ID11_Pos) /*!< 0x00000800 */
  7448. #define GPIO_IDR_ID11 GPIO_IDR_ID11_Msk
  7449. #define GPIO_IDR_ID12_Pos (12U)
  7450. #define GPIO_IDR_ID12_Msk (0x1UL << GPIO_IDR_ID12_Pos) /*!< 0x00001000 */
  7451. #define GPIO_IDR_ID12 GPIO_IDR_ID12_Msk
  7452. #define GPIO_IDR_ID13_Pos (13U)
  7453. #define GPIO_IDR_ID13_Msk (0x1UL << GPIO_IDR_ID13_Pos) /*!< 0x00002000 */
  7454. #define GPIO_IDR_ID13 GPIO_IDR_ID13_Msk
  7455. #define GPIO_IDR_ID14_Pos (14U)
  7456. #define GPIO_IDR_ID14_Msk (0x1UL << GPIO_IDR_ID14_Pos) /*!< 0x00004000 */
  7457. #define GPIO_IDR_ID14 GPIO_IDR_ID14_Msk
  7458. #define GPIO_IDR_ID15_Pos (15U)
  7459. #define GPIO_IDR_ID15_Msk (0x1UL << GPIO_IDR_ID15_Pos) /*!< 0x00008000 */
  7460. #define GPIO_IDR_ID15 GPIO_IDR_ID15_Msk
  7461. /****************** Bits definition for GPIO_ODR register *******************/
  7462. #define GPIO_ODR_OD0_Pos (0U)
  7463. #define GPIO_ODR_OD0_Msk (0x1UL << GPIO_ODR_OD0_Pos) /*!< 0x00000001 */
  7464. #define GPIO_ODR_OD0 GPIO_ODR_OD0_Msk
  7465. #define GPIO_ODR_OD1_Pos (1U)
  7466. #define GPIO_ODR_OD1_Msk (0x1UL << GPIO_ODR_OD1_Pos) /*!< 0x00000002 */
  7467. #define GPIO_ODR_OD1 GPIO_ODR_OD1_Msk
  7468. #define GPIO_ODR_OD2_Pos (2U)
  7469. #define GPIO_ODR_OD2_Msk (0x1UL << GPIO_ODR_OD2_Pos) /*!< 0x00000004 */
  7470. #define GPIO_ODR_OD2 GPIO_ODR_OD2_Msk
  7471. #define GPIO_ODR_OD3_Pos (3U)
  7472. #define GPIO_ODR_OD3_Msk (0x1UL << GPIO_ODR_OD3_Pos) /*!< 0x00000008 */
  7473. #define GPIO_ODR_OD3 GPIO_ODR_OD3_Msk
  7474. #define GPIO_ODR_OD4_Pos (4U)
  7475. #define GPIO_ODR_OD4_Msk (0x1UL << GPIO_ODR_OD4_Pos) /*!< 0x00000010 */
  7476. #define GPIO_ODR_OD4 GPIO_ODR_OD4_Msk
  7477. #define GPIO_ODR_OD5_Pos (5U)
  7478. #define GPIO_ODR_OD5_Msk (0x1UL << GPIO_ODR_OD5_Pos) /*!< 0x00000020 */
  7479. #define GPIO_ODR_OD5 GPIO_ODR_OD5_Msk
  7480. #define GPIO_ODR_OD6_Pos (6U)
  7481. #define GPIO_ODR_OD6_Msk (0x1UL << GPIO_ODR_OD6_Pos) /*!< 0x00000040 */
  7482. #define GPIO_ODR_OD6 GPIO_ODR_OD6_Msk
  7483. #define GPIO_ODR_OD7_Pos (7U)
  7484. #define GPIO_ODR_OD7_Msk (0x1UL << GPIO_ODR_OD7_Pos) /*!< 0x00000080 */
  7485. #define GPIO_ODR_OD7 GPIO_ODR_OD7_Msk
  7486. #define GPIO_ODR_OD8_Pos (8U)
  7487. #define GPIO_ODR_OD8_Msk (0x1UL << GPIO_ODR_OD8_Pos) /*!< 0x00000100 */
  7488. #define GPIO_ODR_OD8 GPIO_ODR_OD8_Msk
  7489. #define GPIO_ODR_OD9_Pos (9U)
  7490. #define GPIO_ODR_OD9_Msk (0x1UL << GPIO_ODR_OD9_Pos) /*!< 0x00000200 */
  7491. #define GPIO_ODR_OD9 GPIO_ODR_OD9_Msk
  7492. #define GPIO_ODR_OD10_Pos (10U)
  7493. #define GPIO_ODR_OD10_Msk (0x1UL << GPIO_ODR_OD10_Pos) /*!< 0x00000400 */
  7494. #define GPIO_ODR_OD10 GPIO_ODR_OD10_Msk
  7495. #define GPIO_ODR_OD11_Pos (11U)
  7496. #define GPIO_ODR_OD11_Msk (0x1UL << GPIO_ODR_OD11_Pos) /*!< 0x00000800 */
  7497. #define GPIO_ODR_OD11 GPIO_ODR_OD11_Msk
  7498. #define GPIO_ODR_OD12_Pos (12U)
  7499. #define GPIO_ODR_OD12_Msk (0x1UL << GPIO_ODR_OD12_Pos) /*!< 0x00001000 */
  7500. #define GPIO_ODR_OD12 GPIO_ODR_OD12_Msk
  7501. #define GPIO_ODR_OD13_Pos (13U)
  7502. #define GPIO_ODR_OD13_Msk (0x1UL << GPIO_ODR_OD13_Pos) /*!< 0x00002000 */
  7503. #define GPIO_ODR_OD13 GPIO_ODR_OD13_Msk
  7504. #define GPIO_ODR_OD14_Pos (14U)
  7505. #define GPIO_ODR_OD14_Msk (0x1UL << GPIO_ODR_OD14_Pos) /*!< 0x00004000 */
  7506. #define GPIO_ODR_OD14 GPIO_ODR_OD14_Msk
  7507. #define GPIO_ODR_OD15_Pos (15U)
  7508. #define GPIO_ODR_OD15_Msk (0x1UL << GPIO_ODR_OD15_Pos) /*!< 0x00008000 */
  7509. #define GPIO_ODR_OD15 GPIO_ODR_OD15_Msk
  7510. /****************** Bits definition for GPIO_BSRR register ******************/
  7511. #define GPIO_BSRR_BS0_Pos (0U)
  7512. #define GPIO_BSRR_BS0_Msk (0x1UL << GPIO_BSRR_BS0_Pos) /*!< 0x00000001 */
  7513. #define GPIO_BSRR_BS0 GPIO_BSRR_BS0_Msk
  7514. #define GPIO_BSRR_BS1_Pos (1U)
  7515. #define GPIO_BSRR_BS1_Msk (0x1UL << GPIO_BSRR_BS1_Pos) /*!< 0x00000002 */
  7516. #define GPIO_BSRR_BS1 GPIO_BSRR_BS1_Msk
  7517. #define GPIO_BSRR_BS2_Pos (2U)
  7518. #define GPIO_BSRR_BS2_Msk (0x1UL << GPIO_BSRR_BS2_Pos) /*!< 0x00000004 */
  7519. #define GPIO_BSRR_BS2 GPIO_BSRR_BS2_Msk
  7520. #define GPIO_BSRR_BS3_Pos (3U)
  7521. #define GPIO_BSRR_BS3_Msk (0x1UL << GPIO_BSRR_BS3_Pos) /*!< 0x00000008 */
  7522. #define GPIO_BSRR_BS3 GPIO_BSRR_BS3_Msk
  7523. #define GPIO_BSRR_BS4_Pos (4U)
  7524. #define GPIO_BSRR_BS4_Msk (0x1UL << GPIO_BSRR_BS4_Pos) /*!< 0x00000010 */
  7525. #define GPIO_BSRR_BS4 GPIO_BSRR_BS4_Msk
  7526. #define GPIO_BSRR_BS5_Pos (5U)
  7527. #define GPIO_BSRR_BS5_Msk (0x1UL << GPIO_BSRR_BS5_Pos) /*!< 0x00000020 */
  7528. #define GPIO_BSRR_BS5 GPIO_BSRR_BS5_Msk
  7529. #define GPIO_BSRR_BS6_Pos (6U)
  7530. #define GPIO_BSRR_BS6_Msk (0x1UL << GPIO_BSRR_BS6_Pos) /*!< 0x00000040 */
  7531. #define GPIO_BSRR_BS6 GPIO_BSRR_BS6_Msk
  7532. #define GPIO_BSRR_BS7_Pos (7U)
  7533. #define GPIO_BSRR_BS7_Msk (0x1UL << GPIO_BSRR_BS7_Pos) /*!< 0x00000080 */
  7534. #define GPIO_BSRR_BS7 GPIO_BSRR_BS7_Msk
  7535. #define GPIO_BSRR_BS8_Pos (8U)
  7536. #define GPIO_BSRR_BS8_Msk (0x1UL << GPIO_BSRR_BS8_Pos) /*!< 0x00000100 */
  7537. #define GPIO_BSRR_BS8 GPIO_BSRR_BS8_Msk
  7538. #define GPIO_BSRR_BS9_Pos (9U)
  7539. #define GPIO_BSRR_BS9_Msk (0x1UL << GPIO_BSRR_BS9_Pos) /*!< 0x00000200 */
  7540. #define GPIO_BSRR_BS9 GPIO_BSRR_BS9_Msk
  7541. #define GPIO_BSRR_BS10_Pos (10U)
  7542. #define GPIO_BSRR_BS10_Msk (0x1UL << GPIO_BSRR_BS10_Pos) /*!< 0x00000400 */
  7543. #define GPIO_BSRR_BS10 GPIO_BSRR_BS10_Msk
  7544. #define GPIO_BSRR_BS11_Pos (11U)
  7545. #define GPIO_BSRR_BS11_Msk (0x1UL << GPIO_BSRR_BS11_Pos) /*!< 0x00000800 */
  7546. #define GPIO_BSRR_BS11 GPIO_BSRR_BS11_Msk
  7547. #define GPIO_BSRR_BS12_Pos (12U)
  7548. #define GPIO_BSRR_BS12_Msk (0x1UL << GPIO_BSRR_BS12_Pos) /*!< 0x00001000 */
  7549. #define GPIO_BSRR_BS12 GPIO_BSRR_BS12_Msk
  7550. #define GPIO_BSRR_BS13_Pos (13U)
  7551. #define GPIO_BSRR_BS13_Msk (0x1UL << GPIO_BSRR_BS13_Pos) /*!< 0x00002000 */
  7552. #define GPIO_BSRR_BS13 GPIO_BSRR_BS13_Msk
  7553. #define GPIO_BSRR_BS14_Pos (14U)
  7554. #define GPIO_BSRR_BS14_Msk (0x1UL << GPIO_BSRR_BS14_Pos) /*!< 0x00004000 */
  7555. #define GPIO_BSRR_BS14 GPIO_BSRR_BS14_Msk
  7556. #define GPIO_BSRR_BS15_Pos (15U)
  7557. #define GPIO_BSRR_BS15_Msk (0x1UL << GPIO_BSRR_BS15_Pos) /*!< 0x00008000 */
  7558. #define GPIO_BSRR_BS15 GPIO_BSRR_BS15_Msk
  7559. #define GPIO_BSRR_BR0_Pos (16U)
  7560. #define GPIO_BSRR_BR0_Msk (0x1UL << GPIO_BSRR_BR0_Pos) /*!< 0x00010000 */
  7561. #define GPIO_BSRR_BR0 GPIO_BSRR_BR0_Msk
  7562. #define GPIO_BSRR_BR1_Pos (17U)
  7563. #define GPIO_BSRR_BR1_Msk (0x1UL << GPIO_BSRR_BR1_Pos) /*!< 0x00020000 */
  7564. #define GPIO_BSRR_BR1 GPIO_BSRR_BR1_Msk
  7565. #define GPIO_BSRR_BR2_Pos (18U)
  7566. #define GPIO_BSRR_BR2_Msk (0x1UL << GPIO_BSRR_BR2_Pos) /*!< 0x00040000 */
  7567. #define GPIO_BSRR_BR2 GPIO_BSRR_BR2_Msk
  7568. #define GPIO_BSRR_BR3_Pos (19U)
  7569. #define GPIO_BSRR_BR3_Msk (0x1UL << GPIO_BSRR_BR3_Pos) /*!< 0x00080000 */
  7570. #define GPIO_BSRR_BR3 GPIO_BSRR_BR3_Msk
  7571. #define GPIO_BSRR_BR4_Pos (20U)
  7572. #define GPIO_BSRR_BR4_Msk (0x1UL << GPIO_BSRR_BR4_Pos) /*!< 0x00100000 */
  7573. #define GPIO_BSRR_BR4 GPIO_BSRR_BR4_Msk
  7574. #define GPIO_BSRR_BR5_Pos (21U)
  7575. #define GPIO_BSRR_BR5_Msk (0x1UL << GPIO_BSRR_BR5_Pos) /*!< 0x00200000 */
  7576. #define GPIO_BSRR_BR5 GPIO_BSRR_BR5_Msk
  7577. #define GPIO_BSRR_BR6_Pos (22U)
  7578. #define GPIO_BSRR_BR6_Msk (0x1UL << GPIO_BSRR_BR6_Pos) /*!< 0x00400000 */
  7579. #define GPIO_BSRR_BR6 GPIO_BSRR_BR6_Msk
  7580. #define GPIO_BSRR_BR7_Pos (23U)
  7581. #define GPIO_BSRR_BR7_Msk (0x1UL << GPIO_BSRR_BR7_Pos) /*!< 0x00800000 */
  7582. #define GPIO_BSRR_BR7 GPIO_BSRR_BR7_Msk
  7583. #define GPIO_BSRR_BR8_Pos (24U)
  7584. #define GPIO_BSRR_BR8_Msk (0x1UL << GPIO_BSRR_BR8_Pos) /*!< 0x01000000 */
  7585. #define GPIO_BSRR_BR8 GPIO_BSRR_BR8_Msk
  7586. #define GPIO_BSRR_BR9_Pos (25U)
  7587. #define GPIO_BSRR_BR9_Msk (0x1UL << GPIO_BSRR_BR9_Pos) /*!< 0x02000000 */
  7588. #define GPIO_BSRR_BR9 GPIO_BSRR_BR9_Msk
  7589. #define GPIO_BSRR_BR10_Pos (26U)
  7590. #define GPIO_BSRR_BR10_Msk (0x1UL << GPIO_BSRR_BR10_Pos) /*!< 0x04000000 */
  7591. #define GPIO_BSRR_BR10 GPIO_BSRR_BR10_Msk
  7592. #define GPIO_BSRR_BR11_Pos (27U)
  7593. #define GPIO_BSRR_BR11_Msk (0x1UL << GPIO_BSRR_BR11_Pos) /*!< 0x08000000 */
  7594. #define GPIO_BSRR_BR11 GPIO_BSRR_BR11_Msk
  7595. #define GPIO_BSRR_BR12_Pos (28U)
  7596. #define GPIO_BSRR_BR12_Msk (0x1UL << GPIO_BSRR_BR12_Pos) /*!< 0x10000000 */
  7597. #define GPIO_BSRR_BR12 GPIO_BSRR_BR12_Msk
  7598. #define GPIO_BSRR_BR13_Pos (29U)
  7599. #define GPIO_BSRR_BR13_Msk (0x1UL << GPIO_BSRR_BR13_Pos) /*!< 0x20000000 */
  7600. #define GPIO_BSRR_BR13 GPIO_BSRR_BR13_Msk
  7601. #define GPIO_BSRR_BR14_Pos (30U)
  7602. #define GPIO_BSRR_BR14_Msk (0x1UL << GPIO_BSRR_BR14_Pos) /*!< 0x40000000 */
  7603. #define GPIO_BSRR_BR14 GPIO_BSRR_BR14_Msk
  7604. #define GPIO_BSRR_BR15_Pos (31U)
  7605. #define GPIO_BSRR_BR15_Msk (0x1UL << GPIO_BSRR_BR15_Pos) /*!< 0x80000000 */
  7606. #define GPIO_BSRR_BR15 GPIO_BSRR_BR15_Msk
  7607. /****************** Bit definition for GPIO_LCKR register *********************/
  7608. #define GPIO_LCKR_LCK0_Pos (0U)
  7609. #define GPIO_LCKR_LCK0_Msk (0x1UL << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  7610. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  7611. #define GPIO_LCKR_LCK1_Pos (1U)
  7612. #define GPIO_LCKR_LCK1_Msk (0x1UL << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  7613. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  7614. #define GPIO_LCKR_LCK2_Pos (2U)
  7615. #define GPIO_LCKR_LCK2_Msk (0x1UL << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  7616. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  7617. #define GPIO_LCKR_LCK3_Pos (3U)
  7618. #define GPIO_LCKR_LCK3_Msk (0x1UL << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  7619. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  7620. #define GPIO_LCKR_LCK4_Pos (4U)
  7621. #define GPIO_LCKR_LCK4_Msk (0x1UL << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  7622. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  7623. #define GPIO_LCKR_LCK5_Pos (5U)
  7624. #define GPIO_LCKR_LCK5_Msk (0x1UL << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  7625. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  7626. #define GPIO_LCKR_LCK6_Pos (6U)
  7627. #define GPIO_LCKR_LCK6_Msk (0x1UL << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  7628. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  7629. #define GPIO_LCKR_LCK7_Pos (7U)
  7630. #define GPIO_LCKR_LCK7_Msk (0x1UL << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  7631. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  7632. #define GPIO_LCKR_LCK8_Pos (8U)
  7633. #define GPIO_LCKR_LCK8_Msk (0x1UL << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  7634. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  7635. #define GPIO_LCKR_LCK9_Pos (9U)
  7636. #define GPIO_LCKR_LCK9_Msk (0x1UL << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  7637. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  7638. #define GPIO_LCKR_LCK10_Pos (10U)
  7639. #define GPIO_LCKR_LCK10_Msk (0x1UL << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  7640. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  7641. #define GPIO_LCKR_LCK11_Pos (11U)
  7642. #define GPIO_LCKR_LCK11_Msk (0x1UL << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  7643. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  7644. #define GPIO_LCKR_LCK12_Pos (12U)
  7645. #define GPIO_LCKR_LCK12_Msk (0x1UL << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  7646. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  7647. #define GPIO_LCKR_LCK13_Pos (13U)
  7648. #define GPIO_LCKR_LCK13_Msk (0x1UL << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  7649. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  7650. #define GPIO_LCKR_LCK14_Pos (14U)
  7651. #define GPIO_LCKR_LCK14_Msk (0x1UL << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  7652. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  7653. #define GPIO_LCKR_LCK15_Pos (15U)
  7654. #define GPIO_LCKR_LCK15_Msk (0x1UL << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  7655. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  7656. #define GPIO_LCKR_LCKK_Pos (16U)
  7657. #define GPIO_LCKR_LCKK_Msk (0x1UL << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  7658. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  7659. /****************** Bit definition for GPIO_AFRL register *********************/
  7660. #define GPIO_AFRL_AFSEL0_Pos (0U)
  7661. #define GPIO_AFRL_AFSEL0_Msk (0xFUL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x0000000F */
  7662. #define GPIO_AFRL_AFSEL0 GPIO_AFRL_AFSEL0_Msk
  7663. #define GPIO_AFRL_AFSEL0_0 (0x1UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000001 */
  7664. #define GPIO_AFRL_AFSEL0_1 (0x2UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000002 */
  7665. #define GPIO_AFRL_AFSEL0_2 (0x4UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000004 */
  7666. #define GPIO_AFRL_AFSEL0_3 (0x8UL << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000008 */
  7667. #define GPIO_AFRL_AFSEL1_Pos (4U)
  7668. #define GPIO_AFRL_AFSEL1_Msk (0xFUL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x000000F0 */
  7669. #define GPIO_AFRL_AFSEL1 GPIO_AFRL_AFSEL1_Msk
  7670. #define GPIO_AFRL_AFSEL1_0 (0x1UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000010 */
  7671. #define GPIO_AFRL_AFSEL1_1 (0x2UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000020 */
  7672. #define GPIO_AFRL_AFSEL1_2 (0x4UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000040 */
  7673. #define GPIO_AFRL_AFSEL1_3 (0x8UL << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000080 */
  7674. #define GPIO_AFRL_AFSEL2_Pos (8U)
  7675. #define GPIO_AFRL_AFSEL2_Msk (0xFUL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000F00 */
  7676. #define GPIO_AFRL_AFSEL2 GPIO_AFRL_AFSEL2_Msk
  7677. #define GPIO_AFRL_AFSEL2_0 (0x1UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000100 */
  7678. #define GPIO_AFRL_AFSEL2_1 (0x2UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000200 */
  7679. #define GPIO_AFRL_AFSEL2_2 (0x4UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000400 */
  7680. #define GPIO_AFRL_AFSEL2_3 (0x8UL << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000800 */
  7681. #define GPIO_AFRL_AFSEL3_Pos (12U)
  7682. #define GPIO_AFRL_AFSEL3_Msk (0xFUL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x0000F000 */
  7683. #define GPIO_AFRL_AFSEL3 GPIO_AFRL_AFSEL3_Msk
  7684. #define GPIO_AFRL_AFSEL3_0 (0x1UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00001000 */
  7685. #define GPIO_AFRL_AFSEL3_1 (0x2UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00002000 */
  7686. #define GPIO_AFRL_AFSEL3_2 (0x4UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00004000 */
  7687. #define GPIO_AFRL_AFSEL3_3 (0x8UL << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00008000 */
  7688. #define GPIO_AFRL_AFSEL4_Pos (16U)
  7689. #define GPIO_AFRL_AFSEL4_Msk (0xFUL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x000F0000 */
  7690. #define GPIO_AFRL_AFSEL4 GPIO_AFRL_AFSEL4_Msk
  7691. #define GPIO_AFRL_AFSEL4_0 (0x1UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00010000 */
  7692. #define GPIO_AFRL_AFSEL4_1 (0x2UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00020000 */
  7693. #define GPIO_AFRL_AFSEL4_2 (0x4UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00040000 */
  7694. #define GPIO_AFRL_AFSEL4_3 (0x8UL << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00080000 */
  7695. #define GPIO_AFRL_AFSEL5_Pos (20U)
  7696. #define GPIO_AFRL_AFSEL5_Msk (0xFUL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00F00000 */
  7697. #define GPIO_AFRL_AFSEL5 GPIO_AFRL_AFSEL5_Msk
  7698. #define GPIO_AFRL_AFSEL5_0 (0x1UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00100000 */
  7699. #define GPIO_AFRL_AFSEL5_1 (0x2UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00200000 */
  7700. #define GPIO_AFRL_AFSEL5_2 (0x4UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00400000 */
  7701. #define GPIO_AFRL_AFSEL5_3 (0x8UL << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00800000 */
  7702. #define GPIO_AFRL_AFSEL6_Pos (24U)
  7703. #define GPIO_AFRL_AFSEL6_Msk (0xFUL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x0F000000 */
  7704. #define GPIO_AFRL_AFSEL6 GPIO_AFRL_AFSEL6_Msk
  7705. #define GPIO_AFRL_AFSEL6_0 (0x1UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x01000000 */
  7706. #define GPIO_AFRL_AFSEL6_1 (0x2UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x02000000 */
  7707. #define GPIO_AFRL_AFSEL6_2 (0x4UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x04000000 */
  7708. #define GPIO_AFRL_AFSEL6_3 (0x8UL << GPIO_AFRL_AFSEL6_Pos) /*!< 0x08000000 */
  7709. #define GPIO_AFRL_AFSEL7_Pos (28U)
  7710. #define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
  7711. #define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
  7712. #define GPIO_AFRL_AFSEL7_0 (0x1UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x10000000 */
  7713. #define GPIO_AFRL_AFSEL7_1 (0x2UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x20000000 */
  7714. #define GPIO_AFRL_AFSEL7_2 (0x4UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x40000000 */
  7715. #define GPIO_AFRL_AFSEL7_3 (0x8UL << GPIO_AFRL_AFSEL7_Pos) /*!< 0x80000000 */
  7716. /****************** Bit definition for GPIO_AFRH register *********************/
  7717. #define GPIO_AFRH_AFSEL8_Pos (0U)
  7718. #define GPIO_AFRH_AFSEL8_Msk (0xFUL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x0000000F */
  7719. #define GPIO_AFRH_AFSEL8 GPIO_AFRH_AFSEL8_Msk
  7720. #define GPIO_AFRH_AFSEL8_0 (0x1UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000001 */
  7721. #define GPIO_AFRH_AFSEL8_1 (0x2UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000002 */
  7722. #define GPIO_AFRH_AFSEL8_2 (0x4UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000004 */
  7723. #define GPIO_AFRH_AFSEL8_3 (0x8UL << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000008 */
  7724. #define GPIO_AFRH_AFSEL9_Pos (4U)
  7725. #define GPIO_AFRH_AFSEL9_Msk (0xFUL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x000000F0 */
  7726. #define GPIO_AFRH_AFSEL9 GPIO_AFRH_AFSEL9_Msk
  7727. #define GPIO_AFRH_AFSEL9_0 (0x1UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000010 */
  7728. #define GPIO_AFRH_AFSEL9_1 (0x2UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000020 */
  7729. #define GPIO_AFRH_AFSEL9_2 (0x4UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000040 */
  7730. #define GPIO_AFRH_AFSEL9_3 (0x8UL << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000080 */
  7731. #define GPIO_AFRH_AFSEL10_Pos (8U)
  7732. #define GPIO_AFRH_AFSEL10_Msk (0xFUL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000F00 */
  7733. #define GPIO_AFRH_AFSEL10 GPIO_AFRH_AFSEL10_Msk
  7734. #define GPIO_AFRH_AFSEL10_0 (0x1UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000100 */
  7735. #define GPIO_AFRH_AFSEL10_1 (0x2UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000200 */
  7736. #define GPIO_AFRH_AFSEL10_2 (0x4UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000400 */
  7737. #define GPIO_AFRH_AFSEL10_3 (0x8UL << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000800 */
  7738. #define GPIO_AFRH_AFSEL11_Pos (12U)
  7739. #define GPIO_AFRH_AFSEL11_Msk (0xFUL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x0000F000 */
  7740. #define GPIO_AFRH_AFSEL11 GPIO_AFRH_AFSEL11_Msk
  7741. #define GPIO_AFRH_AFSEL11_0 (0x1UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00001000 */
  7742. #define GPIO_AFRH_AFSEL11_1 (0x2UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00002000 */
  7743. #define GPIO_AFRH_AFSEL11_2 (0x4UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00004000 */
  7744. #define GPIO_AFRH_AFSEL11_3 (0x8UL << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00008000 */
  7745. #define GPIO_AFRH_AFSEL12_Pos (16U)
  7746. #define GPIO_AFRH_AFSEL12_Msk (0xFUL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x000F0000 */
  7747. #define GPIO_AFRH_AFSEL12 GPIO_AFRH_AFSEL12_Msk
  7748. #define GPIO_AFRH_AFSEL12_0 (0x1UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00010000 */
  7749. #define GPIO_AFRH_AFSEL12_1 (0x2UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00020000 */
  7750. #define GPIO_AFRH_AFSEL12_2 (0x4UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00040000 */
  7751. #define GPIO_AFRH_AFSEL12_3 (0x8UL << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00080000 */
  7752. #define GPIO_AFRH_AFSEL13_Pos (20U)
  7753. #define GPIO_AFRH_AFSEL13_Msk (0xFUL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00F00000 */
  7754. #define GPIO_AFRH_AFSEL13 GPIO_AFRH_AFSEL13_Msk
  7755. #define GPIO_AFRH_AFSEL13_0 (0x1UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00100000 */
  7756. #define GPIO_AFRH_AFSEL13_1 (0x2UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00200000 */
  7757. #define GPIO_AFRH_AFSEL13_2 (0x4UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00400000 */
  7758. #define GPIO_AFRH_AFSEL13_3 (0x8UL << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00800000 */
  7759. #define GPIO_AFRH_AFSEL14_Pos (24U)
  7760. #define GPIO_AFRH_AFSEL14_Msk (0xFUL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x0F000000 */
  7761. #define GPIO_AFRH_AFSEL14 GPIO_AFRH_AFSEL14_Msk
  7762. #define GPIO_AFRH_AFSEL14_0 (0x1UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x01000000 */
  7763. #define GPIO_AFRH_AFSEL14_1 (0x2UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x02000000 */
  7764. #define GPIO_AFRH_AFSEL14_2 (0x4UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x04000000 */
  7765. #define GPIO_AFRH_AFSEL14_3 (0x8UL << GPIO_AFRH_AFSEL14_Pos) /*!< 0x08000000 */
  7766. #define GPIO_AFRH_AFSEL15_Pos (28U)
  7767. #define GPIO_AFRH_AFSEL15_Msk (0xFUL << GPIO_AFRH_AFSEL15_Pos) /*!< 0xF0000000 */
  7768. #define GPIO_AFRH_AFSEL15 GPIO_AFRH_AFSEL15_Msk
  7769. #define GPIO_AFRH_AFSEL15_0 (0x1UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x10000000 */
  7770. #define GPIO_AFRH_AFSEL15_1 (0x2UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x20000000 */
  7771. #define GPIO_AFRH_AFSEL15_2 (0x4UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x40000000 */
  7772. #define GPIO_AFRH_AFSEL15_3 (0x8UL << GPIO_AFRH_AFSEL15_Pos) /*!< 0x80000000 */
  7773. /****************** Bits definition for GPIO_BRR register ******************/
  7774. #define GPIO_BRR_BR0_Pos (0U)
  7775. #define GPIO_BRR_BR0_Msk (0x1UL << GPIO_BRR_BR0_Pos) /*!< 0x00000001 */
  7776. #define GPIO_BRR_BR0 GPIO_BRR_BR0_Msk
  7777. #define GPIO_BRR_BR1_Pos (1U)
  7778. #define GPIO_BRR_BR1_Msk (0x1UL << GPIO_BRR_BR1_Pos) /*!< 0x00000002 */
  7779. #define GPIO_BRR_BR1 GPIO_BRR_BR1_Msk
  7780. #define GPIO_BRR_BR2_Pos (2U)
  7781. #define GPIO_BRR_BR2_Msk (0x1UL << GPIO_BRR_BR2_Pos) /*!< 0x00000004 */
  7782. #define GPIO_BRR_BR2 GPIO_BRR_BR2_Msk
  7783. #define GPIO_BRR_BR3_Pos (3U)
  7784. #define GPIO_BRR_BR3_Msk (0x1UL << GPIO_BRR_BR3_Pos) /*!< 0x00000008 */
  7785. #define GPIO_BRR_BR3 GPIO_BRR_BR3_Msk
  7786. #define GPIO_BRR_BR4_Pos (4U)
  7787. #define GPIO_BRR_BR4_Msk (0x1UL << GPIO_BRR_BR4_Pos) /*!< 0x00000010 */
  7788. #define GPIO_BRR_BR4 GPIO_BRR_BR4_Msk
  7789. #define GPIO_BRR_BR5_Pos (5U)
  7790. #define GPIO_BRR_BR5_Msk (0x1UL << GPIO_BRR_BR5_Pos) /*!< 0x00000020 */
  7791. #define GPIO_BRR_BR5 GPIO_BRR_BR5_Msk
  7792. #define GPIO_BRR_BR6_Pos (6U)
  7793. #define GPIO_BRR_BR6_Msk (0x1UL << GPIO_BRR_BR6_Pos) /*!< 0x00000040 */
  7794. #define GPIO_BRR_BR6 GPIO_BRR_BR6_Msk
  7795. #define GPIO_BRR_BR7_Pos (7U)
  7796. #define GPIO_BRR_BR7_Msk (0x1UL << GPIO_BRR_BR7_Pos) /*!< 0x00000080 */
  7797. #define GPIO_BRR_BR7 GPIO_BRR_BR7_Msk
  7798. #define GPIO_BRR_BR8_Pos (8U)
  7799. #define GPIO_BRR_BR8_Msk (0x1UL << GPIO_BRR_BR8_Pos) /*!< 0x00000100 */
  7800. #define GPIO_BRR_BR8 GPIO_BRR_BR8_Msk
  7801. #define GPIO_BRR_BR9_Pos (9U)
  7802. #define GPIO_BRR_BR9_Msk (0x1UL << GPIO_BRR_BR9_Pos) /*!< 0x00000200 */
  7803. #define GPIO_BRR_BR9 GPIO_BRR_BR9_Msk
  7804. #define GPIO_BRR_BR10_Pos (10U)
  7805. #define GPIO_BRR_BR10_Msk (0x1UL << GPIO_BRR_BR10_Pos) /*!< 0x00000400 */
  7806. #define GPIO_BRR_BR10 GPIO_BRR_BR10_Msk
  7807. #define GPIO_BRR_BR11_Pos (11U)
  7808. #define GPIO_BRR_BR11_Msk (0x1UL << GPIO_BRR_BR11_Pos) /*!< 0x00000800 */
  7809. #define GPIO_BRR_BR11 GPIO_BRR_BR11_Msk
  7810. #define GPIO_BRR_BR12_Pos (12U)
  7811. #define GPIO_BRR_BR12_Msk (0x1UL << GPIO_BRR_BR12_Pos) /*!< 0x00001000 */
  7812. #define GPIO_BRR_BR12 GPIO_BRR_BR12_Msk
  7813. #define GPIO_BRR_BR13_Pos (13U)
  7814. #define GPIO_BRR_BR13_Msk (0x1UL << GPIO_BRR_BR13_Pos) /*!< 0x00002000 */
  7815. #define GPIO_BRR_BR13 GPIO_BRR_BR13_Msk
  7816. #define GPIO_BRR_BR14_Pos (14U)
  7817. #define GPIO_BRR_BR14_Msk (0x1UL << GPIO_BRR_BR14_Pos) /*!< 0x00004000 */
  7818. #define GPIO_BRR_BR14 GPIO_BRR_BR14_Msk
  7819. #define GPIO_BRR_BR15_Pos (15U)
  7820. #define GPIO_BRR_BR15_Msk (0x1UL << GPIO_BRR_BR15_Pos) /*!< 0x00008000 */
  7821. #define GPIO_BRR_BR15 GPIO_BRR_BR15_Msk
  7822. /****************** Bits definition for GPIO_SECCFGR register ***************/
  7823. #define GPIO_SECCFGR_SEC0_Pos (0U)
  7824. #define GPIO_SECCFGR_SEC0_Msk (0x1UL << GPIO_SECCFGR_SEC0_Pos) /*!< 0x00000001 */
  7825. #define GPIO_SECCFGR_SEC0 GPIO_SECCFGR_SEC0_Msk
  7826. #define GPIO_SECCFGR_SEC1_Pos (1U)
  7827. #define GPIO_SECCFGR_SEC1_Msk (0x1UL << GPIO_SECCFGR_SEC1_Pos) /*!< 0x00000002 */
  7828. #define GPIO_SECCFGR_SEC1 GPIO_SECCFGR_SEC1_Msk
  7829. #define GPIO_SECCFGR_SEC2_Pos (2U)
  7830. #define GPIO_SECCFGR_SEC2_Msk (0x1UL << GPIO_SECCFGR_SEC2_Pos) /*!< 0x00000004 */
  7831. #define GPIO_SECCFGR_SEC2 GPIO_SECCFGR_SEC2_Msk
  7832. #define GPIO_SECCFGR_SEC3_Pos (3U)
  7833. #define GPIO_SECCFGR_SEC3_Msk (0x1UL << GPIO_SECCFGR_SEC3_Pos) /*!< 0x00000008 */
  7834. #define GPIO_SECCFGR_SEC3 GPIO_SECCFGR_SEC3_Msk
  7835. #define GPIO_SECCFGR_SEC4_Pos (4U)
  7836. #define GPIO_SECCFGR_SEC4_Msk (0x1UL << GPIO_SECCFGR_SEC4_Pos) /*!< 0x00000010 */
  7837. #define GPIO_SECCFGR_SEC4 GPIO_SECCFGR_SEC4_Msk
  7838. #define GPIO_SECCFGR_SEC5_Pos (5U)
  7839. #define GPIO_SECCFGR_SEC5_Msk (0x1UL << GPIO_SECCFGR_SEC5_Pos) /*!< 0x00000020 */
  7840. #define GPIO_SECCFGR_SEC5 GPIO_SECCFGR_SEC5_Msk
  7841. #define GPIO_SECCFGR_SEC6_Pos (6U)
  7842. #define GPIO_SECCFGR_SEC6_Msk (0x1UL << GPIO_SECCFGR_SEC6_Pos) /*!< 0x00000040 */
  7843. #define GPIO_SECCFGR_SEC6 GPIO_SECCFGR_SEC6_Msk
  7844. #define GPIO_SECCFGR_SEC7_Pos (7U)
  7845. #define GPIO_SECCFGR_SEC7_Msk (0x1UL << GPIO_SECCFGR_SEC7_Pos) /*!< 0x00000080 */
  7846. #define GPIO_SECCFGR_SEC7 GPIO_SECCFGR_SEC7_Msk
  7847. #define GPIO_SECCFGR_SEC8_Pos (8U)
  7848. #define GPIO_SECCFGR_SEC8_Msk (0x1UL << GPIO_SECCFGR_SEC8_Pos) /*!< 0x00000100 */
  7849. #define GPIO_SECCFGR_SEC8 GPIO_SECCFGR_SEC8_Msk
  7850. #define GPIO_SECCFGR_SEC9_Pos (9U)
  7851. #define GPIO_SECCFGR_SEC9_Msk (0x1UL << GPIO_SECCFGR_SEC9_Pos) /*!< 0x00000200 */
  7852. #define GPIO_SECCFGR_SEC9 GPIO_SECCFGR_SEC9_Msk
  7853. #define GPIO_SECCFGR_SEC10_Pos (10U)
  7854. #define GPIO_SECCFGR_SEC10_Msk (0x1UL << GPIO_SECCFGR_SEC10_Pos) /*!< 0x00000400 */
  7855. #define GPIO_SECCFGR_SEC10 GPIO_SECCFGR_SEC10_Msk
  7856. #define GPIO_SECCFGR_SEC11_Pos (11U)
  7857. #define GPIO_SECCFGR_SEC11_Msk (0x1UL << GPIO_SECCFGR_SEC11_Pos) /*!< 0x00000800 */
  7858. #define GPIO_SECCFGR_SEC11 GPIO_SECCFGR_SEC11_Msk
  7859. #define GPIO_SECCFGR_SEC12_Pos (12U)
  7860. #define GPIO_SECCFGR_SEC12_Msk (0x1UL << GPIO_SECCFGR_SEC12_Pos) /*!< 0x00001000 */
  7861. #define GPIO_SECCFGR_SEC12 GPIO_SECCFGR_SEC12_Msk
  7862. #define GPIO_SECCFGR_SEC13_Pos (13U)
  7863. #define GPIO_SECCFGR_SEC13_Msk (0x1UL << GPIO_SECCFGR_SEC13_Pos) /*!< 0x00002000 */
  7864. #define GPIO_SECCFGR_SEC13 GPIO_SECCFGR_SEC13_Msk
  7865. #define GPIO_SECCFGR_SEC14_Pos (14U)
  7866. #define GPIO_SECCFGR_SEC14_Msk (0x1UL << GPIO_SECCFGR_SEC14_Pos) /*!< 0x00004000 */
  7867. #define GPIO_SECCFGR_SEC14 GPIO_SECCFGR_SEC14_Msk
  7868. #define GPIO_SECCFGR_SEC15_Pos (15U)
  7869. #define GPIO_SECCFGR_SEC15_Msk (0x1UL << GPIO_SECCFGR_SEC15_Pos) /*!< 0x00008000 */
  7870. #define GPIO_SECCFGR_SEC15 GPIO_SECCFGR_SEC15_Msk
  7871. /******************************************************************************/
  7872. /* */
  7873. /* HASH */
  7874. /* */
  7875. /******************************************************************************/
  7876. /****************** Bits definition for HASH_CR register ********************/
  7877. #define HASH_CR_INIT_Pos (2U)
  7878. #define HASH_CR_INIT_Msk (0x1UL << HASH_CR_INIT_Pos) /*!< 0x00000004 */
  7879. #define HASH_CR_INIT HASH_CR_INIT_Msk
  7880. #define HASH_CR_DMAE_Pos (3U)
  7881. #define HASH_CR_DMAE_Msk (0x1UL << HASH_CR_DMAE_Pos) /*!< 0x00000008 */
  7882. #define HASH_CR_DMAE HASH_CR_DMAE_Msk
  7883. #define HASH_CR_DATATYPE_Pos (4U)
  7884. #define HASH_CR_DATATYPE_Msk (0x3UL << HASH_CR_DATATYPE_Pos) /*!< 0x00000030 */
  7885. #define HASH_CR_DATATYPE HASH_CR_DATATYPE_Msk
  7886. #define HASH_CR_DATATYPE_0 (0x1UL << HASH_CR_DATATYPE_Pos) /*!< 0x00000010 */
  7887. #define HASH_CR_DATATYPE_1 (0x2UL << HASH_CR_DATATYPE_Pos) /*!< 0x00000020 */
  7888. #define HASH_CR_MODE_Pos (6U)
  7889. #define HASH_CR_MODE_Msk (0x1UL << HASH_CR_MODE_Pos) /*!< 0x00000040 */
  7890. #define HASH_CR_MODE HASH_CR_MODE_Msk
  7891. #define HASH_CR_ALGO_Pos (7U)
  7892. #define HASH_CR_ALGO_Msk (0x801UL << HASH_CR_ALGO_Pos) /*!< 0x00040080 */
  7893. #define HASH_CR_ALGO HASH_CR_ALGO_Msk
  7894. #define HASH_CR_ALGO_0 (0x001UL << HASH_CR_ALGO_Pos) /*!< 0x00000080 */
  7895. #define HASH_CR_ALGO_1 (0x800UL << HASH_CR_ALGO_Pos) /*!< 0x00040000 */
  7896. #define HASH_CR_NBW_Pos (8U)
  7897. #define HASH_CR_NBW_Msk (0xFUL << HASH_CR_NBW_Pos) /*!< 0x00000F00 */
  7898. #define HASH_CR_NBW HASH_CR_NBW_Msk
  7899. #define HASH_CR_NBW_0 (0x1UL << HASH_CR_NBW_Pos) /*!< 0x00000100 */
  7900. #define HASH_CR_NBW_1 (0x2UL << HASH_CR_NBW_Pos) /*!< 0x00000200 */
  7901. #define HASH_CR_NBW_2 (0x4UL << HASH_CR_NBW_Pos) /*!< 0x00000400 */
  7902. #define HASH_CR_NBW_3 (0x8UL << HASH_CR_NBW_Pos) /*!< 0x00000800 */
  7903. #define HASH_CR_DINNE_Pos (12U)
  7904. #define HASH_CR_DINNE_Msk (0x1UL << HASH_CR_DINNE_Pos) /*!< 0x00001000 */
  7905. #define HASH_CR_DINNE HASH_CR_DINNE_Msk
  7906. #define HASH_CR_MDMAT_Pos (13U)
  7907. #define HASH_CR_MDMAT_Msk (0x1UL << HASH_CR_MDMAT_Pos) /*!< 0x00002000 */
  7908. #define HASH_CR_MDMAT HASH_CR_MDMAT_Msk
  7909. #define HASH_CR_LKEY_Pos (16U)
  7910. #define HASH_CR_LKEY_Msk (0x1UL << HASH_CR_LKEY_Pos) /*!< 0x00010000 */
  7911. #define HASH_CR_LKEY HASH_CR_LKEY_Msk
  7912. /****************** Bits definition for HASH_STR register *******************/
  7913. #define HASH_STR_NBLW_Pos (0U)
  7914. #define HASH_STR_NBLW_Msk (0x1FUL << HASH_STR_NBLW_Pos) /*!< 0x0000001F */
  7915. #define HASH_STR_NBLW HASH_STR_NBLW_Msk
  7916. #define HASH_STR_NBLW_0 (0x01UL << HASH_STR_NBLW_Pos) /*!< 0x00000001 */
  7917. #define HASH_STR_NBLW_1 (0x02UL << HASH_STR_NBLW_Pos) /*!< 0x00000002 */
  7918. #define HASH_STR_NBLW_2 (0x04UL << HASH_STR_NBLW_Pos) /*!< 0x00000004 */
  7919. #define HASH_STR_NBLW_3 (0x08UL << HASH_STR_NBLW_Pos) /*!< 0x00000008 */
  7920. #define HASH_STR_NBLW_4 (0x10UL << HASH_STR_NBLW_Pos) /*!< 0x00000010 */
  7921. #define HASH_STR_DCAL_Pos (8U)
  7922. #define HASH_STR_DCAL_Msk (0x1UL << HASH_STR_DCAL_Pos) /*!< 0x00000100 */
  7923. #define HASH_STR_DCAL HASH_STR_DCAL_Msk
  7924. /****************** Bits definition for HASH_IMR register *******************/
  7925. #define HASH_IMR_DINIE_Pos (0U)
  7926. #define HASH_IMR_DINIE_Msk (0x1UL << HASH_IMR_DINIE_Pos) /*!< 0x00000001 */
  7927. #define HASH_IMR_DINIE HASH_IMR_DINIE_Msk
  7928. #define HASH_IMR_DCIE_Pos (1U)
  7929. #define HASH_IMR_DCIE_Msk (0x1UL << HASH_IMR_DCIE_Pos) /*!< 0x00000002 */
  7930. #define HASH_IMR_DCIE HASH_IMR_DCIE_Msk
  7931. /****************** Bits definition for HASH_SR register ********************/
  7932. #define HASH_SR_DINIS_Pos (0U)
  7933. #define HASH_SR_DINIS_Msk (0x1UL << HASH_SR_DINIS_Pos) /*!< 0x00000001 */
  7934. #define HASH_SR_DINIS HASH_SR_DINIS_Msk
  7935. #define HASH_SR_DCIS_Pos (1U)
  7936. #define HASH_SR_DCIS_Msk (0x1UL << HASH_SR_DCIS_Pos) /*!< 0x00000002 */
  7937. #define HASH_SR_DCIS HASH_SR_DCIS_Msk
  7938. #define HASH_SR_DMAS_Pos (2U)
  7939. #define HASH_SR_DMAS_Msk (0x1UL << HASH_SR_DMAS_Pos) /*!< 0x00000004 */
  7940. #define HASH_SR_DMAS HASH_SR_DMAS_Msk
  7941. #define HASH_SR_BUSY_Pos (3U)
  7942. #define HASH_SR_BUSY_Msk (0x1UL << HASH_SR_BUSY_Pos) /*!< 0x00000008 */
  7943. #define HASH_SR_BUSY HASH_SR_BUSY_Msk
  7944. /******************************************************************************/
  7945. /* */
  7946. /* Inter-integrated Circuit Interface (I2C) */
  7947. /* */
  7948. /******************************************************************************/
  7949. /******************* Bit definition for I2C_CR1 register ********************/
  7950. #define I2C_CR1_PE_Pos (0U)
  7951. #define I2C_CR1_PE_Msk (0x1UL << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  7952. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  7953. #define I2C_CR1_TXIE_Pos (1U)
  7954. #define I2C_CR1_TXIE_Msk (0x1UL << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  7955. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  7956. #define I2C_CR1_RXIE_Pos (2U)
  7957. #define I2C_CR1_RXIE_Msk (0x1UL << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  7958. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  7959. #define I2C_CR1_ADDRIE_Pos (3U)
  7960. #define I2C_CR1_ADDRIE_Msk (0x1UL << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  7961. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  7962. #define I2C_CR1_NACKIE_Pos (4U)
  7963. #define I2C_CR1_NACKIE_Msk (0x1UL << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  7964. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  7965. #define I2C_CR1_STOPIE_Pos (5U)
  7966. #define I2C_CR1_STOPIE_Msk (0x1UL << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  7967. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  7968. #define I2C_CR1_TCIE_Pos (6U)
  7969. #define I2C_CR1_TCIE_Msk (0x1UL << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  7970. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  7971. #define I2C_CR1_ERRIE_Pos (7U)
  7972. #define I2C_CR1_ERRIE_Msk (0x1UL << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  7973. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  7974. #define I2C_CR1_DNF_Pos (8U)
  7975. #define I2C_CR1_DNF_Msk (0xFUL << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  7976. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  7977. #define I2C_CR1_ANFOFF_Pos (12U)
  7978. #define I2C_CR1_ANFOFF_Msk (0x1UL << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  7979. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  7980. #define I2C_CR1_SWRST_Pos (13U)
  7981. #define I2C_CR1_SWRST_Msk (0x1UL << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  7982. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  7983. #define I2C_CR1_TXDMAEN_Pos (14U)
  7984. #define I2C_CR1_TXDMAEN_Msk (0x1UL << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  7985. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  7986. #define I2C_CR1_RXDMAEN_Pos (15U)
  7987. #define I2C_CR1_RXDMAEN_Msk (0x1UL << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  7988. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  7989. #define I2C_CR1_SBC_Pos (16U)
  7990. #define I2C_CR1_SBC_Msk (0x1UL << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  7991. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  7992. #define I2C_CR1_NOSTRETCH_Pos (17U)
  7993. #define I2C_CR1_NOSTRETCH_Msk (0x1UL << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  7994. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  7995. #define I2C_CR1_WUPEN_Pos (18U)
  7996. #define I2C_CR1_WUPEN_Msk (0x1UL << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  7997. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  7998. #define I2C_CR1_GCEN_Pos (19U)
  7999. #define I2C_CR1_GCEN_Msk (0x1UL << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  8000. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  8001. #define I2C_CR1_SMBHEN_Pos (20U)
  8002. #define I2C_CR1_SMBHEN_Msk (0x1UL << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  8003. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  8004. #define I2C_CR1_SMBDEN_Pos (21U)
  8005. #define I2C_CR1_SMBDEN_Msk (0x1UL << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  8006. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  8007. #define I2C_CR1_ALERTEN_Pos (22U)
  8008. #define I2C_CR1_ALERTEN_Msk (0x1UL << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  8009. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  8010. #define I2C_CR1_PECEN_Pos (23U)
  8011. #define I2C_CR1_PECEN_Msk (0x1UL << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  8012. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  8013. /****************** Bit definition for I2C_CR2 register *********************/
  8014. #define I2C_CR2_SADD_Pos (0U)
  8015. #define I2C_CR2_SADD_Msk (0x3FFUL << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  8016. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  8017. #define I2C_CR2_RD_WRN_Pos (10U)
  8018. #define I2C_CR2_RD_WRN_Msk (0x1UL << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  8019. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  8020. #define I2C_CR2_ADD10_Pos (11U)
  8021. #define I2C_CR2_ADD10_Msk (0x1UL << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  8022. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  8023. #define I2C_CR2_HEAD10R_Pos (12U)
  8024. #define I2C_CR2_HEAD10R_Msk (0x1UL << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  8025. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  8026. #define I2C_CR2_START_Pos (13U)
  8027. #define I2C_CR2_START_Msk (0x1UL << I2C_CR2_START_Pos) /*!< 0x00002000 */
  8028. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  8029. #define I2C_CR2_STOP_Pos (14U)
  8030. #define I2C_CR2_STOP_Msk (0x1UL << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  8031. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  8032. #define I2C_CR2_NACK_Pos (15U)
  8033. #define I2C_CR2_NACK_Msk (0x1UL << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  8034. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  8035. #define I2C_CR2_NBYTES_Pos (16U)
  8036. #define I2C_CR2_NBYTES_Msk (0xFFUL << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  8037. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  8038. #define I2C_CR2_RELOAD_Pos (24U)
  8039. #define I2C_CR2_RELOAD_Msk (0x1UL << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  8040. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  8041. #define I2C_CR2_AUTOEND_Pos (25U)
  8042. #define I2C_CR2_AUTOEND_Msk (0x1UL << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  8043. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  8044. #define I2C_CR2_PECBYTE_Pos (26U)
  8045. #define I2C_CR2_PECBYTE_Msk (0x1UL << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  8046. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  8047. /******************* Bit definition for I2C_OAR1 register *******************/
  8048. #define I2C_OAR1_OA1_Pos (0U)
  8049. #define I2C_OAR1_OA1_Msk (0x3FFUL << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  8050. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  8051. #define I2C_OAR1_OA1MODE_Pos (10U)
  8052. #define I2C_OAR1_OA1MODE_Msk (0x1UL << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  8053. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  8054. #define I2C_OAR1_OA1EN_Pos (15U)
  8055. #define I2C_OAR1_OA1EN_Msk (0x1UL << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  8056. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  8057. /******************* Bit definition for I2C_OAR2 register *******************/
  8058. #define I2C_OAR2_OA2_Pos (1U)
  8059. #define I2C_OAR2_OA2_Msk (0x7FUL << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  8060. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  8061. #define I2C_OAR2_OA2MSK_Pos (8U)
  8062. #define I2C_OAR2_OA2MSK_Msk (0x7UL << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  8063. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  8064. #define I2C_OAR2_OA2NOMASK (0x00000000UL) /*!< No mask */
  8065. #define I2C_OAR2_OA2MASK01_Pos (8U)
  8066. #define I2C_OAR2_OA2MASK01_Msk (0x1UL << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */
  8067. #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */
  8068. #define I2C_OAR2_OA2MASK02_Pos (9U)
  8069. #define I2C_OAR2_OA2MASK02_Msk (0x1UL << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */
  8070. #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
  8071. #define I2C_OAR2_OA2MASK03_Pos (8U)
  8072. #define I2C_OAR2_OA2MASK03_Msk (0x3UL << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */
  8073. #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
  8074. #define I2C_OAR2_OA2MASK04_Pos (10U)
  8075. #define I2C_OAR2_OA2MASK04_Msk (0x1UL << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */
  8076. #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
  8077. #define I2C_OAR2_OA2MASK05_Pos (8U)
  8078. #define I2C_OAR2_OA2MASK05_Msk (0x5UL << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */
  8079. #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
  8080. #define I2C_OAR2_OA2MASK06_Pos (9U)
  8081. #define I2C_OAR2_OA2MASK06_Msk (0x3UL << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */
  8082. #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */
  8083. #define I2C_OAR2_OA2MASK07_Pos (8U)
  8084. #define I2C_OAR2_OA2MASK07_Msk (0x7UL << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */
  8085. #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */
  8086. #define I2C_OAR2_OA2EN_Pos (15U)
  8087. #define I2C_OAR2_OA2EN_Msk (0x1UL << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  8088. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  8089. /******************* Bit definition for I2C_TIMINGR register *****************/
  8090. #define I2C_TIMINGR_SCLL_Pos (0U)
  8091. #define I2C_TIMINGR_SCLL_Msk (0xFFUL << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  8092. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  8093. #define I2C_TIMINGR_SCLH_Pos (8U)
  8094. #define I2C_TIMINGR_SCLH_Msk (0xFFUL << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  8095. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  8096. #define I2C_TIMINGR_SDADEL_Pos (16U)
  8097. #define I2C_TIMINGR_SDADEL_Msk (0xFUL << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  8098. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  8099. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  8100. #define I2C_TIMINGR_SCLDEL_Msk (0xFUL << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  8101. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  8102. #define I2C_TIMINGR_PRESC_Pos (28U)
  8103. #define I2C_TIMINGR_PRESC_Msk (0xFUL << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  8104. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  8105. /******************* Bit definition for I2C_TIMEOUTR register *****************/
  8106. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  8107. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFUL << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  8108. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  8109. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  8110. #define I2C_TIMEOUTR_TIDLE_Msk (0x1UL << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  8111. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  8112. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  8113. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1UL << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  8114. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  8115. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  8116. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFUL << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  8117. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  8118. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  8119. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1UL << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  8120. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  8121. /****************** Bit definition for I2C_ISR register *********************/
  8122. #define I2C_ISR_TXE_Pos (0U)
  8123. #define I2C_ISR_TXE_Msk (0x1UL << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  8124. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  8125. #define I2C_ISR_TXIS_Pos (1U)
  8126. #define I2C_ISR_TXIS_Msk (0x1UL << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  8127. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  8128. #define I2C_ISR_RXNE_Pos (2U)
  8129. #define I2C_ISR_RXNE_Msk (0x1UL << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  8130. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  8131. #define I2C_ISR_ADDR_Pos (3U)
  8132. #define I2C_ISR_ADDR_Msk (0x1UL << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  8133. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  8134. #define I2C_ISR_NACKF_Pos (4U)
  8135. #define I2C_ISR_NACKF_Msk (0x1UL << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  8136. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  8137. #define I2C_ISR_STOPF_Pos (5U)
  8138. #define I2C_ISR_STOPF_Msk (0x1UL << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  8139. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  8140. #define I2C_ISR_TC_Pos (6U)
  8141. #define I2C_ISR_TC_Msk (0x1UL << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  8142. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  8143. #define I2C_ISR_TCR_Pos (7U)
  8144. #define I2C_ISR_TCR_Msk (0x1UL << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  8145. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  8146. #define I2C_ISR_BERR_Pos (8U)
  8147. #define I2C_ISR_BERR_Msk (0x1UL << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  8148. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  8149. #define I2C_ISR_ARLO_Pos (9U)
  8150. #define I2C_ISR_ARLO_Msk (0x1UL << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  8151. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  8152. #define I2C_ISR_OVR_Pos (10U)
  8153. #define I2C_ISR_OVR_Msk (0x1UL << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  8154. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  8155. #define I2C_ISR_PECERR_Pos (11U)
  8156. #define I2C_ISR_PECERR_Msk (0x1UL << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  8157. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  8158. #define I2C_ISR_TIMEOUT_Pos (12U)
  8159. #define I2C_ISR_TIMEOUT_Msk (0x1UL << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  8160. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  8161. #define I2C_ISR_ALERT_Pos (13U)
  8162. #define I2C_ISR_ALERT_Msk (0x1UL << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  8163. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  8164. #define I2C_ISR_BUSY_Pos (15U)
  8165. #define I2C_ISR_BUSY_Msk (0x1UL << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  8166. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  8167. #define I2C_ISR_DIR_Pos (16U)
  8168. #define I2C_ISR_DIR_Msk (0x1UL << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  8169. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  8170. #define I2C_ISR_ADDCODE_Pos (17U)
  8171. #define I2C_ISR_ADDCODE_Msk (0x7FUL << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  8172. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  8173. /****************** Bit definition for I2C_ICR register *********************/
  8174. #define I2C_ICR_ADDRCF_Pos (3U)
  8175. #define I2C_ICR_ADDRCF_Msk (0x1UL << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  8176. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  8177. #define I2C_ICR_NACKCF_Pos (4U)
  8178. #define I2C_ICR_NACKCF_Msk (0x1UL << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  8179. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  8180. #define I2C_ICR_STOPCF_Pos (5U)
  8181. #define I2C_ICR_STOPCF_Msk (0x1UL << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  8182. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  8183. #define I2C_ICR_BERRCF_Pos (8U)
  8184. #define I2C_ICR_BERRCF_Msk (0x1UL << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  8185. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  8186. #define I2C_ICR_ARLOCF_Pos (9U)
  8187. #define I2C_ICR_ARLOCF_Msk (0x1UL << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  8188. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  8189. #define I2C_ICR_OVRCF_Pos (10U)
  8190. #define I2C_ICR_OVRCF_Msk (0x1UL << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  8191. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  8192. #define I2C_ICR_PECCF_Pos (11U)
  8193. #define I2C_ICR_PECCF_Msk (0x1UL << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  8194. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  8195. #define I2C_ICR_TIMOUTCF_Pos (12U)
  8196. #define I2C_ICR_TIMOUTCF_Msk (0x1UL << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  8197. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  8198. #define I2C_ICR_ALERTCF_Pos (13U)
  8199. #define I2C_ICR_ALERTCF_Msk (0x1UL << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  8200. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  8201. /****************** Bit definition for I2C_PECR register ********************/
  8202. #define I2C_PECR_PEC_Pos (0U)
  8203. #define I2C_PECR_PEC_Msk (0xFFUL << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  8204. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  8205. /****************** Bit definition for I2C_RXDR register ********************/
  8206. #define I2C_RXDR_RXDATA_Pos (0U)
  8207. #define I2C_RXDR_RXDATA_Msk (0xFFUL << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  8208. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  8209. /****************** Bit definition for I2C_TXDR register ********************/
  8210. #define I2C_TXDR_TXDATA_Pos (0U)
  8211. #define I2C_TXDR_TXDATA_Msk (0xFFUL << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  8212. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  8213. /******************************************************************************/
  8214. /* */
  8215. /* ICACHE */
  8216. /* */
  8217. /******************************************************************************/
  8218. /****************** Bit definition for ICACHE_CR register *******************/
  8219. #define ICACHE_CR_EN_Pos (0U)
  8220. #define ICACHE_CR_EN_Msk (0x1UL << ICACHE_CR_EN_Pos) /*!< 0x00000001 */
  8221. #define ICACHE_CR_EN ICACHE_CR_EN_Msk /*!< Enable */
  8222. #define ICACHE_CR_CACHEINV_Pos (1U)
  8223. #define ICACHE_CR_CACHEINV_Msk (0x1UL << ICACHE_CR_CACHEINV_Pos) /*!< 0x00000002 */
  8224. #define ICACHE_CR_CACHEINV ICACHE_CR_CACHEINV_Msk /*!< Cache invalidation */
  8225. #define ICACHE_CR_WAYSEL_Pos (2U)
  8226. #define ICACHE_CR_WAYSEL_Msk (0x1UL << ICACHE_CR_WAYSEL_Pos) /*!< 0x00000004 */
  8227. #define ICACHE_CR_WAYSEL ICACHE_CR_WAYSEL_Msk /*!< Ways selection */
  8228. #define ICACHE_CR_HITMEN_Pos (16U)
  8229. #define ICACHE_CR_HITMEN_Msk (0x1UL << ICACHE_CR_HITMEN_Pos) /*!< 0x00010000 */
  8230. #define ICACHE_CR_HITMEN ICACHE_CR_HITMEN_Msk /*!< Hit monitor enable */
  8231. #define ICACHE_CR_MISSMEN_Pos (17U)
  8232. #define ICACHE_CR_MISSMEN_Msk (0x1UL << ICACHE_CR_MISSMEN_Pos) /*!< 0x00020000 */
  8233. #define ICACHE_CR_MISSMEN ICACHE_CR_MISSMEN_Msk /*!< Miss monitor enable */
  8234. #define ICACHE_CR_HITMRST_Pos (18U)
  8235. #define ICACHE_CR_HITMRST_Msk (0x1UL << ICACHE_CR_HITMRST_Pos) /*!< 0x00040000 */
  8236. #define ICACHE_CR_HITMRST ICACHE_CR_HITMRST_Msk /*!< Hit monitor reset */
  8237. #define ICACHE_CR_MISSMRST_Pos (19U)
  8238. #define ICACHE_CR_MISSMRST_Msk (0x1UL << ICACHE_CR_MISSMRST_Pos) /*!< 0x00080000 */
  8239. #define ICACHE_CR_MISSMRST ICACHE_CR_MISSMRST_Msk /*!< Miss monitor reset */
  8240. /****************** Bit definition for ICACHE_SR register *******************/
  8241. #define ICACHE_SR_BUSYF_Pos (0U)
  8242. #define ICACHE_SR_BUSYF_Msk (0x1UL << ICACHE_SR_BUSYF_Pos) /*!< 0x00000001 */
  8243. #define ICACHE_SR_BUSYF ICACHE_SR_BUSYF_Msk /*!< Busy flag */
  8244. #define ICACHE_SR_BSYENDF_Pos (1U)
  8245. #define ICACHE_SR_BSYENDF_Msk (0x1UL << ICACHE_SR_BSYENDF_Pos) /*!< 0x00000002 */
  8246. #define ICACHE_SR_BSYENDF ICACHE_SR_BSYENDF_Msk /*!< Busy end flag */
  8247. #define ICACHE_SR_ERRF_Pos (2U)
  8248. #define ICACHE_SR_ERRF_Msk (0x1UL << ICACHE_SR_ERRF_Pos) /*!< 0x00000004 */
  8249. #define ICACHE_SR_ERRF ICACHE_SR_ERRF_Msk /*!< Cache error flag */
  8250. /****************** Bit definition for ICACHE_IER register ******************/
  8251. #define ICACHE_IER_BSYENDIE_Pos (1U)
  8252. #define ICACHE_IER_BSYENDIE_Msk (0x1UL << ICACHE_IER_BSYENDIE_Pos) /*!< 0x00000002 */
  8253. #define ICACHE_IER_BSYENDIE ICACHE_IER_BSYENDIE_Msk /*!< Busy end interrupt enable */
  8254. #define ICACHE_IER_ERRIE_Pos (2U)
  8255. #define ICACHE_IER_ERRIE_Msk (0x1UL << ICACHE_IER_ERRIE_Pos) /*!< 0x00000004 */
  8256. #define ICACHE_IER_ERRIE ICACHE_IER_ERRIE_Msk /*!< Cache error interrupt enable */
  8257. /****************** Bit definition for ICACHE_FCR register ******************/
  8258. #define ICACHE_FCR_CBSYENDF_Pos (1U)
  8259. #define ICACHE_FCR_CBSYENDF_Msk (0x1UL << ICACHE_FCR_CBSYENDF_Pos) /*!< 0x00000002 */
  8260. #define ICACHE_FCR_CBSYENDF ICACHE_FCR_CBSYENDF_Msk /*!< Busy end flag clear */
  8261. #define ICACHE_FCR_CERRF_Pos (2U)
  8262. #define ICACHE_FCR_CERRF_Msk (0x1UL << ICACHE_FCR_CERRF_Pos) /*!< 0x00000004 */
  8263. #define ICACHE_FCR_CERRF ICACHE_FCR_CERRF /*!< Cache error flag clear */
  8264. /****************** Bit definition for ICACHE_HMONR register ****************/
  8265. #define ICACHE_HMONR_HITMON_Pos (0U)
  8266. #define ICACHE_HMONR_HITMON_Msk (0xFFFFFFFFUL << ICACHE_HMONR_HITMON_Pos)/*!< 0xFFFFFFFF */
  8267. #define ICACHE_HMONR_HITMON ICACHE_HMONR_HITMON_Msk /*!< Cache hit monitor register */
  8268. /****************** Bit definition for ICACHE_MMONR register ****************/
  8269. #define ICACHE_MMONR_MISSMON_Pos (0U)
  8270. #define ICACHE_MMONR_MISSMON_Msk (0xFFFFUL << ICACHE_MMONR_MISSMON_Pos) /*!< 0x0000FFFF */
  8271. #define ICACHE_MMONR_MISSMON ICACHE_MMONR_MISSMON_Msk /*!< Cache miss monitor register */
  8272. /****************** Bit definition for ICACHE_CRRx register *****************/
  8273. #define ICACHE_CRRx_BASEADDR_Pos (0U)
  8274. #define ICACHE_CRRx_BASEADDR_Msk (0xFFUL << ICACHE_CRRx_BASEADDR_Pos) /*!< 0x000000FF */
  8275. #define ICACHE_CRRx_BASEADDR ICACHE_CRRx_BASEADDR_Msk /*!< Base address of region X to remap */
  8276. #define ICACHE_CRRx_RSIZE_Pos (9U)
  8277. #define ICACHE_CRRx_RSIZE_Msk (0x7UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000E00 */
  8278. #define ICACHE_CRRx_RSIZE ICACHE_CRRx_RSIZE_Msk /*!< Region X size */
  8279. #define ICACHE_CRRx_RSIZE_0 (0x1UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000200 */
  8280. #define ICACHE_CRRx_RSIZE_1 (0x2UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000400 */
  8281. #define ICACHE_CRRx_RSIZE_2 (0x4UL << ICACHE_CRRx_RSIZE_Pos) /*!< 0x00000800 */
  8282. #define ICACHE_CRRx_REN_Pos (15U)
  8283. #define ICACHE_CRRx_REN_Msk (0x1UL << ICACHE_CRRx_REN_Pos) /*!< 0x00008000 */
  8284. #define ICACHE_CRRx_REN ICACHE_CRRx_REN_Msk /*!< Region X enable */
  8285. #define ICACHE_CRRx_REMAPADDR_Pos (16U)
  8286. #define ICACHE_CRRx_REMAPADDR_Msk (0x7FFUL << ICACHE_CRRx_REMAPADDR_Pos) /*!< 0x07FF0000 */
  8287. #define ICACHE_CRRx_REMAPADDR ICACHE_CRRx_REMAPADDR_Msk /*!< Remap address of Region X to be remapped */
  8288. #define ICACHE_CRRx_MSTSEL_Pos (28U)
  8289. #define ICACHE_CRRx_MSTSEL_Msk (0x1UL << ICACHE_CRRx_MSTSEL_Pos) /*!< 0x10000000 */
  8290. #define ICACHE_CRRx_MSTSEL ICACHE_CRRx_MSTSEL_Msk /*!< Region X AHB cache master selection */
  8291. #define ICACHE_CRRx_HBURST_Pos (31U)
  8292. #define ICACHE_CRRx_HBURST_Msk (0x1UL << ICACHE_CRRx_HBURST_Pos) /*!< 0x80000000 */
  8293. #define ICACHE_CRRx_HBURST ICACHE_CRRx_HBURST_Msk /*!< Region X output burst type */
  8294. /******************************************************************************/
  8295. /* */
  8296. /* Independent WATCHDOG (IWDG) */
  8297. /* */
  8298. /******************************************************************************/
  8299. /******************* Bit definition for IWDG_KR register ********************/
  8300. #define IWDG_KR_KEY_Pos (0U)
  8301. #define IWDG_KR_KEY_Msk (0xFFFFUL << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */
  8302. #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!<Key value (write only, read 0000h) */
  8303. /******************* Bit definition for IWDG_PR register ********************/
  8304. #define IWDG_PR_PR_Pos (0U)
  8305. #define IWDG_PR_PR_Msk (0x7UL << IWDG_PR_PR_Pos) /*!< 0x00000007 */
  8306. #define IWDG_PR_PR IWDG_PR_PR_Msk /*!<PR[2:0] (Prescaler divider) */
  8307. #define IWDG_PR_PR_0 (0x1UL << IWDG_PR_PR_Pos) /*!< 0x00000001 */
  8308. #define IWDG_PR_PR_1 (0x2UL << IWDG_PR_PR_Pos) /*!< 0x00000002 */
  8309. #define IWDG_PR_PR_2 (0x4UL << IWDG_PR_PR_Pos) /*!< 0x00000004 */
  8310. /******************* Bit definition for IWDG_RLR register *******************/
  8311. #define IWDG_RLR_RL_Pos (0U)
  8312. #define IWDG_RLR_RL_Msk (0xFFFUL << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */
  8313. #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!<Watchdog counter reload value */
  8314. /******************* Bit definition for IWDG_SR register ********************/
  8315. #define IWDG_SR_PVU_Pos (0U)
  8316. #define IWDG_SR_PVU_Msk (0x1UL << IWDG_SR_PVU_Pos) /*!< 0x00000001 */
  8317. #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */
  8318. #define IWDG_SR_RVU_Pos (1U)
  8319. #define IWDG_SR_RVU_Msk (0x1UL << IWDG_SR_RVU_Pos) /*!< 0x00000002 */
  8320. #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */
  8321. #define IWDG_SR_WVU_Pos (2U)
  8322. #define IWDG_SR_WVU_Msk (0x1UL << IWDG_SR_WVU_Pos) /*!< 0x00000004 */
  8323. #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */
  8324. /******************* Bit definition for IWDG_KR register ********************/
  8325. #define IWDG_WINR_WIN_Pos (0U)
  8326. #define IWDG_WINR_WIN_Msk (0xFFFUL << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */
  8327. #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */
  8328. /******************************************************************************/
  8329. /* */
  8330. /* Low Power Timer (LPTIM) */
  8331. /* */
  8332. /******************************************************************************/
  8333. /****************** Bit definition for LPTIM_ISR register *******************/
  8334. #define LPTIM_ISR_CMPM_Pos (0U)
  8335. #define LPTIM_ISR_CMPM_Msk (0x1UL << LPTIM_ISR_CMPM_Pos) /*!< 0x00000001 */
  8336. #define LPTIM_ISR_CMPM LPTIM_ISR_CMPM_Msk /*!< Compare match */
  8337. #define LPTIM_ISR_ARRM_Pos (1U)
  8338. #define LPTIM_ISR_ARRM_Msk (0x1UL << LPTIM_ISR_ARRM_Pos) /*!< 0x00000002 */
  8339. #define LPTIM_ISR_ARRM LPTIM_ISR_ARRM_Msk /*!< Autoreload match */
  8340. #define LPTIM_ISR_EXTTRIG_Pos (2U)
  8341. #define LPTIM_ISR_EXTTRIG_Msk (0x1UL << LPTIM_ISR_EXTTRIG_Pos) /*!< 0x00000004 */
  8342. #define LPTIM_ISR_EXTTRIG LPTIM_ISR_EXTTRIG_Msk /*!< External trigger edge event */
  8343. #define LPTIM_ISR_CMPOK_Pos (3U)
  8344. #define LPTIM_ISR_CMPOK_Msk (0x1UL << LPTIM_ISR_CMPOK_Pos) /*!< 0x00000008 */
  8345. #define LPTIM_ISR_CMPOK LPTIM_ISR_CMPOK_Msk /*!< Compare register update OK */
  8346. #define LPTIM_ISR_ARROK_Pos (4U)
  8347. #define LPTIM_ISR_ARROK_Msk (0x1UL << LPTIM_ISR_ARROK_Pos) /*!< 0x00000010 */
  8348. #define LPTIM_ISR_ARROK LPTIM_ISR_ARROK_Msk /*!< Autoreload register update OK */
  8349. #define LPTIM_ISR_UP_Pos (5U)
  8350. #define LPTIM_ISR_UP_Msk (0x1UL << LPTIM_ISR_UP_Pos) /*!< 0x00000020 */
  8351. #define LPTIM_ISR_UP LPTIM_ISR_UP_Msk /*!< Counter direction change down to up */
  8352. #define LPTIM_ISR_DOWN_Pos (6U)
  8353. #define LPTIM_ISR_DOWN_Msk (0x1UL << LPTIM_ISR_DOWN_Pos) /*!< 0x00000040 */
  8354. #define LPTIM_ISR_DOWN LPTIM_ISR_DOWN_Msk /*!< Counter direction change up to down */
  8355. #define LPTIM_ISR_UE_Pos (7U)
  8356. #define LPTIM_ISR_UE_Msk (0x1UL << LPTIM_ISR_UE_Pos) /*!< 0x00000080 */
  8357. #define LPTIM_ISR_UE LPTIM_ISR_UE_Msk /*!< Update event occurrence */
  8358. #define LPTIM_ISR_REPOK_Pos (8U)
  8359. #define LPTIM_ISR_REPOK_Msk (0x1UL << LPTIM_ISR_REPOK_Pos) /*!< 0x00000100 */
  8360. #define LPTIM_ISR_REPOK LPTIM_ISR_REPOK_Msk /*!< Repetition register update OK */
  8361. /****************** Bit definition for LPTIM_ICR register *******************/
  8362. #define LPTIM_ICR_CMPMCF_Pos (0U)
  8363. #define LPTIM_ICR_CMPMCF_Msk (0x1UL << LPTIM_ICR_CMPMCF_Pos) /*!< 0x00000001 */
  8364. #define LPTIM_ICR_CMPMCF LPTIM_ICR_CMPMCF_Msk /*!< Compare match Clear Flag */
  8365. #define LPTIM_ICR_ARRMCF_Pos (1U)
  8366. #define LPTIM_ICR_ARRMCF_Msk (0x1UL << LPTIM_ICR_ARRMCF_Pos) /*!< 0x00000002 */
  8367. #define LPTIM_ICR_ARRMCF LPTIM_ICR_ARRMCF_Msk /*!< Autoreload match Clear Flag */
  8368. #define LPTIM_ICR_EXTTRIGCF_Pos (2U)
  8369. #define LPTIM_ICR_EXTTRIGCF_Msk (0x1UL << LPTIM_ICR_EXTTRIGCF_Pos) /*!< 0x00000004 */
  8370. #define LPTIM_ICR_EXTTRIGCF LPTIM_ICR_EXTTRIGCF_Msk /*!< External trigger edge event Clear Flag */
  8371. #define LPTIM_ICR_CMPOKCF_Pos (3U)
  8372. #define LPTIM_ICR_CMPOKCF_Msk (0x1UL << LPTIM_ICR_CMPOKCF_Pos) /*!< 0x00000008 */
  8373. #define LPTIM_ICR_CMPOKCF LPTIM_ICR_CMPOKCF_Msk /*!< Compare register update OK Clear Flag */
  8374. #define LPTIM_ICR_ARROKCF_Pos (4U)
  8375. #define LPTIM_ICR_ARROKCF_Msk (0x1UL << LPTIM_ICR_ARROKCF_Pos) /*!< 0x00000010 */
  8376. #define LPTIM_ICR_ARROKCF LPTIM_ICR_ARROKCF_Msk /*!< Autoreload register update OK Clear Flag */
  8377. #define LPTIM_ICR_UPCF_Pos (5U)
  8378. #define LPTIM_ICR_UPCF_Msk (0x1UL << LPTIM_ICR_UPCF_Pos) /*!< 0x00000020 */
  8379. #define LPTIM_ICR_UPCF LPTIM_ICR_UPCF_Msk /*!< Counter direction change down to up Clear Flag */
  8380. #define LPTIM_ICR_DOWNCF_Pos (6U)
  8381. #define LPTIM_ICR_DOWNCF_Msk (0x1UL << LPTIM_ICR_DOWNCF_Pos) /*!< 0x00000040 */
  8382. #define LPTIM_ICR_DOWNCF LPTIM_ICR_DOWNCF_Msk /*!< Counter direction change up to down Clear Flag */
  8383. #define LPTIM_ICR_UECF_Pos (7U)
  8384. #define LPTIM_ICR_UECF_Msk (0x1UL << LPTIM_ICR_UECF_Pos) /*!< 0x00000080 */
  8385. #define LPTIM_ICR_UECF LPTIM_ICR_UECF_Msk /*!< Update event Clear Flag */
  8386. #define LPTIM_ICR_REPOKCF_Pos (8U)
  8387. #define LPTIM_ICR_REPOKCF_Msk (0x1UL << LPTIM_ICR_REPOKCF_Pos) /*!< 0x00000100 */
  8388. #define LPTIM_ICR_REPOKCF LPTIM_ICR_REPOKCF_Msk /*!< Repetition register update OK Clear Flag */
  8389. /****************** Bit definition for LPTIM_IER register ********************/
  8390. #define LPTIM_IER_CMPMIE_Pos (0U)
  8391. #define LPTIM_IER_CMPMIE_Msk (0x1UL << LPTIM_IER_CMPMIE_Pos) /*!< 0x00000001 */
  8392. #define LPTIM_IER_CMPMIE LPTIM_IER_CMPMIE_Msk /*!< Compare match Interrupt Enable */
  8393. #define LPTIM_IER_ARRMIE_Pos (1U)
  8394. #define LPTIM_IER_ARRMIE_Msk (0x1UL << LPTIM_IER_ARRMIE_Pos) /*!< 0x00000002 */
  8395. #define LPTIM_IER_ARRMIE LPTIM_IER_ARRMIE_Msk /*!< Autoreload match Interrupt Enable */
  8396. #define LPTIM_IER_EXTTRIGIE_Pos (2U)
  8397. #define LPTIM_IER_EXTTRIGIE_Msk (0x1UL << LPTIM_IER_EXTTRIGIE_Pos) /*!< 0x00000004 */
  8398. #define LPTIM_IER_EXTTRIGIE LPTIM_IER_EXTTRIGIE_Msk /*!< External trigger edge event Interrupt Enable */
  8399. #define LPTIM_IER_CMPOKIE_Pos (3U)
  8400. #define LPTIM_IER_CMPOKIE_Msk (0x1UL << LPTIM_IER_CMPOKIE_Pos) /*!< 0x00000008 */
  8401. #define LPTIM_IER_CMPOKIE LPTIM_IER_CMPOKIE_Msk /*!< Compare register update OK Interrupt Enable */
  8402. #define LPTIM_IER_ARROKIE_Pos (4U)
  8403. #define LPTIM_IER_ARROKIE_Msk (0x1UL << LPTIM_IER_ARROKIE_Pos) /*!< 0x00000010 */
  8404. #define LPTIM_IER_ARROKIE LPTIM_IER_ARROKIE_Msk /*!< Autoreload register update OK Interrupt Enable */
  8405. #define LPTIM_IER_UPIE_Pos (5U)
  8406. #define LPTIM_IER_UPIE_Msk (0x1UL << LPTIM_IER_UPIE_Pos) /*!< 0x00000020 */
  8407. #define LPTIM_IER_UPIE LPTIM_IER_UPIE_Msk /*!< Counter direction change down to up Interrupt Enable */
  8408. #define LPTIM_IER_DOWNIE_Pos (6U)
  8409. #define LPTIM_IER_DOWNIE_Msk (0x1UL << LPTIM_IER_DOWNIE_Pos) /*!< 0x00000040 */
  8410. #define LPTIM_IER_DOWNIE LPTIM_IER_DOWNIE_Msk /*!< Counter direction change up to down Interrupt Enable */
  8411. #define LPTIM_IER_UEIE_Pos (7U)
  8412. #define LPTIM_IER_UEIE_Msk (0x1UL << LPTIM_IER_UEIE_Pos) /*!< 0x00000080 */
  8413. #define LPTIM_IER_UEIE LPTIM_IER_UEIE_Msk /*!< Update event Interrupt Enable */
  8414. #define LPTIM_IER_REPOKIE_Pos (8U)
  8415. #define LPTIM_IER_REPOKIE_Msk (0x1UL << LPTIM_IER_REPOKIE_Pos) /*!< 0x00000100 */
  8416. #define LPTIM_IER_REPOKIE LPTIM_IER_REPOKIE_Msk /*!< Repetition register update OK Interrupt Enable */
  8417. /****************** Bit definition for LPTIM_CFGR register *******************/
  8418. #define LPTIM_CFGR_CKSEL_Pos (0U)
  8419. #define LPTIM_CFGR_CKSEL_Msk (0x1UL << LPTIM_CFGR_CKSEL_Pos) /*!< 0x00000001 */
  8420. #define LPTIM_CFGR_CKSEL LPTIM_CFGR_CKSEL_Msk /*!< Clock selector */
  8421. #define LPTIM_CFGR_CKPOL_Pos (1U)
  8422. #define LPTIM_CFGR_CKPOL_Msk (0x3UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000006 */
  8423. #define LPTIM_CFGR_CKPOL LPTIM_CFGR_CKPOL_Msk /*!< CKPOL[1:0] bits (Clock polarity) */
  8424. #define LPTIM_CFGR_CKPOL_0 (0x1UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000002 */
  8425. #define LPTIM_CFGR_CKPOL_1 (0x2UL << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000004 */
  8426. #define LPTIM_CFGR_CKFLT_Pos (3U)
  8427. #define LPTIM_CFGR_CKFLT_Msk (0x3UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000018 */
  8428. #define LPTIM_CFGR_CKFLT LPTIM_CFGR_CKFLT_Msk /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */
  8429. #define LPTIM_CFGR_CKFLT_0 (0x1UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000008 */
  8430. #define LPTIM_CFGR_CKFLT_1 (0x2UL << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000010 */
  8431. #define LPTIM_CFGR_TRGFLT_Pos (6U)
  8432. #define LPTIM_CFGR_TRGFLT_Msk (0x3UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x000000C0 */
  8433. #define LPTIM_CFGR_TRGFLT LPTIM_CFGR_TRGFLT_Msk /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */
  8434. #define LPTIM_CFGR_TRGFLT_0 (0x1UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000040 */
  8435. #define LPTIM_CFGR_TRGFLT_1 (0x2UL << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000080 */
  8436. #define LPTIM_CFGR_PRESC_Pos (9U)
  8437. #define LPTIM_CFGR_PRESC_Msk (0x7UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000E00 */
  8438. #define LPTIM_CFGR_PRESC LPTIM_CFGR_PRESC_Msk /*!< PRESC[2:0] bits (Clock prescaler) */
  8439. #define LPTIM_CFGR_PRESC_0 (0x1UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000200 */
  8440. #define LPTIM_CFGR_PRESC_1 (0x2UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000400 */
  8441. #define LPTIM_CFGR_PRESC_2 (0x4UL << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000800 */
  8442. #define LPTIM_CFGR_TRIGSEL_Pos (13U)
  8443. #define LPTIM_CFGR_TRIGSEL_Msk (0x7UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x0000E000 */
  8444. #define LPTIM_CFGR_TRIGSEL LPTIM_CFGR_TRIGSEL_Msk /*!< TRIGSEL[2:0]] bits (Trigger selector) */
  8445. #define LPTIM_CFGR_TRIGSEL_0 (0x1UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00002000 */
  8446. #define LPTIM_CFGR_TRIGSEL_1 (0x2UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00004000 */
  8447. #define LPTIM_CFGR_TRIGSEL_2 (0x4UL << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00008000 */
  8448. #define LPTIM_CFGR_TRIGEN_Pos (17U)
  8449. #define LPTIM_CFGR_TRIGEN_Msk (0x3UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00060000 */
  8450. #define LPTIM_CFGR_TRIGEN LPTIM_CFGR_TRIGEN_Msk /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */
  8451. #define LPTIM_CFGR_TRIGEN_0 (0x1UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00020000 */
  8452. #define LPTIM_CFGR_TRIGEN_1 (0x2UL << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00040000 */
  8453. #define LPTIM_CFGR_TIMOUT_Pos (19U)
  8454. #define LPTIM_CFGR_TIMOUT_Msk (0x1UL << LPTIM_CFGR_TIMOUT_Pos) /*!< 0x00080000 */
  8455. #define LPTIM_CFGR_TIMOUT LPTIM_CFGR_TIMOUT_Msk /*!< Timout enable */
  8456. #define LPTIM_CFGR_WAVE_Pos (20U)
  8457. #define LPTIM_CFGR_WAVE_Msk (0x1UL << LPTIM_CFGR_WAVE_Pos) /*!< 0x00100000 */
  8458. #define LPTIM_CFGR_WAVE LPTIM_CFGR_WAVE_Msk /*!< Waveform shape */
  8459. #define LPTIM_CFGR_WAVPOL_Pos (21U)
  8460. #define LPTIM_CFGR_WAVPOL_Msk (0x1UL << LPTIM_CFGR_WAVPOL_Pos) /*!< 0x00200000 */
  8461. #define LPTIM_CFGR_WAVPOL LPTIM_CFGR_WAVPOL_Msk /*!< Waveform shape polarity */
  8462. #define LPTIM_CFGR_PRELOAD_Pos (22U)
  8463. #define LPTIM_CFGR_PRELOAD_Msk (0x1UL << LPTIM_CFGR_PRELOAD_Pos) /*!< 0x00400000 */
  8464. #define LPTIM_CFGR_PRELOAD LPTIM_CFGR_PRELOAD_Msk /*!< Reg update mode */
  8465. #define LPTIM_CFGR_COUNTMODE_Pos (23U)
  8466. #define LPTIM_CFGR_COUNTMODE_Msk (0x1UL << LPTIM_CFGR_COUNTMODE_Pos) /*!< 0x00800000 */
  8467. #define LPTIM_CFGR_COUNTMODE LPTIM_CFGR_COUNTMODE_Msk /*!< Counter mode enable */
  8468. #define LPTIM_CFGR_ENC_Pos (24U)
  8469. #define LPTIM_CFGR_ENC_Msk (0x1UL << LPTIM_CFGR_ENC_Pos) /*!< 0x01000000 */
  8470. #define LPTIM_CFGR_ENC LPTIM_CFGR_ENC_Msk /*!< Encoder mode enable */
  8471. /****************** Bit definition for LPTIM_CR register ********************/
  8472. #define LPTIM_CR_ENABLE_Pos (0U)
  8473. #define LPTIM_CR_ENABLE_Msk (0x1UL << LPTIM_CR_ENABLE_Pos) /*!< 0x00000001 */
  8474. #define LPTIM_CR_ENABLE LPTIM_CR_ENABLE_Msk /*!< LPTIMer enable */
  8475. #define LPTIM_CR_SNGSTRT_Pos (1U)
  8476. #define LPTIM_CR_SNGSTRT_Msk (0x1UL << LPTIM_CR_SNGSTRT_Pos) /*!< 0x00000002 */
  8477. #define LPTIM_CR_SNGSTRT LPTIM_CR_SNGSTRT_Msk /*!< Timer start in single mode */
  8478. #define LPTIM_CR_CNTSTRT_Pos (2U)
  8479. #define LPTIM_CR_CNTSTRT_Msk (0x1UL << LPTIM_CR_CNTSTRT_Pos) /*!< 0x00000004 */
  8480. #define LPTIM_CR_CNTSTRT LPTIM_CR_CNTSTRT_Msk /*!< Timer start in continuous mode */
  8481. #define LPTIM_CR_COUNTRST_Pos (3U)
  8482. #define LPTIM_CR_COUNTRST_Msk (0x1UL << LPTIM_CR_COUNTRST_Pos) /*!< 0x00000008 */
  8483. #define LPTIM_CR_COUNTRST LPTIM_CR_COUNTRST_Msk /*!< Counter reset */
  8484. #define LPTIM_CR_RSTARE_Pos (4U)
  8485. #define LPTIM_CR_RSTARE_Msk (0x1UL << LPTIM_CR_RSTARE_Pos) /*!< 0x00000010 */
  8486. #define LPTIM_CR_RSTARE LPTIM_CR_RSTARE_Msk /*!< Reset after read enable */
  8487. /****************** Bit definition for LPTIM_CMP register *******************/
  8488. #define LPTIM_CMP_CMP_Pos (0U)
  8489. #define LPTIM_CMP_CMP_Msk (0xFFFFUL << LPTIM_CMP_CMP_Pos) /*!< 0x0000FFFF */
  8490. #define LPTIM_CMP_CMP LPTIM_CMP_CMP_Msk /*!< Compare register */
  8491. /****************** Bit definition for LPTIM_ARR register *******************/
  8492. #define LPTIM_ARR_ARR_Pos (0U)
  8493. #define LPTIM_ARR_ARR_Msk (0xFFFFUL << LPTIM_ARR_ARR_Pos) /*!< 0x0000FFFF */
  8494. #define LPTIM_ARR_ARR LPTIM_ARR_ARR_Msk /*!< Auto reload register */
  8495. /****************** Bit definition for LPTIM_CNT register *******************/
  8496. #define LPTIM_CNT_CNT_Pos (0U)
  8497. #define LPTIM_CNT_CNT_Msk (0xFFFFUL << LPTIM_CNT_CNT_Pos) /*!< 0x0000FFFF */
  8498. #define LPTIM_CNT_CNT LPTIM_CNT_CNT_Msk /*!< Counter register */
  8499. /****************** Bit definition for LPTIM_OR register *******************/
  8500. #define LPTIM_OR_OR_Pos (0U)
  8501. #define LPTIM_OR_OR_Msk (0x3UL << LPTIM_OR_OR_Pos) /*!< 0x00000003 */
  8502. #define LPTIM_OR_OR LPTIM_OR_OR_Msk /*!< OR[1:0] bits (Remap selection) */
  8503. #define LPTIM_OR_OR_0 (0x1UL << LPTIM_OR_OR_Pos) /*!< 0x00000001 */
  8504. #define LPTIM_OR_OR_1 (0x2UL << LPTIM_OR_OR_Pos) /*!< 0x00000002 */
  8505. /****************** Bit definition for LPTIM_RCR register *******************/
  8506. #define LPTIM_RCR_REP_Pos (0U)
  8507. #define LPTIM_RCR_REP_Msk (0xFFUL << LPTIM_RCR_REP_Pos) /*!< 0x000000FF */
  8508. #define LPTIM_RCR_REP LPTIM_RCR_REP_Msk /*!< Repetition Counter Value */
  8509. /******************************************************************************/
  8510. /* */
  8511. /* OCTOSPI */
  8512. /* */
  8513. /******************************************************************************/
  8514. /***************** Bit definition for OCTOSPI_CR register *******************/
  8515. #define OCTOSPI_CR_EN_Pos (0U)
  8516. #define OCTOSPI_CR_EN_Msk (0x1UL << OCTOSPI_CR_EN_Pos) /*!< 0x00000001 */
  8517. #define OCTOSPI_CR_EN OCTOSPI_CR_EN_Msk /*!< Enable */
  8518. #define OCTOSPI_CR_ABORT_Pos (1U)
  8519. #define OCTOSPI_CR_ABORT_Msk (0x1UL << OCTOSPI_CR_ABORT_Pos) /*!< 0x00000002 */
  8520. #define OCTOSPI_CR_ABORT OCTOSPI_CR_ABORT_Msk /*!< Abort request */
  8521. #define OCTOSPI_CR_DMAEN_Pos (2U)
  8522. #define OCTOSPI_CR_DMAEN_Msk (0x1UL << OCTOSPI_CR_DMAEN_Pos) /*!< 0x00000004 */
  8523. #define OCTOSPI_CR_DMAEN OCTOSPI_CR_DMAEN_Msk /*!< DMA Enable */
  8524. #define OCTOSPI_CR_TCEN_Pos (3U)
  8525. #define OCTOSPI_CR_TCEN_Msk (0x1UL << OCTOSPI_CR_TCEN_Pos) /*!< 0x00000008 */
  8526. #define OCTOSPI_CR_TCEN OCTOSPI_CR_TCEN_Msk /*!< Timeout Counter Enable */
  8527. #define OCTOSPI_CR_DQM_Pos (6U)
  8528. #define OCTOSPI_CR_DQM_Msk (0x1UL << OCTOSPI_CR_DQM_Pos) /*!< 0x00000040 */
  8529. #define OCTOSPI_CR_DQM OCTOSPI_CR_DQM_Msk /*!< Dual-Quad Mode */
  8530. #define OCTOSPI_CR_FSEL_Pos (7U)
  8531. #define OCTOSPI_CR_FSEL_Msk (0x1UL << OCTOSPI_CR_FSEL_Pos) /*!< 0x00000080 */
  8532. #define OCTOSPI_CR_FSEL OCTOSPI_CR_FSEL_Msk /*!< Flash Select */
  8533. #define OCTOSPI_CR_FTHRES_Pos (8U)
  8534. #define OCTOSPI_CR_FTHRES_Msk (0x1FUL << OCTOSPI_CR_FTHRES_Pos) /*!< 0x00001F00 */
  8535. #define OCTOSPI_CR_FTHRES OCTOSPI_CR_FTHRES_Msk /*!< FIFO Threshold Level */
  8536. #define OCTOSPI_CR_TEIE_Pos (16U)
  8537. #define OCTOSPI_CR_TEIE_Msk (0x1UL << OCTOSPI_CR_TEIE_Pos) /*!< 0x00010000 */
  8538. #define OCTOSPI_CR_TEIE OCTOSPI_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  8539. #define OCTOSPI_CR_TCIE_Pos (17U)
  8540. #define OCTOSPI_CR_TCIE_Msk (0x1UL << OCTOSPI_CR_TCIE_Pos) /*!< 0x00020000 */
  8541. #define OCTOSPI_CR_TCIE OCTOSPI_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  8542. #define OCTOSPI_CR_FTIE_Pos (18U)
  8543. #define OCTOSPI_CR_FTIE_Msk (0x1UL << OCTOSPI_CR_FTIE_Pos) /*!< 0x00040000 */
  8544. #define OCTOSPI_CR_FTIE OCTOSPI_CR_FTIE_Msk /*!< FIFO Threshold Interrupt Enable */
  8545. #define OCTOSPI_CR_SMIE_Pos (19U)
  8546. #define OCTOSPI_CR_SMIE_Msk (0x1UL << OCTOSPI_CR_SMIE_Pos) /*!< 0x00080000 */
  8547. #define OCTOSPI_CR_SMIE OCTOSPI_CR_SMIE_Msk /*!< Status Match Interrupt Enable */
  8548. #define OCTOSPI_CR_TOIE_Pos (20U)
  8549. #define OCTOSPI_CR_TOIE_Msk (0x1UL << OCTOSPI_CR_TOIE_Pos) /*!< 0x00100000 */
  8550. #define OCTOSPI_CR_TOIE OCTOSPI_CR_TOIE_Msk /*!< TimeOut Interrupt Enable */
  8551. #define OCTOSPI_CR_APMS_Pos (22U)
  8552. #define OCTOSPI_CR_APMS_Msk (0x1UL << OCTOSPI_CR_APMS_Pos) /*!< 0x00400000 */
  8553. #define OCTOSPI_CR_APMS OCTOSPI_CR_APMS_Msk /*!< Automatic Poll Mode Stop */
  8554. #define OCTOSPI_CR_PMM_Pos (23U)
  8555. #define OCTOSPI_CR_PMM_Msk (0x1UL << OCTOSPI_CR_PMM_Pos) /*!< 0x00800000 */
  8556. #define OCTOSPI_CR_PMM OCTOSPI_CR_PMM_Msk /*!< Polling Match Mode */
  8557. #define OCTOSPI_CR_FMODE_Pos (28U)
  8558. #define OCTOSPI_CR_FMODE_Msk (0x3UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x30000000 */
  8559. #define OCTOSPI_CR_FMODE OCTOSPI_CR_FMODE_Msk /*!< Functional Mode */
  8560. #define OCTOSPI_CR_FMODE_0 (0x1UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x10000000 */
  8561. #define OCTOSPI_CR_FMODE_1 (0x2UL << OCTOSPI_CR_FMODE_Pos) /*!< 0x20000000 */
  8562. /**************** Bit definition for OCTOSPI_DCR1 register ******************/
  8563. #define OCTOSPI_DCR1_CKMODE_Pos (0U)
  8564. #define OCTOSPI_DCR1_CKMODE_Msk (0x1UL << OCTOSPI_DCR1_CKMODE_Pos) /*!< 0x00000001 */
  8565. #define OCTOSPI_DCR1_CKMODE OCTOSPI_DCR1_CKMODE_Msk /*!< Mode 0 / Mode 3 */
  8566. #define OCTOSPI_DCR1_FRCK_Pos (1U)
  8567. #define OCTOSPI_DCR1_FRCK_Msk (0x1UL << OCTOSPI_DCR1_FRCK_Pos) /*!< 0x00000002 */
  8568. #define OCTOSPI_DCR1_FRCK OCTOSPI_DCR1_FRCK_Msk /*!< Free Running Clock */
  8569. #define OCTOSPI_DCR1_DLYBYP_Pos (3U)
  8570. #define OCTOSPI_DCR1_DLYBYP_Msk (0x1UL << OCTOSPI_DCR1_DLYBYP_Pos) /*!< 0x00000008 */
  8571. #define OCTOSPI_DCR1_DLYBYP OCTOSPI_DCR1_DLYBYP_Msk /*!< Delay Block Bypass */
  8572. #define OCTOSPI_DCR1_CSHT_Pos (8U)
  8573. #define OCTOSPI_DCR1_CSHT_Msk (0x7UL << OCTOSPI_DCR1_CSHT_Pos) /*!< 0x00000700 */
  8574. #define OCTOSPI_DCR1_CSHT OCTOSPI_DCR1_CSHT_Msk /*!< Chip Select High Time */
  8575. #define OCTOSPI_DCR1_DEVSIZE_Pos (16U)
  8576. #define OCTOSPI_DCR1_DEVSIZE_Msk (0x1FUL << OCTOSPI_DCR1_DEVSIZE_Pos) /*!< 0x001F0000 */
  8577. #define OCTOSPI_DCR1_DEVSIZE OCTOSPI_DCR1_DEVSIZE_Msk /*!< Device Size */
  8578. #define OCTOSPI_DCR1_MTYP_Pos (24U)
  8579. #define OCTOSPI_DCR1_MTYP_Msk (0x7UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x07000000 */
  8580. #define OCTOSPI_DCR1_MTYP OCTOSPI_DCR1_MTYP_Msk /*!< Memory Type */
  8581. #define OCTOSPI_DCR1_MTYP_0 (0x1UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x01000000 */
  8582. #define OCTOSPI_DCR1_MTYP_1 (0x2UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x02000000 */
  8583. #define OCTOSPI_DCR1_MTYP_2 (0x4UL << OCTOSPI_DCR1_MTYP_Pos) /*!< 0x04000000 */
  8584. /**************** Bit definition for OCTOSPI_DCR2 register ******************/
  8585. #define OCTOSPI_DCR2_PRESCALER_Pos (0U)
  8586. #define OCTOSPI_DCR2_PRESCALER_Msk (0xFFUL << OCTOSPI_DCR2_PRESCALER_Pos) /*!< 0x000000FF */
  8587. #define OCTOSPI_DCR2_PRESCALER OCTOSPI_DCR2_PRESCALER_Msk /*!< Clock prescaler */
  8588. #define OCTOSPI_DCR2_WRAPSIZE_Pos (16U)
  8589. #define OCTOSPI_DCR2_WRAPSIZE_Msk (0x7UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00070000 */
  8590. #define OCTOSPI_DCR2_WRAPSIZE OCTOSPI_DCR2_WRAPSIZE_Msk /*!< Wrap Size */
  8591. #define OCTOSPI_DCR2_WRAPSIZE_0 (0x1UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00010000 */
  8592. #define OCTOSPI_DCR2_WRAPSIZE_1 (0x2UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00020000 */
  8593. #define OCTOSPI_DCR2_WRAPSIZE_2 (0x4UL << OCTOSPI_DCR2_WRAPSIZE_Pos) /*!< 0x00040000 */
  8594. /**************** Bit definition for OCTOSPI_DCR3 register ******************/
  8595. #define OCTOSPI_DCR3_CSBOUND_Pos (16U)
  8596. #define OCTOSPI_DCR3_CSBOUND_Msk (0x1FUL << OCTOSPI_DCR3_CSBOUND_Pos) /*!< 0x001F0000 */
  8597. #define OCTOSPI_DCR3_CSBOUND OCTOSPI_DCR3_CSBOUND_Msk /*!< CS Boundary */
  8598. /**************** Bit definition for OCTOSPI_DCR4 register ******************/
  8599. #define OCTOSPI_DCR4_REFRESH_Pos (0U)
  8600. #define OCTOSPI_DCR4_REFRESH_Msk (0xFFFFFFFFUL << OCTOSPI_DCR4_REFRESH_Pos)/*!< 0xFFFFFFFF */
  8601. #define OCTOSPI_DCR4_REFRESH OCTOSPI_DCR4_REFRESH_Msk /*!< Refresh rate */
  8602. /***************** Bit definition for OCTOSPI_SR register *******************/
  8603. #define OCTOSPI_SR_TEF_Pos (0U)
  8604. #define OCTOSPI_SR_TEF_Msk (0x1UL << OCTOSPI_SR_TEF_Pos) /*!< 0x00000001 */
  8605. #define OCTOSPI_SR_TEF OCTOSPI_SR_TEF_Msk /*!< Transfer Error Flag */
  8606. #define OCTOSPI_SR_TCF_Pos (1U)
  8607. #define OCTOSPI_SR_TCF_Msk (0x1UL << OCTOSPI_SR_TCF_Pos) /*!< 0x00000002 */
  8608. #define OCTOSPI_SR_TCF OCTOSPI_SR_TCF_Msk /*!< Transfer Complete Flag */
  8609. #define OCTOSPI_SR_FTF_Pos (2U)
  8610. #define OCTOSPI_SR_FTF_Msk (0x1UL << OCTOSPI_SR_FTF_Pos) /*!< 0x00000004 */
  8611. #define OCTOSPI_SR_FTF OCTOSPI_SR_FTF_Msk /*!< FIFO Threshold Flag */
  8612. #define OCTOSPI_SR_SMF_Pos (3U)
  8613. #define OCTOSPI_SR_SMF_Msk (0x1UL << OCTOSPI_SR_SMF_Pos) /*!< 0x00000008 */
  8614. #define OCTOSPI_SR_SMF OCTOSPI_SR_SMF_Msk /*!< Status Match Flag */
  8615. #define OCTOSPI_SR_TOF_Pos (4U)
  8616. #define OCTOSPI_SR_TOF_Msk (0x1UL << OCTOSPI_SR_TOF_Pos) /*!< 0x00000010 */
  8617. #define OCTOSPI_SR_TOF OCTOSPI_SR_TOF_Msk /*!< Timeout Flag */
  8618. #define OCTOSPI_SR_BUSY_Pos (5U)
  8619. #define OCTOSPI_SR_BUSY_Msk (0x1UL << OCTOSPI_SR_BUSY_Pos) /*!< 0x00000020 */
  8620. #define OCTOSPI_SR_BUSY OCTOSPI_SR_BUSY_Msk /*!< Busy */
  8621. #define OCTOSPI_SR_FLEVEL_Pos (8U)
  8622. #define OCTOSPI_SR_FLEVEL_Msk (0x3FUL << OCTOSPI_SR_FLEVEL_Pos) /*!< 0x00003F00 */
  8623. #define OCTOSPI_SR_FLEVEL OCTOSPI_SR_FLEVEL_Msk /*!< FIFO Level */
  8624. /**************** Bit definition for OCTOSPI_FCR register *******************/
  8625. #define OCTOSPI_FCR_CTEF_Pos (0U)
  8626. #define OCTOSPI_FCR_CTEF_Msk (0x1UL << OCTOSPI_FCR_CTEF_Pos) /*!< 0x00000001 */
  8627. #define OCTOSPI_FCR_CTEF OCTOSPI_FCR_CTEF_Msk /*!< Clear Transfer Error Flag */
  8628. #define OCTOSPI_FCR_CTCF_Pos (1U)
  8629. #define OCTOSPI_FCR_CTCF_Msk (0x1UL << OCTOSPI_FCR_CTCF_Pos) /*!< 0x00000002 */
  8630. #define OCTOSPI_FCR_CTCF OCTOSPI_FCR_CTCF_Msk /*!< Clear Transfer Complete Flag */
  8631. #define OCTOSPI_FCR_CSMF_Pos (3U)
  8632. #define OCTOSPI_FCR_CSMF_Msk (0x1UL << OCTOSPI_FCR_CSMF_Pos) /*!< 0x00000008 */
  8633. #define OCTOSPI_FCR_CSMF OCTOSPI_FCR_CSMF_Msk /*!< Clear Status Match Flag */
  8634. #define OCTOSPI_FCR_CTOF_Pos (4U)
  8635. #define OCTOSPI_FCR_CTOF_Msk (0x1UL << OCTOSPI_FCR_CTOF_Pos) /*!< 0x00000010 */
  8636. #define OCTOSPI_FCR_CTOF OCTOSPI_FCR_CTOF_Msk /*!< Clear Timeout Flag */
  8637. /**************** Bit definition for OCTOSPI_DLR register *******************/
  8638. #define OCTOSPI_DLR_DL_Pos (0U)
  8639. #define OCTOSPI_DLR_DL_Msk (0xFFFFFFFFUL << OCTOSPI_DLR_DL_Pos) /*!< 0xFFFFFFFF */
  8640. #define OCTOSPI_DLR_DL OCTOSPI_DLR_DL_Msk /*!< Data Length */
  8641. /***************** Bit definition for OCTOSPI_AR register *******************/
  8642. #define OCTOSPI_AR_ADDRESS_Pos (0U)
  8643. #define OCTOSPI_AR_ADDRESS_Msk (0xFFFFFFFFUL << OCTOSPI_AR_ADDRESS_Pos)/*!< 0xFFFFFFFF */
  8644. #define OCTOSPI_AR_ADDRESS OCTOSPI_AR_ADDRESS_Msk /*!< Address */
  8645. /***************** Bit definition for OCTOSPI_DR register *******************/
  8646. #define OCTOSPI_DR_DATA_Pos (0U)
  8647. #define OCTOSPI_DR_DATA_Msk (0xFFFFFFFFUL << OCTOSPI_DR_DATA_Pos) /*!< 0xFFFFFFFF */
  8648. #define OCTOSPI_DR_DATA OCTOSPI_DR_DATA_Msk /*!< Data */
  8649. /*************** Bit definition for OCTOSPI_PSMKR register ******************/
  8650. #define OCTOSPI_PSMKR_MASK_Pos (0U)
  8651. #define OCTOSPI_PSMKR_MASK_Msk (0xFFFFFFFFUL << OCTOSPI_PSMKR_MASK_Pos)/*!< 0xFFFFFFFF */
  8652. #define OCTOSPI_PSMKR_MASK OCTOSPI_PSMKR_MASK_Msk /*!< Status mask */
  8653. /*************** Bit definition for OCTOSPI_PSMAR register ******************/
  8654. #define OCTOSPI_PSMAR_MATCH_Pos (0U)
  8655. #define OCTOSPI_PSMAR_MATCH_Msk (0xFFFFFFFFUL << OCTOSPI_PSMAR_MATCH_Pos)/*!< 0xFFFFFFFF */
  8656. #define OCTOSPI_PSMAR_MATCH OCTOSPI_PSMAR_MATCH_Msk /*!< Status match */
  8657. /**************** Bit definition for OCTOSPI_PIR register *******************/
  8658. #define OCTOSPI_PIR_INTERVAL_Pos (0U)
  8659. #define OCTOSPI_PIR_INTERVAL_Msk (0xFFFFUL << OCTOSPI_PIR_INTERVAL_Pos) /*!< 0x0000FFFF */
  8660. #define OCTOSPI_PIR_INTERVAL OCTOSPI_PIR_INTERVAL_Msk /*!< Polling Interval */
  8661. /**************** Bit definition for OCTOSPI_CCR register *******************/
  8662. #define OCTOSPI_CCR_IMODE_Pos (0U)
  8663. #define OCTOSPI_CCR_IMODE_Msk (0x7UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000007 */
  8664. #define OCTOSPI_CCR_IMODE OCTOSPI_CCR_IMODE_Msk /*!< Instruction Mode */
  8665. #define OCTOSPI_CCR_IMODE_0 (0x1UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000001 */
  8666. #define OCTOSPI_CCR_IMODE_1 (0x2UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000002 */
  8667. #define OCTOSPI_CCR_IMODE_2 (0x4UL << OCTOSPI_CCR_IMODE_Pos) /*!< 0x00000004 */
  8668. #define OCTOSPI_CCR_IDTR_Pos (3U)
  8669. #define OCTOSPI_CCR_IDTR_Msk (0x1UL << OCTOSPI_CCR_IDTR_Pos) /*!< 0x00000008 */
  8670. #define OCTOSPI_CCR_IDTR OCTOSPI_CCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  8671. #define OCTOSPI_CCR_ISIZE_Pos (4U)
  8672. #define OCTOSPI_CCR_ISIZE_Msk (0x3UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000030 */
  8673. #define OCTOSPI_CCR_ISIZE OCTOSPI_CCR_ISIZE_Msk /*!< Instruction Size */
  8674. #define OCTOSPI_CCR_ISIZE_0 (0x1UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000010 */
  8675. #define OCTOSPI_CCR_ISIZE_1 (0x2UL << OCTOSPI_CCR_ISIZE_Pos) /*!< 0x00000020 */
  8676. #define OCTOSPI_CCR_ADMODE_Pos (8U)
  8677. #define OCTOSPI_CCR_ADMODE_Msk (0x7UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000700 */
  8678. #define OCTOSPI_CCR_ADMODE OCTOSPI_CCR_ADMODE_Msk /*!< Address Mode */
  8679. #define OCTOSPI_CCR_ADMODE_0 (0x1UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000100 */
  8680. #define OCTOSPI_CCR_ADMODE_1 (0x2UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000200 */
  8681. #define OCTOSPI_CCR_ADMODE_2 (0x4UL << OCTOSPI_CCR_ADMODE_Pos) /*!< 0x00000400 */
  8682. #define OCTOSPI_CCR_ADDTR_Pos (11U)
  8683. #define OCTOSPI_CCR_ADDTR_Msk (0x1UL << OCTOSPI_CCR_ADDTR_Pos) /*!< 0x00000800 */
  8684. #define OCTOSPI_CCR_ADDTR OCTOSPI_CCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  8685. #define OCTOSPI_CCR_ADSIZE_Pos (12U)
  8686. #define OCTOSPI_CCR_ADSIZE_Msk (0x3UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00003000 */
  8687. #define OCTOSPI_CCR_ADSIZE OCTOSPI_CCR_ADSIZE_Msk /*!< Address Size */
  8688. #define OCTOSPI_CCR_ADSIZE_0 (0x1UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00001000 */
  8689. #define OCTOSPI_CCR_ADSIZE_1 (0x2UL << OCTOSPI_CCR_ADSIZE_Pos) /*!< 0x00002000 */
  8690. #define OCTOSPI_CCR_ABMODE_Pos (16U)
  8691. #define OCTOSPI_CCR_ABMODE_Msk (0x7UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00070000 */
  8692. #define OCTOSPI_CCR_ABMODE OCTOSPI_CCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  8693. #define OCTOSPI_CCR_ABMODE_0 (0x1UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00010000 */
  8694. #define OCTOSPI_CCR_ABMODE_1 (0x2UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00020000 */
  8695. #define OCTOSPI_CCR_ABMODE_2 (0x4UL << OCTOSPI_CCR_ABMODE_Pos) /*!< 0x00040000 */
  8696. #define OCTOSPI_CCR_ABDTR_Pos (19U)
  8697. #define OCTOSPI_CCR_ABDTR_Msk (0x1UL << OCTOSPI_CCR_ABDTR_Pos) /*!< 0x00080000 */
  8698. #define OCTOSPI_CCR_ABDTR OCTOSPI_CCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  8699. #define OCTOSPI_CCR_ABSIZE_Pos (20U)
  8700. #define OCTOSPI_CCR_ABSIZE_Msk (0x3UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00300000 */
  8701. #define OCTOSPI_CCR_ABSIZE OCTOSPI_CCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  8702. #define OCTOSPI_CCR_ABSIZE_0 (0x1UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00100000 */
  8703. #define OCTOSPI_CCR_ABSIZE_1 (0x2UL << OCTOSPI_CCR_ABSIZE_Pos) /*!< 0x00200000 */
  8704. #define OCTOSPI_CCR_DMODE_Pos (24U)
  8705. #define OCTOSPI_CCR_DMODE_Msk (0x7UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x07000000 */
  8706. #define OCTOSPI_CCR_DMODE OCTOSPI_CCR_DMODE_Msk /*!< Data Mode */
  8707. #define OCTOSPI_CCR_DMODE_0 (0x1UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x01000000 */
  8708. #define OCTOSPI_CCR_DMODE_1 (0x2UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x02000000 */
  8709. #define OCTOSPI_CCR_DMODE_2 (0x4UL << OCTOSPI_CCR_DMODE_Pos) /*!< 0x04000000 */
  8710. #define OCTOSPI_CCR_DDTR_Pos (27U)
  8711. #define OCTOSPI_CCR_DDTR_Msk (0x1UL << OCTOSPI_CCR_DDTR_Pos) /*!< 0x08000000 */
  8712. #define OCTOSPI_CCR_DDTR OCTOSPI_CCR_DDTR_Msk /*!< Data Double Transfer Rate */
  8713. #define OCTOSPI_CCR_DQSE_Pos (29U)
  8714. #define OCTOSPI_CCR_DQSE_Msk (0x1UL << OCTOSPI_CCR_DQSE_Pos) /*!< 0x20000000 */
  8715. #define OCTOSPI_CCR_DQSE OCTOSPI_CCR_DQSE_Msk /*!< DQS Enable */
  8716. #define OCTOSPI_CCR_SIOO_Pos (31U)
  8717. #define OCTOSPI_CCR_SIOO_Msk (0x1UL << OCTOSPI_CCR_SIOO_Pos) /*!< 0x80000000 */
  8718. #define OCTOSPI_CCR_SIOO OCTOSPI_CCR_SIOO_Msk /*!< Send Instruction Only Once Mode */
  8719. /**************** Bit definition for OCTOSPI_TCR register *******************/
  8720. #define OCTOSPI_TCR_DCYC_Pos (0U)
  8721. #define OCTOSPI_TCR_DCYC_Msk (0x1FUL << OCTOSPI_TCR_DCYC_Pos) /*!< 0x0000001F */
  8722. #define OCTOSPI_TCR_DCYC OCTOSPI_TCR_DCYC_Msk /*!< Number of Dummy Cycles */
  8723. #define OCTOSPI_TCR_DHQC_Pos (28U)
  8724. #define OCTOSPI_TCR_DHQC_Msk (0x1UL << OCTOSPI_TCR_DHQC_Pos) /*!< 0x10000000 */
  8725. #define OCTOSPI_TCR_DHQC OCTOSPI_TCR_DHQC_Msk /*!< Delay Hold Quarter Cycle */
  8726. #define OCTOSPI_TCR_SSHIFT_Pos (30U)
  8727. #define OCTOSPI_TCR_SSHIFT_Msk (0x1UL << OCTOSPI_TCR_SSHIFT_Pos) /*!< 0x40000000 */
  8728. #define OCTOSPI_TCR_SSHIFT OCTOSPI_TCR_SSHIFT_Msk /*!< Sample Shift */
  8729. /***************** Bit definition for OCTOSPI_IR register *******************/
  8730. #define OCTOSPI_IR_INSTRUCTION_Pos (0U)
  8731. #define OCTOSPI_IR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_IR_INSTRUCTION_Pos)/*!< 0xFFFFFFFF */
  8732. #define OCTOSPI_IR_INSTRUCTION OCTOSPI_IR_INSTRUCTION_Msk /*!< Instruction */
  8733. /**************** Bit definition for OCTOSPI_ABR register *******************/
  8734. #define OCTOSPI_ABR_ALTERNATE_Pos (0U)
  8735. #define OCTOSPI_ABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_ABR_ALTERNATE_Pos)/*!< 0xFFFFFFFF */
  8736. #define OCTOSPI_ABR_ALTERNATE OCTOSPI_ABR_ALTERNATE_Msk /*!< Alternate Bytes */
  8737. /**************** Bit definition for OCTOSPI_LPTR register ******************/
  8738. #define OCTOSPI_LPTR_TIMEOUT_Pos (0U)
  8739. #define OCTOSPI_LPTR_TIMEOUT_Msk (0xFFFFUL << OCTOSPI_LPTR_TIMEOUT_Pos) /*!< 0x0000FFFF */
  8740. #define OCTOSPI_LPTR_TIMEOUT OCTOSPI_LPTR_TIMEOUT_Msk /*!< Timeout period */
  8741. /**************** Bit definition for OCTOSPI_WPCCR register *******************/
  8742. #define OCTOSPI_WPCCR_IMODE_Pos (0U)
  8743. #define OCTOSPI_WPCCR_IMODE_Msk (0x7UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000007 */
  8744. #define OCTOSPI_WPCCR_IMODE OCTOSPI_WPCCR_IMODE_Msk /*!< Instruction Mode */
  8745. #define OCTOSPI_WPCCR_IMODE_0 (0x1UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000001 */
  8746. #define OCTOSPI_WPCCR_IMODE_1 (0x2UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000002 */
  8747. #define OCTOSPI_WPCCR_IMODE_2 (0x4UL << OCTOSPI_WPCCR_IMODE_Pos) /*!< 0x00000004 */
  8748. #define OCTOSPI_WPCCR_IDTR_Pos (3U)
  8749. #define OCTOSPI_WPCCR_IDTR_Msk (0x1UL << OCTOSPI_WPCCR_IDTR_Pos) /*!< 0x00000008 */
  8750. #define OCTOSPI_WPCCR_IDTR OCTOSPI_WPCCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  8751. #define OCTOSPI_WPCCR_ISIZE_Pos (4U)
  8752. #define OCTOSPI_WPCCR_ISIZE_Msk (0x3UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000030 */
  8753. #define OCTOSPI_WPCCR_ISIZE OCTOSPI_WPCCR_ISIZE_Msk /*!< Instruction Size */
  8754. #define OCTOSPI_WPCCR_ISIZE_0 (0x1UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000010 */
  8755. #define OCTOSPI_WPCCR_ISIZE_1 (0x2UL << OCTOSPI_WPCCR_ISIZE_Pos) /*!< 0x00000020 */
  8756. #define OCTOSPI_WPCCR_ADMODE_Pos (8U)
  8757. #define OCTOSPI_WPCCR_ADMODE_Msk (0x7UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000700 */
  8758. #define OCTOSPI_WPCCR_ADMODE OCTOSPI_WPCCR_ADMODE_Msk /*!< Address Mode */
  8759. #define OCTOSPI_WPCCR_ADMODE_0 (0x1UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000100 */
  8760. #define OCTOSPI_WPCCR_ADMODE_1 (0x2UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000200 */
  8761. #define OCTOSPI_WPCCR_ADMODE_2 (0x4UL << OCTOSPI_WPCCR_ADMODE_Pos) /*!< 0x00000400 */
  8762. #define OCTOSPI_WPCCR_ADDTR_Pos (11U)
  8763. #define OCTOSPI_WPCCR_ADDTR_Msk (0x1UL << OCTOSPI_WPCCR_ADDTR_Pos) /*!< 0x00000800 */
  8764. #define OCTOSPI_WPCCR_ADDTR OCTOSPI_WPCCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  8765. #define OCTOSPI_WPCCR_ADSIZE_Pos (12U)
  8766. #define OCTOSPI_WPCCR_ADSIZE_Msk (0x3UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00003000 */
  8767. #define OCTOSPI_WPCCR_ADSIZE OCTOSPI_WPCCR_ADSIZE_Msk /*!< Address Size */
  8768. #define OCTOSPI_WPCCR_ADSIZE_0 (0x1UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00001000 */
  8769. #define OCTOSPI_WPCCR_ADSIZE_1 (0x2UL << OCTOSPI_WPCCR_ADSIZE_Pos) /*!< 0x00002000 */
  8770. #define OCTOSPI_WPCCR_ABMODE_Pos (16U)
  8771. #define OCTOSPI_WPCCR_ABMODE_Msk (0x7UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00070000 */
  8772. #define OCTOSPI_WPCCR_ABMODE OCTOSPI_WPCCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  8773. #define OCTOSPI_WPCCR_ABMODE_0 (0x1UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00010000 */
  8774. #define OCTOSPI_WPCCR_ABMODE_1 (0x2UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00020000 */
  8775. #define OCTOSPI_WPCCR_ABMODE_2 (0x4UL << OCTOSPI_WPCCR_ABMODE_Pos) /*!< 0x00040000 */
  8776. #define OCTOSPI_WPCCR_ABDTR_Pos (19U)
  8777. #define OCTOSPI_WPCCR_ABDTR_Msk (0x1UL << OCTOSPI_WPCCR_ABDTR_Pos) /*!< 0x00080000 */
  8778. #define OCTOSPI_WPCCR_ABDTR OCTOSPI_WPCCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  8779. #define OCTOSPI_WPCCR_ABSIZE_Pos (20U)
  8780. #define OCTOSPI_WPCCR_ABSIZE_Msk (0x3UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00300000 */
  8781. #define OCTOSPI_WPCCR_ABSIZE OCTOSPI_WPCCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  8782. #define OCTOSPI_WPCCR_ABSIZE_0 (0x1UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00100000 */
  8783. #define OCTOSPI_WPCCR_ABSIZE_1 (0x2UL << OCTOSPI_WPCCR_ABSIZE_Pos) /*!< 0x00200000 */
  8784. #define OCTOSPI_WPCCR_DMODE_Pos (24U)
  8785. #define OCTOSPI_WPCCR_DMODE_Msk (0x7UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x07000000 */
  8786. #define OCTOSPI_WPCCR_DMODE OCTOSPI_WPCCR_DMODE_Msk /*!< Data Mode */
  8787. #define OCTOSPI_WPCCR_DMODE_0 (0x1UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x01000000 */
  8788. #define OCTOSPI_WPCCR_DMODE_1 (0x2UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x02000000 */
  8789. #define OCTOSPI_WPCCR_DMODE_2 (0x4UL << OCTOSPI_WPCCR_DMODE_Pos) /*!< 0x04000000 */
  8790. #define OCTOSPI_WPCCR_DDTR_Pos (27U)
  8791. #define OCTOSPI_WPCCR_DDTR_Msk (0x1UL << OCTOSPI_WPCCR_DDTR_Pos) /*!< 0x08000000 */
  8792. #define OCTOSPI_WPCCR_DDTR OCTOSPI_WPCCR_DDTR_Msk /*!< Data Double Transfer Rate */
  8793. #define OCTOSPI_WPCCR_DQSE_Pos (29U)
  8794. #define OCTOSPI_WPCCR_DQSE_Msk (0x1UL << OCTOSPI_WPCCR_DQSE_Pos) /*!< 0x20000000 */
  8795. #define OCTOSPI_WPCCR_DQSE OCTOSPI_WPCCR_DQSE_Msk /*!< DQS Enable */
  8796. /**************** Bit definition for OCTOSPI_WPTCR register *******************/
  8797. #define OCTOSPI_WPTCR_DCYC_Pos (0U)
  8798. #define OCTOSPI_WPTCR_DCYC_Msk (0x1FUL << OCTOSPI_WPTCR_DCYC_Pos) /*!< 0x0000001F */
  8799. #define OCTOSPI_WPTCR_DCYC OCTOSPI_WPTCR_DCYC_Msk /*!< Number of Dummy Cycles */
  8800. #define OCTOSPI_WPTCR_DHQC_Pos (28U)
  8801. #define OCTOSPI_WPTCR_DHQC_Msk (0x1UL << OCTOSPI_WPTCR_DHQC_Pos) /*!< 0x10000000 */
  8802. #define OCTOSPI_WPTCR_DHQC OCTOSPI_WPTCR_DHQC_Msk /*!< Delay Hold Quarter Cycle */
  8803. #define OCTOSPI_WPTCR_SSHIFT_Pos (30U)
  8804. #define OCTOSPI_WPTCR_SSHIFT_Msk (0x1UL << OCTOSPI_WPTCR_SSHIFT_Pos) /*!< 0x40000000 */
  8805. #define OCTOSPI_WPTCR_SSHIFT OCTOSPI_WPTCR_SSHIFT_Msk /*!< Sample Shift */
  8806. /***************** Bit definition for OCTOSPI_WPIR register *******************/
  8807. #define OCTOSPI_WPIR_INSTRUCTION_Pos (0U)
  8808. #define OCTOSPI_WPIR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_WPIR_INSTRUCTION_Pos)/*!< 0xFFFFFFFF */
  8809. #define OCTOSPI_WPIR_INSTRUCTION OCTOSPI_WPIR_INSTRUCTION_Msk /*!< Instruction */
  8810. /**************** Bit definition for OCTOSPI_WPABR register *******************/
  8811. #define OCTOSPI_WPABR_ALTERNATE_Pos (0U)
  8812. #define OCTOSPI_WPABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_WPABR_ALTERNATE_Pos)/*!< 0xFFFFFFFF */
  8813. #define OCTOSPI_WPABR_ALTERNATE OCTOSPI_WPABR_ALTERNATE_Msk /*!< Alternate Bytes */
  8814. /**************** Bit definition for OCTOSPI_WCCR register ******************/
  8815. #define OCTOSPI_WCCR_IMODE_Pos (0U)
  8816. #define OCTOSPI_WCCR_IMODE_Msk (0x7UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000007 */
  8817. #define OCTOSPI_WCCR_IMODE OCTOSPI_WCCR_IMODE_Msk /*!< Instruction Mode */
  8818. #define OCTOSPI_WCCR_IMODE_0 (0x1UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000001 */
  8819. #define OCTOSPI_WCCR_IMODE_1 (0x2UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000002 */
  8820. #define OCTOSPI_WCCR_IMODE_2 (0x4UL << OCTOSPI_WCCR_IMODE_Pos) /*!< 0x00000004 */
  8821. #define OCTOSPI_WCCR_IDTR_Pos (3U)
  8822. #define OCTOSPI_WCCR_IDTR_Msk (0x1UL << OCTOSPI_WCCR_IDTR_Pos) /*!< 0x00000008 */
  8823. #define OCTOSPI_WCCR_IDTR OCTOSPI_WCCR_IDTR_Msk /*!< Instruction Double Transfer Rate */
  8824. #define OCTOSPI_WCCR_ISIZE_Pos (4U)
  8825. #define OCTOSPI_WCCR_ISIZE_Msk (0x3UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000030 */
  8826. #define OCTOSPI_WCCR_ISIZE OCTOSPI_WCCR_ISIZE_Msk /*!< Instruction Size */
  8827. #define OCTOSPI_WCCR_ISIZE_0 (0x1UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000010 */
  8828. #define OCTOSPI_WCCR_ISIZE_1 (0x2UL << OCTOSPI_WCCR_ISIZE_Pos) /*!< 0x00000020 */
  8829. #define OCTOSPI_WCCR_ADMODE_Pos (8U)
  8830. #define OCTOSPI_WCCR_ADMODE_Msk (0x7UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000700 */
  8831. #define OCTOSPI_WCCR_ADMODE OCTOSPI_WCCR_ADMODE_Msk /*!< Address Mode */
  8832. #define OCTOSPI_WCCR_ADMODE_0 (0x1UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000100 */
  8833. #define OCTOSPI_WCCR_ADMODE_1 (0x2UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000200 */
  8834. #define OCTOSPI_WCCR_ADMODE_2 (0x4UL << OCTOSPI_WCCR_ADMODE_Pos) /*!< 0x00000400 */
  8835. #define OCTOSPI_WCCR_ADDTR_Pos (11U)
  8836. #define OCTOSPI_WCCR_ADDTR_Msk (0x1UL << OCTOSPI_WCCR_ADDTR_Pos) /*!< 0x00000800 */
  8837. #define OCTOSPI_WCCR_ADDTR OCTOSPI_WCCR_ADDTR_Msk /*!< Address Double Transfer Rate */
  8838. #define OCTOSPI_WCCR_ADSIZE_Pos (12U)
  8839. #define OCTOSPI_WCCR_ADSIZE_Msk (0x3UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00003000 */
  8840. #define OCTOSPI_WCCR_ADSIZE OCTOSPI_WCCR_ADSIZE_Msk /*!< Address Size */
  8841. #define OCTOSPI_WCCR_ADSIZE_0 (0x1UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00001000 */
  8842. #define OCTOSPI_WCCR_ADSIZE_1 (0x2UL << OCTOSPI_WCCR_ADSIZE_Pos) /*!< 0x00002000 */
  8843. #define OCTOSPI_WCCR_ABMODE_Pos (16U)
  8844. #define OCTOSPI_WCCR_ABMODE_Msk (0x7UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00070000 */
  8845. #define OCTOSPI_WCCR_ABMODE OCTOSPI_WCCR_ABMODE_Msk /*!< Alternate Bytes Mode */
  8846. #define OCTOSPI_WCCR_ABMODE_0 (0x1UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00010000 */
  8847. #define OCTOSPI_WCCR_ABMODE_1 (0x2UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00020000 */
  8848. #define OCTOSPI_WCCR_ABMODE_2 (0x4UL << OCTOSPI_WCCR_ABMODE_Pos) /*!< 0x00040000 */
  8849. #define OCTOSPI_WCCR_ABDTR_Pos (19U)
  8850. #define OCTOSPI_WCCR_ABDTR_Msk (0x1UL << OCTOSPI_WCCR_ABDTR_Pos) /*!< 0x00080000 */
  8851. #define OCTOSPI_WCCR_ABDTR OCTOSPI_WCCR_ABDTR_Msk /*!< Alternate Bytes Double Transfer Rate */
  8852. #define OCTOSPI_WCCR_ABSIZE_Pos (20U)
  8853. #define OCTOSPI_WCCR_ABSIZE_Msk (0x3UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00300000 */
  8854. #define OCTOSPI_WCCR_ABSIZE OCTOSPI_WCCR_ABSIZE_Msk /*!< Alternate Bytes Size */
  8855. #define OCTOSPI_WCCR_ABSIZE_0 (0x1UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00100000 */
  8856. #define OCTOSPI_WCCR_ABSIZE_1 (0x2UL << OCTOSPI_WCCR_ABSIZE_Pos) /*!< 0x00200000 */
  8857. #define OCTOSPI_WCCR_DMODE_Pos (24U)
  8858. #define OCTOSPI_WCCR_DMODE_Msk (0x7UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x07000000 */
  8859. #define OCTOSPI_WCCR_DMODE OCTOSPI_WCCR_DMODE_Msk /*!< Data Mode */
  8860. #define OCTOSPI_WCCR_DMODE_0 (0x1UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x01000000 */
  8861. #define OCTOSPI_WCCR_DMODE_1 (0x2UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x02000000 */
  8862. #define OCTOSPI_WCCR_DMODE_2 (0x4UL << OCTOSPI_WCCR_DMODE_Pos) /*!< 0x04000000 */
  8863. #define OCTOSPI_WCCR_DDTR_Pos (27U)
  8864. #define OCTOSPI_WCCR_DDTR_Msk (0x1UL << OCTOSPI_WCCR_DDTR_Pos) /*!< 0x08000000 */
  8865. #define OCTOSPI_WCCR_DDTR OCTOSPI_WCCR_DDTR_Msk /*!< Data Double Transfer Rate */
  8866. #define OCTOSPI_WCCR_DQSE_Pos (29U)
  8867. #define OCTOSPI_WCCR_DQSE_Msk (0x1UL << OCTOSPI_WCCR_DQSE_Pos) /*!< 0x20000000 */
  8868. #define OCTOSPI_WCCR_DQSE OCTOSPI_WCCR_DQSE_Msk /*!< DQS Enable */
  8869. /**************** Bit definition for OCTOSPI_WTCR register ******************/
  8870. #define OCTOSPI_WTCR_DCYC_Pos (0U)
  8871. #define OCTOSPI_WTCR_DCYC_Msk (0x1FUL << OCTOSPI_WTCR_DCYC_Pos) /*!< 0x0000001F */
  8872. #define OCTOSPI_WTCR_DCYC OCTOSPI_WTCR_DCYC_Msk /*!< Number of Dummy Cycles */
  8873. /**************** Bit definition for OCTOSPI_WIR register *******************/
  8874. #define OCTOSPI_WIR_INSTRUCTION_Pos (0U)
  8875. #define OCTOSPI_WIR_INSTRUCTION_Msk (0xFFFFFFFFUL << OCTOSPI_WIR_INSTRUCTION_Pos)/*!< 0xFFFFFFFF */
  8876. #define OCTOSPI_WIR_INSTRUCTION OCTOSPI_WIR_INSTRUCTION_Msk /*!< Instruction */
  8877. /**************** Bit definition for OCTOSPI_WABR register ******************/
  8878. #define OCTOSPI_WABR_ALTERNATE_Pos (0U)
  8879. #define OCTOSPI_WABR_ALTERNATE_Msk (0xFFFFFFFFUL << OCTOSPI_WABR_ALTERNATE_Pos)/*!< 0xFFFFFFFF */
  8880. #define OCTOSPI_WABR_ALTERNATE OCTOSPI_WABR_ALTERNATE_Msk /*!< Alternate Bytes */
  8881. /**************** Bit definition for OCTOSPI_HLCR register ******************/
  8882. #define OCTOSPI_HLCR_LM_Pos (0U)
  8883. #define OCTOSPI_HLCR_LM_Msk (0x1UL << OCTOSPI_HLCR_LM_Pos) /*!< 0x00000001 */
  8884. #define OCTOSPI_HLCR_LM OCTOSPI_HLCR_LM_Msk /*!< Latency Mode */
  8885. #define OCTOSPI_HLCR_WZL_Pos (1U)
  8886. #define OCTOSPI_HLCR_WZL_Msk (0x1UL << OCTOSPI_HLCR_WZL_Pos) /*!< 0x00000002 */
  8887. #define OCTOSPI_HLCR_WZL OCTOSPI_HLCR_WZL_Msk /*!< Write Zero Latency */
  8888. #define OCTOSPI_HLCR_TACC_Pos (8U)
  8889. #define OCTOSPI_HLCR_TACC_Msk (0xFFUL << OCTOSPI_HLCR_TACC_Pos) /*!< 0x0000FF00 */
  8890. #define OCTOSPI_HLCR_TACC OCTOSPI_HLCR_TACC_Msk /*!< Access Time */
  8891. #define OCTOSPI_HLCR_TRWR_Pos (16U)
  8892. #define OCTOSPI_HLCR_TRWR_Msk (0xFFUL << OCTOSPI_HLCR_TRWR_Pos) /*!< 0x00FF0000 */
  8893. #define OCTOSPI_HLCR_TRWR OCTOSPI_HLCR_TRWR_Msk /*!< Read Write Recovery Time */
  8894. /******************************************************************************/
  8895. /* */
  8896. /* Operational Amplifier (OPAMP) */
  8897. /* */
  8898. /******************************************************************************/
  8899. /********************* Bit definition for OPAMPx_CSR register ***************/
  8900. #define OPAMP_CSR_OPAMPxEN_Pos (0U)
  8901. #define OPAMP_CSR_OPAMPxEN_Msk (0x1UL << OPAMP_CSR_OPAMPxEN_Pos) /*!< 0x00000001 */
  8902. #define OPAMP_CSR_OPAMPxEN OPAMP_CSR_OPAMPxEN_Msk /*!< OPAMP enable */
  8903. #define OPAMP_CSR_OPALPM_Pos (1U)
  8904. #define OPAMP_CSR_OPALPM_Msk (0x1UL << OPAMP_CSR_OPALPM_Pos) /*!< 0x00000002 */
  8905. #define OPAMP_CSR_OPALPM OPAMP_CSR_OPALPM_Msk /*!< Operational amplifier Low Power Mode */
  8906. #define OPAMP_CSR_OPAMODE_Pos (2U)
  8907. #define OPAMP_CSR_OPAMODE_Msk (0x3UL << OPAMP_CSR_OPAMODE_Pos) /*!< 0x0000000C */
  8908. #define OPAMP_CSR_OPAMODE OPAMP_CSR_OPAMODE_Msk /*!< Operational amplifier PGA mode */
  8909. #define OPAMP_CSR_OPAMODE_0 (0x1UL << OPAMP_CSR_OPAMODE_Pos) /*!< 0x00000004 */
  8910. #define OPAMP_CSR_OPAMODE_1 (0x2UL << OPAMP_CSR_OPAMODE_Pos) /*!< 0x00000008 */
  8911. #define OPAMP_CSR_PGGAIN_Pos (4U)
  8912. #define OPAMP_CSR_PGGAIN_Msk (0x3UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000030 */
  8913. #define OPAMP_CSR_PGGAIN OPAMP_CSR_PGGAIN_Msk /*!< Operational amplifier Programmable amplifier gain value */
  8914. #define OPAMP_CSR_PGGAIN_0 (0x1UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000010 */
  8915. #define OPAMP_CSR_PGGAIN_1 (0x2UL << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000020 */
  8916. #define OPAMP_CSR_VMSEL_Pos (8U)
  8917. #define OPAMP_CSR_VMSEL_Msk (0x3UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000300 */
  8918. #define OPAMP_CSR_VMSEL OPAMP_CSR_VMSEL_Msk /*!< Inverting input selection */
  8919. #define OPAMP_CSR_VMSEL_0 (0x1UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000100 */
  8920. #define OPAMP_CSR_VMSEL_1 (0x2UL << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000200 */
  8921. #define OPAMP_CSR_VPSEL_Pos (10U)
  8922. #define OPAMP_CSR_VPSEL_Msk (0x1UL << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000400 */
  8923. #define OPAMP_CSR_VPSEL OPAMP_CSR_VPSEL_Msk /*!< Non inverted input selection */
  8924. #define OPAMP_CSR_CALON_Pos (12U)
  8925. #define OPAMP_CSR_CALON_Msk (0x1UL << OPAMP_CSR_CALON_Pos) /*!< 0x00001000 */
  8926. #define OPAMP_CSR_CALON OPAMP_CSR_CALON_Msk /*!< Calibration mode enable */
  8927. #define OPAMP_CSR_CALSEL_Pos (13U)
  8928. #define OPAMP_CSR_CALSEL_Msk (0x1UL << OPAMP_CSR_CALSEL_Pos) /*!< 0x00002000 */
  8929. #define OPAMP_CSR_CALSEL OPAMP_CSR_CALSEL_Msk /*!< Calibration selection */
  8930. #define OPAMP_CSR_USERTRIM_Pos (14U)
  8931. #define OPAMP_CSR_USERTRIM_Msk (0x1UL << OPAMP_CSR_USERTRIM_Pos) /*!< 0x00004000 */
  8932. #define OPAMP_CSR_USERTRIM OPAMP_CSR_USERTRIM_Msk /*!< User trimming enable */
  8933. #define OPAMP_CSR_CALOUT_Pos (15U)
  8934. #define OPAMP_CSR_CALOUT_Msk (0x1UL << OPAMP_CSR_CALOUT_Pos) /*!< 0x00008000 */
  8935. #define OPAMP_CSR_CALOUT OPAMP_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */
  8936. /********************* Bit definition for OPAMP1_CSR register ***************/
  8937. #define OPAMP1_CSR_OPAEN_Pos (0U)
  8938. #define OPAMP1_CSR_OPAEN_Msk (0x1UL << OPAMP1_CSR_OPAEN_Pos) /*!< 0x00000001 */
  8939. #define OPAMP1_CSR_OPAEN OPAMP1_CSR_OPAEN_Msk /*!< Operational amplifier1 Enable */
  8940. #define OPAMP1_CSR_OPALPM_Pos (1U)
  8941. #define OPAMP1_CSR_OPALPM_Msk (0x1UL << OPAMP1_CSR_OPALPM_Pos) /*!< 0x00000002 */
  8942. #define OPAMP1_CSR_OPALPM OPAMP1_CSR_OPALPM_Msk /*!< Operational amplifier1 Low Power Mode */
  8943. #define OPAMP1_CSR_OPAMODE_Pos (2U)
  8944. #define OPAMP1_CSR_OPAMODE_Msk (0x3UL << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x0000000C */
  8945. #define OPAMP1_CSR_OPAMODE OPAMP1_CSR_OPAMODE_Msk /*!< Operational amplifier1 PGA mode */
  8946. #define OPAMP1_CSR_OPAMODE_0 (0x1UL << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x00000004 */
  8947. #define OPAMP1_CSR_OPAMODE_1 (0x2UL << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x00000008 */
  8948. #define OPAMP1_CSR_PGAGAIN_Pos (4U)
  8949. #define OPAMP1_CSR_PGAGAIN_Msk (0x3UL << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000030 */
  8950. #define OPAMP1_CSR_PGAGAIN OPAMP1_CSR_PGAGAIN_Msk /*!< Operational amplifier1 Programmable amplifier gain value */
  8951. #define OPAMP1_CSR_PGAGAIN_0 (0x1UL << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000010 */
  8952. #define OPAMP1_CSR_PGAGAIN_1 (0x2UL << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000020 */
  8953. #define OPAMP1_CSR_VMSEL_Pos (8U)
  8954. #define OPAMP1_CSR_VMSEL_Msk (0x3UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000300 */
  8955. #define OPAMP1_CSR_VMSEL OPAMP1_CSR_VMSEL_Msk /*!< Inverting input selection */
  8956. #define OPAMP1_CSR_VMSEL_0 (0x1UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000100 */
  8957. #define OPAMP1_CSR_VMSEL_1 (0x2UL << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000200 */
  8958. #define OPAMP1_CSR_VPSEL_Pos (10U)
  8959. #define OPAMP1_CSR_VPSEL_Msk (0x1UL << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000400 */
  8960. #define OPAMP1_CSR_VPSEL OPAMP1_CSR_VPSEL_Msk /*!< Non inverted input selection */
  8961. #define OPAMP1_CSR_CALON_Pos (12U)
  8962. #define OPAMP1_CSR_CALON_Msk (0x1UL << OPAMP1_CSR_CALON_Pos) /*!< 0x00001000 */
  8963. #define OPAMP1_CSR_CALON OPAMP1_CSR_CALON_Msk /*!< Calibration mode enable */
  8964. #define OPAMP1_CSR_CALSEL_Pos (13U)
  8965. #define OPAMP1_CSR_CALSEL_Msk (0x1UL << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00002000 */
  8966. #define OPAMP1_CSR_CALSEL OPAMP1_CSR_CALSEL_Msk /*!< Calibration selection */
  8967. #define OPAMP1_CSR_USERTRIM_Pos (14U)
  8968. #define OPAMP1_CSR_USERTRIM_Msk (0x1UL << OPAMP1_CSR_USERTRIM_Pos) /*!< 0x00004000 */
  8969. #define OPAMP1_CSR_USERTRIM OPAMP1_CSR_USERTRIM_Msk /*!< User trimming enable */
  8970. #define OPAMP1_CSR_CALOUT_Pos (15U)
  8971. #define OPAMP1_CSR_CALOUT_Msk (0x1UL << OPAMP1_CSR_CALOUT_Pos) /*!< 0x00008000 */
  8972. #define OPAMP1_CSR_CALOUT OPAMP1_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */
  8973. #define OPAMP1_CSR_OPARANGE_Pos (31U)
  8974. #define OPAMP1_CSR_OPARANGE_Msk (0x1UL << OPAMP1_CSR_OPARANGE_Pos) /*!< 0x80000000 */
  8975. #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) */
  8976. /********************* Bit definition for OPAMP2_CSR register ***************/
  8977. #define OPAMP2_CSR_OPAEN_Pos (0U)
  8978. #define OPAMP2_CSR_OPAEN_Msk (0x1UL << OPAMP2_CSR_OPAEN_Pos) /*!< 0x00000001 */
  8979. #define OPAMP2_CSR_OPAEN OPAMP2_CSR_OPAEN_Msk /*!< Operational amplifier2 Enable */
  8980. #define OPAMP2_CSR_OPALPM_Pos (1U)
  8981. #define OPAMP2_CSR_OPALPM_Msk (0x1UL << OPAMP2_CSR_OPALPM_Pos) /*!< 0x00000002 */
  8982. #define OPAMP2_CSR_OPALPM OPAMP2_CSR_OPALPM_Msk /*!< Operational amplifier2 Low Power Mode */
  8983. #define OPAMP2_CSR_OPAMODE_Pos (2U)
  8984. #define OPAMP2_CSR_OPAMODE_Msk (0x3UL << OPAMP2_CSR_OPAMODE_Pos) /*!< 0x0000000C */
  8985. #define OPAMP2_CSR_OPAMODE OPAMP2_CSR_OPAMODE_Msk /*!< Operational amplifier2 PGA mode */
  8986. #define OPAMP2_CSR_OPAMODE_0 (0x1UL << OPAMP2_CSR_OPAMODE_Pos) /*!< 0x00000004 */
  8987. #define OPAMP2_CSR_OPAMODE_1 (0x2UL << OPAMP2_CSR_OPAMODE_Pos) /*!< 0x00000008 */
  8988. #define OPAMP2_CSR_PGAGAIN_Pos (4U)
  8989. #define OPAMP2_CSR_PGAGAIN_Msk (0x3UL << OPAMP2_CSR_PGAGAIN_Pos) /*!< 0x00000030 */
  8990. #define OPAMP2_CSR_PGAGAIN OPAMP2_CSR_PGAGAIN_Msk /*!< Operational amplifier2 Programmable amplifier gain value */
  8991. #define OPAMP2_CSR_PGAGAIN_0 (0x1UL << OPAMP2_CSR_PGAGAIN_Pos) /*!< 0x00000010 */
  8992. #define OPAMP2_CSR_PGAGAIN_1 (0x2UL << OPAMP2_CSR_PGAGAIN_Pos) /*!< 0x00000020 */
  8993. #define OPAMP2_CSR_VMSEL_Pos (8U)
  8994. #define OPAMP2_CSR_VMSEL_Msk (0x3UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000300 */
  8995. #define OPAMP2_CSR_VMSEL OPAMP2_CSR_VMSEL_Msk /*!< Inverting input selection */
  8996. #define OPAMP2_CSR_VMSEL_0 (0x1UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000100 */
  8997. #define OPAMP2_CSR_VMSEL_1 (0x2UL << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000200 */
  8998. #define OPAMP2_CSR_VPSEL_Pos (10U)
  8999. #define OPAMP2_CSR_VPSEL_Msk (0x1UL << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000400 */
  9000. #define OPAMP2_CSR_VPSEL OPAMP2_CSR_VPSEL_Msk /*!< Non inverted input selection */
  9001. #define OPAMP2_CSR_CALON_Pos (12U)
  9002. #define OPAMP2_CSR_CALON_Msk (0x1UL << OPAMP2_CSR_CALON_Pos) /*!< 0x00001000 */
  9003. #define OPAMP2_CSR_CALON OPAMP2_CSR_CALON_Msk /*!< Calibration mode enable */
  9004. #define OPAMP2_CSR_CALSEL_Pos (13U)
  9005. #define OPAMP2_CSR_CALSEL_Msk (0x1UL << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00002000 */
  9006. #define OPAMP2_CSR_CALSEL OPAMP2_CSR_CALSEL_Msk /*!< Calibration selection */
  9007. #define OPAMP2_CSR_USERTRIM_Pos (14U)
  9008. #define OPAMP2_CSR_USERTRIM_Msk (0x1UL << OPAMP2_CSR_USERTRIM_Pos) /*!< 0x00004000 */
  9009. #define OPAMP2_CSR_USERTRIM OPAMP2_CSR_USERTRIM_Msk /*!< User trimming enable */
  9010. #define OPAMP2_CSR_CALOUT_Pos (15U)
  9011. #define OPAMP2_CSR_CALOUT_Msk (0x1UL << OPAMP2_CSR_CALOUT_Pos) /*!< 0x00008000 */
  9012. #define OPAMP2_CSR_CALOUT OPAMP2_CSR_CALOUT_Msk /*!< Operational amplifier2 calibration output */
  9013. /******************* Bit definition for OPAMP_OTR register ******************/
  9014. #define OPAMP_OTR_TRIMOFFSETN_Pos (0U)
  9015. #define OPAMP_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  9016. #define OPAMP_OTR_TRIMOFFSETN OPAMP_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9017. #define OPAMP_OTR_TRIMOFFSETP_Pos (8U)
  9018. #define OPAMP_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  9019. #define OPAMP_OTR_TRIMOFFSETP OPAMP_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9020. /******************* Bit definition for OPAMP1_OTR register ******************/
  9021. #define OPAMP1_OTR_TRIMOFFSETN_Pos (0U)
  9022. #define OPAMP1_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP1_OTR_TRIMOFFSETN_Pos)/*!< 0x0000001F */
  9023. #define OPAMP1_OTR_TRIMOFFSETN OPAMP1_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9024. #define OPAMP1_OTR_TRIMOFFSETP_Pos (8U)
  9025. #define OPAMP1_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP1_OTR_TRIMOFFSETP_Pos)/*!< 0x00001F00 */
  9026. #define OPAMP1_OTR_TRIMOFFSETP OPAMP1_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9027. /******************* Bit definition for OPAMP2_OTR register ******************/
  9028. #define OPAMP2_OTR_TRIMOFFSETN_Pos (0U)
  9029. #define OPAMP2_OTR_TRIMOFFSETN_Msk (0x1FUL << OPAMP2_OTR_TRIMOFFSETN_Pos)/*!< 0x0000001F */
  9030. #define OPAMP2_OTR_TRIMOFFSETN OPAMP2_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9031. #define OPAMP2_OTR_TRIMOFFSETP_Pos (8U)
  9032. #define OPAMP2_OTR_TRIMOFFSETP_Msk (0x1FUL << OPAMP2_OTR_TRIMOFFSETP_Pos)/*!< 0x00001F00 */
  9033. #define OPAMP2_OTR_TRIMOFFSETP OPAMP2_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9034. /******************* Bit definition for OPAMP_LPOTR register ****************/
  9035. #define OPAMP_LPOTR_TRIMLPOFFSETN_Pos (0U)
  9036. #define OPAMP_LPOTR_TRIMLPOFFSETN_Msk (0x1FUL << OPAMP_LPOTR_TRIMLPOFFSETN_Pos)/*!< 0x0000001F */
  9037. #define OPAMP_LPOTR_TRIMLPOFFSETN OPAMP_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9038. #define OPAMP_LPOTR_TRIMLPOFFSETP_Pos (8U)
  9039. #define OPAMP_LPOTR_TRIMLPOFFSETP_Msk (0x1FUL << OPAMP_LPOTR_TRIMLPOFFSETP_Pos)/*!< 0x00001F00 */
  9040. #define OPAMP_LPOTR_TRIMLPOFFSETP OPAMP_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9041. /******************* Bit definition for OPAMP1_LPOTR register ****************/
  9042. #define OPAMP1_LPOTR_TRIMLPOFFSETN_Pos (0U)
  9043. #define OPAMP1_LPOTR_TRIMLPOFFSETN_Msk (0x1FUL << OPAMP1_LPOTR_TRIMLPOFFSETN_Pos)/*!< 0x0000001F */
  9044. #define OPAMP1_LPOTR_TRIMLPOFFSETN OPAMP1_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9045. #define OPAMP1_LPOTR_TRIMLPOFFSETP_Pos (8U)
  9046. #define OPAMP1_LPOTR_TRIMLPOFFSETP_Msk (0x1FUL << OPAMP1_LPOTR_TRIMLPOFFSETP_Pos)/*!< 0x00001F00 */
  9047. #define OPAMP1_LPOTR_TRIMLPOFFSETP OPAMP1_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9048. /******************* Bit definition for OPAMP2_LPOTR register ****************/
  9049. #define OPAMP2_LPOTR_TRIMLPOFFSETN_Pos (0U)
  9050. #define OPAMP2_LPOTR_TRIMLPOFFSETN_Msk (0x1FUL << OPAMP2_LPOTR_TRIMLPOFFSETN_Pos)/*!< 0x0000001F */
  9051. #define OPAMP2_LPOTR_TRIMLPOFFSETN OPAMP2_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  9052. #define OPAMP2_LPOTR_TRIMLPOFFSETP_Pos (8U)
  9053. #define OPAMP2_LPOTR_TRIMLPOFFSETP_Msk (0x1FUL << OPAMP2_LPOTR_TRIMLPOFFSETP_Pos)/*!< 0x00001F00 */
  9054. #define OPAMP2_LPOTR_TRIMLPOFFSETP OPAMP2_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  9055. /******************************************************************************/
  9056. /* */
  9057. /* Power Control */
  9058. /* */
  9059. /******************************************************************************/
  9060. /******************** Bit definition for PWR_CR1 register ********************/
  9061. #define PWR_CR1_LPMS_Pos (0U)
  9062. #define PWR_CR1_LPMS_Msk (0x7UL << PWR_CR1_LPMS_Pos) /*!< 0x00000007 */
  9063. #define PWR_CR1_LPMS PWR_CR1_LPMS_Msk /*!< Low-power mode selection field */
  9064. #define PWR_CR1_LPMS_0 (0x1UL << PWR_CR1_LPMS_Pos) /*!< 0x00000001 */
  9065. #define PWR_CR1_LPMS_1 (0x2UL << PWR_CR1_LPMS_Pos) /*!< 0x00000002 */
  9066. #define PWR_CR1_LPMS_2 (0x4UL << PWR_CR1_LPMS_Pos) /*!< 0x00000004 */
  9067. #define PWR_CR1_LPMS_STOP0 (0UL) /*!< Stop 0 mode */
  9068. #define PWR_CR1_LPMS_STOP1 PWR_CR1_LPMS_0 /*!< Stop 1 mode */
  9069. #define PWR_CR1_LPMS_STOP2 PWR_CR1_LPMS_1 /*!< Stop 2 mode */
  9070. #define PWR_CR1_LPMS_STANDBY (PWR_CR1_LPMS_1 | PWR_CR1_LPMS_0) /*!< Stand-by mode */
  9071. #define PWR_CR1_LPMS_SHUTDOWN PWR_CR1_LPMS_2 /*!< Shut-down mode */
  9072. #define PWR_CR1_DBP_Pos (8U)
  9073. #define PWR_CR1_DBP_Msk (0x1UL << PWR_CR1_DBP_Pos) /*!< 0x00000100 */
  9074. #define PWR_CR1_DBP PWR_CR1_DBP_Msk /*!< Disable Back-up domain Protection */
  9075. #define PWR_CR1_VOS_Pos (9U)
  9076. #define PWR_CR1_VOS_Msk (0x3UL << PWR_CR1_VOS_Pos) /*!< 0x0000C000 */
  9077. #define PWR_CR1_VOS PWR_CR1_VOS_Msk /*!< VOS[1:0] bits (Regulator voltage scaling output selection) */
  9078. #define PWR_CR1_VOS_0 (0x1UL << PWR_CR1_VOS_Pos) /*!< 0x00004000 */
  9079. #define PWR_CR1_VOS_1 (0x2UL << PWR_CR1_VOS_Pos) /*!< 0x00008000 */
  9080. #define PWR_CR1_LPR_Pos (14U)
  9081. #define PWR_CR1_LPR_Msk (0x1UL << PWR_CR1_LPR_Pos) /*!< 0x00004000 */
  9082. #define PWR_CR1_LPR PWR_CR1_LPR_Msk /*!< Regulator low-power mode */
  9083. /******************** Bit definition for PWR_CR2 register ********************/
  9084. #define PWR_CR2_PVDE_Pos (0U)
  9085. #define PWR_CR2_PVDE_Msk (0x1UL << PWR_CR2_PVDE_Pos) /*!< 0x00000001 */
  9086. #define PWR_CR2_PVDE PWR_CR2_PVDE_Msk /*!< Power Voltage Detector Enable */
  9087. #define PWR_CR2_PLS_Pos (1U)
  9088. #define PWR_CR2_PLS_Msk (0x7UL << PWR_CR2_PLS_Pos) /*!< 0x0000000E */
  9089. #define PWR_CR2_PLS PWR_CR2_PLS_Msk /*!< PVD level selection */
  9090. #define PWR_CR2_PLS_0 (0x1UL << PWR_CR2_PLS_Pos) /*!< 0x00000002 */
  9091. #define PWR_CR2_PLS_1 (0x2UL << PWR_CR2_PLS_Pos) /*!< 0x00000004 */
  9092. #define PWR_CR2_PLS_2 (0x4UL << PWR_CR2_PLS_Pos) /*!< 0x00000008 */
  9093. #define PWR_CR2_PLS_LEV0 (0UL) /*!< PVD level 0 */
  9094. #define PWR_CR2_PLS_LEV1 PWR_CR2_PLS_0 /*!< PVD level 1 */
  9095. #define PWR_CR2_PLS_LEV2 PWR_CR2_PLS_1 /*!< PVD level 2 */
  9096. #define PWR_CR2_PLS_LEV3 (PWR_CR2_PLS_1 | PWR_CR2_PLS_0) /*!< PVD level 3 */
  9097. #define PWR_CR2_PLS_LEV4 PWR_CR2_PLS_2 /*!< PVD level 4 */
  9098. #define PWR_CR2_PLS_LEV5 (PWR_CR2_PLS_2 | PWR_CR2_PLS_0) /*!< PVD level 5 */
  9099. #define PWR_CR2_PLS_LEV6 (PWR_CR2_PLS_2 | PWR_CR2_PLS_1) /*!< PVD level 6 */
  9100. #define PWR_CR2_PLS_LEV7 (PWR_CR2_PLS_2 | PWR_CR2_PLS_1 | PWR_CR2_PLS_0) /*!< PVD level 7 */
  9101. #define PWR_CR2_PVME_Pos (4U)
  9102. #define PWR_CR2_PVME_Msk (0xFUL << PWR_CR2_PVME_Pos) /*!< 0x000000F0 */
  9103. #define PWR_CR2_PVME PWR_CR2_PVME_Msk /*!< PVM bits field */
  9104. #define PWR_CR2_PVME1_Pos (4U)
  9105. #define PWR_CR2_PVME1_Msk (0x1UL << PWR_CR2_PVME1_Pos) /*!< 0x00000010 */
  9106. #define PWR_CR2_PVME1 PWR_CR2_PVME1_Msk /*!< PVM 1 Enable */
  9107. #define PWR_CR2_PVME2_Pos (5U)
  9108. #define PWR_CR2_PVME2_Msk (0x1UL << PWR_CR2_PVME2_Pos) /*!< 0x00000020 */
  9109. #define PWR_CR2_PVME2 PWR_CR2_PVME2_Msk /*!< PVM 2 Enable */
  9110. #define PWR_CR2_PVME3_Pos (6U)
  9111. #define PWR_CR2_PVME3_Msk (0x1UL << PWR_CR2_PVME3_Pos) /*!< 0x00000040 */
  9112. #define PWR_CR2_PVME3 PWR_CR2_PVME3_Msk /*!< PVM 3 Enable */
  9113. #define PWR_CR2_PVME4_Pos (7U)
  9114. #define PWR_CR2_PVME4_Msk (0x1UL << PWR_CR2_PVME4_Pos) /*!< 0x00000080 */
  9115. #define PWR_CR2_PVME4 PWR_CR2_PVME4_Msk /*!< PVM 4 Enable */
  9116. #define PWR_CR2_IOSV_Pos (9U)
  9117. #define PWR_CR2_IOSV_Msk (0x1UL << PWR_CR2_IOSV_Pos) /*!< 0x00000200 */
  9118. #define PWR_CR2_IOSV PWR_CR2_IOSV_Msk /*!< VDD IO2 independent I/Os Supply Valid */
  9119. #define PWR_CR2_USV_Pos (10U)
  9120. #define PWR_CR2_USV_Msk (0x1UL << PWR_CR2_USV_Pos) /*!< 0x00000400 */
  9121. #define PWR_CR2_USV PWR_CR2_USV_Msk /*!< VDD USB Supply Valid */
  9122. /******************** Bit definition for PWR_CR3 register ********************/
  9123. #define PWR_CR3_EWUP_Pos (0U)
  9124. #define PWR_CR3_EWUP_Msk (0x1FUL << PWR_CR3_EWUP_Pos) /*!< 0x0000001F */
  9125. #define PWR_CR3_EWUP PWR_CR3_EWUP_Msk /*!< Enable Wake-Up Pins */
  9126. #define PWR_CR3_EWUP1_Pos (0U)
  9127. #define PWR_CR3_EWUP1_Msk (0x1UL << PWR_CR3_EWUP1_Pos) /*!< 0x00000001 */
  9128. #define PWR_CR3_EWUP1 PWR_CR3_EWUP1_Msk /*!< Enable Wake-Up Pin 1 */
  9129. #define PWR_CR3_EWUP2_Pos (1U)
  9130. #define PWR_CR3_EWUP2_Msk (0x1UL << PWR_CR3_EWUP2_Pos) /*!< 0x00000002 */
  9131. #define PWR_CR3_EWUP2 PWR_CR3_EWUP2_Msk /*!< Enable Wake-Up Pin 2 */
  9132. #define PWR_CR3_EWUP3_Pos (2U)
  9133. #define PWR_CR3_EWUP3_Msk (0x1UL << PWR_CR3_EWUP3_Pos) /*!< 0x00000004 */
  9134. #define PWR_CR3_EWUP3 PWR_CR3_EWUP3_Msk /*!< Enable Wake-Up Pin 3 */
  9135. #define PWR_CR3_EWUP4_Pos (3U)
  9136. #define PWR_CR3_EWUP4_Msk (0x1UL << PWR_CR3_EWUP4_Pos) /*!< 0x00000008 */
  9137. #define PWR_CR3_EWUP4 PWR_CR3_EWUP4_Msk /*!< Enable Wake-Up Pin 4 */
  9138. #define PWR_CR3_EWUP5_Pos (4U)
  9139. #define PWR_CR3_EWUP5_Msk (0x1UL << PWR_CR3_EWUP5_Pos) /*!< 0x00000010 */
  9140. #define PWR_CR3_EWUP5 PWR_CR3_EWUP5_Msk /*!< Enable Wake-Up Pin 5 */
  9141. #define PWR_CR3_RRS_Pos (8U)
  9142. #define PWR_CR3_RRS_Msk (0x3UL << PWR_CR3_RRS_Pos) /*!< 0x00000100 */
  9143. #define PWR_CR3_RRS PWR_CR3_RRS_Msk /*!< RRS[1:0] bits (Ram retention in STANDBY mode)*/
  9144. #define PWR_CR3_RRS_0 (0x1UL << PWR_CR3_RRS_Pos) /*!< 0x00000100 */
  9145. #define PWR_CR3_RRS_1 (0x2UL << PWR_CR3_RRS_Pos) /*!< 0x00000200 */
  9146. #define PWR_CR3_APC_Pos (10U)
  9147. #define PWR_CR3_APC_Msk (0x1UL << PWR_CR3_APC_Pos) /*!< 0x00000400 */
  9148. #define PWR_CR3_APC PWR_CR3_APC_Msk /*!< Apply pull-up and pull-down configuration */
  9149. #define PWR_CR3_ULPMEN_Pos (11U)
  9150. #define PWR_CR3_ULPMEN_Msk (0x1UL << PWR_CR3_ULPMEN_Pos) /*!< 0x00000800 */
  9151. #define PWR_CR3_ULPMEN PWR_CR3_ULPMEN_Msk /*!< Ultra Low Power Mode Enable */
  9152. #define PWR_CR3_UCPD_STDBY_Pos (13U)
  9153. #define PWR_CR3_UCPD_STDBY_Msk (0x1UL << PWR_CR3_UCPD_STDBY_Pos) /*!< 0x00002000 */
  9154. #define PWR_CR3_UCPD_STDBY PWR_CR3_UCPD_STDBY_Msk /*!< UCPD Configuration memorize when enter in STANDBY */
  9155. #define PWR_CR3_UCPD_DBDIS_Pos (14U)
  9156. #define PWR_CR3_UCPD_DBDIS_Msk (0x1UL << PWR_CR3_UCPD_DBDIS_Pos) /*!< 0x00004000 */
  9157. #define PWR_CR3_UCPD_DBDIS PWR_CR3_UCPD_DBDIS_Msk /*!< Dead Battery Behavior Disable */
  9158. /******************** Bit definition for PWR_CR4 register ********************/
  9159. #define PWR_CR4_WUPP1_Pos (0U)
  9160. #define PWR_CR4_WUPP1_Msk (0x1UL << PWR_CR4_WUPP1_Pos) /*!< 0x00000001 */
  9161. #define PWR_CR4_WUPP1 PWR_CR4_WUPP1_Msk /*!< Wake-Up Pin 1 polarity */
  9162. #define PWR_CR4_WUPP2_Pos (1U)
  9163. #define PWR_CR4_WUPP2_Msk (0x1UL << PWR_CR4_WUPP2_Pos) /*!< 0x00000002 */
  9164. #define PWR_CR4_WUPP2 PWR_CR4_WUPP2_Msk /*!< Wake-Up Pin 2 polarity */
  9165. #define PWR_CR4_WUPP3_Pos (2U)
  9166. #define PWR_CR4_WUPP3_Msk (0x1UL << PWR_CR4_WUPP3_Pos) /*!< 0x00000004 */
  9167. #define PWR_CR4_WUPP3 PWR_CR4_WUPP3_Msk /*!< Wake-Up Pin 3 polarity */
  9168. #define PWR_CR4_WUPP4_Pos (3U)
  9169. #define PWR_CR4_WUPP4_Msk (0x1UL << PWR_CR4_WUPP4_Pos) /*!< 0x00000008 */
  9170. #define PWR_CR4_WUPP4 PWR_CR4_WUPP4_Msk /*!< Wake-Up Pin 4 polarity */
  9171. #define PWR_CR4_WUPP5_Pos (4U)
  9172. #define PWR_CR4_WUPP5_Msk (0x1UL << PWR_CR4_WUPP5_Pos) /*!< 0x00000010 */
  9173. #define PWR_CR4_WUPP5 PWR_CR4_WUPP5_Msk /*!< Wake-Up Pin 5 polarity */
  9174. #define PWR_CR4_VBE_Pos (8U)
  9175. #define PWR_CR4_VBE_Msk (0x1UL << PWR_CR4_VBE_Pos) /*!< 0x00000100 */
  9176. #define PWR_CR4_VBE PWR_CR4_VBE_Msk /*!< VBAT Battery charging Enable */
  9177. #define PWR_CR4_VBRS_Pos (9U)
  9178. #define PWR_CR4_VBRS_Msk (0x1UL << PWR_CR4_VBRS_Pos) /*!< 0x00000200 */
  9179. #define PWR_CR4_VBRS PWR_CR4_VBRS_Msk /*!< VBAT Battery charging Resistor Selection */
  9180. #define PWR_CR4_SMPSBYP_Pos (12U)
  9181. #define PWR_CR4_SMPSBYP_Msk (0x1UL << PWR_CR4_SMPSBYP_Pos) /*!< 0x00001000 */
  9182. #define PWR_CR4_SMPSBYP PWR_CR4_SMPSBYP_Msk /*!< SMPS Bypass mode */
  9183. #define PWR_CR4_EXTSMPSEN_Pos (13U)
  9184. #define PWR_CR4_EXTSMPSEN_Msk (0x1UL << PWR_CR4_EXTSMPSEN_Pos) /*!< 0x00002000 */
  9185. #define PWR_CR4_EXTSMPSEN PWR_CR4_EXTSMPSEN_Msk /*!< External SMPS mode */
  9186. #define PWR_CR4_SMPSFSTEN_Pos (14U)
  9187. #define PWR_CR4_SMPSFSTEN_Msk (0x1UL << PWR_CR4_SMPSFSTEN_Pos) /*!< 0x00004000 */
  9188. #define PWR_CR4_SMPSFSTEN PWR_CR4_SMPSFSTEN_Msk /*!< SMPS fast soft start */
  9189. #define PWR_CR4_SMPSLPEN_Pos (15U)
  9190. #define PWR_CR4_SMPSLPEN_Msk (0x1UL << PWR_CR4_SMPSLPEN_Pos) /*!< 0x00008000 */
  9191. #define PWR_CR4_SMPSLPEN PWR_CR4_SMPSLPEN_Msk /*!< SMPS low-power mode */
  9192. /******************** Bit definition for PWR_SR1 register ********************/
  9193. #define PWR_SR1_WUF_Pos (0U)
  9194. #define PWR_SR1_WUF_Msk (0x1FUL << PWR_SR1_WUF_Pos) /*!< 0x0000001F */
  9195. #define PWR_SR1_WUF PWR_SR1_WUF_Msk /*!< Wake-up Flags */
  9196. #define PWR_SR1_WUF1_Pos (0U)
  9197. #define PWR_SR1_WUF1_Msk (0x1UL << PWR_SR1_WUF1_Pos) /*!< 0x00000001 */
  9198. #define PWR_SR1_WUF1 PWR_SR1_WUF1_Msk /*!< Wake-up Flag 1 */
  9199. #define PWR_SR1_WUF2_Pos (1U)
  9200. #define PWR_SR1_WUF2_Msk (0x1UL << PWR_SR1_WUF2_Pos) /*!< 0x00000002 */
  9201. #define PWR_SR1_WUF2 PWR_SR1_WUF2_Msk /*!< Wake-up Flag 2 */
  9202. #define PWR_SR1_WUF3_Pos (2U)
  9203. #define PWR_SR1_WUF3_Msk (0x1UL << PWR_SR1_WUF3_Pos) /*!< 0x00000004 */
  9204. #define PWR_SR1_WUF3 PWR_SR1_WUF3_Msk /*!< Wake-up Flag 3 */
  9205. #define PWR_SR1_WUF4_Pos (3U)
  9206. #define PWR_SR1_WUF4_Msk (0x1UL << PWR_SR1_WUF4_Pos) /*!< 0x00000008 */
  9207. #define PWR_SR1_WUF4 PWR_SR1_WUF4_Msk /*!< Wake-up Flag 4 */
  9208. #define PWR_SR1_WUF5_Pos (4U)
  9209. #define PWR_SR1_WUF5_Msk (0x1UL << PWR_SR1_WUF5_Pos) /*!< 0x00000010 */
  9210. #define PWR_SR1_WUF5 PWR_SR1_WUF5_Msk /*!< Wake-up Flag 5 */
  9211. #define PWR_SR1_SBF_Pos (8U)
  9212. #define PWR_SR1_SBF_Msk (0x1UL << PWR_SR1_SBF_Pos) /*!< 0x00000100 */
  9213. #define PWR_SR1_SBF PWR_SR1_SBF_Msk /*!< Stand-By Flag */
  9214. #define PWR_SR1_SMPSBYPRDY_Pos (12U)
  9215. #define PWR_SR1_SMPSBYPRDY_Msk (0x1UL << PWR_SR1_SMPSBYPRDY_Pos) /*!< 0x00001000 */
  9216. #define PWR_SR1_SMPSBYPRDY PWR_SR1_SMPSBYPRDY_Msk /*!< SMPS Bypass ready */
  9217. #define PWR_SR1_EXTSMPSRDY_Pos (13U)
  9218. #define PWR_SR1_EXTSMPSRDY_Msk (0x1UL << PWR_SR1_EXTSMPSRDY_Pos) /*!< 0x00002000 */
  9219. #define PWR_SR1_EXTSMPSRDY PWR_SR1_EXTSMPSRDY_Msk /*!< External SMPS mode ready */
  9220. #define PWR_SR1_SMPSHPRDY_Pos (15U)
  9221. #define PWR_SR1_SMPSHPRDY_Msk (0x1UL << PWR_SR1_SMPSHPRDY_Pos) /*!< 0x00008000 */
  9222. #define PWR_SR1_SMPSHPRDY PWR_SR1_SMPSHPRDY_Msk /*!< SMPS High-power mode ready */
  9223. /******************** Bit definition for PWR_SR2 register ********************/
  9224. #define PWR_SR2_REGLPS_Pos (8U)
  9225. #define PWR_SR2_REGLPS_Msk (0x1UL << PWR_SR2_REGLPS_Pos) /*!< 0x00000100 */
  9226. #define PWR_SR2_REGLPS PWR_SR2_REGLPS_Msk /*!< Low-power Regulator Started */
  9227. #define PWR_SR2_REGLPF_Pos (9U)
  9228. #define PWR_SR2_REGLPF_Msk (0x1UL << PWR_SR2_REGLPF_Pos) /*!< 0x00000200 */
  9229. #define PWR_SR2_REGLPF PWR_SR2_REGLPF_Msk /*!< Low-power Regulator Flag */
  9230. #define PWR_SR2_VOSF_Pos (10U)
  9231. #define PWR_SR2_VOSF_Msk (0x1UL << PWR_SR2_VOSF_Pos) /*!< 0x00000400 */
  9232. #define PWR_SR2_VOSF PWR_SR2_VOSF_Msk /*!< Voltage Scaling Flag */
  9233. #define PWR_SR2_PVDO_Pos (11U)
  9234. #define PWR_SR2_PVDO_Msk (0x1UL << PWR_SR2_PVDO_Pos) /*!< 0x00000800 */
  9235. #define PWR_SR2_PVDO PWR_SR2_PVDO_Msk /*!< Power Voltage Detector Output */
  9236. #define PWR_SR2_PVMO1_Pos (12U)
  9237. #define PWR_SR2_PVMO1_Msk (0x1UL << PWR_SR2_PVMO1_Pos) /*!< 0x00001000 */
  9238. #define PWR_SR2_PVMO1 PWR_SR2_PVMO1_Msk /*!< Peripheral Voltage Monitoring Output 1 */
  9239. #define PWR_SR2_PVMO2_Pos (13U)
  9240. #define PWR_SR2_PVMO2_Msk (0x1UL << PWR_SR2_PVMO2_Pos) /*!< 0x00002000 */
  9241. #define PWR_SR2_PVMO2 PWR_SR2_PVMO2_Msk /*!< Peripheral Voltage Monitoring Output 2 */
  9242. #define PWR_SR2_PVMO3_Pos (14U)
  9243. #define PWR_SR2_PVMO3_Msk (0x1UL << PWR_SR2_PVMO3_Pos) /*!< 0x00004000 */
  9244. #define PWR_SR2_PVMO3 PWR_SR2_PVMO3_Msk /*!< Peripheral Voltage Monitoring Output 3 */
  9245. #define PWR_SR2_PVMO4_Pos (15U)
  9246. #define PWR_SR2_PVMO4_Msk (0x1UL << PWR_SR2_PVMO4_Pos) /*!< 0x00008000 */
  9247. #define PWR_SR2_PVMO4 PWR_SR2_PVMO4_Msk /*!< Peripheral Voltage Monitoring Output 4 */
  9248. /******************** Bit definition for PWR_SCR register ********************/
  9249. #define PWR_SCR_CWUF_Pos (0U)
  9250. #define PWR_SCR_CWUF_Msk (0x1FUL << PWR_SCR_CWUF_Pos) /*!< 0x0000001F */
  9251. #define PWR_SCR_CWUF PWR_SCR_CWUF_Msk /*!< Clear Wake-up Flags */
  9252. #define PWR_SCR_CWUF1_Pos (0U)
  9253. #define PWR_SCR_CWUF1_Msk (0x1UL << PWR_SCR_CWUF1_Pos) /*!< 0x00000001 */
  9254. #define PWR_SCR_CWUF1 PWR_SCR_CWUF1_Msk /*!< Clear Wake-up Flag 1 */
  9255. #define PWR_SCR_CWUF2_Pos (1U)
  9256. #define PWR_SCR_CWUF2_Msk (0x1UL << PWR_SCR_CWUF2_Pos) /*!< 0x00000002 */
  9257. #define PWR_SCR_CWUF2 PWR_SCR_CWUF2_Msk /*!< Clear Wake-up Flag 2 */
  9258. #define PWR_SCR_CWUF3_Pos (2U)
  9259. #define PWR_SCR_CWUF3_Msk (0x1UL << PWR_SCR_CWUF3_Pos) /*!< 0x00000004 */
  9260. #define PWR_SCR_CWUF3 PWR_SCR_CWUF3_Msk /*!< Clear Wake-up Flag 3 */
  9261. #define PWR_SCR_CWUF4_Pos (3U)
  9262. #define PWR_SCR_CWUF4_Msk (0x1UL << PWR_SCR_CWUF4_Pos) /*!< 0x00000008 */
  9263. #define PWR_SCR_CWUF4 PWR_SCR_CWUF4_Msk /*!< Clear Wake-up Flag 4 */
  9264. #define PWR_SCR_CWUF5_Pos (4U)
  9265. #define PWR_SCR_CWUF5_Msk (0x1UL << PWR_SCR_CWUF5_Pos) /*!< 0x00000010 */
  9266. #define PWR_SCR_CWUF5 PWR_SCR_CWUF5_Msk /*!< Clear Wake-up Flag 5 */
  9267. #define PWR_SCR_CSBF_Pos (8U)
  9268. #define PWR_SCR_CSBF_Msk (0x1UL << PWR_SCR_CSBF_Pos) /*!< 0x00000100 */
  9269. #define PWR_SCR_CSBF PWR_SCR_CSBF_Msk /*!< Clear Stand-By Flag */
  9270. /******************** Bit definition for PWR_PUCRA register ********************/
  9271. #define PWR_PUCRA_PU0_Pos (0U)
  9272. #define PWR_PUCRA_PU0_Msk (0x1UL << PWR_PUCRA_PU0_Pos) /*!< 0x00000001 */
  9273. #define PWR_PUCRA_PU0 PWR_PUCRA_PU0_Msk /*!< Port PA0 Pull-Up set */
  9274. #define PWR_PUCRA_PU1_Pos (1U)
  9275. #define PWR_PUCRA_PU1_Msk (0x1UL << PWR_PUCRA_PU1_Pos) /*!< 0x00000002 */
  9276. #define PWR_PUCRA_PU1 PWR_PUCRA_PU1_Msk /*!< Port PA1 Pull-Up set */
  9277. #define PWR_PUCRA_PU2_Pos (2U)
  9278. #define PWR_PUCRA_PU2_Msk (0x1UL << PWR_PUCRA_PU2_Pos) /*!< 0x00000004 */
  9279. #define PWR_PUCRA_PU2 PWR_PUCRA_PU2_Msk /*!< Port PA2 Pull-Up set */
  9280. #define PWR_PUCRA_PU3_Pos (3U)
  9281. #define PWR_PUCRA_PU3_Msk (0x1UL << PWR_PUCRA_PU3_Pos) /*!< 0x00000008 */
  9282. #define PWR_PUCRA_PU3 PWR_PUCRA_PU3_Msk /*!< Port PA3 Pull-Up set */
  9283. #define PWR_PUCRA_PU4_Pos (4U)
  9284. #define PWR_PUCRA_PU4_Msk (0x1UL << PWR_PUCRA_PU4_Pos) /*!< 0x00000010 */
  9285. #define PWR_PUCRA_PU4 PWR_PUCRA_PU4_Msk /*!< Port PA4 Pull-Up set */
  9286. #define PWR_PUCRA_PU5_Pos (5U)
  9287. #define PWR_PUCRA_PU5_Msk (0x1UL << PWR_PUCRA_PU5_Pos) /*!< 0x00000020 */
  9288. #define PWR_PUCRA_PU5 PWR_PUCRA_PU5_Msk /*!< Port PA5 Pull-Up set */
  9289. #define PWR_PUCRA_PU6_Pos (6U)
  9290. #define PWR_PUCRA_PU6_Msk (0x1UL << PWR_PUCRA_PU6_Pos) /*!< 0x00000040 */
  9291. #define PWR_PUCRA_PU6 PWR_PUCRA_PU6_Msk /*!< Port PA6 Pull-Up set */
  9292. #define PWR_PUCRA_PU7_Pos (7U)
  9293. #define PWR_PUCRA_PU7_Msk (0x1UL << PWR_PUCRA_PU7_Pos) /*!< 0x00000080 */
  9294. #define PWR_PUCRA_PU7 PWR_PUCRA_PU7_Msk /*!< Port PA7 Pull-Up set */
  9295. #define PWR_PUCRA_PU8_Pos (8U)
  9296. #define PWR_PUCRA_PU8_Msk (0x1UL << PWR_PUCRA_PU8_Pos) /*!< 0x00000100 */
  9297. #define PWR_PUCRA_PU8 PWR_PUCRA_PU8_Msk /*!< Port PA8 Pull-Up set */
  9298. #define PWR_PUCRA_PU9_Pos (9U)
  9299. #define PWR_PUCRA_PU9_Msk (0x1UL << PWR_PUCRA_PU9_Pos) /*!< 0x00000200 */
  9300. #define PWR_PUCRA_PU9 PWR_PUCRA_PU9_Msk /*!< Port PA9 Pull-Up set */
  9301. #define PWR_PUCRA_PU10_Pos (10U)
  9302. #define PWR_PUCRA_PU10_Msk (0x1UL << PWR_PUCRA_PU10_Pos) /*!< 0x00000400 */
  9303. #define PWR_PUCRA_PU10 PWR_PUCRA_PU10_Msk /*!< Port PA10 Pull-Up set */
  9304. #define PWR_PUCRA_PU11_Pos (11U)
  9305. #define PWR_PUCRA_PU11_Msk (0x1UL << PWR_PUCRA_PU11_Pos) /*!< 0x00000800 */
  9306. #define PWR_PUCRA_PU11 PWR_PUCRA_PU11_Msk /*!< Port PA11 Pull-Up set */
  9307. #define PWR_PUCRA_PU12_Pos (12U)
  9308. #define PWR_PUCRA_PU12_Msk (0x1UL << PWR_PUCRA_PU12_Pos) /*!< 0x00001000 */
  9309. #define PWR_PUCRA_PU12 PWR_PUCRA_PU12_Msk /*!< Port PA12 Pull-Up set */
  9310. #define PWR_PUCRA_PU13_Pos (13U)
  9311. #define PWR_PUCRA_PU13_Msk (0x1UL << PWR_PUCRA_PU13_Pos) /*!< 0x00002000 */
  9312. #define PWR_PUCRA_PU13 PWR_PUCRA_PU13_Msk /*!< Port PA13 Pull-Up set */
  9313. #define PWR_PUCRA_PU14_Pos (14U)
  9314. #define PWR_PUCRA_PU14_Msk (0x1UL << PWR_PUCRA_PU14_Pos) /*!< 0x00004000 */
  9315. #define PWR_PUCRA_PU14 PWR_PUCRA_PU14_Msk /*!< Port PA14 Pull-Up set */
  9316. #define PWR_PUCRA_PU15_Pos (15U)
  9317. #define PWR_PUCRA_PU15_Msk (0x1UL << PWR_PUCRA_PU15_Pos) /*!< 0x00008000 */
  9318. #define PWR_PUCRA_PU15 PWR_PUCRA_PU15_Msk /*!< Port PA15 Pull-Up set */
  9319. /******************** Bit definition for PWR_PDCRA register ********************/
  9320. #define PWR_PDCRA_PD0_Pos (0U)
  9321. #define PWR_PDCRA_PD0_Msk (0x1UL << PWR_PDCRA_PD0_Pos) /*!< 0x00000001 */
  9322. #define PWR_PDCRA_PD0 PWR_PDCRA_PD0_Msk /*!< Port PA0 Pull-Down set */
  9323. #define PWR_PDCRA_PD1_Pos (1U)
  9324. #define PWR_PDCRA_PD1_Msk (0x1UL << PWR_PDCRA_PD1_Pos) /*!< 0x00000002 */
  9325. #define PWR_PDCRA_PD1 PWR_PDCRA_PD1_Msk /*!< Port PA1 Pull-Down set */
  9326. #define PWR_PDCRA_PD2_Pos (2U)
  9327. #define PWR_PDCRA_PD2_Msk (0x1UL << PWR_PDCRA_PD2_Pos) /*!< 0x00000004 */
  9328. #define PWR_PDCRA_PD2 PWR_PDCRA_PD2_Msk /*!< Port PA2 Pull-Down set */
  9329. #define PWR_PDCRA_PD3_Pos (3U)
  9330. #define PWR_PDCRA_PD3_Msk (0x1UL << PWR_PDCRA_PD3_Pos) /*!< 0x00000008 */
  9331. #define PWR_PDCRA_PD3 PWR_PDCRA_PD3_Msk /*!< Port PA3 Pull-Down set */
  9332. #define PWR_PDCRA_PD4_Pos (4U)
  9333. #define PWR_PDCRA_PD4_Msk (0x1UL << PWR_PDCRA_PD4_Pos) /*!< 0x00000010 */
  9334. #define PWR_PDCRA_PD4 PWR_PDCRA_PD4_Msk /*!< Port PA4 Pull-Down set */
  9335. #define PWR_PDCRA_PD5_Pos (5U)
  9336. #define PWR_PDCRA_PD5_Msk (0x1UL << PWR_PDCRA_PD5_Pos) /*!< 0x00000020 */
  9337. #define PWR_PDCRA_PD5 PWR_PDCRA_PD5_Msk /*!< Port PA5 Pull-Down set */
  9338. #define PWR_PDCRA_PD6_Pos (6U)
  9339. #define PWR_PDCRA_PD6_Msk (0x1UL << PWR_PDCRA_PD6_Pos) /*!< 0x00000040 */
  9340. #define PWR_PDCRA_PD6 PWR_PDCRA_PD6_Msk /*!< Port PA6 Pull-Down set */
  9341. #define PWR_PDCRA_PD7_Pos (7U)
  9342. #define PWR_PDCRA_PD7_Msk (0x1UL << PWR_PDCRA_PD7_Pos) /*!< 0x00000080 */
  9343. #define PWR_PDCRA_PD7 PWR_PDCRA_PD7_Msk /*!< Port PA7 Pull-Down set */
  9344. #define PWR_PDCRA_PD8_Pos (8U)
  9345. #define PWR_PDCRA_PD8_Msk (0x1UL << PWR_PDCRA_PD8_Pos) /*!< 0x00000100 */
  9346. #define PWR_PDCRA_PD8 PWR_PDCRA_PD8_Msk /*!< Port PA8 Pull-Down set */
  9347. #define PWR_PDCRA_PD9_Pos (9U)
  9348. #define PWR_PDCRA_PD9_Msk (0x1UL << PWR_PDCRA_PD9_Pos) /*!< 0x00000200 */
  9349. #define PWR_PDCRA_PD9 PWR_PDCRA_PD9_Msk /*!< Port PA9 Pull-Down set */
  9350. #define PWR_PDCRA_PD10_Pos (10U)
  9351. #define PWR_PDCRA_PD10_Msk (0x1UL << PWR_PDCRA_PD10_Pos) /*!< 0x00000400 */
  9352. #define PWR_PDCRA_PD10 PWR_PDCRA_PD10_Msk /*!< Port PA10 Pull-Down set */
  9353. #define PWR_PDCRA_PD11_Pos (11U)
  9354. #define PWR_PDCRA_PD11_Msk (0x1UL << PWR_PDCRA_PD11_Pos) /*!< 0x00000800 */
  9355. #define PWR_PDCRA_PD11 PWR_PDCRA_PD11_Msk /*!< Port PA11 Pull-Down set */
  9356. #define PWR_PDCRA_PD12_Pos (12U)
  9357. #define PWR_PDCRA_PD12_Msk (0x1UL << PWR_PDCRA_PD12_Pos) /*!< 0x00001000 */
  9358. #define PWR_PDCRA_PD12 PWR_PDCRA_PD12_Msk /*!< Port PA12 Pull-Down set */
  9359. #define PWR_PDCRA_PD13_Pos (13U)
  9360. #define PWR_PDCRA_PD13_Msk (0x1UL << PWR_PDCRA_PD13_Pos) /*!< 0x00002000 */
  9361. #define PWR_PDCRA_PD13 PWR_PDCRA_PD13_Msk /*!< Port PA13 Pull-Down set */
  9362. #define PWR_PDCRA_PD14_Pos (14U)
  9363. #define PWR_PDCRA_PD14_Msk (0x1UL << PWR_PDCRA_PD14_Pos) /*!< 0x00004000 */
  9364. #define PWR_PDCRA_PD14 PWR_PDCRA_PD14_Msk /*!< Port PA14 Pull-Down set */
  9365. #define PWR_PDCRA_PD15_Pos (15U)
  9366. #define PWR_PDCRA_PD15_Msk (0x1UL << PWR_PDCRA_PD15_Pos) /*!< 0x00008000 */
  9367. #define PWR_PDCRA_PD15 PWR_PDCRA_PD15_Msk /*!< Port PA15 Pull-Down set */
  9368. /******************** Bit definition for PWR_PUCRB register ********************/
  9369. #define PWR_PUCRB_PU0_Pos (0U)
  9370. #define PWR_PUCRB_PU0_Msk (0x1UL << PWR_PUCRB_PU0_Pos) /*!< 0x00000001 */
  9371. #define PWR_PUCRB_PU0 PWR_PUCRB_PU0_Msk /*!< Port PB0 Pull-Up set */
  9372. #define PWR_PUCRB_PU1_Pos (1U)
  9373. #define PWR_PUCRB_PU1_Msk (0x1UL << PWR_PUCRB_PU1_Pos) /*!< 0x00000002 */
  9374. #define PWR_PUCRB_PU1 PWR_PUCRB_PU1_Msk /*!< Port PB1 Pull-Up set */
  9375. #define PWR_PUCRB_PU2_Pos (2U)
  9376. #define PWR_PUCRB_PU2_Msk (0x1UL << PWR_PUCRB_PU2_Pos) /*!< 0x00000004 */
  9377. #define PWR_PUCRB_PU2 PWR_PUCRB_PU2_Msk /*!< Port PB2 Pull-Up set */
  9378. #define PWR_PUCRB_PU3_Pos (3U)
  9379. #define PWR_PUCRB_PU3_Msk (0x1UL << PWR_PUCRB_PU3_Pos) /*!< 0x00000008 */
  9380. #define PWR_PUCRB_PU3 PWR_PUCRB_PU3_Msk /*!< Port PB3 Pull-Up set */
  9381. #define PWR_PUCRB_PU4_Pos (4U)
  9382. #define PWR_PUCRB_PU4_Msk (0x1UL << PWR_PUCRB_PU4_Pos) /*!< 0x00000010 */
  9383. #define PWR_PUCRB_PU4 PWR_PUCRB_PU4_Msk /*!< Port PB4 Pull-Up set */
  9384. #define PWR_PUCRB_PU5_Pos (5U)
  9385. #define PWR_PUCRB_PU5_Msk (0x1UL << PWR_PUCRB_PU5_Pos) /*!< 0x00000020 */
  9386. #define PWR_PUCRB_PU5 PWR_PUCRB_PU5_Msk /*!< Port PB5 Pull-Up set */
  9387. #define PWR_PUCRB_PU6_Pos (6U)
  9388. #define PWR_PUCRB_PU6_Msk (0x1UL << PWR_PUCRB_PU6_Pos) /*!< 0x00000040 */
  9389. #define PWR_PUCRB_PU6 PWR_PUCRB_PU6_Msk /*!< Port PB6 Pull-Up set */
  9390. #define PWR_PUCRB_PU7_Pos (7U)
  9391. #define PWR_PUCRB_PU7_Msk (0x1UL << PWR_PUCRB_PU7_Pos) /*!< 0x00000080 */
  9392. #define PWR_PUCRB_PU7 PWR_PUCRB_PU7_Msk /*!< Port PB7 Pull-Up set */
  9393. #define PWR_PUCRB_PU8_Pos (8U)
  9394. #define PWR_PUCRB_PU8_Msk (0x1UL << PWR_PUCRB_PU8_Pos) /*!< 0x00000100 */
  9395. #define PWR_PUCRB_PU8 PWR_PUCRB_PU8_Msk /*!< Port PB8 Pull-Up set */
  9396. #define PWR_PUCRB_PU9_Pos (9U)
  9397. #define PWR_PUCRB_PU9_Msk (0x1UL << PWR_PUCRB_PU9_Pos) /*!< 0x00000200 */
  9398. #define PWR_PUCRB_PU9 PWR_PUCRB_PU9_Msk /*!< Port PB9 Pull-Up set */
  9399. #define PWR_PUCRB_PU10_Pos (10U)
  9400. #define PWR_PUCRB_PU10_Msk (0x1UL << PWR_PUCRB_PU10_Pos) /*!< 0x00000400 */
  9401. #define PWR_PUCRB_PU10 PWR_PUCRB_PU10_Msk /*!< Port PB10 Pull-Up set */
  9402. #define PWR_PUCRB_PU11_Pos (11U)
  9403. #define PWR_PUCRB_PU11_Msk (0x1UL << PWR_PUCRB_PU11_Pos) /*!< 0x00000800 */
  9404. #define PWR_PUCRB_PU11 PWR_PUCRB_PU11_Msk /*!< Port PB11 Pull-Up set */
  9405. #define PWR_PUCRB_PU12_Pos (12U)
  9406. #define PWR_PUCRB_PU12_Msk (0x1UL << PWR_PUCRB_PU12_Pos) /*!< 0x00001000 */
  9407. #define PWR_PUCRB_PU12 PWR_PUCRB_PU12_Msk /*!< Port PB12 Pull-Up set */
  9408. #define PWR_PUCRB_PU13_Pos (13U)
  9409. #define PWR_PUCRB_PU13_Msk (0x1UL << PWR_PUCRB_PU13_Pos) /*!< 0x00002000 */
  9410. #define PWR_PUCRB_PU13 PWR_PUCRB_PU13_Msk /*!< Port PB13 Pull-Up set */
  9411. #define PWR_PUCRB_PU14_Pos (14U)
  9412. #define PWR_PUCRB_PU14_Msk (0x1UL << PWR_PUCRB_PU14_Pos) /*!< 0x00004000 */
  9413. #define PWR_PUCRB_PU14 PWR_PUCRB_PU14_Msk /*!< Port PB14 Pull-Up set */
  9414. #define PWR_PUCRB_PU15_Pos (15U)
  9415. #define PWR_PUCRB_PU15_Msk (0x1UL << PWR_PUCRB_PU15_Pos) /*!< 0x00008000 */
  9416. #define PWR_PUCRB_PU15 PWR_PUCRB_PU15_Msk /*!< Port PB15 Pull-Up set */
  9417. /******************** Bit definition for PWR_PDCRB register ********************/
  9418. #define PWR_PDCRB_PD0_Pos (0U)
  9419. #define PWR_PDCRB_PD0_Msk (0x1UL << PWR_PDCRB_PD0_Pos) /*!< 0x00000001 */
  9420. #define PWR_PDCRB_PD0 PWR_PDCRB_PD0_Msk /*!< Port PB0 Pull-Down set */
  9421. #define PWR_PDCRB_PD1_Pos (1U)
  9422. #define PWR_PDCRB_PD1_Msk (0x1UL << PWR_PDCRB_PD1_Pos) /*!< 0x00000002 */
  9423. #define PWR_PDCRB_PD1 PWR_PDCRB_PD1_Msk /*!< Port PB1 Pull-Down set */
  9424. #define PWR_PDCRB_PD2_Pos (2U)
  9425. #define PWR_PDCRB_PD2_Msk (0x1UL << PWR_PDCRB_PD2_Pos) /*!< 0x00000004 */
  9426. #define PWR_PDCRB_PD2 PWR_PDCRB_PD2_Msk /*!< Port PB2 Pull-Down set */
  9427. #define PWR_PDCRB_PD3_Pos (3U)
  9428. #define PWR_PDCRB_PD3_Msk (0x1UL << PWR_PDCRB_PD3_Pos) /*!< 0x00000008 */
  9429. #define PWR_PDCRB_PD3 PWR_PDCRB_PD3_Msk /*!< Port PB3 Pull-Down set */
  9430. #define PWR_PDCRB_PD4_Pos (4U)
  9431. #define PWR_PDCRB_PD4_Msk (0x1UL << PWR_PDCRB_PD4_Pos) /*!< 0x00000010 */
  9432. #define PWR_PDCRB_PD4 PWR_PDCRB_PD4_Msk /*!< Port PB4 Pull-Down set */
  9433. #define PWR_PDCRB_PD5_Pos (5U)
  9434. #define PWR_PDCRB_PD5_Msk (0x1UL << PWR_PDCRB_PD5_Pos) /*!< 0x00000020 */
  9435. #define PWR_PDCRB_PD5 PWR_PDCRB_PD5_Msk /*!< Port PB5 Pull-Down set */
  9436. #define PWR_PDCRB_PD6_Pos (6U)
  9437. #define PWR_PDCRB_PD6_Msk (0x1UL << PWR_PDCRB_PD6_Pos) /*!< 0x00000040 */
  9438. #define PWR_PDCRB_PD6 PWR_PDCRB_PD6_Msk /*!< Port PB6 Pull-Down set */
  9439. #define PWR_PDCRB_PD7_Pos (7U)
  9440. #define PWR_PDCRB_PD7_Msk (0x1UL << PWR_PDCRB_PD7_Pos) /*!< 0x00000080 */
  9441. #define PWR_PDCRB_PD7 PWR_PDCRB_PD7_Msk /*!< Port PB7 Pull-Down set */
  9442. #define PWR_PDCRB_PD8_Pos (8U)
  9443. #define PWR_PDCRB_PD8_Msk (0x1UL << PWR_PDCRB_PD8_Pos) /*!< 0x00000100 */
  9444. #define PWR_PDCRB_PD8 PWR_PDCRB_PD8_Msk /*!< Port PB8 Pull-Down set */
  9445. #define PWR_PDCRB_PD9_Pos (9U)
  9446. #define PWR_PDCRB_PD9_Msk (0x1UL << PWR_PDCRB_PD9_Pos) /*!< 0x00000200 */
  9447. #define PWR_PDCRB_PD9 PWR_PDCRB_PD9_Msk /*!< Port PB9 Pull-Down set */
  9448. #define PWR_PDCRB_PD10_Pos (10U)
  9449. #define PWR_PDCRB_PD10_Msk (0x1UL << PWR_PDCRB_PD10_Pos) /*!< 0x00000400 */
  9450. #define PWR_PDCRB_PD10 PWR_PDCRB_PD10_Msk /*!< Port PB10 Pull-Down set */
  9451. #define PWR_PDCRB_PD11_Pos (11U)
  9452. #define PWR_PDCRB_PD11_Msk (0x1UL << PWR_PDCRB_PD11_Pos) /*!< 0x00000800 */
  9453. #define PWR_PDCRB_PD11 PWR_PDCRB_PD11_Msk /*!< Port PB11 Pull-Down set */
  9454. #define PWR_PDCRB_PD12_Pos (12U)
  9455. #define PWR_PDCRB_PD12_Msk (0x1UL << PWR_PDCRB_PD12_Pos) /*!< 0x00001000 */
  9456. #define PWR_PDCRB_PD12 PWR_PDCRB_PD12_Msk /*!< Port PB12 Pull-Down set */
  9457. #define PWR_PDCRB_PD13_Pos (13U)
  9458. #define PWR_PDCRB_PD13_Msk (0x1UL << PWR_PDCRB_PD13_Pos) /*!< 0x00002000 */
  9459. #define PWR_PDCRB_PD13 PWR_PDCRB_PD13_Msk /*!< Port PB13 Pull-Down set */
  9460. #define PWR_PDCRB_PD14_Pos (14U)
  9461. #define PWR_PDCRB_PD14_Msk (0x1UL << PWR_PDCRB_PD14_Pos) /*!< 0x00004000 */
  9462. #define PWR_PDCRB_PD14 PWR_PDCRB_PD14_Msk /*!< Port PB14 Pull-Down set */
  9463. #define PWR_PDCRB_PD15_Pos (15U)
  9464. #define PWR_PDCRB_PD15_Msk (0x1UL << PWR_PDCRB_PD15_Pos) /*!< 0x00008000 */
  9465. #define PWR_PDCRB_PD15 PWR_PDCRB_PD15_Msk /*!< Port PB15 Pull-Down set */
  9466. /******************** Bit definition for PWR_PUCRC register ********************/
  9467. #define PWR_PUCRC_PU0_Pos (0U)
  9468. #define PWR_PUCRC_PU0_Msk (0x1UL << PWR_PUCRC_PU0_Pos) /*!< 0x00000001 */
  9469. #define PWR_PUCRC_PU0 PWR_PUCRC_PU0_Msk /*!< Port PC0 Pull-Up set */
  9470. #define PWR_PUCRC_PU1_Pos (1U)
  9471. #define PWR_PUCRC_PU1_Msk (0x1UL << PWR_PUCRC_PU1_Pos) /*!< 0x00000002 */
  9472. #define PWR_PUCRC_PU1 PWR_PUCRC_PU1_Msk /*!< Port PC1 Pull-Up set */
  9473. #define PWR_PUCRC_PU2_Pos (2U)
  9474. #define PWR_PUCRC_PU2_Msk (0x1UL << PWR_PUCRC_PU2_Pos) /*!< 0x00000004 */
  9475. #define PWR_PUCRC_PU2 PWR_PUCRC_PU2_Msk /*!< Port PC2 Pull-Up set */
  9476. #define PWR_PUCRC_PU3_Pos (3U)
  9477. #define PWR_PUCRC_PU3_Msk (0x1UL << PWR_PUCRC_PU3_Pos) /*!< 0x00000008 */
  9478. #define PWR_PUCRC_PU3 PWR_PUCRC_PU3_Msk /*!< Port PC3 Pull-Up set */
  9479. #define PWR_PUCRC_PU4_Pos (4U)
  9480. #define PWR_PUCRC_PU4_Msk (0x1UL << PWR_PUCRC_PU4_Pos) /*!< 0x00000010 */
  9481. #define PWR_PUCRC_PU4 PWR_PUCRC_PU4_Msk /*!< Port PC4 Pull-Up set */
  9482. #define PWR_PUCRC_PU5_Pos (5U)
  9483. #define PWR_PUCRC_PU5_Msk (0x1UL << PWR_PUCRC_PU5_Pos) /*!< 0x00000020 */
  9484. #define PWR_PUCRC_PU5 PWR_PUCRC_PU5_Msk /*!< Port PC5 Pull-Up set */
  9485. #define PWR_PUCRC_PU6_Pos (6U)
  9486. #define PWR_PUCRC_PU6_Msk (0x1UL << PWR_PUCRC_PU6_Pos) /*!< 0x00000040 */
  9487. #define PWR_PUCRC_PU6 PWR_PUCRC_PU6_Msk /*!< Port PC6 Pull-Up set */
  9488. #define PWR_PUCRC_PU7_Pos (7U)
  9489. #define PWR_PUCRC_PU7_Msk (0x1UL << PWR_PUCRC_PU7_Pos) /*!< 0x00000080 */
  9490. #define PWR_PUCRC_PU7 PWR_PUCRC_PU7_Msk /*!< Port PC7 Pull-Up set */
  9491. #define PWR_PUCRC_PU8_Pos (8U)
  9492. #define PWR_PUCRC_PU8_Msk (0x1UL << PWR_PUCRC_PU8_Pos) /*!< 0x00000100 */
  9493. #define PWR_PUCRC_PU8 PWR_PUCRC_PU8_Msk /*!< Port PC8 Pull-Up set */
  9494. #define PWR_PUCRC_PU9_Pos (9U)
  9495. #define PWR_PUCRC_PU9_Msk (0x1UL << PWR_PUCRC_PU9_Pos) /*!< 0x00000200 */
  9496. #define PWR_PUCRC_PU9 PWR_PUCRC_PU9_Msk /*!< Port PC9 Pull-Up set */
  9497. #define PWR_PUCRC_PU10_Pos (10U)
  9498. #define PWR_PUCRC_PU10_Msk (0x1UL << PWR_PUCRC_PU10_Pos) /*!< 0x00000400 */
  9499. #define PWR_PUCRC_PU10 PWR_PUCRC_PU10_Msk /*!< Port PC10 Pull-Up set */
  9500. #define PWR_PUCRC_PU11_Pos (11U)
  9501. #define PWR_PUCRC_PU11_Msk (0x1UL << PWR_PUCRC_PU11_Pos) /*!< 0x00000800 */
  9502. #define PWR_PUCRC_PU11 PWR_PUCRC_PU11_Msk /*!< Port PC11 Pull-Up set */
  9503. #define PWR_PUCRC_PU12_Pos (12U)
  9504. #define PWR_PUCRC_PU12_Msk (0x1UL << PWR_PUCRC_PU12_Pos) /*!< 0x00001000 */
  9505. #define PWR_PUCRC_PU12 PWR_PUCRC_PU12_Msk /*!< Port PC12 Pull-Up set */
  9506. #define PWR_PUCRC_PU13_Pos (13U)
  9507. #define PWR_PUCRC_PU13_Msk (0x1UL << PWR_PUCRC_PU13_Pos) /*!< 0x00002000 */
  9508. #define PWR_PUCRC_PU13 PWR_PUCRC_PU13_Msk /*!< Port PC13 Pull-Up set */
  9509. #define PWR_PUCRC_PU14_Pos (14U)
  9510. #define PWR_PUCRC_PU14_Msk (0x1UL << PWR_PUCRC_PU14_Pos) /*!< 0x00004000 */
  9511. #define PWR_PUCRC_PU14 PWR_PUCRC_PU14_Msk /*!< Port PC14 Pull-Up set */
  9512. #define PWR_PUCRC_PU15_Pos (15U)
  9513. #define PWR_PUCRC_PU15_Msk (0x1UL << PWR_PUCRC_PU15_Pos) /*!< 0x00008000 */
  9514. #define PWR_PUCRC_PU15 PWR_PUCRC_PU15_Msk /*!< Port PC15 Pull-Up set */
  9515. /******************** Bit definition for PWR_PDCRC register ********************/
  9516. #define PWR_PDCRC_PD0_Pos (0U)
  9517. #define PWR_PDCRC_PD0_Msk (0x1UL << PWR_PDCRC_PD0_Pos) /*!< 0x00000001 */
  9518. #define PWR_PDCRC_PD0 PWR_PDCRC_PD0_Msk /*!< Port PC0 Pull-Down set */
  9519. #define PWR_PDCRC_PD1_Pos (1U)
  9520. #define PWR_PDCRC_PD1_Msk (0x1UL << PWR_PDCRC_PD1_Pos) /*!< 0x00000002 */
  9521. #define PWR_PDCRC_PD1 PWR_PDCRC_PD1_Msk /*!< Port PC1 Pull-Down set */
  9522. #define PWR_PDCRC_PD2_Pos (2U)
  9523. #define PWR_PDCRC_PD2_Msk (0x1UL << PWR_PDCRC_PD2_Pos) /*!< 0x00000004 */
  9524. #define PWR_PDCRC_PD2 PWR_PDCRC_PD2_Msk /*!< Port PC2 Pull-Down set */
  9525. #define PWR_PDCRC_PD3_Pos (3U)
  9526. #define PWR_PDCRC_PD3_Msk (0x1UL << PWR_PDCRC_PD3_Pos) /*!< 0x00000008 */
  9527. #define PWR_PDCRC_PD3 PWR_PDCRC_PD3_Msk /*!< Port PC3 Pull-Down set */
  9528. #define PWR_PDCRC_PD4_Pos (4U)
  9529. #define PWR_PDCRC_PD4_Msk (0x1UL << PWR_PDCRC_PD4_Pos) /*!< 0x00000010 */
  9530. #define PWR_PDCRC_PD4 PWR_PDCRC_PD4_Msk /*!< Port PC4 Pull-Down set */
  9531. #define PWR_PDCRC_PD5_Pos (5U)
  9532. #define PWR_PDCRC_PD5_Msk (0x1UL << PWR_PDCRC_PD5_Pos) /*!< 0x00000020 */
  9533. #define PWR_PDCRC_PD5 PWR_PDCRC_PD5_Msk /*!< Port PC5 Pull-Down set */
  9534. #define PWR_PDCRC_PD6_Pos (6U)
  9535. #define PWR_PDCRC_PD6_Msk (0x1UL << PWR_PDCRC_PD6_Pos) /*!< 0x00000040 */
  9536. #define PWR_PDCRC_PD6 PWR_PDCRC_PD6_Msk /*!< Port PC6 Pull-Down set */
  9537. #define PWR_PDCRC_PD7_Pos (7U)
  9538. #define PWR_PDCRC_PD7_Msk (0x1UL << PWR_PDCRC_PD7_Pos) /*!< 0x00000080 */
  9539. #define PWR_PDCRC_PD7 PWR_PDCRC_PD7_Msk /*!< Port PC7 Pull-Down set */
  9540. #define PWR_PDCRC_PD8_Pos (8U)
  9541. #define PWR_PDCRC_PD8_Msk (0x1UL << PWR_PDCRC_PD8_Pos) /*!< 0x00000100 */
  9542. #define PWR_PDCRC_PD8 PWR_PDCRC_PD8_Msk /*!< Port PC8 Pull-Down set */
  9543. #define PWR_PDCRC_PD9_Pos (9U)
  9544. #define PWR_PDCRC_PD9_Msk (0x1UL << PWR_PDCRC_PD9_Pos) /*!< 0x00000200 */
  9545. #define PWR_PDCRC_PD9 PWR_PDCRC_PD9_Msk /*!< Port PC9 Pull-Down set */
  9546. #define PWR_PDCRC_PD10_Pos (10U)
  9547. #define PWR_PDCRC_PD10_Msk (0x1UL << PWR_PDCRC_PD10_Pos) /*!< 0x00000400 */
  9548. #define PWR_PDCRC_PD10 PWR_PDCRC_PD10_Msk /*!< Port PC10 Pull-Down set */
  9549. #define PWR_PDCRC_PD11_Pos (11U)
  9550. #define PWR_PDCRC_PD11_Msk (0x1UL << PWR_PDCRC_PD11_Pos) /*!< 0x00000800 */
  9551. #define PWR_PDCRC_PD11 PWR_PDCRC_PD11_Msk /*!< Port PC11 Pull-Down set */
  9552. #define PWR_PDCRC_PD12_Pos (12U)
  9553. #define PWR_PDCRC_PD12_Msk (0x1UL << PWR_PDCRC_PD12_Pos) /*!< 0x00001000 */
  9554. #define PWR_PDCRC_PD12 PWR_PDCRC_PD12_Msk /*!< Port PC12 Pull-Down set */
  9555. #define PWR_PDCRC_PD13_Pos (13U)
  9556. #define PWR_PDCRC_PD13_Msk (0x1UL << PWR_PDCRC_PD13_Pos) /*!< 0x00002000 */
  9557. #define PWR_PDCRC_PD13 PWR_PDCRC_PD13_Msk /*!< Port PC13 Pull-Down set */
  9558. #define PWR_PDCRC_PD14_Pos (14U)
  9559. #define PWR_PDCRC_PD14_Msk (0x1UL << PWR_PDCRC_PD14_Pos) /*!< 0x00004000 */
  9560. #define PWR_PDCRC_PD14 PWR_PDCRC_PD14_Msk /*!< Port PC14 Pull-Down set */
  9561. #define PWR_PDCRC_PD15_Pos (15U)
  9562. #define PWR_PDCRC_PD15_Msk (0x1UL << PWR_PDCRC_PD15_Pos) /*!< 0x00008000 */
  9563. #define PWR_PDCRC_PD15 PWR_PDCRC_PD15_Msk /*!< Port PC15 Pull-Down set */
  9564. /******************** Bit definition for PWR_PUCRD register ********************/
  9565. #define PWR_PUCRD_PU0_Pos (0U)
  9566. #define PWR_PUCRD_PU0_Msk (0x1UL << PWR_PUCRD_PU0_Pos) /*!< 0x00000001 */
  9567. #define PWR_PUCRD_PU0 PWR_PUCRD_PU0_Msk /*!< Port PD0 Pull-Up set */
  9568. #define PWR_PUCRD_PU1_Pos (1U)
  9569. #define PWR_PUCRD_PU1_Msk (0x1UL << PWR_PUCRD_PU1_Pos) /*!< 0x00000002 */
  9570. #define PWR_PUCRD_PU1 PWR_PUCRD_PU1_Msk /*!< Port PD1 Pull-Up set */
  9571. #define PWR_PUCRD_PU2_Pos (2U)
  9572. #define PWR_PUCRD_PU2_Msk (0x1UL << PWR_PUCRD_PU2_Pos) /*!< 0x00000004 */
  9573. #define PWR_PUCRD_PU2 PWR_PUCRD_PU2_Msk /*!< Port PD2 Pull-Up set */
  9574. #define PWR_PUCRD_PU3_Pos (3U)
  9575. #define PWR_PUCRD_PU3_Msk (0x1UL << PWR_PUCRD_PU3_Pos) /*!< 0x00000008 */
  9576. #define PWR_PUCRD_PU3 PWR_PUCRD_PU3_Msk /*!< Port PD3 Pull-Up set */
  9577. #define PWR_PUCRD_PU4_Pos (4U)
  9578. #define PWR_PUCRD_PU4_Msk (0x1UL << PWR_PUCRD_PU4_Pos) /*!< 0x00000010 */
  9579. #define PWR_PUCRD_PU4 PWR_PUCRD_PU4_Msk /*!< Port PD4 Pull-Up set */
  9580. #define PWR_PUCRD_PU5_Pos (5U)
  9581. #define PWR_PUCRD_PU5_Msk (0x1UL << PWR_PUCRD_PU5_Pos) /*!< 0x00000020 */
  9582. #define PWR_PUCRD_PU5 PWR_PUCRD_PU5_Msk /*!< Port PD5 Pull-Up set */
  9583. #define PWR_PUCRD_PU6_Pos (6U)
  9584. #define PWR_PUCRD_PU6_Msk (0x1UL << PWR_PUCRD_PU6_Pos) /*!< 0x00000040 */
  9585. #define PWR_PUCRD_PU6 PWR_PUCRD_PU6_Msk /*!< Port PD6 Pull-Up set */
  9586. #define PWR_PUCRD_PU7_Pos (7U)
  9587. #define PWR_PUCRD_PU7_Msk (0x1UL << PWR_PUCRD_PU7_Pos) /*!< 0x00000080 */
  9588. #define PWR_PUCRD_PU7 PWR_PUCRD_PU7_Msk /*!< Port PD7 Pull-Up set */
  9589. #define PWR_PUCRD_PU8_Pos (8U)
  9590. #define PWR_PUCRD_PU8_Msk (0x1UL << PWR_PUCRD_PU8_Pos) /*!< 0x00000100 */
  9591. #define PWR_PUCRD_PU8 PWR_PUCRD_PU8_Msk /*!< Port PD8 Pull-Up set */
  9592. #define PWR_PUCRD_PU9_Pos (9U)
  9593. #define PWR_PUCRD_PU9_Msk (0x1UL << PWR_PUCRD_PU9_Pos) /*!< 0x00000200 */
  9594. #define PWR_PUCRD_PU9 PWR_PUCRD_PU9_Msk /*!< Port PD9 Pull-Up set */
  9595. #define PWR_PUCRD_PU10_Pos (10U)
  9596. #define PWR_PUCRD_PU10_Msk (0x1UL << PWR_PUCRD_PU10_Pos) /*!< 0x00000400 */
  9597. #define PWR_PUCRD_PU10 PWR_PUCRD_PU10_Msk /*!< Port PD10 Pull-Up set */
  9598. #define PWR_PUCRD_PU11_Pos (11U)
  9599. #define PWR_PUCRD_PU11_Msk (0x1UL << PWR_PUCRD_PU11_Pos) /*!< 0x00000800 */
  9600. #define PWR_PUCRD_PU11 PWR_PUCRD_PU11_Msk /*!< Port PD11 Pull-Up set */
  9601. #define PWR_PUCRD_PU12_Pos (12U)
  9602. #define PWR_PUCRD_PU12_Msk (0x1UL << PWR_PUCRD_PU12_Pos) /*!< 0x00001000 */
  9603. #define PWR_PUCRD_PU12 PWR_PUCRD_PU12_Msk /*!< Port PD12 Pull-Up set */
  9604. #define PWR_PUCRD_PU13_Pos (13U)
  9605. #define PWR_PUCRD_PU13_Msk (0x1UL << PWR_PUCRD_PU13_Pos) /*!< 0x00002000 */
  9606. #define PWR_PUCRD_PU13 PWR_PUCRD_PU13_Msk /*!< Port PD13 Pull-Up set */
  9607. #define PWR_PUCRD_PU14_Pos (14U)
  9608. #define PWR_PUCRD_PU14_Msk (0x1UL << PWR_PUCRD_PU14_Pos) /*!< 0x00004000 */
  9609. #define PWR_PUCRD_PU14 PWR_PUCRD_PU14_Msk /*!< Port PD14 Pull-Up set */
  9610. #define PWR_PUCRD_PU15_Pos (15U)
  9611. #define PWR_PUCRD_PU15_Msk (0x1UL << PWR_PUCRD_PU15_Pos) /*!< 0x00008000 */
  9612. #define PWR_PUCRD_PU15 PWR_PUCRD_PU15_Msk /*!< Port PD15 Pull-Up set */
  9613. /******************** Bit definition for PWR_PDCRD register ********************/
  9614. #define PWR_PDCRD_PD0_Pos (0U)
  9615. #define PWR_PDCRD_PD0_Msk (0x1UL << PWR_PDCRD_PD0_Pos) /*!< 0x00000001 */
  9616. #define PWR_PDCRD_PD0 PWR_PDCRD_PD0_Msk /*!< Port PD0 Pull-Down set */
  9617. #define PWR_PDCRD_PD1_Pos (1U)
  9618. #define PWR_PDCRD_PD1_Msk (0x1UL << PWR_PDCRD_PD1_Pos) /*!< 0x00000002 */
  9619. #define PWR_PDCRD_PD1 PWR_PDCRD_PD1_Msk /*!< Port PD1 Pull-Down set */
  9620. #define PWR_PDCRD_PD2_Pos (2U)
  9621. #define PWR_PDCRD_PD2_Msk (0x1UL << PWR_PDCRD_PD2_Pos) /*!< 0x00000004 */
  9622. #define PWR_PDCRD_PD2 PWR_PDCRD_PD2_Msk /*!< Port PD2 Pull-Down set */
  9623. #define PWR_PDCRD_PD3_Pos (3U)
  9624. #define PWR_PDCRD_PD3_Msk (0x1UL << PWR_PDCRD_PD3_Pos) /*!< 0x00000008 */
  9625. #define PWR_PDCRD_PD3 PWR_PDCRD_PD3_Msk /*!< Port PD3 Pull-Down set */
  9626. #define PWR_PDCRD_PD4_Pos (4U)
  9627. #define PWR_PDCRD_PD4_Msk (0x1UL << PWR_PDCRD_PD4_Pos) /*!< 0x00000010 */
  9628. #define PWR_PDCRD_PD4 PWR_PDCRD_PD4_Msk /*!< Port PD4 Pull-Down set */
  9629. #define PWR_PDCRD_PD5_Pos (5U)
  9630. #define PWR_PDCRD_PD5_Msk (0x1UL << PWR_PDCRD_PD5_Pos) /*!< 0x00000020 */
  9631. #define PWR_PDCRD_PD5 PWR_PDCRD_PD5_Msk /*!< Port PD5 Pull-Down set */
  9632. #define PWR_PDCRD_PD6_Pos (6U)
  9633. #define PWR_PDCRD_PD6_Msk (0x1UL << PWR_PDCRD_PD6_Pos) /*!< 0x00000040 */
  9634. #define PWR_PDCRD_PD6 PWR_PDCRD_PD6_Msk /*!< Port PD6 Pull-Down set */
  9635. #define PWR_PDCRD_PD7_Pos (7U)
  9636. #define PWR_PDCRD_PD7_Msk (0x1UL << PWR_PDCRD_PD7_Pos) /*!< 0x00000080 */
  9637. #define PWR_PDCRD_PD7 PWR_PDCRD_PD7_Msk /*!< Port PD7 Pull-Down set */
  9638. #define PWR_PDCRD_PD8_Pos (8U)
  9639. #define PWR_PDCRD_PD8_Msk (0x1UL << PWR_PDCRD_PD8_Pos) /*!< 0x00000100 */
  9640. #define PWR_PDCRD_PD8 PWR_PDCRD_PD8_Msk /*!< Port PD8 Pull-Down set */
  9641. #define PWR_PDCRD_PD9_Pos (9U)
  9642. #define PWR_PDCRD_PD9_Msk (0x1UL << PWR_PDCRD_PD9_Pos) /*!< 0x00000200 */
  9643. #define PWR_PDCRD_PD9 PWR_PDCRD_PD9_Msk /*!< Port PD9 Pull-Down set */
  9644. #define PWR_PDCRD_PD10_Pos (10U)
  9645. #define PWR_PDCRD_PD10_Msk (0x1UL << PWR_PDCRD_PD10_Pos) /*!< 0x00000400 */
  9646. #define PWR_PDCRD_PD10 PWR_PDCRD_PD10_Msk /*!< Port PD10 Pull-Down set */
  9647. #define PWR_PDCRD_PD11_Pos (11U)
  9648. #define PWR_PDCRD_PD11_Msk (0x1UL << PWR_PDCRD_PD11_Pos) /*!< 0x00000800 */
  9649. #define PWR_PDCRD_PD11 PWR_PDCRD_PD11_Msk /*!< Port PD11 Pull-Down set */
  9650. #define PWR_PDCRD_PD12_Pos (12U)
  9651. #define PWR_PDCRD_PD12_Msk (0x1UL << PWR_PDCRD_PD12_Pos) /*!< 0x00001000 */
  9652. #define PWR_PDCRD_PD12 PWR_PDCRD_PD12_Msk /*!< Port PD12 Pull-Down set */
  9653. #define PWR_PDCRD_PD13_Pos (13U)
  9654. #define PWR_PDCRD_PD13_Msk (0x1UL << PWR_PDCRD_PD13_Pos) /*!< 0x00002000 */
  9655. #define PWR_PDCRD_PD13 PWR_PDCRD_PD13_Msk /*!< Port PD13 Pull-Down set */
  9656. #define PWR_PDCRD_PD14_Pos (14U)
  9657. #define PWR_PDCRD_PD14_Msk (0x1UL << PWR_PDCRD_PD14_Pos) /*!< 0x00004000 */
  9658. #define PWR_PDCRD_PD14 PWR_PDCRD_PD14_Msk /*!< Port PD14 Pull-Down set */
  9659. #define PWR_PDCRD_PD15_Pos (15U)
  9660. #define PWR_PDCRD_PD15_Msk (0x1UL << PWR_PDCRD_PD15_Pos) /*!< 0x00008000 */
  9661. #define PWR_PDCRD_PD15 PWR_PDCRD_PD15_Msk /*!< Port PD15 Pull-Down set */
  9662. /******************** Bit definition for PWR_PUCRE register ********************/
  9663. #define PWR_PUCRE_PU0_Pos (0U)
  9664. #define PWR_PUCRE_PU0_Msk (0x1UL << PWR_PUCRE_PU0_Pos) /*!< 0x00000001 */
  9665. #define PWR_PUCRE_PU0 PWR_PUCRE_PU0_Msk /*!< Port PE0 Pull-Up set */
  9666. #define PWR_PUCRE_PU1_Pos (1U)
  9667. #define PWR_PUCRE_PU1_Msk (0x1UL << PWR_PUCRE_PU1_Pos) /*!< 0x00000002 */
  9668. #define PWR_PUCRE_PU1 PWR_PUCRE_PU1_Msk /*!< Port PE1 Pull-Up set */
  9669. #define PWR_PUCRE_PU2_Pos (2U)
  9670. #define PWR_PUCRE_PU2_Msk (0x1UL << PWR_PUCRE_PU2_Pos) /*!< 0x00000004 */
  9671. #define PWR_PUCRE_PU2 PWR_PUCRE_PU2_Msk /*!< Port PE2 Pull-Up set */
  9672. #define PWR_PUCRE_PU3_Pos (3U)
  9673. #define PWR_PUCRE_PU3_Msk (0x1UL << PWR_PUCRE_PU3_Pos) /*!< 0x00000008 */
  9674. #define PWR_PUCRE_PU3 PWR_PUCRE_PU3_Msk /*!< Port PE3 Pull-Up set */
  9675. #define PWR_PUCRE_PU4_Pos (4U)
  9676. #define PWR_PUCRE_PU4_Msk (0x1UL << PWR_PUCRE_PU4_Pos) /*!< 0x00000010 */
  9677. #define PWR_PUCRE_PU4 PWR_PUCRE_PU4_Msk /*!< Port PE4 Pull-Up set */
  9678. #define PWR_PUCRE_PU5_Pos (5U)
  9679. #define PWR_PUCRE_PU5_Msk (0x1UL << PWR_PUCRE_PU5_Pos) /*!< 0x00000020 */
  9680. #define PWR_PUCRE_PU5 PWR_PUCRE_PU5_Msk /*!< Port PE5 Pull-Up set */
  9681. #define PWR_PUCRE_PU6_Pos (6U)
  9682. #define PWR_PUCRE_PU6_Msk (0x1UL << PWR_PUCRE_PU6_Pos) /*!< 0x00000040 */
  9683. #define PWR_PUCRE_PU6 PWR_PUCRE_PU6_Msk /*!< Port PE6 Pull-Up set */
  9684. #define PWR_PUCRE_PU7_Pos (7U)
  9685. #define PWR_PUCRE_PU7_Msk (0x1UL << PWR_PUCRE_PU7_Pos) /*!< 0x00000080 */
  9686. #define PWR_PUCRE_PU7 PWR_PUCRE_PU7_Msk /*!< Port PE7 Pull-Up set */
  9687. #define PWR_PUCRE_PU8_Pos (8U)
  9688. #define PWR_PUCRE_PU8_Msk (0x1UL << PWR_PUCRE_PU8_Pos) /*!< 0x00000100 */
  9689. #define PWR_PUCRE_PU8 PWR_PUCRE_PU8_Msk /*!< Port PE8 Pull-Up set */
  9690. #define PWR_PUCRE_PU9_Pos (9U)
  9691. #define PWR_PUCRE_PU9_Msk (0x1UL << PWR_PUCRE_PU9_Pos) /*!< 0x00000200 */
  9692. #define PWR_PUCRE_PU9 PWR_PUCRE_PU9_Msk /*!< Port PE9 Pull-Up set */
  9693. #define PWR_PUCRE_PU10_Pos (10U)
  9694. #define PWR_PUCRE_PU10_Msk (0x1UL << PWR_PUCRE_PU10_Pos) /*!< 0x00000400 */
  9695. #define PWR_PUCRE_PU10 PWR_PUCRE_PU10_Msk /*!< Port PE10 Pull-Up set */
  9696. #define PWR_PUCRE_PU11_Pos (11U)
  9697. #define PWR_PUCRE_PU11_Msk (0x1UL << PWR_PUCRE_PU11_Pos) /*!< 0x00000800 */
  9698. #define PWR_PUCRE_PU11 PWR_PUCRE_PU11_Msk /*!< Port PE11 Pull-Up set */
  9699. #define PWR_PUCRE_PU12_Pos (12U)
  9700. #define PWR_PUCRE_PU12_Msk (0x1UL << PWR_PUCRE_PU12_Pos) /*!< 0x00001000 */
  9701. #define PWR_PUCRE_PU12 PWR_PUCRE_PU12_Msk /*!< Port PE12 Pull-Up set */
  9702. #define PWR_PUCRE_PU13_Pos (13U)
  9703. #define PWR_PUCRE_PU13_Msk (0x1UL << PWR_PUCRE_PU13_Pos) /*!< 0x00002000 */
  9704. #define PWR_PUCRE_PU13 PWR_PUCRE_PU13_Msk /*!< Port PE13 Pull-Up set */
  9705. #define PWR_PUCRE_PU14_Pos (14U)
  9706. #define PWR_PUCRE_PU14_Msk (0x1UL << PWR_PUCRE_PU14_Pos) /*!< 0x00004000 */
  9707. #define PWR_PUCRE_PU14 PWR_PUCRE_PU14_Msk /*!< Port PE14 Pull-Up set */
  9708. #define PWR_PUCRE_PU15_Pos (15U)
  9709. #define PWR_PUCRE_PU15_Msk (0x1UL << PWR_PUCRE_PU15_Pos) /*!< 0x00008000 */
  9710. #define PWR_PUCRE_PU15 PWR_PUCRE_PU15_Msk /*!< Port PE15 Pull-Up set */
  9711. /******************** Bit definition for PWR_PDCRE register ********************/
  9712. #define PWR_PDCRE_PD0_Pos (0U)
  9713. #define PWR_PDCRE_PD0_Msk (0x1UL << PWR_PDCRE_PD0_Pos) /*!< 0x00000001 */
  9714. #define PWR_PDCRE_PD0 PWR_PDCRE_PD0_Msk /*!< Port PE0 Pull-Down set */
  9715. #define PWR_PDCRE_PD1_Pos (1U)
  9716. #define PWR_PDCRE_PD1_Msk (0x1UL << PWR_PDCRE_PD1_Pos) /*!< 0x00000002 */
  9717. #define PWR_PDCRE_PD1 PWR_PDCRE_PD1_Msk /*!< Port PE1 Pull-Down set */
  9718. #define PWR_PDCRE_PD2_Pos (2U)
  9719. #define PWR_PDCRE_PD2_Msk (0x1UL << PWR_PDCRE_PD2_Pos) /*!< 0x00000004 */
  9720. #define PWR_PDCRE_PD2 PWR_PDCRE_PD2_Msk /*!< Port PE2 Pull-Down set */
  9721. #define PWR_PDCRE_PD3_Pos (3U)
  9722. #define PWR_PDCRE_PD3_Msk (0x1UL << PWR_PDCRE_PD3_Pos) /*!< 0x00000008 */
  9723. #define PWR_PDCRE_PD3 PWR_PDCRE_PD3_Msk /*!< Port PE3 Pull-Down set */
  9724. #define PWR_PDCRE_PD4_Pos (4U)
  9725. #define PWR_PDCRE_PD4_Msk (0x1UL << PWR_PDCRE_PD4_Pos) /*!< 0x00000010 */
  9726. #define PWR_PDCRE_PD4 PWR_PDCRE_PD4_Msk /*!< Port PE4 Pull-Down set */
  9727. #define PWR_PDCRE_PD5_Pos (5U)
  9728. #define PWR_PDCRE_PD5_Msk (0x1UL << PWR_PDCRE_PD5_Pos) /*!< 0x00000020 */
  9729. #define PWR_PDCRE_PD5 PWR_PDCRE_PD5_Msk /*!< Port PE5 Pull-Down set */
  9730. #define PWR_PDCRE_PD6_Pos (6U)
  9731. #define PWR_PDCRE_PD6_Msk (0x1UL << PWR_PDCRE_PD6_Pos) /*!< 0x00000040 */
  9732. #define PWR_PDCRE_PD6 PWR_PDCRE_PD6_Msk /*!< Port PE6 Pull-Down set */
  9733. #define PWR_PDCRE_PD7_Pos (7U)
  9734. #define PWR_PDCRE_PD7_Msk (0x1UL << PWR_PDCRE_PD7_Pos) /*!< 0x00000080 */
  9735. #define PWR_PDCRE_PD7 PWR_PDCRE_PD7_Msk /*!< Port PE7 Pull-Down set */
  9736. #define PWR_PDCRE_PD8_Pos (8U)
  9737. #define PWR_PDCRE_PD8_Msk (0x1UL << PWR_PDCRE_PD8_Pos) /*!< 0x00000100 */
  9738. #define PWR_PDCRE_PD8 PWR_PDCRE_PD8_Msk /*!< Port PE8 Pull-Down set */
  9739. #define PWR_PDCRE_PD9_Pos (9U)
  9740. #define PWR_PDCRE_PD9_Msk (0x1UL << PWR_PDCRE_PD9_Pos) /*!< 0x00000200 */
  9741. #define PWR_PDCRE_PD9 PWR_PDCRE_PD9_Msk /*!< Port PE9 Pull-Down set */
  9742. #define PWR_PDCRE_PD10_Pos (10U)
  9743. #define PWR_PDCRE_PD10_Msk (0x1UL << PWR_PDCRE_PD10_Pos) /*!< 0x00000400 */
  9744. #define PWR_PDCRE_PD10 PWR_PDCRE_PD10_Msk /*!< Port PE10 Pull-Down set */
  9745. #define PWR_PDCRE_PD11_Pos (11U)
  9746. #define PWR_PDCRE_PD11_Msk (0x1UL << PWR_PDCRE_PD11_Pos) /*!< 0x00000800 */
  9747. #define PWR_PDCRE_PD11 PWR_PDCRE_PD11_Msk /*!< Port PE11 Pull-Down set */
  9748. #define PWR_PDCRE_PD12_Pos (12U)
  9749. #define PWR_PDCRE_PD12_Msk (0x1UL << PWR_PDCRE_PD12_Pos) /*!< 0x00001000 */
  9750. #define PWR_PDCRE_PD12 PWR_PDCRE_PD12_Msk /*!< Port PE12 Pull-Down set */
  9751. #define PWR_PDCRE_PD13_Pos (13U)
  9752. #define PWR_PDCRE_PD13_Msk (0x1UL << PWR_PDCRE_PD13_Pos) /*!< 0x00002000 */
  9753. #define PWR_PDCRE_PD13 PWR_PDCRE_PD13_Msk /*!< Port PE13 Pull-Down set */
  9754. #define PWR_PDCRE_PD14_Pos (14U)
  9755. #define PWR_PDCRE_PD14_Msk (0x1UL << PWR_PDCRE_PD14_Pos) /*!< 0x00004000 */
  9756. #define PWR_PDCRE_PD14 PWR_PDCRE_PD14_Msk /*!< Port PE14 Pull-Down set */
  9757. #define PWR_PDCRE_PD15_Pos (15U)
  9758. #define PWR_PDCRE_PD15_Msk (0x1UL << PWR_PDCRE_PD15_Pos) /*!< 0x00008000 */
  9759. #define PWR_PDCRE_PD15 PWR_PDCRE_PD15_Msk /*!< Port PE15 Pull-Down set */
  9760. /******************** Bit definition for PWR_PUCRF register ********************/
  9761. #define PWR_PUCRF_PU0_Pos (0U)
  9762. #define PWR_PUCRF_PU0_Msk (0x1UL << PWR_PUCRF_PU0_Pos) /*!< 0x00000001 */
  9763. #define PWR_PUCRF_PU0 PWR_PUCRF_PU0_Msk /*!< Port PF0 Pull-Up set */
  9764. #define PWR_PUCRF_PU1_Pos (1U)
  9765. #define PWR_PUCRF_PU1_Msk (0x1UL << PWR_PUCRF_PU1_Pos) /*!< 0x00000002 */
  9766. #define PWR_PUCRF_PU1 PWR_PUCRF_PU1_Msk /*!< Port PF1 Pull-Up set */
  9767. #define PWR_PUCRF_PU2_Pos (2U)
  9768. #define PWR_PUCRF_PU2_Msk (0x1UL << PWR_PUCRF_PU2_Pos) /*!< 0x00000004 */
  9769. #define PWR_PUCRF_PU2 PWR_PUCRF_PU2_Msk /*!< Port PF2 Pull-Up set */
  9770. #define PWR_PUCRF_PU3_Pos (3U)
  9771. #define PWR_PUCRF_PU3_Msk (0x1UL << PWR_PUCRF_PU3_Pos) /*!< 0x00000008 */
  9772. #define PWR_PUCRF_PU3 PWR_PUCRF_PU3_Msk /*!< Port PF3 Pull-Up set */
  9773. #define PWR_PUCRF_PU4_Pos (4U)
  9774. #define PWR_PUCRF_PU4_Msk (0x1UL << PWR_PUCRF_PU4_Pos) /*!< 0x00000010 */
  9775. #define PWR_PUCRF_PU4 PWR_PUCRF_PU4_Msk /*!< Port PF4 Pull-Up set */
  9776. #define PWR_PUCRF_PU5_Pos (5U)
  9777. #define PWR_PUCRF_PU5_Msk (0x1UL << PWR_PUCRF_PU5_Pos) /*!< 0x00000020 */
  9778. #define PWR_PUCRF_PU5 PWR_PUCRF_PU5_Msk /*!< Port PF5 Pull-Up set */
  9779. #define PWR_PUCRF_PU6_Pos (6U)
  9780. #define PWR_PUCRF_PU6_Msk (0x1UL << PWR_PUCRF_PU6_Pos) /*!< 0x00000040 */
  9781. #define PWR_PUCRF_PU6 PWR_PUCRF_PU6_Msk /*!< Port PF6 Pull-Up set */
  9782. #define PWR_PUCRF_PU7_Pos (7U)
  9783. #define PWR_PUCRF_PU7_Msk (0x1UL << PWR_PUCRF_PU7_Pos) /*!< 0x00000080 */
  9784. #define PWR_PUCRF_PU7 PWR_PUCRF_PU7_Msk /*!< Port PF7 Pull-Up set */
  9785. #define PWR_PUCRF_PU8_Pos (8U)
  9786. #define PWR_PUCRF_PU8_Msk (0x1UL << PWR_PUCRF_PU8_Pos) /*!< 0x00000100 */
  9787. #define PWR_PUCRF_PU8 PWR_PUCRF_PU8_Msk /*!< Port PF8 Pull-Up set */
  9788. #define PWR_PUCRF_PU9_Pos (9U)
  9789. #define PWR_PUCRF_PU9_Msk (0x1UL << PWR_PUCRF_PU9_Pos) /*!< 0x00000200 */
  9790. #define PWR_PUCRF_PU9 PWR_PUCRF_PU9_Msk /*!< Port PF9 Pull-Up set */
  9791. #define PWR_PUCRF_PU10_Pos (10U)
  9792. #define PWR_PUCRF_PU10_Msk (0x1UL << PWR_PUCRF_PU10_Pos) /*!< 0x00000400 */
  9793. #define PWR_PUCRF_PU10 PWR_PUCRF_PU10_Msk /*!< Port PF10 Pull-Up set */
  9794. #define PWR_PUCRF_PU11_Pos (11U)
  9795. #define PWR_PUCRF_PU11_Msk (0x1UL << PWR_PUCRF_PU11_Pos) /*!< 0x00000800 */
  9796. #define PWR_PUCRF_PU11 PWR_PUCRF_PU11_Msk /*!< Port PF11 Pull-Up set */
  9797. #define PWR_PUCRF_PU12_Pos (12U)
  9798. #define PWR_PUCRF_PU12_Msk (0x1UL << PWR_PUCRF_PU12_Pos) /*!< 0x00001000 */
  9799. #define PWR_PUCRF_PU12 PWR_PUCRF_PU12_Msk /*!< Port PF12 Pull-Up set */
  9800. #define PWR_PUCRF_PU13_Pos (13U)
  9801. #define PWR_PUCRF_PU13_Msk (0x1UL << PWR_PUCRF_PU13_Pos) /*!< 0x00002000 */
  9802. #define PWR_PUCRF_PU13 PWR_PUCRF_PU13_Msk /*!< Port PF13 Pull-Up set */
  9803. #define PWR_PUCRF_PU14_Pos (14U)
  9804. #define PWR_PUCRF_PU14_Msk (0x1UL << PWR_PUCRF_PU14_Pos) /*!< 0x00004000 */
  9805. #define PWR_PUCRF_PU14 PWR_PUCRF_PU14_Msk /*!< Port PF14 Pull-Up set */
  9806. #define PWR_PUCRF_PU15_Pos (15U)
  9807. #define PWR_PUCRF_PU15_Msk (0x1UL << PWR_PUCRF_PU15_Pos) /*!< 0x00008000 */
  9808. #define PWR_PUCRF_PU15 PWR_PUCRF_PU15_Msk /*!< Port PF15 Pull-Up set */
  9809. /******************** Bit definition for PWR_PDCRF register ********************/
  9810. #define PWR_PDCRF_PD0_Pos (0U)
  9811. #define PWR_PDCRF_PD0_Msk (0x1UL << PWR_PDCRF_PD0_Pos) /*!< 0x00000001 */
  9812. #define PWR_PDCRF_PD0 PWR_PDCRF_PD0_Msk /*!< Port PF0 Pull-Down set */
  9813. #define PWR_PDCRF_PD1_Pos (1U)
  9814. #define PWR_PDCRF_PD1_Msk (0x1UL << PWR_PDCRF_PD1_Pos) /*!< 0x00000002 */
  9815. #define PWR_PDCRF_PD1 PWR_PDCRF_PD1_Msk /*!< Port PF1 Pull-Down set */
  9816. #define PWR_PDCRF_PD2_Pos (2U)
  9817. #define PWR_PDCRF_PD2_Msk (0x1UL << PWR_PDCRF_PD2_Pos) /*!< 0x00000004 */
  9818. #define PWR_PDCRF_PD2 PWR_PDCRF_PD2_Msk /*!< Port PF2 Pull-Down set */
  9819. #define PWR_PDCRF_PD3_Pos (3U)
  9820. #define PWR_PDCRF_PD3_Msk (0x1UL << PWR_PDCRF_PD3_Pos) /*!< 0x00000008 */
  9821. #define PWR_PDCRF_PD3 PWR_PDCRF_PD3_Msk /*!< Port PF3 Pull-Down set */
  9822. #define PWR_PDCRF_PD4_Pos (4U)
  9823. #define PWR_PDCRF_PD4_Msk (0x1UL << PWR_PDCRF_PD4_Pos) /*!< 0x00000010 */
  9824. #define PWR_PDCRF_PD4 PWR_PDCRF_PD4_Msk /*!< Port PF4 Pull-Down set */
  9825. #define PWR_PDCRF_PD5_Pos (5U)
  9826. #define PWR_PDCRF_PD5_Msk (0x1UL << PWR_PDCRF_PD5_Pos) /*!< 0x00000020 */
  9827. #define PWR_PDCRF_PD5 PWR_PDCRF_PD5_Msk /*!< Port PF5 Pull-Down set */
  9828. #define PWR_PDCRF_PD6_Pos (6U)
  9829. #define PWR_PDCRF_PD6_Msk (0x1UL << PWR_PDCRF_PD6_Pos) /*!< 0x00000040 */
  9830. #define PWR_PDCRF_PD6 PWR_PDCRF_PD6_Msk /*!< Port PF6 Pull-Down set */
  9831. #define PWR_PDCRF_PD7_Pos (7U)
  9832. #define PWR_PDCRF_PD7_Msk (0x1UL << PWR_PDCRF_PD7_Pos) /*!< 0x00000080 */
  9833. #define PWR_PDCRF_PD7 PWR_PDCRF_PD7_Msk /*!< Port PF7 Pull-Down set */
  9834. #define PWR_PDCRF_PD8_Pos (8U)
  9835. #define PWR_PDCRF_PD8_Msk (0x1UL << PWR_PDCRF_PD8_Pos) /*!< 0x00000100 */
  9836. #define PWR_PDCRF_PD8 PWR_PDCRF_PD8_Msk /*!< Port PF8 Pull-Down set */
  9837. #define PWR_PDCRF_PD9_Pos (9U)
  9838. #define PWR_PDCRF_PD9_Msk (0x1UL << PWR_PDCRF_PD9_Pos) /*!< 0x00000200 */
  9839. #define PWR_PDCRF_PD9 PWR_PDCRF_PD9_Msk /*!< Port PF9 Pull-Down set */
  9840. #define PWR_PDCRF_PD10_Pos (10U)
  9841. #define PWR_PDCRF_PD10_Msk (0x1UL << PWR_PDCRF_PD10_Pos) /*!< 0x00000400 */
  9842. #define PWR_PDCRF_PD10 PWR_PDCRF_PD10_Msk /*!< Port PF10 Pull-Down set */
  9843. #define PWR_PDCRF_PD11_Pos (11U)
  9844. #define PWR_PDCRF_PD11_Msk (0x1UL << PWR_PDCRF_PD11_Pos) /*!< 0x00000800 */
  9845. #define PWR_PDCRF_PD11 PWR_PDCRF_PD11_Msk /*!< Port PF11 Pull-Down set */
  9846. #define PWR_PDCRF_PD12_Pos (12U)
  9847. #define PWR_PDCRF_PD12_Msk (0x1UL << PWR_PDCRF_PD12_Pos) /*!< 0x00001000 */
  9848. #define PWR_PDCRF_PD12 PWR_PDCRF_PD12_Msk /*!< Port PF12 Pull-Down set */
  9849. #define PWR_PDCRF_PD13_Pos (13U)
  9850. #define PWR_PDCRF_PD13_Msk (0x1UL << PWR_PDCRF_PD13_Pos) /*!< 0x00002000 */
  9851. #define PWR_PDCRF_PD13 PWR_PDCRF_PD13_Msk /*!< Port PF13 Pull-Down set */
  9852. #define PWR_PDCRF_PD14_Pos (14U)
  9853. #define PWR_PDCRF_PD14_Msk (0x1UL << PWR_PDCRF_PD14_Pos) /*!< 0x00004000 */
  9854. #define PWR_PDCRF_PD14 PWR_PDCRF_PD14_Msk /*!< Port PF14 Pull-Down set */
  9855. #define PWR_PDCRF_PD15_Pos (15U)
  9856. #define PWR_PDCRF_PD15_Msk (0x1UL << PWR_PDCRF_PD15_Pos) /*!< 0x00008000 */
  9857. #define PWR_PDCRF_PD15 PWR_PDCRF_PD15_Msk /*!< Port PF15 Pull-Down set */
  9858. /******************** Bit definition for PWR_PUCRG register ********************/
  9859. #define PWR_PUCRG_PU0_Pos (0U)
  9860. #define PWR_PUCRG_PU0_Msk (0x1UL << PWR_PUCRG_PU0_Pos) /*!< 0x00000001 */
  9861. #define PWR_PUCRG_PU0 PWR_PUCRG_PU0_Msk /*!< Port PG0 Pull-Up set */
  9862. #define PWR_PUCRG_PU1_Pos (1U)
  9863. #define PWR_PUCRG_PU1_Msk (0x1UL << PWR_PUCRG_PU1_Pos) /*!< 0x00000002 */
  9864. #define PWR_PUCRG_PU1 PWR_PUCRG_PU1_Msk /*!< Port PG1 Pull-Up set */
  9865. #define PWR_PUCRG_PU2_Pos (2U)
  9866. #define PWR_PUCRG_PU2_Msk (0x1UL << PWR_PUCRG_PU2_Pos) /*!< 0x00000004 */
  9867. #define PWR_PUCRG_PU2 PWR_PUCRG_PU2_Msk /*!< Port PG2 Pull-Up set */
  9868. #define PWR_PUCRG_PU3_Pos (3U)
  9869. #define PWR_PUCRG_PU3_Msk (0x1UL << PWR_PUCRG_PU3_Pos) /*!< 0x00000008 */
  9870. #define PWR_PUCRG_PU3 PWR_PUCRG_PU3_Msk /*!< Port PG3 Pull-Up set */
  9871. #define PWR_PUCRG_PU4_Pos (4U)
  9872. #define PWR_PUCRG_PU4_Msk (0x1UL << PWR_PUCRG_PU4_Pos) /*!< 0x00000010 */
  9873. #define PWR_PUCRG_PU4 PWR_PUCRG_PU4_Msk /*!< Port PG4 Pull-Up set */
  9874. #define PWR_PUCRG_PU5_Pos (5U)
  9875. #define PWR_PUCRG_PU5_Msk (0x1UL << PWR_PUCRG_PU5_Pos) /*!< 0x00000020 */
  9876. #define PWR_PUCRG_PU5 PWR_PUCRG_PU5_Msk /*!< Port PG5 Pull-Up set */
  9877. #define PWR_PUCRG_PU6_Pos (6U)
  9878. #define PWR_PUCRG_PU6_Msk (0x1UL << PWR_PUCRG_PU6_Pos) /*!< 0x00000040 */
  9879. #define PWR_PUCRG_PU6 PWR_PUCRG_PU6_Msk /*!< Port PG6 Pull-Up set */
  9880. #define PWR_PUCRG_PU7_Pos (7U)
  9881. #define PWR_PUCRG_PU7_Msk (0x1UL << PWR_PUCRG_PU7_Pos) /*!< 0x00000080 */
  9882. #define PWR_PUCRG_PU7 PWR_PUCRG_PU7_Msk /*!< Port PG7 Pull-Up set */
  9883. #define PWR_PUCRG_PU8_Pos (8U)
  9884. #define PWR_PUCRG_PU8_Msk (0x1UL << PWR_PUCRG_PU8_Pos) /*!< 0x00000100 */
  9885. #define PWR_PUCRG_PU8 PWR_PUCRG_PU8_Msk /*!< Port PG8 Pull-Up set */
  9886. #define PWR_PUCRG_PU9_Pos (9U)
  9887. #define PWR_PUCRG_PU9_Msk (0x1UL << PWR_PUCRG_PU9_Pos) /*!< 0x00000200 */
  9888. #define PWR_PUCRG_PU9 PWR_PUCRG_PU9_Msk /*!< Port PG9 Pull-Up set */
  9889. #define PWR_PUCRG_PU10_Pos (10U)
  9890. #define PWR_PUCRG_PU10_Msk (0x1UL << PWR_PUCRG_PU10_Pos) /*!< 0x00000400 */
  9891. #define PWR_PUCRG_PU10 PWR_PUCRG_PU10_Msk /*!< Port PG10 Pull-Up set */
  9892. #define PWR_PUCRG_PU11_Pos (11U)
  9893. #define PWR_PUCRG_PU11_Msk (0x1UL << PWR_PUCRG_PU11_Pos) /*!< 0x00000800 */
  9894. #define PWR_PUCRG_PU11 PWR_PUCRG_PU11_Msk /*!< Port PG11 Pull-Up set */
  9895. #define PWR_PUCRG_PU12_Pos (12U)
  9896. #define PWR_PUCRG_PU12_Msk (0x1UL << PWR_PUCRG_PU12_Pos) /*!< 0x00001000 */
  9897. #define PWR_PUCRG_PU12 PWR_PUCRG_PU12_Msk /*!< Port PG12 Pull-Up set */
  9898. #define PWR_PUCRG_PU13_Pos (13U)
  9899. #define PWR_PUCRG_PU13_Msk (0x1UL << PWR_PUCRG_PU13_Pos) /*!< 0x00002000 */
  9900. #define PWR_PUCRG_PU13 PWR_PUCRG_PU13_Msk /*!< Port PG13 Pull-Up set */
  9901. #define PWR_PUCRG_PU14_Pos (14U)
  9902. #define PWR_PUCRG_PU14_Msk (0x1UL << PWR_PUCRG_PU14_Pos) /*!< 0x00004000 */
  9903. #define PWR_PUCRG_PU14 PWR_PUCRG_PU14_Msk /*!< Port PG14 Pull-Up set */
  9904. #define PWR_PUCRG_PU15_Pos (15U)
  9905. #define PWR_PUCRG_PU15_Msk (0x1UL << PWR_PUCRG_PU15_Pos) /*!< 0x00008000 */
  9906. #define PWR_PUCRG_PU15 PWR_PUCRG_PU15_Msk /*!< Port PG15 Pull-Up set */
  9907. /******************** Bit definition for PWR_PDCRG register ********************/
  9908. #define PWR_PDCRG_PD0_Pos (0U)
  9909. #define PWR_PDCRG_PD0_Msk (0x1UL << PWR_PDCRG_PD0_Pos) /*!< 0x00000001 */
  9910. #define PWR_PDCRG_PD0 PWR_PDCRG_PD0_Msk /*!< Port PG0 Pull-Down set */
  9911. #define PWR_PDCRG_PD1_Pos (1U)
  9912. #define PWR_PDCRG_PD1_Msk (0x1UL << PWR_PDCRG_PD1_Pos) /*!< 0x00000002 */
  9913. #define PWR_PDCRG_PD1 PWR_PDCRG_PD1_Msk /*!< Port PG1 Pull-Down set */
  9914. #define PWR_PDCRG_PD2_Pos (2U)
  9915. #define PWR_PDCRG_PD2_Msk (0x1UL << PWR_PDCRG_PD2_Pos) /*!< 0x00000004 */
  9916. #define PWR_PDCRG_PD2 PWR_PDCRG_PD2_Msk /*!< Port PG2 Pull-Down set */
  9917. #define PWR_PDCRG_PD3_Pos (3U)
  9918. #define PWR_PDCRG_PD3_Msk (0x1UL << PWR_PDCRG_PD3_Pos) /*!< 0x00000008 */
  9919. #define PWR_PDCRG_PD3 PWR_PDCRG_PD3_Msk /*!< Port PG3 Pull-Down set */
  9920. #define PWR_PDCRG_PD4_Pos (4U)
  9921. #define PWR_PDCRG_PD4_Msk (0x1UL << PWR_PDCRG_PD4_Pos) /*!< 0x00000010 */
  9922. #define PWR_PDCRG_PD4 PWR_PDCRG_PD4_Msk /*!< Port PG4 Pull-Down set */
  9923. #define PWR_PDCRG_PD5_Pos (5U)
  9924. #define PWR_PDCRG_PD5_Msk (0x1UL << PWR_PDCRG_PD5_Pos) /*!< 0x00000020 */
  9925. #define PWR_PDCRG_PD5 PWR_PDCRG_PD5_Msk /*!< Port PG5 Pull-Down set */
  9926. #define PWR_PDCRG_PD6_Pos (6U)
  9927. #define PWR_PDCRG_PD6_Msk (0x1UL << PWR_PDCRG_PD6_Pos) /*!< 0x00000040 */
  9928. #define PWR_PDCRG_PD6 PWR_PDCRG_PD6_Msk /*!< Port PG6 Pull-Down set */
  9929. #define PWR_PDCRG_PD7_Pos (7U)
  9930. #define PWR_PDCRG_PD7_Msk (0x1UL << PWR_PDCRG_PD7_Pos) /*!< 0x00000080 */
  9931. #define PWR_PDCRG_PD7 PWR_PDCRG_PD7_Msk /*!< Port PG7 Pull-Down set */
  9932. #define PWR_PDCRG_PD8_Pos (8U)
  9933. #define PWR_PDCRG_PD8_Msk (0x1UL << PWR_PDCRG_PD8_Pos) /*!< 0x00000100 */
  9934. #define PWR_PDCRG_PD8 PWR_PDCRG_PD8_Msk /*!< Port PG8 Pull-Down set */
  9935. #define PWR_PDCRG_PD9_Pos (9U)
  9936. #define PWR_PDCRG_PD9_Msk (0x1UL << PWR_PDCRG_PD9_Pos) /*!< 0x00000200 */
  9937. #define PWR_PDCRG_PD9 PWR_PDCRG_PD9_Msk /*!< Port PG9 Pull-Down set */
  9938. #define PWR_PDCRG_PD10_Pos (10U)
  9939. #define PWR_PDCRG_PD10_Msk (0x1UL << PWR_PDCRG_PD10_Pos) /*!< 0x00000400 */
  9940. #define PWR_PDCRG_PD10 PWR_PDCRG_PD10_Msk /*!< Port PG10 Pull-Down set */
  9941. #define PWR_PDCRG_PD11_Pos (11U)
  9942. #define PWR_PDCRG_PD11_Msk (0x1UL << PWR_PDCRG_PD11_Pos) /*!< 0x00000800 */
  9943. #define PWR_PDCRG_PD11 PWR_PDCRG_PD11_Msk /*!< Port PG11 Pull-Down set */
  9944. #define PWR_PDCRG_PD12_Pos (12U)
  9945. #define PWR_PDCRG_PD12_Msk (0x1UL << PWR_PDCRG_PD12_Pos) /*!< 0x00001000 */
  9946. #define PWR_PDCRG_PD12 PWR_PDCRG_PD12_Msk /*!< Port PG12 Pull-Down set */
  9947. #define PWR_PDCRG_PD13_Pos (13U)
  9948. #define PWR_PDCRG_PD13_Msk (0x1UL << PWR_PDCRG_PD13_Pos) /*!< 0x00002000 */
  9949. #define PWR_PDCRG_PD13 PWR_PDCRG_PD13_Msk /*!< Port PG13 Pull-Down set */
  9950. #define PWR_PDCRG_PD14_Pos (14U)
  9951. #define PWR_PDCRG_PD14_Msk (0x1UL << PWR_PDCRG_PD14_Pos) /*!< 0x00004000 */
  9952. #define PWR_PDCRG_PD14 PWR_PDCRG_PD14_Msk /*!< Port PG14 Pull-Down set */
  9953. #define PWR_PDCRG_PD15_Pos (15U)
  9954. #define PWR_PDCRG_PD15_Msk (0x1UL << PWR_PDCRG_PD15_Pos) /*!< 0x00008000 */
  9955. #define PWR_PDCRG_PD15 PWR_PDCRG_PD15_Msk /*!< Port PG15 Pull-Down set */
  9956. /******************** Bit definition for PWR_PUCRH register ********************/
  9957. #define PWR_PUCRH_PU0_Pos (0U)
  9958. #define PWR_PUCRH_PU0_Msk (0x1UL << PWR_PUCRH_PU0_Pos) /*!< 0x00000001 */
  9959. #define PWR_PUCRH_PU0 PWR_PUCRH_PU0_Msk /*!< Port PH0 Pull-Up set */
  9960. #define PWR_PUCRH_PU1_Pos (1U)
  9961. #define PWR_PUCRH_PU1_Msk (0x1UL << PWR_PUCRH_PU1_Pos) /*!< 0x00000002 */
  9962. #define PWR_PUCRH_PU1 PWR_PUCRH_PU1_Msk /*!< Port PH1 Pull-Up set */
  9963. #define PWR_PUCRH_PU2_Pos (2U)
  9964. #define PWR_PUCRH_PU2_Msk (0x1UL << PWR_PUCRH_PU2_Pos) /*!< 0x00000004 */
  9965. #define PWR_PUCRH_PU2 PWR_PUCRH_PU2_Msk /*!< Port PH2 Pull-Up set */
  9966. #define PWR_PUCRH_PU3_Pos (3U)
  9967. #define PWR_PUCRH_PU3_Msk (0x1UL << PWR_PUCRH_PU3_Pos) /*!< 0x00000008 */
  9968. #define PWR_PUCRH_PU3 PWR_PUCRH_PU3_Msk /*!< Port PH3 Pull-Up set */
  9969. /******************** Bit definition for PWR_PDCRH register ********************/
  9970. #define PWR_PDCRH_PD0_Pos (0U)
  9971. #define PWR_PDCRH_PD0_Msk (0x1UL << PWR_PDCRH_PD0_Pos) /*!< 0x00000001 */
  9972. #define PWR_PDCRH_PD0 PWR_PDCRH_PD0_Msk /*!< Port PH0 Pull-Down set */
  9973. #define PWR_PDCRH_PD1_Pos (1U)
  9974. #define PWR_PDCRH_PD1_Msk (0x1UL << PWR_PDCRH_PD1_Pos) /*!< 0x00000002 */
  9975. #define PWR_PDCRH_PD1 PWR_PDCRH_PD1_Msk /*!< Port PH1 Pull-Down set */
  9976. #define PWR_PDCRH_PD2_Pos (2U)
  9977. #define PWR_PDCRH_PD2_Msk (0x1UL << PWR_PDCRH_PD2_Pos) /*!< 0x00000004 */
  9978. #define PWR_PDCRH_PD2 PWR_PDCRH_PD2_Msk /*!< Port PH2 Pull-Down set */
  9979. #define PWR_PDCRH_PD3_Pos (3U)
  9980. #define PWR_PDCRH_PD3_Msk (0x1UL << PWR_PDCRH_PD3_Pos) /*!< 0x00000008 */
  9981. #define PWR_PDCRH_PD3 PWR_PDCRH_PD3_Msk /*!< Port PH3 Pull-Down set */
  9982. /******************** Bit definition for PWR_SECCFGR register ******************/
  9983. #define PWR_SECCFGR_WUPSEC_Pos (0U)
  9984. #define PWR_SECCFGR_WUPSEC_Msk (0x1FUL << PWR_SECCFGR_WUPSEC_Pos) /*!< 0x0000001F */
  9985. #define PWR_SECCFGR_WUPSEC PWR_SECCFGR_WUPSEC_Msk /*!< Secure Mode Wake-Up Pins */
  9986. #define PWR_SECCFGR_WUP1SEC_Pos (0U)
  9987. #define PWR_SECCFGR_WUP1SEC_Msk (0x1UL << PWR_SECCFGR_WUP1SEC_Pos) /*!< 0x00000001 */
  9988. #define PWR_SECCFGR_WUP1SEC PWR_SECCFGR_WUP1SEC_Msk /*!< Secure Mode Wake-Up Pin 1 */
  9989. #define PWR_SECCFGR_WUP2SEC_Pos (1U)
  9990. #define PWR_SECCFGR_WUP2SEC_Msk (0x1UL << PWR_SECCFGR_WUP2SEC_Pos) /*!< 0x00000002 */
  9991. #define PWR_SECCFGR_WUP2SEC PWR_SECCFGR_WUP2SEC_Msk /*!< Secure Mode Wake-Up Pin 2 */
  9992. #define PWR_SECCFGR_WUP3SEC_Pos (2U)
  9993. #define PWR_SECCFGR_WUP3SEC_Msk (0x1UL << PWR_SECCFGR_WUP3SEC_Pos) /*!< 0x00000004 */
  9994. #define PWR_SECCFGR_WUP3SEC PWR_SECCFGR_WUP3SEC_Msk /*!< Secure Mode Wake-Up Pin 3 */
  9995. #define PWR_SECCFGR_WUP4SEC_Pos (3U)
  9996. #define PWR_SECCFGR_WUP4SEC_Msk (0x1UL << PWR_SECCFGR_WUP4SEC_Pos) /*!< 0x00000008 */
  9997. #define PWR_SECCFGR_WUP4SEC PWR_SECCFGR_WUP4SEC_Msk /*!< Secure Mode Wake-Up Pin 4 */
  9998. #define PWR_SECCFGR_WUP5SEC_Pos (4U)
  9999. #define PWR_SECCFGR_WUP5SEC_Msk (0x1UL << PWR_SECCFGR_WUP5SEC_Pos) /*!< 0x00000010 */
  10000. #define PWR_SECCFGR_WUP5SEC PWR_SECCFGR_WUP5SEC_Msk /*!< Secure Mode Wake-Up Pin 5 */
  10001. #define PWR_SECCFGR_LPMSEC_Pos (8U)
  10002. #define PWR_SECCFGR_LPMSEC_Msk (0x1UL << PWR_SECCFGR_LPMSEC_Pos) /*!< 0x00000100 */
  10003. #define PWR_SECCFGR_LPMSEC PWR_SECCFGR_LPMSEC_Msk /*!< Secure Mode Low Power Modes */
  10004. #define PWR_SECCFGR_VDMSEC_Pos (9U)
  10005. #define PWR_SECCFGR_VDMSEC_Msk (0x1UL << PWR_SECCFGR_VDMSEC_Pos) /*!< 0x00000200 */
  10006. #define PWR_SECCFGR_VDMSEC PWR_SECCFGR_VDMSEC_Msk /*!< Secure Mode Voltage Detection and Monitoring */
  10007. #define PWR_SECCFGR_VBSEC_Pos (10U)
  10008. #define PWR_SECCFGR_VBSEC_Msk (0x1UL << PWR_SECCFGR_VBSEC_Pos) /*!< 0x00000400 */
  10009. #define PWR_SECCFGR_VBSEC PWR_SECCFGR_VBSEC_Msk /*!< Secure Mode VBAT */
  10010. #define PWR_SECCFGR_APCSEC_Pos (11U)
  10011. #define PWR_SECCFGR_APCSEC_Msk (0x1UL << PWR_SECCFGR_APCSEC_Pos) /*!< 0x00000800 */
  10012. #define PWR_SECCFGR_APCSEC PWR_SECCFGR_APCSEC_Msk /*!< Secure Mode Pull-Up/Down Control */
  10013. /******************** Bit definition for PWR_PRIVCFGR register *****************/
  10014. #define PWR_PRIVCFGR_PRIV_Pos (0U)
  10015. #define PWR_PRIVCFGR_PRIV_Msk (0x1UL << PWR_PRIVCFGR_PRIV_Pos) /*!< 0x00000001 */
  10016. #define PWR_PRIVCFGR_PRIV PWR_PRIVCFGR_PRIV_Msk /*!< Privileged access protection */
  10017. /******************************************************************************/
  10018. /* */
  10019. /* Reset and Clock Control */
  10020. /* */
  10021. /******************************************************************************/
  10022. /******************** Bit definition for RCC_CR register ********************/
  10023. #define RCC_CR_MSION_Pos (0U)
  10024. #define RCC_CR_MSION_Msk (0x1UL << RCC_CR_MSION_Pos) /*!< 0x00000001 */
  10025. #define RCC_CR_MSION RCC_CR_MSION_Msk /*!< Internal Multi Speed oscillator (MSI) clock enable */
  10026. #define RCC_CR_MSIRDY_Pos (1U)
  10027. #define RCC_CR_MSIRDY_Msk (0x1UL << RCC_CR_MSIRDY_Pos) /*!< 0x00000002 */
  10028. #define RCC_CR_MSIRDY RCC_CR_MSIRDY_Msk /*!< Internal Multi Speed oscillator (MSI) clock ready flag */
  10029. #define RCC_CR_MSIPLLEN_Pos (2U)
  10030. #define RCC_CR_MSIPLLEN_Msk (0x1UL << RCC_CR_MSIPLLEN_Pos) /*!< 0x00000004 */
  10031. #define RCC_CR_MSIPLLEN RCC_CR_MSIPLLEN_Msk /*!< Internal Multi Speed oscillator (MSI) PLL enable */
  10032. #define RCC_CR_MSIRGSEL_Pos (3U)
  10033. #define RCC_CR_MSIRGSEL_Msk (0x1UL << RCC_CR_MSIRGSEL_Pos) /*!< 0x00000008 */
  10034. #define RCC_CR_MSIRGSEL RCC_CR_MSIRGSEL_Msk /*!< Internal Multi Speed oscillator (MSI) range selection */
  10035. /*!< MSIRANGE configuration : 12 frequency ranges available */
  10036. #define RCC_CR_MSIRANGE_Pos (4U)
  10037. #define RCC_CR_MSIRANGE_Msk (0xFUL << RCC_CR_MSIRANGE_Pos) /*!< 0x000000F0 */
  10038. #define RCC_CR_MSIRANGE RCC_CR_MSIRANGE_Msk /*!< Internal Multi Speed oscillator (MSI) clock Range */
  10039. #define RCC_CR_MSIRANGE_0 (0x0UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000000 */
  10040. #define RCC_CR_MSIRANGE_1 (0x1UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000010 */
  10041. #define RCC_CR_MSIRANGE_2 (0x2UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000020 */
  10042. #define RCC_CR_MSIRANGE_3 (0x3UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000030 */
  10043. #define RCC_CR_MSIRANGE_4 (0x4UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000040 */
  10044. #define RCC_CR_MSIRANGE_5 (0x5UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000050 */
  10045. #define RCC_CR_MSIRANGE_6 (0x6UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000060 */
  10046. #define RCC_CR_MSIRANGE_7 (0x7UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000070 */
  10047. #define RCC_CR_MSIRANGE_8 (0x8UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000080 */
  10048. #define RCC_CR_MSIRANGE_9 (0x9UL << RCC_CR_MSIRANGE_Pos) /*!< 0x00000090 */
  10049. #define RCC_CR_MSIRANGE_10 (0xAUL << RCC_CR_MSIRANGE_Pos) /*!< 0x000000A0 */
  10050. #define RCC_CR_MSIRANGE_11 (0xBUL << RCC_CR_MSIRANGE_Pos) /*!< 0x000000B0 */
  10051. #define RCC_CR_HSION_Pos (8U)
  10052. #define RCC_CR_HSION_Msk (0x1UL << RCC_CR_HSION_Pos) /*!< 0x00000100 */
  10053. #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed oscillator (HSI16) clock enable */
  10054. #define RCC_CR_HSIKERON_Pos (9U)
  10055. #define RCC_CR_HSIKERON_Msk (0x1UL << RCC_CR_HSIKERON_Pos) /*!< 0x00000200 */
  10056. #define RCC_CR_HSIKERON RCC_CR_HSIKERON_Msk /*!< Internal High Speed oscillator (HSI16) clock enable for some IPs Kernel */
  10057. #define RCC_CR_HSIRDY_Pos (10U)
  10058. #define RCC_CR_HSIRDY_Msk (0x1UL << RCC_CR_HSIRDY_Pos) /*!< 0x00000400 */
  10059. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed oscillator (HSI16) clock ready flag */
  10060. #define RCC_CR_HSIASFS_Pos (11U)
  10061. #define RCC_CR_HSIASFS_Msk (0x1UL << RCC_CR_HSIASFS_Pos) /*!< 0x00000800 */
  10062. #define RCC_CR_HSIASFS RCC_CR_HSIASFS_Msk /*!< HSI16 Automatic Start from Stop */
  10063. #define RCC_CR_HSEON_Pos (16U)
  10064. #define RCC_CR_HSEON_Msk (0x1UL << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  10065. #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed oscillator (HSE) clock enable */
  10066. #define RCC_CR_HSERDY_Pos (17U)
  10067. #define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  10068. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed oscillator (HSE) clock ready */
  10069. #define RCC_CR_HSEBYP_Pos (18U)
  10070. #define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  10071. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed oscillator (HSE) clock bypass */
  10072. #define RCC_CR_CSSON_Pos (19U)
  10073. #define RCC_CR_CSSON_Msk (0x1UL << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
  10074. #define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< HSE Clock Security System enable */
  10075. #define RCC_CR_PLLON_Pos (24U)
  10076. #define RCC_CR_PLLON_Msk (0x1UL << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  10077. #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< System PLL clock enable */
  10078. #define RCC_CR_PLLRDY_Pos (25U)
  10079. #define RCC_CR_PLLRDY_Msk (0x1UL << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  10080. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< System PLL clock ready */
  10081. #define RCC_CR_PLLSAI1ON_Pos (26U)
  10082. #define RCC_CR_PLLSAI1ON_Msk (0x1UL << RCC_CR_PLLSAI1ON_Pos) /*!< 0x04000000 */
  10083. #define RCC_CR_PLLSAI1ON RCC_CR_PLLSAI1ON_Msk /*!< SAI1 PLL enable */
  10084. #define RCC_CR_PLLSAI1RDY_Pos (27U)
  10085. #define RCC_CR_PLLSAI1RDY_Msk (0x1UL << RCC_CR_PLLSAI1RDY_Pos) /*!< 0x08000000 */
  10086. #define RCC_CR_PLLSAI1RDY RCC_CR_PLLSAI1RDY_Msk /*!< SAI1 PLL ready */
  10087. #define RCC_CR_PLLSAI2ON_Pos (28U)
  10088. #define RCC_CR_PLLSAI2ON_Msk (0x1UL << RCC_CR_PLLSAI2ON_Pos) /*!< 0x10000000 */
  10089. #define RCC_CR_PLLSAI2ON RCC_CR_PLLSAI2ON_Msk /*!< SAI2 PLL enable */
  10090. #define RCC_CR_PLLSAI2RDY_Pos (29U)
  10091. #define RCC_CR_PLLSAI2RDY_Msk (0x1UL << RCC_CR_PLLSAI2RDY_Pos) /*!< 0x20000000 */
  10092. #define RCC_CR_PLLSAI2RDY RCC_CR_PLLSAI2RDY_Msk /*!< SAI2 PLL ready */
  10093. #define RCC_CR_PRIV_Pos (31U)
  10094. #define RCC_CR_PRIV_Msk (0x1UL << RCC_CR_PRIV_Pos) /*!< 0x80000000 */
  10095. #define RCC_CR_PRIV RCC_CR_PRIV_Msk /*!< RCC Privilege enable */
  10096. /******************** Bit definition for RCC_ICSCR register ***************/
  10097. /*!< MSICAL configuration */
  10098. #define RCC_ICSCR_MSICAL_Pos (0U)
  10099. #define RCC_ICSCR_MSICAL_Msk (0xFFUL << RCC_ICSCR_MSICAL_Pos) /*!< 0x000000FF */
  10100. #define RCC_ICSCR_MSICAL RCC_ICSCR_MSICAL_Msk /*!< MSICAL[7:0] bits */
  10101. #define RCC_ICSCR_MSICAL_0 (0x01UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000001 */
  10102. #define RCC_ICSCR_MSICAL_1 (0x02UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000002 */
  10103. #define RCC_ICSCR_MSICAL_2 (0x04UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000004 */
  10104. #define RCC_ICSCR_MSICAL_3 (0x08UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000008 */
  10105. #define RCC_ICSCR_MSICAL_4 (0x10UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000010 */
  10106. #define RCC_ICSCR_MSICAL_5 (0x20UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000020 */
  10107. #define RCC_ICSCR_MSICAL_6 (0x40UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000040 */
  10108. #define RCC_ICSCR_MSICAL_7 (0x80UL << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000080 */
  10109. /*!< MSITRIM configuration */
  10110. #define RCC_ICSCR_MSITRIM_Pos (8U)
  10111. #define RCC_ICSCR_MSITRIM_Msk (0xFFUL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x0000FF00 */
  10112. #define RCC_ICSCR_MSITRIM RCC_ICSCR_MSITRIM_Msk /*!< MSITRIM[7:0] bits */
  10113. #define RCC_ICSCR_MSITRIM_0 (0x01UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000100 */
  10114. #define RCC_ICSCR_MSITRIM_1 (0x02UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000200 */
  10115. #define RCC_ICSCR_MSITRIM_2 (0x04UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000400 */
  10116. #define RCC_ICSCR_MSITRIM_3 (0x08UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000800 */
  10117. #define RCC_ICSCR_MSITRIM_4 (0x10UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00001000 */
  10118. #define RCC_ICSCR_MSITRIM_5 (0x20UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00002000 */
  10119. #define RCC_ICSCR_MSITRIM_6 (0x40UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00004000 */
  10120. #define RCC_ICSCR_MSITRIM_7 (0x80UL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00008000 */
  10121. /*!< HSICAL configuration */
  10122. #define RCC_ICSCR_HSICAL_Pos (16U)
  10123. #define RCC_ICSCR_HSICAL_Msk (0xFFUL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00FF0000 */
  10124. #define RCC_ICSCR_HSICAL RCC_ICSCR_HSICAL_Msk /*!< HSICAL[7:0] bits */
  10125. #define RCC_ICSCR_HSICAL_0 (0x01UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00010000 */
  10126. #define RCC_ICSCR_HSICAL_1 (0x02UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00020000 */
  10127. #define RCC_ICSCR_HSICAL_2 (0x04UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00040000 */
  10128. #define RCC_ICSCR_HSICAL_3 (0x08UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00080000 */
  10129. #define RCC_ICSCR_HSICAL_4 (0x10UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00100000 */
  10130. #define RCC_ICSCR_HSICAL_5 (0x20UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00200000 */
  10131. #define RCC_ICSCR_HSICAL_6 (0x40UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00400000 */
  10132. #define RCC_ICSCR_HSICAL_7 (0x80UL << RCC_ICSCR_HSICAL_Pos) /*!< 0x00800000 */
  10133. /*!< HSITRIM configuration */
  10134. #define RCC_ICSCR_HSITRIM_Pos (24U)
  10135. #define RCC_ICSCR_HSITRIM_Msk (0x7FUL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x7F000000 */
  10136. #define RCC_ICSCR_HSITRIM RCC_ICSCR_HSITRIM_Msk /*!< HSITRIM[6:0] bits */
  10137. #define RCC_ICSCR_HSITRIM_0 (0x01UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x01000000 */
  10138. #define RCC_ICSCR_HSITRIM_1 (0x02UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x02000000 */
  10139. #define RCC_ICSCR_HSITRIM_2 (0x04UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x04000000 */
  10140. #define RCC_ICSCR_HSITRIM_3 (0x08UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x08000000 */
  10141. #define RCC_ICSCR_HSITRIM_4 (0x10UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x10000000 */
  10142. #define RCC_ICSCR_HSITRIM_5 (0x20UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x20000000 */
  10143. #define RCC_ICSCR_HSITRIM_6 (0x40UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x40000000 */
  10144. /******************** Bit definition for RCC_CFGR register ******************/
  10145. /*!< SW configuration */
  10146. #define RCC_CFGR_SW_Pos (0U)
  10147. #define RCC_CFGR_SW_Msk (0x3UL << RCC_CFGR_SW_Pos) /*!< 0x00000003 */
  10148. #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */
  10149. #define RCC_CFGR_SW_0 (0x1UL << RCC_CFGR_SW_Pos) /*!< 0x00000001 */
  10150. #define RCC_CFGR_SW_1 (0x2UL << RCC_CFGR_SW_Pos) /*!< 0x00000002 */
  10151. #define RCC_CFGR_SW_MSI (0x00000000UL) /*!< MSI oscillator selection as system clock */
  10152. #define RCC_CFGR_SW_HSI (0x00000001UL) /*!< HSI16 oscillator selection as system clock */
  10153. #define RCC_CFGR_SW_HSE (0x00000002UL) /*!< HSE oscillator selection as system clock */
  10154. #define RCC_CFGR_SW_PLL (0x00000003UL) /*!< PLL selection as system clock */
  10155. /*!< SWS configuration */
  10156. #define RCC_CFGR_SWS_Pos (2U)
  10157. #define RCC_CFGR_SWS_Msk (0x3UL << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */
  10158. #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */
  10159. #define RCC_CFGR_SWS_0 (0x1UL << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */
  10160. #define RCC_CFGR_SWS_1 (0x2UL << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */
  10161. #define RCC_CFGR_SWS_MSI (0x00000000UL) /*!< MSI oscillator used as system clock */
  10162. #define RCC_CFGR_SWS_HSI (0x00000004UL) /*!< HSI16 oscillator used as system clock */
  10163. #define RCC_CFGR_SWS_HSE (0x00000008UL) /*!< HSE oscillator used as system clock */
  10164. #define RCC_CFGR_SWS_PLL (0x0000000CUL) /*!< PLL used as system clock */
  10165. /*!< HPRE configuration */
  10166. #define RCC_CFGR_HPRE_Pos (4U)
  10167. #define RCC_CFGR_HPRE_Msk (0xFUL << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */
  10168. #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */
  10169. #define RCC_CFGR_HPRE_0 (0x1UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */
  10170. #define RCC_CFGR_HPRE_1 (0x2UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */
  10171. #define RCC_CFGR_HPRE_2 (0x4UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */
  10172. #define RCC_CFGR_HPRE_3 (0x8UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */
  10173. #define RCC_CFGR_HPRE_DIV1 (0x00000000UL) /*!< SYSCLK not divided */
  10174. #define RCC_CFGR_HPRE_DIV2 (0x00000080UL) /*!< SYSCLK divided by 2 */
  10175. #define RCC_CFGR_HPRE_DIV4 (0x00000090UL) /*!< SYSCLK divided by 4 */
  10176. #define RCC_CFGR_HPRE_DIV8 (0x000000A0UL) /*!< SYSCLK divided by 8 */
  10177. #define RCC_CFGR_HPRE_DIV16 (0x000000B0UL) /*!< SYSCLK divided by 16 */
  10178. #define RCC_CFGR_HPRE_DIV64 (0x000000C0UL) /*!< SYSCLK divided by 64 */
  10179. #define RCC_CFGR_HPRE_DIV128 (0x000000D0UL) /*!< SYSCLK divided by 128 */
  10180. #define RCC_CFGR_HPRE_DIV256 (0x000000E0UL) /*!< SYSCLK divided by 256 */
  10181. #define RCC_CFGR_HPRE_DIV512 (0x000000F0UL) /*!< SYSCLK divided by 512 */
  10182. /*!< PPRE1 configuration */
  10183. #define RCC_CFGR_PPRE1_Pos (8U)
  10184. #define RCC_CFGR_PPRE1_Msk (0x7UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000700 */
  10185. #define RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_Msk /*!< PRE1[2:0] bits (APB2 prescaler) */
  10186. #define RCC_CFGR_PPRE1_0 (0x1UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000100 */
  10187. #define RCC_CFGR_PPRE1_1 (0x2UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000200 */
  10188. #define RCC_CFGR_PPRE1_2 (0x4UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000400 */
  10189. #define RCC_CFGR_PPRE1_DIV1 (0x00000000UL) /*!< HCLK not divided */
  10190. #define RCC_CFGR_PPRE1_DIV2 (0x00000400UL) /*!< HCLK divided by 2 */
  10191. #define RCC_CFGR_PPRE1_DIV4 (0x00000500UL) /*!< HCLK divided by 4 */
  10192. #define RCC_CFGR_PPRE1_DIV8 (0x00000600UL) /*!< HCLK divided by 8 */
  10193. #define RCC_CFGR_PPRE1_DIV16 (0x00000700UL) /*!< HCLK divided by 16 */
  10194. /*!< PPRE2 configuration */
  10195. #define RCC_CFGR_PPRE2_Pos (11U)
  10196. #define RCC_CFGR_PPRE2_Msk (0x7UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00003800 */
  10197. #define RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_Msk /*!< PRE2[2:0] bits (APB2 prescaler) */
  10198. #define RCC_CFGR_PPRE2_0 (0x1UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00000800 */
  10199. #define RCC_CFGR_PPRE2_1 (0x2UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00001000 */
  10200. #define RCC_CFGR_PPRE2_2 (0x4UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00002000 */
  10201. #define RCC_CFGR_PPRE2_DIV1 (0x00000000UL) /*!< HCLK not divided */
  10202. #define RCC_CFGR_PPRE2_DIV2 (0x00002000UL) /*!< HCLK divided by 2 */
  10203. #define RCC_CFGR_PPRE2_DIV4 (0x00002800UL) /*!< HCLK divided by 4 */
  10204. #define RCC_CFGR_PPRE2_DIV8 (0x00003000UL) /*!< HCLK divided by 8 */
  10205. #define RCC_CFGR_PPRE2_DIV16 (0x00003800UL) /*!< HCLK divided by 16 */
  10206. #define RCC_CFGR_STOPWUCK_Pos (15U)
  10207. #define RCC_CFGR_STOPWUCK_Msk (0x1UL << RCC_CFGR_STOPWUCK_Pos) /*!< 0x00008000 */
  10208. #define RCC_CFGR_STOPWUCK RCC_CFGR_STOPWUCK_Msk /*!< Wake Up from stop and CSS backup clock selection */
  10209. /*!< MCOSEL configuration */
  10210. #define RCC_CFGR_MCOSEL_Pos (24U)
  10211. #define RCC_CFGR_MCOSEL_Msk (0xFUL << RCC_CFGR_MCOSEL_Pos) /*!< 0x0F000000 */
  10212. #define RCC_CFGR_MCOSEL RCC_CFGR_MCOSEL_Msk /*!< MCOSEL [3:0] bits (Clock output selection) */
  10213. #define RCC_CFGR_MCOSEL_0 (0x1UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x01000000 */
  10214. #define RCC_CFGR_MCOSEL_1 (0x2UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x02000000 */
  10215. #define RCC_CFGR_MCOSEL_2 (0x4UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x04000000 */
  10216. #define RCC_CFGR_MCOSEL_3 (0x8UL << RCC_CFGR_MCOSEL_Pos) /*!< 0x08000000 */
  10217. #define RCC_CFGR_MCOPRE_Pos (28U)
  10218. #define RCC_CFGR_MCOPRE_Msk (0x7UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x70000000 */
  10219. #define RCC_CFGR_MCOPRE RCC_CFGR_MCOPRE_Msk /*!< MCO prescaler */
  10220. #define RCC_CFGR_MCOPRE_0 (0x1UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x10000000 */
  10221. #define RCC_CFGR_MCOPRE_1 (0x2UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x20000000 */
  10222. #define RCC_CFGR_MCOPRE_2 (0x4UL << RCC_CFGR_MCOPRE_Pos) /*!< 0x40000000 */
  10223. #define RCC_CFGR_MCOPRE_DIV1 (0x00000000UL) /*!< MCO is divided by 1 */
  10224. #define RCC_CFGR_MCOPRE_DIV2 (0x10000000UL) /*!< MCO is divided by 2 */
  10225. #define RCC_CFGR_MCOPRE_DIV4 (0x20000000UL) /*!< MCO is divided by 4 */
  10226. #define RCC_CFGR_MCOPRE_DIV8 (0x30000000UL) /*!< MCO is divided by 8 */
  10227. #define RCC_CFGR_MCOPRE_DIV16 (0x40000000UL) /*!< MCO is divided by 16 */
  10228. /******************** Bit definition for RCC_PLLCFGR register ***************/
  10229. #define RCC_PLLCFGR_PLLSRC_Pos (0U)
  10230. #define RCC_PLLCFGR_PLLSRC_Msk (0x3UL << RCC_PLLCFGR_PLLSRC_Pos) /*!< 0x00000003 */
  10231. #define RCC_PLLCFGR_PLLSRC RCC_PLLCFGR_PLLSRC_Msk
  10232. #define RCC_PLLCFGR_PLLSRC_0 (0x1UL << RCC_PLLCFGR_PLLSRC_Pos) /*!< 0x00000001 */
  10233. #define RCC_PLLCFGR_PLLSRC_1 (0x2UL << RCC_PLLCFGR_PLLSRC_Pos) /*!< 0x00000002 */
  10234. #define RCC_PLLCFGR_PLLSRC_MSI_Pos (0U)
  10235. #define RCC_PLLCFGR_PLLSRC_MSI_Msk (0x1UL << RCC_PLLCFGR_PLLSRC_MSI_Pos)/*!< 0x00000001 */
  10236. #define RCC_PLLCFGR_PLLSRC_MSI RCC_PLLCFGR_PLLSRC_MSI_Msk /*!< MSI oscillator source clock selected */
  10237. #define RCC_PLLCFGR_PLLSRC_HSI_Pos (1U)
  10238. #define RCC_PLLCFGR_PLLSRC_HSI_Msk (0x1UL << RCC_PLLCFGR_PLLSRC_HSI_Pos)/*!< 0x00000002 */
  10239. #define RCC_PLLCFGR_PLLSRC_HSI RCC_PLLCFGR_PLLSRC_HSI_Msk /*!< HSI16 oscillator source clock selected */
  10240. #define RCC_PLLCFGR_PLLSRC_HSE_Pos (0U)
  10241. #define RCC_PLLCFGR_PLLSRC_HSE_Msk (0x3UL << RCC_PLLCFGR_PLLSRC_HSE_Pos)/*!< 0x00000003 */
  10242. #define RCC_PLLCFGR_PLLSRC_HSE RCC_PLLCFGR_PLLSRC_HSE_Msk /*!< HSE oscillator source clock selected */
  10243. #define RCC_PLLCFGR_PLLM_Pos (4U)
  10244. #define RCC_PLLCFGR_PLLM_Msk (0xFUL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x000000F0 */
  10245. #define RCC_PLLCFGR_PLLM RCC_PLLCFGR_PLLM_Msk
  10246. #define RCC_PLLCFGR_PLLM_0 (0x1UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000010 */
  10247. #define RCC_PLLCFGR_PLLM_1 (0x2UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000020 */
  10248. #define RCC_PLLCFGR_PLLM_2 (0x4UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000040 */
  10249. #define RCC_PLLCFGR_PLLM_3 (0x8UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000080 */
  10250. #define RCC_PLLCFGR_PLLN_Pos (8U)
  10251. #define RCC_PLLCFGR_PLLN_Msk (0x7FUL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00007F00 */
  10252. #define RCC_PLLCFGR_PLLN RCC_PLLCFGR_PLLN_Msk
  10253. #define RCC_PLLCFGR_PLLN_0 (0x01UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000100 */
  10254. #define RCC_PLLCFGR_PLLN_1 (0x02UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000200 */
  10255. #define RCC_PLLCFGR_PLLN_2 (0x04UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000400 */
  10256. #define RCC_PLLCFGR_PLLN_3 (0x08UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000800 */
  10257. #define RCC_PLLCFGR_PLLN_4 (0x10UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00001000 */
  10258. #define RCC_PLLCFGR_PLLN_5 (0x20UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00002000 */
  10259. #define RCC_PLLCFGR_PLLN_6 (0x40UL << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00004000 */
  10260. #define RCC_PLLCFGR_PLLPEN_Pos (16U)
  10261. #define RCC_PLLCFGR_PLLPEN_Msk (0x1UL << RCC_PLLCFGR_PLLPEN_Pos) /*!< 0x00010000 */
  10262. #define RCC_PLLCFGR_PLLPEN RCC_PLLCFGR_PLLPEN_Msk
  10263. #define RCC_PLLCFGR_PLLP_Pos (17U)
  10264. #define RCC_PLLCFGR_PLLP_Msk (0x1UL << RCC_PLLCFGR_PLLP_Pos) /*!< 0x00020000 */
  10265. #define RCC_PLLCFGR_PLLP RCC_PLLCFGR_PLLP_Msk
  10266. #define RCC_PLLCFGR_PLLQEN_Pos (20U)
  10267. #define RCC_PLLCFGR_PLLQEN_Msk (0x1UL << RCC_PLLCFGR_PLLQEN_Pos) /*!< 0x00100000 */
  10268. #define RCC_PLLCFGR_PLLQEN RCC_PLLCFGR_PLLQEN_Msk
  10269. #define RCC_PLLCFGR_PLLQ_Pos (21U)
  10270. #define RCC_PLLCFGR_PLLQ_Msk (0x3UL << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00600000 */
  10271. #define RCC_PLLCFGR_PLLQ RCC_PLLCFGR_PLLQ_Msk
  10272. #define RCC_PLLCFGR_PLLQ_0 (0x1UL << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00200000 */
  10273. #define RCC_PLLCFGR_PLLQ_1 (0x2UL << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00400000 */
  10274. #define RCC_PLLCFGR_PLLREN_Pos (24U)
  10275. #define RCC_PLLCFGR_PLLREN_Msk (0x1UL << RCC_PLLCFGR_PLLREN_Pos) /*!< 0x01000000 */
  10276. #define RCC_PLLCFGR_PLLREN RCC_PLLCFGR_PLLREN_Msk
  10277. #define RCC_PLLCFGR_PLLR_Pos (25U)
  10278. #define RCC_PLLCFGR_PLLR_Msk (0x3UL << RCC_PLLCFGR_PLLR_Pos) /*!< 0x06000000 */
  10279. #define RCC_PLLCFGR_PLLR RCC_PLLCFGR_PLLR_Msk
  10280. #define RCC_PLLCFGR_PLLR_0 (0x1UL << RCC_PLLCFGR_PLLR_Pos) /*!< 0x02000000 */
  10281. #define RCC_PLLCFGR_PLLR_1 (0x2UL << RCC_PLLCFGR_PLLR_Pos) /*!< 0x04000000 */
  10282. #define RCC_PLLCFGR_PLLPDIV_Pos (27U)
  10283. #define RCC_PLLCFGR_PLLPDIV_Msk (0x1FUL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0xF8000000 */
  10284. #define RCC_PLLCFGR_PLLPDIV RCC_PLLCFGR_PLLPDIV_Msk
  10285. #define RCC_PLLCFGR_PLLPDIV_0 (0x01UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x08000000 */
  10286. #define RCC_PLLCFGR_PLLPDIV_1 (0x02UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x10000000 */
  10287. #define RCC_PLLCFGR_PLLPDIV_2 (0x04UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x20000000 */
  10288. #define RCC_PLLCFGR_PLLPDIV_3 (0x08UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x40000000 */
  10289. #define RCC_PLLCFGR_PLLPDIV_4 (0x10UL << RCC_PLLCFGR_PLLPDIV_Pos)/*!< 0x80000000 */
  10290. /******************** Bit definition for RCC_PLLSAI1CFGR register ************/
  10291. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos (0U)
  10292. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos)/*!< 0x00000003 */
  10293. #define RCC_PLLSAI1CFGR_PLLSAI1SRC RCC_PLLSAI1CFGR_PLLSAI1SRC_Msk
  10294. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos)/*!< 0x00000001 */
  10295. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_Pos)/*!< 0x00000002 */
  10296. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Pos (0U)
  10297. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Pos)/*!< 0x00000001 */
  10298. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI RCC_PLLSAI1CFGR_PLLSAI1SRC_MSI_Msk /*!< MSI oscillator source clock selected */
  10299. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Pos (1U)
  10300. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Pos)/*!< 0x00000002 */
  10301. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI RCC_PLLSAI1CFGR_PLLSAI1SRC_HSI_Msk /*!< HSI16 oscillator source clock selected */
  10302. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Pos (0U)
  10303. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Pos)/*!< 0x00000003 */
  10304. #define RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE RCC_PLLSAI1CFGR_PLLSAI1SRC_HSE_Msk /*!< HSE oscillator source clock selected */
  10305. #define RCC_PLLSAI1CFGR_PLLSAI1M_Pos (4U)
  10306. #define RCC_PLLSAI1CFGR_PLLSAI1M_Msk (0xFUL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x000000F0 */
  10307. #define RCC_PLLSAI1CFGR_PLLSAI1M RCC_PLLSAI1CFGR_PLLSAI1M_Msk
  10308. #define RCC_PLLSAI1CFGR_PLLSAI1M_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000010 */
  10309. #define RCC_PLLSAI1CFGR_PLLSAI1M_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000020 */
  10310. #define RCC_PLLSAI1CFGR_PLLSAI1M_2 (0x4UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000040 */
  10311. #define RCC_PLLSAI1CFGR_PLLSAI1M_3 (0x8UL << RCC_PLLSAI1CFGR_PLLSAI1M_Pos)/*!< 0x00000080 */
  10312. #define RCC_PLLSAI1CFGR_PLLSAI1N_Pos (8U)
  10313. #define RCC_PLLSAI1CFGR_PLLSAI1N_Msk (0x7FUL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00007F00 */
  10314. #define RCC_PLLSAI1CFGR_PLLSAI1N RCC_PLLSAI1CFGR_PLLSAI1N_Msk
  10315. #define RCC_PLLSAI1CFGR_PLLSAI1N_0 (0x01UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000100 */
  10316. #define RCC_PLLSAI1CFGR_PLLSAI1N_1 (0x02UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000200 */
  10317. #define RCC_PLLSAI1CFGR_PLLSAI1N_2 (0x04UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000400 */
  10318. #define RCC_PLLSAI1CFGR_PLLSAI1N_3 (0x08UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00000800 */
  10319. #define RCC_PLLSAI1CFGR_PLLSAI1N_4 (0x10UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00001000 */
  10320. #define RCC_PLLSAI1CFGR_PLLSAI1N_5 (0x20UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00002000 */
  10321. #define RCC_PLLSAI1CFGR_PLLSAI1N_6 (0x40UL << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)/*!< 0x00004000 */
  10322. #define RCC_PLLSAI1CFGR_PLLSAI1PEN_Pos (16U)
  10323. #define RCC_PLLSAI1CFGR_PLLSAI1PEN_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1PEN_Pos)/*!< 0x00010000 */
  10324. #define RCC_PLLSAI1CFGR_PLLSAI1PEN RCC_PLLSAI1CFGR_PLLSAI1PEN_Msk
  10325. #define RCC_PLLSAI1CFGR_PLLSAI1P_Pos (17U)
  10326. #define RCC_PLLSAI1CFGR_PLLSAI1P_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1P_Pos)/*!< 0x00020000 */
  10327. #define RCC_PLLSAI1CFGR_PLLSAI1P RCC_PLLSAI1CFGR_PLLSAI1P_Msk
  10328. #define RCC_PLLSAI1CFGR_PLLSAI1QEN_Pos (20U)
  10329. #define RCC_PLLSAI1CFGR_PLLSAI1QEN_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1QEN_Pos)/*!< 0x00100000 */
  10330. #define RCC_PLLSAI1CFGR_PLLSAI1QEN RCC_PLLSAI1CFGR_PLLSAI1QEN_Msk
  10331. #define RCC_PLLSAI1CFGR_PLLSAI1Q_Pos (21U)
  10332. #define RCC_PLLSAI1CFGR_PLLSAI1Q_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)/*!< 0x00600000 */
  10333. #define RCC_PLLSAI1CFGR_PLLSAI1Q RCC_PLLSAI1CFGR_PLLSAI1Q_Msk
  10334. #define RCC_PLLSAI1CFGR_PLLSAI1Q_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)/*!< 0x00200000 */
  10335. #define RCC_PLLSAI1CFGR_PLLSAI1Q_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)/*!< 0x00400000 */
  10336. #define RCC_PLLSAI1CFGR_PLLSAI1REN_Pos (24U)
  10337. #define RCC_PLLSAI1CFGR_PLLSAI1REN_Msk (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1REN_Pos)/*!< 0x01000000 */
  10338. #define RCC_PLLSAI1CFGR_PLLSAI1REN RCC_PLLSAI1CFGR_PLLSAI1REN_Msk
  10339. #define RCC_PLLSAI1CFGR_PLLSAI1R_Pos (25U)
  10340. #define RCC_PLLSAI1CFGR_PLLSAI1R_Msk (0x3UL << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)/*!< 0x06000000 */
  10341. #define RCC_PLLSAI1CFGR_PLLSAI1R RCC_PLLSAI1CFGR_PLLSAI1R_Msk
  10342. #define RCC_PLLSAI1CFGR_PLLSAI1R_0 (0x1UL << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)/*!< 0x02000000 */
  10343. #define RCC_PLLSAI1CFGR_PLLSAI1R_1 (0x2UL << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)/*!< 0x04000000 */
  10344. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos (27U)
  10345. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_Msk (0x1FUL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0xF8000000 */
  10346. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV RCC_PLLSAI1CFGR_PLLSAI1PDIV_Msk
  10347. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_0 (0x01UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x08000000 */
  10348. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_1 (0x02UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x10000000 */
  10349. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_2 (0x04UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x20000000 */
  10350. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_3 (0x08UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x40000000 */
  10351. #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_4 (0x10UL << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)/*!< 0x80000000 */
  10352. /******************** Bit definition for RCC_PLLSAI2CFGR register ************/
  10353. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos (0U)
  10354. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_Msk (0x3UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos)/*!< 0x00000003 */
  10355. #define RCC_PLLSAI2CFGR_PLLSAI2SRC RCC_PLLSAI2CFGR_PLLSAI2SRC_Msk
  10356. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_0 (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos)/*!< 0x00000001 */
  10357. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_1 (0x2UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_Pos)/*!< 0x00000002 */
  10358. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Pos (0U)
  10359. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Pos)/*!< 0x00000001 */
  10360. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI RCC_PLLSAI2CFGR_PLLSAI2SRC_MSI_Msk /*!< MSI oscillator source clock selected */
  10361. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Pos (1U)
  10362. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Pos)/*!< 0x00000002 */
  10363. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI RCC_PLLSAI2CFGR_PLLSAI2SRC_HSI_Msk /*!< HSI16 oscillator source clock selected */
  10364. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Pos (0U)
  10365. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Msk (0x3UL << RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Pos)/*!< 0x00000003 */
  10366. #define RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE RCC_PLLSAI2CFGR_PLLSAI2SRC_HSE_Msk /*!< HSE oscillator source clock selected */
  10367. #define RCC_PLLSAI2CFGR_PLLSAI2M_Pos (4U)
  10368. #define RCC_PLLSAI2CFGR_PLLSAI2M_Msk (0xFUL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x000000F0 */
  10369. #define RCC_PLLSAI2CFGR_PLLSAI2M RCC_PLLSAI2CFGR_PLLSAI2M_Msk
  10370. #define RCC_PLLSAI2CFGR_PLLSAI2M_0 (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000010 */
  10371. #define RCC_PLLSAI2CFGR_PLLSAI2M_1 (0x2UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000020 */
  10372. #define RCC_PLLSAI2CFGR_PLLSAI2M_2 (0x4UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000040 */
  10373. #define RCC_PLLSAI2CFGR_PLLSAI2M_3 (0x8UL << RCC_PLLSAI2CFGR_PLLSAI2M_Pos)/*!< 0x00000080 */
  10374. #define RCC_PLLSAI2CFGR_PLLSAI2N_Pos (8U)
  10375. #define RCC_PLLSAI2CFGR_PLLSAI2N_Msk (0x7FUL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00007F00 */
  10376. #define RCC_PLLSAI2CFGR_PLLSAI2N RCC_PLLSAI2CFGR_PLLSAI2N_Msk
  10377. #define RCC_PLLSAI2CFGR_PLLSAI2N_0 (0x01UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000100 */
  10378. #define RCC_PLLSAI2CFGR_PLLSAI2N_1 (0x02UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000200 */
  10379. #define RCC_PLLSAI2CFGR_PLLSAI2N_2 (0x04UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000400 */
  10380. #define RCC_PLLSAI2CFGR_PLLSAI2N_3 (0x08UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00000800 */
  10381. #define RCC_PLLSAI2CFGR_PLLSAI2N_4 (0x10UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00001000 */
  10382. #define RCC_PLLSAI2CFGR_PLLSAI2N_5 (0x20UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00002000 */
  10383. #define RCC_PLLSAI2CFGR_PLLSAI2N_6 (0x40UL << RCC_PLLSAI2CFGR_PLLSAI2N_Pos)/*!< 0x00004000 */
  10384. #define RCC_PLLSAI2CFGR_PLLSAI2PEN_Pos (16U)
  10385. #define RCC_PLLSAI2CFGR_PLLSAI2PEN_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2PEN_Pos)/*!< 0x00010000 */
  10386. #define RCC_PLLSAI2CFGR_PLLSAI2PEN RCC_PLLSAI2CFGR_PLLSAI2PEN_Msk
  10387. #define RCC_PLLSAI2CFGR_PLLSAI2P_Pos (17U)
  10388. #define RCC_PLLSAI2CFGR_PLLSAI2P_Msk (0x1UL << RCC_PLLSAI2CFGR_PLLSAI2P_Pos)/*!< 0x00020000 */
  10389. #define RCC_PLLSAI2CFGR_PLLSAI2P RCC_PLLSAI2CFGR_PLLSAI2P_Msk
  10390. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos (27U)
  10391. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_Msk (0x1FUL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0xF8000000 */
  10392. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV RCC_PLLSAI2CFGR_PLLSAI2PDIV_Msk
  10393. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_0 (0x01UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x08000000 */
  10394. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_1 (0x02UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x10000000 */
  10395. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_2 (0x04UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x20000000 */
  10396. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_3 (0x08UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x40000000 */
  10397. #define RCC_PLLSAI2CFGR_PLLSAI2PDIV_4 (0x10UL << RCC_PLLSAI2CFGR_PLLSAI2PDIV_Pos)/*!< 0x80000000 */
  10398. /******************** Bit definition for RCC_CIER register ******************/
  10399. #define RCC_CIER_LSIRDYIE_Pos (0U)
  10400. #define RCC_CIER_LSIRDYIE_Msk (0x1UL << RCC_CIER_LSIRDYIE_Pos) /*!< 0x00000001 */
  10401. #define RCC_CIER_LSIRDYIE RCC_CIER_LSIRDYIE_Msk
  10402. #define RCC_CIER_LSERDYIE_Pos (1U)
  10403. #define RCC_CIER_LSERDYIE_Msk (0x1UL << RCC_CIER_LSERDYIE_Pos) /*!< 0x00000002 */
  10404. #define RCC_CIER_LSERDYIE RCC_CIER_LSERDYIE_Msk
  10405. #define RCC_CIER_MSIRDYIE_Pos (2U)
  10406. #define RCC_CIER_MSIRDYIE_Msk (0x1UL << RCC_CIER_MSIRDYIE_Pos) /*!< 0x00000004 */
  10407. #define RCC_CIER_MSIRDYIE RCC_CIER_MSIRDYIE_Msk
  10408. #define RCC_CIER_HSIRDYIE_Pos (3U)
  10409. #define RCC_CIER_HSIRDYIE_Msk (0x1UL << RCC_CIER_HSIRDYIE_Pos) /*!< 0x00000008 */
  10410. #define RCC_CIER_HSIRDYIE RCC_CIER_HSIRDYIE_Msk
  10411. #define RCC_CIER_HSERDYIE_Pos (4U)
  10412. #define RCC_CIER_HSERDYIE_Msk (0x1UL << RCC_CIER_HSERDYIE_Pos) /*!< 0x00000010 */
  10413. #define RCC_CIER_HSERDYIE RCC_CIER_HSERDYIE_Msk
  10414. #define RCC_CIER_PLLRDYIE_Pos (5U)
  10415. #define RCC_CIER_PLLRDYIE_Msk (0x1UL << RCC_CIER_PLLRDYIE_Pos) /*!< 0x00000020 */
  10416. #define RCC_CIER_PLLRDYIE RCC_CIER_PLLRDYIE_Msk
  10417. #define RCC_CIER_PLLSAI1RDYIE_Pos (6U)
  10418. #define RCC_CIER_PLLSAI1RDYIE_Msk (0x1UL << RCC_CIER_PLLSAI1RDYIE_Pos)/*!< 0x00000040 */
  10419. #define RCC_CIER_PLLSAI1RDYIE RCC_CIER_PLLSAI1RDYIE_Msk
  10420. #define RCC_CIER_PLLSAI2RDYIE_Pos (7U)
  10421. #define RCC_CIER_PLLSAI2RDYIE_Msk (0x1UL << RCC_CIER_PLLSAI2RDYIE_Pos)/*!< 0x00000080 */
  10422. #define RCC_CIER_PLLSAI2RDYIE RCC_CIER_PLLSAI2RDYIE_Msk
  10423. #define RCC_CIER_HSI48RDYIE_Pos (10U)
  10424. #define RCC_CIER_HSI48RDYIE_Msk (0x1UL << RCC_CIER_HSI48RDYIE_Pos)/*!< 0x00000400 */
  10425. #define RCC_CIER_HSI48RDYIE RCC_CIER_HSI48RDYIE_Msk
  10426. /******************** Bit definition for RCC_CIFR register ****************/
  10427. #define RCC_CIFR_LSIRDYF_Pos (0U)
  10428. #define RCC_CIFR_LSIRDYF_Msk (0x1UL << RCC_CIFR_LSIRDYF_Pos) /*!< 0x00000001 */
  10429. #define RCC_CIFR_LSIRDYF RCC_CIFR_LSIRDYF_Msk
  10430. #define RCC_CIFR_LSERDYF_Pos (1U)
  10431. #define RCC_CIFR_LSERDYF_Msk (0x1UL << RCC_CIFR_LSERDYF_Pos) /*!< 0x00000002 */
  10432. #define RCC_CIFR_LSERDYF RCC_CIFR_LSERDYF_Msk
  10433. #define RCC_CIFR_MSIRDYF_Pos (2U)
  10434. #define RCC_CIFR_MSIRDYF_Msk (0x1UL << RCC_CIFR_MSIRDYF_Pos) /*!< 0x00000004 */
  10435. #define RCC_CIFR_MSIRDYF RCC_CIFR_MSIRDYF_Msk
  10436. #define RCC_CIFR_HSIRDYF_Pos (3U)
  10437. #define RCC_CIFR_HSIRDYF_Msk (0x1UL << RCC_CIFR_HSIRDYF_Pos) /*!< 0x00000008 */
  10438. #define RCC_CIFR_HSIRDYF RCC_CIFR_HSIRDYF_Msk
  10439. #define RCC_CIFR_HSERDYF_Pos (4U)
  10440. #define RCC_CIFR_HSERDYF_Msk (0x1UL << RCC_CIFR_HSERDYF_Pos) /*!< 0x00000010 */
  10441. #define RCC_CIFR_HSERDYF RCC_CIFR_HSERDYF_Msk
  10442. #define RCC_CIFR_PLLRDYF_Pos (5U)
  10443. #define RCC_CIFR_PLLRDYF_Msk (0x1UL << RCC_CIFR_PLLRDYF_Pos) /*!< 0x00000020 */
  10444. #define RCC_CIFR_PLLRDYF RCC_CIFR_PLLRDYF_Msk
  10445. #define RCC_CIFR_PLLSAI1RDYF_Pos (6U)
  10446. #define RCC_CIFR_PLLSAI1RDYF_Msk (0x1UL << RCC_CIFR_PLLSAI1RDYF_Pos)/*!< 0x00000040 */
  10447. #define RCC_CIFR_PLLSAI1RDYF RCC_CIFR_PLLSAI1RDYF_Msk
  10448. #define RCC_CIFR_PLLSAI2RDYF_Pos (7U)
  10449. #define RCC_CIFR_PLLSAI2RDYF_Msk (0x1UL << RCC_CIFR_PLLSAI2RDYF_Pos)/*!< 0x00000080 */
  10450. #define RCC_CIFR_PLLSAI2RDYF RCC_CIFR_PLLSAI2RDYF_Msk
  10451. #define RCC_CIFR_CSSF_Pos (8U)
  10452. #define RCC_CIFR_CSSF_Msk (0x1UL << RCC_CIFR_CSSF_Pos) /*!< 0x00000100 */
  10453. #define RCC_CIFR_CSSF RCC_CIFR_CSSF_Msk
  10454. #define RCC_CIFR_HSI48RDYF_Pos (10U)
  10455. #define RCC_CIFR_HSI48RDYF_Msk (0x1UL << RCC_CIFR_HSI48RDYF_Pos) /*!< 0x00000400 */
  10456. #define RCC_CIFR_HSI48RDYF RCC_CIFR_HSI48RDYF_Msk
  10457. /******************** Bit definition for RCC_CICR register ****************/
  10458. #define RCC_CICR_LSIRDYC_Pos (0U)
  10459. #define RCC_CICR_LSIRDYC_Msk (0x1UL << RCC_CICR_LSIRDYC_Pos) /*!< 0x00000001 */
  10460. #define RCC_CICR_LSIRDYC RCC_CICR_LSIRDYC_Msk
  10461. #define RCC_CICR_LSERDYC_Pos (1U)
  10462. #define RCC_CICR_LSERDYC_Msk (0x1UL << RCC_CICR_LSERDYC_Pos) /*!< 0x00000002 */
  10463. #define RCC_CICR_LSERDYC RCC_CICR_LSERDYC_Msk
  10464. #define RCC_CICR_MSIRDYC_Pos (2U)
  10465. #define RCC_CICR_MSIRDYC_Msk (0x1UL << RCC_CICR_MSIRDYC_Pos) /*!< 0x00000004 */
  10466. #define RCC_CICR_MSIRDYC RCC_CICR_MSIRDYC_Msk
  10467. #define RCC_CICR_HSIRDYC_Pos (3U)
  10468. #define RCC_CICR_HSIRDYC_Msk (0x1UL << RCC_CICR_HSIRDYC_Pos) /*!< 0x00000008 */
  10469. #define RCC_CICR_HSIRDYC RCC_CICR_HSIRDYC_Msk
  10470. #define RCC_CICR_HSERDYC_Pos (4U)
  10471. #define RCC_CICR_HSERDYC_Msk (0x1UL << RCC_CICR_HSERDYC_Pos) /*!< 0x00000010 */
  10472. #define RCC_CICR_HSERDYC RCC_CICR_HSERDYC_Msk
  10473. #define RCC_CICR_PLLRDYC_Pos (5U)
  10474. #define RCC_CICR_PLLRDYC_Msk (0x1UL << RCC_CICR_PLLRDYC_Pos) /*!< 0x00000020 */
  10475. #define RCC_CICR_PLLRDYC RCC_CICR_PLLRDYC_Msk
  10476. #define RCC_CICR_PLLSAI1RDYC_Pos (6U)
  10477. #define RCC_CICR_PLLSAI1RDYC_Msk (0x1UL << RCC_CICR_PLLSAI1RDYC_Pos)/*!< 0x00000040 */
  10478. #define RCC_CICR_PLLSAI1RDYC RCC_CICR_PLLSAI1RDYC_Msk
  10479. #define RCC_CICR_PLLSAI2RDYC_Pos (7U)
  10480. #define RCC_CICR_PLLSAI2RDYC_Msk (0x1UL << RCC_CICR_PLLSAI2RDYC_Pos)/*!< 0x00000080 */
  10481. #define RCC_CICR_PLLSAI2RDYC RCC_CICR_PLLSAI2RDYC_Msk
  10482. #define RCC_CICR_CSSC_Pos (8U)
  10483. #define RCC_CICR_CSSC_Msk (0x1UL << RCC_CICR_CSSC_Pos) /*!< 0x00000100 */
  10484. #define RCC_CICR_CSSC RCC_CICR_CSSC_Msk
  10485. #define RCC_CICR_HSI48RDYC_Pos (10U)
  10486. #define RCC_CICR_HSI48RDYC_Msk (0x1UL << RCC_CICR_HSI48RDYC_Pos) /*!< 0x00000400 */
  10487. #define RCC_CICR_HSI48RDYC RCC_CICR_HSI48RDYC_Msk
  10488. /******************** Bit definition for RCC_AHB1RSTR register **************/
  10489. #define RCC_AHB1RSTR_DMA1RST_Pos (0U)
  10490. #define RCC_AHB1RSTR_DMA1RST_Msk (0x1UL << RCC_AHB1RSTR_DMA1RST_Pos)/*!< 0x00000001 */
  10491. #define RCC_AHB1RSTR_DMA1RST RCC_AHB1RSTR_DMA1RST_Msk
  10492. #define RCC_AHB1RSTR_DMA2RST_Pos (1U)
  10493. #define RCC_AHB1RSTR_DMA2RST_Msk (0x1UL << RCC_AHB1RSTR_DMA2RST_Pos)/*!< 0x00000002 */
  10494. #define RCC_AHB1RSTR_DMA2RST RCC_AHB1RSTR_DMA2RST_Msk
  10495. #define RCC_AHB1RSTR_DMAMUX1RST_Pos (2U)
  10496. #define RCC_AHB1RSTR_DMAMUX1RST_Msk (0x1UL << RCC_AHB1RSTR_DMAMUX1RST_Pos)/*!< 0x00000004 */
  10497. #define RCC_AHB1RSTR_DMAMUX1RST RCC_AHB1RSTR_DMAMUX1RST_Msk
  10498. #define RCC_AHB1RSTR_FLASHRST_Pos (8U)
  10499. #define RCC_AHB1RSTR_FLASHRST_Msk (0x1UL << RCC_AHB1RSTR_FLASHRST_Pos)/*!< 0x00000100 */
  10500. #define RCC_AHB1RSTR_FLASHRST RCC_AHB1RSTR_FLASHRST_Msk
  10501. #define RCC_AHB1RSTR_CRCRST_Pos (12U)
  10502. #define RCC_AHB1RSTR_CRCRST_Msk (0x1UL << RCC_AHB1RSTR_CRCRST_Pos)/*!< 0x00001000 */
  10503. #define RCC_AHB1RSTR_CRCRST RCC_AHB1RSTR_CRCRST_Msk
  10504. #define RCC_AHB1RSTR_TSCRST_Pos (16U)
  10505. #define RCC_AHB1RSTR_TSCRST_Msk (0x1UL << RCC_AHB1RSTR_TSCRST_Pos)/*!< 0x00010000 */
  10506. #define RCC_AHB1RSTR_TSCRST RCC_AHB1RSTR_TSCRST_Msk
  10507. /******************** Bit definition for RCC_AHB2RSTR register **************/
  10508. #define RCC_AHB2RSTR_GPIOARST_Pos (0U)
  10509. #define RCC_AHB2RSTR_GPIOARST_Msk (0x1UL << RCC_AHB2RSTR_GPIOARST_Pos)/*!< 0x00000001 */
  10510. #define RCC_AHB2RSTR_GPIOARST RCC_AHB2RSTR_GPIOARST_Msk
  10511. #define RCC_AHB2RSTR_GPIOBRST_Pos (1U)
  10512. #define RCC_AHB2RSTR_GPIOBRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOBRST_Pos)/*!< 0x00000002 */
  10513. #define RCC_AHB2RSTR_GPIOBRST RCC_AHB2RSTR_GPIOBRST_Msk
  10514. #define RCC_AHB2RSTR_GPIOCRST_Pos (2U)
  10515. #define RCC_AHB2RSTR_GPIOCRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOCRST_Pos)/*!< 0x00000004 */
  10516. #define RCC_AHB2RSTR_GPIOCRST RCC_AHB2RSTR_GPIOCRST_Msk
  10517. #define RCC_AHB2RSTR_GPIODRST_Pos (3U)
  10518. #define RCC_AHB2RSTR_GPIODRST_Msk (0x1UL << RCC_AHB2RSTR_GPIODRST_Pos)/*!< 0x00000008 */
  10519. #define RCC_AHB2RSTR_GPIODRST RCC_AHB2RSTR_GPIODRST_Msk
  10520. #define RCC_AHB2RSTR_GPIOERST_Pos (4U)
  10521. #define RCC_AHB2RSTR_GPIOERST_Msk (0x1UL << RCC_AHB2RSTR_GPIOERST_Pos)/*!< 0x00000010 */
  10522. #define RCC_AHB2RSTR_GPIOERST RCC_AHB2RSTR_GPIOERST_Msk
  10523. #define RCC_AHB2RSTR_GPIOFRST_Pos (5U)
  10524. #define RCC_AHB2RSTR_GPIOFRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOFRST_Pos)/*!< 0x00000020 */
  10525. #define RCC_AHB2RSTR_GPIOFRST RCC_AHB2RSTR_GPIOFRST_Msk
  10526. #define RCC_AHB2RSTR_GPIOGRST_Pos (6U)
  10527. #define RCC_AHB2RSTR_GPIOGRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOGRST_Pos)/*!< 0x00000040 */
  10528. #define RCC_AHB2RSTR_GPIOGRST RCC_AHB2RSTR_GPIOGRST_Msk
  10529. #define RCC_AHB2RSTR_GPIOHRST_Pos (7U)
  10530. #define RCC_AHB2RSTR_GPIOHRST_Msk (0x1UL << RCC_AHB2RSTR_GPIOHRST_Pos)/*!< 0x00000080 */
  10531. #define RCC_AHB2RSTR_GPIOHRST RCC_AHB2RSTR_GPIOHRST_Msk
  10532. #define RCC_AHB2RSTR_ADCRST_Pos (13U)
  10533. #define RCC_AHB2RSTR_ADCRST_Msk (0x1UL << RCC_AHB2RSTR_ADCRST_Pos)/*!< 0x00002000 */
  10534. #define RCC_AHB2RSTR_ADCRST RCC_AHB2RSTR_ADCRST_Msk
  10535. #define RCC_AHB2RSTR_HASHRST_Pos (17U)
  10536. #define RCC_AHB2RSTR_HASHRST_Msk (0x1UL << RCC_AHB2RSTR_HASHRST_Pos)/*!< 0x00020000 */
  10537. #define RCC_AHB2RSTR_HASHRST RCC_AHB2RSTR_HASHRST_Msk
  10538. #define RCC_AHB2RSTR_RNGRST_Pos (18U)
  10539. #define RCC_AHB2RSTR_RNGRST_Msk (0x1UL << RCC_AHB2RSTR_RNGRST_Pos)/*!< 0x00040000 */
  10540. #define RCC_AHB2RSTR_RNGRST RCC_AHB2RSTR_RNGRST_Msk
  10541. #define RCC_AHB2RSTR_SDMMC1RST_Pos (22U)
  10542. #define RCC_AHB2RSTR_SDMMC1RST_Msk (0x1UL << RCC_AHB2RSTR_SDMMC1RST_Pos)/*!< 0x00400000 */
  10543. #define RCC_AHB2RSTR_SDMMC1RST RCC_AHB2RSTR_SDMMC1RST_Msk
  10544. /******************** Bit definition for RCC_AHB3RSTR register **************/
  10545. #define RCC_AHB3RSTR_FMCRST_Pos (0U)
  10546. #define RCC_AHB3RSTR_FMCRST_Msk (0x1UL << RCC_AHB3RSTR_FMCRST_Pos)/*!< 0x00000001 */
  10547. #define RCC_AHB3RSTR_FMCRST RCC_AHB3RSTR_FMCRST_Msk
  10548. #define RCC_AHB3RSTR_OSPI1RST_Pos (8U)
  10549. #define RCC_AHB3RSTR_OSPI1RST_Msk (0x1UL << RCC_AHB3RSTR_OSPI1RST_Pos)/*!< 0x00000100 */
  10550. #define RCC_AHB3RSTR_OSPI1RST RCC_AHB3RSTR_OSPI1RST_Msk
  10551. /******************** Bit definition for RCC_APB1RSTR1 register **************/
  10552. #define RCC_APB1RSTR1_TIM2RST_Pos (0U)
  10553. #define RCC_APB1RSTR1_TIM2RST_Msk (0x1UL << RCC_APB1RSTR1_TIM2RST_Pos)/*!< 0x00000001 */
  10554. #define RCC_APB1RSTR1_TIM2RST RCC_APB1RSTR1_TIM2RST_Msk
  10555. #define RCC_APB1RSTR1_TIM3RST_Pos (1U)
  10556. #define RCC_APB1RSTR1_TIM3RST_Msk (0x1UL << RCC_APB1RSTR1_TIM3RST_Pos)/*!< 0x00000002 */
  10557. #define RCC_APB1RSTR1_TIM3RST RCC_APB1RSTR1_TIM3RST_Msk
  10558. #define RCC_APB1RSTR1_TIM4RST_Pos (2U)
  10559. #define RCC_APB1RSTR1_TIM4RST_Msk (0x1UL << RCC_APB1RSTR1_TIM4RST_Pos)/*!< 0x00000004 */
  10560. #define RCC_APB1RSTR1_TIM4RST RCC_APB1RSTR1_TIM4RST_Msk
  10561. #define RCC_APB1RSTR1_TIM5RST_Pos (3U)
  10562. #define RCC_APB1RSTR1_TIM5RST_Msk (0x1UL << RCC_APB1RSTR1_TIM5RST_Pos)/*!< 0x00000008 */
  10563. #define RCC_APB1RSTR1_TIM5RST RCC_APB1RSTR1_TIM5RST_Msk
  10564. #define RCC_APB1RSTR1_TIM6RST_Pos (4U)
  10565. #define RCC_APB1RSTR1_TIM6RST_Msk (0x1UL << RCC_APB1RSTR1_TIM6RST_Pos)/*!< 0x00000010 */
  10566. #define RCC_APB1RSTR1_TIM6RST RCC_APB1RSTR1_TIM6RST_Msk
  10567. #define RCC_APB1RSTR1_TIM7RST_Pos (5U)
  10568. #define RCC_APB1RSTR1_TIM7RST_Msk (0x1UL << RCC_APB1RSTR1_TIM7RST_Pos)/*!< 0x00000020 */
  10569. #define RCC_APB1RSTR1_TIM7RST RCC_APB1RSTR1_TIM7RST_Msk
  10570. #define RCC_APB1RSTR1_SPI2RST_Pos (14U)
  10571. #define RCC_APB1RSTR1_SPI2RST_Msk (0x1UL << RCC_APB1RSTR1_SPI2RST_Pos)/*!< 0x00004000 */
  10572. #define RCC_APB1RSTR1_SPI2RST RCC_APB1RSTR1_SPI2RST_Msk
  10573. #define RCC_APB1RSTR1_SPI3RST_Pos (15U)
  10574. #define RCC_APB1RSTR1_SPI3RST_Msk (0x1UL << RCC_APB1RSTR1_SPI3RST_Pos)/*!< 0x00008000 */
  10575. #define RCC_APB1RSTR1_SPI3RST RCC_APB1RSTR1_SPI3RST_Msk
  10576. #define RCC_APB1RSTR1_USART2RST_Pos (17U)
  10577. #define RCC_APB1RSTR1_USART2RST_Msk (0x1UL << RCC_APB1RSTR1_USART2RST_Pos)/*!< 0x00020000 */
  10578. #define RCC_APB1RSTR1_USART2RST RCC_APB1RSTR1_USART2RST_Msk
  10579. #define RCC_APB1RSTR1_USART3RST_Pos (18U)
  10580. #define RCC_APB1RSTR1_USART3RST_Msk (0x1UL << RCC_APB1RSTR1_USART3RST_Pos)/*!< 0x00040000 */
  10581. #define RCC_APB1RSTR1_USART3RST RCC_APB1RSTR1_USART3RST_Msk
  10582. #define RCC_APB1RSTR1_UART4RST_Pos (19U)
  10583. #define RCC_APB1RSTR1_UART4RST_Msk (0x1UL << RCC_APB1RSTR1_UART4RST_Pos)/*!< 0x00080000 */
  10584. #define RCC_APB1RSTR1_UART4RST RCC_APB1RSTR1_UART4RST_Msk
  10585. #define RCC_APB1RSTR1_UART5RST_Pos (20U)
  10586. #define RCC_APB1RSTR1_UART5RST_Msk (0x1UL << RCC_APB1RSTR1_UART5RST_Pos)/*!< 0x00100000 */
  10587. #define RCC_APB1RSTR1_UART5RST RCC_APB1RSTR1_UART5RST_Msk
  10588. #define RCC_APB1RSTR1_I2C1RST_Pos (21U)
  10589. #define RCC_APB1RSTR1_I2C1RST_Msk (0x1UL << RCC_APB1RSTR1_I2C1RST_Pos)/*!< 0x00200000 */
  10590. #define RCC_APB1RSTR1_I2C1RST RCC_APB1RSTR1_I2C1RST_Msk
  10591. #define RCC_APB1RSTR1_I2C2RST_Pos (22U)
  10592. #define RCC_APB1RSTR1_I2C2RST_Msk (0x1UL << RCC_APB1RSTR1_I2C2RST_Pos)/*!< 0x00400000 */
  10593. #define RCC_APB1RSTR1_I2C2RST RCC_APB1RSTR1_I2C2RST_Msk
  10594. #define RCC_APB1RSTR1_I2C3RST_Pos (23U)
  10595. #define RCC_APB1RSTR1_I2C3RST_Msk (0x1UL << RCC_APB1RSTR1_I2C3RST_Pos)/*!< 0x00800000 */
  10596. #define RCC_APB1RSTR1_I2C3RST RCC_APB1RSTR1_I2C3RST_Msk
  10597. #define RCC_APB1RSTR1_CRSRST_Pos (24U)
  10598. #define RCC_APB1RSTR1_CRSRST_Msk (0x1UL << RCC_APB1RSTR1_CRSRST_Pos)/*!< 0x01000000 */
  10599. #define RCC_APB1RSTR1_CRSRST RCC_APB1RSTR1_CRSRST_Msk
  10600. #define RCC_APB1RSTR1_PWRRST_Pos (28U)
  10601. #define RCC_APB1RSTR1_PWRRST_Msk (0x1UL << RCC_APB1RSTR1_PWRRST_Pos)/*!< 0x10000000 */
  10602. #define RCC_APB1RSTR1_PWRRST RCC_APB1RSTR1_PWRRST_Msk
  10603. #define RCC_APB1RSTR1_DAC1RST_Pos (29U)
  10604. #define RCC_APB1RSTR1_DAC1RST_Msk (0x1UL << RCC_APB1RSTR1_DAC1RST_Pos)/*!< 0x20000000 */
  10605. #define RCC_APB1RSTR1_DAC1RST RCC_APB1RSTR1_DAC1RST_Msk
  10606. #define RCC_APB1RSTR1_OPAMPRST_Pos (30U)
  10607. #define RCC_APB1RSTR1_OPAMPRST_Msk (0x1UL << RCC_APB1RSTR1_OPAMPRST_Pos)/*!< 0x40000000 */
  10608. #define RCC_APB1RSTR1_OPAMPRST RCC_APB1RSTR1_OPAMPRST_Msk
  10609. #define RCC_APB1RSTR1_LPTIM1RST_Pos (31U)
  10610. #define RCC_APB1RSTR1_LPTIM1RST_Msk (0x1UL << RCC_APB1RSTR1_LPTIM1RST_Pos)/*!< 0x80000000 */
  10611. #define RCC_APB1RSTR1_LPTIM1RST RCC_APB1RSTR1_LPTIM1RST_Msk
  10612. /******************** Bit definition for RCC_APB1RSTR2 register **************/
  10613. #define RCC_APB1RSTR2_LPUART1RST_Pos (0U)
  10614. #define RCC_APB1RSTR2_LPUART1RST_Msk (0x1UL << RCC_APB1RSTR2_LPUART1RST_Pos)/*!< 0x00000001 */
  10615. #define RCC_APB1RSTR2_LPUART1RST RCC_APB1RSTR2_LPUART1RST_Msk
  10616. #define RCC_APB1RSTR2_I2C4RST_Pos (1U)
  10617. #define RCC_APB1RSTR2_I2C4RST_Msk (0x1UL << RCC_APB1RSTR2_I2C4RST_Pos)/*!< 0x00000002 */
  10618. #define RCC_APB1RSTR2_I2C4RST RCC_APB1RSTR2_I2C4RST_Msk
  10619. #define RCC_APB1RSTR2_LPTIM2RST_Pos (5U)
  10620. #define RCC_APB1RSTR2_LPTIM2RST_Msk (0x1UL << RCC_APB1RSTR2_LPTIM2RST_Pos)/*!< 0x00000020 */
  10621. #define RCC_APB1RSTR2_LPTIM2RST RCC_APB1RSTR2_LPTIM2RST_Msk
  10622. #define RCC_APB1RSTR2_LPTIM3RST_Pos (6U)
  10623. #define RCC_APB1RSTR2_LPTIM3RST_Msk (0x1UL << RCC_APB1RSTR2_LPTIM3RST_Pos)/*!< 0x00000040 */
  10624. #define RCC_APB1RSTR2_LPTIM3RST RCC_APB1RSTR2_LPTIM3RST_Msk
  10625. #define RCC_APB1RSTR2_FDCAN1RST_Pos (9U)
  10626. #define RCC_APB1RSTR2_FDCAN1RST_Msk (0x1UL << RCC_APB1RSTR2_FDCAN1RST_Pos)/*!< 0x00000200 */
  10627. #define RCC_APB1RSTR2_FDCAN1RST RCC_APB1RSTR2_FDCAN1RST_Msk
  10628. #define RCC_APB1RSTR2_USBFSRST_Pos (21U)
  10629. #define RCC_APB1RSTR2_USBFSRST_Msk (0x1UL << RCC_APB1RSTR2_USBFSRST_Pos)/*!< 0x00200000 */
  10630. #define RCC_APB1RSTR2_USBFSRST RCC_APB1RSTR2_USBFSRST_Msk
  10631. #define RCC_APB1RSTR2_UCPD1RST_Pos (23U)
  10632. #define RCC_APB1RSTR2_UCPD1RST_Msk (0x1UL << RCC_APB1RSTR2_UCPD1RST_Pos)/*!< 0x00800000 */
  10633. #define RCC_APB1RSTR2_UCPD1RST RCC_APB1RSTR2_UCPD1RST_Msk
  10634. /******************** Bit definition for RCC_APB2RSTR register **************/
  10635. #define RCC_APB2RSTR_SYSCFGRST_Pos (0U)
  10636. #define RCC_APB2RSTR_SYSCFGRST_Msk (0x1UL << RCC_APB2RSTR_SYSCFGRST_Pos)/*!< 0x00000001 */
  10637. #define RCC_APB2RSTR_SYSCFGRST RCC_APB2RSTR_SYSCFGRST_Msk
  10638. #define RCC_APB2RSTR_TIM1RST_Pos (11U)
  10639. #define RCC_APB2RSTR_TIM1RST_Msk (0x1UL << RCC_APB2RSTR_TIM1RST_Pos)/*!< 0x00000800 */
  10640. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk
  10641. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  10642. #define RCC_APB2RSTR_SPI1RST_Msk (0x1UL << RCC_APB2RSTR_SPI1RST_Pos)/*!< 0x00001000 */
  10643. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk
  10644. #define RCC_APB2RSTR_TIM8RST_Pos (13U)
  10645. #define RCC_APB2RSTR_TIM8RST_Msk (0x1UL << RCC_APB2RSTR_TIM8RST_Pos)/*!< 0x00002000 */
  10646. #define RCC_APB2RSTR_TIM8RST RCC_APB2RSTR_TIM8RST_Msk
  10647. #define RCC_APB2RSTR_USART1RST_Pos (14U)
  10648. #define RCC_APB2RSTR_USART1RST_Msk (0x1UL << RCC_APB2RSTR_USART1RST_Pos)/*!< 0x00004000 */
  10649. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk
  10650. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  10651. #define RCC_APB2RSTR_TIM15RST_Msk (0x1UL << RCC_APB2RSTR_TIM15RST_Pos)/*!< 0x00010000 */
  10652. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk
  10653. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  10654. #define RCC_APB2RSTR_TIM16RST_Msk (0x1UL << RCC_APB2RSTR_TIM16RST_Pos)/*!< 0x00020000 */
  10655. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk
  10656. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  10657. #define RCC_APB2RSTR_TIM17RST_Msk (0x1UL << RCC_APB2RSTR_TIM17RST_Pos)/*!< 0x00040000 */
  10658. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk
  10659. #define RCC_APB2RSTR_SAI1RST_Pos (21U)
  10660. #define RCC_APB2RSTR_SAI1RST_Msk (0x1UL << RCC_APB2RSTR_SAI1RST_Pos)/*!< 0x00200000 */
  10661. #define RCC_APB2RSTR_SAI1RST RCC_APB2RSTR_SAI1RST_Msk
  10662. #define RCC_APB2RSTR_SAI2RST_Pos (22U)
  10663. #define RCC_APB2RSTR_SAI2RST_Msk (0x1UL << RCC_APB2RSTR_SAI2RST_Pos)/*!< 0x00400000 */
  10664. #define RCC_APB2RSTR_SAI2RST RCC_APB2RSTR_SAI2RST_Msk
  10665. #define RCC_APB2RSTR_DFSDM1RST_Pos (24U)
  10666. #define RCC_APB2RSTR_DFSDM1RST_Msk (0x1UL << RCC_APB2RSTR_DFSDM1RST_Pos)/*!< 0x01000000 */
  10667. #define RCC_APB2RSTR_DFSDM1RST RCC_APB2RSTR_DFSDM1RST_Msk
  10668. /******************** Bit definition for RCC_AHB1ENR register ***************/
  10669. #define RCC_AHB1ENR_DMA1EN_Pos (0U)
  10670. #define RCC_AHB1ENR_DMA1EN_Msk (0x1UL << RCC_AHB1ENR_DMA1EN_Pos) /*!< 0x00000001 */
  10671. #define RCC_AHB1ENR_DMA1EN RCC_AHB1ENR_DMA1EN_Msk
  10672. #define RCC_AHB1ENR_DMA2EN_Pos (1U)
  10673. #define RCC_AHB1ENR_DMA2EN_Msk (0x1UL << RCC_AHB1ENR_DMA2EN_Pos) /*!< 0x00000002 */
  10674. #define RCC_AHB1ENR_DMA2EN RCC_AHB1ENR_DMA2EN_Msk
  10675. #define RCC_AHB1ENR_DMAMUX1EN_Pos (2U)
  10676. #define RCC_AHB1ENR_DMAMUX1EN_Msk (0x1UL << RCC_AHB1ENR_DMAMUX1EN_Pos)/*!< 0x00000004 */
  10677. #define RCC_AHB1ENR_DMAMUX1EN RCC_AHB1ENR_DMAMUX1EN_Msk
  10678. #define RCC_AHB1ENR_FLASHEN_Pos (8U)
  10679. #define RCC_AHB1ENR_FLASHEN_Msk (0x1UL << RCC_AHB1ENR_FLASHEN_Pos)/*!< 0x00000100 */
  10680. #define RCC_AHB1ENR_FLASHEN RCC_AHB1ENR_FLASHEN_Msk
  10681. #define RCC_AHB1ENR_CRCEN_Pos (12U)
  10682. #define RCC_AHB1ENR_CRCEN_Msk (0x1UL << RCC_AHB1ENR_CRCEN_Pos) /*!< 0x00001000 */
  10683. #define RCC_AHB1ENR_CRCEN RCC_AHB1ENR_CRCEN_Msk
  10684. #define RCC_AHB1ENR_TSCEN_Pos (16U)
  10685. #define RCC_AHB1ENR_TSCEN_Msk (0x1UL << RCC_AHB1ENR_TSCEN_Pos) /*!< 0x00010000 */
  10686. #define RCC_AHB1ENR_TSCEN RCC_AHB1ENR_TSCEN_Msk
  10687. #define RCC_AHB1ENR_GTZCEN_Pos (22U)
  10688. #define RCC_AHB1ENR_GTZCEN_Msk (0x1UL << RCC_AHB1ENR_GTZCEN_Pos)/*!< 0x00400000 */
  10689. #define RCC_AHB1ENR_GTZCEN RCC_AHB1ENR_GTZCEN_Msk
  10690. /******************** Bit definition for RCC_AHB2ENR register ***************/
  10691. #define RCC_AHB2ENR_GPIOAEN_Pos (0U)
  10692. #define RCC_AHB2ENR_GPIOAEN_Msk (0x1UL << RCC_AHB2ENR_GPIOAEN_Pos)/*!< 0x00000001 */
  10693. #define RCC_AHB2ENR_GPIOAEN RCC_AHB2ENR_GPIOAEN_Msk
  10694. #define RCC_AHB2ENR_GPIOBEN_Pos (1U)
  10695. #define RCC_AHB2ENR_GPIOBEN_Msk (0x1UL << RCC_AHB2ENR_GPIOBEN_Pos)/*!< 0x00000002 */
  10696. #define RCC_AHB2ENR_GPIOBEN RCC_AHB2ENR_GPIOBEN_Msk
  10697. #define RCC_AHB2ENR_GPIOCEN_Pos (2U)
  10698. #define RCC_AHB2ENR_GPIOCEN_Msk (0x1UL << RCC_AHB2ENR_GPIOCEN_Pos)/*!< 0x00000004 */
  10699. #define RCC_AHB2ENR_GPIOCEN RCC_AHB2ENR_GPIOCEN_Msk
  10700. #define RCC_AHB2ENR_GPIODEN_Pos (3U)
  10701. #define RCC_AHB2ENR_GPIODEN_Msk (0x1UL << RCC_AHB2ENR_GPIODEN_Pos)/*!< 0x00000008 */
  10702. #define RCC_AHB2ENR_GPIODEN RCC_AHB2ENR_GPIODEN_Msk
  10703. #define RCC_AHB2ENR_GPIOEEN_Pos (4U)
  10704. #define RCC_AHB2ENR_GPIOEEN_Msk (0x1UL << RCC_AHB2ENR_GPIOEEN_Pos)/*!< 0x00000010 */
  10705. #define RCC_AHB2ENR_GPIOEEN RCC_AHB2ENR_GPIOEEN_Msk
  10706. #define RCC_AHB2ENR_GPIOFEN_Pos (5U)
  10707. #define RCC_AHB2ENR_GPIOFEN_Msk (0x1UL << RCC_AHB2ENR_GPIOFEN_Pos)/*!< 0x00000020 */
  10708. #define RCC_AHB2ENR_GPIOFEN RCC_AHB2ENR_GPIOFEN_Msk
  10709. #define RCC_AHB2ENR_GPIOGEN_Pos (6U)
  10710. #define RCC_AHB2ENR_GPIOGEN_Msk (0x1UL << RCC_AHB2ENR_GPIOGEN_Pos)/*!< 0x00000040 */
  10711. #define RCC_AHB2ENR_GPIOGEN RCC_AHB2ENR_GPIOGEN_Msk
  10712. #define RCC_AHB2ENR_GPIOHEN_Pos (7U)
  10713. #define RCC_AHB2ENR_GPIOHEN_Msk (0x1UL << RCC_AHB2ENR_GPIOHEN_Pos)/*!< 0x00000080 */
  10714. #define RCC_AHB2ENR_GPIOHEN RCC_AHB2ENR_GPIOHEN_Msk
  10715. #define RCC_AHB2ENR_ADCEN_Pos (13U)
  10716. #define RCC_AHB2ENR_ADCEN_Msk (0x1UL << RCC_AHB2ENR_ADCEN_Pos) /*!< 0x00002000 */
  10717. #define RCC_AHB2ENR_ADCEN RCC_AHB2ENR_ADCEN_Msk
  10718. #define RCC_AHB2ENR_HASHEN_Pos (17U)
  10719. #define RCC_AHB2ENR_HASHEN_Msk (0x1UL << RCC_AHB2ENR_HASHEN_Pos) /*!< 0x00020000 */
  10720. #define RCC_AHB2ENR_HASHEN RCC_AHB2ENR_HASHEN_Msk
  10721. #define RCC_AHB2ENR_RNGEN_Pos (18U)
  10722. #define RCC_AHB2ENR_RNGEN_Msk (0x1UL << RCC_AHB2ENR_RNGEN_Pos) /*!< 0x00040000 */
  10723. #define RCC_AHB2ENR_RNGEN RCC_AHB2ENR_RNGEN_Msk
  10724. #define RCC_AHB2ENR_SDMMC1EN_Pos (22U)
  10725. #define RCC_AHB2ENR_SDMMC1EN_Msk (0x1UL << RCC_AHB2ENR_SDMMC1EN_Pos)/*!< 0x00400000 */
  10726. #define RCC_AHB2ENR_SDMMC1EN RCC_AHB2ENR_SDMMC1EN_Msk
  10727. /******************** Bit definition for RCC_AHB3ENR register ***************/
  10728. #define RCC_AHB3ENR_FMCEN_Pos (0U)
  10729. #define RCC_AHB3ENR_FMCEN_Msk (0x1UL << RCC_AHB3ENR_FMCEN_Pos) /*!< 0x00000001 */
  10730. #define RCC_AHB3ENR_FMCEN RCC_AHB3ENR_FMCEN_Msk
  10731. #define RCC_AHB3ENR_OSPI1EN_Pos (8U)
  10732. #define RCC_AHB3ENR_OSPI1EN_Msk (0x1UL << RCC_AHB3ENR_OSPI1EN_Pos)/*!< 0x00000100 */
  10733. #define RCC_AHB3ENR_OSPI1EN RCC_AHB3ENR_OSPI1EN_Msk
  10734. /******************** Bit definition for RCC_APB1ENR1 register ***************/
  10735. #define RCC_APB1ENR1_TIM2EN_Pos (0U)
  10736. #define RCC_APB1ENR1_TIM2EN_Msk (0x1UL << RCC_APB1ENR1_TIM2EN_Pos)/*!< 0x00000001 */
  10737. #define RCC_APB1ENR1_TIM2EN RCC_APB1ENR1_TIM2EN_Msk
  10738. #define RCC_APB1ENR1_TIM3EN_Pos (1U)
  10739. #define RCC_APB1ENR1_TIM3EN_Msk (0x1UL << RCC_APB1ENR1_TIM3EN_Pos)/*!< 0x00000002 */
  10740. #define RCC_APB1ENR1_TIM3EN RCC_APB1ENR1_TIM3EN_Msk
  10741. #define RCC_APB1ENR1_TIM4EN_Pos (2U)
  10742. #define RCC_APB1ENR1_TIM4EN_Msk (0x1UL << RCC_APB1ENR1_TIM4EN_Pos)/*!< 0x00000004 */
  10743. #define RCC_APB1ENR1_TIM4EN RCC_APB1ENR1_TIM4EN_Msk
  10744. #define RCC_APB1ENR1_TIM5EN_Pos (3U)
  10745. #define RCC_APB1ENR1_TIM5EN_Msk (0x1UL << RCC_APB1ENR1_TIM5EN_Pos)/*!< 0x00000008 */
  10746. #define RCC_APB1ENR1_TIM5EN RCC_APB1ENR1_TIM5EN_Msk
  10747. #define RCC_APB1ENR1_TIM6EN_Pos (4U)
  10748. #define RCC_APB1ENR1_TIM6EN_Msk (0x1UL << RCC_APB1ENR1_TIM6EN_Pos)/*!< 0x00000010 */
  10749. #define RCC_APB1ENR1_TIM6EN RCC_APB1ENR1_TIM6EN_Msk
  10750. #define RCC_APB1ENR1_TIM7EN_Pos (5U)
  10751. #define RCC_APB1ENR1_TIM7EN_Msk (0x1UL << RCC_APB1ENR1_TIM7EN_Pos)/*!< 0x00000020 */
  10752. #define RCC_APB1ENR1_TIM7EN RCC_APB1ENR1_TIM7EN_Msk
  10753. #define RCC_APB1ENR1_RTCAPBEN_Pos (10U)
  10754. #define RCC_APB1ENR1_RTCAPBEN_Msk (0x1UL << RCC_APB1ENR1_RTCAPBEN_Pos)/*!< 0x00000400 */
  10755. #define RCC_APB1ENR1_RTCAPBEN RCC_APB1ENR1_RTCAPBEN_Msk
  10756. #define RCC_APB1ENR1_WWDGEN_Pos (11U)
  10757. #define RCC_APB1ENR1_WWDGEN_Msk (0x1UL << RCC_APB1ENR1_WWDGEN_Pos)/*!< 0x00000800 */
  10758. #define RCC_APB1ENR1_WWDGEN RCC_APB1ENR1_WWDGEN_Msk
  10759. #define RCC_APB1ENR1_SPI2EN_Pos (14U)
  10760. #define RCC_APB1ENR1_SPI2EN_Msk (0x1UL << RCC_APB1ENR1_SPI2EN_Pos)/*!< 0x00004000 */
  10761. #define RCC_APB1ENR1_SPI2EN RCC_APB1ENR1_SPI2EN_Msk
  10762. #define RCC_APB1ENR1_SPI3EN_Pos (15U)
  10763. #define RCC_APB1ENR1_SPI3EN_Msk (0x1UL << RCC_APB1ENR1_SPI3EN_Pos)/*!< 0x00008000 */
  10764. #define RCC_APB1ENR1_SPI3EN RCC_APB1ENR1_SPI3EN_Msk
  10765. #define RCC_APB1ENR1_USART2EN_Pos (17U)
  10766. #define RCC_APB1ENR1_USART2EN_Msk (0x1UL << RCC_APB1ENR1_USART2EN_Pos)/*!< 0x00020000 */
  10767. #define RCC_APB1ENR1_USART2EN RCC_APB1ENR1_USART2EN_Msk
  10768. #define RCC_APB1ENR1_USART3EN_Pos (18U)
  10769. #define RCC_APB1ENR1_USART3EN_Msk (0x1UL << RCC_APB1ENR1_USART3EN_Pos)/*!< 0x00040000 */
  10770. #define RCC_APB1ENR1_USART3EN RCC_APB1ENR1_USART3EN_Msk
  10771. #define RCC_APB1ENR1_UART4EN_Pos (19U)
  10772. #define RCC_APB1ENR1_UART4EN_Msk (0x1UL << RCC_APB1ENR1_UART4EN_Pos)/*!< 0x00080000 */
  10773. #define RCC_APB1ENR1_UART4EN RCC_APB1ENR1_UART4EN_Msk
  10774. #define RCC_APB1ENR1_UART5EN_Pos (20U)
  10775. #define RCC_APB1ENR1_UART5EN_Msk (0x1UL << RCC_APB1ENR1_UART5EN_Pos)/*!< 0x00100000 */
  10776. #define RCC_APB1ENR1_UART5EN RCC_APB1ENR1_UART5EN_Msk
  10777. #define RCC_APB1ENR1_I2C1EN_Pos (21U)
  10778. #define RCC_APB1ENR1_I2C1EN_Msk (0x1UL << RCC_APB1ENR1_I2C1EN_Pos)/*!< 0x00200000 */
  10779. #define RCC_APB1ENR1_I2C1EN RCC_APB1ENR1_I2C1EN_Msk
  10780. #define RCC_APB1ENR1_I2C2EN_Pos (22U)
  10781. #define RCC_APB1ENR1_I2C2EN_Msk (0x1UL << RCC_APB1ENR1_I2C2EN_Pos)/*!< 0x00400000 */
  10782. #define RCC_APB1ENR1_I2C2EN RCC_APB1ENR1_I2C2EN_Msk
  10783. #define RCC_APB1ENR1_I2C3EN_Pos (23U)
  10784. #define RCC_APB1ENR1_I2C3EN_Msk (0x1UL << RCC_APB1ENR1_I2C3EN_Pos)/*!< 0x00800000 */
  10785. #define RCC_APB1ENR1_I2C3EN RCC_APB1ENR1_I2C3EN_Msk
  10786. #define RCC_APB1ENR1_CRSEN_Pos (24U)
  10787. #define RCC_APB1ENR1_CRSEN_Msk (0x1UL << RCC_APB1ENR1_CRSEN_Pos) /*!< 0x01000000 */
  10788. #define RCC_APB1ENR1_CRSEN RCC_APB1ENR1_CRSEN_Msk
  10789. #define RCC_APB1ENR1_PWREN_Pos (28U)
  10790. #define RCC_APB1ENR1_PWREN_Msk (0x1UL << RCC_APB1ENR1_PWREN_Pos) /*!< 0x10000000 */
  10791. #define RCC_APB1ENR1_PWREN RCC_APB1ENR1_PWREN_Msk
  10792. #define RCC_APB1ENR1_DAC1EN_Pos (29U)
  10793. #define RCC_APB1ENR1_DAC1EN_Msk (0x1UL << RCC_APB1ENR1_DAC1EN_Pos)/*!< 0x20000000 */
  10794. #define RCC_APB1ENR1_DAC1EN RCC_APB1ENR1_DAC1EN_Msk
  10795. #define RCC_APB1ENR1_OPAMPEN_Pos (30U)
  10796. #define RCC_APB1ENR1_OPAMPEN_Msk (0x1UL << RCC_APB1ENR1_OPAMPEN_Pos)/*!< 0x40000000 */
  10797. #define RCC_APB1ENR1_OPAMPEN RCC_APB1ENR1_OPAMPEN_Msk
  10798. #define RCC_APB1ENR1_LPTIM1EN_Pos (31U)
  10799. #define RCC_APB1ENR1_LPTIM1EN_Msk (0x1UL << RCC_APB1ENR1_LPTIM1EN_Pos)/*!< 0x80000000 */
  10800. #define RCC_APB1ENR1_LPTIM1EN RCC_APB1ENR1_LPTIM1EN_Msk
  10801. /******************** Bit definition for RCC_APB1RSTR2 register **************/
  10802. #define RCC_APB1ENR2_LPUART1EN_Pos (0U)
  10803. #define RCC_APB1ENR2_LPUART1EN_Msk (0x1UL << RCC_APB1ENR2_LPUART1EN_Pos)/*!< 0x00000001 */
  10804. #define RCC_APB1ENR2_LPUART1EN RCC_APB1ENR2_LPUART1EN_Msk
  10805. #define RCC_APB1ENR2_I2C4EN_Pos (1U)
  10806. #define RCC_APB1ENR2_I2C4EN_Msk (0x1UL << RCC_APB1ENR2_I2C4EN_Pos)/*!< 0x00000002 */
  10807. #define RCC_APB1ENR2_I2C4EN RCC_APB1ENR2_I2C4EN_Msk
  10808. #define RCC_APB1ENR2_LPTIM2EN_Pos (5U)
  10809. #define RCC_APB1ENR2_LPTIM2EN_Msk (0x1UL << RCC_APB1ENR2_LPTIM2EN_Pos)/*!< 0x00000020 */
  10810. #define RCC_APB1ENR2_LPTIM2EN RCC_APB1ENR2_LPTIM2EN_Msk
  10811. #define RCC_APB1ENR2_LPTIM3EN_Pos (6U)
  10812. #define RCC_APB1ENR2_LPTIM3EN_Msk (0x1UL << RCC_APB1ENR2_LPTIM3EN_Pos)/*!< 0x00000040 */
  10813. #define RCC_APB1ENR2_LPTIM3EN RCC_APB1ENR2_LPTIM3EN_Msk
  10814. #define RCC_APB1ENR2_FDCAN1EN_Pos (9U)
  10815. #define RCC_APB1ENR2_FDCAN1EN_Msk (0x1UL << RCC_APB1ENR2_FDCAN1EN_Pos)/*!< 0x00000200 */
  10816. #define RCC_APB1ENR2_FDCAN1EN RCC_APB1ENR2_FDCAN1EN_Msk
  10817. #define RCC_APB1ENR2_USBFSEN_Pos (21U)
  10818. #define RCC_APB1ENR2_USBFSEN_Msk (0x1UL << RCC_APB1ENR2_USBFSEN_Pos)/*!< 0x00200000 */
  10819. #define RCC_APB1ENR2_USBFSEN RCC_APB1ENR2_USBFSEN_Msk
  10820. #define RCC_APB1ENR2_UCPD1EN_Pos (23U)
  10821. #define RCC_APB1ENR2_UCPD1EN_Msk (0x1UL << RCC_APB1ENR2_UCPD1EN_Pos)/*!< 0x00800000 */
  10822. #define RCC_APB1ENR2_UCPD1EN RCC_APB1ENR2_UCPD1EN_Msk
  10823. /******************** Bit definition for RCC_APB2ENR register ***************/
  10824. #define RCC_APB2ENR_SYSCFGEN_Pos (0U)
  10825. #define RCC_APB2ENR_SYSCFGEN_Msk (0x1UL << RCC_APB2ENR_SYSCFGEN_Pos)/*!< 0x00000001 */
  10826. #define RCC_APB2ENR_SYSCFGEN RCC_APB2ENR_SYSCFGEN_Msk
  10827. #define RCC_APB2ENR_TIM1EN_Pos (11U)
  10828. #define RCC_APB2ENR_TIM1EN_Msk (0x1UL << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */
  10829. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk
  10830. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  10831. #define RCC_APB2ENR_SPI1EN_Msk (0x1UL << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  10832. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk
  10833. #define RCC_APB2ENR_TIM8EN_Pos (13U)
  10834. #define RCC_APB2ENR_TIM8EN_Msk (0x1UL << RCC_APB2ENR_TIM8EN_Pos) /*!< 0x00002000 */
  10835. #define RCC_APB2ENR_TIM8EN RCC_APB2ENR_TIM8EN_Msk
  10836. #define RCC_APB2ENR_USART1EN_Pos (14U)
  10837. #define RCC_APB2ENR_USART1EN_Msk (0x1UL << RCC_APB2ENR_USART1EN_Pos)/*!< 0x00004000 */
  10838. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk
  10839. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  10840. #define RCC_APB2ENR_TIM15EN_Msk (0x1UL << RCC_APB2ENR_TIM15EN_Pos)/*!< 0x00010000 */
  10841. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk
  10842. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  10843. #define RCC_APB2ENR_TIM16EN_Msk (0x1UL << RCC_APB2ENR_TIM16EN_Pos)/*!< 0x00020000 */
  10844. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk
  10845. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  10846. #define RCC_APB2ENR_TIM17EN_Msk (0x1UL << RCC_APB2ENR_TIM17EN_Pos)/*!< 0x00040000 */
  10847. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk
  10848. #define RCC_APB2ENR_SAI1EN_Pos (21U)
  10849. #define RCC_APB2ENR_SAI1EN_Msk (0x1UL << RCC_APB2ENR_SAI1EN_Pos) /*!< 0x00200000 */
  10850. #define RCC_APB2ENR_SAI1EN RCC_APB2ENR_SAI1EN_Msk
  10851. #define RCC_APB2ENR_SAI2EN_Pos (22U)
  10852. #define RCC_APB2ENR_SAI2EN_Msk (0x1UL << RCC_APB2ENR_SAI2EN_Pos) /*!< 0x00400000 */
  10853. #define RCC_APB2ENR_SAI2EN RCC_APB2ENR_SAI2EN_Msk
  10854. #define RCC_APB2ENR_DFSDM1EN_Pos (24U)
  10855. #define RCC_APB2ENR_DFSDM1EN_Msk (0x1UL << RCC_APB2ENR_DFSDM1EN_Pos)/*!< 0x01000000 */
  10856. #define RCC_APB2ENR_DFSDM1EN RCC_APB2ENR_DFSDM1EN_Msk
  10857. /******************** Bit definition for RCC_AHB1SMENR register ***************/
  10858. #define RCC_AHB1SMENR_DMA1SMEN_Pos (0U)
  10859. #define RCC_AHB1SMENR_DMA1SMEN_Msk (0x1UL << RCC_AHB1SMENR_DMA1SMEN_Pos)/*!< 0x00000001 */
  10860. #define RCC_AHB1SMENR_DMA1SMEN RCC_AHB1SMENR_DMA1SMEN_Msk
  10861. #define RCC_AHB1SMENR_DMA2SMEN_Pos (1U)
  10862. #define RCC_AHB1SMENR_DMA2SMEN_Msk (0x1UL << RCC_AHB1SMENR_DMA2SMEN_Pos)/*!< 0x00000002 */
  10863. #define RCC_AHB1SMENR_DMA2SMEN RCC_AHB1SMENR_DMA2SMEN_Msk
  10864. #define RCC_AHB1SMENR_DMAMUX1SMEN_Pos (2U)
  10865. #define RCC_AHB1SMENR_DMAMUX1SMEN_Msk (0x1UL << RCC_AHB1SMENR_DMAMUX1SMEN_Pos)/*!< 0x00000004 */
  10866. #define RCC_AHB1SMENR_DMAMUX1SMEN RCC_AHB1SMENR_DMAMUX1SMEN_Msk
  10867. #define RCC_AHB1SMENR_FLASHSMEN_Pos (8U)
  10868. #define RCC_AHB1SMENR_FLASHSMEN_Msk (0x1UL << RCC_AHB1SMENR_FLASHSMEN_Pos)/*!< 0x00000100 */
  10869. #define RCC_AHB1SMENR_FLASHSMEN RCC_AHB1SMENR_FLASHSMEN_Msk
  10870. #define RCC_AHB1SMENR_SRAM1SMEN_Pos (9U)
  10871. #define RCC_AHB1SMENR_SRAM1SMEN_Msk (0x1UL << RCC_AHB1SMENR_SRAM1SMEN_Pos)/*!< 0x00000200 */
  10872. #define RCC_AHB1SMENR_SRAM1SMEN RCC_AHB1SMENR_SRAM1SMEN_Msk
  10873. #define RCC_AHB1SMENR_CRCSMEN_Pos (12U)
  10874. #define RCC_AHB1SMENR_CRCSMEN_Msk (0x1UL << RCC_AHB1SMENR_CRCSMEN_Pos)/*!< 0x00001000 */
  10875. #define RCC_AHB1SMENR_CRCSMEN RCC_AHB1SMENR_CRCSMEN_Msk
  10876. #define RCC_AHB1SMENR_TSCSMEN_Pos (16U)
  10877. #define RCC_AHB1SMENR_TSCSMEN_Msk (0x1UL << RCC_AHB1SMENR_TSCSMEN_Pos)/*!< 0x00010000 */
  10878. #define RCC_AHB1SMENR_TSCSMEN RCC_AHB1SMENR_TSCSMEN_Msk
  10879. #define RCC_AHB1SMENR_GTZCSMEN_Pos (22U)
  10880. #define RCC_AHB1SMENR_GTZCSMEN_Msk (0x1UL << RCC_AHB1SMENR_GTZCSMEN_Pos)/*!< 0x00400000 */
  10881. #define RCC_AHB1SMENR_GTZCSMEN RCC_AHB1SMENR_GTZCSMEN_Msk
  10882. #define RCC_AHB1SMENR_ICACHESMEN_Pos (23U)
  10883. #define RCC_AHB1SMENR_ICACHESMEN_Msk (0x1UL << RCC_AHB1SMENR_ICACHESMEN_Pos)/*!< 0x00600000 */
  10884. #define RCC_AHB1SMENR_ICACHESMEN RCC_AHB1SMENR_ICACHESMEN_Msk
  10885. /******************** Bit definition for RCC_AHB2SMENR register *************/
  10886. #define RCC_AHB2SMENR_GPIOASMEN_Pos (0U)
  10887. #define RCC_AHB2SMENR_GPIOASMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOASMEN_Pos)/*!< 0x00000001 */
  10888. #define RCC_AHB2SMENR_GPIOASMEN RCC_AHB2SMENR_GPIOASMEN_Msk
  10889. #define RCC_AHB2SMENR_GPIOBSMEN_Pos (1U)
  10890. #define RCC_AHB2SMENR_GPIOBSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOBSMEN_Pos)/*!< 0x00000002 */
  10891. #define RCC_AHB2SMENR_GPIOBSMEN RCC_AHB2SMENR_GPIOBSMEN_Msk
  10892. #define RCC_AHB2SMENR_GPIOCSMEN_Pos (2U)
  10893. #define RCC_AHB2SMENR_GPIOCSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOCSMEN_Pos)/*!< 0x00000004 */
  10894. #define RCC_AHB2SMENR_GPIOCSMEN RCC_AHB2SMENR_GPIOCSMEN_Msk
  10895. #define RCC_AHB2SMENR_GPIODSMEN_Pos (3U)
  10896. #define RCC_AHB2SMENR_GPIODSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIODSMEN_Pos)/*!< 0x00000008 */
  10897. #define RCC_AHB2SMENR_GPIODSMEN RCC_AHB2SMENR_GPIODSMEN_Msk
  10898. #define RCC_AHB2SMENR_GPIOESMEN_Pos (4U)
  10899. #define RCC_AHB2SMENR_GPIOESMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOESMEN_Pos)/*!< 0x00000010 */
  10900. #define RCC_AHB2SMENR_GPIOESMEN RCC_AHB2SMENR_GPIOESMEN_Msk
  10901. #define RCC_AHB2SMENR_GPIOFSMEN_Pos (5U)
  10902. #define RCC_AHB2SMENR_GPIOFSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOFSMEN_Pos)/*!< 0x00000020 */
  10903. #define RCC_AHB2SMENR_GPIOFSMEN RCC_AHB2SMENR_GPIOFSMEN_Msk
  10904. #define RCC_AHB2SMENR_GPIOGSMEN_Pos (6U)
  10905. #define RCC_AHB2SMENR_GPIOGSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOGSMEN_Pos)/*!< 0x00000040 */
  10906. #define RCC_AHB2SMENR_GPIOGSMEN RCC_AHB2SMENR_GPIOGSMEN_Msk
  10907. #define RCC_AHB2SMENR_GPIOHSMEN_Pos (7U)
  10908. #define RCC_AHB2SMENR_GPIOHSMEN_Msk (0x1UL << RCC_AHB2SMENR_GPIOHSMEN_Pos)/*!< 0x00000080 */
  10909. #define RCC_AHB2SMENR_GPIOHSMEN RCC_AHB2SMENR_GPIOHSMEN_Msk
  10910. #define RCC_AHB2SMENR_SRAM2SMEN_Pos (9U)
  10911. #define RCC_AHB2SMENR_SRAM2SMEN_Msk (0x1UL << RCC_AHB2SMENR_SRAM2SMEN_Pos)/*!< 0x00000200 */
  10912. #define RCC_AHB2SMENR_SRAM2SMEN RCC_AHB2SMENR_SRAM2SMEN_Msk
  10913. #define RCC_AHB2SMENR_ADCSMEN_Pos (13U)
  10914. #define RCC_AHB2SMENR_ADCSMEN_Msk (0x1UL << RCC_AHB2SMENR_ADCSMEN_Pos)/*!< 0x00002000 */
  10915. #define RCC_AHB2SMENR_ADCSMEN RCC_AHB2SMENR_ADCSMEN_Msk
  10916. #define RCC_AHB2SMENR_HASHSMEN_Pos (17U)
  10917. #define RCC_AHB2SMENR_HASHSMEN_Msk (0x1UL << RCC_AHB2SMENR_HASHSMEN_Pos)/*!< 0x00020000 */
  10918. #define RCC_AHB2SMENR_HASHSMEN RCC_AHB2SMENR_HASHSMEN_Msk
  10919. #define RCC_AHB2SMENR_RNGSMEN_Pos (18U)
  10920. #define RCC_AHB2SMENR_RNGSMEN_Msk (0x1UL << RCC_AHB2SMENR_RNGSMEN_Pos)/*!< 0x00040000 */
  10921. #define RCC_AHB2SMENR_RNGSMEN RCC_AHB2SMENR_RNGSMEN_Msk
  10922. #define RCC_AHB2SMENR_SDMMC1SMEN_Pos (22U)
  10923. #define RCC_AHB2SMENR_SDMMC1SMEN_Msk (0x1UL << RCC_AHB2SMENR_SDMMC1SMEN_Pos)/*!< 0x00400000 */
  10924. #define RCC_AHB2SMENR_SDMMC1SMEN RCC_AHB2SMENR_SDMMC1SMEN_Msk
  10925. /******************** Bit definition for RCC_AHB3SMENR register *************/
  10926. #define RCC_AHB3SMENR_FMCSMEN_Pos (0U)
  10927. #define RCC_AHB3SMENR_FMCSMEN_Msk (0x1UL << RCC_AHB3SMENR_FMCSMEN_Pos)/*!< 0x00000001 */
  10928. #define RCC_AHB3SMENR_FMCSMEN RCC_AHB3SMENR_FMCSMEN_Msk
  10929. #define RCC_AHB3SMENR_OSPI1SMEN_Pos (8U)
  10930. #define RCC_AHB3SMENR_OSPI1SMEN_Msk (0x1UL << RCC_AHB3SMENR_OSPI1SMEN_Pos)/*!< 0x00000100 */
  10931. #define RCC_AHB3SMENR_OSPI1SMEN RCC_AHB3SMENR_OSPI1SMEN_Msk
  10932. /******************** Bit definition for RCC_APB1SMENR1 register *************/
  10933. #define RCC_APB1SMENR1_TIM2SMEN_Pos (0U)
  10934. #define RCC_APB1SMENR1_TIM2SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM2SMEN_Pos)/*!< 0x00000001 */
  10935. #define RCC_APB1SMENR1_TIM2SMEN RCC_APB1SMENR1_TIM2SMEN_Msk
  10936. #define RCC_APB1SMENR1_TIM3SMEN_Pos (1U)
  10937. #define RCC_APB1SMENR1_TIM3SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM3SMEN_Pos)/*!< 0x00000002 */
  10938. #define RCC_APB1SMENR1_TIM3SMEN RCC_APB1SMENR1_TIM3SMEN_Msk
  10939. #define RCC_APB1SMENR1_TIM4SMEN_Pos (2U)
  10940. #define RCC_APB1SMENR1_TIM4SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM4SMEN_Pos)/*!< 0x00000004 */
  10941. #define RCC_APB1SMENR1_TIM4SMEN RCC_APB1SMENR1_TIM4SMEN_Msk
  10942. #define RCC_APB1SMENR1_TIM5SMEN_Pos (3U)
  10943. #define RCC_APB1SMENR1_TIM5SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM5SMEN_Pos)/*!< 0x00000008 */
  10944. #define RCC_APB1SMENR1_TIM5SMEN RCC_APB1SMENR1_TIM5SMEN_Msk
  10945. #define RCC_APB1SMENR1_TIM6SMEN_Pos (4U)
  10946. #define RCC_APB1SMENR1_TIM6SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM6SMEN_Pos)/*!< 0x00000010 */
  10947. #define RCC_APB1SMENR1_TIM6SMEN RCC_APB1SMENR1_TIM6SMEN_Msk
  10948. #define RCC_APB1SMENR1_TIM7SMEN_Pos (5U)
  10949. #define RCC_APB1SMENR1_TIM7SMEN_Msk (0x1UL << RCC_APB1SMENR1_TIM7SMEN_Pos)/*!< 0x00000020 */
  10950. #define RCC_APB1SMENR1_TIM7SMEN RCC_APB1SMENR1_TIM7SMEN_Msk
  10951. #define RCC_APB1SMENR1_RTCAPBSMEN_Pos (10U)
  10952. #define RCC_APB1SMENR1_RTCAPBSMEN_Msk (0x1UL << RCC_APB1SMENR1_RTCAPBSMEN_Pos)/*!< 0x00000400 */
  10953. #define RCC_APB1SMENR1_RTCAPBSMEN RCC_APB1SMENR1_RTCAPBSMEN_Msk
  10954. #define RCC_APB1SMENR1_WWDGSMEN_Pos (11U)
  10955. #define RCC_APB1SMENR1_WWDGSMEN_Msk (0x1UL << RCC_APB1SMENR1_WWDGSMEN_Pos)/*!< 0x00000800 */
  10956. #define RCC_APB1SMENR1_WWDGSMEN RCC_APB1SMENR1_WWDGSMEN_Msk
  10957. #define RCC_APB1SMENR1_SPI2SMEN_Pos (14U)
  10958. #define RCC_APB1SMENR1_SPI2SMEN_Msk (0x1UL << RCC_APB1SMENR1_SPI2SMEN_Pos)/*!< 0x00004000 */
  10959. #define RCC_APB1SMENR1_SPI2SMEN RCC_APB1SMENR1_SPI2SMEN_Msk
  10960. #define RCC_APB1SMENR1_SPI3SMEN_Pos (15U)
  10961. #define RCC_APB1SMENR1_SPI3SMEN_Msk (0x1UL << RCC_APB1SMENR1_SPI3SMEN_Pos)/*!< 0x00008000 */
  10962. #define RCC_APB1SMENR1_SPI3SMEN RCC_APB1SMENR1_SPI3SMEN_Msk
  10963. #define RCC_APB1SMENR1_USART2SMEN_Pos (17U)
  10964. #define RCC_APB1SMENR1_USART2SMEN_Msk (0x1UL << RCC_APB1SMENR1_USART2SMEN_Pos)/*!< 0x00020000 */
  10965. #define RCC_APB1SMENR1_USART2SMEN RCC_APB1SMENR1_USART2SMEN_Msk
  10966. #define RCC_APB1SMENR1_USART3SMEN_Pos (18U)
  10967. #define RCC_APB1SMENR1_USART3SMEN_Msk (0x1UL << RCC_APB1SMENR1_USART3SMEN_Pos)/*!< 0x00040000 */
  10968. #define RCC_APB1SMENR1_USART3SMEN RCC_APB1SMENR1_USART3SMEN_Msk
  10969. #define RCC_APB1SMENR1_UART4SMEN_Pos (19U)
  10970. #define RCC_APB1SMENR1_UART4SMEN_Msk (0x1UL << RCC_APB1SMENR1_UART4SMEN_Pos)/*!< 0x00080000 */
  10971. #define RCC_APB1SMENR1_UART4SMEN RCC_APB1SMENR1_UART4SMEN_Msk
  10972. #define RCC_APB1SMENR1_UART5SMEN_Pos (20U)
  10973. #define RCC_APB1SMENR1_UART5SMEN_Msk (0x1UL << RCC_APB1SMENR1_UART5SMEN_Pos)/*!< 0x00100000 */
  10974. #define RCC_APB1SMENR1_UART5SMEN RCC_APB1SMENR1_UART5SMEN_Msk
  10975. #define RCC_APB1SMENR1_I2C1SMEN_Pos (21U)
  10976. #define RCC_APB1SMENR1_I2C1SMEN_Msk (0x1UL << RCC_APB1SMENR1_I2C1SMEN_Pos)/*!< 0x00200000 */
  10977. #define RCC_APB1SMENR1_I2C1SMEN RCC_APB1SMENR1_I2C1SMEN_Msk
  10978. #define RCC_APB1SMENR1_I2C2SMEN_Pos (22U)
  10979. #define RCC_APB1SMENR1_I2C2SMEN_Msk (0x1UL << RCC_APB1SMENR1_I2C2SMEN_Pos)/*!< 0x00400000 */
  10980. #define RCC_APB1SMENR1_I2C2SMEN RCC_APB1SMENR1_I2C2SMEN_Msk
  10981. #define RCC_APB1SMENR1_I2C3SMEN_Pos (23U)
  10982. #define RCC_APB1SMENR1_I2C3SMEN_Msk (0x1UL << RCC_APB1SMENR1_I2C3SMEN_Pos)/*!< 0x00800000 */
  10983. #define RCC_APB1SMENR1_I2C3SMEN RCC_APB1SMENR1_I2C3SMEN_Msk
  10984. #define RCC_APB1SMENR1_CRSSMEN_Pos (24U)
  10985. #define RCC_APB1SMENR1_CRSSMEN_Msk (0x1UL << RCC_APB1SMENR1_CRSSMEN_Pos)/*!< 0x01000000 */
  10986. #define RCC_APB1SMENR1_CRSSMEN RCC_APB1SMENR1_CRSSMEN_Msk
  10987. #define RCC_APB1SMENR1_PWRSMEN_Pos (28U)
  10988. #define RCC_APB1SMENR1_PWRSMEN_Msk (0x1UL << RCC_APB1SMENR1_PWRSMEN_Pos)/*!< 0x10000000 */
  10989. #define RCC_APB1SMENR1_PWRSMEN RCC_APB1SMENR1_PWRSMEN_Msk
  10990. #define RCC_APB1SMENR1_DAC1SMEN_Pos (29U)
  10991. #define RCC_APB1SMENR1_DAC1SMEN_Msk (0x1UL << RCC_APB1SMENR1_DAC1SMEN_Pos)/*!< 0x20000000 */
  10992. #define RCC_APB1SMENR1_DAC1SMEN RCC_APB1SMENR1_DAC1SMEN_Msk
  10993. #define RCC_APB1SMENR1_OPAMPSMEN_Pos (30U)
  10994. #define RCC_APB1SMENR1_OPAMPSMEN_Msk (0x1UL << RCC_APB1SMENR1_OPAMPSMEN_Pos)/*!< 0x40000000 */
  10995. #define RCC_APB1SMENR1_OPAMPSMEN RCC_APB1SMENR1_OPAMPSMEN_Msk
  10996. #define RCC_APB1SMENR1_LPTIM1SMEN_Pos (31U)
  10997. #define RCC_APB1SMENR1_LPTIM1SMEN_Msk (0x1UL << RCC_APB1SMENR1_LPTIM1SMEN_Pos)/*!< 0x80000000 */
  10998. #define RCC_APB1SMENR1_LPTIM1SMEN RCC_APB1SMENR1_LPTIM1SMEN_Msk
  10999. /******************** Bit definition for RCC_APB1SMENR2 register *************/
  11000. #define RCC_APB1SMENR2_LPUART1SMEN_Pos (0U)
  11001. #define RCC_APB1SMENR2_LPUART1SMEN_Msk (0x1UL << RCC_APB1SMENR2_LPUART1SMEN_Pos)/*!< 0x00000001 */
  11002. #define RCC_APB1SMENR2_LPUART1SMEN RCC_APB1SMENR2_LPUART1SMEN_Msk
  11003. #define RCC_APB1SMENR2_I2C4SMEN_Pos (1U)
  11004. #define RCC_APB1SMENR2_I2C4SMEN_Msk (0x1UL << RCC_APB1SMENR2_I2C4SMEN_Pos)/*!< 0x00000002 */
  11005. #define RCC_APB1SMENR2_I2C4SMEN RCC_APB1SMENR2_I2C4SMEN_Msk
  11006. #define RCC_APB1SMENR2_LPTIM2SMEN_Pos (5U)
  11007. #define RCC_APB1SMENR2_LPTIM2SMEN_Msk (0x1UL << RCC_APB1SMENR2_LPTIM2SMEN_Pos)/*!< 0x00000020 */
  11008. #define RCC_APB1SMENR2_LPTIM2SMEN RCC_APB1SMENR2_LPTIM2SMEN_Msk
  11009. #define RCC_APB1SMENR2_LPTIM3SMEN_Pos (6U)
  11010. #define RCC_APB1SMENR2_LPTIM3SMEN_Msk (0x1UL << RCC_APB1SMENR2_LPTIM3SMEN_Pos)/*!< 0x00000040 */
  11011. #define RCC_APB1SMENR2_LPTIM3SMEN RCC_APB1SMENR2_LPTIM3SMEN_Msk
  11012. #define RCC_APB1SMENR2_FDCAN1SMEN_Pos (9U)
  11013. #define RCC_APB1SMENR2_FDCAN1SMEN_Msk (0x1UL << RCC_APB1SMENR2_FDCAN1SMEN_Pos)/*!< 0x00000200 */
  11014. #define RCC_APB1SMENR2_FDCAN1SMEN RCC_APB1SMENR2_FDCAN1SMEN_Msk
  11015. #define RCC_APB1SMENR2_USBFSSMEN_Pos (21U)
  11016. #define RCC_APB1SMENR2_USBFSSMEN_Msk (0x1UL << RCC_APB1SMENR2_USBFSSMEN_Pos)/*!< 0x00200000 */
  11017. #define RCC_APB1SMENR2_USBFSSMEN RCC_APB1SMENR2_USBFSSMEN_Msk
  11018. #define RCC_APB1SMENR2_UCPD1SMEN_Pos (23U)
  11019. #define RCC_APB1SMENR2_UCPD1SMEN_Msk (0x1UL << RCC_APB1SMENR2_UCPD1SMEN_Pos)/*!< 0x00800000 */
  11020. #define RCC_APB1SMENR2_UCPD1SMEN RCC_APB1SMENR2_UCPD1SMEN_Msk
  11021. /******************** Bit definition for RCC_APB2SMENR register *************/
  11022. #define RCC_APB2SMENR_SYSCFGSMEN_Pos (0U)
  11023. #define RCC_APB2SMENR_SYSCFGSMEN_Msk (0x1UL << RCC_APB2SMENR_SYSCFGSMEN_Pos)/*!< 0x00000001 */
  11024. #define RCC_APB2SMENR_SYSCFGSMEN RCC_APB2SMENR_SYSCFGSMEN_Msk
  11025. #define RCC_APB2SMENR_TIM1SMEN_Pos (11U)
  11026. #define RCC_APB2SMENR_TIM1SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM1SMEN_Pos)/*!< 0x00000800 */
  11027. #define RCC_APB2SMENR_TIM1SMEN RCC_APB2SMENR_TIM1SMEN_Msk
  11028. #define RCC_APB2SMENR_SPI1SMEN_Pos (12U)
  11029. #define RCC_APB2SMENR_SPI1SMEN_Msk (0x1UL << RCC_APB2SMENR_SPI1SMEN_Pos)/*!< 0x00001000 */
  11030. #define RCC_APB2SMENR_SPI1SMEN RCC_APB2SMENR_SPI1SMEN_Msk
  11031. #define RCC_APB2SMENR_TIM8SMEN_Pos (13U)
  11032. #define RCC_APB2SMENR_TIM8SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM8SMEN_Pos)/*!< 0x00002000 */
  11033. #define RCC_APB2SMENR_TIM8SMEN RCC_APB2SMENR_TIM8SMEN_Msk
  11034. #define RCC_APB2SMENR_USART1SMEN_Pos (14U)
  11035. #define RCC_APB2SMENR_USART1SMEN_Msk (0x1UL << RCC_APB2SMENR_USART1SMEN_Pos)/*!< 0x00004000 */
  11036. #define RCC_APB2SMENR_USART1SMEN RCC_APB2SMENR_USART1SMEN_Msk
  11037. #define RCC_APB2SMENR_TIM15SMEN_Pos (16U)
  11038. #define RCC_APB2SMENR_TIM15SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM15SMEN_Pos)/*!< 0x00010000 */
  11039. #define RCC_APB2SMENR_TIM15SMEN RCC_APB2SMENR_TIM15SMEN_Msk
  11040. #define RCC_APB2SMENR_TIM16SMEN_Pos (17U)
  11041. #define RCC_APB2SMENR_TIM16SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM16SMEN_Pos)/*!< 0x00020000 */
  11042. #define RCC_APB2SMENR_TIM16SMEN RCC_APB2SMENR_TIM16SMEN_Msk
  11043. #define RCC_APB2SMENR_TIM17SMEN_Pos (18U)
  11044. #define RCC_APB2SMENR_TIM17SMEN_Msk (0x1UL << RCC_APB2SMENR_TIM17SMEN_Pos)/*!< 0x00040000 */
  11045. #define RCC_APB2SMENR_TIM17SMEN RCC_APB2SMENR_TIM17SMEN_Msk
  11046. #define RCC_APB2SMENR_SAI1SMEN_Pos (21U)
  11047. #define RCC_APB2SMENR_SAI1SMEN_Msk (0x1UL << RCC_APB2SMENR_SAI1SMEN_Pos)/*!< 0x00200000 */
  11048. #define RCC_APB2SMENR_SAI1SMEN RCC_APB2SMENR_SAI1SMEN_Msk
  11049. #define RCC_APB2SMENR_SAI2SMEN_Pos (22U)
  11050. #define RCC_APB2SMENR_SAI2SMEN_Msk (0x1UL << RCC_APB2SMENR_SAI2SMEN_Pos)/*!< 0x00400000 */
  11051. #define RCC_APB2SMENR_SAI2SMEN RCC_APB2SMENR_SAI2SMEN_Msk
  11052. #define RCC_APB2SMENR_DFSDM1SMEN_Pos (24U)
  11053. #define RCC_APB2SMENR_DFSDM1SMEN_Msk (0x1UL << RCC_APB2SMENR_DFSDM1SMEN_Pos)/*!< 0x01000000 */
  11054. #define RCC_APB2SMENR_DFSDM1SMEN RCC_APB2SMENR_DFSDM1SMEN_Msk
  11055. /******************** Bit definition for RCC_CCIPR1 register ****************/
  11056. #define RCC_CCIPR1_USART1SEL_Pos (0U)
  11057. #define RCC_CCIPR1_USART1SEL_Msk (0x3UL << RCC_CCIPR1_USART1SEL_Pos)/*!< 0x00000003 */
  11058. #define RCC_CCIPR1_USART1SEL RCC_CCIPR1_USART1SEL_Msk
  11059. #define RCC_CCIPR1_USART1SEL_0 (0x1UL << RCC_CCIPR1_USART1SEL_Pos)/*!< 0x00000001 */
  11060. #define RCC_CCIPR1_USART1SEL_1 (0x2UL << RCC_CCIPR1_USART1SEL_Pos)/*!< 0x00000002 */
  11061. #define RCC_CCIPR1_USART2SEL_Pos (2U)
  11062. #define RCC_CCIPR1_USART2SEL_Msk (0x3UL << RCC_CCIPR1_USART2SEL_Pos)/*!< 0x0000000C */
  11063. #define RCC_CCIPR1_USART2SEL RCC_CCIPR1_USART2SEL_Msk
  11064. #define RCC_CCIPR1_USART2SEL_0 (0x1UL << RCC_CCIPR1_USART2SEL_Pos)/*!< 0x00000004 */
  11065. #define RCC_CCIPR1_USART2SEL_1 (0x2UL << RCC_CCIPR1_USART2SEL_Pos)/*!< 0x00000008 */
  11066. #define RCC_CCIPR1_USART3SEL_Pos (4U)
  11067. #define RCC_CCIPR1_USART3SEL_Msk (0x3UL << RCC_CCIPR1_USART3SEL_Pos)/*!< 0x00000030 */
  11068. #define RCC_CCIPR1_USART3SEL RCC_CCIPR1_USART3SEL_Msk
  11069. #define RCC_CCIPR1_USART3SEL_0 (0x1UL << RCC_CCIPR1_USART3SEL_Pos)/*!< 0x00000010 */
  11070. #define RCC_CCIPR1_USART3SEL_1 (0x2UL << RCC_CCIPR1_USART3SEL_Pos)/*!< 0x00000020 */
  11071. #define RCC_CCIPR1_UART4SEL_Pos (6U)
  11072. #define RCC_CCIPR1_UART4SEL_Msk (0x3UL << RCC_CCIPR1_UART4SEL_Pos) /*!< 0x000000C0 */
  11073. #define RCC_CCIPR1_UART4SEL RCC_CCIPR1_UART4SEL_Msk
  11074. #define RCC_CCIPR1_UART4SEL_0 (0x1UL << RCC_CCIPR1_UART4SEL_Pos) /*!< 0x00000040 */
  11075. #define RCC_CCIPR1_UART4SEL_1 (0x2UL << RCC_CCIPR1_UART4SEL_Pos) /*!< 0x00000080 */
  11076. #define RCC_CCIPR1_UART5SEL_Pos (8U)
  11077. #define RCC_CCIPR1_UART5SEL_Msk (0x3UL << RCC_CCIPR1_UART5SEL_Pos) /*!< 0x00000300 */
  11078. #define RCC_CCIPR1_UART5SEL RCC_CCIPR1_UART5SEL_Msk
  11079. #define RCC_CCIPR1_UART5SEL_0 (0x1UL << RCC_CCIPR1_UART5SEL_Pos) /*!< 0x00000100 */
  11080. #define RCC_CCIPR1_UART5SEL_1 (0x2UL << RCC_CCIPR1_UART5SEL_Pos) /*!< 0x00000200 */
  11081. #define RCC_CCIPR1_LPUART1SEL_Pos (10U)
  11082. #define RCC_CCIPR1_LPUART1SEL_Msk (0x3UL << RCC_CCIPR1_LPUART1SEL_Pos)/*!< 0x00000C00 */
  11083. #define RCC_CCIPR1_LPUART1SEL RCC_CCIPR1_LPUART1SEL_Msk
  11084. #define RCC_CCIPR1_LPUART1SEL_0 (0x1UL << RCC_CCIPR1_LPUART1SEL_Pos)/*!< 0x00000400 */
  11085. #define RCC_CCIPR1_LPUART1SEL_1 (0x2UL << RCC_CCIPR1_LPUART1SEL_Pos)/*!< 0x00000800 */
  11086. #define RCC_CCIPR1_I2C1SEL_Pos (12U)
  11087. #define RCC_CCIPR1_I2C1SEL_Msk (0x3UL << RCC_CCIPR1_I2C1SEL_Pos) /*!< 0x00003000 */
  11088. #define RCC_CCIPR1_I2C1SEL RCC_CCIPR1_I2C1SEL_Msk
  11089. #define RCC_CCIPR1_I2C1SEL_0 (0x1UL << RCC_CCIPR1_I2C1SEL_Pos) /*!< 0x00001000 */
  11090. #define RCC_CCIPR1_I2C1SEL_1 (0x2UL << RCC_CCIPR1_I2C1SEL_Pos) /*!< 0x00002000 */
  11091. #define RCC_CCIPR1_I2C2SEL_Pos (14U)
  11092. #define RCC_CCIPR1_I2C2SEL_Msk (0x3UL << RCC_CCIPR1_I2C2SEL_Pos) /*!< 0x0000C000 */
  11093. #define RCC_CCIPR1_I2C2SEL RCC_CCIPR1_I2C2SEL_Msk
  11094. #define RCC_CCIPR1_I2C2SEL_0 (0x1UL << RCC_CCIPR1_I2C2SEL_Pos) /*!< 0x00004000 */
  11095. #define RCC_CCIPR1_I2C2SEL_1 (0x2UL << RCC_CCIPR1_I2C2SEL_Pos) /*!< 0x00008000 */
  11096. #define RCC_CCIPR1_I2C3SEL_Pos (16U)
  11097. #define RCC_CCIPR1_I2C3SEL_Msk (0x3UL << RCC_CCIPR1_I2C3SEL_Pos) /*!< 0x00030000 */
  11098. #define RCC_CCIPR1_I2C3SEL RCC_CCIPR1_I2C3SEL_Msk
  11099. #define RCC_CCIPR1_I2C3SEL_0 (0x1UL << RCC_CCIPR1_I2C3SEL_Pos) /*!< 0x00010000 */
  11100. #define RCC_CCIPR1_I2C3SEL_1 (0x2UL << RCC_CCIPR1_I2C3SEL_Pos) /*!< 0x00020000 */
  11101. #define RCC_CCIPR1_LPTIM1SEL_Pos (18U)
  11102. #define RCC_CCIPR1_LPTIM1SEL_Msk (0x3UL << RCC_CCIPR1_LPTIM1SEL_Pos)/*!< 0x000C0000 */
  11103. #define RCC_CCIPR1_LPTIM1SEL RCC_CCIPR1_LPTIM1SEL_Msk
  11104. #define RCC_CCIPR1_LPTIM1SEL_0 (0x1UL << RCC_CCIPR1_LPTIM1SEL_Pos)/*!< 0x00040000 */
  11105. #define RCC_CCIPR1_LPTIM1SEL_1 (0x2UL << RCC_CCIPR1_LPTIM1SEL_Pos)/*!< 0x00080000 */
  11106. #define RCC_CCIPR1_LPTIM2SEL_Pos (20U)
  11107. #define RCC_CCIPR1_LPTIM2SEL_Msk (0x3UL << RCC_CCIPR1_LPTIM2SEL_Pos)/*!< 0x00300000 */
  11108. #define RCC_CCIPR1_LPTIM2SEL RCC_CCIPR1_LPTIM2SEL_Msk
  11109. #define RCC_CCIPR1_LPTIM2SEL_0 (0x1UL << RCC_CCIPR1_LPTIM2SEL_Pos)/*!< 0x00100000 */
  11110. #define RCC_CCIPR1_LPTIM2SEL_1 (0x2UL << RCC_CCIPR1_LPTIM2SEL_Pos)/*!< 0x00200000 */
  11111. #define RCC_CCIPR1_LPTIM3SEL_Pos (22U)
  11112. #define RCC_CCIPR1_LPTIM3SEL_Msk (0x3UL << RCC_CCIPR1_LPTIM3SEL_Pos)/*!< 0x00C00000 */
  11113. #define RCC_CCIPR1_LPTIM3SEL RCC_CCIPR1_LPTIM3SEL_Msk
  11114. #define RCC_CCIPR1_LPTIM3SEL_0 (0x1UL << RCC_CCIPR1_LPTIM3SEL_Pos)/*!< 0x00400000 */
  11115. #define RCC_CCIPR1_LPTIM3SEL_1 (0x2UL << RCC_CCIPR1_LPTIM3SEL_Pos)/*!< 0x00800000 */
  11116. #define RCC_CCIPR1_FDCANSEL_Pos (24U)
  11117. #define RCC_CCIPR1_FDCANSEL_Msk (0x3UL << RCC_CCIPR1_FDCANSEL_Pos) /*!< 0x03000000 */
  11118. #define RCC_CCIPR1_FDCANSEL RCC_CCIPR1_FDCANSEL_Msk
  11119. #define RCC_CCIPR1_FDCANSEL_0 (0x1UL << RCC_CCIPR1_FDCANSEL_Pos) /*!< 0x01000000 */
  11120. #define RCC_CCIPR1_FDCANSEL_1 (0x2UL << RCC_CCIPR1_FDCANSEL_Pos) /*!< 0x02000000 */
  11121. #define RCC_CCIPR1_CLK48MSEL_Pos (26U)
  11122. #define RCC_CCIPR1_CLK48MSEL_Msk (0x3UL << RCC_CCIPR1_CLK48MSEL_Pos) /*!< 0x0C000000 */
  11123. #define RCC_CCIPR1_CLK48MSEL RCC_CCIPR1_CLK48MSEL_Msk
  11124. #define RCC_CCIPR1_CLK48MSEL_0 (0x1UL << RCC_CCIPR1_CLK48MSEL_Pos) /*!< 0x04000000 */
  11125. #define RCC_CCIPR1_CLK48MSEL_1 (0x2UL << RCC_CCIPR1_CLK48MSEL_Pos) /*!< 0x08000000 */
  11126. #define RCC_CCIPR1_ADCSEL_Pos (28U)
  11127. #define RCC_CCIPR1_ADCSEL_Msk (0x3UL << RCC_CCIPR1_ADCSEL_Pos) /*!< 0x30000000 */
  11128. #define RCC_CCIPR1_ADCSEL RCC_CCIPR1_ADCSEL_Msk
  11129. #define RCC_CCIPR1_ADCSEL_0 (0x1UL << RCC_CCIPR1_ADCSEL_Pos) /*!< 0x10000000 */
  11130. #define RCC_CCIPR1_ADCSEL_1 (0x2UL << RCC_CCIPR1_ADCSEL_Pos) /*!< 0x20000000 */
  11131. /******************** Bit definition for RCC_BDCR register ******************/
  11132. #define RCC_BDCR_LSEON_Pos (0U)
  11133. #define RCC_BDCR_LSEON_Msk (0x1UL << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  11134. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk
  11135. #define RCC_BDCR_LSERDY_Pos (1U)
  11136. #define RCC_BDCR_LSERDY_Msk (0x1UL << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  11137. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk
  11138. #define RCC_BDCR_LSEBYP_Pos (2U)
  11139. #define RCC_BDCR_LSEBYP_Msk (0x1UL << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  11140. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk
  11141. #define RCC_BDCR_LSEDRV_Pos (3U)
  11142. #define RCC_BDCR_LSEDRV_Msk (0x3UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  11143. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk
  11144. #define RCC_BDCR_LSEDRV_0 (0x1UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  11145. #define RCC_BDCR_LSEDRV_1 (0x2UL << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  11146. #define RCC_BDCR_LSECSSON_Pos (5U)
  11147. #define RCC_BDCR_LSECSSON_Msk (0x1UL << RCC_BDCR_LSECSSON_Pos) /*!< 0x00000020 */
  11148. #define RCC_BDCR_LSECSSON RCC_BDCR_LSECSSON_Msk
  11149. #define RCC_BDCR_LSECSSD_Pos (6U)
  11150. #define RCC_BDCR_LSECSSD_Msk (0x1UL << RCC_BDCR_LSECSSD_Pos) /*!< 0x00000040 */
  11151. #define RCC_BDCR_LSECSSD RCC_BDCR_LSECSSD_Msk
  11152. #define RCC_BDCR_LSESYSEN_Pos (7U)
  11153. #define RCC_BDCR_LSESYSEN_Msk (0x1UL << RCC_BDCR_LSESYSEN_Pos) /*!< 0x00000080 */
  11154. #define RCC_BDCR_LSESYSEN RCC_BDCR_LSESYSEN_Msk
  11155. #define RCC_BDCR_RTCSEL_Pos (8U)
  11156. #define RCC_BDCR_RTCSEL_Msk (0x3UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  11157. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk
  11158. #define RCC_BDCR_RTCSEL_0 (0x1UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  11159. #define RCC_BDCR_RTCSEL_1 (0x2UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  11160. #define RCC_BDCR_LSESYSRDY_Pos (11U)
  11161. #define RCC_BDCR_LSESYSRDY_Msk (0x1UL << RCC_BDCR_LSESYSRDY_Pos) /*!< 0x00000800 */
  11162. #define RCC_BDCR_LSESYSRDY RCC_BDCR_LSESYSRDY_Msk
  11163. #define RCC_BDCR_RTCEN_Pos (15U)
  11164. #define RCC_BDCR_RTCEN_Msk (0x1UL << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  11165. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk
  11166. #define RCC_BDCR_BDRST_Pos (16U)
  11167. #define RCC_BDCR_BDRST_Msk (0x1UL << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  11168. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk
  11169. #define RCC_BDCR_LSCOEN_Pos (24U)
  11170. #define RCC_BDCR_LSCOEN_Msk (0x1UL << RCC_BDCR_LSCOEN_Pos) /*!< 0x01000000 */
  11171. #define RCC_BDCR_LSCOEN RCC_BDCR_LSCOEN_Msk
  11172. #define RCC_BDCR_LSCOSEL_Pos (25U)
  11173. #define RCC_BDCR_LSCOSEL_Msk (0x1UL << RCC_BDCR_LSCOSEL_Pos) /*!< 0x02000000 */
  11174. #define RCC_BDCR_LSCOSEL RCC_BDCR_LSCOSEL_Msk
  11175. /******************** Bit definition for RCC_CSR register *******************/
  11176. #define RCC_CSR_LSION_Pos (0U)
  11177. #define RCC_CSR_LSION_Msk (0x1UL << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  11178. #define RCC_CSR_LSION RCC_CSR_LSION_Msk
  11179. #define RCC_CSR_LSIRDY_Pos (1U)
  11180. #define RCC_CSR_LSIRDY_Msk (0x1UL << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  11181. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk
  11182. #define RCC_CSR_LSIPRE_Pos (4U)
  11183. #define RCC_CSR_LSIPRE_Msk (0x1UL << RCC_CSR_LSIPRE_Pos) /*!< 0x00000010 */
  11184. #define RCC_CSR_LSIPRE RCC_CSR_LSIPRE_Msk
  11185. #define RCC_CSR_MSISRANGE_Pos (8U)
  11186. #define RCC_CSR_MSISRANGE_Msk (0xFUL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000F00 */
  11187. #define RCC_CSR_MSISRANGE RCC_CSR_MSISRANGE_Msk
  11188. #define RCC_CSR_MSISRANGE_1 (0x4UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000400 */
  11189. #define RCC_CSR_MSISRANGE_2 (0x5UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000500 */
  11190. #define RCC_CSR_MSISRANGE_4 (0x6UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000600 */
  11191. #define RCC_CSR_MSISRANGE_8 (0x7UL << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000700 */
  11192. #define RCC_CSR_RMVF_Pos (23U)
  11193. #define RCC_CSR_RMVF_Msk (0x1UL << RCC_CSR_RMVF_Pos) /*!< 0x00800000 */
  11194. #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk
  11195. #define RCC_CSR_OBLRSTF_Pos (25U)
  11196. #define RCC_CSR_OBLRSTF_Msk (0x1UL << RCC_CSR_OBLRSTF_Pos) /*!< 0x02000000 */
  11197. #define RCC_CSR_OBLRSTF RCC_CSR_OBLRSTF_Msk
  11198. #define RCC_CSR_PINRSTF_Pos (26U)
  11199. #define RCC_CSR_PINRSTF_Msk (0x1UL << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */
  11200. #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk
  11201. #define RCC_CSR_BORRSTF_Pos (27U)
  11202. #define RCC_CSR_BORRSTF_Msk (0x1UL << RCC_CSR_BORRSTF_Pos) /*!< 0x08000000 */
  11203. #define RCC_CSR_BORRSTF RCC_CSR_BORRSTF_Msk
  11204. #define RCC_CSR_SFTRSTF_Pos (28U)
  11205. #define RCC_CSR_SFTRSTF_Msk (0x1UL << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */
  11206. #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk
  11207. #define RCC_CSR_IWDGRSTF_Pos (29U)
  11208. #define RCC_CSR_IWDGRSTF_Msk (0x1UL << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */
  11209. #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk
  11210. #define RCC_CSR_WWDGRSTF_Pos (30U)
  11211. #define RCC_CSR_WWDGRSTF_Msk (0x1UL << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */
  11212. #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk
  11213. #define RCC_CSR_LPWRRSTF_Pos (31U)
  11214. #define RCC_CSR_LPWRRSTF_Msk (0x1UL << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */
  11215. #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk
  11216. /******************** Bit definition for RCC_CRRCR register *****************/
  11217. #define RCC_CRRCR_HSI48ON_Pos (0U)
  11218. #define RCC_CRRCR_HSI48ON_Msk (0x1UL << RCC_CRRCR_HSI48ON_Pos) /*!< 0x00000001 */
  11219. #define RCC_CRRCR_HSI48ON RCC_CRRCR_HSI48ON_Msk
  11220. #define RCC_CRRCR_HSI48RDY_Pos (1U)
  11221. #define RCC_CRRCR_HSI48RDY_Msk (0x1UL << RCC_CRRCR_HSI48RDY_Pos) /*!< 0x00000002 */
  11222. #define RCC_CRRCR_HSI48RDY RCC_CRRCR_HSI48RDY_Msk
  11223. /*!< HSI48CAL configuration */
  11224. #define RCC_CRRCR_HSI48CAL_Pos (7U)
  11225. #define RCC_CRRCR_HSI48CAL_Msk (0x1FFUL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x0000FF80 */
  11226. #define RCC_CRRCR_HSI48CAL RCC_CRRCR_HSI48CAL_Msk /*!< HSI48CAL[8:0] bits */
  11227. #define RCC_CRRCR_HSI48CAL_0 (0x001UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000080 */
  11228. #define RCC_CRRCR_HSI48CAL_1 (0x002UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000100 */
  11229. #define RCC_CRRCR_HSI48CAL_2 (0x004UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000200 */
  11230. #define RCC_CRRCR_HSI48CAL_3 (0x008UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000400 */
  11231. #define RCC_CRRCR_HSI48CAL_4 (0x010UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00000800 */
  11232. #define RCC_CRRCR_HSI48CAL_5 (0x020UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00001000 */
  11233. #define RCC_CRRCR_HSI48CAL_6 (0x040UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00002000 */
  11234. #define RCC_CRRCR_HSI48CAL_7 (0x080UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00004000 */
  11235. #define RCC_CRRCR_HSI48CAL_8 (0x100UL << RCC_CRRCR_HSI48CAL_Pos)/*!< 0x00008000 */
  11236. /******************** Bit definition for RCC_CCIPR2 register ******************/
  11237. #define RCC_CCIPR2_I2C4SEL_Pos (0U)
  11238. #define RCC_CCIPR2_I2C4SEL_Msk (0x3UL << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000003 */
  11239. #define RCC_CCIPR2_I2C4SEL RCC_CCIPR2_I2C4SEL_Msk
  11240. #define RCC_CCIPR2_I2C4SEL_0 (0x1UL << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000001 */
  11241. #define RCC_CCIPR2_I2C4SEL_1 (0x2UL << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000002 */
  11242. #define RCC_CCIPR2_DFSDMSEL_Pos (2U)
  11243. #define RCC_CCIPR2_DFSDMSEL_Msk (0x1UL << RCC_CCIPR2_DFSDMSEL_Pos)/*!< 0x00000004 */
  11244. #define RCC_CCIPR2_DFSDMSEL RCC_CCIPR2_DFSDMSEL_Msk
  11245. #define RCC_CCIPR2_ADFSDMSEL_Pos (3U)
  11246. #define RCC_CCIPR2_ADFSDMSEL_Msk (0x3UL << RCC_CCIPR2_ADFSDMSEL_Pos)/*!< 0x00000018 */
  11247. #define RCC_CCIPR2_ADFSDMSEL RCC_CCIPR2_ADFSDMSEL_Msk
  11248. #define RCC_CCIPR2_ADFSDMSEL_0 (0x1UL << RCC_CCIPR2_ADFSDMSEL_Pos)/*!< 0x00000008 */
  11249. #define RCC_CCIPR2_ADFSDMSEL_1 (0x2UL << RCC_CCIPR2_ADFSDMSEL_Pos)/*!< 0x00000010 */
  11250. #define RCC_CCIPR2_SAI1SEL_Pos (5U)
  11251. #define RCC_CCIPR2_SAI1SEL_Msk (0x7UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x000000E0 */
  11252. #define RCC_CCIPR2_SAI1SEL RCC_CCIPR2_SAI1SEL_Msk
  11253. #define RCC_CCIPR2_SAI1SEL_0 (0x1UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x00000020 */
  11254. #define RCC_CCIPR2_SAI1SEL_1 (0x2UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x00000040 */
  11255. #define RCC_CCIPR2_SAI1SEL_2 (0x4UL << RCC_CCIPR2_SAI1SEL_Pos) /*!< 0x00000080 */
  11256. #define RCC_CCIPR2_SAI2SEL_Pos (8U)
  11257. #define RCC_CCIPR2_SAI2SEL_Msk (0x7UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000700 */
  11258. #define RCC_CCIPR2_SAI2SEL RCC_CCIPR2_SAI2SEL_Msk
  11259. #define RCC_CCIPR2_SAI2SEL_0 (0x1UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000100 */
  11260. #define RCC_CCIPR2_SAI2SEL_1 (0x2UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000200 */
  11261. #define RCC_CCIPR2_SAI2SEL_2 (0x4UL << RCC_CCIPR2_SAI2SEL_Pos) /*!< 0x00000400 */
  11262. #define RCC_CCIPR2_SDMMCSEL_Pos (14U)
  11263. #define RCC_CCIPR2_SDMMCSEL_Msk (0x1UL << RCC_CCIPR2_SDMMCSEL_Pos)/*!< 0x00004000 */
  11264. #define RCC_CCIPR2_SDMMCSEL RCC_CCIPR2_SDMMCSEL_Msk
  11265. #define RCC_CCIPR2_OSPISEL_Pos (20U)
  11266. #define RCC_CCIPR2_OSPISEL_Msk (0x3UL << RCC_CCIPR2_OSPISEL_Pos)/*!< 0x00300000 */
  11267. #define RCC_CCIPR2_OSPISEL RCC_CCIPR2_OSPISEL_Msk
  11268. #define RCC_CCIPR2_OSPISEL_0 (0x1UL << RCC_CCIPR2_OSPISEL_Pos)/*!< 0x00100000 */
  11269. #define RCC_CCIPR2_OSPISEL_1 (0x2UL << RCC_CCIPR2_OSPISEL_Pos)/*!< 0x00200000 */
  11270. /******************** Bit definition for RCC_SECCFGR register ***************/
  11271. #define RCC_SECCFGR_HSISEC_Pos (0U)
  11272. #define RCC_SECCFGR_HSISEC_Msk (0x1UL << RCC_SECCFGR_HSISEC_Pos) /*!< 0x00000001 */
  11273. #define RCC_SECCFGR_HSISEC RCC_SECCFGR_HSISEC_Msk
  11274. #define RCC_SECCFGR_HSESEC_Pos (1U)
  11275. #define RCC_SECCFGR_HSESEC_Msk (0x1UL << RCC_SECCFGR_HSESEC_Pos) /*!< 0x00000002 */
  11276. #define RCC_SECCFGR_HSESEC RCC_SECCFGR_HSESEC_Msk
  11277. #define RCC_SECCFGR_MSISEC_Pos (2U)
  11278. #define RCC_SECCFGR_MSISEC_Msk (0x1UL << RCC_SECCFGR_MSISEC_Pos) /*!< 0x00000004 */
  11279. #define RCC_SECCFGR_MSISEC RCC_SECCFGR_MSISEC_Msk
  11280. #define RCC_SECCFGR_LSISEC_Pos (3U)
  11281. #define RCC_SECCFGR_LSISEC_Msk (0x1UL << RCC_SECCFGR_LSISEC_Pos) /*!< 0x00000008 */
  11282. #define RCC_SECCFGR_LSISEC RCC_SECCFGR_LSISEC_Msk
  11283. #define RCC_SECCFGR_LSESEC_Pos (4U)
  11284. #define RCC_SECCFGR_LSESEC_Msk (0x1UL << RCC_SECCFGR_LSESEC_Pos) /*!< 0x00000010 */
  11285. #define RCC_SECCFGR_LSESEC RCC_SECCFGR_LSESEC_Msk
  11286. #define RCC_SECCFGR_SYSCLKSEC_Pos (5U)
  11287. #define RCC_SECCFGR_SYSCLKSEC_Msk (0x1UL << RCC_SECCFGR_SYSCLKSEC_Pos)/*!< 0x00000020 */
  11288. #define RCC_SECCFGR_SYSCLKSEC RCC_SECCFGR_SYSCLKSEC_Msk
  11289. #define RCC_SECCFGR_PRESCSEC_Pos (6U)
  11290. #define RCC_SECCFGR_PRESCSEC_Msk (0x1UL << RCC_SECCFGR_PRESCSEC_Pos)/*!< 0x00000040 */
  11291. #define RCC_SECCFGR_PRESCSEC RCC_SECCFGR_PRESCSEC_Msk
  11292. #define RCC_SECCFGR_PLLSEC_Pos (7U)
  11293. #define RCC_SECCFGR_PLLSEC_Msk (0x1UL << RCC_SECCFGR_PLLSEC_Pos)/*!< 0x00000080 */
  11294. #define RCC_SECCFGR_PLLSEC RCC_SECCFGR_PLLSEC_Msk
  11295. #define RCC_SECCFGR_PLLSAI1SEC_Pos (8U)
  11296. #define RCC_SECCFGR_PLLSAI1SEC_Msk (0x1UL << RCC_SECCFGR_PLLSAI1SEC_Pos)/*!< 0x00000100 */
  11297. #define RCC_SECCFGR_PLLSAI1SEC RCC_SECCFGR_PLLSAI1SEC_Msk
  11298. #define RCC_SECCFGR_PLLSAI2SEC_Pos (9U)
  11299. #define RCC_SECCFGR_PLLSAI2SEC_Msk (0x1UL << RCC_SECCFGR_PLLSAI2SEC_Pos)/*!< 0x00000200 */
  11300. #define RCC_SECCFGR_PLLSAI2SEC RCC_SECCFGR_PLLSAI2SEC_Msk
  11301. #define RCC_SECCFGR_CLK48MSEC_Pos (10U)
  11302. #define RCC_SECCFGR_CLK48MSEC_Msk (0x1UL << RCC_SECCFGR_CLK48MSEC_Pos) /*!< 0x00000400 */
  11303. #define RCC_SECCFGR_CLK48MSEC RCC_SECCFGR_CLK48MSEC_Msk
  11304. #define RCC_SECCFGR_HSI48SEC_Pos (11U)
  11305. #define RCC_SECCFGR_HSI48SEC_Msk (0x1UL << RCC_SECCFGR_HSI48SEC_Pos) /*!< 0x00000800 */
  11306. #define RCC_SECCFGR_HSI48SEC RCC_SECCFGR_HSI48SEC_Msk
  11307. #define RCC_SECCFGR_RMVFSEC_Pos (12U)
  11308. #define RCC_SECCFGR_RMVFSEC_Msk (0x1UL << RCC_SECCFGR_RMVFSEC_Pos)/*!< 0x00001000 */
  11309. #define RCC_SECCFGR_RMVFSEC RCC_SECCFGR_RMVFSEC_Msk
  11310. /******************** Bit definition for RCC_SECSR register *****************/
  11311. #define RCC_SECSR_HSISECF_Pos (0U)
  11312. #define RCC_SECSR_HSISECF_Msk (0x1UL << RCC_SECSR_HSISECF_Pos) /*!< 0x00000001 */
  11313. #define RCC_SECSR_HSISECF RCC_SECSR_HSISECF_Msk
  11314. #define RCC_SECSR_HSESECF_Pos (1U)
  11315. #define RCC_SECSR_HSESECF_Msk (0x1UL << RCC_SECSR_HSESECF_Pos) /*!< 0x00000002 */
  11316. #define RCC_SECSR_HSESECF RCC_SECSR_HSESECF_Msk
  11317. #define RCC_SECSR_MSISECF_Pos (2U)
  11318. #define RCC_SECSR_MSISECF_Msk (0x1UL << RCC_SECSR_MSISECF_Pos) /*!< 0x00000004 */
  11319. #define RCC_SECSR_MSISECF RCC_SECSR_MSISECF_Msk
  11320. #define RCC_SECSR_LSISECF_Pos (3U)
  11321. #define RCC_SECSR_LSISECF_Msk (0x1UL << RCC_SECSR_LSISECF_Pos) /*!< 0x00000008 */
  11322. #define RCC_SECSR_LSISECF RCC_SECSR_LSISECF_Msk
  11323. #define RCC_SECSR_LSESECF_Pos (4U)
  11324. #define RCC_SECSR_LSESECF_Msk (0x1UL << RCC_SECSR_LSESECF_Pos) /*!< 0x00000010 */
  11325. #define RCC_SECSR_LSESECF RCC_SECSR_LSESECF_Msk
  11326. #define RCC_SECSR_SYSCLKSECF_Pos (5U)
  11327. #define RCC_SECSR_SYSCLKSECF_Msk (0x1UL << RCC_SECSR_SYSCLKSECF_Pos)/*!< 0x00000020 */
  11328. #define RCC_SECSR_SYSCLKSECF RCC_SECSR_SYSCLKSECF_Msk
  11329. #define RCC_SECSR_PRESCSECF_Pos (6U)
  11330. #define RCC_SECSR_PRESCSECF_Msk (0x1UL << RCC_SECSR_PRESCSECF_Pos)/*!< 0x00000040 */
  11331. #define RCC_SECSR_PRESCSECF RCC_SECSR_PRESCSECF_Msk
  11332. #define RCC_SECSR_PLLSECF_Pos (7U)
  11333. #define RCC_SECSR_PLLSECF_Msk (0x1UL << RCC_SECSR_PLLSECF_Pos) /*!< 0x00000080 */
  11334. #define RCC_SECSR_PLLSECF RCC_SECSR_PLLSECF_Msk
  11335. #define RCC_SECSR_PLLSAI1SECF_Pos (8U)
  11336. #define RCC_SECSR_PLLSAI1SECF_Msk (0x1UL << RCC_SECSR_PLLSAI1SECF_Pos)/*!< 0x00000100 */
  11337. #define RCC_SECSR_PLLSAI1SECF RCC_SECSR_PLLSAI1SECF_Msk
  11338. #define RCC_SECSR_PLLSAI2SECF_Pos (9U)
  11339. #define RCC_SECSR_PLLSAI2SECF_Msk (0x1UL << RCC_SECSR_PLLSAI2SECF_Pos)/*!< 0x00000200 */
  11340. #define RCC_SECSR_PLLSAI2SECF RCC_SECSR_PLLSAI2SECF_Msk
  11341. #define RCC_SECSR_CLK48MSECF_Pos (10U)
  11342. #define RCC_SECSR_CLK48MSECF_Msk (0x1UL << RCC_SECSR_CLK48MSECF_Pos) /*!< 0x00000400 */
  11343. #define RCC_SECSR_CLK48MSECF RCC_SECSR_CLK48MSECF_Msk
  11344. #define RCC_SECSR_HSI48SECF_Pos (11U)
  11345. #define RCC_SECSR_HSI48SECF_Msk (0x1UL << RCC_SECSR_HSI48SECF_Pos) /*!< 0x00000800 */
  11346. #define RCC_SECSR_HSI48SECF RCC_SECSR_HSI48SECF_Msk
  11347. #define RCC_SECSR_RMVFSECF_Pos (12U)
  11348. #define RCC_SECSR_RMVFSECF_Msk (0x1UL << RCC_SECSR_RMVFSECF_Pos)/*!< 0x00001000 */
  11349. #define RCC_SECSR_RMVFSECF RCC_SECSR_RMVFSECF_Msk
  11350. /******************** Bit definition for RCC_AHB1SECSR register *************/
  11351. #define RCC_AHB1SECSR_DMA1SECF_Pos (0U)
  11352. #define RCC_AHB1SECSR_DMA1SECF_Msk (0x1UL << RCC_AHB1SECSR_DMA1SECF_Pos)/*!< 0x00000001 */
  11353. #define RCC_AHB1SECSR_DMA1SECF RCC_AHB1SECSR_DMA1SECF_Msk
  11354. #define RCC_AHB1SECSR_DMA2SECF_Pos (1U)
  11355. #define RCC_AHB1SECSR_DMA2SECF_Msk (0x1UL << RCC_AHB1SECSR_DMA2SECF_Pos)/*!< 0x00000002 */
  11356. #define RCC_AHB1SECSR_DMA2SECF RCC_AHB1SECSR_DMA2SECF_Msk
  11357. #define RCC_AHB1SECSR_DMAMUX1SECF_Pos (2U)
  11358. #define RCC_AHB1SECSR_DMAMUX1SECF_Msk (0x1UL << RCC_AHB1SECSR_DMAMUX1SECF_Pos)/*!< 0x00000004 */
  11359. #define RCC_AHB1SECSR_DMAMUX1SECF RCC_AHB1SECSR_DMAMUX1SECF_Msk
  11360. #define RCC_AHB1SECSR_FLASHSECF_Pos (8U)
  11361. #define RCC_AHB1SECSR_FLASHSECF_Msk (0x1UL << RCC_AHB1SECSR_FLASHSECF_Pos)/*!< 0x00000100 */
  11362. #define RCC_AHB1SECSR_FLASHSECF RCC_AHB1SECSR_FLASHSECF_Msk
  11363. #define RCC_AHB1SECSR_SRAM1SECF_Pos (9U)
  11364. #define RCC_AHB1SECSR_SRAM1SECF_Msk (0x1UL << RCC_AHB1SECSR_SRAM1SECF_Pos)/*!< 0x00000200 */
  11365. #define RCC_AHB1SECSR_SRAM1SECF RCC_AHB1SECSR_SRAM1SECF_Msk
  11366. #define RCC_AHB1SECSR_CRCSECF_Pos (12U)
  11367. #define RCC_AHB1SECSR_CRCSECF_Msk (0x1UL << RCC_AHB1SECSR_CRCSECF_Pos)/*!< 0x00001000 */
  11368. #define RCC_AHB1SECSR_CRCSECF RCC_AHB1SECSR_CRCSECF_Msk
  11369. #define RCC_AHB1SECSR_TSCSECF_Pos (16U)
  11370. #define RCC_AHB1SECSR_TSCSECF_Msk (0x1UL << RCC_AHB1SECSR_TSCSECF_Pos)/*!< 0x00010000 */
  11371. #define RCC_AHB1SECSR_TSCSECF RCC_AHB1SECSR_TSCSECF_Msk
  11372. #define RCC_AHB1SECSR_GTZCSECF_Pos (22U)
  11373. #define RCC_AHB1SECSR_GTZCSECF_Msk (0x1UL << RCC_AHB1SECSR_GTZCSECF_Pos)/*!< 0x00400000 */
  11374. #define RCC_AHB1SECSR_GTZCSECF RCC_AHB1SECSR_GTZCSECF_Msk
  11375. #define RCC_AHB1SECSR_ICACHESECF_Pos (23U)
  11376. #define RCC_AHB1SECSR_ICACHESECF_Msk (0x1UL << RCC_AHB1SECSR_ICACHESECF_Pos)/*!< 0x00600000 */
  11377. #define RCC_AHB1SECSR_ICACHESECF RCC_AHB1SECSR_ICACHESECF_Msk
  11378. /******************** Bit definition for RCC_AHB2SECSR register *************/
  11379. #define RCC_AHB2SECSR_GPIOASECF_Pos (0U)
  11380. #define RCC_AHB2SECSR_GPIOASECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOASECF_Pos)/*!< 0x00000001 */
  11381. #define RCC_AHB2SECSR_GPIOASECF RCC_AHB2SECSR_GPIOASECF_Msk
  11382. #define RCC_AHB2SECSR_GPIOBSECF_Pos (1U)
  11383. #define RCC_AHB2SECSR_GPIOBSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOBSECF_Pos)/*!< 0x00000002 */
  11384. #define RCC_AHB2SECSR_GPIOBSECF RCC_AHB2SECSR_GPIOBSECF_Msk
  11385. #define RCC_AHB2SECSR_GPIOCSECF_Pos (2U)
  11386. #define RCC_AHB2SECSR_GPIOCSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOCSECF_Pos)/*!< 0x00000004 */
  11387. #define RCC_AHB2SECSR_GPIOCSECF RCC_AHB2SECSR_GPIOCSECF_Msk
  11388. #define RCC_AHB2SECSR_GPIODSECF_Pos (3U)
  11389. #define RCC_AHB2SECSR_GPIODSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIODSECF_Pos)/*!< 0x00000008 */
  11390. #define RCC_AHB2SECSR_GPIODSECF RCC_AHB2SECSR_GPIODSECF_Msk
  11391. #define RCC_AHB2SECSR_GPIOESECF_Pos (4U)
  11392. #define RCC_AHB2SECSR_GPIOESECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOESECF_Pos)/*!< 0x00000010 */
  11393. #define RCC_AHB2SECSR_GPIOESECF RCC_AHB2SECSR_GPIOESECF_Msk
  11394. #define RCC_AHB2SECSR_GPIOFSECF_Pos (5U)
  11395. #define RCC_AHB2SECSR_GPIOFSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOFSECF_Pos)/*!< 0x00000020 */
  11396. #define RCC_AHB2SECSR_GPIOFSECF RCC_AHB2SECSR_GPIOFSECF_Msk
  11397. #define RCC_AHB2SECSR_GPIOGSECF_Pos (6U)
  11398. #define RCC_AHB2SECSR_GPIOGSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOGSECF_Pos)/*!< 0x00000040 */
  11399. #define RCC_AHB2SECSR_GPIOGSECF RCC_AHB2SECSR_GPIOGSECF_Msk
  11400. #define RCC_AHB2SECSR_GPIOHSECF_Pos (7U)
  11401. #define RCC_AHB2SECSR_GPIOHSECF_Msk (0x1UL << RCC_AHB2SECSR_GPIOHSECF_Pos)/*!< 0x00000080 */
  11402. #define RCC_AHB2SECSR_GPIOHSECF RCC_AHB2SECSR_GPIOHSECF_Msk
  11403. #define RCC_AHB2SECSR_SRAM2SECF_Pos (9U)
  11404. #define RCC_AHB2SECSR_SRAM2SECF_Msk (0x1UL << RCC_AHB2SECSR_SRAM2SECF_Pos)/*!< 0x00000200 */
  11405. #define RCC_AHB2SECSR_SRAM2SECF RCC_AHB2SECSR_SRAM2SECF_Msk
  11406. #define RCC_AHB2SECSR_ADCSECF_Pos (13U)
  11407. #define RCC_AHB2SECSR_ADCSECF_Msk (0x1UL << RCC_AHB2SECSR_ADCSECF_Pos)/*!< 0x00002000 */
  11408. #define RCC_AHB2SECSR_ADCSECF RCC_AHB2SECSR_ADCSECF_Msk
  11409. #define RCC_AHB2SECSR_HASHSECF_Pos (17U)
  11410. #define RCC_AHB2SECSR_HASHSECF_Msk (0x1UL << RCC_AHB2SECSR_HASHSECF_Pos)/*!< 0x00020000 */
  11411. #define RCC_AHB2SECSR_HASHSECF RCC_AHB2SECSR_HASHSECF_Msk
  11412. #define RCC_AHB2SECSR_RNGSECF_Pos (18U)
  11413. #define RCC_AHB2SECSR_RNGSECF_Msk (0x1UL << RCC_AHB2SECSR_RNGSECF_Pos)/*!< 0x00040000 */
  11414. #define RCC_AHB2SECSR_RNGSECF RCC_AHB2SECSR_RNGSECF_Msk
  11415. #define RCC_AHB2SECSR_SDMMC1SECF_Pos (22U)
  11416. #define RCC_AHB2SECSR_SDMMC1SECF_Msk (0x1UL << RCC_AHB2SECSR_SDMMC1SECF_Pos)/*!< 0x00400000 */
  11417. #define RCC_AHB2SECSR_SDMMC1SECF RCC_AHB2SECSR_SDMMC1SECF_Msk
  11418. /******************** Bit definition for RCC_AHB3SECSR register *************/
  11419. #define RCC_AHB3SECSR_FMCSECF_Pos (0U)
  11420. #define RCC_AHB3SECSR_FMCSECF_Msk (0x1UL << RCC_AHB3SECSR_FMCSECF_Pos)/*!< 0x00000001 */
  11421. #define RCC_AHB3SECSR_FMCSECF RCC_AHB3SECSR_FMCSECF_Msk
  11422. #define RCC_AHB3SECSR_OSPI1SECF_Pos (8U)
  11423. #define RCC_AHB3SECSR_OSPI1SECF_Msk (0x1UL << RCC_AHB3SECSR_OSPI1SECF_Pos)/*!< 0x00000100 */
  11424. #define RCC_AHB3SECSR_OSPI1SECF RCC_AHB3SECSR_OSPI1SECF_Msk
  11425. /******************** Bit definition for RCC_APB1SECSR1 register ************/
  11426. #define RCC_APB1SECSR1_TIM2SECF_Pos (0U)
  11427. #define RCC_APB1SECSR1_TIM2SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM2SECF_Pos)/*!< 0x00000001 */
  11428. #define RCC_APB1SECSR1_TIM2SECF RCC_APB1SECSR1_TIM2SECF_Msk
  11429. #define RCC_APB1SECSR1_TIM3SECF_Pos (1U)
  11430. #define RCC_APB1SECSR1_TIM3SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM3SECF_Pos)/*!< 0x00000002 */
  11431. #define RCC_APB1SECSR1_TIM3SECF RCC_APB1SECSR1_TIM3SECF_Msk
  11432. #define RCC_APB1SECSR1_TIM4SECF_Pos (2U)
  11433. #define RCC_APB1SECSR1_TIM4SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM4SECF_Pos)/*!< 0x00000004 */
  11434. #define RCC_APB1SECSR1_TIM4SECF RCC_APB1SECSR1_TIM4SECF_Msk
  11435. #define RCC_APB1SECSR1_TIM5SECF_Pos (3U)
  11436. #define RCC_APB1SECSR1_TIM5SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM5SECF_Pos)/*!< 0x00000008 */
  11437. #define RCC_APB1SECSR1_TIM5SECF RCC_APB1SECSR1_TIM5SECF_Msk
  11438. #define RCC_APB1SECSR1_TIM6SECF_Pos (4U)
  11439. #define RCC_APB1SECSR1_TIM6SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM6SECF_Pos)/*!< 0x00000010 */
  11440. #define RCC_APB1SECSR1_TIM6SECF RCC_APB1SECSR1_TIM6SECF_Msk
  11441. #define RCC_APB1SECSR1_TIM7SECF_Pos (5U)
  11442. #define RCC_APB1SECSR1_TIM7SECF_Msk (0x1UL << RCC_APB1SECSR1_TIM7SECF_Pos)/*!< 0x00000020 */
  11443. #define RCC_APB1SECSR1_TIM7SECF RCC_APB1SECSR1_TIM7SECF_Msk
  11444. #define RCC_APB1SECSR1_RTCAPBSECF_Pos (10U)
  11445. #define RCC_APB1SECSR1_RTCAPBSECF_Msk (0x1UL << RCC_APB1SECSR1_RTCAPBSECF_Pos)/*!< 0x00000400 */
  11446. #define RCC_APB1SECSR1_RTCAPBSECF RCC_APB1SECSR1_RTCAPBSECF_Msk
  11447. #define RCC_APB1SECSR1_WWDGSECF_Pos (11U)
  11448. #define RCC_APB1SECSR1_WWDGSECF_Msk (0x1UL << RCC_APB1SECSR1_WWDGSECF_Pos)/*!< 0x00000800 */
  11449. #define RCC_APB1SECSR1_WWDGSECF RCC_APB1SECSR1_WWDGSECF_Msk
  11450. #define RCC_APB1SECSR1_SPI2SECF_Pos (14U)
  11451. #define RCC_APB1SECSR1_SPI2SECF_Msk (0x1UL << RCC_APB1SECSR1_SPI2SECF_Pos)/*!< 0x00004000 */
  11452. #define RCC_APB1SECSR1_SPI2SECF RCC_APB1SECSR1_SPI2SECF_Msk
  11453. #define RCC_APB1SECSR1_SPI3SECF_Pos (15U)
  11454. #define RCC_APB1SECSR1_SPI3SECF_Msk (0x1UL << RCC_APB1SECSR1_SPI3SECF_Pos)/*!< 0x00008000 */
  11455. #define RCC_APB1SECSR1_SPI3SECF RCC_APB1SECSR1_SPI3SECF_Msk
  11456. #define RCC_APB1SECSR1_USART2SECF_Pos (17U)
  11457. #define RCC_APB1SECSR1_USART2SECF_Msk (0x1UL << RCC_APB1SECSR1_USART2SECF_Pos)/*!< 0x00020000 */
  11458. #define RCC_APB1SECSR1_USART2SECF RCC_APB1SECSR1_USART2SECF_Msk
  11459. #define RCC_APB1SECSR1_USART3SECF_Pos (18U)
  11460. #define RCC_APB1SECSR1_USART3SECF_Msk (0x1UL << RCC_APB1SECSR1_USART3SECF_Pos)/*!< 0x00040000 */
  11461. #define RCC_APB1SECSR1_USART3SECF RCC_APB1SECSR1_USART3SECF_Msk
  11462. #define RCC_APB1SECSR1_UART4SECF_Pos (19U)
  11463. #define RCC_APB1SECSR1_UART4SECF_Msk (0x1UL << RCC_APB1SECSR1_UART4SECF_Pos)/*!< 0x00080000 */
  11464. #define RCC_APB1SECSR1_UART4SECF RCC_APB1SECSR1_UART4SECF_Msk
  11465. #define RCC_APB1SECSR1_UART5SECF_Pos (20U)
  11466. #define RCC_APB1SECSR1_UART5SECF_Msk (0x1UL << RCC_APB1SECSR1_UART5SECF_Pos)/*!< 0x00100000 */
  11467. #define RCC_APB1SECSR1_UART5SECF RCC_APB1SECSR1_UART5SECF_Msk
  11468. #define RCC_APB1SECSR1_I2C1SECF_Pos (21U)
  11469. #define RCC_APB1SECSR1_I2C1SECF_Msk (0x1UL << RCC_APB1SECSR1_I2C1SECF_Pos)/*!< 0x00200000 */
  11470. #define RCC_APB1SECSR1_I2C1SECF RCC_APB1SECSR1_I2C1SECF_Msk
  11471. #define RCC_APB1SECSR1_I2C2SECF_Pos (22U)
  11472. #define RCC_APB1SECSR1_I2C2SECF_Msk (0x1UL << RCC_APB1SECSR1_I2C2SECF_Pos)/*!< 0x00400000 */
  11473. #define RCC_APB1SECSR1_I2C2SECF RCC_APB1SECSR1_I2C2SECF_Msk
  11474. #define RCC_APB1SECSR1_I2C3SECF_Pos (23U)
  11475. #define RCC_APB1SECSR1_I2C3SECF_Msk (0x1UL << RCC_APB1SECSR1_I2C3SECF_Pos)/*!< 0x00800000 */
  11476. #define RCC_APB1SECSR1_I2C3SECF RCC_APB1SECSR1_I2C3SECF_Msk
  11477. #define RCC_APB1SECSR1_CRSSECF_Pos (24U)
  11478. #define RCC_APB1SECSR1_CRSSECF_Msk (0x1UL << RCC_APB1SECSR1_CRSSECF_Pos)/*!< 0x01000000 */
  11479. #define RCC_APB1SECSR1_CRSSECF RCC_APB1SECSR1_CRSSECF_Msk
  11480. #define RCC_APB1SECSR1_PWRSECF_Pos (28U)
  11481. #define RCC_APB1SECSR1_PWRSECF_Msk (0x1UL << RCC_APB1SECSR1_PWRSECF_Pos)/*!< 0x10000000 */
  11482. #define RCC_APB1SECSR1_PWRSECF RCC_APB1SECSR1_PWRSECF_Msk
  11483. #define RCC_APB1SECSR1_DAC1SECF_Pos (29U)
  11484. #define RCC_APB1SECSR1_DAC1SECF_Msk (0x1UL << RCC_APB1SECSR1_DAC1SECF_Pos)/*!< 0x20000000 */
  11485. #define RCC_APB1SECSR1_DAC1SECF RCC_APB1SECSR1_DAC1SECF_Msk
  11486. #define RCC_APB1SECSR1_OPAMPSECF_Pos (30U)
  11487. #define RCC_APB1SECSR1_OPAMPSECF_Msk (0x1UL << RCC_APB1SECSR1_OPAMPSECF_Pos)/*!< 0x40000000 */
  11488. #define RCC_APB1SECSR1_OPAMPSECF RCC_APB1SECSR1_OPAMPSECF_Msk
  11489. #define RCC_APB1SECSR1_LPTIM1SECF_Pos (31U)
  11490. #define RCC_APB1SECSR1_LPTIM1SECF_Msk (0x1UL << RCC_APB1SECSR1_LPTIM1SECF_Pos)/*!< 0x80000000 */
  11491. #define RCC_APB1SECSR1_LPTIM1SECF RCC_APB1SECSR1_LPTIM1SECF_Msk
  11492. /******************** Bit definition for RCC_APB1SECSR2 register ************/
  11493. #define RCC_APB1SECSR2_LPUART1SECF_Pos (0U)
  11494. #define RCC_APB1SECSR2_LPUART1SECF_Msk (0x1UL << RCC_APB1SECSR2_LPUART1SECF_Pos)/*!< 0x00000001 */
  11495. #define RCC_APB1SECSR2_LPUART1SECF RCC_APB1SECSR2_LPUART1SECF_Msk
  11496. #define RCC_APB1SECSR2_I2C4SECF_Pos (1U)
  11497. #define RCC_APB1SECSR2_I2C4SECF_Msk (0x1UL << RCC_APB1SECSR2_I2C4SECF_Pos)/*!< 0x00000002 */
  11498. #define RCC_APB1SECSR2_I2C4SECF RCC_APB1SECSR2_I2C4SECF_Msk
  11499. #define RCC_APB1SECSR2_LPTIM2SECF_Pos (5U)
  11500. #define RCC_APB1SECSR2_LPTIM2SECF_Msk (0x1UL << RCC_APB1SECSR2_LPTIM2SECF_Pos)/*!< 0x00000020 */
  11501. #define RCC_APB1SECSR2_LPTIM2SECF RCC_APB1SECSR2_LPTIM2SECF_Msk
  11502. #define RCC_APB1SECSR2_LPTIM3SECF_Pos (6U)
  11503. #define RCC_APB1SECSR2_LPTIM3SECF_Msk (0x1UL << RCC_APB1SECSR2_LPTIM3SECF_Pos)/*!< 0x00000040 */
  11504. #define RCC_APB1SECSR2_LPTIM3SECF RCC_APB1SECSR2_LPTIM3SECF_Msk
  11505. #define RCC_APB1SECSR2_FDCAN1SECF_Pos (9U)
  11506. #define RCC_APB1SECSR2_FDCAN1SECF_Msk (0x1UL << RCC_APB1SECSR2_FDCAN1SECF_Pos)/*!< 0x00000200 */
  11507. #define RCC_APB1SECSR2_FDCAN1SECF RCC_APB1SECSR2_FDCAN1SECF_Msk
  11508. #define RCC_APB1SECSR2_USBFSSECF_Pos (21U)
  11509. #define RCC_APB1SECSR2_USBFSSECF_Msk (0x1UL << RCC_APB1SECSR2_USBFSSECF_Pos)/*!< 0x00200000 */
  11510. #define RCC_APB1SECSR2_USBFSSECF RCC_APB1SECSR2_USBFSSECF_Msk
  11511. #define RCC_APB1SECSR2_UCPD1SECF_Pos (23U)
  11512. #define RCC_APB1SECSR2_UCPD1SECF_Msk (0x1UL << RCC_APB1SECSR2_UCPD1SECF_Pos)/*!< 0x00800000 */
  11513. #define RCC_APB1SECSR2_UCPD1SECF RCC_APB1SECSR2_UCPD1SECF_Msk
  11514. /******************** Bit definition for RCC_APB2SECSR register *************/
  11515. #define RCC_APB2SECSR_SYSCFGSECF_Pos (0U)
  11516. #define RCC_APB2SECSR_SYSCFGSECF_Msk (0x1UL << RCC_APB2SECSR_SYSCFGSECF_Pos)/*!< 0x00000001 */
  11517. #define RCC_APB2SECSR_SYSCFGSECF RCC_APB2SECSR_SYSCFGSECF_Msk
  11518. #define RCC_APB2SECSR_TIM1SECF_Pos (11U)
  11519. #define RCC_APB2SECSR_TIM1SECF_Msk (0x1UL << RCC_APB2SECSR_TIM1SECF_Pos)/*!< 0x00000800 */
  11520. #define RCC_APB2SECSR_TIM1SECF RCC_APB2SECSR_TIM1SECF_Msk
  11521. #define RCC_APB2SECSR_SPI1SECF_Pos (12U)
  11522. #define RCC_APB2SECSR_SPI1SECF_Msk (0x1UL << RCC_APB2SECSR_SPI1SECF_Pos)/*!< 0x00001000 */
  11523. #define RCC_APB2SECSR_SPI1SECF RCC_APB2SECSR_SPI1SECF_Msk
  11524. #define RCC_APB2SECSR_TIM8SECF_Pos (13U)
  11525. #define RCC_APB2SECSR_TIM8SECF_Msk (0x1UL << RCC_APB2SECSR_TIM8SECF_Pos)/*!< 0x00002000 */
  11526. #define RCC_APB2SECSR_TIM8SECF RCC_APB2SECSR_TIM8SECF_Msk
  11527. #define RCC_APB2SECSR_USART1SECF_Pos (14U)
  11528. #define RCC_APB2SECSR_USART1SECF_Msk (0x1UL << RCC_APB2SECSR_USART1SECF_Pos)/*!< 0x00004000 */
  11529. #define RCC_APB2SECSR_USART1SECF RCC_APB2SECSR_USART1SECF_Msk
  11530. #define RCC_APB2SECSR_TIM15SECF_Pos (16U)
  11531. #define RCC_APB2SECSR_TIM15SECF_Msk (0x1UL << RCC_APB2SECSR_TIM15SECF_Pos)/*!< 0x00010000 */
  11532. #define RCC_APB2SECSR_TIM15SECF RCC_APB2SECSR_TIM15SECF_Msk
  11533. #define RCC_APB2SECSR_TIM16SECF_Pos (17U)
  11534. #define RCC_APB2SECSR_TIM16SECF_Msk (0x1UL << RCC_APB2SECSR_TIM16SECF_Pos)/*!< 0x00020000 */
  11535. #define RCC_APB2SECSR_TIM16SECF RCC_APB2SECSR_TIM16SECF_Msk
  11536. #define RCC_APB2SECSR_TIM17SECF_Pos (18U)
  11537. #define RCC_APB2SECSR_TIM17SECF_Msk (0x1UL << RCC_APB2SECSR_TIM17SECF_Pos)/*!< 0x00040000 */
  11538. #define RCC_APB2SECSR_TIM17SECF RCC_APB2SECSR_TIM17SECF_Msk
  11539. #define RCC_APB2SECSR_SAI1SECF_Pos (21U)
  11540. #define RCC_APB2SECSR_SAI1SECF_Msk (0x1UL << RCC_APB2SECSR_SAI1SECF_Pos)/*!< 0x00200000 */
  11541. #define RCC_APB2SECSR_SAI1SECF RCC_APB2SECSR_SAI1SECF_Msk
  11542. #define RCC_APB2SECSR_SAI2SECF_Pos (22U)
  11543. #define RCC_APB2SECSR_SAI2SECF_Msk (0x1UL << RCC_APB2SECSR_SAI2SECF_Pos)/*!< 0x00400000 */
  11544. #define RCC_APB2SECSR_SAI2SECF RCC_APB2SECSR_SAI2SECF_Msk
  11545. #define RCC_APB2SECSR_DFSDM1SECF_Pos (24U)
  11546. #define RCC_APB2SECSR_DFSDM1SECF_Msk (0x1UL << RCC_APB2SECSR_DFSDM1SECF_Pos)/*!< 0x01000000 */
  11547. #define RCC_APB2SECSR_DFSDM1SECF RCC_APB2SECSR_DFSDM1SECF_Msk
  11548. /******************************************************************************/
  11549. /* */
  11550. /* RNG */
  11551. /* */
  11552. /******************************************************************************/
  11553. /*
  11554. * @brief Specific device feature definitions
  11555. */
  11556. #define RNG_VER_3_1
  11557. /******************** Bits definition for RNG_CR register *******************/
  11558. #define RNG_CR_RNGEN_Pos (2U)
  11559. #define RNG_CR_RNGEN_Msk (0x1UL << RNG_CR_RNGEN_Pos) /*!< 0x00000004 */
  11560. #define RNG_CR_RNGEN RNG_CR_RNGEN_Msk
  11561. #define RNG_CR_IE_Pos (3U)
  11562. #define RNG_CR_IE_Msk (0x1UL << RNG_CR_IE_Pos) /*!< 0x00000008 */
  11563. #define RNG_CR_IE RNG_CR_IE_Msk
  11564. #define RNG_CR_CED_Pos (5U)
  11565. #define RNG_CR_CED_Msk (0x1UL << RNG_CR_CED_Pos) /*!< 0x00000020 */
  11566. #define RNG_CR_CED RNG_CR_CED_Msk
  11567. #define RNG_CR_RNG_CONFIG3_Pos (8U)
  11568. #define RNG_CR_RNG_CONFIG3_Msk (0xFUL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000F00 */
  11569. #define RNG_CR_RNG_CONFIG3 RNG_CR_RNG_CONFIG3_Msk
  11570. #define RNG_CR_RNG_CONFIG3_0 (0x01UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000100 */
  11571. #define RNG_CR_RNG_CONFIG3_1 (0x02UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000200 */
  11572. #define RNG_CR_RNG_CONFIG3_2 (0x04UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000400 */
  11573. #define RNG_CR_RNG_CONFIG3_3 (0x08UL << RNG_CR_RNG_CONFIG3_Pos) /*!< 0x00000800 */
  11574. #define RNG_CR_NISTC_Pos (12U)
  11575. #define RNG_CR_NISTC_Msk (0x1UL << RNG_CR_NISTC_Pos) /*!< 0x00001000 */
  11576. #define RNG_CR_NISTC RNG_CR_NISTC_Msk
  11577. #define RNG_CR_RNG_CONFIG2_Pos (13U)
  11578. #define RNG_CR_RNG_CONFIG2_Msk (0x7UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x0000E000 */
  11579. #define RNG_CR_RNG_CONFIG2 RNG_CR_RNG_CONFIG2_Msk
  11580. #define RNG_CR_RNG_CONFIG2_0 (0x01UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x00002000 */
  11581. #define RNG_CR_RNG_CONFIG2_1 (0x02UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x00004000 */
  11582. #define RNG_CR_RNG_CONFIG2_2 (0x04UL << RNG_CR_RNG_CONFIG2_Pos) /*!< 0x00008000 */
  11583. #define RNG_CR_CLKDIV_Pos (16U)
  11584. #define RNG_CR_CLKDIV_Msk (0xFUL << RNG_CR_CLKDIV_Pos) /*!< 0x000F0000 */
  11585. #define RNG_CR_CLKDIV RNG_CR_CLKDIV_Msk
  11586. #define RNG_CR_CLKDIV_0 (0x01UL << RNG_CR_CLKDIV_Pos) /*!< 0x00010000 */
  11587. #define RNG_CR_CLKDIV_1 (0x02UL << RNG_CR_CLKDIV_Pos) /*!< 0x00020000 */
  11588. #define RNG_CR_CLKDIV_2 (0x04UL << RNG_CR_CLKDIV_Pos) /*!< 0x00040000 */
  11589. #define RNG_CR_CLKDIV_3 (0x08UL << RNG_CR_CLKDIV_Pos) /*!< 0x00080000 */
  11590. #define RNG_CR_RNG_CONFIG1_Pos (20U)
  11591. #define RNG_CR_RNG_CONFIG1_Msk (0x3FUL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x03F00000 */
  11592. #define RNG_CR_RNG_CONFIG1 RNG_CR_RNG_CONFIG1_Msk
  11593. #define RNG_CR_RNG_CONFIG1_0 (0x01UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00100000 */
  11594. #define RNG_CR_RNG_CONFIG1_1 (0x02UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00200000 */
  11595. #define RNG_CR_RNG_CONFIG1_2 (0x04UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00400000 */
  11596. #define RNG_CR_RNG_CONFIG1_3 (0x08UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x00800000 */
  11597. #define RNG_CR_RNG_CONFIG1_4 (0x08UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x01000000 */
  11598. #define RNG_CR_RNG_CONFIG1_5 (0x08UL << RNG_CR_RNG_CONFIG1_Pos) /*!< 0x02000000 */
  11599. #define RNG_CR_CONDRST_Pos (30U)
  11600. #define RNG_CR_CONDRST_Msk (0x1UL << RNG_CR_CONDRST_Pos) /*!< 0x40000000 */
  11601. #define RNG_CR_CONDRST RNG_CR_CONDRST_Msk
  11602. #define RNG_CR_CONFIGLOCK_Pos (31U)
  11603. #define RNG_CR_CONFIGLOCK_Msk (0x1UL << RNG_CR_CONFIGLOCK_Pos) /*!< 0x80000000 */
  11604. #define RNG_CR_CONFIGLOCK RNG_CR_CONFIGLOCK_Msk
  11605. /******************** Bits definition for RNG_SR register *******************/
  11606. #define RNG_SR_DRDY_Pos (0U)
  11607. #define RNG_SR_DRDY_Msk (0x1UL << RNG_SR_DRDY_Pos) /*!< 0x00000001 */
  11608. #define RNG_SR_DRDY RNG_SR_DRDY_Msk
  11609. #define RNG_SR_CECS_Pos (1U)
  11610. #define RNG_SR_CECS_Msk (0x1UL << RNG_SR_CECS_Pos) /*!< 0x00000002 */
  11611. #define RNG_SR_CECS RNG_SR_CECS_Msk
  11612. #define RNG_SR_SECS_Pos (2U)
  11613. #define RNG_SR_SECS_Msk (0x1UL << RNG_SR_SECS_Pos) /*!< 0x00000004 */
  11614. #define RNG_SR_SECS RNG_SR_SECS_Msk
  11615. #define RNG_SR_CEIS_Pos (5U)
  11616. #define RNG_SR_CEIS_Msk (0x1UL << RNG_SR_CEIS_Pos) /*!< 0x00000020 */
  11617. #define RNG_SR_CEIS RNG_SR_CEIS_Msk
  11618. #define RNG_SR_SEIS_Pos (6U)
  11619. #define RNG_SR_SEIS_Msk (0x1UL << RNG_SR_SEIS_Pos) /*!< 0x00000040 */
  11620. #define RNG_SR_SEIS RNG_SR_SEIS_Msk
  11621. /******************** Bits definition for RNG_DR register *******************/
  11622. #define RNG_DR_RNDATA_Pos (0U)
  11623. #define RNG_DR_RNDATA_Msk (0xFFFFFFFFUL << RNG_DR_RNDATA_Pos) /*!< 0xFFFFFFFF */
  11624. #define RNG_DR_RNDATA RNG_DR_RNDATA_Msk
  11625. /******************** Bits definition for RNG_HTCR register *****************/
  11626. #define RNG_HTCR_HTCFG_Pos (0U)
  11627. #define RNG_HTCR_HTCFG_Msk (0xFFFFFFFFUL << RNG_HTCR_HTCFG_Pos) /*!< 0xFFFFFFFF */
  11628. #define RNG_HTCR_HTCFG RNG_HTCR_HTCFG_Msk
  11629. /******************************************************************************/
  11630. /* */
  11631. /* Real-Time Clock (RTC) */
  11632. /* */
  11633. /******************************************************************************/
  11634. /******************** Bits definition for RTC_TR register *******************/
  11635. #define RTC_TR_PM_Pos (22U)
  11636. #define RTC_TR_PM_Msk (0x1UL << RTC_TR_PM_Pos) /*!< 0x00400000 */
  11637. #define RTC_TR_PM RTC_TR_PM_Msk
  11638. #define RTC_TR_HT_Pos (20U)
  11639. #define RTC_TR_HT_Msk (0x3UL << RTC_TR_HT_Pos) /*!< 0x00300000 */
  11640. #define RTC_TR_HT RTC_TR_HT_Msk
  11641. #define RTC_TR_HT_0 (0x1UL << RTC_TR_HT_Pos) /*!< 0x00100000 */
  11642. #define RTC_TR_HT_1 (0x2UL << RTC_TR_HT_Pos) /*!< 0x00200000 */
  11643. #define RTC_TR_HU_Pos (16U)
  11644. #define RTC_TR_HU_Msk (0xFUL << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  11645. #define RTC_TR_HU RTC_TR_HU_Msk
  11646. #define RTC_TR_HU_0 (0x1UL << RTC_TR_HU_Pos) /*!< 0x00010000 */
  11647. #define RTC_TR_HU_1 (0x2UL << RTC_TR_HU_Pos) /*!< 0x00020000 */
  11648. #define RTC_TR_HU_2 (0x4UL << RTC_TR_HU_Pos) /*!< 0x00040000 */
  11649. #define RTC_TR_HU_3 (0x8UL << RTC_TR_HU_Pos) /*!< 0x00080000 */
  11650. #define RTC_TR_MNT_Pos (12U)
  11651. #define RTC_TR_MNT_Msk (0x7UL << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  11652. #define RTC_TR_MNT RTC_TR_MNT_Msk
  11653. #define RTC_TR_MNT_0 (0x1UL << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  11654. #define RTC_TR_MNT_1 (0x2UL << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  11655. #define RTC_TR_MNT_2 (0x4UL << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  11656. #define RTC_TR_MNU_Pos (8U)
  11657. #define RTC_TR_MNU_Msk (0xFUL << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  11658. #define RTC_TR_MNU RTC_TR_MNU_Msk
  11659. #define RTC_TR_MNU_0 (0x1UL << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  11660. #define RTC_TR_MNU_1 (0x2UL << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  11661. #define RTC_TR_MNU_2 (0x4UL << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  11662. #define RTC_TR_MNU_3 (0x8UL << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  11663. #define RTC_TR_ST_Pos (4U)
  11664. #define RTC_TR_ST_Msk (0x7UL << RTC_TR_ST_Pos) /*!< 0x00000070 */
  11665. #define RTC_TR_ST RTC_TR_ST_Msk
  11666. #define RTC_TR_ST_0 (0x1UL << RTC_TR_ST_Pos) /*!< 0x00000010 */
  11667. #define RTC_TR_ST_1 (0x2UL << RTC_TR_ST_Pos) /*!< 0x00000020 */
  11668. #define RTC_TR_ST_2 (0x4UL << RTC_TR_ST_Pos) /*!< 0x00000040 */
  11669. #define RTC_TR_SU_Pos (0U)
  11670. #define RTC_TR_SU_Msk (0xFUL << RTC_TR_SU_Pos) /*!< 0x0000000F */
  11671. #define RTC_TR_SU RTC_TR_SU_Msk
  11672. #define RTC_TR_SU_0 (0x1UL << RTC_TR_SU_Pos) /*!< 0x00000001 */
  11673. #define RTC_TR_SU_1 (0x2UL << RTC_TR_SU_Pos) /*!< 0x00000002 */
  11674. #define RTC_TR_SU_2 (0x4UL << RTC_TR_SU_Pos) /*!< 0x00000004 */
  11675. #define RTC_TR_SU_3 (0x8UL << RTC_TR_SU_Pos) /*!< 0x00000008 */
  11676. /******************** Bits definition for RTC_DR register *******************/
  11677. #define RTC_DR_YT_Pos (20U)
  11678. #define RTC_DR_YT_Msk (0xFUL << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  11679. #define RTC_DR_YT RTC_DR_YT_Msk
  11680. #define RTC_DR_YT_0 (0x1UL << RTC_DR_YT_Pos) /*!< 0x00100000 */
  11681. #define RTC_DR_YT_1 (0x2UL << RTC_DR_YT_Pos) /*!< 0x00200000 */
  11682. #define RTC_DR_YT_2 (0x4UL << RTC_DR_YT_Pos) /*!< 0x00400000 */
  11683. #define RTC_DR_YT_3 (0x8UL << RTC_DR_YT_Pos) /*!< 0x00800000 */
  11684. #define RTC_DR_YU_Pos (16U)
  11685. #define RTC_DR_YU_Msk (0xFUL << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  11686. #define RTC_DR_YU RTC_DR_YU_Msk
  11687. #define RTC_DR_YU_0 (0x1UL << RTC_DR_YU_Pos) /*!< 0x00010000 */
  11688. #define RTC_DR_YU_1 (0x2UL << RTC_DR_YU_Pos) /*!< 0x00020000 */
  11689. #define RTC_DR_YU_2 (0x4UL << RTC_DR_YU_Pos) /*!< 0x00040000 */
  11690. #define RTC_DR_YU_3 (0x8UL << RTC_DR_YU_Pos) /*!< 0x00080000 */
  11691. #define RTC_DR_WDU_Pos (13U)
  11692. #define RTC_DR_WDU_Msk (0x7UL << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  11693. #define RTC_DR_WDU RTC_DR_WDU_Msk
  11694. #define RTC_DR_WDU_0 (0x1UL << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  11695. #define RTC_DR_WDU_1 (0x2UL << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  11696. #define RTC_DR_WDU_2 (0x4UL << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  11697. #define RTC_DR_MT_Pos (12U)
  11698. #define RTC_DR_MT_Msk (0x1UL << RTC_DR_MT_Pos) /*!< 0x00001000 */
  11699. #define RTC_DR_MT RTC_DR_MT_Msk
  11700. #define RTC_DR_MU_Pos (8U)
  11701. #define RTC_DR_MU_Msk (0xFUL << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  11702. #define RTC_DR_MU RTC_DR_MU_Msk
  11703. #define RTC_DR_MU_0 (0x1UL << RTC_DR_MU_Pos) /*!< 0x00000100 */
  11704. #define RTC_DR_MU_1 (0x2UL << RTC_DR_MU_Pos) /*!< 0x00000200 */
  11705. #define RTC_DR_MU_2 (0x4UL << RTC_DR_MU_Pos) /*!< 0x00000400 */
  11706. #define RTC_DR_MU_3 (0x8UL << RTC_DR_MU_Pos) /*!< 0x00000800 */
  11707. #define RTC_DR_DT_Pos (4U)
  11708. #define RTC_DR_DT_Msk (0x3UL << RTC_DR_DT_Pos) /*!< 0x00000030 */
  11709. #define RTC_DR_DT RTC_DR_DT_Msk
  11710. #define RTC_DR_DT_0 (0x1UL << RTC_DR_DT_Pos) /*!< 0x00000010 */
  11711. #define RTC_DR_DT_1 (0x2UL << RTC_DR_DT_Pos) /*!< 0x00000020 */
  11712. #define RTC_DR_DU_Pos (0U)
  11713. #define RTC_DR_DU_Msk (0xFUL << RTC_DR_DU_Pos) /*!< 0x0000000F */
  11714. #define RTC_DR_DU RTC_DR_DU_Msk
  11715. #define RTC_DR_DU_0 (0x1UL << RTC_DR_DU_Pos) /*!< 0x00000001 */
  11716. #define RTC_DR_DU_1 (0x2UL << RTC_DR_DU_Pos) /*!< 0x00000002 */
  11717. #define RTC_DR_DU_2 (0x4UL << RTC_DR_DU_Pos) /*!< 0x00000004 */
  11718. #define RTC_DR_DU_3 (0x8UL << RTC_DR_DU_Pos) /*!< 0x00000008 */
  11719. /******************** Bits definition for RTC_SSR register ******************/
  11720. #define RTC_SSR_SS_Pos (0U)
  11721. #define RTC_SSR_SS_Msk (0xFFFFUL << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  11722. #define RTC_SSR_SS RTC_SSR_SS_Msk
  11723. /******************** Bits definition for RTC_ICSR register ******************/
  11724. #define RTC_ICSR_RECALPF_Pos (16U)
  11725. #define RTC_ICSR_RECALPF_Msk (0x1UL << RTC_ICSR_RECALPF_Pos) /*!< 0x00010000 */
  11726. #define RTC_ICSR_RECALPF RTC_ICSR_RECALPF_Msk
  11727. #define RTC_ICSR_INIT_Pos (7U)
  11728. #define RTC_ICSR_INIT_Msk (0x1UL << RTC_ICSR_INIT_Pos) /*!< 0x00000080 */
  11729. #define RTC_ICSR_INIT RTC_ICSR_INIT_Msk
  11730. #define RTC_ICSR_INITF_Pos (6U)
  11731. #define RTC_ICSR_INITF_Msk (0x1UL << RTC_ICSR_INITF_Pos) /*!< 0x00000040 */
  11732. #define RTC_ICSR_INITF RTC_ICSR_INITF_Msk
  11733. #define RTC_ICSR_RSF_Pos (5U)
  11734. #define RTC_ICSR_RSF_Msk (0x1UL << RTC_ICSR_RSF_Pos) /*!< 0x00000020 */
  11735. #define RTC_ICSR_RSF RTC_ICSR_RSF_Msk
  11736. #define RTC_ICSR_INITS_Pos (4U)
  11737. #define RTC_ICSR_INITS_Msk (0x1UL << RTC_ICSR_INITS_Pos) /*!< 0x00000010 */
  11738. #define RTC_ICSR_INITS RTC_ICSR_INITS_Msk
  11739. #define RTC_ICSR_SHPF_Pos (3U)
  11740. #define RTC_ICSR_SHPF_Msk (0x1UL << RTC_ICSR_SHPF_Pos) /*!< 0x00000008 */
  11741. #define RTC_ICSR_SHPF RTC_ICSR_SHPF_Msk
  11742. #define RTC_ICSR_WUTWF_Pos (2U)
  11743. #define RTC_ICSR_WUTWF_Msk (0x1UL << RTC_ICSR_WUTWF_Pos) /*!< 0x00000004 */
  11744. #define RTC_ICSR_WUTWF RTC_ICSR_WUTWF_Msk
  11745. /******************** Bits definition for RTC_PRER register *****************/
  11746. #define RTC_PRER_PREDIV_A_Pos (16U)
  11747. #define RTC_PRER_PREDIV_A_Msk (0x7FUL << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  11748. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  11749. #define RTC_PRER_PREDIV_S_Pos (0U)
  11750. #define RTC_PRER_PREDIV_S_Msk (0x7FFFUL << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  11751. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  11752. /******************** Bits definition for RTC_WUTR register *****************/
  11753. #define RTC_WUTR_WUTOCLR_Pos (16U)
  11754. #define RTC_WUTR_WUTOCLR_Msk (0xFFFFUL << RTC_WUTR_WUTOCLR_Pos) /*!< 0xFFFF0000 */
  11755. #define RTC_WUTR_WUTOCLR RTC_WUTR_WUTOCLR_Msk
  11756. #define RTC_WUTR_WUT_Pos (0U)
  11757. #define RTC_WUTR_WUT_Msk (0xFFFFUL << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  11758. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  11759. /******************** Bits definition for RTC_CR register *******************/
  11760. #define RTC_CR_OUT2EN_Pos (31U)
  11761. #define RTC_CR_OUT2EN_Msk (0x1UL << RTC_CR_OUT2EN_Pos) /*!< 0x80000000 */
  11762. #define RTC_CR_OUT2EN RTC_CR_OUT2EN_Msk /*!<RTC_OUT2 output enable */
  11763. #define RTC_CR_TAMPALRM_TYPE_Pos (30U)
  11764. #define RTC_CR_TAMPALRM_TYPE_Msk (0x1UL << RTC_CR_TAMPALRM_TYPE_Pos) /*!< 0x40000000 */
  11765. #define RTC_CR_TAMPALRM_TYPE RTC_CR_TAMPALRM_TYPE_Msk /*!<TAMPALARM output type */
  11766. #define RTC_CR_TAMPALRM_PU_Pos (29U)
  11767. #define RTC_CR_TAMPALRM_PU_Msk (0x1UL << RTC_CR_TAMPALRM_PU_Pos) /*!< 0x20000000 */
  11768. #define RTC_CR_TAMPALRM_PU RTC_CR_TAMPALRM_PU_Msk /*!<TAMPALARM output pull-up config */
  11769. #define RTC_CR_TAMPOE_Pos (26U)
  11770. #define RTC_CR_TAMPOE_Msk (0x1UL << RTC_CR_TAMPOE_Pos) /*!< 0x04000000 */
  11771. #define RTC_CR_TAMPOE RTC_CR_TAMPOE_Msk /*!<Tamper detection output enable on TAMPALARM */
  11772. #define RTC_CR_TAMPTS_Pos (25U)
  11773. #define RTC_CR_TAMPTS_Msk (0x1UL << RTC_CR_TAMPTS_Pos) /*!< 0x02000000 */
  11774. #define RTC_CR_TAMPTS RTC_CR_TAMPTS_Msk /*!<Activate timestamp on tamper detection event */
  11775. #define RTC_CR_ITSE_Pos (24U)
  11776. #define RTC_CR_ITSE_Msk (0x1UL << RTC_CR_ITSE_Pos) /*!< 0x01000000 */
  11777. #define RTC_CR_ITSE RTC_CR_ITSE_Msk /*!<Timestamp on internal event enable */
  11778. #define RTC_CR_COE_Pos (23U)
  11779. #define RTC_CR_COE_Msk (0x1UL << RTC_CR_COE_Pos) /*!< 0x00800000 */
  11780. #define RTC_CR_COE RTC_CR_COE_Msk
  11781. #define RTC_CR_OSEL_Pos (21U)
  11782. #define RTC_CR_OSEL_Msk (0x3UL << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  11783. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  11784. #define RTC_CR_OSEL_0 (0x1UL << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  11785. #define RTC_CR_OSEL_1 (0x2UL << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  11786. #define RTC_CR_POL_Pos (20U)
  11787. #define RTC_CR_POL_Msk (0x1UL << RTC_CR_POL_Pos) /*!< 0x00100000 */
  11788. #define RTC_CR_POL RTC_CR_POL_Msk
  11789. #define RTC_CR_COSEL_Pos (19U)
  11790. #define RTC_CR_COSEL_Msk (0x1UL << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  11791. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  11792. #define RTC_CR_BKP_Pos (18U)
  11793. #define RTC_CR_BKP_Msk (0x1UL << RTC_CR_BKP_Pos) /*!< 0x00040000 */
  11794. #define RTC_CR_BKP RTC_CR_BKP_Msk
  11795. #define RTC_CR_SUB1H_Pos (17U)
  11796. #define RTC_CR_SUB1H_Msk (0x1UL << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  11797. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  11798. #define RTC_CR_ADD1H_Pos (16U)
  11799. #define RTC_CR_ADD1H_Msk (0x1UL << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  11800. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  11801. #define RTC_CR_TSIE_Pos (15U)
  11802. #define RTC_CR_TSIE_Msk (0x1UL << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  11803. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  11804. #define RTC_CR_WUTIE_Pos (14U)
  11805. #define RTC_CR_WUTIE_Msk (0x1UL << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  11806. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  11807. #define RTC_CR_ALRBIE_Pos (13U)
  11808. #define RTC_CR_ALRBIE_Msk (0x1UL << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */
  11809. #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk
  11810. #define RTC_CR_ALRAIE_Pos (12U)
  11811. #define RTC_CR_ALRAIE_Msk (0x1UL << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  11812. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  11813. #define RTC_CR_TSE_Pos (11U)
  11814. #define RTC_CR_TSE_Msk (0x1UL << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  11815. #define RTC_CR_TSE RTC_CR_TSE_Msk
  11816. #define RTC_CR_WUTE_Pos (10U)
  11817. #define RTC_CR_WUTE_Msk (0x1UL << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  11818. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  11819. #define RTC_CR_ALRBE_Pos (9U)
  11820. #define RTC_CR_ALRBE_Msk (0x1UL << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */
  11821. #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk
  11822. #define RTC_CR_ALRAE_Pos (8U)
  11823. #define RTC_CR_ALRAE_Msk (0x1UL << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  11824. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  11825. #define RTC_CR_FMT_Pos (6U)
  11826. #define RTC_CR_FMT_Msk (0x1UL << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  11827. #define RTC_CR_FMT RTC_CR_FMT_Msk
  11828. #define RTC_CR_BYPSHAD_Pos (5U)
  11829. #define RTC_CR_BYPSHAD_Msk (0x1UL << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  11830. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  11831. #define RTC_CR_REFCKON_Pos (4U)
  11832. #define RTC_CR_REFCKON_Msk (0x1UL << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  11833. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  11834. #define RTC_CR_TSEDGE_Pos (3U)
  11835. #define RTC_CR_TSEDGE_Msk (0x1UL << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  11836. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  11837. #define RTC_CR_WUCKSEL_Pos (0U)
  11838. #define RTC_CR_WUCKSEL_Msk (0x7UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  11839. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  11840. #define RTC_CR_WUCKSEL_0 (0x1UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  11841. #define RTC_CR_WUCKSEL_1 (0x2UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  11842. #define RTC_CR_WUCKSEL_2 (0x4UL << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  11843. /******************** Bits definition for RTC_PRIVCR register ******************/
  11844. #define RTC_PRIVCR_PRIV_Pos (15U)
  11845. #define RTC_PRIVCR_PRIV_Msk (0x1UL << RTC_PRIVCR_PRIV_Pos) /*!< 0x00008000 */
  11846. #define RTC_PRIVCR_PRIV RTC_PRIVCR_PRIV_Msk
  11847. #define RTC_PRIVCR_INITPRIV_Pos (14U)
  11848. #define RTC_PRIVCR_INITPRIV_Msk (0x1UL << RTC_PRIVCR_INITPRIV_Pos) /*!< 0x00004000 */
  11849. #define RTC_PRIVCR_INITPRIV RTC_PRIVCR_INITPRIV_Msk
  11850. #define RTC_PRIVCR_CALPRIV_Pos (13U)
  11851. #define RTC_PRIVCR_CALPRIV_Msk (0x1UL << RTC_PRIVCR_CALPRIV_Pos) /*!< 0x00002000 */
  11852. #define RTC_PRIVCR_CALPRIV RTC_PRIVCR_CALPRIV_Msk
  11853. #define RTC_PRIVCR_TSPRIV_Pos (3U)
  11854. #define RTC_PRIVCR_TSPRIV_Msk (0x1UL << RTC_PRIVCR_TSPRIV_Pos) /*!< 0x00000008 */
  11855. #define RTC_PRIVCR_TSPRIV RTC_PRIVCR_TSPRIV_Msk
  11856. #define RTC_PRIVCR_WUTPRIV_Pos (2U)
  11857. #define RTC_PRIVCR_WUTPRIV_Msk (0x1UL << RTC_PRIVCR_WUTPRIV_Pos) /*!< 0x00000004 */
  11858. #define RTC_PRIVCR_WUTPRIV RTC_PRIVCR_WUTPRIV_Msk
  11859. #define RTC_PRIVCR_ALRBPRIV_Pos (1U)
  11860. #define RTC_PRIVCR_ALRBPRIV_Msk (0x1UL << RTC_PRIVCR_ALRBPRIV_Pos) /*!< 0x00000002 */
  11861. #define RTC_PRIVCR_ALRBPRIV RTC_PRIVCR_ALRBPRIV_Msk
  11862. #define RTC_PRIVCR_ALRAPRIV_Pos (0U)
  11863. #define RTC_PRIVCR_ALRAPRIV_Msk (0x1UL << RTC_PRIVCR_ALRAPRIV_Pos) /*!< 0x00000001 */
  11864. #define RTC_PRIVCR_ALRAPRIV RTC_PRIVCR_ALRAPRIV_Msk
  11865. /******************** Bits definition for RTC_SMCR register ******************/
  11866. #define RTC_SMCR_DECPROT_Pos (15U)
  11867. #define RTC_SMCR_DECPROT_Msk (0x1UL << RTC_SMCR_DECPROT_Pos) /*!< 0x00008000 */
  11868. #define RTC_SMCR_DECPROT RTC_SMCR_DECPROT_Msk
  11869. #define RTC_SMCR_INITDPROT_Pos (14U)
  11870. #define RTC_SMCR_INITDPROT_Msk (0x1UL << RTC_SMCR_INITDPROT_Pos) /*!< 0x00004000 */
  11871. #define RTC_SMCR_INITDPROT RTC_SMCR_INITDPROT_Msk
  11872. #define RTC_SMCR_CALDPROT_Pos (13U)
  11873. #define RTC_SMCR_CALDPROT_Msk (0x1UL << RTC_SMCR_CALDPROT_Pos) /*!< 0x00002000 */
  11874. #define RTC_SMCR_CALDPROT RTC_SMCR_CALDPROT_Msk
  11875. #define RTC_SMCR_TSDPROT_Pos (3U)
  11876. #define RTC_SMCR_TSDPROT_Msk (0x1UL << RTC_SMCR_TSDPROT_Pos) /*!< 0x00000008 */
  11877. #define RTC_SMCR_TSDPROT RTC_SMCR_TSDPROT_Msk
  11878. #define RTC_SMCR_WUTDPROT_Pos (2U)
  11879. #define RTC_SMCR_WUTDPROT_Msk (0x1UL << RTC_SMCR_WUTDPROT_Pos) /*!< 0x00000004 */
  11880. #define RTC_SMCR_WUTDPROT RTC_SMCR_WUTDPROT_Msk
  11881. #define RTC_SMCR_ALRBDPROT_Pos (1U)
  11882. #define RTC_SMCR_ALRBDPROT_Msk (0x1UL << RTC_SMCR_ALRBDPROT_Pos) /*!< 0x00000002 */
  11883. #define RTC_SMCR_ALRBDPROT RTC_SMCR_ALRBDPROT_Msk
  11884. #define RTC_SMCR_ALRADPROT_Pos (0U)
  11885. #define RTC_SMCR_ALRADPROT_Msk (0x1UL << RTC_SMCR_ALRADPROT_Pos) /*!< 0x00000001 */
  11886. #define RTC_SMCR_ALRADPROT RTC_SMCR_ALRADPROT_Msk
  11887. /******************** Bits definition for RTC_WPR register ******************/
  11888. #define RTC_WPR_KEY_Pos (0U)
  11889. #define RTC_WPR_KEY_Msk (0xFFUL << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  11890. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  11891. /******************** Bits definition for RTC_CALR register *****************/
  11892. #define RTC_CALR_CALP_Pos (15U)
  11893. #define RTC_CALR_CALP_Msk (0x1UL << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  11894. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  11895. #define RTC_CALR_CALW8_Pos (14U)
  11896. #define RTC_CALR_CALW8_Msk (0x1UL << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  11897. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  11898. #define RTC_CALR_CALW16_Pos (13U)
  11899. #define RTC_CALR_CALW16_Msk (0x1UL << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  11900. #define RTC_CALR_LPCAL RTC_CALR_LPCAL_Msk
  11901. #define RTC_CALR_LPCAL_Pos (12U)
  11902. #define RTC_CALR_LPCAL_Msk (0x1UL << RTC_CALR_LPCAL_Pos) /*!< 0x00001000 */
  11903. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  11904. #define RTC_CALR_CALM_Pos (0U)
  11905. #define RTC_CALR_CALM_Msk (0x1FFUL << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  11906. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  11907. #define RTC_CALR_CALM_0 (0x001UL << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  11908. #define RTC_CALR_CALM_1 (0x002UL << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  11909. #define RTC_CALR_CALM_2 (0x004UL << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  11910. #define RTC_CALR_CALM_3 (0x008UL << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  11911. #define RTC_CALR_CALM_4 (0x010UL << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  11912. #define RTC_CALR_CALM_5 (0x020UL << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  11913. #define RTC_CALR_CALM_6 (0x040UL << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  11914. #define RTC_CALR_CALM_7 (0x080UL << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  11915. #define RTC_CALR_CALM_8 (0x100UL << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  11916. /******************** Bits definition for RTC_SHIFTR register ***************/
  11917. #define RTC_SHIFTR_ADD1S_Pos (31U)
  11918. #define RTC_SHIFTR_ADD1S_Msk (0x1UL << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  11919. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  11920. #define RTC_SHIFTR_SUBFS_Pos (0U)
  11921. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFUL << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  11922. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  11923. /******************** Bits definition for RTC_TSTR register *****************/
  11924. #define RTC_TSTR_PM_Pos (22U)
  11925. #define RTC_TSTR_PM_Msk (0x1UL << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  11926. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  11927. #define RTC_TSTR_HT_Pos (20U)
  11928. #define RTC_TSTR_HT_Msk (0x3UL << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  11929. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  11930. #define RTC_TSTR_HT_0 (0x1UL << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  11931. #define RTC_TSTR_HT_1 (0x2UL << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  11932. #define RTC_TSTR_HU_Pos (16U)
  11933. #define RTC_TSTR_HU_Msk (0xFUL << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  11934. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  11935. #define RTC_TSTR_HU_0 (0x1UL << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  11936. #define RTC_TSTR_HU_1 (0x2UL << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  11937. #define RTC_TSTR_HU_2 (0x4UL << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  11938. #define RTC_TSTR_HU_3 (0x8UL << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  11939. #define RTC_TSTR_MNT_Pos (12U)
  11940. #define RTC_TSTR_MNT_Msk (0x7UL << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  11941. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  11942. #define RTC_TSTR_MNT_0 (0x1UL << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  11943. #define RTC_TSTR_MNT_1 (0x2UL << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  11944. #define RTC_TSTR_MNT_2 (0x4UL << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  11945. #define RTC_TSTR_MNU_Pos (8U)
  11946. #define RTC_TSTR_MNU_Msk (0xFUL << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  11947. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  11948. #define RTC_TSTR_MNU_0 (0x1UL << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  11949. #define RTC_TSTR_MNU_1 (0x2UL << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  11950. #define RTC_TSTR_MNU_2 (0x4UL << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  11951. #define RTC_TSTR_MNU_3 (0x8UL << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  11952. #define RTC_TSTR_ST_Pos (4U)
  11953. #define RTC_TSTR_ST_Msk (0x7UL << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  11954. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  11955. #define RTC_TSTR_ST_0 (0x1UL << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  11956. #define RTC_TSTR_ST_1 (0x2UL << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  11957. #define RTC_TSTR_ST_2 (0x4UL << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  11958. #define RTC_TSTR_SU_Pos (0U)
  11959. #define RTC_TSTR_SU_Msk (0xFUL << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  11960. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  11961. #define RTC_TSTR_SU_0 (0x1UL << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  11962. #define RTC_TSTR_SU_1 (0x2UL << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  11963. #define RTC_TSTR_SU_2 (0x4UL << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  11964. #define RTC_TSTR_SU_3 (0x8UL << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  11965. /******************** Bits definition for RTC_TSDR register *****************/
  11966. #define RTC_TSDR_WDU_Pos (13U)
  11967. #define RTC_TSDR_WDU_Msk (0x7UL << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  11968. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  11969. #define RTC_TSDR_WDU_0 (0x1UL << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  11970. #define RTC_TSDR_WDU_1 (0x2UL << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  11971. #define RTC_TSDR_WDU_2 (0x4UL << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  11972. #define RTC_TSDR_MT_Pos (12U)
  11973. #define RTC_TSDR_MT_Msk (0x1UL << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  11974. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  11975. #define RTC_TSDR_MU_Pos (8U)
  11976. #define RTC_TSDR_MU_Msk (0xFUL << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  11977. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  11978. #define RTC_TSDR_MU_0 (0x1UL << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  11979. #define RTC_TSDR_MU_1 (0x2UL << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  11980. #define RTC_TSDR_MU_2 (0x4UL << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  11981. #define RTC_TSDR_MU_3 (0x8UL << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  11982. #define RTC_TSDR_DT_Pos (4U)
  11983. #define RTC_TSDR_DT_Msk (0x3UL << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  11984. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  11985. #define RTC_TSDR_DT_0 (0x1UL << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  11986. #define RTC_TSDR_DT_1 (0x2UL << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  11987. #define RTC_TSDR_DU_Pos (0U)
  11988. #define RTC_TSDR_DU_Msk (0xFUL << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  11989. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  11990. #define RTC_TSDR_DU_0 (0x1UL << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  11991. #define RTC_TSDR_DU_1 (0x2UL << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  11992. #define RTC_TSDR_DU_2 (0x4UL << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  11993. #define RTC_TSDR_DU_3 (0x8UL << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  11994. /******************** Bits definition for RTC_TSSSR register ****************/
  11995. #define RTC_TSSSR_SS_Pos (0U)
  11996. #define RTC_TSSSR_SS_Msk (0xFFFFUL << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  11997. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  11998. /******************** Bits definition for RTC_ALRMAR register ***************/
  11999. #define RTC_ALRMAR_MSK4_Pos (31U)
  12000. #define RTC_ALRMAR_MSK4_Msk (0x1UL << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  12001. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  12002. #define RTC_ALRMAR_WDSEL_Pos (30U)
  12003. #define RTC_ALRMAR_WDSEL_Msk (0x1UL << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  12004. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  12005. #define RTC_ALRMAR_DT_Pos (28U)
  12006. #define RTC_ALRMAR_DT_Msk (0x3UL << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  12007. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  12008. #define RTC_ALRMAR_DT_0 (0x1UL << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  12009. #define RTC_ALRMAR_DT_1 (0x2UL << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  12010. #define RTC_ALRMAR_DU_Pos (24U)
  12011. #define RTC_ALRMAR_DU_Msk (0xFUL << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  12012. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  12013. #define RTC_ALRMAR_DU_0 (0x1UL << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  12014. #define RTC_ALRMAR_DU_1 (0x2UL << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  12015. #define RTC_ALRMAR_DU_2 (0x4UL << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  12016. #define RTC_ALRMAR_DU_3 (0x8UL << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  12017. #define RTC_ALRMAR_MSK3_Pos (23U)
  12018. #define RTC_ALRMAR_MSK3_Msk (0x1UL << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  12019. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  12020. #define RTC_ALRMAR_PM_Pos (22U)
  12021. #define RTC_ALRMAR_PM_Msk (0x1UL << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  12022. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  12023. #define RTC_ALRMAR_HT_Pos (20U)
  12024. #define RTC_ALRMAR_HT_Msk (0x3UL << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  12025. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  12026. #define RTC_ALRMAR_HT_0 (0x1UL << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  12027. #define RTC_ALRMAR_HT_1 (0x2UL << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  12028. #define RTC_ALRMAR_HU_Pos (16U)
  12029. #define RTC_ALRMAR_HU_Msk (0xFUL << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  12030. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  12031. #define RTC_ALRMAR_HU_0 (0x1UL << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  12032. #define RTC_ALRMAR_HU_1 (0x2UL << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  12033. #define RTC_ALRMAR_HU_2 (0x4UL << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  12034. #define RTC_ALRMAR_HU_3 (0x8UL << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  12035. #define RTC_ALRMAR_MSK2_Pos (15U)
  12036. #define RTC_ALRMAR_MSK2_Msk (0x1UL << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  12037. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  12038. #define RTC_ALRMAR_MNT_Pos (12U)
  12039. #define RTC_ALRMAR_MNT_Msk (0x7UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  12040. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  12041. #define RTC_ALRMAR_MNT_0 (0x1UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  12042. #define RTC_ALRMAR_MNT_1 (0x2UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  12043. #define RTC_ALRMAR_MNT_2 (0x4UL << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  12044. #define RTC_ALRMAR_MNU_Pos (8U)
  12045. #define RTC_ALRMAR_MNU_Msk (0xFUL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  12046. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  12047. #define RTC_ALRMAR_MNU_0 (0x1UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  12048. #define RTC_ALRMAR_MNU_1 (0x2UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  12049. #define RTC_ALRMAR_MNU_2 (0x4UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  12050. #define RTC_ALRMAR_MNU_3 (0x8UL << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  12051. #define RTC_ALRMAR_MSK1_Pos (7U)
  12052. #define RTC_ALRMAR_MSK1_Msk (0x1UL << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  12053. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  12054. #define RTC_ALRMAR_ST_Pos (4U)
  12055. #define RTC_ALRMAR_ST_Msk (0x7UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  12056. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  12057. #define RTC_ALRMAR_ST_0 (0x1UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  12058. #define RTC_ALRMAR_ST_1 (0x2UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  12059. #define RTC_ALRMAR_ST_2 (0x4UL << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  12060. #define RTC_ALRMAR_SU_Pos (0U)
  12061. #define RTC_ALRMAR_SU_Msk (0xFUL << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  12062. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  12063. #define RTC_ALRMAR_SU_0 (0x1UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  12064. #define RTC_ALRMAR_SU_1 (0x2UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  12065. #define RTC_ALRMAR_SU_2 (0x4UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  12066. #define RTC_ALRMAR_SU_3 (0x8UL << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  12067. /******************** Bits definition for RTC_ALRMASSR register *************/
  12068. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  12069. #define RTC_ALRMASSR_MASKSS_Msk (0xFUL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  12070. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  12071. #define RTC_ALRMASSR_MASKSS_0 (0x1UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  12072. #define RTC_ALRMASSR_MASKSS_1 (0x2UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  12073. #define RTC_ALRMASSR_MASKSS_2 (0x4UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  12074. #define RTC_ALRMASSR_MASKSS_3 (0x8UL << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  12075. #define RTC_ALRMASSR_SS_Pos (0U)
  12076. #define RTC_ALRMASSR_SS_Msk (0x7FFFUL << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  12077. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  12078. /******************** Bits definition for RTC_ALRMBR register ***************/
  12079. #define RTC_ALRMBR_MSK4_Pos (31U)
  12080. #define RTC_ALRMBR_MSK4_Msk (0x1UL << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */
  12081. #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk
  12082. #define RTC_ALRMBR_WDSEL_Pos (30U)
  12083. #define RTC_ALRMBR_WDSEL_Msk (0x1UL << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */
  12084. #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk
  12085. #define RTC_ALRMBR_DT_Pos (28U)
  12086. #define RTC_ALRMBR_DT_Msk (0x3UL << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */
  12087. #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk
  12088. #define RTC_ALRMBR_DT_0 (0x1UL << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */
  12089. #define RTC_ALRMBR_DT_1 (0x2UL << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */
  12090. #define RTC_ALRMBR_DU_Pos (24U)
  12091. #define RTC_ALRMBR_DU_Msk (0xFUL << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */
  12092. #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk
  12093. #define RTC_ALRMBR_DU_0 (0x1UL << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */
  12094. #define RTC_ALRMBR_DU_1 (0x2UL << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */
  12095. #define RTC_ALRMBR_DU_2 (0x4UL << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */
  12096. #define RTC_ALRMBR_DU_3 (0x8UL << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */
  12097. #define RTC_ALRMBR_MSK3_Pos (23U)
  12098. #define RTC_ALRMBR_MSK3_Msk (0x1UL << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */
  12099. #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk
  12100. #define RTC_ALRMBR_PM_Pos (22U)
  12101. #define RTC_ALRMBR_PM_Msk (0x1UL << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */
  12102. #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk
  12103. #define RTC_ALRMBR_HT_Pos (20U)
  12104. #define RTC_ALRMBR_HT_Msk (0x3UL << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */
  12105. #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk
  12106. #define RTC_ALRMBR_HT_0 (0x1UL << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */
  12107. #define RTC_ALRMBR_HT_1 (0x2UL << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */
  12108. #define RTC_ALRMBR_HU_Pos (16U)
  12109. #define RTC_ALRMBR_HU_Msk (0xFUL << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */
  12110. #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk
  12111. #define RTC_ALRMBR_HU_0 (0x1UL << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */
  12112. #define RTC_ALRMBR_HU_1 (0x2UL << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */
  12113. #define RTC_ALRMBR_HU_2 (0x4UL << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */
  12114. #define RTC_ALRMBR_HU_3 (0x8UL << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */
  12115. #define RTC_ALRMBR_MSK2_Pos (15U)
  12116. #define RTC_ALRMBR_MSK2_Msk (0x1UL << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */
  12117. #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk
  12118. #define RTC_ALRMBR_MNT_Pos (12U)
  12119. #define RTC_ALRMBR_MNT_Msk (0x7UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */
  12120. #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk
  12121. #define RTC_ALRMBR_MNT_0 (0x1UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */
  12122. #define RTC_ALRMBR_MNT_1 (0x2UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */
  12123. #define RTC_ALRMBR_MNT_2 (0x4UL << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */
  12124. #define RTC_ALRMBR_MNU_Pos (8U)
  12125. #define RTC_ALRMBR_MNU_Msk (0xFUL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */
  12126. #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk
  12127. #define RTC_ALRMBR_MNU_0 (0x1UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */
  12128. #define RTC_ALRMBR_MNU_1 (0x2UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */
  12129. #define RTC_ALRMBR_MNU_2 (0x4UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */
  12130. #define RTC_ALRMBR_MNU_3 (0x8UL << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */
  12131. #define RTC_ALRMBR_MSK1_Pos (7U)
  12132. #define RTC_ALRMBR_MSK1_Msk (0x1UL << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */
  12133. #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk
  12134. #define RTC_ALRMBR_ST_Pos (4U)
  12135. #define RTC_ALRMBR_ST_Msk (0x7UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */
  12136. #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk
  12137. #define RTC_ALRMBR_ST_0 (0x1UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */
  12138. #define RTC_ALRMBR_ST_1 (0x2UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */
  12139. #define RTC_ALRMBR_ST_2 (0x4UL << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */
  12140. #define RTC_ALRMBR_SU_Pos (0U)
  12141. #define RTC_ALRMBR_SU_Msk (0xFUL << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */
  12142. #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk
  12143. #define RTC_ALRMBR_SU_0 (0x1UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */
  12144. #define RTC_ALRMBR_SU_1 (0x2UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */
  12145. #define RTC_ALRMBR_SU_2 (0x4UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */
  12146. #define RTC_ALRMBR_SU_3 (0x8UL << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */
  12147. /******************** Bits definition for RTC_ALRMBSSR register *************/
  12148. #define RTC_ALRMBSSR_MASKSS_Pos (24U)
  12149. #define RTC_ALRMBSSR_MASKSS_Msk (0xFUL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */
  12150. #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk
  12151. #define RTC_ALRMBSSR_MASKSS_0 (0x1UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */
  12152. #define RTC_ALRMBSSR_MASKSS_1 (0x2UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */
  12153. #define RTC_ALRMBSSR_MASKSS_2 (0x4UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */
  12154. #define RTC_ALRMBSSR_MASKSS_3 (0x8UL << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */
  12155. #define RTC_ALRMBSSR_SS_Pos (0U)
  12156. #define RTC_ALRMBSSR_SS_Msk (0x7FFFUL << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */
  12157. #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk
  12158. /******************** Bits definition for RTC_SR register *******************/
  12159. #define RTC_SR_ITSF_Pos (5U)
  12160. #define RTC_SR_ITSF_Msk (0x1UL << RTC_SR_ITSF_Pos) /*!< 0x00000020 */
  12161. #define RTC_SR_ITSF RTC_SR_ITSF_Msk
  12162. #define RTC_SR_TSOVF_Pos (4U)
  12163. #define RTC_SR_TSOVF_Msk (0x1UL << RTC_SR_TSOVF_Pos) /*!< 0x00000010 */
  12164. #define RTC_SR_TSOVF RTC_SR_TSOVF_Msk
  12165. #define RTC_SR_TSF_Pos (3U)
  12166. #define RTC_SR_TSF_Msk (0x1UL << RTC_SR_TSF_Pos) /*!< 0x00000008 */
  12167. #define RTC_SR_TSF RTC_SR_TSF_Msk
  12168. #define RTC_SR_WUTF_Pos (2U)
  12169. #define RTC_SR_WUTF_Msk (0x1UL << RTC_SR_WUTF_Pos) /*!< 0x00000004 */
  12170. #define RTC_SR_WUTF RTC_SR_WUTF_Msk
  12171. #define RTC_SR_ALRBF_Pos (1U)
  12172. #define RTC_SR_ALRBF_Msk (0x1UL << RTC_SR_ALRBF_Pos) /*!< 0x00000002 */
  12173. #define RTC_SR_ALRBF RTC_SR_ALRBF_Msk
  12174. #define RTC_SR_ALRAF_Pos (0U)
  12175. #define RTC_SR_ALRAF_Msk (0x1UL << RTC_SR_ALRAF_Pos) /*!< 0x00000001 */
  12176. #define RTC_SR_ALRAF RTC_SR_ALRAF_Msk
  12177. /******************** Bits definition for RTC_MISR register *****************/
  12178. #define RTC_MISR_ITSMF_Pos (5U)
  12179. #define RTC_MISR_ITSMF_Msk (0x1UL << RTC_MISR_ITSMF_Pos) /*!< 0x00000020 */
  12180. #define RTC_MISR_ITSMF RTC_MISR_ITSMF_Msk
  12181. #define RTC_MISR_TSOVMF_Pos (4U)
  12182. #define RTC_MISR_TSOVMF_Msk (0x1UL << RTC_MISR_TSOVMF_Pos) /*!< 0x00000010 */
  12183. #define RTC_MISR_TSOVMF RTC_MISR_TSOVMF_Msk
  12184. #define RTC_MISR_TSMF_Pos (3U)
  12185. #define RTC_MISR_TSMF_Msk (0x1UL << RTC_MISR_TSMF_Pos) /*!< 0x00000008 */
  12186. #define RTC_MISR_TSMF RTC_MISR_TSMF_Msk
  12187. #define RTC_MISR_WUTMF_Pos (2U)
  12188. #define RTC_MISR_WUTMF_Msk (0x1UL << RTC_MISR_WUTMF_Pos) /*!< 0x00000004 */
  12189. #define RTC_MISR_WUTMF RTC_MISR_WUTMF_Msk
  12190. #define RTC_MISR_ALRBMF_Pos (1U)
  12191. #define RTC_MISR_ALRBMF_Msk (0x1UL << RTC_MISR_ALRBMF_Pos) /*!< 0x00000002 */
  12192. #define RTC_MISR_ALRBMF RTC_MISR_ALRBMF_Msk
  12193. #define RTC_MISR_ALRAMF_Pos (0U)
  12194. #define RTC_MISR_ALRAMF_Msk (0x1UL << RTC_MISR_ALRAMF_Pos) /*!< 0x00000001 */
  12195. #define RTC_MISR_ALRAMF RTC_MISR_ALRAMF_Msk
  12196. /******************** Bits definition for RTC_SMISR register *****************/
  12197. #define RTC_SMISR_ITSMF_Pos (5U)
  12198. #define RTC_SMISR_ITSMF_Msk (0x1UL << RTC_SMISR_ITSMF_Pos) /*!< 0x00000020 */
  12199. #define RTC_SMISR_ITSMF RTC_SMISR_ITSMF_Msk
  12200. #define RTC_SMISR_TSOVMF_Pos (4U)
  12201. #define RTC_SMISR_TSOVMF_Msk (0x1UL << RTC_SMISR_TSOVMF_Pos) /*!< 0x00000010 */
  12202. #define RTC_SMISR_TSOVMF RTC_SMISR_TSOVMF_Msk
  12203. #define RTC_SMISR_TSMF_Pos (3U)
  12204. #define RTC_SMISR_TSMF_Msk (0x1UL << RTC_SMISR_TSMF_Pos) /*!< 0x00000008 */
  12205. #define RTC_SMISR_TSMF RTC_SMISR_TSMF_Msk
  12206. #define RTC_SMISR_WUTMF_Pos (2U)
  12207. #define RTC_SMISR_WUTMF_Msk (0x1UL << RTC_SMISR_WUTMF_Pos) /*!< 0x00000004 */
  12208. #define RTC_SMISR_WUTMF RTC_SMISR_WUTMF_Msk
  12209. #define RTC_SMISR_ALRBMF_Pos (1U)
  12210. #define RTC_SMISR_ALRBMF_Msk (0x1UL << RTC_SMISR_ALRBMF_Pos) /*!< 0x00000002 */
  12211. #define RTC_SMISR_ALRBMF RTC_SMISR_ALRBMF_Msk
  12212. #define RTC_SMISR_ALRAMF_Pos (0U)
  12213. #define RTC_SMISR_ALRAMF_Msk (0x1UL << RTC_SMISR_ALRAMF_Pos) /*!< 0x00000001 */
  12214. #define RTC_SMISR_ALRAMF RTC_SMISR_ALRAMF_Msk
  12215. /******************** Bits definition for RTC_SCR register ******************/
  12216. #define RTC_SCR_CITSF_Pos (5U)
  12217. #define RTC_SCR_CITSF_Msk (0x1UL << RTC_SCR_CITSF_Pos) /*!< 0x00000020 */
  12218. #define RTC_SCR_CITSF RTC_SCR_CITSF_Msk
  12219. #define RTC_SCR_CTSOVF_Pos (4U)
  12220. #define RTC_SCR_CTSOVF_Msk (0x1UL << RTC_SCR_CTSOVF_Pos) /*!< 0x00000010 */
  12221. #define RTC_SCR_CTSOVF RTC_SCR_CTSOVF_Msk
  12222. #define RTC_SCR_CTSF_Pos (3U)
  12223. #define RTC_SCR_CTSF_Msk (0x1UL << RTC_SCR_CTSF_Pos) /*!< 0x00000008 */
  12224. #define RTC_SCR_CTSF RTC_SCR_CTSF_Msk
  12225. #define RTC_SCR_CWUTF_Pos (2U)
  12226. #define RTC_SCR_CWUTF_Msk (0x1UL << RTC_SCR_CWUTF_Pos) /*!< 0x00000004 */
  12227. #define RTC_SCR_CWUTF RTC_SCR_CWUTF_Msk
  12228. #define RTC_SCR_CALRBF_Pos (1U)
  12229. #define RTC_SCR_CALRBF_Msk (0x1UL << RTC_SCR_CALRBF_Pos) /*!< 0x00000002 */
  12230. #define RTC_SCR_CALRBF RTC_SCR_CALRBF_Msk
  12231. #define RTC_SCR_CALRAF_Pos (0U)
  12232. #define RTC_SCR_CALRAF_Msk (0x1UL << RTC_SCR_CALRAF_Pos) /*!< 0x00000001 */
  12233. #define RTC_SCR_CALRAF RTC_SCR_CALRAF_Msk
  12234. /******************************************************************************/
  12235. /* */
  12236. /* Serial Peripheral Interface (SPI) */
  12237. /* */
  12238. /******************************************************************************/
  12239. /******************* Bit definition for SPI_CR1 register ********************/
  12240. #define SPI_CR1_CPHA_Pos (0U)
  12241. #define SPI_CR1_CPHA_Msk (0x1UL << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */
  12242. #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!<Clock Phase */
  12243. #define SPI_CR1_CPOL_Pos (1U)
  12244. #define SPI_CR1_CPOL_Msk (0x1UL << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */
  12245. #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!<Clock Polarity */
  12246. #define SPI_CR1_MSTR_Pos (2U)
  12247. #define SPI_CR1_MSTR_Msk (0x1UL << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */
  12248. #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!<Master Selection */
  12249. #define SPI_CR1_BR_Pos (3U)
  12250. #define SPI_CR1_BR_Msk (0x7UL << SPI_CR1_BR_Pos) /*!< 0x00000038 */
  12251. #define SPI_CR1_BR SPI_CR1_BR_Msk /*!<BR[2:0] bits (Baud Rate Control) */
  12252. #define SPI_CR1_BR_0 (0x1UL << SPI_CR1_BR_Pos) /*!< 0x00000008 */
  12253. #define SPI_CR1_BR_1 (0x2UL << SPI_CR1_BR_Pos) /*!< 0x00000010 */
  12254. #define SPI_CR1_BR_2 (0x4UL << SPI_CR1_BR_Pos) /*!< 0x00000020 */
  12255. #define SPI_CR1_SPE_Pos (6U)
  12256. #define SPI_CR1_SPE_Msk (0x1UL << SPI_CR1_SPE_Pos) /*!< 0x00000040 */
  12257. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!<SPI Enable */
  12258. #define SPI_CR1_LSBFIRST_Pos (7U)
  12259. #define SPI_CR1_LSBFIRST_Msk (0x1UL << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */
  12260. #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!<Frame Format */
  12261. #define SPI_CR1_SSI_Pos (8U)
  12262. #define SPI_CR1_SSI_Msk (0x1UL << SPI_CR1_SSI_Pos) /*!< 0x00000100 */
  12263. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!<Internal slave select */
  12264. #define SPI_CR1_SSM_Pos (9U)
  12265. #define SPI_CR1_SSM_Msk (0x1UL << SPI_CR1_SSM_Pos) /*!< 0x00000200 */
  12266. #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!<Software slave management */
  12267. #define SPI_CR1_RXONLY_Pos (10U)
  12268. #define SPI_CR1_RXONLY_Msk (0x1UL << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */
  12269. #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!<Receive only */
  12270. #define SPI_CR1_CRCL_Pos (11U)
  12271. #define SPI_CR1_CRCL_Msk (0x1UL << SPI_CR1_CRCL_Pos) /*!< 0x00000800 */
  12272. #define SPI_CR1_CRCL SPI_CR1_CRCL_Msk /*!< CRC Length */
  12273. #define SPI_CR1_CRCNEXT_Pos (12U)
  12274. #define SPI_CR1_CRCNEXT_Msk (0x1UL << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */
  12275. #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!<Transmit CRC next */
  12276. #define SPI_CR1_CRCEN_Pos (13U)
  12277. #define SPI_CR1_CRCEN_Msk (0x1UL << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */
  12278. #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!<Hardware CRC calculation enable */
  12279. #define SPI_CR1_BIDIOE_Pos (14U)
  12280. #define SPI_CR1_BIDIOE_Msk (0x1UL << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */
  12281. #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!<Output enable in bidirectional mode */
  12282. #define SPI_CR1_BIDIMODE_Pos (15U)
  12283. #define SPI_CR1_BIDIMODE_Msk (0x1UL << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */
  12284. #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!<Bidirectional data mode enable */
  12285. /******************* Bit definition for SPI_CR2 register ********************/
  12286. #define SPI_CR2_RXDMAEN_Pos (0U)
  12287. #define SPI_CR2_RXDMAEN_Msk (0x1UL << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */
  12288. #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */
  12289. #define SPI_CR2_TXDMAEN_Pos (1U)
  12290. #define SPI_CR2_TXDMAEN_Msk (0x1UL << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */
  12291. #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */
  12292. #define SPI_CR2_SSOE_Pos (2U)
  12293. #define SPI_CR2_SSOE_Msk (0x1UL << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */
  12294. #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */
  12295. #define SPI_CR2_NSSP_Pos (3U)
  12296. #define SPI_CR2_NSSP_Msk (0x1UL << SPI_CR2_NSSP_Pos) /*!< 0x00000008 */
  12297. #define SPI_CR2_NSSP SPI_CR2_NSSP_Msk /*!< NSS pulse management Enable */
  12298. #define SPI_CR2_FRF_Pos (4U)
  12299. #define SPI_CR2_FRF_Msk (0x1UL << SPI_CR2_FRF_Pos) /*!< 0x00000010 */
  12300. #define SPI_CR2_FRF SPI_CR2_FRF_Msk /*!< Frame Format Enable */
  12301. #define SPI_CR2_ERRIE_Pos (5U)
  12302. #define SPI_CR2_ERRIE_Msk (0x1UL << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */
  12303. #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */
  12304. #define SPI_CR2_RXNEIE_Pos (6U)
  12305. #define SPI_CR2_RXNEIE_Msk (0x1UL << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */
  12306. #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */
  12307. #define SPI_CR2_TXEIE_Pos (7U)
  12308. #define SPI_CR2_TXEIE_Msk (0x1UL << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */
  12309. #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */
  12310. #define SPI_CR2_DS_Pos (8U)
  12311. #define SPI_CR2_DS_Msk (0xFUL << SPI_CR2_DS_Pos) /*!< 0x00000F00 */
  12312. #define SPI_CR2_DS SPI_CR2_DS_Msk /*!< DS[3:0] Data Size */
  12313. #define SPI_CR2_DS_0 (0x1UL << SPI_CR2_DS_Pos) /*!< 0x00000100 */
  12314. #define SPI_CR2_DS_1 (0x2UL << SPI_CR2_DS_Pos) /*!< 0x00000200 */
  12315. #define SPI_CR2_DS_2 (0x4UL << SPI_CR2_DS_Pos) /*!< 0x00000400 */
  12316. #define SPI_CR2_DS_3 (0x8UL << SPI_CR2_DS_Pos) /*!< 0x00000800 */
  12317. #define SPI_CR2_FRXTH_Pos (12U)
  12318. #define SPI_CR2_FRXTH_Msk (0x1UL << SPI_CR2_FRXTH_Pos) /*!< 0x00001000 */
  12319. #define SPI_CR2_FRXTH SPI_CR2_FRXTH_Msk /*!< FIFO reception Threshold */
  12320. #define SPI_CR2_LDMARX_Pos (13U)
  12321. #define SPI_CR2_LDMARX_Msk (0x1UL << SPI_CR2_LDMARX_Pos) /*!< 0x00002000 */
  12322. #define SPI_CR2_LDMARX SPI_CR2_LDMARX_Msk /*!< Last DMA transfer for reception */
  12323. #define SPI_CR2_LDMATX_Pos (14U)
  12324. #define SPI_CR2_LDMATX_Msk (0x1UL << SPI_CR2_LDMATX_Pos) /*!< 0x00004000 */
  12325. #define SPI_CR2_LDMATX SPI_CR2_LDMATX_Msk /*!< Last DMA transfer for transmission */
  12326. /******************** Bit definition for SPI_SR register ********************/
  12327. #define SPI_SR_RXNE_Pos (0U)
  12328. #define SPI_SR_RXNE_Msk (0x1UL << SPI_SR_RXNE_Pos) /*!< 0x00000001 */
  12329. #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */
  12330. #define SPI_SR_TXE_Pos (1U)
  12331. #define SPI_SR_TXE_Msk (0x1UL << SPI_SR_TXE_Pos) /*!< 0x00000002 */
  12332. #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */
  12333. #define SPI_SR_CRCERR_Pos (4U)
  12334. #define SPI_SR_CRCERR_Msk (0x1UL << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */
  12335. #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */
  12336. #define SPI_SR_MODF_Pos (5U)
  12337. #define SPI_SR_MODF_Msk (0x1UL << SPI_SR_MODF_Pos) /*!< 0x00000020 */
  12338. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */
  12339. #define SPI_SR_OVR_Pos (6U)
  12340. #define SPI_SR_OVR_Msk (0x1UL << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  12341. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */
  12342. #define SPI_SR_BSY_Pos (7U)
  12343. #define SPI_SR_BSY_Msk (0x1UL << SPI_SR_BSY_Pos) /*!< 0x00000080 */
  12344. #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */
  12345. #define SPI_SR_FRE_Pos (8U)
  12346. #define SPI_SR_FRE_Msk (0x1UL << SPI_SR_FRE_Pos) /*!< 0x00000100 */
  12347. #define SPI_SR_FRE SPI_SR_FRE_Msk /*!< TI frame format error */
  12348. #define SPI_SR_FRLVL_Pos (9U)
  12349. #define SPI_SR_FRLVL_Msk (0x3UL << SPI_SR_FRLVL_Pos) /*!< 0x00000600 */
  12350. #define SPI_SR_FRLVL SPI_SR_FRLVL_Msk /*!< FIFO Reception Level */
  12351. #define SPI_SR_FRLVL_0 (0x1UL << SPI_SR_FRLVL_Pos) /*!< 0x00000200 */
  12352. #define SPI_SR_FRLVL_1 (0x2UL << SPI_SR_FRLVL_Pos) /*!< 0x00000400 */
  12353. #define SPI_SR_FTLVL_Pos (11U)
  12354. #define SPI_SR_FTLVL_Msk (0x3UL << SPI_SR_FTLVL_Pos) /*!< 0x00001800 */
  12355. #define SPI_SR_FTLVL SPI_SR_FTLVL_Msk /*!< FIFO Transmission Level */
  12356. #define SPI_SR_FTLVL_0 (0x1UL << SPI_SR_FTLVL_Pos) /*!< 0x00000800 */
  12357. #define SPI_SR_FTLVL_1 (0x2UL << SPI_SR_FTLVL_Pos) /*!< 0x00001000 */
  12358. /******************** Bit definition for SPI_DR register ********************/
  12359. #define SPI_DR_DR_Pos (0U)
  12360. #define SPI_DR_DR_Msk (0xFFFFUL << SPI_DR_DR_Pos) /*!< 0x0000FFFF */
  12361. #define SPI_DR_DR SPI_DR_DR_Msk /*!<Data Register */
  12362. /******************* Bit definition for SPI_CRCPR register ******************/
  12363. #define SPI_CRCPR_CRCPOLY_Pos (0U)
  12364. #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFUL << SPI_CRCPR_CRCPOLY_Pos) /*!< 0x0000FFFF */
  12365. #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!<CRC polynomial register */
  12366. /****************** Bit definition for SPI_RXCRCR register ******************/
  12367. #define SPI_RXCRCR_RXCRC_Pos (0U)
  12368. #define SPI_RXCRCR_RXCRC_Msk (0xFFFFUL << SPI_RXCRCR_RXCRC_Pos) /*!< 0x0000FFFF */
  12369. #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!<Rx CRC Register */
  12370. /****************** Bit definition for SPI_TXCRCR register ******************/
  12371. #define SPI_TXCRCR_TXCRC_Pos (0U)
  12372. #define SPI_TXCRCR_TXCRC_Msk (0xFFFFUL << SPI_TXCRCR_TXCRC_Pos) /*!< 0x0000FFFF */
  12373. #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!<Tx CRC Register */
  12374. /******************************************************************************/
  12375. /* */
  12376. /* Tamper and backup register (TAMP) */
  12377. /* */
  12378. /******************************************************************************/
  12379. /******************** Bits definition for TAMP_CR1 register *****************/
  12380. #define TAMP_CR1_TAMP1E_Pos (0U)
  12381. #define TAMP_CR1_TAMP1E_Msk (0x1UL << TAMP_CR1_TAMP1E_Pos) /*!< 0x00000001 */
  12382. #define TAMP_CR1_TAMP1E TAMP_CR1_TAMP1E_Msk
  12383. #define TAMP_CR1_TAMP2E_Pos (1U)
  12384. #define TAMP_CR1_TAMP2E_Msk (0x1UL << TAMP_CR1_TAMP2E_Pos) /*!< 0x00000002 */
  12385. #define TAMP_CR1_TAMP2E TAMP_CR1_TAMP2E_Msk
  12386. #define TAMP_CR1_TAMP3E_Pos (2U)
  12387. #define TAMP_CR1_TAMP3E_Msk (0x1UL << TAMP_CR1_TAMP3E_Pos) /*!< 0x00000004 */
  12388. #define TAMP_CR1_TAMP3E TAMP_CR1_TAMP3E_Msk
  12389. #define TAMP_CR1_TAMP4E_Pos (3U)
  12390. #define TAMP_CR1_TAMP4E_Msk (0x1UL << TAMP_CR1_TAMP4E_Pos) /*!< 0x00000008 */
  12391. #define TAMP_CR1_TAMP4E TAMP_CR1_TAMP4E_Msk
  12392. #define TAMP_CR1_TAMP5E_Pos (4U)
  12393. #define TAMP_CR1_TAMP5E_Msk (0x1UL << TAMP_CR1_TAMP5E_Pos) /*!< 0x00000010 */
  12394. #define TAMP_CR1_TAMP5E TAMP_CR1_TAMP5E_Msk
  12395. #define TAMP_CR1_TAMP6E_Pos (5U)
  12396. #define TAMP_CR1_TAMP6E_Msk (0x1UL << TAMP_CR1_TAMP6E_Pos) /*!< 0x00000020 */
  12397. #define TAMP_CR1_TAMP6E TAMP_CR1_TAMP6E_Msk
  12398. #define TAMP_CR1_TAMP7E_Pos (6U)
  12399. #define TAMP_CR1_TAMP7E_Msk (0x1UL << TAMP_CR1_TAMP7E_Pos) /*!< 0x00000040 */
  12400. #define TAMP_CR1_TAMP7E TAMP_CR1_TAMP7E_Msk
  12401. #define TAMP_CR1_TAMP8E_Pos (7U)
  12402. #define TAMP_CR1_TAMP8E_Msk (0x1UL << TAMP_CR1_TAMP8E_Pos) /*!< 0x00000080 */
  12403. #define TAMP_CR1_TAMP8E TAMP_CR1_TAMP8E_Msk
  12404. #define TAMP_CR1_ITAMP1E_Pos (16U)
  12405. #define TAMP_CR1_ITAMP1E_Msk (0x1UL << TAMP_CR1_ITAMP1E_Pos) /*!< 0x00010000 */
  12406. #define TAMP_CR1_ITAMP1E TAMP_CR1_ITAMP1E_Msk
  12407. #define TAMP_CR1_ITAMP2E_Pos (17U)
  12408. #define TAMP_CR1_ITAMP2E_Msk (0x1UL << TAMP_CR1_ITAMP2E_Pos) /*!< 0x00040000 */
  12409. #define TAMP_CR1_ITAMP2E TAMP_CR1_ITAMP2E_Msk
  12410. #define TAMP_CR1_ITAMP3E_Pos (18U)
  12411. #define TAMP_CR1_ITAMP3E_Msk (0x1UL << TAMP_CR1_ITAMP3E_Pos) /*!< 0x00040000 */
  12412. #define TAMP_CR1_ITAMP3E TAMP_CR1_ITAMP3E_Msk
  12413. #define TAMP_CR1_ITAMP5E_Pos (20U)
  12414. #define TAMP_CR1_ITAMP5E_Msk (0x1UL << TAMP_CR1_ITAMP5E_Pos) /*!< 0x00100000 */
  12415. #define TAMP_CR1_ITAMP5E TAMP_CR1_ITAMP5E_Msk
  12416. #define TAMP_CR1_ITAMP8E_Pos (23U)
  12417. #define TAMP_CR1_ITAMP8E_Msk (0x1UL << TAMP_CR1_ITAMP8E_Pos) /*!< 0x00800000 */
  12418. #define TAMP_CR1_ITAMP8E TAMP_CR1_ITAMP8E_Msk
  12419. /******************** Bits definition for TAMP_CR2 register *****************/
  12420. #define TAMP_CR2_TAMP1NOERASE_Pos (0U)
  12421. #define TAMP_CR2_TAMP1NOERASE_Msk (0x1UL << TAMP_CR2_TAMP1NOERASE_Pos) /*!< 0x00000001 */
  12422. #define TAMP_CR2_TAMP1NOERASE TAMP_CR2_TAMP1NOERASE_Msk
  12423. #define TAMP_CR2_TAMP2NOERASE_Pos (1U)
  12424. #define TAMP_CR2_TAMP2NOERASE_Msk (0x1UL << TAMP_CR2_TAMP2NOERASE_Pos) /*!< 0x00000002 */
  12425. #define TAMP_CR2_TAMP2NOERASE TAMP_CR2_TAMP2NOERASE_Msk
  12426. #define TAMP_CR2_TAMP3NOERASE_Pos (2U)
  12427. #define TAMP_CR2_TAMP3NOERASE_Msk (0x1UL << TAMP_CR2_TAMP3NOERASE_Pos) /*!< 0x00000004 */
  12428. #define TAMP_CR2_TAMP3NOERASE TAMP_CR2_TAMP3NOERASE_Msk
  12429. #define TAMP_CR2_TAMP4NOERASE_Pos (3U)
  12430. #define TAMP_CR2_TAMP4NOERASE_Msk (0x1UL << TAMP_CR2_TAMP4NOERASE_Pos) /*!< 0x00000008 */
  12431. #define TAMP_CR2_TAMP4NOERASE TAMP_CR2_TAMP4NOERASE_Msk
  12432. #define TAMP_CR2_TAMP5NOERASE_Pos (4U)
  12433. #define TAMP_CR2_TAMP5NOERASE_Msk (0x1UL << TAMP_CR2_TAMP5NOERASE_Pos) /*!< 0x00000010 */
  12434. #define TAMP_CR2_TAMP5NOERASE TAMP_CR2_TAMP5NOERASE_Msk
  12435. #define TAMP_CR2_TAMP6NOERASE_Pos (5U)
  12436. #define TAMP_CR2_TAMP6NOERASE_Msk (0x1UL << TAMP_CR2_TAMP6NOERASE_Pos) /*!< 0x00000020 */
  12437. #define TAMP_CR2_TAMP6NOERASE TAMP_CR2_TAMP6NOERASE_Msk
  12438. #define TAMP_CR2_TAMP7NOERASE_Pos (6U)
  12439. #define TAMP_CR2_TAMP7NOERASE_Msk (0x1UL << TAMP_CR2_TAMP7NOERASE_Pos) /*!< 0x00000040 */
  12440. #define TAMP_CR2_TAMP7NOERASE TAMP_CR2_TAMP7NOERASE_Msk
  12441. #define TAMP_CR2_TAMP8NOERASE_Pos (7U)
  12442. #define TAMP_CR2_TAMP8NOERASE_Msk (0x1UL << TAMP_CR2_TAMP8NOERASE_Pos) /*!< 0x00000080 */
  12443. #define TAMP_CR2_TAMP8NOERASE TAMP_CR2_TAMP8NOERASE_Msk
  12444. #define TAMP_CR2_TAMP1MSK_Pos (16U)
  12445. #define TAMP_CR2_TAMP1MSK_Msk (0x1UL << TAMP_CR2_TAMP1MSK_Pos) /*!< 0x00010000 */
  12446. #define TAMP_CR2_TAMP1MSK TAMP_CR2_TAMP1MSK_Msk
  12447. #define TAMP_CR2_TAMP2MSK_Pos (17U)
  12448. #define TAMP_CR2_TAMP2MSK_Msk (0x1UL << TAMP_CR2_TAMP2MSK_Pos) /*!< 0x00020000 */
  12449. #define TAMP_CR2_TAMP2MSK TAMP_CR2_TAMP2MSK_Msk
  12450. #define TAMP_CR2_TAMP3MSK_Pos (18U)
  12451. #define TAMP_CR2_TAMP3MSK_Msk (0x1UL << TAMP_CR2_TAMP3MSK_Pos) /*!< 0x00040000 */
  12452. #define TAMP_CR2_TAMP3MSK TAMP_CR2_TAMP3MSK_Msk
  12453. #define TAMP_CR2_BKERASE_Pos (23U)
  12454. #define TAMP_CR2_BKERASE_Msk (0x1UL << TAMP_CR2_BKERASE_Pos) /*!< 0x00800000 */
  12455. #define TAMP_CR2_BKERASE TAMP_CR2_BKERASE_Msk
  12456. #define TAMP_CR2_TAMP1TRG_Pos (24U)
  12457. #define TAMP_CR2_TAMP1TRG_Msk (0x1UL << TAMP_CR2_TAMP1TRG_Pos) /*!< 0x01000000 */
  12458. #define TAMP_CR2_TAMP1TRG TAMP_CR2_TAMP1TRG_Msk
  12459. #define TAMP_CR2_TAMP2TRG_Pos (25U)
  12460. #define TAMP_CR2_TAMP2TRG_Msk (0x1UL << TAMP_CR2_TAMP2TRG_Pos) /*!< 0x02000000 */
  12461. #define TAMP_CR2_TAMP2TRG TAMP_CR2_TAMP2TRG_Msk
  12462. #define TAMP_CR2_TAMP3TRG_Pos (26U)
  12463. #define TAMP_CR2_TAMP3TRG_Msk (0x1UL << TAMP_CR2_TAMP3TRG_Pos) /*!< 0x02000000 */
  12464. #define TAMP_CR2_TAMP3TRG TAMP_CR2_TAMP3TRG_Msk
  12465. #define TAMP_CR2_TAMP4TRG_Pos (27U)
  12466. #define TAMP_CR2_TAMP4TRG_Msk (0x1UL << TAMP_CR2_TAMP4TRG_Pos) /*!< 0x02000000 */
  12467. #define TAMP_CR2_TAMP4TRG TAMP_CR2_TAMP4TRG_Msk
  12468. #define TAMP_CR2_TAMP5TRG_Pos (28U)
  12469. #define TAMP_CR2_TAMP5TRG_Msk (0x1UL << TAMP_CR2_TAMP5TRG_Pos) /*!< 0x02000000 */
  12470. #define TAMP_CR2_TAMP5TRG TAMP_CR2_TAMP5TRG_Msk
  12471. #define TAMP_CR2_TAMP6TRG_Pos (29U)
  12472. #define TAMP_CR2_TAMP6TRG_Msk (0x1UL << TAMP_CR2_TAMP6TRG_Pos) /*!< 0x02000000 */
  12473. #define TAMP_CR2_TAMP6TRG TAMP_CR2_TAMP6TRG_Msk
  12474. #define TAMP_CR2_TAMP7TRG_Pos (30U)
  12475. #define TAMP_CR2_TAMP7TRG_Msk (0x1UL << TAMP_CR2_TAMP7TRG_Pos) /*!< 0x02000000 */
  12476. #define TAMP_CR2_TAMP7TRG TAMP_CR2_TAMP7TRG_Msk
  12477. #define TAMP_CR2_TAMP8TRG_Pos (31U)
  12478. #define TAMP_CR2_TAMP8TRG_Msk (0x1UL << TAMP_CR2_TAMP8TRG_Pos) /*!< 0x02000000 */
  12479. #define TAMP_CR2_TAMP8TRG TAMP_CR2_TAMP8TRG_Msk
  12480. /******************** Bits definition for TAMP_CR3 register *****************/
  12481. #define TAMP_CR3_ITAMP1NOER_Pos (0U)
  12482. #define TAMP_CR3_ITAMP1NOER_Msk (0x1UL << TAMP_CR3_ITAMP1NOER_Pos) /*!< 0x00000001 */
  12483. #define TAMP_CR3_ITAMP1NOER TAMP_CR3_ITAMP1NOER_Msk
  12484. #define TAMP_CR3_ITAMP2NOER_Pos (1U)
  12485. #define TAMP_CR3_ITAMP2NOER_Msk (0x1UL << TAMP_CR3_ITAMP2NOER_Pos) /*!< 0x00000002 */
  12486. #define TAMP_CR3_ITAMP2NOER TAMP_CR3_ITAMP2NOER_Msk
  12487. #define TAMP_CR3_ITAMP3NOER_Pos (2U)
  12488. #define TAMP_CR3_ITAMP3NOER_Msk (0x1UL << TAMP_CR3_ITAMP3NOER_Pos) /*!< 0x00000004 */
  12489. #define TAMP_CR3_ITAMP3NOER TAMP_CR3_ITAMP3NOER_Msk
  12490. #define TAMP_CR3_ITAMP5NOER_Pos (4U)
  12491. #define TAMP_CR3_ITAMP5NOER_Msk (0x1UL << TAMP_CR3_ITAMP5NOER_Pos) /*!< 0x00000010 */
  12492. #define TAMP_CR3_ITAMP5NOER TAMP_CR3_ITAMP5NOER_Msk
  12493. #define TAMP_CR3_ITAMP8NOER_Pos (7U)
  12494. #define TAMP_CR3_ITAMP8NOER_Msk (0x1UL << TAMP_CR3_ITAMP8NOER_Pos) /*!< 0x00000040 */
  12495. #define TAMP_CR3_ITAMP8NOER TAMP_CR3_ITAMP8NOER_Msk
  12496. /******************** Bits definition for TAMP_FLTCR register ***************/
  12497. #define TAMP_FLTCR_TAMPFREQ_Pos (0U)
  12498. #define TAMP_FLTCR_TAMPFREQ_Msk (0x7UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000007 */
  12499. #define TAMP_FLTCR_TAMPFREQ TAMP_FLTCR_TAMPFREQ_Msk
  12500. #define TAMP_FLTCR_TAMPFREQ_0 (0x1UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000001 */
  12501. #define TAMP_FLTCR_TAMPFREQ_1 (0x2UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000002 */
  12502. #define TAMP_FLTCR_TAMPFREQ_2 (0x4UL << TAMP_FLTCR_TAMPFREQ_Pos) /*!< 0x00000004 */
  12503. #define TAMP_FLTCR_TAMPFLT_Pos (3U)
  12504. #define TAMP_FLTCR_TAMPFLT_Msk (0x3UL << TAMP_FLTCR_TAMPFLT_Pos) /*!< 0x00000018 */
  12505. #define TAMP_FLTCR_TAMPFLT TAMP_FLTCR_TAMPFLT_Msk
  12506. #define TAMP_FLTCR_TAMPFLT_0 (0x1UL << TAMP_FLTCR_TAMPFLT_Pos) /*!< 0x00000008 */
  12507. #define TAMP_FLTCR_TAMPFLT_1 (0x2UL << TAMP_FLTCR_TAMPFLT_Pos) /*!< 0x00000010 */
  12508. #define TAMP_FLTCR_TAMPPRCH_Pos (5U)
  12509. #define TAMP_FLTCR_TAMPPRCH_Msk (0x3UL << TAMP_FLTCR_TAMPPRCH_Pos) /*!< 0x00000060 */
  12510. #define TAMP_FLTCR_TAMPPRCH TAMP_FLTCR_TAMPPRCH_Msk
  12511. #define TAMP_FLTCR_TAMPPRCH_0 (0x1UL << TAMP_FLTCR_TAMPPRCH_Pos) /*!< 0x00000020 */
  12512. #define TAMP_FLTCR_TAMPPRCH_1 (0x2UL << TAMP_FLTCR_TAMPPRCH_Pos) /*!< 0x00000040 */
  12513. #define TAMP_FLTCR_TAMPPUDIS_Pos (7U)
  12514. #define TAMP_FLTCR_TAMPPUDIS_Msk (0x1UL << TAMP_FLTCR_TAMPPUDIS_Pos) /*!< 0x00000080 */
  12515. #define TAMP_FLTCR_TAMPPUDIS TAMP_FLTCR_TAMPPUDIS_Msk
  12516. /******************** Bits definition for TAMP_ATCR1 register ***************/
  12517. #define TAMP_ATCR1_TAMP1AM_Pos (0U)
  12518. #define TAMP_ATCR1_TAMP1AM_Msk (0x1UL <<TAMP_ATCR1_TAMP1AM_Pos) /*!< 0x00000001 */
  12519. #define TAMP_ATCR1_TAMP1AM TAMP_ATCR1_TAMP1AM_Msk
  12520. #define TAMP_ATCR1_TAMP2AM_Pos (1U)
  12521. #define TAMP_ATCR1_TAMP2AM_Msk (0x1UL <<TAMP_ATCR1_TAMP2AM_Pos) /*!< 0x00000002 */
  12522. #define TAMP_ATCR1_TAMP2AM TAMP_ATCR1_TAMP2AM_Msk
  12523. #define TAMP_ATCR1_TAMP3AM_Pos (2U)
  12524. #define TAMP_ATCR1_TAMP3AM_Msk (0x1UL <<TAMP_ATCR1_TAMP3AM_Pos) /*!< 0x00000004 */
  12525. #define TAMP_ATCR1_TAMP3AM TAMP_ATCR1_TAMP3AM_Msk
  12526. #define TAMP_ATCR1_TAMP4AM_Pos (3U)
  12527. #define TAMP_ATCR1_TAMP4AM_Msk (0x1UL <<TAMP_ATCR1_TAMP4AM_Pos) /*!< 0x00000008 */
  12528. #define TAMP_ATCR1_TAMP4AM TAMP_ATCR1_TAMP4AM_Msk
  12529. #define TAMP_ATCR1_TAMP5AM_Pos (4U)
  12530. #define TAMP_ATCR1_TAMP5AM_Msk (0x1UL <<TAMP_ATCR1_TAMP5AM_Pos) /*!< 0x00000010 */
  12531. #define TAMP_ATCR1_TAMP5AM TAMP_ATCR1_TAMP5AM_Msk
  12532. #define TAMP_ATCR1_TAMP6AM_Pos (6U)
  12533. #define TAMP_ATCR1_TAMP6AM_Msk (0x1UL <<TAMP_ATCR1_TAMP6AM_Pos) /*!< 0x00000020 */
  12534. #define TAMP_ATCR1_TAMP6AM TAMP_ATCR1_TAMP6AM_Msk
  12535. #define TAMP_ATCR1_TAMP7AM_Pos (6U)
  12536. #define TAMP_ATCR1_TAMP7AM_Msk (0x1UL <<TAMP_ATCR1_TAMP7AM_Pos) /*!< 0x00000040 */
  12537. #define TAMP_ATCR1_TAMP7AM TAMP_ATCR1_TAMP7AM_Msk
  12538. #define TAMP_ATCR1_TAMP8AM_Pos (7U)
  12539. #define TAMP_ATCR1_TAMP8AM_Msk (0x1UL <<TAMP_ATCR1_TAMP8AM_Pos) /*!< 0x00000080 */
  12540. #define TAMP_ATCR1_TAMP8AM TAMP_ATCR1_TAMP8AM_Msk
  12541. #define TAMP_ATCR1_ATOSEL1_Pos (8U)
  12542. #define TAMP_ATCR1_ATOSEL1_Msk (0x3UL <<TAMP_ATCR1_ATOSEL1_Pos) /*!< 0x00000300 */
  12543. #define TAMP_ATCR1_ATOSEL1 TAMP_ATCR1_ATOSEL1_Msk
  12544. #define TAMP_ATCR1_ATOSEL1_0 (0x1UL << TAMP_ATCR1_ATOSEL1_Pos) /*!< 0x00000100 */
  12545. #define TAMP_ATCR1_ATOSEL1_1 (0x2UL << TAMP_ATCR1_ATOSEL1_Pos) /*!< 0x00000200 */
  12546. #define TAMP_ATCR1_ATOSEL2_Pos (10U)
  12547. #define TAMP_ATCR1_ATOSEL2_Msk (0x3UL <<TAMP_ATCR1_ATOSEL2_Pos) /*!< 0x00000C00 */
  12548. #define TAMP_ATCR1_ATOSEL2 TAMP_ATCR1_ATOSEL2_Msk
  12549. #define TAMP_ATCR1_ATOSEL2_0 (0x1UL << TAMP_ATCR1_ATOSEL2_Pos) /*!< 0x00000400 */
  12550. #define TAMP_ATCR1_ATOSEL2_1 (0x2UL << TAMP_ATCR1_ATOSEL2_Pos) /*!< 0x00000800 */
  12551. #define TAMP_ATCR1_ATOSEL3_Pos (12U)
  12552. #define TAMP_ATCR1_ATOSEL3_Msk (0x3UL <<TAMP_ATCR1_ATOSEL3_Pos) /*!< 0x00003000 */
  12553. #define TAMP_ATCR1_ATOSEL3 TAMP_ATCR1_ATOSEL3_Msk
  12554. #define TAMP_ATCR1_ATOSEL3_0 (0x1UL << TAMP_ATCR1_ATOSEL3_Pos) /*!< 0x00001000 */
  12555. #define TAMP_ATCR1_ATOSEL3_1 (0x2UL << TAMP_ATCR1_ATOSEL3_Pos) /*!< 0x00002000 */
  12556. #define TAMP_ATCR1_ATOSEL4_Pos (14U)
  12557. #define TAMP_ATCR1_ATOSEL4_Msk (0x3UL <<TAMP_ATCR1_ATOSEL4_Pos) /*!< 0x0000C000 */
  12558. #define TAMP_ATCR1_ATOSEL4 TAMP_ATCR1_ATOSEL4_Msk
  12559. #define TAMP_ATCR1_ATOSEL4_0 (0x1UL << TAMP_ATCR1_ATOSEL4_Pos) /*!< 0x00004000 */
  12560. #define TAMP_ATCR1_ATOSEL4_1 (0x2UL << TAMP_ATCR1_ATOSEL4_Pos) /*!< 0x00008000 */
  12561. #define TAMP_ATCR1_ATCKSEL_Pos (16U)
  12562. #define TAMP_ATCR1_ATCKSEL_Msk (0x7UL <<TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00070000 */
  12563. #define TAMP_ATCR1_ATCKSEL TAMP_ATCR1_ATCKSEL_Msk
  12564. #define TAMP_ATCR1_ATCKSEL_0 (0x1UL << TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00010000 */
  12565. #define TAMP_ATCR1_ATCKSEL_1 (0x2UL << TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00020000 */
  12566. #define TAMP_ATCR1_ATCKSEL_2 (0x4UL << TAMP_ATCR1_ATCKSEL_Pos) /*!< 0x00040000 */
  12567. #define TAMP_ATCR1_ATPER_Pos (24U)
  12568. #define TAMP_ATCR1_ATPER_Msk (0x7UL <<TAMP_ATCR1_ATPER_Pos) /*!< 0x07000000 */
  12569. #define TAMP_ATCR1_ATPER TAMP_ATCR1_ATPER_Msk
  12570. #define TAMP_ATCR1_ATPER_0 (0x1UL << TAMP_ATCR1_ATPER_Pos) /*!< 0x01000000 */
  12571. #define TAMP_ATCR1_ATPER_1 (0x2UL << TAMP_ATCR1_ATPER_Pos) /*!< 0x02000000 */
  12572. #define TAMP_ATCR1_ATPER_2 (0x4UL << TAMP_ATCR1_ATPER_Pos) /*!< 0x04000000 */
  12573. #define TAMP_ATCR1_ATOSHARE_Pos (30U)
  12574. #define TAMP_ATCR1_ATOSHARE_Msk (0x1UL <<TAMP_ATCR1_ATOSHARE_Pos) /*!< 0x40000000 */
  12575. #define TAMP_ATCR1_ATOSHARE TAMP_ATCR1_ATOSHARE_Msk
  12576. #define TAMP_ATCR1_FLTEN_Pos (31U)
  12577. #define TAMP_ATCR1_FLTEN_Msk (0x1UL <<TAMP_ATCR1_FLTEN_Pos) /*!< 0x80000000 */
  12578. #define TAMP_ATCR1_FLTEN TAMP_ATCR1_FLTEN_Msk
  12579. /******************** Bits definition for TAMP_ATSEEDR register ******************/
  12580. #define TAMP_ATSEEDR_SEED_Pos (0U)
  12581. #define TAMP_ATSEEDR_SEED_Msk (0xFFFFFFFFUL << TAMP_ATSEEDR_SEED_Pos) /*!< 0xFFFFFFFF */
  12582. #define TAMP_ATSEEDR_SEED TAMP_ATSEEDR_SEED_Msk
  12583. /******************** Bits definition for TAMP_ATOR register ******************/
  12584. #define TAMP_ATOR_PRNG_Pos (0U)
  12585. #define TAMP_ATOR_PRNG_Msk (0xFFUL << TAMP_ATOR_PRNG_Pos) /*!< 0x000000FF */
  12586. #define TAMP_ATOR_PRNG TAMP_ATOR_PRNG_Msk
  12587. #define TAMP_ATOR_PRNG_0 (0x1UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000001 */
  12588. #define TAMP_ATOR_PRNG_1 (0x2UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000002 */
  12589. #define TAMP_ATOR_PRNG_2 (0x4UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000004 */
  12590. #define TAMP_ATOR_PRNG_3 (0x8UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000008 */
  12591. #define TAMP_ATOR_PRNG_4 (0x10UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000010 */
  12592. #define TAMP_ATOR_PRNG_5 (0x20UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000020 */
  12593. #define TAMP_ATOR_PRNG_6 (0x40UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000040 */
  12594. #define TAMP_ATOR_PRNG_7 (0x80UL << TAMP_ATOR_PRNG_Pos) /*!< 0x00000080 */
  12595. #define TAMP_ATOR_SEEDF_Pos (14U)
  12596. #define TAMP_ATOR_SEEDF_Msk (1UL << TAMP_ATOR_SEEDF_Pos) /*!< 0x00004000 */
  12597. #define TAMP_ATOR_SEEDF TAMP_ATOR_SEEDF_Msk
  12598. #define TAMP_ATOR_INITS_Pos (15U)
  12599. #define TAMP_ATOR_INITS_Msk (1UL << TAMP_ATOR_INITS_Pos) /*!< 0x00008000 */
  12600. #define TAMP_ATOR_INITS TAMP_ATOR_INITS_Msk
  12601. /******************** Bits definition for TAMP_ATCR2 register ***************/
  12602. #define TAMP_ATCR2_ATOSEL1_Pos (8U)
  12603. #define TAMP_ATCR2_ATOSEL1_Msk (0x7UL <<TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000700 */
  12604. #define TAMP_ATCR2_ATOSEL1 TAMP_ATCR2_ATOSEL1_Msk
  12605. #define TAMP_ATCR2_ATOSEL1_0 (0x1UL << TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000100 */
  12606. #define TAMP_ATCR2_ATOSEL1_1 (0x2UL << TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000200 */
  12607. #define TAMP_ATCR2_ATOSEL1_2 (0x4UL << TAMP_ATCR2_ATOSEL1_Pos) /*!< 0x00000400 */
  12608. #define TAMP_ATCR2_ATOSEL2_Pos (11U)
  12609. #define TAMP_ATCR2_ATOSEL2_Msk (0x7UL <<TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00003800 */
  12610. #define TAMP_ATCR2_ATOSEL2 TAMP_ATCR2_ATOSEL2_Msk
  12611. #define TAMP_ATCR2_ATOSEL2_0 (0x1UL << TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00000800 */
  12612. #define TAMP_ATCR2_ATOSEL2_1 (0x2UL << TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00001000 */
  12613. #define TAMP_ATCR2_ATOSEL2_2 (0x4UL << TAMP_ATCR2_ATOSEL2_Pos) /*!< 0x00002000 */
  12614. #define TAMP_ATCR2_ATOSEL3_Pos (14U)
  12615. #define TAMP_ATCR2_ATOSEL3_Msk (0x7UL <<TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x0001C000 */
  12616. #define TAMP_ATCR2_ATOSEL3 TAMP_ATCR2_ATOSEL3_Msk
  12617. #define TAMP_ATCR2_ATOSEL3_0 (0x1UL << TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x00004000 */
  12618. #define TAMP_ATCR2_ATOSEL3_1 (0x2UL << TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x00008000 */
  12619. #define TAMP_ATCR2_ATOSEL3_2 (0x4UL << TAMP_ATCR2_ATOSEL3_Pos) /*!< 0x00010000 */
  12620. #define TAMP_ATCR2_ATOSEL4_Pos (17U)
  12621. #define TAMP_ATCR2_ATOSEL4_Msk (0x7UL <<TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x000E0000 */
  12622. #define TAMP_ATCR2_ATOSEL4 TAMP_ATCR2_ATOSEL4_Msk
  12623. #define TAMP_ATCR2_ATOSEL4_0 (0x1UL << TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x00020000 */
  12624. #define TAMP_ATCR2_ATOSEL4_1 (0x2UL << TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x00040000 */
  12625. #define TAMP_ATCR2_ATOSEL4_2 (0x4UL << TAMP_ATCR2_ATOSEL4_Pos) /*!< 0x00080000 */
  12626. #define TAMP_ATCR2_ATOSEL5_Pos (20U)
  12627. #define TAMP_ATCR2_ATOSEL5_Msk (0x7UL <<TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00700000 */
  12628. #define TAMP_ATCR2_ATOSEL5 TAMP_ATCR2_ATOSEL5_Msk
  12629. #define TAMP_ATCR2_ATOSEL5_0 (0x1UL << TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00100000 */
  12630. #define TAMP_ATCR2_ATOSEL5_1 (0x2UL << TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00200000 */
  12631. #define TAMP_ATCR2_ATOSEL5_2 (0x4UL << TAMP_ATCR2_ATOSEL5_Pos) /*!< 0x00400000 */
  12632. #define TAMP_ATCR2_ATOSEL6_Pos (23U)
  12633. #define TAMP_ATCR2_ATOSEL6_Msk (0x7UL <<TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x03800000 */
  12634. #define TAMP_ATCR2_ATOSEL6 TAMP_ATCR2_ATOSEL6_Msk
  12635. #define TAMP_ATCR2_ATOSEL6_0 (0x1UL << TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x00800000 */
  12636. #define TAMP_ATCR2_ATOSEL6_1 (0x2UL << TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x01000000 */
  12637. #define TAMP_ATCR2_ATOSEL6_2 (0x4UL << TAMP_ATCR2_ATOSEL6_Pos) /*!< 0x02000000 */
  12638. #define TAMP_ATCR2_ATOSEL7_Pos (26U)
  12639. #define TAMP_ATCR2_ATOSEL7_Msk (0x7UL <<TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x1C000000 */
  12640. #define TAMP_ATCR2_ATOSEL7 TAMP_ATCR2_ATOSEL7_Msk
  12641. #define TAMP_ATCR2_ATOSEL7_0 (0x1UL << TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x04000000 */
  12642. #define TAMP_ATCR2_ATOSEL7_1 (0x2UL << TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x08000000 */
  12643. #define TAMP_ATCR2_ATOSEL7_2 (0x4UL << TAMP_ATCR2_ATOSEL7_Pos) /*!< 0x10000000 */
  12644. #define TAMP_ATCR2_ATOSEL8_Pos (29U)
  12645. #define TAMP_ATCR2_ATOSEL8_Msk (0x7UL <<TAMP_ATCR2_ATOSEL8_Pos) /*!< 0xE0000000 */
  12646. #define TAMP_ATCR2_ATOSEL8 TAMP_ATCR2_ATOSEL8_Msk
  12647. #define TAMP_ATCR2_ATOSEL8_0 (0x1UL << TAMP_ATCR2_ATOSEL8_Pos) /*!< 0x20000000 */
  12648. #define TAMP_ATCR2_ATOSEL8_1 (0x2UL << TAMP_ATCR2_ATOSEL8_Pos) /*!< 0x40000000 */
  12649. #define TAMP_ATCR2_ATOSEL8_2 (0x4UL << TAMP_ATCR2_ATOSEL8_Pos) /*!< 0x80000000 */
  12650. /******************** Bits definition for TAMP_SMCR register ******************/
  12651. #define TAMP_SMCR_BKPRWDPROT_Pos (0U)
  12652. #define TAMP_SMCR_BKPRWDPROT_Msk (0xFFUL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x000000FF */
  12653. #define TAMP_SMCR_BKPRWDPROT TAMP_SMCR_BKPRWDPROT_Msk
  12654. #define TAMP_SMCR_BKPRWDPROT_0 (0x1UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000001 */
  12655. #define TAMP_SMCR_BKPRWDPROT_1 (0x2UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000002 */
  12656. #define TAMP_SMCR_BKPRWDPROT_2 (0x4UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000004 */
  12657. #define TAMP_SMCR_BKPRWDPROT_3 (0x8UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000008 */
  12658. #define TAMP_SMCR_BKPRWDPROT_4 (0x1UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000010 */
  12659. #define TAMP_SMCR_BKPRWDPROT_5 (0x20UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000020 */
  12660. #define TAMP_SMCR_BKPRWDPROT_6 (0x40UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000040 */
  12661. #define TAMP_SMCR_BKPRWDPROT_7 (0x80UL << TAMP_SMCR_BKPRWDPROT_Pos) /*!< 0x00000080 */
  12662. #define TAMP_SMCR_BKPWDPROT_Pos (16U)
  12663. #define TAMP_SMCR_BKPWDPROT_Msk (0xFFUL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00FF0000 */
  12664. #define TAMP_SMCR_BKPWDPROT TAMP_SMCR_BKPWDPROT_Msk
  12665. #define TAMP_SMCR_BKPWDPROT_0 (0x1UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00010000 */
  12666. #define TAMP_SMCR_BKPWDPROT_1 (0x2UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00020000 */
  12667. #define TAMP_SMCR_BKPWDPROT_2 (0x4UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00040000 */
  12668. #define TAMP_SMCR_BKPWDPROT_3 (0x8UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00080000 */
  12669. #define TAMP_SMCR_BKPWDPROT_4 (0x1UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00100000 */
  12670. #define TAMP_SMCR_BKPWDPROT_5 (0x20UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00200000 */
  12671. #define TAMP_SMCR_BKPWDPROT_6 (0x40UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00400000 */
  12672. #define TAMP_SMCR_BKPWDPROT_7 (0x80UL << TAMP_SMCR_BKPWDPROT_Pos) /*!< 0x00800000 */
  12673. #define TAMP_SMCR_TAMPDPROT_Pos (31U)
  12674. #define TAMP_SMCR_TAMPDPROT_Msk (0x1UL << TAMP_SMCR_TAMPDPROT_Pos) /*!< 0x80000000 */
  12675. #define TAMP_SMCR_TAMPDPROT TAMP_SMCR_TAMPDPROT_Msk
  12676. /******************** Bits definition for TAMP_PRIVCR register ******************/
  12677. #define TAMP_PRIVCR_BKPRWPRIV_Pos (29U)
  12678. #define TAMP_PRIVCR_BKPRWPRIV_Msk (0x1UL << TAMP_PRIVCR_BKPRWPRIV_Pos) /*!< 0x20000000 */
  12679. #define TAMP_PRIVCR_BKPRWPRIV TAMP_PRIVCR_BKPRWPRIV_Msk
  12680. #define TAMP_PRIVCR_BKPWPRIV_Pos (30U)
  12681. #define TAMP_PRIVCR_BKPWPRIV_Msk (0x1UL << TAMP_PRIVCR_BKPWPRIV_Pos) /*!< 0x40000000 */
  12682. #define TAMP_PRIVCR_BKPWPRIV TAMP_PRIVCR_BKPWPRIV_Msk
  12683. #define TAMP_PRIVCR_TAMPPRIV_Pos (31U)
  12684. #define TAMP_PRIVCR_TAMPPRIV_Msk (0x1UL << TAMP_PRIVCR_TAMPPRIV_Pos) /*!< 0x80000000 */
  12685. #define TAMP_PRIVCR_TAMPPRIV TAMP_PRIVCR_TAMPPRIV_Msk
  12686. /******************** Bits definition for TAMP_IER register *****************/
  12687. #define TAMP_IER_TAMP1IE_Pos (0U)
  12688. #define TAMP_IER_TAMP1IE_Msk (0x1UL << TAMP_IER_TAMP1IE_Pos) /*!< 0x00000001 */
  12689. #define TAMP_IER_TAMP1IE TAMP_IER_TAMP1IE_Msk
  12690. #define TAMP_IER_TAMP2IE_Pos (1U)
  12691. #define TAMP_IER_TAMP2IE_Msk (0x1UL << TAMP_IER_TAMP2IE_Pos) /*!< 0x00000002 */
  12692. #define TAMP_IER_TAMP2IE TAMP_IER_TAMP2IE_Msk
  12693. #define TAMP_IER_TAMP3IE_Pos (2U)
  12694. #define TAMP_IER_TAMP3IE_Msk (0x1UL << TAMP_IER_TAMP3IE_Pos) /*!< 0x00000004 */
  12695. #define TAMP_IER_TAMP3IE TAMP_IER_TAMP3IE_Msk
  12696. #define TAMP_IER_TAMP4IE_Pos (3U)
  12697. #define TAMP_IER_TAMP4IE_Msk (0x1UL << TAMP_IER_TAMP4IE_Pos) /*!< 0x00000008 */
  12698. #define TAMP_IER_TAMP4IE TAMP_IER_TAMP4IE_Msk
  12699. #define TAMP_IER_TAMP5IE_Pos (4U)
  12700. #define TAMP_IER_TAMP5IE_Msk (0x1UL << TAMP_IER_TAMP5IE_Pos) /*!< 0x00000010 */
  12701. #define TAMP_IER_TAMP5IE TAMP_IER_TAMP5IE_Msk
  12702. #define TAMP_IER_TAMP6IE_Pos (5U)
  12703. #define TAMP_IER_TAMP6IE_Msk (0x1UL << TAMP_IER_TAMP6IE_Pos) /*!< 0x00000020 */
  12704. #define TAMP_IER_TAMP6IE TAMP_IER_TAMP6IE_Msk
  12705. #define TAMP_IER_TAMP7IE_Pos (6U)
  12706. #define TAMP_IER_TAMP7IE_Msk (0x1UL << TAMP_IER_TAMP7IE_Pos) /*!< 0x00000040 */
  12707. #define TAMP_IER_TAMP7IE TAMP_IER_TAMP7IE_Msk
  12708. #define TAMP_IER_TAMP8IE_Pos (7U)
  12709. #define TAMP_IER_TAMP8IE_Msk (0x1UL << TAMP_IER_TAMP8IE_Pos) /*!< 0x00000080 */
  12710. #define TAMP_IER_TAMP8IE TAMP_IER_TAMP8IE_Msk
  12711. #define TAMP_IER_ITAMP1IE_Pos (16U)
  12712. #define TAMP_IER_ITAMP1IE_Msk (0x1UL << TAMP_IER_ITAMP1IE_Pos) /*!< 0x00010000 */
  12713. #define TAMP_IER_ITAMP1IE TAMP_IER_ITAMP1IE_Msk
  12714. #define TAMP_IER_ITAMP2IE_Pos (17U)
  12715. #define TAMP_IER_ITAMP2IE_Msk (0x1UL << TAMP_IER_ITAMP2IE_Pos) /*!< 0x00020000 */
  12716. #define TAMP_IER_ITAMP2IE TAMP_IER_ITAMP2IE_Msk
  12717. #define TAMP_IER_ITAMP3IE_Pos (18U)
  12718. #define TAMP_IER_ITAMP3IE_Msk (0x1UL << TAMP_IER_ITAMP3IE_Pos) /*!< 0x00040000 */
  12719. #define TAMP_IER_ITAMP3IE TAMP_IER_ITAMP3IE_Msk
  12720. #define TAMP_IER_ITAMP5IE_Pos (20U)
  12721. #define TAMP_IER_ITAMP5IE_Msk (0x1UL << TAMP_IER_ITAMP5IE_Pos) /*!< 0x00100000 */
  12722. #define TAMP_IER_ITAMP5IE TAMP_IER_ITAMP5IE_Msk
  12723. #define TAMP_IER_ITAMP8IE_Pos (23U)
  12724. #define TAMP_IER_ITAMP8IE_Msk (0x1UL << TAMP_IER_ITAMP8IE_Pos) /*!< 0x00400000 */
  12725. #define TAMP_IER_ITAMP8IE TAMP_IER_ITAMP8IE_Msk
  12726. /******************** Bits definition for TAMP_SR register *****************/
  12727. #define TAMP_SR_TAMP1F_Pos (0U)
  12728. #define TAMP_SR_TAMP1F_Msk (0x1UL << TAMP_SR_TAMP1F_Pos) /*!< 0x00000001 */
  12729. #define TAMP_SR_TAMP1F TAMP_SR_TAMP1F_Msk
  12730. #define TAMP_SR_TAMP2F_Pos (1U)
  12731. #define TAMP_SR_TAMP2F_Msk (0x1UL << TAMP_SR_TAMP2F_Pos) /*!< 0x00000002 */
  12732. #define TAMP_SR_TAMP2F TAMP_SR_TAMP2F_Msk
  12733. #define TAMP_SR_TAMP3F_Pos (2U)
  12734. #define TAMP_SR_TAMP3F_Msk (0x1UL << TAMP_SR_TAMP3F_Pos) /*!< 0x00000004 */
  12735. #define TAMP_SR_TAMP3F TAMP_SR_TAMP3F_Msk
  12736. #define TAMP_SR_TAMP4F_Pos (3U)
  12737. #define TAMP_SR_TAMP4F_Msk (0x1UL << TAMP_SR_TAMP4F_Pos) /*!< 0x00000008 */
  12738. #define TAMP_SR_TAMP4F TAMP_SR_TAMP4F_Msk
  12739. #define TAMP_SR_TAMP5F_Pos (4U)
  12740. #define TAMP_SR_TAMP5F_Msk (0x1UL << TAMP_SR_TAMP5F_Pos) /*!< 0x00000010 */
  12741. #define TAMP_SR_TAMP5F TAMP_SR_TAMP5F_Msk
  12742. #define TAMP_SR_TAMP6F_Pos (5U)
  12743. #define TAMP_SR_TAMP6F_Msk (0x1UL << TAMP_SR_TAMP6F_Pos) /*!< 0x00000020 */
  12744. #define TAMP_SR_TAMP6F TAMP_SR_TAMP6F_Msk
  12745. #define TAMP_SR_TAMP7F_Pos (6U)
  12746. #define TAMP_SR_TAMP7F_Msk (0x1UL << TAMP_SR_TAMP7F_Pos) /*!< 0x00000040 */
  12747. #define TAMP_SR_TAMP7F TAMP_SR_TAMP7F_Msk
  12748. #define TAMP_SR_TAMP8F_Pos (7U)
  12749. #define TAMP_SR_TAMP8F_Msk (0x1UL << TAMP_SR_TAMP8F_Pos) /*!< 0x00000080 */
  12750. #define TAMP_SR_TAMP8F TAMP_SR_TAMP8F_Msk
  12751. #define TAMP_SR_ITAMP1F_Pos (16U)
  12752. #define TAMP_SR_ITAMP1F_Msk (0x1UL << TAMP_SR_ITAMP1F_Pos) /*!< 0x00010000 */
  12753. #define TAMP_SR_ITAMP1F TAMP_SR_ITAMP1F_Msk
  12754. #define TAMP_SR_ITAMP2F_Pos (17U)
  12755. #define TAMP_SR_ITAMP2F_Msk (0x1UL << TAMP_SR_ITAMP2F_Pos) /*!< 0x00010000 */
  12756. #define TAMP_SR_ITAMP2F TAMP_SR_ITAMP2F_Msk
  12757. #define TAMP_SR_ITAMP3F_Pos (18U)
  12758. #define TAMP_SR_ITAMP3F_Msk (0x1UL << TAMP_SR_ITAMP3F_Pos) /*!< 0x00040000 */
  12759. #define TAMP_SR_ITAMP3F TAMP_SR_ITAMP3F_Msk
  12760. #define TAMP_SR_ITAMP5F_Pos (20U)
  12761. #define TAMP_SR_ITAMP5F_Msk (0x1UL << TAMP_SR_ITAMP5F_Pos) /*!< 0x00100000 */
  12762. #define TAMP_SR_ITAMP5F TAMP_SR_ITAMP5F_Msk
  12763. #define TAMP_SR_ITAMP8F_Pos (23U)
  12764. #define TAMP_SR_ITAMP8F_Msk (0x1UL << TAMP_SR_ITAMP8F_Pos) /*!< 0x00400000 */
  12765. #define TAMP_SR_ITAMP8F TAMP_SR_ITAMP8F_Msk
  12766. /******************** Bits definition for TAMP_MISR register ************ *****/
  12767. #define TAMP_MISR_TAMP1MF_Pos (0U)
  12768. #define TAMP_MISR_TAMP1MF_Msk (0x1UL << TAMP_MISR_TAMP1MF_Pos) /*!< 0x00000001 */
  12769. #define TAMP_MISR_TAMP1MF TAMP_MISR_TAMP1MF_Msk
  12770. #define TAMP_MISR_TAMP2MF_Pos (1U)
  12771. #define TAMP_MISR_TAMP2MF_Msk (0x1UL << TAMP_MISR_TAMP2MF_Pos) /*!< 0x00000002 */
  12772. #define TAMP_MISR_TAMP2MF TAMP_MISR_TAMP2MF_Msk
  12773. #define TAMP_MISR_TAMP3MF_Pos (2U)
  12774. #define TAMP_MISR_TAMP3MF_Msk (0x1UL << TAMP_MISR_TAMP3MF_Pos) /*!< 0x00000004 */
  12775. #define TAMP_MISR_TAMP3MF TAMP_MISR_TAMP3MF_Msk
  12776. #define TAMP_MISR_TAMP4MF_Pos (3U)
  12777. #define TAMP_MISR_TAMP4MF_Msk (0x1UL << TAMP_MISR_TAMP4MF_Pos) /*!< 0x00000008 */
  12778. #define TAMP_MISR_TAMP4MF TAMP_MISR_TAMP4MF_Msk
  12779. #define TAMP_MISR_TAMP5MF_Pos (4U)
  12780. #define TAMP_MISR_TAMP5MF_Msk (0x1UL << TAMP_MISR_TAMP5MF_Pos) /*!< 0x00000010 */
  12781. #define TAMP_MISR_TAMP5MF TAMP_MISR_TAMP5MF_Msk
  12782. #define TAMP_MISR_TAMP6MF_Pos (5U)
  12783. #define TAMP_MISR_TAMP6MF_Msk (0x1UL << TAMP_MISR_TAMP6MF_Pos) /*!< 0x00000020 */
  12784. #define TAMP_MISR_TAMP6MF TAMP_MISR_TAMP6MF_Msk
  12785. #define TAMP_MISR_TAMP7MF_Pos (6U)
  12786. #define TAMP_MISR_TAMP7MF_Msk (0x1UL << TAMP_MISR_TAMP7MF_Pos) /*!< 0x00000040 */
  12787. #define TAMP_MISR_TAMP7MF TAMP_MISR_TAMP7MF_Msk
  12788. #define TAMP_MISR_TAMP8MF_Pos (7U)
  12789. #define TAMP_MISR_TAMP8MF_Msk (0x1UL << TAMP_MISR_TAMP8MF_Pos) /*!< 0x00000080 */
  12790. #define TAMP_MISR_TAMP8MF TAMP_MISR_TAMP8MF_Msk
  12791. #define TAMP_MISR_ITAMP1MF_Pos (16U)
  12792. #define TAMP_MISR_ITAMP1MF_Msk (0x1UL << TAMP_MISR_ITAMP1MF_Pos) /*!< 0x00010000 */
  12793. #define TAMP_MISR_ITAMP1MF TAMP_MISR_ITAMP1MF_Msk
  12794. #define TAMP_MISR_ITAMP2MF_Pos (17U)
  12795. #define TAMP_MISR_ITAMP2MF_Msk (0x1UL << TAMP_MISR_ITAMP2MF_Pos) /*!< 0x00010000 */
  12796. #define TAMP_MISR_ITAMP2MF TAMP_MISR_ITAMP2MF_Msk
  12797. #define TAMP_MISR_ITAMP3MF_Pos (18U)
  12798. #define TAMP_MISR_ITAMP3MF_Msk (0x1UL << TAMP_MISR_ITAMP3MF_Pos) /*!< 0x00040000 */
  12799. #define TAMP_MISR_ITAMP3MF TAMP_MISR_ITAMP3MF_Msk
  12800. #define TAMP_MISR_ITAMP5MF_Pos (20U)
  12801. #define TAMP_MISR_ITAMP5MF_Msk (0x1UL << TAMP_MISR_ITAMP5MF_Pos) /*!< 0x00100000 */
  12802. #define TAMP_MISR_ITAMP5MF TAMP_MISR_ITAMP5MF_Msk
  12803. #define TAMP_MISR_ITAMP8MF_Pos (23U)
  12804. #define TAMP_MISR_ITAMP8MF_Msk (0x1UL << TAMP_MISR_ITAMP8MF_Pos) /*!< 0x00400000 */
  12805. #define TAMP_MISR_ITAMP8MF TAMP_MISR_ITAMP8MF_Msk
  12806. /******************** Bits definition for TAMP_SMISR register ************ *****/
  12807. #define TAMP_SMISR_TAMP1MF_Pos (0U)
  12808. #define TAMP_SMISR_TAMP1MF_Msk (0x1UL << TAMP_SMISR_TAMP1MF_Pos) /*!< 0x00000001 */
  12809. #define TAMP_SMISR_TAMP1MF TAMP_SMISR_TAMP1MF_Msk
  12810. #define TAMP_SMISR_TAMP2MF_Pos (1U)
  12811. #define TAMP_SMISR_TAMP2MF_Msk (0x1UL << TAMP_SMISR_TAMP2MF_Pos) /*!< 0x00000002 */
  12812. #define TAMP_SMISR_TAMP2MF TAMP_SMISR_TAMP2MF_Msk
  12813. #define TAMP_SMISR_TAMP3MF_Pos (2U)
  12814. #define TAMP_SMISR_TAMP3MF_Msk (0x1UL << TAMP_SMISR_TAMP3MF_Pos) /*!< 0x00000004 */
  12815. #define TAMP_SMISR_TAMP3MF TAMP_SMISR_TAMP3MF_Msk
  12816. #define TAMP_SMISR_TAMP4MF_Pos (3U)
  12817. #define TAMP_SMISR_TAMP4MF_Msk (0x1UL << TAMP_SMISR_TAMP4MF_Pos) /*!< 0x00000008 */
  12818. #define TAMP_SMISR_TAMP4MF TAMP_SMISR_TAMP4MF_Msk
  12819. #define TAMP_SMISR_TAMP5MF_Pos (4U)
  12820. #define TAMP_SMISR_TAMP5MF_Msk (0x1UL << TAMP_SMISR_TAMP5MF_Pos) /*!< 0x00000010 */
  12821. #define TAMP_SMISR_TAMP5MF TAMP_SMISR_TAMP5MF_Msk
  12822. #define TAMP_SMISR_TAMP6MF_Pos (5U)
  12823. #define TAMP_SMISR_TAMP6MF_Msk (0x1UL << TAMP_SMISR_TAMP6MF_Pos) /*!< 0x00000020 */
  12824. #define TAMP_SMISR_TAMP6MF TAMP_SMISR_TAMP6MF_Msk
  12825. #define TAMP_SMISR_TAMP7MF_Pos (6U)
  12826. #define TAMP_SMISR_TAMP7MF_Msk (0x1UL << TAMP_SMISR_TAMP7MF_Pos) /*!< 0x00000040 */
  12827. #define TAMP_SMISR_TAMP7MF TAMP_SMISR_TAMP7MF_Msk
  12828. #define TAMP_SMISR_TAMP8MF_Pos (7U)
  12829. #define TAMP_SMISR_TAMP8MF_Msk (0x1UL << TAMP_SMISR_TAMP8MF_Pos) /*!< 0x00000080 */
  12830. #define TAMP_SMISR_TAMP8MF TAMP_SMISR_TAMP8MF_Msk
  12831. #define TAMP_SMISR_ITAMP1MF_Pos (16U)
  12832. #define TAMP_SMISR_ITAMP1MF_Msk (0x1UL << TAMP_SMISR_ITAMP1MF_Pos) /*!< 0x00010000 */
  12833. #define TAMP_SMISR_ITAMP1MF TAMP_SMISR_ITAMP1MF_Msk
  12834. #define TAMP_SMISR_ITAMP2MF_Pos (17U)
  12835. #define TAMP_SMISR_ITAMP2MF_Msk (0x1UL << TAMP_SMISR_ITAMP2MF_Pos) /*!< 0x00010000 */
  12836. #define TAMP_SMISR_ITAMP2MF TAMP_SMISR_ITAMP2MF_Msk
  12837. #define TAMP_SMISR_ITAMP3MF_Pos (18U)
  12838. #define TAMP_SMISR_ITAMP3MF_Msk (0x1UL << TAMP_SMISR_ITAMP3MF_Pos) /*!< 0x00040000 */
  12839. #define TAMP_SMISR_ITAMP3MF TAMP_SMISR_ITAMP3MF_Msk
  12840. #define TAMP_SMISR_ITAMP5MF_Pos (20U)
  12841. #define TAMP_SMISR_ITAMP5MF_Msk (0x1UL << TAMP_SMISR_ITAMP5MF_Pos) /*!< 0x00100000 */
  12842. #define TAMP_SMISR_ITAMP5MF TAMP_SMISR_ITAMP5MF_Msk
  12843. #define TAMP_SMISR_ITAMP8MF_Pos (23U)
  12844. #define TAMP_SMISR_ITAMP8MF_Msk (0x1UL << TAMP_SMISR_ITAMP8MF_Pos) /*!< 0x00400000 */
  12845. #define TAMP_SMISR_ITAMP8MF TAMP_SMISR_ITAMP8MF_Msk
  12846. /******************** Bits definition for TAMP_SCR register *****************/
  12847. #define TAMP_SCR_CTAMP1F_Pos (0U)
  12848. #define TAMP_SCR_CTAMP1F_Msk (0x1UL << TAMP_SCR_CTAMP1F_Pos) /*!< 0x00000001 */
  12849. #define TAMP_SCR_CTAMP1F TAMP_SCR_CTAMP1F_Msk
  12850. #define TAMP_SCR_CTAMP2F_Pos (1U)
  12851. #define TAMP_SCR_CTAMP2F_Msk (0x1UL << TAMP_SCR_CTAMP2F_Pos) /*!< 0x00000002 */
  12852. #define TAMP_SCR_CTAMP2F TAMP_SCR_CTAMP2F_Msk
  12853. #define TAMP_SCR_CTAMP3F_Pos (2U)
  12854. #define TAMP_SCR_CTAMP3F_Msk (0x1UL << TAMP_SCR_CTAMP3F_Pos) /*!< 0x00000004 */
  12855. #define TAMP_SCR_CTAMP3F TAMP_SCR_CTAMP3F_Msk
  12856. #define TAMP_SCR_CTAMP4F_Pos (3U)
  12857. #define TAMP_SCR_CTAMP4F_Msk (0x1UL << TAMP_SCR_CTAMP4F_Pos) /*!< 0x00000008 */
  12858. #define TAMP_SCR_CTAMP4F TAMP_SCR_CTAMP4F_Msk
  12859. #define TAMP_SCR_CTAMP5F_Pos (4U)
  12860. #define TAMP_SCR_CTAMP5F_Msk (0x1UL << TAMP_SCR_CTAMP5F_Pos) /*!< 0x00000010 */
  12861. #define TAMP_SCR_CTAMP5F TAMP_SCR_CTAMP5F_Msk
  12862. #define TAMP_SCR_CTAMP6F_Pos (5U)
  12863. #define TAMP_SCR_CTAMP6F_Msk (0x1UL << TAMP_SCR_CTAMP6F_Pos) /*!< 0x00000020 */
  12864. #define TAMP_SCR_CTAMP6F TAMP_SCR_CTAMP6F_Msk
  12865. #define TAMP_SCR_CTAMP7F_Pos (6U)
  12866. #define TAMP_SCR_CTAMP7F_Msk (0x1UL << TAMP_SCR_CTAMP7F_Pos) /*!< 0x00000040 */
  12867. #define TAMP_SCR_CTAMP7F TAMP_SCR_CTAMP7F_Msk
  12868. #define TAMP_SCR_CTAMP8F_Pos (7U)
  12869. #define TAMP_SCR_CTAMP8F_Msk (0x1UL << TAMP_SCR_CTAMP8F_Pos) /*!< 0x00000080 */
  12870. #define TAMP_SCR_CTAMP8F TAMP_SCR_CTAMP8F_Msk
  12871. #define TAMP_SCR_CITAMP1F_Pos (16U)
  12872. #define TAMP_SCR_CITAMP1F_Msk (0x1UL << TAMP_SCR_CITAMP1F_Pos) /*!< 0x00010000 */
  12873. #define TAMP_SCR_CITAMP1F TAMP_SCR_CITAMP1F_Msk
  12874. #define TAMP_SCR_CITAMP2F_Pos (17U)
  12875. #define TAMP_SCR_CITAMP2F_Msk (0x1UL << TAMP_SCR_CITAMP2F_Pos) /*!< 0x00010000 */
  12876. #define TAMP_SCR_CITAMP2F TAMP_SCR_CITAMP2F_Msk
  12877. #define TAMP_SCR_CITAMP3F_Pos (18U)
  12878. #define TAMP_SCR_CITAMP3F_Msk (0x1UL << TAMP_SCR_CITAMP3F_Pos) /*!< 0x00040000 */
  12879. #define TAMP_SCR_CITAMP3F TAMP_SCR_CITAMP3F_Msk
  12880. #define TAMP_SCR_CITAMP5F_Pos (20U)
  12881. #define TAMP_SCR_CITAMP5F_Msk (0x1UL << TAMP_SCR_CITAMP5F_Pos) /*!< 0x00100000 */
  12882. #define TAMP_SCR_CITAMP5F TAMP_SCR_CITAMP5F_Msk
  12883. #define TAMP_SCR_CITAMP8F_Pos (23U)
  12884. #define TAMP_SCR_CITAMP8F_Msk (0x1UL << TAMP_SCR_CITAMP8F_Pos) /*!< 0x00400000 */
  12885. #define TAMP_SCR_CITAMP8F TAMP_SCR_CITAMP8F_Msk
  12886. /******************** Bits definition for TAMP_COUNTR register ***************/
  12887. #define TAMP_COUNTR_Pos (16U)
  12888. #define TAMP_COUNTR_Msk (0xFFFFUL << TAMP_COUNTR_Pos) /*!< 0xFFFF0000 */
  12889. #define TAMP_COUNTR TAMP_COUNTR_Msk
  12890. /******************** Bits definition for TAMP_BKP0R register ***************/
  12891. #define TAMP_BKP0R_Pos (0U)
  12892. #define TAMP_BKP0R_Msk (0xFFFFFFFFUL << TAMP_BKP0R_Pos) /*!< 0xFFFFFFFF */
  12893. #define TAMP_BKP0R TAMP_BKP0R_Msk
  12894. /******************** Bits definition for TAMP_BKP1R register ****************/
  12895. #define TAMP_BKP1R_Pos (0U)
  12896. #define TAMP_BKP1R_Msk (0xFFFFFFFFUL << TAMP_BKP1R_Pos) /*!< 0xFFFFFFFF */
  12897. #define TAMP_BKP1R TAMP_BKP1R_Msk
  12898. /******************** Bits definition for TAMP_BKP2R register ****************/
  12899. #define TAMP_BKP2R_Pos (0U)
  12900. #define TAMP_BKP2R_Msk (0xFFFFFFFFUL << TAMP_BKP2R_Pos) /*!< 0xFFFFFFFF */
  12901. #define TAMP_BKP2R TAMP_BKP2R_Msk
  12902. /******************** Bits definition for TAMP_BKP3R register ****************/
  12903. #define TAMP_BKP3R_Pos (0U)
  12904. #define TAMP_BKP3R_Msk (0xFFFFFFFFUL << TAMP_BKP3R_Pos) /*!< 0xFFFFFFFF */
  12905. #define TAMP_BKP3R TAMP_BKP3R_Msk
  12906. /******************** Bits definition for TAMP_BKP4R register ****************/
  12907. #define TAMP_BKP4R_Pos (0U)
  12908. #define TAMP_BKP4R_Msk (0xFFFFFFFFUL << TAMP_BKP4R_Pos) /*!< 0xFFFFFFFF */
  12909. #define TAMP_BKP4R TAMP_BKP4R_Msk
  12910. /******************** Bits definition for TAMP_BKP5R register ****************/
  12911. #define TAMP_BKP5R_Pos (0U)
  12912. #define TAMP_BKP5R_Msk (0xFFFFFFFFUL << TAMP_BKP5R_Pos) /*!< 0xFFFFFFFF */
  12913. #define TAMP_BKP5R TAMP_BKP5R_Msk
  12914. /******************** Bits definition for TAMP_BKP6R register ****************/
  12915. #define TAMP_BKP6R_Pos (0U)
  12916. #define TAMP_BKP6R_Msk (0xFFFFFFFFUL << TAMP_BKP6R_Pos) /*!< 0xFFFFFFFF */
  12917. #define TAMP_BKP6R TAMP_BKP6R_Msk
  12918. /******************** Bits definition for TAMP_BKP7R register ****************/
  12919. #define TAMP_BKP7R_Pos (0U)
  12920. #define TAMP_BKP7R_Msk (0xFFFFFFFFUL << TAMP_BKP7R_Pos) /*!< 0xFFFFFFFF */
  12921. #define TAMP_BKP7R TAMP_BKP7R_Msk
  12922. /******************** Bits definition for TAMP_BKP8R register ****************/
  12923. #define TAMP_BKP8R_Pos (0U)
  12924. #define TAMP_BKP8R_Msk (0xFFFFFFFFUL << TAMP_BKP8R_Pos) /*!< 0xFFFFFFFF */
  12925. #define TAMP_BKP8R TAMP_BKP8R_Msk
  12926. /******************** Bits definition for TAMP_BKP9R register ****************/
  12927. #define TAMP_BKP9R_Pos (0U)
  12928. #define TAMP_BKP9R_Msk (0xFFFFFFFFUL << TAMP_BKP9R_Pos) /*!< 0xFFFFFFFF */
  12929. #define TAMP_BKP9R TAMP_BKP9R_Msk
  12930. /******************** Bits definition for TAMP_BKP10R register ***************/
  12931. #define TAMP_BKP10R_Pos (0U)
  12932. #define TAMP_BKP10R_Msk (0xFFFFFFFFUL << TAMP_BKP10R_Pos) /*!< 0xFFFFFFFF */
  12933. #define TAMP_BKP10R TAMP_BKP10R_Msk
  12934. /******************** Bits definition for TAMP_BKP11R register ***************/
  12935. #define TAMP_BKP11R_Pos (0U)
  12936. #define TAMP_BKP11R_Msk (0xFFFFFFFFUL << TAMP_BKP11R_Pos) /*!< 0xFFFFFFFF */
  12937. #define TAMP_BKP11R TAMP_BKP11R_Msk
  12938. /******************** Bits definition for TAMP_BKP12R register ***************/
  12939. #define TAMP_BKP12R_Pos (0U)
  12940. #define TAMP_BKP12R_Msk (0xFFFFFFFFUL << TAMP_BKP12R_Pos) /*!< 0xFFFFFFFF */
  12941. #define TAMP_BKP12R TAMP_BKP12R_Msk
  12942. /******************** Bits definition for TAMP_BKP13R register ***************/
  12943. #define TAMP_BKP13R_Pos (0U)
  12944. #define TAMP_BKP13R_Msk (0xFFFFFFFFUL << TAMP_BKP13R_Pos) /*!< 0xFFFFFFFF */
  12945. #define TAMP_BKP13R TAMP_BKP13R_Msk
  12946. /******************** Bits definition for TAMP_BKP14R register ***************/
  12947. #define TAMP_BKP14R_Pos (0U)
  12948. #define TAMP_BKP14R_Msk (0xFFFFFFFFUL << TAMP_BKP14R_Pos) /*!< 0xFFFFFFFF */
  12949. #define TAMP_BKP14R TAMP_BKP14R_Msk
  12950. /******************** Bits definition for TAMP_BKP15R register ***************/
  12951. #define TAMP_BKP15R_Pos (0U)
  12952. #define TAMP_BKP15R_Msk (0xFFFFFFFFUL << TAMP_BKP15R_Pos) /*!< 0xFFFFFFFF */
  12953. #define TAMP_BKP15R TAMP_BKP15R_Msk
  12954. /******************** Bits definition for TAMP_BKP16R register ***************/
  12955. #define TAMP_BKP16R_Pos (0U)
  12956. #define TAMP_BKP16R_Msk (0xFFFFFFFFUL << TAMP_BKP16R_Pos) /*!< 0xFFFFFFFF */
  12957. #define TAMP_BKP16R TAMP_BKP16R_Msk
  12958. /******************** Bits definition for TAMP_BKP17R register ***************/
  12959. #define TAMP_BKP17R_Pos (0U)
  12960. #define TAMP_BKP17R_Msk (0xFFFFFFFFUL << TAMP_BKP17R_Pos) /*!< 0xFFFFFFFF */
  12961. #define TAMP_BKP17R TAMP_BKP17R_Msk
  12962. /******************** Bits definition for TAMP_BKP18R register ***************/
  12963. #define TAMP_BKP18R_Pos (0U)
  12964. #define TAMP_BKP18R_Msk (0xFFFFFFFFUL << TAMP_BKP18R_Pos) /*!< 0xFFFFFFFF */
  12965. #define TAMP_BKP18R TAMP_BKP18R_Msk
  12966. /******************** Bits definition for TAMP_BKP19R register ***************/
  12967. #define TAMP_BKP19R_Pos (0U)
  12968. #define TAMP_BKP19R_Msk (0xFFFFFFFFUL << TAMP_BKP19R_Pos) /*!< 0xFFFFFFFF */
  12969. #define TAMP_BKP19R TAMP_BKP19R_Msk
  12970. /******************** Bits definition for TAMP_BKP20R register ***************/
  12971. #define TAMP_BKP20R_Pos (0U)
  12972. #define TAMP_BKP20R_Msk (0xFFFFFFFFUL << TAMP_BKP20R_Pos) /*!< 0xFFFFFFFF */
  12973. #define TAMP_BKP20R TAMP_BKP20R_Msk
  12974. /******************** Bits definition for TAMP_BKP21R register ***************/
  12975. #define TAMP_BKP21R_Pos (0U)
  12976. #define TAMP_BKP21R_Msk (0xFFFFFFFFUL << TAMP_BKP21R_Pos) /*!< 0xFFFFFFFF */
  12977. #define TAMP_BKP21R TAMP_BKP21R_Msk
  12978. /******************** Bits definition for TAMP_BKP22R register ***************/
  12979. #define TAMP_BKP22R_Pos (0U)
  12980. #define TAMP_BKP22R_Msk (0xFFFFFFFFUL << TAMP_BKP22R_Pos) /*!< 0xFFFFFFFF */
  12981. #define TAMP_BKP22R TAMP_BKP22R_Msk
  12982. /******************** Bits definition for TAMP_BKP23R register ***************/
  12983. #define TAMP_BKP23R_Pos (0U)
  12984. #define TAMP_BKP23R_Msk (0xFFFFFFFFUL << TAMP_BKP23R_Pos) /*!< 0xFFFFFFFF */
  12985. #define TAMP_BKP23R TAMP_BKP23R_Msk
  12986. /******************** Bits definition for TAMP_BKP24R register ***************/
  12987. #define TAMP_BKP24R_Pos (0U)
  12988. #define TAMP_BKP24R_Msk (0xFFFFFFFFUL << TAMP_BKP24R_Pos) /*!< 0xFFFFFFFF */
  12989. #define TAMP_BKP24R TAMP_BKP24R_Msk
  12990. /******************** Bits definition for TAMP_BKP25R register ***************/
  12991. #define TAMP_BKP25R_Pos (0U)
  12992. #define TAMP_BKP25R_Msk (0xFFFFFFFFUL << TAMP_BKP25R_Pos) /*!< 0xFFFFFFFF */
  12993. #define TAMP_BKP25R TAMP_BKP25R_Msk
  12994. /******************** Bits definition for TAMP_BKP26R register ***************/
  12995. #define TAMP_BKP26R_Pos (0U)
  12996. #define TAMP_BKP26R_Msk (0xFFFFFFFFUL << TAMP_BKP26R_Pos) /*!< 0xFFFFFFFF */
  12997. #define TAMP_BKP26R TAMP_BKP26R_Msk
  12998. /******************** Bits definition for TAMP_BKP27R register ***************/
  12999. #define TAMP_BKP27R_Pos (0U)
  13000. #define TAMP_BKP27R_Msk (0xFFFFFFFFUL << TAMP_BKP27R_Pos) /*!< 0xFFFFFFFF */
  13001. #define TAMP_BKP27R TAMP_BKP27R_Msk
  13002. /******************** Bits definition for TAMP_BKP28R register ***************/
  13003. #define TAMP_BKP28R_Pos (0U)
  13004. #define TAMP_BKP28R_Msk (0xFFFFFFFFUL << TAMP_BKP28R_Pos) /*!< 0xFFFFFFFF */
  13005. #define TAMP_BKP28R TAMP_BKP28R_Msk
  13006. /******************** Bits definition for TAMP_BKP29R register ***************/
  13007. #define TAMP_BKP29R_Pos (0U)
  13008. #define TAMP_BKP29R_Msk (0xFFFFFFFFUL << TAMP_BKP29R_Pos) /*!< 0xFFFFFFFF */
  13009. #define TAMP_BKP29R TAMP_BKP29R_Msk
  13010. /******************** Bits definition for TAMP_BKP30R register ***************/
  13011. #define TAMP_BKP30R_Pos (0U)
  13012. #define TAMP_BKP30R_Msk (0xFFFFFFFFUL << TAMP_BKP30R_Pos) /*!< 0xFFFFFFFF */
  13013. #define TAMP_BKP30R TAMP_BKP30R_Msk
  13014. /******************** Bits definition for TAMP_BKP31R register ***************/
  13015. #define TAMP_BKP31R_Pos (0U)
  13016. #define TAMP_BKP31R_Msk (0xFFFFFFFFUL << TAMP_BKP31R_Pos) /*!< 0xFFFFFFFF */
  13017. #define TAMP_BKP31R TAMP_BKP31R_Msk
  13018. /******************************************************************************/
  13019. /* */
  13020. /* TIM */
  13021. /* */
  13022. /******************************************************************************/
  13023. /******************* Bit definition for TIM_CR1 register ********************/
  13024. #define TIM_CR1_CEN_Pos (0U)
  13025. #define TIM_CR1_CEN_Msk (0x1UL << TIM_CR1_CEN_Pos) /*!< 0x00000001 */
  13026. #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */
  13027. #define TIM_CR1_UDIS_Pos (1U)
  13028. #define TIM_CR1_UDIS_Msk (0x1UL << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */
  13029. #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */
  13030. #define TIM_CR1_URS_Pos (2U)
  13031. #define TIM_CR1_URS_Msk (0x1UL << TIM_CR1_URS_Pos) /*!< 0x00000004 */
  13032. #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */
  13033. #define TIM_CR1_OPM_Pos (3U)
  13034. #define TIM_CR1_OPM_Msk (0x1UL << TIM_CR1_OPM_Pos) /*!< 0x00000008 */
  13035. #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */
  13036. #define TIM_CR1_DIR_Pos (4U)
  13037. #define TIM_CR1_DIR_Msk (0x1UL << TIM_CR1_DIR_Pos) /*!< 0x00000010 */
  13038. #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */
  13039. #define TIM_CR1_CMS_Pos (5U)
  13040. #define TIM_CR1_CMS_Msk (0x3UL << TIM_CR1_CMS_Pos) /*!< 0x00000060 */
  13041. #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */
  13042. #define TIM_CR1_CMS_0 (0x1UL << TIM_CR1_CMS_Pos) /*!< 0x00000020 */
  13043. #define TIM_CR1_CMS_1 (0x2UL << TIM_CR1_CMS_Pos) /*!< 0x00000040 */
  13044. #define TIM_CR1_ARPE_Pos (7U)
  13045. #define TIM_CR1_ARPE_Msk (0x1UL << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */
  13046. #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */
  13047. #define TIM_CR1_CKD_Pos (8U)
  13048. #define TIM_CR1_CKD_Msk (0x3UL << TIM_CR1_CKD_Pos) /*!< 0x00000300 */
  13049. #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */
  13050. #define TIM_CR1_CKD_0 (0x1UL << TIM_CR1_CKD_Pos) /*!< 0x00000100 */
  13051. #define TIM_CR1_CKD_1 (0x2UL << TIM_CR1_CKD_Pos) /*!< 0x00000200 */
  13052. #define TIM_CR1_UIFREMAP_Pos (11U)
  13053. #define TIM_CR1_UIFREMAP_Msk (0x1UL << TIM_CR1_UIFREMAP_Pos) /*!< 0x00000800 */
  13054. #define TIM_CR1_UIFREMAP TIM_CR1_UIFREMAP_Msk /*!<Update interrupt flag remap */
  13055. /******************* Bit definition for TIM_CR2 register ********************/
  13056. #define TIM_CR2_CCPC_Pos (0U)
  13057. #define TIM_CR2_CCPC_Msk (0x1UL << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  13058. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  13059. #define TIM_CR2_CCUS_Pos (2U)
  13060. #define TIM_CR2_CCUS_Msk (0x1UL << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  13061. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  13062. #define TIM_CR2_CCDS_Pos (3U)
  13063. #define TIM_CR2_CCDS_Msk (0x1UL << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  13064. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  13065. #define TIM_CR2_MMS_Pos (4U)
  13066. #define TIM_CR2_MMS_Msk (0x7UL << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  13067. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  13068. #define TIM_CR2_MMS_0 (0x1UL << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  13069. #define TIM_CR2_MMS_1 (0x2UL << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  13070. #define TIM_CR2_MMS_2 (0x4UL << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  13071. #define TIM_CR2_TI1S_Pos (7U)
  13072. #define TIM_CR2_TI1S_Msk (0x1UL << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  13073. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  13074. #define TIM_CR2_OIS1_Pos (8U)
  13075. #define TIM_CR2_OIS1_Msk (0x1UL << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  13076. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  13077. #define TIM_CR2_OIS1N_Pos (9U)
  13078. #define TIM_CR2_OIS1N_Msk (0x1UL << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  13079. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  13080. #define TIM_CR2_OIS2_Pos (10U)
  13081. #define TIM_CR2_OIS2_Msk (0x1UL << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  13082. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  13083. #define TIM_CR2_OIS2N_Pos (11U)
  13084. #define TIM_CR2_OIS2N_Msk (0x1UL << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  13085. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  13086. #define TIM_CR2_OIS3_Pos (12U)
  13087. #define TIM_CR2_OIS3_Msk (0x1UL << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  13088. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  13089. #define TIM_CR2_OIS3N_Pos (13U)
  13090. #define TIM_CR2_OIS3N_Msk (0x1UL << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  13091. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  13092. #define TIM_CR2_OIS4_Pos (14U)
  13093. #define TIM_CR2_OIS4_Msk (0x1UL << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  13094. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  13095. #define TIM_CR2_OIS5_Pos (16U)
  13096. #define TIM_CR2_OIS5_Msk (0x1UL << TIM_CR2_OIS5_Pos) /*!< 0x00010000 */
  13097. #define TIM_CR2_OIS5 TIM_CR2_OIS5_Msk /*!<Output Idle state 5 (OC5 output) */
  13098. #define TIM_CR2_OIS6_Pos (18U)
  13099. #define TIM_CR2_OIS6_Msk (0x1UL << TIM_CR2_OIS6_Pos) /*!< 0x00040000 */
  13100. #define TIM_CR2_OIS6 TIM_CR2_OIS6_Msk /*!<Output Idle state 6 (OC6 output) */
  13101. #define TIM_CR2_MMS2_Pos (20U)
  13102. #define TIM_CR2_MMS2_Msk (0xFUL << TIM_CR2_MMS2_Pos) /*!< 0x00F00000 */
  13103. #define TIM_CR2_MMS2 TIM_CR2_MMS2_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  13104. #define TIM_CR2_MMS2_0 (0x1UL << TIM_CR2_MMS2_Pos) /*!< 0x00100000 */
  13105. #define TIM_CR2_MMS2_1 (0x2UL << TIM_CR2_MMS2_Pos) /*!< 0x00200000 */
  13106. #define TIM_CR2_MMS2_2 (0x4UL << TIM_CR2_MMS2_Pos) /*!< 0x00400000 */
  13107. #define TIM_CR2_MMS2_3 (0x8UL << TIM_CR2_MMS2_Pos) /*!< 0x00800000 */
  13108. /******************* Bit definition for TIM_SMCR register *******************/
  13109. #define TIM_SMCR_SMS_Pos (0U)
  13110. #define TIM_SMCR_SMS_Msk (0x10007UL << TIM_SMCR_SMS_Pos) /*!< 0x00010007 */
  13111. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  13112. #define TIM_SMCR_SMS_0 (0x00001UL << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */
  13113. #define TIM_SMCR_SMS_1 (0x00002UL << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */
  13114. #define TIM_SMCR_SMS_2 (0x00004UL << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */
  13115. #define TIM_SMCR_SMS_3 (0x10000UL << TIM_SMCR_SMS_Pos) /*!< 0x00010000 */
  13116. #define TIM_SMCR_TS_Pos (4U)
  13117. #define TIM_SMCR_TS_Msk (0x30007UL << TIM_SMCR_TS_Pos) /*!< 0x00300070 */
  13118. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */
  13119. #define TIM_SMCR_TS_0 (0x00001UL << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  13120. #define TIM_SMCR_TS_1 (0x00002UL << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  13121. #define TIM_SMCR_TS_2 (0x00004UL << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  13122. #define TIM_SMCR_TS_3 (0x10000UL << TIM_SMCR_TS_Pos) /*!< 0x00100000 */
  13123. #define TIM_SMCR_TS_4 (0x20000UL << TIM_SMCR_TS_Pos) /*!< 0x00200000 */
  13124. #define TIM_SMCR_MSM_Pos (7U)
  13125. #define TIM_SMCR_MSM_Msk (0x1UL << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  13126. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  13127. #define TIM_SMCR_ETF_Pos (8U)
  13128. #define TIM_SMCR_ETF_Msk (0xFUL << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  13129. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  13130. #define TIM_SMCR_ETF_0 (0x1UL << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  13131. #define TIM_SMCR_ETF_1 (0x2UL << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  13132. #define TIM_SMCR_ETF_2 (0x4UL << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  13133. #define TIM_SMCR_ETF_3 (0x8UL << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  13134. #define TIM_SMCR_ETPS_Pos (12U)
  13135. #define TIM_SMCR_ETPS_Msk (0x3UL << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  13136. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  13137. #define TIM_SMCR_ETPS_0 (0x1UL << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  13138. #define TIM_SMCR_ETPS_1 (0x2UL << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  13139. #define TIM_SMCR_ECE_Pos (14U)
  13140. #define TIM_SMCR_ECE_Msk (0x1UL << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  13141. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  13142. #define TIM_SMCR_ETP_Pos (15U)
  13143. #define TIM_SMCR_ETP_Msk (0x1UL << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  13144. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  13145. /******************* Bit definition for TIM_DIER register *******************/
  13146. #define TIM_DIER_UIE_Pos (0U)
  13147. #define TIM_DIER_UIE_Msk (0x1UL << TIM_DIER_UIE_Pos) /*!< 0x00000001 */
  13148. #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */
  13149. #define TIM_DIER_CC1IE_Pos (1U)
  13150. #define TIM_DIER_CC1IE_Msk (0x1UL << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */
  13151. #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */
  13152. #define TIM_DIER_CC2IE_Pos (2U)
  13153. #define TIM_DIER_CC2IE_Msk (0x1UL << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */
  13154. #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */
  13155. #define TIM_DIER_CC3IE_Pos (3U)
  13156. #define TIM_DIER_CC3IE_Msk (0x1UL << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */
  13157. #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */
  13158. #define TIM_DIER_CC4IE_Pos (4U)
  13159. #define TIM_DIER_CC4IE_Msk (0x1UL << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */
  13160. #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */
  13161. #define TIM_DIER_COMIE_Pos (5U)
  13162. #define TIM_DIER_COMIE_Msk (0x1UL << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */
  13163. #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */
  13164. #define TIM_DIER_TIE_Pos (6U)
  13165. #define TIM_DIER_TIE_Msk (0x1UL << TIM_DIER_TIE_Pos) /*!< 0x00000040 */
  13166. #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */
  13167. #define TIM_DIER_BIE_Pos (7U)
  13168. #define TIM_DIER_BIE_Msk (0x1UL << TIM_DIER_BIE_Pos) /*!< 0x00000080 */
  13169. #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */
  13170. #define TIM_DIER_UDE_Pos (8U)
  13171. #define TIM_DIER_UDE_Msk (0x1UL << TIM_DIER_UDE_Pos) /*!< 0x00000100 */
  13172. #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */
  13173. #define TIM_DIER_CC1DE_Pos (9U)
  13174. #define TIM_DIER_CC1DE_Msk (0x1UL << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */
  13175. #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */
  13176. #define TIM_DIER_CC2DE_Pos (10U)
  13177. #define TIM_DIER_CC2DE_Msk (0x1UL << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */
  13178. #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */
  13179. #define TIM_DIER_CC3DE_Pos (11U)
  13180. #define TIM_DIER_CC3DE_Msk (0x1UL << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */
  13181. #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */
  13182. #define TIM_DIER_CC4DE_Pos (12U)
  13183. #define TIM_DIER_CC4DE_Msk (0x1UL << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */
  13184. #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */
  13185. #define TIM_DIER_COMDE_Pos (13U)
  13186. #define TIM_DIER_COMDE_Msk (0x1UL << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */
  13187. #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */
  13188. #define TIM_DIER_TDE_Pos (14U)
  13189. #define TIM_DIER_TDE_Msk (0x1UL << TIM_DIER_TDE_Pos) /*!< 0x00004000 */
  13190. #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */
  13191. /******************** Bit definition for TIM_SR register ********************/
  13192. #define TIM_SR_UIF_Pos (0U)
  13193. #define TIM_SR_UIF_Msk (0x1UL << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  13194. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  13195. #define TIM_SR_CC1IF_Pos (1U)
  13196. #define TIM_SR_CC1IF_Msk (0x1UL << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  13197. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  13198. #define TIM_SR_CC2IF_Pos (2U)
  13199. #define TIM_SR_CC2IF_Msk (0x1UL << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  13200. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  13201. #define TIM_SR_CC3IF_Pos (3U)
  13202. #define TIM_SR_CC3IF_Msk (0x1UL << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  13203. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  13204. #define TIM_SR_CC4IF_Pos (4U)
  13205. #define TIM_SR_CC4IF_Msk (0x1UL << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  13206. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  13207. #define TIM_SR_COMIF_Pos (5U)
  13208. #define TIM_SR_COMIF_Msk (0x1UL << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  13209. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  13210. #define TIM_SR_TIF_Pos (6U)
  13211. #define TIM_SR_TIF_Msk (0x1UL << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  13212. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  13213. #define TIM_SR_BIF_Pos (7U)
  13214. #define TIM_SR_BIF_Msk (0x1UL << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  13215. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  13216. #define TIM_SR_B2IF_Pos (8U)
  13217. #define TIM_SR_B2IF_Msk (0x1UL << TIM_SR_B2IF_Pos) /*!< 0x00000100 */
  13218. #define TIM_SR_B2IF TIM_SR_B2IF_Msk /*!<Break 2 interrupt Flag */
  13219. #define TIM_SR_CC1OF_Pos (9U)
  13220. #define TIM_SR_CC1OF_Msk (0x1UL << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  13221. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  13222. #define TIM_SR_CC2OF_Pos (10U)
  13223. #define TIM_SR_CC2OF_Msk (0x1UL << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  13224. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  13225. #define TIM_SR_CC3OF_Pos (11U)
  13226. #define TIM_SR_CC3OF_Msk (0x1UL << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  13227. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  13228. #define TIM_SR_CC4OF_Pos (12U)
  13229. #define TIM_SR_CC4OF_Msk (0x1UL << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  13230. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  13231. #define TIM_SR_SBIF_Pos (13U)
  13232. #define TIM_SR_SBIF_Msk (0x1UL << TIM_SR_SBIF_Pos) /*!< 0x00002000 */
  13233. #define TIM_SR_SBIF TIM_SR_SBIF_Msk /*!<System Break interrupt Flag */
  13234. #define TIM_SR_CC5IF_Pos (16U)
  13235. #define TIM_SR_CC5IF_Msk (0x1UL << TIM_SR_CC5IF_Pos) /*!< 0x00010000 */
  13236. #define TIM_SR_CC5IF TIM_SR_CC5IF_Msk /*!<Capture/Compare 5 interrupt Flag */
  13237. #define TIM_SR_CC6IF_Pos (17U)
  13238. #define TIM_SR_CC6IF_Msk (0x1UL << TIM_SR_CC6IF_Pos) /*!< 0x00020000 */
  13239. #define TIM_SR_CC6IF TIM_SR_CC6IF_Msk /*!<Capture/Compare 6 interrupt Flag */
  13240. /******************* Bit definition for TIM_EGR register ********************/
  13241. #define TIM_EGR_UG_Pos (0U)
  13242. #define TIM_EGR_UG_Msk (0x1UL << TIM_EGR_UG_Pos) /*!< 0x00000001 */
  13243. #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */
  13244. #define TIM_EGR_CC1G_Pos (1U)
  13245. #define TIM_EGR_CC1G_Msk (0x1UL << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */
  13246. #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */
  13247. #define TIM_EGR_CC2G_Pos (2U)
  13248. #define TIM_EGR_CC2G_Msk (0x1UL << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */
  13249. #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */
  13250. #define TIM_EGR_CC3G_Pos (3U)
  13251. #define TIM_EGR_CC3G_Msk (0x1UL << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */
  13252. #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */
  13253. #define TIM_EGR_CC4G_Pos (4U)
  13254. #define TIM_EGR_CC4G_Msk (0x1UL << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */
  13255. #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */
  13256. #define TIM_EGR_COMG_Pos (5U)
  13257. #define TIM_EGR_COMG_Msk (0x1UL << TIM_EGR_COMG_Pos) /*!< 0x00000020 */
  13258. #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */
  13259. #define TIM_EGR_TG_Pos (6U)
  13260. #define TIM_EGR_TG_Msk (0x1UL << TIM_EGR_TG_Pos) /*!< 0x00000040 */
  13261. #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */
  13262. #define TIM_EGR_BG_Pos (7U)
  13263. #define TIM_EGR_BG_Msk (0x1UL << TIM_EGR_BG_Pos) /*!< 0x00000080 */
  13264. #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */
  13265. #define TIM_EGR_B2G_Pos (8U)
  13266. #define TIM_EGR_B2G_Msk (0x1UL << TIM_EGR_B2G_Pos) /*!< 0x00000100 */
  13267. #define TIM_EGR_B2G TIM_EGR_B2G_Msk /*!<Break 2 Generation */
  13268. /****************** Bit definition for TIM_CCMR1 register *******************/
  13269. #define TIM_CCMR1_CC1S_Pos (0U)
  13270. #define TIM_CCMR1_CC1S_Msk (0x3UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  13271. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  13272. #define TIM_CCMR1_CC1S_0 (0x1UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  13273. #define TIM_CCMR1_CC1S_1 (0x2UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  13274. #define TIM_CCMR1_OC1FE_Pos (2U)
  13275. #define TIM_CCMR1_OC1FE_Msk (0x1UL << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  13276. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  13277. #define TIM_CCMR1_OC1PE_Pos (3U)
  13278. #define TIM_CCMR1_OC1PE_Msk (0x1UL << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  13279. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  13280. #define TIM_CCMR1_OC1M_Pos (4U)
  13281. #define TIM_CCMR1_OC1M_Msk (0x1007UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00010070 */
  13282. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  13283. #define TIM_CCMR1_OC1M_0 (0x0001UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */
  13284. #define TIM_CCMR1_OC1M_1 (0x0002UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */
  13285. #define TIM_CCMR1_OC1M_2 (0x0004UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */
  13286. #define TIM_CCMR1_OC1M_3 (0x1000UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00010000 */
  13287. #define TIM_CCMR1_OC1CE_Pos (7U)
  13288. #define TIM_CCMR1_OC1CE_Msk (0x1UL << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  13289. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1 Clear Enable */
  13290. #define TIM_CCMR1_CC2S_Pos (8U)
  13291. #define TIM_CCMR1_CC2S_Msk (0x3UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  13292. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  13293. #define TIM_CCMR1_CC2S_0 (0x1UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  13294. #define TIM_CCMR1_CC2S_1 (0x2UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  13295. #define TIM_CCMR1_OC2FE_Pos (10U)
  13296. #define TIM_CCMR1_OC2FE_Msk (0x1UL << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  13297. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  13298. #define TIM_CCMR1_OC2PE_Pos (11U)
  13299. #define TIM_CCMR1_OC2PE_Msk (0x1UL << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  13300. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  13301. #define TIM_CCMR1_OC2M_Pos (12U)
  13302. #define TIM_CCMR1_OC2M_Msk (0x1007UL << TIM_CCMR1_OC2M_Pos) /*!< 0x01007000 */
  13303. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  13304. #define TIM_CCMR1_OC2M_0 (0x0001UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */
  13305. #define TIM_CCMR1_OC2M_1 (0x0002UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */
  13306. #define TIM_CCMR1_OC2M_2 (0x0004UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */
  13307. #define TIM_CCMR1_OC2M_3 (0x1000UL << TIM_CCMR1_OC2M_Pos) /*!< 0x01000000 */
  13308. #define TIM_CCMR1_OC2CE_Pos (15U)
  13309. #define TIM_CCMR1_OC2CE_Msk (0x1UL << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  13310. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  13311. /*----------------------------------------------------------------------------*/
  13312. #define TIM_CCMR1_IC1PSC_Pos (2U)
  13313. #define TIM_CCMR1_IC1PSC_Msk (0x3UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  13314. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  13315. #define TIM_CCMR1_IC1PSC_0 (0x1UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  13316. #define TIM_CCMR1_IC1PSC_1 (0x2UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  13317. #define TIM_CCMR1_IC1F_Pos (4U)
  13318. #define TIM_CCMR1_IC1F_Msk (0xFUL << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  13319. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  13320. #define TIM_CCMR1_IC1F_0 (0x1UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  13321. #define TIM_CCMR1_IC1F_1 (0x2UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  13322. #define TIM_CCMR1_IC1F_2 (0x4UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  13323. #define TIM_CCMR1_IC1F_3 (0x8UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  13324. #define TIM_CCMR1_IC2PSC_Pos (10U)
  13325. #define TIM_CCMR1_IC2PSC_Msk (0x3UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  13326. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  13327. #define TIM_CCMR1_IC2PSC_0 (0x1UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  13328. #define TIM_CCMR1_IC2PSC_1 (0x2UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  13329. #define TIM_CCMR1_IC2F_Pos (12U)
  13330. #define TIM_CCMR1_IC2F_Msk (0xFUL << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  13331. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  13332. #define TIM_CCMR1_IC2F_0 (0x1UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  13333. #define TIM_CCMR1_IC2F_1 (0x2UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  13334. #define TIM_CCMR1_IC2F_2 (0x4UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  13335. #define TIM_CCMR1_IC2F_3 (0x8UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  13336. /****************** Bit definition for TIM_CCMR2 register *******************/
  13337. #define TIM_CCMR2_CC3S_Pos (0U)
  13338. #define TIM_CCMR2_CC3S_Msk (0x3UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  13339. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  13340. #define TIM_CCMR2_CC3S_0 (0x1UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  13341. #define TIM_CCMR2_CC3S_1 (0x2UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  13342. #define TIM_CCMR2_OC3FE_Pos (2U)
  13343. #define TIM_CCMR2_OC3FE_Msk (0x1UL << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  13344. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  13345. #define TIM_CCMR2_OC3PE_Pos (3U)
  13346. #define TIM_CCMR2_OC3PE_Msk (0x1UL << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  13347. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  13348. #define TIM_CCMR2_OC3M_Pos (4U)
  13349. #define TIM_CCMR2_OC3M_Msk (0x1007UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00010070 */
  13350. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  13351. #define TIM_CCMR2_OC3M_0 (0x0001UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */
  13352. #define TIM_CCMR2_OC3M_1 (0x0002UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */
  13353. #define TIM_CCMR2_OC3M_2 (0x0004UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */
  13354. #define TIM_CCMR2_OC3M_3 (0x1000UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00010000 */
  13355. #define TIM_CCMR2_OC3CE_Pos (7U)
  13356. #define TIM_CCMR2_OC3CE_Msk (0x1UL << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  13357. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  13358. #define TIM_CCMR2_CC4S_Pos (8U)
  13359. #define TIM_CCMR2_CC4S_Msk (0x3UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  13360. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  13361. #define TIM_CCMR2_CC4S_0 (0x1UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  13362. #define TIM_CCMR2_CC4S_1 (0x2UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  13363. #define TIM_CCMR2_OC4FE_Pos (10U)
  13364. #define TIM_CCMR2_OC4FE_Msk (0x1UL << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  13365. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  13366. #define TIM_CCMR2_OC4PE_Pos (11U)
  13367. #define TIM_CCMR2_OC4PE_Msk (0x1UL << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  13368. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  13369. #define TIM_CCMR2_OC4M_Pos (12U)
  13370. #define TIM_CCMR2_OC4M_Msk (0x1007UL << TIM_CCMR2_OC4M_Pos) /*!< 0x01007000 */
  13371. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  13372. #define TIM_CCMR2_OC4M_0 (0x0001UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */
  13373. #define TIM_CCMR2_OC4M_1 (0x0002UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */
  13374. #define TIM_CCMR2_OC4M_2 (0x0004UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */
  13375. #define TIM_CCMR2_OC4M_3 (0x1000UL << TIM_CCMR2_OC4M_Pos) /*!< 0x01000000 */
  13376. #define TIM_CCMR2_OC4CE_Pos (15U)
  13377. #define TIM_CCMR2_OC4CE_Msk (0x1UL << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  13378. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  13379. /*----------------------------------------------------------------------------*/
  13380. #define TIM_CCMR2_IC3PSC_Pos (2U)
  13381. #define TIM_CCMR2_IC3PSC_Msk (0x3UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */
  13382. #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  13383. #define TIM_CCMR2_IC3PSC_0 (0x1UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */
  13384. #define TIM_CCMR2_IC3PSC_1 (0x2UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */
  13385. #define TIM_CCMR2_IC3F_Pos (4U)
  13386. #define TIM_CCMR2_IC3F_Msk (0xFUL << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */
  13387. #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  13388. #define TIM_CCMR2_IC3F_0 (0x1UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */
  13389. #define TIM_CCMR2_IC3F_1 (0x2UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */
  13390. #define TIM_CCMR2_IC3F_2 (0x4UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */
  13391. #define TIM_CCMR2_IC3F_3 (0x8UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */
  13392. #define TIM_CCMR2_IC4PSC_Pos (10U)
  13393. #define TIM_CCMR2_IC4PSC_Msk (0x3UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */
  13394. #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  13395. #define TIM_CCMR2_IC4PSC_0 (0x1UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */
  13396. #define TIM_CCMR2_IC4PSC_1 (0x2UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */
  13397. #define TIM_CCMR2_IC4F_Pos (12U)
  13398. #define TIM_CCMR2_IC4F_Msk (0xFUL << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */
  13399. #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  13400. #define TIM_CCMR2_IC4F_0 (0x1UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */
  13401. #define TIM_CCMR2_IC4F_1 (0x2UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */
  13402. #define TIM_CCMR2_IC4F_2 (0x4UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */
  13403. #define TIM_CCMR2_IC4F_3 (0x8UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */
  13404. /****************** Bit definition for TIM_CCMR3 register *******************/
  13405. #define TIM_CCMR3_OC5FE_Pos (2U)
  13406. #define TIM_CCMR3_OC5FE_Msk (0x1UL << TIM_CCMR3_OC5FE_Pos) /*!< 0x00000004 */
  13407. #define TIM_CCMR3_OC5FE TIM_CCMR3_OC5FE_Msk /*!<Output Compare 5 Fast enable */
  13408. #define TIM_CCMR3_OC5PE_Pos (3U)
  13409. #define TIM_CCMR3_OC5PE_Msk (0x1UL << TIM_CCMR3_OC5PE_Pos) /*!< 0x00000008 */
  13410. #define TIM_CCMR3_OC5PE TIM_CCMR3_OC5PE_Msk /*!<Output Compare 5 Preload enable */
  13411. #define TIM_CCMR3_OC5M_Pos (4U)
  13412. #define TIM_CCMR3_OC5M_Msk (0x1007UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00010070 */
  13413. #define TIM_CCMR3_OC5M TIM_CCMR3_OC5M_Msk /*!<OC5M[3:0] bits (Output Compare 5 Mode) */
  13414. #define TIM_CCMR3_OC5M_0 (0x0001UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000010 */
  13415. #define TIM_CCMR3_OC5M_1 (0x0002UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000020 */
  13416. #define TIM_CCMR3_OC5M_2 (0x0004UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00000040 */
  13417. #define TIM_CCMR3_OC5M_3 (0x1000UL << TIM_CCMR3_OC5M_Pos) /*!< 0x00010000 */
  13418. #define TIM_CCMR3_OC5CE_Pos (7U)
  13419. #define TIM_CCMR3_OC5CE_Msk (0x1UL << TIM_CCMR3_OC5CE_Pos) /*!< 0x00000080 */
  13420. #define TIM_CCMR3_OC5CE TIM_CCMR3_OC5CE_Msk /*!<Output Compare 5 Clear Enable */
  13421. #define TIM_CCMR3_OC6FE_Pos (10U)
  13422. #define TIM_CCMR3_OC6FE_Msk (0x1UL << TIM_CCMR3_OC6FE_Pos) /*!< 0x00000400 */
  13423. #define TIM_CCMR3_OC6FE TIM_CCMR3_OC6FE_Msk /*!<Output Compare 6 Fast enable */
  13424. #define TIM_CCMR3_OC6PE_Pos (11U)
  13425. #define TIM_CCMR3_OC6PE_Msk (0x1UL << TIM_CCMR3_OC6PE_Pos) /*!< 0x00000800 */
  13426. #define TIM_CCMR3_OC6PE TIM_CCMR3_OC6PE_Msk /*!<Output Compare 6 Preload enable */
  13427. #define TIM_CCMR3_OC6M_Pos (12U)
  13428. #define TIM_CCMR3_OC6M_Msk (0x1007UL << TIM_CCMR3_OC6M_Pos) /*!< 0x01007000 */
  13429. #define TIM_CCMR3_OC6M TIM_CCMR3_OC6M_Msk /*!<OC6M[3:0] bits (Output Compare 6 Mode) */
  13430. #define TIM_CCMR3_OC6M_0 (0x0001UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00001000 */
  13431. #define TIM_CCMR3_OC6M_1 (0x0002UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00002000 */
  13432. #define TIM_CCMR3_OC6M_2 (0x0004UL << TIM_CCMR3_OC6M_Pos) /*!< 0x00004000 */
  13433. #define TIM_CCMR3_OC6M_3 (0x1000UL << TIM_CCMR3_OC6M_Pos) /*!< 0x01000000 */
  13434. #define TIM_CCMR3_OC6CE_Pos (15U)
  13435. #define TIM_CCMR3_OC6CE_Msk (0x1UL << TIM_CCMR3_OC6CE_Pos) /*!< 0x00008000 */
  13436. #define TIM_CCMR3_OC6CE TIM_CCMR3_OC6CE_Msk /*!<Output Compare 6 Clear Enable */
  13437. /******************* Bit definition for TIM_CCER register *******************/
  13438. #define TIM_CCER_CC1E_Pos (0U)
  13439. #define TIM_CCER_CC1E_Msk (0x1UL << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  13440. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  13441. #define TIM_CCER_CC1P_Pos (1U)
  13442. #define TIM_CCER_CC1P_Msk (0x1UL << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  13443. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  13444. #define TIM_CCER_CC1NE_Pos (2U)
  13445. #define TIM_CCER_CC1NE_Msk (0x1UL << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  13446. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  13447. #define TIM_CCER_CC1NP_Pos (3U)
  13448. #define TIM_CCER_CC1NP_Msk (0x1UL << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  13449. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  13450. #define TIM_CCER_CC2E_Pos (4U)
  13451. #define TIM_CCER_CC2E_Msk (0x1UL << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  13452. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  13453. #define TIM_CCER_CC2P_Pos (5U)
  13454. #define TIM_CCER_CC2P_Msk (0x1UL << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  13455. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  13456. #define TIM_CCER_CC2NE_Pos (6U)
  13457. #define TIM_CCER_CC2NE_Msk (0x1UL << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  13458. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  13459. #define TIM_CCER_CC2NP_Pos (7U)
  13460. #define TIM_CCER_CC2NP_Msk (0x1UL << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  13461. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  13462. #define TIM_CCER_CC3E_Pos (8U)
  13463. #define TIM_CCER_CC3E_Msk (0x1UL << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  13464. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  13465. #define TIM_CCER_CC3P_Pos (9U)
  13466. #define TIM_CCER_CC3P_Msk (0x1UL << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  13467. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  13468. #define TIM_CCER_CC3NE_Pos (10U)
  13469. #define TIM_CCER_CC3NE_Msk (0x1UL << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  13470. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  13471. #define TIM_CCER_CC3NP_Pos (11U)
  13472. #define TIM_CCER_CC3NP_Msk (0x1UL << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  13473. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  13474. #define TIM_CCER_CC4E_Pos (12U)
  13475. #define TIM_CCER_CC4E_Msk (0x1UL << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  13476. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  13477. #define TIM_CCER_CC4P_Pos (13U)
  13478. #define TIM_CCER_CC4P_Msk (0x1UL << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  13479. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  13480. #define TIM_CCER_CC4NP_Pos (15U)
  13481. #define TIM_CCER_CC4NP_Msk (0x1UL << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  13482. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  13483. #define TIM_CCER_CC5E_Pos (16U)
  13484. #define TIM_CCER_CC5E_Msk (0x1UL << TIM_CCER_CC5E_Pos) /*!< 0x00010000 */
  13485. #define TIM_CCER_CC5E TIM_CCER_CC5E_Msk /*!<Capture/Compare 5 output enable */
  13486. #define TIM_CCER_CC5P_Pos (17U)
  13487. #define TIM_CCER_CC5P_Msk (0x1UL << TIM_CCER_CC5P_Pos) /*!< 0x00020000 */
  13488. #define TIM_CCER_CC5P TIM_CCER_CC5P_Msk /*!<Capture/Compare 5 output Polarity */
  13489. #define TIM_CCER_CC6E_Pos (20U)
  13490. #define TIM_CCER_CC6E_Msk (0x1UL << TIM_CCER_CC6E_Pos) /*!< 0x00100000 */
  13491. #define TIM_CCER_CC6E TIM_CCER_CC6E_Msk /*!<Capture/Compare 6 output enable */
  13492. #define TIM_CCER_CC6P_Pos (21U)
  13493. #define TIM_CCER_CC6P_Msk (0x1UL << TIM_CCER_CC6P_Pos) /*!< 0x00200000 */
  13494. #define TIM_CCER_CC6P TIM_CCER_CC6P_Msk /*!<Capture/Compare 6 output Polarity */
  13495. /******************* Bit definition for TIM_CNT register ********************/
  13496. #define TIM_CNT_CNT_Pos (0U)
  13497. #define TIM_CNT_CNT_Msk (0xFFFFFFFFUL << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  13498. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  13499. #define TIM_CNT_UIFCPY_Pos (31U)
  13500. #define TIM_CNT_UIFCPY_Msk (0x1UL << TIM_CNT_UIFCPY_Pos) /*!< 0x80000000 */
  13501. #define TIM_CNT_UIFCPY TIM_CNT_UIFCPY_Msk /*!<Update interrupt flag copy (if UIFREMAP=1) */
  13502. /******************* Bit definition for TIM_PSC register ********************/
  13503. #define TIM_PSC_PSC_Pos (0U)
  13504. #define TIM_PSC_PSC_Msk (0xFFFFUL << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */
  13505. #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */
  13506. /******************* Bit definition for TIM_ARR register ********************/
  13507. #define TIM_ARR_ARR_Pos (0U)
  13508. #define TIM_ARR_ARR_Msk (0xFFFFFFFFUL << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  13509. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<Actual auto-reload Value */
  13510. /******************* Bit definition for TIM_RCR register ********************/
  13511. #define TIM_RCR_REP_Pos (0U)
  13512. #define TIM_RCR_REP_Msk (0xFFFFUL << TIM_RCR_REP_Pos) /*!< 0x0000FFFF */
  13513. #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */
  13514. /******************* Bit definition for TIM_CCR1 register *******************/
  13515. #define TIM_CCR1_CCR1_Pos (0U)
  13516. #define TIM_CCR1_CCR1_Msk (0xFFFFUL << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */
  13517. #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */
  13518. /******************* Bit definition for TIM_CCR2 register *******************/
  13519. #define TIM_CCR2_CCR2_Pos (0U)
  13520. #define TIM_CCR2_CCR2_Msk (0xFFFFUL << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */
  13521. #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */
  13522. /******************* Bit definition for TIM_CCR3 register *******************/
  13523. #define TIM_CCR3_CCR3_Pos (0U)
  13524. #define TIM_CCR3_CCR3_Msk (0xFFFFUL << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */
  13525. #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */
  13526. /******************* Bit definition for TIM_CCR4 register *******************/
  13527. #define TIM_CCR4_CCR4_Pos (0U)
  13528. #define TIM_CCR4_CCR4_Msk (0xFFFFUL << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */
  13529. #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */
  13530. /******************* Bit definition for TIM_CCR5 register *******************/
  13531. #define TIM_CCR5_CCR5_Pos (0U)
  13532. #define TIM_CCR5_CCR5_Msk (0xFFFFFFFFUL << TIM_CCR5_CCR5_Pos) /*!< 0xFFFFFFFF */
  13533. #define TIM_CCR5_CCR5 TIM_CCR5_CCR5_Msk /*!<Capture/Compare 5 Value */
  13534. #define TIM_CCR5_GC5C1_Pos (29U)
  13535. #define TIM_CCR5_GC5C1_Msk (0x1UL << TIM_CCR5_GC5C1_Pos) /*!< 0x20000000 */
  13536. #define TIM_CCR5_GC5C1 TIM_CCR5_GC5C1_Msk /*!<Group Channel 5 and Channel 1 */
  13537. #define TIM_CCR5_GC5C2_Pos (30U)
  13538. #define TIM_CCR5_GC5C2_Msk (0x1UL << TIM_CCR5_GC5C2_Pos) /*!< 0x40000000 */
  13539. #define TIM_CCR5_GC5C2 TIM_CCR5_GC5C2_Msk /*!<Group Channel 5 and Channel 2 */
  13540. #define TIM_CCR5_GC5C3_Pos (31U)
  13541. #define TIM_CCR5_GC5C3_Msk (0x1UL << TIM_CCR5_GC5C3_Pos) /*!< 0x80000000 */
  13542. #define TIM_CCR5_GC5C3 TIM_CCR5_GC5C3_Msk /*!<Group Channel 5 and Channel 3 */
  13543. /******************* Bit definition for TIM_CCR6 register *******************/
  13544. #define TIM_CCR6_CCR6_Pos (0U)
  13545. #define TIM_CCR6_CCR6_Msk (0xFFFFUL << TIM_CCR6_CCR6_Pos) /*!< 0x0000FFFF */
  13546. #define TIM_CCR6_CCR6 TIM_CCR6_CCR6_Msk /*!<Capture/Compare 6 Value */
  13547. /******************* Bit definition for TIM_BDTR register *******************/
  13548. #define TIM_BDTR_DTG_Pos (0U)
  13549. #define TIM_BDTR_DTG_Msk (0xFFUL << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  13550. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  13551. #define TIM_BDTR_DTG_0 (0x01UL << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  13552. #define TIM_BDTR_DTG_1 (0x02UL << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  13553. #define TIM_BDTR_DTG_2 (0x04UL << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  13554. #define TIM_BDTR_DTG_3 (0x08UL << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  13555. #define TIM_BDTR_DTG_4 (0x10UL << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  13556. #define TIM_BDTR_DTG_5 (0x20UL << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  13557. #define TIM_BDTR_DTG_6 (0x40UL << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  13558. #define TIM_BDTR_DTG_7 (0x80UL << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  13559. #define TIM_BDTR_LOCK_Pos (8U)
  13560. #define TIM_BDTR_LOCK_Msk (0x3UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  13561. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  13562. #define TIM_BDTR_LOCK_0 (0x1UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  13563. #define TIM_BDTR_LOCK_1 (0x2UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  13564. #define TIM_BDTR_OSSI_Pos (10U)
  13565. #define TIM_BDTR_OSSI_Msk (0x1UL << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  13566. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  13567. #define TIM_BDTR_OSSR_Pos (11U)
  13568. #define TIM_BDTR_OSSR_Msk (0x1UL << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  13569. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  13570. #define TIM_BDTR_BKE_Pos (12U)
  13571. #define TIM_BDTR_BKE_Msk (0x1UL << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  13572. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break 1 */
  13573. #define TIM_BDTR_BKP_Pos (13U)
  13574. #define TIM_BDTR_BKP_Msk (0x1UL << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  13575. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break 1 */
  13576. #define TIM_BDTR_AOE_Pos (14U)
  13577. #define TIM_BDTR_AOE_Msk (0x1UL << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  13578. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  13579. #define TIM_BDTR_MOE_Pos (15U)
  13580. #define TIM_BDTR_MOE_Msk (0x1UL << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  13581. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  13582. #define TIM_BDTR_BKF_Pos (16U)
  13583. #define TIM_BDTR_BKF_Msk (0xFUL << TIM_BDTR_BKF_Pos) /*!< 0x000F0000 */
  13584. #define TIM_BDTR_BKF TIM_BDTR_BKF_Msk /*!<Break Filter for Break 1 */
  13585. #define TIM_BDTR_BK2F_Pos (20U)
  13586. #define TIM_BDTR_BK2F_Msk (0xFUL << TIM_BDTR_BK2F_Pos) /*!< 0x00F00000 */
  13587. #define TIM_BDTR_BK2F TIM_BDTR_BK2F_Msk /*!<Break Filter for Break 2 */
  13588. #define TIM_BDTR_BK2E_Pos (24U)
  13589. #define TIM_BDTR_BK2E_Msk (0x1UL << TIM_BDTR_BK2E_Pos) /*!< 0x01000000 */
  13590. #define TIM_BDTR_BK2E TIM_BDTR_BK2E_Msk /*!<Break enable for Break 2 */
  13591. #define TIM_BDTR_BK2P_Pos (25U)
  13592. #define TIM_BDTR_BK2P_Msk (0x1UL << TIM_BDTR_BK2P_Pos) /*!< 0x02000000 */
  13593. #define TIM_BDTR_BK2P TIM_BDTR_BK2P_Msk /*!<Break Polarity for Break 2 */
  13594. #define TIM_BDTR_BKDSRM_Pos (26U)
  13595. #define TIM_BDTR_BKDSRM_Msk (0x1UL << TIM_BDTR_BKDSRM_Pos) /*!< 0x04000000 */
  13596. #define TIM_BDTR_BKDSRM TIM_BDTR_BKDSRM_Msk /*!<Break disarming/re-arming */
  13597. #define TIM_BDTR_BK2DSRM_Pos (27U)
  13598. #define TIM_BDTR_BK2DSRM_Msk (0x1UL << TIM_BDTR_BK2DSRM_Pos) /*!< 0x08000000 */
  13599. #define TIM_BDTR_BK2DSRM TIM_BDTR_BK2DSRM_Msk /*!<Break2 disarming/re-arming */
  13600. #define TIM_BDTR_BKBID_Pos (28U)
  13601. #define TIM_BDTR_BKBID_Msk (0x1UL << TIM_BDTR_BKBID_Pos) /*!< 0x10000000 */
  13602. #define TIM_BDTR_BKBID TIM_BDTR_BKBID_Msk /*!<Break BIDirectional */
  13603. #define TIM_BDTR_BK2BID_Pos (29U)
  13604. #define TIM_BDTR_BK2BID_Msk (0x1UL << TIM_BDTR_BK2BID_Pos) /*!< 0x20000000 */
  13605. #define TIM_BDTR_BK2BID TIM_BDTR_BK2BID_Msk /*!<Break2 BIDirectional */
  13606. /******************* Bit definition for TIM_DCR register ********************/
  13607. #define TIM_DCR_DBA_Pos (0U)
  13608. #define TIM_DCR_DBA_Msk (0x1FUL << TIM_DCR_DBA_Pos) /*!< 0x0000001F */
  13609. #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */
  13610. #define TIM_DCR_DBA_0 (0x01UL << TIM_DCR_DBA_Pos) /*!< 0x00000001 */
  13611. #define TIM_DCR_DBA_1 (0x02UL << TIM_DCR_DBA_Pos) /*!< 0x00000002 */
  13612. #define TIM_DCR_DBA_2 (0x04UL << TIM_DCR_DBA_Pos) /*!< 0x00000004 */
  13613. #define TIM_DCR_DBA_3 (0x08UL << TIM_DCR_DBA_Pos) /*!< 0x00000008 */
  13614. #define TIM_DCR_DBA_4 (0x10UL << TIM_DCR_DBA_Pos) /*!< 0x00000010 */
  13615. #define TIM_DCR_DBL_Pos (8U)
  13616. #define TIM_DCR_DBL_Msk (0x1FUL << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */
  13617. #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */
  13618. #define TIM_DCR_DBL_0 (0x01UL << TIM_DCR_DBL_Pos) /*!< 0x00000100 */
  13619. #define TIM_DCR_DBL_1 (0x02UL << TIM_DCR_DBL_Pos) /*!< 0x00000200 */
  13620. #define TIM_DCR_DBL_2 (0x04UL << TIM_DCR_DBL_Pos) /*!< 0x00000400 */
  13621. #define TIM_DCR_DBL_3 (0x08UL << TIM_DCR_DBL_Pos) /*!< 0x00000800 */
  13622. #define TIM_DCR_DBL_4 (0x10UL << TIM_DCR_DBL_Pos) /*!< 0x00001000 */
  13623. /******************* Bit definition for TIM_DMAR register *******************/
  13624. #define TIM_DMAR_DMAB_Pos (0U)
  13625. #define TIM_DMAR_DMAB_Msk (0xFFFFUL << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */
  13626. #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */
  13627. /******************* Bit definition for TIM1_OR1 register *******************/
  13628. #define TIM1_OR1_ETR_ADC1_RMP_Pos (0U)
  13629. #define TIM1_OR1_ETR_ADC1_RMP_Msk (0x3UL << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000003 */
  13630. #define TIM1_OR1_ETR_ADC1_RMP TIM1_OR1_ETR_ADC1_RMP_Msk /*!<ETR_ADC1_RMP[1:0] bits (TIM1 ETR remap on ADC1) */
  13631. #define TIM1_OR1_ETR_ADC1_RMP_0 (0x1UL << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000001 */
  13632. #define TIM1_OR1_ETR_ADC1_RMP_1 (0x2UL << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000002 */
  13633. #define TIM1_OR1_TI1_RMP_Pos (4U)
  13634. #define TIM1_OR1_TI1_RMP_Msk (0x1UL << TIM1_OR1_TI1_RMP_Pos) /*!< 0x00000010 */
  13635. #define TIM1_OR1_TI1_RMP TIM1_OR1_TI1_RMP_Msk /*!<TIM1 Input Capture 1 remap */
  13636. /******************* Bit definition for TIM1_OR2 register *******************/
  13637. #define TIM1_OR2_BKINE_Pos (0U)
  13638. #define TIM1_OR2_BKINE_Msk (0x1UL << TIM1_OR2_BKINE_Pos) /*!< 0x00000001 */
  13639. #define TIM1_OR2_BKINE TIM1_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  13640. #define TIM1_OR2_BKCMP1E_Pos (1U)
  13641. #define TIM1_OR2_BKCMP1E_Msk (0x1UL << TIM1_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  13642. #define TIM1_OR2_BKCMP1E TIM1_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  13643. #define TIM1_OR2_BKCMP2E_Pos (2U)
  13644. #define TIM1_OR2_BKCMP2E_Msk (0x1UL << TIM1_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  13645. #define TIM1_OR2_BKCMP2E TIM1_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  13646. #define TIM1_OR2_BKDF1BK0E_Pos (8U)
  13647. #define TIM1_OR2_BKDF1BK0E_Msk (0x1UL << TIM1_OR2_BKDF1BK0E_Pos) /*!< 0x00000100 */
  13648. #define TIM1_OR2_BKDF1BK0E TIM1_OR2_BKDF1BK0E_Msk /*!<BRK DFSDM1_BREAK[0] enable */
  13649. #define TIM1_OR2_BKINP_Pos (9U)
  13650. #define TIM1_OR2_BKINP_Msk (0x1UL << TIM1_OR2_BKINP_Pos) /*!< 0x00000200 */
  13651. #define TIM1_OR2_BKINP TIM1_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  13652. #define TIM1_OR2_BKCMP1P_Pos (10U)
  13653. #define TIM1_OR2_BKCMP1P_Msk (0x1UL << TIM1_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  13654. #define TIM1_OR2_BKCMP1P TIM1_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  13655. #define TIM1_OR2_BKCMP2P_Pos (11U)
  13656. #define TIM1_OR2_BKCMP2P_Msk (0x1UL << TIM1_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  13657. #define TIM1_OR2_BKCMP2P TIM1_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  13658. #define TIM1_OR2_ETRSEL_Pos (14U)
  13659. #define TIM1_OR2_ETRSEL_Msk (0x7UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  13660. #define TIM1_OR2_ETRSEL TIM1_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM1 ETR source selection) */
  13661. #define TIM1_OR2_ETRSEL_0 (0x1UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  13662. #define TIM1_OR2_ETRSEL_1 (0x2UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  13663. #define TIM1_OR2_ETRSEL_2 (0x4UL << TIM1_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  13664. /******************* Bit definition for TIM1_OR3 register *******************/
  13665. #define TIM1_OR3_BK2INE_Pos (0U)
  13666. #define TIM1_OR3_BK2INE_Msk (0x1UL << TIM1_OR3_BK2INE_Pos) /*!< 0x00000001 */
  13667. #define TIM1_OR3_BK2INE TIM1_OR3_BK2INE_Msk /*!<BRK2 BKIN2 input enable */
  13668. #define TIM1_OR3_BK2CMP1E_Pos (1U)
  13669. #define TIM1_OR3_BK2CMP1E_Msk (0x1UL << TIM1_OR3_BK2CMP1E_Pos) /*!< 0x00000002 */
  13670. #define TIM1_OR3_BK2CMP1E TIM1_OR3_BK2CMP1E_Msk /*!<BRK2 COMP1 enable */
  13671. #define TIM1_OR3_BK2CMP2E_Pos (2U)
  13672. #define TIM1_OR3_BK2CMP2E_Msk (0x1UL << TIM1_OR3_BK2CMP2E_Pos) /*!< 0x00000004 */
  13673. #define TIM1_OR3_BK2CMP2E TIM1_OR3_BK2CMP2E_Msk /*!<BRK2 COMP2 enable */
  13674. #define TIM1_OR3_BK2DF1BK1E_Pos (8U)
  13675. #define TIM1_OR3_BK2DF1BK1E_Msk (0x1UL << TIM1_OR3_BK2DF1BK1E_Pos) /*!< 0x00000100 */
  13676. #define TIM1_OR3_BK2DF1BK1E TIM1_OR3_BK2DF1BK1E_Msk /*!<BRK2 DFSDM1_BREAK[1] enable */
  13677. #define TIM1_OR3_BK2INP_Pos (9U)
  13678. #define TIM1_OR3_BK2INP_Msk (0x1UL << TIM1_OR3_BK2INP_Pos) /*!< 0x00000200 */
  13679. #define TIM1_OR3_BK2INP TIM1_OR3_BK2INP_Msk /*!<BRK2 BKIN2 input polarity */
  13680. #define TIM1_OR3_BK2CMP1P_Pos (10U)
  13681. #define TIM1_OR3_BK2CMP1P_Msk (0x1UL << TIM1_OR3_BK2CMP1P_Pos) /*!< 0x00000400 */
  13682. #define TIM1_OR3_BK2CMP1P TIM1_OR3_BK2CMP1P_Msk /*!<BRK2 COMP1 input polarity */
  13683. #define TIM1_OR3_BK2CMP2P_Pos (11U)
  13684. #define TIM1_OR3_BK2CMP2P_Msk (0x1UL << TIM1_OR3_BK2CMP2P_Pos) /*!< 0x00000800 */
  13685. #define TIM1_OR3_BK2CMP2P TIM1_OR3_BK2CMP2P_Msk /*!<BRK2 COMP2 input polarity */
  13686. /******************* Bit definition for TIM8_OR1 register *******************/
  13687. #define TIM8_OR1_TI1_RMP_Pos (4U)
  13688. #define TIM8_OR1_TI1_RMP_Msk (0x1UL << TIM8_OR1_TI1_RMP_Pos) /*!< 0x00000010 */
  13689. #define TIM8_OR1_TI1_RMP TIM8_OR1_TI1_RMP_Msk /*!<TIM8 Input Capture 1 remap */
  13690. /******************* Bit definition for TIM8_OR2 register *******************/
  13691. #define TIM8_OR2_BKINE_Pos (0U)
  13692. #define TIM8_OR2_BKINE_Msk (0x1UL << TIM8_OR2_BKINE_Pos) /*!< 0x00000001 */
  13693. #define TIM8_OR2_BKINE TIM8_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  13694. #define TIM8_OR2_BKCMP1E_Pos (1U)
  13695. #define TIM8_OR2_BKCMP1E_Msk (0x1UL << TIM8_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  13696. #define TIM8_OR2_BKCMP1E TIM8_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  13697. #define TIM8_OR2_BKCMP2E_Pos (2U)
  13698. #define TIM8_OR2_BKCMP2E_Msk (0x1UL << TIM8_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  13699. #define TIM8_OR2_BKCMP2E TIM8_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  13700. #define TIM8_OR2_BKDF1BK2E_Pos (8U)
  13701. #define TIM8_OR2_BKDF1BK2E_Msk (0x1UL << TIM8_OR2_BKDF1BK2E_Pos) /*!< 0x00000100 */
  13702. #define TIM8_OR2_BKDF1BK2E TIM8_OR2_BKDF1BK2E_Msk /*!<BRK DFSDM1_BREAK[2] enable */
  13703. #define TIM8_OR2_BKINP_Pos (9U)
  13704. #define TIM8_OR2_BKINP_Msk (0x1UL << TIM8_OR2_BKINP_Pos) /*!< 0x00000200 */
  13705. #define TIM8_OR2_BKINP TIM8_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  13706. #define TIM8_OR2_BKCMP1P_Pos (10U)
  13707. #define TIM8_OR2_BKCMP1P_Msk (0x1UL << TIM8_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  13708. #define TIM8_OR2_BKCMP1P TIM8_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  13709. #define TIM8_OR2_BKCMP2P_Pos (11U)
  13710. #define TIM8_OR2_BKCMP2P_Msk (0x1UL << TIM8_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  13711. #define TIM8_OR2_BKCMP2P TIM8_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  13712. #define TIM8_OR2_ETRSEL_Pos (14U)
  13713. #define TIM8_OR2_ETRSEL_Msk (0x7UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  13714. #define TIM8_OR2_ETRSEL TIM8_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM8 ETR source selection) */
  13715. #define TIM8_OR2_ETRSEL_0 (0x1UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  13716. #define TIM8_OR2_ETRSEL_1 (0x2UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  13717. #define TIM8_OR2_ETRSEL_2 (0x4UL << TIM8_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  13718. /******************* Bit definition for TIM8_OR3 register *******************/
  13719. #define TIM8_OR3_BK2INE_Pos (0U)
  13720. #define TIM8_OR3_BK2INE_Msk (0x1UL << TIM8_OR3_BK2INE_Pos) /*!< 0x00000001 */
  13721. #define TIM8_OR3_BK2INE TIM8_OR3_BK2INE_Msk /*!<BRK2 BKIN2 input enable */
  13722. #define TIM8_OR3_BK2CMP1E_Pos (1U)
  13723. #define TIM8_OR3_BK2CMP1E_Msk (0x1UL << TIM8_OR3_BK2CMP1E_Pos) /*!< 0x00000002 */
  13724. #define TIM8_OR3_BK2CMP1E TIM8_OR3_BK2CMP1E_Msk /*!<BRK2 COMP1 enable */
  13725. #define TIM8_OR3_BK2CMP2E_Pos (2U)
  13726. #define TIM8_OR3_BK2CMP2E_Msk (0x1UL << TIM8_OR3_BK2CMP2E_Pos) /*!< 0x00000004 */
  13727. #define TIM8_OR3_BK2CMP2E TIM8_OR3_BK2CMP2E_Msk /*!<BRK2 COMP2 enable */
  13728. #define TIM8_OR3_BK2DF1BK3E_Pos (8U)
  13729. #define TIM8_OR3_BK2DF1BK3E_Msk (0x1UL << TIM8_OR3_BK2DF1BK3E_Pos) /*!< 0x00000100 */
  13730. #define TIM8_OR3_BK2DF1BK3E TIM8_OR3_BK2DF1BK3E_Msk /*!<BRK2 DFSDM1_BREAK[3] enable */
  13731. #define TIM8_OR3_BK2INP_Pos (9U)
  13732. #define TIM8_OR3_BK2INP_Msk (0x1UL << TIM8_OR3_BK2INP_Pos) /*!< 0x00000200 */
  13733. #define TIM8_OR3_BK2INP TIM8_OR3_BK2INP_Msk /*!<BRK2 BKIN2 input polarity */
  13734. #define TIM8_OR3_BK2CMP1P_Pos (10U)
  13735. #define TIM8_OR3_BK2CMP1P_Msk (0x1UL << TIM8_OR3_BK2CMP1P_Pos) /*!< 0x00000400 */
  13736. #define TIM8_OR3_BK2CMP1P TIM8_OR3_BK2CMP1P_Msk /*!<BRK2 COMP1 input polarity */
  13737. #define TIM8_OR3_BK2CMP2P_Pos (11U)
  13738. #define TIM8_OR3_BK2CMP2P_Msk (0x1UL << TIM8_OR3_BK2CMP2P_Pos) /*!< 0x00000800 */
  13739. #define TIM8_OR3_BK2CMP2P TIM8_OR3_BK2CMP2P_Msk /*!<BRK2 COMP2 input polarity */
  13740. /******************* Bit definition for TIM2_OR1 register *******************/
  13741. #define TIM2_OR1_ITR1_RMP_Pos (0U)
  13742. #define TIM2_OR1_ITR1_RMP_Msk (0x1UL << TIM2_OR1_ITR1_RMP_Pos) /*!< 0x00000001 */
  13743. #define TIM2_OR1_ITR1_RMP TIM2_OR1_ITR1_RMP_Msk /*!<TIM2 Internal trigger 1 remap */
  13744. #define TIM2_OR1_ETR1_RMP_Pos (1U)
  13745. #define TIM2_OR1_ETR1_RMP_Msk (0x1UL << TIM2_OR1_ETR1_RMP_Pos) /*!< 0x00000002 */
  13746. #define TIM2_OR1_ETR1_RMP TIM2_OR1_ETR1_RMP_Msk /*!<TIM2 External trigger 1 remap */
  13747. #define TIM2_OR1_TI4_RMP_Pos (2U)
  13748. #define TIM2_OR1_TI4_RMP_Msk (0x3UL << TIM2_OR1_TI4_RMP_Pos) /*!< 0x0000000C */
  13749. #define TIM2_OR1_TI4_RMP TIM2_OR1_TI4_RMP_Msk /*!<TI4_RMP[1:0] bits (TIM2 Input Capture 4 remap) */
  13750. #define TIM2_OR1_TI4_RMP_0 (0x1UL << TIM2_OR1_TI4_RMP_Pos) /*!< 0x00000004 */
  13751. #define TIM2_OR1_TI4_RMP_1 (0x2UL << TIM2_OR1_TI4_RMP_Pos) /*!< 0x00000008 */
  13752. /******************* Bit definition for TIM2_OR2 register *******************/
  13753. #define TIM2_OR2_ETRSEL_Pos (14U)
  13754. #define TIM2_OR2_ETRSEL_Msk (0x7UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  13755. #define TIM2_OR2_ETRSEL TIM2_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM2 ETR source selection) */
  13756. #define TIM2_OR2_ETRSEL_0 (0x1UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  13757. #define TIM2_OR2_ETRSEL_1 (0x2UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  13758. #define TIM2_OR2_ETRSEL_2 (0x4UL << TIM2_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  13759. /******************* Bit definition for TIM3_OR1 register *******************/
  13760. #define TIM3_OR1_TI1_RMP_Pos (0U)
  13761. #define TIM3_OR1_TI1_RMP_Msk (0x3UL << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000003 */
  13762. #define TIM3_OR1_TI1_RMP TIM3_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM3 Input Capture 1 remap) */
  13763. #define TIM3_OR1_TI1_RMP_0 (0x1UL << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  13764. #define TIM3_OR1_TI1_RMP_1 (0x2UL << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000002 */
  13765. /******************* Bit definition for TIM3_OR2 register *******************/
  13766. #define TIM3_OR2_ETRSEL_Pos (14U)
  13767. #define TIM3_OR2_ETRSEL_Msk (0x7UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x0001C000 */
  13768. #define TIM3_OR2_ETRSEL TIM3_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM3 ETR source selection) */
  13769. #define TIM3_OR2_ETRSEL_0 (0x1UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x00004000 */
  13770. #define TIM3_OR2_ETRSEL_1 (0x2UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x00008000 */
  13771. #define TIM3_OR2_ETRSEL_2 (0x4UL << TIM3_OR2_ETRSEL_Pos) /*!< 0x00010000 */
  13772. /******************* Bit definition for TIM15_OR1 register ******************/
  13773. #define TIM15_OR1_TI1_RMP_Pos (0U)
  13774. #define TIM15_OR1_TI1_RMP_Msk (0x1UL << TIM15_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  13775. #define TIM15_OR1_TI1_RMP TIM15_OR1_TI1_RMP_Msk /*!<TIM15 Input Capture 1 remap */
  13776. #define TIM15_OR1_ENCODER_MODE_Pos (1U)
  13777. #define TIM15_OR1_ENCODER_MODE_Msk (0x3UL << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000006 */
  13778. #define TIM15_OR1_ENCODER_MODE TIM15_OR1_ENCODER_MODE_Msk /*!<ENCODER_MODE[1:0] bits (TIM15 Encoder mode) */
  13779. #define TIM15_OR1_ENCODER_MODE_0 (0x1UL << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000002 */
  13780. #define TIM15_OR1_ENCODER_MODE_1 (0x2UL << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000004 */
  13781. /******************* Bit definition for TIM15_OR2 register ******************/
  13782. #define TIM15_OR2_BKINE_Pos (0U)
  13783. #define TIM15_OR2_BKINE_Msk (0x1UL << TIM15_OR2_BKINE_Pos) /*!< 0x00000001 */
  13784. #define TIM15_OR2_BKINE TIM15_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  13785. #define TIM15_OR2_BKCMP1E_Pos (1U)
  13786. #define TIM15_OR2_BKCMP1E_Msk (0x1UL << TIM15_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  13787. #define TIM15_OR2_BKCMP1E TIM15_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  13788. #define TIM15_OR2_BKCMP2E_Pos (2U)
  13789. #define TIM15_OR2_BKCMP2E_Msk (0x1UL << TIM15_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  13790. #define TIM15_OR2_BKCMP2E TIM15_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  13791. #define TIM15_OR2_BKDF1BK0E_Pos (8U)
  13792. #define TIM15_OR2_BKDF1BK0E_Msk (0x1UL << TIM15_OR2_BKDF1BK0E_Pos) /*!< 0x00000100 */
  13793. #define TIM15_OR2_BKDF1BK0E TIM15_OR2_BKDF1BK0E_Msk /*!<BRK DFSDM1_BREAK[0] enable */
  13794. #define TIM15_OR2_BKINP_Pos (9U)
  13795. #define TIM15_OR2_BKINP_Msk (0x1UL << TIM15_OR2_BKINP_Pos) /*!< 0x00000200 */
  13796. #define TIM15_OR2_BKINP TIM15_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  13797. #define TIM15_OR2_BKCMP1P_Pos (10U)
  13798. #define TIM15_OR2_BKCMP1P_Msk (0x1UL << TIM15_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  13799. #define TIM15_OR2_BKCMP1P TIM15_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  13800. #define TIM15_OR2_BKCMP2P_Pos (11U)
  13801. #define TIM15_OR2_BKCMP2P_Msk (0x1UL << TIM15_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  13802. #define TIM15_OR2_BKCMP2P TIM15_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  13803. /******************* Bit definition for TIM16_OR1 register ******************/
  13804. #define TIM16_OR1_TI1_RMP_Pos (0U)
  13805. #define TIM16_OR1_TI1_RMP_Msk (0x3UL << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000003 */
  13806. #define TIM16_OR1_TI1_RMP TIM16_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM16 Input Capture 1 remap) */
  13807. #define TIM16_OR1_TI1_RMP_0 (0x1UL << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  13808. #define TIM16_OR1_TI1_RMP_1 (0x2UL << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000002 */
  13809. /******************* Bit definition for TIM16_OR2 register ******************/
  13810. #define TIM16_OR2_BKINE_Pos (0U)
  13811. #define TIM16_OR2_BKINE_Msk (0x1UL << TIM16_OR2_BKINE_Pos) /*!< 0x00000001 */
  13812. #define TIM16_OR2_BKINE TIM16_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  13813. #define TIM16_OR2_BKCMP1E_Pos (1U)
  13814. #define TIM16_OR2_BKCMP1E_Msk (0x1UL << TIM16_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  13815. #define TIM16_OR2_BKCMP1E TIM16_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  13816. #define TIM16_OR2_BKCMP2E_Pos (2U)
  13817. #define TIM16_OR2_BKCMP2E_Msk (0x1UL << TIM16_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  13818. #define TIM16_OR2_BKCMP2E TIM16_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  13819. #define TIM16_OR2_BKDF1BK1E_Pos (8U)
  13820. #define TIM16_OR2_BKDF1BK1E_Msk (0x1UL << TIM16_OR2_BKDF1BK1E_Pos) /*!< 0x00000100 */
  13821. #define TIM16_OR2_BKDF1BK1E TIM16_OR2_BKDF1BK1E_Msk /*!<BRK DFSDM1_BREAK[1] enable */
  13822. #define TIM16_OR2_BKINP_Pos (9U)
  13823. #define TIM16_OR2_BKINP_Msk (0x1UL << TIM16_OR2_BKINP_Pos) /*!< 0x00000200 */
  13824. #define TIM16_OR2_BKINP TIM16_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  13825. #define TIM16_OR2_BKCMP1P_Pos (10U)
  13826. #define TIM16_OR2_BKCMP1P_Msk (0x1UL << TIM16_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  13827. #define TIM16_OR2_BKCMP1P TIM16_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  13828. #define TIM16_OR2_BKCMP2P_Pos (11U)
  13829. #define TIM16_OR2_BKCMP2P_Msk (0x1UL << TIM16_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  13830. #define TIM16_OR2_BKCMP2P TIM16_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  13831. /******************* Bit definition for TIM17_OR1 register ******************/
  13832. #define TIM17_OR1_TI1_RMP_Pos (0U)
  13833. #define TIM17_OR1_TI1_RMP_Msk (0x3UL << TIM17_OR1_TI1_RMP_Pos) /*!< 0x00000003 */
  13834. #define TIM17_OR1_TI1_RMP TIM17_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM17 Input Capture 1 remap) */
  13835. #define TIM17_OR1_TI1_RMP_0 (0x1UL << TIM17_OR1_TI1_RMP_Pos) /*!< 0x00000001 */
  13836. #define TIM17_OR1_TI1_RMP_1 (0x2UL << TIM17_OR1_TI1_RMP_Pos) /*!< 0x00000002 */
  13837. /******************* Bit definition for TIM17_OR2 register ******************/
  13838. #define TIM17_OR2_BKINE_Pos (0U)
  13839. #define TIM17_OR2_BKINE_Msk (0x1UL << TIM17_OR2_BKINE_Pos) /*!< 0x00000001 */
  13840. #define TIM17_OR2_BKINE TIM17_OR2_BKINE_Msk /*!<BRK BKIN input enable */
  13841. #define TIM17_OR2_BKCMP1E_Pos (1U)
  13842. #define TIM17_OR2_BKCMP1E_Msk (0x1UL << TIM17_OR2_BKCMP1E_Pos) /*!< 0x00000002 */
  13843. #define TIM17_OR2_BKCMP1E TIM17_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */
  13844. #define TIM17_OR2_BKCMP2E_Pos (2U)
  13845. #define TIM17_OR2_BKCMP2E_Msk (0x1UL << TIM17_OR2_BKCMP2E_Pos) /*!< 0x00000004 */
  13846. #define TIM17_OR2_BKCMP2E TIM17_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */
  13847. #define TIM17_OR2_BKDF1BK2E_Pos (8U)
  13848. #define TIM17_OR2_BKDF1BK2E_Msk (0x1UL << TIM17_OR2_BKDF1BK2E_Pos) /*!< 0x00000100 */
  13849. #define TIM17_OR2_BKDF1BK2E TIM17_OR2_BKDF1BK2E_Msk /*!<BRK DFSDM1_BREAK[2] enable */
  13850. #define TIM17_OR2_BKINP_Pos (9U)
  13851. #define TIM17_OR2_BKINP_Msk (0x1UL << TIM17_OR2_BKINP_Pos) /*!< 0x00000200 */
  13852. #define TIM17_OR2_BKINP TIM17_OR2_BKINP_Msk /*!<BRK BKIN input polarity */
  13853. #define TIM17_OR2_BKCMP1P_Pos (10U)
  13854. #define TIM17_OR2_BKCMP1P_Msk (0x1UL << TIM17_OR2_BKCMP1P_Pos) /*!< 0x00000400 */
  13855. #define TIM17_OR2_BKCMP1P TIM17_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */
  13856. #define TIM17_OR2_BKCMP2P_Pos (11U)
  13857. #define TIM17_OR2_BKCMP2P_Msk (0x1UL << TIM17_OR2_BKCMP2P_Pos) /*!< 0x00000800 */
  13858. #define TIM17_OR2_BKCMP2P TIM17_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */
  13859. /******************************************************************************/
  13860. /* */
  13861. /* Touch Sensing Controller (TSC) */
  13862. /* */
  13863. /******************************************************************************/
  13864. /******************* Bit definition for TSC_CR register *********************/
  13865. #define TSC_CR_TSCE_Pos (0U)
  13866. #define TSC_CR_TSCE_Msk (0x1UL << TSC_CR_TSCE_Pos) /*!< 0x00000001 */
  13867. #define TSC_CR_TSCE TSC_CR_TSCE_Msk /*!<Touch sensing controller enable */
  13868. #define TSC_CR_START_Pos (1U)
  13869. #define TSC_CR_START_Msk (0x1UL << TSC_CR_START_Pos) /*!< 0x00000002 */
  13870. #define TSC_CR_START TSC_CR_START_Msk /*!<Start acquisition */
  13871. #define TSC_CR_AM_Pos (2U)
  13872. #define TSC_CR_AM_Msk (0x1UL << TSC_CR_AM_Pos) /*!< 0x00000004 */
  13873. #define TSC_CR_AM TSC_CR_AM_Msk /*!<Acquisition mode */
  13874. #define TSC_CR_SYNCPOL_Pos (3U)
  13875. #define TSC_CR_SYNCPOL_Msk (0x1UL << TSC_CR_SYNCPOL_Pos) /*!< 0x00000008 */
  13876. #define TSC_CR_SYNCPOL TSC_CR_SYNCPOL_Msk /*!<Synchronization pin polarity */
  13877. #define TSC_CR_IODEF_Pos (4U)
  13878. #define TSC_CR_IODEF_Msk (0x1UL << TSC_CR_IODEF_Pos) /*!< 0x00000010 */
  13879. #define TSC_CR_IODEF TSC_CR_IODEF_Msk /*!<IO default mode */
  13880. #define TSC_CR_MCV_Pos (5U)
  13881. #define TSC_CR_MCV_Msk (0x7UL << TSC_CR_MCV_Pos) /*!< 0x000000E0 */
  13882. #define TSC_CR_MCV TSC_CR_MCV_Msk /*!<MCV[2:0] bits (Max Count Value) */
  13883. #define TSC_CR_MCV_0 (0x1UL << TSC_CR_MCV_Pos) /*!< 0x00000020 */
  13884. #define TSC_CR_MCV_1 (0x2UL << TSC_CR_MCV_Pos) /*!< 0x00000040 */
  13885. #define TSC_CR_MCV_2 (0x4UL << TSC_CR_MCV_Pos) /*!< 0x00000080 */
  13886. #define TSC_CR_PGPSC_Pos (12U)
  13887. #define TSC_CR_PGPSC_Msk (0x7UL << TSC_CR_PGPSC_Pos) /*!< 0x00007000 */
  13888. #define TSC_CR_PGPSC TSC_CR_PGPSC_Msk /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
  13889. #define TSC_CR_PGPSC_0 (0x1UL << TSC_CR_PGPSC_Pos) /*!< 0x00001000 */
  13890. #define TSC_CR_PGPSC_1 (0x2UL << TSC_CR_PGPSC_Pos) /*!< 0x00002000 */
  13891. #define TSC_CR_PGPSC_2 (0x4UL << TSC_CR_PGPSC_Pos) /*!< 0x00004000 */
  13892. #define TSC_CR_SSPSC_Pos (15U)
  13893. #define TSC_CR_SSPSC_Msk (0x1UL << TSC_CR_SSPSC_Pos) /*!< 0x00008000 */
  13894. #define TSC_CR_SSPSC TSC_CR_SSPSC_Msk /*!<Spread Spectrum Prescaler */
  13895. #define TSC_CR_SSE_Pos (16U)
  13896. #define TSC_CR_SSE_Msk (0x1UL << TSC_CR_SSE_Pos) /*!< 0x00010000 */
  13897. #define TSC_CR_SSE TSC_CR_SSE_Msk /*!<Spread Spectrum Enable */
  13898. #define TSC_CR_SSD_Pos (17U)
  13899. #define TSC_CR_SSD_Msk (0x7FUL << TSC_CR_SSD_Pos) /*!< 0x00FE0000 */
  13900. #define TSC_CR_SSD TSC_CR_SSD_Msk /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
  13901. #define TSC_CR_SSD_0 (0x01UL << TSC_CR_SSD_Pos) /*!< 0x00020000 */
  13902. #define TSC_CR_SSD_1 (0x02UL << TSC_CR_SSD_Pos) /*!< 0x00040000 */
  13903. #define TSC_CR_SSD_2 (0x04UL << TSC_CR_SSD_Pos) /*!< 0x00080000 */
  13904. #define TSC_CR_SSD_3 (0x08UL << TSC_CR_SSD_Pos) /*!< 0x00100000 */
  13905. #define TSC_CR_SSD_4 (0x10UL << TSC_CR_SSD_Pos) /*!< 0x00200000 */
  13906. #define TSC_CR_SSD_5 (0x20UL << TSC_CR_SSD_Pos) /*!< 0x00400000 */
  13907. #define TSC_CR_SSD_6 (0x40UL << TSC_CR_SSD_Pos) /*!< 0x00800000 */
  13908. #define TSC_CR_CTPL_Pos (24U)
  13909. #define TSC_CR_CTPL_Msk (0xFUL << TSC_CR_CTPL_Pos) /*!< 0x0F000000 */
  13910. #define TSC_CR_CTPL TSC_CR_CTPL_Msk /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
  13911. #define TSC_CR_CTPL_0 (0x1UL << TSC_CR_CTPL_Pos) /*!< 0x01000000 */
  13912. #define TSC_CR_CTPL_1 (0x2UL << TSC_CR_CTPL_Pos) /*!< 0x02000000 */
  13913. #define TSC_CR_CTPL_2 (0x4UL << TSC_CR_CTPL_Pos) /*!< 0x04000000 */
  13914. #define TSC_CR_CTPL_3 (0x8UL << TSC_CR_CTPL_Pos) /*!< 0x08000000 */
  13915. #define TSC_CR_CTPH_Pos (28U)
  13916. #define TSC_CR_CTPH_Msk (0xFUL << TSC_CR_CTPH_Pos) /*!< 0xF0000000 */
  13917. #define TSC_CR_CTPH TSC_CR_CTPH_Msk /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
  13918. #define TSC_CR_CTPH_0 (0x1UL << TSC_CR_CTPH_Pos) /*!< 0x10000000 */
  13919. #define TSC_CR_CTPH_1 (0x2UL << TSC_CR_CTPH_Pos) /*!< 0x20000000 */
  13920. #define TSC_CR_CTPH_2 (0x4UL << TSC_CR_CTPH_Pos) /*!< 0x40000000 */
  13921. #define TSC_CR_CTPH_3 (0x8UL << TSC_CR_CTPH_Pos) /*!< 0x80000000 */
  13922. /******************* Bit definition for TSC_IER register ********************/
  13923. #define TSC_IER_EOAIE_Pos (0U)
  13924. #define TSC_IER_EOAIE_Msk (0x1UL << TSC_IER_EOAIE_Pos) /*!< 0x00000001 */
  13925. #define TSC_IER_EOAIE TSC_IER_EOAIE_Msk /*!<End of acquisition interrupt enable */
  13926. #define TSC_IER_MCEIE_Pos (1U)
  13927. #define TSC_IER_MCEIE_Msk (0x1UL << TSC_IER_MCEIE_Pos) /*!< 0x00000002 */
  13928. #define TSC_IER_MCEIE TSC_IER_MCEIE_Msk /*!<Max count error interrupt enable */
  13929. /******************* Bit definition for TSC_ICR register ********************/
  13930. #define TSC_ICR_EOAIC_Pos (0U)
  13931. #define TSC_ICR_EOAIC_Msk (0x1UL << TSC_ICR_EOAIC_Pos) /*!< 0x00000001 */
  13932. #define TSC_ICR_EOAIC TSC_ICR_EOAIC_Msk /*!<End of acquisition interrupt clear */
  13933. #define TSC_ICR_MCEIC_Pos (1U)
  13934. #define TSC_ICR_MCEIC_Msk (0x1UL << TSC_ICR_MCEIC_Pos) /*!< 0x00000002 */
  13935. #define TSC_ICR_MCEIC TSC_ICR_MCEIC_Msk /*!<Max count error interrupt clear */
  13936. /******************* Bit definition for TSC_ISR register ********************/
  13937. #define TSC_ISR_EOAF_Pos (0U)
  13938. #define TSC_ISR_EOAF_Msk (0x1UL << TSC_ISR_EOAF_Pos) /*!< 0x00000001 */
  13939. #define TSC_ISR_EOAF TSC_ISR_EOAF_Msk /*!<End of acquisition flag */
  13940. #define TSC_ISR_MCEF_Pos (1U)
  13941. #define TSC_ISR_MCEF_Msk (0x1UL << TSC_ISR_MCEF_Pos) /*!< 0x00000002 */
  13942. #define TSC_ISR_MCEF TSC_ISR_MCEF_Msk /*!<Max count error flag */
  13943. /******************* Bit definition for TSC_IOHCR register ******************/
  13944. #define TSC_IOHCR_G1_IO1_Pos (0U)
  13945. #define TSC_IOHCR_G1_IO1_Msk (0x1UL << TSC_IOHCR_G1_IO1_Pos) /*!< 0x00000001 */
  13946. #define TSC_IOHCR_G1_IO1 TSC_IOHCR_G1_IO1_Msk /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
  13947. #define TSC_IOHCR_G1_IO2_Pos (1U)
  13948. #define TSC_IOHCR_G1_IO2_Msk (0x1UL << TSC_IOHCR_G1_IO2_Pos) /*!< 0x00000002 */
  13949. #define TSC_IOHCR_G1_IO2 TSC_IOHCR_G1_IO2_Msk /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
  13950. #define TSC_IOHCR_G1_IO3_Pos (2U)
  13951. #define TSC_IOHCR_G1_IO3_Msk (0x1UL << TSC_IOHCR_G1_IO3_Pos) /*!< 0x00000004 */
  13952. #define TSC_IOHCR_G1_IO3 TSC_IOHCR_G1_IO3_Msk /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
  13953. #define TSC_IOHCR_G1_IO4_Pos (3U)
  13954. #define TSC_IOHCR_G1_IO4_Msk (0x1UL << TSC_IOHCR_G1_IO4_Pos) /*!< 0x00000008 */
  13955. #define TSC_IOHCR_G1_IO4 TSC_IOHCR_G1_IO4_Msk /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
  13956. #define TSC_IOHCR_G2_IO1_Pos (4U)
  13957. #define TSC_IOHCR_G2_IO1_Msk (0x1UL << TSC_IOHCR_G2_IO1_Pos) /*!< 0x00000010 */
  13958. #define TSC_IOHCR_G2_IO1 TSC_IOHCR_G2_IO1_Msk /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
  13959. #define TSC_IOHCR_G2_IO2_Pos (5U)
  13960. #define TSC_IOHCR_G2_IO2_Msk (0x1UL << TSC_IOHCR_G2_IO2_Pos) /*!< 0x00000020 */
  13961. #define TSC_IOHCR_G2_IO2 TSC_IOHCR_G2_IO2_Msk /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
  13962. #define TSC_IOHCR_G2_IO3_Pos (6U)
  13963. #define TSC_IOHCR_G2_IO3_Msk (0x1UL << TSC_IOHCR_G2_IO3_Pos) /*!< 0x00000040 */
  13964. #define TSC_IOHCR_G2_IO3 TSC_IOHCR_G2_IO3_Msk /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
  13965. #define TSC_IOHCR_G2_IO4_Pos (7U)
  13966. #define TSC_IOHCR_G2_IO4_Msk (0x1UL << TSC_IOHCR_G2_IO4_Pos) /*!< 0x00000080 */
  13967. #define TSC_IOHCR_G2_IO4 TSC_IOHCR_G2_IO4_Msk /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
  13968. #define TSC_IOHCR_G3_IO1_Pos (8U)
  13969. #define TSC_IOHCR_G3_IO1_Msk (0x1UL << TSC_IOHCR_G3_IO1_Pos) /*!< 0x00000100 */
  13970. #define TSC_IOHCR_G3_IO1 TSC_IOHCR_G3_IO1_Msk /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
  13971. #define TSC_IOHCR_G3_IO2_Pos (9U)
  13972. #define TSC_IOHCR_G3_IO2_Msk (0x1UL << TSC_IOHCR_G3_IO2_Pos) /*!< 0x00000200 */
  13973. #define TSC_IOHCR_G3_IO2 TSC_IOHCR_G3_IO2_Msk /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
  13974. #define TSC_IOHCR_G3_IO3_Pos (10U)
  13975. #define TSC_IOHCR_G3_IO3_Msk (0x1UL << TSC_IOHCR_G3_IO3_Pos) /*!< 0x00000400 */
  13976. #define TSC_IOHCR_G3_IO3 TSC_IOHCR_G3_IO3_Msk /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
  13977. #define TSC_IOHCR_G3_IO4_Pos (11U)
  13978. #define TSC_IOHCR_G3_IO4_Msk (0x1UL << TSC_IOHCR_G3_IO4_Pos) /*!< 0x00000800 */
  13979. #define TSC_IOHCR_G3_IO4 TSC_IOHCR_G3_IO4_Msk /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
  13980. #define TSC_IOHCR_G4_IO1_Pos (12U)
  13981. #define TSC_IOHCR_G4_IO1_Msk (0x1UL << TSC_IOHCR_G4_IO1_Pos) /*!< 0x00001000 */
  13982. #define TSC_IOHCR_G4_IO1 TSC_IOHCR_G4_IO1_Msk /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
  13983. #define TSC_IOHCR_G4_IO2_Pos (13U)
  13984. #define TSC_IOHCR_G4_IO2_Msk (0x1UL << TSC_IOHCR_G4_IO2_Pos) /*!< 0x00002000 */
  13985. #define TSC_IOHCR_G4_IO2 TSC_IOHCR_G4_IO2_Msk /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
  13986. #define TSC_IOHCR_G4_IO3_Pos (14U)
  13987. #define TSC_IOHCR_G4_IO3_Msk (0x1UL << TSC_IOHCR_G4_IO3_Pos) /*!< 0x00004000 */
  13988. #define TSC_IOHCR_G4_IO3 TSC_IOHCR_G4_IO3_Msk /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
  13989. #define TSC_IOHCR_G4_IO4_Pos (15U)
  13990. #define TSC_IOHCR_G4_IO4_Msk (0x1UL << TSC_IOHCR_G4_IO4_Pos) /*!< 0x00008000 */
  13991. #define TSC_IOHCR_G4_IO4 TSC_IOHCR_G4_IO4_Msk /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
  13992. #define TSC_IOHCR_G5_IO1_Pos (16U)
  13993. #define TSC_IOHCR_G5_IO1_Msk (0x1UL << TSC_IOHCR_G5_IO1_Pos) /*!< 0x00010000 */
  13994. #define TSC_IOHCR_G5_IO1 TSC_IOHCR_G5_IO1_Msk /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
  13995. #define TSC_IOHCR_G5_IO2_Pos (17U)
  13996. #define TSC_IOHCR_G5_IO2_Msk (0x1UL << TSC_IOHCR_G5_IO2_Pos) /*!< 0x00020000 */
  13997. #define TSC_IOHCR_G5_IO2 TSC_IOHCR_G5_IO2_Msk /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
  13998. #define TSC_IOHCR_G5_IO3_Pos (18U)
  13999. #define TSC_IOHCR_G5_IO3_Msk (0x1UL << TSC_IOHCR_G5_IO3_Pos) /*!< 0x00040000 */
  14000. #define TSC_IOHCR_G5_IO3 TSC_IOHCR_G5_IO3_Msk /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
  14001. #define TSC_IOHCR_G5_IO4_Pos (19U)
  14002. #define TSC_IOHCR_G5_IO4_Msk (0x1UL << TSC_IOHCR_G5_IO4_Pos) /*!< 0x00080000 */
  14003. #define TSC_IOHCR_G5_IO4 TSC_IOHCR_G5_IO4_Msk /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
  14004. #define TSC_IOHCR_G6_IO1_Pos (20U)
  14005. #define TSC_IOHCR_G6_IO1_Msk (0x1UL << TSC_IOHCR_G6_IO1_Pos) /*!< 0x00100000 */
  14006. #define TSC_IOHCR_G6_IO1 TSC_IOHCR_G6_IO1_Msk /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
  14007. #define TSC_IOHCR_G6_IO2_Pos (21U)
  14008. #define TSC_IOHCR_G6_IO2_Msk (0x1UL << TSC_IOHCR_G6_IO2_Pos) /*!< 0x00200000 */
  14009. #define TSC_IOHCR_G6_IO2 TSC_IOHCR_G6_IO2_Msk /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
  14010. #define TSC_IOHCR_G6_IO3_Pos (22U)
  14011. #define TSC_IOHCR_G6_IO3_Msk (0x1UL << TSC_IOHCR_G6_IO3_Pos) /*!< 0x00400000 */
  14012. #define TSC_IOHCR_G6_IO3 TSC_IOHCR_G6_IO3_Msk /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
  14013. #define TSC_IOHCR_G6_IO4_Pos (23U)
  14014. #define TSC_IOHCR_G6_IO4_Msk (0x1UL << TSC_IOHCR_G6_IO4_Pos) /*!< 0x00800000 */
  14015. #define TSC_IOHCR_G6_IO4 TSC_IOHCR_G6_IO4_Msk /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
  14016. #define TSC_IOHCR_G7_IO1_Pos (24U)
  14017. #define TSC_IOHCR_G7_IO1_Msk (0x1UL << TSC_IOHCR_G7_IO1_Pos) /*!< 0x01000000 */
  14018. #define TSC_IOHCR_G7_IO1 TSC_IOHCR_G7_IO1_Msk /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
  14019. #define TSC_IOHCR_G7_IO2_Pos (25U)
  14020. #define TSC_IOHCR_G7_IO2_Msk (0x1UL << TSC_IOHCR_G7_IO2_Pos) /*!< 0x02000000 */
  14021. #define TSC_IOHCR_G7_IO2 TSC_IOHCR_G7_IO2_Msk /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
  14022. #define TSC_IOHCR_G7_IO3_Pos (26U)
  14023. #define TSC_IOHCR_G7_IO3_Msk (0x1UL << TSC_IOHCR_G7_IO3_Pos) /*!< 0x04000000 */
  14024. #define TSC_IOHCR_G7_IO3 TSC_IOHCR_G7_IO3_Msk /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
  14025. #define TSC_IOHCR_G7_IO4_Pos (27U)
  14026. #define TSC_IOHCR_G7_IO4_Msk (0x1UL << TSC_IOHCR_G7_IO4_Pos) /*!< 0x08000000 */
  14027. #define TSC_IOHCR_G7_IO4 TSC_IOHCR_G7_IO4_Msk /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
  14028. #define TSC_IOHCR_G8_IO1_Pos (28U)
  14029. #define TSC_IOHCR_G8_IO1_Msk (0x1UL << TSC_IOHCR_G8_IO1_Pos) /*!< 0x10000000 */
  14030. #define TSC_IOHCR_G8_IO1 TSC_IOHCR_G8_IO1_Msk /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
  14031. #define TSC_IOHCR_G8_IO2_Pos (29U)
  14032. #define TSC_IOHCR_G8_IO2_Msk (0x1UL << TSC_IOHCR_G8_IO2_Pos) /*!< 0x20000000 */
  14033. #define TSC_IOHCR_G8_IO2 TSC_IOHCR_G8_IO2_Msk /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
  14034. #define TSC_IOHCR_G8_IO3_Pos (30U)
  14035. #define TSC_IOHCR_G8_IO3_Msk (0x1UL << TSC_IOHCR_G8_IO3_Pos) /*!< 0x40000000 */
  14036. #define TSC_IOHCR_G8_IO3 TSC_IOHCR_G8_IO3_Msk /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
  14037. #define TSC_IOHCR_G8_IO4_Pos (31U)
  14038. #define TSC_IOHCR_G8_IO4_Msk (0x1UL << TSC_IOHCR_G8_IO4_Pos) /*!< 0x80000000 */
  14039. #define TSC_IOHCR_G8_IO4 TSC_IOHCR_G8_IO4_Msk /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
  14040. /******************* Bit definition for TSC_IOASCR register *****************/
  14041. #define TSC_IOASCR_G1_IO1_Pos (0U)
  14042. #define TSC_IOASCR_G1_IO1_Msk (0x1UL << TSC_IOASCR_G1_IO1_Pos) /*!< 0x00000001 */
  14043. #define TSC_IOASCR_G1_IO1 TSC_IOASCR_G1_IO1_Msk /*!<GROUP1_IO1 analog switch enable */
  14044. #define TSC_IOASCR_G1_IO2_Pos (1U)
  14045. #define TSC_IOASCR_G1_IO2_Msk (0x1UL << TSC_IOASCR_G1_IO2_Pos) /*!< 0x00000002 */
  14046. #define TSC_IOASCR_G1_IO2 TSC_IOASCR_G1_IO2_Msk /*!<GROUP1_IO2 analog switch enable */
  14047. #define TSC_IOASCR_G1_IO3_Pos (2U)
  14048. #define TSC_IOASCR_G1_IO3_Msk (0x1UL << TSC_IOASCR_G1_IO3_Pos) /*!< 0x00000004 */
  14049. #define TSC_IOASCR_G1_IO3 TSC_IOASCR_G1_IO3_Msk /*!<GROUP1_IO3 analog switch enable */
  14050. #define TSC_IOASCR_G1_IO4_Pos (3U)
  14051. #define TSC_IOASCR_G1_IO4_Msk (0x1UL << TSC_IOASCR_G1_IO4_Pos) /*!< 0x00000008 */
  14052. #define TSC_IOASCR_G1_IO4 TSC_IOASCR_G1_IO4_Msk /*!<GROUP1_IO4 analog switch enable */
  14053. #define TSC_IOASCR_G2_IO1_Pos (4U)
  14054. #define TSC_IOASCR_G2_IO1_Msk (0x1UL << TSC_IOASCR_G2_IO1_Pos) /*!< 0x00000010 */
  14055. #define TSC_IOASCR_G2_IO1 TSC_IOASCR_G2_IO1_Msk /*!<GROUP2_IO1 analog switch enable */
  14056. #define TSC_IOASCR_G2_IO2_Pos (5U)
  14057. #define TSC_IOASCR_G2_IO2_Msk (0x1UL << TSC_IOASCR_G2_IO2_Pos) /*!< 0x00000020 */
  14058. #define TSC_IOASCR_G2_IO2 TSC_IOASCR_G2_IO2_Msk /*!<GROUP2_IO2 analog switch enable */
  14059. #define TSC_IOASCR_G2_IO3_Pos (6U)
  14060. #define TSC_IOASCR_G2_IO3_Msk (0x1UL << TSC_IOASCR_G2_IO3_Pos) /*!< 0x00000040 */
  14061. #define TSC_IOASCR_G2_IO3 TSC_IOASCR_G2_IO3_Msk /*!<GROUP2_IO3 analog switch enable */
  14062. #define TSC_IOASCR_G2_IO4_Pos (7U)
  14063. #define TSC_IOASCR_G2_IO4_Msk (0x1UL << TSC_IOASCR_G2_IO4_Pos) /*!< 0x00000080 */
  14064. #define TSC_IOASCR_G2_IO4 TSC_IOASCR_G2_IO4_Msk /*!<GROUP2_IO4 analog switch enable */
  14065. #define TSC_IOASCR_G3_IO1_Pos (8U)
  14066. #define TSC_IOASCR_G3_IO1_Msk (0x1UL << TSC_IOASCR_G3_IO1_Pos) /*!< 0x00000100 */
  14067. #define TSC_IOASCR_G3_IO1 TSC_IOASCR_G3_IO1_Msk /*!<GROUP3_IO1 analog switch enable */
  14068. #define TSC_IOASCR_G3_IO2_Pos (9U)
  14069. #define TSC_IOASCR_G3_IO2_Msk (0x1UL << TSC_IOASCR_G3_IO2_Pos) /*!< 0x00000200 */
  14070. #define TSC_IOASCR_G3_IO2 TSC_IOASCR_G3_IO2_Msk /*!<GROUP3_IO2 analog switch enable */
  14071. #define TSC_IOASCR_G3_IO3_Pos (10U)
  14072. #define TSC_IOASCR_G3_IO3_Msk (0x1UL << TSC_IOASCR_G3_IO3_Pos) /*!< 0x00000400 */
  14073. #define TSC_IOASCR_G3_IO3 TSC_IOASCR_G3_IO3_Msk /*!<GROUP3_IO3 analog switch enable */
  14074. #define TSC_IOASCR_G3_IO4_Pos (11U)
  14075. #define TSC_IOASCR_G3_IO4_Msk (0x1UL << TSC_IOASCR_G3_IO4_Pos) /*!< 0x00000800 */
  14076. #define TSC_IOASCR_G3_IO4 TSC_IOASCR_G3_IO4_Msk /*!<GROUP3_IO4 analog switch enable */
  14077. #define TSC_IOASCR_G4_IO1_Pos (12U)
  14078. #define TSC_IOASCR_G4_IO1_Msk (0x1UL << TSC_IOASCR_G4_IO1_Pos) /*!< 0x00001000 */
  14079. #define TSC_IOASCR_G4_IO1 TSC_IOASCR_G4_IO1_Msk /*!<GROUP4_IO1 analog switch enable */
  14080. #define TSC_IOASCR_G4_IO2_Pos (13U)
  14081. #define TSC_IOASCR_G4_IO2_Msk (0x1UL << TSC_IOASCR_G4_IO2_Pos) /*!< 0x00002000 */
  14082. #define TSC_IOASCR_G4_IO2 TSC_IOASCR_G4_IO2_Msk /*!<GROUP4_IO2 analog switch enable */
  14083. #define TSC_IOASCR_G4_IO3_Pos (14U)
  14084. #define TSC_IOASCR_G4_IO3_Msk (0x1UL << TSC_IOASCR_G4_IO3_Pos) /*!< 0x00004000 */
  14085. #define TSC_IOASCR_G4_IO3 TSC_IOASCR_G4_IO3_Msk /*!<GROUP4_IO3 analog switch enable */
  14086. #define TSC_IOASCR_G4_IO4_Pos (15U)
  14087. #define TSC_IOASCR_G4_IO4_Msk (0x1UL << TSC_IOASCR_G4_IO4_Pos) /*!< 0x00008000 */
  14088. #define TSC_IOASCR_G4_IO4 TSC_IOASCR_G4_IO4_Msk /*!<GROUP4_IO4 analog switch enable */
  14089. #define TSC_IOASCR_G5_IO1_Pos (16U)
  14090. #define TSC_IOASCR_G5_IO1_Msk (0x1UL << TSC_IOASCR_G5_IO1_Pos) /*!< 0x00010000 */
  14091. #define TSC_IOASCR_G5_IO1 TSC_IOASCR_G5_IO1_Msk /*!<GROUP5_IO1 analog switch enable */
  14092. #define TSC_IOASCR_G5_IO2_Pos (17U)
  14093. #define TSC_IOASCR_G5_IO2_Msk (0x1UL << TSC_IOASCR_G5_IO2_Pos) /*!< 0x00020000 */
  14094. #define TSC_IOASCR_G5_IO2 TSC_IOASCR_G5_IO2_Msk /*!<GROUP5_IO2 analog switch enable */
  14095. #define TSC_IOASCR_G5_IO3_Pos (18U)
  14096. #define TSC_IOASCR_G5_IO3_Msk (0x1UL << TSC_IOASCR_G5_IO3_Pos) /*!< 0x00040000 */
  14097. #define TSC_IOASCR_G5_IO3 TSC_IOASCR_G5_IO3_Msk /*!<GROUP5_IO3 analog switch enable */
  14098. #define TSC_IOASCR_G5_IO4_Pos (19U)
  14099. #define TSC_IOASCR_G5_IO4_Msk (0x1UL << TSC_IOASCR_G5_IO4_Pos) /*!< 0x00080000 */
  14100. #define TSC_IOASCR_G5_IO4 TSC_IOASCR_G5_IO4_Msk /*!<GROUP5_IO4 analog switch enable */
  14101. #define TSC_IOASCR_G6_IO1_Pos (20U)
  14102. #define TSC_IOASCR_G6_IO1_Msk (0x1UL << TSC_IOASCR_G6_IO1_Pos) /*!< 0x00100000 */
  14103. #define TSC_IOASCR_G6_IO1 TSC_IOASCR_G6_IO1_Msk /*!<GROUP6_IO1 analog switch enable */
  14104. #define TSC_IOASCR_G6_IO2_Pos (21U)
  14105. #define TSC_IOASCR_G6_IO2_Msk (0x1UL << TSC_IOASCR_G6_IO2_Pos) /*!< 0x00200000 */
  14106. #define TSC_IOASCR_G6_IO2 TSC_IOASCR_G6_IO2_Msk /*!<GROUP6_IO2 analog switch enable */
  14107. #define TSC_IOASCR_G6_IO3_Pos (22U)
  14108. #define TSC_IOASCR_G6_IO3_Msk (0x1UL << TSC_IOASCR_G6_IO3_Pos) /*!< 0x00400000 */
  14109. #define TSC_IOASCR_G6_IO3 TSC_IOASCR_G6_IO3_Msk /*!<GROUP6_IO3 analog switch enable */
  14110. #define TSC_IOASCR_G6_IO4_Pos (23U)
  14111. #define TSC_IOASCR_G6_IO4_Msk (0x1UL << TSC_IOASCR_G6_IO4_Pos) /*!< 0x00800000 */
  14112. #define TSC_IOASCR_G6_IO4 TSC_IOASCR_G6_IO4_Msk /*!<GROUP6_IO4 analog switch enable */
  14113. #define TSC_IOASCR_G7_IO1_Pos (24U)
  14114. #define TSC_IOASCR_G7_IO1_Msk (0x1UL << TSC_IOASCR_G7_IO1_Pos) /*!< 0x01000000 */
  14115. #define TSC_IOASCR_G7_IO1 TSC_IOASCR_G7_IO1_Msk /*!<GROUP7_IO1 analog switch enable */
  14116. #define TSC_IOASCR_G7_IO2_Pos (25U)
  14117. #define TSC_IOASCR_G7_IO2_Msk (0x1UL << TSC_IOASCR_G7_IO2_Pos) /*!< 0x02000000 */
  14118. #define TSC_IOASCR_G7_IO2 TSC_IOASCR_G7_IO2_Msk /*!<GROUP7_IO2 analog switch enable */
  14119. #define TSC_IOASCR_G7_IO3_Pos (26U)
  14120. #define TSC_IOASCR_G7_IO3_Msk (0x1UL << TSC_IOASCR_G7_IO3_Pos) /*!< 0x04000000 */
  14121. #define TSC_IOASCR_G7_IO3 TSC_IOASCR_G7_IO3_Msk /*!<GROUP7_IO3 analog switch enable */
  14122. #define TSC_IOASCR_G7_IO4_Pos (27U)
  14123. #define TSC_IOASCR_G7_IO4_Msk (0x1UL << TSC_IOASCR_G7_IO4_Pos) /*!< 0x08000000 */
  14124. #define TSC_IOASCR_G7_IO4 TSC_IOASCR_G7_IO4_Msk /*!<GROUP7_IO4 analog switch enable */
  14125. #define TSC_IOASCR_G8_IO1_Pos (28U)
  14126. #define TSC_IOASCR_G8_IO1_Msk (0x1UL << TSC_IOASCR_G8_IO1_Pos) /*!< 0x10000000 */
  14127. #define TSC_IOASCR_G8_IO1 TSC_IOASCR_G8_IO1_Msk /*!<GROUP8_IO1 analog switch enable */
  14128. #define TSC_IOASCR_G8_IO2_Pos (29U)
  14129. #define TSC_IOASCR_G8_IO2_Msk (0x1UL << TSC_IOASCR_G8_IO2_Pos) /*!< 0x20000000 */
  14130. #define TSC_IOASCR_G8_IO2 TSC_IOASCR_G8_IO2_Msk /*!<GROUP8_IO2 analog switch enable */
  14131. #define TSC_IOASCR_G8_IO3_Pos (30U)
  14132. #define TSC_IOASCR_G8_IO3_Msk (0x1UL << TSC_IOASCR_G8_IO3_Pos) /*!< 0x40000000 */
  14133. #define TSC_IOASCR_G8_IO3 TSC_IOASCR_G8_IO3_Msk /*!<GROUP8_IO3 analog switch enable */
  14134. #define TSC_IOASCR_G8_IO4_Pos (31U)
  14135. #define TSC_IOASCR_G8_IO4_Msk (0x1UL << TSC_IOASCR_G8_IO4_Pos) /*!< 0x80000000 */
  14136. #define TSC_IOASCR_G8_IO4 TSC_IOASCR_G8_IO4_Msk /*!<GROUP8_IO4 analog switch enable */
  14137. /******************* Bit definition for TSC_IOSCR register ******************/
  14138. #define TSC_IOSCR_G1_IO1_Pos (0U)
  14139. #define TSC_IOSCR_G1_IO1_Msk (0x1UL << TSC_IOSCR_G1_IO1_Pos) /*!< 0x00000001 */
  14140. #define TSC_IOSCR_G1_IO1 TSC_IOSCR_G1_IO1_Msk /*!<GROUP1_IO1 sampling mode */
  14141. #define TSC_IOSCR_G1_IO2_Pos (1U)
  14142. #define TSC_IOSCR_G1_IO2_Msk (0x1UL << TSC_IOSCR_G1_IO2_Pos) /*!< 0x00000002 */
  14143. #define TSC_IOSCR_G1_IO2 TSC_IOSCR_G1_IO2_Msk /*!<GROUP1_IO2 sampling mode */
  14144. #define TSC_IOSCR_G1_IO3_Pos (2U)
  14145. #define TSC_IOSCR_G1_IO3_Msk (0x1UL << TSC_IOSCR_G1_IO3_Pos) /*!< 0x00000004 */
  14146. #define TSC_IOSCR_G1_IO3 TSC_IOSCR_G1_IO3_Msk /*!<GROUP1_IO3 sampling mode */
  14147. #define TSC_IOSCR_G1_IO4_Pos (3U)
  14148. #define TSC_IOSCR_G1_IO4_Msk (0x1UL << TSC_IOSCR_G1_IO4_Pos) /*!< 0x00000008 */
  14149. #define TSC_IOSCR_G1_IO4 TSC_IOSCR_G1_IO4_Msk /*!<GROUP1_IO4 sampling mode */
  14150. #define TSC_IOSCR_G2_IO1_Pos (4U)
  14151. #define TSC_IOSCR_G2_IO1_Msk (0x1UL << TSC_IOSCR_G2_IO1_Pos) /*!< 0x00000010 */
  14152. #define TSC_IOSCR_G2_IO1 TSC_IOSCR_G2_IO1_Msk /*!<GROUP2_IO1 sampling mode */
  14153. #define TSC_IOSCR_G2_IO2_Pos (5U)
  14154. #define TSC_IOSCR_G2_IO2_Msk (0x1UL << TSC_IOSCR_G2_IO2_Pos) /*!< 0x00000020 */
  14155. #define TSC_IOSCR_G2_IO2 TSC_IOSCR_G2_IO2_Msk /*!<GROUP2_IO2 sampling mode */
  14156. #define TSC_IOSCR_G2_IO3_Pos (6U)
  14157. #define TSC_IOSCR_G2_IO3_Msk (0x1UL << TSC_IOSCR_G2_IO3_Pos) /*!< 0x00000040 */
  14158. #define TSC_IOSCR_G2_IO3 TSC_IOSCR_G2_IO3_Msk /*!<GROUP2_IO3 sampling mode */
  14159. #define TSC_IOSCR_G2_IO4_Pos (7U)
  14160. #define TSC_IOSCR_G2_IO4_Msk (0x1UL << TSC_IOSCR_G2_IO4_Pos) /*!< 0x00000080 */
  14161. #define TSC_IOSCR_G2_IO4 TSC_IOSCR_G2_IO4_Msk /*!<GROUP2_IO4 sampling mode */
  14162. #define TSC_IOSCR_G3_IO1_Pos (8U)
  14163. #define TSC_IOSCR_G3_IO1_Msk (0x1UL << TSC_IOSCR_G3_IO1_Pos) /*!< 0x00000100 */
  14164. #define TSC_IOSCR_G3_IO1 TSC_IOSCR_G3_IO1_Msk /*!<GROUP3_IO1 sampling mode */
  14165. #define TSC_IOSCR_G3_IO2_Pos (9U)
  14166. #define TSC_IOSCR_G3_IO2_Msk (0x1UL << TSC_IOSCR_G3_IO2_Pos) /*!< 0x00000200 */
  14167. #define TSC_IOSCR_G3_IO2 TSC_IOSCR_G3_IO2_Msk /*!<GROUP3_IO2 sampling mode */
  14168. #define TSC_IOSCR_G3_IO3_Pos (10U)
  14169. #define TSC_IOSCR_G3_IO3_Msk (0x1UL << TSC_IOSCR_G3_IO3_Pos) /*!< 0x00000400 */
  14170. #define TSC_IOSCR_G3_IO3 TSC_IOSCR_G3_IO3_Msk /*!<GROUP3_IO3 sampling mode */
  14171. #define TSC_IOSCR_G3_IO4_Pos (11U)
  14172. #define TSC_IOSCR_G3_IO4_Msk (0x1UL << TSC_IOSCR_G3_IO4_Pos) /*!< 0x00000800 */
  14173. #define TSC_IOSCR_G3_IO4 TSC_IOSCR_G3_IO4_Msk /*!<GROUP3_IO4 sampling mode */
  14174. #define TSC_IOSCR_G4_IO1_Pos (12U)
  14175. #define TSC_IOSCR_G4_IO1_Msk (0x1UL << TSC_IOSCR_G4_IO1_Pos) /*!< 0x00001000 */
  14176. #define TSC_IOSCR_G4_IO1 TSC_IOSCR_G4_IO1_Msk /*!<GROUP4_IO1 sampling mode */
  14177. #define TSC_IOSCR_G4_IO2_Pos (13U)
  14178. #define TSC_IOSCR_G4_IO2_Msk (0x1UL << TSC_IOSCR_G4_IO2_Pos) /*!< 0x00002000 */
  14179. #define TSC_IOSCR_G4_IO2 TSC_IOSCR_G4_IO2_Msk /*!<GROUP4_IO2 sampling mode */
  14180. #define TSC_IOSCR_G4_IO3_Pos (14U)
  14181. #define TSC_IOSCR_G4_IO3_Msk (0x1UL << TSC_IOSCR_G4_IO3_Pos) /*!< 0x00004000 */
  14182. #define TSC_IOSCR_G4_IO3 TSC_IOSCR_G4_IO3_Msk /*!<GROUP4_IO3 sampling mode */
  14183. #define TSC_IOSCR_G4_IO4_Pos (15U)
  14184. #define TSC_IOSCR_G4_IO4_Msk (0x1UL << TSC_IOSCR_G4_IO4_Pos) /*!< 0x00008000 */
  14185. #define TSC_IOSCR_G4_IO4 TSC_IOSCR_G4_IO4_Msk /*!<GROUP4_IO4 sampling mode */
  14186. #define TSC_IOSCR_G5_IO1_Pos (16U)
  14187. #define TSC_IOSCR_G5_IO1_Msk (0x1UL << TSC_IOSCR_G5_IO1_Pos) /*!< 0x00010000 */
  14188. #define TSC_IOSCR_G5_IO1 TSC_IOSCR_G5_IO1_Msk /*!<GROUP5_IO1 sampling mode */
  14189. #define TSC_IOSCR_G5_IO2_Pos (17U)
  14190. #define TSC_IOSCR_G5_IO2_Msk (0x1UL << TSC_IOSCR_G5_IO2_Pos) /*!< 0x00020000 */
  14191. #define TSC_IOSCR_G5_IO2 TSC_IOSCR_G5_IO2_Msk /*!<GROUP5_IO2 sampling mode */
  14192. #define TSC_IOSCR_G5_IO3_Pos (18U)
  14193. #define TSC_IOSCR_G5_IO3_Msk (0x1UL << TSC_IOSCR_G5_IO3_Pos) /*!< 0x00040000 */
  14194. #define TSC_IOSCR_G5_IO3 TSC_IOSCR_G5_IO3_Msk /*!<GROUP5_IO3 sampling mode */
  14195. #define TSC_IOSCR_G5_IO4_Pos (19U)
  14196. #define TSC_IOSCR_G5_IO4_Msk (0x1UL << TSC_IOSCR_G5_IO4_Pos) /*!< 0x00080000 */
  14197. #define TSC_IOSCR_G5_IO4 TSC_IOSCR_G5_IO4_Msk /*!<GROUP5_IO4 sampling mode */
  14198. #define TSC_IOSCR_G6_IO1_Pos (20U)
  14199. #define TSC_IOSCR_G6_IO1_Msk (0x1UL << TSC_IOSCR_G6_IO1_Pos) /*!< 0x00100000 */
  14200. #define TSC_IOSCR_G6_IO1 TSC_IOSCR_G6_IO1_Msk /*!<GROUP6_IO1 sampling mode */
  14201. #define TSC_IOSCR_G6_IO2_Pos (21U)
  14202. #define TSC_IOSCR_G6_IO2_Msk (0x1UL << TSC_IOSCR_G6_IO2_Pos) /*!< 0x00200000 */
  14203. #define TSC_IOSCR_G6_IO2 TSC_IOSCR_G6_IO2_Msk /*!<GROUP6_IO2 sampling mode */
  14204. #define TSC_IOSCR_G6_IO3_Pos (22U)
  14205. #define TSC_IOSCR_G6_IO3_Msk (0x1UL << TSC_IOSCR_G6_IO3_Pos) /*!< 0x00400000 */
  14206. #define TSC_IOSCR_G6_IO3 TSC_IOSCR_G6_IO3_Msk /*!<GROUP6_IO3 sampling mode */
  14207. #define TSC_IOSCR_G6_IO4_Pos (23U)
  14208. #define TSC_IOSCR_G6_IO4_Msk (0x1UL << TSC_IOSCR_G6_IO4_Pos) /*!< 0x00800000 */
  14209. #define TSC_IOSCR_G6_IO4 TSC_IOSCR_G6_IO4_Msk /*!<GROUP6_IO4 sampling mode */
  14210. #define TSC_IOSCR_G7_IO1_Pos (24U)
  14211. #define TSC_IOSCR_G7_IO1_Msk (0x1UL << TSC_IOSCR_G7_IO1_Pos) /*!< 0x01000000 */
  14212. #define TSC_IOSCR_G7_IO1 TSC_IOSCR_G7_IO1_Msk /*!<GROUP7_IO1 sampling mode */
  14213. #define TSC_IOSCR_G7_IO2_Pos (25U)
  14214. #define TSC_IOSCR_G7_IO2_Msk (0x1UL << TSC_IOSCR_G7_IO2_Pos) /*!< 0x02000000 */
  14215. #define TSC_IOSCR_G7_IO2 TSC_IOSCR_G7_IO2_Msk /*!<GROUP7_IO2 sampling mode */
  14216. #define TSC_IOSCR_G7_IO3_Pos (26U)
  14217. #define TSC_IOSCR_G7_IO3_Msk (0x1UL << TSC_IOSCR_G7_IO3_Pos) /*!< 0x04000000 */
  14218. #define TSC_IOSCR_G7_IO3 TSC_IOSCR_G7_IO3_Msk /*!<GROUP7_IO3 sampling mode */
  14219. #define TSC_IOSCR_G7_IO4_Pos (27U)
  14220. #define TSC_IOSCR_G7_IO4_Msk (0x1UL << TSC_IOSCR_G7_IO4_Pos) /*!< 0x08000000 */
  14221. #define TSC_IOSCR_G7_IO4 TSC_IOSCR_G7_IO4_Msk /*!<GROUP7_IO4 sampling mode */
  14222. #define TSC_IOSCR_G8_IO1_Pos (28U)
  14223. #define TSC_IOSCR_G8_IO1_Msk (0x1UL << TSC_IOSCR_G8_IO1_Pos) /*!< 0x10000000 */
  14224. #define TSC_IOSCR_G8_IO1 TSC_IOSCR_G8_IO1_Msk /*!<GROUP8_IO1 sampling mode */
  14225. #define TSC_IOSCR_G8_IO2_Pos (29U)
  14226. #define TSC_IOSCR_G8_IO2_Msk (0x1UL << TSC_IOSCR_G8_IO2_Pos) /*!< 0x20000000 */
  14227. #define TSC_IOSCR_G8_IO2 TSC_IOSCR_G8_IO2_Msk /*!<GROUP8_IO2 sampling mode */
  14228. #define TSC_IOSCR_G8_IO3_Pos (30U)
  14229. #define TSC_IOSCR_G8_IO3_Msk (0x1UL << TSC_IOSCR_G8_IO3_Pos) /*!< 0x40000000 */
  14230. #define TSC_IOSCR_G8_IO3 TSC_IOSCR_G8_IO3_Msk /*!<GROUP8_IO3 sampling mode */
  14231. #define TSC_IOSCR_G8_IO4_Pos (31U)
  14232. #define TSC_IOSCR_G8_IO4_Msk (0x1UL << TSC_IOSCR_G8_IO4_Pos) /*!< 0x80000000 */
  14233. #define TSC_IOSCR_G8_IO4 TSC_IOSCR_G8_IO4_Msk /*!<GROUP8_IO4 sampling mode */
  14234. /******************* Bit definition for TSC_IOCCR register ******************/
  14235. #define TSC_IOCCR_G1_IO1_Pos (0U)
  14236. #define TSC_IOCCR_G1_IO1_Msk (0x1UL << TSC_IOCCR_G1_IO1_Pos) /*!< 0x00000001 */
  14237. #define TSC_IOCCR_G1_IO1 TSC_IOCCR_G1_IO1_Msk /*!<GROUP1_IO1 channel mode */
  14238. #define TSC_IOCCR_G1_IO2_Pos (1U)
  14239. #define TSC_IOCCR_G1_IO2_Msk (0x1UL << TSC_IOCCR_G1_IO2_Pos) /*!< 0x00000002 */
  14240. #define TSC_IOCCR_G1_IO2 TSC_IOCCR_G1_IO2_Msk /*!<GROUP1_IO2 channel mode */
  14241. #define TSC_IOCCR_G1_IO3_Pos (2U)
  14242. #define TSC_IOCCR_G1_IO3_Msk (0x1UL << TSC_IOCCR_G1_IO3_Pos) /*!< 0x00000004 */
  14243. #define TSC_IOCCR_G1_IO3 TSC_IOCCR_G1_IO3_Msk /*!<GROUP1_IO3 channel mode */
  14244. #define TSC_IOCCR_G1_IO4_Pos (3U)
  14245. #define TSC_IOCCR_G1_IO4_Msk (0x1UL << TSC_IOCCR_G1_IO4_Pos) /*!< 0x00000008 */
  14246. #define TSC_IOCCR_G1_IO4 TSC_IOCCR_G1_IO4_Msk /*!<GROUP1_IO4 channel mode */
  14247. #define TSC_IOCCR_G2_IO1_Pos (4U)
  14248. #define TSC_IOCCR_G2_IO1_Msk (0x1UL << TSC_IOCCR_G2_IO1_Pos) /*!< 0x00000010 */
  14249. #define TSC_IOCCR_G2_IO1 TSC_IOCCR_G2_IO1_Msk /*!<GROUP2_IO1 channel mode */
  14250. #define TSC_IOCCR_G2_IO2_Pos (5U)
  14251. #define TSC_IOCCR_G2_IO2_Msk (0x1UL << TSC_IOCCR_G2_IO2_Pos) /*!< 0x00000020 */
  14252. #define TSC_IOCCR_G2_IO2 TSC_IOCCR_G2_IO2_Msk /*!<GROUP2_IO2 channel mode */
  14253. #define TSC_IOCCR_G2_IO3_Pos (6U)
  14254. #define TSC_IOCCR_G2_IO3_Msk (0x1UL << TSC_IOCCR_G2_IO3_Pos) /*!< 0x00000040 */
  14255. #define TSC_IOCCR_G2_IO3 TSC_IOCCR_G2_IO3_Msk /*!<GROUP2_IO3 channel mode */
  14256. #define TSC_IOCCR_G2_IO4_Pos (7U)
  14257. #define TSC_IOCCR_G2_IO4_Msk (0x1UL << TSC_IOCCR_G2_IO4_Pos) /*!< 0x00000080 */
  14258. #define TSC_IOCCR_G2_IO4 TSC_IOCCR_G2_IO4_Msk /*!<GROUP2_IO4 channel mode */
  14259. #define TSC_IOCCR_G3_IO1_Pos (8U)
  14260. #define TSC_IOCCR_G3_IO1_Msk (0x1UL << TSC_IOCCR_G3_IO1_Pos) /*!< 0x00000100 */
  14261. #define TSC_IOCCR_G3_IO1 TSC_IOCCR_G3_IO1_Msk /*!<GROUP3_IO1 channel mode */
  14262. #define TSC_IOCCR_G3_IO2_Pos (9U)
  14263. #define TSC_IOCCR_G3_IO2_Msk (0x1UL << TSC_IOCCR_G3_IO2_Pos) /*!< 0x00000200 */
  14264. #define TSC_IOCCR_G3_IO2 TSC_IOCCR_G3_IO2_Msk /*!<GROUP3_IO2 channel mode */
  14265. #define TSC_IOCCR_G3_IO3_Pos (10U)
  14266. #define TSC_IOCCR_G3_IO3_Msk (0x1UL << TSC_IOCCR_G3_IO3_Pos) /*!< 0x00000400 */
  14267. #define TSC_IOCCR_G3_IO3 TSC_IOCCR_G3_IO3_Msk /*!<GROUP3_IO3 channel mode */
  14268. #define TSC_IOCCR_G3_IO4_Pos (11U)
  14269. #define TSC_IOCCR_G3_IO4_Msk (0x1UL << TSC_IOCCR_G3_IO4_Pos) /*!< 0x00000800 */
  14270. #define TSC_IOCCR_G3_IO4 TSC_IOCCR_G3_IO4_Msk /*!<GROUP3_IO4 channel mode */
  14271. #define TSC_IOCCR_G4_IO1_Pos (12U)
  14272. #define TSC_IOCCR_G4_IO1_Msk (0x1UL << TSC_IOCCR_G4_IO1_Pos) /*!< 0x00001000 */
  14273. #define TSC_IOCCR_G4_IO1 TSC_IOCCR_G4_IO1_Msk /*!<GROUP4_IO1 channel mode */
  14274. #define TSC_IOCCR_G4_IO2_Pos (13U)
  14275. #define TSC_IOCCR_G4_IO2_Msk (0x1UL << TSC_IOCCR_G4_IO2_Pos) /*!< 0x00002000 */
  14276. #define TSC_IOCCR_G4_IO2 TSC_IOCCR_G4_IO2_Msk /*!<GROUP4_IO2 channel mode */
  14277. #define TSC_IOCCR_G4_IO3_Pos (14U)
  14278. #define TSC_IOCCR_G4_IO3_Msk (0x1UL << TSC_IOCCR_G4_IO3_Pos) /*!< 0x00004000 */
  14279. #define TSC_IOCCR_G4_IO3 TSC_IOCCR_G4_IO3_Msk /*!<GROUP4_IO3 channel mode */
  14280. #define TSC_IOCCR_G4_IO4_Pos (15U)
  14281. #define TSC_IOCCR_G4_IO4_Msk (0x1UL << TSC_IOCCR_G4_IO4_Pos) /*!< 0x00008000 */
  14282. #define TSC_IOCCR_G4_IO4 TSC_IOCCR_G4_IO4_Msk /*!<GROUP4_IO4 channel mode */
  14283. #define TSC_IOCCR_G5_IO1_Pos (16U)
  14284. #define TSC_IOCCR_G5_IO1_Msk (0x1UL << TSC_IOCCR_G5_IO1_Pos) /*!< 0x00010000 */
  14285. #define TSC_IOCCR_G5_IO1 TSC_IOCCR_G5_IO1_Msk /*!<GROUP5_IO1 channel mode */
  14286. #define TSC_IOCCR_G5_IO2_Pos (17U)
  14287. #define TSC_IOCCR_G5_IO2_Msk (0x1UL << TSC_IOCCR_G5_IO2_Pos) /*!< 0x00020000 */
  14288. #define TSC_IOCCR_G5_IO2 TSC_IOCCR_G5_IO2_Msk /*!<GROUP5_IO2 channel mode */
  14289. #define TSC_IOCCR_G5_IO3_Pos (18U)
  14290. #define TSC_IOCCR_G5_IO3_Msk (0x1UL << TSC_IOCCR_G5_IO3_Pos) /*!< 0x00040000 */
  14291. #define TSC_IOCCR_G5_IO3 TSC_IOCCR_G5_IO3_Msk /*!<GROUP5_IO3 channel mode */
  14292. #define TSC_IOCCR_G5_IO4_Pos (19U)
  14293. #define TSC_IOCCR_G5_IO4_Msk (0x1UL << TSC_IOCCR_G5_IO4_Pos) /*!< 0x00080000 */
  14294. #define TSC_IOCCR_G5_IO4 TSC_IOCCR_G5_IO4_Msk /*!<GROUP5_IO4 channel mode */
  14295. #define TSC_IOCCR_G6_IO1_Pos (20U)
  14296. #define TSC_IOCCR_G6_IO1_Msk (0x1UL << TSC_IOCCR_G6_IO1_Pos) /*!< 0x00100000 */
  14297. #define TSC_IOCCR_G6_IO1 TSC_IOCCR_G6_IO1_Msk /*!<GROUP6_IO1 channel mode */
  14298. #define TSC_IOCCR_G6_IO2_Pos (21U)
  14299. #define TSC_IOCCR_G6_IO2_Msk (0x1UL << TSC_IOCCR_G6_IO2_Pos) /*!< 0x00200000 */
  14300. #define TSC_IOCCR_G6_IO2 TSC_IOCCR_G6_IO2_Msk /*!<GROUP6_IO2 channel mode */
  14301. #define TSC_IOCCR_G6_IO3_Pos (22U)
  14302. #define TSC_IOCCR_G6_IO3_Msk (0x1UL << TSC_IOCCR_G6_IO3_Pos) /*!< 0x00400000 */
  14303. #define TSC_IOCCR_G6_IO3 TSC_IOCCR_G6_IO3_Msk /*!<GROUP6_IO3 channel mode */
  14304. #define TSC_IOCCR_G6_IO4_Pos (23U)
  14305. #define TSC_IOCCR_G6_IO4_Msk (0x1UL << TSC_IOCCR_G6_IO4_Pos) /*!< 0x00800000 */
  14306. #define TSC_IOCCR_G6_IO4 TSC_IOCCR_G6_IO4_Msk /*!<GROUP6_IO4 channel mode */
  14307. #define TSC_IOCCR_G7_IO1_Pos (24U)
  14308. #define TSC_IOCCR_G7_IO1_Msk (0x1UL << TSC_IOCCR_G7_IO1_Pos) /*!< 0x01000000 */
  14309. #define TSC_IOCCR_G7_IO1 TSC_IOCCR_G7_IO1_Msk /*!<GROUP7_IO1 channel mode */
  14310. #define TSC_IOCCR_G7_IO2_Pos (25U)
  14311. #define TSC_IOCCR_G7_IO2_Msk (0x1UL << TSC_IOCCR_G7_IO2_Pos) /*!< 0x02000000 */
  14312. #define TSC_IOCCR_G7_IO2 TSC_IOCCR_G7_IO2_Msk /*!<GROUP7_IO2 channel mode */
  14313. #define TSC_IOCCR_G7_IO3_Pos (26U)
  14314. #define TSC_IOCCR_G7_IO3_Msk (0x1UL << TSC_IOCCR_G7_IO3_Pos) /*!< 0x04000000 */
  14315. #define TSC_IOCCR_G7_IO3 TSC_IOCCR_G7_IO3_Msk /*!<GROUP7_IO3 channel mode */
  14316. #define TSC_IOCCR_G7_IO4_Pos (27U)
  14317. #define TSC_IOCCR_G7_IO4_Msk (0x1UL << TSC_IOCCR_G7_IO4_Pos) /*!< 0x08000000 */
  14318. #define TSC_IOCCR_G7_IO4 TSC_IOCCR_G7_IO4_Msk /*!<GROUP7_IO4 channel mode */
  14319. #define TSC_IOCCR_G8_IO1_Pos (28U)
  14320. #define TSC_IOCCR_G8_IO1_Msk (0x1UL << TSC_IOCCR_G8_IO1_Pos) /*!< 0x10000000 */
  14321. #define TSC_IOCCR_G8_IO1 TSC_IOCCR_G8_IO1_Msk /*!<GROUP8_IO1 channel mode */
  14322. #define TSC_IOCCR_G8_IO2_Pos (29U)
  14323. #define TSC_IOCCR_G8_IO2_Msk (0x1UL << TSC_IOCCR_G8_IO2_Pos) /*!< 0x20000000 */
  14324. #define TSC_IOCCR_G8_IO2 TSC_IOCCR_G8_IO2_Msk /*!<GROUP8_IO2 channel mode */
  14325. #define TSC_IOCCR_G8_IO3_Pos (30U)
  14326. #define TSC_IOCCR_G8_IO3_Msk (0x1UL << TSC_IOCCR_G8_IO3_Pos) /*!< 0x40000000 */
  14327. #define TSC_IOCCR_G8_IO3 TSC_IOCCR_G8_IO3_Msk /*!<GROUP8_IO3 channel mode */
  14328. #define TSC_IOCCR_G8_IO4_Pos (31U)
  14329. #define TSC_IOCCR_G8_IO4_Msk (0x1UL << TSC_IOCCR_G8_IO4_Pos) /*!< 0x80000000 */
  14330. #define TSC_IOCCR_G8_IO4 TSC_IOCCR_G8_IO4_Msk /*!<GROUP8_IO4 channel mode */
  14331. /******************* Bit definition for TSC_IOGCSR register *****************/
  14332. #define TSC_IOGCSR_G1E_Pos (0U)
  14333. #define TSC_IOGCSR_G1E_Msk (0x1UL << TSC_IOGCSR_G1E_Pos) /*!< 0x00000001 */
  14334. #define TSC_IOGCSR_G1E TSC_IOGCSR_G1E_Msk /*!<Analog IO GROUP1 enable */
  14335. #define TSC_IOGCSR_G2E_Pos (1U)
  14336. #define TSC_IOGCSR_G2E_Msk (0x1UL << TSC_IOGCSR_G2E_Pos) /*!< 0x00000002 */
  14337. #define TSC_IOGCSR_G2E TSC_IOGCSR_G2E_Msk /*!<Analog IO GROUP2 enable */
  14338. #define TSC_IOGCSR_G3E_Pos (2U)
  14339. #define TSC_IOGCSR_G3E_Msk (0x1UL << TSC_IOGCSR_G3E_Pos) /*!< 0x00000004 */
  14340. #define TSC_IOGCSR_G3E TSC_IOGCSR_G3E_Msk /*!<Analog IO GROUP3 enable */
  14341. #define TSC_IOGCSR_G4E_Pos (3U)
  14342. #define TSC_IOGCSR_G4E_Msk (0x1UL << TSC_IOGCSR_G4E_Pos) /*!< 0x00000008 */
  14343. #define TSC_IOGCSR_G4E TSC_IOGCSR_G4E_Msk /*!<Analog IO GROUP4 enable */
  14344. #define TSC_IOGCSR_G5E_Pos (4U)
  14345. #define TSC_IOGCSR_G5E_Msk (0x1UL << TSC_IOGCSR_G5E_Pos) /*!< 0x00000010 */
  14346. #define TSC_IOGCSR_G5E TSC_IOGCSR_G5E_Msk /*!<Analog IO GROUP5 enable */
  14347. #define TSC_IOGCSR_G6E_Pos (5U)
  14348. #define TSC_IOGCSR_G6E_Msk (0x1UL << TSC_IOGCSR_G6E_Pos) /*!< 0x00000020 */
  14349. #define TSC_IOGCSR_G6E TSC_IOGCSR_G6E_Msk /*!<Analog IO GROUP6 enable */
  14350. #define TSC_IOGCSR_G7E_Pos (6U)
  14351. #define TSC_IOGCSR_G7E_Msk (0x1UL << TSC_IOGCSR_G7E_Pos) /*!< 0x00000040 */
  14352. #define TSC_IOGCSR_G7E TSC_IOGCSR_G7E_Msk /*!<Analog IO GROUP7 enable */
  14353. #define TSC_IOGCSR_G8E_Pos (7U)
  14354. #define TSC_IOGCSR_G8E_Msk (0x1UL << TSC_IOGCSR_G8E_Pos) /*!< 0x00000080 */
  14355. #define TSC_IOGCSR_G8E TSC_IOGCSR_G8E_Msk /*!<Analog IO GROUP8 enable */
  14356. #define TSC_IOGCSR_G1S_Pos (16U)
  14357. #define TSC_IOGCSR_G1S_Msk (0x1UL << TSC_IOGCSR_G1S_Pos) /*!< 0x00010000 */
  14358. #define TSC_IOGCSR_G1S TSC_IOGCSR_G1S_Msk /*!<Analog IO GROUP1 status */
  14359. #define TSC_IOGCSR_G2S_Pos (17U)
  14360. #define TSC_IOGCSR_G2S_Msk (0x1UL << TSC_IOGCSR_G2S_Pos) /*!< 0x00020000 */
  14361. #define TSC_IOGCSR_G2S TSC_IOGCSR_G2S_Msk /*!<Analog IO GROUP2 status */
  14362. #define TSC_IOGCSR_G3S_Pos (18U)
  14363. #define TSC_IOGCSR_G3S_Msk (0x1UL << TSC_IOGCSR_G3S_Pos) /*!< 0x00040000 */
  14364. #define TSC_IOGCSR_G3S TSC_IOGCSR_G3S_Msk /*!<Analog IO GROUP3 status */
  14365. #define TSC_IOGCSR_G4S_Pos (19U)
  14366. #define TSC_IOGCSR_G4S_Msk (0x1UL << TSC_IOGCSR_G4S_Pos) /*!< 0x00080000 */
  14367. #define TSC_IOGCSR_G4S TSC_IOGCSR_G4S_Msk /*!<Analog IO GROUP4 status */
  14368. #define TSC_IOGCSR_G5S_Pos (20U)
  14369. #define TSC_IOGCSR_G5S_Msk (0x1UL << TSC_IOGCSR_G5S_Pos) /*!< 0x00100000 */
  14370. #define TSC_IOGCSR_G5S TSC_IOGCSR_G5S_Msk /*!<Analog IO GROUP5 status */
  14371. #define TSC_IOGCSR_G6S_Pos (21U)
  14372. #define TSC_IOGCSR_G6S_Msk (0x1UL << TSC_IOGCSR_G6S_Pos) /*!< 0x00200000 */
  14373. #define TSC_IOGCSR_G6S TSC_IOGCSR_G6S_Msk /*!<Analog IO GROUP6 status */
  14374. #define TSC_IOGCSR_G7S_Pos (22U)
  14375. #define TSC_IOGCSR_G7S_Msk (0x1UL << TSC_IOGCSR_G7S_Pos) /*!< 0x00400000 */
  14376. #define TSC_IOGCSR_G7S TSC_IOGCSR_G7S_Msk /*!<Analog IO GROUP7 status */
  14377. #define TSC_IOGCSR_G8S_Pos (23U)
  14378. #define TSC_IOGCSR_G8S_Msk (0x1UL << TSC_IOGCSR_G8S_Pos) /*!< 0x00800000 */
  14379. #define TSC_IOGCSR_G8S TSC_IOGCSR_G8S_Msk /*!<Analog IO GROUP8 status */
  14380. /******************* Bit definition for TSC_IOGXCR register *****************/
  14381. #define TSC_IOGXCR_CNT_Pos (0U)
  14382. #define TSC_IOGXCR_CNT_Msk (0x3FFFUL << TSC_IOGXCR_CNT_Pos) /*!< 0x00003FFF */
  14383. #define TSC_IOGXCR_CNT TSC_IOGXCR_CNT_Msk /*!<CNT[13:0] bits (Counter value) */
  14384. /******************************************************************************/
  14385. /* */
  14386. /* Serial Audio Interface */
  14387. /* */
  14388. /******************************************************************************/
  14389. /******************** Bit definition for SAI_GCR register *******************/
  14390. #define SAI_GCR_SYNCIN_Pos (0U)
  14391. #define SAI_GCR_SYNCIN_Msk (0x3UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000003 */
  14392. #define SAI_GCR_SYNCIN SAI_GCR_SYNCIN_Msk /*!<SYNCIN[1:0] bits (Synchronization Inputs) */
  14393. #define SAI_GCR_SYNCIN_0 (0x1UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000001 */
  14394. #define SAI_GCR_SYNCIN_1 (0x2UL << SAI_GCR_SYNCIN_Pos) /*!< 0x00000002 */
  14395. #define SAI_GCR_SYNCOUT_Pos (4U)
  14396. #define SAI_GCR_SYNCOUT_Msk (0x3UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000030 */
  14397. #define SAI_GCR_SYNCOUT SAI_GCR_SYNCOUT_Msk /*!<SYNCOUT[1:0] bits (Synchronization Outputs) */
  14398. #define SAI_GCR_SYNCOUT_0 (0x1UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000010 */
  14399. #define SAI_GCR_SYNCOUT_1 (0x2UL << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000020 */
  14400. /******************* Bit definition for SAI_xCR1 register *******************/
  14401. #define SAI_xCR1_MODE_Pos (0U)
  14402. #define SAI_xCR1_MODE_Msk (0x3UL << SAI_xCR1_MODE_Pos) /*!< 0x00000003 */
  14403. #define SAI_xCR1_MODE SAI_xCR1_MODE_Msk /*!<MODE[1:0] bits (Audio Block Mode) */
  14404. #define SAI_xCR1_MODE_0 (0x1UL << SAI_xCR1_MODE_Pos) /*!< 0x00000001 */
  14405. #define SAI_xCR1_MODE_1 (0x2UL << SAI_xCR1_MODE_Pos) /*!< 0x00000002 */
  14406. #define SAI_xCR1_PRTCFG_Pos (2U)
  14407. #define SAI_xCR1_PRTCFG_Msk (0x3UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x0000000C */
  14408. #define SAI_xCR1_PRTCFG SAI_xCR1_PRTCFG_Msk /*!<PRTCFG[1:0] bits (Protocol Configuration) */
  14409. #define SAI_xCR1_PRTCFG_0 (0x1UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000004 */
  14410. #define SAI_xCR1_PRTCFG_1 (0x2UL << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000008 */
  14411. #define SAI_xCR1_DS_Pos (5U)
  14412. #define SAI_xCR1_DS_Msk (0x7UL << SAI_xCR1_DS_Pos) /*!< 0x000000E0 */
  14413. #define SAI_xCR1_DS SAI_xCR1_DS_Msk /*!<DS[1:0] bits (Data Size) */
  14414. #define SAI_xCR1_DS_0 (0x1UL << SAI_xCR1_DS_Pos) /*!< 0x00000020 */
  14415. #define SAI_xCR1_DS_1 (0x2UL << SAI_xCR1_DS_Pos) /*!< 0x00000040 */
  14416. #define SAI_xCR1_DS_2 (0x4UL << SAI_xCR1_DS_Pos) /*!< 0x00000080 */
  14417. #define SAI_xCR1_LSBFIRST_Pos (8U)
  14418. #define SAI_xCR1_LSBFIRST_Msk (0x1UL << SAI_xCR1_LSBFIRST_Pos) /*!< 0x00000100 */
  14419. #define SAI_xCR1_LSBFIRST SAI_xCR1_LSBFIRST_Msk /*!<LSB First Configuration */
  14420. #define SAI_xCR1_CKSTR_Pos (9U)
  14421. #define SAI_xCR1_CKSTR_Msk (0x1UL << SAI_xCR1_CKSTR_Pos) /*!< 0x00000200 */
  14422. #define SAI_xCR1_CKSTR SAI_xCR1_CKSTR_Msk /*!<ClocK STRobing edge */
  14423. #define SAI_xCR1_SYNCEN_Pos (10U)
  14424. #define SAI_xCR1_SYNCEN_Msk (0x3UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000C00 */
  14425. #define SAI_xCR1_SYNCEN SAI_xCR1_SYNCEN_Msk /*!<SYNCEN[1:0](SYNChronization ENable) */
  14426. #define SAI_xCR1_SYNCEN_0 (0x1UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000400 */
  14427. #define SAI_xCR1_SYNCEN_1 (0x2UL << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000800 */
  14428. #define SAI_xCR1_MONO_Pos (12U)
  14429. #define SAI_xCR1_MONO_Msk (0x1UL << SAI_xCR1_MONO_Pos) /*!< 0x00001000 */
  14430. #define SAI_xCR1_MONO SAI_xCR1_MONO_Msk /*!<Mono mode */
  14431. #define SAI_xCR1_OUTDRIV_Pos (13U)
  14432. #define SAI_xCR1_OUTDRIV_Msk (0x1UL << SAI_xCR1_OUTDRIV_Pos) /*!< 0x00002000 */
  14433. #define SAI_xCR1_OUTDRIV SAI_xCR1_OUTDRIV_Msk /*!<Output Drive */
  14434. #define SAI_xCR1_SAIEN_Pos (16U)
  14435. #define SAI_xCR1_SAIEN_Msk (0x1UL << SAI_xCR1_SAIEN_Pos) /*!< 0x00010000 */
  14436. #define SAI_xCR1_SAIEN SAI_xCR1_SAIEN_Msk /*!<Audio Block enable */
  14437. #define SAI_xCR1_DMAEN_Pos (17U)
  14438. #define SAI_xCR1_DMAEN_Msk (0x1UL << SAI_xCR1_DMAEN_Pos) /*!< 0x00020000 */
  14439. #define SAI_xCR1_DMAEN SAI_xCR1_DMAEN_Msk /*!<DMA enable */
  14440. #define SAI_xCR1_NODIV_Pos (19U)
  14441. #define SAI_xCR1_NODIV_Msk (0x1UL << SAI_xCR1_NODIV_Pos) /*!< 0x00080000 */
  14442. #define SAI_xCR1_NODIV SAI_xCR1_NODIV_Msk /*!<No Divider Configuration */
  14443. #define SAI_xCR1_MCKDIV_Pos (20U)
  14444. #define SAI_xCR1_MCKDIV_Msk (0x3FUL << SAI_xCR1_MCKDIV_Pos) /*!< 0x03F00000 */
  14445. #define SAI_xCR1_MCKDIV SAI_xCR1_MCKDIV_Msk /*!<MCKDIV[5:0] (Master ClocK Divider) */
  14446. #define SAI_xCR1_MCKDIV_0 (0x1UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00100000 */
  14447. #define SAI_xCR1_MCKDIV_1 (0x2UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00200000 */
  14448. #define SAI_xCR1_MCKDIV_2 (0x4UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00400000 */
  14449. #define SAI_xCR1_MCKDIV_3 (0x8UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x00800000 */
  14450. #define SAI_xCR1_MCKDIV_4 (0x10UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x01000000 */
  14451. #define SAI_xCR1_MCKDIV_5 (0x20UL << SAI_xCR1_MCKDIV_Pos) /*!< 0x02000000 */
  14452. #define SAI_xCR1_OSR_Pos (26U)
  14453. #define SAI_xCR1_OSR_Msk (0x1UL << SAI_xCR1_OSR_Pos) /*!< 0x04000000 */
  14454. #define SAI_xCR1_OSR SAI_xCR1_OSR_Msk /*!<Oversampling ratio for master clock */
  14455. #define SAI_xCR1_MCKEN_Pos (27U)
  14456. #define SAI_xCR1_MCKEN_Msk (0x1UL << SAI_xCR1_MCKEN_Pos) /*!< 0x08000000 */
  14457. #define SAI_xCR1_MCKEN SAI_xCR1_MCKEN_Msk /*!<Master clock generation enable */
  14458. /******************* Bit definition for SAI_xCR2 register *******************/
  14459. #define SAI_xCR2_FTH_Pos (0U)
  14460. #define SAI_xCR2_FTH_Msk (0x7UL << SAI_xCR2_FTH_Pos) /*!< 0x00000007 */
  14461. #define SAI_xCR2_FTH SAI_xCR2_FTH_Msk /*!<FTH[2:0](Fifo THreshold) */
  14462. #define SAI_xCR2_FTH_0 (0x1UL << SAI_xCR2_FTH_Pos) /*!< 0x00000001 */
  14463. #define SAI_xCR2_FTH_1 (0x2UL << SAI_xCR2_FTH_Pos) /*!< 0x00000002 */
  14464. #define SAI_xCR2_FTH_2 (0x4UL << SAI_xCR2_FTH_Pos) /*!< 0x00000004 */
  14465. #define SAI_xCR2_FFLUSH_Pos (3U)
  14466. #define SAI_xCR2_FFLUSH_Msk (0x1UL << SAI_xCR2_FFLUSH_Pos) /*!< 0x00000008 */
  14467. #define SAI_xCR2_FFLUSH SAI_xCR2_FFLUSH_Msk /*!<Fifo FLUSH */
  14468. #define SAI_xCR2_TRIS_Pos (4U)
  14469. #define SAI_xCR2_TRIS_Msk (0x1UL << SAI_xCR2_TRIS_Pos) /*!< 0x00000010 */
  14470. #define SAI_xCR2_TRIS SAI_xCR2_TRIS_Msk /*!<TRIState Management on data line */
  14471. #define SAI_xCR2_MUTE_Pos (5U)
  14472. #define SAI_xCR2_MUTE_Msk (0x1UL << SAI_xCR2_MUTE_Pos) /*!< 0x00000020 */
  14473. #define SAI_xCR2_MUTE SAI_xCR2_MUTE_Msk /*!<Mute mode */
  14474. #define SAI_xCR2_MUTEVAL_Pos (6U)
  14475. #define SAI_xCR2_MUTEVAL_Msk (0x1UL << SAI_xCR2_MUTEVAL_Pos) /*!< 0x00000040 */
  14476. #define SAI_xCR2_MUTEVAL SAI_xCR2_MUTEVAL_Msk /*!<Muate value */
  14477. #define SAI_xCR2_MUTECNT_Pos (7U)
  14478. #define SAI_xCR2_MUTECNT_Msk (0x3FUL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001F80 */
  14479. #define SAI_xCR2_MUTECNT SAI_xCR2_MUTECNT_Msk /*!<MUTECNT[5:0] (MUTE counter) */
  14480. #define SAI_xCR2_MUTECNT_0 (0x01UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000080 */
  14481. #define SAI_xCR2_MUTECNT_1 (0x02UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000100 */
  14482. #define SAI_xCR2_MUTECNT_2 (0x04UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000200 */
  14483. #define SAI_xCR2_MUTECNT_3 (0x08UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000400 */
  14484. #define SAI_xCR2_MUTECNT_4 (0x10UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000800 */
  14485. #define SAI_xCR2_MUTECNT_5 (0x20UL << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001000 */
  14486. #define SAI_xCR2_CPL_Pos (13U)
  14487. #define SAI_xCR2_CPL_Msk (0x1UL << SAI_xCR2_CPL_Pos) /*!< 0x00002000 */
  14488. #define SAI_xCR2_CPL SAI_xCR2_CPL_Msk /*!<CPL mode */
  14489. #define SAI_xCR2_COMP_Pos (14U)
  14490. #define SAI_xCR2_COMP_Msk (0x3UL << SAI_xCR2_COMP_Pos) /*!< 0x0000C000 */
  14491. #define SAI_xCR2_COMP SAI_xCR2_COMP_Msk /*!<COMP[1:0] (Companding mode) */
  14492. #define SAI_xCR2_COMP_0 (0x1UL << SAI_xCR2_COMP_Pos) /*!< 0x00004000 */
  14493. #define SAI_xCR2_COMP_1 (0x2UL << SAI_xCR2_COMP_Pos) /*!< 0x00008000 */
  14494. /****************** Bit definition for SAI_xFRCR register *******************/
  14495. #define SAI_xFRCR_FRL_Pos (0U)
  14496. #define SAI_xFRCR_FRL_Msk (0xFFUL << SAI_xFRCR_FRL_Pos) /*!< 0x000000FF */
  14497. #define SAI_xFRCR_FRL SAI_xFRCR_FRL_Msk /*!<FRL[7:0](Frame length) */
  14498. #define SAI_xFRCR_FRL_0 (0x01UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000001 */
  14499. #define SAI_xFRCR_FRL_1 (0x02UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000002 */
  14500. #define SAI_xFRCR_FRL_2 (0x04UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000004 */
  14501. #define SAI_xFRCR_FRL_3 (0x08UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000008 */
  14502. #define SAI_xFRCR_FRL_4 (0x10UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000010 */
  14503. #define SAI_xFRCR_FRL_5 (0x20UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000020 */
  14504. #define SAI_xFRCR_FRL_6 (0x40UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000040 */
  14505. #define SAI_xFRCR_FRL_7 (0x80UL << SAI_xFRCR_FRL_Pos) /*!< 0x00000080 */
  14506. #define SAI_xFRCR_FSALL_Pos (8U)
  14507. #define SAI_xFRCR_FSALL_Msk (0x7FUL << SAI_xFRCR_FSALL_Pos) /*!< 0x00007F00 */
  14508. #define SAI_xFRCR_FSALL SAI_xFRCR_FSALL_Msk /*!<FRL[6:0] (Frame synchronization active level length) */
  14509. #define SAI_xFRCR_FSALL_0 (0x01UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000100 */
  14510. #define SAI_xFRCR_FSALL_1 (0x02UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000200 */
  14511. #define SAI_xFRCR_FSALL_2 (0x04UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000400 */
  14512. #define SAI_xFRCR_FSALL_3 (0x08UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00000800 */
  14513. #define SAI_xFRCR_FSALL_4 (0x10UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00001000 */
  14514. #define SAI_xFRCR_FSALL_5 (0x20UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00002000 */
  14515. #define SAI_xFRCR_FSALL_6 (0x40UL << SAI_xFRCR_FSALL_Pos) /*!< 0x00004000 */
  14516. #define SAI_xFRCR_FSDEF_Pos (16U)
  14517. #define SAI_xFRCR_FSDEF_Msk (0x1UL << SAI_xFRCR_FSDEF_Pos) /*!< 0x00010000 */
  14518. #define SAI_xFRCR_FSDEF SAI_xFRCR_FSDEF_Msk /*!< Frame Synchronization Definition */
  14519. #define SAI_xFRCR_FSPOL_Pos (17U)
  14520. #define SAI_xFRCR_FSPOL_Msk (0x1UL << SAI_xFRCR_FSPOL_Pos) /*!< 0x00020000 */
  14521. #define SAI_xFRCR_FSPOL SAI_xFRCR_FSPOL_Msk /*!<Frame Synchronization POLarity */
  14522. #define SAI_xFRCR_FSOFF_Pos (18U)
  14523. #define SAI_xFRCR_FSOFF_Msk (0x1UL << SAI_xFRCR_FSOFF_Pos) /*!< 0x00040000 */
  14524. #define SAI_xFRCR_FSOFF SAI_xFRCR_FSOFF_Msk /*!<Frame Synchronization OFFset */
  14525. /****************** Bit definition for SAI_xSLOTR register *******************/
  14526. #define SAI_xSLOTR_FBOFF_Pos (0U)
  14527. #define SAI_xSLOTR_FBOFF_Msk (0x1FUL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x0000001F */
  14528. #define SAI_xSLOTR_FBOFF SAI_xSLOTR_FBOFF_Msk /*!<FRL[4:0](First Bit Offset) */
  14529. #define SAI_xSLOTR_FBOFF_0 (0x01UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000001 */
  14530. #define SAI_xSLOTR_FBOFF_1 (0x02UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000002 */
  14531. #define SAI_xSLOTR_FBOFF_2 (0x04UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000004 */
  14532. #define SAI_xSLOTR_FBOFF_3 (0x08UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000008 */
  14533. #define SAI_xSLOTR_FBOFF_4 (0x10UL << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000010 */
  14534. #define SAI_xSLOTR_SLOTSZ_Pos (6U)
  14535. #define SAI_xSLOTR_SLOTSZ_Msk (0x3UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x000000C0 */
  14536. #define SAI_xSLOTR_SLOTSZ SAI_xSLOTR_SLOTSZ_Msk /*!<SLOTSZ[1:0] (Slot size) */
  14537. #define SAI_xSLOTR_SLOTSZ_0 (0x1UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000040 */
  14538. #define SAI_xSLOTR_SLOTSZ_1 (0x2UL << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000080 */
  14539. #define SAI_xSLOTR_NBSLOT_Pos (8U)
  14540. #define SAI_xSLOTR_NBSLOT_Msk (0xFUL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000F00 */
  14541. #define SAI_xSLOTR_NBSLOT SAI_xSLOTR_NBSLOT_Msk /*!<NBSLOT[3:0] (Number of Slot in audio Frame) */
  14542. #define SAI_xSLOTR_NBSLOT_0 (0x1UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000100 */
  14543. #define SAI_xSLOTR_NBSLOT_1 (0x2UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000200 */
  14544. #define SAI_xSLOTR_NBSLOT_2 (0x4UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000400 */
  14545. #define SAI_xSLOTR_NBSLOT_3 (0x8UL << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000800 */
  14546. #define SAI_xSLOTR_SLOTEN_Pos (16U)
  14547. #define SAI_xSLOTR_SLOTEN_Msk (0xFFFFUL << SAI_xSLOTR_SLOTEN_Pos) /*!< 0xFFFF0000 */
  14548. #define SAI_xSLOTR_SLOTEN SAI_xSLOTR_SLOTEN_Msk /*!<SLOTEN[15:0] (Slot Enable) */
  14549. /******************* Bit definition for SAI_xIMR register *******************/
  14550. #define SAI_xIMR_OVRUDRIE_Pos (0U)
  14551. #define SAI_xIMR_OVRUDRIE_Msk (0x1UL << SAI_xIMR_OVRUDRIE_Pos) /*!< 0x00000001 */
  14552. #define SAI_xIMR_OVRUDRIE SAI_xIMR_OVRUDRIE_Msk /*!<Overrun underrun interrupt enable */
  14553. #define SAI_xIMR_MUTEDETIE_Pos (1U)
  14554. #define SAI_xIMR_MUTEDETIE_Msk (0x1UL << SAI_xIMR_MUTEDETIE_Pos) /*!< 0x00000002 */
  14555. #define SAI_xIMR_MUTEDETIE SAI_xIMR_MUTEDETIE_Msk /*!<Mute detection interrupt enable */
  14556. #define SAI_xIMR_WCKCFGIE_Pos (2U)
  14557. #define SAI_xIMR_WCKCFGIE_Msk (0x1UL << SAI_xIMR_WCKCFGIE_Pos) /*!< 0x00000004 */
  14558. #define SAI_xIMR_WCKCFGIE SAI_xIMR_WCKCFGIE_Msk /*!<Wrong Clock Configuration interrupt enable */
  14559. #define SAI_xIMR_FREQIE_Pos (3U)
  14560. #define SAI_xIMR_FREQIE_Msk (0x1UL << SAI_xIMR_FREQIE_Pos) /*!< 0x00000008 */
  14561. #define SAI_xIMR_FREQIE SAI_xIMR_FREQIE_Msk /*!<FIFO request interrupt enable */
  14562. #define SAI_xIMR_CNRDYIE_Pos (4U)
  14563. #define SAI_xIMR_CNRDYIE_Msk (0x1UL << SAI_xIMR_CNRDYIE_Pos) /*!< 0x00000010 */
  14564. #define SAI_xIMR_CNRDYIE SAI_xIMR_CNRDYIE_Msk /*!<Codec not ready interrupt enable */
  14565. #define SAI_xIMR_AFSDETIE_Pos (5U)
  14566. #define SAI_xIMR_AFSDETIE_Msk (0x1UL << SAI_xIMR_AFSDETIE_Pos) /*!< 0x00000020 */
  14567. #define SAI_xIMR_AFSDETIE SAI_xIMR_AFSDETIE_Msk /*!<Anticipated frame synchronization detection interrupt enable */
  14568. #define SAI_xIMR_LFSDETIE_Pos (6U)
  14569. #define SAI_xIMR_LFSDETIE_Msk (0x1UL << SAI_xIMR_LFSDETIE_Pos) /*!< 0x00000040 */
  14570. #define SAI_xIMR_LFSDETIE SAI_xIMR_LFSDETIE_Msk /*!<Late frame synchronization detection interrupt enable */
  14571. /******************** Bit definition for SAI_xSR register *******************/
  14572. #define SAI_xSR_OVRUDR_Pos (0U)
  14573. #define SAI_xSR_OVRUDR_Msk (0x1UL << SAI_xSR_OVRUDR_Pos) /*!< 0x00000001 */
  14574. #define SAI_xSR_OVRUDR SAI_xSR_OVRUDR_Msk /*!<Overrun underrun */
  14575. #define SAI_xSR_MUTEDET_Pos (1U)
  14576. #define SAI_xSR_MUTEDET_Msk (0x1UL << SAI_xSR_MUTEDET_Pos) /*!< 0x00000002 */
  14577. #define SAI_xSR_MUTEDET SAI_xSR_MUTEDET_Msk /*!<Mute detection */
  14578. #define SAI_xSR_WCKCFG_Pos (2U)
  14579. #define SAI_xSR_WCKCFG_Msk (0x1UL << SAI_xSR_WCKCFG_Pos) /*!< 0x00000004 */
  14580. #define SAI_xSR_WCKCFG SAI_xSR_WCKCFG_Msk /*!<Wrong Clock Configuration */
  14581. #define SAI_xSR_FREQ_Pos (3U)
  14582. #define SAI_xSR_FREQ_Msk (0x1UL << SAI_xSR_FREQ_Pos) /*!< 0x00000008 */
  14583. #define SAI_xSR_FREQ SAI_xSR_FREQ_Msk /*!<FIFO request */
  14584. #define SAI_xSR_CNRDY_Pos (4U)
  14585. #define SAI_xSR_CNRDY_Msk (0x1UL << SAI_xSR_CNRDY_Pos) /*!< 0x00000010 */
  14586. #define SAI_xSR_CNRDY SAI_xSR_CNRDY_Msk /*!<Codec not ready */
  14587. #define SAI_xSR_AFSDET_Pos (5U)
  14588. #define SAI_xSR_AFSDET_Msk (0x1UL << SAI_xSR_AFSDET_Pos) /*!< 0x00000020 */
  14589. #define SAI_xSR_AFSDET SAI_xSR_AFSDET_Msk /*!<Anticipated frame synchronization detection */
  14590. #define SAI_xSR_LFSDET_Pos (6U)
  14591. #define SAI_xSR_LFSDET_Msk (0x1UL << SAI_xSR_LFSDET_Pos) /*!< 0x00000040 */
  14592. #define SAI_xSR_LFSDET SAI_xSR_LFSDET_Msk /*!<Late frame synchronization detection */
  14593. #define SAI_xSR_FLVL_Pos (16U)
  14594. #define SAI_xSR_FLVL_Msk (0x7UL << SAI_xSR_FLVL_Pos) /*!< 0x00070000 */
  14595. #define SAI_xSR_FLVL SAI_xSR_FLVL_Msk /*!<FLVL[2:0] (FIFO Level Threshold) */
  14596. #define SAI_xSR_FLVL_0 (0x1UL << SAI_xSR_FLVL_Pos) /*!< 0x00010000 */
  14597. #define SAI_xSR_FLVL_1 (0x2UL << SAI_xSR_FLVL_Pos) /*!< 0x00020000 */
  14598. #define SAI_xSR_FLVL_2 (0x4UL << SAI_xSR_FLVL_Pos) /*!< 0x00040000 */
  14599. /****************** Bit definition for SAI_xCLRFR register ******************/
  14600. #define SAI_xCLRFR_COVRUDR_Pos (0U)
  14601. #define SAI_xCLRFR_COVRUDR_Msk (0x1UL << SAI_xCLRFR_COVRUDR_Pos) /*!< 0x00000001 */
  14602. #define SAI_xCLRFR_COVRUDR SAI_xCLRFR_COVRUDR_Msk /*!<Clear Overrun underrun */
  14603. #define SAI_xCLRFR_CMUTEDET_Pos (1U)
  14604. #define SAI_xCLRFR_CMUTEDET_Msk (0x1UL << SAI_xCLRFR_CMUTEDET_Pos) /*!< 0x00000002 */
  14605. #define SAI_xCLRFR_CMUTEDET SAI_xCLRFR_CMUTEDET_Msk /*!<Clear Mute detection */
  14606. #define SAI_xCLRFR_CWCKCFG_Pos (2U)
  14607. #define SAI_xCLRFR_CWCKCFG_Msk (0x1UL << SAI_xCLRFR_CWCKCFG_Pos) /*!< 0x00000004 */
  14608. #define SAI_xCLRFR_CWCKCFG SAI_xCLRFR_CWCKCFG_Msk /*!<Clear Wrong Clock Configuration */
  14609. #define SAI_xCLRFR_CFREQ_Pos (3U)
  14610. #define SAI_xCLRFR_CFREQ_Msk (0x1UL << SAI_xCLRFR_CFREQ_Pos) /*!< 0x00000008 */
  14611. #define SAI_xCLRFR_CFREQ SAI_xCLRFR_CFREQ_Msk /*!<Clear FIFO request */
  14612. #define SAI_xCLRFR_CCNRDY_Pos (4U)
  14613. #define SAI_xCLRFR_CCNRDY_Msk (0x1UL << SAI_xCLRFR_CCNRDY_Pos) /*!< 0x00000010 */
  14614. #define SAI_xCLRFR_CCNRDY SAI_xCLRFR_CCNRDY_Msk /*!<Clear Codec not ready */
  14615. #define SAI_xCLRFR_CAFSDET_Pos (5U)
  14616. #define SAI_xCLRFR_CAFSDET_Msk (0x1UL << SAI_xCLRFR_CAFSDET_Pos) /*!< 0x00000020 */
  14617. #define SAI_xCLRFR_CAFSDET SAI_xCLRFR_CAFSDET_Msk /*!<Clear Anticipated frame synchronization detection */
  14618. #define SAI_xCLRFR_CLFSDET_Pos (6U)
  14619. #define SAI_xCLRFR_CLFSDET_Msk (0x1UL << SAI_xCLRFR_CLFSDET_Pos) /*!< 0x00000040 */
  14620. #define SAI_xCLRFR_CLFSDET SAI_xCLRFR_CLFSDET_Msk /*!<Clear Late frame synchronization detection */
  14621. /****************** Bit definition for SAI_xDR register ******************/
  14622. #define SAI_xDR_DATA_Pos (0U)
  14623. #define SAI_xDR_DATA_Msk (0xFFFFFFFFUL << SAI_xDR_DATA_Pos) /*!< 0xFFFFFFFF */
  14624. #define SAI_xDR_DATA SAI_xDR_DATA_Msk
  14625. /****************** Bit definition for SAI_PDMCR register *******************/
  14626. #define SAI_PDMCR_PDMEN_Pos (0U)
  14627. #define SAI_PDMCR_PDMEN_Msk (0x1UL << SAI_PDMCR_PDMEN_Pos) /*!< 0x00000001 */
  14628. #define SAI_PDMCR_PDMEN SAI_PDMCR_PDMEN_Msk /*!<PDM enable */
  14629. #define SAI_PDMCR_MICNBR_Pos (4U)
  14630. #define SAI_PDMCR_MICNBR_Msk (0x3UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000030 */
  14631. #define SAI_PDMCR_MICNBR SAI_PDMCR_MICNBR_Msk /*!<MICNBR[1:0] (Number of microphones) */
  14632. #define SAI_PDMCR_MICNBR_0 (0x1UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000010 */
  14633. #define SAI_PDMCR_MICNBR_1 (0x2UL << SAI_PDMCR_MICNBR_Pos) /*!< 0x00000020 */
  14634. #define SAI_PDMCR_CKEN1_Pos (8U)
  14635. #define SAI_PDMCR_CKEN1_Msk (0x1UL << SAI_PDMCR_CKEN1_Pos) /*!< 0x00000100 */
  14636. #define SAI_PDMCR_CKEN1 SAI_PDMCR_CKEN1_Msk /*!<Clock 1 enable */
  14637. #define SAI_PDMCR_CKEN2_Pos (9U)
  14638. #define SAI_PDMCR_CKEN2_Msk (0x1UL << SAI_PDMCR_CKEN2_Pos) /*!< 0x00000200 */
  14639. #define SAI_PDMCR_CKEN2 SAI_PDMCR_CKEN2_Msk /*!<Clock 2 enable */
  14640. #define SAI_PDMCR_CKEN3_Pos (10U)
  14641. #define SAI_PDMCR_CKEN3_Msk (0x1UL << SAI_PDMCR_CKEN3_Pos) /*!< 0x00000400 */
  14642. #define SAI_PDMCR_CKEN3 SAI_PDMCR_CKEN3_Msk /*!<Clock 3 enable */
  14643. #define SAI_PDMCR_CKEN4_Pos (11U)
  14644. #define SAI_PDMCR_CKEN4_Msk (0x1UL << SAI_PDMCR_CKEN4_Pos) /*!< 0x00000800 */
  14645. #define SAI_PDMCR_CKEN4 SAI_PDMCR_CKEN4_Msk /*!<Clock 4 enable */
  14646. /****************** Bit definition for SAI_PDMDLY register ******************/
  14647. #define SAI_PDMDLY_DLYM1L_Pos (0U)
  14648. #define SAI_PDMDLY_DLYM1L_Msk (0x7UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000007 */
  14649. #define SAI_PDMDLY_DLYM1L SAI_PDMDLY_DLYM1L_Msk /*!<DLYM1L[2:0] (Delay line adjust for left microphone of pair 1) */
  14650. #define SAI_PDMDLY_DLYM1L_0 (0x1UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000001 */
  14651. #define SAI_PDMDLY_DLYM1L_1 (0x2UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000002 */
  14652. #define SAI_PDMDLY_DLYM1L_2 (0x4UL << SAI_PDMDLY_DLYM1L_Pos) /*!< 0x00000004 */
  14653. #define SAI_PDMDLY_DLYM1R_Pos (4U)
  14654. #define SAI_PDMDLY_DLYM1R_Msk (0x7UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000070 */
  14655. #define SAI_PDMDLY_DLYM1R SAI_PDMDLY_DLYM1R_Msk /*!<DLYM1R[2:0] (Delay line adjust for right microphone of pair 1) */
  14656. #define SAI_PDMDLY_DLYM1R_0 (0x1UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000010 */
  14657. #define SAI_PDMDLY_DLYM1R_1 (0x2UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000020 */
  14658. #define SAI_PDMDLY_DLYM1R_2 (0x4UL << SAI_PDMDLY_DLYM1R_Pos) /*!< 0x00000040 */
  14659. #define SAI_PDMDLY_DLYM2L_Pos (8U)
  14660. #define SAI_PDMDLY_DLYM2L_Msk (0x7UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000700 */
  14661. #define SAI_PDMDLY_DLYM2L SAI_PDMDLY_DLYM2L_Msk /*!<DLYM2L[2:0] (Delay line adjust for left microphone of pair 2) */
  14662. #define SAI_PDMDLY_DLYM2L_0 (0x1UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000100 */
  14663. #define SAI_PDMDLY_DLYM2L_1 (0x2UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000200 */
  14664. #define SAI_PDMDLY_DLYM2L_2 (0x4UL << SAI_PDMDLY_DLYM2L_Pos) /*!< 0x00000400 */
  14665. #define SAI_PDMDLY_DLYM2R_Pos (12U)
  14666. #define SAI_PDMDLY_DLYM2R_Msk (0x7UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00007000 */
  14667. #define SAI_PDMDLY_DLYM2R SAI_PDMDLY_DLYM2R_Msk /*!<DLYM2R[2:0] (Delay line adjust for right microphone of pair 2) */
  14668. #define SAI_PDMDLY_DLYM2R_0 (0x1UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00001000 */
  14669. #define SAI_PDMDLY_DLYM2R_1 (0x2UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00002000 */
  14670. #define SAI_PDMDLY_DLYM2R_2 (0x4UL << SAI_PDMDLY_DLYM2R_Pos) /*!< 0x00004000 */
  14671. #define SAI_PDMDLY_DLYM3L_Pos (16U)
  14672. #define SAI_PDMDLY_DLYM3L_Msk (0x7UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00070000 */
  14673. #define SAI_PDMDLY_DLYM3L SAI_PDMDLY_DLYM3L_Msk /*!<DLYM3L[2:0] (Delay line adjust for left microphone of pair 3) */
  14674. #define SAI_PDMDLY_DLYM3L_0 (0x1UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00010000 */
  14675. #define SAI_PDMDLY_DLYM3L_1 (0x2UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00020000 */
  14676. #define SAI_PDMDLY_DLYM3L_2 (0x4UL << SAI_PDMDLY_DLYM3L_Pos) /*!< 0x00040000 */
  14677. #define SAI_PDMDLY_DLYM3R_Pos (20U)
  14678. #define SAI_PDMDLY_DLYM3R_Msk (0x7UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00700000 */
  14679. #define SAI_PDMDLY_DLYM3R SAI_PDMDLY_DLYM3R_Msk /*!<DLYM3R[2:0] (Delay line adjust for right microphone of pair 3) */
  14680. #define SAI_PDMDLY_DLYM3R_0 (0x1UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00100000 */
  14681. #define SAI_PDMDLY_DLYM3R_1 (0x2UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00200000 */
  14682. #define SAI_PDMDLY_DLYM3R_2 (0x4UL << SAI_PDMDLY_DLYM3R_Pos) /*!< 0x00400000 */
  14683. #define SAI_PDMDLY_DLYM4L_Pos (24U)
  14684. #define SAI_PDMDLY_DLYM4L_Msk (0x7UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x07000000 */
  14685. #define SAI_PDMDLY_DLYM4L SAI_PDMDLY_DLYM4L_Msk /*!<DLYM4L[2:0] (Delay line adjust for left microphone of pair 4) */
  14686. #define SAI_PDMDLY_DLYM4L_0 (0x1UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x01000000 */
  14687. #define SAI_PDMDLY_DLYM4L_1 (0x2UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x02000000 */
  14688. #define SAI_PDMDLY_DLYM4L_2 (0x4UL << SAI_PDMDLY_DLYM4L_Pos) /*!< 0x04000000 */
  14689. #define SAI_PDMDLY_DLYM4R_Pos (28U)
  14690. #define SAI_PDMDLY_DLYM4R_Msk (0x7UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x70000000 */
  14691. #define SAI_PDMDLY_DLYM4R SAI_PDMDLY_DLYM4R_Msk /*!<DLYM4R[2:0] (Delay line adjust for right microphone of pair 4) */
  14692. #define SAI_PDMDLY_DLYM4R_0 (0x1UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x10000000 */
  14693. #define SAI_PDMDLY_DLYM4R_1 (0x2UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x20000000 */
  14694. #define SAI_PDMDLY_DLYM4R_2 (0x4UL << SAI_PDMDLY_DLYM4R_Pos) /*!< 0x40000000 */
  14695. /******************************************************************************/
  14696. /* */
  14697. /* SYSCFG */
  14698. /* */
  14699. /******************************************************************************/
  14700. /****************** Bit definition for SYSCFG_SECCFGR register **************/
  14701. #define SYSCFG_SECCFGR_SYSCFGSEC_Pos (0U)
  14702. #define SYSCFG_SECCFGR_SYSCFGSEC_Msk (0x1UL << SYSCFG_SECCFGR_SYSCFGSEC_Pos) /*!< 0x00000001 */
  14703. #define SYSCFG_SECCFGR_SYSCFGSEC SYSCFG_SECCFGR_SYSCFGSEC_Msk /*!< SYSCFG clock control security enable */
  14704. #define SYSCFG_SECCFGR_CLASSBSEC_Pos (1U)
  14705. #define SYSCFG_SECCFGR_CLASSBSEC_Msk (0x1UL << SYSCFG_SECCFGR_CLASSBSEC_Pos) /*!< 0x00000002 */
  14706. #define SYSCFG_SECCFGR_CLASSBSEC SYSCFG_SECCFGR_CLASSBSEC_Msk /*!< ClassB SYSCFG security enable */
  14707. #define SYSCFG_SECCFGR_SRAM2SEC_Pos (2U)
  14708. #define SYSCFG_SECCFGR_SRAM2SEC_Msk (0x1UL << SYSCFG_SECCFGR_SRAM2SEC_Pos) /*!< 0x00000004 */
  14709. #define SYSCFG_SECCFGR_SRAM2SEC SYSCFG_SECCFGR_SRAM2SEC_Msk /*!< SRAM2 SYSCFG security enable */
  14710. #define SYSCFG_SECCFGR_FPUSEC_Pos (3U)
  14711. #define SYSCFG_SECCFGR_FPUSEC_Msk (0x1UL << SYSCFG_SECCFGR_FPUSEC_Pos) /*!< 0x00000008 */
  14712. #define SYSCFG_SECCFGR_FPUSEC SYSCFG_SECCFGR_FPUSEC_Msk /*!< FPU SYSCFG security enable */
  14713. /****************** Bit definition for SYSCFG_CFGR1 register ****************/
  14714. #define SYSCFG_CFGR1_BOOSTEN_Pos (8U)
  14715. #define SYSCFG_CFGR1_BOOSTEN_Msk (0x1UL << SYSCFG_CFGR1_BOOSTEN_Pos) /*!< 0x00000100 */
  14716. #define SYSCFG_CFGR1_BOOSTEN SYSCFG_CFGR1_BOOSTEN_Msk /*!< I/O analog switch voltage booster enable */
  14717. #define SYSCFG_CFGR1_ANASWVDD_Pos (9U)
  14718. #define SYSCFG_CFGR1_ANASWVDD_Msk (0x1UL << SYSCFG_CFGR1_ANASWVDD_Pos) /*!< 0x00000200 */
  14719. #define SYSCFG_CFGR1_ANASWVDD SYSCFG_CFGR1_ANASWVDD_Msk /*!< GPIO analog switch control voltage selection enable */
  14720. #define SYSCFG_CFGR1_I2C_PB6_FMP_Pos (16U)
  14721. #define SYSCFG_CFGR1_I2C_PB6_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB6_FMP_Pos)/*!< 0x00010000 */
  14722. #define SYSCFG_CFGR1_I2C_PB6_FMP SYSCFG_CFGR1_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */
  14723. #define SYSCFG_CFGR1_I2C_PB7_FMP_Pos (17U)
  14724. #define SYSCFG_CFGR1_I2C_PB7_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB7_FMP_Pos)/*!< 0x00020000 */
  14725. #define SYSCFG_CFGR1_I2C_PB7_FMP SYSCFG_CFGR1_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */
  14726. #define SYSCFG_CFGR1_I2C_PB8_FMP_Pos (18U)
  14727. #define SYSCFG_CFGR1_I2C_PB8_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB8_FMP_Pos)/*!< 0x00040000 */
  14728. #define SYSCFG_CFGR1_I2C_PB8_FMP SYSCFG_CFGR1_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */
  14729. #define SYSCFG_CFGR1_I2C_PB9_FMP_Pos (19U)
  14730. #define SYSCFG_CFGR1_I2C_PB9_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C_PB9_FMP_Pos)/*!< 0x00080000 */
  14731. #define SYSCFG_CFGR1_I2C_PB9_FMP SYSCFG_CFGR1_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */
  14732. #define SYSCFG_CFGR1_I2C1_FMP_Pos (20U)
  14733. #define SYSCFG_CFGR1_I2C1_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C1_FMP_Pos) /*!< 0x00100000 */
  14734. #define SYSCFG_CFGR1_I2C1_FMP SYSCFG_CFGR1_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */
  14735. #define SYSCFG_CFGR1_I2C2_FMP_Pos (21U)
  14736. #define SYSCFG_CFGR1_I2C2_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C2_FMP_Pos) /*!< 0x00200000 */
  14737. #define SYSCFG_CFGR1_I2C2_FMP SYSCFG_CFGR1_I2C2_FMP_Msk /*!< I2C2 Fast mode plus */
  14738. #define SYSCFG_CFGR1_I2C3_FMP_Pos (22U)
  14739. #define SYSCFG_CFGR1_I2C3_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C3_FMP_Pos) /*!< 0x00400000 */
  14740. #define SYSCFG_CFGR1_I2C3_FMP SYSCFG_CFGR1_I2C3_FMP_Msk /*!< I2C3 Fast mode plus */
  14741. #define SYSCFG_CFGR1_I2C4_FMP_Pos (23U)
  14742. #define SYSCFG_CFGR1_I2C4_FMP_Msk (0x1UL << SYSCFG_CFGR1_I2C4_FMP_Pos) /*!< 0x00800000 */
  14743. #define SYSCFG_CFGR1_I2C4_FMP SYSCFG_CFGR1_I2C4_FMP_Msk /*!< I2C4 Fast mode plus */
  14744. /****************** Bit definition for SYSCFG_FPUIMR register ***************/
  14745. #define SYSCFG_FPUIMR_FPU_IE_Pos (0U)
  14746. #define SYSCFG_FPUIMR_FPU_IE_Msk (0x3FUL << SYSCFG_FPUIMR_FPU_IE_Pos) /*!< 0x0000003F */
  14747. #define SYSCFG_FPUIMR_FPU_IE SYSCFG_FPUIMR_FPU_IE_Msk /*!< All FPU interrupts enable */
  14748. #define SYSCFG_FPUIMR_FPU_IE_0_Pos (0U)
  14749. #define SYSCFG_FPUIMR_FPU_IE_0_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_0_Pos) /*!< 0x00000001 */
  14750. #define SYSCFG_FPUIMR_FPU_IE_0 SYSCFG_FPUIMR_FPU_IE_0_Msk /*!< Invalid operation Interrupt enable */
  14751. #define SYSCFG_FPUIMR_FPU_IE_1_Pos (1U)
  14752. #define SYSCFG_FPUIMR_FPU_IE_1_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_1_Pos) /*!< 0x00000002 */
  14753. #define SYSCFG_FPUIMR_FPU_IE_1 SYSCFG_FPUIMR_FPU_IE_1_Msk /*!< Divide-by-zero Interrupt enable */
  14754. #define SYSCFG_FPUIMR_FPU_IE_2_Pos (2U)
  14755. #define SYSCFG_FPUIMR_FPU_IE_2_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_2_Pos) /*!< 0x00000004 */
  14756. #define SYSCFG_FPUIMR_FPU_IE_2 SYSCFG_FPUIMR_FPU_IE_2_Msk /*!< Underflow Interrupt enable */
  14757. #define SYSCFG_FPUIMR_FPU_IE_3_Pos (3U)
  14758. #define SYSCFG_FPUIMR_FPU_IE_3_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_3_Pos) /*!< 0x00000008 */
  14759. #define SYSCFG_FPUIMR_FPU_IE_3 SYSCFG_FPUIMR_FPU_IE_3_Msk /*!< Overflow Interrupt enable */
  14760. #define SYSCFG_FPUIMR_FPU_IE_4_Pos (4U)
  14761. #define SYSCFG_FPUIMR_FPU_IE_4_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_4_Pos) /*!< 0x00000010 */
  14762. #define SYSCFG_FPUIMR_FPU_IE_4 SYSCFG_FPUIMR_FPU_IE_4_Msk /*!< Input denormal Interrupt enable */
  14763. #define SYSCFG_FPUIMR_FPU_IE_5_Pos (5U)
  14764. #define SYSCFG_FPUIMR_FPU_IE_5_Msk (0x1UL << SYSCFG_FPUIMR_FPU_IE_5_Pos) /*!< 0x00000020 */
  14765. #define SYSCFG_FPUIMR_FPU_IE_5 SYSCFG_FPUIMR_FPU_IE_5_Msk /*!< Inexact Interrupt enable */
  14766. /****************** Bit definition for SYSCFG_CNSLCKR register **************/
  14767. #define SYSCFG_CNSLCKR_LOCKNSVTOR_Pos (0U)
  14768. #define SYSCFG_CNSLCKR_LOCKNSVTOR_Msk (0x1UL << SYSCFG_CNSLCKR_LOCKNSVTOR_Pos)/*!< 0x00000001 */
  14769. #define SYSCFG_CNSLCKR_LOCKNSVTOR SYSCFG_CNSLCKR_LOCKNSVTOR_Msk /*!< Disable VTOR_NS register writes by SW or debug agent */
  14770. #define SYSCFG_CNSLCKR_LOCKNSMPU_Pos (1U)
  14771. #define SYSCFG_CNSLCKR_LOCKNSMPU_Msk (0x1UL << SYSCFG_CNSLCKR_LOCKNSMPU_Pos)/*!< 0x00000002 */
  14772. #define SYSCFG_CNSLCKR_LOCKNSMPU SYSCFG_CNSLCKR_LOCKNSMPU_Msk /*!< Disable Non-Secure MPU registers writes by SW or debug agent */
  14773. /****************** Bit definition for SYSCFG_CSLCKR register ***************/
  14774. #define SYSCFG_CSLCKR_LOCKSVTAIRCR_Pos (0U)
  14775. #define SYSCFG_CSLCKR_LOCKSVTAIRCR_Msk (0x1UL << SYSCFG_CSLCKR_LOCKSVTAIRCR_Pos)/*!< 0x00000001 */
  14776. #define SYSCFG_CSLCKR_LOCKSVTAIRCR SYSCFG_CSLCKR_LOCKSVTAIRCR_Msk /*!< Disable changes to the secure vectror table address, handling of system faults */
  14777. #define SYSCFG_CSLCKR_LOCKSMPU_Pos (1U)
  14778. #define SYSCFG_CSLCKR_LOCKSMPU_Msk (0x1UL << SYSCFG_CSLCKR_LOCKSMPU_Pos) /*!< 0x00000002 */
  14779. #define SYSCFG_CSLCKR_LOCKSMPU SYSCFG_CSLCKR_LOCKSMPU_Msk /*!< Disable changes to the secure MPU registers writes by SW or debug agent */
  14780. #define SYSCFG_CSLCKR_LOCKSAU_Pos (2U)
  14781. #define SYSCFG_CSLCKR_LOCKSAU_Msk (0x1UL << SYSCFG_CSLCKR_LOCKSAU_Pos) /*!< 0x00000002 */
  14782. #define SYSCFG_CSLCKR_LOCKSAU SYSCFG_CSLCKR_LOCKSAU_Msk /*!< Disable changes to SAU registers */
  14783. /****************** Bit definition for SYSCFG_CFGR2 register ****************/
  14784. #define SYSCFG_CFGR2_CLL_Pos (0U)
  14785. #define SYSCFG_CFGR2_CLL_Msk (0x1UL << SYSCFG_CFGR2_CLL_Pos) /*!< 0x00000001 */
  14786. #define SYSCFG_CFGR2_CLL SYSCFG_CFGR2_CLL_Msk /*!< Core Lockup Lock */
  14787. #define SYSCFG_CFGR2_SPL_Pos (1U)
  14788. #define SYSCFG_CFGR2_SPL_Msk (0x1UL << SYSCFG_CFGR2_SPL_Pos) /*!< 0x00000002 */
  14789. #define SYSCFG_CFGR2_SPL SYSCFG_CFGR2_SPL_Msk /*!< SRAM Parity Lock*/
  14790. #define SYSCFG_CFGR2_PVDL_Pos (2U)
  14791. #define SYSCFG_CFGR2_PVDL_Msk (0x1UL << SYSCFG_CFGR2_PVDL_Pos) /*!< 0x00000004 */
  14792. #define SYSCFG_CFGR2_PVDL SYSCFG_CFGR2_PVDL_Msk /*!< PVD Lock */
  14793. #define SYSCFG_CFGR2_ECCL_Pos (3U)
  14794. #define SYSCFG_CFGR2_ECCL_Msk (0x1UL << SYSCFG_CFGR2_ECCL_Pos) /*!< 0x00000008 */
  14795. #define SYSCFG_CFGR2_ECCL SYSCFG_CFGR2_ECCL_Msk /*!< ECC Lock*/
  14796. #define SYSCFG_CFGR2_SPF_Pos (8U)
  14797. #define SYSCFG_CFGR2_SPF_Msk (0x1UL << SYSCFG_CFGR2_SPF_Pos) /*!< 0x00000100 */
  14798. #define SYSCFG_CFGR2_SPF SYSCFG_CFGR2_SPF_Msk /*!< SRAM Parity Flag */
  14799. /****************** Bit definition for SYSCFG_SCSR register *****************/
  14800. #define SYSCFG_SCSR_SRAM2ER_Pos (0U)
  14801. #define SYSCFG_SCSR_SRAM2ER_Msk (0x1UL << SYSCFG_SCSR_SRAM2ER_Pos) /*!< 0x00000001 */
  14802. #define SYSCFG_SCSR_SRAM2ER SYSCFG_SCSR_SRAM2ER_Msk /*!< SRAM2 Erase Request */
  14803. #define SYSCFG_SCSR_SRAM2BSY_Pos (1U)
  14804. #define SYSCFG_SCSR_SRAM2BSY_Msk (0x1UL << SYSCFG_SCSR_SRAM2BSY_Pos) /*!< 0x00000002 */
  14805. #define SYSCFG_SCSR_SRAM2BSY SYSCFG_SCSR_SRAM2BSY_Msk /*!< SRAM2 Erase Ongoing */
  14806. /****************** Bit definition for SYSCFG_SKR register *****************/
  14807. #define SYSCFG_SKR_KEY_Pos (0U)
  14808. #define SYSCFG_SKR_KEY_Msk (0xFFUL << SYSCFG_SKR_KEY_Pos) /*!< 0x000000FF */
  14809. #define SYSCFG_SKR_KEY SYSCFG_SKR_KEY_Msk /*!< SRAM2 write protection key for software erase */
  14810. /****************** Bit definition for SYSCFG_SWPR register *****************/
  14811. #define SYSCFG_SWPR_P0WP_Pos (0U)
  14812. #define SYSCFG_SWPR_P0WP_Msk (0x1UL << SYSCFG_SWPR_P0WP_Pos) /*!< 0x00000001 */
  14813. #define SYSCFG_SWPR_P0WP SYSCFG_SWPR_P0WP_Msk /*!< SRAM2 Write protection page 0 */
  14814. #define SYSCFG_SWPR_P1WP_Pos (1U)
  14815. #define SYSCFG_SWPR_P1WP_Msk (0x1UL << SYSCFG_SWPR_P1WP_Pos) /*!< 0x00000002 */
  14816. #define SYSCFG_SWPR_P1WP SYSCFG_SWPR_P1WP_Msk /*!< SRAM2 Write protection page 1 */
  14817. #define SYSCFG_SWPR_P2WP_Pos (2U)
  14818. #define SYSCFG_SWPR_P2WP_Msk (0x1UL << SYSCFG_SWPR_P2WP_Pos) /*!< 0x00000004 */
  14819. #define SYSCFG_SWPR_P2WP SYSCFG_SWPR_P2WP_Msk /*!< SRAM2 Write protection page 2 */
  14820. #define SYSCFG_SWPR_P3WP_Pos (3U)
  14821. #define SYSCFG_SWPR_P3WP_Msk (0x1UL << SYSCFG_SWPR_P3WP_Pos) /*!< 0x00000008 */
  14822. #define SYSCFG_SWPR_P3WP SYSCFG_SWPR_P3WP_Msk /*!< SRAM2 Write protection page 3 */
  14823. #define SYSCFG_SWPR_P4WP_Pos (4U)
  14824. #define SYSCFG_SWPR_P4WP_Msk (0x1UL << SYSCFG_SWPR_P4WP_Pos) /*!< 0x00000010 */
  14825. #define SYSCFG_SWPR_P4WP SYSCFG_SWPR_P4WP_Msk /*!< SRAM2 Write protection page 4 */
  14826. #define SYSCFG_SWPR_P5WP_Pos (5U)
  14827. #define SYSCFG_SWPR_P5WP_Msk (0x1UL << SYSCFG_SWPR_P5WP_Pos) /*!< 0x00000020 */
  14828. #define SYSCFG_SWPR_P5WP SYSCFG_SWPR_P5WP_Msk /*!< SRAM2 Write protection page 5 */
  14829. #define SYSCFG_SWPR_P6WP_Pos (6U)
  14830. #define SYSCFG_SWPR_P6WP_Msk (0x1UL << SYSCFG_SWPR_P6WP_Pos) /*!< 0x00000040 */
  14831. #define SYSCFG_SWPR_P6WP SYSCFG_SWPR_P6WP_Msk /*!< SRAM2 Write protection page 6 */
  14832. #define SYSCFG_SWPR_P7WP_Pos (7U)
  14833. #define SYSCFG_SWPR_P7WP_Msk (0x1UL << SYSCFG_SWPR_P7WP_Pos) /*!< 0x00000080 */
  14834. #define SYSCFG_SWPR_P7WP SYSCFG_SWPR_P7WP_Msk /*!< SRAM2 Write protection page 7 */
  14835. #define SYSCFG_SWPR_P8WP_Pos (8U)
  14836. #define SYSCFG_SWPR_P8WP_Msk (0x1UL << SYSCFG_SWPR_P8WP_Pos) /*!< 0x00000100 */
  14837. #define SYSCFG_SWPR_P8WP SYSCFG_SWPR_P8WP_Msk /*!< SRAM2 Write protection page 8 */
  14838. #define SYSCFG_SWPR_P9WP_Pos (9U)
  14839. #define SYSCFG_SWPR_P9WP_Msk (0x1UL << SYSCFG_SWPR_P9WP_Pos) /*!< 0x00000200 */
  14840. #define SYSCFG_SWPR_P9WP SYSCFG_SWPR_P9WP_Msk /*!< SRAM2 Write protection page 9 */
  14841. #define SYSCFG_SWPR_P10WP_Pos (10U)
  14842. #define SYSCFG_SWPR_P10WP_Msk (0x1UL << SYSCFG_SWPR_P10WP_Pos) /*!< 0x00000400 */
  14843. #define SYSCFG_SWPR_P10WP SYSCFG_SWPR_P10WP_Msk /*!< SRAM2 Write protection page 10*/
  14844. #define SYSCFG_SWPR_P11WP_Pos (11U)
  14845. #define SYSCFG_SWPR_P11WP_Msk (0x1UL << SYSCFG_SWPR_P11WP_Pos) /*!< 0x00000800 */
  14846. #define SYSCFG_SWPR_P11WP SYSCFG_SWPR_P11WP_Msk /*!< SRAM2 Write protection page 11*/
  14847. #define SYSCFG_SWPR_P12WP_Pos (12U)
  14848. #define SYSCFG_SWPR_P12WP_Msk (0x1UL << SYSCFG_SWPR_P12WP_Pos) /*!< 0x00001000 */
  14849. #define SYSCFG_SWPR_P12WP SYSCFG_SWPR_P12WP_Msk /*!< SRAM2 Write protection page 12*/
  14850. #define SYSCFG_SWPR_P13WP_Pos (13U)
  14851. #define SYSCFG_SWPR_P13WP_Msk (0x1UL << SYSCFG_SWPR_P13WP_Pos) /*!< 0x00002000 */
  14852. #define SYSCFG_SWPR_P13WP SYSCFG_SWPR_P13WP_Msk /*!< SRAM2 Write protection page 13*/
  14853. #define SYSCFG_SWPR_P14WP_Pos (14U)
  14854. #define SYSCFG_SWPR_P14WP_Msk (0x1UL << SYSCFG_SWPR_P14WP_Pos) /*!< 0x00004000 */
  14855. #define SYSCFG_SWPR_P14WP SYSCFG_SWPR_P14WP_Msk /*!< SRAM2 Write protection page 14*/
  14856. #define SYSCFG_SWPR_P15WP_Pos (15U)
  14857. #define SYSCFG_SWPR_P15WP_Msk (0x1UL << SYSCFG_SWPR_P15WP_Pos) /*!< 0x00008000 */
  14858. #define SYSCFG_SWPR_P15WP SYSCFG_SWPR_P15WP_Msk /*!< SRAM2 Write protection page 15*/
  14859. #define SYSCFG_SWPR_P16WP_Pos (16U)
  14860. #define SYSCFG_SWPR_P16WP_Msk (0x1UL << SYSCFG_SWPR_P16WP_Pos) /*!< 0x00010000 */
  14861. #define SYSCFG_SWPR_P16WP SYSCFG_SWPR_P16WP_Msk /*!< SRAM2 Write protection page 16*/
  14862. #define SYSCFG_SWPR_P17WP_Pos (17U)
  14863. #define SYSCFG_SWPR_P17WP_Msk (0x1UL << SYSCFG_SWPR_P17WP_Pos) /*!< 0x00020000 */
  14864. #define SYSCFG_SWPR_P17WP SYSCFG_SWPR_P17WP_Msk /*!< SRAM2 Write protection page 17*/
  14865. #define SYSCFG_SWPR_P18WP_Pos (18U)
  14866. #define SYSCFG_SWPR_P18WP_Msk (0x1UL << SYSCFG_SWPR_P18WP_Pos) /*!< 0x00040000 */
  14867. #define SYSCFG_SWPR_P18WP SYSCFG_SWPR_P18WP_Msk /*!< SRAM2 Write protection page 18*/
  14868. #define SYSCFG_SWPR_P19WP_Pos (19U)
  14869. #define SYSCFG_SWPR_P19WP_Msk (0x1UL << SYSCFG_SWPR_P19WP_Pos) /*!< 0x00080000 */
  14870. #define SYSCFG_SWPR_P19WP SYSCFG_SWPR_P19WP_Msk /*!< SRAM2 Write protection page 19*/
  14871. #define SYSCFG_SWPR_P20WP_Pos (20U)
  14872. #define SYSCFG_SWPR_P20WP_Msk (0x1UL << SYSCFG_SWPR_P20WP_Pos) /*!< 0x00100000 */
  14873. #define SYSCFG_SWPR_P20WP SYSCFG_SWPR_P20WP_Msk /*!< SRAM2 Write protection page 20*/
  14874. #define SYSCFG_SWPR_P21WP_Pos (21U)
  14875. #define SYSCFG_SWPR_P21WP_Msk (0x1UL << SYSCFG_SWPR_P21WP_Pos) /*!< 0x00200000 */
  14876. #define SYSCFG_SWPR_P21WP SYSCFG_SWPR_P21WP_Msk /*!< SRAM2 Write protection page 21*/
  14877. #define SYSCFG_SWPR_P22WP_Pos (22U)
  14878. #define SYSCFG_SWPR_P22WP_Msk (0x1UL << SYSCFG_SWPR_P22WP_Pos) /*!< 0x00400000 */
  14879. #define SYSCFG_SWPR_P22WP SYSCFG_SWPR_P22WP_Msk /*!< SRAM2 Write protection page 22*/
  14880. #define SYSCFG_SWPR_P23WP_Pos (23U)
  14881. #define SYSCFG_SWPR_P23WP_Msk (0x1UL << SYSCFG_SWPR_P23WP_Pos) /*!< 0x00800000 */
  14882. #define SYSCFG_SWPR_P23WP SYSCFG_SWPR_P23WP_Msk /*!< SRAM2 Write protection page 23*/
  14883. #define SYSCFG_SWPR_P24WP_Pos (24U)
  14884. #define SYSCFG_SWPR_P24WP_Msk (0x1UL << SYSCFG_SWPR_P24WP_Pos) /*!< 0x01000000 */
  14885. #define SYSCFG_SWPR_P24WP SYSCFG_SWPR_P24WP_Msk /*!< SRAM2 Write protection page 24*/
  14886. #define SYSCFG_SWPR_P25WP_Pos (25U)
  14887. #define SYSCFG_SWPR_P25WP_Msk (0x1UL << SYSCFG_SWPR_P25WP_Pos) /*!< 0x02000000 */
  14888. #define SYSCFG_SWPR_P25WP SYSCFG_SWPR_P25WP_Msk /*!< SRAM2 Write protection page 25*/
  14889. #define SYSCFG_SWPR_P26WP_Pos (26U)
  14890. #define SYSCFG_SWPR_P26WP_Msk (0x1UL << SYSCFG_SWPR_P26WP_Pos) /*!< 0x04000000 */
  14891. #define SYSCFG_SWPR_P26WP SYSCFG_SWPR_P26WP_Msk /*!< SRAM2 Write protection page 26*/
  14892. #define SYSCFG_SWPR_P27WP_Pos (27U)
  14893. #define SYSCFG_SWPR_P27WP_Msk (0x1UL << SYSCFG_SWPR_P27WP_Pos) /*!< 0x08000000 */
  14894. #define SYSCFG_SWPR_P27WP SYSCFG_SWPR_P27WP_Msk /*!< SRAM2 Write protection page 27*/
  14895. #define SYSCFG_SWPR_P28WP_Pos (28U)
  14896. #define SYSCFG_SWPR_P28WP_Msk (0x1UL << SYSCFG_SWPR_P28WP_Pos) /*!< 0x10000000 */
  14897. #define SYSCFG_SWPR_P28WP SYSCFG_SWPR_P28WP_Msk /*!< SRAM2 Write protection page 28*/
  14898. #define SYSCFG_SWPR_P29WP_Pos (29U)
  14899. #define SYSCFG_SWPR_P29WP_Msk (0x1UL << SYSCFG_SWPR_P29WP_Pos) /*!< 0x20000000 */
  14900. #define SYSCFG_SWPR_P29WP SYSCFG_SWPR_P29WP_Msk /*!< SRAM2 Write protection page 29*/
  14901. #define SYSCFG_SWPR_P30WP_Pos (30U)
  14902. #define SYSCFG_SWPR_P30WP_Msk (0x1UL << SYSCFG_SWPR_P30WP_Pos) /*!< 0x40000000 */
  14903. #define SYSCFG_SWPR_P30WP SYSCFG_SWPR_P30WP_Msk /*!< SRAM2 Write protection page 30*/
  14904. #define SYSCFG_SWPR_P31WP_Pos (31U)
  14905. #define SYSCFG_SWPR_P31WP_Msk (0x1UL << SYSCFG_SWPR_P31WP_Pos) /*!< 0x80000000 */
  14906. #define SYSCFG_SWPR_P31WP SYSCFG_SWPR_P31WP_Msk /*!< SRAM2 Write protection page 31*/
  14907. /****************** Bit definition for SYSCFG_SWPR2 register ****************/
  14908. #define SYSCFG_SWPR2_P32WP_Pos (0U)
  14909. #define SYSCFG_SWPR2_P32WP_Msk (0x1UL << SYSCFG_SWPR2_P32WP_Pos) /*!< 0x00000001 */
  14910. #define SYSCFG_SWPR2_P32WP SYSCFG_SWPR2_P32WP_Msk /*!< SRAM2 Write protection page 32*/
  14911. #define SYSCFG_SWPR2_P33WP_Pos (1U)
  14912. #define SYSCFG_SWPR2_P33WP_Msk (0x1UL << SYSCFG_SWPR2_P33WP_Pos) /*!< 0x00000002 */
  14913. #define SYSCFG_SWPR2_P33WP SYSCFG_SWPR2_P33WP_Msk /*!< SRAM2 Write protection page 33*/
  14914. #define SYSCFG_SWPR2_P34WP_Pos (2U)
  14915. #define SYSCFG_SWPR2_P34WP_Msk (0x1UL << SYSCFG_SWPR2_P34WP_Pos) /*!< 0x00000004 */
  14916. #define SYSCFG_SWPR2_P34WP SYSCFG_SWPR2_P34WP_Msk /*!< SRAM2 Write protection page 34*/
  14917. #define SYSCFG_SWPR2_P35WP_Pos (3U)
  14918. #define SYSCFG_SWPR2_P35WP_Msk (0x1UL << SYSCFG_SWPR2_P35WP_Pos) /*!< 0x00000008 */
  14919. #define SYSCFG_SWPR2_P35WP SYSCFG_SWPR2_P35WP_Msk /*!< SRAM2 Write protection page 35*/
  14920. #define SYSCFG_SWPR2_P36WP_Pos (4U)
  14921. #define SYSCFG_SWPR2_P36WP_Msk (0x1UL << SYSCFG_SWPR2_P36WP_Pos) /*!< 0x00000010 */
  14922. #define SYSCFG_SWPR2_P36WP SYSCFG_SWPR2_P36WP_Msk /*!< SRAM2 Write protection page 36*/
  14923. #define SYSCFG_SWPR2_P37WP_Pos (5U)
  14924. #define SYSCFG_SWPR2_P37WP_Msk (0x1UL << SYSCFG_SWPR2_P37WP_Pos) /*!< 0x00000020 */
  14925. #define SYSCFG_SWPR2_P37WP SYSCFG_SWPR2_P37WP_Msk /*!< SRAM2 Write protection page 37*/
  14926. #define SYSCFG_SWPR2_P38WP_Pos (6U)
  14927. #define SYSCFG_SWPR2_P38WP_Msk (0x1UL << SYSCFG_SWPR2_P38WP_Pos) /*!< 0x00000040 */
  14928. #define SYSCFG_SWPR2_P38WP SYSCFG_SWPR2_P38WP_Msk /*!< SRAM2 Write protection page 38*/
  14929. #define SYSCFG_SWPR2_P39WP_Pos (7U)
  14930. #define SYSCFG_SWPR2_P39WP_Msk (0x1UL << SYSCFG_SWPR2_P39WP_Pos) /*!< 0x00000080 */
  14931. #define SYSCFG_SWPR2_P39WP SYSCFG_SWPR2_P39WP_Msk /*!< SRAM2 Write protection page 39*/
  14932. #define SYSCFG_SWPR2_P40WP_Pos (8U)
  14933. #define SYSCFG_SWPR2_P40WP_Msk (0x1UL << SYSCFG_SWPR2_P40WP_Pos) /*!< 0x00000100 */
  14934. #define SYSCFG_SWPR2_P40WP SYSCFG_SWPR2_P40WP_Msk /*!< SRAM2 Write protection page 40*/
  14935. #define SYSCFG_SWPR2_P41WP_Pos (9U)
  14936. #define SYSCFG_SWPR2_P41WP_Msk (0x1UL << SYSCFG_SWPR2_P41WP_Pos) /*!< 0x00000200 */
  14937. #define SYSCFG_SWPR2_P41WP SYSCFG_SWPR2_P41WP_Msk /*!< SRAM2 Write protection page 41*/
  14938. #define SYSCFG_SWPR2_P42WP_Pos (10U)
  14939. #define SYSCFG_SWPR2_P42WP_Msk (0x1UL << SYSCFG_SWPR2_P42WP_Pos) /*!< 0x00000400 */
  14940. #define SYSCFG_SWPR2_P42WP SYSCFG_SWPR2_P42WP_Msk /*!< SRAM2 Write protection page 42*/
  14941. #define SYSCFG_SWPR2_P43WP_Pos (11U)
  14942. #define SYSCFG_SWPR2_P43WP_Msk (0x1UL << SYSCFG_SWPR2_P43WP_Pos) /*!< 0x00000800 */
  14943. #define SYSCFG_SWPR2_P43WP SYSCFG_SWPR2_P43WP_Msk /*!< SRAM2 Write protection page 43*/
  14944. #define SYSCFG_SWPR2_P44WP_Pos (12U)
  14945. #define SYSCFG_SWPR2_P44WP_Msk (0x1UL << SYSCFG_SWPR2_P44WP_Pos) /*!< 0x00001000 */
  14946. #define SYSCFG_SWPR2_P44WP SYSCFG_SWPR2_P44WP_Msk /*!< SRAM2 Write protection page 44*/
  14947. #define SYSCFG_SWPR2_P45WP_Pos (13U)
  14948. #define SYSCFG_SWPR2_P45WP_Msk (0x1UL << SYSCFG_SWPR2_P45WP_Pos) /*!< 0x00002000 */
  14949. #define SYSCFG_SWPR2_P45WP SYSCFG_SWPR2_P45WP_Msk /*!< SRAM2 Write protection page 45*/
  14950. #define SYSCFG_SWPR2_P46WP_Pos (14U)
  14951. #define SYSCFG_SWPR2_P46WP_Msk (0x1UL << SYSCFG_SWPR2_P46WP_Pos) /*!< 0x00004000 */
  14952. #define SYSCFG_SWPR2_P46WP SYSCFG_SWPR2_P46WP_Msk /*!< SRAM2 Write protection page 46*/
  14953. #define SYSCFG_SWPR2_P47WP_Pos (15U)
  14954. #define SYSCFG_SWPR2_P47WP_Msk (0x1UL << SYSCFG_SWPR2_P47WP_Pos) /*!< 0x00008000 */
  14955. #define SYSCFG_SWPR2_P47WP SYSCFG_SWPR2_P47WP_Msk /*!< SRAM2 Write protection page 47*/
  14956. #define SYSCFG_SWPR2_P48WP_Pos (16U)
  14957. #define SYSCFG_SWPR2_P48WP_Msk (0x1UL << SYSCFG_SWPR2_P48WP_Pos) /*!< 0x00010000 */
  14958. #define SYSCFG_SWPR2_P48WP SYSCFG_SWPR2_P48WP_Msk /*!< SRAM2 Write protection page 48*/
  14959. #define SYSCFG_SWPR2_P49WP_Pos (17U)
  14960. #define SYSCFG_SWPR2_P49WP_Msk (0x1UL << SYSCFG_SWPR2_P49WP_Pos) /*!< 0x00020000 */
  14961. #define SYSCFG_SWPR2_P49WP SYSCFG_SWPR2_P49WP_Msk /*!< SRAM2 Write protection page 49*/
  14962. #define SYSCFG_SWPR2_P50WP_Pos (18U)
  14963. #define SYSCFG_SWPR2_P50WP_Msk (0x1UL << SYSCFG_SWPR2_P50WP_Pos) /*!< 0x00040000 */
  14964. #define SYSCFG_SWPR2_P50WP SYSCFG_SWPR2_P50WP_Msk /*!< SRAM2 Write protection page 50*/
  14965. #define SYSCFG_SWPR2_P51WP_Pos (19U)
  14966. #define SYSCFG_SWPR2_P51WP_Msk (0x1UL << SYSCFG_SWPR2_P51WP_Pos) /*!< 0x00080000 */
  14967. #define SYSCFG_SWPR2_P51WP SYSCFG_SWPR2_P51WP_Msk /*!< SRAM2 Write protection page 51*/
  14968. #define SYSCFG_SWPR2_P52WP_Pos (20U)
  14969. #define SYSCFG_SWPR2_P52WP_Msk (0x1UL << SYSCFG_SWPR2_P52WP_Pos) /*!< 0x00100000 */
  14970. #define SYSCFG_SWPR2_P52WP SYSCFG_SWPR2_P52WP_Msk /*!< SRAM2 Write protection page 52*/
  14971. #define SYSCFG_SWPR2_P53WP_Pos (21U)
  14972. #define SYSCFG_SWPR2_P53WP_Msk (0x1UL << SYSCFG_SWPR2_P53WP_Pos) /*!< 0x00200000 */
  14973. #define SYSCFG_SWPR2_P53WP SYSCFG_SWPR2_P53WP_Msk /*!< SRAM2 Write protection page 53*/
  14974. #define SYSCFG_SWPR2_P54WP_Pos (22U)
  14975. #define SYSCFG_SWPR2_P54WP_Msk (0x1UL << SYSCFG_SWPR2_P54WP_Pos) /*!< 0x00400000 */
  14976. #define SYSCFG_SWPR2_P54WP SYSCFG_SWPR2_P54WP_Msk /*!< SRAM2 Write protection page 54*/
  14977. #define SYSCFG_SWPR2_P55WP_Pos (23U)
  14978. #define SYSCFG_SWPR2_P55WP_Msk (0x1UL << SYSCFG_SWPR2_P55WP_Pos) /*!< 0x00800000 */
  14979. #define SYSCFG_SWPR2_P55WP SYSCFG_SWPR2_P55WP_Msk /*!< SRAM2 Write protection page 55*/
  14980. #define SYSCFG_SWPR2_P56WP_Pos (24U)
  14981. #define SYSCFG_SWPR2_P56WP_Msk (0x1UL << SYSCFG_SWPR2_P56WP_Pos) /*!< 0x01000000 */
  14982. #define SYSCFG_SWPR2_P56WP SYSCFG_SWPR2_P56WP_Msk /*!< SRAM2 Write protection page 56*/
  14983. #define SYSCFG_SWPR2_P57WP_Pos (25U)
  14984. #define SYSCFG_SWPR2_P57WP_Msk (0x1UL << SYSCFG_SWPR2_P57WP_Pos) /*!< 0x02000000 */
  14985. #define SYSCFG_SWPR2_P57WP SYSCFG_SWPR2_P57WP_Msk /*!< SRAM2 Write protection page 57*/
  14986. #define SYSCFG_SWPR2_P58WP_Pos (26U)
  14987. #define SYSCFG_SWPR2_P58WP_Msk (0x1UL << SYSCFG_SWPR2_P58WP_Pos) /*!< 0x04000000 */
  14988. #define SYSCFG_SWPR2_P58WP SYSCFG_SWPR2_P58WP_Msk /*!< SRAM2 Write protection page 58*/
  14989. #define SYSCFG_SWPR2_P59WP_Pos (27U)
  14990. #define SYSCFG_SWPR2_P59WP_Msk (0x1UL << SYSCFG_SWPR2_P59WP_Pos) /*!< 0x08000000 */
  14991. #define SYSCFG_SWPR2_P59WP SYSCFG_SWPR2_P59WP_Msk /*!< SRAM2 Write protection page 59*/
  14992. #define SYSCFG_SWPR2_P60WP_Pos (28U)
  14993. #define SYSCFG_SWPR2_P60WP_Msk (0x1UL << SYSCFG_SWPR2_P60WP_Pos) /*!< 0x10000000 */
  14994. #define SYSCFG_SWPR2_P60WP SYSCFG_SWPR2_P60WP_Msk /*!< SRAM2 Write protection page 60*/
  14995. #define SYSCFG_SWPR2_P61WP_Pos (29U)
  14996. #define SYSCFG_SWPR2_P61WP_Msk (0x1UL << SYSCFG_SWPR2_P61WP_Pos) /*!< 0x20000000 */
  14997. #define SYSCFG_SWPR2_P61WP SYSCFG_SWPR2_P61WP_Msk /*!< SRAM2 Write protection page 61*/
  14998. #define SYSCFG_SWPR2_P62WP_Pos (30U)
  14999. #define SYSCFG_SWPR2_P62WP_Msk (0x1UL << SYSCFG_SWPR2_P62WP_Pos) /*!< 0x40000000 */
  15000. #define SYSCFG_SWPR2_P62WP SYSCFG_SWPR2_P62WP_Msk /*!< SRAM2 Write protection page 62*/
  15001. #define SYSCFG_SWPR2_P63WP_Pos (31U)
  15002. #define SYSCFG_SWPR2_P63WP_Msk (0x1UL << SYSCFG_SWPR2_P63WP_Pos) /*!< 0x80000000 */
  15003. #define SYSCFG_SWPR2_P63WP SYSCFG_SWPR2_P63WP_Msk /*!< SRAM2 Write protection page 63*/
  15004. /****************** Bit definition for SYSCFG_RSSCMDR register **************/
  15005. #define SYSCFG_RSSCMDR_RSSCMD_Pos (0U)
  15006. #if defined(USE_CUT2_0)
  15007. #define SYSCFG_RSSCMDR_RSSCMD_Msk (0xFFFFUL << SYSCFG_RSSCMDR_RSSCMD_Pos) /*!< 0x0000FFFF */
  15008. #else
  15009. #define SYSCFG_RSSCMDR_RSSCMD_Msk (0xFFUL << SYSCFG_RSSCMDR_RSSCMD_Pos) /*!< 0x000000FF */
  15010. #endif
  15011. #define SYSCFG_RSSCMDR_RSSCMD SYSCFG_RSSCMDR_RSSCMD_Msk /*!< RSS commands */
  15012. /*****************************************************************************/
  15013. /* */
  15014. /* Global TrustZone Control */
  15015. /* */
  15016. /*****************************************************************************/
  15017. /******************* Bits definition for GTZC_TZSC_CR register ******************/
  15018. #define GTZC_TZSC_CR_LCK_Pos (0U)
  15019. #define GTZC_TZSC_CR_LCK_Msk (0x01UL << GTZC_TZSC_CR_LCK_Pos) /*!< 0x00000001 */
  15020. /******************* Bits definition for GTZC_TZSC_MPCWM1_NSWMR1 register *******/
  15021. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1STRT_Pos (0U)
  15022. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM1_NSWMR1_NSWM1STRT_Pos)
  15023. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1LGTH_Pos (16U)
  15024. #define GTZC_TZSC_MPCWM1_NSWMR1_NSWM1LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM1_NSWMR1_NSWM1LGTH_Pos)
  15025. /******************* Bits definition for GTZC_TZSC_MPCWM1_NSWMR2 register *******/
  15026. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2STRT_Pos (0U)
  15027. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM1_NSWMR2_NSWM2STRT_Pos)
  15028. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2LGTH_Pos (16U)
  15029. #define GTZC_TZSC_MPCWM1_NSWMR2_NSWM2LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM1_NSWMR2_NSWM2LGTH_Pos)
  15030. /******************* Bits definition for GTZC_TZSC_MPCWM2_NSWMR1 register *******/
  15031. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1STRT_Pos (0U)
  15032. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM2_NSWMR1_NSWM1STRT_Pos)
  15033. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1LGTH_Pos (16U)
  15034. #define GTZC_TZSC_MPCWM2_NSWMR1_NSWM1LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM2_NSWMR1_NSWM1LGTH_Pos)
  15035. /******************* Bits definition for GTZC_TZSC_MPCWM2_NSWMR2 register *******/
  15036. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2STRT_Pos (0U)
  15037. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM2_NSWMR2_NSWM2STRT_Pos)
  15038. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2LGTH_Pos (16U)
  15039. #define GTZC_TZSC_MPCWM2_NSWMR2_NSWM2LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM2_NSWMR2_NSWM2LGTH_Pos)
  15040. /******************* Bits definition for GTZC_TZSC_MPCWM3_NSWMR1 register *******/
  15041. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1STRT_Pos (0U)
  15042. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1STRT_Msk (0x7FFUL << GTZC_TZSC_MPCWM3_NSWMR1_NSWM1STRT_Pos)
  15043. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1LGTH_Pos (16U)
  15044. #define GTZC_TZSC_MPCWM3_NSWMR1_NSWM1LGTH_Msk (0xFFFUL << GTZC_TZSC_MPCWM3_NSWMR1_NSWM1LGTH_Pos)
  15045. /******* Bits definition for GTZC_TZSC_SECCFGRx/_PRIVCFGRx registers *****/
  15046. /******* Bits definition for GTZC_TZIC_IERx/_SRx/_IFCRx registers ********/
  15047. /******************* Bits definition for registers x=1 ***************/
  15048. #define GTZC_CFGR1_SPI1_Pos (31U)
  15049. #define GTZC_CFGR1_SPI1_Msk ( 0x01UL << GTZC_CFGR1_SPI1_Pos )
  15050. #define GTZC_CFGR1_TIM1_Pos (30U)
  15051. #define GTZC_CFGR1_TIM1_Msk ( 0x01UL << GTZC_CFGR1_TIM1_Pos )
  15052. #define GTZC_CFGR1_COMP_Pos (29U)
  15053. #define GTZC_CFGR1_COMP_Msk ( 0x01UL << GTZC_CFGR1_COMP_Pos )
  15054. #define GTZC_CFGR1_VREFBUF_Pos (28U)
  15055. #define GTZC_CFGR1_VREFBUF_Msk ( 0x01UL << GTZC_CFGR1_VREFBUF_Pos )
  15056. #define GTZC_CFGR1_UCPD1_Pos (27U)
  15057. #define GTZC_CFGR1_UCPD1_Msk ( 0x01UL << GTZC_CFGR1_UCPD1_Pos )
  15058. #define GTZC_CFGR1_USBFS_Pos (26U)
  15059. #define GTZC_CFGR1_USBFS_Msk ( 0x01UL << GTZC_CFGR1_USBFS_Pos )
  15060. #define GTZC_CFGR1_FDCAN1_Pos (25U)
  15061. #define GTZC_CFGR1_FDCAN1_Msk ( 0x01UL << GTZC_CFGR1_FDCAN1_Pos )
  15062. #define GTZC_CFGR1_LPTIM3_Pos (24U)
  15063. #define GTZC_CFGR1_LPTIM3_Msk ( 0x01UL << GTZC_CFGR1_LPTIM3_Pos )
  15064. #define GTZC_CFGR1_LPTIM2_Pos (23U)
  15065. #define GTZC_CFGR1_LPTIM2_Msk ( 0x01UL << GTZC_CFGR1_LPTIM2_Pos )
  15066. #define GTZC_CFGR1_I2C4_Pos (22U)
  15067. #define GTZC_CFGR1_I2C4_Msk ( 0x01UL << GTZC_CFGR1_I2C4_Pos )
  15068. #define GTZC_CFGR1_LPUART1_Pos (21U)
  15069. #define GTZC_CFGR1_LPUART1_Msk ( 0x01UL << GTZC_CFGR1_LPUART1_Pos )
  15070. #define GTZC_CFGR1_LPTIM1_Pos (20U)
  15071. #define GTZC_CFGR1_LPTIM1_Msk ( 0x01UL << GTZC_CFGR1_LPTIM1_Pos )
  15072. #define GTZC_CFGR1_OPAMP_Pos (19U)
  15073. #define GTZC_CFGR1_OPAMP_Msk ( 0x01UL << GTZC_CFGR1_OPAMP_Pos )
  15074. #define GTZC_CFGR1_DAC1_Pos (18U)
  15075. #define GTZC_CFGR1_DAC1_Msk ( 0x01UL << GTZC_CFGR1_DAC1_Pos )
  15076. #define GTZC_CFGR1_CRS_Pos (17U)
  15077. #define GTZC_CFGR1_CRS_Msk ( 0x01UL << GTZC_CFGR1_CRS_Pos )
  15078. #define GTZC_CFGR1_I2C3_Pos (16U)
  15079. #define GTZC_CFGR1_I2C3_Msk ( 0x01UL << GTZC_CFGR1_I2C3_Pos )
  15080. #define GTZC_CFGR1_I2C2_Pos (15U)
  15081. #define GTZC_CFGR1_I2C2_Msk ( 0x01UL << GTZC_CFGR1_I2C2_Pos )
  15082. #define GTZC_CFGR1_I2C1_Pos (14U)
  15083. #define GTZC_CFGR1_I2C1_Msk ( 0x01UL << GTZC_CFGR1_I2C1_Pos )
  15084. #define GTZC_CFGR1_UART5_Pos (13U)
  15085. #define GTZC_CFGR1_UART5_Msk ( 0x01UL << GTZC_CFGR1_UART5_Pos )
  15086. #define GTZC_CFGR1_UART4_Pos (12U)
  15087. #define GTZC_CFGR1_UART4_Msk ( 0x01UL << GTZC_CFGR1_UART4_Pos )
  15088. #define GTZC_CFGR1_USART3_Pos (11U)
  15089. #define GTZC_CFGR1_USART3_Msk ( 0x01UL << GTZC_CFGR1_USART3_Pos )
  15090. #define GTZC_CFGR1_USART2_Pos (10U)
  15091. #define GTZC_CFGR1_USART2_Msk ( 0x01UL << GTZC_CFGR1_USART2_Pos )
  15092. #define GTZC_CFGR1_SPI3_Pos (9U)
  15093. #define GTZC_CFGR1_SPI3_Msk ( 0x01UL << GTZC_CFGR1_SPI3_Pos )
  15094. #define GTZC_CFGR1_SPI2_Pos (8U)
  15095. #define GTZC_CFGR1_SPI2_Msk ( 0x01UL << GTZC_CFGR1_SPI2_Pos )
  15096. #define GTZC_CFGR1_IWDG_Pos (7U)
  15097. #define GTZC_CFGR1_IWDG_Msk ( 0x01UL << GTZC_CFGR1_IWDG_Pos )
  15098. #define GTZC_CFGR1_WWDG_Pos (6U)
  15099. #define GTZC_CFGR1_WWDG_Msk ( 0x01UL << GTZC_CFGR1_WWDG_Pos )
  15100. #define GTZC_CFGR1_TIM7_Pos (5U)
  15101. #define GTZC_CFGR1_TIM7_Msk ( 0x01UL << GTZC_CFGR1_TIM7_Pos )
  15102. #define GTZC_CFGR1_TIM6_Pos (4U)
  15103. #define GTZC_CFGR1_TIM6_Msk ( 0x01UL << GTZC_CFGR1_TIM6_Pos )
  15104. #define GTZC_CFGR1_TIM5_Pos (3U)
  15105. #define GTZC_CFGR1_TIM5_Msk ( 0x01UL << GTZC_CFGR1_TIM5_Pos )
  15106. #define GTZC_CFGR1_TIM4_Pos (2U)
  15107. #define GTZC_CFGR1_TIM4_Msk ( 0x01UL << GTZC_CFGR1_TIM4_Pos )
  15108. #define GTZC_CFGR1_TIM3_Pos (1U)
  15109. #define GTZC_CFGR1_TIM3_Msk ( 0x01UL << GTZC_CFGR1_TIM3_Pos )
  15110. #define GTZC_CFGR1_TIM2_Pos (0U)
  15111. #define GTZC_CFGR1_TIM2_Msk ( 0x01UL << GTZC_CFGR1_TIM2_Pos )
  15112. /******************* Bits definition for registers x=2 ***************/
  15113. #define GTZC_CFGR2_EXTI_Pos (28U)
  15114. #define GTZC_CFGR2_EXTI_Msk ( 0x01UL << GTZC_CFGR2_EXTI_Pos )
  15115. #define GTZC_CFGR2_FLASH_REG_Pos (27U)
  15116. #define GTZC_CFGR2_FLASH_REG_Msk ( 0x01UL << GTZC_CFGR2_FLASH_REG_Pos )
  15117. #define GTZC_CFGR2_FLASH_Pos (26U)
  15118. #define GTZC_CFGR2_FLASH_Msk ( 0x01UL << GTZC_CFGR2_FLASH_Pos )
  15119. #define GTZC_CFGR2_RCC_Pos (25U)
  15120. #define GTZC_CFGR2_RCC_Msk ( 0x01UL << GTZC_CFGR2_RCC_Pos )
  15121. #define GTZC_CFGR2_DMAMUX1_Pos (24U)
  15122. #define GTZC_CFGR2_DMAMUX1_Msk ( 0x01UL << GTZC_CFGR2_DMAMUX1_Pos )
  15123. #define GTZC_CFGR2_DMA2_Pos (23U)
  15124. #define GTZC_CFGR2_DMA2_Msk ( 0x01UL << GTZC_CFGR2_DMA2_Pos )
  15125. #define GTZC_CFGR2_DMA1_Pos (22U)
  15126. #define GTZC_CFGR2_DMA1_Msk ( 0x01UL << GTZC_CFGR2_DMA1_Pos )
  15127. #define GTZC_CFGR2_SYSCFG_Pos (21U)
  15128. #define GTZC_CFGR2_SYSCFG_Msk ( 0x01UL << GTZC_CFGR2_SYSCFG_Pos )
  15129. #define GTZC_CFGR2_PWR_Pos (20U)
  15130. #define GTZC_CFGR2_PWR_Msk ( 0x01UL << GTZC_CFGR2_PWR_Pos )
  15131. #define GTZC_CFGR2_RTC_Pos (19U)
  15132. #define GTZC_CFGR2_RTC_Msk ( 0x01UL << GTZC_CFGR2_RTC_Pos )
  15133. #define GTZC_CFGR2_OCTOSPI1_REG_Pos (18U)
  15134. #define GTZC_CFGR2_OCTOSPI1_REG_Msk ( 0x01UL << GTZC_CFGR2_OCTOSPI1_REG_Pos )
  15135. #define GTZC_CFGR2_FMC_REG_Pos (17U)
  15136. #define GTZC_CFGR2_FMC_REG_Msk ( 0x01UL << GTZC_CFGR2_FMC_REG_Pos )
  15137. #define GTZC_CFGR2_SDMMC1_Pos (16U)
  15138. #define GTZC_CFGR2_SDMMC1_Msk ( 0x01UL << GTZC_CFGR2_SDMMC1_Pos )
  15139. #define GTZC_CFGR2_RNG_Pos (14U)
  15140. #define GTZC_CFGR2_RNG_Msk ( 0x01UL << GTZC_CFGR2_RNG_Pos )
  15141. #define GTZC_CFGR2_HASH_Pos (13U)
  15142. #define GTZC_CFGR2_HASH_Msk ( 0x01UL << GTZC_CFGR2_HASH_Pos )
  15143. #define GTZC_CFGR2_ADC_Pos (11U)
  15144. #define GTZC_CFGR2_ADC_Msk ( 0x01UL << GTZC_CFGR2_ADC_Pos )
  15145. #define GTZC_CFGR2_ICACHE_REG_Pos (10U)
  15146. #define GTZC_CFGR2_ICACHE_REG_Msk ( 0x01UL << GTZC_CFGR2_ICACHE_REG_Pos )
  15147. #define GTZC_CFGR2_TSC_Pos (9U)
  15148. #define GTZC_CFGR2_TSC_Msk ( 0x01UL << GTZC_CFGR2_TSC_Pos )
  15149. #define GTZC_CFGR2_CRC_Pos (8U)
  15150. #define GTZC_CFGR2_CRC_Msk ( 0x01UL << GTZC_CFGR2_CRC_Pos )
  15151. #define GTZC_CFGR2_DFSDM1_Pos (7U)
  15152. #define GTZC_CFGR2_DFSDM1_Msk ( 0x01UL << GTZC_CFGR2_DFSDM1_Pos )
  15153. #define GTZC_CFGR2_SAI2_Pos (6U)
  15154. #define GTZC_CFGR2_SAI2_Msk ( 0x01UL << GTZC_CFGR2_SAI2_Pos )
  15155. #define GTZC_CFGR2_SAI1_Pos (5U)
  15156. #define GTZC_CFGR2_SAI1_Msk ( 0x01UL << GTZC_CFGR2_SAI1_Pos )
  15157. #define GTZC_CFGR2_TIM17_Pos (4U)
  15158. #define GTZC_CFGR2_TIM17_Msk ( 0x01UL << GTZC_CFGR2_TIM17_Pos )
  15159. #define GTZC_CFGR2_TIM16_Pos (3U)
  15160. #define GTZC_CFGR2_TIM16_Msk ( 0x01UL << GTZC_CFGR2_TIM16_Pos )
  15161. #define GTZC_CFGR2_TIM15_Pos (2U)
  15162. #define GTZC_CFGR2_TIM15_Msk ( 0x01UL << GTZC_CFGR2_TIM15_Pos )
  15163. #define GTZC_CFGR2_USART1_Pos (1U)
  15164. #define GTZC_CFGR2_USART1_Msk ( 0x01UL << GTZC_CFGR2_USART1_Pos )
  15165. #define GTZC_CFGR2_TIM8_Pos (0U)
  15166. #define GTZC_CFGR2_TIM8_Msk ( 0x01UL << GTZC_CFGR2_TIM8_Pos )
  15167. /******************* Bits definition for registers x=3 ***************/
  15168. #define GTZC_CFGR3_MPCBB2_REG_Pos (7U)
  15169. #define GTZC_CFGR3_MPCBB2_REG_Msk ( 0x01UL << GTZC_CFGR3_MPCBB2_REG_Pos )
  15170. #define GTZC_CFGR3_SRAM2_Pos (6U)
  15171. #define GTZC_CFGR3_SRAM2_Msk ( 0x01UL << GTZC_CFGR3_SRAM2_Pos )
  15172. #define GTZC_CFGR3_MPCBB1_REG_Pos (5U)
  15173. #define GTZC_CFGR3_MPCBB1_REG_Msk ( 0x01UL << GTZC_CFGR3_MPCBB1_REG_Pos )
  15174. #define GTZC_CFGR3_SRAM1_Pos (4U)
  15175. #define GTZC_CFGR3_SRAM1_Msk ( 0x01UL << GTZC_CFGR3_SRAM1_Pos )
  15176. #define GTZC_CFGR3_OCTOSPI1_MEM_Pos (3U)
  15177. #define GTZC_CFGR3_OCTOSPI1_MEM_Msk ( 0x01UL << GTZC_CFGR3_OCTOSPI1_MEM_Pos )
  15178. #define GTZC_CFGR3_FMC_MEM_Pos (2U)
  15179. #define GTZC_CFGR3_FMC_MEM_Msk ( 0x01UL << GTZC_CFGR3_FMC_MEM_Pos )
  15180. #define GTZC_CFGR3_TZIC_Pos (1U)
  15181. #define GTZC_CFGR3_TZIC_Msk ( 0x01UL << GTZC_CFGR3_TZIC_Pos )
  15182. #define GTZC_CFGR3_TZSC_Pos (0U)
  15183. #define GTZC_CFGR3_TZSC_Msk ( 0x01UL << GTZC_CFGR3_TZSC_Pos )
  15184. /******************* Bits definition for GTZC_TZSC_SECCFGR1 register ***************/
  15185. #define GTZC_TZSC_SECCFGR1_SPI1SEC_Pos GTZC_CFGR1_SPI1_Pos
  15186. #define GTZC_TZSC_SECCFGR1_SPI1SEC_Msk GTZC_CFGR1_SPI1_Msk
  15187. #define GTZC_TZSC_SECCFGR1_TIM1SEC_Pos GTZC_CFGR1_TIM1_Pos
  15188. #define GTZC_TZSC_SECCFGR1_TIM1SEC_Msk GTZC_CFGR1_TIM1_Msk
  15189. #define GTZC_TZSC_SECCFGR1_COMPSEC_Pos GTZC_CFGR1_COMP_Pos
  15190. #define GTZC_TZSC_SECCFGR1_COMPSEC_Msk GTZC_CFGR1_COMP_Msk
  15191. #define GTZC_TZSC_SECCFGR1_VREFBUFSEC_Pos GTZC_CFGR1_VREFBUF_Pos
  15192. #define GTZC_TZSC_SECCFGR1_VREFBUFSEC_Msk GTZC_CFGR1_VREFBUF_Msk
  15193. #define GTZC_TZSC_SECCFGR1_UCPD1SEC_Pos GTZC_CFGR1_UCPD1_Pos
  15194. #define GTZC_TZSC_SECCFGR1_UCPD1SEC_Msk GTZC_CFGR1_UCPD1_Msk
  15195. #define GTZC_TZSC_SECCFGR1_USBFSSEC_Pos GTZC_CFGR1_USBFS_Pos
  15196. #define GTZC_TZSC_SECCFGR1_USBFSSEC_Msk GTZC_CFGR1_USBFS_Msk
  15197. #define GTZC_TZSC_SECCFGR1_FDCAN1SEC_Pos GTZC_CFGR1_FDCAN1_Pos
  15198. #define GTZC_TZSC_SECCFGR1_FDCAN1SEC_Msk GTZC_CFGR1_FDCAN1_Msk
  15199. #define GTZC_TZSC_SECCFGR1_LPTIM3SEC_Pos GTZC_CFGR1_LPTIM3_Pos
  15200. #define GTZC_TZSC_SECCFGR1_LPTIM3SEC_Msk GTZC_CFGR1_LPTIM3_Msk
  15201. #define GTZC_TZSC_SECCFGR1_LPTIM2SEC_Pos GTZC_CFGR1_LPTIM2_Pos
  15202. #define GTZC_TZSC_SECCFGR1_LPTIM2SEC_Msk GTZC_CFGR1_LPTIM2_Msk
  15203. #define GTZC_TZSC_SECCFGR1_I2C4SEC_Pos GTZC_CFGR1_I2C4_Pos
  15204. #define GTZC_TZSC_SECCFGR1_I2C4SEC_Msk GTZC_CFGR1_I2C4_Msk
  15205. #define GTZC_TZSC_SECCFGR1_LPUART1SEC_Pos GTZC_CFGR1_LPUART1_Pos
  15206. #define GTZC_TZSC_SECCFGR1_LPUART1SEC_Msk GTZC_CFGR1_LPUART1_Msk
  15207. #define GTZC_TZSC_SECCFGR1_LPTIM1SEC_Pos GTZC_CFGR1_LPTIM1_Pos
  15208. #define GTZC_TZSC_SECCFGR1_LPTIM1SEC_Msk GTZC_CFGR1_LPTIM1_Msk
  15209. #define GTZC_TZSC_SECCFGR1_OPAMPSEC_Pos GTZC_CFGR1_OPAMP_Pos
  15210. #define GTZC_TZSC_SECCFGR1_OPAMPSEC_Msk GTZC_CFGR1_OPAMP_Msk
  15211. #define GTZC_TZSC_SECCFGR1_DAC1SEC_Pos GTZC_CFGR1_DAC1_Pos
  15212. #define GTZC_TZSC_SECCFGR1_DAC1SEC_Msk GTZC_CFGR1_DAC1_Msk
  15213. #define GTZC_TZSC_SECCFGR1_CRSSEC_Pos GTZC_CFGR1_CRS_Pos
  15214. #define GTZC_TZSC_SECCFGR1_CRSSEC_Msk GTZC_CFGR1_CRS_Msk
  15215. #define GTZC_TZSC_SECCFGR1_I2C3SEC_Pos GTZC_CFGR1_I2C3_Pos
  15216. #define GTZC_TZSC_SECCFGR1_I2C3SEC_Msk GTZC_CFGR1_I2C3_Msk
  15217. #define GTZC_TZSC_SECCFGR1_I2C2SEC_Pos GTZC_CFGR1_I2C2_Pos
  15218. #define GTZC_TZSC_SECCFGR1_I2C2SEC_Msk GTZC_CFGR1_I2C2_Msk
  15219. #define GTZC_TZSC_SECCFGR1_I2C1SEC_Pos GTZC_CFGR1_I2C1_Pos
  15220. #define GTZC_TZSC_SECCFGR1_I2C1SEC_Msk GTZC_CFGR1_I2C1_Msk
  15221. #define GTZC_TZSC_SECCFGR1_UART5SEC_Pos GTZC_CFGR1_UART5_Pos
  15222. #define GTZC_TZSC_SECCFGR1_UART5SEC_Msk GTZC_CFGR1_UART5_Msk
  15223. #define GTZC_TZSC_SECCFGR1_UART4SEC_Pos GTZC_CFGR1_UART4_Pos
  15224. #define GTZC_TZSC_SECCFGR1_UART4SEC_Msk GTZC_CFGR1_UART4_Msk
  15225. #define GTZC_TZSC_SECCFGR1_USART3SEC_Pos GTZC_CFGR1_USART3_Pos
  15226. #define GTZC_TZSC_SECCFGR1_USART3SEC_Msk GTZC_CFGR1_USART3_Msk
  15227. #define GTZC_TZSC_SECCFGR1_USART2SEC_Pos GTZC_CFGR1_USART2_Pos
  15228. #define GTZC_TZSC_SECCFGR1_USART2SEC_Msk GTZC_CFGR1_USART2_Msk
  15229. #define GTZC_TZSC_SECCFGR1_SPI3SEC_Pos GTZC_CFGR1_SPI3_Pos
  15230. #define GTZC_TZSC_SECCFGR1_SPI3SEC_Msk GTZC_CFGR1_SPI3_Msk
  15231. #define GTZC_TZSC_SECCFGR1_SPI2SEC_Pos GTZC_CFGR1_SPI2_Pos
  15232. #define GTZC_TZSC_SECCFGR1_SPI2SEC_Msk GTZC_CFGR1_SPI2_Msk
  15233. #define GTZC_TZSC_SECCFGR1_IWDGSEC_Pos GTZC_CFGR1_IWDG_Pos
  15234. #define GTZC_TZSC_SECCFGR1_IWDGSEC_Msk GTZC_CFGR1_IWDG_Msk
  15235. #define GTZC_TZSC_SECCFGR1_WWDGSEC_Pos GTZC_CFGR1_WWDG_Pos
  15236. #define GTZC_TZSC_SECCFGR1_WWDGSEC_Msk GTZC_CFGR1_WWDG_Msk
  15237. #define GTZC_TZSC_SECCFGR1_TIM7SEC_Pos GTZC_CFGR1_TIM7_Pos
  15238. #define GTZC_TZSC_SECCFGR1_TIM7SEC_Msk GTZC_CFGR1_TIM7_Msk
  15239. #define GTZC_TZSC_SECCFGR1_TIM6SEC_Pos GTZC_CFGR1_TIM6_Pos
  15240. #define GTZC_TZSC_SECCFGR1_TIM6SEC_Msk GTZC_CFGR1_TIM6_Msk
  15241. #define GTZC_TZSC_SECCFGR1_TIM5SEC_Pos GTZC_CFGR1_TIM5_Pos
  15242. #define GTZC_TZSC_SECCFGR1_TIM5SEC_Msk GTZC_CFGR1_TIM5_Msk
  15243. #define GTZC_TZSC_SECCFGR1_TIM4SEC_Pos GTZC_CFGR1_TIM4_Pos
  15244. #define GTZC_TZSC_SECCFGR1_TIM4SEC_Msk GTZC_CFGR1_TIM4_Msk
  15245. #define GTZC_TZSC_SECCFGR1_TIM3SEC_Pos GTZC_CFGR1_TIM3_Pos
  15246. #define GTZC_TZSC_SECCFGR1_TIM3SEC_Msk GTZC_CFGR1_TIM3_Msk
  15247. #define GTZC_TZSC_SECCFGR1_TIM2SEC_Pos GTZC_CFGR1_TIM2_Pos
  15248. #define GTZC_TZSC_SECCFGR1_TIM2SEC_Msk GTZC_CFGR1_TIM2_Msk
  15249. /******************* Bits definition for GTZC_TZSC_SECCFGR2 register ***************/
  15250. #define GTZC_TZSC_SECCFGR2_OCTOSPI1_REGSEC_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  15251. #define GTZC_TZSC_SECCFGR2_OCTOSPI1_REGSEC_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  15252. #define GTZC_TZSC_SECCFGR2_FMC_REGSEC_Pos GTZC_CFGR2_FMC_REG_Pos
  15253. #define GTZC_TZSC_SECCFGR2_FMC_REGSEC_Msk GTZC_CFGR2_FMC_REG_Msk
  15254. #define GTZC_TZSC_SECCFGR2_SDMMC1SEC_Pos GTZC_CFGR2_SDMMC1_Pos
  15255. #define GTZC_TZSC_SECCFGR2_SDMMC1SEC_Msk GTZC_CFGR2_SDMMC1_Msk
  15256. #define GTZC_TZSC_SECCFGR2_RNGSEC_Pos GTZC_CFGR2_RNG_Pos
  15257. #define GTZC_TZSC_SECCFGR2_RNGSEC_Msk GTZC_CFGR2_RNG_Msk
  15258. #define GTZC_TZSC_SECCFGR2_HASHSEC_Pos GTZC_CFGR2_HASH_Pos
  15259. #define GTZC_TZSC_SECCFGR2_HASHSEC_Msk GTZC_CFGR2_HASH_Msk
  15260. #define GTZC_TZSC_SECCFGR2_ADCSEC_Pos GTZC_CFGR2_ADC_Pos
  15261. #define GTZC_TZSC_SECCFGR2_ADCSEC_Msk GTZC_CFGR2_ADC_Msk
  15262. #define GTZC_TZSC_SECCFGR2_ICACHE_REGSEC_Pos GTZC_CFGR2_ICACHE_REG_Pos
  15263. #define GTZC_TZSC_SECCFGR2_ICACHE_REGSEC_Msk GTZC_CFGR2_ICACHE_REG_Msk
  15264. #define GTZC_TZSC_SECCFGR2_TSCSEC_Pos GTZC_CFGR2_TSC_Pos
  15265. #define GTZC_TZSC_SECCFGR2_TSCSEC_Msk GTZC_CFGR2_TSC_Msk
  15266. #define GTZC_TZSC_SECCFGR2_CRCSEC_Pos GTZC_CFGR2_CRC_Pos
  15267. #define GTZC_TZSC_SECCFGR2_CRCSEC_Msk GTZC_CFGR2_CRC_Msk
  15268. #define GTZC_TZSC_SECCFGR2_DFSDM1SEC_Pos GTZC_CFGR2_DFSDM1_Pos
  15269. #define GTZC_TZSC_SECCFGR2_DFSDM1SEC_Msk GTZC_CFGR2_DFSDM1_Msk
  15270. #define GTZC_TZSC_SECCFGR2_SAI2SEC_Pos GTZC_CFGR2_SAI2_Pos
  15271. #define GTZC_TZSC_SECCFGR2_SAI2SEC_Msk GTZC_CFGR2_SAI2_Msk
  15272. #define GTZC_TZSC_SECCFGR2_SAI1SEC_Pos GTZC_CFGR2_SAI1_Pos
  15273. #define GTZC_TZSC_SECCFGR2_SAI1SEC_Msk GTZC_CFGR2_SAI1_Msk
  15274. #define GTZC_TZSC_SECCFGR2_TIM17SEC_Pos GTZC_CFGR2_TIM17_Pos
  15275. #define GTZC_TZSC_SECCFGR2_TIM17SEC_Msk GTZC_CFGR2_TIM17_Msk
  15276. #define GTZC_TZSC_SECCFGR2_TIM16SEC_Pos GTZC_CFGR2_TIM16_Pos
  15277. #define GTZC_TZSC_SECCFGR2_TIM16SEC_Msk GTZC_CFGR2_TIM16_Msk
  15278. #define GTZC_TZSC_SECCFGR2_TIM15SEC_Pos GTZC_CFGR2_TIM15_Pos
  15279. #define GTZC_TZSC_SECCFGR2_TIM15SEC_Msk GTZC_CFGR2_TIM15_Msk
  15280. #define GTZC_TZSC_SECCFGR2_USART1SEC_Pos GTZC_CFGR2_USART1_Pos
  15281. #define GTZC_TZSC_SECCFGR2_USART1SEC_Msk GTZC_CFGR2_USART1_Msk
  15282. #define GTZC_TZSC_SECCFGR2_TIM8SEC_Pos GTZC_CFGR2_TIM8_Pos
  15283. #define GTZC_TZSC_SECCFGR2_TIM8SEC_Msk GTZC_CFGR2_TIM8_Msk
  15284. /******************* Bits definition for GTZC_TZSC_PRIVCFGR1 register ***************/
  15285. #define GTZC_TZSC_PRIVCFGR1_SPI1PRIV_Pos GTZC_CFGR1_SPI1_Pos
  15286. #define GTZC_TZSC_PRIVCFGR1_SPI1PRIV_Msk GTZC_CFGR1_SPI1_Msk
  15287. #define GTZC_TZSC_PRIVCFGR1_TIM1PRIV_Pos GTZC_CFGR1_TIM1_Pos
  15288. #define GTZC_TZSC_PRIVCFGR1_TIM1PRIV_Msk GTZC_CFGR1_TIM1_Msk
  15289. #define GTZC_TZSC_PRIVCFGR1_COMPPRIV_Pos GTZC_CFGR1_COMP_Pos
  15290. #define GTZC_TZSC_PRIVCFGR1_COMPPRIV_Msk GTZC_CFGR1_COMP_Msk
  15291. #define GTZC_TZSC_PRIVCFGR1_VREFBUFPRIV_Pos GTZC_CFGR1_VREFBUF_Pos
  15292. #define GTZC_TZSC_PRIVCFGR1_VREFBUFPRIV_Msk GTZC_CFGR1_VREFBUF_Msk
  15293. #define GTZC_TZSC_PRIVCFGR1_UCPD1PRIV_Pos GTZC_CFGR1_UCPD1_Pos
  15294. #define GTZC_TZSC_PRIVCFGR1_UCPD1PRIV_Msk GTZC_CFGR1_UCPD1_Msk
  15295. #define GTZC_TZSC_PRIVCFGR1_USBFSPRIV_Pos GTZC_CFGR1_USBFS_Pos
  15296. #define GTZC_TZSC_PRIVCFGR1_USBFSPRIV_Msk GTZC_CFGR1_USBFS_Msk
  15297. #define GTZC_TZSC_PRIVCFGR1_FDCAN1PRIV_Pos GTZC_CFGR1_FDCAN1_Pos
  15298. #define GTZC_TZSC_PRIVCFGR1_FDCAN1PRIV_Msk GTZC_CFGR1_FDCAN1_Msk
  15299. #define GTZC_TZSC_PRIVCFGR1_LPTIM3PRIV_Pos GTZC_CFGR1_LPTIM3_Pos
  15300. #define GTZC_TZSC_PRIVCFGR1_LPTIM3PRIV_Msk GTZC_CFGR1_LPTIM3_Msk
  15301. #define GTZC_TZSC_PRIVCFGR1_LPTIM2PRIV_Pos GTZC_CFGR1_LPTIM2_Pos
  15302. #define GTZC_TZSC_PRIVCFGR1_LPTIM2PRIV_Msk GTZC_CFGR1_LPTIM2_Msk
  15303. #define GTZC_TZSC_PRIVCFGR1_I2C4PRIV_Pos GTZC_CFGR1_I2C4_Pos
  15304. #define GTZC_TZSC_PRIVCFGR1_I2C4PRIV_Msk GTZC_CFGR1_I2C4_Msk
  15305. #define GTZC_TZSC_PRIVCFGR1_LPUART1PRIV_Pos GTZC_CFGR1_LPUART1_Pos
  15306. #define GTZC_TZSC_PRIVCFGR1_LPUART1PRIV_Msk GTZC_CFGR1_LPUART1_Msk
  15307. #define GTZC_TZSC_PRIVCFGR1_LPTIM1PRIV_Pos GTZC_CFGR1_LPTIM1_Pos
  15308. #define GTZC_TZSC_PRIVCFGR1_LPTIM1PRIV_Msk GTZC_CFGR1_LPTIM1_Msk
  15309. #define GTZC_TZSC_PRIVCFGR1_OPAMPPRIV_Pos GTZC_CFGR1_OPAMP_Pos
  15310. #define GTZC_TZSC_PRIVCFGR1_OPAMPPRIV_Msk GTZC_CFGR1_OPAMP_Msk
  15311. #define GTZC_TZSC_PRIVCFGR1_DAC1PRIV_Pos GTZC_CFGR1_DAC1_Pos
  15312. #define GTZC_TZSC_PRIVCFGR1_DAC1PRIV_Msk GTZC_CFGR1_DAC1_Msk
  15313. #define GTZC_TZSC_PRIVCFGR1_CRSPRIV_Pos GTZC_CFGR1_CRS_Pos
  15314. #define GTZC_TZSC_PRIVCFGR1_CRSPRIV_Msk GTZC_CFGR1_CRS_Msk
  15315. #define GTZC_TZSC_PRIVCFGR1_I2C3PRIV_Pos GTZC_CFGR1_I2C3_Pos
  15316. #define GTZC_TZSC_PRIVCFGR1_I2C3PRIV_Msk GTZC_CFGR1_I2C3_Msk
  15317. #define GTZC_TZSC_PRIVCFGR1_I2C2PRIV_Pos GTZC_CFGR1_I2C2_Pos
  15318. #define GTZC_TZSC_PRIVCFGR1_I2C2PRIV_Msk GTZC_CFGR1_I2C2_Msk
  15319. #define GTZC_TZSC_PRIVCFGR1_I2C1PRIV_Pos GTZC_CFGR1_I2C1_Pos
  15320. #define GTZC_TZSC_PRIVCFGR1_I2C1PRIV_Msk GTZC_CFGR1_I2C1_Msk
  15321. #define GTZC_TZSC_PRIVCFGR1_UART5PRIV_Pos GTZC_CFGR1_UART5_Pos
  15322. #define GTZC_TZSC_PRIVCFGR1_UART5PRIV_Msk GTZC_CFGR1_UART5_Msk
  15323. #define GTZC_TZSC_PRIVCFGR1_UART4PRIV_Pos GTZC_CFGR1_UART4_Pos
  15324. #define GTZC_TZSC_PRIVCFGR1_UART4PRIV_Msk GTZC_CFGR1_UART4_Msk
  15325. #define GTZC_TZSC_PRIVCFGR1_USART3PRIV_Pos GTZC_CFGR1_USART3_Pos
  15326. #define GTZC_TZSC_PRIVCFGR1_USART3PRIV_Msk GTZC_CFGR1_USART3_Msk
  15327. #define GTZC_TZSC_PRIVCFGR1_USART2PRIV_Pos GTZC_CFGR1_USART2_Pos
  15328. #define GTZC_TZSC_PRIVCFGR1_USART2PRIV_Msk GTZC_CFGR1_USART2_Msk
  15329. #define GTZC_TZSC_PRIVCFGR1_SPI3PRIV_Pos GTZC_CFGR1_PI3_Pos
  15330. #define GTZC_TZSC_PRIVCFGR1_SPI3PRIV_Msk GTZC_CFGR1_SPI3_Msk
  15331. #define GTZC_TZSC_PRIVCFGR1_SPI2PRIV_Pos GTZC_CFGR1_SPI2_Pos
  15332. #define GTZC_TZSC_PRIVCFGR1_SPI2PRIV_Msk GTZC_CFGR1_SPI2_Msk
  15333. #define GTZC_TZSC_PRIVCFGR1_IWDGPRIV_Pos GTZC_CFGR1_IWDG_Pos
  15334. #define GTZC_TZSC_PRIVCFGR1_IWDGPRIV_Msk GTZC_CFGR1_IWDG_Msk
  15335. #define GTZC_TZSC_PRIVCFGR1_WWDGPRIV_Pos GTZC_CFGR1_WWDG_Pos
  15336. #define GTZC_TZSC_PRIVCFGR1_WWDGPRIV_Msk GTZC_CFGR1_WWDG_Msk
  15337. #define GTZC_TZSC_PRIVCFGR1_TIM7PRIV_Pos GTZC_CFGR1_TIM7_Pos
  15338. #define GTZC_TZSC_PRIVCFGR1_TIM7PRIV_Msk GTZC_CFGR1_TIM7_Msk
  15339. #define GTZC_TZSC_PRIVCFGR1_TIM6PRIV_Pos GTZC_CFGR1_TIM6_Pos
  15340. #define GTZC_TZSC_PRIVCFGR1_TIM6PRIV_Msk GTZC_CFGR1_TIM6_Msk
  15341. #define GTZC_TZSC_PRIVCFGR1_TIM5PRIV_Pos GTZC_CFGR1_TIM5_Pos
  15342. #define GTZC_TZSC_PRIVCFGR1_TIM5PRIV_Msk GTZC_CFGR1_TIM5_Msk
  15343. #define GTZC_TZSC_PRIVCFGR1_TIM4PRIV_Pos GTZC_CFGR1_TIM4_Pos
  15344. #define GTZC_TZSC_PRIVCFGR1_TIM4PRIV_Msk GTZC_CFGR1_TIM4_Msk
  15345. #define GTZC_TZSC_PRIVCFGR1_TIM3PRIV_Pos GTZC_CFGR1_TIM3_Pos
  15346. #define GTZC_TZSC_PRIVCFGR1_TIM3PRIV_Msk GTZC_CFGR1_TIM3_Msk
  15347. #define GTZC_TZSC_PRIVCFGR1_TIM2PRIV_Pos GTZC_CFGR1_TIM2_Pos
  15348. #define GTZC_TZSC_PRIVCFGR1_TIM2PRIV_Msk GTZC_CFGR1_TIM2_Msk
  15349. /******************* Bits definition for GTZC_TZSC_PRIVCFGR2 register ***************/
  15350. #define GTZC_TZSC_PRIVCFGR2_OCTOSPI1_REGPRIV_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  15351. #define GTZC_TZSC_PRIVCFGR2_OCTOSPI1_REGPRIV_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  15352. #define GTZC_TZSC_PRIVCFGR2_FMC_REGPRIV_Pos GTZC_CFGR2_FMC_REG_Pos
  15353. #define GTZC_TZSC_PRIVCFGR2_FMC_REGPRIV_Msk GTZC_CFGR2_FMC_REG_Msk
  15354. #define GTZC_TZSC_PRIVCFGR2_SDMMC1PRIV_Pos GTZC_CFGR2_SDMMC1_Pos
  15355. #define GTZC_TZSC_PRIVCFGR2_SDMMC1PRIV_Msk GTZC_CFGR2_SDMMC1_Msk
  15356. #define GTZC_TZSC_PRIVCFGR2_RNGPRIV_Pos GTZC_CFGR2_RNG_Pos
  15357. #define GTZC_TZSC_PRIVCFGR2_RNGPRIV_Msk GTZC_CFGR2_RNG_Msk
  15358. #define GTZC_TZSC_PRIVCFGR2_HASHPRIV_Pos GTZC_CFGR2_HASH_Pos
  15359. #define GTZC_TZSC_PRIVCFGR2_HASHPRIV_Msk GTZC_CFGR2_HASH_Msk
  15360. #define GTZC_TZSC_PRIVCFGR2_ADCPRIV_Pos GTZC_CFGR2_ADC_Pos
  15361. #define GTZC_TZSC_PRIVCFGR2_ADCPRIV_Msk GTZC_CFGR2_ADC_Msk
  15362. #define GTZC_TZSC_PRIVCFGR2_ICACHE_REGPRIV_Pos GTZC_CFGR2_ICACHE_REG_Pos
  15363. #define GTZC_TZSC_PRIVCFGR2_ICACHE_REGPRIV_Msk GTZC_CFGR2_ICACHE_REG_Msk
  15364. #define GTZC_TZSC_PRIVCFGR2_TSCPRIV_Pos GTZC_CFGR2_TSC_Pos
  15365. #define GTZC_TZSC_PRIVCFGR2_TSCPRIV_Msk GTZC_CFGR2_TSC_Msk
  15366. #define GTZC_TZSC_PRIVCFGR2_CRCPRIV_Pos GTZC_CFGR2_CRC_Pos
  15367. #define GTZC_TZSC_PRIVCFGR2_CRCPRIV_Msk GTZC_CFGR2_CRC_Msk
  15368. #define GTZC_TZSC_PRIVCFGR2_DFSDM1PRIV_Pos GTZC_CFGR2_DFSDM1_Pos
  15369. #define GTZC_TZSC_PRIVCFGR2_DFSDM1PRIV_Msk GTZC_CFGR2_DFSDM1_Msk
  15370. #define GTZC_TZSC_PRIVCFGR2_SAI2PRIV_Pos GTZC_CFGR2_SAI2_Pos
  15371. #define GTZC_TZSC_PRIVCFGR2_SAI2PRIV_Msk GTZC_CFGR2_SAI2_Msk
  15372. #define GTZC_TZSC_PRIVCFGR2_SAI1PRIV_Pos GTZC_CFGR2_SAI1_Pos
  15373. #define GTZC_TZSC_PRIVCFGR2_SAI1PRIV_Msk GTZC_CFGR2_SAI1_Msk
  15374. #define GTZC_TZSC_PRIVCFGR2_TIM17PRIV_Pos GTZC_CFGR2_TIM17_Pos
  15375. #define GTZC_TZSC_PRIVCFGR2_TIM17PRIV_Msk GTZC_CFGR2_TIM17_Msk
  15376. #define GTZC_TZSC_PRIVCFGR2_TIM16PRIV_Pos GTZC_CFGR2_TIM16_Pos
  15377. #define GTZC_TZSC_PRIVCFGR2_TIM16PRIV_Msk GTZC_CFGR2_TIM16_Msk
  15378. #define GTZC_TZSC_PRIVCFGR2_TIM15PRIV_Pos GTZC_CFGR2_TIM15_Pos
  15379. #define GTZC_TZSC_PRIVCFGR2_TIM15PRIV_Msk GTZC_CFGR2_TIM15_Msk
  15380. #define GTZC_TZSC_PRIVCFGR2_USART1PRIV_Pos GTZC_CFGR2_USART1_Pos
  15381. #define GTZC_TZSC_PRIVCFGR2_USART1PRIV_Msk GTZC_CFGR2_USART1_Msk
  15382. #define GTZC_TZSC_PRIVCFGR2_TIM8PRIV_Pos GTZC_CFGR2_TIM8_Pos
  15383. #define GTZC_TZSC_PRIVCFGR2_TIM8PRIV_Msk GTZC_CFGR2_TIM8_Msk
  15384. /******************* Bits definition for GTZC_TZIC_IER1 register ***************/
  15385. #define GTZC_TZIC_IER1_SPI1IE_Pos GTZC_CFGR1_SPI1_Pos
  15386. #define GTZC_TZIC_IER1_SPI1IE_Msk GTZC_CFGR1_SPI1_Msk
  15387. #define GTZC_TZIC_IER1_TIM1IE_Pos GTZC_CFGR1_TIM1_Pos
  15388. #define GTZC_TZIC_IER1_TIM1IE_Msk GTZC_CFGR1_TIM1_Msk
  15389. #define GTZC_TZIC_IER1_COMPIE_Pos GTZC_CFGR1_COMP_Pos
  15390. #define GTZC_TZIC_IER1_COMPIE_Msk GTZC_CFGR1_COMP_Msk
  15391. #define GTZC_TZIC_IER1_VREFBUFIE_Pos GTZC_CFGR1_VREFBUF_Pos
  15392. #define GTZC_TZIC_IER1_VREFBUFIE_Msk GTZC_CFGR1_VREFBUF_Msk
  15393. #define GTZC_TZIC_IER1_UCPD1IE_Pos GTZC_CFGR1_UCPD1_Pos
  15394. #define GTZC_TZIC_IER1_UCPD1IE_Msk GTZC_CFGR1_UCPD1_Msk
  15395. #define GTZC_TZIC_IER1_USBFSIE_Pos GTZC_CFGR1_USBFS_Pos
  15396. #define GTZC_TZIC_IER1_USBFSIE_Msk GTZC_CFGR1_USBFS_Msk
  15397. #define GTZC_TZIC_IER1_FDCAN1IE_Pos GTZC_CFGR1_FDCAN1_Pos
  15398. #define GTZC_TZIC_IER1_FDCAN1IE_Msk GTZC_CFGR1_FDCAN1_Msk
  15399. #define GTZC_TZIC_IER1_LPTIM3IE_Pos GTZC_CFGR1_LPTIM3_Pos
  15400. #define GTZC_TZIC_IER1_LPTIM3IE_Msk GTZC_CFGR1_LPTIM3_Msk
  15401. #define GTZC_TZIC_IER1_LPTIM2IE_Pos GTZC_CFGR1_LPTIM2_Pos
  15402. #define GTZC_TZIC_IER1_LPTIM2IE_Msk GTZC_CFGR1_LPTIM2_Msk
  15403. #define GTZC_TZIC_IER1_I2C4IE_Pos GTZC_CFGR1_I2C4_Pos
  15404. #define GTZC_TZIC_IER1_I2C4IE_Msk GTZC_CFGR1_I2C4_Msk
  15405. #define GTZC_TZIC_IER1_LPUART1IE_Pos GTZC_CFGR1_LPUART1_Pos
  15406. #define GTZC_TZIC_IER1_LPUART1IE_Msk GTZC_CFGR1_LPUART1_Msk
  15407. #define GTZC_TZIC_IER1_LPTIM1IE_Pos GTZC_CFGR1_LPTIM1_Pos
  15408. #define GTZC_TZIC_IER1_LPTIM1IE_Msk GTZC_CFGR1_LPTIM1_Msk
  15409. #define GTZC_TZIC_IER1_OPAMPIE_Pos GTZC_CFGR1_OPAMP_Pos
  15410. #define GTZC_TZIC_IER1_OPAMPIE_Msk GTZC_CFGR1_OPAMP_Msk
  15411. #define GTZC_TZIC_IER1_DAC1IE_Pos GTZC_CFGR1_DAC1_Pos
  15412. #define GTZC_TZIC_IER1_DAC1IE_Msk GTZC_CFGR1_DAC1_Msk
  15413. #define GTZC_TZIC_IER1_CRSIE_Pos GTZC_CFGR1_CRS_Pos
  15414. #define GTZC_TZIC_IER1_CRSIE_Msk GTZC_CFGR1_CRS_Msk
  15415. #define GTZC_TZIC_IER1_I2C3IE_Pos GTZC_CFGR1_I2C3_Pos
  15416. #define GTZC_TZIC_IER1_I2C3IE_Msk GTZC_CFGR1_I2C3_Msk
  15417. #define GTZC_TZIC_IER1_I2C2IE_Pos GTZC_CFGR1_I2C2_Pos
  15418. #define GTZC_TZIC_IER1_I2C2IE_Msk GTZC_CFGR1_I2C2_Msk
  15419. #define GTZC_TZIC_IER1_I2C1IE_Pos GTZC_CFGR1_I2C1_Pos
  15420. #define GTZC_TZIC_IER1_I2C1IE_Msk GTZC_CFGR1_I2C1_Msk
  15421. #define GTZC_TZIC_IER1_UART5IE_Pos GTZC_CFGR1_UART5_Pos
  15422. #define GTZC_TZIC_IER1_UART5IE_Msk GTZC_CFGR1_UART5_Msk
  15423. #define GTZC_TZIC_IER1_UART4IE_Pos GTZC_CFGR1_UART4_Pos
  15424. #define GTZC_TZIC_IER1_UART4IE_Msk GTZC_CFGR1_UART4_Msk
  15425. #define GTZC_TZIC_IER1_USART3IE_Pos GTZC_CFGR1_USART3_Pos
  15426. #define GTZC_TZIC_IER1_USART3IE_Msk GTZC_CFGR1_USART3_Msk
  15427. #define GTZC_TZIC_IER1_USART2IE_Pos GTZC_CFGR1_USART2_Pos
  15428. #define GTZC_TZIC_IER1_USART2IE_Msk GTZC_CFGR1_USART2_Msk
  15429. #define GTZC_TZIC_IER1_SPI3IE_Pos GTZC_CFGR1_SPI3_Pos
  15430. #define GTZC_TZIC_IER1_SPI3IE_Msk GTZC_CFGR1_SPI3_Msk
  15431. #define GTZC_TZIC_IER1_SPI2IE_Pos GTZC_CFGR1_SPI2_Pos
  15432. #define GTZC_TZIC_IER1_SPI2IE_Msk GTZC_CFGR1_SPI2_Msk
  15433. #define GTZC_TZIC_IER1_IWDGIE_Pos GTZC_CFGR1_IWDG_Pos
  15434. #define GTZC_TZIC_IER1_IWDGIE_Msk GTZC_CFGR1_IWDG_Msk
  15435. #define GTZC_TZIC_IER1_WWDGIE_Pos GTZC_CFGR1_WWDG_Pos
  15436. #define GTZC_TZIC_IER1_WWDGIE_Msk GTZC_CFGR1_WWDG_Msk
  15437. #define GTZC_TZIC_IER1_TIM7IE_Pos GTZC_CFGR1_TIM7_Pos
  15438. #define GTZC_TZIC_IER1_TIM7IE_Msk GTZC_CFGR1_TIM7_Msk
  15439. #define GTZC_TZIC_IER1_TIM6IE_Pos GTZC_CFGR1_TIM6_Pos
  15440. #define GTZC_TZIC_IER1_TIM6IE_Msk GTZC_CFGR1_TIM6_Msk
  15441. #define GTZC_TZIC_IER1_TIM5IE_Pos GTZC_CFGR1_TIM5_Pos
  15442. #define GTZC_TZIC_IER1_TIM5IE_Msk GTZC_CFGR1_TIM5_Msk
  15443. #define GTZC_TZIC_IER1_TIM4IE_Pos GTZC_CFGR1_TIM4_Pos
  15444. #define GTZC_TZIC_IER1_TIM4IE_Msk GTZC_CFGR1_TIM4_Msk
  15445. #define GTZC_TZIC_IER1_TIM3IE_Pos GTZC_CFGR1_TIM3_Pos
  15446. #define GTZC_TZIC_IER1_TIM3IE_Msk GTZC_CFGR1_TIM3_Msk
  15447. #define GTZC_TZIC_IER1_TIM2IE_Pos GTZC_CFGR1_TIM2_Pos
  15448. #define GTZC_TZIC_IER1_TIM2IE_Msk GTZC_CFGR1_TIM2_Msk
  15449. /******************* Bits definition for GTZC_TZIC_IER2 register ***************/
  15450. #define GTZC_TZIC_IER2_EXTIIE_Pos GTZC_CFGR2_EXTI_Pos
  15451. #define GTZC_TZIC_IER2_EXTIIE_Msk GTZC_CFGR2_EXTI_Msk
  15452. #define GTZC_TZIC_IER2_FLASH_REGIE_Pos GTZC_CFGR2_FLASH_REG_Pos
  15453. #define GTZC_TZIC_IER2_FLASH_REGIE_Msk GTZC_CFGR2_FLASH_REG_Msk
  15454. #define GTZC_TZIC_IER2_FLASHIE_Pos GTZC_CFGR2_FLASH_Pos
  15455. #define GTZC_TZIC_IER2_FLASHIE_Msk GTZC_CFGR2_FLASH_Msk
  15456. #define GTZC_TZIC_IER2_RCCIE_Pos GTZC_CFGR2_RCC_Pos
  15457. #define GTZC_TZIC_IER2_RCCIE_Msk GTZC_CFGR2_RCC_Msk
  15458. #define GTZC_TZIC_IER2_DMAMUX1IE_Pos GTZC_CFGR2_DMAMUX1_Pos
  15459. #define GTZC_TZIC_IER2_DMAMUX1IE_Msk GTZC_CFGR2_DMAMUX1_Msk
  15460. #define GTZC_TZIC_IER2_DMA2IE_Pos GTZC_CFGR2_DMA2_Pos
  15461. #define GTZC_TZIC_IER2_DMA2IE_Msk GTZC_CFGR2_DMA2_Msk
  15462. #define GTZC_TZIC_IER2_DMA1IE_Pos GTZC_CFGR2_DMA1_Pos
  15463. #define GTZC_TZIC_IER2_DMA1IE_Msk GTZC_CFGR2_DMA1_Msk
  15464. #define GTZC_TZIC_IER2_SYSCFGIE_Pos GTZC_CFGR2_SYSCFG_Pos
  15465. #define GTZC_TZIC_IER2_SYSCFGIE_Msk GTZC_CFGR2_SYSCFG_Msk
  15466. #define GTZC_TZIC_IER2_PWRIE_Pos GTZC_CFGR2_PWR_Pos
  15467. #define GTZC_TZIC_IER2_PWRIE_Msk GTZC_CFGR2_PWR_Msk
  15468. #define GTZC_TZIC_IER2_RTCIE_Pos GTZC_CFGR2_RTC_Pos
  15469. #define GTZC_TZIC_IER2_RTCIE_Msk GTZC_CFGR2_RTC_Msk
  15470. #define GTZC_TZIC_IER2_OCTOSPI1_REGIE_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  15471. #define GTZC_TZIC_IER2_OCTOSPI1_REGIE_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  15472. #define GTZC_TZIC_IER2_FMC_REGIE_Pos GTZC_CFGR2_FMC_REG_Pos
  15473. #define GTZC_TZIC_IER2_FMC_REGIE_Msk GTZC_CFGR2_FMC_REG_Msk
  15474. #define GTZC_TZIC_IER2_SDMMC1IE_Pos GTZC_CFGR2_SDMMC1_Pos
  15475. #define GTZC_TZIC_IER2_SDMMC1IE_Msk GTZC_CFGR2_SDMMC1_Msk
  15476. #define GTZC_TZIC_IER2_RNGIE_Pos GTZC_CFGR2_RNG_Pos
  15477. #define GTZC_TZIC_IER2_RNGIE_Msk GTZC_CFGR2_RNG_Msk
  15478. #define GTZC_TZIC_IER2_HASHIE_Pos GTZC_CFGR2_HASH_Pos
  15479. #define GTZC_TZIC_IER2_HASHIE_Msk GTZC_CFGR2_HASH_Msk
  15480. #define GTZC_TZIC_IER2_ADCIE_Pos GTZC_CFGR2_ADC_Pos
  15481. #define GTZC_TZIC_IER2_ADCIE_Msk GTZC_CFGR2_ADC_Msk
  15482. #define GTZC_TZIC_IER2_ICACHE_REGIE_Pos GTZC_CFGR2_ICACHE_REG_Pos
  15483. #define GTZC_TZIC_IER2_ICACHE_REGIE_Msk GTZC_CFGR2_ICACHE_REG_Msk
  15484. #define GTZC_TZIC_IER2_TSCIE_Pos GTZC_CFGR2_TSC_Pos
  15485. #define GTZC_TZIC_IER2_TSCIE_Msk GTZC_CFGR2_TSC_Msk
  15486. #define GTZC_TZIC_IER2_CRCIE_Pos GTZC_CFGR2_CRC_Pos
  15487. #define GTZC_TZIC_IER2_CRCIE_Msk GTZC_CFGR2_CRC_Msk
  15488. #define GTZC_TZIC_IER2_DFSDM1IE_Pos GTZC_CFGR2_DFSDM1_Pos
  15489. #define GTZC_TZIC_IER2_DFSDM1IE_Msk GTZC_CFGR2_DFSDM1_Msk
  15490. #define GTZC_TZIC_IER2_SAI2IE_Pos GTZC_CFGR2_SAI2_Pos
  15491. #define GTZC_TZIC_IER2_SAI2IE_Msk GTZC_CFGR2_SAI2_Msk
  15492. #define GTZC_TZIC_IER2_SAI1IE_Pos GTZC_CFGR2_SAI1_Pos
  15493. #define GTZC_TZIC_IER2_SAI1IE_Msk GTZC_CFGR2_SAI1_Msk
  15494. #define GTZC_TZIC_IER2_TIM17IE_Pos GTZC_CFGR2_TIM17_Pos
  15495. #define GTZC_TZIC_IER2_TIM17IE_Msk GTZC_CFGR2_TIM17_Msk
  15496. #define GTZC_TZIC_IER2_TIM16IE_Pos GTZC_CFGR2_TIM16_Pos
  15497. #define GTZC_TZIC_IER2_TIM16IE_Msk GTZC_CFGR2_TIM16_Msk
  15498. #define GTZC_TZIC_IER2_TIM15IE_Pos GTZC_CFGR2_TIM15_Pos
  15499. #define GTZC_TZIC_IER2_TIM15IE_Msk GTZC_CFGR2_TIM15_Msk
  15500. #define GTZC_TZIC_IER2_USART1IE_Pos GTZC_CFGR2_USART1_Pos
  15501. #define GTZC_TZIC_IER2_USART1IE_Msk GTZC_CFGR2_USART1_Msk
  15502. #define GTZC_TZIC_IER2_TIM8IE_Pos GTZC_CFGR2_TIM8_Pos
  15503. #define GTZC_TZIC_IER2_TIM8IE_Msk GTZC_CFGR2_TIM8_Msk
  15504. /******************* Bits definition for GTZC_TZIC_IER3 register ***************/
  15505. #define GTZC_TZIC_IER3_MPCBB2_REGIE_Pos GTZC_CFGR3_MPCBB2_REG_Pos
  15506. #define GTZC_TZIC_IER3_MPCBB2_REGIE_Msk GTZC_CFGR3_MPCBB2_REG_Msk
  15507. #define GTZC_TZIC_IER3_SRAM2IE_Pos GTZC_CFGR3_SRAM2_Pos
  15508. #define GTZC_TZIC_IER3_SRAM2IE_Msk GTZC_CFGR3_SRAM2_Msk
  15509. #define GTZC_TZIC_IER3_MPCBB1_REGIE_Pos GTZC_CFGR3_MPCBB1_REG_Pos
  15510. #define GTZC_TZIC_IER3_MPCBB1_REGIE_Msk GTZC_CFGR3_MPCBB1_REG_Msk
  15511. #define GTZC_TZIC_IER3_SRAM1IE_Pos GTZC_CFGR3_SRAM1_Pos
  15512. #define GTZC_TZIC_IER3_SRAM1IE_Msk GTZC_CFGR3_SRAM1_Msk
  15513. #define GTZC_TZIC_IER3_OCTOSPI1_MEMIE_Pos GTZC_CFGR3_OCTOSPI1_MEM_Pos
  15514. #define GTZC_TZIC_IER3_OCTOSPI1_MEMIE_Msk GTZC_CFGR3_OCTOSPI1_MEM_Msk
  15515. #define GTZC_TZIC_IER3_FMC_MEMIE_Pos GTZC_CFGR3_FMC_MEM_Pos
  15516. #define GTZC_TZIC_IER3_FMC_MEMIE_Msk GTZC_CFGR3_FMC_MEM_Msk
  15517. #define GTZC_TZIC_IER3_TZICIE_Pos GTZC_CFGR3_TZIC_Pos
  15518. #define GTZC_TZIC_IER3_TZICIE_Msk GTZC_CFGR3_TZIC_Msk
  15519. #define GTZC_TZIC_IER3_TZSCIE_Pos GTZC_CFGR3_TZSC_Pos
  15520. #define GTZC_TZIC_IER3_TZSCIE_Msk GTZC_CFGR3_TZSC_Msk
  15521. /******************* Bits definition for GTZC_TZIC_SR1 register **************/
  15522. #define GTZC_TZIC_SR1_SPI1F_Pos GTZC_CFGR1_SPI1_Pos
  15523. #define GTZC_TZIC_SR1_SPI1F_Msk GTZC_CFGR1_SPI1_Msk
  15524. #define GTZC_TZIC_SR1_TIM1F_Pos GTZC_CFGR1_TIM1_Pos
  15525. #define GTZC_TZIC_SR1_TIM1F_Msk GTZC_CFGR1_TIM1_Msk
  15526. #define GTZC_TZIC_SR1_COMPF_Pos GTZC_CFGR1_COMP_Pos
  15527. #define GTZC_TZIC_SR1_COMPF_Msk GTZC_CFGR1_COMP_Msk
  15528. #define GTZC_TZIC_SR1_VREFBUFF_Pos GTZC_CFGR1_VREFBUF_Pos
  15529. #define GTZC_TZIC_SR1_VREFBUFF_Msk GTZC_CFGR1_VREFBUF_Msk
  15530. #define GTZC_TZIC_SR1_UCPD1F_Pos GTZC_CFGR1_UCPD1_Pos
  15531. #define GTZC_TZIC_SR1_UCPD1F_Msk GTZC_CFGR1_UCPD1_Msk
  15532. #define GTZC_TZIC_SR1_USBFSF_Pos GTZC_CFGR1_USBFS_Pos
  15533. #define GTZC_TZIC_SR1_USBFSF_Msk GTZC_CFGR1_USBFS_Msk
  15534. #define GTZC_TZIC_SR1_FDCAN1F_Pos GTZC_CFGR1_FDCAN1_Pos
  15535. #define GTZC_TZIC_SR1_FDCAN1F_Msk GTZC_CFGR1_FDCAN1_Msk
  15536. #define GTZC_TZIC_SR1_LPTIM3F_Pos GTZC_CFGR1_LPTIM3_Pos
  15537. #define GTZC_TZIC_SR1_LPTIM3F_Msk GTZC_CFGR1_LPTIM3_Msk
  15538. #define GTZC_TZIC_SR1_LPTIM2F_Pos GTZC_CFGR1_LPTIM2_Pos
  15539. #define GTZC_TZIC_SR1_LPTIM2F_Msk GTZC_CFGR1_LPTIM2_Msk
  15540. #define GTZC_TZIC_SR1_I2C4F_Pos GTZC_CFGR1_I2C4_Pos
  15541. #define GTZC_TZIC_SR1_I2C4F_Msk GTZC_CFGR1_I2C4_Msk
  15542. #define GTZC_TZIC_SR1_LPUART1F_Pos GTZC_CFGR1_LPUART1_Pos
  15543. #define GTZC_TZIC_SR1_LPUART1F_Msk GTZC_CFGR1_LPUART1_Msk
  15544. #define GTZC_TZIC_SR1_LPTIM1F_Pos GTZC_CFGR1_LPTIM1_Pos
  15545. #define GTZC_TZIC_SR1_LPTIM1F_Msk GTZC_CFGR1_LPTIM1_Msk
  15546. #define GTZC_TZIC_SR1_OPAMPF_Pos GTZC_CFGR1_OPAMP_Pos
  15547. #define GTZC_TZIC_SR1_OPAMPF_Msk GTZC_CFGR1_OPAMP_Msk
  15548. #define GTZC_TZIC_SR1_DAC1F_Pos GTZC_CFGR1_DAC1_Pos
  15549. #define GTZC_TZIC_SR1_DAC1F_Msk GTZC_CFGR1_DAC1_Msk
  15550. #define GTZC_TZIC_SR1_CRSF_Pos GTZC_CFGR1_CRS_Pos
  15551. #define GTZC_TZIC_SR1_CRSF_Msk GTZC_CFGR1_CRS_Msk
  15552. #define GTZC_TZIC_SR1_I2C3F_Pos GTZC_CFGR1_I2C3_Pos
  15553. #define GTZC_TZIC_SR1_I2C3F_Msk GTZC_CFGR1_I2C3_Msk
  15554. #define GTZC_TZIC_SR1_I2C2F_Pos GTZC_CFGR1_I2C2_Pos
  15555. #define GTZC_TZIC_SR1_I2C2F_Msk GTZC_CFGR1_I2C2_Msk
  15556. #define GTZC_TZIC_SR1_I2C1F_Pos GTZC_CFGR1_I2C1_Pos
  15557. #define GTZC_TZIC_SR1_I2C1F_Msk GTZC_CFGR1_I2C1_Msk
  15558. #define GTZC_TZIC_SR1_UART5F_Pos GTZC_CFGR1_UART5_Pos
  15559. #define GTZC_TZIC_SR1_UART5F_Msk GTZC_CFGR1_UART5_Msk
  15560. #define GTZC_TZIC_SR1_UART4F_Pos GTZC_CFGR1_UART4_Pos
  15561. #define GTZC_TZIC_SR1_UART4F_Msk GTZC_CFGR1_UART4_Msk
  15562. #define GTZC_TZIC_SR1_USART3F_Pos GTZC_CFGR1_USART3_Pos
  15563. #define GTZC_TZIC_SR1_USART3F_Msk GTZC_CFGR1_USART3_Msk
  15564. #define GTZC_TZIC_SR1_USART2F_Pos GTZC_CFGR1_USART2_Pos
  15565. #define GTZC_TZIC_SR1_USART2F_Msk GTZC_CFGR1_USART2_Msk
  15566. #define GTZC_TZIC_SR1_SPI3F_Pos GTZC_CFGR1_SPI3_Pos
  15567. #define GTZC_TZIC_SR1_SPI3F_Msk GTZC_CFGR1_SPI3_Msk
  15568. #define GTZC_TZIC_SR1_SPI2F_Pos GTZC_CFGR1_SPI2_Pos
  15569. #define GTZC_TZIC_SR1_SPI2F_Msk GTZC_CFGR1_SPI2_Msk
  15570. #define GTZC_TZIC_SR1_IWDGF_Pos GTZC_CFGR1_IWDG_Pos
  15571. #define GTZC_TZIC_SR1_IWDGF_Msk GTZC_CFGR1_IWDG_Msk
  15572. #define GTZC_TZIC_SR1_WWDGF_Pos GTZC_CFGR1_WWDG_Pos
  15573. #define GTZC_TZIC_SR1_WWDGF_Msk GTZC_CFGR1_WWDG_Msk
  15574. #define GTZC_TZIC_SR1_TIM7F_Pos GTZC_CFGR1_TIM7_Pos
  15575. #define GTZC_TZIC_SR1_TIM7F_Msk GTZC_CFGR1_TIM7_Msk
  15576. #define GTZC_TZIC_SR1_TIM6F_Pos GTZC_CFGR1_TIM6_Pos
  15577. #define GTZC_TZIC_SR1_TIM6F_Msk GTZC_CFGR1_TIM6_Msk
  15578. #define GTZC_TZIC_SR1_TIM5F_Pos GTZC_CFGR1_TIM5_Pos
  15579. #define GTZC_TZIC_SR1_TIM5F_Msk GTZC_CFGR1_TIM5_Msk
  15580. #define GTZC_TZIC_SR1_TIM4F_Pos GTZC_CFGR1_TIM4_Pos
  15581. #define GTZC_TZIC_SR1_TIM4F_Msk GTZC_CFGR1_TIM4_Msk
  15582. #define GTZC_TZIC_SR1_TIM3F_Pos GTZC_CFGR1_TIM3_Pos
  15583. #define GTZC_TZIC_SR1_TIM3F_Msk GTZC_CFGR1_TIM3_Msk
  15584. #define GTZC_TZIC_SR1_TIM2F_Pos GTZC_CFGR1_TIM2_Pos
  15585. #define GTZC_TZIC_SR1_TIM2F_Msk GTZC_CFGR1_TIM2_Msk
  15586. /******************* Bits definition for GTZC_TZIC_SR2 register **************/
  15587. #define GTZC_TZIC_SR2_EXTIF_Pos GTZC_CFGR2_EXTI_Pos
  15588. #define GTZC_TZIC_SR2_EXTIF_Msk GTZC_CFGR2_EXTI_Msk
  15589. #define GTZC_TZIC_SR2_FLASH_REGF_Pos GTZC_CFGR2_FLASH_REG_Pos
  15590. #define GTZC_TZIC_SR2_FLASH_REGF_Msk GTZC_CFGR2_FLASH_REG_Msk
  15591. #define GTZC_TZIC_SR2_FLASHF_Pos GTZC_CFGR2_FLASH_Pos
  15592. #define GTZC_TZIC_SR2_FLASHF_Msk GTZC_CFGR2_FLASH_Msk
  15593. #define GTZC_TZIC_SR2_RCCF_Pos GTZC_CFGR2_RCC_Pos
  15594. #define GTZC_TZIC_SR2_RCCF_Msk GTZC_CFGR2_RCC_Msk
  15595. #define GTZC_TZIC_SR2_DMAMUX1F_Pos GTZC_CFGR2_DMAMUX1_Pos
  15596. #define GTZC_TZIC_SR2_DMAMUX1F_Msk GTZC_CFGR2_DMAMUX1_Msk
  15597. #define GTZC_TZIC_SR2_DMA2F_Pos GTZC_CFGR2_DMA2_Pos
  15598. #define GTZC_TZIC_SR2_DMA2F_Msk GTZC_CFGR2_DMA2_Msk
  15599. #define GTZC_TZIC_SR2_DMA1F_Pos GTZC_CFGR2_DMA1_Pos
  15600. #define GTZC_TZIC_SR2_DMA1F_Msk GTZC_CFGR2_DMA1_Msk
  15601. #define GTZC_TZIC_SR2_SYSCFGF_Pos GTZC_CFGR2_SYSCFG_Pos
  15602. #define GTZC_TZIC_SR2_SYSCFGF_Msk GTZC_CFGR2_SYSCFG_Msk
  15603. #define GTZC_TZIC_SR2_PWRF_Pos GTZC_CFGR2_PWR_Pos
  15604. #define GTZC_TZIC_SR2_PWRF_Msk GTZC_CFGR2_PWR_Msk
  15605. #define GTZC_TZIC_SR2_RTCF_Pos GTZC_CFGR2_RTC_Pos
  15606. #define GTZC_TZIC_SR2_RTCF_Msk GTZC_CFGR2_RTC_Msk
  15607. #define GTZC_TZIC_SR2_OCTOSPI1_REGF_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  15608. #define GTZC_TZIC_SR2_OCTOSPI1_REGF_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  15609. #define GTZC_TZIC_SR2_FMC_REGF_Pos GTZC_CFGR2_FMC_REG_Pos
  15610. #define GTZC_TZIC_SR2_FMC_REGF_Msk GTZC_CFGR2_FMC_REG_Msk
  15611. #define GTZC_TZIC_SR2_SDMMC1F_Pos GTZC_CFGR2_SDMMC1_Pos
  15612. #define GTZC_TZIC_SR2_SDMMC1F_Msk GTZC_CFGR2_SDMMC1_Msk
  15613. #define GTZC_TZIC_SR2_RNGF_Pos GTZC_CFGR2_RNG_Pos
  15614. #define GTZC_TZIC_SR2_RNGF_Msk GTZC_CFGR2_RNG_Msk
  15615. #define GTZC_TZIC_SR2_HASHF_Pos GTZC_CFGR2_HASH_Pos
  15616. #define GTZC_TZIC_SR2_HASHF_Msk GTZC_CFGR2_HASH_Msk
  15617. #define GTZC_TZIC_SR2_ADCF_Pos GTZC_CFGR2_ADC_Pos
  15618. #define GTZC_TZIC_SR2_ADCF_Msk GTZC_CFGR2_ADC_Msk
  15619. #define GTZC_TZIC_SR2_ICACHE_REGF_Pos GTZC_CFGR2_ICACHE_REG_Pos
  15620. #define GTZC_TZIC_SR2_ICACHE_REGF_Msk GTZC_CFGR2_ICACHE_REG_Msk
  15621. #define GTZC_TZIC_SR2_TSCF_Pos GTZC_CFGR2_TSC_Pos
  15622. #define GTZC_TZIC_SR2_TSCF_Msk GTZC_CFGR2_TSC_Msk
  15623. #define GTZC_TZIC_SR2_CRCF_Pos GTZC_CFGR2_CRC_Pos
  15624. #define GTZC_TZIC_SR2_CRCF_Msk GTZC_CFGR2_CRC_Msk
  15625. #define GTZC_TZIC_SR2_DFSDM1F_Pos GTZC_CFGR2_DFSDM1_Pos
  15626. #define GTZC_TZIC_SR2_DFSDM1F_Msk GTZC_CFGR2_DFSDM1_Msk
  15627. #define GTZC_TZIC_SR2_SAI2F_Pos GTZC_CFGR2_SAI2_Pos
  15628. #define GTZC_TZIC_SR2_SAI2F_Msk GTZC_CFGR2_SAI2_Msk
  15629. #define GTZC_TZIC_SR2_SAI1F_Pos GTZC_CFGR2_SAI1_Pos
  15630. #define GTZC_TZIC_SR2_SAI1F_Msk GTZC_CFGR2_SAI1_Msk
  15631. #define GTZC_TZIC_SR2_TIM17F_Pos GTZC_CFGR2_TIM17_Pos
  15632. #define GTZC_TZIC_SR2_TIM17F_Msk GTZC_CFGR2_TIM17_Msk
  15633. #define GTZC_TZIC_SR2_TIM16F_Pos GTZC_CFGR2_TIM16_Pos
  15634. #define GTZC_TZIC_SR2_TIM16F_Msk GTZC_CFGR2_TIM16_Msk
  15635. #define GTZC_TZIC_SR2_TIM15F_Pos GTZC_CFGR2_TIM15_Pos
  15636. #define GTZC_TZIC_SR2_TIM15F_Msk GTZC_CFGR2_TIM15_Msk
  15637. #define GTZC_TZIC_SR2_USART1F_Pos GTZC_CFGR2_USART1_Pos
  15638. #define GTZC_TZIC_SR2_USART1F_Msk GTZC_CFGR2_USART1_Msk
  15639. #define GTZC_TZIC_SR2_TIM8F_Pos GTZC_CFGR2_TIM8_Pos
  15640. #define GTZC_TZIC_SR2_TIM8F_Msk GTZC_CFGR2_TIM8_Msk
  15641. /******************* Bits definition for GTZC_TZIC_SR3 register **************/
  15642. #define GTZC_TZIC_SR3_MPCBB2_REGF_Pos GTZC_CFGR3_MPCBB2_REG_Pos
  15643. #define GTZC_TZIC_SR3_MPCBB2_REGF_Msk GTZC_CFGR3_MPCBB2_REG_Msk
  15644. #define GTZC_TZIC_SR3_SRAM2F_Pos GTZC_CFGR3_SRAM2_Pos
  15645. #define GTZC_TZIC_SR3_SRAM2F_Msk GTZC_CFGR3_SRAM2_Msk
  15646. #define GTZC_TZIC_SR3_MPCBB1_REGF_Pos GTZC_CFGR3_MPCBB1_REG_Pos
  15647. #define GTZC_TZIC_SR3_MPCBB1_REGF_Msk GTZC_CFGR3_MPCBB1_REG_Msk
  15648. #define GTZC_TZIC_SR3_SRAM1F_Pos GTZC_CFGR3_SRAM1_Pos
  15649. #define GTZC_TZIC_SR3_SRAM1F_Msk GTZC_CFGR3_SRAM1_Msk
  15650. #define GTZC_TZIC_SR3_OCTOSPI1_MEMF_Pos GTZC_CFGR3_OCTOSPI1_MEM_Pos
  15651. #define GTZC_TZIC_SR3_OCTOSPI1_MEMF_Msk GTZC_CFGR3_OCTOSPI1_MEM_Msk
  15652. #define GTZC_TZIC_SR3_FMC_MEMF_Pos GTZC_CFGR3_FMC_MEM_Pos
  15653. #define GTZC_TZIC_SR3_FMC_MEMF_Msk GTZC_CFGR3_FMC_MEM_Msk
  15654. #define GTZC_TZIC_SR3_TZICF_Pos GTZC_CFGR3_TZIC_Pos
  15655. #define GTZC_TZIC_SR3_TZICF_Msk GTZC_CFGR3_TZIC_Msk
  15656. #define GTZC_TZIC_SR3_TZSCF_Pos GTZC_CFGR3_TZSC_Pos
  15657. #define GTZC_TZIC_SR3_TZSCF_Msk GTZC_CFGR3_TZSC_Msk
  15658. /****************** Bits definition for GTZC_TZIC_FCR1 register ****************/
  15659. #define GTZC_TZIC_FCR1_SPI1FC_Pos GTZC_CFGR1_SPI1_Pos
  15660. #define GTZC_TZIC_FCR1_SPI1FC_Msk GTZC_CFGR1_SPI1_Msk
  15661. #define GTZC_TZIC_FCR1_TIM1FC_Pos GTZC_CFGR1_TIM1_Pos
  15662. #define GTZC_TZIC_FCR1_TIM1FC_Msk GTZC_CFGR1_TIM1_Msk
  15663. #define GTZC_TZIC_FCR1_COMPFC_Pos GTZC_CFGR1_COMP_Pos
  15664. #define GTZC_TZIC_FCR1_COMPFC_Msk GTZC_CFGR1_COMP_Msk
  15665. #define GTZC_TZIC_FCR1_VREFBUFFC_Pos GTZC_CFGR1_VREFBUF_Pos
  15666. #define GTZC_TZIC_FCR1_VREFBUFFC_Msk GTZC_CFGR1_VREFBUF_Msk
  15667. #define GTZC_TZIC_FCR1_UCPD1FC_Pos GTZC_CFGR1_UCPD1_Pos
  15668. #define GTZC_TZIC_FCR1_UCPD1FC_Msk GTZC_CFGR1_UCPD1_Msk
  15669. #define GTZC_TZIC_FCR1_USBFSFC_Pos GTZC_CFGR1_USBFS_Pos
  15670. #define GTZC_TZIC_FCR1_USBFSFC_Msk GTZC_CFGR1_USBFS_Msk
  15671. #define GTZC_TZIC_FCR1_FDCAN1FC_Pos GTZC_CFGR1_FDCAN1_Pos
  15672. #define GTZC_TZIC_FCR1_FDCAN1FC_Msk GTZC_CFGR1_FDCAN1_Msk
  15673. #define GTZC_TZIC_FCR1_LPTIM3FC_Pos GTZC_CFGR1_LPTIM3_Pos
  15674. #define GTZC_TZIC_FCR1_LPTIM3FC_Msk GTZC_CFGR1_LPTIM3_Msk
  15675. #define GTZC_TZIC_FCR1_LPTIM2FC_Pos GTZC_CFGR1_LPTIM2_Pos
  15676. #define GTZC_TZIC_FCR1_LPTIM2FC_Msk GTZC_CFGR1_LPTIM2_Msk
  15677. #define GTZC_TZIC_FCR1_I2C4FC_Pos GTZC_CFGR1_I2C4_Pos
  15678. #define GTZC_TZIC_FCR1_I2C4FC_Msk GTZC_CFGR1_I2C4_Msk
  15679. #define GTZC_TZIC_FCR1_LPUART1FC_Pos GTZC_CFGR1_LPUART1_Pos
  15680. #define GTZC_TZIC_FCR1_LPUART1FC_Msk GTZC_CFGR1_LPUART1_Msk
  15681. #define GTZC_TZIC_FCR1_LPTIM1FC_Pos GTZC_CFGR1_LPTIM1_Pos
  15682. #define GTZC_TZIC_FCR1_LPTIM1FC_Msk GTZC_CFGR1_LPTIM1_Msk
  15683. #define GTZC_TZIC_FCR1_OPAMPFC_Pos GTZC_CFGR1_OPAMP_Pos
  15684. #define GTZC_TZIC_FCR1_OPAMPFC_Msk GTZC_CFGR1_OPAMP_Msk
  15685. #define GTZC_TZIC_FCR1_DAC1FC_Pos GTZC_CFGR1_DAC1_Pos
  15686. #define GTZC_TZIC_FCR1_DAC1FC_Msk GTZC_CFGR1_DAC1_Msk
  15687. #define GTZC_TZIC_FCR1_CRSFC_Pos GTZC_CFGR1_CRS_Pos
  15688. #define GTZC_TZIC_FCR1_CRSFC_Msk GTZC_CFGR1_CRS_Msk
  15689. #define GTZC_TZIC_FCR1_I2C3FC_Pos GTZC_CFGR1_I2C3_Pos
  15690. #define GTZC_TZIC_FCR1_I2C3FC_Msk GTZC_CFGR1_I2C3_Msk
  15691. #define GTZC_TZIC_FCR1_I2C2FC_Pos GTZC_CFGR1_I2C2_Pos
  15692. #define GTZC_TZIC_FCR1_I2C2FC_Msk GTZC_CFGR1_I2C2_Msk
  15693. #define GTZC_TZIC_FCR1_I2C1FC_Pos GTZC_CFGR1_I2C1_Pos
  15694. #define GTZC_TZIC_FCR1_I2C1FC_Msk GTZC_CFGR1_I2C1_Msk
  15695. #define GTZC_TZIC_FCR1_UART5FC_Pos GTZC_CFGR1_UART5_Pos
  15696. #define GTZC_TZIC_FCR1_UART5FC_Msk GTZC_CFGR1_UART5_Msk
  15697. #define GTZC_TZIC_FCR1_UART4FC_Pos GTZC_CFGR1_UART4_Pos
  15698. #define GTZC_TZIC_FCR1_UART4FC_Msk GTZC_CFGR1_UART4_Msk
  15699. #define GTZC_TZIC_FCR1_USART3FC_Pos GTZC_CFGR1_USART3_Pos
  15700. #define GTZC_TZIC_FCR1_USART3FC_Msk GTZC_CFGR1_USART3_Msk
  15701. #define GTZC_TZIC_FCR1_USART2FC_Pos GTZC_CFGR1_USART2_Pos
  15702. #define GTZC_TZIC_FCR1_USART2FC_Msk GTZC_CFGR1_USART2_Msk
  15703. #define GTZC_TZIC_FCR1_SPI3FC_Pos GTZC_CFGR1_SPI3_Pos
  15704. #define GTZC_TZIC_FCR1_SPI3FC_Msk GTZC_CFGR1_SPI3_Msk
  15705. #define GTZC_TZIC_FCR1_SPI2FC_Pos GTZC_CFGR1_SPI2_Pos
  15706. #define GTZC_TZIC_FCR1_SPI2FC_Msk GTZC_CFGR1_SPI2_Msk
  15707. #define GTZC_TZIC_FCR1_IWDGFC_Pos GTZC_CFGR1_IWDG_Pos
  15708. #define GTZC_TZIC_FCR1_IWDGFC_Msk GTZC_CFGR1_IWDG_Msk
  15709. #define GTZC_TZIC_FCR1_WWDGFC_Pos GTZC_CFGR1_WWDG_Pos
  15710. #define GTZC_TZIC_FCR1_WWDGFC_Msk GTZC_CFGR1_WWDG_Msk
  15711. #define GTZC_TZIC_FCR1_TIM7FC_Pos GTZC_CFGR1_TIM7_Pos
  15712. #define GTZC_TZIC_FCR1_TIM7FC_Msk GTZC_CFGR1_TIM7_Msk
  15713. #define GTZC_TZIC_FCR1_TIM6FC_Pos GTZC_CFGR1_TIM6_Pos
  15714. #define GTZC_TZIC_FCR1_TIM6FC_Msk GTZC_CFGR1_TIM6_Msk
  15715. #define GTZC_TZIC_FCR1_TIM5FC_Pos GTZC_CFGR1_TIM5_Pos
  15716. #define GTZC_TZIC_FCR1_TIM5FC_Msk GTZC_CFGR1_TIM5_Msk
  15717. #define GTZC_TZIC_FCR1_TIM4FC_Pos GTZC_CFGR1_TIM4_Pos
  15718. #define GTZC_TZIC_FCR1_TIM4FC_Msk GTZC_CFGR1_TIM4_Msk
  15719. #define GTZC_TZIC_FCR1_TIM3FC_Pos GTZC_CFGR1_TIM3_Pos
  15720. #define GTZC_TZIC_FCR1_TIM3FC_Msk GTZC_CFGR1_TIM3_Msk
  15721. #define GTZC_TZIC_FCR1_TIM2FC_Pos GTZC_CFGR1_TIM2_Pos
  15722. #define GTZC_TZIC_FCR1_TIM2FC_Msk GTZC_CFGR1_TIM2_Msk
  15723. /****************** Bits definition for GTZC_TZIC_FCR2 register ****************/
  15724. #define GTZC_TZIC_FCR2_EXTIFC_Pos GTZC_CFGR2_EXTI_Pos
  15725. #define GTZC_TZIC_FCR2_EXTIFC_Msk GTZC_CFGR2_EXTI_Msk
  15726. #define GTZC_TZIC_FCR2_FLASH_REGFC_Pos GTZC_CFGR2_FLASH_REG_Pos
  15727. #define GTZC_TZIC_FCR2_FLASH_REGFC_Msk GTZC_CFGR2_FLASH_REG_Msk
  15728. #define GTZC_TZIC_FCR2_FLASHFC_Pos GTZC_CFGR2_FLASH_Pos
  15729. #define GTZC_TZIC_FCR2_FLASHFC_Msk GTZC_CFGR2_FLASH_Msk
  15730. #define GTZC_TZIC_FCR2_RCCFC_Pos GTZC_CFGR2_RCC_Pos
  15731. #define GTZC_TZIC_FCR2_RCCFC_Msk GTZC_CFGR2_RCC_Msk
  15732. #define GTZC_TZIC_FCR2_DMAMUX1FC_Pos GTZC_CFGR2_DMAMUX1_Pos
  15733. #define GTZC_TZIC_FCR2_DMAMUX1FC_Msk GTZC_CFGR2_DMAMUX1_Msk
  15734. #define GTZC_TZIC_FCR2_DMA2FC_Pos GTZC_CFGR2_DMA2_Pos
  15735. #define GTZC_TZIC_FCR2_DMA2FC_Msk GTZC_CFGR2_DMA2_Msk
  15736. #define GTZC_TZIC_FCR2_DMA1FC_Pos GTZC_CFGR2_DMA1_Pos
  15737. #define GTZC_TZIC_FCR2_DMA1FC_Msk GTZC_CFGR2_DMA1_Msk
  15738. #define GTZC_TZIC_FCR2_SYSCFGFC_Pos GTZC_CFGR2_SYSCFG_Pos
  15739. #define GTZC_TZIC_FCR2_SYSCFGFC_Msk GTZC_CFGR2_SYSCFG_Msk
  15740. #define GTZC_TZIC_FCR2_PWRFC_Pos GTZC_CFGR2_PWR_Pos
  15741. #define GTZC_TZIC_FCR2_PWRFC_Msk GTZC_CFGR2_PWR_Msk
  15742. #define GTZC_TZIC_FCR2_RTCFC_Pos GTZC_CFGR2_RTC_Pos
  15743. #define GTZC_TZIC_FCR2_RTCFC_Msk GTZC_CFGR2_RTC_Msk
  15744. #define GTZC_TZIC_FCR2_OCTOSPI1_REGFC_Pos GTZC_CFGR2_OCTOSPI1_REG_Pos
  15745. #define GTZC_TZIC_FCR2_OCTOSPI1_REGFC_Msk GTZC_CFGR2_OCTOSPI1_REG_Msk
  15746. #define GTZC_TZIC_FCR2_FMC_REGFC_Pos GTZC_CFGR2_FMC_REG_Pos
  15747. #define GTZC_TZIC_FCR2_FMC_REGFC_Msk GTZC_CFGR2_FMC_REG_Msk
  15748. #define GTZC_TZIC_FCR2_SDMMC1FC_Pos GTZC_CFGR2_SDMMC1_Pos
  15749. #define GTZC_TZIC_FCR2_SDMMC1FC_Msk GTZC_CFGR2_SDMMC1_Msk
  15750. #define GTZC_TZIC_FCR2_RNGFC_Pos GTZC_CFGR2_RNG_Pos
  15751. #define GTZC_TZIC_FCR2_RNGFC_Msk GTZC_CFGR2_RNG_Msk
  15752. #define GTZC_TZIC_FCR2_HASHFC_Pos GTZC_CFGR2_HASH_Pos
  15753. #define GTZC_TZIC_FCR2_HASHFC_Msk GTZC_CFGR2_HASH_Msk
  15754. #define GTZC_TZIC_FCR2_ADCFC_Pos GTZC_CFGR2_ADC_Pos
  15755. #define GTZC_TZIC_FCR2_ADCFC_Msk GTZC_CFGR2_ADC_Msk
  15756. #define GTZC_TZIC_FCR2_ICACHE_REGFC_Pos GTZC_CFGR2_ICACHE_REG_Pos
  15757. #define GTZC_TZIC_FCR2_ICACHE_REGFC_Msk GTZC_CFGR2_ICACHE_REG_Msk
  15758. #define GTZC_TZIC_FCR2_TSCFC_Pos GTZC_CFGR2_TSC_Pos
  15759. #define GTZC_TZIC_FCR2_TSCFC_Msk GTZC_CFGR2_TSC_Msk
  15760. #define GTZC_TZIC_FCR2_CRCFC_Pos GTZC_CFGR2_CRC_Pos
  15761. #define GTZC_TZIC_FCR2_CRCFC_Msk GTZC_CFGR2_CRC_Msk
  15762. #define GTZC_TZIC_FCR2_DFSDM1FC_Pos GTZC_CFGR2_DFSDM1_Pos
  15763. #define GTZC_TZIC_FCR2_DFSDM1FC_Msk GTZC_CFGR2_DFSDM1_Msk
  15764. #define GTZC_TZIC_FCR2_SAI2FC_Pos GTZC_CFGR2_SAI2_Pos
  15765. #define GTZC_TZIC_FCR2_SAI2FC_Msk GTZC_CFGR2_SAI2_Msk
  15766. #define GTZC_TZIC_FCR2_SAI1FC_Pos GTZC_CFGR2_SAI1_Pos
  15767. #define GTZC_TZIC_FCR2_SAI1FC_Msk GTZC_CFGR2_SAI1_Msk
  15768. #define GTZC_TZIC_FCR2_TIM17FC_Pos GTZC_CFGR2_TIM17_Pos
  15769. #define GTZC_TZIC_FCR2_TIM17FC_Msk GTZC_CFGR2_TIM17_Msk
  15770. #define GTZC_TZIC_FCR2_TIM16FC_Pos GTZC_CFGR2_TIM16_Pos
  15771. #define GTZC_TZIC_FCR2_TIM16FC_Msk GTZC_CFGR2_TIM16_Msk
  15772. #define GTZC_TZIC_FCR2_TIM15FC_Pos GTZC_CFGR2_TIM15_Pos
  15773. #define GTZC_TZIC_FCR2_TIM15FC_Msk GTZC_CFGR2_TIM15_Msk
  15774. #define GTZC_TZIC_FCR2_USART1FC_Pos GTZC_CFGR2_USART1_Pos
  15775. #define GTZC_TZIC_FCR2_USART1FC_Msk GTZC_CFGR2_USART1_Msk
  15776. #define GTZC_TZIC_FCR2_TIM8FC_Pos GTZC_CFGR2_TIM8_Pos
  15777. #define GTZC_TZIC_FCR2_TIM8FC_Msk GTZC_CFGR2_TIM8_Msk
  15778. /****************** Bits definition for GTZC_TZIC_FCR3 register ****************/
  15779. #define GTZC_TZIC_FCR3_MPCBB2_REGFC_Pos GTZC_CFGR3_MPCBB2_REG_Pos
  15780. #define GTZC_TZIC_FCR3_MPCBB2_REGFC_Msk GTZC_CFGR3_MPCBB2_REG_Msk
  15781. #define GTZC_TZIC_FCR3_MPCBB2FC_Pos GTZC_CFGR3_SRAM2_Pos
  15782. #define GTZC_TZIC_FCR3_MPCBB2FC_Msk GTZC_CFGR3_SRAM2_Msk
  15783. #define GTZC_TZIC_FCR3_MPCBB1_REGFC_Pos GTZC_CFGR3_MPCBB1_REG_Pos
  15784. #define GTZC_TZIC_FCR3_MPCBB1_REGFC_Msk GTZC_CFGR3_MPCBB1_REG_Msk
  15785. #define GTZC_TZIC_FCR3_MPCBB1FC_Pos GTZC_CFGR3_SRAM1_Pos
  15786. #define GTZC_TZIC_FCR3_MPCBB1FC_Msk GTZC_CFGR3_MPCBB1_Msk
  15787. #define GTZC_TZIC_FCR3_OCTOSPI1_MEMFC_Pos GTZC_CFGR3_OCTOSPI1_MEM_Pos
  15788. #define GTZC_TZIC_FCR3_OCTOSPI1_MEMFC_Msk GTZC_CFGR3_OCTOSPI1_MEM_Msk
  15789. #define GTZC_TZIC_FCR3_FMC_MEMFC_Pos GTZC_CFGR3_FMC_MEM_Pos
  15790. #define GTZC_TZIC_FCR3_FMC_MEMFC_Msk GTZC_CFGR3_FMC_MEM_Msk
  15791. #define GTZC_TZIC_FCR3_TZICFC_Pos GTZC_CFGR3_TZIC_Pos
  15792. #define GTZC_TZIC_FCR3_TZICFC_Msk GTZC_CFGR3_TZIC_Msk
  15793. #define GTZC_TZIC_FCR3_TZSCFC_Pos GTZC_CFGR3_TZSC_Pos
  15794. #define GTZC_TZIC_FCR3_TZSCFC_Msk GTZC_CFGR3_TZSC_Msk
  15795. /******************* Bits definition for GTZC_MPCBB_CR register *****************/
  15796. #define GTZC_MPCBB_CR_LCK_Pos (0U)
  15797. #define GTZC_MPCBB_CR_LCK_Msk (0x01UL << GTZC_MPCBB_CR_LCK_Pos) /*!< 0x00000001 */
  15798. #define GTZC_MPCBB_CR_INVSECSTATE_Pos (30U)
  15799. #define GTZC_MPCBB_CR_INVSECSTATE_Msk (0x01UL << GTZC_MPCBB_CR_INVSECSTATE_Pos) /*!< 0x40000000 */
  15800. #define GTZC_MPCBB_CR_SRWILADIS_Pos (31U)
  15801. #define GTZC_MPCBB_CR_SRWILADIS_Msk (0x01UL << GTZC_MPCBB_CR_SRWILADIS_Pos) /*!< 0x80000000 */
  15802. /******************* Bits definition for GTZC_MPCBB_LCKVTR1 register ************/
  15803. #define GTZC_MPCBB_LCKVTR1_LCKSB0_Pos (0U)
  15804. #define GTZC_MPCBB_LCKVTR1_LCKSB0_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB0_Pos) /*!< 0x00000001 */
  15805. #define GTZC_MPCBB_LCKVTR1_LCKSB1_Pos (1U)
  15806. #define GTZC_MPCBB_LCKVTR1_LCKSB1_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB1_Pos) /*!< 0x00000002 */
  15807. #define GTZC_MPCBB_LCKVTR1_LCKSB2_Pos (2U)
  15808. #define GTZC_MPCBB_LCKVTR1_LCKSB2_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB2_Pos) /*!< 0x00000004 */
  15809. #define GTZC_MPCBB_LCKVTR1_LCKSB3_Pos (3U)
  15810. #define GTZC_MPCBB_LCKVTR1_LCKSB3_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB3_Pos) /*!< 0x00000008 */
  15811. #define GTZC_MPCBB_LCKVTR1_LCKSB4_Pos (4U)
  15812. #define GTZC_MPCBB_LCKVTR1_LCKSB4_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB4_Pos) /*!< 0x00000010 */
  15813. #define GTZC_MPCBB_LCKVTR1_LCKSB5_Pos (5U)
  15814. #define GTZC_MPCBB_LCKVTR1_LCKSB5_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB5_Pos) /*!< 0x00000020 */
  15815. #define GTZC_MPCBB_LCKVTR1_LCKSB6_Pos (6U)
  15816. #define GTZC_MPCBB_LCKVTR1_LCKSB6_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB6_Pos) /*!< 0x00000040 */
  15817. #define GTZC_MPCBB_LCKVTR1_LCKSB7_Pos (7U)
  15818. #define GTZC_MPCBB_LCKVTR1_LCKSB7_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB7_Pos) /*!< 0x00000080 */
  15819. #define GTZC_MPCBB_LCKVTR1_LCKSB8_Pos (8U)
  15820. #define GTZC_MPCBB_LCKVTR1_LCKSB8_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB8_Pos) /*!< 0x00000100 */
  15821. #define GTZC_MPCBB_LCKVTR1_LCKSB9_Pos (9U)
  15822. #define GTZC_MPCBB_LCKVTR1_LCKSB9_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB9_Pos) /*!< 0x00000200 */
  15823. #define GTZC_MPCBB_LCKVTR1_LCKSB10_Pos (10U)
  15824. #define GTZC_MPCBB_LCKVTR1_LCKSB10_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB10_Pos) /*!< 0x00000400 */
  15825. #define GTZC_MPCBB_LCKVTR1_LCKSB11_Pos (11U)
  15826. #define GTZC_MPCBB_LCKVTR1_LCKSB11_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB11_Pos) /*!< 0x00000800 */
  15827. #define GTZC_MPCBB_LCKVTR1_LCKSB12_Pos (12U)
  15828. #define GTZC_MPCBB_LCKVTR1_LCKSB12_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB12_Pos) /*!< 0x00001000 */
  15829. #define GTZC_MPCBB_LCKVTR1_LCKSB13_Pos (13U)
  15830. #define GTZC_MPCBB_LCKVTR1_LCKSB13_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB13_Pos) /*!< 0x00002000 */
  15831. #define GTZC_MPCBB_LCKVTR1_LCKSB14_Pos (14U)
  15832. #define GTZC_MPCBB_LCKVTR1_LCKSB14_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB14_Pos) /*!< 0x00004000 */
  15833. #define GTZC_MPCBB_LCKVTR1_LCKSB15_Pos (15U)
  15834. #define GTZC_MPCBB_LCKVTR1_LCKSB15_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB15_Pos) /*!< 0x00008000 */
  15835. #define GTZC_MPCBB_LCKVTR1_LCKSB16_Pos (16U)
  15836. #define GTZC_MPCBB_LCKVTR1_LCKSB16_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB16_Pos) /*!< 0x00010000 */
  15837. #define GTZC_MPCBB_LCKVTR1_LCKSB17_Pos (17U)
  15838. #define GTZC_MPCBB_LCKVTR1_LCKSB17_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB17_Pos) /*!< 0x00020000 */
  15839. #define GTZC_MPCBB_LCKVTR1_LCKSB18_Pos (18U)
  15840. #define GTZC_MPCBB_LCKVTR1_LCKSB18_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB18_Pos) /*!< 0x00040000 */
  15841. #define GTZC_MPCBB_LCKVTR1_LCKSB19_Pos (19U)
  15842. #define GTZC_MPCBB_LCKVTR1_LCKSB19_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB19_Pos) /*!< 0x00080000 */
  15843. #define GTZC_MPCBB_LCKVTR1_LCKSB20_Pos (20U)
  15844. #define GTZC_MPCBB_LCKVTR1_LCKSB20_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB20_Pos) /*!< 0x00100000 */
  15845. #define GTZC_MPCBB_LCKVTR1_LCKSB21_Pos (21U)
  15846. #define GTZC_MPCBB_LCKVTR1_LCKSB21_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB21_Pos) /*!< 0x00200000 */
  15847. #define GTZC_MPCBB_LCKVTR1_LCKSB22_Pos (22U)
  15848. #define GTZC_MPCBB_LCKVTR1_LCKSB22_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB22_Pos) /*!< 0x00400000 */
  15849. #define GTZC_MPCBB_LCKVTR1_LCKSB23_Pos (23U)
  15850. #define GTZC_MPCBB_LCKVTR1_LCKSB23_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB23_Pos) /*!< 0x00800000 */
  15851. #define GTZC_MPCBB_LCKVTR1_LCKSB24_Pos (24U)
  15852. #define GTZC_MPCBB_LCKVTR1_LCKSB24_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB24_Pos) /*!< 0x01000000 */
  15853. #define GTZC_MPCBB_LCKVTR1_LCKSB25_Pos (25U)
  15854. #define GTZC_MPCBB_LCKVTR1_LCKSB25_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB25_Pos) /*!< 0x02000000 */
  15855. #define GTZC_MPCBB_LCKVTR1_LCKSB26_Pos (26U)
  15856. #define GTZC_MPCBB_LCKVTR1_LCKSB26_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB26_Pos) /*!< 0x04000000 */
  15857. #define GTZC_MPCBB_LCKVTR1_LCKSB27_Pos (27U)
  15858. #define GTZC_MPCBB_LCKVTR1_LCKSB27_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB27_Pos) /*!< 0x08000000 */
  15859. #define GTZC_MPCBB_LCKVTR1_LCKSB28_Pos (28U)
  15860. #define GTZC_MPCBB_LCKVTR1_LCKSB28_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB28_Pos) /*!< 0x10000000 */
  15861. #define GTZC_MPCBB_LCKVTR1_LCKSB29_Pos (29U)
  15862. #define GTZC_MPCBB_LCKVTR1_LCKSB29_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB29_Pos) /*!< 0x20000000 */
  15863. #define GTZC_MPCBB_LCKVTR1_LCKSB30_Pos (30U)
  15864. #define GTZC_MPCBB_LCKVTR1_LCKSB30_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB30_Pos) /*!< 0x40000000 */
  15865. #define GTZC_MPCBB_LCKVTR1_LCKSB31_Pos (31U)
  15866. #define GTZC_MPCBB_LCKVTR1_LCKSB31_Msk (0x01UL << GTZC_MPCBB_LCKVTR1_LCKSB31_Pos) /*!< 0x80000000 */
  15867. /******************* Bits definition for GTZC_MPCBB_LCKVTR2 register ************/
  15868. #define GTZC_MPCBB_LCKVTR2_LCKSB32_Pos (0U)
  15869. #define GTZC_MPCBB_LCKVTR2_LCKSB32_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB32_Msk) /*!< 0x00000001 */
  15870. #define GTZC_MPCBB_LCKVTR2_LCKSB33_Pos (1U)
  15871. #define GTZC_MPCBB_LCKVTR2_LCKSB33_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB33_Pos) /*!< 0x00000002 */
  15872. #define GTZC_MPCBB_LCKVTR2_LCKSB34_Pos (2U)
  15873. #define GTZC_MPCBB_LCKVTR2_LCKSB34_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB34_Pos) /*!< 0x00000004 */
  15874. #define GTZC_MPCBB_LCKVTR2_LCKSB35_Pos (3U)
  15875. #define GTZC_MPCBB_LCKVTR2_LCKSB35_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB35_Pos) /*!< 0x00000008 */
  15876. #define GTZC_MPCBB_LCKVTR2_LCKSB36_Pos (4U)
  15877. #define GTZC_MPCBB_LCKVTR2_LCKSB36_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB36_Pos) /*!< 0x00000010 */
  15878. #define GTZC_MPCBB_LCKVTR2_LCKSB37_Pos (5U)
  15879. #define GTZC_MPCBB_LCKVTR2_LCKSB37_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB37_Pos) /*!< 0x00000020 */
  15880. #define GTZC_MPCBB_LCKVTR2_LCKSB38_Pos (6U)
  15881. #define GTZC_MPCBB_LCKVTR2_LCKSB38_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB38_Pos) /*!< 0x00000040 */
  15882. #define GTZC_MPCBB_LCKVTR2_LCKSB39_Pos (7U)
  15883. #define GTZC_MPCBB_LCKVTR2_LCKSB39_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB39_Pos) /*!< 0x00000080 */
  15884. #define GTZC_MPCBB_LCKVTR2_LCKSB40_Pos (8U)
  15885. #define GTZC_MPCBB_LCKVTR2_LCKSB40_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB40_Pos) /*!< 0x00000100 */
  15886. #define GTZC_MPCBB_LCKVTR2_LCKSB41_Pos (9U)
  15887. #define GTZC_MPCBB_LCKVTR2_LCKSB41_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB41_Pos) /*!< 0x00000200 */
  15888. #define GTZC_MPCBB_LCKVTR2_LCKSB42_Pos (10U)
  15889. #define GTZC_MPCBB_LCKVTR2_LCKSB42_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB42_Pos) /*!< 0x00000400 */
  15890. #define GTZC_MPCBB_LCKVTR2_LCKSB43_Pos (11U)
  15891. #define GTZC_MPCBB_LCKVTR2_LCKSB43_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB43_Pos) /*!< 0x00000800 */
  15892. #define GTZC_MPCBB_LCKVTR2_LCKSB44_Pos (12U)
  15893. #define GTZC_MPCBB_LCKVTR2_LCKSB44_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB44_Pos) /*!< 0x00001000 */
  15894. #define GTZC_MPCBB_LCKVTR2_LCKSB45_Pos (13U)
  15895. #define GTZC_MPCBB_LCKVTR2_LCKSB45_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB45_Pos) /*!< 0x00002000 */
  15896. #define GTZC_MPCBB_LCKVTR2_LCKSB46_Pos (14U)
  15897. #define GTZC_MPCBB_LCKVTR2_LCKSB46_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB46_Pos) /*!< 0x00004000 */
  15898. #define GTZC_MPCBB_LCKVTR2_LCKSB47_Pos (15U)
  15899. #define GTZC_MPCBB_LCKVTR2_LCKSB47_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB47_Pos) /*!< 0x00008000 */
  15900. #define GTZC_MPCBB_LCKVTR2_LCKSB48_Pos (16U)
  15901. #define GTZC_MPCBB_LCKVTR2_LCKSB48_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB48_Pos) /*!< 0x00010000 */
  15902. #define GTZC_MPCBB_LCKVTR2_LCKSB49_Pos (17U)
  15903. #define GTZC_MPCBB_LCKVTR2_LCKSB49_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB49_Pos) /*!< 0x00020000 */
  15904. #define GTZC_MPCBB_LCKVTR2_LCKSB50_Pos (18U)
  15905. #define GTZC_MPCBB_LCKVTR2_LCKSB50_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB50_Pos) /*!< 0x00040000 */
  15906. #define GTZC_MPCBB_LCKVTR2_LCKSB51_Pos (19U)
  15907. #define GTZC_MPCBB_LCKVTR2_LCKSB51_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB51_Pos) /*!< 0x00080000 */
  15908. #define GTZC_MPCBB_LCKVTR2_LCKSB52_Pos (20U)
  15909. #define GTZC_MPCBB_LCKVTR2_LCKSB52_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB52_Pos) /*!< 0x00100000 */
  15910. #define GTZC_MPCBB_LCKVTR2_LCKSB53_Pos (21U)
  15911. #define GTZC_MPCBB_LCKVTR2_LCKSB53_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB53_Pos) /*!< 0x00200000 */
  15912. #define GTZC_MPCBB_LCKVTR2_LCKSB54_Pos (22U)
  15913. #define GTZC_MPCBB_LCKVTR2_LCKSB54_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB54_Pos) /*!< 0x00400000 */
  15914. #define GTZC_MPCBB_LCKVTR2_LCKSB55_Pos (23U)
  15915. #define GTZC_MPCBB_LCKVTR2_LCKSB55_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB55_Pos) /*!< 0x00800000 */
  15916. #define GTZC_MPCBB_LCKVTR2_LCKSB56_Pos (24U)
  15917. #define GTZC_MPCBB_LCKVTR2_LCKSB56_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB56_Pos) /*!< 0x01000000 */
  15918. #define GTZC_MPCBB_LCKVTR2_LCKSB57_Pos (25U)
  15919. #define GTZC_MPCBB_LCKVTR2_LCKSB57_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB57_Pos) /*!< 0x02000000 */
  15920. #define GTZC_MPCBB_LCKVTR2_LCKSB58_Pos (26U)
  15921. #define GTZC_MPCBB_LCKVTR2_LCKSB58_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB58_Pos) /*!< 0x04000000 */
  15922. #define GTZC_MPCBB_LCKVTR2_LCKSB59_Pos (27U)
  15923. #define GTZC_MPCBB_LCKVTR2_LCKSB59_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB59_Pos) /*!< 0x08000000 */
  15924. #define GTZC_MPCBB_LCKVTR2_LCKSB60_Pos (28U)
  15925. #define GTZC_MPCBB_LCKVTR2_LCKSB60_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB60_Pos) /*!< 0x10000000 */
  15926. #define GTZC_MPCBB_LCKVTR2_LCKSB61_Pos (29U)
  15927. #define GTZC_MPCBB_LCKVTR2_LCKSB61_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB61_Pos) /*!< 0x20000000 */
  15928. #define GTZC_MPCBB_LCKVTR2_LCKSB62_Pos (30U)
  15929. #define GTZC_MPCBB_LCKVTR2_LCKSB62_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB62_Pos) /*!< 0x40000000 */
  15930. #define GTZC_MPCBB_LCKVTR2_LCKSB63_Pos (31U)
  15931. #define GTZC_MPCBB_LCKVTR2_LCKSB63_Msk (0x01UL << GTZC_MPCBB_LCKVTR2_LCKSB63_Pos) /*!< 0x80000000 */
  15932. /******************************************************************************/
  15933. /* */
  15934. /* SDMMC Interface */
  15935. /* */
  15936. /******************************************************************************/
  15937. /****************** Bit definition for SDMMC_POWER register ******************/
  15938. #define SDMMC_POWER_PWRCTRL_Pos (0U)
  15939. #define SDMMC_POWER_PWRCTRL_Msk (0x3UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000003 */
  15940. #define SDMMC_POWER_PWRCTRL SDMMC_POWER_PWRCTRL_Msk /*!<PWRCTRL[1:0] bits (Power supply control bits) */
  15941. #define SDMMC_POWER_PWRCTRL_0 (0x1UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000001 */
  15942. #define SDMMC_POWER_PWRCTRL_1 (0x2UL << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000002 */
  15943. #define SDMMC_POWER_VSWITCH_Pos (2U)
  15944. #define SDMMC_POWER_VSWITCH_Msk (0x1UL << SDMMC_POWER_VSWITCH_Pos) /*!< 0x00000004 */
  15945. #define SDMMC_POWER_VSWITCH SDMMC_POWER_VSWITCH_Pos /*!<Voltage switch sequence start */
  15946. #define SDMMC_POWER_VSWITCHEN_Pos (3U)
  15947. #define SDMMC_POWER_VSWITCHEN_Msk (0x1UL << SDMMC_POWER_VSWITCHEN_Pos) /*!< 0x00000008 */
  15948. #define SDMMC_POWER_VSWITCHEN SDMMC_POWER_VSWITCHEN_Pos /*!<Voltage switch procedure enable */
  15949. #define SDMMC_POWER_DIRPOL_Pos (4U)
  15950. #define SDMMC_POWER_DIRPOL_Msk (0x1UL << SDMMC_POWER_DIRPOL_Pos) /*!< 0x00000010 */
  15951. #define SDMMC_POWER_DIRPOL SDMMC_POWER_DIRPOL_Pos /*!<Data and Command direction signals polarity selection */
  15952. /****************** Bit definition for SDMMC_CLKCR register ******************/
  15953. #define SDMMC_CLKCR_CLKDIV_Pos (0U)
  15954. #define SDMMC_CLKCR_CLKDIV_Msk (0x3FFUL << SDMMC_CLKCR_CLKDIV_Pos) /*!< 0x000003FF */
  15955. #define SDMMC_CLKCR_CLKDIV SDMMC_CLKCR_CLKDIV_Msk /*!<Clock divide factor */
  15956. #define SDMMC_CLKCR_PWRSAV_Pos (12U)
  15957. #define SDMMC_CLKCR_PWRSAV_Msk (0x1UL << SDMMC_CLKCR_PWRSAV_Pos) /*!< 0x00001000 */
  15958. #define SDMMC_CLKCR_PWRSAV SDMMC_CLKCR_PWRSAV_Msk /*!<Power saving configuration bit */
  15959. #define SDMMC_CLKCR_WIDBUS_Pos (14U)
  15960. #define SDMMC_CLKCR_WIDBUS_Msk (0x3UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x0000C000 */
  15961. #define SDMMC_CLKCR_WIDBUS SDMMC_CLKCR_WIDBUS_Msk /*!<WIDBUS[1:0] bits (Wide bus mode enable bit) */
  15962. #define SDMMC_CLKCR_WIDBUS_0 (0x1UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00000800 */
  15963. #define SDMMC_CLKCR_WIDBUS_1 (0x2UL << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00001000 */
  15964. #define SDMMC_CLKCR_NEGEDGE_Pos (16U)
  15965. #define SDMMC_CLKCR_NEGEDGE_Msk (0x1UL << SDMMC_CLKCR_NEGEDGE_Pos) /*!< 0x00010000 */
  15966. #define SDMMC_CLKCR_NEGEDGE SDMMC_CLKCR_NEGEDGE_Msk /*!<SDMMC_CK dephasing selection bit */
  15967. #define SDMMC_CLKCR_HWFC_EN_Pos (17U)
  15968. #define SDMMC_CLKCR_HWFC_EN_Msk (0x1UL << SDMMC_CLKCR_HWFC_EN_Pos) /*!< 0x00020000 */
  15969. #define SDMMC_CLKCR_HWFC_EN SDMMC_CLKCR_HWFC_EN_Msk /*!<HW Flow Control enable */
  15970. #define SDMMC_CLKCR_DDR_Pos (18U)
  15971. #define SDMMC_CLKCR_DDR_Msk (0x1UL << SDMMC_CLKCR_DDR_Pos) /*!< 0x00040000 */
  15972. #define SDMMC_CLKCR_DDR SDMMC_CLKCR_DDR_Msk /*!<Data rate signaling selection */
  15973. #define SDMMC_CLKCR_BUSSPEED_Pos (19U)
  15974. #define SDMMC_CLKCR_BUSSPEED_Msk (0x1UL << SDMMC_CLKCR_BUSSPEED_Pos) /*!< 0x00080000 */
  15975. #define SDMMC_CLKCR_BUSSPEED SDMMC_CLKCR_BUSSPEED_Msk /*!<Bus speed mode selection */
  15976. #define SDMMC_CLKCR_SELCLKRX_Pos (20U)
  15977. #define SDMMC_CLKCR_SELCLKRX_Msk (0x3UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00300000 */
  15978. #define SDMMC_CLKCR_SELCLKRX SDMMC_CLKCR_SELCLKRX_Msk /*!<SELCLKRX[1:0] bits (Receive clock selection) */
  15979. #define SDMMC_CLKCR_SELCLKRX_0 (0x1UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00100000 */
  15980. #define SDMMC_CLKCR_SELCLKRX_1 (0x2UL << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00200000 */
  15981. /******************* Bit definition for SDMMC_ARG register *******************/
  15982. #define SDMMC_ARG_CMDARG_Pos (0U)
  15983. #define SDMMC_ARG_CMDARG_Msk (0xFFFFFFFFUL << SDMMC_ARG_CMDARG_Pos) /*!< 0xFFFFFFFF */
  15984. #define SDMMC_ARG_CMDARG SDMMC_ARG_CMDARG_Msk /*!<Command argument */
  15985. /******************* Bit definition for SDMMC_CMD register *******************/
  15986. #define SDMMC_CMD_CMDINDEX_Pos (0U)
  15987. #define SDMMC_CMD_CMDINDEX_Msk (0x3FUL << SDMMC_CMD_CMDINDEX_Pos) /*!< 0x0000003F */
  15988. #define SDMMC_CMD_CMDINDEX SDMMC_CMD_CMDINDEX_Msk /*!<Command Index */
  15989. #define SDMMC_CMD_CMDTRANS_Pos (6U)
  15990. #define SDMMC_CMD_CMDTRANS_Msk (0x1UL << SDMMC_CMD_CMDTRANS_Pos) /*!< 0x00000040 */
  15991. #define SDMMC_CMD_CMDTRANS SDMMC_CMD_CMDTRANS_Msk /*!<CPSM Treats command as a Data Transfer */
  15992. #define SDMMC_CMD_CMDSTOP_Pos (7U)
  15993. #define SDMMC_CMD_CMDSTOP_Msk (0x1UL << SDMMC_CMD_CMDSTOP_Pos) /*!< 0x00000080 */
  15994. #define SDMMC_CMD_CMDSTOP SDMMC_CMD_CMDSTOP_Msk /*!<CPSM Treats command as a Stop */
  15995. #define SDMMC_CMD_WAITRESP_Pos (8U)
  15996. #define SDMMC_CMD_WAITRESP_Msk (0x3UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000300 */
  15997. #define SDMMC_CMD_WAITRESP SDMMC_CMD_WAITRESP_Msk /*!<WAITRESP[1:0] bits (Wait for response bits) */
  15998. #define SDMMC_CMD_WAITRESP_0 (0x1UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000100 */
  15999. #define SDMMC_CMD_WAITRESP_1 (0x2UL << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000200 */
  16000. #define SDMMC_CMD_WAITINT_Pos (10U)
  16001. #define SDMMC_CMD_WAITINT_Msk (0x1UL << SDMMC_CMD_WAITINT_Pos) /*!< 0x00000400 */
  16002. #define SDMMC_CMD_WAITINT SDMMC_CMD_WAITINT_Msk /*!<CPSM Waits for Interrupt Request */
  16003. #define SDMMC_CMD_WAITPEND_Pos (11U)
  16004. #define SDMMC_CMD_WAITPEND_Msk (0x1UL << SDMMC_CMD_WAITPEND_Pos) /*!< 0x00000800 */
  16005. #define SDMMC_CMD_WAITPEND SDMMC_CMD_WAITPEND_Msk /*!<CPSM Waits for ends of data transfer (CmdPend internal signal) */
  16006. #define SDMMC_CMD_CPSMEN_Pos (12U)
  16007. #define SDMMC_CMD_CPSMEN_Msk (0x1UL << SDMMC_CMD_CPSMEN_Pos) /*!< 0x00001000 */
  16008. #define SDMMC_CMD_CPSMEN SDMMC_CMD_CPSMEN_Msk /*!<Command path state machine (CPSM) Enable bit */
  16009. #define SDMMC_CMD_DTHOLD_Pos (13U)
  16010. #define SDMMC_CMD_DTHOLD_Msk (0x1UL << SDMMC_CMD_DTHOLD_Pos) /*!< 0x00002000 */
  16011. #define SDMMC_CMD_DTHOLD SDMMC_CMD_DTHOLD_Msk /*!<Hold new data block transmission and reception in the DPSM */
  16012. #define SDMMC_CMD_BOOTMODE_Pos (14U)
  16013. #define SDMMC_CMD_BOOTMODE_Msk (0x1UL << SDMMC_CMD_BOOTMODE_Pos) /*!< 0x00004000 */
  16014. #define SDMMC_CMD_BOOTMODE SDMMC_CMD_BOOTMODE_Msk /*!<Boot mode */
  16015. #define SDMMC_CMD_BOOTEN_Pos (15U)
  16016. #define SDMMC_CMD_BOOTEN_Msk (0x1UL << SDMMC_CMD_BOOTEN_Pos) /*!< 0x00008000 */
  16017. #define SDMMC_CMD_BOOTEN SDMMC_CMD_BOOTEN_Msk /*!<Enable Boot mode procedure */
  16018. #define SDMMC_CMD_CMDSUSPEND_Pos (16U)
  16019. #define SDMMC_CMD_CMDSUSPEND_Msk (0x1UL << SDMMC_CMD_CMDSUSPEND_Pos) /*!< 0x00010000 */
  16020. #define SDMMC_CMD_CMDSUSPEND SDMMC_CMD_CMDSUSPEND_Msk /*!<CPSM treats command as a Suspend or Resume command */
  16021. /***************** Bit definition for SDMMC_RESPCMD register *****************/
  16022. #define SDMMC_RESPCMD_RESPCMD_Pos (0U)
  16023. #define SDMMC_RESPCMD_RESPCMD_Msk (0x3FUL << SDMMC_RESPCMD_RESPCMD_Pos) /*!< 0x0000003F */
  16024. #define SDMMC_RESPCMD_RESPCMD SDMMC_RESPCMD_RESPCMD_Msk /*!<Response command index */
  16025. /****************** Bit definition for SDMMC_RESP1 register ******************/
  16026. #define SDMMC_RESP1_CARDSTATUS1_Pos (0U)
  16027. #define SDMMC_RESP1_CARDSTATUS1_Msk (0xFFFFFFFFUL << SDMMC_RESP1_CARDSTATUS1_Pos)/*!< 0xFFFFFFFF */
  16028. #define SDMMC_RESP1_CARDSTATUS1 SDMMC_RESP1_CARDSTATUS1_Msk /*!<Card Status */
  16029. /****************** Bit definition for SDMMC_RESP2 register ******************/
  16030. #define SDMMC_RESP2_CARDSTATUS2_Pos (0U)
  16031. #define SDMMC_RESP2_CARDSTATUS2_Msk (0xFFFFFFFFUL << SDMMC_RESP2_CARDSTATUS2_Pos)/*!< 0xFFFFFFFF */
  16032. #define SDMMC_RESP2_CARDSTATUS2 SDMMC_RESP2_CARDSTATUS2_Msk /*!<Card Status */
  16033. /****************** Bit definition for SDMMC_RESP3 register ******************/
  16034. #define SDMMC_RESP3_CARDSTATUS3_Pos (0U)
  16035. #define SDMMC_RESP3_CARDSTATUS3_Msk (0xFFFFFFFFUL << SDMMC_RESP3_CARDSTATUS3_Pos)/*!< 0xFFFFFFFF */
  16036. #define SDMMC_RESP3_CARDSTATUS3 SDMMC_RESP3_CARDSTATUS3_Msk /*!<Card Status */
  16037. /****************** Bit definition for SDMMC_RESP4 register ******************/
  16038. #define SDMMC_RESP4_CARDSTATUS4_Pos (0U)
  16039. #define SDMMC_RESP4_CARDSTATUS4_Msk (0xFFFFFFFFUL << SDMMC_RESP4_CARDSTATUS4_Pos)/*!< 0xFFFFFFFF */
  16040. #define SDMMC_RESP4_CARDSTATUS4 SDMMC_RESP4_CARDSTATUS4_Msk /*!<Card Status */
  16041. /****************** Bit definition for SDMMC_DTIMER register *****************/
  16042. #define SDMMC_DTIMER_DATATIME_Pos (0U)
  16043. #define SDMMC_DTIMER_DATATIME_Msk (0xFFFFFFFFUL << SDMMC_DTIMER_DATATIME_Pos)/*!< 0xFFFFFFFF */
  16044. #define SDMMC_DTIMER_DATATIME SDMMC_DTIMER_DATATIME_Msk /*!<Data timeout period. */
  16045. /****************** Bit definition for SDMMC_DLEN register *******************/
  16046. #define SDMMC_DLEN_DATALENGTH_Pos (0U)
  16047. #define SDMMC_DLEN_DATALENGTH_Msk (0x1FFFFFFUL << SDMMC_DLEN_DATALENGTH_Pos)/*!< 0x01FFFFFF */
  16048. #define SDMMC_DLEN_DATALENGTH SDMMC_DLEN_DATALENGTH_Msk /*!<Data length value */
  16049. /****************** Bit definition for SDMMC_DCTRL register ******************/
  16050. #define SDMMC_DCTRL_DTEN_Pos (0U)
  16051. #define SDMMC_DCTRL_DTEN_Msk (0x1UL << SDMMC_DCTRL_DTEN_Pos) /*!< 0x00000001 */
  16052. #define SDMMC_DCTRL_DTEN SDMMC_DCTRL_DTEN_Msk /*!<Data transfer enabled bit */
  16053. #define SDMMC_DCTRL_DTDIR_Pos (1U)
  16054. #define SDMMC_DCTRL_DTDIR_Msk (0x1UL << SDMMC_DCTRL_DTDIR_Pos) /*!< 0x00000002 */
  16055. #define SDMMC_DCTRL_DTDIR SDMMC_DCTRL_DTDIR_Msk /*!<Data transfer direction selection */
  16056. #define SDMMC_DCTRL_DTMODE_Pos (2U)
  16057. #define SDMMC_DCTRL_DTMODE_Msk (0x3UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x0000000C */
  16058. #define SDMMC_DCTRL_DTMODE SDMMC_DCTRL_DTMODE_Msk /*!<Data transfer mode selection */
  16059. #define SDMMC_DCTRL_DTMODE_0 (0x1UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000004 */
  16060. #define SDMMC_DCTRL_DTMODE_1 (0x2UL << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000008 */
  16061. #define SDMMC_DCTRL_DBLOCKSIZE_Pos (4U)
  16062. #define SDMMC_DCTRL_DBLOCKSIZE_Msk (0xFUL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x000000F0 */
  16063. #define SDMMC_DCTRL_DBLOCKSIZE SDMMC_DCTRL_DBLOCKSIZE_Msk /*!<DBLOCKSIZE[3:0] bits (Data block size) */
  16064. #define SDMMC_DCTRL_DBLOCKSIZE_0 (0x1UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000010 */
  16065. #define SDMMC_DCTRL_DBLOCKSIZE_1 (0x2UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000020 */
  16066. #define SDMMC_DCTRL_DBLOCKSIZE_2 (0x4UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */
  16067. #define SDMMC_DCTRL_DBLOCKSIZE_3 (0x8UL << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */
  16068. #define SDMMC_DCTRL_RWSTART_Pos (8U)
  16069. #define SDMMC_DCTRL_RWSTART_Msk (0x1UL << SDMMC_DCTRL_RWSTART_Pos) /*!< 0x00000100 */
  16070. #define SDMMC_DCTRL_RWSTART SDMMC_DCTRL_RWSTART_Msk /*!<Read wait start */
  16071. #define SDMMC_DCTRL_RWSTOP_Pos (9U)
  16072. #define SDMMC_DCTRL_RWSTOP_Msk (0x1UL << SDMMC_DCTRL_RWSTOP_Pos) /*!< 0x00000200 */
  16073. #define SDMMC_DCTRL_RWSTOP SDMMC_DCTRL_RWSTOP_Msk /*!<Read wait stop */
  16074. #define SDMMC_DCTRL_RWMOD_Pos (10U)
  16075. #define SDMMC_DCTRL_RWMOD_Msk (0x1UL << SDMMC_DCTRL_RWMOD_Pos) /*!< 0x00000400 */
  16076. #define SDMMC_DCTRL_RWMOD SDMMC_DCTRL_RWMOD_Msk /*!<Read wait mode */
  16077. #define SDMMC_DCTRL_SDIOEN_Pos (11U)
  16078. #define SDMMC_DCTRL_SDIOEN_Msk (0x1UL << SDMMC_DCTRL_SDIOEN_Pos) /*!< 0x00000800 */
  16079. #define SDMMC_DCTRL_SDIOEN SDMMC_DCTRL_SDIOEN_Msk /*!<SD I/O enable functions */
  16080. #define SDMMC_DCTRL_BOOTACKEN_Pos (12U)
  16081. #define SDMMC_DCTRL_BOOTACKEN_Msk (0x1UL << SDMMC_DCTRL_BOOTACKEN_Pos) /*!< 0x00001000 */
  16082. #define SDMMC_DCTRL_BOOTACKEN SDMMC_DCTRL_BOOTACKEN_Msk /*!<Data transfer mode selection */
  16083. #define SDMMC_DCTRL_FIFORST_Pos (13U)
  16084. #define SDMMC_DCTRL_FIFORST_Msk (0x1UL << SDMMC_DCTRL_FIFORST_Pos) /*!< 0x00002000 */
  16085. #define SDMMC_DCTRL_FIFORST SDMMC_DCTRL_FIFORST_Msk /*!<FIFO reset */
  16086. /****************** Bit definition for SDMMC_DCOUNT register *****************/
  16087. #define SDMMC_DCOUNT_DATACOUNT_Pos (0U)
  16088. #define SDMMC_DCOUNT_DATACOUNT_Msk (0x1FFFFFFUL << SDMMC_DCOUNT_DATACOUNT_Pos)/*!< 0x01FFFFFF */
  16089. #define SDMMC_DCOUNT_DATACOUNT SDMMC_DCOUNT_DATACOUNT_Msk /*!<Data count value */
  16090. /****************** Bit definition for SDMMC_STA register ********************/
  16091. #define SDMMC_STA_CCRCFAIL_Pos (0U)
  16092. #define SDMMC_STA_CCRCFAIL_Msk (0x1UL << SDMMC_STA_CCRCFAIL_Pos) /*!< 0x00000001 */
  16093. #define SDMMC_STA_CCRCFAIL SDMMC_STA_CCRCFAIL_Msk /*!<Command response received (CRC check failed) */
  16094. #define SDMMC_STA_DCRCFAIL_Pos (1U)
  16095. #define SDMMC_STA_DCRCFAIL_Msk (0x1UL << SDMMC_STA_DCRCFAIL_Pos) /*!< 0x00000002 */
  16096. #define SDMMC_STA_DCRCFAIL SDMMC_STA_DCRCFAIL_Msk /*!<Data block sent/received (CRC check failed) */
  16097. #define SDMMC_STA_CTIMEOUT_Pos (2U)
  16098. #define SDMMC_STA_CTIMEOUT_Msk (0x1UL << SDMMC_STA_CTIMEOUT_Pos) /*!< 0x00000004 */
  16099. #define SDMMC_STA_CTIMEOUT SDMMC_STA_CTIMEOUT_Msk /*!<Command response timeout */
  16100. #define SDMMC_STA_DTIMEOUT_Pos (3U)
  16101. #define SDMMC_STA_DTIMEOUT_Msk (0x1UL << SDMMC_STA_DTIMEOUT_Pos) /*!< 0x00000008 */
  16102. #define SDMMC_STA_DTIMEOUT SDMMC_STA_DTIMEOUT_Msk /*!<Data timeout */
  16103. #define SDMMC_STA_TXUNDERR_Pos (4U)
  16104. #define SDMMC_STA_TXUNDERR_Msk (0x1UL << SDMMC_STA_TXUNDERR_Pos) /*!< 0x00000010 */
  16105. #define SDMMC_STA_TXUNDERR SDMMC_STA_TXUNDERR_Msk /*!<Transmit FIFO underrun error */
  16106. #define SDMMC_STA_RXOVERR_Pos (5U)
  16107. #define SDMMC_STA_RXOVERR_Msk (0x1UL << SDMMC_STA_RXOVERR_Pos) /*!< 0x00000020 */
  16108. #define SDMMC_STA_RXOVERR SDMMC_STA_RXOVERR_Msk /*!<Received FIFO overrun error */
  16109. #define SDMMC_STA_CMDREND_Pos (6U)
  16110. #define SDMMC_STA_CMDREND_Msk (0x1UL << SDMMC_STA_CMDREND_Pos) /*!< 0x00000040 */
  16111. #define SDMMC_STA_CMDREND SDMMC_STA_CMDREND_Msk /*!<Command response received (CRC check passed) */
  16112. #define SDMMC_STA_CMDSENT_Pos (7U)
  16113. #define SDMMC_STA_CMDSENT_Msk (0x1UL << SDMMC_STA_CMDSENT_Pos) /*!< 0x00000080 */
  16114. #define SDMMC_STA_CMDSENT SDMMC_STA_CMDSENT_Msk /*!<Command sent (no response required) */
  16115. #define SDMMC_STA_DATAEND_Pos (8U)
  16116. #define SDMMC_STA_DATAEND_Msk (0x1UL << SDMMC_STA_DATAEND_Pos) /*!< 0x00000100 */
  16117. #define SDMMC_STA_DATAEND SDMMC_STA_DATAEND_Msk /*!<Data end (data counter, SDIDCOUNT, is zero) */
  16118. #define SDMMC_STA_DHOLD_Pos (9U)
  16119. #define SDMMC_STA_DHOLD_Msk (0x1UL << SDMMC_STA_DHOLD_Pos) /*!< 0x00000200 */
  16120. #define SDMMC_STA_DHOLD SDMMC_STA_DHOLD_Msk /*!<Data transfer Hold */
  16121. #define SDMMC_STA_DBCKEND_Pos (10U)
  16122. #define SDMMC_STA_DBCKEND_Msk (0x1UL << SDMMC_STA_DBCKEND_Pos) /*!< 0x00000400 */
  16123. #define SDMMC_STA_DBCKEND SDMMC_STA_DBCKEND_Msk /*!<Data block sent/received (CRC check passed) */
  16124. #define SDMMC_STA_DABORT_Pos (11U)
  16125. #define SDMMC_STA_DABORT_Msk (0x1UL << SDMMC_STA_DABORT_Pos) /*!< 0x00000800 */
  16126. #define SDMMC_STA_DABORT SDMMC_STA_DABORT_Msk /*!<Data transfer aborted by CMD12 */
  16127. #define SDMMC_STA_DPSMACT_Pos (12U)
  16128. #define SDMMC_STA_DPSMACT_Msk (0x1UL << SDMMC_STA_DPSMACT_Pos) /*!< 0x00001000 */
  16129. #define SDMMC_STA_DPSMACT SDMMC_STA_DPSMACT_Msk /*!<Data path state machine active */
  16130. #define SDMMC_STA_CPSMACT_Pos (13U)
  16131. #define SDMMC_STA_CPSMACT_Msk (0x1UL << SDMMC_STA_CPSMACT_Pos) /*!< 0x00002000 */
  16132. #define SDMMC_STA_CPSMACT SDMMC_STA_CPSMACT_Msk /*!<Command path state machine active */
  16133. #define SDMMC_STA_TXFIFOHE_Pos (14U)
  16134. #define SDMMC_STA_TXFIFOHE_Msk (0x1UL << SDMMC_STA_TXFIFOHE_Pos) /*!< 0x00004000 */
  16135. #define SDMMC_STA_TXFIFOHE SDMMC_STA_TXFIFOHE_Msk /*!<Transmit FIFO Half Empty: at least 8 words can be written into the FIFO */
  16136. #define SDMMC_STA_RXFIFOHF_Pos (15U)
  16137. #define SDMMC_STA_RXFIFOHF_Msk (0x1UL << SDMMC_STA_RXFIFOHF_Pos) /*!< 0x00008000 */
  16138. #define SDMMC_STA_RXFIFOHF SDMMC_STA_RXFIFOHF_Msk /*!<Receive FIFO Half Full: there are at least 8 words in the FIFO */
  16139. #define SDMMC_STA_TXFIFOF_Pos (16U)
  16140. #define SDMMC_STA_TXFIFOF_Msk (0x1UL << SDMMC_STA_TXFIFOF_Pos) /*!< 0x00010000 */
  16141. #define SDMMC_STA_TXFIFOF SDMMC_STA_TXFIFOF_Msk /*!<Transmit FIFO full */
  16142. #define SDMMC_STA_RXFIFOF_Pos (17U)
  16143. #define SDMMC_STA_RXFIFOF_Msk (0x1UL << SDMMC_STA_RXFIFOF_Pos) /*!< 0x00020000 */
  16144. #define SDMMC_STA_RXFIFOF SDMMC_STA_RXFIFOF_Msk /*!<Receive FIFO full */
  16145. #define SDMMC_STA_TXFIFOE_Pos (18U)
  16146. #define SDMMC_STA_TXFIFOE_Msk (0x1UL << SDMMC_STA_TXFIFOE_Pos) /*!< 0x00040000 */
  16147. #define SDMMC_STA_TXFIFOE SDMMC_STA_TXFIFOE_Msk /*!<Transmit FIFO empty */
  16148. #define SDMMC_STA_RXFIFOE_Pos (19U)
  16149. #define SDMMC_STA_RXFIFOE_Msk (0x1UL << SDMMC_STA_RXFIFOE_Pos) /*!< 0x00080000 */
  16150. #define SDMMC_STA_RXFIFOE SDMMC_STA_RXFIFOE_Msk /*!<Receive FIFO empty */
  16151. #define SDMMC_STA_BUSYD0_Pos (20U)
  16152. #define SDMMC_STA_BUSYD0_Msk (0x1UL << SDMMC_STA_BUSYD0_Pos) /*!< 0x00100000 */
  16153. #define SDMMC_STA_BUSYD0 SDMMC_STA_BUSYD0_Msk /*!<Inverted value of SDMMC_D0 line (Busy) */
  16154. #define SDMMC_STA_BUSYD0END_Pos (21U)
  16155. #define SDMMC_STA_BUSYD0END_Msk (0x1UL << SDMMC_STA_BUSYD0END_Pos) /*!< 0x00200000 */
  16156. #define SDMMC_STA_BUSYD0END SDMMC_STA_BUSYD0END_Msk /*!<End of SDMMC_D0 Busy following a CMD response detected */
  16157. #define SDMMC_STA_SDIOIT_Pos (22U)
  16158. #define SDMMC_STA_SDIOIT_Msk (0x1UL << SDMMC_STA_SDIOIT_Pos) /*!< 0x00400000 */
  16159. #define SDMMC_STA_SDIOIT SDMMC_STA_SDIOIT_Msk /*!<SDIO interrupt received */
  16160. #define SDMMC_STA_ACKFAIL_Pos (23U)
  16161. #define SDMMC_STA_ACKFAIL_Msk (0x1UL << SDMMC_STA_ACKFAIL_Pos) /*!< 0x00800000 */
  16162. #define SDMMC_STA_ACKFAIL SDMMC_STA_ACKFAIL_Msk /*!<Boot Acknowledgment received (BootAck check fail) */
  16163. #define SDMMC_STA_ACKTIMEOUT_Pos (24U)
  16164. #define SDMMC_STA_ACKTIMEOUT_Msk (0x1UL << SDMMC_STA_ACKTIMEOUT_Pos) /*!< 0x01000000 */
  16165. #define SDMMC_STA_ACKTIMEOUT SDMMC_STA_ACKTIMEOUT_Msk /*!<Boot Acknowledgment timeout */
  16166. #define SDMMC_STA_VSWEND_Pos (25U)
  16167. #define SDMMC_STA_VSWEND_Msk (0x1UL << SDMMC_STA_VSWEND_Pos) /*!< 0x02000000 */
  16168. #define SDMMC_STA_VSWEND SDMMC_STA_VSWEND_Msk /*!<Voltage switch critical timing section completion */
  16169. #define SDMMC_STA_CKSTOP_Pos (26U)
  16170. #define SDMMC_STA_CKSTOP_Msk (0x1UL << SDMMC_STA_CKSTOP_Pos) /*!< 0x04000000 */
  16171. #define SDMMC_STA_CKSTOP SDMMC_STA_CKSTOP_Msk /*!<SDMMC_CK stopped in Voltage switch procedure */
  16172. #define SDMMC_STA_IDMATE_Pos (27U)
  16173. #define SDMMC_STA_IDMATE_Msk (0x1UL << SDMMC_STA_IDMATE_Pos) /*!< 0x08000000 */
  16174. #define SDMMC_STA_IDMATE SDMMC_STA_IDMATE_Msk /*!<IDMA transfer error */
  16175. #define SDMMC_STA_IDMABTC_Pos (28U)
  16176. #define SDMMC_STA_IDMABTC_Msk (0x1UL << SDMMC_STA_IDMABTC_Pos) /*!< 0x10000000 */
  16177. #define SDMMC_STA_IDMABTC SDMMC_STA_IDMABTC_Msk /*!<IDMA buffer transfer complete */
  16178. /******************* Bit definition for SDMMC_ICR register *******************/
  16179. #define SDMMC_ICR_CCRCFAILC_Pos (0U)
  16180. #define SDMMC_ICR_CCRCFAILC_Msk (0x1UL << SDMMC_ICR_CCRCFAILC_Pos) /*!< 0x00000001 */
  16181. #define SDMMC_ICR_CCRCFAILC SDMMC_ICR_CCRCFAILC_Msk /*!<CCRCFAIL flag clear bit */
  16182. #define SDMMC_ICR_DCRCFAILC_Pos (1U)
  16183. #define SDMMC_ICR_DCRCFAILC_Msk (0x1UL << SDMMC_ICR_DCRCFAILC_Pos) /*!< 0x00000002 */
  16184. #define SDMMC_ICR_DCRCFAILC SDMMC_ICR_DCRCFAILC_Msk /*!<DCRCFAIL flag clear bit */
  16185. #define SDMMC_ICR_CTIMEOUTC_Pos (2U)
  16186. #define SDMMC_ICR_CTIMEOUTC_Msk (0x1UL << SDMMC_ICR_CTIMEOUTC_Pos) /*!< 0x00000004 */
  16187. #define SDMMC_ICR_CTIMEOUTC SDMMC_ICR_CTIMEOUTC_Msk /*!<CTIMEOUT flag clear bit */
  16188. #define SDMMC_ICR_DTIMEOUTC_Pos (3U)
  16189. #define SDMMC_ICR_DTIMEOUTC_Msk (0x1UL << SDMMC_ICR_DTIMEOUTC_Pos) /*!< 0x00000008 */
  16190. #define SDMMC_ICR_DTIMEOUTC SDMMC_ICR_DTIMEOUTC_Msk /*!<DTIMEOUT flag clear bit */
  16191. #define SDMMC_ICR_TXUNDERRC_Pos (4U)
  16192. #define SDMMC_ICR_TXUNDERRC_Msk (0x1UL << SDMMC_ICR_TXUNDERRC_Pos) /*!< 0x00000010 */
  16193. #define SDMMC_ICR_TXUNDERRC SDMMC_ICR_TXUNDERRC_Msk /*!<TXUNDERR flag clear bit */
  16194. #define SDMMC_ICR_RXOVERRC_Pos (5U)
  16195. #define SDMMC_ICR_RXOVERRC_Msk (0x1UL << SDMMC_ICR_RXOVERRC_Pos) /*!< 0x00000020 */
  16196. #define SDMMC_ICR_RXOVERRC SDMMC_ICR_RXOVERRC_Msk /*!<RXOVERR flag clear bit */
  16197. #define SDMMC_ICR_CMDRENDC_Pos (6U)
  16198. #define SDMMC_ICR_CMDRENDC_Msk (0x1UL << SDMMC_ICR_CMDRENDC_Pos) /*!< 0x00000040 */
  16199. #define SDMMC_ICR_CMDRENDC SDMMC_ICR_CMDRENDC_Msk /*!<CMDREND flag clear bit */
  16200. #define SDMMC_ICR_CMDSENTC_Pos (7U)
  16201. #define SDMMC_ICR_CMDSENTC_Msk (0x1UL << SDMMC_ICR_CMDSENTC_Pos) /*!< 0x00000080 */
  16202. #define SDMMC_ICR_CMDSENTC SDMMC_ICR_CMDSENTC_Msk /*!<CMDSENT flag clear bit */
  16203. #define SDMMC_ICR_DATAENDC_Pos (8U)
  16204. #define SDMMC_ICR_DATAENDC_Msk (0x1UL << SDMMC_ICR_DATAENDC_Pos) /*!< 0x00000100 */
  16205. #define SDMMC_ICR_DATAENDC SDMMC_ICR_DATAENDC_Msk /*!<DATAEND flag clear bit */
  16206. #define SDMMC_ICR_DHOLDC_Pos (9U)
  16207. #define SDMMC_ICR_DHOLDC_Msk (0x1UL << SDMMC_ICR_DHOLDC_Pos) /*!< 0x00000200 */
  16208. #define SDMMC_ICR_DHOLDC SDMMC_ICR_DHOLDC_Msk /*!<DHOLD flag clear bit */
  16209. #define SDMMC_ICR_DBCKENDC_Pos (10U)
  16210. #define SDMMC_ICR_DBCKENDC_Msk (0x1UL << SDMMC_ICR_DBCKENDC_Pos) /*!< 0x00000400 */
  16211. #define SDMMC_ICR_DBCKENDC SDMMC_ICR_DBCKENDC_Msk /*!<DBCKEND flag clear bit */
  16212. #define SDMMC_ICR_DABORTC_Pos (11U)
  16213. #define SDMMC_ICR_DABORTC_Msk (0x1UL << SDMMC_ICR_DABORTC_Pos) /*!< 0x00000800 */
  16214. #define SDMMC_ICR_DABORTC SDMMC_ICR_DABORTC_Msk /*!<DABORTC flag clear bit */
  16215. #define SDMMC_ICR_BUSYD0ENDC_Pos (21U)
  16216. #define SDMMC_ICR_BUSYD0ENDC_Msk (0x1UL << SDMMC_ICR_BUSYD0ENDC_Pos) /*!< 0x00200000 */
  16217. #define SDMMC_ICR_BUSYD0ENDC SDMMC_ICR_BUSYD0ENDC_Msk /*!<BUSYD0ENDC flag clear bit */
  16218. #define SDMMC_ICR_SDIOITC_Pos (22U)
  16219. #define SDMMC_ICR_SDIOITC_Msk (0x1UL << SDMMC_ICR_SDIOITC_Pos) /*!< 0x00400000 */
  16220. #define SDMMC_ICR_SDIOITC SDMMC_ICR_SDIOITC_Msk /*!<SDIOIT flag clear bit */
  16221. #define SDMMC_ICR_ACKFAILC_Pos (23U)
  16222. #define SDMMC_ICR_ACKFAILC_Msk (0x1UL << SDMMC_ICR_ACKFAILC_Pos) /*!< 0x00800000 */
  16223. #define SDMMC_ICR_ACKFAILC SDMMC_ICR_ACKFAILC_Msk /*!<ACKFAILC flag clear bit */
  16224. #define SDMMC_ICR_ACKTIMEOUTC_Pos (24U)
  16225. #define SDMMC_ICR_ACKTIMEOUTC_Msk (0x1UL << SDMMC_ICR_ACKTIMEOUTC_Pos) /*!< 0x01000000 */
  16226. #define SDMMC_ICR_ACKTIMEOUTC SDMMC_ICR_ACKTIMEOUTC_Msk /*!<ACKTIMEOUTC flag clear bit */
  16227. #define SDMMC_ICR_VSWENDC_Pos (25U)
  16228. #define SDMMC_ICR_VSWENDC_Msk (0x1UL << SDMMC_ICR_VSWENDC_Pos) /*!< 0x02000000 */
  16229. #define SDMMC_ICR_VSWENDC SDMMC_ICR_VSWENDC_Msk /*!<VSWENDC flag clear bit */
  16230. #define SDMMC_ICR_CKSTOPC_Pos (26U)
  16231. #define SDMMC_ICR_CKSTOPC_Msk (0x1UL << SDMMC_ICR_CKSTOPC_Pos) /*!< 0x04000000 */
  16232. #define SDMMC_ICR_CKSTOPC SDMMC_ICR_CKSTOPC_Msk /*!<CKSTOPC flag clear bit */
  16233. #define SDMMC_ICR_IDMATEC_Pos (27U)
  16234. #define SDMMC_ICR_IDMATEC_Msk (0x1UL << SDMMC_ICR_IDMATEC_Pos) /*!< 0x08000000 */
  16235. #define SDMMC_ICR_IDMATEC SDMMC_ICR_IDMATEC_Msk /*!<IDMATEC flag clear bit */
  16236. #define SDMMC_ICR_IDMABTCC_Pos (28U)
  16237. #define SDMMC_ICR_IDMABTCC_Msk (0x1UL << SDMMC_ICR_IDMABTCC_Pos) /*!< 0x10000000 */
  16238. #define SDMMC_ICR_IDMABTCC SDMMC_ICR_IDMABTCC_Msk /*!<IDMABTCC flag clear bit */
  16239. /****************** Bit definition for SDMMC_MASK register *******************/
  16240. #define SDMMC_MASK_CCRCFAILIE_Pos (0U)
  16241. #define SDMMC_MASK_CCRCFAILIE_Msk (0x1UL << SDMMC_MASK_CCRCFAILIE_Pos) /*!< 0x00000001 */
  16242. #define SDMMC_MASK_CCRCFAILIE SDMMC_MASK_CCRCFAILIE_Msk /*!<Command CRC Fail Interrupt Enable */
  16243. #define SDMMC_MASK_DCRCFAILIE_Pos (1U)
  16244. #define SDMMC_MASK_DCRCFAILIE_Msk (0x1UL << SDMMC_MASK_DCRCFAILIE_Pos) /*!< 0x00000002 */
  16245. #define SDMMC_MASK_DCRCFAILIE SDMMC_MASK_DCRCFAILIE_Msk /*!<Data CRC Fail Interrupt Enable */
  16246. #define SDMMC_MASK_CTIMEOUTIE_Pos (2U)
  16247. #define SDMMC_MASK_CTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_CTIMEOUTIE_Pos) /*!< 0x00000004 */
  16248. #define SDMMC_MASK_CTIMEOUTIE SDMMC_MASK_CTIMEOUTIE_Msk /*!<Command TimeOut Interrupt Enable */
  16249. #define SDMMC_MASK_DTIMEOUTIE_Pos (3U)
  16250. #define SDMMC_MASK_DTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_DTIMEOUTIE_Pos) /*!< 0x00000008 */
  16251. #define SDMMC_MASK_DTIMEOUTIE SDMMC_MASK_DTIMEOUTIE_Msk /*!<Data TimeOut Interrupt Enable */
  16252. #define SDMMC_MASK_TXUNDERRIE_Pos (4U)
  16253. #define SDMMC_MASK_TXUNDERRIE_Msk (0x1UL << SDMMC_MASK_TXUNDERRIE_Pos) /*!< 0x00000010 */
  16254. #define SDMMC_MASK_TXUNDERRIE SDMMC_MASK_TXUNDERRIE_Msk /*!<Tx FIFO UnderRun Error Interrupt Enable */
  16255. #define SDMMC_MASK_RXOVERRIE_Pos (5U)
  16256. #define SDMMC_MASK_RXOVERRIE_Msk (0x1UL << SDMMC_MASK_RXOVERRIE_Pos) /*!< 0x00000020 */
  16257. #define SDMMC_MASK_RXOVERRIE SDMMC_MASK_RXOVERRIE_Msk /*!<Rx FIFO OverRun Error Interrupt Enable */
  16258. #define SDMMC_MASK_CMDRENDIE_Pos (6U)
  16259. #define SDMMC_MASK_CMDRENDIE_Msk (0x1UL << SDMMC_MASK_CMDRENDIE_Pos) /*!< 0x00000040 */
  16260. #define SDMMC_MASK_CMDRENDIE SDMMC_MASK_CMDRENDIE_Msk /*!<Command Response Received Interrupt Enable */
  16261. #define SDMMC_MASK_CMDSENTIE_Pos (7U)
  16262. #define SDMMC_MASK_CMDSENTIE_Msk (0x1UL << SDMMC_MASK_CMDSENTIE_Pos) /*!< 0x00000080 */
  16263. #define SDMMC_MASK_CMDSENTIE SDMMC_MASK_CMDSENTIE_Msk /*!<Command Sent Interrupt Enable */
  16264. #define SDMMC_MASK_DATAENDIE_Pos (8U)
  16265. #define SDMMC_MASK_DATAENDIE_Msk (0x1UL << SDMMC_MASK_DATAENDIE_Pos) /*!< 0x00000100 */
  16266. #define SDMMC_MASK_DATAENDIE SDMMC_MASK_DATAENDIE_Msk /*!<Data End Interrupt Enable */
  16267. #define SDMMC_MASK_DHOLDIE_Pos (9U)
  16268. #define SDMMC_MASK_DHOLDIE_Msk (0x1UL << SDMMC_MASK_DHOLDIE_Pos) /*!< 0x00000200 */
  16269. #define SDMMC_MASK_DHOLDIE SDMMC_MASK_DHOLDIE_Msk /*!<Data Hold Interrupt Enable */
  16270. #define SDMMC_MASK_DBCKENDIE_Pos (10U)
  16271. #define SDMMC_MASK_DBCKENDIE_Msk (0x1UL << SDMMC_MASK_DBCKENDIE_Pos) /*!< 0x00000400 */
  16272. #define SDMMC_MASK_DBCKENDIE SDMMC_MASK_DBCKENDIE_Msk /*!<Data Block End Interrupt Enable */
  16273. #define SDMMC_MASK_DABORTIE_Pos (11U)
  16274. #define SDMMC_MASK_DABORTIE_Msk (0x1UL << SDMMC_MASK_DABORTIE_Pos) /*!< 0x00000800 */
  16275. #define SDMMC_MASK_DABORTIE SDMMC_MASK_DABORTIE_Msk /*!<Data transfer aborted Interrupt Enable */
  16276. #define SDMMC_MASK_TXFIFOHEIE_Pos (14U)
  16277. #define SDMMC_MASK_TXFIFOHEIE_Msk (0x1UL << SDMMC_MASK_TXFIFOHEIE_Pos) /*!< 0x00004000 */
  16278. #define SDMMC_MASK_TXFIFOHEIE SDMMC_MASK_TXFIFOHEIE_Msk /*!<Tx FIFO Half Empty interrupt Enable */
  16279. #define SDMMC_MASK_RXFIFOHFIE_Pos (15U)
  16280. #define SDMMC_MASK_RXFIFOHFIE_Msk (0x1UL << SDMMC_MASK_RXFIFOHFIE_Pos) /*!< 0x00008000 */
  16281. #define SDMMC_MASK_RXFIFOHFIE SDMMC_MASK_RXFIFOHFIE_Msk /*!<Rx FIFO Half Full interrupt Enable */
  16282. #define SDMMC_MASK_RXFIFOFIE_Pos (17U)
  16283. #define SDMMC_MASK_RXFIFOFIE_Msk (0x1UL << SDMMC_MASK_RXFIFOFIE_Pos) /*!< 0x00020000 */
  16284. #define SDMMC_MASK_RXFIFOFIE SDMMC_MASK_RXFIFOFIE_Msk /*!<Rx FIFO Full interrupt Enable */
  16285. #define SDMMC_MASK_TXFIFOEIE_Pos (18U)
  16286. #define SDMMC_MASK_TXFIFOEIE_Msk (0x1UL << SDMMC_MASK_TXFIFOEIE_Pos) /*!< 0x00040000 */
  16287. #define SDMMC_MASK_TXFIFOEIE SDMMC_MASK_TXFIFOEIE_Msk /*!<Tx FIFO Empty interrupt Enable */
  16288. #define SDMMC_MASK_BUSYD0ENDIE_Pos (21U)
  16289. #define SDMMC_MASK_BUSYD0ENDIE_Msk (0x1UL << SDMMC_MASK_BUSYD0ENDIE_Pos) /*!< 0x00200000 */
  16290. #define SDMMC_MASK_BUSYD0ENDIE SDMMC_MASK_BUSYD0ENDIE_Msk /*!<BUSYD0END interrupt Enable */
  16291. #define SDMMC_MASK_SDIOITIE_Pos (22U)
  16292. #define SDMMC_MASK_SDIOITIE_Msk (0x1UL << SDMMC_MASK_SDIOITIE_Pos) /*!< 0x00400000 */
  16293. #define SDMMC_MASK_SDIOITIE SDMMC_MASK_SDIOITIE_Msk /*!<SDIO Mode Interrupt Received interrupt Enable */
  16294. #define SDMMC_MASK_ACKFAILIE_Pos (23U)
  16295. #define SDMMC_MASK_ACKFAILIE_Msk (0x1UL << SDMMC_MASK_ACKFAILIE_Pos) /*!< 0x00800000 */
  16296. #define SDMMC_MASK_ACKFAILIE SDMMC_MASK_ACKFAILIE_Msk /*!<Acknowledgment Fail Interrupt Enable */
  16297. #define SDMMC_MASK_ACKTIMEOUTIE_Pos (24U)
  16298. #define SDMMC_MASK_ACKTIMEOUTIE_Msk (0x1UL << SDMMC_MASK_ACKTIMEOUTIE_Pos) /*!< 0x01000000 */
  16299. #define SDMMC_MASK_ACKTIMEOUTIE SDMMC_MASK_ACKTIMEOUTIE_Msk /*!<Acknowledgment timeout Interrupt Enable */
  16300. #define SDMMC_MASK_VSWENDIE_Pos (25U)
  16301. #define SDMMC_MASK_VSWENDIE_Msk (0x1UL << SDMMC_MASK_VSWENDIE_Pos) /*!< 0x02000000 */
  16302. #define SDMMC_MASK_VSWENDIE SDMMC_MASK_VSWENDIE_Msk /*!<Voltage switch critical timing section completion Interrupt Enable */
  16303. #define SDMMC_MASK_CKSTOPIE_Pos (26U)
  16304. #define SDMMC_MASK_CKSTOPIE_Msk (0x1UL << SDMMC_MASK_CKSTOPIE_Pos) /*!< 0x03000000 */
  16305. #define SDMMC_MASK_CKSTOPIE SDMMC_MASK_CKSTOPIE_Msk /*!<Voltage Switch clock stopped Interrupt Enable */
  16306. #define SDMMC_MASK_IDMABTCIE_Pos (28U)
  16307. #define SDMMC_MASK_IDMABTCIE_Msk (0x1UL << SDMMC_MASK_IDMABTCIE_Pos) /*!< 0x10000000 */
  16308. #define SDMMC_MASK_IDMABTCIE SDMMC_MASK_IDMABTCIE_Msk /*!<IDMA buffer transfer complete Interrupt Enable */
  16309. /****************** Bit definition for SDMMC_ACKTIMER register **************/
  16310. #define SDMMC_ACKTIME_ACKTIME_Pos (0U)
  16311. #define SDMMC_ACKTIME_ACKTIME_Msk (0x1FFFFFFUL << SDMMC_ACKTIME_ACKTIME_Pos)/*!< 0x01FFFFFF */
  16312. #define SDMMC_ACKTIME_ACKTIME SDMMC_ACKTIME_ACKTIME_Msk /*!<Boot acknowledgment timeout period */
  16313. /****************** Bit definition for SDMMC_FIFO register *******************/
  16314. #define SDMMC_FIFO_FIFODATA_Pos (0U)
  16315. #define SDMMC_FIFO_FIFODATA_Msk (0xFFFFFFFFUL << SDMMC_FIFO_FIFODATA_Pos)/*!< 0xFFFFFFFF */
  16316. #define SDMMC_FIFO_FIFODATA SDMMC_FIFO_FIFODATA_Msk /*!<Receive and transmit FIFO data */
  16317. /****************** Bit definition for SDMMC_IDMACTRL register ***************/
  16318. #define SDMMC_IDMA_IDMAEN_Pos (0U)
  16319. #define SDMMC_IDMA_IDMAEN_Msk (0x1UL << SDMMC_IDMA_IDMAEN_Pos) /*!< 0x00000001 */
  16320. #define SDMMC_IDMA_IDMAEN SDMMC_IDMA_IDMAEN_Msk /*!< Enable the internal DMA of the SDMMC peripheral */
  16321. #define SDMMC_IDMA_IDMABMODE_Pos (1U)
  16322. #define SDMMC_IDMA_IDMABMODE_Msk (0x1UL << SDMMC_IDMA_IDMABMODE_Pos) /*!< 0x00000002 */
  16323. #define SDMMC_IDMA_IDMABMODE SDMMC_IDMA_IDMABMODE_Msk /*!< Enable double buffer mode for IDMA */
  16324. #define SDMMC_IDMA_IDMABACT_Pos (2U)
  16325. #define SDMMC_IDMA_IDMABACT_Msk (0x1UL << SDMMC_IDMA_IDMABACT_Pos) /*!< 0x00000004 */
  16326. #define SDMMC_IDMA_IDMABACT SDMMC_IDMA_IDMABACT_Msk /*!< Uses buffer 1 when double buffer mode is selected */
  16327. /****************** Bit definition for SDMMC_IDMABSIZE register *************/
  16328. #define SDMMC_IDMABSIZE_IDMABND_Pos (5U)
  16329. #define SDMMC_IDMABSIZE_IDMABND_Msk (0xFFUL << SDMMC_IDMABSIZE_IDMABND_Pos)/*!< 0x00001FE0 */
  16330. #define SDMMC_IDMABSIZE_IDMABND SDMMC_IDMABSIZE_IDMABND_Msk /*!<Number of transfers per buffer */
  16331. /****************** Bit definition for SDMMC_IDMABASE0 register *************/
  16332. #define SDMMC_IDMABASE0_IDMABASE0_Pos (0U)
  16333. #define SDMMC_IDMABASE0_IDMABASE0_Msk (0xFFFFFFFFUL << SDMMC_IDMABASE0_IDMABASE0_Pos)/*!< 0xFFFFFFFF */
  16334. #define SDMMC_IDMABASE0_IDMABASE0 SDMMC_IDMABASE0_IDMABASE0_Msk /*!<Buffer 0 memory base address */
  16335. /****************** Bit definition for SDMMC_IDMABASE1 register *************/
  16336. #define SDMMC_IDMABASE1_IDMABASE1_Pos (0U)
  16337. #define SDMMC_IDMABASE1_IDMABASE1_Msk (0xFFFFFFFFUL << SDMMC_IDMABASE1_IDMABASE0_Pos)/*!< 0xFFFFFFFF */
  16338. #define SDMMC_IDMABASE1_IDMABASE1 SDMMC_IDMABASE0_IDMABASE1_Msk /*!<Buffer 1 memory base address */
  16339. /******************************************************************************/
  16340. /* */
  16341. /* UCPD */
  16342. /* */
  16343. /******************************************************************************/
  16344. /******************** Bits definition for UCPD_CFG1 register *******************/
  16345. #define UCPD_CFG1_HBITCLKDIV_Pos (0U)
  16346. #define UCPD_CFG1_HBITCLKDIV_Msk (0x3FUL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x0000003F */
  16347. #define UCPD_CFG1_HBITCLKDIV UCPD_CFG1_HBITCLKDIV_Msk /*!< Number of cycles (minus 1) for a half bit clock */
  16348. #define UCPD_CFG1_HBITCLKDIV_0 (0x01UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000001 */
  16349. #define UCPD_CFG1_HBITCLKDIV_1 (0x02UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000002 */
  16350. #define UCPD_CFG1_HBITCLKDIV_2 (0x04UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000004 */
  16351. #define UCPD_CFG1_HBITCLKDIV_3 (0x08UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000008 */
  16352. #define UCPD_CFG1_HBITCLKDIV_4 (0x10UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000010 */
  16353. #define UCPD_CFG1_HBITCLKDIV_5 (0x20UL << UCPD_CFG1_HBITCLKDIV_Pos) /*!< 0x00000020 */
  16354. #define UCPD_CFG1_IFRGAP_Pos (6U)
  16355. #define UCPD_CFG1_IFRGAP_Msk (0x1FUL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x000007C0 */
  16356. #define UCPD_CFG1_IFRGAP UCPD_CFG1_IFRGAP_Msk /*!< Clock divider value to generates Interframe gap */
  16357. #define UCPD_CFG1_IFRGAP_0 (0x01UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000040 */
  16358. #define UCPD_CFG1_IFRGAP_1 (0x02UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000080 */
  16359. #define UCPD_CFG1_IFRGAP_2 (0x04UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000100 */
  16360. #define UCPD_CFG1_IFRGAP_3 (0x08UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000200 */
  16361. #define UCPD_CFG1_IFRGAP_4 (0x10UL << UCPD_CFG1_IFRGAP_Pos) /*!< 0x00000400 */
  16362. #define UCPD_CFG1_TRANSWIN_Pos (11U)
  16363. #define UCPD_CFG1_TRANSWIN_Msk (0x1FUL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x0000F800 */
  16364. #define UCPD_CFG1_TRANSWIN UCPD_CFG1_TRANSWIN_Msk /*!< Number of cycles (minus 1) of the half bit clock */
  16365. #define UCPD_CFG1_TRANSWIN_0 (0x01UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00000800 */
  16366. #define UCPD_CFG1_TRANSWIN_1 (0x02UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00001000 */
  16367. #define UCPD_CFG1_TRANSWIN_2 (0x04UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00002000 */
  16368. #define UCPD_CFG1_TRANSWIN_3 (0x08UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00004000 */
  16369. #define UCPD_CFG1_TRANSWIN_4 (0x10UL << UCPD_CFG1_TRANSWIN_Pos) /*!< 0x00008000 */
  16370. #define UCPD_CFG1_PSC_UCPDCLK_Pos (17U)
  16371. #define UCPD_CFG1_PSC_UCPDCLK_Msk (0x7UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x000E0000 */
  16372. #define UCPD_CFG1_PSC_UCPDCLK UCPD_CFG1_PSC_UCPDCLK_Msk /*!< Prescaler for UCPDCLK */
  16373. #define UCPD_CFG1_PSC_UCPDCLK_0 (0x1UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x00020000 */
  16374. #define UCPD_CFG1_PSC_UCPDCLK_1 (0x2UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x00040000 */
  16375. #define UCPD_CFG1_PSC_UCPDCLK_2 (0x4UL << UCPD_CFG1_PSC_UCPDCLK_Pos) /*!< 0x00080000 */
  16376. #define UCPD_CFG1_RXORDSETEN_Pos (20U)
  16377. #define UCPD_CFG1_RXORDSETEN_Msk (0x1FFUL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x1FF00000 */
  16378. #define UCPD_CFG1_RXORDSETEN UCPD_CFG1_RXORDSETEN_Msk /*!< Receiver ordered set detection enable */
  16379. #define UCPD_CFG1_RXORDSETEN_0 (0x001UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00100000 */
  16380. #define UCPD_CFG1_RXORDSETEN_1 (0x002UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00200000 */
  16381. #define UCPD_CFG1_RXORDSETEN_2 (0x004UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00400000 */
  16382. #define UCPD_CFG1_RXORDSETEN_3 (0x008UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x00800000 */
  16383. #define UCPD_CFG1_RXORDSETEN_4 (0x010UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x01000000 */
  16384. #define UCPD_CFG1_RXORDSETEN_5 (0x020UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x02000000 */
  16385. #define UCPD_CFG1_RXORDSETEN_6 (0x040UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x04000000 */
  16386. #define UCPD_CFG1_RXORDSETEN_7 (0x080UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x08000000 */
  16387. #define UCPD_CFG1_RXORDSETEN_8 (0x100UL << UCPD_CFG1_RXORDSETEN_Pos)/*!< 0x10000000 */
  16388. #define UCPD_CFG1_TXDMAEN_Pos (29U)
  16389. #define UCPD_CFG1_TXDMAEN_Msk (0x1UL << UCPD_CFG1_TXDMAEN_Pos) /*!< 0x20000000 */
  16390. #define UCPD_CFG1_TXDMAEN UCPD_CFG1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  16391. #define UCPD_CFG1_RXDMAEN_Pos (30U)
  16392. #define UCPD_CFG1_RXDMAEN_Msk (0x1UL << UCPD_CFG1_RXDMAEN_Pos) /*!< 0x40000000 */
  16393. #define UCPD_CFG1_RXDMAEN UCPD_CFG1_RXDMAEN_Msk /*!< DMA reception requests enable */
  16394. #define UCPD_CFG1_UCPDEN_Pos (31U)
  16395. #define UCPD_CFG1_UCPDEN_Msk (0x1UL << UCPD_CFG1_UCPDEN_Pos) /*!< 0x80000000 */
  16396. #define UCPD_CFG1_UCPDEN UCPD_CFG1_UCPDEN_Msk /*!< USB Power Delivery Block Enable */
  16397. /******************** Bits definition for UCPD_CFG2 register *******************/
  16398. #define UCPD_CFG2_RXFILTDIS_Pos (0U)
  16399. #define UCPD_CFG2_RXFILTDIS_Msk (0x1UL << UCPD_CFG2_RXFILTDIS_Pos) /*!< 0x00000001 */
  16400. #define UCPD_CFG2_RXFILTDIS UCPD_CFG2_RXFILTDIS_Msk /*!< Enables an Rx pre-filter for the BMC decoder */
  16401. #define UCPD_CFG2_RXFILT2N3_Pos (1U)
  16402. #define UCPD_CFG2_RXFILT2N3_Msk (0x1UL << UCPD_CFG2_RXFILT2N3_Pos) /*!< 0x00000002 */
  16403. #define UCPD_CFG2_RXFILT2N3 UCPD_CFG2_RXFILT2N3_Msk /*!< Controls the sampling method for an Rx pre-filter for the BMC decode */
  16404. #define UCPD_CFG2_FORCECLK_Pos (2U)
  16405. #define UCPD_CFG2_FORCECLK_Msk (0x1UL << UCPD_CFG2_FORCECLK_Pos) /*!< 0x00000004 */
  16406. #define UCPD_CFG2_FORCECLK UCPD_CFG2_FORCECLK_Msk /*!< Controls forcing of the clock request UCPDCLK_REQ */
  16407. #define UCPD_CFG2_WUPEN_Pos (3U)
  16408. #define UCPD_CFG2_WUPEN_Msk (0x1UL << UCPD_CFG2_WUPEN_Pos) /*!< 0x00000008 */
  16409. #define UCPD_CFG2_WUPEN UCPD_CFG2_WUPEN_Msk /*!< Wakeup from STOP enable */
  16410. /******************** Bits definition for UCPD_CFG3 register *******************/
  16411. #define UCPD_CFG3_TRIM1_NG_CCRPD_Pos (0U)
  16412. #define UCPD_CFG3_TRIM1_NG_CCRPD_Msk (0xFUL << UCPD_CFG3_TRIM1_NG_CCRPD_Pos) /*!< 0x0000000F */
  16413. #define UCPD_CFG3_TRIM1_NG_CCRPD UCPD_CFG3_TRIM1_NG_CCRPD_Msk /*!< SW trim value for RPDEFAULT resistors (CC1) */
  16414. #define UCPD_CFG3_TRIM1_NG_CC1A5_Pos (4U)
  16415. #define UCPD_CFG3_TRIM1_NG_CC1A5_Msk (0x1FUL << UCPD_CFG3_TRIM1_NG_CC1A5_Pos)/*!< 0x000001F0 */
  16416. #define UCPD_CFG3_TRIM1_NG_CC1A5 UCPD_CFG3_TRIM1_NG_CC1A5_Msk /*!< SW trim value for RP1A5 resistors (CC1) */
  16417. #define UCPD_CFG3_TRIM1_NG_CC3A0_Pos (9U)
  16418. #define UCPD_CFG3_TRIM1_NG_CC3A0_Msk (0xFUL << UCPD_CFG3_TRIM1_NG_CC3A0_Pos) /*!< 0x00001E00 */
  16419. #define UCPD_CFG3_TRIM1_NG_CC3A0 UCPD_CFG3_TRIM1_NG_CC3A0_Msk /*!< SW trim value for RP3A0 resistors (CC1) */
  16420. #define UCPD_CFG3_TRIM2_NG_CCRPD_Pos (16U)
  16421. #define UCPD_CFG3_TRIM2_NG_CCRPD_Msk (0xFUL << UCPD_CFG3_TRIM2_NG_CCRPD_Pos) /*!< 0x000F0000 */
  16422. #define UCPD_CFG3_TRIM2_NG_CCRPD UCPD_CFG3_TRIM2_NG_CCRPD_Msk /*!< SW trim value for RPDEFAULT resistors (CC1) */
  16423. #define UCPD_CFG3_TRIM2_NG_CC1A5_Pos (20U)
  16424. #define UCPD_CFG3_TRIM2_NG_CC1A5_Msk (0x1FUL << UCPD_CFG3_TRIM2_NG_CC1A5_Pos)/*!< 0x01F00000 */
  16425. #define UCPD_CFG3_TRIM2_NG_CC1A5 UCPD_CFG3_TRIM2_NG_CC1A5_Msk /*!< SW trim value for RP1A5 resistors (CC1) */
  16426. #define UCPD_CFG3_TRIM2_NG_CC3A0_Pos (25U)
  16427. #define UCPD_CFG3_TRIM2_NG_CC3A0_Msk (0xFUL << UCPD_CFG3_TRIM2_NG_CC3A0_Pos) /*!< 0x1E000000 */
  16428. #define UCPD_CFG3_TRIM2_NG_CC3A0 UCPD_CFG3_TRIM2_NG_CC3A0_Msk /*!< SW trim value for RP3A0 resistors (CC1) */
  16429. /******************** Bits definition for UCPD_CR register ********************/
  16430. #define UCPD_CR_TXMODE_Pos (0U)
  16431. #define UCPD_CR_TXMODE_Msk (0x3UL << UCPD_CR_TXMODE_Pos) /*!< 0x00000003 */
  16432. #define UCPD_CR_TXMODE UCPD_CR_TXMODE_Msk /*!< Type of Tx packet */
  16433. #define UCPD_CR_TXMODE_0 (0x1UL << UCPD_CR_TXMODE_Pos) /*!< 0x00000001 */
  16434. #define UCPD_CR_TXMODE_1 (0x2UL << UCPD_CR_TXMODE_Pos) /*!< 0x00000002 */
  16435. #define UCPD_CR_TXSEND_Pos (2U)
  16436. #define UCPD_CR_TXSEND_Msk (0x1UL << UCPD_CR_TXSEND_Pos) /*!< 0x00000004 */
  16437. #define UCPD_CR_TXSEND UCPD_CR_TXSEND_Msk /*!< Type of Tx packet */
  16438. #define UCPD_CR_TXHRST_Pos (3U)
  16439. #define UCPD_CR_TXHRST_Msk (0x1UL << UCPD_CR_TXHRST_Pos) /*!< 0x00000008 */
  16440. #define UCPD_CR_TXHRST UCPD_CR_TXHRST_Msk /*!< Command to send a Tx Hard Reset */
  16441. #define UCPD_CR_RXMODE_Pos (4U)
  16442. #define UCPD_CR_RXMODE_Msk (0x1UL << UCPD_CR_RXMODE_Pos) /*!< 0x00000010 */
  16443. #define UCPD_CR_RXMODE UCPD_CR_RXMODE_Msk /*!< Receiver mode */
  16444. #define UCPD_CR_PHYRXEN_Pos (5U)
  16445. #define UCPD_CR_PHYRXEN_Msk (0x1UL << UCPD_CR_PHYRXEN_Pos) /*!< 0x00000020 */
  16446. #define UCPD_CR_PHYRXEN UCPD_CR_PHYRXEN_Msk /*!< Controls enable of USB Power Delivery receiver */
  16447. #define UCPD_CR_PHYCCSEL_Pos (6U)
  16448. #define UCPD_CR_PHYCCSEL_Msk (0x1UL << UCPD_CR_PHYCCSEL_Pos) /*!< 0x00000040 */
  16449. #define UCPD_CR_PHYCCSEL UCPD_CR_PHYCCSEL_Msk /*!< */
  16450. #define UCPD_CR_ANASUBMODE_Pos (7U)
  16451. #define UCPD_CR_ANASUBMODE_Msk (0x3UL << UCPD_CR_ANASUBMODE_Pos) /*!< 0x00000180 */
  16452. #define UCPD_CR_ANASUBMODE UCPD_CR_ANASUBMODE_Msk /*!< Analog PHY sub-mode */
  16453. #define UCPD_CR_ANASUBMODE_0 (0x1UL << UCPD_CR_ANASUBMODE_Pos) /*!< 0x00000080 */
  16454. #define UCPD_CR_ANASUBMODE_1 (0x2UL << UCPD_CR_ANASUBMODE_Pos) /*!< 0x00000100 */
  16455. #define UCPD_CR_ANAMODE_Pos (9U)
  16456. #define UCPD_CR_ANAMODE_Msk (0x1UL << UCPD_CR_ANAMODE_Pos) /*!< 0x00000200 */
  16457. #define UCPD_CR_ANAMODE UCPD_CR_ANAMODE_Msk /*!< Analog PHY working mode */
  16458. #define UCPD_CR_CCENABLE_Pos (10U)
  16459. #define UCPD_CR_CCENABLE_Msk (0x3UL << UCPD_CR_CCENABLE_Pos) /*!< 0x00000C00 */
  16460. #define UCPD_CR_CCENABLE UCPD_CR_CCENABLE_Msk /*!< */
  16461. #define UCPD_CR_CCENABLE_0 (0x1UL << UCPD_CR_CCENABLE_Pos) /*!< 0x00000400 */
  16462. #define UCPD_CR_CCENABLE_1 (0x2UL << UCPD_CR_CCENABLE_Pos) /*!< 0x00000800 */
  16463. #define UCPD_CR_USEEXTPHY_Pos (12U)
  16464. #define UCPD_CR_USEEXTPHY_Msk (0x1UL << UCPD_CR_USEEXTPHY_Pos) /*!< 0x00001000 */
  16465. #define UCPD_CR_USEEXTPHY UCPD_CR_USEEXTPHY_Msk /*!< Controls enable of USB Power Delivery transmitter */
  16466. #define UCPD_CR_CC2VCONNEN_Pos (13U)
  16467. #define UCPD_CR_CC2VCONNEN_Msk (0x1UL << UCPD_CR_CC2VCONNEN_Pos) /*!< 0x00002000 */
  16468. #define UCPD_CR_CC2VCONNEN UCPD_CR_CC2VCONNEN_Msk /*!< VCONN enable for CC2 */
  16469. #define UCPD_CR_CC1VCONNEN_Pos (14U)
  16470. #define UCPD_CR_CC1VCONNEN_Msk (0x1UL << UCPD_CR_CC1VCONNEN_Pos) /*!< 0x00004000 */
  16471. #define UCPD_CR_CC1VCONNEN UCPD_CR_CC1VCONNEN_Msk /*!< VCONN enable for CC1 */
  16472. #define UCPD_CR_DBATEN_Pos (15U)
  16473. #define UCPD_CR_DBATEN_Msk (0x1UL << UCPD_CR_DBATEN_Pos) /*!< 0x00008000 */
  16474. #define UCPD_CR_DBATEN UCPD_CR_DBATEN_Msk /*!< Enable dead battery behavior (Active High) */
  16475. #define UCPD_CR_FRSRXEN_Pos (16U)
  16476. #define UCPD_CR_FRSRXEN_Msk (0x1UL << UCPD_CR_FRSRXEN_Pos) /*!< 0x00010000 */
  16477. #define UCPD_CR_FRSRXEN UCPD_CR_FRSRXEN_Msk /*!< Enable FRS request detection function */
  16478. #define UCPD_CR_FRSTX_Pos (17U)
  16479. #define UCPD_CR_FRSTX_Msk (0x1UL << UCPD_CR_FRSTX_Pos) /*!< 0x00020000 */
  16480. #define UCPD_CR_FRSTX UCPD_CR_FRSTX_Msk /*!< Signal Fast Role Swap request */
  16481. #define UCPD_CR_RDCH_Pos (18U)
  16482. #define UCPD_CR_RDCH_Msk (0x1UL << UCPD_CR_RDCH_Pos) /*!< 0x00040000 */
  16483. #define UCPD_CR_RDCH UCPD_CR_RDCH_Msk /*!< */
  16484. #define UCPD_CR_RPUSBABSENT_Pos (19U)
  16485. #define UCPD_CR_RPUSBABSENT_Msk (0x1UL << UCPD_CR_RPUSBABSENT_Pos) /*!< 0x00080000 */
  16486. #define UCPD_CR_RPUSBABSENT UCPD_CR_RPUSBABSENT_Msk /*!< */
  16487. #define UCPD_CR_CC1TCDIS_Pos (20U)
  16488. #define UCPD_CR_CC1TCDIS_Msk (0x1UL << UCPD_CR_CC1TCDIS_Pos) /*!< 0x00100000 */
  16489. #define UCPD_CR_CC1TCDIS UCPD_CR_CC1TCDIS_Msk /*!< The bit allows the Type-C detector for CC0 to be disabled. */
  16490. #define UCPD_CR_CC2TCDIS_Pos (21U)
  16491. #define UCPD_CR_CC2TCDIS_Msk (0x1UL << UCPD_CR_CC2TCDIS_Pos) /*!< 0x00200000 */
  16492. #define UCPD_CR_CC2TCDIS UCPD_CR_CC2TCDIS_Msk /*!< The bit allows the Type-C detector for CC2 to be disabled. */
  16493. /******************** Bits definition for UCPD_IMR register *******************/
  16494. #define UCPD_IMR_TXISIE_Pos (0U)
  16495. #define UCPD_IMR_TXISIE_Msk (0x1UL << UCPD_IMR_TXISIE_Pos) /*!< 0x00000001 */
  16496. #define UCPD_IMR_TXISIE UCPD_IMR_TXISIE_Msk /*!< Enable TXIS interrupt */
  16497. #define UCPD_IMR_TXMSGDISCIE_Pos (1U)
  16498. #define UCPD_IMR_TXMSGDISCIE_Msk (0x1UL << UCPD_IMR_TXMSGDISCIE_Pos) /*!< 0x00000002 */
  16499. #define UCPD_IMR_TXMSGDISCIE UCPD_IMR_TXMSGDISCIE_Msk /*!< Enable TXMSGDISC interrupt */
  16500. #define UCPD_IMR_TXMSGSENTIE_Pos (2U)
  16501. #define UCPD_IMR_TXMSGSENTIE_Msk (0x1UL << UCPD_IMR_TXMSGSENTIE_Pos) /*!< 0x00000004 */
  16502. #define UCPD_IMR_TXMSGSENTIE UCPD_IMR_TXMSGSENTIE_Msk /*!< Enable TXMSGSENT interrupt */
  16503. #define UCPD_IMR_TXMSGABTIE_Pos (3U)
  16504. #define UCPD_IMR_TXMSGABTIE_Msk (0x1UL << UCPD_IMR_TXMSGABTIE_Pos) /*!< 0x00000008 */
  16505. #define UCPD_IMR_TXMSGABTIE UCPD_IMR_TXMSGABTIE_Msk /*!< Enable TXMSGABT interrupt */
  16506. #define UCPD_IMR_HRSTDISCIE_Pos (4U)
  16507. #define UCPD_IMR_HRSTDISCIE_Msk (0x1UL << UCPD_IMR_HRSTDISCIE_Pos) /*!< 0x00000010 */
  16508. #define UCPD_IMR_HRSTDISCIE UCPD_IMR_HRSTDISCIE_Msk /*!< Enable HRSTDISC interrupt */
  16509. #define UCPD_IMR_HRSTSENTIE_Pos (5U)
  16510. #define UCPD_IMR_HRSTSENTIE_Msk (0x1UL << UCPD_IMR_HRSTSENTIE_Pos) /*!< 0x00000020 */
  16511. #define UCPD_IMR_HRSTSENTIE UCPD_IMR_HRSTSENTIE_Msk /*!< Enable HRSTSENT interrupt */
  16512. #define UCPD_IMR_TXUNDIE_Pos (6U)
  16513. #define UCPD_IMR_TXUNDIE_Msk (0x1UL << UCPD_IMR_TXUNDIE_Pos) /*!< 0x00000040 */
  16514. #define UCPD_IMR_TXUNDIE UCPD_IMR_TXUNDIE_Msk /*!< Enable TXUND interrupt */
  16515. #define UCPD_IMR_RXNEIE_Pos (8U)
  16516. #define UCPD_IMR_RXNEIE_Msk (0x1UL << UCPD_IMR_RXNEIE_Pos) /*!< 0x00000100 */
  16517. #define UCPD_IMR_RXNEIE UCPD_IMR_RXNEIE_Msk /*!< Enable RXNE interrupt */
  16518. #define UCPD_IMR_RXORDDETIE_Pos (9U)
  16519. #define UCPD_IMR_RXORDDETIE_Msk (0x1UL << UCPD_IMR_RXORDDETIE_Pos) /*!< 0x00000200 */
  16520. #define UCPD_IMR_RXORDDETIE UCPD_IMR_RXORDDETIE_Msk /*!< Enable RXORDDET interrupt */
  16521. #define UCPD_IMR_RXHRSTDETIE_Pos (10U)
  16522. #define UCPD_IMR_RXHRSTDETIE_Msk (0x1UL << UCPD_IMR_RXHRSTDETIE_Pos) /*!< 0x00000400 */
  16523. #define UCPD_IMR_RXHRSTDETIE UCPD_IMR_RXHRSTDETIE_Msk /*!< Enable RXHRSTDET interrupt */
  16524. #define UCPD_IMR_RXOVRIE_Pos (11U)
  16525. #define UCPD_IMR_RXOVRIE_Msk (0x1UL << UCPD_IMR_RXOVRIE_Pos) /*!< 0x00000800 */
  16526. #define UCPD_IMR_RXOVRIE UCPD_IMR_RXOVRIE_Msk /*!< Enable RXOVR interrupt */
  16527. #define UCPD_IMR_RXMSGENDIE_Pos (12U)
  16528. #define UCPD_IMR_RXMSGENDIE_Msk (0x1UL << UCPD_IMR_RXMSGENDIE_Pos) /*!< 0x00001000 */
  16529. #define UCPD_IMR_RXMSGENDIE UCPD_IMR_RXMSGENDIE_Msk /*!< Enable RXMSGEND interrupt */
  16530. #define UCPD_IMR_TYPECEVT1IE_Pos (14U)
  16531. #define UCPD_IMR_TYPECEVT1IE_Msk (0x1UL << UCPD_IMR_TYPECEVT1IE_Pos) /*!< 0x00004000 */
  16532. #define UCPD_IMR_TYPECEVT1IE UCPD_IMR_TYPECEVT1IE_Msk /*!< Enable TYPECEVT1IE interrupt */
  16533. #define UCPD_IMR_TYPECEVT2IE_Pos (15U)
  16534. #define UCPD_IMR_TYPECEVT2IE_Msk (0x1UL << UCPD_IMR_TYPECEVT2IE_Pos) /*!< 0x00008000 */
  16535. #define UCPD_IMR_TYPECEVT2IE UCPD_IMR_TYPECEVT2IE_Msk /*!< Enable TYPECEVT2IE interrupt */
  16536. #define UCPD_IMR_FRSEVTIE_Pos (20U)
  16537. #define UCPD_IMR_FRSEVTIE_Msk (0x1UL << UCPD_IMR_FRSEVTIE_Pos) /*!< 0x00100000 */
  16538. #define UCPD_IMR_FRSEVTIE UCPD_IMR_FRSEVTIE_Msk /*!< Fast Role Swap interrupt */
  16539. /******************** Bits definition for UCPD_SR register ********************/
  16540. #define UCPD_SR_TXIS_Pos (0U)
  16541. #define UCPD_SR_TXIS_Msk (0x1UL << UCPD_SR_TXIS_Pos) /*!< 0x00000001 */
  16542. #define UCPD_SR_TXIS UCPD_SR_TXIS_Msk /*!< Transmit interrupt status */
  16543. #define UCPD_SR_TXMSGDISC_Pos (1U)
  16544. #define UCPD_SR_TXMSGDISC_Msk (0x1UL << UCPD_SR_TXMSGDISC_Pos) /*!< 0x00000002 */
  16545. #define UCPD_SR_TXMSGDISC UCPD_SR_TXMSGDISC_Msk /*!< Transmit message discarded interrupt */
  16546. #define UCPD_SR_TXMSGSENT_Pos (2U)
  16547. #define UCPD_SR_TXMSGSENT_Msk (0x1UL << UCPD_SR_TXMSGSENT_Pos) /*!< 0x00000004 */
  16548. #define UCPD_SR_TXMSGSENT UCPD_SR_TXMSGSENT_Msk /*!< Transmit message sent interrupt */
  16549. #define UCPD_SR_TXMSGABT_Pos (3U)
  16550. #define UCPD_SR_TXMSGABT_Msk (0x1UL << UCPD_SR_TXMSGABT_Pos) /*!< 0x00000008 */
  16551. #define UCPD_SR_TXMSGABT UCPD_SR_TXMSGABT_Msk /*!< Transmit message abort interrupt */
  16552. #define UCPD_SR_HRSTDISC_Pos (4U)
  16553. #define UCPD_SR_HRSTDISC_Msk (0x1UL << UCPD_SR_HRSTDISC_Pos) /*!< 0x00000010 */
  16554. #define UCPD_SR_HRSTDISC UCPD_SR_HRSTDISC_Msk /*!< HRST discarded interrupt */
  16555. #define UCPD_SR_HRSTSENT_Pos (5U)
  16556. #define UCPD_SR_HRSTSENT_Msk (0x1UL << UCPD_SR_HRSTSENT_Pos) /*!< 0x00000020 */
  16557. #define UCPD_SR_HRSTSENT UCPD_SR_HRSTSENT_Msk /*!< HRST sent interrupt */
  16558. #define UCPD_SR_TXUND_Pos (6U)
  16559. #define UCPD_SR_TXUND_Msk (0x1UL << UCPD_SR_TXUND_Pos) /*!< 0x00000040 */
  16560. #define UCPD_SR_TXUND UCPD_SR_TXUND_Msk /*!< Tx data underrun condition interrupt */
  16561. #define UCPD_SR_RXNE_Pos (8U)
  16562. #define UCPD_SR_RXNE_Msk (0x1UL << UCPD_SR_RXNE_Pos) /*!< 0x00000100 */
  16563. #define UCPD_SR_RXNE UCPD_SR_RXNE_Msk /*!< Receive data register not empty interrupt */
  16564. #define UCPD_SR_RXORDDET_Pos (9U)
  16565. #define UCPD_SR_RXORDDET_Msk (0x1UL << UCPD_SR_RXORDDET_Pos) /*!< 0x00000200 */
  16566. #define UCPD_SR_RXORDDET UCPD_SR_RXORDDET_Msk /*!< Rx ordered set (4 K-codes) detected interrupt */
  16567. #define UCPD_SR_RXHRSTDET_Pos (10U)
  16568. #define UCPD_SR_RXHRSTDET_Msk (0x1UL << UCPD_SR_RXHRSTDET_Pos) /*!< 0x00000400 */
  16569. #define UCPD_SR_RXHRSTDET UCPD_SR_RXHRSTDET_Msk /*!< Rx Hard Reset detect interrupt */
  16570. #define UCPD_SR_RXOVR_Pos (11U)
  16571. #define UCPD_SR_RXOVR_Msk (0x1UL << UCPD_SR_RXOVR_Pos) /*!< 0x00000800 */
  16572. #define UCPD_SR_RXOVR UCPD_SR_RXOVR_Msk /*!< Rx data overflow interrupt */
  16573. #define UCPD_SR_RXMSGEND_Pos (12U)
  16574. #define UCPD_SR_RXMSGEND_Msk (0x1UL << UCPD_SR_RXMSGEND_Pos) /*!< 0x00001000 */
  16575. #define UCPD_SR_RXMSGEND UCPD_SR_RXMSGEND_Msk /*!< Rx message received */
  16576. #define UCPD_SR_RXERR_Pos (13U)
  16577. #define UCPD_SR_RXERR_Msk (0x1UL << UCPD_SR_RXERR_Pos) /*!< 0x00002000 */
  16578. #define UCPD_SR_RXERR UCPD_SR_RXERR_Msk /*!< RX Error */
  16579. #define UCPD_SR_TYPECEVT1_Pos (14U)
  16580. #define UCPD_SR_TYPECEVT1_Msk (0x1UL << UCPD_SR_TYPECEVT1_Pos) /*!< 0x00004000 */
  16581. #define UCPD_SR_TYPECEVT1 UCPD_SR_TYPECEVT1_Msk /*!< Type C voltage level event on CC1 */
  16582. #define UCPD_SR_TYPECEVT2_Pos (15U)
  16583. #define UCPD_SR_TYPECEVT2_Msk (0x1UL << UCPD_SR_TYPECEVT2_Pos) /*!< 0x00008000 */
  16584. #define UCPD_SR_TYPECEVT2 UCPD_SR_TYPECEVT2_Msk /*!< Type C voltage level event on CC2 */
  16585. #define UCPD_SR_TYPEC_VSTATE_CC1_Pos (16U)
  16586. #define UCPD_SR_TYPEC_VSTATE_CC1_Msk (0x3UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos)/*!< 0x00030000 */
  16587. #define UCPD_SR_TYPEC_VSTATE_CC1 UCPD_SR_TYPEC_VSTATE_CC1_Msk /*!< Status of DC level on CC1 pin */
  16588. #define UCPD_SR_TYPEC_VSTATE_CC1_0 (0x1UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos)/*!< 0x00010000 */
  16589. #define UCPD_SR_TYPEC_VSTATE_CC1_1 (0x2UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos)/*!< 0x00020000 */
  16590. #define UCPD_SR_TYPEC_VSTATE_CC2_Pos (18U)
  16591. #define UCPD_SR_TYPEC_VSTATE_CC2_Msk (0x3UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos)/*!< 0x000C0000 */
  16592. #define UCPD_SR_TYPEC_VSTATE_CC2 UCPD_SR_TYPEC_VSTATE_CC2_Msk /*!<Status of DC level on CC2 pin */
  16593. #define UCPD_SR_TYPEC_VSTATE_CC2_0 (0x1UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos)/*!< 0x00040000 */
  16594. #define UCPD_SR_TYPEC_VSTATE_CC2_1 (0x2UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos)/*!< 0x00080000 */
  16595. #define UCPD_SR_FRSEVT_Pos (20U)
  16596. #define UCPD_SR_FRSEVT_Msk (0x1UL << UCPD_SR_FRSEVT_Pos) /*!< 0x00100000 */
  16597. #define UCPD_SR_FRSEVT UCPD_SR_FRSEVT_Msk /*!< Fast Role Swap detection event */
  16598. /******************** Bits definition for UCPD_ICR register *******************/
  16599. #define UCPD_ICR_TXMSGDISCCF_Pos (1U)
  16600. #define UCPD_ICR_TXMSGDISCCF_Msk (0x1UL << UCPD_ICR_TXMSGDISCCF_Pos) /*!< 0x00000002 */
  16601. #define UCPD_ICR_TXMSGDISCCF UCPD_ICR_TXMSGDISCCF_Msk /*!< Tx message discarded flag (TXMSGDISC) clear */
  16602. #define UCPD_ICR_TXMSGSENTCF_Pos (2U)
  16603. #define UCPD_ICR_TXMSGSENTCF_Msk (0x1UL << UCPD_ICR_TXMSGSENTCF_Pos) /*!< 0x00000004 */
  16604. #define UCPD_ICR_TXMSGSENTCF UCPD_ICR_TXMSGSENTCF_Msk /*!< Tx message sent flag (TXMSGSENT) clear */
  16605. #define UCPD_ICR_TXMSGABTCF_Pos (3U)
  16606. #define UCPD_ICR_TXMSGABTCF_Msk (0x1UL << UCPD_ICR_TXMSGABTCF_Pos) /*!< 0x00000008 */
  16607. #define UCPD_ICR_TXMSGABTCF UCPD_ICR_TXMSGABTCF_Msk /*!< Tx message abort flag (TXMSGABT) clear */
  16608. #define UCPD_ICR_HRSTDISCCF_Pos (4U)
  16609. #define UCPD_ICR_HRSTDISCCF_Msk (0x1UL << UCPD_ICR_HRSTDISCCF_Pos) /*!< 0x00000010 */
  16610. #define UCPD_ICR_HRSTDISCCF UCPD_ICR_HRSTDISCCF_Msk /*!< Hard reset discarded flag (HRSTDISC) clear */
  16611. #define UCPD_ICR_HRSTSENTCF_Pos (5U)
  16612. #define UCPD_ICR_HRSTSENTCF_Msk (0x1UL << UCPD_ICR_HRSTSENTCF_Pos) /*!< 0x00000020 */
  16613. #define UCPD_ICR_HRSTSENTCF UCPD_ICR_HRSTSENTCF_Msk /*!< Hard reset sent flag (HRSTSENT) clear */
  16614. #define UCPD_ICR_TXUNDCF_Pos (6U)
  16615. #define UCPD_ICR_TXUNDCF_Msk (0x1UL << UCPD_ICR_TXUNDCF_Pos) /*!< 0x00000040 */
  16616. #define UCPD_ICR_TXUNDCF UCPD_ICR_TXUNDCF_Msk /*!< Tx underflow flag (TXUND) clear */
  16617. #define UCPD_ICR_RXORDDETCF_Pos (9U)
  16618. #define UCPD_ICR_RXORDDETCF_Msk (0x1UL << UCPD_ICR_RXORDDETCF_Pos) /*!< 0x00000200 */
  16619. #define UCPD_ICR_RXORDDETCF UCPD_ICR_RXORDDETCF_Msk /*!< Rx ordered set detect flag (RXORDDET) clear */
  16620. #define UCPD_ICR_RXHRSTDETCF_Pos (10U)
  16621. #define UCPD_ICR_RXHRSTDETCF_Msk (0x1UL << UCPD_ICR_RXHRSTDETCF_Pos) /*!< 0x00000400 */
  16622. #define UCPD_ICR_RXHRSTDETCF UCPD_ICR_RXHRSTDETCF_Msk /*!< Rx Hard Reset detected flag (RXHRSTDET) clear */
  16623. #define UCPD_ICR_RXOVRCF_Pos (11U)
  16624. #define UCPD_ICR_RXOVRCF_Msk (0x1UL << UCPD_ICR_RXOVRCF_Pos) /*!< 0x00000800 */
  16625. #define UCPD_ICR_RXOVRCF UCPD_ICR_RXOVRCF_Msk /*!< Rx overflow flag (RXOVR) clear */
  16626. #define UCPD_ICR_RXMSGENDCF_Pos (12U)
  16627. #define UCPD_ICR_RXMSGENDCF_Msk (0x1UL << UCPD_ICR_RXMSGENDCF_Pos) /*!< 0x00001000 */
  16628. #define UCPD_ICR_RXMSGENDCF UCPD_ICR_RXMSGENDCF_Msk /*!< Rx message received flag (RXMSGEND) clear */
  16629. #define UCPD_ICR_TYPECEVT1CF_Pos (14U)
  16630. #define UCPD_ICR_TYPECEVT1CF_Msk (0x1UL << UCPD_ICR_TYPECEVT1CF_Pos) /*!< 0x00004000 */
  16631. #define UCPD_ICR_TYPECEVT1CF UCPD_ICR_TYPECEVT1CF_Msk /*!< TypeC event (CC1) flag (TYPECEVT1) clear */
  16632. #define UCPD_ICR_TYPECEVT2CF_Pos (15U)
  16633. #define UCPD_ICR_TYPECEVT2CF_Msk (0x1UL << UCPD_ICR_TYPECEVT2CF_Pos) /*!< 0x00008000 */
  16634. #define UCPD_ICR_TYPECEVT2CF UCPD_ICR_TYPECEVT2CF_Msk /*!< TypeC event (CC2) flag (TYPECEVT2) clear */
  16635. #define UCPD_ICR_FRSEVTCF_Pos (20U)
  16636. #define UCPD_ICR_FRSEVTCF_Msk (0x1UL << UCPD_ICR_FRSEVTCF_Pos) /*!< 0x00100000 */
  16637. #define UCPD_ICR_FRSEVTCF UCPD_ICR_FRSEVTCF_Msk /*!< Fast Role Swap event flag clear */
  16638. /******************** Bits definition for UCPD_TXORDSET register **************/
  16639. #define UCPD_TX_ORDSET_TXORDSET_Pos (0U)
  16640. #define UCPD_TX_ORDSET_TXORDSET_Msk (0xFFFFFUL << UCPD_TX_ORDSET_TXORDSET_Pos)/*!< 0x000FFFFF */
  16641. #define UCPD_TX_ORDSET_TXORDSET UCPD_TX_ORDSET_TXORDSET_Msk /*!< Tx Ordered Set */
  16642. /******************** Bits definition for UCPD_TXPAYSZ register ****************/
  16643. #define UCPD_TX_PAYSZ_TXPAYSZ_Pos (0U)
  16644. #define UCPD_TX_PAYSZ_TXPAYSZ_Msk (0x3FFUL << UCPD_TX_PAYSZ_TXPAYSZ_Pos)/*!< 0x000003FF */
  16645. #define UCPD_TX_PAYSZ_TXPAYSZ UCPD_TX_PAYSZ_TXPAYSZ_Msk /*!< Tx payload size in bytes */
  16646. /******************** Bits definition for UCPD_TXDR register *******************/
  16647. #define UCPD_TXDR_TXDATA_Pos (0U)
  16648. #define UCPD_TXDR_TXDATA_Msk (0xFFUL << UCPD_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  16649. #define UCPD_TXDR_TXDATA UCPD_TXDR_TXDATA_Msk /*!< Tx Data Register */
  16650. /******************** Bits definition for UCPD_RXORDSET register **************/
  16651. #define UCPD_RX_ORDSET_RXORDSET_Pos (0U)
  16652. #define UCPD_RX_ORDSET_RXORDSET_Msk (0x7UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000007 */
  16653. #define UCPD_RX_ORDSET_RXORDSET UCPD_RX_ORDSET_RXORDSET_Msk /*!< Rx Ordered Set Code detected */
  16654. #define UCPD_RX_ORDSET_RXORDSET_0 (0x1UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000001 */
  16655. #define UCPD_RX_ORDSET_RXORDSET_1 (0x2UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000002 */
  16656. #define UCPD_RX_ORDSET_RXORDSET_2 (0x4UL << UCPD_RX_ORDSET_RXORDSET_Pos) /*!< 0x00000004 */
  16657. #define UCPD_RX_ORDSET_RXSOP3OF4_Pos (3U)
  16658. #define UCPD_RX_ORDSET_RXSOP3OF4_Msk (0x1UL << UCPD_RX_ORDSET_RXSOP3OF4_Pos)/*!< 0x00000008 */
  16659. #define UCPD_RX_ORDSET_RXSOP3OF4 UCPD_RX_ORDSET_RXSOP3OF4_Msk /*!< Rx Ordered Set Debug indication */
  16660. #define UCPD_RX_ORDSET_RXSOPKINVALID_Pos (4U)
  16661. #define UCPD_RX_ORDSET_RXSOPKINVALID_Msk (0x7UL << UCPD_RX_ORDSET_RXSOPKINVALID_Pos)/*!< 0x00000070 */
  16662. #define UCPD_RX_ORDSET_RXSOPKINVALID UCPD_RX_ORDSET_RXSOPKINVALID_Msk /*!< Rx Ordered Set corrupted K-Codes (Debug) */
  16663. /******************** Bits definition for UCPD_RXPAYSZ register ****************/
  16664. #define UCPD_RX_PAYSZ_RXPAYSZ_Pos (0U)
  16665. #define UCPD_RX_PAYSZ_RXPAYSZ_Msk (0x3FFUL << UCPD_RX_PAYSZ_RXPAYSZ_Pos)/*!< 0x000003FF */
  16666. #define UCPD_RX_PAYSZ_RXPAYSZ UCPD_RX_PAYSZ_RXPAYSZ_Msk /*!< Rx payload size in bytes */
  16667. /******************** Bits definition for UCPD_RXDR register *******************/
  16668. #define UCPD_RXDR_RXDATA_Pos (0U)
  16669. #define UCPD_RXDR_RXDATA_Msk (0xFFUL << UCPD_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  16670. #define UCPD_RXDR_RXDATA UCPD_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  16671. /******************** Bits definition for UCPD_RXORDEXT1 register **************/
  16672. #define UCPD_RX_ORDEXT1_RXSOPX1_Pos (0U)
  16673. #define UCPD_RX_ORDEXT1_RXSOPX1_Msk (0xFFFFFUL << UCPD_RX_ORDEXT1_RXSOPX1_Pos)/*!< 0x000FFFFF */
  16674. #define UCPD_RX_ORDEXT1_RXSOPX1 UCPD_RX_ORDEXT1_RXSOPX1_Msk /*!< RX Ordered Set Extension Register 1 */
  16675. /******************** Bits definition for UCPD_RXORDEXT2 register **************/
  16676. #define UCPD_RX_ORDEXT2_RXSOPX2_Pos (0U)
  16677. #define UCPD_RX_ORDEXT2_RXSOPX2_Msk (0xFFFFFUL << UCPD_RX_ORDEXT2_RXSOPX2_Pos)/*!< 0x000FFFFF */
  16678. #define UCPD_RX_ORDEXT2_RXSOPX2 UCPD_RX_ORDEXT2_RXSOPX2_Msk /*!< RX Ordered Set Extension Register 1 */
  16679. /******************************************************************************/
  16680. /* */
  16681. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  16682. /* */
  16683. /******************************************************************************/
  16684. /****************** Bit definition for USART_CR1 register *******************/
  16685. #define USART_CR1_UE_Pos (0U)
  16686. #define USART_CR1_UE_Msk (0x1UL << USART_CR1_UE_Pos) /*!< 0x00000001 */
  16687. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  16688. #define USART_CR1_UESM_Pos (1U)
  16689. #define USART_CR1_UESM_Msk (0x1UL << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  16690. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  16691. #define USART_CR1_RE_Pos (2U)
  16692. #define USART_CR1_RE_Msk (0x1UL << USART_CR1_RE_Pos) /*!< 0x00000004 */
  16693. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  16694. #define USART_CR1_TE_Pos (3U)
  16695. #define USART_CR1_TE_Msk (0x1UL << USART_CR1_TE_Pos) /*!< 0x00000008 */
  16696. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  16697. #define USART_CR1_IDLEIE_Pos (4U)
  16698. #define USART_CR1_IDLEIE_Msk (0x1UL << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  16699. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  16700. #define USART_CR1_RXNEIE_Pos (5U)
  16701. #define USART_CR1_RXNEIE_Msk (0x1UL << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  16702. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  16703. #define USART_CR1_RXNEIE_RXFNEIE_Pos USART_CR1_RXNEIE_Pos
  16704. #define USART_CR1_RXNEIE_RXFNEIE_Msk USART_CR1_RXNEIE_Msk /*!< 0x00000020 */
  16705. #define USART_CR1_RXNEIE_RXFNEIE USART_CR1_RXNEIE_Msk /*!< RXNE and RX FIFO Not Empty Interrupt Enable */
  16706. #define USART_CR1_TCIE_Pos (6U)
  16707. #define USART_CR1_TCIE_Msk (0x1UL << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  16708. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  16709. #define USART_CR1_TXEIE_Pos (7U)
  16710. #define USART_CR1_TXEIE_Msk (0x1UL << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  16711. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  16712. #define USART_CR1_TXEIE_TXFNFIE_Pos (7U)
  16713. #define USART_CR1_TXEIE_TXFNFIE_Msk (0x1UL << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  16714. #define USART_CR1_TXEIE_TXFNFIE USART_CR1_TXEIE /*!< TXE and TX FIFO Not Full Interrupt Enable */
  16715. #define USART_CR1_PEIE_Pos (8U)
  16716. #define USART_CR1_PEIE_Msk (0x1UL << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  16717. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  16718. #define USART_CR1_PS_Pos (9U)
  16719. #define USART_CR1_PS_Msk (0x1UL << USART_CR1_PS_Pos) /*!< 0x00000200 */
  16720. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  16721. #define USART_CR1_PCE_Pos (10U)
  16722. #define USART_CR1_PCE_Msk (0x1UL << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  16723. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  16724. #define USART_CR1_WAKE_Pos (11U)
  16725. #define USART_CR1_WAKE_Msk (0x1UL << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  16726. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  16727. #define USART_CR1_M0_Pos (12U)
  16728. #define USART_CR1_M0_Msk (0x1UL << USART_CR1_M0_Pos) /*!< 0x00001000 */
  16729. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length - Bit 0 */
  16730. #define USART_CR1_MME_Pos (13U)
  16731. #define USART_CR1_MME_Msk (0x1UL << USART_CR1_MME_Pos) /*!< 0x00002000 */
  16732. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  16733. #define USART_CR1_CMIE_Pos (14U)
  16734. #define USART_CR1_CMIE_Msk (0x1UL << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  16735. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  16736. #define USART_CR1_OVER8_Pos (15U)
  16737. #define USART_CR1_OVER8_Msk (0x1UL << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  16738. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  16739. #define USART_CR1_DEDT_Pos (16U)
  16740. #define USART_CR1_DEDT_Msk (0x1FUL << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  16741. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  16742. #define USART_CR1_DEDT_0 (0x01UL << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  16743. #define USART_CR1_DEDT_1 (0x02UL << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  16744. #define USART_CR1_DEDT_2 (0x04UL << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  16745. #define USART_CR1_DEDT_3 (0x08UL << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  16746. #define USART_CR1_DEDT_4 (0x10UL << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  16747. #define USART_CR1_DEAT_Pos (21U)
  16748. #define USART_CR1_DEAT_Msk (0x1FUL << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  16749. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  16750. #define USART_CR1_DEAT_0 (0x01UL << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  16751. #define USART_CR1_DEAT_1 (0x02UL << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  16752. #define USART_CR1_DEAT_2 (0x04UL << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  16753. #define USART_CR1_DEAT_3 (0x08UL << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  16754. #define USART_CR1_DEAT_4 (0x10UL << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  16755. #define USART_CR1_RTOIE_Pos (26U)
  16756. #define USART_CR1_RTOIE_Msk (0x1UL << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  16757. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out Interrupt Enable */
  16758. #define USART_CR1_EOBIE_Pos (27U)
  16759. #define USART_CR1_EOBIE_Msk (0x1UL << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  16760. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block Interrupt Enable */
  16761. #define USART_CR1_M1_Pos (28U)
  16762. #define USART_CR1_M1_Msk (0x1UL << USART_CR1_M1_Pos) /*!< 0x10000000 */
  16763. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length - Bit 1 */
  16764. #define USART_CR1_M (uint32_t)(USART_CR1_M1 | USART_CR1_M0) /*!< Word length */
  16765. #define USART_CR1_FIFOEN_Pos (29U)
  16766. #define USART_CR1_FIFOEN_Msk (0x1UL << USART_CR1_FIFOEN_Pos) /*!< 0x20000000 */
  16767. #define USART_CR1_FIFOEN USART_CR1_FIFOEN_Msk /*!< FIFO mode enable */
  16768. #define USART_CR1_TXFEIE_Pos (30U)
  16769. #define USART_CR1_TXFEIE_Msk (0x1UL << USART_CR1_TXFEIE_Pos) /*!< 0x40000000 */
  16770. #define USART_CR1_TXFEIE USART_CR1_TXFEIE_Msk /*!< TX FIFO Empty Interrupt Enable */
  16771. #define USART_CR1_RXFFIE_Pos (31U)
  16772. #define USART_CR1_RXFFIE_Msk (0x1UL << USART_CR1_RXFFIE_Pos) /*!< 0x80000000 */
  16773. #define USART_CR1_RXFFIE USART_CR1_RXFFIE_Msk /*!< RX FIFO Full Interrupt Enable */
  16774. /****************** Bit definition for USART_CR2 register *******************/
  16775. #define USART_CR2_SLVEN_Pos (0U)
  16776. #define USART_CR2_SLVEN_Msk (0x1UL << USART_CR2_SLVEN_Pos) /*!< 0x00000001 */
  16777. #define USART_CR2_SLVEN USART_CR2_SLVEN_Msk /*!< Synchronous Slave mode enable */
  16778. #define USART_CR2_DIS_NSS_Pos (3U)
  16779. #define USART_CR2_DIS_NSS_Msk (0x1UL << USART_CR2_DIS_NSS_Pos) /*!< 0x00000008 */
  16780. #define USART_CR2_DIS_NSS USART_CR2_DIS_NSS_Msk /*!< Slave Select (NSS) pin management */
  16781. #define USART_CR2_ADDM7_Pos (4U)
  16782. #define USART_CR2_ADDM7_Msk (0x1UL << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  16783. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  16784. #define USART_CR2_LBDL_Pos (5U)
  16785. #define USART_CR2_LBDL_Msk (0x1UL << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  16786. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  16787. #define USART_CR2_LBDIE_Pos (6U)
  16788. #define USART_CR2_LBDIE_Msk (0x1UL << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  16789. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  16790. #define USART_CR2_LBCL_Pos (8U)
  16791. #define USART_CR2_LBCL_Msk (0x1UL << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  16792. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  16793. #define USART_CR2_CPHA_Pos (9U)
  16794. #define USART_CR2_CPHA_Msk (0x1UL << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  16795. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  16796. #define USART_CR2_CPOL_Pos (10U)
  16797. #define USART_CR2_CPOL_Msk (0x1UL << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  16798. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  16799. #define USART_CR2_CLKEN_Pos (11U)
  16800. #define USART_CR2_CLKEN_Msk (0x1UL << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  16801. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  16802. #define USART_CR2_STOP_Pos (12U)
  16803. #define USART_CR2_STOP_Msk (0x3UL << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  16804. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  16805. #define USART_CR2_STOP_0 (0x1UL << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  16806. #define USART_CR2_STOP_1 (0x2UL << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  16807. #define USART_CR2_LINEN_Pos (14U)
  16808. #define USART_CR2_LINEN_Msk (0x1UL << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  16809. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  16810. #define USART_CR2_SWAP_Pos (15U)
  16811. #define USART_CR2_SWAP_Msk (0x1UL << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  16812. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  16813. #define USART_CR2_RXINV_Pos (16U)
  16814. #define USART_CR2_RXINV_Msk (0x1UL << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  16815. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  16816. #define USART_CR2_TXINV_Pos (17U)
  16817. #define USART_CR2_TXINV_Msk (0x1UL << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  16818. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  16819. #define USART_CR2_DATAINV_Pos (18U)
  16820. #define USART_CR2_DATAINV_Msk (0x1UL << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  16821. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  16822. #define USART_CR2_MSBFIRST_Pos (19U)
  16823. #define USART_CR2_MSBFIRST_Msk (0x1UL << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  16824. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  16825. #define USART_CR2_ABREN_Pos (20U)
  16826. #define USART_CR2_ABREN_Msk (0x1UL << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  16827. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  16828. #define USART_CR2_ABRMODE_Pos (21U)
  16829. #define USART_CR2_ABRMODE_Msk (0x3UL << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  16830. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  16831. #define USART_CR2_ABRMODE_0 (0x1UL << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  16832. #define USART_CR2_ABRMODE_1 (0x2UL << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  16833. #define USART_CR2_RTOEN_Pos (23U)
  16834. #define USART_CR2_RTOEN_Msk (0x1UL << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  16835. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  16836. #define USART_CR2_ADD_Pos (24U)
  16837. #define USART_CR2_ADD_Msk (0xFFUL << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  16838. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  16839. /****************** Bit definition for USART_CR3 register *******************/
  16840. #define USART_CR3_EIE_Pos (0U)
  16841. #define USART_CR3_EIE_Msk (0x1UL << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  16842. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  16843. #define USART_CR3_IREN_Pos (1U)
  16844. #define USART_CR3_IREN_Msk (0x1UL << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  16845. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  16846. #define USART_CR3_IRLP_Pos (2U)
  16847. #define USART_CR3_IRLP_Msk (0x1UL << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  16848. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  16849. #define USART_CR3_HDSEL_Pos (3U)
  16850. #define USART_CR3_HDSEL_Msk (0x1UL << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  16851. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  16852. #define USART_CR3_NACK_Pos (4U)
  16853. #define USART_CR3_NACK_Msk (0x1UL << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  16854. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  16855. #define USART_CR3_SCEN_Pos (5U)
  16856. #define USART_CR3_SCEN_Msk (0x1UL << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  16857. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  16858. #define USART_CR3_DMAR_Pos (6U)
  16859. #define USART_CR3_DMAR_Msk (0x1UL << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  16860. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  16861. #define USART_CR3_DMAT_Pos (7U)
  16862. #define USART_CR3_DMAT_Msk (0x1UL << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  16863. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  16864. #define USART_CR3_RTSE_Pos (8U)
  16865. #define USART_CR3_RTSE_Msk (0x1UL << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  16866. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  16867. #define USART_CR3_CTSE_Pos (9U)
  16868. #define USART_CR3_CTSE_Msk (0x1UL << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  16869. #define USART_CR3_CTSE USART_CR3_CTSE_Msk
  16870. #define USART_CR3_CTSIE_Pos (10U)
  16871. #define USART_CR3_CTSIE_Msk (0x1UL << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  16872. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  16873. #define USART_CR3_ONEBIT_Pos (11U)
  16874. #define USART_CR3_ONEBIT_Msk (0x1UL << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  16875. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  16876. #define USART_CR3_OVRDIS_Pos (12U)
  16877. #define USART_CR3_OVRDIS_Msk (0x1UL << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  16878. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  16879. #define USART_CR3_DDRE_Pos (13U)
  16880. #define USART_CR3_DDRE_Msk (0x1UL << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  16881. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  16882. #define USART_CR3_DEM_Pos (14U)
  16883. #define USART_CR3_DEM_Msk (0x1UL << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  16884. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  16885. #define USART_CR3_DEP_Pos (15U)
  16886. #define USART_CR3_DEP_Msk (0x1UL << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  16887. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  16888. #define USART_CR3_SCARCNT_Pos (17U)
  16889. #define USART_CR3_SCARCNT_Msk (0x7UL << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  16890. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  16891. #define USART_CR3_SCARCNT_0 (0x1UL << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  16892. #define USART_CR3_SCARCNT_1 (0x2UL << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  16893. #define USART_CR3_SCARCNT_2 (0x4UL << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  16894. #define USART_CR3_WUS_Pos (20U)
  16895. #define USART_CR3_WUS_Msk (0x3UL << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  16896. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  16897. #define USART_CR3_WUS_0 (0x1UL << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  16898. #define USART_CR3_WUS_1 (0x2UL << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  16899. #define USART_CR3_WUFIE_Pos (22U)
  16900. #define USART_CR3_WUFIE_Msk (0x1UL << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  16901. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  16902. #define USART_CR3_TXFTIE_Pos (23U)
  16903. #define USART_CR3_TXFTIE_Msk (0x1UL << USART_CR3_TXFTIE_Pos) /*!< 0x00800000 */
  16904. #define USART_CR3_TXFTIE USART_CR3_TXFTIE_Msk /*!< TX FIFO Threshold Interrupt Enable */
  16905. #define USART_CR3_TCBGTIE_Pos (24U)
  16906. #define USART_CR3_TCBGTIE_Msk (0x1UL << USART_CR3_TCBGTIE_Pos) /*!< 0x01000000 */
  16907. #define USART_CR3_TCBGTIE USART_CR3_TCBGTIE_Msk /*!< Transmission Complete Before Guard Time Interrupt Enable */
  16908. #define USART_CR3_RXFTCFG_Pos (25U)
  16909. #define USART_CR3_RXFTCFG_Msk (0x7UL << USART_CR3_RXFTCFG_Pos) /*!< 0x0E000000 */
  16910. #define USART_CR3_RXFTCFG USART_CR3_RXFTCFG_Msk /*!< RX FIFO Threshold Configuration */
  16911. #define USART_CR3_RXFTCFG_0 (0x1UL << USART_CR3_RXFTCFG_Pos) /*!< 0x02000000 */
  16912. #define USART_CR3_RXFTCFG_1 (0x2UL << USART_CR3_RXFTCFG_Pos) /*!< 0x04000000 */
  16913. #define USART_CR3_RXFTCFG_2 (0x4UL << USART_CR3_RXFTCFG_Pos) /*!< 0x08000000 */
  16914. #define USART_CR3_RXFTIE_Pos (28U)
  16915. #define USART_CR3_RXFTIE_Msk (0x1UL << USART_CR3_RXFTIE_Pos) /*!< 0x10000000 */
  16916. #define USART_CR3_RXFTIE USART_CR3_RXFTIE_Msk /*!< RX FIFO Threshold Interrupt Enable */
  16917. #define USART_CR3_TXFTCFG_Pos (29U)
  16918. #define USART_CR3_TXFTCFG_Msk (0x7UL << USART_CR3_TXFTCFG_Pos) /*!< 0xE0000000 */
  16919. #define USART_CR3_TXFTCFG USART_CR3_TXFTCFG_Msk /*!< TX FIFO Threshold configuration */
  16920. #define USART_CR3_TXFTCFG_0 (0x1UL << USART_CR3_TXFTCFG_Pos) /*!< 0x20000000 */
  16921. #define USART_CR3_TXFTCFG_1 (0x2UL << USART_CR3_TXFTCFG_Pos) /*!< 0x40000000 */
  16922. #define USART_CR3_TXFTCFG_2 (0x4UL << USART_CR3_TXFTCFG_Pos) /*!< 0x80000000 */
  16923. /****************** Bit definition for USART_BRR register *******************/
  16924. #define USART_BRR_LPUART ((uint32_t)0x000FFFFF) /*!< LPUART Baud rate register [19:0] */
  16925. #define USART_BRR_BRR ((uint16_t)0xFFFF) /*!< USART Baud rate register [15:0] */
  16926. /****************** Bit definition for USART_GTPR register ******************/
  16927. #define USART_GTPR_PSC_Pos (0U)
  16928. #define USART_GTPR_PSC_Msk (0xFFUL << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  16929. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  16930. #define USART_GTPR_GT_Pos (8U)
  16931. #define USART_GTPR_GT_Msk (0xFFUL << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  16932. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  16933. /******************* Bit definition for USART_RTOR register *****************/
  16934. #define USART_RTOR_RTO_Pos (0U)
  16935. #define USART_RTOR_RTO_Msk (0xFFFFFFUL << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  16936. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Timeout Value */
  16937. #define USART_RTOR_BLEN_Pos (24U)
  16938. #define USART_RTOR_BLEN_Msk (0xFFUL << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  16939. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  16940. /******************* Bit definition for USART_RQR register ******************/
  16941. #define USART_RQR_ABRRQ_Pos (0U)
  16942. #define USART_RQR_ABRRQ_Msk (0x1UL << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  16943. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  16944. #define USART_RQR_SBKRQ_Pos (1U)
  16945. #define USART_RQR_SBKRQ_Msk (0x1UL << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  16946. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  16947. #define USART_RQR_MMRQ_Pos (2U)
  16948. #define USART_RQR_MMRQ_Msk (0x1UL << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  16949. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  16950. #define USART_RQR_RXFRQ_Pos (3U)
  16951. #define USART_RQR_RXFRQ_Msk (0x1UL << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  16952. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  16953. #define USART_RQR_TXFRQ_Pos (4U)
  16954. #define USART_RQR_TXFRQ_Msk (0x1UL << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  16955. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit Data flush Request */
  16956. /******************* Bit definition for USART_ISR register ******************/
  16957. #define USART_ISR_PE_Pos (0U)
  16958. #define USART_ISR_PE_Msk (0x1UL << USART_ISR_PE_Pos) /*!< 0x00000001 */
  16959. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  16960. #define USART_ISR_FE_Pos (1U)
  16961. #define USART_ISR_FE_Msk (0x1UL << USART_ISR_FE_Pos) /*!< 0x00000002 */
  16962. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  16963. #define USART_ISR_NE_Pos (2U)
  16964. #define USART_ISR_NE_Msk (0x1UL << USART_ISR_NE_Pos) /*!< 0x00000004 */
  16965. #define USART_ISR_NE USART_ISR_NE_Msk /*!< START bit Noise Error detection Flag */
  16966. #define USART_ISR_ORE_Pos (3U)
  16967. #define USART_ISR_ORE_Msk (0x1UL << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  16968. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  16969. #define USART_ISR_IDLE_Pos (4U)
  16970. #define USART_ISR_IDLE_Msk (0x1UL << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  16971. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  16972. #define USART_ISR_RXNE_Pos (5U)
  16973. #define USART_ISR_RXNE_Msk (0x1UL << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  16974. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  16975. #define USART_ISR_RXNE_RXFNE_Pos USART_ISR_RXNE_Pos
  16976. #define USART_ISR_RXNE_RXFNE_Msk USART_ISR_RXNE_Msk /*!< 0x00000020 */
  16977. #define USART_ISR_RXNE_RXFNE USART_ISR_RXNE_Msk /*!< Read Data Register or RX FIFO Not Empty */
  16978. #define USART_ISR_TC_Pos (6U)
  16979. #define USART_ISR_TC_Msk (0x1UL << USART_ISR_TC_Pos) /*!< 0x00000040 */
  16980. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  16981. #define USART_ISR_TXE_Pos (7U)
  16982. #define USART_ISR_TXE_Msk (0x1UL << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  16983. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  16984. #define USART_ISR_TXE_TXFNF_Pos USART_ISR_TXE_Pos
  16985. #define USART_ISR_TXE_TXFNF_Msk USART_ISR_TXE_Msk /*!< 0x00000080 */
  16986. #define USART_ISR_TXE_TXFNF USART_ISR_TXE_Msk /*!< Transmit Data Register Empty or TX FIFO Not Full Flag */
  16987. #define USART_ISR_LBDF_Pos (8U)
  16988. #define USART_ISR_LBDF_Msk (0x1UL << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  16989. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  16990. #define USART_ISR_CTSIF_Pos (9U)
  16991. #define USART_ISR_CTSIF_Msk (0x1UL << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  16992. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt Flag */
  16993. #define USART_ISR_CTS_Pos (10U)
  16994. #define USART_ISR_CTS_Msk (0x1UL << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  16995. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS Flag */
  16996. #define USART_ISR_RTOF_Pos (11U)
  16997. #define USART_ISR_RTOF_Msk (0x1UL << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  16998. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Timeout */
  16999. #define USART_ISR_EOBF_Pos (12U)
  17000. #define USART_ISR_EOBF_Msk (0x1UL << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  17001. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  17002. #define USART_ISR_UDR_Pos (13U)
  17003. #define USART_ISR_UDR_Msk (0x1UL << USART_ISR_UDR_Pos) /*!< 0x00002000 */
  17004. #define USART_ISR_UDR USART_ISR_UDR_Msk /*!< SPI Slave Underrun error Flag */
  17005. #define USART_ISR_ABRE_Pos (14U)
  17006. #define USART_ISR_ABRE_Msk (0x1UL << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  17007. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  17008. #define USART_ISR_ABRF_Pos (15U)
  17009. #define USART_ISR_ABRF_Msk (0x1UL << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  17010. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  17011. #define USART_ISR_BUSY_Pos (16U)
  17012. #define USART_ISR_BUSY_Msk (0x1UL << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  17013. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  17014. #define USART_ISR_CMF_Pos (17U)
  17015. #define USART_ISR_CMF_Msk (0x1UL << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  17016. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  17017. #define USART_ISR_SBKF_Pos (18U)
  17018. #define USART_ISR_SBKF_Msk (0x1UL << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  17019. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  17020. #define USART_ISR_RWU_Pos (19U)
  17021. #define USART_ISR_RWU_Msk (0x1UL << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  17022. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  17023. #define USART_ISR_WUF_Pos (20U)
  17024. #define USART_ISR_WUF_Msk (0x1UL << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  17025. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  17026. #define USART_ISR_TEACK_Pos (21U)
  17027. #define USART_ISR_TEACK_Msk (0x1UL << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  17028. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  17029. #define USART_ISR_REACK_Pos (22U)
  17030. #define USART_ISR_REACK_Msk (0x1UL << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  17031. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  17032. #define USART_ISR_TXFE_Pos (23U)
  17033. #define USART_ISR_TXFE_Msk (0x1UL << USART_ISR_TXFE_Pos) /*!< 0x00800000 */
  17034. #define USART_ISR_TXFE USART_ISR_TXFE_Msk /*!< TX FIFO Empty Flag */
  17035. #define USART_ISR_RXFF_Pos (24U)
  17036. #define USART_ISR_RXFF_Msk (0x1UL << USART_ISR_RXFF_Pos) /*!< 0x01000000 */
  17037. #define USART_ISR_RXFF USART_ISR_RXFF_Msk /*!< RX FIFO Full Flag */
  17038. #define USART_ISR_TCBGT_Pos (25U)
  17039. #define USART_ISR_TCBGT_Msk (0x1UL << USART_ISR_TCBGT_Pos) /*!< 0x02000000 */
  17040. #define USART_ISR_TCBGT USART_ISR_TCBGT_Msk /*!< Transmission Complete Before Guard Time completion */
  17041. #define USART_ISR_RXFT_Pos (26U)
  17042. #define USART_ISR_RXFT_Msk (0x1UL << USART_ISR_RXFT_Pos) /*!< 0x04000000 */
  17043. #define USART_ISR_RXFT USART_ISR_RXFT_Msk /*!< RX FIFO Threshold Flag */
  17044. #define USART_ISR_TXFT_Pos (27U)
  17045. #define USART_ISR_TXFT_Msk (0x1UL << USART_ISR_TXFT_Pos) /*!< 0x08000000 */
  17046. #define USART_ISR_TXFT USART_ISR_TXFT_Msk /*!< TX FIFO Threshold Flag */
  17047. /******************* Bit definition for USART_ICR register ******************/
  17048. #define USART_ICR_PECF_Pos (0U)
  17049. #define USART_ICR_PECF_Msk (0x1UL << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  17050. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  17051. #define USART_ICR_FECF_Pos (1U)
  17052. #define USART_ICR_FECF_Msk (0x1UL << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  17053. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  17054. #define USART_ICR_NECF_Pos (2U)
  17055. #define USART_ICR_NECF_Msk (0x1UL << USART_ICR_NECF_Pos) /*!< 0x00000004 */
  17056. #define USART_ICR_NECF USART_ICR_NECF_Msk /*!< Noise Error detected Clear Flag */
  17057. #define USART_ICR_ORECF_Pos (3U)
  17058. #define USART_ICR_ORECF_Msk (0x1UL << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  17059. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  17060. #define USART_ICR_IDLECF_Pos (4U)
  17061. #define USART_ICR_IDLECF_Msk (0x1UL << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  17062. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  17063. #define USART_ICR_TXFECF_Pos (5U)
  17064. #define USART_ICR_TXFECF_Msk (0x1UL << USART_ICR_TXFECF_Pos) /*!< 0x00000020 */
  17065. #define USART_ICR_TXFECF USART_ICR_TXFECF_Msk /*!< TX FIFO Empty Clear Flag */
  17066. #define USART_ICR_TCCF_Pos (6U)
  17067. #define USART_ICR_TCCF_Msk (0x1UL << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  17068. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  17069. #define USART_ICR_TCBGTCF_Pos (7U)
  17070. #define USART_ICR_TCBGTCF_Msk (0x1UL << USART_ICR_TCBGTCF_Pos) /*!< 0x00000080 */
  17071. #define USART_ICR_TCBGTCF USART_ICR_TCBGTCF_Msk /*!< Transmission Complete Before Guard Time Clear Flag */
  17072. #define USART_ICR_LBDCF_Pos (8U)
  17073. #define USART_ICR_LBDCF_Msk (0x1UL << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  17074. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  17075. #define USART_ICR_CTSCF_Pos (9U)
  17076. #define USART_ICR_CTSCF_Msk (0x1UL << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  17077. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  17078. #define USART_ICR_RTOCF_Pos (11U)
  17079. #define USART_ICR_RTOCF_Msk (0x1UL << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  17080. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  17081. #define USART_ICR_EOBCF_Pos (12U)
  17082. #define USART_ICR_EOBCF_Msk (0x1UL << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  17083. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  17084. #define USART_ICR_UDRCF_Pos (13U)
  17085. #define USART_ICR_UDRCF_Msk (0x1UL << USART_ICR_UDRCF_Pos) /*!< 0x00002000 */
  17086. #define USART_ICR_UDRCF USART_ICR_UDRCF_Msk /*!< SPI Slave Underrun Clear Flag */
  17087. #define USART_ICR_CMCF_Pos (17U)
  17088. #define USART_ICR_CMCF_Msk (0x1UL << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  17089. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  17090. #define USART_ICR_WUCF_Pos (20U)
  17091. #define USART_ICR_WUCF_Msk (0x1UL << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  17092. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  17093. /******************* Bit definition for USART_RDR register ******************/
  17094. #define USART_RDR_RDR_Pos (0U)
  17095. #define USART_RDR_RDR_Msk (0x01FFUL << USART_RDR_RDR_Pos) /*!< 0x000001FF */
  17096. #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */
  17097. /******************* Bit definition for USART_TDR register ******************/
  17098. #define USART_TDR_TDR_Pos (0U)
  17099. #define USART_TDR_TDR_Msk (0x01FFUL << USART_TDR_TDR_Pos) /*!< 0x000001FF */
  17100. #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */
  17101. /******************* Bit definition for USART_PRESC register ******************/
  17102. #define USART_PRESC_PRESCALER_Pos (0U)
  17103. #define USART_PRESC_PRESCALER_Msk (0xFUL << USART_PRESC_PRESCALER_Pos) /*!< 0x0000000F */
  17104. #define USART_PRESC_PRESCALER USART_PRESC_PRESCALER_Msk /*!< PRESCALER[3:0] bits (Clock prescaler) */
  17105. #define USART_PRESC_PRESCALER_0 (0x1UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000001 */
  17106. #define USART_PRESC_PRESCALER_1 (0x2UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000002 */
  17107. #define USART_PRESC_PRESCALER_2 (0x4UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000004 */
  17108. #define USART_PRESC_PRESCALER_3 (0x8UL << USART_PRESC_PRESCALER_Pos) /*!< 0x00000008 */
  17109. /******************************************************************************/
  17110. /* */
  17111. /* USB Device FS Endpoint registers */
  17112. /* */
  17113. /******************************************************************************/
  17114. #define USB_EP0R USB_BASE /*!< endpoint 0 register address */
  17115. #define USB_EP1R (USB_BASE + 0x00000004UL) /*!< endpoint 1 register address */
  17116. #define USB_EP2R (USB_BASE + 0x00000008UL) /*!< endpoint 2 register address */
  17117. #define USB_EP3R (USB_BASE + 0x0000000CUL) /*!< endpoint 3 register address */
  17118. #define USB_EP4R (USB_BASE + 0x00000010UL) /*!< endpoint 4 register address */
  17119. #define USB_EP5R (USB_BASE + 0x00000014UL) /*!< endpoint 5 register address */
  17120. #define USB_EP6R (USB_BASE + 0x00000018UL) /*!< endpoint 6 register address */
  17121. #define USB_EP7R (USB_BASE + 0x0000001CUL) /*!< endpoint 7 register address */
  17122. /* bit positions */
  17123. #define USB_EP_CTR_RX ((uint16_t)0x8000U) /*!< EndPoint Correct TRansfer RX */
  17124. #define USB_EP_DTOG_RX ((uint16_t)0x4000U) /*!< EndPoint Data TOGGLE RX */
  17125. #define USB_EPRX_STAT ((uint16_t)0x3000U) /*!< EndPoint RX STATus bit field */
  17126. #define USB_EP_SETUP ((uint16_t)0x0800U) /*!< EndPoint SETUP */
  17127. #define USB_EP_T_FIELD ((uint16_t)0x0600U) /*!< EndPoint TYPE */
  17128. #define USB_EP_KIND ((uint16_t)0x0100U) /*!< EndPoint KIND */
  17129. #define USB_EP_CTR_TX ((uint16_t)0x0080U) /*!< EndPoint Correct TRansfer TX */
  17130. #define USB_EP_DTOG_TX ((uint16_t)0x0040U) /*!< EndPoint Data TOGGLE TX */
  17131. #define USB_EPTX_STAT ((uint16_t)0x0030U) /*!< EndPoint TX STATus bit field */
  17132. #define USB_EPADDR_FIELD ((uint16_t)0x000FU) /*!< EndPoint ADDRess FIELD */
  17133. /* EndPoint REGister MASK (no toggle fields) */
  17134. #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)
  17135. /*!< EP_TYPE[1:0] EndPoint TYPE */
  17136. #define USB_EP_TYPE_MASK ((uint16_t)0x0600U) /*!< EndPoint TYPE Mask */
  17137. #define USB_EP_BULK ((uint16_t)0x0000U) /*!< EndPoint BULK */
  17138. #define USB_EP_CONTROL ((uint16_t)0x0200U) /*!< EndPoint CONTROL */
  17139. #define USB_EP_ISOCHRONOUS ((uint16_t)0x0400U) /*!< EndPoint ISOCHRONOUS */
  17140. #define USB_EP_INTERRUPT ((uint16_t)0x0600U) /*!< EndPoint INTERRUPT */
  17141. #define USB_EP_T_MASK ((uint16_t) ~USB_EP_T_FIELD & USB_EPREG_MASK)
  17142. #define USB_EPKIND_MASK ((uint16_t)~USB_EP_KIND & USB_EPREG_MASK) /*!< EP_KIND EndPoint KIND */
  17143. /*!< STAT_TX[1:0] STATus for TX transfer */
  17144. #define USB_EP_TX_DIS ((uint16_t)0x0000U) /*!< EndPoint TX DISabled */
  17145. #define USB_EP_TX_STALL ((uint16_t)0x0010U) /*!< EndPoint TX STALLed */
  17146. #define USB_EP_TX_NAK ((uint16_t)0x0020U) /*!< EndPoint TX NAKed */
  17147. #define USB_EP_TX_VALID ((uint16_t)0x0030U) /*!< EndPoint TX VALID */
  17148. #define USB_EPTX_DTOG1 ((uint16_t)0x0010U) /*!< EndPoint TX Data TOGgle bit1 */
  17149. #define USB_EPTX_DTOG2 ((uint16_t)0x0020U) /*!< EndPoint TX Data TOGgle bit2 */
  17150. #define USB_EPTX_DTOGMASK (USB_EPTX_STAT|USB_EPREG_MASK)
  17151. /*!< STAT_RX[1:0] STATus for RX transfer */
  17152. #define USB_EP_RX_DIS ((uint16_t)0x0000U) /*!< EndPoint RX DISabled */
  17153. #define USB_EP_RX_STALL ((uint16_t)0x1000U) /*!< EndPoint RX STALLed */
  17154. #define USB_EP_RX_NAK ((uint16_t)0x2000U) /*!< EndPoint RX NAKed */
  17155. #define USB_EP_RX_VALID ((uint16_t)0x3000U) /*!< EndPoint RX VALID */
  17156. #define USB_EPRX_DTOG1 ((uint16_t)0x1000U) /*!< EndPoint RX Data TOGgle bit1 */
  17157. #define USB_EPRX_DTOG2 ((uint16_t)0x2000U) /*!< EndPoint RX Data TOGgle bit1 */
  17158. #define USB_EPRX_DTOGMASK (USB_EPRX_STAT|USB_EPREG_MASK)
  17159. /******************************************************************************/
  17160. /* */
  17161. /* USB Device FS General registers */
  17162. /* */
  17163. /******************************************************************************/
  17164. #define USB_CNTR (USB_BASE + 0x00000040UL) /*!< Control register */
  17165. #define USB_ISTR (USB_BASE + 0x00000044UL) /*!< Interrupt status register */
  17166. #define USB_FNR (USB_BASE + 0x00000048UL) /*!< Frame number register */
  17167. #define USB_DADDR (USB_BASE + 0x0000004CUL) /*!< Device address register */
  17168. #define USB_BTABLE (USB_BASE + 0x00000050UL) /*!< Buffer Table address register */
  17169. #define USB_LPMCSR (USB_BASE + 0x00000054UL) /*!< LPM Control and Status register */
  17170. #define USB_BCDR (USB_BASE + 0x00000058UL) /*!< Battery Charging detector register*/
  17171. /****************** Bits definition for USB_CNTR register *******************/
  17172. #define USB_CNTR_CTRM ((uint16_t)0x8000U) /*!< Correct TRansfer Mask */
  17173. #define USB_CNTR_PMAOVRM ((uint16_t)0x4000U) /*!< DMA OVeR/underrun Mask */
  17174. #define USB_CNTR_ERRM ((uint16_t)0x2000U) /*!< ERRor Mask */
  17175. #define USB_CNTR_WKUPM ((uint16_t)0x1000U) /*!< WaKe UP Mask */
  17176. #define USB_CNTR_SUSPM ((uint16_t)0x0800U) /*!< SUSPend Mask */
  17177. #define USB_CNTR_RESETM ((uint16_t)0x0400U) /*!< RESET Mask */
  17178. #define USB_CNTR_SOFM ((uint16_t)0x0200U) /*!< Start Of Frame Mask */
  17179. #define USB_CNTR_ESOFM ((uint16_t)0x0100U) /*!< Expected Start Of Frame Mask */
  17180. #define USB_CNTR_L1REQM ((uint16_t)0x0080U) /*!< LPM L1 state request interrupt mask */
  17181. #define USB_CNTR_L1RESUME ((uint16_t)0x0020U) /*!< LPM L1 Resume request */
  17182. #define USB_CNTR_RESUME ((uint16_t)0x0010U) /*!< RESUME request */
  17183. #define USB_CNTR_FSUSP ((uint16_t)0x0008U) /*!< Force SUSPend */
  17184. #define USB_CNTR_LPMODE ((uint16_t)0x0004U) /*!< Low-power MODE */
  17185. #define USB_CNTR_PDWN ((uint16_t)0x0002U) /*!< Power DoWN */
  17186. #define USB_CNTR_FRES ((uint16_t)0x0001U) /*!< Force USB RESet */
  17187. /****************** Bits definition for USB_ISTR register *******************/
  17188. #define USB_ISTR_EP_ID ((uint16_t)0x000FU) /*!< EndPoint IDentifier (read-only bit) */
  17189. #define USB_ISTR_DIR ((uint16_t)0x0010U) /*!< DIRection of transaction (read-only bit) */
  17190. #define USB_ISTR_L1REQ ((uint16_t)0x0080U) /*!< LPM L1 state request */
  17191. #define USB_ISTR_ESOF ((uint16_t)0x0100U) /*!< Expected Start Of Frame (clear-only bit) */
  17192. #define USB_ISTR_SOF ((uint16_t)0x0200U) /*!< Start Of Frame (clear-only bit) */
  17193. #define USB_ISTR_RESET ((uint16_t)0x0400U) /*!< RESET (clear-only bit) */
  17194. #define USB_ISTR_SUSP ((uint16_t)0x0800U) /*!< SUSPend (clear-only bit) */
  17195. #define USB_ISTR_WKUP ((uint16_t)0x1000U) /*!< WaKe UP (clear-only bit) */
  17196. #define USB_ISTR_ERR ((uint16_t)0x2000U) /*!< ERRor (clear-only bit) */
  17197. #define USB_ISTR_PMAOVR ((uint16_t)0x4000U) /*!< DMA OVeR/underrun (clear-only bit) */
  17198. #define USB_ISTR_CTR ((uint16_t)0x8000U) /*!< Correct TRansfer (clear-only bit) */
  17199. #define USB_CLR_L1REQ (~USB_ISTR_L1REQ) /*!< clear LPM L1 bit */
  17200. #define USB_CLR_ESOF (~USB_ISTR_ESOF) /*!< clear Expected Start Of Frame bit */
  17201. #define USB_CLR_SOF (~USB_ISTR_SOF) /*!< clear Start Of Frame bit */
  17202. #define USB_CLR_RESET (~USB_ISTR_RESET) /*!< clear RESET bit */
  17203. #define USB_CLR_SUSP (~USB_ISTR_SUSP) /*!< clear SUSPend bit */
  17204. #define USB_CLR_WKUP (~USB_ISTR_WKUP) /*!< clear WaKe UP bit */
  17205. #define USB_CLR_ERR (~USB_ISTR_ERR) /*!< clear ERRor bit */
  17206. #define USB_CLR_PMAOVR (~USB_ISTR_PMAOVR) /*!< clear DMA OVeR/underrun bit*/
  17207. #define USB_CLR_CTR (~USB_ISTR_CTR) /*!< clear Correct TRansfer bit */
  17208. /****************** Bits definition for USB_FNR register ********************/
  17209. #define USB_FNR_FN ((uint16_t)0x07FFU) /*!< Frame Number */
  17210. #define USB_FNR_LSOF ((uint16_t)0x1800U) /*!< Lost SOF */
  17211. #define USB_FNR_LCK ((uint16_t)0x2000U) /*!< LoCKed */
  17212. #define USB_FNR_RXDM ((uint16_t)0x4000U) /*!< status of D- data line */
  17213. #define USB_FNR_RXDP ((uint16_t)0x8000U) /*!< status of D+ data line */
  17214. /****************** Bits definition for USB_DADDR register ****************/
  17215. #define USB_DADDR_ADD ((uint8_t)0x7FU) /*!< ADD[6:0] bits (Device Address) */
  17216. #define USB_DADDR_ADD0 ((uint8_t)0x01U) /*!< Bit 0 */
  17217. #define USB_DADDR_ADD1 ((uint8_t)0x02U) /*!< Bit 1 */
  17218. #define USB_DADDR_ADD2 ((uint8_t)0x04U) /*!< Bit 2 */
  17219. #define USB_DADDR_ADD3 ((uint8_t)0x08U) /*!< Bit 3 */
  17220. #define USB_DADDR_ADD4 ((uint8_t)0x10U) /*!< Bit 4 */
  17221. #define USB_DADDR_ADD5 ((uint8_t)0x20U) /*!< Bit 5 */
  17222. #define USB_DADDR_ADD6 ((uint8_t)0x40U) /*!< Bit 6 */
  17223. #define USB_DADDR_EF ((uint8_t)0x80U) /*!< Enable Function */
  17224. /****************** Bit definition for USB_BTABLE register ******************/
  17225. #define USB_BTABLE_BTABLE ((uint16_t)0xFFF8U) /*!< Buffer Table */
  17226. /****************** Bits definition for USB_BCDR register *******************/
  17227. #define USB_BCDR_BCDEN ((uint16_t)0x0001U) /*!< Battery charging detector (BCD) enable */
  17228. #define USB_BCDR_DCDEN ((uint16_t)0x0002U) /*!< Data contact detection (DCD) mode enable */
  17229. #define USB_BCDR_PDEN ((uint16_t)0x0004U) /*!< Primary detection (PD) mode enable */
  17230. #define USB_BCDR_SDEN ((uint16_t)0x0008U) /*!< Secondary detection (SD) mode enable */
  17231. #define USB_BCDR_DCDET ((uint16_t)0x0010U) /*!< Data contact detection (DCD) status */
  17232. #define USB_BCDR_PDET ((uint16_t)0x0020U) /*!< Primary detection (PD) status */
  17233. #define USB_BCDR_SDET ((uint16_t)0x0040U) /*!< Secondary detection (SD) status */
  17234. #define USB_BCDR_PS2DET ((uint16_t)0x0080U) /*!< PS2 port or proprietary charger detected */
  17235. #define USB_BCDR_DPPU ((uint16_t)0x8000U) /*!< DP Pull-up Enable */
  17236. /******************* Bit definition for LPMCSR register *********************/
  17237. #define USB_LPMCSR_LMPEN ((uint16_t)0x0001U) /*!< LPM support enable */
  17238. #define USB_LPMCSR_LPMACK ((uint16_t)0x0002U) /*!< LPM Token acknowledge enable*/
  17239. #define USB_LPMCSR_REMWAKE ((uint16_t)0x0008U) /*!< bRemoteWake value received with last ACKed LPM Token */
  17240. #define USB_LPMCSR_BESL ((uint16_t)0x00F0U) /*!< BESL value received with last ACKed LPM Token */
  17241. /*!< Buffer descriptor table */
  17242. /***************** Bit definition for USB_ADDR0_TX register *****************/
  17243. #define USB_ADDR0_TX_ADDR0_TX_Pos (1U)
  17244. #define USB_ADDR0_TX_ADDR0_TX_Msk (0x7FFFUL << USB_ADDR0_TX_ADDR0_TX_Pos) /*!< 0x0000FFFE */
  17245. #define USB_ADDR0_TX_ADDR0_TX USB_ADDR0_TX_ADDR0_TX_Msk /*!< Transmission Buffer Address 0 */
  17246. /***************** Bit definition for USB_ADDR1_TX register *****************/
  17247. #define USB_ADDR1_TX_ADDR1_TX_Pos (1U)
  17248. #define USB_ADDR1_TX_ADDR1_TX_Msk (0x7FFFUL << USB_ADDR1_TX_ADDR1_TX_Pos) /*!< 0x0000FFFE */
  17249. #define USB_ADDR1_TX_ADDR1_TX USB_ADDR1_TX_ADDR1_TX_Msk /*!< Transmission Buffer Address 1 */
  17250. /***************** Bit definition for USB_ADDR2_TX register *****************/
  17251. #define USB_ADDR2_TX_ADDR2_TX_Pos (1U)
  17252. #define USB_ADDR2_TX_ADDR2_TX_Msk (0x7FFFUL << USB_ADDR2_TX_ADDR2_TX_Pos) /*!< 0x0000FFFE */
  17253. #define USB_ADDR2_TX_ADDR2_TX USB_ADDR2_TX_ADDR2_TX_Msk /*!< Transmission Buffer Address 2 */
  17254. /***************** Bit definition for USB_ADDR3_TX register *****************/
  17255. #define USB_ADDR3_TX_ADDR3_TX_Pos (1U)
  17256. #define USB_ADDR3_TX_ADDR3_TX_Msk (0x7FFFUL << USB_ADDR3_TX_ADDR3_TX_Pos) /*!< 0x0000FFFE */
  17257. #define USB_ADDR3_TX_ADDR3_TX USB_ADDR3_TX_ADDR3_TX_Msk /*!< Transmission Buffer Address 3 */
  17258. /***************** Bit definition for USB_ADDR4_TX register *****************/
  17259. #define USB_ADDR4_TX_ADDR4_TX_Pos (1U)
  17260. #define USB_ADDR4_TX_ADDR4_TX_Msk (0x7FFFUL << USB_ADDR4_TX_ADDR4_TX_Pos) /*!< 0x0000FFFE */
  17261. #define USB_ADDR4_TX_ADDR4_TX USB_ADDR4_TX_ADDR4_TX_Msk /*!< Transmission Buffer Address 4 */
  17262. /***************** Bit definition for USB_ADDR5_TX register *****************/
  17263. #define USB_ADDR5_TX_ADDR5_TX_Pos (1U)
  17264. #define USB_ADDR5_TX_ADDR5_TX_Msk (0x7FFFUL << USB_ADDR5_TX_ADDR5_TX_Pos) /*!< 0x0000FFFE */
  17265. #define USB_ADDR5_TX_ADDR5_TX USB_ADDR5_TX_ADDR5_TX_Msk /*!< Transmission Buffer Address 5 */
  17266. /***************** Bit definition for USB_ADDR6_TX register *****************/
  17267. #define USB_ADDR6_TX_ADDR6_TX_Pos (1U)
  17268. #define USB_ADDR6_TX_ADDR6_TX_Msk (0x7FFFUL << USB_ADDR6_TX_ADDR6_TX_Pos) /*!< 0x0000FFFE */
  17269. #define USB_ADDR6_TX_ADDR6_TX USB_ADDR6_TX_ADDR6_TX_Msk /*!< Transmission Buffer Address 6 */
  17270. /***************** Bit definition for USB_ADDR7_TX register *****************/
  17271. #define USB_ADDR7_TX_ADDR7_TX_Pos (1U)
  17272. #define USB_ADDR7_TX_ADDR7_TX_Msk (0x7FFFUL << USB_ADDR7_TX_ADDR7_TX_Pos) /*!< 0x0000FFFE */
  17273. #define USB_ADDR7_TX_ADDR7_TX USB_ADDR7_TX_ADDR7_TX_Msk /*!< Transmission Buffer Address 7 */
  17274. /*----------------------------------------------------------------------------*/
  17275. /***************** Bit definition for USB_COUNT0_TX register ****************/
  17276. #define USB_COUNT0_TX_COUNT0_TX_Pos (0U)
  17277. #define USB_COUNT0_TX_COUNT0_TX_Msk (0x3FFUL << USB_COUNT0_TX_COUNT0_TX_Pos) /*!< 0x000003FF */
  17278. #define USB_COUNT0_TX_COUNT0_TX USB_COUNT0_TX_COUNT0_TX_Msk /*!< Transmission Byte Count 0 */
  17279. /***************** Bit definition for USB_COUNT1_TX register ****************/
  17280. #define USB_COUNT1_TX_COUNT1_TX_Pos (0U)
  17281. #define USB_COUNT1_TX_COUNT1_TX_Msk (0x3FFUL << USB_COUNT1_TX_COUNT1_TX_Pos) /*!< 0x000003FF */
  17282. #define USB_COUNT1_TX_COUNT1_TX USB_COUNT1_TX_COUNT1_TX_Msk /*!< Transmission Byte Count 1 */
  17283. /***************** Bit definition for USB_COUNT2_TX register ****************/
  17284. #define USB_COUNT2_TX_COUNT2_TX_Pos (0U)
  17285. #define USB_COUNT2_TX_COUNT2_TX_Msk (0x3FFUL << USB_COUNT2_TX_COUNT2_TX_Pos) /*!< 0x000003FF */
  17286. #define USB_COUNT2_TX_COUNT2_TX USB_COUNT2_TX_COUNT2_TX_Msk /*!< Transmission Byte Count 2 */
  17287. /***************** Bit definition for USB_COUNT3_TX register ****************/
  17288. #define USB_COUNT3_TX_COUNT3_TX_Pos (0U)
  17289. #define USB_COUNT3_TX_COUNT3_TX_Msk (0x3FFUL << USB_COUNT3_TX_COUNT3_TX_Pos) /*!< 0x000003FF */
  17290. #define USB_COUNT3_TX_COUNT3_TX USB_COUNT3_TX_COUNT3_TX_Msk /*!< Transmission Byte Count 3 */
  17291. /***************** Bit definition for USB_COUNT4_TX register ****************/
  17292. #define USB_COUNT4_TX_COUNT4_TX_Pos (0U)
  17293. #define USB_COUNT4_TX_COUNT4_TX_Msk (0x3FFUL << USB_COUNT4_TX_COUNT4_TX_Pos) /*!< 0x000003FF */
  17294. #define USB_COUNT4_TX_COUNT4_TX USB_COUNT4_TX_COUNT4_TX_Msk /*!< Transmission Byte Count 4 */
  17295. /***************** Bit definition for USB_COUNT5_TX register ****************/
  17296. #define USB_COUNT5_TX_COUNT5_TX_Pos (0U)
  17297. #define USB_COUNT5_TX_COUNT5_TX_Msk (0x3FFUL << USB_COUNT5_TX_COUNT5_TX_Pos) /*!< 0x000003FF */
  17298. #define USB_COUNT5_TX_COUNT5_TX USB_COUNT5_TX_COUNT5_TX_Msk /*!< Transmission Byte Count 5 */
  17299. /***************** Bit definition for USB_COUNT6_TX register ****************/
  17300. #define USB_COUNT6_TX_COUNT6_TX_Pos (0U)
  17301. #define USB_COUNT6_TX_COUNT6_TX_Msk (0x3FFUL << USB_COUNT6_TX_COUNT6_TX_Pos) /*!< 0x000003FF */
  17302. #define USB_COUNT6_TX_COUNT6_TX USB_COUNT6_TX_COUNT6_TX_Msk /*!< Transmission Byte Count 6 */
  17303. /***************** Bit definition for USB_COUNT7_TX register ****************/
  17304. #define USB_COUNT7_TX_COUNT7_TX_Pos (0U)
  17305. #define USB_COUNT7_TX_COUNT7_TX_Msk (0x3FFUL << USB_COUNT7_TX_COUNT7_TX_Pos) /*!< 0x000003FF */
  17306. #define USB_COUNT7_TX_COUNT7_TX USB_COUNT7_TX_COUNT7_TX_Msk /*!< Transmission Byte Count 7 */
  17307. /*----------------------------------------------------------------------------*/
  17308. /**************** Bit definition for USB_COUNT0_TX_0 register ***************/
  17309. #define USB_COUNT0_TX_0_COUNT0_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 0 (low) */
  17310. /**************** Bit definition for USB_COUNT0_TX_1 register ***************/
  17311. #define USB_COUNT0_TX_1_COUNT0_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 0 (high) */
  17312. /**************** Bit definition for USB_COUNT1_TX_0 register ***************/
  17313. #define USB_COUNT1_TX_0_COUNT1_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 1 (low) */
  17314. /**************** Bit definition for USB_COUNT1_TX_1 register ***************/
  17315. #define USB_COUNT1_TX_1_COUNT1_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 1 (high) */
  17316. /**************** Bit definition for USB_COUNT2_TX_0 register ***************/
  17317. #define USB_COUNT2_TX_0_COUNT2_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 2 (low) */
  17318. /**************** Bit definition for USB_COUNT2_TX_1 register ***************/
  17319. #define USB_COUNT2_TX_1_COUNT2_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 2 (high) */
  17320. /**************** Bit definition for USB_COUNT3_TX_0 register ***************/
  17321. #define USB_COUNT3_TX_0_COUNT3_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 3 (low) */
  17322. /**************** Bit definition for USB_COUNT3_TX_1 register ***************/
  17323. #define USB_COUNT3_TX_1_COUNT3_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 3 (high) */
  17324. /**************** Bit definition for USB_COUNT4_TX_0 register ***************/
  17325. #define USB_COUNT4_TX_0_COUNT4_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 4 (low) */
  17326. /**************** Bit definition for USB_COUNT4_TX_1 register ***************/
  17327. #define USB_COUNT4_TX_1_COUNT4_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 4 (high) */
  17328. /**************** Bit definition for USB_COUNT5_TX_0 register ***************/
  17329. #define USB_COUNT5_TX_0_COUNT5_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 5 (low) */
  17330. /**************** Bit definition for USB_COUNT5_TX_1 register ***************/
  17331. #define USB_COUNT5_TX_1_COUNT5_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 5 (high) */
  17332. /**************** Bit definition for USB_COUNT6_TX_0 register ***************/
  17333. #define USB_COUNT6_TX_0_COUNT6_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 6 (low) */
  17334. /**************** Bit definition for USB_COUNT6_TX_1 register ***************/
  17335. #define USB_COUNT6_TX_1_COUNT6_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 6 (high) */
  17336. /**************** Bit definition for USB_COUNT7_TX_0 register ***************/
  17337. #define USB_COUNT7_TX_0_COUNT7_TX_0 (0x000003FFUL) /*!< Transmission Byte Count 7 (low) */
  17338. /**************** Bit definition for USB_COUNT7_TX_1 register ***************/
  17339. #define USB_COUNT7_TX_1_COUNT7_TX_1 (0x03FF0000UL) /*!< Transmission Byte Count 7 (high) */
  17340. /*----------------------------------------------------------------------------*/
  17341. /***************** Bit definition for USB_ADDR0_RX register *****************/
  17342. #define USB_ADDR0_RX_ADDR0_RX_Pos (1U)
  17343. #define USB_ADDR0_RX_ADDR0_RX_Msk (0x7FFFUL << USB_ADDR0_RX_ADDR0_RX_Pos) /*!< 0x0000FFFE */
  17344. #define USB_ADDR0_RX_ADDR0_RX USB_ADDR0_RX_ADDR0_RX_Msk /*!< Reception Buffer Address 0 */
  17345. /***************** Bit definition for USB_ADDR1_RX register *****************/
  17346. #define USB_ADDR1_RX_ADDR1_RX_Pos (1U)
  17347. #define USB_ADDR1_RX_ADDR1_RX_Msk (0x7FFFUL << USB_ADDR1_RX_ADDR1_RX_Pos) /*!< 0x0000FFFE */
  17348. #define USB_ADDR1_RX_ADDR1_RX USB_ADDR1_RX_ADDR1_RX_Msk /*!< Reception Buffer Address 1 */
  17349. /***************** Bit definition for USB_ADDR2_RX register *****************/
  17350. #define USB_ADDR2_RX_ADDR2_RX_Pos (1U)
  17351. #define USB_ADDR2_RX_ADDR2_RX_Msk (0x7FFFUL << USB_ADDR2_RX_ADDR2_RX_Pos) /*!< 0x0000FFFE */
  17352. #define USB_ADDR2_RX_ADDR2_RX USB_ADDR2_RX_ADDR2_RX_Msk /*!< Reception Buffer Address 2 */
  17353. /***************** Bit definition for USB_ADDR3_RX register *****************/
  17354. #define USB_ADDR3_RX_ADDR3_RX_Pos (1U)
  17355. #define USB_ADDR3_RX_ADDR3_RX_Msk (0x7FFFUL << USB_ADDR3_RX_ADDR3_RX_Pos) /*!< 0x0000FFFE */
  17356. #define USB_ADDR3_RX_ADDR3_RX USB_ADDR3_RX_ADDR3_RX_Msk /*!< Reception Buffer Address 3 */
  17357. /***************** Bit definition for USB_ADDR4_RX register *****************/
  17358. #define USB_ADDR4_RX_ADDR4_RX_Pos (1U)
  17359. #define USB_ADDR4_RX_ADDR4_RX_Msk (0x7FFFUL << USB_ADDR4_RX_ADDR4_RX_Pos) /*!< 0x0000FFFE */
  17360. #define USB_ADDR4_RX_ADDR4_RX USB_ADDR4_RX_ADDR4_RX_Msk /*!< Reception Buffer Address 4 */
  17361. /***************** Bit definition for USB_ADDR5_RX register *****************/
  17362. #define USB_ADDR5_RX_ADDR5_RX_Pos (1U)
  17363. #define USB_ADDR5_RX_ADDR5_RX_Msk (0x7FFFUL << USB_ADDR5_RX_ADDR5_RX_Pos) /*!< 0x0000FFFE */
  17364. #define USB_ADDR5_RX_ADDR5_RX USB_ADDR5_RX_ADDR5_RX_Msk /*!< Reception Buffer Address 5 */
  17365. /***************** Bit definition for USB_ADDR6_RX register *****************/
  17366. #define USB_ADDR6_RX_ADDR6_RX_Pos (1U)
  17367. #define USB_ADDR6_RX_ADDR6_RX_Msk (0x7FFFUL << USB_ADDR6_RX_ADDR6_RX_Pos) /*!< 0x0000FFFE */
  17368. #define USB_ADDR6_RX_ADDR6_RX USB_ADDR6_RX_ADDR6_RX_Msk /*!< Reception Buffer Address 6 */
  17369. /***************** Bit definition for USB_ADDR7_RX register *****************/
  17370. #define USB_ADDR7_RX_ADDR7_RX_Pos (1U)
  17371. #define USB_ADDR7_RX_ADDR7_RX_Msk (0x7FFFUL << USB_ADDR7_RX_ADDR7_RX_Pos) /*!< 0x0000FFFE */
  17372. #define USB_ADDR7_RX_ADDR7_RX USB_ADDR7_RX_ADDR7_RX_Msk /*!< Reception Buffer Address 7 */
  17373. /*----------------------------------------------------------------------------*/
  17374. /***************** Bit definition for USB_COUNT0_RX register ****************/
  17375. #define USB_COUNT0_RX_COUNT0_RX_Pos (0U)
  17376. #define USB_COUNT0_RX_COUNT0_RX_Msk (0x3FFUL << USB_COUNT0_RX_COUNT0_RX_Pos) /*!< 0x000003FF */
  17377. #define USB_COUNT0_RX_COUNT0_RX USB_COUNT0_RX_COUNT0_RX_Msk /*!< Reception Byte Count */
  17378. #define USB_COUNT0_RX_NUM_BLOCK_Pos (10U)
  17379. #define USB_COUNT0_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17380. #define USB_COUNT0_RX_NUM_BLOCK USB_COUNT0_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17381. #define USB_COUNT0_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17382. #define USB_COUNT0_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17383. #define USB_COUNT0_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17384. #define USB_COUNT0_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17385. #define USB_COUNT0_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17386. #define USB_COUNT0_RX_BLSIZE_Pos (15U)
  17387. #define USB_COUNT0_RX_BLSIZE_Msk (0x1UL << USB_COUNT0_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17388. #define USB_COUNT0_RX_BLSIZE USB_COUNT0_RX_BLSIZE_Msk /*!< BLock SIZE */
  17389. /***************** Bit definition for USB_COUNT1_RX register ****************/
  17390. #define USB_COUNT1_RX_COUNT1_RX_Pos (0U)
  17391. #define USB_COUNT1_RX_COUNT1_RX_Msk (0x3FFUL << USB_COUNT1_RX_COUNT1_RX_Pos) /*!< 0x000003FF */
  17392. #define USB_COUNT1_RX_COUNT1_RX USB_COUNT1_RX_COUNT1_RX_Msk /*!< Reception Byte Count */
  17393. #define USB_COUNT1_RX_NUM_BLOCK_Pos (10U)
  17394. #define USB_COUNT1_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17395. #define USB_COUNT1_RX_NUM_BLOCK USB_COUNT1_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17396. #define USB_COUNT1_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17397. #define USB_COUNT1_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17398. #define USB_COUNT1_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17399. #define USB_COUNT1_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17400. #define USB_COUNT1_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17401. #define USB_COUNT1_RX_BLSIZE_Pos (15U)
  17402. #define USB_COUNT1_RX_BLSIZE_Msk (0x1UL << USB_COUNT1_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17403. #define USB_COUNT1_RX_BLSIZE USB_COUNT1_RX_BLSIZE_Msk /*!< BLock SIZE */
  17404. /***************** Bit definition for USB_COUNT2_RX register ****************/
  17405. #define USB_COUNT2_RX_COUNT2_RX_Pos (0U)
  17406. #define USB_COUNT2_RX_COUNT2_RX_Msk (0x3FFUL << USB_COUNT2_RX_COUNT2_RX_Pos) /*!< 0x000003FF */
  17407. #define USB_COUNT2_RX_COUNT2_RX USB_COUNT2_RX_COUNT2_RX_Msk /*!< Reception Byte Count */
  17408. #define USB_COUNT2_RX_NUM_BLOCK_Pos (10U)
  17409. #define USB_COUNT2_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17410. #define USB_COUNT2_RX_NUM_BLOCK USB_COUNT2_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17411. #define USB_COUNT2_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17412. #define USB_COUNT2_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17413. #define USB_COUNT2_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17414. #define USB_COUNT2_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17415. #define USB_COUNT2_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17416. #define USB_COUNT2_RX_BLSIZE_Pos (15U)
  17417. #define USB_COUNT2_RX_BLSIZE_Msk (0x1UL << USB_COUNT2_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17418. #define USB_COUNT2_RX_BLSIZE USB_COUNT2_RX_BLSIZE_Msk /*!< BLock SIZE */
  17419. /***************** Bit definition for USB_COUNT3_RX register ****************/
  17420. #define USB_COUNT3_RX_COUNT3_RX_Pos (0U)
  17421. #define USB_COUNT3_RX_COUNT3_RX_Msk (0x3FFUL << USB_COUNT3_RX_COUNT3_RX_Pos) /*!< 0x000003FF */
  17422. #define USB_COUNT3_RX_COUNT3_RX USB_COUNT3_RX_COUNT3_RX_Msk /*!< Reception Byte Count */
  17423. #define USB_COUNT3_RX_NUM_BLOCK_Pos (10U)
  17424. #define USB_COUNT3_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17425. #define USB_COUNT3_RX_NUM_BLOCK USB_COUNT3_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17426. #define USB_COUNT3_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17427. #define USB_COUNT3_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17428. #define USB_COUNT3_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17429. #define USB_COUNT3_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17430. #define USB_COUNT3_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17431. #define USB_COUNT3_RX_BLSIZE_Pos (15U)
  17432. #define USB_COUNT3_RX_BLSIZE_Msk (0x1UL << USB_COUNT3_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17433. #define USB_COUNT3_RX_BLSIZE USB_COUNT3_RX_BLSIZE_Msk /*!< BLock SIZE */
  17434. /***************** Bit definition for USB_COUNT4_RX register ****************/
  17435. #define USB_COUNT4_RX_COUNT4_RX_Pos (0U)
  17436. #define USB_COUNT4_RX_COUNT4_RX_Msk (0x3FFUL << USB_COUNT4_RX_COUNT4_RX_Pos) /*!< 0x000003FF */
  17437. #define USB_COUNT4_RX_COUNT4_RX USB_COUNT4_RX_COUNT4_RX_Msk /*!< Reception Byte Count */
  17438. #define USB_COUNT4_RX_NUM_BLOCK_Pos (10U)
  17439. #define USB_COUNT4_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17440. #define USB_COUNT4_RX_NUM_BLOCK USB_COUNT4_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17441. #define USB_COUNT4_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17442. #define USB_COUNT4_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17443. #define USB_COUNT4_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17444. #define USB_COUNT4_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17445. #define USB_COUNT4_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17446. #define USB_COUNT4_RX_BLSIZE_Pos (15U)
  17447. #define USB_COUNT4_RX_BLSIZE_Msk (0x1UL << USB_COUNT4_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17448. #define USB_COUNT4_RX_BLSIZE USB_COUNT4_RX_BLSIZE_Msk /*!< BLock SIZE */
  17449. /***************** Bit definition for USB_COUNT5_RX register ****************/
  17450. #define USB_COUNT5_RX_COUNT5_RX_Pos (0U)
  17451. #define USB_COUNT5_RX_COUNT5_RX_Msk (0x3FFUL << USB_COUNT5_RX_COUNT5_RX_Pos) /*!< 0x000003FF */
  17452. #define USB_COUNT5_RX_COUNT5_RX USB_COUNT5_RX_COUNT5_RX_Msk /*!< Reception Byte Count */
  17453. #define USB_COUNT5_RX_NUM_BLOCK_Pos (10U)
  17454. #define USB_COUNT5_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17455. #define USB_COUNT5_RX_NUM_BLOCK USB_COUNT5_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17456. #define USB_COUNT5_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17457. #define USB_COUNT5_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17458. #define USB_COUNT5_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17459. #define USB_COUNT5_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17460. #define USB_COUNT5_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17461. #define USB_COUNT5_RX_BLSIZE_Pos (15U)
  17462. #define USB_COUNT5_RX_BLSIZE_Msk (0x1UL << USB_COUNT5_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17463. #define USB_COUNT5_RX_BLSIZE USB_COUNT5_RX_BLSIZE_Msk /*!< BLock SIZE */
  17464. /***************** Bit definition for USB_COUNT6_RX register ****************/
  17465. #define USB_COUNT6_RX_COUNT6_RX_Pos (0U)
  17466. #define USB_COUNT6_RX_COUNT6_RX_Msk (0x3FFUL << USB_COUNT6_RX_COUNT6_RX_Pos) /*!< 0x000003FF */
  17467. #define USB_COUNT6_RX_COUNT6_RX USB_COUNT6_RX_COUNT6_RX_Msk /*!< Reception Byte Count */
  17468. #define USB_COUNT6_RX_NUM_BLOCK_Pos (10U)
  17469. #define USB_COUNT6_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17470. #define USB_COUNT6_RX_NUM_BLOCK USB_COUNT6_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17471. #define USB_COUNT6_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17472. #define USB_COUNT6_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17473. #define USB_COUNT6_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17474. #define USB_COUNT6_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17475. #define USB_COUNT6_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17476. #define USB_COUNT6_RX_BLSIZE_Pos (15U)
  17477. #define USB_COUNT6_RX_BLSIZE_Msk (0x1UL << USB_COUNT6_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17478. #define USB_COUNT6_RX_BLSIZE USB_COUNT6_RX_BLSIZE_Msk /*!< BLock SIZE */
  17479. /***************** Bit definition for USB_COUNT7_RX register ****************/
  17480. #define USB_COUNT7_RX_COUNT7_RX_Pos (0U)
  17481. #define USB_COUNT7_RX_COUNT7_RX_Msk (0x3FFUL << USB_COUNT7_RX_COUNT7_RX_Pos) /*!< 0x000003FF */
  17482. #define USB_COUNT7_RX_COUNT7_RX USB_COUNT7_RX_COUNT7_RX_Msk /*!< Reception Byte Count */
  17483. #define USB_COUNT7_RX_NUM_BLOCK_Pos (10U)
  17484. #define USB_COUNT7_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */
  17485. #define USB_COUNT7_RX_NUM_BLOCK USB_COUNT7_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */
  17486. #define USB_COUNT7_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */
  17487. #define USB_COUNT7_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */
  17488. #define USB_COUNT7_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */
  17489. #define USB_COUNT7_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */
  17490. #define USB_COUNT7_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */
  17491. #define USB_COUNT7_RX_BLSIZE_Pos (15U)
  17492. #define USB_COUNT7_RX_BLSIZE_Msk (0x1UL << USB_COUNT7_RX_BLSIZE_Pos) /*!< 0x00008000 */
  17493. #define USB_COUNT7_RX_BLSIZE USB_COUNT7_RX_BLSIZE_Msk /*!< BLock SIZE */
  17494. /*----------------------------------------------------------------------------*/
  17495. /**************** Bit definition for USB_COUNT0_RX_0 register ***************/
  17496. #define USB_COUNT0_RX_0_COUNT0_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17497. #define USB_COUNT0_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17498. #define USB_COUNT0_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17499. #define USB_COUNT0_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17500. #define USB_COUNT0_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17501. #define USB_COUNT0_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17502. #define USB_COUNT0_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17503. #define USB_COUNT0_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17504. /**************** Bit definition for USB_COUNT0_RX_1 register ***************/
  17505. #define USB_COUNT0_RX_1_COUNT0_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17506. #define USB_COUNT0_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17507. #define USB_COUNT0_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 1 */
  17508. #define USB_COUNT0_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17509. #define USB_COUNT0_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17510. #define USB_COUNT0_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17511. #define USB_COUNT0_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17512. #define USB_COUNT0_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17513. /**************** Bit definition for USB_COUNT1_RX_0 register ***************/
  17514. #define USB_COUNT1_RX_0_COUNT1_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17515. #define USB_COUNT1_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17516. #define USB_COUNT1_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17517. #define USB_COUNT1_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17518. #define USB_COUNT1_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17519. #define USB_COUNT1_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17520. #define USB_COUNT1_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17521. #define USB_COUNT1_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17522. /**************** Bit definition for USB_COUNT1_RX_1 register ***************/
  17523. #define USB_COUNT1_RX_1_COUNT1_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17524. #define USB_COUNT1_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17525. #define USB_COUNT1_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  17526. #define USB_COUNT1_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17527. #define USB_COUNT1_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17528. #define USB_COUNT1_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17529. #define USB_COUNT1_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17530. #define USB_COUNT1_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17531. /**************** Bit definition for USB_COUNT2_RX_0 register ***************/
  17532. #define USB_COUNT2_RX_0_COUNT2_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17533. #define USB_COUNT2_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17534. #define USB_COUNT2_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17535. #define USB_COUNT2_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17536. #define USB_COUNT2_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17537. #define USB_COUNT2_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17538. #define USB_COUNT2_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17539. #define USB_COUNT2_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17540. /**************** Bit definition for USB_COUNT2_RX_1 register ***************/
  17541. #define USB_COUNT2_RX_1_COUNT2_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17542. #define USB_COUNT2_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17543. #define USB_COUNT2_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  17544. #define USB_COUNT2_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17545. #define USB_COUNT2_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17546. #define USB_COUNT2_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17547. #define USB_COUNT2_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17548. #define USB_COUNT2_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17549. /**************** Bit definition for USB_COUNT3_RX_0 register ***************/
  17550. #define USB_COUNT3_RX_0_COUNT3_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17551. #define USB_COUNT3_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17552. #define USB_COUNT3_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17553. #define USB_COUNT3_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17554. #define USB_COUNT3_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17555. #define USB_COUNT3_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17556. #define USB_COUNT3_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17557. #define USB_COUNT3_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17558. /**************** Bit definition for USB_COUNT3_RX_1 register ***************/
  17559. #define USB_COUNT3_RX_1_COUNT3_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17560. #define USB_COUNT3_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17561. #define USB_COUNT3_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  17562. #define USB_COUNT3_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17563. #define USB_COUNT3_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17564. #define USB_COUNT3_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17565. #define USB_COUNT3_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17566. #define USB_COUNT3_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17567. /**************** Bit definition for USB_COUNT4_RX_0 register ***************/
  17568. #define USB_COUNT4_RX_0_COUNT4_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17569. #define USB_COUNT4_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17570. #define USB_COUNT4_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17571. #define USB_COUNT4_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17572. #define USB_COUNT4_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17573. #define USB_COUNT4_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17574. #define USB_COUNT4_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17575. #define USB_COUNT4_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17576. /**************** Bit definition for USB_COUNT4_RX_1 register ***************/
  17577. #define USB_COUNT4_RX_1_COUNT4_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17578. #define USB_COUNT4_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17579. #define USB_COUNT4_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  17580. #define USB_COUNT4_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17581. #define USB_COUNT4_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17582. #define USB_COUNT4_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17583. #define USB_COUNT4_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17584. #define USB_COUNT4_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17585. /**************** Bit definition for USB_COUNT5_RX_0 register ***************/
  17586. #define USB_COUNT5_RX_0_COUNT5_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17587. #define USB_COUNT5_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17588. #define USB_COUNT5_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17589. #define USB_COUNT5_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17590. #define USB_COUNT5_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17591. #define USB_COUNT5_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17592. #define USB_COUNT5_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17593. #define USB_COUNT5_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17594. /**************** Bit definition for USB_COUNT5_RX_1 register ***************/
  17595. #define USB_COUNT5_RX_1_COUNT5_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17596. #define USB_COUNT5_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17597. #define USB_COUNT5_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  17598. #define USB_COUNT5_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17599. #define USB_COUNT5_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17600. #define USB_COUNT5_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17601. #define USB_COUNT5_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17602. #define USB_COUNT5_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17603. /*************** Bit definition for USB_COUNT6_RX_0 register ***************/
  17604. #define USB_COUNT6_RX_0_COUNT6_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17605. #define USB_COUNT6_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17606. #define USB_COUNT6_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17607. #define USB_COUNT6_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17608. #define USB_COUNT6_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17609. #define USB_COUNT6_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17610. #define USB_COUNT6_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17611. #define USB_COUNT6_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17612. /**************** Bit definition for USB_COUNT6_RX_1 register ***************/
  17613. #define USB_COUNT6_RX_1_COUNT6_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17614. #define USB_COUNT6_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17615. #define USB_COUNT6_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  17616. #define USB_COUNT6_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17617. #define USB_COUNT6_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17618. #define USB_COUNT6_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17619. #define USB_COUNT6_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17620. #define USB_COUNT6_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17621. /*************** Bit definition for USB_COUNT7_RX_0 register ****************/
  17622. #define USB_COUNT7_RX_0_COUNT7_RX_0 (0x000003FFUL) /*!< Reception Byte Count (low) */
  17623. #define USB_COUNT7_RX_0_NUM_BLOCK_0 (0x00007C00UL) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */
  17624. #define USB_COUNT7_RX_0_NUM_BLOCK_0_0 (0x00000400UL) /*!< Bit 0 */
  17625. #define USB_COUNT7_RX_0_NUM_BLOCK_0_1 (0x00000800UL) /*!< Bit 1 */
  17626. #define USB_COUNT7_RX_0_NUM_BLOCK_0_2 (0x00001000UL) /*!< Bit 2 */
  17627. #define USB_COUNT7_RX_0_NUM_BLOCK_0_3 (0x00002000UL) /*!< Bit 3 */
  17628. #define USB_COUNT7_RX_0_NUM_BLOCK_0_4 (0x00004000UL) /*!< Bit 4 */
  17629. #define USB_COUNT7_RX_0_BLSIZE_0 (0x00008000UL) /*!< BLock SIZE (low) */
  17630. /*************** Bit definition for USB_COUNT7_RX_1 register ****************/
  17631. #define USB_COUNT7_RX_1_COUNT7_RX_1 (0x03FF0000UL) /*!< Reception Byte Count (high) */
  17632. #define USB_COUNT7_RX_1_NUM_BLOCK_1 (0x7C000000UL) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */
  17633. #define USB_COUNT7_RX_1_NUM_BLOCK_1_0 (0x04000000UL) /*!< Bit 0 */
  17634. #define USB_COUNT7_RX_1_NUM_BLOCK_1_1 (0x08000000UL) /*!< Bit 1 */
  17635. #define USB_COUNT7_RX_1_NUM_BLOCK_1_2 (0x10000000UL) /*!< Bit 2 */
  17636. #define USB_COUNT7_RX_1_NUM_BLOCK_1_3 (0x20000000UL) /*!< Bit 3 */
  17637. #define USB_COUNT7_RX_1_NUM_BLOCK_1_4 (0x40000000UL) /*!< Bit 4 */
  17638. #define USB_COUNT7_RX_1_BLSIZE_1 (0x80000000UL) /*!< BLock SIZE (high) */
  17639. /******************************************************************************/
  17640. /* */
  17641. /* VREFBUF */
  17642. /* */
  17643. /******************************************************************************/
  17644. /******************* Bit definition for VREFBUF_CSR register ****************/
  17645. #define VREFBUF_CSR_ENVR_Pos (0U)
  17646. #define VREFBUF_CSR_ENVR_Msk (0x1UL << VREFBUF_CSR_ENVR_Pos) /*!< 0x00000001 */
  17647. #define VREFBUF_CSR_ENVR VREFBUF_CSR_ENVR_Msk /*!<Voltage reference buffer enable */
  17648. #define VREFBUF_CSR_HIZ_Pos (1U)
  17649. #define VREFBUF_CSR_HIZ_Msk (0x1UL << VREFBUF_CSR_HIZ_Pos) /*!< 0x00000002 */
  17650. #define VREFBUF_CSR_HIZ VREFBUF_CSR_HIZ_Msk /*!<High impedance mode */
  17651. #define VREFBUF_CSR_VRS_Pos (2U)
  17652. #define VREFBUF_CSR_VRS_Msk (0x1UL << VREFBUF_CSR_VRS_Pos) /*!< 0x00000004 */
  17653. #define VREFBUF_CSR_VRS VREFBUF_CSR_VRS_Msk /*!<Voltage reference scale */
  17654. #define VREFBUF_CSR_VRR_Pos (3U)
  17655. #define VREFBUF_CSR_VRR_Msk (0x1UL << VREFBUF_CSR_VRR_Pos) /*!< 0x00000008 */
  17656. #define VREFBUF_CSR_VRR VREFBUF_CSR_VRR_Msk /*!<Voltage reference buffer ready */
  17657. /******************* Bit definition for VREFBUF_CCR register ******************/
  17658. #define VREFBUF_CCR_TRIM_Pos (0U)
  17659. #define VREFBUF_CCR_TRIM_Msk (0x3FUL << VREFBUF_CCR_TRIM_Pos) /*!< 0x0000003F */
  17660. #define VREFBUF_CCR_TRIM VREFBUF_CCR_TRIM_Msk /*!<TRIM[5:0] bits (Trimming code) */
  17661. /******************************************************************************/
  17662. /* */
  17663. /* Window WATCHDOG */
  17664. /* */
  17665. /******************************************************************************/
  17666. /******************* Bit definition for WWDG_CR register ********************/
  17667. #define WWDG_CR_T_Pos (0U)
  17668. #define WWDG_CR_T_Msk (0x7FUL << WWDG_CR_T_Pos) /*!< 0x0000007F */
  17669. #define WWDG_CR_T WWDG_CR_T_Msk /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
  17670. #define WWDG_CR_T_0 (0x01UL << WWDG_CR_T_Pos) /*!< 0x00000001 */
  17671. #define WWDG_CR_T_1 (0x02UL << WWDG_CR_T_Pos) /*!< 0x00000002 */
  17672. #define WWDG_CR_T_2 (0x04UL << WWDG_CR_T_Pos) /*!< 0x00000004 */
  17673. #define WWDG_CR_T_3 (0x08UL << WWDG_CR_T_Pos) /*!< 0x00000008 */
  17674. #define WWDG_CR_T_4 (0x10UL << WWDG_CR_T_Pos) /*!< 0x00000010 */
  17675. #define WWDG_CR_T_5 (0x20UL << WWDG_CR_T_Pos) /*!< 0x00000020 */
  17676. #define WWDG_CR_T_6 (0x40UL << WWDG_CR_T_Pos) /*!< 0x00000040 */
  17677. #define WWDG_CR_WDGA_Pos (7U)
  17678. #define WWDG_CR_WDGA_Msk (0x1UL << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */
  17679. #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!<Activation bit */
  17680. /******************* Bit definition for WWDG_CFR register *******************/
  17681. #define WWDG_CFR_W_Pos (0U)
  17682. #define WWDG_CFR_W_Msk (0x7FUL << WWDG_CFR_W_Pos) /*!< 0x0000007F */
  17683. #define WWDG_CFR_W WWDG_CFR_W_Msk /*!<W[6:0] bits (7-bit window value) */
  17684. #define WWDG_CFR_W_0 (0x01UL << WWDG_CFR_W_Pos) /*!< 0x00000001 */
  17685. #define WWDG_CFR_W_1 (0x02UL << WWDG_CFR_W_Pos) /*!< 0x00000002 */
  17686. #define WWDG_CFR_W_2 (0x04UL << WWDG_CFR_W_Pos) /*!< 0x00000004 */
  17687. #define WWDG_CFR_W_3 (0x08UL << WWDG_CFR_W_Pos) /*!< 0x00000008 */
  17688. #define WWDG_CFR_W_4 (0x10UL << WWDG_CFR_W_Pos) /*!< 0x00000010 */
  17689. #define WWDG_CFR_W_5 (0x20UL << WWDG_CFR_W_Pos) /*!< 0x00000020 */
  17690. #define WWDG_CFR_W_6 (0x40UL << WWDG_CFR_W_Pos) /*!< 0x00000040 */
  17691. #define WWDG_CFR_WDGTB_Pos (11U)
  17692. #define WWDG_CFR_WDGTB_Msk (0x7UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00003800 */
  17693. #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!<WDGTB[2:0] bits (Timer Base) */
  17694. #define WWDG_CFR_WDGTB_0 (0x1UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00000800 */
  17695. #define WWDG_CFR_WDGTB_1 (0x2UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00001000 */
  17696. #define WWDG_CFR_WDGTB_2 (0x4UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00002000 */
  17697. #define WWDG_CFR_EWI_Pos (9U)
  17698. #define WWDG_CFR_EWI_Msk (0x1UL << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */
  17699. #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!<Early Wakeup Interrupt */
  17700. /******************* Bit definition for WWDG_SR register ********************/
  17701. #define WWDG_SR_EWIF_Pos (0U)
  17702. #define WWDG_SR_EWIF_Msk (0x1UL << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */
  17703. #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!<Early Wakeup Interrupt Flag */
  17704. /** @} */ /* End of group STM32L5xx_Peripheral_Declaration */
  17705. /** @addtogroup STM32L5xx_Peripheral_Exported_macros
  17706. * @{
  17707. */
  17708. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  17709. /* Instances allowed from Secure state */
  17710. /******************************* ADC Instances ********************************/
  17711. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1_S) || \
  17712. ((INSTANCE) == ADC2_S))
  17713. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_S)
  17714. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON_S)
  17715. /******************************** FDCAN Instances *****************************/
  17716. #define IS_FDCAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN1_S)
  17717. #define IS_FDCAN_CONFIG_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN_CONFIG_S)
  17718. /******************************** COMP Instances ******************************/
  17719. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1_S) || \
  17720. ((INSTANCE) == COMP2_S))
  17721. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON_S)
  17722. /******************** COMP Instances with window mode capability **************/
  17723. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2_S)
  17724. /******************************* CRC Instances ********************************/
  17725. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC_S)
  17726. /******************************* DAC Instances ********************************/
  17727. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1_S)
  17728. /****************************** DFSDM Instances *******************************/
  17729. #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0_S) || \
  17730. ((INSTANCE) == DFSDM1_Filter1_S) || \
  17731. ((INSTANCE) == DFSDM1_Filter2_S) || \
  17732. ((INSTANCE) == DFSDM1_Filter3_S))
  17733. #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0_S) || \
  17734. ((INSTANCE) == DFSDM1_Channel1_S) || \
  17735. ((INSTANCE) == DFSDM1_Channel2_S) || \
  17736. ((INSTANCE) == DFSDM1_Channel3_S))
  17737. /******************************** DMA Instances *******************************/
  17738. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1_S) || \
  17739. ((INSTANCE) == DMA1_Channel2_S) || \
  17740. ((INSTANCE) == DMA1_Channel3_S) || \
  17741. ((INSTANCE) == DMA1_Channel4_S) || \
  17742. ((INSTANCE) == DMA1_Channel5_S) || \
  17743. ((INSTANCE) == DMA1_Channel6_S) || \
  17744. ((INSTANCE) == DMA1_Channel7_S) || \
  17745. ((INSTANCE) == DMA1_Channel8_S) || \
  17746. ((INSTANCE) == DMA2_Channel1_S) || \
  17747. ((INSTANCE) == DMA2_Channel2_S) || \
  17748. ((INSTANCE) == DMA2_Channel3_S) || \
  17749. ((INSTANCE) == DMA2_Channel4_S) || \
  17750. ((INSTANCE) == DMA2_Channel5_S) || \
  17751. ((INSTANCE) == DMA2_Channel6_S) || \
  17752. ((INSTANCE) == DMA2_Channel7_S) || \
  17753. ((INSTANCE) == DMA2_Channel8_S))
  17754. /******************************* GPIO Instances *******************************/
  17755. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA_S) || \
  17756. ((INSTANCE) == GPIOB_S) || \
  17757. ((INSTANCE) == GPIOC_S) || \
  17758. ((INSTANCE) == GPIOD_S) || \
  17759. ((INSTANCE) == GPIOE_S) || \
  17760. ((INSTANCE) == GPIOF_S) || \
  17761. ((INSTANCE) == GPIOG_S) || \
  17762. ((INSTANCE) == GPIOH_S))
  17763. /******************************* GPIO AF Instances ****************************/
  17764. /* All GPIO Banks support AF */
  17765. #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  17766. /**************************** GPIO Lock Instances *****************************/
  17767. /* All GPIO Banks support the Lock mechanism */
  17768. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  17769. /******************************** I2C Instances *******************************/
  17770. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_S) || \
  17771. ((INSTANCE) == I2C2_S) || \
  17772. ((INSTANCE) == I2C3_S) || \
  17773. ((INSTANCE) == I2C4_S))
  17774. /****************** I2C Instances : wakeup capability from stop modes *********/
  17775. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  17776. /****************************** OPAMP Instances *******************************/
  17777. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1_S) || \
  17778. ((INSTANCE) == OPAMP2_S))
  17779. #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP12_COMMON_S)
  17780. /******************************* OSPI Instances *******************************/
  17781. #define IS_OSPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OCTOSPI1_S)
  17782. /******************************* RNG Instances ********************************/
  17783. #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG_S)
  17784. /****************************** RTC Instances *********************************/
  17785. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC_S)
  17786. /******************************** SAI Instances *******************************/
  17787. #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A_S) || \
  17788. ((INSTANCE) == SAI1_Block_B_S) || \
  17789. ((INSTANCE) == SAI2_Block_A_S) || \
  17790. ((INSTANCE) == SAI2_Block_B_S))
  17791. /****************************** SDMMC Instances *******************************/
  17792. #define IS_SDMMC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SDMMC1_S)
  17793. /****************************** SMBUS Instances *******************************/
  17794. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  17795. /******************************** SPI Instances *******************************/
  17796. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1_S) || \
  17797. ((INSTANCE) == SPI2_S) || \
  17798. ((INSTANCE) == SPI3_S))
  17799. /****************** LPTIM Instances : All supported instances *****************/
  17800. #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1_S) || \
  17801. ((INSTANCE) == LPTIM2_S) || \
  17802. ((INSTANCE) == LPTIM3_S))
  17803. #define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) ((INSTANCE) == LPTIM1_S)
  17804. /****************** TIM Instances : All supported instances *******************/
  17805. #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17806. ((INSTANCE) == TIM2_S) || \
  17807. ((INSTANCE) == TIM3_S) || \
  17808. ((INSTANCE) == TIM4_S) || \
  17809. ((INSTANCE) == TIM5_S) || \
  17810. ((INSTANCE) == TIM6_S) || \
  17811. ((INSTANCE) == TIM7_S) || \
  17812. ((INSTANCE) == TIM8_S) || \
  17813. ((INSTANCE) == TIM15_S) || \
  17814. ((INSTANCE) == TIM16_S) || \
  17815. ((INSTANCE) == TIM17_S))
  17816. /****************** TIM Instances : supporting 32 bits counter ****************/
  17817. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2_S) || \
  17818. ((INSTANCE) == TIM5_S))
  17819. /****************** TIM Instances : supporting the break function *************/
  17820. #define IS_TIM_BREAK_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17821. ((INSTANCE) == TIM8_S) || \
  17822. ((INSTANCE) == TIM15_S) || \
  17823. ((INSTANCE) == TIM16_S) || \
  17824. ((INSTANCE) == TIM17_S))
  17825. /************** TIM Instances : supporting Break source selection *************/
  17826. #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17827. ((INSTANCE) == TIM8_S) || \
  17828. ((INSTANCE) == TIM15_S) || \
  17829. ((INSTANCE) == TIM16_S) || \
  17830. ((INSTANCE) == TIM17_S))
  17831. /****************** TIM Instances : supporting 2 break inputs *****************/
  17832. #define IS_TIM_BKIN2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17833. ((INSTANCE) == TIM8_S))
  17834. /************* TIM Instances : at least 1 capture/compare channel *************/
  17835. #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17836. ((INSTANCE) == TIM2_S) || \
  17837. ((INSTANCE) == TIM3_S) || \
  17838. ((INSTANCE) == TIM4_S) || \
  17839. ((INSTANCE) == TIM5_S) || \
  17840. ((INSTANCE) == TIM8_S) || \
  17841. ((INSTANCE) == TIM15_S) || \
  17842. ((INSTANCE) == TIM16_S) || \
  17843. ((INSTANCE) == TIM17_S))
  17844. /************ TIM Instances : at least 2 capture/compare channels *************/
  17845. #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17846. ((INSTANCE) == TIM2_S) || \
  17847. ((INSTANCE) == TIM3_S) || \
  17848. ((INSTANCE) == TIM4_S) || \
  17849. ((INSTANCE) == TIM5_S) || \
  17850. ((INSTANCE) == TIM8_S) || \
  17851. ((INSTANCE) == TIM15_S))
  17852. /************ TIM Instances : at least 3 capture/compare channels *************/
  17853. #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17854. ((INSTANCE) == TIM2_S) || \
  17855. ((INSTANCE) == TIM3_S) || \
  17856. ((INSTANCE) == TIM4_S) || \
  17857. ((INSTANCE) == TIM5_S) || \
  17858. ((INSTANCE) == TIM8_S))
  17859. /************ TIM Instances : at least 4 capture/compare channels *************/
  17860. #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17861. ((INSTANCE) == TIM2_S) || \
  17862. ((INSTANCE) == TIM3_S) || \
  17863. ((INSTANCE) == TIM4_S) || \
  17864. ((INSTANCE) == TIM5_S) || \
  17865. ((INSTANCE) == TIM8_S))
  17866. /****************** TIM Instances : at least 5 capture/compare channels *******/
  17867. #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17868. ((INSTANCE) == TIM8_S))
  17869. /****************** TIM Instances : at least 6 capture/compare channels *******/
  17870. #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17871. ((INSTANCE) == TIM8_S))
  17872. /************ TIM Instances : DMA requests generation (TIMx_DIER.COMDE) *******/
  17873. #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17874. ((INSTANCE) == TIM8_S) || \
  17875. ((INSTANCE) == TIM15_S) || \
  17876. ((INSTANCE) == TIM16_S) || \
  17877. ((INSTANCE) == TIM17_S))
  17878. /****************** TIM Instances : DMA requests generation (TIMx_DIER.UDE) ***/
  17879. #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17880. ((INSTANCE) == TIM2_S) || \
  17881. ((INSTANCE) == TIM3_S) || \
  17882. ((INSTANCE) == TIM4_S) || \
  17883. ((INSTANCE) == TIM5_S) || \
  17884. ((INSTANCE) == TIM6_S) || \
  17885. ((INSTANCE) == TIM7_S) || \
  17886. ((INSTANCE) == TIM8_S) || \
  17887. ((INSTANCE) == TIM15_S) || \
  17888. ((INSTANCE) == TIM16_S) || \
  17889. ((INSTANCE) == TIM17_S))
  17890. /************ TIM Instances : DMA requests generation (TIMx_DIER.CCxDE) *******/
  17891. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17892. ((INSTANCE) == TIM2_S) || \
  17893. ((INSTANCE) == TIM3_S) || \
  17894. ((INSTANCE) == TIM4_S) || \
  17895. ((INSTANCE) == TIM5_S) || \
  17896. ((INSTANCE) == TIM8_S) || \
  17897. ((INSTANCE) == TIM15_S) || \
  17898. ((INSTANCE) == TIM16_S) || \
  17899. ((INSTANCE) == TIM17_S))
  17900. /******************** TIM Instances : DMA burst feature ***********************/
  17901. #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17902. ((INSTANCE) == TIM2_S) || \
  17903. ((INSTANCE) == TIM3_S) || \
  17904. ((INSTANCE) == TIM4_S) || \
  17905. ((INSTANCE) == TIM5_S) || \
  17906. ((INSTANCE) == TIM8_S) || \
  17907. ((INSTANCE) == TIM15_S) || \
  17908. ((INSTANCE) == TIM16_S) || \
  17909. ((INSTANCE) == TIM17_S))
  17910. /******************* TIM Instances : output(s) available **********************/
  17911. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  17912. ((((INSTANCE) == TIM1_S) && \
  17913. (((CHANNEL) == TIM_CHANNEL_1) || \
  17914. ((CHANNEL) == TIM_CHANNEL_2) || \
  17915. ((CHANNEL) == TIM_CHANNEL_3) || \
  17916. ((CHANNEL) == TIM_CHANNEL_4) || \
  17917. ((CHANNEL) == TIM_CHANNEL_5) || \
  17918. ((CHANNEL) == TIM_CHANNEL_6))) \
  17919. || \
  17920. (((INSTANCE) == TIM2_S) && \
  17921. (((CHANNEL) == TIM_CHANNEL_1) || \
  17922. ((CHANNEL) == TIM_CHANNEL_2) || \
  17923. ((CHANNEL) == TIM_CHANNEL_3) || \
  17924. ((CHANNEL) == TIM_CHANNEL_4))) \
  17925. || \
  17926. (((INSTANCE) == TIM3_S) && \
  17927. (((CHANNEL) == TIM_CHANNEL_1) || \
  17928. ((CHANNEL) == TIM_CHANNEL_2) || \
  17929. ((CHANNEL) == TIM_CHANNEL_3) || \
  17930. ((CHANNEL) == TIM_CHANNEL_4))) \
  17931. || \
  17932. (((INSTANCE) == TIM4_S) && \
  17933. (((CHANNEL) == TIM_CHANNEL_1) || \
  17934. ((CHANNEL) == TIM_CHANNEL_2) || \
  17935. ((CHANNEL) == TIM_CHANNEL_3) || \
  17936. ((CHANNEL) == TIM_CHANNEL_4))) \
  17937. || \
  17938. (((INSTANCE) == TIM5_S) && \
  17939. (((CHANNEL) == TIM_CHANNEL_1) || \
  17940. ((CHANNEL) == TIM_CHANNEL_2) || \
  17941. ((CHANNEL) == TIM_CHANNEL_3) || \
  17942. ((CHANNEL) == TIM_CHANNEL_4))) \
  17943. || \
  17944. (((INSTANCE) == TIM8_S) && \
  17945. (((CHANNEL) == TIM_CHANNEL_1) || \
  17946. ((CHANNEL) == TIM_CHANNEL_2) || \
  17947. ((CHANNEL) == TIM_CHANNEL_3) || \
  17948. ((CHANNEL) == TIM_CHANNEL_4) || \
  17949. ((CHANNEL) == TIM_CHANNEL_5) || \
  17950. ((CHANNEL) == TIM_CHANNEL_6))) \
  17951. || \
  17952. (((INSTANCE) == TIM15_S) && \
  17953. (((CHANNEL) == TIM_CHANNEL_1) || \
  17954. ((CHANNEL) == TIM_CHANNEL_2))) \
  17955. || \
  17956. (((INSTANCE) == TIM16_S) && \
  17957. (((CHANNEL) == TIM_CHANNEL_1))) \
  17958. || \
  17959. (((INSTANCE) == TIM17_S) && \
  17960. (((CHANNEL) == TIM_CHANNEL_1))))
  17961. /****************** TIM Instances : supporting complementary output(s) ********/
  17962. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  17963. ((((INSTANCE) == TIM1_S) && \
  17964. (((CHANNEL) == TIM_CHANNEL_1) || \
  17965. ((CHANNEL) == TIM_CHANNEL_2) || \
  17966. ((CHANNEL) == TIM_CHANNEL_3))) \
  17967. || \
  17968. (((INSTANCE) == TIM8_S) && \
  17969. (((CHANNEL) == TIM_CHANNEL_1) || \
  17970. ((CHANNEL) == TIM_CHANNEL_2) || \
  17971. ((CHANNEL) == TIM_CHANNEL_3))) \
  17972. || \
  17973. (((INSTANCE) == TIM15_S) && \
  17974. ((CHANNEL) == TIM_CHANNEL_1)) \
  17975. || \
  17976. (((INSTANCE) == TIM16_S) && \
  17977. ((CHANNEL) == TIM_CHANNEL_1)) \
  17978. || \
  17979. (((INSTANCE) == TIM17_S) && \
  17980. ((CHANNEL) == TIM_CHANNEL_1)))
  17981. /****************** TIM Instances : supporting clock division *****************/
  17982. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17983. ((INSTANCE) == TIM2_S) || \
  17984. ((INSTANCE) == TIM3_S) || \
  17985. ((INSTANCE) == TIM4_S) || \
  17986. ((INSTANCE) == TIM5_S) || \
  17987. ((INSTANCE) == TIM8_S) || \
  17988. ((INSTANCE) == TIM15_S) || \
  17989. ((INSTANCE) == TIM16_S) || \
  17990. ((INSTANCE) == TIM17_S))
  17991. /****** TIM Instances : supporting external clock mode 1 for ETRF input *******/
  17992. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  17993. ((INSTANCE) == TIM2_S) || \
  17994. ((INSTANCE) == TIM3_S) || \
  17995. ((INSTANCE) == TIM4_S) || \
  17996. ((INSTANCE) == TIM5_S) || \
  17997. ((INSTANCE) == TIM8_S) || \
  17998. ((INSTANCE) == TIM15_S))
  17999. /****** TIM Instances : supporting external clock mode 2 for ETRF input *******/
  18000. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18001. ((INSTANCE) == TIM2_S) || \
  18002. ((INSTANCE) == TIM3_S) || \
  18003. ((INSTANCE) == TIM4_S) || \
  18004. ((INSTANCE) == TIM5_S) || \
  18005. ((INSTANCE) == TIM8_S))
  18006. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  18007. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18008. ((INSTANCE) == TIM2_S) || \
  18009. ((INSTANCE) == TIM3_S) || \
  18010. ((INSTANCE) == TIM4_S) || \
  18011. ((INSTANCE) == TIM5_S) || \
  18012. ((INSTANCE) == TIM8_S) || \
  18013. ((INSTANCE) == TIM15_S))
  18014. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  18015. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18016. ((INSTANCE) == TIM2_S) || \
  18017. ((INSTANCE) == TIM3_S) || \
  18018. ((INSTANCE) == TIM4_S) || \
  18019. ((INSTANCE) == TIM5_S) || \
  18020. ((INSTANCE) == TIM8_S) || \
  18021. ((INSTANCE) == TIM15_S))
  18022. /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
  18023. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18024. ((INSTANCE) == TIM8_S))
  18025. /****************** TIM Instances : supporting commutation event generation ***/
  18026. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18027. ((INSTANCE) == TIM8_S) || \
  18028. ((INSTANCE) == TIM15_S) || \
  18029. ((INSTANCE) == TIM16_S) || \
  18030. ((INSTANCE) == TIM17_S))
  18031. /****************** TIM Instances : supporting counting mode selection ********/
  18032. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18033. ((INSTANCE) == TIM2_S) || \
  18034. ((INSTANCE) == TIM3_S) || \
  18035. ((INSTANCE) == TIM4_S) || \
  18036. ((INSTANCE) == TIM5_S) || \
  18037. ((INSTANCE) == TIM8_S))
  18038. /****************** TIM Instances : supporting encoder interface **************/
  18039. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18040. ((INSTANCE) == TIM2_S) || \
  18041. ((INSTANCE) == TIM3_S) || \
  18042. ((INSTANCE) == TIM4_S) || \
  18043. ((INSTANCE) == TIM5_S) || \
  18044. ((INSTANCE) == TIM8_S))
  18045. /****************** TIM Instances : supporting Hall sensor interface **********/
  18046. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18047. ((INSTANCE) == TIM2_S) || \
  18048. ((INSTANCE) == TIM3_S) || \
  18049. ((INSTANCE) == TIM4_S) || \
  18050. ((INSTANCE) == TIM5_S))
  18051. /**************** TIM Instances : external trigger input available ************/
  18052. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18053. ((INSTANCE) == TIM2_S) || \
  18054. ((INSTANCE) == TIM3_S) || \
  18055. ((INSTANCE) == TIM4_S) || \
  18056. ((INSTANCE) == TIM5_S) || \
  18057. ((INSTANCE) == TIM8_S))
  18058. /************* TIM Instances : supporting ETR source selection ***************/
  18059. #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18060. ((INSTANCE) == TIM2_S) || \
  18061. ((INSTANCE) == TIM3_S) || \
  18062. ((INSTANCE) == TIM8_S))
  18063. /****** TIM Instances : Master mode available (TIMx_CR2.MMS available )********/
  18064. #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18065. ((INSTANCE) == TIM2_S) || \
  18066. ((INSTANCE) == TIM3_S) || \
  18067. ((INSTANCE) == TIM4_S) || \
  18068. ((INSTANCE) == TIM5_S) || \
  18069. ((INSTANCE) == TIM6_S) || \
  18070. ((INSTANCE) == TIM7_S) || \
  18071. ((INSTANCE) == TIM8_S) || \
  18072. ((INSTANCE) == TIM15_S))
  18073. /*********** TIM Instances : Slave mode available (TIMx_SMCR available )*******/
  18074. #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18075. ((INSTANCE) == TIM2_S) || \
  18076. ((INSTANCE) == TIM3_S) || \
  18077. ((INSTANCE) == TIM4_S) || \
  18078. ((INSTANCE) == TIM5_S) || \
  18079. ((INSTANCE) == TIM8_S) || \
  18080. ((INSTANCE) == TIM15_S))
  18081. /****************** TIM Instances : supporting OCxREF clear *******************/
  18082. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18083. ((INSTANCE) == TIM2_S) || \
  18084. ((INSTANCE) == TIM3_S) || \
  18085. ((INSTANCE) == TIM4_S) || \
  18086. ((INSTANCE) == TIM5_S) || \
  18087. ((INSTANCE) == TIM8_S))
  18088. /****************** TIM Instances : remapping capability **********************/
  18089. #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18090. ((INSTANCE) == TIM2_S) || \
  18091. ((INSTANCE) == TIM3_S) || \
  18092. ((INSTANCE) == TIM8_S) || \
  18093. ((INSTANCE) == TIM15_S) || \
  18094. ((INSTANCE) == TIM16_S) || \
  18095. ((INSTANCE) == TIM17_S))
  18096. /****************** TIM Instances : supporting repetition counter *************/
  18097. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18098. ((INSTANCE) == TIM8_S) || \
  18099. ((INSTANCE) == TIM15_S) || \
  18100. ((INSTANCE) == TIM16_S) || \
  18101. ((INSTANCE) == TIM17_S))
  18102. /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
  18103. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18104. ((INSTANCE) == TIM8_S))
  18105. /******************* TIM Instances : Timer input XOR function *****************/
  18106. #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18107. ((INSTANCE) == TIM2_S) || \
  18108. ((INSTANCE) == TIM3_S) || \
  18109. ((INSTANCE) == TIM4_S) || \
  18110. ((INSTANCE) == TIM5_S) || \
  18111. ((INSTANCE) == TIM8_S) || \
  18112. ((INSTANCE) == TIM15_S))
  18113. /****************** TIM Instances : Advanced timer instances *******************/
  18114. #define IS_TIM_ADVANCED_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_S) || \
  18115. ((INSTANCE) == TIM8_S))
  18116. /****************************** TSC Instances *********************************/
  18117. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC_S)
  18118. /******************** USART Instances : Synchronous mode **********************/
  18119. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18120. ((INSTANCE) == USART2_S) || \
  18121. ((INSTANCE) == USART3_S))
  18122. /******************** UART Instances : Asynchronous mode **********************/
  18123. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18124. ((INSTANCE) == USART2_S) || \
  18125. ((INSTANCE) == USART3_S) || \
  18126. ((INSTANCE) == UART4_S) || \
  18127. ((INSTANCE) == UART5_S))
  18128. /*********************** UART Instances : FIFO mode ***************************/
  18129. #define IS_UART_FIFO_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18130. ((INSTANCE) == USART2_S) || \
  18131. ((INSTANCE) == USART3_S) || \
  18132. ((INSTANCE) == UART4_S) || \
  18133. ((INSTANCE) == UART5_S) || \
  18134. ((INSTANCE) == LPUART1_S))
  18135. /*********************** UART Instances : SPI Slave mode **********************/
  18136. #define IS_UART_SPI_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18137. ((INSTANCE) == USART2_S) || \
  18138. ((INSTANCE) == USART3_S))
  18139. /****************** UART Instances : Auto Baud Rate detection ****************/
  18140. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18141. ((INSTANCE) == USART2_S) || \
  18142. ((INSTANCE) == USART3_S) || \
  18143. ((INSTANCE) == UART4_S) || \
  18144. ((INSTANCE) == UART5_S))
  18145. /****************** UART Instances : Driver Enable *****************/
  18146. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18147. ((INSTANCE) == USART2_S) || \
  18148. ((INSTANCE) == USART3_S) || \
  18149. ((INSTANCE) == UART4_S) || \
  18150. ((INSTANCE) == UART5_S) || \
  18151. ((INSTANCE) == LPUART1_S))
  18152. /******************** UART Instances : Half-Duplex mode **********************/
  18153. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18154. ((INSTANCE) == USART2_S) || \
  18155. ((INSTANCE) == USART3_S) || \
  18156. ((INSTANCE) == UART4_S) || \
  18157. ((INSTANCE) == UART5_S) || \
  18158. ((INSTANCE) == LPUART1_S))
  18159. /****************** UART Instances : Hardware Flow control ********************/
  18160. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18161. ((INSTANCE) == USART2_S) || \
  18162. ((INSTANCE) == USART3_S) || \
  18163. ((INSTANCE) == UART4_S) || \
  18164. ((INSTANCE) == UART5_S) || \
  18165. ((INSTANCE) == LPUART1_S))
  18166. /******************** UART Instances : LIN mode **********************/
  18167. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18168. ((INSTANCE) == USART2_S) || \
  18169. ((INSTANCE) == USART3_S) || \
  18170. ((INSTANCE) == UART4_S) || \
  18171. ((INSTANCE) == UART5_S))
  18172. /******************** UART Instances : Wake-up from Stop mode **********************/
  18173. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18174. ((INSTANCE) == USART2_S) || \
  18175. ((INSTANCE) == USART3_S) || \
  18176. ((INSTANCE) == UART4_S) || \
  18177. ((INSTANCE) == UART5_S) || \
  18178. ((INSTANCE) == LPUART1_S))
  18179. /*********************** UART Instances : IRDA mode ***************************/
  18180. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18181. ((INSTANCE) == USART2_S) || \
  18182. ((INSTANCE) == USART3_S) || \
  18183. ((INSTANCE) == UART4_S) || \
  18184. ((INSTANCE) == UART5_S))
  18185. /********************* USART Instances : Smard card mode ***********************/
  18186. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1_S) || \
  18187. ((INSTANCE) == USART2_S) || \
  18188. ((INSTANCE) == USART3_S))
  18189. /******************** LPUART Instance *****************************************/
  18190. #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1_S)
  18191. /****************************** IWDG Instances ********************************/
  18192. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG_S)
  18193. /****************************** WWDG Instances ********************************/
  18194. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG_S)
  18195. /****************************** UCPD Instances ********************************/
  18196. #define IS_UCPD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == UCPD1_S)
  18197. /******************************* USB Instances ********************************/
  18198. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_S)
  18199. #define IS_PCD_ALL_INSTANCE IS_USB_ALL_INSTANCE
  18200. #else
  18201. /* Instances allowed from Non-Secure state - only alias Non-Secure */
  18202. /******************************* ADC Instances ********************************/
  18203. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1_NS) || \
  18204. ((INSTANCE) == ADC2_NS))
  18205. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_NS)
  18206. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON_NS)
  18207. /******************************** FDCAN Instances *****************************/
  18208. #define IS_FDCAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN1_NS)
  18209. #define IS_FDCAN_CONFIG_INSTANCE(INSTANCE) ((INSTANCE) == FDCAN_CONFIG_NS)
  18210. /******************************** COMP Instances ******************************/
  18211. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1_NS) || \
  18212. ((INSTANCE) == COMP2_NS))
  18213. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON_NS)
  18214. /******************** COMP Instances with window mode capability **************/
  18215. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2_NS)
  18216. /******************************* CRC Instances ********************************/
  18217. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC_NS)
  18218. /******************************* DAC Instances ********************************/
  18219. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1_NS)
  18220. /****************************** DFSDM Instances *******************************/
  18221. #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0_NS) || \
  18222. ((INSTANCE) == DFSDM1_Filter1_NS) || \
  18223. ((INSTANCE) == DFSDM1_Filter2_NS) || \
  18224. ((INSTANCE) == DFSDM1_Filter3_NS))
  18225. #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0_NS) || \
  18226. ((INSTANCE) == DFSDM1_Channel1_NS) || \
  18227. ((INSTANCE) == DFSDM1_Channel2_NS) || \
  18228. ((INSTANCE) == DFSDM1_Channel3_NS))
  18229. /******************************** DMA Instances *******************************/
  18230. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1_NS) || \
  18231. ((INSTANCE) == DMA1_Channel2_NS) || \
  18232. ((INSTANCE) == DMA1_Channel3_NS) || \
  18233. ((INSTANCE) == DMA1_Channel4_NS) || \
  18234. ((INSTANCE) == DMA1_Channel5_NS) || \
  18235. ((INSTANCE) == DMA1_Channel6_NS) || \
  18236. ((INSTANCE) == DMA1_Channel7_NS) || \
  18237. ((INSTANCE) == DMA1_Channel8_NS) || \
  18238. ((INSTANCE) == DMA2_Channel1_NS) || \
  18239. ((INSTANCE) == DMA2_Channel2_NS) || \
  18240. ((INSTANCE) == DMA2_Channel3_NS) || \
  18241. ((INSTANCE) == DMA2_Channel4_NS) || \
  18242. ((INSTANCE) == DMA2_Channel5_NS) || \
  18243. ((INSTANCE) == DMA2_Channel6_NS) || \
  18244. ((INSTANCE) == DMA2_Channel7_NS) || \
  18245. ((INSTANCE) == DMA2_Channel8_NS))
  18246. /******************************* GPIO Instances *******************************/
  18247. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA_NS) || \
  18248. ((INSTANCE) == GPIOB_NS) || \
  18249. ((INSTANCE) == GPIOC_NS) || \
  18250. ((INSTANCE) == GPIOD_NS) || \
  18251. ((INSTANCE) == GPIOE_NS) || \
  18252. ((INSTANCE) == GPIOF_NS) || \
  18253. ((INSTANCE) == GPIOG_NS) || \
  18254. ((INSTANCE) == GPIOH_NS))
  18255. /******************************* GPIO AF Instances ****************************/
  18256. /* All GPIO Banks support AF */
  18257. #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  18258. /**************************** GPIO Lock Instances *****************************/
  18259. /* All GPIO Banks support the Lock mechanism */
  18260. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  18261. /******************************** I2C Instances *******************************/
  18262. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_NS) || \
  18263. ((INSTANCE) == I2C2_NS) || \
  18264. ((INSTANCE) == I2C3_NS) || \
  18265. ((INSTANCE) == I2C4_NS))
  18266. /****************** I2C Instances : wakeup capability from stop modes *********/
  18267. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  18268. /****************************** OPAMP Instances *******************************/
  18269. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1_NS) || \
  18270. ((INSTANCE) == OPAMP2_NS))
  18271. #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP12_COMMON_NS)
  18272. /******************************* OSPI Instances *******************************/
  18273. #define IS_OSPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OCTOSPI1_NS)
  18274. /******************************* RNG Instances ********************************/
  18275. #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG_NS)
  18276. /****************************** RTC Instances *********************************/
  18277. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC_NS)
  18278. /******************************** SAI Instances *******************************/
  18279. #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A_NS) || \
  18280. ((INSTANCE) == SAI1_Block_B_NS) || \
  18281. ((INSTANCE) == SAI2_Block_A_NS) || \
  18282. ((INSTANCE) == SAI2_Block_B_NS))
  18283. /****************************** SDMMC Instances *******************************/
  18284. #define IS_SDMMC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SDMMC1_NS)
  18285. /****************************** SMBUS Instances *******************************/
  18286. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  18287. /******************************** SPI Instances *******************************/
  18288. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1_NS) || \
  18289. ((INSTANCE) == SPI2_NS) || \
  18290. ((INSTANCE) == SPI3_NS))
  18291. /****************** LPTIM Instances : All supported instances *****************/
  18292. #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1_NS) || \
  18293. ((INSTANCE) == LPTIM2_NS) || \
  18294. ((INSTANCE) == LPTIM3_NS))
  18295. #define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) ((INSTANCE) == LPTIM1_NS)
  18296. /****************** TIM Instances : All supported instances *******************/
  18297. #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18298. ((INSTANCE) == TIM2_NS) || \
  18299. ((INSTANCE) == TIM3_NS) || \
  18300. ((INSTANCE) == TIM4_NS) || \
  18301. ((INSTANCE) == TIM5_NS) || \
  18302. ((INSTANCE) == TIM6_NS) || \
  18303. ((INSTANCE) == TIM7_NS) || \
  18304. ((INSTANCE) == TIM8_NS) || \
  18305. ((INSTANCE) == TIM15_NS) || \
  18306. ((INSTANCE) == TIM16_NS) || \
  18307. ((INSTANCE) == TIM17_NS))
  18308. /****************** TIM Instances : supporting 32 bits counter ****************/
  18309. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2_NS) || \
  18310. ((INSTANCE) == TIM5_NS))
  18311. /****************** TIM Instances : supporting the break function *************/
  18312. #define IS_TIM_BREAK_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18313. ((INSTANCE) == TIM8_NS) || \
  18314. ((INSTANCE) == TIM15_NS) || \
  18315. ((INSTANCE) == TIM16_NS) || \
  18316. ((INSTANCE) == TIM17_NS))
  18317. /************** TIM Instances : supporting Break source selection *************/
  18318. #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18319. ((INSTANCE) == TIM8_NS) || \
  18320. ((INSTANCE) == TIM15_NS) || \
  18321. ((INSTANCE) == TIM16_NS) || \
  18322. ((INSTANCE) == TIM17_NS))
  18323. /****************** TIM Instances : supporting 2 break inputs *****************/
  18324. #define IS_TIM_BKIN2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18325. ((INSTANCE) == TIM8_NS))
  18326. /************* TIM Instances : at least 1 capture/compare channel *************/
  18327. #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18328. ((INSTANCE) == TIM2_NS) || \
  18329. ((INSTANCE) == TIM3_NS) || \
  18330. ((INSTANCE) == TIM4_NS) || \
  18331. ((INSTANCE) == TIM5_NS) || \
  18332. ((INSTANCE) == TIM8_NS) || \
  18333. ((INSTANCE) == TIM15_NS) || \
  18334. ((INSTANCE) == TIM16_NS) || \
  18335. ((INSTANCE) == TIM17_NS))
  18336. /************ TIM Instances : at least 2 capture/compare channels *************/
  18337. #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18338. ((INSTANCE) == TIM2_NS) || \
  18339. ((INSTANCE) == TIM3_NS) || \
  18340. ((INSTANCE) == TIM4_NS) || \
  18341. ((INSTANCE) == TIM5_NS) || \
  18342. ((INSTANCE) == TIM8_NS) || \
  18343. ((INSTANCE) == TIM15_NS))
  18344. /************ TIM Instances : at least 3 capture/compare channels *************/
  18345. #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18346. ((INSTANCE) == TIM2_NS) || \
  18347. ((INSTANCE) == TIM3_NS) || \
  18348. ((INSTANCE) == TIM4_NS) || \
  18349. ((INSTANCE) == TIM5_NS) || \
  18350. ((INSTANCE) == TIM8_NS))
  18351. /************ TIM Instances : at least 4 capture/compare channels *************/
  18352. #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18353. ((INSTANCE) == TIM2_NS) || \
  18354. ((INSTANCE) == TIM3_NS) || \
  18355. ((INSTANCE) == TIM4_NS) || \
  18356. ((INSTANCE) == TIM5_NS) || \
  18357. ((INSTANCE) == TIM8_NS))
  18358. /****************** TIM Instances : at least 5 capture/compare channels *******/
  18359. #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18360. ((INSTANCE) == TIM8_NS))
  18361. /****************** TIM Instances : at least 6 capture/compare channels *******/
  18362. #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18363. ((INSTANCE) == TIM8_NS))
  18364. /************ TIM Instances : DMA requests generation (TIMx_DIER.COMDE) *******/
  18365. #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18366. ((INSTANCE) == TIM8_NS) || \
  18367. ((INSTANCE) == TIM15_NS) || \
  18368. ((INSTANCE) == TIM16_NS) || \
  18369. ((INSTANCE) == TIM17_NS))
  18370. /****************** TIM Instances : DMA requests generation (TIMx_DIER.UDE) ***/
  18371. #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18372. ((INSTANCE) == TIM2_NS) || \
  18373. ((INSTANCE) == TIM3_NS) || \
  18374. ((INSTANCE) == TIM4_NS) || \
  18375. ((INSTANCE) == TIM5_NS) || \
  18376. ((INSTANCE) == TIM6_NS) || \
  18377. ((INSTANCE) == TIM7_NS) || \
  18378. ((INSTANCE) == TIM8_NS) || \
  18379. ((INSTANCE) == TIM15_NS) || \
  18380. ((INSTANCE) == TIM16_NS) || \
  18381. ((INSTANCE) == TIM17_NS))
  18382. /************ TIM Instances : DMA requests generation (TIMx_DIER.CCxDE) *******/
  18383. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18384. ((INSTANCE) == TIM2_NS) || \
  18385. ((INSTANCE) == TIM3_NS) || \
  18386. ((INSTANCE) == TIM4_NS) || \
  18387. ((INSTANCE) == TIM5_NS) || \
  18388. ((INSTANCE) == TIM8_NS) || \
  18389. ((INSTANCE) == TIM15_NS) || \
  18390. ((INSTANCE) == TIM16_NS) || \
  18391. ((INSTANCE) == TIM17_NS))
  18392. /******************** TIM Instances : DMA burst feature ***********************/
  18393. #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18394. ((INSTANCE) == TIM2_NS) || \
  18395. ((INSTANCE) == TIM3_NS) || \
  18396. ((INSTANCE) == TIM4_NS) || \
  18397. ((INSTANCE) == TIM5_NS) || \
  18398. ((INSTANCE) == TIM8_NS) || \
  18399. ((INSTANCE) == TIM15_NS) || \
  18400. ((INSTANCE) == TIM16_NS) || \
  18401. ((INSTANCE) == TIM17_NS))
  18402. /******************* TIM Instances : output(s) available **********************/
  18403. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  18404. ((((INSTANCE) == TIM1_NS) && \
  18405. (((CHANNEL) == TIM_CHANNEL_1) || \
  18406. ((CHANNEL) == TIM_CHANNEL_2) || \
  18407. ((CHANNEL) == TIM_CHANNEL_3) || \
  18408. ((CHANNEL) == TIM_CHANNEL_4) || \
  18409. ((CHANNEL) == TIM_CHANNEL_5) || \
  18410. ((CHANNEL) == TIM_CHANNEL_6))) \
  18411. || \
  18412. (((INSTANCE) == TIM2_NS) && \
  18413. (((CHANNEL) == TIM_CHANNEL_1) || \
  18414. ((CHANNEL) == TIM_CHANNEL_2) || \
  18415. ((CHANNEL) == TIM_CHANNEL_3) || \
  18416. ((CHANNEL) == TIM_CHANNEL_4))) \
  18417. || \
  18418. (((INSTANCE) == TIM3_NS) && \
  18419. (((CHANNEL) == TIM_CHANNEL_1) || \
  18420. ((CHANNEL) == TIM_CHANNEL_2) || \
  18421. ((CHANNEL) == TIM_CHANNEL_3) || \
  18422. ((CHANNEL) == TIM_CHANNEL_4))) \
  18423. || \
  18424. (((INSTANCE) == TIM4_NS) && \
  18425. (((CHANNEL) == TIM_CHANNEL_1) || \
  18426. ((CHANNEL) == TIM_CHANNEL_2) || \
  18427. ((CHANNEL) == TIM_CHANNEL_3) || \
  18428. ((CHANNEL) == TIM_CHANNEL_4))) \
  18429. || \
  18430. (((INSTANCE) == TIM5_NS) && \
  18431. (((CHANNEL) == TIM_CHANNEL_1) || \
  18432. ((CHANNEL) == TIM_CHANNEL_2) || \
  18433. ((CHANNEL) == TIM_CHANNEL_3) || \
  18434. ((CHANNEL) == TIM_CHANNEL_4))) \
  18435. || \
  18436. (((INSTANCE) == TIM8_NS) && \
  18437. (((CHANNEL) == TIM_CHANNEL_1) || \
  18438. ((CHANNEL) == TIM_CHANNEL_2) || \
  18439. ((CHANNEL) == TIM_CHANNEL_3) || \
  18440. ((CHANNEL) == TIM_CHANNEL_4) || \
  18441. ((CHANNEL) == TIM_CHANNEL_5) || \
  18442. ((CHANNEL) == TIM_CHANNEL_6))) \
  18443. || \
  18444. (((INSTANCE) == TIM15_NS) && \
  18445. (((CHANNEL) == TIM_CHANNEL_1) || \
  18446. ((CHANNEL) == TIM_CHANNEL_2))) \
  18447. || \
  18448. (((INSTANCE) == TIM16_NS) && \
  18449. (((CHANNEL) == TIM_CHANNEL_1))) \
  18450. || \
  18451. (((INSTANCE) == TIM17_NS) && \
  18452. (((CHANNEL) == TIM_CHANNEL_1))))
  18453. /****************** TIM Instances : supporting complementary output(s) ********/
  18454. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  18455. ((((INSTANCE) == TIM1_NS) && \
  18456. (((CHANNEL) == TIM_CHANNEL_1) || \
  18457. ((CHANNEL) == TIM_CHANNEL_2) || \
  18458. ((CHANNEL) == TIM_CHANNEL_3))) \
  18459. || \
  18460. (((INSTANCE) == TIM8_NS) && \
  18461. (((CHANNEL) == TIM_CHANNEL_1) || \
  18462. ((CHANNEL) == TIM_CHANNEL_2) || \
  18463. ((CHANNEL) == TIM_CHANNEL_3))) \
  18464. || \
  18465. (((INSTANCE) == TIM15_NS) && \
  18466. ((CHANNEL) == TIM_CHANNEL_1)) \
  18467. || \
  18468. (((INSTANCE) == TIM16_NS) && \
  18469. ((CHANNEL) == TIM_CHANNEL_1)) \
  18470. || \
  18471. (((INSTANCE) == TIM17_NS) && \
  18472. ((CHANNEL) == TIM_CHANNEL_1)))
  18473. /****************** TIM Instances : supporting clock division *****************/
  18474. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18475. ((INSTANCE) == TIM2_NS) || \
  18476. ((INSTANCE) == TIM3_NS) || \
  18477. ((INSTANCE) == TIM4_NS) || \
  18478. ((INSTANCE) == TIM5_NS) || \
  18479. ((INSTANCE) == TIM8_NS) || \
  18480. ((INSTANCE) == TIM15_NS) || \
  18481. ((INSTANCE) == TIM16_NS) || \
  18482. ((INSTANCE) == TIM17_NS))
  18483. /****** TIM Instances : supporting external clock mode 1 for ETRF input *******/
  18484. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18485. ((INSTANCE) == TIM2_NS) || \
  18486. ((INSTANCE) == TIM3_NS) || \
  18487. ((INSTANCE) == TIM4_NS) || \
  18488. ((INSTANCE) == TIM5_NS) || \
  18489. ((INSTANCE) == TIM8_NS) || \
  18490. ((INSTANCE) == TIM15_NS))
  18491. /****** TIM Instances : supporting external clock mode 2 for ETRF input *******/
  18492. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18493. ((INSTANCE) == TIM2_NS) || \
  18494. ((INSTANCE) == TIM3_NS) || \
  18495. ((INSTANCE) == TIM4_NS) || \
  18496. ((INSTANCE) == TIM5_NS) || \
  18497. ((INSTANCE) == TIM8_NS))
  18498. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  18499. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18500. ((INSTANCE) == TIM2_NS) || \
  18501. ((INSTANCE) == TIM3_NS) || \
  18502. ((INSTANCE) == TIM4_NS) || \
  18503. ((INSTANCE) == TIM5_NS) || \
  18504. ((INSTANCE) == TIM8_NS) || \
  18505. ((INSTANCE) == TIM15_NS))
  18506. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  18507. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18508. ((INSTANCE) == TIM2_NS) || \
  18509. ((INSTANCE) == TIM3_NS) || \
  18510. ((INSTANCE) == TIM4_NS) || \
  18511. ((INSTANCE) == TIM5_NS) || \
  18512. ((INSTANCE) == TIM8_NS) || \
  18513. ((INSTANCE) == TIM15_NS))
  18514. /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
  18515. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18516. ((INSTANCE) == TIM8_NS))
  18517. /****************** TIM Instances : supporting commutation event generation ***/
  18518. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18519. ((INSTANCE) == TIM8_NS) || \
  18520. ((INSTANCE) == TIM15_NS) || \
  18521. ((INSTANCE) == TIM16_NS) || \
  18522. ((INSTANCE) == TIM17_NS))
  18523. /****************** TIM Instances : supporting counting mode selection ********/
  18524. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18525. ((INSTANCE) == TIM2_NS) || \
  18526. ((INSTANCE) == TIM3_NS) || \
  18527. ((INSTANCE) == TIM4_NS) || \
  18528. ((INSTANCE) == TIM5_NS) || \
  18529. ((INSTANCE) == TIM8_NS))
  18530. /****************** TIM Instances : supporting encoder interface **************/
  18531. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18532. ((INSTANCE) == TIM2_NS) || \
  18533. ((INSTANCE) == TIM3_NS) || \
  18534. ((INSTANCE) == TIM4_NS) || \
  18535. ((INSTANCE) == TIM5_NS) || \
  18536. ((INSTANCE) == TIM8_NS))
  18537. /****************** TIM Instances : supporting Hall sensor interface **********/
  18538. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18539. ((INSTANCE) == TIM2_NS) || \
  18540. ((INSTANCE) == TIM3_NS) || \
  18541. ((INSTANCE) == TIM4_NS) || \
  18542. ((INSTANCE) == TIM5_NS))
  18543. /**************** TIM Instances : external trigger input available ************/
  18544. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18545. ((INSTANCE) == TIM2_NS) || \
  18546. ((INSTANCE) == TIM3_NS) || \
  18547. ((INSTANCE) == TIM4_NS) || \
  18548. ((INSTANCE) == TIM5_NS) || \
  18549. ((INSTANCE) == TIM8_NS))
  18550. /************* TIM Instances : supporting ETR source selection ***************/
  18551. #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18552. ((INSTANCE) == TIM2_NS) || \
  18553. ((INSTANCE) == TIM3_NS) || \
  18554. ((INSTANCE) == TIM8_NS))
  18555. /****** TIM Instances : Master mode available (TIMx_CR2.MMS available )********/
  18556. #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18557. ((INSTANCE) == TIM2_NS) || \
  18558. ((INSTANCE) == TIM3_NS) || \
  18559. ((INSTANCE) == TIM4_NS) || \
  18560. ((INSTANCE) == TIM5_NS) || \
  18561. ((INSTANCE) == TIM6_NS) || \
  18562. ((INSTANCE) == TIM7_NS) || \
  18563. ((INSTANCE) == TIM8_NS) || \
  18564. ((INSTANCE) == TIM15_NS))
  18565. /*********** TIM Instances : Slave mode available (TIMx_SMCR available )*******/
  18566. #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18567. ((INSTANCE) == TIM2_NS) || \
  18568. ((INSTANCE) == TIM3_NS) || \
  18569. ((INSTANCE) == TIM4_NS) || \
  18570. ((INSTANCE) == TIM5_NS) || \
  18571. ((INSTANCE) == TIM8_NS) || \
  18572. ((INSTANCE) == TIM15_NS))
  18573. /****************** TIM Instances : supporting OCxREF clear *******************/
  18574. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18575. ((INSTANCE) == TIM2_NS) || \
  18576. ((INSTANCE) == TIM3_NS) || \
  18577. ((INSTANCE) == TIM4_NS) || \
  18578. ((INSTANCE) == TIM5_NS) || \
  18579. ((INSTANCE) == TIM8_NS))
  18580. /****************** TIM Instances : remapping capability **********************/
  18581. #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18582. ((INSTANCE) == TIM2_NS) || \
  18583. ((INSTANCE) == TIM3_NS) || \
  18584. ((INSTANCE) == TIM8_NS) || \
  18585. ((INSTANCE) == TIM15_NS) || \
  18586. ((INSTANCE) == TIM16_NS) || \
  18587. ((INSTANCE) == TIM17_NS))
  18588. /****************** TIM Instances : supporting repetition counter *************/
  18589. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18590. ((INSTANCE) == TIM8_NS) || \
  18591. ((INSTANCE) == TIM15_NS) || \
  18592. ((INSTANCE) == TIM16_NS) || \
  18593. ((INSTANCE) == TIM17_NS))
  18594. /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
  18595. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18596. ((INSTANCE) == TIM8_NS))
  18597. /******************* TIM Instances : Timer input XOR function *****************/
  18598. #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18599. ((INSTANCE) == TIM2_NS) || \
  18600. ((INSTANCE) == TIM3_NS) || \
  18601. ((INSTANCE) == TIM4_NS) || \
  18602. ((INSTANCE) == TIM5_NS) || \
  18603. ((INSTANCE) == TIM8_NS) || \
  18604. ((INSTANCE) == TIM15_NS))
  18605. /****************** TIM Instances : Advanced timer instances *******************/
  18606. #define IS_TIM_ADVANCED_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS) || \
  18607. ((INSTANCE) == TIM8_NS))
  18608. /****************************** TSC Instances *********************************/
  18609. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC_NS)
  18610. /******************** USART Instances : Synchronous mode **********************/
  18611. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18612. ((INSTANCE) == USART2_NS) || \
  18613. ((INSTANCE) == USART3_NS))
  18614. /******************** UART Instances : Asynchronous mode **********************/
  18615. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18616. ((INSTANCE) == USART2_NS) || \
  18617. ((INSTANCE) == USART3_NS) || \
  18618. ((INSTANCE) == UART4_NS) || \
  18619. ((INSTANCE) == UART5_NS))
  18620. /*********************** UART Instances : FIFO mode ***************************/
  18621. #define IS_UART_FIFO_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18622. ((INSTANCE) == USART2_NS) || \
  18623. ((INSTANCE) == USART3_NS) || \
  18624. ((INSTANCE) == UART4_NS) || \
  18625. ((INSTANCE) == UART5_NS) || \
  18626. ((INSTANCE) == LPUART1_NS))
  18627. /*********************** UART Instances : SPI Slave mode **********************/
  18628. #define IS_UART_SPI_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18629. ((INSTANCE) == USART2_NS) || \
  18630. ((INSTANCE) == USART3_NS))
  18631. /****************** UART Instances : Auto Baud Rate detection ****************/
  18632. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18633. ((INSTANCE) == USART2_NS) || \
  18634. ((INSTANCE) == USART3_NS) || \
  18635. ((INSTANCE) == UART4_NS) || \
  18636. ((INSTANCE) == UART5_NS))
  18637. /****************** UART Instances : Driver Enable *****************/
  18638. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18639. ((INSTANCE) == USART2_NS) || \
  18640. ((INSTANCE) == USART3_NS) || \
  18641. ((INSTANCE) == UART4_NS) || \
  18642. ((INSTANCE) == UART5_NS) || \
  18643. ((INSTANCE) == LPUART1_NS))
  18644. /******************** UART Instances : Half-Duplex mode **********************/
  18645. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18646. ((INSTANCE) == USART2_NS) || \
  18647. ((INSTANCE) == USART3_NS) || \
  18648. ((INSTANCE) == UART4_NS) || \
  18649. ((INSTANCE) == UART5_NS) || \
  18650. ((INSTANCE) == LPUART1_NS))
  18651. /****************** UART Instances : Hardware Flow control ********************/
  18652. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18653. ((INSTANCE) == USART2_NS) || \
  18654. ((INSTANCE) == USART3_NS) || \
  18655. ((INSTANCE) == UART4_NS) || \
  18656. ((INSTANCE) == UART5_NS) || \
  18657. ((INSTANCE) == LPUART1_NS))
  18658. /******************** UART Instances : LIN mode **********************/
  18659. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18660. ((INSTANCE) == USART2_NS) || \
  18661. ((INSTANCE) == USART3_NS) || \
  18662. ((INSTANCE) == UART4_NS) || \
  18663. ((INSTANCE) == UART5_NS))
  18664. /******************** UART Instances : Wake-up from Stop mode **********************/
  18665. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18666. ((INSTANCE) == USART2_NS) || \
  18667. ((INSTANCE) == USART3_NS) || \
  18668. ((INSTANCE) == UART4_NS) || \
  18669. ((INSTANCE) == UART5_NS) || \
  18670. ((INSTANCE) == LPUART1_NS))
  18671. /*********************** UART Instances : IRDA mode ***************************/
  18672. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18673. ((INSTANCE) == USART2_NS) || \
  18674. ((INSTANCE) == USART3_NS) || \
  18675. ((INSTANCE) == UART4_NS) || \
  18676. ((INSTANCE) == UART5_NS))
  18677. /********************* USART Instances : Smard card mode ***********************/
  18678. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || \
  18679. ((INSTANCE) == USART2_NS) || \
  18680. ((INSTANCE) == USART3_NS))
  18681. /******************** LPUART Instance *****************************************/
  18682. #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1_NS)
  18683. /****************************** IWDG Instances ********************************/
  18684. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG_NS)
  18685. /****************************** WWDG Instances ********************************/
  18686. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG_NS)
  18687. /****************************** UCPD Instances ********************************/
  18688. #define IS_UCPD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == UCPD1_NS)
  18689. /******************************* USB Instances ********************************/
  18690. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_NS)
  18691. #define IS_PCD_ALL_INSTANCE IS_USB_ALL_INSTANCE
  18692. #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */
  18693. /** @} */ /* End of group STM32L5xx_Peripheral_Exported_macros */
  18694. /** @} */ /* End of group STM32L552xx */
  18695. /** @} */ /* End of group ST */
  18696. #ifdef __cplusplus
  18697. }
  18698. #endif
  18699. #endif /* STM32L552xx_H */
  18700. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/