stm32f098xx.h 984 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835
  1. /**
  2. ******************************************************************************
  3. * @file stm32f098xx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS Cortex-M0 Device Peripheral Access Layer Header File.
  6. * This file contains all the peripheral register's definitions, bits
  7. * definitions and memory mapping for STM32F0xx devices.
  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
  44. * @{
  45. */
  46. /** @addtogroup stm32f098xx
  47. * @{
  48. */
  49. #ifndef __STM32F098xx_H
  50. #define __STM32F098xx_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-M0 Processor and Core Peripherals
  59. */
  60. #define __CM0_REV 0 /*!< Core Revision r0p0 */
  61. #define __MPU_PRESENT 0 /*!< STM32F0xx do not provide MPU */
  62. #define __NVIC_PRIO_BITS 2 /*!< STM32F0xx uses 2 Bits for the Priority Levels */
  63. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  64. /**
  65. * @}
  66. */
  67. /** @addtogroup Peripheral_interrupt_number_definition
  68. * @{
  69. */
  70. /**
  71. * @brief STM32F0xx Interrupt Number Definition, according to the selected device
  72. * in @ref Library_configuration_section
  73. */
  74. /*!< Interrupt Number Definition */
  75. typedef enum
  76. {
  77. /****** Cortex-M0 Processor Exceptions Numbers **************************************************************/
  78. NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
  79. HardFault_IRQn = -13, /*!< 3 Cortex-M0 Hard Fault Interrupt */
  80. SVC_IRQn = -5, /*!< 11 Cortex-M0 SV Call Interrupt */
  81. PendSV_IRQn = -2, /*!< 14 Cortex-M0 Pend SV Interrupt */
  82. SysTick_IRQn = -1, /*!< 15 Cortex-M0 System Tick Interrupt */
  83. /****** STM32F0 specific Interrupt Numbers ******************************************************************/
  84. WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
  85. VDDIO2_IRQn = 1, /*!< VDDIO2 Interrupt through EXTI Line 31 */
  86. RTC_IRQn = 2, /*!< RTC Interrupt through EXTI Lines 17, 19 and 20 */
  87. FLASH_IRQn = 3, /*!< FLASH global Interrupt */
  88. RCC_CRS_IRQn = 4, /*!< RCC & CRS global Interrupt */
  89. EXTI0_1_IRQn = 5, /*!< EXTI Line 0 and 1 Interrupt */
  90. EXTI2_3_IRQn = 6, /*!< EXTI Line 2 and 3 Interrupt */
  91. EXTI4_15_IRQn = 7, /*!< EXTI Line 4 to 15 Interrupt */
  92. TSC_IRQn = 8, /*!< Touch Sensing Controller Interrupts */
  93. DMA1_Ch1_IRQn = 9, /*!< DMA1 Channel 1 Interrupt */
  94. DMA1_Ch2_3_DMA2_Ch1_2_IRQn = 10, /*!< DMA1 Channel 2 and 3 & DMA2 Channel 1 and 2 Interrupts */
  95. DMA1_Ch4_7_DMA2_Ch3_5_IRQn = 11, /*!< DMA1 Channel 4 to 7 & DMA2 Channel 3 to 5 Interrupt */
  96. ADC1_COMP_IRQn = 12, /*!< ADC1 and COMP interrupts (ADC interrupt combined with EXTI Lines 21 and 22 */
  97. TIM1_BRK_UP_TRG_COM_IRQn = 13, /*!< TIM1 Break, Update, Trigger and Commutation Interrupt */
  98. TIM1_CC_IRQn = 14, /*!< TIM1 Capture Compare Interrupt */
  99. TIM2_IRQn = 15, /*!< TIM2 global Interrupt */
  100. TIM3_IRQn = 16, /*!< TIM3 global Interrupt */
  101. TIM6_DAC_IRQn = 17, /*!< TIM6 global and DAC channel underrun error Interrupt */
  102. TIM7_IRQn = 18, /*!< TIM7 global Interrupt */
  103. TIM14_IRQn = 19, /*!< TIM14 global Interrupt */
  104. TIM15_IRQn = 20, /*!< TIM15 global Interrupt */
  105. TIM16_IRQn = 21, /*!< TIM16 global Interrupt */
  106. TIM17_IRQn = 22, /*!< TIM17 global Interrupt */
  107. I2C1_IRQn = 23, /*!< I2C1 Event Interrupt & EXTI Line23 Interrupt (I2C1 wakeup) */
  108. I2C2_IRQn = 24, /*!< I2C2 Event Interrupt */
  109. SPI1_IRQn = 25, /*!< SPI1 global Interrupt */
  110. SPI2_IRQn = 26, /*!< SPI2 global Interrupt */
  111. USART1_IRQn = 27, /*!< USART1 global Interrupt & EXTI Line25 Interrupt (USART1 wakeup) */
  112. USART2_IRQn = 28, /*!< USART2 global Interrupt & EXTI Line26 Interrupt (USART2 wakeup) */
  113. USART3_8_IRQn = 29, /*!< USART3 to USART8 global Interrupt */
  114. CEC_CAN_IRQn = 30 /*!< CEC and CAN global Interrupts & EXTI Line27 Interrupt */
  115. } IRQn_Type;
  116. /**
  117. * @}
  118. */
  119. #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
  120. #include "system_stm32f0xx.h" /* STM32F0xx System Header */
  121. #include <stdint.h>
  122. /** @addtogroup Peripheral_registers_structures
  123. * @{
  124. */
  125. /**
  126. * @brief Analog to Digital Converter
  127. */
  128. typedef struct
  129. {
  130. __IO uint32_t ISR; /*!< ADC interrupt and status register, Address offset: 0x00 */
  131. __IO uint32_t IER; /*!< ADC interrupt enable register, Address offset: 0x04 */
  132. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  133. __IO uint32_t CFGR1; /*!< ADC configuration register 1, Address offset: 0x0C */
  134. __IO uint32_t CFGR2; /*!< ADC configuration register 2, Address offset: 0x10 */
  135. __IO uint32_t SMPR; /*!< ADC sampling time register, Address offset: 0x14 */
  136. uint32_t RESERVED1; /*!< Reserved, 0x18 */
  137. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  138. __IO uint32_t TR; /*!< ADC analog watchdog 1 threshold register, Address offset: 0x20 */
  139. uint32_t RESERVED3; /*!< Reserved, 0x24 */
  140. __IO uint32_t CHSELR; /*!< ADC group regular sequencer register, Address offset: 0x28 */
  141. uint32_t RESERVED4[5]; /*!< Reserved, 0x2C */
  142. __IO uint32_t DR; /*!< ADC group regular data register, Address offset: 0x40 */
  143. } ADC_TypeDef;
  144. typedef struct
  145. {
  146. __IO uint32_t CCR; /*!< ADC common configuration register, Address offset: ADC1 base address + 0x308 */
  147. } ADC_Common_TypeDef;
  148. /**
  149. * @brief Controller Area Network TxMailBox
  150. */
  151. typedef struct
  152. {
  153. __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */
  154. __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */
  155. __IO uint32_t TDLR; /*!< CAN mailbox data low register */
  156. __IO uint32_t TDHR; /*!< CAN mailbox data high register */
  157. }CAN_TxMailBox_TypeDef;
  158. /**
  159. * @brief Controller Area Network FIFOMailBox
  160. */
  161. typedef struct
  162. {
  163. __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */
  164. __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */
  165. __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */
  166. __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */
  167. }CAN_FIFOMailBox_TypeDef;
  168. /**
  169. * @brief Controller Area Network FilterRegister
  170. */
  171. typedef struct
  172. {
  173. __IO uint32_t FR1; /*!< CAN Filter bank register 1 */
  174. __IO uint32_t FR2; /*!< CAN Filter bank register 1 */
  175. }CAN_FilterRegister_TypeDef;
  176. /**
  177. * @brief Controller Area Network
  178. */
  179. typedef struct
  180. {
  181. __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */
  182. __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */
  183. __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */
  184. __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */
  185. __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */
  186. __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */
  187. __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */
  188. __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */
  189. uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */
  190. CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */
  191. CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */
  192. uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */
  193. __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */
  194. __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */
  195. uint32_t RESERVED2; /*!< Reserved, 0x208 */
  196. __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */
  197. uint32_t RESERVED3; /*!< Reserved, 0x210 */
  198. __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */
  199. uint32_t RESERVED4; /*!< Reserved, 0x218 */
  200. __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */
  201. uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */
  202. CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */
  203. }CAN_TypeDef;
  204. /**
  205. * @brief HDMI-CEC
  206. */
  207. typedef struct
  208. {
  209. __IO uint32_t CR; /*!< CEC control register, Address offset:0x00 */
  210. __IO uint32_t CFGR; /*!< CEC configuration register, Address offset:0x04 */
  211. __IO uint32_t TXDR; /*!< CEC Tx data register , Address offset:0x08 */
  212. __IO uint32_t RXDR; /*!< CEC Rx Data Register, Address offset:0x0C */
  213. __IO uint32_t ISR; /*!< CEC Interrupt and Status Register, Address offset:0x10 */
  214. __IO uint32_t IER; /*!< CEC interrupt enable register, Address offset:0x14 */
  215. }CEC_TypeDef;
  216. /**
  217. * @brief Comparator
  218. */
  219. typedef struct
  220. {
  221. __IO uint16_t CSR; /*!< COMP control and status register, Address offset: 0x00 */
  222. } COMP_TypeDef;
  223. typedef struct
  224. {
  225. __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  226. } COMP_Common_TypeDef;
  227. /* Legacy defines */
  228. typedef struct
  229. {
  230. __IO uint32_t CSR; /*!< Kept for legacy purpose. Use structure 'COMP_Common_TypeDef'. */
  231. }COMP1_2_TypeDef;
  232. /**
  233. * @brief CRC calculation unit
  234. */
  235. typedef struct
  236. {
  237. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  238. __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  239. uint8_t RESERVED0; /*!< Reserved, 0x05 */
  240. uint16_t RESERVED1; /*!< Reserved, 0x06 */
  241. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  242. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  243. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  244. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  245. } CRC_TypeDef;
  246. /**
  247. * @brief Clock Recovery System
  248. */
  249. typedef struct
  250. {
  251. __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */
  252. __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */
  253. __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */
  254. __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */
  255. }CRS_TypeDef;
  256. /**
  257. * @brief Digital to Analog Converter
  258. */
  259. typedef struct
  260. {
  261. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  262. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  263. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  264. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  265. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  266. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  267. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  268. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  269. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  270. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  271. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  272. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  273. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  274. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  275. } DAC_TypeDef;
  276. /**
  277. * @brief Debug MCU
  278. */
  279. typedef struct
  280. {
  281. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  282. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  283. __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */
  284. __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */
  285. }DBGMCU_TypeDef;
  286. /**
  287. * @brief DMA Controller
  288. */
  289. typedef struct
  290. {
  291. __IO uint32_t CCR; /*!< DMA channel x configuration register */
  292. __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
  293. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
  294. __IO uint32_t CMAR; /*!< DMA channel x memory address register */
  295. } DMA_Channel_TypeDef;
  296. typedef struct
  297. {
  298. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  299. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  300. uint32_t RESERVED0[40];/*!< Reserved as declared by channel typedef 0x08 - 0xA4 */
  301. __IO uint32_t CSELR; /*!< Channel selection register, Address offset: 0xA8 */
  302. } DMA_TypeDef;
  303. /**
  304. * @brief External Interrupt/Event Controller
  305. */
  306. typedef struct
  307. {
  308. __IO uint32_t IMR; /*!<EXTI Interrupt mask register, Address offset: 0x00 */
  309. __IO uint32_t EMR; /*!<EXTI Event mask register, Address offset: 0x04 */
  310. __IO uint32_t RTSR; /*!<EXTI Rising trigger selection register , Address offset: 0x08 */
  311. __IO uint32_t FTSR; /*!<EXTI Falling trigger selection register, Address offset: 0x0C */
  312. __IO uint32_t SWIER; /*!<EXTI Software interrupt event register, Address offset: 0x10 */
  313. __IO uint32_t PR; /*!<EXTI Pending register, Address offset: 0x14 */
  314. } EXTI_TypeDef;
  315. /**
  316. * @brief FLASH Registers
  317. */
  318. typedef struct
  319. {
  320. __IO uint32_t ACR; /*!<FLASH access control register, Address offset: 0x00 */
  321. __IO uint32_t KEYR; /*!<FLASH key register, Address offset: 0x04 */
  322. __IO uint32_t OPTKEYR; /*!<FLASH OPT key register, Address offset: 0x08 */
  323. __IO uint32_t SR; /*!<FLASH status register, Address offset: 0x0C */
  324. __IO uint32_t CR; /*!<FLASH control register, Address offset: 0x10 */
  325. __IO uint32_t AR; /*!<FLASH address register, Address offset: 0x14 */
  326. __IO uint32_t RESERVED; /*!< Reserved, 0x18 */
  327. __IO uint32_t OBR; /*!<FLASH option bytes register, Address offset: 0x1C */
  328. __IO uint32_t WRPR; /*!<FLASH option bytes register, Address offset: 0x20 */
  329. } FLASH_TypeDef;
  330. /**
  331. * @brief Option Bytes Registers
  332. */
  333. typedef struct
  334. {
  335. __IO uint16_t RDP; /*!< FLASH option byte Read protection, Address offset: 0x00 */
  336. __IO uint16_t USER; /*!< FLASH option byte user options, Address offset: 0x02 */
  337. __IO uint16_t DATA0; /*!< User data byte 0 (stored in FLASH_OBR[23:16]), Address offset: 0x04 */
  338. __IO uint16_t DATA1; /*!< User data byte 1 (stored in FLASH_OBR[31:24]), Address offset: 0x06 */
  339. __IO uint16_t WRP0; /*!< FLASH option byte write protection 0, Address offset: 0x08 */
  340. __IO uint16_t WRP1; /*!< FLASH option byte write protection 1, Address offset: 0x0A */
  341. __IO uint16_t WRP2; /*!< FLASH option byte write protection 2, Address offset: 0x0C */
  342. __IO uint16_t WRP3; /*!< FLASH option byte write protection 3, Address offset: 0x0E */
  343. } OB_TypeDef;
  344. /**
  345. * @brief General Purpose I/O
  346. */
  347. typedef struct
  348. {
  349. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  350. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  351. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  352. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  353. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  354. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  355. __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x1A */
  356. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  357. __IO uint32_t AFR[2]; /*!< GPIO alternate function low register, Address offset: 0x20-0x24 */
  358. __IO uint32_t BRR; /*!< GPIO bit reset register, Address offset: 0x28 */
  359. } GPIO_TypeDef;
  360. /**
  361. * @brief SysTem Configuration
  362. */
  363. typedef struct
  364. {
  365. __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x00 */
  366. uint32_t RESERVED; /*!< Reserved, 0x04 */
  367. __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration register, Address offset: 0x14-0x08 */
  368. __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x18 */
  369. uint32_t RESERVED1[25]; /*!< Reserved + COMP, 0x1C */
  370. __IO uint32_t IT_LINE_SR[32]; /*!< SYSCFG configuration IT_LINE register, Address offset: 0x80 */
  371. } SYSCFG_TypeDef;
  372. /**
  373. * @brief Inter-integrated Circuit Interface
  374. */
  375. typedef struct
  376. {
  377. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  378. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  379. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  380. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  381. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  382. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  383. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  384. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  385. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  386. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  387. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  388. } I2C_TypeDef;
  389. /**
  390. * @brief Independent WATCHDOG
  391. */
  392. typedef struct
  393. {
  394. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  395. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  396. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  397. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  398. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  399. } IWDG_TypeDef;
  400. /**
  401. * @brief Power Control
  402. */
  403. typedef struct
  404. {
  405. __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */
  406. __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */
  407. } PWR_TypeDef;
  408. /**
  409. * @brief Reset and Clock Control
  410. */
  411. typedef struct
  412. {
  413. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  414. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x04 */
  415. __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x08 */
  416. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x0C */
  417. __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x10 */
  418. __IO uint32_t AHBENR; /*!< RCC AHB peripheral clock register, Address offset: 0x14 */
  419. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x18 */
  420. __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x1C */
  421. __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x20 */
  422. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x24 */
  423. __IO uint32_t AHBRSTR; /*!< RCC AHB peripheral reset register, Address offset: 0x28 */
  424. __IO uint32_t CFGR2; /*!< RCC clock configuration register 2, Address offset: 0x2C */
  425. __IO uint32_t CFGR3; /*!< RCC clock configuration register 3, Address offset: 0x30 */
  426. __IO uint32_t CR2; /*!< RCC clock control register 2, Address offset: 0x34 */
  427. } RCC_TypeDef;
  428. /**
  429. * @brief Real-Time Clock
  430. */
  431. typedef struct
  432. {
  433. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  434. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  435. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
  436. __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
  437. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  438. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  439. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x18 */
  440. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
  441. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x20 */
  442. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  443. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
  444. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  445. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  446. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  447. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  448. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  449. __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
  450. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  451. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x48 */
  452. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x4C */
  453. __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  454. __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  455. __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  456. __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  457. __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  458. } RTC_TypeDef;
  459. /**
  460. * @brief Serial Peripheral Interface
  461. */
  462. typedef struct
  463. {
  464. __IO uint32_t CR1; /*!< SPI Control register 1 (not used in I2S mode), Address offset: 0x00 */
  465. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  466. __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
  467. __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
  468. __IO uint32_t CRCPR; /*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 */
  469. __IO uint32_t RXCRCR; /*!< SPI Rx CRC register (not used in I2S mode), Address offset: 0x14 */
  470. __IO uint32_t TXCRCR; /*!< SPI Tx CRC register (not used in I2S mode), Address offset: 0x18 */
  471. __IO uint32_t I2SCFGR; /*!< SPI_I2S configuration register, Address offset: 0x1C */
  472. __IO uint32_t I2SPR; /*!< SPI_I2S prescaler register, Address offset: 0x20 */
  473. } SPI_TypeDef;
  474. /**
  475. * @brief TIM
  476. */
  477. typedef struct
  478. {
  479. __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  480. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  481. __IO uint32_t SMCR; /*!< TIM slave Mode Control register, Address offset: 0x08 */
  482. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  483. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  484. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  485. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  486. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  487. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  488. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  489. __IO uint32_t PSC; /*!< TIM prescaler register, Address offset: 0x28 */
  490. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  491. __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  492. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  493. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  494. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  495. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  496. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  497. __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  498. __IO uint32_t DMAR; /*!< TIM DMA address for full transfer register, Address offset: 0x4C */
  499. __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */
  500. } TIM_TypeDef;
  501. /**
  502. * @brief Touch Sensing Controller (TSC)
  503. */
  504. typedef struct
  505. {
  506. __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
  507. __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
  508. __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
  509. __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
  510. __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
  511. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  512. __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
  513. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
  514. __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
  515. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
  516. __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
  517. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
  518. __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
  519. __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
  520. }TSC_TypeDef;
  521. /**
  522. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  523. */
  524. typedef struct
  525. {
  526. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  527. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  528. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  529. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  530. __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  531. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  532. __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
  533. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  534. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  535. __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  536. uint16_t RESERVED1; /*!< Reserved, 0x26 */
  537. __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  538. uint16_t RESERVED2; /*!< Reserved, 0x2A */
  539. } USART_TypeDef;
  540. /**
  541. * @brief Window WATCHDOG
  542. */
  543. typedef struct
  544. {
  545. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  546. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  547. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  548. } WWDG_TypeDef;
  549. /**
  550. * @}
  551. */
  552. /** @addtogroup Peripheral_memory_map
  553. * @{
  554. */
  555. #define FLASH_BASE ((uint32_t)0x08000000U) /*!< FLASH base address in the alias region */
  556. #define FLASH_BANK1_END ((uint32_t)0x0803FFFFU) /*!< FLASH END address of bank1 */
  557. #define SRAM_BASE ((uint32_t)0x20000000U) /*!< SRAM base address in the alias region */
  558. #define PERIPH_BASE ((uint32_t)0x40000000U) /*!< Peripheral base address in the alias region */
  559. /*!< Peripheral memory map */
  560. #define APBPERIPH_BASE PERIPH_BASE
  561. #define AHBPERIPH_BASE (PERIPH_BASE + 0x00020000)
  562. #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000)
  563. /*!< APB peripherals */
  564. #define TIM2_BASE (APBPERIPH_BASE + 0x00000000)
  565. #define TIM3_BASE (APBPERIPH_BASE + 0x00000400)
  566. #define TIM6_BASE (APBPERIPH_BASE + 0x00001000)
  567. #define TIM7_BASE (APBPERIPH_BASE + 0x00001400)
  568. #define TIM14_BASE (APBPERIPH_BASE + 0x00002000)
  569. #define RTC_BASE (APBPERIPH_BASE + 0x00002800)
  570. #define WWDG_BASE (APBPERIPH_BASE + 0x00002C00)
  571. #define IWDG_BASE (APBPERIPH_BASE + 0x00003000)
  572. #define SPI2_BASE (APBPERIPH_BASE + 0x00003800)
  573. #define USART2_BASE (APBPERIPH_BASE + 0x00004400)
  574. #define USART3_BASE (APBPERIPH_BASE + 0x00004800)
  575. #define USART4_BASE (APBPERIPH_BASE + 0x00004C00)
  576. #define USART5_BASE (APBPERIPH_BASE + 0x00005000)
  577. #define I2C1_BASE (APBPERIPH_BASE + 0x00005400)
  578. #define I2C2_BASE (APBPERIPH_BASE + 0x00005800)
  579. #define CAN_BASE (APBPERIPH_BASE + 0x00006400)
  580. #define CRS_BASE (APBPERIPH_BASE + 0x00006C00)
  581. #define PWR_BASE (APBPERIPH_BASE + 0x00007000)
  582. #define DAC_BASE (APBPERIPH_BASE + 0x00007400)
  583. #define CEC_BASE (APBPERIPH_BASE + 0x00007800)
  584. #define SYSCFG_BASE (APBPERIPH_BASE + 0x00010000)
  585. #define COMP_BASE (APBPERIPH_BASE + 0x0001001C)
  586. #define EXTI_BASE (APBPERIPH_BASE + 0x00010400)
  587. #define USART6_BASE (APBPERIPH_BASE + 0x00011400)
  588. #define USART7_BASE (APBPERIPH_BASE + 0x00011800)
  589. #define USART8_BASE (APBPERIPH_BASE + 0x00011C00)
  590. #define ADC1_BASE (APBPERIPH_BASE + 0x00012400)
  591. #define ADC_BASE (APBPERIPH_BASE + 0x00012708)
  592. #define TIM1_BASE (APBPERIPH_BASE + 0x00012C00)
  593. #define SPI1_BASE (APBPERIPH_BASE + 0x00013000)
  594. #define USART1_BASE (APBPERIPH_BASE + 0x00013800)
  595. #define TIM15_BASE (APBPERIPH_BASE + 0x00014000)
  596. #define TIM16_BASE (APBPERIPH_BASE + 0x00014400)
  597. #define TIM17_BASE (APBPERIPH_BASE + 0x00014800)
  598. #define DBGMCU_BASE (APBPERIPH_BASE + 0x00015800)
  599. /*!< AHB peripherals */
  600. #define DMA1_BASE (AHBPERIPH_BASE + 0x00000000)
  601. #define DMA1_Channel1_BASE (DMA1_BASE + 0x00000008)
  602. #define DMA1_Channel2_BASE (DMA1_BASE + 0x0000001C)
  603. #define DMA1_Channel3_BASE (DMA1_BASE + 0x00000030)
  604. #define DMA1_Channel4_BASE (DMA1_BASE + 0x00000044)
  605. #define DMA1_Channel5_BASE (DMA1_BASE + 0x00000058)
  606. #define DMA1_Channel6_BASE (DMA1_BASE + 0x0000006C)
  607. #define DMA1_Channel7_BASE (DMA1_BASE + 0x00000080)
  608. #define DMA2_BASE (AHBPERIPH_BASE + 0x00000400)
  609. #define DMA2_Channel1_BASE (DMA2_BASE + 0x00000008)
  610. #define DMA2_Channel2_BASE (DMA2_BASE + 0x0000001C)
  611. #define DMA2_Channel3_BASE (DMA2_BASE + 0x00000030)
  612. #define DMA2_Channel4_BASE (DMA2_BASE + 0x00000044)
  613. #define DMA2_Channel5_BASE (DMA2_BASE + 0x00000058)
  614. #define RCC_BASE (AHBPERIPH_BASE + 0x00001000)
  615. #define FLASH_R_BASE (AHBPERIPH_BASE + 0x00002000) /*!< FLASH registers base address */
  616. #define OB_BASE ((uint32_t)0x1FFFF800U) /*!< FLASH Option Bytes base address */
  617. #define FLASHSIZE_BASE ((uint32_t)0x1FFFF7CCU) /*!< FLASH Size register base address */
  618. #define UID_BASE ((uint32_t)0x1FFFF7ACU) /*!< Unique device ID register base address */
  619. #define CRC_BASE (AHBPERIPH_BASE + 0x00003000)
  620. #define TSC_BASE (AHBPERIPH_BASE + 0x00004000)
  621. /*!< AHB2 peripherals */
  622. #define GPIOA_BASE (AHB2PERIPH_BASE + 0x00000000)
  623. #define GPIOB_BASE (AHB2PERIPH_BASE + 0x00000400)
  624. #define GPIOC_BASE (AHB2PERIPH_BASE + 0x00000800)
  625. #define GPIOD_BASE (AHB2PERIPH_BASE + 0x00000C00)
  626. #define GPIOE_BASE (AHB2PERIPH_BASE + 0x00001000)
  627. #define GPIOF_BASE (AHB2PERIPH_BASE + 0x00001400)
  628. /**
  629. * @}
  630. */
  631. /** @addtogroup Peripheral_declaration
  632. * @{
  633. */
  634. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  635. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  636. #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
  637. #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
  638. #define TIM14 ((TIM_TypeDef *) TIM14_BASE)
  639. #define RTC ((RTC_TypeDef *) RTC_BASE)
  640. #define WWDG ((WWDG_TypeDef *) WWDG_BASE)
  641. #define IWDG ((IWDG_TypeDef *) IWDG_BASE)
  642. #define USART2 ((USART_TypeDef *) USART2_BASE)
  643. #define USART3 ((USART_TypeDef *) USART3_BASE)
  644. #define USART4 ((USART_TypeDef *) USART4_BASE)
  645. #define USART5 ((USART_TypeDef *) USART5_BASE)
  646. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  647. #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
  648. #define CAN ((CAN_TypeDef *) CAN_BASE)
  649. #define CRS ((CRS_TypeDef *) CRS_BASE)
  650. #define PWR ((PWR_TypeDef *) PWR_BASE)
  651. #define DAC1 ((DAC_TypeDef *) DAC_BASE)
  652. #define DAC ((DAC_TypeDef *) DAC_BASE) /* Kept for legacy purpose */
  653. #define CEC ((CEC_TypeDef *) CEC_BASE)
  654. #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
  655. #define COMP1 ((COMP_TypeDef *) COMP_BASE)
  656. #define COMP2 ((COMP_TypeDef *) (COMP_BASE + 0x00000002))
  657. #define COMP12_COMMON ((COMP_Common_TypeDef *) COMP_BASE)
  658. #define COMP ((COMP1_2_TypeDef *) COMP_BASE) /* Kept for legacy purpose */
  659. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  660. #define USART6 ((USART_TypeDef *) USART6_BASE)
  661. #define USART7 ((USART_TypeDef *) USART7_BASE)
  662. #define USART8 ((USART_TypeDef *) USART8_BASE)
  663. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  664. #define ADC1_COMMON ((ADC_Common_TypeDef *) ADC_BASE)
  665. #define ADC ((ADC_Common_TypeDef *) ADC_BASE) /* Kept for legacy purpose */
  666. #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
  667. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  668. #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
  669. #define USART1 ((USART_TypeDef *) USART1_BASE)
  670. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  671. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  672. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  673. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  674. #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
  675. #define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
  676. #define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
  677. #define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
  678. #define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
  679. #define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
  680. #define DMA1_Channel6 ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE)
  681. #define DMA1_Channel7 ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE)
  682. #define DMA2 ((DMA_TypeDef *) DMA2_BASE)
  683. #define DMA2_Channel1 ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE)
  684. #define DMA2_Channel2 ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE)
  685. #define DMA2_Channel3 ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE)
  686. #define DMA2_Channel4 ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE)
  687. #define DMA2_Channel5 ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE)
  688. #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
  689. #define OB ((OB_TypeDef *) OB_BASE)
  690. #define RCC ((RCC_TypeDef *) RCC_BASE)
  691. #define CRC ((CRC_TypeDef *) CRC_BASE)
  692. #define TSC ((TSC_TypeDef *) TSC_BASE)
  693. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  694. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  695. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  696. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  697. #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
  698. #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
  699. /**
  700. * @}
  701. */
  702. /** @addtogroup Exported_constants
  703. * @{
  704. */
  705. /** @addtogroup Peripheral_Registers_Bits_Definition
  706. * @{
  707. */
  708. /******************************************************************************/
  709. /* Peripheral Registers Bits Definition */
  710. /******************************************************************************/
  711. /******************************************************************************/
  712. /* */
  713. /* Analog to Digital Converter (ADC) */
  714. /* */
  715. /******************************************************************************/
  716. /*
  717. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  718. */
  719. #define ADC_CHANNEL_VBAT_SUPPORT /*!< ADC feature available only on specific devices: ADC internal channel Vbat */
  720. /******************** Bits definition for ADC_ISR register ******************/
  721. #define ADC_ISR_ADRDY_Pos (0U)
  722. #define ADC_ISR_ADRDY_Msk (0x1U << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */
  723. #define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC ready flag */
  724. #define ADC_ISR_EOSMP_Pos (1U)
  725. #define ADC_ISR_EOSMP_Msk (0x1U << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  726. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC group regular end of sampling flag */
  727. #define ADC_ISR_EOC_Pos (2U)
  728. #define ADC_ISR_EOC_Msk (0x1U << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  729. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC group regular end of unitary conversion flag */
  730. #define ADC_ISR_EOS_Pos (3U)
  731. #define ADC_ISR_EOS_Msk (0x1U << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  732. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */
  733. #define ADC_ISR_OVR_Pos (4U)
  734. #define ADC_ISR_OVR_Msk (0x1U << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  735. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC group regular overrun flag */
  736. #define ADC_ISR_AWD1_Pos (7U)
  737. #define ADC_ISR_AWD1_Msk (0x1U << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  738. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC analog watchdog 1 flag */
  739. /* Legacy defines */
  740. #define ADC_ISR_AWD (ADC_ISR_AWD1)
  741. #define ADC_ISR_EOSEQ (ADC_ISR_EOS)
  742. /******************** Bits definition for ADC_IER register ******************/
  743. #define ADC_IER_ADRDYIE_Pos (0U)
  744. #define ADC_IER_ADRDYIE_Msk (0x1U << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */
  745. #define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC ready interrupt */
  746. #define ADC_IER_EOSMPIE_Pos (1U)
  747. #define ADC_IER_EOSMPIE_Msk (0x1U << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */
  748. #define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC group regular end of sampling interrupt */
  749. #define ADC_IER_EOCIE_Pos (2U)
  750. #define ADC_IER_EOCIE_Msk (0x1U << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */
  751. #define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC group regular end of unitary conversion interrupt */
  752. #define ADC_IER_EOSIE_Pos (3U)
  753. #define ADC_IER_EOSIE_Msk (0x1U << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */
  754. #define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */
  755. #define ADC_IER_OVRIE_Pos (4U)
  756. #define ADC_IER_OVRIE_Msk (0x1U << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */
  757. #define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC group regular overrun interrupt */
  758. #define ADC_IER_AWD1IE_Pos (7U)
  759. #define ADC_IER_AWD1IE_Msk (0x1U << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */
  760. #define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC analog watchdog 1 interrupt */
  761. /* Legacy defines */
  762. #define ADC_IER_AWDIE (ADC_IER_AWD1IE)
  763. #define ADC_IER_EOSEQIE (ADC_IER_EOSIE)
  764. /******************** Bits definition for ADC_CR register *******************/
  765. #define ADC_CR_ADEN_Pos (0U)
  766. #define ADC_CR_ADEN_Msk (0x1U << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  767. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC enable */
  768. #define ADC_CR_ADDIS_Pos (1U)
  769. #define ADC_CR_ADDIS_Msk (0x1U << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  770. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC disable */
  771. #define ADC_CR_ADSTART_Pos (2U)
  772. #define ADC_CR_ADSTART_Msk (0x1U << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  773. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC group regular conversion start */
  774. #define ADC_CR_ADSTP_Pos (4U)
  775. #define ADC_CR_ADSTP_Msk (0x1U << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  776. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC group regular conversion stop */
  777. #define ADC_CR_ADCAL_Pos (31U)
  778. #define ADC_CR_ADCAL_Msk (0x1U << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  779. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC calibration */
  780. /******************* Bits definition for ADC_CFGR1 register *****************/
  781. #define ADC_CFGR1_DMAEN_Pos (0U)
  782. #define ADC_CFGR1_DMAEN_Msk (0x1U << ADC_CFGR1_DMAEN_Pos) /*!< 0x00000001 */
  783. #define ADC_CFGR1_DMAEN ADC_CFGR1_DMAEN_Msk /*!< ADC DMA transfer enable */
  784. #define ADC_CFGR1_DMACFG_Pos (1U)
  785. #define ADC_CFGR1_DMACFG_Msk (0x1U << ADC_CFGR1_DMACFG_Pos) /*!< 0x00000002 */
  786. #define ADC_CFGR1_DMACFG ADC_CFGR1_DMACFG_Msk /*!< ADC DMA transfer configuration */
  787. #define ADC_CFGR1_SCANDIR_Pos (2U)
  788. #define ADC_CFGR1_SCANDIR_Msk (0x1U << ADC_CFGR1_SCANDIR_Pos) /*!< 0x00000004 */
  789. #define ADC_CFGR1_SCANDIR ADC_CFGR1_SCANDIR_Msk /*!< ADC group regular sequencer scan direction */
  790. #define ADC_CFGR1_RES_Pos (3U)
  791. #define ADC_CFGR1_RES_Msk (0x3U << ADC_CFGR1_RES_Pos) /*!< 0x00000018 */
  792. #define ADC_CFGR1_RES ADC_CFGR1_RES_Msk /*!< ADC data resolution */
  793. #define ADC_CFGR1_RES_0 (0x1U << ADC_CFGR1_RES_Pos) /*!< 0x00000008 */
  794. #define ADC_CFGR1_RES_1 (0x2U << ADC_CFGR1_RES_Pos) /*!< 0x00000010 */
  795. #define ADC_CFGR1_ALIGN_Pos (5U)
  796. #define ADC_CFGR1_ALIGN_Msk (0x1U << ADC_CFGR1_ALIGN_Pos) /*!< 0x00000020 */
  797. #define ADC_CFGR1_ALIGN ADC_CFGR1_ALIGN_Msk /*!< ADC data alignement */
  798. #define ADC_CFGR1_EXTSEL_Pos (6U)
  799. #define ADC_CFGR1_EXTSEL_Msk (0x7U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x000001C0 */
  800. #define ADC_CFGR1_EXTSEL ADC_CFGR1_EXTSEL_Msk /*!< ADC group regular external trigger source */
  801. #define ADC_CFGR1_EXTSEL_0 (0x1U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x00000040 */
  802. #define ADC_CFGR1_EXTSEL_1 (0x2U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x00000080 */
  803. #define ADC_CFGR1_EXTSEL_2 (0x4U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x00000100 */
  804. #define ADC_CFGR1_EXTEN_Pos (10U)
  805. #define ADC_CFGR1_EXTEN_Msk (0x3U << ADC_CFGR1_EXTEN_Pos) /*!< 0x00000C00 */
  806. #define ADC_CFGR1_EXTEN ADC_CFGR1_EXTEN_Msk /*!< ADC group regular external trigger polarity */
  807. #define ADC_CFGR1_EXTEN_0 (0x1U << ADC_CFGR1_EXTEN_Pos) /*!< 0x00000400 */
  808. #define ADC_CFGR1_EXTEN_1 (0x2U << ADC_CFGR1_EXTEN_Pos) /*!< 0x00000800 */
  809. #define ADC_CFGR1_OVRMOD_Pos (12U)
  810. #define ADC_CFGR1_OVRMOD_Msk (0x1U << ADC_CFGR1_OVRMOD_Pos) /*!< 0x00001000 */
  811. #define ADC_CFGR1_OVRMOD ADC_CFGR1_OVRMOD_Msk /*!< ADC group regular overrun configuration */
  812. #define ADC_CFGR1_CONT_Pos (13U)
  813. #define ADC_CFGR1_CONT_Msk (0x1U << ADC_CFGR1_CONT_Pos) /*!< 0x00002000 */
  814. #define ADC_CFGR1_CONT ADC_CFGR1_CONT_Msk /*!< ADC group regular continuous conversion mode */
  815. #define ADC_CFGR1_WAIT_Pos (14U)
  816. #define ADC_CFGR1_WAIT_Msk (0x1U << ADC_CFGR1_WAIT_Pos) /*!< 0x00004000 */
  817. #define ADC_CFGR1_WAIT ADC_CFGR1_WAIT_Msk /*!< ADC low power auto wait */
  818. #define ADC_CFGR1_AUTOFF_Pos (15U)
  819. #define ADC_CFGR1_AUTOFF_Msk (0x1U << ADC_CFGR1_AUTOFF_Pos) /*!< 0x00008000 */
  820. #define ADC_CFGR1_AUTOFF ADC_CFGR1_AUTOFF_Msk /*!< ADC low power auto power off */
  821. #define ADC_CFGR1_DISCEN_Pos (16U)
  822. #define ADC_CFGR1_DISCEN_Msk (0x1U << ADC_CFGR1_DISCEN_Pos) /*!< 0x00010000 */
  823. #define ADC_CFGR1_DISCEN ADC_CFGR1_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */
  824. #define ADC_CFGR1_AWD1SGL_Pos (22U)
  825. #define ADC_CFGR1_AWD1SGL_Msk (0x1U << ADC_CFGR1_AWD1SGL_Pos) /*!< 0x00400000 */
  826. #define ADC_CFGR1_AWD1SGL ADC_CFGR1_AWD1SGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */
  827. #define ADC_CFGR1_AWD1EN_Pos (23U)
  828. #define ADC_CFGR1_AWD1EN_Msk (0x1U << ADC_CFGR1_AWD1EN_Pos) /*!< 0x00800000 */
  829. #define ADC_CFGR1_AWD1EN ADC_CFGR1_AWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */
  830. #define ADC_CFGR1_AWD1CH_Pos (26U)
  831. #define ADC_CFGR1_AWD1CH_Msk (0x1FU << ADC_CFGR1_AWD1CH_Pos) /*!< 0x7C000000 */
  832. #define ADC_CFGR1_AWD1CH ADC_CFGR1_AWD1CH_Msk /*!< ADC analog watchdog 1 monitored channel selection */
  833. #define ADC_CFGR1_AWD1CH_0 (0x01U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x04000000 */
  834. #define ADC_CFGR1_AWD1CH_1 (0x02U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x08000000 */
  835. #define ADC_CFGR1_AWD1CH_2 (0x04U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x10000000 */
  836. #define ADC_CFGR1_AWD1CH_3 (0x08U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x20000000 */
  837. #define ADC_CFGR1_AWD1CH_4 (0x10U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x40000000 */
  838. /* Legacy defines */
  839. #define ADC_CFGR1_AUTDLY (ADC_CFGR1_WAIT)
  840. #define ADC_CFGR1_AWDSGL (ADC_CFGR1_AWD1SGL)
  841. #define ADC_CFGR1_AWDEN (ADC_CFGR1_AWD1EN)
  842. #define ADC_CFGR1_AWDCH (ADC_CFGR1_AWD1CH)
  843. #define ADC_CFGR1_AWDCH_0 (ADC_CFGR1_AWD1CH_0)
  844. #define ADC_CFGR1_AWDCH_1 (ADC_CFGR1_AWD1CH_1)
  845. #define ADC_CFGR1_AWDCH_2 (ADC_CFGR1_AWD1CH_2)
  846. #define ADC_CFGR1_AWDCH_3 (ADC_CFGR1_AWD1CH_3)
  847. #define ADC_CFGR1_AWDCH_4 (ADC_CFGR1_AWD1CH_4)
  848. /******************* Bits definition for ADC_CFGR2 register *****************/
  849. #define ADC_CFGR2_CKMODE_Pos (30U)
  850. #define ADC_CFGR2_CKMODE_Msk (0x3U << ADC_CFGR2_CKMODE_Pos) /*!< 0xC0000000 */
  851. #define ADC_CFGR2_CKMODE ADC_CFGR2_CKMODE_Msk /*!< ADC clock source and prescaler (prescaler only for clock source synchronous) */
  852. #define ADC_CFGR2_CKMODE_1 (0x2U << ADC_CFGR2_CKMODE_Pos) /*!< 0x80000000 */
  853. #define ADC_CFGR2_CKMODE_0 (0x1U << ADC_CFGR2_CKMODE_Pos) /*!< 0x40000000 */
  854. /* Legacy defines */
  855. #define ADC_CFGR2_JITOFFDIV4 (ADC_CFGR2_CKMODE_1) /*!< ADC clocked by PCLK div4 */
  856. #define ADC_CFGR2_JITOFFDIV2 (ADC_CFGR2_CKMODE_0) /*!< ADC clocked by PCLK div2 */
  857. /****************** Bit definition for ADC_SMPR register ********************/
  858. #define ADC_SMPR_SMP_Pos (0U)
  859. #define ADC_SMPR_SMP_Msk (0x7U << ADC_SMPR_SMP_Pos) /*!< 0x00000007 */
  860. #define ADC_SMPR_SMP ADC_SMPR_SMP_Msk /*!< ADC group of channels sampling time 2 */
  861. #define ADC_SMPR_SMP_0 (0x1U << ADC_SMPR_SMP_Pos) /*!< 0x00000001 */
  862. #define ADC_SMPR_SMP_1 (0x2U << ADC_SMPR_SMP_Pos) /*!< 0x00000002 */
  863. #define ADC_SMPR_SMP_2 (0x4U << ADC_SMPR_SMP_Pos) /*!< 0x00000004 */
  864. /* Legacy defines */
  865. #define ADC_SMPR1_SMPR (ADC_SMPR_SMP) /*!< SMP[2:0] bits (Sampling time selection) */
  866. #define ADC_SMPR1_SMPR_0 (ADC_SMPR_SMP_0) /*!< bit 0 */
  867. #define ADC_SMPR1_SMPR_1 (ADC_SMPR_SMP_1) /*!< bit 1 */
  868. #define ADC_SMPR1_SMPR_2 (ADC_SMPR_SMP_2) /*!< bit 2 */
  869. /******************* Bit definition for ADC_TR register ********************/
  870. #define ADC_TR1_LT1_Pos (0U)
  871. #define ADC_TR1_LT1_Msk (0xFFFU << ADC_TR1_LT1_Pos) /*!< 0x00000FFF */
  872. #define ADC_TR1_LT1 ADC_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */
  873. #define ADC_TR1_LT1_0 (0x001U << ADC_TR1_LT1_Pos) /*!< 0x00000001 */
  874. #define ADC_TR1_LT1_1 (0x002U << ADC_TR1_LT1_Pos) /*!< 0x00000002 */
  875. #define ADC_TR1_LT1_2 (0x004U << ADC_TR1_LT1_Pos) /*!< 0x00000004 */
  876. #define ADC_TR1_LT1_3 (0x008U << ADC_TR1_LT1_Pos) /*!< 0x00000008 */
  877. #define ADC_TR1_LT1_4 (0x010U << ADC_TR1_LT1_Pos) /*!< 0x00000010 */
  878. #define ADC_TR1_LT1_5 (0x020U << ADC_TR1_LT1_Pos) /*!< 0x00000020 */
  879. #define ADC_TR1_LT1_6 (0x040U << ADC_TR1_LT1_Pos) /*!< 0x00000040 */
  880. #define ADC_TR1_LT1_7 (0x080U << ADC_TR1_LT1_Pos) /*!< 0x00000080 */
  881. #define ADC_TR1_LT1_8 (0x100U << ADC_TR1_LT1_Pos) /*!< 0x00000100 */
  882. #define ADC_TR1_LT1_9 (0x200U << ADC_TR1_LT1_Pos) /*!< 0x00000200 */
  883. #define ADC_TR1_LT1_10 (0x400U << ADC_TR1_LT1_Pos) /*!< 0x00000400 */
  884. #define ADC_TR1_LT1_11 (0x800U << ADC_TR1_LT1_Pos) /*!< 0x00000800 */
  885. #define ADC_TR1_HT1_Pos (16U)
  886. #define ADC_TR1_HT1_Msk (0xFFFU << ADC_TR1_HT1_Pos) /*!< 0x0FFF0000 */
  887. #define ADC_TR1_HT1 ADC_TR1_HT1_Msk /*!< ADC Analog watchdog 1 threshold high */
  888. #define ADC_TR1_HT1_0 (0x001U << ADC_TR1_HT1_Pos) /*!< 0x00010000 */
  889. #define ADC_TR1_HT1_1 (0x002U << ADC_TR1_HT1_Pos) /*!< 0x00020000 */
  890. #define ADC_TR1_HT1_2 (0x004U << ADC_TR1_HT1_Pos) /*!< 0x00040000 */
  891. #define ADC_TR1_HT1_3 (0x008U << ADC_TR1_HT1_Pos) /*!< 0x00080000 */
  892. #define ADC_TR1_HT1_4 (0x010U << ADC_TR1_HT1_Pos) /*!< 0x00100000 */
  893. #define ADC_TR1_HT1_5 (0x020U << ADC_TR1_HT1_Pos) /*!< 0x00200000 */
  894. #define ADC_TR1_HT1_6 (0x040U << ADC_TR1_HT1_Pos) /*!< 0x00400000 */
  895. #define ADC_TR1_HT1_7 (0x080U << ADC_TR1_HT1_Pos) /*!< 0x00800000 */
  896. #define ADC_TR1_HT1_8 (0x100U << ADC_TR1_HT1_Pos) /*!< 0x01000000 */
  897. #define ADC_TR1_HT1_9 (0x200U << ADC_TR1_HT1_Pos) /*!< 0x02000000 */
  898. #define ADC_TR1_HT1_10 (0x400U << ADC_TR1_HT1_Pos) /*!< 0x04000000 */
  899. #define ADC_TR1_HT1_11 (0x800U << ADC_TR1_HT1_Pos) /*!< 0x08000000 */
  900. /* Legacy defines */
  901. #define ADC_TR_HT (ADC_TR1_HT1)
  902. #define ADC_TR_LT (ADC_TR1_LT1)
  903. #define ADC_HTR_HT (ADC_TR1_HT1)
  904. #define ADC_LTR_LT (ADC_TR1_LT1)
  905. /****************** Bit definition for ADC_CHSELR register ******************/
  906. #define ADC_CHSELR_CHSEL_Pos (0U)
  907. #define ADC_CHSELR_CHSEL_Msk (0x7FFFFU << ADC_CHSELR_CHSEL_Pos) /*!< 0x0007FFFF */
  908. #define ADC_CHSELR_CHSEL ADC_CHSELR_CHSEL_Msk /*!< ADC group regular sequencer channels, available when ADC_CFGR1_CHSELRMOD is reset */
  909. #define ADC_CHSELR_CHSEL18_Pos (18U)
  910. #define ADC_CHSELR_CHSEL18_Msk (0x1U << ADC_CHSELR_CHSEL18_Pos) /*!< 0x00040000 */
  911. #define ADC_CHSELR_CHSEL18 ADC_CHSELR_CHSEL18_Msk /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
  912. #define ADC_CHSELR_CHSEL17_Pos (17U)
  913. #define ADC_CHSELR_CHSEL17_Msk (0x1U << ADC_CHSELR_CHSEL17_Pos) /*!< 0x00020000 */
  914. #define ADC_CHSELR_CHSEL17 ADC_CHSELR_CHSEL17_Msk /*!< ADC group regular sequencer channel 17, available when ADC_CFGR1_CHSELRMOD is reset */
  915. #define ADC_CHSELR_CHSEL16_Pos (16U)
  916. #define ADC_CHSELR_CHSEL16_Msk (0x1U << ADC_CHSELR_CHSEL16_Pos) /*!< 0x00010000 */
  917. #define ADC_CHSELR_CHSEL16 ADC_CHSELR_CHSEL16_Msk /*!< ADC group regular sequencer channel 16, available when ADC_CFGR1_CHSELRMOD is reset */
  918. #define ADC_CHSELR_CHSEL15_Pos (15U)
  919. #define ADC_CHSELR_CHSEL15_Msk (0x1U << ADC_CHSELR_CHSEL15_Pos) /*!< 0x00008000 */
  920. #define ADC_CHSELR_CHSEL15 ADC_CHSELR_CHSEL15_Msk /*!< ADC group regular sequencer channel 15, available when ADC_CFGR1_CHSELRMOD is reset */
  921. #define ADC_CHSELR_CHSEL14_Pos (14U)
  922. #define ADC_CHSELR_CHSEL14_Msk (0x1U << ADC_CHSELR_CHSEL14_Pos) /*!< 0x00004000 */
  923. #define ADC_CHSELR_CHSEL14 ADC_CHSELR_CHSEL14_Msk /*!< ADC group regular sequencer channel 14, available when ADC_CFGR1_CHSELRMOD is reset */
  924. #define ADC_CHSELR_CHSEL13_Pos (13U)
  925. #define ADC_CHSELR_CHSEL13_Msk (0x1U << ADC_CHSELR_CHSEL13_Pos) /*!< 0x00002000 */
  926. #define ADC_CHSELR_CHSEL13 ADC_CHSELR_CHSEL13_Msk /*!< ADC group regular sequencer channel 13, available when ADC_CFGR1_CHSELRMOD is reset */
  927. #define ADC_CHSELR_CHSEL12_Pos (12U)
  928. #define ADC_CHSELR_CHSEL12_Msk (0x1U << ADC_CHSELR_CHSEL12_Pos) /*!< 0x00001000 */
  929. #define ADC_CHSELR_CHSEL12 ADC_CHSELR_CHSEL12_Msk /*!< ADC group regular sequencer channel 12, available when ADC_CFGR1_CHSELRMOD is reset */
  930. #define ADC_CHSELR_CHSEL11_Pos (11U)
  931. #define ADC_CHSELR_CHSEL11_Msk (0x1U << ADC_CHSELR_CHSEL11_Pos) /*!< 0x00000800 */
  932. #define ADC_CHSELR_CHSEL11 ADC_CHSELR_CHSEL11_Msk /*!< ADC group regular sequencer channel 11, available when ADC_CFGR1_CHSELRMOD is reset */
  933. #define ADC_CHSELR_CHSEL10_Pos (10U)
  934. #define ADC_CHSELR_CHSEL10_Msk (0x1U << ADC_CHSELR_CHSEL10_Pos) /*!< 0x00000400 */
  935. #define ADC_CHSELR_CHSEL10 ADC_CHSELR_CHSEL10_Msk /*!< ADC group regular sequencer channel 10, available when ADC_CFGR1_CHSELRMOD is reset */
  936. #define ADC_CHSELR_CHSEL9_Pos (9U)
  937. #define ADC_CHSELR_CHSEL9_Msk (0x1U << ADC_CHSELR_CHSEL9_Pos) /*!< 0x00000200 */
  938. #define ADC_CHSELR_CHSEL9 ADC_CHSELR_CHSEL9_Msk /*!< ADC group regular sequencer channel 9, available when ADC_CFGR1_CHSELRMOD is reset */
  939. #define ADC_CHSELR_CHSEL8_Pos (8U)
  940. #define ADC_CHSELR_CHSEL8_Msk (0x1U << ADC_CHSELR_CHSEL8_Pos) /*!< 0x00000100 */
  941. #define ADC_CHSELR_CHSEL8 ADC_CHSELR_CHSEL8_Msk /*!< ADC group regular sequencer channel 8, available when ADC_CFGR1_CHSELRMOD is reset */
  942. #define ADC_CHSELR_CHSEL7_Pos (7U)
  943. #define ADC_CHSELR_CHSEL7_Msk (0x1U << ADC_CHSELR_CHSEL7_Pos) /*!< 0x00000080 */
  944. #define ADC_CHSELR_CHSEL7 ADC_CHSELR_CHSEL7_Msk /*!< ADC group regular sequencer channel 7, available when ADC_CFGR1_CHSELRMOD is reset */
  945. #define ADC_CHSELR_CHSEL6_Pos (6U)
  946. #define ADC_CHSELR_CHSEL6_Msk (0x1U << ADC_CHSELR_CHSEL6_Pos) /*!< 0x00000040 */
  947. #define ADC_CHSELR_CHSEL6 ADC_CHSELR_CHSEL6_Msk /*!< ADC group regular sequencer channel 6, available when ADC_CFGR1_CHSELRMOD is reset */
  948. #define ADC_CHSELR_CHSEL5_Pos (5U)
  949. #define ADC_CHSELR_CHSEL5_Msk (0x1U << ADC_CHSELR_CHSEL5_Pos) /*!< 0x00000020 */
  950. #define ADC_CHSELR_CHSEL5 ADC_CHSELR_CHSEL5_Msk /*!< ADC group regular sequencer channel 5, available when ADC_CFGR1_CHSELRMOD is reset */
  951. #define ADC_CHSELR_CHSEL4_Pos (4U)
  952. #define ADC_CHSELR_CHSEL4_Msk (0x1U << ADC_CHSELR_CHSEL4_Pos) /*!< 0x00000010 */
  953. #define ADC_CHSELR_CHSEL4 ADC_CHSELR_CHSEL4_Msk /*!< ADC group regular sequencer channel 4, available when ADC_CFGR1_CHSELRMOD is reset */
  954. #define ADC_CHSELR_CHSEL3_Pos (3U)
  955. #define ADC_CHSELR_CHSEL3_Msk (0x1U << ADC_CHSELR_CHSEL3_Pos) /*!< 0x00000008 */
  956. #define ADC_CHSELR_CHSEL3 ADC_CHSELR_CHSEL3_Msk /*!< ADC group regular sequencer channel 3, available when ADC_CFGR1_CHSELRMOD is reset */
  957. #define ADC_CHSELR_CHSEL2_Pos (2U)
  958. #define ADC_CHSELR_CHSEL2_Msk (0x1U << ADC_CHSELR_CHSEL2_Pos) /*!< 0x00000004 */
  959. #define ADC_CHSELR_CHSEL2 ADC_CHSELR_CHSEL2_Msk /*!< ADC group regular sequencer channel 2, available when ADC_CFGR1_CHSELRMOD is reset */
  960. #define ADC_CHSELR_CHSEL1_Pos (1U)
  961. #define ADC_CHSELR_CHSEL1_Msk (0x1U << ADC_CHSELR_CHSEL1_Pos) /*!< 0x00000002 */
  962. #define ADC_CHSELR_CHSEL1 ADC_CHSELR_CHSEL1_Msk /*!< ADC group regular sequencer channel 1, available when ADC_CFGR1_CHSELRMOD is reset */
  963. #define ADC_CHSELR_CHSEL0_Pos (0U)
  964. #define ADC_CHSELR_CHSEL0_Msk (0x1U << ADC_CHSELR_CHSEL0_Pos) /*!< 0x00000001 */
  965. #define ADC_CHSELR_CHSEL0 ADC_CHSELR_CHSEL0_Msk /*!< ADC group regular sequencer channel 0, available when ADC_CFGR1_CHSELRMOD is reset */
  966. /******************** Bit definition for ADC_DR register ********************/
  967. #define ADC_DR_DATA_Pos (0U)
  968. #define ADC_DR_DATA_Msk (0xFFFFU << ADC_DR_DATA_Pos) /*!< 0x0000FFFF */
  969. #define ADC_DR_DATA ADC_DR_DATA_Msk /*!< ADC group regular conversion data */
  970. #define ADC_DR_DATA_0 (0x0001U << ADC_DR_DATA_Pos) /*!< 0x00000001 */
  971. #define ADC_DR_DATA_1 (0x0002U << ADC_DR_DATA_Pos) /*!< 0x00000002 */
  972. #define ADC_DR_DATA_2 (0x0004U << ADC_DR_DATA_Pos) /*!< 0x00000004 */
  973. #define ADC_DR_DATA_3 (0x0008U << ADC_DR_DATA_Pos) /*!< 0x00000008 */
  974. #define ADC_DR_DATA_4 (0x0010U << ADC_DR_DATA_Pos) /*!< 0x00000010 */
  975. #define ADC_DR_DATA_5 (0x0020U << ADC_DR_DATA_Pos) /*!< 0x00000020 */
  976. #define ADC_DR_DATA_6 (0x0040U << ADC_DR_DATA_Pos) /*!< 0x00000040 */
  977. #define ADC_DR_DATA_7 (0x0080U << ADC_DR_DATA_Pos) /*!< 0x00000080 */
  978. #define ADC_DR_DATA_8 (0x0100U << ADC_DR_DATA_Pos) /*!< 0x00000100 */
  979. #define ADC_DR_DATA_9 (0x0200U << ADC_DR_DATA_Pos) /*!< 0x00000200 */
  980. #define ADC_DR_DATA_10 (0x0400U << ADC_DR_DATA_Pos) /*!< 0x00000400 */
  981. #define ADC_DR_DATA_11 (0x0800U << ADC_DR_DATA_Pos) /*!< 0x00000800 */
  982. #define ADC_DR_DATA_12 (0x1000U << ADC_DR_DATA_Pos) /*!< 0x00001000 */
  983. #define ADC_DR_DATA_13 (0x2000U << ADC_DR_DATA_Pos) /*!< 0x00002000 */
  984. #define ADC_DR_DATA_14 (0x4000U << ADC_DR_DATA_Pos) /*!< 0x00004000 */
  985. #define ADC_DR_DATA_15 (0x8000U << ADC_DR_DATA_Pos) /*!< 0x00008000 */
  986. /************************* ADC Common registers *****************************/
  987. /******************* Bit definition for ADC_CCR register ********************/
  988. #define ADC_CCR_VREFEN_Pos (22U)
  989. #define ADC_CCR_VREFEN_Msk (0x1U << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  990. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< ADC internal path to VrefInt enable */
  991. #define ADC_CCR_TSEN_Pos (23U)
  992. #define ADC_CCR_TSEN_Msk (0x1U << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  993. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< ADC internal path to temperature sensor enable */
  994. #define ADC_CCR_VBATEN_Pos (24U)
  995. #define ADC_CCR_VBATEN_Msk (0x1U << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  996. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
  997. /******************************************************************************/
  998. /* */
  999. /* Controller Area Network (CAN ) */
  1000. /* */
  1001. /******************************************************************************/
  1002. /*!<CAN control and status registers */
  1003. /******************* Bit definition for CAN_MCR register ********************/
  1004. #define CAN_MCR_INRQ_Pos (0U)
  1005. #define CAN_MCR_INRQ_Msk (0x1U << CAN_MCR_INRQ_Pos) /*!< 0x00000001 */
  1006. #define CAN_MCR_INRQ CAN_MCR_INRQ_Msk /*!<Initialization Request */
  1007. #define CAN_MCR_SLEEP_Pos (1U)
  1008. #define CAN_MCR_SLEEP_Msk (0x1U << CAN_MCR_SLEEP_Pos) /*!< 0x00000002 */
  1009. #define CAN_MCR_SLEEP CAN_MCR_SLEEP_Msk /*!<Sleep Mode Request */
  1010. #define CAN_MCR_TXFP_Pos (2U)
  1011. #define CAN_MCR_TXFP_Msk (0x1U << CAN_MCR_TXFP_Pos) /*!< 0x00000004 */
  1012. #define CAN_MCR_TXFP CAN_MCR_TXFP_Msk /*!<Transmit FIFO Priority */
  1013. #define CAN_MCR_RFLM_Pos (3U)
  1014. #define CAN_MCR_RFLM_Msk (0x1U << CAN_MCR_RFLM_Pos) /*!< 0x00000008 */
  1015. #define CAN_MCR_RFLM CAN_MCR_RFLM_Msk /*!<Receive FIFO Locked Mode */
  1016. #define CAN_MCR_NART_Pos (4U)
  1017. #define CAN_MCR_NART_Msk (0x1U << CAN_MCR_NART_Pos) /*!< 0x00000010 */
  1018. #define CAN_MCR_NART CAN_MCR_NART_Msk /*!<No Automatic Retransmission */
  1019. #define CAN_MCR_AWUM_Pos (5U)
  1020. #define CAN_MCR_AWUM_Msk (0x1U << CAN_MCR_AWUM_Pos) /*!< 0x00000020 */
  1021. #define CAN_MCR_AWUM CAN_MCR_AWUM_Msk /*!<Automatic Wakeup Mode */
  1022. #define CAN_MCR_ABOM_Pos (6U)
  1023. #define CAN_MCR_ABOM_Msk (0x1U << CAN_MCR_ABOM_Pos) /*!< 0x00000040 */
  1024. #define CAN_MCR_ABOM CAN_MCR_ABOM_Msk /*!<Automatic Bus-Off Management */
  1025. #define CAN_MCR_TTCM_Pos (7U)
  1026. #define CAN_MCR_TTCM_Msk (0x1U << CAN_MCR_TTCM_Pos) /*!< 0x00000080 */
  1027. #define CAN_MCR_TTCM CAN_MCR_TTCM_Msk /*!<Time Triggered Communication Mode */
  1028. #define CAN_MCR_RESET_Pos (15U)
  1029. #define CAN_MCR_RESET_Msk (0x1U << CAN_MCR_RESET_Pos) /*!< 0x00008000 */
  1030. #define CAN_MCR_RESET CAN_MCR_RESET_Msk /*!<bxCAN software master reset */
  1031. /******************* Bit definition for CAN_MSR register ********************/
  1032. #define CAN_MSR_INAK_Pos (0U)
  1033. #define CAN_MSR_INAK_Msk (0x1U << CAN_MSR_INAK_Pos) /*!< 0x00000001 */
  1034. #define CAN_MSR_INAK CAN_MSR_INAK_Msk /*!<Initialization Acknowledge */
  1035. #define CAN_MSR_SLAK_Pos (1U)
  1036. #define CAN_MSR_SLAK_Msk (0x1U << CAN_MSR_SLAK_Pos) /*!< 0x00000002 */
  1037. #define CAN_MSR_SLAK CAN_MSR_SLAK_Msk /*!<Sleep Acknowledge */
  1038. #define CAN_MSR_ERRI_Pos (2U)
  1039. #define CAN_MSR_ERRI_Msk (0x1U << CAN_MSR_ERRI_Pos) /*!< 0x00000004 */
  1040. #define CAN_MSR_ERRI CAN_MSR_ERRI_Msk /*!<Error Interrupt */
  1041. #define CAN_MSR_WKUI_Pos (3U)
  1042. #define CAN_MSR_WKUI_Msk (0x1U << CAN_MSR_WKUI_Pos) /*!< 0x00000008 */
  1043. #define CAN_MSR_WKUI CAN_MSR_WKUI_Msk /*!<Wakeup Interrupt */
  1044. #define CAN_MSR_SLAKI_Pos (4U)
  1045. #define CAN_MSR_SLAKI_Msk (0x1U << CAN_MSR_SLAKI_Pos) /*!< 0x00000010 */
  1046. #define CAN_MSR_SLAKI CAN_MSR_SLAKI_Msk /*!<Sleep Acknowledge Interrupt */
  1047. #define CAN_MSR_TXM_Pos (8U)
  1048. #define CAN_MSR_TXM_Msk (0x1U << CAN_MSR_TXM_Pos) /*!< 0x00000100 */
  1049. #define CAN_MSR_TXM CAN_MSR_TXM_Msk /*!<Transmit Mode */
  1050. #define CAN_MSR_RXM_Pos (9U)
  1051. #define CAN_MSR_RXM_Msk (0x1U << CAN_MSR_RXM_Pos) /*!< 0x00000200 */
  1052. #define CAN_MSR_RXM CAN_MSR_RXM_Msk /*!<Receive Mode */
  1053. #define CAN_MSR_SAMP_Pos (10U)
  1054. #define CAN_MSR_SAMP_Msk (0x1U << CAN_MSR_SAMP_Pos) /*!< 0x00000400 */
  1055. #define CAN_MSR_SAMP CAN_MSR_SAMP_Msk /*!<Last Sample Point */
  1056. #define CAN_MSR_RX_Pos (11U)
  1057. #define CAN_MSR_RX_Msk (0x1U << CAN_MSR_RX_Pos) /*!< 0x00000800 */
  1058. #define CAN_MSR_RX CAN_MSR_RX_Msk /*!<CAN Rx Signal */
  1059. /******************* Bit definition for CAN_TSR register ********************/
  1060. #define CAN_TSR_RQCP0_Pos (0U)
  1061. #define CAN_TSR_RQCP0_Msk (0x1U << CAN_TSR_RQCP0_Pos) /*!< 0x00000001 */
  1062. #define CAN_TSR_RQCP0 CAN_TSR_RQCP0_Msk /*!<Request Completed Mailbox0 */
  1063. #define CAN_TSR_TXOK0_Pos (1U)
  1064. #define CAN_TSR_TXOK0_Msk (0x1U << CAN_TSR_TXOK0_Pos) /*!< 0x00000002 */
  1065. #define CAN_TSR_TXOK0 CAN_TSR_TXOK0_Msk /*!<Transmission OK of Mailbox0 */
  1066. #define CAN_TSR_ALST0_Pos (2U)
  1067. #define CAN_TSR_ALST0_Msk (0x1U << CAN_TSR_ALST0_Pos) /*!< 0x00000004 */
  1068. #define CAN_TSR_ALST0 CAN_TSR_ALST0_Msk /*!<Arbitration Lost for Mailbox0 */
  1069. #define CAN_TSR_TERR0_Pos (3U)
  1070. #define CAN_TSR_TERR0_Msk (0x1U << CAN_TSR_TERR0_Pos) /*!< 0x00000008 */
  1071. #define CAN_TSR_TERR0 CAN_TSR_TERR0_Msk /*!<Transmission Error of Mailbox0 */
  1072. #define CAN_TSR_ABRQ0_Pos (7U)
  1073. #define CAN_TSR_ABRQ0_Msk (0x1U << CAN_TSR_ABRQ0_Pos) /*!< 0x00000080 */
  1074. #define CAN_TSR_ABRQ0 CAN_TSR_ABRQ0_Msk /*!<Abort Request for Mailbox0 */
  1075. #define CAN_TSR_RQCP1_Pos (8U)
  1076. #define CAN_TSR_RQCP1_Msk (0x1U << CAN_TSR_RQCP1_Pos) /*!< 0x00000100 */
  1077. #define CAN_TSR_RQCP1 CAN_TSR_RQCP1_Msk /*!<Request Completed Mailbox1 */
  1078. #define CAN_TSR_TXOK1_Pos (9U)
  1079. #define CAN_TSR_TXOK1_Msk (0x1U << CAN_TSR_TXOK1_Pos) /*!< 0x00000200 */
  1080. #define CAN_TSR_TXOK1 CAN_TSR_TXOK1_Msk /*!<Transmission OK of Mailbox1 */
  1081. #define CAN_TSR_ALST1_Pos (10U)
  1082. #define CAN_TSR_ALST1_Msk (0x1U << CAN_TSR_ALST1_Pos) /*!< 0x00000400 */
  1083. #define CAN_TSR_ALST1 CAN_TSR_ALST1_Msk /*!<Arbitration Lost for Mailbox1 */
  1084. #define CAN_TSR_TERR1_Pos (11U)
  1085. #define CAN_TSR_TERR1_Msk (0x1U << CAN_TSR_TERR1_Pos) /*!< 0x00000800 */
  1086. #define CAN_TSR_TERR1 CAN_TSR_TERR1_Msk /*!<Transmission Error of Mailbox1 */
  1087. #define CAN_TSR_ABRQ1_Pos (15U)
  1088. #define CAN_TSR_ABRQ1_Msk (0x1U << CAN_TSR_ABRQ1_Pos) /*!< 0x00008000 */
  1089. #define CAN_TSR_ABRQ1 CAN_TSR_ABRQ1_Msk /*!<Abort Request for Mailbox 1 */
  1090. #define CAN_TSR_RQCP2_Pos (16U)
  1091. #define CAN_TSR_RQCP2_Msk (0x1U << CAN_TSR_RQCP2_Pos) /*!< 0x00010000 */
  1092. #define CAN_TSR_RQCP2 CAN_TSR_RQCP2_Msk /*!<Request Completed Mailbox2 */
  1093. #define CAN_TSR_TXOK2_Pos (17U)
  1094. #define CAN_TSR_TXOK2_Msk (0x1U << CAN_TSR_TXOK2_Pos) /*!< 0x00020000 */
  1095. #define CAN_TSR_TXOK2 CAN_TSR_TXOK2_Msk /*!<Transmission OK of Mailbox 2 */
  1096. #define CAN_TSR_ALST2_Pos (18U)
  1097. #define CAN_TSR_ALST2_Msk (0x1U << CAN_TSR_ALST2_Pos) /*!< 0x00040000 */
  1098. #define CAN_TSR_ALST2 CAN_TSR_ALST2_Msk /*!<Arbitration Lost for mailbox 2 */
  1099. #define CAN_TSR_TERR2_Pos (19U)
  1100. #define CAN_TSR_TERR2_Msk (0x1U << CAN_TSR_TERR2_Pos) /*!< 0x00080000 */
  1101. #define CAN_TSR_TERR2 CAN_TSR_TERR2_Msk /*!<Transmission Error of Mailbox 2 */
  1102. #define CAN_TSR_ABRQ2_Pos (23U)
  1103. #define CAN_TSR_ABRQ2_Msk (0x1U << CAN_TSR_ABRQ2_Pos) /*!< 0x00800000 */
  1104. #define CAN_TSR_ABRQ2 CAN_TSR_ABRQ2_Msk /*!<Abort Request for Mailbox 2 */
  1105. #define CAN_TSR_CODE_Pos (24U)
  1106. #define CAN_TSR_CODE_Msk (0x3U << CAN_TSR_CODE_Pos) /*!< 0x03000000 */
  1107. #define CAN_TSR_CODE CAN_TSR_CODE_Msk /*!<Mailbox Code */
  1108. #define CAN_TSR_TME_Pos (26U)
  1109. #define CAN_TSR_TME_Msk (0x7U << CAN_TSR_TME_Pos) /*!< 0x1C000000 */
  1110. #define CAN_TSR_TME CAN_TSR_TME_Msk /*!<TME[2:0] bits */
  1111. #define CAN_TSR_TME0_Pos (26U)
  1112. #define CAN_TSR_TME0_Msk (0x1U << CAN_TSR_TME0_Pos) /*!< 0x04000000 */
  1113. #define CAN_TSR_TME0 CAN_TSR_TME0_Msk /*!<Transmit Mailbox 0 Empty */
  1114. #define CAN_TSR_TME1_Pos (27U)
  1115. #define CAN_TSR_TME1_Msk (0x1U << CAN_TSR_TME1_Pos) /*!< 0x08000000 */
  1116. #define CAN_TSR_TME1 CAN_TSR_TME1_Msk /*!<Transmit Mailbox 1 Empty */
  1117. #define CAN_TSR_TME2_Pos (28U)
  1118. #define CAN_TSR_TME2_Msk (0x1U << CAN_TSR_TME2_Pos) /*!< 0x10000000 */
  1119. #define CAN_TSR_TME2 CAN_TSR_TME2_Msk /*!<Transmit Mailbox 2 Empty */
  1120. #define CAN_TSR_LOW_Pos (29U)
  1121. #define CAN_TSR_LOW_Msk (0x7U << CAN_TSR_LOW_Pos) /*!< 0xE0000000 */
  1122. #define CAN_TSR_LOW CAN_TSR_LOW_Msk /*!<LOW[2:0] bits */
  1123. #define CAN_TSR_LOW0_Pos (29U)
  1124. #define CAN_TSR_LOW0_Msk (0x1U << CAN_TSR_LOW0_Pos) /*!< 0x20000000 */
  1125. #define CAN_TSR_LOW0 CAN_TSR_LOW0_Msk /*!<Lowest Priority Flag for Mailbox 0 */
  1126. #define CAN_TSR_LOW1_Pos (30U)
  1127. #define CAN_TSR_LOW1_Msk (0x1U << CAN_TSR_LOW1_Pos) /*!< 0x40000000 */
  1128. #define CAN_TSR_LOW1 CAN_TSR_LOW1_Msk /*!<Lowest Priority Flag for Mailbox 1 */
  1129. #define CAN_TSR_LOW2_Pos (31U)
  1130. #define CAN_TSR_LOW2_Msk (0x1U << CAN_TSR_LOW2_Pos) /*!< 0x80000000 */
  1131. #define CAN_TSR_LOW2 CAN_TSR_LOW2_Msk /*!<Lowest Priority Flag for Mailbox 2 */
  1132. /******************* Bit definition for CAN_RF0R register *******************/
  1133. #define CAN_RF0R_FMP0_Pos (0U)
  1134. #define CAN_RF0R_FMP0_Msk (0x3U << CAN_RF0R_FMP0_Pos) /*!< 0x00000003 */
  1135. #define CAN_RF0R_FMP0 CAN_RF0R_FMP0_Msk /*!<FIFO 0 Message Pending */
  1136. #define CAN_RF0R_FULL0_Pos (3U)
  1137. #define CAN_RF0R_FULL0_Msk (0x1U << CAN_RF0R_FULL0_Pos) /*!< 0x00000008 */
  1138. #define CAN_RF0R_FULL0 CAN_RF0R_FULL0_Msk /*!<FIFO 0 Full */
  1139. #define CAN_RF0R_FOVR0_Pos (4U)
  1140. #define CAN_RF0R_FOVR0_Msk (0x1U << CAN_RF0R_FOVR0_Pos) /*!< 0x00000010 */
  1141. #define CAN_RF0R_FOVR0 CAN_RF0R_FOVR0_Msk /*!<FIFO 0 Overrun */
  1142. #define CAN_RF0R_RFOM0_Pos (5U)
  1143. #define CAN_RF0R_RFOM0_Msk (0x1U << CAN_RF0R_RFOM0_Pos) /*!< 0x00000020 */
  1144. #define CAN_RF0R_RFOM0 CAN_RF0R_RFOM0_Msk /*!<Release FIFO 0 Output Mailbox */
  1145. /******************* Bit definition for CAN_RF1R register *******************/
  1146. #define CAN_RF1R_FMP1_Pos (0U)
  1147. #define CAN_RF1R_FMP1_Msk (0x3U << CAN_RF1R_FMP1_Pos) /*!< 0x00000003 */
  1148. #define CAN_RF1R_FMP1 CAN_RF1R_FMP1_Msk /*!<FIFO 1 Message Pending */
  1149. #define CAN_RF1R_FULL1_Pos (3U)
  1150. #define CAN_RF1R_FULL1_Msk (0x1U << CAN_RF1R_FULL1_Pos) /*!< 0x00000008 */
  1151. #define CAN_RF1R_FULL1 CAN_RF1R_FULL1_Msk /*!<FIFO 1 Full */
  1152. #define CAN_RF1R_FOVR1_Pos (4U)
  1153. #define CAN_RF1R_FOVR1_Msk (0x1U << CAN_RF1R_FOVR1_Pos) /*!< 0x00000010 */
  1154. #define CAN_RF1R_FOVR1 CAN_RF1R_FOVR1_Msk /*!<FIFO 1 Overrun */
  1155. #define CAN_RF1R_RFOM1_Pos (5U)
  1156. #define CAN_RF1R_RFOM1_Msk (0x1U << CAN_RF1R_RFOM1_Pos) /*!< 0x00000020 */
  1157. #define CAN_RF1R_RFOM1 CAN_RF1R_RFOM1_Msk /*!<Release FIFO 1 Output Mailbox */
  1158. /******************** Bit definition for CAN_IER register *******************/
  1159. #define CAN_IER_TMEIE_Pos (0U)
  1160. #define CAN_IER_TMEIE_Msk (0x1U << CAN_IER_TMEIE_Pos) /*!< 0x00000001 */
  1161. #define CAN_IER_TMEIE CAN_IER_TMEIE_Msk /*!<Transmit Mailbox Empty Interrupt Enable */
  1162. #define CAN_IER_FMPIE0_Pos (1U)
  1163. #define CAN_IER_FMPIE0_Msk (0x1U << CAN_IER_FMPIE0_Pos) /*!< 0x00000002 */
  1164. #define CAN_IER_FMPIE0 CAN_IER_FMPIE0_Msk /*!<FIFO Message Pending Interrupt Enable */
  1165. #define CAN_IER_FFIE0_Pos (2U)
  1166. #define CAN_IER_FFIE0_Msk (0x1U << CAN_IER_FFIE0_Pos) /*!< 0x00000004 */
  1167. #define CAN_IER_FFIE0 CAN_IER_FFIE0_Msk /*!<FIFO Full Interrupt Enable */
  1168. #define CAN_IER_FOVIE0_Pos (3U)
  1169. #define CAN_IER_FOVIE0_Msk (0x1U << CAN_IER_FOVIE0_Pos) /*!< 0x00000008 */
  1170. #define CAN_IER_FOVIE0 CAN_IER_FOVIE0_Msk /*!<FIFO Overrun Interrupt Enable */
  1171. #define CAN_IER_FMPIE1_Pos (4U)
  1172. #define CAN_IER_FMPIE1_Msk (0x1U << CAN_IER_FMPIE1_Pos) /*!< 0x00000010 */
  1173. #define CAN_IER_FMPIE1 CAN_IER_FMPIE1_Msk /*!<FIFO Message Pending Interrupt Enable */
  1174. #define CAN_IER_FFIE1_Pos (5U)
  1175. #define CAN_IER_FFIE1_Msk (0x1U << CAN_IER_FFIE1_Pos) /*!< 0x00000020 */
  1176. #define CAN_IER_FFIE1 CAN_IER_FFIE1_Msk /*!<FIFO Full Interrupt Enable */
  1177. #define CAN_IER_FOVIE1_Pos (6U)
  1178. #define CAN_IER_FOVIE1_Msk (0x1U << CAN_IER_FOVIE1_Pos) /*!< 0x00000040 */
  1179. #define CAN_IER_FOVIE1 CAN_IER_FOVIE1_Msk /*!<FIFO Overrun Interrupt Enable */
  1180. #define CAN_IER_EWGIE_Pos (8U)
  1181. #define CAN_IER_EWGIE_Msk (0x1U << CAN_IER_EWGIE_Pos) /*!< 0x00000100 */
  1182. #define CAN_IER_EWGIE CAN_IER_EWGIE_Msk /*!<Error Warning Interrupt Enable */
  1183. #define CAN_IER_EPVIE_Pos (9U)
  1184. #define CAN_IER_EPVIE_Msk (0x1U << CAN_IER_EPVIE_Pos) /*!< 0x00000200 */
  1185. #define CAN_IER_EPVIE CAN_IER_EPVIE_Msk /*!<Error Passive Interrupt Enable */
  1186. #define CAN_IER_BOFIE_Pos (10U)
  1187. #define CAN_IER_BOFIE_Msk (0x1U << CAN_IER_BOFIE_Pos) /*!< 0x00000400 */
  1188. #define CAN_IER_BOFIE CAN_IER_BOFIE_Msk /*!<Bus-Off Interrupt Enable */
  1189. #define CAN_IER_LECIE_Pos (11U)
  1190. #define CAN_IER_LECIE_Msk (0x1U << CAN_IER_LECIE_Pos) /*!< 0x00000800 */
  1191. #define CAN_IER_LECIE CAN_IER_LECIE_Msk /*!<Last Error Code Interrupt Enable */
  1192. #define CAN_IER_ERRIE_Pos (15U)
  1193. #define CAN_IER_ERRIE_Msk (0x1U << CAN_IER_ERRIE_Pos) /*!< 0x00008000 */
  1194. #define CAN_IER_ERRIE CAN_IER_ERRIE_Msk /*!<Error Interrupt Enable */
  1195. #define CAN_IER_WKUIE_Pos (16U)
  1196. #define CAN_IER_WKUIE_Msk (0x1U << CAN_IER_WKUIE_Pos) /*!< 0x00010000 */
  1197. #define CAN_IER_WKUIE CAN_IER_WKUIE_Msk /*!<Wakeup Interrupt Enable */
  1198. #define CAN_IER_SLKIE_Pos (17U)
  1199. #define CAN_IER_SLKIE_Msk (0x1U << CAN_IER_SLKIE_Pos) /*!< 0x00020000 */
  1200. #define CAN_IER_SLKIE CAN_IER_SLKIE_Msk /*!<Sleep Interrupt Enable */
  1201. /******************** Bit definition for CAN_ESR register *******************/
  1202. #define CAN_ESR_EWGF_Pos (0U)
  1203. #define CAN_ESR_EWGF_Msk (0x1U << CAN_ESR_EWGF_Pos) /*!< 0x00000001 */
  1204. #define CAN_ESR_EWGF CAN_ESR_EWGF_Msk /*!<Error Warning Flag */
  1205. #define CAN_ESR_EPVF_Pos (1U)
  1206. #define CAN_ESR_EPVF_Msk (0x1U << CAN_ESR_EPVF_Pos) /*!< 0x00000002 */
  1207. #define CAN_ESR_EPVF CAN_ESR_EPVF_Msk /*!<Error Passive Flag */
  1208. #define CAN_ESR_BOFF_Pos (2U)
  1209. #define CAN_ESR_BOFF_Msk (0x1U << CAN_ESR_BOFF_Pos) /*!< 0x00000004 */
  1210. #define CAN_ESR_BOFF CAN_ESR_BOFF_Msk /*!<Bus-Off Flag */
  1211. #define CAN_ESR_LEC_Pos (4U)
  1212. #define CAN_ESR_LEC_Msk (0x7U << CAN_ESR_LEC_Pos) /*!< 0x00000070 */
  1213. #define CAN_ESR_LEC CAN_ESR_LEC_Msk /*!<LEC[2:0] bits (Last Error Code) */
  1214. #define CAN_ESR_LEC_0 (0x1U << CAN_ESR_LEC_Pos) /*!< 0x00000010 */
  1215. #define CAN_ESR_LEC_1 (0x2U << CAN_ESR_LEC_Pos) /*!< 0x00000020 */
  1216. #define CAN_ESR_LEC_2 (0x4U << CAN_ESR_LEC_Pos) /*!< 0x00000040 */
  1217. #define CAN_ESR_TEC_Pos (16U)
  1218. #define CAN_ESR_TEC_Msk (0xFFU << CAN_ESR_TEC_Pos) /*!< 0x00FF0000 */
  1219. #define CAN_ESR_TEC CAN_ESR_TEC_Msk /*!<Least significant byte of the 9-bit Transmit Error Counter */
  1220. #define CAN_ESR_REC_Pos (24U)
  1221. #define CAN_ESR_REC_Msk (0xFFU << CAN_ESR_REC_Pos) /*!< 0xFF000000 */
  1222. #define CAN_ESR_REC CAN_ESR_REC_Msk /*!<Receive Error Counter */
  1223. /******************* Bit definition for CAN_BTR register ********************/
  1224. #define CAN_BTR_BRP_Pos (0U)
  1225. #define CAN_BTR_BRP_Msk (0x3FFU << CAN_BTR_BRP_Pos) /*!< 0x000003FF */
  1226. #define CAN_BTR_BRP CAN_BTR_BRP_Msk /*!<Baud Rate Prescaler */
  1227. #define CAN_BTR_TS1_Pos (16U)
  1228. #define CAN_BTR_TS1_Msk (0xFU << CAN_BTR_TS1_Pos) /*!< 0x000F0000 */
  1229. #define CAN_BTR_TS1 CAN_BTR_TS1_Msk /*!<Time Segment 1 */
  1230. #define CAN_BTR_TS1_0 (0x1U << CAN_BTR_TS1_Pos) /*!< 0x00010000 */
  1231. #define CAN_BTR_TS1_1 (0x2U << CAN_BTR_TS1_Pos) /*!< 0x00020000 */
  1232. #define CAN_BTR_TS1_2 (0x4U << CAN_BTR_TS1_Pos) /*!< 0x00040000 */
  1233. #define CAN_BTR_TS1_3 (0x8U << CAN_BTR_TS1_Pos) /*!< 0x00080000 */
  1234. #define CAN_BTR_TS2_Pos (20U)
  1235. #define CAN_BTR_TS2_Msk (0x7U << CAN_BTR_TS2_Pos) /*!< 0x00700000 */
  1236. #define CAN_BTR_TS2 CAN_BTR_TS2_Msk /*!<Time Segment 2 */
  1237. #define CAN_BTR_TS2_0 (0x1U << CAN_BTR_TS2_Pos) /*!< 0x00100000 */
  1238. #define CAN_BTR_TS2_1 (0x2U << CAN_BTR_TS2_Pos) /*!< 0x00200000 */
  1239. #define CAN_BTR_TS2_2 (0x4U << CAN_BTR_TS2_Pos) /*!< 0x00400000 */
  1240. #define CAN_BTR_SJW_Pos (24U)
  1241. #define CAN_BTR_SJW_Msk (0x3U << CAN_BTR_SJW_Pos) /*!< 0x03000000 */
  1242. #define CAN_BTR_SJW CAN_BTR_SJW_Msk /*!<Resynchronization Jump Width */
  1243. #define CAN_BTR_SJW_0 (0x1U << CAN_BTR_SJW_Pos) /*!< 0x01000000 */
  1244. #define CAN_BTR_SJW_1 (0x2U << CAN_BTR_SJW_Pos) /*!< 0x02000000 */
  1245. #define CAN_BTR_LBKM_Pos (30U)
  1246. #define CAN_BTR_LBKM_Msk (0x1U << CAN_BTR_LBKM_Pos) /*!< 0x40000000 */
  1247. #define CAN_BTR_LBKM CAN_BTR_LBKM_Msk /*!<Loop Back Mode (Debug) */
  1248. #define CAN_BTR_SILM_Pos (31U)
  1249. #define CAN_BTR_SILM_Msk (0x1U << CAN_BTR_SILM_Pos) /*!< 0x80000000 */
  1250. #define CAN_BTR_SILM CAN_BTR_SILM_Msk /*!<Silent Mode */
  1251. /*!<Mailbox registers */
  1252. /****************** Bit definition for CAN_TI0R register ********************/
  1253. #define CAN_TI0R_TXRQ_Pos (0U)
  1254. #define CAN_TI0R_TXRQ_Msk (0x1U << CAN_TI0R_TXRQ_Pos) /*!< 0x00000001 */
  1255. #define CAN_TI0R_TXRQ CAN_TI0R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1256. #define CAN_TI0R_RTR_Pos (1U)
  1257. #define CAN_TI0R_RTR_Msk (0x1U << CAN_TI0R_RTR_Pos) /*!< 0x00000002 */
  1258. #define CAN_TI0R_RTR CAN_TI0R_RTR_Msk /*!<Remote Transmission Request */
  1259. #define CAN_TI0R_IDE_Pos (2U)
  1260. #define CAN_TI0R_IDE_Msk (0x1U << CAN_TI0R_IDE_Pos) /*!< 0x00000004 */
  1261. #define CAN_TI0R_IDE CAN_TI0R_IDE_Msk /*!<Identifier Extension */
  1262. #define CAN_TI0R_EXID_Pos (3U)
  1263. #define CAN_TI0R_EXID_Msk (0x3FFFFU << CAN_TI0R_EXID_Pos) /*!< 0x001FFFF8 */
  1264. #define CAN_TI0R_EXID CAN_TI0R_EXID_Msk /*!<Extended Identifier */
  1265. #define CAN_TI0R_STID_Pos (21U)
  1266. #define CAN_TI0R_STID_Msk (0x7FFU << CAN_TI0R_STID_Pos) /*!< 0xFFE00000 */
  1267. #define CAN_TI0R_STID CAN_TI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1268. /****************** Bit definition for CAN_TDT0R register *******************/
  1269. #define CAN_TDT0R_DLC_Pos (0U)
  1270. #define CAN_TDT0R_DLC_Msk (0xFU << CAN_TDT0R_DLC_Pos) /*!< 0x0000000F */
  1271. #define CAN_TDT0R_DLC CAN_TDT0R_DLC_Msk /*!<Data Length Code */
  1272. #define CAN_TDT0R_TGT_Pos (8U)
  1273. #define CAN_TDT0R_TGT_Msk (0x1U << CAN_TDT0R_TGT_Pos) /*!< 0x00000100 */
  1274. #define CAN_TDT0R_TGT CAN_TDT0R_TGT_Msk /*!<Transmit Global Time */
  1275. #define CAN_TDT0R_TIME_Pos (16U)
  1276. #define CAN_TDT0R_TIME_Msk (0xFFFFU << CAN_TDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  1277. #define CAN_TDT0R_TIME CAN_TDT0R_TIME_Msk /*!<Message Time Stamp */
  1278. /****************** Bit definition for CAN_TDL0R register *******************/
  1279. #define CAN_TDL0R_DATA0_Pos (0U)
  1280. #define CAN_TDL0R_DATA0_Msk (0xFFU << CAN_TDL0R_DATA0_Pos) /*!< 0x000000FF */
  1281. #define CAN_TDL0R_DATA0 CAN_TDL0R_DATA0_Msk /*!<Data byte 0 */
  1282. #define CAN_TDL0R_DATA1_Pos (8U)
  1283. #define CAN_TDL0R_DATA1_Msk (0xFFU << CAN_TDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  1284. #define CAN_TDL0R_DATA1 CAN_TDL0R_DATA1_Msk /*!<Data byte 1 */
  1285. #define CAN_TDL0R_DATA2_Pos (16U)
  1286. #define CAN_TDL0R_DATA2_Msk (0xFFU << CAN_TDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  1287. #define CAN_TDL0R_DATA2 CAN_TDL0R_DATA2_Msk /*!<Data byte 2 */
  1288. #define CAN_TDL0R_DATA3_Pos (24U)
  1289. #define CAN_TDL0R_DATA3_Msk (0xFFU << CAN_TDL0R_DATA3_Pos) /*!< 0xFF000000 */
  1290. #define CAN_TDL0R_DATA3 CAN_TDL0R_DATA3_Msk /*!<Data byte 3 */
  1291. /****************** Bit definition for CAN_TDH0R register *******************/
  1292. #define CAN_TDH0R_DATA4_Pos (0U)
  1293. #define CAN_TDH0R_DATA4_Msk (0xFFU << CAN_TDH0R_DATA4_Pos) /*!< 0x000000FF */
  1294. #define CAN_TDH0R_DATA4 CAN_TDH0R_DATA4_Msk /*!<Data byte 4 */
  1295. #define CAN_TDH0R_DATA5_Pos (8U)
  1296. #define CAN_TDH0R_DATA5_Msk (0xFFU << CAN_TDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  1297. #define CAN_TDH0R_DATA5 CAN_TDH0R_DATA5_Msk /*!<Data byte 5 */
  1298. #define CAN_TDH0R_DATA6_Pos (16U)
  1299. #define CAN_TDH0R_DATA6_Msk (0xFFU << CAN_TDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  1300. #define CAN_TDH0R_DATA6 CAN_TDH0R_DATA6_Msk /*!<Data byte 6 */
  1301. #define CAN_TDH0R_DATA7_Pos (24U)
  1302. #define CAN_TDH0R_DATA7_Msk (0xFFU << CAN_TDH0R_DATA7_Pos) /*!< 0xFF000000 */
  1303. #define CAN_TDH0R_DATA7 CAN_TDH0R_DATA7_Msk /*!<Data byte 7 */
  1304. /******************* Bit definition for CAN_TI1R register *******************/
  1305. #define CAN_TI1R_TXRQ_Pos (0U)
  1306. #define CAN_TI1R_TXRQ_Msk (0x1U << CAN_TI1R_TXRQ_Pos) /*!< 0x00000001 */
  1307. #define CAN_TI1R_TXRQ CAN_TI1R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1308. #define CAN_TI1R_RTR_Pos (1U)
  1309. #define CAN_TI1R_RTR_Msk (0x1U << CAN_TI1R_RTR_Pos) /*!< 0x00000002 */
  1310. #define CAN_TI1R_RTR CAN_TI1R_RTR_Msk /*!<Remote Transmission Request */
  1311. #define CAN_TI1R_IDE_Pos (2U)
  1312. #define CAN_TI1R_IDE_Msk (0x1U << CAN_TI1R_IDE_Pos) /*!< 0x00000004 */
  1313. #define CAN_TI1R_IDE CAN_TI1R_IDE_Msk /*!<Identifier Extension */
  1314. #define CAN_TI1R_EXID_Pos (3U)
  1315. #define CAN_TI1R_EXID_Msk (0x3FFFFU << CAN_TI1R_EXID_Pos) /*!< 0x001FFFF8 */
  1316. #define CAN_TI1R_EXID CAN_TI1R_EXID_Msk /*!<Extended Identifier */
  1317. #define CAN_TI1R_STID_Pos (21U)
  1318. #define CAN_TI1R_STID_Msk (0x7FFU << CAN_TI1R_STID_Pos) /*!< 0xFFE00000 */
  1319. #define CAN_TI1R_STID CAN_TI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1320. /******************* Bit definition for CAN_TDT1R register ******************/
  1321. #define CAN_TDT1R_DLC_Pos (0U)
  1322. #define CAN_TDT1R_DLC_Msk (0xFU << CAN_TDT1R_DLC_Pos) /*!< 0x0000000F */
  1323. #define CAN_TDT1R_DLC CAN_TDT1R_DLC_Msk /*!<Data Length Code */
  1324. #define CAN_TDT1R_TGT_Pos (8U)
  1325. #define CAN_TDT1R_TGT_Msk (0x1U << CAN_TDT1R_TGT_Pos) /*!< 0x00000100 */
  1326. #define CAN_TDT1R_TGT CAN_TDT1R_TGT_Msk /*!<Transmit Global Time */
  1327. #define CAN_TDT1R_TIME_Pos (16U)
  1328. #define CAN_TDT1R_TIME_Msk (0xFFFFU << CAN_TDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  1329. #define CAN_TDT1R_TIME CAN_TDT1R_TIME_Msk /*!<Message Time Stamp */
  1330. /******************* Bit definition for CAN_TDL1R register ******************/
  1331. #define CAN_TDL1R_DATA0_Pos (0U)
  1332. #define CAN_TDL1R_DATA0_Msk (0xFFU << CAN_TDL1R_DATA0_Pos) /*!< 0x000000FF */
  1333. #define CAN_TDL1R_DATA0 CAN_TDL1R_DATA0_Msk /*!<Data byte 0 */
  1334. #define CAN_TDL1R_DATA1_Pos (8U)
  1335. #define CAN_TDL1R_DATA1_Msk (0xFFU << CAN_TDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  1336. #define CAN_TDL1R_DATA1 CAN_TDL1R_DATA1_Msk /*!<Data byte 1 */
  1337. #define CAN_TDL1R_DATA2_Pos (16U)
  1338. #define CAN_TDL1R_DATA2_Msk (0xFFU << CAN_TDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  1339. #define CAN_TDL1R_DATA2 CAN_TDL1R_DATA2_Msk /*!<Data byte 2 */
  1340. #define CAN_TDL1R_DATA3_Pos (24U)
  1341. #define CAN_TDL1R_DATA3_Msk (0xFFU << CAN_TDL1R_DATA3_Pos) /*!< 0xFF000000 */
  1342. #define CAN_TDL1R_DATA3 CAN_TDL1R_DATA3_Msk /*!<Data byte 3 */
  1343. /******************* Bit definition for CAN_TDH1R register ******************/
  1344. #define CAN_TDH1R_DATA4_Pos (0U)
  1345. #define CAN_TDH1R_DATA4_Msk (0xFFU << CAN_TDH1R_DATA4_Pos) /*!< 0x000000FF */
  1346. #define CAN_TDH1R_DATA4 CAN_TDH1R_DATA4_Msk /*!<Data byte 4 */
  1347. #define CAN_TDH1R_DATA5_Pos (8U)
  1348. #define CAN_TDH1R_DATA5_Msk (0xFFU << CAN_TDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  1349. #define CAN_TDH1R_DATA5 CAN_TDH1R_DATA5_Msk /*!<Data byte 5 */
  1350. #define CAN_TDH1R_DATA6_Pos (16U)
  1351. #define CAN_TDH1R_DATA6_Msk (0xFFU << CAN_TDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  1352. #define CAN_TDH1R_DATA6 CAN_TDH1R_DATA6_Msk /*!<Data byte 6 */
  1353. #define CAN_TDH1R_DATA7_Pos (24U)
  1354. #define CAN_TDH1R_DATA7_Msk (0xFFU << CAN_TDH1R_DATA7_Pos) /*!< 0xFF000000 */
  1355. #define CAN_TDH1R_DATA7 CAN_TDH1R_DATA7_Msk /*!<Data byte 7 */
  1356. /******************* Bit definition for CAN_TI2R register *******************/
  1357. #define CAN_TI2R_TXRQ_Pos (0U)
  1358. #define CAN_TI2R_TXRQ_Msk (0x1U << CAN_TI2R_TXRQ_Pos) /*!< 0x00000001 */
  1359. #define CAN_TI2R_TXRQ CAN_TI2R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1360. #define CAN_TI2R_RTR_Pos (1U)
  1361. #define CAN_TI2R_RTR_Msk (0x1U << CAN_TI2R_RTR_Pos) /*!< 0x00000002 */
  1362. #define CAN_TI2R_RTR CAN_TI2R_RTR_Msk /*!<Remote Transmission Request */
  1363. #define CAN_TI2R_IDE_Pos (2U)
  1364. #define CAN_TI2R_IDE_Msk (0x1U << CAN_TI2R_IDE_Pos) /*!< 0x00000004 */
  1365. #define CAN_TI2R_IDE CAN_TI2R_IDE_Msk /*!<Identifier Extension */
  1366. #define CAN_TI2R_EXID_Pos (3U)
  1367. #define CAN_TI2R_EXID_Msk (0x3FFFFU << CAN_TI2R_EXID_Pos) /*!< 0x001FFFF8 */
  1368. #define CAN_TI2R_EXID CAN_TI2R_EXID_Msk /*!<Extended identifier */
  1369. #define CAN_TI2R_STID_Pos (21U)
  1370. #define CAN_TI2R_STID_Msk (0x7FFU << CAN_TI2R_STID_Pos) /*!< 0xFFE00000 */
  1371. #define CAN_TI2R_STID CAN_TI2R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1372. /******************* Bit definition for CAN_TDT2R register ******************/
  1373. #define CAN_TDT2R_DLC_Pos (0U)
  1374. #define CAN_TDT2R_DLC_Msk (0xFU << CAN_TDT2R_DLC_Pos) /*!< 0x0000000F */
  1375. #define CAN_TDT2R_DLC CAN_TDT2R_DLC_Msk /*!<Data Length Code */
  1376. #define CAN_TDT2R_TGT_Pos (8U)
  1377. #define CAN_TDT2R_TGT_Msk (0x1U << CAN_TDT2R_TGT_Pos) /*!< 0x00000100 */
  1378. #define CAN_TDT2R_TGT CAN_TDT2R_TGT_Msk /*!<Transmit Global Time */
  1379. #define CAN_TDT2R_TIME_Pos (16U)
  1380. #define CAN_TDT2R_TIME_Msk (0xFFFFU << CAN_TDT2R_TIME_Pos) /*!< 0xFFFF0000 */
  1381. #define CAN_TDT2R_TIME CAN_TDT2R_TIME_Msk /*!<Message Time Stamp */
  1382. /******************* Bit definition for CAN_TDL2R register ******************/
  1383. #define CAN_TDL2R_DATA0_Pos (0U)
  1384. #define CAN_TDL2R_DATA0_Msk (0xFFU << CAN_TDL2R_DATA0_Pos) /*!< 0x000000FF */
  1385. #define CAN_TDL2R_DATA0 CAN_TDL2R_DATA0_Msk /*!<Data byte 0 */
  1386. #define CAN_TDL2R_DATA1_Pos (8U)
  1387. #define CAN_TDL2R_DATA1_Msk (0xFFU << CAN_TDL2R_DATA1_Pos) /*!< 0x0000FF00 */
  1388. #define CAN_TDL2R_DATA1 CAN_TDL2R_DATA1_Msk /*!<Data byte 1 */
  1389. #define CAN_TDL2R_DATA2_Pos (16U)
  1390. #define CAN_TDL2R_DATA2_Msk (0xFFU << CAN_TDL2R_DATA2_Pos) /*!< 0x00FF0000 */
  1391. #define CAN_TDL2R_DATA2 CAN_TDL2R_DATA2_Msk /*!<Data byte 2 */
  1392. #define CAN_TDL2R_DATA3_Pos (24U)
  1393. #define CAN_TDL2R_DATA3_Msk (0xFFU << CAN_TDL2R_DATA3_Pos) /*!< 0xFF000000 */
  1394. #define CAN_TDL2R_DATA3 CAN_TDL2R_DATA3_Msk /*!<Data byte 3 */
  1395. /******************* Bit definition for CAN_TDH2R register ******************/
  1396. #define CAN_TDH2R_DATA4_Pos (0U)
  1397. #define CAN_TDH2R_DATA4_Msk (0xFFU << CAN_TDH2R_DATA4_Pos) /*!< 0x000000FF */
  1398. #define CAN_TDH2R_DATA4 CAN_TDH2R_DATA4_Msk /*!<Data byte 4 */
  1399. #define CAN_TDH2R_DATA5_Pos (8U)
  1400. #define CAN_TDH2R_DATA5_Msk (0xFFU << CAN_TDH2R_DATA5_Pos) /*!< 0x0000FF00 */
  1401. #define CAN_TDH2R_DATA5 CAN_TDH2R_DATA5_Msk /*!<Data byte 5 */
  1402. #define CAN_TDH2R_DATA6_Pos (16U)
  1403. #define CAN_TDH2R_DATA6_Msk (0xFFU << CAN_TDH2R_DATA6_Pos) /*!< 0x00FF0000 */
  1404. #define CAN_TDH2R_DATA6 CAN_TDH2R_DATA6_Msk /*!<Data byte 6 */
  1405. #define CAN_TDH2R_DATA7_Pos (24U)
  1406. #define CAN_TDH2R_DATA7_Msk (0xFFU << CAN_TDH2R_DATA7_Pos) /*!< 0xFF000000 */
  1407. #define CAN_TDH2R_DATA7 CAN_TDH2R_DATA7_Msk /*!<Data byte 7 */
  1408. /******************* Bit definition for CAN_RI0R register *******************/
  1409. #define CAN_RI0R_RTR_Pos (1U)
  1410. #define CAN_RI0R_RTR_Msk (0x1U << CAN_RI0R_RTR_Pos) /*!< 0x00000002 */
  1411. #define CAN_RI0R_RTR CAN_RI0R_RTR_Msk /*!<Remote Transmission Request */
  1412. #define CAN_RI0R_IDE_Pos (2U)
  1413. #define CAN_RI0R_IDE_Msk (0x1U << CAN_RI0R_IDE_Pos) /*!< 0x00000004 */
  1414. #define CAN_RI0R_IDE CAN_RI0R_IDE_Msk /*!<Identifier Extension */
  1415. #define CAN_RI0R_EXID_Pos (3U)
  1416. #define CAN_RI0R_EXID_Msk (0x3FFFFU << CAN_RI0R_EXID_Pos) /*!< 0x001FFFF8 */
  1417. #define CAN_RI0R_EXID CAN_RI0R_EXID_Msk /*!<Extended Identifier */
  1418. #define CAN_RI0R_STID_Pos (21U)
  1419. #define CAN_RI0R_STID_Msk (0x7FFU << CAN_RI0R_STID_Pos) /*!< 0xFFE00000 */
  1420. #define CAN_RI0R_STID CAN_RI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1421. /******************* Bit definition for CAN_RDT0R register ******************/
  1422. #define CAN_RDT0R_DLC_Pos (0U)
  1423. #define CAN_RDT0R_DLC_Msk (0xFU << CAN_RDT0R_DLC_Pos) /*!< 0x0000000F */
  1424. #define CAN_RDT0R_DLC CAN_RDT0R_DLC_Msk /*!<Data Length Code */
  1425. #define CAN_RDT0R_FMI_Pos (8U)
  1426. #define CAN_RDT0R_FMI_Msk (0xFFU << CAN_RDT0R_FMI_Pos) /*!< 0x0000FF00 */
  1427. #define CAN_RDT0R_FMI CAN_RDT0R_FMI_Msk /*!<Filter Match Index */
  1428. #define CAN_RDT0R_TIME_Pos (16U)
  1429. #define CAN_RDT0R_TIME_Msk (0xFFFFU << CAN_RDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  1430. #define CAN_RDT0R_TIME CAN_RDT0R_TIME_Msk /*!<Message Time Stamp */
  1431. /******************* Bit definition for CAN_RDL0R register ******************/
  1432. #define CAN_RDL0R_DATA0_Pos (0U)
  1433. #define CAN_RDL0R_DATA0_Msk (0xFFU << CAN_RDL0R_DATA0_Pos) /*!< 0x000000FF */
  1434. #define CAN_RDL0R_DATA0 CAN_RDL0R_DATA0_Msk /*!<Data byte 0 */
  1435. #define CAN_RDL0R_DATA1_Pos (8U)
  1436. #define CAN_RDL0R_DATA1_Msk (0xFFU << CAN_RDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  1437. #define CAN_RDL0R_DATA1 CAN_RDL0R_DATA1_Msk /*!<Data byte 1 */
  1438. #define CAN_RDL0R_DATA2_Pos (16U)
  1439. #define CAN_RDL0R_DATA2_Msk (0xFFU << CAN_RDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  1440. #define CAN_RDL0R_DATA2 CAN_RDL0R_DATA2_Msk /*!<Data byte 2 */
  1441. #define CAN_RDL0R_DATA3_Pos (24U)
  1442. #define CAN_RDL0R_DATA3_Msk (0xFFU << CAN_RDL0R_DATA3_Pos) /*!< 0xFF000000 */
  1443. #define CAN_RDL0R_DATA3 CAN_RDL0R_DATA3_Msk /*!<Data byte 3 */
  1444. /******************* Bit definition for CAN_RDH0R register ******************/
  1445. #define CAN_RDH0R_DATA4_Pos (0U)
  1446. #define CAN_RDH0R_DATA4_Msk (0xFFU << CAN_RDH0R_DATA4_Pos) /*!< 0x000000FF */
  1447. #define CAN_RDH0R_DATA4 CAN_RDH0R_DATA4_Msk /*!<Data byte 4 */
  1448. #define CAN_RDH0R_DATA5_Pos (8U)
  1449. #define CAN_RDH0R_DATA5_Msk (0xFFU << CAN_RDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  1450. #define CAN_RDH0R_DATA5 CAN_RDH0R_DATA5_Msk /*!<Data byte 5 */
  1451. #define CAN_RDH0R_DATA6_Pos (16U)
  1452. #define CAN_RDH0R_DATA6_Msk (0xFFU << CAN_RDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  1453. #define CAN_RDH0R_DATA6 CAN_RDH0R_DATA6_Msk /*!<Data byte 6 */
  1454. #define CAN_RDH0R_DATA7_Pos (24U)
  1455. #define CAN_RDH0R_DATA7_Msk (0xFFU << CAN_RDH0R_DATA7_Pos) /*!< 0xFF000000 */
  1456. #define CAN_RDH0R_DATA7 CAN_RDH0R_DATA7_Msk /*!<Data byte 7 */
  1457. /******************* Bit definition for CAN_RI1R register *******************/
  1458. #define CAN_RI1R_RTR_Pos (1U)
  1459. #define CAN_RI1R_RTR_Msk (0x1U << CAN_RI1R_RTR_Pos) /*!< 0x00000002 */
  1460. #define CAN_RI1R_RTR CAN_RI1R_RTR_Msk /*!<Remote Transmission Request */
  1461. #define CAN_RI1R_IDE_Pos (2U)
  1462. #define CAN_RI1R_IDE_Msk (0x1U << CAN_RI1R_IDE_Pos) /*!< 0x00000004 */
  1463. #define CAN_RI1R_IDE CAN_RI1R_IDE_Msk /*!<Identifier Extension */
  1464. #define CAN_RI1R_EXID_Pos (3U)
  1465. #define CAN_RI1R_EXID_Msk (0x3FFFFU << CAN_RI1R_EXID_Pos) /*!< 0x001FFFF8 */
  1466. #define CAN_RI1R_EXID CAN_RI1R_EXID_Msk /*!<Extended identifier */
  1467. #define CAN_RI1R_STID_Pos (21U)
  1468. #define CAN_RI1R_STID_Msk (0x7FFU << CAN_RI1R_STID_Pos) /*!< 0xFFE00000 */
  1469. #define CAN_RI1R_STID CAN_RI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1470. /******************* Bit definition for CAN_RDT1R register ******************/
  1471. #define CAN_RDT1R_DLC_Pos (0U)
  1472. #define CAN_RDT1R_DLC_Msk (0xFU << CAN_RDT1R_DLC_Pos) /*!< 0x0000000F */
  1473. #define CAN_RDT1R_DLC CAN_RDT1R_DLC_Msk /*!<Data Length Code */
  1474. #define CAN_RDT1R_FMI_Pos (8U)
  1475. #define CAN_RDT1R_FMI_Msk (0xFFU << CAN_RDT1R_FMI_Pos) /*!< 0x0000FF00 */
  1476. #define CAN_RDT1R_FMI CAN_RDT1R_FMI_Msk /*!<Filter Match Index */
  1477. #define CAN_RDT1R_TIME_Pos (16U)
  1478. #define CAN_RDT1R_TIME_Msk (0xFFFFU << CAN_RDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  1479. #define CAN_RDT1R_TIME CAN_RDT1R_TIME_Msk /*!<Message Time Stamp */
  1480. /******************* Bit definition for CAN_RDL1R register ******************/
  1481. #define CAN_RDL1R_DATA0_Pos (0U)
  1482. #define CAN_RDL1R_DATA0_Msk (0xFFU << CAN_RDL1R_DATA0_Pos) /*!< 0x000000FF */
  1483. #define CAN_RDL1R_DATA0 CAN_RDL1R_DATA0_Msk /*!<Data byte 0 */
  1484. #define CAN_RDL1R_DATA1_Pos (8U)
  1485. #define CAN_RDL1R_DATA1_Msk (0xFFU << CAN_RDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  1486. #define CAN_RDL1R_DATA1 CAN_RDL1R_DATA1_Msk /*!<Data byte 1 */
  1487. #define CAN_RDL1R_DATA2_Pos (16U)
  1488. #define CAN_RDL1R_DATA2_Msk (0xFFU << CAN_RDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  1489. #define CAN_RDL1R_DATA2 CAN_RDL1R_DATA2_Msk /*!<Data byte 2 */
  1490. #define CAN_RDL1R_DATA3_Pos (24U)
  1491. #define CAN_RDL1R_DATA3_Msk (0xFFU << CAN_RDL1R_DATA3_Pos) /*!< 0xFF000000 */
  1492. #define CAN_RDL1R_DATA3 CAN_RDL1R_DATA3_Msk /*!<Data byte 3 */
  1493. /******************* Bit definition for CAN_RDH1R register ******************/
  1494. #define CAN_RDH1R_DATA4_Pos (0U)
  1495. #define CAN_RDH1R_DATA4_Msk (0xFFU << CAN_RDH1R_DATA4_Pos) /*!< 0x000000FF */
  1496. #define CAN_RDH1R_DATA4 CAN_RDH1R_DATA4_Msk /*!<Data byte 4 */
  1497. #define CAN_RDH1R_DATA5_Pos (8U)
  1498. #define CAN_RDH1R_DATA5_Msk (0xFFU << CAN_RDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  1499. #define CAN_RDH1R_DATA5 CAN_RDH1R_DATA5_Msk /*!<Data byte 5 */
  1500. #define CAN_RDH1R_DATA6_Pos (16U)
  1501. #define CAN_RDH1R_DATA6_Msk (0xFFU << CAN_RDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  1502. #define CAN_RDH1R_DATA6 CAN_RDH1R_DATA6_Msk /*!<Data byte 6 */
  1503. #define CAN_RDH1R_DATA7_Pos (24U)
  1504. #define CAN_RDH1R_DATA7_Msk (0xFFU << CAN_RDH1R_DATA7_Pos) /*!< 0xFF000000 */
  1505. #define CAN_RDH1R_DATA7 CAN_RDH1R_DATA7_Msk /*!<Data byte 7 */
  1506. /*!<CAN filter registers */
  1507. /******************* Bit definition for CAN_FMR register ********************/
  1508. #define CAN_FMR_FINIT_Pos (0U)
  1509. #define CAN_FMR_FINIT_Msk (0x1U << CAN_FMR_FINIT_Pos) /*!< 0x00000001 */
  1510. #define CAN_FMR_FINIT CAN_FMR_FINIT_Msk /*!<Filter Init Mode */
  1511. #define CAN_FMR_CAN2SB_Pos (8U)
  1512. #define CAN_FMR_CAN2SB_Msk (0x3FU << CAN_FMR_CAN2SB_Pos) /*!< 0x00003F00 */
  1513. #define CAN_FMR_CAN2SB CAN_FMR_CAN2SB_Msk /*!<CAN2 start bank */
  1514. /******************* Bit definition for CAN_FM1R register *******************/
  1515. #define CAN_FM1R_FBM_Pos (0U)
  1516. #define CAN_FM1R_FBM_Msk (0xFFFFFFFU << CAN_FM1R_FBM_Pos) /*!< 0x0FFFFFFF */
  1517. #define CAN_FM1R_FBM CAN_FM1R_FBM_Msk /*!<Filter Mode */
  1518. #define CAN_FM1R_FBM0_Pos (0U)
  1519. #define CAN_FM1R_FBM0_Msk (0x1U << CAN_FM1R_FBM0_Pos) /*!< 0x00000001 */
  1520. #define CAN_FM1R_FBM0 CAN_FM1R_FBM0_Msk /*!<Filter Init Mode bit 0 */
  1521. #define CAN_FM1R_FBM1_Pos (1U)
  1522. #define CAN_FM1R_FBM1_Msk (0x1U << CAN_FM1R_FBM1_Pos) /*!< 0x00000002 */
  1523. #define CAN_FM1R_FBM1 CAN_FM1R_FBM1_Msk /*!<Filter Init Mode bit 1 */
  1524. #define CAN_FM1R_FBM2_Pos (2U)
  1525. #define CAN_FM1R_FBM2_Msk (0x1U << CAN_FM1R_FBM2_Pos) /*!< 0x00000004 */
  1526. #define CAN_FM1R_FBM2 CAN_FM1R_FBM2_Msk /*!<Filter Init Mode bit 2 */
  1527. #define CAN_FM1R_FBM3_Pos (3U)
  1528. #define CAN_FM1R_FBM3_Msk (0x1U << CAN_FM1R_FBM3_Pos) /*!< 0x00000008 */
  1529. #define CAN_FM1R_FBM3 CAN_FM1R_FBM3_Msk /*!<Filter Init Mode bit 3 */
  1530. #define CAN_FM1R_FBM4_Pos (4U)
  1531. #define CAN_FM1R_FBM4_Msk (0x1U << CAN_FM1R_FBM4_Pos) /*!< 0x00000010 */
  1532. #define CAN_FM1R_FBM4 CAN_FM1R_FBM4_Msk /*!<Filter Init Mode bit 4 */
  1533. #define CAN_FM1R_FBM5_Pos (5U)
  1534. #define CAN_FM1R_FBM5_Msk (0x1U << CAN_FM1R_FBM5_Pos) /*!< 0x00000020 */
  1535. #define CAN_FM1R_FBM5 CAN_FM1R_FBM5_Msk /*!<Filter Init Mode bit 5 */
  1536. #define CAN_FM1R_FBM6_Pos (6U)
  1537. #define CAN_FM1R_FBM6_Msk (0x1U << CAN_FM1R_FBM6_Pos) /*!< 0x00000040 */
  1538. #define CAN_FM1R_FBM6 CAN_FM1R_FBM6_Msk /*!<Filter Init Mode bit 6 */
  1539. #define CAN_FM1R_FBM7_Pos (7U)
  1540. #define CAN_FM1R_FBM7_Msk (0x1U << CAN_FM1R_FBM7_Pos) /*!< 0x00000080 */
  1541. #define CAN_FM1R_FBM7 CAN_FM1R_FBM7_Msk /*!<Filter Init Mode bit 7 */
  1542. #define CAN_FM1R_FBM8_Pos (8U)
  1543. #define CAN_FM1R_FBM8_Msk (0x1U << CAN_FM1R_FBM8_Pos) /*!< 0x00000100 */
  1544. #define CAN_FM1R_FBM8 CAN_FM1R_FBM8_Msk /*!<Filter Init Mode bit 8 */
  1545. #define CAN_FM1R_FBM9_Pos (9U)
  1546. #define CAN_FM1R_FBM9_Msk (0x1U << CAN_FM1R_FBM9_Pos) /*!< 0x00000200 */
  1547. #define CAN_FM1R_FBM9 CAN_FM1R_FBM9_Msk /*!<Filter Init Mode bit 9 */
  1548. #define CAN_FM1R_FBM10_Pos (10U)
  1549. #define CAN_FM1R_FBM10_Msk (0x1U << CAN_FM1R_FBM10_Pos) /*!< 0x00000400 */
  1550. #define CAN_FM1R_FBM10 CAN_FM1R_FBM10_Msk /*!<Filter Init Mode bit 10 */
  1551. #define CAN_FM1R_FBM11_Pos (11U)
  1552. #define CAN_FM1R_FBM11_Msk (0x1U << CAN_FM1R_FBM11_Pos) /*!< 0x00000800 */
  1553. #define CAN_FM1R_FBM11 CAN_FM1R_FBM11_Msk /*!<Filter Init Mode bit 11 */
  1554. #define CAN_FM1R_FBM12_Pos (12U)
  1555. #define CAN_FM1R_FBM12_Msk (0x1U << CAN_FM1R_FBM12_Pos) /*!< 0x00001000 */
  1556. #define CAN_FM1R_FBM12 CAN_FM1R_FBM12_Msk /*!<Filter Init Mode bit 12 */
  1557. #define CAN_FM1R_FBM13_Pos (13U)
  1558. #define CAN_FM1R_FBM13_Msk (0x1U << CAN_FM1R_FBM13_Pos) /*!< 0x00002000 */
  1559. #define CAN_FM1R_FBM13 CAN_FM1R_FBM13_Msk /*!<Filter Init Mode bit 13 */
  1560. #define CAN_FM1R_FBM14_Pos (14U)
  1561. #define CAN_FM1R_FBM14_Msk (0x1U << CAN_FM1R_FBM14_Pos) /*!< 0x00004000 */
  1562. #define CAN_FM1R_FBM14 CAN_FM1R_FBM14_Msk /*!<Filter Init Mode bit 14 */
  1563. #define CAN_FM1R_FBM15_Pos (15U)
  1564. #define CAN_FM1R_FBM15_Msk (0x1U << CAN_FM1R_FBM15_Pos) /*!< 0x00008000 */
  1565. #define CAN_FM1R_FBM15 CAN_FM1R_FBM15_Msk /*!<Filter Init Mode bit 15 */
  1566. #define CAN_FM1R_FBM16_Pos (16U)
  1567. #define CAN_FM1R_FBM16_Msk (0x1U << CAN_FM1R_FBM16_Pos) /*!< 0x00010000 */
  1568. #define CAN_FM1R_FBM16 CAN_FM1R_FBM16_Msk /*!<Filter Init Mode bit 16 */
  1569. #define CAN_FM1R_FBM17_Pos (17U)
  1570. #define CAN_FM1R_FBM17_Msk (0x1U << CAN_FM1R_FBM17_Pos) /*!< 0x00020000 */
  1571. #define CAN_FM1R_FBM17 CAN_FM1R_FBM17_Msk /*!<Filter Init Mode bit 17 */
  1572. #define CAN_FM1R_FBM18_Pos (18U)
  1573. #define CAN_FM1R_FBM18_Msk (0x1U << CAN_FM1R_FBM18_Pos) /*!< 0x00040000 */
  1574. #define CAN_FM1R_FBM18 CAN_FM1R_FBM18_Msk /*!<Filter Init Mode bit 18 */
  1575. #define CAN_FM1R_FBM19_Pos (19U)
  1576. #define CAN_FM1R_FBM19_Msk (0x1U << CAN_FM1R_FBM19_Pos) /*!< 0x00080000 */
  1577. #define CAN_FM1R_FBM19 CAN_FM1R_FBM19_Msk /*!<Filter Init Mode bit 19 */
  1578. #define CAN_FM1R_FBM20_Pos (20U)
  1579. #define CAN_FM1R_FBM20_Msk (0x1U << CAN_FM1R_FBM20_Pos) /*!< 0x00100000 */
  1580. #define CAN_FM1R_FBM20 CAN_FM1R_FBM20_Msk /*!<Filter Init Mode bit 20 */
  1581. #define CAN_FM1R_FBM21_Pos (21U)
  1582. #define CAN_FM1R_FBM21_Msk (0x1U << CAN_FM1R_FBM21_Pos) /*!< 0x00200000 */
  1583. #define CAN_FM1R_FBM21 CAN_FM1R_FBM21_Msk /*!<Filter Init Mode bit 21 */
  1584. #define CAN_FM1R_FBM22_Pos (22U)
  1585. #define CAN_FM1R_FBM22_Msk (0x1U << CAN_FM1R_FBM22_Pos) /*!< 0x00400000 */
  1586. #define CAN_FM1R_FBM22 CAN_FM1R_FBM22_Msk /*!<Filter Init Mode bit 22 */
  1587. #define CAN_FM1R_FBM23_Pos (23U)
  1588. #define CAN_FM1R_FBM23_Msk (0x1U << CAN_FM1R_FBM23_Pos) /*!< 0x00800000 */
  1589. #define CAN_FM1R_FBM23 CAN_FM1R_FBM23_Msk /*!<Filter Init Mode bit 23 */
  1590. #define CAN_FM1R_FBM24_Pos (24U)
  1591. #define CAN_FM1R_FBM24_Msk (0x1U << CAN_FM1R_FBM24_Pos) /*!< 0x01000000 */
  1592. #define CAN_FM1R_FBM24 CAN_FM1R_FBM24_Msk /*!<Filter Init Mode bit 24 */
  1593. #define CAN_FM1R_FBM25_Pos (25U)
  1594. #define CAN_FM1R_FBM25_Msk (0x1U << CAN_FM1R_FBM25_Pos) /*!< 0x02000000 */
  1595. #define CAN_FM1R_FBM25 CAN_FM1R_FBM25_Msk /*!<Filter Init Mode bit 25 */
  1596. #define CAN_FM1R_FBM26_Pos (26U)
  1597. #define CAN_FM1R_FBM26_Msk (0x1U << CAN_FM1R_FBM26_Pos) /*!< 0x04000000 */
  1598. #define CAN_FM1R_FBM26 CAN_FM1R_FBM26_Msk /*!<Filter Init Mode bit 26 */
  1599. #define CAN_FM1R_FBM27_Pos (27U)
  1600. #define CAN_FM1R_FBM27_Msk (0x1U << CAN_FM1R_FBM27_Pos) /*!< 0x08000000 */
  1601. #define CAN_FM1R_FBM27 CAN_FM1R_FBM27_Msk /*!<Filter Init Mode bit 27 */
  1602. /******************* Bit definition for CAN_FS1R register *******************/
  1603. #define CAN_FS1R_FSC_Pos (0U)
  1604. #define CAN_FS1R_FSC_Msk (0xFFFFFFFU << CAN_FS1R_FSC_Pos) /*!< 0x0FFFFFFF */
  1605. #define CAN_FS1R_FSC CAN_FS1R_FSC_Msk /*!<Filter Scale Configuration */
  1606. #define CAN_FS1R_FSC0_Pos (0U)
  1607. #define CAN_FS1R_FSC0_Msk (0x1U << CAN_FS1R_FSC0_Pos) /*!< 0x00000001 */
  1608. #define CAN_FS1R_FSC0 CAN_FS1R_FSC0_Msk /*!<Filter Scale Configuration bit 0 */
  1609. #define CAN_FS1R_FSC1_Pos (1U)
  1610. #define CAN_FS1R_FSC1_Msk (0x1U << CAN_FS1R_FSC1_Pos) /*!< 0x00000002 */
  1611. #define CAN_FS1R_FSC1 CAN_FS1R_FSC1_Msk /*!<Filter Scale Configuration bit 1 */
  1612. #define CAN_FS1R_FSC2_Pos (2U)
  1613. #define CAN_FS1R_FSC2_Msk (0x1U << CAN_FS1R_FSC2_Pos) /*!< 0x00000004 */
  1614. #define CAN_FS1R_FSC2 CAN_FS1R_FSC2_Msk /*!<Filter Scale Configuration bit 2 */
  1615. #define CAN_FS1R_FSC3_Pos (3U)
  1616. #define CAN_FS1R_FSC3_Msk (0x1U << CAN_FS1R_FSC3_Pos) /*!< 0x00000008 */
  1617. #define CAN_FS1R_FSC3 CAN_FS1R_FSC3_Msk /*!<Filter Scale Configuration bit 3 */
  1618. #define CAN_FS1R_FSC4_Pos (4U)
  1619. #define CAN_FS1R_FSC4_Msk (0x1U << CAN_FS1R_FSC4_Pos) /*!< 0x00000010 */
  1620. #define CAN_FS1R_FSC4 CAN_FS1R_FSC4_Msk /*!<Filter Scale Configuration bit 4 */
  1621. #define CAN_FS1R_FSC5_Pos (5U)
  1622. #define CAN_FS1R_FSC5_Msk (0x1U << CAN_FS1R_FSC5_Pos) /*!< 0x00000020 */
  1623. #define CAN_FS1R_FSC5 CAN_FS1R_FSC5_Msk /*!<Filter Scale Configuration bit 5 */
  1624. #define CAN_FS1R_FSC6_Pos (6U)
  1625. #define CAN_FS1R_FSC6_Msk (0x1U << CAN_FS1R_FSC6_Pos) /*!< 0x00000040 */
  1626. #define CAN_FS1R_FSC6 CAN_FS1R_FSC6_Msk /*!<Filter Scale Configuration bit 6 */
  1627. #define CAN_FS1R_FSC7_Pos (7U)
  1628. #define CAN_FS1R_FSC7_Msk (0x1U << CAN_FS1R_FSC7_Pos) /*!< 0x00000080 */
  1629. #define CAN_FS1R_FSC7 CAN_FS1R_FSC7_Msk /*!<Filter Scale Configuration bit 7 */
  1630. #define CAN_FS1R_FSC8_Pos (8U)
  1631. #define CAN_FS1R_FSC8_Msk (0x1U << CAN_FS1R_FSC8_Pos) /*!< 0x00000100 */
  1632. #define CAN_FS1R_FSC8 CAN_FS1R_FSC8_Msk /*!<Filter Scale Configuration bit 8 */
  1633. #define CAN_FS1R_FSC9_Pos (9U)
  1634. #define CAN_FS1R_FSC9_Msk (0x1U << CAN_FS1R_FSC9_Pos) /*!< 0x00000200 */
  1635. #define CAN_FS1R_FSC9 CAN_FS1R_FSC9_Msk /*!<Filter Scale Configuration bit 9 */
  1636. #define CAN_FS1R_FSC10_Pos (10U)
  1637. #define CAN_FS1R_FSC10_Msk (0x1U << CAN_FS1R_FSC10_Pos) /*!< 0x00000400 */
  1638. #define CAN_FS1R_FSC10 CAN_FS1R_FSC10_Msk /*!<Filter Scale Configuration bit 10 */
  1639. #define CAN_FS1R_FSC11_Pos (11U)
  1640. #define CAN_FS1R_FSC11_Msk (0x1U << CAN_FS1R_FSC11_Pos) /*!< 0x00000800 */
  1641. #define CAN_FS1R_FSC11 CAN_FS1R_FSC11_Msk /*!<Filter Scale Configuration bit 11 */
  1642. #define CAN_FS1R_FSC12_Pos (12U)
  1643. #define CAN_FS1R_FSC12_Msk (0x1U << CAN_FS1R_FSC12_Pos) /*!< 0x00001000 */
  1644. #define CAN_FS1R_FSC12 CAN_FS1R_FSC12_Msk /*!<Filter Scale Configuration bit 12 */
  1645. #define CAN_FS1R_FSC13_Pos (13U)
  1646. #define CAN_FS1R_FSC13_Msk (0x1U << CAN_FS1R_FSC13_Pos) /*!< 0x00002000 */
  1647. #define CAN_FS1R_FSC13 CAN_FS1R_FSC13_Msk /*!<Filter Scale Configuration bit 13 */
  1648. #define CAN_FS1R_FSC14_Pos (14U)
  1649. #define CAN_FS1R_FSC14_Msk (0x1U << CAN_FS1R_FSC14_Pos) /*!< 0x00004000 */
  1650. #define CAN_FS1R_FSC14 CAN_FS1R_FSC14_Msk /*!<Filter Scale Configuration bit 14 */
  1651. #define CAN_FS1R_FSC15_Pos (15U)
  1652. #define CAN_FS1R_FSC15_Msk (0x1U << CAN_FS1R_FSC15_Pos) /*!< 0x00008000 */
  1653. #define CAN_FS1R_FSC15 CAN_FS1R_FSC15_Msk /*!<Filter Scale Configuration bit 15 */
  1654. #define CAN_FS1R_FSC16_Pos (16U)
  1655. #define CAN_FS1R_FSC16_Msk (0x1U << CAN_FS1R_FSC16_Pos) /*!< 0x00010000 */
  1656. #define CAN_FS1R_FSC16 CAN_FS1R_FSC16_Msk /*!<Filter Scale Configuration bit 16 */
  1657. #define CAN_FS1R_FSC17_Pos (17U)
  1658. #define CAN_FS1R_FSC17_Msk (0x1U << CAN_FS1R_FSC17_Pos) /*!< 0x00020000 */
  1659. #define CAN_FS1R_FSC17 CAN_FS1R_FSC17_Msk /*!<Filter Scale Configuration bit 17 */
  1660. #define CAN_FS1R_FSC18_Pos (18U)
  1661. #define CAN_FS1R_FSC18_Msk (0x1U << CAN_FS1R_FSC18_Pos) /*!< 0x00040000 */
  1662. #define CAN_FS1R_FSC18 CAN_FS1R_FSC18_Msk /*!<Filter Scale Configuration bit 18 */
  1663. #define CAN_FS1R_FSC19_Pos (19U)
  1664. #define CAN_FS1R_FSC19_Msk (0x1U << CAN_FS1R_FSC19_Pos) /*!< 0x00080000 */
  1665. #define CAN_FS1R_FSC19 CAN_FS1R_FSC19_Msk /*!<Filter Scale Configuration bit 19 */
  1666. #define CAN_FS1R_FSC20_Pos (20U)
  1667. #define CAN_FS1R_FSC20_Msk (0x1U << CAN_FS1R_FSC20_Pos) /*!< 0x00100000 */
  1668. #define CAN_FS1R_FSC20 CAN_FS1R_FSC20_Msk /*!<Filter Scale Configuration bit 20 */
  1669. #define CAN_FS1R_FSC21_Pos (21U)
  1670. #define CAN_FS1R_FSC21_Msk (0x1U << CAN_FS1R_FSC21_Pos) /*!< 0x00200000 */
  1671. #define CAN_FS1R_FSC21 CAN_FS1R_FSC21_Msk /*!<Filter Scale Configuration bit 21 */
  1672. #define CAN_FS1R_FSC22_Pos (22U)
  1673. #define CAN_FS1R_FSC22_Msk (0x1U << CAN_FS1R_FSC22_Pos) /*!< 0x00400000 */
  1674. #define CAN_FS1R_FSC22 CAN_FS1R_FSC22_Msk /*!<Filter Scale Configuration bit 22 */
  1675. #define CAN_FS1R_FSC23_Pos (23U)
  1676. #define CAN_FS1R_FSC23_Msk (0x1U << CAN_FS1R_FSC23_Pos) /*!< 0x00800000 */
  1677. #define CAN_FS1R_FSC23 CAN_FS1R_FSC23_Msk /*!<Filter Scale Configuration bit 23 */
  1678. #define CAN_FS1R_FSC24_Pos (24U)
  1679. #define CAN_FS1R_FSC24_Msk (0x1U << CAN_FS1R_FSC24_Pos) /*!< 0x01000000 */
  1680. #define CAN_FS1R_FSC24 CAN_FS1R_FSC24_Msk /*!<Filter Scale Configuration bit 24 */
  1681. #define CAN_FS1R_FSC25_Pos (25U)
  1682. #define CAN_FS1R_FSC25_Msk (0x1U << CAN_FS1R_FSC25_Pos) /*!< 0x02000000 */
  1683. #define CAN_FS1R_FSC25 CAN_FS1R_FSC25_Msk /*!<Filter Scale Configuration bit 25 */
  1684. #define CAN_FS1R_FSC26_Pos (26U)
  1685. #define CAN_FS1R_FSC26_Msk (0x1U << CAN_FS1R_FSC26_Pos) /*!< 0x04000000 */
  1686. #define CAN_FS1R_FSC26 CAN_FS1R_FSC26_Msk /*!<Filter Scale Configuration bit 26 */
  1687. #define CAN_FS1R_FSC27_Pos (27U)
  1688. #define CAN_FS1R_FSC27_Msk (0x1U << CAN_FS1R_FSC27_Pos) /*!< 0x08000000 */
  1689. #define CAN_FS1R_FSC27 CAN_FS1R_FSC27_Msk /*!<Filter Scale Configuration bit 27 */
  1690. /****************** Bit definition for CAN_FFA1R register *******************/
  1691. #define CAN_FFA1R_FFA_Pos (0U)
  1692. #define CAN_FFA1R_FFA_Msk (0xFFFFFFFU << CAN_FFA1R_FFA_Pos) /*!< 0x0FFFFFFF */
  1693. #define CAN_FFA1R_FFA CAN_FFA1R_FFA_Msk /*!<Filter FIFO Assignment */
  1694. #define CAN_FFA1R_FFA0_Pos (0U)
  1695. #define CAN_FFA1R_FFA0_Msk (0x1U << CAN_FFA1R_FFA0_Pos) /*!< 0x00000001 */
  1696. #define CAN_FFA1R_FFA0 CAN_FFA1R_FFA0_Msk /*!<Filter FIFO Assignment bit 0 */
  1697. #define CAN_FFA1R_FFA1_Pos (1U)
  1698. #define CAN_FFA1R_FFA1_Msk (0x1U << CAN_FFA1R_FFA1_Pos) /*!< 0x00000002 */
  1699. #define CAN_FFA1R_FFA1 CAN_FFA1R_FFA1_Msk /*!<Filter FIFO Assignment bit 1 */
  1700. #define CAN_FFA1R_FFA2_Pos (2U)
  1701. #define CAN_FFA1R_FFA2_Msk (0x1U << CAN_FFA1R_FFA2_Pos) /*!< 0x00000004 */
  1702. #define CAN_FFA1R_FFA2 CAN_FFA1R_FFA2_Msk /*!<Filter FIFO Assignment bit 2 */
  1703. #define CAN_FFA1R_FFA3_Pos (3U)
  1704. #define CAN_FFA1R_FFA3_Msk (0x1U << CAN_FFA1R_FFA3_Pos) /*!< 0x00000008 */
  1705. #define CAN_FFA1R_FFA3 CAN_FFA1R_FFA3_Msk /*!<Filter FIFO Assignment bit 3 */
  1706. #define CAN_FFA1R_FFA4_Pos (4U)
  1707. #define CAN_FFA1R_FFA4_Msk (0x1U << CAN_FFA1R_FFA4_Pos) /*!< 0x00000010 */
  1708. #define CAN_FFA1R_FFA4 CAN_FFA1R_FFA4_Msk /*!<Filter FIFO Assignment bit 4 */
  1709. #define CAN_FFA1R_FFA5_Pos (5U)
  1710. #define CAN_FFA1R_FFA5_Msk (0x1U << CAN_FFA1R_FFA5_Pos) /*!< 0x00000020 */
  1711. #define CAN_FFA1R_FFA5 CAN_FFA1R_FFA5_Msk /*!<Filter FIFO Assignment bit 5 */
  1712. #define CAN_FFA1R_FFA6_Pos (6U)
  1713. #define CAN_FFA1R_FFA6_Msk (0x1U << CAN_FFA1R_FFA6_Pos) /*!< 0x00000040 */
  1714. #define CAN_FFA1R_FFA6 CAN_FFA1R_FFA6_Msk /*!<Filter FIFO Assignment bit 6 */
  1715. #define CAN_FFA1R_FFA7_Pos (7U)
  1716. #define CAN_FFA1R_FFA7_Msk (0x1U << CAN_FFA1R_FFA7_Pos) /*!< 0x00000080 */
  1717. #define CAN_FFA1R_FFA7 CAN_FFA1R_FFA7_Msk /*!<Filter FIFO Assignment bit 7 */
  1718. #define CAN_FFA1R_FFA8_Pos (8U)
  1719. #define CAN_FFA1R_FFA8_Msk (0x1U << CAN_FFA1R_FFA8_Pos) /*!< 0x00000100 */
  1720. #define CAN_FFA1R_FFA8 CAN_FFA1R_FFA8_Msk /*!<Filter FIFO Assignment bit 8 */
  1721. #define CAN_FFA1R_FFA9_Pos (9U)
  1722. #define CAN_FFA1R_FFA9_Msk (0x1U << CAN_FFA1R_FFA9_Pos) /*!< 0x00000200 */
  1723. #define CAN_FFA1R_FFA9 CAN_FFA1R_FFA9_Msk /*!<Filter FIFO Assignment bit 9 */
  1724. #define CAN_FFA1R_FFA10_Pos (10U)
  1725. #define CAN_FFA1R_FFA10_Msk (0x1U << CAN_FFA1R_FFA10_Pos) /*!< 0x00000400 */
  1726. #define CAN_FFA1R_FFA10 CAN_FFA1R_FFA10_Msk /*!<Filter FIFO Assignment bit 10 */
  1727. #define CAN_FFA1R_FFA11_Pos (11U)
  1728. #define CAN_FFA1R_FFA11_Msk (0x1U << CAN_FFA1R_FFA11_Pos) /*!< 0x00000800 */
  1729. #define CAN_FFA1R_FFA11 CAN_FFA1R_FFA11_Msk /*!<Filter FIFO Assignment bit 11 */
  1730. #define CAN_FFA1R_FFA12_Pos (12U)
  1731. #define CAN_FFA1R_FFA12_Msk (0x1U << CAN_FFA1R_FFA12_Pos) /*!< 0x00001000 */
  1732. #define CAN_FFA1R_FFA12 CAN_FFA1R_FFA12_Msk /*!<Filter FIFO Assignment bit 12 */
  1733. #define CAN_FFA1R_FFA13_Pos (13U)
  1734. #define CAN_FFA1R_FFA13_Msk (0x1U << CAN_FFA1R_FFA13_Pos) /*!< 0x00002000 */
  1735. #define CAN_FFA1R_FFA13 CAN_FFA1R_FFA13_Msk /*!<Filter FIFO Assignment bit 13 */
  1736. #define CAN_FFA1R_FFA14_Pos (14U)
  1737. #define CAN_FFA1R_FFA14_Msk (0x1U << CAN_FFA1R_FFA14_Pos) /*!< 0x00004000 */
  1738. #define CAN_FFA1R_FFA14 CAN_FFA1R_FFA14_Msk /*!<Filter FIFO Assignment bit 14 */
  1739. #define CAN_FFA1R_FFA15_Pos (15U)
  1740. #define CAN_FFA1R_FFA15_Msk (0x1U << CAN_FFA1R_FFA15_Pos) /*!< 0x00008000 */
  1741. #define CAN_FFA1R_FFA15 CAN_FFA1R_FFA15_Msk /*!<Filter FIFO Assignment bit 15 */
  1742. #define CAN_FFA1R_FFA16_Pos (16U)
  1743. #define CAN_FFA1R_FFA16_Msk (0x1U << CAN_FFA1R_FFA16_Pos) /*!< 0x00010000 */
  1744. #define CAN_FFA1R_FFA16 CAN_FFA1R_FFA16_Msk /*!<Filter FIFO Assignment bit 16 */
  1745. #define CAN_FFA1R_FFA17_Pos (17U)
  1746. #define CAN_FFA1R_FFA17_Msk (0x1U << CAN_FFA1R_FFA17_Pos) /*!< 0x00020000 */
  1747. #define CAN_FFA1R_FFA17 CAN_FFA1R_FFA17_Msk /*!<Filter FIFO Assignment bit 17 */
  1748. #define CAN_FFA1R_FFA18_Pos (18U)
  1749. #define CAN_FFA1R_FFA18_Msk (0x1U << CAN_FFA1R_FFA18_Pos) /*!< 0x00040000 */
  1750. #define CAN_FFA1R_FFA18 CAN_FFA1R_FFA18_Msk /*!<Filter FIFO Assignment bit 18 */
  1751. #define CAN_FFA1R_FFA19_Pos (19U)
  1752. #define CAN_FFA1R_FFA19_Msk (0x1U << CAN_FFA1R_FFA19_Pos) /*!< 0x00080000 */
  1753. #define CAN_FFA1R_FFA19 CAN_FFA1R_FFA19_Msk /*!<Filter FIFO Assignment bit 19 */
  1754. #define CAN_FFA1R_FFA20_Pos (20U)
  1755. #define CAN_FFA1R_FFA20_Msk (0x1U << CAN_FFA1R_FFA20_Pos) /*!< 0x00100000 */
  1756. #define CAN_FFA1R_FFA20 CAN_FFA1R_FFA20_Msk /*!<Filter FIFO Assignment bit 20 */
  1757. #define CAN_FFA1R_FFA21_Pos (21U)
  1758. #define CAN_FFA1R_FFA21_Msk (0x1U << CAN_FFA1R_FFA21_Pos) /*!< 0x00200000 */
  1759. #define CAN_FFA1R_FFA21 CAN_FFA1R_FFA21_Msk /*!<Filter FIFO Assignment bit 21 */
  1760. #define CAN_FFA1R_FFA22_Pos (22U)
  1761. #define CAN_FFA1R_FFA22_Msk (0x1U << CAN_FFA1R_FFA22_Pos) /*!< 0x00400000 */
  1762. #define CAN_FFA1R_FFA22 CAN_FFA1R_FFA22_Msk /*!<Filter FIFO Assignment bit 22 */
  1763. #define CAN_FFA1R_FFA23_Pos (23U)
  1764. #define CAN_FFA1R_FFA23_Msk (0x1U << CAN_FFA1R_FFA23_Pos) /*!< 0x00800000 */
  1765. #define CAN_FFA1R_FFA23 CAN_FFA1R_FFA23_Msk /*!<Filter FIFO Assignment bit 23 */
  1766. #define CAN_FFA1R_FFA24_Pos (24U)
  1767. #define CAN_FFA1R_FFA24_Msk (0x1U << CAN_FFA1R_FFA24_Pos) /*!< 0x01000000 */
  1768. #define CAN_FFA1R_FFA24 CAN_FFA1R_FFA24_Msk /*!<Filter FIFO Assignment bit 24 */
  1769. #define CAN_FFA1R_FFA25_Pos (25U)
  1770. #define CAN_FFA1R_FFA25_Msk (0x1U << CAN_FFA1R_FFA25_Pos) /*!< 0x02000000 */
  1771. #define CAN_FFA1R_FFA25 CAN_FFA1R_FFA25_Msk /*!<Filter FIFO Assignment bit 25 */
  1772. #define CAN_FFA1R_FFA26_Pos (26U)
  1773. #define CAN_FFA1R_FFA26_Msk (0x1U << CAN_FFA1R_FFA26_Pos) /*!< 0x04000000 */
  1774. #define CAN_FFA1R_FFA26 CAN_FFA1R_FFA26_Msk /*!<Filter FIFO Assignment bit 26 */
  1775. #define CAN_FFA1R_FFA27_Pos (27U)
  1776. #define CAN_FFA1R_FFA27_Msk (0x1U << CAN_FFA1R_FFA27_Pos) /*!< 0x08000000 */
  1777. #define CAN_FFA1R_FFA27 CAN_FFA1R_FFA27_Msk /*!<Filter FIFO Assignment bit 27 */
  1778. /******************* Bit definition for CAN_FA1R register *******************/
  1779. #define CAN_FA1R_FACT_Pos (0U)
  1780. #define CAN_FA1R_FACT_Msk (0xFFFFFFFU << CAN_FA1R_FACT_Pos) /*!< 0x0FFFFFFF */
  1781. #define CAN_FA1R_FACT CAN_FA1R_FACT_Msk /*!<Filter Active */
  1782. #define CAN_FA1R_FACT0_Pos (0U)
  1783. #define CAN_FA1R_FACT0_Msk (0x1U << CAN_FA1R_FACT0_Pos) /*!< 0x00000001 */
  1784. #define CAN_FA1R_FACT0 CAN_FA1R_FACT0_Msk /*!<Filter Active bit 0 */
  1785. #define CAN_FA1R_FACT1_Pos (1U)
  1786. #define CAN_FA1R_FACT1_Msk (0x1U << CAN_FA1R_FACT1_Pos) /*!< 0x00000002 */
  1787. #define CAN_FA1R_FACT1 CAN_FA1R_FACT1_Msk /*!<Filter Active bit 1 */
  1788. #define CAN_FA1R_FACT2_Pos (2U)
  1789. #define CAN_FA1R_FACT2_Msk (0x1U << CAN_FA1R_FACT2_Pos) /*!< 0x00000004 */
  1790. #define CAN_FA1R_FACT2 CAN_FA1R_FACT2_Msk /*!<Filter Active bit 2 */
  1791. #define CAN_FA1R_FACT3_Pos (3U)
  1792. #define CAN_FA1R_FACT3_Msk (0x1U << CAN_FA1R_FACT3_Pos) /*!< 0x00000008 */
  1793. #define CAN_FA1R_FACT3 CAN_FA1R_FACT3_Msk /*!<Filter Active bit 3 */
  1794. #define CAN_FA1R_FACT4_Pos (4U)
  1795. #define CAN_FA1R_FACT4_Msk (0x1U << CAN_FA1R_FACT4_Pos) /*!< 0x00000010 */
  1796. #define CAN_FA1R_FACT4 CAN_FA1R_FACT4_Msk /*!<Filter Active bit 4 */
  1797. #define CAN_FA1R_FACT5_Pos (5U)
  1798. #define CAN_FA1R_FACT5_Msk (0x1U << CAN_FA1R_FACT5_Pos) /*!< 0x00000020 */
  1799. #define CAN_FA1R_FACT5 CAN_FA1R_FACT5_Msk /*!<Filter Active bit 5 */
  1800. #define CAN_FA1R_FACT6_Pos (6U)
  1801. #define CAN_FA1R_FACT6_Msk (0x1U << CAN_FA1R_FACT6_Pos) /*!< 0x00000040 */
  1802. #define CAN_FA1R_FACT6 CAN_FA1R_FACT6_Msk /*!<Filter Active bit 6 */
  1803. #define CAN_FA1R_FACT7_Pos (7U)
  1804. #define CAN_FA1R_FACT7_Msk (0x1U << CAN_FA1R_FACT7_Pos) /*!< 0x00000080 */
  1805. #define CAN_FA1R_FACT7 CAN_FA1R_FACT7_Msk /*!<Filter Active bit 7 */
  1806. #define CAN_FA1R_FACT8_Pos (8U)
  1807. #define CAN_FA1R_FACT8_Msk (0x1U << CAN_FA1R_FACT8_Pos) /*!< 0x00000100 */
  1808. #define CAN_FA1R_FACT8 CAN_FA1R_FACT8_Msk /*!<Filter Active bit 8 */
  1809. #define CAN_FA1R_FACT9_Pos (9U)
  1810. #define CAN_FA1R_FACT9_Msk (0x1U << CAN_FA1R_FACT9_Pos) /*!< 0x00000200 */
  1811. #define CAN_FA1R_FACT9 CAN_FA1R_FACT9_Msk /*!<Filter Active bit 9 */
  1812. #define CAN_FA1R_FACT10_Pos (10U)
  1813. #define CAN_FA1R_FACT10_Msk (0x1U << CAN_FA1R_FACT10_Pos) /*!< 0x00000400 */
  1814. #define CAN_FA1R_FACT10 CAN_FA1R_FACT10_Msk /*!<Filter Active bit 10 */
  1815. #define CAN_FA1R_FACT11_Pos (11U)
  1816. #define CAN_FA1R_FACT11_Msk (0x1U << CAN_FA1R_FACT11_Pos) /*!< 0x00000800 */
  1817. #define CAN_FA1R_FACT11 CAN_FA1R_FACT11_Msk /*!<Filter Active bit 11 */
  1818. #define CAN_FA1R_FACT12_Pos (12U)
  1819. #define CAN_FA1R_FACT12_Msk (0x1U << CAN_FA1R_FACT12_Pos) /*!< 0x00001000 */
  1820. #define CAN_FA1R_FACT12 CAN_FA1R_FACT12_Msk /*!<Filter Active bit 12 */
  1821. #define CAN_FA1R_FACT13_Pos (13U)
  1822. #define CAN_FA1R_FACT13_Msk (0x1U << CAN_FA1R_FACT13_Pos) /*!< 0x00002000 */
  1823. #define CAN_FA1R_FACT13 CAN_FA1R_FACT13_Msk /*!<Filter Active bit 13 */
  1824. #define CAN_FA1R_FACT14_Pos (14U)
  1825. #define CAN_FA1R_FACT14_Msk (0x1U << CAN_FA1R_FACT14_Pos) /*!< 0x00004000 */
  1826. #define CAN_FA1R_FACT14 CAN_FA1R_FACT14_Msk /*!<Filter Active bit 14 */
  1827. #define CAN_FA1R_FACT15_Pos (15U)
  1828. #define CAN_FA1R_FACT15_Msk (0x1U << CAN_FA1R_FACT15_Pos) /*!< 0x00008000 */
  1829. #define CAN_FA1R_FACT15 CAN_FA1R_FACT15_Msk /*!<Filter Active bit 15 */
  1830. #define CAN_FA1R_FACT16_Pos (16U)
  1831. #define CAN_FA1R_FACT16_Msk (0x1U << CAN_FA1R_FACT16_Pos) /*!< 0x00010000 */
  1832. #define CAN_FA1R_FACT16 CAN_FA1R_FACT16_Msk /*!<Filter Active bit 16 */
  1833. #define CAN_FA1R_FACT17_Pos (17U)
  1834. #define CAN_FA1R_FACT17_Msk (0x1U << CAN_FA1R_FACT17_Pos) /*!< 0x00020000 */
  1835. #define CAN_FA1R_FACT17 CAN_FA1R_FACT17_Msk /*!<Filter Active bit 17 */
  1836. #define CAN_FA1R_FACT18_Pos (18U)
  1837. #define CAN_FA1R_FACT18_Msk (0x1U << CAN_FA1R_FACT18_Pos) /*!< 0x00040000 */
  1838. #define CAN_FA1R_FACT18 CAN_FA1R_FACT18_Msk /*!<Filter Active bit 18 */
  1839. #define CAN_FA1R_FACT19_Pos (19U)
  1840. #define CAN_FA1R_FACT19_Msk (0x1U << CAN_FA1R_FACT19_Pos) /*!< 0x00080000 */
  1841. #define CAN_FA1R_FACT19 CAN_FA1R_FACT19_Msk /*!<Filter Active bit 19 */
  1842. #define CAN_FA1R_FACT20_Pos (20U)
  1843. #define CAN_FA1R_FACT20_Msk (0x1U << CAN_FA1R_FACT20_Pos) /*!< 0x00100000 */
  1844. #define CAN_FA1R_FACT20 CAN_FA1R_FACT20_Msk /*!<Filter Active bit 20 */
  1845. #define CAN_FA1R_FACT21_Pos (21U)
  1846. #define CAN_FA1R_FACT21_Msk (0x1U << CAN_FA1R_FACT21_Pos) /*!< 0x00200000 */
  1847. #define CAN_FA1R_FACT21 CAN_FA1R_FACT21_Msk /*!<Filter Active bit 21 */
  1848. #define CAN_FA1R_FACT22_Pos (22U)
  1849. #define CAN_FA1R_FACT22_Msk (0x1U << CAN_FA1R_FACT22_Pos) /*!< 0x00400000 */
  1850. #define CAN_FA1R_FACT22 CAN_FA1R_FACT22_Msk /*!<Filter Active bit 22 */
  1851. #define CAN_FA1R_FACT23_Pos (23U)
  1852. #define CAN_FA1R_FACT23_Msk (0x1U << CAN_FA1R_FACT23_Pos) /*!< 0x00800000 */
  1853. #define CAN_FA1R_FACT23 CAN_FA1R_FACT23_Msk /*!<Filter Active bit 23 */
  1854. #define CAN_FA1R_FACT24_Pos (24U)
  1855. #define CAN_FA1R_FACT24_Msk (0x1U << CAN_FA1R_FACT24_Pos) /*!< 0x01000000 */
  1856. #define CAN_FA1R_FACT24 CAN_FA1R_FACT24_Msk /*!<Filter Active bit 24 */
  1857. #define CAN_FA1R_FACT25_Pos (25U)
  1858. #define CAN_FA1R_FACT25_Msk (0x1U << CAN_FA1R_FACT25_Pos) /*!< 0x02000000 */
  1859. #define CAN_FA1R_FACT25 CAN_FA1R_FACT25_Msk /*!<Filter Active bit 25 */
  1860. #define CAN_FA1R_FACT26_Pos (26U)
  1861. #define CAN_FA1R_FACT26_Msk (0x1U << CAN_FA1R_FACT26_Pos) /*!< 0x04000000 */
  1862. #define CAN_FA1R_FACT26 CAN_FA1R_FACT26_Msk /*!<Filter Active bit 26 */
  1863. #define CAN_FA1R_FACT27_Pos (27U)
  1864. #define CAN_FA1R_FACT27_Msk (0x1U << CAN_FA1R_FACT27_Pos) /*!< 0x08000000 */
  1865. #define CAN_FA1R_FACT27 CAN_FA1R_FACT27_Msk /*!<Filter Active bit 27 */
  1866. /******************* Bit definition for CAN_F0R1 register *******************/
  1867. #define CAN_F0R1_FB0_Pos (0U)
  1868. #define CAN_F0R1_FB0_Msk (0x1U << CAN_F0R1_FB0_Pos) /*!< 0x00000001 */
  1869. #define CAN_F0R1_FB0 CAN_F0R1_FB0_Msk /*!<Filter bit 0 */
  1870. #define CAN_F0R1_FB1_Pos (1U)
  1871. #define CAN_F0R1_FB1_Msk (0x1U << CAN_F0R1_FB1_Pos) /*!< 0x00000002 */
  1872. #define CAN_F0R1_FB1 CAN_F0R1_FB1_Msk /*!<Filter bit 1 */
  1873. #define CAN_F0R1_FB2_Pos (2U)
  1874. #define CAN_F0R1_FB2_Msk (0x1U << CAN_F0R1_FB2_Pos) /*!< 0x00000004 */
  1875. #define CAN_F0R1_FB2 CAN_F0R1_FB2_Msk /*!<Filter bit 2 */
  1876. #define CAN_F0R1_FB3_Pos (3U)
  1877. #define CAN_F0R1_FB3_Msk (0x1U << CAN_F0R1_FB3_Pos) /*!< 0x00000008 */
  1878. #define CAN_F0R1_FB3 CAN_F0R1_FB3_Msk /*!<Filter bit 3 */
  1879. #define CAN_F0R1_FB4_Pos (4U)
  1880. #define CAN_F0R1_FB4_Msk (0x1U << CAN_F0R1_FB4_Pos) /*!< 0x00000010 */
  1881. #define CAN_F0R1_FB4 CAN_F0R1_FB4_Msk /*!<Filter bit 4 */
  1882. #define CAN_F0R1_FB5_Pos (5U)
  1883. #define CAN_F0R1_FB5_Msk (0x1U << CAN_F0R1_FB5_Pos) /*!< 0x00000020 */
  1884. #define CAN_F0R1_FB5 CAN_F0R1_FB5_Msk /*!<Filter bit 5 */
  1885. #define CAN_F0R1_FB6_Pos (6U)
  1886. #define CAN_F0R1_FB6_Msk (0x1U << CAN_F0R1_FB6_Pos) /*!< 0x00000040 */
  1887. #define CAN_F0R1_FB6 CAN_F0R1_FB6_Msk /*!<Filter bit 6 */
  1888. #define CAN_F0R1_FB7_Pos (7U)
  1889. #define CAN_F0R1_FB7_Msk (0x1U << CAN_F0R1_FB7_Pos) /*!< 0x00000080 */
  1890. #define CAN_F0R1_FB7 CAN_F0R1_FB7_Msk /*!<Filter bit 7 */
  1891. #define CAN_F0R1_FB8_Pos (8U)
  1892. #define CAN_F0R1_FB8_Msk (0x1U << CAN_F0R1_FB8_Pos) /*!< 0x00000100 */
  1893. #define CAN_F0R1_FB8 CAN_F0R1_FB8_Msk /*!<Filter bit 8 */
  1894. #define CAN_F0R1_FB9_Pos (9U)
  1895. #define CAN_F0R1_FB9_Msk (0x1U << CAN_F0R1_FB9_Pos) /*!< 0x00000200 */
  1896. #define CAN_F0R1_FB9 CAN_F0R1_FB9_Msk /*!<Filter bit 9 */
  1897. #define CAN_F0R1_FB10_Pos (10U)
  1898. #define CAN_F0R1_FB10_Msk (0x1U << CAN_F0R1_FB10_Pos) /*!< 0x00000400 */
  1899. #define CAN_F0R1_FB10 CAN_F0R1_FB10_Msk /*!<Filter bit 10 */
  1900. #define CAN_F0R1_FB11_Pos (11U)
  1901. #define CAN_F0R1_FB11_Msk (0x1U << CAN_F0R1_FB11_Pos) /*!< 0x00000800 */
  1902. #define CAN_F0R1_FB11 CAN_F0R1_FB11_Msk /*!<Filter bit 11 */
  1903. #define CAN_F0R1_FB12_Pos (12U)
  1904. #define CAN_F0R1_FB12_Msk (0x1U << CAN_F0R1_FB12_Pos) /*!< 0x00001000 */
  1905. #define CAN_F0R1_FB12 CAN_F0R1_FB12_Msk /*!<Filter bit 12 */
  1906. #define CAN_F0R1_FB13_Pos (13U)
  1907. #define CAN_F0R1_FB13_Msk (0x1U << CAN_F0R1_FB13_Pos) /*!< 0x00002000 */
  1908. #define CAN_F0R1_FB13 CAN_F0R1_FB13_Msk /*!<Filter bit 13 */
  1909. #define CAN_F0R1_FB14_Pos (14U)
  1910. #define CAN_F0R1_FB14_Msk (0x1U << CAN_F0R1_FB14_Pos) /*!< 0x00004000 */
  1911. #define CAN_F0R1_FB14 CAN_F0R1_FB14_Msk /*!<Filter bit 14 */
  1912. #define CAN_F0R1_FB15_Pos (15U)
  1913. #define CAN_F0R1_FB15_Msk (0x1U << CAN_F0R1_FB15_Pos) /*!< 0x00008000 */
  1914. #define CAN_F0R1_FB15 CAN_F0R1_FB15_Msk /*!<Filter bit 15 */
  1915. #define CAN_F0R1_FB16_Pos (16U)
  1916. #define CAN_F0R1_FB16_Msk (0x1U << CAN_F0R1_FB16_Pos) /*!< 0x00010000 */
  1917. #define CAN_F0R1_FB16 CAN_F0R1_FB16_Msk /*!<Filter bit 16 */
  1918. #define CAN_F0R1_FB17_Pos (17U)
  1919. #define CAN_F0R1_FB17_Msk (0x1U << CAN_F0R1_FB17_Pos) /*!< 0x00020000 */
  1920. #define CAN_F0R1_FB17 CAN_F0R1_FB17_Msk /*!<Filter bit 17 */
  1921. #define CAN_F0R1_FB18_Pos (18U)
  1922. #define CAN_F0R1_FB18_Msk (0x1U << CAN_F0R1_FB18_Pos) /*!< 0x00040000 */
  1923. #define CAN_F0R1_FB18 CAN_F0R1_FB18_Msk /*!<Filter bit 18 */
  1924. #define CAN_F0R1_FB19_Pos (19U)
  1925. #define CAN_F0R1_FB19_Msk (0x1U << CAN_F0R1_FB19_Pos) /*!< 0x00080000 */
  1926. #define CAN_F0R1_FB19 CAN_F0R1_FB19_Msk /*!<Filter bit 19 */
  1927. #define CAN_F0R1_FB20_Pos (20U)
  1928. #define CAN_F0R1_FB20_Msk (0x1U << CAN_F0R1_FB20_Pos) /*!< 0x00100000 */
  1929. #define CAN_F0R1_FB20 CAN_F0R1_FB20_Msk /*!<Filter bit 20 */
  1930. #define CAN_F0R1_FB21_Pos (21U)
  1931. #define CAN_F0R1_FB21_Msk (0x1U << CAN_F0R1_FB21_Pos) /*!< 0x00200000 */
  1932. #define CAN_F0R1_FB21 CAN_F0R1_FB21_Msk /*!<Filter bit 21 */
  1933. #define CAN_F0R1_FB22_Pos (22U)
  1934. #define CAN_F0R1_FB22_Msk (0x1U << CAN_F0R1_FB22_Pos) /*!< 0x00400000 */
  1935. #define CAN_F0R1_FB22 CAN_F0R1_FB22_Msk /*!<Filter bit 22 */
  1936. #define CAN_F0R1_FB23_Pos (23U)
  1937. #define CAN_F0R1_FB23_Msk (0x1U << CAN_F0R1_FB23_Pos) /*!< 0x00800000 */
  1938. #define CAN_F0R1_FB23 CAN_F0R1_FB23_Msk /*!<Filter bit 23 */
  1939. #define CAN_F0R1_FB24_Pos (24U)
  1940. #define CAN_F0R1_FB24_Msk (0x1U << CAN_F0R1_FB24_Pos) /*!< 0x01000000 */
  1941. #define CAN_F0R1_FB24 CAN_F0R1_FB24_Msk /*!<Filter bit 24 */
  1942. #define CAN_F0R1_FB25_Pos (25U)
  1943. #define CAN_F0R1_FB25_Msk (0x1U << CAN_F0R1_FB25_Pos) /*!< 0x02000000 */
  1944. #define CAN_F0R1_FB25 CAN_F0R1_FB25_Msk /*!<Filter bit 25 */
  1945. #define CAN_F0R1_FB26_Pos (26U)
  1946. #define CAN_F0R1_FB26_Msk (0x1U << CAN_F0R1_FB26_Pos) /*!< 0x04000000 */
  1947. #define CAN_F0R1_FB26 CAN_F0R1_FB26_Msk /*!<Filter bit 26 */
  1948. #define CAN_F0R1_FB27_Pos (27U)
  1949. #define CAN_F0R1_FB27_Msk (0x1U << CAN_F0R1_FB27_Pos) /*!< 0x08000000 */
  1950. #define CAN_F0R1_FB27 CAN_F0R1_FB27_Msk /*!<Filter bit 27 */
  1951. #define CAN_F0R1_FB28_Pos (28U)
  1952. #define CAN_F0R1_FB28_Msk (0x1U << CAN_F0R1_FB28_Pos) /*!< 0x10000000 */
  1953. #define CAN_F0R1_FB28 CAN_F0R1_FB28_Msk /*!<Filter bit 28 */
  1954. #define CAN_F0R1_FB29_Pos (29U)
  1955. #define CAN_F0R1_FB29_Msk (0x1U << CAN_F0R1_FB29_Pos) /*!< 0x20000000 */
  1956. #define CAN_F0R1_FB29 CAN_F0R1_FB29_Msk /*!<Filter bit 29 */
  1957. #define CAN_F0R1_FB30_Pos (30U)
  1958. #define CAN_F0R1_FB30_Msk (0x1U << CAN_F0R1_FB30_Pos) /*!< 0x40000000 */
  1959. #define CAN_F0R1_FB30 CAN_F0R1_FB30_Msk /*!<Filter bit 30 */
  1960. #define CAN_F0R1_FB31_Pos (31U)
  1961. #define CAN_F0R1_FB31_Msk (0x1U << CAN_F0R1_FB31_Pos) /*!< 0x80000000 */
  1962. #define CAN_F0R1_FB31 CAN_F0R1_FB31_Msk /*!<Filter bit 31 */
  1963. /******************* Bit definition for CAN_F1R1 register *******************/
  1964. #define CAN_F1R1_FB0_Pos (0U)
  1965. #define CAN_F1R1_FB0_Msk (0x1U << CAN_F1R1_FB0_Pos) /*!< 0x00000001 */
  1966. #define CAN_F1R1_FB0 CAN_F1R1_FB0_Msk /*!<Filter bit 0 */
  1967. #define CAN_F1R1_FB1_Pos (1U)
  1968. #define CAN_F1R1_FB1_Msk (0x1U << CAN_F1R1_FB1_Pos) /*!< 0x00000002 */
  1969. #define CAN_F1R1_FB1 CAN_F1R1_FB1_Msk /*!<Filter bit 1 */
  1970. #define CAN_F1R1_FB2_Pos (2U)
  1971. #define CAN_F1R1_FB2_Msk (0x1U << CAN_F1R1_FB2_Pos) /*!< 0x00000004 */
  1972. #define CAN_F1R1_FB2 CAN_F1R1_FB2_Msk /*!<Filter bit 2 */
  1973. #define CAN_F1R1_FB3_Pos (3U)
  1974. #define CAN_F1R1_FB3_Msk (0x1U << CAN_F1R1_FB3_Pos) /*!< 0x00000008 */
  1975. #define CAN_F1R1_FB3 CAN_F1R1_FB3_Msk /*!<Filter bit 3 */
  1976. #define CAN_F1R1_FB4_Pos (4U)
  1977. #define CAN_F1R1_FB4_Msk (0x1U << CAN_F1R1_FB4_Pos) /*!< 0x00000010 */
  1978. #define CAN_F1R1_FB4 CAN_F1R1_FB4_Msk /*!<Filter bit 4 */
  1979. #define CAN_F1R1_FB5_Pos (5U)
  1980. #define CAN_F1R1_FB5_Msk (0x1U << CAN_F1R1_FB5_Pos) /*!< 0x00000020 */
  1981. #define CAN_F1R1_FB5 CAN_F1R1_FB5_Msk /*!<Filter bit 5 */
  1982. #define CAN_F1R1_FB6_Pos (6U)
  1983. #define CAN_F1R1_FB6_Msk (0x1U << CAN_F1R1_FB6_Pos) /*!< 0x00000040 */
  1984. #define CAN_F1R1_FB6 CAN_F1R1_FB6_Msk /*!<Filter bit 6 */
  1985. #define CAN_F1R1_FB7_Pos (7U)
  1986. #define CAN_F1R1_FB7_Msk (0x1U << CAN_F1R1_FB7_Pos) /*!< 0x00000080 */
  1987. #define CAN_F1R1_FB7 CAN_F1R1_FB7_Msk /*!<Filter bit 7 */
  1988. #define CAN_F1R1_FB8_Pos (8U)
  1989. #define CAN_F1R1_FB8_Msk (0x1U << CAN_F1R1_FB8_Pos) /*!< 0x00000100 */
  1990. #define CAN_F1R1_FB8 CAN_F1R1_FB8_Msk /*!<Filter bit 8 */
  1991. #define CAN_F1R1_FB9_Pos (9U)
  1992. #define CAN_F1R1_FB9_Msk (0x1U << CAN_F1R1_FB9_Pos) /*!< 0x00000200 */
  1993. #define CAN_F1R1_FB9 CAN_F1R1_FB9_Msk /*!<Filter bit 9 */
  1994. #define CAN_F1R1_FB10_Pos (10U)
  1995. #define CAN_F1R1_FB10_Msk (0x1U << CAN_F1R1_FB10_Pos) /*!< 0x00000400 */
  1996. #define CAN_F1R1_FB10 CAN_F1R1_FB10_Msk /*!<Filter bit 10 */
  1997. #define CAN_F1R1_FB11_Pos (11U)
  1998. #define CAN_F1R1_FB11_Msk (0x1U << CAN_F1R1_FB11_Pos) /*!< 0x00000800 */
  1999. #define CAN_F1R1_FB11 CAN_F1R1_FB11_Msk /*!<Filter bit 11 */
  2000. #define CAN_F1R1_FB12_Pos (12U)
  2001. #define CAN_F1R1_FB12_Msk (0x1U << CAN_F1R1_FB12_Pos) /*!< 0x00001000 */
  2002. #define CAN_F1R1_FB12 CAN_F1R1_FB12_Msk /*!<Filter bit 12 */
  2003. #define CAN_F1R1_FB13_Pos (13U)
  2004. #define CAN_F1R1_FB13_Msk (0x1U << CAN_F1R1_FB13_Pos) /*!< 0x00002000 */
  2005. #define CAN_F1R1_FB13 CAN_F1R1_FB13_Msk /*!<Filter bit 13 */
  2006. #define CAN_F1R1_FB14_Pos (14U)
  2007. #define CAN_F1R1_FB14_Msk (0x1U << CAN_F1R1_FB14_Pos) /*!< 0x00004000 */
  2008. #define CAN_F1R1_FB14 CAN_F1R1_FB14_Msk /*!<Filter bit 14 */
  2009. #define CAN_F1R1_FB15_Pos (15U)
  2010. #define CAN_F1R1_FB15_Msk (0x1U << CAN_F1R1_FB15_Pos) /*!< 0x00008000 */
  2011. #define CAN_F1R1_FB15 CAN_F1R1_FB15_Msk /*!<Filter bit 15 */
  2012. #define CAN_F1R1_FB16_Pos (16U)
  2013. #define CAN_F1R1_FB16_Msk (0x1U << CAN_F1R1_FB16_Pos) /*!< 0x00010000 */
  2014. #define CAN_F1R1_FB16 CAN_F1R1_FB16_Msk /*!<Filter bit 16 */
  2015. #define CAN_F1R1_FB17_Pos (17U)
  2016. #define CAN_F1R1_FB17_Msk (0x1U << CAN_F1R1_FB17_Pos) /*!< 0x00020000 */
  2017. #define CAN_F1R1_FB17 CAN_F1R1_FB17_Msk /*!<Filter bit 17 */
  2018. #define CAN_F1R1_FB18_Pos (18U)
  2019. #define CAN_F1R1_FB18_Msk (0x1U << CAN_F1R1_FB18_Pos) /*!< 0x00040000 */
  2020. #define CAN_F1R1_FB18 CAN_F1R1_FB18_Msk /*!<Filter bit 18 */
  2021. #define CAN_F1R1_FB19_Pos (19U)
  2022. #define CAN_F1R1_FB19_Msk (0x1U << CAN_F1R1_FB19_Pos) /*!< 0x00080000 */
  2023. #define CAN_F1R1_FB19 CAN_F1R1_FB19_Msk /*!<Filter bit 19 */
  2024. #define CAN_F1R1_FB20_Pos (20U)
  2025. #define CAN_F1R1_FB20_Msk (0x1U << CAN_F1R1_FB20_Pos) /*!< 0x00100000 */
  2026. #define CAN_F1R1_FB20 CAN_F1R1_FB20_Msk /*!<Filter bit 20 */
  2027. #define CAN_F1R1_FB21_Pos (21U)
  2028. #define CAN_F1R1_FB21_Msk (0x1U << CAN_F1R1_FB21_Pos) /*!< 0x00200000 */
  2029. #define CAN_F1R1_FB21 CAN_F1R1_FB21_Msk /*!<Filter bit 21 */
  2030. #define CAN_F1R1_FB22_Pos (22U)
  2031. #define CAN_F1R1_FB22_Msk (0x1U << CAN_F1R1_FB22_Pos) /*!< 0x00400000 */
  2032. #define CAN_F1R1_FB22 CAN_F1R1_FB22_Msk /*!<Filter bit 22 */
  2033. #define CAN_F1R1_FB23_Pos (23U)
  2034. #define CAN_F1R1_FB23_Msk (0x1U << CAN_F1R1_FB23_Pos) /*!< 0x00800000 */
  2035. #define CAN_F1R1_FB23 CAN_F1R1_FB23_Msk /*!<Filter bit 23 */
  2036. #define CAN_F1R1_FB24_Pos (24U)
  2037. #define CAN_F1R1_FB24_Msk (0x1U << CAN_F1R1_FB24_Pos) /*!< 0x01000000 */
  2038. #define CAN_F1R1_FB24 CAN_F1R1_FB24_Msk /*!<Filter bit 24 */
  2039. #define CAN_F1R1_FB25_Pos (25U)
  2040. #define CAN_F1R1_FB25_Msk (0x1U << CAN_F1R1_FB25_Pos) /*!< 0x02000000 */
  2041. #define CAN_F1R1_FB25 CAN_F1R1_FB25_Msk /*!<Filter bit 25 */
  2042. #define CAN_F1R1_FB26_Pos (26U)
  2043. #define CAN_F1R1_FB26_Msk (0x1U << CAN_F1R1_FB26_Pos) /*!< 0x04000000 */
  2044. #define CAN_F1R1_FB26 CAN_F1R1_FB26_Msk /*!<Filter bit 26 */
  2045. #define CAN_F1R1_FB27_Pos (27U)
  2046. #define CAN_F1R1_FB27_Msk (0x1U << CAN_F1R1_FB27_Pos) /*!< 0x08000000 */
  2047. #define CAN_F1R1_FB27 CAN_F1R1_FB27_Msk /*!<Filter bit 27 */
  2048. #define CAN_F1R1_FB28_Pos (28U)
  2049. #define CAN_F1R1_FB28_Msk (0x1U << CAN_F1R1_FB28_Pos) /*!< 0x10000000 */
  2050. #define CAN_F1R1_FB28 CAN_F1R1_FB28_Msk /*!<Filter bit 28 */
  2051. #define CAN_F1R1_FB29_Pos (29U)
  2052. #define CAN_F1R1_FB29_Msk (0x1U << CAN_F1R1_FB29_Pos) /*!< 0x20000000 */
  2053. #define CAN_F1R1_FB29 CAN_F1R1_FB29_Msk /*!<Filter bit 29 */
  2054. #define CAN_F1R1_FB30_Pos (30U)
  2055. #define CAN_F1R1_FB30_Msk (0x1U << CAN_F1R1_FB30_Pos) /*!< 0x40000000 */
  2056. #define CAN_F1R1_FB30 CAN_F1R1_FB30_Msk /*!<Filter bit 30 */
  2057. #define CAN_F1R1_FB31_Pos (31U)
  2058. #define CAN_F1R1_FB31_Msk (0x1U << CAN_F1R1_FB31_Pos) /*!< 0x80000000 */
  2059. #define CAN_F1R1_FB31 CAN_F1R1_FB31_Msk /*!<Filter bit 31 */
  2060. /******************* Bit definition for CAN_F2R1 register *******************/
  2061. #define CAN_F2R1_FB0_Pos (0U)
  2062. #define CAN_F2R1_FB0_Msk (0x1U << CAN_F2R1_FB0_Pos) /*!< 0x00000001 */
  2063. #define CAN_F2R1_FB0 CAN_F2R1_FB0_Msk /*!<Filter bit 0 */
  2064. #define CAN_F2R1_FB1_Pos (1U)
  2065. #define CAN_F2R1_FB1_Msk (0x1U << CAN_F2R1_FB1_Pos) /*!< 0x00000002 */
  2066. #define CAN_F2R1_FB1 CAN_F2R1_FB1_Msk /*!<Filter bit 1 */
  2067. #define CAN_F2R1_FB2_Pos (2U)
  2068. #define CAN_F2R1_FB2_Msk (0x1U << CAN_F2R1_FB2_Pos) /*!< 0x00000004 */
  2069. #define CAN_F2R1_FB2 CAN_F2R1_FB2_Msk /*!<Filter bit 2 */
  2070. #define CAN_F2R1_FB3_Pos (3U)
  2071. #define CAN_F2R1_FB3_Msk (0x1U << CAN_F2R1_FB3_Pos) /*!< 0x00000008 */
  2072. #define CAN_F2R1_FB3 CAN_F2R1_FB3_Msk /*!<Filter bit 3 */
  2073. #define CAN_F2R1_FB4_Pos (4U)
  2074. #define CAN_F2R1_FB4_Msk (0x1U << CAN_F2R1_FB4_Pos) /*!< 0x00000010 */
  2075. #define CAN_F2R1_FB4 CAN_F2R1_FB4_Msk /*!<Filter bit 4 */
  2076. #define CAN_F2R1_FB5_Pos (5U)
  2077. #define CAN_F2R1_FB5_Msk (0x1U << CAN_F2R1_FB5_Pos) /*!< 0x00000020 */
  2078. #define CAN_F2R1_FB5 CAN_F2R1_FB5_Msk /*!<Filter bit 5 */
  2079. #define CAN_F2R1_FB6_Pos (6U)
  2080. #define CAN_F2R1_FB6_Msk (0x1U << CAN_F2R1_FB6_Pos) /*!< 0x00000040 */
  2081. #define CAN_F2R1_FB6 CAN_F2R1_FB6_Msk /*!<Filter bit 6 */
  2082. #define CAN_F2R1_FB7_Pos (7U)
  2083. #define CAN_F2R1_FB7_Msk (0x1U << CAN_F2R1_FB7_Pos) /*!< 0x00000080 */
  2084. #define CAN_F2R1_FB7 CAN_F2R1_FB7_Msk /*!<Filter bit 7 */
  2085. #define CAN_F2R1_FB8_Pos (8U)
  2086. #define CAN_F2R1_FB8_Msk (0x1U << CAN_F2R1_FB8_Pos) /*!< 0x00000100 */
  2087. #define CAN_F2R1_FB8 CAN_F2R1_FB8_Msk /*!<Filter bit 8 */
  2088. #define CAN_F2R1_FB9_Pos (9U)
  2089. #define CAN_F2R1_FB9_Msk (0x1U << CAN_F2R1_FB9_Pos) /*!< 0x00000200 */
  2090. #define CAN_F2R1_FB9 CAN_F2R1_FB9_Msk /*!<Filter bit 9 */
  2091. #define CAN_F2R1_FB10_Pos (10U)
  2092. #define CAN_F2R1_FB10_Msk (0x1U << CAN_F2R1_FB10_Pos) /*!< 0x00000400 */
  2093. #define CAN_F2R1_FB10 CAN_F2R1_FB10_Msk /*!<Filter bit 10 */
  2094. #define CAN_F2R1_FB11_Pos (11U)
  2095. #define CAN_F2R1_FB11_Msk (0x1U << CAN_F2R1_FB11_Pos) /*!< 0x00000800 */
  2096. #define CAN_F2R1_FB11 CAN_F2R1_FB11_Msk /*!<Filter bit 11 */
  2097. #define CAN_F2R1_FB12_Pos (12U)
  2098. #define CAN_F2R1_FB12_Msk (0x1U << CAN_F2R1_FB12_Pos) /*!< 0x00001000 */
  2099. #define CAN_F2R1_FB12 CAN_F2R1_FB12_Msk /*!<Filter bit 12 */
  2100. #define CAN_F2R1_FB13_Pos (13U)
  2101. #define CAN_F2R1_FB13_Msk (0x1U << CAN_F2R1_FB13_Pos) /*!< 0x00002000 */
  2102. #define CAN_F2R1_FB13 CAN_F2R1_FB13_Msk /*!<Filter bit 13 */
  2103. #define CAN_F2R1_FB14_Pos (14U)
  2104. #define CAN_F2R1_FB14_Msk (0x1U << CAN_F2R1_FB14_Pos) /*!< 0x00004000 */
  2105. #define CAN_F2R1_FB14 CAN_F2R1_FB14_Msk /*!<Filter bit 14 */
  2106. #define CAN_F2R1_FB15_Pos (15U)
  2107. #define CAN_F2R1_FB15_Msk (0x1U << CAN_F2R1_FB15_Pos) /*!< 0x00008000 */
  2108. #define CAN_F2R1_FB15 CAN_F2R1_FB15_Msk /*!<Filter bit 15 */
  2109. #define CAN_F2R1_FB16_Pos (16U)
  2110. #define CAN_F2R1_FB16_Msk (0x1U << CAN_F2R1_FB16_Pos) /*!< 0x00010000 */
  2111. #define CAN_F2R1_FB16 CAN_F2R1_FB16_Msk /*!<Filter bit 16 */
  2112. #define CAN_F2R1_FB17_Pos (17U)
  2113. #define CAN_F2R1_FB17_Msk (0x1U << CAN_F2R1_FB17_Pos) /*!< 0x00020000 */
  2114. #define CAN_F2R1_FB17 CAN_F2R1_FB17_Msk /*!<Filter bit 17 */
  2115. #define CAN_F2R1_FB18_Pos (18U)
  2116. #define CAN_F2R1_FB18_Msk (0x1U << CAN_F2R1_FB18_Pos) /*!< 0x00040000 */
  2117. #define CAN_F2R1_FB18 CAN_F2R1_FB18_Msk /*!<Filter bit 18 */
  2118. #define CAN_F2R1_FB19_Pos (19U)
  2119. #define CAN_F2R1_FB19_Msk (0x1U << CAN_F2R1_FB19_Pos) /*!< 0x00080000 */
  2120. #define CAN_F2R1_FB19 CAN_F2R1_FB19_Msk /*!<Filter bit 19 */
  2121. #define CAN_F2R1_FB20_Pos (20U)
  2122. #define CAN_F2R1_FB20_Msk (0x1U << CAN_F2R1_FB20_Pos) /*!< 0x00100000 */
  2123. #define CAN_F2R1_FB20 CAN_F2R1_FB20_Msk /*!<Filter bit 20 */
  2124. #define CAN_F2R1_FB21_Pos (21U)
  2125. #define CAN_F2R1_FB21_Msk (0x1U << CAN_F2R1_FB21_Pos) /*!< 0x00200000 */
  2126. #define CAN_F2R1_FB21 CAN_F2R1_FB21_Msk /*!<Filter bit 21 */
  2127. #define CAN_F2R1_FB22_Pos (22U)
  2128. #define CAN_F2R1_FB22_Msk (0x1U << CAN_F2R1_FB22_Pos) /*!< 0x00400000 */
  2129. #define CAN_F2R1_FB22 CAN_F2R1_FB22_Msk /*!<Filter bit 22 */
  2130. #define CAN_F2R1_FB23_Pos (23U)
  2131. #define CAN_F2R1_FB23_Msk (0x1U << CAN_F2R1_FB23_Pos) /*!< 0x00800000 */
  2132. #define CAN_F2R1_FB23 CAN_F2R1_FB23_Msk /*!<Filter bit 23 */
  2133. #define CAN_F2R1_FB24_Pos (24U)
  2134. #define CAN_F2R1_FB24_Msk (0x1U << CAN_F2R1_FB24_Pos) /*!< 0x01000000 */
  2135. #define CAN_F2R1_FB24 CAN_F2R1_FB24_Msk /*!<Filter bit 24 */
  2136. #define CAN_F2R1_FB25_Pos (25U)
  2137. #define CAN_F2R1_FB25_Msk (0x1U << CAN_F2R1_FB25_Pos) /*!< 0x02000000 */
  2138. #define CAN_F2R1_FB25 CAN_F2R1_FB25_Msk /*!<Filter bit 25 */
  2139. #define CAN_F2R1_FB26_Pos (26U)
  2140. #define CAN_F2R1_FB26_Msk (0x1U << CAN_F2R1_FB26_Pos) /*!< 0x04000000 */
  2141. #define CAN_F2R1_FB26 CAN_F2R1_FB26_Msk /*!<Filter bit 26 */
  2142. #define CAN_F2R1_FB27_Pos (27U)
  2143. #define CAN_F2R1_FB27_Msk (0x1U << CAN_F2R1_FB27_Pos) /*!< 0x08000000 */
  2144. #define CAN_F2R1_FB27 CAN_F2R1_FB27_Msk /*!<Filter bit 27 */
  2145. #define CAN_F2R1_FB28_Pos (28U)
  2146. #define CAN_F2R1_FB28_Msk (0x1U << CAN_F2R1_FB28_Pos) /*!< 0x10000000 */
  2147. #define CAN_F2R1_FB28 CAN_F2R1_FB28_Msk /*!<Filter bit 28 */
  2148. #define CAN_F2R1_FB29_Pos (29U)
  2149. #define CAN_F2R1_FB29_Msk (0x1U << CAN_F2R1_FB29_Pos) /*!< 0x20000000 */
  2150. #define CAN_F2R1_FB29 CAN_F2R1_FB29_Msk /*!<Filter bit 29 */
  2151. #define CAN_F2R1_FB30_Pos (30U)
  2152. #define CAN_F2R1_FB30_Msk (0x1U << CAN_F2R1_FB30_Pos) /*!< 0x40000000 */
  2153. #define CAN_F2R1_FB30 CAN_F2R1_FB30_Msk /*!<Filter bit 30 */
  2154. #define CAN_F2R1_FB31_Pos (31U)
  2155. #define CAN_F2R1_FB31_Msk (0x1U << CAN_F2R1_FB31_Pos) /*!< 0x80000000 */
  2156. #define CAN_F2R1_FB31 CAN_F2R1_FB31_Msk /*!<Filter bit 31 */
  2157. /******************* Bit definition for CAN_F3R1 register *******************/
  2158. #define CAN_F3R1_FB0_Pos (0U)
  2159. #define CAN_F3R1_FB0_Msk (0x1U << CAN_F3R1_FB0_Pos) /*!< 0x00000001 */
  2160. #define CAN_F3R1_FB0 CAN_F3R1_FB0_Msk /*!<Filter bit 0 */
  2161. #define CAN_F3R1_FB1_Pos (1U)
  2162. #define CAN_F3R1_FB1_Msk (0x1U << CAN_F3R1_FB1_Pos) /*!< 0x00000002 */
  2163. #define CAN_F3R1_FB1 CAN_F3R1_FB1_Msk /*!<Filter bit 1 */
  2164. #define CAN_F3R1_FB2_Pos (2U)
  2165. #define CAN_F3R1_FB2_Msk (0x1U << CAN_F3R1_FB2_Pos) /*!< 0x00000004 */
  2166. #define CAN_F3R1_FB2 CAN_F3R1_FB2_Msk /*!<Filter bit 2 */
  2167. #define CAN_F3R1_FB3_Pos (3U)
  2168. #define CAN_F3R1_FB3_Msk (0x1U << CAN_F3R1_FB3_Pos) /*!< 0x00000008 */
  2169. #define CAN_F3R1_FB3 CAN_F3R1_FB3_Msk /*!<Filter bit 3 */
  2170. #define CAN_F3R1_FB4_Pos (4U)
  2171. #define CAN_F3R1_FB4_Msk (0x1U << CAN_F3R1_FB4_Pos) /*!< 0x00000010 */
  2172. #define CAN_F3R1_FB4 CAN_F3R1_FB4_Msk /*!<Filter bit 4 */
  2173. #define CAN_F3R1_FB5_Pos (5U)
  2174. #define CAN_F3R1_FB5_Msk (0x1U << CAN_F3R1_FB5_Pos) /*!< 0x00000020 */
  2175. #define CAN_F3R1_FB5 CAN_F3R1_FB5_Msk /*!<Filter bit 5 */
  2176. #define CAN_F3R1_FB6_Pos (6U)
  2177. #define CAN_F3R1_FB6_Msk (0x1U << CAN_F3R1_FB6_Pos) /*!< 0x00000040 */
  2178. #define CAN_F3R1_FB6 CAN_F3R1_FB6_Msk /*!<Filter bit 6 */
  2179. #define CAN_F3R1_FB7_Pos (7U)
  2180. #define CAN_F3R1_FB7_Msk (0x1U << CAN_F3R1_FB7_Pos) /*!< 0x00000080 */
  2181. #define CAN_F3R1_FB7 CAN_F3R1_FB7_Msk /*!<Filter bit 7 */
  2182. #define CAN_F3R1_FB8_Pos (8U)
  2183. #define CAN_F3R1_FB8_Msk (0x1U << CAN_F3R1_FB8_Pos) /*!< 0x00000100 */
  2184. #define CAN_F3R1_FB8 CAN_F3R1_FB8_Msk /*!<Filter bit 8 */
  2185. #define CAN_F3R1_FB9_Pos (9U)
  2186. #define CAN_F3R1_FB9_Msk (0x1U << CAN_F3R1_FB9_Pos) /*!< 0x00000200 */
  2187. #define CAN_F3R1_FB9 CAN_F3R1_FB9_Msk /*!<Filter bit 9 */
  2188. #define CAN_F3R1_FB10_Pos (10U)
  2189. #define CAN_F3R1_FB10_Msk (0x1U << CAN_F3R1_FB10_Pos) /*!< 0x00000400 */
  2190. #define CAN_F3R1_FB10 CAN_F3R1_FB10_Msk /*!<Filter bit 10 */
  2191. #define CAN_F3R1_FB11_Pos (11U)
  2192. #define CAN_F3R1_FB11_Msk (0x1U << CAN_F3R1_FB11_Pos) /*!< 0x00000800 */
  2193. #define CAN_F3R1_FB11 CAN_F3R1_FB11_Msk /*!<Filter bit 11 */
  2194. #define CAN_F3R1_FB12_Pos (12U)
  2195. #define CAN_F3R1_FB12_Msk (0x1U << CAN_F3R1_FB12_Pos) /*!< 0x00001000 */
  2196. #define CAN_F3R1_FB12 CAN_F3R1_FB12_Msk /*!<Filter bit 12 */
  2197. #define CAN_F3R1_FB13_Pos (13U)
  2198. #define CAN_F3R1_FB13_Msk (0x1U << CAN_F3R1_FB13_Pos) /*!< 0x00002000 */
  2199. #define CAN_F3R1_FB13 CAN_F3R1_FB13_Msk /*!<Filter bit 13 */
  2200. #define CAN_F3R1_FB14_Pos (14U)
  2201. #define CAN_F3R1_FB14_Msk (0x1U << CAN_F3R1_FB14_Pos) /*!< 0x00004000 */
  2202. #define CAN_F3R1_FB14 CAN_F3R1_FB14_Msk /*!<Filter bit 14 */
  2203. #define CAN_F3R1_FB15_Pos (15U)
  2204. #define CAN_F3R1_FB15_Msk (0x1U << CAN_F3R1_FB15_Pos) /*!< 0x00008000 */
  2205. #define CAN_F3R1_FB15 CAN_F3R1_FB15_Msk /*!<Filter bit 15 */
  2206. #define CAN_F3R1_FB16_Pos (16U)
  2207. #define CAN_F3R1_FB16_Msk (0x1U << CAN_F3R1_FB16_Pos) /*!< 0x00010000 */
  2208. #define CAN_F3R1_FB16 CAN_F3R1_FB16_Msk /*!<Filter bit 16 */
  2209. #define CAN_F3R1_FB17_Pos (17U)
  2210. #define CAN_F3R1_FB17_Msk (0x1U << CAN_F3R1_FB17_Pos) /*!< 0x00020000 */
  2211. #define CAN_F3R1_FB17 CAN_F3R1_FB17_Msk /*!<Filter bit 17 */
  2212. #define CAN_F3R1_FB18_Pos (18U)
  2213. #define CAN_F3R1_FB18_Msk (0x1U << CAN_F3R1_FB18_Pos) /*!< 0x00040000 */
  2214. #define CAN_F3R1_FB18 CAN_F3R1_FB18_Msk /*!<Filter bit 18 */
  2215. #define CAN_F3R1_FB19_Pos (19U)
  2216. #define CAN_F3R1_FB19_Msk (0x1U << CAN_F3R1_FB19_Pos) /*!< 0x00080000 */
  2217. #define CAN_F3R1_FB19 CAN_F3R1_FB19_Msk /*!<Filter bit 19 */
  2218. #define CAN_F3R1_FB20_Pos (20U)
  2219. #define CAN_F3R1_FB20_Msk (0x1U << CAN_F3R1_FB20_Pos) /*!< 0x00100000 */
  2220. #define CAN_F3R1_FB20 CAN_F3R1_FB20_Msk /*!<Filter bit 20 */
  2221. #define CAN_F3R1_FB21_Pos (21U)
  2222. #define CAN_F3R1_FB21_Msk (0x1U << CAN_F3R1_FB21_Pos) /*!< 0x00200000 */
  2223. #define CAN_F3R1_FB21 CAN_F3R1_FB21_Msk /*!<Filter bit 21 */
  2224. #define CAN_F3R1_FB22_Pos (22U)
  2225. #define CAN_F3R1_FB22_Msk (0x1U << CAN_F3R1_FB22_Pos) /*!< 0x00400000 */
  2226. #define CAN_F3R1_FB22 CAN_F3R1_FB22_Msk /*!<Filter bit 22 */
  2227. #define CAN_F3R1_FB23_Pos (23U)
  2228. #define CAN_F3R1_FB23_Msk (0x1U << CAN_F3R1_FB23_Pos) /*!< 0x00800000 */
  2229. #define CAN_F3R1_FB23 CAN_F3R1_FB23_Msk /*!<Filter bit 23 */
  2230. #define CAN_F3R1_FB24_Pos (24U)
  2231. #define CAN_F3R1_FB24_Msk (0x1U << CAN_F3R1_FB24_Pos) /*!< 0x01000000 */
  2232. #define CAN_F3R1_FB24 CAN_F3R1_FB24_Msk /*!<Filter bit 24 */
  2233. #define CAN_F3R1_FB25_Pos (25U)
  2234. #define CAN_F3R1_FB25_Msk (0x1U << CAN_F3R1_FB25_Pos) /*!< 0x02000000 */
  2235. #define CAN_F3R1_FB25 CAN_F3R1_FB25_Msk /*!<Filter bit 25 */
  2236. #define CAN_F3R1_FB26_Pos (26U)
  2237. #define CAN_F3R1_FB26_Msk (0x1U << CAN_F3R1_FB26_Pos) /*!< 0x04000000 */
  2238. #define CAN_F3R1_FB26 CAN_F3R1_FB26_Msk /*!<Filter bit 26 */
  2239. #define CAN_F3R1_FB27_Pos (27U)
  2240. #define CAN_F3R1_FB27_Msk (0x1U << CAN_F3R1_FB27_Pos) /*!< 0x08000000 */
  2241. #define CAN_F3R1_FB27 CAN_F3R1_FB27_Msk /*!<Filter bit 27 */
  2242. #define CAN_F3R1_FB28_Pos (28U)
  2243. #define CAN_F3R1_FB28_Msk (0x1U << CAN_F3R1_FB28_Pos) /*!< 0x10000000 */
  2244. #define CAN_F3R1_FB28 CAN_F3R1_FB28_Msk /*!<Filter bit 28 */
  2245. #define CAN_F3R1_FB29_Pos (29U)
  2246. #define CAN_F3R1_FB29_Msk (0x1U << CAN_F3R1_FB29_Pos) /*!< 0x20000000 */
  2247. #define CAN_F3R1_FB29 CAN_F3R1_FB29_Msk /*!<Filter bit 29 */
  2248. #define CAN_F3R1_FB30_Pos (30U)
  2249. #define CAN_F3R1_FB30_Msk (0x1U << CAN_F3R1_FB30_Pos) /*!< 0x40000000 */
  2250. #define CAN_F3R1_FB30 CAN_F3R1_FB30_Msk /*!<Filter bit 30 */
  2251. #define CAN_F3R1_FB31_Pos (31U)
  2252. #define CAN_F3R1_FB31_Msk (0x1U << CAN_F3R1_FB31_Pos) /*!< 0x80000000 */
  2253. #define CAN_F3R1_FB31 CAN_F3R1_FB31_Msk /*!<Filter bit 31 */
  2254. /******************* Bit definition for CAN_F4R1 register *******************/
  2255. #define CAN_F4R1_FB0_Pos (0U)
  2256. #define CAN_F4R1_FB0_Msk (0x1U << CAN_F4R1_FB0_Pos) /*!< 0x00000001 */
  2257. #define CAN_F4R1_FB0 CAN_F4R1_FB0_Msk /*!<Filter bit 0 */
  2258. #define CAN_F4R1_FB1_Pos (1U)
  2259. #define CAN_F4R1_FB1_Msk (0x1U << CAN_F4R1_FB1_Pos) /*!< 0x00000002 */
  2260. #define CAN_F4R1_FB1 CAN_F4R1_FB1_Msk /*!<Filter bit 1 */
  2261. #define CAN_F4R1_FB2_Pos (2U)
  2262. #define CAN_F4R1_FB2_Msk (0x1U << CAN_F4R1_FB2_Pos) /*!< 0x00000004 */
  2263. #define CAN_F4R1_FB2 CAN_F4R1_FB2_Msk /*!<Filter bit 2 */
  2264. #define CAN_F4R1_FB3_Pos (3U)
  2265. #define CAN_F4R1_FB3_Msk (0x1U << CAN_F4R1_FB3_Pos) /*!< 0x00000008 */
  2266. #define CAN_F4R1_FB3 CAN_F4R1_FB3_Msk /*!<Filter bit 3 */
  2267. #define CAN_F4R1_FB4_Pos (4U)
  2268. #define CAN_F4R1_FB4_Msk (0x1U << CAN_F4R1_FB4_Pos) /*!< 0x00000010 */
  2269. #define CAN_F4R1_FB4 CAN_F4R1_FB4_Msk /*!<Filter bit 4 */
  2270. #define CAN_F4R1_FB5_Pos (5U)
  2271. #define CAN_F4R1_FB5_Msk (0x1U << CAN_F4R1_FB5_Pos) /*!< 0x00000020 */
  2272. #define CAN_F4R1_FB5 CAN_F4R1_FB5_Msk /*!<Filter bit 5 */
  2273. #define CAN_F4R1_FB6_Pos (6U)
  2274. #define CAN_F4R1_FB6_Msk (0x1U << CAN_F4R1_FB6_Pos) /*!< 0x00000040 */
  2275. #define CAN_F4R1_FB6 CAN_F4R1_FB6_Msk /*!<Filter bit 6 */
  2276. #define CAN_F4R1_FB7_Pos (7U)
  2277. #define CAN_F4R1_FB7_Msk (0x1U << CAN_F4R1_FB7_Pos) /*!< 0x00000080 */
  2278. #define CAN_F4R1_FB7 CAN_F4R1_FB7_Msk /*!<Filter bit 7 */
  2279. #define CAN_F4R1_FB8_Pos (8U)
  2280. #define CAN_F4R1_FB8_Msk (0x1U << CAN_F4R1_FB8_Pos) /*!< 0x00000100 */
  2281. #define CAN_F4R1_FB8 CAN_F4R1_FB8_Msk /*!<Filter bit 8 */
  2282. #define CAN_F4R1_FB9_Pos (9U)
  2283. #define CAN_F4R1_FB9_Msk (0x1U << CAN_F4R1_FB9_Pos) /*!< 0x00000200 */
  2284. #define CAN_F4R1_FB9 CAN_F4R1_FB9_Msk /*!<Filter bit 9 */
  2285. #define CAN_F4R1_FB10_Pos (10U)
  2286. #define CAN_F4R1_FB10_Msk (0x1U << CAN_F4R1_FB10_Pos) /*!< 0x00000400 */
  2287. #define CAN_F4R1_FB10 CAN_F4R1_FB10_Msk /*!<Filter bit 10 */
  2288. #define CAN_F4R1_FB11_Pos (11U)
  2289. #define CAN_F4R1_FB11_Msk (0x1U << CAN_F4R1_FB11_Pos) /*!< 0x00000800 */
  2290. #define CAN_F4R1_FB11 CAN_F4R1_FB11_Msk /*!<Filter bit 11 */
  2291. #define CAN_F4R1_FB12_Pos (12U)
  2292. #define CAN_F4R1_FB12_Msk (0x1U << CAN_F4R1_FB12_Pos) /*!< 0x00001000 */
  2293. #define CAN_F4R1_FB12 CAN_F4R1_FB12_Msk /*!<Filter bit 12 */
  2294. #define CAN_F4R1_FB13_Pos (13U)
  2295. #define CAN_F4R1_FB13_Msk (0x1U << CAN_F4R1_FB13_Pos) /*!< 0x00002000 */
  2296. #define CAN_F4R1_FB13 CAN_F4R1_FB13_Msk /*!<Filter bit 13 */
  2297. #define CAN_F4R1_FB14_Pos (14U)
  2298. #define CAN_F4R1_FB14_Msk (0x1U << CAN_F4R1_FB14_Pos) /*!< 0x00004000 */
  2299. #define CAN_F4R1_FB14 CAN_F4R1_FB14_Msk /*!<Filter bit 14 */
  2300. #define CAN_F4R1_FB15_Pos (15U)
  2301. #define CAN_F4R1_FB15_Msk (0x1U << CAN_F4R1_FB15_Pos) /*!< 0x00008000 */
  2302. #define CAN_F4R1_FB15 CAN_F4R1_FB15_Msk /*!<Filter bit 15 */
  2303. #define CAN_F4R1_FB16_Pos (16U)
  2304. #define CAN_F4R1_FB16_Msk (0x1U << CAN_F4R1_FB16_Pos) /*!< 0x00010000 */
  2305. #define CAN_F4R1_FB16 CAN_F4R1_FB16_Msk /*!<Filter bit 16 */
  2306. #define CAN_F4R1_FB17_Pos (17U)
  2307. #define CAN_F4R1_FB17_Msk (0x1U << CAN_F4R1_FB17_Pos) /*!< 0x00020000 */
  2308. #define CAN_F4R1_FB17 CAN_F4R1_FB17_Msk /*!<Filter bit 17 */
  2309. #define CAN_F4R1_FB18_Pos (18U)
  2310. #define CAN_F4R1_FB18_Msk (0x1U << CAN_F4R1_FB18_Pos) /*!< 0x00040000 */
  2311. #define CAN_F4R1_FB18 CAN_F4R1_FB18_Msk /*!<Filter bit 18 */
  2312. #define CAN_F4R1_FB19_Pos (19U)
  2313. #define CAN_F4R1_FB19_Msk (0x1U << CAN_F4R1_FB19_Pos) /*!< 0x00080000 */
  2314. #define CAN_F4R1_FB19 CAN_F4R1_FB19_Msk /*!<Filter bit 19 */
  2315. #define CAN_F4R1_FB20_Pos (20U)
  2316. #define CAN_F4R1_FB20_Msk (0x1U << CAN_F4R1_FB20_Pos) /*!< 0x00100000 */
  2317. #define CAN_F4R1_FB20 CAN_F4R1_FB20_Msk /*!<Filter bit 20 */
  2318. #define CAN_F4R1_FB21_Pos (21U)
  2319. #define CAN_F4R1_FB21_Msk (0x1U << CAN_F4R1_FB21_Pos) /*!< 0x00200000 */
  2320. #define CAN_F4R1_FB21 CAN_F4R1_FB21_Msk /*!<Filter bit 21 */
  2321. #define CAN_F4R1_FB22_Pos (22U)
  2322. #define CAN_F4R1_FB22_Msk (0x1U << CAN_F4R1_FB22_Pos) /*!< 0x00400000 */
  2323. #define CAN_F4R1_FB22 CAN_F4R1_FB22_Msk /*!<Filter bit 22 */
  2324. #define CAN_F4R1_FB23_Pos (23U)
  2325. #define CAN_F4R1_FB23_Msk (0x1U << CAN_F4R1_FB23_Pos) /*!< 0x00800000 */
  2326. #define CAN_F4R1_FB23 CAN_F4R1_FB23_Msk /*!<Filter bit 23 */
  2327. #define CAN_F4R1_FB24_Pos (24U)
  2328. #define CAN_F4R1_FB24_Msk (0x1U << CAN_F4R1_FB24_Pos) /*!< 0x01000000 */
  2329. #define CAN_F4R1_FB24 CAN_F4R1_FB24_Msk /*!<Filter bit 24 */
  2330. #define CAN_F4R1_FB25_Pos (25U)
  2331. #define CAN_F4R1_FB25_Msk (0x1U << CAN_F4R1_FB25_Pos) /*!< 0x02000000 */
  2332. #define CAN_F4R1_FB25 CAN_F4R1_FB25_Msk /*!<Filter bit 25 */
  2333. #define CAN_F4R1_FB26_Pos (26U)
  2334. #define CAN_F4R1_FB26_Msk (0x1U << CAN_F4R1_FB26_Pos) /*!< 0x04000000 */
  2335. #define CAN_F4R1_FB26 CAN_F4R1_FB26_Msk /*!<Filter bit 26 */
  2336. #define CAN_F4R1_FB27_Pos (27U)
  2337. #define CAN_F4R1_FB27_Msk (0x1U << CAN_F4R1_FB27_Pos) /*!< 0x08000000 */
  2338. #define CAN_F4R1_FB27 CAN_F4R1_FB27_Msk /*!<Filter bit 27 */
  2339. #define CAN_F4R1_FB28_Pos (28U)
  2340. #define CAN_F4R1_FB28_Msk (0x1U << CAN_F4R1_FB28_Pos) /*!< 0x10000000 */
  2341. #define CAN_F4R1_FB28 CAN_F4R1_FB28_Msk /*!<Filter bit 28 */
  2342. #define CAN_F4R1_FB29_Pos (29U)
  2343. #define CAN_F4R1_FB29_Msk (0x1U << CAN_F4R1_FB29_Pos) /*!< 0x20000000 */
  2344. #define CAN_F4R1_FB29 CAN_F4R1_FB29_Msk /*!<Filter bit 29 */
  2345. #define CAN_F4R1_FB30_Pos (30U)
  2346. #define CAN_F4R1_FB30_Msk (0x1U << CAN_F4R1_FB30_Pos) /*!< 0x40000000 */
  2347. #define CAN_F4R1_FB30 CAN_F4R1_FB30_Msk /*!<Filter bit 30 */
  2348. #define CAN_F4R1_FB31_Pos (31U)
  2349. #define CAN_F4R1_FB31_Msk (0x1U << CAN_F4R1_FB31_Pos) /*!< 0x80000000 */
  2350. #define CAN_F4R1_FB31 CAN_F4R1_FB31_Msk /*!<Filter bit 31 */
  2351. /******************* Bit definition for CAN_F5R1 register *******************/
  2352. #define CAN_F5R1_FB0_Pos (0U)
  2353. #define CAN_F5R1_FB0_Msk (0x1U << CAN_F5R1_FB0_Pos) /*!< 0x00000001 */
  2354. #define CAN_F5R1_FB0 CAN_F5R1_FB0_Msk /*!<Filter bit 0 */
  2355. #define CAN_F5R1_FB1_Pos (1U)
  2356. #define CAN_F5R1_FB1_Msk (0x1U << CAN_F5R1_FB1_Pos) /*!< 0x00000002 */
  2357. #define CAN_F5R1_FB1 CAN_F5R1_FB1_Msk /*!<Filter bit 1 */
  2358. #define CAN_F5R1_FB2_Pos (2U)
  2359. #define CAN_F5R1_FB2_Msk (0x1U << CAN_F5R1_FB2_Pos) /*!< 0x00000004 */
  2360. #define CAN_F5R1_FB2 CAN_F5R1_FB2_Msk /*!<Filter bit 2 */
  2361. #define CAN_F5R1_FB3_Pos (3U)
  2362. #define CAN_F5R1_FB3_Msk (0x1U << CAN_F5R1_FB3_Pos) /*!< 0x00000008 */
  2363. #define CAN_F5R1_FB3 CAN_F5R1_FB3_Msk /*!<Filter bit 3 */
  2364. #define CAN_F5R1_FB4_Pos (4U)
  2365. #define CAN_F5R1_FB4_Msk (0x1U << CAN_F5R1_FB4_Pos) /*!< 0x00000010 */
  2366. #define CAN_F5R1_FB4 CAN_F5R1_FB4_Msk /*!<Filter bit 4 */
  2367. #define CAN_F5R1_FB5_Pos (5U)
  2368. #define CAN_F5R1_FB5_Msk (0x1U << CAN_F5R1_FB5_Pos) /*!< 0x00000020 */
  2369. #define CAN_F5R1_FB5 CAN_F5R1_FB5_Msk /*!<Filter bit 5 */
  2370. #define CAN_F5R1_FB6_Pos (6U)
  2371. #define CAN_F5R1_FB6_Msk (0x1U << CAN_F5R1_FB6_Pos) /*!< 0x00000040 */
  2372. #define CAN_F5R1_FB6 CAN_F5R1_FB6_Msk /*!<Filter bit 6 */
  2373. #define CAN_F5R1_FB7_Pos (7U)
  2374. #define CAN_F5R1_FB7_Msk (0x1U << CAN_F5R1_FB7_Pos) /*!< 0x00000080 */
  2375. #define CAN_F5R1_FB7 CAN_F5R1_FB7_Msk /*!<Filter bit 7 */
  2376. #define CAN_F5R1_FB8_Pos (8U)
  2377. #define CAN_F5R1_FB8_Msk (0x1U << CAN_F5R1_FB8_Pos) /*!< 0x00000100 */
  2378. #define CAN_F5R1_FB8 CAN_F5R1_FB8_Msk /*!<Filter bit 8 */
  2379. #define CAN_F5R1_FB9_Pos (9U)
  2380. #define CAN_F5R1_FB9_Msk (0x1U << CAN_F5R1_FB9_Pos) /*!< 0x00000200 */
  2381. #define CAN_F5R1_FB9 CAN_F5R1_FB9_Msk /*!<Filter bit 9 */
  2382. #define CAN_F5R1_FB10_Pos (10U)
  2383. #define CAN_F5R1_FB10_Msk (0x1U << CAN_F5R1_FB10_Pos) /*!< 0x00000400 */
  2384. #define CAN_F5R1_FB10 CAN_F5R1_FB10_Msk /*!<Filter bit 10 */
  2385. #define CAN_F5R1_FB11_Pos (11U)
  2386. #define CAN_F5R1_FB11_Msk (0x1U << CAN_F5R1_FB11_Pos) /*!< 0x00000800 */
  2387. #define CAN_F5R1_FB11 CAN_F5R1_FB11_Msk /*!<Filter bit 11 */
  2388. #define CAN_F5R1_FB12_Pos (12U)
  2389. #define CAN_F5R1_FB12_Msk (0x1U << CAN_F5R1_FB12_Pos) /*!< 0x00001000 */
  2390. #define CAN_F5R1_FB12 CAN_F5R1_FB12_Msk /*!<Filter bit 12 */
  2391. #define CAN_F5R1_FB13_Pos (13U)
  2392. #define CAN_F5R1_FB13_Msk (0x1U << CAN_F5R1_FB13_Pos) /*!< 0x00002000 */
  2393. #define CAN_F5R1_FB13 CAN_F5R1_FB13_Msk /*!<Filter bit 13 */
  2394. #define CAN_F5R1_FB14_Pos (14U)
  2395. #define CAN_F5R1_FB14_Msk (0x1U << CAN_F5R1_FB14_Pos) /*!< 0x00004000 */
  2396. #define CAN_F5R1_FB14 CAN_F5R1_FB14_Msk /*!<Filter bit 14 */
  2397. #define CAN_F5R1_FB15_Pos (15U)
  2398. #define CAN_F5R1_FB15_Msk (0x1U << CAN_F5R1_FB15_Pos) /*!< 0x00008000 */
  2399. #define CAN_F5R1_FB15 CAN_F5R1_FB15_Msk /*!<Filter bit 15 */
  2400. #define CAN_F5R1_FB16_Pos (16U)
  2401. #define CAN_F5R1_FB16_Msk (0x1U << CAN_F5R1_FB16_Pos) /*!< 0x00010000 */
  2402. #define CAN_F5R1_FB16 CAN_F5R1_FB16_Msk /*!<Filter bit 16 */
  2403. #define CAN_F5R1_FB17_Pos (17U)
  2404. #define CAN_F5R1_FB17_Msk (0x1U << CAN_F5R1_FB17_Pos) /*!< 0x00020000 */
  2405. #define CAN_F5R1_FB17 CAN_F5R1_FB17_Msk /*!<Filter bit 17 */
  2406. #define CAN_F5R1_FB18_Pos (18U)
  2407. #define CAN_F5R1_FB18_Msk (0x1U << CAN_F5R1_FB18_Pos) /*!< 0x00040000 */
  2408. #define CAN_F5R1_FB18 CAN_F5R1_FB18_Msk /*!<Filter bit 18 */
  2409. #define CAN_F5R1_FB19_Pos (19U)
  2410. #define CAN_F5R1_FB19_Msk (0x1U << CAN_F5R1_FB19_Pos) /*!< 0x00080000 */
  2411. #define CAN_F5R1_FB19 CAN_F5R1_FB19_Msk /*!<Filter bit 19 */
  2412. #define CAN_F5R1_FB20_Pos (20U)
  2413. #define CAN_F5R1_FB20_Msk (0x1U << CAN_F5R1_FB20_Pos) /*!< 0x00100000 */
  2414. #define CAN_F5R1_FB20 CAN_F5R1_FB20_Msk /*!<Filter bit 20 */
  2415. #define CAN_F5R1_FB21_Pos (21U)
  2416. #define CAN_F5R1_FB21_Msk (0x1U << CAN_F5R1_FB21_Pos) /*!< 0x00200000 */
  2417. #define CAN_F5R1_FB21 CAN_F5R1_FB21_Msk /*!<Filter bit 21 */
  2418. #define CAN_F5R1_FB22_Pos (22U)
  2419. #define CAN_F5R1_FB22_Msk (0x1U << CAN_F5R1_FB22_Pos) /*!< 0x00400000 */
  2420. #define CAN_F5R1_FB22 CAN_F5R1_FB22_Msk /*!<Filter bit 22 */
  2421. #define CAN_F5R1_FB23_Pos (23U)
  2422. #define CAN_F5R1_FB23_Msk (0x1U << CAN_F5R1_FB23_Pos) /*!< 0x00800000 */
  2423. #define CAN_F5R1_FB23 CAN_F5R1_FB23_Msk /*!<Filter bit 23 */
  2424. #define CAN_F5R1_FB24_Pos (24U)
  2425. #define CAN_F5R1_FB24_Msk (0x1U << CAN_F5R1_FB24_Pos) /*!< 0x01000000 */
  2426. #define CAN_F5R1_FB24 CAN_F5R1_FB24_Msk /*!<Filter bit 24 */
  2427. #define CAN_F5R1_FB25_Pos (25U)
  2428. #define CAN_F5R1_FB25_Msk (0x1U << CAN_F5R1_FB25_Pos) /*!< 0x02000000 */
  2429. #define CAN_F5R1_FB25 CAN_F5R1_FB25_Msk /*!<Filter bit 25 */
  2430. #define CAN_F5R1_FB26_Pos (26U)
  2431. #define CAN_F5R1_FB26_Msk (0x1U << CAN_F5R1_FB26_Pos) /*!< 0x04000000 */
  2432. #define CAN_F5R1_FB26 CAN_F5R1_FB26_Msk /*!<Filter bit 26 */
  2433. #define CAN_F5R1_FB27_Pos (27U)
  2434. #define CAN_F5R1_FB27_Msk (0x1U << CAN_F5R1_FB27_Pos) /*!< 0x08000000 */
  2435. #define CAN_F5R1_FB27 CAN_F5R1_FB27_Msk /*!<Filter bit 27 */
  2436. #define CAN_F5R1_FB28_Pos (28U)
  2437. #define CAN_F5R1_FB28_Msk (0x1U << CAN_F5R1_FB28_Pos) /*!< 0x10000000 */
  2438. #define CAN_F5R1_FB28 CAN_F5R1_FB28_Msk /*!<Filter bit 28 */
  2439. #define CAN_F5R1_FB29_Pos (29U)
  2440. #define CAN_F5R1_FB29_Msk (0x1U << CAN_F5R1_FB29_Pos) /*!< 0x20000000 */
  2441. #define CAN_F5R1_FB29 CAN_F5R1_FB29_Msk /*!<Filter bit 29 */
  2442. #define CAN_F5R1_FB30_Pos (30U)
  2443. #define CAN_F5R1_FB30_Msk (0x1U << CAN_F5R1_FB30_Pos) /*!< 0x40000000 */
  2444. #define CAN_F5R1_FB30 CAN_F5R1_FB30_Msk /*!<Filter bit 30 */
  2445. #define CAN_F5R1_FB31_Pos (31U)
  2446. #define CAN_F5R1_FB31_Msk (0x1U << CAN_F5R1_FB31_Pos) /*!< 0x80000000 */
  2447. #define CAN_F5R1_FB31 CAN_F5R1_FB31_Msk /*!<Filter bit 31 */
  2448. /******************* Bit definition for CAN_F6R1 register *******************/
  2449. #define CAN_F6R1_FB0_Pos (0U)
  2450. #define CAN_F6R1_FB0_Msk (0x1U << CAN_F6R1_FB0_Pos) /*!< 0x00000001 */
  2451. #define CAN_F6R1_FB0 CAN_F6R1_FB0_Msk /*!<Filter bit 0 */
  2452. #define CAN_F6R1_FB1_Pos (1U)
  2453. #define CAN_F6R1_FB1_Msk (0x1U << CAN_F6R1_FB1_Pos) /*!< 0x00000002 */
  2454. #define CAN_F6R1_FB1 CAN_F6R1_FB1_Msk /*!<Filter bit 1 */
  2455. #define CAN_F6R1_FB2_Pos (2U)
  2456. #define CAN_F6R1_FB2_Msk (0x1U << CAN_F6R1_FB2_Pos) /*!< 0x00000004 */
  2457. #define CAN_F6R1_FB2 CAN_F6R1_FB2_Msk /*!<Filter bit 2 */
  2458. #define CAN_F6R1_FB3_Pos (3U)
  2459. #define CAN_F6R1_FB3_Msk (0x1U << CAN_F6R1_FB3_Pos) /*!< 0x00000008 */
  2460. #define CAN_F6R1_FB3 CAN_F6R1_FB3_Msk /*!<Filter bit 3 */
  2461. #define CAN_F6R1_FB4_Pos (4U)
  2462. #define CAN_F6R1_FB4_Msk (0x1U << CAN_F6R1_FB4_Pos) /*!< 0x00000010 */
  2463. #define CAN_F6R1_FB4 CAN_F6R1_FB4_Msk /*!<Filter bit 4 */
  2464. #define CAN_F6R1_FB5_Pos (5U)
  2465. #define CAN_F6R1_FB5_Msk (0x1U << CAN_F6R1_FB5_Pos) /*!< 0x00000020 */
  2466. #define CAN_F6R1_FB5 CAN_F6R1_FB5_Msk /*!<Filter bit 5 */
  2467. #define CAN_F6R1_FB6_Pos (6U)
  2468. #define CAN_F6R1_FB6_Msk (0x1U << CAN_F6R1_FB6_Pos) /*!< 0x00000040 */
  2469. #define CAN_F6R1_FB6 CAN_F6R1_FB6_Msk /*!<Filter bit 6 */
  2470. #define CAN_F6R1_FB7_Pos (7U)
  2471. #define CAN_F6R1_FB7_Msk (0x1U << CAN_F6R1_FB7_Pos) /*!< 0x00000080 */
  2472. #define CAN_F6R1_FB7 CAN_F6R1_FB7_Msk /*!<Filter bit 7 */
  2473. #define CAN_F6R1_FB8_Pos (8U)
  2474. #define CAN_F6R1_FB8_Msk (0x1U << CAN_F6R1_FB8_Pos) /*!< 0x00000100 */
  2475. #define CAN_F6R1_FB8 CAN_F6R1_FB8_Msk /*!<Filter bit 8 */
  2476. #define CAN_F6R1_FB9_Pos (9U)
  2477. #define CAN_F6R1_FB9_Msk (0x1U << CAN_F6R1_FB9_Pos) /*!< 0x00000200 */
  2478. #define CAN_F6R1_FB9 CAN_F6R1_FB9_Msk /*!<Filter bit 9 */
  2479. #define CAN_F6R1_FB10_Pos (10U)
  2480. #define CAN_F6R1_FB10_Msk (0x1U << CAN_F6R1_FB10_Pos) /*!< 0x00000400 */
  2481. #define CAN_F6R1_FB10 CAN_F6R1_FB10_Msk /*!<Filter bit 10 */
  2482. #define CAN_F6R1_FB11_Pos (11U)
  2483. #define CAN_F6R1_FB11_Msk (0x1U << CAN_F6R1_FB11_Pos) /*!< 0x00000800 */
  2484. #define CAN_F6R1_FB11 CAN_F6R1_FB11_Msk /*!<Filter bit 11 */
  2485. #define CAN_F6R1_FB12_Pos (12U)
  2486. #define CAN_F6R1_FB12_Msk (0x1U << CAN_F6R1_FB12_Pos) /*!< 0x00001000 */
  2487. #define CAN_F6R1_FB12 CAN_F6R1_FB12_Msk /*!<Filter bit 12 */
  2488. #define CAN_F6R1_FB13_Pos (13U)
  2489. #define CAN_F6R1_FB13_Msk (0x1U << CAN_F6R1_FB13_Pos) /*!< 0x00002000 */
  2490. #define CAN_F6R1_FB13 CAN_F6R1_FB13_Msk /*!<Filter bit 13 */
  2491. #define CAN_F6R1_FB14_Pos (14U)
  2492. #define CAN_F6R1_FB14_Msk (0x1U << CAN_F6R1_FB14_Pos) /*!< 0x00004000 */
  2493. #define CAN_F6R1_FB14 CAN_F6R1_FB14_Msk /*!<Filter bit 14 */
  2494. #define CAN_F6R1_FB15_Pos (15U)
  2495. #define CAN_F6R1_FB15_Msk (0x1U << CAN_F6R1_FB15_Pos) /*!< 0x00008000 */
  2496. #define CAN_F6R1_FB15 CAN_F6R1_FB15_Msk /*!<Filter bit 15 */
  2497. #define CAN_F6R1_FB16_Pos (16U)
  2498. #define CAN_F6R1_FB16_Msk (0x1U << CAN_F6R1_FB16_Pos) /*!< 0x00010000 */
  2499. #define CAN_F6R1_FB16 CAN_F6R1_FB16_Msk /*!<Filter bit 16 */
  2500. #define CAN_F6R1_FB17_Pos (17U)
  2501. #define CAN_F6R1_FB17_Msk (0x1U << CAN_F6R1_FB17_Pos) /*!< 0x00020000 */
  2502. #define CAN_F6R1_FB17 CAN_F6R1_FB17_Msk /*!<Filter bit 17 */
  2503. #define CAN_F6R1_FB18_Pos (18U)
  2504. #define CAN_F6R1_FB18_Msk (0x1U << CAN_F6R1_FB18_Pos) /*!< 0x00040000 */
  2505. #define CAN_F6R1_FB18 CAN_F6R1_FB18_Msk /*!<Filter bit 18 */
  2506. #define CAN_F6R1_FB19_Pos (19U)
  2507. #define CAN_F6R1_FB19_Msk (0x1U << CAN_F6R1_FB19_Pos) /*!< 0x00080000 */
  2508. #define CAN_F6R1_FB19 CAN_F6R1_FB19_Msk /*!<Filter bit 19 */
  2509. #define CAN_F6R1_FB20_Pos (20U)
  2510. #define CAN_F6R1_FB20_Msk (0x1U << CAN_F6R1_FB20_Pos) /*!< 0x00100000 */
  2511. #define CAN_F6R1_FB20 CAN_F6R1_FB20_Msk /*!<Filter bit 20 */
  2512. #define CAN_F6R1_FB21_Pos (21U)
  2513. #define CAN_F6R1_FB21_Msk (0x1U << CAN_F6R1_FB21_Pos) /*!< 0x00200000 */
  2514. #define CAN_F6R1_FB21 CAN_F6R1_FB21_Msk /*!<Filter bit 21 */
  2515. #define CAN_F6R1_FB22_Pos (22U)
  2516. #define CAN_F6R1_FB22_Msk (0x1U << CAN_F6R1_FB22_Pos) /*!< 0x00400000 */
  2517. #define CAN_F6R1_FB22 CAN_F6R1_FB22_Msk /*!<Filter bit 22 */
  2518. #define CAN_F6R1_FB23_Pos (23U)
  2519. #define CAN_F6R1_FB23_Msk (0x1U << CAN_F6R1_FB23_Pos) /*!< 0x00800000 */
  2520. #define CAN_F6R1_FB23 CAN_F6R1_FB23_Msk /*!<Filter bit 23 */
  2521. #define CAN_F6R1_FB24_Pos (24U)
  2522. #define CAN_F6R1_FB24_Msk (0x1U << CAN_F6R1_FB24_Pos) /*!< 0x01000000 */
  2523. #define CAN_F6R1_FB24 CAN_F6R1_FB24_Msk /*!<Filter bit 24 */
  2524. #define CAN_F6R1_FB25_Pos (25U)
  2525. #define CAN_F6R1_FB25_Msk (0x1U << CAN_F6R1_FB25_Pos) /*!< 0x02000000 */
  2526. #define CAN_F6R1_FB25 CAN_F6R1_FB25_Msk /*!<Filter bit 25 */
  2527. #define CAN_F6R1_FB26_Pos (26U)
  2528. #define CAN_F6R1_FB26_Msk (0x1U << CAN_F6R1_FB26_Pos) /*!< 0x04000000 */
  2529. #define CAN_F6R1_FB26 CAN_F6R1_FB26_Msk /*!<Filter bit 26 */
  2530. #define CAN_F6R1_FB27_Pos (27U)
  2531. #define CAN_F6R1_FB27_Msk (0x1U << CAN_F6R1_FB27_Pos) /*!< 0x08000000 */
  2532. #define CAN_F6R1_FB27 CAN_F6R1_FB27_Msk /*!<Filter bit 27 */
  2533. #define CAN_F6R1_FB28_Pos (28U)
  2534. #define CAN_F6R1_FB28_Msk (0x1U << CAN_F6R1_FB28_Pos) /*!< 0x10000000 */
  2535. #define CAN_F6R1_FB28 CAN_F6R1_FB28_Msk /*!<Filter bit 28 */
  2536. #define CAN_F6R1_FB29_Pos (29U)
  2537. #define CAN_F6R1_FB29_Msk (0x1U << CAN_F6R1_FB29_Pos) /*!< 0x20000000 */
  2538. #define CAN_F6R1_FB29 CAN_F6R1_FB29_Msk /*!<Filter bit 29 */
  2539. #define CAN_F6R1_FB30_Pos (30U)
  2540. #define CAN_F6R1_FB30_Msk (0x1U << CAN_F6R1_FB30_Pos) /*!< 0x40000000 */
  2541. #define CAN_F6R1_FB30 CAN_F6R1_FB30_Msk /*!<Filter bit 30 */
  2542. #define CAN_F6R1_FB31_Pos (31U)
  2543. #define CAN_F6R1_FB31_Msk (0x1U << CAN_F6R1_FB31_Pos) /*!< 0x80000000 */
  2544. #define CAN_F6R1_FB31 CAN_F6R1_FB31_Msk /*!<Filter bit 31 */
  2545. /******************* Bit definition for CAN_F7R1 register *******************/
  2546. #define CAN_F7R1_FB0_Pos (0U)
  2547. #define CAN_F7R1_FB0_Msk (0x1U << CAN_F7R1_FB0_Pos) /*!< 0x00000001 */
  2548. #define CAN_F7R1_FB0 CAN_F7R1_FB0_Msk /*!<Filter bit 0 */
  2549. #define CAN_F7R1_FB1_Pos (1U)
  2550. #define CAN_F7R1_FB1_Msk (0x1U << CAN_F7R1_FB1_Pos) /*!< 0x00000002 */
  2551. #define CAN_F7R1_FB1 CAN_F7R1_FB1_Msk /*!<Filter bit 1 */
  2552. #define CAN_F7R1_FB2_Pos (2U)
  2553. #define CAN_F7R1_FB2_Msk (0x1U << CAN_F7R1_FB2_Pos) /*!< 0x00000004 */
  2554. #define CAN_F7R1_FB2 CAN_F7R1_FB2_Msk /*!<Filter bit 2 */
  2555. #define CAN_F7R1_FB3_Pos (3U)
  2556. #define CAN_F7R1_FB3_Msk (0x1U << CAN_F7R1_FB3_Pos) /*!< 0x00000008 */
  2557. #define CAN_F7R1_FB3 CAN_F7R1_FB3_Msk /*!<Filter bit 3 */
  2558. #define CAN_F7R1_FB4_Pos (4U)
  2559. #define CAN_F7R1_FB4_Msk (0x1U << CAN_F7R1_FB4_Pos) /*!< 0x00000010 */
  2560. #define CAN_F7R1_FB4 CAN_F7R1_FB4_Msk /*!<Filter bit 4 */
  2561. #define CAN_F7R1_FB5_Pos (5U)
  2562. #define CAN_F7R1_FB5_Msk (0x1U << CAN_F7R1_FB5_Pos) /*!< 0x00000020 */
  2563. #define CAN_F7R1_FB5 CAN_F7R1_FB5_Msk /*!<Filter bit 5 */
  2564. #define CAN_F7R1_FB6_Pos (6U)
  2565. #define CAN_F7R1_FB6_Msk (0x1U << CAN_F7R1_FB6_Pos) /*!< 0x00000040 */
  2566. #define CAN_F7R1_FB6 CAN_F7R1_FB6_Msk /*!<Filter bit 6 */
  2567. #define CAN_F7R1_FB7_Pos (7U)
  2568. #define CAN_F7R1_FB7_Msk (0x1U << CAN_F7R1_FB7_Pos) /*!< 0x00000080 */
  2569. #define CAN_F7R1_FB7 CAN_F7R1_FB7_Msk /*!<Filter bit 7 */
  2570. #define CAN_F7R1_FB8_Pos (8U)
  2571. #define CAN_F7R1_FB8_Msk (0x1U << CAN_F7R1_FB8_Pos) /*!< 0x00000100 */
  2572. #define CAN_F7R1_FB8 CAN_F7R1_FB8_Msk /*!<Filter bit 8 */
  2573. #define CAN_F7R1_FB9_Pos (9U)
  2574. #define CAN_F7R1_FB9_Msk (0x1U << CAN_F7R1_FB9_Pos) /*!< 0x00000200 */
  2575. #define CAN_F7R1_FB9 CAN_F7R1_FB9_Msk /*!<Filter bit 9 */
  2576. #define CAN_F7R1_FB10_Pos (10U)
  2577. #define CAN_F7R1_FB10_Msk (0x1U << CAN_F7R1_FB10_Pos) /*!< 0x00000400 */
  2578. #define CAN_F7R1_FB10 CAN_F7R1_FB10_Msk /*!<Filter bit 10 */
  2579. #define CAN_F7R1_FB11_Pos (11U)
  2580. #define CAN_F7R1_FB11_Msk (0x1U << CAN_F7R1_FB11_Pos) /*!< 0x00000800 */
  2581. #define CAN_F7R1_FB11 CAN_F7R1_FB11_Msk /*!<Filter bit 11 */
  2582. #define CAN_F7R1_FB12_Pos (12U)
  2583. #define CAN_F7R1_FB12_Msk (0x1U << CAN_F7R1_FB12_Pos) /*!< 0x00001000 */
  2584. #define CAN_F7R1_FB12 CAN_F7R1_FB12_Msk /*!<Filter bit 12 */
  2585. #define CAN_F7R1_FB13_Pos (13U)
  2586. #define CAN_F7R1_FB13_Msk (0x1U << CAN_F7R1_FB13_Pos) /*!< 0x00002000 */
  2587. #define CAN_F7R1_FB13 CAN_F7R1_FB13_Msk /*!<Filter bit 13 */
  2588. #define CAN_F7R1_FB14_Pos (14U)
  2589. #define CAN_F7R1_FB14_Msk (0x1U << CAN_F7R1_FB14_Pos) /*!< 0x00004000 */
  2590. #define CAN_F7R1_FB14 CAN_F7R1_FB14_Msk /*!<Filter bit 14 */
  2591. #define CAN_F7R1_FB15_Pos (15U)
  2592. #define CAN_F7R1_FB15_Msk (0x1U << CAN_F7R1_FB15_Pos) /*!< 0x00008000 */
  2593. #define CAN_F7R1_FB15 CAN_F7R1_FB15_Msk /*!<Filter bit 15 */
  2594. #define CAN_F7R1_FB16_Pos (16U)
  2595. #define CAN_F7R1_FB16_Msk (0x1U << CAN_F7R1_FB16_Pos) /*!< 0x00010000 */
  2596. #define CAN_F7R1_FB16 CAN_F7R1_FB16_Msk /*!<Filter bit 16 */
  2597. #define CAN_F7R1_FB17_Pos (17U)
  2598. #define CAN_F7R1_FB17_Msk (0x1U << CAN_F7R1_FB17_Pos) /*!< 0x00020000 */
  2599. #define CAN_F7R1_FB17 CAN_F7R1_FB17_Msk /*!<Filter bit 17 */
  2600. #define CAN_F7R1_FB18_Pos (18U)
  2601. #define CAN_F7R1_FB18_Msk (0x1U << CAN_F7R1_FB18_Pos) /*!< 0x00040000 */
  2602. #define CAN_F7R1_FB18 CAN_F7R1_FB18_Msk /*!<Filter bit 18 */
  2603. #define CAN_F7R1_FB19_Pos (19U)
  2604. #define CAN_F7R1_FB19_Msk (0x1U << CAN_F7R1_FB19_Pos) /*!< 0x00080000 */
  2605. #define CAN_F7R1_FB19 CAN_F7R1_FB19_Msk /*!<Filter bit 19 */
  2606. #define CAN_F7R1_FB20_Pos (20U)
  2607. #define CAN_F7R1_FB20_Msk (0x1U << CAN_F7R1_FB20_Pos) /*!< 0x00100000 */
  2608. #define CAN_F7R1_FB20 CAN_F7R1_FB20_Msk /*!<Filter bit 20 */
  2609. #define CAN_F7R1_FB21_Pos (21U)
  2610. #define CAN_F7R1_FB21_Msk (0x1U << CAN_F7R1_FB21_Pos) /*!< 0x00200000 */
  2611. #define CAN_F7R1_FB21 CAN_F7R1_FB21_Msk /*!<Filter bit 21 */
  2612. #define CAN_F7R1_FB22_Pos (22U)
  2613. #define CAN_F7R1_FB22_Msk (0x1U << CAN_F7R1_FB22_Pos) /*!< 0x00400000 */
  2614. #define CAN_F7R1_FB22 CAN_F7R1_FB22_Msk /*!<Filter bit 22 */
  2615. #define CAN_F7R1_FB23_Pos (23U)
  2616. #define CAN_F7R1_FB23_Msk (0x1U << CAN_F7R1_FB23_Pos) /*!< 0x00800000 */
  2617. #define CAN_F7R1_FB23 CAN_F7R1_FB23_Msk /*!<Filter bit 23 */
  2618. #define CAN_F7R1_FB24_Pos (24U)
  2619. #define CAN_F7R1_FB24_Msk (0x1U << CAN_F7R1_FB24_Pos) /*!< 0x01000000 */
  2620. #define CAN_F7R1_FB24 CAN_F7R1_FB24_Msk /*!<Filter bit 24 */
  2621. #define CAN_F7R1_FB25_Pos (25U)
  2622. #define CAN_F7R1_FB25_Msk (0x1U << CAN_F7R1_FB25_Pos) /*!< 0x02000000 */
  2623. #define CAN_F7R1_FB25 CAN_F7R1_FB25_Msk /*!<Filter bit 25 */
  2624. #define CAN_F7R1_FB26_Pos (26U)
  2625. #define CAN_F7R1_FB26_Msk (0x1U << CAN_F7R1_FB26_Pos) /*!< 0x04000000 */
  2626. #define CAN_F7R1_FB26 CAN_F7R1_FB26_Msk /*!<Filter bit 26 */
  2627. #define CAN_F7R1_FB27_Pos (27U)
  2628. #define CAN_F7R1_FB27_Msk (0x1U << CAN_F7R1_FB27_Pos) /*!< 0x08000000 */
  2629. #define CAN_F7R1_FB27 CAN_F7R1_FB27_Msk /*!<Filter bit 27 */
  2630. #define CAN_F7R1_FB28_Pos (28U)
  2631. #define CAN_F7R1_FB28_Msk (0x1U << CAN_F7R1_FB28_Pos) /*!< 0x10000000 */
  2632. #define CAN_F7R1_FB28 CAN_F7R1_FB28_Msk /*!<Filter bit 28 */
  2633. #define CAN_F7R1_FB29_Pos (29U)
  2634. #define CAN_F7R1_FB29_Msk (0x1U << CAN_F7R1_FB29_Pos) /*!< 0x20000000 */
  2635. #define CAN_F7R1_FB29 CAN_F7R1_FB29_Msk /*!<Filter bit 29 */
  2636. #define CAN_F7R1_FB30_Pos (30U)
  2637. #define CAN_F7R1_FB30_Msk (0x1U << CAN_F7R1_FB30_Pos) /*!< 0x40000000 */
  2638. #define CAN_F7R1_FB30 CAN_F7R1_FB30_Msk /*!<Filter bit 30 */
  2639. #define CAN_F7R1_FB31_Pos (31U)
  2640. #define CAN_F7R1_FB31_Msk (0x1U << CAN_F7R1_FB31_Pos) /*!< 0x80000000 */
  2641. #define CAN_F7R1_FB31 CAN_F7R1_FB31_Msk /*!<Filter bit 31 */
  2642. /******************* Bit definition for CAN_F8R1 register *******************/
  2643. #define CAN_F8R1_FB0_Pos (0U)
  2644. #define CAN_F8R1_FB0_Msk (0x1U << CAN_F8R1_FB0_Pos) /*!< 0x00000001 */
  2645. #define CAN_F8R1_FB0 CAN_F8R1_FB0_Msk /*!<Filter bit 0 */
  2646. #define CAN_F8R1_FB1_Pos (1U)
  2647. #define CAN_F8R1_FB1_Msk (0x1U << CAN_F8R1_FB1_Pos) /*!< 0x00000002 */
  2648. #define CAN_F8R1_FB1 CAN_F8R1_FB1_Msk /*!<Filter bit 1 */
  2649. #define CAN_F8R1_FB2_Pos (2U)
  2650. #define CAN_F8R1_FB2_Msk (0x1U << CAN_F8R1_FB2_Pos) /*!< 0x00000004 */
  2651. #define CAN_F8R1_FB2 CAN_F8R1_FB2_Msk /*!<Filter bit 2 */
  2652. #define CAN_F8R1_FB3_Pos (3U)
  2653. #define CAN_F8R1_FB3_Msk (0x1U << CAN_F8R1_FB3_Pos) /*!< 0x00000008 */
  2654. #define CAN_F8R1_FB3 CAN_F8R1_FB3_Msk /*!<Filter bit 3 */
  2655. #define CAN_F8R1_FB4_Pos (4U)
  2656. #define CAN_F8R1_FB4_Msk (0x1U << CAN_F8R1_FB4_Pos) /*!< 0x00000010 */
  2657. #define CAN_F8R1_FB4 CAN_F8R1_FB4_Msk /*!<Filter bit 4 */
  2658. #define CAN_F8R1_FB5_Pos (5U)
  2659. #define CAN_F8R1_FB5_Msk (0x1U << CAN_F8R1_FB5_Pos) /*!< 0x00000020 */
  2660. #define CAN_F8R1_FB5 CAN_F8R1_FB5_Msk /*!<Filter bit 5 */
  2661. #define CAN_F8R1_FB6_Pos (6U)
  2662. #define CAN_F8R1_FB6_Msk (0x1U << CAN_F8R1_FB6_Pos) /*!< 0x00000040 */
  2663. #define CAN_F8R1_FB6 CAN_F8R1_FB6_Msk /*!<Filter bit 6 */
  2664. #define CAN_F8R1_FB7_Pos (7U)
  2665. #define CAN_F8R1_FB7_Msk (0x1U << CAN_F8R1_FB7_Pos) /*!< 0x00000080 */
  2666. #define CAN_F8R1_FB7 CAN_F8R1_FB7_Msk /*!<Filter bit 7 */
  2667. #define CAN_F8R1_FB8_Pos (8U)
  2668. #define CAN_F8R1_FB8_Msk (0x1U << CAN_F8R1_FB8_Pos) /*!< 0x00000100 */
  2669. #define CAN_F8R1_FB8 CAN_F8R1_FB8_Msk /*!<Filter bit 8 */
  2670. #define CAN_F8R1_FB9_Pos (9U)
  2671. #define CAN_F8R1_FB9_Msk (0x1U << CAN_F8R1_FB9_Pos) /*!< 0x00000200 */
  2672. #define CAN_F8R1_FB9 CAN_F8R1_FB9_Msk /*!<Filter bit 9 */
  2673. #define CAN_F8R1_FB10_Pos (10U)
  2674. #define CAN_F8R1_FB10_Msk (0x1U << CAN_F8R1_FB10_Pos) /*!< 0x00000400 */
  2675. #define CAN_F8R1_FB10 CAN_F8R1_FB10_Msk /*!<Filter bit 10 */
  2676. #define CAN_F8R1_FB11_Pos (11U)
  2677. #define CAN_F8R1_FB11_Msk (0x1U << CAN_F8R1_FB11_Pos) /*!< 0x00000800 */
  2678. #define CAN_F8R1_FB11 CAN_F8R1_FB11_Msk /*!<Filter bit 11 */
  2679. #define CAN_F8R1_FB12_Pos (12U)
  2680. #define CAN_F8R1_FB12_Msk (0x1U << CAN_F8R1_FB12_Pos) /*!< 0x00001000 */
  2681. #define CAN_F8R1_FB12 CAN_F8R1_FB12_Msk /*!<Filter bit 12 */
  2682. #define CAN_F8R1_FB13_Pos (13U)
  2683. #define CAN_F8R1_FB13_Msk (0x1U << CAN_F8R1_FB13_Pos) /*!< 0x00002000 */
  2684. #define CAN_F8R1_FB13 CAN_F8R1_FB13_Msk /*!<Filter bit 13 */
  2685. #define CAN_F8R1_FB14_Pos (14U)
  2686. #define CAN_F8R1_FB14_Msk (0x1U << CAN_F8R1_FB14_Pos) /*!< 0x00004000 */
  2687. #define CAN_F8R1_FB14 CAN_F8R1_FB14_Msk /*!<Filter bit 14 */
  2688. #define CAN_F8R1_FB15_Pos (15U)
  2689. #define CAN_F8R1_FB15_Msk (0x1U << CAN_F8R1_FB15_Pos) /*!< 0x00008000 */
  2690. #define CAN_F8R1_FB15 CAN_F8R1_FB15_Msk /*!<Filter bit 15 */
  2691. #define CAN_F8R1_FB16_Pos (16U)
  2692. #define CAN_F8R1_FB16_Msk (0x1U << CAN_F8R1_FB16_Pos) /*!< 0x00010000 */
  2693. #define CAN_F8R1_FB16 CAN_F8R1_FB16_Msk /*!<Filter bit 16 */
  2694. #define CAN_F8R1_FB17_Pos (17U)
  2695. #define CAN_F8R1_FB17_Msk (0x1U << CAN_F8R1_FB17_Pos) /*!< 0x00020000 */
  2696. #define CAN_F8R1_FB17 CAN_F8R1_FB17_Msk /*!<Filter bit 17 */
  2697. #define CAN_F8R1_FB18_Pos (18U)
  2698. #define CAN_F8R1_FB18_Msk (0x1U << CAN_F8R1_FB18_Pos) /*!< 0x00040000 */
  2699. #define CAN_F8R1_FB18 CAN_F8R1_FB18_Msk /*!<Filter bit 18 */
  2700. #define CAN_F8R1_FB19_Pos (19U)
  2701. #define CAN_F8R1_FB19_Msk (0x1U << CAN_F8R1_FB19_Pos) /*!< 0x00080000 */
  2702. #define CAN_F8R1_FB19 CAN_F8R1_FB19_Msk /*!<Filter bit 19 */
  2703. #define CAN_F8R1_FB20_Pos (20U)
  2704. #define CAN_F8R1_FB20_Msk (0x1U << CAN_F8R1_FB20_Pos) /*!< 0x00100000 */
  2705. #define CAN_F8R1_FB20 CAN_F8R1_FB20_Msk /*!<Filter bit 20 */
  2706. #define CAN_F8R1_FB21_Pos (21U)
  2707. #define CAN_F8R1_FB21_Msk (0x1U << CAN_F8R1_FB21_Pos) /*!< 0x00200000 */
  2708. #define CAN_F8R1_FB21 CAN_F8R1_FB21_Msk /*!<Filter bit 21 */
  2709. #define CAN_F8R1_FB22_Pos (22U)
  2710. #define CAN_F8R1_FB22_Msk (0x1U << CAN_F8R1_FB22_Pos) /*!< 0x00400000 */
  2711. #define CAN_F8R1_FB22 CAN_F8R1_FB22_Msk /*!<Filter bit 22 */
  2712. #define CAN_F8R1_FB23_Pos (23U)
  2713. #define CAN_F8R1_FB23_Msk (0x1U << CAN_F8R1_FB23_Pos) /*!< 0x00800000 */
  2714. #define CAN_F8R1_FB23 CAN_F8R1_FB23_Msk /*!<Filter bit 23 */
  2715. #define CAN_F8R1_FB24_Pos (24U)
  2716. #define CAN_F8R1_FB24_Msk (0x1U << CAN_F8R1_FB24_Pos) /*!< 0x01000000 */
  2717. #define CAN_F8R1_FB24 CAN_F8R1_FB24_Msk /*!<Filter bit 24 */
  2718. #define CAN_F8R1_FB25_Pos (25U)
  2719. #define CAN_F8R1_FB25_Msk (0x1U << CAN_F8R1_FB25_Pos) /*!< 0x02000000 */
  2720. #define CAN_F8R1_FB25 CAN_F8R1_FB25_Msk /*!<Filter bit 25 */
  2721. #define CAN_F8R1_FB26_Pos (26U)
  2722. #define CAN_F8R1_FB26_Msk (0x1U << CAN_F8R1_FB26_Pos) /*!< 0x04000000 */
  2723. #define CAN_F8R1_FB26 CAN_F8R1_FB26_Msk /*!<Filter bit 26 */
  2724. #define CAN_F8R1_FB27_Pos (27U)
  2725. #define CAN_F8R1_FB27_Msk (0x1U << CAN_F8R1_FB27_Pos) /*!< 0x08000000 */
  2726. #define CAN_F8R1_FB27 CAN_F8R1_FB27_Msk /*!<Filter bit 27 */
  2727. #define CAN_F8R1_FB28_Pos (28U)
  2728. #define CAN_F8R1_FB28_Msk (0x1U << CAN_F8R1_FB28_Pos) /*!< 0x10000000 */
  2729. #define CAN_F8R1_FB28 CAN_F8R1_FB28_Msk /*!<Filter bit 28 */
  2730. #define CAN_F8R1_FB29_Pos (29U)
  2731. #define CAN_F8R1_FB29_Msk (0x1U << CAN_F8R1_FB29_Pos) /*!< 0x20000000 */
  2732. #define CAN_F8R1_FB29 CAN_F8R1_FB29_Msk /*!<Filter bit 29 */
  2733. #define CAN_F8R1_FB30_Pos (30U)
  2734. #define CAN_F8R1_FB30_Msk (0x1U << CAN_F8R1_FB30_Pos) /*!< 0x40000000 */
  2735. #define CAN_F8R1_FB30 CAN_F8R1_FB30_Msk /*!<Filter bit 30 */
  2736. #define CAN_F8R1_FB31_Pos (31U)
  2737. #define CAN_F8R1_FB31_Msk (0x1U << CAN_F8R1_FB31_Pos) /*!< 0x80000000 */
  2738. #define CAN_F8R1_FB31 CAN_F8R1_FB31_Msk /*!<Filter bit 31 */
  2739. /******************* Bit definition for CAN_F9R1 register *******************/
  2740. #define CAN_F9R1_FB0_Pos (0U)
  2741. #define CAN_F9R1_FB0_Msk (0x1U << CAN_F9R1_FB0_Pos) /*!< 0x00000001 */
  2742. #define CAN_F9R1_FB0 CAN_F9R1_FB0_Msk /*!<Filter bit 0 */
  2743. #define CAN_F9R1_FB1_Pos (1U)
  2744. #define CAN_F9R1_FB1_Msk (0x1U << CAN_F9R1_FB1_Pos) /*!< 0x00000002 */
  2745. #define CAN_F9R1_FB1 CAN_F9R1_FB1_Msk /*!<Filter bit 1 */
  2746. #define CAN_F9R1_FB2_Pos (2U)
  2747. #define CAN_F9R1_FB2_Msk (0x1U << CAN_F9R1_FB2_Pos) /*!< 0x00000004 */
  2748. #define CAN_F9R1_FB2 CAN_F9R1_FB2_Msk /*!<Filter bit 2 */
  2749. #define CAN_F9R1_FB3_Pos (3U)
  2750. #define CAN_F9R1_FB3_Msk (0x1U << CAN_F9R1_FB3_Pos) /*!< 0x00000008 */
  2751. #define CAN_F9R1_FB3 CAN_F9R1_FB3_Msk /*!<Filter bit 3 */
  2752. #define CAN_F9R1_FB4_Pos (4U)
  2753. #define CAN_F9R1_FB4_Msk (0x1U << CAN_F9R1_FB4_Pos) /*!< 0x00000010 */
  2754. #define CAN_F9R1_FB4 CAN_F9R1_FB4_Msk /*!<Filter bit 4 */
  2755. #define CAN_F9R1_FB5_Pos (5U)
  2756. #define CAN_F9R1_FB5_Msk (0x1U << CAN_F9R1_FB5_Pos) /*!< 0x00000020 */
  2757. #define CAN_F9R1_FB5 CAN_F9R1_FB5_Msk /*!<Filter bit 5 */
  2758. #define CAN_F9R1_FB6_Pos (6U)
  2759. #define CAN_F9R1_FB6_Msk (0x1U << CAN_F9R1_FB6_Pos) /*!< 0x00000040 */
  2760. #define CAN_F9R1_FB6 CAN_F9R1_FB6_Msk /*!<Filter bit 6 */
  2761. #define CAN_F9R1_FB7_Pos (7U)
  2762. #define CAN_F9R1_FB7_Msk (0x1U << CAN_F9R1_FB7_Pos) /*!< 0x00000080 */
  2763. #define CAN_F9R1_FB7 CAN_F9R1_FB7_Msk /*!<Filter bit 7 */
  2764. #define CAN_F9R1_FB8_Pos (8U)
  2765. #define CAN_F9R1_FB8_Msk (0x1U << CAN_F9R1_FB8_Pos) /*!< 0x00000100 */
  2766. #define CAN_F9R1_FB8 CAN_F9R1_FB8_Msk /*!<Filter bit 8 */
  2767. #define CAN_F9R1_FB9_Pos (9U)
  2768. #define CAN_F9R1_FB9_Msk (0x1U << CAN_F9R1_FB9_Pos) /*!< 0x00000200 */
  2769. #define CAN_F9R1_FB9 CAN_F9R1_FB9_Msk /*!<Filter bit 9 */
  2770. #define CAN_F9R1_FB10_Pos (10U)
  2771. #define CAN_F9R1_FB10_Msk (0x1U << CAN_F9R1_FB10_Pos) /*!< 0x00000400 */
  2772. #define CAN_F9R1_FB10 CAN_F9R1_FB10_Msk /*!<Filter bit 10 */
  2773. #define CAN_F9R1_FB11_Pos (11U)
  2774. #define CAN_F9R1_FB11_Msk (0x1U << CAN_F9R1_FB11_Pos) /*!< 0x00000800 */
  2775. #define CAN_F9R1_FB11 CAN_F9R1_FB11_Msk /*!<Filter bit 11 */
  2776. #define CAN_F9R1_FB12_Pos (12U)
  2777. #define CAN_F9R1_FB12_Msk (0x1U << CAN_F9R1_FB12_Pos) /*!< 0x00001000 */
  2778. #define CAN_F9R1_FB12 CAN_F9R1_FB12_Msk /*!<Filter bit 12 */
  2779. #define CAN_F9R1_FB13_Pos (13U)
  2780. #define CAN_F9R1_FB13_Msk (0x1U << CAN_F9R1_FB13_Pos) /*!< 0x00002000 */
  2781. #define CAN_F9R1_FB13 CAN_F9R1_FB13_Msk /*!<Filter bit 13 */
  2782. #define CAN_F9R1_FB14_Pos (14U)
  2783. #define CAN_F9R1_FB14_Msk (0x1U << CAN_F9R1_FB14_Pos) /*!< 0x00004000 */
  2784. #define CAN_F9R1_FB14 CAN_F9R1_FB14_Msk /*!<Filter bit 14 */
  2785. #define CAN_F9R1_FB15_Pos (15U)
  2786. #define CAN_F9R1_FB15_Msk (0x1U << CAN_F9R1_FB15_Pos) /*!< 0x00008000 */
  2787. #define CAN_F9R1_FB15 CAN_F9R1_FB15_Msk /*!<Filter bit 15 */
  2788. #define CAN_F9R1_FB16_Pos (16U)
  2789. #define CAN_F9R1_FB16_Msk (0x1U << CAN_F9R1_FB16_Pos) /*!< 0x00010000 */
  2790. #define CAN_F9R1_FB16 CAN_F9R1_FB16_Msk /*!<Filter bit 16 */
  2791. #define CAN_F9R1_FB17_Pos (17U)
  2792. #define CAN_F9R1_FB17_Msk (0x1U << CAN_F9R1_FB17_Pos) /*!< 0x00020000 */
  2793. #define CAN_F9R1_FB17 CAN_F9R1_FB17_Msk /*!<Filter bit 17 */
  2794. #define CAN_F9R1_FB18_Pos (18U)
  2795. #define CAN_F9R1_FB18_Msk (0x1U << CAN_F9R1_FB18_Pos) /*!< 0x00040000 */
  2796. #define CAN_F9R1_FB18 CAN_F9R1_FB18_Msk /*!<Filter bit 18 */
  2797. #define CAN_F9R1_FB19_Pos (19U)
  2798. #define CAN_F9R1_FB19_Msk (0x1U << CAN_F9R1_FB19_Pos) /*!< 0x00080000 */
  2799. #define CAN_F9R1_FB19 CAN_F9R1_FB19_Msk /*!<Filter bit 19 */
  2800. #define CAN_F9R1_FB20_Pos (20U)
  2801. #define CAN_F9R1_FB20_Msk (0x1U << CAN_F9R1_FB20_Pos) /*!< 0x00100000 */
  2802. #define CAN_F9R1_FB20 CAN_F9R1_FB20_Msk /*!<Filter bit 20 */
  2803. #define CAN_F9R1_FB21_Pos (21U)
  2804. #define CAN_F9R1_FB21_Msk (0x1U << CAN_F9R1_FB21_Pos) /*!< 0x00200000 */
  2805. #define CAN_F9R1_FB21 CAN_F9R1_FB21_Msk /*!<Filter bit 21 */
  2806. #define CAN_F9R1_FB22_Pos (22U)
  2807. #define CAN_F9R1_FB22_Msk (0x1U << CAN_F9R1_FB22_Pos) /*!< 0x00400000 */
  2808. #define CAN_F9R1_FB22 CAN_F9R1_FB22_Msk /*!<Filter bit 22 */
  2809. #define CAN_F9R1_FB23_Pos (23U)
  2810. #define CAN_F9R1_FB23_Msk (0x1U << CAN_F9R1_FB23_Pos) /*!< 0x00800000 */
  2811. #define CAN_F9R1_FB23 CAN_F9R1_FB23_Msk /*!<Filter bit 23 */
  2812. #define CAN_F9R1_FB24_Pos (24U)
  2813. #define CAN_F9R1_FB24_Msk (0x1U << CAN_F9R1_FB24_Pos) /*!< 0x01000000 */
  2814. #define CAN_F9R1_FB24 CAN_F9R1_FB24_Msk /*!<Filter bit 24 */
  2815. #define CAN_F9R1_FB25_Pos (25U)
  2816. #define CAN_F9R1_FB25_Msk (0x1U << CAN_F9R1_FB25_Pos) /*!< 0x02000000 */
  2817. #define CAN_F9R1_FB25 CAN_F9R1_FB25_Msk /*!<Filter bit 25 */
  2818. #define CAN_F9R1_FB26_Pos (26U)
  2819. #define CAN_F9R1_FB26_Msk (0x1U << CAN_F9R1_FB26_Pos) /*!< 0x04000000 */
  2820. #define CAN_F9R1_FB26 CAN_F9R1_FB26_Msk /*!<Filter bit 26 */
  2821. #define CAN_F9R1_FB27_Pos (27U)
  2822. #define CAN_F9R1_FB27_Msk (0x1U << CAN_F9R1_FB27_Pos) /*!< 0x08000000 */
  2823. #define CAN_F9R1_FB27 CAN_F9R1_FB27_Msk /*!<Filter bit 27 */
  2824. #define CAN_F9R1_FB28_Pos (28U)
  2825. #define CAN_F9R1_FB28_Msk (0x1U << CAN_F9R1_FB28_Pos) /*!< 0x10000000 */
  2826. #define CAN_F9R1_FB28 CAN_F9R1_FB28_Msk /*!<Filter bit 28 */
  2827. #define CAN_F9R1_FB29_Pos (29U)
  2828. #define CAN_F9R1_FB29_Msk (0x1U << CAN_F9R1_FB29_Pos) /*!< 0x20000000 */
  2829. #define CAN_F9R1_FB29 CAN_F9R1_FB29_Msk /*!<Filter bit 29 */
  2830. #define CAN_F9R1_FB30_Pos (30U)
  2831. #define CAN_F9R1_FB30_Msk (0x1U << CAN_F9R1_FB30_Pos) /*!< 0x40000000 */
  2832. #define CAN_F9R1_FB30 CAN_F9R1_FB30_Msk /*!<Filter bit 30 */
  2833. #define CAN_F9R1_FB31_Pos (31U)
  2834. #define CAN_F9R1_FB31_Msk (0x1U << CAN_F9R1_FB31_Pos) /*!< 0x80000000 */
  2835. #define CAN_F9R1_FB31 CAN_F9R1_FB31_Msk /*!<Filter bit 31 */
  2836. /******************* Bit definition for CAN_F10R1 register ******************/
  2837. #define CAN_F10R1_FB0_Pos (0U)
  2838. #define CAN_F10R1_FB0_Msk (0x1U << CAN_F10R1_FB0_Pos) /*!< 0x00000001 */
  2839. #define CAN_F10R1_FB0 CAN_F10R1_FB0_Msk /*!<Filter bit 0 */
  2840. #define CAN_F10R1_FB1_Pos (1U)
  2841. #define CAN_F10R1_FB1_Msk (0x1U << CAN_F10R1_FB1_Pos) /*!< 0x00000002 */
  2842. #define CAN_F10R1_FB1 CAN_F10R1_FB1_Msk /*!<Filter bit 1 */
  2843. #define CAN_F10R1_FB2_Pos (2U)
  2844. #define CAN_F10R1_FB2_Msk (0x1U << CAN_F10R1_FB2_Pos) /*!< 0x00000004 */
  2845. #define CAN_F10R1_FB2 CAN_F10R1_FB2_Msk /*!<Filter bit 2 */
  2846. #define CAN_F10R1_FB3_Pos (3U)
  2847. #define CAN_F10R1_FB3_Msk (0x1U << CAN_F10R1_FB3_Pos) /*!< 0x00000008 */
  2848. #define CAN_F10R1_FB3 CAN_F10R1_FB3_Msk /*!<Filter bit 3 */
  2849. #define CAN_F10R1_FB4_Pos (4U)
  2850. #define CAN_F10R1_FB4_Msk (0x1U << CAN_F10R1_FB4_Pos) /*!< 0x00000010 */
  2851. #define CAN_F10R1_FB4 CAN_F10R1_FB4_Msk /*!<Filter bit 4 */
  2852. #define CAN_F10R1_FB5_Pos (5U)
  2853. #define CAN_F10R1_FB5_Msk (0x1U << CAN_F10R1_FB5_Pos) /*!< 0x00000020 */
  2854. #define CAN_F10R1_FB5 CAN_F10R1_FB5_Msk /*!<Filter bit 5 */
  2855. #define CAN_F10R1_FB6_Pos (6U)
  2856. #define CAN_F10R1_FB6_Msk (0x1U << CAN_F10R1_FB6_Pos) /*!< 0x00000040 */
  2857. #define CAN_F10R1_FB6 CAN_F10R1_FB6_Msk /*!<Filter bit 6 */
  2858. #define CAN_F10R1_FB7_Pos (7U)
  2859. #define CAN_F10R1_FB7_Msk (0x1U << CAN_F10R1_FB7_Pos) /*!< 0x00000080 */
  2860. #define CAN_F10R1_FB7 CAN_F10R1_FB7_Msk /*!<Filter bit 7 */
  2861. #define CAN_F10R1_FB8_Pos (8U)
  2862. #define CAN_F10R1_FB8_Msk (0x1U << CAN_F10R1_FB8_Pos) /*!< 0x00000100 */
  2863. #define CAN_F10R1_FB8 CAN_F10R1_FB8_Msk /*!<Filter bit 8 */
  2864. #define CAN_F10R1_FB9_Pos (9U)
  2865. #define CAN_F10R1_FB9_Msk (0x1U << CAN_F10R1_FB9_Pos) /*!< 0x00000200 */
  2866. #define CAN_F10R1_FB9 CAN_F10R1_FB9_Msk /*!<Filter bit 9 */
  2867. #define CAN_F10R1_FB10_Pos (10U)
  2868. #define CAN_F10R1_FB10_Msk (0x1U << CAN_F10R1_FB10_Pos) /*!< 0x00000400 */
  2869. #define CAN_F10R1_FB10 CAN_F10R1_FB10_Msk /*!<Filter bit 10 */
  2870. #define CAN_F10R1_FB11_Pos (11U)
  2871. #define CAN_F10R1_FB11_Msk (0x1U << CAN_F10R1_FB11_Pos) /*!< 0x00000800 */
  2872. #define CAN_F10R1_FB11 CAN_F10R1_FB11_Msk /*!<Filter bit 11 */
  2873. #define CAN_F10R1_FB12_Pos (12U)
  2874. #define CAN_F10R1_FB12_Msk (0x1U << CAN_F10R1_FB12_Pos) /*!< 0x00001000 */
  2875. #define CAN_F10R1_FB12 CAN_F10R1_FB12_Msk /*!<Filter bit 12 */
  2876. #define CAN_F10R1_FB13_Pos (13U)
  2877. #define CAN_F10R1_FB13_Msk (0x1U << CAN_F10R1_FB13_Pos) /*!< 0x00002000 */
  2878. #define CAN_F10R1_FB13 CAN_F10R1_FB13_Msk /*!<Filter bit 13 */
  2879. #define CAN_F10R1_FB14_Pos (14U)
  2880. #define CAN_F10R1_FB14_Msk (0x1U << CAN_F10R1_FB14_Pos) /*!< 0x00004000 */
  2881. #define CAN_F10R1_FB14 CAN_F10R1_FB14_Msk /*!<Filter bit 14 */
  2882. #define CAN_F10R1_FB15_Pos (15U)
  2883. #define CAN_F10R1_FB15_Msk (0x1U << CAN_F10R1_FB15_Pos) /*!< 0x00008000 */
  2884. #define CAN_F10R1_FB15 CAN_F10R1_FB15_Msk /*!<Filter bit 15 */
  2885. #define CAN_F10R1_FB16_Pos (16U)
  2886. #define CAN_F10R1_FB16_Msk (0x1U << CAN_F10R1_FB16_Pos) /*!< 0x00010000 */
  2887. #define CAN_F10R1_FB16 CAN_F10R1_FB16_Msk /*!<Filter bit 16 */
  2888. #define CAN_F10R1_FB17_Pos (17U)
  2889. #define CAN_F10R1_FB17_Msk (0x1U << CAN_F10R1_FB17_Pos) /*!< 0x00020000 */
  2890. #define CAN_F10R1_FB17 CAN_F10R1_FB17_Msk /*!<Filter bit 17 */
  2891. #define CAN_F10R1_FB18_Pos (18U)
  2892. #define CAN_F10R1_FB18_Msk (0x1U << CAN_F10R1_FB18_Pos) /*!< 0x00040000 */
  2893. #define CAN_F10R1_FB18 CAN_F10R1_FB18_Msk /*!<Filter bit 18 */
  2894. #define CAN_F10R1_FB19_Pos (19U)
  2895. #define CAN_F10R1_FB19_Msk (0x1U << CAN_F10R1_FB19_Pos) /*!< 0x00080000 */
  2896. #define CAN_F10R1_FB19 CAN_F10R1_FB19_Msk /*!<Filter bit 19 */
  2897. #define CAN_F10R1_FB20_Pos (20U)
  2898. #define CAN_F10R1_FB20_Msk (0x1U << CAN_F10R1_FB20_Pos) /*!< 0x00100000 */
  2899. #define CAN_F10R1_FB20 CAN_F10R1_FB20_Msk /*!<Filter bit 20 */
  2900. #define CAN_F10R1_FB21_Pos (21U)
  2901. #define CAN_F10R1_FB21_Msk (0x1U << CAN_F10R1_FB21_Pos) /*!< 0x00200000 */
  2902. #define CAN_F10R1_FB21 CAN_F10R1_FB21_Msk /*!<Filter bit 21 */
  2903. #define CAN_F10R1_FB22_Pos (22U)
  2904. #define CAN_F10R1_FB22_Msk (0x1U << CAN_F10R1_FB22_Pos) /*!< 0x00400000 */
  2905. #define CAN_F10R1_FB22 CAN_F10R1_FB22_Msk /*!<Filter bit 22 */
  2906. #define CAN_F10R1_FB23_Pos (23U)
  2907. #define CAN_F10R1_FB23_Msk (0x1U << CAN_F10R1_FB23_Pos) /*!< 0x00800000 */
  2908. #define CAN_F10R1_FB23 CAN_F10R1_FB23_Msk /*!<Filter bit 23 */
  2909. #define CAN_F10R1_FB24_Pos (24U)
  2910. #define CAN_F10R1_FB24_Msk (0x1U << CAN_F10R1_FB24_Pos) /*!< 0x01000000 */
  2911. #define CAN_F10R1_FB24 CAN_F10R1_FB24_Msk /*!<Filter bit 24 */
  2912. #define CAN_F10R1_FB25_Pos (25U)
  2913. #define CAN_F10R1_FB25_Msk (0x1U << CAN_F10R1_FB25_Pos) /*!< 0x02000000 */
  2914. #define CAN_F10R1_FB25 CAN_F10R1_FB25_Msk /*!<Filter bit 25 */
  2915. #define CAN_F10R1_FB26_Pos (26U)
  2916. #define CAN_F10R1_FB26_Msk (0x1U << CAN_F10R1_FB26_Pos) /*!< 0x04000000 */
  2917. #define CAN_F10R1_FB26 CAN_F10R1_FB26_Msk /*!<Filter bit 26 */
  2918. #define CAN_F10R1_FB27_Pos (27U)
  2919. #define CAN_F10R1_FB27_Msk (0x1U << CAN_F10R1_FB27_Pos) /*!< 0x08000000 */
  2920. #define CAN_F10R1_FB27 CAN_F10R1_FB27_Msk /*!<Filter bit 27 */
  2921. #define CAN_F10R1_FB28_Pos (28U)
  2922. #define CAN_F10R1_FB28_Msk (0x1U << CAN_F10R1_FB28_Pos) /*!< 0x10000000 */
  2923. #define CAN_F10R1_FB28 CAN_F10R1_FB28_Msk /*!<Filter bit 28 */
  2924. #define CAN_F10R1_FB29_Pos (29U)
  2925. #define CAN_F10R1_FB29_Msk (0x1U << CAN_F10R1_FB29_Pos) /*!< 0x20000000 */
  2926. #define CAN_F10R1_FB29 CAN_F10R1_FB29_Msk /*!<Filter bit 29 */
  2927. #define CAN_F10R1_FB30_Pos (30U)
  2928. #define CAN_F10R1_FB30_Msk (0x1U << CAN_F10R1_FB30_Pos) /*!< 0x40000000 */
  2929. #define CAN_F10R1_FB30 CAN_F10R1_FB30_Msk /*!<Filter bit 30 */
  2930. #define CAN_F10R1_FB31_Pos (31U)
  2931. #define CAN_F10R1_FB31_Msk (0x1U << CAN_F10R1_FB31_Pos) /*!< 0x80000000 */
  2932. #define CAN_F10R1_FB31 CAN_F10R1_FB31_Msk /*!<Filter bit 31 */
  2933. /******************* Bit definition for CAN_F11R1 register ******************/
  2934. #define CAN_F11R1_FB0_Pos (0U)
  2935. #define CAN_F11R1_FB0_Msk (0x1U << CAN_F11R1_FB0_Pos) /*!< 0x00000001 */
  2936. #define CAN_F11R1_FB0 CAN_F11R1_FB0_Msk /*!<Filter bit 0 */
  2937. #define CAN_F11R1_FB1_Pos (1U)
  2938. #define CAN_F11R1_FB1_Msk (0x1U << CAN_F11R1_FB1_Pos) /*!< 0x00000002 */
  2939. #define CAN_F11R1_FB1 CAN_F11R1_FB1_Msk /*!<Filter bit 1 */
  2940. #define CAN_F11R1_FB2_Pos (2U)
  2941. #define CAN_F11R1_FB2_Msk (0x1U << CAN_F11R1_FB2_Pos) /*!< 0x00000004 */
  2942. #define CAN_F11R1_FB2 CAN_F11R1_FB2_Msk /*!<Filter bit 2 */
  2943. #define CAN_F11R1_FB3_Pos (3U)
  2944. #define CAN_F11R1_FB3_Msk (0x1U << CAN_F11R1_FB3_Pos) /*!< 0x00000008 */
  2945. #define CAN_F11R1_FB3 CAN_F11R1_FB3_Msk /*!<Filter bit 3 */
  2946. #define CAN_F11R1_FB4_Pos (4U)
  2947. #define CAN_F11R1_FB4_Msk (0x1U << CAN_F11R1_FB4_Pos) /*!< 0x00000010 */
  2948. #define CAN_F11R1_FB4 CAN_F11R1_FB4_Msk /*!<Filter bit 4 */
  2949. #define CAN_F11R1_FB5_Pos (5U)
  2950. #define CAN_F11R1_FB5_Msk (0x1U << CAN_F11R1_FB5_Pos) /*!< 0x00000020 */
  2951. #define CAN_F11R1_FB5 CAN_F11R1_FB5_Msk /*!<Filter bit 5 */
  2952. #define CAN_F11R1_FB6_Pos (6U)
  2953. #define CAN_F11R1_FB6_Msk (0x1U << CAN_F11R1_FB6_Pos) /*!< 0x00000040 */
  2954. #define CAN_F11R1_FB6 CAN_F11R1_FB6_Msk /*!<Filter bit 6 */
  2955. #define CAN_F11R1_FB7_Pos (7U)
  2956. #define CAN_F11R1_FB7_Msk (0x1U << CAN_F11R1_FB7_Pos) /*!< 0x00000080 */
  2957. #define CAN_F11R1_FB7 CAN_F11R1_FB7_Msk /*!<Filter bit 7 */
  2958. #define CAN_F11R1_FB8_Pos (8U)
  2959. #define CAN_F11R1_FB8_Msk (0x1U << CAN_F11R1_FB8_Pos) /*!< 0x00000100 */
  2960. #define CAN_F11R1_FB8 CAN_F11R1_FB8_Msk /*!<Filter bit 8 */
  2961. #define CAN_F11R1_FB9_Pos (9U)
  2962. #define CAN_F11R1_FB9_Msk (0x1U << CAN_F11R1_FB9_Pos) /*!< 0x00000200 */
  2963. #define CAN_F11R1_FB9 CAN_F11R1_FB9_Msk /*!<Filter bit 9 */
  2964. #define CAN_F11R1_FB10_Pos (10U)
  2965. #define CAN_F11R1_FB10_Msk (0x1U << CAN_F11R1_FB10_Pos) /*!< 0x00000400 */
  2966. #define CAN_F11R1_FB10 CAN_F11R1_FB10_Msk /*!<Filter bit 10 */
  2967. #define CAN_F11R1_FB11_Pos (11U)
  2968. #define CAN_F11R1_FB11_Msk (0x1U << CAN_F11R1_FB11_Pos) /*!< 0x00000800 */
  2969. #define CAN_F11R1_FB11 CAN_F11R1_FB11_Msk /*!<Filter bit 11 */
  2970. #define CAN_F11R1_FB12_Pos (12U)
  2971. #define CAN_F11R1_FB12_Msk (0x1U << CAN_F11R1_FB12_Pos) /*!< 0x00001000 */
  2972. #define CAN_F11R1_FB12 CAN_F11R1_FB12_Msk /*!<Filter bit 12 */
  2973. #define CAN_F11R1_FB13_Pos (13U)
  2974. #define CAN_F11R1_FB13_Msk (0x1U << CAN_F11R1_FB13_Pos) /*!< 0x00002000 */
  2975. #define CAN_F11R1_FB13 CAN_F11R1_FB13_Msk /*!<Filter bit 13 */
  2976. #define CAN_F11R1_FB14_Pos (14U)
  2977. #define CAN_F11R1_FB14_Msk (0x1U << CAN_F11R1_FB14_Pos) /*!< 0x00004000 */
  2978. #define CAN_F11R1_FB14 CAN_F11R1_FB14_Msk /*!<Filter bit 14 */
  2979. #define CAN_F11R1_FB15_Pos (15U)
  2980. #define CAN_F11R1_FB15_Msk (0x1U << CAN_F11R1_FB15_Pos) /*!< 0x00008000 */
  2981. #define CAN_F11R1_FB15 CAN_F11R1_FB15_Msk /*!<Filter bit 15 */
  2982. #define CAN_F11R1_FB16_Pos (16U)
  2983. #define CAN_F11R1_FB16_Msk (0x1U << CAN_F11R1_FB16_Pos) /*!< 0x00010000 */
  2984. #define CAN_F11R1_FB16 CAN_F11R1_FB16_Msk /*!<Filter bit 16 */
  2985. #define CAN_F11R1_FB17_Pos (17U)
  2986. #define CAN_F11R1_FB17_Msk (0x1U << CAN_F11R1_FB17_Pos) /*!< 0x00020000 */
  2987. #define CAN_F11R1_FB17 CAN_F11R1_FB17_Msk /*!<Filter bit 17 */
  2988. #define CAN_F11R1_FB18_Pos (18U)
  2989. #define CAN_F11R1_FB18_Msk (0x1U << CAN_F11R1_FB18_Pos) /*!< 0x00040000 */
  2990. #define CAN_F11R1_FB18 CAN_F11R1_FB18_Msk /*!<Filter bit 18 */
  2991. #define CAN_F11R1_FB19_Pos (19U)
  2992. #define CAN_F11R1_FB19_Msk (0x1U << CAN_F11R1_FB19_Pos) /*!< 0x00080000 */
  2993. #define CAN_F11R1_FB19 CAN_F11R1_FB19_Msk /*!<Filter bit 19 */
  2994. #define CAN_F11R1_FB20_Pos (20U)
  2995. #define CAN_F11R1_FB20_Msk (0x1U << CAN_F11R1_FB20_Pos) /*!< 0x00100000 */
  2996. #define CAN_F11R1_FB20 CAN_F11R1_FB20_Msk /*!<Filter bit 20 */
  2997. #define CAN_F11R1_FB21_Pos (21U)
  2998. #define CAN_F11R1_FB21_Msk (0x1U << CAN_F11R1_FB21_Pos) /*!< 0x00200000 */
  2999. #define CAN_F11R1_FB21 CAN_F11R1_FB21_Msk /*!<Filter bit 21 */
  3000. #define CAN_F11R1_FB22_Pos (22U)
  3001. #define CAN_F11R1_FB22_Msk (0x1U << CAN_F11R1_FB22_Pos) /*!< 0x00400000 */
  3002. #define CAN_F11R1_FB22 CAN_F11R1_FB22_Msk /*!<Filter bit 22 */
  3003. #define CAN_F11R1_FB23_Pos (23U)
  3004. #define CAN_F11R1_FB23_Msk (0x1U << CAN_F11R1_FB23_Pos) /*!< 0x00800000 */
  3005. #define CAN_F11R1_FB23 CAN_F11R1_FB23_Msk /*!<Filter bit 23 */
  3006. #define CAN_F11R1_FB24_Pos (24U)
  3007. #define CAN_F11R1_FB24_Msk (0x1U << CAN_F11R1_FB24_Pos) /*!< 0x01000000 */
  3008. #define CAN_F11R1_FB24 CAN_F11R1_FB24_Msk /*!<Filter bit 24 */
  3009. #define CAN_F11R1_FB25_Pos (25U)
  3010. #define CAN_F11R1_FB25_Msk (0x1U << CAN_F11R1_FB25_Pos) /*!< 0x02000000 */
  3011. #define CAN_F11R1_FB25 CAN_F11R1_FB25_Msk /*!<Filter bit 25 */
  3012. #define CAN_F11R1_FB26_Pos (26U)
  3013. #define CAN_F11R1_FB26_Msk (0x1U << CAN_F11R1_FB26_Pos) /*!< 0x04000000 */
  3014. #define CAN_F11R1_FB26 CAN_F11R1_FB26_Msk /*!<Filter bit 26 */
  3015. #define CAN_F11R1_FB27_Pos (27U)
  3016. #define CAN_F11R1_FB27_Msk (0x1U << CAN_F11R1_FB27_Pos) /*!< 0x08000000 */
  3017. #define CAN_F11R1_FB27 CAN_F11R1_FB27_Msk /*!<Filter bit 27 */
  3018. #define CAN_F11R1_FB28_Pos (28U)
  3019. #define CAN_F11R1_FB28_Msk (0x1U << CAN_F11R1_FB28_Pos) /*!< 0x10000000 */
  3020. #define CAN_F11R1_FB28 CAN_F11R1_FB28_Msk /*!<Filter bit 28 */
  3021. #define CAN_F11R1_FB29_Pos (29U)
  3022. #define CAN_F11R1_FB29_Msk (0x1U << CAN_F11R1_FB29_Pos) /*!< 0x20000000 */
  3023. #define CAN_F11R1_FB29 CAN_F11R1_FB29_Msk /*!<Filter bit 29 */
  3024. #define CAN_F11R1_FB30_Pos (30U)
  3025. #define CAN_F11R1_FB30_Msk (0x1U << CAN_F11R1_FB30_Pos) /*!< 0x40000000 */
  3026. #define CAN_F11R1_FB30 CAN_F11R1_FB30_Msk /*!<Filter bit 30 */
  3027. #define CAN_F11R1_FB31_Pos (31U)
  3028. #define CAN_F11R1_FB31_Msk (0x1U << CAN_F11R1_FB31_Pos) /*!< 0x80000000 */
  3029. #define CAN_F11R1_FB31 CAN_F11R1_FB31_Msk /*!<Filter bit 31 */
  3030. /******************* Bit definition for CAN_F12R1 register ******************/
  3031. #define CAN_F12R1_FB0_Pos (0U)
  3032. #define CAN_F12R1_FB0_Msk (0x1U << CAN_F12R1_FB0_Pos) /*!< 0x00000001 */
  3033. #define CAN_F12R1_FB0 CAN_F12R1_FB0_Msk /*!<Filter bit 0 */
  3034. #define CAN_F12R1_FB1_Pos (1U)
  3035. #define CAN_F12R1_FB1_Msk (0x1U << CAN_F12R1_FB1_Pos) /*!< 0x00000002 */
  3036. #define CAN_F12R1_FB1 CAN_F12R1_FB1_Msk /*!<Filter bit 1 */
  3037. #define CAN_F12R1_FB2_Pos (2U)
  3038. #define CAN_F12R1_FB2_Msk (0x1U << CAN_F12R1_FB2_Pos) /*!< 0x00000004 */
  3039. #define CAN_F12R1_FB2 CAN_F12R1_FB2_Msk /*!<Filter bit 2 */
  3040. #define CAN_F12R1_FB3_Pos (3U)
  3041. #define CAN_F12R1_FB3_Msk (0x1U << CAN_F12R1_FB3_Pos) /*!< 0x00000008 */
  3042. #define CAN_F12R1_FB3 CAN_F12R1_FB3_Msk /*!<Filter bit 3 */
  3043. #define CAN_F12R1_FB4_Pos (4U)
  3044. #define CAN_F12R1_FB4_Msk (0x1U << CAN_F12R1_FB4_Pos) /*!< 0x00000010 */
  3045. #define CAN_F12R1_FB4 CAN_F12R1_FB4_Msk /*!<Filter bit 4 */
  3046. #define CAN_F12R1_FB5_Pos (5U)
  3047. #define CAN_F12R1_FB5_Msk (0x1U << CAN_F12R1_FB5_Pos) /*!< 0x00000020 */
  3048. #define CAN_F12R1_FB5 CAN_F12R1_FB5_Msk /*!<Filter bit 5 */
  3049. #define CAN_F12R1_FB6_Pos (6U)
  3050. #define CAN_F12R1_FB6_Msk (0x1U << CAN_F12R1_FB6_Pos) /*!< 0x00000040 */
  3051. #define CAN_F12R1_FB6 CAN_F12R1_FB6_Msk /*!<Filter bit 6 */
  3052. #define CAN_F12R1_FB7_Pos (7U)
  3053. #define CAN_F12R1_FB7_Msk (0x1U << CAN_F12R1_FB7_Pos) /*!< 0x00000080 */
  3054. #define CAN_F12R1_FB7 CAN_F12R1_FB7_Msk /*!<Filter bit 7 */
  3055. #define CAN_F12R1_FB8_Pos (8U)
  3056. #define CAN_F12R1_FB8_Msk (0x1U << CAN_F12R1_FB8_Pos) /*!< 0x00000100 */
  3057. #define CAN_F12R1_FB8 CAN_F12R1_FB8_Msk /*!<Filter bit 8 */
  3058. #define CAN_F12R1_FB9_Pos (9U)
  3059. #define CAN_F12R1_FB9_Msk (0x1U << CAN_F12R1_FB9_Pos) /*!< 0x00000200 */
  3060. #define CAN_F12R1_FB9 CAN_F12R1_FB9_Msk /*!<Filter bit 9 */
  3061. #define CAN_F12R1_FB10_Pos (10U)
  3062. #define CAN_F12R1_FB10_Msk (0x1U << CAN_F12R1_FB10_Pos) /*!< 0x00000400 */
  3063. #define CAN_F12R1_FB10 CAN_F12R1_FB10_Msk /*!<Filter bit 10 */
  3064. #define CAN_F12R1_FB11_Pos (11U)
  3065. #define CAN_F12R1_FB11_Msk (0x1U << CAN_F12R1_FB11_Pos) /*!< 0x00000800 */
  3066. #define CAN_F12R1_FB11 CAN_F12R1_FB11_Msk /*!<Filter bit 11 */
  3067. #define CAN_F12R1_FB12_Pos (12U)
  3068. #define CAN_F12R1_FB12_Msk (0x1U << CAN_F12R1_FB12_Pos) /*!< 0x00001000 */
  3069. #define CAN_F12R1_FB12 CAN_F12R1_FB12_Msk /*!<Filter bit 12 */
  3070. #define CAN_F12R1_FB13_Pos (13U)
  3071. #define CAN_F12R1_FB13_Msk (0x1U << CAN_F12R1_FB13_Pos) /*!< 0x00002000 */
  3072. #define CAN_F12R1_FB13 CAN_F12R1_FB13_Msk /*!<Filter bit 13 */
  3073. #define CAN_F12R1_FB14_Pos (14U)
  3074. #define CAN_F12R1_FB14_Msk (0x1U << CAN_F12R1_FB14_Pos) /*!< 0x00004000 */
  3075. #define CAN_F12R1_FB14 CAN_F12R1_FB14_Msk /*!<Filter bit 14 */
  3076. #define CAN_F12R1_FB15_Pos (15U)
  3077. #define CAN_F12R1_FB15_Msk (0x1U << CAN_F12R1_FB15_Pos) /*!< 0x00008000 */
  3078. #define CAN_F12R1_FB15 CAN_F12R1_FB15_Msk /*!<Filter bit 15 */
  3079. #define CAN_F12R1_FB16_Pos (16U)
  3080. #define CAN_F12R1_FB16_Msk (0x1U << CAN_F12R1_FB16_Pos) /*!< 0x00010000 */
  3081. #define CAN_F12R1_FB16 CAN_F12R1_FB16_Msk /*!<Filter bit 16 */
  3082. #define CAN_F12R1_FB17_Pos (17U)
  3083. #define CAN_F12R1_FB17_Msk (0x1U << CAN_F12R1_FB17_Pos) /*!< 0x00020000 */
  3084. #define CAN_F12R1_FB17 CAN_F12R1_FB17_Msk /*!<Filter bit 17 */
  3085. #define CAN_F12R1_FB18_Pos (18U)
  3086. #define CAN_F12R1_FB18_Msk (0x1U << CAN_F12R1_FB18_Pos) /*!< 0x00040000 */
  3087. #define CAN_F12R1_FB18 CAN_F12R1_FB18_Msk /*!<Filter bit 18 */
  3088. #define CAN_F12R1_FB19_Pos (19U)
  3089. #define CAN_F12R1_FB19_Msk (0x1U << CAN_F12R1_FB19_Pos) /*!< 0x00080000 */
  3090. #define CAN_F12R1_FB19 CAN_F12R1_FB19_Msk /*!<Filter bit 19 */
  3091. #define CAN_F12R1_FB20_Pos (20U)
  3092. #define CAN_F12R1_FB20_Msk (0x1U << CAN_F12R1_FB20_Pos) /*!< 0x00100000 */
  3093. #define CAN_F12R1_FB20 CAN_F12R1_FB20_Msk /*!<Filter bit 20 */
  3094. #define CAN_F12R1_FB21_Pos (21U)
  3095. #define CAN_F12R1_FB21_Msk (0x1U << CAN_F12R1_FB21_Pos) /*!< 0x00200000 */
  3096. #define CAN_F12R1_FB21 CAN_F12R1_FB21_Msk /*!<Filter bit 21 */
  3097. #define CAN_F12R1_FB22_Pos (22U)
  3098. #define CAN_F12R1_FB22_Msk (0x1U << CAN_F12R1_FB22_Pos) /*!< 0x00400000 */
  3099. #define CAN_F12R1_FB22 CAN_F12R1_FB22_Msk /*!<Filter bit 22 */
  3100. #define CAN_F12R1_FB23_Pos (23U)
  3101. #define CAN_F12R1_FB23_Msk (0x1U << CAN_F12R1_FB23_Pos) /*!< 0x00800000 */
  3102. #define CAN_F12R1_FB23 CAN_F12R1_FB23_Msk /*!<Filter bit 23 */
  3103. #define CAN_F12R1_FB24_Pos (24U)
  3104. #define CAN_F12R1_FB24_Msk (0x1U << CAN_F12R1_FB24_Pos) /*!< 0x01000000 */
  3105. #define CAN_F12R1_FB24 CAN_F12R1_FB24_Msk /*!<Filter bit 24 */
  3106. #define CAN_F12R1_FB25_Pos (25U)
  3107. #define CAN_F12R1_FB25_Msk (0x1U << CAN_F12R1_FB25_Pos) /*!< 0x02000000 */
  3108. #define CAN_F12R1_FB25 CAN_F12R1_FB25_Msk /*!<Filter bit 25 */
  3109. #define CAN_F12R1_FB26_Pos (26U)
  3110. #define CAN_F12R1_FB26_Msk (0x1U << CAN_F12R1_FB26_Pos) /*!< 0x04000000 */
  3111. #define CAN_F12R1_FB26 CAN_F12R1_FB26_Msk /*!<Filter bit 26 */
  3112. #define CAN_F12R1_FB27_Pos (27U)
  3113. #define CAN_F12R1_FB27_Msk (0x1U << CAN_F12R1_FB27_Pos) /*!< 0x08000000 */
  3114. #define CAN_F12R1_FB27 CAN_F12R1_FB27_Msk /*!<Filter bit 27 */
  3115. #define CAN_F12R1_FB28_Pos (28U)
  3116. #define CAN_F12R1_FB28_Msk (0x1U << CAN_F12R1_FB28_Pos) /*!< 0x10000000 */
  3117. #define CAN_F12R1_FB28 CAN_F12R1_FB28_Msk /*!<Filter bit 28 */
  3118. #define CAN_F12R1_FB29_Pos (29U)
  3119. #define CAN_F12R1_FB29_Msk (0x1U << CAN_F12R1_FB29_Pos) /*!< 0x20000000 */
  3120. #define CAN_F12R1_FB29 CAN_F12R1_FB29_Msk /*!<Filter bit 29 */
  3121. #define CAN_F12R1_FB30_Pos (30U)
  3122. #define CAN_F12R1_FB30_Msk (0x1U << CAN_F12R1_FB30_Pos) /*!< 0x40000000 */
  3123. #define CAN_F12R1_FB30 CAN_F12R1_FB30_Msk /*!<Filter bit 30 */
  3124. #define CAN_F12R1_FB31_Pos (31U)
  3125. #define CAN_F12R1_FB31_Msk (0x1U << CAN_F12R1_FB31_Pos) /*!< 0x80000000 */
  3126. #define CAN_F12R1_FB31 CAN_F12R1_FB31_Msk /*!<Filter bit 31 */
  3127. /******************* Bit definition for CAN_F13R1 register ******************/
  3128. #define CAN_F13R1_FB0_Pos (0U)
  3129. #define CAN_F13R1_FB0_Msk (0x1U << CAN_F13R1_FB0_Pos) /*!< 0x00000001 */
  3130. #define CAN_F13R1_FB0 CAN_F13R1_FB0_Msk /*!<Filter bit 0 */
  3131. #define CAN_F13R1_FB1_Pos (1U)
  3132. #define CAN_F13R1_FB1_Msk (0x1U << CAN_F13R1_FB1_Pos) /*!< 0x00000002 */
  3133. #define CAN_F13R1_FB1 CAN_F13R1_FB1_Msk /*!<Filter bit 1 */
  3134. #define CAN_F13R1_FB2_Pos (2U)
  3135. #define CAN_F13R1_FB2_Msk (0x1U << CAN_F13R1_FB2_Pos) /*!< 0x00000004 */
  3136. #define CAN_F13R1_FB2 CAN_F13R1_FB2_Msk /*!<Filter bit 2 */
  3137. #define CAN_F13R1_FB3_Pos (3U)
  3138. #define CAN_F13R1_FB3_Msk (0x1U << CAN_F13R1_FB3_Pos) /*!< 0x00000008 */
  3139. #define CAN_F13R1_FB3 CAN_F13R1_FB3_Msk /*!<Filter bit 3 */
  3140. #define CAN_F13R1_FB4_Pos (4U)
  3141. #define CAN_F13R1_FB4_Msk (0x1U << CAN_F13R1_FB4_Pos) /*!< 0x00000010 */
  3142. #define CAN_F13R1_FB4 CAN_F13R1_FB4_Msk /*!<Filter bit 4 */
  3143. #define CAN_F13R1_FB5_Pos (5U)
  3144. #define CAN_F13R1_FB5_Msk (0x1U << CAN_F13R1_FB5_Pos) /*!< 0x00000020 */
  3145. #define CAN_F13R1_FB5 CAN_F13R1_FB5_Msk /*!<Filter bit 5 */
  3146. #define CAN_F13R1_FB6_Pos (6U)
  3147. #define CAN_F13R1_FB6_Msk (0x1U << CAN_F13R1_FB6_Pos) /*!< 0x00000040 */
  3148. #define CAN_F13R1_FB6 CAN_F13R1_FB6_Msk /*!<Filter bit 6 */
  3149. #define CAN_F13R1_FB7_Pos (7U)
  3150. #define CAN_F13R1_FB7_Msk (0x1U << CAN_F13R1_FB7_Pos) /*!< 0x00000080 */
  3151. #define CAN_F13R1_FB7 CAN_F13R1_FB7_Msk /*!<Filter bit 7 */
  3152. #define CAN_F13R1_FB8_Pos (8U)
  3153. #define CAN_F13R1_FB8_Msk (0x1U << CAN_F13R1_FB8_Pos) /*!< 0x00000100 */
  3154. #define CAN_F13R1_FB8 CAN_F13R1_FB8_Msk /*!<Filter bit 8 */
  3155. #define CAN_F13R1_FB9_Pos (9U)
  3156. #define CAN_F13R1_FB9_Msk (0x1U << CAN_F13R1_FB9_Pos) /*!< 0x00000200 */
  3157. #define CAN_F13R1_FB9 CAN_F13R1_FB9_Msk /*!<Filter bit 9 */
  3158. #define CAN_F13R1_FB10_Pos (10U)
  3159. #define CAN_F13R1_FB10_Msk (0x1U << CAN_F13R1_FB10_Pos) /*!< 0x00000400 */
  3160. #define CAN_F13R1_FB10 CAN_F13R1_FB10_Msk /*!<Filter bit 10 */
  3161. #define CAN_F13R1_FB11_Pos (11U)
  3162. #define CAN_F13R1_FB11_Msk (0x1U << CAN_F13R1_FB11_Pos) /*!< 0x00000800 */
  3163. #define CAN_F13R1_FB11 CAN_F13R1_FB11_Msk /*!<Filter bit 11 */
  3164. #define CAN_F13R1_FB12_Pos (12U)
  3165. #define CAN_F13R1_FB12_Msk (0x1U << CAN_F13R1_FB12_Pos) /*!< 0x00001000 */
  3166. #define CAN_F13R1_FB12 CAN_F13R1_FB12_Msk /*!<Filter bit 12 */
  3167. #define CAN_F13R1_FB13_Pos (13U)
  3168. #define CAN_F13R1_FB13_Msk (0x1U << CAN_F13R1_FB13_Pos) /*!< 0x00002000 */
  3169. #define CAN_F13R1_FB13 CAN_F13R1_FB13_Msk /*!<Filter bit 13 */
  3170. #define CAN_F13R1_FB14_Pos (14U)
  3171. #define CAN_F13R1_FB14_Msk (0x1U << CAN_F13R1_FB14_Pos) /*!< 0x00004000 */
  3172. #define CAN_F13R1_FB14 CAN_F13R1_FB14_Msk /*!<Filter bit 14 */
  3173. #define CAN_F13R1_FB15_Pos (15U)
  3174. #define CAN_F13R1_FB15_Msk (0x1U << CAN_F13R1_FB15_Pos) /*!< 0x00008000 */
  3175. #define CAN_F13R1_FB15 CAN_F13R1_FB15_Msk /*!<Filter bit 15 */
  3176. #define CAN_F13R1_FB16_Pos (16U)
  3177. #define CAN_F13R1_FB16_Msk (0x1U << CAN_F13R1_FB16_Pos) /*!< 0x00010000 */
  3178. #define CAN_F13R1_FB16 CAN_F13R1_FB16_Msk /*!<Filter bit 16 */
  3179. #define CAN_F13R1_FB17_Pos (17U)
  3180. #define CAN_F13R1_FB17_Msk (0x1U << CAN_F13R1_FB17_Pos) /*!< 0x00020000 */
  3181. #define CAN_F13R1_FB17 CAN_F13R1_FB17_Msk /*!<Filter bit 17 */
  3182. #define CAN_F13R1_FB18_Pos (18U)
  3183. #define CAN_F13R1_FB18_Msk (0x1U << CAN_F13R1_FB18_Pos) /*!< 0x00040000 */
  3184. #define CAN_F13R1_FB18 CAN_F13R1_FB18_Msk /*!<Filter bit 18 */
  3185. #define CAN_F13R1_FB19_Pos (19U)
  3186. #define CAN_F13R1_FB19_Msk (0x1U << CAN_F13R1_FB19_Pos) /*!< 0x00080000 */
  3187. #define CAN_F13R1_FB19 CAN_F13R1_FB19_Msk /*!<Filter bit 19 */
  3188. #define CAN_F13R1_FB20_Pos (20U)
  3189. #define CAN_F13R1_FB20_Msk (0x1U << CAN_F13R1_FB20_Pos) /*!< 0x00100000 */
  3190. #define CAN_F13R1_FB20 CAN_F13R1_FB20_Msk /*!<Filter bit 20 */
  3191. #define CAN_F13R1_FB21_Pos (21U)
  3192. #define CAN_F13R1_FB21_Msk (0x1U << CAN_F13R1_FB21_Pos) /*!< 0x00200000 */
  3193. #define CAN_F13R1_FB21 CAN_F13R1_FB21_Msk /*!<Filter bit 21 */
  3194. #define CAN_F13R1_FB22_Pos (22U)
  3195. #define CAN_F13R1_FB22_Msk (0x1U << CAN_F13R1_FB22_Pos) /*!< 0x00400000 */
  3196. #define CAN_F13R1_FB22 CAN_F13R1_FB22_Msk /*!<Filter bit 22 */
  3197. #define CAN_F13R1_FB23_Pos (23U)
  3198. #define CAN_F13R1_FB23_Msk (0x1U << CAN_F13R1_FB23_Pos) /*!< 0x00800000 */
  3199. #define CAN_F13R1_FB23 CAN_F13R1_FB23_Msk /*!<Filter bit 23 */
  3200. #define CAN_F13R1_FB24_Pos (24U)
  3201. #define CAN_F13R1_FB24_Msk (0x1U << CAN_F13R1_FB24_Pos) /*!< 0x01000000 */
  3202. #define CAN_F13R1_FB24 CAN_F13R1_FB24_Msk /*!<Filter bit 24 */
  3203. #define CAN_F13R1_FB25_Pos (25U)
  3204. #define CAN_F13R1_FB25_Msk (0x1U << CAN_F13R1_FB25_Pos) /*!< 0x02000000 */
  3205. #define CAN_F13R1_FB25 CAN_F13R1_FB25_Msk /*!<Filter bit 25 */
  3206. #define CAN_F13R1_FB26_Pos (26U)
  3207. #define CAN_F13R1_FB26_Msk (0x1U << CAN_F13R1_FB26_Pos) /*!< 0x04000000 */
  3208. #define CAN_F13R1_FB26 CAN_F13R1_FB26_Msk /*!<Filter bit 26 */
  3209. #define CAN_F13R1_FB27_Pos (27U)
  3210. #define CAN_F13R1_FB27_Msk (0x1U << CAN_F13R1_FB27_Pos) /*!< 0x08000000 */
  3211. #define CAN_F13R1_FB27 CAN_F13R1_FB27_Msk /*!<Filter bit 27 */
  3212. #define CAN_F13R1_FB28_Pos (28U)
  3213. #define CAN_F13R1_FB28_Msk (0x1U << CAN_F13R1_FB28_Pos) /*!< 0x10000000 */
  3214. #define CAN_F13R1_FB28 CAN_F13R1_FB28_Msk /*!<Filter bit 28 */
  3215. #define CAN_F13R1_FB29_Pos (29U)
  3216. #define CAN_F13R1_FB29_Msk (0x1U << CAN_F13R1_FB29_Pos) /*!< 0x20000000 */
  3217. #define CAN_F13R1_FB29 CAN_F13R1_FB29_Msk /*!<Filter bit 29 */
  3218. #define CAN_F13R1_FB30_Pos (30U)
  3219. #define CAN_F13R1_FB30_Msk (0x1U << CAN_F13R1_FB30_Pos) /*!< 0x40000000 */
  3220. #define CAN_F13R1_FB30 CAN_F13R1_FB30_Msk /*!<Filter bit 30 */
  3221. #define CAN_F13R1_FB31_Pos (31U)
  3222. #define CAN_F13R1_FB31_Msk (0x1U << CAN_F13R1_FB31_Pos) /*!< 0x80000000 */
  3223. #define CAN_F13R1_FB31 CAN_F13R1_FB31_Msk /*!<Filter bit 31 */
  3224. /******************* Bit definition for CAN_F0R2 register *******************/
  3225. #define CAN_F0R2_FB0_Pos (0U)
  3226. #define CAN_F0R2_FB0_Msk (0x1U << CAN_F0R2_FB0_Pos) /*!< 0x00000001 */
  3227. #define CAN_F0R2_FB0 CAN_F0R2_FB0_Msk /*!<Filter bit 0 */
  3228. #define CAN_F0R2_FB1_Pos (1U)
  3229. #define CAN_F0R2_FB1_Msk (0x1U << CAN_F0R2_FB1_Pos) /*!< 0x00000002 */
  3230. #define CAN_F0R2_FB1 CAN_F0R2_FB1_Msk /*!<Filter bit 1 */
  3231. #define CAN_F0R2_FB2_Pos (2U)
  3232. #define CAN_F0R2_FB2_Msk (0x1U << CAN_F0R2_FB2_Pos) /*!< 0x00000004 */
  3233. #define CAN_F0R2_FB2 CAN_F0R2_FB2_Msk /*!<Filter bit 2 */
  3234. #define CAN_F0R2_FB3_Pos (3U)
  3235. #define CAN_F0R2_FB3_Msk (0x1U << CAN_F0R2_FB3_Pos) /*!< 0x00000008 */
  3236. #define CAN_F0R2_FB3 CAN_F0R2_FB3_Msk /*!<Filter bit 3 */
  3237. #define CAN_F0R2_FB4_Pos (4U)
  3238. #define CAN_F0R2_FB4_Msk (0x1U << CAN_F0R2_FB4_Pos) /*!< 0x00000010 */
  3239. #define CAN_F0R2_FB4 CAN_F0R2_FB4_Msk /*!<Filter bit 4 */
  3240. #define CAN_F0R2_FB5_Pos (5U)
  3241. #define CAN_F0R2_FB5_Msk (0x1U << CAN_F0R2_FB5_Pos) /*!< 0x00000020 */
  3242. #define CAN_F0R2_FB5 CAN_F0R2_FB5_Msk /*!<Filter bit 5 */
  3243. #define CAN_F0R2_FB6_Pos (6U)
  3244. #define CAN_F0R2_FB6_Msk (0x1U << CAN_F0R2_FB6_Pos) /*!< 0x00000040 */
  3245. #define CAN_F0R2_FB6 CAN_F0R2_FB6_Msk /*!<Filter bit 6 */
  3246. #define CAN_F0R2_FB7_Pos (7U)
  3247. #define CAN_F0R2_FB7_Msk (0x1U << CAN_F0R2_FB7_Pos) /*!< 0x00000080 */
  3248. #define CAN_F0R2_FB7 CAN_F0R2_FB7_Msk /*!<Filter bit 7 */
  3249. #define CAN_F0R2_FB8_Pos (8U)
  3250. #define CAN_F0R2_FB8_Msk (0x1U << CAN_F0R2_FB8_Pos) /*!< 0x00000100 */
  3251. #define CAN_F0R2_FB8 CAN_F0R2_FB8_Msk /*!<Filter bit 8 */
  3252. #define CAN_F0R2_FB9_Pos (9U)
  3253. #define CAN_F0R2_FB9_Msk (0x1U << CAN_F0R2_FB9_Pos) /*!< 0x00000200 */
  3254. #define CAN_F0R2_FB9 CAN_F0R2_FB9_Msk /*!<Filter bit 9 */
  3255. #define CAN_F0R2_FB10_Pos (10U)
  3256. #define CAN_F0R2_FB10_Msk (0x1U << CAN_F0R2_FB10_Pos) /*!< 0x00000400 */
  3257. #define CAN_F0R2_FB10 CAN_F0R2_FB10_Msk /*!<Filter bit 10 */
  3258. #define CAN_F0R2_FB11_Pos (11U)
  3259. #define CAN_F0R2_FB11_Msk (0x1U << CAN_F0R2_FB11_Pos) /*!< 0x00000800 */
  3260. #define CAN_F0R2_FB11 CAN_F0R2_FB11_Msk /*!<Filter bit 11 */
  3261. #define CAN_F0R2_FB12_Pos (12U)
  3262. #define CAN_F0R2_FB12_Msk (0x1U << CAN_F0R2_FB12_Pos) /*!< 0x00001000 */
  3263. #define CAN_F0R2_FB12 CAN_F0R2_FB12_Msk /*!<Filter bit 12 */
  3264. #define CAN_F0R2_FB13_Pos (13U)
  3265. #define CAN_F0R2_FB13_Msk (0x1U << CAN_F0R2_FB13_Pos) /*!< 0x00002000 */
  3266. #define CAN_F0R2_FB13 CAN_F0R2_FB13_Msk /*!<Filter bit 13 */
  3267. #define CAN_F0R2_FB14_Pos (14U)
  3268. #define CAN_F0R2_FB14_Msk (0x1U << CAN_F0R2_FB14_Pos) /*!< 0x00004000 */
  3269. #define CAN_F0R2_FB14 CAN_F0R2_FB14_Msk /*!<Filter bit 14 */
  3270. #define CAN_F0R2_FB15_Pos (15U)
  3271. #define CAN_F0R2_FB15_Msk (0x1U << CAN_F0R2_FB15_Pos) /*!< 0x00008000 */
  3272. #define CAN_F0R2_FB15 CAN_F0R2_FB15_Msk /*!<Filter bit 15 */
  3273. #define CAN_F0R2_FB16_Pos (16U)
  3274. #define CAN_F0R2_FB16_Msk (0x1U << CAN_F0R2_FB16_Pos) /*!< 0x00010000 */
  3275. #define CAN_F0R2_FB16 CAN_F0R2_FB16_Msk /*!<Filter bit 16 */
  3276. #define CAN_F0R2_FB17_Pos (17U)
  3277. #define CAN_F0R2_FB17_Msk (0x1U << CAN_F0R2_FB17_Pos) /*!< 0x00020000 */
  3278. #define CAN_F0R2_FB17 CAN_F0R2_FB17_Msk /*!<Filter bit 17 */
  3279. #define CAN_F0R2_FB18_Pos (18U)
  3280. #define CAN_F0R2_FB18_Msk (0x1U << CAN_F0R2_FB18_Pos) /*!< 0x00040000 */
  3281. #define CAN_F0R2_FB18 CAN_F0R2_FB18_Msk /*!<Filter bit 18 */
  3282. #define CAN_F0R2_FB19_Pos (19U)
  3283. #define CAN_F0R2_FB19_Msk (0x1U << CAN_F0R2_FB19_Pos) /*!< 0x00080000 */
  3284. #define CAN_F0R2_FB19 CAN_F0R2_FB19_Msk /*!<Filter bit 19 */
  3285. #define CAN_F0R2_FB20_Pos (20U)
  3286. #define CAN_F0R2_FB20_Msk (0x1U << CAN_F0R2_FB20_Pos) /*!< 0x00100000 */
  3287. #define CAN_F0R2_FB20 CAN_F0R2_FB20_Msk /*!<Filter bit 20 */
  3288. #define CAN_F0R2_FB21_Pos (21U)
  3289. #define CAN_F0R2_FB21_Msk (0x1U << CAN_F0R2_FB21_Pos) /*!< 0x00200000 */
  3290. #define CAN_F0R2_FB21 CAN_F0R2_FB21_Msk /*!<Filter bit 21 */
  3291. #define CAN_F0R2_FB22_Pos (22U)
  3292. #define CAN_F0R2_FB22_Msk (0x1U << CAN_F0R2_FB22_Pos) /*!< 0x00400000 */
  3293. #define CAN_F0R2_FB22 CAN_F0R2_FB22_Msk /*!<Filter bit 22 */
  3294. #define CAN_F0R2_FB23_Pos (23U)
  3295. #define CAN_F0R2_FB23_Msk (0x1U << CAN_F0R2_FB23_Pos) /*!< 0x00800000 */
  3296. #define CAN_F0R2_FB23 CAN_F0R2_FB23_Msk /*!<Filter bit 23 */
  3297. #define CAN_F0R2_FB24_Pos (24U)
  3298. #define CAN_F0R2_FB24_Msk (0x1U << CAN_F0R2_FB24_Pos) /*!< 0x01000000 */
  3299. #define CAN_F0R2_FB24 CAN_F0R2_FB24_Msk /*!<Filter bit 24 */
  3300. #define CAN_F0R2_FB25_Pos (25U)
  3301. #define CAN_F0R2_FB25_Msk (0x1U << CAN_F0R2_FB25_Pos) /*!< 0x02000000 */
  3302. #define CAN_F0R2_FB25 CAN_F0R2_FB25_Msk /*!<Filter bit 25 */
  3303. #define CAN_F0R2_FB26_Pos (26U)
  3304. #define CAN_F0R2_FB26_Msk (0x1U << CAN_F0R2_FB26_Pos) /*!< 0x04000000 */
  3305. #define CAN_F0R2_FB26 CAN_F0R2_FB26_Msk /*!<Filter bit 26 */
  3306. #define CAN_F0R2_FB27_Pos (27U)
  3307. #define CAN_F0R2_FB27_Msk (0x1U << CAN_F0R2_FB27_Pos) /*!< 0x08000000 */
  3308. #define CAN_F0R2_FB27 CAN_F0R2_FB27_Msk /*!<Filter bit 27 */
  3309. #define CAN_F0R2_FB28_Pos (28U)
  3310. #define CAN_F0R2_FB28_Msk (0x1U << CAN_F0R2_FB28_Pos) /*!< 0x10000000 */
  3311. #define CAN_F0R2_FB28 CAN_F0R2_FB28_Msk /*!<Filter bit 28 */
  3312. #define CAN_F0R2_FB29_Pos (29U)
  3313. #define CAN_F0R2_FB29_Msk (0x1U << CAN_F0R2_FB29_Pos) /*!< 0x20000000 */
  3314. #define CAN_F0R2_FB29 CAN_F0R2_FB29_Msk /*!<Filter bit 29 */
  3315. #define CAN_F0R2_FB30_Pos (30U)
  3316. #define CAN_F0R2_FB30_Msk (0x1U << CAN_F0R2_FB30_Pos) /*!< 0x40000000 */
  3317. #define CAN_F0R2_FB30 CAN_F0R2_FB30_Msk /*!<Filter bit 30 */
  3318. #define CAN_F0R2_FB31_Pos (31U)
  3319. #define CAN_F0R2_FB31_Msk (0x1U << CAN_F0R2_FB31_Pos) /*!< 0x80000000 */
  3320. #define CAN_F0R2_FB31 CAN_F0R2_FB31_Msk /*!<Filter bit 31 */
  3321. /******************* Bit definition for CAN_F1R2 register *******************/
  3322. #define CAN_F1R2_FB0_Pos (0U)
  3323. #define CAN_F1R2_FB0_Msk (0x1U << CAN_F1R2_FB0_Pos) /*!< 0x00000001 */
  3324. #define CAN_F1R2_FB0 CAN_F1R2_FB0_Msk /*!<Filter bit 0 */
  3325. #define CAN_F1R2_FB1_Pos (1U)
  3326. #define CAN_F1R2_FB1_Msk (0x1U << CAN_F1R2_FB1_Pos) /*!< 0x00000002 */
  3327. #define CAN_F1R2_FB1 CAN_F1R2_FB1_Msk /*!<Filter bit 1 */
  3328. #define CAN_F1R2_FB2_Pos (2U)
  3329. #define CAN_F1R2_FB2_Msk (0x1U << CAN_F1R2_FB2_Pos) /*!< 0x00000004 */
  3330. #define CAN_F1R2_FB2 CAN_F1R2_FB2_Msk /*!<Filter bit 2 */
  3331. #define CAN_F1R2_FB3_Pos (3U)
  3332. #define CAN_F1R2_FB3_Msk (0x1U << CAN_F1R2_FB3_Pos) /*!< 0x00000008 */
  3333. #define CAN_F1R2_FB3 CAN_F1R2_FB3_Msk /*!<Filter bit 3 */
  3334. #define CAN_F1R2_FB4_Pos (4U)
  3335. #define CAN_F1R2_FB4_Msk (0x1U << CAN_F1R2_FB4_Pos) /*!< 0x00000010 */
  3336. #define CAN_F1R2_FB4 CAN_F1R2_FB4_Msk /*!<Filter bit 4 */
  3337. #define CAN_F1R2_FB5_Pos (5U)
  3338. #define CAN_F1R2_FB5_Msk (0x1U << CAN_F1R2_FB5_Pos) /*!< 0x00000020 */
  3339. #define CAN_F1R2_FB5 CAN_F1R2_FB5_Msk /*!<Filter bit 5 */
  3340. #define CAN_F1R2_FB6_Pos (6U)
  3341. #define CAN_F1R2_FB6_Msk (0x1U << CAN_F1R2_FB6_Pos) /*!< 0x00000040 */
  3342. #define CAN_F1R2_FB6 CAN_F1R2_FB6_Msk /*!<Filter bit 6 */
  3343. #define CAN_F1R2_FB7_Pos (7U)
  3344. #define CAN_F1R2_FB7_Msk (0x1U << CAN_F1R2_FB7_Pos) /*!< 0x00000080 */
  3345. #define CAN_F1R2_FB7 CAN_F1R2_FB7_Msk /*!<Filter bit 7 */
  3346. #define CAN_F1R2_FB8_Pos (8U)
  3347. #define CAN_F1R2_FB8_Msk (0x1U << CAN_F1R2_FB8_Pos) /*!< 0x00000100 */
  3348. #define CAN_F1R2_FB8 CAN_F1R2_FB8_Msk /*!<Filter bit 8 */
  3349. #define CAN_F1R2_FB9_Pos (9U)
  3350. #define CAN_F1R2_FB9_Msk (0x1U << CAN_F1R2_FB9_Pos) /*!< 0x00000200 */
  3351. #define CAN_F1R2_FB9 CAN_F1R2_FB9_Msk /*!<Filter bit 9 */
  3352. #define CAN_F1R2_FB10_Pos (10U)
  3353. #define CAN_F1R2_FB10_Msk (0x1U << CAN_F1R2_FB10_Pos) /*!< 0x00000400 */
  3354. #define CAN_F1R2_FB10 CAN_F1R2_FB10_Msk /*!<Filter bit 10 */
  3355. #define CAN_F1R2_FB11_Pos (11U)
  3356. #define CAN_F1R2_FB11_Msk (0x1U << CAN_F1R2_FB11_Pos) /*!< 0x00000800 */
  3357. #define CAN_F1R2_FB11 CAN_F1R2_FB11_Msk /*!<Filter bit 11 */
  3358. #define CAN_F1R2_FB12_Pos (12U)
  3359. #define CAN_F1R2_FB12_Msk (0x1U << CAN_F1R2_FB12_Pos) /*!< 0x00001000 */
  3360. #define CAN_F1R2_FB12 CAN_F1R2_FB12_Msk /*!<Filter bit 12 */
  3361. #define CAN_F1R2_FB13_Pos (13U)
  3362. #define CAN_F1R2_FB13_Msk (0x1U << CAN_F1R2_FB13_Pos) /*!< 0x00002000 */
  3363. #define CAN_F1R2_FB13 CAN_F1R2_FB13_Msk /*!<Filter bit 13 */
  3364. #define CAN_F1R2_FB14_Pos (14U)
  3365. #define CAN_F1R2_FB14_Msk (0x1U << CAN_F1R2_FB14_Pos) /*!< 0x00004000 */
  3366. #define CAN_F1R2_FB14 CAN_F1R2_FB14_Msk /*!<Filter bit 14 */
  3367. #define CAN_F1R2_FB15_Pos (15U)
  3368. #define CAN_F1R2_FB15_Msk (0x1U << CAN_F1R2_FB15_Pos) /*!< 0x00008000 */
  3369. #define CAN_F1R2_FB15 CAN_F1R2_FB15_Msk /*!<Filter bit 15 */
  3370. #define CAN_F1R2_FB16_Pos (16U)
  3371. #define CAN_F1R2_FB16_Msk (0x1U << CAN_F1R2_FB16_Pos) /*!< 0x00010000 */
  3372. #define CAN_F1R2_FB16 CAN_F1R2_FB16_Msk /*!<Filter bit 16 */
  3373. #define CAN_F1R2_FB17_Pos (17U)
  3374. #define CAN_F1R2_FB17_Msk (0x1U << CAN_F1R2_FB17_Pos) /*!< 0x00020000 */
  3375. #define CAN_F1R2_FB17 CAN_F1R2_FB17_Msk /*!<Filter bit 17 */
  3376. #define CAN_F1R2_FB18_Pos (18U)
  3377. #define CAN_F1R2_FB18_Msk (0x1U << CAN_F1R2_FB18_Pos) /*!< 0x00040000 */
  3378. #define CAN_F1R2_FB18 CAN_F1R2_FB18_Msk /*!<Filter bit 18 */
  3379. #define CAN_F1R2_FB19_Pos (19U)
  3380. #define CAN_F1R2_FB19_Msk (0x1U << CAN_F1R2_FB19_Pos) /*!< 0x00080000 */
  3381. #define CAN_F1R2_FB19 CAN_F1R2_FB19_Msk /*!<Filter bit 19 */
  3382. #define CAN_F1R2_FB20_Pos (20U)
  3383. #define CAN_F1R2_FB20_Msk (0x1U << CAN_F1R2_FB20_Pos) /*!< 0x00100000 */
  3384. #define CAN_F1R2_FB20 CAN_F1R2_FB20_Msk /*!<Filter bit 20 */
  3385. #define CAN_F1R2_FB21_Pos (21U)
  3386. #define CAN_F1R2_FB21_Msk (0x1U << CAN_F1R2_FB21_Pos) /*!< 0x00200000 */
  3387. #define CAN_F1R2_FB21 CAN_F1R2_FB21_Msk /*!<Filter bit 21 */
  3388. #define CAN_F1R2_FB22_Pos (22U)
  3389. #define CAN_F1R2_FB22_Msk (0x1U << CAN_F1R2_FB22_Pos) /*!< 0x00400000 */
  3390. #define CAN_F1R2_FB22 CAN_F1R2_FB22_Msk /*!<Filter bit 22 */
  3391. #define CAN_F1R2_FB23_Pos (23U)
  3392. #define CAN_F1R2_FB23_Msk (0x1U << CAN_F1R2_FB23_Pos) /*!< 0x00800000 */
  3393. #define CAN_F1R2_FB23 CAN_F1R2_FB23_Msk /*!<Filter bit 23 */
  3394. #define CAN_F1R2_FB24_Pos (24U)
  3395. #define CAN_F1R2_FB24_Msk (0x1U << CAN_F1R2_FB24_Pos) /*!< 0x01000000 */
  3396. #define CAN_F1R2_FB24 CAN_F1R2_FB24_Msk /*!<Filter bit 24 */
  3397. #define CAN_F1R2_FB25_Pos (25U)
  3398. #define CAN_F1R2_FB25_Msk (0x1U << CAN_F1R2_FB25_Pos) /*!< 0x02000000 */
  3399. #define CAN_F1R2_FB25 CAN_F1R2_FB25_Msk /*!<Filter bit 25 */
  3400. #define CAN_F1R2_FB26_Pos (26U)
  3401. #define CAN_F1R2_FB26_Msk (0x1U << CAN_F1R2_FB26_Pos) /*!< 0x04000000 */
  3402. #define CAN_F1R2_FB26 CAN_F1R2_FB26_Msk /*!<Filter bit 26 */
  3403. #define CAN_F1R2_FB27_Pos (27U)
  3404. #define CAN_F1R2_FB27_Msk (0x1U << CAN_F1R2_FB27_Pos) /*!< 0x08000000 */
  3405. #define CAN_F1R2_FB27 CAN_F1R2_FB27_Msk /*!<Filter bit 27 */
  3406. #define CAN_F1R2_FB28_Pos (28U)
  3407. #define CAN_F1R2_FB28_Msk (0x1U << CAN_F1R2_FB28_Pos) /*!< 0x10000000 */
  3408. #define CAN_F1R2_FB28 CAN_F1R2_FB28_Msk /*!<Filter bit 28 */
  3409. #define CAN_F1R2_FB29_Pos (29U)
  3410. #define CAN_F1R2_FB29_Msk (0x1U << CAN_F1R2_FB29_Pos) /*!< 0x20000000 */
  3411. #define CAN_F1R2_FB29 CAN_F1R2_FB29_Msk /*!<Filter bit 29 */
  3412. #define CAN_F1R2_FB30_Pos (30U)
  3413. #define CAN_F1R2_FB30_Msk (0x1U << CAN_F1R2_FB30_Pos) /*!< 0x40000000 */
  3414. #define CAN_F1R2_FB30 CAN_F1R2_FB30_Msk /*!<Filter bit 30 */
  3415. #define CAN_F1R2_FB31_Pos (31U)
  3416. #define CAN_F1R2_FB31_Msk (0x1U << CAN_F1R2_FB31_Pos) /*!< 0x80000000 */
  3417. #define CAN_F1R2_FB31 CAN_F1R2_FB31_Msk /*!<Filter bit 31 */
  3418. /******************* Bit definition for CAN_F2R2 register *******************/
  3419. #define CAN_F2R2_FB0_Pos (0U)
  3420. #define CAN_F2R2_FB0_Msk (0x1U << CAN_F2R2_FB0_Pos) /*!< 0x00000001 */
  3421. #define CAN_F2R2_FB0 CAN_F2R2_FB0_Msk /*!<Filter bit 0 */
  3422. #define CAN_F2R2_FB1_Pos (1U)
  3423. #define CAN_F2R2_FB1_Msk (0x1U << CAN_F2R2_FB1_Pos) /*!< 0x00000002 */
  3424. #define CAN_F2R2_FB1 CAN_F2R2_FB1_Msk /*!<Filter bit 1 */
  3425. #define CAN_F2R2_FB2_Pos (2U)
  3426. #define CAN_F2R2_FB2_Msk (0x1U << CAN_F2R2_FB2_Pos) /*!< 0x00000004 */
  3427. #define CAN_F2R2_FB2 CAN_F2R2_FB2_Msk /*!<Filter bit 2 */
  3428. #define CAN_F2R2_FB3_Pos (3U)
  3429. #define CAN_F2R2_FB3_Msk (0x1U << CAN_F2R2_FB3_Pos) /*!< 0x00000008 */
  3430. #define CAN_F2R2_FB3 CAN_F2R2_FB3_Msk /*!<Filter bit 3 */
  3431. #define CAN_F2R2_FB4_Pos (4U)
  3432. #define CAN_F2R2_FB4_Msk (0x1U << CAN_F2R2_FB4_Pos) /*!< 0x00000010 */
  3433. #define CAN_F2R2_FB4 CAN_F2R2_FB4_Msk /*!<Filter bit 4 */
  3434. #define CAN_F2R2_FB5_Pos (5U)
  3435. #define CAN_F2R2_FB5_Msk (0x1U << CAN_F2R2_FB5_Pos) /*!< 0x00000020 */
  3436. #define CAN_F2R2_FB5 CAN_F2R2_FB5_Msk /*!<Filter bit 5 */
  3437. #define CAN_F2R2_FB6_Pos (6U)
  3438. #define CAN_F2R2_FB6_Msk (0x1U << CAN_F2R2_FB6_Pos) /*!< 0x00000040 */
  3439. #define CAN_F2R2_FB6 CAN_F2R2_FB6_Msk /*!<Filter bit 6 */
  3440. #define CAN_F2R2_FB7_Pos (7U)
  3441. #define CAN_F2R2_FB7_Msk (0x1U << CAN_F2R2_FB7_Pos) /*!< 0x00000080 */
  3442. #define CAN_F2R2_FB7 CAN_F2R2_FB7_Msk /*!<Filter bit 7 */
  3443. #define CAN_F2R2_FB8_Pos (8U)
  3444. #define CAN_F2R2_FB8_Msk (0x1U << CAN_F2R2_FB8_Pos) /*!< 0x00000100 */
  3445. #define CAN_F2R2_FB8 CAN_F2R2_FB8_Msk /*!<Filter bit 8 */
  3446. #define CAN_F2R2_FB9_Pos (9U)
  3447. #define CAN_F2R2_FB9_Msk (0x1U << CAN_F2R2_FB9_Pos) /*!< 0x00000200 */
  3448. #define CAN_F2R2_FB9 CAN_F2R2_FB9_Msk /*!<Filter bit 9 */
  3449. #define CAN_F2R2_FB10_Pos (10U)
  3450. #define CAN_F2R2_FB10_Msk (0x1U << CAN_F2R2_FB10_Pos) /*!< 0x00000400 */
  3451. #define CAN_F2R2_FB10 CAN_F2R2_FB10_Msk /*!<Filter bit 10 */
  3452. #define CAN_F2R2_FB11_Pos (11U)
  3453. #define CAN_F2R2_FB11_Msk (0x1U << CAN_F2R2_FB11_Pos) /*!< 0x00000800 */
  3454. #define CAN_F2R2_FB11 CAN_F2R2_FB11_Msk /*!<Filter bit 11 */
  3455. #define CAN_F2R2_FB12_Pos (12U)
  3456. #define CAN_F2R2_FB12_Msk (0x1U << CAN_F2R2_FB12_Pos) /*!< 0x00001000 */
  3457. #define CAN_F2R2_FB12 CAN_F2R2_FB12_Msk /*!<Filter bit 12 */
  3458. #define CAN_F2R2_FB13_Pos (13U)
  3459. #define CAN_F2R2_FB13_Msk (0x1U << CAN_F2R2_FB13_Pos) /*!< 0x00002000 */
  3460. #define CAN_F2R2_FB13 CAN_F2R2_FB13_Msk /*!<Filter bit 13 */
  3461. #define CAN_F2R2_FB14_Pos (14U)
  3462. #define CAN_F2R2_FB14_Msk (0x1U << CAN_F2R2_FB14_Pos) /*!< 0x00004000 */
  3463. #define CAN_F2R2_FB14 CAN_F2R2_FB14_Msk /*!<Filter bit 14 */
  3464. #define CAN_F2R2_FB15_Pos (15U)
  3465. #define CAN_F2R2_FB15_Msk (0x1U << CAN_F2R2_FB15_Pos) /*!< 0x00008000 */
  3466. #define CAN_F2R2_FB15 CAN_F2R2_FB15_Msk /*!<Filter bit 15 */
  3467. #define CAN_F2R2_FB16_Pos (16U)
  3468. #define CAN_F2R2_FB16_Msk (0x1U << CAN_F2R2_FB16_Pos) /*!< 0x00010000 */
  3469. #define CAN_F2R2_FB16 CAN_F2R2_FB16_Msk /*!<Filter bit 16 */
  3470. #define CAN_F2R2_FB17_Pos (17U)
  3471. #define CAN_F2R2_FB17_Msk (0x1U << CAN_F2R2_FB17_Pos) /*!< 0x00020000 */
  3472. #define CAN_F2R2_FB17 CAN_F2R2_FB17_Msk /*!<Filter bit 17 */
  3473. #define CAN_F2R2_FB18_Pos (18U)
  3474. #define CAN_F2R2_FB18_Msk (0x1U << CAN_F2R2_FB18_Pos) /*!< 0x00040000 */
  3475. #define CAN_F2R2_FB18 CAN_F2R2_FB18_Msk /*!<Filter bit 18 */
  3476. #define CAN_F2R2_FB19_Pos (19U)
  3477. #define CAN_F2R2_FB19_Msk (0x1U << CAN_F2R2_FB19_Pos) /*!< 0x00080000 */
  3478. #define CAN_F2R2_FB19 CAN_F2R2_FB19_Msk /*!<Filter bit 19 */
  3479. #define CAN_F2R2_FB20_Pos (20U)
  3480. #define CAN_F2R2_FB20_Msk (0x1U << CAN_F2R2_FB20_Pos) /*!< 0x00100000 */
  3481. #define CAN_F2R2_FB20 CAN_F2R2_FB20_Msk /*!<Filter bit 20 */
  3482. #define CAN_F2R2_FB21_Pos (21U)
  3483. #define CAN_F2R2_FB21_Msk (0x1U << CAN_F2R2_FB21_Pos) /*!< 0x00200000 */
  3484. #define CAN_F2R2_FB21 CAN_F2R2_FB21_Msk /*!<Filter bit 21 */
  3485. #define CAN_F2R2_FB22_Pos (22U)
  3486. #define CAN_F2R2_FB22_Msk (0x1U << CAN_F2R2_FB22_Pos) /*!< 0x00400000 */
  3487. #define CAN_F2R2_FB22 CAN_F2R2_FB22_Msk /*!<Filter bit 22 */
  3488. #define CAN_F2R2_FB23_Pos (23U)
  3489. #define CAN_F2R2_FB23_Msk (0x1U << CAN_F2R2_FB23_Pos) /*!< 0x00800000 */
  3490. #define CAN_F2R2_FB23 CAN_F2R2_FB23_Msk /*!<Filter bit 23 */
  3491. #define CAN_F2R2_FB24_Pos (24U)
  3492. #define CAN_F2R2_FB24_Msk (0x1U << CAN_F2R2_FB24_Pos) /*!< 0x01000000 */
  3493. #define CAN_F2R2_FB24 CAN_F2R2_FB24_Msk /*!<Filter bit 24 */
  3494. #define CAN_F2R2_FB25_Pos (25U)
  3495. #define CAN_F2R2_FB25_Msk (0x1U << CAN_F2R2_FB25_Pos) /*!< 0x02000000 */
  3496. #define CAN_F2R2_FB25 CAN_F2R2_FB25_Msk /*!<Filter bit 25 */
  3497. #define CAN_F2R2_FB26_Pos (26U)
  3498. #define CAN_F2R2_FB26_Msk (0x1U << CAN_F2R2_FB26_Pos) /*!< 0x04000000 */
  3499. #define CAN_F2R2_FB26 CAN_F2R2_FB26_Msk /*!<Filter bit 26 */
  3500. #define CAN_F2R2_FB27_Pos (27U)
  3501. #define CAN_F2R2_FB27_Msk (0x1U << CAN_F2R2_FB27_Pos) /*!< 0x08000000 */
  3502. #define CAN_F2R2_FB27 CAN_F2R2_FB27_Msk /*!<Filter bit 27 */
  3503. #define CAN_F2R2_FB28_Pos (28U)
  3504. #define CAN_F2R2_FB28_Msk (0x1U << CAN_F2R2_FB28_Pos) /*!< 0x10000000 */
  3505. #define CAN_F2R2_FB28 CAN_F2R2_FB28_Msk /*!<Filter bit 28 */
  3506. #define CAN_F2R2_FB29_Pos (29U)
  3507. #define CAN_F2R2_FB29_Msk (0x1U << CAN_F2R2_FB29_Pos) /*!< 0x20000000 */
  3508. #define CAN_F2R2_FB29 CAN_F2R2_FB29_Msk /*!<Filter bit 29 */
  3509. #define CAN_F2R2_FB30_Pos (30U)
  3510. #define CAN_F2R2_FB30_Msk (0x1U << CAN_F2R2_FB30_Pos) /*!< 0x40000000 */
  3511. #define CAN_F2R2_FB30 CAN_F2R2_FB30_Msk /*!<Filter bit 30 */
  3512. #define CAN_F2R2_FB31_Pos (31U)
  3513. #define CAN_F2R2_FB31_Msk (0x1U << CAN_F2R2_FB31_Pos) /*!< 0x80000000 */
  3514. #define CAN_F2R2_FB31 CAN_F2R2_FB31_Msk /*!<Filter bit 31 */
  3515. /******************* Bit definition for CAN_F3R2 register *******************/
  3516. #define CAN_F3R2_FB0_Pos (0U)
  3517. #define CAN_F3R2_FB0_Msk (0x1U << CAN_F3R2_FB0_Pos) /*!< 0x00000001 */
  3518. #define CAN_F3R2_FB0 CAN_F3R2_FB0_Msk /*!<Filter bit 0 */
  3519. #define CAN_F3R2_FB1_Pos (1U)
  3520. #define CAN_F3R2_FB1_Msk (0x1U << CAN_F3R2_FB1_Pos) /*!< 0x00000002 */
  3521. #define CAN_F3R2_FB1 CAN_F3R2_FB1_Msk /*!<Filter bit 1 */
  3522. #define CAN_F3R2_FB2_Pos (2U)
  3523. #define CAN_F3R2_FB2_Msk (0x1U << CAN_F3R2_FB2_Pos) /*!< 0x00000004 */
  3524. #define CAN_F3R2_FB2 CAN_F3R2_FB2_Msk /*!<Filter bit 2 */
  3525. #define CAN_F3R2_FB3_Pos (3U)
  3526. #define CAN_F3R2_FB3_Msk (0x1U << CAN_F3R2_FB3_Pos) /*!< 0x00000008 */
  3527. #define CAN_F3R2_FB3 CAN_F3R2_FB3_Msk /*!<Filter bit 3 */
  3528. #define CAN_F3R2_FB4_Pos (4U)
  3529. #define CAN_F3R2_FB4_Msk (0x1U << CAN_F3R2_FB4_Pos) /*!< 0x00000010 */
  3530. #define CAN_F3R2_FB4 CAN_F3R2_FB4_Msk /*!<Filter bit 4 */
  3531. #define CAN_F3R2_FB5_Pos (5U)
  3532. #define CAN_F3R2_FB5_Msk (0x1U << CAN_F3R2_FB5_Pos) /*!< 0x00000020 */
  3533. #define CAN_F3R2_FB5 CAN_F3R2_FB5_Msk /*!<Filter bit 5 */
  3534. #define CAN_F3R2_FB6_Pos (6U)
  3535. #define CAN_F3R2_FB6_Msk (0x1U << CAN_F3R2_FB6_Pos) /*!< 0x00000040 */
  3536. #define CAN_F3R2_FB6 CAN_F3R2_FB6_Msk /*!<Filter bit 6 */
  3537. #define CAN_F3R2_FB7_Pos (7U)
  3538. #define CAN_F3R2_FB7_Msk (0x1U << CAN_F3R2_FB7_Pos) /*!< 0x00000080 */
  3539. #define CAN_F3R2_FB7 CAN_F3R2_FB7_Msk /*!<Filter bit 7 */
  3540. #define CAN_F3R2_FB8_Pos (8U)
  3541. #define CAN_F3R2_FB8_Msk (0x1U << CAN_F3R2_FB8_Pos) /*!< 0x00000100 */
  3542. #define CAN_F3R2_FB8 CAN_F3R2_FB8_Msk /*!<Filter bit 8 */
  3543. #define CAN_F3R2_FB9_Pos (9U)
  3544. #define CAN_F3R2_FB9_Msk (0x1U << CAN_F3R2_FB9_Pos) /*!< 0x00000200 */
  3545. #define CAN_F3R2_FB9 CAN_F3R2_FB9_Msk /*!<Filter bit 9 */
  3546. #define CAN_F3R2_FB10_Pos (10U)
  3547. #define CAN_F3R2_FB10_Msk (0x1U << CAN_F3R2_FB10_Pos) /*!< 0x00000400 */
  3548. #define CAN_F3R2_FB10 CAN_F3R2_FB10_Msk /*!<Filter bit 10 */
  3549. #define CAN_F3R2_FB11_Pos (11U)
  3550. #define CAN_F3R2_FB11_Msk (0x1U << CAN_F3R2_FB11_Pos) /*!< 0x00000800 */
  3551. #define CAN_F3R2_FB11 CAN_F3R2_FB11_Msk /*!<Filter bit 11 */
  3552. #define CAN_F3R2_FB12_Pos (12U)
  3553. #define CAN_F3R2_FB12_Msk (0x1U << CAN_F3R2_FB12_Pos) /*!< 0x00001000 */
  3554. #define CAN_F3R2_FB12 CAN_F3R2_FB12_Msk /*!<Filter bit 12 */
  3555. #define CAN_F3R2_FB13_Pos (13U)
  3556. #define CAN_F3R2_FB13_Msk (0x1U << CAN_F3R2_FB13_Pos) /*!< 0x00002000 */
  3557. #define CAN_F3R2_FB13 CAN_F3R2_FB13_Msk /*!<Filter bit 13 */
  3558. #define CAN_F3R2_FB14_Pos (14U)
  3559. #define CAN_F3R2_FB14_Msk (0x1U << CAN_F3R2_FB14_Pos) /*!< 0x00004000 */
  3560. #define CAN_F3R2_FB14 CAN_F3R2_FB14_Msk /*!<Filter bit 14 */
  3561. #define CAN_F3R2_FB15_Pos (15U)
  3562. #define CAN_F3R2_FB15_Msk (0x1U << CAN_F3R2_FB15_Pos) /*!< 0x00008000 */
  3563. #define CAN_F3R2_FB15 CAN_F3R2_FB15_Msk /*!<Filter bit 15 */
  3564. #define CAN_F3R2_FB16_Pos (16U)
  3565. #define CAN_F3R2_FB16_Msk (0x1U << CAN_F3R2_FB16_Pos) /*!< 0x00010000 */
  3566. #define CAN_F3R2_FB16 CAN_F3R2_FB16_Msk /*!<Filter bit 16 */
  3567. #define CAN_F3R2_FB17_Pos (17U)
  3568. #define CAN_F3R2_FB17_Msk (0x1U << CAN_F3R2_FB17_Pos) /*!< 0x00020000 */
  3569. #define CAN_F3R2_FB17 CAN_F3R2_FB17_Msk /*!<Filter bit 17 */
  3570. #define CAN_F3R2_FB18_Pos (18U)
  3571. #define CAN_F3R2_FB18_Msk (0x1U << CAN_F3R2_FB18_Pos) /*!< 0x00040000 */
  3572. #define CAN_F3R2_FB18 CAN_F3R2_FB18_Msk /*!<Filter bit 18 */
  3573. #define CAN_F3R2_FB19_Pos (19U)
  3574. #define CAN_F3R2_FB19_Msk (0x1U << CAN_F3R2_FB19_Pos) /*!< 0x00080000 */
  3575. #define CAN_F3R2_FB19 CAN_F3R2_FB19_Msk /*!<Filter bit 19 */
  3576. #define CAN_F3R2_FB20_Pos (20U)
  3577. #define CAN_F3R2_FB20_Msk (0x1U << CAN_F3R2_FB20_Pos) /*!< 0x00100000 */
  3578. #define CAN_F3R2_FB20 CAN_F3R2_FB20_Msk /*!<Filter bit 20 */
  3579. #define CAN_F3R2_FB21_Pos (21U)
  3580. #define CAN_F3R2_FB21_Msk (0x1U << CAN_F3R2_FB21_Pos) /*!< 0x00200000 */
  3581. #define CAN_F3R2_FB21 CAN_F3R2_FB21_Msk /*!<Filter bit 21 */
  3582. #define CAN_F3R2_FB22_Pos (22U)
  3583. #define CAN_F3R2_FB22_Msk (0x1U << CAN_F3R2_FB22_Pos) /*!< 0x00400000 */
  3584. #define CAN_F3R2_FB22 CAN_F3R2_FB22_Msk /*!<Filter bit 22 */
  3585. #define CAN_F3R2_FB23_Pos (23U)
  3586. #define CAN_F3R2_FB23_Msk (0x1U << CAN_F3R2_FB23_Pos) /*!< 0x00800000 */
  3587. #define CAN_F3R2_FB23 CAN_F3R2_FB23_Msk /*!<Filter bit 23 */
  3588. #define CAN_F3R2_FB24_Pos (24U)
  3589. #define CAN_F3R2_FB24_Msk (0x1U << CAN_F3R2_FB24_Pos) /*!< 0x01000000 */
  3590. #define CAN_F3R2_FB24 CAN_F3R2_FB24_Msk /*!<Filter bit 24 */
  3591. #define CAN_F3R2_FB25_Pos (25U)
  3592. #define CAN_F3R2_FB25_Msk (0x1U << CAN_F3R2_FB25_Pos) /*!< 0x02000000 */
  3593. #define CAN_F3R2_FB25 CAN_F3R2_FB25_Msk /*!<Filter bit 25 */
  3594. #define CAN_F3R2_FB26_Pos (26U)
  3595. #define CAN_F3R2_FB26_Msk (0x1U << CAN_F3R2_FB26_Pos) /*!< 0x04000000 */
  3596. #define CAN_F3R2_FB26 CAN_F3R2_FB26_Msk /*!<Filter bit 26 */
  3597. #define CAN_F3R2_FB27_Pos (27U)
  3598. #define CAN_F3R2_FB27_Msk (0x1U << CAN_F3R2_FB27_Pos) /*!< 0x08000000 */
  3599. #define CAN_F3R2_FB27 CAN_F3R2_FB27_Msk /*!<Filter bit 27 */
  3600. #define CAN_F3R2_FB28_Pos (28U)
  3601. #define CAN_F3R2_FB28_Msk (0x1U << CAN_F3R2_FB28_Pos) /*!< 0x10000000 */
  3602. #define CAN_F3R2_FB28 CAN_F3R2_FB28_Msk /*!<Filter bit 28 */
  3603. #define CAN_F3R2_FB29_Pos (29U)
  3604. #define CAN_F3R2_FB29_Msk (0x1U << CAN_F3R2_FB29_Pos) /*!< 0x20000000 */
  3605. #define CAN_F3R2_FB29 CAN_F3R2_FB29_Msk /*!<Filter bit 29 */
  3606. #define CAN_F3R2_FB30_Pos (30U)
  3607. #define CAN_F3R2_FB30_Msk (0x1U << CAN_F3R2_FB30_Pos) /*!< 0x40000000 */
  3608. #define CAN_F3R2_FB30 CAN_F3R2_FB30_Msk /*!<Filter bit 30 */
  3609. #define CAN_F3R2_FB31_Pos (31U)
  3610. #define CAN_F3R2_FB31_Msk (0x1U << CAN_F3R2_FB31_Pos) /*!< 0x80000000 */
  3611. #define CAN_F3R2_FB31 CAN_F3R2_FB31_Msk /*!<Filter bit 31 */
  3612. /******************* Bit definition for CAN_F4R2 register *******************/
  3613. #define CAN_F4R2_FB0_Pos (0U)
  3614. #define CAN_F4R2_FB0_Msk (0x1U << CAN_F4R2_FB0_Pos) /*!< 0x00000001 */
  3615. #define CAN_F4R2_FB0 CAN_F4R2_FB0_Msk /*!<Filter bit 0 */
  3616. #define CAN_F4R2_FB1_Pos (1U)
  3617. #define CAN_F4R2_FB1_Msk (0x1U << CAN_F4R2_FB1_Pos) /*!< 0x00000002 */
  3618. #define CAN_F4R2_FB1 CAN_F4R2_FB1_Msk /*!<Filter bit 1 */
  3619. #define CAN_F4R2_FB2_Pos (2U)
  3620. #define CAN_F4R2_FB2_Msk (0x1U << CAN_F4R2_FB2_Pos) /*!< 0x00000004 */
  3621. #define CAN_F4R2_FB2 CAN_F4R2_FB2_Msk /*!<Filter bit 2 */
  3622. #define CAN_F4R2_FB3_Pos (3U)
  3623. #define CAN_F4R2_FB3_Msk (0x1U << CAN_F4R2_FB3_Pos) /*!< 0x00000008 */
  3624. #define CAN_F4R2_FB3 CAN_F4R2_FB3_Msk /*!<Filter bit 3 */
  3625. #define CAN_F4R2_FB4_Pos (4U)
  3626. #define CAN_F4R2_FB4_Msk (0x1U << CAN_F4R2_FB4_Pos) /*!< 0x00000010 */
  3627. #define CAN_F4R2_FB4 CAN_F4R2_FB4_Msk /*!<Filter bit 4 */
  3628. #define CAN_F4R2_FB5_Pos (5U)
  3629. #define CAN_F4R2_FB5_Msk (0x1U << CAN_F4R2_FB5_Pos) /*!< 0x00000020 */
  3630. #define CAN_F4R2_FB5 CAN_F4R2_FB5_Msk /*!<Filter bit 5 */
  3631. #define CAN_F4R2_FB6_Pos (6U)
  3632. #define CAN_F4R2_FB6_Msk (0x1U << CAN_F4R2_FB6_Pos) /*!< 0x00000040 */
  3633. #define CAN_F4R2_FB6 CAN_F4R2_FB6_Msk /*!<Filter bit 6 */
  3634. #define CAN_F4R2_FB7_Pos (7U)
  3635. #define CAN_F4R2_FB7_Msk (0x1U << CAN_F4R2_FB7_Pos) /*!< 0x00000080 */
  3636. #define CAN_F4R2_FB7 CAN_F4R2_FB7_Msk /*!<Filter bit 7 */
  3637. #define CAN_F4R2_FB8_Pos (8U)
  3638. #define CAN_F4R2_FB8_Msk (0x1U << CAN_F4R2_FB8_Pos) /*!< 0x00000100 */
  3639. #define CAN_F4R2_FB8 CAN_F4R2_FB8_Msk /*!<Filter bit 8 */
  3640. #define CAN_F4R2_FB9_Pos (9U)
  3641. #define CAN_F4R2_FB9_Msk (0x1U << CAN_F4R2_FB9_Pos) /*!< 0x00000200 */
  3642. #define CAN_F4R2_FB9 CAN_F4R2_FB9_Msk /*!<Filter bit 9 */
  3643. #define CAN_F4R2_FB10_Pos (10U)
  3644. #define CAN_F4R2_FB10_Msk (0x1U << CAN_F4R2_FB10_Pos) /*!< 0x00000400 */
  3645. #define CAN_F4R2_FB10 CAN_F4R2_FB10_Msk /*!<Filter bit 10 */
  3646. #define CAN_F4R2_FB11_Pos (11U)
  3647. #define CAN_F4R2_FB11_Msk (0x1U << CAN_F4R2_FB11_Pos) /*!< 0x00000800 */
  3648. #define CAN_F4R2_FB11 CAN_F4R2_FB11_Msk /*!<Filter bit 11 */
  3649. #define CAN_F4R2_FB12_Pos (12U)
  3650. #define CAN_F4R2_FB12_Msk (0x1U << CAN_F4R2_FB12_Pos) /*!< 0x00001000 */
  3651. #define CAN_F4R2_FB12 CAN_F4R2_FB12_Msk /*!<Filter bit 12 */
  3652. #define CAN_F4R2_FB13_Pos (13U)
  3653. #define CAN_F4R2_FB13_Msk (0x1U << CAN_F4R2_FB13_Pos) /*!< 0x00002000 */
  3654. #define CAN_F4R2_FB13 CAN_F4R2_FB13_Msk /*!<Filter bit 13 */
  3655. #define CAN_F4R2_FB14_Pos (14U)
  3656. #define CAN_F4R2_FB14_Msk (0x1U << CAN_F4R2_FB14_Pos) /*!< 0x00004000 */
  3657. #define CAN_F4R2_FB14 CAN_F4R2_FB14_Msk /*!<Filter bit 14 */
  3658. #define CAN_F4R2_FB15_Pos (15U)
  3659. #define CAN_F4R2_FB15_Msk (0x1U << CAN_F4R2_FB15_Pos) /*!< 0x00008000 */
  3660. #define CAN_F4R2_FB15 CAN_F4R2_FB15_Msk /*!<Filter bit 15 */
  3661. #define CAN_F4R2_FB16_Pos (16U)
  3662. #define CAN_F4R2_FB16_Msk (0x1U << CAN_F4R2_FB16_Pos) /*!< 0x00010000 */
  3663. #define CAN_F4R2_FB16 CAN_F4R2_FB16_Msk /*!<Filter bit 16 */
  3664. #define CAN_F4R2_FB17_Pos (17U)
  3665. #define CAN_F4R2_FB17_Msk (0x1U << CAN_F4R2_FB17_Pos) /*!< 0x00020000 */
  3666. #define CAN_F4R2_FB17 CAN_F4R2_FB17_Msk /*!<Filter bit 17 */
  3667. #define CAN_F4R2_FB18_Pos (18U)
  3668. #define CAN_F4R2_FB18_Msk (0x1U << CAN_F4R2_FB18_Pos) /*!< 0x00040000 */
  3669. #define CAN_F4R2_FB18 CAN_F4R2_FB18_Msk /*!<Filter bit 18 */
  3670. #define CAN_F4R2_FB19_Pos (19U)
  3671. #define CAN_F4R2_FB19_Msk (0x1U << CAN_F4R2_FB19_Pos) /*!< 0x00080000 */
  3672. #define CAN_F4R2_FB19 CAN_F4R2_FB19_Msk /*!<Filter bit 19 */
  3673. #define CAN_F4R2_FB20_Pos (20U)
  3674. #define CAN_F4R2_FB20_Msk (0x1U << CAN_F4R2_FB20_Pos) /*!< 0x00100000 */
  3675. #define CAN_F4R2_FB20 CAN_F4R2_FB20_Msk /*!<Filter bit 20 */
  3676. #define CAN_F4R2_FB21_Pos (21U)
  3677. #define CAN_F4R2_FB21_Msk (0x1U << CAN_F4R2_FB21_Pos) /*!< 0x00200000 */
  3678. #define CAN_F4R2_FB21 CAN_F4R2_FB21_Msk /*!<Filter bit 21 */
  3679. #define CAN_F4R2_FB22_Pos (22U)
  3680. #define CAN_F4R2_FB22_Msk (0x1U << CAN_F4R2_FB22_Pos) /*!< 0x00400000 */
  3681. #define CAN_F4R2_FB22 CAN_F4R2_FB22_Msk /*!<Filter bit 22 */
  3682. #define CAN_F4R2_FB23_Pos (23U)
  3683. #define CAN_F4R2_FB23_Msk (0x1U << CAN_F4R2_FB23_Pos) /*!< 0x00800000 */
  3684. #define CAN_F4R2_FB23 CAN_F4R2_FB23_Msk /*!<Filter bit 23 */
  3685. #define CAN_F4R2_FB24_Pos (24U)
  3686. #define CAN_F4R2_FB24_Msk (0x1U << CAN_F4R2_FB24_Pos) /*!< 0x01000000 */
  3687. #define CAN_F4R2_FB24 CAN_F4R2_FB24_Msk /*!<Filter bit 24 */
  3688. #define CAN_F4R2_FB25_Pos (25U)
  3689. #define CAN_F4R2_FB25_Msk (0x1U << CAN_F4R2_FB25_Pos) /*!< 0x02000000 */
  3690. #define CAN_F4R2_FB25 CAN_F4R2_FB25_Msk /*!<Filter bit 25 */
  3691. #define CAN_F4R2_FB26_Pos (26U)
  3692. #define CAN_F4R2_FB26_Msk (0x1U << CAN_F4R2_FB26_Pos) /*!< 0x04000000 */
  3693. #define CAN_F4R2_FB26 CAN_F4R2_FB26_Msk /*!<Filter bit 26 */
  3694. #define CAN_F4R2_FB27_Pos (27U)
  3695. #define CAN_F4R2_FB27_Msk (0x1U << CAN_F4R2_FB27_Pos) /*!< 0x08000000 */
  3696. #define CAN_F4R2_FB27 CAN_F4R2_FB27_Msk /*!<Filter bit 27 */
  3697. #define CAN_F4R2_FB28_Pos (28U)
  3698. #define CAN_F4R2_FB28_Msk (0x1U << CAN_F4R2_FB28_Pos) /*!< 0x10000000 */
  3699. #define CAN_F4R2_FB28 CAN_F4R2_FB28_Msk /*!<Filter bit 28 */
  3700. #define CAN_F4R2_FB29_Pos (29U)
  3701. #define CAN_F4R2_FB29_Msk (0x1U << CAN_F4R2_FB29_Pos) /*!< 0x20000000 */
  3702. #define CAN_F4R2_FB29 CAN_F4R2_FB29_Msk /*!<Filter bit 29 */
  3703. #define CAN_F4R2_FB30_Pos (30U)
  3704. #define CAN_F4R2_FB30_Msk (0x1U << CAN_F4R2_FB30_Pos) /*!< 0x40000000 */
  3705. #define CAN_F4R2_FB30 CAN_F4R2_FB30_Msk /*!<Filter bit 30 */
  3706. #define CAN_F4R2_FB31_Pos (31U)
  3707. #define CAN_F4R2_FB31_Msk (0x1U << CAN_F4R2_FB31_Pos) /*!< 0x80000000 */
  3708. #define CAN_F4R2_FB31 CAN_F4R2_FB31_Msk /*!<Filter bit 31 */
  3709. /******************* Bit definition for CAN_F5R2 register *******************/
  3710. #define CAN_F5R2_FB0_Pos (0U)
  3711. #define CAN_F5R2_FB0_Msk (0x1U << CAN_F5R2_FB0_Pos) /*!< 0x00000001 */
  3712. #define CAN_F5R2_FB0 CAN_F5R2_FB0_Msk /*!<Filter bit 0 */
  3713. #define CAN_F5R2_FB1_Pos (1U)
  3714. #define CAN_F5R2_FB1_Msk (0x1U << CAN_F5R2_FB1_Pos) /*!< 0x00000002 */
  3715. #define CAN_F5R2_FB1 CAN_F5R2_FB1_Msk /*!<Filter bit 1 */
  3716. #define CAN_F5R2_FB2_Pos (2U)
  3717. #define CAN_F5R2_FB2_Msk (0x1U << CAN_F5R2_FB2_Pos) /*!< 0x00000004 */
  3718. #define CAN_F5R2_FB2 CAN_F5R2_FB2_Msk /*!<Filter bit 2 */
  3719. #define CAN_F5R2_FB3_Pos (3U)
  3720. #define CAN_F5R2_FB3_Msk (0x1U << CAN_F5R2_FB3_Pos) /*!< 0x00000008 */
  3721. #define CAN_F5R2_FB3 CAN_F5R2_FB3_Msk /*!<Filter bit 3 */
  3722. #define CAN_F5R2_FB4_Pos (4U)
  3723. #define CAN_F5R2_FB4_Msk (0x1U << CAN_F5R2_FB4_Pos) /*!< 0x00000010 */
  3724. #define CAN_F5R2_FB4 CAN_F5R2_FB4_Msk /*!<Filter bit 4 */
  3725. #define CAN_F5R2_FB5_Pos (5U)
  3726. #define CAN_F5R2_FB5_Msk (0x1U << CAN_F5R2_FB5_Pos) /*!< 0x00000020 */
  3727. #define CAN_F5R2_FB5 CAN_F5R2_FB5_Msk /*!<Filter bit 5 */
  3728. #define CAN_F5R2_FB6_Pos (6U)
  3729. #define CAN_F5R2_FB6_Msk (0x1U << CAN_F5R2_FB6_Pos) /*!< 0x00000040 */
  3730. #define CAN_F5R2_FB6 CAN_F5R2_FB6_Msk /*!<Filter bit 6 */
  3731. #define CAN_F5R2_FB7_Pos (7U)
  3732. #define CAN_F5R2_FB7_Msk (0x1U << CAN_F5R2_FB7_Pos) /*!< 0x00000080 */
  3733. #define CAN_F5R2_FB7 CAN_F5R2_FB7_Msk /*!<Filter bit 7 */
  3734. #define CAN_F5R2_FB8_Pos (8U)
  3735. #define CAN_F5R2_FB8_Msk (0x1U << CAN_F5R2_FB8_Pos) /*!< 0x00000100 */
  3736. #define CAN_F5R2_FB8 CAN_F5R2_FB8_Msk /*!<Filter bit 8 */
  3737. #define CAN_F5R2_FB9_Pos (9U)
  3738. #define CAN_F5R2_FB9_Msk (0x1U << CAN_F5R2_FB9_Pos) /*!< 0x00000200 */
  3739. #define CAN_F5R2_FB9 CAN_F5R2_FB9_Msk /*!<Filter bit 9 */
  3740. #define CAN_F5R2_FB10_Pos (10U)
  3741. #define CAN_F5R2_FB10_Msk (0x1U << CAN_F5R2_FB10_Pos) /*!< 0x00000400 */
  3742. #define CAN_F5R2_FB10 CAN_F5R2_FB10_Msk /*!<Filter bit 10 */
  3743. #define CAN_F5R2_FB11_Pos (11U)
  3744. #define CAN_F5R2_FB11_Msk (0x1U << CAN_F5R2_FB11_Pos) /*!< 0x00000800 */
  3745. #define CAN_F5R2_FB11 CAN_F5R2_FB11_Msk /*!<Filter bit 11 */
  3746. #define CAN_F5R2_FB12_Pos (12U)
  3747. #define CAN_F5R2_FB12_Msk (0x1U << CAN_F5R2_FB12_Pos) /*!< 0x00001000 */
  3748. #define CAN_F5R2_FB12 CAN_F5R2_FB12_Msk /*!<Filter bit 12 */
  3749. #define CAN_F5R2_FB13_Pos (13U)
  3750. #define CAN_F5R2_FB13_Msk (0x1U << CAN_F5R2_FB13_Pos) /*!< 0x00002000 */
  3751. #define CAN_F5R2_FB13 CAN_F5R2_FB13_Msk /*!<Filter bit 13 */
  3752. #define CAN_F5R2_FB14_Pos (14U)
  3753. #define CAN_F5R2_FB14_Msk (0x1U << CAN_F5R2_FB14_Pos) /*!< 0x00004000 */
  3754. #define CAN_F5R2_FB14 CAN_F5R2_FB14_Msk /*!<Filter bit 14 */
  3755. #define CAN_F5R2_FB15_Pos (15U)
  3756. #define CAN_F5R2_FB15_Msk (0x1U << CAN_F5R2_FB15_Pos) /*!< 0x00008000 */
  3757. #define CAN_F5R2_FB15 CAN_F5R2_FB15_Msk /*!<Filter bit 15 */
  3758. #define CAN_F5R2_FB16_Pos (16U)
  3759. #define CAN_F5R2_FB16_Msk (0x1U << CAN_F5R2_FB16_Pos) /*!< 0x00010000 */
  3760. #define CAN_F5R2_FB16 CAN_F5R2_FB16_Msk /*!<Filter bit 16 */
  3761. #define CAN_F5R2_FB17_Pos (17U)
  3762. #define CAN_F5R2_FB17_Msk (0x1U << CAN_F5R2_FB17_Pos) /*!< 0x00020000 */
  3763. #define CAN_F5R2_FB17 CAN_F5R2_FB17_Msk /*!<Filter bit 17 */
  3764. #define CAN_F5R2_FB18_Pos (18U)
  3765. #define CAN_F5R2_FB18_Msk (0x1U << CAN_F5R2_FB18_Pos) /*!< 0x00040000 */
  3766. #define CAN_F5R2_FB18 CAN_F5R2_FB18_Msk /*!<Filter bit 18 */
  3767. #define CAN_F5R2_FB19_Pos (19U)
  3768. #define CAN_F5R2_FB19_Msk (0x1U << CAN_F5R2_FB19_Pos) /*!< 0x00080000 */
  3769. #define CAN_F5R2_FB19 CAN_F5R2_FB19_Msk /*!<Filter bit 19 */
  3770. #define CAN_F5R2_FB20_Pos (20U)
  3771. #define CAN_F5R2_FB20_Msk (0x1U << CAN_F5R2_FB20_Pos) /*!< 0x00100000 */
  3772. #define CAN_F5R2_FB20 CAN_F5R2_FB20_Msk /*!<Filter bit 20 */
  3773. #define CAN_F5R2_FB21_Pos (21U)
  3774. #define CAN_F5R2_FB21_Msk (0x1U << CAN_F5R2_FB21_Pos) /*!< 0x00200000 */
  3775. #define CAN_F5R2_FB21 CAN_F5R2_FB21_Msk /*!<Filter bit 21 */
  3776. #define CAN_F5R2_FB22_Pos (22U)
  3777. #define CAN_F5R2_FB22_Msk (0x1U << CAN_F5R2_FB22_Pos) /*!< 0x00400000 */
  3778. #define CAN_F5R2_FB22 CAN_F5R2_FB22_Msk /*!<Filter bit 22 */
  3779. #define CAN_F5R2_FB23_Pos (23U)
  3780. #define CAN_F5R2_FB23_Msk (0x1U << CAN_F5R2_FB23_Pos) /*!< 0x00800000 */
  3781. #define CAN_F5R2_FB23 CAN_F5R2_FB23_Msk /*!<Filter bit 23 */
  3782. #define CAN_F5R2_FB24_Pos (24U)
  3783. #define CAN_F5R2_FB24_Msk (0x1U << CAN_F5R2_FB24_Pos) /*!< 0x01000000 */
  3784. #define CAN_F5R2_FB24 CAN_F5R2_FB24_Msk /*!<Filter bit 24 */
  3785. #define CAN_F5R2_FB25_Pos (25U)
  3786. #define CAN_F5R2_FB25_Msk (0x1U << CAN_F5R2_FB25_Pos) /*!< 0x02000000 */
  3787. #define CAN_F5R2_FB25 CAN_F5R2_FB25_Msk /*!<Filter bit 25 */
  3788. #define CAN_F5R2_FB26_Pos (26U)
  3789. #define CAN_F5R2_FB26_Msk (0x1U << CAN_F5R2_FB26_Pos) /*!< 0x04000000 */
  3790. #define CAN_F5R2_FB26 CAN_F5R2_FB26_Msk /*!<Filter bit 26 */
  3791. #define CAN_F5R2_FB27_Pos (27U)
  3792. #define CAN_F5R2_FB27_Msk (0x1U << CAN_F5R2_FB27_Pos) /*!< 0x08000000 */
  3793. #define CAN_F5R2_FB27 CAN_F5R2_FB27_Msk /*!<Filter bit 27 */
  3794. #define CAN_F5R2_FB28_Pos (28U)
  3795. #define CAN_F5R2_FB28_Msk (0x1U << CAN_F5R2_FB28_Pos) /*!< 0x10000000 */
  3796. #define CAN_F5R2_FB28 CAN_F5R2_FB28_Msk /*!<Filter bit 28 */
  3797. #define CAN_F5R2_FB29_Pos (29U)
  3798. #define CAN_F5R2_FB29_Msk (0x1U << CAN_F5R2_FB29_Pos) /*!< 0x20000000 */
  3799. #define CAN_F5R2_FB29 CAN_F5R2_FB29_Msk /*!<Filter bit 29 */
  3800. #define CAN_F5R2_FB30_Pos (30U)
  3801. #define CAN_F5R2_FB30_Msk (0x1U << CAN_F5R2_FB30_Pos) /*!< 0x40000000 */
  3802. #define CAN_F5R2_FB30 CAN_F5R2_FB30_Msk /*!<Filter bit 30 */
  3803. #define CAN_F5R2_FB31_Pos (31U)
  3804. #define CAN_F5R2_FB31_Msk (0x1U << CAN_F5R2_FB31_Pos) /*!< 0x80000000 */
  3805. #define CAN_F5R2_FB31 CAN_F5R2_FB31_Msk /*!<Filter bit 31 */
  3806. /******************* Bit definition for CAN_F6R2 register *******************/
  3807. #define CAN_F6R2_FB0_Pos (0U)
  3808. #define CAN_F6R2_FB0_Msk (0x1U << CAN_F6R2_FB0_Pos) /*!< 0x00000001 */
  3809. #define CAN_F6R2_FB0 CAN_F6R2_FB0_Msk /*!<Filter bit 0 */
  3810. #define CAN_F6R2_FB1_Pos (1U)
  3811. #define CAN_F6R2_FB1_Msk (0x1U << CAN_F6R2_FB1_Pos) /*!< 0x00000002 */
  3812. #define CAN_F6R2_FB1 CAN_F6R2_FB1_Msk /*!<Filter bit 1 */
  3813. #define CAN_F6R2_FB2_Pos (2U)
  3814. #define CAN_F6R2_FB2_Msk (0x1U << CAN_F6R2_FB2_Pos) /*!< 0x00000004 */
  3815. #define CAN_F6R2_FB2 CAN_F6R2_FB2_Msk /*!<Filter bit 2 */
  3816. #define CAN_F6R2_FB3_Pos (3U)
  3817. #define CAN_F6R2_FB3_Msk (0x1U << CAN_F6R2_FB3_Pos) /*!< 0x00000008 */
  3818. #define CAN_F6R2_FB3 CAN_F6R2_FB3_Msk /*!<Filter bit 3 */
  3819. #define CAN_F6R2_FB4_Pos (4U)
  3820. #define CAN_F6R2_FB4_Msk (0x1U << CAN_F6R2_FB4_Pos) /*!< 0x00000010 */
  3821. #define CAN_F6R2_FB4 CAN_F6R2_FB4_Msk /*!<Filter bit 4 */
  3822. #define CAN_F6R2_FB5_Pos (5U)
  3823. #define CAN_F6R2_FB5_Msk (0x1U << CAN_F6R2_FB5_Pos) /*!< 0x00000020 */
  3824. #define CAN_F6R2_FB5 CAN_F6R2_FB5_Msk /*!<Filter bit 5 */
  3825. #define CAN_F6R2_FB6_Pos (6U)
  3826. #define CAN_F6R2_FB6_Msk (0x1U << CAN_F6R2_FB6_Pos) /*!< 0x00000040 */
  3827. #define CAN_F6R2_FB6 CAN_F6R2_FB6_Msk /*!<Filter bit 6 */
  3828. #define CAN_F6R2_FB7_Pos (7U)
  3829. #define CAN_F6R2_FB7_Msk (0x1U << CAN_F6R2_FB7_Pos) /*!< 0x00000080 */
  3830. #define CAN_F6R2_FB7 CAN_F6R2_FB7_Msk /*!<Filter bit 7 */
  3831. #define CAN_F6R2_FB8_Pos (8U)
  3832. #define CAN_F6R2_FB8_Msk (0x1U << CAN_F6R2_FB8_Pos) /*!< 0x00000100 */
  3833. #define CAN_F6R2_FB8 CAN_F6R2_FB8_Msk /*!<Filter bit 8 */
  3834. #define CAN_F6R2_FB9_Pos (9U)
  3835. #define CAN_F6R2_FB9_Msk (0x1U << CAN_F6R2_FB9_Pos) /*!< 0x00000200 */
  3836. #define CAN_F6R2_FB9 CAN_F6R2_FB9_Msk /*!<Filter bit 9 */
  3837. #define CAN_F6R2_FB10_Pos (10U)
  3838. #define CAN_F6R2_FB10_Msk (0x1U << CAN_F6R2_FB10_Pos) /*!< 0x00000400 */
  3839. #define CAN_F6R2_FB10 CAN_F6R2_FB10_Msk /*!<Filter bit 10 */
  3840. #define CAN_F6R2_FB11_Pos (11U)
  3841. #define CAN_F6R2_FB11_Msk (0x1U << CAN_F6R2_FB11_Pos) /*!< 0x00000800 */
  3842. #define CAN_F6R2_FB11 CAN_F6R2_FB11_Msk /*!<Filter bit 11 */
  3843. #define CAN_F6R2_FB12_Pos (12U)
  3844. #define CAN_F6R2_FB12_Msk (0x1U << CAN_F6R2_FB12_Pos) /*!< 0x00001000 */
  3845. #define CAN_F6R2_FB12 CAN_F6R2_FB12_Msk /*!<Filter bit 12 */
  3846. #define CAN_F6R2_FB13_Pos (13U)
  3847. #define CAN_F6R2_FB13_Msk (0x1U << CAN_F6R2_FB13_Pos) /*!< 0x00002000 */
  3848. #define CAN_F6R2_FB13 CAN_F6R2_FB13_Msk /*!<Filter bit 13 */
  3849. #define CAN_F6R2_FB14_Pos (14U)
  3850. #define CAN_F6R2_FB14_Msk (0x1U << CAN_F6R2_FB14_Pos) /*!< 0x00004000 */
  3851. #define CAN_F6R2_FB14 CAN_F6R2_FB14_Msk /*!<Filter bit 14 */
  3852. #define CAN_F6R2_FB15_Pos (15U)
  3853. #define CAN_F6R2_FB15_Msk (0x1U << CAN_F6R2_FB15_Pos) /*!< 0x00008000 */
  3854. #define CAN_F6R2_FB15 CAN_F6R2_FB15_Msk /*!<Filter bit 15 */
  3855. #define CAN_F6R2_FB16_Pos (16U)
  3856. #define CAN_F6R2_FB16_Msk (0x1U << CAN_F6R2_FB16_Pos) /*!< 0x00010000 */
  3857. #define CAN_F6R2_FB16 CAN_F6R2_FB16_Msk /*!<Filter bit 16 */
  3858. #define CAN_F6R2_FB17_Pos (17U)
  3859. #define CAN_F6R2_FB17_Msk (0x1U << CAN_F6R2_FB17_Pos) /*!< 0x00020000 */
  3860. #define CAN_F6R2_FB17 CAN_F6R2_FB17_Msk /*!<Filter bit 17 */
  3861. #define CAN_F6R2_FB18_Pos (18U)
  3862. #define CAN_F6R2_FB18_Msk (0x1U << CAN_F6R2_FB18_Pos) /*!< 0x00040000 */
  3863. #define CAN_F6R2_FB18 CAN_F6R2_FB18_Msk /*!<Filter bit 18 */
  3864. #define CAN_F6R2_FB19_Pos (19U)
  3865. #define CAN_F6R2_FB19_Msk (0x1U << CAN_F6R2_FB19_Pos) /*!< 0x00080000 */
  3866. #define CAN_F6R2_FB19 CAN_F6R2_FB19_Msk /*!<Filter bit 19 */
  3867. #define CAN_F6R2_FB20_Pos (20U)
  3868. #define CAN_F6R2_FB20_Msk (0x1U << CAN_F6R2_FB20_Pos) /*!< 0x00100000 */
  3869. #define CAN_F6R2_FB20 CAN_F6R2_FB20_Msk /*!<Filter bit 20 */
  3870. #define CAN_F6R2_FB21_Pos (21U)
  3871. #define CAN_F6R2_FB21_Msk (0x1U << CAN_F6R2_FB21_Pos) /*!< 0x00200000 */
  3872. #define CAN_F6R2_FB21 CAN_F6R2_FB21_Msk /*!<Filter bit 21 */
  3873. #define CAN_F6R2_FB22_Pos (22U)
  3874. #define CAN_F6R2_FB22_Msk (0x1U << CAN_F6R2_FB22_Pos) /*!< 0x00400000 */
  3875. #define CAN_F6R2_FB22 CAN_F6R2_FB22_Msk /*!<Filter bit 22 */
  3876. #define CAN_F6R2_FB23_Pos (23U)
  3877. #define CAN_F6R2_FB23_Msk (0x1U << CAN_F6R2_FB23_Pos) /*!< 0x00800000 */
  3878. #define CAN_F6R2_FB23 CAN_F6R2_FB23_Msk /*!<Filter bit 23 */
  3879. #define CAN_F6R2_FB24_Pos (24U)
  3880. #define CAN_F6R2_FB24_Msk (0x1U << CAN_F6R2_FB24_Pos) /*!< 0x01000000 */
  3881. #define CAN_F6R2_FB24 CAN_F6R2_FB24_Msk /*!<Filter bit 24 */
  3882. #define CAN_F6R2_FB25_Pos (25U)
  3883. #define CAN_F6R2_FB25_Msk (0x1U << CAN_F6R2_FB25_Pos) /*!< 0x02000000 */
  3884. #define CAN_F6R2_FB25 CAN_F6R2_FB25_Msk /*!<Filter bit 25 */
  3885. #define CAN_F6R2_FB26_Pos (26U)
  3886. #define CAN_F6R2_FB26_Msk (0x1U << CAN_F6R2_FB26_Pos) /*!< 0x04000000 */
  3887. #define CAN_F6R2_FB26 CAN_F6R2_FB26_Msk /*!<Filter bit 26 */
  3888. #define CAN_F6R2_FB27_Pos (27U)
  3889. #define CAN_F6R2_FB27_Msk (0x1U << CAN_F6R2_FB27_Pos) /*!< 0x08000000 */
  3890. #define CAN_F6R2_FB27 CAN_F6R2_FB27_Msk /*!<Filter bit 27 */
  3891. #define CAN_F6R2_FB28_Pos (28U)
  3892. #define CAN_F6R2_FB28_Msk (0x1U << CAN_F6R2_FB28_Pos) /*!< 0x10000000 */
  3893. #define CAN_F6R2_FB28 CAN_F6R2_FB28_Msk /*!<Filter bit 28 */
  3894. #define CAN_F6R2_FB29_Pos (29U)
  3895. #define CAN_F6R2_FB29_Msk (0x1U << CAN_F6R2_FB29_Pos) /*!< 0x20000000 */
  3896. #define CAN_F6R2_FB29 CAN_F6R2_FB29_Msk /*!<Filter bit 29 */
  3897. #define CAN_F6R2_FB30_Pos (30U)
  3898. #define CAN_F6R2_FB30_Msk (0x1U << CAN_F6R2_FB30_Pos) /*!< 0x40000000 */
  3899. #define CAN_F6R2_FB30 CAN_F6R2_FB30_Msk /*!<Filter bit 30 */
  3900. #define CAN_F6R2_FB31_Pos (31U)
  3901. #define CAN_F6R2_FB31_Msk (0x1U << CAN_F6R2_FB31_Pos) /*!< 0x80000000 */
  3902. #define CAN_F6R2_FB31 CAN_F6R2_FB31_Msk /*!<Filter bit 31 */
  3903. /******************* Bit definition for CAN_F7R2 register *******************/
  3904. #define CAN_F7R2_FB0_Pos (0U)
  3905. #define CAN_F7R2_FB0_Msk (0x1U << CAN_F7R2_FB0_Pos) /*!< 0x00000001 */
  3906. #define CAN_F7R2_FB0 CAN_F7R2_FB0_Msk /*!<Filter bit 0 */
  3907. #define CAN_F7R2_FB1_Pos (1U)
  3908. #define CAN_F7R2_FB1_Msk (0x1U << CAN_F7R2_FB1_Pos) /*!< 0x00000002 */
  3909. #define CAN_F7R2_FB1 CAN_F7R2_FB1_Msk /*!<Filter bit 1 */
  3910. #define CAN_F7R2_FB2_Pos (2U)
  3911. #define CAN_F7R2_FB2_Msk (0x1U << CAN_F7R2_FB2_Pos) /*!< 0x00000004 */
  3912. #define CAN_F7R2_FB2 CAN_F7R2_FB2_Msk /*!<Filter bit 2 */
  3913. #define CAN_F7R2_FB3_Pos (3U)
  3914. #define CAN_F7R2_FB3_Msk (0x1U << CAN_F7R2_FB3_Pos) /*!< 0x00000008 */
  3915. #define CAN_F7R2_FB3 CAN_F7R2_FB3_Msk /*!<Filter bit 3 */
  3916. #define CAN_F7R2_FB4_Pos (4U)
  3917. #define CAN_F7R2_FB4_Msk (0x1U << CAN_F7R2_FB4_Pos) /*!< 0x00000010 */
  3918. #define CAN_F7R2_FB4 CAN_F7R2_FB4_Msk /*!<Filter bit 4 */
  3919. #define CAN_F7R2_FB5_Pos (5U)
  3920. #define CAN_F7R2_FB5_Msk (0x1U << CAN_F7R2_FB5_Pos) /*!< 0x00000020 */
  3921. #define CAN_F7R2_FB5 CAN_F7R2_FB5_Msk /*!<Filter bit 5 */
  3922. #define CAN_F7R2_FB6_Pos (6U)
  3923. #define CAN_F7R2_FB6_Msk (0x1U << CAN_F7R2_FB6_Pos) /*!< 0x00000040 */
  3924. #define CAN_F7R2_FB6 CAN_F7R2_FB6_Msk /*!<Filter bit 6 */
  3925. #define CAN_F7R2_FB7_Pos (7U)
  3926. #define CAN_F7R2_FB7_Msk (0x1U << CAN_F7R2_FB7_Pos) /*!< 0x00000080 */
  3927. #define CAN_F7R2_FB7 CAN_F7R2_FB7_Msk /*!<Filter bit 7 */
  3928. #define CAN_F7R2_FB8_Pos (8U)
  3929. #define CAN_F7R2_FB8_Msk (0x1U << CAN_F7R2_FB8_Pos) /*!< 0x00000100 */
  3930. #define CAN_F7R2_FB8 CAN_F7R2_FB8_Msk /*!<Filter bit 8 */
  3931. #define CAN_F7R2_FB9_Pos (9U)
  3932. #define CAN_F7R2_FB9_Msk (0x1U << CAN_F7R2_FB9_Pos) /*!< 0x00000200 */
  3933. #define CAN_F7R2_FB9 CAN_F7R2_FB9_Msk /*!<Filter bit 9 */
  3934. #define CAN_F7R2_FB10_Pos (10U)
  3935. #define CAN_F7R2_FB10_Msk (0x1U << CAN_F7R2_FB10_Pos) /*!< 0x00000400 */
  3936. #define CAN_F7R2_FB10 CAN_F7R2_FB10_Msk /*!<Filter bit 10 */
  3937. #define CAN_F7R2_FB11_Pos (11U)
  3938. #define CAN_F7R2_FB11_Msk (0x1U << CAN_F7R2_FB11_Pos) /*!< 0x00000800 */
  3939. #define CAN_F7R2_FB11 CAN_F7R2_FB11_Msk /*!<Filter bit 11 */
  3940. #define CAN_F7R2_FB12_Pos (12U)
  3941. #define CAN_F7R2_FB12_Msk (0x1U << CAN_F7R2_FB12_Pos) /*!< 0x00001000 */
  3942. #define CAN_F7R2_FB12 CAN_F7R2_FB12_Msk /*!<Filter bit 12 */
  3943. #define CAN_F7R2_FB13_Pos (13U)
  3944. #define CAN_F7R2_FB13_Msk (0x1U << CAN_F7R2_FB13_Pos) /*!< 0x00002000 */
  3945. #define CAN_F7R2_FB13 CAN_F7R2_FB13_Msk /*!<Filter bit 13 */
  3946. #define CAN_F7R2_FB14_Pos (14U)
  3947. #define CAN_F7R2_FB14_Msk (0x1U << CAN_F7R2_FB14_Pos) /*!< 0x00004000 */
  3948. #define CAN_F7R2_FB14 CAN_F7R2_FB14_Msk /*!<Filter bit 14 */
  3949. #define CAN_F7R2_FB15_Pos (15U)
  3950. #define CAN_F7R2_FB15_Msk (0x1U << CAN_F7R2_FB15_Pos) /*!< 0x00008000 */
  3951. #define CAN_F7R2_FB15 CAN_F7R2_FB15_Msk /*!<Filter bit 15 */
  3952. #define CAN_F7R2_FB16_Pos (16U)
  3953. #define CAN_F7R2_FB16_Msk (0x1U << CAN_F7R2_FB16_Pos) /*!< 0x00010000 */
  3954. #define CAN_F7R2_FB16 CAN_F7R2_FB16_Msk /*!<Filter bit 16 */
  3955. #define CAN_F7R2_FB17_Pos (17U)
  3956. #define CAN_F7R2_FB17_Msk (0x1U << CAN_F7R2_FB17_Pos) /*!< 0x00020000 */
  3957. #define CAN_F7R2_FB17 CAN_F7R2_FB17_Msk /*!<Filter bit 17 */
  3958. #define CAN_F7R2_FB18_Pos (18U)
  3959. #define CAN_F7R2_FB18_Msk (0x1U << CAN_F7R2_FB18_Pos) /*!< 0x00040000 */
  3960. #define CAN_F7R2_FB18 CAN_F7R2_FB18_Msk /*!<Filter bit 18 */
  3961. #define CAN_F7R2_FB19_Pos (19U)
  3962. #define CAN_F7R2_FB19_Msk (0x1U << CAN_F7R2_FB19_Pos) /*!< 0x00080000 */
  3963. #define CAN_F7R2_FB19 CAN_F7R2_FB19_Msk /*!<Filter bit 19 */
  3964. #define CAN_F7R2_FB20_Pos (20U)
  3965. #define CAN_F7R2_FB20_Msk (0x1U << CAN_F7R2_FB20_Pos) /*!< 0x00100000 */
  3966. #define CAN_F7R2_FB20 CAN_F7R2_FB20_Msk /*!<Filter bit 20 */
  3967. #define CAN_F7R2_FB21_Pos (21U)
  3968. #define CAN_F7R2_FB21_Msk (0x1U << CAN_F7R2_FB21_Pos) /*!< 0x00200000 */
  3969. #define CAN_F7R2_FB21 CAN_F7R2_FB21_Msk /*!<Filter bit 21 */
  3970. #define CAN_F7R2_FB22_Pos (22U)
  3971. #define CAN_F7R2_FB22_Msk (0x1U << CAN_F7R2_FB22_Pos) /*!< 0x00400000 */
  3972. #define CAN_F7R2_FB22 CAN_F7R2_FB22_Msk /*!<Filter bit 22 */
  3973. #define CAN_F7R2_FB23_Pos (23U)
  3974. #define CAN_F7R2_FB23_Msk (0x1U << CAN_F7R2_FB23_Pos) /*!< 0x00800000 */
  3975. #define CAN_F7R2_FB23 CAN_F7R2_FB23_Msk /*!<Filter bit 23 */
  3976. #define CAN_F7R2_FB24_Pos (24U)
  3977. #define CAN_F7R2_FB24_Msk (0x1U << CAN_F7R2_FB24_Pos) /*!< 0x01000000 */
  3978. #define CAN_F7R2_FB24 CAN_F7R2_FB24_Msk /*!<Filter bit 24 */
  3979. #define CAN_F7R2_FB25_Pos (25U)
  3980. #define CAN_F7R2_FB25_Msk (0x1U << CAN_F7R2_FB25_Pos) /*!< 0x02000000 */
  3981. #define CAN_F7R2_FB25 CAN_F7R2_FB25_Msk /*!<Filter bit 25 */
  3982. #define CAN_F7R2_FB26_Pos (26U)
  3983. #define CAN_F7R2_FB26_Msk (0x1U << CAN_F7R2_FB26_Pos) /*!< 0x04000000 */
  3984. #define CAN_F7R2_FB26 CAN_F7R2_FB26_Msk /*!<Filter bit 26 */
  3985. #define CAN_F7R2_FB27_Pos (27U)
  3986. #define CAN_F7R2_FB27_Msk (0x1U << CAN_F7R2_FB27_Pos) /*!< 0x08000000 */
  3987. #define CAN_F7R2_FB27 CAN_F7R2_FB27_Msk /*!<Filter bit 27 */
  3988. #define CAN_F7R2_FB28_Pos (28U)
  3989. #define CAN_F7R2_FB28_Msk (0x1U << CAN_F7R2_FB28_Pos) /*!< 0x10000000 */
  3990. #define CAN_F7R2_FB28 CAN_F7R2_FB28_Msk /*!<Filter bit 28 */
  3991. #define CAN_F7R2_FB29_Pos (29U)
  3992. #define CAN_F7R2_FB29_Msk (0x1U << CAN_F7R2_FB29_Pos) /*!< 0x20000000 */
  3993. #define CAN_F7R2_FB29 CAN_F7R2_FB29_Msk /*!<Filter bit 29 */
  3994. #define CAN_F7R2_FB30_Pos (30U)
  3995. #define CAN_F7R2_FB30_Msk (0x1U << CAN_F7R2_FB30_Pos) /*!< 0x40000000 */
  3996. #define CAN_F7R2_FB30 CAN_F7R2_FB30_Msk /*!<Filter bit 30 */
  3997. #define CAN_F7R2_FB31_Pos (31U)
  3998. #define CAN_F7R2_FB31_Msk (0x1U << CAN_F7R2_FB31_Pos) /*!< 0x80000000 */
  3999. #define CAN_F7R2_FB31 CAN_F7R2_FB31_Msk /*!<Filter bit 31 */
  4000. /******************* Bit definition for CAN_F8R2 register *******************/
  4001. #define CAN_F8R2_FB0_Pos (0U)
  4002. #define CAN_F8R2_FB0_Msk (0x1U << CAN_F8R2_FB0_Pos) /*!< 0x00000001 */
  4003. #define CAN_F8R2_FB0 CAN_F8R2_FB0_Msk /*!<Filter bit 0 */
  4004. #define CAN_F8R2_FB1_Pos (1U)
  4005. #define CAN_F8R2_FB1_Msk (0x1U << CAN_F8R2_FB1_Pos) /*!< 0x00000002 */
  4006. #define CAN_F8R2_FB1 CAN_F8R2_FB1_Msk /*!<Filter bit 1 */
  4007. #define CAN_F8R2_FB2_Pos (2U)
  4008. #define CAN_F8R2_FB2_Msk (0x1U << CAN_F8R2_FB2_Pos) /*!< 0x00000004 */
  4009. #define CAN_F8R2_FB2 CAN_F8R2_FB2_Msk /*!<Filter bit 2 */
  4010. #define CAN_F8R2_FB3_Pos (3U)
  4011. #define CAN_F8R2_FB3_Msk (0x1U << CAN_F8R2_FB3_Pos) /*!< 0x00000008 */
  4012. #define CAN_F8R2_FB3 CAN_F8R2_FB3_Msk /*!<Filter bit 3 */
  4013. #define CAN_F8R2_FB4_Pos (4U)
  4014. #define CAN_F8R2_FB4_Msk (0x1U << CAN_F8R2_FB4_Pos) /*!< 0x00000010 */
  4015. #define CAN_F8R2_FB4 CAN_F8R2_FB4_Msk /*!<Filter bit 4 */
  4016. #define CAN_F8R2_FB5_Pos (5U)
  4017. #define CAN_F8R2_FB5_Msk (0x1U << CAN_F8R2_FB5_Pos) /*!< 0x00000020 */
  4018. #define CAN_F8R2_FB5 CAN_F8R2_FB5_Msk /*!<Filter bit 5 */
  4019. #define CAN_F8R2_FB6_Pos (6U)
  4020. #define CAN_F8R2_FB6_Msk (0x1U << CAN_F8R2_FB6_Pos) /*!< 0x00000040 */
  4021. #define CAN_F8R2_FB6 CAN_F8R2_FB6_Msk /*!<Filter bit 6 */
  4022. #define CAN_F8R2_FB7_Pos (7U)
  4023. #define CAN_F8R2_FB7_Msk (0x1U << CAN_F8R2_FB7_Pos) /*!< 0x00000080 */
  4024. #define CAN_F8R2_FB7 CAN_F8R2_FB7_Msk /*!<Filter bit 7 */
  4025. #define CAN_F8R2_FB8_Pos (8U)
  4026. #define CAN_F8R2_FB8_Msk (0x1U << CAN_F8R2_FB8_Pos) /*!< 0x00000100 */
  4027. #define CAN_F8R2_FB8 CAN_F8R2_FB8_Msk /*!<Filter bit 8 */
  4028. #define CAN_F8R2_FB9_Pos (9U)
  4029. #define CAN_F8R2_FB9_Msk (0x1U << CAN_F8R2_FB9_Pos) /*!< 0x00000200 */
  4030. #define CAN_F8R2_FB9 CAN_F8R2_FB9_Msk /*!<Filter bit 9 */
  4031. #define CAN_F8R2_FB10_Pos (10U)
  4032. #define CAN_F8R2_FB10_Msk (0x1U << CAN_F8R2_FB10_Pos) /*!< 0x00000400 */
  4033. #define CAN_F8R2_FB10 CAN_F8R2_FB10_Msk /*!<Filter bit 10 */
  4034. #define CAN_F8R2_FB11_Pos (11U)
  4035. #define CAN_F8R2_FB11_Msk (0x1U << CAN_F8R2_FB11_Pos) /*!< 0x00000800 */
  4036. #define CAN_F8R2_FB11 CAN_F8R2_FB11_Msk /*!<Filter bit 11 */
  4037. #define CAN_F8R2_FB12_Pos (12U)
  4038. #define CAN_F8R2_FB12_Msk (0x1U << CAN_F8R2_FB12_Pos) /*!< 0x00001000 */
  4039. #define CAN_F8R2_FB12 CAN_F8R2_FB12_Msk /*!<Filter bit 12 */
  4040. #define CAN_F8R2_FB13_Pos (13U)
  4041. #define CAN_F8R2_FB13_Msk (0x1U << CAN_F8R2_FB13_Pos) /*!< 0x00002000 */
  4042. #define CAN_F8R2_FB13 CAN_F8R2_FB13_Msk /*!<Filter bit 13 */
  4043. #define CAN_F8R2_FB14_Pos (14U)
  4044. #define CAN_F8R2_FB14_Msk (0x1U << CAN_F8R2_FB14_Pos) /*!< 0x00004000 */
  4045. #define CAN_F8R2_FB14 CAN_F8R2_FB14_Msk /*!<Filter bit 14 */
  4046. #define CAN_F8R2_FB15_Pos (15U)
  4047. #define CAN_F8R2_FB15_Msk (0x1U << CAN_F8R2_FB15_Pos) /*!< 0x00008000 */
  4048. #define CAN_F8R2_FB15 CAN_F8R2_FB15_Msk /*!<Filter bit 15 */
  4049. #define CAN_F8R2_FB16_Pos (16U)
  4050. #define CAN_F8R2_FB16_Msk (0x1U << CAN_F8R2_FB16_Pos) /*!< 0x00010000 */
  4051. #define CAN_F8R2_FB16 CAN_F8R2_FB16_Msk /*!<Filter bit 16 */
  4052. #define CAN_F8R2_FB17_Pos (17U)
  4053. #define CAN_F8R2_FB17_Msk (0x1U << CAN_F8R2_FB17_Pos) /*!< 0x00020000 */
  4054. #define CAN_F8R2_FB17 CAN_F8R2_FB17_Msk /*!<Filter bit 17 */
  4055. #define CAN_F8R2_FB18_Pos (18U)
  4056. #define CAN_F8R2_FB18_Msk (0x1U << CAN_F8R2_FB18_Pos) /*!< 0x00040000 */
  4057. #define CAN_F8R2_FB18 CAN_F8R2_FB18_Msk /*!<Filter bit 18 */
  4058. #define CAN_F8R2_FB19_Pos (19U)
  4059. #define CAN_F8R2_FB19_Msk (0x1U << CAN_F8R2_FB19_Pos) /*!< 0x00080000 */
  4060. #define CAN_F8R2_FB19 CAN_F8R2_FB19_Msk /*!<Filter bit 19 */
  4061. #define CAN_F8R2_FB20_Pos (20U)
  4062. #define CAN_F8R2_FB20_Msk (0x1U << CAN_F8R2_FB20_Pos) /*!< 0x00100000 */
  4063. #define CAN_F8R2_FB20 CAN_F8R2_FB20_Msk /*!<Filter bit 20 */
  4064. #define CAN_F8R2_FB21_Pos (21U)
  4065. #define CAN_F8R2_FB21_Msk (0x1U << CAN_F8R2_FB21_Pos) /*!< 0x00200000 */
  4066. #define CAN_F8R2_FB21 CAN_F8R2_FB21_Msk /*!<Filter bit 21 */
  4067. #define CAN_F8R2_FB22_Pos (22U)
  4068. #define CAN_F8R2_FB22_Msk (0x1U << CAN_F8R2_FB22_Pos) /*!< 0x00400000 */
  4069. #define CAN_F8R2_FB22 CAN_F8R2_FB22_Msk /*!<Filter bit 22 */
  4070. #define CAN_F8R2_FB23_Pos (23U)
  4071. #define CAN_F8R2_FB23_Msk (0x1U << CAN_F8R2_FB23_Pos) /*!< 0x00800000 */
  4072. #define CAN_F8R2_FB23 CAN_F8R2_FB23_Msk /*!<Filter bit 23 */
  4073. #define CAN_F8R2_FB24_Pos (24U)
  4074. #define CAN_F8R2_FB24_Msk (0x1U << CAN_F8R2_FB24_Pos) /*!< 0x01000000 */
  4075. #define CAN_F8R2_FB24 CAN_F8R2_FB24_Msk /*!<Filter bit 24 */
  4076. #define CAN_F8R2_FB25_Pos (25U)
  4077. #define CAN_F8R2_FB25_Msk (0x1U << CAN_F8R2_FB25_Pos) /*!< 0x02000000 */
  4078. #define CAN_F8R2_FB25 CAN_F8R2_FB25_Msk /*!<Filter bit 25 */
  4079. #define CAN_F8R2_FB26_Pos (26U)
  4080. #define CAN_F8R2_FB26_Msk (0x1U << CAN_F8R2_FB26_Pos) /*!< 0x04000000 */
  4081. #define CAN_F8R2_FB26 CAN_F8R2_FB26_Msk /*!<Filter bit 26 */
  4082. #define CAN_F8R2_FB27_Pos (27U)
  4083. #define CAN_F8R2_FB27_Msk (0x1U << CAN_F8R2_FB27_Pos) /*!< 0x08000000 */
  4084. #define CAN_F8R2_FB27 CAN_F8R2_FB27_Msk /*!<Filter bit 27 */
  4085. #define CAN_F8R2_FB28_Pos (28U)
  4086. #define CAN_F8R2_FB28_Msk (0x1U << CAN_F8R2_FB28_Pos) /*!< 0x10000000 */
  4087. #define CAN_F8R2_FB28 CAN_F8R2_FB28_Msk /*!<Filter bit 28 */
  4088. #define CAN_F8R2_FB29_Pos (29U)
  4089. #define CAN_F8R2_FB29_Msk (0x1U << CAN_F8R2_FB29_Pos) /*!< 0x20000000 */
  4090. #define CAN_F8R2_FB29 CAN_F8R2_FB29_Msk /*!<Filter bit 29 */
  4091. #define CAN_F8R2_FB30_Pos (30U)
  4092. #define CAN_F8R2_FB30_Msk (0x1U << CAN_F8R2_FB30_Pos) /*!< 0x40000000 */
  4093. #define CAN_F8R2_FB30 CAN_F8R2_FB30_Msk /*!<Filter bit 30 */
  4094. #define CAN_F8R2_FB31_Pos (31U)
  4095. #define CAN_F8R2_FB31_Msk (0x1U << CAN_F8R2_FB31_Pos) /*!< 0x80000000 */
  4096. #define CAN_F8R2_FB31 CAN_F8R2_FB31_Msk /*!<Filter bit 31 */
  4097. /******************* Bit definition for CAN_F9R2 register *******************/
  4098. #define CAN_F9R2_FB0_Pos (0U)
  4099. #define CAN_F9R2_FB0_Msk (0x1U << CAN_F9R2_FB0_Pos) /*!< 0x00000001 */
  4100. #define CAN_F9R2_FB0 CAN_F9R2_FB0_Msk /*!<Filter bit 0 */
  4101. #define CAN_F9R2_FB1_Pos (1U)
  4102. #define CAN_F9R2_FB1_Msk (0x1U << CAN_F9R2_FB1_Pos) /*!< 0x00000002 */
  4103. #define CAN_F9R2_FB1 CAN_F9R2_FB1_Msk /*!<Filter bit 1 */
  4104. #define CAN_F9R2_FB2_Pos (2U)
  4105. #define CAN_F9R2_FB2_Msk (0x1U << CAN_F9R2_FB2_Pos) /*!< 0x00000004 */
  4106. #define CAN_F9R2_FB2 CAN_F9R2_FB2_Msk /*!<Filter bit 2 */
  4107. #define CAN_F9R2_FB3_Pos (3U)
  4108. #define CAN_F9R2_FB3_Msk (0x1U << CAN_F9R2_FB3_Pos) /*!< 0x00000008 */
  4109. #define CAN_F9R2_FB3 CAN_F9R2_FB3_Msk /*!<Filter bit 3 */
  4110. #define CAN_F9R2_FB4_Pos (4U)
  4111. #define CAN_F9R2_FB4_Msk (0x1U << CAN_F9R2_FB4_Pos) /*!< 0x00000010 */
  4112. #define CAN_F9R2_FB4 CAN_F9R2_FB4_Msk /*!<Filter bit 4 */
  4113. #define CAN_F9R2_FB5_Pos (5U)
  4114. #define CAN_F9R2_FB5_Msk (0x1U << CAN_F9R2_FB5_Pos) /*!< 0x00000020 */
  4115. #define CAN_F9R2_FB5 CAN_F9R2_FB5_Msk /*!<Filter bit 5 */
  4116. #define CAN_F9R2_FB6_Pos (6U)
  4117. #define CAN_F9R2_FB6_Msk (0x1U << CAN_F9R2_FB6_Pos) /*!< 0x00000040 */
  4118. #define CAN_F9R2_FB6 CAN_F9R2_FB6_Msk /*!<Filter bit 6 */
  4119. #define CAN_F9R2_FB7_Pos (7U)
  4120. #define CAN_F9R2_FB7_Msk (0x1U << CAN_F9R2_FB7_Pos) /*!< 0x00000080 */
  4121. #define CAN_F9R2_FB7 CAN_F9R2_FB7_Msk /*!<Filter bit 7 */
  4122. #define CAN_F9R2_FB8_Pos (8U)
  4123. #define CAN_F9R2_FB8_Msk (0x1U << CAN_F9R2_FB8_Pos) /*!< 0x00000100 */
  4124. #define CAN_F9R2_FB8 CAN_F9R2_FB8_Msk /*!<Filter bit 8 */
  4125. #define CAN_F9R2_FB9_Pos (9U)
  4126. #define CAN_F9R2_FB9_Msk (0x1U << CAN_F9R2_FB9_Pos) /*!< 0x00000200 */
  4127. #define CAN_F9R2_FB9 CAN_F9R2_FB9_Msk /*!<Filter bit 9 */
  4128. #define CAN_F9R2_FB10_Pos (10U)
  4129. #define CAN_F9R2_FB10_Msk (0x1U << CAN_F9R2_FB10_Pos) /*!< 0x00000400 */
  4130. #define CAN_F9R2_FB10 CAN_F9R2_FB10_Msk /*!<Filter bit 10 */
  4131. #define CAN_F9R2_FB11_Pos (11U)
  4132. #define CAN_F9R2_FB11_Msk (0x1U << CAN_F9R2_FB11_Pos) /*!< 0x00000800 */
  4133. #define CAN_F9R2_FB11 CAN_F9R2_FB11_Msk /*!<Filter bit 11 */
  4134. #define CAN_F9R2_FB12_Pos (12U)
  4135. #define CAN_F9R2_FB12_Msk (0x1U << CAN_F9R2_FB12_Pos) /*!< 0x00001000 */
  4136. #define CAN_F9R2_FB12 CAN_F9R2_FB12_Msk /*!<Filter bit 12 */
  4137. #define CAN_F9R2_FB13_Pos (13U)
  4138. #define CAN_F9R2_FB13_Msk (0x1U << CAN_F9R2_FB13_Pos) /*!< 0x00002000 */
  4139. #define CAN_F9R2_FB13 CAN_F9R2_FB13_Msk /*!<Filter bit 13 */
  4140. #define CAN_F9R2_FB14_Pos (14U)
  4141. #define CAN_F9R2_FB14_Msk (0x1U << CAN_F9R2_FB14_Pos) /*!< 0x00004000 */
  4142. #define CAN_F9R2_FB14 CAN_F9R2_FB14_Msk /*!<Filter bit 14 */
  4143. #define CAN_F9R2_FB15_Pos (15U)
  4144. #define CAN_F9R2_FB15_Msk (0x1U << CAN_F9R2_FB15_Pos) /*!< 0x00008000 */
  4145. #define CAN_F9R2_FB15 CAN_F9R2_FB15_Msk /*!<Filter bit 15 */
  4146. #define CAN_F9R2_FB16_Pos (16U)
  4147. #define CAN_F9R2_FB16_Msk (0x1U << CAN_F9R2_FB16_Pos) /*!< 0x00010000 */
  4148. #define CAN_F9R2_FB16 CAN_F9R2_FB16_Msk /*!<Filter bit 16 */
  4149. #define CAN_F9R2_FB17_Pos (17U)
  4150. #define CAN_F9R2_FB17_Msk (0x1U << CAN_F9R2_FB17_Pos) /*!< 0x00020000 */
  4151. #define CAN_F9R2_FB17 CAN_F9R2_FB17_Msk /*!<Filter bit 17 */
  4152. #define CAN_F9R2_FB18_Pos (18U)
  4153. #define CAN_F9R2_FB18_Msk (0x1U << CAN_F9R2_FB18_Pos) /*!< 0x00040000 */
  4154. #define CAN_F9R2_FB18 CAN_F9R2_FB18_Msk /*!<Filter bit 18 */
  4155. #define CAN_F9R2_FB19_Pos (19U)
  4156. #define CAN_F9R2_FB19_Msk (0x1U << CAN_F9R2_FB19_Pos) /*!< 0x00080000 */
  4157. #define CAN_F9R2_FB19 CAN_F9R2_FB19_Msk /*!<Filter bit 19 */
  4158. #define CAN_F9R2_FB20_Pos (20U)
  4159. #define CAN_F9R2_FB20_Msk (0x1U << CAN_F9R2_FB20_Pos) /*!< 0x00100000 */
  4160. #define CAN_F9R2_FB20 CAN_F9R2_FB20_Msk /*!<Filter bit 20 */
  4161. #define CAN_F9R2_FB21_Pos (21U)
  4162. #define CAN_F9R2_FB21_Msk (0x1U << CAN_F9R2_FB21_Pos) /*!< 0x00200000 */
  4163. #define CAN_F9R2_FB21 CAN_F9R2_FB21_Msk /*!<Filter bit 21 */
  4164. #define CAN_F9R2_FB22_Pos (22U)
  4165. #define CAN_F9R2_FB22_Msk (0x1U << CAN_F9R2_FB22_Pos) /*!< 0x00400000 */
  4166. #define CAN_F9R2_FB22 CAN_F9R2_FB22_Msk /*!<Filter bit 22 */
  4167. #define CAN_F9R2_FB23_Pos (23U)
  4168. #define CAN_F9R2_FB23_Msk (0x1U << CAN_F9R2_FB23_Pos) /*!< 0x00800000 */
  4169. #define CAN_F9R2_FB23 CAN_F9R2_FB23_Msk /*!<Filter bit 23 */
  4170. #define CAN_F9R2_FB24_Pos (24U)
  4171. #define CAN_F9R2_FB24_Msk (0x1U << CAN_F9R2_FB24_Pos) /*!< 0x01000000 */
  4172. #define CAN_F9R2_FB24 CAN_F9R2_FB24_Msk /*!<Filter bit 24 */
  4173. #define CAN_F9R2_FB25_Pos (25U)
  4174. #define CAN_F9R2_FB25_Msk (0x1U << CAN_F9R2_FB25_Pos) /*!< 0x02000000 */
  4175. #define CAN_F9R2_FB25 CAN_F9R2_FB25_Msk /*!<Filter bit 25 */
  4176. #define CAN_F9R2_FB26_Pos (26U)
  4177. #define CAN_F9R2_FB26_Msk (0x1U << CAN_F9R2_FB26_Pos) /*!< 0x04000000 */
  4178. #define CAN_F9R2_FB26 CAN_F9R2_FB26_Msk /*!<Filter bit 26 */
  4179. #define CAN_F9R2_FB27_Pos (27U)
  4180. #define CAN_F9R2_FB27_Msk (0x1U << CAN_F9R2_FB27_Pos) /*!< 0x08000000 */
  4181. #define CAN_F9R2_FB27 CAN_F9R2_FB27_Msk /*!<Filter bit 27 */
  4182. #define CAN_F9R2_FB28_Pos (28U)
  4183. #define CAN_F9R2_FB28_Msk (0x1U << CAN_F9R2_FB28_Pos) /*!< 0x10000000 */
  4184. #define CAN_F9R2_FB28 CAN_F9R2_FB28_Msk /*!<Filter bit 28 */
  4185. #define CAN_F9R2_FB29_Pos (29U)
  4186. #define CAN_F9R2_FB29_Msk (0x1U << CAN_F9R2_FB29_Pos) /*!< 0x20000000 */
  4187. #define CAN_F9R2_FB29 CAN_F9R2_FB29_Msk /*!<Filter bit 29 */
  4188. #define CAN_F9R2_FB30_Pos (30U)
  4189. #define CAN_F9R2_FB30_Msk (0x1U << CAN_F9R2_FB30_Pos) /*!< 0x40000000 */
  4190. #define CAN_F9R2_FB30 CAN_F9R2_FB30_Msk /*!<Filter bit 30 */
  4191. #define CAN_F9R2_FB31_Pos (31U)
  4192. #define CAN_F9R2_FB31_Msk (0x1U << CAN_F9R2_FB31_Pos) /*!< 0x80000000 */
  4193. #define CAN_F9R2_FB31 CAN_F9R2_FB31_Msk /*!<Filter bit 31 */
  4194. /******************* Bit definition for CAN_F10R2 register ******************/
  4195. #define CAN_F10R2_FB0_Pos (0U)
  4196. #define CAN_F10R2_FB0_Msk (0x1U << CAN_F10R2_FB0_Pos) /*!< 0x00000001 */
  4197. #define CAN_F10R2_FB0 CAN_F10R2_FB0_Msk /*!<Filter bit 0 */
  4198. #define CAN_F10R2_FB1_Pos (1U)
  4199. #define CAN_F10R2_FB1_Msk (0x1U << CAN_F10R2_FB1_Pos) /*!< 0x00000002 */
  4200. #define CAN_F10R2_FB1 CAN_F10R2_FB1_Msk /*!<Filter bit 1 */
  4201. #define CAN_F10R2_FB2_Pos (2U)
  4202. #define CAN_F10R2_FB2_Msk (0x1U << CAN_F10R2_FB2_Pos) /*!< 0x00000004 */
  4203. #define CAN_F10R2_FB2 CAN_F10R2_FB2_Msk /*!<Filter bit 2 */
  4204. #define CAN_F10R2_FB3_Pos (3U)
  4205. #define CAN_F10R2_FB3_Msk (0x1U << CAN_F10R2_FB3_Pos) /*!< 0x00000008 */
  4206. #define CAN_F10R2_FB3 CAN_F10R2_FB3_Msk /*!<Filter bit 3 */
  4207. #define CAN_F10R2_FB4_Pos (4U)
  4208. #define CAN_F10R2_FB4_Msk (0x1U << CAN_F10R2_FB4_Pos) /*!< 0x00000010 */
  4209. #define CAN_F10R2_FB4 CAN_F10R2_FB4_Msk /*!<Filter bit 4 */
  4210. #define CAN_F10R2_FB5_Pos (5U)
  4211. #define CAN_F10R2_FB5_Msk (0x1U << CAN_F10R2_FB5_Pos) /*!< 0x00000020 */
  4212. #define CAN_F10R2_FB5 CAN_F10R2_FB5_Msk /*!<Filter bit 5 */
  4213. #define CAN_F10R2_FB6_Pos (6U)
  4214. #define CAN_F10R2_FB6_Msk (0x1U << CAN_F10R2_FB6_Pos) /*!< 0x00000040 */
  4215. #define CAN_F10R2_FB6 CAN_F10R2_FB6_Msk /*!<Filter bit 6 */
  4216. #define CAN_F10R2_FB7_Pos (7U)
  4217. #define CAN_F10R2_FB7_Msk (0x1U << CAN_F10R2_FB7_Pos) /*!< 0x00000080 */
  4218. #define CAN_F10R2_FB7 CAN_F10R2_FB7_Msk /*!<Filter bit 7 */
  4219. #define CAN_F10R2_FB8_Pos (8U)
  4220. #define CAN_F10R2_FB8_Msk (0x1U << CAN_F10R2_FB8_Pos) /*!< 0x00000100 */
  4221. #define CAN_F10R2_FB8 CAN_F10R2_FB8_Msk /*!<Filter bit 8 */
  4222. #define CAN_F10R2_FB9_Pos (9U)
  4223. #define CAN_F10R2_FB9_Msk (0x1U << CAN_F10R2_FB9_Pos) /*!< 0x00000200 */
  4224. #define CAN_F10R2_FB9 CAN_F10R2_FB9_Msk /*!<Filter bit 9 */
  4225. #define CAN_F10R2_FB10_Pos (10U)
  4226. #define CAN_F10R2_FB10_Msk (0x1U << CAN_F10R2_FB10_Pos) /*!< 0x00000400 */
  4227. #define CAN_F10R2_FB10 CAN_F10R2_FB10_Msk /*!<Filter bit 10 */
  4228. #define CAN_F10R2_FB11_Pos (11U)
  4229. #define CAN_F10R2_FB11_Msk (0x1U << CAN_F10R2_FB11_Pos) /*!< 0x00000800 */
  4230. #define CAN_F10R2_FB11 CAN_F10R2_FB11_Msk /*!<Filter bit 11 */
  4231. #define CAN_F10R2_FB12_Pos (12U)
  4232. #define CAN_F10R2_FB12_Msk (0x1U << CAN_F10R2_FB12_Pos) /*!< 0x00001000 */
  4233. #define CAN_F10R2_FB12 CAN_F10R2_FB12_Msk /*!<Filter bit 12 */
  4234. #define CAN_F10R2_FB13_Pos (13U)
  4235. #define CAN_F10R2_FB13_Msk (0x1U << CAN_F10R2_FB13_Pos) /*!< 0x00002000 */
  4236. #define CAN_F10R2_FB13 CAN_F10R2_FB13_Msk /*!<Filter bit 13 */
  4237. #define CAN_F10R2_FB14_Pos (14U)
  4238. #define CAN_F10R2_FB14_Msk (0x1U << CAN_F10R2_FB14_Pos) /*!< 0x00004000 */
  4239. #define CAN_F10R2_FB14 CAN_F10R2_FB14_Msk /*!<Filter bit 14 */
  4240. #define CAN_F10R2_FB15_Pos (15U)
  4241. #define CAN_F10R2_FB15_Msk (0x1U << CAN_F10R2_FB15_Pos) /*!< 0x00008000 */
  4242. #define CAN_F10R2_FB15 CAN_F10R2_FB15_Msk /*!<Filter bit 15 */
  4243. #define CAN_F10R2_FB16_Pos (16U)
  4244. #define CAN_F10R2_FB16_Msk (0x1U << CAN_F10R2_FB16_Pos) /*!< 0x00010000 */
  4245. #define CAN_F10R2_FB16 CAN_F10R2_FB16_Msk /*!<Filter bit 16 */
  4246. #define CAN_F10R2_FB17_Pos (17U)
  4247. #define CAN_F10R2_FB17_Msk (0x1U << CAN_F10R2_FB17_Pos) /*!< 0x00020000 */
  4248. #define CAN_F10R2_FB17 CAN_F10R2_FB17_Msk /*!<Filter bit 17 */
  4249. #define CAN_F10R2_FB18_Pos (18U)
  4250. #define CAN_F10R2_FB18_Msk (0x1U << CAN_F10R2_FB18_Pos) /*!< 0x00040000 */
  4251. #define CAN_F10R2_FB18 CAN_F10R2_FB18_Msk /*!<Filter bit 18 */
  4252. #define CAN_F10R2_FB19_Pos (19U)
  4253. #define CAN_F10R2_FB19_Msk (0x1U << CAN_F10R2_FB19_Pos) /*!< 0x00080000 */
  4254. #define CAN_F10R2_FB19 CAN_F10R2_FB19_Msk /*!<Filter bit 19 */
  4255. #define CAN_F10R2_FB20_Pos (20U)
  4256. #define CAN_F10R2_FB20_Msk (0x1U << CAN_F10R2_FB20_Pos) /*!< 0x00100000 */
  4257. #define CAN_F10R2_FB20 CAN_F10R2_FB20_Msk /*!<Filter bit 20 */
  4258. #define CAN_F10R2_FB21_Pos (21U)
  4259. #define CAN_F10R2_FB21_Msk (0x1U << CAN_F10R2_FB21_Pos) /*!< 0x00200000 */
  4260. #define CAN_F10R2_FB21 CAN_F10R2_FB21_Msk /*!<Filter bit 21 */
  4261. #define CAN_F10R2_FB22_Pos (22U)
  4262. #define CAN_F10R2_FB22_Msk (0x1U << CAN_F10R2_FB22_Pos) /*!< 0x00400000 */
  4263. #define CAN_F10R2_FB22 CAN_F10R2_FB22_Msk /*!<Filter bit 22 */
  4264. #define CAN_F10R2_FB23_Pos (23U)
  4265. #define CAN_F10R2_FB23_Msk (0x1U << CAN_F10R2_FB23_Pos) /*!< 0x00800000 */
  4266. #define CAN_F10R2_FB23 CAN_F10R2_FB23_Msk /*!<Filter bit 23 */
  4267. #define CAN_F10R2_FB24_Pos (24U)
  4268. #define CAN_F10R2_FB24_Msk (0x1U << CAN_F10R2_FB24_Pos) /*!< 0x01000000 */
  4269. #define CAN_F10R2_FB24 CAN_F10R2_FB24_Msk /*!<Filter bit 24 */
  4270. #define CAN_F10R2_FB25_Pos (25U)
  4271. #define CAN_F10R2_FB25_Msk (0x1U << CAN_F10R2_FB25_Pos) /*!< 0x02000000 */
  4272. #define CAN_F10R2_FB25 CAN_F10R2_FB25_Msk /*!<Filter bit 25 */
  4273. #define CAN_F10R2_FB26_Pos (26U)
  4274. #define CAN_F10R2_FB26_Msk (0x1U << CAN_F10R2_FB26_Pos) /*!< 0x04000000 */
  4275. #define CAN_F10R2_FB26 CAN_F10R2_FB26_Msk /*!<Filter bit 26 */
  4276. #define CAN_F10R2_FB27_Pos (27U)
  4277. #define CAN_F10R2_FB27_Msk (0x1U << CAN_F10R2_FB27_Pos) /*!< 0x08000000 */
  4278. #define CAN_F10R2_FB27 CAN_F10R2_FB27_Msk /*!<Filter bit 27 */
  4279. #define CAN_F10R2_FB28_Pos (28U)
  4280. #define CAN_F10R2_FB28_Msk (0x1U << CAN_F10R2_FB28_Pos) /*!< 0x10000000 */
  4281. #define CAN_F10R2_FB28 CAN_F10R2_FB28_Msk /*!<Filter bit 28 */
  4282. #define CAN_F10R2_FB29_Pos (29U)
  4283. #define CAN_F10R2_FB29_Msk (0x1U << CAN_F10R2_FB29_Pos) /*!< 0x20000000 */
  4284. #define CAN_F10R2_FB29 CAN_F10R2_FB29_Msk /*!<Filter bit 29 */
  4285. #define CAN_F10R2_FB30_Pos (30U)
  4286. #define CAN_F10R2_FB30_Msk (0x1U << CAN_F10R2_FB30_Pos) /*!< 0x40000000 */
  4287. #define CAN_F10R2_FB30 CAN_F10R2_FB30_Msk /*!<Filter bit 30 */
  4288. #define CAN_F10R2_FB31_Pos (31U)
  4289. #define CAN_F10R2_FB31_Msk (0x1U << CAN_F10R2_FB31_Pos) /*!< 0x80000000 */
  4290. #define CAN_F10R2_FB31 CAN_F10R2_FB31_Msk /*!<Filter bit 31 */
  4291. /******************* Bit definition for CAN_F11R2 register ******************/
  4292. #define CAN_F11R2_FB0_Pos (0U)
  4293. #define CAN_F11R2_FB0_Msk (0x1U << CAN_F11R2_FB0_Pos) /*!< 0x00000001 */
  4294. #define CAN_F11R2_FB0 CAN_F11R2_FB0_Msk /*!<Filter bit 0 */
  4295. #define CAN_F11R2_FB1_Pos (1U)
  4296. #define CAN_F11R2_FB1_Msk (0x1U << CAN_F11R2_FB1_Pos) /*!< 0x00000002 */
  4297. #define CAN_F11R2_FB1 CAN_F11R2_FB1_Msk /*!<Filter bit 1 */
  4298. #define CAN_F11R2_FB2_Pos (2U)
  4299. #define CAN_F11R2_FB2_Msk (0x1U << CAN_F11R2_FB2_Pos) /*!< 0x00000004 */
  4300. #define CAN_F11R2_FB2 CAN_F11R2_FB2_Msk /*!<Filter bit 2 */
  4301. #define CAN_F11R2_FB3_Pos (3U)
  4302. #define CAN_F11R2_FB3_Msk (0x1U << CAN_F11R2_FB3_Pos) /*!< 0x00000008 */
  4303. #define CAN_F11R2_FB3 CAN_F11R2_FB3_Msk /*!<Filter bit 3 */
  4304. #define CAN_F11R2_FB4_Pos (4U)
  4305. #define CAN_F11R2_FB4_Msk (0x1U << CAN_F11R2_FB4_Pos) /*!< 0x00000010 */
  4306. #define CAN_F11R2_FB4 CAN_F11R2_FB4_Msk /*!<Filter bit 4 */
  4307. #define CAN_F11R2_FB5_Pos (5U)
  4308. #define CAN_F11R2_FB5_Msk (0x1U << CAN_F11R2_FB5_Pos) /*!< 0x00000020 */
  4309. #define CAN_F11R2_FB5 CAN_F11R2_FB5_Msk /*!<Filter bit 5 */
  4310. #define CAN_F11R2_FB6_Pos (6U)
  4311. #define CAN_F11R2_FB6_Msk (0x1U << CAN_F11R2_FB6_Pos) /*!< 0x00000040 */
  4312. #define CAN_F11R2_FB6 CAN_F11R2_FB6_Msk /*!<Filter bit 6 */
  4313. #define CAN_F11R2_FB7_Pos (7U)
  4314. #define CAN_F11R2_FB7_Msk (0x1U << CAN_F11R2_FB7_Pos) /*!< 0x00000080 */
  4315. #define CAN_F11R2_FB7 CAN_F11R2_FB7_Msk /*!<Filter bit 7 */
  4316. #define CAN_F11R2_FB8_Pos (8U)
  4317. #define CAN_F11R2_FB8_Msk (0x1U << CAN_F11R2_FB8_Pos) /*!< 0x00000100 */
  4318. #define CAN_F11R2_FB8 CAN_F11R2_FB8_Msk /*!<Filter bit 8 */
  4319. #define CAN_F11R2_FB9_Pos (9U)
  4320. #define CAN_F11R2_FB9_Msk (0x1U << CAN_F11R2_FB9_Pos) /*!< 0x00000200 */
  4321. #define CAN_F11R2_FB9 CAN_F11R2_FB9_Msk /*!<Filter bit 9 */
  4322. #define CAN_F11R2_FB10_Pos (10U)
  4323. #define CAN_F11R2_FB10_Msk (0x1U << CAN_F11R2_FB10_Pos) /*!< 0x00000400 */
  4324. #define CAN_F11R2_FB10 CAN_F11R2_FB10_Msk /*!<Filter bit 10 */
  4325. #define CAN_F11R2_FB11_Pos (11U)
  4326. #define CAN_F11R2_FB11_Msk (0x1U << CAN_F11R2_FB11_Pos) /*!< 0x00000800 */
  4327. #define CAN_F11R2_FB11 CAN_F11R2_FB11_Msk /*!<Filter bit 11 */
  4328. #define CAN_F11R2_FB12_Pos (12U)
  4329. #define CAN_F11R2_FB12_Msk (0x1U << CAN_F11R2_FB12_Pos) /*!< 0x00001000 */
  4330. #define CAN_F11R2_FB12 CAN_F11R2_FB12_Msk /*!<Filter bit 12 */
  4331. #define CAN_F11R2_FB13_Pos (13U)
  4332. #define CAN_F11R2_FB13_Msk (0x1U << CAN_F11R2_FB13_Pos) /*!< 0x00002000 */
  4333. #define CAN_F11R2_FB13 CAN_F11R2_FB13_Msk /*!<Filter bit 13 */
  4334. #define CAN_F11R2_FB14_Pos (14U)
  4335. #define CAN_F11R2_FB14_Msk (0x1U << CAN_F11R2_FB14_Pos) /*!< 0x00004000 */
  4336. #define CAN_F11R2_FB14 CAN_F11R2_FB14_Msk /*!<Filter bit 14 */
  4337. #define CAN_F11R2_FB15_Pos (15U)
  4338. #define CAN_F11R2_FB15_Msk (0x1U << CAN_F11R2_FB15_Pos) /*!< 0x00008000 */
  4339. #define CAN_F11R2_FB15 CAN_F11R2_FB15_Msk /*!<Filter bit 15 */
  4340. #define CAN_F11R2_FB16_Pos (16U)
  4341. #define CAN_F11R2_FB16_Msk (0x1U << CAN_F11R2_FB16_Pos) /*!< 0x00010000 */
  4342. #define CAN_F11R2_FB16 CAN_F11R2_FB16_Msk /*!<Filter bit 16 */
  4343. #define CAN_F11R2_FB17_Pos (17U)
  4344. #define CAN_F11R2_FB17_Msk (0x1U << CAN_F11R2_FB17_Pos) /*!< 0x00020000 */
  4345. #define CAN_F11R2_FB17 CAN_F11R2_FB17_Msk /*!<Filter bit 17 */
  4346. #define CAN_F11R2_FB18_Pos (18U)
  4347. #define CAN_F11R2_FB18_Msk (0x1U << CAN_F11R2_FB18_Pos) /*!< 0x00040000 */
  4348. #define CAN_F11R2_FB18 CAN_F11R2_FB18_Msk /*!<Filter bit 18 */
  4349. #define CAN_F11R2_FB19_Pos (19U)
  4350. #define CAN_F11R2_FB19_Msk (0x1U << CAN_F11R2_FB19_Pos) /*!< 0x00080000 */
  4351. #define CAN_F11R2_FB19 CAN_F11R2_FB19_Msk /*!<Filter bit 19 */
  4352. #define CAN_F11R2_FB20_Pos (20U)
  4353. #define CAN_F11R2_FB20_Msk (0x1U << CAN_F11R2_FB20_Pos) /*!< 0x00100000 */
  4354. #define CAN_F11R2_FB20 CAN_F11R2_FB20_Msk /*!<Filter bit 20 */
  4355. #define CAN_F11R2_FB21_Pos (21U)
  4356. #define CAN_F11R2_FB21_Msk (0x1U << CAN_F11R2_FB21_Pos) /*!< 0x00200000 */
  4357. #define CAN_F11R2_FB21 CAN_F11R2_FB21_Msk /*!<Filter bit 21 */
  4358. #define CAN_F11R2_FB22_Pos (22U)
  4359. #define CAN_F11R2_FB22_Msk (0x1U << CAN_F11R2_FB22_Pos) /*!< 0x00400000 */
  4360. #define CAN_F11R2_FB22 CAN_F11R2_FB22_Msk /*!<Filter bit 22 */
  4361. #define CAN_F11R2_FB23_Pos (23U)
  4362. #define CAN_F11R2_FB23_Msk (0x1U << CAN_F11R2_FB23_Pos) /*!< 0x00800000 */
  4363. #define CAN_F11R2_FB23 CAN_F11R2_FB23_Msk /*!<Filter bit 23 */
  4364. #define CAN_F11R2_FB24_Pos (24U)
  4365. #define CAN_F11R2_FB24_Msk (0x1U << CAN_F11R2_FB24_Pos) /*!< 0x01000000 */
  4366. #define CAN_F11R2_FB24 CAN_F11R2_FB24_Msk /*!<Filter bit 24 */
  4367. #define CAN_F11R2_FB25_Pos (25U)
  4368. #define CAN_F11R2_FB25_Msk (0x1U << CAN_F11R2_FB25_Pos) /*!< 0x02000000 */
  4369. #define CAN_F11R2_FB25 CAN_F11R2_FB25_Msk /*!<Filter bit 25 */
  4370. #define CAN_F11R2_FB26_Pos (26U)
  4371. #define CAN_F11R2_FB26_Msk (0x1U << CAN_F11R2_FB26_Pos) /*!< 0x04000000 */
  4372. #define CAN_F11R2_FB26 CAN_F11R2_FB26_Msk /*!<Filter bit 26 */
  4373. #define CAN_F11R2_FB27_Pos (27U)
  4374. #define CAN_F11R2_FB27_Msk (0x1U << CAN_F11R2_FB27_Pos) /*!< 0x08000000 */
  4375. #define CAN_F11R2_FB27 CAN_F11R2_FB27_Msk /*!<Filter bit 27 */
  4376. #define CAN_F11R2_FB28_Pos (28U)
  4377. #define CAN_F11R2_FB28_Msk (0x1U << CAN_F11R2_FB28_Pos) /*!< 0x10000000 */
  4378. #define CAN_F11R2_FB28 CAN_F11R2_FB28_Msk /*!<Filter bit 28 */
  4379. #define CAN_F11R2_FB29_Pos (29U)
  4380. #define CAN_F11R2_FB29_Msk (0x1U << CAN_F11R2_FB29_Pos) /*!< 0x20000000 */
  4381. #define CAN_F11R2_FB29 CAN_F11R2_FB29_Msk /*!<Filter bit 29 */
  4382. #define CAN_F11R2_FB30_Pos (30U)
  4383. #define CAN_F11R2_FB30_Msk (0x1U << CAN_F11R2_FB30_Pos) /*!< 0x40000000 */
  4384. #define CAN_F11R2_FB30 CAN_F11R2_FB30_Msk /*!<Filter bit 30 */
  4385. #define CAN_F11R2_FB31_Pos (31U)
  4386. #define CAN_F11R2_FB31_Msk (0x1U << CAN_F11R2_FB31_Pos) /*!< 0x80000000 */
  4387. #define CAN_F11R2_FB31 CAN_F11R2_FB31_Msk /*!<Filter bit 31 */
  4388. /******************* Bit definition for CAN_F12R2 register ******************/
  4389. #define CAN_F12R2_FB0_Pos (0U)
  4390. #define CAN_F12R2_FB0_Msk (0x1U << CAN_F12R2_FB0_Pos) /*!< 0x00000001 */
  4391. #define CAN_F12R2_FB0 CAN_F12R2_FB0_Msk /*!<Filter bit 0 */
  4392. #define CAN_F12R2_FB1_Pos (1U)
  4393. #define CAN_F12R2_FB1_Msk (0x1U << CAN_F12R2_FB1_Pos) /*!< 0x00000002 */
  4394. #define CAN_F12R2_FB1 CAN_F12R2_FB1_Msk /*!<Filter bit 1 */
  4395. #define CAN_F12R2_FB2_Pos (2U)
  4396. #define CAN_F12R2_FB2_Msk (0x1U << CAN_F12R2_FB2_Pos) /*!< 0x00000004 */
  4397. #define CAN_F12R2_FB2 CAN_F12R2_FB2_Msk /*!<Filter bit 2 */
  4398. #define CAN_F12R2_FB3_Pos (3U)
  4399. #define CAN_F12R2_FB3_Msk (0x1U << CAN_F12R2_FB3_Pos) /*!< 0x00000008 */
  4400. #define CAN_F12R2_FB3 CAN_F12R2_FB3_Msk /*!<Filter bit 3 */
  4401. #define CAN_F12R2_FB4_Pos (4U)
  4402. #define CAN_F12R2_FB4_Msk (0x1U << CAN_F12R2_FB4_Pos) /*!< 0x00000010 */
  4403. #define CAN_F12R2_FB4 CAN_F12R2_FB4_Msk /*!<Filter bit 4 */
  4404. #define CAN_F12R2_FB5_Pos (5U)
  4405. #define CAN_F12R2_FB5_Msk (0x1U << CAN_F12R2_FB5_Pos) /*!< 0x00000020 */
  4406. #define CAN_F12R2_FB5 CAN_F12R2_FB5_Msk /*!<Filter bit 5 */
  4407. #define CAN_F12R2_FB6_Pos (6U)
  4408. #define CAN_F12R2_FB6_Msk (0x1U << CAN_F12R2_FB6_Pos) /*!< 0x00000040 */
  4409. #define CAN_F12R2_FB6 CAN_F12R2_FB6_Msk /*!<Filter bit 6 */
  4410. #define CAN_F12R2_FB7_Pos (7U)
  4411. #define CAN_F12R2_FB7_Msk (0x1U << CAN_F12R2_FB7_Pos) /*!< 0x00000080 */
  4412. #define CAN_F12R2_FB7 CAN_F12R2_FB7_Msk /*!<Filter bit 7 */
  4413. #define CAN_F12R2_FB8_Pos (8U)
  4414. #define CAN_F12R2_FB8_Msk (0x1U << CAN_F12R2_FB8_Pos) /*!< 0x00000100 */
  4415. #define CAN_F12R2_FB8 CAN_F12R2_FB8_Msk /*!<Filter bit 8 */
  4416. #define CAN_F12R2_FB9_Pos (9U)
  4417. #define CAN_F12R2_FB9_Msk (0x1U << CAN_F12R2_FB9_Pos) /*!< 0x00000200 */
  4418. #define CAN_F12R2_FB9 CAN_F12R2_FB9_Msk /*!<Filter bit 9 */
  4419. #define CAN_F12R2_FB10_Pos (10U)
  4420. #define CAN_F12R2_FB10_Msk (0x1U << CAN_F12R2_FB10_Pos) /*!< 0x00000400 */
  4421. #define CAN_F12R2_FB10 CAN_F12R2_FB10_Msk /*!<Filter bit 10 */
  4422. #define CAN_F12R2_FB11_Pos (11U)
  4423. #define CAN_F12R2_FB11_Msk (0x1U << CAN_F12R2_FB11_Pos) /*!< 0x00000800 */
  4424. #define CAN_F12R2_FB11 CAN_F12R2_FB11_Msk /*!<Filter bit 11 */
  4425. #define CAN_F12R2_FB12_Pos (12U)
  4426. #define CAN_F12R2_FB12_Msk (0x1U << CAN_F12R2_FB12_Pos) /*!< 0x00001000 */
  4427. #define CAN_F12R2_FB12 CAN_F12R2_FB12_Msk /*!<Filter bit 12 */
  4428. #define CAN_F12R2_FB13_Pos (13U)
  4429. #define CAN_F12R2_FB13_Msk (0x1U << CAN_F12R2_FB13_Pos) /*!< 0x00002000 */
  4430. #define CAN_F12R2_FB13 CAN_F12R2_FB13_Msk /*!<Filter bit 13 */
  4431. #define CAN_F12R2_FB14_Pos (14U)
  4432. #define CAN_F12R2_FB14_Msk (0x1U << CAN_F12R2_FB14_Pos) /*!< 0x00004000 */
  4433. #define CAN_F12R2_FB14 CAN_F12R2_FB14_Msk /*!<Filter bit 14 */
  4434. #define CAN_F12R2_FB15_Pos (15U)
  4435. #define CAN_F12R2_FB15_Msk (0x1U << CAN_F12R2_FB15_Pos) /*!< 0x00008000 */
  4436. #define CAN_F12R2_FB15 CAN_F12R2_FB15_Msk /*!<Filter bit 15 */
  4437. #define CAN_F12R2_FB16_Pos (16U)
  4438. #define CAN_F12R2_FB16_Msk (0x1U << CAN_F12R2_FB16_Pos) /*!< 0x00010000 */
  4439. #define CAN_F12R2_FB16 CAN_F12R2_FB16_Msk /*!<Filter bit 16 */
  4440. #define CAN_F12R2_FB17_Pos (17U)
  4441. #define CAN_F12R2_FB17_Msk (0x1U << CAN_F12R2_FB17_Pos) /*!< 0x00020000 */
  4442. #define CAN_F12R2_FB17 CAN_F12R2_FB17_Msk /*!<Filter bit 17 */
  4443. #define CAN_F12R2_FB18_Pos (18U)
  4444. #define CAN_F12R2_FB18_Msk (0x1U << CAN_F12R2_FB18_Pos) /*!< 0x00040000 */
  4445. #define CAN_F12R2_FB18 CAN_F12R2_FB18_Msk /*!<Filter bit 18 */
  4446. #define CAN_F12R2_FB19_Pos (19U)
  4447. #define CAN_F12R2_FB19_Msk (0x1U << CAN_F12R2_FB19_Pos) /*!< 0x00080000 */
  4448. #define CAN_F12R2_FB19 CAN_F12R2_FB19_Msk /*!<Filter bit 19 */
  4449. #define CAN_F12R2_FB20_Pos (20U)
  4450. #define CAN_F12R2_FB20_Msk (0x1U << CAN_F12R2_FB20_Pos) /*!< 0x00100000 */
  4451. #define CAN_F12R2_FB20 CAN_F12R2_FB20_Msk /*!<Filter bit 20 */
  4452. #define CAN_F12R2_FB21_Pos (21U)
  4453. #define CAN_F12R2_FB21_Msk (0x1U << CAN_F12R2_FB21_Pos) /*!< 0x00200000 */
  4454. #define CAN_F12R2_FB21 CAN_F12R2_FB21_Msk /*!<Filter bit 21 */
  4455. #define CAN_F12R2_FB22_Pos (22U)
  4456. #define CAN_F12R2_FB22_Msk (0x1U << CAN_F12R2_FB22_Pos) /*!< 0x00400000 */
  4457. #define CAN_F12R2_FB22 CAN_F12R2_FB22_Msk /*!<Filter bit 22 */
  4458. #define CAN_F12R2_FB23_Pos (23U)
  4459. #define CAN_F12R2_FB23_Msk (0x1U << CAN_F12R2_FB23_Pos) /*!< 0x00800000 */
  4460. #define CAN_F12R2_FB23 CAN_F12R2_FB23_Msk /*!<Filter bit 23 */
  4461. #define CAN_F12R2_FB24_Pos (24U)
  4462. #define CAN_F12R2_FB24_Msk (0x1U << CAN_F12R2_FB24_Pos) /*!< 0x01000000 */
  4463. #define CAN_F12R2_FB24 CAN_F12R2_FB24_Msk /*!<Filter bit 24 */
  4464. #define CAN_F12R2_FB25_Pos (25U)
  4465. #define CAN_F12R2_FB25_Msk (0x1U << CAN_F12R2_FB25_Pos) /*!< 0x02000000 */
  4466. #define CAN_F12R2_FB25 CAN_F12R2_FB25_Msk /*!<Filter bit 25 */
  4467. #define CAN_F12R2_FB26_Pos (26U)
  4468. #define CAN_F12R2_FB26_Msk (0x1U << CAN_F12R2_FB26_Pos) /*!< 0x04000000 */
  4469. #define CAN_F12R2_FB26 CAN_F12R2_FB26_Msk /*!<Filter bit 26 */
  4470. #define CAN_F12R2_FB27_Pos (27U)
  4471. #define CAN_F12R2_FB27_Msk (0x1U << CAN_F12R2_FB27_Pos) /*!< 0x08000000 */
  4472. #define CAN_F12R2_FB27 CAN_F12R2_FB27_Msk /*!<Filter bit 27 */
  4473. #define CAN_F12R2_FB28_Pos (28U)
  4474. #define CAN_F12R2_FB28_Msk (0x1U << CAN_F12R2_FB28_Pos) /*!< 0x10000000 */
  4475. #define CAN_F12R2_FB28 CAN_F12R2_FB28_Msk /*!<Filter bit 28 */
  4476. #define CAN_F12R2_FB29_Pos (29U)
  4477. #define CAN_F12R2_FB29_Msk (0x1U << CAN_F12R2_FB29_Pos) /*!< 0x20000000 */
  4478. #define CAN_F12R2_FB29 CAN_F12R2_FB29_Msk /*!<Filter bit 29 */
  4479. #define CAN_F12R2_FB30_Pos (30U)
  4480. #define CAN_F12R2_FB30_Msk (0x1U << CAN_F12R2_FB30_Pos) /*!< 0x40000000 */
  4481. #define CAN_F12R2_FB30 CAN_F12R2_FB30_Msk /*!<Filter bit 30 */
  4482. #define CAN_F12R2_FB31_Pos (31U)
  4483. #define CAN_F12R2_FB31_Msk (0x1U << CAN_F12R2_FB31_Pos) /*!< 0x80000000 */
  4484. #define CAN_F12R2_FB31 CAN_F12R2_FB31_Msk /*!<Filter bit 31 */
  4485. /******************* Bit definition for CAN_F13R2 register ******************/
  4486. #define CAN_F13R2_FB0_Pos (0U)
  4487. #define CAN_F13R2_FB0_Msk (0x1U << CAN_F13R2_FB0_Pos) /*!< 0x00000001 */
  4488. #define CAN_F13R2_FB0 CAN_F13R2_FB0_Msk /*!<Filter bit 0 */
  4489. #define CAN_F13R2_FB1_Pos (1U)
  4490. #define CAN_F13R2_FB1_Msk (0x1U << CAN_F13R2_FB1_Pos) /*!< 0x00000002 */
  4491. #define CAN_F13R2_FB1 CAN_F13R2_FB1_Msk /*!<Filter bit 1 */
  4492. #define CAN_F13R2_FB2_Pos (2U)
  4493. #define CAN_F13R2_FB2_Msk (0x1U << CAN_F13R2_FB2_Pos) /*!< 0x00000004 */
  4494. #define CAN_F13R2_FB2 CAN_F13R2_FB2_Msk /*!<Filter bit 2 */
  4495. #define CAN_F13R2_FB3_Pos (3U)
  4496. #define CAN_F13R2_FB3_Msk (0x1U << CAN_F13R2_FB3_Pos) /*!< 0x00000008 */
  4497. #define CAN_F13R2_FB3 CAN_F13R2_FB3_Msk /*!<Filter bit 3 */
  4498. #define CAN_F13R2_FB4_Pos (4U)
  4499. #define CAN_F13R2_FB4_Msk (0x1U << CAN_F13R2_FB4_Pos) /*!< 0x00000010 */
  4500. #define CAN_F13R2_FB4 CAN_F13R2_FB4_Msk /*!<Filter bit 4 */
  4501. #define CAN_F13R2_FB5_Pos (5U)
  4502. #define CAN_F13R2_FB5_Msk (0x1U << CAN_F13R2_FB5_Pos) /*!< 0x00000020 */
  4503. #define CAN_F13R2_FB5 CAN_F13R2_FB5_Msk /*!<Filter bit 5 */
  4504. #define CAN_F13R2_FB6_Pos (6U)
  4505. #define CAN_F13R2_FB6_Msk (0x1U << CAN_F13R2_FB6_Pos) /*!< 0x00000040 */
  4506. #define CAN_F13R2_FB6 CAN_F13R2_FB6_Msk /*!<Filter bit 6 */
  4507. #define CAN_F13R2_FB7_Pos (7U)
  4508. #define CAN_F13R2_FB7_Msk (0x1U << CAN_F13R2_FB7_Pos) /*!< 0x00000080 */
  4509. #define CAN_F13R2_FB7 CAN_F13R2_FB7_Msk /*!<Filter bit 7 */
  4510. #define CAN_F13R2_FB8_Pos (8U)
  4511. #define CAN_F13R2_FB8_Msk (0x1U << CAN_F13R2_FB8_Pos) /*!< 0x00000100 */
  4512. #define CAN_F13R2_FB8 CAN_F13R2_FB8_Msk /*!<Filter bit 8 */
  4513. #define CAN_F13R2_FB9_Pos (9U)
  4514. #define CAN_F13R2_FB9_Msk (0x1U << CAN_F13R2_FB9_Pos) /*!< 0x00000200 */
  4515. #define CAN_F13R2_FB9 CAN_F13R2_FB9_Msk /*!<Filter bit 9 */
  4516. #define CAN_F13R2_FB10_Pos (10U)
  4517. #define CAN_F13R2_FB10_Msk (0x1U << CAN_F13R2_FB10_Pos) /*!< 0x00000400 */
  4518. #define CAN_F13R2_FB10 CAN_F13R2_FB10_Msk /*!<Filter bit 10 */
  4519. #define CAN_F13R2_FB11_Pos (11U)
  4520. #define CAN_F13R2_FB11_Msk (0x1U << CAN_F13R2_FB11_Pos) /*!< 0x00000800 */
  4521. #define CAN_F13R2_FB11 CAN_F13R2_FB11_Msk /*!<Filter bit 11 */
  4522. #define CAN_F13R2_FB12_Pos (12U)
  4523. #define CAN_F13R2_FB12_Msk (0x1U << CAN_F13R2_FB12_Pos) /*!< 0x00001000 */
  4524. #define CAN_F13R2_FB12 CAN_F13R2_FB12_Msk /*!<Filter bit 12 */
  4525. #define CAN_F13R2_FB13_Pos (13U)
  4526. #define CAN_F13R2_FB13_Msk (0x1U << CAN_F13R2_FB13_Pos) /*!< 0x00002000 */
  4527. #define CAN_F13R2_FB13 CAN_F13R2_FB13_Msk /*!<Filter bit 13 */
  4528. #define CAN_F13R2_FB14_Pos (14U)
  4529. #define CAN_F13R2_FB14_Msk (0x1U << CAN_F13R2_FB14_Pos) /*!< 0x00004000 */
  4530. #define CAN_F13R2_FB14 CAN_F13R2_FB14_Msk /*!<Filter bit 14 */
  4531. #define CAN_F13R2_FB15_Pos (15U)
  4532. #define CAN_F13R2_FB15_Msk (0x1U << CAN_F13R2_FB15_Pos) /*!< 0x00008000 */
  4533. #define CAN_F13R2_FB15 CAN_F13R2_FB15_Msk /*!<Filter bit 15 */
  4534. #define CAN_F13R2_FB16_Pos (16U)
  4535. #define CAN_F13R2_FB16_Msk (0x1U << CAN_F13R2_FB16_Pos) /*!< 0x00010000 */
  4536. #define CAN_F13R2_FB16 CAN_F13R2_FB16_Msk /*!<Filter bit 16 */
  4537. #define CAN_F13R2_FB17_Pos (17U)
  4538. #define CAN_F13R2_FB17_Msk (0x1U << CAN_F13R2_FB17_Pos) /*!< 0x00020000 */
  4539. #define CAN_F13R2_FB17 CAN_F13R2_FB17_Msk /*!<Filter bit 17 */
  4540. #define CAN_F13R2_FB18_Pos (18U)
  4541. #define CAN_F13R2_FB18_Msk (0x1U << CAN_F13R2_FB18_Pos) /*!< 0x00040000 */
  4542. #define CAN_F13R2_FB18 CAN_F13R2_FB18_Msk /*!<Filter bit 18 */
  4543. #define CAN_F13R2_FB19_Pos (19U)
  4544. #define CAN_F13R2_FB19_Msk (0x1U << CAN_F13R2_FB19_Pos) /*!< 0x00080000 */
  4545. #define CAN_F13R2_FB19 CAN_F13R2_FB19_Msk /*!<Filter bit 19 */
  4546. #define CAN_F13R2_FB20_Pos (20U)
  4547. #define CAN_F13R2_FB20_Msk (0x1U << CAN_F13R2_FB20_Pos) /*!< 0x00100000 */
  4548. #define CAN_F13R2_FB20 CAN_F13R2_FB20_Msk /*!<Filter bit 20 */
  4549. #define CAN_F13R2_FB21_Pos (21U)
  4550. #define CAN_F13R2_FB21_Msk (0x1U << CAN_F13R2_FB21_Pos) /*!< 0x00200000 */
  4551. #define CAN_F13R2_FB21 CAN_F13R2_FB21_Msk /*!<Filter bit 21 */
  4552. #define CAN_F13R2_FB22_Pos (22U)
  4553. #define CAN_F13R2_FB22_Msk (0x1U << CAN_F13R2_FB22_Pos) /*!< 0x00400000 */
  4554. #define CAN_F13R2_FB22 CAN_F13R2_FB22_Msk /*!<Filter bit 22 */
  4555. #define CAN_F13R2_FB23_Pos (23U)
  4556. #define CAN_F13R2_FB23_Msk (0x1U << CAN_F13R2_FB23_Pos) /*!< 0x00800000 */
  4557. #define CAN_F13R2_FB23 CAN_F13R2_FB23_Msk /*!<Filter bit 23 */
  4558. #define CAN_F13R2_FB24_Pos (24U)
  4559. #define CAN_F13R2_FB24_Msk (0x1U << CAN_F13R2_FB24_Pos) /*!< 0x01000000 */
  4560. #define CAN_F13R2_FB24 CAN_F13R2_FB24_Msk /*!<Filter bit 24 */
  4561. #define CAN_F13R2_FB25_Pos (25U)
  4562. #define CAN_F13R2_FB25_Msk (0x1U << CAN_F13R2_FB25_Pos) /*!< 0x02000000 */
  4563. #define CAN_F13R2_FB25 CAN_F13R2_FB25_Msk /*!<Filter bit 25 */
  4564. #define CAN_F13R2_FB26_Pos (26U)
  4565. #define CAN_F13R2_FB26_Msk (0x1U << CAN_F13R2_FB26_Pos) /*!< 0x04000000 */
  4566. #define CAN_F13R2_FB26 CAN_F13R2_FB26_Msk /*!<Filter bit 26 */
  4567. #define CAN_F13R2_FB27_Pos (27U)
  4568. #define CAN_F13R2_FB27_Msk (0x1U << CAN_F13R2_FB27_Pos) /*!< 0x08000000 */
  4569. #define CAN_F13R2_FB27 CAN_F13R2_FB27_Msk /*!<Filter bit 27 */
  4570. #define CAN_F13R2_FB28_Pos (28U)
  4571. #define CAN_F13R2_FB28_Msk (0x1U << CAN_F13R2_FB28_Pos) /*!< 0x10000000 */
  4572. #define CAN_F13R2_FB28 CAN_F13R2_FB28_Msk /*!<Filter bit 28 */
  4573. #define CAN_F13R2_FB29_Pos (29U)
  4574. #define CAN_F13R2_FB29_Msk (0x1U << CAN_F13R2_FB29_Pos) /*!< 0x20000000 */
  4575. #define CAN_F13R2_FB29 CAN_F13R2_FB29_Msk /*!<Filter bit 29 */
  4576. #define CAN_F13R2_FB30_Pos (30U)
  4577. #define CAN_F13R2_FB30_Msk (0x1U << CAN_F13R2_FB30_Pos) /*!< 0x40000000 */
  4578. #define CAN_F13R2_FB30 CAN_F13R2_FB30_Msk /*!<Filter bit 30 */
  4579. #define CAN_F13R2_FB31_Pos (31U)
  4580. #define CAN_F13R2_FB31_Msk (0x1U << CAN_F13R2_FB31_Pos) /*!< 0x80000000 */
  4581. #define CAN_F13R2_FB31 CAN_F13R2_FB31_Msk /*!<Filter bit 31 */
  4582. /******************************************************************************/
  4583. /* */
  4584. /* HDMI-CEC (CEC) */
  4585. /* */
  4586. /******************************************************************************/
  4587. /******************* Bit definition for CEC_CR register *********************/
  4588. #define CEC_CR_CECEN_Pos (0U)
  4589. #define CEC_CR_CECEN_Msk (0x1U << CEC_CR_CECEN_Pos) /*!< 0x00000001 */
  4590. #define CEC_CR_CECEN CEC_CR_CECEN_Msk /*!< CEC Enable */
  4591. #define CEC_CR_TXSOM_Pos (1U)
  4592. #define CEC_CR_TXSOM_Msk (0x1U << CEC_CR_TXSOM_Pos) /*!< 0x00000002 */
  4593. #define CEC_CR_TXSOM CEC_CR_TXSOM_Msk /*!< CEC Tx Start Of Message */
  4594. #define CEC_CR_TXEOM_Pos (2U)
  4595. #define CEC_CR_TXEOM_Msk (0x1U << CEC_CR_TXEOM_Pos) /*!< 0x00000004 */
  4596. #define CEC_CR_TXEOM CEC_CR_TXEOM_Msk /*!< CEC Tx End Of Message */
  4597. /******************* Bit definition for CEC_CFGR register *******************/
  4598. #define CEC_CFGR_SFT_Pos (0U)
  4599. #define CEC_CFGR_SFT_Msk (0x7U << CEC_CFGR_SFT_Pos) /*!< 0x00000007 */
  4600. #define CEC_CFGR_SFT CEC_CFGR_SFT_Msk /*!< CEC Signal Free Time */
  4601. #define CEC_CFGR_RXTOL_Pos (3U)
  4602. #define CEC_CFGR_RXTOL_Msk (0x1U << CEC_CFGR_RXTOL_Pos) /*!< 0x00000008 */
  4603. #define CEC_CFGR_RXTOL CEC_CFGR_RXTOL_Msk /*!< CEC Tolerance */
  4604. #define CEC_CFGR_BRESTP_Pos (4U)
  4605. #define CEC_CFGR_BRESTP_Msk (0x1U << CEC_CFGR_BRESTP_Pos) /*!< 0x00000010 */
  4606. #define CEC_CFGR_BRESTP CEC_CFGR_BRESTP_Msk /*!< CEC Rx Stop */
  4607. #define CEC_CFGR_BREGEN_Pos (5U)
  4608. #define CEC_CFGR_BREGEN_Msk (0x1U << CEC_CFGR_BREGEN_Pos) /*!< 0x00000020 */
  4609. #define CEC_CFGR_BREGEN CEC_CFGR_BREGEN_Msk /*!< CEC Bit Rising Error generation */
  4610. #define CEC_CFGR_LBPEGEN_Pos (6U)
  4611. #define CEC_CFGR_LBPEGEN_Msk (0x1U << CEC_CFGR_LBPEGEN_Pos) /*!< 0x00000040 */
  4612. #define CEC_CFGR_LBPEGEN CEC_CFGR_LBPEGEN_Msk /*!< CEC Long Bit Period Error gener. */
  4613. #define CEC_CFGR_BRDNOGEN_Pos (7U)
  4614. #define CEC_CFGR_BRDNOGEN_Msk (0x1U << CEC_CFGR_BRDNOGEN_Pos) /*!< 0x00000080 */
  4615. #define CEC_CFGR_BRDNOGEN CEC_CFGR_BRDNOGEN_Msk /*!< CEC Broadcast No Error generation */
  4616. #define CEC_CFGR_SFTOPT_Pos (8U)
  4617. #define CEC_CFGR_SFTOPT_Msk (0x1U << CEC_CFGR_SFTOPT_Pos) /*!< 0x00000100 */
  4618. #define CEC_CFGR_SFTOPT CEC_CFGR_SFTOPT_Msk /*!< CEC Signal Free Time optional */
  4619. #define CEC_CFGR_OAR_Pos (16U)
  4620. #define CEC_CFGR_OAR_Msk (0x7FFFU << CEC_CFGR_OAR_Pos) /*!< 0x7FFF0000 */
  4621. #define CEC_CFGR_OAR CEC_CFGR_OAR_Msk /*!< CEC Own Address */
  4622. #define CEC_CFGR_LSTN_Pos (31U)
  4623. #define CEC_CFGR_LSTN_Msk (0x1U << CEC_CFGR_LSTN_Pos) /*!< 0x80000000 */
  4624. #define CEC_CFGR_LSTN CEC_CFGR_LSTN_Msk /*!< CEC Listen mode */
  4625. /******************* Bit definition for CEC_TXDR register *******************/
  4626. #define CEC_TXDR_TXD_Pos (0U)
  4627. #define CEC_TXDR_TXD_Msk (0xFFU << CEC_TXDR_TXD_Pos) /*!< 0x000000FF */
  4628. #define CEC_TXDR_TXD CEC_TXDR_TXD_Msk /*!< CEC Tx Data */
  4629. /******************* Bit definition for CEC_RXDR register *******************/
  4630. #define CEC_TXDR_RXD_Pos (0U)
  4631. #define CEC_TXDR_RXD_Msk (0xFFU << CEC_TXDR_RXD_Pos) /*!< 0x000000FF */
  4632. #define CEC_TXDR_RXD CEC_TXDR_RXD_Msk /*!< CEC Rx Data */
  4633. /******************* Bit definition for CEC_ISR register ********************/
  4634. #define CEC_ISR_RXBR_Pos (0U)
  4635. #define CEC_ISR_RXBR_Msk (0x1U << CEC_ISR_RXBR_Pos) /*!< 0x00000001 */
  4636. #define CEC_ISR_RXBR CEC_ISR_RXBR_Msk /*!< CEC Rx-Byte Received */
  4637. #define CEC_ISR_RXEND_Pos (1U)
  4638. #define CEC_ISR_RXEND_Msk (0x1U << CEC_ISR_RXEND_Pos) /*!< 0x00000002 */
  4639. #define CEC_ISR_RXEND CEC_ISR_RXEND_Msk /*!< CEC End Of Reception */
  4640. #define CEC_ISR_RXOVR_Pos (2U)
  4641. #define CEC_ISR_RXOVR_Msk (0x1U << CEC_ISR_RXOVR_Pos) /*!< 0x00000004 */
  4642. #define CEC_ISR_RXOVR CEC_ISR_RXOVR_Msk /*!< CEC Rx-Overrun */
  4643. #define CEC_ISR_BRE_Pos (3U)
  4644. #define CEC_ISR_BRE_Msk (0x1U << CEC_ISR_BRE_Pos) /*!< 0x00000008 */
  4645. #define CEC_ISR_BRE CEC_ISR_BRE_Msk /*!< CEC Rx Bit Rising Error */
  4646. #define CEC_ISR_SBPE_Pos (4U)
  4647. #define CEC_ISR_SBPE_Msk (0x1U << CEC_ISR_SBPE_Pos) /*!< 0x00000010 */
  4648. #define CEC_ISR_SBPE CEC_ISR_SBPE_Msk /*!< CEC Rx Short Bit period Error */
  4649. #define CEC_ISR_LBPE_Pos (5U)
  4650. #define CEC_ISR_LBPE_Msk (0x1U << CEC_ISR_LBPE_Pos) /*!< 0x00000020 */
  4651. #define CEC_ISR_LBPE CEC_ISR_LBPE_Msk /*!< CEC Rx Long Bit period Error */
  4652. #define CEC_ISR_RXACKE_Pos (6U)
  4653. #define CEC_ISR_RXACKE_Msk (0x1U << CEC_ISR_RXACKE_Pos) /*!< 0x00000040 */
  4654. #define CEC_ISR_RXACKE CEC_ISR_RXACKE_Msk /*!< CEC Rx Missing Acknowledge */
  4655. #define CEC_ISR_ARBLST_Pos (7U)
  4656. #define CEC_ISR_ARBLST_Msk (0x1U << CEC_ISR_ARBLST_Pos) /*!< 0x00000080 */
  4657. #define CEC_ISR_ARBLST CEC_ISR_ARBLST_Msk /*!< CEC Arbitration Lost */
  4658. #define CEC_ISR_TXBR_Pos (8U)
  4659. #define CEC_ISR_TXBR_Msk (0x1U << CEC_ISR_TXBR_Pos) /*!< 0x00000100 */
  4660. #define CEC_ISR_TXBR CEC_ISR_TXBR_Msk /*!< CEC Tx Byte Request */
  4661. #define CEC_ISR_TXEND_Pos (9U)
  4662. #define CEC_ISR_TXEND_Msk (0x1U << CEC_ISR_TXEND_Pos) /*!< 0x00000200 */
  4663. #define CEC_ISR_TXEND CEC_ISR_TXEND_Msk /*!< CEC End of Transmission */
  4664. #define CEC_ISR_TXUDR_Pos (10U)
  4665. #define CEC_ISR_TXUDR_Msk (0x1U << CEC_ISR_TXUDR_Pos) /*!< 0x00000400 */
  4666. #define CEC_ISR_TXUDR CEC_ISR_TXUDR_Msk /*!< CEC Tx-Buffer Underrun */
  4667. #define CEC_ISR_TXERR_Pos (11U)
  4668. #define CEC_ISR_TXERR_Msk (0x1U << CEC_ISR_TXERR_Pos) /*!< 0x00000800 */
  4669. #define CEC_ISR_TXERR CEC_ISR_TXERR_Msk /*!< CEC Tx-Error */
  4670. #define CEC_ISR_TXACKE_Pos (12U)
  4671. #define CEC_ISR_TXACKE_Msk (0x1U << CEC_ISR_TXACKE_Pos) /*!< 0x00001000 */
  4672. #define CEC_ISR_TXACKE CEC_ISR_TXACKE_Msk /*!< CEC Tx Missing Acknowledge */
  4673. /******************* Bit definition for CEC_IER register ********************/
  4674. #define CEC_IER_RXBRIE_Pos (0U)
  4675. #define CEC_IER_RXBRIE_Msk (0x1U << CEC_IER_RXBRIE_Pos) /*!< 0x00000001 */
  4676. #define CEC_IER_RXBRIE CEC_IER_RXBRIE_Msk /*!< CEC Rx-Byte Received IT Enable */
  4677. #define CEC_IER_RXENDIE_Pos (1U)
  4678. #define CEC_IER_RXENDIE_Msk (0x1U << CEC_IER_RXENDIE_Pos) /*!< 0x00000002 */
  4679. #define CEC_IER_RXENDIE CEC_IER_RXENDIE_Msk /*!< CEC End Of Reception IT Enable */
  4680. #define CEC_IER_RXOVRIE_Pos (2U)
  4681. #define CEC_IER_RXOVRIE_Msk (0x1U << CEC_IER_RXOVRIE_Pos) /*!< 0x00000004 */
  4682. #define CEC_IER_RXOVRIE CEC_IER_RXOVRIE_Msk /*!< CEC Rx-Overrun IT Enable */
  4683. #define CEC_IER_BREIE_Pos (3U)
  4684. #define CEC_IER_BREIE_Msk (0x1U << CEC_IER_BREIE_Pos) /*!< 0x00000008 */
  4685. #define CEC_IER_BREIE CEC_IER_BREIE_Msk /*!< CEC Rx Bit Rising Error IT Enable */
  4686. #define CEC_IER_SBPEIE_Pos (4U)
  4687. #define CEC_IER_SBPEIE_Msk (0x1U << CEC_IER_SBPEIE_Pos) /*!< 0x00000010 */
  4688. #define CEC_IER_SBPEIE CEC_IER_SBPEIE_Msk /*!< CEC Rx Short Bit period Error IT Enable*/
  4689. #define CEC_IER_LBPEIE_Pos (5U)
  4690. #define CEC_IER_LBPEIE_Msk (0x1U << CEC_IER_LBPEIE_Pos) /*!< 0x00000020 */
  4691. #define CEC_IER_LBPEIE CEC_IER_LBPEIE_Msk /*!< CEC Rx Long Bit period Error IT Enable */
  4692. #define CEC_IER_RXACKEIE_Pos (6U)
  4693. #define CEC_IER_RXACKEIE_Msk (0x1U << CEC_IER_RXACKEIE_Pos) /*!< 0x00000040 */
  4694. #define CEC_IER_RXACKEIE CEC_IER_RXACKEIE_Msk /*!< CEC Rx Missing Acknowledge IT Enable */
  4695. #define CEC_IER_ARBLSTIE_Pos (7U)
  4696. #define CEC_IER_ARBLSTIE_Msk (0x1U << CEC_IER_ARBLSTIE_Pos) /*!< 0x00000080 */
  4697. #define CEC_IER_ARBLSTIE CEC_IER_ARBLSTIE_Msk /*!< CEC Arbitration Lost IT Enable */
  4698. #define CEC_IER_TXBRIE_Pos (8U)
  4699. #define CEC_IER_TXBRIE_Msk (0x1U << CEC_IER_TXBRIE_Pos) /*!< 0x00000100 */
  4700. #define CEC_IER_TXBRIE CEC_IER_TXBRIE_Msk /*!< CEC Tx Byte Request IT Enable */
  4701. #define CEC_IER_TXENDIE_Pos (9U)
  4702. #define CEC_IER_TXENDIE_Msk (0x1U << CEC_IER_TXENDIE_Pos) /*!< 0x00000200 */
  4703. #define CEC_IER_TXENDIE CEC_IER_TXENDIE_Msk /*!< CEC End of Transmission IT Enable */
  4704. #define CEC_IER_TXUDRIE_Pos (10U)
  4705. #define CEC_IER_TXUDRIE_Msk (0x1U << CEC_IER_TXUDRIE_Pos) /*!< 0x00000400 */
  4706. #define CEC_IER_TXUDRIE CEC_IER_TXUDRIE_Msk /*!< CEC Tx-Buffer Underrun IT Enable */
  4707. #define CEC_IER_TXERRIE_Pos (11U)
  4708. #define CEC_IER_TXERRIE_Msk (0x1U << CEC_IER_TXERRIE_Pos) /*!< 0x00000800 */
  4709. #define CEC_IER_TXERRIE CEC_IER_TXERRIE_Msk /*!< CEC Tx-Error IT Enable */
  4710. #define CEC_IER_TXACKEIE_Pos (12U)
  4711. #define CEC_IER_TXACKEIE_Msk (0x1U << CEC_IER_TXACKEIE_Pos) /*!< 0x00001000 */
  4712. #define CEC_IER_TXACKEIE CEC_IER_TXACKEIE_Msk /*!< CEC Tx Missing Acknowledge IT Enable */
  4713. /******************************************************************************/
  4714. /* */
  4715. /* Analog Comparators (COMP) */
  4716. /* */
  4717. /******************************************************************************/
  4718. /*********************** Bit definition for COMP_CSR register ***************/
  4719. /* COMP1 bits definition */
  4720. #define COMP_CSR_COMP1EN_Pos (0U)
  4721. #define COMP_CSR_COMP1EN_Msk (0x1U << COMP_CSR_COMP1EN_Pos) /*!< 0x00000001 */
  4722. #define COMP_CSR_COMP1EN COMP_CSR_COMP1EN_Msk /*!< COMP1 enable */
  4723. #define COMP_CSR_COMP1SW1_Pos (1U)
  4724. #define COMP_CSR_COMP1SW1_Msk (0x1U << COMP_CSR_COMP1SW1_Pos) /*!< 0x00000002 */
  4725. #define COMP_CSR_COMP1SW1 COMP_CSR_COMP1SW1_Msk /*!< COMP1 SW1 switch control */
  4726. #define COMP_CSR_COMP1MODE_Pos (2U)
  4727. #define COMP_CSR_COMP1MODE_Msk (0x3U << COMP_CSR_COMP1MODE_Pos) /*!< 0x0000000C */
  4728. #define COMP_CSR_COMP1MODE COMP_CSR_COMP1MODE_Msk /*!< COMP1 power mode */
  4729. #define COMP_CSR_COMP1MODE_0 (0x1U << COMP_CSR_COMP1MODE_Pos) /*!< 0x00000004 */
  4730. #define COMP_CSR_COMP1MODE_1 (0x2U << COMP_CSR_COMP1MODE_Pos) /*!< 0x00000008 */
  4731. #define COMP_CSR_COMP1INSEL_Pos (4U)
  4732. #define COMP_CSR_COMP1INSEL_Msk (0x7U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000070 */
  4733. #define COMP_CSR_COMP1INSEL COMP_CSR_COMP1INSEL_Msk /*!< COMP1 inverting input select */
  4734. #define COMP_CSR_COMP1INSEL_0 (0x1U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000010 */
  4735. #define COMP_CSR_COMP1INSEL_1 (0x2U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000020 */
  4736. #define COMP_CSR_COMP1INSEL_2 (0x4U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000040 */
  4737. #define COMP_CSR_COMP1OUTSEL_Pos (8U)
  4738. #define COMP_CSR_COMP1OUTSEL_Msk (0x7U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000700 */
  4739. #define COMP_CSR_COMP1OUTSEL COMP_CSR_COMP1OUTSEL_Msk /*!< COMP1 output select */
  4740. #define COMP_CSR_COMP1OUTSEL_0 (0x1U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000100 */
  4741. #define COMP_CSR_COMP1OUTSEL_1 (0x2U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000200 */
  4742. #define COMP_CSR_COMP1OUTSEL_2 (0x4U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000400 */
  4743. #define COMP_CSR_COMP1POL_Pos (11U)
  4744. #define COMP_CSR_COMP1POL_Msk (0x1U << COMP_CSR_COMP1POL_Pos) /*!< 0x00000800 */
  4745. #define COMP_CSR_COMP1POL COMP_CSR_COMP1POL_Msk /*!< COMP1 output polarity */
  4746. #define COMP_CSR_COMP1HYST_Pos (12U)
  4747. #define COMP_CSR_COMP1HYST_Msk (0x3U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00003000 */
  4748. #define COMP_CSR_COMP1HYST COMP_CSR_COMP1HYST_Msk /*!< COMP1 hysteresis */
  4749. #define COMP_CSR_COMP1HYST_0 (0x1U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00001000 */
  4750. #define COMP_CSR_COMP1HYST_1 (0x2U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00002000 */
  4751. #define COMP_CSR_COMP1OUT_Pos (14U)
  4752. #define COMP_CSR_COMP1OUT_Msk (0x1U << COMP_CSR_COMP1OUT_Pos) /*!< 0x00004000 */
  4753. #define COMP_CSR_COMP1OUT COMP_CSR_COMP1OUT_Msk /*!< COMP1 output level */
  4754. #define COMP_CSR_COMP1LOCK_Pos (15U)
  4755. #define COMP_CSR_COMP1LOCK_Msk (0x1U << COMP_CSR_COMP1LOCK_Pos) /*!< 0x00008000 */
  4756. #define COMP_CSR_COMP1LOCK COMP_CSR_COMP1LOCK_Msk /*!< COMP1 lock */
  4757. /* COMP2 bits definition */
  4758. #define COMP_CSR_COMP2EN_Pos (16U)
  4759. #define COMP_CSR_COMP2EN_Msk (0x1U << COMP_CSR_COMP2EN_Pos) /*!< 0x00010000 */
  4760. #define COMP_CSR_COMP2EN COMP_CSR_COMP2EN_Msk /*!< COMP2 enable */
  4761. #define COMP_CSR_COMP2MODE_Pos (18U)
  4762. #define COMP_CSR_COMP2MODE_Msk (0x3U << COMP_CSR_COMP2MODE_Pos) /*!< 0x000C0000 */
  4763. #define COMP_CSR_COMP2MODE COMP_CSR_COMP2MODE_Msk /*!< COMP2 power mode */
  4764. #define COMP_CSR_COMP2MODE_0 (0x1U << COMP_CSR_COMP2MODE_Pos) /*!< 0x00040000 */
  4765. #define COMP_CSR_COMP2MODE_1 (0x2U << COMP_CSR_COMP2MODE_Pos) /*!< 0x00080000 */
  4766. #define COMP_CSR_COMP2INSEL_Pos (20U)
  4767. #define COMP_CSR_COMP2INSEL_Msk (0x7U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00700000 */
  4768. #define COMP_CSR_COMP2INSEL COMP_CSR_COMP2INSEL_Msk /*!< COMP2 inverting input select */
  4769. #define COMP_CSR_COMP2INSEL_0 (0x1U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00100000 */
  4770. #define COMP_CSR_COMP2INSEL_1 (0x2U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00200000 */
  4771. #define COMP_CSR_COMP2INSEL_2 (0x4U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00400000 */
  4772. #define COMP_CSR_WNDWEN_Pos (23U)
  4773. #define COMP_CSR_WNDWEN_Msk (0x1U << COMP_CSR_WNDWEN_Pos) /*!< 0x00800000 */
  4774. #define COMP_CSR_WNDWEN COMP_CSR_WNDWEN_Msk /*!< COMPx window mode. Bit intended to be used with COMP common instance (COMP_Common_TypeDef) */
  4775. #define COMP_CSR_COMP2OUTSEL_Pos (24U)
  4776. #define COMP_CSR_COMP2OUTSEL_Msk (0x7U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x07000000 */
  4777. #define COMP_CSR_COMP2OUTSEL COMP_CSR_COMP2OUTSEL_Msk /*!< COMP2 output select */
  4778. #define COMP_CSR_COMP2OUTSEL_0 (0x1U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x01000000 */
  4779. #define COMP_CSR_COMP2OUTSEL_1 (0x2U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x02000000 */
  4780. #define COMP_CSR_COMP2OUTSEL_2 (0x4U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x04000000 */
  4781. #define COMP_CSR_COMP2POL_Pos (27U)
  4782. #define COMP_CSR_COMP2POL_Msk (0x1U << COMP_CSR_COMP2POL_Pos) /*!< 0x08000000 */
  4783. #define COMP_CSR_COMP2POL COMP_CSR_COMP2POL_Msk /*!< COMP2 output polarity */
  4784. #define COMP_CSR_COMP2HYST_Pos (28U)
  4785. #define COMP_CSR_COMP2HYST_Msk (0x3U << COMP_CSR_COMP2HYST_Pos) /*!< 0x30000000 */
  4786. #define COMP_CSR_COMP2HYST COMP_CSR_COMP2HYST_Msk /*!< COMP2 hysteresis */
  4787. #define COMP_CSR_COMP2HYST_0 (0x1U << COMP_CSR_COMP2HYST_Pos) /*!< 0x10000000 */
  4788. #define COMP_CSR_COMP2HYST_1 (0x2U << COMP_CSR_COMP2HYST_Pos) /*!< 0x20000000 */
  4789. #define COMP_CSR_COMP2OUT_Pos (30U)
  4790. #define COMP_CSR_COMP2OUT_Msk (0x1U << COMP_CSR_COMP2OUT_Pos) /*!< 0x40000000 */
  4791. #define COMP_CSR_COMP2OUT COMP_CSR_COMP2OUT_Msk /*!< COMP2 output level */
  4792. #define COMP_CSR_COMP2LOCK_Pos (31U)
  4793. #define COMP_CSR_COMP2LOCK_Msk (0x1U << COMP_CSR_COMP2LOCK_Pos) /*!< 0x80000000 */
  4794. #define COMP_CSR_COMP2LOCK COMP_CSR_COMP2LOCK_Msk /*!< COMP2 lock */
  4795. /* COMPx bits definition */
  4796. #define COMP_CSR_COMPxEN_Pos (0U)
  4797. #define COMP_CSR_COMPxEN_Msk (0x1U << COMP_CSR_COMPxEN_Pos) /*!< 0x00000001 */
  4798. #define COMP_CSR_COMPxEN COMP_CSR_COMPxEN_Msk /*!< COMPx enable */
  4799. #define COMP_CSR_COMPxMODE_Pos (2U)
  4800. #define COMP_CSR_COMPxMODE_Msk (0x3U << COMP_CSR_COMPxMODE_Pos) /*!< 0x0000000C */
  4801. #define COMP_CSR_COMPxMODE COMP_CSR_COMPxMODE_Msk /*!< COMPx power mode */
  4802. #define COMP_CSR_COMPxMODE_0 (0x1U << COMP_CSR_COMPxMODE_Pos) /*!< 0x00000004 */
  4803. #define COMP_CSR_COMPxMODE_1 (0x2U << COMP_CSR_COMPxMODE_Pos) /*!< 0x00000008 */
  4804. #define COMP_CSR_COMPxINSEL_Pos (4U)
  4805. #define COMP_CSR_COMPxINSEL_Msk (0x7U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000070 */
  4806. #define COMP_CSR_COMPxINSEL COMP_CSR_COMPxINSEL_Msk /*!< COMPx inverting input select */
  4807. #define COMP_CSR_COMPxINSEL_0 (0x1U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000010 */
  4808. #define COMP_CSR_COMPxINSEL_1 (0x2U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000020 */
  4809. #define COMP_CSR_COMPxINSEL_2 (0x4U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000040 */
  4810. #define COMP_CSR_COMPxOUTSEL_Pos (8U)
  4811. #define COMP_CSR_COMPxOUTSEL_Msk (0x7U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000700 */
  4812. #define COMP_CSR_COMPxOUTSEL COMP_CSR_COMPxOUTSEL_Msk /*!< COMPx output select */
  4813. #define COMP_CSR_COMPxOUTSEL_0 (0x1U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000100 */
  4814. #define COMP_CSR_COMPxOUTSEL_1 (0x2U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000200 */
  4815. #define COMP_CSR_COMPxOUTSEL_2 (0x4U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000400 */
  4816. #define COMP_CSR_COMPxPOL_Pos (11U)
  4817. #define COMP_CSR_COMPxPOL_Msk (0x1U << COMP_CSR_COMPxPOL_Pos) /*!< 0x00000800 */
  4818. #define COMP_CSR_COMPxPOL COMP_CSR_COMPxPOL_Msk /*!< COMPx output polarity */
  4819. #define COMP_CSR_COMPxHYST_Pos (12U)
  4820. #define COMP_CSR_COMPxHYST_Msk (0x3U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00003000 */
  4821. #define COMP_CSR_COMPxHYST COMP_CSR_COMPxHYST_Msk /*!< COMPx hysteresis */
  4822. #define COMP_CSR_COMPxHYST_0 (0x1U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00001000 */
  4823. #define COMP_CSR_COMPxHYST_1 (0x2U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00002000 */
  4824. #define COMP_CSR_COMPxOUT_Pos (14U)
  4825. #define COMP_CSR_COMPxOUT_Msk (0x1U << COMP_CSR_COMPxOUT_Pos) /*!< 0x00004000 */
  4826. #define COMP_CSR_COMPxOUT COMP_CSR_COMPxOUT_Msk /*!< COMPx output level */
  4827. #define COMP_CSR_COMPxLOCK_Pos (15U)
  4828. #define COMP_CSR_COMPxLOCK_Msk (0x1U << COMP_CSR_COMPxLOCK_Pos) /*!< 0x00008000 */
  4829. #define COMP_CSR_COMPxLOCK COMP_CSR_COMPxLOCK_Msk /*!< COMPx lock */
  4830. /******************************************************************************/
  4831. /* */
  4832. /* CRC calculation unit (CRC) */
  4833. /* */
  4834. /******************************************************************************/
  4835. /*
  4836. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  4837. */
  4838. /* Support of Programmable Polynomial size and value feature */
  4839. #define CRC_PROG_POLYNOMIAL_SUPPORT
  4840. /******************* Bit definition for CRC_DR register *********************/
  4841. #define CRC_DR_DR_Pos (0U)
  4842. #define CRC_DR_DR_Msk (0xFFFFFFFFU << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  4843. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  4844. /******************* Bit definition for CRC_IDR register ********************/
  4845. #define CRC_IDR_IDR ((uint8_t)0xFFU) /*!< General-purpose 8-bit data register bits */
  4846. /******************** Bit definition for CRC_CR register ********************/
  4847. #define CRC_CR_RESET_Pos (0U)
  4848. #define CRC_CR_RESET_Msk (0x1U << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  4849. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  4850. #define CRC_CR_POLYSIZE_Pos (3U)
  4851. #define CRC_CR_POLYSIZE_Msk (0x3U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  4852. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  4853. #define CRC_CR_POLYSIZE_0 (0x1U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  4854. #define CRC_CR_POLYSIZE_1 (0x2U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  4855. #define CRC_CR_REV_IN_Pos (5U)
  4856. #define CRC_CR_REV_IN_Msk (0x3U << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  4857. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  4858. #define CRC_CR_REV_IN_0 (0x1U << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  4859. #define CRC_CR_REV_IN_1 (0x2U << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  4860. #define CRC_CR_REV_OUT_Pos (7U)
  4861. #define CRC_CR_REV_OUT_Msk (0x1U << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  4862. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  4863. /******************* Bit definition for CRC_INIT register *******************/
  4864. #define CRC_INIT_INIT_Pos (0U)
  4865. #define CRC_INIT_INIT_Msk (0xFFFFFFFFU << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  4866. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  4867. /******************* Bit definition for CRC_POL register ********************/
  4868. #define CRC_POL_POL_Pos (0U)
  4869. #define CRC_POL_POL_Msk (0xFFFFFFFFU << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  4870. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  4871. /******************************************************************************/
  4872. /* */
  4873. /* CRS Clock Recovery System */
  4874. /******************************************************************************/
  4875. /******************* Bit definition for CRS_CR register *********************/
  4876. #define CRS_CR_SYNCOKIE_Pos (0U)
  4877. #define CRS_CR_SYNCOKIE_Msk (0x1U << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */
  4878. #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /* SYNC event OK interrupt enable */
  4879. #define CRS_CR_SYNCWARNIE_Pos (1U)
  4880. #define CRS_CR_SYNCWARNIE_Msk (0x1U << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */
  4881. #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /* SYNC warning interrupt enable */
  4882. #define CRS_CR_ERRIE_Pos (2U)
  4883. #define CRS_CR_ERRIE_Msk (0x1U << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */
  4884. #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /* SYNC error interrupt enable */
  4885. #define CRS_CR_ESYNCIE_Pos (3U)
  4886. #define CRS_CR_ESYNCIE_Msk (0x1U << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */
  4887. #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /* Expected SYNC(ESYNCF) interrupt Enable*/
  4888. #define CRS_CR_CEN_Pos (5U)
  4889. #define CRS_CR_CEN_Msk (0x1U << CRS_CR_CEN_Pos) /*!< 0x00000020 */
  4890. #define CRS_CR_CEN CRS_CR_CEN_Msk /* Frequency error counter enable */
  4891. #define CRS_CR_AUTOTRIMEN_Pos (6U)
  4892. #define CRS_CR_AUTOTRIMEN_Msk (0x1U << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */
  4893. #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /* Automatic trimming enable */
  4894. #define CRS_CR_SWSYNC_Pos (7U)
  4895. #define CRS_CR_SWSYNC_Msk (0x1U << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */
  4896. #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /* A Software SYNC event is generated */
  4897. #define CRS_CR_TRIM_Pos (8U)
  4898. #define CRS_CR_TRIM_Msk (0x3FU << CRS_CR_TRIM_Pos) /*!< 0x00003F00 */
  4899. #define CRS_CR_TRIM CRS_CR_TRIM_Msk /* HSI48 oscillator smooth trimming */
  4900. /******************* Bit definition for CRS_CFGR register *********************/
  4901. #define CRS_CFGR_RELOAD_Pos (0U)
  4902. #define CRS_CFGR_RELOAD_Msk (0xFFFFU << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */
  4903. #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /* Counter reload value */
  4904. #define CRS_CFGR_FELIM_Pos (16U)
  4905. #define CRS_CFGR_FELIM_Msk (0xFFU << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */
  4906. #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /* Frequency error limit */
  4907. #define CRS_CFGR_SYNCDIV_Pos (24U)
  4908. #define CRS_CFGR_SYNCDIV_Msk (0x7U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */
  4909. #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /* SYNC divider */
  4910. #define CRS_CFGR_SYNCDIV_0 (0x1U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */
  4911. #define CRS_CFGR_SYNCDIV_1 (0x2U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */
  4912. #define CRS_CFGR_SYNCDIV_2 (0x4U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */
  4913. #define CRS_CFGR_SYNCSRC_Pos (28U)
  4914. #define CRS_CFGR_SYNCSRC_Msk (0x3U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */
  4915. #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /* SYNC signal source selection */
  4916. #define CRS_CFGR_SYNCSRC_0 (0x1U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */
  4917. #define CRS_CFGR_SYNCSRC_1 (0x2U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */
  4918. #define CRS_CFGR_SYNCPOL_Pos (31U)
  4919. #define CRS_CFGR_SYNCPOL_Msk (0x1U << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */
  4920. #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /* SYNC polarity selection */
  4921. /******************* Bit definition for CRS_ISR register *********************/
  4922. #define CRS_ISR_SYNCOKF_Pos (0U)
  4923. #define CRS_ISR_SYNCOKF_Msk (0x1U << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */
  4924. #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /* SYNC event OK flag */
  4925. #define CRS_ISR_SYNCWARNF_Pos (1U)
  4926. #define CRS_ISR_SYNCWARNF_Msk (0x1U << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */
  4927. #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /* SYNC warning */
  4928. #define CRS_ISR_ERRF_Pos (2U)
  4929. #define CRS_ISR_ERRF_Msk (0x1U << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */
  4930. #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /* SYNC error flag */
  4931. #define CRS_ISR_ESYNCF_Pos (3U)
  4932. #define CRS_ISR_ESYNCF_Msk (0x1U << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */
  4933. #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /* Expected SYNC flag */
  4934. #define CRS_ISR_SYNCERR_Pos (8U)
  4935. #define CRS_ISR_SYNCERR_Msk (0x1U << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */
  4936. #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /* SYNC error */
  4937. #define CRS_ISR_SYNCMISS_Pos (9U)
  4938. #define CRS_ISR_SYNCMISS_Msk (0x1U << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */
  4939. #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /* SYNC missed */
  4940. #define CRS_ISR_TRIMOVF_Pos (10U)
  4941. #define CRS_ISR_TRIMOVF_Msk (0x1U << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */
  4942. #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /* Trimming overflow or underflow */
  4943. #define CRS_ISR_FEDIR_Pos (15U)
  4944. #define CRS_ISR_FEDIR_Msk (0x1U << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */
  4945. #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /* Frequency error direction */
  4946. #define CRS_ISR_FECAP_Pos (16U)
  4947. #define CRS_ISR_FECAP_Msk (0xFFFFU << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */
  4948. #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /* Frequency error capture */
  4949. /******************* Bit definition for CRS_ICR register *********************/
  4950. #define CRS_ICR_SYNCOKC_Pos (0U)
  4951. #define CRS_ICR_SYNCOKC_Msk (0x1U << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */
  4952. #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /* SYNC event OK clear flag */
  4953. #define CRS_ICR_SYNCWARNC_Pos (1U)
  4954. #define CRS_ICR_SYNCWARNC_Msk (0x1U << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */
  4955. #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /* SYNC warning clear flag */
  4956. #define CRS_ICR_ERRC_Pos (2U)
  4957. #define CRS_ICR_ERRC_Msk (0x1U << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */
  4958. #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /* Error clear flag */
  4959. #define CRS_ICR_ESYNCC_Pos (3U)
  4960. #define CRS_ICR_ESYNCC_Msk (0x1U << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */
  4961. #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /* Expected SYNC clear flag */
  4962. /******************************************************************************/
  4963. /* */
  4964. /* Digital to Analog Converter (DAC) */
  4965. /* */
  4966. /******************************************************************************/
  4967. /*
  4968. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  4969. */
  4970. #define DAC_CHANNEL2_SUPPORT /*!< DAC feature available only on specific devices: availability of DAC channel 2 */
  4971. /******************** Bit definition for DAC_CR register ********************/
  4972. #define DAC_CR_EN1_Pos (0U)
  4973. #define DAC_CR_EN1_Msk (0x1U << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  4974. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!< DAC channel1 enable */
  4975. #define DAC_CR_BOFF1_Pos (1U)
  4976. #define DAC_CR_BOFF1_Msk (0x1U << DAC_CR_BOFF1_Pos) /*!< 0x00000002 */
  4977. #define DAC_CR_BOFF1 DAC_CR_BOFF1_Msk /*!< DAC channel1 output buffer disable */
  4978. #define DAC_CR_TEN1_Pos (2U)
  4979. #define DAC_CR_TEN1_Msk (0x1U << DAC_CR_TEN1_Pos) /*!< 0x00000004 */
  4980. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!< DAC channel1 Trigger enable */
  4981. #define DAC_CR_TSEL1_Pos (3U)
  4982. #define DAC_CR_TSEL1_Msk (0x7U << DAC_CR_TSEL1_Pos) /*!< 0x00000038 */
  4983. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!< TSEL1[2:0] (DAC channel1 Trigger selection) */
  4984. #define DAC_CR_TSEL1_0 (0x1U << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  4985. #define DAC_CR_TSEL1_1 (0x2U << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  4986. #define DAC_CR_TSEL1_2 (0x4U << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  4987. #define DAC_CR_WAVE1_Pos (6U)
  4988. #define DAC_CR_WAVE1_Msk (0x3U << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  4989. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!< WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  4990. #define DAC_CR_WAVE1_0 (0x1U << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  4991. #define DAC_CR_WAVE1_1 (0x2U << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  4992. #define DAC_CR_MAMP1_Pos (8U)
  4993. #define DAC_CR_MAMP1_Msk (0xFU << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  4994. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!< MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  4995. #define DAC_CR_MAMP1_0 (0x1U << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  4996. #define DAC_CR_MAMP1_1 (0x2U << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  4997. #define DAC_CR_MAMP1_2 (0x4U << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  4998. #define DAC_CR_MAMP1_3 (0x8U << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  4999. #define DAC_CR_DMAEN1_Pos (12U)
  5000. #define DAC_CR_DMAEN1_Msk (0x1U << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  5001. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!< DAC channel1 DMA enable */
  5002. #define DAC_CR_DMAUDRIE1_Pos (13U)
  5003. #define DAC_CR_DMAUDRIE1_Msk (0x1U << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  5004. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!< DAC channel1 DMA Underrun Interrupt enable */
  5005. #define DAC_CR_EN2_Pos (16U)
  5006. #define DAC_CR_EN2_Msk (0x1U << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  5007. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!< DAC channel2 enable */
  5008. #define DAC_CR_BOFF2_Pos (17U)
  5009. #define DAC_CR_BOFF2_Msk (0x1U << DAC_CR_BOFF2_Pos) /*!< 0x00020000 */
  5010. #define DAC_CR_BOFF2 DAC_CR_BOFF2_Msk /*!< DAC channel2 output buffer disable */
  5011. #define DAC_CR_TEN2_Pos (18U)
  5012. #define DAC_CR_TEN2_Msk (0x1U << DAC_CR_TEN2_Pos) /*!< 0x00040000 */
  5013. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!< DAC channel2 Trigger enable */
  5014. #define DAC_CR_TSEL2_Pos (19U)
  5015. #define DAC_CR_TSEL2_Msk (0x7U << DAC_CR_TSEL2_Pos) /*!< 0x00380000 */
  5016. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!< TSEL2[2:0] (DAC channel2 Trigger selection) */
  5017. #define DAC_CR_TSEL2_0 (0x1U << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  5018. #define DAC_CR_TSEL2_1 (0x2U << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  5019. #define DAC_CR_TSEL2_2 (0x4U << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  5020. #define DAC_CR_WAVE2_Pos (22U)
  5021. #define DAC_CR_WAVE2_Msk (0x3U << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  5022. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!< WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  5023. #define DAC_CR_WAVE2_0 (0x1U << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  5024. #define DAC_CR_WAVE2_1 (0x2U << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  5025. #define DAC_CR_MAMP2_Pos (24U)
  5026. #define DAC_CR_MAMP2_Msk (0xFU << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  5027. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!< MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  5028. #define DAC_CR_MAMP2_0 (0x1U << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  5029. #define DAC_CR_MAMP2_1 (0x2U << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  5030. #define DAC_CR_MAMP2_2 (0x4U << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  5031. #define DAC_CR_MAMP2_3 (0x8U << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  5032. #define DAC_CR_DMAEN2_Pos (28U)
  5033. #define DAC_CR_DMAEN2_Msk (0x1U << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  5034. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!< DAC channel2 DMA enabled */
  5035. #define DAC_CR_DMAUDRIE2_Pos (29U)
  5036. #define DAC_CR_DMAUDRIE2_Msk (0x1U << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  5037. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!< DAC channel2 DMA Underrun Interrupt enable */
  5038. /***************** Bit definition for DAC_SWTRIGR register ******************/
  5039. #define DAC_SWTRIGR_SWTRIG1_Pos (0U)
  5040. #define DAC_SWTRIGR_SWTRIG1_Msk (0x1U << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */
  5041. #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!< DAC channel1 software trigger */
  5042. #define DAC_SWTRIGR_SWTRIG2_Pos (1U)
  5043. #define DAC_SWTRIGR_SWTRIG2_Msk (0x1U << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */
  5044. #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!< DAC channel2 software trigger */
  5045. /***************** Bit definition for DAC_DHR12R1 register ******************/
  5046. #define DAC_DHR12R1_DACC1DHR_Pos (0U)
  5047. #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFU << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */
  5048. #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  5049. /***************** Bit definition for DAC_DHR12L1 register ******************/
  5050. #define DAC_DHR12L1_DACC1DHR_Pos (4U)
  5051. #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFU << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5052. #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  5053. /****************** Bit definition for DAC_DHR8R1 register ******************/
  5054. #define DAC_DHR8R1_DACC1DHR_Pos (0U)
  5055. #define DAC_DHR8R1_DACC1DHR_Msk (0xFFU << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */
  5056. #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  5057. /***************** Bit definition for DAC_DHR12R2 register ******************/
  5058. #define DAC_DHR12R2_DACC2DHR_Pos (0U)
  5059. #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFU << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */
  5060. #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  5061. /***************** Bit definition for DAC_DHR12L2 register ******************/
  5062. #define DAC_DHR12L2_DACC2DHR_Pos (4U)
  5063. #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFU << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */
  5064. #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  5065. /****************** Bit definition for DAC_DHR8R2 register ******************/
  5066. #define DAC_DHR8R2_DACC2DHR_Pos (0U)
  5067. #define DAC_DHR8R2_DACC2DHR_Msk (0xFFU << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */
  5068. #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  5069. /***************** Bit definition for DAC_DHR12RD register ******************/
  5070. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  5071. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFU << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  5072. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  5073. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  5074. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFU << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  5075. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  5076. /***************** Bit definition for DAC_DHR12LD register ******************/
  5077. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  5078. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFU << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5079. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  5080. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  5081. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFU << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  5082. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  5083. /****************** Bit definition for DAC_DHR8RD register ******************/
  5084. #define DAC_DHR8RD_DACC1DHR_Pos (0U)
  5085. #define DAC_DHR8RD_DACC1DHR_Msk (0xFFU << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */
  5086. #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  5087. #define DAC_DHR8RD_DACC2DHR_Pos (8U)
  5088. #define DAC_DHR8RD_DACC2DHR_Msk (0xFFU << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */
  5089. #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  5090. /******************* Bit definition for DAC_DOR1 register *******************/
  5091. #define DAC_DOR1_DACC1DOR_Pos (0U)
  5092. #define DAC_DOR1_DACC1DOR_Msk (0xFFFU << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */
  5093. #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!< DAC channel1 data output */
  5094. /******************* Bit definition for DAC_DOR2 register *******************/
  5095. #define DAC_DOR2_DACC2DOR_Pos (0U)
  5096. #define DAC_DOR2_DACC2DOR_Msk (0xFFFU << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */
  5097. #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!< DAC channel2 data output */
  5098. /******************** Bit definition for DAC_SR register ********************/
  5099. #define DAC_SR_DMAUDR1_Pos (13U)
  5100. #define DAC_SR_DMAUDR1_Msk (0x1U << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  5101. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!< DAC channel1 DMA underrun flag */
  5102. #define DAC_SR_DMAUDR2_Pos (29U)
  5103. #define DAC_SR_DMAUDR2_Msk (0x1U << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  5104. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!< DAC channel2 DMA underrun flag */
  5105. /******************************************************************************/
  5106. /* */
  5107. /* Debug MCU (DBGMCU) */
  5108. /* */
  5109. /******************************************************************************/
  5110. /**************** Bit definition for DBGMCU_IDCODE register *****************/
  5111. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  5112. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFU << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
  5113. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk /*!< Device Identifier */
  5114. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  5115. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFU << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */
  5116. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk /*!< REV_ID[15:0] bits (Revision Identifier) */
  5117. #define DBGMCU_IDCODE_REV_ID_0 (0x0001U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00010000 */
  5118. #define DBGMCU_IDCODE_REV_ID_1 (0x0002U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00020000 */
  5119. #define DBGMCU_IDCODE_REV_ID_2 (0x0004U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00040000 */
  5120. #define DBGMCU_IDCODE_REV_ID_3 (0x0008U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00080000 */
  5121. #define DBGMCU_IDCODE_REV_ID_4 (0x0010U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00100000 */
  5122. #define DBGMCU_IDCODE_REV_ID_5 (0x0020U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00200000 */
  5123. #define DBGMCU_IDCODE_REV_ID_6 (0x0040U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00400000 */
  5124. #define DBGMCU_IDCODE_REV_ID_7 (0x0080U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00800000 */
  5125. #define DBGMCU_IDCODE_REV_ID_8 (0x0100U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x01000000 */
  5126. #define DBGMCU_IDCODE_REV_ID_9 (0x0200U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x02000000 */
  5127. #define DBGMCU_IDCODE_REV_ID_10 (0x0400U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x04000000 */
  5128. #define DBGMCU_IDCODE_REV_ID_11 (0x0800U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x08000000 */
  5129. #define DBGMCU_IDCODE_REV_ID_12 (0x1000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x10000000 */
  5130. #define DBGMCU_IDCODE_REV_ID_13 (0x2000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x20000000 */
  5131. #define DBGMCU_IDCODE_REV_ID_14 (0x4000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x40000000 */
  5132. #define DBGMCU_IDCODE_REV_ID_15 (0x8000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x80000000 */
  5133. /****************** Bit definition for DBGMCU_CR register *******************/
  5134. #define DBGMCU_CR_DBG_STOP_Pos (1U)
  5135. #define DBGMCU_CR_DBG_STOP_Msk (0x1U << DBGMCU_CR_DBG_STOP_Pos) /*!< 0x00000002 */
  5136. #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk /*!< Debug Stop Mode */
  5137. #define DBGMCU_CR_DBG_STANDBY_Pos (2U)
  5138. #define DBGMCU_CR_DBG_STANDBY_Msk (0x1U << DBGMCU_CR_DBG_STANDBY_Pos) /*!< 0x00000004 */
  5139. #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk /*!< Debug Standby mode */
  5140. /****************** Bit definition for DBGMCU_APB1_FZ register **************/
  5141. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos (0U)
  5142. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos) /*!< 0x00000001 */
  5143. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk /*!< TIM2 counter stopped when core is halted */
  5144. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos (1U)
  5145. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos) /*!< 0x00000002 */
  5146. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk /*!< TIM3 counter stopped when core is halted */
  5147. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos (4U)
  5148. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos) /*!< 0x00000010 */
  5149. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk /*!< TIM6 counter stopped when core is halted */
  5150. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos (5U)
  5151. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos) /*!< 0x00000020 */
  5152. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk /*!< TIM7 counter stopped when core is halted */
  5153. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP_Pos (8U)
  5154. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM14_STOP_Pos) /*!< 0x00000100 */
  5155. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP DBGMCU_APB1_FZ_DBG_TIM14_STOP_Msk /*!< TIM14 counter stopped when core is halted */
  5156. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos (10U)
  5157. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos) /*!< 0x00000400 */
  5158. #define DBGMCU_APB1_FZ_DBG_RTC_STOP DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk /*!< RTC Calendar frozen when core is halted */
  5159. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos (11U)
  5160. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos) /*!< 0x00000800 */
  5161. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk /*!< Debug Window Watchdog stopped when Core is halted */
  5162. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos (12U)
  5163. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos) /*!< 0x00001000 */
  5164. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk /*!< Debug Independent Watchdog stopped when Core is halted */
  5165. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos (21U)
  5166. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk (0x1U << DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos) /*!< 0x00200000 */
  5167. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk /*!< I2C1 SMBUS timeout mode stopped when Core is halted */
  5168. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos (25U)
  5169. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos) /*!< 0x02000000 */
  5170. #define DBGMCU_APB1_FZ_DBG_CAN_STOP DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk /*!< CAN debug stopped when Core is halted */
  5171. /****************** Bit definition for DBGMCU_APB2_FZ register **************/
  5172. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP_Pos (11U)
  5173. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM1_STOP_Pos) /*!< 0x00000800 */
  5174. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP DBGMCU_APB2_FZ_DBG_TIM1_STOP_Msk /*!< TIM1 counter stopped when core is halted */
  5175. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos (16U)
  5176. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos) /*!< 0x00010000 */
  5177. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk /*!< TIM15 counter stopped when core is halted */
  5178. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos (17U)
  5179. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos) /*!< 0x00020000 */
  5180. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk /*!< TIM16 counter stopped when core is halted */
  5181. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos (18U)
  5182. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos) /*!< 0x00040000 */
  5183. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk /*!< TIM17 counter stopped when core is halted */
  5184. /******************************************************************************/
  5185. /* */
  5186. /* DMA Controller (DMA) */
  5187. /* */
  5188. /******************************************************************************/
  5189. /******************* Bit definition for DMA_ISR register ********************/
  5190. #define DMA_ISR_GIF1_Pos (0U)
  5191. #define DMA_ISR_GIF1_Msk (0x1U << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */
  5192. #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  5193. #define DMA_ISR_TCIF1_Pos (1U)
  5194. #define DMA_ISR_TCIF1_Msk (0x1U << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */
  5195. #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  5196. #define DMA_ISR_HTIF1_Pos (2U)
  5197. #define DMA_ISR_HTIF1_Msk (0x1U << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */
  5198. #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  5199. #define DMA_ISR_TEIF1_Pos (3U)
  5200. #define DMA_ISR_TEIF1_Msk (0x1U << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */
  5201. #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  5202. #define DMA_ISR_GIF2_Pos (4U)
  5203. #define DMA_ISR_GIF2_Msk (0x1U << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */
  5204. #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  5205. #define DMA_ISR_TCIF2_Pos (5U)
  5206. #define DMA_ISR_TCIF2_Msk (0x1U << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */
  5207. #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  5208. #define DMA_ISR_HTIF2_Pos (6U)
  5209. #define DMA_ISR_HTIF2_Msk (0x1U << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */
  5210. #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  5211. #define DMA_ISR_TEIF2_Pos (7U)
  5212. #define DMA_ISR_TEIF2_Msk (0x1U << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */
  5213. #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  5214. #define DMA_ISR_GIF3_Pos (8U)
  5215. #define DMA_ISR_GIF3_Msk (0x1U << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */
  5216. #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  5217. #define DMA_ISR_TCIF3_Pos (9U)
  5218. #define DMA_ISR_TCIF3_Msk (0x1U << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */
  5219. #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  5220. #define DMA_ISR_HTIF3_Pos (10U)
  5221. #define DMA_ISR_HTIF3_Msk (0x1U << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */
  5222. #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  5223. #define DMA_ISR_TEIF3_Pos (11U)
  5224. #define DMA_ISR_TEIF3_Msk (0x1U << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */
  5225. #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  5226. #define DMA_ISR_GIF4_Pos (12U)
  5227. #define DMA_ISR_GIF4_Msk (0x1U << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */
  5228. #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  5229. #define DMA_ISR_TCIF4_Pos (13U)
  5230. #define DMA_ISR_TCIF4_Msk (0x1U << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */
  5231. #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  5232. #define DMA_ISR_HTIF4_Pos (14U)
  5233. #define DMA_ISR_HTIF4_Msk (0x1U << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */
  5234. #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  5235. #define DMA_ISR_TEIF4_Pos (15U)
  5236. #define DMA_ISR_TEIF4_Msk (0x1U << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */
  5237. #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  5238. #define DMA_ISR_GIF5_Pos (16U)
  5239. #define DMA_ISR_GIF5_Msk (0x1U << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */
  5240. #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  5241. #define DMA_ISR_TCIF5_Pos (17U)
  5242. #define DMA_ISR_TCIF5_Msk (0x1U << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */
  5243. #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  5244. #define DMA_ISR_HTIF5_Pos (18U)
  5245. #define DMA_ISR_HTIF5_Msk (0x1U << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */
  5246. #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  5247. #define DMA_ISR_TEIF5_Pos (19U)
  5248. #define DMA_ISR_TEIF5_Msk (0x1U << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */
  5249. #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  5250. #define DMA_ISR_GIF6_Pos (20U)
  5251. #define DMA_ISR_GIF6_Msk (0x1U << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */
  5252. #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  5253. #define DMA_ISR_TCIF6_Pos (21U)
  5254. #define DMA_ISR_TCIF6_Msk (0x1U << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */
  5255. #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  5256. #define DMA_ISR_HTIF6_Pos (22U)
  5257. #define DMA_ISR_HTIF6_Msk (0x1U << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */
  5258. #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  5259. #define DMA_ISR_TEIF6_Pos (23U)
  5260. #define DMA_ISR_TEIF6_Msk (0x1U << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */
  5261. #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  5262. #define DMA_ISR_GIF7_Pos (24U)
  5263. #define DMA_ISR_GIF7_Msk (0x1U << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */
  5264. #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  5265. #define DMA_ISR_TCIF7_Pos (25U)
  5266. #define DMA_ISR_TCIF7_Msk (0x1U << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */
  5267. #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  5268. #define DMA_ISR_HTIF7_Pos (26U)
  5269. #define DMA_ISR_HTIF7_Msk (0x1U << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */
  5270. #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  5271. #define DMA_ISR_TEIF7_Pos (27U)
  5272. #define DMA_ISR_TEIF7_Msk (0x1U << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */
  5273. #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  5274. /******************* Bit definition for DMA_IFCR register *******************/
  5275. #define DMA_IFCR_CGIF1_Pos (0U)
  5276. #define DMA_IFCR_CGIF1_Msk (0x1U << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */
  5277. #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */
  5278. #define DMA_IFCR_CTCIF1_Pos (1U)
  5279. #define DMA_IFCR_CTCIF1_Msk (0x1U << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */
  5280. #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  5281. #define DMA_IFCR_CHTIF1_Pos (2U)
  5282. #define DMA_IFCR_CHTIF1_Msk (0x1U << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */
  5283. #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  5284. #define DMA_IFCR_CTEIF1_Pos (3U)
  5285. #define DMA_IFCR_CTEIF1_Msk (0x1U << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */
  5286. #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  5287. #define DMA_IFCR_CGIF2_Pos (4U)
  5288. #define DMA_IFCR_CGIF2_Msk (0x1U << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */
  5289. #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  5290. #define DMA_IFCR_CTCIF2_Pos (5U)
  5291. #define DMA_IFCR_CTCIF2_Msk (0x1U << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */
  5292. #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  5293. #define DMA_IFCR_CHTIF2_Pos (6U)
  5294. #define DMA_IFCR_CHTIF2_Msk (0x1U << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */
  5295. #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  5296. #define DMA_IFCR_CTEIF2_Pos (7U)
  5297. #define DMA_IFCR_CTEIF2_Msk (0x1U << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */
  5298. #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  5299. #define DMA_IFCR_CGIF3_Pos (8U)
  5300. #define DMA_IFCR_CGIF3_Msk (0x1U << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */
  5301. #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  5302. #define DMA_IFCR_CTCIF3_Pos (9U)
  5303. #define DMA_IFCR_CTCIF3_Msk (0x1U << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */
  5304. #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  5305. #define DMA_IFCR_CHTIF3_Pos (10U)
  5306. #define DMA_IFCR_CHTIF3_Msk (0x1U << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */
  5307. #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  5308. #define DMA_IFCR_CTEIF3_Pos (11U)
  5309. #define DMA_IFCR_CTEIF3_Msk (0x1U << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */
  5310. #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  5311. #define DMA_IFCR_CGIF4_Pos (12U)
  5312. #define DMA_IFCR_CGIF4_Msk (0x1U << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */
  5313. #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  5314. #define DMA_IFCR_CTCIF4_Pos (13U)
  5315. #define DMA_IFCR_CTCIF4_Msk (0x1U << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */
  5316. #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  5317. #define DMA_IFCR_CHTIF4_Pos (14U)
  5318. #define DMA_IFCR_CHTIF4_Msk (0x1U << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */
  5319. #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  5320. #define DMA_IFCR_CTEIF4_Pos (15U)
  5321. #define DMA_IFCR_CTEIF4_Msk (0x1U << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */
  5322. #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  5323. #define DMA_IFCR_CGIF5_Pos (16U)
  5324. #define DMA_IFCR_CGIF5_Msk (0x1U << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */
  5325. #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  5326. #define DMA_IFCR_CTCIF5_Pos (17U)
  5327. #define DMA_IFCR_CTCIF5_Msk (0x1U << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */
  5328. #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  5329. #define DMA_IFCR_CHTIF5_Pos (18U)
  5330. #define DMA_IFCR_CHTIF5_Msk (0x1U << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */
  5331. #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  5332. #define DMA_IFCR_CTEIF5_Pos (19U)
  5333. #define DMA_IFCR_CTEIF5_Msk (0x1U << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */
  5334. #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  5335. #define DMA_IFCR_CGIF6_Pos (20U)
  5336. #define DMA_IFCR_CGIF6_Msk (0x1U << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */
  5337. #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  5338. #define DMA_IFCR_CTCIF6_Pos (21U)
  5339. #define DMA_IFCR_CTCIF6_Msk (0x1U << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */
  5340. #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  5341. #define DMA_IFCR_CHTIF6_Pos (22U)
  5342. #define DMA_IFCR_CHTIF6_Msk (0x1U << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */
  5343. #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  5344. #define DMA_IFCR_CTEIF6_Pos (23U)
  5345. #define DMA_IFCR_CTEIF6_Msk (0x1U << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */
  5346. #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  5347. #define DMA_IFCR_CGIF7_Pos (24U)
  5348. #define DMA_IFCR_CGIF7_Msk (0x1U << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */
  5349. #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  5350. #define DMA_IFCR_CTCIF7_Pos (25U)
  5351. #define DMA_IFCR_CTCIF7_Msk (0x1U << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */
  5352. #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  5353. #define DMA_IFCR_CHTIF7_Pos (26U)
  5354. #define DMA_IFCR_CHTIF7_Msk (0x1U << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */
  5355. #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  5356. #define DMA_IFCR_CTEIF7_Pos (27U)
  5357. #define DMA_IFCR_CTEIF7_Msk (0x1U << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */
  5358. #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  5359. /******************* Bit definition for DMA_CCR register ********************/
  5360. #define DMA_CCR_EN_Pos (0U)
  5361. #define DMA_CCR_EN_Msk (0x1U << DMA_CCR_EN_Pos) /*!< 0x00000001 */
  5362. #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */
  5363. #define DMA_CCR_TCIE_Pos (1U)
  5364. #define DMA_CCR_TCIE_Msk (0x1U << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  5365. #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  5366. #define DMA_CCR_HTIE_Pos (2U)
  5367. #define DMA_CCR_HTIE_Msk (0x1U << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  5368. #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  5369. #define DMA_CCR_TEIE_Pos (3U)
  5370. #define DMA_CCR_TEIE_Msk (0x1U << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  5371. #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  5372. #define DMA_CCR_DIR_Pos (4U)
  5373. #define DMA_CCR_DIR_Msk (0x1U << DMA_CCR_DIR_Pos) /*!< 0x00000010 */
  5374. #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */
  5375. #define DMA_CCR_CIRC_Pos (5U)
  5376. #define DMA_CCR_CIRC_Msk (0x1U << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  5377. #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */
  5378. #define DMA_CCR_PINC_Pos (6U)
  5379. #define DMA_CCR_PINC_Msk (0x1U << DMA_CCR_PINC_Pos) /*!< 0x00000040 */
  5380. #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  5381. #define DMA_CCR_MINC_Pos (7U)
  5382. #define DMA_CCR_MINC_Msk (0x1U << DMA_CCR_MINC_Pos) /*!< 0x00000080 */
  5383. #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */
  5384. #define DMA_CCR_PSIZE_Pos (8U)
  5385. #define DMA_CCR_PSIZE_Msk (0x3U << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  5386. #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  5387. #define DMA_CCR_PSIZE_0 (0x1U << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  5388. #define DMA_CCR_PSIZE_1 (0x2U << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  5389. #define DMA_CCR_MSIZE_Pos (10U)
  5390. #define DMA_CCR_MSIZE_Msk (0x3U << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  5391. #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  5392. #define DMA_CCR_MSIZE_0 (0x1U << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  5393. #define DMA_CCR_MSIZE_1 (0x2U << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  5394. #define DMA_CCR_PL_Pos (12U)
  5395. #define DMA_CCR_PL_Msk (0x3U << DMA_CCR_PL_Pos) /*!< 0x00003000 */
  5396. #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  5397. #define DMA_CCR_PL_0 (0x1U << DMA_CCR_PL_Pos) /*!< 0x00001000 */
  5398. #define DMA_CCR_PL_1 (0x2U << DMA_CCR_PL_Pos) /*!< 0x00002000 */
  5399. #define DMA_CCR_MEM2MEM_Pos (14U)
  5400. #define DMA_CCR_MEM2MEM_Msk (0x1U << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  5401. #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  5402. /****************** Bit definition for DMA_CNDTR register *******************/
  5403. #define DMA_CNDTR_NDT_Pos (0U)
  5404. #define DMA_CNDTR_NDT_Msk (0xFFFFU << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  5405. #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  5406. /****************** Bit definition for DMA_CPAR register ********************/
  5407. #define DMA_CPAR_PA_Pos (0U)
  5408. #define DMA_CPAR_PA_Msk (0xFFFFFFFFU << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  5409. #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */
  5410. /****************** Bit definition for DMA_CMAR register ********************/
  5411. #define DMA_CMAR_MA_Pos (0U)
  5412. #define DMA_CMAR_MA_Msk (0xFFFFFFFFU << DMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */
  5413. #define DMA_CMAR_MA DMA_CMAR_MA_Msk /*!< Memory Address */
  5414. /****************** Bit definition for DMA1_CSELR register ********************/
  5415. #define DMA_CSELR_C1S_Pos (0U)
  5416. #define DMA_CSELR_C1S_Msk (0xFU << DMA_CSELR_C1S_Pos) /*!< 0x0000000F */
  5417. #define DMA_CSELR_C1S DMA_CSELR_C1S_Msk /*!< Channel 1 Selection */
  5418. #define DMA_CSELR_C2S_Pos (4U)
  5419. #define DMA_CSELR_C2S_Msk (0xFU << DMA_CSELR_C2S_Pos) /*!< 0x000000F0 */
  5420. #define DMA_CSELR_C2S DMA_CSELR_C2S_Msk /*!< Channel 2 Selection */
  5421. #define DMA_CSELR_C3S_Pos (8U)
  5422. #define DMA_CSELR_C3S_Msk (0xFU << DMA_CSELR_C3S_Pos) /*!< 0x00000F00 */
  5423. #define DMA_CSELR_C3S DMA_CSELR_C3S_Msk /*!< Channel 3 Selection */
  5424. #define DMA_CSELR_C4S_Pos (12U)
  5425. #define DMA_CSELR_C4S_Msk (0xFU << DMA_CSELR_C4S_Pos) /*!< 0x0000F000 */
  5426. #define DMA_CSELR_C4S DMA_CSELR_C4S_Msk /*!< Channel 4 Selection */
  5427. #define DMA_CSELR_C5S_Pos (16U)
  5428. #define DMA_CSELR_C5S_Msk (0xFU << DMA_CSELR_C5S_Pos) /*!< 0x000F0000 */
  5429. #define DMA_CSELR_C5S DMA_CSELR_C5S_Msk /*!< Channel 5 Selection */
  5430. #define DMA_CSELR_C6S_Pos (20U)
  5431. #define DMA_CSELR_C6S_Msk (0xFU << DMA_CSELR_C6S_Pos) /*!< 0x00F00000 */
  5432. #define DMA_CSELR_C6S DMA_CSELR_C6S_Msk /*!< Channel 6 Selection */
  5433. #define DMA_CSELR_C7S_Pos (24U)
  5434. #define DMA_CSELR_C7S_Msk (0xFU << DMA_CSELR_C7S_Pos) /*!< 0x0F000000 */
  5435. #define DMA_CSELR_C7S DMA_CSELR_C7S_Msk /*!< Channel 7 Selection */
  5436. #define DMA1_CSELR_DEFAULT (0x00000000U) /*!< Default remap position for DMA1 */
  5437. #define DMA1_CSELR_CH1_ADC_Pos (0U)
  5438. #define DMA1_CSELR_CH1_ADC_Msk (0x1U << DMA1_CSELR_CH1_ADC_Pos) /*!< 0x00000001 */
  5439. #define DMA1_CSELR_CH1_ADC DMA1_CSELR_CH1_ADC_Msk /*!< Remap ADC on DMA1 Channel 1*/
  5440. #define DMA1_CSELR_CH1_TIM17_CH1_Pos (0U)
  5441. #define DMA1_CSELR_CH1_TIM17_CH1_Msk (0x7U << DMA1_CSELR_CH1_TIM17_CH1_Pos) /*!< 0x00000007 */
  5442. #define DMA1_CSELR_CH1_TIM17_CH1 DMA1_CSELR_CH1_TIM17_CH1_Msk /*!< Remap TIM17 channel 1 on DMA1 channel 1 */
  5443. #define DMA1_CSELR_CH1_TIM17_UP_Pos (0U)
  5444. #define DMA1_CSELR_CH1_TIM17_UP_Msk (0x7U << DMA1_CSELR_CH1_TIM17_UP_Pos) /*!< 0x00000007 */
  5445. #define DMA1_CSELR_CH1_TIM17_UP DMA1_CSELR_CH1_TIM17_UP_Msk /*!< Remap TIM17 up on DMA1 channel 1 */
  5446. #define DMA1_CSELR_CH1_USART1_RX_Pos (3U)
  5447. #define DMA1_CSELR_CH1_USART1_RX_Msk (0x1U << DMA1_CSELR_CH1_USART1_RX_Pos) /*!< 0x00000008 */
  5448. #define DMA1_CSELR_CH1_USART1_RX DMA1_CSELR_CH1_USART1_RX_Msk /*!< Remap USART1 Rx on DMA1 channel 1 */
  5449. #define DMA1_CSELR_CH1_USART2_RX_Pos (0U)
  5450. #define DMA1_CSELR_CH1_USART2_RX_Msk (0x9U << DMA1_CSELR_CH1_USART2_RX_Pos) /*!< 0x00000009 */
  5451. #define DMA1_CSELR_CH1_USART2_RX DMA1_CSELR_CH1_USART2_RX_Msk /*!< Remap USART2 Rx on DMA1 channel 1 */
  5452. #define DMA1_CSELR_CH1_USART3_RX_Pos (1U)
  5453. #define DMA1_CSELR_CH1_USART3_RX_Msk (0x5U << DMA1_CSELR_CH1_USART3_RX_Pos) /*!< 0x0000000A */
  5454. #define DMA1_CSELR_CH1_USART3_RX DMA1_CSELR_CH1_USART3_RX_Msk /*!< Remap USART3 Rx on DMA1 channel 1 */
  5455. #define DMA1_CSELR_CH1_USART4_RX_Pos (0U)
  5456. #define DMA1_CSELR_CH1_USART4_RX_Msk (0xBU << DMA1_CSELR_CH1_USART4_RX_Pos) /*!< 0x0000000B */
  5457. #define DMA1_CSELR_CH1_USART4_RX DMA1_CSELR_CH1_USART4_RX_Msk /*!< Remap USART4 Rx on DMA1 channel 1 */
  5458. #define DMA1_CSELR_CH1_USART5_RX_Pos (2U)
  5459. #define DMA1_CSELR_CH1_USART5_RX_Msk (0x3U << DMA1_CSELR_CH1_USART5_RX_Pos) /*!< 0x0000000C */
  5460. #define DMA1_CSELR_CH1_USART5_RX DMA1_CSELR_CH1_USART5_RX_Msk /*!< Remap USART5 Rx on DMA1 channel 1 */
  5461. #define DMA1_CSELR_CH1_USART6_RX_Pos (0U)
  5462. #define DMA1_CSELR_CH1_USART6_RX_Msk (0xDU << DMA1_CSELR_CH1_USART6_RX_Pos) /*!< 0x0000000D */
  5463. #define DMA1_CSELR_CH1_USART6_RX DMA1_CSELR_CH1_USART6_RX_Msk /*!< Remap USART6 Rx on DMA1 channel 1 */
  5464. #define DMA1_CSELR_CH1_USART7_RX_Pos (1U)
  5465. #define DMA1_CSELR_CH1_USART7_RX_Msk (0x7U << DMA1_CSELR_CH1_USART7_RX_Pos) /*!< 0x0000000E */
  5466. #define DMA1_CSELR_CH1_USART7_RX DMA1_CSELR_CH1_USART7_RX_Msk /*!< Remap USART7 Rx on DMA1 channel 1 */
  5467. #define DMA1_CSELR_CH1_USART8_RX_Pos (0U)
  5468. #define DMA1_CSELR_CH1_USART8_RX_Msk (0xFU << DMA1_CSELR_CH1_USART8_RX_Pos) /*!< 0x0000000F */
  5469. #define DMA1_CSELR_CH1_USART8_RX DMA1_CSELR_CH1_USART8_RX_Msk /*!< Remap USART8 Rx on DMA1 channel 1 */
  5470. #define DMA1_CSELR_CH2_ADC_Pos (4U)
  5471. #define DMA1_CSELR_CH2_ADC_Msk (0x1U << DMA1_CSELR_CH2_ADC_Pos) /*!< 0x00000010 */
  5472. #define DMA1_CSELR_CH2_ADC DMA1_CSELR_CH2_ADC_Msk /*!< Remap ADC on DMA1 channel 2 */
  5473. #define DMA1_CSELR_CH2_I2C1_TX_Pos (5U)
  5474. #define DMA1_CSELR_CH2_I2C1_TX_Msk (0x1U << DMA1_CSELR_CH2_I2C1_TX_Pos) /*!< 0x00000020 */
  5475. #define DMA1_CSELR_CH2_I2C1_TX DMA1_CSELR_CH2_I2C1_TX_Msk /*!< Remap I2C1 Tx on DMA1 channel 2 */
  5476. #define DMA1_CSELR_CH2_SPI1_RX_Pos (4U)
  5477. #define DMA1_CSELR_CH2_SPI1_RX_Msk (0x3U << DMA1_CSELR_CH2_SPI1_RX_Pos) /*!< 0x00000030 */
  5478. #define DMA1_CSELR_CH2_SPI1_RX DMA1_CSELR_CH2_SPI1_RX_Msk /*!< Remap SPI1 Rx on DMA1 channel 2 */
  5479. #define DMA1_CSELR_CH2_TIM1_CH1_Pos (6U)
  5480. #define DMA1_CSELR_CH2_TIM1_CH1_Msk (0x1U << DMA1_CSELR_CH2_TIM1_CH1_Pos) /*!< 0x00000040 */
  5481. #define DMA1_CSELR_CH2_TIM1_CH1 DMA1_CSELR_CH2_TIM1_CH1_Msk /*!< Remap TIM1 channel 1 on DMA1 channel 2 */
  5482. #define DMA1_CSELR_CH2_TIM17_CH1_Pos (4U)
  5483. #define DMA1_CSELR_CH2_TIM17_CH1_Msk (0x7U << DMA1_CSELR_CH2_TIM17_CH1_Pos) /*!< 0x00000070 */
  5484. #define DMA1_CSELR_CH2_TIM17_CH1 DMA1_CSELR_CH2_TIM17_CH1_Msk /*!< Remap TIM17 channel 1 on DMA1 channel 2 */
  5485. #define DMA1_CSELR_CH2_TIM17_UP_Pos (4U)
  5486. #define DMA1_CSELR_CH2_TIM17_UP_Msk (0x7U << DMA1_CSELR_CH2_TIM17_UP_Pos) /*!< 0x00000070 */
  5487. #define DMA1_CSELR_CH2_TIM17_UP DMA1_CSELR_CH2_TIM17_UP_Msk /*!< Remap TIM17 up on DMA1 channel 2 */
  5488. #define DMA1_CSELR_CH2_USART1_TX_Pos (7U)
  5489. #define DMA1_CSELR_CH2_USART1_TX_Msk (0x1U << DMA1_CSELR_CH2_USART1_TX_Pos) /*!< 0x00000080 */
  5490. #define DMA1_CSELR_CH2_USART1_TX DMA1_CSELR_CH2_USART1_TX_Msk /*!< Remap USART1 Tx on DMA1 channel 2 */
  5491. #define DMA1_CSELR_CH2_USART2_TX_Pos (4U)
  5492. #define DMA1_CSELR_CH2_USART2_TX_Msk (0x9U << DMA1_CSELR_CH2_USART2_TX_Pos) /*!< 0x00000090 */
  5493. #define DMA1_CSELR_CH2_USART2_TX DMA1_CSELR_CH2_USART2_TX_Msk /*!< Remap USART2 Tx on DMA1 channel 2 */
  5494. #define DMA1_CSELR_CH2_USART3_TX_Pos (5U)
  5495. #define DMA1_CSELR_CH2_USART3_TX_Msk (0x5U << DMA1_CSELR_CH2_USART3_TX_Pos) /*!< 0x000000A0 */
  5496. #define DMA1_CSELR_CH2_USART3_TX DMA1_CSELR_CH2_USART3_TX_Msk /*!< Remap USART3 Tx on DMA1 channel 2 */
  5497. #define DMA1_CSELR_CH2_USART4_TX_Pos (4U)
  5498. #define DMA1_CSELR_CH2_USART4_TX_Msk (0xBU << DMA1_CSELR_CH2_USART4_TX_Pos) /*!< 0x000000B0 */
  5499. #define DMA1_CSELR_CH2_USART4_TX DMA1_CSELR_CH2_USART4_TX_Msk /*!< Remap USART4 Tx on DMA1 channel 2 */
  5500. #define DMA1_CSELR_CH2_USART5_TX_Pos (6U)
  5501. #define DMA1_CSELR_CH2_USART5_TX_Msk (0x3U << DMA1_CSELR_CH2_USART5_TX_Pos) /*!< 0x000000C0 */
  5502. #define DMA1_CSELR_CH2_USART5_TX DMA1_CSELR_CH2_USART5_TX_Msk /*!< Remap USART5 Tx on DMA1 channel 2 */
  5503. #define DMA1_CSELR_CH2_USART6_TX_Pos (4U)
  5504. #define DMA1_CSELR_CH2_USART6_TX_Msk (0xDU << DMA1_CSELR_CH2_USART6_TX_Pos) /*!< 0x000000D0 */
  5505. #define DMA1_CSELR_CH2_USART6_TX DMA1_CSELR_CH2_USART6_TX_Msk /*!< Remap USART6 Tx on DMA1 channel 2 */
  5506. #define DMA1_CSELR_CH2_USART7_TX_Pos (5U)
  5507. #define DMA1_CSELR_CH2_USART7_TX_Msk (0x7U << DMA1_CSELR_CH2_USART7_TX_Pos) /*!< 0x000000E0 */
  5508. #define DMA1_CSELR_CH2_USART7_TX DMA1_CSELR_CH2_USART7_TX_Msk /*!< Remap USART7 Tx on DMA1 channel 2 */
  5509. #define DMA1_CSELR_CH2_USART8_TX_Pos (4U)
  5510. #define DMA1_CSELR_CH2_USART8_TX_Msk (0xFU << DMA1_CSELR_CH2_USART8_TX_Pos) /*!< 0x000000F0 */
  5511. #define DMA1_CSELR_CH2_USART8_TX DMA1_CSELR_CH2_USART8_TX_Msk /*!< Remap USART8 Tx on DMA1 channel 2 */
  5512. #define DMA1_CSELR_CH3_TIM6_UP_Pos (8U)
  5513. #define DMA1_CSELR_CH3_TIM6_UP_Msk (0x1U << DMA1_CSELR_CH3_TIM6_UP_Pos) /*!< 0x00000100 */
  5514. #define DMA1_CSELR_CH3_TIM6_UP DMA1_CSELR_CH3_TIM6_UP_Msk /*!< Remap TIM6 up on DMA1 channel 3 */
  5515. #define DMA1_CSELR_CH3_DAC_CH1_Pos (8U)
  5516. #define DMA1_CSELR_CH3_DAC_CH1_Msk (0x1U << DMA1_CSELR_CH3_DAC_CH1_Pos) /*!< 0x00000100 */
  5517. #define DMA1_CSELR_CH3_DAC_CH1 DMA1_CSELR_CH3_DAC_CH1_Msk /*!< Remap DAC Channel 1on DMA1 channel 3 */
  5518. #define DMA1_CSELR_CH3_I2C1_RX_Pos (9U)
  5519. #define DMA1_CSELR_CH3_I2C1_RX_Msk (0x1U << DMA1_CSELR_CH3_I2C1_RX_Pos) /*!< 0x00000200 */
  5520. #define DMA1_CSELR_CH3_I2C1_RX DMA1_CSELR_CH3_I2C1_RX_Msk /*!< Remap I2C1 Rx on DMA1 channel 3 */
  5521. #define DMA1_CSELR_CH3_SPI1_TX_Pos (8U)
  5522. #define DMA1_CSELR_CH3_SPI1_TX_Msk (0x3U << DMA1_CSELR_CH3_SPI1_TX_Pos) /*!< 0x00000300 */
  5523. #define DMA1_CSELR_CH3_SPI1_TX DMA1_CSELR_CH3_SPI1_TX_Msk /*!< Remap SPI1 Tx on DMA1 channel 3 */
  5524. #define DMA1_CSELR_CH3_TIM1_CH2_Pos (10U)
  5525. #define DMA1_CSELR_CH3_TIM1_CH2_Msk (0x1U << DMA1_CSELR_CH3_TIM1_CH2_Pos) /*!< 0x00000400 */
  5526. #define DMA1_CSELR_CH3_TIM1_CH2 DMA1_CSELR_CH3_TIM1_CH2_Msk /*!< Remap TIM1 channel 2 on DMA1 channel 3 */
  5527. #define DMA1_CSELR_CH3_TIM2_CH2_Pos (8U)
  5528. #define DMA1_CSELR_CH3_TIM2_CH2_Msk (0x5U << DMA1_CSELR_CH3_TIM2_CH2_Pos) /*!< 0x00000500 */
  5529. #define DMA1_CSELR_CH3_TIM2_CH2 DMA1_CSELR_CH3_TIM2_CH2_Msk /*!< Remap TIM2 channel 2 on DMA1 channel 3 */
  5530. #define DMA1_CSELR_CH3_TIM16_CH1_Pos (8U)
  5531. #define DMA1_CSELR_CH3_TIM16_CH1_Msk (0x7U << DMA1_CSELR_CH3_TIM16_CH1_Pos) /*!< 0x00000700 */
  5532. #define DMA1_CSELR_CH3_TIM16_CH1 DMA1_CSELR_CH3_TIM16_CH1_Msk /*!< Remap TIM16 channel 1 on DMA1 channel 3 */
  5533. #define DMA1_CSELR_CH3_TIM16_UP_Pos (8U)
  5534. #define DMA1_CSELR_CH3_TIM16_UP_Msk (0x7U << DMA1_CSELR_CH3_TIM16_UP_Pos) /*!< 0x00000700 */
  5535. #define DMA1_CSELR_CH3_TIM16_UP DMA1_CSELR_CH3_TIM16_UP_Msk /*!< Remap TIM16 up on DMA1 channel 3 */
  5536. #define DMA1_CSELR_CH3_USART1_RX_Pos (11U)
  5537. #define DMA1_CSELR_CH3_USART1_RX_Msk (0x1U << DMA1_CSELR_CH3_USART1_RX_Pos) /*!< 0x00000800 */
  5538. #define DMA1_CSELR_CH3_USART1_RX DMA1_CSELR_CH3_USART1_RX_Msk /*!< Remap USART1 Rx on DMA1 channel 3 */
  5539. #define DMA1_CSELR_CH3_USART2_RX_Pos (8U)
  5540. #define DMA1_CSELR_CH3_USART2_RX_Msk (0x9U << DMA1_CSELR_CH3_USART2_RX_Pos) /*!< 0x00000900 */
  5541. #define DMA1_CSELR_CH3_USART2_RX DMA1_CSELR_CH3_USART2_RX_Msk /*!< Remap USART2 Rx on DMA1 channel 3 */
  5542. #define DMA1_CSELR_CH3_USART3_RX_Pos (9U)
  5543. #define DMA1_CSELR_CH3_USART3_RX_Msk (0x5U << DMA1_CSELR_CH3_USART3_RX_Pos) /*!< 0x00000A00 */
  5544. #define DMA1_CSELR_CH3_USART3_RX DMA1_CSELR_CH3_USART3_RX_Msk /*!< Remap USART3 Rx on DMA1 channel 3 */
  5545. #define DMA1_CSELR_CH3_USART4_RX_Pos (8U)
  5546. #define DMA1_CSELR_CH3_USART4_RX_Msk (0xBU << DMA1_CSELR_CH3_USART4_RX_Pos) /*!< 0x00000B00 */
  5547. #define DMA1_CSELR_CH3_USART4_RX DMA1_CSELR_CH3_USART4_RX_Msk /*!< Remap USART4 Rx on DMA1 channel 3 */
  5548. #define DMA1_CSELR_CH3_USART5_RX_Pos (10U)
  5549. #define DMA1_CSELR_CH3_USART5_RX_Msk (0x3U << DMA1_CSELR_CH3_USART5_RX_Pos) /*!< 0x00000C00 */
  5550. #define DMA1_CSELR_CH3_USART5_RX DMA1_CSELR_CH3_USART5_RX_Msk /*!< Remap USART5 Rx on DMA1 channel 3 */
  5551. #define DMA1_CSELR_CH3_USART6_RX_Pos (8U)
  5552. #define DMA1_CSELR_CH3_USART6_RX_Msk (0xDU << DMA1_CSELR_CH3_USART6_RX_Pos) /*!< 0x00000D00 */
  5553. #define DMA1_CSELR_CH3_USART6_RX DMA1_CSELR_CH3_USART6_RX_Msk /*!< Remap USART6 Rx on DMA1 channel 3 */
  5554. #define DMA1_CSELR_CH3_USART7_RX_Pos (9U)
  5555. #define DMA1_CSELR_CH3_USART7_RX_Msk (0x7U << DMA1_CSELR_CH3_USART7_RX_Pos) /*!< 0x00000E00 */
  5556. #define DMA1_CSELR_CH3_USART7_RX DMA1_CSELR_CH3_USART7_RX_Msk /*!< Remap USART7 Rx on DMA1 channel 3 */
  5557. #define DMA1_CSELR_CH3_USART8_RX_Pos (8U)
  5558. #define DMA1_CSELR_CH3_USART8_RX_Msk (0xFU << DMA1_CSELR_CH3_USART8_RX_Pos) /*!< 0x00000F00 */
  5559. #define DMA1_CSELR_CH3_USART8_RX DMA1_CSELR_CH3_USART8_RX_Msk /*!< Remap USART8 Rx on DMA1 channel 3 */
  5560. #define DMA1_CSELR_CH4_TIM7_UP_Pos (12U)
  5561. #define DMA1_CSELR_CH4_TIM7_UP_Msk (0x1U << DMA1_CSELR_CH4_TIM7_UP_Pos) /*!< 0x00001000 */
  5562. #define DMA1_CSELR_CH4_TIM7_UP DMA1_CSELR_CH4_TIM7_UP_Msk /*!< Remap TIM7 up on DMA1 channel 4 */
  5563. #define DMA1_CSELR_CH4_DAC_CH2_Pos (12U)
  5564. #define DMA1_CSELR_CH4_DAC_CH2_Msk (0x1U << DMA1_CSELR_CH4_DAC_CH2_Pos) /*!< 0x00001000 */
  5565. #define DMA1_CSELR_CH4_DAC_CH2 DMA1_CSELR_CH4_DAC_CH2_Msk /*!< Remap DAC Channel 2 on DMA1 channel 4 */
  5566. #define DMA1_CSELR_CH4_I2C2_TX_Pos (13U)
  5567. #define DMA1_CSELR_CH4_I2C2_TX_Msk (0x1U << DMA1_CSELR_CH4_I2C2_TX_Pos) /*!< 0x00002000 */
  5568. #define DMA1_CSELR_CH4_I2C2_TX DMA1_CSELR_CH4_I2C2_TX_Msk /*!< Remap I2C2 Tx on DMA1 channel 4 */
  5569. #define DMA1_CSELR_CH4_SPI2_RX_Pos (12U)
  5570. #define DMA1_CSELR_CH4_SPI2_RX_Msk (0x3U << DMA1_CSELR_CH4_SPI2_RX_Pos) /*!< 0x00003000 */
  5571. #define DMA1_CSELR_CH4_SPI2_RX DMA1_CSELR_CH4_SPI2_RX_Msk /*!< Remap SPI2 Rx on DMA1 channel 4 */
  5572. #define DMA1_CSELR_CH4_TIM2_CH4_Pos (12U)
  5573. #define DMA1_CSELR_CH4_TIM2_CH4_Msk (0x5U << DMA1_CSELR_CH4_TIM2_CH4_Pos) /*!< 0x00005000 */
  5574. #define DMA1_CSELR_CH4_TIM2_CH4 DMA1_CSELR_CH4_TIM2_CH4_Msk /*!< Remap TIM2 channel 4 on DMA1 channel 4 */
  5575. #define DMA1_CSELR_CH4_TIM3_CH1_Pos (13U)
  5576. #define DMA1_CSELR_CH4_TIM3_CH1_Msk (0x3U << DMA1_CSELR_CH4_TIM3_CH1_Pos) /*!< 0x00006000 */
  5577. #define DMA1_CSELR_CH4_TIM3_CH1 DMA1_CSELR_CH4_TIM3_CH1_Msk /*!< Remap TIM3 channel 1 on DMA1 channel 4 */
  5578. #define DMA1_CSELR_CH4_TIM3_TRIG_Pos (13U)
  5579. #define DMA1_CSELR_CH4_TIM3_TRIG_Msk (0x3U << DMA1_CSELR_CH4_TIM3_TRIG_Pos) /*!< 0x00006000 */
  5580. #define DMA1_CSELR_CH4_TIM3_TRIG DMA1_CSELR_CH4_TIM3_TRIG_Msk /*!< Remap TIM3 Trig on DMA1 channel 4 */
  5581. #define DMA1_CSELR_CH4_TIM16_CH1_Pos (12U)
  5582. #define DMA1_CSELR_CH4_TIM16_CH1_Msk (0x7U << DMA1_CSELR_CH4_TIM16_CH1_Pos) /*!< 0x00007000 */
  5583. #define DMA1_CSELR_CH4_TIM16_CH1 DMA1_CSELR_CH4_TIM16_CH1_Msk /*!< Remap TIM16 channel 1 on DMA1 channel 4 */
  5584. #define DMA1_CSELR_CH4_TIM16_UP_Pos (12U)
  5585. #define DMA1_CSELR_CH4_TIM16_UP_Msk (0x7U << DMA1_CSELR_CH4_TIM16_UP_Pos) /*!< 0x00007000 */
  5586. #define DMA1_CSELR_CH4_TIM16_UP DMA1_CSELR_CH4_TIM16_UP_Msk /*!< Remap TIM16 up on DMA1 channel 4 */
  5587. #define DMA1_CSELR_CH4_USART1_TX_Pos (15U)
  5588. #define DMA1_CSELR_CH4_USART1_TX_Msk (0x1U << DMA1_CSELR_CH4_USART1_TX_Pos) /*!< 0x00008000 */
  5589. #define DMA1_CSELR_CH4_USART1_TX DMA1_CSELR_CH4_USART1_TX_Msk /*!< Remap USART1 Tx on DMA1 channel 4 */
  5590. #define DMA1_CSELR_CH4_USART2_TX_Pos (12U)
  5591. #define DMA1_CSELR_CH4_USART2_TX_Msk (0x9U << DMA1_CSELR_CH4_USART2_TX_Pos) /*!< 0x00009000 */
  5592. #define DMA1_CSELR_CH4_USART2_TX DMA1_CSELR_CH4_USART2_TX_Msk /*!< Remap USART2 Tx on DMA1 channel 4 */
  5593. #define DMA1_CSELR_CH4_USART3_TX_Pos (13U)
  5594. #define DMA1_CSELR_CH4_USART3_TX_Msk (0x5U << DMA1_CSELR_CH4_USART3_TX_Pos) /*!< 0x0000A000 */
  5595. #define DMA1_CSELR_CH4_USART3_TX DMA1_CSELR_CH4_USART3_TX_Msk /*!< Remap USART3 Tx on DMA1 channel 4 */
  5596. #define DMA1_CSELR_CH4_USART4_TX_Pos (12U)
  5597. #define DMA1_CSELR_CH4_USART4_TX_Msk (0xBU << DMA1_CSELR_CH4_USART4_TX_Pos) /*!< 0x0000B000 */
  5598. #define DMA1_CSELR_CH4_USART4_TX DMA1_CSELR_CH4_USART4_TX_Msk /*!< Remap USART4 Tx on DMA1 channel 4 */
  5599. #define DMA1_CSELR_CH4_USART5_TX_Pos (14U)
  5600. #define DMA1_CSELR_CH4_USART5_TX_Msk (0x3U << DMA1_CSELR_CH4_USART5_TX_Pos) /*!< 0x0000C000 */
  5601. #define DMA1_CSELR_CH4_USART5_TX DMA1_CSELR_CH4_USART5_TX_Msk /*!< Remap USART5 Tx on DMA1 channel 4 */
  5602. #define DMA1_CSELR_CH4_USART6_TX_Pos (12U)
  5603. #define DMA1_CSELR_CH4_USART6_TX_Msk (0xDU << DMA1_CSELR_CH4_USART6_TX_Pos) /*!< 0x0000D000 */
  5604. #define DMA1_CSELR_CH4_USART6_TX DMA1_CSELR_CH4_USART6_TX_Msk /*!< Remap USART6 Tx on DMA1 channel 4 */
  5605. #define DMA1_CSELR_CH4_USART7_TX_Pos (13U)
  5606. #define DMA1_CSELR_CH4_USART7_TX_Msk (0x7U << DMA1_CSELR_CH4_USART7_TX_Pos) /*!< 0x0000E000 */
  5607. #define DMA1_CSELR_CH4_USART7_TX DMA1_CSELR_CH4_USART7_TX_Msk /*!< Remap USART7 Tx on DMA1 channel 4 */
  5608. #define DMA1_CSELR_CH4_USART8_TX_Pos (12U)
  5609. #define DMA1_CSELR_CH4_USART8_TX_Msk (0xFU << DMA1_CSELR_CH4_USART8_TX_Pos) /*!< 0x0000F000 */
  5610. #define DMA1_CSELR_CH4_USART8_TX DMA1_CSELR_CH4_USART8_TX_Msk /*!< Remap USART8 Tx on DMA1 channel 4 */
  5611. #define DMA1_CSELR_CH5_I2C2_RX_Pos (17U)
  5612. #define DMA1_CSELR_CH5_I2C2_RX_Msk (0x1U << DMA1_CSELR_CH5_I2C2_RX_Pos) /*!< 0x00020000 */
  5613. #define DMA1_CSELR_CH5_I2C2_RX DMA1_CSELR_CH5_I2C2_RX_Msk /*!< Remap I2C2 Rx on DMA1 channel 5 */
  5614. #define DMA1_CSELR_CH5_SPI2_TX_Pos (16U)
  5615. #define DMA1_CSELR_CH5_SPI2_TX_Msk (0x3U << DMA1_CSELR_CH5_SPI2_TX_Pos) /*!< 0x00030000 */
  5616. #define DMA1_CSELR_CH5_SPI2_TX DMA1_CSELR_CH5_SPI2_TX_Msk /*!< Remap SPI1 Tx on DMA1 channel 5 */
  5617. #define DMA1_CSELR_CH5_TIM1_CH3_Pos (18U)
  5618. #define DMA1_CSELR_CH5_TIM1_CH3_Msk (0x1U << DMA1_CSELR_CH5_TIM1_CH3_Pos) /*!< 0x00040000 */
  5619. #define DMA1_CSELR_CH5_TIM1_CH3 DMA1_CSELR_CH5_TIM1_CH3_Msk /*!< Remap TIM1 channel 3 on DMA1 channel 5 */
  5620. #define DMA1_CSELR_CH5_USART1_RX_Pos (19U)
  5621. #define DMA1_CSELR_CH5_USART1_RX_Msk (0x1U << DMA1_CSELR_CH5_USART1_RX_Pos) /*!< 0x00080000 */
  5622. #define DMA1_CSELR_CH5_USART1_RX DMA1_CSELR_CH5_USART1_RX_Msk /*!< Remap USART1 Rx on DMA1 channel 5 */
  5623. #define DMA1_CSELR_CH5_USART2_RX_Pos (16U)
  5624. #define DMA1_CSELR_CH5_USART2_RX_Msk (0x9U << DMA1_CSELR_CH5_USART2_RX_Pos) /*!< 0x00090000 */
  5625. #define DMA1_CSELR_CH5_USART2_RX DMA1_CSELR_CH5_USART2_RX_Msk /*!< Remap USART2 Rx on DMA1 channel 5 */
  5626. #define DMA1_CSELR_CH5_USART3_RX_Pos (17U)
  5627. #define DMA1_CSELR_CH5_USART3_RX_Msk (0x5U << DMA1_CSELR_CH5_USART3_RX_Pos) /*!< 0x000A0000 */
  5628. #define DMA1_CSELR_CH5_USART3_RX DMA1_CSELR_CH5_USART3_RX_Msk /*!< Remap USART3 Rx on DMA1 channel 5 */
  5629. #define DMA1_CSELR_CH5_USART4_RX_Pos (16U)
  5630. #define DMA1_CSELR_CH5_USART4_RX_Msk (0xBU << DMA1_CSELR_CH5_USART4_RX_Pos) /*!< 0x000B0000 */
  5631. #define DMA1_CSELR_CH5_USART4_RX DMA1_CSELR_CH5_USART4_RX_Msk /*!< Remap USART4 Rx on DMA1 channel 5 */
  5632. #define DMA1_CSELR_CH5_USART5_RX_Pos (18U)
  5633. #define DMA1_CSELR_CH5_USART5_RX_Msk (0x3U << DMA1_CSELR_CH5_USART5_RX_Pos) /*!< 0x000C0000 */
  5634. #define DMA1_CSELR_CH5_USART5_RX DMA1_CSELR_CH5_USART5_RX_Msk /*!< Remap USART5 Rx on DMA1 channel 5 */
  5635. #define DMA1_CSELR_CH5_USART6_RX_Pos (16U)
  5636. #define DMA1_CSELR_CH5_USART6_RX_Msk (0xDU << DMA1_CSELR_CH5_USART6_RX_Pos) /*!< 0x000D0000 */
  5637. #define DMA1_CSELR_CH5_USART6_RX DMA1_CSELR_CH5_USART6_RX_Msk /*!< Remap USART6 Rx on DMA1 channel 5 */
  5638. #define DMA1_CSELR_CH5_USART7_RX_Pos (17U)
  5639. #define DMA1_CSELR_CH5_USART7_RX_Msk (0x7U << DMA1_CSELR_CH5_USART7_RX_Pos) /*!< 0x000E0000 */
  5640. #define DMA1_CSELR_CH5_USART7_RX DMA1_CSELR_CH5_USART7_RX_Msk /*!< Remap USART7 Rx on DMA1 channel 5 */
  5641. #define DMA1_CSELR_CH5_USART8_RX_Pos (16U)
  5642. #define DMA1_CSELR_CH5_USART8_RX_Msk (0xFU << DMA1_CSELR_CH5_USART8_RX_Pos) /*!< 0x000F0000 */
  5643. #define DMA1_CSELR_CH5_USART8_RX DMA1_CSELR_CH5_USART8_RX_Msk /*!< Remap USART8 Rx on DMA1 channel 5 */
  5644. #define DMA1_CSELR_CH6_I2C1_TX_Pos (21U)
  5645. #define DMA1_CSELR_CH6_I2C1_TX_Msk (0x1U << DMA1_CSELR_CH6_I2C1_TX_Pos) /*!< 0x00200000 */
  5646. #define DMA1_CSELR_CH6_I2C1_TX DMA1_CSELR_CH6_I2C1_TX_Msk /*!< Remap I2C1 Tx on DMA1 channel 6 */
  5647. #define DMA1_CSELR_CH6_SPI2_RX_Pos (20U)
  5648. #define DMA1_CSELR_CH6_SPI2_RX_Msk (0x3U << DMA1_CSELR_CH6_SPI2_RX_Pos) /*!< 0x00300000 */
  5649. #define DMA1_CSELR_CH6_SPI2_RX DMA1_CSELR_CH6_SPI2_RX_Msk /*!< Remap SPI2 Rx on DMA1 channel 6 */
  5650. #define DMA1_CSELR_CH6_TIM1_CH1_Pos (22U)
  5651. #define DMA1_CSELR_CH6_TIM1_CH1_Msk (0x1U << DMA1_CSELR_CH6_TIM1_CH1_Pos) /*!< 0x00400000 */
  5652. #define DMA1_CSELR_CH6_TIM1_CH1 DMA1_CSELR_CH6_TIM1_CH1_Msk /*!< Remap TIM1 channel 1 on DMA1 channel 6 */
  5653. #define DMA1_CSELR_CH6_TIM1_CH2_Pos (22U)
  5654. #define DMA1_CSELR_CH6_TIM1_CH2_Msk (0x1U << DMA1_CSELR_CH6_TIM1_CH2_Pos) /*!< 0x00400000 */
  5655. #define DMA1_CSELR_CH6_TIM1_CH2 DMA1_CSELR_CH6_TIM1_CH2_Msk /*!< Remap TIM1 channel 2 on DMA1 channel 6 */
  5656. #define DMA1_CSELR_CH6_TIM1_CH3_Pos (22U)
  5657. #define DMA1_CSELR_CH6_TIM1_CH3_Msk (0x1U << DMA1_CSELR_CH6_TIM1_CH3_Pos) /*!< 0x00400000 */
  5658. #define DMA1_CSELR_CH6_TIM1_CH3 DMA1_CSELR_CH6_TIM1_CH3_Msk /*!< Remap TIM1 channel 3 on DMA1 channel 6 */
  5659. #define DMA1_CSELR_CH6_TIM3_CH1_Pos (21U)
  5660. #define DMA1_CSELR_CH6_TIM3_CH1_Msk (0x3U << DMA1_CSELR_CH6_TIM3_CH1_Pos) /*!< 0x00600000 */
  5661. #define DMA1_CSELR_CH6_TIM3_CH1 DMA1_CSELR_CH6_TIM3_CH1_Msk /*!< Remap TIM3 channel 1 on DMA1 channel 6 */
  5662. #define DMA1_CSELR_CH6_TIM3_TRIG_Pos (21U)
  5663. #define DMA1_CSELR_CH6_TIM3_TRIG_Msk (0x3U << DMA1_CSELR_CH6_TIM3_TRIG_Pos) /*!< 0x00600000 */
  5664. #define DMA1_CSELR_CH6_TIM3_TRIG DMA1_CSELR_CH6_TIM3_TRIG_Msk /*!< Remap TIM3 Trig on DMA1 channel 6 */
  5665. #define DMA1_CSELR_CH6_TIM16_CH1_Pos (20U)
  5666. #define DMA1_CSELR_CH6_TIM16_CH1_Msk (0x7U << DMA1_CSELR_CH6_TIM16_CH1_Pos) /*!< 0x00700000 */
  5667. #define DMA1_CSELR_CH6_TIM16_CH1 DMA1_CSELR_CH6_TIM16_CH1_Msk /*!< Remap TIM16 channel 1 on DMA1 channel 6 */
  5668. #define DMA1_CSELR_CH6_TIM16_UP_Pos (20U)
  5669. #define DMA1_CSELR_CH6_TIM16_UP_Msk (0x7U << DMA1_CSELR_CH6_TIM16_UP_Pos) /*!< 0x00700000 */
  5670. #define DMA1_CSELR_CH6_TIM16_UP DMA1_CSELR_CH6_TIM16_UP_Msk /*!< Remap TIM16 up on DMA1 channel 6 */
  5671. #define DMA1_CSELR_CH6_USART1_RX_Pos (23U)
  5672. #define DMA1_CSELR_CH6_USART1_RX_Msk (0x1U << DMA1_CSELR_CH6_USART1_RX_Pos) /*!< 0x00800000 */
  5673. #define DMA1_CSELR_CH6_USART1_RX DMA1_CSELR_CH6_USART1_RX_Msk /*!< Remap USART1 Rx on DMA1 channel 6 */
  5674. #define DMA1_CSELR_CH6_USART2_RX_Pos (20U)
  5675. #define DMA1_CSELR_CH6_USART2_RX_Msk (0x9U << DMA1_CSELR_CH6_USART2_RX_Pos) /*!< 0x00900000 */
  5676. #define DMA1_CSELR_CH6_USART2_RX DMA1_CSELR_CH6_USART2_RX_Msk /*!< Remap USART2 Rx on DMA1 channel 6 */
  5677. #define DMA1_CSELR_CH6_USART3_RX_Pos (21U)
  5678. #define DMA1_CSELR_CH6_USART3_RX_Msk (0x5U << DMA1_CSELR_CH6_USART3_RX_Pos) /*!< 0x00A00000 */
  5679. #define DMA1_CSELR_CH6_USART3_RX DMA1_CSELR_CH6_USART3_RX_Msk /*!< Remap USART3 Rx on DMA1 channel 6 */
  5680. #define DMA1_CSELR_CH6_USART4_RX_Pos (20U)
  5681. #define DMA1_CSELR_CH6_USART4_RX_Msk (0xBU << DMA1_CSELR_CH6_USART4_RX_Pos) /*!< 0x00B00000 */
  5682. #define DMA1_CSELR_CH6_USART4_RX DMA1_CSELR_CH6_USART4_RX_Msk /*!< Remap USART4 Rx on DMA1 channel 6 */
  5683. #define DMA1_CSELR_CH6_USART5_RX_Pos (22U)
  5684. #define DMA1_CSELR_CH6_USART5_RX_Msk (0x3U << DMA1_CSELR_CH6_USART5_RX_Pos) /*!< 0x00C00000 */
  5685. #define DMA1_CSELR_CH6_USART5_RX DMA1_CSELR_CH6_USART5_RX_Msk /*!< Remap USART5 Rx on DMA1 channel 6 */
  5686. #define DMA1_CSELR_CH6_USART6_RX_Pos (20U)
  5687. #define DMA1_CSELR_CH6_USART6_RX_Msk (0xDU << DMA1_CSELR_CH6_USART6_RX_Pos) /*!< 0x00D00000 */
  5688. #define DMA1_CSELR_CH6_USART6_RX DMA1_CSELR_CH6_USART6_RX_Msk /*!< Remap USART6 Rx on DMA1 channel 6 */
  5689. #define DMA1_CSELR_CH6_USART7_RX_Pos (21U)
  5690. #define DMA1_CSELR_CH6_USART7_RX_Msk (0x7U << DMA1_CSELR_CH6_USART7_RX_Pos) /*!< 0x00E00000 */
  5691. #define DMA1_CSELR_CH6_USART7_RX DMA1_CSELR_CH6_USART7_RX_Msk /*!< Remap USART7 Rx on DMA1 channel 6 */
  5692. #define DMA1_CSELR_CH6_USART8_RX_Pos (20U)
  5693. #define DMA1_CSELR_CH6_USART8_RX_Msk (0xFU << DMA1_CSELR_CH6_USART8_RX_Pos) /*!< 0x00F00000 */
  5694. #define DMA1_CSELR_CH6_USART8_RX DMA1_CSELR_CH6_USART8_RX_Msk /*!< Remap USART8 Rx on DMA1 channel 6 */
  5695. #define DMA1_CSELR_CH7_I2C1_RX_Pos (25U)
  5696. #define DMA1_CSELR_CH7_I2C1_RX_Msk (0x1U << DMA1_CSELR_CH7_I2C1_RX_Pos) /*!< 0x02000000 */
  5697. #define DMA1_CSELR_CH7_I2C1_RX DMA1_CSELR_CH7_I2C1_RX_Msk /*!< Remap I2C1 Rx on DMA1 channel 7 */
  5698. #define DMA1_CSELR_CH7_SPI2_TX_Pos (24U)
  5699. #define DMA1_CSELR_CH7_SPI2_TX_Msk (0x3U << DMA1_CSELR_CH7_SPI2_TX_Pos) /*!< 0x03000000 */
  5700. #define DMA1_CSELR_CH7_SPI2_TX DMA1_CSELR_CH7_SPI2_TX_Msk /*!< Remap SPI2 Tx on DMA1 channel 7 */
  5701. #define DMA1_CSELR_CH7_TIM2_CH2_Pos (24U)
  5702. #define DMA1_CSELR_CH7_TIM2_CH2_Msk (0x5U << DMA1_CSELR_CH7_TIM2_CH2_Pos) /*!< 0x05000000 */
  5703. #define DMA1_CSELR_CH7_TIM2_CH2 DMA1_CSELR_CH7_TIM2_CH2_Msk /*!< Remap TIM2 channel 2 on DMA1 channel 7 */
  5704. #define DMA1_CSELR_CH7_TIM2_CH4_Pos (24U)
  5705. #define DMA1_CSELR_CH7_TIM2_CH4_Msk (0x5U << DMA1_CSELR_CH7_TIM2_CH4_Pos) /*!< 0x05000000 */
  5706. #define DMA1_CSELR_CH7_TIM2_CH4 DMA1_CSELR_CH7_TIM2_CH4_Msk /*!< Remap TIM2 channel 4 on DMA1 channel 7 */
  5707. #define DMA1_CSELR_CH7_TIM17_CH1_Pos (24U)
  5708. #define DMA1_CSELR_CH7_TIM17_CH1_Msk (0x7U << DMA1_CSELR_CH7_TIM17_CH1_Pos) /*!< 0x07000000 */
  5709. #define DMA1_CSELR_CH7_TIM17_CH1 DMA1_CSELR_CH7_TIM17_CH1_Msk /*!< Remap TIM17 channel 1 on DMA1 channel 7 */
  5710. #define DMA1_CSELR_CH7_TIM17_UP_Pos (24U)
  5711. #define DMA1_CSELR_CH7_TIM17_UP_Msk (0x7U << DMA1_CSELR_CH7_TIM17_UP_Pos) /*!< 0x07000000 */
  5712. #define DMA1_CSELR_CH7_TIM17_UP DMA1_CSELR_CH7_TIM17_UP_Msk /*!< Remap TIM17 up on DMA1 channel 7 */
  5713. #define DMA1_CSELR_CH7_USART1_TX_Pos (27U)
  5714. #define DMA1_CSELR_CH7_USART1_TX_Msk (0x1U << DMA1_CSELR_CH7_USART1_TX_Pos) /*!< 0x08000000 */
  5715. #define DMA1_CSELR_CH7_USART1_TX DMA1_CSELR_CH7_USART1_TX_Msk /*!< Remap USART1 Tx on DMA1 channel 7 */
  5716. #define DMA1_CSELR_CH7_USART2_TX_Pos (24U)
  5717. #define DMA1_CSELR_CH7_USART2_TX_Msk (0x9U << DMA1_CSELR_CH7_USART2_TX_Pos) /*!< 0x09000000 */
  5718. #define DMA1_CSELR_CH7_USART2_TX DMA1_CSELR_CH7_USART2_TX_Msk /*!< Remap USART2 Tx on DMA1 channel 7 */
  5719. #define DMA1_CSELR_CH7_USART3_TX_Pos (25U)
  5720. #define DMA1_CSELR_CH7_USART3_TX_Msk (0x5U << DMA1_CSELR_CH7_USART3_TX_Pos) /*!< 0x0A000000 */
  5721. #define DMA1_CSELR_CH7_USART3_TX DMA1_CSELR_CH7_USART3_TX_Msk /*!< Remap USART3 Tx on DMA1 channel 7 */
  5722. #define DMA1_CSELR_CH7_USART4_TX_Pos (24U)
  5723. #define DMA1_CSELR_CH7_USART4_TX_Msk (0xBU << DMA1_CSELR_CH7_USART4_TX_Pos) /*!< 0x0B000000 */
  5724. #define DMA1_CSELR_CH7_USART4_TX DMA1_CSELR_CH7_USART4_TX_Msk /*!< Remap USART4 Tx on DMA1 channel 7 */
  5725. #define DMA1_CSELR_CH7_USART5_TX_Pos (26U)
  5726. #define DMA1_CSELR_CH7_USART5_TX_Msk (0x3U << DMA1_CSELR_CH7_USART5_TX_Pos) /*!< 0x0C000000 */
  5727. #define DMA1_CSELR_CH7_USART5_TX DMA1_CSELR_CH7_USART5_TX_Msk /*!< Remap USART5 Tx on DMA1 channel 7 */
  5728. #define DMA1_CSELR_CH7_USART6_TX_Pos (24U)
  5729. #define DMA1_CSELR_CH7_USART6_TX_Msk (0xDU << DMA1_CSELR_CH7_USART6_TX_Pos) /*!< 0x0D000000 */
  5730. #define DMA1_CSELR_CH7_USART6_TX DMA1_CSELR_CH7_USART6_TX_Msk /*!< Remap USART6 Tx on DMA1 channel 7 */
  5731. #define DMA1_CSELR_CH7_USART7_TX_Pos (25U)
  5732. #define DMA1_CSELR_CH7_USART7_TX_Msk (0x7U << DMA1_CSELR_CH7_USART7_TX_Pos) /*!< 0x0E000000 */
  5733. #define DMA1_CSELR_CH7_USART7_TX DMA1_CSELR_CH7_USART7_TX_Msk /*!< Remap USART7 Tx on DMA1 channel 7 */
  5734. #define DMA1_CSELR_CH7_USART8_TX_Pos (24U)
  5735. #define DMA1_CSELR_CH7_USART8_TX_Msk (0xFU << DMA1_CSELR_CH7_USART8_TX_Pos) /*!< 0x0F000000 */
  5736. #define DMA1_CSELR_CH7_USART8_TX DMA1_CSELR_CH7_USART8_TX_Msk /*!< Remap USART8 Tx on DMA1 channel 7 */
  5737. /****************** Bit definition for DMA2_CSELR register ********************/
  5738. #define DMA2_CSELR_DEFAULT (0x00000000U) /*!< Default remap position for DMA2 */
  5739. #define DMA2_CSELR_CH1_I2C2_TX_Pos (1U)
  5740. #define DMA2_CSELR_CH1_I2C2_TX_Msk (0x1U << DMA2_CSELR_CH1_I2C2_TX_Pos) /*!< 0x00000002 */
  5741. #define DMA2_CSELR_CH1_I2C2_TX DMA2_CSELR_CH1_I2C2_TX_Msk /*!< Remap I2C2 TX on DMA2 channel 1 */
  5742. #define DMA2_CSELR_CH1_USART1_TX_Pos (3U)
  5743. #define DMA2_CSELR_CH1_USART1_TX_Msk (0x1U << DMA2_CSELR_CH1_USART1_TX_Pos) /*!< 0x00000008 */
  5744. #define DMA2_CSELR_CH1_USART1_TX DMA2_CSELR_CH1_USART1_TX_Msk /*!< Remap USART1 Tx on DMA2 channel 1 */
  5745. #define DMA2_CSELR_CH1_USART2_TX_Pos (0U)
  5746. #define DMA2_CSELR_CH1_USART2_TX_Msk (0x9U << DMA2_CSELR_CH1_USART2_TX_Pos) /*!< 0x00000009 */
  5747. #define DMA2_CSELR_CH1_USART2_TX DMA2_CSELR_CH1_USART2_TX_Msk /*!< Remap USART2 Tx on DMA2 channel 1 */
  5748. #define DMA2_CSELR_CH1_USART3_TX_Pos (1U)
  5749. #define DMA2_CSELR_CH1_USART3_TX_Msk (0x5U << DMA2_CSELR_CH1_USART3_TX_Pos) /*!< 0x0000000A */
  5750. #define DMA2_CSELR_CH1_USART3_TX DMA2_CSELR_CH1_USART3_TX_Msk /*!< Remap USART3 Tx on DMA2 channel 1 */
  5751. #define DMA2_CSELR_CH1_USART4_TX_Pos (0U)
  5752. #define DMA2_CSELR_CH1_USART4_TX_Msk (0xBU << DMA2_CSELR_CH1_USART4_TX_Pos) /*!< 0x0000000B */
  5753. #define DMA2_CSELR_CH1_USART4_TX DMA2_CSELR_CH1_USART4_TX_Msk /*!< Remap USART4 Tx on DMA2 channel 1 */
  5754. #define DMA2_CSELR_CH1_USART5_TX_Pos (2U)
  5755. #define DMA2_CSELR_CH1_USART5_TX_Msk (0x3U << DMA2_CSELR_CH1_USART5_TX_Pos) /*!< 0x0000000C */
  5756. #define DMA2_CSELR_CH1_USART5_TX DMA2_CSELR_CH1_USART5_TX_Msk /*!< Remap USART5 Tx on DMA2 channel 1 */
  5757. #define DMA2_CSELR_CH1_USART6_TX_Pos (0U)
  5758. #define DMA2_CSELR_CH1_USART6_TX_Msk (0xDU << DMA2_CSELR_CH1_USART6_TX_Pos) /*!< 0x0000000D */
  5759. #define DMA2_CSELR_CH1_USART6_TX DMA2_CSELR_CH1_USART6_TX_Msk /*!< Remap USART6 Tx on DMA2 channel 1 */
  5760. #define DMA2_CSELR_CH1_USART7_TX_Pos (1U)
  5761. #define DMA2_CSELR_CH1_USART7_TX_Msk (0x7U << DMA2_CSELR_CH1_USART7_TX_Pos) /*!< 0x0000000E */
  5762. #define DMA2_CSELR_CH1_USART7_TX DMA2_CSELR_CH1_USART7_TX_Msk /*!< Remap USART7 Tx on DMA2 channel 1 */
  5763. #define DMA2_CSELR_CH1_USART8_TX_Pos (0U)
  5764. #define DMA2_CSELR_CH1_USART8_TX_Msk (0xFU << DMA2_CSELR_CH1_USART8_TX_Pos) /*!< 0x0000000F */
  5765. #define DMA2_CSELR_CH1_USART8_TX DMA2_CSELR_CH1_USART8_TX_Msk /*!< Remap USART8 Tx on DMA2 channel 1 */
  5766. #define DMA2_CSELR_CH2_I2C2_RX_Pos (5U)
  5767. #define DMA2_CSELR_CH2_I2C2_RX_Msk (0x1U << DMA2_CSELR_CH2_I2C2_RX_Pos) /*!< 0x00000020 */
  5768. #define DMA2_CSELR_CH2_I2C2_RX DMA2_CSELR_CH2_I2C2_RX_Msk /*!< Remap I2C2 Rx on DMA2 channel 2 */
  5769. #define DMA2_CSELR_CH2_USART1_RX_Pos (7U)
  5770. #define DMA2_CSELR_CH2_USART1_RX_Msk (0x1U << DMA2_CSELR_CH2_USART1_RX_Pos) /*!< 0x00000080 */
  5771. #define DMA2_CSELR_CH2_USART1_RX DMA2_CSELR_CH2_USART1_RX_Msk /*!< Remap USART1 Rx on DMA2 channel 2 */
  5772. #define DMA2_CSELR_CH2_USART2_RX_Pos (4U)
  5773. #define DMA2_CSELR_CH2_USART2_RX_Msk (0x9U << DMA2_CSELR_CH2_USART2_RX_Pos) /*!< 0x00000090 */
  5774. #define DMA2_CSELR_CH2_USART2_RX DMA2_CSELR_CH2_USART2_RX_Msk /*!< Remap USART2 Rx on DMA2 channel 2 */
  5775. #define DMA2_CSELR_CH2_USART3_RX_Pos (5U)
  5776. #define DMA2_CSELR_CH2_USART3_RX_Msk (0x5U << DMA2_CSELR_CH2_USART3_RX_Pos) /*!< 0x000000A0 */
  5777. #define DMA2_CSELR_CH2_USART3_RX DMA2_CSELR_CH2_USART3_RX_Msk /*!< Remap USART3 Rx on DMA2 channel 2 */
  5778. #define DMA2_CSELR_CH2_USART4_RX_Pos (4U)
  5779. #define DMA2_CSELR_CH2_USART4_RX_Msk (0xBU << DMA2_CSELR_CH2_USART4_RX_Pos) /*!< 0x000000B0 */
  5780. #define DMA2_CSELR_CH2_USART4_RX DMA2_CSELR_CH2_USART4_RX_Msk /*!< Remap USART4 Rx on DMA2 channel 2 */
  5781. #define DMA2_CSELR_CH2_USART5_RX_Pos (6U)
  5782. #define DMA2_CSELR_CH2_USART5_RX_Msk (0x3U << DMA2_CSELR_CH2_USART5_RX_Pos) /*!< 0x000000C0 */
  5783. #define DMA2_CSELR_CH2_USART5_RX DMA2_CSELR_CH2_USART5_RX_Msk /*!< Remap USART5 Rx on DMA2 channel 2 */
  5784. #define DMA2_CSELR_CH2_USART6_RX_Pos (4U)
  5785. #define DMA2_CSELR_CH2_USART6_RX_Msk (0xDU << DMA2_CSELR_CH2_USART6_RX_Pos) /*!< 0x000000D0 */
  5786. #define DMA2_CSELR_CH2_USART6_RX DMA2_CSELR_CH2_USART6_RX_Msk /*!< Remap USART6 Rx on DMA2 channel 2 */
  5787. #define DMA2_CSELR_CH2_USART7_RX_Pos (5U)
  5788. #define DMA2_CSELR_CH2_USART7_RX_Msk (0x7U << DMA2_CSELR_CH2_USART7_RX_Pos) /*!< 0x000000E0 */
  5789. #define DMA2_CSELR_CH2_USART7_RX DMA2_CSELR_CH2_USART7_RX_Msk /*!< Remap USART7 Rx on DMA2 channel 2 */
  5790. #define DMA2_CSELR_CH2_USART8_RX_Pos (4U)
  5791. #define DMA2_CSELR_CH2_USART8_RX_Msk (0xFU << DMA2_CSELR_CH2_USART8_RX_Pos) /*!< 0x000000F0 */
  5792. #define DMA2_CSELR_CH2_USART8_RX DMA2_CSELR_CH2_USART8_RX_Msk /*!< Remap USART8 Rx on DMA2 channel 2 */
  5793. #define DMA2_CSELR_CH3_TIM6_UP_Pos (8U)
  5794. #define DMA2_CSELR_CH3_TIM6_UP_Msk (0x1U << DMA2_CSELR_CH3_TIM6_UP_Pos) /*!< 0x00000100 */
  5795. #define DMA2_CSELR_CH3_TIM6_UP DMA2_CSELR_CH3_TIM6_UP_Msk /*!< Remap TIM6 up on DMA2 channel 3 */
  5796. #define DMA2_CSELR_CH3_DAC_CH1_Pos (8U)
  5797. #define DMA2_CSELR_CH3_DAC_CH1_Msk (0x1U << DMA2_CSELR_CH3_DAC_CH1_Pos) /*!< 0x00000100 */
  5798. #define DMA2_CSELR_CH3_DAC_CH1 DMA2_CSELR_CH3_DAC_CH1_Msk /*!< Remap DAC channel 1 on DMA2 channel 3 */
  5799. #define DMA2_CSELR_CH3_SPI1_RX_Pos (8U)
  5800. #define DMA2_CSELR_CH3_SPI1_RX_Msk (0x3U << DMA2_CSELR_CH3_SPI1_RX_Pos) /*!< 0x00000300 */
  5801. #define DMA2_CSELR_CH3_SPI1_RX DMA2_CSELR_CH3_SPI1_RX_Msk /*!< Remap SPI1 Rx on DMA2 channel 3 */
  5802. #define DMA2_CSELR_CH3_USART1_RX_Pos (11U)
  5803. #define DMA2_CSELR_CH3_USART1_RX_Msk (0x1U << DMA2_CSELR_CH3_USART1_RX_Pos) /*!< 0x00000800 */
  5804. #define DMA2_CSELR_CH3_USART1_RX DMA2_CSELR_CH3_USART1_RX_Msk /*!< Remap USART1 Rx on DMA2 channel 3 */
  5805. #define DMA2_CSELR_CH3_USART2_RX_Pos (8U)
  5806. #define DMA2_CSELR_CH3_USART2_RX_Msk (0x9U << DMA2_CSELR_CH3_USART2_RX_Pos) /*!< 0x00000900 */
  5807. #define DMA2_CSELR_CH3_USART2_RX DMA2_CSELR_CH3_USART2_RX_Msk /*!< Remap USART2 Rx on DMA2 channel 3 */
  5808. #define DMA2_CSELR_CH3_USART3_RX_Pos (9U)
  5809. #define DMA2_CSELR_CH3_USART3_RX_Msk (0x5U << DMA2_CSELR_CH3_USART3_RX_Pos) /*!< 0x00000A00 */
  5810. #define DMA2_CSELR_CH3_USART3_RX DMA2_CSELR_CH3_USART3_RX_Msk /*!< Remap USART3 Rx on DMA2 channel 3 */
  5811. #define DMA2_CSELR_CH3_USART4_RX_Pos (8U)
  5812. #define DMA2_CSELR_CH3_USART4_RX_Msk (0xBU << DMA2_CSELR_CH3_USART4_RX_Pos) /*!< 0x00000B00 */
  5813. #define DMA2_CSELR_CH3_USART4_RX DMA2_CSELR_CH3_USART4_RX_Msk /*!< Remap USART4 Rx on DMA2 channel 3 */
  5814. #define DMA2_CSELR_CH3_USART5_RX_Pos (10U)
  5815. #define DMA2_CSELR_CH3_USART5_RX_Msk (0x3U << DMA2_CSELR_CH3_USART5_RX_Pos) /*!< 0x00000C00 */
  5816. #define DMA2_CSELR_CH3_USART5_RX DMA2_CSELR_CH3_USART5_RX_Msk /*!< Remap USART5 Rx on DMA2 channel 3 */
  5817. #define DMA2_CSELR_CH3_USART6_RX_Pos (8U)
  5818. #define DMA2_CSELR_CH3_USART6_RX_Msk (0xDU << DMA2_CSELR_CH3_USART6_RX_Pos) /*!< 0x00000D00 */
  5819. #define DMA2_CSELR_CH3_USART6_RX DMA2_CSELR_CH3_USART6_RX_Msk /*!< Remap USART6 Rx on DMA2 channel 3 */
  5820. #define DMA2_CSELR_CH3_USART7_RX_Pos (9U)
  5821. #define DMA2_CSELR_CH3_USART7_RX_Msk (0x7U << DMA2_CSELR_CH3_USART7_RX_Pos) /*!< 0x00000E00 */
  5822. #define DMA2_CSELR_CH3_USART7_RX DMA2_CSELR_CH3_USART7_RX_Msk /*!< Remap USART7 Rx on DMA2 channel 3 */
  5823. #define DMA2_CSELR_CH3_USART8_RX_Pos (8U)
  5824. #define DMA2_CSELR_CH3_USART8_RX_Msk (0xFU << DMA2_CSELR_CH3_USART8_RX_Pos) /*!< 0x00000F00 */
  5825. #define DMA2_CSELR_CH3_USART8_RX DMA2_CSELR_CH3_USART8_RX_Msk /*!< Remap USART8 Rx on DMA2 channel 3 */
  5826. #define DMA2_CSELR_CH4_TIM7_UP_Pos (12U)
  5827. #define DMA2_CSELR_CH4_TIM7_UP_Msk (0x1U << DMA2_CSELR_CH4_TIM7_UP_Pos) /*!< 0x00001000 */
  5828. #define DMA2_CSELR_CH4_TIM7_UP DMA2_CSELR_CH4_TIM7_UP_Msk /*!< Remap TIM7 up on DMA2 channel 4 */
  5829. #define DMA2_CSELR_CH4_DAC_CH2_Pos (12U)
  5830. #define DMA2_CSELR_CH4_DAC_CH2_Msk (0x1U << DMA2_CSELR_CH4_DAC_CH2_Pos) /*!< 0x00001000 */
  5831. #define DMA2_CSELR_CH4_DAC_CH2 DMA2_CSELR_CH4_DAC_CH2_Msk /*!< Remap DAC channel 2 on DMA2 channel 4 */
  5832. #define DMA2_CSELR_CH4_SPI1_TX_Pos (12U)
  5833. #define DMA2_CSELR_CH4_SPI1_TX_Msk (0x3U << DMA2_CSELR_CH4_SPI1_TX_Pos) /*!< 0x00003000 */
  5834. #define DMA2_CSELR_CH4_SPI1_TX DMA2_CSELR_CH4_SPI1_TX_Msk /*!< Remap SPI1 Tx on DMA2 channel 4 */
  5835. #define DMA2_CSELR_CH4_USART1_TX_Pos (15U)
  5836. #define DMA2_CSELR_CH4_USART1_TX_Msk (0x1U << DMA2_CSELR_CH4_USART1_TX_Pos) /*!< 0x00008000 */
  5837. #define DMA2_CSELR_CH4_USART1_TX DMA2_CSELR_CH4_USART1_TX_Msk /*!< Remap USART1 Tx on DMA2 channel 4 */
  5838. #define DMA2_CSELR_CH4_USART2_TX_Pos (12U)
  5839. #define DMA2_CSELR_CH4_USART2_TX_Msk (0x9U << DMA2_CSELR_CH4_USART2_TX_Pos) /*!< 0x00009000 */
  5840. #define DMA2_CSELR_CH4_USART2_TX DMA2_CSELR_CH4_USART2_TX_Msk /*!< Remap USART2 Tx on DMA2 channel 4 */
  5841. #define DMA2_CSELR_CH4_USART3_TX_Pos (13U)
  5842. #define DMA2_CSELR_CH4_USART3_TX_Msk (0x5U << DMA2_CSELR_CH4_USART3_TX_Pos) /*!< 0x0000A000 */
  5843. #define DMA2_CSELR_CH4_USART3_TX DMA2_CSELR_CH4_USART3_TX_Msk /*!< Remap USART3 Tx on DMA2 channel 4 */
  5844. #define DMA2_CSELR_CH4_USART4_TX_Pos (12U)
  5845. #define DMA2_CSELR_CH4_USART4_TX_Msk (0xBU << DMA2_CSELR_CH4_USART4_TX_Pos) /*!< 0x0000B000 */
  5846. #define DMA2_CSELR_CH4_USART4_TX DMA2_CSELR_CH4_USART4_TX_Msk /*!< Remap USART4 Tx on DMA2 channel 4 */
  5847. #define DMA2_CSELR_CH4_USART5_TX_Pos (14U)
  5848. #define DMA2_CSELR_CH4_USART5_TX_Msk (0x3U << DMA2_CSELR_CH4_USART5_TX_Pos) /*!< 0x0000C000 */
  5849. #define DMA2_CSELR_CH4_USART5_TX DMA2_CSELR_CH4_USART5_TX_Msk /*!< Remap USART5 Tx on DMA2 channel 4 */
  5850. #define DMA2_CSELR_CH4_USART6_TX_Pos (12U)
  5851. #define DMA2_CSELR_CH4_USART6_TX_Msk (0xDU << DMA2_CSELR_CH4_USART6_TX_Pos) /*!< 0x0000D000 */
  5852. #define DMA2_CSELR_CH4_USART6_TX DMA2_CSELR_CH4_USART6_TX_Msk /*!< Remap USART6 Tx on DMA2 channel 4 */
  5853. #define DMA2_CSELR_CH4_USART7_TX_Pos (13U)
  5854. #define DMA2_CSELR_CH4_USART7_TX_Msk (0x7U << DMA2_CSELR_CH4_USART7_TX_Pos) /*!< 0x0000E000 */
  5855. #define DMA2_CSELR_CH4_USART7_TX DMA2_CSELR_CH4_USART7_TX_Msk /*!< Remap USART7 Tx on DMA2 channel 4 */
  5856. #define DMA2_CSELR_CH4_USART8_TX_Pos (12U)
  5857. #define DMA2_CSELR_CH4_USART8_TX_Msk (0xFU << DMA2_CSELR_CH4_USART8_TX_Pos) /*!< 0x0000F000 */
  5858. #define DMA2_CSELR_CH4_USART8_TX DMA2_CSELR_CH4_USART8_TX_Msk /*!< Remap USART8 Tx on DMA2 channel 4 */
  5859. #define DMA2_CSELR_CH5_ADC_Pos (16U)
  5860. #define DMA2_CSELR_CH5_ADC_Msk (0x1U << DMA2_CSELR_CH5_ADC_Pos) /*!< 0x00010000 */
  5861. #define DMA2_CSELR_CH5_ADC DMA2_CSELR_CH5_ADC_Msk /*!< Remap ADC on DMA2 channel 5 */
  5862. #define DMA2_CSELR_CH5_USART1_TX_Pos (19U)
  5863. #define DMA2_CSELR_CH5_USART1_TX_Msk (0x1U << DMA2_CSELR_CH5_USART1_TX_Pos) /*!< 0x00080000 */
  5864. #define DMA2_CSELR_CH5_USART1_TX DMA2_CSELR_CH5_USART1_TX_Msk /*!< Remap USART1 Tx on DMA2 channel 5 */
  5865. #define DMA2_CSELR_CH5_USART2_TX_Pos (16U)
  5866. #define DMA2_CSELR_CH5_USART2_TX_Msk (0x9U << DMA2_CSELR_CH5_USART2_TX_Pos) /*!< 0x00090000 */
  5867. #define DMA2_CSELR_CH5_USART2_TX DMA2_CSELR_CH5_USART2_TX_Msk /*!< Remap USART2 Tx on DMA2 channel 5 */
  5868. #define DMA2_CSELR_CH5_USART3_TX_Pos (17U)
  5869. #define DMA2_CSELR_CH5_USART3_TX_Msk (0x5U << DMA2_CSELR_CH5_USART3_TX_Pos) /*!< 0x000A0000 */
  5870. #define DMA2_CSELR_CH5_USART3_TX DMA2_CSELR_CH5_USART3_TX_Msk /*!< Remap USART3 Tx on DMA2 channel 5 */
  5871. #define DMA2_CSELR_CH5_USART4_TX_Pos (16U)
  5872. #define DMA2_CSELR_CH5_USART4_TX_Msk (0xBU << DMA2_CSELR_CH5_USART4_TX_Pos) /*!< 0x000B0000 */
  5873. #define DMA2_CSELR_CH5_USART4_TX DMA2_CSELR_CH5_USART4_TX_Msk /*!< Remap USART4 Tx on DMA2 channel 5 */
  5874. #define DMA2_CSELR_CH5_USART5_TX_Pos (18U)
  5875. #define DMA2_CSELR_CH5_USART5_TX_Msk (0x3U << DMA2_CSELR_CH5_USART5_TX_Pos) /*!< 0x000C0000 */
  5876. #define DMA2_CSELR_CH5_USART5_TX DMA2_CSELR_CH5_USART5_TX_Msk /*!< Remap USART5 Tx on DMA2 channel 5 */
  5877. #define DMA2_CSELR_CH5_USART6_TX_Pos (16U)
  5878. #define DMA2_CSELR_CH5_USART6_TX_Msk (0xDU << DMA2_CSELR_CH5_USART6_TX_Pos) /*!< 0x000D0000 */
  5879. #define DMA2_CSELR_CH5_USART6_TX DMA2_CSELR_CH5_USART6_TX_Msk /*!< Remap USART6 Tx on DMA2 channel 5 */
  5880. #define DMA2_CSELR_CH5_USART7_TX_Pos (17U)
  5881. #define DMA2_CSELR_CH5_USART7_TX_Msk (0x7U << DMA2_CSELR_CH5_USART7_TX_Pos) /*!< 0x000E0000 */
  5882. #define DMA2_CSELR_CH5_USART7_TX DMA2_CSELR_CH5_USART7_TX_Msk /*!< Remap USART7 Tx on DMA2 channel 5 */
  5883. #define DMA2_CSELR_CH5_USART8_TX_Pos (16U)
  5884. #define DMA2_CSELR_CH5_USART8_TX_Msk (0xFU << DMA2_CSELR_CH5_USART8_TX_Pos) /*!< 0x000F0000 */
  5885. #define DMA2_CSELR_CH5_USART8_TX DMA2_CSELR_CH5_USART8_TX_Msk /*!< Remap USART8 Tx on DMA2 channel 5 */
  5886. /******************************************************************************/
  5887. /* */
  5888. /* External Interrupt/Event Controller (EXTI) */
  5889. /* */
  5890. /******************************************************************************/
  5891. /******************* Bit definition for EXTI_IMR register *******************/
  5892. #define EXTI_IMR_MR0_Pos (0U)
  5893. #define EXTI_IMR_MR0_Msk (0x1U << EXTI_IMR_MR0_Pos) /*!< 0x00000001 */
  5894. #define EXTI_IMR_MR0 EXTI_IMR_MR0_Msk /*!< Interrupt Mask on line 0 */
  5895. #define EXTI_IMR_MR1_Pos (1U)
  5896. #define EXTI_IMR_MR1_Msk (0x1U << EXTI_IMR_MR1_Pos) /*!< 0x00000002 */
  5897. #define EXTI_IMR_MR1 EXTI_IMR_MR1_Msk /*!< Interrupt Mask on line 1 */
  5898. #define EXTI_IMR_MR2_Pos (2U)
  5899. #define EXTI_IMR_MR2_Msk (0x1U << EXTI_IMR_MR2_Pos) /*!< 0x00000004 */
  5900. #define EXTI_IMR_MR2 EXTI_IMR_MR2_Msk /*!< Interrupt Mask on line 2 */
  5901. #define EXTI_IMR_MR3_Pos (3U)
  5902. #define EXTI_IMR_MR3_Msk (0x1U << EXTI_IMR_MR3_Pos) /*!< 0x00000008 */
  5903. #define EXTI_IMR_MR3 EXTI_IMR_MR3_Msk /*!< Interrupt Mask on line 3 */
  5904. #define EXTI_IMR_MR4_Pos (4U)
  5905. #define EXTI_IMR_MR4_Msk (0x1U << EXTI_IMR_MR4_Pos) /*!< 0x00000010 */
  5906. #define EXTI_IMR_MR4 EXTI_IMR_MR4_Msk /*!< Interrupt Mask on line 4 */
  5907. #define EXTI_IMR_MR5_Pos (5U)
  5908. #define EXTI_IMR_MR5_Msk (0x1U << EXTI_IMR_MR5_Pos) /*!< 0x00000020 */
  5909. #define EXTI_IMR_MR5 EXTI_IMR_MR5_Msk /*!< Interrupt Mask on line 5 */
  5910. #define EXTI_IMR_MR6_Pos (6U)
  5911. #define EXTI_IMR_MR6_Msk (0x1U << EXTI_IMR_MR6_Pos) /*!< 0x00000040 */
  5912. #define EXTI_IMR_MR6 EXTI_IMR_MR6_Msk /*!< Interrupt Mask on line 6 */
  5913. #define EXTI_IMR_MR7_Pos (7U)
  5914. #define EXTI_IMR_MR7_Msk (0x1U << EXTI_IMR_MR7_Pos) /*!< 0x00000080 */
  5915. #define EXTI_IMR_MR7 EXTI_IMR_MR7_Msk /*!< Interrupt Mask on line 7 */
  5916. #define EXTI_IMR_MR8_Pos (8U)
  5917. #define EXTI_IMR_MR8_Msk (0x1U << EXTI_IMR_MR8_Pos) /*!< 0x00000100 */
  5918. #define EXTI_IMR_MR8 EXTI_IMR_MR8_Msk /*!< Interrupt Mask on line 8 */
  5919. #define EXTI_IMR_MR9_Pos (9U)
  5920. #define EXTI_IMR_MR9_Msk (0x1U << EXTI_IMR_MR9_Pos) /*!< 0x00000200 */
  5921. #define EXTI_IMR_MR9 EXTI_IMR_MR9_Msk /*!< Interrupt Mask on line 9 */
  5922. #define EXTI_IMR_MR10_Pos (10U)
  5923. #define EXTI_IMR_MR10_Msk (0x1U << EXTI_IMR_MR10_Pos) /*!< 0x00000400 */
  5924. #define EXTI_IMR_MR10 EXTI_IMR_MR10_Msk /*!< Interrupt Mask on line 10 */
  5925. #define EXTI_IMR_MR11_Pos (11U)
  5926. #define EXTI_IMR_MR11_Msk (0x1U << EXTI_IMR_MR11_Pos) /*!< 0x00000800 */
  5927. #define EXTI_IMR_MR11 EXTI_IMR_MR11_Msk /*!< Interrupt Mask on line 11 */
  5928. #define EXTI_IMR_MR12_Pos (12U)
  5929. #define EXTI_IMR_MR12_Msk (0x1U << EXTI_IMR_MR12_Pos) /*!< 0x00001000 */
  5930. #define EXTI_IMR_MR12 EXTI_IMR_MR12_Msk /*!< Interrupt Mask on line 12 */
  5931. #define EXTI_IMR_MR13_Pos (13U)
  5932. #define EXTI_IMR_MR13_Msk (0x1U << EXTI_IMR_MR13_Pos) /*!< 0x00002000 */
  5933. #define EXTI_IMR_MR13 EXTI_IMR_MR13_Msk /*!< Interrupt Mask on line 13 */
  5934. #define EXTI_IMR_MR14_Pos (14U)
  5935. #define EXTI_IMR_MR14_Msk (0x1U << EXTI_IMR_MR14_Pos) /*!< 0x00004000 */
  5936. #define EXTI_IMR_MR14 EXTI_IMR_MR14_Msk /*!< Interrupt Mask on line 14 */
  5937. #define EXTI_IMR_MR15_Pos (15U)
  5938. #define EXTI_IMR_MR15_Msk (0x1U << EXTI_IMR_MR15_Pos) /*!< 0x00008000 */
  5939. #define EXTI_IMR_MR15 EXTI_IMR_MR15_Msk /*!< Interrupt Mask on line 15 */
  5940. #define EXTI_IMR_MR16_Pos (16U)
  5941. #define EXTI_IMR_MR16_Msk (0x1U << EXTI_IMR_MR16_Pos) /*!< 0x00010000 */
  5942. #define EXTI_IMR_MR16 EXTI_IMR_MR16_Msk /*!< Interrupt Mask on line 16 */
  5943. #define EXTI_IMR_MR17_Pos (17U)
  5944. #define EXTI_IMR_MR17_Msk (0x1U << EXTI_IMR_MR17_Pos) /*!< 0x00020000 */
  5945. #define EXTI_IMR_MR17 EXTI_IMR_MR17_Msk /*!< Interrupt Mask on line 17 */
  5946. #define EXTI_IMR_MR18_Pos (18U)
  5947. #define EXTI_IMR_MR18_Msk (0x1U << EXTI_IMR_MR18_Pos) /*!< 0x00040000 */
  5948. #define EXTI_IMR_MR18 EXTI_IMR_MR18_Msk /*!< Interrupt Mask on line 18 */
  5949. #define EXTI_IMR_MR19_Pos (19U)
  5950. #define EXTI_IMR_MR19_Msk (0x1U << EXTI_IMR_MR19_Pos) /*!< 0x00080000 */
  5951. #define EXTI_IMR_MR19 EXTI_IMR_MR19_Msk /*!< Interrupt Mask on line 19 */
  5952. #define EXTI_IMR_MR20_Pos (20U)
  5953. #define EXTI_IMR_MR20_Msk (0x1U << EXTI_IMR_MR20_Pos) /*!< 0x00100000 */
  5954. #define EXTI_IMR_MR20 EXTI_IMR_MR20_Msk /*!< Interrupt Mask on line 20 */
  5955. #define EXTI_IMR_MR21_Pos (21U)
  5956. #define EXTI_IMR_MR21_Msk (0x1U << EXTI_IMR_MR21_Pos) /*!< 0x00200000 */
  5957. #define EXTI_IMR_MR21 EXTI_IMR_MR21_Msk /*!< Interrupt Mask on line 21 */
  5958. #define EXTI_IMR_MR22_Pos (22U)
  5959. #define EXTI_IMR_MR22_Msk (0x1U << EXTI_IMR_MR22_Pos) /*!< 0x00400000 */
  5960. #define EXTI_IMR_MR22 EXTI_IMR_MR22_Msk /*!< Interrupt Mask on line 22 */
  5961. #define EXTI_IMR_MR23_Pos (23U)
  5962. #define EXTI_IMR_MR23_Msk (0x1U << EXTI_IMR_MR23_Pos) /*!< 0x00800000 */
  5963. #define EXTI_IMR_MR23 EXTI_IMR_MR23_Msk /*!< Interrupt Mask on line 23 */
  5964. #define EXTI_IMR_MR25_Pos (25U)
  5965. #define EXTI_IMR_MR25_Msk (0x1U << EXTI_IMR_MR25_Pos) /*!< 0x02000000 */
  5966. #define EXTI_IMR_MR25 EXTI_IMR_MR25_Msk /*!< Interrupt Mask on line 25 */
  5967. #define EXTI_IMR_MR26_Pos (26U)
  5968. #define EXTI_IMR_MR26_Msk (0x1U << EXTI_IMR_MR26_Pos) /*!< 0x04000000 */
  5969. #define EXTI_IMR_MR26 EXTI_IMR_MR26_Msk /*!< Interrupt Mask on line 26 */
  5970. #define EXTI_IMR_MR27_Pos (27U)
  5971. #define EXTI_IMR_MR27_Msk (0x1U << EXTI_IMR_MR27_Pos) /*!< 0x08000000 */
  5972. #define EXTI_IMR_MR27 EXTI_IMR_MR27_Msk /*!< Interrupt Mask on line 27 */
  5973. #define EXTI_IMR_MR28_Pos (28U)
  5974. #define EXTI_IMR_MR28_Msk (0x1U << EXTI_IMR_MR28_Pos) /*!< 0x10000000 */
  5975. #define EXTI_IMR_MR28 EXTI_IMR_MR28_Msk /*!< Interrupt Mask on line 28 */
  5976. #define EXTI_IMR_MR31_Pos (31U)
  5977. #define EXTI_IMR_MR31_Msk (0x1U << EXTI_IMR_MR31_Pos) /*!< 0x80000000 */
  5978. #define EXTI_IMR_MR31 EXTI_IMR_MR31_Msk /*!< Interrupt Mask on line 31 */
  5979. /* References Defines */
  5980. #define EXTI_IMR_IM0 EXTI_IMR_MR0
  5981. #define EXTI_IMR_IM1 EXTI_IMR_MR1
  5982. #define EXTI_IMR_IM2 EXTI_IMR_MR2
  5983. #define EXTI_IMR_IM3 EXTI_IMR_MR3
  5984. #define EXTI_IMR_IM4 EXTI_IMR_MR4
  5985. #define EXTI_IMR_IM5 EXTI_IMR_MR5
  5986. #define EXTI_IMR_IM6 EXTI_IMR_MR6
  5987. #define EXTI_IMR_IM7 EXTI_IMR_MR7
  5988. #define EXTI_IMR_IM8 EXTI_IMR_MR8
  5989. #define EXTI_IMR_IM9 EXTI_IMR_MR9
  5990. #define EXTI_IMR_IM10 EXTI_IMR_MR10
  5991. #define EXTI_IMR_IM11 EXTI_IMR_MR11
  5992. #define EXTI_IMR_IM12 EXTI_IMR_MR12
  5993. #define EXTI_IMR_IM13 EXTI_IMR_MR13
  5994. #define EXTI_IMR_IM14 EXTI_IMR_MR14
  5995. #define EXTI_IMR_IM15 EXTI_IMR_MR15
  5996. #define EXTI_IMR_IM16 EXTI_IMR_MR16
  5997. #define EXTI_IMR_IM17 EXTI_IMR_MR17
  5998. #define EXTI_IMR_IM18 EXTI_IMR_MR18
  5999. #define EXTI_IMR_IM19 EXTI_IMR_MR19
  6000. #define EXTI_IMR_IM20 EXTI_IMR_MR20
  6001. #define EXTI_IMR_IM21 EXTI_IMR_MR21
  6002. #define EXTI_IMR_IM22 EXTI_IMR_MR22
  6003. #define EXTI_IMR_IM23 EXTI_IMR_MR23
  6004. #define EXTI_IMR_IM25 EXTI_IMR_MR25
  6005. #define EXTI_IMR_IM26 EXTI_IMR_MR26
  6006. #define EXTI_IMR_IM27 EXTI_IMR_MR27
  6007. #define EXTI_IMR_IM28 EXTI_IMR_MR28
  6008. #define EXTI_IMR_IM31 EXTI_IMR_MR31
  6009. #define EXTI_IMR_IM_Pos (0U)
  6010. #define EXTI_IMR_IM_Msk (0x9EFFFFFFU << EXTI_IMR_IM_Pos) /*!< 0x9EFFFFFF */
  6011. #define EXTI_IMR_IM EXTI_IMR_IM_Msk /*!< Interrupt Mask All */
  6012. /****************** Bit definition for EXTI_EMR register ********************/
  6013. #define EXTI_EMR_MR0_Pos (0U)
  6014. #define EXTI_EMR_MR0_Msk (0x1U << EXTI_EMR_MR0_Pos) /*!< 0x00000001 */
  6015. #define EXTI_EMR_MR0 EXTI_EMR_MR0_Msk /*!< Event Mask on line 0 */
  6016. #define EXTI_EMR_MR1_Pos (1U)
  6017. #define EXTI_EMR_MR1_Msk (0x1U << EXTI_EMR_MR1_Pos) /*!< 0x00000002 */
  6018. #define EXTI_EMR_MR1 EXTI_EMR_MR1_Msk /*!< Event Mask on line 1 */
  6019. #define EXTI_EMR_MR2_Pos (2U)
  6020. #define EXTI_EMR_MR2_Msk (0x1U << EXTI_EMR_MR2_Pos) /*!< 0x00000004 */
  6021. #define EXTI_EMR_MR2 EXTI_EMR_MR2_Msk /*!< Event Mask on line 2 */
  6022. #define EXTI_EMR_MR3_Pos (3U)
  6023. #define EXTI_EMR_MR3_Msk (0x1U << EXTI_EMR_MR3_Pos) /*!< 0x00000008 */
  6024. #define EXTI_EMR_MR3 EXTI_EMR_MR3_Msk /*!< Event Mask on line 3 */
  6025. #define EXTI_EMR_MR4_Pos (4U)
  6026. #define EXTI_EMR_MR4_Msk (0x1U << EXTI_EMR_MR4_Pos) /*!< 0x00000010 */
  6027. #define EXTI_EMR_MR4 EXTI_EMR_MR4_Msk /*!< Event Mask on line 4 */
  6028. #define EXTI_EMR_MR5_Pos (5U)
  6029. #define EXTI_EMR_MR5_Msk (0x1U << EXTI_EMR_MR5_Pos) /*!< 0x00000020 */
  6030. #define EXTI_EMR_MR5 EXTI_EMR_MR5_Msk /*!< Event Mask on line 5 */
  6031. #define EXTI_EMR_MR6_Pos (6U)
  6032. #define EXTI_EMR_MR6_Msk (0x1U << EXTI_EMR_MR6_Pos) /*!< 0x00000040 */
  6033. #define EXTI_EMR_MR6 EXTI_EMR_MR6_Msk /*!< Event Mask on line 6 */
  6034. #define EXTI_EMR_MR7_Pos (7U)
  6035. #define EXTI_EMR_MR7_Msk (0x1U << EXTI_EMR_MR7_Pos) /*!< 0x00000080 */
  6036. #define EXTI_EMR_MR7 EXTI_EMR_MR7_Msk /*!< Event Mask on line 7 */
  6037. #define EXTI_EMR_MR8_Pos (8U)
  6038. #define EXTI_EMR_MR8_Msk (0x1U << EXTI_EMR_MR8_Pos) /*!< 0x00000100 */
  6039. #define EXTI_EMR_MR8 EXTI_EMR_MR8_Msk /*!< Event Mask on line 8 */
  6040. #define EXTI_EMR_MR9_Pos (9U)
  6041. #define EXTI_EMR_MR9_Msk (0x1U << EXTI_EMR_MR9_Pos) /*!< 0x00000200 */
  6042. #define EXTI_EMR_MR9 EXTI_EMR_MR9_Msk /*!< Event Mask on line 9 */
  6043. #define EXTI_EMR_MR10_Pos (10U)
  6044. #define EXTI_EMR_MR10_Msk (0x1U << EXTI_EMR_MR10_Pos) /*!< 0x00000400 */
  6045. #define EXTI_EMR_MR10 EXTI_EMR_MR10_Msk /*!< Event Mask on line 10 */
  6046. #define EXTI_EMR_MR11_Pos (11U)
  6047. #define EXTI_EMR_MR11_Msk (0x1U << EXTI_EMR_MR11_Pos) /*!< 0x00000800 */
  6048. #define EXTI_EMR_MR11 EXTI_EMR_MR11_Msk /*!< Event Mask on line 11 */
  6049. #define EXTI_EMR_MR12_Pos (12U)
  6050. #define EXTI_EMR_MR12_Msk (0x1U << EXTI_EMR_MR12_Pos) /*!< 0x00001000 */
  6051. #define EXTI_EMR_MR12 EXTI_EMR_MR12_Msk /*!< Event Mask on line 12 */
  6052. #define EXTI_EMR_MR13_Pos (13U)
  6053. #define EXTI_EMR_MR13_Msk (0x1U << EXTI_EMR_MR13_Pos) /*!< 0x00002000 */
  6054. #define EXTI_EMR_MR13 EXTI_EMR_MR13_Msk /*!< Event Mask on line 13 */
  6055. #define EXTI_EMR_MR14_Pos (14U)
  6056. #define EXTI_EMR_MR14_Msk (0x1U << EXTI_EMR_MR14_Pos) /*!< 0x00004000 */
  6057. #define EXTI_EMR_MR14 EXTI_EMR_MR14_Msk /*!< Event Mask on line 14 */
  6058. #define EXTI_EMR_MR15_Pos (15U)
  6059. #define EXTI_EMR_MR15_Msk (0x1U << EXTI_EMR_MR15_Pos) /*!< 0x00008000 */
  6060. #define EXTI_EMR_MR15 EXTI_EMR_MR15_Msk /*!< Event Mask on line 15 */
  6061. #define EXTI_EMR_MR16_Pos (16U)
  6062. #define EXTI_EMR_MR16_Msk (0x1U << EXTI_EMR_MR16_Pos) /*!< 0x00010000 */
  6063. #define EXTI_EMR_MR16 EXTI_EMR_MR16_Msk /*!< Event Mask on line 16 */
  6064. #define EXTI_EMR_MR17_Pos (17U)
  6065. #define EXTI_EMR_MR17_Msk (0x1U << EXTI_EMR_MR17_Pos) /*!< 0x00020000 */
  6066. #define EXTI_EMR_MR17 EXTI_EMR_MR17_Msk /*!< Event Mask on line 17 */
  6067. #define EXTI_EMR_MR18_Pos (18U)
  6068. #define EXTI_EMR_MR18_Msk (0x1U << EXTI_EMR_MR18_Pos) /*!< 0x00040000 */
  6069. #define EXTI_EMR_MR18 EXTI_EMR_MR18_Msk /*!< Event Mask on line 18 */
  6070. #define EXTI_EMR_MR19_Pos (19U)
  6071. #define EXTI_EMR_MR19_Msk (0x1U << EXTI_EMR_MR19_Pos) /*!< 0x00080000 */
  6072. #define EXTI_EMR_MR19 EXTI_EMR_MR19_Msk /*!< Event Mask on line 19 */
  6073. #define EXTI_EMR_MR20_Pos (20U)
  6074. #define EXTI_EMR_MR20_Msk (0x1U << EXTI_EMR_MR20_Pos) /*!< 0x00100000 */
  6075. #define EXTI_EMR_MR20 EXTI_EMR_MR20_Msk /*!< Event Mask on line 20 */
  6076. #define EXTI_EMR_MR21_Pos (21U)
  6077. #define EXTI_EMR_MR21_Msk (0x1U << EXTI_EMR_MR21_Pos) /*!< 0x00200000 */
  6078. #define EXTI_EMR_MR21 EXTI_EMR_MR21_Msk /*!< Event Mask on line 21 */
  6079. #define EXTI_EMR_MR22_Pos (22U)
  6080. #define EXTI_EMR_MR22_Msk (0x1U << EXTI_EMR_MR22_Pos) /*!< 0x00400000 */
  6081. #define EXTI_EMR_MR22 EXTI_EMR_MR22_Msk /*!< Event Mask on line 22 */
  6082. #define EXTI_EMR_MR23_Pos (23U)
  6083. #define EXTI_EMR_MR23_Msk (0x1U << EXTI_EMR_MR23_Pos) /*!< 0x00800000 */
  6084. #define EXTI_EMR_MR23 EXTI_EMR_MR23_Msk /*!< Event Mask on line 23 */
  6085. #define EXTI_EMR_MR25_Pos (25U)
  6086. #define EXTI_EMR_MR25_Msk (0x1U << EXTI_EMR_MR25_Pos) /*!< 0x02000000 */
  6087. #define EXTI_EMR_MR25 EXTI_EMR_MR25_Msk /*!< Event Mask on line 25 */
  6088. #define EXTI_EMR_MR26_Pos (26U)
  6089. #define EXTI_EMR_MR26_Msk (0x1U << EXTI_EMR_MR26_Pos) /*!< 0x04000000 */
  6090. #define EXTI_EMR_MR26 EXTI_EMR_MR26_Msk /*!< Event Mask on line 26 */
  6091. #define EXTI_EMR_MR27_Pos (27U)
  6092. #define EXTI_EMR_MR27_Msk (0x1U << EXTI_EMR_MR27_Pos) /*!< 0x08000000 */
  6093. #define EXTI_EMR_MR27 EXTI_EMR_MR27_Msk /*!< Event Mask on line 27 */
  6094. #define EXTI_EMR_MR28_Pos (28U)
  6095. #define EXTI_EMR_MR28_Msk (0x1U << EXTI_EMR_MR28_Pos) /*!< 0x10000000 */
  6096. #define EXTI_EMR_MR28 EXTI_EMR_MR28_Msk /*!< Event Mask on line 28 */
  6097. #define EXTI_EMR_MR31_Pos (31U)
  6098. #define EXTI_EMR_MR31_Msk (0x1U << EXTI_EMR_MR31_Pos) /*!< 0x80000000 */
  6099. #define EXTI_EMR_MR31 EXTI_EMR_MR31_Msk /*!< Event Mask on line 31 */
  6100. /* References Defines */
  6101. #define EXTI_EMR_EM0 EXTI_EMR_MR0
  6102. #define EXTI_EMR_EM1 EXTI_EMR_MR1
  6103. #define EXTI_EMR_EM2 EXTI_EMR_MR2
  6104. #define EXTI_EMR_EM3 EXTI_EMR_MR3
  6105. #define EXTI_EMR_EM4 EXTI_EMR_MR4
  6106. #define EXTI_EMR_EM5 EXTI_EMR_MR5
  6107. #define EXTI_EMR_EM6 EXTI_EMR_MR6
  6108. #define EXTI_EMR_EM7 EXTI_EMR_MR7
  6109. #define EXTI_EMR_EM8 EXTI_EMR_MR8
  6110. #define EXTI_EMR_EM9 EXTI_EMR_MR9
  6111. #define EXTI_EMR_EM10 EXTI_EMR_MR10
  6112. #define EXTI_EMR_EM11 EXTI_EMR_MR11
  6113. #define EXTI_EMR_EM12 EXTI_EMR_MR12
  6114. #define EXTI_EMR_EM13 EXTI_EMR_MR13
  6115. #define EXTI_EMR_EM14 EXTI_EMR_MR14
  6116. #define EXTI_EMR_EM15 EXTI_EMR_MR15
  6117. #define EXTI_EMR_EM16 EXTI_EMR_MR16
  6118. #define EXTI_EMR_EM17 EXTI_EMR_MR17
  6119. #define EXTI_EMR_EM18 EXTI_EMR_MR18
  6120. #define EXTI_EMR_EM19 EXTI_EMR_MR19
  6121. #define EXTI_EMR_EM20 EXTI_EMR_MR20
  6122. #define EXTI_EMR_EM21 EXTI_EMR_MR21
  6123. #define EXTI_EMR_EM22 EXTI_EMR_MR22
  6124. #define EXTI_EMR_EM23 EXTI_EMR_MR23
  6125. #define EXTI_EMR_EM25 EXTI_EMR_MR25
  6126. #define EXTI_EMR_EM26 EXTI_EMR_MR26
  6127. #define EXTI_EMR_EM27 EXTI_EMR_MR27
  6128. #define EXTI_EMR_EM28 EXTI_EMR_MR28
  6129. #define EXTI_EMR_EM31 EXTI_EMR_MR31
  6130. /******************* Bit definition for EXTI_RTSR register ******************/
  6131. #define EXTI_RTSR_TR0_Pos (0U)
  6132. #define EXTI_RTSR_TR0_Msk (0x1U << EXTI_RTSR_TR0_Pos) /*!< 0x00000001 */
  6133. #define EXTI_RTSR_TR0 EXTI_RTSR_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */
  6134. #define EXTI_RTSR_TR1_Pos (1U)
  6135. #define EXTI_RTSR_TR1_Msk (0x1U << EXTI_RTSR_TR1_Pos) /*!< 0x00000002 */
  6136. #define EXTI_RTSR_TR1 EXTI_RTSR_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */
  6137. #define EXTI_RTSR_TR2_Pos (2U)
  6138. #define EXTI_RTSR_TR2_Msk (0x1U << EXTI_RTSR_TR2_Pos) /*!< 0x00000004 */
  6139. #define EXTI_RTSR_TR2 EXTI_RTSR_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */
  6140. #define EXTI_RTSR_TR3_Pos (3U)
  6141. #define EXTI_RTSR_TR3_Msk (0x1U << EXTI_RTSR_TR3_Pos) /*!< 0x00000008 */
  6142. #define EXTI_RTSR_TR3 EXTI_RTSR_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */
  6143. #define EXTI_RTSR_TR4_Pos (4U)
  6144. #define EXTI_RTSR_TR4_Msk (0x1U << EXTI_RTSR_TR4_Pos) /*!< 0x00000010 */
  6145. #define EXTI_RTSR_TR4 EXTI_RTSR_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */
  6146. #define EXTI_RTSR_TR5_Pos (5U)
  6147. #define EXTI_RTSR_TR5_Msk (0x1U << EXTI_RTSR_TR5_Pos) /*!< 0x00000020 */
  6148. #define EXTI_RTSR_TR5 EXTI_RTSR_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */
  6149. #define EXTI_RTSR_TR6_Pos (6U)
  6150. #define EXTI_RTSR_TR6_Msk (0x1U << EXTI_RTSR_TR6_Pos) /*!< 0x00000040 */
  6151. #define EXTI_RTSR_TR6 EXTI_RTSR_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */
  6152. #define EXTI_RTSR_TR7_Pos (7U)
  6153. #define EXTI_RTSR_TR7_Msk (0x1U << EXTI_RTSR_TR7_Pos) /*!< 0x00000080 */
  6154. #define EXTI_RTSR_TR7 EXTI_RTSR_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */
  6155. #define EXTI_RTSR_TR8_Pos (8U)
  6156. #define EXTI_RTSR_TR8_Msk (0x1U << EXTI_RTSR_TR8_Pos) /*!< 0x00000100 */
  6157. #define EXTI_RTSR_TR8 EXTI_RTSR_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */
  6158. #define EXTI_RTSR_TR9_Pos (9U)
  6159. #define EXTI_RTSR_TR9_Msk (0x1U << EXTI_RTSR_TR9_Pos) /*!< 0x00000200 */
  6160. #define EXTI_RTSR_TR9 EXTI_RTSR_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */
  6161. #define EXTI_RTSR_TR10_Pos (10U)
  6162. #define EXTI_RTSR_TR10_Msk (0x1U << EXTI_RTSR_TR10_Pos) /*!< 0x00000400 */
  6163. #define EXTI_RTSR_TR10 EXTI_RTSR_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */
  6164. #define EXTI_RTSR_TR11_Pos (11U)
  6165. #define EXTI_RTSR_TR11_Msk (0x1U << EXTI_RTSR_TR11_Pos) /*!< 0x00000800 */
  6166. #define EXTI_RTSR_TR11 EXTI_RTSR_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */
  6167. #define EXTI_RTSR_TR12_Pos (12U)
  6168. #define EXTI_RTSR_TR12_Msk (0x1U << EXTI_RTSR_TR12_Pos) /*!< 0x00001000 */
  6169. #define EXTI_RTSR_TR12 EXTI_RTSR_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */
  6170. #define EXTI_RTSR_TR13_Pos (13U)
  6171. #define EXTI_RTSR_TR13_Msk (0x1U << EXTI_RTSR_TR13_Pos) /*!< 0x00002000 */
  6172. #define EXTI_RTSR_TR13 EXTI_RTSR_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */
  6173. #define EXTI_RTSR_TR14_Pos (14U)
  6174. #define EXTI_RTSR_TR14_Msk (0x1U << EXTI_RTSR_TR14_Pos) /*!< 0x00004000 */
  6175. #define EXTI_RTSR_TR14 EXTI_RTSR_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */
  6176. #define EXTI_RTSR_TR15_Pos (15U)
  6177. #define EXTI_RTSR_TR15_Msk (0x1U << EXTI_RTSR_TR15_Pos) /*!< 0x00008000 */
  6178. #define EXTI_RTSR_TR15 EXTI_RTSR_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */
  6179. #define EXTI_RTSR_TR16_Pos (16U)
  6180. #define EXTI_RTSR_TR16_Msk (0x1U << EXTI_RTSR_TR16_Pos) /*!< 0x00010000 */
  6181. #define EXTI_RTSR_TR16 EXTI_RTSR_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */
  6182. #define EXTI_RTSR_TR17_Pos (17U)
  6183. #define EXTI_RTSR_TR17_Msk (0x1U << EXTI_RTSR_TR17_Pos) /*!< 0x00020000 */
  6184. #define EXTI_RTSR_TR17 EXTI_RTSR_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */
  6185. #define EXTI_RTSR_TR19_Pos (19U)
  6186. #define EXTI_RTSR_TR19_Msk (0x1U << EXTI_RTSR_TR19_Pos) /*!< 0x00080000 */
  6187. #define EXTI_RTSR_TR19 EXTI_RTSR_TR19_Msk /*!< Rising trigger event configuration bit of line 19 */
  6188. #define EXTI_RTSR_TR20_Pos (20U)
  6189. #define EXTI_RTSR_TR20_Msk (0x1U << EXTI_RTSR_TR20_Pos) /*!< 0x00100000 */
  6190. #define EXTI_RTSR_TR20 EXTI_RTSR_TR20_Msk /*!< Rising trigger event configuration bit of line 20 */
  6191. #define EXTI_RTSR_TR21_Pos (21U)
  6192. #define EXTI_RTSR_TR21_Msk (0x1U << EXTI_RTSR_TR21_Pos) /*!< 0x00200000 */
  6193. #define EXTI_RTSR_TR21 EXTI_RTSR_TR21_Msk /*!< Rising trigger event configuration bit of line 21 */
  6194. #define EXTI_RTSR_TR22_Pos (22U)
  6195. #define EXTI_RTSR_TR22_Msk (0x1U << EXTI_RTSR_TR22_Pos) /*!< 0x00400000 */
  6196. #define EXTI_RTSR_TR22 EXTI_RTSR_TR22_Msk /*!< Rising trigger event configuration bit of line 22 */
  6197. #define EXTI_RTSR_TR31_Pos (31U)
  6198. #define EXTI_RTSR_TR31_Msk (0x1U << EXTI_RTSR_TR31_Pos) /*!< 0x80000000 */
  6199. #define EXTI_RTSR_TR31 EXTI_RTSR_TR31_Msk /*!< Rising trigger event configuration bit of line 31 */
  6200. /* References Defines */
  6201. #define EXTI_RTSR_RT0 EXTI_RTSR_TR0
  6202. #define EXTI_RTSR_RT1 EXTI_RTSR_TR1
  6203. #define EXTI_RTSR_RT2 EXTI_RTSR_TR2
  6204. #define EXTI_RTSR_RT3 EXTI_RTSR_TR3
  6205. #define EXTI_RTSR_RT4 EXTI_RTSR_TR4
  6206. #define EXTI_RTSR_RT5 EXTI_RTSR_TR5
  6207. #define EXTI_RTSR_RT6 EXTI_RTSR_TR6
  6208. #define EXTI_RTSR_RT7 EXTI_RTSR_TR7
  6209. #define EXTI_RTSR_RT8 EXTI_RTSR_TR8
  6210. #define EXTI_RTSR_RT9 EXTI_RTSR_TR9
  6211. #define EXTI_RTSR_RT10 EXTI_RTSR_TR10
  6212. #define EXTI_RTSR_RT11 EXTI_RTSR_TR11
  6213. #define EXTI_RTSR_RT12 EXTI_RTSR_TR12
  6214. #define EXTI_RTSR_RT13 EXTI_RTSR_TR13
  6215. #define EXTI_RTSR_RT14 EXTI_RTSR_TR14
  6216. #define EXTI_RTSR_RT15 EXTI_RTSR_TR15
  6217. #define EXTI_RTSR_RT16 EXTI_RTSR_TR16
  6218. #define EXTI_RTSR_RT17 EXTI_RTSR_TR17
  6219. #define EXTI_RTSR_RT19 EXTI_RTSR_TR19
  6220. #define EXTI_RTSR_RT20 EXTI_RTSR_TR20
  6221. #define EXTI_RTSR_RT21 EXTI_RTSR_TR21
  6222. #define EXTI_RTSR_RT22 EXTI_RTSR_TR22
  6223. #define EXTI_RTSR_RT31 EXTI_RTSR_TR31
  6224. /******************* Bit definition for EXTI_FTSR register *******************/
  6225. #define EXTI_FTSR_TR0_Pos (0U)
  6226. #define EXTI_FTSR_TR0_Msk (0x1U << EXTI_FTSR_TR0_Pos) /*!< 0x00000001 */
  6227. #define EXTI_FTSR_TR0 EXTI_FTSR_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */
  6228. #define EXTI_FTSR_TR1_Pos (1U)
  6229. #define EXTI_FTSR_TR1_Msk (0x1U << EXTI_FTSR_TR1_Pos) /*!< 0x00000002 */
  6230. #define EXTI_FTSR_TR1 EXTI_FTSR_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */
  6231. #define EXTI_FTSR_TR2_Pos (2U)
  6232. #define EXTI_FTSR_TR2_Msk (0x1U << EXTI_FTSR_TR2_Pos) /*!< 0x00000004 */
  6233. #define EXTI_FTSR_TR2 EXTI_FTSR_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */
  6234. #define EXTI_FTSR_TR3_Pos (3U)
  6235. #define EXTI_FTSR_TR3_Msk (0x1U << EXTI_FTSR_TR3_Pos) /*!< 0x00000008 */
  6236. #define EXTI_FTSR_TR3 EXTI_FTSR_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */
  6237. #define EXTI_FTSR_TR4_Pos (4U)
  6238. #define EXTI_FTSR_TR4_Msk (0x1U << EXTI_FTSR_TR4_Pos) /*!< 0x00000010 */
  6239. #define EXTI_FTSR_TR4 EXTI_FTSR_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */
  6240. #define EXTI_FTSR_TR5_Pos (5U)
  6241. #define EXTI_FTSR_TR5_Msk (0x1U << EXTI_FTSR_TR5_Pos) /*!< 0x00000020 */
  6242. #define EXTI_FTSR_TR5 EXTI_FTSR_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */
  6243. #define EXTI_FTSR_TR6_Pos (6U)
  6244. #define EXTI_FTSR_TR6_Msk (0x1U << EXTI_FTSR_TR6_Pos) /*!< 0x00000040 */
  6245. #define EXTI_FTSR_TR6 EXTI_FTSR_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */
  6246. #define EXTI_FTSR_TR7_Pos (7U)
  6247. #define EXTI_FTSR_TR7_Msk (0x1U << EXTI_FTSR_TR7_Pos) /*!< 0x00000080 */
  6248. #define EXTI_FTSR_TR7 EXTI_FTSR_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */
  6249. #define EXTI_FTSR_TR8_Pos (8U)
  6250. #define EXTI_FTSR_TR8_Msk (0x1U << EXTI_FTSR_TR8_Pos) /*!< 0x00000100 */
  6251. #define EXTI_FTSR_TR8 EXTI_FTSR_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */
  6252. #define EXTI_FTSR_TR9_Pos (9U)
  6253. #define EXTI_FTSR_TR9_Msk (0x1U << EXTI_FTSR_TR9_Pos) /*!< 0x00000200 */
  6254. #define EXTI_FTSR_TR9 EXTI_FTSR_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */
  6255. #define EXTI_FTSR_TR10_Pos (10U)
  6256. #define EXTI_FTSR_TR10_Msk (0x1U << EXTI_FTSR_TR10_Pos) /*!< 0x00000400 */
  6257. #define EXTI_FTSR_TR10 EXTI_FTSR_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */
  6258. #define EXTI_FTSR_TR11_Pos (11U)
  6259. #define EXTI_FTSR_TR11_Msk (0x1U << EXTI_FTSR_TR11_Pos) /*!< 0x00000800 */
  6260. #define EXTI_FTSR_TR11 EXTI_FTSR_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */
  6261. #define EXTI_FTSR_TR12_Pos (12U)
  6262. #define EXTI_FTSR_TR12_Msk (0x1U << EXTI_FTSR_TR12_Pos) /*!< 0x00001000 */
  6263. #define EXTI_FTSR_TR12 EXTI_FTSR_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */
  6264. #define EXTI_FTSR_TR13_Pos (13U)
  6265. #define EXTI_FTSR_TR13_Msk (0x1U << EXTI_FTSR_TR13_Pos) /*!< 0x00002000 */
  6266. #define EXTI_FTSR_TR13 EXTI_FTSR_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */
  6267. #define EXTI_FTSR_TR14_Pos (14U)
  6268. #define EXTI_FTSR_TR14_Msk (0x1U << EXTI_FTSR_TR14_Pos) /*!< 0x00004000 */
  6269. #define EXTI_FTSR_TR14 EXTI_FTSR_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */
  6270. #define EXTI_FTSR_TR15_Pos (15U)
  6271. #define EXTI_FTSR_TR15_Msk (0x1U << EXTI_FTSR_TR15_Pos) /*!< 0x00008000 */
  6272. #define EXTI_FTSR_TR15 EXTI_FTSR_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */
  6273. #define EXTI_FTSR_TR16_Pos (16U)
  6274. #define EXTI_FTSR_TR16_Msk (0x1U << EXTI_FTSR_TR16_Pos) /*!< 0x00010000 */
  6275. #define EXTI_FTSR_TR16 EXTI_FTSR_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */
  6276. #define EXTI_FTSR_TR17_Pos (17U)
  6277. #define EXTI_FTSR_TR17_Msk (0x1U << EXTI_FTSR_TR17_Pos) /*!< 0x00020000 */
  6278. #define EXTI_FTSR_TR17 EXTI_FTSR_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */
  6279. #define EXTI_FTSR_TR19_Pos (19U)
  6280. #define EXTI_FTSR_TR19_Msk (0x1U << EXTI_FTSR_TR19_Pos) /*!< 0x00080000 */
  6281. #define EXTI_FTSR_TR19 EXTI_FTSR_TR19_Msk /*!< Falling trigger event configuration bit of line 19 */
  6282. #define EXTI_FTSR_TR20_Pos (20U)
  6283. #define EXTI_FTSR_TR20_Msk (0x1U << EXTI_FTSR_TR20_Pos) /*!< 0x00100000 */
  6284. #define EXTI_FTSR_TR20 EXTI_FTSR_TR20_Msk /*!< Falling trigger event configuration bit of line 20 */
  6285. #define EXTI_FTSR_TR21_Pos (21U)
  6286. #define EXTI_FTSR_TR21_Msk (0x1U << EXTI_FTSR_TR21_Pos) /*!< 0x00200000 */
  6287. #define EXTI_FTSR_TR21 EXTI_FTSR_TR21_Msk /*!< Falling trigger event configuration bit of line 21 */
  6288. #define EXTI_FTSR_TR22_Pos (22U)
  6289. #define EXTI_FTSR_TR22_Msk (0x1U << EXTI_FTSR_TR22_Pos) /*!< 0x00400000 */
  6290. #define EXTI_FTSR_TR22 EXTI_FTSR_TR22_Msk /*!< Falling trigger event configuration bit of line 22 */
  6291. #define EXTI_FTSR_TR31_Pos (31U)
  6292. #define EXTI_FTSR_TR31_Msk (0x1U << EXTI_FTSR_TR31_Pos) /*!< 0x80000000 */
  6293. #define EXTI_FTSR_TR31 EXTI_FTSR_TR31_Msk /*!< Falling trigger event configuration bit of line 31 */
  6294. /* References Defines */
  6295. #define EXTI_FTSR_FT0 EXTI_FTSR_TR0
  6296. #define EXTI_FTSR_FT1 EXTI_FTSR_TR1
  6297. #define EXTI_FTSR_FT2 EXTI_FTSR_TR2
  6298. #define EXTI_FTSR_FT3 EXTI_FTSR_TR3
  6299. #define EXTI_FTSR_FT4 EXTI_FTSR_TR4
  6300. #define EXTI_FTSR_FT5 EXTI_FTSR_TR5
  6301. #define EXTI_FTSR_FT6 EXTI_FTSR_TR6
  6302. #define EXTI_FTSR_FT7 EXTI_FTSR_TR7
  6303. #define EXTI_FTSR_FT8 EXTI_FTSR_TR8
  6304. #define EXTI_FTSR_FT9 EXTI_FTSR_TR9
  6305. #define EXTI_FTSR_FT10 EXTI_FTSR_TR10
  6306. #define EXTI_FTSR_FT11 EXTI_FTSR_TR11
  6307. #define EXTI_FTSR_FT12 EXTI_FTSR_TR12
  6308. #define EXTI_FTSR_FT13 EXTI_FTSR_TR13
  6309. #define EXTI_FTSR_FT14 EXTI_FTSR_TR14
  6310. #define EXTI_FTSR_FT15 EXTI_FTSR_TR15
  6311. #define EXTI_FTSR_FT16 EXTI_FTSR_TR16
  6312. #define EXTI_FTSR_FT17 EXTI_FTSR_TR17
  6313. #define EXTI_FTSR_FT19 EXTI_FTSR_TR19
  6314. #define EXTI_FTSR_FT20 EXTI_FTSR_TR20
  6315. #define EXTI_FTSR_FT21 EXTI_FTSR_TR21
  6316. #define EXTI_FTSR_FT22 EXTI_FTSR_TR22
  6317. #define EXTI_FTSR_FT31 EXTI_FTSR_TR31
  6318. /******************* Bit definition for EXTI_SWIER register *******************/
  6319. #define EXTI_SWIER_SWIER0_Pos (0U)
  6320. #define EXTI_SWIER_SWIER0_Msk (0x1U << EXTI_SWIER_SWIER0_Pos) /*!< 0x00000001 */
  6321. #define EXTI_SWIER_SWIER0 EXTI_SWIER_SWIER0_Msk /*!< Software Interrupt on line 0 */
  6322. #define EXTI_SWIER_SWIER1_Pos (1U)
  6323. #define EXTI_SWIER_SWIER1_Msk (0x1U << EXTI_SWIER_SWIER1_Pos) /*!< 0x00000002 */
  6324. #define EXTI_SWIER_SWIER1 EXTI_SWIER_SWIER1_Msk /*!< Software Interrupt on line 1 */
  6325. #define EXTI_SWIER_SWIER2_Pos (2U)
  6326. #define EXTI_SWIER_SWIER2_Msk (0x1U << EXTI_SWIER_SWIER2_Pos) /*!< 0x00000004 */
  6327. #define EXTI_SWIER_SWIER2 EXTI_SWIER_SWIER2_Msk /*!< Software Interrupt on line 2 */
  6328. #define EXTI_SWIER_SWIER3_Pos (3U)
  6329. #define EXTI_SWIER_SWIER3_Msk (0x1U << EXTI_SWIER_SWIER3_Pos) /*!< 0x00000008 */
  6330. #define EXTI_SWIER_SWIER3 EXTI_SWIER_SWIER3_Msk /*!< Software Interrupt on line 3 */
  6331. #define EXTI_SWIER_SWIER4_Pos (4U)
  6332. #define EXTI_SWIER_SWIER4_Msk (0x1U << EXTI_SWIER_SWIER4_Pos) /*!< 0x00000010 */
  6333. #define EXTI_SWIER_SWIER4 EXTI_SWIER_SWIER4_Msk /*!< Software Interrupt on line 4 */
  6334. #define EXTI_SWIER_SWIER5_Pos (5U)
  6335. #define EXTI_SWIER_SWIER5_Msk (0x1U << EXTI_SWIER_SWIER5_Pos) /*!< 0x00000020 */
  6336. #define EXTI_SWIER_SWIER5 EXTI_SWIER_SWIER5_Msk /*!< Software Interrupt on line 5 */
  6337. #define EXTI_SWIER_SWIER6_Pos (6U)
  6338. #define EXTI_SWIER_SWIER6_Msk (0x1U << EXTI_SWIER_SWIER6_Pos) /*!< 0x00000040 */
  6339. #define EXTI_SWIER_SWIER6 EXTI_SWIER_SWIER6_Msk /*!< Software Interrupt on line 6 */
  6340. #define EXTI_SWIER_SWIER7_Pos (7U)
  6341. #define EXTI_SWIER_SWIER7_Msk (0x1U << EXTI_SWIER_SWIER7_Pos) /*!< 0x00000080 */
  6342. #define EXTI_SWIER_SWIER7 EXTI_SWIER_SWIER7_Msk /*!< Software Interrupt on line 7 */
  6343. #define EXTI_SWIER_SWIER8_Pos (8U)
  6344. #define EXTI_SWIER_SWIER8_Msk (0x1U << EXTI_SWIER_SWIER8_Pos) /*!< 0x00000100 */
  6345. #define EXTI_SWIER_SWIER8 EXTI_SWIER_SWIER8_Msk /*!< Software Interrupt on line 8 */
  6346. #define EXTI_SWIER_SWIER9_Pos (9U)
  6347. #define EXTI_SWIER_SWIER9_Msk (0x1U << EXTI_SWIER_SWIER9_Pos) /*!< 0x00000200 */
  6348. #define EXTI_SWIER_SWIER9 EXTI_SWIER_SWIER9_Msk /*!< Software Interrupt on line 9 */
  6349. #define EXTI_SWIER_SWIER10_Pos (10U)
  6350. #define EXTI_SWIER_SWIER10_Msk (0x1U << EXTI_SWIER_SWIER10_Pos) /*!< 0x00000400 */
  6351. #define EXTI_SWIER_SWIER10 EXTI_SWIER_SWIER10_Msk /*!< Software Interrupt on line 10 */
  6352. #define EXTI_SWIER_SWIER11_Pos (11U)
  6353. #define EXTI_SWIER_SWIER11_Msk (0x1U << EXTI_SWIER_SWIER11_Pos) /*!< 0x00000800 */
  6354. #define EXTI_SWIER_SWIER11 EXTI_SWIER_SWIER11_Msk /*!< Software Interrupt on line 11 */
  6355. #define EXTI_SWIER_SWIER12_Pos (12U)
  6356. #define EXTI_SWIER_SWIER12_Msk (0x1U << EXTI_SWIER_SWIER12_Pos) /*!< 0x00001000 */
  6357. #define EXTI_SWIER_SWIER12 EXTI_SWIER_SWIER12_Msk /*!< Software Interrupt on line 12 */
  6358. #define EXTI_SWIER_SWIER13_Pos (13U)
  6359. #define EXTI_SWIER_SWIER13_Msk (0x1U << EXTI_SWIER_SWIER13_Pos) /*!< 0x00002000 */
  6360. #define EXTI_SWIER_SWIER13 EXTI_SWIER_SWIER13_Msk /*!< Software Interrupt on line 13 */
  6361. #define EXTI_SWIER_SWIER14_Pos (14U)
  6362. #define EXTI_SWIER_SWIER14_Msk (0x1U << EXTI_SWIER_SWIER14_Pos) /*!< 0x00004000 */
  6363. #define EXTI_SWIER_SWIER14 EXTI_SWIER_SWIER14_Msk /*!< Software Interrupt on line 14 */
  6364. #define EXTI_SWIER_SWIER15_Pos (15U)
  6365. #define EXTI_SWIER_SWIER15_Msk (0x1U << EXTI_SWIER_SWIER15_Pos) /*!< 0x00008000 */
  6366. #define EXTI_SWIER_SWIER15 EXTI_SWIER_SWIER15_Msk /*!< Software Interrupt on line 15 */
  6367. #define EXTI_SWIER_SWIER16_Pos (16U)
  6368. #define EXTI_SWIER_SWIER16_Msk (0x1U << EXTI_SWIER_SWIER16_Pos) /*!< 0x00010000 */
  6369. #define EXTI_SWIER_SWIER16 EXTI_SWIER_SWIER16_Msk /*!< Software Interrupt on line 16 */
  6370. #define EXTI_SWIER_SWIER17_Pos (17U)
  6371. #define EXTI_SWIER_SWIER17_Msk (0x1U << EXTI_SWIER_SWIER17_Pos) /*!< 0x00020000 */
  6372. #define EXTI_SWIER_SWIER17 EXTI_SWIER_SWIER17_Msk /*!< Software Interrupt on line 17 */
  6373. #define EXTI_SWIER_SWIER19_Pos (19U)
  6374. #define EXTI_SWIER_SWIER19_Msk (0x1U << EXTI_SWIER_SWIER19_Pos) /*!< 0x00080000 */
  6375. #define EXTI_SWIER_SWIER19 EXTI_SWIER_SWIER19_Msk /*!< Software Interrupt on line 19 */
  6376. #define EXTI_SWIER_SWIER20_Pos (20U)
  6377. #define EXTI_SWIER_SWIER20_Msk (0x1U << EXTI_SWIER_SWIER20_Pos) /*!< 0x00100000 */
  6378. #define EXTI_SWIER_SWIER20 EXTI_SWIER_SWIER20_Msk /*!< Software Interrupt on line 20 */
  6379. #define EXTI_SWIER_SWIER21_Pos (21U)
  6380. #define EXTI_SWIER_SWIER21_Msk (0x1U << EXTI_SWIER_SWIER21_Pos) /*!< 0x00200000 */
  6381. #define EXTI_SWIER_SWIER21 EXTI_SWIER_SWIER21_Msk /*!< Software Interrupt on line 21 */
  6382. #define EXTI_SWIER_SWIER22_Pos (22U)
  6383. #define EXTI_SWIER_SWIER22_Msk (0x1U << EXTI_SWIER_SWIER22_Pos) /*!< 0x00400000 */
  6384. #define EXTI_SWIER_SWIER22 EXTI_SWIER_SWIER22_Msk /*!< Software Interrupt on line 22 */
  6385. #define EXTI_SWIER_SWIER31_Pos (31U)
  6386. #define EXTI_SWIER_SWIER31_Msk (0x1U << EXTI_SWIER_SWIER31_Pos) /*!< 0x80000000 */
  6387. #define EXTI_SWIER_SWIER31 EXTI_SWIER_SWIER31_Msk /*!< Software Interrupt on line 31 */
  6388. /* References Defines */
  6389. #define EXTI_SWIER_SWI0 EXTI_SWIER_SWIER0
  6390. #define EXTI_SWIER_SWI1 EXTI_SWIER_SWIER1
  6391. #define EXTI_SWIER_SWI2 EXTI_SWIER_SWIER2
  6392. #define EXTI_SWIER_SWI3 EXTI_SWIER_SWIER3
  6393. #define EXTI_SWIER_SWI4 EXTI_SWIER_SWIER4
  6394. #define EXTI_SWIER_SWI5 EXTI_SWIER_SWIER5
  6395. #define EXTI_SWIER_SWI6 EXTI_SWIER_SWIER6
  6396. #define EXTI_SWIER_SWI7 EXTI_SWIER_SWIER7
  6397. #define EXTI_SWIER_SWI8 EXTI_SWIER_SWIER8
  6398. #define EXTI_SWIER_SWI9 EXTI_SWIER_SWIER9
  6399. #define EXTI_SWIER_SWI10 EXTI_SWIER_SWIER10
  6400. #define EXTI_SWIER_SWI11 EXTI_SWIER_SWIER11
  6401. #define EXTI_SWIER_SWI12 EXTI_SWIER_SWIER12
  6402. #define EXTI_SWIER_SWI13 EXTI_SWIER_SWIER13
  6403. #define EXTI_SWIER_SWI14 EXTI_SWIER_SWIER14
  6404. #define EXTI_SWIER_SWI15 EXTI_SWIER_SWIER15
  6405. #define EXTI_SWIER_SWI16 EXTI_SWIER_SWIER16
  6406. #define EXTI_SWIER_SWI17 EXTI_SWIER_SWIER17
  6407. #define EXTI_SWIER_SWI19 EXTI_SWIER_SWIER19
  6408. #define EXTI_SWIER_SWI20 EXTI_SWIER_SWIER20
  6409. #define EXTI_SWIER_SWI21 EXTI_SWIER_SWIER21
  6410. #define EXTI_SWIER_SWI22 EXTI_SWIER_SWIER22
  6411. #define EXTI_SWIER_SWI31 EXTI_SWIER_SWIER31
  6412. /****************** Bit definition for EXTI_PR register *********************/
  6413. #define EXTI_PR_PR0_Pos (0U)
  6414. #define EXTI_PR_PR0_Msk (0x1U << EXTI_PR_PR0_Pos) /*!< 0x00000001 */
  6415. #define EXTI_PR_PR0 EXTI_PR_PR0_Msk /*!< Pending bit 0 */
  6416. #define EXTI_PR_PR1_Pos (1U)
  6417. #define EXTI_PR_PR1_Msk (0x1U << EXTI_PR_PR1_Pos) /*!< 0x00000002 */
  6418. #define EXTI_PR_PR1 EXTI_PR_PR1_Msk /*!< Pending bit 1 */
  6419. #define EXTI_PR_PR2_Pos (2U)
  6420. #define EXTI_PR_PR2_Msk (0x1U << EXTI_PR_PR2_Pos) /*!< 0x00000004 */
  6421. #define EXTI_PR_PR2 EXTI_PR_PR2_Msk /*!< Pending bit 2 */
  6422. #define EXTI_PR_PR3_Pos (3U)
  6423. #define EXTI_PR_PR3_Msk (0x1U << EXTI_PR_PR3_Pos) /*!< 0x00000008 */
  6424. #define EXTI_PR_PR3 EXTI_PR_PR3_Msk /*!< Pending bit 3 */
  6425. #define EXTI_PR_PR4_Pos (4U)
  6426. #define EXTI_PR_PR4_Msk (0x1U << EXTI_PR_PR4_Pos) /*!< 0x00000010 */
  6427. #define EXTI_PR_PR4 EXTI_PR_PR4_Msk /*!< Pending bit 4 */
  6428. #define EXTI_PR_PR5_Pos (5U)
  6429. #define EXTI_PR_PR5_Msk (0x1U << EXTI_PR_PR5_Pos) /*!< 0x00000020 */
  6430. #define EXTI_PR_PR5 EXTI_PR_PR5_Msk /*!< Pending bit 5 */
  6431. #define EXTI_PR_PR6_Pos (6U)
  6432. #define EXTI_PR_PR6_Msk (0x1U << EXTI_PR_PR6_Pos) /*!< 0x00000040 */
  6433. #define EXTI_PR_PR6 EXTI_PR_PR6_Msk /*!< Pending bit 6 */
  6434. #define EXTI_PR_PR7_Pos (7U)
  6435. #define EXTI_PR_PR7_Msk (0x1U << EXTI_PR_PR7_Pos) /*!< 0x00000080 */
  6436. #define EXTI_PR_PR7 EXTI_PR_PR7_Msk /*!< Pending bit 7 */
  6437. #define EXTI_PR_PR8_Pos (8U)
  6438. #define EXTI_PR_PR8_Msk (0x1U << EXTI_PR_PR8_Pos) /*!< 0x00000100 */
  6439. #define EXTI_PR_PR8 EXTI_PR_PR8_Msk /*!< Pending bit 8 */
  6440. #define EXTI_PR_PR9_Pos (9U)
  6441. #define EXTI_PR_PR9_Msk (0x1U << EXTI_PR_PR9_Pos) /*!< 0x00000200 */
  6442. #define EXTI_PR_PR9 EXTI_PR_PR9_Msk /*!< Pending bit 9 */
  6443. #define EXTI_PR_PR10_Pos (10U)
  6444. #define EXTI_PR_PR10_Msk (0x1U << EXTI_PR_PR10_Pos) /*!< 0x00000400 */
  6445. #define EXTI_PR_PR10 EXTI_PR_PR10_Msk /*!< Pending bit 10 */
  6446. #define EXTI_PR_PR11_Pos (11U)
  6447. #define EXTI_PR_PR11_Msk (0x1U << EXTI_PR_PR11_Pos) /*!< 0x00000800 */
  6448. #define EXTI_PR_PR11 EXTI_PR_PR11_Msk /*!< Pending bit 11 */
  6449. #define EXTI_PR_PR12_Pos (12U)
  6450. #define EXTI_PR_PR12_Msk (0x1U << EXTI_PR_PR12_Pos) /*!< 0x00001000 */
  6451. #define EXTI_PR_PR12 EXTI_PR_PR12_Msk /*!< Pending bit 12 */
  6452. #define EXTI_PR_PR13_Pos (13U)
  6453. #define EXTI_PR_PR13_Msk (0x1U << EXTI_PR_PR13_Pos) /*!< 0x00002000 */
  6454. #define EXTI_PR_PR13 EXTI_PR_PR13_Msk /*!< Pending bit 13 */
  6455. #define EXTI_PR_PR14_Pos (14U)
  6456. #define EXTI_PR_PR14_Msk (0x1U << EXTI_PR_PR14_Pos) /*!< 0x00004000 */
  6457. #define EXTI_PR_PR14 EXTI_PR_PR14_Msk /*!< Pending bit 14 */
  6458. #define EXTI_PR_PR15_Pos (15U)
  6459. #define EXTI_PR_PR15_Msk (0x1U << EXTI_PR_PR15_Pos) /*!< 0x00008000 */
  6460. #define EXTI_PR_PR15 EXTI_PR_PR15_Msk /*!< Pending bit 15 */
  6461. #define EXTI_PR_PR16_Pos (16U)
  6462. #define EXTI_PR_PR16_Msk (0x1U << EXTI_PR_PR16_Pos) /*!< 0x00010000 */
  6463. #define EXTI_PR_PR16 EXTI_PR_PR16_Msk /*!< Pending bit 16 */
  6464. #define EXTI_PR_PR17_Pos (17U)
  6465. #define EXTI_PR_PR17_Msk (0x1U << EXTI_PR_PR17_Pos) /*!< 0x00020000 */
  6466. #define EXTI_PR_PR17 EXTI_PR_PR17_Msk /*!< Pending bit 17 */
  6467. #define EXTI_PR_PR19_Pos (19U)
  6468. #define EXTI_PR_PR19_Msk (0x1U << EXTI_PR_PR19_Pos) /*!< 0x00080000 */
  6469. #define EXTI_PR_PR19 EXTI_PR_PR19_Msk /*!< Pending bit 19 */
  6470. #define EXTI_PR_PR20_Pos (20U)
  6471. #define EXTI_PR_PR20_Msk (0x1U << EXTI_PR_PR20_Pos) /*!< 0x00100000 */
  6472. #define EXTI_PR_PR20 EXTI_PR_PR20_Msk /*!< Pending bit 20 */
  6473. #define EXTI_PR_PR21_Pos (21U)
  6474. #define EXTI_PR_PR21_Msk (0x1U << EXTI_PR_PR21_Pos) /*!< 0x00200000 */
  6475. #define EXTI_PR_PR21 EXTI_PR_PR21_Msk /*!< Pending bit 21 */
  6476. #define EXTI_PR_PR22_Pos (22U)
  6477. #define EXTI_PR_PR22_Msk (0x1U << EXTI_PR_PR22_Pos) /*!< 0x00400000 */
  6478. #define EXTI_PR_PR22 EXTI_PR_PR22_Msk /*!< Pending bit 22 */
  6479. #define EXTI_PR_PR31_Pos (31U)
  6480. #define EXTI_PR_PR31_Msk (0x1U << EXTI_PR_PR31_Pos) /*!< 0x80000000 */
  6481. #define EXTI_PR_PR31 EXTI_PR_PR31_Msk /*!< Pending bit 31 */
  6482. /* References Defines */
  6483. #define EXTI_PR_PIF0 EXTI_PR_PR0
  6484. #define EXTI_PR_PIF1 EXTI_PR_PR1
  6485. #define EXTI_PR_PIF2 EXTI_PR_PR2
  6486. #define EXTI_PR_PIF3 EXTI_PR_PR3
  6487. #define EXTI_PR_PIF4 EXTI_PR_PR4
  6488. #define EXTI_PR_PIF5 EXTI_PR_PR5
  6489. #define EXTI_PR_PIF6 EXTI_PR_PR6
  6490. #define EXTI_PR_PIF7 EXTI_PR_PR7
  6491. #define EXTI_PR_PIF8 EXTI_PR_PR8
  6492. #define EXTI_PR_PIF9 EXTI_PR_PR9
  6493. #define EXTI_PR_PIF10 EXTI_PR_PR10
  6494. #define EXTI_PR_PIF11 EXTI_PR_PR11
  6495. #define EXTI_PR_PIF12 EXTI_PR_PR12
  6496. #define EXTI_PR_PIF13 EXTI_PR_PR13
  6497. #define EXTI_PR_PIF14 EXTI_PR_PR14
  6498. #define EXTI_PR_PIF15 EXTI_PR_PR15
  6499. #define EXTI_PR_PIF16 EXTI_PR_PR16
  6500. #define EXTI_PR_PIF17 EXTI_PR_PR17
  6501. #define EXTI_PR_PIF19 EXTI_PR_PR19
  6502. #define EXTI_PR_PIF20 EXTI_PR_PR20
  6503. #define EXTI_PR_PIF21 EXTI_PR_PR21
  6504. #define EXTI_PR_PIF22 EXTI_PR_PR22
  6505. #define EXTI_PR_PIF31 EXTI_PR_PR31
  6506. /******************************************************************************/
  6507. /* */
  6508. /* FLASH and Option Bytes Registers */
  6509. /* */
  6510. /******************************************************************************/
  6511. /******************* Bit definition for FLASH_ACR register ******************/
  6512. #define FLASH_ACR_LATENCY_Pos (0U)
  6513. #define FLASH_ACR_LATENCY_Msk (0x1U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000001 */
  6514. #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk /*!< LATENCY bit (Latency) */
  6515. #define FLASH_ACR_PRFTBE_Pos (4U)
  6516. #define FLASH_ACR_PRFTBE_Msk (0x1U << FLASH_ACR_PRFTBE_Pos) /*!< 0x00000010 */
  6517. #define FLASH_ACR_PRFTBE FLASH_ACR_PRFTBE_Msk /*!< Prefetch Buffer Enable */
  6518. #define FLASH_ACR_PRFTBS_Pos (5U)
  6519. #define FLASH_ACR_PRFTBS_Msk (0x1U << FLASH_ACR_PRFTBS_Pos) /*!< 0x00000020 */
  6520. #define FLASH_ACR_PRFTBS FLASH_ACR_PRFTBS_Msk /*!< Prefetch Buffer Status */
  6521. /****************** Bit definition for FLASH_KEYR register ******************/
  6522. #define FLASH_KEYR_FKEYR_Pos (0U)
  6523. #define FLASH_KEYR_FKEYR_Msk (0xFFFFFFFFU << FLASH_KEYR_FKEYR_Pos) /*!< 0xFFFFFFFF */
  6524. #define FLASH_KEYR_FKEYR FLASH_KEYR_FKEYR_Msk /*!< FPEC Key */
  6525. /***************** Bit definition for FLASH_OPTKEYR register ****************/
  6526. #define FLASH_OPTKEYR_OPTKEYR_Pos (0U)
  6527. #define FLASH_OPTKEYR_OPTKEYR_Msk (0xFFFFFFFFU << FLASH_OPTKEYR_OPTKEYR_Pos) /*!< 0xFFFFFFFF */
  6528. #define FLASH_OPTKEYR_OPTKEYR FLASH_OPTKEYR_OPTKEYR_Msk /*!< Option Byte Key */
  6529. /****************** FLASH Keys **********************************************/
  6530. #define FLASH_KEY1_Pos (0U)
  6531. #define FLASH_KEY1_Msk (0x45670123U << FLASH_KEY1_Pos) /*!< 0x45670123 */
  6532. #define FLASH_KEY1 FLASH_KEY1_Msk /*!< Flash program erase key1 */
  6533. #define FLASH_KEY2_Pos (0U)
  6534. #define FLASH_KEY2_Msk (0xCDEF89ABU << FLASH_KEY2_Pos) /*!< 0xCDEF89AB */
  6535. #define FLASH_KEY2 FLASH_KEY2_Msk /*!< Flash program erase key2: used with FLASH_PEKEY1
  6536. to unlock the write access to the FPEC. */
  6537. #define FLASH_OPTKEY1_Pos (0U)
  6538. #define FLASH_OPTKEY1_Msk (0x45670123U << FLASH_OPTKEY1_Pos) /*!< 0x45670123 */
  6539. #define FLASH_OPTKEY1 FLASH_OPTKEY1_Msk /*!< Flash option key1 */
  6540. #define FLASH_OPTKEY2_Pos (0U)
  6541. #define FLASH_OPTKEY2_Msk (0xCDEF89ABU << FLASH_OPTKEY2_Pos) /*!< 0xCDEF89AB */
  6542. #define FLASH_OPTKEY2 FLASH_OPTKEY2_Msk /*!< Flash option key2: used with FLASH_OPTKEY1 to
  6543. unlock the write access to the option byte block */
  6544. /****************** Bit definition for FLASH_SR register *******************/
  6545. #define FLASH_SR_BSY_Pos (0U)
  6546. #define FLASH_SR_BSY_Msk (0x1U << FLASH_SR_BSY_Pos) /*!< 0x00000001 */
  6547. #define FLASH_SR_BSY FLASH_SR_BSY_Msk /*!< Busy */
  6548. #define FLASH_SR_PGERR_Pos (2U)
  6549. #define FLASH_SR_PGERR_Msk (0x1U << FLASH_SR_PGERR_Pos) /*!< 0x00000004 */
  6550. #define FLASH_SR_PGERR FLASH_SR_PGERR_Msk /*!< Programming Error */
  6551. #define FLASH_SR_WRPRTERR_Pos (4U)
  6552. #define FLASH_SR_WRPRTERR_Msk (0x1U << FLASH_SR_WRPRTERR_Pos) /*!< 0x00000010 */
  6553. #define FLASH_SR_WRPRTERR FLASH_SR_WRPRTERR_Msk /*!< Write Protection Error */
  6554. #define FLASH_SR_EOP_Pos (5U)
  6555. #define FLASH_SR_EOP_Msk (0x1U << FLASH_SR_EOP_Pos) /*!< 0x00000020 */
  6556. #define FLASH_SR_EOP FLASH_SR_EOP_Msk /*!< End of operation */
  6557. #define FLASH_SR_WRPERR FLASH_SR_WRPRTERR /*!< Legacy of Write Protection Error */
  6558. /******************* Bit definition for FLASH_CR register *******************/
  6559. #define FLASH_CR_PG_Pos (0U)
  6560. #define FLASH_CR_PG_Msk (0x1U << FLASH_CR_PG_Pos) /*!< 0x00000001 */
  6561. #define FLASH_CR_PG FLASH_CR_PG_Msk /*!< Programming */
  6562. #define FLASH_CR_PER_Pos (1U)
  6563. #define FLASH_CR_PER_Msk (0x1U << FLASH_CR_PER_Pos) /*!< 0x00000002 */
  6564. #define FLASH_CR_PER FLASH_CR_PER_Msk /*!< Page Erase */
  6565. #define FLASH_CR_MER_Pos (2U)
  6566. #define FLASH_CR_MER_Msk (0x1U << FLASH_CR_MER_Pos) /*!< 0x00000004 */
  6567. #define FLASH_CR_MER FLASH_CR_MER_Msk /*!< Mass Erase */
  6568. #define FLASH_CR_OPTPG_Pos (4U)
  6569. #define FLASH_CR_OPTPG_Msk (0x1U << FLASH_CR_OPTPG_Pos) /*!< 0x00000010 */
  6570. #define FLASH_CR_OPTPG FLASH_CR_OPTPG_Msk /*!< Option Byte Programming */
  6571. #define FLASH_CR_OPTER_Pos (5U)
  6572. #define FLASH_CR_OPTER_Msk (0x1U << FLASH_CR_OPTER_Pos) /*!< 0x00000020 */
  6573. #define FLASH_CR_OPTER FLASH_CR_OPTER_Msk /*!< Option Byte Erase */
  6574. #define FLASH_CR_STRT_Pos (6U)
  6575. #define FLASH_CR_STRT_Msk (0x1U << FLASH_CR_STRT_Pos) /*!< 0x00000040 */
  6576. #define FLASH_CR_STRT FLASH_CR_STRT_Msk /*!< Start */
  6577. #define FLASH_CR_LOCK_Pos (7U)
  6578. #define FLASH_CR_LOCK_Msk (0x1U << FLASH_CR_LOCK_Pos) /*!< 0x00000080 */
  6579. #define FLASH_CR_LOCK FLASH_CR_LOCK_Msk /*!< Lock */
  6580. #define FLASH_CR_OPTWRE_Pos (9U)
  6581. #define FLASH_CR_OPTWRE_Msk (0x1U << FLASH_CR_OPTWRE_Pos) /*!< 0x00000200 */
  6582. #define FLASH_CR_OPTWRE FLASH_CR_OPTWRE_Msk /*!< Option Bytes Write Enable */
  6583. #define FLASH_CR_ERRIE_Pos (10U)
  6584. #define FLASH_CR_ERRIE_Msk (0x1U << FLASH_CR_ERRIE_Pos) /*!< 0x00000400 */
  6585. #define FLASH_CR_ERRIE FLASH_CR_ERRIE_Msk /*!< Error Interrupt Enable */
  6586. #define FLASH_CR_EOPIE_Pos (12U)
  6587. #define FLASH_CR_EOPIE_Msk (0x1U << FLASH_CR_EOPIE_Pos) /*!< 0x00001000 */
  6588. #define FLASH_CR_EOPIE FLASH_CR_EOPIE_Msk /*!< End of operation interrupt enable */
  6589. #define FLASH_CR_OBL_LAUNCH_Pos (13U)
  6590. #define FLASH_CR_OBL_LAUNCH_Msk (0x1U << FLASH_CR_OBL_LAUNCH_Pos) /*!< 0x00002000 */
  6591. #define FLASH_CR_OBL_LAUNCH FLASH_CR_OBL_LAUNCH_Msk /*!< Option Bytes Loader Launch */
  6592. /******************* Bit definition for FLASH_AR register *******************/
  6593. #define FLASH_AR_FAR_Pos (0U)
  6594. #define FLASH_AR_FAR_Msk (0xFFFFFFFFU << FLASH_AR_FAR_Pos) /*!< 0xFFFFFFFF */
  6595. #define FLASH_AR_FAR FLASH_AR_FAR_Msk /*!< Flash Address */
  6596. /****************** Bit definition for FLASH_OBR register *******************/
  6597. #define FLASH_OBR_OPTERR_Pos (0U)
  6598. #define FLASH_OBR_OPTERR_Msk (0x1U << FLASH_OBR_OPTERR_Pos) /*!< 0x00000001 */
  6599. #define FLASH_OBR_OPTERR FLASH_OBR_OPTERR_Msk /*!< Option Byte Error */
  6600. #define FLASH_OBR_RDPRT1_Pos (1U)
  6601. #define FLASH_OBR_RDPRT1_Msk (0x1U << FLASH_OBR_RDPRT1_Pos) /*!< 0x00000002 */
  6602. #define FLASH_OBR_RDPRT1 FLASH_OBR_RDPRT1_Msk /*!< Read protection Level 1 */
  6603. #define FLASH_OBR_RDPRT2_Pos (2U)
  6604. #define FLASH_OBR_RDPRT2_Msk (0x1U << FLASH_OBR_RDPRT2_Pos) /*!< 0x00000004 */
  6605. #define FLASH_OBR_RDPRT2 FLASH_OBR_RDPRT2_Msk /*!< Read protection Level 2 */
  6606. #define FLASH_OBR_USER_Pos (8U)
  6607. #define FLASH_OBR_USER_Msk (0xFFU << FLASH_OBR_USER_Pos) /*!< 0x0000FF00 */
  6608. #define FLASH_OBR_USER FLASH_OBR_USER_Msk /*!< User Option Bytes */
  6609. #define FLASH_OBR_IWDG_SW_Pos (8U)
  6610. #define FLASH_OBR_IWDG_SW_Msk (0x1U << FLASH_OBR_IWDG_SW_Pos) /*!< 0x00000100 */
  6611. #define FLASH_OBR_IWDG_SW FLASH_OBR_IWDG_SW_Msk /*!< IWDG SW */
  6612. #define FLASH_OBR_nRST_STOP_Pos (9U)
  6613. #define FLASH_OBR_nRST_STOP_Msk (0x1U << FLASH_OBR_nRST_STOP_Pos) /*!< 0x00000200 */
  6614. #define FLASH_OBR_nRST_STOP FLASH_OBR_nRST_STOP_Msk /*!< nRST_STOP */
  6615. #define FLASH_OBR_nRST_STDBY_Pos (10U)
  6616. #define FLASH_OBR_nRST_STDBY_Msk (0x1U << FLASH_OBR_nRST_STDBY_Pos) /*!< 0x00000400 */
  6617. #define FLASH_OBR_nRST_STDBY FLASH_OBR_nRST_STDBY_Msk /*!< nRST_STDBY */
  6618. #define FLASH_OBR_nBOOT0_Pos (11U)
  6619. #define FLASH_OBR_nBOOT0_Msk (0x1U << FLASH_OBR_nBOOT0_Pos) /*!< 0x00000800 */
  6620. #define FLASH_OBR_nBOOT0 FLASH_OBR_nBOOT0_Msk /*!< nBOOT0 */
  6621. #define FLASH_OBR_nBOOT1_Pos (12U)
  6622. #define FLASH_OBR_nBOOT1_Msk (0x1U << FLASH_OBR_nBOOT1_Pos) /*!< 0x00001000 */
  6623. #define FLASH_OBR_nBOOT1 FLASH_OBR_nBOOT1_Msk /*!< nBOOT1 */
  6624. #define FLASH_OBR_VDDA_MONITOR_Pos (13U)
  6625. #define FLASH_OBR_VDDA_MONITOR_Msk (0x1U << FLASH_OBR_VDDA_MONITOR_Pos) /*!< 0x00002000 */
  6626. #define FLASH_OBR_VDDA_MONITOR FLASH_OBR_VDDA_MONITOR_Msk /*!< VDDA power supply supervisor */
  6627. #define FLASH_OBR_RAM_PARITY_CHECK_Pos (14U)
  6628. #define FLASH_OBR_RAM_PARITY_CHECK_Msk (0x1U << FLASH_OBR_RAM_PARITY_CHECK_Pos) /*!< 0x00004000 */
  6629. #define FLASH_OBR_RAM_PARITY_CHECK FLASH_OBR_RAM_PARITY_CHECK_Msk /*!< RAM parity check */
  6630. #define FLASH_OBR_BOOT_SEL_Pos (15U)
  6631. #define FLASH_OBR_BOOT_SEL_Msk (0x1U << FLASH_OBR_BOOT_SEL_Pos) /*!< 0x00008000 */
  6632. #define FLASH_OBR_BOOT_SEL FLASH_OBR_BOOT_SEL_Msk /*!< BOOT selection */
  6633. #define FLASH_OBR_DATA0_Pos (16U)
  6634. #define FLASH_OBR_DATA0_Msk (0xFFU << FLASH_OBR_DATA0_Pos) /*!< 0x00FF0000 */
  6635. #define FLASH_OBR_DATA0 FLASH_OBR_DATA0_Msk /*!< Data0 */
  6636. #define FLASH_OBR_DATA1_Pos (24U)
  6637. #define FLASH_OBR_DATA1_Msk (0xFFU << FLASH_OBR_DATA1_Pos) /*!< 0xFF000000 */
  6638. #define FLASH_OBR_DATA1 FLASH_OBR_DATA1_Msk /*!< Data1 */
  6639. /* Old BOOT1 bit definition, maintained for legacy purpose */
  6640. #define FLASH_OBR_BOOT1 FLASH_OBR_nBOOT1
  6641. /* Old OBR_VDDA bit definition, maintained for legacy purpose */
  6642. #define FLASH_OBR_VDDA_ANALOG FLASH_OBR_VDDA_MONITOR
  6643. /****************** Bit definition for FLASH_WRPR register ******************/
  6644. #define FLASH_WRPR_WRP_Pos (0U)
  6645. #define FLASH_WRPR_WRP_Msk (0xFFFFU << FLASH_WRPR_WRP_Pos) /*!< 0x0000FFFF */
  6646. #define FLASH_WRPR_WRP FLASH_WRPR_WRP_Msk /*!< Write Protect */
  6647. /*----------------------------------------------------------------------------*/
  6648. /****************** Bit definition for OB_RDP register **********************/
  6649. #define OB_RDP_RDP_Pos (0U)
  6650. #define OB_RDP_RDP_Msk (0xFFU << OB_RDP_RDP_Pos) /*!< 0x000000FF */
  6651. #define OB_RDP_RDP OB_RDP_RDP_Msk /*!< Read protection option byte */
  6652. #define OB_RDP_nRDP_Pos (8U)
  6653. #define OB_RDP_nRDP_Msk (0xFFU << OB_RDP_nRDP_Pos) /*!< 0x0000FF00 */
  6654. #define OB_RDP_nRDP OB_RDP_nRDP_Msk /*!< Read protection complemented option byte */
  6655. /****************** Bit definition for OB_USER register *********************/
  6656. #define OB_USER_USER_Pos (16U)
  6657. #define OB_USER_USER_Msk (0xFFU << OB_USER_USER_Pos) /*!< 0x00FF0000 */
  6658. #define OB_USER_USER OB_USER_USER_Msk /*!< User option byte */
  6659. #define OB_USER_nUSER_Pos (24U)
  6660. #define OB_USER_nUSER_Msk (0xFFU << OB_USER_nUSER_Pos) /*!< 0xFF000000 */
  6661. #define OB_USER_nUSER OB_USER_nUSER_Msk /*!< User complemented option byte */
  6662. /****************** Bit definition for OB_WRP0 register *********************/
  6663. #define OB_WRP0_WRP0_Pos (0U)
  6664. #define OB_WRP0_WRP0_Msk (0xFFU << OB_WRP0_WRP0_Pos) /*!< 0x000000FF */
  6665. #define OB_WRP0_WRP0 OB_WRP0_WRP0_Msk /*!< Flash memory write protection option bytes */
  6666. #define OB_WRP0_nWRP0_Pos (8U)
  6667. #define OB_WRP0_nWRP0_Msk (0xFFU << OB_WRP0_nWRP0_Pos) /*!< 0x0000FF00 */
  6668. #define OB_WRP0_nWRP0 OB_WRP0_nWRP0_Msk /*!< Flash memory write protection complemented option bytes */
  6669. /****************** Bit definition for OB_WRP1 register *********************/
  6670. #define OB_WRP1_WRP1_Pos (16U)
  6671. #define OB_WRP1_WRP1_Msk (0xFFU << OB_WRP1_WRP1_Pos) /*!< 0x00FF0000 */
  6672. #define OB_WRP1_WRP1 OB_WRP1_WRP1_Msk /*!< Flash memory write protection option bytes */
  6673. #define OB_WRP1_nWRP1_Pos (24U)
  6674. #define OB_WRP1_nWRP1_Msk (0xFFU << OB_WRP1_nWRP1_Pos) /*!< 0xFF000000 */
  6675. #define OB_WRP1_nWRP1 OB_WRP1_nWRP1_Msk /*!< Flash memory write protection complemented option bytes */
  6676. /****************** Bit definition for OB_WRP2 register *********************/
  6677. #define OB_WRP2_WRP2_Pos (0U)
  6678. #define OB_WRP2_WRP2_Msk (0xFFU << OB_WRP2_WRP2_Pos) /*!< 0x000000FF */
  6679. #define OB_WRP2_WRP2 OB_WRP2_WRP2_Msk /*!< Flash memory write protection option bytes */
  6680. #define OB_WRP2_nWRP2_Pos (8U)
  6681. #define OB_WRP2_nWRP2_Msk (0xFFU << OB_WRP2_nWRP2_Pos) /*!< 0x0000FF00 */
  6682. #define OB_WRP2_nWRP2 OB_WRP2_nWRP2_Msk /*!< Flash memory write protection complemented option bytes */
  6683. /****************** Bit definition for OB_WRP3 register *********************/
  6684. #define OB_WRP3_WRP3_Pos (16U)
  6685. #define OB_WRP3_WRP3_Msk (0xFFU << OB_WRP3_WRP3_Pos) /*!< 0x00FF0000 */
  6686. #define OB_WRP3_WRP3 OB_WRP3_WRP3_Msk /*!< Flash memory write protection option bytes */
  6687. #define OB_WRP3_nWRP3_Pos (24U)
  6688. #define OB_WRP3_nWRP3_Msk (0xFFU << OB_WRP3_nWRP3_Pos) /*!< 0xFF000000 */
  6689. #define OB_WRP3_nWRP3 OB_WRP3_nWRP3_Msk /*!< Flash memory write protection complemented option bytes */
  6690. /******************************************************************************/
  6691. /* */
  6692. /* General Purpose IOs (GPIO) */
  6693. /* */
  6694. /******************************************************************************/
  6695. /******************* Bit definition for GPIO_MODER register *****************/
  6696. #define GPIO_MODER_MODER0_Pos (0U)
  6697. #define GPIO_MODER_MODER0_Msk (0x3U << GPIO_MODER_MODER0_Pos) /*!< 0x00000003 */
  6698. #define GPIO_MODER_MODER0 GPIO_MODER_MODER0_Msk
  6699. #define GPIO_MODER_MODER0_0 (0x1U << GPIO_MODER_MODER0_Pos) /*!< 0x00000001 */
  6700. #define GPIO_MODER_MODER0_1 (0x2U << GPIO_MODER_MODER0_Pos) /*!< 0x00000002 */
  6701. #define GPIO_MODER_MODER1_Pos (2U)
  6702. #define GPIO_MODER_MODER1_Msk (0x3U << GPIO_MODER_MODER1_Pos) /*!< 0x0000000C */
  6703. #define GPIO_MODER_MODER1 GPIO_MODER_MODER1_Msk
  6704. #define GPIO_MODER_MODER1_0 (0x1U << GPIO_MODER_MODER1_Pos) /*!< 0x00000004 */
  6705. #define GPIO_MODER_MODER1_1 (0x2U << GPIO_MODER_MODER1_Pos) /*!< 0x00000008 */
  6706. #define GPIO_MODER_MODER2_Pos (4U)
  6707. #define GPIO_MODER_MODER2_Msk (0x3U << GPIO_MODER_MODER2_Pos) /*!< 0x00000030 */
  6708. #define GPIO_MODER_MODER2 GPIO_MODER_MODER2_Msk
  6709. #define GPIO_MODER_MODER2_0 (0x1U << GPIO_MODER_MODER2_Pos) /*!< 0x00000010 */
  6710. #define GPIO_MODER_MODER2_1 (0x2U << GPIO_MODER_MODER2_Pos) /*!< 0x00000020 */
  6711. #define GPIO_MODER_MODER3_Pos (6U)
  6712. #define GPIO_MODER_MODER3_Msk (0x3U << GPIO_MODER_MODER3_Pos) /*!< 0x000000C0 */
  6713. #define GPIO_MODER_MODER3 GPIO_MODER_MODER3_Msk
  6714. #define GPIO_MODER_MODER3_0 (0x1U << GPIO_MODER_MODER3_Pos) /*!< 0x00000040 */
  6715. #define GPIO_MODER_MODER3_1 (0x2U << GPIO_MODER_MODER3_Pos) /*!< 0x00000080 */
  6716. #define GPIO_MODER_MODER4_Pos (8U)
  6717. #define GPIO_MODER_MODER4_Msk (0x3U << GPIO_MODER_MODER4_Pos) /*!< 0x00000300 */
  6718. #define GPIO_MODER_MODER4 GPIO_MODER_MODER4_Msk
  6719. #define GPIO_MODER_MODER4_0 (0x1U << GPIO_MODER_MODER4_Pos) /*!< 0x00000100 */
  6720. #define GPIO_MODER_MODER4_1 (0x2U << GPIO_MODER_MODER4_Pos) /*!< 0x00000200 */
  6721. #define GPIO_MODER_MODER5_Pos (10U)
  6722. #define GPIO_MODER_MODER5_Msk (0x3U << GPIO_MODER_MODER5_Pos) /*!< 0x00000C00 */
  6723. #define GPIO_MODER_MODER5 GPIO_MODER_MODER5_Msk
  6724. #define GPIO_MODER_MODER5_0 (0x1U << GPIO_MODER_MODER5_Pos) /*!< 0x00000400 */
  6725. #define GPIO_MODER_MODER5_1 (0x2U << GPIO_MODER_MODER5_Pos) /*!< 0x00000800 */
  6726. #define GPIO_MODER_MODER6_Pos (12U)
  6727. #define GPIO_MODER_MODER6_Msk (0x3U << GPIO_MODER_MODER6_Pos) /*!< 0x00003000 */
  6728. #define GPIO_MODER_MODER6 GPIO_MODER_MODER6_Msk
  6729. #define GPIO_MODER_MODER6_0 (0x1U << GPIO_MODER_MODER6_Pos) /*!< 0x00001000 */
  6730. #define GPIO_MODER_MODER6_1 (0x2U << GPIO_MODER_MODER6_Pos) /*!< 0x00002000 */
  6731. #define GPIO_MODER_MODER7_Pos (14U)
  6732. #define GPIO_MODER_MODER7_Msk (0x3U << GPIO_MODER_MODER7_Pos) /*!< 0x0000C000 */
  6733. #define GPIO_MODER_MODER7 GPIO_MODER_MODER7_Msk
  6734. #define GPIO_MODER_MODER7_0 (0x1U << GPIO_MODER_MODER7_Pos) /*!< 0x00004000 */
  6735. #define GPIO_MODER_MODER7_1 (0x2U << GPIO_MODER_MODER7_Pos) /*!< 0x00008000 */
  6736. #define GPIO_MODER_MODER8_Pos (16U)
  6737. #define GPIO_MODER_MODER8_Msk (0x3U << GPIO_MODER_MODER8_Pos) /*!< 0x00030000 */
  6738. #define GPIO_MODER_MODER8 GPIO_MODER_MODER8_Msk
  6739. #define GPIO_MODER_MODER8_0 (0x1U << GPIO_MODER_MODER8_Pos) /*!< 0x00010000 */
  6740. #define GPIO_MODER_MODER8_1 (0x2U << GPIO_MODER_MODER8_Pos) /*!< 0x00020000 */
  6741. #define GPIO_MODER_MODER9_Pos (18U)
  6742. #define GPIO_MODER_MODER9_Msk (0x3U << GPIO_MODER_MODER9_Pos) /*!< 0x000C0000 */
  6743. #define GPIO_MODER_MODER9 GPIO_MODER_MODER9_Msk
  6744. #define GPIO_MODER_MODER9_0 (0x1U << GPIO_MODER_MODER9_Pos) /*!< 0x00040000 */
  6745. #define GPIO_MODER_MODER9_1 (0x2U << GPIO_MODER_MODER9_Pos) /*!< 0x00080000 */
  6746. #define GPIO_MODER_MODER10_Pos (20U)
  6747. #define GPIO_MODER_MODER10_Msk (0x3U << GPIO_MODER_MODER10_Pos) /*!< 0x00300000 */
  6748. #define GPIO_MODER_MODER10 GPIO_MODER_MODER10_Msk
  6749. #define GPIO_MODER_MODER10_0 (0x1U << GPIO_MODER_MODER10_Pos) /*!< 0x00100000 */
  6750. #define GPIO_MODER_MODER10_1 (0x2U << GPIO_MODER_MODER10_Pos) /*!< 0x00200000 */
  6751. #define GPIO_MODER_MODER11_Pos (22U)
  6752. #define GPIO_MODER_MODER11_Msk (0x3U << GPIO_MODER_MODER11_Pos) /*!< 0x00C00000 */
  6753. #define GPIO_MODER_MODER11 GPIO_MODER_MODER11_Msk
  6754. #define GPIO_MODER_MODER11_0 (0x1U << GPIO_MODER_MODER11_Pos) /*!< 0x00400000 */
  6755. #define GPIO_MODER_MODER11_1 (0x2U << GPIO_MODER_MODER11_Pos) /*!< 0x00800000 */
  6756. #define GPIO_MODER_MODER12_Pos (24U)
  6757. #define GPIO_MODER_MODER12_Msk (0x3U << GPIO_MODER_MODER12_Pos) /*!< 0x03000000 */
  6758. #define GPIO_MODER_MODER12 GPIO_MODER_MODER12_Msk
  6759. #define GPIO_MODER_MODER12_0 (0x1U << GPIO_MODER_MODER12_Pos) /*!< 0x01000000 */
  6760. #define GPIO_MODER_MODER12_1 (0x2U << GPIO_MODER_MODER12_Pos) /*!< 0x02000000 */
  6761. #define GPIO_MODER_MODER13_Pos (26U)
  6762. #define GPIO_MODER_MODER13_Msk (0x3U << GPIO_MODER_MODER13_Pos) /*!< 0x0C000000 */
  6763. #define GPIO_MODER_MODER13 GPIO_MODER_MODER13_Msk
  6764. #define GPIO_MODER_MODER13_0 (0x1U << GPIO_MODER_MODER13_Pos) /*!< 0x04000000 */
  6765. #define GPIO_MODER_MODER13_1 (0x2U << GPIO_MODER_MODER13_Pos) /*!< 0x08000000 */
  6766. #define GPIO_MODER_MODER14_Pos (28U)
  6767. #define GPIO_MODER_MODER14_Msk (0x3U << GPIO_MODER_MODER14_Pos) /*!< 0x30000000 */
  6768. #define GPIO_MODER_MODER14 GPIO_MODER_MODER14_Msk
  6769. #define GPIO_MODER_MODER14_0 (0x1U << GPIO_MODER_MODER14_Pos) /*!< 0x10000000 */
  6770. #define GPIO_MODER_MODER14_1 (0x2U << GPIO_MODER_MODER14_Pos) /*!< 0x20000000 */
  6771. #define GPIO_MODER_MODER15_Pos (30U)
  6772. #define GPIO_MODER_MODER15_Msk (0x3U << GPIO_MODER_MODER15_Pos) /*!< 0xC0000000 */
  6773. #define GPIO_MODER_MODER15 GPIO_MODER_MODER15_Msk
  6774. #define GPIO_MODER_MODER15_0 (0x1U << GPIO_MODER_MODER15_Pos) /*!< 0x40000000 */
  6775. #define GPIO_MODER_MODER15_1 (0x2U << GPIO_MODER_MODER15_Pos) /*!< 0x80000000 */
  6776. /****************** Bit definition for GPIO_OTYPER register *****************/
  6777. #define GPIO_OTYPER_OT_0 (0x00000001U)
  6778. #define GPIO_OTYPER_OT_1 (0x00000002U)
  6779. #define GPIO_OTYPER_OT_2 (0x00000004U)
  6780. #define GPIO_OTYPER_OT_3 (0x00000008U)
  6781. #define GPIO_OTYPER_OT_4 (0x00000010U)
  6782. #define GPIO_OTYPER_OT_5 (0x00000020U)
  6783. #define GPIO_OTYPER_OT_6 (0x00000040U)
  6784. #define GPIO_OTYPER_OT_7 (0x00000080U)
  6785. #define GPIO_OTYPER_OT_8 (0x00000100U)
  6786. #define GPIO_OTYPER_OT_9 (0x00000200U)
  6787. #define GPIO_OTYPER_OT_10 (0x00000400U)
  6788. #define GPIO_OTYPER_OT_11 (0x00000800U)
  6789. #define GPIO_OTYPER_OT_12 (0x00001000U)
  6790. #define GPIO_OTYPER_OT_13 (0x00002000U)
  6791. #define GPIO_OTYPER_OT_14 (0x00004000U)
  6792. #define GPIO_OTYPER_OT_15 (0x00008000U)
  6793. /**************** Bit definition for GPIO_OSPEEDR register ******************/
  6794. #define GPIO_OSPEEDR_OSPEEDR0_Pos (0U)
  6795. #define GPIO_OSPEEDR_OSPEEDR0_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR0_Pos) /*!< 0x00000003 */
  6796. #define GPIO_OSPEEDR_OSPEEDR0 GPIO_OSPEEDR_OSPEEDR0_Msk
  6797. #define GPIO_OSPEEDR_OSPEEDR0_0 (0x1U << GPIO_OSPEEDR_OSPEEDR0_Pos) /*!< 0x00000001 */
  6798. #define GPIO_OSPEEDR_OSPEEDR0_1 (0x2U << GPIO_OSPEEDR_OSPEEDR0_Pos) /*!< 0x00000002 */
  6799. #define GPIO_OSPEEDR_OSPEEDR1_Pos (2U)
  6800. #define GPIO_OSPEEDR_OSPEEDR1_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR1_Pos) /*!< 0x0000000C */
  6801. #define GPIO_OSPEEDR_OSPEEDR1 GPIO_OSPEEDR_OSPEEDR1_Msk
  6802. #define GPIO_OSPEEDR_OSPEEDR1_0 (0x1U << GPIO_OSPEEDR_OSPEEDR1_Pos) /*!< 0x00000004 */
  6803. #define GPIO_OSPEEDR_OSPEEDR1_1 (0x2U << GPIO_OSPEEDR_OSPEEDR1_Pos) /*!< 0x00000008 */
  6804. #define GPIO_OSPEEDR_OSPEEDR2_Pos (4U)
  6805. #define GPIO_OSPEEDR_OSPEEDR2_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR2_Pos) /*!< 0x00000030 */
  6806. #define GPIO_OSPEEDR_OSPEEDR2 GPIO_OSPEEDR_OSPEEDR2_Msk
  6807. #define GPIO_OSPEEDR_OSPEEDR2_0 (0x1U << GPIO_OSPEEDR_OSPEEDR2_Pos) /*!< 0x00000010 */
  6808. #define GPIO_OSPEEDR_OSPEEDR2_1 (0x2U << GPIO_OSPEEDR_OSPEEDR2_Pos) /*!< 0x00000020 */
  6809. #define GPIO_OSPEEDR_OSPEEDR3_Pos (6U)
  6810. #define GPIO_OSPEEDR_OSPEEDR3_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR3_Pos) /*!< 0x000000C0 */
  6811. #define GPIO_OSPEEDR_OSPEEDR3 GPIO_OSPEEDR_OSPEEDR3_Msk
  6812. #define GPIO_OSPEEDR_OSPEEDR3_0 (0x1U << GPIO_OSPEEDR_OSPEEDR3_Pos) /*!< 0x00000040 */
  6813. #define GPIO_OSPEEDR_OSPEEDR3_1 (0x2U << GPIO_OSPEEDR_OSPEEDR3_Pos) /*!< 0x00000080 */
  6814. #define GPIO_OSPEEDR_OSPEEDR4_Pos (8U)
  6815. #define GPIO_OSPEEDR_OSPEEDR4_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR4_Pos) /*!< 0x00000300 */
  6816. #define GPIO_OSPEEDR_OSPEEDR4 GPIO_OSPEEDR_OSPEEDR4_Msk
  6817. #define GPIO_OSPEEDR_OSPEEDR4_0 (0x1U << GPIO_OSPEEDR_OSPEEDR4_Pos) /*!< 0x00000100 */
  6818. #define GPIO_OSPEEDR_OSPEEDR4_1 (0x2U << GPIO_OSPEEDR_OSPEEDR4_Pos) /*!< 0x00000200 */
  6819. #define GPIO_OSPEEDR_OSPEEDR5_Pos (10U)
  6820. #define GPIO_OSPEEDR_OSPEEDR5_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR5_Pos) /*!< 0x00000C00 */
  6821. #define GPIO_OSPEEDR_OSPEEDR5 GPIO_OSPEEDR_OSPEEDR5_Msk
  6822. #define GPIO_OSPEEDR_OSPEEDR5_0 (0x1U << GPIO_OSPEEDR_OSPEEDR5_Pos) /*!< 0x00000400 */
  6823. #define GPIO_OSPEEDR_OSPEEDR5_1 (0x2U << GPIO_OSPEEDR_OSPEEDR5_Pos) /*!< 0x00000800 */
  6824. #define GPIO_OSPEEDR_OSPEEDR6_Pos (12U)
  6825. #define GPIO_OSPEEDR_OSPEEDR6_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR6_Pos) /*!< 0x00003000 */
  6826. #define GPIO_OSPEEDR_OSPEEDR6 GPIO_OSPEEDR_OSPEEDR6_Msk
  6827. #define GPIO_OSPEEDR_OSPEEDR6_0 (0x1U << GPIO_OSPEEDR_OSPEEDR6_Pos) /*!< 0x00001000 */
  6828. #define GPIO_OSPEEDR_OSPEEDR6_1 (0x2U << GPIO_OSPEEDR_OSPEEDR6_Pos) /*!< 0x00002000 */
  6829. #define GPIO_OSPEEDR_OSPEEDR7_Pos (14U)
  6830. #define GPIO_OSPEEDR_OSPEEDR7_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR7_Pos) /*!< 0x0000C000 */
  6831. #define GPIO_OSPEEDR_OSPEEDR7 GPIO_OSPEEDR_OSPEEDR7_Msk
  6832. #define GPIO_OSPEEDR_OSPEEDR7_0 (0x1U << GPIO_OSPEEDR_OSPEEDR7_Pos) /*!< 0x00004000 */
  6833. #define GPIO_OSPEEDR_OSPEEDR7_1 (0x2U << GPIO_OSPEEDR_OSPEEDR7_Pos) /*!< 0x00008000 */
  6834. #define GPIO_OSPEEDR_OSPEEDR8_Pos (16U)
  6835. #define GPIO_OSPEEDR_OSPEEDR8_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR8_Pos) /*!< 0x00030000 */
  6836. #define GPIO_OSPEEDR_OSPEEDR8 GPIO_OSPEEDR_OSPEEDR8_Msk
  6837. #define GPIO_OSPEEDR_OSPEEDR8_0 (0x1U << GPIO_OSPEEDR_OSPEEDR8_Pos) /*!< 0x00010000 */
  6838. #define GPIO_OSPEEDR_OSPEEDR8_1 (0x2U << GPIO_OSPEEDR_OSPEEDR8_Pos) /*!< 0x00020000 */
  6839. #define GPIO_OSPEEDR_OSPEEDR9_Pos (18U)
  6840. #define GPIO_OSPEEDR_OSPEEDR9_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR9_Pos) /*!< 0x000C0000 */
  6841. #define GPIO_OSPEEDR_OSPEEDR9 GPIO_OSPEEDR_OSPEEDR9_Msk
  6842. #define GPIO_OSPEEDR_OSPEEDR9_0 (0x1U << GPIO_OSPEEDR_OSPEEDR9_Pos) /*!< 0x00040000 */
  6843. #define GPIO_OSPEEDR_OSPEEDR9_1 (0x2U << GPIO_OSPEEDR_OSPEEDR9_Pos) /*!< 0x00080000 */
  6844. #define GPIO_OSPEEDR_OSPEEDR10_Pos (20U)
  6845. #define GPIO_OSPEEDR_OSPEEDR10_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR10_Pos) /*!< 0x00300000 */
  6846. #define GPIO_OSPEEDR_OSPEEDR10 GPIO_OSPEEDR_OSPEEDR10_Msk
  6847. #define GPIO_OSPEEDR_OSPEEDR10_0 (0x1U << GPIO_OSPEEDR_OSPEEDR10_Pos) /*!< 0x00100000 */
  6848. #define GPIO_OSPEEDR_OSPEEDR10_1 (0x2U << GPIO_OSPEEDR_OSPEEDR10_Pos) /*!< 0x00200000 */
  6849. #define GPIO_OSPEEDR_OSPEEDR11_Pos (22U)
  6850. #define GPIO_OSPEEDR_OSPEEDR11_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR11_Pos) /*!< 0x00C00000 */
  6851. #define GPIO_OSPEEDR_OSPEEDR11 GPIO_OSPEEDR_OSPEEDR11_Msk
  6852. #define GPIO_OSPEEDR_OSPEEDR11_0 (0x1U << GPIO_OSPEEDR_OSPEEDR11_Pos) /*!< 0x00400000 */
  6853. #define GPIO_OSPEEDR_OSPEEDR11_1 (0x2U << GPIO_OSPEEDR_OSPEEDR11_Pos) /*!< 0x00800000 */
  6854. #define GPIO_OSPEEDR_OSPEEDR12_Pos (24U)
  6855. #define GPIO_OSPEEDR_OSPEEDR12_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR12_Pos) /*!< 0x03000000 */
  6856. #define GPIO_OSPEEDR_OSPEEDR12 GPIO_OSPEEDR_OSPEEDR12_Msk
  6857. #define GPIO_OSPEEDR_OSPEEDR12_0 (0x1U << GPIO_OSPEEDR_OSPEEDR12_Pos) /*!< 0x01000000 */
  6858. #define GPIO_OSPEEDR_OSPEEDR12_1 (0x2U << GPIO_OSPEEDR_OSPEEDR12_Pos) /*!< 0x02000000 */
  6859. #define GPIO_OSPEEDR_OSPEEDR13_Pos (26U)
  6860. #define GPIO_OSPEEDR_OSPEEDR13_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR13_Pos) /*!< 0x0C000000 */
  6861. #define GPIO_OSPEEDR_OSPEEDR13 GPIO_OSPEEDR_OSPEEDR13_Msk
  6862. #define GPIO_OSPEEDR_OSPEEDR13_0 (0x1U << GPIO_OSPEEDR_OSPEEDR13_Pos) /*!< 0x04000000 */
  6863. #define GPIO_OSPEEDR_OSPEEDR13_1 (0x2U << GPIO_OSPEEDR_OSPEEDR13_Pos) /*!< 0x08000000 */
  6864. #define GPIO_OSPEEDR_OSPEEDR14_Pos (28U)
  6865. #define GPIO_OSPEEDR_OSPEEDR14_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR14_Pos) /*!< 0x30000000 */
  6866. #define GPIO_OSPEEDR_OSPEEDR14 GPIO_OSPEEDR_OSPEEDR14_Msk
  6867. #define GPIO_OSPEEDR_OSPEEDR14_0 (0x1U << GPIO_OSPEEDR_OSPEEDR14_Pos) /*!< 0x10000000 */
  6868. #define GPIO_OSPEEDR_OSPEEDR14_1 (0x2U << GPIO_OSPEEDR_OSPEEDR14_Pos) /*!< 0x20000000 */
  6869. #define GPIO_OSPEEDR_OSPEEDR15_Pos (30U)
  6870. #define GPIO_OSPEEDR_OSPEEDR15_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR15_Pos) /*!< 0xC0000000 */
  6871. #define GPIO_OSPEEDR_OSPEEDR15 GPIO_OSPEEDR_OSPEEDR15_Msk
  6872. #define GPIO_OSPEEDR_OSPEEDR15_0 (0x1U << GPIO_OSPEEDR_OSPEEDR15_Pos) /*!< 0x40000000 */
  6873. #define GPIO_OSPEEDR_OSPEEDR15_1 (0x2U << GPIO_OSPEEDR_OSPEEDR15_Pos) /*!< 0x80000000 */
  6874. /* Old Bit definition for GPIO_OSPEEDR register maintained for legacy purpose */
  6875. #define GPIO_OSPEEDER_OSPEEDR0 GPIO_OSPEEDR_OSPEEDR0
  6876. #define GPIO_OSPEEDER_OSPEEDR0_0 GPIO_OSPEEDR_OSPEEDR0_0
  6877. #define GPIO_OSPEEDER_OSPEEDR0_1 GPIO_OSPEEDR_OSPEEDR0_1
  6878. #define GPIO_OSPEEDER_OSPEEDR1 GPIO_OSPEEDR_OSPEEDR1
  6879. #define GPIO_OSPEEDER_OSPEEDR1_0 GPIO_OSPEEDR_OSPEEDR1_0
  6880. #define GPIO_OSPEEDER_OSPEEDR1_1 GPIO_OSPEEDR_OSPEEDR1_1
  6881. #define GPIO_OSPEEDER_OSPEEDR2 GPIO_OSPEEDR_OSPEEDR2
  6882. #define GPIO_OSPEEDER_OSPEEDR2_0 GPIO_OSPEEDR_OSPEEDR2_0
  6883. #define GPIO_OSPEEDER_OSPEEDR2_1 GPIO_OSPEEDR_OSPEEDR2_1
  6884. #define GPIO_OSPEEDER_OSPEEDR3 GPIO_OSPEEDR_OSPEEDR3
  6885. #define GPIO_OSPEEDER_OSPEEDR3_0 GPIO_OSPEEDR_OSPEEDR3_0
  6886. #define GPIO_OSPEEDER_OSPEEDR3_1 GPIO_OSPEEDR_OSPEEDR3_1
  6887. #define GPIO_OSPEEDER_OSPEEDR4 GPIO_OSPEEDR_OSPEEDR4
  6888. #define GPIO_OSPEEDER_OSPEEDR4_0 GPIO_OSPEEDR_OSPEEDR4_0
  6889. #define GPIO_OSPEEDER_OSPEEDR4_1 GPIO_OSPEEDR_OSPEEDR4_1
  6890. #define GPIO_OSPEEDER_OSPEEDR5 GPIO_OSPEEDR_OSPEEDR5
  6891. #define GPIO_OSPEEDER_OSPEEDR5_0 GPIO_OSPEEDR_OSPEEDR5_0
  6892. #define GPIO_OSPEEDER_OSPEEDR5_1 GPIO_OSPEEDR_OSPEEDR5_1
  6893. #define GPIO_OSPEEDER_OSPEEDR6 GPIO_OSPEEDR_OSPEEDR6
  6894. #define GPIO_OSPEEDER_OSPEEDR6_0 GPIO_OSPEEDR_OSPEEDR6_0
  6895. #define GPIO_OSPEEDER_OSPEEDR6_1 GPIO_OSPEEDR_OSPEEDR6_1
  6896. #define GPIO_OSPEEDER_OSPEEDR7 GPIO_OSPEEDR_OSPEEDR7
  6897. #define GPIO_OSPEEDER_OSPEEDR7_0 GPIO_OSPEEDR_OSPEEDR7_0
  6898. #define GPIO_OSPEEDER_OSPEEDR7_1 GPIO_OSPEEDR_OSPEEDR7_1
  6899. #define GPIO_OSPEEDER_OSPEEDR8 GPIO_OSPEEDR_OSPEEDR8
  6900. #define GPIO_OSPEEDER_OSPEEDR8_0 GPIO_OSPEEDR_OSPEEDR8_0
  6901. #define GPIO_OSPEEDER_OSPEEDR8_1 GPIO_OSPEEDR_OSPEEDR8_1
  6902. #define GPIO_OSPEEDER_OSPEEDR9 GPIO_OSPEEDR_OSPEEDR9
  6903. #define GPIO_OSPEEDER_OSPEEDR9_0 GPIO_OSPEEDR_OSPEEDR9_0
  6904. #define GPIO_OSPEEDER_OSPEEDR9_1 GPIO_OSPEEDR_OSPEEDR9_1
  6905. #define GPIO_OSPEEDER_OSPEEDR10 GPIO_OSPEEDR_OSPEEDR10
  6906. #define GPIO_OSPEEDER_OSPEEDR10_0 GPIO_OSPEEDR_OSPEEDR10_0
  6907. #define GPIO_OSPEEDER_OSPEEDR10_1 GPIO_OSPEEDR_OSPEEDR10_1
  6908. #define GPIO_OSPEEDER_OSPEEDR11 GPIO_OSPEEDR_OSPEEDR11
  6909. #define GPIO_OSPEEDER_OSPEEDR11_0 GPIO_OSPEEDR_OSPEEDR11_0
  6910. #define GPIO_OSPEEDER_OSPEEDR11_1 GPIO_OSPEEDR_OSPEEDR11_1
  6911. #define GPIO_OSPEEDER_OSPEEDR12 GPIO_OSPEEDR_OSPEEDR12
  6912. #define GPIO_OSPEEDER_OSPEEDR12_0 GPIO_OSPEEDR_OSPEEDR12_0
  6913. #define GPIO_OSPEEDER_OSPEEDR12_1 GPIO_OSPEEDR_OSPEEDR12_1
  6914. #define GPIO_OSPEEDER_OSPEEDR13 GPIO_OSPEEDR_OSPEEDR13
  6915. #define GPIO_OSPEEDER_OSPEEDR13_0 GPIO_OSPEEDR_OSPEEDR13_0
  6916. #define GPIO_OSPEEDER_OSPEEDR13_1 GPIO_OSPEEDR_OSPEEDR13_1
  6917. #define GPIO_OSPEEDER_OSPEEDR14 GPIO_OSPEEDR_OSPEEDR14
  6918. #define GPIO_OSPEEDER_OSPEEDR14_0 GPIO_OSPEEDR_OSPEEDR14_0
  6919. #define GPIO_OSPEEDER_OSPEEDR14_1 GPIO_OSPEEDR_OSPEEDR14_1
  6920. #define GPIO_OSPEEDER_OSPEEDR15 GPIO_OSPEEDR_OSPEEDR15
  6921. #define GPIO_OSPEEDER_OSPEEDR15_0 GPIO_OSPEEDR_OSPEEDR15_0
  6922. #define GPIO_OSPEEDER_OSPEEDR15_1 GPIO_OSPEEDR_OSPEEDR15_1
  6923. /******************* Bit definition for GPIO_PUPDR register ******************/
  6924. #define GPIO_PUPDR_PUPDR0_Pos (0U)
  6925. #define GPIO_PUPDR_PUPDR0_Msk (0x3U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000003 */
  6926. #define GPIO_PUPDR_PUPDR0 GPIO_PUPDR_PUPDR0_Msk
  6927. #define GPIO_PUPDR_PUPDR0_0 (0x1U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000001 */
  6928. #define GPIO_PUPDR_PUPDR0_1 (0x2U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000002 */
  6929. #define GPIO_PUPDR_PUPDR1_Pos (2U)
  6930. #define GPIO_PUPDR_PUPDR1_Msk (0x3U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x0000000C */
  6931. #define GPIO_PUPDR_PUPDR1 GPIO_PUPDR_PUPDR1_Msk
  6932. #define GPIO_PUPDR_PUPDR1_0 (0x1U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000004 */
  6933. #define GPIO_PUPDR_PUPDR1_1 (0x2U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000008 */
  6934. #define GPIO_PUPDR_PUPDR2_Pos (4U)
  6935. #define GPIO_PUPDR_PUPDR2_Msk (0x3U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000030 */
  6936. #define GPIO_PUPDR_PUPDR2 GPIO_PUPDR_PUPDR2_Msk
  6937. #define GPIO_PUPDR_PUPDR2_0 (0x1U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000010 */
  6938. #define GPIO_PUPDR_PUPDR2_1 (0x2U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000020 */
  6939. #define GPIO_PUPDR_PUPDR3_Pos (6U)
  6940. #define GPIO_PUPDR_PUPDR3_Msk (0x3U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x000000C0 */
  6941. #define GPIO_PUPDR_PUPDR3 GPIO_PUPDR_PUPDR3_Msk
  6942. #define GPIO_PUPDR_PUPDR3_0 (0x1U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000040 */
  6943. #define GPIO_PUPDR_PUPDR3_1 (0x2U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000080 */
  6944. #define GPIO_PUPDR_PUPDR4_Pos (8U)
  6945. #define GPIO_PUPDR_PUPDR4_Msk (0x3U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000300 */
  6946. #define GPIO_PUPDR_PUPDR4 GPIO_PUPDR_PUPDR4_Msk
  6947. #define GPIO_PUPDR_PUPDR4_0 (0x1U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000100 */
  6948. #define GPIO_PUPDR_PUPDR4_1 (0x2U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000200 */
  6949. #define GPIO_PUPDR_PUPDR5_Pos (10U)
  6950. #define GPIO_PUPDR_PUPDR5_Msk (0x3U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000C00 */
  6951. #define GPIO_PUPDR_PUPDR5 GPIO_PUPDR_PUPDR5_Msk
  6952. #define GPIO_PUPDR_PUPDR5_0 (0x1U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000400 */
  6953. #define GPIO_PUPDR_PUPDR5_1 (0x2U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000800 */
  6954. #define GPIO_PUPDR_PUPDR6_Pos (12U)
  6955. #define GPIO_PUPDR_PUPDR6_Msk (0x3U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00003000 */
  6956. #define GPIO_PUPDR_PUPDR6 GPIO_PUPDR_PUPDR6_Msk
  6957. #define GPIO_PUPDR_PUPDR6_0 (0x1U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00001000 */
  6958. #define GPIO_PUPDR_PUPDR6_1 (0x2U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00002000 */
  6959. #define GPIO_PUPDR_PUPDR7_Pos (14U)
  6960. #define GPIO_PUPDR_PUPDR7_Msk (0x3U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x0000C000 */
  6961. #define GPIO_PUPDR_PUPDR7 GPIO_PUPDR_PUPDR7_Msk
  6962. #define GPIO_PUPDR_PUPDR7_0 (0x1U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00004000 */
  6963. #define GPIO_PUPDR_PUPDR7_1 (0x2U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00008000 */
  6964. #define GPIO_PUPDR_PUPDR8_Pos (16U)
  6965. #define GPIO_PUPDR_PUPDR8_Msk (0x3U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00030000 */
  6966. #define GPIO_PUPDR_PUPDR8 GPIO_PUPDR_PUPDR8_Msk
  6967. #define GPIO_PUPDR_PUPDR8_0 (0x1U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00010000 */
  6968. #define GPIO_PUPDR_PUPDR8_1 (0x2U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00020000 */
  6969. #define GPIO_PUPDR_PUPDR9_Pos (18U)
  6970. #define GPIO_PUPDR_PUPDR9_Msk (0x3U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x000C0000 */
  6971. #define GPIO_PUPDR_PUPDR9 GPIO_PUPDR_PUPDR9_Msk
  6972. #define GPIO_PUPDR_PUPDR9_0 (0x1U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00040000 */
  6973. #define GPIO_PUPDR_PUPDR9_1 (0x2U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00080000 */
  6974. #define GPIO_PUPDR_PUPDR10_Pos (20U)
  6975. #define GPIO_PUPDR_PUPDR10_Msk (0x3U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00300000 */
  6976. #define GPIO_PUPDR_PUPDR10 GPIO_PUPDR_PUPDR10_Msk
  6977. #define GPIO_PUPDR_PUPDR10_0 (0x1U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00100000 */
  6978. #define GPIO_PUPDR_PUPDR10_1 (0x2U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00200000 */
  6979. #define GPIO_PUPDR_PUPDR11_Pos (22U)
  6980. #define GPIO_PUPDR_PUPDR11_Msk (0x3U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00C00000 */
  6981. #define GPIO_PUPDR_PUPDR11 GPIO_PUPDR_PUPDR11_Msk
  6982. #define GPIO_PUPDR_PUPDR11_0 (0x1U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00400000 */
  6983. #define GPIO_PUPDR_PUPDR11_1 (0x2U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00800000 */
  6984. #define GPIO_PUPDR_PUPDR12_Pos (24U)
  6985. #define GPIO_PUPDR_PUPDR12_Msk (0x3U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x03000000 */
  6986. #define GPIO_PUPDR_PUPDR12 GPIO_PUPDR_PUPDR12_Msk
  6987. #define GPIO_PUPDR_PUPDR12_0 (0x1U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x01000000 */
  6988. #define GPIO_PUPDR_PUPDR12_1 (0x2U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x02000000 */
  6989. #define GPIO_PUPDR_PUPDR13_Pos (26U)
  6990. #define GPIO_PUPDR_PUPDR13_Msk (0x3U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x0C000000 */
  6991. #define GPIO_PUPDR_PUPDR13 GPIO_PUPDR_PUPDR13_Msk
  6992. #define GPIO_PUPDR_PUPDR13_0 (0x1U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x04000000 */
  6993. #define GPIO_PUPDR_PUPDR13_1 (0x2U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x08000000 */
  6994. #define GPIO_PUPDR_PUPDR14_Pos (28U)
  6995. #define GPIO_PUPDR_PUPDR14_Msk (0x3U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x30000000 */
  6996. #define GPIO_PUPDR_PUPDR14 GPIO_PUPDR_PUPDR14_Msk
  6997. #define GPIO_PUPDR_PUPDR14_0 (0x1U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x10000000 */
  6998. #define GPIO_PUPDR_PUPDR14_1 (0x2U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x20000000 */
  6999. #define GPIO_PUPDR_PUPDR15_Pos (30U)
  7000. #define GPIO_PUPDR_PUPDR15_Msk (0x3U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0xC0000000 */
  7001. #define GPIO_PUPDR_PUPDR15 GPIO_PUPDR_PUPDR15_Msk
  7002. #define GPIO_PUPDR_PUPDR15_0 (0x1U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x40000000 */
  7003. #define GPIO_PUPDR_PUPDR15_1 (0x2U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x80000000 */
  7004. /******************* Bit definition for GPIO_IDR register *******************/
  7005. #define GPIO_IDR_0 (0x00000001U)
  7006. #define GPIO_IDR_1 (0x00000002U)
  7007. #define GPIO_IDR_2 (0x00000004U)
  7008. #define GPIO_IDR_3 (0x00000008U)
  7009. #define GPIO_IDR_4 (0x00000010U)
  7010. #define GPIO_IDR_5 (0x00000020U)
  7011. #define GPIO_IDR_6 (0x00000040U)
  7012. #define GPIO_IDR_7 (0x00000080U)
  7013. #define GPIO_IDR_8 (0x00000100U)
  7014. #define GPIO_IDR_9 (0x00000200U)
  7015. #define GPIO_IDR_10 (0x00000400U)
  7016. #define GPIO_IDR_11 (0x00000800U)
  7017. #define GPIO_IDR_12 (0x00001000U)
  7018. #define GPIO_IDR_13 (0x00002000U)
  7019. #define GPIO_IDR_14 (0x00004000U)
  7020. #define GPIO_IDR_15 (0x00008000U)
  7021. /****************** Bit definition for GPIO_ODR register ********************/
  7022. #define GPIO_ODR_0 (0x00000001U)
  7023. #define GPIO_ODR_1 (0x00000002U)
  7024. #define GPIO_ODR_2 (0x00000004U)
  7025. #define GPIO_ODR_3 (0x00000008U)
  7026. #define GPIO_ODR_4 (0x00000010U)
  7027. #define GPIO_ODR_5 (0x00000020U)
  7028. #define GPIO_ODR_6 (0x00000040U)
  7029. #define GPIO_ODR_7 (0x00000080U)
  7030. #define GPIO_ODR_8 (0x00000100U)
  7031. #define GPIO_ODR_9 (0x00000200U)
  7032. #define GPIO_ODR_10 (0x00000400U)
  7033. #define GPIO_ODR_11 (0x00000800U)
  7034. #define GPIO_ODR_12 (0x00001000U)
  7035. #define GPIO_ODR_13 (0x00002000U)
  7036. #define GPIO_ODR_14 (0x00004000U)
  7037. #define GPIO_ODR_15 (0x00008000U)
  7038. /****************** Bit definition for GPIO_BSRR register ********************/
  7039. #define GPIO_BSRR_BS_0 (0x00000001U)
  7040. #define GPIO_BSRR_BS_1 (0x00000002U)
  7041. #define GPIO_BSRR_BS_2 (0x00000004U)
  7042. #define GPIO_BSRR_BS_3 (0x00000008U)
  7043. #define GPIO_BSRR_BS_4 (0x00000010U)
  7044. #define GPIO_BSRR_BS_5 (0x00000020U)
  7045. #define GPIO_BSRR_BS_6 (0x00000040U)
  7046. #define GPIO_BSRR_BS_7 (0x00000080U)
  7047. #define GPIO_BSRR_BS_8 (0x00000100U)
  7048. #define GPIO_BSRR_BS_9 (0x00000200U)
  7049. #define GPIO_BSRR_BS_10 (0x00000400U)
  7050. #define GPIO_BSRR_BS_11 (0x00000800U)
  7051. #define GPIO_BSRR_BS_12 (0x00001000U)
  7052. #define GPIO_BSRR_BS_13 (0x00002000U)
  7053. #define GPIO_BSRR_BS_14 (0x00004000U)
  7054. #define GPIO_BSRR_BS_15 (0x00008000U)
  7055. #define GPIO_BSRR_BR_0 (0x00010000U)
  7056. #define GPIO_BSRR_BR_1 (0x00020000U)
  7057. #define GPIO_BSRR_BR_2 (0x00040000U)
  7058. #define GPIO_BSRR_BR_3 (0x00080000U)
  7059. #define GPIO_BSRR_BR_4 (0x00100000U)
  7060. #define GPIO_BSRR_BR_5 (0x00200000U)
  7061. #define GPIO_BSRR_BR_6 (0x00400000U)
  7062. #define GPIO_BSRR_BR_7 (0x00800000U)
  7063. #define GPIO_BSRR_BR_8 (0x01000000U)
  7064. #define GPIO_BSRR_BR_9 (0x02000000U)
  7065. #define GPIO_BSRR_BR_10 (0x04000000U)
  7066. #define GPIO_BSRR_BR_11 (0x08000000U)
  7067. #define GPIO_BSRR_BR_12 (0x10000000U)
  7068. #define GPIO_BSRR_BR_13 (0x20000000U)
  7069. #define GPIO_BSRR_BR_14 (0x40000000U)
  7070. #define GPIO_BSRR_BR_15 (0x80000000U)
  7071. /****************** Bit definition for GPIO_LCKR register ********************/
  7072. #define GPIO_LCKR_LCK0_Pos (0U)
  7073. #define GPIO_LCKR_LCK0_Msk (0x1U << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  7074. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  7075. #define GPIO_LCKR_LCK1_Pos (1U)
  7076. #define GPIO_LCKR_LCK1_Msk (0x1U << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  7077. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  7078. #define GPIO_LCKR_LCK2_Pos (2U)
  7079. #define GPIO_LCKR_LCK2_Msk (0x1U << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  7080. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  7081. #define GPIO_LCKR_LCK3_Pos (3U)
  7082. #define GPIO_LCKR_LCK3_Msk (0x1U << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  7083. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  7084. #define GPIO_LCKR_LCK4_Pos (4U)
  7085. #define GPIO_LCKR_LCK4_Msk (0x1U << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  7086. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  7087. #define GPIO_LCKR_LCK5_Pos (5U)
  7088. #define GPIO_LCKR_LCK5_Msk (0x1U << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  7089. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  7090. #define GPIO_LCKR_LCK6_Pos (6U)
  7091. #define GPIO_LCKR_LCK6_Msk (0x1U << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  7092. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  7093. #define GPIO_LCKR_LCK7_Pos (7U)
  7094. #define GPIO_LCKR_LCK7_Msk (0x1U << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  7095. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  7096. #define GPIO_LCKR_LCK8_Pos (8U)
  7097. #define GPIO_LCKR_LCK8_Msk (0x1U << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  7098. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  7099. #define GPIO_LCKR_LCK9_Pos (9U)
  7100. #define GPIO_LCKR_LCK9_Msk (0x1U << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  7101. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  7102. #define GPIO_LCKR_LCK10_Pos (10U)
  7103. #define GPIO_LCKR_LCK10_Msk (0x1U << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  7104. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  7105. #define GPIO_LCKR_LCK11_Pos (11U)
  7106. #define GPIO_LCKR_LCK11_Msk (0x1U << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  7107. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  7108. #define GPIO_LCKR_LCK12_Pos (12U)
  7109. #define GPIO_LCKR_LCK12_Msk (0x1U << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  7110. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  7111. #define GPIO_LCKR_LCK13_Pos (13U)
  7112. #define GPIO_LCKR_LCK13_Msk (0x1U << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  7113. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  7114. #define GPIO_LCKR_LCK14_Pos (14U)
  7115. #define GPIO_LCKR_LCK14_Msk (0x1U << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  7116. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  7117. #define GPIO_LCKR_LCK15_Pos (15U)
  7118. #define GPIO_LCKR_LCK15_Msk (0x1U << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  7119. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  7120. #define GPIO_LCKR_LCKK_Pos (16U)
  7121. #define GPIO_LCKR_LCKK_Msk (0x1U << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  7122. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  7123. /****************** Bit definition for GPIO_AFRL register ********************/
  7124. #define GPIO_AFRL_AFSEL0_Pos (0U)
  7125. #define GPIO_AFRL_AFSEL0_Msk (0xFU << GPIO_AFRL_AFSEL0_Pos) /*!< 0x0000000F */
  7126. #define GPIO_AFRL_AFSEL0 GPIO_AFRL_AFSEL0_Msk
  7127. #define GPIO_AFRL_AFSEL1_Pos (4U)
  7128. #define GPIO_AFRL_AFSEL1_Msk (0xFU << GPIO_AFRL_AFSEL1_Pos) /*!< 0x000000F0 */
  7129. #define GPIO_AFRL_AFSEL1 GPIO_AFRL_AFSEL1_Msk
  7130. #define GPIO_AFRL_AFSEL2_Pos (8U)
  7131. #define GPIO_AFRL_AFSEL2_Msk (0xFU << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000F00 */
  7132. #define GPIO_AFRL_AFSEL2 GPIO_AFRL_AFSEL2_Msk
  7133. #define GPIO_AFRL_AFSEL3_Pos (12U)
  7134. #define GPIO_AFRL_AFSEL3_Msk (0xFU << GPIO_AFRL_AFSEL3_Pos) /*!< 0x0000F000 */
  7135. #define GPIO_AFRL_AFSEL3 GPIO_AFRL_AFSEL3_Msk
  7136. #define GPIO_AFRL_AFSEL4_Pos (16U)
  7137. #define GPIO_AFRL_AFSEL4_Msk (0xFU << GPIO_AFRL_AFSEL4_Pos) /*!< 0x000F0000 */
  7138. #define GPIO_AFRL_AFSEL4 GPIO_AFRL_AFSEL4_Msk
  7139. #define GPIO_AFRL_AFSEL5_Pos (20U)
  7140. #define GPIO_AFRL_AFSEL5_Msk (0xFU << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00F00000 */
  7141. #define GPIO_AFRL_AFSEL5 GPIO_AFRL_AFSEL5_Msk
  7142. #define GPIO_AFRL_AFSEL6_Pos (24U)
  7143. #define GPIO_AFRL_AFSEL6_Msk (0xFU << GPIO_AFRL_AFSEL6_Pos) /*!< 0x0F000000 */
  7144. #define GPIO_AFRL_AFSEL6 GPIO_AFRL_AFSEL6_Msk
  7145. #define GPIO_AFRL_AFSEL7_Pos (28U)
  7146. #define GPIO_AFRL_AFSEL7_Msk (0xFU << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
  7147. #define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
  7148. /* Legacy aliases */
  7149. #define GPIO_AFRL_AFRL0_Pos GPIO_AFRL_AFSEL0_Pos
  7150. #define GPIO_AFRL_AFRL0_Msk GPIO_AFRL_AFSEL0_Msk
  7151. #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0
  7152. #define GPIO_AFRL_AFRL1_Pos GPIO_AFRL_AFSEL1_Pos
  7153. #define GPIO_AFRL_AFRL1_Msk GPIO_AFRL_AFSEL1_Msk
  7154. #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFSEL1
  7155. #define GPIO_AFRL_AFRL2_Pos GPIO_AFRL_AFSEL2_Pos
  7156. #define GPIO_AFRL_AFRL2_Msk GPIO_AFRL_AFSEL2_Msk
  7157. #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFSEL2
  7158. #define GPIO_AFRL_AFRL3_Pos GPIO_AFRL_AFSEL3_Pos
  7159. #define GPIO_AFRL_AFRL3_Msk GPIO_AFRL_AFSEL3_Msk
  7160. #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFSEL3
  7161. #define GPIO_AFRL_AFRL4_Pos GPIO_AFRL_AFSEL4_Pos
  7162. #define GPIO_AFRL_AFRL4_Msk GPIO_AFRL_AFSEL4_Msk
  7163. #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFSEL4
  7164. #define GPIO_AFRL_AFRL5_Pos GPIO_AFRL_AFSEL5_Pos
  7165. #define GPIO_AFRL_AFRL5_Msk GPIO_AFRL_AFSEL5_Msk
  7166. #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFSEL5
  7167. #define GPIO_AFRL_AFRL6_Pos GPIO_AFRL_AFSEL6_Pos
  7168. #define GPIO_AFRL_AFRL6_Msk GPIO_AFRL_AFSEL6_Msk
  7169. #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFSEL6
  7170. #define GPIO_AFRL_AFRL7_Pos GPIO_AFRL_AFSEL7_Pos
  7171. #define GPIO_AFRL_AFRL7_Msk GPIO_AFRL_AFSEL7_Msk
  7172. #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFSEL7
  7173. /****************** Bit definition for GPIO_AFRH register ********************/
  7174. #define GPIO_AFRH_AFSEL8_Pos (0U)
  7175. #define GPIO_AFRH_AFSEL8_Msk (0xFU << GPIO_AFRH_AFSEL8_Pos) /*!< 0x0000000F */
  7176. #define GPIO_AFRH_AFSEL8 GPIO_AFRH_AFSEL8_Msk
  7177. #define GPIO_AFRH_AFSEL9_Pos (4U)
  7178. #define GPIO_AFRH_AFSEL9_Msk (0xFU << GPIO_AFRH_AFSEL9_Pos) /*!< 0x000000F0 */
  7179. #define GPIO_AFRH_AFSEL9 GPIO_AFRH_AFSEL9_Msk
  7180. #define GPIO_AFRH_AFSEL10_Pos (8U)
  7181. #define GPIO_AFRH_AFSEL10_Msk (0xFU << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000F00 */
  7182. #define GPIO_AFRH_AFSEL10 GPIO_AFRH_AFSEL10_Msk
  7183. #define GPIO_AFRH_AFSEL11_Pos (12U)
  7184. #define GPIO_AFRH_AFSEL11_Msk (0xFU << GPIO_AFRH_AFSEL11_Pos) /*!< 0x0000F000 */
  7185. #define GPIO_AFRH_AFSEL11 GPIO_AFRH_AFSEL11_Msk
  7186. #define GPIO_AFRH_AFSEL12_Pos (16U)
  7187. #define GPIO_AFRH_AFSEL12_Msk (0xFU << GPIO_AFRH_AFSEL12_Pos) /*!< 0x000F0000 */
  7188. #define GPIO_AFRH_AFSEL12 GPIO_AFRH_AFSEL12_Msk
  7189. #define GPIO_AFRH_AFSEL13_Pos (20U)
  7190. #define GPIO_AFRH_AFSEL13_Msk (0xFU << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00F00000 */
  7191. #define GPIO_AFRH_AFSEL13 GPIO_AFRH_AFSEL13_Msk
  7192. #define GPIO_AFRH_AFSEL14_Pos (24U)
  7193. #define GPIO_AFRH_AFSEL14_Msk (0xFU << GPIO_AFRH_AFSEL14_Pos) /*!< 0x0F000000 */
  7194. #define GPIO_AFRH_AFSEL14 GPIO_AFRH_AFSEL14_Msk
  7195. #define GPIO_AFRH_AFSEL15_Pos (28U)
  7196. #define GPIO_AFRH_AFSEL15_Msk (0xFU << GPIO_AFRH_AFSEL15_Pos) /*!< 0xF0000000 */
  7197. #define GPIO_AFRH_AFSEL15 GPIO_AFRH_AFSEL15_Msk
  7198. /* Legacy aliases */
  7199. #define GPIO_AFRH_AFRH0_Pos GPIO_AFRH_AFSEL8_Pos
  7200. #define GPIO_AFRH_AFRH0_Msk GPIO_AFRH_AFSEL8_Msk
  7201. #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFSEL8
  7202. #define GPIO_AFRH_AFRH1_Pos GPIO_AFRH_AFSEL9_Pos
  7203. #define GPIO_AFRH_AFRH1_Msk GPIO_AFRH_AFSEL9_Msk
  7204. #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFSEL9
  7205. #define GPIO_AFRH_AFRH2_Pos GPIO_AFRH_AFSEL10_Pos
  7206. #define GPIO_AFRH_AFRH2_Msk GPIO_AFRH_AFSEL10_Msk
  7207. #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFSEL10
  7208. #define GPIO_AFRH_AFRH3_Pos GPIO_AFRH_AFSEL11_Pos
  7209. #define GPIO_AFRH_AFRH3_Msk GPIO_AFRH_AFSEL11_Msk
  7210. #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFSEL11
  7211. #define GPIO_AFRH_AFRH4_Pos GPIO_AFRH_AFSEL12_Pos
  7212. #define GPIO_AFRH_AFRH4_Msk GPIO_AFRH_AFSEL12_Msk
  7213. #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFSEL12
  7214. #define GPIO_AFRH_AFRH5_Pos GPIO_AFRH_AFSEL13_Pos
  7215. #define GPIO_AFRH_AFRH5_Msk GPIO_AFRH_AFSEL13_Msk
  7216. #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFSEL13
  7217. #define GPIO_AFRH_AFRH6_Pos GPIO_AFRH_AFSEL14_Pos
  7218. #define GPIO_AFRH_AFRH6_Msk GPIO_AFRH_AFSEL14_Msk
  7219. #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFSEL14
  7220. #define GPIO_AFRH_AFRH7_Pos GPIO_AFRH_AFSEL15_Pos
  7221. #define GPIO_AFRH_AFRH7_Msk GPIO_AFRH_AFSEL15_Msk
  7222. #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFSEL15
  7223. /****************** Bit definition for GPIO_BRR register *********************/
  7224. #define GPIO_BRR_BR_0 (0x00000001U)
  7225. #define GPIO_BRR_BR_1 (0x00000002U)
  7226. #define GPIO_BRR_BR_2 (0x00000004U)
  7227. #define GPIO_BRR_BR_3 (0x00000008U)
  7228. #define GPIO_BRR_BR_4 (0x00000010U)
  7229. #define GPIO_BRR_BR_5 (0x00000020U)
  7230. #define GPIO_BRR_BR_6 (0x00000040U)
  7231. #define GPIO_BRR_BR_7 (0x00000080U)
  7232. #define GPIO_BRR_BR_8 (0x00000100U)
  7233. #define GPIO_BRR_BR_9 (0x00000200U)
  7234. #define GPIO_BRR_BR_10 (0x00000400U)
  7235. #define GPIO_BRR_BR_11 (0x00000800U)
  7236. #define GPIO_BRR_BR_12 (0x00001000U)
  7237. #define GPIO_BRR_BR_13 (0x00002000U)
  7238. #define GPIO_BRR_BR_14 (0x00004000U)
  7239. #define GPIO_BRR_BR_15 (0x00008000U)
  7240. /******************************************************************************/
  7241. /* */
  7242. /* Inter-integrated Circuit Interface (I2C) */
  7243. /* */
  7244. /******************************************************************************/
  7245. /******************* Bit definition for I2C_CR1 register *******************/
  7246. #define I2C_CR1_PE_Pos (0U)
  7247. #define I2C_CR1_PE_Msk (0x1U << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  7248. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  7249. #define I2C_CR1_TXIE_Pos (1U)
  7250. #define I2C_CR1_TXIE_Msk (0x1U << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  7251. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  7252. #define I2C_CR1_RXIE_Pos (2U)
  7253. #define I2C_CR1_RXIE_Msk (0x1U << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  7254. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  7255. #define I2C_CR1_ADDRIE_Pos (3U)
  7256. #define I2C_CR1_ADDRIE_Msk (0x1U << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  7257. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  7258. #define I2C_CR1_NACKIE_Pos (4U)
  7259. #define I2C_CR1_NACKIE_Msk (0x1U << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  7260. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  7261. #define I2C_CR1_STOPIE_Pos (5U)
  7262. #define I2C_CR1_STOPIE_Msk (0x1U << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  7263. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  7264. #define I2C_CR1_TCIE_Pos (6U)
  7265. #define I2C_CR1_TCIE_Msk (0x1U << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  7266. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  7267. #define I2C_CR1_ERRIE_Pos (7U)
  7268. #define I2C_CR1_ERRIE_Msk (0x1U << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  7269. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  7270. #define I2C_CR1_DNF_Pos (8U)
  7271. #define I2C_CR1_DNF_Msk (0xFU << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  7272. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  7273. #define I2C_CR1_ANFOFF_Pos (12U)
  7274. #define I2C_CR1_ANFOFF_Msk (0x1U << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  7275. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  7276. #define I2C_CR1_SWRST_Pos (13U)
  7277. #define I2C_CR1_SWRST_Msk (0x1U << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  7278. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  7279. #define I2C_CR1_TXDMAEN_Pos (14U)
  7280. #define I2C_CR1_TXDMAEN_Msk (0x1U << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  7281. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  7282. #define I2C_CR1_RXDMAEN_Pos (15U)
  7283. #define I2C_CR1_RXDMAEN_Msk (0x1U << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  7284. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  7285. #define I2C_CR1_SBC_Pos (16U)
  7286. #define I2C_CR1_SBC_Msk (0x1U << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  7287. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  7288. #define I2C_CR1_NOSTRETCH_Pos (17U)
  7289. #define I2C_CR1_NOSTRETCH_Msk (0x1U << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  7290. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  7291. #define I2C_CR1_WUPEN_Pos (18U)
  7292. #define I2C_CR1_WUPEN_Msk (0x1U << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  7293. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  7294. #define I2C_CR1_GCEN_Pos (19U)
  7295. #define I2C_CR1_GCEN_Msk (0x1U << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  7296. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  7297. #define I2C_CR1_SMBHEN_Pos (20U)
  7298. #define I2C_CR1_SMBHEN_Msk (0x1U << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  7299. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  7300. #define I2C_CR1_SMBDEN_Pos (21U)
  7301. #define I2C_CR1_SMBDEN_Msk (0x1U << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  7302. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  7303. #define I2C_CR1_ALERTEN_Pos (22U)
  7304. #define I2C_CR1_ALERTEN_Msk (0x1U << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  7305. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  7306. #define I2C_CR1_PECEN_Pos (23U)
  7307. #define I2C_CR1_PECEN_Msk (0x1U << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  7308. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  7309. /****************** Bit definition for I2C_CR2 register ********************/
  7310. #define I2C_CR2_SADD_Pos (0U)
  7311. #define I2C_CR2_SADD_Msk (0x3FFU << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  7312. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  7313. #define I2C_CR2_RD_WRN_Pos (10U)
  7314. #define I2C_CR2_RD_WRN_Msk (0x1U << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  7315. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  7316. #define I2C_CR2_ADD10_Pos (11U)
  7317. #define I2C_CR2_ADD10_Msk (0x1U << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  7318. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  7319. #define I2C_CR2_HEAD10R_Pos (12U)
  7320. #define I2C_CR2_HEAD10R_Msk (0x1U << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  7321. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  7322. #define I2C_CR2_START_Pos (13U)
  7323. #define I2C_CR2_START_Msk (0x1U << I2C_CR2_START_Pos) /*!< 0x00002000 */
  7324. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  7325. #define I2C_CR2_STOP_Pos (14U)
  7326. #define I2C_CR2_STOP_Msk (0x1U << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  7327. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  7328. #define I2C_CR2_NACK_Pos (15U)
  7329. #define I2C_CR2_NACK_Msk (0x1U << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  7330. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  7331. #define I2C_CR2_NBYTES_Pos (16U)
  7332. #define I2C_CR2_NBYTES_Msk (0xFFU << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  7333. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  7334. #define I2C_CR2_RELOAD_Pos (24U)
  7335. #define I2C_CR2_RELOAD_Msk (0x1U << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  7336. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  7337. #define I2C_CR2_AUTOEND_Pos (25U)
  7338. #define I2C_CR2_AUTOEND_Msk (0x1U << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  7339. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  7340. #define I2C_CR2_PECBYTE_Pos (26U)
  7341. #define I2C_CR2_PECBYTE_Msk (0x1U << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  7342. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  7343. /******************* Bit definition for I2C_OAR1 register ******************/
  7344. #define I2C_OAR1_OA1_Pos (0U)
  7345. #define I2C_OAR1_OA1_Msk (0x3FFU << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  7346. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  7347. #define I2C_OAR1_OA1MODE_Pos (10U)
  7348. #define I2C_OAR1_OA1MODE_Msk (0x1U << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  7349. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  7350. #define I2C_OAR1_OA1EN_Pos (15U)
  7351. #define I2C_OAR1_OA1EN_Msk (0x1U << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  7352. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  7353. /******************* Bit definition for I2C_OAR2 register ******************/
  7354. #define I2C_OAR2_OA2_Pos (1U)
  7355. #define I2C_OAR2_OA2_Msk (0x7FU << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  7356. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  7357. #define I2C_OAR2_OA2MSK_Pos (8U)
  7358. #define I2C_OAR2_OA2MSK_Msk (0x7U << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  7359. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  7360. #define I2C_OAR2_OA2NOMASK (0x00000000U) /*!< No mask */
  7361. #define I2C_OAR2_OA2MASK01_Pos (8U)
  7362. #define I2C_OAR2_OA2MASK01_Msk (0x1U << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */
  7363. #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */
  7364. #define I2C_OAR2_OA2MASK02_Pos (9U)
  7365. #define I2C_OAR2_OA2MASK02_Msk (0x1U << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */
  7366. #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
  7367. #define I2C_OAR2_OA2MASK03_Pos (8U)
  7368. #define I2C_OAR2_OA2MASK03_Msk (0x3U << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */
  7369. #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
  7370. #define I2C_OAR2_OA2MASK04_Pos (10U)
  7371. #define I2C_OAR2_OA2MASK04_Msk (0x1U << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */
  7372. #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
  7373. #define I2C_OAR2_OA2MASK05_Pos (8U)
  7374. #define I2C_OAR2_OA2MASK05_Msk (0x5U << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */
  7375. #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
  7376. #define I2C_OAR2_OA2MASK06_Pos (9U)
  7377. #define I2C_OAR2_OA2MASK06_Msk (0x3U << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */
  7378. #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */
  7379. #define I2C_OAR2_OA2MASK07_Pos (8U)
  7380. #define I2C_OAR2_OA2MASK07_Msk (0x7U << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */
  7381. #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */
  7382. #define I2C_OAR2_OA2EN_Pos (15U)
  7383. #define I2C_OAR2_OA2EN_Msk (0x1U << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  7384. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  7385. /******************* Bit definition for I2C_TIMINGR register ****************/
  7386. #define I2C_TIMINGR_SCLL_Pos (0U)
  7387. #define I2C_TIMINGR_SCLL_Msk (0xFFU << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  7388. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  7389. #define I2C_TIMINGR_SCLH_Pos (8U)
  7390. #define I2C_TIMINGR_SCLH_Msk (0xFFU << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  7391. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  7392. #define I2C_TIMINGR_SDADEL_Pos (16U)
  7393. #define I2C_TIMINGR_SDADEL_Msk (0xFU << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  7394. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  7395. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  7396. #define I2C_TIMINGR_SCLDEL_Msk (0xFU << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  7397. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  7398. #define I2C_TIMINGR_PRESC_Pos (28U)
  7399. #define I2C_TIMINGR_PRESC_Msk (0xFU << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  7400. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  7401. /******************* Bit definition for I2C_TIMEOUTR register ****************/
  7402. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  7403. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  7404. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  7405. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  7406. #define I2C_TIMEOUTR_TIDLE_Msk (0x1U << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  7407. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  7408. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  7409. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1U << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  7410. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  7411. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  7412. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  7413. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  7414. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  7415. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1U << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  7416. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  7417. /****************** Bit definition for I2C_ISR register ********************/
  7418. #define I2C_ISR_TXE_Pos (0U)
  7419. #define I2C_ISR_TXE_Msk (0x1U << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  7420. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  7421. #define I2C_ISR_TXIS_Pos (1U)
  7422. #define I2C_ISR_TXIS_Msk (0x1U << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  7423. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  7424. #define I2C_ISR_RXNE_Pos (2U)
  7425. #define I2C_ISR_RXNE_Msk (0x1U << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  7426. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  7427. #define I2C_ISR_ADDR_Pos (3U)
  7428. #define I2C_ISR_ADDR_Msk (0x1U << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  7429. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  7430. #define I2C_ISR_NACKF_Pos (4U)
  7431. #define I2C_ISR_NACKF_Msk (0x1U << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  7432. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  7433. #define I2C_ISR_STOPF_Pos (5U)
  7434. #define I2C_ISR_STOPF_Msk (0x1U << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  7435. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  7436. #define I2C_ISR_TC_Pos (6U)
  7437. #define I2C_ISR_TC_Msk (0x1U << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  7438. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  7439. #define I2C_ISR_TCR_Pos (7U)
  7440. #define I2C_ISR_TCR_Msk (0x1U << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  7441. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  7442. #define I2C_ISR_BERR_Pos (8U)
  7443. #define I2C_ISR_BERR_Msk (0x1U << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  7444. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  7445. #define I2C_ISR_ARLO_Pos (9U)
  7446. #define I2C_ISR_ARLO_Msk (0x1U << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  7447. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  7448. #define I2C_ISR_OVR_Pos (10U)
  7449. #define I2C_ISR_OVR_Msk (0x1U << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  7450. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  7451. #define I2C_ISR_PECERR_Pos (11U)
  7452. #define I2C_ISR_PECERR_Msk (0x1U << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  7453. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  7454. #define I2C_ISR_TIMEOUT_Pos (12U)
  7455. #define I2C_ISR_TIMEOUT_Msk (0x1U << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  7456. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  7457. #define I2C_ISR_ALERT_Pos (13U)
  7458. #define I2C_ISR_ALERT_Msk (0x1U << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  7459. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  7460. #define I2C_ISR_BUSY_Pos (15U)
  7461. #define I2C_ISR_BUSY_Msk (0x1U << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  7462. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  7463. #define I2C_ISR_DIR_Pos (16U)
  7464. #define I2C_ISR_DIR_Msk (0x1U << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  7465. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  7466. #define I2C_ISR_ADDCODE_Pos (17U)
  7467. #define I2C_ISR_ADDCODE_Msk (0x7FU << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  7468. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  7469. /****************** Bit definition for I2C_ICR register ********************/
  7470. #define I2C_ICR_ADDRCF_Pos (3U)
  7471. #define I2C_ICR_ADDRCF_Msk (0x1U << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  7472. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  7473. #define I2C_ICR_NACKCF_Pos (4U)
  7474. #define I2C_ICR_NACKCF_Msk (0x1U << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  7475. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  7476. #define I2C_ICR_STOPCF_Pos (5U)
  7477. #define I2C_ICR_STOPCF_Msk (0x1U << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  7478. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  7479. #define I2C_ICR_BERRCF_Pos (8U)
  7480. #define I2C_ICR_BERRCF_Msk (0x1U << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  7481. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  7482. #define I2C_ICR_ARLOCF_Pos (9U)
  7483. #define I2C_ICR_ARLOCF_Msk (0x1U << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  7484. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  7485. #define I2C_ICR_OVRCF_Pos (10U)
  7486. #define I2C_ICR_OVRCF_Msk (0x1U << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  7487. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  7488. #define I2C_ICR_PECCF_Pos (11U)
  7489. #define I2C_ICR_PECCF_Msk (0x1U << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  7490. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  7491. #define I2C_ICR_TIMOUTCF_Pos (12U)
  7492. #define I2C_ICR_TIMOUTCF_Msk (0x1U << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  7493. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  7494. #define I2C_ICR_ALERTCF_Pos (13U)
  7495. #define I2C_ICR_ALERTCF_Msk (0x1U << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  7496. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  7497. /****************** Bit definition for I2C_PECR register *******************/
  7498. #define I2C_PECR_PEC_Pos (0U)
  7499. #define I2C_PECR_PEC_Msk (0xFFU << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  7500. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  7501. /****************** Bit definition for I2C_RXDR register *********************/
  7502. #define I2C_RXDR_RXDATA_Pos (0U)
  7503. #define I2C_RXDR_RXDATA_Msk (0xFFU << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  7504. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  7505. /****************** Bit definition for I2C_TXDR register *******************/
  7506. #define I2C_TXDR_TXDATA_Pos (0U)
  7507. #define I2C_TXDR_TXDATA_Msk (0xFFU << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  7508. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  7509. /*****************************************************************************/
  7510. /* */
  7511. /* Independent WATCHDOG (IWDG) */
  7512. /* */
  7513. /*****************************************************************************/
  7514. /******************* Bit definition for IWDG_KR register *******************/
  7515. #define IWDG_KR_KEY_Pos (0U)
  7516. #define IWDG_KR_KEY_Msk (0xFFFFU << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */
  7517. #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!< Key value (write only, read 0000h) */
  7518. /******************* Bit definition for IWDG_PR register *******************/
  7519. #define IWDG_PR_PR_Pos (0U)
  7520. #define IWDG_PR_PR_Msk (0x7U << IWDG_PR_PR_Pos) /*!< 0x00000007 */
  7521. #define IWDG_PR_PR IWDG_PR_PR_Msk /*!< PR[2:0] (Prescaler divider) */
  7522. #define IWDG_PR_PR_0 (0x1U << IWDG_PR_PR_Pos) /*!< 0x01 */
  7523. #define IWDG_PR_PR_1 (0x2U << IWDG_PR_PR_Pos) /*!< 0x02 */
  7524. #define IWDG_PR_PR_2 (0x4U << IWDG_PR_PR_Pos) /*!< 0x04 */
  7525. /******************* Bit definition for IWDG_RLR register ******************/
  7526. #define IWDG_RLR_RL_Pos (0U)
  7527. #define IWDG_RLR_RL_Msk (0xFFFU << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */
  7528. #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!< Watchdog counter reload value */
  7529. /******************* Bit definition for IWDG_SR register *******************/
  7530. #define IWDG_SR_PVU_Pos (0U)
  7531. #define IWDG_SR_PVU_Msk (0x1U << IWDG_SR_PVU_Pos) /*!< 0x00000001 */
  7532. #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */
  7533. #define IWDG_SR_RVU_Pos (1U)
  7534. #define IWDG_SR_RVU_Msk (0x1U << IWDG_SR_RVU_Pos) /*!< 0x00000002 */
  7535. #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */
  7536. #define IWDG_SR_WVU_Pos (2U)
  7537. #define IWDG_SR_WVU_Msk (0x1U << IWDG_SR_WVU_Pos) /*!< 0x00000004 */
  7538. #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */
  7539. /******************* Bit definition for IWDG_KR register *******************/
  7540. #define IWDG_WINR_WIN_Pos (0U)
  7541. #define IWDG_WINR_WIN_Msk (0xFFFU << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */
  7542. #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */
  7543. /*****************************************************************************/
  7544. /* */
  7545. /* Power Control (PWR) */
  7546. /* */
  7547. /*****************************************************************************/
  7548. /* Note: No specific macro feature on this device */
  7549. /******************** Bit definition for PWR_CR register *******************/
  7550. #define PWR_CR_LPDS_Pos (0U)
  7551. #define PWR_CR_LPDS_Msk (0x1U << PWR_CR_LPDS_Pos) /*!< 0x00000001 */
  7552. #define PWR_CR_LPDS PWR_CR_LPDS_Msk /*!< Low-power Deepsleep */
  7553. #define PWR_CR_PDDS_Pos (1U)
  7554. #define PWR_CR_PDDS_Msk (0x1U << PWR_CR_PDDS_Pos) /*!< 0x00000002 */
  7555. #define PWR_CR_PDDS PWR_CR_PDDS_Msk /*!< Power Down Deepsleep */
  7556. #define PWR_CR_CWUF_Pos (2U)
  7557. #define PWR_CR_CWUF_Msk (0x1U << PWR_CR_CWUF_Pos) /*!< 0x00000004 */
  7558. #define PWR_CR_CWUF PWR_CR_CWUF_Msk /*!< Clear Wakeup Flag */
  7559. #define PWR_CR_CSBF_Pos (3U)
  7560. #define PWR_CR_CSBF_Msk (0x1U << PWR_CR_CSBF_Pos) /*!< 0x00000008 */
  7561. #define PWR_CR_CSBF PWR_CR_CSBF_Msk /*!< Clear Standby Flag */
  7562. #define PWR_CR_DBP_Pos (8U)
  7563. #define PWR_CR_DBP_Msk (0x1U << PWR_CR_DBP_Pos) /*!< 0x00000100 */
  7564. #define PWR_CR_DBP PWR_CR_DBP_Msk /*!< Disable Backup Domain write protection */
  7565. /******************* Bit definition for PWR_CSR register *******************/
  7566. #define PWR_CSR_WUF_Pos (0U)
  7567. #define PWR_CSR_WUF_Msk (0x1U << PWR_CSR_WUF_Pos) /*!< 0x00000001 */
  7568. #define PWR_CSR_WUF PWR_CSR_WUF_Msk /*!< Wakeup Flag */
  7569. #define PWR_CSR_SBF_Pos (1U)
  7570. #define PWR_CSR_SBF_Msk (0x1U << PWR_CSR_SBF_Pos) /*!< 0x00000002 */
  7571. #define PWR_CSR_SBF PWR_CSR_SBF_Msk /*!< Standby Flag */
  7572. #define PWR_CSR_VREFINTRDYF_Pos (3U)
  7573. #define PWR_CSR_VREFINTRDYF_Msk (0x1U << PWR_CSR_VREFINTRDYF_Pos) /*!< 0x00000008 */
  7574. #define PWR_CSR_VREFINTRDYF PWR_CSR_VREFINTRDYF_Msk /*!< Internal voltage reference (VREFINT) ready flag */
  7575. #define PWR_CSR_EWUP1_Pos (8U)
  7576. #define PWR_CSR_EWUP1_Msk (0x1U << PWR_CSR_EWUP1_Pos) /*!< 0x00000100 */
  7577. #define PWR_CSR_EWUP1 PWR_CSR_EWUP1_Msk /*!< Enable WKUP pin 1 */
  7578. #define PWR_CSR_EWUP2_Pos (9U)
  7579. #define PWR_CSR_EWUP2_Msk (0x1U << PWR_CSR_EWUP2_Pos) /*!< 0x00000200 */
  7580. #define PWR_CSR_EWUP2 PWR_CSR_EWUP2_Msk /*!< Enable WKUP pin 2 */
  7581. #define PWR_CSR_EWUP3_Pos (10U)
  7582. #define PWR_CSR_EWUP3_Msk (0x1U << PWR_CSR_EWUP3_Pos) /*!< 0x00000400 */
  7583. #define PWR_CSR_EWUP3 PWR_CSR_EWUP3_Msk /*!< Enable WKUP pin 3 */
  7584. #define PWR_CSR_EWUP4_Pos (11U)
  7585. #define PWR_CSR_EWUP4_Msk (0x1U << PWR_CSR_EWUP4_Pos) /*!< 0x00000800 */
  7586. #define PWR_CSR_EWUP4 PWR_CSR_EWUP4_Msk /*!< Enable WKUP pin 4 */
  7587. #define PWR_CSR_EWUP5_Pos (12U)
  7588. #define PWR_CSR_EWUP5_Msk (0x1U << PWR_CSR_EWUP5_Pos) /*!< 0x00001000 */
  7589. #define PWR_CSR_EWUP5 PWR_CSR_EWUP5_Msk /*!< Enable WKUP pin 5 */
  7590. #define PWR_CSR_EWUP6_Pos (13U)
  7591. #define PWR_CSR_EWUP6_Msk (0x1U << PWR_CSR_EWUP6_Pos) /*!< 0x00002000 */
  7592. #define PWR_CSR_EWUP6 PWR_CSR_EWUP6_Msk /*!< Enable WKUP pin 6 */
  7593. #define PWR_CSR_EWUP7_Pos (14U)
  7594. #define PWR_CSR_EWUP7_Msk (0x1U << PWR_CSR_EWUP7_Pos) /*!< 0x00004000 */
  7595. #define PWR_CSR_EWUP7 PWR_CSR_EWUP7_Msk /*!< Enable WKUP pin 7 */
  7596. #define PWR_CSR_EWUP8_Pos (15U)
  7597. #define PWR_CSR_EWUP8_Msk (0x1U << PWR_CSR_EWUP8_Pos) /*!< 0x00008000 */
  7598. #define PWR_CSR_EWUP8 PWR_CSR_EWUP8_Msk /*!< Enable WKUP pin 8 */
  7599. /*****************************************************************************/
  7600. /* */
  7601. /* Reset and Clock Control */
  7602. /* */
  7603. /*****************************************************************************/
  7604. /*
  7605. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  7606. */
  7607. #define RCC_HSI48_SUPPORT /*!< HSI48 feature support */
  7608. #define RCC_PLLSRC_PREDIV1_SUPPORT /*!< PREDIV support used as PLL source input */
  7609. /******************** Bit definition for RCC_CR register *******************/
  7610. #define RCC_CR_HSION_Pos (0U)
  7611. #define RCC_CR_HSION_Msk (0x1U << RCC_CR_HSION_Pos) /*!< 0x00000001 */
  7612. #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed clock enable */
  7613. #define RCC_CR_HSIRDY_Pos (1U)
  7614. #define RCC_CR_HSIRDY_Msk (0x1U << RCC_CR_HSIRDY_Pos) /*!< 0x00000002 */
  7615. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed clock ready flag */
  7616. #define RCC_CR_HSITRIM_Pos (3U)
  7617. #define RCC_CR_HSITRIM_Msk (0x1FU << RCC_CR_HSITRIM_Pos) /*!< 0x000000F8 */
  7618. #define RCC_CR_HSITRIM RCC_CR_HSITRIM_Msk /*!< Internal High Speed clock trimming */
  7619. #define RCC_CR_HSITRIM_0 (0x01U << RCC_CR_HSITRIM_Pos) /*!< 0x00000008 */
  7620. #define RCC_CR_HSITRIM_1 (0x02U << RCC_CR_HSITRIM_Pos) /*!< 0x00000010 */
  7621. #define RCC_CR_HSITRIM_2 (0x04U << RCC_CR_HSITRIM_Pos) /*!< 0x00000020 */
  7622. #define RCC_CR_HSITRIM_3 (0x08U << RCC_CR_HSITRIM_Pos) /*!< 0x00000040 */
  7623. #define RCC_CR_HSITRIM_4 (0x10U << RCC_CR_HSITRIM_Pos) /*!< 0x00000080 */
  7624. #define RCC_CR_HSICAL_Pos (8U)
  7625. #define RCC_CR_HSICAL_Msk (0xFFU << RCC_CR_HSICAL_Pos) /*!< 0x0000FF00 */
  7626. #define RCC_CR_HSICAL RCC_CR_HSICAL_Msk /*!< Internal High Speed clock Calibration */
  7627. #define RCC_CR_HSICAL_0 (0x01U << RCC_CR_HSICAL_Pos) /*!< 0x00000100 */
  7628. #define RCC_CR_HSICAL_1 (0x02U << RCC_CR_HSICAL_Pos) /*!< 0x00000200 */
  7629. #define RCC_CR_HSICAL_2 (0x04U << RCC_CR_HSICAL_Pos) /*!< 0x00000400 */
  7630. #define RCC_CR_HSICAL_3 (0x08U << RCC_CR_HSICAL_Pos) /*!< 0x00000800 */
  7631. #define RCC_CR_HSICAL_4 (0x10U << RCC_CR_HSICAL_Pos) /*!< 0x00001000 */
  7632. #define RCC_CR_HSICAL_5 (0x20U << RCC_CR_HSICAL_Pos) /*!< 0x00002000 */
  7633. #define RCC_CR_HSICAL_6 (0x40U << RCC_CR_HSICAL_Pos) /*!< 0x00004000 */
  7634. #define RCC_CR_HSICAL_7 (0x80U << RCC_CR_HSICAL_Pos) /*!< 0x00008000 */
  7635. #define RCC_CR_HSEON_Pos (16U)
  7636. #define RCC_CR_HSEON_Msk (0x1U << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  7637. #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed clock enable */
  7638. #define RCC_CR_HSERDY_Pos (17U)
  7639. #define RCC_CR_HSERDY_Msk (0x1U << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  7640. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed clock ready flag */
  7641. #define RCC_CR_HSEBYP_Pos (18U)
  7642. #define RCC_CR_HSEBYP_Msk (0x1U << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  7643. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed clock Bypass */
  7644. #define RCC_CR_CSSON_Pos (19U)
  7645. #define RCC_CR_CSSON_Msk (0x1U << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
  7646. #define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< Clock Security System enable */
  7647. #define RCC_CR_PLLON_Pos (24U)
  7648. #define RCC_CR_PLLON_Msk (0x1U << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  7649. #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< PLL enable */
  7650. #define RCC_CR_PLLRDY_Pos (25U)
  7651. #define RCC_CR_PLLRDY_Msk (0x1U << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  7652. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< PLL clock ready flag */
  7653. /******************** Bit definition for RCC_CFGR register *****************/
  7654. /*!< SW configuration */
  7655. #define RCC_CFGR_SW_Pos (0U)
  7656. #define RCC_CFGR_SW_Msk (0x3U << RCC_CFGR_SW_Pos) /*!< 0x00000003 */
  7657. #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */
  7658. #define RCC_CFGR_SW_0 (0x1U << RCC_CFGR_SW_Pos) /*!< 0x00000001 */
  7659. #define RCC_CFGR_SW_1 (0x2U << RCC_CFGR_SW_Pos) /*!< 0x00000002 */
  7660. #define RCC_CFGR_SW_HSI (0x00000000U) /*!< HSI selected as system clock */
  7661. #define RCC_CFGR_SW_HSE (0x00000001U) /*!< HSE selected as system clock */
  7662. #define RCC_CFGR_SW_PLL (0x00000002U) /*!< PLL selected as system clock */
  7663. #define RCC_CFGR_SW_HSI48 (0x00000003U) /*!< HSI48 selected as system clock */
  7664. /*!< SWS configuration */
  7665. #define RCC_CFGR_SWS_Pos (2U)
  7666. #define RCC_CFGR_SWS_Msk (0x3U << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */
  7667. #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */
  7668. #define RCC_CFGR_SWS_0 (0x1U << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */
  7669. #define RCC_CFGR_SWS_1 (0x2U << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */
  7670. #define RCC_CFGR_SWS_HSI (0x00000000U) /*!< HSI oscillator used as system clock */
  7671. #define RCC_CFGR_SWS_HSE (0x00000004U) /*!< HSE oscillator used as system clock */
  7672. #define RCC_CFGR_SWS_PLL (0x00000008U) /*!< PLL used as system clock */
  7673. #define RCC_CFGR_SWS_HSI48 (0x0000000CU) /*!< HSI48 oscillator used as system clock */
  7674. /*!< HPRE configuration */
  7675. #define RCC_CFGR_HPRE_Pos (4U)
  7676. #define RCC_CFGR_HPRE_Msk (0xFU << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */
  7677. #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */
  7678. #define RCC_CFGR_HPRE_0 (0x1U << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */
  7679. #define RCC_CFGR_HPRE_1 (0x2U << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */
  7680. #define RCC_CFGR_HPRE_2 (0x4U << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */
  7681. #define RCC_CFGR_HPRE_3 (0x8U << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */
  7682. #define RCC_CFGR_HPRE_DIV1 (0x00000000U) /*!< SYSCLK not divided */
  7683. #define RCC_CFGR_HPRE_DIV2 (0x00000080U) /*!< SYSCLK divided by 2 */
  7684. #define RCC_CFGR_HPRE_DIV4 (0x00000090U) /*!< SYSCLK divided by 4 */
  7685. #define RCC_CFGR_HPRE_DIV8 (0x000000A0U) /*!< SYSCLK divided by 8 */
  7686. #define RCC_CFGR_HPRE_DIV16 (0x000000B0U) /*!< SYSCLK divided by 16 */
  7687. #define RCC_CFGR_HPRE_DIV64 (0x000000C0U) /*!< SYSCLK divided by 64 */
  7688. #define RCC_CFGR_HPRE_DIV128 (0x000000D0U) /*!< SYSCLK divided by 128 */
  7689. #define RCC_CFGR_HPRE_DIV256 (0x000000E0U) /*!< SYSCLK divided by 256 */
  7690. #define RCC_CFGR_HPRE_DIV512 (0x000000F0U) /*!< SYSCLK divided by 512 */
  7691. /*!< PPRE configuration */
  7692. #define RCC_CFGR_PPRE_Pos (8U)
  7693. #define RCC_CFGR_PPRE_Msk (0x7U << RCC_CFGR_PPRE_Pos) /*!< 0x00000700 */
  7694. #define RCC_CFGR_PPRE RCC_CFGR_PPRE_Msk /*!< PRE[2:0] bits (APB prescaler) */
  7695. #define RCC_CFGR_PPRE_0 (0x1U << RCC_CFGR_PPRE_Pos) /*!< 0x00000100 */
  7696. #define RCC_CFGR_PPRE_1 (0x2U << RCC_CFGR_PPRE_Pos) /*!< 0x00000200 */
  7697. #define RCC_CFGR_PPRE_2 (0x4U << RCC_CFGR_PPRE_Pos) /*!< 0x00000400 */
  7698. #define RCC_CFGR_PPRE_DIV1 (0x00000000U) /*!< HCLK not divided */
  7699. #define RCC_CFGR_PPRE_DIV2_Pos (10U)
  7700. #define RCC_CFGR_PPRE_DIV2_Msk (0x1U << RCC_CFGR_PPRE_DIV2_Pos) /*!< 0x00000400 */
  7701. #define RCC_CFGR_PPRE_DIV2 RCC_CFGR_PPRE_DIV2_Msk /*!< HCLK divided by 2 */
  7702. #define RCC_CFGR_PPRE_DIV4_Pos (8U)
  7703. #define RCC_CFGR_PPRE_DIV4_Msk (0x5U << RCC_CFGR_PPRE_DIV4_Pos) /*!< 0x00000500 */
  7704. #define RCC_CFGR_PPRE_DIV4 RCC_CFGR_PPRE_DIV4_Msk /*!< HCLK divided by 4 */
  7705. #define RCC_CFGR_PPRE_DIV8_Pos (9U)
  7706. #define RCC_CFGR_PPRE_DIV8_Msk (0x3U << RCC_CFGR_PPRE_DIV8_Pos) /*!< 0x00000600 */
  7707. #define RCC_CFGR_PPRE_DIV8 RCC_CFGR_PPRE_DIV8_Msk /*!< HCLK divided by 8 */
  7708. #define RCC_CFGR_PPRE_DIV16_Pos (8U)
  7709. #define RCC_CFGR_PPRE_DIV16_Msk (0x7U << RCC_CFGR_PPRE_DIV16_Pos) /*!< 0x00000700 */
  7710. #define RCC_CFGR_PPRE_DIV16 RCC_CFGR_PPRE_DIV16_Msk /*!< HCLK divided by 16 */
  7711. #define RCC_CFGR_PLLSRC_Pos (15U)
  7712. #define RCC_CFGR_PLLSRC_Msk (0x3U << RCC_CFGR_PLLSRC_Pos) /*!< 0x00018000 */
  7713. #define RCC_CFGR_PLLSRC RCC_CFGR_PLLSRC_Msk /*!< PLL entry clock source */
  7714. #define RCC_CFGR_PLLSRC_HSI_DIV2 (0x00000000U) /*!< HSI clock divided by 2 selected as PLL entry clock source */
  7715. #define RCC_CFGR_PLLSRC_HSI_PREDIV (0x00008000U) /*!< HSI/PREDIV clock selected as PLL entry clock source */
  7716. #define RCC_CFGR_PLLSRC_HSE_PREDIV (0x00010000U) /*!< HSE/PREDIV clock selected as PLL entry clock source */
  7717. #define RCC_CFGR_PLLSRC_HSI48_PREDIV (0x00018000U) /*!< HSI48/PREDIV clock selected as PLL entry clock source */
  7718. #define RCC_CFGR_PLLXTPRE_Pos (17U)
  7719. #define RCC_CFGR_PLLXTPRE_Msk (0x1U << RCC_CFGR_PLLXTPRE_Pos) /*!< 0x00020000 */
  7720. #define RCC_CFGR_PLLXTPRE RCC_CFGR_PLLXTPRE_Msk /*!< HSE divider for PLL entry */
  7721. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV1 (0x00000000U) /*!< HSE/PREDIV clock not divided for PLL entry */
  7722. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV2 (0x00020000U) /*!< HSE/PREDIV clock divided by 2 for PLL entry */
  7723. /*!< PLLMUL configuration */
  7724. #define RCC_CFGR_PLLMUL_Pos (18U)
  7725. #define RCC_CFGR_PLLMUL_Msk (0xFU << RCC_CFGR_PLLMUL_Pos) /*!< 0x003C0000 */
  7726. #define RCC_CFGR_PLLMUL RCC_CFGR_PLLMUL_Msk /*!< PLLMUL[3:0] bits (PLL multiplication factor) */
  7727. #define RCC_CFGR_PLLMUL_0 (0x1U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00040000 */
  7728. #define RCC_CFGR_PLLMUL_1 (0x2U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00080000 */
  7729. #define RCC_CFGR_PLLMUL_2 (0x4U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00100000 */
  7730. #define RCC_CFGR_PLLMUL_3 (0x8U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00200000 */
  7731. #define RCC_CFGR_PLLMUL2 (0x00000000U) /*!< PLL input clock*2 */
  7732. #define RCC_CFGR_PLLMUL3 (0x00040000U) /*!< PLL input clock*3 */
  7733. #define RCC_CFGR_PLLMUL4 (0x00080000U) /*!< PLL input clock*4 */
  7734. #define RCC_CFGR_PLLMUL5 (0x000C0000U) /*!< PLL input clock*5 */
  7735. #define RCC_CFGR_PLLMUL6 (0x00100000U) /*!< PLL input clock*6 */
  7736. #define RCC_CFGR_PLLMUL7 (0x00140000U) /*!< PLL input clock*7 */
  7737. #define RCC_CFGR_PLLMUL8 (0x00180000U) /*!< PLL input clock*8 */
  7738. #define RCC_CFGR_PLLMUL9 (0x001C0000U) /*!< PLL input clock*9 */
  7739. #define RCC_CFGR_PLLMUL10 (0x00200000U) /*!< PLL input clock10 */
  7740. #define RCC_CFGR_PLLMUL11 (0x00240000U) /*!< PLL input clock*11 */
  7741. #define RCC_CFGR_PLLMUL12 (0x00280000U) /*!< PLL input clock*12 */
  7742. #define RCC_CFGR_PLLMUL13 (0x002C0000U) /*!< PLL input clock*13 */
  7743. #define RCC_CFGR_PLLMUL14 (0x00300000U) /*!< PLL input clock*14 */
  7744. #define RCC_CFGR_PLLMUL15 (0x00340000U) /*!< PLL input clock*15 */
  7745. #define RCC_CFGR_PLLMUL16 (0x00380000U) /*!< PLL input clock*16 */
  7746. /*!< MCO configuration */
  7747. #define RCC_CFGR_MCO_Pos (24U)
  7748. #define RCC_CFGR_MCO_Msk (0xFU << RCC_CFGR_MCO_Pos) /*!< 0x0F000000 */
  7749. #define RCC_CFGR_MCO RCC_CFGR_MCO_Msk /*!< MCO[3:0] bits (Microcontroller Clock Output) */
  7750. #define RCC_CFGR_MCO_0 (0x1U << RCC_CFGR_MCO_Pos) /*!< 0x01000000 */
  7751. #define RCC_CFGR_MCO_1 (0x2U << RCC_CFGR_MCO_Pos) /*!< 0x02000000 */
  7752. #define RCC_CFGR_MCO_2 (0x4U << RCC_CFGR_MCO_Pos) /*!< 0x04000000 */
  7753. #define RCC_CFGR_MCO_3 (0x08000000U) /*!< Bit 3 */
  7754. #define RCC_CFGR_MCO_NOCLOCK (0x00000000U) /*!< No clock */
  7755. #define RCC_CFGR_MCO_HSI14 (0x01000000U) /*!< HSI14 clock selected as MCO source */
  7756. #define RCC_CFGR_MCO_LSI (0x02000000U) /*!< LSI clock selected as MCO source */
  7757. #define RCC_CFGR_MCO_LSE (0x03000000U) /*!< LSE clock selected as MCO source */
  7758. #define RCC_CFGR_MCO_SYSCLK (0x04000000U) /*!< System clock selected as MCO source */
  7759. #define RCC_CFGR_MCO_HSI (0x05000000U) /*!< HSI clock selected as MCO source */
  7760. #define RCC_CFGR_MCO_HSE (0x06000000U) /*!< HSE clock selected as MCO source */
  7761. #define RCC_CFGR_MCO_PLL (0x07000000U) /*!< PLL clock divided by 2 selected as MCO source */
  7762. #define RCC_CFGR_MCO_HSI48 (0x08000000U) /*!< HSI48 clock selected as MCO source */
  7763. #define RCC_CFGR_MCOPRE_Pos (28U)
  7764. #define RCC_CFGR_MCOPRE_Msk (0x7U << RCC_CFGR_MCOPRE_Pos) /*!< 0x70000000 */
  7765. #define RCC_CFGR_MCOPRE RCC_CFGR_MCOPRE_Msk /*!< MCO prescaler */
  7766. #define RCC_CFGR_MCOPRE_DIV1 (0x00000000U) /*!< MCO is divided by 1 */
  7767. #define RCC_CFGR_MCOPRE_DIV2 (0x10000000U) /*!< MCO is divided by 2 */
  7768. #define RCC_CFGR_MCOPRE_DIV4 (0x20000000U) /*!< MCO is divided by 4 */
  7769. #define RCC_CFGR_MCOPRE_DIV8 (0x30000000U) /*!< MCO is divided by 8 */
  7770. #define RCC_CFGR_MCOPRE_DIV16 (0x40000000U) /*!< MCO is divided by 16 */
  7771. #define RCC_CFGR_MCOPRE_DIV32 (0x50000000U) /*!< MCO is divided by 32 */
  7772. #define RCC_CFGR_MCOPRE_DIV64 (0x60000000U) /*!< MCO is divided by 64 */
  7773. #define RCC_CFGR_MCOPRE_DIV128 (0x70000000U) /*!< MCO is divided by 128 */
  7774. #define RCC_CFGR_PLLNODIV_Pos (31U)
  7775. #define RCC_CFGR_PLLNODIV_Msk (0x1U << RCC_CFGR_PLLNODIV_Pos) /*!< 0x80000000 */
  7776. #define RCC_CFGR_PLLNODIV RCC_CFGR_PLLNODIV_Msk /*!< PLL is not divided to MCO */
  7777. /* Reference defines */
  7778. #define RCC_CFGR_MCOSEL RCC_CFGR_MCO
  7779. #define RCC_CFGR_MCOSEL_0 RCC_CFGR_MCO_0
  7780. #define RCC_CFGR_MCOSEL_1 RCC_CFGR_MCO_1
  7781. #define RCC_CFGR_MCOSEL_2 RCC_CFGR_MCO_2
  7782. #define RCC_CFGR_MCOSEL_3 RCC_CFGR_MCO_3
  7783. #define RCC_CFGR_MCOSEL_NOCLOCK RCC_CFGR_MCO_NOCLOCK
  7784. #define RCC_CFGR_MCOSEL_HSI14 RCC_CFGR_MCO_HSI14
  7785. #define RCC_CFGR_MCOSEL_LSI RCC_CFGR_MCO_LSI
  7786. #define RCC_CFGR_MCOSEL_LSE RCC_CFGR_MCO_LSE
  7787. #define RCC_CFGR_MCOSEL_SYSCLK RCC_CFGR_MCO_SYSCLK
  7788. #define RCC_CFGR_MCOSEL_HSI RCC_CFGR_MCO_HSI
  7789. #define RCC_CFGR_MCOSEL_HSE RCC_CFGR_MCO_HSE
  7790. #define RCC_CFGR_MCOSEL_PLL_DIV2 RCC_CFGR_MCO_PLL
  7791. #define RCC_CFGR_MCOSEL_HSI48 RCC_CFGR_MCO_HSI48
  7792. /*!<****************** Bit definition for RCC_CIR register *****************/
  7793. #define RCC_CIR_LSIRDYF_Pos (0U)
  7794. #define RCC_CIR_LSIRDYF_Msk (0x1U << RCC_CIR_LSIRDYF_Pos) /*!< 0x00000001 */
  7795. #define RCC_CIR_LSIRDYF RCC_CIR_LSIRDYF_Msk /*!< LSI Ready Interrupt flag */
  7796. #define RCC_CIR_LSERDYF_Pos (1U)
  7797. #define RCC_CIR_LSERDYF_Msk (0x1U << RCC_CIR_LSERDYF_Pos) /*!< 0x00000002 */
  7798. #define RCC_CIR_LSERDYF RCC_CIR_LSERDYF_Msk /*!< LSE Ready Interrupt flag */
  7799. #define RCC_CIR_HSIRDYF_Pos (2U)
  7800. #define RCC_CIR_HSIRDYF_Msk (0x1U << RCC_CIR_HSIRDYF_Pos) /*!< 0x00000004 */
  7801. #define RCC_CIR_HSIRDYF RCC_CIR_HSIRDYF_Msk /*!< HSI Ready Interrupt flag */
  7802. #define RCC_CIR_HSERDYF_Pos (3U)
  7803. #define RCC_CIR_HSERDYF_Msk (0x1U << RCC_CIR_HSERDYF_Pos) /*!< 0x00000008 */
  7804. #define RCC_CIR_HSERDYF RCC_CIR_HSERDYF_Msk /*!< HSE Ready Interrupt flag */
  7805. #define RCC_CIR_PLLRDYF_Pos (4U)
  7806. #define RCC_CIR_PLLRDYF_Msk (0x1U << RCC_CIR_PLLRDYF_Pos) /*!< 0x00000010 */
  7807. #define RCC_CIR_PLLRDYF RCC_CIR_PLLRDYF_Msk /*!< PLL Ready Interrupt flag */
  7808. #define RCC_CIR_HSI14RDYF_Pos (5U)
  7809. #define RCC_CIR_HSI14RDYF_Msk (0x1U << RCC_CIR_HSI14RDYF_Pos) /*!< 0x00000020 */
  7810. #define RCC_CIR_HSI14RDYF RCC_CIR_HSI14RDYF_Msk /*!< HSI14 Ready Interrupt flag */
  7811. #define RCC_CIR_HSI48RDYF_Pos (6U)
  7812. #define RCC_CIR_HSI48RDYF_Msk (0x1U << RCC_CIR_HSI48RDYF_Pos) /*!< 0x00000040 */
  7813. #define RCC_CIR_HSI48RDYF RCC_CIR_HSI48RDYF_Msk /*!< HSI48 Ready Interrupt flag */
  7814. #define RCC_CIR_CSSF_Pos (7U)
  7815. #define RCC_CIR_CSSF_Msk (0x1U << RCC_CIR_CSSF_Pos) /*!< 0x00000080 */
  7816. #define RCC_CIR_CSSF RCC_CIR_CSSF_Msk /*!< Clock Security System Interrupt flag */
  7817. #define RCC_CIR_LSIRDYIE_Pos (8U)
  7818. #define RCC_CIR_LSIRDYIE_Msk (0x1U << RCC_CIR_LSIRDYIE_Pos) /*!< 0x00000100 */
  7819. #define RCC_CIR_LSIRDYIE RCC_CIR_LSIRDYIE_Msk /*!< LSI Ready Interrupt Enable */
  7820. #define RCC_CIR_LSERDYIE_Pos (9U)
  7821. #define RCC_CIR_LSERDYIE_Msk (0x1U << RCC_CIR_LSERDYIE_Pos) /*!< 0x00000200 */
  7822. #define RCC_CIR_LSERDYIE RCC_CIR_LSERDYIE_Msk /*!< LSE Ready Interrupt Enable */
  7823. #define RCC_CIR_HSIRDYIE_Pos (10U)
  7824. #define RCC_CIR_HSIRDYIE_Msk (0x1U << RCC_CIR_HSIRDYIE_Pos) /*!< 0x00000400 */
  7825. #define RCC_CIR_HSIRDYIE RCC_CIR_HSIRDYIE_Msk /*!< HSI Ready Interrupt Enable */
  7826. #define RCC_CIR_HSERDYIE_Pos (11U)
  7827. #define RCC_CIR_HSERDYIE_Msk (0x1U << RCC_CIR_HSERDYIE_Pos) /*!< 0x00000800 */
  7828. #define RCC_CIR_HSERDYIE RCC_CIR_HSERDYIE_Msk /*!< HSE Ready Interrupt Enable */
  7829. #define RCC_CIR_PLLRDYIE_Pos (12U)
  7830. #define RCC_CIR_PLLRDYIE_Msk (0x1U << RCC_CIR_PLLRDYIE_Pos) /*!< 0x00001000 */
  7831. #define RCC_CIR_PLLRDYIE RCC_CIR_PLLRDYIE_Msk /*!< PLL Ready Interrupt Enable */
  7832. #define RCC_CIR_HSI14RDYIE_Pos (13U)
  7833. #define RCC_CIR_HSI14RDYIE_Msk (0x1U << RCC_CIR_HSI14RDYIE_Pos) /*!< 0x00002000 */
  7834. #define RCC_CIR_HSI14RDYIE RCC_CIR_HSI14RDYIE_Msk /*!< HSI14 Ready Interrupt Enable */
  7835. #define RCC_CIR_HSI48RDYIE_Pos (14U)
  7836. #define RCC_CIR_HSI48RDYIE_Msk (0x1U << RCC_CIR_HSI48RDYIE_Pos) /*!< 0x00004000 */
  7837. #define RCC_CIR_HSI48RDYIE RCC_CIR_HSI48RDYIE_Msk /*!< HSI48 Ready Interrupt Enable */
  7838. #define RCC_CIR_LSIRDYC_Pos (16U)
  7839. #define RCC_CIR_LSIRDYC_Msk (0x1U << RCC_CIR_LSIRDYC_Pos) /*!< 0x00010000 */
  7840. #define RCC_CIR_LSIRDYC RCC_CIR_LSIRDYC_Msk /*!< LSI Ready Interrupt Clear */
  7841. #define RCC_CIR_LSERDYC_Pos (17U)
  7842. #define RCC_CIR_LSERDYC_Msk (0x1U << RCC_CIR_LSERDYC_Pos) /*!< 0x00020000 */
  7843. #define RCC_CIR_LSERDYC RCC_CIR_LSERDYC_Msk /*!< LSE Ready Interrupt Clear */
  7844. #define RCC_CIR_HSIRDYC_Pos (18U)
  7845. #define RCC_CIR_HSIRDYC_Msk (0x1U << RCC_CIR_HSIRDYC_Pos) /*!< 0x00040000 */
  7846. #define RCC_CIR_HSIRDYC RCC_CIR_HSIRDYC_Msk /*!< HSI Ready Interrupt Clear */
  7847. #define RCC_CIR_HSERDYC_Pos (19U)
  7848. #define RCC_CIR_HSERDYC_Msk (0x1U << RCC_CIR_HSERDYC_Pos) /*!< 0x00080000 */
  7849. #define RCC_CIR_HSERDYC RCC_CIR_HSERDYC_Msk /*!< HSE Ready Interrupt Clear */
  7850. #define RCC_CIR_PLLRDYC_Pos (20U)
  7851. #define RCC_CIR_PLLRDYC_Msk (0x1U << RCC_CIR_PLLRDYC_Pos) /*!< 0x00100000 */
  7852. #define RCC_CIR_PLLRDYC RCC_CIR_PLLRDYC_Msk /*!< PLL Ready Interrupt Clear */
  7853. #define RCC_CIR_HSI14RDYC_Pos (21U)
  7854. #define RCC_CIR_HSI14RDYC_Msk (0x1U << RCC_CIR_HSI14RDYC_Pos) /*!< 0x00200000 */
  7855. #define RCC_CIR_HSI14RDYC RCC_CIR_HSI14RDYC_Msk /*!< HSI14 Ready Interrupt Clear */
  7856. #define RCC_CIR_HSI48RDYC_Pos (22U)
  7857. #define RCC_CIR_HSI48RDYC_Msk (0x1U << RCC_CIR_HSI48RDYC_Pos) /*!< 0x00400000 */
  7858. #define RCC_CIR_HSI48RDYC RCC_CIR_HSI48RDYC_Msk /*!< HSI48 Ready Interrupt Clear */
  7859. #define RCC_CIR_CSSC_Pos (23U)
  7860. #define RCC_CIR_CSSC_Msk (0x1U << RCC_CIR_CSSC_Pos) /*!< 0x00800000 */
  7861. #define RCC_CIR_CSSC RCC_CIR_CSSC_Msk /*!< Clock Security System Interrupt Clear */
  7862. /***************** Bit definition for RCC_APB2RSTR register ****************/
  7863. #define RCC_APB2RSTR_SYSCFGRST_Pos (0U)
  7864. #define RCC_APB2RSTR_SYSCFGRST_Msk (0x1U << RCC_APB2RSTR_SYSCFGRST_Pos) /*!< 0x00000001 */
  7865. #define RCC_APB2RSTR_SYSCFGRST RCC_APB2RSTR_SYSCFGRST_Msk /*!< SYSCFG reset */
  7866. #define RCC_APB2RSTR_USART6RST_Pos (5U)
  7867. #define RCC_APB2RSTR_USART6RST_Msk (0x1U << RCC_APB2RSTR_USART6RST_Pos) /*!< 0x00000020 */
  7868. #define RCC_APB2RSTR_USART6RST RCC_APB2RSTR_USART6RST_Msk /*!< USART6 reset */
  7869. #define RCC_APB2RSTR_USART7RST_Pos (6U)
  7870. #define RCC_APB2RSTR_USART7RST_Msk (0x1U << RCC_APB2RSTR_USART7RST_Pos) /*!< 0x00000040 */
  7871. #define RCC_APB2RSTR_USART7RST RCC_APB2RSTR_USART7RST_Msk /*!< USART7 reset */
  7872. #define RCC_APB2RSTR_USART8RST_Pos (7U)
  7873. #define RCC_APB2RSTR_USART8RST_Msk (0x1U << RCC_APB2RSTR_USART8RST_Pos) /*!< 0x00000080 */
  7874. #define RCC_APB2RSTR_USART8RST RCC_APB2RSTR_USART8RST_Msk /*!< USART8 reset */
  7875. #define RCC_APB2RSTR_ADCRST_Pos (9U)
  7876. #define RCC_APB2RSTR_ADCRST_Msk (0x1U << RCC_APB2RSTR_ADCRST_Pos) /*!< 0x00000200 */
  7877. #define RCC_APB2RSTR_ADCRST RCC_APB2RSTR_ADCRST_Msk /*!< ADC reset */
  7878. #define RCC_APB2RSTR_TIM1RST_Pos (11U)
  7879. #define RCC_APB2RSTR_TIM1RST_Msk (0x1U << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000800 */
  7880. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk /*!< TIM1 reset */
  7881. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  7882. #define RCC_APB2RSTR_SPI1RST_Msk (0x1U << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */
  7883. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk /*!< SPI1 reset */
  7884. #define RCC_APB2RSTR_USART1RST_Pos (14U)
  7885. #define RCC_APB2RSTR_USART1RST_Msk (0x1U << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00004000 */
  7886. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk /*!< USART1 reset */
  7887. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  7888. #define RCC_APB2RSTR_TIM15RST_Msk (0x1U << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */
  7889. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk /*!< TIM15 reset */
  7890. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  7891. #define RCC_APB2RSTR_TIM16RST_Msk (0x1U << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */
  7892. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk /*!< TIM16 reset */
  7893. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  7894. #define RCC_APB2RSTR_TIM17RST_Msk (0x1U << RCC_APB2RSTR_TIM17RST_Pos) /*!< 0x00040000 */
  7895. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk /*!< TIM17 reset */
  7896. #define RCC_APB2RSTR_DBGMCURST_Pos (22U)
  7897. #define RCC_APB2RSTR_DBGMCURST_Msk (0x1U << RCC_APB2RSTR_DBGMCURST_Pos) /*!< 0x00400000 */
  7898. #define RCC_APB2RSTR_DBGMCURST RCC_APB2RSTR_DBGMCURST_Msk /*!< DBGMCU reset */
  7899. /*!< Old ADC1 reset bit definition maintained for legacy purpose */
  7900. #define RCC_APB2RSTR_ADC1RST RCC_APB2RSTR_ADCRST
  7901. /***************** Bit definition for RCC_APB1RSTR register ****************/
  7902. #define RCC_APB1RSTR_TIM2RST_Pos (0U)
  7903. #define RCC_APB1RSTR_TIM2RST_Msk (0x1U << RCC_APB1RSTR_TIM2RST_Pos) /*!< 0x00000001 */
  7904. #define RCC_APB1RSTR_TIM2RST RCC_APB1RSTR_TIM2RST_Msk /*!< Timer 2 reset */
  7905. #define RCC_APB1RSTR_TIM3RST_Pos (1U)
  7906. #define RCC_APB1RSTR_TIM3RST_Msk (0x1U << RCC_APB1RSTR_TIM3RST_Pos) /*!< 0x00000002 */
  7907. #define RCC_APB1RSTR_TIM3RST RCC_APB1RSTR_TIM3RST_Msk /*!< Timer 3 reset */
  7908. #define RCC_APB1RSTR_TIM6RST_Pos (4U)
  7909. #define RCC_APB1RSTR_TIM6RST_Msk (0x1U << RCC_APB1RSTR_TIM6RST_Pos) /*!< 0x00000010 */
  7910. #define RCC_APB1RSTR_TIM6RST RCC_APB1RSTR_TIM6RST_Msk /*!< Timer 6 reset */
  7911. #define RCC_APB1RSTR_TIM7RST_Pos (5U)
  7912. #define RCC_APB1RSTR_TIM7RST_Msk (0x1U << RCC_APB1RSTR_TIM7RST_Pos) /*!< 0x00000020 */
  7913. #define RCC_APB1RSTR_TIM7RST RCC_APB1RSTR_TIM7RST_Msk /*!< Timer 7 reset */
  7914. #define RCC_APB1RSTR_TIM14RST_Pos (8U)
  7915. #define RCC_APB1RSTR_TIM14RST_Msk (0x1U << RCC_APB1RSTR_TIM14RST_Pos) /*!< 0x00000100 */
  7916. #define RCC_APB1RSTR_TIM14RST RCC_APB1RSTR_TIM14RST_Msk /*!< Timer 14 reset */
  7917. #define RCC_APB1RSTR_WWDGRST_Pos (11U)
  7918. #define RCC_APB1RSTR_WWDGRST_Msk (0x1U << RCC_APB1RSTR_WWDGRST_Pos) /*!< 0x00000800 */
  7919. #define RCC_APB1RSTR_WWDGRST RCC_APB1RSTR_WWDGRST_Msk /*!< Window Watchdog reset */
  7920. #define RCC_APB1RSTR_SPI2RST_Pos (14U)
  7921. #define RCC_APB1RSTR_SPI2RST_Msk (0x1U << RCC_APB1RSTR_SPI2RST_Pos) /*!< 0x00004000 */
  7922. #define RCC_APB1RSTR_SPI2RST RCC_APB1RSTR_SPI2RST_Msk /*!< SPI2 reset */
  7923. #define RCC_APB1RSTR_USART2RST_Pos (17U)
  7924. #define RCC_APB1RSTR_USART2RST_Msk (0x1U << RCC_APB1RSTR_USART2RST_Pos) /*!< 0x00020000 */
  7925. #define RCC_APB1RSTR_USART2RST RCC_APB1RSTR_USART2RST_Msk /*!< USART 2 reset */
  7926. #define RCC_APB1RSTR_USART3RST_Pos (18U)
  7927. #define RCC_APB1RSTR_USART3RST_Msk (0x1U << RCC_APB1RSTR_USART3RST_Pos) /*!< 0x00040000 */
  7928. #define RCC_APB1RSTR_USART3RST RCC_APB1RSTR_USART3RST_Msk /*!< USART 3 reset */
  7929. #define RCC_APB1RSTR_USART4RST_Pos (19U)
  7930. #define RCC_APB1RSTR_USART4RST_Msk (0x1U << RCC_APB1RSTR_USART4RST_Pos) /*!< 0x00080000 */
  7931. #define RCC_APB1RSTR_USART4RST RCC_APB1RSTR_USART4RST_Msk /*!< USART 4 reset */
  7932. #define RCC_APB1RSTR_USART5RST_Pos (20U)
  7933. #define RCC_APB1RSTR_USART5RST_Msk (0x1U << RCC_APB1RSTR_USART5RST_Pos) /*!< 0x00100000 */
  7934. #define RCC_APB1RSTR_USART5RST RCC_APB1RSTR_USART5RST_Msk /*!< USART 5 reset */
  7935. #define RCC_APB1RSTR_I2C1RST_Pos (21U)
  7936. #define RCC_APB1RSTR_I2C1RST_Msk (0x1U << RCC_APB1RSTR_I2C1RST_Pos) /*!< 0x00200000 */
  7937. #define RCC_APB1RSTR_I2C1RST RCC_APB1RSTR_I2C1RST_Msk /*!< I2C 1 reset */
  7938. #define RCC_APB1RSTR_I2C2RST_Pos (22U)
  7939. #define RCC_APB1RSTR_I2C2RST_Msk (0x1U << RCC_APB1RSTR_I2C2RST_Pos) /*!< 0x00400000 */
  7940. #define RCC_APB1RSTR_I2C2RST RCC_APB1RSTR_I2C2RST_Msk /*!< I2C 2 reset */
  7941. #define RCC_APB1RSTR_CANRST_Pos (25U)
  7942. #define RCC_APB1RSTR_CANRST_Msk (0x1U << RCC_APB1RSTR_CANRST_Pos) /*!< 0x02000000 */
  7943. #define RCC_APB1RSTR_CANRST RCC_APB1RSTR_CANRST_Msk /*!< CAN reset */
  7944. #define RCC_APB1RSTR_CRSRST_Pos (27U)
  7945. #define RCC_APB1RSTR_CRSRST_Msk (0x1U << RCC_APB1RSTR_CRSRST_Pos) /*!< 0x08000000 */
  7946. #define RCC_APB1RSTR_CRSRST RCC_APB1RSTR_CRSRST_Msk /*!< CRS reset */
  7947. #define RCC_APB1RSTR_PWRRST_Pos (28U)
  7948. #define RCC_APB1RSTR_PWRRST_Msk (0x1U << RCC_APB1RSTR_PWRRST_Pos) /*!< 0x10000000 */
  7949. #define RCC_APB1RSTR_PWRRST RCC_APB1RSTR_PWRRST_Msk /*!< PWR reset */
  7950. #define RCC_APB1RSTR_DACRST_Pos (29U)
  7951. #define RCC_APB1RSTR_DACRST_Msk (0x1U << RCC_APB1RSTR_DACRST_Pos) /*!< 0x20000000 */
  7952. #define RCC_APB1RSTR_DACRST RCC_APB1RSTR_DACRST_Msk /*!< DAC reset */
  7953. #define RCC_APB1RSTR_CECRST_Pos (30U)
  7954. #define RCC_APB1RSTR_CECRST_Msk (0x1U << RCC_APB1RSTR_CECRST_Pos) /*!< 0x40000000 */
  7955. #define RCC_APB1RSTR_CECRST RCC_APB1RSTR_CECRST_Msk /*!< CEC reset */
  7956. /****************** Bit definition for RCC_AHBENR register *****************/
  7957. #define RCC_AHBENR_DMAEN_Pos (0U)
  7958. #define RCC_AHBENR_DMAEN_Msk (0x1U << RCC_AHBENR_DMAEN_Pos) /*!< 0x00000001 */
  7959. #define RCC_AHBENR_DMAEN RCC_AHBENR_DMAEN_Msk /*!< DMA1 clock enable */
  7960. #define RCC_AHBENR_DMA2EN_Pos (1U)
  7961. #define RCC_AHBENR_DMA2EN_Msk (0x1U << RCC_AHBENR_DMA2EN_Pos) /*!< 0x00000002 */
  7962. #define RCC_AHBENR_DMA2EN RCC_AHBENR_DMA2EN_Msk /*!< DMA2 clock enable */
  7963. #define RCC_AHBENR_SRAMEN_Pos (2U)
  7964. #define RCC_AHBENR_SRAMEN_Msk (0x1U << RCC_AHBENR_SRAMEN_Pos) /*!< 0x00000004 */
  7965. #define RCC_AHBENR_SRAMEN RCC_AHBENR_SRAMEN_Msk /*!< SRAM interface clock enable */
  7966. #define RCC_AHBENR_FLITFEN_Pos (4U)
  7967. #define RCC_AHBENR_FLITFEN_Msk (0x1U << RCC_AHBENR_FLITFEN_Pos) /*!< 0x00000010 */
  7968. #define RCC_AHBENR_FLITFEN RCC_AHBENR_FLITFEN_Msk /*!< FLITF clock enable */
  7969. #define RCC_AHBENR_CRCEN_Pos (6U)
  7970. #define RCC_AHBENR_CRCEN_Msk (0x1U << RCC_AHBENR_CRCEN_Pos) /*!< 0x00000040 */
  7971. #define RCC_AHBENR_CRCEN RCC_AHBENR_CRCEN_Msk /*!< CRC clock enable */
  7972. #define RCC_AHBENR_GPIOAEN_Pos (17U)
  7973. #define RCC_AHBENR_GPIOAEN_Msk (0x1U << RCC_AHBENR_GPIOAEN_Pos) /*!< 0x00020000 */
  7974. #define RCC_AHBENR_GPIOAEN RCC_AHBENR_GPIOAEN_Msk /*!< GPIOA clock enable */
  7975. #define RCC_AHBENR_GPIOBEN_Pos (18U)
  7976. #define RCC_AHBENR_GPIOBEN_Msk (0x1U << RCC_AHBENR_GPIOBEN_Pos) /*!< 0x00040000 */
  7977. #define RCC_AHBENR_GPIOBEN RCC_AHBENR_GPIOBEN_Msk /*!< GPIOB clock enable */
  7978. #define RCC_AHBENR_GPIOCEN_Pos (19U)
  7979. #define RCC_AHBENR_GPIOCEN_Msk (0x1U << RCC_AHBENR_GPIOCEN_Pos) /*!< 0x00080000 */
  7980. #define RCC_AHBENR_GPIOCEN RCC_AHBENR_GPIOCEN_Msk /*!< GPIOC clock enable */
  7981. #define RCC_AHBENR_GPIODEN_Pos (20U)
  7982. #define RCC_AHBENR_GPIODEN_Msk (0x1U << RCC_AHBENR_GPIODEN_Pos) /*!< 0x00100000 */
  7983. #define RCC_AHBENR_GPIODEN RCC_AHBENR_GPIODEN_Msk /*!< GPIOD clock enable */
  7984. #define RCC_AHBENR_GPIOEEN_Pos (21U)
  7985. #define RCC_AHBENR_GPIOEEN_Msk (0x1U << RCC_AHBENR_GPIOEEN_Pos) /*!< 0x00200000 */
  7986. #define RCC_AHBENR_GPIOEEN RCC_AHBENR_GPIOEEN_Msk /*!< GPIOE clock enable */
  7987. #define RCC_AHBENR_GPIOFEN_Pos (22U)
  7988. #define RCC_AHBENR_GPIOFEN_Msk (0x1U << RCC_AHBENR_GPIOFEN_Pos) /*!< 0x00400000 */
  7989. #define RCC_AHBENR_GPIOFEN RCC_AHBENR_GPIOFEN_Msk /*!< GPIOF clock enable */
  7990. #define RCC_AHBENR_TSCEN_Pos (24U)
  7991. #define RCC_AHBENR_TSCEN_Msk (0x1U << RCC_AHBENR_TSCEN_Pos) /*!< 0x01000000 */
  7992. #define RCC_AHBENR_TSCEN RCC_AHBENR_TSCEN_Msk /*!< TS controller clock enable */
  7993. /* Old Bit definition maintained for legacy purpose */
  7994. #define RCC_AHBENR_DMA1EN RCC_AHBENR_DMAEN /*!< DMA1 clock enable */
  7995. #define RCC_AHBENR_TSEN RCC_AHBENR_TSCEN /*!< TS clock enable */
  7996. /***************** Bit definition for RCC_APB2ENR register *****************/
  7997. #define RCC_APB2ENR_SYSCFGCOMPEN_Pos (0U)
  7998. #define RCC_APB2ENR_SYSCFGCOMPEN_Msk (0x1U << RCC_APB2ENR_SYSCFGCOMPEN_Pos) /*!< 0x00000001 */
  7999. #define RCC_APB2ENR_SYSCFGCOMPEN RCC_APB2ENR_SYSCFGCOMPEN_Msk /*!< SYSCFG and comparator clock enable */
  8000. #define RCC_APB2ENR_USART6EN_Pos (5U)
  8001. #define RCC_APB2ENR_USART6EN_Msk (0x1U << RCC_APB2ENR_USART6EN_Pos) /*!< 0x00000020 */
  8002. #define RCC_APB2ENR_USART6EN RCC_APB2ENR_USART6EN_Msk /*!< USART6 clock enable */
  8003. #define RCC_APB2ENR_USART7EN_Pos (6U)
  8004. #define RCC_APB2ENR_USART7EN_Msk (0x1U << RCC_APB2ENR_USART7EN_Pos) /*!< 0x00000040 */
  8005. #define RCC_APB2ENR_USART7EN RCC_APB2ENR_USART7EN_Msk /*!< USART7 clock enable */
  8006. #define RCC_APB2ENR_USART8EN_Pos (7U)
  8007. #define RCC_APB2ENR_USART8EN_Msk (0x1U << RCC_APB2ENR_USART8EN_Pos) /*!< 0x00000080 */
  8008. #define RCC_APB2ENR_USART8EN RCC_APB2ENR_USART8EN_Msk /*!< USART8 clock enable */
  8009. #define RCC_APB2ENR_ADCEN_Pos (9U)
  8010. #define RCC_APB2ENR_ADCEN_Msk (0x1U << RCC_APB2ENR_ADCEN_Pos) /*!< 0x00000200 */
  8011. #define RCC_APB2ENR_ADCEN RCC_APB2ENR_ADCEN_Msk /*!< ADC1 clock enable */
  8012. #define RCC_APB2ENR_TIM1EN_Pos (11U)
  8013. #define RCC_APB2ENR_TIM1EN_Msk (0x1U << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */
  8014. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk /*!< TIM1 clock enable */
  8015. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  8016. #define RCC_APB2ENR_SPI1EN_Msk (0x1U << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  8017. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk /*!< SPI1 clock enable */
  8018. #define RCC_APB2ENR_USART1EN_Pos (14U)
  8019. #define RCC_APB2ENR_USART1EN_Msk (0x1U << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00004000 */
  8020. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk /*!< USART1 clock enable */
  8021. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  8022. #define RCC_APB2ENR_TIM15EN_Msk (0x1U << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */
  8023. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk /*!< TIM15 clock enable */
  8024. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  8025. #define RCC_APB2ENR_TIM16EN_Msk (0x1U << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
  8026. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk /*!< TIM16 clock enable */
  8027. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  8028. #define RCC_APB2ENR_TIM17EN_Msk (0x1U << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
  8029. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk /*!< TIM17 clock enable */
  8030. #define RCC_APB2ENR_DBGMCUEN_Pos (22U)
  8031. #define RCC_APB2ENR_DBGMCUEN_Msk (0x1U << RCC_APB2ENR_DBGMCUEN_Pos) /*!< 0x00400000 */
  8032. #define RCC_APB2ENR_DBGMCUEN RCC_APB2ENR_DBGMCUEN_Msk /*!< DBGMCU clock enable */
  8033. /* Old Bit definition maintained for legacy purpose */
  8034. #define RCC_APB2ENR_SYSCFGEN RCC_APB2ENR_SYSCFGCOMPEN /*!< SYSCFG clock enable */
  8035. #define RCC_APB2ENR_ADC1EN RCC_APB2ENR_ADCEN /*!< ADC1 clock enable */
  8036. /***************** Bit definition for RCC_APB1ENR register *****************/
  8037. #define RCC_APB1ENR_TIM2EN_Pos (0U)
  8038. #define RCC_APB1ENR_TIM2EN_Msk (0x1U << RCC_APB1ENR_TIM2EN_Pos) /*!< 0x00000001 */
  8039. #define RCC_APB1ENR_TIM2EN RCC_APB1ENR_TIM2EN_Msk /*!< Timer 2 clock enable */
  8040. #define RCC_APB1ENR_TIM3EN_Pos (1U)
  8041. #define RCC_APB1ENR_TIM3EN_Msk (0x1U << RCC_APB1ENR_TIM3EN_Pos) /*!< 0x00000002 */
  8042. #define RCC_APB1ENR_TIM3EN RCC_APB1ENR_TIM3EN_Msk /*!< Timer 3 clock enable */
  8043. #define RCC_APB1ENR_TIM6EN_Pos (4U)
  8044. #define RCC_APB1ENR_TIM6EN_Msk (0x1U << RCC_APB1ENR_TIM6EN_Pos) /*!< 0x00000010 */
  8045. #define RCC_APB1ENR_TIM6EN RCC_APB1ENR_TIM6EN_Msk /*!< Timer 6 clock enable */
  8046. #define RCC_APB1ENR_TIM7EN_Pos (5U)
  8047. #define RCC_APB1ENR_TIM7EN_Msk (0x1U << RCC_APB1ENR_TIM7EN_Pos) /*!< 0x00000020 */
  8048. #define RCC_APB1ENR_TIM7EN RCC_APB1ENR_TIM7EN_Msk /*!< Timer 7 clock enable */
  8049. #define RCC_APB1ENR_TIM14EN_Pos (8U)
  8050. #define RCC_APB1ENR_TIM14EN_Msk (0x1U << RCC_APB1ENR_TIM14EN_Pos) /*!< 0x00000100 */
  8051. #define RCC_APB1ENR_TIM14EN RCC_APB1ENR_TIM14EN_Msk /*!< Timer 14 clock enable */
  8052. #define RCC_APB1ENR_WWDGEN_Pos (11U)
  8053. #define RCC_APB1ENR_WWDGEN_Msk (0x1U << RCC_APB1ENR_WWDGEN_Pos) /*!< 0x00000800 */
  8054. #define RCC_APB1ENR_WWDGEN RCC_APB1ENR_WWDGEN_Msk /*!< Window Watchdog clock enable */
  8055. #define RCC_APB1ENR_SPI2EN_Pos (14U)
  8056. #define RCC_APB1ENR_SPI2EN_Msk (0x1U << RCC_APB1ENR_SPI2EN_Pos) /*!< 0x00004000 */
  8057. #define RCC_APB1ENR_SPI2EN RCC_APB1ENR_SPI2EN_Msk /*!< SPI2 clock enable */
  8058. #define RCC_APB1ENR_USART2EN_Pos (17U)
  8059. #define RCC_APB1ENR_USART2EN_Msk (0x1U << RCC_APB1ENR_USART2EN_Pos) /*!< 0x00020000 */
  8060. #define RCC_APB1ENR_USART2EN RCC_APB1ENR_USART2EN_Msk /*!< USART2 clock enable */
  8061. #define RCC_APB1ENR_USART3EN_Pos (18U)
  8062. #define RCC_APB1ENR_USART3EN_Msk (0x1U << RCC_APB1ENR_USART3EN_Pos) /*!< 0x00040000 */
  8063. #define RCC_APB1ENR_USART3EN RCC_APB1ENR_USART3EN_Msk /*!< USART3 clock enable */
  8064. #define RCC_APB1ENR_USART4EN_Pos (19U)
  8065. #define RCC_APB1ENR_USART4EN_Msk (0x1U << RCC_APB1ENR_USART4EN_Pos) /*!< 0x00080000 */
  8066. #define RCC_APB1ENR_USART4EN RCC_APB1ENR_USART4EN_Msk /*!< USART4 clock enable */
  8067. #define RCC_APB1ENR_USART5EN_Pos (20U)
  8068. #define RCC_APB1ENR_USART5EN_Msk (0x1U << RCC_APB1ENR_USART5EN_Pos) /*!< 0x00100000 */
  8069. #define RCC_APB1ENR_USART5EN RCC_APB1ENR_USART5EN_Msk /*!< USART5 clock enable */
  8070. #define RCC_APB1ENR_I2C1EN_Pos (21U)
  8071. #define RCC_APB1ENR_I2C1EN_Msk (0x1U << RCC_APB1ENR_I2C1EN_Pos) /*!< 0x00200000 */
  8072. #define RCC_APB1ENR_I2C1EN RCC_APB1ENR_I2C1EN_Msk /*!< I2C1 clock enable */
  8073. #define RCC_APB1ENR_I2C2EN_Pos (22U)
  8074. #define RCC_APB1ENR_I2C2EN_Msk (0x1U << RCC_APB1ENR_I2C2EN_Pos) /*!< 0x00400000 */
  8075. #define RCC_APB1ENR_I2C2EN RCC_APB1ENR_I2C2EN_Msk /*!< I2C2 clock enable */
  8076. #define RCC_APB1ENR_CANEN_Pos (25U)
  8077. #define RCC_APB1ENR_CANEN_Msk (0x1U << RCC_APB1ENR_CANEN_Pos) /*!< 0x02000000 */
  8078. #define RCC_APB1ENR_CANEN RCC_APB1ENR_CANEN_Msk /*!< CAN clock enable */
  8079. #define RCC_APB1ENR_CRSEN_Pos (27U)
  8080. #define RCC_APB1ENR_CRSEN_Msk (0x1U << RCC_APB1ENR_CRSEN_Pos) /*!< 0x08000000 */
  8081. #define RCC_APB1ENR_CRSEN RCC_APB1ENR_CRSEN_Msk /*!< CRS clock enable */
  8082. #define RCC_APB1ENR_PWREN_Pos (28U)
  8083. #define RCC_APB1ENR_PWREN_Msk (0x1U << RCC_APB1ENR_PWREN_Pos) /*!< 0x10000000 */
  8084. #define RCC_APB1ENR_PWREN RCC_APB1ENR_PWREN_Msk /*!< PWR clock enable */
  8085. #define RCC_APB1ENR_DACEN_Pos (29U)
  8086. #define RCC_APB1ENR_DACEN_Msk (0x1U << RCC_APB1ENR_DACEN_Pos) /*!< 0x20000000 */
  8087. #define RCC_APB1ENR_DACEN RCC_APB1ENR_DACEN_Msk /*!< DAC clock enable */
  8088. #define RCC_APB1ENR_CECEN_Pos (30U)
  8089. #define RCC_APB1ENR_CECEN_Msk (0x1U << RCC_APB1ENR_CECEN_Pos) /*!< 0x40000000 */
  8090. #define RCC_APB1ENR_CECEN RCC_APB1ENR_CECEN_Msk /*!< CEC clock enable */
  8091. /******************* Bit definition for RCC_BDCR register ******************/
  8092. #define RCC_BDCR_LSEON_Pos (0U)
  8093. #define RCC_BDCR_LSEON_Msk (0x1U << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  8094. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk /*!< External Low Speed oscillator enable */
  8095. #define RCC_BDCR_LSERDY_Pos (1U)
  8096. #define RCC_BDCR_LSERDY_Msk (0x1U << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  8097. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk /*!< External Low Speed oscillator Ready */
  8098. #define RCC_BDCR_LSEBYP_Pos (2U)
  8099. #define RCC_BDCR_LSEBYP_Msk (0x1U << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  8100. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk /*!< External Low Speed oscillator Bypass */
  8101. #define RCC_BDCR_LSEDRV_Pos (3U)
  8102. #define RCC_BDCR_LSEDRV_Msk (0x3U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  8103. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk /*!< LSEDRV[1:0] bits (LSE Osc. drive capability) */
  8104. #define RCC_BDCR_LSEDRV_0 (0x1U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  8105. #define RCC_BDCR_LSEDRV_1 (0x2U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  8106. #define RCC_BDCR_RTCSEL_Pos (8U)
  8107. #define RCC_BDCR_RTCSEL_Msk (0x3U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  8108. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk /*!< RTCSEL[1:0] bits (RTC clock source selection) */
  8109. #define RCC_BDCR_RTCSEL_0 (0x1U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  8110. #define RCC_BDCR_RTCSEL_1 (0x2U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  8111. /*!< RTC configuration */
  8112. #define RCC_BDCR_RTCSEL_NOCLOCK (0x00000000U) /*!< No clock */
  8113. #define RCC_BDCR_RTCSEL_LSE (0x00000100U) /*!< LSE oscillator clock used as RTC clock */
  8114. #define RCC_BDCR_RTCSEL_LSI (0x00000200U) /*!< LSI oscillator clock used as RTC clock */
  8115. #define RCC_BDCR_RTCSEL_HSE (0x00000300U) /*!< HSE oscillator clock divided by 128 used as RTC clock */
  8116. #define RCC_BDCR_RTCEN_Pos (15U)
  8117. #define RCC_BDCR_RTCEN_Msk (0x1U << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  8118. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk /*!< RTC clock enable */
  8119. #define RCC_BDCR_BDRST_Pos (16U)
  8120. #define RCC_BDCR_BDRST_Msk (0x1U << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  8121. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk /*!< Backup domain software reset */
  8122. /******************* Bit definition for RCC_CSR register *******************/
  8123. #define RCC_CSR_LSION_Pos (0U)
  8124. #define RCC_CSR_LSION_Msk (0x1U << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  8125. #define RCC_CSR_LSION RCC_CSR_LSION_Msk /*!< Internal Low Speed oscillator enable */
  8126. #define RCC_CSR_LSIRDY_Pos (1U)
  8127. #define RCC_CSR_LSIRDY_Msk (0x1U << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  8128. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk /*!< Internal Low Speed oscillator Ready */
  8129. #define RCC_CSR_RMVF_Pos (24U)
  8130. #define RCC_CSR_RMVF_Msk (0x1U << RCC_CSR_RMVF_Pos) /*!< 0x01000000 */
  8131. #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk /*!< Remove reset flag */
  8132. #define RCC_CSR_OBLRSTF_Pos (25U)
  8133. #define RCC_CSR_OBLRSTF_Msk (0x1U << RCC_CSR_OBLRSTF_Pos) /*!< 0x02000000 */
  8134. #define RCC_CSR_OBLRSTF RCC_CSR_OBLRSTF_Msk /*!< OBL reset flag */
  8135. #define RCC_CSR_PINRSTF_Pos (26U)
  8136. #define RCC_CSR_PINRSTF_Msk (0x1U << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */
  8137. #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk /*!< PIN reset flag */
  8138. #define RCC_CSR_PORRSTF_Pos (27U)
  8139. #define RCC_CSR_PORRSTF_Msk (0x1U << RCC_CSR_PORRSTF_Pos) /*!< 0x08000000 */
  8140. #define RCC_CSR_PORRSTF RCC_CSR_PORRSTF_Msk /*!< POR/PDR reset flag */
  8141. #define RCC_CSR_SFTRSTF_Pos (28U)
  8142. #define RCC_CSR_SFTRSTF_Msk (0x1U << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */
  8143. #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk /*!< Software Reset flag */
  8144. #define RCC_CSR_IWDGRSTF_Pos (29U)
  8145. #define RCC_CSR_IWDGRSTF_Msk (0x1U << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */
  8146. #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk /*!< Independent Watchdog reset flag */
  8147. #define RCC_CSR_WWDGRSTF_Pos (30U)
  8148. #define RCC_CSR_WWDGRSTF_Msk (0x1U << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */
  8149. #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk /*!< Window watchdog reset flag */
  8150. #define RCC_CSR_LPWRRSTF_Pos (31U)
  8151. #define RCC_CSR_LPWRRSTF_Msk (0x1U << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */
  8152. #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk /*!< Low-Power reset flag */
  8153. /* Old Bit definition maintained for legacy purpose */
  8154. #define RCC_CSR_OBL RCC_CSR_OBLRSTF /*!< OBL reset flag */
  8155. /******************* Bit definition for RCC_AHBRSTR register ***************/
  8156. #define RCC_AHBRSTR_GPIOARST_Pos (17U)
  8157. #define RCC_AHBRSTR_GPIOARST_Msk (0x1U << RCC_AHBRSTR_GPIOARST_Pos) /*!< 0x00020000 */
  8158. #define RCC_AHBRSTR_GPIOARST RCC_AHBRSTR_GPIOARST_Msk /*!< GPIOA reset */
  8159. #define RCC_AHBRSTR_GPIOBRST_Pos (18U)
  8160. #define RCC_AHBRSTR_GPIOBRST_Msk (0x1U << RCC_AHBRSTR_GPIOBRST_Pos) /*!< 0x00040000 */
  8161. #define RCC_AHBRSTR_GPIOBRST RCC_AHBRSTR_GPIOBRST_Msk /*!< GPIOB reset */
  8162. #define RCC_AHBRSTR_GPIOCRST_Pos (19U)
  8163. #define RCC_AHBRSTR_GPIOCRST_Msk (0x1U << RCC_AHBRSTR_GPIOCRST_Pos) /*!< 0x00080000 */
  8164. #define RCC_AHBRSTR_GPIOCRST RCC_AHBRSTR_GPIOCRST_Msk /*!< GPIOC reset */
  8165. #define RCC_AHBRSTR_GPIODRST_Pos (20U)
  8166. #define RCC_AHBRSTR_GPIODRST_Msk (0x1U << RCC_AHBRSTR_GPIODRST_Pos) /*!< 0x00100000 */
  8167. #define RCC_AHBRSTR_GPIODRST RCC_AHBRSTR_GPIODRST_Msk /*!< GPIOD reset */
  8168. #define RCC_AHBRSTR_GPIOERST_Pos (21U)
  8169. #define RCC_AHBRSTR_GPIOERST_Msk (0x1U << RCC_AHBRSTR_GPIOERST_Pos) /*!< 0x00200000 */
  8170. #define RCC_AHBRSTR_GPIOERST RCC_AHBRSTR_GPIOERST_Msk /*!< GPIOE reset */
  8171. #define RCC_AHBRSTR_GPIOFRST_Pos (22U)
  8172. #define RCC_AHBRSTR_GPIOFRST_Msk (0x1U << RCC_AHBRSTR_GPIOFRST_Pos) /*!< 0x00400000 */
  8173. #define RCC_AHBRSTR_GPIOFRST RCC_AHBRSTR_GPIOFRST_Msk /*!< GPIOF reset */
  8174. #define RCC_AHBRSTR_TSCRST_Pos (24U)
  8175. #define RCC_AHBRSTR_TSCRST_Msk (0x1U << RCC_AHBRSTR_TSCRST_Pos) /*!< 0x01000000 */
  8176. #define RCC_AHBRSTR_TSCRST RCC_AHBRSTR_TSCRST_Msk /*!< TS reset */
  8177. /* Old Bit definition maintained for legacy purpose */
  8178. #define RCC_AHBRSTR_TSRST RCC_AHBRSTR_TSCRST /*!< TS reset */
  8179. /******************* Bit definition for RCC_CFGR2 register *****************/
  8180. /*!< PREDIV configuration */
  8181. #define RCC_CFGR2_PREDIV_Pos (0U)
  8182. #define RCC_CFGR2_PREDIV_Msk (0xFU << RCC_CFGR2_PREDIV_Pos) /*!< 0x0000000F */
  8183. #define RCC_CFGR2_PREDIV RCC_CFGR2_PREDIV_Msk /*!< PREDIV[3:0] bits */
  8184. #define RCC_CFGR2_PREDIV_0 (0x1U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000001 */
  8185. #define RCC_CFGR2_PREDIV_1 (0x2U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000002 */
  8186. #define RCC_CFGR2_PREDIV_2 (0x4U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000004 */
  8187. #define RCC_CFGR2_PREDIV_3 (0x8U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000008 */
  8188. #define RCC_CFGR2_PREDIV_DIV1 (0x00000000U) /*!< PREDIV input clock not divided */
  8189. #define RCC_CFGR2_PREDIV_DIV2 (0x00000001U) /*!< PREDIV input clock divided by 2 */
  8190. #define RCC_CFGR2_PREDIV_DIV3 (0x00000002U) /*!< PREDIV input clock divided by 3 */
  8191. #define RCC_CFGR2_PREDIV_DIV4 (0x00000003U) /*!< PREDIV input clock divided by 4 */
  8192. #define RCC_CFGR2_PREDIV_DIV5 (0x00000004U) /*!< PREDIV input clock divided by 5 */
  8193. #define RCC_CFGR2_PREDIV_DIV6 (0x00000005U) /*!< PREDIV input clock divided by 6 */
  8194. #define RCC_CFGR2_PREDIV_DIV7 (0x00000006U) /*!< PREDIV input clock divided by 7 */
  8195. #define RCC_CFGR2_PREDIV_DIV8 (0x00000007U) /*!< PREDIV input clock divided by 8 */
  8196. #define RCC_CFGR2_PREDIV_DIV9 (0x00000008U) /*!< PREDIV input clock divided by 9 */
  8197. #define RCC_CFGR2_PREDIV_DIV10 (0x00000009U) /*!< PREDIV input clock divided by 10 */
  8198. #define RCC_CFGR2_PREDIV_DIV11 (0x0000000AU) /*!< PREDIV input clock divided by 11 */
  8199. #define RCC_CFGR2_PREDIV_DIV12 (0x0000000BU) /*!< PREDIV input clock divided by 12 */
  8200. #define RCC_CFGR2_PREDIV_DIV13 (0x0000000CU) /*!< PREDIV input clock divided by 13 */
  8201. #define RCC_CFGR2_PREDIV_DIV14 (0x0000000DU) /*!< PREDIV input clock divided by 14 */
  8202. #define RCC_CFGR2_PREDIV_DIV15 (0x0000000EU) /*!< PREDIV input clock divided by 15 */
  8203. #define RCC_CFGR2_PREDIV_DIV16 (0x0000000FU) /*!< PREDIV input clock divided by 16 */
  8204. /******************* Bit definition for RCC_CFGR3 register *****************/
  8205. /*!< USART1 Clock source selection */
  8206. #define RCC_CFGR3_USART1SW_Pos (0U)
  8207. #define RCC_CFGR3_USART1SW_Msk (0x3U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000003 */
  8208. #define RCC_CFGR3_USART1SW RCC_CFGR3_USART1SW_Msk /*!< USART1SW[1:0] bits */
  8209. #define RCC_CFGR3_USART1SW_0 (0x1U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000001 */
  8210. #define RCC_CFGR3_USART1SW_1 (0x2U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000002 */
  8211. #define RCC_CFGR3_USART1SW_PCLK (0x00000000U) /*!< PCLK clock used as USART1 clock source */
  8212. #define RCC_CFGR3_USART1SW_SYSCLK (0x00000001U) /*!< System clock selected as USART1 clock source */
  8213. #define RCC_CFGR3_USART1SW_LSE (0x00000002U) /*!< LSE oscillator clock used as USART1 clock source */
  8214. #define RCC_CFGR3_USART1SW_HSI (0x00000003U) /*!< HSI oscillator clock used as USART1 clock source */
  8215. /*!< I2C1 Clock source selection */
  8216. #define RCC_CFGR3_I2C1SW_Pos (4U)
  8217. #define RCC_CFGR3_I2C1SW_Msk (0x1U << RCC_CFGR3_I2C1SW_Pos) /*!< 0x00000010 */
  8218. #define RCC_CFGR3_I2C1SW RCC_CFGR3_I2C1SW_Msk /*!< I2C1SW bits */
  8219. #define RCC_CFGR3_I2C1SW_HSI (0x00000000U) /*!< HSI oscillator clock used as I2C1 clock source */
  8220. #define RCC_CFGR3_I2C1SW_SYSCLK_Pos (4U)
  8221. #define RCC_CFGR3_I2C1SW_SYSCLK_Msk (0x1U << RCC_CFGR3_I2C1SW_SYSCLK_Pos) /*!< 0x00000010 */
  8222. #define RCC_CFGR3_I2C1SW_SYSCLK RCC_CFGR3_I2C1SW_SYSCLK_Msk /*!< System clock selected as I2C1 clock source */
  8223. /*!< CEC Clock source selection */
  8224. #define RCC_CFGR3_CECSW_Pos (6U)
  8225. #define RCC_CFGR3_CECSW_Msk (0x1U << RCC_CFGR3_CECSW_Pos) /*!< 0x00000040 */
  8226. #define RCC_CFGR3_CECSW RCC_CFGR3_CECSW_Msk /*!< CECSW bits */
  8227. #define RCC_CFGR3_CECSW_HSI_DIV244 (0x00000000U) /*!< HSI clock divided by 244 selected as HDMI CEC entry clock source */
  8228. #define RCC_CFGR3_CECSW_LSE_Pos (6U)
  8229. #define RCC_CFGR3_CECSW_LSE_Msk (0x1U << RCC_CFGR3_CECSW_LSE_Pos) /*!< 0x00000040 */
  8230. #define RCC_CFGR3_CECSW_LSE RCC_CFGR3_CECSW_LSE_Msk /*!< LSE clock selected as HDMI CEC entry clock source */
  8231. /*!< USART2 Clock source selection */
  8232. #define RCC_CFGR3_USART2SW_Pos (16U)
  8233. #define RCC_CFGR3_USART2SW_Msk (0x3U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00030000 */
  8234. #define RCC_CFGR3_USART2SW RCC_CFGR3_USART2SW_Msk /*!< USART2SW[1:0] bits */
  8235. #define RCC_CFGR3_USART2SW_0 (0x1U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00010000 */
  8236. #define RCC_CFGR3_USART2SW_1 (0x2U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00020000 */
  8237. #define RCC_CFGR3_USART2SW_PCLK (0x00000000U) /*!< PCLK clock used as USART2 clock source */
  8238. #define RCC_CFGR3_USART2SW_SYSCLK (0x00010000U) /*!< System clock selected as USART2 clock source */
  8239. #define RCC_CFGR3_USART2SW_LSE (0x00020000U) /*!< LSE oscillator clock used as USART2 clock source */
  8240. #define RCC_CFGR3_USART2SW_HSI (0x00030000U) /*!< HSI oscillator clock used as USART2 clock source */
  8241. /*!< USART3 Clock source selection */
  8242. #define RCC_CFGR3_USART3SW_Pos (18U)
  8243. #define RCC_CFGR3_USART3SW_Msk (0x3U << RCC_CFGR3_USART3SW_Pos) /*!< 0x000C0000 */
  8244. #define RCC_CFGR3_USART3SW RCC_CFGR3_USART3SW_Msk /*!< USART3SW[1:0] bits */
  8245. #define RCC_CFGR3_USART3SW_0 (0x1U << RCC_CFGR3_USART3SW_Pos) /*!< 0x00040000 */
  8246. #define RCC_CFGR3_USART3SW_1 (0x2U << RCC_CFGR3_USART3SW_Pos) /*!< 0x00080000 */
  8247. #define RCC_CFGR3_USART3SW_PCLK (0x00000000U) /*!< PCLK clock used as USART3 clock source */
  8248. #define RCC_CFGR3_USART3SW_SYSCLK (0x00040000U) /*!< System clock selected as USART3 clock source */
  8249. #define RCC_CFGR3_USART3SW_LSE (0x00080000U) /*!< LSE oscillator clock used as USART3 clock source */
  8250. #define RCC_CFGR3_USART3SW_HSI (0x000C0000U) /*!< HSI oscillator clock used as USART3 clock source */
  8251. /******************* Bit definition for RCC_CR2 register *******************/
  8252. #define RCC_CR2_HSI14ON_Pos (0U)
  8253. #define RCC_CR2_HSI14ON_Msk (0x1U << RCC_CR2_HSI14ON_Pos) /*!< 0x00000001 */
  8254. #define RCC_CR2_HSI14ON RCC_CR2_HSI14ON_Msk /*!< Internal High Speed 14MHz clock enable */
  8255. #define RCC_CR2_HSI14RDY_Pos (1U)
  8256. #define RCC_CR2_HSI14RDY_Msk (0x1U << RCC_CR2_HSI14RDY_Pos) /*!< 0x00000002 */
  8257. #define RCC_CR2_HSI14RDY RCC_CR2_HSI14RDY_Msk /*!< Internal High Speed 14MHz clock ready flag */
  8258. #define RCC_CR2_HSI14DIS_Pos (2U)
  8259. #define RCC_CR2_HSI14DIS_Msk (0x1U << RCC_CR2_HSI14DIS_Pos) /*!< 0x00000004 */
  8260. #define RCC_CR2_HSI14DIS RCC_CR2_HSI14DIS_Msk /*!< Internal High Speed 14MHz clock disable */
  8261. #define RCC_CR2_HSI14TRIM_Pos (3U)
  8262. #define RCC_CR2_HSI14TRIM_Msk (0x1FU << RCC_CR2_HSI14TRIM_Pos) /*!< 0x000000F8 */
  8263. #define RCC_CR2_HSI14TRIM RCC_CR2_HSI14TRIM_Msk /*!< Internal High Speed 14MHz clock trimming */
  8264. #define RCC_CR2_HSI14CAL_Pos (8U)
  8265. #define RCC_CR2_HSI14CAL_Msk (0xFFU << RCC_CR2_HSI14CAL_Pos) /*!< 0x0000FF00 */
  8266. #define RCC_CR2_HSI14CAL RCC_CR2_HSI14CAL_Msk /*!< Internal High Speed 14MHz clock Calibration */
  8267. #define RCC_CR2_HSI48ON_Pos (16U)
  8268. #define RCC_CR2_HSI48ON_Msk (0x1U << RCC_CR2_HSI48ON_Pos) /*!< 0x00010000 */
  8269. #define RCC_CR2_HSI48ON RCC_CR2_HSI48ON_Msk /*!< Internal High Speed 48MHz clock enable */
  8270. #define RCC_CR2_HSI48RDY_Pos (17U)
  8271. #define RCC_CR2_HSI48RDY_Msk (0x1U << RCC_CR2_HSI48RDY_Pos) /*!< 0x00020000 */
  8272. #define RCC_CR2_HSI48RDY RCC_CR2_HSI48RDY_Msk /*!< Internal High Speed 48MHz clock ready flag */
  8273. #define RCC_CR2_HSI48CAL_Pos (24U)
  8274. #define RCC_CR2_HSI48CAL_Msk (0xFFU << RCC_CR2_HSI48CAL_Pos) /*!< 0xFF000000 */
  8275. #define RCC_CR2_HSI48CAL RCC_CR2_HSI48CAL_Msk /*!< Internal High Speed 48MHz clock Calibration */
  8276. /*****************************************************************************/
  8277. /* */
  8278. /* Real-Time Clock (RTC) */
  8279. /* */
  8280. /*****************************************************************************/
  8281. /*
  8282. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  8283. */
  8284. #define RTC_TAMPER1_SUPPORT /*!< TAMPER 1 feature support */
  8285. #define RTC_TAMPER2_SUPPORT /*!< TAMPER 2 feature support */
  8286. #define RTC_TAMPER3_SUPPORT /*!< TAMPER 3 feature support */
  8287. #define RTC_BACKUP_SUPPORT /*!< BACKUP register feature support */
  8288. #define RTC_WAKEUP_SUPPORT /*!< WAKEUP feature support */
  8289. /******************** Bits definition for RTC_TR register ******************/
  8290. #define RTC_TR_PM_Pos (22U)
  8291. #define RTC_TR_PM_Msk (0x1U << RTC_TR_PM_Pos) /*!< 0x00400000 */
  8292. #define RTC_TR_PM RTC_TR_PM_Msk
  8293. #define RTC_TR_HT_Pos (20U)
  8294. #define RTC_TR_HT_Msk (0x3U << RTC_TR_HT_Pos) /*!< 0x00300000 */
  8295. #define RTC_TR_HT RTC_TR_HT_Msk
  8296. #define RTC_TR_HT_0 (0x1U << RTC_TR_HT_Pos) /*!< 0x00100000 */
  8297. #define RTC_TR_HT_1 (0x2U << RTC_TR_HT_Pos) /*!< 0x00200000 */
  8298. #define RTC_TR_HU_Pos (16U)
  8299. #define RTC_TR_HU_Msk (0xFU << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  8300. #define RTC_TR_HU RTC_TR_HU_Msk
  8301. #define RTC_TR_HU_0 (0x1U << RTC_TR_HU_Pos) /*!< 0x00010000 */
  8302. #define RTC_TR_HU_1 (0x2U << RTC_TR_HU_Pos) /*!< 0x00020000 */
  8303. #define RTC_TR_HU_2 (0x4U << RTC_TR_HU_Pos) /*!< 0x00040000 */
  8304. #define RTC_TR_HU_3 (0x8U << RTC_TR_HU_Pos) /*!< 0x00080000 */
  8305. #define RTC_TR_MNT_Pos (12U)
  8306. #define RTC_TR_MNT_Msk (0x7U << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  8307. #define RTC_TR_MNT RTC_TR_MNT_Msk
  8308. #define RTC_TR_MNT_0 (0x1U << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  8309. #define RTC_TR_MNT_1 (0x2U << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  8310. #define RTC_TR_MNT_2 (0x4U << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  8311. #define RTC_TR_MNU_Pos (8U)
  8312. #define RTC_TR_MNU_Msk (0xFU << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  8313. #define RTC_TR_MNU RTC_TR_MNU_Msk
  8314. #define RTC_TR_MNU_0 (0x1U << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  8315. #define RTC_TR_MNU_1 (0x2U << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  8316. #define RTC_TR_MNU_2 (0x4U << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  8317. #define RTC_TR_MNU_3 (0x8U << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  8318. #define RTC_TR_ST_Pos (4U)
  8319. #define RTC_TR_ST_Msk (0x7U << RTC_TR_ST_Pos) /*!< 0x00000070 */
  8320. #define RTC_TR_ST RTC_TR_ST_Msk
  8321. #define RTC_TR_ST_0 (0x1U << RTC_TR_ST_Pos) /*!< 0x00000010 */
  8322. #define RTC_TR_ST_1 (0x2U << RTC_TR_ST_Pos) /*!< 0x00000020 */
  8323. #define RTC_TR_ST_2 (0x4U << RTC_TR_ST_Pos) /*!< 0x00000040 */
  8324. #define RTC_TR_SU_Pos (0U)
  8325. #define RTC_TR_SU_Msk (0xFU << RTC_TR_SU_Pos) /*!< 0x0000000F */
  8326. #define RTC_TR_SU RTC_TR_SU_Msk
  8327. #define RTC_TR_SU_0 (0x1U << RTC_TR_SU_Pos) /*!< 0x00000001 */
  8328. #define RTC_TR_SU_1 (0x2U << RTC_TR_SU_Pos) /*!< 0x00000002 */
  8329. #define RTC_TR_SU_2 (0x4U << RTC_TR_SU_Pos) /*!< 0x00000004 */
  8330. #define RTC_TR_SU_3 (0x8U << RTC_TR_SU_Pos) /*!< 0x00000008 */
  8331. /******************** Bits definition for RTC_DR register ******************/
  8332. #define RTC_DR_YT_Pos (20U)
  8333. #define RTC_DR_YT_Msk (0xFU << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  8334. #define RTC_DR_YT RTC_DR_YT_Msk
  8335. #define RTC_DR_YT_0 (0x1U << RTC_DR_YT_Pos) /*!< 0x00100000 */
  8336. #define RTC_DR_YT_1 (0x2U << RTC_DR_YT_Pos) /*!< 0x00200000 */
  8337. #define RTC_DR_YT_2 (0x4U << RTC_DR_YT_Pos) /*!< 0x00400000 */
  8338. #define RTC_DR_YT_3 (0x8U << RTC_DR_YT_Pos) /*!< 0x00800000 */
  8339. #define RTC_DR_YU_Pos (16U)
  8340. #define RTC_DR_YU_Msk (0xFU << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  8341. #define RTC_DR_YU RTC_DR_YU_Msk
  8342. #define RTC_DR_YU_0 (0x1U << RTC_DR_YU_Pos) /*!< 0x00010000 */
  8343. #define RTC_DR_YU_1 (0x2U << RTC_DR_YU_Pos) /*!< 0x00020000 */
  8344. #define RTC_DR_YU_2 (0x4U << RTC_DR_YU_Pos) /*!< 0x00040000 */
  8345. #define RTC_DR_YU_3 (0x8U << RTC_DR_YU_Pos) /*!< 0x00080000 */
  8346. #define RTC_DR_WDU_Pos (13U)
  8347. #define RTC_DR_WDU_Msk (0x7U << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  8348. #define RTC_DR_WDU RTC_DR_WDU_Msk
  8349. #define RTC_DR_WDU_0 (0x1U << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  8350. #define RTC_DR_WDU_1 (0x2U << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  8351. #define RTC_DR_WDU_2 (0x4U << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  8352. #define RTC_DR_MT_Pos (12U)
  8353. #define RTC_DR_MT_Msk (0x1U << RTC_DR_MT_Pos) /*!< 0x00001000 */
  8354. #define RTC_DR_MT RTC_DR_MT_Msk
  8355. #define RTC_DR_MU_Pos (8U)
  8356. #define RTC_DR_MU_Msk (0xFU << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  8357. #define RTC_DR_MU RTC_DR_MU_Msk
  8358. #define RTC_DR_MU_0 (0x1U << RTC_DR_MU_Pos) /*!< 0x00000100 */
  8359. #define RTC_DR_MU_1 (0x2U << RTC_DR_MU_Pos) /*!< 0x00000200 */
  8360. #define RTC_DR_MU_2 (0x4U << RTC_DR_MU_Pos) /*!< 0x00000400 */
  8361. #define RTC_DR_MU_3 (0x8U << RTC_DR_MU_Pos) /*!< 0x00000800 */
  8362. #define RTC_DR_DT_Pos (4U)
  8363. #define RTC_DR_DT_Msk (0x3U << RTC_DR_DT_Pos) /*!< 0x00000030 */
  8364. #define RTC_DR_DT RTC_DR_DT_Msk
  8365. #define RTC_DR_DT_0 (0x1U << RTC_DR_DT_Pos) /*!< 0x00000010 */
  8366. #define RTC_DR_DT_1 (0x2U << RTC_DR_DT_Pos) /*!< 0x00000020 */
  8367. #define RTC_DR_DU_Pos (0U)
  8368. #define RTC_DR_DU_Msk (0xFU << RTC_DR_DU_Pos) /*!< 0x0000000F */
  8369. #define RTC_DR_DU RTC_DR_DU_Msk
  8370. #define RTC_DR_DU_0 (0x1U << RTC_DR_DU_Pos) /*!< 0x00000001 */
  8371. #define RTC_DR_DU_1 (0x2U << RTC_DR_DU_Pos) /*!< 0x00000002 */
  8372. #define RTC_DR_DU_2 (0x4U << RTC_DR_DU_Pos) /*!< 0x00000004 */
  8373. #define RTC_DR_DU_3 (0x8U << RTC_DR_DU_Pos) /*!< 0x00000008 */
  8374. /******************** Bits definition for RTC_CR register ******************/
  8375. #define RTC_CR_COE_Pos (23U)
  8376. #define RTC_CR_COE_Msk (0x1U << RTC_CR_COE_Pos) /*!< 0x00800000 */
  8377. #define RTC_CR_COE RTC_CR_COE_Msk
  8378. #define RTC_CR_OSEL_Pos (21U)
  8379. #define RTC_CR_OSEL_Msk (0x3U << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  8380. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  8381. #define RTC_CR_OSEL_0 (0x1U << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  8382. #define RTC_CR_OSEL_1 (0x2U << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  8383. #define RTC_CR_POL_Pos (20U)
  8384. #define RTC_CR_POL_Msk (0x1U << RTC_CR_POL_Pos) /*!< 0x00100000 */
  8385. #define RTC_CR_POL RTC_CR_POL_Msk
  8386. #define RTC_CR_COSEL_Pos (19U)
  8387. #define RTC_CR_COSEL_Msk (0x1U << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  8388. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  8389. #define RTC_CR_BKP_Pos (18U)
  8390. #define RTC_CR_BKP_Msk (0x1U << RTC_CR_BKP_Pos) /*!< 0x00040000 */
  8391. #define RTC_CR_BKP RTC_CR_BKP_Msk
  8392. #define RTC_CR_SUB1H_Pos (17U)
  8393. #define RTC_CR_SUB1H_Msk (0x1U << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  8394. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  8395. #define RTC_CR_ADD1H_Pos (16U)
  8396. #define RTC_CR_ADD1H_Msk (0x1U << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  8397. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  8398. #define RTC_CR_TSIE_Pos (15U)
  8399. #define RTC_CR_TSIE_Msk (0x1U << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  8400. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  8401. #define RTC_CR_WUTIE_Pos (14U)
  8402. #define RTC_CR_WUTIE_Msk (0x1U << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  8403. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  8404. #define RTC_CR_ALRAIE_Pos (12U)
  8405. #define RTC_CR_ALRAIE_Msk (0x1U << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  8406. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  8407. #define RTC_CR_TSE_Pos (11U)
  8408. #define RTC_CR_TSE_Msk (0x1U << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  8409. #define RTC_CR_TSE RTC_CR_TSE_Msk
  8410. #define RTC_CR_WUTE_Pos (10U)
  8411. #define RTC_CR_WUTE_Msk (0x1U << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  8412. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  8413. #define RTC_CR_ALRAE_Pos (8U)
  8414. #define RTC_CR_ALRAE_Msk (0x1U << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  8415. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  8416. #define RTC_CR_FMT_Pos (6U)
  8417. #define RTC_CR_FMT_Msk (0x1U << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  8418. #define RTC_CR_FMT RTC_CR_FMT_Msk
  8419. #define RTC_CR_BYPSHAD_Pos (5U)
  8420. #define RTC_CR_BYPSHAD_Msk (0x1U << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  8421. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  8422. #define RTC_CR_REFCKON_Pos (4U)
  8423. #define RTC_CR_REFCKON_Msk (0x1U << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  8424. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  8425. #define RTC_CR_TSEDGE_Pos (3U)
  8426. #define RTC_CR_TSEDGE_Msk (0x1U << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  8427. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  8428. #define RTC_CR_WUCKSEL_Pos (0U)
  8429. #define RTC_CR_WUCKSEL_Msk (0x7U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  8430. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  8431. #define RTC_CR_WUCKSEL_0 (0x1U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  8432. #define RTC_CR_WUCKSEL_1 (0x2U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  8433. #define RTC_CR_WUCKSEL_2 (0x4U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  8434. /* Legacy defines */
  8435. #define RTC_CR_BCK_Pos RTC_CR_BKP_Pos
  8436. #define RTC_CR_BCK_Msk RTC_CR_BKP_Msk
  8437. #define RTC_CR_BCK RTC_CR_BKP
  8438. /******************** Bits definition for RTC_ISR register *****************/
  8439. #define RTC_ISR_RECALPF_Pos (16U)
  8440. #define RTC_ISR_RECALPF_Msk (0x1U << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */
  8441. #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk
  8442. #define RTC_ISR_TAMP3F_Pos (15U)
  8443. #define RTC_ISR_TAMP3F_Msk (0x1U << RTC_ISR_TAMP3F_Pos) /*!< 0x00008000 */
  8444. #define RTC_ISR_TAMP3F RTC_ISR_TAMP3F_Msk
  8445. #define RTC_ISR_TAMP2F_Pos (14U)
  8446. #define RTC_ISR_TAMP2F_Msk (0x1U << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */
  8447. #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk
  8448. #define RTC_ISR_TAMP1F_Pos (13U)
  8449. #define RTC_ISR_TAMP1F_Msk (0x1U << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */
  8450. #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk
  8451. #define RTC_ISR_TSOVF_Pos (12U)
  8452. #define RTC_ISR_TSOVF_Msk (0x1U << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */
  8453. #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk
  8454. #define RTC_ISR_TSF_Pos (11U)
  8455. #define RTC_ISR_TSF_Msk (0x1U << RTC_ISR_TSF_Pos) /*!< 0x00000800 */
  8456. #define RTC_ISR_TSF RTC_ISR_TSF_Msk
  8457. #define RTC_ISR_WUTF_Pos (10U)
  8458. #define RTC_ISR_WUTF_Msk (0x1U << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */
  8459. #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk
  8460. #define RTC_ISR_ALRAF_Pos (8U)
  8461. #define RTC_ISR_ALRAF_Msk (0x1U << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */
  8462. #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk
  8463. #define RTC_ISR_INIT_Pos (7U)
  8464. #define RTC_ISR_INIT_Msk (0x1U << RTC_ISR_INIT_Pos) /*!< 0x00000080 */
  8465. #define RTC_ISR_INIT RTC_ISR_INIT_Msk
  8466. #define RTC_ISR_INITF_Pos (6U)
  8467. #define RTC_ISR_INITF_Msk (0x1U << RTC_ISR_INITF_Pos) /*!< 0x00000040 */
  8468. #define RTC_ISR_INITF RTC_ISR_INITF_Msk
  8469. #define RTC_ISR_RSF_Pos (5U)
  8470. #define RTC_ISR_RSF_Msk (0x1U << RTC_ISR_RSF_Pos) /*!< 0x00000020 */
  8471. #define RTC_ISR_RSF RTC_ISR_RSF_Msk
  8472. #define RTC_ISR_INITS_Pos (4U)
  8473. #define RTC_ISR_INITS_Msk (0x1U << RTC_ISR_INITS_Pos) /*!< 0x00000010 */
  8474. #define RTC_ISR_INITS RTC_ISR_INITS_Msk
  8475. #define RTC_ISR_SHPF_Pos (3U)
  8476. #define RTC_ISR_SHPF_Msk (0x1U << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */
  8477. #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk
  8478. #define RTC_ISR_WUTWF_Pos (2U)
  8479. #define RTC_ISR_WUTWF_Msk (0x1U << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */
  8480. #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk
  8481. #define RTC_ISR_ALRAWF_Pos (0U)
  8482. #define RTC_ISR_ALRAWF_Msk (0x1U << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */
  8483. #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk
  8484. /******************** Bits definition for RTC_PRER register ****************/
  8485. #define RTC_PRER_PREDIV_A_Pos (16U)
  8486. #define RTC_PRER_PREDIV_A_Msk (0x7FU << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  8487. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  8488. #define RTC_PRER_PREDIV_S_Pos (0U)
  8489. #define RTC_PRER_PREDIV_S_Msk (0x7FFFU << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  8490. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  8491. /******************** Bits definition for RTC_WUTR register ****************/
  8492. #define RTC_WUTR_WUT_Pos (0U)
  8493. #define RTC_WUTR_WUT_Msk (0xFFFFU << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  8494. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  8495. /******************** Bits definition for RTC_ALRMAR register **************/
  8496. #define RTC_ALRMAR_MSK4_Pos (31U)
  8497. #define RTC_ALRMAR_MSK4_Msk (0x1U << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  8498. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  8499. #define RTC_ALRMAR_WDSEL_Pos (30U)
  8500. #define RTC_ALRMAR_WDSEL_Msk (0x1U << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  8501. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  8502. #define RTC_ALRMAR_DT_Pos (28U)
  8503. #define RTC_ALRMAR_DT_Msk (0x3U << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  8504. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  8505. #define RTC_ALRMAR_DT_0 (0x1U << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  8506. #define RTC_ALRMAR_DT_1 (0x2U << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  8507. #define RTC_ALRMAR_DU_Pos (24U)
  8508. #define RTC_ALRMAR_DU_Msk (0xFU << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  8509. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  8510. #define RTC_ALRMAR_DU_0 (0x1U << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  8511. #define RTC_ALRMAR_DU_1 (0x2U << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  8512. #define RTC_ALRMAR_DU_2 (0x4U << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  8513. #define RTC_ALRMAR_DU_3 (0x8U << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  8514. #define RTC_ALRMAR_MSK3_Pos (23U)
  8515. #define RTC_ALRMAR_MSK3_Msk (0x1U << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  8516. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  8517. #define RTC_ALRMAR_PM_Pos (22U)
  8518. #define RTC_ALRMAR_PM_Msk (0x1U << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  8519. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  8520. #define RTC_ALRMAR_HT_Pos (20U)
  8521. #define RTC_ALRMAR_HT_Msk (0x3U << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  8522. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  8523. #define RTC_ALRMAR_HT_0 (0x1U << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  8524. #define RTC_ALRMAR_HT_1 (0x2U << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  8525. #define RTC_ALRMAR_HU_Pos (16U)
  8526. #define RTC_ALRMAR_HU_Msk (0xFU << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  8527. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  8528. #define RTC_ALRMAR_HU_0 (0x1U << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  8529. #define RTC_ALRMAR_HU_1 (0x2U << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  8530. #define RTC_ALRMAR_HU_2 (0x4U << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  8531. #define RTC_ALRMAR_HU_3 (0x8U << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  8532. #define RTC_ALRMAR_MSK2_Pos (15U)
  8533. #define RTC_ALRMAR_MSK2_Msk (0x1U << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  8534. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  8535. #define RTC_ALRMAR_MNT_Pos (12U)
  8536. #define RTC_ALRMAR_MNT_Msk (0x7U << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  8537. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  8538. #define RTC_ALRMAR_MNT_0 (0x1U << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  8539. #define RTC_ALRMAR_MNT_1 (0x2U << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  8540. #define RTC_ALRMAR_MNT_2 (0x4U << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  8541. #define RTC_ALRMAR_MNU_Pos (8U)
  8542. #define RTC_ALRMAR_MNU_Msk (0xFU << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  8543. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  8544. #define RTC_ALRMAR_MNU_0 (0x1U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  8545. #define RTC_ALRMAR_MNU_1 (0x2U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  8546. #define RTC_ALRMAR_MNU_2 (0x4U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  8547. #define RTC_ALRMAR_MNU_3 (0x8U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  8548. #define RTC_ALRMAR_MSK1_Pos (7U)
  8549. #define RTC_ALRMAR_MSK1_Msk (0x1U << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  8550. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  8551. #define RTC_ALRMAR_ST_Pos (4U)
  8552. #define RTC_ALRMAR_ST_Msk (0x7U << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  8553. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  8554. #define RTC_ALRMAR_ST_0 (0x1U << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  8555. #define RTC_ALRMAR_ST_1 (0x2U << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  8556. #define RTC_ALRMAR_ST_2 (0x4U << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  8557. #define RTC_ALRMAR_SU_Pos (0U)
  8558. #define RTC_ALRMAR_SU_Msk (0xFU << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  8559. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  8560. #define RTC_ALRMAR_SU_0 (0x1U << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  8561. #define RTC_ALRMAR_SU_1 (0x2U << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  8562. #define RTC_ALRMAR_SU_2 (0x4U << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  8563. #define RTC_ALRMAR_SU_3 (0x8U << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  8564. /******************** Bits definition for RTC_WPR register *****************/
  8565. #define RTC_WPR_KEY_Pos (0U)
  8566. #define RTC_WPR_KEY_Msk (0xFFU << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  8567. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  8568. /******************** Bits definition for RTC_SSR register *****************/
  8569. #define RTC_SSR_SS_Pos (0U)
  8570. #define RTC_SSR_SS_Msk (0xFFFFU << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  8571. #define RTC_SSR_SS RTC_SSR_SS_Msk
  8572. /******************** Bits definition for RTC_SHIFTR register **************/
  8573. #define RTC_SHIFTR_SUBFS_Pos (0U)
  8574. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFU << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  8575. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  8576. #define RTC_SHIFTR_ADD1S_Pos (31U)
  8577. #define RTC_SHIFTR_ADD1S_Msk (0x1U << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  8578. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  8579. /******************** Bits definition for RTC_TSTR register ****************/
  8580. #define RTC_TSTR_PM_Pos (22U)
  8581. #define RTC_TSTR_PM_Msk (0x1U << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  8582. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  8583. #define RTC_TSTR_HT_Pos (20U)
  8584. #define RTC_TSTR_HT_Msk (0x3U << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  8585. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  8586. #define RTC_TSTR_HT_0 (0x1U << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  8587. #define RTC_TSTR_HT_1 (0x2U << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  8588. #define RTC_TSTR_HU_Pos (16U)
  8589. #define RTC_TSTR_HU_Msk (0xFU << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  8590. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  8591. #define RTC_TSTR_HU_0 (0x1U << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  8592. #define RTC_TSTR_HU_1 (0x2U << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  8593. #define RTC_TSTR_HU_2 (0x4U << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  8594. #define RTC_TSTR_HU_3 (0x8U << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  8595. #define RTC_TSTR_MNT_Pos (12U)
  8596. #define RTC_TSTR_MNT_Msk (0x7U << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  8597. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  8598. #define RTC_TSTR_MNT_0 (0x1U << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  8599. #define RTC_TSTR_MNT_1 (0x2U << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  8600. #define RTC_TSTR_MNT_2 (0x4U << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  8601. #define RTC_TSTR_MNU_Pos (8U)
  8602. #define RTC_TSTR_MNU_Msk (0xFU << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  8603. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  8604. #define RTC_TSTR_MNU_0 (0x1U << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  8605. #define RTC_TSTR_MNU_1 (0x2U << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  8606. #define RTC_TSTR_MNU_2 (0x4U << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  8607. #define RTC_TSTR_MNU_3 (0x8U << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  8608. #define RTC_TSTR_ST_Pos (4U)
  8609. #define RTC_TSTR_ST_Msk (0x7U << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  8610. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  8611. #define RTC_TSTR_ST_0 (0x1U << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  8612. #define RTC_TSTR_ST_1 (0x2U << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  8613. #define RTC_TSTR_ST_2 (0x4U << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  8614. #define RTC_TSTR_SU_Pos (0U)
  8615. #define RTC_TSTR_SU_Msk (0xFU << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  8616. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  8617. #define RTC_TSTR_SU_0 (0x1U << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  8618. #define RTC_TSTR_SU_1 (0x2U << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  8619. #define RTC_TSTR_SU_2 (0x4U << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  8620. #define RTC_TSTR_SU_3 (0x8U << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  8621. /******************** Bits definition for RTC_TSDR register ****************/
  8622. #define RTC_TSDR_WDU_Pos (13U)
  8623. #define RTC_TSDR_WDU_Msk (0x7U << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  8624. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  8625. #define RTC_TSDR_WDU_0 (0x1U << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  8626. #define RTC_TSDR_WDU_1 (0x2U << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  8627. #define RTC_TSDR_WDU_2 (0x4U << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  8628. #define RTC_TSDR_MT_Pos (12U)
  8629. #define RTC_TSDR_MT_Msk (0x1U << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  8630. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  8631. #define RTC_TSDR_MU_Pos (8U)
  8632. #define RTC_TSDR_MU_Msk (0xFU << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  8633. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  8634. #define RTC_TSDR_MU_0 (0x1U << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  8635. #define RTC_TSDR_MU_1 (0x2U << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  8636. #define RTC_TSDR_MU_2 (0x4U << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  8637. #define RTC_TSDR_MU_3 (0x8U << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  8638. #define RTC_TSDR_DT_Pos (4U)
  8639. #define RTC_TSDR_DT_Msk (0x3U << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  8640. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  8641. #define RTC_TSDR_DT_0 (0x1U << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  8642. #define RTC_TSDR_DT_1 (0x2U << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  8643. #define RTC_TSDR_DU_Pos (0U)
  8644. #define RTC_TSDR_DU_Msk (0xFU << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  8645. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  8646. #define RTC_TSDR_DU_0 (0x1U << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  8647. #define RTC_TSDR_DU_1 (0x2U << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  8648. #define RTC_TSDR_DU_2 (0x4U << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  8649. #define RTC_TSDR_DU_3 (0x8U << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  8650. /******************** Bits definition for RTC_TSSSR register ***************/
  8651. #define RTC_TSSSR_SS_Pos (0U)
  8652. #define RTC_TSSSR_SS_Msk (0xFFFFU << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  8653. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  8654. /******************** Bits definition for RTC_CALR register ****************/
  8655. #define RTC_CALR_CALP_Pos (15U)
  8656. #define RTC_CALR_CALP_Msk (0x1U << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  8657. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  8658. #define RTC_CALR_CALW8_Pos (14U)
  8659. #define RTC_CALR_CALW8_Msk (0x1U << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  8660. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  8661. #define RTC_CALR_CALW16_Pos (13U)
  8662. #define RTC_CALR_CALW16_Msk (0x1U << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  8663. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  8664. #define RTC_CALR_CALM_Pos (0U)
  8665. #define RTC_CALR_CALM_Msk (0x1FFU << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  8666. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  8667. #define RTC_CALR_CALM_0 (0x001U << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  8668. #define RTC_CALR_CALM_1 (0x002U << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  8669. #define RTC_CALR_CALM_2 (0x004U << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  8670. #define RTC_CALR_CALM_3 (0x008U << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  8671. #define RTC_CALR_CALM_4 (0x010U << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  8672. #define RTC_CALR_CALM_5 (0x020U << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  8673. #define RTC_CALR_CALM_6 (0x040U << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  8674. #define RTC_CALR_CALM_7 (0x080U << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  8675. #define RTC_CALR_CALM_8 (0x100U << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  8676. /******************** Bits definition for RTC_TAFCR register ***************/
  8677. #define RTC_TAFCR_PC15MODE_Pos (23U)
  8678. #define RTC_TAFCR_PC15MODE_Msk (0x1U << RTC_TAFCR_PC15MODE_Pos) /*!< 0x00800000 */
  8679. #define RTC_TAFCR_PC15MODE RTC_TAFCR_PC15MODE_Msk
  8680. #define RTC_TAFCR_PC15VALUE_Pos (22U)
  8681. #define RTC_TAFCR_PC15VALUE_Msk (0x1U << RTC_TAFCR_PC15VALUE_Pos) /*!< 0x00400000 */
  8682. #define RTC_TAFCR_PC15VALUE RTC_TAFCR_PC15VALUE_Msk
  8683. #define RTC_TAFCR_PC14MODE_Pos (21U)
  8684. #define RTC_TAFCR_PC14MODE_Msk (0x1U << RTC_TAFCR_PC14MODE_Pos) /*!< 0x00200000 */
  8685. #define RTC_TAFCR_PC14MODE RTC_TAFCR_PC14MODE_Msk
  8686. #define RTC_TAFCR_PC14VALUE_Pos (20U)
  8687. #define RTC_TAFCR_PC14VALUE_Msk (0x1U << RTC_TAFCR_PC14VALUE_Pos) /*!< 0x00100000 */
  8688. #define RTC_TAFCR_PC14VALUE RTC_TAFCR_PC14VALUE_Msk
  8689. #define RTC_TAFCR_PC13MODE_Pos (19U)
  8690. #define RTC_TAFCR_PC13MODE_Msk (0x1U << RTC_TAFCR_PC13MODE_Pos) /*!< 0x00080000 */
  8691. #define RTC_TAFCR_PC13MODE RTC_TAFCR_PC13MODE_Msk
  8692. #define RTC_TAFCR_PC13VALUE_Pos (18U)
  8693. #define RTC_TAFCR_PC13VALUE_Msk (0x1U << RTC_TAFCR_PC13VALUE_Pos) /*!< 0x00040000 */
  8694. #define RTC_TAFCR_PC13VALUE RTC_TAFCR_PC13VALUE_Msk
  8695. #define RTC_TAFCR_TAMPPUDIS_Pos (15U)
  8696. #define RTC_TAFCR_TAMPPUDIS_Msk (0x1U << RTC_TAFCR_TAMPPUDIS_Pos) /*!< 0x00008000 */
  8697. #define RTC_TAFCR_TAMPPUDIS RTC_TAFCR_TAMPPUDIS_Msk
  8698. #define RTC_TAFCR_TAMPPRCH_Pos (13U)
  8699. #define RTC_TAFCR_TAMPPRCH_Msk (0x3U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00006000 */
  8700. #define RTC_TAFCR_TAMPPRCH RTC_TAFCR_TAMPPRCH_Msk
  8701. #define RTC_TAFCR_TAMPPRCH_0 (0x1U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00002000 */
  8702. #define RTC_TAFCR_TAMPPRCH_1 (0x2U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00004000 */
  8703. #define RTC_TAFCR_TAMPFLT_Pos (11U)
  8704. #define RTC_TAFCR_TAMPFLT_Msk (0x3U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001800 */
  8705. #define RTC_TAFCR_TAMPFLT RTC_TAFCR_TAMPFLT_Msk
  8706. #define RTC_TAFCR_TAMPFLT_0 (0x1U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00000800 */
  8707. #define RTC_TAFCR_TAMPFLT_1 (0x2U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001000 */
  8708. #define RTC_TAFCR_TAMPFREQ_Pos (8U)
  8709. #define RTC_TAFCR_TAMPFREQ_Msk (0x7U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000700 */
  8710. #define RTC_TAFCR_TAMPFREQ RTC_TAFCR_TAMPFREQ_Msk
  8711. #define RTC_TAFCR_TAMPFREQ_0 (0x1U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000100 */
  8712. #define RTC_TAFCR_TAMPFREQ_1 (0x2U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000200 */
  8713. #define RTC_TAFCR_TAMPFREQ_2 (0x4U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000400 */
  8714. #define RTC_TAFCR_TAMPTS_Pos (7U)
  8715. #define RTC_TAFCR_TAMPTS_Msk (0x1U << RTC_TAFCR_TAMPTS_Pos) /*!< 0x00000080 */
  8716. #define RTC_TAFCR_TAMPTS RTC_TAFCR_TAMPTS_Msk
  8717. #define RTC_TAFCR_TAMP3TRG_Pos (6U)
  8718. #define RTC_TAFCR_TAMP3TRG_Msk (0x1U << RTC_TAFCR_TAMP3TRG_Pos) /*!< 0x00000040 */
  8719. #define RTC_TAFCR_TAMP3TRG RTC_TAFCR_TAMP3TRG_Msk
  8720. #define RTC_TAFCR_TAMP3E_Pos (5U)
  8721. #define RTC_TAFCR_TAMP3E_Msk (0x1U << RTC_TAFCR_TAMP3E_Pos) /*!< 0x00000020 */
  8722. #define RTC_TAFCR_TAMP3E RTC_TAFCR_TAMP3E_Msk
  8723. #define RTC_TAFCR_TAMP2TRG_Pos (4U)
  8724. #define RTC_TAFCR_TAMP2TRG_Msk (0x1U << RTC_TAFCR_TAMP2TRG_Pos) /*!< 0x00000010 */
  8725. #define RTC_TAFCR_TAMP2TRG RTC_TAFCR_TAMP2TRG_Msk
  8726. #define RTC_TAFCR_TAMP2E_Pos (3U)
  8727. #define RTC_TAFCR_TAMP2E_Msk (0x1U << RTC_TAFCR_TAMP2E_Pos) /*!< 0x00000008 */
  8728. #define RTC_TAFCR_TAMP2E RTC_TAFCR_TAMP2E_Msk
  8729. #define RTC_TAFCR_TAMPIE_Pos (2U)
  8730. #define RTC_TAFCR_TAMPIE_Msk (0x1U << RTC_TAFCR_TAMPIE_Pos) /*!< 0x00000004 */
  8731. #define RTC_TAFCR_TAMPIE RTC_TAFCR_TAMPIE_Msk
  8732. #define RTC_TAFCR_TAMP1TRG_Pos (1U)
  8733. #define RTC_TAFCR_TAMP1TRG_Msk (0x1U << RTC_TAFCR_TAMP1TRG_Pos) /*!< 0x00000002 */
  8734. #define RTC_TAFCR_TAMP1TRG RTC_TAFCR_TAMP1TRG_Msk
  8735. #define RTC_TAFCR_TAMP1E_Pos (0U)
  8736. #define RTC_TAFCR_TAMP1E_Msk (0x1U << RTC_TAFCR_TAMP1E_Pos) /*!< 0x00000001 */
  8737. #define RTC_TAFCR_TAMP1E RTC_TAFCR_TAMP1E_Msk
  8738. /* Reference defines */
  8739. #define RTC_TAFCR_ALARMOUTTYPE RTC_TAFCR_PC13VALUE
  8740. /******************** Bits definition for RTC_ALRMASSR register ************/
  8741. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  8742. #define RTC_ALRMASSR_MASKSS_Msk (0xFU << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  8743. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  8744. #define RTC_ALRMASSR_MASKSS_0 (0x1U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  8745. #define RTC_ALRMASSR_MASKSS_1 (0x2U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  8746. #define RTC_ALRMASSR_MASKSS_2 (0x4U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  8747. #define RTC_ALRMASSR_MASKSS_3 (0x8U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  8748. #define RTC_ALRMASSR_SS_Pos (0U)
  8749. #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  8750. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  8751. /******************** Bits definition for RTC_BKP0R register ***************/
  8752. #define RTC_BKP0R_Pos (0U)
  8753. #define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  8754. #define RTC_BKP0R RTC_BKP0R_Msk
  8755. /******************** Bits definition for RTC_BKP1R register ***************/
  8756. #define RTC_BKP1R_Pos (0U)
  8757. #define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  8758. #define RTC_BKP1R RTC_BKP1R_Msk
  8759. /******************** Bits definition for RTC_BKP2R register ***************/
  8760. #define RTC_BKP2R_Pos (0U)
  8761. #define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  8762. #define RTC_BKP2R RTC_BKP2R_Msk
  8763. /******************** Bits definition for RTC_BKP3R register ***************/
  8764. #define RTC_BKP3R_Pos (0U)
  8765. #define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  8766. #define RTC_BKP3R RTC_BKP3R_Msk
  8767. /******************** Bits definition for RTC_BKP4R register ***************/
  8768. #define RTC_BKP4R_Pos (0U)
  8769. #define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  8770. #define RTC_BKP4R RTC_BKP4R_Msk
  8771. /******************** Number of backup registers ******************************/
  8772. #define RTC_BKP_NUMBER 0x00000005U
  8773. /*****************************************************************************/
  8774. /* */
  8775. /* Serial Peripheral Interface (SPI) */
  8776. /* */
  8777. /*****************************************************************************/
  8778. /*
  8779. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  8780. */
  8781. #define SPI_I2S_SUPPORT /*!< I2S support */
  8782. /******************* Bit definition for SPI_CR1 register *******************/
  8783. #define SPI_CR1_CPHA_Pos (0U)
  8784. #define SPI_CR1_CPHA_Msk (0x1U << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */
  8785. #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!< Clock Phase */
  8786. #define SPI_CR1_CPOL_Pos (1U)
  8787. #define SPI_CR1_CPOL_Msk (0x1U << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */
  8788. #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!< Clock Polarity */
  8789. #define SPI_CR1_MSTR_Pos (2U)
  8790. #define SPI_CR1_MSTR_Msk (0x1U << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */
  8791. #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!< Master Selection */
  8792. #define SPI_CR1_BR_Pos (3U)
  8793. #define SPI_CR1_BR_Msk (0x7U << SPI_CR1_BR_Pos) /*!< 0x00000038 */
  8794. #define SPI_CR1_BR SPI_CR1_BR_Msk /*!< BR[2:0] bits (Baud Rate Control) */
  8795. #define SPI_CR1_BR_0 (0x1U << SPI_CR1_BR_Pos) /*!< 0x00000008 */
  8796. #define SPI_CR1_BR_1 (0x2U << SPI_CR1_BR_Pos) /*!< 0x00000010 */
  8797. #define SPI_CR1_BR_2 (0x4U << SPI_CR1_BR_Pos) /*!< 0x00000020 */
  8798. #define SPI_CR1_SPE_Pos (6U)
  8799. #define SPI_CR1_SPE_Msk (0x1U << SPI_CR1_SPE_Pos) /*!< 0x00000040 */
  8800. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!< SPI Enable */
  8801. #define SPI_CR1_LSBFIRST_Pos (7U)
  8802. #define SPI_CR1_LSBFIRST_Msk (0x1U << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */
  8803. #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!< Frame Format */
  8804. #define SPI_CR1_SSI_Pos (8U)
  8805. #define SPI_CR1_SSI_Msk (0x1U << SPI_CR1_SSI_Pos) /*!< 0x00000100 */
  8806. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!< Internal slave select */
  8807. #define SPI_CR1_SSM_Pos (9U)
  8808. #define SPI_CR1_SSM_Msk (0x1U << SPI_CR1_SSM_Pos) /*!< 0x00000200 */
  8809. #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!< Software slave management */
  8810. #define SPI_CR1_RXONLY_Pos (10U)
  8811. #define SPI_CR1_RXONLY_Msk (0x1U << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */
  8812. #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!< Receive only */
  8813. #define SPI_CR1_CRCL_Pos (11U)
  8814. #define SPI_CR1_CRCL_Msk (0x1U << SPI_CR1_CRCL_Pos) /*!< 0x00000800 */
  8815. #define SPI_CR1_CRCL SPI_CR1_CRCL_Msk /*!< CRC Length */
  8816. #define SPI_CR1_CRCNEXT_Pos (12U)
  8817. #define SPI_CR1_CRCNEXT_Msk (0x1U << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */
  8818. #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!< Transmit CRC next */
  8819. #define SPI_CR1_CRCEN_Pos (13U)
  8820. #define SPI_CR1_CRCEN_Msk (0x1U << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */
  8821. #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!< Hardware CRC calculation enable */
  8822. #define SPI_CR1_BIDIOE_Pos (14U)
  8823. #define SPI_CR1_BIDIOE_Msk (0x1U << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */
  8824. #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!< Output enable in bidirectional mode */
  8825. #define SPI_CR1_BIDIMODE_Pos (15U)
  8826. #define SPI_CR1_BIDIMODE_Msk (0x1U << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */
  8827. #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!< Bidirectional data mode enable */
  8828. /******************* Bit definition for SPI_CR2 register *******************/
  8829. #define SPI_CR2_RXDMAEN_Pos (0U)
  8830. #define SPI_CR2_RXDMAEN_Msk (0x1U << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */
  8831. #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */
  8832. #define SPI_CR2_TXDMAEN_Pos (1U)
  8833. #define SPI_CR2_TXDMAEN_Msk (0x1U << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */
  8834. #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */
  8835. #define SPI_CR2_SSOE_Pos (2U)
  8836. #define SPI_CR2_SSOE_Msk (0x1U << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */
  8837. #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */
  8838. #define SPI_CR2_NSSP_Pos (3U)
  8839. #define SPI_CR2_NSSP_Msk (0x1U << SPI_CR2_NSSP_Pos) /*!< 0x00000008 */
  8840. #define SPI_CR2_NSSP SPI_CR2_NSSP_Msk /*!< NSS pulse management Enable */
  8841. #define SPI_CR2_FRF_Pos (4U)
  8842. #define SPI_CR2_FRF_Msk (0x1U << SPI_CR2_FRF_Pos) /*!< 0x00000010 */
  8843. #define SPI_CR2_FRF SPI_CR2_FRF_Msk /*!< Frame Format Enable */
  8844. #define SPI_CR2_ERRIE_Pos (5U)
  8845. #define SPI_CR2_ERRIE_Msk (0x1U << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */
  8846. #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */
  8847. #define SPI_CR2_RXNEIE_Pos (6U)
  8848. #define SPI_CR2_RXNEIE_Msk (0x1U << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */
  8849. #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */
  8850. #define SPI_CR2_TXEIE_Pos (7U)
  8851. #define SPI_CR2_TXEIE_Msk (0x1U << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */
  8852. #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */
  8853. #define SPI_CR2_DS_Pos (8U)
  8854. #define SPI_CR2_DS_Msk (0xFU << SPI_CR2_DS_Pos) /*!< 0x00000F00 */
  8855. #define SPI_CR2_DS SPI_CR2_DS_Msk /*!< DS[3:0] Data Size */
  8856. #define SPI_CR2_DS_0 (0x1U << SPI_CR2_DS_Pos) /*!< 0x00000100 */
  8857. #define SPI_CR2_DS_1 (0x2U << SPI_CR2_DS_Pos) /*!< 0x00000200 */
  8858. #define SPI_CR2_DS_2 (0x4U << SPI_CR2_DS_Pos) /*!< 0x00000400 */
  8859. #define SPI_CR2_DS_3 (0x8U << SPI_CR2_DS_Pos) /*!< 0x00000800 */
  8860. #define SPI_CR2_FRXTH_Pos (12U)
  8861. #define SPI_CR2_FRXTH_Msk (0x1U << SPI_CR2_FRXTH_Pos) /*!< 0x00001000 */
  8862. #define SPI_CR2_FRXTH SPI_CR2_FRXTH_Msk /*!< FIFO reception Threshold */
  8863. #define SPI_CR2_LDMARX_Pos (13U)
  8864. #define SPI_CR2_LDMARX_Msk (0x1U << SPI_CR2_LDMARX_Pos) /*!< 0x00002000 */
  8865. #define SPI_CR2_LDMARX SPI_CR2_LDMARX_Msk /*!< Last DMA transfer for reception */
  8866. #define SPI_CR2_LDMATX_Pos (14U)
  8867. #define SPI_CR2_LDMATX_Msk (0x1U << SPI_CR2_LDMATX_Pos) /*!< 0x00004000 */
  8868. #define SPI_CR2_LDMATX SPI_CR2_LDMATX_Msk /*!< Last DMA transfer for transmission */
  8869. /******************** Bit definition for SPI_SR register *******************/
  8870. #define SPI_SR_RXNE_Pos (0U)
  8871. #define SPI_SR_RXNE_Msk (0x1U << SPI_SR_RXNE_Pos) /*!< 0x00000001 */
  8872. #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */
  8873. #define SPI_SR_TXE_Pos (1U)
  8874. #define SPI_SR_TXE_Msk (0x1U << SPI_SR_TXE_Pos) /*!< 0x00000002 */
  8875. #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */
  8876. #define SPI_SR_CHSIDE_Pos (2U)
  8877. #define SPI_SR_CHSIDE_Msk (0x1U << SPI_SR_CHSIDE_Pos) /*!< 0x00000004 */
  8878. #define SPI_SR_CHSIDE SPI_SR_CHSIDE_Msk /*!< Channel side */
  8879. #define SPI_SR_UDR_Pos (3U)
  8880. #define SPI_SR_UDR_Msk (0x1U << SPI_SR_UDR_Pos) /*!< 0x00000008 */
  8881. #define SPI_SR_UDR SPI_SR_UDR_Msk /*!< Underrun flag */
  8882. #define SPI_SR_CRCERR_Pos (4U)
  8883. #define SPI_SR_CRCERR_Msk (0x1U << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */
  8884. #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */
  8885. #define SPI_SR_MODF_Pos (5U)
  8886. #define SPI_SR_MODF_Msk (0x1U << SPI_SR_MODF_Pos) /*!< 0x00000020 */
  8887. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */
  8888. #define SPI_SR_OVR_Pos (6U)
  8889. #define SPI_SR_OVR_Msk (0x1U << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  8890. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */
  8891. #define SPI_SR_BSY_Pos (7U)
  8892. #define SPI_SR_BSY_Msk (0x1U << SPI_SR_BSY_Pos) /*!< 0x00000080 */
  8893. #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */
  8894. #define SPI_SR_FRE_Pos (8U)
  8895. #define SPI_SR_FRE_Msk (0x1U << SPI_SR_FRE_Pos) /*!< 0x00000100 */
  8896. #define SPI_SR_FRE SPI_SR_FRE_Msk /*!< TI frame format error */
  8897. #define SPI_SR_FRLVL_Pos (9U)
  8898. #define SPI_SR_FRLVL_Msk (0x3U << SPI_SR_FRLVL_Pos) /*!< 0x00000600 */
  8899. #define SPI_SR_FRLVL SPI_SR_FRLVL_Msk /*!< FIFO Reception Level */
  8900. #define SPI_SR_FRLVL_0 (0x1U << SPI_SR_FRLVL_Pos) /*!< 0x00000200 */
  8901. #define SPI_SR_FRLVL_1 (0x2U << SPI_SR_FRLVL_Pos) /*!< 0x00000400 */
  8902. #define SPI_SR_FTLVL_Pos (11U)
  8903. #define SPI_SR_FTLVL_Msk (0x3U << SPI_SR_FTLVL_Pos) /*!< 0x00001800 */
  8904. #define SPI_SR_FTLVL SPI_SR_FTLVL_Msk /*!< FIFO Transmission Level */
  8905. #define SPI_SR_FTLVL_0 (0x1U << SPI_SR_FTLVL_Pos) /*!< 0x00000800 */
  8906. #define SPI_SR_FTLVL_1 (0x2U << SPI_SR_FTLVL_Pos) /*!< 0x00001000 */
  8907. /******************** Bit definition for SPI_DR register *******************/
  8908. #define SPI_DR_DR_Pos (0U)
  8909. #define SPI_DR_DR_Msk (0xFFFFFFFFU << SPI_DR_DR_Pos) /*!< 0xFFFFFFFF */
  8910. #define SPI_DR_DR SPI_DR_DR_Msk /*!< Data Register */
  8911. /******************* Bit definition for SPI_CRCPR register *****************/
  8912. #define SPI_CRCPR_CRCPOLY_Pos (0U)
  8913. #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFFFFFU << SPI_CRCPR_CRCPOLY_Pos) /*!< 0xFFFFFFFF */
  8914. #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!< CRC polynomial register */
  8915. /****************** Bit definition for SPI_RXCRCR register *****************/
  8916. #define SPI_RXCRCR_RXCRC_Pos (0U)
  8917. #define SPI_RXCRCR_RXCRC_Msk (0xFFFFFFFFU << SPI_RXCRCR_RXCRC_Pos) /*!< 0xFFFFFFFF */
  8918. #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!< Rx CRC Register */
  8919. /****************** Bit definition for SPI_TXCRCR register *****************/
  8920. #define SPI_TXCRCR_TXCRC_Pos (0U)
  8921. #define SPI_TXCRCR_TXCRC_Msk (0xFFFFFFFFU << SPI_TXCRCR_TXCRC_Pos) /*!< 0xFFFFFFFF */
  8922. #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!< Tx CRC Register */
  8923. /****************** Bit definition for SPI_I2SCFGR register ****************/
  8924. #define SPI_I2SCFGR_CHLEN_Pos (0U)
  8925. #define SPI_I2SCFGR_CHLEN_Msk (0x1U << SPI_I2SCFGR_CHLEN_Pos) /*!< 0x00000001 */
  8926. #define SPI_I2SCFGR_CHLEN SPI_I2SCFGR_CHLEN_Msk /*!<Channel length (number of bits per audio channel) */
  8927. #define SPI_I2SCFGR_DATLEN_Pos (1U)
  8928. #define SPI_I2SCFGR_DATLEN_Msk (0x3U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000006 */
  8929. #define SPI_I2SCFGR_DATLEN SPI_I2SCFGR_DATLEN_Msk /*!<DATLEN[1:0] bits (Data length to be transferred) */
  8930. #define SPI_I2SCFGR_DATLEN_0 (0x1U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000002 */
  8931. #define SPI_I2SCFGR_DATLEN_1 (0x2U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000004 */
  8932. #define SPI_I2SCFGR_CKPOL_Pos (3U)
  8933. #define SPI_I2SCFGR_CKPOL_Msk (0x1U << SPI_I2SCFGR_CKPOL_Pos) /*!< 0x00000008 */
  8934. #define SPI_I2SCFGR_CKPOL SPI_I2SCFGR_CKPOL_Msk /*!<steady state clock polarity */
  8935. #define SPI_I2SCFGR_I2SSTD_Pos (4U)
  8936. #define SPI_I2SCFGR_I2SSTD_Msk (0x3U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000030 */
  8937. #define SPI_I2SCFGR_I2SSTD SPI_I2SCFGR_I2SSTD_Msk /*!<I2SSTD[1:0] bits (I2S standard selection) */
  8938. #define SPI_I2SCFGR_I2SSTD_0 (0x1U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000010 */
  8939. #define SPI_I2SCFGR_I2SSTD_1 (0x2U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000020 */
  8940. #define SPI_I2SCFGR_PCMSYNC_Pos (7U)
  8941. #define SPI_I2SCFGR_PCMSYNC_Msk (0x1U << SPI_I2SCFGR_PCMSYNC_Pos) /*!< 0x00000080 */
  8942. #define SPI_I2SCFGR_PCMSYNC SPI_I2SCFGR_PCMSYNC_Msk /*!<PCM frame synchronization */
  8943. #define SPI_I2SCFGR_I2SCFG_Pos (8U)
  8944. #define SPI_I2SCFGR_I2SCFG_Msk (0x3U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000300 */
  8945. #define SPI_I2SCFGR_I2SCFG SPI_I2SCFGR_I2SCFG_Msk /*!<I2SCFG[1:0] bits (I2S configuration mode) */
  8946. #define SPI_I2SCFGR_I2SCFG_0 (0x1U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000100 */
  8947. #define SPI_I2SCFGR_I2SCFG_1 (0x2U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000200 */
  8948. #define SPI_I2SCFGR_I2SE_Pos (10U)
  8949. #define SPI_I2SCFGR_I2SE_Msk (0x1U << SPI_I2SCFGR_I2SE_Pos) /*!< 0x00000400 */
  8950. #define SPI_I2SCFGR_I2SE SPI_I2SCFGR_I2SE_Msk /*!<I2S Enable */
  8951. #define SPI_I2SCFGR_I2SMOD_Pos (11U)
  8952. #define SPI_I2SCFGR_I2SMOD_Msk (0x1U << SPI_I2SCFGR_I2SMOD_Pos) /*!< 0x00000800 */
  8953. #define SPI_I2SCFGR_I2SMOD SPI_I2SCFGR_I2SMOD_Msk /*!<I2S mode selection */
  8954. /****************** Bit definition for SPI_I2SPR register ******************/
  8955. #define SPI_I2SPR_I2SDIV_Pos (0U)
  8956. #define SPI_I2SPR_I2SDIV_Msk (0xFFU << SPI_I2SPR_I2SDIV_Pos) /*!< 0x000000FF */
  8957. #define SPI_I2SPR_I2SDIV SPI_I2SPR_I2SDIV_Msk /*!<I2S Linear prescaler */
  8958. #define SPI_I2SPR_ODD_Pos (8U)
  8959. #define SPI_I2SPR_ODD_Msk (0x1U << SPI_I2SPR_ODD_Pos) /*!< 0x00000100 */
  8960. #define SPI_I2SPR_ODD SPI_I2SPR_ODD_Msk /*!<Odd factor for the prescaler */
  8961. #define SPI_I2SPR_MCKOE_Pos (9U)
  8962. #define SPI_I2SPR_MCKOE_Msk (0x1U << SPI_I2SPR_MCKOE_Pos) /*!< 0x00000200 */
  8963. #define SPI_I2SPR_MCKOE SPI_I2SPR_MCKOE_Msk /*!<Master Clock Output Enable */
  8964. /*****************************************************************************/
  8965. /* */
  8966. /* System Configuration (SYSCFG) */
  8967. /* */
  8968. /*****************************************************************************/
  8969. /***************** Bit definition for SYSCFG_CFGR1 register ****************/
  8970. #define SYSCFG_CFGR1_MEM_MODE_Pos (0U)
  8971. #define SYSCFG_CFGR1_MEM_MODE_Msk (0x3U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000003 */
  8972. #define SYSCFG_CFGR1_MEM_MODE SYSCFG_CFGR1_MEM_MODE_Msk /*!< SYSCFG_Memory Remap Config */
  8973. #define SYSCFG_CFGR1_MEM_MODE_0 (0x1U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000001 */
  8974. #define SYSCFG_CFGR1_MEM_MODE_1 (0x2U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000002 */
  8975. #define SYSCFG_CFGR1_IR_MOD_Pos (6U)
  8976. #define SYSCFG_CFGR1_IR_MOD_Msk (0x3U << SYSCFG_CFGR1_IR_MOD_Pos) /*!< 0x000000C0 */
  8977. #define SYSCFG_CFGR1_IR_MOD SYSCFG_CFGR1_IR_MOD_Msk /*!< IR_MOD config */
  8978. #define SYSCFG_CFGR1_IR_MOD_0 (0x1U << SYSCFG_CFGR1_IR_MOD_Pos) /*!< 0x00000040 */
  8979. #define SYSCFG_CFGR1_IR_MOD_1 (0x2U << SYSCFG_CFGR1_IR_MOD_Pos) /*!< 0x00000080 */
  8980. /* Alias for legacy purposes */
  8981. #define SYSCFG_CFGR1_IRDA_ENV_SEL SYSCFG_CFGR1_IR_MOD
  8982. #define SYSCFG_CFGR1_IRDA_ENV_SEL_0 SYSCFG_CFGR1_IR_MOD_0
  8983. #define SYSCFG_CFGR1_IRDA_ENV_SEL_1 SYSCFG_CFGR1_IR_MOD_1
  8984. #define SYSCFG_CFGR1_I2C_FMP_PB6_Pos (16U)
  8985. #define SYSCFG_CFGR1_I2C_FMP_PB6_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB6_Pos) /*!< 0x00010000 */
  8986. #define SYSCFG_CFGR1_I2C_FMP_PB6 SYSCFG_CFGR1_I2C_FMP_PB6_Msk /*!< I2C PB6 Fast mode plus */
  8987. #define SYSCFG_CFGR1_I2C_FMP_PB7_Pos (17U)
  8988. #define SYSCFG_CFGR1_I2C_FMP_PB7_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB7_Pos) /*!< 0x00020000 */
  8989. #define SYSCFG_CFGR1_I2C_FMP_PB7 SYSCFG_CFGR1_I2C_FMP_PB7_Msk /*!< I2C PB7 Fast mode plus */
  8990. #define SYSCFG_CFGR1_I2C_FMP_PB8_Pos (18U)
  8991. #define SYSCFG_CFGR1_I2C_FMP_PB8_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB8_Pos) /*!< 0x00040000 */
  8992. #define SYSCFG_CFGR1_I2C_FMP_PB8 SYSCFG_CFGR1_I2C_FMP_PB8_Msk /*!< I2C PB8 Fast mode plus */
  8993. #define SYSCFG_CFGR1_I2C_FMP_PB9_Pos (19U)
  8994. #define SYSCFG_CFGR1_I2C_FMP_PB9_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB9_Pos) /*!< 0x00080000 */
  8995. #define SYSCFG_CFGR1_I2C_FMP_PB9 SYSCFG_CFGR1_I2C_FMP_PB9_Msk /*!< I2C PB9 Fast mode plus */
  8996. #define SYSCFG_CFGR1_I2C_FMP_I2C1_Pos (20U)
  8997. #define SYSCFG_CFGR1_I2C_FMP_I2C1_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_I2C1_Pos) /*!< 0x00100000 */
  8998. #define SYSCFG_CFGR1_I2C_FMP_I2C1 SYSCFG_CFGR1_I2C_FMP_I2C1_Msk /*!< Enable Fast Mode Plus on PB10, PB11, PF6 and PF7 */
  8999. #define SYSCFG_CFGR1_I2C_FMP_I2C2_Pos (21U)
  9000. #define SYSCFG_CFGR1_I2C_FMP_I2C2_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_I2C2_Pos) /*!< 0x00200000 */
  9001. #define SYSCFG_CFGR1_I2C_FMP_I2C2 SYSCFG_CFGR1_I2C_FMP_I2C2_Msk /*!< Enable I2C2 Fast mode plus */
  9002. #define SYSCFG_CFGR1_I2C_FMP_PA9_Pos (22U)
  9003. #define SYSCFG_CFGR1_I2C_FMP_PA9_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PA9_Pos) /*!< 0x00400000 */
  9004. #define SYSCFG_CFGR1_I2C_FMP_PA9 SYSCFG_CFGR1_I2C_FMP_PA9_Msk /*!< Enable Fast Mode Plus on PA9 */
  9005. #define SYSCFG_CFGR1_I2C_FMP_PA10_Pos (23U)
  9006. #define SYSCFG_CFGR1_I2C_FMP_PA10_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PA10_Pos) /*!< 0x00800000 */
  9007. #define SYSCFG_CFGR1_I2C_FMP_PA10 SYSCFG_CFGR1_I2C_FMP_PA10_Msk /*!< Enable Fast Mode Plus on PA10 */
  9008. /***************** Bit definition for SYSCFG_EXTICR1 register **************/
  9009. #define SYSCFG_EXTICR1_EXTI0_Pos (0U)
  9010. #define SYSCFG_EXTICR1_EXTI0_Msk (0xFU << SYSCFG_EXTICR1_EXTI0_Pos) /*!< 0x0000000F */
  9011. #define SYSCFG_EXTICR1_EXTI0 SYSCFG_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */
  9012. #define SYSCFG_EXTICR1_EXTI1_Pos (4U)
  9013. #define SYSCFG_EXTICR1_EXTI1_Msk (0xFU << SYSCFG_EXTICR1_EXTI1_Pos) /*!< 0x000000F0 */
  9014. #define SYSCFG_EXTICR1_EXTI1 SYSCFG_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */
  9015. #define SYSCFG_EXTICR1_EXTI2_Pos (8U)
  9016. #define SYSCFG_EXTICR1_EXTI2_Msk (0xFU << SYSCFG_EXTICR1_EXTI2_Pos) /*!< 0x00000F00 */
  9017. #define SYSCFG_EXTICR1_EXTI2 SYSCFG_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */
  9018. #define SYSCFG_EXTICR1_EXTI3_Pos (12U)
  9019. #define SYSCFG_EXTICR1_EXTI3_Msk (0xFU << SYSCFG_EXTICR1_EXTI3_Pos) /*!< 0x0000F000 */
  9020. #define SYSCFG_EXTICR1_EXTI3 SYSCFG_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */
  9021. /**
  9022. * @brief EXTI0 configuration
  9023. */
  9024. #define SYSCFG_EXTICR1_EXTI0_PA (0x00000000U) /*!< PA[0] pin */
  9025. #define SYSCFG_EXTICR1_EXTI0_PB (0x00000001U) /*!< PB[0] pin */
  9026. #define SYSCFG_EXTICR1_EXTI0_PC (0x00000002U) /*!< PC[0] pin */
  9027. #define SYSCFG_EXTICR1_EXTI0_PD (0x00000003U) /*!< PD[0] pin */
  9028. #define SYSCFG_EXTICR1_EXTI0_PE (0x00000004U) /*!< PE[0] pin */
  9029. #define SYSCFG_EXTICR1_EXTI0_PF (0x00000005U) /*!< PF[0] pin */
  9030. /**
  9031. * @brief EXTI1 configuration
  9032. */
  9033. #define SYSCFG_EXTICR1_EXTI1_PA (0x00000000U) /*!< PA[1] pin */
  9034. #define SYSCFG_EXTICR1_EXTI1_PB (0x00000010U) /*!< PB[1] pin */
  9035. #define SYSCFG_EXTICR1_EXTI1_PC (0x00000020U) /*!< PC[1] pin */
  9036. #define SYSCFG_EXTICR1_EXTI1_PD (0x00000030U) /*!< PD[1] pin */
  9037. #define SYSCFG_EXTICR1_EXTI1_PE (0x00000040U) /*!< PE[1] pin */
  9038. #define SYSCFG_EXTICR1_EXTI1_PF (0x00000050U) /*!< PF[1] pin */
  9039. /**
  9040. * @brief EXTI2 configuration
  9041. */
  9042. #define SYSCFG_EXTICR1_EXTI2_PA (0x00000000U) /*!< PA[2] pin */
  9043. #define SYSCFG_EXTICR1_EXTI2_PB (0x00000100U) /*!< PB[2] pin */
  9044. #define SYSCFG_EXTICR1_EXTI2_PC (0x00000200U) /*!< PC[2] pin */
  9045. #define SYSCFG_EXTICR1_EXTI2_PD (0x00000300U) /*!< PD[2] pin */
  9046. #define SYSCFG_EXTICR1_EXTI2_PE (0x00000400U) /*!< PE[2] pin */
  9047. #define SYSCFG_EXTICR1_EXTI2_PF (0x00000500U) /*!< PF[2] pin */
  9048. /**
  9049. * @brief EXTI3 configuration
  9050. */
  9051. #define SYSCFG_EXTICR1_EXTI3_PA (0x00000000U) /*!< PA[3] pin */
  9052. #define SYSCFG_EXTICR1_EXTI3_PB (0x00001000U) /*!< PB[3] pin */
  9053. #define SYSCFG_EXTICR1_EXTI3_PC (0x00002000U) /*!< PC[3] pin */
  9054. #define SYSCFG_EXTICR1_EXTI3_PD (0x00003000U) /*!< PD[3] pin */
  9055. #define SYSCFG_EXTICR1_EXTI3_PE (0x00004000U) /*!< PE[3] pin */
  9056. #define SYSCFG_EXTICR1_EXTI3_PF (0x00005000U) /*!< PF[3] pin */
  9057. /***************** Bit definition for SYSCFG_EXTICR2 register **************/
  9058. #define SYSCFG_EXTICR2_EXTI4_Pos (0U)
  9059. #define SYSCFG_EXTICR2_EXTI4_Msk (0xFU << SYSCFG_EXTICR2_EXTI4_Pos) /*!< 0x0000000F */
  9060. #define SYSCFG_EXTICR2_EXTI4 SYSCFG_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */
  9061. #define SYSCFG_EXTICR2_EXTI5_Pos (4U)
  9062. #define SYSCFG_EXTICR2_EXTI5_Msk (0xFU << SYSCFG_EXTICR2_EXTI5_Pos) /*!< 0x000000F0 */
  9063. #define SYSCFG_EXTICR2_EXTI5 SYSCFG_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */
  9064. #define SYSCFG_EXTICR2_EXTI6_Pos (8U)
  9065. #define SYSCFG_EXTICR2_EXTI6_Msk (0xFU << SYSCFG_EXTICR2_EXTI6_Pos) /*!< 0x00000F00 */
  9066. #define SYSCFG_EXTICR2_EXTI6 SYSCFG_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */
  9067. #define SYSCFG_EXTICR2_EXTI7_Pos (12U)
  9068. #define SYSCFG_EXTICR2_EXTI7_Msk (0xFU << SYSCFG_EXTICR2_EXTI7_Pos) /*!< 0x0000F000 */
  9069. #define SYSCFG_EXTICR2_EXTI7 SYSCFG_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */
  9070. /**
  9071. * @brief EXTI4 configuration
  9072. */
  9073. #define SYSCFG_EXTICR2_EXTI4_PA (0x00000000U) /*!< PA[4] pin */
  9074. #define SYSCFG_EXTICR2_EXTI4_PB (0x00000001U) /*!< PB[4] pin */
  9075. #define SYSCFG_EXTICR2_EXTI4_PC (0x00000002U) /*!< PC[4] pin */
  9076. #define SYSCFG_EXTICR2_EXTI4_PD (0x00000003U) /*!< PD[4] pin */
  9077. #define SYSCFG_EXTICR2_EXTI4_PE (0x00000004U) /*!< PE[4] pin */
  9078. #define SYSCFG_EXTICR2_EXTI4_PF (0x00000005U) /*!< PF[4] pin */
  9079. /**
  9080. * @brief EXTI5 configuration
  9081. */
  9082. #define SYSCFG_EXTICR2_EXTI5_PA (0x00000000U) /*!< PA[5] pin */
  9083. #define SYSCFG_EXTICR2_EXTI5_PB (0x00000010U) /*!< PB[5] pin */
  9084. #define SYSCFG_EXTICR2_EXTI5_PC (0x00000020U) /*!< PC[5] pin */
  9085. #define SYSCFG_EXTICR2_EXTI5_PD (0x00000030U) /*!< PD[5] pin */
  9086. #define SYSCFG_EXTICR2_EXTI5_PE (0x00000040U) /*!< PE[5] pin */
  9087. #define SYSCFG_EXTICR2_EXTI5_PF (0x00000050U) /*!< PF[5] pin */
  9088. /**
  9089. * @brief EXTI6 configuration
  9090. */
  9091. #define SYSCFG_EXTICR2_EXTI6_PA (0x00000000U) /*!< PA[6] pin */
  9092. #define SYSCFG_EXTICR2_EXTI6_PB (0x00000100U) /*!< PB[6] pin */
  9093. #define SYSCFG_EXTICR2_EXTI6_PC (0x00000200U) /*!< PC[6] pin */
  9094. #define SYSCFG_EXTICR2_EXTI6_PD (0x00000300U) /*!< PD[6] pin */
  9095. #define SYSCFG_EXTICR2_EXTI6_PE (0x00000400U) /*!< PE[6] pin */
  9096. #define SYSCFG_EXTICR2_EXTI6_PF (0x00000500U) /*!< PF[6] pin */
  9097. /**
  9098. * @brief EXTI7 configuration
  9099. */
  9100. #define SYSCFG_EXTICR2_EXTI7_PA (0x00000000U) /*!< PA[7] pin */
  9101. #define SYSCFG_EXTICR2_EXTI7_PB (0x00001000U) /*!< PB[7] pin */
  9102. #define SYSCFG_EXTICR2_EXTI7_PC (0x00002000U) /*!< PC[7] pin */
  9103. #define SYSCFG_EXTICR2_EXTI7_PD (0x00003000U) /*!< PD[7] pin */
  9104. #define SYSCFG_EXTICR2_EXTI7_PE (0x00004000U) /*!< PE[7] pin */
  9105. #define SYSCFG_EXTICR2_EXTI7_PF (0x00005000U) /*!< PF[7] pin */
  9106. /***************** Bit definition for SYSCFG_EXTICR3 register **************/
  9107. #define SYSCFG_EXTICR3_EXTI8_Pos (0U)
  9108. #define SYSCFG_EXTICR3_EXTI8_Msk (0xFU << SYSCFG_EXTICR3_EXTI8_Pos) /*!< 0x0000000F */
  9109. #define SYSCFG_EXTICR3_EXTI8 SYSCFG_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */
  9110. #define SYSCFG_EXTICR3_EXTI9_Pos (4U)
  9111. #define SYSCFG_EXTICR3_EXTI9_Msk (0xFU << SYSCFG_EXTICR3_EXTI9_Pos) /*!< 0x000000F0 */
  9112. #define SYSCFG_EXTICR3_EXTI9 SYSCFG_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */
  9113. #define SYSCFG_EXTICR3_EXTI10_Pos (8U)
  9114. #define SYSCFG_EXTICR3_EXTI10_Msk (0xFU << SYSCFG_EXTICR3_EXTI10_Pos) /*!< 0x00000F00 */
  9115. #define SYSCFG_EXTICR3_EXTI10 SYSCFG_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */
  9116. #define SYSCFG_EXTICR3_EXTI11_Pos (12U)
  9117. #define SYSCFG_EXTICR3_EXTI11_Msk (0xFU << SYSCFG_EXTICR3_EXTI11_Pos) /*!< 0x0000F000 */
  9118. #define SYSCFG_EXTICR3_EXTI11 SYSCFG_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */
  9119. /**
  9120. * @brief EXTI8 configuration
  9121. */
  9122. #define SYSCFG_EXTICR3_EXTI8_PA (0x00000000U) /*!< PA[8] pin */
  9123. #define SYSCFG_EXTICR3_EXTI8_PB (0x00000001U) /*!< PB[8] pin */
  9124. #define SYSCFG_EXTICR3_EXTI8_PC (0x00000002U) /*!< PC[8] pin */
  9125. #define SYSCFG_EXTICR3_EXTI8_PD (0x00000003U) /*!< PD[8] pin */
  9126. #define SYSCFG_EXTICR3_EXTI8_PE (0x00000004U) /*!< PE[8] pin */
  9127. /**
  9128. * @brief EXTI9 configuration
  9129. */
  9130. #define SYSCFG_EXTICR3_EXTI9_PA (0x00000000U) /*!< PA[9] pin */
  9131. #define SYSCFG_EXTICR3_EXTI9_PB (0x00000010U) /*!< PB[9] pin */
  9132. #define SYSCFG_EXTICR3_EXTI9_PC (0x00000020U) /*!< PC[9] pin */
  9133. #define SYSCFG_EXTICR3_EXTI9_PD (0x00000030U) /*!< PD[9] pin */
  9134. #define SYSCFG_EXTICR3_EXTI9_PE (0x00000040U) /*!< PE[9] pin */
  9135. #define SYSCFG_EXTICR3_EXTI9_PF (0x00000050U) /*!< PF[9] pin */
  9136. /**
  9137. * @brief EXTI10 configuration
  9138. */
  9139. #define SYSCFG_EXTICR3_EXTI10_PA (0x00000000U) /*!< PA[10] pin */
  9140. #define SYSCFG_EXTICR3_EXTI10_PB (0x00000100U) /*!< PB[10] pin */
  9141. #define SYSCFG_EXTICR3_EXTI10_PC (0x00000200U) /*!< PC[10] pin */
  9142. #define SYSCFG_EXTICR3_EXTI10_PD (0x00000300U) /*!< PD[10] pin */
  9143. #define SYSCFG_EXTICR3_EXTI10_PE (0x00000400U) /*!< PE[10] pin */
  9144. #define SYSCFG_EXTICR3_EXTI10_PF (0x00000500U) /*!< PF[10] pin */
  9145. /**
  9146. * @brief EXTI11 configuration
  9147. */
  9148. #define SYSCFG_EXTICR3_EXTI11_PA (0x00000000U) /*!< PA[11] pin */
  9149. #define SYSCFG_EXTICR3_EXTI11_PB (0x00001000U) /*!< PB[11] pin */
  9150. #define SYSCFG_EXTICR3_EXTI11_PC (0x00002000U) /*!< PC[11] pin */
  9151. #define SYSCFG_EXTICR3_EXTI11_PD (0x00003000U) /*!< PD[11] pin */
  9152. #define SYSCFG_EXTICR3_EXTI11_PE (0x00004000U) /*!< PE[11] pin */
  9153. /***************** Bit definition for SYSCFG_EXTICR4 register **************/
  9154. #define SYSCFG_EXTICR4_EXTI12_Pos (0U)
  9155. #define SYSCFG_EXTICR4_EXTI12_Msk (0xFU << SYSCFG_EXTICR4_EXTI12_Pos) /*!< 0x0000000F */
  9156. #define SYSCFG_EXTICR4_EXTI12 SYSCFG_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */
  9157. #define SYSCFG_EXTICR4_EXTI13_Pos (4U)
  9158. #define SYSCFG_EXTICR4_EXTI13_Msk (0xFU << SYSCFG_EXTICR4_EXTI13_Pos) /*!< 0x000000F0 */
  9159. #define SYSCFG_EXTICR4_EXTI13 SYSCFG_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */
  9160. #define SYSCFG_EXTICR4_EXTI14_Pos (8U)
  9161. #define SYSCFG_EXTICR4_EXTI14_Msk (0xFU << SYSCFG_EXTICR4_EXTI14_Pos) /*!< 0x00000F00 */
  9162. #define SYSCFG_EXTICR4_EXTI14 SYSCFG_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */
  9163. #define SYSCFG_EXTICR4_EXTI15_Pos (12U)
  9164. #define SYSCFG_EXTICR4_EXTI15_Msk (0xFU << SYSCFG_EXTICR4_EXTI15_Pos) /*!< 0x0000F000 */
  9165. #define SYSCFG_EXTICR4_EXTI15 SYSCFG_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */
  9166. /**
  9167. * @brief EXTI12 configuration
  9168. */
  9169. #define SYSCFG_EXTICR4_EXTI12_PA (0x00000000U) /*!< PA[12] pin */
  9170. #define SYSCFG_EXTICR4_EXTI12_PB (0x00000001U) /*!< PB[12] pin */
  9171. #define SYSCFG_EXTICR4_EXTI12_PC (0x00000002U) /*!< PC[12] pin */
  9172. #define SYSCFG_EXTICR4_EXTI12_PD (0x00000003U) /*!< PD[12] pin */
  9173. #define SYSCFG_EXTICR4_EXTI12_PE (0x00000004U) /*!< PE[12] pin */
  9174. /**
  9175. * @brief EXTI13 configuration
  9176. */
  9177. #define SYSCFG_EXTICR4_EXTI13_PA (0x00000000U) /*!< PA[13] pin */
  9178. #define SYSCFG_EXTICR4_EXTI13_PB (0x00000010U) /*!< PB[13] pin */
  9179. #define SYSCFG_EXTICR4_EXTI13_PC (0x00000020U) /*!< PC[13] pin */
  9180. #define SYSCFG_EXTICR4_EXTI13_PD (0x00000030U) /*!< PD[13] pin */
  9181. #define SYSCFG_EXTICR4_EXTI13_PE (0x00000040U) /*!< PE[13] pin */
  9182. /**
  9183. * @brief EXTI14 configuration
  9184. */
  9185. #define SYSCFG_EXTICR4_EXTI14_PA (0x00000000U) /*!< PA[14] pin */
  9186. #define SYSCFG_EXTICR4_EXTI14_PB (0x00000100U) /*!< PB[14] pin */
  9187. #define SYSCFG_EXTICR4_EXTI14_PC (0x00000200U) /*!< PC[14] pin */
  9188. #define SYSCFG_EXTICR4_EXTI14_PD (0x00000300U) /*!< PD[14] pin */
  9189. #define SYSCFG_EXTICR4_EXTI14_PE (0x00000400U) /*!< PE[14] pin */
  9190. /**
  9191. * @brief EXTI15 configuration
  9192. */
  9193. #define SYSCFG_EXTICR4_EXTI15_PA (0x00000000U) /*!< PA[15] pin */
  9194. #define SYSCFG_EXTICR4_EXTI15_PB (0x00001000U) /*!< PB[15] pin */
  9195. #define SYSCFG_EXTICR4_EXTI15_PC (0x00002000U) /*!< PC[15] pin */
  9196. #define SYSCFG_EXTICR4_EXTI15_PD (0x00003000U) /*!< PD[15] pin */
  9197. #define SYSCFG_EXTICR4_EXTI15_PE (0x00004000U) /*!< PE[15] pin */
  9198. /***************** Bit definition for SYSCFG_CFGR2 register ****************/
  9199. #define SYSCFG_CFGR2_LOCKUP_LOCK_Pos (0U)
  9200. #define SYSCFG_CFGR2_LOCKUP_LOCK_Msk (0x1U << SYSCFG_CFGR2_LOCKUP_LOCK_Pos) /*!< 0x00000001 */
  9201. #define SYSCFG_CFGR2_LOCKUP_LOCK SYSCFG_CFGR2_LOCKUP_LOCK_Msk /*!< Enables and locks the LOCKUP (Hardfault) output of CortexM0 with Break Input of TIMER1 */
  9202. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos (1U)
  9203. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk (0x1U << SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos) /*!< 0x00000002 */
  9204. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk /*!< Enables and locks the SRAM_PARITY error signal with Break Input of TIMER1 */
  9205. #define SYSCFG_CFGR2_SRAM_PEF_Pos (8U)
  9206. #define SYSCFG_CFGR2_SRAM_PEF_Msk (0x1U << SYSCFG_CFGR2_SRAM_PEF_Pos) /*!< 0x00000100 */
  9207. #define SYSCFG_CFGR2_SRAM_PEF SYSCFG_CFGR2_SRAM_PEF_Msk /*!< SRAM Parity error flag */
  9208. #define SYSCFG_CFGR2_SRAM_PE SYSCFG_CFGR2_SRAM_PEF /*!< SRAM Parity error flag (define maintained for legacy purpose) */
  9209. /***************** Bit definition for SYSCFG_xxx ISR Wrapper register ****************/
  9210. #define SYSCFG_ITLINE0_SR_EWDG_Pos (0U)
  9211. #define SYSCFG_ITLINE0_SR_EWDG_Msk (0x1U << SYSCFG_ITLINE0_SR_EWDG_Pos) /*!< 0x00000001 */
  9212. #define SYSCFG_ITLINE0_SR_EWDG SYSCFG_ITLINE0_SR_EWDG_Msk /*!< EWDG interrupt */
  9213. #define SYSCFG_ITLINE1_SR_VDDIO2_Pos (1U)
  9214. #define SYSCFG_ITLINE1_SR_VDDIO2_Msk (0x1U << SYSCFG_ITLINE1_SR_VDDIO2_Pos) /*!< 0x00000002 */
  9215. #define SYSCFG_ITLINE1_SR_VDDIO2 SYSCFG_ITLINE1_SR_VDDIO2_Msk /*!< VDDIO2 -> exti[16] Interrupt */
  9216. #define SYSCFG_ITLINE2_SR_RTC_ALRA_Pos (0U)
  9217. #define SYSCFG_ITLINE2_SR_RTC_ALRA_Msk (0x1U << SYSCFG_ITLINE2_SR_RTC_ALRA_Pos) /*!< 0x00000001 */
  9218. #define SYSCFG_ITLINE2_SR_RTC_ALRA SYSCFG_ITLINE2_SR_RTC_ALRA_Msk /*!< RTC Alarm -> exti[17] interrupt .... */
  9219. #define SYSCFG_ITLINE2_SR_RTC_TSTAMP_Pos (1U)
  9220. #define SYSCFG_ITLINE2_SR_RTC_TSTAMP_Msk (0x1U << SYSCFG_ITLINE2_SR_RTC_TSTAMP_Pos) /*!< 0x00000002 */
  9221. #define SYSCFG_ITLINE2_SR_RTC_TSTAMP SYSCFG_ITLINE2_SR_RTC_TSTAMP_Msk /*!< RTC Time Stamp -> exti[19] interrupt */
  9222. #define SYSCFG_ITLINE2_SR_RTC_WAKEUP_Pos (2U)
  9223. #define SYSCFG_ITLINE2_SR_RTC_WAKEUP_Msk (0x1U << SYSCFG_ITLINE2_SR_RTC_WAKEUP_Pos) /*!< 0x00000004 */
  9224. #define SYSCFG_ITLINE2_SR_RTC_WAKEUP SYSCFG_ITLINE2_SR_RTC_WAKEUP_Msk /*!< RTC WAKEUP -> exti[20] Interrupt */
  9225. #define SYSCFG_ITLINE3_SR_FLASH_ITF_Pos (0U)
  9226. #define SYSCFG_ITLINE3_SR_FLASH_ITF_Msk (0x1U << SYSCFG_ITLINE3_SR_FLASH_ITF_Pos) /*!< 0x00000001 */
  9227. #define SYSCFG_ITLINE3_SR_FLASH_ITF SYSCFG_ITLINE3_SR_FLASH_ITF_Msk /*!< Flash ITF Interrupt */
  9228. #define SYSCFG_ITLINE4_SR_CRS_Pos (0U)
  9229. #define SYSCFG_ITLINE4_SR_CRS_Msk (0x1U << SYSCFG_ITLINE4_SR_CRS_Pos) /*!< 0x00000001 */
  9230. #define SYSCFG_ITLINE4_SR_CRS SYSCFG_ITLINE4_SR_CRS_Msk /*!< CRS interrupt */
  9231. #define SYSCFG_ITLINE4_SR_CLK_CTRL_Pos (1U)
  9232. #define SYSCFG_ITLINE4_SR_CLK_CTRL_Msk (0x1U << SYSCFG_ITLINE4_SR_CLK_CTRL_Pos) /*!< 0x00000002 */
  9233. #define SYSCFG_ITLINE4_SR_CLK_CTRL SYSCFG_ITLINE4_SR_CLK_CTRL_Msk /*!< CLK CTRL interrupt */
  9234. #define SYSCFG_ITLINE5_SR_EXTI0_Pos (0U)
  9235. #define SYSCFG_ITLINE5_SR_EXTI0_Msk (0x1U << SYSCFG_ITLINE5_SR_EXTI0_Pos) /*!< 0x00000001 */
  9236. #define SYSCFG_ITLINE5_SR_EXTI0 SYSCFG_ITLINE5_SR_EXTI0_Msk /*!< External Interrupt 0 */
  9237. #define SYSCFG_ITLINE5_SR_EXTI1_Pos (1U)
  9238. #define SYSCFG_ITLINE5_SR_EXTI1_Msk (0x1U << SYSCFG_ITLINE5_SR_EXTI1_Pos) /*!< 0x00000002 */
  9239. #define SYSCFG_ITLINE5_SR_EXTI1 SYSCFG_ITLINE5_SR_EXTI1_Msk /*!< External Interrupt 1 */
  9240. #define SYSCFG_ITLINE6_SR_EXTI2_Pos (0U)
  9241. #define SYSCFG_ITLINE6_SR_EXTI2_Msk (0x1U << SYSCFG_ITLINE6_SR_EXTI2_Pos) /*!< 0x00000001 */
  9242. #define SYSCFG_ITLINE6_SR_EXTI2 SYSCFG_ITLINE6_SR_EXTI2_Msk /*!< External Interrupt 2 */
  9243. #define SYSCFG_ITLINE6_SR_EXTI3_Pos (1U)
  9244. #define SYSCFG_ITLINE6_SR_EXTI3_Msk (0x1U << SYSCFG_ITLINE6_SR_EXTI3_Pos) /*!< 0x00000002 */
  9245. #define SYSCFG_ITLINE6_SR_EXTI3 SYSCFG_ITLINE6_SR_EXTI3_Msk /*!< External Interrupt 3 */
  9246. #define SYSCFG_ITLINE7_SR_EXTI4_Pos (0U)
  9247. #define SYSCFG_ITLINE7_SR_EXTI4_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI4_Pos) /*!< 0x00000001 */
  9248. #define SYSCFG_ITLINE7_SR_EXTI4 SYSCFG_ITLINE7_SR_EXTI4_Msk /*!< External Interrupt 15 to 4 */
  9249. #define SYSCFG_ITLINE7_SR_EXTI5_Pos (1U)
  9250. #define SYSCFG_ITLINE7_SR_EXTI5_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI5_Pos) /*!< 0x00000002 */
  9251. #define SYSCFG_ITLINE7_SR_EXTI5 SYSCFG_ITLINE7_SR_EXTI5_Msk /*!< External Interrupt 15 to 4 */
  9252. #define SYSCFG_ITLINE7_SR_EXTI6_Pos (2U)
  9253. #define SYSCFG_ITLINE7_SR_EXTI6_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI6_Pos) /*!< 0x00000004 */
  9254. #define SYSCFG_ITLINE7_SR_EXTI6 SYSCFG_ITLINE7_SR_EXTI6_Msk /*!< External Interrupt 15 to 4 */
  9255. #define SYSCFG_ITLINE7_SR_EXTI7_Pos (3U)
  9256. #define SYSCFG_ITLINE7_SR_EXTI7_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI7_Pos) /*!< 0x00000008 */
  9257. #define SYSCFG_ITLINE7_SR_EXTI7 SYSCFG_ITLINE7_SR_EXTI7_Msk /*!< External Interrupt 15 to 4 */
  9258. #define SYSCFG_ITLINE7_SR_EXTI8_Pos (4U)
  9259. #define SYSCFG_ITLINE7_SR_EXTI8_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI8_Pos) /*!< 0x00000010 */
  9260. #define SYSCFG_ITLINE7_SR_EXTI8 SYSCFG_ITLINE7_SR_EXTI8_Msk /*!< External Interrupt 15 to 4 */
  9261. #define SYSCFG_ITLINE7_SR_EXTI9_Pos (5U)
  9262. #define SYSCFG_ITLINE7_SR_EXTI9_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI9_Pos) /*!< 0x00000020 */
  9263. #define SYSCFG_ITLINE7_SR_EXTI9 SYSCFG_ITLINE7_SR_EXTI9_Msk /*!< External Interrupt 15 to 4 */
  9264. #define SYSCFG_ITLINE7_SR_EXTI10_Pos (6U)
  9265. #define SYSCFG_ITLINE7_SR_EXTI10_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI10_Pos) /*!< 0x00000040 */
  9266. #define SYSCFG_ITLINE7_SR_EXTI10 SYSCFG_ITLINE7_SR_EXTI10_Msk /*!< External Interrupt 15 to 4 */
  9267. #define SYSCFG_ITLINE7_SR_EXTI11_Pos (7U)
  9268. #define SYSCFG_ITLINE7_SR_EXTI11_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI11_Pos) /*!< 0x00000080 */
  9269. #define SYSCFG_ITLINE7_SR_EXTI11 SYSCFG_ITLINE7_SR_EXTI11_Msk /*!< External Interrupt 15 to 4 */
  9270. #define SYSCFG_ITLINE7_SR_EXTI12_Pos (8U)
  9271. #define SYSCFG_ITLINE7_SR_EXTI12_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI12_Pos) /*!< 0x00000100 */
  9272. #define SYSCFG_ITLINE7_SR_EXTI12 SYSCFG_ITLINE7_SR_EXTI12_Msk /*!< External Interrupt 15 to 4 */
  9273. #define SYSCFG_ITLINE7_SR_EXTI13_Pos (9U)
  9274. #define SYSCFG_ITLINE7_SR_EXTI13_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI13_Pos) /*!< 0x00000200 */
  9275. #define SYSCFG_ITLINE7_SR_EXTI13 SYSCFG_ITLINE7_SR_EXTI13_Msk /*!< External Interrupt 15 to 4 */
  9276. #define SYSCFG_ITLINE7_SR_EXTI14_Pos (10U)
  9277. #define SYSCFG_ITLINE7_SR_EXTI14_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI14_Pos) /*!< 0x00000400 */
  9278. #define SYSCFG_ITLINE7_SR_EXTI14 SYSCFG_ITLINE7_SR_EXTI14_Msk /*!< External Interrupt 15 to 4 */
  9279. #define SYSCFG_ITLINE7_SR_EXTI15_Pos (11U)
  9280. #define SYSCFG_ITLINE7_SR_EXTI15_Msk (0x1U << SYSCFG_ITLINE7_SR_EXTI15_Pos) /*!< 0x00000800 */
  9281. #define SYSCFG_ITLINE7_SR_EXTI15 SYSCFG_ITLINE7_SR_EXTI15_Msk /*!< External Interrupt 15 to 4 */
  9282. #define SYSCFG_ITLINE8_SR_TSC_EOA_Pos (0U)
  9283. #define SYSCFG_ITLINE8_SR_TSC_EOA_Msk (0x1U << SYSCFG_ITLINE8_SR_TSC_EOA_Pos) /*!< 0x00000001 */
  9284. #define SYSCFG_ITLINE8_SR_TSC_EOA SYSCFG_ITLINE8_SR_TSC_EOA_Msk /*!< Touch control EOA Interrupt */
  9285. #define SYSCFG_ITLINE8_SR_TSC_MCE_Pos (1U)
  9286. #define SYSCFG_ITLINE8_SR_TSC_MCE_Msk (0x1U << SYSCFG_ITLINE8_SR_TSC_MCE_Pos) /*!< 0x00000002 */
  9287. #define SYSCFG_ITLINE8_SR_TSC_MCE SYSCFG_ITLINE8_SR_TSC_MCE_Msk /*!< Touch control MCE Interrupt */
  9288. #define SYSCFG_ITLINE9_SR_DMA1_CH1_Pos (0U)
  9289. #define SYSCFG_ITLINE9_SR_DMA1_CH1_Msk (0x1U << SYSCFG_ITLINE9_SR_DMA1_CH1_Pos) /*!< 0x00000001 */
  9290. #define SYSCFG_ITLINE9_SR_DMA1_CH1 SYSCFG_ITLINE9_SR_DMA1_CH1_Msk /*!< DMA1 Channel 1 Interrupt */
  9291. #define SYSCFG_ITLINE10_SR_DMA1_CH2_Pos (0U)
  9292. #define SYSCFG_ITLINE10_SR_DMA1_CH2_Msk (0x1U << SYSCFG_ITLINE10_SR_DMA1_CH2_Pos) /*!< 0x00000001 */
  9293. #define SYSCFG_ITLINE10_SR_DMA1_CH2 SYSCFG_ITLINE10_SR_DMA1_CH2_Msk /*!< DMA1 Channel 2 Interrupt */
  9294. #define SYSCFG_ITLINE10_SR_DMA1_CH3_Pos (1U)
  9295. #define SYSCFG_ITLINE10_SR_DMA1_CH3_Msk (0x1U << SYSCFG_ITLINE10_SR_DMA1_CH3_Pos) /*!< 0x00000002 */
  9296. #define SYSCFG_ITLINE10_SR_DMA1_CH3 SYSCFG_ITLINE10_SR_DMA1_CH3_Msk /*!< DMA2 Channel 3 Interrupt */
  9297. #define SYSCFG_ITLINE10_SR_DMA2_CH1_Pos (2U)
  9298. #define SYSCFG_ITLINE10_SR_DMA2_CH1_Msk (0x1U << SYSCFG_ITLINE10_SR_DMA2_CH1_Pos) /*!< 0x00000004 */
  9299. #define SYSCFG_ITLINE10_SR_DMA2_CH1 SYSCFG_ITLINE10_SR_DMA2_CH1_Msk /*!< DMA2 Channel 1 Interrupt */
  9300. #define SYSCFG_ITLINE10_SR_DMA2_CH2_Pos (3U)
  9301. #define SYSCFG_ITLINE10_SR_DMA2_CH2_Msk (0x1U << SYSCFG_ITLINE10_SR_DMA2_CH2_Pos) /*!< 0x00000008 */
  9302. #define SYSCFG_ITLINE10_SR_DMA2_CH2 SYSCFG_ITLINE10_SR_DMA2_CH2_Msk /*!< DMA2 Channel 2 Interrupt */
  9303. #define SYSCFG_ITLINE11_SR_DMA1_CH4_Pos (0U)
  9304. #define SYSCFG_ITLINE11_SR_DMA1_CH4_Msk (0x1U << SYSCFG_ITLINE11_SR_DMA1_CH4_Pos) /*!< 0x00000001 */
  9305. #define SYSCFG_ITLINE11_SR_DMA1_CH4 SYSCFG_ITLINE11_SR_DMA1_CH4_Msk /*!< DMA1 Channel 4 Interrupt */
  9306. #define SYSCFG_ITLINE11_SR_DMA1_CH5_Pos (1U)
  9307. #define SYSCFG_ITLINE11_SR_DMA1_CH5_Msk (0x1U << SYSCFG_ITLINE11_SR_DMA1_CH5_Pos) /*!< 0x00000002 */
  9308. #define SYSCFG_ITLINE11_SR_DMA1_CH5 SYSCFG_ITLINE11_SR_DMA1_CH5_Msk /*!< DMA1 Channel 5 Interrupt */
  9309. #define SYSCFG_ITLINE11_SR_DMA1_CH6_Pos (2U)
  9310. #define SYSCFG_ITLINE11_SR_DMA1_CH6_Msk (0x1U << SYSCFG_ITLINE11_SR_DMA1_CH6_Pos) /*!< 0x00000004 */
  9311. #define SYSCFG_ITLINE11_SR_DMA1_CH6 SYSCFG_ITLINE11_SR_DMA1_CH6_Msk /*!< DMA1 Channel 6 Interrupt */
  9312. #define SYSCFG_ITLINE11_SR_DMA1_CH7_Pos (3U)
  9313. #define SYSCFG_ITLINE11_SR_DMA1_CH7_Msk (0x1U << SYSCFG_ITLINE11_SR_DMA1_CH7_Pos) /*!< 0x00000008 */
  9314. #define SYSCFG_ITLINE11_SR_DMA1_CH7 SYSCFG_ITLINE11_SR_DMA1_CH7_Msk /*!< DMA1 Channel 7 Interrupt */
  9315. #define SYSCFG_ITLINE11_SR_DMA2_CH3_Pos (4U)
  9316. #define SYSCFG_ITLINE11_SR_DMA2_CH3_Msk (0x1U << SYSCFG_ITLINE11_SR_DMA2_CH3_Pos) /*!< 0x00000010 */
  9317. #define SYSCFG_ITLINE11_SR_DMA2_CH3 SYSCFG_ITLINE11_SR_DMA2_CH3_Msk /*!< DMA2 Channel 3 Interrupt */
  9318. #define SYSCFG_ITLINE11_SR_DMA2_CH4_Pos (5U)
  9319. #define SYSCFG_ITLINE11_SR_DMA2_CH4_Msk (0x1U << SYSCFG_ITLINE11_SR_DMA2_CH4_Pos) /*!< 0x00000020 */
  9320. #define SYSCFG_ITLINE11_SR_DMA2_CH4 SYSCFG_ITLINE11_SR_DMA2_CH4_Msk /*!< DMA2 Channel 4 Interrupt */
  9321. #define SYSCFG_ITLINE11_SR_DMA2_CH5_Pos (6U)
  9322. #define SYSCFG_ITLINE11_SR_DMA2_CH5_Msk (0x1U << SYSCFG_ITLINE11_SR_DMA2_CH5_Pos) /*!< 0x00000040 */
  9323. #define SYSCFG_ITLINE11_SR_DMA2_CH5 SYSCFG_ITLINE11_SR_DMA2_CH5_Msk /*!< DMA2 Channel 5 Interrupt */
  9324. #define SYSCFG_ITLINE12_SR_ADC_Pos (0U)
  9325. #define SYSCFG_ITLINE12_SR_ADC_Msk (0x1U << SYSCFG_ITLINE12_SR_ADC_Pos) /*!< 0x00000001 */
  9326. #define SYSCFG_ITLINE12_SR_ADC SYSCFG_ITLINE12_SR_ADC_Msk /*!< ADC Interrupt */
  9327. #define SYSCFG_ITLINE12_SR_COMP1_Pos (1U)
  9328. #define SYSCFG_ITLINE12_SR_COMP1_Msk (0x1U << SYSCFG_ITLINE12_SR_COMP1_Pos) /*!< 0x00000002 */
  9329. #define SYSCFG_ITLINE12_SR_COMP1 SYSCFG_ITLINE12_SR_COMP1_Msk /*!< COMP1 Interrupt -> exti[21] */
  9330. #define SYSCFG_ITLINE12_SR_COMP2_Pos (2U)
  9331. #define SYSCFG_ITLINE12_SR_COMP2_Msk (0x1U << SYSCFG_ITLINE12_SR_COMP2_Pos) /*!< 0x00000004 */
  9332. #define SYSCFG_ITLINE12_SR_COMP2 SYSCFG_ITLINE12_SR_COMP2_Msk /*!< COMP2 Interrupt -> exti[22] */
  9333. #define SYSCFG_ITLINE13_SR_TIM1_BRK_Pos (0U)
  9334. #define SYSCFG_ITLINE13_SR_TIM1_BRK_Msk (0x1U << SYSCFG_ITLINE13_SR_TIM1_BRK_Pos) /*!< 0x00000001 */
  9335. #define SYSCFG_ITLINE13_SR_TIM1_BRK SYSCFG_ITLINE13_SR_TIM1_BRK_Msk /*!< TIM1 BRK Interrupt */
  9336. #define SYSCFG_ITLINE13_SR_TIM1_UPD_Pos (1U)
  9337. #define SYSCFG_ITLINE13_SR_TIM1_UPD_Msk (0x1U << SYSCFG_ITLINE13_SR_TIM1_UPD_Pos) /*!< 0x00000002 */
  9338. #define SYSCFG_ITLINE13_SR_TIM1_UPD SYSCFG_ITLINE13_SR_TIM1_UPD_Msk /*!< TIM1 UPD Interrupt */
  9339. #define SYSCFG_ITLINE13_SR_TIM1_TRG_Pos (2U)
  9340. #define SYSCFG_ITLINE13_SR_TIM1_TRG_Msk (0x1U << SYSCFG_ITLINE13_SR_TIM1_TRG_Pos) /*!< 0x00000004 */
  9341. #define SYSCFG_ITLINE13_SR_TIM1_TRG SYSCFG_ITLINE13_SR_TIM1_TRG_Msk /*!< TIM1 TRG Interrupt */
  9342. #define SYSCFG_ITLINE13_SR_TIM1_CCU_Pos (3U)
  9343. #define SYSCFG_ITLINE13_SR_TIM1_CCU_Msk (0x1U << SYSCFG_ITLINE13_SR_TIM1_CCU_Pos) /*!< 0x00000008 */
  9344. #define SYSCFG_ITLINE13_SR_TIM1_CCU SYSCFG_ITLINE13_SR_TIM1_CCU_Msk /*!< TIM1 CCU Interrupt */
  9345. #define SYSCFG_ITLINE14_SR_TIM1_CC_Pos (0U)
  9346. #define SYSCFG_ITLINE14_SR_TIM1_CC_Msk (0x1U << SYSCFG_ITLINE14_SR_TIM1_CC_Pos) /*!< 0x00000001 */
  9347. #define SYSCFG_ITLINE14_SR_TIM1_CC SYSCFG_ITLINE14_SR_TIM1_CC_Msk /*!< TIM1 CC Interrupt */
  9348. #define SYSCFG_ITLINE15_SR_TIM2_GLB_Pos (0U)
  9349. #define SYSCFG_ITLINE15_SR_TIM2_GLB_Msk (0x1U << SYSCFG_ITLINE15_SR_TIM2_GLB_Pos) /*!< 0x00000001 */
  9350. #define SYSCFG_ITLINE15_SR_TIM2_GLB SYSCFG_ITLINE15_SR_TIM2_GLB_Msk /*!< TIM2 GLB Interrupt */
  9351. #define SYSCFG_ITLINE16_SR_TIM3_GLB_Pos (0U)
  9352. #define SYSCFG_ITLINE16_SR_TIM3_GLB_Msk (0x1U << SYSCFG_ITLINE16_SR_TIM3_GLB_Pos) /*!< 0x00000001 */
  9353. #define SYSCFG_ITLINE16_SR_TIM3_GLB SYSCFG_ITLINE16_SR_TIM3_GLB_Msk /*!< TIM3 GLB Interrupt */
  9354. #define SYSCFG_ITLINE17_SR_DAC_Pos (0U)
  9355. #define SYSCFG_ITLINE17_SR_DAC_Msk (0x1U << SYSCFG_ITLINE17_SR_DAC_Pos) /*!< 0x00000001 */
  9356. #define SYSCFG_ITLINE17_SR_DAC SYSCFG_ITLINE17_SR_DAC_Msk /*!< DAC Interrupt */
  9357. #define SYSCFG_ITLINE17_SR_TIM6_GLB_Pos (1U)
  9358. #define SYSCFG_ITLINE17_SR_TIM6_GLB_Msk (0x1U << SYSCFG_ITLINE17_SR_TIM6_GLB_Pos) /*!< 0x00000002 */
  9359. #define SYSCFG_ITLINE17_SR_TIM6_GLB SYSCFG_ITLINE17_SR_TIM6_GLB_Msk /*!< TIM6 GLB Interrupt */
  9360. #define SYSCFG_ITLINE18_SR_TIM7_GLB_Pos (0U)
  9361. #define SYSCFG_ITLINE18_SR_TIM7_GLB_Msk (0x1U << SYSCFG_ITLINE18_SR_TIM7_GLB_Pos) /*!< 0x00000001 */
  9362. #define SYSCFG_ITLINE18_SR_TIM7_GLB SYSCFG_ITLINE18_SR_TIM7_GLB_Msk /*!< TIM7 GLB Interrupt */
  9363. #define SYSCFG_ITLINE19_SR_TIM14_GLB_Pos (0U)
  9364. #define SYSCFG_ITLINE19_SR_TIM14_GLB_Msk (0x1U << SYSCFG_ITLINE19_SR_TIM14_GLB_Pos) /*!< 0x00000001 */
  9365. #define SYSCFG_ITLINE19_SR_TIM14_GLB SYSCFG_ITLINE19_SR_TIM14_GLB_Msk /*!< TIM14 GLB Interrupt */
  9366. #define SYSCFG_ITLINE20_SR_TIM15_GLB_Pos (0U)
  9367. #define SYSCFG_ITLINE20_SR_TIM15_GLB_Msk (0x1U << SYSCFG_ITLINE20_SR_TIM15_GLB_Pos) /*!< 0x00000001 */
  9368. #define SYSCFG_ITLINE20_SR_TIM15_GLB SYSCFG_ITLINE20_SR_TIM15_GLB_Msk /*!< TIM15 GLB Interrupt */
  9369. #define SYSCFG_ITLINE21_SR_TIM16_GLB_Pos (0U)
  9370. #define SYSCFG_ITLINE21_SR_TIM16_GLB_Msk (0x1U << SYSCFG_ITLINE21_SR_TIM16_GLB_Pos) /*!< 0x00000001 */
  9371. #define SYSCFG_ITLINE21_SR_TIM16_GLB SYSCFG_ITLINE21_SR_TIM16_GLB_Msk /*!< TIM16 GLB Interrupt */
  9372. #define SYSCFG_ITLINE22_SR_TIM17_GLB_Pos (0U)
  9373. #define SYSCFG_ITLINE22_SR_TIM17_GLB_Msk (0x1U << SYSCFG_ITLINE22_SR_TIM17_GLB_Pos) /*!< 0x00000001 */
  9374. #define SYSCFG_ITLINE22_SR_TIM17_GLB SYSCFG_ITLINE22_SR_TIM17_GLB_Msk /*!< TIM17 GLB Interrupt */
  9375. #define SYSCFG_ITLINE23_SR_I2C1_GLB_Pos (0U)
  9376. #define SYSCFG_ITLINE23_SR_I2C1_GLB_Msk (0x1U << SYSCFG_ITLINE23_SR_I2C1_GLB_Pos) /*!< 0x00000001 */
  9377. #define SYSCFG_ITLINE23_SR_I2C1_GLB SYSCFG_ITLINE23_SR_I2C1_GLB_Msk /*!< I2C1 GLB Interrupt -> exti[23] */
  9378. #define SYSCFG_ITLINE24_SR_I2C2_GLB_Pos (0U)
  9379. #define SYSCFG_ITLINE24_SR_I2C2_GLB_Msk (0x1U << SYSCFG_ITLINE24_SR_I2C2_GLB_Pos) /*!< 0x00000001 */
  9380. #define SYSCFG_ITLINE24_SR_I2C2_GLB SYSCFG_ITLINE24_SR_I2C2_GLB_Msk /*!< I2C2 GLB Interrupt */
  9381. #define SYSCFG_ITLINE25_SR_SPI1_Pos (0U)
  9382. #define SYSCFG_ITLINE25_SR_SPI1_Msk (0x1U << SYSCFG_ITLINE25_SR_SPI1_Pos) /*!< 0x00000001 */
  9383. #define SYSCFG_ITLINE25_SR_SPI1 SYSCFG_ITLINE25_SR_SPI1_Msk /*!< SPI1 Interrupt */
  9384. #define SYSCFG_ITLINE26_SR_SPI2_Pos (0U)
  9385. #define SYSCFG_ITLINE26_SR_SPI2_Msk (0x1U << SYSCFG_ITLINE26_SR_SPI2_Pos) /*!< 0x00000001 */
  9386. #define SYSCFG_ITLINE26_SR_SPI2 SYSCFG_ITLINE26_SR_SPI2_Msk /*!< SPI2 Interrupt */
  9387. #define SYSCFG_ITLINE27_SR_USART1_GLB_Pos (0U)
  9388. #define SYSCFG_ITLINE27_SR_USART1_GLB_Msk (0x1U << SYSCFG_ITLINE27_SR_USART1_GLB_Pos) /*!< 0x00000001 */
  9389. #define SYSCFG_ITLINE27_SR_USART1_GLB SYSCFG_ITLINE27_SR_USART1_GLB_Msk /*!< USART1 GLB Interrupt -> exti[25] */
  9390. #define SYSCFG_ITLINE28_SR_USART2_GLB_Pos (0U)
  9391. #define SYSCFG_ITLINE28_SR_USART2_GLB_Msk (0x1U << SYSCFG_ITLINE28_SR_USART2_GLB_Pos) /*!< 0x00000001 */
  9392. #define SYSCFG_ITLINE28_SR_USART2_GLB SYSCFG_ITLINE28_SR_USART2_GLB_Msk /*!< USART2 GLB Interrupt -> exti[26] */
  9393. #define SYSCFG_ITLINE29_SR_USART3_GLB_Pos (0U)
  9394. #define SYSCFG_ITLINE29_SR_USART3_GLB_Msk (0x1U << SYSCFG_ITLINE29_SR_USART3_GLB_Pos) /*!< 0x00000001 */
  9395. #define SYSCFG_ITLINE29_SR_USART3_GLB SYSCFG_ITLINE29_SR_USART3_GLB_Msk /*!< USART3 GLB Interrupt -> exti[28] */
  9396. #define SYSCFG_ITLINE29_SR_USART4_GLB_Pos (1U)
  9397. #define SYSCFG_ITLINE29_SR_USART4_GLB_Msk (0x1U << SYSCFG_ITLINE29_SR_USART4_GLB_Pos) /*!< 0x00000002 */
  9398. #define SYSCFG_ITLINE29_SR_USART4_GLB SYSCFG_ITLINE29_SR_USART4_GLB_Msk /*!< USART4 GLB Interrupt */
  9399. #define SYSCFG_ITLINE29_SR_USART5_GLB_Pos (2U)
  9400. #define SYSCFG_ITLINE29_SR_USART5_GLB_Msk (0x1U << SYSCFG_ITLINE29_SR_USART5_GLB_Pos) /*!< 0x00000004 */
  9401. #define SYSCFG_ITLINE29_SR_USART5_GLB SYSCFG_ITLINE29_SR_USART5_GLB_Msk /*!< USART5 GLB Interrupt */
  9402. #define SYSCFG_ITLINE29_SR_USART6_GLB_Pos (3U)
  9403. #define SYSCFG_ITLINE29_SR_USART6_GLB_Msk (0x1U << SYSCFG_ITLINE29_SR_USART6_GLB_Pos) /*!< 0x00000008 */
  9404. #define SYSCFG_ITLINE29_SR_USART6_GLB SYSCFG_ITLINE29_SR_USART6_GLB_Msk /*!< USART6 GLB Interrupt */
  9405. #define SYSCFG_ITLINE29_SR_USART7_GLB_Pos (4U)
  9406. #define SYSCFG_ITLINE29_SR_USART7_GLB_Msk (0x1U << SYSCFG_ITLINE29_SR_USART7_GLB_Pos) /*!< 0x00000010 */
  9407. #define SYSCFG_ITLINE29_SR_USART7_GLB SYSCFG_ITLINE29_SR_USART7_GLB_Msk /*!< USART7 GLB Interrupt */
  9408. #define SYSCFG_ITLINE29_SR_USART8_GLB_Pos (5U)
  9409. #define SYSCFG_ITLINE29_SR_USART8_GLB_Msk (0x1U << SYSCFG_ITLINE29_SR_USART8_GLB_Pos) /*!< 0x00000020 */
  9410. #define SYSCFG_ITLINE29_SR_USART8_GLB SYSCFG_ITLINE29_SR_USART8_GLB_Msk /*!< USART8 GLB Interrupt */
  9411. #define SYSCFG_ITLINE30_SR_CAN_Pos (0U)
  9412. #define SYSCFG_ITLINE30_SR_CAN_Msk (0x1U << SYSCFG_ITLINE30_SR_CAN_Pos) /*!< 0x00000001 */
  9413. #define SYSCFG_ITLINE30_SR_CAN SYSCFG_ITLINE30_SR_CAN_Msk /*!< CAN Interrupt */
  9414. #define SYSCFG_ITLINE30_SR_CEC_Pos (1U)
  9415. #define SYSCFG_ITLINE30_SR_CEC_Msk (0x1U << SYSCFG_ITLINE30_SR_CEC_Pos) /*!< 0x00000002 */
  9416. #define SYSCFG_ITLINE30_SR_CEC SYSCFG_ITLINE30_SR_CEC_Msk /*!< CEC Interrupt */
  9417. /*****************************************************************************/
  9418. /* */
  9419. /* Timers (TIM) */
  9420. /* */
  9421. /*****************************************************************************/
  9422. /******************* Bit definition for TIM_CR1 register *******************/
  9423. #define TIM_CR1_CEN_Pos (0U)
  9424. #define TIM_CR1_CEN_Msk (0x1U << TIM_CR1_CEN_Pos) /*!< 0x00000001 */
  9425. #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */
  9426. #define TIM_CR1_UDIS_Pos (1U)
  9427. #define TIM_CR1_UDIS_Msk (0x1U << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */
  9428. #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */
  9429. #define TIM_CR1_URS_Pos (2U)
  9430. #define TIM_CR1_URS_Msk (0x1U << TIM_CR1_URS_Pos) /*!< 0x00000004 */
  9431. #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */
  9432. #define TIM_CR1_OPM_Pos (3U)
  9433. #define TIM_CR1_OPM_Msk (0x1U << TIM_CR1_OPM_Pos) /*!< 0x00000008 */
  9434. #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */
  9435. #define TIM_CR1_DIR_Pos (4U)
  9436. #define TIM_CR1_DIR_Msk (0x1U << TIM_CR1_DIR_Pos) /*!< 0x00000010 */
  9437. #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */
  9438. #define TIM_CR1_CMS_Pos (5U)
  9439. #define TIM_CR1_CMS_Msk (0x3U << TIM_CR1_CMS_Pos) /*!< 0x00000060 */
  9440. #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */
  9441. #define TIM_CR1_CMS_0 (0x1U << TIM_CR1_CMS_Pos) /*!< 0x00000020 */
  9442. #define TIM_CR1_CMS_1 (0x2U << TIM_CR1_CMS_Pos) /*!< 0x00000040 */
  9443. #define TIM_CR1_ARPE_Pos (7U)
  9444. #define TIM_CR1_ARPE_Msk (0x1U << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */
  9445. #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */
  9446. #define TIM_CR1_CKD_Pos (8U)
  9447. #define TIM_CR1_CKD_Msk (0x3U << TIM_CR1_CKD_Pos) /*!< 0x00000300 */
  9448. #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */
  9449. #define TIM_CR1_CKD_0 (0x1U << TIM_CR1_CKD_Pos) /*!< 0x00000100 */
  9450. #define TIM_CR1_CKD_1 (0x2U << TIM_CR1_CKD_Pos) /*!< 0x00000200 */
  9451. /******************* Bit definition for TIM_CR2 register *******************/
  9452. #define TIM_CR2_CCPC_Pos (0U)
  9453. #define TIM_CR2_CCPC_Msk (0x1U << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  9454. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  9455. #define TIM_CR2_CCUS_Pos (2U)
  9456. #define TIM_CR2_CCUS_Msk (0x1U << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  9457. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  9458. #define TIM_CR2_CCDS_Pos (3U)
  9459. #define TIM_CR2_CCDS_Msk (0x1U << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  9460. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  9461. #define TIM_CR2_MMS_Pos (4U)
  9462. #define TIM_CR2_MMS_Msk (0x7U << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  9463. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  9464. #define TIM_CR2_MMS_0 (0x1U << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  9465. #define TIM_CR2_MMS_1 (0x2U << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  9466. #define TIM_CR2_MMS_2 (0x4U << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  9467. #define TIM_CR2_TI1S_Pos (7U)
  9468. #define TIM_CR2_TI1S_Msk (0x1U << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  9469. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  9470. #define TIM_CR2_OIS1_Pos (8U)
  9471. #define TIM_CR2_OIS1_Msk (0x1U << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  9472. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  9473. #define TIM_CR2_OIS1N_Pos (9U)
  9474. #define TIM_CR2_OIS1N_Msk (0x1U << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  9475. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  9476. #define TIM_CR2_OIS2_Pos (10U)
  9477. #define TIM_CR2_OIS2_Msk (0x1U << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  9478. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  9479. #define TIM_CR2_OIS2N_Pos (11U)
  9480. #define TIM_CR2_OIS2N_Msk (0x1U << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  9481. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  9482. #define TIM_CR2_OIS3_Pos (12U)
  9483. #define TIM_CR2_OIS3_Msk (0x1U << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  9484. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  9485. #define TIM_CR2_OIS3N_Pos (13U)
  9486. #define TIM_CR2_OIS3N_Msk (0x1U << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  9487. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  9488. #define TIM_CR2_OIS4_Pos (14U)
  9489. #define TIM_CR2_OIS4_Msk (0x1U << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  9490. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  9491. /******************* Bit definition for TIM_SMCR register ******************/
  9492. #define TIM_SMCR_SMS_Pos (0U)
  9493. #define TIM_SMCR_SMS_Msk (0x7U << TIM_SMCR_SMS_Pos) /*!< 0x00000007 */
  9494. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  9495. #define TIM_SMCR_SMS_0 (0x1U << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */
  9496. #define TIM_SMCR_SMS_1 (0x2U << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */
  9497. #define TIM_SMCR_SMS_2 (0x4U << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */
  9498. #define TIM_SMCR_OCCS_Pos (3U)
  9499. #define TIM_SMCR_OCCS_Msk (0x1U << TIM_SMCR_OCCS_Pos) /*!< 0x00000008 */
  9500. #define TIM_SMCR_OCCS TIM_SMCR_OCCS_Msk /*!< OCREF clear selection */
  9501. #define TIM_SMCR_TS_Pos (4U)
  9502. #define TIM_SMCR_TS_Msk (0x7U << TIM_SMCR_TS_Pos) /*!< 0x00000070 */
  9503. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */
  9504. #define TIM_SMCR_TS_0 (0x1U << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  9505. #define TIM_SMCR_TS_1 (0x2U << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  9506. #define TIM_SMCR_TS_2 (0x4U << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  9507. #define TIM_SMCR_MSM_Pos (7U)
  9508. #define TIM_SMCR_MSM_Msk (0x1U << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  9509. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  9510. #define TIM_SMCR_ETF_Pos (8U)
  9511. #define TIM_SMCR_ETF_Msk (0xFU << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  9512. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  9513. #define TIM_SMCR_ETF_0 (0x1U << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  9514. #define TIM_SMCR_ETF_1 (0x2U << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  9515. #define TIM_SMCR_ETF_2 (0x4U << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  9516. #define TIM_SMCR_ETF_3 (0x8U << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  9517. #define TIM_SMCR_ETPS_Pos (12U)
  9518. #define TIM_SMCR_ETPS_Msk (0x3U << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  9519. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  9520. #define TIM_SMCR_ETPS_0 (0x1U << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  9521. #define TIM_SMCR_ETPS_1 (0x2U << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  9522. #define TIM_SMCR_ECE_Pos (14U)
  9523. #define TIM_SMCR_ECE_Msk (0x1U << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  9524. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  9525. #define TIM_SMCR_ETP_Pos (15U)
  9526. #define TIM_SMCR_ETP_Msk (0x1U << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  9527. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  9528. /******************* Bit definition for TIM_DIER register ******************/
  9529. #define TIM_DIER_UIE_Pos (0U)
  9530. #define TIM_DIER_UIE_Msk (0x1U << TIM_DIER_UIE_Pos) /*!< 0x00000001 */
  9531. #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */
  9532. #define TIM_DIER_CC1IE_Pos (1U)
  9533. #define TIM_DIER_CC1IE_Msk (0x1U << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */
  9534. #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */
  9535. #define TIM_DIER_CC2IE_Pos (2U)
  9536. #define TIM_DIER_CC2IE_Msk (0x1U << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */
  9537. #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */
  9538. #define TIM_DIER_CC3IE_Pos (3U)
  9539. #define TIM_DIER_CC3IE_Msk (0x1U << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */
  9540. #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */
  9541. #define TIM_DIER_CC4IE_Pos (4U)
  9542. #define TIM_DIER_CC4IE_Msk (0x1U << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */
  9543. #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */
  9544. #define TIM_DIER_COMIE_Pos (5U)
  9545. #define TIM_DIER_COMIE_Msk (0x1U << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */
  9546. #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */
  9547. #define TIM_DIER_TIE_Pos (6U)
  9548. #define TIM_DIER_TIE_Msk (0x1U << TIM_DIER_TIE_Pos) /*!< 0x00000040 */
  9549. #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */
  9550. #define TIM_DIER_BIE_Pos (7U)
  9551. #define TIM_DIER_BIE_Msk (0x1U << TIM_DIER_BIE_Pos) /*!< 0x00000080 */
  9552. #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */
  9553. #define TIM_DIER_UDE_Pos (8U)
  9554. #define TIM_DIER_UDE_Msk (0x1U << TIM_DIER_UDE_Pos) /*!< 0x00000100 */
  9555. #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */
  9556. #define TIM_DIER_CC1DE_Pos (9U)
  9557. #define TIM_DIER_CC1DE_Msk (0x1U << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */
  9558. #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */
  9559. #define TIM_DIER_CC2DE_Pos (10U)
  9560. #define TIM_DIER_CC2DE_Msk (0x1U << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */
  9561. #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */
  9562. #define TIM_DIER_CC3DE_Pos (11U)
  9563. #define TIM_DIER_CC3DE_Msk (0x1U << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */
  9564. #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */
  9565. #define TIM_DIER_CC4DE_Pos (12U)
  9566. #define TIM_DIER_CC4DE_Msk (0x1U << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */
  9567. #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */
  9568. #define TIM_DIER_COMDE_Pos (13U)
  9569. #define TIM_DIER_COMDE_Msk (0x1U << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */
  9570. #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */
  9571. #define TIM_DIER_TDE_Pos (14U)
  9572. #define TIM_DIER_TDE_Msk (0x1U << TIM_DIER_TDE_Pos) /*!< 0x00004000 */
  9573. #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */
  9574. /******************** Bit definition for TIM_SR register *******************/
  9575. #define TIM_SR_UIF_Pos (0U)
  9576. #define TIM_SR_UIF_Msk (0x1U << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  9577. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  9578. #define TIM_SR_CC1IF_Pos (1U)
  9579. #define TIM_SR_CC1IF_Msk (0x1U << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  9580. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  9581. #define TIM_SR_CC2IF_Pos (2U)
  9582. #define TIM_SR_CC2IF_Msk (0x1U << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  9583. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  9584. #define TIM_SR_CC3IF_Pos (3U)
  9585. #define TIM_SR_CC3IF_Msk (0x1U << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  9586. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  9587. #define TIM_SR_CC4IF_Pos (4U)
  9588. #define TIM_SR_CC4IF_Msk (0x1U << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  9589. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  9590. #define TIM_SR_COMIF_Pos (5U)
  9591. #define TIM_SR_COMIF_Msk (0x1U << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  9592. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  9593. #define TIM_SR_TIF_Pos (6U)
  9594. #define TIM_SR_TIF_Msk (0x1U << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  9595. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  9596. #define TIM_SR_BIF_Pos (7U)
  9597. #define TIM_SR_BIF_Msk (0x1U << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  9598. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  9599. #define TIM_SR_CC1OF_Pos (9U)
  9600. #define TIM_SR_CC1OF_Msk (0x1U << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  9601. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  9602. #define TIM_SR_CC2OF_Pos (10U)
  9603. #define TIM_SR_CC2OF_Msk (0x1U << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  9604. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  9605. #define TIM_SR_CC3OF_Pos (11U)
  9606. #define TIM_SR_CC3OF_Msk (0x1U << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  9607. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  9608. #define TIM_SR_CC4OF_Pos (12U)
  9609. #define TIM_SR_CC4OF_Msk (0x1U << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  9610. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  9611. /******************* Bit definition for TIM_EGR register *******************/
  9612. #define TIM_EGR_UG_Pos (0U)
  9613. #define TIM_EGR_UG_Msk (0x1U << TIM_EGR_UG_Pos) /*!< 0x00000001 */
  9614. #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */
  9615. #define TIM_EGR_CC1G_Pos (1U)
  9616. #define TIM_EGR_CC1G_Msk (0x1U << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */
  9617. #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */
  9618. #define TIM_EGR_CC2G_Pos (2U)
  9619. #define TIM_EGR_CC2G_Msk (0x1U << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */
  9620. #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */
  9621. #define TIM_EGR_CC3G_Pos (3U)
  9622. #define TIM_EGR_CC3G_Msk (0x1U << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */
  9623. #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */
  9624. #define TIM_EGR_CC4G_Pos (4U)
  9625. #define TIM_EGR_CC4G_Msk (0x1U << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */
  9626. #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */
  9627. #define TIM_EGR_COMG_Pos (5U)
  9628. #define TIM_EGR_COMG_Msk (0x1U << TIM_EGR_COMG_Pos) /*!< 0x00000020 */
  9629. #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */
  9630. #define TIM_EGR_TG_Pos (6U)
  9631. #define TIM_EGR_TG_Msk (0x1U << TIM_EGR_TG_Pos) /*!< 0x00000040 */
  9632. #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */
  9633. #define TIM_EGR_BG_Pos (7U)
  9634. #define TIM_EGR_BG_Msk (0x1U << TIM_EGR_BG_Pos) /*!< 0x00000080 */
  9635. #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */
  9636. /****************** Bit definition for TIM_CCMR1 register ******************/
  9637. #define TIM_CCMR1_CC1S_Pos (0U)
  9638. #define TIM_CCMR1_CC1S_Msk (0x3U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  9639. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  9640. #define TIM_CCMR1_CC1S_0 (0x1U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  9641. #define TIM_CCMR1_CC1S_1 (0x2U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  9642. #define TIM_CCMR1_OC1FE_Pos (2U)
  9643. #define TIM_CCMR1_OC1FE_Msk (0x1U << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  9644. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  9645. #define TIM_CCMR1_OC1PE_Pos (3U)
  9646. #define TIM_CCMR1_OC1PE_Msk (0x1U << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  9647. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  9648. #define TIM_CCMR1_OC1M_Pos (4U)
  9649. #define TIM_CCMR1_OC1M_Msk (0x7U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000070 */
  9650. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  9651. #define TIM_CCMR1_OC1M_0 (0x1U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */
  9652. #define TIM_CCMR1_OC1M_1 (0x2U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */
  9653. #define TIM_CCMR1_OC1M_2 (0x4U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */
  9654. #define TIM_CCMR1_OC1CE_Pos (7U)
  9655. #define TIM_CCMR1_OC1CE_Msk (0x1U << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  9656. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */
  9657. #define TIM_CCMR1_CC2S_Pos (8U)
  9658. #define TIM_CCMR1_CC2S_Msk (0x3U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  9659. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  9660. #define TIM_CCMR1_CC2S_0 (0x1U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  9661. #define TIM_CCMR1_CC2S_1 (0x2U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  9662. #define TIM_CCMR1_OC2FE_Pos (10U)
  9663. #define TIM_CCMR1_OC2FE_Msk (0x1U << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  9664. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  9665. #define TIM_CCMR1_OC2PE_Pos (11U)
  9666. #define TIM_CCMR1_OC2PE_Msk (0x1U << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  9667. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  9668. #define TIM_CCMR1_OC2M_Pos (12U)
  9669. #define TIM_CCMR1_OC2M_Msk (0x7U << TIM_CCMR1_OC2M_Pos) /*!< 0x00007000 */
  9670. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  9671. #define TIM_CCMR1_OC2M_0 (0x1U << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */
  9672. #define TIM_CCMR1_OC2M_1 (0x2U << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */
  9673. #define TIM_CCMR1_OC2M_2 (0x4U << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */
  9674. #define TIM_CCMR1_OC2CE_Pos (15U)
  9675. #define TIM_CCMR1_OC2CE_Msk (0x1U << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  9676. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  9677. /*---------------------------------------------------------------------------*/
  9678. #define TIM_CCMR1_IC1PSC_Pos (2U)
  9679. #define TIM_CCMR1_IC1PSC_Msk (0x3U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  9680. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  9681. #define TIM_CCMR1_IC1PSC_0 (0x1U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  9682. #define TIM_CCMR1_IC1PSC_1 (0x2U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  9683. #define TIM_CCMR1_IC1F_Pos (4U)
  9684. #define TIM_CCMR1_IC1F_Msk (0xFU << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  9685. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  9686. #define TIM_CCMR1_IC1F_0 (0x1U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  9687. #define TIM_CCMR1_IC1F_1 (0x2U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  9688. #define TIM_CCMR1_IC1F_2 (0x4U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  9689. #define TIM_CCMR1_IC1F_3 (0x8U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  9690. #define TIM_CCMR1_IC2PSC_Pos (10U)
  9691. #define TIM_CCMR1_IC2PSC_Msk (0x3U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  9692. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  9693. #define TIM_CCMR1_IC2PSC_0 (0x1U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  9694. #define TIM_CCMR1_IC2PSC_1 (0x2U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  9695. #define TIM_CCMR1_IC2F_Pos (12U)
  9696. #define TIM_CCMR1_IC2F_Msk (0xFU << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  9697. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  9698. #define TIM_CCMR1_IC2F_0 (0x1U << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  9699. #define TIM_CCMR1_IC2F_1 (0x2U << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  9700. #define TIM_CCMR1_IC2F_2 (0x4U << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  9701. #define TIM_CCMR1_IC2F_3 (0x8U << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  9702. /****************** Bit definition for TIM_CCMR2 register ******************/
  9703. #define TIM_CCMR2_CC3S_Pos (0U)
  9704. #define TIM_CCMR2_CC3S_Msk (0x3U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  9705. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  9706. #define TIM_CCMR2_CC3S_0 (0x1U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  9707. #define TIM_CCMR2_CC3S_1 (0x2U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  9708. #define TIM_CCMR2_OC3FE_Pos (2U)
  9709. #define TIM_CCMR2_OC3FE_Msk (0x1U << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  9710. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  9711. #define TIM_CCMR2_OC3PE_Pos (3U)
  9712. #define TIM_CCMR2_OC3PE_Msk (0x1U << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  9713. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  9714. #define TIM_CCMR2_OC3M_Pos (4U)
  9715. #define TIM_CCMR2_OC3M_Msk (0x7U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000070 */
  9716. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  9717. #define TIM_CCMR2_OC3M_0 (0x1U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */
  9718. #define TIM_CCMR2_OC3M_1 (0x2U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */
  9719. #define TIM_CCMR2_OC3M_2 (0x4U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */
  9720. #define TIM_CCMR2_OC3CE_Pos (7U)
  9721. #define TIM_CCMR2_OC3CE_Msk (0x1U << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  9722. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  9723. #define TIM_CCMR2_CC4S_Pos (8U)
  9724. #define TIM_CCMR2_CC4S_Msk (0x3U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  9725. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  9726. #define TIM_CCMR2_CC4S_0 (0x1U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  9727. #define TIM_CCMR2_CC4S_1 (0x2U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  9728. #define TIM_CCMR2_OC4FE_Pos (10U)
  9729. #define TIM_CCMR2_OC4FE_Msk (0x1U << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  9730. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  9731. #define TIM_CCMR2_OC4PE_Pos (11U)
  9732. #define TIM_CCMR2_OC4PE_Msk (0x1U << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  9733. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  9734. #define TIM_CCMR2_OC4M_Pos (12U)
  9735. #define TIM_CCMR2_OC4M_Msk (0x7U << TIM_CCMR2_OC4M_Pos) /*!< 0x00007000 */
  9736. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  9737. #define TIM_CCMR2_OC4M_0 (0x1U << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */
  9738. #define TIM_CCMR2_OC4M_1 (0x2U << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */
  9739. #define TIM_CCMR2_OC4M_2 (0x4U << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */
  9740. #define TIM_CCMR2_OC4CE_Pos (15U)
  9741. #define TIM_CCMR2_OC4CE_Msk (0x1U << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  9742. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  9743. /*---------------------------------------------------------------------------*/
  9744. #define TIM_CCMR2_IC3PSC_Pos (2U)
  9745. #define TIM_CCMR2_IC3PSC_Msk (0x3U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */
  9746. #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  9747. #define TIM_CCMR2_IC3PSC_0 (0x1U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */
  9748. #define TIM_CCMR2_IC3PSC_1 (0x2U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */
  9749. #define TIM_CCMR2_IC3F_Pos (4U)
  9750. #define TIM_CCMR2_IC3F_Msk (0xFU << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */
  9751. #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  9752. #define TIM_CCMR2_IC3F_0 (0x1U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */
  9753. #define TIM_CCMR2_IC3F_1 (0x2U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */
  9754. #define TIM_CCMR2_IC3F_2 (0x4U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */
  9755. #define TIM_CCMR2_IC3F_3 (0x8U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */
  9756. #define TIM_CCMR2_IC4PSC_Pos (10U)
  9757. #define TIM_CCMR2_IC4PSC_Msk (0x3U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */
  9758. #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  9759. #define TIM_CCMR2_IC4PSC_0 (0x1U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */
  9760. #define TIM_CCMR2_IC4PSC_1 (0x2U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */
  9761. #define TIM_CCMR2_IC4F_Pos (12U)
  9762. #define TIM_CCMR2_IC4F_Msk (0xFU << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */
  9763. #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  9764. #define TIM_CCMR2_IC4F_0 (0x1U << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */
  9765. #define TIM_CCMR2_IC4F_1 (0x2U << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */
  9766. #define TIM_CCMR2_IC4F_2 (0x4U << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */
  9767. #define TIM_CCMR2_IC4F_3 (0x8U << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */
  9768. /******************* Bit definition for TIM_CCER register ******************/
  9769. #define TIM_CCER_CC1E_Pos (0U)
  9770. #define TIM_CCER_CC1E_Msk (0x1U << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  9771. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  9772. #define TIM_CCER_CC1P_Pos (1U)
  9773. #define TIM_CCER_CC1P_Msk (0x1U << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  9774. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  9775. #define TIM_CCER_CC1NE_Pos (2U)
  9776. #define TIM_CCER_CC1NE_Msk (0x1U << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  9777. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  9778. #define TIM_CCER_CC1NP_Pos (3U)
  9779. #define TIM_CCER_CC1NP_Msk (0x1U << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  9780. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  9781. #define TIM_CCER_CC2E_Pos (4U)
  9782. #define TIM_CCER_CC2E_Msk (0x1U << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  9783. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  9784. #define TIM_CCER_CC2P_Pos (5U)
  9785. #define TIM_CCER_CC2P_Msk (0x1U << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  9786. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  9787. #define TIM_CCER_CC2NE_Pos (6U)
  9788. #define TIM_CCER_CC2NE_Msk (0x1U << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  9789. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  9790. #define TIM_CCER_CC2NP_Pos (7U)
  9791. #define TIM_CCER_CC2NP_Msk (0x1U << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  9792. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  9793. #define TIM_CCER_CC3E_Pos (8U)
  9794. #define TIM_CCER_CC3E_Msk (0x1U << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  9795. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  9796. #define TIM_CCER_CC3P_Pos (9U)
  9797. #define TIM_CCER_CC3P_Msk (0x1U << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  9798. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  9799. #define TIM_CCER_CC3NE_Pos (10U)
  9800. #define TIM_CCER_CC3NE_Msk (0x1U << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  9801. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  9802. #define TIM_CCER_CC3NP_Pos (11U)
  9803. #define TIM_CCER_CC3NP_Msk (0x1U << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  9804. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  9805. #define TIM_CCER_CC4E_Pos (12U)
  9806. #define TIM_CCER_CC4E_Msk (0x1U << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  9807. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  9808. #define TIM_CCER_CC4P_Pos (13U)
  9809. #define TIM_CCER_CC4P_Msk (0x1U << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  9810. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  9811. #define TIM_CCER_CC4NP_Pos (15U)
  9812. #define TIM_CCER_CC4NP_Msk (0x1U << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  9813. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  9814. /******************* Bit definition for TIM_CNT register *******************/
  9815. #define TIM_CNT_CNT_Pos (0U)
  9816. #define TIM_CNT_CNT_Msk (0xFFFFFFFFU << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  9817. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  9818. /******************* Bit definition for TIM_PSC register *******************/
  9819. #define TIM_PSC_PSC_Pos (0U)
  9820. #define TIM_PSC_PSC_Msk (0xFFFFU << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */
  9821. #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */
  9822. /******************* Bit definition for TIM_ARR register *******************/
  9823. #define TIM_ARR_ARR_Pos (0U)
  9824. #define TIM_ARR_ARR_Msk (0xFFFFFFFFU << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  9825. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */
  9826. /******************* Bit definition for TIM_RCR register *******************/
  9827. #define TIM_RCR_REP_Pos (0U)
  9828. #define TIM_RCR_REP_Msk (0xFFU << TIM_RCR_REP_Pos) /*!< 0x000000FF */
  9829. #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */
  9830. /******************* Bit definition for TIM_CCR1 register ******************/
  9831. #define TIM_CCR1_CCR1_Pos (0U)
  9832. #define TIM_CCR1_CCR1_Msk (0xFFFFU << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */
  9833. #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */
  9834. /******************* Bit definition for TIM_CCR2 register ******************/
  9835. #define TIM_CCR2_CCR2_Pos (0U)
  9836. #define TIM_CCR2_CCR2_Msk (0xFFFFU << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */
  9837. #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */
  9838. /******************* Bit definition for TIM_CCR3 register ******************/
  9839. #define TIM_CCR3_CCR3_Pos (0U)
  9840. #define TIM_CCR3_CCR3_Msk (0xFFFFU << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */
  9841. #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */
  9842. /******************* Bit definition for TIM_CCR4 register ******************/
  9843. #define TIM_CCR4_CCR4_Pos (0U)
  9844. #define TIM_CCR4_CCR4_Msk (0xFFFFU << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */
  9845. #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */
  9846. /******************* Bit definition for TIM_BDTR register ******************/
  9847. #define TIM_BDTR_DTG_Pos (0U)
  9848. #define TIM_BDTR_DTG_Msk (0xFFU << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  9849. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  9850. #define TIM_BDTR_DTG_0 (0x01U << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  9851. #define TIM_BDTR_DTG_1 (0x02U << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  9852. #define TIM_BDTR_DTG_2 (0x04U << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  9853. #define TIM_BDTR_DTG_3 (0x08U << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  9854. #define TIM_BDTR_DTG_4 (0x10U << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  9855. #define TIM_BDTR_DTG_5 (0x20U << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  9856. #define TIM_BDTR_DTG_6 (0x40U << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  9857. #define TIM_BDTR_DTG_7 (0x80U << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  9858. #define TIM_BDTR_LOCK_Pos (8U)
  9859. #define TIM_BDTR_LOCK_Msk (0x3U << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  9860. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  9861. #define TIM_BDTR_LOCK_0 (0x1U << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  9862. #define TIM_BDTR_LOCK_1 (0x2U << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  9863. #define TIM_BDTR_OSSI_Pos (10U)
  9864. #define TIM_BDTR_OSSI_Msk (0x1U << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  9865. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  9866. #define TIM_BDTR_OSSR_Pos (11U)
  9867. #define TIM_BDTR_OSSR_Msk (0x1U << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  9868. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  9869. #define TIM_BDTR_BKE_Pos (12U)
  9870. #define TIM_BDTR_BKE_Msk (0x1U << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  9871. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable */
  9872. #define TIM_BDTR_BKP_Pos (13U)
  9873. #define TIM_BDTR_BKP_Msk (0x1U << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  9874. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity */
  9875. #define TIM_BDTR_AOE_Pos (14U)
  9876. #define TIM_BDTR_AOE_Msk (0x1U << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  9877. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  9878. #define TIM_BDTR_MOE_Pos (15U)
  9879. #define TIM_BDTR_MOE_Msk (0x1U << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  9880. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  9881. /******************* Bit definition for TIM_DCR register *******************/
  9882. #define TIM_DCR_DBA_Pos (0U)
  9883. #define TIM_DCR_DBA_Msk (0x1FU << TIM_DCR_DBA_Pos) /*!< 0x0000001F */
  9884. #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */
  9885. #define TIM_DCR_DBA_0 (0x01U << TIM_DCR_DBA_Pos) /*!< 0x00000001 */
  9886. #define TIM_DCR_DBA_1 (0x02U << TIM_DCR_DBA_Pos) /*!< 0x00000002 */
  9887. #define TIM_DCR_DBA_2 (0x04U << TIM_DCR_DBA_Pos) /*!< 0x00000004 */
  9888. #define TIM_DCR_DBA_3 (0x08U << TIM_DCR_DBA_Pos) /*!< 0x00000008 */
  9889. #define TIM_DCR_DBA_4 (0x10U << TIM_DCR_DBA_Pos) /*!< 0x00000010 */
  9890. #define TIM_DCR_DBL_Pos (8U)
  9891. #define TIM_DCR_DBL_Msk (0x1FU << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */
  9892. #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */
  9893. #define TIM_DCR_DBL_0 (0x01U << TIM_DCR_DBL_Pos) /*!< 0x00000100 */
  9894. #define TIM_DCR_DBL_1 (0x02U << TIM_DCR_DBL_Pos) /*!< 0x00000200 */
  9895. #define TIM_DCR_DBL_2 (0x04U << TIM_DCR_DBL_Pos) /*!< 0x00000400 */
  9896. #define TIM_DCR_DBL_3 (0x08U << TIM_DCR_DBL_Pos) /*!< 0x00000800 */
  9897. #define TIM_DCR_DBL_4 (0x10U << TIM_DCR_DBL_Pos) /*!< 0x00001000 */
  9898. /******************* Bit definition for TIM_DMAR register ******************/
  9899. #define TIM_DMAR_DMAB_Pos (0U)
  9900. #define TIM_DMAR_DMAB_Msk (0xFFFFU << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */
  9901. #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */
  9902. /******************* Bit definition for TIM14_OR register ********************/
  9903. #define TIM14_OR_TI1_RMP_Pos (0U)
  9904. #define TIM14_OR_TI1_RMP_Msk (0x3U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000003 */
  9905. #define TIM14_OR_TI1_RMP TIM14_OR_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM14 Input 4 remap) */
  9906. #define TIM14_OR_TI1_RMP_0 (0x1U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000001 */
  9907. #define TIM14_OR_TI1_RMP_1 (0x2U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000002 */
  9908. /******************************************************************************/
  9909. /* */
  9910. /* Touch Sensing Controller (TSC) */
  9911. /* */
  9912. /******************************************************************************/
  9913. /******************* Bit definition for TSC_CR register *********************/
  9914. #define TSC_CR_TSCE_Pos (0U)
  9915. #define TSC_CR_TSCE_Msk (0x1U << TSC_CR_TSCE_Pos) /*!< 0x00000001 */
  9916. #define TSC_CR_TSCE TSC_CR_TSCE_Msk /*!<Touch sensing controller enable */
  9917. #define TSC_CR_START_Pos (1U)
  9918. #define TSC_CR_START_Msk (0x1U << TSC_CR_START_Pos) /*!< 0x00000002 */
  9919. #define TSC_CR_START TSC_CR_START_Msk /*!<Start acquisition */
  9920. #define TSC_CR_AM_Pos (2U)
  9921. #define TSC_CR_AM_Msk (0x1U << TSC_CR_AM_Pos) /*!< 0x00000004 */
  9922. #define TSC_CR_AM TSC_CR_AM_Msk /*!<Acquisition mode */
  9923. #define TSC_CR_SYNCPOL_Pos (3U)
  9924. #define TSC_CR_SYNCPOL_Msk (0x1U << TSC_CR_SYNCPOL_Pos) /*!< 0x00000008 */
  9925. #define TSC_CR_SYNCPOL TSC_CR_SYNCPOL_Msk /*!<Synchronization pin polarity */
  9926. #define TSC_CR_IODEF_Pos (4U)
  9927. #define TSC_CR_IODEF_Msk (0x1U << TSC_CR_IODEF_Pos) /*!< 0x00000010 */
  9928. #define TSC_CR_IODEF TSC_CR_IODEF_Msk /*!<IO default mode */
  9929. #define TSC_CR_MCV_Pos (5U)
  9930. #define TSC_CR_MCV_Msk (0x7U << TSC_CR_MCV_Pos) /*!< 0x000000E0 */
  9931. #define TSC_CR_MCV TSC_CR_MCV_Msk /*!<MCV[2:0] bits (Max Count Value) */
  9932. #define TSC_CR_MCV_0 (0x1U << TSC_CR_MCV_Pos) /*!< 0x00000020 */
  9933. #define TSC_CR_MCV_1 (0x2U << TSC_CR_MCV_Pos) /*!< 0x00000040 */
  9934. #define TSC_CR_MCV_2 (0x4U << TSC_CR_MCV_Pos) /*!< 0x00000080 */
  9935. #define TSC_CR_PGPSC_Pos (12U)
  9936. #define TSC_CR_PGPSC_Msk (0x7U << TSC_CR_PGPSC_Pos) /*!< 0x00007000 */
  9937. #define TSC_CR_PGPSC TSC_CR_PGPSC_Msk /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
  9938. #define TSC_CR_PGPSC_0 (0x1U << TSC_CR_PGPSC_Pos) /*!< 0x00001000 */
  9939. #define TSC_CR_PGPSC_1 (0x2U << TSC_CR_PGPSC_Pos) /*!< 0x00002000 */
  9940. #define TSC_CR_PGPSC_2 (0x4U << TSC_CR_PGPSC_Pos) /*!< 0x00004000 */
  9941. #define TSC_CR_SSPSC_Pos (15U)
  9942. #define TSC_CR_SSPSC_Msk (0x1U << TSC_CR_SSPSC_Pos) /*!< 0x00008000 */
  9943. #define TSC_CR_SSPSC TSC_CR_SSPSC_Msk /*!<Spread Spectrum Prescaler */
  9944. #define TSC_CR_SSE_Pos (16U)
  9945. #define TSC_CR_SSE_Msk (0x1U << TSC_CR_SSE_Pos) /*!< 0x00010000 */
  9946. #define TSC_CR_SSE TSC_CR_SSE_Msk /*!<Spread Spectrum Enable */
  9947. #define TSC_CR_SSD_Pos (17U)
  9948. #define TSC_CR_SSD_Msk (0x7FU << TSC_CR_SSD_Pos) /*!< 0x00FE0000 */
  9949. #define TSC_CR_SSD TSC_CR_SSD_Msk /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
  9950. #define TSC_CR_SSD_0 (0x01U << TSC_CR_SSD_Pos) /*!< 0x00020000 */
  9951. #define TSC_CR_SSD_1 (0x02U << TSC_CR_SSD_Pos) /*!< 0x00040000 */
  9952. #define TSC_CR_SSD_2 (0x04U << TSC_CR_SSD_Pos) /*!< 0x00080000 */
  9953. #define TSC_CR_SSD_3 (0x08U << TSC_CR_SSD_Pos) /*!< 0x00100000 */
  9954. #define TSC_CR_SSD_4 (0x10U << TSC_CR_SSD_Pos) /*!< 0x00200000 */
  9955. #define TSC_CR_SSD_5 (0x20U << TSC_CR_SSD_Pos) /*!< 0x00400000 */
  9956. #define TSC_CR_SSD_6 (0x40U << TSC_CR_SSD_Pos) /*!< 0x00800000 */
  9957. #define TSC_CR_CTPL_Pos (24U)
  9958. #define TSC_CR_CTPL_Msk (0xFU << TSC_CR_CTPL_Pos) /*!< 0x0F000000 */
  9959. #define TSC_CR_CTPL TSC_CR_CTPL_Msk /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
  9960. #define TSC_CR_CTPL_0 (0x1U << TSC_CR_CTPL_Pos) /*!< 0x01000000 */
  9961. #define TSC_CR_CTPL_1 (0x2U << TSC_CR_CTPL_Pos) /*!< 0x02000000 */
  9962. #define TSC_CR_CTPL_2 (0x4U << TSC_CR_CTPL_Pos) /*!< 0x04000000 */
  9963. #define TSC_CR_CTPL_3 (0x8U << TSC_CR_CTPL_Pos) /*!< 0x08000000 */
  9964. #define TSC_CR_CTPH_Pos (28U)
  9965. #define TSC_CR_CTPH_Msk (0xFU << TSC_CR_CTPH_Pos) /*!< 0xF0000000 */
  9966. #define TSC_CR_CTPH TSC_CR_CTPH_Msk /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
  9967. #define TSC_CR_CTPH_0 (0x1U << TSC_CR_CTPH_Pos) /*!< 0x10000000 */
  9968. #define TSC_CR_CTPH_1 (0x2U << TSC_CR_CTPH_Pos) /*!< 0x20000000 */
  9969. #define TSC_CR_CTPH_2 (0x4U << TSC_CR_CTPH_Pos) /*!< 0x40000000 */
  9970. #define TSC_CR_CTPH_3 (0x8U << TSC_CR_CTPH_Pos) /*!< 0x80000000 */
  9971. /******************* Bit definition for TSC_IER register ********************/
  9972. #define TSC_IER_EOAIE_Pos (0U)
  9973. #define TSC_IER_EOAIE_Msk (0x1U << TSC_IER_EOAIE_Pos) /*!< 0x00000001 */
  9974. #define TSC_IER_EOAIE TSC_IER_EOAIE_Msk /*!<End of acquisition interrupt enable */
  9975. #define TSC_IER_MCEIE_Pos (1U)
  9976. #define TSC_IER_MCEIE_Msk (0x1U << TSC_IER_MCEIE_Pos) /*!< 0x00000002 */
  9977. #define TSC_IER_MCEIE TSC_IER_MCEIE_Msk /*!<Max count error interrupt enable */
  9978. /******************* Bit definition for TSC_ICR register ********************/
  9979. #define TSC_ICR_EOAIC_Pos (0U)
  9980. #define TSC_ICR_EOAIC_Msk (0x1U << TSC_ICR_EOAIC_Pos) /*!< 0x00000001 */
  9981. #define TSC_ICR_EOAIC TSC_ICR_EOAIC_Msk /*!<End of acquisition interrupt clear */
  9982. #define TSC_ICR_MCEIC_Pos (1U)
  9983. #define TSC_ICR_MCEIC_Msk (0x1U << TSC_ICR_MCEIC_Pos) /*!< 0x00000002 */
  9984. #define TSC_ICR_MCEIC TSC_ICR_MCEIC_Msk /*!<Max count error interrupt clear */
  9985. /******************* Bit definition for TSC_ISR register ********************/
  9986. #define TSC_ISR_EOAF_Pos (0U)
  9987. #define TSC_ISR_EOAF_Msk (0x1U << TSC_ISR_EOAF_Pos) /*!< 0x00000001 */
  9988. #define TSC_ISR_EOAF TSC_ISR_EOAF_Msk /*!<End of acquisition flag */
  9989. #define TSC_ISR_MCEF_Pos (1U)
  9990. #define TSC_ISR_MCEF_Msk (0x1U << TSC_ISR_MCEF_Pos) /*!< 0x00000002 */
  9991. #define TSC_ISR_MCEF TSC_ISR_MCEF_Msk /*!<Max count error flag */
  9992. /******************* Bit definition for TSC_IOHCR register ******************/
  9993. #define TSC_IOHCR_G1_IO1_Pos (0U)
  9994. #define TSC_IOHCR_G1_IO1_Msk (0x1U << TSC_IOHCR_G1_IO1_Pos) /*!< 0x00000001 */
  9995. #define TSC_IOHCR_G1_IO1 TSC_IOHCR_G1_IO1_Msk /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
  9996. #define TSC_IOHCR_G1_IO2_Pos (1U)
  9997. #define TSC_IOHCR_G1_IO2_Msk (0x1U << TSC_IOHCR_G1_IO2_Pos) /*!< 0x00000002 */
  9998. #define TSC_IOHCR_G1_IO2 TSC_IOHCR_G1_IO2_Msk /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
  9999. #define TSC_IOHCR_G1_IO3_Pos (2U)
  10000. #define TSC_IOHCR_G1_IO3_Msk (0x1U << TSC_IOHCR_G1_IO3_Pos) /*!< 0x00000004 */
  10001. #define TSC_IOHCR_G1_IO3 TSC_IOHCR_G1_IO3_Msk /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
  10002. #define TSC_IOHCR_G1_IO4_Pos (3U)
  10003. #define TSC_IOHCR_G1_IO4_Msk (0x1U << TSC_IOHCR_G1_IO4_Pos) /*!< 0x00000008 */
  10004. #define TSC_IOHCR_G1_IO4 TSC_IOHCR_G1_IO4_Msk /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
  10005. #define TSC_IOHCR_G2_IO1_Pos (4U)
  10006. #define TSC_IOHCR_G2_IO1_Msk (0x1U << TSC_IOHCR_G2_IO1_Pos) /*!< 0x00000010 */
  10007. #define TSC_IOHCR_G2_IO1 TSC_IOHCR_G2_IO1_Msk /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
  10008. #define TSC_IOHCR_G2_IO2_Pos (5U)
  10009. #define TSC_IOHCR_G2_IO2_Msk (0x1U << TSC_IOHCR_G2_IO2_Pos) /*!< 0x00000020 */
  10010. #define TSC_IOHCR_G2_IO2 TSC_IOHCR_G2_IO2_Msk /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
  10011. #define TSC_IOHCR_G2_IO3_Pos (6U)
  10012. #define TSC_IOHCR_G2_IO3_Msk (0x1U << TSC_IOHCR_G2_IO3_Pos) /*!< 0x00000040 */
  10013. #define TSC_IOHCR_G2_IO3 TSC_IOHCR_G2_IO3_Msk /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
  10014. #define TSC_IOHCR_G2_IO4_Pos (7U)
  10015. #define TSC_IOHCR_G2_IO4_Msk (0x1U << TSC_IOHCR_G2_IO4_Pos) /*!< 0x00000080 */
  10016. #define TSC_IOHCR_G2_IO4 TSC_IOHCR_G2_IO4_Msk /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
  10017. #define TSC_IOHCR_G3_IO1_Pos (8U)
  10018. #define TSC_IOHCR_G3_IO1_Msk (0x1U << TSC_IOHCR_G3_IO1_Pos) /*!< 0x00000100 */
  10019. #define TSC_IOHCR_G3_IO1 TSC_IOHCR_G3_IO1_Msk /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
  10020. #define TSC_IOHCR_G3_IO2_Pos (9U)
  10021. #define TSC_IOHCR_G3_IO2_Msk (0x1U << TSC_IOHCR_G3_IO2_Pos) /*!< 0x00000200 */
  10022. #define TSC_IOHCR_G3_IO2 TSC_IOHCR_G3_IO2_Msk /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
  10023. #define TSC_IOHCR_G3_IO3_Pos (10U)
  10024. #define TSC_IOHCR_G3_IO3_Msk (0x1U << TSC_IOHCR_G3_IO3_Pos) /*!< 0x00000400 */
  10025. #define TSC_IOHCR_G3_IO3 TSC_IOHCR_G3_IO3_Msk /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
  10026. #define TSC_IOHCR_G3_IO4_Pos (11U)
  10027. #define TSC_IOHCR_G3_IO4_Msk (0x1U << TSC_IOHCR_G3_IO4_Pos) /*!< 0x00000800 */
  10028. #define TSC_IOHCR_G3_IO4 TSC_IOHCR_G3_IO4_Msk /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
  10029. #define TSC_IOHCR_G4_IO1_Pos (12U)
  10030. #define TSC_IOHCR_G4_IO1_Msk (0x1U << TSC_IOHCR_G4_IO1_Pos) /*!< 0x00001000 */
  10031. #define TSC_IOHCR_G4_IO1 TSC_IOHCR_G4_IO1_Msk /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
  10032. #define TSC_IOHCR_G4_IO2_Pos (13U)
  10033. #define TSC_IOHCR_G4_IO2_Msk (0x1U << TSC_IOHCR_G4_IO2_Pos) /*!< 0x00002000 */
  10034. #define TSC_IOHCR_G4_IO2 TSC_IOHCR_G4_IO2_Msk /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
  10035. #define TSC_IOHCR_G4_IO3_Pos (14U)
  10036. #define TSC_IOHCR_G4_IO3_Msk (0x1U << TSC_IOHCR_G4_IO3_Pos) /*!< 0x00004000 */
  10037. #define TSC_IOHCR_G4_IO3 TSC_IOHCR_G4_IO3_Msk /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
  10038. #define TSC_IOHCR_G4_IO4_Pos (15U)
  10039. #define TSC_IOHCR_G4_IO4_Msk (0x1U << TSC_IOHCR_G4_IO4_Pos) /*!< 0x00008000 */
  10040. #define TSC_IOHCR_G4_IO4 TSC_IOHCR_G4_IO4_Msk /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
  10041. #define TSC_IOHCR_G5_IO1_Pos (16U)
  10042. #define TSC_IOHCR_G5_IO1_Msk (0x1U << TSC_IOHCR_G5_IO1_Pos) /*!< 0x00010000 */
  10043. #define TSC_IOHCR_G5_IO1 TSC_IOHCR_G5_IO1_Msk /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
  10044. #define TSC_IOHCR_G5_IO2_Pos (17U)
  10045. #define TSC_IOHCR_G5_IO2_Msk (0x1U << TSC_IOHCR_G5_IO2_Pos) /*!< 0x00020000 */
  10046. #define TSC_IOHCR_G5_IO2 TSC_IOHCR_G5_IO2_Msk /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
  10047. #define TSC_IOHCR_G5_IO3_Pos (18U)
  10048. #define TSC_IOHCR_G5_IO3_Msk (0x1U << TSC_IOHCR_G5_IO3_Pos) /*!< 0x00040000 */
  10049. #define TSC_IOHCR_G5_IO3 TSC_IOHCR_G5_IO3_Msk /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
  10050. #define TSC_IOHCR_G5_IO4_Pos (19U)
  10051. #define TSC_IOHCR_G5_IO4_Msk (0x1U << TSC_IOHCR_G5_IO4_Pos) /*!< 0x00080000 */
  10052. #define TSC_IOHCR_G5_IO4 TSC_IOHCR_G5_IO4_Msk /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
  10053. #define TSC_IOHCR_G6_IO1_Pos (20U)
  10054. #define TSC_IOHCR_G6_IO1_Msk (0x1U << TSC_IOHCR_G6_IO1_Pos) /*!< 0x00100000 */
  10055. #define TSC_IOHCR_G6_IO1 TSC_IOHCR_G6_IO1_Msk /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
  10056. #define TSC_IOHCR_G6_IO2_Pos (21U)
  10057. #define TSC_IOHCR_G6_IO2_Msk (0x1U << TSC_IOHCR_G6_IO2_Pos) /*!< 0x00200000 */
  10058. #define TSC_IOHCR_G6_IO2 TSC_IOHCR_G6_IO2_Msk /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
  10059. #define TSC_IOHCR_G6_IO3_Pos (22U)
  10060. #define TSC_IOHCR_G6_IO3_Msk (0x1U << TSC_IOHCR_G6_IO3_Pos) /*!< 0x00400000 */
  10061. #define TSC_IOHCR_G6_IO3 TSC_IOHCR_G6_IO3_Msk /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
  10062. #define TSC_IOHCR_G6_IO4_Pos (23U)
  10063. #define TSC_IOHCR_G6_IO4_Msk (0x1U << TSC_IOHCR_G6_IO4_Pos) /*!< 0x00800000 */
  10064. #define TSC_IOHCR_G6_IO4 TSC_IOHCR_G6_IO4_Msk /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
  10065. #define TSC_IOHCR_G7_IO1_Pos (24U)
  10066. #define TSC_IOHCR_G7_IO1_Msk (0x1U << TSC_IOHCR_G7_IO1_Pos) /*!< 0x01000000 */
  10067. #define TSC_IOHCR_G7_IO1 TSC_IOHCR_G7_IO1_Msk /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
  10068. #define TSC_IOHCR_G7_IO2_Pos (25U)
  10069. #define TSC_IOHCR_G7_IO2_Msk (0x1U << TSC_IOHCR_G7_IO2_Pos) /*!< 0x02000000 */
  10070. #define TSC_IOHCR_G7_IO2 TSC_IOHCR_G7_IO2_Msk /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
  10071. #define TSC_IOHCR_G7_IO3_Pos (26U)
  10072. #define TSC_IOHCR_G7_IO3_Msk (0x1U << TSC_IOHCR_G7_IO3_Pos) /*!< 0x04000000 */
  10073. #define TSC_IOHCR_G7_IO3 TSC_IOHCR_G7_IO3_Msk /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
  10074. #define TSC_IOHCR_G7_IO4_Pos (27U)
  10075. #define TSC_IOHCR_G7_IO4_Msk (0x1U << TSC_IOHCR_G7_IO4_Pos) /*!< 0x08000000 */
  10076. #define TSC_IOHCR_G7_IO4 TSC_IOHCR_G7_IO4_Msk /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
  10077. #define TSC_IOHCR_G8_IO1_Pos (28U)
  10078. #define TSC_IOHCR_G8_IO1_Msk (0x1U << TSC_IOHCR_G8_IO1_Pos) /*!< 0x10000000 */
  10079. #define TSC_IOHCR_G8_IO1 TSC_IOHCR_G8_IO1_Msk /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
  10080. #define TSC_IOHCR_G8_IO2_Pos (29U)
  10081. #define TSC_IOHCR_G8_IO2_Msk (0x1U << TSC_IOHCR_G8_IO2_Pos) /*!< 0x20000000 */
  10082. #define TSC_IOHCR_G8_IO2 TSC_IOHCR_G8_IO2_Msk /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
  10083. #define TSC_IOHCR_G8_IO3_Pos (30U)
  10084. #define TSC_IOHCR_G8_IO3_Msk (0x1U << TSC_IOHCR_G8_IO3_Pos) /*!< 0x40000000 */
  10085. #define TSC_IOHCR_G8_IO3 TSC_IOHCR_G8_IO3_Msk /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
  10086. #define TSC_IOHCR_G8_IO4_Pos (31U)
  10087. #define TSC_IOHCR_G8_IO4_Msk (0x1U << TSC_IOHCR_G8_IO4_Pos) /*!< 0x80000000 */
  10088. #define TSC_IOHCR_G8_IO4 TSC_IOHCR_G8_IO4_Msk /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
  10089. /******************* Bit definition for TSC_IOASCR register *****************/
  10090. #define TSC_IOASCR_G1_IO1_Pos (0U)
  10091. #define TSC_IOASCR_G1_IO1_Msk (0x1U << TSC_IOASCR_G1_IO1_Pos) /*!< 0x00000001 */
  10092. #define TSC_IOASCR_G1_IO1 TSC_IOASCR_G1_IO1_Msk /*!<GROUP1_IO1 analog switch enable */
  10093. #define TSC_IOASCR_G1_IO2_Pos (1U)
  10094. #define TSC_IOASCR_G1_IO2_Msk (0x1U << TSC_IOASCR_G1_IO2_Pos) /*!< 0x00000002 */
  10095. #define TSC_IOASCR_G1_IO2 TSC_IOASCR_G1_IO2_Msk /*!<GROUP1_IO2 analog switch enable */
  10096. #define TSC_IOASCR_G1_IO3_Pos (2U)
  10097. #define TSC_IOASCR_G1_IO3_Msk (0x1U << TSC_IOASCR_G1_IO3_Pos) /*!< 0x00000004 */
  10098. #define TSC_IOASCR_G1_IO3 TSC_IOASCR_G1_IO3_Msk /*!<GROUP1_IO3 analog switch enable */
  10099. #define TSC_IOASCR_G1_IO4_Pos (3U)
  10100. #define TSC_IOASCR_G1_IO4_Msk (0x1U << TSC_IOASCR_G1_IO4_Pos) /*!< 0x00000008 */
  10101. #define TSC_IOASCR_G1_IO4 TSC_IOASCR_G1_IO4_Msk /*!<GROUP1_IO4 analog switch enable */
  10102. #define TSC_IOASCR_G2_IO1_Pos (4U)
  10103. #define TSC_IOASCR_G2_IO1_Msk (0x1U << TSC_IOASCR_G2_IO1_Pos) /*!< 0x00000010 */
  10104. #define TSC_IOASCR_G2_IO1 TSC_IOASCR_G2_IO1_Msk /*!<GROUP2_IO1 analog switch enable */
  10105. #define TSC_IOASCR_G2_IO2_Pos (5U)
  10106. #define TSC_IOASCR_G2_IO2_Msk (0x1U << TSC_IOASCR_G2_IO2_Pos) /*!< 0x00000020 */
  10107. #define TSC_IOASCR_G2_IO2 TSC_IOASCR_G2_IO2_Msk /*!<GROUP2_IO2 analog switch enable */
  10108. #define TSC_IOASCR_G2_IO3_Pos (6U)
  10109. #define TSC_IOASCR_G2_IO3_Msk (0x1U << TSC_IOASCR_G2_IO3_Pos) /*!< 0x00000040 */
  10110. #define TSC_IOASCR_G2_IO3 TSC_IOASCR_G2_IO3_Msk /*!<GROUP2_IO3 analog switch enable */
  10111. #define TSC_IOASCR_G2_IO4_Pos (7U)
  10112. #define TSC_IOASCR_G2_IO4_Msk (0x1U << TSC_IOASCR_G2_IO4_Pos) /*!< 0x00000080 */
  10113. #define TSC_IOASCR_G2_IO4 TSC_IOASCR_G2_IO4_Msk /*!<GROUP2_IO4 analog switch enable */
  10114. #define TSC_IOASCR_G3_IO1_Pos (8U)
  10115. #define TSC_IOASCR_G3_IO1_Msk (0x1U << TSC_IOASCR_G3_IO1_Pos) /*!< 0x00000100 */
  10116. #define TSC_IOASCR_G3_IO1 TSC_IOASCR_G3_IO1_Msk /*!<GROUP3_IO1 analog switch enable */
  10117. #define TSC_IOASCR_G3_IO2_Pos (9U)
  10118. #define TSC_IOASCR_G3_IO2_Msk (0x1U << TSC_IOASCR_G3_IO2_Pos) /*!< 0x00000200 */
  10119. #define TSC_IOASCR_G3_IO2 TSC_IOASCR_G3_IO2_Msk /*!<GROUP3_IO2 analog switch enable */
  10120. #define TSC_IOASCR_G3_IO3_Pos (10U)
  10121. #define TSC_IOASCR_G3_IO3_Msk (0x1U << TSC_IOASCR_G3_IO3_Pos) /*!< 0x00000400 */
  10122. #define TSC_IOASCR_G3_IO3 TSC_IOASCR_G3_IO3_Msk /*!<GROUP3_IO3 analog switch enable */
  10123. #define TSC_IOASCR_G3_IO4_Pos (11U)
  10124. #define TSC_IOASCR_G3_IO4_Msk (0x1U << TSC_IOASCR_G3_IO4_Pos) /*!< 0x00000800 */
  10125. #define TSC_IOASCR_G3_IO4 TSC_IOASCR_G3_IO4_Msk /*!<GROUP3_IO4 analog switch enable */
  10126. #define TSC_IOASCR_G4_IO1_Pos (12U)
  10127. #define TSC_IOASCR_G4_IO1_Msk (0x1U << TSC_IOASCR_G4_IO1_Pos) /*!< 0x00001000 */
  10128. #define TSC_IOASCR_G4_IO1 TSC_IOASCR_G4_IO1_Msk /*!<GROUP4_IO1 analog switch enable */
  10129. #define TSC_IOASCR_G4_IO2_Pos (13U)
  10130. #define TSC_IOASCR_G4_IO2_Msk (0x1U << TSC_IOASCR_G4_IO2_Pos) /*!< 0x00002000 */
  10131. #define TSC_IOASCR_G4_IO2 TSC_IOASCR_G4_IO2_Msk /*!<GROUP4_IO2 analog switch enable */
  10132. #define TSC_IOASCR_G4_IO3_Pos (14U)
  10133. #define TSC_IOASCR_G4_IO3_Msk (0x1U << TSC_IOASCR_G4_IO3_Pos) /*!< 0x00004000 */
  10134. #define TSC_IOASCR_G4_IO3 TSC_IOASCR_G4_IO3_Msk /*!<GROUP4_IO3 analog switch enable */
  10135. #define TSC_IOASCR_G4_IO4_Pos (15U)
  10136. #define TSC_IOASCR_G4_IO4_Msk (0x1U << TSC_IOASCR_G4_IO4_Pos) /*!< 0x00008000 */
  10137. #define TSC_IOASCR_G4_IO4 TSC_IOASCR_G4_IO4_Msk /*!<GROUP4_IO4 analog switch enable */
  10138. #define TSC_IOASCR_G5_IO1_Pos (16U)
  10139. #define TSC_IOASCR_G5_IO1_Msk (0x1U << TSC_IOASCR_G5_IO1_Pos) /*!< 0x00010000 */
  10140. #define TSC_IOASCR_G5_IO1 TSC_IOASCR_G5_IO1_Msk /*!<GROUP5_IO1 analog switch enable */
  10141. #define TSC_IOASCR_G5_IO2_Pos (17U)
  10142. #define TSC_IOASCR_G5_IO2_Msk (0x1U << TSC_IOASCR_G5_IO2_Pos) /*!< 0x00020000 */
  10143. #define TSC_IOASCR_G5_IO2 TSC_IOASCR_G5_IO2_Msk /*!<GROUP5_IO2 analog switch enable */
  10144. #define TSC_IOASCR_G5_IO3_Pos (18U)
  10145. #define TSC_IOASCR_G5_IO3_Msk (0x1U << TSC_IOASCR_G5_IO3_Pos) /*!< 0x00040000 */
  10146. #define TSC_IOASCR_G5_IO3 TSC_IOASCR_G5_IO3_Msk /*!<GROUP5_IO3 analog switch enable */
  10147. #define TSC_IOASCR_G5_IO4_Pos (19U)
  10148. #define TSC_IOASCR_G5_IO4_Msk (0x1U << TSC_IOASCR_G5_IO4_Pos) /*!< 0x00080000 */
  10149. #define TSC_IOASCR_G5_IO4 TSC_IOASCR_G5_IO4_Msk /*!<GROUP5_IO4 analog switch enable */
  10150. #define TSC_IOASCR_G6_IO1_Pos (20U)
  10151. #define TSC_IOASCR_G6_IO1_Msk (0x1U << TSC_IOASCR_G6_IO1_Pos) /*!< 0x00100000 */
  10152. #define TSC_IOASCR_G6_IO1 TSC_IOASCR_G6_IO1_Msk /*!<GROUP6_IO1 analog switch enable */
  10153. #define TSC_IOASCR_G6_IO2_Pos (21U)
  10154. #define TSC_IOASCR_G6_IO2_Msk (0x1U << TSC_IOASCR_G6_IO2_Pos) /*!< 0x00200000 */
  10155. #define TSC_IOASCR_G6_IO2 TSC_IOASCR_G6_IO2_Msk /*!<GROUP6_IO2 analog switch enable */
  10156. #define TSC_IOASCR_G6_IO3_Pos (22U)
  10157. #define TSC_IOASCR_G6_IO3_Msk (0x1U << TSC_IOASCR_G6_IO3_Pos) /*!< 0x00400000 */
  10158. #define TSC_IOASCR_G6_IO3 TSC_IOASCR_G6_IO3_Msk /*!<GROUP6_IO3 analog switch enable */
  10159. #define TSC_IOASCR_G6_IO4_Pos (23U)
  10160. #define TSC_IOASCR_G6_IO4_Msk (0x1U << TSC_IOASCR_G6_IO4_Pos) /*!< 0x00800000 */
  10161. #define TSC_IOASCR_G6_IO4 TSC_IOASCR_G6_IO4_Msk /*!<GROUP6_IO4 analog switch enable */
  10162. #define TSC_IOASCR_G7_IO1_Pos (24U)
  10163. #define TSC_IOASCR_G7_IO1_Msk (0x1U << TSC_IOASCR_G7_IO1_Pos) /*!< 0x01000000 */
  10164. #define TSC_IOASCR_G7_IO1 TSC_IOASCR_G7_IO1_Msk /*!<GROUP7_IO1 analog switch enable */
  10165. #define TSC_IOASCR_G7_IO2_Pos (25U)
  10166. #define TSC_IOASCR_G7_IO2_Msk (0x1U << TSC_IOASCR_G7_IO2_Pos) /*!< 0x02000000 */
  10167. #define TSC_IOASCR_G7_IO2 TSC_IOASCR_G7_IO2_Msk /*!<GROUP7_IO2 analog switch enable */
  10168. #define TSC_IOASCR_G7_IO3_Pos (26U)
  10169. #define TSC_IOASCR_G7_IO3_Msk (0x1U << TSC_IOASCR_G7_IO3_Pos) /*!< 0x04000000 */
  10170. #define TSC_IOASCR_G7_IO3 TSC_IOASCR_G7_IO3_Msk /*!<GROUP7_IO3 analog switch enable */
  10171. #define TSC_IOASCR_G7_IO4_Pos (27U)
  10172. #define TSC_IOASCR_G7_IO4_Msk (0x1U << TSC_IOASCR_G7_IO4_Pos) /*!< 0x08000000 */
  10173. #define TSC_IOASCR_G7_IO4 TSC_IOASCR_G7_IO4_Msk /*!<GROUP7_IO4 analog switch enable */
  10174. #define TSC_IOASCR_G8_IO1_Pos (28U)
  10175. #define TSC_IOASCR_G8_IO1_Msk (0x1U << TSC_IOASCR_G8_IO1_Pos) /*!< 0x10000000 */
  10176. #define TSC_IOASCR_G8_IO1 TSC_IOASCR_G8_IO1_Msk /*!<GROUP8_IO1 analog switch enable */
  10177. #define TSC_IOASCR_G8_IO2_Pos (29U)
  10178. #define TSC_IOASCR_G8_IO2_Msk (0x1U << TSC_IOASCR_G8_IO2_Pos) /*!< 0x20000000 */
  10179. #define TSC_IOASCR_G8_IO2 TSC_IOASCR_G8_IO2_Msk /*!<GROUP8_IO2 analog switch enable */
  10180. #define TSC_IOASCR_G8_IO3_Pos (30U)
  10181. #define TSC_IOASCR_G8_IO3_Msk (0x1U << TSC_IOASCR_G8_IO3_Pos) /*!< 0x40000000 */
  10182. #define TSC_IOASCR_G8_IO3 TSC_IOASCR_G8_IO3_Msk /*!<GROUP8_IO3 analog switch enable */
  10183. #define TSC_IOASCR_G8_IO4_Pos (31U)
  10184. #define TSC_IOASCR_G8_IO4_Msk (0x1U << TSC_IOASCR_G8_IO4_Pos) /*!< 0x80000000 */
  10185. #define TSC_IOASCR_G8_IO4 TSC_IOASCR_G8_IO4_Msk /*!<GROUP8_IO4 analog switch enable */
  10186. /******************* Bit definition for TSC_IOSCR register ******************/
  10187. #define TSC_IOSCR_G1_IO1_Pos (0U)
  10188. #define TSC_IOSCR_G1_IO1_Msk (0x1U << TSC_IOSCR_G1_IO1_Pos) /*!< 0x00000001 */
  10189. #define TSC_IOSCR_G1_IO1 TSC_IOSCR_G1_IO1_Msk /*!<GROUP1_IO1 sampling mode */
  10190. #define TSC_IOSCR_G1_IO2_Pos (1U)
  10191. #define TSC_IOSCR_G1_IO2_Msk (0x1U << TSC_IOSCR_G1_IO2_Pos) /*!< 0x00000002 */
  10192. #define TSC_IOSCR_G1_IO2 TSC_IOSCR_G1_IO2_Msk /*!<GROUP1_IO2 sampling mode */
  10193. #define TSC_IOSCR_G1_IO3_Pos (2U)
  10194. #define TSC_IOSCR_G1_IO3_Msk (0x1U << TSC_IOSCR_G1_IO3_Pos) /*!< 0x00000004 */
  10195. #define TSC_IOSCR_G1_IO3 TSC_IOSCR_G1_IO3_Msk /*!<GROUP1_IO3 sampling mode */
  10196. #define TSC_IOSCR_G1_IO4_Pos (3U)
  10197. #define TSC_IOSCR_G1_IO4_Msk (0x1U << TSC_IOSCR_G1_IO4_Pos) /*!< 0x00000008 */
  10198. #define TSC_IOSCR_G1_IO4 TSC_IOSCR_G1_IO4_Msk /*!<GROUP1_IO4 sampling mode */
  10199. #define TSC_IOSCR_G2_IO1_Pos (4U)
  10200. #define TSC_IOSCR_G2_IO1_Msk (0x1U << TSC_IOSCR_G2_IO1_Pos) /*!< 0x00000010 */
  10201. #define TSC_IOSCR_G2_IO1 TSC_IOSCR_G2_IO1_Msk /*!<GROUP2_IO1 sampling mode */
  10202. #define TSC_IOSCR_G2_IO2_Pos (5U)
  10203. #define TSC_IOSCR_G2_IO2_Msk (0x1U << TSC_IOSCR_G2_IO2_Pos) /*!< 0x00000020 */
  10204. #define TSC_IOSCR_G2_IO2 TSC_IOSCR_G2_IO2_Msk /*!<GROUP2_IO2 sampling mode */
  10205. #define TSC_IOSCR_G2_IO3_Pos (6U)
  10206. #define TSC_IOSCR_G2_IO3_Msk (0x1U << TSC_IOSCR_G2_IO3_Pos) /*!< 0x00000040 */
  10207. #define TSC_IOSCR_G2_IO3 TSC_IOSCR_G2_IO3_Msk /*!<GROUP2_IO3 sampling mode */
  10208. #define TSC_IOSCR_G2_IO4_Pos (7U)
  10209. #define TSC_IOSCR_G2_IO4_Msk (0x1U << TSC_IOSCR_G2_IO4_Pos) /*!< 0x00000080 */
  10210. #define TSC_IOSCR_G2_IO4 TSC_IOSCR_G2_IO4_Msk /*!<GROUP2_IO4 sampling mode */
  10211. #define TSC_IOSCR_G3_IO1_Pos (8U)
  10212. #define TSC_IOSCR_G3_IO1_Msk (0x1U << TSC_IOSCR_G3_IO1_Pos) /*!< 0x00000100 */
  10213. #define TSC_IOSCR_G3_IO1 TSC_IOSCR_G3_IO1_Msk /*!<GROUP3_IO1 sampling mode */
  10214. #define TSC_IOSCR_G3_IO2_Pos (9U)
  10215. #define TSC_IOSCR_G3_IO2_Msk (0x1U << TSC_IOSCR_G3_IO2_Pos) /*!< 0x00000200 */
  10216. #define TSC_IOSCR_G3_IO2 TSC_IOSCR_G3_IO2_Msk /*!<GROUP3_IO2 sampling mode */
  10217. #define TSC_IOSCR_G3_IO3_Pos (10U)
  10218. #define TSC_IOSCR_G3_IO3_Msk (0x1U << TSC_IOSCR_G3_IO3_Pos) /*!< 0x00000400 */
  10219. #define TSC_IOSCR_G3_IO3 TSC_IOSCR_G3_IO3_Msk /*!<GROUP3_IO3 sampling mode */
  10220. #define TSC_IOSCR_G3_IO4_Pos (11U)
  10221. #define TSC_IOSCR_G3_IO4_Msk (0x1U << TSC_IOSCR_G3_IO4_Pos) /*!< 0x00000800 */
  10222. #define TSC_IOSCR_G3_IO4 TSC_IOSCR_G3_IO4_Msk /*!<GROUP3_IO4 sampling mode */
  10223. #define TSC_IOSCR_G4_IO1_Pos (12U)
  10224. #define TSC_IOSCR_G4_IO1_Msk (0x1U << TSC_IOSCR_G4_IO1_Pos) /*!< 0x00001000 */
  10225. #define TSC_IOSCR_G4_IO1 TSC_IOSCR_G4_IO1_Msk /*!<GROUP4_IO1 sampling mode */
  10226. #define TSC_IOSCR_G4_IO2_Pos (13U)
  10227. #define TSC_IOSCR_G4_IO2_Msk (0x1U << TSC_IOSCR_G4_IO2_Pos) /*!< 0x00002000 */
  10228. #define TSC_IOSCR_G4_IO2 TSC_IOSCR_G4_IO2_Msk /*!<GROUP4_IO2 sampling mode */
  10229. #define TSC_IOSCR_G4_IO3_Pos (14U)
  10230. #define TSC_IOSCR_G4_IO3_Msk (0x1U << TSC_IOSCR_G4_IO3_Pos) /*!< 0x00004000 */
  10231. #define TSC_IOSCR_G4_IO3 TSC_IOSCR_G4_IO3_Msk /*!<GROUP4_IO3 sampling mode */
  10232. #define TSC_IOSCR_G4_IO4_Pos (15U)
  10233. #define TSC_IOSCR_G4_IO4_Msk (0x1U << TSC_IOSCR_G4_IO4_Pos) /*!< 0x00008000 */
  10234. #define TSC_IOSCR_G4_IO4 TSC_IOSCR_G4_IO4_Msk /*!<GROUP4_IO4 sampling mode */
  10235. #define TSC_IOSCR_G5_IO1_Pos (16U)
  10236. #define TSC_IOSCR_G5_IO1_Msk (0x1U << TSC_IOSCR_G5_IO1_Pos) /*!< 0x00010000 */
  10237. #define TSC_IOSCR_G5_IO1 TSC_IOSCR_G5_IO1_Msk /*!<GROUP5_IO1 sampling mode */
  10238. #define TSC_IOSCR_G5_IO2_Pos (17U)
  10239. #define TSC_IOSCR_G5_IO2_Msk (0x1U << TSC_IOSCR_G5_IO2_Pos) /*!< 0x00020000 */
  10240. #define TSC_IOSCR_G5_IO2 TSC_IOSCR_G5_IO2_Msk /*!<GROUP5_IO2 sampling mode */
  10241. #define TSC_IOSCR_G5_IO3_Pos (18U)
  10242. #define TSC_IOSCR_G5_IO3_Msk (0x1U << TSC_IOSCR_G5_IO3_Pos) /*!< 0x00040000 */
  10243. #define TSC_IOSCR_G5_IO3 TSC_IOSCR_G5_IO3_Msk /*!<GROUP5_IO3 sampling mode */
  10244. #define TSC_IOSCR_G5_IO4_Pos (19U)
  10245. #define TSC_IOSCR_G5_IO4_Msk (0x1U << TSC_IOSCR_G5_IO4_Pos) /*!< 0x00080000 */
  10246. #define TSC_IOSCR_G5_IO4 TSC_IOSCR_G5_IO4_Msk /*!<GROUP5_IO4 sampling mode */
  10247. #define TSC_IOSCR_G6_IO1_Pos (20U)
  10248. #define TSC_IOSCR_G6_IO1_Msk (0x1U << TSC_IOSCR_G6_IO1_Pos) /*!< 0x00100000 */
  10249. #define TSC_IOSCR_G6_IO1 TSC_IOSCR_G6_IO1_Msk /*!<GROUP6_IO1 sampling mode */
  10250. #define TSC_IOSCR_G6_IO2_Pos (21U)
  10251. #define TSC_IOSCR_G6_IO2_Msk (0x1U << TSC_IOSCR_G6_IO2_Pos) /*!< 0x00200000 */
  10252. #define TSC_IOSCR_G6_IO2 TSC_IOSCR_G6_IO2_Msk /*!<GROUP6_IO2 sampling mode */
  10253. #define TSC_IOSCR_G6_IO3_Pos (22U)
  10254. #define TSC_IOSCR_G6_IO3_Msk (0x1U << TSC_IOSCR_G6_IO3_Pos) /*!< 0x00400000 */
  10255. #define TSC_IOSCR_G6_IO3 TSC_IOSCR_G6_IO3_Msk /*!<GROUP6_IO3 sampling mode */
  10256. #define TSC_IOSCR_G6_IO4_Pos (23U)
  10257. #define TSC_IOSCR_G6_IO4_Msk (0x1U << TSC_IOSCR_G6_IO4_Pos) /*!< 0x00800000 */
  10258. #define TSC_IOSCR_G6_IO4 TSC_IOSCR_G6_IO4_Msk /*!<GROUP6_IO4 sampling mode */
  10259. #define TSC_IOSCR_G7_IO1_Pos (24U)
  10260. #define TSC_IOSCR_G7_IO1_Msk (0x1U << TSC_IOSCR_G7_IO1_Pos) /*!< 0x01000000 */
  10261. #define TSC_IOSCR_G7_IO1 TSC_IOSCR_G7_IO1_Msk /*!<GROUP7_IO1 sampling mode */
  10262. #define TSC_IOSCR_G7_IO2_Pos (25U)
  10263. #define TSC_IOSCR_G7_IO2_Msk (0x1U << TSC_IOSCR_G7_IO2_Pos) /*!< 0x02000000 */
  10264. #define TSC_IOSCR_G7_IO2 TSC_IOSCR_G7_IO2_Msk /*!<GROUP7_IO2 sampling mode */
  10265. #define TSC_IOSCR_G7_IO3_Pos (26U)
  10266. #define TSC_IOSCR_G7_IO3_Msk (0x1U << TSC_IOSCR_G7_IO3_Pos) /*!< 0x04000000 */
  10267. #define TSC_IOSCR_G7_IO3 TSC_IOSCR_G7_IO3_Msk /*!<GROUP7_IO3 sampling mode */
  10268. #define TSC_IOSCR_G7_IO4_Pos (27U)
  10269. #define TSC_IOSCR_G7_IO4_Msk (0x1U << TSC_IOSCR_G7_IO4_Pos) /*!< 0x08000000 */
  10270. #define TSC_IOSCR_G7_IO4 TSC_IOSCR_G7_IO4_Msk /*!<GROUP7_IO4 sampling mode */
  10271. #define TSC_IOSCR_G8_IO1_Pos (28U)
  10272. #define TSC_IOSCR_G8_IO1_Msk (0x1U << TSC_IOSCR_G8_IO1_Pos) /*!< 0x10000000 */
  10273. #define TSC_IOSCR_G8_IO1 TSC_IOSCR_G8_IO1_Msk /*!<GROUP8_IO1 sampling mode */
  10274. #define TSC_IOSCR_G8_IO2_Pos (29U)
  10275. #define TSC_IOSCR_G8_IO2_Msk (0x1U << TSC_IOSCR_G8_IO2_Pos) /*!< 0x20000000 */
  10276. #define TSC_IOSCR_G8_IO2 TSC_IOSCR_G8_IO2_Msk /*!<GROUP8_IO2 sampling mode */
  10277. #define TSC_IOSCR_G8_IO3_Pos (30U)
  10278. #define TSC_IOSCR_G8_IO3_Msk (0x1U << TSC_IOSCR_G8_IO3_Pos) /*!< 0x40000000 */
  10279. #define TSC_IOSCR_G8_IO3 TSC_IOSCR_G8_IO3_Msk /*!<GROUP8_IO3 sampling mode */
  10280. #define TSC_IOSCR_G8_IO4_Pos (31U)
  10281. #define TSC_IOSCR_G8_IO4_Msk (0x1U << TSC_IOSCR_G8_IO4_Pos) /*!< 0x80000000 */
  10282. #define TSC_IOSCR_G8_IO4 TSC_IOSCR_G8_IO4_Msk /*!<GROUP8_IO4 sampling mode */
  10283. /******************* Bit definition for TSC_IOCCR register ******************/
  10284. #define TSC_IOCCR_G1_IO1_Pos (0U)
  10285. #define TSC_IOCCR_G1_IO1_Msk (0x1U << TSC_IOCCR_G1_IO1_Pos) /*!< 0x00000001 */
  10286. #define TSC_IOCCR_G1_IO1 TSC_IOCCR_G1_IO1_Msk /*!<GROUP1_IO1 channel mode */
  10287. #define TSC_IOCCR_G1_IO2_Pos (1U)
  10288. #define TSC_IOCCR_G1_IO2_Msk (0x1U << TSC_IOCCR_G1_IO2_Pos) /*!< 0x00000002 */
  10289. #define TSC_IOCCR_G1_IO2 TSC_IOCCR_G1_IO2_Msk /*!<GROUP1_IO2 channel mode */
  10290. #define TSC_IOCCR_G1_IO3_Pos (2U)
  10291. #define TSC_IOCCR_G1_IO3_Msk (0x1U << TSC_IOCCR_G1_IO3_Pos) /*!< 0x00000004 */
  10292. #define TSC_IOCCR_G1_IO3 TSC_IOCCR_G1_IO3_Msk /*!<GROUP1_IO3 channel mode */
  10293. #define TSC_IOCCR_G1_IO4_Pos (3U)
  10294. #define TSC_IOCCR_G1_IO4_Msk (0x1U << TSC_IOCCR_G1_IO4_Pos) /*!< 0x00000008 */
  10295. #define TSC_IOCCR_G1_IO4 TSC_IOCCR_G1_IO4_Msk /*!<GROUP1_IO4 channel mode */
  10296. #define TSC_IOCCR_G2_IO1_Pos (4U)
  10297. #define TSC_IOCCR_G2_IO1_Msk (0x1U << TSC_IOCCR_G2_IO1_Pos) /*!< 0x00000010 */
  10298. #define TSC_IOCCR_G2_IO1 TSC_IOCCR_G2_IO1_Msk /*!<GROUP2_IO1 channel mode */
  10299. #define TSC_IOCCR_G2_IO2_Pos (5U)
  10300. #define TSC_IOCCR_G2_IO2_Msk (0x1U << TSC_IOCCR_G2_IO2_Pos) /*!< 0x00000020 */
  10301. #define TSC_IOCCR_G2_IO2 TSC_IOCCR_G2_IO2_Msk /*!<GROUP2_IO2 channel mode */
  10302. #define TSC_IOCCR_G2_IO3_Pos (6U)
  10303. #define TSC_IOCCR_G2_IO3_Msk (0x1U << TSC_IOCCR_G2_IO3_Pos) /*!< 0x00000040 */
  10304. #define TSC_IOCCR_G2_IO3 TSC_IOCCR_G2_IO3_Msk /*!<GROUP2_IO3 channel mode */
  10305. #define TSC_IOCCR_G2_IO4_Pos (7U)
  10306. #define TSC_IOCCR_G2_IO4_Msk (0x1U << TSC_IOCCR_G2_IO4_Pos) /*!< 0x00000080 */
  10307. #define TSC_IOCCR_G2_IO4 TSC_IOCCR_G2_IO4_Msk /*!<GROUP2_IO4 channel mode */
  10308. #define TSC_IOCCR_G3_IO1_Pos (8U)
  10309. #define TSC_IOCCR_G3_IO1_Msk (0x1U << TSC_IOCCR_G3_IO1_Pos) /*!< 0x00000100 */
  10310. #define TSC_IOCCR_G3_IO1 TSC_IOCCR_G3_IO1_Msk /*!<GROUP3_IO1 channel mode */
  10311. #define TSC_IOCCR_G3_IO2_Pos (9U)
  10312. #define TSC_IOCCR_G3_IO2_Msk (0x1U << TSC_IOCCR_G3_IO2_Pos) /*!< 0x00000200 */
  10313. #define TSC_IOCCR_G3_IO2 TSC_IOCCR_G3_IO2_Msk /*!<GROUP3_IO2 channel mode */
  10314. #define TSC_IOCCR_G3_IO3_Pos (10U)
  10315. #define TSC_IOCCR_G3_IO3_Msk (0x1U << TSC_IOCCR_G3_IO3_Pos) /*!< 0x00000400 */
  10316. #define TSC_IOCCR_G3_IO3 TSC_IOCCR_G3_IO3_Msk /*!<GROUP3_IO3 channel mode */
  10317. #define TSC_IOCCR_G3_IO4_Pos (11U)
  10318. #define TSC_IOCCR_G3_IO4_Msk (0x1U << TSC_IOCCR_G3_IO4_Pos) /*!< 0x00000800 */
  10319. #define TSC_IOCCR_G3_IO4 TSC_IOCCR_G3_IO4_Msk /*!<GROUP3_IO4 channel mode */
  10320. #define TSC_IOCCR_G4_IO1_Pos (12U)
  10321. #define TSC_IOCCR_G4_IO1_Msk (0x1U << TSC_IOCCR_G4_IO1_Pos) /*!< 0x00001000 */
  10322. #define TSC_IOCCR_G4_IO1 TSC_IOCCR_G4_IO1_Msk /*!<GROUP4_IO1 channel mode */
  10323. #define TSC_IOCCR_G4_IO2_Pos (13U)
  10324. #define TSC_IOCCR_G4_IO2_Msk (0x1U << TSC_IOCCR_G4_IO2_Pos) /*!< 0x00002000 */
  10325. #define TSC_IOCCR_G4_IO2 TSC_IOCCR_G4_IO2_Msk /*!<GROUP4_IO2 channel mode */
  10326. #define TSC_IOCCR_G4_IO3_Pos (14U)
  10327. #define TSC_IOCCR_G4_IO3_Msk (0x1U << TSC_IOCCR_G4_IO3_Pos) /*!< 0x00004000 */
  10328. #define TSC_IOCCR_G4_IO3 TSC_IOCCR_G4_IO3_Msk /*!<GROUP4_IO3 channel mode */
  10329. #define TSC_IOCCR_G4_IO4_Pos (15U)
  10330. #define TSC_IOCCR_G4_IO4_Msk (0x1U << TSC_IOCCR_G4_IO4_Pos) /*!< 0x00008000 */
  10331. #define TSC_IOCCR_G4_IO4 TSC_IOCCR_G4_IO4_Msk /*!<GROUP4_IO4 channel mode */
  10332. #define TSC_IOCCR_G5_IO1_Pos (16U)
  10333. #define TSC_IOCCR_G5_IO1_Msk (0x1U << TSC_IOCCR_G5_IO1_Pos) /*!< 0x00010000 */
  10334. #define TSC_IOCCR_G5_IO1 TSC_IOCCR_G5_IO1_Msk /*!<GROUP5_IO1 channel mode */
  10335. #define TSC_IOCCR_G5_IO2_Pos (17U)
  10336. #define TSC_IOCCR_G5_IO2_Msk (0x1U << TSC_IOCCR_G5_IO2_Pos) /*!< 0x00020000 */
  10337. #define TSC_IOCCR_G5_IO2 TSC_IOCCR_G5_IO2_Msk /*!<GROUP5_IO2 channel mode */
  10338. #define TSC_IOCCR_G5_IO3_Pos (18U)
  10339. #define TSC_IOCCR_G5_IO3_Msk (0x1U << TSC_IOCCR_G5_IO3_Pos) /*!< 0x00040000 */
  10340. #define TSC_IOCCR_G5_IO3 TSC_IOCCR_G5_IO3_Msk /*!<GROUP5_IO3 channel mode */
  10341. #define TSC_IOCCR_G5_IO4_Pos (19U)
  10342. #define TSC_IOCCR_G5_IO4_Msk (0x1U << TSC_IOCCR_G5_IO4_Pos) /*!< 0x00080000 */
  10343. #define TSC_IOCCR_G5_IO4 TSC_IOCCR_G5_IO4_Msk /*!<GROUP5_IO4 channel mode */
  10344. #define TSC_IOCCR_G6_IO1_Pos (20U)
  10345. #define TSC_IOCCR_G6_IO1_Msk (0x1U << TSC_IOCCR_G6_IO1_Pos) /*!< 0x00100000 */
  10346. #define TSC_IOCCR_G6_IO1 TSC_IOCCR_G6_IO1_Msk /*!<GROUP6_IO1 channel mode */
  10347. #define TSC_IOCCR_G6_IO2_Pos (21U)
  10348. #define TSC_IOCCR_G6_IO2_Msk (0x1U << TSC_IOCCR_G6_IO2_Pos) /*!< 0x00200000 */
  10349. #define TSC_IOCCR_G6_IO2 TSC_IOCCR_G6_IO2_Msk /*!<GROUP6_IO2 channel mode */
  10350. #define TSC_IOCCR_G6_IO3_Pos (22U)
  10351. #define TSC_IOCCR_G6_IO3_Msk (0x1U << TSC_IOCCR_G6_IO3_Pos) /*!< 0x00400000 */
  10352. #define TSC_IOCCR_G6_IO3 TSC_IOCCR_G6_IO3_Msk /*!<GROUP6_IO3 channel mode */
  10353. #define TSC_IOCCR_G6_IO4_Pos (23U)
  10354. #define TSC_IOCCR_G6_IO4_Msk (0x1U << TSC_IOCCR_G6_IO4_Pos) /*!< 0x00800000 */
  10355. #define TSC_IOCCR_G6_IO4 TSC_IOCCR_G6_IO4_Msk /*!<GROUP6_IO4 channel mode */
  10356. #define TSC_IOCCR_G7_IO1_Pos (24U)
  10357. #define TSC_IOCCR_G7_IO1_Msk (0x1U << TSC_IOCCR_G7_IO1_Pos) /*!< 0x01000000 */
  10358. #define TSC_IOCCR_G7_IO1 TSC_IOCCR_G7_IO1_Msk /*!<GROUP7_IO1 channel mode */
  10359. #define TSC_IOCCR_G7_IO2_Pos (25U)
  10360. #define TSC_IOCCR_G7_IO2_Msk (0x1U << TSC_IOCCR_G7_IO2_Pos) /*!< 0x02000000 */
  10361. #define TSC_IOCCR_G7_IO2 TSC_IOCCR_G7_IO2_Msk /*!<GROUP7_IO2 channel mode */
  10362. #define TSC_IOCCR_G7_IO3_Pos (26U)
  10363. #define TSC_IOCCR_G7_IO3_Msk (0x1U << TSC_IOCCR_G7_IO3_Pos) /*!< 0x04000000 */
  10364. #define TSC_IOCCR_G7_IO3 TSC_IOCCR_G7_IO3_Msk /*!<GROUP7_IO3 channel mode */
  10365. #define TSC_IOCCR_G7_IO4_Pos (27U)
  10366. #define TSC_IOCCR_G7_IO4_Msk (0x1U << TSC_IOCCR_G7_IO4_Pos) /*!< 0x08000000 */
  10367. #define TSC_IOCCR_G7_IO4 TSC_IOCCR_G7_IO4_Msk /*!<GROUP7_IO4 channel mode */
  10368. #define TSC_IOCCR_G8_IO1_Pos (28U)
  10369. #define TSC_IOCCR_G8_IO1_Msk (0x1U << TSC_IOCCR_G8_IO1_Pos) /*!< 0x10000000 */
  10370. #define TSC_IOCCR_G8_IO1 TSC_IOCCR_G8_IO1_Msk /*!<GROUP8_IO1 channel mode */
  10371. #define TSC_IOCCR_G8_IO2_Pos (29U)
  10372. #define TSC_IOCCR_G8_IO2_Msk (0x1U << TSC_IOCCR_G8_IO2_Pos) /*!< 0x20000000 */
  10373. #define TSC_IOCCR_G8_IO2 TSC_IOCCR_G8_IO2_Msk /*!<GROUP8_IO2 channel mode */
  10374. #define TSC_IOCCR_G8_IO3_Pos (30U)
  10375. #define TSC_IOCCR_G8_IO3_Msk (0x1U << TSC_IOCCR_G8_IO3_Pos) /*!< 0x40000000 */
  10376. #define TSC_IOCCR_G8_IO3 TSC_IOCCR_G8_IO3_Msk /*!<GROUP8_IO3 channel mode */
  10377. #define TSC_IOCCR_G8_IO4_Pos (31U)
  10378. #define TSC_IOCCR_G8_IO4_Msk (0x1U << TSC_IOCCR_G8_IO4_Pos) /*!< 0x80000000 */
  10379. #define TSC_IOCCR_G8_IO4 TSC_IOCCR_G8_IO4_Msk /*!<GROUP8_IO4 channel mode */
  10380. /******************* Bit definition for TSC_IOGCSR register *****************/
  10381. #define TSC_IOGCSR_G1E_Pos (0U)
  10382. #define TSC_IOGCSR_G1E_Msk (0x1U << TSC_IOGCSR_G1E_Pos) /*!< 0x00000001 */
  10383. #define TSC_IOGCSR_G1E TSC_IOGCSR_G1E_Msk /*!<Analog IO GROUP1 enable */
  10384. #define TSC_IOGCSR_G2E_Pos (1U)
  10385. #define TSC_IOGCSR_G2E_Msk (0x1U << TSC_IOGCSR_G2E_Pos) /*!< 0x00000002 */
  10386. #define TSC_IOGCSR_G2E TSC_IOGCSR_G2E_Msk /*!<Analog IO GROUP2 enable */
  10387. #define TSC_IOGCSR_G3E_Pos (2U)
  10388. #define TSC_IOGCSR_G3E_Msk (0x1U << TSC_IOGCSR_G3E_Pos) /*!< 0x00000004 */
  10389. #define TSC_IOGCSR_G3E TSC_IOGCSR_G3E_Msk /*!<Analog IO GROUP3 enable */
  10390. #define TSC_IOGCSR_G4E_Pos (3U)
  10391. #define TSC_IOGCSR_G4E_Msk (0x1U << TSC_IOGCSR_G4E_Pos) /*!< 0x00000008 */
  10392. #define TSC_IOGCSR_G4E TSC_IOGCSR_G4E_Msk /*!<Analog IO GROUP4 enable */
  10393. #define TSC_IOGCSR_G5E_Pos (4U)
  10394. #define TSC_IOGCSR_G5E_Msk (0x1U << TSC_IOGCSR_G5E_Pos) /*!< 0x00000010 */
  10395. #define TSC_IOGCSR_G5E TSC_IOGCSR_G5E_Msk /*!<Analog IO GROUP5 enable */
  10396. #define TSC_IOGCSR_G6E_Pos (5U)
  10397. #define TSC_IOGCSR_G6E_Msk (0x1U << TSC_IOGCSR_G6E_Pos) /*!< 0x00000020 */
  10398. #define TSC_IOGCSR_G6E TSC_IOGCSR_G6E_Msk /*!<Analog IO GROUP6 enable */
  10399. #define TSC_IOGCSR_G7E_Pos (6U)
  10400. #define TSC_IOGCSR_G7E_Msk (0x1U << TSC_IOGCSR_G7E_Pos) /*!< 0x00000040 */
  10401. #define TSC_IOGCSR_G7E TSC_IOGCSR_G7E_Msk /*!<Analog IO GROUP7 enable */
  10402. #define TSC_IOGCSR_G8E_Pos (7U)
  10403. #define TSC_IOGCSR_G8E_Msk (0x1U << TSC_IOGCSR_G8E_Pos) /*!< 0x00000080 */
  10404. #define TSC_IOGCSR_G8E TSC_IOGCSR_G8E_Msk /*!<Analog IO GROUP8 enable */
  10405. #define TSC_IOGCSR_G1S_Pos (16U)
  10406. #define TSC_IOGCSR_G1S_Msk (0x1U << TSC_IOGCSR_G1S_Pos) /*!< 0x00010000 */
  10407. #define TSC_IOGCSR_G1S TSC_IOGCSR_G1S_Msk /*!<Analog IO GROUP1 status */
  10408. #define TSC_IOGCSR_G2S_Pos (17U)
  10409. #define TSC_IOGCSR_G2S_Msk (0x1U << TSC_IOGCSR_G2S_Pos) /*!< 0x00020000 */
  10410. #define TSC_IOGCSR_G2S TSC_IOGCSR_G2S_Msk /*!<Analog IO GROUP2 status */
  10411. #define TSC_IOGCSR_G3S_Pos (18U)
  10412. #define TSC_IOGCSR_G3S_Msk (0x1U << TSC_IOGCSR_G3S_Pos) /*!< 0x00040000 */
  10413. #define TSC_IOGCSR_G3S TSC_IOGCSR_G3S_Msk /*!<Analog IO GROUP3 status */
  10414. #define TSC_IOGCSR_G4S_Pos (19U)
  10415. #define TSC_IOGCSR_G4S_Msk (0x1U << TSC_IOGCSR_G4S_Pos) /*!< 0x00080000 */
  10416. #define TSC_IOGCSR_G4S TSC_IOGCSR_G4S_Msk /*!<Analog IO GROUP4 status */
  10417. #define TSC_IOGCSR_G5S_Pos (20U)
  10418. #define TSC_IOGCSR_G5S_Msk (0x1U << TSC_IOGCSR_G5S_Pos) /*!< 0x00100000 */
  10419. #define TSC_IOGCSR_G5S TSC_IOGCSR_G5S_Msk /*!<Analog IO GROUP5 status */
  10420. #define TSC_IOGCSR_G6S_Pos (21U)
  10421. #define TSC_IOGCSR_G6S_Msk (0x1U << TSC_IOGCSR_G6S_Pos) /*!< 0x00200000 */
  10422. #define TSC_IOGCSR_G6S TSC_IOGCSR_G6S_Msk /*!<Analog IO GROUP6 status */
  10423. #define TSC_IOGCSR_G7S_Pos (22U)
  10424. #define TSC_IOGCSR_G7S_Msk (0x1U << TSC_IOGCSR_G7S_Pos) /*!< 0x00400000 */
  10425. #define TSC_IOGCSR_G7S TSC_IOGCSR_G7S_Msk /*!<Analog IO GROUP7 status */
  10426. #define TSC_IOGCSR_G8S_Pos (23U)
  10427. #define TSC_IOGCSR_G8S_Msk (0x1U << TSC_IOGCSR_G8S_Pos) /*!< 0x00800000 */
  10428. #define TSC_IOGCSR_G8S TSC_IOGCSR_G8S_Msk /*!<Analog IO GROUP8 status */
  10429. /******************* Bit definition for TSC_IOGXCR register *****************/
  10430. #define TSC_IOGXCR_CNT_Pos (0U)
  10431. #define TSC_IOGXCR_CNT_Msk (0x3FFFU << TSC_IOGXCR_CNT_Pos) /*!< 0x00003FFF */
  10432. #define TSC_IOGXCR_CNT TSC_IOGXCR_CNT_Msk /*!<CNT[13:0] bits (Counter value) */
  10433. /******************************************************************************/
  10434. /* */
  10435. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  10436. /* */
  10437. /******************************************************************************/
  10438. /*
  10439. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  10440. */
  10441. /* Support of 7 bits data length feature */
  10442. #define USART_7BITS_SUPPORT
  10443. /* Support of LIN feature */
  10444. #define USART_LIN_SUPPORT
  10445. /* Support of Smartcard feature */
  10446. #define USART_SMARTCARD_SUPPORT
  10447. /* Support of Irda feature */
  10448. #define USART_IRDA_SUPPORT
  10449. /* Support of Wake Up from Stop Mode feature */
  10450. #define USART_WUSM_SUPPORT
  10451. /* Support of Full Auto Baud rate feature (4 modes) activation */
  10452. #define USART_FABR_SUPPORT
  10453. /****************** Bit definition for USART_CR1 register *******************/
  10454. #define USART_CR1_UE_Pos (0U)
  10455. #define USART_CR1_UE_Msk (0x1U << USART_CR1_UE_Pos) /*!< 0x00000001 */
  10456. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  10457. #define USART_CR1_UESM_Pos (1U)
  10458. #define USART_CR1_UESM_Msk (0x1U << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  10459. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  10460. #define USART_CR1_RE_Pos (2U)
  10461. #define USART_CR1_RE_Msk (0x1U << USART_CR1_RE_Pos) /*!< 0x00000004 */
  10462. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  10463. #define USART_CR1_TE_Pos (3U)
  10464. #define USART_CR1_TE_Msk (0x1U << USART_CR1_TE_Pos) /*!< 0x00000008 */
  10465. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  10466. #define USART_CR1_IDLEIE_Pos (4U)
  10467. #define USART_CR1_IDLEIE_Msk (0x1U << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  10468. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  10469. #define USART_CR1_RXNEIE_Pos (5U)
  10470. #define USART_CR1_RXNEIE_Msk (0x1U << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  10471. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  10472. #define USART_CR1_TCIE_Pos (6U)
  10473. #define USART_CR1_TCIE_Msk (0x1U << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  10474. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  10475. #define USART_CR1_TXEIE_Pos (7U)
  10476. #define USART_CR1_TXEIE_Msk (0x1U << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  10477. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  10478. #define USART_CR1_PEIE_Pos (8U)
  10479. #define USART_CR1_PEIE_Msk (0x1U << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  10480. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  10481. #define USART_CR1_PS_Pos (9U)
  10482. #define USART_CR1_PS_Msk (0x1U << USART_CR1_PS_Pos) /*!< 0x00000200 */
  10483. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  10484. #define USART_CR1_PCE_Pos (10U)
  10485. #define USART_CR1_PCE_Msk (0x1U << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  10486. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  10487. #define USART_CR1_WAKE_Pos (11U)
  10488. #define USART_CR1_WAKE_Msk (0x1U << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  10489. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  10490. #define USART_CR1_M0_Pos (12U)
  10491. #define USART_CR1_M0_Msk (0x1U << USART_CR1_M0_Pos) /*!< 0x00001000 */
  10492. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length bit 0 */
  10493. #define USART_CR1_MME_Pos (13U)
  10494. #define USART_CR1_MME_Msk (0x1U << USART_CR1_MME_Pos) /*!< 0x00002000 */
  10495. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  10496. #define USART_CR1_CMIE_Pos (14U)
  10497. #define USART_CR1_CMIE_Msk (0x1U << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  10498. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  10499. #define USART_CR1_OVER8_Pos (15U)
  10500. #define USART_CR1_OVER8_Msk (0x1U << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  10501. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  10502. #define USART_CR1_DEDT_Pos (16U)
  10503. #define USART_CR1_DEDT_Msk (0x1FU << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  10504. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  10505. #define USART_CR1_DEDT_0 (0x01U << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  10506. #define USART_CR1_DEDT_1 (0x02U << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  10507. #define USART_CR1_DEDT_2 (0x04U << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  10508. #define USART_CR1_DEDT_3 (0x08U << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  10509. #define USART_CR1_DEDT_4 (0x10U << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  10510. #define USART_CR1_DEAT_Pos (21U)
  10511. #define USART_CR1_DEAT_Msk (0x1FU << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  10512. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  10513. #define USART_CR1_DEAT_0 (0x01U << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  10514. #define USART_CR1_DEAT_1 (0x02U << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  10515. #define USART_CR1_DEAT_2 (0x04U << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  10516. #define USART_CR1_DEAT_3 (0x08U << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  10517. #define USART_CR1_DEAT_4 (0x10U << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  10518. #define USART_CR1_RTOIE_Pos (26U)
  10519. #define USART_CR1_RTOIE_Msk (0x1U << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  10520. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */
  10521. #define USART_CR1_EOBIE_Pos (27U)
  10522. #define USART_CR1_EOBIE_Msk (0x1U << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  10523. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */
  10524. #define USART_CR1_M1_Pos (28U)
  10525. #define USART_CR1_M1_Msk (0x1U << USART_CR1_M1_Pos) /*!< 0x10000000 */
  10526. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length bit 1 */
  10527. #define USART_CR1_M_Pos (12U)
  10528. #define USART_CR1_M_Msk (0x10001U << USART_CR1_M_Pos) /*!< 0x10001000 */
  10529. #define USART_CR1_M USART_CR1_M_Msk /*!< [M1:M0] Word length */
  10530. /****************** Bit definition for USART_CR2 register *******************/
  10531. #define USART_CR2_ADDM7_Pos (4U)
  10532. #define USART_CR2_ADDM7_Msk (0x1U << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  10533. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  10534. #define USART_CR2_LBDL_Pos (5U)
  10535. #define USART_CR2_LBDL_Msk (0x1U << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  10536. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  10537. #define USART_CR2_LBDIE_Pos (6U)
  10538. #define USART_CR2_LBDIE_Msk (0x1U << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  10539. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  10540. #define USART_CR2_LBCL_Pos (8U)
  10541. #define USART_CR2_LBCL_Msk (0x1U << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  10542. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  10543. #define USART_CR2_CPHA_Pos (9U)
  10544. #define USART_CR2_CPHA_Msk (0x1U << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  10545. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  10546. #define USART_CR2_CPOL_Pos (10U)
  10547. #define USART_CR2_CPOL_Msk (0x1U << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  10548. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  10549. #define USART_CR2_CLKEN_Pos (11U)
  10550. #define USART_CR2_CLKEN_Msk (0x1U << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  10551. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  10552. #define USART_CR2_STOP_Pos (12U)
  10553. #define USART_CR2_STOP_Msk (0x3U << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  10554. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  10555. #define USART_CR2_STOP_0 (0x1U << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  10556. #define USART_CR2_STOP_1 (0x2U << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  10557. #define USART_CR2_LINEN_Pos (14U)
  10558. #define USART_CR2_LINEN_Msk (0x1U << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  10559. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  10560. #define USART_CR2_SWAP_Pos (15U)
  10561. #define USART_CR2_SWAP_Msk (0x1U << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  10562. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  10563. #define USART_CR2_RXINV_Pos (16U)
  10564. #define USART_CR2_RXINV_Msk (0x1U << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  10565. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  10566. #define USART_CR2_TXINV_Pos (17U)
  10567. #define USART_CR2_TXINV_Msk (0x1U << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  10568. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  10569. #define USART_CR2_DATAINV_Pos (18U)
  10570. #define USART_CR2_DATAINV_Msk (0x1U << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  10571. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  10572. #define USART_CR2_MSBFIRST_Pos (19U)
  10573. #define USART_CR2_MSBFIRST_Msk (0x1U << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  10574. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  10575. #define USART_CR2_ABREN_Pos (20U)
  10576. #define USART_CR2_ABREN_Msk (0x1U << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  10577. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  10578. #define USART_CR2_ABRMODE_Pos (21U)
  10579. #define USART_CR2_ABRMODE_Msk (0x3U << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  10580. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  10581. #define USART_CR2_ABRMODE_0 (0x1U << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  10582. #define USART_CR2_ABRMODE_1 (0x2U << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  10583. #define USART_CR2_RTOEN_Pos (23U)
  10584. #define USART_CR2_RTOEN_Msk (0x1U << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  10585. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  10586. #define USART_CR2_ADD_Pos (24U)
  10587. #define USART_CR2_ADD_Msk (0xFFU << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  10588. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  10589. /****************** Bit definition for USART_CR3 register *******************/
  10590. #define USART_CR3_EIE_Pos (0U)
  10591. #define USART_CR3_EIE_Msk (0x1U << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  10592. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  10593. #define USART_CR3_IREN_Pos (1U)
  10594. #define USART_CR3_IREN_Msk (0x1U << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  10595. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  10596. #define USART_CR3_IRLP_Pos (2U)
  10597. #define USART_CR3_IRLP_Msk (0x1U << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  10598. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  10599. #define USART_CR3_HDSEL_Pos (3U)
  10600. #define USART_CR3_HDSEL_Msk (0x1U << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  10601. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  10602. #define USART_CR3_NACK_Pos (4U)
  10603. #define USART_CR3_NACK_Msk (0x1U << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  10604. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  10605. #define USART_CR3_SCEN_Pos (5U)
  10606. #define USART_CR3_SCEN_Msk (0x1U << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  10607. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  10608. #define USART_CR3_DMAR_Pos (6U)
  10609. #define USART_CR3_DMAR_Msk (0x1U << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  10610. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  10611. #define USART_CR3_DMAT_Pos (7U)
  10612. #define USART_CR3_DMAT_Msk (0x1U << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  10613. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  10614. #define USART_CR3_RTSE_Pos (8U)
  10615. #define USART_CR3_RTSE_Msk (0x1U << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  10616. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  10617. #define USART_CR3_CTSE_Pos (9U)
  10618. #define USART_CR3_CTSE_Msk (0x1U << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  10619. #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */
  10620. #define USART_CR3_CTSIE_Pos (10U)
  10621. #define USART_CR3_CTSIE_Msk (0x1U << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  10622. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  10623. #define USART_CR3_ONEBIT_Pos (11U)
  10624. #define USART_CR3_ONEBIT_Msk (0x1U << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  10625. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  10626. #define USART_CR3_OVRDIS_Pos (12U)
  10627. #define USART_CR3_OVRDIS_Msk (0x1U << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  10628. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  10629. #define USART_CR3_DDRE_Pos (13U)
  10630. #define USART_CR3_DDRE_Msk (0x1U << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  10631. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  10632. #define USART_CR3_DEM_Pos (14U)
  10633. #define USART_CR3_DEM_Msk (0x1U << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  10634. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  10635. #define USART_CR3_DEP_Pos (15U)
  10636. #define USART_CR3_DEP_Msk (0x1U << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  10637. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  10638. #define USART_CR3_SCARCNT_Pos (17U)
  10639. #define USART_CR3_SCARCNT_Msk (0x7U << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  10640. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  10641. #define USART_CR3_SCARCNT_0 (0x1U << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  10642. #define USART_CR3_SCARCNT_1 (0x2U << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  10643. #define USART_CR3_SCARCNT_2 (0x4U << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  10644. #define USART_CR3_WUS_Pos (20U)
  10645. #define USART_CR3_WUS_Msk (0x3U << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  10646. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  10647. #define USART_CR3_WUS_0 (0x1U << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  10648. #define USART_CR3_WUS_1 (0x2U << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  10649. #define USART_CR3_WUFIE_Pos (22U)
  10650. #define USART_CR3_WUFIE_Msk (0x1U << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  10651. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  10652. /****************** Bit definition for USART_BRR register *******************/
  10653. #define USART_BRR_DIV_FRACTION_Pos (0U)
  10654. #define USART_BRR_DIV_FRACTION_Msk (0xFU << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */
  10655. #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */
  10656. #define USART_BRR_DIV_MANTISSA_Pos (4U)
  10657. #define USART_BRR_DIV_MANTISSA_Msk (0xFFFU << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */
  10658. #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */
  10659. /****************** Bit definition for USART_GTPR register ******************/
  10660. #define USART_GTPR_PSC_Pos (0U)
  10661. #define USART_GTPR_PSC_Msk (0xFFU << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  10662. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  10663. #define USART_GTPR_GT_Pos (8U)
  10664. #define USART_GTPR_GT_Msk (0xFFU << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  10665. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  10666. /******************* Bit definition for USART_RTOR register *****************/
  10667. #define USART_RTOR_RTO_Pos (0U)
  10668. #define USART_RTOR_RTO_Msk (0xFFFFFFU << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  10669. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */
  10670. #define USART_RTOR_BLEN_Pos (24U)
  10671. #define USART_RTOR_BLEN_Msk (0xFFU << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  10672. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  10673. /******************* Bit definition for USART_RQR register ******************/
  10674. #define USART_RQR_ABRRQ_Pos (0U)
  10675. #define USART_RQR_ABRRQ_Msk (0x1U << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  10676. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  10677. #define USART_RQR_SBKRQ_Pos (1U)
  10678. #define USART_RQR_SBKRQ_Msk (0x1U << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  10679. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  10680. #define USART_RQR_MMRQ_Pos (2U)
  10681. #define USART_RQR_MMRQ_Msk (0x1U << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  10682. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  10683. #define USART_RQR_RXFRQ_Pos (3U)
  10684. #define USART_RQR_RXFRQ_Msk (0x1U << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  10685. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  10686. #define USART_RQR_TXFRQ_Pos (4U)
  10687. #define USART_RQR_TXFRQ_Msk (0x1U << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  10688. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */
  10689. /******************* Bit definition for USART_ISR register ******************/
  10690. #define USART_ISR_PE_Pos (0U)
  10691. #define USART_ISR_PE_Msk (0x1U << USART_ISR_PE_Pos) /*!< 0x00000001 */
  10692. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  10693. #define USART_ISR_FE_Pos (1U)
  10694. #define USART_ISR_FE_Msk (0x1U << USART_ISR_FE_Pos) /*!< 0x00000002 */
  10695. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  10696. #define USART_ISR_NE_Pos (2U)
  10697. #define USART_ISR_NE_Msk (0x1U << USART_ISR_NE_Pos) /*!< 0x00000004 */
  10698. #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */
  10699. #define USART_ISR_ORE_Pos (3U)
  10700. #define USART_ISR_ORE_Msk (0x1U << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  10701. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  10702. #define USART_ISR_IDLE_Pos (4U)
  10703. #define USART_ISR_IDLE_Msk (0x1U << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  10704. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  10705. #define USART_ISR_RXNE_Pos (5U)
  10706. #define USART_ISR_RXNE_Msk (0x1U << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  10707. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  10708. #define USART_ISR_TC_Pos (6U)
  10709. #define USART_ISR_TC_Msk (0x1U << USART_ISR_TC_Pos) /*!< 0x00000040 */
  10710. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  10711. #define USART_ISR_TXE_Pos (7U)
  10712. #define USART_ISR_TXE_Msk (0x1U << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  10713. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  10714. #define USART_ISR_LBDF_Pos (8U)
  10715. #define USART_ISR_LBDF_Msk (0x1U << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  10716. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  10717. #define USART_ISR_CTSIF_Pos (9U)
  10718. #define USART_ISR_CTSIF_Msk (0x1U << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  10719. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */
  10720. #define USART_ISR_CTS_Pos (10U)
  10721. #define USART_ISR_CTS_Msk (0x1U << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  10722. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */
  10723. #define USART_ISR_RTOF_Pos (11U)
  10724. #define USART_ISR_RTOF_Msk (0x1U << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  10725. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */
  10726. #define USART_ISR_EOBF_Pos (12U)
  10727. #define USART_ISR_EOBF_Msk (0x1U << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  10728. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  10729. #define USART_ISR_ABRE_Pos (14U)
  10730. #define USART_ISR_ABRE_Msk (0x1U << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  10731. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  10732. #define USART_ISR_ABRF_Pos (15U)
  10733. #define USART_ISR_ABRF_Msk (0x1U << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  10734. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  10735. #define USART_ISR_BUSY_Pos (16U)
  10736. #define USART_ISR_BUSY_Msk (0x1U << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  10737. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  10738. #define USART_ISR_CMF_Pos (17U)
  10739. #define USART_ISR_CMF_Msk (0x1U << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  10740. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  10741. #define USART_ISR_SBKF_Pos (18U)
  10742. #define USART_ISR_SBKF_Msk (0x1U << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  10743. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  10744. #define USART_ISR_RWU_Pos (19U)
  10745. #define USART_ISR_RWU_Msk (0x1U << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  10746. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  10747. #define USART_ISR_WUF_Pos (20U)
  10748. #define USART_ISR_WUF_Msk (0x1U << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  10749. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  10750. #define USART_ISR_TEACK_Pos (21U)
  10751. #define USART_ISR_TEACK_Msk (0x1U << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  10752. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  10753. #define USART_ISR_REACK_Pos (22U)
  10754. #define USART_ISR_REACK_Msk (0x1U << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  10755. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  10756. /******************* Bit definition for USART_ICR register ******************/
  10757. #define USART_ICR_PECF_Pos (0U)
  10758. #define USART_ICR_PECF_Msk (0x1U << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  10759. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  10760. #define USART_ICR_FECF_Pos (1U)
  10761. #define USART_ICR_FECF_Msk (0x1U << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  10762. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  10763. #define USART_ICR_NCF_Pos (2U)
  10764. #define USART_ICR_NCF_Msk (0x1U << USART_ICR_NCF_Pos) /*!< 0x00000004 */
  10765. #define USART_ICR_NCF USART_ICR_NCF_Msk /*!< Noise detected Clear Flag */
  10766. #define USART_ICR_ORECF_Pos (3U)
  10767. #define USART_ICR_ORECF_Msk (0x1U << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  10768. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  10769. #define USART_ICR_IDLECF_Pos (4U)
  10770. #define USART_ICR_IDLECF_Msk (0x1U << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  10771. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  10772. #define USART_ICR_TCCF_Pos (6U)
  10773. #define USART_ICR_TCCF_Msk (0x1U << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  10774. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  10775. #define USART_ICR_LBDCF_Pos (8U)
  10776. #define USART_ICR_LBDCF_Msk (0x1U << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  10777. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  10778. #define USART_ICR_CTSCF_Pos (9U)
  10779. #define USART_ICR_CTSCF_Msk (0x1U << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  10780. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  10781. #define USART_ICR_RTOCF_Pos (11U)
  10782. #define USART_ICR_RTOCF_Msk (0x1U << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  10783. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  10784. #define USART_ICR_EOBCF_Pos (12U)
  10785. #define USART_ICR_EOBCF_Msk (0x1U << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  10786. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  10787. #define USART_ICR_CMCF_Pos (17U)
  10788. #define USART_ICR_CMCF_Msk (0x1U << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  10789. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  10790. #define USART_ICR_WUCF_Pos (20U)
  10791. #define USART_ICR_WUCF_Msk (0x1U << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  10792. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  10793. /******************* Bit definition for USART_RDR register ******************/
  10794. #define USART_RDR_RDR ((uint16_t)0x01FFU) /*!< RDR[8:0] bits (Receive Data value) */
  10795. /******************* Bit definition for USART_TDR register ******************/
  10796. #define USART_TDR_TDR ((uint16_t)0x01FFU) /*!< TDR[8:0] bits (Transmit Data value) */
  10797. /******************************************************************************/
  10798. /* */
  10799. /* Window WATCHDOG (WWDG) */
  10800. /* */
  10801. /******************************************************************************/
  10802. /******************* Bit definition for WWDG_CR register ********************/
  10803. #define WWDG_CR_T_Pos (0U)
  10804. #define WWDG_CR_T_Msk (0x7FU << WWDG_CR_T_Pos) /*!< 0x0000007F */
  10805. #define WWDG_CR_T WWDG_CR_T_Msk /*!< T[6:0] bits (7-Bit counter (MSB to LSB)) */
  10806. #define WWDG_CR_T_0 (0x01U << WWDG_CR_T_Pos) /*!< 0x00000001 */
  10807. #define WWDG_CR_T_1 (0x02U << WWDG_CR_T_Pos) /*!< 0x00000002 */
  10808. #define WWDG_CR_T_2 (0x04U << WWDG_CR_T_Pos) /*!< 0x00000004 */
  10809. #define WWDG_CR_T_3 (0x08U << WWDG_CR_T_Pos) /*!< 0x00000008 */
  10810. #define WWDG_CR_T_4 (0x10U << WWDG_CR_T_Pos) /*!< 0x00000010 */
  10811. #define WWDG_CR_T_5 (0x20U << WWDG_CR_T_Pos) /*!< 0x00000020 */
  10812. #define WWDG_CR_T_6 (0x40U << WWDG_CR_T_Pos) /*!< 0x00000040 */
  10813. /* Legacy defines */
  10814. #define WWDG_CR_T0 WWDG_CR_T_0
  10815. #define WWDG_CR_T1 WWDG_CR_T_1
  10816. #define WWDG_CR_T2 WWDG_CR_T_2
  10817. #define WWDG_CR_T3 WWDG_CR_T_3
  10818. #define WWDG_CR_T4 WWDG_CR_T_4
  10819. #define WWDG_CR_T5 WWDG_CR_T_5
  10820. #define WWDG_CR_T6 WWDG_CR_T_6
  10821. #define WWDG_CR_WDGA_Pos (7U)
  10822. #define WWDG_CR_WDGA_Msk (0x1U << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */
  10823. #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!< Activation bit */
  10824. /******************* Bit definition for WWDG_CFR register *******************/
  10825. #define WWDG_CFR_W_Pos (0U)
  10826. #define WWDG_CFR_W_Msk (0x7FU << WWDG_CFR_W_Pos) /*!< 0x0000007F */
  10827. #define WWDG_CFR_W WWDG_CFR_W_Msk /*!< W[6:0] bits (7-bit window value) */
  10828. #define WWDG_CFR_W_0 (0x01U << WWDG_CFR_W_Pos) /*!< 0x00000001 */
  10829. #define WWDG_CFR_W_1 (0x02U << WWDG_CFR_W_Pos) /*!< 0x00000002 */
  10830. #define WWDG_CFR_W_2 (0x04U << WWDG_CFR_W_Pos) /*!< 0x00000004 */
  10831. #define WWDG_CFR_W_3 (0x08U << WWDG_CFR_W_Pos) /*!< 0x00000008 */
  10832. #define WWDG_CFR_W_4 (0x10U << WWDG_CFR_W_Pos) /*!< 0x00000010 */
  10833. #define WWDG_CFR_W_5 (0x20U << WWDG_CFR_W_Pos) /*!< 0x00000020 */
  10834. #define WWDG_CFR_W_6 (0x40U << WWDG_CFR_W_Pos) /*!< 0x00000040 */
  10835. /* Legacy defines */
  10836. #define WWDG_CFR_W0 WWDG_CFR_W_0
  10837. #define WWDG_CFR_W1 WWDG_CFR_W_1
  10838. #define WWDG_CFR_W2 WWDG_CFR_W_2
  10839. #define WWDG_CFR_W3 WWDG_CFR_W_3
  10840. #define WWDG_CFR_W4 WWDG_CFR_W_4
  10841. #define WWDG_CFR_W5 WWDG_CFR_W_5
  10842. #define WWDG_CFR_W6 WWDG_CFR_W_6
  10843. #define WWDG_CFR_WDGTB_Pos (7U)
  10844. #define WWDG_CFR_WDGTB_Msk (0x3U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000180 */
  10845. #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!< WDGTB[1:0] bits (Timer Base) */
  10846. #define WWDG_CFR_WDGTB_0 (0x1U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000080 */
  10847. #define WWDG_CFR_WDGTB_1 (0x2U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000100 */
  10848. /* Legacy defines */
  10849. #define WWDG_CFR_WDGTB0 WWDG_CFR_WDGTB_0
  10850. #define WWDG_CFR_WDGTB1 WWDG_CFR_WDGTB_1
  10851. #define WWDG_CFR_EWI_Pos (9U)
  10852. #define WWDG_CFR_EWI_Msk (0x1U << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */
  10853. #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!< Early Wakeup Interrupt */
  10854. /******************* Bit definition for WWDG_SR register ********************/
  10855. #define WWDG_SR_EWIF_Pos (0U)
  10856. #define WWDG_SR_EWIF_Msk (0x1U << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */
  10857. #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!< Early Wakeup Interrupt Flag */
  10858. /**
  10859. * @}
  10860. */
  10861. /**
  10862. * @}
  10863. */
  10864. /** @addtogroup Exported_macro
  10865. * @{
  10866. */
  10867. /****************************** ADC Instances *********************************/
  10868. #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC1)
  10869. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC)
  10870. /******************************* CAN Instances ********************************/
  10871. #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN)
  10872. /****************************** COMP Instances *********************************/
  10873. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
  10874. ((INSTANCE) == COMP2))
  10875. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON)
  10876. #define IS_COMP_DAC1SWITCH_INSTANCE(INSTANCE) ((INSTANCE) == COMP1)
  10877. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2)
  10878. /****************************** CEC Instances *********************************/
  10879. #define IS_CEC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CEC)
  10880. /****************************** CRC Instances *********************************/
  10881. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
  10882. /******************************* DAC Instances ********************************/
  10883. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1)
  10884. /******************************* DMA Instances ********************************/
  10885. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \
  10886. ((INSTANCE) == DMA1_Channel2) || \
  10887. ((INSTANCE) == DMA1_Channel3) || \
  10888. ((INSTANCE) == DMA1_Channel4) || \
  10889. ((INSTANCE) == DMA1_Channel5) || \
  10890. ((INSTANCE) == DMA1_Channel6) || \
  10891. ((INSTANCE) == DMA1_Channel7) || \
  10892. ((INSTANCE) == DMA2_Channel1) || \
  10893. ((INSTANCE) == DMA2_Channel2) || \
  10894. ((INSTANCE) == DMA2_Channel3) || \
  10895. ((INSTANCE) == DMA2_Channel4) || \
  10896. ((INSTANCE) == DMA2_Channel5))
  10897. /****************************** GPIO Instances ********************************/
  10898. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10899. ((INSTANCE) == GPIOB) || \
  10900. ((INSTANCE) == GPIOC) || \
  10901. ((INSTANCE) == GPIOD) || \
  10902. ((INSTANCE) == GPIOE) || \
  10903. ((INSTANCE) == GPIOF))
  10904. /**************************** GPIO Alternate Function Instances ***************/
  10905. #define IS_GPIO_AF_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10906. ((INSTANCE) == GPIOB) || \
  10907. ((INSTANCE) == GPIOC) || \
  10908. ((INSTANCE) == GPIOD) || \
  10909. ((INSTANCE) == GPIOE) || \
  10910. ((INSTANCE) == GPIOF))
  10911. /****************************** GPIO Lock Instances ***************************/
  10912. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10913. ((INSTANCE) == GPIOB))
  10914. /****************************** I2C Instances *********************************/
  10915. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  10916. ((INSTANCE) == I2C2))
  10917. /****************** I2C Instances : wakeup capability from stop modes *********/
  10918. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  10919. /****************************** I2S Instances *********************************/
  10920. #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  10921. ((INSTANCE) == SPI2))
  10922. /****************************** IWDG Instances ********************************/
  10923. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG)
  10924. /****************************** RTC Instances *********************************/
  10925. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
  10926. /****************************** SMBUS Instances *********************************/
  10927. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  10928. /****************************** SPI Instances *********************************/
  10929. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  10930. ((INSTANCE) == SPI2))
  10931. /****************************** TIM Instances *********************************/
  10932. #define IS_TIM_INSTANCE(INSTANCE)\
  10933. (((INSTANCE) == TIM1) || \
  10934. ((INSTANCE) == TIM2) || \
  10935. ((INSTANCE) == TIM3) || \
  10936. ((INSTANCE) == TIM6) || \
  10937. ((INSTANCE) == TIM7) || \
  10938. ((INSTANCE) == TIM14) || \
  10939. ((INSTANCE) == TIM15) || \
  10940. ((INSTANCE) == TIM16) || \
  10941. ((INSTANCE) == TIM17))
  10942. #define IS_TIM_CC1_INSTANCE(INSTANCE)\
  10943. (((INSTANCE) == TIM1) || \
  10944. ((INSTANCE) == TIM2) || \
  10945. ((INSTANCE) == TIM3) || \
  10946. ((INSTANCE) == TIM14) || \
  10947. ((INSTANCE) == TIM15) || \
  10948. ((INSTANCE) == TIM16) || \
  10949. ((INSTANCE) == TIM17))
  10950. #define IS_TIM_CC2_INSTANCE(INSTANCE)\
  10951. (((INSTANCE) == TIM1) || \
  10952. ((INSTANCE) == TIM2) || \
  10953. ((INSTANCE) == TIM3) || \
  10954. ((INSTANCE) == TIM15))
  10955. #define IS_TIM_CC3_INSTANCE(INSTANCE)\
  10956. (((INSTANCE) == TIM1) || \
  10957. ((INSTANCE) == TIM2) || \
  10958. ((INSTANCE) == TIM3))
  10959. #define IS_TIM_CC4_INSTANCE(INSTANCE)\
  10960. (((INSTANCE) == TIM1) || \
  10961. ((INSTANCE) == TIM2) || \
  10962. ((INSTANCE) == TIM3))
  10963. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
  10964. (((INSTANCE) == TIM1) || \
  10965. ((INSTANCE) == TIM2) || \
  10966. ((INSTANCE) == TIM3))
  10967. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
  10968. (((INSTANCE) == TIM1) || \
  10969. ((INSTANCE) == TIM2) || \
  10970. ((INSTANCE) == TIM3))
  10971. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
  10972. (((INSTANCE) == TIM1) || \
  10973. ((INSTANCE) == TIM2) || \
  10974. ((INSTANCE) == TIM3) || \
  10975. ((INSTANCE) == TIM15))
  10976. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
  10977. (((INSTANCE) == TIM1) || \
  10978. ((INSTANCE) == TIM2) || \
  10979. ((INSTANCE) == TIM3) || \
  10980. ((INSTANCE) == TIM15))
  10981. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
  10982. (((INSTANCE) == TIM1) || \
  10983. ((INSTANCE) == TIM2) || \
  10984. ((INSTANCE) == TIM3))
  10985. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)\
  10986. (((INSTANCE) == TIM1) || \
  10987. ((INSTANCE) == TIM2) || \
  10988. ((INSTANCE) == TIM3))
  10989. #define IS_TIM_HALL_INTERFACE_INSTANCE(INSTANCE)\
  10990. (((INSTANCE) == TIM1))
  10991. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE)\
  10992. (((INSTANCE) == TIM1))
  10993. #define IS_TIM_ETR_INSTANCE(INSTANCE)\
  10994. (((INSTANCE) == TIM1) || \
  10995. ((INSTANCE) == TIM2) || \
  10996. ((INSTANCE) == TIM3))
  10997. #define IS_TIM_XOR_INSTANCE(INSTANCE)\
  10998. (((INSTANCE) == TIM1) || \
  10999. ((INSTANCE) == TIM2) || \
  11000. ((INSTANCE) == TIM3))
  11001. #define IS_TIM_MASTER_INSTANCE(INSTANCE)\
  11002. (((INSTANCE) == TIM1) || \
  11003. ((INSTANCE) == TIM2) || \
  11004. ((INSTANCE) == TIM3) || \
  11005. ((INSTANCE) == TIM6) || \
  11006. ((INSTANCE) == TIM7) || \
  11007. ((INSTANCE) == TIM15))
  11008. #define IS_TIM_SLAVE_INSTANCE(INSTANCE)\
  11009. (((INSTANCE) == TIM1) || \
  11010. ((INSTANCE) == TIM2) || \
  11011. ((INSTANCE) == TIM3) || \
  11012. ((INSTANCE) == TIM15))
  11013. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
  11014. ((INSTANCE) == TIM2)
  11015. #define IS_TIM_DMABURST_INSTANCE(INSTANCE)\
  11016. (((INSTANCE) == TIM1) || \
  11017. ((INSTANCE) == TIM2) || \
  11018. ((INSTANCE) == TIM3) || \
  11019. ((INSTANCE) == TIM15) || \
  11020. ((INSTANCE) == TIM16) || \
  11021. ((INSTANCE) == TIM17))
  11022. #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
  11023. (((INSTANCE) == TIM1) || \
  11024. ((INSTANCE) == TIM15) || \
  11025. ((INSTANCE) == TIM16) || \
  11026. ((INSTANCE) == TIM17))
  11027. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  11028. ((((INSTANCE) == TIM1) && \
  11029. (((CHANNEL) == TIM_CHANNEL_1) || \
  11030. ((CHANNEL) == TIM_CHANNEL_2) || \
  11031. ((CHANNEL) == TIM_CHANNEL_3) || \
  11032. ((CHANNEL) == TIM_CHANNEL_4))) \
  11033. || \
  11034. (((INSTANCE) == TIM2) && \
  11035. (((CHANNEL) == TIM_CHANNEL_1) || \
  11036. ((CHANNEL) == TIM_CHANNEL_2) || \
  11037. ((CHANNEL) == TIM_CHANNEL_3) || \
  11038. ((CHANNEL) == TIM_CHANNEL_4))) \
  11039. || \
  11040. (((INSTANCE) == TIM3) && \
  11041. (((CHANNEL) == TIM_CHANNEL_1) || \
  11042. ((CHANNEL) == TIM_CHANNEL_2) || \
  11043. ((CHANNEL) == TIM_CHANNEL_3) || \
  11044. ((CHANNEL) == TIM_CHANNEL_4))) \
  11045. || \
  11046. (((INSTANCE) == TIM14) && \
  11047. (((CHANNEL) == TIM_CHANNEL_1))) \
  11048. || \
  11049. (((INSTANCE) == TIM15) && \
  11050. (((CHANNEL) == TIM_CHANNEL_1) || \
  11051. ((CHANNEL) == TIM_CHANNEL_2))) \
  11052. || \
  11053. (((INSTANCE) == TIM16) && \
  11054. (((CHANNEL) == TIM_CHANNEL_1))) \
  11055. || \
  11056. (((INSTANCE) == TIM17) && \
  11057. (((CHANNEL) == TIM_CHANNEL_1))))
  11058. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  11059. ((((INSTANCE) == TIM1) && \
  11060. (((CHANNEL) == TIM_CHANNEL_1) || \
  11061. ((CHANNEL) == TIM_CHANNEL_2) || \
  11062. ((CHANNEL) == TIM_CHANNEL_3))) \
  11063. || \
  11064. (((INSTANCE) == TIM15) && \
  11065. ((CHANNEL) == TIM_CHANNEL_1)) \
  11066. || \
  11067. (((INSTANCE) == TIM16) && \
  11068. ((CHANNEL) == TIM_CHANNEL_1)) \
  11069. || \
  11070. (((INSTANCE) == TIM17) && \
  11071. ((CHANNEL) == TIM_CHANNEL_1)))
  11072. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
  11073. (((INSTANCE) == TIM1) || \
  11074. ((INSTANCE) == TIM2) || \
  11075. ((INSTANCE) == TIM3))
  11076. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
  11077. (((INSTANCE) == TIM1) || \
  11078. ((INSTANCE) == TIM15) || \
  11079. ((INSTANCE) == TIM16) || \
  11080. ((INSTANCE) == TIM17))
  11081. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
  11082. (((INSTANCE) == TIM1) || \
  11083. ((INSTANCE) == TIM2) || \
  11084. ((INSTANCE) == TIM3) || \
  11085. ((INSTANCE) == TIM14) || \
  11086. ((INSTANCE) == TIM15) || \
  11087. ((INSTANCE) == TIM16) || \
  11088. ((INSTANCE) == TIM17))
  11089. #define IS_TIM_DMA_INSTANCE(INSTANCE)\
  11090. (((INSTANCE) == TIM1) || \
  11091. ((INSTANCE) == TIM2) || \
  11092. ((INSTANCE) == TIM3) || \
  11093. ((INSTANCE) == TIM6) || \
  11094. ((INSTANCE) == TIM7) || \
  11095. ((INSTANCE) == TIM15) || \
  11096. ((INSTANCE) == TIM16) || \
  11097. ((INSTANCE) == TIM17))
  11098. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)\
  11099. (((INSTANCE) == TIM1) || \
  11100. ((INSTANCE) == TIM2) || \
  11101. ((INSTANCE) == TIM3) || \
  11102. ((INSTANCE) == TIM15) || \
  11103. ((INSTANCE) == TIM16) || \
  11104. ((INSTANCE) == TIM17))
  11105. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE)\
  11106. (((INSTANCE) == TIM1) || \
  11107. ((INSTANCE) == TIM15) || \
  11108. ((INSTANCE) == TIM16) || \
  11109. ((INSTANCE) == TIM17))
  11110. #define IS_TIM_REMAP_INSTANCE(INSTANCE)\
  11111. ((INSTANCE) == TIM14)
  11112. #define IS_TIM_ADVANCED_INSTANCE(INSTANCE)\
  11113. ((INSTANCE) == TIM1)
  11114. /****************************** TSC Instances *********************************/
  11115. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC)
  11116. /*********************** UART Instances : IRDA mode ***************************/
  11117. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11118. ((INSTANCE) == USART2) || \
  11119. ((INSTANCE) == USART3))
  11120. /********************* UART Instances : Smard card mode ***********************/
  11121. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11122. ((INSTANCE) == USART2) || \
  11123. ((INSTANCE) == USART3))
  11124. /******************** USART Instances : Synchronous mode **********************/
  11125. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11126. ((INSTANCE) == USART2) || \
  11127. ((INSTANCE) == USART3) || \
  11128. ((INSTANCE) == USART4) || \
  11129. ((INSTANCE) == USART5) || \
  11130. ((INSTANCE) == USART6) || \
  11131. ((INSTANCE) == USART7) || \
  11132. ((INSTANCE) == USART8))
  11133. /******************** USART Instances : auto Baud rate detection **************/
  11134. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11135. ((INSTANCE) == USART2) || \
  11136. ((INSTANCE) == USART3))
  11137. /******************** UART Instances : Asynchronous mode **********************/
  11138. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11139. ((INSTANCE) == USART2) || \
  11140. ((INSTANCE) == USART3) || \
  11141. ((INSTANCE) == USART4) || \
  11142. ((INSTANCE) == USART5) || \
  11143. ((INSTANCE) == USART6) || \
  11144. ((INSTANCE) == USART7) || \
  11145. ((INSTANCE) == USART8))
  11146. /******************** UART Instances : Half-Duplex mode **********************/
  11147. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11148. ((INSTANCE) == USART2) || \
  11149. ((INSTANCE) == USART3) || \
  11150. ((INSTANCE) == USART4) || \
  11151. ((INSTANCE) == USART5) || \
  11152. ((INSTANCE) == USART6) || \
  11153. ((INSTANCE) == USART7) || \
  11154. ((INSTANCE) == USART8))
  11155. /****************** UART Instances : Hardware Flow control ********************/
  11156. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11157. ((INSTANCE) == USART2) || \
  11158. ((INSTANCE) == USART3) || \
  11159. ((INSTANCE) == USART4))
  11160. /****************** UART Instances : LIN mode ********************/
  11161. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11162. ((INSTANCE) == USART2) || \
  11163. ((INSTANCE) == USART3))
  11164. /****************** UART Instances : wakeup from stop mode ********************/
  11165. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11166. ((INSTANCE) == USART2) || \
  11167. ((INSTANCE) == USART3))
  11168. /* Old macro definition maintained for legacy purpose */
  11169. #define IS_UART_WAKEUP_INSTANCE IS_UART_WAKEUP_FROMSTOP_INSTANCE
  11170. /****************** UART Instances : Driver enable detection ********************/
  11171. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11172. ((INSTANCE) == USART2) || \
  11173. ((INSTANCE) == USART3) || \
  11174. ((INSTANCE) == USART4) || \
  11175. ((INSTANCE) == USART5) || \
  11176. ((INSTANCE) == USART6) || \
  11177. ((INSTANCE) == USART7) || \
  11178. ((INSTANCE) == USART8))
  11179. /****************************** WWDG Instances ********************************/
  11180. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG)
  11181. /**
  11182. * @}
  11183. */
  11184. /******************************************************************************/
  11185. /* For a painless codes migration between the STM32F0xx device product */
  11186. /* lines, the aliases defined below are put in place to overcome the */
  11187. /* differences in the interrupt handlers and IRQn definitions. */
  11188. /* No need to update developed interrupt code when moving across */
  11189. /* product lines within the same STM32F0 Family */
  11190. /******************************************************************************/
  11191. /* Aliases for __IRQn */
  11192. #define ADC1_IRQn ADC1_COMP_IRQn
  11193. #define DMA1_Channel1_IRQn DMA1_Ch1_IRQn
  11194. #define DMA1_Channel2_3_IRQn DMA1_Ch2_3_DMA2_Ch1_2_IRQn
  11195. #define DMA1_Channel4_5_6_7_IRQn DMA1_Ch4_7_DMA2_Ch3_5_IRQn
  11196. #define DMA1_Channel4_5_IRQn DMA1_Ch4_7_DMA2_Ch3_5_IRQn
  11197. #define RCC_IRQn RCC_CRS_IRQn
  11198. #define TIM6_IRQn TIM6_DAC_IRQn
  11199. #define USART3_4_IRQn USART3_8_IRQn
  11200. #define USART3_6_IRQn USART3_8_IRQn
  11201. #define PVD_IRQn VDDIO2_IRQn
  11202. #define PVD_VDDIO2_IRQn VDDIO2_IRQn
  11203. /* Aliases for __IRQHandler */
  11204. #define ADC1_IRQHandler ADC1_COMP_IRQHandler
  11205. #define DMA1_Channel1_IRQHandler DMA1_Ch1_IRQHandler
  11206. #define DMA1_Channel2_3_IRQHandler DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler
  11207. #define DMA1_Channel4_5_6_7_IRQHandler DMA1_Ch4_7_DMA2_Ch3_5_IRQHandler
  11208. #define DMA1_Channel4_5_IRQHandler DMA1_Ch4_7_DMA2_Ch3_5_IRQHandler
  11209. #define RCC_IRQHandler RCC_CRS_IRQHandler
  11210. #define TIM6_IRQHandler TIM6_DAC_IRQHandler
  11211. #define USART3_4_IRQHandler USART3_8_IRQHandler
  11212. #define USART3_6_IRQHandler USART3_8_IRQHandler
  11213. #define PVD_IRQHandler VDDIO2_IRQHandler
  11214. #define PVD_VDDIO2_IRQHandler VDDIO2_IRQHandler
  11215. #ifdef __cplusplus
  11216. }
  11217. #endif /* __cplusplus */
  11218. #endif /* __STM32F098xx_H */
  11219. /**
  11220. * @}
  11221. */
  11222. /**
  11223. * @}
  11224. */
  11225. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/