stm32f378xx.h 964 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781
  1. /**
  2. ******************************************************************************
  3. * @file stm32f378xx.h
  4. * @author MCD Application Team
  5. * @version V2.3.1
  6. * @date 16-December-2016
  7. * @brief CMSIS STM32F378xx Devices Peripheral Access Layer Header File.
  8. *
  9. * This file contains:
  10. * - Data structures and the address mapping for all peripherals
  11. * - Peripheral's registers declarations and bits definition
  12. * - Macros to access peripheral’s registers hardware
  13. *
  14. ******************************************************************************
  15. * @attention
  16. *
  17. * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
  18. *
  19. * Redistribution and use in source and binary forms, with or without modification,
  20. * are permitted provided that the following conditions are met:
  21. * 1. Redistributions of source code must retain the above copyright notice,
  22. * this list of conditions and the following disclaimer.
  23. * 2. Redistributions in binary form must reproduce the above copyright notice,
  24. * this list of conditions and the following disclaimer in the documentation
  25. * and/or other materials provided with the distribution.
  26. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  27. * may be used to endorse or promote products derived from this software
  28. * without specific prior written permission.
  29. *
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  31. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  32. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  33. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  34. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  36. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  37. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  38. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  39. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. *
  41. ******************************************************************************
  42. */
  43. /** @addtogroup CMSIS_Device
  44. * @{
  45. */
  46. /** @addtogroup stm32f378xx
  47. * @{
  48. */
  49. #ifndef __STM32F378xx_H
  50. #define __STM32F378xx_H
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif /* __cplusplus */
  54. /** @addtogroup Configuration_section_for_CMSIS
  55. * @{
  56. */
  57. /**
  58. * @brief Configuration of the Cortex-M4 Processor and Core Peripherals
  59. */
  60. #define __CM4_REV 0x0001U /*!< Core revision r0p1 */
  61. #define __MPU_PRESENT 1U /*!< STM32F378xx devices provide an MPU */
  62. #define __NVIC_PRIO_BITS 4U /*!< STM32F378xx devices use 4 Bits for the Priority Levels */
  63. #define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
  64. #define __FPU_PRESENT 1U /*!< STM32F378xx devices provide an FPU */
  65. /**
  66. * @}
  67. */
  68. /** @addtogroup Peripheral_interrupt_number_definition
  69. * @{
  70. */
  71. /**
  72. * @brief STM32F378xx devices Interrupt Number Definition, according to the selected device
  73. * in @ref Library_configuration_section
  74. */
  75. typedef enum
  76. {
  77. /****** Cortex-M4 Processor Exceptions Numbers ****************************************************************/
  78. NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
  79. HardFault_IRQn = -13, /*!< 3 Cortex-M4 Hard Fault Interrupt */
  80. MemoryManagement_IRQn = -12, /*!< 4 Cortex-M4 Memory Management Interrupt */
  81. BusFault_IRQn = -11, /*!< 5 Cortex-M4 Bus Fault Interrupt */
  82. UsageFault_IRQn = -10, /*!< 6 Cortex-M4 Usage Fault Interrupt */
  83. SVCall_IRQn = -5, /*!< 11 Cortex-M4 SV Call Interrupt */
  84. DebugMonitor_IRQn = -4, /*!< 12 Cortex-M4 Debug Monitor Interrupt */
  85. PendSV_IRQn = -2, /*!< 14 Cortex-M4 Pend SV Interrupt */
  86. SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */
  87. /****** STM32 specific Interrupt Numbers **********************************************************************/
  88. WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
  89. TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line 19 */
  90. RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line 20 */
  91. FLASH_IRQn = 4, /*!< FLASH global Interrupt */
  92. RCC_IRQn = 5, /*!< RCC global Interrupt */
  93. EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
  94. EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
  95. EXTI2_TSC_IRQn = 8, /*!< EXTI Line2 Interrupt and Touch Sense Controller Interrupt */
  96. EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
  97. EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
  98. DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 Interrupt */
  99. DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 Interrupt */
  100. DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 Interrupt */
  101. DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 Interrupt */
  102. DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 Interrupt */
  103. DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 Interrupt */
  104. DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 Interrupt */
  105. ADC1_IRQn = 18, /*!< ADC1 Interrupts */
  106. CAN_TX_IRQn = 19, /*!< CAN TX Interrupt */
  107. CAN_RX0_IRQn = 20, /*!< CAN RX0 Interrupt */
  108. CAN_RX1_IRQn = 21, /*!< CAN RX1 Interrupt */
  109. CAN_SCE_IRQn = 22, /*!< CAN SCE Interrupt */
  110. EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */
  111. TIM15_IRQn = 24, /*!< TIM15 global Interrupt */
  112. TIM16_IRQn = 25, /*!< TIM16 global Interrupt */
  113. TIM17_IRQn = 26, /*!< TIM17 global Interrupt */
  114. TIM18_DAC2_IRQn = 27, /*!< TIM18 global Interrupt and DAC2 underrun Interrupt */
  115. TIM2_IRQn = 28, /*!< TIM2 global Interrupt */
  116. TIM3_IRQn = 29, /*!< TIM3 global Interrupt */
  117. TIM4_IRQn = 30, /*!< TIM4 global Interrupt */
  118. I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt & EXTI Line23 Interrupt (I2C1 wakeup) */
  119. I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */
  120. I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt & EXTI Line24 Interrupt (I2C2 wakeup) */
  121. I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */
  122. SPI1_IRQn = 35, /*!< SPI1 global Interrupt */
  123. SPI2_IRQn = 36, /*!< SPI2 global Interrupt */
  124. USART1_IRQn = 37, /*!< USART1 global Interrupt & EXTI Line25 Interrupt (USART1 wakeup) */
  125. USART2_IRQn = 38, /*!< USART2 global Interrupt & EXTI Line26 Interrupt (USART2 wakeup) */
  126. USART3_IRQn = 39, /*!< USART3 global Interrupt & EXTI Line28 Interrupt (USART3 wakeup) */
  127. EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */
  128. RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line 17 Interrupt */
  129. CEC_IRQn = 42, /*!< CEC Interrupt & EXTI Line27 Interrupt (CEC wakeup) */
  130. TIM12_IRQn = 43, /*!< TIM12 global interrupt */
  131. TIM13_IRQn = 44, /*!< TIM13 global interrupt */
  132. TIM14_IRQn = 45, /*!< TIM14 global interrupt */
  133. TIM5_IRQn = 50, /*!< TIM5 global Interrupt */
  134. SPI3_IRQn = 51, /*!< SPI3 global Interrupt */
  135. TIM6_DAC1_IRQn = 54, /*!< TIM6 global and DAC1 underrun error Interrupts*/
  136. TIM7_IRQn = 55, /*!< TIM7 global Interrupt */
  137. DMA2_Channel1_IRQn = 56, /*!< DMA2 Channel 1 global Interrupt */
  138. DMA2_Channel2_IRQn = 57, /*!< DMA2 Channel 2 global Interrupt */
  139. DMA2_Channel3_IRQn = 58, /*!< DMA2 Channel 3 global Interrupt */
  140. DMA2_Channel4_IRQn = 59, /*!< DMA2 Channel 4 global Interrupt */
  141. DMA2_Channel5_IRQn = 60, /*!< DMA2 Channel 5 global Interrupt */
  142. SDADC1_IRQn = 61, /*!< ADC Sigma Delta 1 global Interrupt */
  143. SDADC2_IRQn = 62, /*!< ADC Sigma Delta 2 global Interrupt */
  144. SDADC3_IRQn = 63, /*!< ADC Sigma Delta 1 global Interrupt */
  145. COMP_IRQn = 64, /*!< COMP1 and COMP2 global Interrupt */
  146. TIM19_IRQn = 78, /*!< TIM19 global Interrupt */
  147. FPU_IRQn = 81, /*!< Floating point Interrupt */
  148. } IRQn_Type;
  149. /**
  150. * @}
  151. */
  152. #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
  153. #include "system_stm32f3xx.h" /* STM32F3xx System Header */
  154. #include <stdint.h>
  155. /** @addtogroup Peripheral_registers_structures
  156. * @{
  157. */
  158. /**
  159. * @brief Analog to Digital Converter
  160. */
  161. typedef struct
  162. {
  163. __IO uint32_t SR; /*!< ADC status register, Address offset: 0x00 */
  164. __IO uint32_t CR1; /*!< ADC control register 1, Address offset: 0x04 */
  165. __IO uint32_t CR2; /*!< ADC control register 2, Address offset: 0x08 */
  166. __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x0C */
  167. __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x10 */
  168. __IO uint32_t JOFR1; /*!< ADC injected channel data offset register 1, Address offset: 0x14 */
  169. __IO uint32_t JOFR2; /*!< ADC injected channel data offset register 2, Address offset: 0x18 */
  170. __IO uint32_t JOFR3; /*!< ADC injected channel data offset register 3, Address offset: 0x1C */
  171. __IO uint32_t JOFR4; /*!< ADC injected channel data offset register 4, Address offset: 0x20 */
  172. __IO uint32_t HTR; /*!< ADC watchdog higher threshold register, Address offset: 0x24 */
  173. __IO uint32_t LTR; /*!< ADC watchdog lower threshold register, Address offset: 0x28 */
  174. __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x2C */
  175. __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x30 */
  176. __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x34 */
  177. __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x38 */
  178. __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x3C */
  179. __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x40 */
  180. __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x44 */
  181. __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x48 */
  182. __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x4C */
  183. } ADC_TypeDef;
  184. typedef struct
  185. {
  186. __IO uint32_t SR; /*!< ADC status register, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address */
  187. __IO uint32_t CR1; /*!< ADC control register 1, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x04 */
  188. __IO uint32_t CR2; /*!< ADC control register 2, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x08 */
  189. uint32_t RESERVED[16];
  190. __IO uint32_t DR; /*!< ADC data register, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x4C */
  191. } ADC_Common_TypeDef;
  192. /**
  193. * @brief Controller Area Network TxMailBox
  194. */
  195. typedef struct
  196. {
  197. __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */
  198. __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */
  199. __IO uint32_t TDLR; /*!< CAN mailbox data low register */
  200. __IO uint32_t TDHR; /*!< CAN mailbox data high register */
  201. } CAN_TxMailBox_TypeDef;
  202. /**
  203. * @brief Controller Area Network FIFOMailBox
  204. */
  205. typedef struct
  206. {
  207. __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */
  208. __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */
  209. __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */
  210. __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */
  211. } CAN_FIFOMailBox_TypeDef;
  212. /**
  213. * @brief Controller Area Network FilterRegister
  214. */
  215. typedef struct
  216. {
  217. __IO uint32_t FR1; /*!< CAN Filter bank register 1 */
  218. __IO uint32_t FR2; /*!< CAN Filter bank register 1 */
  219. } CAN_FilterRegister_TypeDef;
  220. /**
  221. * @brief Controller Area Network
  222. */
  223. typedef struct
  224. {
  225. __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */
  226. __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */
  227. __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */
  228. __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */
  229. __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */
  230. __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */
  231. __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */
  232. __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */
  233. uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */
  234. CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */
  235. CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */
  236. uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */
  237. __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */
  238. __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */
  239. uint32_t RESERVED2; /*!< Reserved, 0x208 */
  240. __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */
  241. uint32_t RESERVED3; /*!< Reserved, 0x210 */
  242. __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */
  243. uint32_t RESERVED4; /*!< Reserved, 0x218 */
  244. __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */
  245. uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */
  246. CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */
  247. } CAN_TypeDef;
  248. /**
  249. * @brief Consumer Electronics Control
  250. */
  251. typedef struct
  252. {
  253. __IO uint32_t CR; /*!< CEC control register, Address offset:0x00 */
  254. __IO uint32_t CFGR; /*!< CEC configuration register, Address offset:0x04 */
  255. __IO uint32_t TXDR; /*!< CEC Tx data register , Address offset:0x08 */
  256. __IO uint32_t RXDR; /*!< CEC Rx Data Register, Address offset:0x0C */
  257. __IO uint32_t ISR; /*!< CEC Interrupt and Status Register, Address offset:0x10 */
  258. __IO uint32_t IER; /*!< CEC interrupt enable register, Address offset:0x14 */
  259. }CEC_TypeDef;
  260. /**
  261. * @brief Analog Comparators
  262. */
  263. typedef struct
  264. {
  265. __IO uint32_t CSR; /*!< COMP control and status register, Address offset: 0x00 */
  266. } COMP_TypeDef;
  267. typedef struct
  268. {
  269. __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  270. } COMP_Common_TypeDef;
  271. /* Legacy define */
  272. typedef struct
  273. {
  274. __IO uint32_t CSR; /*!< Comparator 1 & 2 control Status register, Address offset: 0x00 */
  275. } COMP1_2_TypeDef;
  276. /**
  277. * @brief CRC calculation unit
  278. */
  279. typedef struct
  280. {
  281. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  282. __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  283. uint8_t RESERVED0; /*!< Reserved, 0x05 */
  284. uint16_t RESERVED1; /*!< Reserved, 0x06 */
  285. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  286. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  287. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  288. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  289. } CRC_TypeDef;
  290. /**
  291. * @brief Digital to Analog Converter
  292. */
  293. typedef struct
  294. {
  295. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  296. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  297. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  298. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  299. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  300. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  301. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  302. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  303. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  304. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  305. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  306. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  307. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  308. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  309. } DAC_TypeDef;
  310. /**
  311. * @brief Debug MCU
  312. */
  313. typedef struct
  314. {
  315. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  316. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  317. __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */
  318. __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */
  319. }DBGMCU_TypeDef;
  320. /**
  321. * @brief DMA Controller
  322. */
  323. typedef struct
  324. {
  325. __IO uint32_t CCR; /*!< DMA channel x configuration register */
  326. __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
  327. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
  328. __IO uint32_t CMAR; /*!< DMA channel x memory address register */
  329. } DMA_Channel_TypeDef;
  330. typedef struct
  331. {
  332. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  333. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  334. } DMA_TypeDef;
  335. /**
  336. * @brief External Interrupt/Event Controller
  337. */
  338. typedef struct
  339. {
  340. __IO uint32_t IMR; /*!<EXTI Interrupt mask register, Address offset: 0x00 */
  341. __IO uint32_t EMR; /*!<EXTI Event mask register, Address offset: 0x04 */
  342. __IO uint32_t RTSR; /*!<EXTI Rising trigger selection register , Address offset: 0x08 */
  343. __IO uint32_t FTSR; /*!<EXTI Falling trigger selection register, Address offset: 0x0C */
  344. __IO uint32_t SWIER; /*!<EXTI Software interrupt event register, Address offset: 0x10 */
  345. __IO uint32_t PR; /*!<EXTI Pending register, Address offset: 0x14 */
  346. }EXTI_TypeDef;
  347. /**
  348. * @brief FLASH Registers
  349. */
  350. typedef struct
  351. {
  352. __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
  353. __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x04 */
  354. __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x08 */
  355. __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x0C */
  356. __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x10 */
  357. __IO uint32_t AR; /*!< FLASH address register, Address offset: 0x14 */
  358. uint32_t RESERVED; /*!< Reserved, 0x18 */
  359. __IO uint32_t OBR; /*!< FLASH Option byte register, Address offset: 0x1C */
  360. __IO uint32_t WRPR; /*!< FLASH Write register, Address offset: 0x20 */
  361. } FLASH_TypeDef;
  362. /**
  363. * @brief Option Bytes Registers
  364. */
  365. typedef struct
  366. {
  367. __IO uint16_t RDP; /*!<FLASH option byte Read protection, Address offset: 0x00 */
  368. __IO uint16_t USER; /*!<FLASH option byte user options, Address offset: 0x02 */
  369. uint16_t RESERVED0; /*!< Reserved, 0x04 */
  370. uint16_t RESERVED1; /*!< Reserved, 0x06 */
  371. __IO uint16_t WRP0; /*!<FLASH option byte write protection 0, Address offset: 0x08 */
  372. __IO uint16_t WRP1; /*!<FLASH option byte write protection 1, Address offset: 0x0C */
  373. __IO uint16_t WRP2; /*!<FLASH option byte write protection 2, Address offset: 0x10 */
  374. __IO uint16_t WRP3; /*!<FLASH option byte write protection 3, Address offset: 0x12 */
  375. } OB_TypeDef;
  376. /**
  377. * @brief General Purpose I/O
  378. */
  379. typedef struct
  380. {
  381. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  382. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  383. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  384. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  385. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  386. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  387. __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x1A */
  388. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  389. __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
  390. __IO uint32_t BRR; /*!< GPIO bit reset register, Address offset: 0x28 */
  391. }GPIO_TypeDef;
  392. /**
  393. * @brief System configuration controller
  394. */
  395. typedef struct
  396. {
  397. __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x00 */
  398. uint32_t RESERVED; /*!< Reserved, 0x04 */
  399. __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x14-0x08 */
  400. __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x18 */
  401. } SYSCFG_TypeDef;
  402. /**
  403. * @brief Inter-integrated Circuit Interface
  404. */
  405. typedef struct
  406. {
  407. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  408. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  409. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  410. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  411. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  412. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  413. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  414. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  415. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  416. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  417. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  418. }I2C_TypeDef;
  419. /**
  420. * @brief Independent WATCHDOG
  421. */
  422. typedef struct
  423. {
  424. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  425. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  426. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  427. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  428. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  429. } IWDG_TypeDef;
  430. /**
  431. * @brief Power Control
  432. */
  433. typedef struct
  434. {
  435. __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */
  436. __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */
  437. } PWR_TypeDef;
  438. /**
  439. * @brief Reset and Clock Control
  440. */
  441. typedef struct
  442. {
  443. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  444. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x04 */
  445. __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x08 */
  446. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x0C */
  447. __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x10 */
  448. __IO uint32_t AHBENR; /*!< RCC AHB peripheral clock register, Address offset: 0x14 */
  449. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x18 */
  450. __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x1C */
  451. __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x20 */
  452. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x24 */
  453. __IO uint32_t AHBRSTR; /*!< RCC AHB peripheral reset register, Address offset: 0x28 */
  454. __IO uint32_t CFGR2; /*!< RCC clock configuration register 2, Address offset: 0x2C */
  455. __IO uint32_t CFGR3; /*!< RCC clock configuration register 3, Address offset: 0x30 */
  456. } RCC_TypeDef;
  457. /**
  458. * @brief Real-Time Clock
  459. */
  460. typedef struct
  461. {
  462. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  463. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  464. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
  465. __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
  466. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  467. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  468. uint32_t RESERVED0; /*!< Reserved, 0x18 */
  469. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
  470. __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */
  471. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  472. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
  473. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  474. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  475. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  476. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  477. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  478. __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
  479. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  480. __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */
  481. uint32_t RESERVED7; /*!< Reserved, 0x4C */
  482. __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  483. __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  484. __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  485. __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  486. __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  487. __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */
  488. __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */
  489. __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */
  490. __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */
  491. __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */
  492. __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */
  493. __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */
  494. __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */
  495. __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */
  496. __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */
  497. __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */
  498. __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */
  499. __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */
  500. __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */
  501. __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */
  502. __IO uint32_t BKP20R; /*!< RTC backup register 20, Address offset: 0xA0 */
  503. __IO uint32_t BKP21R; /*!< RTC backup register 21, Address offset: 0xA4 */
  504. __IO uint32_t BKP22R; /*!< RTC backup register 22, Address offset: 0xA8 */
  505. __IO uint32_t BKP23R; /*!< RTC backup register 23, Address offset: 0xAC */
  506. __IO uint32_t BKP24R; /*!< RTC backup register 24, Address offset: 0xB0 */
  507. __IO uint32_t BKP25R; /*!< RTC backup register 25, Address offset: 0xB4 */
  508. __IO uint32_t BKP26R; /*!< RTC backup register 26, Address offset: 0xB8 */
  509. __IO uint32_t BKP27R; /*!< RTC backup register 27, Address offset: 0xBC */
  510. __IO uint32_t BKP28R; /*!< RTC backup register 28, Address offset: 0xC0 */
  511. __IO uint32_t BKP29R; /*!< RTC backup register 29, Address offset: 0xC4 */
  512. __IO uint32_t BKP30R; /*!< RTC backup register 30, Address offset: 0xC8 */
  513. __IO uint32_t BKP31R; /*!< RTC backup register 31, Address offset: 0xCC */
  514. } RTC_TypeDef;
  515. /**
  516. * @brief Sigma-Delta Analog to Digital Converter (SDADC)
  517. */
  518. typedef struct
  519. {
  520. __IO uint32_t CR1; /*!< SDADC control register 1, Address offset: 0x00 */
  521. __IO uint32_t CR2; /*!< SDADC control register 2, Address offset: 0x04 */
  522. __IO uint32_t ISR; /*!< SDADC interrupt and status register, Address offset: 0x08 */
  523. __IO uint32_t CLRISR; /*!< SDADC clear interrupt and status register, Address offset: 0x0C */
  524. __IO uint32_t RESERVED0; /*!< Reserved, 0x10 */
  525. __IO uint32_t JCHGR; /*!< SDADC injected channel group selection register, Address offset: 0x14 */
  526. __IO uint32_t RESERVED1; /*!< Reserved, 0x18 */
  527. __IO uint32_t RESERVED2; /*!< Reserved, 0x1C */
  528. __IO uint32_t CONF0R; /*!< SDADC configuration 0 register, Address offset: 0x20 */
  529. __IO uint32_t CONF1R; /*!< SDADC configuration 1 register, Address offset: 0x24 */
  530. __IO uint32_t CONF2R; /*!< SDADC configuration 2 register, Address offset: 0x28 */
  531. __IO uint32_t RESERVED3[5]; /*!< Reserved, 0x2C - 0x3C */
  532. __IO uint32_t CONFCHR1; /*!< SDADC channel configuration register 1, Address offset: 0x40 */
  533. __IO uint32_t CONFCHR2; /*!< SDADC channel configuration register 2, Address offset: 0x44 */
  534. __IO uint32_t RESERVED4[6]; /*!< Reserved, 0x48 - 0x5C */
  535. __IO uint32_t JDATAR; /*!< SDADC data register for injected group, Address offset: 0x60 */
  536. __IO uint32_t RDATAR; /*!< SDADC data register for the regular channel, Address offset: 0x64 */
  537. __IO uint32_t RESERVED5[2]; /*!< Reserved, 0x68 - 0x6C */
  538. __IO uint32_t JDATA12R; /*!< SDADC1 and SDADC2 injected data register, Address offset: 0x70 */
  539. __IO uint32_t RDATA12R; /*!< SDADC1 and SDADC2 regular data register, Address offset: 0x74 */
  540. __IO uint32_t JDATA13R; /*!< SDADC1 and SDADC3 injected data register, Address offset: 0x78 */
  541. __IO uint32_t RDATA13R; /*!< SDADC1 and SDADC3 regular data register, Address offset: 0x7C */
  542. } SDADC_TypeDef;
  543. /**
  544. * @brief Serial Peripheral Interface
  545. */
  546. typedef struct
  547. {
  548. __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */
  549. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  550. __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
  551. __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
  552. __IO uint32_t CRCPR; /*!< SPI CRC polynomial register, Address offset: 0x10 */
  553. __IO uint32_t RXCRCR; /*!< SPI Rx CRC register, Address offset: 0x14 */
  554. __IO uint32_t TXCRCR; /*!< SPI Tx CRC register, Address offset: 0x18 */
  555. __IO uint32_t I2SCFGR; /*!< SPI_I2S configuration register, Address offset: 0x1C */
  556. __IO uint32_t I2SPR; /*!< SPI_I2S prescaler register, Address offset: 0x20 */
  557. } SPI_TypeDef;
  558. /**
  559. * @brief TIM
  560. */
  561. typedef struct
  562. {
  563. __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  564. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  565. __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
  566. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  567. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  568. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  569. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  570. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  571. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  572. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  573. __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */
  574. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  575. __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  576. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  577. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  578. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  579. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  580. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  581. __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  582. __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
  583. __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */
  584. } TIM_TypeDef;
  585. /**
  586. * @brief Touch Sensing Controller (TSC)
  587. */
  588. typedef struct
  589. {
  590. __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
  591. __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
  592. __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
  593. __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
  594. __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
  595. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  596. __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
  597. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
  598. __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
  599. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
  600. __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
  601. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
  602. __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
  603. __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
  604. } TSC_TypeDef;
  605. /**
  606. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  607. */
  608. typedef struct
  609. {
  610. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  611. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  612. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  613. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  614. __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  615. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  616. __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
  617. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  618. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  619. __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  620. uint16_t RESERVED1; /*!< Reserved, 0x26 */
  621. __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  622. uint16_t RESERVED2; /*!< Reserved, 0x2A */
  623. } USART_TypeDef;
  624. /**
  625. * @brief Window WATCHDOG
  626. */
  627. typedef struct
  628. {
  629. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  630. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  631. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  632. } WWDG_TypeDef;
  633. /** @addtogroup Peripheral_memory_map
  634. * @{
  635. */
  636. #define FLASH_BASE ((uint32_t)0x08000000U) /*!< FLASH base address in the alias region */
  637. #define SRAM_BASE ((uint32_t)0x20000000U) /*!< SRAM base address in the alias region */
  638. #define PERIPH_BASE ((uint32_t)0x40000000U) /*!< Peripheral base address in the alias region */
  639. #define SRAM_BB_BASE ((uint32_t)0x22000000U) /*!< SRAM base address in the bit-band region */
  640. #define PERIPH_BB_BASE ((uint32_t)0x42000000U) /*!< Peripheral base address in the bit-band region */
  641. /*!< Peripheral memory map */
  642. #define APB1PERIPH_BASE PERIPH_BASE
  643. #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000U)
  644. #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000U)
  645. #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000U)
  646. /*!< APB1 peripherals */
  647. #define TIM2_BASE (APB1PERIPH_BASE + 0x00000000U)
  648. #define TIM3_BASE (APB1PERIPH_BASE + 0x00000400U)
  649. #define TIM4_BASE (APB1PERIPH_BASE + 0x00000800U)
  650. #define TIM5_BASE (APB1PERIPH_BASE + 0x00000C00U)
  651. #define TIM6_BASE (APB1PERIPH_BASE + 0x00001000U)
  652. #define TIM7_BASE (APB1PERIPH_BASE + 0x00001400U)
  653. #define TIM12_BASE (APB1PERIPH_BASE + 0x00001800U)
  654. #define TIM13_BASE (APB1PERIPH_BASE + 0x00001C00U)
  655. #define TIM14_BASE (APB1PERIPH_BASE + 0x00002000U)
  656. #define RTC_BASE (APB1PERIPH_BASE + 0x00002800U)
  657. #define WWDG_BASE (APB1PERIPH_BASE + 0x00002C00U)
  658. #define IWDG_BASE (APB1PERIPH_BASE + 0x00003000U)
  659. #define SPI2_BASE (APB1PERIPH_BASE + 0x00003800U)
  660. #define SPI3_BASE (APB1PERIPH_BASE + 0x00003C00U)
  661. #define USART2_BASE (APB1PERIPH_BASE + 0x00004400U)
  662. #define USART3_BASE (APB1PERIPH_BASE + 0x00004800U)
  663. #define I2C1_BASE (APB1PERIPH_BASE + 0x00005400U)
  664. #define I2C2_BASE (APB1PERIPH_BASE + 0x00005800U)
  665. #define CAN_BASE (APB1PERIPH_BASE + 0x00006400U)
  666. #define PWR_BASE (APB1PERIPH_BASE + 0x00007000U)
  667. #define DAC1_BASE (APB1PERIPH_BASE + 0x00007400U)
  668. #define DAC2_BASE (APB1PERIPH_BASE + 0x00009800U)
  669. #define DAC_BASE DAC1_BASE
  670. #define CEC_BASE (APB1PERIPH_BASE + 0x00007800U)
  671. #define TIM18_BASE (APB1PERIPH_BASE + 0x00009C00U)
  672. /*!< APB2 peripherals */
  673. #define SYSCFG_BASE (APB2PERIPH_BASE + 0x00000000U)
  674. #define COMP_BASE (APB2PERIPH_BASE + 0x0000001CU)
  675. #define EXTI_BASE (APB2PERIPH_BASE + 0x00000400U)
  676. #define ADC1_BASE (APB2PERIPH_BASE + 0x00002400U)
  677. #define SPI1_BASE (APB2PERIPH_BASE + 0x00003000U)
  678. #define USART1_BASE (APB2PERIPH_BASE + 0x00003800U)
  679. #define TIM15_BASE (APB2PERIPH_BASE + 0x00004000U)
  680. #define TIM16_BASE (APB2PERIPH_BASE + 0x00004400U)
  681. #define TIM17_BASE (APB2PERIPH_BASE + 0x00004800U)
  682. #define TIM19_BASE (APB2PERIPH_BASE + 0x00005C00U)
  683. #define SDADC1_BASE (APB2PERIPH_BASE + 0x00006000U)
  684. #define SDADC2_BASE (APB2PERIPH_BASE + 0x00006400U)
  685. #define SDADC3_BASE (APB2PERIPH_BASE + 0x00006800U)
  686. /*!< AHB1 peripherals */
  687. #define DMA1_BASE (AHB1PERIPH_BASE + 0x00000000U)
  688. #define DMA1_Channel1_BASE (AHB1PERIPH_BASE + 0x00000008U)
  689. #define DMA1_Channel2_BASE (AHB1PERIPH_BASE + 0x0000001CU)
  690. #define DMA1_Channel3_BASE (AHB1PERIPH_BASE + 0x00000030U)
  691. #define DMA1_Channel4_BASE (AHB1PERIPH_BASE + 0x00000044U)
  692. #define DMA1_Channel5_BASE (AHB1PERIPH_BASE + 0x00000058U)
  693. #define DMA1_Channel6_BASE (AHB1PERIPH_BASE + 0x0000006CU)
  694. #define DMA1_Channel7_BASE (AHB1PERIPH_BASE + 0x00000080U)
  695. #define DMA2_BASE (AHB1PERIPH_BASE + 0x00000400U)
  696. #define DMA2_Channel1_BASE (AHB1PERIPH_BASE + 0x00000408U)
  697. #define DMA2_Channel2_BASE (AHB1PERIPH_BASE + 0x0000041CU)
  698. #define DMA2_Channel3_BASE (AHB1PERIPH_BASE + 0x00000430U)
  699. #define DMA2_Channel4_BASE (AHB1PERIPH_BASE + 0x00000444U)
  700. #define DMA2_Channel5_BASE (AHB1PERIPH_BASE + 0x00000458U)
  701. #define RCC_BASE (AHB1PERIPH_BASE + 0x00001000U)
  702. #define FLASH_R_BASE (AHB1PERIPH_BASE + 0x00002000U) /*!< Flash registers base address */
  703. #define OB_BASE ((uint32_t)0x1FFFF800U) /*!< Flash Option Bytes base address */
  704. #define FLASHSIZE_BASE ((uint32_t)0x1FFFF7CCU) /*!< FLASH Size register base address */
  705. #define UID_BASE ((uint32_t)0x1FFFF7ACU) /*!< Unique device ID register base address */
  706. #define CRC_BASE (AHB1PERIPH_BASE + 0x00003000U)
  707. #define TSC_BASE (AHB1PERIPH_BASE + 0x00004000U)
  708. /*!< AHB2 peripherals */
  709. #define GPIOA_BASE (AHB2PERIPH_BASE + 0x00000000U)
  710. #define GPIOB_BASE (AHB2PERIPH_BASE + 0x00000400U)
  711. #define GPIOC_BASE (AHB2PERIPH_BASE + 0x00000800U)
  712. #define GPIOD_BASE (AHB2PERIPH_BASE + 0x00000C00U)
  713. #define GPIOE_BASE (AHB2PERIPH_BASE + 0x00001000U)
  714. #define GPIOF_BASE (AHB2PERIPH_BASE + 0x00001400U)
  715. #define DBGMCU_BASE ((uint32_t)0xE0042000U) /*!< Debug MCU registers base address */
  716. /**
  717. * @}
  718. */
  719. /** @addtogroup Peripheral_declaration
  720. * @{
  721. */
  722. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  723. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  724. #define TIM4 ((TIM_TypeDef *) TIM4_BASE)
  725. #define TIM5 ((TIM_TypeDef *) TIM5_BASE)
  726. #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
  727. #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
  728. #define TIM12 ((TIM_TypeDef *) TIM12_BASE)
  729. #define TIM13 ((TIM_TypeDef *) TIM13_BASE)
  730. #define TIM14 ((TIM_TypeDef *) TIM14_BASE)
  731. #define RTC ((RTC_TypeDef *) RTC_BASE)
  732. #define WWDG ((WWDG_TypeDef *) WWDG_BASE)
  733. #define IWDG ((IWDG_TypeDef *) IWDG_BASE)
  734. #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
  735. #define SPI3 ((SPI_TypeDef *) SPI3_BASE)
  736. #define USART2 ((USART_TypeDef *) USART2_BASE)
  737. #define USART3 ((USART_TypeDef *) USART3_BASE)
  738. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  739. #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
  740. #define CAN ((CAN_TypeDef *) CAN_BASE)
  741. #define PWR ((PWR_TypeDef *) PWR_BASE)
  742. #define DAC ((DAC_TypeDef *) DAC_BASE)
  743. #define DAC1 ((DAC_TypeDef *) DAC1_BASE)
  744. #define DAC2 ((DAC_TypeDef *) DAC2_BASE)
  745. #define CEC ((CEC_TypeDef *) CEC_BASE)
  746. #define COMP1 ((COMP_TypeDef *) COMP_BASE)
  747. #define COMP2 ((COMP_TypeDef *) (COMP_BASE + 0x00000002U))
  748. #define COMP12_COMMON ((COMP_Common_TypeDef *) COMP_BASE)
  749. /* Legacy define */
  750. #define COMP ((COMP1_2_TypeDef *) COMP_BASE)
  751. #define TIM18 ((TIM_TypeDef *) TIM18_BASE)
  752. #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
  753. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  754. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  755. #define USART1 ((USART_TypeDef *) USART1_BASE)
  756. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  757. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  758. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  759. #define TIM19 ((TIM_TypeDef *) TIM19_BASE)
  760. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  761. #define SDADC1 ((SDADC_TypeDef *) SDADC1_BASE)
  762. #define SDADC2 ((SDADC_TypeDef *) SDADC2_BASE)
  763. #define SDADC3 ((SDADC_TypeDef *) SDADC3_BASE)
  764. #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
  765. #define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
  766. #define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
  767. #define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
  768. #define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
  769. #define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
  770. #define DMA1_Channel6 ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE)
  771. #define DMA1_Channel7 ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE)
  772. #define DMA2 ((DMA_TypeDef *) DMA2_BASE)
  773. #define DMA2_Channel1 ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE)
  774. #define DMA2_Channel2 ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE)
  775. #define DMA2_Channel3 ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE)
  776. #define DMA2_Channel4 ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE)
  777. #define DMA2_Channel5 ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE)
  778. #define RCC ((RCC_TypeDef *) RCC_BASE)
  779. #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
  780. #define OB ((OB_TypeDef *) OB_BASE)
  781. #define CRC ((CRC_TypeDef *) CRC_BASE)
  782. #define TSC ((TSC_TypeDef *) TSC_BASE)
  783. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  784. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  785. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  786. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  787. #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
  788. #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
  789. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  790. #define ADC1_COMMON ((ADC_Common_TypeDef *) ADC1_BASE)
  791. /**
  792. * @}
  793. */
  794. /** @addtogroup Exported_constants
  795. * @{
  796. */
  797. /** @addtogroup Peripheral_Registers_Bits_Definition
  798. * @{
  799. */
  800. /******************************************************************************/
  801. /* Peripheral Registers_Bits_Definition */
  802. /******************************************************************************/
  803. /******************************************************************************/
  804. /* */
  805. /* Analog to Digital Converter SAR (ADC) */
  806. /* */
  807. /******************************************************************************/
  808. #define ADC1_V2_5 /*!< ADC IP version */
  809. /*
  810. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  811. */
  812. /* Note: No specific macro feature on this device */
  813. /******************** Bit definition for ADC_SR register ********************/
  814. #define ADC_SR_AWD_Pos (0U)
  815. #define ADC_SR_AWD_Msk (0x1U << ADC_SR_AWD_Pos) /*!< 0x00000001 */
  816. #define ADC_SR_AWD ADC_SR_AWD_Msk /*!< Analog watchdog flag */
  817. #define ADC_SR_EOC_Pos (1U)
  818. #define ADC_SR_EOC_Msk (0x1U << ADC_SR_EOC_Pos) /*!< 0x00000002 */
  819. #define ADC_SR_EOC ADC_SR_EOC_Msk /*!< End of conversion */
  820. #define ADC_SR_JEOC_Pos (2U)
  821. #define ADC_SR_JEOC_Msk (0x1U << ADC_SR_JEOC_Pos) /*!< 0x00000004 */
  822. #define ADC_SR_JEOC ADC_SR_JEOC_Msk /*!< Injected channel end of conversion */
  823. #define ADC_SR_JSTRT_Pos (3U)
  824. #define ADC_SR_JSTRT_Msk (0x1U << ADC_SR_JSTRT_Pos) /*!< 0x00000008 */
  825. #define ADC_SR_JSTRT ADC_SR_JSTRT_Msk /*!< Injected channel Start flag */
  826. #define ADC_SR_STRT_Pos (4U)
  827. #define ADC_SR_STRT_Msk (0x1U << ADC_SR_STRT_Pos) /*!< 0x00000010 */
  828. #define ADC_SR_STRT ADC_SR_STRT_Msk /*!< Regular channel Start flag */
  829. /******************* Bit definition for ADC_CR1 register ********************/
  830. #define ADC_CR1_AWDCH_Pos (0U)
  831. #define ADC_CR1_AWDCH_Msk (0x1FU << ADC_CR1_AWDCH_Pos) /*!< 0x0000001F */
  832. #define ADC_CR1_AWDCH ADC_CR1_AWDCH_Msk /*!< AWDCH[4:0] bits (Analog watchdog channel select bits) */
  833. #define ADC_CR1_AWDCH_0 (0x01U << ADC_CR1_AWDCH_Pos) /*!< 0x00000001 */
  834. #define ADC_CR1_AWDCH_1 (0x02U << ADC_CR1_AWDCH_Pos) /*!< 0x00000002 */
  835. #define ADC_CR1_AWDCH_2 (0x04U << ADC_CR1_AWDCH_Pos) /*!< 0x00000004 */
  836. #define ADC_CR1_AWDCH_3 (0x08U << ADC_CR1_AWDCH_Pos) /*!< 0x00000008 */
  837. #define ADC_CR1_AWDCH_4 (0x10U << ADC_CR1_AWDCH_Pos) /*!< 0x00000010 */
  838. #define ADC_CR1_EOCIE_Pos (5U)
  839. #define ADC_CR1_EOCIE_Msk (0x1U << ADC_CR1_EOCIE_Pos) /*!< 0x00000020 */
  840. #define ADC_CR1_EOCIE ADC_CR1_EOCIE_Msk /*!< Interrupt enable for EOC */
  841. #define ADC_CR1_AWDIE_Pos (6U)
  842. #define ADC_CR1_AWDIE_Msk (0x1U << ADC_CR1_AWDIE_Pos) /*!< 0x00000040 */
  843. #define ADC_CR1_AWDIE ADC_CR1_AWDIE_Msk /*!< Analog Watchdog interrupt enable */
  844. #define ADC_CR1_JEOCIE_Pos (7U)
  845. #define ADC_CR1_JEOCIE_Msk (0x1U << ADC_CR1_JEOCIE_Pos) /*!< 0x00000080 */
  846. #define ADC_CR1_JEOCIE ADC_CR1_JEOCIE_Msk /*!< Interrupt enable for injected channels */
  847. #define ADC_CR1_SCAN_Pos (8U)
  848. #define ADC_CR1_SCAN_Msk (0x1U << ADC_CR1_SCAN_Pos) /*!< 0x00000100 */
  849. #define ADC_CR1_SCAN ADC_CR1_SCAN_Msk /*!< Scan mode */
  850. #define ADC_CR1_AWDSGL_Pos (9U)
  851. #define ADC_CR1_AWDSGL_Msk (0x1U << ADC_CR1_AWDSGL_Pos) /*!< 0x00000200 */
  852. #define ADC_CR1_AWDSGL ADC_CR1_AWDSGL_Msk /*!< Enable the watchdog on a single channel in scan mode */
  853. #define ADC_CR1_JAUTO_Pos (10U)
  854. #define ADC_CR1_JAUTO_Msk (0x1U << ADC_CR1_JAUTO_Pos) /*!< 0x00000400 */
  855. #define ADC_CR1_JAUTO ADC_CR1_JAUTO_Msk /*!< Automatic injected group conversion */
  856. #define ADC_CR1_DISCEN_Pos (11U)
  857. #define ADC_CR1_DISCEN_Msk (0x1U << ADC_CR1_DISCEN_Pos) /*!< 0x00000800 */
  858. #define ADC_CR1_DISCEN ADC_CR1_DISCEN_Msk /*!< Discontinuous mode on regular channels */
  859. #define ADC_CR1_JDISCEN_Pos (12U)
  860. #define ADC_CR1_JDISCEN_Msk (0x1U << ADC_CR1_JDISCEN_Pos) /*!< 0x00001000 */
  861. #define ADC_CR1_JDISCEN ADC_CR1_JDISCEN_Msk /*!< Discontinuous mode on injected channels */
  862. #define ADC_CR1_DISCNUM_Pos (13U)
  863. #define ADC_CR1_DISCNUM_Msk (0x7U << ADC_CR1_DISCNUM_Pos) /*!< 0x0000E000 */
  864. #define ADC_CR1_DISCNUM ADC_CR1_DISCNUM_Msk /*!< DISCNUM[2:0] bits (Discontinuous mode channel count) */
  865. #define ADC_CR1_DISCNUM_0 (0x1U << ADC_CR1_DISCNUM_Pos) /*!< 0x00002000 */
  866. #define ADC_CR1_DISCNUM_1 (0x2U << ADC_CR1_DISCNUM_Pos) /*!< 0x00004000 */
  867. #define ADC_CR1_DISCNUM_2 (0x4U << ADC_CR1_DISCNUM_Pos) /*!< 0x00008000 */
  868. #define ADC_CR1_JAWDEN_Pos (22U)
  869. #define ADC_CR1_JAWDEN_Msk (0x1U << ADC_CR1_JAWDEN_Pos) /*!< 0x00400000 */
  870. #define ADC_CR1_JAWDEN ADC_CR1_JAWDEN_Msk /*!< Analog watchdog enable on injected channels */
  871. #define ADC_CR1_AWDEN_Pos (23U)
  872. #define ADC_CR1_AWDEN_Msk (0x1U << ADC_CR1_AWDEN_Pos) /*!< 0x00800000 */
  873. #define ADC_CR1_AWDEN ADC_CR1_AWDEN_Msk /*!< Analog watchdog enable on regular channels */
  874. /******************* Bit definition for ADC_CR2 register ********************/
  875. #define ADC_CR2_ADON_Pos (0U)
  876. #define ADC_CR2_ADON_Msk (0x1U << ADC_CR2_ADON_Pos) /*!< 0x00000001 */
  877. #define ADC_CR2_ADON ADC_CR2_ADON_Msk /*!< A/D Converter ON / OFF */
  878. #define ADC_CR2_CONT_Pos (1U)
  879. #define ADC_CR2_CONT_Msk (0x1U << ADC_CR2_CONT_Pos) /*!< 0x00000002 */
  880. #define ADC_CR2_CONT ADC_CR2_CONT_Msk /*!< Continuous Conversion */
  881. #define ADC_CR2_CAL_Pos (2U)
  882. #define ADC_CR2_CAL_Msk (0x1U << ADC_CR2_CAL_Pos) /*!< 0x00000004 */
  883. #define ADC_CR2_CAL ADC_CR2_CAL_Msk /*!< A/D Calibration */
  884. #define ADC_CR2_RSTCAL_Pos (3U)
  885. #define ADC_CR2_RSTCAL_Msk (0x1U << ADC_CR2_RSTCAL_Pos) /*!< 0x00000008 */
  886. #define ADC_CR2_RSTCAL ADC_CR2_RSTCAL_Msk /*!< Reset Calibration */
  887. #define ADC_CR2_DMA_Pos (8U)
  888. #define ADC_CR2_DMA_Msk (0x1U << ADC_CR2_DMA_Pos) /*!< 0x00000100 */
  889. #define ADC_CR2_DMA ADC_CR2_DMA_Msk /*!< Direct Memory access mode */
  890. #define ADC_CR2_ALIGN_Pos (11U)
  891. #define ADC_CR2_ALIGN_Msk (0x1U << ADC_CR2_ALIGN_Pos) /*!< 0x00000800 */
  892. #define ADC_CR2_ALIGN ADC_CR2_ALIGN_Msk /*!< Data Alignment */
  893. #define ADC_CR2_JEXTSEL_Pos (12U)
  894. #define ADC_CR2_JEXTSEL_Msk (0x7U << ADC_CR2_JEXTSEL_Pos) /*!< 0x00007000 */
  895. #define ADC_CR2_JEXTSEL ADC_CR2_JEXTSEL_Msk /*!< JEXTSEL[2:0] bits (External event select for injected group) */
  896. #define ADC_CR2_JEXTSEL_0 (0x1U << ADC_CR2_JEXTSEL_Pos) /*!< 0x00001000 */
  897. #define ADC_CR2_JEXTSEL_1 (0x2U << ADC_CR2_JEXTSEL_Pos) /*!< 0x00002000 */
  898. #define ADC_CR2_JEXTSEL_2 (0x4U << ADC_CR2_JEXTSEL_Pos) /*!< 0x00004000 */
  899. #define ADC_CR2_JEXTTRIG_Pos (15U)
  900. #define ADC_CR2_JEXTTRIG_Msk (0x1U << ADC_CR2_JEXTTRIG_Pos) /*!< 0x00008000 */
  901. #define ADC_CR2_JEXTTRIG ADC_CR2_JEXTTRIG_Msk /*!< External Trigger Conversion mode for injected channels */
  902. #define ADC_CR2_EXTSEL_Pos (17U)
  903. #define ADC_CR2_EXTSEL_Msk (0x7U << ADC_CR2_EXTSEL_Pos) /*!< 0x000E0000 */
  904. #define ADC_CR2_EXTSEL ADC_CR2_EXTSEL_Msk /*!< EXTSEL[2:0] bits (External Event Select for regular group) */
  905. #define ADC_CR2_EXTSEL_0 (0x1U << ADC_CR2_EXTSEL_Pos) /*!< 0x00020000 */
  906. #define ADC_CR2_EXTSEL_1 (0x2U << ADC_CR2_EXTSEL_Pos) /*!< 0x00040000 */
  907. #define ADC_CR2_EXTSEL_2 (0x4U << ADC_CR2_EXTSEL_Pos) /*!< 0x00080000 */
  908. #define ADC_CR2_EXTTRIG_Pos (20U)
  909. #define ADC_CR2_EXTTRIG_Msk (0x1U << ADC_CR2_EXTTRIG_Pos) /*!< 0x00100000 */
  910. #define ADC_CR2_EXTTRIG ADC_CR2_EXTTRIG_Msk /*!< External Trigger Conversion mode for regular channels */
  911. #define ADC_CR2_JSWSTART_Pos (21U)
  912. #define ADC_CR2_JSWSTART_Msk (0x1U << ADC_CR2_JSWSTART_Pos) /*!< 0x00200000 */
  913. #define ADC_CR2_JSWSTART ADC_CR2_JSWSTART_Msk /*!< Start Conversion of injected channels */
  914. #define ADC_CR2_SWSTART_Pos (22U)
  915. #define ADC_CR2_SWSTART_Msk (0x1U << ADC_CR2_SWSTART_Pos) /*!< 0x00400000 */
  916. #define ADC_CR2_SWSTART ADC_CR2_SWSTART_Msk /*!< Start Conversion of regular channels */
  917. #define ADC_CR2_TSVREFE_Pos (23U)
  918. #define ADC_CR2_TSVREFE_Msk (0x1U << ADC_CR2_TSVREFE_Pos) /*!< 0x00800000 */
  919. #define ADC_CR2_TSVREFE ADC_CR2_TSVREFE_Msk /*!< Temperature Sensor and VREFINT Enable */
  920. /****************** Bit definition for ADC_SMPR1 register *******************/
  921. #define ADC_SMPR1_SMP10_Pos (0U)
  922. #define ADC_SMPR1_SMP10_Msk (0x7U << ADC_SMPR1_SMP10_Pos) /*!< 0x00000007 */
  923. #define ADC_SMPR1_SMP10 ADC_SMPR1_SMP10_Msk /*!< SMP10[2:0] bits (Channel 10 Sample time selection) */
  924. #define ADC_SMPR1_SMP10_0 (0x1U << ADC_SMPR1_SMP10_Pos) /*!< 0x00000001 */
  925. #define ADC_SMPR1_SMP10_1 (0x2U << ADC_SMPR1_SMP10_Pos) /*!< 0x00000002 */
  926. #define ADC_SMPR1_SMP10_2 (0x4U << ADC_SMPR1_SMP10_Pos) /*!< 0x00000004 */
  927. #define ADC_SMPR1_SMP11_Pos (3U)
  928. #define ADC_SMPR1_SMP11_Msk (0x7U << ADC_SMPR1_SMP11_Pos) /*!< 0x00000038 */
  929. #define ADC_SMPR1_SMP11 ADC_SMPR1_SMP11_Msk /*!< SMP11[2:0] bits (Channel 11 Sample time selection) */
  930. #define ADC_SMPR1_SMP11_0 (0x1U << ADC_SMPR1_SMP11_Pos) /*!< 0x00000008 */
  931. #define ADC_SMPR1_SMP11_1 (0x2U << ADC_SMPR1_SMP11_Pos) /*!< 0x00000010 */
  932. #define ADC_SMPR1_SMP11_2 (0x4U << ADC_SMPR1_SMP11_Pos) /*!< 0x00000020 */
  933. #define ADC_SMPR1_SMP12_Pos (6U)
  934. #define ADC_SMPR1_SMP12_Msk (0x7U << ADC_SMPR1_SMP12_Pos) /*!< 0x000001C0 */
  935. #define ADC_SMPR1_SMP12 ADC_SMPR1_SMP12_Msk /*!< SMP12[2:0] bits (Channel 12 Sample time selection) */
  936. #define ADC_SMPR1_SMP12_0 (0x1U << ADC_SMPR1_SMP12_Pos) /*!< 0x00000040 */
  937. #define ADC_SMPR1_SMP12_1 (0x2U << ADC_SMPR1_SMP12_Pos) /*!< 0x00000080 */
  938. #define ADC_SMPR1_SMP12_2 (0x4U << ADC_SMPR1_SMP12_Pos) /*!< 0x00000100 */
  939. #define ADC_SMPR1_SMP13_Pos (9U)
  940. #define ADC_SMPR1_SMP13_Msk (0x7U << ADC_SMPR1_SMP13_Pos) /*!< 0x00000E00 */
  941. #define ADC_SMPR1_SMP13 ADC_SMPR1_SMP13_Msk /*!< SMP13[2:0] bits (Channel 13 Sample time selection) */
  942. #define ADC_SMPR1_SMP13_0 (0x1U << ADC_SMPR1_SMP13_Pos) /*!< 0x00000200 */
  943. #define ADC_SMPR1_SMP13_1 (0x2U << ADC_SMPR1_SMP13_Pos) /*!< 0x00000400 */
  944. #define ADC_SMPR1_SMP13_2 (0x4U << ADC_SMPR1_SMP13_Pos) /*!< 0x00000800 */
  945. #define ADC_SMPR1_SMP14_Pos (12U)
  946. #define ADC_SMPR1_SMP14_Msk (0x7U << ADC_SMPR1_SMP14_Pos) /*!< 0x00007000 */
  947. #define ADC_SMPR1_SMP14 ADC_SMPR1_SMP14_Msk /*!< SMP14[2:0] bits (Channel 14 Sample time selection) */
  948. #define ADC_SMPR1_SMP14_0 (0x1U << ADC_SMPR1_SMP14_Pos) /*!< 0x00001000 */
  949. #define ADC_SMPR1_SMP14_1 (0x2U << ADC_SMPR1_SMP14_Pos) /*!< 0x00002000 */
  950. #define ADC_SMPR1_SMP14_2 (0x4U << ADC_SMPR1_SMP14_Pos) /*!< 0x00004000 */
  951. #define ADC_SMPR1_SMP15_Pos (15U)
  952. #define ADC_SMPR1_SMP15_Msk (0x7U << ADC_SMPR1_SMP15_Pos) /*!< 0x00038000 */
  953. #define ADC_SMPR1_SMP15 ADC_SMPR1_SMP15_Msk /*!< SMP15[2:0] bits (Channel 15 Sample time selection) */
  954. #define ADC_SMPR1_SMP15_0 (0x1U << ADC_SMPR1_SMP15_Pos) /*!< 0x00008000 */
  955. #define ADC_SMPR1_SMP15_1 (0x2U << ADC_SMPR1_SMP15_Pos) /*!< 0x00010000 */
  956. #define ADC_SMPR1_SMP15_2 (0x4U << ADC_SMPR1_SMP15_Pos) /*!< 0x00020000 */
  957. #define ADC_SMPR1_SMP16_Pos (18U)
  958. #define ADC_SMPR1_SMP16_Msk (0x7U << ADC_SMPR1_SMP16_Pos) /*!< 0x001C0000 */
  959. #define ADC_SMPR1_SMP16 ADC_SMPR1_SMP16_Msk /*!< SMP16[2:0] bits (Channel 16 Sample time selection) */
  960. #define ADC_SMPR1_SMP16_0 (0x1U << ADC_SMPR1_SMP16_Pos) /*!< 0x00040000 */
  961. #define ADC_SMPR1_SMP16_1 (0x2U << ADC_SMPR1_SMP16_Pos) /*!< 0x00080000 */
  962. #define ADC_SMPR1_SMP16_2 (0x4U << ADC_SMPR1_SMP16_Pos) /*!< 0x00100000 */
  963. #define ADC_SMPR1_SMP17_Pos (21U)
  964. #define ADC_SMPR1_SMP17_Msk (0x7U << ADC_SMPR1_SMP17_Pos) /*!< 0x00E00000 */
  965. #define ADC_SMPR1_SMP17 ADC_SMPR1_SMP17_Msk /*!< SMP17[2:0] bits (Channel 17 Sample time selection) */
  966. #define ADC_SMPR1_SMP17_0 (0x1U << ADC_SMPR1_SMP17_Pos) /*!< 0x00200000 */
  967. #define ADC_SMPR1_SMP17_1 (0x2U << ADC_SMPR1_SMP17_Pos) /*!< 0x00400000 */
  968. #define ADC_SMPR1_SMP17_2 (0x4U << ADC_SMPR1_SMP17_Pos) /*!< 0x00800000 */
  969. #define ADC_SMPR1_SMP18_Pos (24U)
  970. #define ADC_SMPR1_SMP18_Msk (0x7U << ADC_SMPR1_SMP18_Pos) /*!< 0x07000000 */
  971. #define ADC_SMPR1_SMP18 ADC_SMPR1_SMP18_Msk /*!< SMP18[2:0] bits (Channel 18 Sample time selection) */
  972. #define ADC_SMPR1_SMP18_0 (0x1U << ADC_SMPR1_SMP18_Pos) /*!< 0x01000000 */
  973. #define ADC_SMPR1_SMP18_1 (0x2U << ADC_SMPR1_SMP18_Pos) /*!< 0x02000000 */
  974. #define ADC_SMPR1_SMP18_2 (0x4U << ADC_SMPR1_SMP18_Pos) /*!< 0x04000000 */
  975. /****************** Bit definition for ADC_SMPR2 register *******************/
  976. #define ADC_SMPR2_SMP0_Pos (0U)
  977. #define ADC_SMPR2_SMP0_Msk (0x7U << ADC_SMPR2_SMP0_Pos) /*!< 0x00000007 */
  978. #define ADC_SMPR2_SMP0 ADC_SMPR2_SMP0_Msk /*!< SMP0[2:0] bits (Channel 0 Sample time selection) */
  979. #define ADC_SMPR2_SMP0_0 (0x1U << ADC_SMPR2_SMP0_Pos) /*!< 0x00000001 */
  980. #define ADC_SMPR2_SMP0_1 (0x2U << ADC_SMPR2_SMP0_Pos) /*!< 0x00000002 */
  981. #define ADC_SMPR2_SMP0_2 (0x4U << ADC_SMPR2_SMP0_Pos) /*!< 0x00000004 */
  982. #define ADC_SMPR2_SMP1_Pos (3U)
  983. #define ADC_SMPR2_SMP1_Msk (0x7U << ADC_SMPR2_SMP1_Pos) /*!< 0x00000038 */
  984. #define ADC_SMPR2_SMP1 ADC_SMPR2_SMP1_Msk /*!< SMP1[2:0] bits (Channel 1 Sample time selection) */
  985. #define ADC_SMPR2_SMP1_0 (0x1U << ADC_SMPR2_SMP1_Pos) /*!< 0x00000008 */
  986. #define ADC_SMPR2_SMP1_1 (0x2U << ADC_SMPR2_SMP1_Pos) /*!< 0x00000010 */
  987. #define ADC_SMPR2_SMP1_2 (0x4U << ADC_SMPR2_SMP1_Pos) /*!< 0x00000020 */
  988. #define ADC_SMPR2_SMP2_Pos (6U)
  989. #define ADC_SMPR2_SMP2_Msk (0x7U << ADC_SMPR2_SMP2_Pos) /*!< 0x000001C0 */
  990. #define ADC_SMPR2_SMP2 ADC_SMPR2_SMP2_Msk /*!< SMP2[2:0] bits (Channel 2 Sample time selection) */
  991. #define ADC_SMPR2_SMP2_0 (0x1U << ADC_SMPR2_SMP2_Pos) /*!< 0x00000040 */
  992. #define ADC_SMPR2_SMP2_1 (0x2U << ADC_SMPR2_SMP2_Pos) /*!< 0x00000080 */
  993. #define ADC_SMPR2_SMP2_2 (0x4U << ADC_SMPR2_SMP2_Pos) /*!< 0x00000100 */
  994. #define ADC_SMPR2_SMP3_Pos (9U)
  995. #define ADC_SMPR2_SMP3_Msk (0x7U << ADC_SMPR2_SMP3_Pos) /*!< 0x00000E00 */
  996. #define ADC_SMPR2_SMP3 ADC_SMPR2_SMP3_Msk /*!< SMP3[2:0] bits (Channel 3 Sample time selection) */
  997. #define ADC_SMPR2_SMP3_0 (0x1U << ADC_SMPR2_SMP3_Pos) /*!< 0x00000200 */
  998. #define ADC_SMPR2_SMP3_1 (0x2U << ADC_SMPR2_SMP3_Pos) /*!< 0x00000400 */
  999. #define ADC_SMPR2_SMP3_2 (0x4U << ADC_SMPR2_SMP3_Pos) /*!< 0x00000800 */
  1000. #define ADC_SMPR2_SMP4_Pos (12U)
  1001. #define ADC_SMPR2_SMP4_Msk (0x7U << ADC_SMPR2_SMP4_Pos) /*!< 0x00007000 */
  1002. #define ADC_SMPR2_SMP4 ADC_SMPR2_SMP4_Msk /*!< SMP4[2:0] bits (Channel 4 Sample time selection) */
  1003. #define ADC_SMPR2_SMP4_0 (0x1U << ADC_SMPR2_SMP4_Pos) /*!< 0x00001000 */
  1004. #define ADC_SMPR2_SMP4_1 (0x2U << ADC_SMPR2_SMP4_Pos) /*!< 0x00002000 */
  1005. #define ADC_SMPR2_SMP4_2 (0x4U << ADC_SMPR2_SMP4_Pos) /*!< 0x00004000 */
  1006. #define ADC_SMPR2_SMP5_Pos (15U)
  1007. #define ADC_SMPR2_SMP5_Msk (0x7U << ADC_SMPR2_SMP5_Pos) /*!< 0x00038000 */
  1008. #define ADC_SMPR2_SMP5 ADC_SMPR2_SMP5_Msk /*!< SMP5[2:0] bits (Channel 5 Sample time selection) */
  1009. #define ADC_SMPR2_SMP5_0 (0x1U << ADC_SMPR2_SMP5_Pos) /*!< 0x00008000 */
  1010. #define ADC_SMPR2_SMP5_1 (0x2U << ADC_SMPR2_SMP5_Pos) /*!< 0x00010000 */
  1011. #define ADC_SMPR2_SMP5_2 (0x4U << ADC_SMPR2_SMP5_Pos) /*!< 0x00020000 */
  1012. #define ADC_SMPR2_SMP6_Pos (18U)
  1013. #define ADC_SMPR2_SMP6_Msk (0x7U << ADC_SMPR2_SMP6_Pos) /*!< 0x001C0000 */
  1014. #define ADC_SMPR2_SMP6 ADC_SMPR2_SMP6_Msk /*!< SMP6[2:0] bits (Channel 6 Sample time selection) */
  1015. #define ADC_SMPR2_SMP6_0 (0x1U << ADC_SMPR2_SMP6_Pos) /*!< 0x00040000 */
  1016. #define ADC_SMPR2_SMP6_1 (0x2U << ADC_SMPR2_SMP6_Pos) /*!< 0x00080000 */
  1017. #define ADC_SMPR2_SMP6_2 (0x4U << ADC_SMPR2_SMP6_Pos) /*!< 0x00100000 */
  1018. #define ADC_SMPR2_SMP7_Pos (21U)
  1019. #define ADC_SMPR2_SMP7_Msk (0x7U << ADC_SMPR2_SMP7_Pos) /*!< 0x00E00000 */
  1020. #define ADC_SMPR2_SMP7 ADC_SMPR2_SMP7_Msk /*!< SMP7[2:0] bits (Channel 7 Sample time selection) */
  1021. #define ADC_SMPR2_SMP7_0 (0x1U << ADC_SMPR2_SMP7_Pos) /*!< 0x00200000 */
  1022. #define ADC_SMPR2_SMP7_1 (0x2U << ADC_SMPR2_SMP7_Pos) /*!< 0x00400000 */
  1023. #define ADC_SMPR2_SMP7_2 (0x4U << ADC_SMPR2_SMP7_Pos) /*!< 0x00800000 */
  1024. #define ADC_SMPR2_SMP8_Pos (24U)
  1025. #define ADC_SMPR2_SMP8_Msk (0x7U << ADC_SMPR2_SMP8_Pos) /*!< 0x07000000 */
  1026. #define ADC_SMPR2_SMP8 ADC_SMPR2_SMP8_Msk /*!< SMP8[2:0] bits (Channel 8 Sample time selection) */
  1027. #define ADC_SMPR2_SMP8_0 (0x1U << ADC_SMPR2_SMP8_Pos) /*!< 0x01000000 */
  1028. #define ADC_SMPR2_SMP8_1 (0x2U << ADC_SMPR2_SMP8_Pos) /*!< 0x02000000 */
  1029. #define ADC_SMPR2_SMP8_2 (0x4U << ADC_SMPR2_SMP8_Pos) /*!< 0x04000000 */
  1030. #define ADC_SMPR2_SMP9_Pos (27U)
  1031. #define ADC_SMPR2_SMP9_Msk (0x7U << ADC_SMPR2_SMP9_Pos) /*!< 0x38000000 */
  1032. #define ADC_SMPR2_SMP9 ADC_SMPR2_SMP9_Msk /*!< SMP9[2:0] bits (Channel 9 Sample time selection) */
  1033. #define ADC_SMPR2_SMP9_0 (0x1U << ADC_SMPR2_SMP9_Pos) /*!< 0x08000000 */
  1034. #define ADC_SMPR2_SMP9_1 (0x2U << ADC_SMPR2_SMP9_Pos) /*!< 0x10000000 */
  1035. #define ADC_SMPR2_SMP9_2 (0x4U << ADC_SMPR2_SMP9_Pos) /*!< 0x20000000 */
  1036. /****************** Bit definition for ADC_JOFR1 register *******************/
  1037. #define ADC_JOFR1_JOFFSET1_Pos (0U)
  1038. #define ADC_JOFR1_JOFFSET1_Msk (0xFFFU << ADC_JOFR1_JOFFSET1_Pos) /*!< 0x00000FFF */
  1039. #define ADC_JOFR1_JOFFSET1 ADC_JOFR1_JOFFSET1_Msk /*!< Data offset for injected channel 1 */
  1040. /****************** Bit definition for ADC_JOFR2 register *******************/
  1041. #define ADC_JOFR2_JOFFSET2_Pos (0U)
  1042. #define ADC_JOFR2_JOFFSET2_Msk (0xFFFU << ADC_JOFR2_JOFFSET2_Pos) /*!< 0x00000FFF */
  1043. #define ADC_JOFR2_JOFFSET2 ADC_JOFR2_JOFFSET2_Msk /*!< Data offset for injected channel 2 */
  1044. /****************** Bit definition for ADC_JOFR3 register *******************/
  1045. #define ADC_JOFR3_JOFFSET3_Pos (0U)
  1046. #define ADC_JOFR3_JOFFSET3_Msk (0xFFFU << ADC_JOFR3_JOFFSET3_Pos) /*!< 0x00000FFF */
  1047. #define ADC_JOFR3_JOFFSET3 ADC_JOFR3_JOFFSET3_Msk /*!< Data offset for injected channel 3 */
  1048. /****************** Bit definition for ADC_JOFR4 register *******************/
  1049. #define ADC_JOFR4_JOFFSET4_Pos (0U)
  1050. #define ADC_JOFR4_JOFFSET4_Msk (0xFFFU << ADC_JOFR4_JOFFSET4_Pos) /*!< 0x00000FFF */
  1051. #define ADC_JOFR4_JOFFSET4 ADC_JOFR4_JOFFSET4_Msk /*!< Data offset for injected channel 4 */
  1052. /******************* Bit definition for ADC_HTR register ********************/
  1053. #define ADC_HTR_HT_Pos (0U)
  1054. #define ADC_HTR_HT_Msk (0xFFFU << ADC_HTR_HT_Pos) /*!< 0x00000FFF */
  1055. #define ADC_HTR_HT ADC_HTR_HT_Msk /*!< Analog watchdog high threshold */
  1056. /******************* Bit definition for ADC_LTR register ********************/
  1057. #define ADC_LTR_LT_Pos (0U)
  1058. #define ADC_LTR_LT_Msk (0xFFFU << ADC_LTR_LT_Pos) /*!< 0x00000FFF */
  1059. #define ADC_LTR_LT ADC_LTR_LT_Msk /*!< Analog watchdog low threshold */
  1060. /******************* Bit definition for ADC_SQR1 register *******************/
  1061. #define ADC_SQR1_SQ13_Pos (0U)
  1062. #define ADC_SQR1_SQ13_Msk (0x1FU << ADC_SQR1_SQ13_Pos) /*!< 0x0000001F */
  1063. #define ADC_SQR1_SQ13 ADC_SQR1_SQ13_Msk /*!< SQ13[4:0] bits (13th conversion in regular sequence) */
  1064. #define ADC_SQR1_SQ13_0 (0x01U << ADC_SQR1_SQ13_Pos) /*!< 0x00000001 */
  1065. #define ADC_SQR1_SQ13_1 (0x02U << ADC_SQR1_SQ13_Pos) /*!< 0x00000002 */
  1066. #define ADC_SQR1_SQ13_2 (0x04U << ADC_SQR1_SQ13_Pos) /*!< 0x00000004 */
  1067. #define ADC_SQR1_SQ13_3 (0x08U << ADC_SQR1_SQ13_Pos) /*!< 0x00000008 */
  1068. #define ADC_SQR1_SQ13_4 (0x10U << ADC_SQR1_SQ13_Pos) /*!< 0x00000010 */
  1069. #define ADC_SQR1_SQ14_Pos (5U)
  1070. #define ADC_SQR1_SQ14_Msk (0x1FU << ADC_SQR1_SQ14_Pos) /*!< 0x000003E0 */
  1071. #define ADC_SQR1_SQ14 ADC_SQR1_SQ14_Msk /*!< SQ14[4:0] bits (14th conversion in regular sequence) */
  1072. #define ADC_SQR1_SQ14_0 (0x01U << ADC_SQR1_SQ14_Pos) /*!< 0x00000020 */
  1073. #define ADC_SQR1_SQ14_1 (0x02U << ADC_SQR1_SQ14_Pos) /*!< 0x00000040 */
  1074. #define ADC_SQR1_SQ14_2 (0x04U << ADC_SQR1_SQ14_Pos) /*!< 0x00000080 */
  1075. #define ADC_SQR1_SQ14_3 (0x08U << ADC_SQR1_SQ14_Pos) /*!< 0x00000100 */
  1076. #define ADC_SQR1_SQ14_4 (0x10U << ADC_SQR1_SQ14_Pos) /*!< 0x00000200 */
  1077. #define ADC_SQR1_SQ15_Pos (10U)
  1078. #define ADC_SQR1_SQ15_Msk (0x1FU << ADC_SQR1_SQ15_Pos) /*!< 0x00007C00 */
  1079. #define ADC_SQR1_SQ15 ADC_SQR1_SQ15_Msk /*!< SQ15[4:0] bits (15th conversion in regular sequence) */
  1080. #define ADC_SQR1_SQ15_0 (0x01U << ADC_SQR1_SQ15_Pos) /*!< 0x00000400 */
  1081. #define ADC_SQR1_SQ15_1 (0x02U << ADC_SQR1_SQ15_Pos) /*!< 0x00000800 */
  1082. #define ADC_SQR1_SQ15_2 (0x04U << ADC_SQR1_SQ15_Pos) /*!< 0x00001000 */
  1083. #define ADC_SQR1_SQ15_3 (0x08U << ADC_SQR1_SQ15_Pos) /*!< 0x00002000 */
  1084. #define ADC_SQR1_SQ15_4 (0x10U << ADC_SQR1_SQ15_Pos) /*!< 0x00004000 */
  1085. #define ADC_SQR1_SQ16_Pos (15U)
  1086. #define ADC_SQR1_SQ16_Msk (0x1FU << ADC_SQR1_SQ16_Pos) /*!< 0x000F8000 */
  1087. #define ADC_SQR1_SQ16 ADC_SQR1_SQ16_Msk /*!< SQ16[4:0] bits (16th conversion in regular sequence) */
  1088. #define ADC_SQR1_SQ16_0 (0x01U << ADC_SQR1_SQ16_Pos) /*!< 0x00008000 */
  1089. #define ADC_SQR1_SQ16_1 (0x02U << ADC_SQR1_SQ16_Pos) /*!< 0x00010000 */
  1090. #define ADC_SQR1_SQ16_2 (0x04U << ADC_SQR1_SQ16_Pos) /*!< 0x00020000 */
  1091. #define ADC_SQR1_SQ16_3 (0x08U << ADC_SQR1_SQ16_Pos) /*!< 0x00040000 */
  1092. #define ADC_SQR1_SQ16_4 (0x10U << ADC_SQR1_SQ16_Pos) /*!< 0x00080000 */
  1093. #define ADC_SQR1_L_Pos (20U)
  1094. #define ADC_SQR1_L_Msk (0xFU << ADC_SQR1_L_Pos) /*!< 0x00F00000 */
  1095. #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< L[3:0] bits (Regular channel sequence length) */
  1096. #define ADC_SQR1_L_0 (0x1U << ADC_SQR1_L_Pos) /*!< 0x00100000 */
  1097. #define ADC_SQR1_L_1 (0x2U << ADC_SQR1_L_Pos) /*!< 0x00200000 */
  1098. #define ADC_SQR1_L_2 (0x4U << ADC_SQR1_L_Pos) /*!< 0x00400000 */
  1099. #define ADC_SQR1_L_3 (0x8U << ADC_SQR1_L_Pos) /*!< 0x00800000 */
  1100. /******************* Bit definition for ADC_SQR2 register *******************/
  1101. #define ADC_SQR2_SQ7_Pos (0U)
  1102. #define ADC_SQR2_SQ7_Msk (0x1FU << ADC_SQR2_SQ7_Pos) /*!< 0x0000001F */
  1103. #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< SQ7[4:0] bits (7th conversion in regular sequence) */
  1104. #define ADC_SQR2_SQ7_0 (0x01U << ADC_SQR2_SQ7_Pos) /*!< 0x00000001 */
  1105. #define ADC_SQR2_SQ7_1 (0x02U << ADC_SQR2_SQ7_Pos) /*!< 0x00000002 */
  1106. #define ADC_SQR2_SQ7_2 (0x04U << ADC_SQR2_SQ7_Pos) /*!< 0x00000004 */
  1107. #define ADC_SQR2_SQ7_3 (0x08U << ADC_SQR2_SQ7_Pos) /*!< 0x00000008 */
  1108. #define ADC_SQR2_SQ7_4 (0x10U << ADC_SQR2_SQ7_Pos) /*!< 0x00000010 */
  1109. #define ADC_SQR2_SQ8_Pos (5U)
  1110. #define ADC_SQR2_SQ8_Msk (0x1FU << ADC_SQR2_SQ8_Pos) /*!< 0x000003E0 */
  1111. #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< SQ8[4:0] bits (8th conversion in regular sequence) */
  1112. #define ADC_SQR2_SQ8_0 (0x01U << ADC_SQR2_SQ8_Pos) /*!< 0x00000020 */
  1113. #define ADC_SQR2_SQ8_1 (0x02U << ADC_SQR2_SQ8_Pos) /*!< 0x00000040 */
  1114. #define ADC_SQR2_SQ8_2 (0x04U << ADC_SQR2_SQ8_Pos) /*!< 0x00000080 */
  1115. #define ADC_SQR2_SQ8_3 (0x08U << ADC_SQR2_SQ8_Pos) /*!< 0x00000100 */
  1116. #define ADC_SQR2_SQ8_4 (0x10U << ADC_SQR2_SQ8_Pos) /*!< 0x00000200 */
  1117. #define ADC_SQR2_SQ9_Pos (10U)
  1118. #define ADC_SQR2_SQ9_Msk (0x1FU << ADC_SQR2_SQ9_Pos) /*!< 0x00007C00 */
  1119. #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< SQ9[4:0] bits (9th conversion in regular sequence) */
  1120. #define ADC_SQR2_SQ9_0 (0x01U << ADC_SQR2_SQ9_Pos) /*!< 0x00000400 */
  1121. #define ADC_SQR2_SQ9_1 (0x02U << ADC_SQR2_SQ9_Pos) /*!< 0x00000800 */
  1122. #define ADC_SQR2_SQ9_2 (0x04U << ADC_SQR2_SQ9_Pos) /*!< 0x00001000 */
  1123. #define ADC_SQR2_SQ9_3 (0x08U << ADC_SQR2_SQ9_Pos) /*!< 0x00002000 */
  1124. #define ADC_SQR2_SQ9_4 (0x10U << ADC_SQR2_SQ9_Pos) /*!< 0x00004000 */
  1125. #define ADC_SQR2_SQ10_Pos (15U)
  1126. #define ADC_SQR2_SQ10_Msk (0x1FU << ADC_SQR2_SQ10_Pos) /*!< 0x000F8000 */
  1127. #define ADC_SQR2_SQ10 ADC_SQR2_SQ10_Msk /*!< SQ10[4:0] bits (10th conversion in regular sequence) */
  1128. #define ADC_SQR2_SQ10_0 (0x01U << ADC_SQR2_SQ10_Pos) /*!< 0x00008000 */
  1129. #define ADC_SQR2_SQ10_1 (0x02U << ADC_SQR2_SQ10_Pos) /*!< 0x00010000 */
  1130. #define ADC_SQR2_SQ10_2 (0x04U << ADC_SQR2_SQ10_Pos) /*!< 0x00020000 */
  1131. #define ADC_SQR2_SQ10_3 (0x08U << ADC_SQR2_SQ10_Pos) /*!< 0x00040000 */
  1132. #define ADC_SQR2_SQ10_4 (0x10U << ADC_SQR2_SQ10_Pos) /*!< 0x00080000 */
  1133. #define ADC_SQR2_SQ11_Pos (20U)
  1134. #define ADC_SQR2_SQ11_Msk (0x1FU << ADC_SQR2_SQ11_Pos) /*!< 0x01F00000 */
  1135. #define ADC_SQR2_SQ11 ADC_SQR2_SQ11_Msk /*!< SQ11[4:0] bits (11th conversion in regular sequence) */
  1136. #define ADC_SQR2_SQ11_0 (0x01U << ADC_SQR2_SQ11_Pos) /*!< 0x00100000 */
  1137. #define ADC_SQR2_SQ11_1 (0x02U << ADC_SQR2_SQ11_Pos) /*!< 0x00200000 */
  1138. #define ADC_SQR2_SQ11_2 (0x04U << ADC_SQR2_SQ11_Pos) /*!< 0x00400000 */
  1139. #define ADC_SQR2_SQ11_3 (0x08U << ADC_SQR2_SQ11_Pos) /*!< 0x00800000 */
  1140. #define ADC_SQR2_SQ11_4 (0x10U << ADC_SQR2_SQ11_Pos) /*!< 0x01000000 */
  1141. #define ADC_SQR2_SQ12_Pos (25U)
  1142. #define ADC_SQR2_SQ12_Msk (0x1FU << ADC_SQR2_SQ12_Pos) /*!< 0x3E000000 */
  1143. #define ADC_SQR2_SQ12 ADC_SQR2_SQ12_Msk /*!< SQ12[4:0] bits (12th conversion in regular sequence) */
  1144. #define ADC_SQR2_SQ12_0 (0x01U << ADC_SQR2_SQ12_Pos) /*!< 0x02000000 */
  1145. #define ADC_SQR2_SQ12_1 (0x02U << ADC_SQR2_SQ12_Pos) /*!< 0x04000000 */
  1146. #define ADC_SQR2_SQ12_2 (0x04U << ADC_SQR2_SQ12_Pos) /*!< 0x08000000 */
  1147. #define ADC_SQR2_SQ12_3 (0x08U << ADC_SQR2_SQ12_Pos) /*!< 0x10000000 */
  1148. #define ADC_SQR2_SQ12_4 (0x10U << ADC_SQR2_SQ12_Pos) /*!< 0x20000000 */
  1149. /******************* Bit definition for ADC_SQR3 register *******************/
  1150. #define ADC_SQR3_SQ1_Pos (0U)
  1151. #define ADC_SQR3_SQ1_Msk (0x1FU << ADC_SQR3_SQ1_Pos) /*!< 0x0000001F */
  1152. #define ADC_SQR3_SQ1 ADC_SQR3_SQ1_Msk /*!< SQ1[4:0] bits (1st conversion in regular sequence) */
  1153. #define ADC_SQR3_SQ1_0 (0x01U << ADC_SQR3_SQ1_Pos) /*!< 0x00000001 */
  1154. #define ADC_SQR3_SQ1_1 (0x02U << ADC_SQR3_SQ1_Pos) /*!< 0x00000002 */
  1155. #define ADC_SQR3_SQ1_2 (0x04U << ADC_SQR3_SQ1_Pos) /*!< 0x00000004 */
  1156. #define ADC_SQR3_SQ1_3 (0x08U << ADC_SQR3_SQ1_Pos) /*!< 0x00000008 */
  1157. #define ADC_SQR3_SQ1_4 (0x10U << ADC_SQR3_SQ1_Pos) /*!< 0x00000010 */
  1158. #define ADC_SQR3_SQ2_Pos (5U)
  1159. #define ADC_SQR3_SQ2_Msk (0x1FU << ADC_SQR3_SQ2_Pos) /*!< 0x000003E0 */
  1160. #define ADC_SQR3_SQ2 ADC_SQR3_SQ2_Msk /*!< SQ2[4:0] bits (2nd conversion in regular sequence) */
  1161. #define ADC_SQR3_SQ2_0 (0x01U << ADC_SQR3_SQ2_Pos) /*!< 0x00000020 */
  1162. #define ADC_SQR3_SQ2_1 (0x02U << ADC_SQR3_SQ2_Pos) /*!< 0x00000040 */
  1163. #define ADC_SQR3_SQ2_2 (0x04U << ADC_SQR3_SQ2_Pos) /*!< 0x00000080 */
  1164. #define ADC_SQR3_SQ2_3 (0x08U << ADC_SQR3_SQ2_Pos) /*!< 0x00000100 */
  1165. #define ADC_SQR3_SQ2_4 (0x10U << ADC_SQR3_SQ2_Pos) /*!< 0x00000200 */
  1166. #define ADC_SQR3_SQ3_Pos (10U)
  1167. #define ADC_SQR3_SQ3_Msk (0x1FU << ADC_SQR3_SQ3_Pos) /*!< 0x00007C00 */
  1168. #define ADC_SQR3_SQ3 ADC_SQR3_SQ3_Msk /*!< SQ3[4:0] bits (3rd conversion in regular sequence) */
  1169. #define ADC_SQR3_SQ3_0 (0x01U << ADC_SQR3_SQ3_Pos) /*!< 0x00000400 */
  1170. #define ADC_SQR3_SQ3_1 (0x02U << ADC_SQR3_SQ3_Pos) /*!< 0x00000800 */
  1171. #define ADC_SQR3_SQ3_2 (0x04U << ADC_SQR3_SQ3_Pos) /*!< 0x00001000 */
  1172. #define ADC_SQR3_SQ3_3 (0x08U << ADC_SQR3_SQ3_Pos) /*!< 0x00002000 */
  1173. #define ADC_SQR3_SQ3_4 (0x10U << ADC_SQR3_SQ3_Pos) /*!< 0x00004000 */
  1174. #define ADC_SQR3_SQ4_Pos (15U)
  1175. #define ADC_SQR3_SQ4_Msk (0x1FU << ADC_SQR3_SQ4_Pos) /*!< 0x000F8000 */
  1176. #define ADC_SQR3_SQ4 ADC_SQR3_SQ4_Msk /*!< SQ4[4:0] bits (4th conversion in regular sequence) */
  1177. #define ADC_SQR3_SQ4_0 (0x01U << ADC_SQR3_SQ4_Pos) /*!< 0x00008000 */
  1178. #define ADC_SQR3_SQ4_1 (0x02U << ADC_SQR3_SQ4_Pos) /*!< 0x00010000 */
  1179. #define ADC_SQR3_SQ4_2 (0x04U << ADC_SQR3_SQ4_Pos) /*!< 0x00020000 */
  1180. #define ADC_SQR3_SQ4_3 (0x08U << ADC_SQR3_SQ4_Pos) /*!< 0x00040000 */
  1181. #define ADC_SQR3_SQ4_4 (0x10U << ADC_SQR3_SQ4_Pos) /*!< 0x00080000 */
  1182. #define ADC_SQR3_SQ5_Pos (20U)
  1183. #define ADC_SQR3_SQ5_Msk (0x1FU << ADC_SQR3_SQ5_Pos) /*!< 0x01F00000 */
  1184. #define ADC_SQR3_SQ5 ADC_SQR3_SQ5_Msk /*!< SQ5[4:0] bits (5th conversion in regular sequence) */
  1185. #define ADC_SQR3_SQ5_0 (0x01U << ADC_SQR3_SQ5_Pos) /*!< 0x00100000 */
  1186. #define ADC_SQR3_SQ5_1 (0x02U << ADC_SQR3_SQ5_Pos) /*!< 0x00200000 */
  1187. #define ADC_SQR3_SQ5_2 (0x04U << ADC_SQR3_SQ5_Pos) /*!< 0x00400000 */
  1188. #define ADC_SQR3_SQ5_3 (0x08U << ADC_SQR3_SQ5_Pos) /*!< 0x00800000 */
  1189. #define ADC_SQR3_SQ5_4 (0x10U << ADC_SQR3_SQ5_Pos) /*!< 0x01000000 */
  1190. #define ADC_SQR3_SQ6_Pos (25U)
  1191. #define ADC_SQR3_SQ6_Msk (0x1FU << ADC_SQR3_SQ6_Pos) /*!< 0x3E000000 */
  1192. #define ADC_SQR3_SQ6 ADC_SQR3_SQ6_Msk /*!< SQ6[4:0] bits (6th conversion in regular sequence) */
  1193. #define ADC_SQR3_SQ6_0 (0x01U << ADC_SQR3_SQ6_Pos) /*!< 0x02000000 */
  1194. #define ADC_SQR3_SQ6_1 (0x02U << ADC_SQR3_SQ6_Pos) /*!< 0x04000000 */
  1195. #define ADC_SQR3_SQ6_2 (0x04U << ADC_SQR3_SQ6_Pos) /*!< 0x08000000 */
  1196. #define ADC_SQR3_SQ6_3 (0x08U << ADC_SQR3_SQ6_Pos) /*!< 0x10000000 */
  1197. #define ADC_SQR3_SQ6_4 (0x10U << ADC_SQR3_SQ6_Pos) /*!< 0x20000000 */
  1198. /******************* Bit definition for ADC_JSQR register *******************/
  1199. #define ADC_JSQR_JSQ1_Pos (0U)
  1200. #define ADC_JSQR_JSQ1_Msk (0x1FU << ADC_JSQR_JSQ1_Pos) /*!< 0x0000001F */
  1201. #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< JSQ1[4:0] bits (1st conversion in injected sequence) */
  1202. #define ADC_JSQR_JSQ1_0 (0x01U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000001 */
  1203. #define ADC_JSQR_JSQ1_1 (0x02U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000002 */
  1204. #define ADC_JSQR_JSQ1_2 (0x04U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000004 */
  1205. #define ADC_JSQR_JSQ1_3 (0x08U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000008 */
  1206. #define ADC_JSQR_JSQ1_4 (0x10U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000010 */
  1207. #define ADC_JSQR_JSQ2_Pos (5U)
  1208. #define ADC_JSQR_JSQ2_Msk (0x1FU << ADC_JSQR_JSQ2_Pos) /*!< 0x000003E0 */
  1209. #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< JSQ2[4:0] bits (2nd conversion in injected sequence) */
  1210. #define ADC_JSQR_JSQ2_0 (0x01U << ADC_JSQR_JSQ2_Pos) /*!< 0x00000020 */
  1211. #define ADC_JSQR_JSQ2_1 (0x02U << ADC_JSQR_JSQ2_Pos) /*!< 0x00000040 */
  1212. #define ADC_JSQR_JSQ2_2 (0x04U << ADC_JSQR_JSQ2_Pos) /*!< 0x00000080 */
  1213. #define ADC_JSQR_JSQ2_3 (0x08U << ADC_JSQR_JSQ2_Pos) /*!< 0x00000100 */
  1214. #define ADC_JSQR_JSQ2_4 (0x10U << ADC_JSQR_JSQ2_Pos) /*!< 0x00000200 */
  1215. #define ADC_JSQR_JSQ3_Pos (10U)
  1216. #define ADC_JSQR_JSQ3_Msk (0x1FU << ADC_JSQR_JSQ3_Pos) /*!< 0x00007C00 */
  1217. #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< JSQ3[4:0] bits (3rd conversion in injected sequence) */
  1218. #define ADC_JSQR_JSQ3_0 (0x01U << ADC_JSQR_JSQ3_Pos) /*!< 0x00000400 */
  1219. #define ADC_JSQR_JSQ3_1 (0x02U << ADC_JSQR_JSQ3_Pos) /*!< 0x00000800 */
  1220. #define ADC_JSQR_JSQ3_2 (0x04U << ADC_JSQR_JSQ3_Pos) /*!< 0x00001000 */
  1221. #define ADC_JSQR_JSQ3_3 (0x08U << ADC_JSQR_JSQ3_Pos) /*!< 0x00002000 */
  1222. #define ADC_JSQR_JSQ3_4 (0x10U << ADC_JSQR_JSQ3_Pos) /*!< 0x00004000 */
  1223. #define ADC_JSQR_JSQ4_Pos (15U)
  1224. #define ADC_JSQR_JSQ4_Msk (0x1FU << ADC_JSQR_JSQ4_Pos) /*!< 0x000F8000 */
  1225. #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< JSQ4[4:0] bits (4th conversion in injected sequence) */
  1226. #define ADC_JSQR_JSQ4_0 (0x01U << ADC_JSQR_JSQ4_Pos) /*!< 0x00008000 */
  1227. #define ADC_JSQR_JSQ4_1 (0x02U << ADC_JSQR_JSQ4_Pos) /*!< 0x00010000 */
  1228. #define ADC_JSQR_JSQ4_2 (0x04U << ADC_JSQR_JSQ4_Pos) /*!< 0x00020000 */
  1229. #define ADC_JSQR_JSQ4_3 (0x08U << ADC_JSQR_JSQ4_Pos) /*!< 0x00040000 */
  1230. #define ADC_JSQR_JSQ4_4 (0x10U << ADC_JSQR_JSQ4_Pos) /*!< 0x00080000 */
  1231. #define ADC_JSQR_JL_Pos (20U)
  1232. #define ADC_JSQR_JL_Msk (0x3U << ADC_JSQR_JL_Pos) /*!< 0x00300000 */
  1233. #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< JL[1:0] bits (Injected Sequence length) */
  1234. #define ADC_JSQR_JL_0 (0x1U << ADC_JSQR_JL_Pos) /*!< 0x00100000 */
  1235. #define ADC_JSQR_JL_1 (0x2U << ADC_JSQR_JL_Pos) /*!< 0x00200000 */
  1236. /******************* Bit definition for ADC_JDR1 register *******************/
  1237. #define ADC_JDR1_JDATA ((uint16_t)0xFFFFU) /*!< Injected data */
  1238. /******************* Bit definition for ADC_JDR2 register *******************/
  1239. #define ADC_JDR2_JDATA ((uint16_t)0xFFFFU) /*!< Injected data */
  1240. /******************* Bit definition for ADC_JDR3 register *******************/
  1241. #define ADC_JDR3_JDATA ((uint16_t)0xFFFFU) /*!< Injected data */
  1242. /******************* Bit definition for ADC_JDR4 register *******************/
  1243. #define ADC_JDR4_JDATA ((uint16_t)0xFFFFU) /*!< Injected data */
  1244. /******************** Bit definition for ADC_DR register ********************/
  1245. #define ADC_DR_DATA_Pos (0U)
  1246. #define ADC_DR_DATA_Msk (0xFFFFU << ADC_DR_DATA_Pos) /*!< 0x0000FFFF */
  1247. #define ADC_DR_DATA ADC_DR_DATA_Msk /*!< Regular data */
  1248. /******************************************************************************/
  1249. /* */
  1250. /* Analog Comparators (COMP) */
  1251. /* */
  1252. /******************************************************************************/
  1253. #define COMP_V1_1_0_0 /*!< Comparator IP version */
  1254. /*********************** Bit definition for COMP_CSR register ***************/
  1255. /* COMP1 bits definition */
  1256. #define COMP_CSR_COMP1EN_Pos (0U)
  1257. #define COMP_CSR_COMP1EN_Msk (0x1U << COMP_CSR_COMP1EN_Pos) /*!< 0x00000001 */
  1258. #define COMP_CSR_COMP1EN COMP_CSR_COMP1EN_Msk /*!< COMP1 enable */
  1259. #define COMP_CSR_COMP1SW1_Pos (1U)
  1260. #define COMP_CSR_COMP1SW1_Msk (0x1U << COMP_CSR_COMP1SW1_Pos) /*!< 0x00000002 */
  1261. #define COMP_CSR_COMP1SW1 COMP_CSR_COMP1SW1_Msk /*!< SW1 switch control */
  1262. #define COMP_CSR_COMP1MODE_Pos (2U)
  1263. #define COMP_CSR_COMP1MODE_Msk (0x3U << COMP_CSR_COMP1MODE_Pos) /*!< 0x0000000C */
  1264. #define COMP_CSR_COMP1MODE COMP_CSR_COMP1MODE_Msk /*!< COMP1 power mode */
  1265. #define COMP_CSR_COMP1MODE_0 (0x1U << COMP_CSR_COMP1MODE_Pos) /*!< 0x00000004 */
  1266. #define COMP_CSR_COMP1MODE_1 (0x2U << COMP_CSR_COMP1MODE_Pos) /*!< 0x00000008 */
  1267. #define COMP_CSR_COMP1INSEL_Pos (4U)
  1268. #define COMP_CSR_COMP1INSEL_Msk (0x7U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000070 */
  1269. #define COMP_CSR_COMP1INSEL COMP_CSR_COMP1INSEL_Msk /*!< COMP1 inverting input select */
  1270. #define COMP_CSR_COMP1INSEL_0 (0x1U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000010 */
  1271. #define COMP_CSR_COMP1INSEL_1 (0x2U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000020 */
  1272. #define COMP_CSR_COMP1INSEL_2 (0x4U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000040 */
  1273. #define COMP_CSR_COMP1OUTSEL_Pos (8U)
  1274. #define COMP_CSR_COMP1OUTSEL_Msk (0x7U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000700 */
  1275. #define COMP_CSR_COMP1OUTSEL COMP_CSR_COMP1OUTSEL_Msk /*!< COMP1 output select */
  1276. #define COMP_CSR_COMP1OUTSEL_0 (0x1U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000100 */
  1277. #define COMP_CSR_COMP1OUTSEL_1 (0x2U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000200 */
  1278. #define COMP_CSR_COMP1OUTSEL_2 (0x4U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000400 */
  1279. #define COMP_CSR_COMP1POL_Pos (11U)
  1280. #define COMP_CSR_COMP1POL_Msk (0x1U << COMP_CSR_COMP1POL_Pos) /*!< 0x00000800 */
  1281. #define COMP_CSR_COMP1POL COMP_CSR_COMP1POL_Msk /*!< COMP1 output polarity */
  1282. #define COMP_CSR_COMP1HYST_Pos (12U)
  1283. #define COMP_CSR_COMP1HYST_Msk (0x3U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00003000 */
  1284. #define COMP_CSR_COMP1HYST COMP_CSR_COMP1HYST_Msk /*!< COMP1 hysteresis */
  1285. #define COMP_CSR_COMP1HYST_0 (0x1U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00001000 */
  1286. #define COMP_CSR_COMP1HYST_1 (0x2U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00002000 */
  1287. #define COMP_CSR_COMP1OUT_Pos (14U)
  1288. #define COMP_CSR_COMP1OUT_Msk (0x1U << COMP_CSR_COMP1OUT_Pos) /*!< 0x00004000 */
  1289. #define COMP_CSR_COMP1OUT COMP_CSR_COMP1OUT_Msk /*!< COMP1 output level */
  1290. #define COMP_CSR_COMP1LOCK_Pos (15U)
  1291. #define COMP_CSR_COMP1LOCK_Msk (0x1U << COMP_CSR_COMP1LOCK_Pos) /*!< 0x00008000 */
  1292. #define COMP_CSR_COMP1LOCK COMP_CSR_COMP1LOCK_Msk /*!< COMP1 lock */
  1293. /* COMP2 bits definition */
  1294. #define COMP_CSR_COMP2EN_Pos (16U)
  1295. #define COMP_CSR_COMP2EN_Msk (0x1U << COMP_CSR_COMP2EN_Pos) /*!< 0x00010000 */
  1296. #define COMP_CSR_COMP2EN COMP_CSR_COMP2EN_Msk /*!< COMP2 enable */
  1297. #define COMP_CSR_COMP2MODE_Pos (18U)
  1298. #define COMP_CSR_COMP2MODE_Msk (0x3U << COMP_CSR_COMP2MODE_Pos) /*!< 0x000C0000 */
  1299. #define COMP_CSR_COMP2MODE COMP_CSR_COMP2MODE_Msk /*!< COMP2 power mode */
  1300. #define COMP_CSR_COMP2MODE_0 (0x1U << COMP_CSR_COMP2MODE_Pos) /*!< 0x00040000 */
  1301. #define COMP_CSR_COMP2MODE_1 (0x2U << COMP_CSR_COMP2MODE_Pos) /*!< 0x00080000 */
  1302. #define COMP_CSR_COMP2INSEL_Pos (20U)
  1303. #define COMP_CSR_COMP2INSEL_Msk (0x7U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00700000 */
  1304. #define COMP_CSR_COMP2INSEL COMP_CSR_COMP2INSEL_Msk /*!< COMP2 inverting input select */
  1305. #define COMP_CSR_COMP2INSEL_0 (0x1U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00100000 */
  1306. #define COMP_CSR_COMP2INSEL_1 (0x2U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00200000 */
  1307. #define COMP_CSR_COMP2INSEL_2 (0x4U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00400000 */
  1308. #define COMP_CSR_WNDWEN_Pos (23U)
  1309. #define COMP_CSR_WNDWEN_Msk (0x1U << COMP_CSR_WNDWEN_Pos) /*!< 0x00800000 */
  1310. #define COMP_CSR_WNDWEN COMP_CSR_WNDWEN_Msk /*!< Comparators window mode enable */
  1311. #define COMP_CSR_COMP2OUTSEL_Pos (24U)
  1312. #define COMP_CSR_COMP2OUTSEL_Msk (0x7U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x07000000 */
  1313. #define COMP_CSR_COMP2OUTSEL COMP_CSR_COMP2OUTSEL_Msk /*!< COMP2 output select */
  1314. #define COMP_CSR_COMP2OUTSEL_0 (0x1U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x01000000 */
  1315. #define COMP_CSR_COMP2OUTSEL_1 (0x2U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x02000000 */
  1316. #define COMP_CSR_COMP2OUTSEL_2 (0x4U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x04000000 */
  1317. #define COMP_CSR_COMP2POL_Pos (27U)
  1318. #define COMP_CSR_COMP2POL_Msk (0x1U << COMP_CSR_COMP2POL_Pos) /*!< 0x08000000 */
  1319. #define COMP_CSR_COMP2POL COMP_CSR_COMP2POL_Msk /*!< COMP2 output polarity */
  1320. #define COMP_CSR_COMP2HYST_Pos (28U)
  1321. #define COMP_CSR_COMP2HYST_Msk (0x3U << COMP_CSR_COMP2HYST_Pos) /*!< 0x30000000 */
  1322. #define COMP_CSR_COMP2HYST COMP_CSR_COMP2HYST_Msk /*!< COMP2 hysteresis */
  1323. #define COMP_CSR_COMP2HYST_0 (0x1U << COMP_CSR_COMP2HYST_Pos) /*!< 0x10000000 */
  1324. #define COMP_CSR_COMP2HYST_1 (0x2U << COMP_CSR_COMP2HYST_Pos) /*!< 0x20000000 */
  1325. #define COMP_CSR_COMP2OUT_Pos (30U)
  1326. #define COMP_CSR_COMP2OUT_Msk (0x1U << COMP_CSR_COMP2OUT_Pos) /*!< 0x40000000 */
  1327. #define COMP_CSR_COMP2OUT COMP_CSR_COMP2OUT_Msk /*!< COMP2 output level */
  1328. #define COMP_CSR_COMP2LOCK_Pos (31U)
  1329. #define COMP_CSR_COMP2LOCK_Msk (0x1U << COMP_CSR_COMP2LOCK_Pos) /*!< 0x80000000 */
  1330. #define COMP_CSR_COMP2LOCK COMP_CSR_COMP2LOCK_Msk /*!< COMP2 lock */
  1331. /* COMPx bits definition */
  1332. #define COMP_CSR_COMPxEN_Pos (0U)
  1333. #define COMP_CSR_COMPxEN_Msk (0x1U << COMP_CSR_COMPxEN_Pos) /*!< 0x00000001 */
  1334. #define COMP_CSR_COMPxEN COMP_CSR_COMPxEN_Msk /*!< COMPx enable */
  1335. #define COMP_CSR_COMPxSW1_Pos (1U)
  1336. #define COMP_CSR_COMPxSW1_Msk (0x1U << COMP_CSR_COMPxSW1_Pos) /*!< 0x00000002 */
  1337. #define COMP_CSR_COMPxSW1 COMP_CSR_COMPxSW1_Msk /*!< COMPx SW1 switch control */
  1338. #define COMP_CSR_COMPxMODE_Pos (2U)
  1339. #define COMP_CSR_COMPxMODE_Msk (0x3U << COMP_CSR_COMPxMODE_Pos) /*!< 0x0000000C */
  1340. #define COMP_CSR_COMPxMODE COMP_CSR_COMPxMODE_Msk /*!< COMPx power mode */
  1341. #define COMP_CSR_COMPxMODE_0 (0x1U << COMP_CSR_COMPxMODE_Pos) /*!< 0x00000004 */
  1342. #define COMP_CSR_COMPxMODE_1 (0x2U << COMP_CSR_COMPxMODE_Pos) /*!< 0x00000008 */
  1343. #define COMP_CSR_COMPxINSEL_Pos (4U)
  1344. #define COMP_CSR_COMPxINSEL_Msk (0x7U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000070 */
  1345. #define COMP_CSR_COMPxINSEL COMP_CSR_COMPxINSEL_Msk /*!< COMPx inverting input select */
  1346. #define COMP_CSR_COMPxINSEL_0 (0x1U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000010 */
  1347. #define COMP_CSR_COMPxINSEL_1 (0x2U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000020 */
  1348. #define COMP_CSR_COMPxINSEL_2 (0x4U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000040 */
  1349. #define COMP_CSR_COMPxWNDWEN_Pos (7U)
  1350. #define COMP_CSR_COMPxWNDWEN_Msk (0x1U << COMP_CSR_COMPxWNDWEN_Pos) /*!< 0x00000080 */
  1351. #define COMP_CSR_COMPxWNDWEN COMP_CSR_COMPxWNDWEN_Msk /*!< COMPx window mode enable */
  1352. #define COMP_CSR_COMPxOUTSEL_Pos (8U)
  1353. #define COMP_CSR_COMPxOUTSEL_Msk (0x7U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000700 */
  1354. #define COMP_CSR_COMPxOUTSEL COMP_CSR_COMPxOUTSEL_Msk /*!< COMPx output select */
  1355. #define COMP_CSR_COMPxOUTSEL_0 (0x1U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000100 */
  1356. #define COMP_CSR_COMPxOUTSEL_1 (0x2U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000200 */
  1357. #define COMP_CSR_COMPxOUTSEL_2 (0x4U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000400 */
  1358. #define COMP_CSR_COMPxPOL_Pos (11U)
  1359. #define COMP_CSR_COMPxPOL_Msk (0x1U << COMP_CSR_COMPxPOL_Pos) /*!< 0x00000800 */
  1360. #define COMP_CSR_COMPxPOL COMP_CSR_COMPxPOL_Msk /*!< COMPx output polarity */
  1361. #define COMP_CSR_COMPxHYST_Pos (12U)
  1362. #define COMP_CSR_COMPxHYST_Msk (0x3U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00003000 */
  1363. #define COMP_CSR_COMPxHYST COMP_CSR_COMPxHYST_Msk /*!< COMPx hysteresis */
  1364. #define COMP_CSR_COMPxHYST_0 (0x1U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00001000 */
  1365. #define COMP_CSR_COMPxHYST_1 (0x2U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00002000 */
  1366. #define COMP_CSR_COMPxOUT_Pos (14U)
  1367. #define COMP_CSR_COMPxOUT_Msk (0x1U << COMP_CSR_COMPxOUT_Pos) /*!< 0x00004000 */
  1368. #define COMP_CSR_COMPxOUT COMP_CSR_COMPxOUT_Msk /*!< COMPx output level */
  1369. #define COMP_CSR_COMPxLOCK_Pos (15U)
  1370. #define COMP_CSR_COMPxLOCK_Msk (0x1U << COMP_CSR_COMPxLOCK_Pos) /*!< 0x00008000 */
  1371. #define COMP_CSR_COMPxLOCK COMP_CSR_COMPxLOCK_Msk /*!< COMPx lock */
  1372. /******************************************************************************/
  1373. /* */
  1374. /* Controller Area Network (CAN ) */
  1375. /* */
  1376. /******************************************************************************/
  1377. /******************* Bit definition for CAN_MCR register ********************/
  1378. #define CAN_MCR_INRQ_Pos (0U)
  1379. #define CAN_MCR_INRQ_Msk (0x1U << CAN_MCR_INRQ_Pos) /*!< 0x00000001 */
  1380. #define CAN_MCR_INRQ CAN_MCR_INRQ_Msk /*!<Initialization Request */
  1381. #define CAN_MCR_SLEEP_Pos (1U)
  1382. #define CAN_MCR_SLEEP_Msk (0x1U << CAN_MCR_SLEEP_Pos) /*!< 0x00000002 */
  1383. #define CAN_MCR_SLEEP CAN_MCR_SLEEP_Msk /*!<Sleep Mode Request */
  1384. #define CAN_MCR_TXFP_Pos (2U)
  1385. #define CAN_MCR_TXFP_Msk (0x1U << CAN_MCR_TXFP_Pos) /*!< 0x00000004 */
  1386. #define CAN_MCR_TXFP CAN_MCR_TXFP_Msk /*!<Transmit FIFO Priority */
  1387. #define CAN_MCR_RFLM_Pos (3U)
  1388. #define CAN_MCR_RFLM_Msk (0x1U << CAN_MCR_RFLM_Pos) /*!< 0x00000008 */
  1389. #define CAN_MCR_RFLM CAN_MCR_RFLM_Msk /*!<Receive FIFO Locked Mode */
  1390. #define CAN_MCR_NART_Pos (4U)
  1391. #define CAN_MCR_NART_Msk (0x1U << CAN_MCR_NART_Pos) /*!< 0x00000010 */
  1392. #define CAN_MCR_NART CAN_MCR_NART_Msk /*!<No Automatic Retransmission */
  1393. #define CAN_MCR_AWUM_Pos (5U)
  1394. #define CAN_MCR_AWUM_Msk (0x1U << CAN_MCR_AWUM_Pos) /*!< 0x00000020 */
  1395. #define CAN_MCR_AWUM CAN_MCR_AWUM_Msk /*!<Automatic Wakeup Mode */
  1396. #define CAN_MCR_ABOM_Pos (6U)
  1397. #define CAN_MCR_ABOM_Msk (0x1U << CAN_MCR_ABOM_Pos) /*!< 0x00000040 */
  1398. #define CAN_MCR_ABOM CAN_MCR_ABOM_Msk /*!<Automatic Bus-Off Management */
  1399. #define CAN_MCR_TTCM_Pos (7U)
  1400. #define CAN_MCR_TTCM_Msk (0x1U << CAN_MCR_TTCM_Pos) /*!< 0x00000080 */
  1401. #define CAN_MCR_TTCM CAN_MCR_TTCM_Msk /*!<Time Triggered Communication Mode */
  1402. #define CAN_MCR_RESET_Pos (15U)
  1403. #define CAN_MCR_RESET_Msk (0x1U << CAN_MCR_RESET_Pos) /*!< 0x00008000 */
  1404. #define CAN_MCR_RESET CAN_MCR_RESET_Msk /*!<bxCAN software master reset */
  1405. /******************* Bit definition for CAN_MSR register ********************/
  1406. #define CAN_MSR_INAK_Pos (0U)
  1407. #define CAN_MSR_INAK_Msk (0x1U << CAN_MSR_INAK_Pos) /*!< 0x00000001 */
  1408. #define CAN_MSR_INAK CAN_MSR_INAK_Msk /*!<Initialization Acknowledge */
  1409. #define CAN_MSR_SLAK_Pos (1U)
  1410. #define CAN_MSR_SLAK_Msk (0x1U << CAN_MSR_SLAK_Pos) /*!< 0x00000002 */
  1411. #define CAN_MSR_SLAK CAN_MSR_SLAK_Msk /*!<Sleep Acknowledge */
  1412. #define CAN_MSR_ERRI_Pos (2U)
  1413. #define CAN_MSR_ERRI_Msk (0x1U << CAN_MSR_ERRI_Pos) /*!< 0x00000004 */
  1414. #define CAN_MSR_ERRI CAN_MSR_ERRI_Msk /*!<Error Interrupt */
  1415. #define CAN_MSR_WKUI_Pos (3U)
  1416. #define CAN_MSR_WKUI_Msk (0x1U << CAN_MSR_WKUI_Pos) /*!< 0x00000008 */
  1417. #define CAN_MSR_WKUI CAN_MSR_WKUI_Msk /*!<Wakeup Interrupt */
  1418. #define CAN_MSR_SLAKI_Pos (4U)
  1419. #define CAN_MSR_SLAKI_Msk (0x1U << CAN_MSR_SLAKI_Pos) /*!< 0x00000010 */
  1420. #define CAN_MSR_SLAKI CAN_MSR_SLAKI_Msk /*!<Sleep Acknowledge Interrupt */
  1421. #define CAN_MSR_TXM_Pos (8U)
  1422. #define CAN_MSR_TXM_Msk (0x1U << CAN_MSR_TXM_Pos) /*!< 0x00000100 */
  1423. #define CAN_MSR_TXM CAN_MSR_TXM_Msk /*!<Transmit Mode */
  1424. #define CAN_MSR_RXM_Pos (9U)
  1425. #define CAN_MSR_RXM_Msk (0x1U << CAN_MSR_RXM_Pos) /*!< 0x00000200 */
  1426. #define CAN_MSR_RXM CAN_MSR_RXM_Msk /*!<Receive Mode */
  1427. #define CAN_MSR_SAMP_Pos (10U)
  1428. #define CAN_MSR_SAMP_Msk (0x1U << CAN_MSR_SAMP_Pos) /*!< 0x00000400 */
  1429. #define CAN_MSR_SAMP CAN_MSR_SAMP_Msk /*!<Last Sample Point */
  1430. #define CAN_MSR_RX_Pos (11U)
  1431. #define CAN_MSR_RX_Msk (0x1U << CAN_MSR_RX_Pos) /*!< 0x00000800 */
  1432. #define CAN_MSR_RX CAN_MSR_RX_Msk /*!<CAN Rx Signal */
  1433. /******************* Bit definition for CAN_TSR register ********************/
  1434. #define CAN_TSR_RQCP0_Pos (0U)
  1435. #define CAN_TSR_RQCP0_Msk (0x1U << CAN_TSR_RQCP0_Pos) /*!< 0x00000001 */
  1436. #define CAN_TSR_RQCP0 CAN_TSR_RQCP0_Msk /*!<Request Completed Mailbox0 */
  1437. #define CAN_TSR_TXOK0_Pos (1U)
  1438. #define CAN_TSR_TXOK0_Msk (0x1U << CAN_TSR_TXOK0_Pos) /*!< 0x00000002 */
  1439. #define CAN_TSR_TXOK0 CAN_TSR_TXOK0_Msk /*!<Transmission OK of Mailbox0 */
  1440. #define CAN_TSR_ALST0_Pos (2U)
  1441. #define CAN_TSR_ALST0_Msk (0x1U << CAN_TSR_ALST0_Pos) /*!< 0x00000004 */
  1442. #define CAN_TSR_ALST0 CAN_TSR_ALST0_Msk /*!<Arbitration Lost for Mailbox0 */
  1443. #define CAN_TSR_TERR0_Pos (3U)
  1444. #define CAN_TSR_TERR0_Msk (0x1U << CAN_TSR_TERR0_Pos) /*!< 0x00000008 */
  1445. #define CAN_TSR_TERR0 CAN_TSR_TERR0_Msk /*!<Transmission Error of Mailbox0 */
  1446. #define CAN_TSR_ABRQ0_Pos (7U)
  1447. #define CAN_TSR_ABRQ0_Msk (0x1U << CAN_TSR_ABRQ0_Pos) /*!< 0x00000080 */
  1448. #define CAN_TSR_ABRQ0 CAN_TSR_ABRQ0_Msk /*!<Abort Request for Mailbox0 */
  1449. #define CAN_TSR_RQCP1_Pos (8U)
  1450. #define CAN_TSR_RQCP1_Msk (0x1U << CAN_TSR_RQCP1_Pos) /*!< 0x00000100 */
  1451. #define CAN_TSR_RQCP1 CAN_TSR_RQCP1_Msk /*!<Request Completed Mailbox1 */
  1452. #define CAN_TSR_TXOK1_Pos (9U)
  1453. #define CAN_TSR_TXOK1_Msk (0x1U << CAN_TSR_TXOK1_Pos) /*!< 0x00000200 */
  1454. #define CAN_TSR_TXOK1 CAN_TSR_TXOK1_Msk /*!<Transmission OK of Mailbox1 */
  1455. #define CAN_TSR_ALST1_Pos (10U)
  1456. #define CAN_TSR_ALST1_Msk (0x1U << CAN_TSR_ALST1_Pos) /*!< 0x00000400 */
  1457. #define CAN_TSR_ALST1 CAN_TSR_ALST1_Msk /*!<Arbitration Lost for Mailbox1 */
  1458. #define CAN_TSR_TERR1_Pos (11U)
  1459. #define CAN_TSR_TERR1_Msk (0x1U << CAN_TSR_TERR1_Pos) /*!< 0x00000800 */
  1460. #define CAN_TSR_TERR1 CAN_TSR_TERR1_Msk /*!<Transmission Error of Mailbox1 */
  1461. #define CAN_TSR_ABRQ1_Pos (15U)
  1462. #define CAN_TSR_ABRQ1_Msk (0x1U << CAN_TSR_ABRQ1_Pos) /*!< 0x00008000 */
  1463. #define CAN_TSR_ABRQ1 CAN_TSR_ABRQ1_Msk /*!<Abort Request for Mailbox 1 */
  1464. #define CAN_TSR_RQCP2_Pos (16U)
  1465. #define CAN_TSR_RQCP2_Msk (0x1U << CAN_TSR_RQCP2_Pos) /*!< 0x00010000 */
  1466. #define CAN_TSR_RQCP2 CAN_TSR_RQCP2_Msk /*!<Request Completed Mailbox2 */
  1467. #define CAN_TSR_TXOK2_Pos (17U)
  1468. #define CAN_TSR_TXOK2_Msk (0x1U << CAN_TSR_TXOK2_Pos) /*!< 0x00020000 */
  1469. #define CAN_TSR_TXOK2 CAN_TSR_TXOK2_Msk /*!<Transmission OK of Mailbox 2 */
  1470. #define CAN_TSR_ALST2_Pos (18U)
  1471. #define CAN_TSR_ALST2_Msk (0x1U << CAN_TSR_ALST2_Pos) /*!< 0x00040000 */
  1472. #define CAN_TSR_ALST2 CAN_TSR_ALST2_Msk /*!<Arbitration Lost for mailbox 2 */
  1473. #define CAN_TSR_TERR2_Pos (19U)
  1474. #define CAN_TSR_TERR2_Msk (0x1U << CAN_TSR_TERR2_Pos) /*!< 0x00080000 */
  1475. #define CAN_TSR_TERR2 CAN_TSR_TERR2_Msk /*!<Transmission Error of Mailbox 2 */
  1476. #define CAN_TSR_ABRQ2_Pos (23U)
  1477. #define CAN_TSR_ABRQ2_Msk (0x1U << CAN_TSR_ABRQ2_Pos) /*!< 0x00800000 */
  1478. #define CAN_TSR_ABRQ2 CAN_TSR_ABRQ2_Msk /*!<Abort Request for Mailbox 2 */
  1479. #define CAN_TSR_CODE_Pos (24U)
  1480. #define CAN_TSR_CODE_Msk (0x3U << CAN_TSR_CODE_Pos) /*!< 0x03000000 */
  1481. #define CAN_TSR_CODE CAN_TSR_CODE_Msk /*!<Mailbox Code */
  1482. #define CAN_TSR_TME_Pos (26U)
  1483. #define CAN_TSR_TME_Msk (0x7U << CAN_TSR_TME_Pos) /*!< 0x1C000000 */
  1484. #define CAN_TSR_TME CAN_TSR_TME_Msk /*!<TME[2:0] bits */
  1485. #define CAN_TSR_TME0_Pos (26U)
  1486. #define CAN_TSR_TME0_Msk (0x1U << CAN_TSR_TME0_Pos) /*!< 0x04000000 */
  1487. #define CAN_TSR_TME0 CAN_TSR_TME0_Msk /*!<Transmit Mailbox 0 Empty */
  1488. #define CAN_TSR_TME1_Pos (27U)
  1489. #define CAN_TSR_TME1_Msk (0x1U << CAN_TSR_TME1_Pos) /*!< 0x08000000 */
  1490. #define CAN_TSR_TME1 CAN_TSR_TME1_Msk /*!<Transmit Mailbox 1 Empty */
  1491. #define CAN_TSR_TME2_Pos (28U)
  1492. #define CAN_TSR_TME2_Msk (0x1U << CAN_TSR_TME2_Pos) /*!< 0x10000000 */
  1493. #define CAN_TSR_TME2 CAN_TSR_TME2_Msk /*!<Transmit Mailbox 2 Empty */
  1494. #define CAN_TSR_LOW_Pos (29U)
  1495. #define CAN_TSR_LOW_Msk (0x7U << CAN_TSR_LOW_Pos) /*!< 0xE0000000 */
  1496. #define CAN_TSR_LOW CAN_TSR_LOW_Msk /*!<LOW[2:0] bits */
  1497. #define CAN_TSR_LOW0_Pos (29U)
  1498. #define CAN_TSR_LOW0_Msk (0x1U << CAN_TSR_LOW0_Pos) /*!< 0x20000000 */
  1499. #define CAN_TSR_LOW0 CAN_TSR_LOW0_Msk /*!<Lowest Priority Flag for Mailbox 0 */
  1500. #define CAN_TSR_LOW1_Pos (30U)
  1501. #define CAN_TSR_LOW1_Msk (0x1U << CAN_TSR_LOW1_Pos) /*!< 0x40000000 */
  1502. #define CAN_TSR_LOW1 CAN_TSR_LOW1_Msk /*!<Lowest Priority Flag for Mailbox 1 */
  1503. #define CAN_TSR_LOW2_Pos (31U)
  1504. #define CAN_TSR_LOW2_Msk (0x1U << CAN_TSR_LOW2_Pos) /*!< 0x80000000 */
  1505. #define CAN_TSR_LOW2 CAN_TSR_LOW2_Msk /*!<Lowest Priority Flag for Mailbox 2 */
  1506. /******************* Bit definition for CAN_RF0R register *******************/
  1507. #define CAN_RF0R_FMP0_Pos (0U)
  1508. #define CAN_RF0R_FMP0_Msk (0x3U << CAN_RF0R_FMP0_Pos) /*!< 0x00000003 */
  1509. #define CAN_RF0R_FMP0 CAN_RF0R_FMP0_Msk /*!<FIFO 0 Message Pending */
  1510. #define CAN_RF0R_FULL0_Pos (3U)
  1511. #define CAN_RF0R_FULL0_Msk (0x1U << CAN_RF0R_FULL0_Pos) /*!< 0x00000008 */
  1512. #define CAN_RF0R_FULL0 CAN_RF0R_FULL0_Msk /*!<FIFO 0 Full */
  1513. #define CAN_RF0R_FOVR0_Pos (4U)
  1514. #define CAN_RF0R_FOVR0_Msk (0x1U << CAN_RF0R_FOVR0_Pos) /*!< 0x00000010 */
  1515. #define CAN_RF0R_FOVR0 CAN_RF0R_FOVR0_Msk /*!<FIFO 0 Overrun */
  1516. #define CAN_RF0R_RFOM0_Pos (5U)
  1517. #define CAN_RF0R_RFOM0_Msk (0x1U << CAN_RF0R_RFOM0_Pos) /*!< 0x00000020 */
  1518. #define CAN_RF0R_RFOM0 CAN_RF0R_RFOM0_Msk /*!<Release FIFO 0 Output Mailbox */
  1519. /******************* Bit definition for CAN_RF1R register *******************/
  1520. #define CAN_RF1R_FMP1_Pos (0U)
  1521. #define CAN_RF1R_FMP1_Msk (0x3U << CAN_RF1R_FMP1_Pos) /*!< 0x00000003 */
  1522. #define CAN_RF1R_FMP1 CAN_RF1R_FMP1_Msk /*!<FIFO 1 Message Pending */
  1523. #define CAN_RF1R_FULL1_Pos (3U)
  1524. #define CAN_RF1R_FULL1_Msk (0x1U << CAN_RF1R_FULL1_Pos) /*!< 0x00000008 */
  1525. #define CAN_RF1R_FULL1 CAN_RF1R_FULL1_Msk /*!<FIFO 1 Full */
  1526. #define CAN_RF1R_FOVR1_Pos (4U)
  1527. #define CAN_RF1R_FOVR1_Msk (0x1U << CAN_RF1R_FOVR1_Pos) /*!< 0x00000010 */
  1528. #define CAN_RF1R_FOVR1 CAN_RF1R_FOVR1_Msk /*!<FIFO 1 Overrun */
  1529. #define CAN_RF1R_RFOM1_Pos (5U)
  1530. #define CAN_RF1R_RFOM1_Msk (0x1U << CAN_RF1R_RFOM1_Pos) /*!< 0x00000020 */
  1531. #define CAN_RF1R_RFOM1 CAN_RF1R_RFOM1_Msk /*!<Release FIFO 1 Output Mailbox */
  1532. /******************** Bit definition for CAN_IER register *******************/
  1533. #define CAN_IER_TMEIE_Pos (0U)
  1534. #define CAN_IER_TMEIE_Msk (0x1U << CAN_IER_TMEIE_Pos) /*!< 0x00000001 */
  1535. #define CAN_IER_TMEIE CAN_IER_TMEIE_Msk /*!<Transmit Mailbox Empty Interrupt Enable */
  1536. #define CAN_IER_FMPIE0_Pos (1U)
  1537. #define CAN_IER_FMPIE0_Msk (0x1U << CAN_IER_FMPIE0_Pos) /*!< 0x00000002 */
  1538. #define CAN_IER_FMPIE0 CAN_IER_FMPIE0_Msk /*!<FIFO Message Pending Interrupt Enable */
  1539. #define CAN_IER_FFIE0_Pos (2U)
  1540. #define CAN_IER_FFIE0_Msk (0x1U << CAN_IER_FFIE0_Pos) /*!< 0x00000004 */
  1541. #define CAN_IER_FFIE0 CAN_IER_FFIE0_Msk /*!<FIFO Full Interrupt Enable */
  1542. #define CAN_IER_FOVIE0_Pos (3U)
  1543. #define CAN_IER_FOVIE0_Msk (0x1U << CAN_IER_FOVIE0_Pos) /*!< 0x00000008 */
  1544. #define CAN_IER_FOVIE0 CAN_IER_FOVIE0_Msk /*!<FIFO Overrun Interrupt Enable */
  1545. #define CAN_IER_FMPIE1_Pos (4U)
  1546. #define CAN_IER_FMPIE1_Msk (0x1U << CAN_IER_FMPIE1_Pos) /*!< 0x00000010 */
  1547. #define CAN_IER_FMPIE1 CAN_IER_FMPIE1_Msk /*!<FIFO Message Pending Interrupt Enable */
  1548. #define CAN_IER_FFIE1_Pos (5U)
  1549. #define CAN_IER_FFIE1_Msk (0x1U << CAN_IER_FFIE1_Pos) /*!< 0x00000020 */
  1550. #define CAN_IER_FFIE1 CAN_IER_FFIE1_Msk /*!<FIFO Full Interrupt Enable */
  1551. #define CAN_IER_FOVIE1_Pos (6U)
  1552. #define CAN_IER_FOVIE1_Msk (0x1U << CAN_IER_FOVIE1_Pos) /*!< 0x00000040 */
  1553. #define CAN_IER_FOVIE1 CAN_IER_FOVIE1_Msk /*!<FIFO Overrun Interrupt Enable */
  1554. #define CAN_IER_EWGIE_Pos (8U)
  1555. #define CAN_IER_EWGIE_Msk (0x1U << CAN_IER_EWGIE_Pos) /*!< 0x00000100 */
  1556. #define CAN_IER_EWGIE CAN_IER_EWGIE_Msk /*!<Error Warning Interrupt Enable */
  1557. #define CAN_IER_EPVIE_Pos (9U)
  1558. #define CAN_IER_EPVIE_Msk (0x1U << CAN_IER_EPVIE_Pos) /*!< 0x00000200 */
  1559. #define CAN_IER_EPVIE CAN_IER_EPVIE_Msk /*!<Error Passive Interrupt Enable */
  1560. #define CAN_IER_BOFIE_Pos (10U)
  1561. #define CAN_IER_BOFIE_Msk (0x1U << CAN_IER_BOFIE_Pos) /*!< 0x00000400 */
  1562. #define CAN_IER_BOFIE CAN_IER_BOFIE_Msk /*!<Bus-Off Interrupt Enable */
  1563. #define CAN_IER_LECIE_Pos (11U)
  1564. #define CAN_IER_LECIE_Msk (0x1U << CAN_IER_LECIE_Pos) /*!< 0x00000800 */
  1565. #define CAN_IER_LECIE CAN_IER_LECIE_Msk /*!<Last Error Code Interrupt Enable */
  1566. #define CAN_IER_ERRIE_Pos (15U)
  1567. #define CAN_IER_ERRIE_Msk (0x1U << CAN_IER_ERRIE_Pos) /*!< 0x00008000 */
  1568. #define CAN_IER_ERRIE CAN_IER_ERRIE_Msk /*!<Error Interrupt Enable */
  1569. #define CAN_IER_WKUIE_Pos (16U)
  1570. #define CAN_IER_WKUIE_Msk (0x1U << CAN_IER_WKUIE_Pos) /*!< 0x00010000 */
  1571. #define CAN_IER_WKUIE CAN_IER_WKUIE_Msk /*!<Wakeup Interrupt Enable */
  1572. #define CAN_IER_SLKIE_Pos (17U)
  1573. #define CAN_IER_SLKIE_Msk (0x1U << CAN_IER_SLKIE_Pos) /*!< 0x00020000 */
  1574. #define CAN_IER_SLKIE CAN_IER_SLKIE_Msk /*!<Sleep Interrupt Enable */
  1575. /******************** Bit definition for CAN_ESR register *******************/
  1576. #define CAN_ESR_EWGF_Pos (0U)
  1577. #define CAN_ESR_EWGF_Msk (0x1U << CAN_ESR_EWGF_Pos) /*!< 0x00000001 */
  1578. #define CAN_ESR_EWGF CAN_ESR_EWGF_Msk /*!<Error Warning Flag */
  1579. #define CAN_ESR_EPVF_Pos (1U)
  1580. #define CAN_ESR_EPVF_Msk (0x1U << CAN_ESR_EPVF_Pos) /*!< 0x00000002 */
  1581. #define CAN_ESR_EPVF CAN_ESR_EPVF_Msk /*!<Error Passive Flag */
  1582. #define CAN_ESR_BOFF_Pos (2U)
  1583. #define CAN_ESR_BOFF_Msk (0x1U << CAN_ESR_BOFF_Pos) /*!< 0x00000004 */
  1584. #define CAN_ESR_BOFF CAN_ESR_BOFF_Msk /*!<Bus-Off Flag */
  1585. #define CAN_ESR_LEC_Pos (4U)
  1586. #define CAN_ESR_LEC_Msk (0x7U << CAN_ESR_LEC_Pos) /*!< 0x00000070 */
  1587. #define CAN_ESR_LEC CAN_ESR_LEC_Msk /*!<LEC[2:0] bits (Last Error Code) */
  1588. #define CAN_ESR_LEC_0 (0x1U << CAN_ESR_LEC_Pos) /*!< 0x00000010 */
  1589. #define CAN_ESR_LEC_1 (0x2U << CAN_ESR_LEC_Pos) /*!< 0x00000020 */
  1590. #define CAN_ESR_LEC_2 (0x4U << CAN_ESR_LEC_Pos) /*!< 0x00000040 */
  1591. #define CAN_ESR_TEC_Pos (16U)
  1592. #define CAN_ESR_TEC_Msk (0xFFU << CAN_ESR_TEC_Pos) /*!< 0x00FF0000 */
  1593. #define CAN_ESR_TEC CAN_ESR_TEC_Msk /*!<Least significant byte of the 9-bit Transmit Error Counter */
  1594. #define CAN_ESR_REC_Pos (24U)
  1595. #define CAN_ESR_REC_Msk (0xFFU << CAN_ESR_REC_Pos) /*!< 0xFF000000 */
  1596. #define CAN_ESR_REC CAN_ESR_REC_Msk /*!<Receive Error Counter */
  1597. /******************* Bit definition for CAN_BTR register ********************/
  1598. #define CAN_BTR_BRP_Pos (0U)
  1599. #define CAN_BTR_BRP_Msk (0x3FFU << CAN_BTR_BRP_Pos) /*!< 0x000003FF */
  1600. #define CAN_BTR_BRP CAN_BTR_BRP_Msk /*!<Baud Rate Prescaler */
  1601. #define CAN_BTR_TS1_Pos (16U)
  1602. #define CAN_BTR_TS1_Msk (0xFU << CAN_BTR_TS1_Pos) /*!< 0x000F0000 */
  1603. #define CAN_BTR_TS1 CAN_BTR_TS1_Msk /*!<Time Segment 1 */
  1604. #define CAN_BTR_TS1_0 (0x1U << CAN_BTR_TS1_Pos) /*!< 0x00010000 */
  1605. #define CAN_BTR_TS1_1 (0x2U << CAN_BTR_TS1_Pos) /*!< 0x00020000 */
  1606. #define CAN_BTR_TS1_2 (0x4U << CAN_BTR_TS1_Pos) /*!< 0x00040000 */
  1607. #define CAN_BTR_TS1_3 (0x8U << CAN_BTR_TS1_Pos) /*!< 0x00080000 */
  1608. #define CAN_BTR_TS2_Pos (20U)
  1609. #define CAN_BTR_TS2_Msk (0x7U << CAN_BTR_TS2_Pos) /*!< 0x00700000 */
  1610. #define CAN_BTR_TS2 CAN_BTR_TS2_Msk /*!<Time Segment 2 */
  1611. #define CAN_BTR_TS2_0 (0x1U << CAN_BTR_TS2_Pos) /*!< 0x00100000 */
  1612. #define CAN_BTR_TS2_1 (0x2U << CAN_BTR_TS2_Pos) /*!< 0x00200000 */
  1613. #define CAN_BTR_TS2_2 (0x4U << CAN_BTR_TS2_Pos) /*!< 0x00400000 */
  1614. #define CAN_BTR_SJW_Pos (24U)
  1615. #define CAN_BTR_SJW_Msk (0x3U << CAN_BTR_SJW_Pos) /*!< 0x03000000 */
  1616. #define CAN_BTR_SJW CAN_BTR_SJW_Msk /*!<Resynchronization Jump Width */
  1617. #define CAN_BTR_SJW_0 (0x1U << CAN_BTR_SJW_Pos) /*!< 0x01000000 */
  1618. #define CAN_BTR_SJW_1 (0x2U << CAN_BTR_SJW_Pos) /*!< 0x02000000 */
  1619. #define CAN_BTR_LBKM_Pos (30U)
  1620. #define CAN_BTR_LBKM_Msk (0x1U << CAN_BTR_LBKM_Pos) /*!< 0x40000000 */
  1621. #define CAN_BTR_LBKM CAN_BTR_LBKM_Msk /*!<Loop Back Mode (Debug) */
  1622. #define CAN_BTR_SILM_Pos (31U)
  1623. #define CAN_BTR_SILM_Msk (0x1U << CAN_BTR_SILM_Pos) /*!< 0x80000000 */
  1624. #define CAN_BTR_SILM CAN_BTR_SILM_Msk /*!<Silent Mode */
  1625. /*!<Mailbox registers */
  1626. /****************** Bit definition for CAN_TI0R register ********************/
  1627. #define CAN_TI0R_TXRQ_Pos (0U)
  1628. #define CAN_TI0R_TXRQ_Msk (0x1U << CAN_TI0R_TXRQ_Pos) /*!< 0x00000001 */
  1629. #define CAN_TI0R_TXRQ CAN_TI0R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1630. #define CAN_TI0R_RTR_Pos (1U)
  1631. #define CAN_TI0R_RTR_Msk (0x1U << CAN_TI0R_RTR_Pos) /*!< 0x00000002 */
  1632. #define CAN_TI0R_RTR CAN_TI0R_RTR_Msk /*!<Remote Transmission Request */
  1633. #define CAN_TI0R_IDE_Pos (2U)
  1634. #define CAN_TI0R_IDE_Msk (0x1U << CAN_TI0R_IDE_Pos) /*!< 0x00000004 */
  1635. #define CAN_TI0R_IDE CAN_TI0R_IDE_Msk /*!<Identifier Extension */
  1636. #define CAN_TI0R_EXID_Pos (3U)
  1637. #define CAN_TI0R_EXID_Msk (0x3FFFFU << CAN_TI0R_EXID_Pos) /*!< 0x001FFFF8 */
  1638. #define CAN_TI0R_EXID CAN_TI0R_EXID_Msk /*!<Extended Identifier */
  1639. #define CAN_TI0R_STID_Pos (21U)
  1640. #define CAN_TI0R_STID_Msk (0x7FFU << CAN_TI0R_STID_Pos) /*!< 0xFFE00000 */
  1641. #define CAN_TI0R_STID CAN_TI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1642. /****************** Bit definition for CAN_TDT0R register *******************/
  1643. #define CAN_TDT0R_DLC_Pos (0U)
  1644. #define CAN_TDT0R_DLC_Msk (0xFU << CAN_TDT0R_DLC_Pos) /*!< 0x0000000F */
  1645. #define CAN_TDT0R_DLC CAN_TDT0R_DLC_Msk /*!<Data Length Code */
  1646. #define CAN_TDT0R_TGT_Pos (8U)
  1647. #define CAN_TDT0R_TGT_Msk (0x1U << CAN_TDT0R_TGT_Pos) /*!< 0x00000100 */
  1648. #define CAN_TDT0R_TGT CAN_TDT0R_TGT_Msk /*!<Transmit Global Time */
  1649. #define CAN_TDT0R_TIME_Pos (16U)
  1650. #define CAN_TDT0R_TIME_Msk (0xFFFFU << CAN_TDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  1651. #define CAN_TDT0R_TIME CAN_TDT0R_TIME_Msk /*!<Message Time Stamp */
  1652. /****************** Bit definition for CAN_TDL0R register *******************/
  1653. #define CAN_TDL0R_DATA0_Pos (0U)
  1654. #define CAN_TDL0R_DATA0_Msk (0xFFU << CAN_TDL0R_DATA0_Pos) /*!< 0x000000FF */
  1655. #define CAN_TDL0R_DATA0 CAN_TDL0R_DATA0_Msk /*!<Data byte 0 */
  1656. #define CAN_TDL0R_DATA1_Pos (8U)
  1657. #define CAN_TDL0R_DATA1_Msk (0xFFU << CAN_TDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  1658. #define CAN_TDL0R_DATA1 CAN_TDL0R_DATA1_Msk /*!<Data byte 1 */
  1659. #define CAN_TDL0R_DATA2_Pos (16U)
  1660. #define CAN_TDL0R_DATA2_Msk (0xFFU << CAN_TDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  1661. #define CAN_TDL0R_DATA2 CAN_TDL0R_DATA2_Msk /*!<Data byte 2 */
  1662. #define CAN_TDL0R_DATA3_Pos (24U)
  1663. #define CAN_TDL0R_DATA3_Msk (0xFFU << CAN_TDL0R_DATA3_Pos) /*!< 0xFF000000 */
  1664. #define CAN_TDL0R_DATA3 CAN_TDL0R_DATA3_Msk /*!<Data byte 3 */
  1665. /****************** Bit definition for CAN_TDH0R register *******************/
  1666. #define CAN_TDH0R_DATA4_Pos (0U)
  1667. #define CAN_TDH0R_DATA4_Msk (0xFFU << CAN_TDH0R_DATA4_Pos) /*!< 0x000000FF */
  1668. #define CAN_TDH0R_DATA4 CAN_TDH0R_DATA4_Msk /*!<Data byte 4 */
  1669. #define CAN_TDH0R_DATA5_Pos (8U)
  1670. #define CAN_TDH0R_DATA5_Msk (0xFFU << CAN_TDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  1671. #define CAN_TDH0R_DATA5 CAN_TDH0R_DATA5_Msk /*!<Data byte 5 */
  1672. #define CAN_TDH0R_DATA6_Pos (16U)
  1673. #define CAN_TDH0R_DATA6_Msk (0xFFU << CAN_TDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  1674. #define CAN_TDH0R_DATA6 CAN_TDH0R_DATA6_Msk /*!<Data byte 6 */
  1675. #define CAN_TDH0R_DATA7_Pos (24U)
  1676. #define CAN_TDH0R_DATA7_Msk (0xFFU << CAN_TDH0R_DATA7_Pos) /*!< 0xFF000000 */
  1677. #define CAN_TDH0R_DATA7 CAN_TDH0R_DATA7_Msk /*!<Data byte 7 */
  1678. /******************* Bit definition for CAN_TI1R register *******************/
  1679. #define CAN_TI1R_TXRQ_Pos (0U)
  1680. #define CAN_TI1R_TXRQ_Msk (0x1U << CAN_TI1R_TXRQ_Pos) /*!< 0x00000001 */
  1681. #define CAN_TI1R_TXRQ CAN_TI1R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1682. #define CAN_TI1R_RTR_Pos (1U)
  1683. #define CAN_TI1R_RTR_Msk (0x1U << CAN_TI1R_RTR_Pos) /*!< 0x00000002 */
  1684. #define CAN_TI1R_RTR CAN_TI1R_RTR_Msk /*!<Remote Transmission Request */
  1685. #define CAN_TI1R_IDE_Pos (2U)
  1686. #define CAN_TI1R_IDE_Msk (0x1U << CAN_TI1R_IDE_Pos) /*!< 0x00000004 */
  1687. #define CAN_TI1R_IDE CAN_TI1R_IDE_Msk /*!<Identifier Extension */
  1688. #define CAN_TI1R_EXID_Pos (3U)
  1689. #define CAN_TI1R_EXID_Msk (0x3FFFFU << CAN_TI1R_EXID_Pos) /*!< 0x001FFFF8 */
  1690. #define CAN_TI1R_EXID CAN_TI1R_EXID_Msk /*!<Extended Identifier */
  1691. #define CAN_TI1R_STID_Pos (21U)
  1692. #define CAN_TI1R_STID_Msk (0x7FFU << CAN_TI1R_STID_Pos) /*!< 0xFFE00000 */
  1693. #define CAN_TI1R_STID CAN_TI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1694. /******************* Bit definition for CAN_TDT1R register ******************/
  1695. #define CAN_TDT1R_DLC_Pos (0U)
  1696. #define CAN_TDT1R_DLC_Msk (0xFU << CAN_TDT1R_DLC_Pos) /*!< 0x0000000F */
  1697. #define CAN_TDT1R_DLC CAN_TDT1R_DLC_Msk /*!<Data Length Code */
  1698. #define CAN_TDT1R_TGT_Pos (8U)
  1699. #define CAN_TDT1R_TGT_Msk (0x1U << CAN_TDT1R_TGT_Pos) /*!< 0x00000100 */
  1700. #define CAN_TDT1R_TGT CAN_TDT1R_TGT_Msk /*!<Transmit Global Time */
  1701. #define CAN_TDT1R_TIME_Pos (16U)
  1702. #define CAN_TDT1R_TIME_Msk (0xFFFFU << CAN_TDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  1703. #define CAN_TDT1R_TIME CAN_TDT1R_TIME_Msk /*!<Message Time Stamp */
  1704. /******************* Bit definition for CAN_TDL1R register ******************/
  1705. #define CAN_TDL1R_DATA0_Pos (0U)
  1706. #define CAN_TDL1R_DATA0_Msk (0xFFU << CAN_TDL1R_DATA0_Pos) /*!< 0x000000FF */
  1707. #define CAN_TDL1R_DATA0 CAN_TDL1R_DATA0_Msk /*!<Data byte 0 */
  1708. #define CAN_TDL1R_DATA1_Pos (8U)
  1709. #define CAN_TDL1R_DATA1_Msk (0xFFU << CAN_TDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  1710. #define CAN_TDL1R_DATA1 CAN_TDL1R_DATA1_Msk /*!<Data byte 1 */
  1711. #define CAN_TDL1R_DATA2_Pos (16U)
  1712. #define CAN_TDL1R_DATA2_Msk (0xFFU << CAN_TDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  1713. #define CAN_TDL1R_DATA2 CAN_TDL1R_DATA2_Msk /*!<Data byte 2 */
  1714. #define CAN_TDL1R_DATA3_Pos (24U)
  1715. #define CAN_TDL1R_DATA3_Msk (0xFFU << CAN_TDL1R_DATA3_Pos) /*!< 0xFF000000 */
  1716. #define CAN_TDL1R_DATA3 CAN_TDL1R_DATA3_Msk /*!<Data byte 3 */
  1717. /******************* Bit definition for CAN_TDH1R register ******************/
  1718. #define CAN_TDH1R_DATA4_Pos (0U)
  1719. #define CAN_TDH1R_DATA4_Msk (0xFFU << CAN_TDH1R_DATA4_Pos) /*!< 0x000000FF */
  1720. #define CAN_TDH1R_DATA4 CAN_TDH1R_DATA4_Msk /*!<Data byte 4 */
  1721. #define CAN_TDH1R_DATA5_Pos (8U)
  1722. #define CAN_TDH1R_DATA5_Msk (0xFFU << CAN_TDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  1723. #define CAN_TDH1R_DATA5 CAN_TDH1R_DATA5_Msk /*!<Data byte 5 */
  1724. #define CAN_TDH1R_DATA6_Pos (16U)
  1725. #define CAN_TDH1R_DATA6_Msk (0xFFU << CAN_TDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  1726. #define CAN_TDH1R_DATA6 CAN_TDH1R_DATA6_Msk /*!<Data byte 6 */
  1727. #define CAN_TDH1R_DATA7_Pos (24U)
  1728. #define CAN_TDH1R_DATA7_Msk (0xFFU << CAN_TDH1R_DATA7_Pos) /*!< 0xFF000000 */
  1729. #define CAN_TDH1R_DATA7 CAN_TDH1R_DATA7_Msk /*!<Data byte 7 */
  1730. /******************* Bit definition for CAN_TI2R register *******************/
  1731. #define CAN_TI2R_TXRQ_Pos (0U)
  1732. #define CAN_TI2R_TXRQ_Msk (0x1U << CAN_TI2R_TXRQ_Pos) /*!< 0x00000001 */
  1733. #define CAN_TI2R_TXRQ CAN_TI2R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1734. #define CAN_TI2R_RTR_Pos (1U)
  1735. #define CAN_TI2R_RTR_Msk (0x1U << CAN_TI2R_RTR_Pos) /*!< 0x00000002 */
  1736. #define CAN_TI2R_RTR CAN_TI2R_RTR_Msk /*!<Remote Transmission Request */
  1737. #define CAN_TI2R_IDE_Pos (2U)
  1738. #define CAN_TI2R_IDE_Msk (0x1U << CAN_TI2R_IDE_Pos) /*!< 0x00000004 */
  1739. #define CAN_TI2R_IDE CAN_TI2R_IDE_Msk /*!<Identifier Extension */
  1740. #define CAN_TI2R_EXID_Pos (3U)
  1741. #define CAN_TI2R_EXID_Msk (0x3FFFFU << CAN_TI2R_EXID_Pos) /*!< 0x001FFFF8 */
  1742. #define CAN_TI2R_EXID CAN_TI2R_EXID_Msk /*!<Extended identifier */
  1743. #define CAN_TI2R_STID_Pos (21U)
  1744. #define CAN_TI2R_STID_Msk (0x7FFU << CAN_TI2R_STID_Pos) /*!< 0xFFE00000 */
  1745. #define CAN_TI2R_STID CAN_TI2R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1746. /******************* Bit definition for CAN_TDT2R register ******************/
  1747. #define CAN_TDT2R_DLC_Pos (0U)
  1748. #define CAN_TDT2R_DLC_Msk (0xFU << CAN_TDT2R_DLC_Pos) /*!< 0x0000000F */
  1749. #define CAN_TDT2R_DLC CAN_TDT2R_DLC_Msk /*!<Data Length Code */
  1750. #define CAN_TDT2R_TGT_Pos (8U)
  1751. #define CAN_TDT2R_TGT_Msk (0x1U << CAN_TDT2R_TGT_Pos) /*!< 0x00000100 */
  1752. #define CAN_TDT2R_TGT CAN_TDT2R_TGT_Msk /*!<Transmit Global Time */
  1753. #define CAN_TDT2R_TIME_Pos (16U)
  1754. #define CAN_TDT2R_TIME_Msk (0xFFFFU << CAN_TDT2R_TIME_Pos) /*!< 0xFFFF0000 */
  1755. #define CAN_TDT2R_TIME CAN_TDT2R_TIME_Msk /*!<Message Time Stamp */
  1756. /******************* Bit definition for CAN_TDL2R register ******************/
  1757. #define CAN_TDL2R_DATA0_Pos (0U)
  1758. #define CAN_TDL2R_DATA0_Msk (0xFFU << CAN_TDL2R_DATA0_Pos) /*!< 0x000000FF */
  1759. #define CAN_TDL2R_DATA0 CAN_TDL2R_DATA0_Msk /*!<Data byte 0 */
  1760. #define CAN_TDL2R_DATA1_Pos (8U)
  1761. #define CAN_TDL2R_DATA1_Msk (0xFFU << CAN_TDL2R_DATA1_Pos) /*!< 0x0000FF00 */
  1762. #define CAN_TDL2R_DATA1 CAN_TDL2R_DATA1_Msk /*!<Data byte 1 */
  1763. #define CAN_TDL2R_DATA2_Pos (16U)
  1764. #define CAN_TDL2R_DATA2_Msk (0xFFU << CAN_TDL2R_DATA2_Pos) /*!< 0x00FF0000 */
  1765. #define CAN_TDL2R_DATA2 CAN_TDL2R_DATA2_Msk /*!<Data byte 2 */
  1766. #define CAN_TDL2R_DATA3_Pos (24U)
  1767. #define CAN_TDL2R_DATA3_Msk (0xFFU << CAN_TDL2R_DATA3_Pos) /*!< 0xFF000000 */
  1768. #define CAN_TDL2R_DATA3 CAN_TDL2R_DATA3_Msk /*!<Data byte 3 */
  1769. /******************* Bit definition for CAN_TDH2R register ******************/
  1770. #define CAN_TDH2R_DATA4_Pos (0U)
  1771. #define CAN_TDH2R_DATA4_Msk (0xFFU << CAN_TDH2R_DATA4_Pos) /*!< 0x000000FF */
  1772. #define CAN_TDH2R_DATA4 CAN_TDH2R_DATA4_Msk /*!<Data byte 4 */
  1773. #define CAN_TDH2R_DATA5_Pos (8U)
  1774. #define CAN_TDH2R_DATA5_Msk (0xFFU << CAN_TDH2R_DATA5_Pos) /*!< 0x0000FF00 */
  1775. #define CAN_TDH2R_DATA5 CAN_TDH2R_DATA5_Msk /*!<Data byte 5 */
  1776. #define CAN_TDH2R_DATA6_Pos (16U)
  1777. #define CAN_TDH2R_DATA6_Msk (0xFFU << CAN_TDH2R_DATA6_Pos) /*!< 0x00FF0000 */
  1778. #define CAN_TDH2R_DATA6 CAN_TDH2R_DATA6_Msk /*!<Data byte 6 */
  1779. #define CAN_TDH2R_DATA7_Pos (24U)
  1780. #define CAN_TDH2R_DATA7_Msk (0xFFU << CAN_TDH2R_DATA7_Pos) /*!< 0xFF000000 */
  1781. #define CAN_TDH2R_DATA7 CAN_TDH2R_DATA7_Msk /*!<Data byte 7 */
  1782. /******************* Bit definition for CAN_RI0R register *******************/
  1783. #define CAN_RI0R_RTR_Pos (1U)
  1784. #define CAN_RI0R_RTR_Msk (0x1U << CAN_RI0R_RTR_Pos) /*!< 0x00000002 */
  1785. #define CAN_RI0R_RTR CAN_RI0R_RTR_Msk /*!<Remote Transmission Request */
  1786. #define CAN_RI0R_IDE_Pos (2U)
  1787. #define CAN_RI0R_IDE_Msk (0x1U << CAN_RI0R_IDE_Pos) /*!< 0x00000004 */
  1788. #define CAN_RI0R_IDE CAN_RI0R_IDE_Msk /*!<Identifier Extension */
  1789. #define CAN_RI0R_EXID_Pos (3U)
  1790. #define CAN_RI0R_EXID_Msk (0x3FFFFU << CAN_RI0R_EXID_Pos) /*!< 0x001FFFF8 */
  1791. #define CAN_RI0R_EXID CAN_RI0R_EXID_Msk /*!<Extended Identifier */
  1792. #define CAN_RI0R_STID_Pos (21U)
  1793. #define CAN_RI0R_STID_Msk (0x7FFU << CAN_RI0R_STID_Pos) /*!< 0xFFE00000 */
  1794. #define CAN_RI0R_STID CAN_RI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1795. /******************* Bit definition for CAN_RDT0R register ******************/
  1796. #define CAN_RDT0R_DLC_Pos (0U)
  1797. #define CAN_RDT0R_DLC_Msk (0xFU << CAN_RDT0R_DLC_Pos) /*!< 0x0000000F */
  1798. #define CAN_RDT0R_DLC CAN_RDT0R_DLC_Msk /*!<Data Length Code */
  1799. #define CAN_RDT0R_FMI_Pos (8U)
  1800. #define CAN_RDT0R_FMI_Msk (0xFFU << CAN_RDT0R_FMI_Pos) /*!< 0x0000FF00 */
  1801. #define CAN_RDT0R_FMI CAN_RDT0R_FMI_Msk /*!<Filter Match Index */
  1802. #define CAN_RDT0R_TIME_Pos (16U)
  1803. #define CAN_RDT0R_TIME_Msk (0xFFFFU << CAN_RDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  1804. #define CAN_RDT0R_TIME CAN_RDT0R_TIME_Msk /*!<Message Time Stamp */
  1805. /******************* Bit definition for CAN_RDL0R register ******************/
  1806. #define CAN_RDL0R_DATA0_Pos (0U)
  1807. #define CAN_RDL0R_DATA0_Msk (0xFFU << CAN_RDL0R_DATA0_Pos) /*!< 0x000000FF */
  1808. #define CAN_RDL0R_DATA0 CAN_RDL0R_DATA0_Msk /*!<Data byte 0 */
  1809. #define CAN_RDL0R_DATA1_Pos (8U)
  1810. #define CAN_RDL0R_DATA1_Msk (0xFFU << CAN_RDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  1811. #define CAN_RDL0R_DATA1 CAN_RDL0R_DATA1_Msk /*!<Data byte 1 */
  1812. #define CAN_RDL0R_DATA2_Pos (16U)
  1813. #define CAN_RDL0R_DATA2_Msk (0xFFU << CAN_RDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  1814. #define CAN_RDL0R_DATA2 CAN_RDL0R_DATA2_Msk /*!<Data byte 2 */
  1815. #define CAN_RDL0R_DATA3_Pos (24U)
  1816. #define CAN_RDL0R_DATA3_Msk (0xFFU << CAN_RDL0R_DATA3_Pos) /*!< 0xFF000000 */
  1817. #define CAN_RDL0R_DATA3 CAN_RDL0R_DATA3_Msk /*!<Data byte 3 */
  1818. /******************* Bit definition for CAN_RDH0R register ******************/
  1819. #define CAN_RDH0R_DATA4_Pos (0U)
  1820. #define CAN_RDH0R_DATA4_Msk (0xFFU << CAN_RDH0R_DATA4_Pos) /*!< 0x000000FF */
  1821. #define CAN_RDH0R_DATA4 CAN_RDH0R_DATA4_Msk /*!<Data byte 4 */
  1822. #define CAN_RDH0R_DATA5_Pos (8U)
  1823. #define CAN_RDH0R_DATA5_Msk (0xFFU << CAN_RDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  1824. #define CAN_RDH0R_DATA5 CAN_RDH0R_DATA5_Msk /*!<Data byte 5 */
  1825. #define CAN_RDH0R_DATA6_Pos (16U)
  1826. #define CAN_RDH0R_DATA6_Msk (0xFFU << CAN_RDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  1827. #define CAN_RDH0R_DATA6 CAN_RDH0R_DATA6_Msk /*!<Data byte 6 */
  1828. #define CAN_RDH0R_DATA7_Pos (24U)
  1829. #define CAN_RDH0R_DATA7_Msk (0xFFU << CAN_RDH0R_DATA7_Pos) /*!< 0xFF000000 */
  1830. #define CAN_RDH0R_DATA7 CAN_RDH0R_DATA7_Msk /*!<Data byte 7 */
  1831. /******************* Bit definition for CAN_RI1R register *******************/
  1832. #define CAN_RI1R_RTR_Pos (1U)
  1833. #define CAN_RI1R_RTR_Msk (0x1U << CAN_RI1R_RTR_Pos) /*!< 0x00000002 */
  1834. #define CAN_RI1R_RTR CAN_RI1R_RTR_Msk /*!<Remote Transmission Request */
  1835. #define CAN_RI1R_IDE_Pos (2U)
  1836. #define CAN_RI1R_IDE_Msk (0x1U << CAN_RI1R_IDE_Pos) /*!< 0x00000004 */
  1837. #define CAN_RI1R_IDE CAN_RI1R_IDE_Msk /*!<Identifier Extension */
  1838. #define CAN_RI1R_EXID_Pos (3U)
  1839. #define CAN_RI1R_EXID_Msk (0x3FFFFU << CAN_RI1R_EXID_Pos) /*!< 0x001FFFF8 */
  1840. #define CAN_RI1R_EXID CAN_RI1R_EXID_Msk /*!<Extended identifier */
  1841. #define CAN_RI1R_STID_Pos (21U)
  1842. #define CAN_RI1R_STID_Msk (0x7FFU << CAN_RI1R_STID_Pos) /*!< 0xFFE00000 */
  1843. #define CAN_RI1R_STID CAN_RI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1844. /******************* Bit definition for CAN_RDT1R register ******************/
  1845. #define CAN_RDT1R_DLC_Pos (0U)
  1846. #define CAN_RDT1R_DLC_Msk (0xFU << CAN_RDT1R_DLC_Pos) /*!< 0x0000000F */
  1847. #define CAN_RDT1R_DLC CAN_RDT1R_DLC_Msk /*!<Data Length Code */
  1848. #define CAN_RDT1R_FMI_Pos (8U)
  1849. #define CAN_RDT1R_FMI_Msk (0xFFU << CAN_RDT1R_FMI_Pos) /*!< 0x0000FF00 */
  1850. #define CAN_RDT1R_FMI CAN_RDT1R_FMI_Msk /*!<Filter Match Index */
  1851. #define CAN_RDT1R_TIME_Pos (16U)
  1852. #define CAN_RDT1R_TIME_Msk (0xFFFFU << CAN_RDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  1853. #define CAN_RDT1R_TIME CAN_RDT1R_TIME_Msk /*!<Message Time Stamp */
  1854. /******************* Bit definition for CAN_RDL1R register ******************/
  1855. #define CAN_RDL1R_DATA0_Pos (0U)
  1856. #define CAN_RDL1R_DATA0_Msk (0xFFU << CAN_RDL1R_DATA0_Pos) /*!< 0x000000FF */
  1857. #define CAN_RDL1R_DATA0 CAN_RDL1R_DATA0_Msk /*!<Data byte 0 */
  1858. #define CAN_RDL1R_DATA1_Pos (8U)
  1859. #define CAN_RDL1R_DATA1_Msk (0xFFU << CAN_RDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  1860. #define CAN_RDL1R_DATA1 CAN_RDL1R_DATA1_Msk /*!<Data byte 1 */
  1861. #define CAN_RDL1R_DATA2_Pos (16U)
  1862. #define CAN_RDL1R_DATA2_Msk (0xFFU << CAN_RDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  1863. #define CAN_RDL1R_DATA2 CAN_RDL1R_DATA2_Msk /*!<Data byte 2 */
  1864. #define CAN_RDL1R_DATA3_Pos (24U)
  1865. #define CAN_RDL1R_DATA3_Msk (0xFFU << CAN_RDL1R_DATA3_Pos) /*!< 0xFF000000 */
  1866. #define CAN_RDL1R_DATA3 CAN_RDL1R_DATA3_Msk /*!<Data byte 3 */
  1867. /******************* Bit definition for CAN_RDH1R register ******************/
  1868. #define CAN_RDH1R_DATA4_Pos (0U)
  1869. #define CAN_RDH1R_DATA4_Msk (0xFFU << CAN_RDH1R_DATA4_Pos) /*!< 0x000000FF */
  1870. #define CAN_RDH1R_DATA4 CAN_RDH1R_DATA4_Msk /*!<Data byte 4 */
  1871. #define CAN_RDH1R_DATA5_Pos (8U)
  1872. #define CAN_RDH1R_DATA5_Msk (0xFFU << CAN_RDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  1873. #define CAN_RDH1R_DATA5 CAN_RDH1R_DATA5_Msk /*!<Data byte 5 */
  1874. #define CAN_RDH1R_DATA6_Pos (16U)
  1875. #define CAN_RDH1R_DATA6_Msk (0xFFU << CAN_RDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  1876. #define CAN_RDH1R_DATA6 CAN_RDH1R_DATA6_Msk /*!<Data byte 6 */
  1877. #define CAN_RDH1R_DATA7_Pos (24U)
  1878. #define CAN_RDH1R_DATA7_Msk (0xFFU << CAN_RDH1R_DATA7_Pos) /*!< 0xFF000000 */
  1879. #define CAN_RDH1R_DATA7 CAN_RDH1R_DATA7_Msk /*!<Data byte 7 */
  1880. /*!<CAN filter registers */
  1881. /******************* Bit definition for CAN_FMR register ********************/
  1882. #define CAN_FMR_FINIT_Pos (0U)
  1883. #define CAN_FMR_FINIT_Msk (0x1U << CAN_FMR_FINIT_Pos) /*!< 0x00000001 */
  1884. #define CAN_FMR_FINIT CAN_FMR_FINIT_Msk /*!<Filter Init Mode */
  1885. /******************* Bit definition for CAN_FM1R register *******************/
  1886. #define CAN_FM1R_FBM_Pos (0U)
  1887. #define CAN_FM1R_FBM_Msk (0x3FFFU << CAN_FM1R_FBM_Pos) /*!< 0x00003FFF */
  1888. #define CAN_FM1R_FBM CAN_FM1R_FBM_Msk /*!<Filter Mode */
  1889. #define CAN_FM1R_FBM0_Pos (0U)
  1890. #define CAN_FM1R_FBM0_Msk (0x1U << CAN_FM1R_FBM0_Pos) /*!< 0x00000001 */
  1891. #define CAN_FM1R_FBM0 CAN_FM1R_FBM0_Msk /*!<Filter Init Mode bit 0 */
  1892. #define CAN_FM1R_FBM1_Pos (1U)
  1893. #define CAN_FM1R_FBM1_Msk (0x1U << CAN_FM1R_FBM1_Pos) /*!< 0x00000002 */
  1894. #define CAN_FM1R_FBM1 CAN_FM1R_FBM1_Msk /*!<Filter Init Mode bit 1 */
  1895. #define CAN_FM1R_FBM2_Pos (2U)
  1896. #define CAN_FM1R_FBM2_Msk (0x1U << CAN_FM1R_FBM2_Pos) /*!< 0x00000004 */
  1897. #define CAN_FM1R_FBM2 CAN_FM1R_FBM2_Msk /*!<Filter Init Mode bit 2 */
  1898. #define CAN_FM1R_FBM3_Pos (3U)
  1899. #define CAN_FM1R_FBM3_Msk (0x1U << CAN_FM1R_FBM3_Pos) /*!< 0x00000008 */
  1900. #define CAN_FM1R_FBM3 CAN_FM1R_FBM3_Msk /*!<Filter Init Mode bit 3 */
  1901. #define CAN_FM1R_FBM4_Pos (4U)
  1902. #define CAN_FM1R_FBM4_Msk (0x1U << CAN_FM1R_FBM4_Pos) /*!< 0x00000010 */
  1903. #define CAN_FM1R_FBM4 CAN_FM1R_FBM4_Msk /*!<Filter Init Mode bit 4 */
  1904. #define CAN_FM1R_FBM5_Pos (5U)
  1905. #define CAN_FM1R_FBM5_Msk (0x1U << CAN_FM1R_FBM5_Pos) /*!< 0x00000020 */
  1906. #define CAN_FM1R_FBM5 CAN_FM1R_FBM5_Msk /*!<Filter Init Mode bit 5 */
  1907. #define CAN_FM1R_FBM6_Pos (6U)
  1908. #define CAN_FM1R_FBM6_Msk (0x1U << CAN_FM1R_FBM6_Pos) /*!< 0x00000040 */
  1909. #define CAN_FM1R_FBM6 CAN_FM1R_FBM6_Msk /*!<Filter Init Mode bit 6 */
  1910. #define CAN_FM1R_FBM7_Pos (7U)
  1911. #define CAN_FM1R_FBM7_Msk (0x1U << CAN_FM1R_FBM7_Pos) /*!< 0x00000080 */
  1912. #define CAN_FM1R_FBM7 CAN_FM1R_FBM7_Msk /*!<Filter Init Mode bit 7 */
  1913. #define CAN_FM1R_FBM8_Pos (8U)
  1914. #define CAN_FM1R_FBM8_Msk (0x1U << CAN_FM1R_FBM8_Pos) /*!< 0x00000100 */
  1915. #define CAN_FM1R_FBM8 CAN_FM1R_FBM8_Msk /*!<Filter Init Mode bit 8 */
  1916. #define CAN_FM1R_FBM9_Pos (9U)
  1917. #define CAN_FM1R_FBM9_Msk (0x1U << CAN_FM1R_FBM9_Pos) /*!< 0x00000200 */
  1918. #define CAN_FM1R_FBM9 CAN_FM1R_FBM9_Msk /*!<Filter Init Mode bit 9 */
  1919. #define CAN_FM1R_FBM10_Pos (10U)
  1920. #define CAN_FM1R_FBM10_Msk (0x1U << CAN_FM1R_FBM10_Pos) /*!< 0x00000400 */
  1921. #define CAN_FM1R_FBM10 CAN_FM1R_FBM10_Msk /*!<Filter Init Mode bit 10 */
  1922. #define CAN_FM1R_FBM11_Pos (11U)
  1923. #define CAN_FM1R_FBM11_Msk (0x1U << CAN_FM1R_FBM11_Pos) /*!< 0x00000800 */
  1924. #define CAN_FM1R_FBM11 CAN_FM1R_FBM11_Msk /*!<Filter Init Mode bit 11 */
  1925. #define CAN_FM1R_FBM12_Pos (12U)
  1926. #define CAN_FM1R_FBM12_Msk (0x1U << CAN_FM1R_FBM12_Pos) /*!< 0x00001000 */
  1927. #define CAN_FM1R_FBM12 CAN_FM1R_FBM12_Msk /*!<Filter Init Mode bit 12 */
  1928. #define CAN_FM1R_FBM13_Pos (13U)
  1929. #define CAN_FM1R_FBM13_Msk (0x1U << CAN_FM1R_FBM13_Pos) /*!< 0x00002000 */
  1930. #define CAN_FM1R_FBM13 CAN_FM1R_FBM13_Msk /*!<Filter Init Mode bit 13 */
  1931. /******************* Bit definition for CAN_FS1R register *******************/
  1932. #define CAN_FS1R_FSC_Pos (0U)
  1933. #define CAN_FS1R_FSC_Msk (0x3FFFU << CAN_FS1R_FSC_Pos) /*!< 0x00003FFF */
  1934. #define CAN_FS1R_FSC CAN_FS1R_FSC_Msk /*!<Filter Scale Configuration */
  1935. #define CAN_FS1R_FSC0_Pos (0U)
  1936. #define CAN_FS1R_FSC0_Msk (0x1U << CAN_FS1R_FSC0_Pos) /*!< 0x00000001 */
  1937. #define CAN_FS1R_FSC0 CAN_FS1R_FSC0_Msk /*!<Filter Scale Configuration bit 0 */
  1938. #define CAN_FS1R_FSC1_Pos (1U)
  1939. #define CAN_FS1R_FSC1_Msk (0x1U << CAN_FS1R_FSC1_Pos) /*!< 0x00000002 */
  1940. #define CAN_FS1R_FSC1 CAN_FS1R_FSC1_Msk /*!<Filter Scale Configuration bit 1 */
  1941. #define CAN_FS1R_FSC2_Pos (2U)
  1942. #define CAN_FS1R_FSC2_Msk (0x1U << CAN_FS1R_FSC2_Pos) /*!< 0x00000004 */
  1943. #define CAN_FS1R_FSC2 CAN_FS1R_FSC2_Msk /*!<Filter Scale Configuration bit 2 */
  1944. #define CAN_FS1R_FSC3_Pos (3U)
  1945. #define CAN_FS1R_FSC3_Msk (0x1U << CAN_FS1R_FSC3_Pos) /*!< 0x00000008 */
  1946. #define CAN_FS1R_FSC3 CAN_FS1R_FSC3_Msk /*!<Filter Scale Configuration bit 3 */
  1947. #define CAN_FS1R_FSC4_Pos (4U)
  1948. #define CAN_FS1R_FSC4_Msk (0x1U << CAN_FS1R_FSC4_Pos) /*!< 0x00000010 */
  1949. #define CAN_FS1R_FSC4 CAN_FS1R_FSC4_Msk /*!<Filter Scale Configuration bit 4 */
  1950. #define CAN_FS1R_FSC5_Pos (5U)
  1951. #define CAN_FS1R_FSC5_Msk (0x1U << CAN_FS1R_FSC5_Pos) /*!< 0x00000020 */
  1952. #define CAN_FS1R_FSC5 CAN_FS1R_FSC5_Msk /*!<Filter Scale Configuration bit 5 */
  1953. #define CAN_FS1R_FSC6_Pos (6U)
  1954. #define CAN_FS1R_FSC6_Msk (0x1U << CAN_FS1R_FSC6_Pos) /*!< 0x00000040 */
  1955. #define CAN_FS1R_FSC6 CAN_FS1R_FSC6_Msk /*!<Filter Scale Configuration bit 6 */
  1956. #define CAN_FS1R_FSC7_Pos (7U)
  1957. #define CAN_FS1R_FSC7_Msk (0x1U << CAN_FS1R_FSC7_Pos) /*!< 0x00000080 */
  1958. #define CAN_FS1R_FSC7 CAN_FS1R_FSC7_Msk /*!<Filter Scale Configuration bit 7 */
  1959. #define CAN_FS1R_FSC8_Pos (8U)
  1960. #define CAN_FS1R_FSC8_Msk (0x1U << CAN_FS1R_FSC8_Pos) /*!< 0x00000100 */
  1961. #define CAN_FS1R_FSC8 CAN_FS1R_FSC8_Msk /*!<Filter Scale Configuration bit 8 */
  1962. #define CAN_FS1R_FSC9_Pos (9U)
  1963. #define CAN_FS1R_FSC9_Msk (0x1U << CAN_FS1R_FSC9_Pos) /*!< 0x00000200 */
  1964. #define CAN_FS1R_FSC9 CAN_FS1R_FSC9_Msk /*!<Filter Scale Configuration bit 9 */
  1965. #define CAN_FS1R_FSC10_Pos (10U)
  1966. #define CAN_FS1R_FSC10_Msk (0x1U << CAN_FS1R_FSC10_Pos) /*!< 0x00000400 */
  1967. #define CAN_FS1R_FSC10 CAN_FS1R_FSC10_Msk /*!<Filter Scale Configuration bit 10 */
  1968. #define CAN_FS1R_FSC11_Pos (11U)
  1969. #define CAN_FS1R_FSC11_Msk (0x1U << CAN_FS1R_FSC11_Pos) /*!< 0x00000800 */
  1970. #define CAN_FS1R_FSC11 CAN_FS1R_FSC11_Msk /*!<Filter Scale Configuration bit 11 */
  1971. #define CAN_FS1R_FSC12_Pos (12U)
  1972. #define CAN_FS1R_FSC12_Msk (0x1U << CAN_FS1R_FSC12_Pos) /*!< 0x00001000 */
  1973. #define CAN_FS1R_FSC12 CAN_FS1R_FSC12_Msk /*!<Filter Scale Configuration bit 12 */
  1974. #define CAN_FS1R_FSC13_Pos (13U)
  1975. #define CAN_FS1R_FSC13_Msk (0x1U << CAN_FS1R_FSC13_Pos) /*!< 0x00002000 */
  1976. #define CAN_FS1R_FSC13 CAN_FS1R_FSC13_Msk /*!<Filter Scale Configuration bit 13 */
  1977. /****************** Bit definition for CAN_FFA1R register *******************/
  1978. #define CAN_FFA1R_FFA_Pos (0U)
  1979. #define CAN_FFA1R_FFA_Msk (0x3FFFU << CAN_FFA1R_FFA_Pos) /*!< 0x00003FFF */
  1980. #define CAN_FFA1R_FFA CAN_FFA1R_FFA_Msk /*!<Filter FIFO Assignment */
  1981. #define CAN_FFA1R_FFA0_Pos (0U)
  1982. #define CAN_FFA1R_FFA0_Msk (0x1U << CAN_FFA1R_FFA0_Pos) /*!< 0x00000001 */
  1983. #define CAN_FFA1R_FFA0 CAN_FFA1R_FFA0_Msk /*!<Filter FIFO Assignment for Filter 0 */
  1984. #define CAN_FFA1R_FFA1_Pos (1U)
  1985. #define CAN_FFA1R_FFA1_Msk (0x1U << CAN_FFA1R_FFA1_Pos) /*!< 0x00000002 */
  1986. #define CAN_FFA1R_FFA1 CAN_FFA1R_FFA1_Msk /*!<Filter FIFO Assignment for Filter 1 */
  1987. #define CAN_FFA1R_FFA2_Pos (2U)
  1988. #define CAN_FFA1R_FFA2_Msk (0x1U << CAN_FFA1R_FFA2_Pos) /*!< 0x00000004 */
  1989. #define CAN_FFA1R_FFA2 CAN_FFA1R_FFA2_Msk /*!<Filter FIFO Assignment for Filter 2 */
  1990. #define CAN_FFA1R_FFA3_Pos (3U)
  1991. #define CAN_FFA1R_FFA3_Msk (0x1U << CAN_FFA1R_FFA3_Pos) /*!< 0x00000008 */
  1992. #define CAN_FFA1R_FFA3 CAN_FFA1R_FFA3_Msk /*!<Filter FIFO Assignment for Filter 3 */
  1993. #define CAN_FFA1R_FFA4_Pos (4U)
  1994. #define CAN_FFA1R_FFA4_Msk (0x1U << CAN_FFA1R_FFA4_Pos) /*!< 0x00000010 */
  1995. #define CAN_FFA1R_FFA4 CAN_FFA1R_FFA4_Msk /*!<Filter FIFO Assignment for Filter 4 */
  1996. #define CAN_FFA1R_FFA5_Pos (5U)
  1997. #define CAN_FFA1R_FFA5_Msk (0x1U << CAN_FFA1R_FFA5_Pos) /*!< 0x00000020 */
  1998. #define CAN_FFA1R_FFA5 CAN_FFA1R_FFA5_Msk /*!<Filter FIFO Assignment for Filter 5 */
  1999. #define CAN_FFA1R_FFA6_Pos (6U)
  2000. #define CAN_FFA1R_FFA6_Msk (0x1U << CAN_FFA1R_FFA6_Pos) /*!< 0x00000040 */
  2001. #define CAN_FFA1R_FFA6 CAN_FFA1R_FFA6_Msk /*!<Filter FIFO Assignment for Filter 6 */
  2002. #define CAN_FFA1R_FFA7_Pos (7U)
  2003. #define CAN_FFA1R_FFA7_Msk (0x1U << CAN_FFA1R_FFA7_Pos) /*!< 0x00000080 */
  2004. #define CAN_FFA1R_FFA7 CAN_FFA1R_FFA7_Msk /*!<Filter FIFO Assignment for Filter 7 */
  2005. #define CAN_FFA1R_FFA8_Pos (8U)
  2006. #define CAN_FFA1R_FFA8_Msk (0x1U << CAN_FFA1R_FFA8_Pos) /*!< 0x00000100 */
  2007. #define CAN_FFA1R_FFA8 CAN_FFA1R_FFA8_Msk /*!<Filter FIFO Assignment for Filter 8 */
  2008. #define CAN_FFA1R_FFA9_Pos (9U)
  2009. #define CAN_FFA1R_FFA9_Msk (0x1U << CAN_FFA1R_FFA9_Pos) /*!< 0x00000200 */
  2010. #define CAN_FFA1R_FFA9 CAN_FFA1R_FFA9_Msk /*!<Filter FIFO Assignment for Filter 9 */
  2011. #define CAN_FFA1R_FFA10_Pos (10U)
  2012. #define CAN_FFA1R_FFA10_Msk (0x1U << CAN_FFA1R_FFA10_Pos) /*!< 0x00000400 */
  2013. #define CAN_FFA1R_FFA10 CAN_FFA1R_FFA10_Msk /*!<Filter FIFO Assignment for Filter 10 */
  2014. #define CAN_FFA1R_FFA11_Pos (11U)
  2015. #define CAN_FFA1R_FFA11_Msk (0x1U << CAN_FFA1R_FFA11_Pos) /*!< 0x00000800 */
  2016. #define CAN_FFA1R_FFA11 CAN_FFA1R_FFA11_Msk /*!<Filter FIFO Assignment for Filter 11 */
  2017. #define CAN_FFA1R_FFA12_Pos (12U)
  2018. #define CAN_FFA1R_FFA12_Msk (0x1U << CAN_FFA1R_FFA12_Pos) /*!< 0x00001000 */
  2019. #define CAN_FFA1R_FFA12 CAN_FFA1R_FFA12_Msk /*!<Filter FIFO Assignment for Filter 12 */
  2020. #define CAN_FFA1R_FFA13_Pos (13U)
  2021. #define CAN_FFA1R_FFA13_Msk (0x1U << CAN_FFA1R_FFA13_Pos) /*!< 0x00002000 */
  2022. #define CAN_FFA1R_FFA13 CAN_FFA1R_FFA13_Msk /*!<Filter FIFO Assignment for Filter 13 */
  2023. /******************* Bit definition for CAN_FA1R register *******************/
  2024. #define CAN_FA1R_FACT_Pos (0U)
  2025. #define CAN_FA1R_FACT_Msk (0x3FFFU << CAN_FA1R_FACT_Pos) /*!< 0x00003FFF */
  2026. #define CAN_FA1R_FACT CAN_FA1R_FACT_Msk /*!<Filter Active */
  2027. #define CAN_FA1R_FACT0_Pos (0U)
  2028. #define CAN_FA1R_FACT0_Msk (0x1U << CAN_FA1R_FACT0_Pos) /*!< 0x00000001 */
  2029. #define CAN_FA1R_FACT0 CAN_FA1R_FACT0_Msk /*!<Filter 0 Active */
  2030. #define CAN_FA1R_FACT1_Pos (1U)
  2031. #define CAN_FA1R_FACT1_Msk (0x1U << CAN_FA1R_FACT1_Pos) /*!< 0x00000002 */
  2032. #define CAN_FA1R_FACT1 CAN_FA1R_FACT1_Msk /*!<Filter 1 Active */
  2033. #define CAN_FA1R_FACT2_Pos (2U)
  2034. #define CAN_FA1R_FACT2_Msk (0x1U << CAN_FA1R_FACT2_Pos) /*!< 0x00000004 */
  2035. #define CAN_FA1R_FACT2 CAN_FA1R_FACT2_Msk /*!<Filter 2 Active */
  2036. #define CAN_FA1R_FACT3_Pos (3U)
  2037. #define CAN_FA1R_FACT3_Msk (0x1U << CAN_FA1R_FACT3_Pos) /*!< 0x00000008 */
  2038. #define CAN_FA1R_FACT3 CAN_FA1R_FACT3_Msk /*!<Filter 3 Active */
  2039. #define CAN_FA1R_FACT4_Pos (4U)
  2040. #define CAN_FA1R_FACT4_Msk (0x1U << CAN_FA1R_FACT4_Pos) /*!< 0x00000010 */
  2041. #define CAN_FA1R_FACT4 CAN_FA1R_FACT4_Msk /*!<Filter 4 Active */
  2042. #define CAN_FA1R_FACT5_Pos (5U)
  2043. #define CAN_FA1R_FACT5_Msk (0x1U << CAN_FA1R_FACT5_Pos) /*!< 0x00000020 */
  2044. #define CAN_FA1R_FACT5 CAN_FA1R_FACT5_Msk /*!<Filter 5 Active */
  2045. #define CAN_FA1R_FACT6_Pos (6U)
  2046. #define CAN_FA1R_FACT6_Msk (0x1U << CAN_FA1R_FACT6_Pos) /*!< 0x00000040 */
  2047. #define CAN_FA1R_FACT6 CAN_FA1R_FACT6_Msk /*!<Filter 6 Active */
  2048. #define CAN_FA1R_FACT7_Pos (7U)
  2049. #define CAN_FA1R_FACT7_Msk (0x1U << CAN_FA1R_FACT7_Pos) /*!< 0x00000080 */
  2050. #define CAN_FA1R_FACT7 CAN_FA1R_FACT7_Msk /*!<Filter 7 Active */
  2051. #define CAN_FA1R_FACT8_Pos (8U)
  2052. #define CAN_FA1R_FACT8_Msk (0x1U << CAN_FA1R_FACT8_Pos) /*!< 0x00000100 */
  2053. #define CAN_FA1R_FACT8 CAN_FA1R_FACT8_Msk /*!<Filter 8 Active */
  2054. #define CAN_FA1R_FACT9_Pos (9U)
  2055. #define CAN_FA1R_FACT9_Msk (0x1U << CAN_FA1R_FACT9_Pos) /*!< 0x00000200 */
  2056. #define CAN_FA1R_FACT9 CAN_FA1R_FACT9_Msk /*!<Filter 9 Active */
  2057. #define CAN_FA1R_FACT10_Pos (10U)
  2058. #define CAN_FA1R_FACT10_Msk (0x1U << CAN_FA1R_FACT10_Pos) /*!< 0x00000400 */
  2059. #define CAN_FA1R_FACT10 CAN_FA1R_FACT10_Msk /*!<Filter 10 Active */
  2060. #define CAN_FA1R_FACT11_Pos (11U)
  2061. #define CAN_FA1R_FACT11_Msk (0x1U << CAN_FA1R_FACT11_Pos) /*!< 0x00000800 */
  2062. #define CAN_FA1R_FACT11 CAN_FA1R_FACT11_Msk /*!<Filter 11 Active */
  2063. #define CAN_FA1R_FACT12_Pos (12U)
  2064. #define CAN_FA1R_FACT12_Msk (0x1U << CAN_FA1R_FACT12_Pos) /*!< 0x00001000 */
  2065. #define CAN_FA1R_FACT12 CAN_FA1R_FACT12_Msk /*!<Filter 12 Active */
  2066. #define CAN_FA1R_FACT13_Pos (13U)
  2067. #define CAN_FA1R_FACT13_Msk (0x1U << CAN_FA1R_FACT13_Pos) /*!< 0x00002000 */
  2068. #define CAN_FA1R_FACT13 CAN_FA1R_FACT13_Msk /*!<Filter 13 Active */
  2069. /******************* Bit definition for CAN_F0R1 register *******************/
  2070. #define CAN_F0R1_FB0_Pos (0U)
  2071. #define CAN_F0R1_FB0_Msk (0x1U << CAN_F0R1_FB0_Pos) /*!< 0x00000001 */
  2072. #define CAN_F0R1_FB0 CAN_F0R1_FB0_Msk /*!<Filter bit 0 */
  2073. #define CAN_F0R1_FB1_Pos (1U)
  2074. #define CAN_F0R1_FB1_Msk (0x1U << CAN_F0R1_FB1_Pos) /*!< 0x00000002 */
  2075. #define CAN_F0R1_FB1 CAN_F0R1_FB1_Msk /*!<Filter bit 1 */
  2076. #define CAN_F0R1_FB2_Pos (2U)
  2077. #define CAN_F0R1_FB2_Msk (0x1U << CAN_F0R1_FB2_Pos) /*!< 0x00000004 */
  2078. #define CAN_F0R1_FB2 CAN_F0R1_FB2_Msk /*!<Filter bit 2 */
  2079. #define CAN_F0R1_FB3_Pos (3U)
  2080. #define CAN_F0R1_FB3_Msk (0x1U << CAN_F0R1_FB3_Pos) /*!< 0x00000008 */
  2081. #define CAN_F0R1_FB3 CAN_F0R1_FB3_Msk /*!<Filter bit 3 */
  2082. #define CAN_F0R1_FB4_Pos (4U)
  2083. #define CAN_F0R1_FB4_Msk (0x1U << CAN_F0R1_FB4_Pos) /*!< 0x00000010 */
  2084. #define CAN_F0R1_FB4 CAN_F0R1_FB4_Msk /*!<Filter bit 4 */
  2085. #define CAN_F0R1_FB5_Pos (5U)
  2086. #define CAN_F0R1_FB5_Msk (0x1U << CAN_F0R1_FB5_Pos) /*!< 0x00000020 */
  2087. #define CAN_F0R1_FB5 CAN_F0R1_FB5_Msk /*!<Filter bit 5 */
  2088. #define CAN_F0R1_FB6_Pos (6U)
  2089. #define CAN_F0R1_FB6_Msk (0x1U << CAN_F0R1_FB6_Pos) /*!< 0x00000040 */
  2090. #define CAN_F0R1_FB6 CAN_F0R1_FB6_Msk /*!<Filter bit 6 */
  2091. #define CAN_F0R1_FB7_Pos (7U)
  2092. #define CAN_F0R1_FB7_Msk (0x1U << CAN_F0R1_FB7_Pos) /*!< 0x00000080 */
  2093. #define CAN_F0R1_FB7 CAN_F0R1_FB7_Msk /*!<Filter bit 7 */
  2094. #define CAN_F0R1_FB8_Pos (8U)
  2095. #define CAN_F0R1_FB8_Msk (0x1U << CAN_F0R1_FB8_Pos) /*!< 0x00000100 */
  2096. #define CAN_F0R1_FB8 CAN_F0R1_FB8_Msk /*!<Filter bit 8 */
  2097. #define CAN_F0R1_FB9_Pos (9U)
  2098. #define CAN_F0R1_FB9_Msk (0x1U << CAN_F0R1_FB9_Pos) /*!< 0x00000200 */
  2099. #define CAN_F0R1_FB9 CAN_F0R1_FB9_Msk /*!<Filter bit 9 */
  2100. #define CAN_F0R1_FB10_Pos (10U)
  2101. #define CAN_F0R1_FB10_Msk (0x1U << CAN_F0R1_FB10_Pos) /*!< 0x00000400 */
  2102. #define CAN_F0R1_FB10 CAN_F0R1_FB10_Msk /*!<Filter bit 10 */
  2103. #define CAN_F0R1_FB11_Pos (11U)
  2104. #define CAN_F0R1_FB11_Msk (0x1U << CAN_F0R1_FB11_Pos) /*!< 0x00000800 */
  2105. #define CAN_F0R1_FB11 CAN_F0R1_FB11_Msk /*!<Filter bit 11 */
  2106. #define CAN_F0R1_FB12_Pos (12U)
  2107. #define CAN_F0R1_FB12_Msk (0x1U << CAN_F0R1_FB12_Pos) /*!< 0x00001000 */
  2108. #define CAN_F0R1_FB12 CAN_F0R1_FB12_Msk /*!<Filter bit 12 */
  2109. #define CAN_F0R1_FB13_Pos (13U)
  2110. #define CAN_F0R1_FB13_Msk (0x1U << CAN_F0R1_FB13_Pos) /*!< 0x00002000 */
  2111. #define CAN_F0R1_FB13 CAN_F0R1_FB13_Msk /*!<Filter bit 13 */
  2112. #define CAN_F0R1_FB14_Pos (14U)
  2113. #define CAN_F0R1_FB14_Msk (0x1U << CAN_F0R1_FB14_Pos) /*!< 0x00004000 */
  2114. #define CAN_F0R1_FB14 CAN_F0R1_FB14_Msk /*!<Filter bit 14 */
  2115. #define CAN_F0R1_FB15_Pos (15U)
  2116. #define CAN_F0R1_FB15_Msk (0x1U << CAN_F0R1_FB15_Pos) /*!< 0x00008000 */
  2117. #define CAN_F0R1_FB15 CAN_F0R1_FB15_Msk /*!<Filter bit 15 */
  2118. #define CAN_F0R1_FB16_Pos (16U)
  2119. #define CAN_F0R1_FB16_Msk (0x1U << CAN_F0R1_FB16_Pos) /*!< 0x00010000 */
  2120. #define CAN_F0R1_FB16 CAN_F0R1_FB16_Msk /*!<Filter bit 16 */
  2121. #define CAN_F0R1_FB17_Pos (17U)
  2122. #define CAN_F0R1_FB17_Msk (0x1U << CAN_F0R1_FB17_Pos) /*!< 0x00020000 */
  2123. #define CAN_F0R1_FB17 CAN_F0R1_FB17_Msk /*!<Filter bit 17 */
  2124. #define CAN_F0R1_FB18_Pos (18U)
  2125. #define CAN_F0R1_FB18_Msk (0x1U << CAN_F0R1_FB18_Pos) /*!< 0x00040000 */
  2126. #define CAN_F0R1_FB18 CAN_F0R1_FB18_Msk /*!<Filter bit 18 */
  2127. #define CAN_F0R1_FB19_Pos (19U)
  2128. #define CAN_F0R1_FB19_Msk (0x1U << CAN_F0R1_FB19_Pos) /*!< 0x00080000 */
  2129. #define CAN_F0R1_FB19 CAN_F0R1_FB19_Msk /*!<Filter bit 19 */
  2130. #define CAN_F0R1_FB20_Pos (20U)
  2131. #define CAN_F0R1_FB20_Msk (0x1U << CAN_F0R1_FB20_Pos) /*!< 0x00100000 */
  2132. #define CAN_F0R1_FB20 CAN_F0R1_FB20_Msk /*!<Filter bit 20 */
  2133. #define CAN_F0R1_FB21_Pos (21U)
  2134. #define CAN_F0R1_FB21_Msk (0x1U << CAN_F0R1_FB21_Pos) /*!< 0x00200000 */
  2135. #define CAN_F0R1_FB21 CAN_F0R1_FB21_Msk /*!<Filter bit 21 */
  2136. #define CAN_F0R1_FB22_Pos (22U)
  2137. #define CAN_F0R1_FB22_Msk (0x1U << CAN_F0R1_FB22_Pos) /*!< 0x00400000 */
  2138. #define CAN_F0R1_FB22 CAN_F0R1_FB22_Msk /*!<Filter bit 22 */
  2139. #define CAN_F0R1_FB23_Pos (23U)
  2140. #define CAN_F0R1_FB23_Msk (0x1U << CAN_F0R1_FB23_Pos) /*!< 0x00800000 */
  2141. #define CAN_F0R1_FB23 CAN_F0R1_FB23_Msk /*!<Filter bit 23 */
  2142. #define CAN_F0R1_FB24_Pos (24U)
  2143. #define CAN_F0R1_FB24_Msk (0x1U << CAN_F0R1_FB24_Pos) /*!< 0x01000000 */
  2144. #define CAN_F0R1_FB24 CAN_F0R1_FB24_Msk /*!<Filter bit 24 */
  2145. #define CAN_F0R1_FB25_Pos (25U)
  2146. #define CAN_F0R1_FB25_Msk (0x1U << CAN_F0R1_FB25_Pos) /*!< 0x02000000 */
  2147. #define CAN_F0R1_FB25 CAN_F0R1_FB25_Msk /*!<Filter bit 25 */
  2148. #define CAN_F0R1_FB26_Pos (26U)
  2149. #define CAN_F0R1_FB26_Msk (0x1U << CAN_F0R1_FB26_Pos) /*!< 0x04000000 */
  2150. #define CAN_F0R1_FB26 CAN_F0R1_FB26_Msk /*!<Filter bit 26 */
  2151. #define CAN_F0R1_FB27_Pos (27U)
  2152. #define CAN_F0R1_FB27_Msk (0x1U << CAN_F0R1_FB27_Pos) /*!< 0x08000000 */
  2153. #define CAN_F0R1_FB27 CAN_F0R1_FB27_Msk /*!<Filter bit 27 */
  2154. #define CAN_F0R1_FB28_Pos (28U)
  2155. #define CAN_F0R1_FB28_Msk (0x1U << CAN_F0R1_FB28_Pos) /*!< 0x10000000 */
  2156. #define CAN_F0R1_FB28 CAN_F0R1_FB28_Msk /*!<Filter bit 28 */
  2157. #define CAN_F0R1_FB29_Pos (29U)
  2158. #define CAN_F0R1_FB29_Msk (0x1U << CAN_F0R1_FB29_Pos) /*!< 0x20000000 */
  2159. #define CAN_F0R1_FB29 CAN_F0R1_FB29_Msk /*!<Filter bit 29 */
  2160. #define CAN_F0R1_FB30_Pos (30U)
  2161. #define CAN_F0R1_FB30_Msk (0x1U << CAN_F0R1_FB30_Pos) /*!< 0x40000000 */
  2162. #define CAN_F0R1_FB30 CAN_F0R1_FB30_Msk /*!<Filter bit 30 */
  2163. #define CAN_F0R1_FB31_Pos (31U)
  2164. #define CAN_F0R1_FB31_Msk (0x1U << CAN_F0R1_FB31_Pos) /*!< 0x80000000 */
  2165. #define CAN_F0R1_FB31 CAN_F0R1_FB31_Msk /*!<Filter bit 31 */
  2166. /******************* Bit definition for CAN_F1R1 register *******************/
  2167. #define CAN_F1R1_FB0_Pos (0U)
  2168. #define CAN_F1R1_FB0_Msk (0x1U << CAN_F1R1_FB0_Pos) /*!< 0x00000001 */
  2169. #define CAN_F1R1_FB0 CAN_F1R1_FB0_Msk /*!<Filter bit 0 */
  2170. #define CAN_F1R1_FB1_Pos (1U)
  2171. #define CAN_F1R1_FB1_Msk (0x1U << CAN_F1R1_FB1_Pos) /*!< 0x00000002 */
  2172. #define CAN_F1R1_FB1 CAN_F1R1_FB1_Msk /*!<Filter bit 1 */
  2173. #define CAN_F1R1_FB2_Pos (2U)
  2174. #define CAN_F1R1_FB2_Msk (0x1U << CAN_F1R1_FB2_Pos) /*!< 0x00000004 */
  2175. #define CAN_F1R1_FB2 CAN_F1R1_FB2_Msk /*!<Filter bit 2 */
  2176. #define CAN_F1R1_FB3_Pos (3U)
  2177. #define CAN_F1R1_FB3_Msk (0x1U << CAN_F1R1_FB3_Pos) /*!< 0x00000008 */
  2178. #define CAN_F1R1_FB3 CAN_F1R1_FB3_Msk /*!<Filter bit 3 */
  2179. #define CAN_F1R1_FB4_Pos (4U)
  2180. #define CAN_F1R1_FB4_Msk (0x1U << CAN_F1R1_FB4_Pos) /*!< 0x00000010 */
  2181. #define CAN_F1R1_FB4 CAN_F1R1_FB4_Msk /*!<Filter bit 4 */
  2182. #define CAN_F1R1_FB5_Pos (5U)
  2183. #define CAN_F1R1_FB5_Msk (0x1U << CAN_F1R1_FB5_Pos) /*!< 0x00000020 */
  2184. #define CAN_F1R1_FB5 CAN_F1R1_FB5_Msk /*!<Filter bit 5 */
  2185. #define CAN_F1R1_FB6_Pos (6U)
  2186. #define CAN_F1R1_FB6_Msk (0x1U << CAN_F1R1_FB6_Pos) /*!< 0x00000040 */
  2187. #define CAN_F1R1_FB6 CAN_F1R1_FB6_Msk /*!<Filter bit 6 */
  2188. #define CAN_F1R1_FB7_Pos (7U)
  2189. #define CAN_F1R1_FB7_Msk (0x1U << CAN_F1R1_FB7_Pos) /*!< 0x00000080 */
  2190. #define CAN_F1R1_FB7 CAN_F1R1_FB7_Msk /*!<Filter bit 7 */
  2191. #define CAN_F1R1_FB8_Pos (8U)
  2192. #define CAN_F1R1_FB8_Msk (0x1U << CAN_F1R1_FB8_Pos) /*!< 0x00000100 */
  2193. #define CAN_F1R1_FB8 CAN_F1R1_FB8_Msk /*!<Filter bit 8 */
  2194. #define CAN_F1R1_FB9_Pos (9U)
  2195. #define CAN_F1R1_FB9_Msk (0x1U << CAN_F1R1_FB9_Pos) /*!< 0x00000200 */
  2196. #define CAN_F1R1_FB9 CAN_F1R1_FB9_Msk /*!<Filter bit 9 */
  2197. #define CAN_F1R1_FB10_Pos (10U)
  2198. #define CAN_F1R1_FB10_Msk (0x1U << CAN_F1R1_FB10_Pos) /*!< 0x00000400 */
  2199. #define CAN_F1R1_FB10 CAN_F1R1_FB10_Msk /*!<Filter bit 10 */
  2200. #define CAN_F1R1_FB11_Pos (11U)
  2201. #define CAN_F1R1_FB11_Msk (0x1U << CAN_F1R1_FB11_Pos) /*!< 0x00000800 */
  2202. #define CAN_F1R1_FB11 CAN_F1R1_FB11_Msk /*!<Filter bit 11 */
  2203. #define CAN_F1R1_FB12_Pos (12U)
  2204. #define CAN_F1R1_FB12_Msk (0x1U << CAN_F1R1_FB12_Pos) /*!< 0x00001000 */
  2205. #define CAN_F1R1_FB12 CAN_F1R1_FB12_Msk /*!<Filter bit 12 */
  2206. #define CAN_F1R1_FB13_Pos (13U)
  2207. #define CAN_F1R1_FB13_Msk (0x1U << CAN_F1R1_FB13_Pos) /*!< 0x00002000 */
  2208. #define CAN_F1R1_FB13 CAN_F1R1_FB13_Msk /*!<Filter bit 13 */
  2209. #define CAN_F1R1_FB14_Pos (14U)
  2210. #define CAN_F1R1_FB14_Msk (0x1U << CAN_F1R1_FB14_Pos) /*!< 0x00004000 */
  2211. #define CAN_F1R1_FB14 CAN_F1R1_FB14_Msk /*!<Filter bit 14 */
  2212. #define CAN_F1R1_FB15_Pos (15U)
  2213. #define CAN_F1R1_FB15_Msk (0x1U << CAN_F1R1_FB15_Pos) /*!< 0x00008000 */
  2214. #define CAN_F1R1_FB15 CAN_F1R1_FB15_Msk /*!<Filter bit 15 */
  2215. #define CAN_F1R1_FB16_Pos (16U)
  2216. #define CAN_F1R1_FB16_Msk (0x1U << CAN_F1R1_FB16_Pos) /*!< 0x00010000 */
  2217. #define CAN_F1R1_FB16 CAN_F1R1_FB16_Msk /*!<Filter bit 16 */
  2218. #define CAN_F1R1_FB17_Pos (17U)
  2219. #define CAN_F1R1_FB17_Msk (0x1U << CAN_F1R1_FB17_Pos) /*!< 0x00020000 */
  2220. #define CAN_F1R1_FB17 CAN_F1R1_FB17_Msk /*!<Filter bit 17 */
  2221. #define CAN_F1R1_FB18_Pos (18U)
  2222. #define CAN_F1R1_FB18_Msk (0x1U << CAN_F1R1_FB18_Pos) /*!< 0x00040000 */
  2223. #define CAN_F1R1_FB18 CAN_F1R1_FB18_Msk /*!<Filter bit 18 */
  2224. #define CAN_F1R1_FB19_Pos (19U)
  2225. #define CAN_F1R1_FB19_Msk (0x1U << CAN_F1R1_FB19_Pos) /*!< 0x00080000 */
  2226. #define CAN_F1R1_FB19 CAN_F1R1_FB19_Msk /*!<Filter bit 19 */
  2227. #define CAN_F1R1_FB20_Pos (20U)
  2228. #define CAN_F1R1_FB20_Msk (0x1U << CAN_F1R1_FB20_Pos) /*!< 0x00100000 */
  2229. #define CAN_F1R1_FB20 CAN_F1R1_FB20_Msk /*!<Filter bit 20 */
  2230. #define CAN_F1R1_FB21_Pos (21U)
  2231. #define CAN_F1R1_FB21_Msk (0x1U << CAN_F1R1_FB21_Pos) /*!< 0x00200000 */
  2232. #define CAN_F1R1_FB21 CAN_F1R1_FB21_Msk /*!<Filter bit 21 */
  2233. #define CAN_F1R1_FB22_Pos (22U)
  2234. #define CAN_F1R1_FB22_Msk (0x1U << CAN_F1R1_FB22_Pos) /*!< 0x00400000 */
  2235. #define CAN_F1R1_FB22 CAN_F1R1_FB22_Msk /*!<Filter bit 22 */
  2236. #define CAN_F1R1_FB23_Pos (23U)
  2237. #define CAN_F1R1_FB23_Msk (0x1U << CAN_F1R1_FB23_Pos) /*!< 0x00800000 */
  2238. #define CAN_F1R1_FB23 CAN_F1R1_FB23_Msk /*!<Filter bit 23 */
  2239. #define CAN_F1R1_FB24_Pos (24U)
  2240. #define CAN_F1R1_FB24_Msk (0x1U << CAN_F1R1_FB24_Pos) /*!< 0x01000000 */
  2241. #define CAN_F1R1_FB24 CAN_F1R1_FB24_Msk /*!<Filter bit 24 */
  2242. #define CAN_F1R1_FB25_Pos (25U)
  2243. #define CAN_F1R1_FB25_Msk (0x1U << CAN_F1R1_FB25_Pos) /*!< 0x02000000 */
  2244. #define CAN_F1R1_FB25 CAN_F1R1_FB25_Msk /*!<Filter bit 25 */
  2245. #define CAN_F1R1_FB26_Pos (26U)
  2246. #define CAN_F1R1_FB26_Msk (0x1U << CAN_F1R1_FB26_Pos) /*!< 0x04000000 */
  2247. #define CAN_F1R1_FB26 CAN_F1R1_FB26_Msk /*!<Filter bit 26 */
  2248. #define CAN_F1R1_FB27_Pos (27U)
  2249. #define CAN_F1R1_FB27_Msk (0x1U << CAN_F1R1_FB27_Pos) /*!< 0x08000000 */
  2250. #define CAN_F1R1_FB27 CAN_F1R1_FB27_Msk /*!<Filter bit 27 */
  2251. #define CAN_F1R1_FB28_Pos (28U)
  2252. #define CAN_F1R1_FB28_Msk (0x1U << CAN_F1R1_FB28_Pos) /*!< 0x10000000 */
  2253. #define CAN_F1R1_FB28 CAN_F1R1_FB28_Msk /*!<Filter bit 28 */
  2254. #define CAN_F1R1_FB29_Pos (29U)
  2255. #define CAN_F1R1_FB29_Msk (0x1U << CAN_F1R1_FB29_Pos) /*!< 0x20000000 */
  2256. #define CAN_F1R1_FB29 CAN_F1R1_FB29_Msk /*!<Filter bit 29 */
  2257. #define CAN_F1R1_FB30_Pos (30U)
  2258. #define CAN_F1R1_FB30_Msk (0x1U << CAN_F1R1_FB30_Pos) /*!< 0x40000000 */
  2259. #define CAN_F1R1_FB30 CAN_F1R1_FB30_Msk /*!<Filter bit 30 */
  2260. #define CAN_F1R1_FB31_Pos (31U)
  2261. #define CAN_F1R1_FB31_Msk (0x1U << CAN_F1R1_FB31_Pos) /*!< 0x80000000 */
  2262. #define CAN_F1R1_FB31 CAN_F1R1_FB31_Msk /*!<Filter bit 31 */
  2263. /******************* Bit definition for CAN_F2R1 register *******************/
  2264. #define CAN_F2R1_FB0_Pos (0U)
  2265. #define CAN_F2R1_FB0_Msk (0x1U << CAN_F2R1_FB0_Pos) /*!< 0x00000001 */
  2266. #define CAN_F2R1_FB0 CAN_F2R1_FB0_Msk /*!<Filter bit 0 */
  2267. #define CAN_F2R1_FB1_Pos (1U)
  2268. #define CAN_F2R1_FB1_Msk (0x1U << CAN_F2R1_FB1_Pos) /*!< 0x00000002 */
  2269. #define CAN_F2R1_FB1 CAN_F2R1_FB1_Msk /*!<Filter bit 1 */
  2270. #define CAN_F2R1_FB2_Pos (2U)
  2271. #define CAN_F2R1_FB2_Msk (0x1U << CAN_F2R1_FB2_Pos) /*!< 0x00000004 */
  2272. #define CAN_F2R1_FB2 CAN_F2R1_FB2_Msk /*!<Filter bit 2 */
  2273. #define CAN_F2R1_FB3_Pos (3U)
  2274. #define CAN_F2R1_FB3_Msk (0x1U << CAN_F2R1_FB3_Pos) /*!< 0x00000008 */
  2275. #define CAN_F2R1_FB3 CAN_F2R1_FB3_Msk /*!<Filter bit 3 */
  2276. #define CAN_F2R1_FB4_Pos (4U)
  2277. #define CAN_F2R1_FB4_Msk (0x1U << CAN_F2R1_FB4_Pos) /*!< 0x00000010 */
  2278. #define CAN_F2R1_FB4 CAN_F2R1_FB4_Msk /*!<Filter bit 4 */
  2279. #define CAN_F2R1_FB5_Pos (5U)
  2280. #define CAN_F2R1_FB5_Msk (0x1U << CAN_F2R1_FB5_Pos) /*!< 0x00000020 */
  2281. #define CAN_F2R1_FB5 CAN_F2R1_FB5_Msk /*!<Filter bit 5 */
  2282. #define CAN_F2R1_FB6_Pos (6U)
  2283. #define CAN_F2R1_FB6_Msk (0x1U << CAN_F2R1_FB6_Pos) /*!< 0x00000040 */
  2284. #define CAN_F2R1_FB6 CAN_F2R1_FB6_Msk /*!<Filter bit 6 */
  2285. #define CAN_F2R1_FB7_Pos (7U)
  2286. #define CAN_F2R1_FB7_Msk (0x1U << CAN_F2R1_FB7_Pos) /*!< 0x00000080 */
  2287. #define CAN_F2R1_FB7 CAN_F2R1_FB7_Msk /*!<Filter bit 7 */
  2288. #define CAN_F2R1_FB8_Pos (8U)
  2289. #define CAN_F2R1_FB8_Msk (0x1U << CAN_F2R1_FB8_Pos) /*!< 0x00000100 */
  2290. #define CAN_F2R1_FB8 CAN_F2R1_FB8_Msk /*!<Filter bit 8 */
  2291. #define CAN_F2R1_FB9_Pos (9U)
  2292. #define CAN_F2R1_FB9_Msk (0x1U << CAN_F2R1_FB9_Pos) /*!< 0x00000200 */
  2293. #define CAN_F2R1_FB9 CAN_F2R1_FB9_Msk /*!<Filter bit 9 */
  2294. #define CAN_F2R1_FB10_Pos (10U)
  2295. #define CAN_F2R1_FB10_Msk (0x1U << CAN_F2R1_FB10_Pos) /*!< 0x00000400 */
  2296. #define CAN_F2R1_FB10 CAN_F2R1_FB10_Msk /*!<Filter bit 10 */
  2297. #define CAN_F2R1_FB11_Pos (11U)
  2298. #define CAN_F2R1_FB11_Msk (0x1U << CAN_F2R1_FB11_Pos) /*!< 0x00000800 */
  2299. #define CAN_F2R1_FB11 CAN_F2R1_FB11_Msk /*!<Filter bit 11 */
  2300. #define CAN_F2R1_FB12_Pos (12U)
  2301. #define CAN_F2R1_FB12_Msk (0x1U << CAN_F2R1_FB12_Pos) /*!< 0x00001000 */
  2302. #define CAN_F2R1_FB12 CAN_F2R1_FB12_Msk /*!<Filter bit 12 */
  2303. #define CAN_F2R1_FB13_Pos (13U)
  2304. #define CAN_F2R1_FB13_Msk (0x1U << CAN_F2R1_FB13_Pos) /*!< 0x00002000 */
  2305. #define CAN_F2R1_FB13 CAN_F2R1_FB13_Msk /*!<Filter bit 13 */
  2306. #define CAN_F2R1_FB14_Pos (14U)
  2307. #define CAN_F2R1_FB14_Msk (0x1U << CAN_F2R1_FB14_Pos) /*!< 0x00004000 */
  2308. #define CAN_F2R1_FB14 CAN_F2R1_FB14_Msk /*!<Filter bit 14 */
  2309. #define CAN_F2R1_FB15_Pos (15U)
  2310. #define CAN_F2R1_FB15_Msk (0x1U << CAN_F2R1_FB15_Pos) /*!< 0x00008000 */
  2311. #define CAN_F2R1_FB15 CAN_F2R1_FB15_Msk /*!<Filter bit 15 */
  2312. #define CAN_F2R1_FB16_Pos (16U)
  2313. #define CAN_F2R1_FB16_Msk (0x1U << CAN_F2R1_FB16_Pos) /*!< 0x00010000 */
  2314. #define CAN_F2R1_FB16 CAN_F2R1_FB16_Msk /*!<Filter bit 16 */
  2315. #define CAN_F2R1_FB17_Pos (17U)
  2316. #define CAN_F2R1_FB17_Msk (0x1U << CAN_F2R1_FB17_Pos) /*!< 0x00020000 */
  2317. #define CAN_F2R1_FB17 CAN_F2R1_FB17_Msk /*!<Filter bit 17 */
  2318. #define CAN_F2R1_FB18_Pos (18U)
  2319. #define CAN_F2R1_FB18_Msk (0x1U << CAN_F2R1_FB18_Pos) /*!< 0x00040000 */
  2320. #define CAN_F2R1_FB18 CAN_F2R1_FB18_Msk /*!<Filter bit 18 */
  2321. #define CAN_F2R1_FB19_Pos (19U)
  2322. #define CAN_F2R1_FB19_Msk (0x1U << CAN_F2R1_FB19_Pos) /*!< 0x00080000 */
  2323. #define CAN_F2R1_FB19 CAN_F2R1_FB19_Msk /*!<Filter bit 19 */
  2324. #define CAN_F2R1_FB20_Pos (20U)
  2325. #define CAN_F2R1_FB20_Msk (0x1U << CAN_F2R1_FB20_Pos) /*!< 0x00100000 */
  2326. #define CAN_F2R1_FB20 CAN_F2R1_FB20_Msk /*!<Filter bit 20 */
  2327. #define CAN_F2R1_FB21_Pos (21U)
  2328. #define CAN_F2R1_FB21_Msk (0x1U << CAN_F2R1_FB21_Pos) /*!< 0x00200000 */
  2329. #define CAN_F2R1_FB21 CAN_F2R1_FB21_Msk /*!<Filter bit 21 */
  2330. #define CAN_F2R1_FB22_Pos (22U)
  2331. #define CAN_F2R1_FB22_Msk (0x1U << CAN_F2R1_FB22_Pos) /*!< 0x00400000 */
  2332. #define CAN_F2R1_FB22 CAN_F2R1_FB22_Msk /*!<Filter bit 22 */
  2333. #define CAN_F2R1_FB23_Pos (23U)
  2334. #define CAN_F2R1_FB23_Msk (0x1U << CAN_F2R1_FB23_Pos) /*!< 0x00800000 */
  2335. #define CAN_F2R1_FB23 CAN_F2R1_FB23_Msk /*!<Filter bit 23 */
  2336. #define CAN_F2R1_FB24_Pos (24U)
  2337. #define CAN_F2R1_FB24_Msk (0x1U << CAN_F2R1_FB24_Pos) /*!< 0x01000000 */
  2338. #define CAN_F2R1_FB24 CAN_F2R1_FB24_Msk /*!<Filter bit 24 */
  2339. #define CAN_F2R1_FB25_Pos (25U)
  2340. #define CAN_F2R1_FB25_Msk (0x1U << CAN_F2R1_FB25_Pos) /*!< 0x02000000 */
  2341. #define CAN_F2R1_FB25 CAN_F2R1_FB25_Msk /*!<Filter bit 25 */
  2342. #define CAN_F2R1_FB26_Pos (26U)
  2343. #define CAN_F2R1_FB26_Msk (0x1U << CAN_F2R1_FB26_Pos) /*!< 0x04000000 */
  2344. #define CAN_F2R1_FB26 CAN_F2R1_FB26_Msk /*!<Filter bit 26 */
  2345. #define CAN_F2R1_FB27_Pos (27U)
  2346. #define CAN_F2R1_FB27_Msk (0x1U << CAN_F2R1_FB27_Pos) /*!< 0x08000000 */
  2347. #define CAN_F2R1_FB27 CAN_F2R1_FB27_Msk /*!<Filter bit 27 */
  2348. #define CAN_F2R1_FB28_Pos (28U)
  2349. #define CAN_F2R1_FB28_Msk (0x1U << CAN_F2R1_FB28_Pos) /*!< 0x10000000 */
  2350. #define CAN_F2R1_FB28 CAN_F2R1_FB28_Msk /*!<Filter bit 28 */
  2351. #define CAN_F2R1_FB29_Pos (29U)
  2352. #define CAN_F2R1_FB29_Msk (0x1U << CAN_F2R1_FB29_Pos) /*!< 0x20000000 */
  2353. #define CAN_F2R1_FB29 CAN_F2R1_FB29_Msk /*!<Filter bit 29 */
  2354. #define CAN_F2R1_FB30_Pos (30U)
  2355. #define CAN_F2R1_FB30_Msk (0x1U << CAN_F2R1_FB30_Pos) /*!< 0x40000000 */
  2356. #define CAN_F2R1_FB30 CAN_F2R1_FB30_Msk /*!<Filter bit 30 */
  2357. #define CAN_F2R1_FB31_Pos (31U)
  2358. #define CAN_F2R1_FB31_Msk (0x1U << CAN_F2R1_FB31_Pos) /*!< 0x80000000 */
  2359. #define CAN_F2R1_FB31 CAN_F2R1_FB31_Msk /*!<Filter bit 31 */
  2360. /******************* Bit definition for CAN_F3R1 register *******************/
  2361. #define CAN_F3R1_FB0_Pos (0U)
  2362. #define CAN_F3R1_FB0_Msk (0x1U << CAN_F3R1_FB0_Pos) /*!< 0x00000001 */
  2363. #define CAN_F3R1_FB0 CAN_F3R1_FB0_Msk /*!<Filter bit 0 */
  2364. #define CAN_F3R1_FB1_Pos (1U)
  2365. #define CAN_F3R1_FB1_Msk (0x1U << CAN_F3R1_FB1_Pos) /*!< 0x00000002 */
  2366. #define CAN_F3R1_FB1 CAN_F3R1_FB1_Msk /*!<Filter bit 1 */
  2367. #define CAN_F3R1_FB2_Pos (2U)
  2368. #define CAN_F3R1_FB2_Msk (0x1U << CAN_F3R1_FB2_Pos) /*!< 0x00000004 */
  2369. #define CAN_F3R1_FB2 CAN_F3R1_FB2_Msk /*!<Filter bit 2 */
  2370. #define CAN_F3R1_FB3_Pos (3U)
  2371. #define CAN_F3R1_FB3_Msk (0x1U << CAN_F3R1_FB3_Pos) /*!< 0x00000008 */
  2372. #define CAN_F3R1_FB3 CAN_F3R1_FB3_Msk /*!<Filter bit 3 */
  2373. #define CAN_F3R1_FB4_Pos (4U)
  2374. #define CAN_F3R1_FB4_Msk (0x1U << CAN_F3R1_FB4_Pos) /*!< 0x00000010 */
  2375. #define CAN_F3R1_FB4 CAN_F3R1_FB4_Msk /*!<Filter bit 4 */
  2376. #define CAN_F3R1_FB5_Pos (5U)
  2377. #define CAN_F3R1_FB5_Msk (0x1U << CAN_F3R1_FB5_Pos) /*!< 0x00000020 */
  2378. #define CAN_F3R1_FB5 CAN_F3R1_FB5_Msk /*!<Filter bit 5 */
  2379. #define CAN_F3R1_FB6_Pos (6U)
  2380. #define CAN_F3R1_FB6_Msk (0x1U << CAN_F3R1_FB6_Pos) /*!< 0x00000040 */
  2381. #define CAN_F3R1_FB6 CAN_F3R1_FB6_Msk /*!<Filter bit 6 */
  2382. #define CAN_F3R1_FB7_Pos (7U)
  2383. #define CAN_F3R1_FB7_Msk (0x1U << CAN_F3R1_FB7_Pos) /*!< 0x00000080 */
  2384. #define CAN_F3R1_FB7 CAN_F3R1_FB7_Msk /*!<Filter bit 7 */
  2385. #define CAN_F3R1_FB8_Pos (8U)
  2386. #define CAN_F3R1_FB8_Msk (0x1U << CAN_F3R1_FB8_Pos) /*!< 0x00000100 */
  2387. #define CAN_F3R1_FB8 CAN_F3R1_FB8_Msk /*!<Filter bit 8 */
  2388. #define CAN_F3R1_FB9_Pos (9U)
  2389. #define CAN_F3R1_FB9_Msk (0x1U << CAN_F3R1_FB9_Pos) /*!< 0x00000200 */
  2390. #define CAN_F3R1_FB9 CAN_F3R1_FB9_Msk /*!<Filter bit 9 */
  2391. #define CAN_F3R1_FB10_Pos (10U)
  2392. #define CAN_F3R1_FB10_Msk (0x1U << CAN_F3R1_FB10_Pos) /*!< 0x00000400 */
  2393. #define CAN_F3R1_FB10 CAN_F3R1_FB10_Msk /*!<Filter bit 10 */
  2394. #define CAN_F3R1_FB11_Pos (11U)
  2395. #define CAN_F3R1_FB11_Msk (0x1U << CAN_F3R1_FB11_Pos) /*!< 0x00000800 */
  2396. #define CAN_F3R1_FB11 CAN_F3R1_FB11_Msk /*!<Filter bit 11 */
  2397. #define CAN_F3R1_FB12_Pos (12U)
  2398. #define CAN_F3R1_FB12_Msk (0x1U << CAN_F3R1_FB12_Pos) /*!< 0x00001000 */
  2399. #define CAN_F3R1_FB12 CAN_F3R1_FB12_Msk /*!<Filter bit 12 */
  2400. #define CAN_F3R1_FB13_Pos (13U)
  2401. #define CAN_F3R1_FB13_Msk (0x1U << CAN_F3R1_FB13_Pos) /*!< 0x00002000 */
  2402. #define CAN_F3R1_FB13 CAN_F3R1_FB13_Msk /*!<Filter bit 13 */
  2403. #define CAN_F3R1_FB14_Pos (14U)
  2404. #define CAN_F3R1_FB14_Msk (0x1U << CAN_F3R1_FB14_Pos) /*!< 0x00004000 */
  2405. #define CAN_F3R1_FB14 CAN_F3R1_FB14_Msk /*!<Filter bit 14 */
  2406. #define CAN_F3R1_FB15_Pos (15U)
  2407. #define CAN_F3R1_FB15_Msk (0x1U << CAN_F3R1_FB15_Pos) /*!< 0x00008000 */
  2408. #define CAN_F3R1_FB15 CAN_F3R1_FB15_Msk /*!<Filter bit 15 */
  2409. #define CAN_F3R1_FB16_Pos (16U)
  2410. #define CAN_F3R1_FB16_Msk (0x1U << CAN_F3R1_FB16_Pos) /*!< 0x00010000 */
  2411. #define CAN_F3R1_FB16 CAN_F3R1_FB16_Msk /*!<Filter bit 16 */
  2412. #define CAN_F3R1_FB17_Pos (17U)
  2413. #define CAN_F3R1_FB17_Msk (0x1U << CAN_F3R1_FB17_Pos) /*!< 0x00020000 */
  2414. #define CAN_F3R1_FB17 CAN_F3R1_FB17_Msk /*!<Filter bit 17 */
  2415. #define CAN_F3R1_FB18_Pos (18U)
  2416. #define CAN_F3R1_FB18_Msk (0x1U << CAN_F3R1_FB18_Pos) /*!< 0x00040000 */
  2417. #define CAN_F3R1_FB18 CAN_F3R1_FB18_Msk /*!<Filter bit 18 */
  2418. #define CAN_F3R1_FB19_Pos (19U)
  2419. #define CAN_F3R1_FB19_Msk (0x1U << CAN_F3R1_FB19_Pos) /*!< 0x00080000 */
  2420. #define CAN_F3R1_FB19 CAN_F3R1_FB19_Msk /*!<Filter bit 19 */
  2421. #define CAN_F3R1_FB20_Pos (20U)
  2422. #define CAN_F3R1_FB20_Msk (0x1U << CAN_F3R1_FB20_Pos) /*!< 0x00100000 */
  2423. #define CAN_F3R1_FB20 CAN_F3R1_FB20_Msk /*!<Filter bit 20 */
  2424. #define CAN_F3R1_FB21_Pos (21U)
  2425. #define CAN_F3R1_FB21_Msk (0x1U << CAN_F3R1_FB21_Pos) /*!< 0x00200000 */
  2426. #define CAN_F3R1_FB21 CAN_F3R1_FB21_Msk /*!<Filter bit 21 */
  2427. #define CAN_F3R1_FB22_Pos (22U)
  2428. #define CAN_F3R1_FB22_Msk (0x1U << CAN_F3R1_FB22_Pos) /*!< 0x00400000 */
  2429. #define CAN_F3R1_FB22 CAN_F3R1_FB22_Msk /*!<Filter bit 22 */
  2430. #define CAN_F3R1_FB23_Pos (23U)
  2431. #define CAN_F3R1_FB23_Msk (0x1U << CAN_F3R1_FB23_Pos) /*!< 0x00800000 */
  2432. #define CAN_F3R1_FB23 CAN_F3R1_FB23_Msk /*!<Filter bit 23 */
  2433. #define CAN_F3R1_FB24_Pos (24U)
  2434. #define CAN_F3R1_FB24_Msk (0x1U << CAN_F3R1_FB24_Pos) /*!< 0x01000000 */
  2435. #define CAN_F3R1_FB24 CAN_F3R1_FB24_Msk /*!<Filter bit 24 */
  2436. #define CAN_F3R1_FB25_Pos (25U)
  2437. #define CAN_F3R1_FB25_Msk (0x1U << CAN_F3R1_FB25_Pos) /*!< 0x02000000 */
  2438. #define CAN_F3R1_FB25 CAN_F3R1_FB25_Msk /*!<Filter bit 25 */
  2439. #define CAN_F3R1_FB26_Pos (26U)
  2440. #define CAN_F3R1_FB26_Msk (0x1U << CAN_F3R1_FB26_Pos) /*!< 0x04000000 */
  2441. #define CAN_F3R1_FB26 CAN_F3R1_FB26_Msk /*!<Filter bit 26 */
  2442. #define CAN_F3R1_FB27_Pos (27U)
  2443. #define CAN_F3R1_FB27_Msk (0x1U << CAN_F3R1_FB27_Pos) /*!< 0x08000000 */
  2444. #define CAN_F3R1_FB27 CAN_F3R1_FB27_Msk /*!<Filter bit 27 */
  2445. #define CAN_F3R1_FB28_Pos (28U)
  2446. #define CAN_F3R1_FB28_Msk (0x1U << CAN_F3R1_FB28_Pos) /*!< 0x10000000 */
  2447. #define CAN_F3R1_FB28 CAN_F3R1_FB28_Msk /*!<Filter bit 28 */
  2448. #define CAN_F3R1_FB29_Pos (29U)
  2449. #define CAN_F3R1_FB29_Msk (0x1U << CAN_F3R1_FB29_Pos) /*!< 0x20000000 */
  2450. #define CAN_F3R1_FB29 CAN_F3R1_FB29_Msk /*!<Filter bit 29 */
  2451. #define CAN_F3R1_FB30_Pos (30U)
  2452. #define CAN_F3R1_FB30_Msk (0x1U << CAN_F3R1_FB30_Pos) /*!< 0x40000000 */
  2453. #define CAN_F3R1_FB30 CAN_F3R1_FB30_Msk /*!<Filter bit 30 */
  2454. #define CAN_F3R1_FB31_Pos (31U)
  2455. #define CAN_F3R1_FB31_Msk (0x1U << CAN_F3R1_FB31_Pos) /*!< 0x80000000 */
  2456. #define CAN_F3R1_FB31 CAN_F3R1_FB31_Msk /*!<Filter bit 31 */
  2457. /******************* Bit definition for CAN_F4R1 register *******************/
  2458. #define CAN_F4R1_FB0_Pos (0U)
  2459. #define CAN_F4R1_FB0_Msk (0x1U << CAN_F4R1_FB0_Pos) /*!< 0x00000001 */
  2460. #define CAN_F4R1_FB0 CAN_F4R1_FB0_Msk /*!<Filter bit 0 */
  2461. #define CAN_F4R1_FB1_Pos (1U)
  2462. #define CAN_F4R1_FB1_Msk (0x1U << CAN_F4R1_FB1_Pos) /*!< 0x00000002 */
  2463. #define CAN_F4R1_FB1 CAN_F4R1_FB1_Msk /*!<Filter bit 1 */
  2464. #define CAN_F4R1_FB2_Pos (2U)
  2465. #define CAN_F4R1_FB2_Msk (0x1U << CAN_F4R1_FB2_Pos) /*!< 0x00000004 */
  2466. #define CAN_F4R1_FB2 CAN_F4R1_FB2_Msk /*!<Filter bit 2 */
  2467. #define CAN_F4R1_FB3_Pos (3U)
  2468. #define CAN_F4R1_FB3_Msk (0x1U << CAN_F4R1_FB3_Pos) /*!< 0x00000008 */
  2469. #define CAN_F4R1_FB3 CAN_F4R1_FB3_Msk /*!<Filter bit 3 */
  2470. #define CAN_F4R1_FB4_Pos (4U)
  2471. #define CAN_F4R1_FB4_Msk (0x1U << CAN_F4R1_FB4_Pos) /*!< 0x00000010 */
  2472. #define CAN_F4R1_FB4 CAN_F4R1_FB4_Msk /*!<Filter bit 4 */
  2473. #define CAN_F4R1_FB5_Pos (5U)
  2474. #define CAN_F4R1_FB5_Msk (0x1U << CAN_F4R1_FB5_Pos) /*!< 0x00000020 */
  2475. #define CAN_F4R1_FB5 CAN_F4R1_FB5_Msk /*!<Filter bit 5 */
  2476. #define CAN_F4R1_FB6_Pos (6U)
  2477. #define CAN_F4R1_FB6_Msk (0x1U << CAN_F4R1_FB6_Pos) /*!< 0x00000040 */
  2478. #define CAN_F4R1_FB6 CAN_F4R1_FB6_Msk /*!<Filter bit 6 */
  2479. #define CAN_F4R1_FB7_Pos (7U)
  2480. #define CAN_F4R1_FB7_Msk (0x1U << CAN_F4R1_FB7_Pos) /*!< 0x00000080 */
  2481. #define CAN_F4R1_FB7 CAN_F4R1_FB7_Msk /*!<Filter bit 7 */
  2482. #define CAN_F4R1_FB8_Pos (8U)
  2483. #define CAN_F4R1_FB8_Msk (0x1U << CAN_F4R1_FB8_Pos) /*!< 0x00000100 */
  2484. #define CAN_F4R1_FB8 CAN_F4R1_FB8_Msk /*!<Filter bit 8 */
  2485. #define CAN_F4R1_FB9_Pos (9U)
  2486. #define CAN_F4R1_FB9_Msk (0x1U << CAN_F4R1_FB9_Pos) /*!< 0x00000200 */
  2487. #define CAN_F4R1_FB9 CAN_F4R1_FB9_Msk /*!<Filter bit 9 */
  2488. #define CAN_F4R1_FB10_Pos (10U)
  2489. #define CAN_F4R1_FB10_Msk (0x1U << CAN_F4R1_FB10_Pos) /*!< 0x00000400 */
  2490. #define CAN_F4R1_FB10 CAN_F4R1_FB10_Msk /*!<Filter bit 10 */
  2491. #define CAN_F4R1_FB11_Pos (11U)
  2492. #define CAN_F4R1_FB11_Msk (0x1U << CAN_F4R1_FB11_Pos) /*!< 0x00000800 */
  2493. #define CAN_F4R1_FB11 CAN_F4R1_FB11_Msk /*!<Filter bit 11 */
  2494. #define CAN_F4R1_FB12_Pos (12U)
  2495. #define CAN_F4R1_FB12_Msk (0x1U << CAN_F4R1_FB12_Pos) /*!< 0x00001000 */
  2496. #define CAN_F4R1_FB12 CAN_F4R1_FB12_Msk /*!<Filter bit 12 */
  2497. #define CAN_F4R1_FB13_Pos (13U)
  2498. #define CAN_F4R1_FB13_Msk (0x1U << CAN_F4R1_FB13_Pos) /*!< 0x00002000 */
  2499. #define CAN_F4R1_FB13 CAN_F4R1_FB13_Msk /*!<Filter bit 13 */
  2500. #define CAN_F4R1_FB14_Pos (14U)
  2501. #define CAN_F4R1_FB14_Msk (0x1U << CAN_F4R1_FB14_Pos) /*!< 0x00004000 */
  2502. #define CAN_F4R1_FB14 CAN_F4R1_FB14_Msk /*!<Filter bit 14 */
  2503. #define CAN_F4R1_FB15_Pos (15U)
  2504. #define CAN_F4R1_FB15_Msk (0x1U << CAN_F4R1_FB15_Pos) /*!< 0x00008000 */
  2505. #define CAN_F4R1_FB15 CAN_F4R1_FB15_Msk /*!<Filter bit 15 */
  2506. #define CAN_F4R1_FB16_Pos (16U)
  2507. #define CAN_F4R1_FB16_Msk (0x1U << CAN_F4R1_FB16_Pos) /*!< 0x00010000 */
  2508. #define CAN_F4R1_FB16 CAN_F4R1_FB16_Msk /*!<Filter bit 16 */
  2509. #define CAN_F4R1_FB17_Pos (17U)
  2510. #define CAN_F4R1_FB17_Msk (0x1U << CAN_F4R1_FB17_Pos) /*!< 0x00020000 */
  2511. #define CAN_F4R1_FB17 CAN_F4R1_FB17_Msk /*!<Filter bit 17 */
  2512. #define CAN_F4R1_FB18_Pos (18U)
  2513. #define CAN_F4R1_FB18_Msk (0x1U << CAN_F4R1_FB18_Pos) /*!< 0x00040000 */
  2514. #define CAN_F4R1_FB18 CAN_F4R1_FB18_Msk /*!<Filter bit 18 */
  2515. #define CAN_F4R1_FB19_Pos (19U)
  2516. #define CAN_F4R1_FB19_Msk (0x1U << CAN_F4R1_FB19_Pos) /*!< 0x00080000 */
  2517. #define CAN_F4R1_FB19 CAN_F4R1_FB19_Msk /*!<Filter bit 19 */
  2518. #define CAN_F4R1_FB20_Pos (20U)
  2519. #define CAN_F4R1_FB20_Msk (0x1U << CAN_F4R1_FB20_Pos) /*!< 0x00100000 */
  2520. #define CAN_F4R1_FB20 CAN_F4R1_FB20_Msk /*!<Filter bit 20 */
  2521. #define CAN_F4R1_FB21_Pos (21U)
  2522. #define CAN_F4R1_FB21_Msk (0x1U << CAN_F4R1_FB21_Pos) /*!< 0x00200000 */
  2523. #define CAN_F4R1_FB21 CAN_F4R1_FB21_Msk /*!<Filter bit 21 */
  2524. #define CAN_F4R1_FB22_Pos (22U)
  2525. #define CAN_F4R1_FB22_Msk (0x1U << CAN_F4R1_FB22_Pos) /*!< 0x00400000 */
  2526. #define CAN_F4R1_FB22 CAN_F4R1_FB22_Msk /*!<Filter bit 22 */
  2527. #define CAN_F4R1_FB23_Pos (23U)
  2528. #define CAN_F4R1_FB23_Msk (0x1U << CAN_F4R1_FB23_Pos) /*!< 0x00800000 */
  2529. #define CAN_F4R1_FB23 CAN_F4R1_FB23_Msk /*!<Filter bit 23 */
  2530. #define CAN_F4R1_FB24_Pos (24U)
  2531. #define CAN_F4R1_FB24_Msk (0x1U << CAN_F4R1_FB24_Pos) /*!< 0x01000000 */
  2532. #define CAN_F4R1_FB24 CAN_F4R1_FB24_Msk /*!<Filter bit 24 */
  2533. #define CAN_F4R1_FB25_Pos (25U)
  2534. #define CAN_F4R1_FB25_Msk (0x1U << CAN_F4R1_FB25_Pos) /*!< 0x02000000 */
  2535. #define CAN_F4R1_FB25 CAN_F4R1_FB25_Msk /*!<Filter bit 25 */
  2536. #define CAN_F4R1_FB26_Pos (26U)
  2537. #define CAN_F4R1_FB26_Msk (0x1U << CAN_F4R1_FB26_Pos) /*!< 0x04000000 */
  2538. #define CAN_F4R1_FB26 CAN_F4R1_FB26_Msk /*!<Filter bit 26 */
  2539. #define CAN_F4R1_FB27_Pos (27U)
  2540. #define CAN_F4R1_FB27_Msk (0x1U << CAN_F4R1_FB27_Pos) /*!< 0x08000000 */
  2541. #define CAN_F4R1_FB27 CAN_F4R1_FB27_Msk /*!<Filter bit 27 */
  2542. #define CAN_F4R1_FB28_Pos (28U)
  2543. #define CAN_F4R1_FB28_Msk (0x1U << CAN_F4R1_FB28_Pos) /*!< 0x10000000 */
  2544. #define CAN_F4R1_FB28 CAN_F4R1_FB28_Msk /*!<Filter bit 28 */
  2545. #define CAN_F4R1_FB29_Pos (29U)
  2546. #define CAN_F4R1_FB29_Msk (0x1U << CAN_F4R1_FB29_Pos) /*!< 0x20000000 */
  2547. #define CAN_F4R1_FB29 CAN_F4R1_FB29_Msk /*!<Filter bit 29 */
  2548. #define CAN_F4R1_FB30_Pos (30U)
  2549. #define CAN_F4R1_FB30_Msk (0x1U << CAN_F4R1_FB30_Pos) /*!< 0x40000000 */
  2550. #define CAN_F4R1_FB30 CAN_F4R1_FB30_Msk /*!<Filter bit 30 */
  2551. #define CAN_F4R1_FB31_Pos (31U)
  2552. #define CAN_F4R1_FB31_Msk (0x1U << CAN_F4R1_FB31_Pos) /*!< 0x80000000 */
  2553. #define CAN_F4R1_FB31 CAN_F4R1_FB31_Msk /*!<Filter bit 31 */
  2554. /******************* Bit definition for CAN_F5R1 register *******************/
  2555. #define CAN_F5R1_FB0_Pos (0U)
  2556. #define CAN_F5R1_FB0_Msk (0x1U << CAN_F5R1_FB0_Pos) /*!< 0x00000001 */
  2557. #define CAN_F5R1_FB0 CAN_F5R1_FB0_Msk /*!<Filter bit 0 */
  2558. #define CAN_F5R1_FB1_Pos (1U)
  2559. #define CAN_F5R1_FB1_Msk (0x1U << CAN_F5R1_FB1_Pos) /*!< 0x00000002 */
  2560. #define CAN_F5R1_FB1 CAN_F5R1_FB1_Msk /*!<Filter bit 1 */
  2561. #define CAN_F5R1_FB2_Pos (2U)
  2562. #define CAN_F5R1_FB2_Msk (0x1U << CAN_F5R1_FB2_Pos) /*!< 0x00000004 */
  2563. #define CAN_F5R1_FB2 CAN_F5R1_FB2_Msk /*!<Filter bit 2 */
  2564. #define CAN_F5R1_FB3_Pos (3U)
  2565. #define CAN_F5R1_FB3_Msk (0x1U << CAN_F5R1_FB3_Pos) /*!< 0x00000008 */
  2566. #define CAN_F5R1_FB3 CAN_F5R1_FB3_Msk /*!<Filter bit 3 */
  2567. #define CAN_F5R1_FB4_Pos (4U)
  2568. #define CAN_F5R1_FB4_Msk (0x1U << CAN_F5R1_FB4_Pos) /*!< 0x00000010 */
  2569. #define CAN_F5R1_FB4 CAN_F5R1_FB4_Msk /*!<Filter bit 4 */
  2570. #define CAN_F5R1_FB5_Pos (5U)
  2571. #define CAN_F5R1_FB5_Msk (0x1U << CAN_F5R1_FB5_Pos) /*!< 0x00000020 */
  2572. #define CAN_F5R1_FB5 CAN_F5R1_FB5_Msk /*!<Filter bit 5 */
  2573. #define CAN_F5R1_FB6_Pos (6U)
  2574. #define CAN_F5R1_FB6_Msk (0x1U << CAN_F5R1_FB6_Pos) /*!< 0x00000040 */
  2575. #define CAN_F5R1_FB6 CAN_F5R1_FB6_Msk /*!<Filter bit 6 */
  2576. #define CAN_F5R1_FB7_Pos (7U)
  2577. #define CAN_F5R1_FB7_Msk (0x1U << CAN_F5R1_FB7_Pos) /*!< 0x00000080 */
  2578. #define CAN_F5R1_FB7 CAN_F5R1_FB7_Msk /*!<Filter bit 7 */
  2579. #define CAN_F5R1_FB8_Pos (8U)
  2580. #define CAN_F5R1_FB8_Msk (0x1U << CAN_F5R1_FB8_Pos) /*!< 0x00000100 */
  2581. #define CAN_F5R1_FB8 CAN_F5R1_FB8_Msk /*!<Filter bit 8 */
  2582. #define CAN_F5R1_FB9_Pos (9U)
  2583. #define CAN_F5R1_FB9_Msk (0x1U << CAN_F5R1_FB9_Pos) /*!< 0x00000200 */
  2584. #define CAN_F5R1_FB9 CAN_F5R1_FB9_Msk /*!<Filter bit 9 */
  2585. #define CAN_F5R1_FB10_Pos (10U)
  2586. #define CAN_F5R1_FB10_Msk (0x1U << CAN_F5R1_FB10_Pos) /*!< 0x00000400 */
  2587. #define CAN_F5R1_FB10 CAN_F5R1_FB10_Msk /*!<Filter bit 10 */
  2588. #define CAN_F5R1_FB11_Pos (11U)
  2589. #define CAN_F5R1_FB11_Msk (0x1U << CAN_F5R1_FB11_Pos) /*!< 0x00000800 */
  2590. #define CAN_F5R1_FB11 CAN_F5R1_FB11_Msk /*!<Filter bit 11 */
  2591. #define CAN_F5R1_FB12_Pos (12U)
  2592. #define CAN_F5R1_FB12_Msk (0x1U << CAN_F5R1_FB12_Pos) /*!< 0x00001000 */
  2593. #define CAN_F5R1_FB12 CAN_F5R1_FB12_Msk /*!<Filter bit 12 */
  2594. #define CAN_F5R1_FB13_Pos (13U)
  2595. #define CAN_F5R1_FB13_Msk (0x1U << CAN_F5R1_FB13_Pos) /*!< 0x00002000 */
  2596. #define CAN_F5R1_FB13 CAN_F5R1_FB13_Msk /*!<Filter bit 13 */
  2597. #define CAN_F5R1_FB14_Pos (14U)
  2598. #define CAN_F5R1_FB14_Msk (0x1U << CAN_F5R1_FB14_Pos) /*!< 0x00004000 */
  2599. #define CAN_F5R1_FB14 CAN_F5R1_FB14_Msk /*!<Filter bit 14 */
  2600. #define CAN_F5R1_FB15_Pos (15U)
  2601. #define CAN_F5R1_FB15_Msk (0x1U << CAN_F5R1_FB15_Pos) /*!< 0x00008000 */
  2602. #define CAN_F5R1_FB15 CAN_F5R1_FB15_Msk /*!<Filter bit 15 */
  2603. #define CAN_F5R1_FB16_Pos (16U)
  2604. #define CAN_F5R1_FB16_Msk (0x1U << CAN_F5R1_FB16_Pos) /*!< 0x00010000 */
  2605. #define CAN_F5R1_FB16 CAN_F5R1_FB16_Msk /*!<Filter bit 16 */
  2606. #define CAN_F5R1_FB17_Pos (17U)
  2607. #define CAN_F5R1_FB17_Msk (0x1U << CAN_F5R1_FB17_Pos) /*!< 0x00020000 */
  2608. #define CAN_F5R1_FB17 CAN_F5R1_FB17_Msk /*!<Filter bit 17 */
  2609. #define CAN_F5R1_FB18_Pos (18U)
  2610. #define CAN_F5R1_FB18_Msk (0x1U << CAN_F5R1_FB18_Pos) /*!< 0x00040000 */
  2611. #define CAN_F5R1_FB18 CAN_F5R1_FB18_Msk /*!<Filter bit 18 */
  2612. #define CAN_F5R1_FB19_Pos (19U)
  2613. #define CAN_F5R1_FB19_Msk (0x1U << CAN_F5R1_FB19_Pos) /*!< 0x00080000 */
  2614. #define CAN_F5R1_FB19 CAN_F5R1_FB19_Msk /*!<Filter bit 19 */
  2615. #define CAN_F5R1_FB20_Pos (20U)
  2616. #define CAN_F5R1_FB20_Msk (0x1U << CAN_F5R1_FB20_Pos) /*!< 0x00100000 */
  2617. #define CAN_F5R1_FB20 CAN_F5R1_FB20_Msk /*!<Filter bit 20 */
  2618. #define CAN_F5R1_FB21_Pos (21U)
  2619. #define CAN_F5R1_FB21_Msk (0x1U << CAN_F5R1_FB21_Pos) /*!< 0x00200000 */
  2620. #define CAN_F5R1_FB21 CAN_F5R1_FB21_Msk /*!<Filter bit 21 */
  2621. #define CAN_F5R1_FB22_Pos (22U)
  2622. #define CAN_F5R1_FB22_Msk (0x1U << CAN_F5R1_FB22_Pos) /*!< 0x00400000 */
  2623. #define CAN_F5R1_FB22 CAN_F5R1_FB22_Msk /*!<Filter bit 22 */
  2624. #define CAN_F5R1_FB23_Pos (23U)
  2625. #define CAN_F5R1_FB23_Msk (0x1U << CAN_F5R1_FB23_Pos) /*!< 0x00800000 */
  2626. #define CAN_F5R1_FB23 CAN_F5R1_FB23_Msk /*!<Filter bit 23 */
  2627. #define CAN_F5R1_FB24_Pos (24U)
  2628. #define CAN_F5R1_FB24_Msk (0x1U << CAN_F5R1_FB24_Pos) /*!< 0x01000000 */
  2629. #define CAN_F5R1_FB24 CAN_F5R1_FB24_Msk /*!<Filter bit 24 */
  2630. #define CAN_F5R1_FB25_Pos (25U)
  2631. #define CAN_F5R1_FB25_Msk (0x1U << CAN_F5R1_FB25_Pos) /*!< 0x02000000 */
  2632. #define CAN_F5R1_FB25 CAN_F5R1_FB25_Msk /*!<Filter bit 25 */
  2633. #define CAN_F5R1_FB26_Pos (26U)
  2634. #define CAN_F5R1_FB26_Msk (0x1U << CAN_F5R1_FB26_Pos) /*!< 0x04000000 */
  2635. #define CAN_F5R1_FB26 CAN_F5R1_FB26_Msk /*!<Filter bit 26 */
  2636. #define CAN_F5R1_FB27_Pos (27U)
  2637. #define CAN_F5R1_FB27_Msk (0x1U << CAN_F5R1_FB27_Pos) /*!< 0x08000000 */
  2638. #define CAN_F5R1_FB27 CAN_F5R1_FB27_Msk /*!<Filter bit 27 */
  2639. #define CAN_F5R1_FB28_Pos (28U)
  2640. #define CAN_F5R1_FB28_Msk (0x1U << CAN_F5R1_FB28_Pos) /*!< 0x10000000 */
  2641. #define CAN_F5R1_FB28 CAN_F5R1_FB28_Msk /*!<Filter bit 28 */
  2642. #define CAN_F5R1_FB29_Pos (29U)
  2643. #define CAN_F5R1_FB29_Msk (0x1U << CAN_F5R1_FB29_Pos) /*!< 0x20000000 */
  2644. #define CAN_F5R1_FB29 CAN_F5R1_FB29_Msk /*!<Filter bit 29 */
  2645. #define CAN_F5R1_FB30_Pos (30U)
  2646. #define CAN_F5R1_FB30_Msk (0x1U << CAN_F5R1_FB30_Pos) /*!< 0x40000000 */
  2647. #define CAN_F5R1_FB30 CAN_F5R1_FB30_Msk /*!<Filter bit 30 */
  2648. #define CAN_F5R1_FB31_Pos (31U)
  2649. #define CAN_F5R1_FB31_Msk (0x1U << CAN_F5R1_FB31_Pos) /*!< 0x80000000 */
  2650. #define CAN_F5R1_FB31 CAN_F5R1_FB31_Msk /*!<Filter bit 31 */
  2651. /******************* Bit definition for CAN_F6R1 register *******************/
  2652. #define CAN_F6R1_FB0_Pos (0U)
  2653. #define CAN_F6R1_FB0_Msk (0x1U << CAN_F6R1_FB0_Pos) /*!< 0x00000001 */
  2654. #define CAN_F6R1_FB0 CAN_F6R1_FB0_Msk /*!<Filter bit 0 */
  2655. #define CAN_F6R1_FB1_Pos (1U)
  2656. #define CAN_F6R1_FB1_Msk (0x1U << CAN_F6R1_FB1_Pos) /*!< 0x00000002 */
  2657. #define CAN_F6R1_FB1 CAN_F6R1_FB1_Msk /*!<Filter bit 1 */
  2658. #define CAN_F6R1_FB2_Pos (2U)
  2659. #define CAN_F6R1_FB2_Msk (0x1U << CAN_F6R1_FB2_Pos) /*!< 0x00000004 */
  2660. #define CAN_F6R1_FB2 CAN_F6R1_FB2_Msk /*!<Filter bit 2 */
  2661. #define CAN_F6R1_FB3_Pos (3U)
  2662. #define CAN_F6R1_FB3_Msk (0x1U << CAN_F6R1_FB3_Pos) /*!< 0x00000008 */
  2663. #define CAN_F6R1_FB3 CAN_F6R1_FB3_Msk /*!<Filter bit 3 */
  2664. #define CAN_F6R1_FB4_Pos (4U)
  2665. #define CAN_F6R1_FB4_Msk (0x1U << CAN_F6R1_FB4_Pos) /*!< 0x00000010 */
  2666. #define CAN_F6R1_FB4 CAN_F6R1_FB4_Msk /*!<Filter bit 4 */
  2667. #define CAN_F6R1_FB5_Pos (5U)
  2668. #define CAN_F6R1_FB5_Msk (0x1U << CAN_F6R1_FB5_Pos) /*!< 0x00000020 */
  2669. #define CAN_F6R1_FB5 CAN_F6R1_FB5_Msk /*!<Filter bit 5 */
  2670. #define CAN_F6R1_FB6_Pos (6U)
  2671. #define CAN_F6R1_FB6_Msk (0x1U << CAN_F6R1_FB6_Pos) /*!< 0x00000040 */
  2672. #define CAN_F6R1_FB6 CAN_F6R1_FB6_Msk /*!<Filter bit 6 */
  2673. #define CAN_F6R1_FB7_Pos (7U)
  2674. #define CAN_F6R1_FB7_Msk (0x1U << CAN_F6R1_FB7_Pos) /*!< 0x00000080 */
  2675. #define CAN_F6R1_FB7 CAN_F6R1_FB7_Msk /*!<Filter bit 7 */
  2676. #define CAN_F6R1_FB8_Pos (8U)
  2677. #define CAN_F6R1_FB8_Msk (0x1U << CAN_F6R1_FB8_Pos) /*!< 0x00000100 */
  2678. #define CAN_F6R1_FB8 CAN_F6R1_FB8_Msk /*!<Filter bit 8 */
  2679. #define CAN_F6R1_FB9_Pos (9U)
  2680. #define CAN_F6R1_FB9_Msk (0x1U << CAN_F6R1_FB9_Pos) /*!< 0x00000200 */
  2681. #define CAN_F6R1_FB9 CAN_F6R1_FB9_Msk /*!<Filter bit 9 */
  2682. #define CAN_F6R1_FB10_Pos (10U)
  2683. #define CAN_F6R1_FB10_Msk (0x1U << CAN_F6R1_FB10_Pos) /*!< 0x00000400 */
  2684. #define CAN_F6R1_FB10 CAN_F6R1_FB10_Msk /*!<Filter bit 10 */
  2685. #define CAN_F6R1_FB11_Pos (11U)
  2686. #define CAN_F6R1_FB11_Msk (0x1U << CAN_F6R1_FB11_Pos) /*!< 0x00000800 */
  2687. #define CAN_F6R1_FB11 CAN_F6R1_FB11_Msk /*!<Filter bit 11 */
  2688. #define CAN_F6R1_FB12_Pos (12U)
  2689. #define CAN_F6R1_FB12_Msk (0x1U << CAN_F6R1_FB12_Pos) /*!< 0x00001000 */
  2690. #define CAN_F6R1_FB12 CAN_F6R1_FB12_Msk /*!<Filter bit 12 */
  2691. #define CAN_F6R1_FB13_Pos (13U)
  2692. #define CAN_F6R1_FB13_Msk (0x1U << CAN_F6R1_FB13_Pos) /*!< 0x00002000 */
  2693. #define CAN_F6R1_FB13 CAN_F6R1_FB13_Msk /*!<Filter bit 13 */
  2694. #define CAN_F6R1_FB14_Pos (14U)
  2695. #define CAN_F6R1_FB14_Msk (0x1U << CAN_F6R1_FB14_Pos) /*!< 0x00004000 */
  2696. #define CAN_F6R1_FB14 CAN_F6R1_FB14_Msk /*!<Filter bit 14 */
  2697. #define CAN_F6R1_FB15_Pos (15U)
  2698. #define CAN_F6R1_FB15_Msk (0x1U << CAN_F6R1_FB15_Pos) /*!< 0x00008000 */
  2699. #define CAN_F6R1_FB15 CAN_F6R1_FB15_Msk /*!<Filter bit 15 */
  2700. #define CAN_F6R1_FB16_Pos (16U)
  2701. #define CAN_F6R1_FB16_Msk (0x1U << CAN_F6R1_FB16_Pos) /*!< 0x00010000 */
  2702. #define CAN_F6R1_FB16 CAN_F6R1_FB16_Msk /*!<Filter bit 16 */
  2703. #define CAN_F6R1_FB17_Pos (17U)
  2704. #define CAN_F6R1_FB17_Msk (0x1U << CAN_F6R1_FB17_Pos) /*!< 0x00020000 */
  2705. #define CAN_F6R1_FB17 CAN_F6R1_FB17_Msk /*!<Filter bit 17 */
  2706. #define CAN_F6R1_FB18_Pos (18U)
  2707. #define CAN_F6R1_FB18_Msk (0x1U << CAN_F6R1_FB18_Pos) /*!< 0x00040000 */
  2708. #define CAN_F6R1_FB18 CAN_F6R1_FB18_Msk /*!<Filter bit 18 */
  2709. #define CAN_F6R1_FB19_Pos (19U)
  2710. #define CAN_F6R1_FB19_Msk (0x1U << CAN_F6R1_FB19_Pos) /*!< 0x00080000 */
  2711. #define CAN_F6R1_FB19 CAN_F6R1_FB19_Msk /*!<Filter bit 19 */
  2712. #define CAN_F6R1_FB20_Pos (20U)
  2713. #define CAN_F6R1_FB20_Msk (0x1U << CAN_F6R1_FB20_Pos) /*!< 0x00100000 */
  2714. #define CAN_F6R1_FB20 CAN_F6R1_FB20_Msk /*!<Filter bit 20 */
  2715. #define CAN_F6R1_FB21_Pos (21U)
  2716. #define CAN_F6R1_FB21_Msk (0x1U << CAN_F6R1_FB21_Pos) /*!< 0x00200000 */
  2717. #define CAN_F6R1_FB21 CAN_F6R1_FB21_Msk /*!<Filter bit 21 */
  2718. #define CAN_F6R1_FB22_Pos (22U)
  2719. #define CAN_F6R1_FB22_Msk (0x1U << CAN_F6R1_FB22_Pos) /*!< 0x00400000 */
  2720. #define CAN_F6R1_FB22 CAN_F6R1_FB22_Msk /*!<Filter bit 22 */
  2721. #define CAN_F6R1_FB23_Pos (23U)
  2722. #define CAN_F6R1_FB23_Msk (0x1U << CAN_F6R1_FB23_Pos) /*!< 0x00800000 */
  2723. #define CAN_F6R1_FB23 CAN_F6R1_FB23_Msk /*!<Filter bit 23 */
  2724. #define CAN_F6R1_FB24_Pos (24U)
  2725. #define CAN_F6R1_FB24_Msk (0x1U << CAN_F6R1_FB24_Pos) /*!< 0x01000000 */
  2726. #define CAN_F6R1_FB24 CAN_F6R1_FB24_Msk /*!<Filter bit 24 */
  2727. #define CAN_F6R1_FB25_Pos (25U)
  2728. #define CAN_F6R1_FB25_Msk (0x1U << CAN_F6R1_FB25_Pos) /*!< 0x02000000 */
  2729. #define CAN_F6R1_FB25 CAN_F6R1_FB25_Msk /*!<Filter bit 25 */
  2730. #define CAN_F6R1_FB26_Pos (26U)
  2731. #define CAN_F6R1_FB26_Msk (0x1U << CAN_F6R1_FB26_Pos) /*!< 0x04000000 */
  2732. #define CAN_F6R1_FB26 CAN_F6R1_FB26_Msk /*!<Filter bit 26 */
  2733. #define CAN_F6R1_FB27_Pos (27U)
  2734. #define CAN_F6R1_FB27_Msk (0x1U << CAN_F6R1_FB27_Pos) /*!< 0x08000000 */
  2735. #define CAN_F6R1_FB27 CAN_F6R1_FB27_Msk /*!<Filter bit 27 */
  2736. #define CAN_F6R1_FB28_Pos (28U)
  2737. #define CAN_F6R1_FB28_Msk (0x1U << CAN_F6R1_FB28_Pos) /*!< 0x10000000 */
  2738. #define CAN_F6R1_FB28 CAN_F6R1_FB28_Msk /*!<Filter bit 28 */
  2739. #define CAN_F6R1_FB29_Pos (29U)
  2740. #define CAN_F6R1_FB29_Msk (0x1U << CAN_F6R1_FB29_Pos) /*!< 0x20000000 */
  2741. #define CAN_F6R1_FB29 CAN_F6R1_FB29_Msk /*!<Filter bit 29 */
  2742. #define CAN_F6R1_FB30_Pos (30U)
  2743. #define CAN_F6R1_FB30_Msk (0x1U << CAN_F6R1_FB30_Pos) /*!< 0x40000000 */
  2744. #define CAN_F6R1_FB30 CAN_F6R1_FB30_Msk /*!<Filter bit 30 */
  2745. #define CAN_F6R1_FB31_Pos (31U)
  2746. #define CAN_F6R1_FB31_Msk (0x1U << CAN_F6R1_FB31_Pos) /*!< 0x80000000 */
  2747. #define CAN_F6R1_FB31 CAN_F6R1_FB31_Msk /*!<Filter bit 31 */
  2748. /******************* Bit definition for CAN_F7R1 register *******************/
  2749. #define CAN_F7R1_FB0_Pos (0U)
  2750. #define CAN_F7R1_FB0_Msk (0x1U << CAN_F7R1_FB0_Pos) /*!< 0x00000001 */
  2751. #define CAN_F7R1_FB0 CAN_F7R1_FB0_Msk /*!<Filter bit 0 */
  2752. #define CAN_F7R1_FB1_Pos (1U)
  2753. #define CAN_F7R1_FB1_Msk (0x1U << CAN_F7R1_FB1_Pos) /*!< 0x00000002 */
  2754. #define CAN_F7R1_FB1 CAN_F7R1_FB1_Msk /*!<Filter bit 1 */
  2755. #define CAN_F7R1_FB2_Pos (2U)
  2756. #define CAN_F7R1_FB2_Msk (0x1U << CAN_F7R1_FB2_Pos) /*!< 0x00000004 */
  2757. #define CAN_F7R1_FB2 CAN_F7R1_FB2_Msk /*!<Filter bit 2 */
  2758. #define CAN_F7R1_FB3_Pos (3U)
  2759. #define CAN_F7R1_FB3_Msk (0x1U << CAN_F7R1_FB3_Pos) /*!< 0x00000008 */
  2760. #define CAN_F7R1_FB3 CAN_F7R1_FB3_Msk /*!<Filter bit 3 */
  2761. #define CAN_F7R1_FB4_Pos (4U)
  2762. #define CAN_F7R1_FB4_Msk (0x1U << CAN_F7R1_FB4_Pos) /*!< 0x00000010 */
  2763. #define CAN_F7R1_FB4 CAN_F7R1_FB4_Msk /*!<Filter bit 4 */
  2764. #define CAN_F7R1_FB5_Pos (5U)
  2765. #define CAN_F7R1_FB5_Msk (0x1U << CAN_F7R1_FB5_Pos) /*!< 0x00000020 */
  2766. #define CAN_F7R1_FB5 CAN_F7R1_FB5_Msk /*!<Filter bit 5 */
  2767. #define CAN_F7R1_FB6_Pos (6U)
  2768. #define CAN_F7R1_FB6_Msk (0x1U << CAN_F7R1_FB6_Pos) /*!< 0x00000040 */
  2769. #define CAN_F7R1_FB6 CAN_F7R1_FB6_Msk /*!<Filter bit 6 */
  2770. #define CAN_F7R1_FB7_Pos (7U)
  2771. #define CAN_F7R1_FB7_Msk (0x1U << CAN_F7R1_FB7_Pos) /*!< 0x00000080 */
  2772. #define CAN_F7R1_FB7 CAN_F7R1_FB7_Msk /*!<Filter bit 7 */
  2773. #define CAN_F7R1_FB8_Pos (8U)
  2774. #define CAN_F7R1_FB8_Msk (0x1U << CAN_F7R1_FB8_Pos) /*!< 0x00000100 */
  2775. #define CAN_F7R1_FB8 CAN_F7R1_FB8_Msk /*!<Filter bit 8 */
  2776. #define CAN_F7R1_FB9_Pos (9U)
  2777. #define CAN_F7R1_FB9_Msk (0x1U << CAN_F7R1_FB9_Pos) /*!< 0x00000200 */
  2778. #define CAN_F7R1_FB9 CAN_F7R1_FB9_Msk /*!<Filter bit 9 */
  2779. #define CAN_F7R1_FB10_Pos (10U)
  2780. #define CAN_F7R1_FB10_Msk (0x1U << CAN_F7R1_FB10_Pos) /*!< 0x00000400 */
  2781. #define CAN_F7R1_FB10 CAN_F7R1_FB10_Msk /*!<Filter bit 10 */
  2782. #define CAN_F7R1_FB11_Pos (11U)
  2783. #define CAN_F7R1_FB11_Msk (0x1U << CAN_F7R1_FB11_Pos) /*!< 0x00000800 */
  2784. #define CAN_F7R1_FB11 CAN_F7R1_FB11_Msk /*!<Filter bit 11 */
  2785. #define CAN_F7R1_FB12_Pos (12U)
  2786. #define CAN_F7R1_FB12_Msk (0x1U << CAN_F7R1_FB12_Pos) /*!< 0x00001000 */
  2787. #define CAN_F7R1_FB12 CAN_F7R1_FB12_Msk /*!<Filter bit 12 */
  2788. #define CAN_F7R1_FB13_Pos (13U)
  2789. #define CAN_F7R1_FB13_Msk (0x1U << CAN_F7R1_FB13_Pos) /*!< 0x00002000 */
  2790. #define CAN_F7R1_FB13 CAN_F7R1_FB13_Msk /*!<Filter bit 13 */
  2791. #define CAN_F7R1_FB14_Pos (14U)
  2792. #define CAN_F7R1_FB14_Msk (0x1U << CAN_F7R1_FB14_Pos) /*!< 0x00004000 */
  2793. #define CAN_F7R1_FB14 CAN_F7R1_FB14_Msk /*!<Filter bit 14 */
  2794. #define CAN_F7R1_FB15_Pos (15U)
  2795. #define CAN_F7R1_FB15_Msk (0x1U << CAN_F7R1_FB15_Pos) /*!< 0x00008000 */
  2796. #define CAN_F7R1_FB15 CAN_F7R1_FB15_Msk /*!<Filter bit 15 */
  2797. #define CAN_F7R1_FB16_Pos (16U)
  2798. #define CAN_F7R1_FB16_Msk (0x1U << CAN_F7R1_FB16_Pos) /*!< 0x00010000 */
  2799. #define CAN_F7R1_FB16 CAN_F7R1_FB16_Msk /*!<Filter bit 16 */
  2800. #define CAN_F7R1_FB17_Pos (17U)
  2801. #define CAN_F7R1_FB17_Msk (0x1U << CAN_F7R1_FB17_Pos) /*!< 0x00020000 */
  2802. #define CAN_F7R1_FB17 CAN_F7R1_FB17_Msk /*!<Filter bit 17 */
  2803. #define CAN_F7R1_FB18_Pos (18U)
  2804. #define CAN_F7R1_FB18_Msk (0x1U << CAN_F7R1_FB18_Pos) /*!< 0x00040000 */
  2805. #define CAN_F7R1_FB18 CAN_F7R1_FB18_Msk /*!<Filter bit 18 */
  2806. #define CAN_F7R1_FB19_Pos (19U)
  2807. #define CAN_F7R1_FB19_Msk (0x1U << CAN_F7R1_FB19_Pos) /*!< 0x00080000 */
  2808. #define CAN_F7R1_FB19 CAN_F7R1_FB19_Msk /*!<Filter bit 19 */
  2809. #define CAN_F7R1_FB20_Pos (20U)
  2810. #define CAN_F7R1_FB20_Msk (0x1U << CAN_F7R1_FB20_Pos) /*!< 0x00100000 */
  2811. #define CAN_F7R1_FB20 CAN_F7R1_FB20_Msk /*!<Filter bit 20 */
  2812. #define CAN_F7R1_FB21_Pos (21U)
  2813. #define CAN_F7R1_FB21_Msk (0x1U << CAN_F7R1_FB21_Pos) /*!< 0x00200000 */
  2814. #define CAN_F7R1_FB21 CAN_F7R1_FB21_Msk /*!<Filter bit 21 */
  2815. #define CAN_F7R1_FB22_Pos (22U)
  2816. #define CAN_F7R1_FB22_Msk (0x1U << CAN_F7R1_FB22_Pos) /*!< 0x00400000 */
  2817. #define CAN_F7R1_FB22 CAN_F7R1_FB22_Msk /*!<Filter bit 22 */
  2818. #define CAN_F7R1_FB23_Pos (23U)
  2819. #define CAN_F7R1_FB23_Msk (0x1U << CAN_F7R1_FB23_Pos) /*!< 0x00800000 */
  2820. #define CAN_F7R1_FB23 CAN_F7R1_FB23_Msk /*!<Filter bit 23 */
  2821. #define CAN_F7R1_FB24_Pos (24U)
  2822. #define CAN_F7R1_FB24_Msk (0x1U << CAN_F7R1_FB24_Pos) /*!< 0x01000000 */
  2823. #define CAN_F7R1_FB24 CAN_F7R1_FB24_Msk /*!<Filter bit 24 */
  2824. #define CAN_F7R1_FB25_Pos (25U)
  2825. #define CAN_F7R1_FB25_Msk (0x1U << CAN_F7R1_FB25_Pos) /*!< 0x02000000 */
  2826. #define CAN_F7R1_FB25 CAN_F7R1_FB25_Msk /*!<Filter bit 25 */
  2827. #define CAN_F7R1_FB26_Pos (26U)
  2828. #define CAN_F7R1_FB26_Msk (0x1U << CAN_F7R1_FB26_Pos) /*!< 0x04000000 */
  2829. #define CAN_F7R1_FB26 CAN_F7R1_FB26_Msk /*!<Filter bit 26 */
  2830. #define CAN_F7R1_FB27_Pos (27U)
  2831. #define CAN_F7R1_FB27_Msk (0x1U << CAN_F7R1_FB27_Pos) /*!< 0x08000000 */
  2832. #define CAN_F7R1_FB27 CAN_F7R1_FB27_Msk /*!<Filter bit 27 */
  2833. #define CAN_F7R1_FB28_Pos (28U)
  2834. #define CAN_F7R1_FB28_Msk (0x1U << CAN_F7R1_FB28_Pos) /*!< 0x10000000 */
  2835. #define CAN_F7R1_FB28 CAN_F7R1_FB28_Msk /*!<Filter bit 28 */
  2836. #define CAN_F7R1_FB29_Pos (29U)
  2837. #define CAN_F7R1_FB29_Msk (0x1U << CAN_F7R1_FB29_Pos) /*!< 0x20000000 */
  2838. #define CAN_F7R1_FB29 CAN_F7R1_FB29_Msk /*!<Filter bit 29 */
  2839. #define CAN_F7R1_FB30_Pos (30U)
  2840. #define CAN_F7R1_FB30_Msk (0x1U << CAN_F7R1_FB30_Pos) /*!< 0x40000000 */
  2841. #define CAN_F7R1_FB30 CAN_F7R1_FB30_Msk /*!<Filter bit 30 */
  2842. #define CAN_F7R1_FB31_Pos (31U)
  2843. #define CAN_F7R1_FB31_Msk (0x1U << CAN_F7R1_FB31_Pos) /*!< 0x80000000 */
  2844. #define CAN_F7R1_FB31 CAN_F7R1_FB31_Msk /*!<Filter bit 31 */
  2845. /******************* Bit definition for CAN_F8R1 register *******************/
  2846. #define CAN_F8R1_FB0_Pos (0U)
  2847. #define CAN_F8R1_FB0_Msk (0x1U << CAN_F8R1_FB0_Pos) /*!< 0x00000001 */
  2848. #define CAN_F8R1_FB0 CAN_F8R1_FB0_Msk /*!<Filter bit 0 */
  2849. #define CAN_F8R1_FB1_Pos (1U)
  2850. #define CAN_F8R1_FB1_Msk (0x1U << CAN_F8R1_FB1_Pos) /*!< 0x00000002 */
  2851. #define CAN_F8R1_FB1 CAN_F8R1_FB1_Msk /*!<Filter bit 1 */
  2852. #define CAN_F8R1_FB2_Pos (2U)
  2853. #define CAN_F8R1_FB2_Msk (0x1U << CAN_F8R1_FB2_Pos) /*!< 0x00000004 */
  2854. #define CAN_F8R1_FB2 CAN_F8R1_FB2_Msk /*!<Filter bit 2 */
  2855. #define CAN_F8R1_FB3_Pos (3U)
  2856. #define CAN_F8R1_FB3_Msk (0x1U << CAN_F8R1_FB3_Pos) /*!< 0x00000008 */
  2857. #define CAN_F8R1_FB3 CAN_F8R1_FB3_Msk /*!<Filter bit 3 */
  2858. #define CAN_F8R1_FB4_Pos (4U)
  2859. #define CAN_F8R1_FB4_Msk (0x1U << CAN_F8R1_FB4_Pos) /*!< 0x00000010 */
  2860. #define CAN_F8R1_FB4 CAN_F8R1_FB4_Msk /*!<Filter bit 4 */
  2861. #define CAN_F8R1_FB5_Pos (5U)
  2862. #define CAN_F8R1_FB5_Msk (0x1U << CAN_F8R1_FB5_Pos) /*!< 0x00000020 */
  2863. #define CAN_F8R1_FB5 CAN_F8R1_FB5_Msk /*!<Filter bit 5 */
  2864. #define CAN_F8R1_FB6_Pos (6U)
  2865. #define CAN_F8R1_FB6_Msk (0x1U << CAN_F8R1_FB6_Pos) /*!< 0x00000040 */
  2866. #define CAN_F8R1_FB6 CAN_F8R1_FB6_Msk /*!<Filter bit 6 */
  2867. #define CAN_F8R1_FB7_Pos (7U)
  2868. #define CAN_F8R1_FB7_Msk (0x1U << CAN_F8R1_FB7_Pos) /*!< 0x00000080 */
  2869. #define CAN_F8R1_FB7 CAN_F8R1_FB7_Msk /*!<Filter bit 7 */
  2870. #define CAN_F8R1_FB8_Pos (8U)
  2871. #define CAN_F8R1_FB8_Msk (0x1U << CAN_F8R1_FB8_Pos) /*!< 0x00000100 */
  2872. #define CAN_F8R1_FB8 CAN_F8R1_FB8_Msk /*!<Filter bit 8 */
  2873. #define CAN_F8R1_FB9_Pos (9U)
  2874. #define CAN_F8R1_FB9_Msk (0x1U << CAN_F8R1_FB9_Pos) /*!< 0x00000200 */
  2875. #define CAN_F8R1_FB9 CAN_F8R1_FB9_Msk /*!<Filter bit 9 */
  2876. #define CAN_F8R1_FB10_Pos (10U)
  2877. #define CAN_F8R1_FB10_Msk (0x1U << CAN_F8R1_FB10_Pos) /*!< 0x00000400 */
  2878. #define CAN_F8R1_FB10 CAN_F8R1_FB10_Msk /*!<Filter bit 10 */
  2879. #define CAN_F8R1_FB11_Pos (11U)
  2880. #define CAN_F8R1_FB11_Msk (0x1U << CAN_F8R1_FB11_Pos) /*!< 0x00000800 */
  2881. #define CAN_F8R1_FB11 CAN_F8R1_FB11_Msk /*!<Filter bit 11 */
  2882. #define CAN_F8R1_FB12_Pos (12U)
  2883. #define CAN_F8R1_FB12_Msk (0x1U << CAN_F8R1_FB12_Pos) /*!< 0x00001000 */
  2884. #define CAN_F8R1_FB12 CAN_F8R1_FB12_Msk /*!<Filter bit 12 */
  2885. #define CAN_F8R1_FB13_Pos (13U)
  2886. #define CAN_F8R1_FB13_Msk (0x1U << CAN_F8R1_FB13_Pos) /*!< 0x00002000 */
  2887. #define CAN_F8R1_FB13 CAN_F8R1_FB13_Msk /*!<Filter bit 13 */
  2888. #define CAN_F8R1_FB14_Pos (14U)
  2889. #define CAN_F8R1_FB14_Msk (0x1U << CAN_F8R1_FB14_Pos) /*!< 0x00004000 */
  2890. #define CAN_F8R1_FB14 CAN_F8R1_FB14_Msk /*!<Filter bit 14 */
  2891. #define CAN_F8R1_FB15_Pos (15U)
  2892. #define CAN_F8R1_FB15_Msk (0x1U << CAN_F8R1_FB15_Pos) /*!< 0x00008000 */
  2893. #define CAN_F8R1_FB15 CAN_F8R1_FB15_Msk /*!<Filter bit 15 */
  2894. #define CAN_F8R1_FB16_Pos (16U)
  2895. #define CAN_F8R1_FB16_Msk (0x1U << CAN_F8R1_FB16_Pos) /*!< 0x00010000 */
  2896. #define CAN_F8R1_FB16 CAN_F8R1_FB16_Msk /*!<Filter bit 16 */
  2897. #define CAN_F8R1_FB17_Pos (17U)
  2898. #define CAN_F8R1_FB17_Msk (0x1U << CAN_F8R1_FB17_Pos) /*!< 0x00020000 */
  2899. #define CAN_F8R1_FB17 CAN_F8R1_FB17_Msk /*!<Filter bit 17 */
  2900. #define CAN_F8R1_FB18_Pos (18U)
  2901. #define CAN_F8R1_FB18_Msk (0x1U << CAN_F8R1_FB18_Pos) /*!< 0x00040000 */
  2902. #define CAN_F8R1_FB18 CAN_F8R1_FB18_Msk /*!<Filter bit 18 */
  2903. #define CAN_F8R1_FB19_Pos (19U)
  2904. #define CAN_F8R1_FB19_Msk (0x1U << CAN_F8R1_FB19_Pos) /*!< 0x00080000 */
  2905. #define CAN_F8R1_FB19 CAN_F8R1_FB19_Msk /*!<Filter bit 19 */
  2906. #define CAN_F8R1_FB20_Pos (20U)
  2907. #define CAN_F8R1_FB20_Msk (0x1U << CAN_F8R1_FB20_Pos) /*!< 0x00100000 */
  2908. #define CAN_F8R1_FB20 CAN_F8R1_FB20_Msk /*!<Filter bit 20 */
  2909. #define CAN_F8R1_FB21_Pos (21U)
  2910. #define CAN_F8R1_FB21_Msk (0x1U << CAN_F8R1_FB21_Pos) /*!< 0x00200000 */
  2911. #define CAN_F8R1_FB21 CAN_F8R1_FB21_Msk /*!<Filter bit 21 */
  2912. #define CAN_F8R1_FB22_Pos (22U)
  2913. #define CAN_F8R1_FB22_Msk (0x1U << CAN_F8R1_FB22_Pos) /*!< 0x00400000 */
  2914. #define CAN_F8R1_FB22 CAN_F8R1_FB22_Msk /*!<Filter bit 22 */
  2915. #define CAN_F8R1_FB23_Pos (23U)
  2916. #define CAN_F8R1_FB23_Msk (0x1U << CAN_F8R1_FB23_Pos) /*!< 0x00800000 */
  2917. #define CAN_F8R1_FB23 CAN_F8R1_FB23_Msk /*!<Filter bit 23 */
  2918. #define CAN_F8R1_FB24_Pos (24U)
  2919. #define CAN_F8R1_FB24_Msk (0x1U << CAN_F8R1_FB24_Pos) /*!< 0x01000000 */
  2920. #define CAN_F8R1_FB24 CAN_F8R1_FB24_Msk /*!<Filter bit 24 */
  2921. #define CAN_F8R1_FB25_Pos (25U)
  2922. #define CAN_F8R1_FB25_Msk (0x1U << CAN_F8R1_FB25_Pos) /*!< 0x02000000 */
  2923. #define CAN_F8R1_FB25 CAN_F8R1_FB25_Msk /*!<Filter bit 25 */
  2924. #define CAN_F8R1_FB26_Pos (26U)
  2925. #define CAN_F8R1_FB26_Msk (0x1U << CAN_F8R1_FB26_Pos) /*!< 0x04000000 */
  2926. #define CAN_F8R1_FB26 CAN_F8R1_FB26_Msk /*!<Filter bit 26 */
  2927. #define CAN_F8R1_FB27_Pos (27U)
  2928. #define CAN_F8R1_FB27_Msk (0x1U << CAN_F8R1_FB27_Pos) /*!< 0x08000000 */
  2929. #define CAN_F8R1_FB27 CAN_F8R1_FB27_Msk /*!<Filter bit 27 */
  2930. #define CAN_F8R1_FB28_Pos (28U)
  2931. #define CAN_F8R1_FB28_Msk (0x1U << CAN_F8R1_FB28_Pos) /*!< 0x10000000 */
  2932. #define CAN_F8R1_FB28 CAN_F8R1_FB28_Msk /*!<Filter bit 28 */
  2933. #define CAN_F8R1_FB29_Pos (29U)
  2934. #define CAN_F8R1_FB29_Msk (0x1U << CAN_F8R1_FB29_Pos) /*!< 0x20000000 */
  2935. #define CAN_F8R1_FB29 CAN_F8R1_FB29_Msk /*!<Filter bit 29 */
  2936. #define CAN_F8R1_FB30_Pos (30U)
  2937. #define CAN_F8R1_FB30_Msk (0x1U << CAN_F8R1_FB30_Pos) /*!< 0x40000000 */
  2938. #define CAN_F8R1_FB30 CAN_F8R1_FB30_Msk /*!<Filter bit 30 */
  2939. #define CAN_F8R1_FB31_Pos (31U)
  2940. #define CAN_F8R1_FB31_Msk (0x1U << CAN_F8R1_FB31_Pos) /*!< 0x80000000 */
  2941. #define CAN_F8R1_FB31 CAN_F8R1_FB31_Msk /*!<Filter bit 31 */
  2942. /******************* Bit definition for CAN_F9R1 register *******************/
  2943. #define CAN_F9R1_FB0_Pos (0U)
  2944. #define CAN_F9R1_FB0_Msk (0x1U << CAN_F9R1_FB0_Pos) /*!< 0x00000001 */
  2945. #define CAN_F9R1_FB0 CAN_F9R1_FB0_Msk /*!<Filter bit 0 */
  2946. #define CAN_F9R1_FB1_Pos (1U)
  2947. #define CAN_F9R1_FB1_Msk (0x1U << CAN_F9R1_FB1_Pos) /*!< 0x00000002 */
  2948. #define CAN_F9R1_FB1 CAN_F9R1_FB1_Msk /*!<Filter bit 1 */
  2949. #define CAN_F9R1_FB2_Pos (2U)
  2950. #define CAN_F9R1_FB2_Msk (0x1U << CAN_F9R1_FB2_Pos) /*!< 0x00000004 */
  2951. #define CAN_F9R1_FB2 CAN_F9R1_FB2_Msk /*!<Filter bit 2 */
  2952. #define CAN_F9R1_FB3_Pos (3U)
  2953. #define CAN_F9R1_FB3_Msk (0x1U << CAN_F9R1_FB3_Pos) /*!< 0x00000008 */
  2954. #define CAN_F9R1_FB3 CAN_F9R1_FB3_Msk /*!<Filter bit 3 */
  2955. #define CAN_F9R1_FB4_Pos (4U)
  2956. #define CAN_F9R1_FB4_Msk (0x1U << CAN_F9R1_FB4_Pos) /*!< 0x00000010 */
  2957. #define CAN_F9R1_FB4 CAN_F9R1_FB4_Msk /*!<Filter bit 4 */
  2958. #define CAN_F9R1_FB5_Pos (5U)
  2959. #define CAN_F9R1_FB5_Msk (0x1U << CAN_F9R1_FB5_Pos) /*!< 0x00000020 */
  2960. #define CAN_F9R1_FB5 CAN_F9R1_FB5_Msk /*!<Filter bit 5 */
  2961. #define CAN_F9R1_FB6_Pos (6U)
  2962. #define CAN_F9R1_FB6_Msk (0x1U << CAN_F9R1_FB6_Pos) /*!< 0x00000040 */
  2963. #define CAN_F9R1_FB6 CAN_F9R1_FB6_Msk /*!<Filter bit 6 */
  2964. #define CAN_F9R1_FB7_Pos (7U)
  2965. #define CAN_F9R1_FB7_Msk (0x1U << CAN_F9R1_FB7_Pos) /*!< 0x00000080 */
  2966. #define CAN_F9R1_FB7 CAN_F9R1_FB7_Msk /*!<Filter bit 7 */
  2967. #define CAN_F9R1_FB8_Pos (8U)
  2968. #define CAN_F9R1_FB8_Msk (0x1U << CAN_F9R1_FB8_Pos) /*!< 0x00000100 */
  2969. #define CAN_F9R1_FB8 CAN_F9R1_FB8_Msk /*!<Filter bit 8 */
  2970. #define CAN_F9R1_FB9_Pos (9U)
  2971. #define CAN_F9R1_FB9_Msk (0x1U << CAN_F9R1_FB9_Pos) /*!< 0x00000200 */
  2972. #define CAN_F9R1_FB9 CAN_F9R1_FB9_Msk /*!<Filter bit 9 */
  2973. #define CAN_F9R1_FB10_Pos (10U)
  2974. #define CAN_F9R1_FB10_Msk (0x1U << CAN_F9R1_FB10_Pos) /*!< 0x00000400 */
  2975. #define CAN_F9R1_FB10 CAN_F9R1_FB10_Msk /*!<Filter bit 10 */
  2976. #define CAN_F9R1_FB11_Pos (11U)
  2977. #define CAN_F9R1_FB11_Msk (0x1U << CAN_F9R1_FB11_Pos) /*!< 0x00000800 */
  2978. #define CAN_F9R1_FB11 CAN_F9R1_FB11_Msk /*!<Filter bit 11 */
  2979. #define CAN_F9R1_FB12_Pos (12U)
  2980. #define CAN_F9R1_FB12_Msk (0x1U << CAN_F9R1_FB12_Pos) /*!< 0x00001000 */
  2981. #define CAN_F9R1_FB12 CAN_F9R1_FB12_Msk /*!<Filter bit 12 */
  2982. #define CAN_F9R1_FB13_Pos (13U)
  2983. #define CAN_F9R1_FB13_Msk (0x1U << CAN_F9R1_FB13_Pos) /*!< 0x00002000 */
  2984. #define CAN_F9R1_FB13 CAN_F9R1_FB13_Msk /*!<Filter bit 13 */
  2985. #define CAN_F9R1_FB14_Pos (14U)
  2986. #define CAN_F9R1_FB14_Msk (0x1U << CAN_F9R1_FB14_Pos) /*!< 0x00004000 */
  2987. #define CAN_F9R1_FB14 CAN_F9R1_FB14_Msk /*!<Filter bit 14 */
  2988. #define CAN_F9R1_FB15_Pos (15U)
  2989. #define CAN_F9R1_FB15_Msk (0x1U << CAN_F9R1_FB15_Pos) /*!< 0x00008000 */
  2990. #define CAN_F9R1_FB15 CAN_F9R1_FB15_Msk /*!<Filter bit 15 */
  2991. #define CAN_F9R1_FB16_Pos (16U)
  2992. #define CAN_F9R1_FB16_Msk (0x1U << CAN_F9R1_FB16_Pos) /*!< 0x00010000 */
  2993. #define CAN_F9R1_FB16 CAN_F9R1_FB16_Msk /*!<Filter bit 16 */
  2994. #define CAN_F9R1_FB17_Pos (17U)
  2995. #define CAN_F9R1_FB17_Msk (0x1U << CAN_F9R1_FB17_Pos) /*!< 0x00020000 */
  2996. #define CAN_F9R1_FB17 CAN_F9R1_FB17_Msk /*!<Filter bit 17 */
  2997. #define CAN_F9R1_FB18_Pos (18U)
  2998. #define CAN_F9R1_FB18_Msk (0x1U << CAN_F9R1_FB18_Pos) /*!< 0x00040000 */
  2999. #define CAN_F9R1_FB18 CAN_F9R1_FB18_Msk /*!<Filter bit 18 */
  3000. #define CAN_F9R1_FB19_Pos (19U)
  3001. #define CAN_F9R1_FB19_Msk (0x1U << CAN_F9R1_FB19_Pos) /*!< 0x00080000 */
  3002. #define CAN_F9R1_FB19 CAN_F9R1_FB19_Msk /*!<Filter bit 19 */
  3003. #define CAN_F9R1_FB20_Pos (20U)
  3004. #define CAN_F9R1_FB20_Msk (0x1U << CAN_F9R1_FB20_Pos) /*!< 0x00100000 */
  3005. #define CAN_F9R1_FB20 CAN_F9R1_FB20_Msk /*!<Filter bit 20 */
  3006. #define CAN_F9R1_FB21_Pos (21U)
  3007. #define CAN_F9R1_FB21_Msk (0x1U << CAN_F9R1_FB21_Pos) /*!< 0x00200000 */
  3008. #define CAN_F9R1_FB21 CAN_F9R1_FB21_Msk /*!<Filter bit 21 */
  3009. #define CAN_F9R1_FB22_Pos (22U)
  3010. #define CAN_F9R1_FB22_Msk (0x1U << CAN_F9R1_FB22_Pos) /*!< 0x00400000 */
  3011. #define CAN_F9R1_FB22 CAN_F9R1_FB22_Msk /*!<Filter bit 22 */
  3012. #define CAN_F9R1_FB23_Pos (23U)
  3013. #define CAN_F9R1_FB23_Msk (0x1U << CAN_F9R1_FB23_Pos) /*!< 0x00800000 */
  3014. #define CAN_F9R1_FB23 CAN_F9R1_FB23_Msk /*!<Filter bit 23 */
  3015. #define CAN_F9R1_FB24_Pos (24U)
  3016. #define CAN_F9R1_FB24_Msk (0x1U << CAN_F9R1_FB24_Pos) /*!< 0x01000000 */
  3017. #define CAN_F9R1_FB24 CAN_F9R1_FB24_Msk /*!<Filter bit 24 */
  3018. #define CAN_F9R1_FB25_Pos (25U)
  3019. #define CAN_F9R1_FB25_Msk (0x1U << CAN_F9R1_FB25_Pos) /*!< 0x02000000 */
  3020. #define CAN_F9R1_FB25 CAN_F9R1_FB25_Msk /*!<Filter bit 25 */
  3021. #define CAN_F9R1_FB26_Pos (26U)
  3022. #define CAN_F9R1_FB26_Msk (0x1U << CAN_F9R1_FB26_Pos) /*!< 0x04000000 */
  3023. #define CAN_F9R1_FB26 CAN_F9R1_FB26_Msk /*!<Filter bit 26 */
  3024. #define CAN_F9R1_FB27_Pos (27U)
  3025. #define CAN_F9R1_FB27_Msk (0x1U << CAN_F9R1_FB27_Pos) /*!< 0x08000000 */
  3026. #define CAN_F9R1_FB27 CAN_F9R1_FB27_Msk /*!<Filter bit 27 */
  3027. #define CAN_F9R1_FB28_Pos (28U)
  3028. #define CAN_F9R1_FB28_Msk (0x1U << CAN_F9R1_FB28_Pos) /*!< 0x10000000 */
  3029. #define CAN_F9R1_FB28 CAN_F9R1_FB28_Msk /*!<Filter bit 28 */
  3030. #define CAN_F9R1_FB29_Pos (29U)
  3031. #define CAN_F9R1_FB29_Msk (0x1U << CAN_F9R1_FB29_Pos) /*!< 0x20000000 */
  3032. #define CAN_F9R1_FB29 CAN_F9R1_FB29_Msk /*!<Filter bit 29 */
  3033. #define CAN_F9R1_FB30_Pos (30U)
  3034. #define CAN_F9R1_FB30_Msk (0x1U << CAN_F9R1_FB30_Pos) /*!< 0x40000000 */
  3035. #define CAN_F9R1_FB30 CAN_F9R1_FB30_Msk /*!<Filter bit 30 */
  3036. #define CAN_F9R1_FB31_Pos (31U)
  3037. #define CAN_F9R1_FB31_Msk (0x1U << CAN_F9R1_FB31_Pos) /*!< 0x80000000 */
  3038. #define CAN_F9R1_FB31 CAN_F9R1_FB31_Msk /*!<Filter bit 31 */
  3039. /******************* Bit definition for CAN_F10R1 register ******************/
  3040. #define CAN_F10R1_FB0_Pos (0U)
  3041. #define CAN_F10R1_FB0_Msk (0x1U << CAN_F10R1_FB0_Pos) /*!< 0x00000001 */
  3042. #define CAN_F10R1_FB0 CAN_F10R1_FB0_Msk /*!<Filter bit 0 */
  3043. #define CAN_F10R1_FB1_Pos (1U)
  3044. #define CAN_F10R1_FB1_Msk (0x1U << CAN_F10R1_FB1_Pos) /*!< 0x00000002 */
  3045. #define CAN_F10R1_FB1 CAN_F10R1_FB1_Msk /*!<Filter bit 1 */
  3046. #define CAN_F10R1_FB2_Pos (2U)
  3047. #define CAN_F10R1_FB2_Msk (0x1U << CAN_F10R1_FB2_Pos) /*!< 0x00000004 */
  3048. #define CAN_F10R1_FB2 CAN_F10R1_FB2_Msk /*!<Filter bit 2 */
  3049. #define CAN_F10R1_FB3_Pos (3U)
  3050. #define CAN_F10R1_FB3_Msk (0x1U << CAN_F10R1_FB3_Pos) /*!< 0x00000008 */
  3051. #define CAN_F10R1_FB3 CAN_F10R1_FB3_Msk /*!<Filter bit 3 */
  3052. #define CAN_F10R1_FB4_Pos (4U)
  3053. #define CAN_F10R1_FB4_Msk (0x1U << CAN_F10R1_FB4_Pos) /*!< 0x00000010 */
  3054. #define CAN_F10R1_FB4 CAN_F10R1_FB4_Msk /*!<Filter bit 4 */
  3055. #define CAN_F10R1_FB5_Pos (5U)
  3056. #define CAN_F10R1_FB5_Msk (0x1U << CAN_F10R1_FB5_Pos) /*!< 0x00000020 */
  3057. #define CAN_F10R1_FB5 CAN_F10R1_FB5_Msk /*!<Filter bit 5 */
  3058. #define CAN_F10R1_FB6_Pos (6U)
  3059. #define CAN_F10R1_FB6_Msk (0x1U << CAN_F10R1_FB6_Pos) /*!< 0x00000040 */
  3060. #define CAN_F10R1_FB6 CAN_F10R1_FB6_Msk /*!<Filter bit 6 */
  3061. #define CAN_F10R1_FB7_Pos (7U)
  3062. #define CAN_F10R1_FB7_Msk (0x1U << CAN_F10R1_FB7_Pos) /*!< 0x00000080 */
  3063. #define CAN_F10R1_FB7 CAN_F10R1_FB7_Msk /*!<Filter bit 7 */
  3064. #define CAN_F10R1_FB8_Pos (8U)
  3065. #define CAN_F10R1_FB8_Msk (0x1U << CAN_F10R1_FB8_Pos) /*!< 0x00000100 */
  3066. #define CAN_F10R1_FB8 CAN_F10R1_FB8_Msk /*!<Filter bit 8 */
  3067. #define CAN_F10R1_FB9_Pos (9U)
  3068. #define CAN_F10R1_FB9_Msk (0x1U << CAN_F10R1_FB9_Pos) /*!< 0x00000200 */
  3069. #define CAN_F10R1_FB9 CAN_F10R1_FB9_Msk /*!<Filter bit 9 */
  3070. #define CAN_F10R1_FB10_Pos (10U)
  3071. #define CAN_F10R1_FB10_Msk (0x1U << CAN_F10R1_FB10_Pos) /*!< 0x00000400 */
  3072. #define CAN_F10R1_FB10 CAN_F10R1_FB10_Msk /*!<Filter bit 10 */
  3073. #define CAN_F10R1_FB11_Pos (11U)
  3074. #define CAN_F10R1_FB11_Msk (0x1U << CAN_F10R1_FB11_Pos) /*!< 0x00000800 */
  3075. #define CAN_F10R1_FB11 CAN_F10R1_FB11_Msk /*!<Filter bit 11 */
  3076. #define CAN_F10R1_FB12_Pos (12U)
  3077. #define CAN_F10R1_FB12_Msk (0x1U << CAN_F10R1_FB12_Pos) /*!< 0x00001000 */
  3078. #define CAN_F10R1_FB12 CAN_F10R1_FB12_Msk /*!<Filter bit 12 */
  3079. #define CAN_F10R1_FB13_Pos (13U)
  3080. #define CAN_F10R1_FB13_Msk (0x1U << CAN_F10R1_FB13_Pos) /*!< 0x00002000 */
  3081. #define CAN_F10R1_FB13 CAN_F10R1_FB13_Msk /*!<Filter bit 13 */
  3082. #define CAN_F10R1_FB14_Pos (14U)
  3083. #define CAN_F10R1_FB14_Msk (0x1U << CAN_F10R1_FB14_Pos) /*!< 0x00004000 */
  3084. #define CAN_F10R1_FB14 CAN_F10R1_FB14_Msk /*!<Filter bit 14 */
  3085. #define CAN_F10R1_FB15_Pos (15U)
  3086. #define CAN_F10R1_FB15_Msk (0x1U << CAN_F10R1_FB15_Pos) /*!< 0x00008000 */
  3087. #define CAN_F10R1_FB15 CAN_F10R1_FB15_Msk /*!<Filter bit 15 */
  3088. #define CAN_F10R1_FB16_Pos (16U)
  3089. #define CAN_F10R1_FB16_Msk (0x1U << CAN_F10R1_FB16_Pos) /*!< 0x00010000 */
  3090. #define CAN_F10R1_FB16 CAN_F10R1_FB16_Msk /*!<Filter bit 16 */
  3091. #define CAN_F10R1_FB17_Pos (17U)
  3092. #define CAN_F10R1_FB17_Msk (0x1U << CAN_F10R1_FB17_Pos) /*!< 0x00020000 */
  3093. #define CAN_F10R1_FB17 CAN_F10R1_FB17_Msk /*!<Filter bit 17 */
  3094. #define CAN_F10R1_FB18_Pos (18U)
  3095. #define CAN_F10R1_FB18_Msk (0x1U << CAN_F10R1_FB18_Pos) /*!< 0x00040000 */
  3096. #define CAN_F10R1_FB18 CAN_F10R1_FB18_Msk /*!<Filter bit 18 */
  3097. #define CAN_F10R1_FB19_Pos (19U)
  3098. #define CAN_F10R1_FB19_Msk (0x1U << CAN_F10R1_FB19_Pos) /*!< 0x00080000 */
  3099. #define CAN_F10R1_FB19 CAN_F10R1_FB19_Msk /*!<Filter bit 19 */
  3100. #define CAN_F10R1_FB20_Pos (20U)
  3101. #define CAN_F10R1_FB20_Msk (0x1U << CAN_F10R1_FB20_Pos) /*!< 0x00100000 */
  3102. #define CAN_F10R1_FB20 CAN_F10R1_FB20_Msk /*!<Filter bit 20 */
  3103. #define CAN_F10R1_FB21_Pos (21U)
  3104. #define CAN_F10R1_FB21_Msk (0x1U << CAN_F10R1_FB21_Pos) /*!< 0x00200000 */
  3105. #define CAN_F10R1_FB21 CAN_F10R1_FB21_Msk /*!<Filter bit 21 */
  3106. #define CAN_F10R1_FB22_Pos (22U)
  3107. #define CAN_F10R1_FB22_Msk (0x1U << CAN_F10R1_FB22_Pos) /*!< 0x00400000 */
  3108. #define CAN_F10R1_FB22 CAN_F10R1_FB22_Msk /*!<Filter bit 22 */
  3109. #define CAN_F10R1_FB23_Pos (23U)
  3110. #define CAN_F10R1_FB23_Msk (0x1U << CAN_F10R1_FB23_Pos) /*!< 0x00800000 */
  3111. #define CAN_F10R1_FB23 CAN_F10R1_FB23_Msk /*!<Filter bit 23 */
  3112. #define CAN_F10R1_FB24_Pos (24U)
  3113. #define CAN_F10R1_FB24_Msk (0x1U << CAN_F10R1_FB24_Pos) /*!< 0x01000000 */
  3114. #define CAN_F10R1_FB24 CAN_F10R1_FB24_Msk /*!<Filter bit 24 */
  3115. #define CAN_F10R1_FB25_Pos (25U)
  3116. #define CAN_F10R1_FB25_Msk (0x1U << CAN_F10R1_FB25_Pos) /*!< 0x02000000 */
  3117. #define CAN_F10R1_FB25 CAN_F10R1_FB25_Msk /*!<Filter bit 25 */
  3118. #define CAN_F10R1_FB26_Pos (26U)
  3119. #define CAN_F10R1_FB26_Msk (0x1U << CAN_F10R1_FB26_Pos) /*!< 0x04000000 */
  3120. #define CAN_F10R1_FB26 CAN_F10R1_FB26_Msk /*!<Filter bit 26 */
  3121. #define CAN_F10R1_FB27_Pos (27U)
  3122. #define CAN_F10R1_FB27_Msk (0x1U << CAN_F10R1_FB27_Pos) /*!< 0x08000000 */
  3123. #define CAN_F10R1_FB27 CAN_F10R1_FB27_Msk /*!<Filter bit 27 */
  3124. #define CAN_F10R1_FB28_Pos (28U)
  3125. #define CAN_F10R1_FB28_Msk (0x1U << CAN_F10R1_FB28_Pos) /*!< 0x10000000 */
  3126. #define CAN_F10R1_FB28 CAN_F10R1_FB28_Msk /*!<Filter bit 28 */
  3127. #define CAN_F10R1_FB29_Pos (29U)
  3128. #define CAN_F10R1_FB29_Msk (0x1U << CAN_F10R1_FB29_Pos) /*!< 0x20000000 */
  3129. #define CAN_F10R1_FB29 CAN_F10R1_FB29_Msk /*!<Filter bit 29 */
  3130. #define CAN_F10R1_FB30_Pos (30U)
  3131. #define CAN_F10R1_FB30_Msk (0x1U << CAN_F10R1_FB30_Pos) /*!< 0x40000000 */
  3132. #define CAN_F10R1_FB30 CAN_F10R1_FB30_Msk /*!<Filter bit 30 */
  3133. #define CAN_F10R1_FB31_Pos (31U)
  3134. #define CAN_F10R1_FB31_Msk (0x1U << CAN_F10R1_FB31_Pos) /*!< 0x80000000 */
  3135. #define CAN_F10R1_FB31 CAN_F10R1_FB31_Msk /*!<Filter bit 31 */
  3136. /******************* Bit definition for CAN_F11R1 register ******************/
  3137. #define CAN_F11R1_FB0_Pos (0U)
  3138. #define CAN_F11R1_FB0_Msk (0x1U << CAN_F11R1_FB0_Pos) /*!< 0x00000001 */
  3139. #define CAN_F11R1_FB0 CAN_F11R1_FB0_Msk /*!<Filter bit 0 */
  3140. #define CAN_F11R1_FB1_Pos (1U)
  3141. #define CAN_F11R1_FB1_Msk (0x1U << CAN_F11R1_FB1_Pos) /*!< 0x00000002 */
  3142. #define CAN_F11R1_FB1 CAN_F11R1_FB1_Msk /*!<Filter bit 1 */
  3143. #define CAN_F11R1_FB2_Pos (2U)
  3144. #define CAN_F11R1_FB2_Msk (0x1U << CAN_F11R1_FB2_Pos) /*!< 0x00000004 */
  3145. #define CAN_F11R1_FB2 CAN_F11R1_FB2_Msk /*!<Filter bit 2 */
  3146. #define CAN_F11R1_FB3_Pos (3U)
  3147. #define CAN_F11R1_FB3_Msk (0x1U << CAN_F11R1_FB3_Pos) /*!< 0x00000008 */
  3148. #define CAN_F11R1_FB3 CAN_F11R1_FB3_Msk /*!<Filter bit 3 */
  3149. #define CAN_F11R1_FB4_Pos (4U)
  3150. #define CAN_F11R1_FB4_Msk (0x1U << CAN_F11R1_FB4_Pos) /*!< 0x00000010 */
  3151. #define CAN_F11R1_FB4 CAN_F11R1_FB4_Msk /*!<Filter bit 4 */
  3152. #define CAN_F11R1_FB5_Pos (5U)
  3153. #define CAN_F11R1_FB5_Msk (0x1U << CAN_F11R1_FB5_Pos) /*!< 0x00000020 */
  3154. #define CAN_F11R1_FB5 CAN_F11R1_FB5_Msk /*!<Filter bit 5 */
  3155. #define CAN_F11R1_FB6_Pos (6U)
  3156. #define CAN_F11R1_FB6_Msk (0x1U << CAN_F11R1_FB6_Pos) /*!< 0x00000040 */
  3157. #define CAN_F11R1_FB6 CAN_F11R1_FB6_Msk /*!<Filter bit 6 */
  3158. #define CAN_F11R1_FB7_Pos (7U)
  3159. #define CAN_F11R1_FB7_Msk (0x1U << CAN_F11R1_FB7_Pos) /*!< 0x00000080 */
  3160. #define CAN_F11R1_FB7 CAN_F11R1_FB7_Msk /*!<Filter bit 7 */
  3161. #define CAN_F11R1_FB8_Pos (8U)
  3162. #define CAN_F11R1_FB8_Msk (0x1U << CAN_F11R1_FB8_Pos) /*!< 0x00000100 */
  3163. #define CAN_F11R1_FB8 CAN_F11R1_FB8_Msk /*!<Filter bit 8 */
  3164. #define CAN_F11R1_FB9_Pos (9U)
  3165. #define CAN_F11R1_FB9_Msk (0x1U << CAN_F11R1_FB9_Pos) /*!< 0x00000200 */
  3166. #define CAN_F11R1_FB9 CAN_F11R1_FB9_Msk /*!<Filter bit 9 */
  3167. #define CAN_F11R1_FB10_Pos (10U)
  3168. #define CAN_F11R1_FB10_Msk (0x1U << CAN_F11R1_FB10_Pos) /*!< 0x00000400 */
  3169. #define CAN_F11R1_FB10 CAN_F11R1_FB10_Msk /*!<Filter bit 10 */
  3170. #define CAN_F11R1_FB11_Pos (11U)
  3171. #define CAN_F11R1_FB11_Msk (0x1U << CAN_F11R1_FB11_Pos) /*!< 0x00000800 */
  3172. #define CAN_F11R1_FB11 CAN_F11R1_FB11_Msk /*!<Filter bit 11 */
  3173. #define CAN_F11R1_FB12_Pos (12U)
  3174. #define CAN_F11R1_FB12_Msk (0x1U << CAN_F11R1_FB12_Pos) /*!< 0x00001000 */
  3175. #define CAN_F11R1_FB12 CAN_F11R1_FB12_Msk /*!<Filter bit 12 */
  3176. #define CAN_F11R1_FB13_Pos (13U)
  3177. #define CAN_F11R1_FB13_Msk (0x1U << CAN_F11R1_FB13_Pos) /*!< 0x00002000 */
  3178. #define CAN_F11R1_FB13 CAN_F11R1_FB13_Msk /*!<Filter bit 13 */
  3179. #define CAN_F11R1_FB14_Pos (14U)
  3180. #define CAN_F11R1_FB14_Msk (0x1U << CAN_F11R1_FB14_Pos) /*!< 0x00004000 */
  3181. #define CAN_F11R1_FB14 CAN_F11R1_FB14_Msk /*!<Filter bit 14 */
  3182. #define CAN_F11R1_FB15_Pos (15U)
  3183. #define CAN_F11R1_FB15_Msk (0x1U << CAN_F11R1_FB15_Pos) /*!< 0x00008000 */
  3184. #define CAN_F11R1_FB15 CAN_F11R1_FB15_Msk /*!<Filter bit 15 */
  3185. #define CAN_F11R1_FB16_Pos (16U)
  3186. #define CAN_F11R1_FB16_Msk (0x1U << CAN_F11R1_FB16_Pos) /*!< 0x00010000 */
  3187. #define CAN_F11R1_FB16 CAN_F11R1_FB16_Msk /*!<Filter bit 16 */
  3188. #define CAN_F11R1_FB17_Pos (17U)
  3189. #define CAN_F11R1_FB17_Msk (0x1U << CAN_F11R1_FB17_Pos) /*!< 0x00020000 */
  3190. #define CAN_F11R1_FB17 CAN_F11R1_FB17_Msk /*!<Filter bit 17 */
  3191. #define CAN_F11R1_FB18_Pos (18U)
  3192. #define CAN_F11R1_FB18_Msk (0x1U << CAN_F11R1_FB18_Pos) /*!< 0x00040000 */
  3193. #define CAN_F11R1_FB18 CAN_F11R1_FB18_Msk /*!<Filter bit 18 */
  3194. #define CAN_F11R1_FB19_Pos (19U)
  3195. #define CAN_F11R1_FB19_Msk (0x1U << CAN_F11R1_FB19_Pos) /*!< 0x00080000 */
  3196. #define CAN_F11R1_FB19 CAN_F11R1_FB19_Msk /*!<Filter bit 19 */
  3197. #define CAN_F11R1_FB20_Pos (20U)
  3198. #define CAN_F11R1_FB20_Msk (0x1U << CAN_F11R1_FB20_Pos) /*!< 0x00100000 */
  3199. #define CAN_F11R1_FB20 CAN_F11R1_FB20_Msk /*!<Filter bit 20 */
  3200. #define CAN_F11R1_FB21_Pos (21U)
  3201. #define CAN_F11R1_FB21_Msk (0x1U << CAN_F11R1_FB21_Pos) /*!< 0x00200000 */
  3202. #define CAN_F11R1_FB21 CAN_F11R1_FB21_Msk /*!<Filter bit 21 */
  3203. #define CAN_F11R1_FB22_Pos (22U)
  3204. #define CAN_F11R1_FB22_Msk (0x1U << CAN_F11R1_FB22_Pos) /*!< 0x00400000 */
  3205. #define CAN_F11R1_FB22 CAN_F11R1_FB22_Msk /*!<Filter bit 22 */
  3206. #define CAN_F11R1_FB23_Pos (23U)
  3207. #define CAN_F11R1_FB23_Msk (0x1U << CAN_F11R1_FB23_Pos) /*!< 0x00800000 */
  3208. #define CAN_F11R1_FB23 CAN_F11R1_FB23_Msk /*!<Filter bit 23 */
  3209. #define CAN_F11R1_FB24_Pos (24U)
  3210. #define CAN_F11R1_FB24_Msk (0x1U << CAN_F11R1_FB24_Pos) /*!< 0x01000000 */
  3211. #define CAN_F11R1_FB24 CAN_F11R1_FB24_Msk /*!<Filter bit 24 */
  3212. #define CAN_F11R1_FB25_Pos (25U)
  3213. #define CAN_F11R1_FB25_Msk (0x1U << CAN_F11R1_FB25_Pos) /*!< 0x02000000 */
  3214. #define CAN_F11R1_FB25 CAN_F11R1_FB25_Msk /*!<Filter bit 25 */
  3215. #define CAN_F11R1_FB26_Pos (26U)
  3216. #define CAN_F11R1_FB26_Msk (0x1U << CAN_F11R1_FB26_Pos) /*!< 0x04000000 */
  3217. #define CAN_F11R1_FB26 CAN_F11R1_FB26_Msk /*!<Filter bit 26 */
  3218. #define CAN_F11R1_FB27_Pos (27U)
  3219. #define CAN_F11R1_FB27_Msk (0x1U << CAN_F11R1_FB27_Pos) /*!< 0x08000000 */
  3220. #define CAN_F11R1_FB27 CAN_F11R1_FB27_Msk /*!<Filter bit 27 */
  3221. #define CAN_F11R1_FB28_Pos (28U)
  3222. #define CAN_F11R1_FB28_Msk (0x1U << CAN_F11R1_FB28_Pos) /*!< 0x10000000 */
  3223. #define CAN_F11R1_FB28 CAN_F11R1_FB28_Msk /*!<Filter bit 28 */
  3224. #define CAN_F11R1_FB29_Pos (29U)
  3225. #define CAN_F11R1_FB29_Msk (0x1U << CAN_F11R1_FB29_Pos) /*!< 0x20000000 */
  3226. #define CAN_F11R1_FB29 CAN_F11R1_FB29_Msk /*!<Filter bit 29 */
  3227. #define CAN_F11R1_FB30_Pos (30U)
  3228. #define CAN_F11R1_FB30_Msk (0x1U << CAN_F11R1_FB30_Pos) /*!< 0x40000000 */
  3229. #define CAN_F11R1_FB30 CAN_F11R1_FB30_Msk /*!<Filter bit 30 */
  3230. #define CAN_F11R1_FB31_Pos (31U)
  3231. #define CAN_F11R1_FB31_Msk (0x1U << CAN_F11R1_FB31_Pos) /*!< 0x80000000 */
  3232. #define CAN_F11R1_FB31 CAN_F11R1_FB31_Msk /*!<Filter bit 31 */
  3233. /******************* Bit definition for CAN_F12R1 register ******************/
  3234. #define CAN_F12R1_FB0_Pos (0U)
  3235. #define CAN_F12R1_FB0_Msk (0x1U << CAN_F12R1_FB0_Pos) /*!< 0x00000001 */
  3236. #define CAN_F12R1_FB0 CAN_F12R1_FB0_Msk /*!<Filter bit 0 */
  3237. #define CAN_F12R1_FB1_Pos (1U)
  3238. #define CAN_F12R1_FB1_Msk (0x1U << CAN_F12R1_FB1_Pos) /*!< 0x00000002 */
  3239. #define CAN_F12R1_FB1 CAN_F12R1_FB1_Msk /*!<Filter bit 1 */
  3240. #define CAN_F12R1_FB2_Pos (2U)
  3241. #define CAN_F12R1_FB2_Msk (0x1U << CAN_F12R1_FB2_Pos) /*!< 0x00000004 */
  3242. #define CAN_F12R1_FB2 CAN_F12R1_FB2_Msk /*!<Filter bit 2 */
  3243. #define CAN_F12R1_FB3_Pos (3U)
  3244. #define CAN_F12R1_FB3_Msk (0x1U << CAN_F12R1_FB3_Pos) /*!< 0x00000008 */
  3245. #define CAN_F12R1_FB3 CAN_F12R1_FB3_Msk /*!<Filter bit 3 */
  3246. #define CAN_F12R1_FB4_Pos (4U)
  3247. #define CAN_F12R1_FB4_Msk (0x1U << CAN_F12R1_FB4_Pos) /*!< 0x00000010 */
  3248. #define CAN_F12R1_FB4 CAN_F12R1_FB4_Msk /*!<Filter bit 4 */
  3249. #define CAN_F12R1_FB5_Pos (5U)
  3250. #define CAN_F12R1_FB5_Msk (0x1U << CAN_F12R1_FB5_Pos) /*!< 0x00000020 */
  3251. #define CAN_F12R1_FB5 CAN_F12R1_FB5_Msk /*!<Filter bit 5 */
  3252. #define CAN_F12R1_FB6_Pos (6U)
  3253. #define CAN_F12R1_FB6_Msk (0x1U << CAN_F12R1_FB6_Pos) /*!< 0x00000040 */
  3254. #define CAN_F12R1_FB6 CAN_F12R1_FB6_Msk /*!<Filter bit 6 */
  3255. #define CAN_F12R1_FB7_Pos (7U)
  3256. #define CAN_F12R1_FB7_Msk (0x1U << CAN_F12R1_FB7_Pos) /*!< 0x00000080 */
  3257. #define CAN_F12R1_FB7 CAN_F12R1_FB7_Msk /*!<Filter bit 7 */
  3258. #define CAN_F12R1_FB8_Pos (8U)
  3259. #define CAN_F12R1_FB8_Msk (0x1U << CAN_F12R1_FB8_Pos) /*!< 0x00000100 */
  3260. #define CAN_F12R1_FB8 CAN_F12R1_FB8_Msk /*!<Filter bit 8 */
  3261. #define CAN_F12R1_FB9_Pos (9U)
  3262. #define CAN_F12R1_FB9_Msk (0x1U << CAN_F12R1_FB9_Pos) /*!< 0x00000200 */
  3263. #define CAN_F12R1_FB9 CAN_F12R1_FB9_Msk /*!<Filter bit 9 */
  3264. #define CAN_F12R1_FB10_Pos (10U)
  3265. #define CAN_F12R1_FB10_Msk (0x1U << CAN_F12R1_FB10_Pos) /*!< 0x00000400 */
  3266. #define CAN_F12R1_FB10 CAN_F12R1_FB10_Msk /*!<Filter bit 10 */
  3267. #define CAN_F12R1_FB11_Pos (11U)
  3268. #define CAN_F12R1_FB11_Msk (0x1U << CAN_F12R1_FB11_Pos) /*!< 0x00000800 */
  3269. #define CAN_F12R1_FB11 CAN_F12R1_FB11_Msk /*!<Filter bit 11 */
  3270. #define CAN_F12R1_FB12_Pos (12U)
  3271. #define CAN_F12R1_FB12_Msk (0x1U << CAN_F12R1_FB12_Pos) /*!< 0x00001000 */
  3272. #define CAN_F12R1_FB12 CAN_F12R1_FB12_Msk /*!<Filter bit 12 */
  3273. #define CAN_F12R1_FB13_Pos (13U)
  3274. #define CAN_F12R1_FB13_Msk (0x1U << CAN_F12R1_FB13_Pos) /*!< 0x00002000 */
  3275. #define CAN_F12R1_FB13 CAN_F12R1_FB13_Msk /*!<Filter bit 13 */
  3276. #define CAN_F12R1_FB14_Pos (14U)
  3277. #define CAN_F12R1_FB14_Msk (0x1U << CAN_F12R1_FB14_Pos) /*!< 0x00004000 */
  3278. #define CAN_F12R1_FB14 CAN_F12R1_FB14_Msk /*!<Filter bit 14 */
  3279. #define CAN_F12R1_FB15_Pos (15U)
  3280. #define CAN_F12R1_FB15_Msk (0x1U << CAN_F12R1_FB15_Pos) /*!< 0x00008000 */
  3281. #define CAN_F12R1_FB15 CAN_F12R1_FB15_Msk /*!<Filter bit 15 */
  3282. #define CAN_F12R1_FB16_Pos (16U)
  3283. #define CAN_F12R1_FB16_Msk (0x1U << CAN_F12R1_FB16_Pos) /*!< 0x00010000 */
  3284. #define CAN_F12R1_FB16 CAN_F12R1_FB16_Msk /*!<Filter bit 16 */
  3285. #define CAN_F12R1_FB17_Pos (17U)
  3286. #define CAN_F12R1_FB17_Msk (0x1U << CAN_F12R1_FB17_Pos) /*!< 0x00020000 */
  3287. #define CAN_F12R1_FB17 CAN_F12R1_FB17_Msk /*!<Filter bit 17 */
  3288. #define CAN_F12R1_FB18_Pos (18U)
  3289. #define CAN_F12R1_FB18_Msk (0x1U << CAN_F12R1_FB18_Pos) /*!< 0x00040000 */
  3290. #define CAN_F12R1_FB18 CAN_F12R1_FB18_Msk /*!<Filter bit 18 */
  3291. #define CAN_F12R1_FB19_Pos (19U)
  3292. #define CAN_F12R1_FB19_Msk (0x1U << CAN_F12R1_FB19_Pos) /*!< 0x00080000 */
  3293. #define CAN_F12R1_FB19 CAN_F12R1_FB19_Msk /*!<Filter bit 19 */
  3294. #define CAN_F12R1_FB20_Pos (20U)
  3295. #define CAN_F12R1_FB20_Msk (0x1U << CAN_F12R1_FB20_Pos) /*!< 0x00100000 */
  3296. #define CAN_F12R1_FB20 CAN_F12R1_FB20_Msk /*!<Filter bit 20 */
  3297. #define CAN_F12R1_FB21_Pos (21U)
  3298. #define CAN_F12R1_FB21_Msk (0x1U << CAN_F12R1_FB21_Pos) /*!< 0x00200000 */
  3299. #define CAN_F12R1_FB21 CAN_F12R1_FB21_Msk /*!<Filter bit 21 */
  3300. #define CAN_F12R1_FB22_Pos (22U)
  3301. #define CAN_F12R1_FB22_Msk (0x1U << CAN_F12R1_FB22_Pos) /*!< 0x00400000 */
  3302. #define CAN_F12R1_FB22 CAN_F12R1_FB22_Msk /*!<Filter bit 22 */
  3303. #define CAN_F12R1_FB23_Pos (23U)
  3304. #define CAN_F12R1_FB23_Msk (0x1U << CAN_F12R1_FB23_Pos) /*!< 0x00800000 */
  3305. #define CAN_F12R1_FB23 CAN_F12R1_FB23_Msk /*!<Filter bit 23 */
  3306. #define CAN_F12R1_FB24_Pos (24U)
  3307. #define CAN_F12R1_FB24_Msk (0x1U << CAN_F12R1_FB24_Pos) /*!< 0x01000000 */
  3308. #define CAN_F12R1_FB24 CAN_F12R1_FB24_Msk /*!<Filter bit 24 */
  3309. #define CAN_F12R1_FB25_Pos (25U)
  3310. #define CAN_F12R1_FB25_Msk (0x1U << CAN_F12R1_FB25_Pos) /*!< 0x02000000 */
  3311. #define CAN_F12R1_FB25 CAN_F12R1_FB25_Msk /*!<Filter bit 25 */
  3312. #define CAN_F12R1_FB26_Pos (26U)
  3313. #define CAN_F12R1_FB26_Msk (0x1U << CAN_F12R1_FB26_Pos) /*!< 0x04000000 */
  3314. #define CAN_F12R1_FB26 CAN_F12R1_FB26_Msk /*!<Filter bit 26 */
  3315. #define CAN_F12R1_FB27_Pos (27U)
  3316. #define CAN_F12R1_FB27_Msk (0x1U << CAN_F12R1_FB27_Pos) /*!< 0x08000000 */
  3317. #define CAN_F12R1_FB27 CAN_F12R1_FB27_Msk /*!<Filter bit 27 */
  3318. #define CAN_F12R1_FB28_Pos (28U)
  3319. #define CAN_F12R1_FB28_Msk (0x1U << CAN_F12R1_FB28_Pos) /*!< 0x10000000 */
  3320. #define CAN_F12R1_FB28 CAN_F12R1_FB28_Msk /*!<Filter bit 28 */
  3321. #define CAN_F12R1_FB29_Pos (29U)
  3322. #define CAN_F12R1_FB29_Msk (0x1U << CAN_F12R1_FB29_Pos) /*!< 0x20000000 */
  3323. #define CAN_F12R1_FB29 CAN_F12R1_FB29_Msk /*!<Filter bit 29 */
  3324. #define CAN_F12R1_FB30_Pos (30U)
  3325. #define CAN_F12R1_FB30_Msk (0x1U << CAN_F12R1_FB30_Pos) /*!< 0x40000000 */
  3326. #define CAN_F12R1_FB30 CAN_F12R1_FB30_Msk /*!<Filter bit 30 */
  3327. #define CAN_F12R1_FB31_Pos (31U)
  3328. #define CAN_F12R1_FB31_Msk (0x1U << CAN_F12R1_FB31_Pos) /*!< 0x80000000 */
  3329. #define CAN_F12R1_FB31 CAN_F12R1_FB31_Msk /*!<Filter bit 31 */
  3330. /******************* Bit definition for CAN_F13R1 register ******************/
  3331. #define CAN_F13R1_FB0_Pos (0U)
  3332. #define CAN_F13R1_FB0_Msk (0x1U << CAN_F13R1_FB0_Pos) /*!< 0x00000001 */
  3333. #define CAN_F13R1_FB0 CAN_F13R1_FB0_Msk /*!<Filter bit 0 */
  3334. #define CAN_F13R1_FB1_Pos (1U)
  3335. #define CAN_F13R1_FB1_Msk (0x1U << CAN_F13R1_FB1_Pos) /*!< 0x00000002 */
  3336. #define CAN_F13R1_FB1 CAN_F13R1_FB1_Msk /*!<Filter bit 1 */
  3337. #define CAN_F13R1_FB2_Pos (2U)
  3338. #define CAN_F13R1_FB2_Msk (0x1U << CAN_F13R1_FB2_Pos) /*!< 0x00000004 */
  3339. #define CAN_F13R1_FB2 CAN_F13R1_FB2_Msk /*!<Filter bit 2 */
  3340. #define CAN_F13R1_FB3_Pos (3U)
  3341. #define CAN_F13R1_FB3_Msk (0x1U << CAN_F13R1_FB3_Pos) /*!< 0x00000008 */
  3342. #define CAN_F13R1_FB3 CAN_F13R1_FB3_Msk /*!<Filter bit 3 */
  3343. #define CAN_F13R1_FB4_Pos (4U)
  3344. #define CAN_F13R1_FB4_Msk (0x1U << CAN_F13R1_FB4_Pos) /*!< 0x00000010 */
  3345. #define CAN_F13R1_FB4 CAN_F13R1_FB4_Msk /*!<Filter bit 4 */
  3346. #define CAN_F13R1_FB5_Pos (5U)
  3347. #define CAN_F13R1_FB5_Msk (0x1U << CAN_F13R1_FB5_Pos) /*!< 0x00000020 */
  3348. #define CAN_F13R1_FB5 CAN_F13R1_FB5_Msk /*!<Filter bit 5 */
  3349. #define CAN_F13R1_FB6_Pos (6U)
  3350. #define CAN_F13R1_FB6_Msk (0x1U << CAN_F13R1_FB6_Pos) /*!< 0x00000040 */
  3351. #define CAN_F13R1_FB6 CAN_F13R1_FB6_Msk /*!<Filter bit 6 */
  3352. #define CAN_F13R1_FB7_Pos (7U)
  3353. #define CAN_F13R1_FB7_Msk (0x1U << CAN_F13R1_FB7_Pos) /*!< 0x00000080 */
  3354. #define CAN_F13R1_FB7 CAN_F13R1_FB7_Msk /*!<Filter bit 7 */
  3355. #define CAN_F13R1_FB8_Pos (8U)
  3356. #define CAN_F13R1_FB8_Msk (0x1U << CAN_F13R1_FB8_Pos) /*!< 0x00000100 */
  3357. #define CAN_F13R1_FB8 CAN_F13R1_FB8_Msk /*!<Filter bit 8 */
  3358. #define CAN_F13R1_FB9_Pos (9U)
  3359. #define CAN_F13R1_FB9_Msk (0x1U << CAN_F13R1_FB9_Pos) /*!< 0x00000200 */
  3360. #define CAN_F13R1_FB9 CAN_F13R1_FB9_Msk /*!<Filter bit 9 */
  3361. #define CAN_F13R1_FB10_Pos (10U)
  3362. #define CAN_F13R1_FB10_Msk (0x1U << CAN_F13R1_FB10_Pos) /*!< 0x00000400 */
  3363. #define CAN_F13R1_FB10 CAN_F13R1_FB10_Msk /*!<Filter bit 10 */
  3364. #define CAN_F13R1_FB11_Pos (11U)
  3365. #define CAN_F13R1_FB11_Msk (0x1U << CAN_F13R1_FB11_Pos) /*!< 0x00000800 */
  3366. #define CAN_F13R1_FB11 CAN_F13R1_FB11_Msk /*!<Filter bit 11 */
  3367. #define CAN_F13R1_FB12_Pos (12U)
  3368. #define CAN_F13R1_FB12_Msk (0x1U << CAN_F13R1_FB12_Pos) /*!< 0x00001000 */
  3369. #define CAN_F13R1_FB12 CAN_F13R1_FB12_Msk /*!<Filter bit 12 */
  3370. #define CAN_F13R1_FB13_Pos (13U)
  3371. #define CAN_F13R1_FB13_Msk (0x1U << CAN_F13R1_FB13_Pos) /*!< 0x00002000 */
  3372. #define CAN_F13R1_FB13 CAN_F13R1_FB13_Msk /*!<Filter bit 13 */
  3373. #define CAN_F13R1_FB14_Pos (14U)
  3374. #define CAN_F13R1_FB14_Msk (0x1U << CAN_F13R1_FB14_Pos) /*!< 0x00004000 */
  3375. #define CAN_F13R1_FB14 CAN_F13R1_FB14_Msk /*!<Filter bit 14 */
  3376. #define CAN_F13R1_FB15_Pos (15U)
  3377. #define CAN_F13R1_FB15_Msk (0x1U << CAN_F13R1_FB15_Pos) /*!< 0x00008000 */
  3378. #define CAN_F13R1_FB15 CAN_F13R1_FB15_Msk /*!<Filter bit 15 */
  3379. #define CAN_F13R1_FB16_Pos (16U)
  3380. #define CAN_F13R1_FB16_Msk (0x1U << CAN_F13R1_FB16_Pos) /*!< 0x00010000 */
  3381. #define CAN_F13R1_FB16 CAN_F13R1_FB16_Msk /*!<Filter bit 16 */
  3382. #define CAN_F13R1_FB17_Pos (17U)
  3383. #define CAN_F13R1_FB17_Msk (0x1U << CAN_F13R1_FB17_Pos) /*!< 0x00020000 */
  3384. #define CAN_F13R1_FB17 CAN_F13R1_FB17_Msk /*!<Filter bit 17 */
  3385. #define CAN_F13R1_FB18_Pos (18U)
  3386. #define CAN_F13R1_FB18_Msk (0x1U << CAN_F13R1_FB18_Pos) /*!< 0x00040000 */
  3387. #define CAN_F13R1_FB18 CAN_F13R1_FB18_Msk /*!<Filter bit 18 */
  3388. #define CAN_F13R1_FB19_Pos (19U)
  3389. #define CAN_F13R1_FB19_Msk (0x1U << CAN_F13R1_FB19_Pos) /*!< 0x00080000 */
  3390. #define CAN_F13R1_FB19 CAN_F13R1_FB19_Msk /*!<Filter bit 19 */
  3391. #define CAN_F13R1_FB20_Pos (20U)
  3392. #define CAN_F13R1_FB20_Msk (0x1U << CAN_F13R1_FB20_Pos) /*!< 0x00100000 */
  3393. #define CAN_F13R1_FB20 CAN_F13R1_FB20_Msk /*!<Filter bit 20 */
  3394. #define CAN_F13R1_FB21_Pos (21U)
  3395. #define CAN_F13R1_FB21_Msk (0x1U << CAN_F13R1_FB21_Pos) /*!< 0x00200000 */
  3396. #define CAN_F13R1_FB21 CAN_F13R1_FB21_Msk /*!<Filter bit 21 */
  3397. #define CAN_F13R1_FB22_Pos (22U)
  3398. #define CAN_F13R1_FB22_Msk (0x1U << CAN_F13R1_FB22_Pos) /*!< 0x00400000 */
  3399. #define CAN_F13R1_FB22 CAN_F13R1_FB22_Msk /*!<Filter bit 22 */
  3400. #define CAN_F13R1_FB23_Pos (23U)
  3401. #define CAN_F13R1_FB23_Msk (0x1U << CAN_F13R1_FB23_Pos) /*!< 0x00800000 */
  3402. #define CAN_F13R1_FB23 CAN_F13R1_FB23_Msk /*!<Filter bit 23 */
  3403. #define CAN_F13R1_FB24_Pos (24U)
  3404. #define CAN_F13R1_FB24_Msk (0x1U << CAN_F13R1_FB24_Pos) /*!< 0x01000000 */
  3405. #define CAN_F13R1_FB24 CAN_F13R1_FB24_Msk /*!<Filter bit 24 */
  3406. #define CAN_F13R1_FB25_Pos (25U)
  3407. #define CAN_F13R1_FB25_Msk (0x1U << CAN_F13R1_FB25_Pos) /*!< 0x02000000 */
  3408. #define CAN_F13R1_FB25 CAN_F13R1_FB25_Msk /*!<Filter bit 25 */
  3409. #define CAN_F13R1_FB26_Pos (26U)
  3410. #define CAN_F13R1_FB26_Msk (0x1U << CAN_F13R1_FB26_Pos) /*!< 0x04000000 */
  3411. #define CAN_F13R1_FB26 CAN_F13R1_FB26_Msk /*!<Filter bit 26 */
  3412. #define CAN_F13R1_FB27_Pos (27U)
  3413. #define CAN_F13R1_FB27_Msk (0x1U << CAN_F13R1_FB27_Pos) /*!< 0x08000000 */
  3414. #define CAN_F13R1_FB27 CAN_F13R1_FB27_Msk /*!<Filter bit 27 */
  3415. #define CAN_F13R1_FB28_Pos (28U)
  3416. #define CAN_F13R1_FB28_Msk (0x1U << CAN_F13R1_FB28_Pos) /*!< 0x10000000 */
  3417. #define CAN_F13R1_FB28 CAN_F13R1_FB28_Msk /*!<Filter bit 28 */
  3418. #define CAN_F13R1_FB29_Pos (29U)
  3419. #define CAN_F13R1_FB29_Msk (0x1U << CAN_F13R1_FB29_Pos) /*!< 0x20000000 */
  3420. #define CAN_F13R1_FB29 CAN_F13R1_FB29_Msk /*!<Filter bit 29 */
  3421. #define CAN_F13R1_FB30_Pos (30U)
  3422. #define CAN_F13R1_FB30_Msk (0x1U << CAN_F13R1_FB30_Pos) /*!< 0x40000000 */
  3423. #define CAN_F13R1_FB30 CAN_F13R1_FB30_Msk /*!<Filter bit 30 */
  3424. #define CAN_F13R1_FB31_Pos (31U)
  3425. #define CAN_F13R1_FB31_Msk (0x1U << CAN_F13R1_FB31_Pos) /*!< 0x80000000 */
  3426. #define CAN_F13R1_FB31 CAN_F13R1_FB31_Msk /*!<Filter bit 31 */
  3427. /******************* Bit definition for CAN_F0R2 register *******************/
  3428. #define CAN_F0R2_FB0_Pos (0U)
  3429. #define CAN_F0R2_FB0_Msk (0x1U << CAN_F0R2_FB0_Pos) /*!< 0x00000001 */
  3430. #define CAN_F0R2_FB0 CAN_F0R2_FB0_Msk /*!<Filter bit 0 */
  3431. #define CAN_F0R2_FB1_Pos (1U)
  3432. #define CAN_F0R2_FB1_Msk (0x1U << CAN_F0R2_FB1_Pos) /*!< 0x00000002 */
  3433. #define CAN_F0R2_FB1 CAN_F0R2_FB1_Msk /*!<Filter bit 1 */
  3434. #define CAN_F0R2_FB2_Pos (2U)
  3435. #define CAN_F0R2_FB2_Msk (0x1U << CAN_F0R2_FB2_Pos) /*!< 0x00000004 */
  3436. #define CAN_F0R2_FB2 CAN_F0R2_FB2_Msk /*!<Filter bit 2 */
  3437. #define CAN_F0R2_FB3_Pos (3U)
  3438. #define CAN_F0R2_FB3_Msk (0x1U << CAN_F0R2_FB3_Pos) /*!< 0x00000008 */
  3439. #define CAN_F0R2_FB3 CAN_F0R2_FB3_Msk /*!<Filter bit 3 */
  3440. #define CAN_F0R2_FB4_Pos (4U)
  3441. #define CAN_F0R2_FB4_Msk (0x1U << CAN_F0R2_FB4_Pos) /*!< 0x00000010 */
  3442. #define CAN_F0R2_FB4 CAN_F0R2_FB4_Msk /*!<Filter bit 4 */
  3443. #define CAN_F0R2_FB5_Pos (5U)
  3444. #define CAN_F0R2_FB5_Msk (0x1U << CAN_F0R2_FB5_Pos) /*!< 0x00000020 */
  3445. #define CAN_F0R2_FB5 CAN_F0R2_FB5_Msk /*!<Filter bit 5 */
  3446. #define CAN_F0R2_FB6_Pos (6U)
  3447. #define CAN_F0R2_FB6_Msk (0x1U << CAN_F0R2_FB6_Pos) /*!< 0x00000040 */
  3448. #define CAN_F0R2_FB6 CAN_F0R2_FB6_Msk /*!<Filter bit 6 */
  3449. #define CAN_F0R2_FB7_Pos (7U)
  3450. #define CAN_F0R2_FB7_Msk (0x1U << CAN_F0R2_FB7_Pos) /*!< 0x00000080 */
  3451. #define CAN_F0R2_FB7 CAN_F0R2_FB7_Msk /*!<Filter bit 7 */
  3452. #define CAN_F0R2_FB8_Pos (8U)
  3453. #define CAN_F0R2_FB8_Msk (0x1U << CAN_F0R2_FB8_Pos) /*!< 0x00000100 */
  3454. #define CAN_F0R2_FB8 CAN_F0R2_FB8_Msk /*!<Filter bit 8 */
  3455. #define CAN_F0R2_FB9_Pos (9U)
  3456. #define CAN_F0R2_FB9_Msk (0x1U << CAN_F0R2_FB9_Pos) /*!< 0x00000200 */
  3457. #define CAN_F0R2_FB9 CAN_F0R2_FB9_Msk /*!<Filter bit 9 */
  3458. #define CAN_F0R2_FB10_Pos (10U)
  3459. #define CAN_F0R2_FB10_Msk (0x1U << CAN_F0R2_FB10_Pos) /*!< 0x00000400 */
  3460. #define CAN_F0R2_FB10 CAN_F0R2_FB10_Msk /*!<Filter bit 10 */
  3461. #define CAN_F0R2_FB11_Pos (11U)
  3462. #define CAN_F0R2_FB11_Msk (0x1U << CAN_F0R2_FB11_Pos) /*!< 0x00000800 */
  3463. #define CAN_F0R2_FB11 CAN_F0R2_FB11_Msk /*!<Filter bit 11 */
  3464. #define CAN_F0R2_FB12_Pos (12U)
  3465. #define CAN_F0R2_FB12_Msk (0x1U << CAN_F0R2_FB12_Pos) /*!< 0x00001000 */
  3466. #define CAN_F0R2_FB12 CAN_F0R2_FB12_Msk /*!<Filter bit 12 */
  3467. #define CAN_F0R2_FB13_Pos (13U)
  3468. #define CAN_F0R2_FB13_Msk (0x1U << CAN_F0R2_FB13_Pos) /*!< 0x00002000 */
  3469. #define CAN_F0R2_FB13 CAN_F0R2_FB13_Msk /*!<Filter bit 13 */
  3470. #define CAN_F0R2_FB14_Pos (14U)
  3471. #define CAN_F0R2_FB14_Msk (0x1U << CAN_F0R2_FB14_Pos) /*!< 0x00004000 */
  3472. #define CAN_F0R2_FB14 CAN_F0R2_FB14_Msk /*!<Filter bit 14 */
  3473. #define CAN_F0R2_FB15_Pos (15U)
  3474. #define CAN_F0R2_FB15_Msk (0x1U << CAN_F0R2_FB15_Pos) /*!< 0x00008000 */
  3475. #define CAN_F0R2_FB15 CAN_F0R2_FB15_Msk /*!<Filter bit 15 */
  3476. #define CAN_F0R2_FB16_Pos (16U)
  3477. #define CAN_F0R2_FB16_Msk (0x1U << CAN_F0R2_FB16_Pos) /*!< 0x00010000 */
  3478. #define CAN_F0R2_FB16 CAN_F0R2_FB16_Msk /*!<Filter bit 16 */
  3479. #define CAN_F0R2_FB17_Pos (17U)
  3480. #define CAN_F0R2_FB17_Msk (0x1U << CAN_F0R2_FB17_Pos) /*!< 0x00020000 */
  3481. #define CAN_F0R2_FB17 CAN_F0R2_FB17_Msk /*!<Filter bit 17 */
  3482. #define CAN_F0R2_FB18_Pos (18U)
  3483. #define CAN_F0R2_FB18_Msk (0x1U << CAN_F0R2_FB18_Pos) /*!< 0x00040000 */
  3484. #define CAN_F0R2_FB18 CAN_F0R2_FB18_Msk /*!<Filter bit 18 */
  3485. #define CAN_F0R2_FB19_Pos (19U)
  3486. #define CAN_F0R2_FB19_Msk (0x1U << CAN_F0R2_FB19_Pos) /*!< 0x00080000 */
  3487. #define CAN_F0R2_FB19 CAN_F0R2_FB19_Msk /*!<Filter bit 19 */
  3488. #define CAN_F0R2_FB20_Pos (20U)
  3489. #define CAN_F0R2_FB20_Msk (0x1U << CAN_F0R2_FB20_Pos) /*!< 0x00100000 */
  3490. #define CAN_F0R2_FB20 CAN_F0R2_FB20_Msk /*!<Filter bit 20 */
  3491. #define CAN_F0R2_FB21_Pos (21U)
  3492. #define CAN_F0R2_FB21_Msk (0x1U << CAN_F0R2_FB21_Pos) /*!< 0x00200000 */
  3493. #define CAN_F0R2_FB21 CAN_F0R2_FB21_Msk /*!<Filter bit 21 */
  3494. #define CAN_F0R2_FB22_Pos (22U)
  3495. #define CAN_F0R2_FB22_Msk (0x1U << CAN_F0R2_FB22_Pos) /*!< 0x00400000 */
  3496. #define CAN_F0R2_FB22 CAN_F0R2_FB22_Msk /*!<Filter bit 22 */
  3497. #define CAN_F0R2_FB23_Pos (23U)
  3498. #define CAN_F0R2_FB23_Msk (0x1U << CAN_F0R2_FB23_Pos) /*!< 0x00800000 */
  3499. #define CAN_F0R2_FB23 CAN_F0R2_FB23_Msk /*!<Filter bit 23 */
  3500. #define CAN_F0R2_FB24_Pos (24U)
  3501. #define CAN_F0R2_FB24_Msk (0x1U << CAN_F0R2_FB24_Pos) /*!< 0x01000000 */
  3502. #define CAN_F0R2_FB24 CAN_F0R2_FB24_Msk /*!<Filter bit 24 */
  3503. #define CAN_F0R2_FB25_Pos (25U)
  3504. #define CAN_F0R2_FB25_Msk (0x1U << CAN_F0R2_FB25_Pos) /*!< 0x02000000 */
  3505. #define CAN_F0R2_FB25 CAN_F0R2_FB25_Msk /*!<Filter bit 25 */
  3506. #define CAN_F0R2_FB26_Pos (26U)
  3507. #define CAN_F0R2_FB26_Msk (0x1U << CAN_F0R2_FB26_Pos) /*!< 0x04000000 */
  3508. #define CAN_F0R2_FB26 CAN_F0R2_FB26_Msk /*!<Filter bit 26 */
  3509. #define CAN_F0R2_FB27_Pos (27U)
  3510. #define CAN_F0R2_FB27_Msk (0x1U << CAN_F0R2_FB27_Pos) /*!< 0x08000000 */
  3511. #define CAN_F0R2_FB27 CAN_F0R2_FB27_Msk /*!<Filter bit 27 */
  3512. #define CAN_F0R2_FB28_Pos (28U)
  3513. #define CAN_F0R2_FB28_Msk (0x1U << CAN_F0R2_FB28_Pos) /*!< 0x10000000 */
  3514. #define CAN_F0R2_FB28 CAN_F0R2_FB28_Msk /*!<Filter bit 28 */
  3515. #define CAN_F0R2_FB29_Pos (29U)
  3516. #define CAN_F0R2_FB29_Msk (0x1U << CAN_F0R2_FB29_Pos) /*!< 0x20000000 */
  3517. #define CAN_F0R2_FB29 CAN_F0R2_FB29_Msk /*!<Filter bit 29 */
  3518. #define CAN_F0R2_FB30_Pos (30U)
  3519. #define CAN_F0R2_FB30_Msk (0x1U << CAN_F0R2_FB30_Pos) /*!< 0x40000000 */
  3520. #define CAN_F0R2_FB30 CAN_F0R2_FB30_Msk /*!<Filter bit 30 */
  3521. #define CAN_F0R2_FB31_Pos (31U)
  3522. #define CAN_F0R2_FB31_Msk (0x1U << CAN_F0R2_FB31_Pos) /*!< 0x80000000 */
  3523. #define CAN_F0R2_FB31 CAN_F0R2_FB31_Msk /*!<Filter bit 31 */
  3524. /******************* Bit definition for CAN_F1R2 register *******************/
  3525. #define CAN_F1R2_FB0_Pos (0U)
  3526. #define CAN_F1R2_FB0_Msk (0x1U << CAN_F1R2_FB0_Pos) /*!< 0x00000001 */
  3527. #define CAN_F1R2_FB0 CAN_F1R2_FB0_Msk /*!<Filter bit 0 */
  3528. #define CAN_F1R2_FB1_Pos (1U)
  3529. #define CAN_F1R2_FB1_Msk (0x1U << CAN_F1R2_FB1_Pos) /*!< 0x00000002 */
  3530. #define CAN_F1R2_FB1 CAN_F1R2_FB1_Msk /*!<Filter bit 1 */
  3531. #define CAN_F1R2_FB2_Pos (2U)
  3532. #define CAN_F1R2_FB2_Msk (0x1U << CAN_F1R2_FB2_Pos) /*!< 0x00000004 */
  3533. #define CAN_F1R2_FB2 CAN_F1R2_FB2_Msk /*!<Filter bit 2 */
  3534. #define CAN_F1R2_FB3_Pos (3U)
  3535. #define CAN_F1R2_FB3_Msk (0x1U << CAN_F1R2_FB3_Pos) /*!< 0x00000008 */
  3536. #define CAN_F1R2_FB3 CAN_F1R2_FB3_Msk /*!<Filter bit 3 */
  3537. #define CAN_F1R2_FB4_Pos (4U)
  3538. #define CAN_F1R2_FB4_Msk (0x1U << CAN_F1R2_FB4_Pos) /*!< 0x00000010 */
  3539. #define CAN_F1R2_FB4 CAN_F1R2_FB4_Msk /*!<Filter bit 4 */
  3540. #define CAN_F1R2_FB5_Pos (5U)
  3541. #define CAN_F1R2_FB5_Msk (0x1U << CAN_F1R2_FB5_Pos) /*!< 0x00000020 */
  3542. #define CAN_F1R2_FB5 CAN_F1R2_FB5_Msk /*!<Filter bit 5 */
  3543. #define CAN_F1R2_FB6_Pos (6U)
  3544. #define CAN_F1R2_FB6_Msk (0x1U << CAN_F1R2_FB6_Pos) /*!< 0x00000040 */
  3545. #define CAN_F1R2_FB6 CAN_F1R2_FB6_Msk /*!<Filter bit 6 */
  3546. #define CAN_F1R2_FB7_Pos (7U)
  3547. #define CAN_F1R2_FB7_Msk (0x1U << CAN_F1R2_FB7_Pos) /*!< 0x00000080 */
  3548. #define CAN_F1R2_FB7 CAN_F1R2_FB7_Msk /*!<Filter bit 7 */
  3549. #define CAN_F1R2_FB8_Pos (8U)
  3550. #define CAN_F1R2_FB8_Msk (0x1U << CAN_F1R2_FB8_Pos) /*!< 0x00000100 */
  3551. #define CAN_F1R2_FB8 CAN_F1R2_FB8_Msk /*!<Filter bit 8 */
  3552. #define CAN_F1R2_FB9_Pos (9U)
  3553. #define CAN_F1R2_FB9_Msk (0x1U << CAN_F1R2_FB9_Pos) /*!< 0x00000200 */
  3554. #define CAN_F1R2_FB9 CAN_F1R2_FB9_Msk /*!<Filter bit 9 */
  3555. #define CAN_F1R2_FB10_Pos (10U)
  3556. #define CAN_F1R2_FB10_Msk (0x1U << CAN_F1R2_FB10_Pos) /*!< 0x00000400 */
  3557. #define CAN_F1R2_FB10 CAN_F1R2_FB10_Msk /*!<Filter bit 10 */
  3558. #define CAN_F1R2_FB11_Pos (11U)
  3559. #define CAN_F1R2_FB11_Msk (0x1U << CAN_F1R2_FB11_Pos) /*!< 0x00000800 */
  3560. #define CAN_F1R2_FB11 CAN_F1R2_FB11_Msk /*!<Filter bit 11 */
  3561. #define CAN_F1R2_FB12_Pos (12U)
  3562. #define CAN_F1R2_FB12_Msk (0x1U << CAN_F1R2_FB12_Pos) /*!< 0x00001000 */
  3563. #define CAN_F1R2_FB12 CAN_F1R2_FB12_Msk /*!<Filter bit 12 */
  3564. #define CAN_F1R2_FB13_Pos (13U)
  3565. #define CAN_F1R2_FB13_Msk (0x1U << CAN_F1R2_FB13_Pos) /*!< 0x00002000 */
  3566. #define CAN_F1R2_FB13 CAN_F1R2_FB13_Msk /*!<Filter bit 13 */
  3567. #define CAN_F1R2_FB14_Pos (14U)
  3568. #define CAN_F1R2_FB14_Msk (0x1U << CAN_F1R2_FB14_Pos) /*!< 0x00004000 */
  3569. #define CAN_F1R2_FB14 CAN_F1R2_FB14_Msk /*!<Filter bit 14 */
  3570. #define CAN_F1R2_FB15_Pos (15U)
  3571. #define CAN_F1R2_FB15_Msk (0x1U << CAN_F1R2_FB15_Pos) /*!< 0x00008000 */
  3572. #define CAN_F1R2_FB15 CAN_F1R2_FB15_Msk /*!<Filter bit 15 */
  3573. #define CAN_F1R2_FB16_Pos (16U)
  3574. #define CAN_F1R2_FB16_Msk (0x1U << CAN_F1R2_FB16_Pos) /*!< 0x00010000 */
  3575. #define CAN_F1R2_FB16 CAN_F1R2_FB16_Msk /*!<Filter bit 16 */
  3576. #define CAN_F1R2_FB17_Pos (17U)
  3577. #define CAN_F1R2_FB17_Msk (0x1U << CAN_F1R2_FB17_Pos) /*!< 0x00020000 */
  3578. #define CAN_F1R2_FB17 CAN_F1R2_FB17_Msk /*!<Filter bit 17 */
  3579. #define CAN_F1R2_FB18_Pos (18U)
  3580. #define CAN_F1R2_FB18_Msk (0x1U << CAN_F1R2_FB18_Pos) /*!< 0x00040000 */
  3581. #define CAN_F1R2_FB18 CAN_F1R2_FB18_Msk /*!<Filter bit 18 */
  3582. #define CAN_F1R2_FB19_Pos (19U)
  3583. #define CAN_F1R2_FB19_Msk (0x1U << CAN_F1R2_FB19_Pos) /*!< 0x00080000 */
  3584. #define CAN_F1R2_FB19 CAN_F1R2_FB19_Msk /*!<Filter bit 19 */
  3585. #define CAN_F1R2_FB20_Pos (20U)
  3586. #define CAN_F1R2_FB20_Msk (0x1U << CAN_F1R2_FB20_Pos) /*!< 0x00100000 */
  3587. #define CAN_F1R2_FB20 CAN_F1R2_FB20_Msk /*!<Filter bit 20 */
  3588. #define CAN_F1R2_FB21_Pos (21U)
  3589. #define CAN_F1R2_FB21_Msk (0x1U << CAN_F1R2_FB21_Pos) /*!< 0x00200000 */
  3590. #define CAN_F1R2_FB21 CAN_F1R2_FB21_Msk /*!<Filter bit 21 */
  3591. #define CAN_F1R2_FB22_Pos (22U)
  3592. #define CAN_F1R2_FB22_Msk (0x1U << CAN_F1R2_FB22_Pos) /*!< 0x00400000 */
  3593. #define CAN_F1R2_FB22 CAN_F1R2_FB22_Msk /*!<Filter bit 22 */
  3594. #define CAN_F1R2_FB23_Pos (23U)
  3595. #define CAN_F1R2_FB23_Msk (0x1U << CAN_F1R2_FB23_Pos) /*!< 0x00800000 */
  3596. #define CAN_F1R2_FB23 CAN_F1R2_FB23_Msk /*!<Filter bit 23 */
  3597. #define CAN_F1R2_FB24_Pos (24U)
  3598. #define CAN_F1R2_FB24_Msk (0x1U << CAN_F1R2_FB24_Pos) /*!< 0x01000000 */
  3599. #define CAN_F1R2_FB24 CAN_F1R2_FB24_Msk /*!<Filter bit 24 */
  3600. #define CAN_F1R2_FB25_Pos (25U)
  3601. #define CAN_F1R2_FB25_Msk (0x1U << CAN_F1R2_FB25_Pos) /*!< 0x02000000 */
  3602. #define CAN_F1R2_FB25 CAN_F1R2_FB25_Msk /*!<Filter bit 25 */
  3603. #define CAN_F1R2_FB26_Pos (26U)
  3604. #define CAN_F1R2_FB26_Msk (0x1U << CAN_F1R2_FB26_Pos) /*!< 0x04000000 */
  3605. #define CAN_F1R2_FB26 CAN_F1R2_FB26_Msk /*!<Filter bit 26 */
  3606. #define CAN_F1R2_FB27_Pos (27U)
  3607. #define CAN_F1R2_FB27_Msk (0x1U << CAN_F1R2_FB27_Pos) /*!< 0x08000000 */
  3608. #define CAN_F1R2_FB27 CAN_F1R2_FB27_Msk /*!<Filter bit 27 */
  3609. #define CAN_F1R2_FB28_Pos (28U)
  3610. #define CAN_F1R2_FB28_Msk (0x1U << CAN_F1R2_FB28_Pos) /*!< 0x10000000 */
  3611. #define CAN_F1R2_FB28 CAN_F1R2_FB28_Msk /*!<Filter bit 28 */
  3612. #define CAN_F1R2_FB29_Pos (29U)
  3613. #define CAN_F1R2_FB29_Msk (0x1U << CAN_F1R2_FB29_Pos) /*!< 0x20000000 */
  3614. #define CAN_F1R2_FB29 CAN_F1R2_FB29_Msk /*!<Filter bit 29 */
  3615. #define CAN_F1R2_FB30_Pos (30U)
  3616. #define CAN_F1R2_FB30_Msk (0x1U << CAN_F1R2_FB30_Pos) /*!< 0x40000000 */
  3617. #define CAN_F1R2_FB30 CAN_F1R2_FB30_Msk /*!<Filter bit 30 */
  3618. #define CAN_F1R2_FB31_Pos (31U)
  3619. #define CAN_F1R2_FB31_Msk (0x1U << CAN_F1R2_FB31_Pos) /*!< 0x80000000 */
  3620. #define CAN_F1R2_FB31 CAN_F1R2_FB31_Msk /*!<Filter bit 31 */
  3621. /******************* Bit definition for CAN_F2R2 register *******************/
  3622. #define CAN_F2R2_FB0_Pos (0U)
  3623. #define CAN_F2R2_FB0_Msk (0x1U << CAN_F2R2_FB0_Pos) /*!< 0x00000001 */
  3624. #define CAN_F2R2_FB0 CAN_F2R2_FB0_Msk /*!<Filter bit 0 */
  3625. #define CAN_F2R2_FB1_Pos (1U)
  3626. #define CAN_F2R2_FB1_Msk (0x1U << CAN_F2R2_FB1_Pos) /*!< 0x00000002 */
  3627. #define CAN_F2R2_FB1 CAN_F2R2_FB1_Msk /*!<Filter bit 1 */
  3628. #define CAN_F2R2_FB2_Pos (2U)
  3629. #define CAN_F2R2_FB2_Msk (0x1U << CAN_F2R2_FB2_Pos) /*!< 0x00000004 */
  3630. #define CAN_F2R2_FB2 CAN_F2R2_FB2_Msk /*!<Filter bit 2 */
  3631. #define CAN_F2R2_FB3_Pos (3U)
  3632. #define CAN_F2R2_FB3_Msk (0x1U << CAN_F2R2_FB3_Pos) /*!< 0x00000008 */
  3633. #define CAN_F2R2_FB3 CAN_F2R2_FB3_Msk /*!<Filter bit 3 */
  3634. #define CAN_F2R2_FB4_Pos (4U)
  3635. #define CAN_F2R2_FB4_Msk (0x1U << CAN_F2R2_FB4_Pos) /*!< 0x00000010 */
  3636. #define CAN_F2R2_FB4 CAN_F2R2_FB4_Msk /*!<Filter bit 4 */
  3637. #define CAN_F2R2_FB5_Pos (5U)
  3638. #define CAN_F2R2_FB5_Msk (0x1U << CAN_F2R2_FB5_Pos) /*!< 0x00000020 */
  3639. #define CAN_F2R2_FB5 CAN_F2R2_FB5_Msk /*!<Filter bit 5 */
  3640. #define CAN_F2R2_FB6_Pos (6U)
  3641. #define CAN_F2R2_FB6_Msk (0x1U << CAN_F2R2_FB6_Pos) /*!< 0x00000040 */
  3642. #define CAN_F2R2_FB6 CAN_F2R2_FB6_Msk /*!<Filter bit 6 */
  3643. #define CAN_F2R2_FB7_Pos (7U)
  3644. #define CAN_F2R2_FB7_Msk (0x1U << CAN_F2R2_FB7_Pos) /*!< 0x00000080 */
  3645. #define CAN_F2R2_FB7 CAN_F2R2_FB7_Msk /*!<Filter bit 7 */
  3646. #define CAN_F2R2_FB8_Pos (8U)
  3647. #define CAN_F2R2_FB8_Msk (0x1U << CAN_F2R2_FB8_Pos) /*!< 0x00000100 */
  3648. #define CAN_F2R2_FB8 CAN_F2R2_FB8_Msk /*!<Filter bit 8 */
  3649. #define CAN_F2R2_FB9_Pos (9U)
  3650. #define CAN_F2R2_FB9_Msk (0x1U << CAN_F2R2_FB9_Pos) /*!< 0x00000200 */
  3651. #define CAN_F2R2_FB9 CAN_F2R2_FB9_Msk /*!<Filter bit 9 */
  3652. #define CAN_F2R2_FB10_Pos (10U)
  3653. #define CAN_F2R2_FB10_Msk (0x1U << CAN_F2R2_FB10_Pos) /*!< 0x00000400 */
  3654. #define CAN_F2R2_FB10 CAN_F2R2_FB10_Msk /*!<Filter bit 10 */
  3655. #define CAN_F2R2_FB11_Pos (11U)
  3656. #define CAN_F2R2_FB11_Msk (0x1U << CAN_F2R2_FB11_Pos) /*!< 0x00000800 */
  3657. #define CAN_F2R2_FB11 CAN_F2R2_FB11_Msk /*!<Filter bit 11 */
  3658. #define CAN_F2R2_FB12_Pos (12U)
  3659. #define CAN_F2R2_FB12_Msk (0x1U << CAN_F2R2_FB12_Pos) /*!< 0x00001000 */
  3660. #define CAN_F2R2_FB12 CAN_F2R2_FB12_Msk /*!<Filter bit 12 */
  3661. #define CAN_F2R2_FB13_Pos (13U)
  3662. #define CAN_F2R2_FB13_Msk (0x1U << CAN_F2R2_FB13_Pos) /*!< 0x00002000 */
  3663. #define CAN_F2R2_FB13 CAN_F2R2_FB13_Msk /*!<Filter bit 13 */
  3664. #define CAN_F2R2_FB14_Pos (14U)
  3665. #define CAN_F2R2_FB14_Msk (0x1U << CAN_F2R2_FB14_Pos) /*!< 0x00004000 */
  3666. #define CAN_F2R2_FB14 CAN_F2R2_FB14_Msk /*!<Filter bit 14 */
  3667. #define CAN_F2R2_FB15_Pos (15U)
  3668. #define CAN_F2R2_FB15_Msk (0x1U << CAN_F2R2_FB15_Pos) /*!< 0x00008000 */
  3669. #define CAN_F2R2_FB15 CAN_F2R2_FB15_Msk /*!<Filter bit 15 */
  3670. #define CAN_F2R2_FB16_Pos (16U)
  3671. #define CAN_F2R2_FB16_Msk (0x1U << CAN_F2R2_FB16_Pos) /*!< 0x00010000 */
  3672. #define CAN_F2R2_FB16 CAN_F2R2_FB16_Msk /*!<Filter bit 16 */
  3673. #define CAN_F2R2_FB17_Pos (17U)
  3674. #define CAN_F2R2_FB17_Msk (0x1U << CAN_F2R2_FB17_Pos) /*!< 0x00020000 */
  3675. #define CAN_F2R2_FB17 CAN_F2R2_FB17_Msk /*!<Filter bit 17 */
  3676. #define CAN_F2R2_FB18_Pos (18U)
  3677. #define CAN_F2R2_FB18_Msk (0x1U << CAN_F2R2_FB18_Pos) /*!< 0x00040000 */
  3678. #define CAN_F2R2_FB18 CAN_F2R2_FB18_Msk /*!<Filter bit 18 */
  3679. #define CAN_F2R2_FB19_Pos (19U)
  3680. #define CAN_F2R2_FB19_Msk (0x1U << CAN_F2R2_FB19_Pos) /*!< 0x00080000 */
  3681. #define CAN_F2R2_FB19 CAN_F2R2_FB19_Msk /*!<Filter bit 19 */
  3682. #define CAN_F2R2_FB20_Pos (20U)
  3683. #define CAN_F2R2_FB20_Msk (0x1U << CAN_F2R2_FB20_Pos) /*!< 0x00100000 */
  3684. #define CAN_F2R2_FB20 CAN_F2R2_FB20_Msk /*!<Filter bit 20 */
  3685. #define CAN_F2R2_FB21_Pos (21U)
  3686. #define CAN_F2R2_FB21_Msk (0x1U << CAN_F2R2_FB21_Pos) /*!< 0x00200000 */
  3687. #define CAN_F2R2_FB21 CAN_F2R2_FB21_Msk /*!<Filter bit 21 */
  3688. #define CAN_F2R2_FB22_Pos (22U)
  3689. #define CAN_F2R2_FB22_Msk (0x1U << CAN_F2R2_FB22_Pos) /*!< 0x00400000 */
  3690. #define CAN_F2R2_FB22 CAN_F2R2_FB22_Msk /*!<Filter bit 22 */
  3691. #define CAN_F2R2_FB23_Pos (23U)
  3692. #define CAN_F2R2_FB23_Msk (0x1U << CAN_F2R2_FB23_Pos) /*!< 0x00800000 */
  3693. #define CAN_F2R2_FB23 CAN_F2R2_FB23_Msk /*!<Filter bit 23 */
  3694. #define CAN_F2R2_FB24_Pos (24U)
  3695. #define CAN_F2R2_FB24_Msk (0x1U << CAN_F2R2_FB24_Pos) /*!< 0x01000000 */
  3696. #define CAN_F2R2_FB24 CAN_F2R2_FB24_Msk /*!<Filter bit 24 */
  3697. #define CAN_F2R2_FB25_Pos (25U)
  3698. #define CAN_F2R2_FB25_Msk (0x1U << CAN_F2R2_FB25_Pos) /*!< 0x02000000 */
  3699. #define CAN_F2R2_FB25 CAN_F2R2_FB25_Msk /*!<Filter bit 25 */
  3700. #define CAN_F2R2_FB26_Pos (26U)
  3701. #define CAN_F2R2_FB26_Msk (0x1U << CAN_F2R2_FB26_Pos) /*!< 0x04000000 */
  3702. #define CAN_F2R2_FB26 CAN_F2R2_FB26_Msk /*!<Filter bit 26 */
  3703. #define CAN_F2R2_FB27_Pos (27U)
  3704. #define CAN_F2R2_FB27_Msk (0x1U << CAN_F2R2_FB27_Pos) /*!< 0x08000000 */
  3705. #define CAN_F2R2_FB27 CAN_F2R2_FB27_Msk /*!<Filter bit 27 */
  3706. #define CAN_F2R2_FB28_Pos (28U)
  3707. #define CAN_F2R2_FB28_Msk (0x1U << CAN_F2R2_FB28_Pos) /*!< 0x10000000 */
  3708. #define CAN_F2R2_FB28 CAN_F2R2_FB28_Msk /*!<Filter bit 28 */
  3709. #define CAN_F2R2_FB29_Pos (29U)
  3710. #define CAN_F2R2_FB29_Msk (0x1U << CAN_F2R2_FB29_Pos) /*!< 0x20000000 */
  3711. #define CAN_F2R2_FB29 CAN_F2R2_FB29_Msk /*!<Filter bit 29 */
  3712. #define CAN_F2R2_FB30_Pos (30U)
  3713. #define CAN_F2R2_FB30_Msk (0x1U << CAN_F2R2_FB30_Pos) /*!< 0x40000000 */
  3714. #define CAN_F2R2_FB30 CAN_F2R2_FB30_Msk /*!<Filter bit 30 */
  3715. #define CAN_F2R2_FB31_Pos (31U)
  3716. #define CAN_F2R2_FB31_Msk (0x1U << CAN_F2R2_FB31_Pos) /*!< 0x80000000 */
  3717. #define CAN_F2R2_FB31 CAN_F2R2_FB31_Msk /*!<Filter bit 31 */
  3718. /******************* Bit definition for CAN_F3R2 register *******************/
  3719. #define CAN_F3R2_FB0_Pos (0U)
  3720. #define CAN_F3R2_FB0_Msk (0x1U << CAN_F3R2_FB0_Pos) /*!< 0x00000001 */
  3721. #define CAN_F3R2_FB0 CAN_F3R2_FB0_Msk /*!<Filter bit 0 */
  3722. #define CAN_F3R2_FB1_Pos (1U)
  3723. #define CAN_F3R2_FB1_Msk (0x1U << CAN_F3R2_FB1_Pos) /*!< 0x00000002 */
  3724. #define CAN_F3R2_FB1 CAN_F3R2_FB1_Msk /*!<Filter bit 1 */
  3725. #define CAN_F3R2_FB2_Pos (2U)
  3726. #define CAN_F3R2_FB2_Msk (0x1U << CAN_F3R2_FB2_Pos) /*!< 0x00000004 */
  3727. #define CAN_F3R2_FB2 CAN_F3R2_FB2_Msk /*!<Filter bit 2 */
  3728. #define CAN_F3R2_FB3_Pos (3U)
  3729. #define CAN_F3R2_FB3_Msk (0x1U << CAN_F3R2_FB3_Pos) /*!< 0x00000008 */
  3730. #define CAN_F3R2_FB3 CAN_F3R2_FB3_Msk /*!<Filter bit 3 */
  3731. #define CAN_F3R2_FB4_Pos (4U)
  3732. #define CAN_F3R2_FB4_Msk (0x1U << CAN_F3R2_FB4_Pos) /*!< 0x00000010 */
  3733. #define CAN_F3R2_FB4 CAN_F3R2_FB4_Msk /*!<Filter bit 4 */
  3734. #define CAN_F3R2_FB5_Pos (5U)
  3735. #define CAN_F3R2_FB5_Msk (0x1U << CAN_F3R2_FB5_Pos) /*!< 0x00000020 */
  3736. #define CAN_F3R2_FB5 CAN_F3R2_FB5_Msk /*!<Filter bit 5 */
  3737. #define CAN_F3R2_FB6_Pos (6U)
  3738. #define CAN_F3R2_FB6_Msk (0x1U << CAN_F3R2_FB6_Pos) /*!< 0x00000040 */
  3739. #define CAN_F3R2_FB6 CAN_F3R2_FB6_Msk /*!<Filter bit 6 */
  3740. #define CAN_F3R2_FB7_Pos (7U)
  3741. #define CAN_F3R2_FB7_Msk (0x1U << CAN_F3R2_FB7_Pos) /*!< 0x00000080 */
  3742. #define CAN_F3R2_FB7 CAN_F3R2_FB7_Msk /*!<Filter bit 7 */
  3743. #define CAN_F3R2_FB8_Pos (8U)
  3744. #define CAN_F3R2_FB8_Msk (0x1U << CAN_F3R2_FB8_Pos) /*!< 0x00000100 */
  3745. #define CAN_F3R2_FB8 CAN_F3R2_FB8_Msk /*!<Filter bit 8 */
  3746. #define CAN_F3R2_FB9_Pos (9U)
  3747. #define CAN_F3R2_FB9_Msk (0x1U << CAN_F3R2_FB9_Pos) /*!< 0x00000200 */
  3748. #define CAN_F3R2_FB9 CAN_F3R2_FB9_Msk /*!<Filter bit 9 */
  3749. #define CAN_F3R2_FB10_Pos (10U)
  3750. #define CAN_F3R2_FB10_Msk (0x1U << CAN_F3R2_FB10_Pos) /*!< 0x00000400 */
  3751. #define CAN_F3R2_FB10 CAN_F3R2_FB10_Msk /*!<Filter bit 10 */
  3752. #define CAN_F3R2_FB11_Pos (11U)
  3753. #define CAN_F3R2_FB11_Msk (0x1U << CAN_F3R2_FB11_Pos) /*!< 0x00000800 */
  3754. #define CAN_F3R2_FB11 CAN_F3R2_FB11_Msk /*!<Filter bit 11 */
  3755. #define CAN_F3R2_FB12_Pos (12U)
  3756. #define CAN_F3R2_FB12_Msk (0x1U << CAN_F3R2_FB12_Pos) /*!< 0x00001000 */
  3757. #define CAN_F3R2_FB12 CAN_F3R2_FB12_Msk /*!<Filter bit 12 */
  3758. #define CAN_F3R2_FB13_Pos (13U)
  3759. #define CAN_F3R2_FB13_Msk (0x1U << CAN_F3R2_FB13_Pos) /*!< 0x00002000 */
  3760. #define CAN_F3R2_FB13 CAN_F3R2_FB13_Msk /*!<Filter bit 13 */
  3761. #define CAN_F3R2_FB14_Pos (14U)
  3762. #define CAN_F3R2_FB14_Msk (0x1U << CAN_F3R2_FB14_Pos) /*!< 0x00004000 */
  3763. #define CAN_F3R2_FB14 CAN_F3R2_FB14_Msk /*!<Filter bit 14 */
  3764. #define CAN_F3R2_FB15_Pos (15U)
  3765. #define CAN_F3R2_FB15_Msk (0x1U << CAN_F3R2_FB15_Pos) /*!< 0x00008000 */
  3766. #define CAN_F3R2_FB15 CAN_F3R2_FB15_Msk /*!<Filter bit 15 */
  3767. #define CAN_F3R2_FB16_Pos (16U)
  3768. #define CAN_F3R2_FB16_Msk (0x1U << CAN_F3R2_FB16_Pos) /*!< 0x00010000 */
  3769. #define CAN_F3R2_FB16 CAN_F3R2_FB16_Msk /*!<Filter bit 16 */
  3770. #define CAN_F3R2_FB17_Pos (17U)
  3771. #define CAN_F3R2_FB17_Msk (0x1U << CAN_F3R2_FB17_Pos) /*!< 0x00020000 */
  3772. #define CAN_F3R2_FB17 CAN_F3R2_FB17_Msk /*!<Filter bit 17 */
  3773. #define CAN_F3R2_FB18_Pos (18U)
  3774. #define CAN_F3R2_FB18_Msk (0x1U << CAN_F3R2_FB18_Pos) /*!< 0x00040000 */
  3775. #define CAN_F3R2_FB18 CAN_F3R2_FB18_Msk /*!<Filter bit 18 */
  3776. #define CAN_F3R2_FB19_Pos (19U)
  3777. #define CAN_F3R2_FB19_Msk (0x1U << CAN_F3R2_FB19_Pos) /*!< 0x00080000 */
  3778. #define CAN_F3R2_FB19 CAN_F3R2_FB19_Msk /*!<Filter bit 19 */
  3779. #define CAN_F3R2_FB20_Pos (20U)
  3780. #define CAN_F3R2_FB20_Msk (0x1U << CAN_F3R2_FB20_Pos) /*!< 0x00100000 */
  3781. #define CAN_F3R2_FB20 CAN_F3R2_FB20_Msk /*!<Filter bit 20 */
  3782. #define CAN_F3R2_FB21_Pos (21U)
  3783. #define CAN_F3R2_FB21_Msk (0x1U << CAN_F3R2_FB21_Pos) /*!< 0x00200000 */
  3784. #define CAN_F3R2_FB21 CAN_F3R2_FB21_Msk /*!<Filter bit 21 */
  3785. #define CAN_F3R2_FB22_Pos (22U)
  3786. #define CAN_F3R2_FB22_Msk (0x1U << CAN_F3R2_FB22_Pos) /*!< 0x00400000 */
  3787. #define CAN_F3R2_FB22 CAN_F3R2_FB22_Msk /*!<Filter bit 22 */
  3788. #define CAN_F3R2_FB23_Pos (23U)
  3789. #define CAN_F3R2_FB23_Msk (0x1U << CAN_F3R2_FB23_Pos) /*!< 0x00800000 */
  3790. #define CAN_F3R2_FB23 CAN_F3R2_FB23_Msk /*!<Filter bit 23 */
  3791. #define CAN_F3R2_FB24_Pos (24U)
  3792. #define CAN_F3R2_FB24_Msk (0x1U << CAN_F3R2_FB24_Pos) /*!< 0x01000000 */
  3793. #define CAN_F3R2_FB24 CAN_F3R2_FB24_Msk /*!<Filter bit 24 */
  3794. #define CAN_F3R2_FB25_Pos (25U)
  3795. #define CAN_F3R2_FB25_Msk (0x1U << CAN_F3R2_FB25_Pos) /*!< 0x02000000 */
  3796. #define CAN_F3R2_FB25 CAN_F3R2_FB25_Msk /*!<Filter bit 25 */
  3797. #define CAN_F3R2_FB26_Pos (26U)
  3798. #define CAN_F3R2_FB26_Msk (0x1U << CAN_F3R2_FB26_Pos) /*!< 0x04000000 */
  3799. #define CAN_F3R2_FB26 CAN_F3R2_FB26_Msk /*!<Filter bit 26 */
  3800. #define CAN_F3R2_FB27_Pos (27U)
  3801. #define CAN_F3R2_FB27_Msk (0x1U << CAN_F3R2_FB27_Pos) /*!< 0x08000000 */
  3802. #define CAN_F3R2_FB27 CAN_F3R2_FB27_Msk /*!<Filter bit 27 */
  3803. #define CAN_F3R2_FB28_Pos (28U)
  3804. #define CAN_F3R2_FB28_Msk (0x1U << CAN_F3R2_FB28_Pos) /*!< 0x10000000 */
  3805. #define CAN_F3R2_FB28 CAN_F3R2_FB28_Msk /*!<Filter bit 28 */
  3806. #define CAN_F3R2_FB29_Pos (29U)
  3807. #define CAN_F3R2_FB29_Msk (0x1U << CAN_F3R2_FB29_Pos) /*!< 0x20000000 */
  3808. #define CAN_F3R2_FB29 CAN_F3R2_FB29_Msk /*!<Filter bit 29 */
  3809. #define CAN_F3R2_FB30_Pos (30U)
  3810. #define CAN_F3R2_FB30_Msk (0x1U << CAN_F3R2_FB30_Pos) /*!< 0x40000000 */
  3811. #define CAN_F3R2_FB30 CAN_F3R2_FB30_Msk /*!<Filter bit 30 */
  3812. #define CAN_F3R2_FB31_Pos (31U)
  3813. #define CAN_F3R2_FB31_Msk (0x1U << CAN_F3R2_FB31_Pos) /*!< 0x80000000 */
  3814. #define CAN_F3R2_FB31 CAN_F3R2_FB31_Msk /*!<Filter bit 31 */
  3815. /******************* Bit definition for CAN_F4R2 register *******************/
  3816. #define CAN_F4R2_FB0_Pos (0U)
  3817. #define CAN_F4R2_FB0_Msk (0x1U << CAN_F4R2_FB0_Pos) /*!< 0x00000001 */
  3818. #define CAN_F4R2_FB0 CAN_F4R2_FB0_Msk /*!<Filter bit 0 */
  3819. #define CAN_F4R2_FB1_Pos (1U)
  3820. #define CAN_F4R2_FB1_Msk (0x1U << CAN_F4R2_FB1_Pos) /*!< 0x00000002 */
  3821. #define CAN_F4R2_FB1 CAN_F4R2_FB1_Msk /*!<Filter bit 1 */
  3822. #define CAN_F4R2_FB2_Pos (2U)
  3823. #define CAN_F4R2_FB2_Msk (0x1U << CAN_F4R2_FB2_Pos) /*!< 0x00000004 */
  3824. #define CAN_F4R2_FB2 CAN_F4R2_FB2_Msk /*!<Filter bit 2 */
  3825. #define CAN_F4R2_FB3_Pos (3U)
  3826. #define CAN_F4R2_FB3_Msk (0x1U << CAN_F4R2_FB3_Pos) /*!< 0x00000008 */
  3827. #define CAN_F4R2_FB3 CAN_F4R2_FB3_Msk /*!<Filter bit 3 */
  3828. #define CAN_F4R2_FB4_Pos (4U)
  3829. #define CAN_F4R2_FB4_Msk (0x1U << CAN_F4R2_FB4_Pos) /*!< 0x00000010 */
  3830. #define CAN_F4R2_FB4 CAN_F4R2_FB4_Msk /*!<Filter bit 4 */
  3831. #define CAN_F4R2_FB5_Pos (5U)
  3832. #define CAN_F4R2_FB5_Msk (0x1U << CAN_F4R2_FB5_Pos) /*!< 0x00000020 */
  3833. #define CAN_F4R2_FB5 CAN_F4R2_FB5_Msk /*!<Filter bit 5 */
  3834. #define CAN_F4R2_FB6_Pos (6U)
  3835. #define CAN_F4R2_FB6_Msk (0x1U << CAN_F4R2_FB6_Pos) /*!< 0x00000040 */
  3836. #define CAN_F4R2_FB6 CAN_F4R2_FB6_Msk /*!<Filter bit 6 */
  3837. #define CAN_F4R2_FB7_Pos (7U)
  3838. #define CAN_F4R2_FB7_Msk (0x1U << CAN_F4R2_FB7_Pos) /*!< 0x00000080 */
  3839. #define CAN_F4R2_FB7 CAN_F4R2_FB7_Msk /*!<Filter bit 7 */
  3840. #define CAN_F4R2_FB8_Pos (8U)
  3841. #define CAN_F4R2_FB8_Msk (0x1U << CAN_F4R2_FB8_Pos) /*!< 0x00000100 */
  3842. #define CAN_F4R2_FB8 CAN_F4R2_FB8_Msk /*!<Filter bit 8 */
  3843. #define CAN_F4R2_FB9_Pos (9U)
  3844. #define CAN_F4R2_FB9_Msk (0x1U << CAN_F4R2_FB9_Pos) /*!< 0x00000200 */
  3845. #define CAN_F4R2_FB9 CAN_F4R2_FB9_Msk /*!<Filter bit 9 */
  3846. #define CAN_F4R2_FB10_Pos (10U)
  3847. #define CAN_F4R2_FB10_Msk (0x1U << CAN_F4R2_FB10_Pos) /*!< 0x00000400 */
  3848. #define CAN_F4R2_FB10 CAN_F4R2_FB10_Msk /*!<Filter bit 10 */
  3849. #define CAN_F4R2_FB11_Pos (11U)
  3850. #define CAN_F4R2_FB11_Msk (0x1U << CAN_F4R2_FB11_Pos) /*!< 0x00000800 */
  3851. #define CAN_F4R2_FB11 CAN_F4R2_FB11_Msk /*!<Filter bit 11 */
  3852. #define CAN_F4R2_FB12_Pos (12U)
  3853. #define CAN_F4R2_FB12_Msk (0x1U << CAN_F4R2_FB12_Pos) /*!< 0x00001000 */
  3854. #define CAN_F4R2_FB12 CAN_F4R2_FB12_Msk /*!<Filter bit 12 */
  3855. #define CAN_F4R2_FB13_Pos (13U)
  3856. #define CAN_F4R2_FB13_Msk (0x1U << CAN_F4R2_FB13_Pos) /*!< 0x00002000 */
  3857. #define CAN_F4R2_FB13 CAN_F4R2_FB13_Msk /*!<Filter bit 13 */
  3858. #define CAN_F4R2_FB14_Pos (14U)
  3859. #define CAN_F4R2_FB14_Msk (0x1U << CAN_F4R2_FB14_Pos) /*!< 0x00004000 */
  3860. #define CAN_F4R2_FB14 CAN_F4R2_FB14_Msk /*!<Filter bit 14 */
  3861. #define CAN_F4R2_FB15_Pos (15U)
  3862. #define CAN_F4R2_FB15_Msk (0x1U << CAN_F4R2_FB15_Pos) /*!< 0x00008000 */
  3863. #define CAN_F4R2_FB15 CAN_F4R2_FB15_Msk /*!<Filter bit 15 */
  3864. #define CAN_F4R2_FB16_Pos (16U)
  3865. #define CAN_F4R2_FB16_Msk (0x1U << CAN_F4R2_FB16_Pos) /*!< 0x00010000 */
  3866. #define CAN_F4R2_FB16 CAN_F4R2_FB16_Msk /*!<Filter bit 16 */
  3867. #define CAN_F4R2_FB17_Pos (17U)
  3868. #define CAN_F4R2_FB17_Msk (0x1U << CAN_F4R2_FB17_Pos) /*!< 0x00020000 */
  3869. #define CAN_F4R2_FB17 CAN_F4R2_FB17_Msk /*!<Filter bit 17 */
  3870. #define CAN_F4R2_FB18_Pos (18U)
  3871. #define CAN_F4R2_FB18_Msk (0x1U << CAN_F4R2_FB18_Pos) /*!< 0x00040000 */
  3872. #define CAN_F4R2_FB18 CAN_F4R2_FB18_Msk /*!<Filter bit 18 */
  3873. #define CAN_F4R2_FB19_Pos (19U)
  3874. #define CAN_F4R2_FB19_Msk (0x1U << CAN_F4R2_FB19_Pos) /*!< 0x00080000 */
  3875. #define CAN_F4R2_FB19 CAN_F4R2_FB19_Msk /*!<Filter bit 19 */
  3876. #define CAN_F4R2_FB20_Pos (20U)
  3877. #define CAN_F4R2_FB20_Msk (0x1U << CAN_F4R2_FB20_Pos) /*!< 0x00100000 */
  3878. #define CAN_F4R2_FB20 CAN_F4R2_FB20_Msk /*!<Filter bit 20 */
  3879. #define CAN_F4R2_FB21_Pos (21U)
  3880. #define CAN_F4R2_FB21_Msk (0x1U << CAN_F4R2_FB21_Pos) /*!< 0x00200000 */
  3881. #define CAN_F4R2_FB21 CAN_F4R2_FB21_Msk /*!<Filter bit 21 */
  3882. #define CAN_F4R2_FB22_Pos (22U)
  3883. #define CAN_F4R2_FB22_Msk (0x1U << CAN_F4R2_FB22_Pos) /*!< 0x00400000 */
  3884. #define CAN_F4R2_FB22 CAN_F4R2_FB22_Msk /*!<Filter bit 22 */
  3885. #define CAN_F4R2_FB23_Pos (23U)
  3886. #define CAN_F4R2_FB23_Msk (0x1U << CAN_F4R2_FB23_Pos) /*!< 0x00800000 */
  3887. #define CAN_F4R2_FB23 CAN_F4R2_FB23_Msk /*!<Filter bit 23 */
  3888. #define CAN_F4R2_FB24_Pos (24U)
  3889. #define CAN_F4R2_FB24_Msk (0x1U << CAN_F4R2_FB24_Pos) /*!< 0x01000000 */
  3890. #define CAN_F4R2_FB24 CAN_F4R2_FB24_Msk /*!<Filter bit 24 */
  3891. #define CAN_F4R2_FB25_Pos (25U)
  3892. #define CAN_F4R2_FB25_Msk (0x1U << CAN_F4R2_FB25_Pos) /*!< 0x02000000 */
  3893. #define CAN_F4R2_FB25 CAN_F4R2_FB25_Msk /*!<Filter bit 25 */
  3894. #define CAN_F4R2_FB26_Pos (26U)
  3895. #define CAN_F4R2_FB26_Msk (0x1U << CAN_F4R2_FB26_Pos) /*!< 0x04000000 */
  3896. #define CAN_F4R2_FB26 CAN_F4R2_FB26_Msk /*!<Filter bit 26 */
  3897. #define CAN_F4R2_FB27_Pos (27U)
  3898. #define CAN_F4R2_FB27_Msk (0x1U << CAN_F4R2_FB27_Pos) /*!< 0x08000000 */
  3899. #define CAN_F4R2_FB27 CAN_F4R2_FB27_Msk /*!<Filter bit 27 */
  3900. #define CAN_F4R2_FB28_Pos (28U)
  3901. #define CAN_F4R2_FB28_Msk (0x1U << CAN_F4R2_FB28_Pos) /*!< 0x10000000 */
  3902. #define CAN_F4R2_FB28 CAN_F4R2_FB28_Msk /*!<Filter bit 28 */
  3903. #define CAN_F4R2_FB29_Pos (29U)
  3904. #define CAN_F4R2_FB29_Msk (0x1U << CAN_F4R2_FB29_Pos) /*!< 0x20000000 */
  3905. #define CAN_F4R2_FB29 CAN_F4R2_FB29_Msk /*!<Filter bit 29 */
  3906. #define CAN_F4R2_FB30_Pos (30U)
  3907. #define CAN_F4R2_FB30_Msk (0x1U << CAN_F4R2_FB30_Pos) /*!< 0x40000000 */
  3908. #define CAN_F4R2_FB30 CAN_F4R2_FB30_Msk /*!<Filter bit 30 */
  3909. #define CAN_F4R2_FB31_Pos (31U)
  3910. #define CAN_F4R2_FB31_Msk (0x1U << CAN_F4R2_FB31_Pos) /*!< 0x80000000 */
  3911. #define CAN_F4R2_FB31 CAN_F4R2_FB31_Msk /*!<Filter bit 31 */
  3912. /******************* Bit definition for CAN_F5R2 register *******************/
  3913. #define CAN_F5R2_FB0_Pos (0U)
  3914. #define CAN_F5R2_FB0_Msk (0x1U << CAN_F5R2_FB0_Pos) /*!< 0x00000001 */
  3915. #define CAN_F5R2_FB0 CAN_F5R2_FB0_Msk /*!<Filter bit 0 */
  3916. #define CAN_F5R2_FB1_Pos (1U)
  3917. #define CAN_F5R2_FB1_Msk (0x1U << CAN_F5R2_FB1_Pos) /*!< 0x00000002 */
  3918. #define CAN_F5R2_FB1 CAN_F5R2_FB1_Msk /*!<Filter bit 1 */
  3919. #define CAN_F5R2_FB2_Pos (2U)
  3920. #define CAN_F5R2_FB2_Msk (0x1U << CAN_F5R2_FB2_Pos) /*!< 0x00000004 */
  3921. #define CAN_F5R2_FB2 CAN_F5R2_FB2_Msk /*!<Filter bit 2 */
  3922. #define CAN_F5R2_FB3_Pos (3U)
  3923. #define CAN_F5R2_FB3_Msk (0x1U << CAN_F5R2_FB3_Pos) /*!< 0x00000008 */
  3924. #define CAN_F5R2_FB3 CAN_F5R2_FB3_Msk /*!<Filter bit 3 */
  3925. #define CAN_F5R2_FB4_Pos (4U)
  3926. #define CAN_F5R2_FB4_Msk (0x1U << CAN_F5R2_FB4_Pos) /*!< 0x00000010 */
  3927. #define CAN_F5R2_FB4 CAN_F5R2_FB4_Msk /*!<Filter bit 4 */
  3928. #define CAN_F5R2_FB5_Pos (5U)
  3929. #define CAN_F5R2_FB5_Msk (0x1U << CAN_F5R2_FB5_Pos) /*!< 0x00000020 */
  3930. #define CAN_F5R2_FB5 CAN_F5R2_FB5_Msk /*!<Filter bit 5 */
  3931. #define CAN_F5R2_FB6_Pos (6U)
  3932. #define CAN_F5R2_FB6_Msk (0x1U << CAN_F5R2_FB6_Pos) /*!< 0x00000040 */
  3933. #define CAN_F5R2_FB6 CAN_F5R2_FB6_Msk /*!<Filter bit 6 */
  3934. #define CAN_F5R2_FB7_Pos (7U)
  3935. #define CAN_F5R2_FB7_Msk (0x1U << CAN_F5R2_FB7_Pos) /*!< 0x00000080 */
  3936. #define CAN_F5R2_FB7 CAN_F5R2_FB7_Msk /*!<Filter bit 7 */
  3937. #define CAN_F5R2_FB8_Pos (8U)
  3938. #define CAN_F5R2_FB8_Msk (0x1U << CAN_F5R2_FB8_Pos) /*!< 0x00000100 */
  3939. #define CAN_F5R2_FB8 CAN_F5R2_FB8_Msk /*!<Filter bit 8 */
  3940. #define CAN_F5R2_FB9_Pos (9U)
  3941. #define CAN_F5R2_FB9_Msk (0x1U << CAN_F5R2_FB9_Pos) /*!< 0x00000200 */
  3942. #define CAN_F5R2_FB9 CAN_F5R2_FB9_Msk /*!<Filter bit 9 */
  3943. #define CAN_F5R2_FB10_Pos (10U)
  3944. #define CAN_F5R2_FB10_Msk (0x1U << CAN_F5R2_FB10_Pos) /*!< 0x00000400 */
  3945. #define CAN_F5R2_FB10 CAN_F5R2_FB10_Msk /*!<Filter bit 10 */
  3946. #define CAN_F5R2_FB11_Pos (11U)
  3947. #define CAN_F5R2_FB11_Msk (0x1U << CAN_F5R2_FB11_Pos) /*!< 0x00000800 */
  3948. #define CAN_F5R2_FB11 CAN_F5R2_FB11_Msk /*!<Filter bit 11 */
  3949. #define CAN_F5R2_FB12_Pos (12U)
  3950. #define CAN_F5R2_FB12_Msk (0x1U << CAN_F5R2_FB12_Pos) /*!< 0x00001000 */
  3951. #define CAN_F5R2_FB12 CAN_F5R2_FB12_Msk /*!<Filter bit 12 */
  3952. #define CAN_F5R2_FB13_Pos (13U)
  3953. #define CAN_F5R2_FB13_Msk (0x1U << CAN_F5R2_FB13_Pos) /*!< 0x00002000 */
  3954. #define CAN_F5R2_FB13 CAN_F5R2_FB13_Msk /*!<Filter bit 13 */
  3955. #define CAN_F5R2_FB14_Pos (14U)
  3956. #define CAN_F5R2_FB14_Msk (0x1U << CAN_F5R2_FB14_Pos) /*!< 0x00004000 */
  3957. #define CAN_F5R2_FB14 CAN_F5R2_FB14_Msk /*!<Filter bit 14 */
  3958. #define CAN_F5R2_FB15_Pos (15U)
  3959. #define CAN_F5R2_FB15_Msk (0x1U << CAN_F5R2_FB15_Pos) /*!< 0x00008000 */
  3960. #define CAN_F5R2_FB15 CAN_F5R2_FB15_Msk /*!<Filter bit 15 */
  3961. #define CAN_F5R2_FB16_Pos (16U)
  3962. #define CAN_F5R2_FB16_Msk (0x1U << CAN_F5R2_FB16_Pos) /*!< 0x00010000 */
  3963. #define CAN_F5R2_FB16 CAN_F5R2_FB16_Msk /*!<Filter bit 16 */
  3964. #define CAN_F5R2_FB17_Pos (17U)
  3965. #define CAN_F5R2_FB17_Msk (0x1U << CAN_F5R2_FB17_Pos) /*!< 0x00020000 */
  3966. #define CAN_F5R2_FB17 CAN_F5R2_FB17_Msk /*!<Filter bit 17 */
  3967. #define CAN_F5R2_FB18_Pos (18U)
  3968. #define CAN_F5R2_FB18_Msk (0x1U << CAN_F5R2_FB18_Pos) /*!< 0x00040000 */
  3969. #define CAN_F5R2_FB18 CAN_F5R2_FB18_Msk /*!<Filter bit 18 */
  3970. #define CAN_F5R2_FB19_Pos (19U)
  3971. #define CAN_F5R2_FB19_Msk (0x1U << CAN_F5R2_FB19_Pos) /*!< 0x00080000 */
  3972. #define CAN_F5R2_FB19 CAN_F5R2_FB19_Msk /*!<Filter bit 19 */
  3973. #define CAN_F5R2_FB20_Pos (20U)
  3974. #define CAN_F5R2_FB20_Msk (0x1U << CAN_F5R2_FB20_Pos) /*!< 0x00100000 */
  3975. #define CAN_F5R2_FB20 CAN_F5R2_FB20_Msk /*!<Filter bit 20 */
  3976. #define CAN_F5R2_FB21_Pos (21U)
  3977. #define CAN_F5R2_FB21_Msk (0x1U << CAN_F5R2_FB21_Pos) /*!< 0x00200000 */
  3978. #define CAN_F5R2_FB21 CAN_F5R2_FB21_Msk /*!<Filter bit 21 */
  3979. #define CAN_F5R2_FB22_Pos (22U)
  3980. #define CAN_F5R2_FB22_Msk (0x1U << CAN_F5R2_FB22_Pos) /*!< 0x00400000 */
  3981. #define CAN_F5R2_FB22 CAN_F5R2_FB22_Msk /*!<Filter bit 22 */
  3982. #define CAN_F5R2_FB23_Pos (23U)
  3983. #define CAN_F5R2_FB23_Msk (0x1U << CAN_F5R2_FB23_Pos) /*!< 0x00800000 */
  3984. #define CAN_F5R2_FB23 CAN_F5R2_FB23_Msk /*!<Filter bit 23 */
  3985. #define CAN_F5R2_FB24_Pos (24U)
  3986. #define CAN_F5R2_FB24_Msk (0x1U << CAN_F5R2_FB24_Pos) /*!< 0x01000000 */
  3987. #define CAN_F5R2_FB24 CAN_F5R2_FB24_Msk /*!<Filter bit 24 */
  3988. #define CAN_F5R2_FB25_Pos (25U)
  3989. #define CAN_F5R2_FB25_Msk (0x1U << CAN_F5R2_FB25_Pos) /*!< 0x02000000 */
  3990. #define CAN_F5R2_FB25 CAN_F5R2_FB25_Msk /*!<Filter bit 25 */
  3991. #define CAN_F5R2_FB26_Pos (26U)
  3992. #define CAN_F5R2_FB26_Msk (0x1U << CAN_F5R2_FB26_Pos) /*!< 0x04000000 */
  3993. #define CAN_F5R2_FB26 CAN_F5R2_FB26_Msk /*!<Filter bit 26 */
  3994. #define CAN_F5R2_FB27_Pos (27U)
  3995. #define CAN_F5R2_FB27_Msk (0x1U << CAN_F5R2_FB27_Pos) /*!< 0x08000000 */
  3996. #define CAN_F5R2_FB27 CAN_F5R2_FB27_Msk /*!<Filter bit 27 */
  3997. #define CAN_F5R2_FB28_Pos (28U)
  3998. #define CAN_F5R2_FB28_Msk (0x1U << CAN_F5R2_FB28_Pos) /*!< 0x10000000 */
  3999. #define CAN_F5R2_FB28 CAN_F5R2_FB28_Msk /*!<Filter bit 28 */
  4000. #define CAN_F5R2_FB29_Pos (29U)
  4001. #define CAN_F5R2_FB29_Msk (0x1U << CAN_F5R2_FB29_Pos) /*!< 0x20000000 */
  4002. #define CAN_F5R2_FB29 CAN_F5R2_FB29_Msk /*!<Filter bit 29 */
  4003. #define CAN_F5R2_FB30_Pos (30U)
  4004. #define CAN_F5R2_FB30_Msk (0x1U << CAN_F5R2_FB30_Pos) /*!< 0x40000000 */
  4005. #define CAN_F5R2_FB30 CAN_F5R2_FB30_Msk /*!<Filter bit 30 */
  4006. #define CAN_F5R2_FB31_Pos (31U)
  4007. #define CAN_F5R2_FB31_Msk (0x1U << CAN_F5R2_FB31_Pos) /*!< 0x80000000 */
  4008. #define CAN_F5R2_FB31 CAN_F5R2_FB31_Msk /*!<Filter bit 31 */
  4009. /******************* Bit definition for CAN_F6R2 register *******************/
  4010. #define CAN_F6R2_FB0_Pos (0U)
  4011. #define CAN_F6R2_FB0_Msk (0x1U << CAN_F6R2_FB0_Pos) /*!< 0x00000001 */
  4012. #define CAN_F6R2_FB0 CAN_F6R2_FB0_Msk /*!<Filter bit 0 */
  4013. #define CAN_F6R2_FB1_Pos (1U)
  4014. #define CAN_F6R2_FB1_Msk (0x1U << CAN_F6R2_FB1_Pos) /*!< 0x00000002 */
  4015. #define CAN_F6R2_FB1 CAN_F6R2_FB1_Msk /*!<Filter bit 1 */
  4016. #define CAN_F6R2_FB2_Pos (2U)
  4017. #define CAN_F6R2_FB2_Msk (0x1U << CAN_F6R2_FB2_Pos) /*!< 0x00000004 */
  4018. #define CAN_F6R2_FB2 CAN_F6R2_FB2_Msk /*!<Filter bit 2 */
  4019. #define CAN_F6R2_FB3_Pos (3U)
  4020. #define CAN_F6R2_FB3_Msk (0x1U << CAN_F6R2_FB3_Pos) /*!< 0x00000008 */
  4021. #define CAN_F6R2_FB3 CAN_F6R2_FB3_Msk /*!<Filter bit 3 */
  4022. #define CAN_F6R2_FB4_Pos (4U)
  4023. #define CAN_F6R2_FB4_Msk (0x1U << CAN_F6R2_FB4_Pos) /*!< 0x00000010 */
  4024. #define CAN_F6R2_FB4 CAN_F6R2_FB4_Msk /*!<Filter bit 4 */
  4025. #define CAN_F6R2_FB5_Pos (5U)
  4026. #define CAN_F6R2_FB5_Msk (0x1U << CAN_F6R2_FB5_Pos) /*!< 0x00000020 */
  4027. #define CAN_F6R2_FB5 CAN_F6R2_FB5_Msk /*!<Filter bit 5 */
  4028. #define CAN_F6R2_FB6_Pos (6U)
  4029. #define CAN_F6R2_FB6_Msk (0x1U << CAN_F6R2_FB6_Pos) /*!< 0x00000040 */
  4030. #define CAN_F6R2_FB6 CAN_F6R2_FB6_Msk /*!<Filter bit 6 */
  4031. #define CAN_F6R2_FB7_Pos (7U)
  4032. #define CAN_F6R2_FB7_Msk (0x1U << CAN_F6R2_FB7_Pos) /*!< 0x00000080 */
  4033. #define CAN_F6R2_FB7 CAN_F6R2_FB7_Msk /*!<Filter bit 7 */
  4034. #define CAN_F6R2_FB8_Pos (8U)
  4035. #define CAN_F6R2_FB8_Msk (0x1U << CAN_F6R2_FB8_Pos) /*!< 0x00000100 */
  4036. #define CAN_F6R2_FB8 CAN_F6R2_FB8_Msk /*!<Filter bit 8 */
  4037. #define CAN_F6R2_FB9_Pos (9U)
  4038. #define CAN_F6R2_FB9_Msk (0x1U << CAN_F6R2_FB9_Pos) /*!< 0x00000200 */
  4039. #define CAN_F6R2_FB9 CAN_F6R2_FB9_Msk /*!<Filter bit 9 */
  4040. #define CAN_F6R2_FB10_Pos (10U)
  4041. #define CAN_F6R2_FB10_Msk (0x1U << CAN_F6R2_FB10_Pos) /*!< 0x00000400 */
  4042. #define CAN_F6R2_FB10 CAN_F6R2_FB10_Msk /*!<Filter bit 10 */
  4043. #define CAN_F6R2_FB11_Pos (11U)
  4044. #define CAN_F6R2_FB11_Msk (0x1U << CAN_F6R2_FB11_Pos) /*!< 0x00000800 */
  4045. #define CAN_F6R2_FB11 CAN_F6R2_FB11_Msk /*!<Filter bit 11 */
  4046. #define CAN_F6R2_FB12_Pos (12U)
  4047. #define CAN_F6R2_FB12_Msk (0x1U << CAN_F6R2_FB12_Pos) /*!< 0x00001000 */
  4048. #define CAN_F6R2_FB12 CAN_F6R2_FB12_Msk /*!<Filter bit 12 */
  4049. #define CAN_F6R2_FB13_Pos (13U)
  4050. #define CAN_F6R2_FB13_Msk (0x1U << CAN_F6R2_FB13_Pos) /*!< 0x00002000 */
  4051. #define CAN_F6R2_FB13 CAN_F6R2_FB13_Msk /*!<Filter bit 13 */
  4052. #define CAN_F6R2_FB14_Pos (14U)
  4053. #define CAN_F6R2_FB14_Msk (0x1U << CAN_F6R2_FB14_Pos) /*!< 0x00004000 */
  4054. #define CAN_F6R2_FB14 CAN_F6R2_FB14_Msk /*!<Filter bit 14 */
  4055. #define CAN_F6R2_FB15_Pos (15U)
  4056. #define CAN_F6R2_FB15_Msk (0x1U << CAN_F6R2_FB15_Pos) /*!< 0x00008000 */
  4057. #define CAN_F6R2_FB15 CAN_F6R2_FB15_Msk /*!<Filter bit 15 */
  4058. #define CAN_F6R2_FB16_Pos (16U)
  4059. #define CAN_F6R2_FB16_Msk (0x1U << CAN_F6R2_FB16_Pos) /*!< 0x00010000 */
  4060. #define CAN_F6R2_FB16 CAN_F6R2_FB16_Msk /*!<Filter bit 16 */
  4061. #define CAN_F6R2_FB17_Pos (17U)
  4062. #define CAN_F6R2_FB17_Msk (0x1U << CAN_F6R2_FB17_Pos) /*!< 0x00020000 */
  4063. #define CAN_F6R2_FB17 CAN_F6R2_FB17_Msk /*!<Filter bit 17 */
  4064. #define CAN_F6R2_FB18_Pos (18U)
  4065. #define CAN_F6R2_FB18_Msk (0x1U << CAN_F6R2_FB18_Pos) /*!< 0x00040000 */
  4066. #define CAN_F6R2_FB18 CAN_F6R2_FB18_Msk /*!<Filter bit 18 */
  4067. #define CAN_F6R2_FB19_Pos (19U)
  4068. #define CAN_F6R2_FB19_Msk (0x1U << CAN_F6R2_FB19_Pos) /*!< 0x00080000 */
  4069. #define CAN_F6R2_FB19 CAN_F6R2_FB19_Msk /*!<Filter bit 19 */
  4070. #define CAN_F6R2_FB20_Pos (20U)
  4071. #define CAN_F6R2_FB20_Msk (0x1U << CAN_F6R2_FB20_Pos) /*!< 0x00100000 */
  4072. #define CAN_F6R2_FB20 CAN_F6R2_FB20_Msk /*!<Filter bit 20 */
  4073. #define CAN_F6R2_FB21_Pos (21U)
  4074. #define CAN_F6R2_FB21_Msk (0x1U << CAN_F6R2_FB21_Pos) /*!< 0x00200000 */
  4075. #define CAN_F6R2_FB21 CAN_F6R2_FB21_Msk /*!<Filter bit 21 */
  4076. #define CAN_F6R2_FB22_Pos (22U)
  4077. #define CAN_F6R2_FB22_Msk (0x1U << CAN_F6R2_FB22_Pos) /*!< 0x00400000 */
  4078. #define CAN_F6R2_FB22 CAN_F6R2_FB22_Msk /*!<Filter bit 22 */
  4079. #define CAN_F6R2_FB23_Pos (23U)
  4080. #define CAN_F6R2_FB23_Msk (0x1U << CAN_F6R2_FB23_Pos) /*!< 0x00800000 */
  4081. #define CAN_F6R2_FB23 CAN_F6R2_FB23_Msk /*!<Filter bit 23 */
  4082. #define CAN_F6R2_FB24_Pos (24U)
  4083. #define CAN_F6R2_FB24_Msk (0x1U << CAN_F6R2_FB24_Pos) /*!< 0x01000000 */
  4084. #define CAN_F6R2_FB24 CAN_F6R2_FB24_Msk /*!<Filter bit 24 */
  4085. #define CAN_F6R2_FB25_Pos (25U)
  4086. #define CAN_F6R2_FB25_Msk (0x1U << CAN_F6R2_FB25_Pos) /*!< 0x02000000 */
  4087. #define CAN_F6R2_FB25 CAN_F6R2_FB25_Msk /*!<Filter bit 25 */
  4088. #define CAN_F6R2_FB26_Pos (26U)
  4089. #define CAN_F6R2_FB26_Msk (0x1U << CAN_F6R2_FB26_Pos) /*!< 0x04000000 */
  4090. #define CAN_F6R2_FB26 CAN_F6R2_FB26_Msk /*!<Filter bit 26 */
  4091. #define CAN_F6R2_FB27_Pos (27U)
  4092. #define CAN_F6R2_FB27_Msk (0x1U << CAN_F6R2_FB27_Pos) /*!< 0x08000000 */
  4093. #define CAN_F6R2_FB27 CAN_F6R2_FB27_Msk /*!<Filter bit 27 */
  4094. #define CAN_F6R2_FB28_Pos (28U)
  4095. #define CAN_F6R2_FB28_Msk (0x1U << CAN_F6R2_FB28_Pos) /*!< 0x10000000 */
  4096. #define CAN_F6R2_FB28 CAN_F6R2_FB28_Msk /*!<Filter bit 28 */
  4097. #define CAN_F6R2_FB29_Pos (29U)
  4098. #define CAN_F6R2_FB29_Msk (0x1U << CAN_F6R2_FB29_Pos) /*!< 0x20000000 */
  4099. #define CAN_F6R2_FB29 CAN_F6R2_FB29_Msk /*!<Filter bit 29 */
  4100. #define CAN_F6R2_FB30_Pos (30U)
  4101. #define CAN_F6R2_FB30_Msk (0x1U << CAN_F6R2_FB30_Pos) /*!< 0x40000000 */
  4102. #define CAN_F6R2_FB30 CAN_F6R2_FB30_Msk /*!<Filter bit 30 */
  4103. #define CAN_F6R2_FB31_Pos (31U)
  4104. #define CAN_F6R2_FB31_Msk (0x1U << CAN_F6R2_FB31_Pos) /*!< 0x80000000 */
  4105. #define CAN_F6R2_FB31 CAN_F6R2_FB31_Msk /*!<Filter bit 31 */
  4106. /******************* Bit definition for CAN_F7R2 register *******************/
  4107. #define CAN_F7R2_FB0_Pos (0U)
  4108. #define CAN_F7R2_FB0_Msk (0x1U << CAN_F7R2_FB0_Pos) /*!< 0x00000001 */
  4109. #define CAN_F7R2_FB0 CAN_F7R2_FB0_Msk /*!<Filter bit 0 */
  4110. #define CAN_F7R2_FB1_Pos (1U)
  4111. #define CAN_F7R2_FB1_Msk (0x1U << CAN_F7R2_FB1_Pos) /*!< 0x00000002 */
  4112. #define CAN_F7R2_FB1 CAN_F7R2_FB1_Msk /*!<Filter bit 1 */
  4113. #define CAN_F7R2_FB2_Pos (2U)
  4114. #define CAN_F7R2_FB2_Msk (0x1U << CAN_F7R2_FB2_Pos) /*!< 0x00000004 */
  4115. #define CAN_F7R2_FB2 CAN_F7R2_FB2_Msk /*!<Filter bit 2 */
  4116. #define CAN_F7R2_FB3_Pos (3U)
  4117. #define CAN_F7R2_FB3_Msk (0x1U << CAN_F7R2_FB3_Pos) /*!< 0x00000008 */
  4118. #define CAN_F7R2_FB3 CAN_F7R2_FB3_Msk /*!<Filter bit 3 */
  4119. #define CAN_F7R2_FB4_Pos (4U)
  4120. #define CAN_F7R2_FB4_Msk (0x1U << CAN_F7R2_FB4_Pos) /*!< 0x00000010 */
  4121. #define CAN_F7R2_FB4 CAN_F7R2_FB4_Msk /*!<Filter bit 4 */
  4122. #define CAN_F7R2_FB5_Pos (5U)
  4123. #define CAN_F7R2_FB5_Msk (0x1U << CAN_F7R2_FB5_Pos) /*!< 0x00000020 */
  4124. #define CAN_F7R2_FB5 CAN_F7R2_FB5_Msk /*!<Filter bit 5 */
  4125. #define CAN_F7R2_FB6_Pos (6U)
  4126. #define CAN_F7R2_FB6_Msk (0x1U << CAN_F7R2_FB6_Pos) /*!< 0x00000040 */
  4127. #define CAN_F7R2_FB6 CAN_F7R2_FB6_Msk /*!<Filter bit 6 */
  4128. #define CAN_F7R2_FB7_Pos (7U)
  4129. #define CAN_F7R2_FB7_Msk (0x1U << CAN_F7R2_FB7_Pos) /*!< 0x00000080 */
  4130. #define CAN_F7R2_FB7 CAN_F7R2_FB7_Msk /*!<Filter bit 7 */
  4131. #define CAN_F7R2_FB8_Pos (8U)
  4132. #define CAN_F7R2_FB8_Msk (0x1U << CAN_F7R2_FB8_Pos) /*!< 0x00000100 */
  4133. #define CAN_F7R2_FB8 CAN_F7R2_FB8_Msk /*!<Filter bit 8 */
  4134. #define CAN_F7R2_FB9_Pos (9U)
  4135. #define CAN_F7R2_FB9_Msk (0x1U << CAN_F7R2_FB9_Pos) /*!< 0x00000200 */
  4136. #define CAN_F7R2_FB9 CAN_F7R2_FB9_Msk /*!<Filter bit 9 */
  4137. #define CAN_F7R2_FB10_Pos (10U)
  4138. #define CAN_F7R2_FB10_Msk (0x1U << CAN_F7R2_FB10_Pos) /*!< 0x00000400 */
  4139. #define CAN_F7R2_FB10 CAN_F7R2_FB10_Msk /*!<Filter bit 10 */
  4140. #define CAN_F7R2_FB11_Pos (11U)
  4141. #define CAN_F7R2_FB11_Msk (0x1U << CAN_F7R2_FB11_Pos) /*!< 0x00000800 */
  4142. #define CAN_F7R2_FB11 CAN_F7R2_FB11_Msk /*!<Filter bit 11 */
  4143. #define CAN_F7R2_FB12_Pos (12U)
  4144. #define CAN_F7R2_FB12_Msk (0x1U << CAN_F7R2_FB12_Pos) /*!< 0x00001000 */
  4145. #define CAN_F7R2_FB12 CAN_F7R2_FB12_Msk /*!<Filter bit 12 */
  4146. #define CAN_F7R2_FB13_Pos (13U)
  4147. #define CAN_F7R2_FB13_Msk (0x1U << CAN_F7R2_FB13_Pos) /*!< 0x00002000 */
  4148. #define CAN_F7R2_FB13 CAN_F7R2_FB13_Msk /*!<Filter bit 13 */
  4149. #define CAN_F7R2_FB14_Pos (14U)
  4150. #define CAN_F7R2_FB14_Msk (0x1U << CAN_F7R2_FB14_Pos) /*!< 0x00004000 */
  4151. #define CAN_F7R2_FB14 CAN_F7R2_FB14_Msk /*!<Filter bit 14 */
  4152. #define CAN_F7R2_FB15_Pos (15U)
  4153. #define CAN_F7R2_FB15_Msk (0x1U << CAN_F7R2_FB15_Pos) /*!< 0x00008000 */
  4154. #define CAN_F7R2_FB15 CAN_F7R2_FB15_Msk /*!<Filter bit 15 */
  4155. #define CAN_F7R2_FB16_Pos (16U)
  4156. #define CAN_F7R2_FB16_Msk (0x1U << CAN_F7R2_FB16_Pos) /*!< 0x00010000 */
  4157. #define CAN_F7R2_FB16 CAN_F7R2_FB16_Msk /*!<Filter bit 16 */
  4158. #define CAN_F7R2_FB17_Pos (17U)
  4159. #define CAN_F7R2_FB17_Msk (0x1U << CAN_F7R2_FB17_Pos) /*!< 0x00020000 */
  4160. #define CAN_F7R2_FB17 CAN_F7R2_FB17_Msk /*!<Filter bit 17 */
  4161. #define CAN_F7R2_FB18_Pos (18U)
  4162. #define CAN_F7R2_FB18_Msk (0x1U << CAN_F7R2_FB18_Pos) /*!< 0x00040000 */
  4163. #define CAN_F7R2_FB18 CAN_F7R2_FB18_Msk /*!<Filter bit 18 */
  4164. #define CAN_F7R2_FB19_Pos (19U)
  4165. #define CAN_F7R2_FB19_Msk (0x1U << CAN_F7R2_FB19_Pos) /*!< 0x00080000 */
  4166. #define CAN_F7R2_FB19 CAN_F7R2_FB19_Msk /*!<Filter bit 19 */
  4167. #define CAN_F7R2_FB20_Pos (20U)
  4168. #define CAN_F7R2_FB20_Msk (0x1U << CAN_F7R2_FB20_Pos) /*!< 0x00100000 */
  4169. #define CAN_F7R2_FB20 CAN_F7R2_FB20_Msk /*!<Filter bit 20 */
  4170. #define CAN_F7R2_FB21_Pos (21U)
  4171. #define CAN_F7R2_FB21_Msk (0x1U << CAN_F7R2_FB21_Pos) /*!< 0x00200000 */
  4172. #define CAN_F7R2_FB21 CAN_F7R2_FB21_Msk /*!<Filter bit 21 */
  4173. #define CAN_F7R2_FB22_Pos (22U)
  4174. #define CAN_F7R2_FB22_Msk (0x1U << CAN_F7R2_FB22_Pos) /*!< 0x00400000 */
  4175. #define CAN_F7R2_FB22 CAN_F7R2_FB22_Msk /*!<Filter bit 22 */
  4176. #define CAN_F7R2_FB23_Pos (23U)
  4177. #define CAN_F7R2_FB23_Msk (0x1U << CAN_F7R2_FB23_Pos) /*!< 0x00800000 */
  4178. #define CAN_F7R2_FB23 CAN_F7R2_FB23_Msk /*!<Filter bit 23 */
  4179. #define CAN_F7R2_FB24_Pos (24U)
  4180. #define CAN_F7R2_FB24_Msk (0x1U << CAN_F7R2_FB24_Pos) /*!< 0x01000000 */
  4181. #define CAN_F7R2_FB24 CAN_F7R2_FB24_Msk /*!<Filter bit 24 */
  4182. #define CAN_F7R2_FB25_Pos (25U)
  4183. #define CAN_F7R2_FB25_Msk (0x1U << CAN_F7R2_FB25_Pos) /*!< 0x02000000 */
  4184. #define CAN_F7R2_FB25 CAN_F7R2_FB25_Msk /*!<Filter bit 25 */
  4185. #define CAN_F7R2_FB26_Pos (26U)
  4186. #define CAN_F7R2_FB26_Msk (0x1U << CAN_F7R2_FB26_Pos) /*!< 0x04000000 */
  4187. #define CAN_F7R2_FB26 CAN_F7R2_FB26_Msk /*!<Filter bit 26 */
  4188. #define CAN_F7R2_FB27_Pos (27U)
  4189. #define CAN_F7R2_FB27_Msk (0x1U << CAN_F7R2_FB27_Pos) /*!< 0x08000000 */
  4190. #define CAN_F7R2_FB27 CAN_F7R2_FB27_Msk /*!<Filter bit 27 */
  4191. #define CAN_F7R2_FB28_Pos (28U)
  4192. #define CAN_F7R2_FB28_Msk (0x1U << CAN_F7R2_FB28_Pos) /*!< 0x10000000 */
  4193. #define CAN_F7R2_FB28 CAN_F7R2_FB28_Msk /*!<Filter bit 28 */
  4194. #define CAN_F7R2_FB29_Pos (29U)
  4195. #define CAN_F7R2_FB29_Msk (0x1U << CAN_F7R2_FB29_Pos) /*!< 0x20000000 */
  4196. #define CAN_F7R2_FB29 CAN_F7R2_FB29_Msk /*!<Filter bit 29 */
  4197. #define CAN_F7R2_FB30_Pos (30U)
  4198. #define CAN_F7R2_FB30_Msk (0x1U << CAN_F7R2_FB30_Pos) /*!< 0x40000000 */
  4199. #define CAN_F7R2_FB30 CAN_F7R2_FB30_Msk /*!<Filter bit 30 */
  4200. #define CAN_F7R2_FB31_Pos (31U)
  4201. #define CAN_F7R2_FB31_Msk (0x1U << CAN_F7R2_FB31_Pos) /*!< 0x80000000 */
  4202. #define CAN_F7R2_FB31 CAN_F7R2_FB31_Msk /*!<Filter bit 31 */
  4203. /******************* Bit definition for CAN_F8R2 register *******************/
  4204. #define CAN_F8R2_FB0_Pos (0U)
  4205. #define CAN_F8R2_FB0_Msk (0x1U << CAN_F8R2_FB0_Pos) /*!< 0x00000001 */
  4206. #define CAN_F8R2_FB0 CAN_F8R2_FB0_Msk /*!<Filter bit 0 */
  4207. #define CAN_F8R2_FB1_Pos (1U)
  4208. #define CAN_F8R2_FB1_Msk (0x1U << CAN_F8R2_FB1_Pos) /*!< 0x00000002 */
  4209. #define CAN_F8R2_FB1 CAN_F8R2_FB1_Msk /*!<Filter bit 1 */
  4210. #define CAN_F8R2_FB2_Pos (2U)
  4211. #define CAN_F8R2_FB2_Msk (0x1U << CAN_F8R2_FB2_Pos) /*!< 0x00000004 */
  4212. #define CAN_F8R2_FB2 CAN_F8R2_FB2_Msk /*!<Filter bit 2 */
  4213. #define CAN_F8R2_FB3_Pos (3U)
  4214. #define CAN_F8R2_FB3_Msk (0x1U << CAN_F8R2_FB3_Pos) /*!< 0x00000008 */
  4215. #define CAN_F8R2_FB3 CAN_F8R2_FB3_Msk /*!<Filter bit 3 */
  4216. #define CAN_F8R2_FB4_Pos (4U)
  4217. #define CAN_F8R2_FB4_Msk (0x1U << CAN_F8R2_FB4_Pos) /*!< 0x00000010 */
  4218. #define CAN_F8R2_FB4 CAN_F8R2_FB4_Msk /*!<Filter bit 4 */
  4219. #define CAN_F8R2_FB5_Pos (5U)
  4220. #define CAN_F8R2_FB5_Msk (0x1U << CAN_F8R2_FB5_Pos) /*!< 0x00000020 */
  4221. #define CAN_F8R2_FB5 CAN_F8R2_FB5_Msk /*!<Filter bit 5 */
  4222. #define CAN_F8R2_FB6_Pos (6U)
  4223. #define CAN_F8R2_FB6_Msk (0x1U << CAN_F8R2_FB6_Pos) /*!< 0x00000040 */
  4224. #define CAN_F8R2_FB6 CAN_F8R2_FB6_Msk /*!<Filter bit 6 */
  4225. #define CAN_F8R2_FB7_Pos (7U)
  4226. #define CAN_F8R2_FB7_Msk (0x1U << CAN_F8R2_FB7_Pos) /*!< 0x00000080 */
  4227. #define CAN_F8R2_FB7 CAN_F8R2_FB7_Msk /*!<Filter bit 7 */
  4228. #define CAN_F8R2_FB8_Pos (8U)
  4229. #define CAN_F8R2_FB8_Msk (0x1U << CAN_F8R2_FB8_Pos) /*!< 0x00000100 */
  4230. #define CAN_F8R2_FB8 CAN_F8R2_FB8_Msk /*!<Filter bit 8 */
  4231. #define CAN_F8R2_FB9_Pos (9U)
  4232. #define CAN_F8R2_FB9_Msk (0x1U << CAN_F8R2_FB9_Pos) /*!< 0x00000200 */
  4233. #define CAN_F8R2_FB9 CAN_F8R2_FB9_Msk /*!<Filter bit 9 */
  4234. #define CAN_F8R2_FB10_Pos (10U)
  4235. #define CAN_F8R2_FB10_Msk (0x1U << CAN_F8R2_FB10_Pos) /*!< 0x00000400 */
  4236. #define CAN_F8R2_FB10 CAN_F8R2_FB10_Msk /*!<Filter bit 10 */
  4237. #define CAN_F8R2_FB11_Pos (11U)
  4238. #define CAN_F8R2_FB11_Msk (0x1U << CAN_F8R2_FB11_Pos) /*!< 0x00000800 */
  4239. #define CAN_F8R2_FB11 CAN_F8R2_FB11_Msk /*!<Filter bit 11 */
  4240. #define CAN_F8R2_FB12_Pos (12U)
  4241. #define CAN_F8R2_FB12_Msk (0x1U << CAN_F8R2_FB12_Pos) /*!< 0x00001000 */
  4242. #define CAN_F8R2_FB12 CAN_F8R2_FB12_Msk /*!<Filter bit 12 */
  4243. #define CAN_F8R2_FB13_Pos (13U)
  4244. #define CAN_F8R2_FB13_Msk (0x1U << CAN_F8R2_FB13_Pos) /*!< 0x00002000 */
  4245. #define CAN_F8R2_FB13 CAN_F8R2_FB13_Msk /*!<Filter bit 13 */
  4246. #define CAN_F8R2_FB14_Pos (14U)
  4247. #define CAN_F8R2_FB14_Msk (0x1U << CAN_F8R2_FB14_Pos) /*!< 0x00004000 */
  4248. #define CAN_F8R2_FB14 CAN_F8R2_FB14_Msk /*!<Filter bit 14 */
  4249. #define CAN_F8R2_FB15_Pos (15U)
  4250. #define CAN_F8R2_FB15_Msk (0x1U << CAN_F8R2_FB15_Pos) /*!< 0x00008000 */
  4251. #define CAN_F8R2_FB15 CAN_F8R2_FB15_Msk /*!<Filter bit 15 */
  4252. #define CAN_F8R2_FB16_Pos (16U)
  4253. #define CAN_F8R2_FB16_Msk (0x1U << CAN_F8R2_FB16_Pos) /*!< 0x00010000 */
  4254. #define CAN_F8R2_FB16 CAN_F8R2_FB16_Msk /*!<Filter bit 16 */
  4255. #define CAN_F8R2_FB17_Pos (17U)
  4256. #define CAN_F8R2_FB17_Msk (0x1U << CAN_F8R2_FB17_Pos) /*!< 0x00020000 */
  4257. #define CAN_F8R2_FB17 CAN_F8R2_FB17_Msk /*!<Filter bit 17 */
  4258. #define CAN_F8R2_FB18_Pos (18U)
  4259. #define CAN_F8R2_FB18_Msk (0x1U << CAN_F8R2_FB18_Pos) /*!< 0x00040000 */
  4260. #define CAN_F8R2_FB18 CAN_F8R2_FB18_Msk /*!<Filter bit 18 */
  4261. #define CAN_F8R2_FB19_Pos (19U)
  4262. #define CAN_F8R2_FB19_Msk (0x1U << CAN_F8R2_FB19_Pos) /*!< 0x00080000 */
  4263. #define CAN_F8R2_FB19 CAN_F8R2_FB19_Msk /*!<Filter bit 19 */
  4264. #define CAN_F8R2_FB20_Pos (20U)
  4265. #define CAN_F8R2_FB20_Msk (0x1U << CAN_F8R2_FB20_Pos) /*!< 0x00100000 */
  4266. #define CAN_F8R2_FB20 CAN_F8R2_FB20_Msk /*!<Filter bit 20 */
  4267. #define CAN_F8R2_FB21_Pos (21U)
  4268. #define CAN_F8R2_FB21_Msk (0x1U << CAN_F8R2_FB21_Pos) /*!< 0x00200000 */
  4269. #define CAN_F8R2_FB21 CAN_F8R2_FB21_Msk /*!<Filter bit 21 */
  4270. #define CAN_F8R2_FB22_Pos (22U)
  4271. #define CAN_F8R2_FB22_Msk (0x1U << CAN_F8R2_FB22_Pos) /*!< 0x00400000 */
  4272. #define CAN_F8R2_FB22 CAN_F8R2_FB22_Msk /*!<Filter bit 22 */
  4273. #define CAN_F8R2_FB23_Pos (23U)
  4274. #define CAN_F8R2_FB23_Msk (0x1U << CAN_F8R2_FB23_Pos) /*!< 0x00800000 */
  4275. #define CAN_F8R2_FB23 CAN_F8R2_FB23_Msk /*!<Filter bit 23 */
  4276. #define CAN_F8R2_FB24_Pos (24U)
  4277. #define CAN_F8R2_FB24_Msk (0x1U << CAN_F8R2_FB24_Pos) /*!< 0x01000000 */
  4278. #define CAN_F8R2_FB24 CAN_F8R2_FB24_Msk /*!<Filter bit 24 */
  4279. #define CAN_F8R2_FB25_Pos (25U)
  4280. #define CAN_F8R2_FB25_Msk (0x1U << CAN_F8R2_FB25_Pos) /*!< 0x02000000 */
  4281. #define CAN_F8R2_FB25 CAN_F8R2_FB25_Msk /*!<Filter bit 25 */
  4282. #define CAN_F8R2_FB26_Pos (26U)
  4283. #define CAN_F8R2_FB26_Msk (0x1U << CAN_F8R2_FB26_Pos) /*!< 0x04000000 */
  4284. #define CAN_F8R2_FB26 CAN_F8R2_FB26_Msk /*!<Filter bit 26 */
  4285. #define CAN_F8R2_FB27_Pos (27U)
  4286. #define CAN_F8R2_FB27_Msk (0x1U << CAN_F8R2_FB27_Pos) /*!< 0x08000000 */
  4287. #define CAN_F8R2_FB27 CAN_F8R2_FB27_Msk /*!<Filter bit 27 */
  4288. #define CAN_F8R2_FB28_Pos (28U)
  4289. #define CAN_F8R2_FB28_Msk (0x1U << CAN_F8R2_FB28_Pos) /*!< 0x10000000 */
  4290. #define CAN_F8R2_FB28 CAN_F8R2_FB28_Msk /*!<Filter bit 28 */
  4291. #define CAN_F8R2_FB29_Pos (29U)
  4292. #define CAN_F8R2_FB29_Msk (0x1U << CAN_F8R2_FB29_Pos) /*!< 0x20000000 */
  4293. #define CAN_F8R2_FB29 CAN_F8R2_FB29_Msk /*!<Filter bit 29 */
  4294. #define CAN_F8R2_FB30_Pos (30U)
  4295. #define CAN_F8R2_FB30_Msk (0x1U << CAN_F8R2_FB30_Pos) /*!< 0x40000000 */
  4296. #define CAN_F8R2_FB30 CAN_F8R2_FB30_Msk /*!<Filter bit 30 */
  4297. #define CAN_F8R2_FB31_Pos (31U)
  4298. #define CAN_F8R2_FB31_Msk (0x1U << CAN_F8R2_FB31_Pos) /*!< 0x80000000 */
  4299. #define CAN_F8R2_FB31 CAN_F8R2_FB31_Msk /*!<Filter bit 31 */
  4300. /******************* Bit definition for CAN_F9R2 register *******************/
  4301. #define CAN_F9R2_FB0_Pos (0U)
  4302. #define CAN_F9R2_FB0_Msk (0x1U << CAN_F9R2_FB0_Pos) /*!< 0x00000001 */
  4303. #define CAN_F9R2_FB0 CAN_F9R2_FB0_Msk /*!<Filter bit 0 */
  4304. #define CAN_F9R2_FB1_Pos (1U)
  4305. #define CAN_F9R2_FB1_Msk (0x1U << CAN_F9R2_FB1_Pos) /*!< 0x00000002 */
  4306. #define CAN_F9R2_FB1 CAN_F9R2_FB1_Msk /*!<Filter bit 1 */
  4307. #define CAN_F9R2_FB2_Pos (2U)
  4308. #define CAN_F9R2_FB2_Msk (0x1U << CAN_F9R2_FB2_Pos) /*!< 0x00000004 */
  4309. #define CAN_F9R2_FB2 CAN_F9R2_FB2_Msk /*!<Filter bit 2 */
  4310. #define CAN_F9R2_FB3_Pos (3U)
  4311. #define CAN_F9R2_FB3_Msk (0x1U << CAN_F9R2_FB3_Pos) /*!< 0x00000008 */
  4312. #define CAN_F9R2_FB3 CAN_F9R2_FB3_Msk /*!<Filter bit 3 */
  4313. #define CAN_F9R2_FB4_Pos (4U)
  4314. #define CAN_F9R2_FB4_Msk (0x1U << CAN_F9R2_FB4_Pos) /*!< 0x00000010 */
  4315. #define CAN_F9R2_FB4 CAN_F9R2_FB4_Msk /*!<Filter bit 4 */
  4316. #define CAN_F9R2_FB5_Pos (5U)
  4317. #define CAN_F9R2_FB5_Msk (0x1U << CAN_F9R2_FB5_Pos) /*!< 0x00000020 */
  4318. #define CAN_F9R2_FB5 CAN_F9R2_FB5_Msk /*!<Filter bit 5 */
  4319. #define CAN_F9R2_FB6_Pos (6U)
  4320. #define CAN_F9R2_FB6_Msk (0x1U << CAN_F9R2_FB6_Pos) /*!< 0x00000040 */
  4321. #define CAN_F9R2_FB6 CAN_F9R2_FB6_Msk /*!<Filter bit 6 */
  4322. #define CAN_F9R2_FB7_Pos (7U)
  4323. #define CAN_F9R2_FB7_Msk (0x1U << CAN_F9R2_FB7_Pos) /*!< 0x00000080 */
  4324. #define CAN_F9R2_FB7 CAN_F9R2_FB7_Msk /*!<Filter bit 7 */
  4325. #define CAN_F9R2_FB8_Pos (8U)
  4326. #define CAN_F9R2_FB8_Msk (0x1U << CAN_F9R2_FB8_Pos) /*!< 0x00000100 */
  4327. #define CAN_F9R2_FB8 CAN_F9R2_FB8_Msk /*!<Filter bit 8 */
  4328. #define CAN_F9R2_FB9_Pos (9U)
  4329. #define CAN_F9R2_FB9_Msk (0x1U << CAN_F9R2_FB9_Pos) /*!< 0x00000200 */
  4330. #define CAN_F9R2_FB9 CAN_F9R2_FB9_Msk /*!<Filter bit 9 */
  4331. #define CAN_F9R2_FB10_Pos (10U)
  4332. #define CAN_F9R2_FB10_Msk (0x1U << CAN_F9R2_FB10_Pos) /*!< 0x00000400 */
  4333. #define CAN_F9R2_FB10 CAN_F9R2_FB10_Msk /*!<Filter bit 10 */
  4334. #define CAN_F9R2_FB11_Pos (11U)
  4335. #define CAN_F9R2_FB11_Msk (0x1U << CAN_F9R2_FB11_Pos) /*!< 0x00000800 */
  4336. #define CAN_F9R2_FB11 CAN_F9R2_FB11_Msk /*!<Filter bit 11 */
  4337. #define CAN_F9R2_FB12_Pos (12U)
  4338. #define CAN_F9R2_FB12_Msk (0x1U << CAN_F9R2_FB12_Pos) /*!< 0x00001000 */
  4339. #define CAN_F9R2_FB12 CAN_F9R2_FB12_Msk /*!<Filter bit 12 */
  4340. #define CAN_F9R2_FB13_Pos (13U)
  4341. #define CAN_F9R2_FB13_Msk (0x1U << CAN_F9R2_FB13_Pos) /*!< 0x00002000 */
  4342. #define CAN_F9R2_FB13 CAN_F9R2_FB13_Msk /*!<Filter bit 13 */
  4343. #define CAN_F9R2_FB14_Pos (14U)
  4344. #define CAN_F9R2_FB14_Msk (0x1U << CAN_F9R2_FB14_Pos) /*!< 0x00004000 */
  4345. #define CAN_F9R2_FB14 CAN_F9R2_FB14_Msk /*!<Filter bit 14 */
  4346. #define CAN_F9R2_FB15_Pos (15U)
  4347. #define CAN_F9R2_FB15_Msk (0x1U << CAN_F9R2_FB15_Pos) /*!< 0x00008000 */
  4348. #define CAN_F9R2_FB15 CAN_F9R2_FB15_Msk /*!<Filter bit 15 */
  4349. #define CAN_F9R2_FB16_Pos (16U)
  4350. #define CAN_F9R2_FB16_Msk (0x1U << CAN_F9R2_FB16_Pos) /*!< 0x00010000 */
  4351. #define CAN_F9R2_FB16 CAN_F9R2_FB16_Msk /*!<Filter bit 16 */
  4352. #define CAN_F9R2_FB17_Pos (17U)
  4353. #define CAN_F9R2_FB17_Msk (0x1U << CAN_F9R2_FB17_Pos) /*!< 0x00020000 */
  4354. #define CAN_F9R2_FB17 CAN_F9R2_FB17_Msk /*!<Filter bit 17 */
  4355. #define CAN_F9R2_FB18_Pos (18U)
  4356. #define CAN_F9R2_FB18_Msk (0x1U << CAN_F9R2_FB18_Pos) /*!< 0x00040000 */
  4357. #define CAN_F9R2_FB18 CAN_F9R2_FB18_Msk /*!<Filter bit 18 */
  4358. #define CAN_F9R2_FB19_Pos (19U)
  4359. #define CAN_F9R2_FB19_Msk (0x1U << CAN_F9R2_FB19_Pos) /*!< 0x00080000 */
  4360. #define CAN_F9R2_FB19 CAN_F9R2_FB19_Msk /*!<Filter bit 19 */
  4361. #define CAN_F9R2_FB20_Pos (20U)
  4362. #define CAN_F9R2_FB20_Msk (0x1U << CAN_F9R2_FB20_Pos) /*!< 0x00100000 */
  4363. #define CAN_F9R2_FB20 CAN_F9R2_FB20_Msk /*!<Filter bit 20 */
  4364. #define CAN_F9R2_FB21_Pos (21U)
  4365. #define CAN_F9R2_FB21_Msk (0x1U << CAN_F9R2_FB21_Pos) /*!< 0x00200000 */
  4366. #define CAN_F9R2_FB21 CAN_F9R2_FB21_Msk /*!<Filter bit 21 */
  4367. #define CAN_F9R2_FB22_Pos (22U)
  4368. #define CAN_F9R2_FB22_Msk (0x1U << CAN_F9R2_FB22_Pos) /*!< 0x00400000 */
  4369. #define CAN_F9R2_FB22 CAN_F9R2_FB22_Msk /*!<Filter bit 22 */
  4370. #define CAN_F9R2_FB23_Pos (23U)
  4371. #define CAN_F9R2_FB23_Msk (0x1U << CAN_F9R2_FB23_Pos) /*!< 0x00800000 */
  4372. #define CAN_F9R2_FB23 CAN_F9R2_FB23_Msk /*!<Filter bit 23 */
  4373. #define CAN_F9R2_FB24_Pos (24U)
  4374. #define CAN_F9R2_FB24_Msk (0x1U << CAN_F9R2_FB24_Pos) /*!< 0x01000000 */
  4375. #define CAN_F9R2_FB24 CAN_F9R2_FB24_Msk /*!<Filter bit 24 */
  4376. #define CAN_F9R2_FB25_Pos (25U)
  4377. #define CAN_F9R2_FB25_Msk (0x1U << CAN_F9R2_FB25_Pos) /*!< 0x02000000 */
  4378. #define CAN_F9R2_FB25 CAN_F9R2_FB25_Msk /*!<Filter bit 25 */
  4379. #define CAN_F9R2_FB26_Pos (26U)
  4380. #define CAN_F9R2_FB26_Msk (0x1U << CAN_F9R2_FB26_Pos) /*!< 0x04000000 */
  4381. #define CAN_F9R2_FB26 CAN_F9R2_FB26_Msk /*!<Filter bit 26 */
  4382. #define CAN_F9R2_FB27_Pos (27U)
  4383. #define CAN_F9R2_FB27_Msk (0x1U << CAN_F9R2_FB27_Pos) /*!< 0x08000000 */
  4384. #define CAN_F9R2_FB27 CAN_F9R2_FB27_Msk /*!<Filter bit 27 */
  4385. #define CAN_F9R2_FB28_Pos (28U)
  4386. #define CAN_F9R2_FB28_Msk (0x1U << CAN_F9R2_FB28_Pos) /*!< 0x10000000 */
  4387. #define CAN_F9R2_FB28 CAN_F9R2_FB28_Msk /*!<Filter bit 28 */
  4388. #define CAN_F9R2_FB29_Pos (29U)
  4389. #define CAN_F9R2_FB29_Msk (0x1U << CAN_F9R2_FB29_Pos) /*!< 0x20000000 */
  4390. #define CAN_F9R2_FB29 CAN_F9R2_FB29_Msk /*!<Filter bit 29 */
  4391. #define CAN_F9R2_FB30_Pos (30U)
  4392. #define CAN_F9R2_FB30_Msk (0x1U << CAN_F9R2_FB30_Pos) /*!< 0x40000000 */
  4393. #define CAN_F9R2_FB30 CAN_F9R2_FB30_Msk /*!<Filter bit 30 */
  4394. #define CAN_F9R2_FB31_Pos (31U)
  4395. #define CAN_F9R2_FB31_Msk (0x1U << CAN_F9R2_FB31_Pos) /*!< 0x80000000 */
  4396. #define CAN_F9R2_FB31 CAN_F9R2_FB31_Msk /*!<Filter bit 31 */
  4397. /******************* Bit definition for CAN_F10R2 register ******************/
  4398. #define CAN_F10R2_FB0_Pos (0U)
  4399. #define CAN_F10R2_FB0_Msk (0x1U << CAN_F10R2_FB0_Pos) /*!< 0x00000001 */
  4400. #define CAN_F10R2_FB0 CAN_F10R2_FB0_Msk /*!<Filter bit 0 */
  4401. #define CAN_F10R2_FB1_Pos (1U)
  4402. #define CAN_F10R2_FB1_Msk (0x1U << CAN_F10R2_FB1_Pos) /*!< 0x00000002 */
  4403. #define CAN_F10R2_FB1 CAN_F10R2_FB1_Msk /*!<Filter bit 1 */
  4404. #define CAN_F10R2_FB2_Pos (2U)
  4405. #define CAN_F10R2_FB2_Msk (0x1U << CAN_F10R2_FB2_Pos) /*!< 0x00000004 */
  4406. #define CAN_F10R2_FB2 CAN_F10R2_FB2_Msk /*!<Filter bit 2 */
  4407. #define CAN_F10R2_FB3_Pos (3U)
  4408. #define CAN_F10R2_FB3_Msk (0x1U << CAN_F10R2_FB3_Pos) /*!< 0x00000008 */
  4409. #define CAN_F10R2_FB3 CAN_F10R2_FB3_Msk /*!<Filter bit 3 */
  4410. #define CAN_F10R2_FB4_Pos (4U)
  4411. #define CAN_F10R2_FB4_Msk (0x1U << CAN_F10R2_FB4_Pos) /*!< 0x00000010 */
  4412. #define CAN_F10R2_FB4 CAN_F10R2_FB4_Msk /*!<Filter bit 4 */
  4413. #define CAN_F10R2_FB5_Pos (5U)
  4414. #define CAN_F10R2_FB5_Msk (0x1U << CAN_F10R2_FB5_Pos) /*!< 0x00000020 */
  4415. #define CAN_F10R2_FB5 CAN_F10R2_FB5_Msk /*!<Filter bit 5 */
  4416. #define CAN_F10R2_FB6_Pos (6U)
  4417. #define CAN_F10R2_FB6_Msk (0x1U << CAN_F10R2_FB6_Pos) /*!< 0x00000040 */
  4418. #define CAN_F10R2_FB6 CAN_F10R2_FB6_Msk /*!<Filter bit 6 */
  4419. #define CAN_F10R2_FB7_Pos (7U)
  4420. #define CAN_F10R2_FB7_Msk (0x1U << CAN_F10R2_FB7_Pos) /*!< 0x00000080 */
  4421. #define CAN_F10R2_FB7 CAN_F10R2_FB7_Msk /*!<Filter bit 7 */
  4422. #define CAN_F10R2_FB8_Pos (8U)
  4423. #define CAN_F10R2_FB8_Msk (0x1U << CAN_F10R2_FB8_Pos) /*!< 0x00000100 */
  4424. #define CAN_F10R2_FB8 CAN_F10R2_FB8_Msk /*!<Filter bit 8 */
  4425. #define CAN_F10R2_FB9_Pos (9U)
  4426. #define CAN_F10R2_FB9_Msk (0x1U << CAN_F10R2_FB9_Pos) /*!< 0x00000200 */
  4427. #define CAN_F10R2_FB9 CAN_F10R2_FB9_Msk /*!<Filter bit 9 */
  4428. #define CAN_F10R2_FB10_Pos (10U)
  4429. #define CAN_F10R2_FB10_Msk (0x1U << CAN_F10R2_FB10_Pos) /*!< 0x00000400 */
  4430. #define CAN_F10R2_FB10 CAN_F10R2_FB10_Msk /*!<Filter bit 10 */
  4431. #define CAN_F10R2_FB11_Pos (11U)
  4432. #define CAN_F10R2_FB11_Msk (0x1U << CAN_F10R2_FB11_Pos) /*!< 0x00000800 */
  4433. #define CAN_F10R2_FB11 CAN_F10R2_FB11_Msk /*!<Filter bit 11 */
  4434. #define CAN_F10R2_FB12_Pos (12U)
  4435. #define CAN_F10R2_FB12_Msk (0x1U << CAN_F10R2_FB12_Pos) /*!< 0x00001000 */
  4436. #define CAN_F10R2_FB12 CAN_F10R2_FB12_Msk /*!<Filter bit 12 */
  4437. #define CAN_F10R2_FB13_Pos (13U)
  4438. #define CAN_F10R2_FB13_Msk (0x1U << CAN_F10R2_FB13_Pos) /*!< 0x00002000 */
  4439. #define CAN_F10R2_FB13 CAN_F10R2_FB13_Msk /*!<Filter bit 13 */
  4440. #define CAN_F10R2_FB14_Pos (14U)
  4441. #define CAN_F10R2_FB14_Msk (0x1U << CAN_F10R2_FB14_Pos) /*!< 0x00004000 */
  4442. #define CAN_F10R2_FB14 CAN_F10R2_FB14_Msk /*!<Filter bit 14 */
  4443. #define CAN_F10R2_FB15_Pos (15U)
  4444. #define CAN_F10R2_FB15_Msk (0x1U << CAN_F10R2_FB15_Pos) /*!< 0x00008000 */
  4445. #define CAN_F10R2_FB15 CAN_F10R2_FB15_Msk /*!<Filter bit 15 */
  4446. #define CAN_F10R2_FB16_Pos (16U)
  4447. #define CAN_F10R2_FB16_Msk (0x1U << CAN_F10R2_FB16_Pos) /*!< 0x00010000 */
  4448. #define CAN_F10R2_FB16 CAN_F10R2_FB16_Msk /*!<Filter bit 16 */
  4449. #define CAN_F10R2_FB17_Pos (17U)
  4450. #define CAN_F10R2_FB17_Msk (0x1U << CAN_F10R2_FB17_Pos) /*!< 0x00020000 */
  4451. #define CAN_F10R2_FB17 CAN_F10R2_FB17_Msk /*!<Filter bit 17 */
  4452. #define CAN_F10R2_FB18_Pos (18U)
  4453. #define CAN_F10R2_FB18_Msk (0x1U << CAN_F10R2_FB18_Pos) /*!< 0x00040000 */
  4454. #define CAN_F10R2_FB18 CAN_F10R2_FB18_Msk /*!<Filter bit 18 */
  4455. #define CAN_F10R2_FB19_Pos (19U)
  4456. #define CAN_F10R2_FB19_Msk (0x1U << CAN_F10R2_FB19_Pos) /*!< 0x00080000 */
  4457. #define CAN_F10R2_FB19 CAN_F10R2_FB19_Msk /*!<Filter bit 19 */
  4458. #define CAN_F10R2_FB20_Pos (20U)
  4459. #define CAN_F10R2_FB20_Msk (0x1U << CAN_F10R2_FB20_Pos) /*!< 0x00100000 */
  4460. #define CAN_F10R2_FB20 CAN_F10R2_FB20_Msk /*!<Filter bit 20 */
  4461. #define CAN_F10R2_FB21_Pos (21U)
  4462. #define CAN_F10R2_FB21_Msk (0x1U << CAN_F10R2_FB21_Pos) /*!< 0x00200000 */
  4463. #define CAN_F10R2_FB21 CAN_F10R2_FB21_Msk /*!<Filter bit 21 */
  4464. #define CAN_F10R2_FB22_Pos (22U)
  4465. #define CAN_F10R2_FB22_Msk (0x1U << CAN_F10R2_FB22_Pos) /*!< 0x00400000 */
  4466. #define CAN_F10R2_FB22 CAN_F10R2_FB22_Msk /*!<Filter bit 22 */
  4467. #define CAN_F10R2_FB23_Pos (23U)
  4468. #define CAN_F10R2_FB23_Msk (0x1U << CAN_F10R2_FB23_Pos) /*!< 0x00800000 */
  4469. #define CAN_F10R2_FB23 CAN_F10R2_FB23_Msk /*!<Filter bit 23 */
  4470. #define CAN_F10R2_FB24_Pos (24U)
  4471. #define CAN_F10R2_FB24_Msk (0x1U << CAN_F10R2_FB24_Pos) /*!< 0x01000000 */
  4472. #define CAN_F10R2_FB24 CAN_F10R2_FB24_Msk /*!<Filter bit 24 */
  4473. #define CAN_F10R2_FB25_Pos (25U)
  4474. #define CAN_F10R2_FB25_Msk (0x1U << CAN_F10R2_FB25_Pos) /*!< 0x02000000 */
  4475. #define CAN_F10R2_FB25 CAN_F10R2_FB25_Msk /*!<Filter bit 25 */
  4476. #define CAN_F10R2_FB26_Pos (26U)
  4477. #define CAN_F10R2_FB26_Msk (0x1U << CAN_F10R2_FB26_Pos) /*!< 0x04000000 */
  4478. #define CAN_F10R2_FB26 CAN_F10R2_FB26_Msk /*!<Filter bit 26 */
  4479. #define CAN_F10R2_FB27_Pos (27U)
  4480. #define CAN_F10R2_FB27_Msk (0x1U << CAN_F10R2_FB27_Pos) /*!< 0x08000000 */
  4481. #define CAN_F10R2_FB27 CAN_F10R2_FB27_Msk /*!<Filter bit 27 */
  4482. #define CAN_F10R2_FB28_Pos (28U)
  4483. #define CAN_F10R2_FB28_Msk (0x1U << CAN_F10R2_FB28_Pos) /*!< 0x10000000 */
  4484. #define CAN_F10R2_FB28 CAN_F10R2_FB28_Msk /*!<Filter bit 28 */
  4485. #define CAN_F10R2_FB29_Pos (29U)
  4486. #define CAN_F10R2_FB29_Msk (0x1U << CAN_F10R2_FB29_Pos) /*!< 0x20000000 */
  4487. #define CAN_F10R2_FB29 CAN_F10R2_FB29_Msk /*!<Filter bit 29 */
  4488. #define CAN_F10R2_FB30_Pos (30U)
  4489. #define CAN_F10R2_FB30_Msk (0x1U << CAN_F10R2_FB30_Pos) /*!< 0x40000000 */
  4490. #define CAN_F10R2_FB30 CAN_F10R2_FB30_Msk /*!<Filter bit 30 */
  4491. #define CAN_F10R2_FB31_Pos (31U)
  4492. #define CAN_F10R2_FB31_Msk (0x1U << CAN_F10R2_FB31_Pos) /*!< 0x80000000 */
  4493. #define CAN_F10R2_FB31 CAN_F10R2_FB31_Msk /*!<Filter bit 31 */
  4494. /******************* Bit definition for CAN_F11R2 register ******************/
  4495. #define CAN_F11R2_FB0_Pos (0U)
  4496. #define CAN_F11R2_FB0_Msk (0x1U << CAN_F11R2_FB0_Pos) /*!< 0x00000001 */
  4497. #define CAN_F11R2_FB0 CAN_F11R2_FB0_Msk /*!<Filter bit 0 */
  4498. #define CAN_F11R2_FB1_Pos (1U)
  4499. #define CAN_F11R2_FB1_Msk (0x1U << CAN_F11R2_FB1_Pos) /*!< 0x00000002 */
  4500. #define CAN_F11R2_FB1 CAN_F11R2_FB1_Msk /*!<Filter bit 1 */
  4501. #define CAN_F11R2_FB2_Pos (2U)
  4502. #define CAN_F11R2_FB2_Msk (0x1U << CAN_F11R2_FB2_Pos) /*!< 0x00000004 */
  4503. #define CAN_F11R2_FB2 CAN_F11R2_FB2_Msk /*!<Filter bit 2 */
  4504. #define CAN_F11R2_FB3_Pos (3U)
  4505. #define CAN_F11R2_FB3_Msk (0x1U << CAN_F11R2_FB3_Pos) /*!< 0x00000008 */
  4506. #define CAN_F11R2_FB3 CAN_F11R2_FB3_Msk /*!<Filter bit 3 */
  4507. #define CAN_F11R2_FB4_Pos (4U)
  4508. #define CAN_F11R2_FB4_Msk (0x1U << CAN_F11R2_FB4_Pos) /*!< 0x00000010 */
  4509. #define CAN_F11R2_FB4 CAN_F11R2_FB4_Msk /*!<Filter bit 4 */
  4510. #define CAN_F11R2_FB5_Pos (5U)
  4511. #define CAN_F11R2_FB5_Msk (0x1U << CAN_F11R2_FB5_Pos) /*!< 0x00000020 */
  4512. #define CAN_F11R2_FB5 CAN_F11R2_FB5_Msk /*!<Filter bit 5 */
  4513. #define CAN_F11R2_FB6_Pos (6U)
  4514. #define CAN_F11R2_FB6_Msk (0x1U << CAN_F11R2_FB6_Pos) /*!< 0x00000040 */
  4515. #define CAN_F11R2_FB6 CAN_F11R2_FB6_Msk /*!<Filter bit 6 */
  4516. #define CAN_F11R2_FB7_Pos (7U)
  4517. #define CAN_F11R2_FB7_Msk (0x1U << CAN_F11R2_FB7_Pos) /*!< 0x00000080 */
  4518. #define CAN_F11R2_FB7 CAN_F11R2_FB7_Msk /*!<Filter bit 7 */
  4519. #define CAN_F11R2_FB8_Pos (8U)
  4520. #define CAN_F11R2_FB8_Msk (0x1U << CAN_F11R2_FB8_Pos) /*!< 0x00000100 */
  4521. #define CAN_F11R2_FB8 CAN_F11R2_FB8_Msk /*!<Filter bit 8 */
  4522. #define CAN_F11R2_FB9_Pos (9U)
  4523. #define CAN_F11R2_FB9_Msk (0x1U << CAN_F11R2_FB9_Pos) /*!< 0x00000200 */
  4524. #define CAN_F11R2_FB9 CAN_F11R2_FB9_Msk /*!<Filter bit 9 */
  4525. #define CAN_F11R2_FB10_Pos (10U)
  4526. #define CAN_F11R2_FB10_Msk (0x1U << CAN_F11R2_FB10_Pos) /*!< 0x00000400 */
  4527. #define CAN_F11R2_FB10 CAN_F11R2_FB10_Msk /*!<Filter bit 10 */
  4528. #define CAN_F11R2_FB11_Pos (11U)
  4529. #define CAN_F11R2_FB11_Msk (0x1U << CAN_F11R2_FB11_Pos) /*!< 0x00000800 */
  4530. #define CAN_F11R2_FB11 CAN_F11R2_FB11_Msk /*!<Filter bit 11 */
  4531. #define CAN_F11R2_FB12_Pos (12U)
  4532. #define CAN_F11R2_FB12_Msk (0x1U << CAN_F11R2_FB12_Pos) /*!< 0x00001000 */
  4533. #define CAN_F11R2_FB12 CAN_F11R2_FB12_Msk /*!<Filter bit 12 */
  4534. #define CAN_F11R2_FB13_Pos (13U)
  4535. #define CAN_F11R2_FB13_Msk (0x1U << CAN_F11R2_FB13_Pos) /*!< 0x00002000 */
  4536. #define CAN_F11R2_FB13 CAN_F11R2_FB13_Msk /*!<Filter bit 13 */
  4537. #define CAN_F11R2_FB14_Pos (14U)
  4538. #define CAN_F11R2_FB14_Msk (0x1U << CAN_F11R2_FB14_Pos) /*!< 0x00004000 */
  4539. #define CAN_F11R2_FB14 CAN_F11R2_FB14_Msk /*!<Filter bit 14 */
  4540. #define CAN_F11R2_FB15_Pos (15U)
  4541. #define CAN_F11R2_FB15_Msk (0x1U << CAN_F11R2_FB15_Pos) /*!< 0x00008000 */
  4542. #define CAN_F11R2_FB15 CAN_F11R2_FB15_Msk /*!<Filter bit 15 */
  4543. #define CAN_F11R2_FB16_Pos (16U)
  4544. #define CAN_F11R2_FB16_Msk (0x1U << CAN_F11R2_FB16_Pos) /*!< 0x00010000 */
  4545. #define CAN_F11R2_FB16 CAN_F11R2_FB16_Msk /*!<Filter bit 16 */
  4546. #define CAN_F11R2_FB17_Pos (17U)
  4547. #define CAN_F11R2_FB17_Msk (0x1U << CAN_F11R2_FB17_Pos) /*!< 0x00020000 */
  4548. #define CAN_F11R2_FB17 CAN_F11R2_FB17_Msk /*!<Filter bit 17 */
  4549. #define CAN_F11R2_FB18_Pos (18U)
  4550. #define CAN_F11R2_FB18_Msk (0x1U << CAN_F11R2_FB18_Pos) /*!< 0x00040000 */
  4551. #define CAN_F11R2_FB18 CAN_F11R2_FB18_Msk /*!<Filter bit 18 */
  4552. #define CAN_F11R2_FB19_Pos (19U)
  4553. #define CAN_F11R2_FB19_Msk (0x1U << CAN_F11R2_FB19_Pos) /*!< 0x00080000 */
  4554. #define CAN_F11R2_FB19 CAN_F11R2_FB19_Msk /*!<Filter bit 19 */
  4555. #define CAN_F11R2_FB20_Pos (20U)
  4556. #define CAN_F11R2_FB20_Msk (0x1U << CAN_F11R2_FB20_Pos) /*!< 0x00100000 */
  4557. #define CAN_F11R2_FB20 CAN_F11R2_FB20_Msk /*!<Filter bit 20 */
  4558. #define CAN_F11R2_FB21_Pos (21U)
  4559. #define CAN_F11R2_FB21_Msk (0x1U << CAN_F11R2_FB21_Pos) /*!< 0x00200000 */
  4560. #define CAN_F11R2_FB21 CAN_F11R2_FB21_Msk /*!<Filter bit 21 */
  4561. #define CAN_F11R2_FB22_Pos (22U)
  4562. #define CAN_F11R2_FB22_Msk (0x1U << CAN_F11R2_FB22_Pos) /*!< 0x00400000 */
  4563. #define CAN_F11R2_FB22 CAN_F11R2_FB22_Msk /*!<Filter bit 22 */
  4564. #define CAN_F11R2_FB23_Pos (23U)
  4565. #define CAN_F11R2_FB23_Msk (0x1U << CAN_F11R2_FB23_Pos) /*!< 0x00800000 */
  4566. #define CAN_F11R2_FB23 CAN_F11R2_FB23_Msk /*!<Filter bit 23 */
  4567. #define CAN_F11R2_FB24_Pos (24U)
  4568. #define CAN_F11R2_FB24_Msk (0x1U << CAN_F11R2_FB24_Pos) /*!< 0x01000000 */
  4569. #define CAN_F11R2_FB24 CAN_F11R2_FB24_Msk /*!<Filter bit 24 */
  4570. #define CAN_F11R2_FB25_Pos (25U)
  4571. #define CAN_F11R2_FB25_Msk (0x1U << CAN_F11R2_FB25_Pos) /*!< 0x02000000 */
  4572. #define CAN_F11R2_FB25 CAN_F11R2_FB25_Msk /*!<Filter bit 25 */
  4573. #define CAN_F11R2_FB26_Pos (26U)
  4574. #define CAN_F11R2_FB26_Msk (0x1U << CAN_F11R2_FB26_Pos) /*!< 0x04000000 */
  4575. #define CAN_F11R2_FB26 CAN_F11R2_FB26_Msk /*!<Filter bit 26 */
  4576. #define CAN_F11R2_FB27_Pos (27U)
  4577. #define CAN_F11R2_FB27_Msk (0x1U << CAN_F11R2_FB27_Pos) /*!< 0x08000000 */
  4578. #define CAN_F11R2_FB27 CAN_F11R2_FB27_Msk /*!<Filter bit 27 */
  4579. #define CAN_F11R2_FB28_Pos (28U)
  4580. #define CAN_F11R2_FB28_Msk (0x1U << CAN_F11R2_FB28_Pos) /*!< 0x10000000 */
  4581. #define CAN_F11R2_FB28 CAN_F11R2_FB28_Msk /*!<Filter bit 28 */
  4582. #define CAN_F11R2_FB29_Pos (29U)
  4583. #define CAN_F11R2_FB29_Msk (0x1U << CAN_F11R2_FB29_Pos) /*!< 0x20000000 */
  4584. #define CAN_F11R2_FB29 CAN_F11R2_FB29_Msk /*!<Filter bit 29 */
  4585. #define CAN_F11R2_FB30_Pos (30U)
  4586. #define CAN_F11R2_FB30_Msk (0x1U << CAN_F11R2_FB30_Pos) /*!< 0x40000000 */
  4587. #define CAN_F11R2_FB30 CAN_F11R2_FB30_Msk /*!<Filter bit 30 */
  4588. #define CAN_F11R2_FB31_Pos (31U)
  4589. #define CAN_F11R2_FB31_Msk (0x1U << CAN_F11R2_FB31_Pos) /*!< 0x80000000 */
  4590. #define CAN_F11R2_FB31 CAN_F11R2_FB31_Msk /*!<Filter bit 31 */
  4591. /******************* Bit definition for CAN_F12R2 register ******************/
  4592. #define CAN_F12R2_FB0_Pos (0U)
  4593. #define CAN_F12R2_FB0_Msk (0x1U << CAN_F12R2_FB0_Pos) /*!< 0x00000001 */
  4594. #define CAN_F12R2_FB0 CAN_F12R2_FB0_Msk /*!<Filter bit 0 */
  4595. #define CAN_F12R2_FB1_Pos (1U)
  4596. #define CAN_F12R2_FB1_Msk (0x1U << CAN_F12R2_FB1_Pos) /*!< 0x00000002 */
  4597. #define CAN_F12R2_FB1 CAN_F12R2_FB1_Msk /*!<Filter bit 1 */
  4598. #define CAN_F12R2_FB2_Pos (2U)
  4599. #define CAN_F12R2_FB2_Msk (0x1U << CAN_F12R2_FB2_Pos) /*!< 0x00000004 */
  4600. #define CAN_F12R2_FB2 CAN_F12R2_FB2_Msk /*!<Filter bit 2 */
  4601. #define CAN_F12R2_FB3_Pos (3U)
  4602. #define CAN_F12R2_FB3_Msk (0x1U << CAN_F12R2_FB3_Pos) /*!< 0x00000008 */
  4603. #define CAN_F12R2_FB3 CAN_F12R2_FB3_Msk /*!<Filter bit 3 */
  4604. #define CAN_F12R2_FB4_Pos (4U)
  4605. #define CAN_F12R2_FB4_Msk (0x1U << CAN_F12R2_FB4_Pos) /*!< 0x00000010 */
  4606. #define CAN_F12R2_FB4 CAN_F12R2_FB4_Msk /*!<Filter bit 4 */
  4607. #define CAN_F12R2_FB5_Pos (5U)
  4608. #define CAN_F12R2_FB5_Msk (0x1U << CAN_F12R2_FB5_Pos) /*!< 0x00000020 */
  4609. #define CAN_F12R2_FB5 CAN_F12R2_FB5_Msk /*!<Filter bit 5 */
  4610. #define CAN_F12R2_FB6_Pos (6U)
  4611. #define CAN_F12R2_FB6_Msk (0x1U << CAN_F12R2_FB6_Pos) /*!< 0x00000040 */
  4612. #define CAN_F12R2_FB6 CAN_F12R2_FB6_Msk /*!<Filter bit 6 */
  4613. #define CAN_F12R2_FB7_Pos (7U)
  4614. #define CAN_F12R2_FB7_Msk (0x1U << CAN_F12R2_FB7_Pos) /*!< 0x00000080 */
  4615. #define CAN_F12R2_FB7 CAN_F12R2_FB7_Msk /*!<Filter bit 7 */
  4616. #define CAN_F12R2_FB8_Pos (8U)
  4617. #define CAN_F12R2_FB8_Msk (0x1U << CAN_F12R2_FB8_Pos) /*!< 0x00000100 */
  4618. #define CAN_F12R2_FB8 CAN_F12R2_FB8_Msk /*!<Filter bit 8 */
  4619. #define CAN_F12R2_FB9_Pos (9U)
  4620. #define CAN_F12R2_FB9_Msk (0x1U << CAN_F12R2_FB9_Pos) /*!< 0x00000200 */
  4621. #define CAN_F12R2_FB9 CAN_F12R2_FB9_Msk /*!<Filter bit 9 */
  4622. #define CAN_F12R2_FB10_Pos (10U)
  4623. #define CAN_F12R2_FB10_Msk (0x1U << CAN_F12R2_FB10_Pos) /*!< 0x00000400 */
  4624. #define CAN_F12R2_FB10 CAN_F12R2_FB10_Msk /*!<Filter bit 10 */
  4625. #define CAN_F12R2_FB11_Pos (11U)
  4626. #define CAN_F12R2_FB11_Msk (0x1U << CAN_F12R2_FB11_Pos) /*!< 0x00000800 */
  4627. #define CAN_F12R2_FB11 CAN_F12R2_FB11_Msk /*!<Filter bit 11 */
  4628. #define CAN_F12R2_FB12_Pos (12U)
  4629. #define CAN_F12R2_FB12_Msk (0x1U << CAN_F12R2_FB12_Pos) /*!< 0x00001000 */
  4630. #define CAN_F12R2_FB12 CAN_F12R2_FB12_Msk /*!<Filter bit 12 */
  4631. #define CAN_F12R2_FB13_Pos (13U)
  4632. #define CAN_F12R2_FB13_Msk (0x1U << CAN_F12R2_FB13_Pos) /*!< 0x00002000 */
  4633. #define CAN_F12R2_FB13 CAN_F12R2_FB13_Msk /*!<Filter bit 13 */
  4634. #define CAN_F12R2_FB14_Pos (14U)
  4635. #define CAN_F12R2_FB14_Msk (0x1U << CAN_F12R2_FB14_Pos) /*!< 0x00004000 */
  4636. #define CAN_F12R2_FB14 CAN_F12R2_FB14_Msk /*!<Filter bit 14 */
  4637. #define CAN_F12R2_FB15_Pos (15U)
  4638. #define CAN_F12R2_FB15_Msk (0x1U << CAN_F12R2_FB15_Pos) /*!< 0x00008000 */
  4639. #define CAN_F12R2_FB15 CAN_F12R2_FB15_Msk /*!<Filter bit 15 */
  4640. #define CAN_F12R2_FB16_Pos (16U)
  4641. #define CAN_F12R2_FB16_Msk (0x1U << CAN_F12R2_FB16_Pos) /*!< 0x00010000 */
  4642. #define CAN_F12R2_FB16 CAN_F12R2_FB16_Msk /*!<Filter bit 16 */
  4643. #define CAN_F12R2_FB17_Pos (17U)
  4644. #define CAN_F12R2_FB17_Msk (0x1U << CAN_F12R2_FB17_Pos) /*!< 0x00020000 */
  4645. #define CAN_F12R2_FB17 CAN_F12R2_FB17_Msk /*!<Filter bit 17 */
  4646. #define CAN_F12R2_FB18_Pos (18U)
  4647. #define CAN_F12R2_FB18_Msk (0x1U << CAN_F12R2_FB18_Pos) /*!< 0x00040000 */
  4648. #define CAN_F12R2_FB18 CAN_F12R2_FB18_Msk /*!<Filter bit 18 */
  4649. #define CAN_F12R2_FB19_Pos (19U)
  4650. #define CAN_F12R2_FB19_Msk (0x1U << CAN_F12R2_FB19_Pos) /*!< 0x00080000 */
  4651. #define CAN_F12R2_FB19 CAN_F12R2_FB19_Msk /*!<Filter bit 19 */
  4652. #define CAN_F12R2_FB20_Pos (20U)
  4653. #define CAN_F12R2_FB20_Msk (0x1U << CAN_F12R2_FB20_Pos) /*!< 0x00100000 */
  4654. #define CAN_F12R2_FB20 CAN_F12R2_FB20_Msk /*!<Filter bit 20 */
  4655. #define CAN_F12R2_FB21_Pos (21U)
  4656. #define CAN_F12R2_FB21_Msk (0x1U << CAN_F12R2_FB21_Pos) /*!< 0x00200000 */
  4657. #define CAN_F12R2_FB21 CAN_F12R2_FB21_Msk /*!<Filter bit 21 */
  4658. #define CAN_F12R2_FB22_Pos (22U)
  4659. #define CAN_F12R2_FB22_Msk (0x1U << CAN_F12R2_FB22_Pos) /*!< 0x00400000 */
  4660. #define CAN_F12R2_FB22 CAN_F12R2_FB22_Msk /*!<Filter bit 22 */
  4661. #define CAN_F12R2_FB23_Pos (23U)
  4662. #define CAN_F12R2_FB23_Msk (0x1U << CAN_F12R2_FB23_Pos) /*!< 0x00800000 */
  4663. #define CAN_F12R2_FB23 CAN_F12R2_FB23_Msk /*!<Filter bit 23 */
  4664. #define CAN_F12R2_FB24_Pos (24U)
  4665. #define CAN_F12R2_FB24_Msk (0x1U << CAN_F12R2_FB24_Pos) /*!< 0x01000000 */
  4666. #define CAN_F12R2_FB24 CAN_F12R2_FB24_Msk /*!<Filter bit 24 */
  4667. #define CAN_F12R2_FB25_Pos (25U)
  4668. #define CAN_F12R2_FB25_Msk (0x1U << CAN_F12R2_FB25_Pos) /*!< 0x02000000 */
  4669. #define CAN_F12R2_FB25 CAN_F12R2_FB25_Msk /*!<Filter bit 25 */
  4670. #define CAN_F12R2_FB26_Pos (26U)
  4671. #define CAN_F12R2_FB26_Msk (0x1U << CAN_F12R2_FB26_Pos) /*!< 0x04000000 */
  4672. #define CAN_F12R2_FB26 CAN_F12R2_FB26_Msk /*!<Filter bit 26 */
  4673. #define CAN_F12R2_FB27_Pos (27U)
  4674. #define CAN_F12R2_FB27_Msk (0x1U << CAN_F12R2_FB27_Pos) /*!< 0x08000000 */
  4675. #define CAN_F12R2_FB27 CAN_F12R2_FB27_Msk /*!<Filter bit 27 */
  4676. #define CAN_F12R2_FB28_Pos (28U)
  4677. #define CAN_F12R2_FB28_Msk (0x1U << CAN_F12R2_FB28_Pos) /*!< 0x10000000 */
  4678. #define CAN_F12R2_FB28 CAN_F12R2_FB28_Msk /*!<Filter bit 28 */
  4679. #define CAN_F12R2_FB29_Pos (29U)
  4680. #define CAN_F12R2_FB29_Msk (0x1U << CAN_F12R2_FB29_Pos) /*!< 0x20000000 */
  4681. #define CAN_F12R2_FB29 CAN_F12R2_FB29_Msk /*!<Filter bit 29 */
  4682. #define CAN_F12R2_FB30_Pos (30U)
  4683. #define CAN_F12R2_FB30_Msk (0x1U << CAN_F12R2_FB30_Pos) /*!< 0x40000000 */
  4684. #define CAN_F12R2_FB30 CAN_F12R2_FB30_Msk /*!<Filter bit 30 */
  4685. #define CAN_F12R2_FB31_Pos (31U)
  4686. #define CAN_F12R2_FB31_Msk (0x1U << CAN_F12R2_FB31_Pos) /*!< 0x80000000 */
  4687. #define CAN_F12R2_FB31 CAN_F12R2_FB31_Msk /*!<Filter bit 31 */
  4688. /******************* Bit definition for CAN_F13R2 register ******************/
  4689. #define CAN_F13R2_FB0_Pos (0U)
  4690. #define CAN_F13R2_FB0_Msk (0x1U << CAN_F13R2_FB0_Pos) /*!< 0x00000001 */
  4691. #define CAN_F13R2_FB0 CAN_F13R2_FB0_Msk /*!<Filter bit 0 */
  4692. #define CAN_F13R2_FB1_Pos (1U)
  4693. #define CAN_F13R2_FB1_Msk (0x1U << CAN_F13R2_FB1_Pos) /*!< 0x00000002 */
  4694. #define CAN_F13R2_FB1 CAN_F13R2_FB1_Msk /*!<Filter bit 1 */
  4695. #define CAN_F13R2_FB2_Pos (2U)
  4696. #define CAN_F13R2_FB2_Msk (0x1U << CAN_F13R2_FB2_Pos) /*!< 0x00000004 */
  4697. #define CAN_F13R2_FB2 CAN_F13R2_FB2_Msk /*!<Filter bit 2 */
  4698. #define CAN_F13R2_FB3_Pos (3U)
  4699. #define CAN_F13R2_FB3_Msk (0x1U << CAN_F13R2_FB3_Pos) /*!< 0x00000008 */
  4700. #define CAN_F13R2_FB3 CAN_F13R2_FB3_Msk /*!<Filter bit 3 */
  4701. #define CAN_F13R2_FB4_Pos (4U)
  4702. #define CAN_F13R2_FB4_Msk (0x1U << CAN_F13R2_FB4_Pos) /*!< 0x00000010 */
  4703. #define CAN_F13R2_FB4 CAN_F13R2_FB4_Msk /*!<Filter bit 4 */
  4704. #define CAN_F13R2_FB5_Pos (5U)
  4705. #define CAN_F13R2_FB5_Msk (0x1U << CAN_F13R2_FB5_Pos) /*!< 0x00000020 */
  4706. #define CAN_F13R2_FB5 CAN_F13R2_FB5_Msk /*!<Filter bit 5 */
  4707. #define CAN_F13R2_FB6_Pos (6U)
  4708. #define CAN_F13R2_FB6_Msk (0x1U << CAN_F13R2_FB6_Pos) /*!< 0x00000040 */
  4709. #define CAN_F13R2_FB6 CAN_F13R2_FB6_Msk /*!<Filter bit 6 */
  4710. #define CAN_F13R2_FB7_Pos (7U)
  4711. #define CAN_F13R2_FB7_Msk (0x1U << CAN_F13R2_FB7_Pos) /*!< 0x00000080 */
  4712. #define CAN_F13R2_FB7 CAN_F13R2_FB7_Msk /*!<Filter bit 7 */
  4713. #define CAN_F13R2_FB8_Pos (8U)
  4714. #define CAN_F13R2_FB8_Msk (0x1U << CAN_F13R2_FB8_Pos) /*!< 0x00000100 */
  4715. #define CAN_F13R2_FB8 CAN_F13R2_FB8_Msk /*!<Filter bit 8 */
  4716. #define CAN_F13R2_FB9_Pos (9U)
  4717. #define CAN_F13R2_FB9_Msk (0x1U << CAN_F13R2_FB9_Pos) /*!< 0x00000200 */
  4718. #define CAN_F13R2_FB9 CAN_F13R2_FB9_Msk /*!<Filter bit 9 */
  4719. #define CAN_F13R2_FB10_Pos (10U)
  4720. #define CAN_F13R2_FB10_Msk (0x1U << CAN_F13R2_FB10_Pos) /*!< 0x00000400 */
  4721. #define CAN_F13R2_FB10 CAN_F13R2_FB10_Msk /*!<Filter bit 10 */
  4722. #define CAN_F13R2_FB11_Pos (11U)
  4723. #define CAN_F13R2_FB11_Msk (0x1U << CAN_F13R2_FB11_Pos) /*!< 0x00000800 */
  4724. #define CAN_F13R2_FB11 CAN_F13R2_FB11_Msk /*!<Filter bit 11 */
  4725. #define CAN_F13R2_FB12_Pos (12U)
  4726. #define CAN_F13R2_FB12_Msk (0x1U << CAN_F13R2_FB12_Pos) /*!< 0x00001000 */
  4727. #define CAN_F13R2_FB12 CAN_F13R2_FB12_Msk /*!<Filter bit 12 */
  4728. #define CAN_F13R2_FB13_Pos (13U)
  4729. #define CAN_F13R2_FB13_Msk (0x1U << CAN_F13R2_FB13_Pos) /*!< 0x00002000 */
  4730. #define CAN_F13R2_FB13 CAN_F13R2_FB13_Msk /*!<Filter bit 13 */
  4731. #define CAN_F13R2_FB14_Pos (14U)
  4732. #define CAN_F13R2_FB14_Msk (0x1U << CAN_F13R2_FB14_Pos) /*!< 0x00004000 */
  4733. #define CAN_F13R2_FB14 CAN_F13R2_FB14_Msk /*!<Filter bit 14 */
  4734. #define CAN_F13R2_FB15_Pos (15U)
  4735. #define CAN_F13R2_FB15_Msk (0x1U << CAN_F13R2_FB15_Pos) /*!< 0x00008000 */
  4736. #define CAN_F13R2_FB15 CAN_F13R2_FB15_Msk /*!<Filter bit 15 */
  4737. #define CAN_F13R2_FB16_Pos (16U)
  4738. #define CAN_F13R2_FB16_Msk (0x1U << CAN_F13R2_FB16_Pos) /*!< 0x00010000 */
  4739. #define CAN_F13R2_FB16 CAN_F13R2_FB16_Msk /*!<Filter bit 16 */
  4740. #define CAN_F13R2_FB17_Pos (17U)
  4741. #define CAN_F13R2_FB17_Msk (0x1U << CAN_F13R2_FB17_Pos) /*!< 0x00020000 */
  4742. #define CAN_F13R2_FB17 CAN_F13R2_FB17_Msk /*!<Filter bit 17 */
  4743. #define CAN_F13R2_FB18_Pos (18U)
  4744. #define CAN_F13R2_FB18_Msk (0x1U << CAN_F13R2_FB18_Pos) /*!< 0x00040000 */
  4745. #define CAN_F13R2_FB18 CAN_F13R2_FB18_Msk /*!<Filter bit 18 */
  4746. #define CAN_F13R2_FB19_Pos (19U)
  4747. #define CAN_F13R2_FB19_Msk (0x1U << CAN_F13R2_FB19_Pos) /*!< 0x00080000 */
  4748. #define CAN_F13R2_FB19 CAN_F13R2_FB19_Msk /*!<Filter bit 19 */
  4749. #define CAN_F13R2_FB20_Pos (20U)
  4750. #define CAN_F13R2_FB20_Msk (0x1U << CAN_F13R2_FB20_Pos) /*!< 0x00100000 */
  4751. #define CAN_F13R2_FB20 CAN_F13R2_FB20_Msk /*!<Filter bit 20 */
  4752. #define CAN_F13R2_FB21_Pos (21U)
  4753. #define CAN_F13R2_FB21_Msk (0x1U << CAN_F13R2_FB21_Pos) /*!< 0x00200000 */
  4754. #define CAN_F13R2_FB21 CAN_F13R2_FB21_Msk /*!<Filter bit 21 */
  4755. #define CAN_F13R2_FB22_Pos (22U)
  4756. #define CAN_F13R2_FB22_Msk (0x1U << CAN_F13R2_FB22_Pos) /*!< 0x00400000 */
  4757. #define CAN_F13R2_FB22 CAN_F13R2_FB22_Msk /*!<Filter bit 22 */
  4758. #define CAN_F13R2_FB23_Pos (23U)
  4759. #define CAN_F13R2_FB23_Msk (0x1U << CAN_F13R2_FB23_Pos) /*!< 0x00800000 */
  4760. #define CAN_F13R2_FB23 CAN_F13R2_FB23_Msk /*!<Filter bit 23 */
  4761. #define CAN_F13R2_FB24_Pos (24U)
  4762. #define CAN_F13R2_FB24_Msk (0x1U << CAN_F13R2_FB24_Pos) /*!< 0x01000000 */
  4763. #define CAN_F13R2_FB24 CAN_F13R2_FB24_Msk /*!<Filter bit 24 */
  4764. #define CAN_F13R2_FB25_Pos (25U)
  4765. #define CAN_F13R2_FB25_Msk (0x1U << CAN_F13R2_FB25_Pos) /*!< 0x02000000 */
  4766. #define CAN_F13R2_FB25 CAN_F13R2_FB25_Msk /*!<Filter bit 25 */
  4767. #define CAN_F13R2_FB26_Pos (26U)
  4768. #define CAN_F13R2_FB26_Msk (0x1U << CAN_F13R2_FB26_Pos) /*!< 0x04000000 */
  4769. #define CAN_F13R2_FB26 CAN_F13R2_FB26_Msk /*!<Filter bit 26 */
  4770. #define CAN_F13R2_FB27_Pos (27U)
  4771. #define CAN_F13R2_FB27_Msk (0x1U << CAN_F13R2_FB27_Pos) /*!< 0x08000000 */
  4772. #define CAN_F13R2_FB27 CAN_F13R2_FB27_Msk /*!<Filter bit 27 */
  4773. #define CAN_F13R2_FB28_Pos (28U)
  4774. #define CAN_F13R2_FB28_Msk (0x1U << CAN_F13R2_FB28_Pos) /*!< 0x10000000 */
  4775. #define CAN_F13R2_FB28 CAN_F13R2_FB28_Msk /*!<Filter bit 28 */
  4776. #define CAN_F13R2_FB29_Pos (29U)
  4777. #define CAN_F13R2_FB29_Msk (0x1U << CAN_F13R2_FB29_Pos) /*!< 0x20000000 */
  4778. #define CAN_F13R2_FB29 CAN_F13R2_FB29_Msk /*!<Filter bit 29 */
  4779. #define CAN_F13R2_FB30_Pos (30U)
  4780. #define CAN_F13R2_FB30_Msk (0x1U << CAN_F13R2_FB30_Pos) /*!< 0x40000000 */
  4781. #define CAN_F13R2_FB30 CAN_F13R2_FB30_Msk /*!<Filter bit 30 */
  4782. #define CAN_F13R2_FB31_Pos (31U)
  4783. #define CAN_F13R2_FB31_Msk (0x1U << CAN_F13R2_FB31_Pos) /*!< 0x80000000 */
  4784. #define CAN_F13R2_FB31 CAN_F13R2_FB31_Msk /*!<Filter bit 31 */
  4785. /******************************************************************************/
  4786. /* */
  4787. /* CRC calculation unit (CRC) */
  4788. /* */
  4789. /******************************************************************************/
  4790. /******************* Bit definition for CRC_DR register *********************/
  4791. #define CRC_DR_DR_Pos (0U)
  4792. #define CRC_DR_DR_Msk (0xFFFFFFFFU << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  4793. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  4794. /******************* Bit definition for CRC_IDR register ********************/
  4795. #define CRC_IDR_IDR ((uint8_t)0xFFU) /*!< General-purpose 8-bit data register bits */
  4796. /******************** Bit definition for CRC_CR register ********************/
  4797. #define CRC_CR_RESET_Pos (0U)
  4798. #define CRC_CR_RESET_Msk (0x1U << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  4799. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  4800. #define CRC_CR_POLYSIZE_Pos (3U)
  4801. #define CRC_CR_POLYSIZE_Msk (0x3U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  4802. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  4803. #define CRC_CR_POLYSIZE_0 (0x1U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  4804. #define CRC_CR_POLYSIZE_1 (0x2U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  4805. #define CRC_CR_REV_IN_Pos (5U)
  4806. #define CRC_CR_REV_IN_Msk (0x3U << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  4807. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  4808. #define CRC_CR_REV_IN_0 (0x1U << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  4809. #define CRC_CR_REV_IN_1 (0x2U << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  4810. #define CRC_CR_REV_OUT_Pos (7U)
  4811. #define CRC_CR_REV_OUT_Msk (0x1U << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  4812. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  4813. /******************* Bit definition for CRC_INIT register *******************/
  4814. #define CRC_INIT_INIT_Pos (0U)
  4815. #define CRC_INIT_INIT_Msk (0xFFFFFFFFU << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  4816. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  4817. /******************* Bit definition for CRC_POL register ********************/
  4818. #define CRC_POL_POL_Pos (0U)
  4819. #define CRC_POL_POL_Msk (0xFFFFFFFFU << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  4820. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  4821. /******************************************************************************/
  4822. /* */
  4823. /* Digital to Analog Converter (DAC) */
  4824. /* */
  4825. /******************************************************************************/
  4826. /*
  4827. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  4828. */
  4829. #define DAC_CHANNEL2_SUPPORT /*!< DAC feature available only on specific devices: DAC channel 2 available (may not be available on all DAC instances DACx) */
  4830. /******************** Bit definition for DAC_CR register ********************/
  4831. #define DAC_CR_EN1_Pos (0U)
  4832. #define DAC_CR_EN1_Msk (0x1U << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  4833. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!< DAC channel1 enable */
  4834. #define DAC_CR_BOFF1_Pos (1U)
  4835. #define DAC_CR_BOFF1_Msk (0x1U << DAC_CR_BOFF1_Pos) /*!< 0x00000002 */
  4836. #define DAC_CR_BOFF1 DAC_CR_BOFF1_Msk /*!< DAC channel1 output buffer disable */
  4837. #define DAC_CR_TEN1_Pos (2U)
  4838. #define DAC_CR_TEN1_Msk (0x1U << DAC_CR_TEN1_Pos) /*!< 0x00000004 */
  4839. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!< DAC channel1 Trigger enable */
  4840. #define DAC_CR_TSEL1_Pos (3U)
  4841. #define DAC_CR_TSEL1_Msk (0x7U << DAC_CR_TSEL1_Pos) /*!< 0x00000038 */
  4842. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!< TSEL1[2:0] (DAC channel1 Trigger selection) */
  4843. #define DAC_CR_TSEL1_0 (0x1U << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  4844. #define DAC_CR_TSEL1_1 (0x2U << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  4845. #define DAC_CR_TSEL1_2 (0x4U << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  4846. #define DAC_CR_WAVE1_Pos (6U)
  4847. #define DAC_CR_WAVE1_Msk (0x3U << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  4848. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!< WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  4849. #define DAC_CR_WAVE1_0 (0x1U << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  4850. #define DAC_CR_WAVE1_1 (0x2U << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  4851. #define DAC_CR_MAMP1_Pos (8U)
  4852. #define DAC_CR_MAMP1_Msk (0xFU << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  4853. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!< MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  4854. #define DAC_CR_MAMP1_0 (0x1U << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  4855. #define DAC_CR_MAMP1_1 (0x2U << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  4856. #define DAC_CR_MAMP1_2 (0x4U << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  4857. #define DAC_CR_MAMP1_3 (0x8U << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  4858. #define DAC_CR_DMAEN1_Pos (12U)
  4859. #define DAC_CR_DMAEN1_Msk (0x1U << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  4860. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!< DAC channel1 DMA enable */
  4861. #define DAC_CR_DMAUDRIE1_Pos (13U)
  4862. #define DAC_CR_DMAUDRIE1_Msk (0x1U << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  4863. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!< DAC channel1 DMA underrun IT enable */
  4864. #define DAC_CR_EN2_Pos (16U)
  4865. #define DAC_CR_EN2_Msk (0x1U << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  4866. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!< DAC channel2 enable */
  4867. #define DAC_CR_BOFF2_Pos (17U)
  4868. #define DAC_CR_BOFF2_Msk (0x1U << DAC_CR_BOFF2_Pos) /*!< 0x00020000 */
  4869. #define DAC_CR_BOFF2 DAC_CR_BOFF2_Msk /*!< DAC channel2 output buffer disable */
  4870. #define DAC_CR_TEN2_Pos (18U)
  4871. #define DAC_CR_TEN2_Msk (0x1U << DAC_CR_TEN2_Pos) /*!< 0x00040000 */
  4872. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!< DAC channel2 Trigger enable */
  4873. #define DAC_CR_TSEL2_Pos (19U)
  4874. #define DAC_CR_TSEL2_Msk (0x7U << DAC_CR_TSEL2_Pos) /*!< 0x00380000 */
  4875. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!< TSEL2[2:0] (DAC channel2 Trigger selection) */
  4876. #define DAC_CR_TSEL2_0 (0x1U << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  4877. #define DAC_CR_TSEL2_1 (0x2U << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  4878. #define DAC_CR_TSEL2_2 (0x4U << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  4879. #define DAC_CR_WAVE2_Pos (22U)
  4880. #define DAC_CR_WAVE2_Msk (0x3U << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  4881. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!< WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  4882. #define DAC_CR_WAVE2_0 (0x1U << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  4883. #define DAC_CR_WAVE2_1 (0x2U << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  4884. #define DAC_CR_MAMP2_Pos (24U)
  4885. #define DAC_CR_MAMP2_Msk (0xFU << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  4886. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!< MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  4887. #define DAC_CR_MAMP2_0 (0x1U << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  4888. #define DAC_CR_MAMP2_1 (0x2U << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  4889. #define DAC_CR_MAMP2_2 (0x4U << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  4890. #define DAC_CR_MAMP2_3 (0x8U << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  4891. #define DAC_CR_DMAEN2_Pos (28U)
  4892. #define DAC_CR_DMAEN2_Msk (0x1U << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  4893. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!< DAC channel2 DMA enabled */
  4894. #define DAC_CR_DMAUDRIE2_Pos (29U)
  4895. #define DAC_CR_DMAUDRIE2_Msk (0x1U << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  4896. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!< DAC channel2 DMA underrun IT enable */
  4897. /***************** Bit definition for DAC_SWTRIGR register ******************/
  4898. #define DAC_SWTRIGR_SWTRIG1_Pos (0U)
  4899. #define DAC_SWTRIGR_SWTRIG1_Msk (0x1U << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */
  4900. #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!< DAC channel1 software trigger */
  4901. #define DAC_SWTRIGR_SWTRIG2_Pos (1U)
  4902. #define DAC_SWTRIGR_SWTRIG2_Msk (0x1U << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */
  4903. #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!< DAC channel2 software trigger */
  4904. /***************** Bit definition for DAC_DHR12R1 register ******************/
  4905. #define DAC_DHR12R1_DACC1DHR_Pos (0U)
  4906. #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFU << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */
  4907. #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  4908. /***************** Bit definition for DAC_DHR12L1 register ******************/
  4909. #define DAC_DHR12L1_DACC1DHR_Pos (4U)
  4910. #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFU << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  4911. #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  4912. /****************** Bit definition for DAC_DHR8R1 register ******************/
  4913. #define DAC_DHR8R1_DACC1DHR_Pos (0U)
  4914. #define DAC_DHR8R1_DACC1DHR_Msk (0xFFU << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */
  4915. #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  4916. /***************** Bit definition for DAC_DHR12R2 register ******************/
  4917. #define DAC_DHR12R2_DACC2DHR_Pos (0U)
  4918. #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFU << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */
  4919. #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  4920. /***************** Bit definition for DAC_DHR12L2 register ******************/
  4921. #define DAC_DHR12L2_DACC2DHR_Pos (4U)
  4922. #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFU << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */
  4923. #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  4924. /****************** Bit definition for DAC_DHR8R2 register ******************/
  4925. #define DAC_DHR8R2_DACC2DHR_Pos (0U)
  4926. #define DAC_DHR8R2_DACC2DHR_Msk (0xFFU << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */
  4927. #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  4928. /***************** Bit definition for DAC_DHR12RD register ******************/
  4929. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  4930. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFU << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  4931. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  4932. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  4933. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFU << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  4934. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  4935. /***************** Bit definition for DAC_DHR12LD register ******************/
  4936. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  4937. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFU << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  4938. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  4939. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  4940. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFU << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  4941. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  4942. /****************** Bit definition for DAC_DHR8RD register ******************/
  4943. #define DAC_DHR8RD_DACC1DHR_Pos (0U)
  4944. #define DAC_DHR8RD_DACC1DHR_Msk (0xFFU << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */
  4945. #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  4946. #define DAC_DHR8RD_DACC2DHR_Pos (8U)
  4947. #define DAC_DHR8RD_DACC2DHR_Msk (0xFFU << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */
  4948. #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  4949. /******************* Bit definition for DAC_DOR1 register *******************/
  4950. #define DAC_DOR1_DACC1DOR_Pos (0U)
  4951. #define DAC_DOR1_DACC1DOR_Msk (0xFFFU << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */
  4952. #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!< DAC channel1 data output */
  4953. /******************* Bit definition for DAC_DOR2 register *******************/
  4954. #define DAC_DOR2_DACC2DOR_Pos (0U)
  4955. #define DAC_DOR2_DACC2DOR_Msk (0xFFFU << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */
  4956. #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!< DAC channel2 data output */
  4957. /******************** Bit definition for DAC_SR register ********************/
  4958. #define DAC_SR_DMAUDR1_Pos (13U)
  4959. #define DAC_SR_DMAUDR1_Msk (0x1U << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  4960. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!< DAC channel1 DMA underrun flag */
  4961. #define DAC_SR_DMAUDR2_Pos (29U)
  4962. #define DAC_SR_DMAUDR2_Msk (0x1U << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  4963. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!< DAC channel2 DMA underrun flag */
  4964. /******************************************************************************/
  4965. /* */
  4966. /* Debug MCU (DBGMCU) */
  4967. /* */
  4968. /******************************************************************************/
  4969. /******************** Bit definition for DBGMCU_IDCODE register *************/
  4970. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  4971. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFU << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
  4972. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk
  4973. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  4974. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFU << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */
  4975. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk
  4976. /******************** Bit definition for DBGMCU_CR register *****************/
  4977. #define DBGMCU_CR_DBG_SLEEP_Pos (0U)
  4978. #define DBGMCU_CR_DBG_SLEEP_Msk (0x1U << DBGMCU_CR_DBG_SLEEP_Pos) /*!< 0x00000001 */
  4979. #define DBGMCU_CR_DBG_SLEEP DBGMCU_CR_DBG_SLEEP_Msk
  4980. #define DBGMCU_CR_DBG_STOP_Pos (1U)
  4981. #define DBGMCU_CR_DBG_STOP_Msk (0x1U << DBGMCU_CR_DBG_STOP_Pos) /*!< 0x00000002 */
  4982. #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk
  4983. #define DBGMCU_CR_DBG_STANDBY_Pos (2U)
  4984. #define DBGMCU_CR_DBG_STANDBY_Msk (0x1U << DBGMCU_CR_DBG_STANDBY_Pos) /*!< 0x00000004 */
  4985. #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk
  4986. #define DBGMCU_CR_TRACE_IOEN_Pos (5U)
  4987. #define DBGMCU_CR_TRACE_IOEN_Msk (0x1U << DBGMCU_CR_TRACE_IOEN_Pos) /*!< 0x00000020 */
  4988. #define DBGMCU_CR_TRACE_IOEN DBGMCU_CR_TRACE_IOEN_Msk
  4989. #define DBGMCU_CR_TRACE_MODE_Pos (6U)
  4990. #define DBGMCU_CR_TRACE_MODE_Msk (0x3U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x000000C0 */
  4991. #define DBGMCU_CR_TRACE_MODE DBGMCU_CR_TRACE_MODE_Msk
  4992. #define DBGMCU_CR_TRACE_MODE_0 (0x1U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000040 */
  4993. #define DBGMCU_CR_TRACE_MODE_1 (0x2U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000080 */
  4994. /******************** Bit definition for DBGMCU_APB1_FZ register ************/
  4995. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos (0U)
  4996. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos) /*!< 0x00000001 */
  4997. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk
  4998. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos (1U)
  4999. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos) /*!< 0x00000002 */
  5000. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk
  5001. #define DBGMCU_APB1_FZ_DBG_TIM4_STOP_Pos (2U)
  5002. #define DBGMCU_APB1_FZ_DBG_TIM4_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM4_STOP_Pos) /*!< 0x00000004 */
  5003. #define DBGMCU_APB1_FZ_DBG_TIM4_STOP DBGMCU_APB1_FZ_DBG_TIM4_STOP_Msk
  5004. #define DBGMCU_APB1_FZ_DBG_TIM5_STOP_Pos (3U)
  5005. #define DBGMCU_APB1_FZ_DBG_TIM5_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM5_STOP_Pos) /*!< 0x00000008 */
  5006. #define DBGMCU_APB1_FZ_DBG_TIM5_STOP DBGMCU_APB1_FZ_DBG_TIM5_STOP_Msk
  5007. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos (4U)
  5008. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos) /*!< 0x00000010 */
  5009. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk
  5010. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos (5U)
  5011. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos) /*!< 0x00000020 */
  5012. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk
  5013. #define DBGMCU_APB1_FZ_DBG_TIM12_STOP_Pos (6U)
  5014. #define DBGMCU_APB1_FZ_DBG_TIM12_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM12_STOP_Pos) /*!< 0x00000040 */
  5015. #define DBGMCU_APB1_FZ_DBG_TIM12_STOP DBGMCU_APB1_FZ_DBG_TIM12_STOP_Msk
  5016. #define DBGMCU_APB1_FZ_DBG_TIM13_STOP_Pos (7U)
  5017. #define DBGMCU_APB1_FZ_DBG_TIM13_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM13_STOP_Pos) /*!< 0x00000080 */
  5018. #define DBGMCU_APB1_FZ_DBG_TIM13_STOP DBGMCU_APB1_FZ_DBG_TIM13_STOP_Msk
  5019. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP_Pos (8U)
  5020. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM14_STOP_Pos) /*!< 0x00000100 */
  5021. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP DBGMCU_APB1_FZ_DBG_TIM14_STOP_Msk
  5022. #define DBGMCU_APB1_FZ_DBG_TIM18_STOP_Pos (9U)
  5023. #define DBGMCU_APB1_FZ_DBG_TIM18_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM18_STOP_Pos) /*!< 0x00000200 */
  5024. #define DBGMCU_APB1_FZ_DBG_TIM18_STOP DBGMCU_APB1_FZ_DBG_TIM18_STOP_Msk
  5025. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos (10U)
  5026. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos) /*!< 0x00000400 */
  5027. #define DBGMCU_APB1_FZ_DBG_RTC_STOP DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk
  5028. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos (11U)
  5029. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos) /*!< 0x00000800 */
  5030. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk
  5031. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos (12U)
  5032. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos) /*!< 0x00001000 */
  5033. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk
  5034. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos (21U)
  5035. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk (0x1U << DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos) /*!< 0x00200000 */
  5036. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk
  5037. #define DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT_Pos (22U)
  5038. #define DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT_Msk (0x1U << DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT_Pos) /*!< 0x00400000 */
  5039. #define DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT_Msk
  5040. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos (25U)
  5041. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos) /*!< 0x02000000 */
  5042. #define DBGMCU_APB1_FZ_DBG_CAN_STOP DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk
  5043. /******************** Bit definition for DBGMCU_APB2_FZ register ************/
  5044. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos (2U)
  5045. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos) /*!< 0x00000004 */
  5046. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk
  5047. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos (3U)
  5048. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos) /*!< 0x00000008 */
  5049. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk
  5050. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos (4U)
  5051. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos) /*!< 0x00000010 */
  5052. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk
  5053. #define DBGMCU_APB2_FZ_DBG_TIM19_STOP_Pos (5U)
  5054. #define DBGMCU_APB2_FZ_DBG_TIM19_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM19_STOP_Pos) /*!< 0x00000020 */
  5055. #define DBGMCU_APB2_FZ_DBG_TIM19_STOP DBGMCU_APB2_FZ_DBG_TIM19_STOP_Msk
  5056. /******************************************************************************/
  5057. /* */
  5058. /* DMA Controller (DMA) */
  5059. /* */
  5060. /******************************************************************************/
  5061. /******************* Bit definition for DMA_ISR register ********************/
  5062. #define DMA_ISR_GIF1_Pos (0U)
  5063. #define DMA_ISR_GIF1_Msk (0x1U << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */
  5064. #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  5065. #define DMA_ISR_TCIF1_Pos (1U)
  5066. #define DMA_ISR_TCIF1_Msk (0x1U << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */
  5067. #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  5068. #define DMA_ISR_HTIF1_Pos (2U)
  5069. #define DMA_ISR_HTIF1_Msk (0x1U << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */
  5070. #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  5071. #define DMA_ISR_TEIF1_Pos (3U)
  5072. #define DMA_ISR_TEIF1_Msk (0x1U << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */
  5073. #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  5074. #define DMA_ISR_GIF2_Pos (4U)
  5075. #define DMA_ISR_GIF2_Msk (0x1U << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */
  5076. #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  5077. #define DMA_ISR_TCIF2_Pos (5U)
  5078. #define DMA_ISR_TCIF2_Msk (0x1U << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */
  5079. #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  5080. #define DMA_ISR_HTIF2_Pos (6U)
  5081. #define DMA_ISR_HTIF2_Msk (0x1U << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */
  5082. #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  5083. #define DMA_ISR_TEIF2_Pos (7U)
  5084. #define DMA_ISR_TEIF2_Msk (0x1U << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */
  5085. #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  5086. #define DMA_ISR_GIF3_Pos (8U)
  5087. #define DMA_ISR_GIF3_Msk (0x1U << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */
  5088. #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  5089. #define DMA_ISR_TCIF3_Pos (9U)
  5090. #define DMA_ISR_TCIF3_Msk (0x1U << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */
  5091. #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  5092. #define DMA_ISR_HTIF3_Pos (10U)
  5093. #define DMA_ISR_HTIF3_Msk (0x1U << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */
  5094. #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  5095. #define DMA_ISR_TEIF3_Pos (11U)
  5096. #define DMA_ISR_TEIF3_Msk (0x1U << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */
  5097. #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  5098. #define DMA_ISR_GIF4_Pos (12U)
  5099. #define DMA_ISR_GIF4_Msk (0x1U << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */
  5100. #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  5101. #define DMA_ISR_TCIF4_Pos (13U)
  5102. #define DMA_ISR_TCIF4_Msk (0x1U << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */
  5103. #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  5104. #define DMA_ISR_HTIF4_Pos (14U)
  5105. #define DMA_ISR_HTIF4_Msk (0x1U << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */
  5106. #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  5107. #define DMA_ISR_TEIF4_Pos (15U)
  5108. #define DMA_ISR_TEIF4_Msk (0x1U << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */
  5109. #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  5110. #define DMA_ISR_GIF5_Pos (16U)
  5111. #define DMA_ISR_GIF5_Msk (0x1U << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */
  5112. #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  5113. #define DMA_ISR_TCIF5_Pos (17U)
  5114. #define DMA_ISR_TCIF5_Msk (0x1U << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */
  5115. #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  5116. #define DMA_ISR_HTIF5_Pos (18U)
  5117. #define DMA_ISR_HTIF5_Msk (0x1U << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */
  5118. #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  5119. #define DMA_ISR_TEIF5_Pos (19U)
  5120. #define DMA_ISR_TEIF5_Msk (0x1U << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */
  5121. #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  5122. #define DMA_ISR_GIF6_Pos (20U)
  5123. #define DMA_ISR_GIF6_Msk (0x1U << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */
  5124. #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  5125. #define DMA_ISR_TCIF6_Pos (21U)
  5126. #define DMA_ISR_TCIF6_Msk (0x1U << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */
  5127. #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  5128. #define DMA_ISR_HTIF6_Pos (22U)
  5129. #define DMA_ISR_HTIF6_Msk (0x1U << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */
  5130. #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  5131. #define DMA_ISR_TEIF6_Pos (23U)
  5132. #define DMA_ISR_TEIF6_Msk (0x1U << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */
  5133. #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  5134. #define DMA_ISR_GIF7_Pos (24U)
  5135. #define DMA_ISR_GIF7_Msk (0x1U << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */
  5136. #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  5137. #define DMA_ISR_TCIF7_Pos (25U)
  5138. #define DMA_ISR_TCIF7_Msk (0x1U << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */
  5139. #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  5140. #define DMA_ISR_HTIF7_Pos (26U)
  5141. #define DMA_ISR_HTIF7_Msk (0x1U << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */
  5142. #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  5143. #define DMA_ISR_TEIF7_Pos (27U)
  5144. #define DMA_ISR_TEIF7_Msk (0x1U << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */
  5145. #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  5146. /******************* Bit definition for DMA_IFCR register *******************/
  5147. #define DMA_IFCR_CGIF1_Pos (0U)
  5148. #define DMA_IFCR_CGIF1_Msk (0x1U << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */
  5149. #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */
  5150. #define DMA_IFCR_CTCIF1_Pos (1U)
  5151. #define DMA_IFCR_CTCIF1_Msk (0x1U << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */
  5152. #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  5153. #define DMA_IFCR_CHTIF1_Pos (2U)
  5154. #define DMA_IFCR_CHTIF1_Msk (0x1U << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */
  5155. #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  5156. #define DMA_IFCR_CTEIF1_Pos (3U)
  5157. #define DMA_IFCR_CTEIF1_Msk (0x1U << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */
  5158. #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  5159. #define DMA_IFCR_CGIF2_Pos (4U)
  5160. #define DMA_IFCR_CGIF2_Msk (0x1U << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */
  5161. #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  5162. #define DMA_IFCR_CTCIF2_Pos (5U)
  5163. #define DMA_IFCR_CTCIF2_Msk (0x1U << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */
  5164. #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  5165. #define DMA_IFCR_CHTIF2_Pos (6U)
  5166. #define DMA_IFCR_CHTIF2_Msk (0x1U << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */
  5167. #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  5168. #define DMA_IFCR_CTEIF2_Pos (7U)
  5169. #define DMA_IFCR_CTEIF2_Msk (0x1U << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */
  5170. #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  5171. #define DMA_IFCR_CGIF3_Pos (8U)
  5172. #define DMA_IFCR_CGIF3_Msk (0x1U << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */
  5173. #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  5174. #define DMA_IFCR_CTCIF3_Pos (9U)
  5175. #define DMA_IFCR_CTCIF3_Msk (0x1U << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */
  5176. #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  5177. #define DMA_IFCR_CHTIF3_Pos (10U)
  5178. #define DMA_IFCR_CHTIF3_Msk (0x1U << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */
  5179. #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  5180. #define DMA_IFCR_CTEIF3_Pos (11U)
  5181. #define DMA_IFCR_CTEIF3_Msk (0x1U << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */
  5182. #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  5183. #define DMA_IFCR_CGIF4_Pos (12U)
  5184. #define DMA_IFCR_CGIF4_Msk (0x1U << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */
  5185. #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  5186. #define DMA_IFCR_CTCIF4_Pos (13U)
  5187. #define DMA_IFCR_CTCIF4_Msk (0x1U << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */
  5188. #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  5189. #define DMA_IFCR_CHTIF4_Pos (14U)
  5190. #define DMA_IFCR_CHTIF4_Msk (0x1U << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */
  5191. #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  5192. #define DMA_IFCR_CTEIF4_Pos (15U)
  5193. #define DMA_IFCR_CTEIF4_Msk (0x1U << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */
  5194. #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  5195. #define DMA_IFCR_CGIF5_Pos (16U)
  5196. #define DMA_IFCR_CGIF5_Msk (0x1U << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */
  5197. #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  5198. #define DMA_IFCR_CTCIF5_Pos (17U)
  5199. #define DMA_IFCR_CTCIF5_Msk (0x1U << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */
  5200. #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  5201. #define DMA_IFCR_CHTIF5_Pos (18U)
  5202. #define DMA_IFCR_CHTIF5_Msk (0x1U << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */
  5203. #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  5204. #define DMA_IFCR_CTEIF5_Pos (19U)
  5205. #define DMA_IFCR_CTEIF5_Msk (0x1U << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */
  5206. #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  5207. #define DMA_IFCR_CGIF6_Pos (20U)
  5208. #define DMA_IFCR_CGIF6_Msk (0x1U << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */
  5209. #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  5210. #define DMA_IFCR_CTCIF6_Pos (21U)
  5211. #define DMA_IFCR_CTCIF6_Msk (0x1U << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */
  5212. #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  5213. #define DMA_IFCR_CHTIF6_Pos (22U)
  5214. #define DMA_IFCR_CHTIF6_Msk (0x1U << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */
  5215. #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  5216. #define DMA_IFCR_CTEIF6_Pos (23U)
  5217. #define DMA_IFCR_CTEIF6_Msk (0x1U << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */
  5218. #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  5219. #define DMA_IFCR_CGIF7_Pos (24U)
  5220. #define DMA_IFCR_CGIF7_Msk (0x1U << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */
  5221. #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  5222. #define DMA_IFCR_CTCIF7_Pos (25U)
  5223. #define DMA_IFCR_CTCIF7_Msk (0x1U << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */
  5224. #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  5225. #define DMA_IFCR_CHTIF7_Pos (26U)
  5226. #define DMA_IFCR_CHTIF7_Msk (0x1U << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */
  5227. #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  5228. #define DMA_IFCR_CTEIF7_Pos (27U)
  5229. #define DMA_IFCR_CTEIF7_Msk (0x1U << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */
  5230. #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  5231. /******************* Bit definition for DMA_CCR register ********************/
  5232. #define DMA_CCR_EN_Pos (0U)
  5233. #define DMA_CCR_EN_Msk (0x1U << DMA_CCR_EN_Pos) /*!< 0x00000001 */
  5234. #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */
  5235. #define DMA_CCR_TCIE_Pos (1U)
  5236. #define DMA_CCR_TCIE_Msk (0x1U << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  5237. #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  5238. #define DMA_CCR_HTIE_Pos (2U)
  5239. #define DMA_CCR_HTIE_Msk (0x1U << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  5240. #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  5241. #define DMA_CCR_TEIE_Pos (3U)
  5242. #define DMA_CCR_TEIE_Msk (0x1U << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  5243. #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  5244. #define DMA_CCR_DIR_Pos (4U)
  5245. #define DMA_CCR_DIR_Msk (0x1U << DMA_CCR_DIR_Pos) /*!< 0x00000010 */
  5246. #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */
  5247. #define DMA_CCR_CIRC_Pos (5U)
  5248. #define DMA_CCR_CIRC_Msk (0x1U << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  5249. #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */
  5250. #define DMA_CCR_PINC_Pos (6U)
  5251. #define DMA_CCR_PINC_Msk (0x1U << DMA_CCR_PINC_Pos) /*!< 0x00000040 */
  5252. #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  5253. #define DMA_CCR_MINC_Pos (7U)
  5254. #define DMA_CCR_MINC_Msk (0x1U << DMA_CCR_MINC_Pos) /*!< 0x00000080 */
  5255. #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */
  5256. #define DMA_CCR_PSIZE_Pos (8U)
  5257. #define DMA_CCR_PSIZE_Msk (0x3U << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  5258. #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  5259. #define DMA_CCR_PSIZE_0 (0x1U << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  5260. #define DMA_CCR_PSIZE_1 (0x2U << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  5261. #define DMA_CCR_MSIZE_Pos (10U)
  5262. #define DMA_CCR_MSIZE_Msk (0x3U << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  5263. #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  5264. #define DMA_CCR_MSIZE_0 (0x1U << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  5265. #define DMA_CCR_MSIZE_1 (0x2U << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  5266. #define DMA_CCR_PL_Pos (12U)
  5267. #define DMA_CCR_PL_Msk (0x3U << DMA_CCR_PL_Pos) /*!< 0x00003000 */
  5268. #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  5269. #define DMA_CCR_PL_0 (0x1U << DMA_CCR_PL_Pos) /*!< 0x00001000 */
  5270. #define DMA_CCR_PL_1 (0x2U << DMA_CCR_PL_Pos) /*!< 0x00002000 */
  5271. #define DMA_CCR_MEM2MEM_Pos (14U)
  5272. #define DMA_CCR_MEM2MEM_Msk (0x1U << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  5273. #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  5274. /****************** Bit definition for DMA_CNDTR register *******************/
  5275. #define DMA_CNDTR_NDT_Pos (0U)
  5276. #define DMA_CNDTR_NDT_Msk (0xFFFFU << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  5277. #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  5278. /****************** Bit definition for DMA_CPAR register ********************/
  5279. #define DMA_CPAR_PA_Pos (0U)
  5280. #define DMA_CPAR_PA_Msk (0xFFFFFFFFU << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  5281. #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */
  5282. /****************** Bit definition for DMA_CMAR register ********************/
  5283. #define DMA_CMAR_MA_Pos (0U)
  5284. #define DMA_CMAR_MA_Msk (0xFFFFFFFFU << DMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */
  5285. #define DMA_CMAR_MA DMA_CMAR_MA_Msk /*!< Memory Address */
  5286. /******************************************************************************/
  5287. /* */
  5288. /* External Interrupt/Event Controller (EXTI) */
  5289. /* */
  5290. /******************************************************************************/
  5291. /******************* Bit definition for EXTI_IMR register *******************/
  5292. #define EXTI_IMR_MR0_Pos (0U)
  5293. #define EXTI_IMR_MR0_Msk (0x1U << EXTI_IMR_MR0_Pos) /*!< 0x00000001 */
  5294. #define EXTI_IMR_MR0 EXTI_IMR_MR0_Msk /*!< Interrupt Mask on line 0 */
  5295. #define EXTI_IMR_MR1_Pos (1U)
  5296. #define EXTI_IMR_MR1_Msk (0x1U << EXTI_IMR_MR1_Pos) /*!< 0x00000002 */
  5297. #define EXTI_IMR_MR1 EXTI_IMR_MR1_Msk /*!< Interrupt Mask on line 1 */
  5298. #define EXTI_IMR_MR2_Pos (2U)
  5299. #define EXTI_IMR_MR2_Msk (0x1U << EXTI_IMR_MR2_Pos) /*!< 0x00000004 */
  5300. #define EXTI_IMR_MR2 EXTI_IMR_MR2_Msk /*!< Interrupt Mask on line 2 */
  5301. #define EXTI_IMR_MR3_Pos (3U)
  5302. #define EXTI_IMR_MR3_Msk (0x1U << EXTI_IMR_MR3_Pos) /*!< 0x00000008 */
  5303. #define EXTI_IMR_MR3 EXTI_IMR_MR3_Msk /*!< Interrupt Mask on line 3 */
  5304. #define EXTI_IMR_MR4_Pos (4U)
  5305. #define EXTI_IMR_MR4_Msk (0x1U << EXTI_IMR_MR4_Pos) /*!< 0x00000010 */
  5306. #define EXTI_IMR_MR4 EXTI_IMR_MR4_Msk /*!< Interrupt Mask on line 4 */
  5307. #define EXTI_IMR_MR5_Pos (5U)
  5308. #define EXTI_IMR_MR5_Msk (0x1U << EXTI_IMR_MR5_Pos) /*!< 0x00000020 */
  5309. #define EXTI_IMR_MR5 EXTI_IMR_MR5_Msk /*!< Interrupt Mask on line 5 */
  5310. #define EXTI_IMR_MR6_Pos (6U)
  5311. #define EXTI_IMR_MR6_Msk (0x1U << EXTI_IMR_MR6_Pos) /*!< 0x00000040 */
  5312. #define EXTI_IMR_MR6 EXTI_IMR_MR6_Msk /*!< Interrupt Mask on line 6 */
  5313. #define EXTI_IMR_MR7_Pos (7U)
  5314. #define EXTI_IMR_MR7_Msk (0x1U << EXTI_IMR_MR7_Pos) /*!< 0x00000080 */
  5315. #define EXTI_IMR_MR7 EXTI_IMR_MR7_Msk /*!< Interrupt Mask on line 7 */
  5316. #define EXTI_IMR_MR8_Pos (8U)
  5317. #define EXTI_IMR_MR8_Msk (0x1U << EXTI_IMR_MR8_Pos) /*!< 0x00000100 */
  5318. #define EXTI_IMR_MR8 EXTI_IMR_MR8_Msk /*!< Interrupt Mask on line 8 */
  5319. #define EXTI_IMR_MR9_Pos (9U)
  5320. #define EXTI_IMR_MR9_Msk (0x1U << EXTI_IMR_MR9_Pos) /*!< 0x00000200 */
  5321. #define EXTI_IMR_MR9 EXTI_IMR_MR9_Msk /*!< Interrupt Mask on line 9 */
  5322. #define EXTI_IMR_MR10_Pos (10U)
  5323. #define EXTI_IMR_MR10_Msk (0x1U << EXTI_IMR_MR10_Pos) /*!< 0x00000400 */
  5324. #define EXTI_IMR_MR10 EXTI_IMR_MR10_Msk /*!< Interrupt Mask on line 10 */
  5325. #define EXTI_IMR_MR11_Pos (11U)
  5326. #define EXTI_IMR_MR11_Msk (0x1U << EXTI_IMR_MR11_Pos) /*!< 0x00000800 */
  5327. #define EXTI_IMR_MR11 EXTI_IMR_MR11_Msk /*!< Interrupt Mask on line 11 */
  5328. #define EXTI_IMR_MR12_Pos (12U)
  5329. #define EXTI_IMR_MR12_Msk (0x1U << EXTI_IMR_MR12_Pos) /*!< 0x00001000 */
  5330. #define EXTI_IMR_MR12 EXTI_IMR_MR12_Msk /*!< Interrupt Mask on line 12 */
  5331. #define EXTI_IMR_MR13_Pos (13U)
  5332. #define EXTI_IMR_MR13_Msk (0x1U << EXTI_IMR_MR13_Pos) /*!< 0x00002000 */
  5333. #define EXTI_IMR_MR13 EXTI_IMR_MR13_Msk /*!< Interrupt Mask on line 13 */
  5334. #define EXTI_IMR_MR14_Pos (14U)
  5335. #define EXTI_IMR_MR14_Msk (0x1U << EXTI_IMR_MR14_Pos) /*!< 0x00004000 */
  5336. #define EXTI_IMR_MR14 EXTI_IMR_MR14_Msk /*!< Interrupt Mask on line 14 */
  5337. #define EXTI_IMR_MR15_Pos (15U)
  5338. #define EXTI_IMR_MR15_Msk (0x1U << EXTI_IMR_MR15_Pos) /*!< 0x00008000 */
  5339. #define EXTI_IMR_MR15 EXTI_IMR_MR15_Msk /*!< Interrupt Mask on line 15 */
  5340. #define EXTI_IMR_MR16_Pos (16U)
  5341. #define EXTI_IMR_MR16_Msk (0x1U << EXTI_IMR_MR16_Pos) /*!< 0x00010000 */
  5342. #define EXTI_IMR_MR16 EXTI_IMR_MR16_Msk /*!< Interrupt Mask on line 16 */
  5343. #define EXTI_IMR_MR17_Pos (17U)
  5344. #define EXTI_IMR_MR17_Msk (0x1U << EXTI_IMR_MR17_Pos) /*!< 0x00020000 */
  5345. #define EXTI_IMR_MR17 EXTI_IMR_MR17_Msk /*!< Interrupt Mask on line 17 */
  5346. #define EXTI_IMR_MR19_Pos (19U)
  5347. #define EXTI_IMR_MR19_Msk (0x1U << EXTI_IMR_MR19_Pos) /*!< 0x00080000 */
  5348. #define EXTI_IMR_MR19 EXTI_IMR_MR19_Msk /*!< Interrupt Mask on line 19 */
  5349. #define EXTI_IMR_MR20_Pos (20U)
  5350. #define EXTI_IMR_MR20_Msk (0x1U << EXTI_IMR_MR20_Pos) /*!< 0x00100000 */
  5351. #define EXTI_IMR_MR20 EXTI_IMR_MR20_Msk /*!< Interrupt Mask on line 20 */
  5352. #define EXTI_IMR_MR21_Pos (21U)
  5353. #define EXTI_IMR_MR21_Msk (0x1U << EXTI_IMR_MR21_Pos) /*!< 0x00200000 */
  5354. #define EXTI_IMR_MR21 EXTI_IMR_MR21_Msk /*!< Interrupt Mask on line 21 */
  5355. #define EXTI_IMR_MR22_Pos (22U)
  5356. #define EXTI_IMR_MR22_Msk (0x1U << EXTI_IMR_MR22_Pos) /*!< 0x00400000 */
  5357. #define EXTI_IMR_MR22 EXTI_IMR_MR22_Msk /*!< Interrupt Mask on line 22 */
  5358. #define EXTI_IMR_MR23_Pos (23U)
  5359. #define EXTI_IMR_MR23_Msk (0x1U << EXTI_IMR_MR23_Pos) /*!< 0x00800000 */
  5360. #define EXTI_IMR_MR23 EXTI_IMR_MR23_Msk /*!< Interrupt Mask on line 23 */
  5361. #define EXTI_IMR_MR24_Pos (24U)
  5362. #define EXTI_IMR_MR24_Msk (0x1U << EXTI_IMR_MR24_Pos) /*!< 0x01000000 */
  5363. #define EXTI_IMR_MR24 EXTI_IMR_MR24_Msk /*!< Interrupt Mask on line 24 */
  5364. #define EXTI_IMR_MR25_Pos (25U)
  5365. #define EXTI_IMR_MR25_Msk (0x1U << EXTI_IMR_MR25_Pos) /*!< 0x02000000 */
  5366. #define EXTI_IMR_MR25 EXTI_IMR_MR25_Msk /*!< Interrupt Mask on line 25 */
  5367. #define EXTI_IMR_MR26_Pos (26U)
  5368. #define EXTI_IMR_MR26_Msk (0x1U << EXTI_IMR_MR26_Pos) /*!< 0x04000000 */
  5369. #define EXTI_IMR_MR26 EXTI_IMR_MR26_Msk /*!< Interrupt Mask on line 26 */
  5370. #define EXTI_IMR_MR27_Pos (27U)
  5371. #define EXTI_IMR_MR27_Msk (0x1U << EXTI_IMR_MR27_Pos) /*!< 0x08000000 */
  5372. #define EXTI_IMR_MR27 EXTI_IMR_MR27_Msk /*!< Interrupt Mask on line 27 */
  5373. #define EXTI_IMR_MR28_Pos (28U)
  5374. #define EXTI_IMR_MR28_Msk (0x1U << EXTI_IMR_MR28_Pos) /*!< 0x10000000 */
  5375. #define EXTI_IMR_MR28 EXTI_IMR_MR28_Msk /*!< Interrupt Mask on line 28 */
  5376. /* References Defines */
  5377. #define EXTI_IMR_IM0 EXTI_IMR_MR0
  5378. #define EXTI_IMR_IM1 EXTI_IMR_MR1
  5379. #define EXTI_IMR_IM2 EXTI_IMR_MR2
  5380. #define EXTI_IMR_IM3 EXTI_IMR_MR3
  5381. #define EXTI_IMR_IM4 EXTI_IMR_MR4
  5382. #define EXTI_IMR_IM5 EXTI_IMR_MR5
  5383. #define EXTI_IMR_IM6 EXTI_IMR_MR6
  5384. #define EXTI_IMR_IM7 EXTI_IMR_MR7
  5385. #define EXTI_IMR_IM8 EXTI_IMR_MR8
  5386. #define EXTI_IMR_IM9 EXTI_IMR_MR9
  5387. #define EXTI_IMR_IM10 EXTI_IMR_MR10
  5388. #define EXTI_IMR_IM11 EXTI_IMR_MR11
  5389. #define EXTI_IMR_IM12 EXTI_IMR_MR12
  5390. #define EXTI_IMR_IM13 EXTI_IMR_MR13
  5391. #define EXTI_IMR_IM14 EXTI_IMR_MR14
  5392. #define EXTI_IMR_IM15 EXTI_IMR_MR15
  5393. #define EXTI_IMR_IM16 EXTI_IMR_MR16
  5394. #define EXTI_IMR_IM17 EXTI_IMR_MR17
  5395. #if defined(EXTI_IMR_MR18)
  5396. #define EXTI_IMR_IM18 EXTI_IMR_MR18
  5397. #endif
  5398. #define EXTI_IMR_IM19 EXTI_IMR_MR19
  5399. #define EXTI_IMR_IM20 EXTI_IMR_MR20
  5400. #define EXTI_IMR_IM21 EXTI_IMR_MR21
  5401. #define EXTI_IMR_IM22 EXTI_IMR_MR22
  5402. #define EXTI_IMR_IM23 EXTI_IMR_MR23
  5403. #define EXTI_IMR_IM24 EXTI_IMR_MR24
  5404. #define EXTI_IMR_IM25 EXTI_IMR_MR25
  5405. #define EXTI_IMR_IM26 EXTI_IMR_MR26
  5406. #define EXTI_IMR_IM27 EXTI_IMR_MR27
  5407. #define EXTI_IMR_IM28 EXTI_IMR_MR28
  5408. #if defined(EXTI_IMR_MR29)
  5409. #define EXTI_IMR_IM29 EXTI_IMR_MR29
  5410. #endif
  5411. #if defined(EXTI_IMR_MR30)
  5412. #define EXTI_IMR_IM30 EXTI_IMR_MR30
  5413. #endif
  5414. #if defined(EXTI_IMR_MR31)
  5415. #define EXTI_IMR_IM31 EXTI_IMR_MR31
  5416. #endif
  5417. #define EXTI_IMR_IM_Pos (0U)
  5418. #define EXTI_IMR_IM_Msk (0x1FFFFFFFU << EXTI_IMR_IM_Pos) /*!< 0x1FFFFFFF */
  5419. #define EXTI_IMR_IM EXTI_IMR_IM_Msk /*!< Interrupt Mask All */
  5420. /******************* Bit definition for EXTI_EMR register *******************/
  5421. #define EXTI_EMR_MR0_Pos (0U)
  5422. #define EXTI_EMR_MR0_Msk (0x1U << EXTI_EMR_MR0_Pos) /*!< 0x00000001 */
  5423. #define EXTI_EMR_MR0 EXTI_EMR_MR0_Msk /*!< Event Mask on line 0 */
  5424. #define EXTI_EMR_MR1_Pos (1U)
  5425. #define EXTI_EMR_MR1_Msk (0x1U << EXTI_EMR_MR1_Pos) /*!< 0x00000002 */
  5426. #define EXTI_EMR_MR1 EXTI_EMR_MR1_Msk /*!< Event Mask on line 1 */
  5427. #define EXTI_EMR_MR2_Pos (2U)
  5428. #define EXTI_EMR_MR2_Msk (0x1U << EXTI_EMR_MR2_Pos) /*!< 0x00000004 */
  5429. #define EXTI_EMR_MR2 EXTI_EMR_MR2_Msk /*!< Event Mask on line 2 */
  5430. #define EXTI_EMR_MR3_Pos (3U)
  5431. #define EXTI_EMR_MR3_Msk (0x1U << EXTI_EMR_MR3_Pos) /*!< 0x00000008 */
  5432. #define EXTI_EMR_MR3 EXTI_EMR_MR3_Msk /*!< Event Mask on line 3 */
  5433. #define EXTI_EMR_MR4_Pos (4U)
  5434. #define EXTI_EMR_MR4_Msk (0x1U << EXTI_EMR_MR4_Pos) /*!< 0x00000010 */
  5435. #define EXTI_EMR_MR4 EXTI_EMR_MR4_Msk /*!< Event Mask on line 4 */
  5436. #define EXTI_EMR_MR5_Pos (5U)
  5437. #define EXTI_EMR_MR5_Msk (0x1U << EXTI_EMR_MR5_Pos) /*!< 0x00000020 */
  5438. #define EXTI_EMR_MR5 EXTI_EMR_MR5_Msk /*!< Event Mask on line 5 */
  5439. #define EXTI_EMR_MR6_Pos (6U)
  5440. #define EXTI_EMR_MR6_Msk (0x1U << EXTI_EMR_MR6_Pos) /*!< 0x00000040 */
  5441. #define EXTI_EMR_MR6 EXTI_EMR_MR6_Msk /*!< Event Mask on line 6 */
  5442. #define EXTI_EMR_MR7_Pos (7U)
  5443. #define EXTI_EMR_MR7_Msk (0x1U << EXTI_EMR_MR7_Pos) /*!< 0x00000080 */
  5444. #define EXTI_EMR_MR7 EXTI_EMR_MR7_Msk /*!< Event Mask on line 7 */
  5445. #define EXTI_EMR_MR8_Pos (8U)
  5446. #define EXTI_EMR_MR8_Msk (0x1U << EXTI_EMR_MR8_Pos) /*!< 0x00000100 */
  5447. #define EXTI_EMR_MR8 EXTI_EMR_MR8_Msk /*!< Event Mask on line 8 */
  5448. #define EXTI_EMR_MR9_Pos (9U)
  5449. #define EXTI_EMR_MR9_Msk (0x1U << EXTI_EMR_MR9_Pos) /*!< 0x00000200 */
  5450. #define EXTI_EMR_MR9 EXTI_EMR_MR9_Msk /*!< Event Mask on line 9 */
  5451. #define EXTI_EMR_MR10_Pos (10U)
  5452. #define EXTI_EMR_MR10_Msk (0x1U << EXTI_EMR_MR10_Pos) /*!< 0x00000400 */
  5453. #define EXTI_EMR_MR10 EXTI_EMR_MR10_Msk /*!< Event Mask on line 10 */
  5454. #define EXTI_EMR_MR11_Pos (11U)
  5455. #define EXTI_EMR_MR11_Msk (0x1U << EXTI_EMR_MR11_Pos) /*!< 0x00000800 */
  5456. #define EXTI_EMR_MR11 EXTI_EMR_MR11_Msk /*!< Event Mask on line 11 */
  5457. #define EXTI_EMR_MR12_Pos (12U)
  5458. #define EXTI_EMR_MR12_Msk (0x1U << EXTI_EMR_MR12_Pos) /*!< 0x00001000 */
  5459. #define EXTI_EMR_MR12 EXTI_EMR_MR12_Msk /*!< Event Mask on line 12 */
  5460. #define EXTI_EMR_MR13_Pos (13U)
  5461. #define EXTI_EMR_MR13_Msk (0x1U << EXTI_EMR_MR13_Pos) /*!< 0x00002000 */
  5462. #define EXTI_EMR_MR13 EXTI_EMR_MR13_Msk /*!< Event Mask on line 13 */
  5463. #define EXTI_EMR_MR14_Pos (14U)
  5464. #define EXTI_EMR_MR14_Msk (0x1U << EXTI_EMR_MR14_Pos) /*!< 0x00004000 */
  5465. #define EXTI_EMR_MR14 EXTI_EMR_MR14_Msk /*!< Event Mask on line 14 */
  5466. #define EXTI_EMR_MR15_Pos (15U)
  5467. #define EXTI_EMR_MR15_Msk (0x1U << EXTI_EMR_MR15_Pos) /*!< 0x00008000 */
  5468. #define EXTI_EMR_MR15 EXTI_EMR_MR15_Msk /*!< Event Mask on line 15 */
  5469. #define EXTI_EMR_MR16_Pos (16U)
  5470. #define EXTI_EMR_MR16_Msk (0x1U << EXTI_EMR_MR16_Pos) /*!< 0x00010000 */
  5471. #define EXTI_EMR_MR16 EXTI_EMR_MR16_Msk /*!< Event Mask on line 16 */
  5472. #define EXTI_EMR_MR17_Pos (17U)
  5473. #define EXTI_EMR_MR17_Msk (0x1U << EXTI_EMR_MR17_Pos) /*!< 0x00020000 */
  5474. #define EXTI_EMR_MR17 EXTI_EMR_MR17_Msk /*!< Event Mask on line 17 */
  5475. #define EXTI_EMR_MR19_Pos (19U)
  5476. #define EXTI_EMR_MR19_Msk (0x1U << EXTI_EMR_MR19_Pos) /*!< 0x00080000 */
  5477. #define EXTI_EMR_MR19 EXTI_EMR_MR19_Msk /*!< Event Mask on line 19 */
  5478. #define EXTI_EMR_MR20_Pos (20U)
  5479. #define EXTI_EMR_MR20_Msk (0x1U << EXTI_EMR_MR20_Pos) /*!< 0x00100000 */
  5480. #define EXTI_EMR_MR20 EXTI_EMR_MR20_Msk /*!< Event Mask on line 20 */
  5481. #define EXTI_EMR_MR21_Pos (21U)
  5482. #define EXTI_EMR_MR21_Msk (0x1U << EXTI_EMR_MR21_Pos) /*!< 0x00200000 */
  5483. #define EXTI_EMR_MR21 EXTI_EMR_MR21_Msk /*!< Event Mask on line 21 */
  5484. #define EXTI_EMR_MR22_Pos (22U)
  5485. #define EXTI_EMR_MR22_Msk (0x1U << EXTI_EMR_MR22_Pos) /*!< 0x00400000 */
  5486. #define EXTI_EMR_MR22 EXTI_EMR_MR22_Msk /*!< Event Mask on line 22 */
  5487. #define EXTI_EMR_MR23_Pos (23U)
  5488. #define EXTI_EMR_MR23_Msk (0x1U << EXTI_EMR_MR23_Pos) /*!< 0x00800000 */
  5489. #define EXTI_EMR_MR23 EXTI_EMR_MR23_Msk /*!< Event Mask on line 23 */
  5490. #define EXTI_EMR_MR24_Pos (24U)
  5491. #define EXTI_EMR_MR24_Msk (0x1U << EXTI_EMR_MR24_Pos) /*!< 0x01000000 */
  5492. #define EXTI_EMR_MR24 EXTI_EMR_MR24_Msk /*!< Event Mask on line 24 */
  5493. #define EXTI_EMR_MR25_Pos (25U)
  5494. #define EXTI_EMR_MR25_Msk (0x1U << EXTI_EMR_MR25_Pos) /*!< 0x02000000 */
  5495. #define EXTI_EMR_MR25 EXTI_EMR_MR25_Msk /*!< Event Mask on line 25 */
  5496. #define EXTI_EMR_MR26_Pos (26U)
  5497. #define EXTI_EMR_MR26_Msk (0x1U << EXTI_EMR_MR26_Pos) /*!< 0x04000000 */
  5498. #define EXTI_EMR_MR26 EXTI_EMR_MR26_Msk /*!< Event Mask on line 26 */
  5499. #define EXTI_EMR_MR27_Pos (27U)
  5500. #define EXTI_EMR_MR27_Msk (0x1U << EXTI_EMR_MR27_Pos) /*!< 0x08000000 */
  5501. #define EXTI_EMR_MR27 EXTI_EMR_MR27_Msk /*!< Event Mask on line 27 */
  5502. #define EXTI_EMR_MR28_Pos (28U)
  5503. #define EXTI_EMR_MR28_Msk (0x1U << EXTI_EMR_MR28_Pos) /*!< 0x10000000 */
  5504. #define EXTI_EMR_MR28 EXTI_EMR_MR28_Msk /*!< Event Mask on line 28 */
  5505. /* References Defines */
  5506. #define EXTI_EMR_EM0 EXTI_EMR_MR0
  5507. #define EXTI_EMR_EM1 EXTI_EMR_MR1
  5508. #define EXTI_EMR_EM2 EXTI_EMR_MR2
  5509. #define EXTI_EMR_EM3 EXTI_EMR_MR3
  5510. #define EXTI_EMR_EM4 EXTI_EMR_MR4
  5511. #define EXTI_EMR_EM5 EXTI_EMR_MR5
  5512. #define EXTI_EMR_EM6 EXTI_EMR_MR6
  5513. #define EXTI_EMR_EM7 EXTI_EMR_MR7
  5514. #define EXTI_EMR_EM8 EXTI_EMR_MR8
  5515. #define EXTI_EMR_EM9 EXTI_EMR_MR9
  5516. #define EXTI_EMR_EM10 EXTI_EMR_MR10
  5517. #define EXTI_EMR_EM11 EXTI_EMR_MR11
  5518. #define EXTI_EMR_EM12 EXTI_EMR_MR12
  5519. #define EXTI_EMR_EM13 EXTI_EMR_MR13
  5520. #define EXTI_EMR_EM14 EXTI_EMR_MR14
  5521. #define EXTI_EMR_EM15 EXTI_EMR_MR15
  5522. #define EXTI_EMR_EM16 EXTI_EMR_MR16
  5523. #define EXTI_EMR_EM17 EXTI_EMR_MR17
  5524. #if defined(EXTI_EMR_MR18)
  5525. #define EXTI_EMR_EM18 EXTI_EMR_MR18
  5526. #endif
  5527. #define EXTI_EMR_EM19 EXTI_EMR_MR19
  5528. #define EXTI_EMR_EM20 EXTI_EMR_MR20
  5529. #define EXTI_EMR_EM21 EXTI_EMR_MR21
  5530. #define EXTI_EMR_EM22 EXTI_EMR_MR22
  5531. #define EXTI_EMR_EM23 EXTI_EMR_MR23
  5532. #define EXTI_EMR_EM24 EXTI_EMR_MR24
  5533. #define EXTI_EMR_EM25 EXTI_EMR_MR25
  5534. #define EXTI_EMR_EM26 EXTI_EMR_MR26
  5535. #define EXTI_EMR_EM27 EXTI_EMR_MR27
  5536. #define EXTI_EMR_EM28 EXTI_EMR_MR28
  5537. #if defined(EXTI_EMR_MR29)
  5538. #define EXTI_EMR_EM29 EXTI_EMR_MR29
  5539. #endif
  5540. #if defined(EXTI_EMR_MR30)
  5541. #define EXTI_EMR_EM30 EXTI_EMR_MR30
  5542. #endif
  5543. #if defined(EXTI_EMR_MR31)
  5544. #define EXTI_EMR_EM31 EXTI_EMR_MR31
  5545. #endif
  5546. /****************** Bit definition for EXTI_RTSR register *******************/
  5547. #define EXTI_RTSR_TR0_Pos (0U)
  5548. #define EXTI_RTSR_TR0_Msk (0x1U << EXTI_RTSR_TR0_Pos) /*!< 0x00000001 */
  5549. #define EXTI_RTSR_TR0 EXTI_RTSR_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */
  5550. #define EXTI_RTSR_TR1_Pos (1U)
  5551. #define EXTI_RTSR_TR1_Msk (0x1U << EXTI_RTSR_TR1_Pos) /*!< 0x00000002 */
  5552. #define EXTI_RTSR_TR1 EXTI_RTSR_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */
  5553. #define EXTI_RTSR_TR2_Pos (2U)
  5554. #define EXTI_RTSR_TR2_Msk (0x1U << EXTI_RTSR_TR2_Pos) /*!< 0x00000004 */
  5555. #define EXTI_RTSR_TR2 EXTI_RTSR_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */
  5556. #define EXTI_RTSR_TR3_Pos (3U)
  5557. #define EXTI_RTSR_TR3_Msk (0x1U << EXTI_RTSR_TR3_Pos) /*!< 0x00000008 */
  5558. #define EXTI_RTSR_TR3 EXTI_RTSR_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */
  5559. #define EXTI_RTSR_TR4_Pos (4U)
  5560. #define EXTI_RTSR_TR4_Msk (0x1U << EXTI_RTSR_TR4_Pos) /*!< 0x00000010 */
  5561. #define EXTI_RTSR_TR4 EXTI_RTSR_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */
  5562. #define EXTI_RTSR_TR5_Pos (5U)
  5563. #define EXTI_RTSR_TR5_Msk (0x1U << EXTI_RTSR_TR5_Pos) /*!< 0x00000020 */
  5564. #define EXTI_RTSR_TR5 EXTI_RTSR_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */
  5565. #define EXTI_RTSR_TR6_Pos (6U)
  5566. #define EXTI_RTSR_TR6_Msk (0x1U << EXTI_RTSR_TR6_Pos) /*!< 0x00000040 */
  5567. #define EXTI_RTSR_TR6 EXTI_RTSR_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */
  5568. #define EXTI_RTSR_TR7_Pos (7U)
  5569. #define EXTI_RTSR_TR7_Msk (0x1U << EXTI_RTSR_TR7_Pos) /*!< 0x00000080 */
  5570. #define EXTI_RTSR_TR7 EXTI_RTSR_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */
  5571. #define EXTI_RTSR_TR8_Pos (8U)
  5572. #define EXTI_RTSR_TR8_Msk (0x1U << EXTI_RTSR_TR8_Pos) /*!< 0x00000100 */
  5573. #define EXTI_RTSR_TR8 EXTI_RTSR_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */
  5574. #define EXTI_RTSR_TR9_Pos (9U)
  5575. #define EXTI_RTSR_TR9_Msk (0x1U << EXTI_RTSR_TR9_Pos) /*!< 0x00000200 */
  5576. #define EXTI_RTSR_TR9 EXTI_RTSR_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */
  5577. #define EXTI_RTSR_TR10_Pos (10U)
  5578. #define EXTI_RTSR_TR10_Msk (0x1U << EXTI_RTSR_TR10_Pos) /*!< 0x00000400 */
  5579. #define EXTI_RTSR_TR10 EXTI_RTSR_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */
  5580. #define EXTI_RTSR_TR11_Pos (11U)
  5581. #define EXTI_RTSR_TR11_Msk (0x1U << EXTI_RTSR_TR11_Pos) /*!< 0x00000800 */
  5582. #define EXTI_RTSR_TR11 EXTI_RTSR_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */
  5583. #define EXTI_RTSR_TR12_Pos (12U)
  5584. #define EXTI_RTSR_TR12_Msk (0x1U << EXTI_RTSR_TR12_Pos) /*!< 0x00001000 */
  5585. #define EXTI_RTSR_TR12 EXTI_RTSR_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */
  5586. #define EXTI_RTSR_TR13_Pos (13U)
  5587. #define EXTI_RTSR_TR13_Msk (0x1U << EXTI_RTSR_TR13_Pos) /*!< 0x00002000 */
  5588. #define EXTI_RTSR_TR13 EXTI_RTSR_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */
  5589. #define EXTI_RTSR_TR14_Pos (14U)
  5590. #define EXTI_RTSR_TR14_Msk (0x1U << EXTI_RTSR_TR14_Pos) /*!< 0x00004000 */
  5591. #define EXTI_RTSR_TR14 EXTI_RTSR_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */
  5592. #define EXTI_RTSR_TR15_Pos (15U)
  5593. #define EXTI_RTSR_TR15_Msk (0x1U << EXTI_RTSR_TR15_Pos) /*!< 0x00008000 */
  5594. #define EXTI_RTSR_TR15 EXTI_RTSR_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */
  5595. #define EXTI_RTSR_TR16_Pos (16U)
  5596. #define EXTI_RTSR_TR16_Msk (0x1U << EXTI_RTSR_TR16_Pos) /*!< 0x00010000 */
  5597. #define EXTI_RTSR_TR16 EXTI_RTSR_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */
  5598. #define EXTI_RTSR_TR17_Pos (17U)
  5599. #define EXTI_RTSR_TR17_Msk (0x1U << EXTI_RTSR_TR17_Pos) /*!< 0x00020000 */
  5600. #define EXTI_RTSR_TR17 EXTI_RTSR_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */
  5601. #define EXTI_RTSR_TR19_Pos (19U)
  5602. #define EXTI_RTSR_TR19_Msk (0x1U << EXTI_RTSR_TR19_Pos) /*!< 0x00080000 */
  5603. #define EXTI_RTSR_TR19 EXTI_RTSR_TR19_Msk /*!< Rising trigger event configuration bit of line 19 */
  5604. #define EXTI_RTSR_TR20_Pos (20U)
  5605. #define EXTI_RTSR_TR20_Msk (0x1U << EXTI_RTSR_TR20_Pos) /*!< 0x00100000 */
  5606. #define EXTI_RTSR_TR20 EXTI_RTSR_TR20_Msk /*!< Rising trigger event configuration bit of line 20 */
  5607. #define EXTI_RTSR_TR21_Pos (21U)
  5608. #define EXTI_RTSR_TR21_Msk (0x1U << EXTI_RTSR_TR21_Pos) /*!< 0x00200000 */
  5609. #define EXTI_RTSR_TR21 EXTI_RTSR_TR21_Msk /*!< Rising trigger event configuration bit of line 21 */
  5610. #define EXTI_RTSR_TR22_Pos (22U)
  5611. #define EXTI_RTSR_TR22_Msk (0x1U << EXTI_RTSR_TR22_Pos) /*!< 0x00400000 */
  5612. #define EXTI_RTSR_TR22 EXTI_RTSR_TR22_Msk /*!< Rising trigger event configuration bit of line 22 */
  5613. /* References Defines */
  5614. #define EXTI_RTSR_RT0 EXTI_RTSR_TR0
  5615. #define EXTI_RTSR_RT1 EXTI_RTSR_TR1
  5616. #define EXTI_RTSR_RT2 EXTI_RTSR_TR2
  5617. #define EXTI_RTSR_RT3 EXTI_RTSR_TR3
  5618. #define EXTI_RTSR_RT4 EXTI_RTSR_TR4
  5619. #define EXTI_RTSR_RT5 EXTI_RTSR_TR5
  5620. #define EXTI_RTSR_RT6 EXTI_RTSR_TR6
  5621. #define EXTI_RTSR_RT7 EXTI_RTSR_TR7
  5622. #define EXTI_RTSR_RT8 EXTI_RTSR_TR8
  5623. #define EXTI_RTSR_RT9 EXTI_RTSR_TR9
  5624. #define EXTI_RTSR_RT10 EXTI_RTSR_TR10
  5625. #define EXTI_RTSR_RT11 EXTI_RTSR_TR11
  5626. #define EXTI_RTSR_RT12 EXTI_RTSR_TR12
  5627. #define EXTI_RTSR_RT13 EXTI_RTSR_TR13
  5628. #define EXTI_RTSR_RT14 EXTI_RTSR_TR14
  5629. #define EXTI_RTSR_RT15 EXTI_RTSR_TR15
  5630. #define EXTI_RTSR_RT16 EXTI_RTSR_TR16
  5631. #define EXTI_RTSR_RT17 EXTI_RTSR_TR17
  5632. #if defined(EXTI_RTSR_TR18)
  5633. #define EXTI_RTSR_RT18 EXTI_RTSR_TR18
  5634. #endif
  5635. #define EXTI_RTSR_RT19 EXTI_RTSR_TR19
  5636. #define EXTI_RTSR_RT20 EXTI_RTSR_TR20
  5637. #define EXTI_RTSR_RT21 EXTI_RTSR_TR21
  5638. #define EXTI_RTSR_RT22 EXTI_RTSR_TR22
  5639. #if defined(EXTI_RTSR_TR23)
  5640. #define EXTI_RTSR_RT23 EXTI_RTSR_TR23
  5641. #endif
  5642. #if defined(EXTI_RTSR_TR24)
  5643. #define EXTI_RTSR_RT24 EXTI_RTSR_TR24
  5644. #endif
  5645. #if defined(EXTI_RTSR_TR25)
  5646. #define EXTI_RTSR_RT25 EXTI_RTSR_TR25
  5647. #endif
  5648. #if defined(EXTI_RTSR_TR26)
  5649. #define EXTI_RTSR_RT26 EXTI_RTSR_TR26
  5650. #endif
  5651. #if defined(EXTI_RTSR_TR27)
  5652. #define EXTI_RTSR_RT27 EXTI_RTSR_TR27
  5653. #endif
  5654. #if defined(EXTI_RTSR_TR28)
  5655. #define EXTI_RTSR_RT28 EXTI_RTSR_TR28
  5656. #endif
  5657. #if defined(EXTI_RTSR_TR29)
  5658. #define EXTI_RTSR_RT29 EXTI_RTSR_TR29
  5659. #endif
  5660. #if defined(EXTI_RTSR_TR30)
  5661. #define EXTI_RTSR_RT30 EXTI_RTSR_TR30
  5662. #endif
  5663. #if defined(EXTI_RTSR_TR31)
  5664. #define EXTI_RTSR_RT31 EXTI_RTSR_TR31
  5665. #endif
  5666. /****************** Bit definition for EXTI_FTSR register *******************/
  5667. #define EXTI_FTSR_TR0_Pos (0U)
  5668. #define EXTI_FTSR_TR0_Msk (0x1U << EXTI_FTSR_TR0_Pos) /*!< 0x00000001 */
  5669. #define EXTI_FTSR_TR0 EXTI_FTSR_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */
  5670. #define EXTI_FTSR_TR1_Pos (1U)
  5671. #define EXTI_FTSR_TR1_Msk (0x1U << EXTI_FTSR_TR1_Pos) /*!< 0x00000002 */
  5672. #define EXTI_FTSR_TR1 EXTI_FTSR_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */
  5673. #define EXTI_FTSR_TR2_Pos (2U)
  5674. #define EXTI_FTSR_TR2_Msk (0x1U << EXTI_FTSR_TR2_Pos) /*!< 0x00000004 */
  5675. #define EXTI_FTSR_TR2 EXTI_FTSR_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */
  5676. #define EXTI_FTSR_TR3_Pos (3U)
  5677. #define EXTI_FTSR_TR3_Msk (0x1U << EXTI_FTSR_TR3_Pos) /*!< 0x00000008 */
  5678. #define EXTI_FTSR_TR3 EXTI_FTSR_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */
  5679. #define EXTI_FTSR_TR4_Pos (4U)
  5680. #define EXTI_FTSR_TR4_Msk (0x1U << EXTI_FTSR_TR4_Pos) /*!< 0x00000010 */
  5681. #define EXTI_FTSR_TR4 EXTI_FTSR_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */
  5682. #define EXTI_FTSR_TR5_Pos (5U)
  5683. #define EXTI_FTSR_TR5_Msk (0x1U << EXTI_FTSR_TR5_Pos) /*!< 0x00000020 */
  5684. #define EXTI_FTSR_TR5 EXTI_FTSR_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */
  5685. #define EXTI_FTSR_TR6_Pos (6U)
  5686. #define EXTI_FTSR_TR6_Msk (0x1U << EXTI_FTSR_TR6_Pos) /*!< 0x00000040 */
  5687. #define EXTI_FTSR_TR6 EXTI_FTSR_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */
  5688. #define EXTI_FTSR_TR7_Pos (7U)
  5689. #define EXTI_FTSR_TR7_Msk (0x1U << EXTI_FTSR_TR7_Pos) /*!< 0x00000080 */
  5690. #define EXTI_FTSR_TR7 EXTI_FTSR_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */
  5691. #define EXTI_FTSR_TR8_Pos (8U)
  5692. #define EXTI_FTSR_TR8_Msk (0x1U << EXTI_FTSR_TR8_Pos) /*!< 0x00000100 */
  5693. #define EXTI_FTSR_TR8 EXTI_FTSR_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */
  5694. #define EXTI_FTSR_TR9_Pos (9U)
  5695. #define EXTI_FTSR_TR9_Msk (0x1U << EXTI_FTSR_TR9_Pos) /*!< 0x00000200 */
  5696. #define EXTI_FTSR_TR9 EXTI_FTSR_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */
  5697. #define EXTI_FTSR_TR10_Pos (10U)
  5698. #define EXTI_FTSR_TR10_Msk (0x1U << EXTI_FTSR_TR10_Pos) /*!< 0x00000400 */
  5699. #define EXTI_FTSR_TR10 EXTI_FTSR_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */
  5700. #define EXTI_FTSR_TR11_Pos (11U)
  5701. #define EXTI_FTSR_TR11_Msk (0x1U << EXTI_FTSR_TR11_Pos) /*!< 0x00000800 */
  5702. #define EXTI_FTSR_TR11 EXTI_FTSR_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */
  5703. #define EXTI_FTSR_TR12_Pos (12U)
  5704. #define EXTI_FTSR_TR12_Msk (0x1U << EXTI_FTSR_TR12_Pos) /*!< 0x00001000 */
  5705. #define EXTI_FTSR_TR12 EXTI_FTSR_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */
  5706. #define EXTI_FTSR_TR13_Pos (13U)
  5707. #define EXTI_FTSR_TR13_Msk (0x1U << EXTI_FTSR_TR13_Pos) /*!< 0x00002000 */
  5708. #define EXTI_FTSR_TR13 EXTI_FTSR_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */
  5709. #define EXTI_FTSR_TR14_Pos (14U)
  5710. #define EXTI_FTSR_TR14_Msk (0x1U << EXTI_FTSR_TR14_Pos) /*!< 0x00004000 */
  5711. #define EXTI_FTSR_TR14 EXTI_FTSR_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */
  5712. #define EXTI_FTSR_TR15_Pos (15U)
  5713. #define EXTI_FTSR_TR15_Msk (0x1U << EXTI_FTSR_TR15_Pos) /*!< 0x00008000 */
  5714. #define EXTI_FTSR_TR15 EXTI_FTSR_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */
  5715. #define EXTI_FTSR_TR16_Pos (16U)
  5716. #define EXTI_FTSR_TR16_Msk (0x1U << EXTI_FTSR_TR16_Pos) /*!< 0x00010000 */
  5717. #define EXTI_FTSR_TR16 EXTI_FTSR_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */
  5718. #define EXTI_FTSR_TR17_Pos (17U)
  5719. #define EXTI_FTSR_TR17_Msk (0x1U << EXTI_FTSR_TR17_Pos) /*!< 0x00020000 */
  5720. #define EXTI_FTSR_TR17 EXTI_FTSR_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */
  5721. #define EXTI_FTSR_TR19_Pos (19U)
  5722. #define EXTI_FTSR_TR19_Msk (0x1U << EXTI_FTSR_TR19_Pos) /*!< 0x00080000 */
  5723. #define EXTI_FTSR_TR19 EXTI_FTSR_TR19_Msk /*!< Falling trigger event configuration bit of line 19 */
  5724. #define EXTI_FTSR_TR20_Pos (20U)
  5725. #define EXTI_FTSR_TR20_Msk (0x1U << EXTI_FTSR_TR20_Pos) /*!< 0x00100000 */
  5726. #define EXTI_FTSR_TR20 EXTI_FTSR_TR20_Msk /*!< Falling trigger event configuration bit of line 20 */
  5727. #define EXTI_FTSR_TR21_Pos (21U)
  5728. #define EXTI_FTSR_TR21_Msk (0x1U << EXTI_FTSR_TR21_Pos) /*!< 0x00200000 */
  5729. #define EXTI_FTSR_TR21 EXTI_FTSR_TR21_Msk /*!< Falling trigger event configuration bit of line 21 */
  5730. #define EXTI_FTSR_TR22_Pos (22U)
  5731. #define EXTI_FTSR_TR22_Msk (0x1U << EXTI_FTSR_TR22_Pos) /*!< 0x00400000 */
  5732. #define EXTI_FTSR_TR22 EXTI_FTSR_TR22_Msk /*!< Falling trigger event configuration bit of line 22 */
  5733. /* References Defines */
  5734. #define EXTI_FTSR_FT0 EXTI_FTSR_TR0
  5735. #define EXTI_FTSR_FT1 EXTI_FTSR_TR1
  5736. #define EXTI_FTSR_FT2 EXTI_FTSR_TR2
  5737. #define EXTI_FTSR_FT3 EXTI_FTSR_TR3
  5738. #define EXTI_FTSR_FT4 EXTI_FTSR_TR4
  5739. #define EXTI_FTSR_FT5 EXTI_FTSR_TR5
  5740. #define EXTI_FTSR_FT6 EXTI_FTSR_TR6
  5741. #define EXTI_FTSR_FT7 EXTI_FTSR_TR7
  5742. #define EXTI_FTSR_FT8 EXTI_FTSR_TR8
  5743. #define EXTI_FTSR_FT9 EXTI_FTSR_TR9
  5744. #define EXTI_FTSR_FT10 EXTI_FTSR_TR10
  5745. #define EXTI_FTSR_FT11 EXTI_FTSR_TR11
  5746. #define EXTI_FTSR_FT12 EXTI_FTSR_TR12
  5747. #define EXTI_FTSR_FT13 EXTI_FTSR_TR13
  5748. #define EXTI_FTSR_FT14 EXTI_FTSR_TR14
  5749. #define EXTI_FTSR_FT15 EXTI_FTSR_TR15
  5750. #define EXTI_FTSR_FT16 EXTI_FTSR_TR16
  5751. #define EXTI_FTSR_FT17 EXTI_FTSR_TR17
  5752. #if defined(EXTI_FTSR_TR18)
  5753. #define EXTI_FTSR_FT18 EXTI_FTSR_TR18
  5754. #endif
  5755. #define EXTI_FTSR_FT19 EXTI_FTSR_TR19
  5756. #define EXTI_FTSR_FT20 EXTI_FTSR_TR20
  5757. #define EXTI_FTSR_FT21 EXTI_FTSR_TR21
  5758. #define EXTI_FTSR_FT22 EXTI_FTSR_TR22
  5759. #if defined(EXTI_FTSR_TR23)
  5760. #define EXTI_FTSR_FT23 EXTI_FTSR_TR23
  5761. #endif
  5762. #if defined(EXTI_FTSR_TR24)
  5763. #define EXTI_FTSR_FT24 EXTI_FTSR_TR24
  5764. #endif
  5765. #if defined(EXTI_FTSR_TR25)
  5766. #define EXTI_FTSR_FT25 EXTI_FTSR_TR25
  5767. #endif
  5768. #if defined(EXTI_FTSR_TR26)
  5769. #define EXTI_FTSR_FT26 EXTI_FTSR_TR26
  5770. #endif
  5771. #if defined(EXTI_FTSR_TR27)
  5772. #define EXTI_FTSR_FT27 EXTI_FTSR_TR27
  5773. #endif
  5774. #if defined(EXTI_FTSR_TR28)
  5775. #define EXTI_FTSR_FT28 EXTI_FTSR_TR28
  5776. #endif
  5777. #if defined(EXTI_FTSR_TR29)
  5778. #define EXTI_FTSR_FT29 EXTI_FTSR_TR29
  5779. #endif
  5780. #if defined(EXTI_FTSR_TR30)
  5781. #define EXTI_FTSR_FT30 EXTI_FTSR_TR30
  5782. #endif
  5783. #if defined(EXTI_FTSR_TR31)
  5784. #define EXTI_FTSR_FT31 EXTI_FTSR_TR31
  5785. #endif
  5786. /****************** Bit definition for EXTI_SWIER register ******************/
  5787. #define EXTI_SWIER_SWIER0_Pos (0U)
  5788. #define EXTI_SWIER_SWIER0_Msk (0x1U << EXTI_SWIER_SWIER0_Pos) /*!< 0x00000001 */
  5789. #define EXTI_SWIER_SWIER0 EXTI_SWIER_SWIER0_Msk /*!< Software Interrupt on line 0 */
  5790. #define EXTI_SWIER_SWIER1_Pos (1U)
  5791. #define EXTI_SWIER_SWIER1_Msk (0x1U << EXTI_SWIER_SWIER1_Pos) /*!< 0x00000002 */
  5792. #define EXTI_SWIER_SWIER1 EXTI_SWIER_SWIER1_Msk /*!< Software Interrupt on line 1 */
  5793. #define EXTI_SWIER_SWIER2_Pos (2U)
  5794. #define EXTI_SWIER_SWIER2_Msk (0x1U << EXTI_SWIER_SWIER2_Pos) /*!< 0x00000004 */
  5795. #define EXTI_SWIER_SWIER2 EXTI_SWIER_SWIER2_Msk /*!< Software Interrupt on line 2 */
  5796. #define EXTI_SWIER_SWIER3_Pos (3U)
  5797. #define EXTI_SWIER_SWIER3_Msk (0x1U << EXTI_SWIER_SWIER3_Pos) /*!< 0x00000008 */
  5798. #define EXTI_SWIER_SWIER3 EXTI_SWIER_SWIER3_Msk /*!< Software Interrupt on line 3 */
  5799. #define EXTI_SWIER_SWIER4_Pos (4U)
  5800. #define EXTI_SWIER_SWIER4_Msk (0x1U << EXTI_SWIER_SWIER4_Pos) /*!< 0x00000010 */
  5801. #define EXTI_SWIER_SWIER4 EXTI_SWIER_SWIER4_Msk /*!< Software Interrupt on line 4 */
  5802. #define EXTI_SWIER_SWIER5_Pos (5U)
  5803. #define EXTI_SWIER_SWIER5_Msk (0x1U << EXTI_SWIER_SWIER5_Pos) /*!< 0x00000020 */
  5804. #define EXTI_SWIER_SWIER5 EXTI_SWIER_SWIER5_Msk /*!< Software Interrupt on line 5 */
  5805. #define EXTI_SWIER_SWIER6_Pos (6U)
  5806. #define EXTI_SWIER_SWIER6_Msk (0x1U << EXTI_SWIER_SWIER6_Pos) /*!< 0x00000040 */
  5807. #define EXTI_SWIER_SWIER6 EXTI_SWIER_SWIER6_Msk /*!< Software Interrupt on line 6 */
  5808. #define EXTI_SWIER_SWIER7_Pos (7U)
  5809. #define EXTI_SWIER_SWIER7_Msk (0x1U << EXTI_SWIER_SWIER7_Pos) /*!< 0x00000080 */
  5810. #define EXTI_SWIER_SWIER7 EXTI_SWIER_SWIER7_Msk /*!< Software Interrupt on line 7 */
  5811. #define EXTI_SWIER_SWIER8_Pos (8U)
  5812. #define EXTI_SWIER_SWIER8_Msk (0x1U << EXTI_SWIER_SWIER8_Pos) /*!< 0x00000100 */
  5813. #define EXTI_SWIER_SWIER8 EXTI_SWIER_SWIER8_Msk /*!< Software Interrupt on line 8 */
  5814. #define EXTI_SWIER_SWIER9_Pos (9U)
  5815. #define EXTI_SWIER_SWIER9_Msk (0x1U << EXTI_SWIER_SWIER9_Pos) /*!< 0x00000200 */
  5816. #define EXTI_SWIER_SWIER9 EXTI_SWIER_SWIER9_Msk /*!< Software Interrupt on line 9 */
  5817. #define EXTI_SWIER_SWIER10_Pos (10U)
  5818. #define EXTI_SWIER_SWIER10_Msk (0x1U << EXTI_SWIER_SWIER10_Pos) /*!< 0x00000400 */
  5819. #define EXTI_SWIER_SWIER10 EXTI_SWIER_SWIER10_Msk /*!< Software Interrupt on line 10 */
  5820. #define EXTI_SWIER_SWIER11_Pos (11U)
  5821. #define EXTI_SWIER_SWIER11_Msk (0x1U << EXTI_SWIER_SWIER11_Pos) /*!< 0x00000800 */
  5822. #define EXTI_SWIER_SWIER11 EXTI_SWIER_SWIER11_Msk /*!< Software Interrupt on line 11 */
  5823. #define EXTI_SWIER_SWIER12_Pos (12U)
  5824. #define EXTI_SWIER_SWIER12_Msk (0x1U << EXTI_SWIER_SWIER12_Pos) /*!< 0x00001000 */
  5825. #define EXTI_SWIER_SWIER12 EXTI_SWIER_SWIER12_Msk /*!< Software Interrupt on line 12 */
  5826. #define EXTI_SWIER_SWIER13_Pos (13U)
  5827. #define EXTI_SWIER_SWIER13_Msk (0x1U << EXTI_SWIER_SWIER13_Pos) /*!< 0x00002000 */
  5828. #define EXTI_SWIER_SWIER13 EXTI_SWIER_SWIER13_Msk /*!< Software Interrupt on line 13 */
  5829. #define EXTI_SWIER_SWIER14_Pos (14U)
  5830. #define EXTI_SWIER_SWIER14_Msk (0x1U << EXTI_SWIER_SWIER14_Pos) /*!< 0x00004000 */
  5831. #define EXTI_SWIER_SWIER14 EXTI_SWIER_SWIER14_Msk /*!< Software Interrupt on line 14 */
  5832. #define EXTI_SWIER_SWIER15_Pos (15U)
  5833. #define EXTI_SWIER_SWIER15_Msk (0x1U << EXTI_SWIER_SWIER15_Pos) /*!< 0x00008000 */
  5834. #define EXTI_SWIER_SWIER15 EXTI_SWIER_SWIER15_Msk /*!< Software Interrupt on line 15 */
  5835. #define EXTI_SWIER_SWIER16_Pos (16U)
  5836. #define EXTI_SWIER_SWIER16_Msk (0x1U << EXTI_SWIER_SWIER16_Pos) /*!< 0x00010000 */
  5837. #define EXTI_SWIER_SWIER16 EXTI_SWIER_SWIER16_Msk /*!< Software Interrupt on line 16 */
  5838. #define EXTI_SWIER_SWIER17_Pos (17U)
  5839. #define EXTI_SWIER_SWIER17_Msk (0x1U << EXTI_SWIER_SWIER17_Pos) /*!< 0x00020000 */
  5840. #define EXTI_SWIER_SWIER17 EXTI_SWIER_SWIER17_Msk /*!< Software Interrupt on line 17 */
  5841. #define EXTI_SWIER_SWIER19_Pos (19U)
  5842. #define EXTI_SWIER_SWIER19_Msk (0x1U << EXTI_SWIER_SWIER19_Pos) /*!< 0x00080000 */
  5843. #define EXTI_SWIER_SWIER19 EXTI_SWIER_SWIER19_Msk /*!< Software Interrupt on line 19 */
  5844. #define EXTI_SWIER_SWIER20_Pos (20U)
  5845. #define EXTI_SWIER_SWIER20_Msk (0x1U << EXTI_SWIER_SWIER20_Pos) /*!< 0x00100000 */
  5846. #define EXTI_SWIER_SWIER20 EXTI_SWIER_SWIER20_Msk /*!< Software Interrupt on line 20 */
  5847. #define EXTI_SWIER_SWIER21_Pos (21U)
  5848. #define EXTI_SWIER_SWIER21_Msk (0x1U << EXTI_SWIER_SWIER21_Pos) /*!< 0x00200000 */
  5849. #define EXTI_SWIER_SWIER21 EXTI_SWIER_SWIER21_Msk /*!< Software Interrupt on line 21 */
  5850. #define EXTI_SWIER_SWIER22_Pos (22U)
  5851. #define EXTI_SWIER_SWIER22_Msk (0x1U << EXTI_SWIER_SWIER22_Pos) /*!< 0x00400000 */
  5852. #define EXTI_SWIER_SWIER22 EXTI_SWIER_SWIER22_Msk /*!< Software Interrupt on line 22 */
  5853. /* References Defines */
  5854. #define EXTI_SWIER_SWI0 EXTI_SWIER_SWIER0
  5855. #define EXTI_SWIER_SWI1 EXTI_SWIER_SWIER1
  5856. #define EXTI_SWIER_SWI2 EXTI_SWIER_SWIER2
  5857. #define EXTI_SWIER_SWI3 EXTI_SWIER_SWIER3
  5858. #define EXTI_SWIER_SWI4 EXTI_SWIER_SWIER4
  5859. #define EXTI_SWIER_SWI5 EXTI_SWIER_SWIER5
  5860. #define EXTI_SWIER_SWI6 EXTI_SWIER_SWIER6
  5861. #define EXTI_SWIER_SWI7 EXTI_SWIER_SWIER7
  5862. #define EXTI_SWIER_SWI8 EXTI_SWIER_SWIER8
  5863. #define EXTI_SWIER_SWI9 EXTI_SWIER_SWIER9
  5864. #define EXTI_SWIER_SWI10 EXTI_SWIER_SWIER10
  5865. #define EXTI_SWIER_SWI11 EXTI_SWIER_SWIER11
  5866. #define EXTI_SWIER_SWI12 EXTI_SWIER_SWIER12
  5867. #define EXTI_SWIER_SWI13 EXTI_SWIER_SWIER13
  5868. #define EXTI_SWIER_SWI14 EXTI_SWIER_SWIER14
  5869. #define EXTI_SWIER_SWI15 EXTI_SWIER_SWIER15
  5870. #define EXTI_SWIER_SWI16 EXTI_SWIER_SWIER16
  5871. #define EXTI_SWIER_SWI17 EXTI_SWIER_SWIER17
  5872. #if defined(EXTI_SWIER_SWIER18)
  5873. #define EXTI_SWIER_SWI18 EXTI_SWIER_SWIER18
  5874. #endif
  5875. #define EXTI_SWIER_SWI19 EXTI_SWIER_SWIER19
  5876. #define EXTI_SWIER_SWI20 EXTI_SWIER_SWIER20
  5877. #define EXTI_SWIER_SWI21 EXTI_SWIER_SWIER21
  5878. #define EXTI_SWIER_SWI22 EXTI_SWIER_SWIER22
  5879. #if defined(EXTI_SWIER_SWIER23)
  5880. #define EXTI_SWIER_SWI23 EXTI_SWIER_SWIER23
  5881. #endif
  5882. #if defined(EXTI_SWIER_SWIER24)
  5883. #define EXTI_SWIER_SWI24 EXTI_SWIER_SWIER24
  5884. #endif
  5885. #if defined(EXTI_SWIER_SWIER25)
  5886. #define EXTI_SWIER_SWI25 EXTI_SWIER_SWIER25
  5887. #endif
  5888. #if defined(EXTI_SWIER_SWIER26)
  5889. #define EXTI_SWIER_SWI26 EXTI_SWIER_SWIER26
  5890. #endif
  5891. #if defined(EXTI_SWIER_SWIER27)
  5892. #define EXTI_SWIER_SWI27 EXTI_SWIER_SWIER27
  5893. #endif
  5894. #if defined(EXTI_SWIER_SWIER28)
  5895. #define EXTI_SWIER_SWI28 EXTI_SWIER_SWIER28
  5896. #endif
  5897. #if defined(EXTI_SWIER_SWIER29)
  5898. #define EXTI_SWIER_SWI29 EXTI_SWIER_SWIER29
  5899. #endif
  5900. #if defined(EXTI_SWIER_SWIER30)
  5901. #define EXTI_SWIER_SWI30 EXTI_SWIER_SWIER30
  5902. #endif
  5903. #if defined(EXTI_SWIER_SWIER31)
  5904. #define EXTI_SWIER_SWI31 EXTI_SWIER_SWIER31
  5905. #endif
  5906. /******************* Bit definition for EXTI_PR register ********************/
  5907. #define EXTI_PR_PR0_Pos (0U)
  5908. #define EXTI_PR_PR0_Msk (0x1U << EXTI_PR_PR0_Pos) /*!< 0x00000001 */
  5909. #define EXTI_PR_PR0 EXTI_PR_PR0_Msk /*!< Pending bit for line 0 */
  5910. #define EXTI_PR_PR1_Pos (1U)
  5911. #define EXTI_PR_PR1_Msk (0x1U << EXTI_PR_PR1_Pos) /*!< 0x00000002 */
  5912. #define EXTI_PR_PR1 EXTI_PR_PR1_Msk /*!< Pending bit for line 1 */
  5913. #define EXTI_PR_PR2_Pos (2U)
  5914. #define EXTI_PR_PR2_Msk (0x1U << EXTI_PR_PR2_Pos) /*!< 0x00000004 */
  5915. #define EXTI_PR_PR2 EXTI_PR_PR2_Msk /*!< Pending bit for line 2 */
  5916. #define EXTI_PR_PR3_Pos (3U)
  5917. #define EXTI_PR_PR3_Msk (0x1U << EXTI_PR_PR3_Pos) /*!< 0x00000008 */
  5918. #define EXTI_PR_PR3 EXTI_PR_PR3_Msk /*!< Pending bit for line 3 */
  5919. #define EXTI_PR_PR4_Pos (4U)
  5920. #define EXTI_PR_PR4_Msk (0x1U << EXTI_PR_PR4_Pos) /*!< 0x00000010 */
  5921. #define EXTI_PR_PR4 EXTI_PR_PR4_Msk /*!< Pending bit for line 4 */
  5922. #define EXTI_PR_PR5_Pos (5U)
  5923. #define EXTI_PR_PR5_Msk (0x1U << EXTI_PR_PR5_Pos) /*!< 0x00000020 */
  5924. #define EXTI_PR_PR5 EXTI_PR_PR5_Msk /*!< Pending bit for line 5 */
  5925. #define EXTI_PR_PR6_Pos (6U)
  5926. #define EXTI_PR_PR6_Msk (0x1U << EXTI_PR_PR6_Pos) /*!< 0x00000040 */
  5927. #define EXTI_PR_PR6 EXTI_PR_PR6_Msk /*!< Pending bit for line 6 */
  5928. #define EXTI_PR_PR7_Pos (7U)
  5929. #define EXTI_PR_PR7_Msk (0x1U << EXTI_PR_PR7_Pos) /*!< 0x00000080 */
  5930. #define EXTI_PR_PR7 EXTI_PR_PR7_Msk /*!< Pending bit for line 7 */
  5931. #define EXTI_PR_PR8_Pos (8U)
  5932. #define EXTI_PR_PR8_Msk (0x1U << EXTI_PR_PR8_Pos) /*!< 0x00000100 */
  5933. #define EXTI_PR_PR8 EXTI_PR_PR8_Msk /*!< Pending bit for line 8 */
  5934. #define EXTI_PR_PR9_Pos (9U)
  5935. #define EXTI_PR_PR9_Msk (0x1U << EXTI_PR_PR9_Pos) /*!< 0x00000200 */
  5936. #define EXTI_PR_PR9 EXTI_PR_PR9_Msk /*!< Pending bit for line 9 */
  5937. #define EXTI_PR_PR10_Pos (10U)
  5938. #define EXTI_PR_PR10_Msk (0x1U << EXTI_PR_PR10_Pos) /*!< 0x00000400 */
  5939. #define EXTI_PR_PR10 EXTI_PR_PR10_Msk /*!< Pending bit for line 10 */
  5940. #define EXTI_PR_PR11_Pos (11U)
  5941. #define EXTI_PR_PR11_Msk (0x1U << EXTI_PR_PR11_Pos) /*!< 0x00000800 */
  5942. #define EXTI_PR_PR11 EXTI_PR_PR11_Msk /*!< Pending bit for line 11 */
  5943. #define EXTI_PR_PR12_Pos (12U)
  5944. #define EXTI_PR_PR12_Msk (0x1U << EXTI_PR_PR12_Pos) /*!< 0x00001000 */
  5945. #define EXTI_PR_PR12 EXTI_PR_PR12_Msk /*!< Pending bit for line 12 */
  5946. #define EXTI_PR_PR13_Pos (13U)
  5947. #define EXTI_PR_PR13_Msk (0x1U << EXTI_PR_PR13_Pos) /*!< 0x00002000 */
  5948. #define EXTI_PR_PR13 EXTI_PR_PR13_Msk /*!< Pending bit for line 13 */
  5949. #define EXTI_PR_PR14_Pos (14U)
  5950. #define EXTI_PR_PR14_Msk (0x1U << EXTI_PR_PR14_Pos) /*!< 0x00004000 */
  5951. #define EXTI_PR_PR14 EXTI_PR_PR14_Msk /*!< Pending bit for line 14 */
  5952. #define EXTI_PR_PR15_Pos (15U)
  5953. #define EXTI_PR_PR15_Msk (0x1U << EXTI_PR_PR15_Pos) /*!< 0x00008000 */
  5954. #define EXTI_PR_PR15 EXTI_PR_PR15_Msk /*!< Pending bit for line 15 */
  5955. #define EXTI_PR_PR16_Pos (16U)
  5956. #define EXTI_PR_PR16_Msk (0x1U << EXTI_PR_PR16_Pos) /*!< 0x00010000 */
  5957. #define EXTI_PR_PR16 EXTI_PR_PR16_Msk /*!< Pending bit for line 16 */
  5958. #define EXTI_PR_PR17_Pos (17U)
  5959. #define EXTI_PR_PR17_Msk (0x1U << EXTI_PR_PR17_Pos) /*!< 0x00020000 */
  5960. #define EXTI_PR_PR17 EXTI_PR_PR17_Msk /*!< Pending bit for line 17 */
  5961. #define EXTI_PR_PR19_Pos (19U)
  5962. #define EXTI_PR_PR19_Msk (0x1U << EXTI_PR_PR19_Pos) /*!< 0x00080000 */
  5963. #define EXTI_PR_PR19 EXTI_PR_PR19_Msk /*!< Pending bit for line 19 */
  5964. #define EXTI_PR_PR20_Pos (20U)
  5965. #define EXTI_PR_PR20_Msk (0x1U << EXTI_PR_PR20_Pos) /*!< 0x00100000 */
  5966. #define EXTI_PR_PR20 EXTI_PR_PR20_Msk /*!< Pending bit for line 20 */
  5967. #define EXTI_PR_PR21_Pos (21U)
  5968. #define EXTI_PR_PR21_Msk (0x1U << EXTI_PR_PR21_Pos) /*!< 0x00200000 */
  5969. #define EXTI_PR_PR21 EXTI_PR_PR21_Msk /*!< Pending bit for line 21 */
  5970. #define EXTI_PR_PR22_Pos (22U)
  5971. #define EXTI_PR_PR22_Msk (0x1U << EXTI_PR_PR22_Pos) /*!< 0x00400000 */
  5972. #define EXTI_PR_PR22 EXTI_PR_PR22_Msk /*!< Pending bit for line 22 */
  5973. /* References Defines */
  5974. #define EXTI_PR_PIF0 EXTI_PR_PR0
  5975. #define EXTI_PR_PIF1 EXTI_PR_PR1
  5976. #define EXTI_PR_PIF2 EXTI_PR_PR2
  5977. #define EXTI_PR_PIF3 EXTI_PR_PR3
  5978. #define EXTI_PR_PIF4 EXTI_PR_PR4
  5979. #define EXTI_PR_PIF5 EXTI_PR_PR5
  5980. #define EXTI_PR_PIF6 EXTI_PR_PR6
  5981. #define EXTI_PR_PIF6 EXTI_PR_PR6
  5982. #define EXTI_PR_PIF7 EXTI_PR_PR7
  5983. #define EXTI_PR_PIF8 EXTI_PR_PR8
  5984. #define EXTI_PR_PIF9 EXTI_PR_PR9
  5985. #define EXTI_PR_PIF10 EXTI_PR_PR10
  5986. #define EXTI_PR_PIF11 EXTI_PR_PR11
  5987. #define EXTI_PR_PIF12 EXTI_PR_PR12
  5988. #define EXTI_PR_PIF13 EXTI_PR_PR13
  5989. #define EXTI_PR_PIF14 EXTI_PR_PR14
  5990. #define EXTI_PR_PIF15 EXTI_PR_PR15
  5991. #define EXTI_PR_PIF16 EXTI_PR_PR16
  5992. #define EXTI_PR_PIF17 EXTI_PR_PR17
  5993. #if defined(EXTI_PR_PR18)
  5994. #define EXTI_PR_PIF18 EXTI_PR_PR18
  5995. #endif
  5996. #define EXTI_PR_PIF19 EXTI_PR_PR19
  5997. #define EXTI_PR_PIF20 EXTI_PR_PR20
  5998. #define EXTI_PR_PIF21 EXTI_PR_PR21
  5999. #define EXTI_PR_PIF22 EXTI_PR_PR22
  6000. #if defined(EXTI_PR_PR23)
  6001. #define EXTI_PR_PIF23 EXTI_PR_PR23
  6002. #endif
  6003. #if defined(EXTI_PR_PR24)
  6004. #define EXTI_PR_PIF24 EXTI_PR_PR24
  6005. #endif
  6006. #if defined(EXTI_PR_PR25)
  6007. #define EXTI_PR_PIF25 EXTI_PR_PR25
  6008. #endif
  6009. #if defined(EXTI_PR_PR26)
  6010. #define EXTI_PR_PIF26 EXTI_PR_PR26
  6011. #endif
  6012. #if defined(EXTI_PR_PR27)
  6013. #define EXTI_PR_PIF27 EXTI_PR_PR27
  6014. #endif
  6015. #if defined(EXTI_PR_PR28)
  6016. #define EXTI_PR_PIF28 EXTI_PR_PR28
  6017. #endif
  6018. #if defined(EXTI_PR_PR29)
  6019. #define EXTI_PR_PIF29 EXTI_PR_PR29
  6020. #endif
  6021. #if defined(EXTI_PR_PR30)
  6022. #define EXTI_PR_PIF30 EXTI_PR_PR30
  6023. #endif
  6024. #if defined(EXTI_PR_PR31)
  6025. #define EXTI_PR_PIF31 EXTI_PR_PR31
  6026. #endif
  6027. /******************************************************************************/
  6028. /* */
  6029. /* FLASH */
  6030. /* */
  6031. /******************************************************************************/
  6032. /******************* Bit definition for FLASH_ACR register ******************/
  6033. #define FLASH_ACR_LATENCY_Pos (0U)
  6034. #define FLASH_ACR_LATENCY_Msk (0x7U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000007 */
  6035. #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk /*!< LATENCY[2:0] bits (Latency) */
  6036. #define FLASH_ACR_LATENCY_0 (0x1U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000001 */
  6037. #define FLASH_ACR_LATENCY_1 (0x2U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000002 */
  6038. #define FLASH_ACR_LATENCY_2 (0x4U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000004 */
  6039. #define FLASH_ACR_PRFTBE_Pos (4U)
  6040. #define FLASH_ACR_PRFTBE_Msk (0x1U << FLASH_ACR_PRFTBE_Pos) /*!< 0x00000010 */
  6041. #define FLASH_ACR_PRFTBE FLASH_ACR_PRFTBE_Msk /*!< Prefetch Buffer Enable */
  6042. #define FLASH_ACR_PRFTBS_Pos (5U)
  6043. #define FLASH_ACR_PRFTBS_Msk (0x1U << FLASH_ACR_PRFTBS_Pos) /*!< 0x00000020 */
  6044. #define FLASH_ACR_PRFTBS FLASH_ACR_PRFTBS_Msk /*!< Prefetch Buffer Status */
  6045. /****************** Bit definition for FLASH_KEYR register ******************/
  6046. #define FLASH_KEYR_FKEYR_Pos (0U)
  6047. #define FLASH_KEYR_FKEYR_Msk (0xFFFFFFFFU << FLASH_KEYR_FKEYR_Pos) /*!< 0xFFFFFFFF */
  6048. #define FLASH_KEYR_FKEYR FLASH_KEYR_FKEYR_Msk /*!< FPEC Key */
  6049. #define FLASH_KEY1_Pos (0U)
  6050. #define FLASH_KEY1_Msk (0x45670123U << FLASH_KEY1_Pos) /*!< 0x45670123 */
  6051. #define FLASH_KEY1 FLASH_KEY1_Msk /*!< FPEC Key1 */
  6052. #define FLASH_KEY2_Pos (0U)
  6053. #define FLASH_KEY2_Msk (0xCDEF89ABU << FLASH_KEY2_Pos) /*!< 0xCDEF89AB */
  6054. #define FLASH_KEY2 FLASH_KEY2_Msk /*!< FPEC Key2 */
  6055. /***************** Bit definition for FLASH_OPTKEYR register ****************/
  6056. #define FLASH_OPTKEYR_OPTKEYR_Pos (0U)
  6057. #define FLASH_OPTKEYR_OPTKEYR_Msk (0xFFFFFFFFU << FLASH_OPTKEYR_OPTKEYR_Pos) /*!< 0xFFFFFFFF */
  6058. #define FLASH_OPTKEYR_OPTKEYR FLASH_OPTKEYR_OPTKEYR_Msk /*!< Option Byte Key */
  6059. #define FLASH_OPTKEY1 FLASH_KEY1 /*!< Option Byte Key1 */
  6060. #define FLASH_OPTKEY2 FLASH_KEY2 /*!< Option Byte Key2 */
  6061. /****************** Bit definition for FLASH_SR register *******************/
  6062. #define FLASH_SR_BSY_Pos (0U)
  6063. #define FLASH_SR_BSY_Msk (0x1U << FLASH_SR_BSY_Pos) /*!< 0x00000001 */
  6064. #define FLASH_SR_BSY FLASH_SR_BSY_Msk /*!< Busy */
  6065. #define FLASH_SR_PGERR_Pos (2U)
  6066. #define FLASH_SR_PGERR_Msk (0x1U << FLASH_SR_PGERR_Pos) /*!< 0x00000004 */
  6067. #define FLASH_SR_PGERR FLASH_SR_PGERR_Msk /*!< Programming Error */
  6068. #define FLASH_SR_WRPERR_Pos (4U)
  6069. #define FLASH_SR_WRPERR_Msk (0x1U << FLASH_SR_WRPERR_Pos) /*!< 0x00000010 */
  6070. #define FLASH_SR_WRPERR FLASH_SR_WRPERR_Msk /*!< Write Protection Error */
  6071. #define FLASH_SR_EOP_Pos (5U)
  6072. #define FLASH_SR_EOP_Msk (0x1U << FLASH_SR_EOP_Pos) /*!< 0x00000020 */
  6073. #define FLASH_SR_EOP FLASH_SR_EOP_Msk /*!< End of operation */
  6074. /******************* Bit definition for FLASH_CR register *******************/
  6075. #define FLASH_CR_PG_Pos (0U)
  6076. #define FLASH_CR_PG_Msk (0x1U << FLASH_CR_PG_Pos) /*!< 0x00000001 */
  6077. #define FLASH_CR_PG FLASH_CR_PG_Msk /*!< Programming */
  6078. #define FLASH_CR_PER_Pos (1U)
  6079. #define FLASH_CR_PER_Msk (0x1U << FLASH_CR_PER_Pos) /*!< 0x00000002 */
  6080. #define FLASH_CR_PER FLASH_CR_PER_Msk /*!< Page Erase */
  6081. #define FLASH_CR_MER_Pos (2U)
  6082. #define FLASH_CR_MER_Msk (0x1U << FLASH_CR_MER_Pos) /*!< 0x00000004 */
  6083. #define FLASH_CR_MER FLASH_CR_MER_Msk /*!< Mass Erase */
  6084. #define FLASH_CR_OPTPG_Pos (4U)
  6085. #define FLASH_CR_OPTPG_Msk (0x1U << FLASH_CR_OPTPG_Pos) /*!< 0x00000010 */
  6086. #define FLASH_CR_OPTPG FLASH_CR_OPTPG_Msk /*!< Option Byte Programming */
  6087. #define FLASH_CR_OPTER_Pos (5U)
  6088. #define FLASH_CR_OPTER_Msk (0x1U << FLASH_CR_OPTER_Pos) /*!< 0x00000020 */
  6089. #define FLASH_CR_OPTER FLASH_CR_OPTER_Msk /*!< Option Byte Erase */
  6090. #define FLASH_CR_STRT_Pos (6U)
  6091. #define FLASH_CR_STRT_Msk (0x1U << FLASH_CR_STRT_Pos) /*!< 0x00000040 */
  6092. #define FLASH_CR_STRT FLASH_CR_STRT_Msk /*!< Start */
  6093. #define FLASH_CR_LOCK_Pos (7U)
  6094. #define FLASH_CR_LOCK_Msk (0x1U << FLASH_CR_LOCK_Pos) /*!< 0x00000080 */
  6095. #define FLASH_CR_LOCK FLASH_CR_LOCK_Msk /*!< Lock */
  6096. #define FLASH_CR_OPTWRE_Pos (9U)
  6097. #define FLASH_CR_OPTWRE_Msk (0x1U << FLASH_CR_OPTWRE_Pos) /*!< 0x00000200 */
  6098. #define FLASH_CR_OPTWRE FLASH_CR_OPTWRE_Msk /*!< Option Bytes Write Enable */
  6099. #define FLASH_CR_ERRIE_Pos (10U)
  6100. #define FLASH_CR_ERRIE_Msk (0x1U << FLASH_CR_ERRIE_Pos) /*!< 0x00000400 */
  6101. #define FLASH_CR_ERRIE FLASH_CR_ERRIE_Msk /*!< Error Interrupt Enable */
  6102. #define FLASH_CR_EOPIE_Pos (12U)
  6103. #define FLASH_CR_EOPIE_Msk (0x1U << FLASH_CR_EOPIE_Pos) /*!< 0x00001000 */
  6104. #define FLASH_CR_EOPIE FLASH_CR_EOPIE_Msk /*!< End of operation interrupt enable */
  6105. #define FLASH_CR_OBL_LAUNCH_Pos (13U)
  6106. #define FLASH_CR_OBL_LAUNCH_Msk (0x1U << FLASH_CR_OBL_LAUNCH_Pos) /*!< 0x00002000 */
  6107. #define FLASH_CR_OBL_LAUNCH FLASH_CR_OBL_LAUNCH_Msk /*!< OptionBytes Loader Launch */
  6108. /******************* Bit definition for FLASH_AR register *******************/
  6109. #define FLASH_AR_FAR_Pos (0U)
  6110. #define FLASH_AR_FAR_Msk (0xFFFFFFFFU << FLASH_AR_FAR_Pos) /*!< 0xFFFFFFFF */
  6111. #define FLASH_AR_FAR FLASH_AR_FAR_Msk /*!< Flash Address */
  6112. /****************** Bit definition for FLASH_OBR register *******************/
  6113. #define FLASH_OBR_OPTERR_Pos (0U)
  6114. #define FLASH_OBR_OPTERR_Msk (0x1U << FLASH_OBR_OPTERR_Pos) /*!< 0x00000001 */
  6115. #define FLASH_OBR_OPTERR FLASH_OBR_OPTERR_Msk /*!< Option Byte Error */
  6116. #define FLASH_OBR_LEVEL1_PROT_Pos (1U)
  6117. #define FLASH_OBR_LEVEL1_PROT_Msk (0x1U << FLASH_OBR_LEVEL1_PROT_Pos) /*!< 0x00000002 */
  6118. #define FLASH_OBR_LEVEL1_PROT FLASH_OBR_LEVEL1_PROT_Msk /*!< Level 1 Read protection status */
  6119. #define FLASH_OBR_LEVEL2_PROT_Pos (2U)
  6120. #define FLASH_OBR_LEVEL2_PROT_Msk (0x1U << FLASH_OBR_LEVEL2_PROT_Pos) /*!< 0x00000004 */
  6121. #define FLASH_OBR_LEVEL2_PROT FLASH_OBR_LEVEL2_PROT_Msk /*!< Level 2 Read protection status */
  6122. #define FLASH_OBR_USER_Pos (8U)
  6123. #define FLASH_OBR_USER_Msk (0xF7U << FLASH_OBR_USER_Pos) /*!< 0x0000F700 */
  6124. #define FLASH_OBR_USER FLASH_OBR_USER_Msk /*!< User Option Bytes */
  6125. #define FLASH_OBR_IWDG_SW_Pos (8U)
  6126. #define FLASH_OBR_IWDG_SW_Msk (0x1U << FLASH_OBR_IWDG_SW_Pos) /*!< 0x00000100 */
  6127. #define FLASH_OBR_IWDG_SW FLASH_OBR_IWDG_SW_Msk /*!< IWDG SW */
  6128. #define FLASH_OBR_nRST_STOP_Pos (9U)
  6129. #define FLASH_OBR_nRST_STOP_Msk (0x1U << FLASH_OBR_nRST_STOP_Pos) /*!< 0x00000200 */
  6130. #define FLASH_OBR_nRST_STOP FLASH_OBR_nRST_STOP_Msk /*!< nRST_STOP */
  6131. #define FLASH_OBR_nRST_STDBY_Pos (10U)
  6132. #define FLASH_OBR_nRST_STDBY_Msk (0x1U << FLASH_OBR_nRST_STDBY_Pos) /*!< 0x00000400 */
  6133. #define FLASH_OBR_nRST_STDBY FLASH_OBR_nRST_STDBY_Msk /*!< nRST_STDBY */
  6134. #define FLASH_OBR_nBOOT1_Pos (12U)
  6135. #define FLASH_OBR_nBOOT1_Msk (0x1U << FLASH_OBR_nBOOT1_Pos) /*!< 0x00001000 */
  6136. #define FLASH_OBR_nBOOT1 FLASH_OBR_nBOOT1_Msk /*!< nBOOT1 */
  6137. #define FLASH_OBR_VDDA_MONITOR_Pos (13U)
  6138. #define FLASH_OBR_VDDA_MONITOR_Msk (0x1U << FLASH_OBR_VDDA_MONITOR_Pos) /*!< 0x00002000 */
  6139. #define FLASH_OBR_VDDA_MONITOR FLASH_OBR_VDDA_MONITOR_Msk /*!< VDDA_MONITOR */
  6140. #define FLASH_OBR_SRAM_PE_Pos (14U)
  6141. #define FLASH_OBR_SRAM_PE_Msk (0x1U << FLASH_OBR_SRAM_PE_Pos) /*!< 0x00004000 */
  6142. #define FLASH_OBR_SRAM_PE FLASH_OBR_SRAM_PE_Msk /*!< SRAM_PE */
  6143. #define FLASH_OBR_SDADC12_VDD_MONITOR_Pos (15U)
  6144. #define FLASH_OBR_SDADC12_VDD_MONITOR_Msk (0x1U << FLASH_OBR_SDADC12_VDD_MONITOR_Pos) /*!< 0x00008000 */
  6145. #define FLASH_OBR_SDADC12_VDD_MONITOR FLASH_OBR_SDADC12_VDD_MONITOR_Msk /*!< SDADC12_VDD_MONITOR */
  6146. #define FLASH_OBR_DATA0_Pos (16U)
  6147. #define FLASH_OBR_DATA0_Msk (0xFFU << FLASH_OBR_DATA0_Pos) /*!< 0x00FF0000 */
  6148. #define FLASH_OBR_DATA0 FLASH_OBR_DATA0_Msk /*!< Data0 */
  6149. #define FLASH_OBR_DATA1_Pos (24U)
  6150. #define FLASH_OBR_DATA1_Msk (0xFFU << FLASH_OBR_DATA1_Pos) /*!< 0xFF000000 */
  6151. #define FLASH_OBR_DATA1 FLASH_OBR_DATA1_Msk /*!< Data1 */
  6152. /* Legacy defines */
  6153. #define FLASH_OBR_WDG_SW FLASH_OBR_IWDG_SW
  6154. /****************** Bit definition for FLASH_WRPR register ******************/
  6155. #define FLASH_WRPR_WRP_Pos (0U)
  6156. #define FLASH_WRPR_WRP_Msk (0xFFFFFFFFU << FLASH_WRPR_WRP_Pos) /*!< 0xFFFFFFFF */
  6157. #define FLASH_WRPR_WRP FLASH_WRPR_WRP_Msk /*!< Write Protect */
  6158. /*----------------------------------------------------------------------------*/
  6159. /****************** Bit definition for OB_RDP register **********************/
  6160. #define OB_RDP_RDP_Pos (0U)
  6161. #define OB_RDP_RDP_Msk (0xFFU << OB_RDP_RDP_Pos) /*!< 0x000000FF */
  6162. #define OB_RDP_RDP OB_RDP_RDP_Msk /*!< Read protection option byte */
  6163. #define OB_RDP_nRDP_Pos (8U)
  6164. #define OB_RDP_nRDP_Msk (0xFFU << OB_RDP_nRDP_Pos) /*!< 0x0000FF00 */
  6165. #define OB_RDP_nRDP OB_RDP_nRDP_Msk /*!< Read protection complemented option byte */
  6166. /****************** Bit definition for OB_USER register *********************/
  6167. #define OB_USER_USER_Pos (16U)
  6168. #define OB_USER_USER_Msk (0xFFU << OB_USER_USER_Pos) /*!< 0x00FF0000 */
  6169. #define OB_USER_USER OB_USER_USER_Msk /*!< User option byte */
  6170. #define OB_USER_nUSER_Pos (24U)
  6171. #define OB_USER_nUSER_Msk (0xFFU << OB_USER_nUSER_Pos) /*!< 0xFF000000 */
  6172. #define OB_USER_nUSER OB_USER_nUSER_Msk /*!< User complemented option byte */
  6173. /****************** Bit definition for FLASH_WRP0 register ******************/
  6174. #define OB_WRP0_WRP0_Pos (0U)
  6175. #define OB_WRP0_WRP0_Msk (0xFFU << OB_WRP0_WRP0_Pos) /*!< 0x000000FF */
  6176. #define OB_WRP0_WRP0 OB_WRP0_WRP0_Msk /*!< Flash memory write protection option bytes */
  6177. #define OB_WRP0_nWRP0_Pos (8U)
  6178. #define OB_WRP0_nWRP0_Msk (0xFFU << OB_WRP0_nWRP0_Pos) /*!< 0x0000FF00 */
  6179. #define OB_WRP0_nWRP0 OB_WRP0_nWRP0_Msk /*!< Flash memory write protection complemented option bytes */
  6180. /****************** Bit definition for FLASH_WRP1 register ******************/
  6181. #define OB_WRP1_WRP1_Pos (16U)
  6182. #define OB_WRP1_WRP1_Msk (0xFFU << OB_WRP1_WRP1_Pos) /*!< 0x00FF0000 */
  6183. #define OB_WRP1_WRP1 OB_WRP1_WRP1_Msk /*!< Flash memory write protection option bytes */
  6184. #define OB_WRP1_nWRP1_Pos (24U)
  6185. #define OB_WRP1_nWRP1_Msk (0xFFU << OB_WRP1_nWRP1_Pos) /*!< 0xFF000000 */
  6186. #define OB_WRP1_nWRP1 OB_WRP1_nWRP1_Msk /*!< Flash memory write protection complemented option bytes */
  6187. /****************** Bit definition for FLASH_WRP2 register ******************/
  6188. #define OB_WRP2_WRP2_Pos (0U)
  6189. #define OB_WRP2_WRP2_Msk (0xFFU << OB_WRP2_WRP2_Pos) /*!< 0x000000FF */
  6190. #define OB_WRP2_WRP2 OB_WRP2_WRP2_Msk /*!< Flash memory write protection option bytes */
  6191. #define OB_WRP2_nWRP2_Pos (8U)
  6192. #define OB_WRP2_nWRP2_Msk (0xFFU << OB_WRP2_nWRP2_Pos) /*!< 0x0000FF00 */
  6193. #define OB_WRP2_nWRP2 OB_WRP2_nWRP2_Msk /*!< Flash memory write protection complemented option bytes */
  6194. /****************** Bit definition for FLASH_WRP3 register ******************/
  6195. #define OB_WRP3_WRP3_Pos (16U)
  6196. #define OB_WRP3_WRP3_Msk (0xFFU << OB_WRP3_WRP3_Pos) /*!< 0x00FF0000 */
  6197. #define OB_WRP3_WRP3 OB_WRP3_WRP3_Msk /*!< Flash memory write protection option bytes */
  6198. #define OB_WRP3_nWRP3_Pos (24U)
  6199. #define OB_WRP3_nWRP3_Msk (0xFFU << OB_WRP3_nWRP3_Pos) /*!< 0xFF000000 */
  6200. #define OB_WRP3_nWRP3 OB_WRP3_nWRP3_Msk /*!< Flash memory write protection complemented option bytes */
  6201. /******************************************************************************/
  6202. /* */
  6203. /* General Purpose I/O (GPIO) */
  6204. /* */
  6205. /******************************************************************************/
  6206. /******************* Bit definition for GPIO_MODER register *****************/
  6207. #define GPIO_MODER_MODER0_Pos (0U)
  6208. #define GPIO_MODER_MODER0_Msk (0x3U << GPIO_MODER_MODER0_Pos) /*!< 0x00000003 */
  6209. #define GPIO_MODER_MODER0 GPIO_MODER_MODER0_Msk
  6210. #define GPIO_MODER_MODER0_0 (0x1U << GPIO_MODER_MODER0_Pos) /*!< 0x00000001 */
  6211. #define GPIO_MODER_MODER0_1 (0x2U << GPIO_MODER_MODER0_Pos) /*!< 0x00000002 */
  6212. #define GPIO_MODER_MODER1_Pos (2U)
  6213. #define GPIO_MODER_MODER1_Msk (0x3U << GPIO_MODER_MODER1_Pos) /*!< 0x0000000C */
  6214. #define GPIO_MODER_MODER1 GPIO_MODER_MODER1_Msk
  6215. #define GPIO_MODER_MODER1_0 (0x1U << GPIO_MODER_MODER1_Pos) /*!< 0x00000004 */
  6216. #define GPIO_MODER_MODER1_1 (0x2U << GPIO_MODER_MODER1_Pos) /*!< 0x00000008 */
  6217. #define GPIO_MODER_MODER2_Pos (4U)
  6218. #define GPIO_MODER_MODER2_Msk (0x3U << GPIO_MODER_MODER2_Pos) /*!< 0x00000030 */
  6219. #define GPIO_MODER_MODER2 GPIO_MODER_MODER2_Msk
  6220. #define GPIO_MODER_MODER2_0 (0x1U << GPIO_MODER_MODER2_Pos) /*!< 0x00000010 */
  6221. #define GPIO_MODER_MODER2_1 (0x2U << GPIO_MODER_MODER2_Pos) /*!< 0x00000020 */
  6222. #define GPIO_MODER_MODER3_Pos (6U)
  6223. #define GPIO_MODER_MODER3_Msk (0x3U << GPIO_MODER_MODER3_Pos) /*!< 0x000000C0 */
  6224. #define GPIO_MODER_MODER3 GPIO_MODER_MODER3_Msk
  6225. #define GPIO_MODER_MODER3_0 (0x1U << GPIO_MODER_MODER3_Pos) /*!< 0x00000040 */
  6226. #define GPIO_MODER_MODER3_1 (0x2U << GPIO_MODER_MODER3_Pos) /*!< 0x00000080 */
  6227. #define GPIO_MODER_MODER4_Pos (8U)
  6228. #define GPIO_MODER_MODER4_Msk (0x3U << GPIO_MODER_MODER4_Pos) /*!< 0x00000300 */
  6229. #define GPIO_MODER_MODER4 GPIO_MODER_MODER4_Msk
  6230. #define GPIO_MODER_MODER4_0 (0x1U << GPIO_MODER_MODER4_Pos) /*!< 0x00000100 */
  6231. #define GPIO_MODER_MODER4_1 (0x2U << GPIO_MODER_MODER4_Pos) /*!< 0x00000200 */
  6232. #define GPIO_MODER_MODER5_Pos (10U)
  6233. #define GPIO_MODER_MODER5_Msk (0x3U << GPIO_MODER_MODER5_Pos) /*!< 0x00000C00 */
  6234. #define GPIO_MODER_MODER5 GPIO_MODER_MODER5_Msk
  6235. #define GPIO_MODER_MODER5_0 (0x1U << GPIO_MODER_MODER5_Pos) /*!< 0x00000400 */
  6236. #define GPIO_MODER_MODER5_1 (0x2U << GPIO_MODER_MODER5_Pos) /*!< 0x00000800 */
  6237. #define GPIO_MODER_MODER6_Pos (12U)
  6238. #define GPIO_MODER_MODER6_Msk (0x3U << GPIO_MODER_MODER6_Pos) /*!< 0x00003000 */
  6239. #define GPIO_MODER_MODER6 GPIO_MODER_MODER6_Msk
  6240. #define GPIO_MODER_MODER6_0 (0x1U << GPIO_MODER_MODER6_Pos) /*!< 0x00001000 */
  6241. #define GPIO_MODER_MODER6_1 (0x2U << GPIO_MODER_MODER6_Pos) /*!< 0x00002000 */
  6242. #define GPIO_MODER_MODER7_Pos (14U)
  6243. #define GPIO_MODER_MODER7_Msk (0x3U << GPIO_MODER_MODER7_Pos) /*!< 0x0000C000 */
  6244. #define GPIO_MODER_MODER7 GPIO_MODER_MODER7_Msk
  6245. #define GPIO_MODER_MODER7_0 (0x1U << GPIO_MODER_MODER7_Pos) /*!< 0x00004000 */
  6246. #define GPIO_MODER_MODER7_1 (0x2U << GPIO_MODER_MODER7_Pos) /*!< 0x00008000 */
  6247. #define GPIO_MODER_MODER8_Pos (16U)
  6248. #define GPIO_MODER_MODER8_Msk (0x3U << GPIO_MODER_MODER8_Pos) /*!< 0x00030000 */
  6249. #define GPIO_MODER_MODER8 GPIO_MODER_MODER8_Msk
  6250. #define GPIO_MODER_MODER8_0 (0x1U << GPIO_MODER_MODER8_Pos) /*!< 0x00010000 */
  6251. #define GPIO_MODER_MODER8_1 (0x2U << GPIO_MODER_MODER8_Pos) /*!< 0x00020000 */
  6252. #define GPIO_MODER_MODER9_Pos (18U)
  6253. #define GPIO_MODER_MODER9_Msk (0x3U << GPIO_MODER_MODER9_Pos) /*!< 0x000C0000 */
  6254. #define GPIO_MODER_MODER9 GPIO_MODER_MODER9_Msk
  6255. #define GPIO_MODER_MODER9_0 (0x1U << GPIO_MODER_MODER9_Pos) /*!< 0x00040000 */
  6256. #define GPIO_MODER_MODER9_1 (0x2U << GPIO_MODER_MODER9_Pos) /*!< 0x00080000 */
  6257. #define GPIO_MODER_MODER10_Pos (20U)
  6258. #define GPIO_MODER_MODER10_Msk (0x3U << GPIO_MODER_MODER10_Pos) /*!< 0x00300000 */
  6259. #define GPIO_MODER_MODER10 GPIO_MODER_MODER10_Msk
  6260. #define GPIO_MODER_MODER10_0 (0x1U << GPIO_MODER_MODER10_Pos) /*!< 0x00100000 */
  6261. #define GPIO_MODER_MODER10_1 (0x2U << GPIO_MODER_MODER10_Pos) /*!< 0x00200000 */
  6262. #define GPIO_MODER_MODER11_Pos (22U)
  6263. #define GPIO_MODER_MODER11_Msk (0x3U << GPIO_MODER_MODER11_Pos) /*!< 0x00C00000 */
  6264. #define GPIO_MODER_MODER11 GPIO_MODER_MODER11_Msk
  6265. #define GPIO_MODER_MODER11_0 (0x1U << GPIO_MODER_MODER11_Pos) /*!< 0x00400000 */
  6266. #define GPIO_MODER_MODER11_1 (0x2U << GPIO_MODER_MODER11_Pos) /*!< 0x00800000 */
  6267. #define GPIO_MODER_MODER12_Pos (24U)
  6268. #define GPIO_MODER_MODER12_Msk (0x3U << GPIO_MODER_MODER12_Pos) /*!< 0x03000000 */
  6269. #define GPIO_MODER_MODER12 GPIO_MODER_MODER12_Msk
  6270. #define GPIO_MODER_MODER12_0 (0x1U << GPIO_MODER_MODER12_Pos) /*!< 0x01000000 */
  6271. #define GPIO_MODER_MODER12_1 (0x2U << GPIO_MODER_MODER12_Pos) /*!< 0x02000000 */
  6272. #define GPIO_MODER_MODER13_Pos (26U)
  6273. #define GPIO_MODER_MODER13_Msk (0x3U << GPIO_MODER_MODER13_Pos) /*!< 0x0C000000 */
  6274. #define GPIO_MODER_MODER13 GPIO_MODER_MODER13_Msk
  6275. #define GPIO_MODER_MODER13_0 (0x1U << GPIO_MODER_MODER13_Pos) /*!< 0x04000000 */
  6276. #define GPIO_MODER_MODER13_1 (0x2U << GPIO_MODER_MODER13_Pos) /*!< 0x08000000 */
  6277. #define GPIO_MODER_MODER14_Pos (28U)
  6278. #define GPIO_MODER_MODER14_Msk (0x3U << GPIO_MODER_MODER14_Pos) /*!< 0x30000000 */
  6279. #define GPIO_MODER_MODER14 GPIO_MODER_MODER14_Msk
  6280. #define GPIO_MODER_MODER14_0 (0x1U << GPIO_MODER_MODER14_Pos) /*!< 0x10000000 */
  6281. #define GPIO_MODER_MODER14_1 (0x2U << GPIO_MODER_MODER14_Pos) /*!< 0x20000000 */
  6282. #define GPIO_MODER_MODER15_Pos (30U)
  6283. #define GPIO_MODER_MODER15_Msk (0x3U << GPIO_MODER_MODER15_Pos) /*!< 0xC0000000 */
  6284. #define GPIO_MODER_MODER15 GPIO_MODER_MODER15_Msk
  6285. #define GPIO_MODER_MODER15_0 (0x1U << GPIO_MODER_MODER15_Pos) /*!< 0x40000000 */
  6286. #define GPIO_MODER_MODER15_1 (0x2U << GPIO_MODER_MODER15_Pos) /*!< 0x80000000 */
  6287. /****************** Bit definition for GPIO_OTYPER register *****************/
  6288. #define GPIO_OTYPER_OT_0 (0x00000001U)
  6289. #define GPIO_OTYPER_OT_1 (0x00000002U)
  6290. #define GPIO_OTYPER_OT_2 (0x00000004U)
  6291. #define GPIO_OTYPER_OT_3 (0x00000008U)
  6292. #define GPIO_OTYPER_OT_4 (0x00000010U)
  6293. #define GPIO_OTYPER_OT_5 (0x00000020U)
  6294. #define GPIO_OTYPER_OT_6 (0x00000040U)
  6295. #define GPIO_OTYPER_OT_7 (0x00000080U)
  6296. #define GPIO_OTYPER_OT_8 (0x00000100U)
  6297. #define GPIO_OTYPER_OT_9 (0x00000200U)
  6298. #define GPIO_OTYPER_OT_10 (0x00000400U)
  6299. #define GPIO_OTYPER_OT_11 (0x00000800U)
  6300. #define GPIO_OTYPER_OT_12 (0x00001000U)
  6301. #define GPIO_OTYPER_OT_13 (0x00002000U)
  6302. #define GPIO_OTYPER_OT_14 (0x00004000U)
  6303. #define GPIO_OTYPER_OT_15 (0x00008000U)
  6304. /**************** Bit definition for GPIO_OSPEEDR register ******************/
  6305. #define GPIO_OSPEEDER_OSPEEDR0_Pos (0U)
  6306. #define GPIO_OSPEEDER_OSPEEDR0_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000003 */
  6307. #define GPIO_OSPEEDER_OSPEEDR0 GPIO_OSPEEDER_OSPEEDR0_Msk
  6308. #define GPIO_OSPEEDER_OSPEEDR0_0 (0x1U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000001 */
  6309. #define GPIO_OSPEEDER_OSPEEDR0_1 (0x2U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000002 */
  6310. #define GPIO_OSPEEDER_OSPEEDR1_Pos (2U)
  6311. #define GPIO_OSPEEDER_OSPEEDR1_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x0000000C */
  6312. #define GPIO_OSPEEDER_OSPEEDR1 GPIO_OSPEEDER_OSPEEDR1_Msk
  6313. #define GPIO_OSPEEDER_OSPEEDR1_0 (0x1U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000004 */
  6314. #define GPIO_OSPEEDER_OSPEEDR1_1 (0x2U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000008 */
  6315. #define GPIO_OSPEEDER_OSPEEDR2_Pos (4U)
  6316. #define GPIO_OSPEEDER_OSPEEDR2_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000030 */
  6317. #define GPIO_OSPEEDER_OSPEEDR2 GPIO_OSPEEDER_OSPEEDR2_Msk
  6318. #define GPIO_OSPEEDER_OSPEEDR2_0 (0x1U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000010 */
  6319. #define GPIO_OSPEEDER_OSPEEDR2_1 (0x2U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000020 */
  6320. #define GPIO_OSPEEDER_OSPEEDR3_Pos (6U)
  6321. #define GPIO_OSPEEDER_OSPEEDR3_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x000000C0 */
  6322. #define GPIO_OSPEEDER_OSPEEDR3 GPIO_OSPEEDER_OSPEEDR3_Msk
  6323. #define GPIO_OSPEEDER_OSPEEDR3_0 (0x1U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000040 */
  6324. #define GPIO_OSPEEDER_OSPEEDR3_1 (0x2U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000080 */
  6325. #define GPIO_OSPEEDER_OSPEEDR4_Pos (8U)
  6326. #define GPIO_OSPEEDER_OSPEEDR4_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000300 */
  6327. #define GPIO_OSPEEDER_OSPEEDR4 GPIO_OSPEEDER_OSPEEDR4_Msk
  6328. #define GPIO_OSPEEDER_OSPEEDR4_0 (0x1U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000100 */
  6329. #define GPIO_OSPEEDER_OSPEEDR4_1 (0x2U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000200 */
  6330. #define GPIO_OSPEEDER_OSPEEDR5_Pos (10U)
  6331. #define GPIO_OSPEEDER_OSPEEDR5_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000C00 */
  6332. #define GPIO_OSPEEDER_OSPEEDR5 GPIO_OSPEEDER_OSPEEDR5_Msk
  6333. #define GPIO_OSPEEDER_OSPEEDR5_0 (0x1U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000400 */
  6334. #define GPIO_OSPEEDER_OSPEEDR5_1 (0x2U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000800 */
  6335. #define GPIO_OSPEEDER_OSPEEDR6_Pos (12U)
  6336. #define GPIO_OSPEEDER_OSPEEDR6_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00003000 */
  6337. #define GPIO_OSPEEDER_OSPEEDR6 GPIO_OSPEEDER_OSPEEDR6_Msk
  6338. #define GPIO_OSPEEDER_OSPEEDR6_0 (0x1U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00001000 */
  6339. #define GPIO_OSPEEDER_OSPEEDR6_1 (0x2U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00002000 */
  6340. #define GPIO_OSPEEDER_OSPEEDR7_Pos (14U)
  6341. #define GPIO_OSPEEDER_OSPEEDR7_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x0000C000 */
  6342. #define GPIO_OSPEEDER_OSPEEDR7 GPIO_OSPEEDER_OSPEEDR7_Msk
  6343. #define GPIO_OSPEEDER_OSPEEDR7_0 (0x1U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00004000 */
  6344. #define GPIO_OSPEEDER_OSPEEDR7_1 (0x2U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00008000 */
  6345. #define GPIO_OSPEEDER_OSPEEDR8_Pos (16U)
  6346. #define GPIO_OSPEEDER_OSPEEDR8_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00030000 */
  6347. #define GPIO_OSPEEDER_OSPEEDR8 GPIO_OSPEEDER_OSPEEDR8_Msk
  6348. #define GPIO_OSPEEDER_OSPEEDR8_0 (0x1U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00010000 */
  6349. #define GPIO_OSPEEDER_OSPEEDR8_1 (0x2U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00020000 */
  6350. #define GPIO_OSPEEDER_OSPEEDR9_Pos (18U)
  6351. #define GPIO_OSPEEDER_OSPEEDR9_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x000C0000 */
  6352. #define GPIO_OSPEEDER_OSPEEDR9 GPIO_OSPEEDER_OSPEEDR9_Msk
  6353. #define GPIO_OSPEEDER_OSPEEDR9_0 (0x1U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00040000 */
  6354. #define GPIO_OSPEEDER_OSPEEDR9_1 (0x2U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00080000 */
  6355. #define GPIO_OSPEEDER_OSPEEDR10_Pos (20U)
  6356. #define GPIO_OSPEEDER_OSPEEDR10_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00300000 */
  6357. #define GPIO_OSPEEDER_OSPEEDR10 GPIO_OSPEEDER_OSPEEDR10_Msk
  6358. #define GPIO_OSPEEDER_OSPEEDR10_0 (0x1U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00100000 */
  6359. #define GPIO_OSPEEDER_OSPEEDR10_1 (0x2U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00200000 */
  6360. #define GPIO_OSPEEDER_OSPEEDR11_Pos (22U)
  6361. #define GPIO_OSPEEDER_OSPEEDR11_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00C00000 */
  6362. #define GPIO_OSPEEDER_OSPEEDR11 GPIO_OSPEEDER_OSPEEDR11_Msk
  6363. #define GPIO_OSPEEDER_OSPEEDR11_0 (0x1U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00400000 */
  6364. #define GPIO_OSPEEDER_OSPEEDR11_1 (0x2U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00800000 */
  6365. #define GPIO_OSPEEDER_OSPEEDR12_Pos (24U)
  6366. #define GPIO_OSPEEDER_OSPEEDR12_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x03000000 */
  6367. #define GPIO_OSPEEDER_OSPEEDR12 GPIO_OSPEEDER_OSPEEDR12_Msk
  6368. #define GPIO_OSPEEDER_OSPEEDR12_0 (0x1U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x01000000 */
  6369. #define GPIO_OSPEEDER_OSPEEDR12_1 (0x2U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x02000000 */
  6370. #define GPIO_OSPEEDER_OSPEEDR13_Pos (26U)
  6371. #define GPIO_OSPEEDER_OSPEEDR13_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x0C000000 */
  6372. #define GPIO_OSPEEDER_OSPEEDR13 GPIO_OSPEEDER_OSPEEDR13_Msk
  6373. #define GPIO_OSPEEDER_OSPEEDR13_0 (0x1U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x04000000 */
  6374. #define GPIO_OSPEEDER_OSPEEDR13_1 (0x2U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x08000000 */
  6375. #define GPIO_OSPEEDER_OSPEEDR14_Pos (28U)
  6376. #define GPIO_OSPEEDER_OSPEEDR14_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x30000000 */
  6377. #define GPIO_OSPEEDER_OSPEEDR14 GPIO_OSPEEDER_OSPEEDR14_Msk
  6378. #define GPIO_OSPEEDER_OSPEEDR14_0 (0x1U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x10000000 */
  6379. #define GPIO_OSPEEDER_OSPEEDR14_1 (0x2U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x20000000 */
  6380. #define GPIO_OSPEEDER_OSPEEDR15_Pos (30U)
  6381. #define GPIO_OSPEEDER_OSPEEDR15_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0xC0000000 */
  6382. #define GPIO_OSPEEDER_OSPEEDR15 GPIO_OSPEEDER_OSPEEDR15_Msk
  6383. #define GPIO_OSPEEDER_OSPEEDR15_0 (0x1U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x40000000 */
  6384. #define GPIO_OSPEEDER_OSPEEDR15_1 (0x2U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x80000000 */
  6385. /******************* Bit definition for GPIO_PUPDR register ******************/
  6386. #define GPIO_PUPDR_PUPDR0_Pos (0U)
  6387. #define GPIO_PUPDR_PUPDR0_Msk (0x3U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000003 */
  6388. #define GPIO_PUPDR_PUPDR0 GPIO_PUPDR_PUPDR0_Msk
  6389. #define GPIO_PUPDR_PUPDR0_0 (0x1U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000001 */
  6390. #define GPIO_PUPDR_PUPDR0_1 (0x2U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000002 */
  6391. #define GPIO_PUPDR_PUPDR1_Pos (2U)
  6392. #define GPIO_PUPDR_PUPDR1_Msk (0x3U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x0000000C */
  6393. #define GPIO_PUPDR_PUPDR1 GPIO_PUPDR_PUPDR1_Msk
  6394. #define GPIO_PUPDR_PUPDR1_0 (0x1U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000004 */
  6395. #define GPIO_PUPDR_PUPDR1_1 (0x2U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000008 */
  6396. #define GPIO_PUPDR_PUPDR2_Pos (4U)
  6397. #define GPIO_PUPDR_PUPDR2_Msk (0x3U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000030 */
  6398. #define GPIO_PUPDR_PUPDR2 GPIO_PUPDR_PUPDR2_Msk
  6399. #define GPIO_PUPDR_PUPDR2_0 (0x1U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000010 */
  6400. #define GPIO_PUPDR_PUPDR2_1 (0x2U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000020 */
  6401. #define GPIO_PUPDR_PUPDR3_Pos (6U)
  6402. #define GPIO_PUPDR_PUPDR3_Msk (0x3U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x000000C0 */
  6403. #define GPIO_PUPDR_PUPDR3 GPIO_PUPDR_PUPDR3_Msk
  6404. #define GPIO_PUPDR_PUPDR3_0 (0x1U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000040 */
  6405. #define GPIO_PUPDR_PUPDR3_1 (0x2U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000080 */
  6406. #define GPIO_PUPDR_PUPDR4_Pos (8U)
  6407. #define GPIO_PUPDR_PUPDR4_Msk (0x3U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000300 */
  6408. #define GPIO_PUPDR_PUPDR4 GPIO_PUPDR_PUPDR4_Msk
  6409. #define GPIO_PUPDR_PUPDR4_0 (0x1U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000100 */
  6410. #define GPIO_PUPDR_PUPDR4_1 (0x2U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000200 */
  6411. #define GPIO_PUPDR_PUPDR5_Pos (10U)
  6412. #define GPIO_PUPDR_PUPDR5_Msk (0x3U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000C00 */
  6413. #define GPIO_PUPDR_PUPDR5 GPIO_PUPDR_PUPDR5_Msk
  6414. #define GPIO_PUPDR_PUPDR5_0 (0x1U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000400 */
  6415. #define GPIO_PUPDR_PUPDR5_1 (0x2U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000800 */
  6416. #define GPIO_PUPDR_PUPDR6_Pos (12U)
  6417. #define GPIO_PUPDR_PUPDR6_Msk (0x3U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00003000 */
  6418. #define GPIO_PUPDR_PUPDR6 GPIO_PUPDR_PUPDR6_Msk
  6419. #define GPIO_PUPDR_PUPDR6_0 (0x1U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00001000 */
  6420. #define GPIO_PUPDR_PUPDR6_1 (0x2U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00002000 */
  6421. #define GPIO_PUPDR_PUPDR7_Pos (14U)
  6422. #define GPIO_PUPDR_PUPDR7_Msk (0x3U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x0000C000 */
  6423. #define GPIO_PUPDR_PUPDR7 GPIO_PUPDR_PUPDR7_Msk
  6424. #define GPIO_PUPDR_PUPDR7_0 (0x1U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00004000 */
  6425. #define GPIO_PUPDR_PUPDR7_1 (0x2U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00008000 */
  6426. #define GPIO_PUPDR_PUPDR8_Pos (16U)
  6427. #define GPIO_PUPDR_PUPDR8_Msk (0x3U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00030000 */
  6428. #define GPIO_PUPDR_PUPDR8 GPIO_PUPDR_PUPDR8_Msk
  6429. #define GPIO_PUPDR_PUPDR8_0 (0x1U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00010000 */
  6430. #define GPIO_PUPDR_PUPDR8_1 (0x2U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00020000 */
  6431. #define GPIO_PUPDR_PUPDR9_Pos (18U)
  6432. #define GPIO_PUPDR_PUPDR9_Msk (0x3U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x000C0000 */
  6433. #define GPIO_PUPDR_PUPDR9 GPIO_PUPDR_PUPDR9_Msk
  6434. #define GPIO_PUPDR_PUPDR9_0 (0x1U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00040000 */
  6435. #define GPIO_PUPDR_PUPDR9_1 (0x2U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00080000 */
  6436. #define GPIO_PUPDR_PUPDR10_Pos (20U)
  6437. #define GPIO_PUPDR_PUPDR10_Msk (0x3U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00300000 */
  6438. #define GPIO_PUPDR_PUPDR10 GPIO_PUPDR_PUPDR10_Msk
  6439. #define GPIO_PUPDR_PUPDR10_0 (0x1U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00100000 */
  6440. #define GPIO_PUPDR_PUPDR10_1 (0x2U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00200000 */
  6441. #define GPIO_PUPDR_PUPDR11_Pos (22U)
  6442. #define GPIO_PUPDR_PUPDR11_Msk (0x3U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00C00000 */
  6443. #define GPIO_PUPDR_PUPDR11 GPIO_PUPDR_PUPDR11_Msk
  6444. #define GPIO_PUPDR_PUPDR11_0 (0x1U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00400000 */
  6445. #define GPIO_PUPDR_PUPDR11_1 (0x2U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00800000 */
  6446. #define GPIO_PUPDR_PUPDR12_Pos (24U)
  6447. #define GPIO_PUPDR_PUPDR12_Msk (0x3U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x03000000 */
  6448. #define GPIO_PUPDR_PUPDR12 GPIO_PUPDR_PUPDR12_Msk
  6449. #define GPIO_PUPDR_PUPDR12_0 (0x1U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x01000000 */
  6450. #define GPIO_PUPDR_PUPDR12_1 (0x2U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x02000000 */
  6451. #define GPIO_PUPDR_PUPDR13_Pos (26U)
  6452. #define GPIO_PUPDR_PUPDR13_Msk (0x3U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x0C000000 */
  6453. #define GPIO_PUPDR_PUPDR13 GPIO_PUPDR_PUPDR13_Msk
  6454. #define GPIO_PUPDR_PUPDR13_0 (0x1U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x04000000 */
  6455. #define GPIO_PUPDR_PUPDR13_1 (0x2U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x08000000 */
  6456. #define GPIO_PUPDR_PUPDR14_Pos (28U)
  6457. #define GPIO_PUPDR_PUPDR14_Msk (0x3U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x30000000 */
  6458. #define GPIO_PUPDR_PUPDR14 GPIO_PUPDR_PUPDR14_Msk
  6459. #define GPIO_PUPDR_PUPDR14_0 (0x1U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x10000000 */
  6460. #define GPIO_PUPDR_PUPDR14_1 (0x2U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x20000000 */
  6461. #define GPIO_PUPDR_PUPDR15_Pos (30U)
  6462. #define GPIO_PUPDR_PUPDR15_Msk (0x3U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0xC0000000 */
  6463. #define GPIO_PUPDR_PUPDR15 GPIO_PUPDR_PUPDR15_Msk
  6464. #define GPIO_PUPDR_PUPDR15_0 (0x1U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x40000000 */
  6465. #define GPIO_PUPDR_PUPDR15_1 (0x2U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x80000000 */
  6466. /******************* Bit definition for GPIO_IDR register *******************/
  6467. #define GPIO_IDR_0 (0x00000001U)
  6468. #define GPIO_IDR_1 (0x00000002U)
  6469. #define GPIO_IDR_2 (0x00000004U)
  6470. #define GPIO_IDR_3 (0x00000008U)
  6471. #define GPIO_IDR_4 (0x00000010U)
  6472. #define GPIO_IDR_5 (0x00000020U)
  6473. #define GPIO_IDR_6 (0x00000040U)
  6474. #define GPIO_IDR_7 (0x00000080U)
  6475. #define GPIO_IDR_8 (0x00000100U)
  6476. #define GPIO_IDR_9 (0x00000200U)
  6477. #define GPIO_IDR_10 (0x00000400U)
  6478. #define GPIO_IDR_11 (0x00000800U)
  6479. #define GPIO_IDR_12 (0x00001000U)
  6480. #define GPIO_IDR_13 (0x00002000U)
  6481. #define GPIO_IDR_14 (0x00004000U)
  6482. #define GPIO_IDR_15 (0x00008000U)
  6483. /****************** Bit definition for GPIO_ODR register ********************/
  6484. #define GPIO_ODR_0 (0x00000001U)
  6485. #define GPIO_ODR_1 (0x00000002U)
  6486. #define GPIO_ODR_2 (0x00000004U)
  6487. #define GPIO_ODR_3 (0x00000008U)
  6488. #define GPIO_ODR_4 (0x00000010U)
  6489. #define GPIO_ODR_5 (0x00000020U)
  6490. #define GPIO_ODR_6 (0x00000040U)
  6491. #define GPIO_ODR_7 (0x00000080U)
  6492. #define GPIO_ODR_8 (0x00000100U)
  6493. #define GPIO_ODR_9 (0x00000200U)
  6494. #define GPIO_ODR_10 (0x00000400U)
  6495. #define GPIO_ODR_11 (0x00000800U)
  6496. #define GPIO_ODR_12 (0x00001000U)
  6497. #define GPIO_ODR_13 (0x00002000U)
  6498. #define GPIO_ODR_14 (0x00004000U)
  6499. #define GPIO_ODR_15 (0x00008000U)
  6500. /****************** Bit definition for GPIO_BSRR register ********************/
  6501. #define GPIO_BSRR_BS_0 (0x00000001U)
  6502. #define GPIO_BSRR_BS_1 (0x00000002U)
  6503. #define GPIO_BSRR_BS_2 (0x00000004U)
  6504. #define GPIO_BSRR_BS_3 (0x00000008U)
  6505. #define GPIO_BSRR_BS_4 (0x00000010U)
  6506. #define GPIO_BSRR_BS_5 (0x00000020U)
  6507. #define GPIO_BSRR_BS_6 (0x00000040U)
  6508. #define GPIO_BSRR_BS_7 (0x00000080U)
  6509. #define GPIO_BSRR_BS_8 (0x00000100U)
  6510. #define GPIO_BSRR_BS_9 (0x00000200U)
  6511. #define GPIO_BSRR_BS_10 (0x00000400U)
  6512. #define GPIO_BSRR_BS_11 (0x00000800U)
  6513. #define GPIO_BSRR_BS_12 (0x00001000U)
  6514. #define GPIO_BSRR_BS_13 (0x00002000U)
  6515. #define GPIO_BSRR_BS_14 (0x00004000U)
  6516. #define GPIO_BSRR_BS_15 (0x00008000U)
  6517. #define GPIO_BSRR_BR_0 (0x00010000U)
  6518. #define GPIO_BSRR_BR_1 (0x00020000U)
  6519. #define GPIO_BSRR_BR_2 (0x00040000U)
  6520. #define GPIO_BSRR_BR_3 (0x00080000U)
  6521. #define GPIO_BSRR_BR_4 (0x00100000U)
  6522. #define GPIO_BSRR_BR_5 (0x00200000U)
  6523. #define GPIO_BSRR_BR_6 (0x00400000U)
  6524. #define GPIO_BSRR_BR_7 (0x00800000U)
  6525. #define GPIO_BSRR_BR_8 (0x01000000U)
  6526. #define GPIO_BSRR_BR_9 (0x02000000U)
  6527. #define GPIO_BSRR_BR_10 (0x04000000U)
  6528. #define GPIO_BSRR_BR_11 (0x08000000U)
  6529. #define GPIO_BSRR_BR_12 (0x10000000U)
  6530. #define GPIO_BSRR_BR_13 (0x20000000U)
  6531. #define GPIO_BSRR_BR_14 (0x40000000U)
  6532. #define GPIO_BSRR_BR_15 (0x80000000U)
  6533. /****************** Bit definition for GPIO_LCKR register ********************/
  6534. #define GPIO_LCKR_LCK0_Pos (0U)
  6535. #define GPIO_LCKR_LCK0_Msk (0x1U << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  6536. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  6537. #define GPIO_LCKR_LCK1_Pos (1U)
  6538. #define GPIO_LCKR_LCK1_Msk (0x1U << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  6539. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  6540. #define GPIO_LCKR_LCK2_Pos (2U)
  6541. #define GPIO_LCKR_LCK2_Msk (0x1U << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  6542. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  6543. #define GPIO_LCKR_LCK3_Pos (3U)
  6544. #define GPIO_LCKR_LCK3_Msk (0x1U << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  6545. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  6546. #define GPIO_LCKR_LCK4_Pos (4U)
  6547. #define GPIO_LCKR_LCK4_Msk (0x1U << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  6548. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  6549. #define GPIO_LCKR_LCK5_Pos (5U)
  6550. #define GPIO_LCKR_LCK5_Msk (0x1U << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  6551. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  6552. #define GPIO_LCKR_LCK6_Pos (6U)
  6553. #define GPIO_LCKR_LCK6_Msk (0x1U << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  6554. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  6555. #define GPIO_LCKR_LCK7_Pos (7U)
  6556. #define GPIO_LCKR_LCK7_Msk (0x1U << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  6557. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  6558. #define GPIO_LCKR_LCK8_Pos (8U)
  6559. #define GPIO_LCKR_LCK8_Msk (0x1U << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  6560. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  6561. #define GPIO_LCKR_LCK9_Pos (9U)
  6562. #define GPIO_LCKR_LCK9_Msk (0x1U << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  6563. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  6564. #define GPIO_LCKR_LCK10_Pos (10U)
  6565. #define GPIO_LCKR_LCK10_Msk (0x1U << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  6566. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  6567. #define GPIO_LCKR_LCK11_Pos (11U)
  6568. #define GPIO_LCKR_LCK11_Msk (0x1U << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  6569. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  6570. #define GPIO_LCKR_LCK12_Pos (12U)
  6571. #define GPIO_LCKR_LCK12_Msk (0x1U << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  6572. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  6573. #define GPIO_LCKR_LCK13_Pos (13U)
  6574. #define GPIO_LCKR_LCK13_Msk (0x1U << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  6575. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  6576. #define GPIO_LCKR_LCK14_Pos (14U)
  6577. #define GPIO_LCKR_LCK14_Msk (0x1U << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  6578. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  6579. #define GPIO_LCKR_LCK15_Pos (15U)
  6580. #define GPIO_LCKR_LCK15_Msk (0x1U << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  6581. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  6582. #define GPIO_LCKR_LCKK_Pos (16U)
  6583. #define GPIO_LCKR_LCKK_Msk (0x1U << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  6584. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  6585. /****************** Bit definition for GPIO_AFRL register ********************/
  6586. #define GPIO_AFRL_AFRL0_Pos (0U)
  6587. #define GPIO_AFRL_AFRL0_Msk (0xFU << GPIO_AFRL_AFRL0_Pos) /*!< 0x0000000F */
  6588. #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFRL0_Msk
  6589. #define GPIO_AFRL_AFRL1_Pos (4U)
  6590. #define GPIO_AFRL_AFRL1_Msk (0xFU << GPIO_AFRL_AFRL1_Pos) /*!< 0x000000F0 */
  6591. #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFRL1_Msk
  6592. #define GPIO_AFRL_AFRL2_Pos (8U)
  6593. #define GPIO_AFRL_AFRL2_Msk (0xFU << GPIO_AFRL_AFRL2_Pos) /*!< 0x00000F00 */
  6594. #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFRL2_Msk
  6595. #define GPIO_AFRL_AFRL3_Pos (12U)
  6596. #define GPIO_AFRL_AFRL3_Msk (0xFU << GPIO_AFRL_AFRL3_Pos) /*!< 0x0000F000 */
  6597. #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFRL3_Msk
  6598. #define GPIO_AFRL_AFRL4_Pos (16U)
  6599. #define GPIO_AFRL_AFRL4_Msk (0xFU << GPIO_AFRL_AFRL4_Pos) /*!< 0x000F0000 */
  6600. #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFRL4_Msk
  6601. #define GPIO_AFRL_AFRL5_Pos (20U)
  6602. #define GPIO_AFRL_AFRL5_Msk (0xFU << GPIO_AFRL_AFRL5_Pos) /*!< 0x00F00000 */
  6603. #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFRL5_Msk
  6604. #define GPIO_AFRL_AFRL6_Pos (24U)
  6605. #define GPIO_AFRL_AFRL6_Msk (0xFU << GPIO_AFRL_AFRL6_Pos) /*!< 0x0F000000 */
  6606. #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFRL6_Msk
  6607. #define GPIO_AFRL_AFRL7_Pos (28U)
  6608. #define GPIO_AFRL_AFRL7_Msk (0xFU << GPIO_AFRL_AFRL7_Pos) /*!< 0xF0000000 */
  6609. #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFRL7_Msk
  6610. /****************** Bit definition for GPIO_AFRH register ********************/
  6611. #define GPIO_AFRH_AFRH0_Pos (0U)
  6612. #define GPIO_AFRH_AFRH0_Msk (0xFU << GPIO_AFRH_AFRH0_Pos) /*!< 0x0000000F */
  6613. #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFRH0_Msk
  6614. #define GPIO_AFRH_AFRH1_Pos (4U)
  6615. #define GPIO_AFRH_AFRH1_Msk (0xFU << GPIO_AFRH_AFRH1_Pos) /*!< 0x000000F0 */
  6616. #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFRH1_Msk
  6617. #define GPIO_AFRH_AFRH2_Pos (8U)
  6618. #define GPIO_AFRH_AFRH2_Msk (0xFU << GPIO_AFRH_AFRH2_Pos) /*!< 0x00000F00 */
  6619. #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFRH2_Msk
  6620. #define GPIO_AFRH_AFRH3_Pos (12U)
  6621. #define GPIO_AFRH_AFRH3_Msk (0xFU << GPIO_AFRH_AFRH3_Pos) /*!< 0x0000F000 */
  6622. #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFRH3_Msk
  6623. #define GPIO_AFRH_AFRH4_Pos (16U)
  6624. #define GPIO_AFRH_AFRH4_Msk (0xFU << GPIO_AFRH_AFRH4_Pos) /*!< 0x000F0000 */
  6625. #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFRH4_Msk
  6626. #define GPIO_AFRH_AFRH5_Pos (20U)
  6627. #define GPIO_AFRH_AFRH5_Msk (0xFU << GPIO_AFRH_AFRH5_Pos) /*!< 0x00F00000 */
  6628. #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFRH5_Msk
  6629. #define GPIO_AFRH_AFRH6_Pos (24U)
  6630. #define GPIO_AFRH_AFRH6_Msk (0xFU << GPIO_AFRH_AFRH6_Pos) /*!< 0x0F000000 */
  6631. #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFRH6_Msk
  6632. #define GPIO_AFRH_AFRH7_Pos (28U)
  6633. #define GPIO_AFRH_AFRH7_Msk (0xFU << GPIO_AFRH_AFRH7_Pos) /*!< 0xF0000000 */
  6634. #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFRH7_Msk
  6635. /****************** Bit definition for GPIO_BRR register *********************/
  6636. #define GPIO_BRR_BR_0 (0x00000001U)
  6637. #define GPIO_BRR_BR_1 (0x00000002U)
  6638. #define GPIO_BRR_BR_2 (0x00000004U)
  6639. #define GPIO_BRR_BR_3 (0x00000008U)
  6640. #define GPIO_BRR_BR_4 (0x00000010U)
  6641. #define GPIO_BRR_BR_5 (0x00000020U)
  6642. #define GPIO_BRR_BR_6 (0x00000040U)
  6643. #define GPIO_BRR_BR_7 (0x00000080U)
  6644. #define GPIO_BRR_BR_8 (0x00000100U)
  6645. #define GPIO_BRR_BR_9 (0x00000200U)
  6646. #define GPIO_BRR_BR_10 (0x00000400U)
  6647. #define GPIO_BRR_BR_11 (0x00000800U)
  6648. #define GPIO_BRR_BR_12 (0x00001000U)
  6649. #define GPIO_BRR_BR_13 (0x00002000U)
  6650. #define GPIO_BRR_BR_14 (0x00004000U)
  6651. #define GPIO_BRR_BR_15 (0x00008000U)
  6652. /******************************************************************************/
  6653. /* */
  6654. /* Inter-integrated Circuit Interface (I2C) */
  6655. /* */
  6656. /******************************************************************************/
  6657. /******************* Bit definition for I2C_CR1 register *******************/
  6658. #define I2C_CR1_PE_Pos (0U)
  6659. #define I2C_CR1_PE_Msk (0x1U << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  6660. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  6661. #define I2C_CR1_TXIE_Pos (1U)
  6662. #define I2C_CR1_TXIE_Msk (0x1U << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  6663. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  6664. #define I2C_CR1_RXIE_Pos (2U)
  6665. #define I2C_CR1_RXIE_Msk (0x1U << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  6666. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  6667. #define I2C_CR1_ADDRIE_Pos (3U)
  6668. #define I2C_CR1_ADDRIE_Msk (0x1U << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  6669. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  6670. #define I2C_CR1_NACKIE_Pos (4U)
  6671. #define I2C_CR1_NACKIE_Msk (0x1U << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  6672. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  6673. #define I2C_CR1_STOPIE_Pos (5U)
  6674. #define I2C_CR1_STOPIE_Msk (0x1U << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  6675. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  6676. #define I2C_CR1_TCIE_Pos (6U)
  6677. #define I2C_CR1_TCIE_Msk (0x1U << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  6678. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  6679. #define I2C_CR1_ERRIE_Pos (7U)
  6680. #define I2C_CR1_ERRIE_Msk (0x1U << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  6681. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  6682. #define I2C_CR1_DNF_Pos (8U)
  6683. #define I2C_CR1_DNF_Msk (0xFU << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  6684. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  6685. #define I2C_CR1_ANFOFF_Pos (12U)
  6686. #define I2C_CR1_ANFOFF_Msk (0x1U << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  6687. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  6688. #define I2C_CR1_SWRST_Pos (13U)
  6689. #define I2C_CR1_SWRST_Msk (0x1U << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  6690. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  6691. #define I2C_CR1_TXDMAEN_Pos (14U)
  6692. #define I2C_CR1_TXDMAEN_Msk (0x1U << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  6693. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  6694. #define I2C_CR1_RXDMAEN_Pos (15U)
  6695. #define I2C_CR1_RXDMAEN_Msk (0x1U << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  6696. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  6697. #define I2C_CR1_SBC_Pos (16U)
  6698. #define I2C_CR1_SBC_Msk (0x1U << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  6699. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  6700. #define I2C_CR1_NOSTRETCH_Pos (17U)
  6701. #define I2C_CR1_NOSTRETCH_Msk (0x1U << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  6702. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  6703. #define I2C_CR1_WUPEN_Pos (18U)
  6704. #define I2C_CR1_WUPEN_Msk (0x1U << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  6705. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  6706. #define I2C_CR1_GCEN_Pos (19U)
  6707. #define I2C_CR1_GCEN_Msk (0x1U << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  6708. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  6709. #define I2C_CR1_SMBHEN_Pos (20U)
  6710. #define I2C_CR1_SMBHEN_Msk (0x1U << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  6711. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  6712. #define I2C_CR1_SMBDEN_Pos (21U)
  6713. #define I2C_CR1_SMBDEN_Msk (0x1U << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  6714. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  6715. #define I2C_CR1_ALERTEN_Pos (22U)
  6716. #define I2C_CR1_ALERTEN_Msk (0x1U << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  6717. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  6718. #define I2C_CR1_PECEN_Pos (23U)
  6719. #define I2C_CR1_PECEN_Msk (0x1U << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  6720. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  6721. /* Legacy defines */
  6722. #define I2C_CR1_DFN I2C_CR1_DNF
  6723. /****************** Bit definition for I2C_CR2 register ********************/
  6724. #define I2C_CR2_SADD_Pos (0U)
  6725. #define I2C_CR2_SADD_Msk (0x3FFU << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  6726. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  6727. #define I2C_CR2_RD_WRN_Pos (10U)
  6728. #define I2C_CR2_RD_WRN_Msk (0x1U << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  6729. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  6730. #define I2C_CR2_ADD10_Pos (11U)
  6731. #define I2C_CR2_ADD10_Msk (0x1U << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  6732. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  6733. #define I2C_CR2_HEAD10R_Pos (12U)
  6734. #define I2C_CR2_HEAD10R_Msk (0x1U << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  6735. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  6736. #define I2C_CR2_START_Pos (13U)
  6737. #define I2C_CR2_START_Msk (0x1U << I2C_CR2_START_Pos) /*!< 0x00002000 */
  6738. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  6739. #define I2C_CR2_STOP_Pos (14U)
  6740. #define I2C_CR2_STOP_Msk (0x1U << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  6741. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  6742. #define I2C_CR2_NACK_Pos (15U)
  6743. #define I2C_CR2_NACK_Msk (0x1U << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  6744. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  6745. #define I2C_CR2_NBYTES_Pos (16U)
  6746. #define I2C_CR2_NBYTES_Msk (0xFFU << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  6747. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  6748. #define I2C_CR2_RELOAD_Pos (24U)
  6749. #define I2C_CR2_RELOAD_Msk (0x1U << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  6750. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  6751. #define I2C_CR2_AUTOEND_Pos (25U)
  6752. #define I2C_CR2_AUTOEND_Msk (0x1U << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  6753. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  6754. #define I2C_CR2_PECBYTE_Pos (26U)
  6755. #define I2C_CR2_PECBYTE_Msk (0x1U << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  6756. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  6757. /******************* Bit definition for I2C_OAR1 register ******************/
  6758. #define I2C_OAR1_OA1_Pos (0U)
  6759. #define I2C_OAR1_OA1_Msk (0x3FFU << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  6760. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  6761. #define I2C_OAR1_OA1MODE_Pos (10U)
  6762. #define I2C_OAR1_OA1MODE_Msk (0x1U << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  6763. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  6764. #define I2C_OAR1_OA1EN_Pos (15U)
  6765. #define I2C_OAR1_OA1EN_Msk (0x1U << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  6766. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  6767. /******************* Bit definition for I2C_OAR2 register *******************/
  6768. #define I2C_OAR2_OA2_Pos (1U)
  6769. #define I2C_OAR2_OA2_Msk (0x7FU << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  6770. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  6771. #define I2C_OAR2_OA2MSK_Pos (8U)
  6772. #define I2C_OAR2_OA2MSK_Msk (0x7U << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  6773. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  6774. #define I2C_OAR2_OA2NOMASK (0x00000000U) /*!< No mask */
  6775. #define I2C_OAR2_OA2MASK01_Pos (8U)
  6776. #define I2C_OAR2_OA2MASK01_Msk (0x1U << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */
  6777. #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */
  6778. #define I2C_OAR2_OA2MASK02_Pos (9U)
  6779. #define I2C_OAR2_OA2MASK02_Msk (0x1U << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */
  6780. #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
  6781. #define I2C_OAR2_OA2MASK03_Pos (8U)
  6782. #define I2C_OAR2_OA2MASK03_Msk (0x3U << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */
  6783. #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
  6784. #define I2C_OAR2_OA2MASK04_Pos (10U)
  6785. #define I2C_OAR2_OA2MASK04_Msk (0x1U << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */
  6786. #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
  6787. #define I2C_OAR2_OA2MASK05_Pos (8U)
  6788. #define I2C_OAR2_OA2MASK05_Msk (0x5U << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */
  6789. #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
  6790. #define I2C_OAR2_OA2MASK06_Pos (9U)
  6791. #define I2C_OAR2_OA2MASK06_Msk (0x3U << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */
  6792. #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */
  6793. #define I2C_OAR2_OA2MASK07_Pos (8U)
  6794. #define I2C_OAR2_OA2MASK07_Msk (0x7U << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */
  6795. #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */
  6796. #define I2C_OAR2_OA2EN_Pos (15U)
  6797. #define I2C_OAR2_OA2EN_Msk (0x1U << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  6798. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  6799. /******************* Bit definition for I2C_TIMINGR register *****************/
  6800. #define I2C_TIMINGR_SCLL_Pos (0U)
  6801. #define I2C_TIMINGR_SCLL_Msk (0xFFU << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  6802. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  6803. #define I2C_TIMINGR_SCLH_Pos (8U)
  6804. #define I2C_TIMINGR_SCLH_Msk (0xFFU << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  6805. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  6806. #define I2C_TIMINGR_SDADEL_Pos (16U)
  6807. #define I2C_TIMINGR_SDADEL_Msk (0xFU << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  6808. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  6809. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  6810. #define I2C_TIMINGR_SCLDEL_Msk (0xFU << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  6811. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  6812. #define I2C_TIMINGR_PRESC_Pos (28U)
  6813. #define I2C_TIMINGR_PRESC_Msk (0xFU << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  6814. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  6815. /******************* Bit definition for I2C_TIMEOUTR register *****************/
  6816. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  6817. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  6818. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  6819. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  6820. #define I2C_TIMEOUTR_TIDLE_Msk (0x1U << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  6821. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  6822. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  6823. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1U << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  6824. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  6825. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  6826. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  6827. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  6828. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  6829. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1U << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  6830. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  6831. /****************** Bit definition for I2C_ISR register *********************/
  6832. #define I2C_ISR_TXE_Pos (0U)
  6833. #define I2C_ISR_TXE_Msk (0x1U << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  6834. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  6835. #define I2C_ISR_TXIS_Pos (1U)
  6836. #define I2C_ISR_TXIS_Msk (0x1U << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  6837. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  6838. #define I2C_ISR_RXNE_Pos (2U)
  6839. #define I2C_ISR_RXNE_Msk (0x1U << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  6840. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  6841. #define I2C_ISR_ADDR_Pos (3U)
  6842. #define I2C_ISR_ADDR_Msk (0x1U << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  6843. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  6844. #define I2C_ISR_NACKF_Pos (4U)
  6845. #define I2C_ISR_NACKF_Msk (0x1U << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  6846. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  6847. #define I2C_ISR_STOPF_Pos (5U)
  6848. #define I2C_ISR_STOPF_Msk (0x1U << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  6849. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  6850. #define I2C_ISR_TC_Pos (6U)
  6851. #define I2C_ISR_TC_Msk (0x1U << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  6852. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  6853. #define I2C_ISR_TCR_Pos (7U)
  6854. #define I2C_ISR_TCR_Msk (0x1U << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  6855. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  6856. #define I2C_ISR_BERR_Pos (8U)
  6857. #define I2C_ISR_BERR_Msk (0x1U << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  6858. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  6859. #define I2C_ISR_ARLO_Pos (9U)
  6860. #define I2C_ISR_ARLO_Msk (0x1U << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  6861. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  6862. #define I2C_ISR_OVR_Pos (10U)
  6863. #define I2C_ISR_OVR_Msk (0x1U << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  6864. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  6865. #define I2C_ISR_PECERR_Pos (11U)
  6866. #define I2C_ISR_PECERR_Msk (0x1U << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  6867. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  6868. #define I2C_ISR_TIMEOUT_Pos (12U)
  6869. #define I2C_ISR_TIMEOUT_Msk (0x1U << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  6870. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  6871. #define I2C_ISR_ALERT_Pos (13U)
  6872. #define I2C_ISR_ALERT_Msk (0x1U << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  6873. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  6874. #define I2C_ISR_BUSY_Pos (15U)
  6875. #define I2C_ISR_BUSY_Msk (0x1U << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  6876. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  6877. #define I2C_ISR_DIR_Pos (16U)
  6878. #define I2C_ISR_DIR_Msk (0x1U << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  6879. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  6880. #define I2C_ISR_ADDCODE_Pos (17U)
  6881. #define I2C_ISR_ADDCODE_Msk (0x7FU << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  6882. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  6883. /****************** Bit definition for I2C_ICR register *********************/
  6884. #define I2C_ICR_ADDRCF_Pos (3U)
  6885. #define I2C_ICR_ADDRCF_Msk (0x1U << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  6886. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  6887. #define I2C_ICR_NACKCF_Pos (4U)
  6888. #define I2C_ICR_NACKCF_Msk (0x1U << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  6889. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  6890. #define I2C_ICR_STOPCF_Pos (5U)
  6891. #define I2C_ICR_STOPCF_Msk (0x1U << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  6892. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  6893. #define I2C_ICR_BERRCF_Pos (8U)
  6894. #define I2C_ICR_BERRCF_Msk (0x1U << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  6895. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  6896. #define I2C_ICR_ARLOCF_Pos (9U)
  6897. #define I2C_ICR_ARLOCF_Msk (0x1U << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  6898. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  6899. #define I2C_ICR_OVRCF_Pos (10U)
  6900. #define I2C_ICR_OVRCF_Msk (0x1U << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  6901. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  6902. #define I2C_ICR_PECCF_Pos (11U)
  6903. #define I2C_ICR_PECCF_Msk (0x1U << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  6904. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  6905. #define I2C_ICR_TIMOUTCF_Pos (12U)
  6906. #define I2C_ICR_TIMOUTCF_Msk (0x1U << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  6907. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  6908. #define I2C_ICR_ALERTCF_Pos (13U)
  6909. #define I2C_ICR_ALERTCF_Msk (0x1U << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  6910. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  6911. /****************** Bit definition for I2C_PECR register ********************/
  6912. #define I2C_PECR_PEC_Pos (0U)
  6913. #define I2C_PECR_PEC_Msk (0xFFU << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  6914. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  6915. /****************** Bit definition for I2C_RXDR register *********************/
  6916. #define I2C_RXDR_RXDATA_Pos (0U)
  6917. #define I2C_RXDR_RXDATA_Msk (0xFFU << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  6918. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  6919. /****************** Bit definition for I2C_TXDR register *********************/
  6920. #define I2C_TXDR_TXDATA_Pos (0U)
  6921. #define I2C_TXDR_TXDATA_Msk (0xFFU << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  6922. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  6923. /******************************************************************************/
  6924. /* */
  6925. /* Independent WATCHDOG (IWDG) */
  6926. /* */
  6927. /******************************************************************************/
  6928. /******************* Bit definition for IWDG_KR register ********************/
  6929. #define IWDG_KR_KEY_Pos (0U)
  6930. #define IWDG_KR_KEY_Msk (0xFFFFU << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */
  6931. #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!< Key value (write only, read 0000h) */
  6932. /******************* Bit definition for IWDG_PR register ********************/
  6933. #define IWDG_PR_PR_Pos (0U)
  6934. #define IWDG_PR_PR_Msk (0x7U << IWDG_PR_PR_Pos) /*!< 0x00000007 */
  6935. #define IWDG_PR_PR IWDG_PR_PR_Msk /*!< PR[2:0] (Prescaler divider) */
  6936. #define IWDG_PR_PR_0 (0x1U << IWDG_PR_PR_Pos) /*!< 0x00000001 */
  6937. #define IWDG_PR_PR_1 (0x2U << IWDG_PR_PR_Pos) /*!< 0x00000002 */
  6938. #define IWDG_PR_PR_2 (0x4U << IWDG_PR_PR_Pos) /*!< 0x00000004 */
  6939. /******************* Bit definition for IWDG_RLR register *******************/
  6940. #define IWDG_RLR_RL_Pos (0U)
  6941. #define IWDG_RLR_RL_Msk (0xFFFU << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */
  6942. #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!< Watchdog counter reload value */
  6943. /******************* Bit definition for IWDG_SR register ********************/
  6944. #define IWDG_SR_PVU_Pos (0U)
  6945. #define IWDG_SR_PVU_Msk (0x1U << IWDG_SR_PVU_Pos) /*!< 0x00000001 */
  6946. #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */
  6947. #define IWDG_SR_RVU_Pos (1U)
  6948. #define IWDG_SR_RVU_Msk (0x1U << IWDG_SR_RVU_Pos) /*!< 0x00000002 */
  6949. #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */
  6950. #define IWDG_SR_WVU_Pos (2U)
  6951. #define IWDG_SR_WVU_Msk (0x1U << IWDG_SR_WVU_Pos) /*!< 0x00000004 */
  6952. #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */
  6953. /******************* Bit definition for IWDG_KR register ********************/
  6954. #define IWDG_WINR_WIN_Pos (0U)
  6955. #define IWDG_WINR_WIN_Msk (0xFFFU << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */
  6956. #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */
  6957. /******************************************************************************/
  6958. /* */
  6959. /* HDMI-CEC (CEC) */
  6960. /* */
  6961. /******************************************************************************/
  6962. /******************* Bit definition for CEC_CR register *********************/
  6963. #define CEC_CR_CECEN_Pos (0U)
  6964. #define CEC_CR_CECEN_Msk (0x1U << CEC_CR_CECEN_Pos) /*!< 0x00000001 */
  6965. #define CEC_CR_CECEN CEC_CR_CECEN_Msk /*!< CEC Enable */
  6966. #define CEC_CR_TXSOM_Pos (1U)
  6967. #define CEC_CR_TXSOM_Msk (0x1U << CEC_CR_TXSOM_Pos) /*!< 0x00000002 */
  6968. #define CEC_CR_TXSOM CEC_CR_TXSOM_Msk /*!< CEC Tx Start Of Message */
  6969. #define CEC_CR_TXEOM_Pos (2U)
  6970. #define CEC_CR_TXEOM_Msk (0x1U << CEC_CR_TXEOM_Pos) /*!< 0x00000004 */
  6971. #define CEC_CR_TXEOM CEC_CR_TXEOM_Msk /*!< CEC Tx End Of Message */
  6972. /******************* Bit definition for CEC_CFGR register *******************/
  6973. #define CEC_CFGR_SFT_Pos (0U)
  6974. #define CEC_CFGR_SFT_Msk (0x7U << CEC_CFGR_SFT_Pos) /*!< 0x00000007 */
  6975. #define CEC_CFGR_SFT CEC_CFGR_SFT_Msk /*!< CEC Signal Free Time */
  6976. #define CEC_CFGR_RXTOL_Pos (3U)
  6977. #define CEC_CFGR_RXTOL_Msk (0x1U << CEC_CFGR_RXTOL_Pos) /*!< 0x00000008 */
  6978. #define CEC_CFGR_RXTOL CEC_CFGR_RXTOL_Msk /*!< CEC Tolerance */
  6979. #define CEC_CFGR_BRESTP_Pos (4U)
  6980. #define CEC_CFGR_BRESTP_Msk (0x1U << CEC_CFGR_BRESTP_Pos) /*!< 0x00000010 */
  6981. #define CEC_CFGR_BRESTP CEC_CFGR_BRESTP_Msk /*!< CEC Rx Stop */
  6982. #define CEC_CFGR_BREGEN_Pos (5U)
  6983. #define CEC_CFGR_BREGEN_Msk (0x1U << CEC_CFGR_BREGEN_Pos) /*!< 0x00000020 */
  6984. #define CEC_CFGR_BREGEN CEC_CFGR_BREGEN_Msk /*!< CEC Bit Rising Error generation */
  6985. #define CEC_CFGR_LBPEGEN_Pos (6U)
  6986. #define CEC_CFGR_LBPEGEN_Msk (0x1U << CEC_CFGR_LBPEGEN_Pos) /*!< 0x00000040 */
  6987. #define CEC_CFGR_LBPEGEN CEC_CFGR_LBPEGEN_Msk /*!< CEC Long Bit Period Error generation */
  6988. #define CEC_CFGR_SFTOPT_Pos (8U)
  6989. #define CEC_CFGR_SFTOPT_Msk (0x1U << CEC_CFGR_SFTOPT_Pos) /*!< 0x00000100 */
  6990. #define CEC_CFGR_SFTOPT CEC_CFGR_SFTOPT_Msk /*!< CEC Signal Free Time optional */
  6991. #define CEC_CFGR_BRDNOGEN_Pos (7U)
  6992. #define CEC_CFGR_BRDNOGEN_Msk (0x1U << CEC_CFGR_BRDNOGEN_Pos) /*!< 0x00000080 */
  6993. #define CEC_CFGR_BRDNOGEN CEC_CFGR_BRDNOGEN_Msk /*!< CEC Broadcast No error generation */
  6994. #define CEC_CFGR_OAR_Pos (16U)
  6995. #define CEC_CFGR_OAR_Msk (0x7FFFU << CEC_CFGR_OAR_Pos) /*!< 0x7FFF0000 */
  6996. #define CEC_CFGR_OAR CEC_CFGR_OAR_Msk /*!< CEC Own Address */
  6997. #define CEC_CFGR_LSTN_Pos (31U)
  6998. #define CEC_CFGR_LSTN_Msk (0x1U << CEC_CFGR_LSTN_Pos) /*!< 0x80000000 */
  6999. #define CEC_CFGR_LSTN CEC_CFGR_LSTN_Msk /*!< CEC Listen mode */
  7000. /******************* Bit definition for CEC_TXDR register *******************/
  7001. #define CEC_TXDR_TXD_Pos (0U)
  7002. #define CEC_TXDR_TXD_Msk (0xFFU << CEC_TXDR_TXD_Pos) /*!< 0x000000FF */
  7003. #define CEC_TXDR_TXD CEC_TXDR_TXD_Msk /*!< CEC Tx Data */
  7004. /******************* Bit definition for CEC_RXDR register *******************/
  7005. #define CEC_TXDR_RXD_Pos (0U)
  7006. #define CEC_TXDR_RXD_Msk (0xFFU << CEC_TXDR_RXD_Pos) /*!< 0x000000FF */
  7007. #define CEC_TXDR_RXD CEC_TXDR_RXD_Msk /*!< CEC Rx Data */
  7008. /******************* Bit definition for CEC_ISR register ********************/
  7009. #define CEC_ISR_RXBR_Pos (0U)
  7010. #define CEC_ISR_RXBR_Msk (0x1U << CEC_ISR_RXBR_Pos) /*!< 0x00000001 */
  7011. #define CEC_ISR_RXBR CEC_ISR_RXBR_Msk /*!< CEC Rx-Byte Received */
  7012. #define CEC_ISR_RXEND_Pos (1U)
  7013. #define CEC_ISR_RXEND_Msk (0x1U << CEC_ISR_RXEND_Pos) /*!< 0x00000002 */
  7014. #define CEC_ISR_RXEND CEC_ISR_RXEND_Msk /*!< CEC End Of Reception */
  7015. #define CEC_ISR_RXOVR_Pos (2U)
  7016. #define CEC_ISR_RXOVR_Msk (0x1U << CEC_ISR_RXOVR_Pos) /*!< 0x00000004 */
  7017. #define CEC_ISR_RXOVR CEC_ISR_RXOVR_Msk /*!< CEC Rx-Overrun */
  7018. #define CEC_ISR_BRE_Pos (3U)
  7019. #define CEC_ISR_BRE_Msk (0x1U << CEC_ISR_BRE_Pos) /*!< 0x00000008 */
  7020. #define CEC_ISR_BRE CEC_ISR_BRE_Msk /*!< CEC Rx Bit Rising Error */
  7021. #define CEC_ISR_SBPE_Pos (4U)
  7022. #define CEC_ISR_SBPE_Msk (0x1U << CEC_ISR_SBPE_Pos) /*!< 0x00000010 */
  7023. #define CEC_ISR_SBPE CEC_ISR_SBPE_Msk /*!< CEC Rx Short Bit period Error */
  7024. #define CEC_ISR_LBPE_Pos (5U)
  7025. #define CEC_ISR_LBPE_Msk (0x1U << CEC_ISR_LBPE_Pos) /*!< 0x00000020 */
  7026. #define CEC_ISR_LBPE CEC_ISR_LBPE_Msk /*!< CEC Rx Long Bit period Error */
  7027. #define CEC_ISR_RXACKE_Pos (6U)
  7028. #define CEC_ISR_RXACKE_Msk (0x1U << CEC_ISR_RXACKE_Pos) /*!< 0x00000040 */
  7029. #define CEC_ISR_RXACKE CEC_ISR_RXACKE_Msk /*!< CEC Rx Missing Acknowledge */
  7030. #define CEC_ISR_ARBLST_Pos (7U)
  7031. #define CEC_ISR_ARBLST_Msk (0x1U << CEC_ISR_ARBLST_Pos) /*!< 0x00000080 */
  7032. #define CEC_ISR_ARBLST CEC_ISR_ARBLST_Msk /*!< CEC Arbitration Lost */
  7033. #define CEC_ISR_TXBR_Pos (8U)
  7034. #define CEC_ISR_TXBR_Msk (0x1U << CEC_ISR_TXBR_Pos) /*!< 0x00000100 */
  7035. #define CEC_ISR_TXBR CEC_ISR_TXBR_Msk /*!< CEC Tx Byte Request */
  7036. #define CEC_ISR_TXEND_Pos (9U)
  7037. #define CEC_ISR_TXEND_Msk (0x1U << CEC_ISR_TXEND_Pos) /*!< 0x00000200 */
  7038. #define CEC_ISR_TXEND CEC_ISR_TXEND_Msk /*!< CEC End of Transmission */
  7039. #define CEC_ISR_TXUDR_Pos (10U)
  7040. #define CEC_ISR_TXUDR_Msk (0x1U << CEC_ISR_TXUDR_Pos) /*!< 0x00000400 */
  7041. #define CEC_ISR_TXUDR CEC_ISR_TXUDR_Msk /*!< CEC Tx-Buffer Underrun */
  7042. #define CEC_ISR_TXERR_Pos (11U)
  7043. #define CEC_ISR_TXERR_Msk (0x1U << CEC_ISR_TXERR_Pos) /*!< 0x00000800 */
  7044. #define CEC_ISR_TXERR CEC_ISR_TXERR_Msk /*!< CEC Tx-Error */
  7045. #define CEC_ISR_TXACKE_Pos (12U)
  7046. #define CEC_ISR_TXACKE_Msk (0x1U << CEC_ISR_TXACKE_Pos) /*!< 0x00001000 */
  7047. #define CEC_ISR_TXACKE CEC_ISR_TXACKE_Msk /*!< CEC Tx Missing Acknowledge */
  7048. /******************* Bit definition for CEC_IER register ********************/
  7049. #define CEC_IER_RXBRIE_Pos (0U)
  7050. #define CEC_IER_RXBRIE_Msk (0x1U << CEC_IER_RXBRIE_Pos) /*!< 0x00000001 */
  7051. #define CEC_IER_RXBRIE CEC_IER_RXBRIE_Msk /*!< CEC Rx-Byte Received IT Enable */
  7052. #define CEC_IER_RXENDIE_Pos (1U)
  7053. #define CEC_IER_RXENDIE_Msk (0x1U << CEC_IER_RXENDIE_Pos) /*!< 0x00000002 */
  7054. #define CEC_IER_RXENDIE CEC_IER_RXENDIE_Msk /*!< CEC End Of Reception IT Enable */
  7055. #define CEC_IER_RXOVRIE_Pos (2U)
  7056. #define CEC_IER_RXOVRIE_Msk (0x1U << CEC_IER_RXOVRIE_Pos) /*!< 0x00000004 */
  7057. #define CEC_IER_RXOVRIE CEC_IER_RXOVRIE_Msk /*!< CEC Rx-Overrun IT Enable */
  7058. #define CEC_IER_BREIE_Pos (3U)
  7059. #define CEC_IER_BREIE_Msk (0x1U << CEC_IER_BREIE_Pos) /*!< 0x00000008 */
  7060. #define CEC_IER_BREIE CEC_IER_BREIE_Msk /*!< CEC Rx Bit Rising Error IT Enable */
  7061. #define CEC_IER_SBPEIE_Pos (4U)
  7062. #define CEC_IER_SBPEIE_Msk (0x1U << CEC_IER_SBPEIE_Pos) /*!< 0x00000010 */
  7063. #define CEC_IER_SBPEIE CEC_IER_SBPEIE_Msk /*!< CEC Rx Short Bit period Error IT Enable */
  7064. #define CEC_IER_LBPEIE_Pos (5U)
  7065. #define CEC_IER_LBPEIE_Msk (0x1U << CEC_IER_LBPEIE_Pos) /*!< 0x00000020 */
  7066. #define CEC_IER_LBPEIE CEC_IER_LBPEIE_Msk /*!< CEC Rx Long Bit period Error IT Enable */
  7067. #define CEC_IER_RXACKEIE_Pos (6U)
  7068. #define CEC_IER_RXACKEIE_Msk (0x1U << CEC_IER_RXACKEIE_Pos) /*!< 0x00000040 */
  7069. #define CEC_IER_RXACKEIE CEC_IER_RXACKEIE_Msk /*!< CEC Rx Missing Acknowledge IT Enable */
  7070. #define CEC_IER_ARBLSTIE_Pos (7U)
  7071. #define CEC_IER_ARBLSTIE_Msk (0x1U << CEC_IER_ARBLSTIE_Pos) /*!< 0x00000080 */
  7072. #define CEC_IER_ARBLSTIE CEC_IER_ARBLSTIE_Msk /*!< CEC Arbitration Lost IT Enable */
  7073. #define CEC_IER_TXBRIE_Pos (8U)
  7074. #define CEC_IER_TXBRIE_Msk (0x1U << CEC_IER_TXBRIE_Pos) /*!< 0x00000100 */
  7075. #define CEC_IER_TXBRIE CEC_IER_TXBRIE_Msk /*!< CEC Tx Byte Request IT Enable */
  7076. #define CEC_IER_TXENDIE_Pos (9U)
  7077. #define CEC_IER_TXENDIE_Msk (0x1U << CEC_IER_TXENDIE_Pos) /*!< 0x00000200 */
  7078. #define CEC_IER_TXENDIE CEC_IER_TXENDIE_Msk /*!< CEC End of Transmission IT Enable */
  7079. #define CEC_IER_TXUDRIE_Pos (10U)
  7080. #define CEC_IER_TXUDRIE_Msk (0x1U << CEC_IER_TXUDRIE_Pos) /*!< 0x00000400 */
  7081. #define CEC_IER_TXUDRIE CEC_IER_TXUDRIE_Msk /*!< CEC Tx-Buffer Underrun IT Enable */
  7082. #define CEC_IER_TXERRIE_Pos (11U)
  7083. #define CEC_IER_TXERRIE_Msk (0x1U << CEC_IER_TXERRIE_Pos) /*!< 0x00000800 */
  7084. #define CEC_IER_TXERRIE CEC_IER_TXERRIE_Msk /*!< CEC Tx-Error IT Enable */
  7085. #define CEC_IER_TXACKEIE_Pos (12U)
  7086. #define CEC_IER_TXACKEIE_Msk (0x1U << CEC_IER_TXACKEIE_Pos) /*!< 0x00001000 */
  7087. #define CEC_IER_TXACKEIE CEC_IER_TXACKEIE_Msk /*!< CEC Tx Missing Acknowledge IT Enable */
  7088. /******************************************************************************/
  7089. /* */
  7090. /* Power Control */
  7091. /* */
  7092. /******************************************************************************/
  7093. /* Note: No specific macro feature on this device */
  7094. /******************** Bit definition for PWR_CR register ********************/
  7095. #define PWR_CR_LPDS_Pos (0U)
  7096. #define PWR_CR_LPDS_Msk (0x1U << PWR_CR_LPDS_Pos) /*!< 0x00000001 */
  7097. #define PWR_CR_LPDS PWR_CR_LPDS_Msk /*!< Low-power Deepsleep */
  7098. #define PWR_CR_PDDS_Pos (1U)
  7099. #define PWR_CR_PDDS_Msk (0x1U << PWR_CR_PDDS_Pos) /*!< 0x00000002 */
  7100. #define PWR_CR_PDDS PWR_CR_PDDS_Msk /*!< Power Down Deepsleep */
  7101. #define PWR_CR_CWUF_Pos (2U)
  7102. #define PWR_CR_CWUF_Msk (0x1U << PWR_CR_CWUF_Pos) /*!< 0x00000004 */
  7103. #define PWR_CR_CWUF PWR_CR_CWUF_Msk /*!< Clear Wakeup Flag */
  7104. #define PWR_CR_CSBF_Pos (3U)
  7105. #define PWR_CR_CSBF_Msk (0x1U << PWR_CR_CSBF_Pos) /*!< 0x00000008 */
  7106. #define PWR_CR_CSBF PWR_CR_CSBF_Msk /*!< Clear Standby Flag */
  7107. #define PWR_CR_DBP_Pos (8U)
  7108. #define PWR_CR_DBP_Msk (0x1U << PWR_CR_DBP_Pos) /*!< 0x00000100 */
  7109. #define PWR_CR_DBP PWR_CR_DBP_Msk /*!< Disable Backup Domain write protection */
  7110. #define PWR_CR_ENSD1_Pos (9U)
  7111. #define PWR_CR_ENSD1_Msk (0x1U << PWR_CR_ENSD1_Pos) /*!< 0x00000200 */
  7112. #define PWR_CR_ENSD1 PWR_CR_ENSD1_Msk /*!< Enable Analog part of the SDADC1 */
  7113. #define PWR_CR_ENSD2_Pos (10U)
  7114. #define PWR_CR_ENSD2_Msk (0x1U << PWR_CR_ENSD2_Pos) /*!< 0x00000400 */
  7115. #define PWR_CR_ENSD2 PWR_CR_ENSD2_Msk /*!< Enable Analog part of the SDADC2 */
  7116. #define PWR_CR_ENSD3_Pos (11U)
  7117. #define PWR_CR_ENSD3_Msk (0x1U << PWR_CR_ENSD3_Pos) /*!< 0x00000800 */
  7118. #define PWR_CR_ENSD3 PWR_CR_ENSD3_Msk /*!< Enable Analog part of the SDADC3 */
  7119. /* Legacy aliases */
  7120. #define PWR_CR_SDADC1EN_Pos PWR_CR_ENSD1_Pos
  7121. #define PWR_CR_SDADC1EN_Msk PWR_CR_ENSD1_Msk
  7122. #define PWR_CR_SDADC1EN PWR_CR_ENSD1
  7123. #define PWR_CR_SDADC2EN_Pos PWR_CR_ENSD2_Pos
  7124. #define PWR_CR_SDADC2EN_Msk PWR_CR_ENSD2_Msk
  7125. #define PWR_CR_SDADC2EN PWR_CR_ENSD2
  7126. #define PWR_CR_SDADC3EN_Pos PWR_CR_ENSD3_Pos
  7127. #define PWR_CR_SDADC3EN_Msk PWR_CR_ENSD3_Msk
  7128. #define PWR_CR_SDADC3EN PWR_CR_ENSD3
  7129. /******************* Bit definition for PWR_CSR register ********************/
  7130. #define PWR_CSR_WUF_Pos (0U)
  7131. #define PWR_CSR_WUF_Msk (0x1U << PWR_CSR_WUF_Pos) /*!< 0x00000001 */
  7132. #define PWR_CSR_WUF PWR_CSR_WUF_Msk /*!< Wakeup Flag */
  7133. #define PWR_CSR_SBF_Pos (1U)
  7134. #define PWR_CSR_SBF_Msk (0x1U << PWR_CSR_SBF_Pos) /*!< 0x00000002 */
  7135. #define PWR_CSR_SBF PWR_CSR_SBF_Msk /*!< Standby Flag */
  7136. #define PWR_CSR_VREFINTRDYF_Pos (3U)
  7137. #define PWR_CSR_VREFINTRDYF_Msk (0x1U << PWR_CSR_VREFINTRDYF_Pos) /*!< 0x00000008 */
  7138. #define PWR_CSR_VREFINTRDYF PWR_CSR_VREFINTRDYF_Msk /*!< Internal voltage reference (VREFINT) ready flag */
  7139. #define PWR_CSR_EWUP1_Pos (8U)
  7140. #define PWR_CSR_EWUP1_Msk (0x1U << PWR_CSR_EWUP1_Pos) /*!< 0x00000100 */
  7141. #define PWR_CSR_EWUP1 PWR_CSR_EWUP1_Msk /*!< Enable WKUP pin 1 */
  7142. #define PWR_CSR_EWUP2_Pos (9U)
  7143. #define PWR_CSR_EWUP2_Msk (0x1U << PWR_CSR_EWUP2_Pos) /*!< 0x00000200 */
  7144. #define PWR_CSR_EWUP2 PWR_CSR_EWUP2_Msk /*!< Enable WKUP pin 2 */
  7145. #define PWR_CSR_EWUP3_Pos (10U)
  7146. #define PWR_CSR_EWUP3_Msk (0x1U << PWR_CSR_EWUP3_Pos) /*!< 0x00000400 */
  7147. #define PWR_CSR_EWUP3 PWR_CSR_EWUP3_Msk /*!< Enable WKUP pin 3 */
  7148. /******************************************************************************/
  7149. /* */
  7150. /* Reset and Clock Control */
  7151. /* */
  7152. /******************************************************************************/
  7153. /******************** Bit definition for RCC_CR register ********************/
  7154. #define RCC_CR_HSION_Pos (0U)
  7155. #define RCC_CR_HSION_Msk (0x1U << RCC_CR_HSION_Pos) /*!< 0x00000001 */
  7156. #define RCC_CR_HSION RCC_CR_HSION_Msk
  7157. #define RCC_CR_HSIRDY_Pos (1U)
  7158. #define RCC_CR_HSIRDY_Msk (0x1U << RCC_CR_HSIRDY_Pos) /*!< 0x00000002 */
  7159. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk
  7160. #define RCC_CR_HSITRIM_Pos (3U)
  7161. #define RCC_CR_HSITRIM_Msk (0x1FU << RCC_CR_HSITRIM_Pos) /*!< 0x000000F8 */
  7162. #define RCC_CR_HSITRIM RCC_CR_HSITRIM_Msk
  7163. #define RCC_CR_HSITRIM_0 (0x01U << RCC_CR_HSITRIM_Pos) /*!< 0x00000008 */
  7164. #define RCC_CR_HSITRIM_1 (0x02U << RCC_CR_HSITRIM_Pos) /*!< 0x00000010 */
  7165. #define RCC_CR_HSITRIM_2 (0x04U << RCC_CR_HSITRIM_Pos) /*!< 0x00000020 */
  7166. #define RCC_CR_HSITRIM_3 (0x08U << RCC_CR_HSITRIM_Pos) /*!< 0x00000040 */
  7167. #define RCC_CR_HSITRIM_4 (0x10U << RCC_CR_HSITRIM_Pos) /*!< 0x00000080 */
  7168. #define RCC_CR_HSICAL_Pos (8U)
  7169. #define RCC_CR_HSICAL_Msk (0xFFU << RCC_CR_HSICAL_Pos) /*!< 0x0000FF00 */
  7170. #define RCC_CR_HSICAL RCC_CR_HSICAL_Msk
  7171. #define RCC_CR_HSICAL_0 (0x01U << RCC_CR_HSICAL_Pos) /*!< 0x00000100 */
  7172. #define RCC_CR_HSICAL_1 (0x02U << RCC_CR_HSICAL_Pos) /*!< 0x00000200 */
  7173. #define RCC_CR_HSICAL_2 (0x04U << RCC_CR_HSICAL_Pos) /*!< 0x00000400 */
  7174. #define RCC_CR_HSICAL_3 (0x08U << RCC_CR_HSICAL_Pos) /*!< 0x00000800 */
  7175. #define RCC_CR_HSICAL_4 (0x10U << RCC_CR_HSICAL_Pos) /*!< 0x00001000 */
  7176. #define RCC_CR_HSICAL_5 (0x20U << RCC_CR_HSICAL_Pos) /*!< 0x00002000 */
  7177. #define RCC_CR_HSICAL_6 (0x40U << RCC_CR_HSICAL_Pos) /*!< 0x00004000 */
  7178. #define RCC_CR_HSICAL_7 (0x80U << RCC_CR_HSICAL_Pos) /*!< 0x00008000 */
  7179. #define RCC_CR_HSEON_Pos (16U)
  7180. #define RCC_CR_HSEON_Msk (0x1U << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  7181. #define RCC_CR_HSEON RCC_CR_HSEON_Msk
  7182. #define RCC_CR_HSERDY_Pos (17U)
  7183. #define RCC_CR_HSERDY_Msk (0x1U << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  7184. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk
  7185. #define RCC_CR_HSEBYP_Pos (18U)
  7186. #define RCC_CR_HSEBYP_Msk (0x1U << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  7187. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk
  7188. #define RCC_CR_CSSON_Pos (19U)
  7189. #define RCC_CR_CSSON_Msk (0x1U << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
  7190. #define RCC_CR_CSSON RCC_CR_CSSON_Msk
  7191. #define RCC_CR_PLLON_Pos (24U)
  7192. #define RCC_CR_PLLON_Msk (0x1U << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  7193. #define RCC_CR_PLLON RCC_CR_PLLON_Msk
  7194. #define RCC_CR_PLLRDY_Pos (25U)
  7195. #define RCC_CR_PLLRDY_Msk (0x1U << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  7196. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk
  7197. /******************** Bit definition for RCC_CFGR register ******************/
  7198. /*!< SW configuration */
  7199. #define RCC_CFGR_SW_Pos (0U)
  7200. #define RCC_CFGR_SW_Msk (0x3U << RCC_CFGR_SW_Pos) /*!< 0x00000003 */
  7201. #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */
  7202. #define RCC_CFGR_SW_0 (0x1U << RCC_CFGR_SW_Pos) /*!< 0x00000001 */
  7203. #define RCC_CFGR_SW_1 (0x2U << RCC_CFGR_SW_Pos) /*!< 0x00000002 */
  7204. #define RCC_CFGR_SW_HSI (0x00000000U) /*!< HSI selected as system clock */
  7205. #define RCC_CFGR_SW_HSE (0x00000001U) /*!< HSE selected as system clock */
  7206. #define RCC_CFGR_SW_PLL (0x00000002U) /*!< PLL selected as system clock */
  7207. /*!< SWS configuration */
  7208. #define RCC_CFGR_SWS_Pos (2U)
  7209. #define RCC_CFGR_SWS_Msk (0x3U << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */
  7210. #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */
  7211. #define RCC_CFGR_SWS_0 (0x1U << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */
  7212. #define RCC_CFGR_SWS_1 (0x2U << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */
  7213. #define RCC_CFGR_SWS_HSI (0x00000000U) /*!< HSI oscillator used as system clock */
  7214. #define RCC_CFGR_SWS_HSE (0x00000004U) /*!< HSE oscillator used as system clock */
  7215. #define RCC_CFGR_SWS_PLL (0x00000008U) /*!< PLL used as system clock */
  7216. /*!< HPRE configuration */
  7217. #define RCC_CFGR_HPRE_Pos (4U)
  7218. #define RCC_CFGR_HPRE_Msk (0xFU << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */
  7219. #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */
  7220. #define RCC_CFGR_HPRE_0 (0x1U << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */
  7221. #define RCC_CFGR_HPRE_1 (0x2U << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */
  7222. #define RCC_CFGR_HPRE_2 (0x4U << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */
  7223. #define RCC_CFGR_HPRE_3 (0x8U << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */
  7224. #define RCC_CFGR_HPRE_DIV1 (0x00000000U) /*!< SYSCLK not divided */
  7225. #define RCC_CFGR_HPRE_DIV2 (0x00000080U) /*!< SYSCLK divided by 2 */
  7226. #define RCC_CFGR_HPRE_DIV4 (0x00000090U) /*!< SYSCLK divided by 4 */
  7227. #define RCC_CFGR_HPRE_DIV8 (0x000000A0U) /*!< SYSCLK divided by 8 */
  7228. #define RCC_CFGR_HPRE_DIV16 (0x000000B0U) /*!< SYSCLK divided by 16 */
  7229. #define RCC_CFGR_HPRE_DIV64 (0x000000C0U) /*!< SYSCLK divided by 64 */
  7230. #define RCC_CFGR_HPRE_DIV128 (0x000000D0U) /*!< SYSCLK divided by 128 */
  7231. #define RCC_CFGR_HPRE_DIV256 (0x000000E0U) /*!< SYSCLK divided by 256 */
  7232. #define RCC_CFGR_HPRE_DIV512 (0x000000F0U) /*!< SYSCLK divided by 512 */
  7233. /*!< PPRE1 configuration */
  7234. #define RCC_CFGR_PPRE1_Pos (8U)
  7235. #define RCC_CFGR_PPRE1_Msk (0x7U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000700 */
  7236. #define RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_Msk /*!< PRE1[2:0] bits (APB1 prescaler) */
  7237. #define RCC_CFGR_PPRE1_0 (0x1U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000100 */
  7238. #define RCC_CFGR_PPRE1_1 (0x2U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000200 */
  7239. #define RCC_CFGR_PPRE1_2 (0x4U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000400 */
  7240. #define RCC_CFGR_PPRE1_DIV1 (0x00000000U) /*!< HCLK not divided */
  7241. #define RCC_CFGR_PPRE1_DIV2 (0x00000400U) /*!< HCLK divided by 2 */
  7242. #define RCC_CFGR_PPRE1_DIV4 (0x00000500U) /*!< HCLK divided by 4 */
  7243. #define RCC_CFGR_PPRE1_DIV8 (0x00000600U) /*!< HCLK divided by 8 */
  7244. #define RCC_CFGR_PPRE1_DIV16 (0x00000700U) /*!< HCLK divided by 16 */
  7245. /*!< PPRE2 configuration */
  7246. #define RCC_CFGR_PPRE2_Pos (11U)
  7247. #define RCC_CFGR_PPRE2_Msk (0x7U << RCC_CFGR_PPRE2_Pos) /*!< 0x00003800 */
  7248. #define RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_Msk /*!< PRE2[2:0] bits (APB2 prescaler) */
  7249. #define RCC_CFGR_PPRE2_0 (0x1U << RCC_CFGR_PPRE2_Pos) /*!< 0x00000800 */
  7250. #define RCC_CFGR_PPRE2_1 (0x2U << RCC_CFGR_PPRE2_Pos) /*!< 0x00001000 */
  7251. #define RCC_CFGR_PPRE2_2 (0x4U << RCC_CFGR_PPRE2_Pos) /*!< 0x00002000 */
  7252. #define RCC_CFGR_PPRE2_DIV1 (0x00000000U) /*!< HCLK not divided */
  7253. #define RCC_CFGR_PPRE2_DIV2 (0x00002000U) /*!< HCLK divided by 2 */
  7254. #define RCC_CFGR_PPRE2_DIV4 (0x00002800U) /*!< HCLK divided by 4 */
  7255. #define RCC_CFGR_PPRE2_DIV8 (0x00003000U) /*!< HCLK divided by 8 */
  7256. #define RCC_CFGR_PPRE2_DIV16 (0x00003800U) /*!< HCLK divided by 16 */
  7257. /*!< ADCPRE configuration */
  7258. #define RCC_CFGR_ADCPRE_Pos (14U)
  7259. #define RCC_CFGR_ADCPRE_Msk (0x3U << RCC_CFGR_ADCPRE_Pos) /*!< 0x0000C000 */
  7260. #define RCC_CFGR_ADCPRE RCC_CFGR_ADCPRE_Msk
  7261. #define RCC_CFGR_ADCPRE_0 (0x1U << RCC_CFGR_ADCPRE_Pos) /*!< 0x00004000 */
  7262. #define RCC_CFGR_ADCPRE_1 (0x2U << RCC_CFGR_ADCPRE_Pos) /*!< 0x00008000 */
  7263. #define RCC_CFGR_ADCPRE_DIV2 (0x00000000U) /*!< ADC CLK divided by 2 */
  7264. #define RCC_CFGR_ADCPRE_DIV4 (0x00004000U) /*!< ADC CLK divided by 4 */
  7265. #define RCC_CFGR_ADCPRE_DIV6 (0x00008000U) /*!< ADC CLK divided by 6 */
  7266. #define RCC_CFGR_ADCPRE_DIV8 (0x0000C000U) /*!< ADC CLK divided by 8 */
  7267. #define RCC_CFGR_PLLSRC_Pos (16U)
  7268. #define RCC_CFGR_PLLSRC_Msk (0x1U << RCC_CFGR_PLLSRC_Pos) /*!< 0x00010000 */
  7269. #define RCC_CFGR_PLLSRC RCC_CFGR_PLLSRC_Msk /*!< PLL entry clock source */
  7270. #define RCC_CFGR_PLLSRC_HSI_DIV2 (0x00000000U) /*!< HSI clock divided by 2 selected as PLL entry clock source */
  7271. #define RCC_CFGR_PLLSRC_HSE_PREDIV (0x00010000U) /*!< HSE/PREDIV clock selected as PLL entry clock source */
  7272. #define RCC_CFGR_PLLXTPRE_Pos (17U)
  7273. #define RCC_CFGR_PLLXTPRE_Msk (0x1U << RCC_CFGR_PLLXTPRE_Pos) /*!< 0x00020000 */
  7274. #define RCC_CFGR_PLLXTPRE RCC_CFGR_PLLXTPRE_Msk /*!< HSE divider for PLL entry */
  7275. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV1 (0x00000000U) /*!< HSE/PREDIV clock not divided for PLL entry */
  7276. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV2 (0x00020000U) /*!< HSE/PREDIV clock divided by 2 for PLL entry */
  7277. /*!< PLLMUL configuration */
  7278. #define RCC_CFGR_PLLMUL_Pos (18U)
  7279. #define RCC_CFGR_PLLMUL_Msk (0xFU << RCC_CFGR_PLLMUL_Pos) /*!< 0x003C0000 */
  7280. #define RCC_CFGR_PLLMUL RCC_CFGR_PLLMUL_Msk /*!< PLLMUL[3:0] bits (PLL multiplication factor) */
  7281. #define RCC_CFGR_PLLMUL_0 (0x1U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00040000 */
  7282. #define RCC_CFGR_PLLMUL_1 (0x2U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00080000 */
  7283. #define RCC_CFGR_PLLMUL_2 (0x4U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00100000 */
  7284. #define RCC_CFGR_PLLMUL_3 (0x8U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00200000 */
  7285. #define RCC_CFGR_PLLMUL2 (0x00000000U) /*!< PLL input clock*2 */
  7286. #define RCC_CFGR_PLLMUL3 (0x00040000U) /*!< PLL input clock*3 */
  7287. #define RCC_CFGR_PLLMUL4 (0x00080000U) /*!< PLL input clock*4 */
  7288. #define RCC_CFGR_PLLMUL5 (0x000C0000U) /*!< PLL input clock*5 */
  7289. #define RCC_CFGR_PLLMUL6 (0x00100000U) /*!< PLL input clock*6 */
  7290. #define RCC_CFGR_PLLMUL7 (0x00140000U) /*!< PLL input clock*7 */
  7291. #define RCC_CFGR_PLLMUL8 (0x00180000U) /*!< PLL input clock*8 */
  7292. #define RCC_CFGR_PLLMUL9 (0x001C0000U) /*!< PLL input clock*9 */
  7293. #define RCC_CFGR_PLLMUL10 (0x00200000U) /*!< PLL input clock10 */
  7294. #define RCC_CFGR_PLLMUL11 (0x00240000U) /*!< PLL input clock*11 */
  7295. #define RCC_CFGR_PLLMUL12 (0x00280000U) /*!< PLL input clock*12 */
  7296. #define RCC_CFGR_PLLMUL13 (0x002C0000U) /*!< PLL input clock*13 */
  7297. #define RCC_CFGR_PLLMUL14 (0x00300000U) /*!< PLL input clock*14 */
  7298. #define RCC_CFGR_PLLMUL15 (0x00340000U) /*!< PLL input clock*15 */
  7299. #define RCC_CFGR_PLLMUL16 (0x00380000U) /*!< PLL input clock*16 */
  7300. /*!< MCO configuration */
  7301. #define RCC_CFGR_MCO_Pos (24U)
  7302. #define RCC_CFGR_MCO_Msk (0x7U << RCC_CFGR_MCO_Pos) /*!< 0x07000000 */
  7303. #define RCC_CFGR_MCO RCC_CFGR_MCO_Msk /*!< MCO[2:0] bits (Microcontroller Clock Output) */
  7304. #define RCC_CFGR_MCO_0 (0x1U << RCC_CFGR_MCO_Pos) /*!< 0x01000000 */
  7305. #define RCC_CFGR_MCO_1 (0x2U << RCC_CFGR_MCO_Pos) /*!< 0x02000000 */
  7306. #define RCC_CFGR_MCO_2 (0x4U << RCC_CFGR_MCO_Pos) /*!< 0x04000000 */
  7307. #define RCC_CFGR_MCO_NOCLOCK (0x00000000U) /*!< No clock */
  7308. #define RCC_CFGR_MCO_LSI (0x02000000U) /*!< LSI clock selected as MCO source */
  7309. #define RCC_CFGR_MCO_LSE (0x03000000U) /*!< LSE clock selected as MCO source */
  7310. #define RCC_CFGR_MCO_SYSCLK (0x04000000U) /*!< System clock selected as MCO source */
  7311. #define RCC_CFGR_MCO_HSI (0x05000000U) /*!< HSI clock selected as MCO source */
  7312. #define RCC_CFGR_MCO_HSE (0x06000000U) /*!< HSE clock selected as MCO source */
  7313. #define RCC_CFGR_MCO_PLL (0x07000000U) /*!< PLL clock divided by 2 selected as MCO source */
  7314. /* Reference defines */
  7315. #define RCC_CFGR_MCOSEL RCC_CFGR_MCO
  7316. #define RCC_CFGR_MCOSEL_0 RCC_CFGR_MCO_0
  7317. #define RCC_CFGR_MCOSEL_1 RCC_CFGR_MCO_1
  7318. #define RCC_CFGR_MCOSEL_2 RCC_CFGR_MCO_2
  7319. #define RCC_CFGR_MCOSEL_NOCLOCK RCC_CFGR_MCO_NOCLOCK
  7320. #define RCC_CFGR_MCOSEL_LSI RCC_CFGR_MCO_LSI
  7321. #define RCC_CFGR_MCOSEL_LSE RCC_CFGR_MCO_LSE
  7322. #define RCC_CFGR_MCOSEL_SYSCLK RCC_CFGR_MCO_SYSCLK
  7323. #define RCC_CFGR_MCOSEL_HSI RCC_CFGR_MCO_HSI
  7324. #define RCC_CFGR_MCOSEL_HSE RCC_CFGR_MCO_HSE
  7325. #define RCC_CFGR_MCOSEL_PLL_DIV2 RCC_CFGR_MCO_PLL
  7326. /*!< SDPRE configuration */
  7327. #define RCC_CFGR_SDPRE_Pos (27U)
  7328. #define RCC_CFGR_SDPRE_Msk (0x1FU << RCC_CFGR_SDPRE_Pos) /*!< 0xF8000000 */
  7329. #define RCC_CFGR_SDPRE RCC_CFGR_SDPRE_Msk /*!< SDPRE[4:0] bits (Sigma Delta ADC prescaler) */
  7330. #define RCC_CFGR_SDPRE_0 (0x01U << RCC_CFGR_SDPRE_Pos) /*!< 0x08000000 */
  7331. #define RCC_CFGR_SDPRE_1 (0x02U << RCC_CFGR_SDPRE_Pos) /*!< 0x10000000 */
  7332. #define RCC_CFGR_SDPRE_2 (0x04U << RCC_CFGR_SDPRE_Pos) /*!< 0x20000000 */
  7333. #define RCC_CFGR_SDPRE_3 (0x08U << RCC_CFGR_SDPRE_Pos) /*!< 0x40000000 */
  7334. #define RCC_CFGR_SDPRE_4 (0x10U << RCC_CFGR_SDPRE_Pos) /*!< 0x80000000 */
  7335. #define RCC_CFGR_SDPRE_DIV1 (0x00000000U) /*!< SDADC CLK not divided */
  7336. #define RCC_CFGR_SDPRE_DIV2 (0x80000000U) /*!< SDADC CLK divided by 2 */
  7337. #define RCC_CFGR_SDPRE_DIV4 (0x88000000U) /*!< SDADC CLK divided by 4 */
  7338. #define RCC_CFGR_SDPRE_DIV6 (0x90000000U) /*!< SDADC CLK divided by 6 */
  7339. #define RCC_CFGR_SDPRE_DIV8 (0x98000000U) /*!< SDADC CLK divided by 8 */
  7340. #define RCC_CFGR_SDPRE_DIV10 (0xA0000000U) /*!< SDADC CLK divided by 10 */
  7341. #define RCC_CFGR_SDPRE_DIV12 (0xA8000000U) /*!< SDADC CLK divided by 12 */
  7342. #define RCC_CFGR_SDPRE_DIV14 (0xB0000000U) /*!< SDADC CLK divided by 14 */
  7343. #define RCC_CFGR_SDPRE_DIV16 (0xB8000000U) /*!< SDADC CLK divided by 16 */
  7344. #define RCC_CFGR_SDPRE_DIV20 (0xC0000000U) /*!< SDADC CLK divided by 20 */
  7345. #define RCC_CFGR_SDPRE_DIV24 (0xC8000000U) /*!< SDADC CLK divided by 24 */
  7346. #define RCC_CFGR_SDPRE_DIV28 (0xD0000000U) /*!< SDADC CLK divided by 28 */
  7347. #define RCC_CFGR_SDPRE_DIV32 (0xD8000000U) /*!< SDADC CLK divided by 32 */
  7348. #define RCC_CFGR_SDPRE_DIV36 (0xE0000000U) /*!< SDADC CLK divided by 36 */
  7349. #define RCC_CFGR_SDPRE_DIV40 (0xE8000000U) /*!< SDADC CLK divided by 40 */
  7350. #define RCC_CFGR_SDPRE_DIV44 (0xF0000000U) /*!< SDADC CLK divided by 44 */
  7351. #define RCC_CFGR_SDPRE_DIV48 (0xF8000000U) /*!< SDADC CLK divided by 48 */
  7352. /* Legacy aliases */
  7353. #define RCC_CFGR_SDADCPRE_Pos RCC_CFGR_SDPRE_Pos
  7354. #define RCC_CFGR_SDADCPRE_Msk RCC_CFGR_SDPRE_Msk
  7355. #define RCC_CFGR_SDADCPRE RCC_CFGR_SDPRE
  7356. #define RCC_CFGR_SDADCPRE_0 RCC_CFGR_SDPRE_0
  7357. #define RCC_CFGR_SDADCPRE_1 RCC_CFGR_SDPRE_1
  7358. #define RCC_CFGR_SDADCPRE_2 RCC_CFGR_SDPRE_2
  7359. #define RCC_CFGR_SDADCPRE_3 RCC_CFGR_SDPRE_3
  7360. #define RCC_CFGR_SDADCPRE_4 RCC_CFGR_SDPRE_4
  7361. #define RCC_CFGR_SDADCPRE_DIV1 RCC_CFGR_SDPRE_DIV1
  7362. #define RCC_CFGR_SDADCPRE_DIV2 RCC_CFGR_SDPRE_DIV2
  7363. #define RCC_CFGR_SDADCPRE_DIV4 RCC_CFGR_SDPRE_DIV4
  7364. #define RCC_CFGR_SDADCPRE_DIV6 RCC_CFGR_SDPRE_DIV6
  7365. #define RCC_CFGR_SDADCPRE_DIV8 RCC_CFGR_SDPRE_DIV8
  7366. #define RCC_CFGR_SDADCPRE_DIV10 RCC_CFGR_SDPRE_DIV10
  7367. #define RCC_CFGR_SDADCPRE_DIV12 RCC_CFGR_SDPRE_DIV12
  7368. #define RCC_CFGR_SDADCPRE_DIV14 RCC_CFGR_SDPRE_DIV14
  7369. #define RCC_CFGR_SDADCPRE_DIV16 RCC_CFGR_SDPRE_DIV16
  7370. #define RCC_CFGR_SDADCPRE_DIV20 RCC_CFGR_SDPRE_DIV20
  7371. #define RCC_CFGR_SDADCPRE_DIV24 RCC_CFGR_SDPRE_DIV24
  7372. #define RCC_CFGR_SDADCPRE_DIV28 RCC_CFGR_SDPRE_DIV28
  7373. #define RCC_CFGR_SDADCPRE_DIV32 RCC_CFGR_SDPRE_DIV32
  7374. #define RCC_CFGR_SDADCPRE_DIV36 RCC_CFGR_SDPRE_DIV36
  7375. #define RCC_CFGR_SDADCPRE_DIV40 RCC_CFGR_SDPRE_DIV40
  7376. #define RCC_CFGR_SDADCPRE_DIV44 RCC_CFGR_SDPRE_DIV44
  7377. #define RCC_CFGR_SDADCPRE_DIV48 RCC_CFGR_SDPRE_DIV48
  7378. /********************* Bit definition for RCC_CIR register ********************/
  7379. #define RCC_CIR_LSIRDYF_Pos (0U)
  7380. #define RCC_CIR_LSIRDYF_Msk (0x1U << RCC_CIR_LSIRDYF_Pos) /*!< 0x00000001 */
  7381. #define RCC_CIR_LSIRDYF RCC_CIR_LSIRDYF_Msk /*!< LSI Ready Interrupt flag */
  7382. #define RCC_CIR_LSERDYF_Pos (1U)
  7383. #define RCC_CIR_LSERDYF_Msk (0x1U << RCC_CIR_LSERDYF_Pos) /*!< 0x00000002 */
  7384. #define RCC_CIR_LSERDYF RCC_CIR_LSERDYF_Msk /*!< LSE Ready Interrupt flag */
  7385. #define RCC_CIR_HSIRDYF_Pos (2U)
  7386. #define RCC_CIR_HSIRDYF_Msk (0x1U << RCC_CIR_HSIRDYF_Pos) /*!< 0x00000004 */
  7387. #define RCC_CIR_HSIRDYF RCC_CIR_HSIRDYF_Msk /*!< HSI Ready Interrupt flag */
  7388. #define RCC_CIR_HSERDYF_Pos (3U)
  7389. #define RCC_CIR_HSERDYF_Msk (0x1U << RCC_CIR_HSERDYF_Pos) /*!< 0x00000008 */
  7390. #define RCC_CIR_HSERDYF RCC_CIR_HSERDYF_Msk /*!< HSE Ready Interrupt flag */
  7391. #define RCC_CIR_PLLRDYF_Pos (4U)
  7392. #define RCC_CIR_PLLRDYF_Msk (0x1U << RCC_CIR_PLLRDYF_Pos) /*!< 0x00000010 */
  7393. #define RCC_CIR_PLLRDYF RCC_CIR_PLLRDYF_Msk /*!< PLL Ready Interrupt flag */
  7394. #define RCC_CIR_CSSF_Pos (7U)
  7395. #define RCC_CIR_CSSF_Msk (0x1U << RCC_CIR_CSSF_Pos) /*!< 0x00000080 */
  7396. #define RCC_CIR_CSSF RCC_CIR_CSSF_Msk /*!< Clock Security System Interrupt flag */
  7397. #define RCC_CIR_LSIRDYIE_Pos (8U)
  7398. #define RCC_CIR_LSIRDYIE_Msk (0x1U << RCC_CIR_LSIRDYIE_Pos) /*!< 0x00000100 */
  7399. #define RCC_CIR_LSIRDYIE RCC_CIR_LSIRDYIE_Msk /*!< LSI Ready Interrupt Enable */
  7400. #define RCC_CIR_LSERDYIE_Pos (9U)
  7401. #define RCC_CIR_LSERDYIE_Msk (0x1U << RCC_CIR_LSERDYIE_Pos) /*!< 0x00000200 */
  7402. #define RCC_CIR_LSERDYIE RCC_CIR_LSERDYIE_Msk /*!< LSE Ready Interrupt Enable */
  7403. #define RCC_CIR_HSIRDYIE_Pos (10U)
  7404. #define RCC_CIR_HSIRDYIE_Msk (0x1U << RCC_CIR_HSIRDYIE_Pos) /*!< 0x00000400 */
  7405. #define RCC_CIR_HSIRDYIE RCC_CIR_HSIRDYIE_Msk /*!< HSI Ready Interrupt Enable */
  7406. #define RCC_CIR_HSERDYIE_Pos (11U)
  7407. #define RCC_CIR_HSERDYIE_Msk (0x1U << RCC_CIR_HSERDYIE_Pos) /*!< 0x00000800 */
  7408. #define RCC_CIR_HSERDYIE RCC_CIR_HSERDYIE_Msk /*!< HSE Ready Interrupt Enable */
  7409. #define RCC_CIR_PLLRDYIE_Pos (12U)
  7410. #define RCC_CIR_PLLRDYIE_Msk (0x1U << RCC_CIR_PLLRDYIE_Pos) /*!< 0x00001000 */
  7411. #define RCC_CIR_PLLRDYIE RCC_CIR_PLLRDYIE_Msk /*!< PLL Ready Interrupt Enable */
  7412. #define RCC_CIR_LSIRDYC_Pos (16U)
  7413. #define RCC_CIR_LSIRDYC_Msk (0x1U << RCC_CIR_LSIRDYC_Pos) /*!< 0x00010000 */
  7414. #define RCC_CIR_LSIRDYC RCC_CIR_LSIRDYC_Msk /*!< LSI Ready Interrupt Clear */
  7415. #define RCC_CIR_LSERDYC_Pos (17U)
  7416. #define RCC_CIR_LSERDYC_Msk (0x1U << RCC_CIR_LSERDYC_Pos) /*!< 0x00020000 */
  7417. #define RCC_CIR_LSERDYC RCC_CIR_LSERDYC_Msk /*!< LSE Ready Interrupt Clear */
  7418. #define RCC_CIR_HSIRDYC_Pos (18U)
  7419. #define RCC_CIR_HSIRDYC_Msk (0x1U << RCC_CIR_HSIRDYC_Pos) /*!< 0x00040000 */
  7420. #define RCC_CIR_HSIRDYC RCC_CIR_HSIRDYC_Msk /*!< HSI Ready Interrupt Clear */
  7421. #define RCC_CIR_HSERDYC_Pos (19U)
  7422. #define RCC_CIR_HSERDYC_Msk (0x1U << RCC_CIR_HSERDYC_Pos) /*!< 0x00080000 */
  7423. #define RCC_CIR_HSERDYC RCC_CIR_HSERDYC_Msk /*!< HSE Ready Interrupt Clear */
  7424. #define RCC_CIR_PLLRDYC_Pos (20U)
  7425. #define RCC_CIR_PLLRDYC_Msk (0x1U << RCC_CIR_PLLRDYC_Pos) /*!< 0x00100000 */
  7426. #define RCC_CIR_PLLRDYC RCC_CIR_PLLRDYC_Msk /*!< PLL Ready Interrupt Clear */
  7427. #define RCC_CIR_CSSC_Pos (23U)
  7428. #define RCC_CIR_CSSC_Msk (0x1U << RCC_CIR_CSSC_Pos) /*!< 0x00800000 */
  7429. #define RCC_CIR_CSSC RCC_CIR_CSSC_Msk /*!< Clock Security System Interrupt Clear */
  7430. /****************** Bit definition for RCC_APB2RSTR register *****************/
  7431. #define RCC_APB2RSTR_SYSCFGRST_Pos (0U)
  7432. #define RCC_APB2RSTR_SYSCFGRST_Msk (0x1U << RCC_APB2RSTR_SYSCFGRST_Pos) /*!< 0x00000001 */
  7433. #define RCC_APB2RSTR_SYSCFGRST RCC_APB2RSTR_SYSCFGRST_Msk /*!< SYSCFG reset */
  7434. #define RCC_APB2RSTR_ADC1RST_Pos (9U)
  7435. #define RCC_APB2RSTR_ADC1RST_Msk (0x1U << RCC_APB2RSTR_ADC1RST_Pos) /*!< 0x00000200 */
  7436. #define RCC_APB2RSTR_ADC1RST RCC_APB2RSTR_ADC1RST_Msk /*!< ADC1 reset */
  7437. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  7438. #define RCC_APB2RSTR_SPI1RST_Msk (0x1U << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */
  7439. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk /*!< SPI1 reset */
  7440. #define RCC_APB2RSTR_USART1RST_Pos (14U)
  7441. #define RCC_APB2RSTR_USART1RST_Msk (0x1U << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00004000 */
  7442. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk /*!< USART1 reset */
  7443. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  7444. #define RCC_APB2RSTR_TIM15RST_Msk (0x1U << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */
  7445. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk /*!< TIM15 reset */
  7446. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  7447. #define RCC_APB2RSTR_TIM16RST_Msk (0x1U << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */
  7448. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk /*!< TIM16 reset */
  7449. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  7450. #define RCC_APB2RSTR_TIM17RST_Msk (0x1U << RCC_APB2RSTR_TIM17RST_Pos) /*!< 0x00040000 */
  7451. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk /*!< TIM17 reset */
  7452. #define RCC_APB2RSTR_TIM19RST_Pos (19U)
  7453. #define RCC_APB2RSTR_TIM19RST_Msk (0x1U << RCC_APB2RSTR_TIM19RST_Pos) /*!< 0x00080000 */
  7454. #define RCC_APB2RSTR_TIM19RST RCC_APB2RSTR_TIM19RST_Msk /*!< TIM19 reset */
  7455. #define RCC_APB2RSTR_SDADC1RST_Pos (24U)
  7456. #define RCC_APB2RSTR_SDADC1RST_Msk (0x1U << RCC_APB2RSTR_SDADC1RST_Pos) /*!< 0x01000000 */
  7457. #define RCC_APB2RSTR_SDADC1RST RCC_APB2RSTR_SDADC1RST_Msk /*!< SDADC1 reset */
  7458. #define RCC_APB2RSTR_SDADC2RST_Pos (25U)
  7459. #define RCC_APB2RSTR_SDADC2RST_Msk (0x1U << RCC_APB2RSTR_SDADC2RST_Pos) /*!< 0x02000000 */
  7460. #define RCC_APB2RSTR_SDADC2RST RCC_APB2RSTR_SDADC2RST_Msk /*!< SDADC2 reset */
  7461. #define RCC_APB2RSTR_SDADC3RST_Pos (26U)
  7462. #define RCC_APB2RSTR_SDADC3RST_Msk (0x1U << RCC_APB2RSTR_SDADC3RST_Pos) /*!< 0x04000000 */
  7463. #define RCC_APB2RSTR_SDADC3RST RCC_APB2RSTR_SDADC3RST_Msk /*!< SDADC3 reset */
  7464. /****************** Bit definition for RCC_APB1RSTR register ******************/
  7465. #define RCC_APB1RSTR_TIM2RST_Pos (0U)
  7466. #define RCC_APB1RSTR_TIM2RST_Msk (0x1U << RCC_APB1RSTR_TIM2RST_Pos) /*!< 0x00000001 */
  7467. #define RCC_APB1RSTR_TIM2RST RCC_APB1RSTR_TIM2RST_Msk /*!< Timer 2 reset */
  7468. #define RCC_APB1RSTR_TIM3RST_Pos (1U)
  7469. #define RCC_APB1RSTR_TIM3RST_Msk (0x1U << RCC_APB1RSTR_TIM3RST_Pos) /*!< 0x00000002 */
  7470. #define RCC_APB1RSTR_TIM3RST RCC_APB1RSTR_TIM3RST_Msk /*!< Timer 3 reset */
  7471. #define RCC_APB1RSTR_TIM4RST_Pos (2U)
  7472. #define RCC_APB1RSTR_TIM4RST_Msk (0x1U << RCC_APB1RSTR_TIM4RST_Pos) /*!< 0x00000004 */
  7473. #define RCC_APB1RSTR_TIM4RST RCC_APB1RSTR_TIM4RST_Msk /*!< Timer 4 reset */
  7474. #define RCC_APB1RSTR_TIM5RST_Pos (3U)
  7475. #define RCC_APB1RSTR_TIM5RST_Msk (0x1U << RCC_APB1RSTR_TIM5RST_Pos) /*!< 0x00000008 */
  7476. #define RCC_APB1RSTR_TIM5RST RCC_APB1RSTR_TIM5RST_Msk /*!< Timer 5 reset */
  7477. #define RCC_APB1RSTR_TIM6RST_Pos (4U)
  7478. #define RCC_APB1RSTR_TIM6RST_Msk (0x1U << RCC_APB1RSTR_TIM6RST_Pos) /*!< 0x00000010 */
  7479. #define RCC_APB1RSTR_TIM6RST RCC_APB1RSTR_TIM6RST_Msk /*!< Timer 6 reset */
  7480. #define RCC_APB1RSTR_TIM7RST_Pos (5U)
  7481. #define RCC_APB1RSTR_TIM7RST_Msk (0x1U << RCC_APB1RSTR_TIM7RST_Pos) /*!< 0x00000020 */
  7482. #define RCC_APB1RSTR_TIM7RST RCC_APB1RSTR_TIM7RST_Msk /*!< Timer 7 reset */
  7483. #define RCC_APB1RSTR_TIM12RST_Pos (6U)
  7484. #define RCC_APB1RSTR_TIM12RST_Msk (0x1U << RCC_APB1RSTR_TIM12RST_Pos) /*!< 0x00000040 */
  7485. #define RCC_APB1RSTR_TIM12RST RCC_APB1RSTR_TIM12RST_Msk /*!< Timer 12 reset */
  7486. #define RCC_APB1RSTR_TIM13RST_Pos (7U)
  7487. #define RCC_APB1RSTR_TIM13RST_Msk (0x1U << RCC_APB1RSTR_TIM13RST_Pos) /*!< 0x00000080 */
  7488. #define RCC_APB1RSTR_TIM13RST RCC_APB1RSTR_TIM13RST_Msk /*!< Timer 13 reset */
  7489. #define RCC_APB1RSTR_TIM14RST_Pos (8U)
  7490. #define RCC_APB1RSTR_TIM14RST_Msk (0x1U << RCC_APB1RSTR_TIM14RST_Pos) /*!< 0x00000100 */
  7491. #define RCC_APB1RSTR_TIM14RST RCC_APB1RSTR_TIM14RST_Msk /*!< Timer 14 reset */
  7492. #define RCC_APB1RSTR_TIM18RST_Pos (9U)
  7493. #define RCC_APB1RSTR_TIM18RST_Msk (0x1U << RCC_APB1RSTR_TIM18RST_Pos) /*!< 0x00000200 */
  7494. #define RCC_APB1RSTR_TIM18RST RCC_APB1RSTR_TIM18RST_Msk /*!< Timer 18 reset */
  7495. #define RCC_APB1RSTR_WWDGRST_Pos (11U)
  7496. #define RCC_APB1RSTR_WWDGRST_Msk (0x1U << RCC_APB1RSTR_WWDGRST_Pos) /*!< 0x00000800 */
  7497. #define RCC_APB1RSTR_WWDGRST RCC_APB1RSTR_WWDGRST_Msk /*!< Window Watchdog reset */
  7498. #define RCC_APB1RSTR_SPI2RST_Pos (14U)
  7499. #define RCC_APB1RSTR_SPI2RST_Msk (0x1U << RCC_APB1RSTR_SPI2RST_Pos) /*!< 0x00004000 */
  7500. #define RCC_APB1RSTR_SPI2RST RCC_APB1RSTR_SPI2RST_Msk /*!< SPI2 reset */
  7501. #define RCC_APB1RSTR_SPI3RST_Pos (15U)
  7502. #define RCC_APB1RSTR_SPI3RST_Msk (0x1U << RCC_APB1RSTR_SPI3RST_Pos) /*!< 0x00008000 */
  7503. #define RCC_APB1RSTR_SPI3RST RCC_APB1RSTR_SPI3RST_Msk /*!< SPI3 reset */
  7504. #define RCC_APB1RSTR_USART2RST_Pos (17U)
  7505. #define RCC_APB1RSTR_USART2RST_Msk (0x1U << RCC_APB1RSTR_USART2RST_Pos) /*!< 0x00020000 */
  7506. #define RCC_APB1RSTR_USART2RST RCC_APB1RSTR_USART2RST_Msk /*!< USART 2 reset */
  7507. #define RCC_APB1RSTR_USART3RST_Pos (18U)
  7508. #define RCC_APB1RSTR_USART3RST_Msk (0x1U << RCC_APB1RSTR_USART3RST_Pos) /*!< 0x00040000 */
  7509. #define RCC_APB1RSTR_USART3RST RCC_APB1RSTR_USART3RST_Msk /*!< USART 3 reset */
  7510. #define RCC_APB1RSTR_I2C1RST_Pos (21U)
  7511. #define RCC_APB1RSTR_I2C1RST_Msk (0x1U << RCC_APB1RSTR_I2C1RST_Pos) /*!< 0x00200000 */
  7512. #define RCC_APB1RSTR_I2C1RST RCC_APB1RSTR_I2C1RST_Msk /*!< I2C 1 reset */
  7513. #define RCC_APB1RSTR_I2C2RST_Pos (22U)
  7514. #define RCC_APB1RSTR_I2C2RST_Msk (0x1U << RCC_APB1RSTR_I2C2RST_Pos) /*!< 0x00400000 */
  7515. #define RCC_APB1RSTR_I2C2RST RCC_APB1RSTR_I2C2RST_Msk /*!< I2C 2 reset */
  7516. #define RCC_APB1RSTR_CANRST_Pos (25U)
  7517. #define RCC_APB1RSTR_CANRST_Msk (0x1U << RCC_APB1RSTR_CANRST_Pos) /*!< 0x02000000 */
  7518. #define RCC_APB1RSTR_CANRST RCC_APB1RSTR_CANRST_Msk /*!< CAN reset */
  7519. #define RCC_APB1RSTR_DAC2RST_Pos (26U)
  7520. #define RCC_APB1RSTR_DAC2RST_Msk (0x1U << RCC_APB1RSTR_DAC2RST_Pos) /*!< 0x04000000 */
  7521. #define RCC_APB1RSTR_DAC2RST RCC_APB1RSTR_DAC2RST_Msk /*!< DAC 2 reset */
  7522. #define RCC_APB1RSTR_PWRRST_Pos (28U)
  7523. #define RCC_APB1RSTR_PWRRST_Msk (0x1U << RCC_APB1RSTR_PWRRST_Pos) /*!< 0x10000000 */
  7524. #define RCC_APB1RSTR_PWRRST RCC_APB1RSTR_PWRRST_Msk /*!< PWR reset */
  7525. #define RCC_APB1RSTR_DAC1RST_Pos (29U)
  7526. #define RCC_APB1RSTR_DAC1RST_Msk (0x1U << RCC_APB1RSTR_DAC1RST_Pos) /*!< 0x20000000 */
  7527. #define RCC_APB1RSTR_DAC1RST RCC_APB1RSTR_DAC1RST_Msk /*!< DAC 1 reset */
  7528. #define RCC_APB1RSTR_CECRST_Pos (30U)
  7529. #define RCC_APB1RSTR_CECRST_Msk (0x1U << RCC_APB1RSTR_CECRST_Pos) /*!< 0x40000000 */
  7530. #define RCC_APB1RSTR_CECRST RCC_APB1RSTR_CECRST_Msk /*!< CEC reset */
  7531. /****************** Bit definition for RCC_AHBENR register ******************/
  7532. #define RCC_AHBENR_DMA1EN_Pos (0U)
  7533. #define RCC_AHBENR_DMA1EN_Msk (0x1U << RCC_AHBENR_DMA1EN_Pos) /*!< 0x00000001 */
  7534. #define RCC_AHBENR_DMA1EN RCC_AHBENR_DMA1EN_Msk /*!< DMA1 clock enable */
  7535. #define RCC_AHBENR_DMA2EN_Pos (1U)
  7536. #define RCC_AHBENR_DMA2EN_Msk (0x1U << RCC_AHBENR_DMA2EN_Pos) /*!< 0x00000002 */
  7537. #define RCC_AHBENR_DMA2EN RCC_AHBENR_DMA2EN_Msk /*!< DMA2 clock enable */
  7538. #define RCC_AHBENR_SRAMEN_Pos (2U)
  7539. #define RCC_AHBENR_SRAMEN_Msk (0x1U << RCC_AHBENR_SRAMEN_Pos) /*!< 0x00000004 */
  7540. #define RCC_AHBENR_SRAMEN RCC_AHBENR_SRAMEN_Msk /*!< SRAM interface clock enable */
  7541. #define RCC_AHBENR_FLITFEN_Pos (4U)
  7542. #define RCC_AHBENR_FLITFEN_Msk (0x1U << RCC_AHBENR_FLITFEN_Pos) /*!< 0x00000010 */
  7543. #define RCC_AHBENR_FLITFEN RCC_AHBENR_FLITFEN_Msk /*!< FLITF clock enable */
  7544. #define RCC_AHBENR_CRCEN_Pos (6U)
  7545. #define RCC_AHBENR_CRCEN_Msk (0x1U << RCC_AHBENR_CRCEN_Pos) /*!< 0x00000040 */
  7546. #define RCC_AHBENR_CRCEN RCC_AHBENR_CRCEN_Msk /*!< CRC clock enable */
  7547. #define RCC_AHBENR_GPIOAEN_Pos (17U)
  7548. #define RCC_AHBENR_GPIOAEN_Msk (0x1U << RCC_AHBENR_GPIOAEN_Pos) /*!< 0x00020000 */
  7549. #define RCC_AHBENR_GPIOAEN RCC_AHBENR_GPIOAEN_Msk /*!< GPIOA clock enable */
  7550. #define RCC_AHBENR_GPIOBEN_Pos (18U)
  7551. #define RCC_AHBENR_GPIOBEN_Msk (0x1U << RCC_AHBENR_GPIOBEN_Pos) /*!< 0x00040000 */
  7552. #define RCC_AHBENR_GPIOBEN RCC_AHBENR_GPIOBEN_Msk /*!< GPIOB clock enable */
  7553. #define RCC_AHBENR_GPIOCEN_Pos (19U)
  7554. #define RCC_AHBENR_GPIOCEN_Msk (0x1U << RCC_AHBENR_GPIOCEN_Pos) /*!< 0x00080000 */
  7555. #define RCC_AHBENR_GPIOCEN RCC_AHBENR_GPIOCEN_Msk /*!< GPIOC clock enable */
  7556. #define RCC_AHBENR_GPIODEN_Pos (20U)
  7557. #define RCC_AHBENR_GPIODEN_Msk (0x1U << RCC_AHBENR_GPIODEN_Pos) /*!< 0x00100000 */
  7558. #define RCC_AHBENR_GPIODEN RCC_AHBENR_GPIODEN_Msk /*!< GPIOD clock enable */
  7559. #define RCC_AHBENR_GPIOEEN_Pos (21U)
  7560. #define RCC_AHBENR_GPIOEEN_Msk (0x1U << RCC_AHBENR_GPIOEEN_Pos) /*!< 0x00200000 */
  7561. #define RCC_AHBENR_GPIOEEN RCC_AHBENR_GPIOEEN_Msk /*!< GPIOE clock enable */
  7562. #define RCC_AHBENR_GPIOFEN_Pos (22U)
  7563. #define RCC_AHBENR_GPIOFEN_Msk (0x1U << RCC_AHBENR_GPIOFEN_Pos) /*!< 0x00400000 */
  7564. #define RCC_AHBENR_GPIOFEN RCC_AHBENR_GPIOFEN_Msk /*!< GPIOF clock enable */
  7565. #define RCC_AHBENR_TSCEN_Pos (24U)
  7566. #define RCC_AHBENR_TSCEN_Msk (0x1U << RCC_AHBENR_TSCEN_Pos) /*!< 0x01000000 */
  7567. #define RCC_AHBENR_TSCEN RCC_AHBENR_TSCEN_Msk /*!< TS clock enable */
  7568. /***************** Bit definition for RCC_APB2ENR register ******************/
  7569. #define RCC_APB2ENR_SYSCFGEN_Pos (0U)
  7570. #define RCC_APB2ENR_SYSCFGEN_Msk (0x1U << RCC_APB2ENR_SYSCFGEN_Pos) /*!< 0x00000001 */
  7571. #define RCC_APB2ENR_SYSCFGEN RCC_APB2ENR_SYSCFGEN_Msk /*!< SYSCFG clock enable */
  7572. #define RCC_APB2ENR_ADC1EN_Pos (9U)
  7573. #define RCC_APB2ENR_ADC1EN_Msk (0x1U << RCC_APB2ENR_ADC1EN_Pos) /*!< 0x00000200 */
  7574. #define RCC_APB2ENR_ADC1EN RCC_APB2ENR_ADC1EN_Msk /*!< ADC1 clock enable */
  7575. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  7576. #define RCC_APB2ENR_SPI1EN_Msk (0x1U << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  7577. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk /*!< SPI1 clock enable */
  7578. #define RCC_APB2ENR_USART1EN_Pos (14U)
  7579. #define RCC_APB2ENR_USART1EN_Msk (0x1U << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00004000 */
  7580. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk /*!< USART1 clock enable */
  7581. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  7582. #define RCC_APB2ENR_TIM15EN_Msk (0x1U << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */
  7583. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk /*!< TIM15 clock enable */
  7584. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  7585. #define RCC_APB2ENR_TIM16EN_Msk (0x1U << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
  7586. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk /*!< TIM16 clock enable */
  7587. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  7588. #define RCC_APB2ENR_TIM17EN_Msk (0x1U << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
  7589. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk /*!< TIM17 clock enable */
  7590. #define RCC_APB2ENR_TIM19EN_Pos (19U)
  7591. #define RCC_APB2ENR_TIM19EN_Msk (0x1U << RCC_APB2ENR_TIM19EN_Pos) /*!< 0x00080000 */
  7592. #define RCC_APB2ENR_TIM19EN RCC_APB2ENR_TIM19EN_Msk /*!< TIM19 clock enable */
  7593. #define RCC_APB2ENR_SDADC1EN_Pos (24U)
  7594. #define RCC_APB2ENR_SDADC1EN_Msk (0x1U << RCC_APB2ENR_SDADC1EN_Pos) /*!< 0x01000000 */
  7595. #define RCC_APB2ENR_SDADC1EN RCC_APB2ENR_SDADC1EN_Msk /*!< SDADC1 clock enable */
  7596. #define RCC_APB2ENR_SDADC2EN_Pos (25U)
  7597. #define RCC_APB2ENR_SDADC2EN_Msk (0x1U << RCC_APB2ENR_SDADC2EN_Pos) /*!< 0x02000000 */
  7598. #define RCC_APB2ENR_SDADC2EN RCC_APB2ENR_SDADC2EN_Msk /*!< SDADC2 clock enable */
  7599. #define RCC_APB2ENR_SDADC3EN_Pos (26U)
  7600. #define RCC_APB2ENR_SDADC3EN_Msk (0x1U << RCC_APB2ENR_SDADC3EN_Pos) /*!< 0x04000000 */
  7601. #define RCC_APB2ENR_SDADC3EN RCC_APB2ENR_SDADC3EN_Msk /*!< SDADC3 clock enable */
  7602. /****************** Bit definition for RCC_APB1ENR register ******************/
  7603. #define RCC_APB1ENR_TIM2EN_Pos (0U)
  7604. #define RCC_APB1ENR_TIM2EN_Msk (0x1U << RCC_APB1ENR_TIM2EN_Pos) /*!< 0x00000001 */
  7605. #define RCC_APB1ENR_TIM2EN RCC_APB1ENR_TIM2EN_Msk /*!< Timer 2 clock enable */
  7606. #define RCC_APB1ENR_TIM3EN_Pos (1U)
  7607. #define RCC_APB1ENR_TIM3EN_Msk (0x1U << RCC_APB1ENR_TIM3EN_Pos) /*!< 0x00000002 */
  7608. #define RCC_APB1ENR_TIM3EN RCC_APB1ENR_TIM3EN_Msk /*!< Timer 3 clock enable */
  7609. #define RCC_APB1ENR_TIM4EN_Pos (2U)
  7610. #define RCC_APB1ENR_TIM4EN_Msk (0x1U << RCC_APB1ENR_TIM4EN_Pos) /*!< 0x00000004 */
  7611. #define RCC_APB1ENR_TIM4EN RCC_APB1ENR_TIM4EN_Msk /*!< Timer 4 clock enable */
  7612. #define RCC_APB1ENR_TIM5EN_Pos (3U)
  7613. #define RCC_APB1ENR_TIM5EN_Msk (0x1U << RCC_APB1ENR_TIM5EN_Pos) /*!< 0x00000008 */
  7614. #define RCC_APB1ENR_TIM5EN RCC_APB1ENR_TIM5EN_Msk /*!< Timer 5 clock enable */
  7615. #define RCC_APB1ENR_TIM6EN_Pos (4U)
  7616. #define RCC_APB1ENR_TIM6EN_Msk (0x1U << RCC_APB1ENR_TIM6EN_Pos) /*!< 0x00000010 */
  7617. #define RCC_APB1ENR_TIM6EN RCC_APB1ENR_TIM6EN_Msk /*!< Timer 6 clock enable */
  7618. #define RCC_APB1ENR_TIM7EN_Pos (5U)
  7619. #define RCC_APB1ENR_TIM7EN_Msk (0x1U << RCC_APB1ENR_TIM7EN_Pos) /*!< 0x00000020 */
  7620. #define RCC_APB1ENR_TIM7EN RCC_APB1ENR_TIM7EN_Msk /*!< Timer 7 clock enable */
  7621. #define RCC_APB1ENR_TIM12EN_Pos (6U)
  7622. #define RCC_APB1ENR_TIM12EN_Msk (0x1U << RCC_APB1ENR_TIM12EN_Pos) /*!< 0x00000040 */
  7623. #define RCC_APB1ENR_TIM12EN RCC_APB1ENR_TIM12EN_Msk /*!< Timer 12 clock enable */
  7624. #define RCC_APB1ENR_TIM13EN_Pos (7U)
  7625. #define RCC_APB1ENR_TIM13EN_Msk (0x1U << RCC_APB1ENR_TIM13EN_Pos) /*!< 0x00000080 */
  7626. #define RCC_APB1ENR_TIM13EN RCC_APB1ENR_TIM13EN_Msk /*!< Timer 13 clock enable */
  7627. #define RCC_APB1ENR_TIM14EN_Pos (8U)
  7628. #define RCC_APB1ENR_TIM14EN_Msk (0x1U << RCC_APB1ENR_TIM14EN_Pos) /*!< 0x00000100 */
  7629. #define RCC_APB1ENR_TIM14EN RCC_APB1ENR_TIM14EN_Msk /*!< Timer 14 clock enable */
  7630. #define RCC_APB1ENR_TIM18EN_Pos (9U)
  7631. #define RCC_APB1ENR_TIM18EN_Msk (0x1U << RCC_APB1ENR_TIM18EN_Pos) /*!< 0x00000200 */
  7632. #define RCC_APB1ENR_TIM18EN RCC_APB1ENR_TIM18EN_Msk /*!< Timer 18 clock enable */
  7633. #define RCC_APB1ENR_WWDGEN_Pos (11U)
  7634. #define RCC_APB1ENR_WWDGEN_Msk (0x1U << RCC_APB1ENR_WWDGEN_Pos) /*!< 0x00000800 */
  7635. #define RCC_APB1ENR_WWDGEN RCC_APB1ENR_WWDGEN_Msk /*!< Window Watchdog clock enable */
  7636. #define RCC_APB1ENR_SPI2EN_Pos (14U)
  7637. #define RCC_APB1ENR_SPI2EN_Msk (0x1U << RCC_APB1ENR_SPI2EN_Pos) /*!< 0x00004000 */
  7638. #define RCC_APB1ENR_SPI2EN RCC_APB1ENR_SPI2EN_Msk /*!< SPI2 clock enable */
  7639. #define RCC_APB1ENR_SPI3EN_Pos (15U)
  7640. #define RCC_APB1ENR_SPI3EN_Msk (0x1U << RCC_APB1ENR_SPI3EN_Pos) /*!< 0x00008000 */
  7641. #define RCC_APB1ENR_SPI3EN RCC_APB1ENR_SPI3EN_Msk /*!< SPI3 clock enable */
  7642. #define RCC_APB1ENR_USART2EN_Pos (17U)
  7643. #define RCC_APB1ENR_USART2EN_Msk (0x1U << RCC_APB1ENR_USART2EN_Pos) /*!< 0x00020000 */
  7644. #define RCC_APB1ENR_USART2EN RCC_APB1ENR_USART2EN_Msk /*!< USART 2 clock enable */
  7645. #define RCC_APB1ENR_USART3EN_Pos (18U)
  7646. #define RCC_APB1ENR_USART3EN_Msk (0x1U << RCC_APB1ENR_USART3EN_Pos) /*!< 0x00040000 */
  7647. #define RCC_APB1ENR_USART3EN RCC_APB1ENR_USART3EN_Msk /*!< USART 3 clock enable */
  7648. #define RCC_APB1ENR_I2C1EN_Pos (21U)
  7649. #define RCC_APB1ENR_I2C1EN_Msk (0x1U << RCC_APB1ENR_I2C1EN_Pos) /*!< 0x00200000 */
  7650. #define RCC_APB1ENR_I2C1EN RCC_APB1ENR_I2C1EN_Msk /*!< I2C 1 clock enable */
  7651. #define RCC_APB1ENR_I2C2EN_Pos (22U)
  7652. #define RCC_APB1ENR_I2C2EN_Msk (0x1U << RCC_APB1ENR_I2C2EN_Pos) /*!< 0x00400000 */
  7653. #define RCC_APB1ENR_I2C2EN RCC_APB1ENR_I2C2EN_Msk /*!< I2C 2 clock enable */
  7654. #define RCC_APB1ENR_CANEN_Pos (25U)
  7655. #define RCC_APB1ENR_CANEN_Msk (0x1U << RCC_APB1ENR_CANEN_Pos) /*!< 0x02000000 */
  7656. #define RCC_APB1ENR_CANEN RCC_APB1ENR_CANEN_Msk /*!< CAN clock enable */
  7657. #define RCC_APB1ENR_DAC2EN_Pos (26U)
  7658. #define RCC_APB1ENR_DAC2EN_Msk (0x1U << RCC_APB1ENR_DAC2EN_Pos) /*!< 0x04000000 */
  7659. #define RCC_APB1ENR_DAC2EN RCC_APB1ENR_DAC2EN_Msk /*!< DAC 2 clock enable */
  7660. #define RCC_APB1ENR_PWREN_Pos (28U)
  7661. #define RCC_APB1ENR_PWREN_Msk (0x1U << RCC_APB1ENR_PWREN_Pos) /*!< 0x10000000 */
  7662. #define RCC_APB1ENR_PWREN RCC_APB1ENR_PWREN_Msk /*!< PWR clock enable */
  7663. #define RCC_APB1ENR_DAC1EN_Pos (29U)
  7664. #define RCC_APB1ENR_DAC1EN_Msk (0x1U << RCC_APB1ENR_DAC1EN_Pos) /*!< 0x20000000 */
  7665. #define RCC_APB1ENR_DAC1EN RCC_APB1ENR_DAC1EN_Msk /*!< DAC 1 clock enable */
  7666. #define RCC_APB1ENR_CECEN_Pos (30U)
  7667. #define RCC_APB1ENR_CECEN_Msk (0x1U << RCC_APB1ENR_CECEN_Pos) /*!< 0x40000000 */
  7668. #define RCC_APB1ENR_CECEN RCC_APB1ENR_CECEN_Msk /*!< CEC clock enable */
  7669. /******************** Bit definition for RCC_BDCR register ******************/
  7670. #define RCC_BDCR_LSE_Pos (0U)
  7671. #define RCC_BDCR_LSE_Msk (0x7U << RCC_BDCR_LSE_Pos) /*!< 0x00000007 */
  7672. #define RCC_BDCR_LSE RCC_BDCR_LSE_Msk /*!< External Low Speed oscillator [2:0] bits */
  7673. #define RCC_BDCR_LSEON_Pos (0U)
  7674. #define RCC_BDCR_LSEON_Msk (0x1U << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  7675. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk /*!< External Low Speed oscillator enable */
  7676. #define RCC_BDCR_LSERDY_Pos (1U)
  7677. #define RCC_BDCR_LSERDY_Msk (0x1U << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  7678. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk /*!< External Low Speed oscillator Ready */
  7679. #define RCC_BDCR_LSEBYP_Pos (2U)
  7680. #define RCC_BDCR_LSEBYP_Msk (0x1U << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  7681. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk /*!< External Low Speed oscillator Bypass */
  7682. #define RCC_BDCR_LSEDRV_Pos (3U)
  7683. #define RCC_BDCR_LSEDRV_Msk (0x3U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  7684. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk /*!< LSEDRV[1:0] bits (LSE Osc. drive capability) */
  7685. #define RCC_BDCR_LSEDRV_0 (0x1U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  7686. #define RCC_BDCR_LSEDRV_1 (0x2U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  7687. #define RCC_BDCR_RTCSEL_Pos (8U)
  7688. #define RCC_BDCR_RTCSEL_Msk (0x3U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  7689. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk /*!< RTCSEL[1:0] bits (RTC clock source selection) */
  7690. #define RCC_BDCR_RTCSEL_0 (0x1U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  7691. #define RCC_BDCR_RTCSEL_1 (0x2U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  7692. /*!< RTC configuration */
  7693. #define RCC_BDCR_RTCSEL_NOCLOCK (0x00000000U) /*!< No clock */
  7694. #define RCC_BDCR_RTCSEL_LSE (0x00000100U) /*!< LSE oscillator clock used as RTC clock */
  7695. #define RCC_BDCR_RTCSEL_LSI (0x00000200U) /*!< LSI oscillator clock used as RTC clock */
  7696. #define RCC_BDCR_RTCSEL_HSE (0x00000300U) /*!< HSE oscillator clock divided by 32 used as RTC clock */
  7697. #define RCC_BDCR_RTCEN_Pos (15U)
  7698. #define RCC_BDCR_RTCEN_Msk (0x1U << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  7699. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk /*!< RTC clock enable */
  7700. #define RCC_BDCR_BDRST_Pos (16U)
  7701. #define RCC_BDCR_BDRST_Msk (0x1U << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  7702. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk /*!< Backup domain software reset */
  7703. /******************** Bit definition for RCC_CSR register *******************/
  7704. #define RCC_CSR_LSION_Pos (0U)
  7705. #define RCC_CSR_LSION_Msk (0x1U << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  7706. #define RCC_CSR_LSION RCC_CSR_LSION_Msk /*!< Internal Low Speed oscillator enable */
  7707. #define RCC_CSR_LSIRDY_Pos (1U)
  7708. #define RCC_CSR_LSIRDY_Msk (0x1U << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  7709. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk /*!< Internal Low Speed oscillator Ready */
  7710. #define RCC_CSR_RMVF_Pos (24U)
  7711. #define RCC_CSR_RMVF_Msk (0x1U << RCC_CSR_RMVF_Pos) /*!< 0x01000000 */
  7712. #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk /*!< Remove reset flag */
  7713. #define RCC_CSR_OBLRSTF_Pos (25U)
  7714. #define RCC_CSR_OBLRSTF_Msk (0x1U << RCC_CSR_OBLRSTF_Pos) /*!< 0x02000000 */
  7715. #define RCC_CSR_OBLRSTF RCC_CSR_OBLRSTF_Msk /*!< OBL reset flag */
  7716. #define RCC_CSR_PINRSTF_Pos (26U)
  7717. #define RCC_CSR_PINRSTF_Msk (0x1U << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */
  7718. #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk /*!< PIN reset flag */
  7719. #define RCC_CSR_PORRSTF_Pos (27U)
  7720. #define RCC_CSR_PORRSTF_Msk (0x1U << RCC_CSR_PORRSTF_Pos) /*!< 0x08000000 */
  7721. #define RCC_CSR_PORRSTF RCC_CSR_PORRSTF_Msk /*!< POR/PDR reset flag */
  7722. #define RCC_CSR_SFTRSTF_Pos (28U)
  7723. #define RCC_CSR_SFTRSTF_Msk (0x1U << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */
  7724. #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk /*!< Software Reset flag */
  7725. #define RCC_CSR_IWDGRSTF_Pos (29U)
  7726. #define RCC_CSR_IWDGRSTF_Msk (0x1U << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */
  7727. #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk /*!< Independent Watchdog reset flag */
  7728. #define RCC_CSR_WWDGRSTF_Pos (30U)
  7729. #define RCC_CSR_WWDGRSTF_Msk (0x1U << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */
  7730. #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk /*!< Window watchdog reset flag */
  7731. #define RCC_CSR_LPWRRSTF_Pos (31U)
  7732. #define RCC_CSR_LPWRRSTF_Msk (0x1U << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */
  7733. #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk /*!< Low-Power reset flag */
  7734. /******************* Bit definition for RCC_AHBRSTR register ****************/
  7735. #define RCC_AHBRSTR_GPIOARST_Pos (17U)
  7736. #define RCC_AHBRSTR_GPIOARST_Msk (0x1U << RCC_AHBRSTR_GPIOARST_Pos) /*!< 0x00020000 */
  7737. #define RCC_AHBRSTR_GPIOARST RCC_AHBRSTR_GPIOARST_Msk /*!< GPIOA reset */
  7738. #define RCC_AHBRSTR_GPIOBRST_Pos (18U)
  7739. #define RCC_AHBRSTR_GPIOBRST_Msk (0x1U << RCC_AHBRSTR_GPIOBRST_Pos) /*!< 0x00040000 */
  7740. #define RCC_AHBRSTR_GPIOBRST RCC_AHBRSTR_GPIOBRST_Msk /*!< GPIOB reset */
  7741. #define RCC_AHBRSTR_GPIOCRST_Pos (19U)
  7742. #define RCC_AHBRSTR_GPIOCRST_Msk (0x1U << RCC_AHBRSTR_GPIOCRST_Pos) /*!< 0x00080000 */
  7743. #define RCC_AHBRSTR_GPIOCRST RCC_AHBRSTR_GPIOCRST_Msk /*!< GPIOC reset */
  7744. #define RCC_AHBRSTR_GPIODRST_Pos (20U)
  7745. #define RCC_AHBRSTR_GPIODRST_Msk (0x1U << RCC_AHBRSTR_GPIODRST_Pos) /*!< 0x00100000 */
  7746. #define RCC_AHBRSTR_GPIODRST RCC_AHBRSTR_GPIODRST_Msk /*!< GPIOD reset */
  7747. #define RCC_AHBRSTR_GPIOERST_Pos (21U)
  7748. #define RCC_AHBRSTR_GPIOERST_Msk (0x1U << RCC_AHBRSTR_GPIOERST_Pos) /*!< 0x00200000 */
  7749. #define RCC_AHBRSTR_GPIOERST RCC_AHBRSTR_GPIOERST_Msk /*!< GPIOE reset */
  7750. #define RCC_AHBRSTR_GPIOFRST_Pos (22U)
  7751. #define RCC_AHBRSTR_GPIOFRST_Msk (0x1U << RCC_AHBRSTR_GPIOFRST_Pos) /*!< 0x00400000 */
  7752. #define RCC_AHBRSTR_GPIOFRST RCC_AHBRSTR_GPIOFRST_Msk /*!< GPIOF reset */
  7753. #define RCC_AHBRSTR_TSCRST_Pos (24U)
  7754. #define RCC_AHBRSTR_TSCRST_Msk (0x1U << RCC_AHBRSTR_TSCRST_Pos) /*!< 0x01000000 */
  7755. #define RCC_AHBRSTR_TSCRST RCC_AHBRSTR_TSCRST_Msk /*!< TSC reset */
  7756. /******************* Bit definition for RCC_CFGR2 register ******************/
  7757. /*!< PREDIV configuration */
  7758. #define RCC_CFGR2_PREDIV_Pos (0U)
  7759. #define RCC_CFGR2_PREDIV_Msk (0xFU << RCC_CFGR2_PREDIV_Pos) /*!< 0x0000000F */
  7760. #define RCC_CFGR2_PREDIV RCC_CFGR2_PREDIV_Msk /*!< PREDIV[3:0] bits */
  7761. #define RCC_CFGR2_PREDIV_0 (0x1U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000001 */
  7762. #define RCC_CFGR2_PREDIV_1 (0x2U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000002 */
  7763. #define RCC_CFGR2_PREDIV_2 (0x4U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000004 */
  7764. #define RCC_CFGR2_PREDIV_3 (0x8U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000008 */
  7765. #define RCC_CFGR2_PREDIV_DIV1 (0x00000000U) /*!< PREDIV input clock not divided */
  7766. #define RCC_CFGR2_PREDIV_DIV2 (0x00000001U) /*!< PREDIV input clock divided by 2 */
  7767. #define RCC_CFGR2_PREDIV_DIV3 (0x00000002U) /*!< PREDIV input clock divided by 3 */
  7768. #define RCC_CFGR2_PREDIV_DIV4 (0x00000003U) /*!< PREDIV input clock divided by 4 */
  7769. #define RCC_CFGR2_PREDIV_DIV5 (0x00000004U) /*!< PREDIV input clock divided by 5 */
  7770. #define RCC_CFGR2_PREDIV_DIV6 (0x00000005U) /*!< PREDIV input clock divided by 6 */
  7771. #define RCC_CFGR2_PREDIV_DIV7 (0x00000006U) /*!< PREDIV input clock divided by 7 */
  7772. #define RCC_CFGR2_PREDIV_DIV8 (0x00000007U) /*!< PREDIV input clock divided by 8 */
  7773. #define RCC_CFGR2_PREDIV_DIV9 (0x00000008U) /*!< PREDIV input clock divided by 9 */
  7774. #define RCC_CFGR2_PREDIV_DIV10 (0x00000009U) /*!< PREDIV input clock divided by 10 */
  7775. #define RCC_CFGR2_PREDIV_DIV11 (0x0000000AU) /*!< PREDIV input clock divided by 11 */
  7776. #define RCC_CFGR2_PREDIV_DIV12 (0x0000000BU) /*!< PREDIV input clock divided by 12 */
  7777. #define RCC_CFGR2_PREDIV_DIV13 (0x0000000CU) /*!< PREDIV input clock divided by 13 */
  7778. #define RCC_CFGR2_PREDIV_DIV14 (0x0000000DU) /*!< PREDIV input clock divided by 14 */
  7779. #define RCC_CFGR2_PREDIV_DIV15 (0x0000000EU) /*!< PREDIV input clock divided by 15 */
  7780. #define RCC_CFGR2_PREDIV_DIV16 (0x0000000FU) /*!< PREDIV input clock divided by 16 */
  7781. /******************* Bit definition for RCC_CFGR3 register ******************/
  7782. #define RCC_CFGR3_USART1SW_Pos (0U)
  7783. #define RCC_CFGR3_USART1SW_Msk (0x3U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000003 */
  7784. #define RCC_CFGR3_USART1SW RCC_CFGR3_USART1SW_Msk /*!< USART1SW[1:0] bits */
  7785. #define RCC_CFGR3_USART1SW_0 (0x1U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000001 */
  7786. #define RCC_CFGR3_USART1SW_1 (0x2U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000002 */
  7787. #define RCC_CFGR3_USART1SW_PCLK2 (0x00000000U) /*!< PCLK2 clock used as USART1 clock source */
  7788. #define RCC_CFGR3_USART1SW_SYSCLK (0x00000001U) /*!< System clock selected as USART1 clock source */
  7789. #define RCC_CFGR3_USART1SW_LSE (0x00000002U) /*!< LSE oscillator clock used as USART1 clock source */
  7790. #define RCC_CFGR3_USART1SW_HSI (0x00000003U) /*!< HSI oscillator clock used as USART1 clock source */
  7791. /* Legacy defines */
  7792. #define RCC_CFGR3_USART1SW_PCLK RCC_CFGR3_USART1SW_PCLK2
  7793. #define RCC_CFGR3_I2CSW_Pos (4U)
  7794. #define RCC_CFGR3_I2CSW_Msk (0x3U << RCC_CFGR3_I2CSW_Pos) /*!< 0x00000030 */
  7795. #define RCC_CFGR3_I2CSW RCC_CFGR3_I2CSW_Msk /*!< I2CSW bits */
  7796. #define RCC_CFGR3_I2C1SW_Pos (4U)
  7797. #define RCC_CFGR3_I2C1SW_Msk (0x1U << RCC_CFGR3_I2C1SW_Pos) /*!< 0x00000010 */
  7798. #define RCC_CFGR3_I2C1SW RCC_CFGR3_I2C1SW_Msk /*!< I2C1SW bits */
  7799. #define RCC_CFGR3_I2C2SW_Pos (5U)
  7800. #define RCC_CFGR3_I2C2SW_Msk (0x1U << RCC_CFGR3_I2C2SW_Pos) /*!< 0x00000020 */
  7801. #define RCC_CFGR3_I2C2SW RCC_CFGR3_I2C2SW_Msk /*!< I2C2SW bits */
  7802. #define RCC_CFGR3_I2C1SW_HSI (0x00000000U) /*!< HSI oscillator clock used as I2C1 clock source */
  7803. #define RCC_CFGR3_I2C1SW_SYSCLK_Pos (4U)
  7804. #define RCC_CFGR3_I2C1SW_SYSCLK_Msk (0x1U << RCC_CFGR3_I2C1SW_SYSCLK_Pos) /*!< 0x00000010 */
  7805. #define RCC_CFGR3_I2C1SW_SYSCLK RCC_CFGR3_I2C1SW_SYSCLK_Msk /*!< System clock selected as I2C1 clock source */
  7806. #define RCC_CFGR3_I2C2SW_HSI (0x00000000U) /*!< HSI oscillator clock used as I2C2 clock source */
  7807. #define RCC_CFGR3_I2C2SW_SYSCLK_Pos (5U)
  7808. #define RCC_CFGR3_I2C2SW_SYSCLK_Msk (0x1U << RCC_CFGR3_I2C2SW_SYSCLK_Pos) /*!< 0x00000020 */
  7809. #define RCC_CFGR3_I2C2SW_SYSCLK RCC_CFGR3_I2C2SW_SYSCLK_Msk /*!< System clock selected as I2C2 clock source */
  7810. #define RCC_CFGR3_CECSW_Pos (6U)
  7811. #define RCC_CFGR3_CECSW_Msk (0x1U << RCC_CFGR3_CECSW_Pos) /*!< 0x00000040 */
  7812. #define RCC_CFGR3_CECSW RCC_CFGR3_CECSW_Msk /*!< CECSW bits */
  7813. #define RCC_CFGR3_CECSW_HSI_DIV244 (0x00000000U) /*!< HSI clock divided by 244 selected as HDMI CEC entry clock source */
  7814. #define RCC_CFGR3_CECSW_LSE_Pos (6U)
  7815. #define RCC_CFGR3_CECSW_LSE_Msk (0x1U << RCC_CFGR3_CECSW_LSE_Pos) /*!< 0x00000040 */
  7816. #define RCC_CFGR3_CECSW_LSE RCC_CFGR3_CECSW_LSE_Msk /*!< LSE clock selected as HDMI CEC entry clock source */
  7817. #define RCC_CFGR3_USART2SW_Pos (16U)
  7818. #define RCC_CFGR3_USART2SW_Msk (0x3U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00030000 */
  7819. #define RCC_CFGR3_USART2SW RCC_CFGR3_USART2SW_Msk /*!< USART2SW[1:0] bits */
  7820. #define RCC_CFGR3_USART2SW_0 (0x1U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00010000 */
  7821. #define RCC_CFGR3_USART2SW_1 (0x2U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00020000 */
  7822. #define RCC_CFGR3_USART2SW_PCLK (0x00000000U) /*!< PCLK1 clock used as USART2 clock source */
  7823. #define RCC_CFGR3_USART2SW_SYSCLK (0x00010000U) /*!< System clock selected as USART2 clock source */
  7824. #define RCC_CFGR3_USART2SW_LSE (0x00020000U) /*!< LSE oscillator clock used as USART2 clock source */
  7825. #define RCC_CFGR3_USART2SW_HSI (0x00030000U) /*!< HSI oscillator clock used as USART2 clock source */
  7826. #define RCC_CFGR3_USART3SW_Pos (18U)
  7827. #define RCC_CFGR3_USART3SW_Msk (0x3U << RCC_CFGR3_USART3SW_Pos) /*!< 0x000C0000 */
  7828. #define RCC_CFGR3_USART3SW RCC_CFGR3_USART3SW_Msk /*!< USART3SW[1:0] bits */
  7829. #define RCC_CFGR3_USART3SW_0 (0x1U << RCC_CFGR3_USART3SW_Pos) /*!< 0x00040000 */
  7830. #define RCC_CFGR3_USART3SW_1 (0x2U << RCC_CFGR3_USART3SW_Pos) /*!< 0x00080000 */
  7831. #define RCC_CFGR3_USART3SW_PCLK (0x00000000U) /*!< PCLK1 clock used as USART3 clock source */
  7832. #define RCC_CFGR3_USART3SW_SYSCLK (0x00040000U) /*!< System clock selected as USART3 clock source */
  7833. #define RCC_CFGR3_USART3SW_LSE (0x00080000U) /*!< LSE oscillator clock used as USART3 clock source */
  7834. #define RCC_CFGR3_USART3SW_HSI (0x000C0000U) /*!< HSI oscillator clock used as USART3 clock source */
  7835. /******************************************************************************/
  7836. /* */
  7837. /* Real-Time Clock (RTC) */
  7838. /* */
  7839. /******************************************************************************/
  7840. /*
  7841. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  7842. */
  7843. #define RTC_TAMPER1_SUPPORT /*!< TAMPER 1 feature support */
  7844. #define RTC_TAMPER2_SUPPORT /*!< TAMPER 2 feature support */
  7845. #define RTC_TAMPER3_SUPPORT /*!< TAMPER 3 feature support */
  7846. #define RTC_BACKUP_SUPPORT /*!< BACKUP register feature support */
  7847. #define RTC_WAKEUP_SUPPORT /*!< WAKEUP feature support */
  7848. /******************** Bits definition for RTC_TR register *******************/
  7849. #define RTC_TR_PM_Pos (22U)
  7850. #define RTC_TR_PM_Msk (0x1U << RTC_TR_PM_Pos) /*!< 0x00400000 */
  7851. #define RTC_TR_PM RTC_TR_PM_Msk
  7852. #define RTC_TR_HT_Pos (20U)
  7853. #define RTC_TR_HT_Msk (0x3U << RTC_TR_HT_Pos) /*!< 0x00300000 */
  7854. #define RTC_TR_HT RTC_TR_HT_Msk
  7855. #define RTC_TR_HT_0 (0x1U << RTC_TR_HT_Pos) /*!< 0x00100000 */
  7856. #define RTC_TR_HT_1 (0x2U << RTC_TR_HT_Pos) /*!< 0x00200000 */
  7857. #define RTC_TR_HU_Pos (16U)
  7858. #define RTC_TR_HU_Msk (0xFU << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  7859. #define RTC_TR_HU RTC_TR_HU_Msk
  7860. #define RTC_TR_HU_0 (0x1U << RTC_TR_HU_Pos) /*!< 0x00010000 */
  7861. #define RTC_TR_HU_1 (0x2U << RTC_TR_HU_Pos) /*!< 0x00020000 */
  7862. #define RTC_TR_HU_2 (0x4U << RTC_TR_HU_Pos) /*!< 0x00040000 */
  7863. #define RTC_TR_HU_3 (0x8U << RTC_TR_HU_Pos) /*!< 0x00080000 */
  7864. #define RTC_TR_MNT_Pos (12U)
  7865. #define RTC_TR_MNT_Msk (0x7U << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  7866. #define RTC_TR_MNT RTC_TR_MNT_Msk
  7867. #define RTC_TR_MNT_0 (0x1U << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  7868. #define RTC_TR_MNT_1 (0x2U << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  7869. #define RTC_TR_MNT_2 (0x4U << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  7870. #define RTC_TR_MNU_Pos (8U)
  7871. #define RTC_TR_MNU_Msk (0xFU << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  7872. #define RTC_TR_MNU RTC_TR_MNU_Msk
  7873. #define RTC_TR_MNU_0 (0x1U << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  7874. #define RTC_TR_MNU_1 (0x2U << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  7875. #define RTC_TR_MNU_2 (0x4U << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  7876. #define RTC_TR_MNU_3 (0x8U << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  7877. #define RTC_TR_ST_Pos (4U)
  7878. #define RTC_TR_ST_Msk (0x7U << RTC_TR_ST_Pos) /*!< 0x00000070 */
  7879. #define RTC_TR_ST RTC_TR_ST_Msk
  7880. #define RTC_TR_ST_0 (0x1U << RTC_TR_ST_Pos) /*!< 0x00000010 */
  7881. #define RTC_TR_ST_1 (0x2U << RTC_TR_ST_Pos) /*!< 0x00000020 */
  7882. #define RTC_TR_ST_2 (0x4U << RTC_TR_ST_Pos) /*!< 0x00000040 */
  7883. #define RTC_TR_SU_Pos (0U)
  7884. #define RTC_TR_SU_Msk (0xFU << RTC_TR_SU_Pos) /*!< 0x0000000F */
  7885. #define RTC_TR_SU RTC_TR_SU_Msk
  7886. #define RTC_TR_SU_0 (0x1U << RTC_TR_SU_Pos) /*!< 0x00000001 */
  7887. #define RTC_TR_SU_1 (0x2U << RTC_TR_SU_Pos) /*!< 0x00000002 */
  7888. #define RTC_TR_SU_2 (0x4U << RTC_TR_SU_Pos) /*!< 0x00000004 */
  7889. #define RTC_TR_SU_3 (0x8U << RTC_TR_SU_Pos) /*!< 0x00000008 */
  7890. /******************** Bits definition for RTC_DR register *******************/
  7891. #define RTC_DR_YT_Pos (20U)
  7892. #define RTC_DR_YT_Msk (0xFU << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  7893. #define RTC_DR_YT RTC_DR_YT_Msk
  7894. #define RTC_DR_YT_0 (0x1U << RTC_DR_YT_Pos) /*!< 0x00100000 */
  7895. #define RTC_DR_YT_1 (0x2U << RTC_DR_YT_Pos) /*!< 0x00200000 */
  7896. #define RTC_DR_YT_2 (0x4U << RTC_DR_YT_Pos) /*!< 0x00400000 */
  7897. #define RTC_DR_YT_3 (0x8U << RTC_DR_YT_Pos) /*!< 0x00800000 */
  7898. #define RTC_DR_YU_Pos (16U)
  7899. #define RTC_DR_YU_Msk (0xFU << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  7900. #define RTC_DR_YU RTC_DR_YU_Msk
  7901. #define RTC_DR_YU_0 (0x1U << RTC_DR_YU_Pos) /*!< 0x00010000 */
  7902. #define RTC_DR_YU_1 (0x2U << RTC_DR_YU_Pos) /*!< 0x00020000 */
  7903. #define RTC_DR_YU_2 (0x4U << RTC_DR_YU_Pos) /*!< 0x00040000 */
  7904. #define RTC_DR_YU_3 (0x8U << RTC_DR_YU_Pos) /*!< 0x00080000 */
  7905. #define RTC_DR_WDU_Pos (13U)
  7906. #define RTC_DR_WDU_Msk (0x7U << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  7907. #define RTC_DR_WDU RTC_DR_WDU_Msk
  7908. #define RTC_DR_WDU_0 (0x1U << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  7909. #define RTC_DR_WDU_1 (0x2U << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  7910. #define RTC_DR_WDU_2 (0x4U << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  7911. #define RTC_DR_MT_Pos (12U)
  7912. #define RTC_DR_MT_Msk (0x1U << RTC_DR_MT_Pos) /*!< 0x00001000 */
  7913. #define RTC_DR_MT RTC_DR_MT_Msk
  7914. #define RTC_DR_MU_Pos (8U)
  7915. #define RTC_DR_MU_Msk (0xFU << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  7916. #define RTC_DR_MU RTC_DR_MU_Msk
  7917. #define RTC_DR_MU_0 (0x1U << RTC_DR_MU_Pos) /*!< 0x00000100 */
  7918. #define RTC_DR_MU_1 (0x2U << RTC_DR_MU_Pos) /*!< 0x00000200 */
  7919. #define RTC_DR_MU_2 (0x4U << RTC_DR_MU_Pos) /*!< 0x00000400 */
  7920. #define RTC_DR_MU_3 (0x8U << RTC_DR_MU_Pos) /*!< 0x00000800 */
  7921. #define RTC_DR_DT_Pos (4U)
  7922. #define RTC_DR_DT_Msk (0x3U << RTC_DR_DT_Pos) /*!< 0x00000030 */
  7923. #define RTC_DR_DT RTC_DR_DT_Msk
  7924. #define RTC_DR_DT_0 (0x1U << RTC_DR_DT_Pos) /*!< 0x00000010 */
  7925. #define RTC_DR_DT_1 (0x2U << RTC_DR_DT_Pos) /*!< 0x00000020 */
  7926. #define RTC_DR_DU_Pos (0U)
  7927. #define RTC_DR_DU_Msk (0xFU << RTC_DR_DU_Pos) /*!< 0x0000000F */
  7928. #define RTC_DR_DU RTC_DR_DU_Msk
  7929. #define RTC_DR_DU_0 (0x1U << RTC_DR_DU_Pos) /*!< 0x00000001 */
  7930. #define RTC_DR_DU_1 (0x2U << RTC_DR_DU_Pos) /*!< 0x00000002 */
  7931. #define RTC_DR_DU_2 (0x4U << RTC_DR_DU_Pos) /*!< 0x00000004 */
  7932. #define RTC_DR_DU_3 (0x8U << RTC_DR_DU_Pos) /*!< 0x00000008 */
  7933. /******************** Bits definition for RTC_CR register *******************/
  7934. #define RTC_CR_COE_Pos (23U)
  7935. #define RTC_CR_COE_Msk (0x1U << RTC_CR_COE_Pos) /*!< 0x00800000 */
  7936. #define RTC_CR_COE RTC_CR_COE_Msk
  7937. #define RTC_CR_OSEL_Pos (21U)
  7938. #define RTC_CR_OSEL_Msk (0x3U << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  7939. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  7940. #define RTC_CR_OSEL_0 (0x1U << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  7941. #define RTC_CR_OSEL_1 (0x2U << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  7942. #define RTC_CR_POL_Pos (20U)
  7943. #define RTC_CR_POL_Msk (0x1U << RTC_CR_POL_Pos) /*!< 0x00100000 */
  7944. #define RTC_CR_POL RTC_CR_POL_Msk
  7945. #define RTC_CR_COSEL_Pos (19U)
  7946. #define RTC_CR_COSEL_Msk (0x1U << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  7947. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  7948. #define RTC_CR_BCK_Pos (18U)
  7949. #define RTC_CR_BCK_Msk (0x1U << RTC_CR_BCK_Pos) /*!< 0x00040000 */
  7950. #define RTC_CR_BCK RTC_CR_BCK_Msk
  7951. #define RTC_CR_SUB1H_Pos (17U)
  7952. #define RTC_CR_SUB1H_Msk (0x1U << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  7953. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  7954. #define RTC_CR_ADD1H_Pos (16U)
  7955. #define RTC_CR_ADD1H_Msk (0x1U << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  7956. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  7957. #define RTC_CR_TSIE_Pos (15U)
  7958. #define RTC_CR_TSIE_Msk (0x1U << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  7959. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  7960. #define RTC_CR_WUTIE_Pos (14U)
  7961. #define RTC_CR_WUTIE_Msk (0x1U << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  7962. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  7963. #define RTC_CR_ALRBIE_Pos (13U)
  7964. #define RTC_CR_ALRBIE_Msk (0x1U << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */
  7965. #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk
  7966. #define RTC_CR_ALRAIE_Pos (12U)
  7967. #define RTC_CR_ALRAIE_Msk (0x1U << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  7968. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  7969. #define RTC_CR_TSE_Pos (11U)
  7970. #define RTC_CR_TSE_Msk (0x1U << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  7971. #define RTC_CR_TSE RTC_CR_TSE_Msk
  7972. #define RTC_CR_WUTE_Pos (10U)
  7973. #define RTC_CR_WUTE_Msk (0x1U << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  7974. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  7975. #define RTC_CR_ALRBE_Pos (9U)
  7976. #define RTC_CR_ALRBE_Msk (0x1U << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */
  7977. #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk
  7978. #define RTC_CR_ALRAE_Pos (8U)
  7979. #define RTC_CR_ALRAE_Msk (0x1U << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  7980. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  7981. #define RTC_CR_FMT_Pos (6U)
  7982. #define RTC_CR_FMT_Msk (0x1U << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  7983. #define RTC_CR_FMT RTC_CR_FMT_Msk
  7984. #define RTC_CR_BYPSHAD_Pos (5U)
  7985. #define RTC_CR_BYPSHAD_Msk (0x1U << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  7986. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  7987. #define RTC_CR_REFCKON_Pos (4U)
  7988. #define RTC_CR_REFCKON_Msk (0x1U << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  7989. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  7990. #define RTC_CR_TSEDGE_Pos (3U)
  7991. #define RTC_CR_TSEDGE_Msk (0x1U << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  7992. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  7993. #define RTC_CR_WUCKSEL_Pos (0U)
  7994. #define RTC_CR_WUCKSEL_Msk (0x7U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  7995. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  7996. #define RTC_CR_WUCKSEL_0 (0x1U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  7997. #define RTC_CR_WUCKSEL_1 (0x2U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  7998. #define RTC_CR_WUCKSEL_2 (0x4U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  7999. /******************** Bits definition for RTC_ISR register ******************/
  8000. #define RTC_ISR_RECALPF_Pos (16U)
  8001. #define RTC_ISR_RECALPF_Msk (0x1U << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */
  8002. #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk
  8003. #define RTC_ISR_TAMP3F_Pos (15U)
  8004. #define RTC_ISR_TAMP3F_Msk (0x1U << RTC_ISR_TAMP3F_Pos) /*!< 0x00008000 */
  8005. #define RTC_ISR_TAMP3F RTC_ISR_TAMP3F_Msk
  8006. #define RTC_ISR_TAMP2F_Pos (14U)
  8007. #define RTC_ISR_TAMP2F_Msk (0x1U << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */
  8008. #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk
  8009. #define RTC_ISR_TAMP1F_Pos (13U)
  8010. #define RTC_ISR_TAMP1F_Msk (0x1U << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */
  8011. #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk
  8012. #define RTC_ISR_TSOVF_Pos (12U)
  8013. #define RTC_ISR_TSOVF_Msk (0x1U << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */
  8014. #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk
  8015. #define RTC_ISR_TSF_Pos (11U)
  8016. #define RTC_ISR_TSF_Msk (0x1U << RTC_ISR_TSF_Pos) /*!< 0x00000800 */
  8017. #define RTC_ISR_TSF RTC_ISR_TSF_Msk
  8018. #define RTC_ISR_WUTF_Pos (10U)
  8019. #define RTC_ISR_WUTF_Msk (0x1U << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */
  8020. #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk
  8021. #define RTC_ISR_ALRBF_Pos (9U)
  8022. #define RTC_ISR_ALRBF_Msk (0x1U << RTC_ISR_ALRBF_Pos) /*!< 0x00000200 */
  8023. #define RTC_ISR_ALRBF RTC_ISR_ALRBF_Msk
  8024. #define RTC_ISR_ALRAF_Pos (8U)
  8025. #define RTC_ISR_ALRAF_Msk (0x1U << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */
  8026. #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk
  8027. #define RTC_ISR_INIT_Pos (7U)
  8028. #define RTC_ISR_INIT_Msk (0x1U << RTC_ISR_INIT_Pos) /*!< 0x00000080 */
  8029. #define RTC_ISR_INIT RTC_ISR_INIT_Msk
  8030. #define RTC_ISR_INITF_Pos (6U)
  8031. #define RTC_ISR_INITF_Msk (0x1U << RTC_ISR_INITF_Pos) /*!< 0x00000040 */
  8032. #define RTC_ISR_INITF RTC_ISR_INITF_Msk
  8033. #define RTC_ISR_RSF_Pos (5U)
  8034. #define RTC_ISR_RSF_Msk (0x1U << RTC_ISR_RSF_Pos) /*!< 0x00000020 */
  8035. #define RTC_ISR_RSF RTC_ISR_RSF_Msk
  8036. #define RTC_ISR_INITS_Pos (4U)
  8037. #define RTC_ISR_INITS_Msk (0x1U << RTC_ISR_INITS_Pos) /*!< 0x00000010 */
  8038. #define RTC_ISR_INITS RTC_ISR_INITS_Msk
  8039. #define RTC_ISR_SHPF_Pos (3U)
  8040. #define RTC_ISR_SHPF_Msk (0x1U << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */
  8041. #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk
  8042. #define RTC_ISR_WUTWF_Pos (2U)
  8043. #define RTC_ISR_WUTWF_Msk (0x1U << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */
  8044. #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk
  8045. #define RTC_ISR_ALRBWF_Pos (1U)
  8046. #define RTC_ISR_ALRBWF_Msk (0x1U << RTC_ISR_ALRBWF_Pos) /*!< 0x00000002 */
  8047. #define RTC_ISR_ALRBWF RTC_ISR_ALRBWF_Msk
  8048. #define RTC_ISR_ALRAWF_Pos (0U)
  8049. #define RTC_ISR_ALRAWF_Msk (0x1U << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */
  8050. #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk
  8051. /******************** Bits definition for RTC_PRER register *****************/
  8052. #define RTC_PRER_PREDIV_A_Pos (16U)
  8053. #define RTC_PRER_PREDIV_A_Msk (0x7FU << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  8054. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  8055. #define RTC_PRER_PREDIV_S_Pos (0U)
  8056. #define RTC_PRER_PREDIV_S_Msk (0x7FFFU << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  8057. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  8058. /******************** Bits definition for RTC_WUTR register *****************/
  8059. #define RTC_WUTR_WUT_Pos (0U)
  8060. #define RTC_WUTR_WUT_Msk (0xFFFFU << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  8061. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  8062. /******************** Bits definition for RTC_ALRMAR register ***************/
  8063. #define RTC_ALRMAR_MSK4_Pos (31U)
  8064. #define RTC_ALRMAR_MSK4_Msk (0x1U << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  8065. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  8066. #define RTC_ALRMAR_WDSEL_Pos (30U)
  8067. #define RTC_ALRMAR_WDSEL_Msk (0x1U << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  8068. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  8069. #define RTC_ALRMAR_DT_Pos (28U)
  8070. #define RTC_ALRMAR_DT_Msk (0x3U << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  8071. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  8072. #define RTC_ALRMAR_DT_0 (0x1U << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  8073. #define RTC_ALRMAR_DT_1 (0x2U << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  8074. #define RTC_ALRMAR_DU_Pos (24U)
  8075. #define RTC_ALRMAR_DU_Msk (0xFU << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  8076. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  8077. #define RTC_ALRMAR_DU_0 (0x1U << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  8078. #define RTC_ALRMAR_DU_1 (0x2U << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  8079. #define RTC_ALRMAR_DU_2 (0x4U << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  8080. #define RTC_ALRMAR_DU_3 (0x8U << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  8081. #define RTC_ALRMAR_MSK3_Pos (23U)
  8082. #define RTC_ALRMAR_MSK3_Msk (0x1U << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  8083. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  8084. #define RTC_ALRMAR_PM_Pos (22U)
  8085. #define RTC_ALRMAR_PM_Msk (0x1U << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  8086. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  8087. #define RTC_ALRMAR_HT_Pos (20U)
  8088. #define RTC_ALRMAR_HT_Msk (0x3U << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  8089. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  8090. #define RTC_ALRMAR_HT_0 (0x1U << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  8091. #define RTC_ALRMAR_HT_1 (0x2U << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  8092. #define RTC_ALRMAR_HU_Pos (16U)
  8093. #define RTC_ALRMAR_HU_Msk (0xFU << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  8094. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  8095. #define RTC_ALRMAR_HU_0 (0x1U << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  8096. #define RTC_ALRMAR_HU_1 (0x2U << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  8097. #define RTC_ALRMAR_HU_2 (0x4U << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  8098. #define RTC_ALRMAR_HU_3 (0x8U << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  8099. #define RTC_ALRMAR_MSK2_Pos (15U)
  8100. #define RTC_ALRMAR_MSK2_Msk (0x1U << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  8101. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  8102. #define RTC_ALRMAR_MNT_Pos (12U)
  8103. #define RTC_ALRMAR_MNT_Msk (0x7U << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  8104. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  8105. #define RTC_ALRMAR_MNT_0 (0x1U << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  8106. #define RTC_ALRMAR_MNT_1 (0x2U << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  8107. #define RTC_ALRMAR_MNT_2 (0x4U << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  8108. #define RTC_ALRMAR_MNU_Pos (8U)
  8109. #define RTC_ALRMAR_MNU_Msk (0xFU << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  8110. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  8111. #define RTC_ALRMAR_MNU_0 (0x1U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  8112. #define RTC_ALRMAR_MNU_1 (0x2U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  8113. #define RTC_ALRMAR_MNU_2 (0x4U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  8114. #define RTC_ALRMAR_MNU_3 (0x8U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  8115. #define RTC_ALRMAR_MSK1_Pos (7U)
  8116. #define RTC_ALRMAR_MSK1_Msk (0x1U << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  8117. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  8118. #define RTC_ALRMAR_ST_Pos (4U)
  8119. #define RTC_ALRMAR_ST_Msk (0x7U << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  8120. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  8121. #define RTC_ALRMAR_ST_0 (0x1U << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  8122. #define RTC_ALRMAR_ST_1 (0x2U << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  8123. #define RTC_ALRMAR_ST_2 (0x4U << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  8124. #define RTC_ALRMAR_SU_Pos (0U)
  8125. #define RTC_ALRMAR_SU_Msk (0xFU << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  8126. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  8127. #define RTC_ALRMAR_SU_0 (0x1U << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  8128. #define RTC_ALRMAR_SU_1 (0x2U << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  8129. #define RTC_ALRMAR_SU_2 (0x4U << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  8130. #define RTC_ALRMAR_SU_3 (0x8U << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  8131. /******************** Bits definition for RTC_ALRMBR register ***************/
  8132. #define RTC_ALRMBR_MSK4_Pos (31U)
  8133. #define RTC_ALRMBR_MSK4_Msk (0x1U << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */
  8134. #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk
  8135. #define RTC_ALRMBR_WDSEL_Pos (30U)
  8136. #define RTC_ALRMBR_WDSEL_Msk (0x1U << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */
  8137. #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk
  8138. #define RTC_ALRMBR_DT_Pos (28U)
  8139. #define RTC_ALRMBR_DT_Msk (0x3U << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */
  8140. #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk
  8141. #define RTC_ALRMBR_DT_0 (0x1U << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */
  8142. #define RTC_ALRMBR_DT_1 (0x2U << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */
  8143. #define RTC_ALRMBR_DU_Pos (24U)
  8144. #define RTC_ALRMBR_DU_Msk (0xFU << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */
  8145. #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk
  8146. #define RTC_ALRMBR_DU_0 (0x1U << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */
  8147. #define RTC_ALRMBR_DU_1 (0x2U << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */
  8148. #define RTC_ALRMBR_DU_2 (0x4U << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */
  8149. #define RTC_ALRMBR_DU_3 (0x8U << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */
  8150. #define RTC_ALRMBR_MSK3_Pos (23U)
  8151. #define RTC_ALRMBR_MSK3_Msk (0x1U << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */
  8152. #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk
  8153. #define RTC_ALRMBR_PM_Pos (22U)
  8154. #define RTC_ALRMBR_PM_Msk (0x1U << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */
  8155. #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk
  8156. #define RTC_ALRMBR_HT_Pos (20U)
  8157. #define RTC_ALRMBR_HT_Msk (0x3U << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */
  8158. #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk
  8159. #define RTC_ALRMBR_HT_0 (0x1U << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */
  8160. #define RTC_ALRMBR_HT_1 (0x2U << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */
  8161. #define RTC_ALRMBR_HU_Pos (16U)
  8162. #define RTC_ALRMBR_HU_Msk (0xFU << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */
  8163. #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk
  8164. #define RTC_ALRMBR_HU_0 (0x1U << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */
  8165. #define RTC_ALRMBR_HU_1 (0x2U << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */
  8166. #define RTC_ALRMBR_HU_2 (0x4U << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */
  8167. #define RTC_ALRMBR_HU_3 (0x8U << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */
  8168. #define RTC_ALRMBR_MSK2_Pos (15U)
  8169. #define RTC_ALRMBR_MSK2_Msk (0x1U << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */
  8170. #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk
  8171. #define RTC_ALRMBR_MNT_Pos (12U)
  8172. #define RTC_ALRMBR_MNT_Msk (0x7U << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */
  8173. #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk
  8174. #define RTC_ALRMBR_MNT_0 (0x1U << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */
  8175. #define RTC_ALRMBR_MNT_1 (0x2U << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */
  8176. #define RTC_ALRMBR_MNT_2 (0x4U << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */
  8177. #define RTC_ALRMBR_MNU_Pos (8U)
  8178. #define RTC_ALRMBR_MNU_Msk (0xFU << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */
  8179. #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk
  8180. #define RTC_ALRMBR_MNU_0 (0x1U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */
  8181. #define RTC_ALRMBR_MNU_1 (0x2U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */
  8182. #define RTC_ALRMBR_MNU_2 (0x4U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */
  8183. #define RTC_ALRMBR_MNU_3 (0x8U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */
  8184. #define RTC_ALRMBR_MSK1_Pos (7U)
  8185. #define RTC_ALRMBR_MSK1_Msk (0x1U << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */
  8186. #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk
  8187. #define RTC_ALRMBR_ST_Pos (4U)
  8188. #define RTC_ALRMBR_ST_Msk (0x7U << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */
  8189. #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk
  8190. #define RTC_ALRMBR_ST_0 (0x1U << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */
  8191. #define RTC_ALRMBR_ST_1 (0x2U << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */
  8192. #define RTC_ALRMBR_ST_2 (0x4U << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */
  8193. #define RTC_ALRMBR_SU_Pos (0U)
  8194. #define RTC_ALRMBR_SU_Msk (0xFU << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */
  8195. #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk
  8196. #define RTC_ALRMBR_SU_0 (0x1U << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */
  8197. #define RTC_ALRMBR_SU_1 (0x2U << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */
  8198. #define RTC_ALRMBR_SU_2 (0x4U << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */
  8199. #define RTC_ALRMBR_SU_3 (0x8U << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */
  8200. /******************** Bits definition for RTC_WPR register ******************/
  8201. #define RTC_WPR_KEY_Pos (0U)
  8202. #define RTC_WPR_KEY_Msk (0xFFU << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  8203. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  8204. /******************** Bits definition for RTC_SSR register ******************/
  8205. #define RTC_SSR_SS_Pos (0U)
  8206. #define RTC_SSR_SS_Msk (0xFFFFU << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  8207. #define RTC_SSR_SS RTC_SSR_SS_Msk
  8208. /******************** Bits definition for RTC_SHIFTR register ***************/
  8209. #define RTC_SHIFTR_SUBFS_Pos (0U)
  8210. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFU << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  8211. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  8212. #define RTC_SHIFTR_ADD1S_Pos (31U)
  8213. #define RTC_SHIFTR_ADD1S_Msk (0x1U << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  8214. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  8215. /******************** Bits definition for RTC_TSTR register *****************/
  8216. #define RTC_TSTR_PM_Pos (22U)
  8217. #define RTC_TSTR_PM_Msk (0x1U << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  8218. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  8219. #define RTC_TSTR_HT_Pos (20U)
  8220. #define RTC_TSTR_HT_Msk (0x3U << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  8221. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  8222. #define RTC_TSTR_HT_0 (0x1U << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  8223. #define RTC_TSTR_HT_1 (0x2U << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  8224. #define RTC_TSTR_HU_Pos (16U)
  8225. #define RTC_TSTR_HU_Msk (0xFU << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  8226. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  8227. #define RTC_TSTR_HU_0 (0x1U << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  8228. #define RTC_TSTR_HU_1 (0x2U << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  8229. #define RTC_TSTR_HU_2 (0x4U << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  8230. #define RTC_TSTR_HU_3 (0x8U << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  8231. #define RTC_TSTR_MNT_Pos (12U)
  8232. #define RTC_TSTR_MNT_Msk (0x7U << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  8233. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  8234. #define RTC_TSTR_MNT_0 (0x1U << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  8235. #define RTC_TSTR_MNT_1 (0x2U << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  8236. #define RTC_TSTR_MNT_2 (0x4U << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  8237. #define RTC_TSTR_MNU_Pos (8U)
  8238. #define RTC_TSTR_MNU_Msk (0xFU << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  8239. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  8240. #define RTC_TSTR_MNU_0 (0x1U << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  8241. #define RTC_TSTR_MNU_1 (0x2U << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  8242. #define RTC_TSTR_MNU_2 (0x4U << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  8243. #define RTC_TSTR_MNU_3 (0x8U << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  8244. #define RTC_TSTR_ST_Pos (4U)
  8245. #define RTC_TSTR_ST_Msk (0x7U << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  8246. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  8247. #define RTC_TSTR_ST_0 (0x1U << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  8248. #define RTC_TSTR_ST_1 (0x2U << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  8249. #define RTC_TSTR_ST_2 (0x4U << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  8250. #define RTC_TSTR_SU_Pos (0U)
  8251. #define RTC_TSTR_SU_Msk (0xFU << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  8252. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  8253. #define RTC_TSTR_SU_0 (0x1U << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  8254. #define RTC_TSTR_SU_1 (0x2U << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  8255. #define RTC_TSTR_SU_2 (0x4U << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  8256. #define RTC_TSTR_SU_3 (0x8U << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  8257. /******************** Bits definition for RTC_TSDR register *****************/
  8258. #define RTC_TSDR_WDU_Pos (13U)
  8259. #define RTC_TSDR_WDU_Msk (0x7U << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  8260. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  8261. #define RTC_TSDR_WDU_0 (0x1U << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  8262. #define RTC_TSDR_WDU_1 (0x2U << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  8263. #define RTC_TSDR_WDU_2 (0x4U << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  8264. #define RTC_TSDR_MT_Pos (12U)
  8265. #define RTC_TSDR_MT_Msk (0x1U << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  8266. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  8267. #define RTC_TSDR_MU_Pos (8U)
  8268. #define RTC_TSDR_MU_Msk (0xFU << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  8269. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  8270. #define RTC_TSDR_MU_0 (0x1U << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  8271. #define RTC_TSDR_MU_1 (0x2U << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  8272. #define RTC_TSDR_MU_2 (0x4U << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  8273. #define RTC_TSDR_MU_3 (0x8U << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  8274. #define RTC_TSDR_DT_Pos (4U)
  8275. #define RTC_TSDR_DT_Msk (0x3U << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  8276. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  8277. #define RTC_TSDR_DT_0 (0x1U << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  8278. #define RTC_TSDR_DT_1 (0x2U << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  8279. #define RTC_TSDR_DU_Pos (0U)
  8280. #define RTC_TSDR_DU_Msk (0xFU << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  8281. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  8282. #define RTC_TSDR_DU_0 (0x1U << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  8283. #define RTC_TSDR_DU_1 (0x2U << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  8284. #define RTC_TSDR_DU_2 (0x4U << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  8285. #define RTC_TSDR_DU_3 (0x8U << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  8286. /******************** Bits definition for RTC_TSSSR register ****************/
  8287. #define RTC_TSSSR_SS_Pos (0U)
  8288. #define RTC_TSSSR_SS_Msk (0xFFFFU << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  8289. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  8290. /******************** Bits definition for RTC_CAL register *****************/
  8291. #define RTC_CALR_CALP_Pos (15U)
  8292. #define RTC_CALR_CALP_Msk (0x1U << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  8293. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  8294. #define RTC_CALR_CALW8_Pos (14U)
  8295. #define RTC_CALR_CALW8_Msk (0x1U << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  8296. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  8297. #define RTC_CALR_CALW16_Pos (13U)
  8298. #define RTC_CALR_CALW16_Msk (0x1U << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  8299. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  8300. #define RTC_CALR_CALM_Pos (0U)
  8301. #define RTC_CALR_CALM_Msk (0x1FFU << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  8302. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  8303. #define RTC_CALR_CALM_0 (0x001U << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  8304. #define RTC_CALR_CALM_1 (0x002U << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  8305. #define RTC_CALR_CALM_2 (0x004U << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  8306. #define RTC_CALR_CALM_3 (0x008U << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  8307. #define RTC_CALR_CALM_4 (0x010U << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  8308. #define RTC_CALR_CALM_5 (0x020U << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  8309. #define RTC_CALR_CALM_6 (0x040U << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  8310. #define RTC_CALR_CALM_7 (0x080U << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  8311. #define RTC_CALR_CALM_8 (0x100U << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  8312. /******************** Bits definition for RTC_TAFCR register ****************/
  8313. #define RTC_TAFCR_PC15MODE_Pos (23U)
  8314. #define RTC_TAFCR_PC15MODE_Msk (0x1U << RTC_TAFCR_PC15MODE_Pos) /*!< 0x00800000 */
  8315. #define RTC_TAFCR_PC15MODE RTC_TAFCR_PC15MODE_Msk
  8316. #define RTC_TAFCR_PC15VALUE_Pos (22U)
  8317. #define RTC_TAFCR_PC15VALUE_Msk (0x1U << RTC_TAFCR_PC15VALUE_Pos) /*!< 0x00400000 */
  8318. #define RTC_TAFCR_PC15VALUE RTC_TAFCR_PC15VALUE_Msk
  8319. #define RTC_TAFCR_PC14MODE_Pos (21U)
  8320. #define RTC_TAFCR_PC14MODE_Msk (0x1U << RTC_TAFCR_PC14MODE_Pos) /*!< 0x00200000 */
  8321. #define RTC_TAFCR_PC14MODE RTC_TAFCR_PC14MODE_Msk
  8322. #define RTC_TAFCR_PC14VALUE_Pos (20U)
  8323. #define RTC_TAFCR_PC14VALUE_Msk (0x1U << RTC_TAFCR_PC14VALUE_Pos) /*!< 0x00100000 */
  8324. #define RTC_TAFCR_PC14VALUE RTC_TAFCR_PC14VALUE_Msk
  8325. #define RTC_TAFCR_PC13MODE_Pos (19U)
  8326. #define RTC_TAFCR_PC13MODE_Msk (0x1U << RTC_TAFCR_PC13MODE_Pos) /*!< 0x00080000 */
  8327. #define RTC_TAFCR_PC13MODE RTC_TAFCR_PC13MODE_Msk
  8328. #define RTC_TAFCR_PC13VALUE_Pos (18U)
  8329. #define RTC_TAFCR_PC13VALUE_Msk (0x1U << RTC_TAFCR_PC13VALUE_Pos) /*!< 0x00040000 */
  8330. #define RTC_TAFCR_PC13VALUE RTC_TAFCR_PC13VALUE_Msk
  8331. #define RTC_TAFCR_TAMPPUDIS_Pos (15U)
  8332. #define RTC_TAFCR_TAMPPUDIS_Msk (0x1U << RTC_TAFCR_TAMPPUDIS_Pos) /*!< 0x00008000 */
  8333. #define RTC_TAFCR_TAMPPUDIS RTC_TAFCR_TAMPPUDIS_Msk
  8334. #define RTC_TAFCR_TAMPPRCH_Pos (13U)
  8335. #define RTC_TAFCR_TAMPPRCH_Msk (0x3U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00006000 */
  8336. #define RTC_TAFCR_TAMPPRCH RTC_TAFCR_TAMPPRCH_Msk
  8337. #define RTC_TAFCR_TAMPPRCH_0 (0x1U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00002000 */
  8338. #define RTC_TAFCR_TAMPPRCH_1 (0x2U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00004000 */
  8339. #define RTC_TAFCR_TAMPFLT_Pos (11U)
  8340. #define RTC_TAFCR_TAMPFLT_Msk (0x3U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001800 */
  8341. #define RTC_TAFCR_TAMPFLT RTC_TAFCR_TAMPFLT_Msk
  8342. #define RTC_TAFCR_TAMPFLT_0 (0x1U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00000800 */
  8343. #define RTC_TAFCR_TAMPFLT_1 (0x2U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001000 */
  8344. #define RTC_TAFCR_TAMPFREQ_Pos (8U)
  8345. #define RTC_TAFCR_TAMPFREQ_Msk (0x7U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000700 */
  8346. #define RTC_TAFCR_TAMPFREQ RTC_TAFCR_TAMPFREQ_Msk
  8347. #define RTC_TAFCR_TAMPFREQ_0 (0x1U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000100 */
  8348. #define RTC_TAFCR_TAMPFREQ_1 (0x2U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000200 */
  8349. #define RTC_TAFCR_TAMPFREQ_2 (0x4U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000400 */
  8350. #define RTC_TAFCR_TAMPTS_Pos (7U)
  8351. #define RTC_TAFCR_TAMPTS_Msk (0x1U << RTC_TAFCR_TAMPTS_Pos) /*!< 0x00000080 */
  8352. #define RTC_TAFCR_TAMPTS RTC_TAFCR_TAMPTS_Msk
  8353. #define RTC_TAFCR_TAMP3TRG_Pos (6U)
  8354. #define RTC_TAFCR_TAMP3TRG_Msk (0x1U << RTC_TAFCR_TAMP3TRG_Pos) /*!< 0x00000040 */
  8355. #define RTC_TAFCR_TAMP3TRG RTC_TAFCR_TAMP3TRG_Msk
  8356. #define RTC_TAFCR_TAMP3E_Pos (5U)
  8357. #define RTC_TAFCR_TAMP3E_Msk (0x1U << RTC_TAFCR_TAMP3E_Pos) /*!< 0x00000020 */
  8358. #define RTC_TAFCR_TAMP3E RTC_TAFCR_TAMP3E_Msk
  8359. #define RTC_TAFCR_TAMP2TRG_Pos (4U)
  8360. #define RTC_TAFCR_TAMP2TRG_Msk (0x1U << RTC_TAFCR_TAMP2TRG_Pos) /*!< 0x00000010 */
  8361. #define RTC_TAFCR_TAMP2TRG RTC_TAFCR_TAMP2TRG_Msk
  8362. #define RTC_TAFCR_TAMP2E_Pos (3U)
  8363. #define RTC_TAFCR_TAMP2E_Msk (0x1U << RTC_TAFCR_TAMP2E_Pos) /*!< 0x00000008 */
  8364. #define RTC_TAFCR_TAMP2E RTC_TAFCR_TAMP2E_Msk
  8365. #define RTC_TAFCR_TAMPIE_Pos (2U)
  8366. #define RTC_TAFCR_TAMPIE_Msk (0x1U << RTC_TAFCR_TAMPIE_Pos) /*!< 0x00000004 */
  8367. #define RTC_TAFCR_TAMPIE RTC_TAFCR_TAMPIE_Msk
  8368. #define RTC_TAFCR_TAMP1TRG_Pos (1U)
  8369. #define RTC_TAFCR_TAMP1TRG_Msk (0x1U << RTC_TAFCR_TAMP1TRG_Pos) /*!< 0x00000002 */
  8370. #define RTC_TAFCR_TAMP1TRG RTC_TAFCR_TAMP1TRG_Msk
  8371. #define RTC_TAFCR_TAMP1E_Pos (0U)
  8372. #define RTC_TAFCR_TAMP1E_Msk (0x1U << RTC_TAFCR_TAMP1E_Pos) /*!< 0x00000001 */
  8373. #define RTC_TAFCR_TAMP1E RTC_TAFCR_TAMP1E_Msk
  8374. /* Reference defines */
  8375. #define RTC_TAFCR_ALARMOUTTYPE RTC_TAFCR_PC13VALUE
  8376. /******************** Bits definition for RTC_ALRMASSR register *************/
  8377. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  8378. #define RTC_ALRMASSR_MASKSS_Msk (0xFU << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  8379. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  8380. #define RTC_ALRMASSR_MASKSS_0 (0x1U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  8381. #define RTC_ALRMASSR_MASKSS_1 (0x2U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  8382. #define RTC_ALRMASSR_MASKSS_2 (0x4U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  8383. #define RTC_ALRMASSR_MASKSS_3 (0x8U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  8384. #define RTC_ALRMASSR_SS_Pos (0U)
  8385. #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  8386. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  8387. /******************** Bits definition for RTC_ALRMBSSR register *************/
  8388. #define RTC_ALRMBSSR_MASKSS_Pos (24U)
  8389. #define RTC_ALRMBSSR_MASKSS_Msk (0xFU << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */
  8390. #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk
  8391. #define RTC_ALRMBSSR_MASKSS_0 (0x1U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */
  8392. #define RTC_ALRMBSSR_MASKSS_1 (0x2U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */
  8393. #define RTC_ALRMBSSR_MASKSS_2 (0x4U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */
  8394. #define RTC_ALRMBSSR_MASKSS_3 (0x8U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */
  8395. #define RTC_ALRMBSSR_SS_Pos (0U)
  8396. #define RTC_ALRMBSSR_SS_Msk (0x7FFFU << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */
  8397. #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk
  8398. /******************** Bits definition for RTC_BKP0R register ****************/
  8399. #define RTC_BKP0R_Pos (0U)
  8400. #define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  8401. #define RTC_BKP0R RTC_BKP0R_Msk
  8402. /******************** Bits definition for RTC_BKP1R register ****************/
  8403. #define RTC_BKP1R_Pos (0U)
  8404. #define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  8405. #define RTC_BKP1R RTC_BKP1R_Msk
  8406. /******************** Bits definition for RTC_BKP2R register ****************/
  8407. #define RTC_BKP2R_Pos (0U)
  8408. #define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  8409. #define RTC_BKP2R RTC_BKP2R_Msk
  8410. /******************** Bits definition for RTC_BKP3R register ****************/
  8411. #define RTC_BKP3R_Pos (0U)
  8412. #define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  8413. #define RTC_BKP3R RTC_BKP3R_Msk
  8414. /******************** Bits definition for RTC_BKP4R register ****************/
  8415. #define RTC_BKP4R_Pos (0U)
  8416. #define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  8417. #define RTC_BKP4R RTC_BKP4R_Msk
  8418. /******************** Bits definition for RTC_BKP5R register ****************/
  8419. #define RTC_BKP5R_Pos (0U)
  8420. #define RTC_BKP5R_Msk (0xFFFFFFFFU << RTC_BKP5R_Pos) /*!< 0xFFFFFFFF */
  8421. #define RTC_BKP5R RTC_BKP5R_Msk
  8422. /******************** Bits definition for RTC_BKP6R register ****************/
  8423. #define RTC_BKP6R_Pos (0U)
  8424. #define RTC_BKP6R_Msk (0xFFFFFFFFU << RTC_BKP6R_Pos) /*!< 0xFFFFFFFF */
  8425. #define RTC_BKP6R RTC_BKP6R_Msk
  8426. /******************** Bits definition for RTC_BKP7R register ****************/
  8427. #define RTC_BKP7R_Pos (0U)
  8428. #define RTC_BKP7R_Msk (0xFFFFFFFFU << RTC_BKP7R_Pos) /*!< 0xFFFFFFFF */
  8429. #define RTC_BKP7R RTC_BKP7R_Msk
  8430. /******************** Bits definition for RTC_BKP8R register ****************/
  8431. #define RTC_BKP8R_Pos (0U)
  8432. #define RTC_BKP8R_Msk (0xFFFFFFFFU << RTC_BKP8R_Pos) /*!< 0xFFFFFFFF */
  8433. #define RTC_BKP8R RTC_BKP8R_Msk
  8434. /******************** Bits definition for RTC_BKP9R register ****************/
  8435. #define RTC_BKP9R_Pos (0U)
  8436. #define RTC_BKP9R_Msk (0xFFFFFFFFU << RTC_BKP9R_Pos) /*!< 0xFFFFFFFF */
  8437. #define RTC_BKP9R RTC_BKP9R_Msk
  8438. /******************** Bits definition for RTC_BKP10R register ***************/
  8439. #define RTC_BKP10R_Pos (0U)
  8440. #define RTC_BKP10R_Msk (0xFFFFFFFFU << RTC_BKP10R_Pos) /*!< 0xFFFFFFFF */
  8441. #define RTC_BKP10R RTC_BKP10R_Msk
  8442. /******************** Bits definition for RTC_BKP11R register ***************/
  8443. #define RTC_BKP11R_Pos (0U)
  8444. #define RTC_BKP11R_Msk (0xFFFFFFFFU << RTC_BKP11R_Pos) /*!< 0xFFFFFFFF */
  8445. #define RTC_BKP11R RTC_BKP11R_Msk
  8446. /******************** Bits definition for RTC_BKP12R register ***************/
  8447. #define RTC_BKP12R_Pos (0U)
  8448. #define RTC_BKP12R_Msk (0xFFFFFFFFU << RTC_BKP12R_Pos) /*!< 0xFFFFFFFF */
  8449. #define RTC_BKP12R RTC_BKP12R_Msk
  8450. /******************** Bits definition for RTC_BKP13R register ***************/
  8451. #define RTC_BKP13R_Pos (0U)
  8452. #define RTC_BKP13R_Msk (0xFFFFFFFFU << RTC_BKP13R_Pos) /*!< 0xFFFFFFFF */
  8453. #define RTC_BKP13R RTC_BKP13R_Msk
  8454. /******************** Bits definition for RTC_BKP14R register ***************/
  8455. #define RTC_BKP14R_Pos (0U)
  8456. #define RTC_BKP14R_Msk (0xFFFFFFFFU << RTC_BKP14R_Pos) /*!< 0xFFFFFFFF */
  8457. #define RTC_BKP14R RTC_BKP14R_Msk
  8458. /******************** Bits definition for RTC_BKP15R register ***************/
  8459. #define RTC_BKP15R_Pos (0U)
  8460. #define RTC_BKP15R_Msk (0xFFFFFFFFU << RTC_BKP15R_Pos) /*!< 0xFFFFFFFF */
  8461. #define RTC_BKP15R RTC_BKP15R_Msk
  8462. /******************** Bits definition for RTC_BKP16R register ***************/
  8463. #define RTC_BKP16R_Pos (0U)
  8464. #define RTC_BKP16R_Msk (0xFFFFFFFFU << RTC_BKP16R_Pos) /*!< 0xFFFFFFFF */
  8465. #define RTC_BKP16R RTC_BKP16R_Msk
  8466. /******************** Bits definition for RTC_BKP17R register ***************/
  8467. #define RTC_BKP17R_Pos (0U)
  8468. #define RTC_BKP17R_Msk (0xFFFFFFFFU << RTC_BKP17R_Pos) /*!< 0xFFFFFFFF */
  8469. #define RTC_BKP17R RTC_BKP17R_Msk
  8470. /******************** Bits definition for RTC_BKP18R register ***************/
  8471. #define RTC_BKP18R_Pos (0U)
  8472. #define RTC_BKP18R_Msk (0xFFFFFFFFU << RTC_BKP18R_Pos) /*!< 0xFFFFFFFF */
  8473. #define RTC_BKP18R RTC_BKP18R_Msk
  8474. /******************** Bits definition for RTC_BKP19R register ***************/
  8475. #define RTC_BKP19R_Pos (0U)
  8476. #define RTC_BKP19R_Msk (0xFFFFFFFFU << RTC_BKP19R_Pos) /*!< 0xFFFFFFFF */
  8477. #define RTC_BKP19R RTC_BKP19R_Msk
  8478. /******************** Bits definition for RTC_BKP20R register ***************/
  8479. #define RTC_BKP20R_Pos (0U)
  8480. #define RTC_BKP20R_Msk (0xFFFFFFFFU << RTC_BKP20R_Pos) /*!< 0xFFFFFFFF */
  8481. #define RTC_BKP20R RTC_BKP20R_Msk
  8482. /******************** Bits definition for RTC_BKP21R register ***************/
  8483. #define RTC_BKP21R_Pos (0U)
  8484. #define RTC_BKP21R_Msk (0xFFFFFFFFU << RTC_BKP21R_Pos) /*!< 0xFFFFFFFF */
  8485. #define RTC_BKP21R RTC_BKP21R_Msk
  8486. /******************** Bits definition for RTC_BKP22R register ***************/
  8487. #define RTC_BKP22R_Pos (0U)
  8488. #define RTC_BKP22R_Msk (0xFFFFFFFFU << RTC_BKP22R_Pos) /*!< 0xFFFFFFFF */
  8489. #define RTC_BKP22R RTC_BKP22R_Msk
  8490. /******************** Bits definition for RTC_BKP23R register ***************/
  8491. #define RTC_BKP23R_Pos (0U)
  8492. #define RTC_BKP23R_Msk (0xFFFFFFFFU << RTC_BKP23R_Pos) /*!< 0xFFFFFFFF */
  8493. #define RTC_BKP23R RTC_BKP23R_Msk
  8494. /******************** Bits definition for RTC_BKP24R register ***************/
  8495. #define RTC_BKP24R_Pos (0U)
  8496. #define RTC_BKP24R_Msk (0xFFFFFFFFU << RTC_BKP24R_Pos) /*!< 0xFFFFFFFF */
  8497. #define RTC_BKP24R RTC_BKP24R_Msk
  8498. /******************** Bits definition for RTC_BKP25R register ***************/
  8499. #define RTC_BKP25R_Pos (0U)
  8500. #define RTC_BKP25R_Msk (0xFFFFFFFFU << RTC_BKP25R_Pos) /*!< 0xFFFFFFFF */
  8501. #define RTC_BKP25R RTC_BKP25R_Msk
  8502. /******************** Bits definition for RTC_BKP26R register ***************/
  8503. #define RTC_BKP26R_Pos (0U)
  8504. #define RTC_BKP26R_Msk (0xFFFFFFFFU << RTC_BKP26R_Pos) /*!< 0xFFFFFFFF */
  8505. #define RTC_BKP26R RTC_BKP26R_Msk
  8506. /******************** Bits definition for RTC_BKP27R register ***************/
  8507. #define RTC_BKP27R_Pos (0U)
  8508. #define RTC_BKP27R_Msk (0xFFFFFFFFU << RTC_BKP27R_Pos) /*!< 0xFFFFFFFF */
  8509. #define RTC_BKP27R RTC_BKP27R_Msk
  8510. /******************** Bits definition for RTC_BKP28R register ***************/
  8511. #define RTC_BKP28R_Pos (0U)
  8512. #define RTC_BKP28R_Msk (0xFFFFFFFFU << RTC_BKP28R_Pos) /*!< 0xFFFFFFFF */
  8513. #define RTC_BKP28R RTC_BKP28R_Msk
  8514. /******************** Bits definition for RTC_BKP29R register ***************/
  8515. #define RTC_BKP29R_Pos (0U)
  8516. #define RTC_BKP29R_Msk (0xFFFFFFFFU << RTC_BKP29R_Pos) /*!< 0xFFFFFFFF */
  8517. #define RTC_BKP29R RTC_BKP29R_Msk
  8518. /******************** Bits definition for RTC_BKP30R register ***************/
  8519. #define RTC_BKP30R_Pos (0U)
  8520. #define RTC_BKP30R_Msk (0xFFFFFFFFU << RTC_BKP30R_Pos) /*!< 0xFFFFFFFF */
  8521. #define RTC_BKP30R RTC_BKP30R_Msk
  8522. /******************** Bits definition for RTC_BKP31R register ***************/
  8523. #define RTC_BKP31R_Pos (0U)
  8524. #define RTC_BKP31R_Msk (0xFFFFFFFFU << RTC_BKP31R_Pos) /*!< 0xFFFFFFFF */
  8525. #define RTC_BKP31R RTC_BKP31R_Msk
  8526. /******************** Number of backup registers ******************************/
  8527. #define RTC_BKP_NUMBER 32
  8528. /******************************************************************************/
  8529. /* */
  8530. /* Sigma-Delta Analog to Digital Converter (SDADC) */
  8531. /* */
  8532. /******************************************************************************/
  8533. /***************** Bit definition for SDADC_CR1 register ********************/
  8534. #define SDADC_CR1_EOCALIE_Pos (0U)
  8535. #define SDADC_CR1_EOCALIE_Msk (0x1U << SDADC_CR1_EOCALIE_Pos) /*!< 0x00000001 */
  8536. #define SDADC_CR1_EOCALIE SDADC_CR1_EOCALIE_Msk /*!< End of calibration interrupt enable */
  8537. #define SDADC_CR1_JEOCIE_Pos (1U)
  8538. #define SDADC_CR1_JEOCIE_Msk (0x1U << SDADC_CR1_JEOCIE_Pos) /*!< 0x00000002 */
  8539. #define SDADC_CR1_JEOCIE SDADC_CR1_JEOCIE_Msk /*!< Injected end of conversion interrupt enable */
  8540. #define SDADC_CR1_JOVRIE_Pos (2U)
  8541. #define SDADC_CR1_JOVRIE_Msk (0x1U << SDADC_CR1_JOVRIE_Pos) /*!< 0x00000004 */
  8542. #define SDADC_CR1_JOVRIE SDADC_CR1_JOVRIE_Msk /*!< Injected data overrun interrupt enable */
  8543. #define SDADC_CR1_REOCIE_Pos (3U)
  8544. #define SDADC_CR1_REOCIE_Msk (0x1U << SDADC_CR1_REOCIE_Pos) /*!< 0x00000008 */
  8545. #define SDADC_CR1_REOCIE SDADC_CR1_REOCIE_Msk /*!< Regular end of conversion interrupt enable */
  8546. #define SDADC_CR1_ROVRIE_Pos (4U)
  8547. #define SDADC_CR1_ROVRIE_Msk (0x1U << SDADC_CR1_ROVRIE_Pos) /*!< 0x00000010 */
  8548. #define SDADC_CR1_ROVRIE SDADC_CR1_ROVRIE_Msk /*!< Regular data overrun interrupt enable */
  8549. #define SDADC_CR1_REFV_Pos (8U)
  8550. #define SDADC_CR1_REFV_Msk (0x3U << SDADC_CR1_REFV_Pos) /*!< 0x00000300 */
  8551. #define SDADC_CR1_REFV SDADC_CR1_REFV_Msk /*!< Reference voltage selection */
  8552. #define SDADC_CR1_REFV_0 (0x1U << SDADC_CR1_REFV_Pos) /*!< 0x00000100 */
  8553. #define SDADC_CR1_REFV_1 (0x2U << SDADC_CR1_REFV_Pos) /*!< 0x00000200 */
  8554. #define SDADC_CR1_SLOWCK_Pos (10U)
  8555. #define SDADC_CR1_SLOWCK_Msk (0x1U << SDADC_CR1_SLOWCK_Pos) /*!< 0x00000400 */
  8556. #define SDADC_CR1_SLOWCK SDADC_CR1_SLOWCK_Msk /*!< Slow clock mode enable */
  8557. #define SDADC_CR1_SBI_Pos (11U)
  8558. #define SDADC_CR1_SBI_Msk (0x1U << SDADC_CR1_SBI_Pos) /*!< 0x00000800 */
  8559. #define SDADC_CR1_SBI SDADC_CR1_SBI_Msk /*!< Enter standby mode when idle */
  8560. #define SDADC_CR1_PDI_Pos (12U)
  8561. #define SDADC_CR1_PDI_Msk (0x1U << SDADC_CR1_PDI_Pos) /*!< 0x00001000 */
  8562. #define SDADC_CR1_PDI SDADC_CR1_PDI_Msk /*!< Enter power down mode when idle */
  8563. #define SDADC_CR1_JSYNC_Pos (14U)
  8564. #define SDADC_CR1_JSYNC_Msk (0x1U << SDADC_CR1_JSYNC_Pos) /*!< 0x00004000 */
  8565. #define SDADC_CR1_JSYNC SDADC_CR1_JSYNC_Msk /*!< Launch a injected conversion synchronously with SDADC1 */
  8566. #define SDADC_CR1_RSYNC_Pos (15U)
  8567. #define SDADC_CR1_RSYNC_Msk (0x1U << SDADC_CR1_RSYNC_Pos) /*!< 0x00008000 */
  8568. #define SDADC_CR1_RSYNC SDADC_CR1_RSYNC_Msk /*!< Launch regular conversion synchronously with SDADC1 */
  8569. #define SDADC_CR1_JDMAEN_Pos (16U)
  8570. #define SDADC_CR1_JDMAEN_Msk (0x1U << SDADC_CR1_JDMAEN_Pos) /*!< 0x00010000 */
  8571. #define SDADC_CR1_JDMAEN SDADC_CR1_JDMAEN_Msk /*!< DMA channel enabled to read data for the injected channel group */
  8572. #define SDADC_CR1_RDMAEN_Pos (17U)
  8573. #define SDADC_CR1_RDMAEN_Msk (0x1U << SDADC_CR1_RDMAEN_Pos) /*!< 0x00020000 */
  8574. #define SDADC_CR1_RDMAEN SDADC_CR1_RDMAEN_Msk /*!< DMA channel enabled to read data for the regular channel */
  8575. #define SDADC_CR1_INIT_Pos (31U)
  8576. #define SDADC_CR1_INIT_Msk (0x1U << SDADC_CR1_INIT_Pos) /*!< 0x80000000 */
  8577. #define SDADC_CR1_INIT SDADC_CR1_INIT_Msk /*!< Initialization mode request */
  8578. /***************** Bit definition for SDADC_CR2 register ********************/
  8579. #define SDADC_CR2_ADON_Pos (0U)
  8580. #define SDADC_CR2_ADON_Msk (0x1U << SDADC_CR2_ADON_Pos) /*!< 0x00000001 */
  8581. #define SDADC_CR2_ADON SDADC_CR2_ADON_Msk /*!< SDADC enable */
  8582. #define SDADC_CR2_CALIBCNT_Pos (1U)
  8583. #define SDADC_CR2_CALIBCNT_Msk (0x3U << SDADC_CR2_CALIBCNT_Pos) /*!< 0x00000006 */
  8584. #define SDADC_CR2_CALIBCNT SDADC_CR2_CALIBCNT_Msk /*!< Number of calibration sequences to be performed */
  8585. #define SDADC_CR2_CALIBCNT_0 (0x1U << SDADC_CR2_CALIBCNT_Pos) /*!< 0x00000002 */
  8586. #define SDADC_CR2_CALIBCNT_1 (0x2U << SDADC_CR2_CALIBCNT_Pos) /*!< 0x00000004 */
  8587. #define SDADC_CR2_STARTCALIB_Pos (4U)
  8588. #define SDADC_CR2_STARTCALIB_Msk (0x1U << SDADC_CR2_STARTCALIB_Pos) /*!< 0x00000010 */
  8589. #define SDADC_CR2_STARTCALIB SDADC_CR2_STARTCALIB_Msk /*!< Start calibration */
  8590. #define SDADC_CR2_JCONT_Pos (5U)
  8591. #define SDADC_CR2_JCONT_Msk (0x1U << SDADC_CR2_JCONT_Pos) /*!< 0x00000020 */
  8592. #define SDADC_CR2_JCONT SDADC_CR2_JCONT_Msk /*!< Continuous mode selection for injected conversions */
  8593. #define SDADC_CR2_JDS_Pos (6U)
  8594. #define SDADC_CR2_JDS_Msk (0x1U << SDADC_CR2_JDS_Pos) /*!< 0x00000040 */
  8595. #define SDADC_CR2_JDS SDADC_CR2_JDS_Msk /*!< Delay start of injected conversions */
  8596. #define SDADC_CR2_JEXTSEL_Pos (8U)
  8597. #define SDADC_CR2_JEXTSEL_Msk (0xFU << SDADC_CR2_JEXTSEL_Pos) /*!< 0x00000F00 */
  8598. #define SDADC_CR2_JEXTSEL SDADC_CR2_JEXTSEL_Msk /*!< Trigger signal selection for launching injected conversions */
  8599. #define SDADC_CR2_JEXTSEL_0 (0x1U << SDADC_CR2_JEXTSEL_Pos) /*!< 0x00000100 */
  8600. #define SDADC_CR2_JEXTSEL_1 (0x2U << SDADC_CR2_JEXTSEL_Pos) /*!< 0x00000200 */
  8601. #define SDADC_CR2_JEXTSEL_2 (0x4U << SDADC_CR2_JEXTSEL_Pos) /*!< 0x00000400 */
  8602. #define SDADC_CR2_JEXTSEL_3 (0x8U << SDADC_CR2_JEXTSEL_Pos) /*!< 0x00000800 */
  8603. #define SDADC_CR2_JEXTEN_Pos (13U)
  8604. #define SDADC_CR2_JEXTEN_Msk (0x3U << SDADC_CR2_JEXTEN_Pos) /*!< 0x00006000 */
  8605. #define SDADC_CR2_JEXTEN SDADC_CR2_JEXTEN_Msk /*!< Trigger enable and trigger edge selection for injected conversions */
  8606. #define SDADC_CR2_JEXTEN_0 (0x1U << SDADC_CR2_JEXTEN_Pos) /*!< 0x00002000 */
  8607. #define SDADC_CR2_JEXTEN_1 (0x2U << SDADC_CR2_JEXTEN_Pos) /*!< 0x00004000 */
  8608. #define SDADC_CR2_JSWSTART_Pos (15U)
  8609. #define SDADC_CR2_JSWSTART_Msk (0x1U << SDADC_CR2_JSWSTART_Pos) /*!< 0x00008000 */
  8610. #define SDADC_CR2_JSWSTART SDADC_CR2_JSWSTART_Msk /*!< Start a conversion of the injected group of channels */
  8611. #define SDADC_CR2_RCH_Pos (16U)
  8612. #define SDADC_CR2_RCH_Msk (0xFU << SDADC_CR2_RCH_Pos) /*!< 0x000F0000 */
  8613. #define SDADC_CR2_RCH SDADC_CR2_RCH_Msk /*!< Regular channel selection */
  8614. #define SDADC_CR2_RCH_0 (0x1U << SDADC_CR2_RCH_Pos) /*!< 0x00010000 */
  8615. #define SDADC_CR2_RCH_1 (0x2U << SDADC_CR2_RCH_Pos) /*!< 0x00020000 */
  8616. #define SDADC_CR2_RCH_2 (0x4U << SDADC_CR2_RCH_Pos) /*!< 0x00040000 */
  8617. #define SDADC_CR2_RCH_3 (0x8U << SDADC_CR2_RCH_Pos) /*!< 0x00080000 */
  8618. #define SDADC_CR2_RCONT_Pos (22U)
  8619. #define SDADC_CR2_RCONT_Msk (0x1U << SDADC_CR2_RCONT_Pos) /*!< 0x00400000 */
  8620. #define SDADC_CR2_RCONT SDADC_CR2_RCONT_Msk /*!< Continuous mode selection for regular conversions */
  8621. #define SDADC_CR2_RSWSTART_Pos (23U)
  8622. #define SDADC_CR2_RSWSTART_Msk (0x1U << SDADC_CR2_RSWSTART_Pos) /*!< 0x00800000 */
  8623. #define SDADC_CR2_RSWSTART SDADC_CR2_RSWSTART_Msk /*!< Software start of a conversion on the regular channel */
  8624. #define SDADC_CR2_FAST_Pos (24U)
  8625. #define SDADC_CR2_FAST_Msk (0x1U << SDADC_CR2_FAST_Pos) /*!< 0x01000000 */
  8626. #define SDADC_CR2_FAST SDADC_CR2_FAST_Msk /*!< Fast conversion mode selection */
  8627. /******************** Bit definition for SDADC_ISR register *****************/
  8628. #define SDADC_ISR_EOCALF_Pos (0U)
  8629. #define SDADC_ISR_EOCALF_Msk (0x1U << SDADC_ISR_EOCALF_Pos) /*!< 0x00000001 */
  8630. #define SDADC_ISR_EOCALF SDADC_ISR_EOCALF_Msk /*!< End of calibration flag */
  8631. #define SDADC_ISR_JEOCF_Pos (1U)
  8632. #define SDADC_ISR_JEOCF_Msk (0x1U << SDADC_ISR_JEOCF_Pos) /*!< 0x00000002 */
  8633. #define SDADC_ISR_JEOCF SDADC_ISR_JEOCF_Msk /*!< End of injected conversion flag */
  8634. #define SDADC_ISR_JOVRF_Pos (2U)
  8635. #define SDADC_ISR_JOVRF_Msk (0x1U << SDADC_ISR_JOVRF_Pos) /*!< 0x00000004 */
  8636. #define SDADC_ISR_JOVRF SDADC_ISR_JOVRF_Msk /*!< Injected conversion overrun flag */
  8637. #define SDADC_ISR_REOCF_Pos (3U)
  8638. #define SDADC_ISR_REOCF_Msk (0x1U << SDADC_ISR_REOCF_Pos) /*!< 0x00000008 */
  8639. #define SDADC_ISR_REOCF SDADC_ISR_REOCF_Msk /*!< End of regular conversion flag */
  8640. #define SDADC_ISR_ROVRF_Pos (4U)
  8641. #define SDADC_ISR_ROVRF_Msk (0x1U << SDADC_ISR_ROVRF_Pos) /*!< 0x00000010 */
  8642. #define SDADC_ISR_ROVRF SDADC_ISR_ROVRF_Msk /*!< Regular conversion overrun flag */
  8643. #define SDADC_ISR_CALIBIP_Pos (12U)
  8644. #define SDADC_ISR_CALIBIP_Msk (0x1U << SDADC_ISR_CALIBIP_Pos) /*!< 0x00001000 */
  8645. #define SDADC_ISR_CALIBIP SDADC_ISR_CALIBIP_Msk /*!< Calibration in progress status */
  8646. #define SDADC_ISR_JCIP_Pos (13U)
  8647. #define SDADC_ISR_JCIP_Msk (0x1U << SDADC_ISR_JCIP_Pos) /*!< 0x00002000 */
  8648. #define SDADC_ISR_JCIP SDADC_ISR_JCIP_Msk /*!< Injected conversion in progress status */
  8649. #define SDADC_ISR_RCIP_Pos (14U)
  8650. #define SDADC_ISR_RCIP_Msk (0x1U << SDADC_ISR_RCIP_Pos) /*!< 0x00004000 */
  8651. #define SDADC_ISR_RCIP SDADC_ISR_RCIP_Msk /*!< Regular conversion in progress status */
  8652. #define SDADC_ISR_STABIP_Pos (15U)
  8653. #define SDADC_ISR_STABIP_Msk (0x1U << SDADC_ISR_STABIP_Pos) /*!< 0x00008000 */
  8654. #define SDADC_ISR_STABIP SDADC_ISR_STABIP_Msk /*!< Stabilization in progress status */
  8655. #define SDADC_ISR_INITRDY_Pos (31U)
  8656. #define SDADC_ISR_INITRDY_Msk (0x1U << SDADC_ISR_INITRDY_Pos) /*!< 0x80000000 */
  8657. #define SDADC_ISR_INITRDY SDADC_ISR_INITRDY_Msk /*!< Initialization mode is ready */
  8658. /****************** Bit definition for SDADC_CLRISR register ****************/
  8659. #define SDADC_ISR_CLREOCALF_Pos (0U)
  8660. #define SDADC_ISR_CLREOCALF_Msk (0x1U << SDADC_ISR_CLREOCALF_Pos) /*!< 0x00000001 */
  8661. #define SDADC_ISR_CLREOCALF SDADC_ISR_CLREOCALF_Msk /*!< Clear the end of calibration flag */
  8662. #define SDADC_ISR_CLRJOVRF_Pos (2U)
  8663. #define SDADC_ISR_CLRJOVRF_Msk (0x1U << SDADC_ISR_CLRJOVRF_Pos) /*!< 0x00000004 */
  8664. #define SDADC_ISR_CLRJOVRF SDADC_ISR_CLRJOVRF_Msk /*!< Clear the injected conversion overrun flag */
  8665. #define SDADC_ISR_CLRROVRF_Pos (4U)
  8666. #define SDADC_ISR_CLRROVRF_Msk (0x1U << SDADC_ISR_CLRROVRF_Pos) /*!< 0x00000010 */
  8667. #define SDADC_ISR_CLRROVRF SDADC_ISR_CLRROVRF_Msk /*!< Clear the regular conversion overrun flag */
  8668. /****************** Bit definition for SDADC_JCHGR register *****************/
  8669. #define SDADC_JCHGR_JCHG_Pos (0U)
  8670. #define SDADC_JCHGR_JCHG_Msk (0x1FFU << SDADC_JCHGR_JCHG_Pos) /*!< 0x000001FF */
  8671. #define SDADC_JCHGR_JCHG SDADC_JCHGR_JCHG_Msk /*!< Injected channel group selection */
  8672. #define SDADC_JCHGR_JCHG_0 (0x001U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000001 */
  8673. #define SDADC_JCHGR_JCHG_1 (0x002U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000002 */
  8674. #define SDADC_JCHGR_JCHG_2 (0x004U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000004 */
  8675. #define SDADC_JCHGR_JCHG_3 (0x008U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000008 */
  8676. #define SDADC_JCHGR_JCHG_4 (0x010U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000010 */
  8677. #define SDADC_JCHGR_JCHG_5 (0x020U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000020 */
  8678. #define SDADC_JCHGR_JCHG_6 (0x040U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000040 */
  8679. #define SDADC_JCHGR_JCHG_7 (0x080U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000080 */
  8680. #define SDADC_JCHGR_JCHG_8 (0x100U << SDADC_JCHGR_JCHG_Pos) /*!< 0x00000100 */
  8681. /****************** Bit definition for SDADC_CONF0R register ****************/
  8682. #define SDADC_CONF0R_OFFSET0_Pos (0U)
  8683. #define SDADC_CONF0R_OFFSET0_Msk (0xFFFU << SDADC_CONF0R_OFFSET0_Pos) /*!< 0x00000FFF */
  8684. #define SDADC_CONF0R_OFFSET0 SDADC_CONF0R_OFFSET0_Msk /*!< 12-bit calibration offset for configuration 0 */
  8685. #define SDADC_CONF0R_GAIN0_Pos (20U)
  8686. #define SDADC_CONF0R_GAIN0_Msk (0x7U << SDADC_CONF0R_GAIN0_Pos) /*!< 0x00700000 */
  8687. #define SDADC_CONF0R_GAIN0 SDADC_CONF0R_GAIN0_Msk /*!< Gain setting for configuration 0 */
  8688. #define SDADC_CONF0R_GAIN0_0 (0x1U << SDADC_CONF0R_GAIN0_Pos) /*!< 0x00100000 */
  8689. #define SDADC_CONF0R_GAIN0_1 (0x2U << SDADC_CONF0R_GAIN0_Pos) /*!< 0x00200000 */
  8690. #define SDADC_CONF0R_GAIN0_2 (0x4U << SDADC_CONF0R_GAIN0_Pos) /*!< 0x00400000 */
  8691. #define SDADC_CONF0R_SE0_Pos (26U)
  8692. #define SDADC_CONF0R_SE0_Msk (0x3U << SDADC_CONF0R_SE0_Pos) /*!< 0x0C000000 */
  8693. #define SDADC_CONF0R_SE0 SDADC_CONF0R_SE0_Msk /*!< Single ended mode for configuration 0 */
  8694. #define SDADC_CONF0R_SE0_0 (0x1U << SDADC_CONF0R_SE0_Pos) /*!< 0x04000000 */
  8695. #define SDADC_CONF0R_SE0_1 (0x2U << SDADC_CONF0R_SE0_Pos) /*!< 0x08000000 */
  8696. #define SDADC_CONF0R_COMMON0_Pos (30U)
  8697. #define SDADC_CONF0R_COMMON0_Msk (0x3U << SDADC_CONF0R_COMMON0_Pos) /*!< 0xC0000000 */
  8698. #define SDADC_CONF0R_COMMON0 SDADC_CONF0R_COMMON0_Msk /*!< Common mode for configuration 0 */
  8699. #define SDADC_CONF0R_COMMON0_0 (0x1U << SDADC_CONF0R_COMMON0_Pos) /*!< 0x40000000 */
  8700. #define SDADC_CONF0R_COMMON0_1 (0x2U << SDADC_CONF0R_COMMON0_Pos) /*!< 0x80000000 */
  8701. /****************** Bit definition for SDADC_CONF1R register ****************/
  8702. #define SDADC_CONF1R_OFFSET1_Pos (0U)
  8703. #define SDADC_CONF1R_OFFSET1_Msk (0xFFFU << SDADC_CONF1R_OFFSET1_Pos) /*!< 0x00000FFF */
  8704. #define SDADC_CONF1R_OFFSET1 SDADC_CONF1R_OFFSET1_Msk /*!< 12-bit calibration offset for configuration 1 */
  8705. #define SDADC_CONF1R_GAIN1_Pos (20U)
  8706. #define SDADC_CONF1R_GAIN1_Msk (0x7U << SDADC_CONF1R_GAIN1_Pos) /*!< 0x00700000 */
  8707. #define SDADC_CONF1R_GAIN1 SDADC_CONF1R_GAIN1_Msk /*!< Gain setting for configuration 1 */
  8708. #define SDADC_CONF1R_GAIN1_0 (0x1U << SDADC_CONF1R_GAIN1_Pos) /*!< 0x00100000 */
  8709. #define SDADC_CONF1R_GAIN1_1 (0x2U << SDADC_CONF1R_GAIN1_Pos) /*!< 0x00200000 */
  8710. #define SDADC_CONF1R_GAIN1_2 (0x4U << SDADC_CONF1R_GAIN1_Pos) /*!< 0x00400000 */
  8711. #define SDADC_CONF1R_SE1_Pos (26U)
  8712. #define SDADC_CONF1R_SE1_Msk (0x3U << SDADC_CONF1R_SE1_Pos) /*!< 0x0C000000 */
  8713. #define SDADC_CONF1R_SE1 SDADC_CONF1R_SE1_Msk /*!< Single ended mode for configuration 1 */
  8714. #define SDADC_CONF1R_SE1_0 (0x1U << SDADC_CONF1R_SE1_Pos) /*!< 0x04000000 */
  8715. #define SDADC_CONF1R_SE1_1 (0x2U << SDADC_CONF1R_SE1_Pos) /*!< 0x08000000 */
  8716. #define SDADC_CONF1R_COMMON1_Pos (30U)
  8717. #define SDADC_CONF1R_COMMON1_Msk (0x3U << SDADC_CONF1R_COMMON1_Pos) /*!< 0xC0000000 */
  8718. #define SDADC_CONF1R_COMMON1 SDADC_CONF1R_COMMON1_Msk /*!< Common mode for configuration 1 */
  8719. #define SDADC_CONF1R_COMMON1_0 (0x1U << SDADC_CONF1R_COMMON1_Pos) /*!< 0x40000000 */
  8720. #define SDADC_CONF1R_COMMON1_1 (0x2U << SDADC_CONF1R_COMMON1_Pos) /*!< 0x80000000 */
  8721. /****************** Bit definition for SDADC_CONF2R register ****************/
  8722. #define SDADC_CONF2R_OFFSET2_Pos (0U)
  8723. #define SDADC_CONF2R_OFFSET2_Msk (0xFFFU << SDADC_CONF2R_OFFSET2_Pos) /*!< 0x00000FFF */
  8724. #define SDADC_CONF2R_OFFSET2 SDADC_CONF2R_OFFSET2_Msk /*!< 12-bit calibration offset for configuration 2 */
  8725. #define SDADC_CONF2R_GAIN2_Pos (20U)
  8726. #define SDADC_CONF2R_GAIN2_Msk (0x7U << SDADC_CONF2R_GAIN2_Pos) /*!< 0x00700000 */
  8727. #define SDADC_CONF2R_GAIN2 SDADC_CONF2R_GAIN2_Msk /*!< Gain setting for configuration 2 */
  8728. #define SDADC_CONF2R_GAIN2_0 (0x1U << SDADC_CONF2R_GAIN2_Pos) /*!< 0x00100000 */
  8729. #define SDADC_CONF2R_GAIN2_1 (0x2U << SDADC_CONF2R_GAIN2_Pos) /*!< 0x00200000 */
  8730. #define SDADC_CONF2R_GAIN2_2 (0x4U << SDADC_CONF2R_GAIN2_Pos) /*!< 0x00400000 */
  8731. #define SDADC_CONF2R_SE2_Pos (26U)
  8732. #define SDADC_CONF2R_SE2_Msk (0x3U << SDADC_CONF2R_SE2_Pos) /*!< 0x0C000000 */
  8733. #define SDADC_CONF2R_SE2 SDADC_CONF2R_SE2_Msk /*!< Single ended mode for configuration 2 */
  8734. #define SDADC_CONF2R_SE2_0 (0x1U << SDADC_CONF2R_SE2_Pos) /*!< 0x04000000 */
  8735. #define SDADC_CONF2R_SE2_1 (0x2U << SDADC_CONF2R_SE2_Pos) /*!< 0x08000000 */
  8736. #define SDADC_CONF2R_COMMON2_Pos (30U)
  8737. #define SDADC_CONF2R_COMMON2_Msk (0x3U << SDADC_CONF2R_COMMON2_Pos) /*!< 0xC0000000 */
  8738. #define SDADC_CONF2R_COMMON2 SDADC_CONF2R_COMMON2_Msk /*!< Common mode for configuration 2 */
  8739. #define SDADC_CONF2R_COMMON2_0 (0x1U << SDADC_CONF2R_COMMON2_Pos) /*!< 0x40000000 */
  8740. #define SDADC_CONF2R_COMMON2_1 (0x2U << SDADC_CONF2R_COMMON2_Pos) /*!< 0x80000000 */
  8741. /***************** Bit definition for SDADC_CONFCHR1 register ***************/
  8742. #define SDADC_CONFCHR1_CONFCH0_Pos (0U)
  8743. #define SDADC_CONFCHR1_CONFCH0_Msk (0x3U << SDADC_CONFCHR1_CONFCH0_Pos) /*!< 0x00000003 */
  8744. #define SDADC_CONFCHR1_CONFCH0 SDADC_CONFCHR1_CONFCH0_Msk /*!< Channel 0 configuration */
  8745. #define SDADC_CONFCHR1_CONFCH1_Pos (4U)
  8746. #define SDADC_CONFCHR1_CONFCH1_Msk (0x3U << SDADC_CONFCHR1_CONFCH1_Pos) /*!< 0x00000030 */
  8747. #define SDADC_CONFCHR1_CONFCH1 SDADC_CONFCHR1_CONFCH1_Msk /*!< Channel 1 configuration */
  8748. #define SDADC_CONFCHR1_CONFCH2_Pos (8U)
  8749. #define SDADC_CONFCHR1_CONFCH2_Msk (0x3U << SDADC_CONFCHR1_CONFCH2_Pos) /*!< 0x00000300 */
  8750. #define SDADC_CONFCHR1_CONFCH2 SDADC_CONFCHR1_CONFCH2_Msk /*!< Channel 2 configuration */
  8751. #define SDADC_CONFCHR1_CONFCH3_Pos (12U)
  8752. #define SDADC_CONFCHR1_CONFCH3_Msk (0x3U << SDADC_CONFCHR1_CONFCH3_Pos) /*!< 0x00003000 */
  8753. #define SDADC_CONFCHR1_CONFCH3 SDADC_CONFCHR1_CONFCH3_Msk /*!< Channel 3 configuration */
  8754. #define SDADC_CONFCHR1_CONFCH4_Pos (16U)
  8755. #define SDADC_CONFCHR1_CONFCH4_Msk (0x3U << SDADC_CONFCHR1_CONFCH4_Pos) /*!< 0x00030000 */
  8756. #define SDADC_CONFCHR1_CONFCH4 SDADC_CONFCHR1_CONFCH4_Msk /*!< Channel 4 configuration */
  8757. #define SDADC_CONFCHR1_CONFCH5_Pos (20U)
  8758. #define SDADC_CONFCHR1_CONFCH5_Msk (0x3U << SDADC_CONFCHR1_CONFCH5_Pos) /*!< 0x00300000 */
  8759. #define SDADC_CONFCHR1_CONFCH5 SDADC_CONFCHR1_CONFCH5_Msk /*!< Channel 5 configuration */
  8760. #define SDADC_CONFCHR1_CONFCH6_Pos (24U)
  8761. #define SDADC_CONFCHR1_CONFCH6_Msk (0x3U << SDADC_CONFCHR1_CONFCH6_Pos) /*!< 0x03000000 */
  8762. #define SDADC_CONFCHR1_CONFCH6 SDADC_CONFCHR1_CONFCH6_Msk /*!< Channel 6 configuration */
  8763. #define SDADC_CONFCHR1_CONFCH7_Pos (28U)
  8764. #define SDADC_CONFCHR1_CONFCH7_Msk (0x3U << SDADC_CONFCHR1_CONFCH7_Pos) /*!< 0x30000000 */
  8765. #define SDADC_CONFCHR1_CONFCH7 SDADC_CONFCHR1_CONFCH7_Msk /*!< Channel 7 configuration */
  8766. /***************** Bit definition for SDADC_CONFCHR2 register ***************/
  8767. #define SDADC_CONFCHR2_CONFCH8_Pos (0U)
  8768. #define SDADC_CONFCHR2_CONFCH8_Msk (0x3U << SDADC_CONFCHR2_CONFCH8_Pos) /*!< 0x00000003 */
  8769. #define SDADC_CONFCHR2_CONFCH8 SDADC_CONFCHR2_CONFCH8_Msk /*!< Channel 8 configuration */
  8770. /***************** Bit definition for SDADC_JDATAR register ***************/
  8771. #define SDADC_JDATAR_JDATA_Pos (0U)
  8772. #define SDADC_JDATAR_JDATA_Msk (0xFFFFU << SDADC_JDATAR_JDATA_Pos) /*!< 0x0000FFFF */
  8773. #define SDADC_JDATAR_JDATA SDADC_JDATAR_JDATA_Msk /*!< Injected group conversion data */
  8774. #define SDADC_JDATAR_JDATACH_Pos (24U)
  8775. #define SDADC_JDATAR_JDATACH_Msk (0xFU << SDADC_JDATAR_JDATACH_Pos) /*!< 0x0F000000 */
  8776. #define SDADC_JDATAR_JDATACH SDADC_JDATAR_JDATACH_Msk /*!< Injected channel most recently converted */
  8777. #define SDADC_JDATAR_JDATACH_0 (0x1U << SDADC_JDATAR_JDATACH_Pos) /*!< 0x01000000 */
  8778. #define SDADC_JDATAR_JDATACH_1 (0x2U << SDADC_JDATAR_JDATACH_Pos) /*!< 0x02000000 */
  8779. #define SDADC_JDATAR_JDATACH_2 (0x4U << SDADC_JDATAR_JDATACH_Pos) /*!< 0x04000000 */
  8780. #define SDADC_JDATAR_JDATACH_3 (0x8U << SDADC_JDATAR_JDATACH_Pos) /*!< 0x08000000 */
  8781. /***************** Bit definition for SDADC_RDATAR register ***************/
  8782. #define SDADC_RDATAR_RDATA_Pos (0U)
  8783. #define SDADC_RDATAR_RDATA_Msk (0xFFFFU << SDADC_RDATAR_RDATA_Pos) /*!< 0x0000FFFF */
  8784. #define SDADC_RDATAR_RDATA SDADC_RDATAR_RDATA_Msk /*!< Injected group conversion data */
  8785. /***************** Bit definition for SDADC_JDATA12R register ***************/
  8786. #define SDADC_JDATA12R_JDATA2_Pos (16U)
  8787. #define SDADC_JDATA12R_JDATA2_Msk (0xFFFFU << SDADC_JDATA12R_JDATA2_Pos) /*!< 0xFFFF0000 */
  8788. #define SDADC_JDATA12R_JDATA2 SDADC_JDATA12R_JDATA2_Msk /*!< Injected group conversion data for SDADC2 */
  8789. #define SDADC_JDATA12R_JDATA1_Pos (0U)
  8790. #define SDADC_JDATA12R_JDATA1_Msk (0xFFFFU << SDADC_JDATA12R_JDATA1_Pos) /*!< 0x0000FFFF */
  8791. #define SDADC_JDATA12R_JDATA1 SDADC_JDATA12R_JDATA1_Msk /*!< Injected group conversion data for SDADC1 */
  8792. /***************** Bit definition for SDADC_RDATA12R register ***************/
  8793. #define SDADC_RDATA12R_RDATA2_Pos (16U)
  8794. #define SDADC_RDATA12R_RDATA2_Msk (0xFFFFU << SDADC_RDATA12R_RDATA2_Pos) /*!< 0xFFFF0000 */
  8795. #define SDADC_RDATA12R_RDATA2 SDADC_RDATA12R_RDATA2_Msk /*!< Regular conversion data for SDADC2 */
  8796. #define SDADC_RDATA12R_RDATA1_Pos (0U)
  8797. #define SDADC_RDATA12R_RDATA1_Msk (0xFFFFU << SDADC_RDATA12R_RDATA1_Pos) /*!< 0x0000FFFF */
  8798. #define SDADC_RDATA12R_RDATA1 SDADC_RDATA12R_RDATA1_Msk /*!< Regular conversion data for SDADC1 */
  8799. /***************** Bit definition for SDADC_JDATA13R register ***************/
  8800. #define SDADC_JDATA13R_JDATA3_Pos (16U)
  8801. #define SDADC_JDATA13R_JDATA3_Msk (0xFFFFU << SDADC_JDATA13R_JDATA3_Pos) /*!< 0xFFFF0000 */
  8802. #define SDADC_JDATA13R_JDATA3 SDADC_JDATA13R_JDATA3_Msk /*!< Injected group conversion data for SDADC3 */
  8803. #define SDADC_JDATA13R_JDATA1_Pos (0U)
  8804. #define SDADC_JDATA13R_JDATA1_Msk (0xFFFFU << SDADC_JDATA13R_JDATA1_Pos) /*!< 0x0000FFFF */
  8805. #define SDADC_JDATA13R_JDATA1 SDADC_JDATA13R_JDATA1_Msk /*!< Injected group conversion data for SDADC1 */
  8806. /***************** Bit definition for SDADC_RDATA13R register ***************/
  8807. #define SDADC_RDATA13R_RDATA3_Pos (16U)
  8808. #define SDADC_RDATA13R_RDATA3_Msk (0xFFFFU << SDADC_RDATA13R_RDATA3_Pos) /*!< 0xFFFF0000 */
  8809. #define SDADC_RDATA13R_RDATA3 SDADC_RDATA13R_RDATA3_Msk /*!< Regular conversion data for SDADC3 */
  8810. #define SDADC_RDATA13R_RDATA1_Pos (0U)
  8811. #define SDADC_RDATA13R_RDATA1_Msk (0xFFFFU << SDADC_RDATA13R_RDATA1_Pos) /*!< 0x0000FFFF */
  8812. #define SDADC_RDATA13R_RDATA1 SDADC_RDATA13R_RDATA1_Msk /*!< Regular conversion data for SDADC1 */
  8813. /******************************************************************************/
  8814. /* */
  8815. /* Serial Peripheral Interface (SPI) */
  8816. /* */
  8817. /******************************************************************************/
  8818. /*
  8819. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  8820. */
  8821. #define SPI_I2S_SUPPORT /*!< I2S support */
  8822. /******************* Bit definition for SPI_CR1 register ********************/
  8823. #define SPI_CR1_CPHA_Pos (0U)
  8824. #define SPI_CR1_CPHA_Msk (0x1U << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */
  8825. #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!< Clock Phase */
  8826. #define SPI_CR1_CPOL_Pos (1U)
  8827. #define SPI_CR1_CPOL_Msk (0x1U << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */
  8828. #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!< Clock Polarity */
  8829. #define SPI_CR1_MSTR_Pos (2U)
  8830. #define SPI_CR1_MSTR_Msk (0x1U << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */
  8831. #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!< Master Selection */
  8832. #define SPI_CR1_BR_Pos (3U)
  8833. #define SPI_CR1_BR_Msk (0x7U << SPI_CR1_BR_Pos) /*!< 0x00000038 */
  8834. #define SPI_CR1_BR SPI_CR1_BR_Msk /*!< BR[2:0] bits (Baud Rate Control) */
  8835. #define SPI_CR1_BR_0 (0x1U << SPI_CR1_BR_Pos) /*!< 0x00000008 */
  8836. #define SPI_CR1_BR_1 (0x2U << SPI_CR1_BR_Pos) /*!< 0x00000010 */
  8837. #define SPI_CR1_BR_2 (0x4U << SPI_CR1_BR_Pos) /*!< 0x00000020 */
  8838. #define SPI_CR1_SPE_Pos (6U)
  8839. #define SPI_CR1_SPE_Msk (0x1U << SPI_CR1_SPE_Pos) /*!< 0x00000040 */
  8840. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!< SPI Enable */
  8841. #define SPI_CR1_LSBFIRST_Pos (7U)
  8842. #define SPI_CR1_LSBFIRST_Msk (0x1U << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */
  8843. #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!< Frame Format */
  8844. #define SPI_CR1_SSI_Pos (8U)
  8845. #define SPI_CR1_SSI_Msk (0x1U << SPI_CR1_SSI_Pos) /*!< 0x00000100 */
  8846. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!< Internal slave select */
  8847. #define SPI_CR1_SSM_Pos (9U)
  8848. #define SPI_CR1_SSM_Msk (0x1U << SPI_CR1_SSM_Pos) /*!< 0x00000200 */
  8849. #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!< Software slave management */
  8850. #define SPI_CR1_RXONLY_Pos (10U)
  8851. #define SPI_CR1_RXONLY_Msk (0x1U << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */
  8852. #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!< Receive only */
  8853. #define SPI_CR1_CRCL_Pos (11U)
  8854. #define SPI_CR1_CRCL_Msk (0x1U << SPI_CR1_CRCL_Pos) /*!< 0x00000800 */
  8855. #define SPI_CR1_CRCL SPI_CR1_CRCL_Msk /*!< CRC Length */
  8856. #define SPI_CR1_CRCNEXT_Pos (12U)
  8857. #define SPI_CR1_CRCNEXT_Msk (0x1U << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */
  8858. #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!< Transmit CRC next */
  8859. #define SPI_CR1_CRCEN_Pos (13U)
  8860. #define SPI_CR1_CRCEN_Msk (0x1U << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */
  8861. #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!< Hardware CRC calculation enable */
  8862. #define SPI_CR1_BIDIOE_Pos (14U)
  8863. #define SPI_CR1_BIDIOE_Msk (0x1U << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */
  8864. #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!< Output enable in bidirectional mode */
  8865. #define SPI_CR1_BIDIMODE_Pos (15U)
  8866. #define SPI_CR1_BIDIMODE_Msk (0x1U << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */
  8867. #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!< Bidirectional data mode enable */
  8868. /******************* Bit definition for SPI_CR2 register ********************/
  8869. #define SPI_CR2_RXDMAEN_Pos (0U)
  8870. #define SPI_CR2_RXDMAEN_Msk (0x1U << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */
  8871. #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */
  8872. #define SPI_CR2_TXDMAEN_Pos (1U)
  8873. #define SPI_CR2_TXDMAEN_Msk (0x1U << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */
  8874. #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */
  8875. #define SPI_CR2_SSOE_Pos (2U)
  8876. #define SPI_CR2_SSOE_Msk (0x1U << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */
  8877. #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */
  8878. #define SPI_CR2_NSSP_Pos (3U)
  8879. #define SPI_CR2_NSSP_Msk (0x1U << SPI_CR2_NSSP_Pos) /*!< 0x00000008 */
  8880. #define SPI_CR2_NSSP SPI_CR2_NSSP_Msk /*!< NSS pulse management Enable */
  8881. #define SPI_CR2_FRF_Pos (4U)
  8882. #define SPI_CR2_FRF_Msk (0x1U << SPI_CR2_FRF_Pos) /*!< 0x00000010 */
  8883. #define SPI_CR2_FRF SPI_CR2_FRF_Msk /*!< Frame Format Enable */
  8884. #define SPI_CR2_ERRIE_Pos (5U)
  8885. #define SPI_CR2_ERRIE_Msk (0x1U << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */
  8886. #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */
  8887. #define SPI_CR2_RXNEIE_Pos (6U)
  8888. #define SPI_CR2_RXNEIE_Msk (0x1U << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */
  8889. #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */
  8890. #define SPI_CR2_TXEIE_Pos (7U)
  8891. #define SPI_CR2_TXEIE_Msk (0x1U << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */
  8892. #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */
  8893. #define SPI_CR2_DS_Pos (8U)
  8894. #define SPI_CR2_DS_Msk (0xFU << SPI_CR2_DS_Pos) /*!< 0x00000F00 */
  8895. #define SPI_CR2_DS SPI_CR2_DS_Msk /*!< DS[3:0] Data Size */
  8896. #define SPI_CR2_DS_0 (0x1U << SPI_CR2_DS_Pos) /*!< 0x00000100 */
  8897. #define SPI_CR2_DS_1 (0x2U << SPI_CR2_DS_Pos) /*!< 0x00000200 */
  8898. #define SPI_CR2_DS_2 (0x4U << SPI_CR2_DS_Pos) /*!< 0x00000400 */
  8899. #define SPI_CR2_DS_3 (0x8U << SPI_CR2_DS_Pos) /*!< 0x00000800 */
  8900. #define SPI_CR2_FRXTH_Pos (12U)
  8901. #define SPI_CR2_FRXTH_Msk (0x1U << SPI_CR2_FRXTH_Pos) /*!< 0x00001000 */
  8902. #define SPI_CR2_FRXTH SPI_CR2_FRXTH_Msk /*!< FIFO reception Threshold */
  8903. #define SPI_CR2_LDMARX_Pos (13U)
  8904. #define SPI_CR2_LDMARX_Msk (0x1U << SPI_CR2_LDMARX_Pos) /*!< 0x00002000 */
  8905. #define SPI_CR2_LDMARX SPI_CR2_LDMARX_Msk /*!< Last DMA transfer for reception */
  8906. #define SPI_CR2_LDMATX_Pos (14U)
  8907. #define SPI_CR2_LDMATX_Msk (0x1U << SPI_CR2_LDMATX_Pos) /*!< 0x00004000 */
  8908. #define SPI_CR2_LDMATX SPI_CR2_LDMATX_Msk /*!< Last DMA transfer for transmission */
  8909. /******************** Bit definition for SPI_SR register ********************/
  8910. #define SPI_SR_RXNE_Pos (0U)
  8911. #define SPI_SR_RXNE_Msk (0x1U << SPI_SR_RXNE_Pos) /*!< 0x00000001 */
  8912. #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */
  8913. #define SPI_SR_TXE_Pos (1U)
  8914. #define SPI_SR_TXE_Msk (0x1U << SPI_SR_TXE_Pos) /*!< 0x00000002 */
  8915. #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */
  8916. #define SPI_SR_CHSIDE_Pos (2U)
  8917. #define SPI_SR_CHSIDE_Msk (0x1U << SPI_SR_CHSIDE_Pos) /*!< 0x00000004 */
  8918. #define SPI_SR_CHSIDE SPI_SR_CHSIDE_Msk /*!< Channel side */
  8919. #define SPI_SR_UDR_Pos (3U)
  8920. #define SPI_SR_UDR_Msk (0x1U << SPI_SR_UDR_Pos) /*!< 0x00000008 */
  8921. #define SPI_SR_UDR SPI_SR_UDR_Msk /*!< Underrun flag */
  8922. #define SPI_SR_CRCERR_Pos (4U)
  8923. #define SPI_SR_CRCERR_Msk (0x1U << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */
  8924. #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */
  8925. #define SPI_SR_MODF_Pos (5U)
  8926. #define SPI_SR_MODF_Msk (0x1U << SPI_SR_MODF_Pos) /*!< 0x00000020 */
  8927. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */
  8928. #define SPI_SR_OVR_Pos (6U)
  8929. #define SPI_SR_OVR_Msk (0x1U << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  8930. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */
  8931. #define SPI_SR_BSY_Pos (7U)
  8932. #define SPI_SR_BSY_Msk (0x1U << SPI_SR_BSY_Pos) /*!< 0x00000080 */
  8933. #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */
  8934. #define SPI_SR_FRE_Pos (8U)
  8935. #define SPI_SR_FRE_Msk (0x1U << SPI_SR_FRE_Pos) /*!< 0x00000100 */
  8936. #define SPI_SR_FRE SPI_SR_FRE_Msk /*!< TI frame format error */
  8937. #define SPI_SR_FRLVL_Pos (9U)
  8938. #define SPI_SR_FRLVL_Msk (0x3U << SPI_SR_FRLVL_Pos) /*!< 0x00000600 */
  8939. #define SPI_SR_FRLVL SPI_SR_FRLVL_Msk /*!< FIFO Reception Level */
  8940. #define SPI_SR_FRLVL_0 (0x1U << SPI_SR_FRLVL_Pos) /*!< 0x00000200 */
  8941. #define SPI_SR_FRLVL_1 (0x2U << SPI_SR_FRLVL_Pos) /*!< 0x00000400 */
  8942. #define SPI_SR_FTLVL_Pos (11U)
  8943. #define SPI_SR_FTLVL_Msk (0x3U << SPI_SR_FTLVL_Pos) /*!< 0x00001800 */
  8944. #define SPI_SR_FTLVL SPI_SR_FTLVL_Msk /*!< FIFO Transmission Level */
  8945. #define SPI_SR_FTLVL_0 (0x1U << SPI_SR_FTLVL_Pos) /*!< 0x00000800 */
  8946. #define SPI_SR_FTLVL_1 (0x2U << SPI_SR_FTLVL_Pos) /*!< 0x00001000 */
  8947. /******************** Bit definition for SPI_DR register ********************/
  8948. #define SPI_DR_DR_Pos (0U)
  8949. #define SPI_DR_DR_Msk (0xFFFFU << SPI_DR_DR_Pos) /*!< 0x0000FFFF */
  8950. #define SPI_DR_DR SPI_DR_DR_Msk /*!< Data Register */
  8951. /******************* Bit definition for SPI_CRCPR register ******************/
  8952. #define SPI_CRCPR_CRCPOLY_Pos (0U)
  8953. #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFU << SPI_CRCPR_CRCPOLY_Pos) /*!< 0x0000FFFF */
  8954. #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!< CRC polynomial register */
  8955. /****************** Bit definition for SPI_RXCRCR register ******************/
  8956. #define SPI_RXCRCR_RXCRC_Pos (0U)
  8957. #define SPI_RXCRCR_RXCRC_Msk (0xFFFFU << SPI_RXCRCR_RXCRC_Pos) /*!< 0x0000FFFF */
  8958. #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!< Rx CRC Register */
  8959. /****************** Bit definition for SPI_TXCRCR register ******************/
  8960. #define SPI_TXCRCR_TXCRC_Pos (0U)
  8961. #define SPI_TXCRCR_TXCRC_Msk (0xFFFFU << SPI_TXCRCR_TXCRC_Pos) /*!< 0x0000FFFF */
  8962. #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!< Tx CRC Register */
  8963. /****************** Bit definition for SPI_I2SCFGR register *****************/
  8964. #define SPI_I2SCFGR_CHLEN_Pos (0U)
  8965. #define SPI_I2SCFGR_CHLEN_Msk (0x1U << SPI_I2SCFGR_CHLEN_Pos) /*!< 0x00000001 */
  8966. #define SPI_I2SCFGR_CHLEN SPI_I2SCFGR_CHLEN_Msk /*!<Channel length (number of bits per audio channel) */
  8967. #define SPI_I2SCFGR_DATLEN_Pos (1U)
  8968. #define SPI_I2SCFGR_DATLEN_Msk (0x3U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000006 */
  8969. #define SPI_I2SCFGR_DATLEN SPI_I2SCFGR_DATLEN_Msk /*!<DATLEN[1:0] bits (Data length to be transferred) */
  8970. #define SPI_I2SCFGR_DATLEN_0 (0x1U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000002 */
  8971. #define SPI_I2SCFGR_DATLEN_1 (0x2U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000004 */
  8972. #define SPI_I2SCFGR_CKPOL_Pos (3U)
  8973. #define SPI_I2SCFGR_CKPOL_Msk (0x1U << SPI_I2SCFGR_CKPOL_Pos) /*!< 0x00000008 */
  8974. #define SPI_I2SCFGR_CKPOL SPI_I2SCFGR_CKPOL_Msk /*!<steady state clock polarity */
  8975. #define SPI_I2SCFGR_I2SSTD_Pos (4U)
  8976. #define SPI_I2SCFGR_I2SSTD_Msk (0x3U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000030 */
  8977. #define SPI_I2SCFGR_I2SSTD SPI_I2SCFGR_I2SSTD_Msk /*!<I2SSTD[1:0] bits (I2S standard selection) */
  8978. #define SPI_I2SCFGR_I2SSTD_0 (0x1U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000010 */
  8979. #define SPI_I2SCFGR_I2SSTD_1 (0x2U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000020 */
  8980. #define SPI_I2SCFGR_PCMSYNC_Pos (7U)
  8981. #define SPI_I2SCFGR_PCMSYNC_Msk (0x1U << SPI_I2SCFGR_PCMSYNC_Pos) /*!< 0x00000080 */
  8982. #define SPI_I2SCFGR_PCMSYNC SPI_I2SCFGR_PCMSYNC_Msk /*!<PCM frame synchronization */
  8983. #define SPI_I2SCFGR_I2SCFG_Pos (8U)
  8984. #define SPI_I2SCFGR_I2SCFG_Msk (0x3U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000300 */
  8985. #define SPI_I2SCFGR_I2SCFG SPI_I2SCFGR_I2SCFG_Msk /*!<I2SCFG[1:0] bits (I2S configuration mode) */
  8986. #define SPI_I2SCFGR_I2SCFG_0 (0x1U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000100 */
  8987. #define SPI_I2SCFGR_I2SCFG_1 (0x2U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000200 */
  8988. #define SPI_I2SCFGR_I2SE_Pos (10U)
  8989. #define SPI_I2SCFGR_I2SE_Msk (0x1U << SPI_I2SCFGR_I2SE_Pos) /*!< 0x00000400 */
  8990. #define SPI_I2SCFGR_I2SE SPI_I2SCFGR_I2SE_Msk /*!<I2S Enable */
  8991. #define SPI_I2SCFGR_I2SMOD_Pos (11U)
  8992. #define SPI_I2SCFGR_I2SMOD_Msk (0x1U << SPI_I2SCFGR_I2SMOD_Pos) /*!< 0x00000800 */
  8993. #define SPI_I2SCFGR_I2SMOD SPI_I2SCFGR_I2SMOD_Msk /*!<I2S mode selection */
  8994. /****************** Bit definition for SPI_I2SPR register *******************/
  8995. #define SPI_I2SPR_I2SDIV_Pos (0U)
  8996. #define SPI_I2SPR_I2SDIV_Msk (0xFFU << SPI_I2SPR_I2SDIV_Pos) /*!< 0x000000FF */
  8997. #define SPI_I2SPR_I2SDIV SPI_I2SPR_I2SDIV_Msk /*!<I2S Linear prescaler */
  8998. #define SPI_I2SPR_ODD_Pos (8U)
  8999. #define SPI_I2SPR_ODD_Msk (0x1U << SPI_I2SPR_ODD_Pos) /*!< 0x00000100 */
  9000. #define SPI_I2SPR_ODD SPI_I2SPR_ODD_Msk /*!<Odd factor for the prescaler */
  9001. #define SPI_I2SPR_MCKOE_Pos (9U)
  9002. #define SPI_I2SPR_MCKOE_Msk (0x1U << SPI_I2SPR_MCKOE_Pos) /*!< 0x00000200 */
  9003. #define SPI_I2SPR_MCKOE SPI_I2SPR_MCKOE_Msk /*!<Master Clock Output Enable */
  9004. /******************************************************************************/
  9005. /* */
  9006. /* System Configuration(SYSCFG) */
  9007. /* */
  9008. /******************************************************************************/
  9009. /***************** Bit definition for SYSCFG_CFGR1 register ****************/
  9010. #define SYSCFG_CFGR1_MEM_MODE_Pos (0U)
  9011. #define SYSCFG_CFGR1_MEM_MODE_Msk (0x3U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000003 */
  9012. #define SYSCFG_CFGR1_MEM_MODE SYSCFG_CFGR1_MEM_MODE_Msk /*!< SYSCFG_Memory Remap Config */
  9013. #define SYSCFG_CFGR1_MEM_MODE_0 (0x00000001U) /*!< Bit 0 */
  9014. #define SYSCFG_CFGR1_MEM_MODE_1 (0x00000002U) /*!< Bit 1 */
  9015. #define SYSCFG_CFGR1_DMA_RMP_Pos (11U)
  9016. #define SYSCFG_CFGR1_DMA_RMP_Msk (0x1FU << SYSCFG_CFGR1_DMA_RMP_Pos) /*!< 0x0000F800 */
  9017. #define SYSCFG_CFGR1_DMA_RMP SYSCFG_CFGR1_DMA_RMP_Msk /*!< DMA remap mask */
  9018. #define SYSCFG_CFGR1_TIM16_DMA_RMP_Pos (11U)
  9019. #define SYSCFG_CFGR1_TIM16_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM16_DMA_RMP_Pos) /*!< 0x00000800 */
  9020. #define SYSCFG_CFGR1_TIM16_DMA_RMP SYSCFG_CFGR1_TIM16_DMA_RMP_Msk /*!< Timer 16 DMA remap */
  9021. #define SYSCFG_CFGR1_TIM17_DMA_RMP_Pos (12U)
  9022. #define SYSCFG_CFGR1_TIM17_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM17_DMA_RMP_Pos) /*!< 0x00001000 */
  9023. #define SYSCFG_CFGR1_TIM17_DMA_RMP SYSCFG_CFGR1_TIM17_DMA_RMP_Msk /*!< Timer 17 DMA remap */
  9024. #define SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Pos (13U)
  9025. #define SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Pos) /*!< 0x00002000 */
  9026. #define SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Msk /*!< Timer 6 / DAC1 Ch1 DMA remap */
  9027. #define SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Pos (14U)
  9028. #define SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Pos) /*!< 0x00004000 */
  9029. #define SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Msk /*!< Timer 7 / DAC1 Ch2 DMA remap */
  9030. #define SYSCFG_CFGR1_TIM18DAC2Ch1_DMA_RMP_Pos (15U)
  9031. #define SYSCFG_CFGR1_TIM18DAC2Ch1_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM18DAC2Ch1_DMA_RMP_Pos) /*!< 0x00008000 */
  9032. #define SYSCFG_CFGR1_TIM18DAC2Ch1_DMA_RMP SYSCFG_CFGR1_TIM18DAC2Ch1_DMA_RMP_Msk /*!< Timer 18 / DAC2 Ch1 DMA remap */
  9033. #define SYSCFG_CFGR1_I2C_PB6_FMP_Pos (16U)
  9034. #define SYSCFG_CFGR1_I2C_PB6_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB6_FMP_Pos) /*!< 0x00010000 */
  9035. #define SYSCFG_CFGR1_I2C_PB6_FMP SYSCFG_CFGR1_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */
  9036. #define SYSCFG_CFGR1_I2C_PB7_FMP_Pos (17U)
  9037. #define SYSCFG_CFGR1_I2C_PB7_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB7_FMP_Pos) /*!< 0x00020000 */
  9038. #define SYSCFG_CFGR1_I2C_PB7_FMP SYSCFG_CFGR1_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */
  9039. #define SYSCFG_CFGR1_I2C_PB8_FMP_Pos (18U)
  9040. #define SYSCFG_CFGR1_I2C_PB8_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB8_FMP_Pos) /*!< 0x00040000 */
  9041. #define SYSCFG_CFGR1_I2C_PB8_FMP SYSCFG_CFGR1_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */
  9042. #define SYSCFG_CFGR1_I2C_PB9_FMP_Pos (19U)
  9043. #define SYSCFG_CFGR1_I2C_PB9_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB9_FMP_Pos) /*!< 0x00080000 */
  9044. #define SYSCFG_CFGR1_I2C_PB9_FMP SYSCFG_CFGR1_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */
  9045. #define SYSCFG_CFGR1_I2C1_FMP_Pos (20U)
  9046. #define SYSCFG_CFGR1_I2C1_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C1_FMP_Pos) /*!< 0x00100000 */
  9047. #define SYSCFG_CFGR1_I2C1_FMP SYSCFG_CFGR1_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */
  9048. #define SYSCFG_CFGR1_I2C2_FMP_Pos (21U)
  9049. #define SYSCFG_CFGR1_I2C2_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C2_FMP_Pos) /*!< 0x00200000 */
  9050. #define SYSCFG_CFGR1_I2C2_FMP SYSCFG_CFGR1_I2C2_FMP_Msk /*!< I2C2 Fast mode plus */
  9051. #define SYSCFG_CFGR1_VBAT_Pos (24U)
  9052. #define SYSCFG_CFGR1_VBAT_Msk (0x1U << SYSCFG_CFGR1_VBAT_Pos) /*!< 0x01000000 */
  9053. #define SYSCFG_CFGR1_VBAT SYSCFG_CFGR1_VBAT_Msk /*!< VBAT monitoring */
  9054. #define SYSCFG_CFGR1_FPU_IE_Pos (26U)
  9055. #define SYSCFG_CFGR1_FPU_IE_Msk (0x3FU << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0xFC000000 */
  9056. #define SYSCFG_CFGR1_FPU_IE SYSCFG_CFGR1_FPU_IE_Msk /*!< Floating Point Unit Interrupt Enable */
  9057. #define SYSCFG_CFGR1_FPU_IE_0 (0x01U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x04000000 */
  9058. #define SYSCFG_CFGR1_FPU_IE_1 (0x02U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x08000000 */
  9059. #define SYSCFG_CFGR1_FPU_IE_2 (0x04U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x10000000 */
  9060. #define SYSCFG_CFGR1_FPU_IE_3 (0x08U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x20000000 */
  9061. #define SYSCFG_CFGR1_FPU_IE_4 (0x10U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x40000000 */
  9062. #define SYSCFG_CFGR1_FPU_IE_5 (0x20U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x80000000 */
  9063. /***************** Bit definition for SYSCFG_EXTICR1 register ***************/
  9064. #define SYSCFG_EXTICR1_EXTI0_Pos (0U)
  9065. #define SYSCFG_EXTICR1_EXTI0_Msk (0xFU << SYSCFG_EXTICR1_EXTI0_Pos) /*!< 0x0000000F */
  9066. #define SYSCFG_EXTICR1_EXTI0 SYSCFG_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */
  9067. #define SYSCFG_EXTICR1_EXTI1_Pos (4U)
  9068. #define SYSCFG_EXTICR1_EXTI1_Msk (0xFU << SYSCFG_EXTICR1_EXTI1_Pos) /*!< 0x000000F0 */
  9069. #define SYSCFG_EXTICR1_EXTI1 SYSCFG_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */
  9070. #define SYSCFG_EXTICR1_EXTI2_Pos (8U)
  9071. #define SYSCFG_EXTICR1_EXTI2_Msk (0xFU << SYSCFG_EXTICR1_EXTI2_Pos) /*!< 0x00000F00 */
  9072. #define SYSCFG_EXTICR1_EXTI2 SYSCFG_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */
  9073. #define SYSCFG_EXTICR1_EXTI3_Pos (12U)
  9074. #define SYSCFG_EXTICR1_EXTI3_Msk (0xFU << SYSCFG_EXTICR1_EXTI3_Pos) /*!< 0x0000F000 */
  9075. #define SYSCFG_EXTICR1_EXTI3 SYSCFG_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */
  9076. /*!<*
  9077. * @brief EXTI0 configuration
  9078. */
  9079. #define SYSCFG_EXTICR1_EXTI0_PA (0x00000000U) /*!< PA[0] pin */
  9080. #define SYSCFG_EXTICR1_EXTI0_PB (0x00000001U) /*!< PB[0] pin */
  9081. #define SYSCFG_EXTICR1_EXTI0_PC (0x00000002U) /*!< PC[0] pin */
  9082. #define SYSCFG_EXTICR1_EXTI0_PD (0x00000003U) /*!< PD[0] pin */
  9083. #define SYSCFG_EXTICR1_EXTI0_PE (0x00000004U) /*!< PE[0] pin */
  9084. #define SYSCFG_EXTICR1_EXTI0_PF (0x00000005U) /*!< PF[0] pin */
  9085. /*!<*
  9086. * @brief EXTI1 configuration
  9087. */
  9088. #define SYSCFG_EXTICR1_EXTI1_PA (0x00000000U) /*!< PA[1] pin */
  9089. #define SYSCFG_EXTICR1_EXTI1_PB (0x00000010U) /*!< PB[1] pin */
  9090. #define SYSCFG_EXTICR1_EXTI1_PC (0x00000020U) /*!< PC[1] pin */
  9091. #define SYSCFG_EXTICR1_EXTI1_PD (0x00000030U) /*!< PD[1] pin */
  9092. #define SYSCFG_EXTICR1_EXTI1_PE (0x00000040U) /*!< PE[1] pin */
  9093. #define SYSCFG_EXTICR1_EXTI1_PF (0x00000050U) /*!< PF[1] pin */
  9094. /*!<*
  9095. * @brief EXTI2 configuration
  9096. */
  9097. #define SYSCFG_EXTICR1_EXTI2_PA (0x00000000U) /*!< PA[2] pin */
  9098. #define SYSCFG_EXTICR1_EXTI2_PB (0x00000100U) /*!< PB[2] pin */
  9099. #define SYSCFG_EXTICR1_EXTI2_PC (0x00000200U) /*!< PC[2] pin */
  9100. #define SYSCFG_EXTICR1_EXTI2_PD (0x00000300U) /*!< PD[2] pin */
  9101. #define SYSCFG_EXTICR1_EXTI2_PE (0x00000400U) /*!< PE[2] pin */
  9102. #define SYSCFG_EXTICR1_EXTI2_PF (0x00000500U) /*!< PF[2] pin */
  9103. /*!<*
  9104. * @brief EXTI3 configuration
  9105. */
  9106. #define SYSCFG_EXTICR1_EXTI3_PA (0x00000000U) /*!< PA[3] pin */
  9107. #define SYSCFG_EXTICR1_EXTI3_PB (0x00001000U) /*!< PB[3] pin */
  9108. #define SYSCFG_EXTICR1_EXTI3_PC (0x00002000U) /*!< PC[3] pin */
  9109. #define SYSCFG_EXTICR1_EXTI3_PD (0x00003000U) /*!< PD[3] pin */
  9110. #define SYSCFG_EXTICR1_EXTI3_PE (0x00004000U) /*!< PE[3] pin */
  9111. /***************** Bit definition for SYSCFG_EXTICR2 register ***************/
  9112. #define SYSCFG_EXTICR2_EXTI4_Pos (0U)
  9113. #define SYSCFG_EXTICR2_EXTI4_Msk (0xFU << SYSCFG_EXTICR2_EXTI4_Pos) /*!< 0x0000000F */
  9114. #define SYSCFG_EXTICR2_EXTI4 SYSCFG_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */
  9115. #define SYSCFG_EXTICR2_EXTI5_Pos (4U)
  9116. #define SYSCFG_EXTICR2_EXTI5_Msk (0xFU << SYSCFG_EXTICR2_EXTI5_Pos) /*!< 0x000000F0 */
  9117. #define SYSCFG_EXTICR2_EXTI5 SYSCFG_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */
  9118. #define SYSCFG_EXTICR2_EXTI6_Pos (8U)
  9119. #define SYSCFG_EXTICR2_EXTI6_Msk (0xFU << SYSCFG_EXTICR2_EXTI6_Pos) /*!< 0x00000F00 */
  9120. #define SYSCFG_EXTICR2_EXTI6 SYSCFG_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */
  9121. #define SYSCFG_EXTICR2_EXTI7_Pos (12U)
  9122. #define SYSCFG_EXTICR2_EXTI7_Msk (0xFU << SYSCFG_EXTICR2_EXTI7_Pos) /*!< 0x0000F000 */
  9123. #define SYSCFG_EXTICR2_EXTI7 SYSCFG_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */
  9124. /*!<*
  9125. * @brief EXTI4 configuration
  9126. */
  9127. #define SYSCFG_EXTICR2_EXTI4_PA (0x00000000U) /*!< PA[4] pin */
  9128. #define SYSCFG_EXTICR2_EXTI4_PB (0x00000001U) /*!< PB[4] pin */
  9129. #define SYSCFG_EXTICR2_EXTI4_PC (0x00000002U) /*!< PC[4] pin */
  9130. #define SYSCFG_EXTICR2_EXTI4_PD (0x00000003U) /*!< PD[4] pin */
  9131. #define SYSCFG_EXTICR2_EXTI4_PE (0x00000004U) /*!< PE[4] pin */
  9132. #define SYSCFG_EXTICR2_EXTI4_PF (0x00000005U) /*!< PF[4] pin */
  9133. /*!<*
  9134. * @brief EXTI5 configuration
  9135. */
  9136. #define SYSCFG_EXTICR2_EXTI5_PA (0x00000000U) /*!< PA[5] pin */
  9137. #define SYSCFG_EXTICR2_EXTI5_PB (0x00000010U) /*!< PB[5] pin */
  9138. #define SYSCFG_EXTICR2_EXTI5_PC (0x00000020U) /*!< PC[5] pin */
  9139. #define SYSCFG_EXTICR2_EXTI5_PD (0x00000030U) /*!< PD[5] pin */
  9140. #define SYSCFG_EXTICR2_EXTI5_PE (0x00000040U) /*!< PE[5] pin */
  9141. /*!<*
  9142. * @brief EXTI6 configuration
  9143. */
  9144. #define SYSCFG_EXTICR2_EXTI6_PA (0x00000000U) /*!< PA[6] pin */
  9145. #define SYSCFG_EXTICR2_EXTI6_PB (0x00000100U) /*!< PB[6] pin */
  9146. #define SYSCFG_EXTICR2_EXTI6_PC (0x00000200U) /*!< PC[6] pin */
  9147. #define SYSCFG_EXTICR2_EXTI6_PD (0x00000300U) /*!< PD[6] pin */
  9148. #define SYSCFG_EXTICR2_EXTI6_PE (0x00000400U) /*!< PE[6] pin */
  9149. #define SYSCFG_EXTICR2_EXTI6_PF (0x00000500U) /*!< PF[6] pin */
  9150. /*!<*
  9151. * @brief EXTI7 configuration
  9152. */
  9153. #define SYSCFG_EXTICR2_EXTI7_PA (0x00000000U) /*!< PA[7] pin */
  9154. #define SYSCFG_EXTICR2_EXTI7_PB (0x00001000U) /*!< PB[7] pin */
  9155. #define SYSCFG_EXTICR2_EXTI7_PC (0x00002000U) /*!< PC[7] pin */
  9156. #define SYSCFG_EXTICR2_EXTI7_PD (0x00003000U) /*!< PD[7] pin */
  9157. #define SYSCFG_EXTICR2_EXTI7_PE (0x00004000U) /*!< PE[7] pin */
  9158. #define SYSCFG_EXTICR2_EXTI7_PF (0x00005000U) /*!< PF[7] pin */
  9159. /***************** Bit definition for SYSCFG_EXTICR3 register ***************/
  9160. #define SYSCFG_EXTICR3_EXTI8_Pos (0U)
  9161. #define SYSCFG_EXTICR3_EXTI8_Msk (0xFU << SYSCFG_EXTICR3_EXTI8_Pos) /*!< 0x0000000F */
  9162. #define SYSCFG_EXTICR3_EXTI8 SYSCFG_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */
  9163. #define SYSCFG_EXTICR3_EXTI9_Pos (4U)
  9164. #define SYSCFG_EXTICR3_EXTI9_Msk (0xFU << SYSCFG_EXTICR3_EXTI9_Pos) /*!< 0x000000F0 */
  9165. #define SYSCFG_EXTICR3_EXTI9 SYSCFG_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */
  9166. #define SYSCFG_EXTICR3_EXTI10_Pos (8U)
  9167. #define SYSCFG_EXTICR3_EXTI10_Msk (0xFU << SYSCFG_EXTICR3_EXTI10_Pos) /*!< 0x00000F00 */
  9168. #define SYSCFG_EXTICR3_EXTI10 SYSCFG_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */
  9169. #define SYSCFG_EXTICR3_EXTI11_Pos (12U)
  9170. #define SYSCFG_EXTICR3_EXTI11_Msk (0xFU << SYSCFG_EXTICR3_EXTI11_Pos) /*!< 0x0000F000 */
  9171. #define SYSCFG_EXTICR3_EXTI11 SYSCFG_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */
  9172. /*!<*
  9173. * @brief EXTI8 configuration
  9174. */
  9175. #define SYSCFG_EXTICR3_EXTI8_PA (0x00000000U) /*!< PA[8] pin */
  9176. #define SYSCFG_EXTICR3_EXTI8_PB (0x00000001U) /*!< PB[8] pin */
  9177. #define SYSCFG_EXTICR3_EXTI8_PC (0x00000002U) /*!< PC[8] pin */
  9178. #define SYSCFG_EXTICR3_EXTI8_PD (0x00000003U) /*!< PD[8] pin */
  9179. #define SYSCFG_EXTICR3_EXTI8_PE (0x00000004U) /*!< PE[8] pin */
  9180. /*!<*
  9181. * @brief EXTI9 configuration
  9182. */
  9183. #define SYSCFG_EXTICR3_EXTI9_PA (0x00000000U) /*!< PA[9] pin */
  9184. #define SYSCFG_EXTICR3_EXTI9_PB (0x00000010U) /*!< PB[9] pin */
  9185. #define SYSCFG_EXTICR3_EXTI9_PC (0x00000020U) /*!< PC[9] pin */
  9186. #define SYSCFG_EXTICR3_EXTI9_PD (0x00000030U) /*!< PD[9] pin */
  9187. #define SYSCFG_EXTICR3_EXTI9_PE (0x00000040U) /*!< PE[9] pin */
  9188. #define SYSCFG_EXTICR3_EXTI9_PF (0x00000050U) /*!< PF[9] pin */
  9189. /*!<*
  9190. * @brief EXTI10 configuration
  9191. */
  9192. #define SYSCFG_EXTICR3_EXTI10_PA (0x00000000U) /*!< PA[10] pin */
  9193. #define SYSCFG_EXTICR3_EXTI10_PB (0x00000100U) /*!< PB[10] pin */
  9194. #define SYSCFG_EXTICR3_EXTI10_PC (0x00000200U) /*!< PC[10] pin */
  9195. #define SYSCFG_EXTICR3_EXTI10_PD (0x00000300U) /*!< PD[10] pin */
  9196. #define SYSCFG_EXTICR3_EXTI10_PE (0x00000400U) /*!< PE[10] pin */
  9197. #define SYSCFG_EXTICR3_EXTI10_PF (0x00000500U) /*!< PF[10] pin */
  9198. /*!<*
  9199. * @brief EXTI11 configuration
  9200. */
  9201. #define SYSCFG_EXTICR3_EXTI11_PA (0x00000000U) /*!< PA[11] pin */
  9202. #define SYSCFG_EXTICR3_EXTI11_PB (0x00001000U) /*!< PB[11] pin */
  9203. #define SYSCFG_EXTICR3_EXTI11_PC (0x00002000U) /*!< PC[11] pin */
  9204. #define SYSCFG_EXTICR3_EXTI11_PD (0x00003000U) /*!< PD[11] pin */
  9205. #define SYSCFG_EXTICR3_EXTI11_PE (0x00004000U) /*!< PE[11] pin */
  9206. /***************** Bit definition for SYSCFG_EXTICR4 register *****************/
  9207. #define SYSCFG_EXTICR4_EXTI12_Pos (0U)
  9208. #define SYSCFG_EXTICR4_EXTI12_Msk (0xFU << SYSCFG_EXTICR4_EXTI12_Pos) /*!< 0x0000000F */
  9209. #define SYSCFG_EXTICR4_EXTI12 SYSCFG_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */
  9210. #define SYSCFG_EXTICR4_EXTI13_Pos (4U)
  9211. #define SYSCFG_EXTICR4_EXTI13_Msk (0xFU << SYSCFG_EXTICR4_EXTI13_Pos) /*!< 0x000000F0 */
  9212. #define SYSCFG_EXTICR4_EXTI13 SYSCFG_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */
  9213. #define SYSCFG_EXTICR4_EXTI14_Pos (8U)
  9214. #define SYSCFG_EXTICR4_EXTI14_Msk (0xFU << SYSCFG_EXTICR4_EXTI14_Pos) /*!< 0x00000F00 */
  9215. #define SYSCFG_EXTICR4_EXTI14 SYSCFG_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */
  9216. #define SYSCFG_EXTICR4_EXTI15_Pos (12U)
  9217. #define SYSCFG_EXTICR4_EXTI15_Msk (0xFU << SYSCFG_EXTICR4_EXTI15_Pos) /*!< 0x0000F000 */
  9218. #define SYSCFG_EXTICR4_EXTI15 SYSCFG_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */
  9219. /*!<*
  9220. * @brief EXTI12 configuration
  9221. */
  9222. #define SYSCFG_EXTICR4_EXTI12_PA (0x00000000U) /*!< PA[12] pin */
  9223. #define SYSCFG_EXTICR4_EXTI12_PC (0x00000002U) /*!< PC[12] pin */
  9224. #define SYSCFG_EXTICR4_EXTI12_PD (0x00000003U) /*!< PD[12] pin */
  9225. #define SYSCFG_EXTICR4_EXTI12_PE (0x00000004U) /*!< PE[12] pin */
  9226. /*!<*
  9227. * @brief EXTI13 configuration
  9228. */
  9229. #define SYSCFG_EXTICR4_EXTI13_PA (0x00000000U) /*!< PA[13] pin */
  9230. #define SYSCFG_EXTICR4_EXTI13_PC (0x00000020U) /*!< PC[13] pin */
  9231. #define SYSCFG_EXTICR4_EXTI13_PD (0x00000030U) /*!< PD[13] pin */
  9232. #define SYSCFG_EXTICR4_EXTI13_PE (0x00000040U) /*!< PE[13] pin */
  9233. /*!<*
  9234. * @brief EXTI14 configuration
  9235. */
  9236. #define SYSCFG_EXTICR4_EXTI14_PA (0x00000000U) /*!< PA[14] pin */
  9237. #define SYSCFG_EXTICR4_EXTI14_PB (0x00000100U) /*!< PB[14] pin */
  9238. #define SYSCFG_EXTICR4_EXTI14_PC (0x00000200U) /*!< PC[14] pin */
  9239. #define SYSCFG_EXTICR4_EXTI14_PD (0x00000300U) /*!< PD[14] pin */
  9240. #define SYSCFG_EXTICR4_EXTI14_PE (0x00000400U) /*!< PE[14] pin */
  9241. /*!<*
  9242. * @brief EXTI15 configuration
  9243. */
  9244. #define SYSCFG_EXTICR4_EXTI15_PA (0x00000000U) /*!< PA[15] pin */
  9245. #define SYSCFG_EXTICR4_EXTI15_PB (0x00001000U) /*!< PB[15] pin */
  9246. #define SYSCFG_EXTICR4_EXTI15_PC (0x00002000U) /*!< PC[15] pin */
  9247. #define SYSCFG_EXTICR4_EXTI15_PD (0x00003000U) /*!< PD[15] pin */
  9248. #define SYSCFG_EXTICR4_EXTI15_PE (0x00004000U) /*!< PE[15] pin */
  9249. /***************** Bit definition for SYSCFG_CFGR2 register ****************/
  9250. #define SYSCFG_CFGR2_LOCKUP_LOCK_Pos (0U)
  9251. #define SYSCFG_CFGR2_LOCKUP_LOCK_Msk (0x1U << SYSCFG_CFGR2_LOCKUP_LOCK_Pos) /*!< 0x00000001 */
  9252. #define SYSCFG_CFGR2_LOCKUP_LOCK SYSCFG_CFGR2_LOCKUP_LOCK_Msk /*!< Enables and locks the LOCKUP (Hardfault) output of CortexM4 with Break Input of TIMx */
  9253. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos (1U)
  9254. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk (0x1U << SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos) /*!< 0x00000002 */
  9255. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk /*!< Enables and locks the SRAM_PARITY error signal with Break Input of TIMx */
  9256. #define SYSCFG_CFGR2_SRAM_PE_Pos (8U)
  9257. #define SYSCFG_CFGR2_SRAM_PE_Msk (0x1U << SYSCFG_CFGR2_SRAM_PE_Pos) /*!< 0x00000100 */
  9258. #define SYSCFG_CFGR2_SRAM_PE SYSCFG_CFGR2_SRAM_PE_Msk /*!< SRAM Parity error flag */
  9259. /******************************************************************************/
  9260. /* */
  9261. /* TIM */
  9262. /* */
  9263. /******************************************************************************/
  9264. /******************* Bit definition for TIM_CR1 register ********************/
  9265. #define TIM_CR1_CEN_Pos (0U)
  9266. #define TIM_CR1_CEN_Msk (0x1U << TIM_CR1_CEN_Pos) /*!< 0x00000001 */
  9267. #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */
  9268. #define TIM_CR1_UDIS_Pos (1U)
  9269. #define TIM_CR1_UDIS_Msk (0x1U << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */
  9270. #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */
  9271. #define TIM_CR1_URS_Pos (2U)
  9272. #define TIM_CR1_URS_Msk (0x1U << TIM_CR1_URS_Pos) /*!< 0x00000004 */
  9273. #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */
  9274. #define TIM_CR1_OPM_Pos (3U)
  9275. #define TIM_CR1_OPM_Msk (0x1U << TIM_CR1_OPM_Pos) /*!< 0x00000008 */
  9276. #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */
  9277. #define TIM_CR1_DIR_Pos (4U)
  9278. #define TIM_CR1_DIR_Msk (0x1U << TIM_CR1_DIR_Pos) /*!< 0x00000010 */
  9279. #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */
  9280. #define TIM_CR1_CMS_Pos (5U)
  9281. #define TIM_CR1_CMS_Msk (0x3U << TIM_CR1_CMS_Pos) /*!< 0x00000060 */
  9282. #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */
  9283. #define TIM_CR1_CMS_0 (0x1U << TIM_CR1_CMS_Pos) /*!< 0x00000020 */
  9284. #define TIM_CR1_CMS_1 (0x2U << TIM_CR1_CMS_Pos) /*!< 0x00000040 */
  9285. #define TIM_CR1_ARPE_Pos (7U)
  9286. #define TIM_CR1_ARPE_Msk (0x1U << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */
  9287. #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */
  9288. #define TIM_CR1_CKD_Pos (8U)
  9289. #define TIM_CR1_CKD_Msk (0x3U << TIM_CR1_CKD_Pos) /*!< 0x00000300 */
  9290. #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */
  9291. #define TIM_CR1_CKD_0 (0x1U << TIM_CR1_CKD_Pos) /*!< 0x00000100 */
  9292. #define TIM_CR1_CKD_1 (0x2U << TIM_CR1_CKD_Pos) /*!< 0x00000200 */
  9293. /******************* Bit definition for TIM_CR2 register ********************/
  9294. #define TIM_CR2_CCPC_Pos (0U)
  9295. #define TIM_CR2_CCPC_Msk (0x1U << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  9296. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  9297. #define TIM_CR2_CCUS_Pos (2U)
  9298. #define TIM_CR2_CCUS_Msk (0x1U << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  9299. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  9300. #define TIM_CR2_CCDS_Pos (3U)
  9301. #define TIM_CR2_CCDS_Msk (0x1U << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  9302. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  9303. #define TIM_CR2_MMS_Pos (4U)
  9304. #define TIM_CR2_MMS_Msk (0x7U << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  9305. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  9306. #define TIM_CR2_MMS_0 (0x1U << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  9307. #define TIM_CR2_MMS_1 (0x2U << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  9308. #define TIM_CR2_MMS_2 (0x4U << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  9309. #define TIM_CR2_TI1S_Pos (7U)
  9310. #define TIM_CR2_TI1S_Msk (0x1U << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  9311. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  9312. #define TIM_CR2_OIS1_Pos (8U)
  9313. #define TIM_CR2_OIS1_Msk (0x1U << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  9314. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  9315. #define TIM_CR2_OIS1N_Pos (9U)
  9316. #define TIM_CR2_OIS1N_Msk (0x1U << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  9317. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  9318. #define TIM_CR2_OIS2_Pos (10U)
  9319. #define TIM_CR2_OIS2_Msk (0x1U << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  9320. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  9321. /******************* Bit definition for TIM_SMCR register *******************/
  9322. #define TIM_SMCR_SMS_Pos (0U)
  9323. #define TIM_SMCR_SMS_Msk (0x7U << TIM_SMCR_SMS_Pos) /*!< 0x00000007 */
  9324. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  9325. #define TIM_SMCR_SMS_0 (0x00000001U) /*!<Bit 0 */
  9326. #define TIM_SMCR_SMS_1 (0x00000002U) /*!<Bit 1 */
  9327. #define TIM_SMCR_SMS_2 (0x00000004U) /*!<Bit 2 */
  9328. #define TIM_SMCR_TS_Pos (4U)
  9329. #define TIM_SMCR_TS_Msk (0x7U << TIM_SMCR_TS_Pos) /*!< 0x00000070 */
  9330. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */
  9331. #define TIM_SMCR_TS_0 (0x1U << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  9332. #define TIM_SMCR_TS_1 (0x2U << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  9333. #define TIM_SMCR_TS_2 (0x4U << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  9334. #define TIM_SMCR_MSM_Pos (7U)
  9335. #define TIM_SMCR_MSM_Msk (0x1U << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  9336. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  9337. #define TIM_SMCR_ETF_Pos (8U)
  9338. #define TIM_SMCR_ETF_Msk (0xFU << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  9339. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  9340. #define TIM_SMCR_ETF_0 (0x1U << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  9341. #define TIM_SMCR_ETF_1 (0x2U << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  9342. #define TIM_SMCR_ETF_2 (0x4U << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  9343. #define TIM_SMCR_ETF_3 (0x8U << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  9344. #define TIM_SMCR_ETPS_Pos (12U)
  9345. #define TIM_SMCR_ETPS_Msk (0x3U << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  9346. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  9347. #define TIM_SMCR_ETPS_0 (0x1U << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  9348. #define TIM_SMCR_ETPS_1 (0x2U << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  9349. #define TIM_SMCR_ECE_Pos (14U)
  9350. #define TIM_SMCR_ECE_Msk (0x1U << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  9351. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  9352. #define TIM_SMCR_ETP_Pos (15U)
  9353. #define TIM_SMCR_ETP_Msk (0x1U << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  9354. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  9355. /******************* Bit definition for TIM_DIER register *******************/
  9356. #define TIM_DIER_UIE_Pos (0U)
  9357. #define TIM_DIER_UIE_Msk (0x1U << TIM_DIER_UIE_Pos) /*!< 0x00000001 */
  9358. #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */
  9359. #define TIM_DIER_CC1IE_Pos (1U)
  9360. #define TIM_DIER_CC1IE_Msk (0x1U << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */
  9361. #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */
  9362. #define TIM_DIER_CC2IE_Pos (2U)
  9363. #define TIM_DIER_CC2IE_Msk (0x1U << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */
  9364. #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */
  9365. #define TIM_DIER_CC3IE_Pos (3U)
  9366. #define TIM_DIER_CC3IE_Msk (0x1U << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */
  9367. #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */
  9368. #define TIM_DIER_CC4IE_Pos (4U)
  9369. #define TIM_DIER_CC4IE_Msk (0x1U << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */
  9370. #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */
  9371. #define TIM_DIER_COMIE_Pos (5U)
  9372. #define TIM_DIER_COMIE_Msk (0x1U << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */
  9373. #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */
  9374. #define TIM_DIER_TIE_Pos (6U)
  9375. #define TIM_DIER_TIE_Msk (0x1U << TIM_DIER_TIE_Pos) /*!< 0x00000040 */
  9376. #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */
  9377. #define TIM_DIER_BIE_Pos (7U)
  9378. #define TIM_DIER_BIE_Msk (0x1U << TIM_DIER_BIE_Pos) /*!< 0x00000080 */
  9379. #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */
  9380. #define TIM_DIER_UDE_Pos (8U)
  9381. #define TIM_DIER_UDE_Msk (0x1U << TIM_DIER_UDE_Pos) /*!< 0x00000100 */
  9382. #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */
  9383. #define TIM_DIER_CC1DE_Pos (9U)
  9384. #define TIM_DIER_CC1DE_Msk (0x1U << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */
  9385. #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */
  9386. #define TIM_DIER_CC2DE_Pos (10U)
  9387. #define TIM_DIER_CC2DE_Msk (0x1U << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */
  9388. #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */
  9389. #define TIM_DIER_CC3DE_Pos (11U)
  9390. #define TIM_DIER_CC3DE_Msk (0x1U << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */
  9391. #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */
  9392. #define TIM_DIER_CC4DE_Pos (12U)
  9393. #define TIM_DIER_CC4DE_Msk (0x1U << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */
  9394. #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */
  9395. #define TIM_DIER_COMDE_Pos (13U)
  9396. #define TIM_DIER_COMDE_Msk (0x1U << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */
  9397. #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */
  9398. #define TIM_DIER_TDE_Pos (14U)
  9399. #define TIM_DIER_TDE_Msk (0x1U << TIM_DIER_TDE_Pos) /*!< 0x00004000 */
  9400. #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */
  9401. /******************** Bit definition for TIM_SR register ********************/
  9402. #define TIM_SR_UIF_Pos (0U)
  9403. #define TIM_SR_UIF_Msk (0x1U << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  9404. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  9405. #define TIM_SR_CC1IF_Pos (1U)
  9406. #define TIM_SR_CC1IF_Msk (0x1U << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  9407. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  9408. #define TIM_SR_CC2IF_Pos (2U)
  9409. #define TIM_SR_CC2IF_Msk (0x1U << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  9410. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  9411. #define TIM_SR_CC3IF_Pos (3U)
  9412. #define TIM_SR_CC3IF_Msk (0x1U << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  9413. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  9414. #define TIM_SR_CC4IF_Pos (4U)
  9415. #define TIM_SR_CC4IF_Msk (0x1U << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  9416. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  9417. #define TIM_SR_COMIF_Pos (5U)
  9418. #define TIM_SR_COMIF_Msk (0x1U << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  9419. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  9420. #define TIM_SR_TIF_Pos (6U)
  9421. #define TIM_SR_TIF_Msk (0x1U << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  9422. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  9423. #define TIM_SR_BIF_Pos (7U)
  9424. #define TIM_SR_BIF_Msk (0x1U << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  9425. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  9426. #define TIM_SR_CC1OF_Pos (9U)
  9427. #define TIM_SR_CC1OF_Msk (0x1U << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  9428. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  9429. #define TIM_SR_CC2OF_Pos (10U)
  9430. #define TIM_SR_CC2OF_Msk (0x1U << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  9431. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  9432. #define TIM_SR_CC3OF_Pos (11U)
  9433. #define TIM_SR_CC3OF_Msk (0x1U << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  9434. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  9435. #define TIM_SR_CC4OF_Pos (12U)
  9436. #define TIM_SR_CC4OF_Msk (0x1U << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  9437. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  9438. /******************* Bit definition for TIM_EGR register ********************/
  9439. #define TIM_EGR_UG_Pos (0U)
  9440. #define TIM_EGR_UG_Msk (0x1U << TIM_EGR_UG_Pos) /*!< 0x00000001 */
  9441. #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */
  9442. #define TIM_EGR_CC1G_Pos (1U)
  9443. #define TIM_EGR_CC1G_Msk (0x1U << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */
  9444. #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */
  9445. #define TIM_EGR_CC2G_Pos (2U)
  9446. #define TIM_EGR_CC2G_Msk (0x1U << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */
  9447. #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */
  9448. #define TIM_EGR_CC3G_Pos (3U)
  9449. #define TIM_EGR_CC3G_Msk (0x1U << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */
  9450. #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */
  9451. #define TIM_EGR_CC4G_Pos (4U)
  9452. #define TIM_EGR_CC4G_Msk (0x1U << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */
  9453. #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */
  9454. #define TIM_EGR_COMG_Pos (5U)
  9455. #define TIM_EGR_COMG_Msk (0x1U << TIM_EGR_COMG_Pos) /*!< 0x00000020 */
  9456. #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */
  9457. #define TIM_EGR_TG_Pos (6U)
  9458. #define TIM_EGR_TG_Msk (0x1U << TIM_EGR_TG_Pos) /*!< 0x00000040 */
  9459. #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */
  9460. #define TIM_EGR_BG_Pos (7U)
  9461. #define TIM_EGR_BG_Msk (0x1U << TIM_EGR_BG_Pos) /*!< 0x00000080 */
  9462. #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */
  9463. /****************** Bit definition for TIM_CCMR1 register *******************/
  9464. #define TIM_CCMR1_CC1S_Pos (0U)
  9465. #define TIM_CCMR1_CC1S_Msk (0x3U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  9466. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  9467. #define TIM_CCMR1_CC1S_0 (0x1U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  9468. #define TIM_CCMR1_CC1S_1 (0x2U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  9469. #define TIM_CCMR1_OC1FE_Pos (2U)
  9470. #define TIM_CCMR1_OC1FE_Msk (0x1U << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  9471. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  9472. #define TIM_CCMR1_OC1PE_Pos (3U)
  9473. #define TIM_CCMR1_OC1PE_Msk (0x1U << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  9474. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  9475. #define TIM_CCMR1_OC1M_Pos (4U)
  9476. #define TIM_CCMR1_OC1M_Msk (0x7U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000070 */
  9477. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  9478. #define TIM_CCMR1_OC1M_0 (0x00000010U) /*!<Bit 0 */
  9479. #define TIM_CCMR1_OC1M_1 (0x00000020U) /*!<Bit 1 */
  9480. #define TIM_CCMR1_OC1M_2 (0x00000040U) /*!<Bit 2 */
  9481. #define TIM_CCMR1_OC1CE_Pos (7U)
  9482. #define TIM_CCMR1_OC1CE_Msk (0x1U << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  9483. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */
  9484. #define TIM_CCMR1_CC2S_Pos (8U)
  9485. #define TIM_CCMR1_CC2S_Msk (0x3U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  9486. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  9487. #define TIM_CCMR1_CC2S_0 (0x1U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  9488. #define TIM_CCMR1_CC2S_1 (0x2U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  9489. #define TIM_CCMR1_OC2FE_Pos (10U)
  9490. #define TIM_CCMR1_OC2FE_Msk (0x1U << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  9491. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  9492. #define TIM_CCMR1_OC2PE_Pos (11U)
  9493. #define TIM_CCMR1_OC2PE_Msk (0x1U << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  9494. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  9495. #define TIM_CCMR1_OC2M_Pos (12U)
  9496. #define TIM_CCMR1_OC2M_Msk (0x7U << TIM_CCMR1_OC2M_Pos) /*!< 0x00007000 */
  9497. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  9498. #define TIM_CCMR1_OC2M_0 (0x00001000U) /*!<Bit 0 */
  9499. #define TIM_CCMR1_OC2M_1 (0x00002000U) /*!<Bit 1 */
  9500. #define TIM_CCMR1_OC2M_2 (0x00004000U) /*!<Bit 2 */
  9501. #define TIM_CCMR1_OC2CE_Pos (15U)
  9502. #define TIM_CCMR1_OC2CE_Msk (0x1U << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  9503. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  9504. /*----------------------------------------------------------------------------*/
  9505. #define TIM_CCMR1_IC1PSC_Pos (2U)
  9506. #define TIM_CCMR1_IC1PSC_Msk (0x3U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  9507. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  9508. #define TIM_CCMR1_IC1PSC_0 (0x1U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  9509. #define TIM_CCMR1_IC1PSC_1 (0x2U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  9510. #define TIM_CCMR1_IC1F_Pos (4U)
  9511. #define TIM_CCMR1_IC1F_Msk (0xFU << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  9512. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  9513. #define TIM_CCMR1_IC1F_0 (0x1U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  9514. #define TIM_CCMR1_IC1F_1 (0x2U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  9515. #define TIM_CCMR1_IC1F_2 (0x4U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  9516. #define TIM_CCMR1_IC1F_3 (0x8U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  9517. #define TIM_CCMR1_IC2PSC_Pos (10U)
  9518. #define TIM_CCMR1_IC2PSC_Msk (0x3U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  9519. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  9520. #define TIM_CCMR1_IC2PSC_0 (0x1U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  9521. #define TIM_CCMR1_IC2PSC_1 (0x2U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  9522. #define TIM_CCMR1_IC2F_Pos (12U)
  9523. #define TIM_CCMR1_IC2F_Msk (0xFU << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  9524. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  9525. #define TIM_CCMR1_IC2F_0 (0x1U << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  9526. #define TIM_CCMR1_IC2F_1 (0x2U << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  9527. #define TIM_CCMR1_IC2F_2 (0x4U << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  9528. #define TIM_CCMR1_IC2F_3 (0x8U << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  9529. /****************** Bit definition for TIM_CCMR2 register *******************/
  9530. #define TIM_CCMR2_CC3S_Pos (0U)
  9531. #define TIM_CCMR2_CC3S_Msk (0x3U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  9532. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  9533. #define TIM_CCMR2_CC3S_0 (0x1U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  9534. #define TIM_CCMR2_CC3S_1 (0x2U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  9535. #define TIM_CCMR2_OC3FE_Pos (2U)
  9536. #define TIM_CCMR2_OC3FE_Msk (0x1U << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  9537. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  9538. #define TIM_CCMR2_OC3PE_Pos (3U)
  9539. #define TIM_CCMR2_OC3PE_Msk (0x1U << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  9540. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  9541. #define TIM_CCMR2_OC3M_Pos (4U)
  9542. #define TIM_CCMR2_OC3M_Msk (0x7U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000070 */
  9543. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  9544. #define TIM_CCMR2_OC3M_0 (0x00000010U) /*!<Bit 0 */
  9545. #define TIM_CCMR2_OC3M_1 (0x00000020U) /*!<Bit 1 */
  9546. #define TIM_CCMR2_OC3M_2 (0x00000040U) /*!<Bit 2 */
  9547. #define TIM_CCMR2_OC3CE_Pos (7U)
  9548. #define TIM_CCMR2_OC3CE_Msk (0x1U << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  9549. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  9550. #define TIM_CCMR2_CC4S_Pos (8U)
  9551. #define TIM_CCMR2_CC4S_Msk (0x3U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  9552. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  9553. #define TIM_CCMR2_CC4S_0 (0x1U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  9554. #define TIM_CCMR2_CC4S_1 (0x2U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  9555. #define TIM_CCMR2_OC4FE_Pos (10U)
  9556. #define TIM_CCMR2_OC4FE_Msk (0x1U << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  9557. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  9558. #define TIM_CCMR2_OC4PE_Pos (11U)
  9559. #define TIM_CCMR2_OC4PE_Msk (0x1U << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  9560. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  9561. #define TIM_CCMR2_OC4M_Pos (12U)
  9562. #define TIM_CCMR2_OC4M_Msk (0x7U << TIM_CCMR2_OC4M_Pos) /*!< 0x00007000 */
  9563. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  9564. #define TIM_CCMR2_OC4M_0 (0x00001000U) /*!<Bit 0 */
  9565. #define TIM_CCMR2_OC4M_1 (0x00002000U) /*!<Bit 1 */
  9566. #define TIM_CCMR2_OC4M_2 (0x00004000U) /*!<Bit 2 */
  9567. #define TIM_CCMR2_OC4CE_Pos (15U)
  9568. #define TIM_CCMR2_OC4CE_Msk (0x1U << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  9569. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  9570. /*----------------------------------------------------------------------------*/
  9571. #define TIM_CCMR2_IC3PSC_Pos (2U)
  9572. #define TIM_CCMR2_IC3PSC_Msk (0x3U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */
  9573. #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  9574. #define TIM_CCMR2_IC3PSC_0 (0x1U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */
  9575. #define TIM_CCMR2_IC3PSC_1 (0x2U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */
  9576. #define TIM_CCMR2_IC3F_Pos (4U)
  9577. #define TIM_CCMR2_IC3F_Msk (0xFU << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */
  9578. #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  9579. #define TIM_CCMR2_IC3F_0 (0x1U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */
  9580. #define TIM_CCMR2_IC3F_1 (0x2U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */
  9581. #define TIM_CCMR2_IC3F_2 (0x4U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */
  9582. #define TIM_CCMR2_IC3F_3 (0x8U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */
  9583. #define TIM_CCMR2_IC4PSC_Pos (10U)
  9584. #define TIM_CCMR2_IC4PSC_Msk (0x3U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */
  9585. #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  9586. #define TIM_CCMR2_IC4PSC_0 (0x1U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */
  9587. #define TIM_CCMR2_IC4PSC_1 (0x2U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */
  9588. #define TIM_CCMR2_IC4F_Pos (12U)
  9589. #define TIM_CCMR2_IC4F_Msk (0xFU << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */
  9590. #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  9591. #define TIM_CCMR2_IC4F_0 (0x1U << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */
  9592. #define TIM_CCMR2_IC4F_1 (0x2U << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */
  9593. #define TIM_CCMR2_IC4F_2 (0x4U << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */
  9594. #define TIM_CCMR2_IC4F_3 (0x8U << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */
  9595. /******************* Bit definition for TIM_CCER register *******************/
  9596. #define TIM_CCER_CC1E_Pos (0U)
  9597. #define TIM_CCER_CC1E_Msk (0x1U << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  9598. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  9599. #define TIM_CCER_CC1P_Pos (1U)
  9600. #define TIM_CCER_CC1P_Msk (0x1U << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  9601. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  9602. #define TIM_CCER_CC1NE_Pos (2U)
  9603. #define TIM_CCER_CC1NE_Msk (0x1U << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  9604. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  9605. #define TIM_CCER_CC1NP_Pos (3U)
  9606. #define TIM_CCER_CC1NP_Msk (0x1U << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  9607. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  9608. #define TIM_CCER_CC2E_Pos (4U)
  9609. #define TIM_CCER_CC2E_Msk (0x1U << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  9610. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  9611. #define TIM_CCER_CC2P_Pos (5U)
  9612. #define TIM_CCER_CC2P_Msk (0x1U << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  9613. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  9614. #define TIM_CCER_CC2NE_Pos (6U)
  9615. #define TIM_CCER_CC2NE_Msk (0x1U << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  9616. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  9617. #define TIM_CCER_CC2NP_Pos (7U)
  9618. #define TIM_CCER_CC2NP_Msk (0x1U << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  9619. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  9620. #define TIM_CCER_CC3E_Pos (8U)
  9621. #define TIM_CCER_CC3E_Msk (0x1U << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  9622. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  9623. #define TIM_CCER_CC3P_Pos (9U)
  9624. #define TIM_CCER_CC3P_Msk (0x1U << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  9625. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  9626. #define TIM_CCER_CC3NE_Pos (10U)
  9627. #define TIM_CCER_CC3NE_Msk (0x1U << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  9628. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  9629. #define TIM_CCER_CC3NP_Pos (11U)
  9630. #define TIM_CCER_CC3NP_Msk (0x1U << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  9631. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  9632. #define TIM_CCER_CC4E_Pos (12U)
  9633. #define TIM_CCER_CC4E_Msk (0x1U << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  9634. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  9635. #define TIM_CCER_CC4P_Pos (13U)
  9636. #define TIM_CCER_CC4P_Msk (0x1U << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  9637. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  9638. #define TIM_CCER_CC4NP_Pos (15U)
  9639. #define TIM_CCER_CC4NP_Msk (0x1U << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  9640. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  9641. /******************* Bit definition for TIM_CNT register ********************/
  9642. #define TIM_CNT_CNT_Pos (0U)
  9643. #define TIM_CNT_CNT_Msk (0xFFFFFFFFU << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  9644. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  9645. /******************* Bit definition for TIM_PSC register ********************/
  9646. #define TIM_PSC_PSC_Pos (0U)
  9647. #define TIM_PSC_PSC_Msk (0xFFFFU << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */
  9648. #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */
  9649. /******************* Bit definition for TIM_ARR register ********************/
  9650. #define TIM_ARR_ARR_Pos (0U)
  9651. #define TIM_ARR_ARR_Msk (0xFFFFFFFFU << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  9652. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */
  9653. /******************* Bit definition for TIM_RCR register ********************/
  9654. #define TIM_RCR_REP_Pos (0U)
  9655. #define TIM_RCR_REP_Msk (0xFFU << TIM_RCR_REP_Pos) /*!< 0x000000FF */
  9656. #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */
  9657. /******************* Bit definition for TIM_CCR1 register *******************/
  9658. #define TIM_CCR1_CCR1_Pos (0U)
  9659. #define TIM_CCR1_CCR1_Msk (0xFFFFU << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */
  9660. #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */
  9661. /******************* Bit definition for TIM_CCR2 register *******************/
  9662. #define TIM_CCR2_CCR2_Pos (0U)
  9663. #define TIM_CCR2_CCR2_Msk (0xFFFFU << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */
  9664. #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */
  9665. /******************* Bit definition for TIM_CCR3 register *******************/
  9666. #define TIM_CCR3_CCR3_Pos (0U)
  9667. #define TIM_CCR3_CCR3_Msk (0xFFFFU << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */
  9668. #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */
  9669. /******************* Bit definition for TIM_CCR4 register *******************/
  9670. #define TIM_CCR4_CCR4_Pos (0U)
  9671. #define TIM_CCR4_CCR4_Msk (0xFFFFU << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */
  9672. #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */
  9673. /******************* Bit definition for TIM_BDTR register *******************/
  9674. #define TIM_BDTR_DTG_Pos (0U)
  9675. #define TIM_BDTR_DTG_Msk (0xFFU << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  9676. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  9677. #define TIM_BDTR_DTG_0 (0x01U << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  9678. #define TIM_BDTR_DTG_1 (0x02U << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  9679. #define TIM_BDTR_DTG_2 (0x04U << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  9680. #define TIM_BDTR_DTG_3 (0x08U << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  9681. #define TIM_BDTR_DTG_4 (0x10U << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  9682. #define TIM_BDTR_DTG_5 (0x20U << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  9683. #define TIM_BDTR_DTG_6 (0x40U << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  9684. #define TIM_BDTR_DTG_7 (0x80U << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  9685. #define TIM_BDTR_LOCK_Pos (8U)
  9686. #define TIM_BDTR_LOCK_Msk (0x3U << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  9687. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  9688. #define TIM_BDTR_LOCK_0 (0x1U << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  9689. #define TIM_BDTR_LOCK_1 (0x2U << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  9690. #define TIM_BDTR_OSSI_Pos (10U)
  9691. #define TIM_BDTR_OSSI_Msk (0x1U << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  9692. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  9693. #define TIM_BDTR_OSSR_Pos (11U)
  9694. #define TIM_BDTR_OSSR_Msk (0x1U << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  9695. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  9696. #define TIM_BDTR_BKE_Pos (12U)
  9697. #define TIM_BDTR_BKE_Msk (0x1U << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  9698. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break1 */
  9699. #define TIM_BDTR_BKP_Pos (13U)
  9700. #define TIM_BDTR_BKP_Msk (0x1U << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  9701. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break1 */
  9702. #define TIM_BDTR_AOE_Pos (14U)
  9703. #define TIM_BDTR_AOE_Msk (0x1U << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  9704. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  9705. #define TIM_BDTR_MOE_Pos (15U)
  9706. #define TIM_BDTR_MOE_Msk (0x1U << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  9707. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  9708. /******************* Bit definition for TIM_DCR register ********************/
  9709. #define TIM_DCR_DBA_Pos (0U)
  9710. #define TIM_DCR_DBA_Msk (0x1FU << TIM_DCR_DBA_Pos) /*!< 0x0000001F */
  9711. #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */
  9712. #define TIM_DCR_DBA_0 (0x01U << TIM_DCR_DBA_Pos) /*!< 0x00000001 */
  9713. #define TIM_DCR_DBA_1 (0x02U << TIM_DCR_DBA_Pos) /*!< 0x00000002 */
  9714. #define TIM_DCR_DBA_2 (0x04U << TIM_DCR_DBA_Pos) /*!< 0x00000004 */
  9715. #define TIM_DCR_DBA_3 (0x08U << TIM_DCR_DBA_Pos) /*!< 0x00000008 */
  9716. #define TIM_DCR_DBA_4 (0x10U << TIM_DCR_DBA_Pos) /*!< 0x00000010 */
  9717. #define TIM_DCR_DBL_Pos (8U)
  9718. #define TIM_DCR_DBL_Msk (0x1FU << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */
  9719. #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */
  9720. #define TIM_DCR_DBL_0 (0x01U << TIM_DCR_DBL_Pos) /*!< 0x00000100 */
  9721. #define TIM_DCR_DBL_1 (0x02U << TIM_DCR_DBL_Pos) /*!< 0x00000200 */
  9722. #define TIM_DCR_DBL_2 (0x04U << TIM_DCR_DBL_Pos) /*!< 0x00000400 */
  9723. #define TIM_DCR_DBL_3 (0x08U << TIM_DCR_DBL_Pos) /*!< 0x00000800 */
  9724. #define TIM_DCR_DBL_4 (0x10U << TIM_DCR_DBL_Pos) /*!< 0x00001000 */
  9725. /******************* Bit definition for TIM_DMAR register *******************/
  9726. #define TIM_DMAR_DMAB_Pos (0U)
  9727. #define TIM_DMAR_DMAB_Msk (0xFFFFU << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */
  9728. #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */
  9729. /******************* Bit definition for TIM14_OR register *********************/
  9730. #define TIM14_OR_TI1_RMP_Pos (0U)
  9731. #define TIM14_OR_TI1_RMP_Msk (0x3U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000003 */
  9732. #define TIM14_OR_TI1_RMP TIM14_OR_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM14 Input 4 remap) */
  9733. #define TIM14_OR_TI1_RMP_0 (0x1U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000001 */
  9734. #define TIM14_OR_TI1_RMP_1 (0x2U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000002 */
  9735. /******************* Bit definition for TIM2_OR register *********************/
  9736. #define TIM2_OR_ITR1_RMP_Pos (10U)
  9737. #define TIM2_OR_ITR1_RMP_Msk (0x3U << TIM2_OR_ITR1_RMP_Pos) /*!< 0x00000C00 */
  9738. #define TIM2_OR_ITR1_RMP TIM2_OR_ITR1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM14 Input 4 remap) */
  9739. #define TIM2_OR_ITR1_RMP_0 (0x1U << TIM2_OR_ITR1_RMP_Pos) /*!< 0x00000400 */
  9740. #define TIM2_OR_ITR1_RMP_1 (0x2U << TIM2_OR_ITR1_RMP_Pos) /*!< 0x00000800 */
  9741. /******************************************************************************/
  9742. /* */
  9743. /* Touch Sensing Controller (TSC) */
  9744. /* */
  9745. /******************************************************************************/
  9746. /******************* Bit definition for TSC_CR register *********************/
  9747. #define TSC_CR_TSCE_Pos (0U)
  9748. #define TSC_CR_TSCE_Msk (0x1U << TSC_CR_TSCE_Pos) /*!< 0x00000001 */
  9749. #define TSC_CR_TSCE TSC_CR_TSCE_Msk /*!<Touch sensing controller enable */
  9750. #define TSC_CR_START_Pos (1U)
  9751. #define TSC_CR_START_Msk (0x1U << TSC_CR_START_Pos) /*!< 0x00000002 */
  9752. #define TSC_CR_START TSC_CR_START_Msk /*!<Start acquisition */
  9753. #define TSC_CR_AM_Pos (2U)
  9754. #define TSC_CR_AM_Msk (0x1U << TSC_CR_AM_Pos) /*!< 0x00000004 */
  9755. #define TSC_CR_AM TSC_CR_AM_Msk /*!<Acquisition mode */
  9756. #define TSC_CR_SYNCPOL_Pos (3U)
  9757. #define TSC_CR_SYNCPOL_Msk (0x1U << TSC_CR_SYNCPOL_Pos) /*!< 0x00000008 */
  9758. #define TSC_CR_SYNCPOL TSC_CR_SYNCPOL_Msk /*!<Synchronization pin polarity */
  9759. #define TSC_CR_IODEF_Pos (4U)
  9760. #define TSC_CR_IODEF_Msk (0x1U << TSC_CR_IODEF_Pos) /*!< 0x00000010 */
  9761. #define TSC_CR_IODEF TSC_CR_IODEF_Msk /*!<IO default mode */
  9762. #define TSC_CR_MCV_Pos (5U)
  9763. #define TSC_CR_MCV_Msk (0x7U << TSC_CR_MCV_Pos) /*!< 0x000000E0 */
  9764. #define TSC_CR_MCV TSC_CR_MCV_Msk /*!<MCV[2:0] bits (Max Count Value) */
  9765. #define TSC_CR_MCV_0 (0x1U << TSC_CR_MCV_Pos) /*!< 0x00000020 */
  9766. #define TSC_CR_MCV_1 (0x2U << TSC_CR_MCV_Pos) /*!< 0x00000040 */
  9767. #define TSC_CR_MCV_2 (0x4U << TSC_CR_MCV_Pos) /*!< 0x00000080 */
  9768. #define TSC_CR_PGPSC_Pos (12U)
  9769. #define TSC_CR_PGPSC_Msk (0x7U << TSC_CR_PGPSC_Pos) /*!< 0x00007000 */
  9770. #define TSC_CR_PGPSC TSC_CR_PGPSC_Msk /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
  9771. #define TSC_CR_PGPSC_0 (0x1U << TSC_CR_PGPSC_Pos) /*!< 0x00001000 */
  9772. #define TSC_CR_PGPSC_1 (0x2U << TSC_CR_PGPSC_Pos) /*!< 0x00002000 */
  9773. #define TSC_CR_PGPSC_2 (0x4U << TSC_CR_PGPSC_Pos) /*!< 0x00004000 */
  9774. #define TSC_CR_SSPSC_Pos (15U)
  9775. #define TSC_CR_SSPSC_Msk (0x1U << TSC_CR_SSPSC_Pos) /*!< 0x00008000 */
  9776. #define TSC_CR_SSPSC TSC_CR_SSPSC_Msk /*!<Spread Spectrum Prescaler */
  9777. #define TSC_CR_SSE_Pos (16U)
  9778. #define TSC_CR_SSE_Msk (0x1U << TSC_CR_SSE_Pos) /*!< 0x00010000 */
  9779. #define TSC_CR_SSE TSC_CR_SSE_Msk /*!<Spread Spectrum Enable */
  9780. #define TSC_CR_SSD_Pos (17U)
  9781. #define TSC_CR_SSD_Msk (0x7FU << TSC_CR_SSD_Pos) /*!< 0x00FE0000 */
  9782. #define TSC_CR_SSD TSC_CR_SSD_Msk /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
  9783. #define TSC_CR_SSD_0 (0x01U << TSC_CR_SSD_Pos) /*!< 0x00020000 */
  9784. #define TSC_CR_SSD_1 (0x02U << TSC_CR_SSD_Pos) /*!< 0x00040000 */
  9785. #define TSC_CR_SSD_2 (0x04U << TSC_CR_SSD_Pos) /*!< 0x00080000 */
  9786. #define TSC_CR_SSD_3 (0x08U << TSC_CR_SSD_Pos) /*!< 0x00100000 */
  9787. #define TSC_CR_SSD_4 (0x10U << TSC_CR_SSD_Pos) /*!< 0x00200000 */
  9788. #define TSC_CR_SSD_5 (0x20U << TSC_CR_SSD_Pos) /*!< 0x00400000 */
  9789. #define TSC_CR_SSD_6 (0x40U << TSC_CR_SSD_Pos) /*!< 0x00800000 */
  9790. #define TSC_CR_CTPL_Pos (24U)
  9791. #define TSC_CR_CTPL_Msk (0xFU << TSC_CR_CTPL_Pos) /*!< 0x0F000000 */
  9792. #define TSC_CR_CTPL TSC_CR_CTPL_Msk /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
  9793. #define TSC_CR_CTPL_0 (0x1U << TSC_CR_CTPL_Pos) /*!< 0x01000000 */
  9794. #define TSC_CR_CTPL_1 (0x2U << TSC_CR_CTPL_Pos) /*!< 0x02000000 */
  9795. #define TSC_CR_CTPL_2 (0x4U << TSC_CR_CTPL_Pos) /*!< 0x04000000 */
  9796. #define TSC_CR_CTPL_3 (0x8U << TSC_CR_CTPL_Pos) /*!< 0x08000000 */
  9797. #define TSC_CR_CTPH_Pos (28U)
  9798. #define TSC_CR_CTPH_Msk (0xFU << TSC_CR_CTPH_Pos) /*!< 0xF0000000 */
  9799. #define TSC_CR_CTPH TSC_CR_CTPH_Msk /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
  9800. #define TSC_CR_CTPH_0 (0x1U << TSC_CR_CTPH_Pos) /*!< 0x10000000 */
  9801. #define TSC_CR_CTPH_1 (0x2U << TSC_CR_CTPH_Pos) /*!< 0x20000000 */
  9802. #define TSC_CR_CTPH_2 (0x4U << TSC_CR_CTPH_Pos) /*!< 0x40000000 */
  9803. #define TSC_CR_CTPH_3 (0x8U << TSC_CR_CTPH_Pos) /*!< 0x80000000 */
  9804. /******************* Bit definition for TSC_IER register ********************/
  9805. #define TSC_IER_EOAIE_Pos (0U)
  9806. #define TSC_IER_EOAIE_Msk (0x1U << TSC_IER_EOAIE_Pos) /*!< 0x00000001 */
  9807. #define TSC_IER_EOAIE TSC_IER_EOAIE_Msk /*!<End of acquisition interrupt enable */
  9808. #define TSC_IER_MCEIE_Pos (1U)
  9809. #define TSC_IER_MCEIE_Msk (0x1U << TSC_IER_MCEIE_Pos) /*!< 0x00000002 */
  9810. #define TSC_IER_MCEIE TSC_IER_MCEIE_Msk /*!<Max count error interrupt enable */
  9811. /******************* Bit definition for TSC_ICR register ********************/
  9812. #define TSC_ICR_EOAIC_Pos (0U)
  9813. #define TSC_ICR_EOAIC_Msk (0x1U << TSC_ICR_EOAIC_Pos) /*!< 0x00000001 */
  9814. #define TSC_ICR_EOAIC TSC_ICR_EOAIC_Msk /*!<End of acquisition interrupt clear */
  9815. #define TSC_ICR_MCEIC_Pos (1U)
  9816. #define TSC_ICR_MCEIC_Msk (0x1U << TSC_ICR_MCEIC_Pos) /*!< 0x00000002 */
  9817. #define TSC_ICR_MCEIC TSC_ICR_MCEIC_Msk /*!<Max count error interrupt clear */
  9818. /******************* Bit definition for TSC_ISR register ********************/
  9819. #define TSC_ISR_EOAF_Pos (0U)
  9820. #define TSC_ISR_EOAF_Msk (0x1U << TSC_ISR_EOAF_Pos) /*!< 0x00000001 */
  9821. #define TSC_ISR_EOAF TSC_ISR_EOAF_Msk /*!<End of acquisition flag */
  9822. #define TSC_ISR_MCEF_Pos (1U)
  9823. #define TSC_ISR_MCEF_Msk (0x1U << TSC_ISR_MCEF_Pos) /*!< 0x00000002 */
  9824. #define TSC_ISR_MCEF TSC_ISR_MCEF_Msk /*!<Max count error flag */
  9825. /******************* Bit definition for TSC_IOHCR register ******************/
  9826. #define TSC_IOHCR_G1_IO1_Pos (0U)
  9827. #define TSC_IOHCR_G1_IO1_Msk (0x1U << TSC_IOHCR_G1_IO1_Pos) /*!< 0x00000001 */
  9828. #define TSC_IOHCR_G1_IO1 TSC_IOHCR_G1_IO1_Msk /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
  9829. #define TSC_IOHCR_G1_IO2_Pos (1U)
  9830. #define TSC_IOHCR_G1_IO2_Msk (0x1U << TSC_IOHCR_G1_IO2_Pos) /*!< 0x00000002 */
  9831. #define TSC_IOHCR_G1_IO2 TSC_IOHCR_G1_IO2_Msk /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
  9832. #define TSC_IOHCR_G1_IO3_Pos (2U)
  9833. #define TSC_IOHCR_G1_IO3_Msk (0x1U << TSC_IOHCR_G1_IO3_Pos) /*!< 0x00000004 */
  9834. #define TSC_IOHCR_G1_IO3 TSC_IOHCR_G1_IO3_Msk /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
  9835. #define TSC_IOHCR_G1_IO4_Pos (3U)
  9836. #define TSC_IOHCR_G1_IO4_Msk (0x1U << TSC_IOHCR_G1_IO4_Pos) /*!< 0x00000008 */
  9837. #define TSC_IOHCR_G1_IO4 TSC_IOHCR_G1_IO4_Msk /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
  9838. #define TSC_IOHCR_G2_IO1_Pos (4U)
  9839. #define TSC_IOHCR_G2_IO1_Msk (0x1U << TSC_IOHCR_G2_IO1_Pos) /*!< 0x00000010 */
  9840. #define TSC_IOHCR_G2_IO1 TSC_IOHCR_G2_IO1_Msk /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
  9841. #define TSC_IOHCR_G2_IO2_Pos (5U)
  9842. #define TSC_IOHCR_G2_IO2_Msk (0x1U << TSC_IOHCR_G2_IO2_Pos) /*!< 0x00000020 */
  9843. #define TSC_IOHCR_G2_IO2 TSC_IOHCR_G2_IO2_Msk /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
  9844. #define TSC_IOHCR_G2_IO3_Pos (6U)
  9845. #define TSC_IOHCR_G2_IO3_Msk (0x1U << TSC_IOHCR_G2_IO3_Pos) /*!< 0x00000040 */
  9846. #define TSC_IOHCR_G2_IO3 TSC_IOHCR_G2_IO3_Msk /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
  9847. #define TSC_IOHCR_G2_IO4_Pos (7U)
  9848. #define TSC_IOHCR_G2_IO4_Msk (0x1U << TSC_IOHCR_G2_IO4_Pos) /*!< 0x00000080 */
  9849. #define TSC_IOHCR_G2_IO4 TSC_IOHCR_G2_IO4_Msk /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
  9850. #define TSC_IOHCR_G3_IO1_Pos (8U)
  9851. #define TSC_IOHCR_G3_IO1_Msk (0x1U << TSC_IOHCR_G3_IO1_Pos) /*!< 0x00000100 */
  9852. #define TSC_IOHCR_G3_IO1 TSC_IOHCR_G3_IO1_Msk /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
  9853. #define TSC_IOHCR_G3_IO2_Pos (9U)
  9854. #define TSC_IOHCR_G3_IO2_Msk (0x1U << TSC_IOHCR_G3_IO2_Pos) /*!< 0x00000200 */
  9855. #define TSC_IOHCR_G3_IO2 TSC_IOHCR_G3_IO2_Msk /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
  9856. #define TSC_IOHCR_G3_IO3_Pos (10U)
  9857. #define TSC_IOHCR_G3_IO3_Msk (0x1U << TSC_IOHCR_G3_IO3_Pos) /*!< 0x00000400 */
  9858. #define TSC_IOHCR_G3_IO3 TSC_IOHCR_G3_IO3_Msk /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
  9859. #define TSC_IOHCR_G3_IO4_Pos (11U)
  9860. #define TSC_IOHCR_G3_IO4_Msk (0x1U << TSC_IOHCR_G3_IO4_Pos) /*!< 0x00000800 */
  9861. #define TSC_IOHCR_G3_IO4 TSC_IOHCR_G3_IO4_Msk /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
  9862. #define TSC_IOHCR_G4_IO1_Pos (12U)
  9863. #define TSC_IOHCR_G4_IO1_Msk (0x1U << TSC_IOHCR_G4_IO1_Pos) /*!< 0x00001000 */
  9864. #define TSC_IOHCR_G4_IO1 TSC_IOHCR_G4_IO1_Msk /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
  9865. #define TSC_IOHCR_G4_IO2_Pos (13U)
  9866. #define TSC_IOHCR_G4_IO2_Msk (0x1U << TSC_IOHCR_G4_IO2_Pos) /*!< 0x00002000 */
  9867. #define TSC_IOHCR_G4_IO2 TSC_IOHCR_G4_IO2_Msk /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
  9868. #define TSC_IOHCR_G4_IO3_Pos (14U)
  9869. #define TSC_IOHCR_G4_IO3_Msk (0x1U << TSC_IOHCR_G4_IO3_Pos) /*!< 0x00004000 */
  9870. #define TSC_IOHCR_G4_IO3 TSC_IOHCR_G4_IO3_Msk /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
  9871. #define TSC_IOHCR_G4_IO4_Pos (15U)
  9872. #define TSC_IOHCR_G4_IO4_Msk (0x1U << TSC_IOHCR_G4_IO4_Pos) /*!< 0x00008000 */
  9873. #define TSC_IOHCR_G4_IO4 TSC_IOHCR_G4_IO4_Msk /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
  9874. #define TSC_IOHCR_G5_IO1_Pos (16U)
  9875. #define TSC_IOHCR_G5_IO1_Msk (0x1U << TSC_IOHCR_G5_IO1_Pos) /*!< 0x00010000 */
  9876. #define TSC_IOHCR_G5_IO1 TSC_IOHCR_G5_IO1_Msk /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
  9877. #define TSC_IOHCR_G5_IO2_Pos (17U)
  9878. #define TSC_IOHCR_G5_IO2_Msk (0x1U << TSC_IOHCR_G5_IO2_Pos) /*!< 0x00020000 */
  9879. #define TSC_IOHCR_G5_IO2 TSC_IOHCR_G5_IO2_Msk /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
  9880. #define TSC_IOHCR_G5_IO3_Pos (18U)
  9881. #define TSC_IOHCR_G5_IO3_Msk (0x1U << TSC_IOHCR_G5_IO3_Pos) /*!< 0x00040000 */
  9882. #define TSC_IOHCR_G5_IO3 TSC_IOHCR_G5_IO3_Msk /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
  9883. #define TSC_IOHCR_G5_IO4_Pos (19U)
  9884. #define TSC_IOHCR_G5_IO4_Msk (0x1U << TSC_IOHCR_G5_IO4_Pos) /*!< 0x00080000 */
  9885. #define TSC_IOHCR_G5_IO4 TSC_IOHCR_G5_IO4_Msk /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
  9886. #define TSC_IOHCR_G6_IO1_Pos (20U)
  9887. #define TSC_IOHCR_G6_IO1_Msk (0x1U << TSC_IOHCR_G6_IO1_Pos) /*!< 0x00100000 */
  9888. #define TSC_IOHCR_G6_IO1 TSC_IOHCR_G6_IO1_Msk /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
  9889. #define TSC_IOHCR_G6_IO2_Pos (21U)
  9890. #define TSC_IOHCR_G6_IO2_Msk (0x1U << TSC_IOHCR_G6_IO2_Pos) /*!< 0x00200000 */
  9891. #define TSC_IOHCR_G6_IO2 TSC_IOHCR_G6_IO2_Msk /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
  9892. #define TSC_IOHCR_G6_IO3_Pos (22U)
  9893. #define TSC_IOHCR_G6_IO3_Msk (0x1U << TSC_IOHCR_G6_IO3_Pos) /*!< 0x00400000 */
  9894. #define TSC_IOHCR_G6_IO3 TSC_IOHCR_G6_IO3_Msk /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
  9895. #define TSC_IOHCR_G6_IO4_Pos (23U)
  9896. #define TSC_IOHCR_G6_IO4_Msk (0x1U << TSC_IOHCR_G6_IO4_Pos) /*!< 0x00800000 */
  9897. #define TSC_IOHCR_G6_IO4 TSC_IOHCR_G6_IO4_Msk /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
  9898. #define TSC_IOHCR_G7_IO1_Pos (24U)
  9899. #define TSC_IOHCR_G7_IO1_Msk (0x1U << TSC_IOHCR_G7_IO1_Pos) /*!< 0x01000000 */
  9900. #define TSC_IOHCR_G7_IO1 TSC_IOHCR_G7_IO1_Msk /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
  9901. #define TSC_IOHCR_G7_IO2_Pos (25U)
  9902. #define TSC_IOHCR_G7_IO2_Msk (0x1U << TSC_IOHCR_G7_IO2_Pos) /*!< 0x02000000 */
  9903. #define TSC_IOHCR_G7_IO2 TSC_IOHCR_G7_IO2_Msk /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
  9904. #define TSC_IOHCR_G7_IO3_Pos (26U)
  9905. #define TSC_IOHCR_G7_IO3_Msk (0x1U << TSC_IOHCR_G7_IO3_Pos) /*!< 0x04000000 */
  9906. #define TSC_IOHCR_G7_IO3 TSC_IOHCR_G7_IO3_Msk /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
  9907. #define TSC_IOHCR_G7_IO4_Pos (27U)
  9908. #define TSC_IOHCR_G7_IO4_Msk (0x1U << TSC_IOHCR_G7_IO4_Pos) /*!< 0x08000000 */
  9909. #define TSC_IOHCR_G7_IO4 TSC_IOHCR_G7_IO4_Msk /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
  9910. #define TSC_IOHCR_G8_IO1_Pos (28U)
  9911. #define TSC_IOHCR_G8_IO1_Msk (0x1U << TSC_IOHCR_G8_IO1_Pos) /*!< 0x10000000 */
  9912. #define TSC_IOHCR_G8_IO1 TSC_IOHCR_G8_IO1_Msk /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
  9913. #define TSC_IOHCR_G8_IO2_Pos (29U)
  9914. #define TSC_IOHCR_G8_IO2_Msk (0x1U << TSC_IOHCR_G8_IO2_Pos) /*!< 0x20000000 */
  9915. #define TSC_IOHCR_G8_IO2 TSC_IOHCR_G8_IO2_Msk /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
  9916. #define TSC_IOHCR_G8_IO3_Pos (30U)
  9917. #define TSC_IOHCR_G8_IO3_Msk (0x1U << TSC_IOHCR_G8_IO3_Pos) /*!< 0x40000000 */
  9918. #define TSC_IOHCR_G8_IO3 TSC_IOHCR_G8_IO3_Msk /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
  9919. #define TSC_IOHCR_G8_IO4_Pos (31U)
  9920. #define TSC_IOHCR_G8_IO4_Msk (0x1U << TSC_IOHCR_G8_IO4_Pos) /*!< 0x80000000 */
  9921. #define TSC_IOHCR_G8_IO4 TSC_IOHCR_G8_IO4_Msk /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
  9922. /******************* Bit definition for TSC_IOASCR register *****************/
  9923. #define TSC_IOASCR_G1_IO1_Pos (0U)
  9924. #define TSC_IOASCR_G1_IO1_Msk (0x1U << TSC_IOASCR_G1_IO1_Pos) /*!< 0x00000001 */
  9925. #define TSC_IOASCR_G1_IO1 TSC_IOASCR_G1_IO1_Msk /*!<GROUP1_IO1 analog switch enable */
  9926. #define TSC_IOASCR_G1_IO2_Pos (1U)
  9927. #define TSC_IOASCR_G1_IO2_Msk (0x1U << TSC_IOASCR_G1_IO2_Pos) /*!< 0x00000002 */
  9928. #define TSC_IOASCR_G1_IO2 TSC_IOASCR_G1_IO2_Msk /*!<GROUP1_IO2 analog switch enable */
  9929. #define TSC_IOASCR_G1_IO3_Pos (2U)
  9930. #define TSC_IOASCR_G1_IO3_Msk (0x1U << TSC_IOASCR_G1_IO3_Pos) /*!< 0x00000004 */
  9931. #define TSC_IOASCR_G1_IO3 TSC_IOASCR_G1_IO3_Msk /*!<GROUP1_IO3 analog switch enable */
  9932. #define TSC_IOASCR_G1_IO4_Pos (3U)
  9933. #define TSC_IOASCR_G1_IO4_Msk (0x1U << TSC_IOASCR_G1_IO4_Pos) /*!< 0x00000008 */
  9934. #define TSC_IOASCR_G1_IO4 TSC_IOASCR_G1_IO4_Msk /*!<GROUP1_IO4 analog switch enable */
  9935. #define TSC_IOASCR_G2_IO1_Pos (4U)
  9936. #define TSC_IOASCR_G2_IO1_Msk (0x1U << TSC_IOASCR_G2_IO1_Pos) /*!< 0x00000010 */
  9937. #define TSC_IOASCR_G2_IO1 TSC_IOASCR_G2_IO1_Msk /*!<GROUP2_IO1 analog switch enable */
  9938. #define TSC_IOASCR_G2_IO2_Pos (5U)
  9939. #define TSC_IOASCR_G2_IO2_Msk (0x1U << TSC_IOASCR_G2_IO2_Pos) /*!< 0x00000020 */
  9940. #define TSC_IOASCR_G2_IO2 TSC_IOASCR_G2_IO2_Msk /*!<GROUP2_IO2 analog switch enable */
  9941. #define TSC_IOASCR_G2_IO3_Pos (6U)
  9942. #define TSC_IOASCR_G2_IO3_Msk (0x1U << TSC_IOASCR_G2_IO3_Pos) /*!< 0x00000040 */
  9943. #define TSC_IOASCR_G2_IO3 TSC_IOASCR_G2_IO3_Msk /*!<GROUP2_IO3 analog switch enable */
  9944. #define TSC_IOASCR_G2_IO4_Pos (7U)
  9945. #define TSC_IOASCR_G2_IO4_Msk (0x1U << TSC_IOASCR_G2_IO4_Pos) /*!< 0x00000080 */
  9946. #define TSC_IOASCR_G2_IO4 TSC_IOASCR_G2_IO4_Msk /*!<GROUP2_IO4 analog switch enable */
  9947. #define TSC_IOASCR_G3_IO1_Pos (8U)
  9948. #define TSC_IOASCR_G3_IO1_Msk (0x1U << TSC_IOASCR_G3_IO1_Pos) /*!< 0x00000100 */
  9949. #define TSC_IOASCR_G3_IO1 TSC_IOASCR_G3_IO1_Msk /*!<GROUP3_IO1 analog switch enable */
  9950. #define TSC_IOASCR_G3_IO2_Pos (9U)
  9951. #define TSC_IOASCR_G3_IO2_Msk (0x1U << TSC_IOASCR_G3_IO2_Pos) /*!< 0x00000200 */
  9952. #define TSC_IOASCR_G3_IO2 TSC_IOASCR_G3_IO2_Msk /*!<GROUP3_IO2 analog switch enable */
  9953. #define TSC_IOASCR_G3_IO3_Pos (10U)
  9954. #define TSC_IOASCR_G3_IO3_Msk (0x1U << TSC_IOASCR_G3_IO3_Pos) /*!< 0x00000400 */
  9955. #define TSC_IOASCR_G3_IO3 TSC_IOASCR_G3_IO3_Msk /*!<GROUP3_IO3 analog switch enable */
  9956. #define TSC_IOASCR_G3_IO4_Pos (11U)
  9957. #define TSC_IOASCR_G3_IO4_Msk (0x1U << TSC_IOASCR_G3_IO4_Pos) /*!< 0x00000800 */
  9958. #define TSC_IOASCR_G3_IO4 TSC_IOASCR_G3_IO4_Msk /*!<GROUP3_IO4 analog switch enable */
  9959. #define TSC_IOASCR_G4_IO1_Pos (12U)
  9960. #define TSC_IOASCR_G4_IO1_Msk (0x1U << TSC_IOASCR_G4_IO1_Pos) /*!< 0x00001000 */
  9961. #define TSC_IOASCR_G4_IO1 TSC_IOASCR_G4_IO1_Msk /*!<GROUP4_IO1 analog switch enable */
  9962. #define TSC_IOASCR_G4_IO2_Pos (13U)
  9963. #define TSC_IOASCR_G4_IO2_Msk (0x1U << TSC_IOASCR_G4_IO2_Pos) /*!< 0x00002000 */
  9964. #define TSC_IOASCR_G4_IO2 TSC_IOASCR_G4_IO2_Msk /*!<GROUP4_IO2 analog switch enable */
  9965. #define TSC_IOASCR_G4_IO3_Pos (14U)
  9966. #define TSC_IOASCR_G4_IO3_Msk (0x1U << TSC_IOASCR_G4_IO3_Pos) /*!< 0x00004000 */
  9967. #define TSC_IOASCR_G4_IO3 TSC_IOASCR_G4_IO3_Msk /*!<GROUP4_IO3 analog switch enable */
  9968. #define TSC_IOASCR_G4_IO4_Pos (15U)
  9969. #define TSC_IOASCR_G4_IO4_Msk (0x1U << TSC_IOASCR_G4_IO4_Pos) /*!< 0x00008000 */
  9970. #define TSC_IOASCR_G4_IO4 TSC_IOASCR_G4_IO4_Msk /*!<GROUP4_IO4 analog switch enable */
  9971. #define TSC_IOASCR_G5_IO1_Pos (16U)
  9972. #define TSC_IOASCR_G5_IO1_Msk (0x1U << TSC_IOASCR_G5_IO1_Pos) /*!< 0x00010000 */
  9973. #define TSC_IOASCR_G5_IO1 TSC_IOASCR_G5_IO1_Msk /*!<GROUP5_IO1 analog switch enable */
  9974. #define TSC_IOASCR_G5_IO2_Pos (17U)
  9975. #define TSC_IOASCR_G5_IO2_Msk (0x1U << TSC_IOASCR_G5_IO2_Pos) /*!< 0x00020000 */
  9976. #define TSC_IOASCR_G5_IO2 TSC_IOASCR_G5_IO2_Msk /*!<GROUP5_IO2 analog switch enable */
  9977. #define TSC_IOASCR_G5_IO3_Pos (18U)
  9978. #define TSC_IOASCR_G5_IO3_Msk (0x1U << TSC_IOASCR_G5_IO3_Pos) /*!< 0x00040000 */
  9979. #define TSC_IOASCR_G5_IO3 TSC_IOASCR_G5_IO3_Msk /*!<GROUP5_IO3 analog switch enable */
  9980. #define TSC_IOASCR_G5_IO4_Pos (19U)
  9981. #define TSC_IOASCR_G5_IO4_Msk (0x1U << TSC_IOASCR_G5_IO4_Pos) /*!< 0x00080000 */
  9982. #define TSC_IOASCR_G5_IO4 TSC_IOASCR_G5_IO4_Msk /*!<GROUP5_IO4 analog switch enable */
  9983. #define TSC_IOASCR_G6_IO1_Pos (20U)
  9984. #define TSC_IOASCR_G6_IO1_Msk (0x1U << TSC_IOASCR_G6_IO1_Pos) /*!< 0x00100000 */
  9985. #define TSC_IOASCR_G6_IO1 TSC_IOASCR_G6_IO1_Msk /*!<GROUP6_IO1 analog switch enable */
  9986. #define TSC_IOASCR_G6_IO2_Pos (21U)
  9987. #define TSC_IOASCR_G6_IO2_Msk (0x1U << TSC_IOASCR_G6_IO2_Pos) /*!< 0x00200000 */
  9988. #define TSC_IOASCR_G6_IO2 TSC_IOASCR_G6_IO2_Msk /*!<GROUP6_IO2 analog switch enable */
  9989. #define TSC_IOASCR_G6_IO3_Pos (22U)
  9990. #define TSC_IOASCR_G6_IO3_Msk (0x1U << TSC_IOASCR_G6_IO3_Pos) /*!< 0x00400000 */
  9991. #define TSC_IOASCR_G6_IO3 TSC_IOASCR_G6_IO3_Msk /*!<GROUP6_IO3 analog switch enable */
  9992. #define TSC_IOASCR_G6_IO4_Pos (23U)
  9993. #define TSC_IOASCR_G6_IO4_Msk (0x1U << TSC_IOASCR_G6_IO4_Pos) /*!< 0x00800000 */
  9994. #define TSC_IOASCR_G6_IO4 TSC_IOASCR_G6_IO4_Msk /*!<GROUP6_IO4 analog switch enable */
  9995. #define TSC_IOASCR_G7_IO1_Pos (24U)
  9996. #define TSC_IOASCR_G7_IO1_Msk (0x1U << TSC_IOASCR_G7_IO1_Pos) /*!< 0x01000000 */
  9997. #define TSC_IOASCR_G7_IO1 TSC_IOASCR_G7_IO1_Msk /*!<GROUP7_IO1 analog switch enable */
  9998. #define TSC_IOASCR_G7_IO2_Pos (25U)
  9999. #define TSC_IOASCR_G7_IO2_Msk (0x1U << TSC_IOASCR_G7_IO2_Pos) /*!< 0x02000000 */
  10000. #define TSC_IOASCR_G7_IO2 TSC_IOASCR_G7_IO2_Msk /*!<GROUP7_IO2 analog switch enable */
  10001. #define TSC_IOASCR_G7_IO3_Pos (26U)
  10002. #define TSC_IOASCR_G7_IO3_Msk (0x1U << TSC_IOASCR_G7_IO3_Pos) /*!< 0x04000000 */
  10003. #define TSC_IOASCR_G7_IO3 TSC_IOASCR_G7_IO3_Msk /*!<GROUP7_IO3 analog switch enable */
  10004. #define TSC_IOASCR_G7_IO4_Pos (27U)
  10005. #define TSC_IOASCR_G7_IO4_Msk (0x1U << TSC_IOASCR_G7_IO4_Pos) /*!< 0x08000000 */
  10006. #define TSC_IOASCR_G7_IO4 TSC_IOASCR_G7_IO4_Msk /*!<GROUP7_IO4 analog switch enable */
  10007. #define TSC_IOASCR_G8_IO1_Pos (28U)
  10008. #define TSC_IOASCR_G8_IO1_Msk (0x1U << TSC_IOASCR_G8_IO1_Pos) /*!< 0x10000000 */
  10009. #define TSC_IOASCR_G8_IO1 TSC_IOASCR_G8_IO1_Msk /*!<GROUP8_IO1 analog switch enable */
  10010. #define TSC_IOASCR_G8_IO2_Pos (29U)
  10011. #define TSC_IOASCR_G8_IO2_Msk (0x1U << TSC_IOASCR_G8_IO2_Pos) /*!< 0x20000000 */
  10012. #define TSC_IOASCR_G8_IO2 TSC_IOASCR_G8_IO2_Msk /*!<GROUP8_IO2 analog switch enable */
  10013. #define TSC_IOASCR_G8_IO3_Pos (30U)
  10014. #define TSC_IOASCR_G8_IO3_Msk (0x1U << TSC_IOASCR_G8_IO3_Pos) /*!< 0x40000000 */
  10015. #define TSC_IOASCR_G8_IO3 TSC_IOASCR_G8_IO3_Msk /*!<GROUP8_IO3 analog switch enable */
  10016. #define TSC_IOASCR_G8_IO4_Pos (31U)
  10017. #define TSC_IOASCR_G8_IO4_Msk (0x1U << TSC_IOASCR_G8_IO4_Pos) /*!< 0x80000000 */
  10018. #define TSC_IOASCR_G8_IO4 TSC_IOASCR_G8_IO4_Msk /*!<GROUP8_IO4 analog switch enable */
  10019. /******************* Bit definition for TSC_IOSCR register ******************/
  10020. #define TSC_IOSCR_G1_IO1_Pos (0U)
  10021. #define TSC_IOSCR_G1_IO1_Msk (0x1U << TSC_IOSCR_G1_IO1_Pos) /*!< 0x00000001 */
  10022. #define TSC_IOSCR_G1_IO1 TSC_IOSCR_G1_IO1_Msk /*!<GROUP1_IO1 sampling mode */
  10023. #define TSC_IOSCR_G1_IO2_Pos (1U)
  10024. #define TSC_IOSCR_G1_IO2_Msk (0x1U << TSC_IOSCR_G1_IO2_Pos) /*!< 0x00000002 */
  10025. #define TSC_IOSCR_G1_IO2 TSC_IOSCR_G1_IO2_Msk /*!<GROUP1_IO2 sampling mode */
  10026. #define TSC_IOSCR_G1_IO3_Pos (2U)
  10027. #define TSC_IOSCR_G1_IO3_Msk (0x1U << TSC_IOSCR_G1_IO3_Pos) /*!< 0x00000004 */
  10028. #define TSC_IOSCR_G1_IO3 TSC_IOSCR_G1_IO3_Msk /*!<GROUP1_IO3 sampling mode */
  10029. #define TSC_IOSCR_G1_IO4_Pos (3U)
  10030. #define TSC_IOSCR_G1_IO4_Msk (0x1U << TSC_IOSCR_G1_IO4_Pos) /*!< 0x00000008 */
  10031. #define TSC_IOSCR_G1_IO4 TSC_IOSCR_G1_IO4_Msk /*!<GROUP1_IO4 sampling mode */
  10032. #define TSC_IOSCR_G2_IO1_Pos (4U)
  10033. #define TSC_IOSCR_G2_IO1_Msk (0x1U << TSC_IOSCR_G2_IO1_Pos) /*!< 0x00000010 */
  10034. #define TSC_IOSCR_G2_IO1 TSC_IOSCR_G2_IO1_Msk /*!<GROUP2_IO1 sampling mode */
  10035. #define TSC_IOSCR_G2_IO2_Pos (5U)
  10036. #define TSC_IOSCR_G2_IO2_Msk (0x1U << TSC_IOSCR_G2_IO2_Pos) /*!< 0x00000020 */
  10037. #define TSC_IOSCR_G2_IO2 TSC_IOSCR_G2_IO2_Msk /*!<GROUP2_IO2 sampling mode */
  10038. #define TSC_IOSCR_G2_IO3_Pos (6U)
  10039. #define TSC_IOSCR_G2_IO3_Msk (0x1U << TSC_IOSCR_G2_IO3_Pos) /*!< 0x00000040 */
  10040. #define TSC_IOSCR_G2_IO3 TSC_IOSCR_G2_IO3_Msk /*!<GROUP2_IO3 sampling mode */
  10041. #define TSC_IOSCR_G2_IO4_Pos (7U)
  10042. #define TSC_IOSCR_G2_IO4_Msk (0x1U << TSC_IOSCR_G2_IO4_Pos) /*!< 0x00000080 */
  10043. #define TSC_IOSCR_G2_IO4 TSC_IOSCR_G2_IO4_Msk /*!<GROUP2_IO4 sampling mode */
  10044. #define TSC_IOSCR_G3_IO1_Pos (8U)
  10045. #define TSC_IOSCR_G3_IO1_Msk (0x1U << TSC_IOSCR_G3_IO1_Pos) /*!< 0x00000100 */
  10046. #define TSC_IOSCR_G3_IO1 TSC_IOSCR_G3_IO1_Msk /*!<GROUP3_IO1 sampling mode */
  10047. #define TSC_IOSCR_G3_IO2_Pos (9U)
  10048. #define TSC_IOSCR_G3_IO2_Msk (0x1U << TSC_IOSCR_G3_IO2_Pos) /*!< 0x00000200 */
  10049. #define TSC_IOSCR_G3_IO2 TSC_IOSCR_G3_IO2_Msk /*!<GROUP3_IO2 sampling mode */
  10050. #define TSC_IOSCR_G3_IO3_Pos (10U)
  10051. #define TSC_IOSCR_G3_IO3_Msk (0x1U << TSC_IOSCR_G3_IO3_Pos) /*!< 0x00000400 */
  10052. #define TSC_IOSCR_G3_IO3 TSC_IOSCR_G3_IO3_Msk /*!<GROUP3_IO3 sampling mode */
  10053. #define TSC_IOSCR_G3_IO4_Pos (11U)
  10054. #define TSC_IOSCR_G3_IO4_Msk (0x1U << TSC_IOSCR_G3_IO4_Pos) /*!< 0x00000800 */
  10055. #define TSC_IOSCR_G3_IO4 TSC_IOSCR_G3_IO4_Msk /*!<GROUP3_IO4 sampling mode */
  10056. #define TSC_IOSCR_G4_IO1_Pos (12U)
  10057. #define TSC_IOSCR_G4_IO1_Msk (0x1U << TSC_IOSCR_G4_IO1_Pos) /*!< 0x00001000 */
  10058. #define TSC_IOSCR_G4_IO1 TSC_IOSCR_G4_IO1_Msk /*!<GROUP4_IO1 sampling mode */
  10059. #define TSC_IOSCR_G4_IO2_Pos (13U)
  10060. #define TSC_IOSCR_G4_IO2_Msk (0x1U << TSC_IOSCR_G4_IO2_Pos) /*!< 0x00002000 */
  10061. #define TSC_IOSCR_G4_IO2 TSC_IOSCR_G4_IO2_Msk /*!<GROUP4_IO2 sampling mode */
  10062. #define TSC_IOSCR_G4_IO3_Pos (14U)
  10063. #define TSC_IOSCR_G4_IO3_Msk (0x1U << TSC_IOSCR_G4_IO3_Pos) /*!< 0x00004000 */
  10064. #define TSC_IOSCR_G4_IO3 TSC_IOSCR_G4_IO3_Msk /*!<GROUP4_IO3 sampling mode */
  10065. #define TSC_IOSCR_G4_IO4_Pos (15U)
  10066. #define TSC_IOSCR_G4_IO4_Msk (0x1U << TSC_IOSCR_G4_IO4_Pos) /*!< 0x00008000 */
  10067. #define TSC_IOSCR_G4_IO4 TSC_IOSCR_G4_IO4_Msk /*!<GROUP4_IO4 sampling mode */
  10068. #define TSC_IOSCR_G5_IO1_Pos (16U)
  10069. #define TSC_IOSCR_G5_IO1_Msk (0x1U << TSC_IOSCR_G5_IO1_Pos) /*!< 0x00010000 */
  10070. #define TSC_IOSCR_G5_IO1 TSC_IOSCR_G5_IO1_Msk /*!<GROUP5_IO1 sampling mode */
  10071. #define TSC_IOSCR_G5_IO2_Pos (17U)
  10072. #define TSC_IOSCR_G5_IO2_Msk (0x1U << TSC_IOSCR_G5_IO2_Pos) /*!< 0x00020000 */
  10073. #define TSC_IOSCR_G5_IO2 TSC_IOSCR_G5_IO2_Msk /*!<GROUP5_IO2 sampling mode */
  10074. #define TSC_IOSCR_G5_IO3_Pos (18U)
  10075. #define TSC_IOSCR_G5_IO3_Msk (0x1U << TSC_IOSCR_G5_IO3_Pos) /*!< 0x00040000 */
  10076. #define TSC_IOSCR_G5_IO3 TSC_IOSCR_G5_IO3_Msk /*!<GROUP5_IO3 sampling mode */
  10077. #define TSC_IOSCR_G5_IO4_Pos (19U)
  10078. #define TSC_IOSCR_G5_IO4_Msk (0x1U << TSC_IOSCR_G5_IO4_Pos) /*!< 0x00080000 */
  10079. #define TSC_IOSCR_G5_IO4 TSC_IOSCR_G5_IO4_Msk /*!<GROUP5_IO4 sampling mode */
  10080. #define TSC_IOSCR_G6_IO1_Pos (20U)
  10081. #define TSC_IOSCR_G6_IO1_Msk (0x1U << TSC_IOSCR_G6_IO1_Pos) /*!< 0x00100000 */
  10082. #define TSC_IOSCR_G6_IO1 TSC_IOSCR_G6_IO1_Msk /*!<GROUP6_IO1 sampling mode */
  10083. #define TSC_IOSCR_G6_IO2_Pos (21U)
  10084. #define TSC_IOSCR_G6_IO2_Msk (0x1U << TSC_IOSCR_G6_IO2_Pos) /*!< 0x00200000 */
  10085. #define TSC_IOSCR_G6_IO2 TSC_IOSCR_G6_IO2_Msk /*!<GROUP6_IO2 sampling mode */
  10086. #define TSC_IOSCR_G6_IO3_Pos (22U)
  10087. #define TSC_IOSCR_G6_IO3_Msk (0x1U << TSC_IOSCR_G6_IO3_Pos) /*!< 0x00400000 */
  10088. #define TSC_IOSCR_G6_IO3 TSC_IOSCR_G6_IO3_Msk /*!<GROUP6_IO3 sampling mode */
  10089. #define TSC_IOSCR_G6_IO4_Pos (23U)
  10090. #define TSC_IOSCR_G6_IO4_Msk (0x1U << TSC_IOSCR_G6_IO4_Pos) /*!< 0x00800000 */
  10091. #define TSC_IOSCR_G6_IO4 TSC_IOSCR_G6_IO4_Msk /*!<GROUP6_IO4 sampling mode */
  10092. #define TSC_IOSCR_G7_IO1_Pos (24U)
  10093. #define TSC_IOSCR_G7_IO1_Msk (0x1U << TSC_IOSCR_G7_IO1_Pos) /*!< 0x01000000 */
  10094. #define TSC_IOSCR_G7_IO1 TSC_IOSCR_G7_IO1_Msk /*!<GROUP7_IO1 sampling mode */
  10095. #define TSC_IOSCR_G7_IO2_Pos (25U)
  10096. #define TSC_IOSCR_G7_IO2_Msk (0x1U << TSC_IOSCR_G7_IO2_Pos) /*!< 0x02000000 */
  10097. #define TSC_IOSCR_G7_IO2 TSC_IOSCR_G7_IO2_Msk /*!<GROUP7_IO2 sampling mode */
  10098. #define TSC_IOSCR_G7_IO3_Pos (26U)
  10099. #define TSC_IOSCR_G7_IO3_Msk (0x1U << TSC_IOSCR_G7_IO3_Pos) /*!< 0x04000000 */
  10100. #define TSC_IOSCR_G7_IO3 TSC_IOSCR_G7_IO3_Msk /*!<GROUP7_IO3 sampling mode */
  10101. #define TSC_IOSCR_G7_IO4_Pos (27U)
  10102. #define TSC_IOSCR_G7_IO4_Msk (0x1U << TSC_IOSCR_G7_IO4_Pos) /*!< 0x08000000 */
  10103. #define TSC_IOSCR_G7_IO4 TSC_IOSCR_G7_IO4_Msk /*!<GROUP7_IO4 sampling mode */
  10104. #define TSC_IOSCR_G8_IO1_Pos (28U)
  10105. #define TSC_IOSCR_G8_IO1_Msk (0x1U << TSC_IOSCR_G8_IO1_Pos) /*!< 0x10000000 */
  10106. #define TSC_IOSCR_G8_IO1 TSC_IOSCR_G8_IO1_Msk /*!<GROUP8_IO1 sampling mode */
  10107. #define TSC_IOSCR_G8_IO2_Pos (29U)
  10108. #define TSC_IOSCR_G8_IO2_Msk (0x1U << TSC_IOSCR_G8_IO2_Pos) /*!< 0x20000000 */
  10109. #define TSC_IOSCR_G8_IO2 TSC_IOSCR_G8_IO2_Msk /*!<GROUP8_IO2 sampling mode */
  10110. #define TSC_IOSCR_G8_IO3_Pos (30U)
  10111. #define TSC_IOSCR_G8_IO3_Msk (0x1U << TSC_IOSCR_G8_IO3_Pos) /*!< 0x40000000 */
  10112. #define TSC_IOSCR_G8_IO3 TSC_IOSCR_G8_IO3_Msk /*!<GROUP8_IO3 sampling mode */
  10113. #define TSC_IOSCR_G8_IO4_Pos (31U)
  10114. #define TSC_IOSCR_G8_IO4_Msk (0x1U << TSC_IOSCR_G8_IO4_Pos) /*!< 0x80000000 */
  10115. #define TSC_IOSCR_G8_IO4 TSC_IOSCR_G8_IO4_Msk /*!<GROUP8_IO4 sampling mode */
  10116. /******************* Bit definition for TSC_IOCCR register ******************/
  10117. #define TSC_IOCCR_G1_IO1_Pos (0U)
  10118. #define TSC_IOCCR_G1_IO1_Msk (0x1U << TSC_IOCCR_G1_IO1_Pos) /*!< 0x00000001 */
  10119. #define TSC_IOCCR_G1_IO1 TSC_IOCCR_G1_IO1_Msk /*!<GROUP1_IO1 channel mode */
  10120. #define TSC_IOCCR_G1_IO2_Pos (1U)
  10121. #define TSC_IOCCR_G1_IO2_Msk (0x1U << TSC_IOCCR_G1_IO2_Pos) /*!< 0x00000002 */
  10122. #define TSC_IOCCR_G1_IO2 TSC_IOCCR_G1_IO2_Msk /*!<GROUP1_IO2 channel mode */
  10123. #define TSC_IOCCR_G1_IO3_Pos (2U)
  10124. #define TSC_IOCCR_G1_IO3_Msk (0x1U << TSC_IOCCR_G1_IO3_Pos) /*!< 0x00000004 */
  10125. #define TSC_IOCCR_G1_IO3 TSC_IOCCR_G1_IO3_Msk /*!<GROUP1_IO3 channel mode */
  10126. #define TSC_IOCCR_G1_IO4_Pos (3U)
  10127. #define TSC_IOCCR_G1_IO4_Msk (0x1U << TSC_IOCCR_G1_IO4_Pos) /*!< 0x00000008 */
  10128. #define TSC_IOCCR_G1_IO4 TSC_IOCCR_G1_IO4_Msk /*!<GROUP1_IO4 channel mode */
  10129. #define TSC_IOCCR_G2_IO1_Pos (4U)
  10130. #define TSC_IOCCR_G2_IO1_Msk (0x1U << TSC_IOCCR_G2_IO1_Pos) /*!< 0x00000010 */
  10131. #define TSC_IOCCR_G2_IO1 TSC_IOCCR_G2_IO1_Msk /*!<GROUP2_IO1 channel mode */
  10132. #define TSC_IOCCR_G2_IO2_Pos (5U)
  10133. #define TSC_IOCCR_G2_IO2_Msk (0x1U << TSC_IOCCR_G2_IO2_Pos) /*!< 0x00000020 */
  10134. #define TSC_IOCCR_G2_IO2 TSC_IOCCR_G2_IO2_Msk /*!<GROUP2_IO2 channel mode */
  10135. #define TSC_IOCCR_G2_IO3_Pos (6U)
  10136. #define TSC_IOCCR_G2_IO3_Msk (0x1U << TSC_IOCCR_G2_IO3_Pos) /*!< 0x00000040 */
  10137. #define TSC_IOCCR_G2_IO3 TSC_IOCCR_G2_IO3_Msk /*!<GROUP2_IO3 channel mode */
  10138. #define TSC_IOCCR_G2_IO4_Pos (7U)
  10139. #define TSC_IOCCR_G2_IO4_Msk (0x1U << TSC_IOCCR_G2_IO4_Pos) /*!< 0x00000080 */
  10140. #define TSC_IOCCR_G2_IO4 TSC_IOCCR_G2_IO4_Msk /*!<GROUP2_IO4 channel mode */
  10141. #define TSC_IOCCR_G3_IO1_Pos (8U)
  10142. #define TSC_IOCCR_G3_IO1_Msk (0x1U << TSC_IOCCR_G3_IO1_Pos) /*!< 0x00000100 */
  10143. #define TSC_IOCCR_G3_IO1 TSC_IOCCR_G3_IO1_Msk /*!<GROUP3_IO1 channel mode */
  10144. #define TSC_IOCCR_G3_IO2_Pos (9U)
  10145. #define TSC_IOCCR_G3_IO2_Msk (0x1U << TSC_IOCCR_G3_IO2_Pos) /*!< 0x00000200 */
  10146. #define TSC_IOCCR_G3_IO2 TSC_IOCCR_G3_IO2_Msk /*!<GROUP3_IO2 channel mode */
  10147. #define TSC_IOCCR_G3_IO3_Pos (10U)
  10148. #define TSC_IOCCR_G3_IO3_Msk (0x1U << TSC_IOCCR_G3_IO3_Pos) /*!< 0x00000400 */
  10149. #define TSC_IOCCR_G3_IO3 TSC_IOCCR_G3_IO3_Msk /*!<GROUP3_IO3 channel mode */
  10150. #define TSC_IOCCR_G3_IO4_Pos (11U)
  10151. #define TSC_IOCCR_G3_IO4_Msk (0x1U << TSC_IOCCR_G3_IO4_Pos) /*!< 0x00000800 */
  10152. #define TSC_IOCCR_G3_IO4 TSC_IOCCR_G3_IO4_Msk /*!<GROUP3_IO4 channel mode */
  10153. #define TSC_IOCCR_G4_IO1_Pos (12U)
  10154. #define TSC_IOCCR_G4_IO1_Msk (0x1U << TSC_IOCCR_G4_IO1_Pos) /*!< 0x00001000 */
  10155. #define TSC_IOCCR_G4_IO1 TSC_IOCCR_G4_IO1_Msk /*!<GROUP4_IO1 channel mode */
  10156. #define TSC_IOCCR_G4_IO2_Pos (13U)
  10157. #define TSC_IOCCR_G4_IO2_Msk (0x1U << TSC_IOCCR_G4_IO2_Pos) /*!< 0x00002000 */
  10158. #define TSC_IOCCR_G4_IO2 TSC_IOCCR_G4_IO2_Msk /*!<GROUP4_IO2 channel mode */
  10159. #define TSC_IOCCR_G4_IO3_Pos (14U)
  10160. #define TSC_IOCCR_G4_IO3_Msk (0x1U << TSC_IOCCR_G4_IO3_Pos) /*!< 0x00004000 */
  10161. #define TSC_IOCCR_G4_IO3 TSC_IOCCR_G4_IO3_Msk /*!<GROUP4_IO3 channel mode */
  10162. #define TSC_IOCCR_G4_IO4_Pos (15U)
  10163. #define TSC_IOCCR_G4_IO4_Msk (0x1U << TSC_IOCCR_G4_IO4_Pos) /*!< 0x00008000 */
  10164. #define TSC_IOCCR_G4_IO4 TSC_IOCCR_G4_IO4_Msk /*!<GROUP4_IO4 channel mode */
  10165. #define TSC_IOCCR_G5_IO1_Pos (16U)
  10166. #define TSC_IOCCR_G5_IO1_Msk (0x1U << TSC_IOCCR_G5_IO1_Pos) /*!< 0x00010000 */
  10167. #define TSC_IOCCR_G5_IO1 TSC_IOCCR_G5_IO1_Msk /*!<GROUP5_IO1 channel mode */
  10168. #define TSC_IOCCR_G5_IO2_Pos (17U)
  10169. #define TSC_IOCCR_G5_IO2_Msk (0x1U << TSC_IOCCR_G5_IO2_Pos) /*!< 0x00020000 */
  10170. #define TSC_IOCCR_G5_IO2 TSC_IOCCR_G5_IO2_Msk /*!<GROUP5_IO2 channel mode */
  10171. #define TSC_IOCCR_G5_IO3_Pos (18U)
  10172. #define TSC_IOCCR_G5_IO3_Msk (0x1U << TSC_IOCCR_G5_IO3_Pos) /*!< 0x00040000 */
  10173. #define TSC_IOCCR_G5_IO3 TSC_IOCCR_G5_IO3_Msk /*!<GROUP5_IO3 channel mode */
  10174. #define TSC_IOCCR_G5_IO4_Pos (19U)
  10175. #define TSC_IOCCR_G5_IO4_Msk (0x1U << TSC_IOCCR_G5_IO4_Pos) /*!< 0x00080000 */
  10176. #define TSC_IOCCR_G5_IO4 TSC_IOCCR_G5_IO4_Msk /*!<GROUP5_IO4 channel mode */
  10177. #define TSC_IOCCR_G6_IO1_Pos (20U)
  10178. #define TSC_IOCCR_G6_IO1_Msk (0x1U << TSC_IOCCR_G6_IO1_Pos) /*!< 0x00100000 */
  10179. #define TSC_IOCCR_G6_IO1 TSC_IOCCR_G6_IO1_Msk /*!<GROUP6_IO1 channel mode */
  10180. #define TSC_IOCCR_G6_IO2_Pos (21U)
  10181. #define TSC_IOCCR_G6_IO2_Msk (0x1U << TSC_IOCCR_G6_IO2_Pos) /*!< 0x00200000 */
  10182. #define TSC_IOCCR_G6_IO2 TSC_IOCCR_G6_IO2_Msk /*!<GROUP6_IO2 channel mode */
  10183. #define TSC_IOCCR_G6_IO3_Pos (22U)
  10184. #define TSC_IOCCR_G6_IO3_Msk (0x1U << TSC_IOCCR_G6_IO3_Pos) /*!< 0x00400000 */
  10185. #define TSC_IOCCR_G6_IO3 TSC_IOCCR_G6_IO3_Msk /*!<GROUP6_IO3 channel mode */
  10186. #define TSC_IOCCR_G6_IO4_Pos (23U)
  10187. #define TSC_IOCCR_G6_IO4_Msk (0x1U << TSC_IOCCR_G6_IO4_Pos) /*!< 0x00800000 */
  10188. #define TSC_IOCCR_G6_IO4 TSC_IOCCR_G6_IO4_Msk /*!<GROUP6_IO4 channel mode */
  10189. #define TSC_IOCCR_G7_IO1_Pos (24U)
  10190. #define TSC_IOCCR_G7_IO1_Msk (0x1U << TSC_IOCCR_G7_IO1_Pos) /*!< 0x01000000 */
  10191. #define TSC_IOCCR_G7_IO1 TSC_IOCCR_G7_IO1_Msk /*!<GROUP7_IO1 channel mode */
  10192. #define TSC_IOCCR_G7_IO2_Pos (25U)
  10193. #define TSC_IOCCR_G7_IO2_Msk (0x1U << TSC_IOCCR_G7_IO2_Pos) /*!< 0x02000000 */
  10194. #define TSC_IOCCR_G7_IO2 TSC_IOCCR_G7_IO2_Msk /*!<GROUP7_IO2 channel mode */
  10195. #define TSC_IOCCR_G7_IO3_Pos (26U)
  10196. #define TSC_IOCCR_G7_IO3_Msk (0x1U << TSC_IOCCR_G7_IO3_Pos) /*!< 0x04000000 */
  10197. #define TSC_IOCCR_G7_IO3 TSC_IOCCR_G7_IO3_Msk /*!<GROUP7_IO3 channel mode */
  10198. #define TSC_IOCCR_G7_IO4_Pos (27U)
  10199. #define TSC_IOCCR_G7_IO4_Msk (0x1U << TSC_IOCCR_G7_IO4_Pos) /*!< 0x08000000 */
  10200. #define TSC_IOCCR_G7_IO4 TSC_IOCCR_G7_IO4_Msk /*!<GROUP7_IO4 channel mode */
  10201. #define TSC_IOCCR_G8_IO1_Pos (28U)
  10202. #define TSC_IOCCR_G8_IO1_Msk (0x1U << TSC_IOCCR_G8_IO1_Pos) /*!< 0x10000000 */
  10203. #define TSC_IOCCR_G8_IO1 TSC_IOCCR_G8_IO1_Msk /*!<GROUP8_IO1 channel mode */
  10204. #define TSC_IOCCR_G8_IO2_Pos (29U)
  10205. #define TSC_IOCCR_G8_IO2_Msk (0x1U << TSC_IOCCR_G8_IO2_Pos) /*!< 0x20000000 */
  10206. #define TSC_IOCCR_G8_IO2 TSC_IOCCR_G8_IO2_Msk /*!<GROUP8_IO2 channel mode */
  10207. #define TSC_IOCCR_G8_IO3_Pos (30U)
  10208. #define TSC_IOCCR_G8_IO3_Msk (0x1U << TSC_IOCCR_G8_IO3_Pos) /*!< 0x40000000 */
  10209. #define TSC_IOCCR_G8_IO3 TSC_IOCCR_G8_IO3_Msk /*!<GROUP8_IO3 channel mode */
  10210. #define TSC_IOCCR_G8_IO4_Pos (31U)
  10211. #define TSC_IOCCR_G8_IO4_Msk (0x1U << TSC_IOCCR_G8_IO4_Pos) /*!< 0x80000000 */
  10212. #define TSC_IOCCR_G8_IO4 TSC_IOCCR_G8_IO4_Msk /*!<GROUP8_IO4 channel mode */
  10213. /******************* Bit definition for TSC_IOGCSR register *****************/
  10214. #define TSC_IOGCSR_G1E_Pos (0U)
  10215. #define TSC_IOGCSR_G1E_Msk (0x1U << TSC_IOGCSR_G1E_Pos) /*!< 0x00000001 */
  10216. #define TSC_IOGCSR_G1E TSC_IOGCSR_G1E_Msk /*!<Analog IO GROUP1 enable */
  10217. #define TSC_IOGCSR_G2E_Pos (1U)
  10218. #define TSC_IOGCSR_G2E_Msk (0x1U << TSC_IOGCSR_G2E_Pos) /*!< 0x00000002 */
  10219. #define TSC_IOGCSR_G2E TSC_IOGCSR_G2E_Msk /*!<Analog IO GROUP2 enable */
  10220. #define TSC_IOGCSR_G3E_Pos (2U)
  10221. #define TSC_IOGCSR_G3E_Msk (0x1U << TSC_IOGCSR_G3E_Pos) /*!< 0x00000004 */
  10222. #define TSC_IOGCSR_G3E TSC_IOGCSR_G3E_Msk /*!<Analog IO GROUP3 enable */
  10223. #define TSC_IOGCSR_G4E_Pos (3U)
  10224. #define TSC_IOGCSR_G4E_Msk (0x1U << TSC_IOGCSR_G4E_Pos) /*!< 0x00000008 */
  10225. #define TSC_IOGCSR_G4E TSC_IOGCSR_G4E_Msk /*!<Analog IO GROUP4 enable */
  10226. #define TSC_IOGCSR_G5E_Pos (4U)
  10227. #define TSC_IOGCSR_G5E_Msk (0x1U << TSC_IOGCSR_G5E_Pos) /*!< 0x00000010 */
  10228. #define TSC_IOGCSR_G5E TSC_IOGCSR_G5E_Msk /*!<Analog IO GROUP5 enable */
  10229. #define TSC_IOGCSR_G6E_Pos (5U)
  10230. #define TSC_IOGCSR_G6E_Msk (0x1U << TSC_IOGCSR_G6E_Pos) /*!< 0x00000020 */
  10231. #define TSC_IOGCSR_G6E TSC_IOGCSR_G6E_Msk /*!<Analog IO GROUP6 enable */
  10232. #define TSC_IOGCSR_G7E_Pos (6U)
  10233. #define TSC_IOGCSR_G7E_Msk (0x1U << TSC_IOGCSR_G7E_Pos) /*!< 0x00000040 */
  10234. #define TSC_IOGCSR_G7E TSC_IOGCSR_G7E_Msk /*!<Analog IO GROUP7 enable */
  10235. #define TSC_IOGCSR_G8E_Pos (7U)
  10236. #define TSC_IOGCSR_G8E_Msk (0x1U << TSC_IOGCSR_G8E_Pos) /*!< 0x00000080 */
  10237. #define TSC_IOGCSR_G8E TSC_IOGCSR_G8E_Msk /*!<Analog IO GROUP8 enable */
  10238. #define TSC_IOGCSR_G1S_Pos (16U)
  10239. #define TSC_IOGCSR_G1S_Msk (0x1U << TSC_IOGCSR_G1S_Pos) /*!< 0x00010000 */
  10240. #define TSC_IOGCSR_G1S TSC_IOGCSR_G1S_Msk /*!<Analog IO GROUP1 status */
  10241. #define TSC_IOGCSR_G2S_Pos (17U)
  10242. #define TSC_IOGCSR_G2S_Msk (0x1U << TSC_IOGCSR_G2S_Pos) /*!< 0x00020000 */
  10243. #define TSC_IOGCSR_G2S TSC_IOGCSR_G2S_Msk /*!<Analog IO GROUP2 status */
  10244. #define TSC_IOGCSR_G3S_Pos (18U)
  10245. #define TSC_IOGCSR_G3S_Msk (0x1U << TSC_IOGCSR_G3S_Pos) /*!< 0x00040000 */
  10246. #define TSC_IOGCSR_G3S TSC_IOGCSR_G3S_Msk /*!<Analog IO GROUP3 status */
  10247. #define TSC_IOGCSR_G4S_Pos (19U)
  10248. #define TSC_IOGCSR_G4S_Msk (0x1U << TSC_IOGCSR_G4S_Pos) /*!< 0x00080000 */
  10249. #define TSC_IOGCSR_G4S TSC_IOGCSR_G4S_Msk /*!<Analog IO GROUP4 status */
  10250. #define TSC_IOGCSR_G5S_Pos (20U)
  10251. #define TSC_IOGCSR_G5S_Msk (0x1U << TSC_IOGCSR_G5S_Pos) /*!< 0x00100000 */
  10252. #define TSC_IOGCSR_G5S TSC_IOGCSR_G5S_Msk /*!<Analog IO GROUP5 status */
  10253. #define TSC_IOGCSR_G6S_Pos (21U)
  10254. #define TSC_IOGCSR_G6S_Msk (0x1U << TSC_IOGCSR_G6S_Pos) /*!< 0x00200000 */
  10255. #define TSC_IOGCSR_G6S TSC_IOGCSR_G6S_Msk /*!<Analog IO GROUP6 status */
  10256. #define TSC_IOGCSR_G7S_Pos (22U)
  10257. #define TSC_IOGCSR_G7S_Msk (0x1U << TSC_IOGCSR_G7S_Pos) /*!< 0x00400000 */
  10258. #define TSC_IOGCSR_G7S TSC_IOGCSR_G7S_Msk /*!<Analog IO GROUP7 status */
  10259. #define TSC_IOGCSR_G8S_Pos (23U)
  10260. #define TSC_IOGCSR_G8S_Msk (0x1U << TSC_IOGCSR_G8S_Pos) /*!< 0x00800000 */
  10261. #define TSC_IOGCSR_G8S TSC_IOGCSR_G8S_Msk /*!<Analog IO GROUP8 status */
  10262. /******************* Bit definition for TSC_IOGXCR register *****************/
  10263. #define TSC_IOGXCR_CNT_Pos (0U)
  10264. #define TSC_IOGXCR_CNT_Msk (0x3FFFU << TSC_IOGXCR_CNT_Pos) /*!< 0x00003FFF */
  10265. #define TSC_IOGXCR_CNT TSC_IOGXCR_CNT_Msk /*!<CNT[13:0] bits (Counter value) */
  10266. /******************************************************************************/
  10267. /* */
  10268. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  10269. /* */
  10270. /******************************************************************************/
  10271. /****************** Bit definition for USART_CR1 register *******************/
  10272. #define USART_CR1_UE_Pos (0U)
  10273. #define USART_CR1_UE_Msk (0x1U << USART_CR1_UE_Pos) /*!< 0x00000001 */
  10274. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  10275. #define USART_CR1_UESM_Pos (1U)
  10276. #define USART_CR1_UESM_Msk (0x1U << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  10277. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  10278. #define USART_CR1_RE_Pos (2U)
  10279. #define USART_CR1_RE_Msk (0x1U << USART_CR1_RE_Pos) /*!< 0x00000004 */
  10280. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  10281. #define USART_CR1_TE_Pos (3U)
  10282. #define USART_CR1_TE_Msk (0x1U << USART_CR1_TE_Pos) /*!< 0x00000008 */
  10283. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  10284. #define USART_CR1_IDLEIE_Pos (4U)
  10285. #define USART_CR1_IDLEIE_Msk (0x1U << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  10286. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  10287. #define USART_CR1_RXNEIE_Pos (5U)
  10288. #define USART_CR1_RXNEIE_Msk (0x1U << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  10289. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  10290. #define USART_CR1_TCIE_Pos (6U)
  10291. #define USART_CR1_TCIE_Msk (0x1U << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  10292. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  10293. #define USART_CR1_TXEIE_Pos (7U)
  10294. #define USART_CR1_TXEIE_Msk (0x1U << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  10295. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  10296. #define USART_CR1_PEIE_Pos (8U)
  10297. #define USART_CR1_PEIE_Msk (0x1U << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  10298. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  10299. #define USART_CR1_PS_Pos (9U)
  10300. #define USART_CR1_PS_Msk (0x1U << USART_CR1_PS_Pos) /*!< 0x00000200 */
  10301. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  10302. #define USART_CR1_PCE_Pos (10U)
  10303. #define USART_CR1_PCE_Msk (0x1U << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  10304. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  10305. #define USART_CR1_WAKE_Pos (11U)
  10306. #define USART_CR1_WAKE_Msk (0x1U << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  10307. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  10308. #define USART_CR1_M_Pos (12U)
  10309. #define USART_CR1_M_Msk (0x1U << USART_CR1_M_Pos) /*!< 0x00001000 */
  10310. #define USART_CR1_M USART_CR1_M_Msk /*!< Word length */
  10311. #define USART_CR1_M0_Pos (12U)
  10312. #define USART_CR1_M0_Msk (0x1U << USART_CR1_M0_Pos) /*!< 0x00001000 */
  10313. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< SmartCard Word length */
  10314. #define USART_CR1_MME_Pos (13U)
  10315. #define USART_CR1_MME_Msk (0x1U << USART_CR1_MME_Pos) /*!< 0x00002000 */
  10316. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  10317. #define USART_CR1_CMIE_Pos (14U)
  10318. #define USART_CR1_CMIE_Msk (0x1U << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  10319. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  10320. #define USART_CR1_OVER8_Pos (15U)
  10321. #define USART_CR1_OVER8_Msk (0x1U << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  10322. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  10323. #define USART_CR1_DEDT_Pos (16U)
  10324. #define USART_CR1_DEDT_Msk (0x1FU << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  10325. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  10326. #define USART_CR1_DEDT_0 (0x01U << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  10327. #define USART_CR1_DEDT_1 (0x02U << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  10328. #define USART_CR1_DEDT_2 (0x04U << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  10329. #define USART_CR1_DEDT_3 (0x08U << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  10330. #define USART_CR1_DEDT_4 (0x10U << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  10331. #define USART_CR1_DEAT_Pos (21U)
  10332. #define USART_CR1_DEAT_Msk (0x1FU << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  10333. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  10334. #define USART_CR1_DEAT_0 (0x01U << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  10335. #define USART_CR1_DEAT_1 (0x02U << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  10336. #define USART_CR1_DEAT_2 (0x04U << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  10337. #define USART_CR1_DEAT_3 (0x08U << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  10338. #define USART_CR1_DEAT_4 (0x10U << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  10339. #define USART_CR1_RTOIE_Pos (26U)
  10340. #define USART_CR1_RTOIE_Msk (0x1U << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  10341. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */
  10342. #define USART_CR1_EOBIE_Pos (27U)
  10343. #define USART_CR1_EOBIE_Msk (0x1U << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  10344. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */
  10345. /****************** Bit definition for USART_CR2 register *******************/
  10346. #define USART_CR2_ADDM7_Pos (4U)
  10347. #define USART_CR2_ADDM7_Msk (0x1U << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  10348. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  10349. #define USART_CR2_LBDL_Pos (5U)
  10350. #define USART_CR2_LBDL_Msk (0x1U << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  10351. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  10352. #define USART_CR2_LBDIE_Pos (6U)
  10353. #define USART_CR2_LBDIE_Msk (0x1U << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  10354. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  10355. #define USART_CR2_LBCL_Pos (8U)
  10356. #define USART_CR2_LBCL_Msk (0x1U << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  10357. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  10358. #define USART_CR2_CPHA_Pos (9U)
  10359. #define USART_CR2_CPHA_Msk (0x1U << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  10360. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  10361. #define USART_CR2_CPOL_Pos (10U)
  10362. #define USART_CR2_CPOL_Msk (0x1U << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  10363. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  10364. #define USART_CR2_CLKEN_Pos (11U)
  10365. #define USART_CR2_CLKEN_Msk (0x1U << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  10366. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  10367. #define USART_CR2_STOP_Pos (12U)
  10368. #define USART_CR2_STOP_Msk (0x3U << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  10369. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  10370. #define USART_CR2_STOP_0 (0x1U << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  10371. #define USART_CR2_STOP_1 (0x2U << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  10372. #define USART_CR2_LINEN_Pos (14U)
  10373. #define USART_CR2_LINEN_Msk (0x1U << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  10374. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  10375. #define USART_CR2_SWAP_Pos (15U)
  10376. #define USART_CR2_SWAP_Msk (0x1U << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  10377. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  10378. #define USART_CR2_RXINV_Pos (16U)
  10379. #define USART_CR2_RXINV_Msk (0x1U << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  10380. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  10381. #define USART_CR2_TXINV_Pos (17U)
  10382. #define USART_CR2_TXINV_Msk (0x1U << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  10383. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  10384. #define USART_CR2_DATAINV_Pos (18U)
  10385. #define USART_CR2_DATAINV_Msk (0x1U << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  10386. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  10387. #define USART_CR2_MSBFIRST_Pos (19U)
  10388. #define USART_CR2_MSBFIRST_Msk (0x1U << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  10389. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  10390. #define USART_CR2_ABREN_Pos (20U)
  10391. #define USART_CR2_ABREN_Msk (0x1U << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  10392. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  10393. #define USART_CR2_ABRMODE_Pos (21U)
  10394. #define USART_CR2_ABRMODE_Msk (0x3U << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  10395. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  10396. #define USART_CR2_ABRMODE_0 (0x1U << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  10397. #define USART_CR2_ABRMODE_1 (0x2U << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  10398. #define USART_CR2_RTOEN_Pos (23U)
  10399. #define USART_CR2_RTOEN_Msk (0x1U << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  10400. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  10401. #define USART_CR2_ADD_Pos (24U)
  10402. #define USART_CR2_ADD_Msk (0xFFU << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  10403. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  10404. /****************** Bit definition for USART_CR3 register *******************/
  10405. #define USART_CR3_EIE_Pos (0U)
  10406. #define USART_CR3_EIE_Msk (0x1U << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  10407. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  10408. #define USART_CR3_IREN_Pos (1U)
  10409. #define USART_CR3_IREN_Msk (0x1U << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  10410. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  10411. #define USART_CR3_IRLP_Pos (2U)
  10412. #define USART_CR3_IRLP_Msk (0x1U << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  10413. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  10414. #define USART_CR3_HDSEL_Pos (3U)
  10415. #define USART_CR3_HDSEL_Msk (0x1U << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  10416. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  10417. #define USART_CR3_NACK_Pos (4U)
  10418. #define USART_CR3_NACK_Msk (0x1U << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  10419. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  10420. #define USART_CR3_SCEN_Pos (5U)
  10421. #define USART_CR3_SCEN_Msk (0x1U << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  10422. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  10423. #define USART_CR3_DMAR_Pos (6U)
  10424. #define USART_CR3_DMAR_Msk (0x1U << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  10425. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  10426. #define USART_CR3_DMAT_Pos (7U)
  10427. #define USART_CR3_DMAT_Msk (0x1U << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  10428. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  10429. #define USART_CR3_RTSE_Pos (8U)
  10430. #define USART_CR3_RTSE_Msk (0x1U << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  10431. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  10432. #define USART_CR3_CTSE_Pos (9U)
  10433. #define USART_CR3_CTSE_Msk (0x1U << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  10434. #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */
  10435. #define USART_CR3_CTSIE_Pos (10U)
  10436. #define USART_CR3_CTSIE_Msk (0x1U << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  10437. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  10438. #define USART_CR3_ONEBIT_Pos (11U)
  10439. #define USART_CR3_ONEBIT_Msk (0x1U << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  10440. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  10441. #define USART_CR3_OVRDIS_Pos (12U)
  10442. #define USART_CR3_OVRDIS_Msk (0x1U << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  10443. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  10444. #define USART_CR3_DDRE_Pos (13U)
  10445. #define USART_CR3_DDRE_Msk (0x1U << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  10446. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  10447. #define USART_CR3_DEM_Pos (14U)
  10448. #define USART_CR3_DEM_Msk (0x1U << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  10449. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  10450. #define USART_CR3_DEP_Pos (15U)
  10451. #define USART_CR3_DEP_Msk (0x1U << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  10452. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  10453. #define USART_CR3_SCARCNT_Pos (17U)
  10454. #define USART_CR3_SCARCNT_Msk (0x7U << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  10455. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  10456. #define USART_CR3_SCARCNT_0 (0x1U << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  10457. #define USART_CR3_SCARCNT_1 (0x2U << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  10458. #define USART_CR3_SCARCNT_2 (0x4U << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  10459. #define USART_CR3_WUS_Pos (20U)
  10460. #define USART_CR3_WUS_Msk (0x3U << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  10461. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  10462. #define USART_CR3_WUS_0 (0x1U << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  10463. #define USART_CR3_WUS_1 (0x2U << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  10464. #define USART_CR3_WUFIE_Pos (22U)
  10465. #define USART_CR3_WUFIE_Msk (0x1U << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  10466. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  10467. /****************** Bit definition for USART_BRR register *******************/
  10468. #define USART_BRR_DIV_FRACTION_Pos (0U)
  10469. #define USART_BRR_DIV_FRACTION_Msk (0xFU << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */
  10470. #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */
  10471. #define USART_BRR_DIV_MANTISSA_Pos (4U)
  10472. #define USART_BRR_DIV_MANTISSA_Msk (0xFFFU << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */
  10473. #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */
  10474. /****************** Bit definition for USART_GTPR register ******************/
  10475. #define USART_GTPR_PSC_Pos (0U)
  10476. #define USART_GTPR_PSC_Msk (0xFFU << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  10477. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  10478. #define USART_GTPR_GT_Pos (8U)
  10479. #define USART_GTPR_GT_Msk (0xFFU << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  10480. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  10481. /******************* Bit definition for USART_RTOR register *****************/
  10482. #define USART_RTOR_RTO_Pos (0U)
  10483. #define USART_RTOR_RTO_Msk (0xFFFFFFU << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  10484. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */
  10485. #define USART_RTOR_BLEN_Pos (24U)
  10486. #define USART_RTOR_BLEN_Msk (0xFFU << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  10487. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  10488. /******************* Bit definition for USART_RQR register ******************/
  10489. #define USART_RQR_ABRRQ_Pos (0U)
  10490. #define USART_RQR_ABRRQ_Msk (0x1U << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  10491. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  10492. #define USART_RQR_SBKRQ_Pos (1U)
  10493. #define USART_RQR_SBKRQ_Msk (0x1U << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  10494. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  10495. #define USART_RQR_MMRQ_Pos (2U)
  10496. #define USART_RQR_MMRQ_Msk (0x1U << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  10497. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  10498. #define USART_RQR_RXFRQ_Pos (3U)
  10499. #define USART_RQR_RXFRQ_Msk (0x1U << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  10500. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  10501. #define USART_RQR_TXFRQ_Pos (4U)
  10502. #define USART_RQR_TXFRQ_Msk (0x1U << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  10503. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */
  10504. /******************* Bit definition for USART_ISR register ******************/
  10505. #define USART_ISR_PE_Pos (0U)
  10506. #define USART_ISR_PE_Msk (0x1U << USART_ISR_PE_Pos) /*!< 0x00000001 */
  10507. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  10508. #define USART_ISR_FE_Pos (1U)
  10509. #define USART_ISR_FE_Msk (0x1U << USART_ISR_FE_Pos) /*!< 0x00000002 */
  10510. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  10511. #define USART_ISR_NE_Pos (2U)
  10512. #define USART_ISR_NE_Msk (0x1U << USART_ISR_NE_Pos) /*!< 0x00000004 */
  10513. #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */
  10514. #define USART_ISR_ORE_Pos (3U)
  10515. #define USART_ISR_ORE_Msk (0x1U << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  10516. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  10517. #define USART_ISR_IDLE_Pos (4U)
  10518. #define USART_ISR_IDLE_Msk (0x1U << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  10519. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  10520. #define USART_ISR_RXNE_Pos (5U)
  10521. #define USART_ISR_RXNE_Msk (0x1U << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  10522. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  10523. #define USART_ISR_TC_Pos (6U)
  10524. #define USART_ISR_TC_Msk (0x1U << USART_ISR_TC_Pos) /*!< 0x00000040 */
  10525. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  10526. #define USART_ISR_TXE_Pos (7U)
  10527. #define USART_ISR_TXE_Msk (0x1U << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  10528. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  10529. #define USART_ISR_LBDF_Pos (8U)
  10530. #define USART_ISR_LBDF_Msk (0x1U << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  10531. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  10532. #define USART_ISR_CTSIF_Pos (9U)
  10533. #define USART_ISR_CTSIF_Msk (0x1U << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  10534. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */
  10535. #define USART_ISR_CTS_Pos (10U)
  10536. #define USART_ISR_CTS_Msk (0x1U << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  10537. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */
  10538. #define USART_ISR_RTOF_Pos (11U)
  10539. #define USART_ISR_RTOF_Msk (0x1U << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  10540. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */
  10541. #define USART_ISR_EOBF_Pos (12U)
  10542. #define USART_ISR_EOBF_Msk (0x1U << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  10543. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  10544. #define USART_ISR_ABRE_Pos (14U)
  10545. #define USART_ISR_ABRE_Msk (0x1U << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  10546. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  10547. #define USART_ISR_ABRF_Pos (15U)
  10548. #define USART_ISR_ABRF_Msk (0x1U << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  10549. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  10550. #define USART_ISR_BUSY_Pos (16U)
  10551. #define USART_ISR_BUSY_Msk (0x1U << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  10552. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  10553. #define USART_ISR_CMF_Pos (17U)
  10554. #define USART_ISR_CMF_Msk (0x1U << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  10555. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  10556. #define USART_ISR_SBKF_Pos (18U)
  10557. #define USART_ISR_SBKF_Msk (0x1U << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  10558. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  10559. #define USART_ISR_RWU_Pos (19U)
  10560. #define USART_ISR_RWU_Msk (0x1U << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  10561. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  10562. #define USART_ISR_WUF_Pos (20U)
  10563. #define USART_ISR_WUF_Msk (0x1U << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  10564. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  10565. #define USART_ISR_TEACK_Pos (21U)
  10566. #define USART_ISR_TEACK_Msk (0x1U << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  10567. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  10568. #define USART_ISR_REACK_Pos (22U)
  10569. #define USART_ISR_REACK_Msk (0x1U << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  10570. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  10571. /******************* Bit definition for USART_ICR register ******************/
  10572. #define USART_ICR_PECF_Pos (0U)
  10573. #define USART_ICR_PECF_Msk (0x1U << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  10574. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  10575. #define USART_ICR_FECF_Pos (1U)
  10576. #define USART_ICR_FECF_Msk (0x1U << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  10577. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  10578. #define USART_ICR_NCF_Pos (2U)
  10579. #define USART_ICR_NCF_Msk (0x1U << USART_ICR_NCF_Pos) /*!< 0x00000004 */
  10580. #define USART_ICR_NCF USART_ICR_NCF_Msk /*!< Noise detected Clear Flag */
  10581. #define USART_ICR_ORECF_Pos (3U)
  10582. #define USART_ICR_ORECF_Msk (0x1U << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  10583. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  10584. #define USART_ICR_IDLECF_Pos (4U)
  10585. #define USART_ICR_IDLECF_Msk (0x1U << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  10586. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  10587. #define USART_ICR_TCCF_Pos (6U)
  10588. #define USART_ICR_TCCF_Msk (0x1U << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  10589. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  10590. #define USART_ICR_LBDCF_Pos (8U)
  10591. #define USART_ICR_LBDCF_Msk (0x1U << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  10592. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  10593. #define USART_ICR_CTSCF_Pos (9U)
  10594. #define USART_ICR_CTSCF_Msk (0x1U << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  10595. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  10596. #define USART_ICR_RTOCF_Pos (11U)
  10597. #define USART_ICR_RTOCF_Msk (0x1U << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  10598. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  10599. #define USART_ICR_EOBCF_Pos (12U)
  10600. #define USART_ICR_EOBCF_Msk (0x1U << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  10601. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  10602. #define USART_ICR_CMCF_Pos (17U)
  10603. #define USART_ICR_CMCF_Msk (0x1U << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  10604. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  10605. #define USART_ICR_WUCF_Pos (20U)
  10606. #define USART_ICR_WUCF_Msk (0x1U << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  10607. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  10608. /******************* Bit definition for USART_RDR register ******************/
  10609. #define USART_RDR_RDR_Pos (0U)
  10610. #define USART_RDR_RDR_Msk (0x1FFU << USART_RDR_RDR_Pos) /*!< 0x000001FF */
  10611. #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */
  10612. /******************* Bit definition for USART_TDR register ******************/
  10613. #define USART_TDR_TDR_Pos (0U)
  10614. #define USART_TDR_TDR_Msk (0x1FFU << USART_TDR_TDR_Pos) /*!< 0x000001FF */
  10615. #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */
  10616. /******************************************************************************/
  10617. /* */
  10618. /* Window WATCHDOG */
  10619. /* */
  10620. /******************************************************************************/
  10621. /******************* Bit definition for WWDG_CR register ********************/
  10622. #define WWDG_CR_T_Pos (0U)
  10623. #define WWDG_CR_T_Msk (0x7FU << WWDG_CR_T_Pos) /*!< 0x0000007F */
  10624. #define WWDG_CR_T WWDG_CR_T_Msk /*!< T[6:0] bits (7-Bit counter (MSB to LSB)) */
  10625. #define WWDG_CR_T_0 (0x01U << WWDG_CR_T_Pos) /*!< 0x00000001 */
  10626. #define WWDG_CR_T_1 (0x02U << WWDG_CR_T_Pos) /*!< 0x00000002 */
  10627. #define WWDG_CR_T_2 (0x04U << WWDG_CR_T_Pos) /*!< 0x00000004 */
  10628. #define WWDG_CR_T_3 (0x08U << WWDG_CR_T_Pos) /*!< 0x00000008 */
  10629. #define WWDG_CR_T_4 (0x10U << WWDG_CR_T_Pos) /*!< 0x00000010 */
  10630. #define WWDG_CR_T_5 (0x20U << WWDG_CR_T_Pos) /*!< 0x00000020 */
  10631. #define WWDG_CR_T_6 (0x40U << WWDG_CR_T_Pos) /*!< 0x00000040 */
  10632. /* Legacy defines */
  10633. #define WWDG_CR_T0 WWDG_CR_T_0
  10634. #define WWDG_CR_T1 WWDG_CR_T_1
  10635. #define WWDG_CR_T2 WWDG_CR_T_2
  10636. #define WWDG_CR_T3 WWDG_CR_T_3
  10637. #define WWDG_CR_T4 WWDG_CR_T_4
  10638. #define WWDG_CR_T5 WWDG_CR_T_5
  10639. #define WWDG_CR_T6 WWDG_CR_T_6
  10640. #define WWDG_CR_WDGA_Pos (7U)
  10641. #define WWDG_CR_WDGA_Msk (0x1U << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */
  10642. #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!<Activation bit */
  10643. /******************* Bit definition for WWDG_CFR register *******************/
  10644. #define WWDG_CFR_W_Pos (0U)
  10645. #define WWDG_CFR_W_Msk (0x7FU << WWDG_CFR_W_Pos) /*!< 0x0000007F */
  10646. #define WWDG_CFR_W WWDG_CFR_W_Msk /*!< W[6:0] bits (7-bit window value) */
  10647. #define WWDG_CFR_W_0 (0x01U << WWDG_CFR_W_Pos) /*!< 0x00000001 */
  10648. #define WWDG_CFR_W_1 (0x02U << WWDG_CFR_W_Pos) /*!< 0x00000002 */
  10649. #define WWDG_CFR_W_2 (0x04U << WWDG_CFR_W_Pos) /*!< 0x00000004 */
  10650. #define WWDG_CFR_W_3 (0x08U << WWDG_CFR_W_Pos) /*!< 0x00000008 */
  10651. #define WWDG_CFR_W_4 (0x10U << WWDG_CFR_W_Pos) /*!< 0x00000010 */
  10652. #define WWDG_CFR_W_5 (0x20U << WWDG_CFR_W_Pos) /*!< 0x00000020 */
  10653. #define WWDG_CFR_W_6 (0x40U << WWDG_CFR_W_Pos) /*!< 0x00000040 */
  10654. /* Legacy defines */
  10655. #define WWDG_CFR_W0 WWDG_CFR_W_0
  10656. #define WWDG_CFR_W1 WWDG_CFR_W_1
  10657. #define WWDG_CFR_W2 WWDG_CFR_W_2
  10658. #define WWDG_CFR_W3 WWDG_CFR_W_3
  10659. #define WWDG_CFR_W4 WWDG_CFR_W_4
  10660. #define WWDG_CFR_W5 WWDG_CFR_W_5
  10661. #define WWDG_CFR_W6 WWDG_CFR_W_6
  10662. #define WWDG_CFR_WDGTB_Pos (7U)
  10663. #define WWDG_CFR_WDGTB_Msk (0x3U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000180 */
  10664. #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!< WDGTB[1:0] bits (Timer Base) */
  10665. #define WWDG_CFR_WDGTB_0 (0x1U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000080 */
  10666. #define WWDG_CFR_WDGTB_1 (0x2U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000100 */
  10667. /* Legacy defines */
  10668. #define WWDG_CFR_WDGTB0 WWDG_CFR_WDGTB_0
  10669. #define WWDG_CFR_WDGTB1 WWDG_CFR_WDGTB_1
  10670. #define WWDG_CFR_EWI_Pos (9U)
  10671. #define WWDG_CFR_EWI_Msk (0x1U << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */
  10672. #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!<Early Wakeup Interrupt */
  10673. /******************* Bit definition for WWDG_SR register ********************/
  10674. #define WWDG_SR_EWIF_Pos (0U)
  10675. #define WWDG_SR_EWIF_Msk (0x1U << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */
  10676. #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!<Early Wakeup Interrupt Flag */
  10677. /**
  10678. * @}
  10679. */
  10680. /**
  10681. * @}
  10682. */
  10683. /** @addtogroup Exported_macros
  10684. * @{
  10685. */
  10686. /****************************** ADC Instances *********************************/
  10687. #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC1)
  10688. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_COMMON)
  10689. /****************************** CAN Instances *********************************/
  10690. #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN)
  10691. /****************************** CEC Instances *********************************/
  10692. #define IS_CEC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CEC)
  10693. /****************************** COMP Instances ********************************/
  10694. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
  10695. ((INSTANCE) == COMP2))
  10696. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON)
  10697. /******************** COMP Instances with switch on DAC1 Channel1 output ******/
  10698. #define IS_COMP_DAC1SWITCH_INSTANCE(INSTANCE) ((INSTANCE) == COMP1)
  10699. /******************** COMP Instances with window mode capability **************/
  10700. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2)
  10701. /****************************** CRC Instances *********************************/
  10702. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
  10703. /****************************** DAC Instances *********************************/
  10704. #define IS_DAC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DAC1) || \
  10705. ((INSTANCE) == DAC2))
  10706. #define IS_DAC_CHANNEL_INSTANCE(INSTANCE, CHANNEL) \
  10707. ((((INSTANCE) == DAC1) && \
  10708. (((CHANNEL) == DAC_CHANNEL_1) || \
  10709. ((CHANNEL) == DAC_CHANNEL_2))) \
  10710. || \
  10711. (((INSTANCE) == DAC2) && \
  10712. (((CHANNEL) == DAC_CHANNEL_1))))
  10713. /****************************** DMA Instances *********************************/
  10714. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \
  10715. ((INSTANCE) == DMA1_Channel2) || \
  10716. ((INSTANCE) == DMA1_Channel3) || \
  10717. ((INSTANCE) == DMA1_Channel4) || \
  10718. ((INSTANCE) == DMA1_Channel5) || \
  10719. ((INSTANCE) == DMA1_Channel6) || \
  10720. ((INSTANCE) == DMA1_Channel7) || \
  10721. ((INSTANCE) == DMA2_Channel1) || \
  10722. ((INSTANCE) == DMA2_Channel2) || \
  10723. ((INSTANCE) == DMA2_Channel3) || \
  10724. ((INSTANCE) == DMA2_Channel4) || \
  10725. ((INSTANCE) == DMA2_Channel5))
  10726. /****************************** GPIO Instances ********************************/
  10727. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10728. ((INSTANCE) == GPIOB) || \
  10729. ((INSTANCE) == GPIOC) || \
  10730. ((INSTANCE) == GPIOD) || \
  10731. ((INSTANCE) == GPIOE) || \
  10732. ((INSTANCE) == GPIOF))
  10733. #define IS_GPIO_AF_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10734. ((INSTANCE) == GPIOB) || \
  10735. ((INSTANCE) == GPIOC) || \
  10736. ((INSTANCE) == GPIOD) || \
  10737. ((INSTANCE) == GPIOE) || \
  10738. ((INSTANCE) == GPIOF))
  10739. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10740. ((INSTANCE) == GPIOB) || \
  10741. ((INSTANCE) == GPIOD))
  10742. /****************************** I2C Instances *********************************/
  10743. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  10744. ((INSTANCE) == I2C2))
  10745. /****************** I2C Instances : wakeup capability from stop modes *********/
  10746. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  10747. /****************************** I2S Instances *********************************/
  10748. #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  10749. ((INSTANCE) == SPI2) || \
  10750. ((INSTANCE) == SPI3))
  10751. /****************************** IWDG Instances ********************************/
  10752. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG)
  10753. /****************************** RTC Instances *********************************/
  10754. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
  10755. /****************************** SDADC Instances *******************************/
  10756. #define IS_SDADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SDADC1) || \
  10757. ((INSTANCE) == SDADC2) || \
  10758. ((INSTANCE) == SDADC3))
  10759. /****************************** SMBUS Instances *******************************/
  10760. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  10761. ((INSTANCE) == I2C2))
  10762. /****************************** SPI Instances *********************************/
  10763. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  10764. ((INSTANCE) == SPI2) || \
  10765. ((INSTANCE) == SPI3))
  10766. /******************* TIM Instances : All supported instances ******************/
  10767. #define IS_TIM_INSTANCE(INSTANCE)\
  10768. (((INSTANCE) == TIM2) || \
  10769. ((INSTANCE) == TIM3) || \
  10770. ((INSTANCE) == TIM4) || \
  10771. ((INSTANCE) == TIM5) || \
  10772. ((INSTANCE) == TIM6) || \
  10773. ((INSTANCE) == TIM7) || \
  10774. ((INSTANCE) == TIM12) || \
  10775. ((INSTANCE) == TIM13) || \
  10776. ((INSTANCE) == TIM14) || \
  10777. ((INSTANCE) == TIM15) || \
  10778. ((INSTANCE) == TIM16) || \
  10779. ((INSTANCE) == TIM17) || \
  10780. ((INSTANCE) == TIM18) || \
  10781. ((INSTANCE) == TIM19))
  10782. /******************* TIM Instances : at least 1 capture/compare channel *******/
  10783. #define IS_TIM_CC1_INSTANCE(INSTANCE)\
  10784. (((INSTANCE) == TIM2) || \
  10785. ((INSTANCE) == TIM3) || \
  10786. ((INSTANCE) == TIM4) || \
  10787. ((INSTANCE) == TIM5) || \
  10788. ((INSTANCE) == TIM12) || \
  10789. ((INSTANCE) == TIM13) || \
  10790. ((INSTANCE) == TIM14) || \
  10791. ((INSTANCE) == TIM15) || \
  10792. ((INSTANCE) == TIM16) || \
  10793. ((INSTANCE) == TIM17) || \
  10794. ((INSTANCE) == TIM19))
  10795. /****************** TIM Instances : at least 2 capture/compare channels *******/
  10796. #define IS_TIM_CC2_INSTANCE(INSTANCE)\
  10797. (((INSTANCE) == TIM2) || \
  10798. ((INSTANCE) == TIM3) || \
  10799. ((INSTANCE) == TIM4) || \
  10800. ((INSTANCE) == TIM5) || \
  10801. ((INSTANCE) == TIM12) || \
  10802. ((INSTANCE) == TIM15) || \
  10803. ((INSTANCE) == TIM19))
  10804. /**************** TIM Instances : external trigger input available ************/
  10805. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \
  10806. ((INSTANCE) == TIM3) || \
  10807. ((INSTANCE) == TIM4) || \
  10808. ((INSTANCE) == TIM5) || \
  10809. ((INSTANCE) == TIM19))
  10810. /****************** TIM Instances : at least 3 capture/compare channels *******/
  10811. #define IS_TIM_CC3_INSTANCE(INSTANCE)\
  10812. (((INSTANCE) == TIM2) || \
  10813. ((INSTANCE) == TIM3) || \
  10814. ((INSTANCE) == TIM4) || \
  10815. ((INSTANCE) == TIM5) || \
  10816. ((INSTANCE) == TIM19))
  10817. /****************** TIM Instances : at least 4 capture/compare channels *******/
  10818. #define IS_TIM_CC4_INSTANCE(INSTANCE)\
  10819. (((INSTANCE) == TIM2) || \
  10820. ((INSTANCE) == TIM3) || \
  10821. ((INSTANCE) == TIM4) || \
  10822. ((INSTANCE) == TIM5) || \
  10823. ((INSTANCE) == TIM19))
  10824. /************************** TIM Instances : Advanced-control timers ***********/
  10825. /****************** TIM Instances : Advanced timer instances *******************/
  10826. #define IS_TIM_ADVANCED_INSTANCE(INSTANCE) (0U)
  10827. /****************** TIM Instances : supporting clock selection ****************/
  10828. #define IS_TIM_CLOCK_SELECT_INSTANCE(INSTANCE)\
  10829. (((INSTANCE) == TIM2) || \
  10830. ((INSTANCE) == TIM3) || \
  10831. ((INSTANCE) == TIM4) || \
  10832. ((INSTANCE) == TIM5) || \
  10833. ((INSTANCE) == TIM12) || \
  10834. ((INSTANCE) == TIM15) || \
  10835. ((INSTANCE) == TIM19))
  10836. /****************** TIM Instances : supporting external clock mode 1 for ETRF input */
  10837. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
  10838. (((INSTANCE) == TIM2) || \
  10839. ((INSTANCE) == TIM3) || \
  10840. ((INSTANCE) == TIM4) || \
  10841. ((INSTANCE) == TIM5) || \
  10842. ((INSTANCE) == TIM19))
  10843. /****************** TIM Instances : supporting external clock mode 2 **********/
  10844. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
  10845. (((INSTANCE) == TIM2) || \
  10846. ((INSTANCE) == TIM3) || \
  10847. ((INSTANCE) == TIM4) || \
  10848. ((INSTANCE) == TIM5) || \
  10849. ((INSTANCE) == TIM19))
  10850. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  10851. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
  10852. (((INSTANCE) == TIM2) || \
  10853. ((INSTANCE) == TIM3) || \
  10854. ((INSTANCE) == TIM4) || \
  10855. ((INSTANCE) == TIM5) || \
  10856. ((INSTANCE) == TIM12) || \
  10857. ((INSTANCE) == TIM15) || \
  10858. ((INSTANCE) == TIM19))
  10859. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  10860. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
  10861. (((INSTANCE) == TIM2) || \
  10862. ((INSTANCE) == TIM3) || \
  10863. ((INSTANCE) == TIM4) || \
  10864. ((INSTANCE) == TIM5) || \
  10865. ((INSTANCE) == TIM12) || \
  10866. ((INSTANCE) == TIM15) || \
  10867. ((INSTANCE) == TIM19))
  10868. /****************** TIM Instances : supporting OCxREF clear *******************/
  10869. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
  10870. (((INSTANCE) == TIM2) || \
  10871. ((INSTANCE) == TIM3) || \
  10872. ((INSTANCE) == TIM4) || \
  10873. ((INSTANCE) == TIM5) || \
  10874. ((INSTANCE) == TIM19))
  10875. /****************** TIM Instances : supporting encoder interface **************/
  10876. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)\
  10877. (((INSTANCE) == TIM2) || \
  10878. ((INSTANCE) == TIM3) || \
  10879. ((INSTANCE) == TIM4) || \
  10880. ((INSTANCE) == TIM5) || \
  10881. ((INSTANCE) == TIM19))
  10882. /****************** TIM Instances : supporting Hall interface *****************/
  10883. #define IS_TIM_HALL_INTERFACE_INSTANCE(INSTANCE) (0)
  10884. /****************** TIM Instances : supporting input XOR function *************/
  10885. #define IS_TIM_XOR_INSTANCE(INSTANCE)\
  10886. (((INSTANCE) == TIM2) || \
  10887. ((INSTANCE) == TIM3) || \
  10888. ((INSTANCE) == TIM4) || \
  10889. ((INSTANCE) == TIM5) || \
  10890. ((INSTANCE) == TIM19))
  10891. /****************** TIM Instances : supporting master mode ********************/
  10892. #define IS_TIM_MASTER_INSTANCE(INSTANCE)\
  10893. (((INSTANCE) == TIM2) || \
  10894. ((INSTANCE) == TIM3) || \
  10895. ((INSTANCE) == TIM4) || \
  10896. ((INSTANCE) == TIM5) || \
  10897. ((INSTANCE) == TIM6) || \
  10898. ((INSTANCE) == TIM7) || \
  10899. ((INSTANCE) == TIM15) || \
  10900. ((INSTANCE) == TIM18) || \
  10901. ((INSTANCE) == TIM19))
  10902. /****************** TIM Instances : supporting slave mode *********************/
  10903. #define IS_TIM_SLAVE_INSTANCE(INSTANCE)\
  10904. (((INSTANCE) == TIM2) || \
  10905. ((INSTANCE) == TIM3) || \
  10906. ((INSTANCE) == TIM4) || \
  10907. ((INSTANCE) == TIM5) || \
  10908. ((INSTANCE) == TIM12) || \
  10909. ((INSTANCE) == TIM15) || \
  10910. ((INSTANCE) == TIM19))
  10911. /****************** TIM Instances : supporting 32 bits counter ****************/
  10912. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
  10913. (((INSTANCE) == TIM2) || \
  10914. ((INSTANCE) == TIM5))
  10915. /****************** TIM Instances : supporting DMA burst **********************/
  10916. #define IS_TIM_DMABURST_INSTANCE(INSTANCE)\
  10917. (((INSTANCE) == TIM2) || \
  10918. ((INSTANCE) == TIM3) || \
  10919. ((INSTANCE) == TIM4) || \
  10920. ((INSTANCE) == TIM5) || \
  10921. ((INSTANCE) == TIM15) || \
  10922. ((INSTANCE) == TIM16) || \
  10923. ((INSTANCE) == TIM17) || \
  10924. ((INSTANCE) == TIM19))
  10925. /****************** TIM Instances : supporting the break function *************/
  10926. #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
  10927. (((INSTANCE) == TIM15) || \
  10928. ((INSTANCE) == TIM16) || \
  10929. ((INSTANCE) == TIM17))
  10930. /****************** TIM Instances : supporting input/output channel(s) ********/
  10931. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  10932. ((((INSTANCE) == TIM2) && \
  10933. (((CHANNEL) == TIM_CHANNEL_1) || \
  10934. ((CHANNEL) == TIM_CHANNEL_2) || \
  10935. ((CHANNEL) == TIM_CHANNEL_3) || \
  10936. ((CHANNEL) == TIM_CHANNEL_4))) \
  10937. || \
  10938. (((INSTANCE) == TIM3) && \
  10939. (((CHANNEL) == TIM_CHANNEL_1) || \
  10940. ((CHANNEL) == TIM_CHANNEL_2) || \
  10941. ((CHANNEL) == TIM_CHANNEL_3) || \
  10942. ((CHANNEL) == TIM_CHANNEL_4))) \
  10943. || \
  10944. (((INSTANCE) == TIM4) && \
  10945. (((CHANNEL) == TIM_CHANNEL_1) || \
  10946. ((CHANNEL) == TIM_CHANNEL_2) || \
  10947. ((CHANNEL) == TIM_CHANNEL_3) || \
  10948. ((CHANNEL) == TIM_CHANNEL_4))) \
  10949. || \
  10950. (((INSTANCE) == TIM5) && \
  10951. (((CHANNEL) == TIM_CHANNEL_1) || \
  10952. ((CHANNEL) == TIM_CHANNEL_2) || \
  10953. ((CHANNEL) == TIM_CHANNEL_3) || \
  10954. ((CHANNEL) == TIM_CHANNEL_4))) \
  10955. || \
  10956. (((INSTANCE) == TIM12) && \
  10957. (((CHANNEL) == TIM_CHANNEL_1) || \
  10958. ((CHANNEL) == TIM_CHANNEL_2))) \
  10959. || \
  10960. (((INSTANCE) == TIM13) && \
  10961. (((CHANNEL) == TIM_CHANNEL_1))) \
  10962. || \
  10963. (((INSTANCE) == TIM14) && \
  10964. (((CHANNEL) == TIM_CHANNEL_1))) \
  10965. || \
  10966. (((INSTANCE) == TIM15) && \
  10967. (((CHANNEL) == TIM_CHANNEL_1) || \
  10968. ((CHANNEL) == TIM_CHANNEL_2))) \
  10969. || \
  10970. (((INSTANCE) == TIM16) && \
  10971. (((CHANNEL) == TIM_CHANNEL_1))) \
  10972. || \
  10973. (((INSTANCE) == TIM17) && \
  10974. (((CHANNEL) == TIM_CHANNEL_1))) \
  10975. || \
  10976. (((INSTANCE) == TIM19) && \
  10977. (((CHANNEL) == TIM_CHANNEL_1) || \
  10978. ((CHANNEL) == TIM_CHANNEL_2) || \
  10979. ((CHANNEL) == TIM_CHANNEL_3) || \
  10980. ((CHANNEL) == TIM_CHANNEL_4))))
  10981. /****************** TIM Instances : supporting complementary output(s) ********/
  10982. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  10983. ((((INSTANCE) == TIM15) && \
  10984. (((CHANNEL) == TIM_CHANNEL_1))) \
  10985. || \
  10986. (((INSTANCE) == TIM16) && \
  10987. (((CHANNEL) == TIM_CHANNEL_1))) \
  10988. || \
  10989. (((INSTANCE) == TIM17) && \
  10990. ((CHANNEL) == TIM_CHANNEL_1)))
  10991. /****************** TIM Instances : supporting counting mode selection ********/
  10992. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
  10993. (((INSTANCE) == TIM2) || \
  10994. ((INSTANCE) == TIM3) || \
  10995. ((INSTANCE) == TIM4) || \
  10996. ((INSTANCE) == TIM5) || \
  10997. ((INSTANCE) == TIM19))
  10998. /****************** TIM Instances : supporting repetition counter *************/
  10999. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
  11000. (((INSTANCE) == TIM15) || \
  11001. ((INSTANCE) == TIM16) || \
  11002. ((INSTANCE) == TIM17))
  11003. /****************** TIM Instances : supporting clock division *****************/
  11004. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
  11005. (((INSTANCE) == TIM2) || \
  11006. ((INSTANCE) == TIM3) || \
  11007. ((INSTANCE) == TIM4) || \
  11008. ((INSTANCE) == TIM5) || \
  11009. ((INSTANCE) == TIM12) || \
  11010. ((INSTANCE) == TIM13) || \
  11011. ((INSTANCE) == TIM14) || \
  11012. ((INSTANCE) == TIM15) || \
  11013. ((INSTANCE) == TIM16) || \
  11014. ((INSTANCE) == TIM17) || \
  11015. ((INSTANCE) == TIM19))
  11016. /****************** TIM Instances : supporting 2 break inputs *****************/
  11017. #define IS_TIM_BKIN2_INSTANCE(INSTANCE) (0)
  11018. /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
  11019. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (0)
  11020. /****************** TIM Instances : supporting DMA generation on Update events*/
  11021. #define IS_TIM_DMA_INSTANCE(INSTANCE)\
  11022. (((INSTANCE) == TIM2) || \
  11023. ((INSTANCE) == TIM3) || \
  11024. ((INSTANCE) == TIM4) || \
  11025. ((INSTANCE) == TIM5) || \
  11026. ((INSTANCE) == TIM6) || \
  11027. ((INSTANCE) == TIM7) || \
  11028. ((INSTANCE) == TIM15) || \
  11029. ((INSTANCE) == TIM16) || \
  11030. ((INSTANCE) == TIM17) || \
  11031. ((INSTANCE) == TIM18) || \
  11032. ((INSTANCE) == TIM19))
  11033. /****************** TIM Instances : supporting DMA generation on Capture/Compare events */
  11034. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)\
  11035. (((INSTANCE) == TIM2) || \
  11036. ((INSTANCE) == TIM3) || \
  11037. ((INSTANCE) == TIM4) || \
  11038. ((INSTANCE) == TIM5) || \
  11039. ((INSTANCE) == TIM6) || \
  11040. ((INSTANCE) == TIM7) || \
  11041. ((INSTANCE) == TIM15) || \
  11042. ((INSTANCE) == TIM16) || \
  11043. ((INSTANCE) == TIM17) || \
  11044. ((INSTANCE) == TIM18) || \
  11045. ((INSTANCE) == TIM19))
  11046. /****************** TIM Instances : supporting commutation event generation ***/
  11047. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (0)
  11048. /****************** TIM Instances : supporting remapping capability ***********/
  11049. #define IS_TIM_REMAP_INSTANCE(INSTANCE)\
  11050. ((INSTANCE) == TIM14)
  11051. /****************************** TSC Instances *********************************/
  11052. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC)
  11053. /******************** USART Instances : Synchronous mode **********************/
  11054. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11055. ((INSTANCE) == USART2) || \
  11056. ((INSTANCE) == USART3))
  11057. /****************** USART Instances : Auto Baud Rate detection ****************/
  11058. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11059. ((INSTANCE) == USART2) || \
  11060. ((INSTANCE) == USART3))
  11061. /******************** UART Instances : Asynchronous mode **********************/
  11062. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11063. ((INSTANCE) == USART2) || \
  11064. ((INSTANCE) == USART3))
  11065. /******************** UART Instances : Half-Duplex mode **********************/
  11066. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11067. ((INSTANCE) == USART2) || \
  11068. ((INSTANCE) == USART3))
  11069. /******************** UART Instances : LIN mode **********************/
  11070. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11071. ((INSTANCE) == USART2) || \
  11072. ((INSTANCE) == USART3))
  11073. /******************** UART Instances : Wake-up from Stop mode **********************/
  11074. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11075. ((INSTANCE) == USART2) || \
  11076. ((INSTANCE) == USART3))
  11077. /****************** UART Instances : Hardware Flow control ********************/
  11078. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11079. ((INSTANCE) == USART2) || \
  11080. ((INSTANCE) == USART3))
  11081. /****************** UART Instances : Auto Baud Rate detection *****************/
  11082. #define IS_UART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11083. ((INSTANCE) == USART2) || \
  11084. ((INSTANCE) == USART3))
  11085. /****************** UART Instances : Driver Enable ****************************/
  11086. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11087. ((INSTANCE) == USART2) || \
  11088. ((INSTANCE) == USART3))
  11089. /********************* UART Instances : Smard card mode ***********************/
  11090. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11091. ((INSTANCE) == USART2) || \
  11092. ((INSTANCE) == USART3))
  11093. /*********************** UART Instances : IRDA mode ***************************/
  11094. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11095. ((INSTANCE) == USART2) || \
  11096. ((INSTANCE) == USART3))
  11097. /******************** UART Instances : Support of continuous communication using DMA ****/
  11098. #define IS_UART_DMA_INSTANCE(INSTANCE) (1)
  11099. /****************************** WWDG Instances ********************************/
  11100. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG)
  11101. /**
  11102. * @}
  11103. */
  11104. /******************************************************************************/
  11105. /* For a painless codes migration between the STM32F3xx device product */
  11106. /* lines, the aliases defined below are put in place to overcome the */
  11107. /* differences in the interrupt handlers and IRQn definitions. */
  11108. /* No need to update developed interrupt code when moving across */
  11109. /* product lines within the same STM32F3 Family */
  11110. /******************************************************************************/
  11111. /* Aliases for __IRQn */
  11112. #define ADC1_2_IRQn ADC1_IRQn
  11113. #define USB_LP_CAN_RX0_IRQn CAN_RX0_IRQn
  11114. #define USB_HP_CAN_TX_IRQn CAN_TX_IRQn
  11115. #define USBWakeUp_IRQn CEC_IRQn
  11116. #define COMP1_2_IRQn COMP_IRQn
  11117. #define COMP1_2_3_IRQn COMP_IRQn
  11118. #define COMP2_IRQn COMP_IRQn
  11119. #define ADC4_IRQn SDADC1_IRQn
  11120. #define TIM8_BRK_IRQn TIM12_IRQn
  11121. #define TIM8_UP_IRQn TIM13_IRQn
  11122. #define TIM8_TRG_COM_IRQn TIM14_IRQn
  11123. #define TIM1_BRK_TIM15_IRQn TIM15_IRQn
  11124. #define TIM1_UP_TIM16_IRQn TIM16_IRQn
  11125. #define TIM1_TRG_COM_TIM17_IRQn TIM17_IRQn
  11126. #define TIM1_CC_IRQn TIM18_DAC2_IRQn
  11127. #define TIM20_UP_IRQn TIM19_IRQn
  11128. #define TIM6_DAC_IRQn TIM6_DAC1_IRQn
  11129. #define TIM7_DAC2_IRQn TIM7_IRQn
  11130. /* Aliases for __IRQHandler */
  11131. #define ADC1_2_IRQHandler ADC1_IRQHandler
  11132. #define USB_LP_CAN_RX0_IRQHandler CAN_RX0_IRQHandler
  11133. #define USB_HP_CAN_TX_IRQHandler CAN_TX_IRQHandler
  11134. #define USBWakeUp_IRQHandler CEC_IRQHandler
  11135. #define COMP1_2_IRQHandler COMP_IRQHandler
  11136. #define COMP1_2_3_IRQHandler COMP_IRQHandler
  11137. #define COMP2_IRQHandler COMP_IRQHandler
  11138. #define ADC4_IRQHandler SDADC1_IRQHandler
  11139. #define TIM8_BRK_IRQHandler TIM12_IRQHandler
  11140. #define TIM8_UP_IRQHandler TIM13_IRQHandler
  11141. #define TIM8_TRG_COM_IRQHandler TIM14_IRQHandler
  11142. #define TIM1_BRK_TIM15_IRQHandler TIM15_IRQHandler
  11143. #define TIM1_UP_TIM16_IRQHandler TIM16_IRQHandler
  11144. #define TIM1_TRG_COM_TIM17_IRQHandler TIM17_IRQHandler
  11145. #define TIM1_CC_IRQHandler TIM18_DAC2_IRQHandler
  11146. #define TIM20_UP_IRQHandler TIM19_IRQHandler
  11147. #define TIM6_DAC_IRQHandler TIM6_DAC1_IRQHandler
  11148. #define TIM7_DAC2_IRQHandler TIM7_IRQHandler
  11149. #ifdef __cplusplus
  11150. }
  11151. #endif /* __cplusplus */
  11152. #endif /* __STM32F378xx_H */
  11153. /**
  11154. * @}
  11155. */
  11156. /**
  11157. * @}
  11158. */
  11159. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/