stm32f303x8.h 994 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158
  1. /**
  2. ******************************************************************************
  3. * @file stm32f303x8.h
  4. * @author MCD Application Team
  5. * @brief CMSIS STM32F303x8 Devices Peripheral Access Layer Header File.
  6. *
  7. * This file contains:
  8. * - Data structures and the address mapping for all peripherals
  9. * - Peripheral's registers declarations and bits definition
  10. * - Macros to access peripheral’s registers hardware
  11. *
  12. ******************************************************************************
  13. * @attention
  14. *
  15. * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
  16. *
  17. * Redistribution and use in source and binary forms, with or without modification,
  18. * are permitted provided that the following conditions are met:
  19. * 1. Redistributions of source code must retain the above copyright notice,
  20. * this list of conditions and the following disclaimer.
  21. * 2. Redistributions in binary form must reproduce the above copyright notice,
  22. * this list of conditions and the following disclaimer in the documentation
  23. * and/or other materials provided with the distribution.
  24. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  25. * may be used to endorse or promote products derived from this software
  26. * without specific prior written permission.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  29. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  31. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  32. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  34. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  35. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  36. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  37. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. ******************************************************************************
  40. */
  41. /** @addtogroup CMSIS_Device
  42. * @{
  43. */
  44. /** @addtogroup stm32f303x8
  45. * @{
  46. */
  47. #ifndef __STM32F303x8_H
  48. #define __STM32F303x8_H
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif /* __cplusplus */
  52. /** @addtogroup Configuration_section_for_CMSIS
  53. * @{
  54. */
  55. /**
  56. * @brief Configuration of the Cortex-M4 Processor and Core Peripherals
  57. */
  58. #define __CM4_REV 0x0001U /*!< Core revision r0p1 */
  59. #define __MPU_PRESENT 0U /*!< STM32F303x8 devices do not provide an MPU */
  60. #define __NVIC_PRIO_BITS 4U /*!< STM32F303x8 devices use 4 Bits for the Priority Levels */
  61. #define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
  62. #define __FPU_PRESENT 1U /*!< STM32F303x8 devices provide an FPU */
  63. /**
  64. * @}
  65. */
  66. /** @addtogroup Peripheral_interrupt_number_definition
  67. * @{
  68. */
  69. /**
  70. * @brief STM32F303x8 devices Interrupt Number Definition, according to the selected device
  71. * in @ref Library_configuration_section
  72. */
  73. typedef enum
  74. {
  75. /****** Cortex-M4 Processor Exceptions Numbers ****************************************************************/
  76. NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
  77. HardFault_IRQn = -13, /*!< 3 Cortex-M4 Hard Fault Interrupt */
  78. MemoryManagement_IRQn = -12, /*!< 4 Cortex-M4 Memory Management Interrupt */
  79. BusFault_IRQn = -11, /*!< 5 Cortex-M4 Bus Fault Interrupt */
  80. UsageFault_IRQn = -10, /*!< 6 Cortex-M4 Usage Fault Interrupt */
  81. SVCall_IRQn = -5, /*!< 11 Cortex-M4 SV Call Interrupt */
  82. DebugMonitor_IRQn = -4, /*!< 12 Cortex-M4 Debug Monitor Interrupt */
  83. PendSV_IRQn = -2, /*!< 14 Cortex-M4 Pend SV Interrupt */
  84. SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */
  85. /****** STM32 specific Interrupt Numbers **********************************************************************/
  86. WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
  87. PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */
  88. TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line 19 */
  89. RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line 20 */
  90. FLASH_IRQn = 4, /*!< FLASH global Interrupt */
  91. RCC_IRQn = 5, /*!< RCC global Interrupt */
  92. EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
  93. EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
  94. EXTI2_TSC_IRQn = 8, /*!< EXTI Line2 Interrupt and Touch Sense Controller Interrupt */
  95. EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
  96. EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
  97. DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 Interrupt */
  98. DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 Interrupt */
  99. DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 Interrupt */
  100. DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 Interrupt */
  101. DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 Interrupt */
  102. DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 Interrupt */
  103. DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 Interrupt */
  104. ADC1_2_IRQn = 18, /*!< ADC1 & ADC2 Interrupts */
  105. CAN_TX_IRQn = 19, /*!< CAN TX Interrupt */
  106. CAN_RX0_IRQn = 20, /*!< CAN RX0 Interrupt */
  107. CAN_RX1_IRQn = 21, /*!< CAN RX1 Interrupt */
  108. CAN_SCE_IRQn = 22, /*!< CAN SCE Interrupt */
  109. EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */
  110. TIM1_BRK_TIM15_IRQn = 24, /*!< TIM1 Break and TIM15 Interrupts */
  111. TIM1_UP_TIM16_IRQn = 25, /*!< TIM1 Update and TIM16 Interrupts */
  112. TIM1_TRG_COM_TIM17_IRQn = 26, /*!< TIM1 Trigger and Commutation and TIM17 Interrupt */
  113. TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */
  114. TIM2_IRQn = 28, /*!< TIM2 global Interrupt */
  115. TIM3_IRQn = 29, /*!< TIM3 global Interrupt */
  116. I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt & EXTI Line23 Interrupt (I2C1 wakeup) */
  117. I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */
  118. SPI1_IRQn = 35, /*!< SPI1 global Interrupt */
  119. USART1_IRQn = 37, /*!< USART1 global Interrupt & EXTI Line25 Interrupt (USART1 wakeup) */
  120. USART2_IRQn = 38, /*!< USART2 global Interrupt & EXTI Line26 Interrupt (USART2 wakeup) */
  121. USART3_IRQn = 39, /*!< USART3 global Interrupt & EXTI Line28 Interrupt (USART3 wakeup) */
  122. EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */
  123. RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line 17 Interrupt */
  124. TIM6_DAC1_IRQn = 54, /*!< TIM6 global and DAC1 underrun error Interrupts*/
  125. TIM7_DAC2_IRQn = 55, /*!< TIM7 global and DAC2 channel1 underrun error Interrupt */
  126. COMP2_IRQn = 64, /*!< COMP2 global Interrupt via EXTI Line22 */
  127. COMP4_6_IRQn = 65, /*!< COMP4 and COMP6 global Interrupt via EXTI Line30 and 32 */
  128. FPU_IRQn = 81, /*!< Floating point Interrupt */
  129. } IRQn_Type;
  130. /**
  131. * @}
  132. */
  133. #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
  134. #include "system_stm32f3xx.h" /* STM32F3xx System Header */
  135. #include <stdint.h>
  136. /** @addtogroup Peripheral_registers_structures
  137. * @{
  138. */
  139. /**
  140. * @brief Analog to Digital Converter
  141. */
  142. typedef struct
  143. {
  144. __IO uint32_t ISR; /*!< ADC Interrupt and Status Register, Address offset: 0x00 */
  145. __IO uint32_t IER; /*!< ADC Interrupt Enable Register, Address offset: 0x04 */
  146. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  147. __IO uint32_t CFGR; /*!< ADC Configuration register, Address offset: 0x0C */
  148. uint32_t RESERVED0; /*!< Reserved, 0x010 */
  149. __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x14 */
  150. __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x18 */
  151. uint32_t RESERVED1; /*!< Reserved, 0x01C */
  152. __IO uint32_t TR1; /*!< ADC watchdog threshold register 1, Address offset: 0x20 */
  153. __IO uint32_t TR2; /*!< ADC watchdog threshold register 2, Address offset: 0x24 */
  154. __IO uint32_t TR3; /*!< ADC watchdog threshold register 3, Address offset: 0x28 */
  155. uint32_t RESERVED2; /*!< Reserved, 0x02C */
  156. __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x30 */
  157. __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x34 */
  158. __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x38 */
  159. __IO uint32_t SQR4; /*!< ADC regular sequence register 4, Address offset: 0x3C */
  160. __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x40 */
  161. uint32_t RESERVED3; /*!< Reserved, 0x044 */
  162. uint32_t RESERVED4; /*!< Reserved, 0x048 */
  163. __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x4C */
  164. uint32_t RESERVED5[4]; /*!< Reserved, 0x050 - 0x05C */
  165. __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
  166. __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
  167. __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
  168. __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
  169. uint32_t RESERVED6[4]; /*!< Reserved, 0x070 - 0x07C */
  170. __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x80 */
  171. __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x84 */
  172. __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x88 */
  173. __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x8C */
  174. uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
  175. __IO uint32_t AWD2CR; /*!< ADC Analog Watchdog 2 Configuration Register, Address offset: 0xA0 */
  176. __IO uint32_t AWD3CR; /*!< ADC Analog Watchdog 3 Configuration Register, Address offset: 0xA4 */
  177. uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
  178. uint32_t RESERVED9; /*!< Reserved, 0x0AC */
  179. __IO uint32_t DIFSEL; /*!< ADC Differential Mode Selection Register, Address offset: 0xB0 */
  180. __IO uint32_t CALFACT; /*!< ADC Calibration Factors, Address offset: 0xB4 */
  181. } ADC_TypeDef;
  182. typedef struct
  183. {
  184. __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1/3 base address + 0x300 */
  185. uint32_t RESERVED; /*!< Reserved, ADC1/3 base address + 0x304 */
  186. __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1/3 base address + 0x308 */
  187. __IO uint32_t CDR; /*!< ADC common regular data register for dual
  188. AND triple modes, Address offset: ADC1/3 base address + 0x30C */
  189. } ADC_Common_TypeDef;
  190. /**
  191. * @brief Controller Area Network TxMailBox
  192. */
  193. typedef struct
  194. {
  195. __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */
  196. __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */
  197. __IO uint32_t TDLR; /*!< CAN mailbox data low register */
  198. __IO uint32_t TDHR; /*!< CAN mailbox data high register */
  199. } CAN_TxMailBox_TypeDef;
  200. /**
  201. * @brief Controller Area Network FIFOMailBox
  202. */
  203. typedef struct
  204. {
  205. __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */
  206. __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */
  207. __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */
  208. __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */
  209. } CAN_FIFOMailBox_TypeDef;
  210. /**
  211. * @brief Controller Area Network FilterRegister
  212. */
  213. typedef struct
  214. {
  215. __IO uint32_t FR1; /*!< CAN Filter bank register 1 */
  216. __IO uint32_t FR2; /*!< CAN Filter bank register 1 */
  217. } CAN_FilterRegister_TypeDef;
  218. /**
  219. * @brief Controller Area Network
  220. */
  221. typedef struct
  222. {
  223. __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */
  224. __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */
  225. __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */
  226. __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */
  227. __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */
  228. __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */
  229. __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */
  230. __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */
  231. uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */
  232. CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */
  233. CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */
  234. uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */
  235. __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */
  236. __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */
  237. uint32_t RESERVED2; /*!< Reserved, 0x208 */
  238. __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */
  239. uint32_t RESERVED3; /*!< Reserved, 0x210 */
  240. __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */
  241. uint32_t RESERVED4; /*!< Reserved, 0x218 */
  242. __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */
  243. uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */
  244. CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */
  245. } CAN_TypeDef;
  246. /**
  247. * @brief Analog Comparators
  248. */
  249. typedef struct
  250. {
  251. __IO uint32_t CSR; /*!< COMP control and status register, Address offset: 0x00 */
  252. } COMP_TypeDef;
  253. typedef struct
  254. {
  255. __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  256. } COMP_Common_TypeDef;
  257. /**
  258. * @brief CRC calculation unit
  259. */
  260. typedef struct
  261. {
  262. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  263. __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  264. uint8_t RESERVED0; /*!< Reserved, 0x05 */
  265. uint16_t RESERVED1; /*!< Reserved, 0x06 */
  266. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  267. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  268. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  269. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  270. } CRC_TypeDef;
  271. /**
  272. * @brief Digital to Analog Converter
  273. */
  274. typedef struct
  275. {
  276. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  277. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  278. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  279. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  280. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  281. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  282. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  283. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  284. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  285. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  286. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  287. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  288. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  289. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  290. } DAC_TypeDef;
  291. /**
  292. * @brief Debug MCU
  293. */
  294. typedef struct
  295. {
  296. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  297. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  298. __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */
  299. __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */
  300. }DBGMCU_TypeDef;
  301. /**
  302. * @brief DMA Controller
  303. */
  304. typedef struct
  305. {
  306. __IO uint32_t CCR; /*!< DMA channel x configuration register */
  307. __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
  308. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
  309. __IO uint32_t CMAR; /*!< DMA channel x memory address register */
  310. } DMA_Channel_TypeDef;
  311. typedef struct
  312. {
  313. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  314. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  315. } DMA_TypeDef;
  316. /**
  317. * @brief External Interrupt/Event Controller
  318. */
  319. typedef struct
  320. {
  321. __IO uint32_t IMR; /*!<EXTI Interrupt mask register, Address offset: 0x00 */
  322. __IO uint32_t EMR; /*!<EXTI Event mask register, Address offset: 0x04 */
  323. __IO uint32_t RTSR; /*!<EXTI Rising trigger selection register , Address offset: 0x08 */
  324. __IO uint32_t FTSR; /*!<EXTI Falling trigger selection register, Address offset: 0x0C */
  325. __IO uint32_t SWIER; /*!<EXTI Software interrupt event register, Address offset: 0x10 */
  326. __IO uint32_t PR; /*!<EXTI Pending register, Address offset: 0x14 */
  327. uint32_t RESERVED1; /*!< Reserved, 0x18 */
  328. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  329. __IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x20 */
  330. __IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x24 */
  331. __IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register, Address offset: 0x28 */
  332. __IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register, Address offset: 0x2C */
  333. __IO uint32_t SWIER2; /*!< EXTI Software interrupt event register, Address offset: 0x30 */
  334. __IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x34 */
  335. }EXTI_TypeDef;
  336. /**
  337. * @brief FLASH Registers
  338. */
  339. typedef struct
  340. {
  341. __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
  342. __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x04 */
  343. __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x08 */
  344. __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x0C */
  345. __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x10 */
  346. __IO uint32_t AR; /*!< FLASH address register, Address offset: 0x14 */
  347. uint32_t RESERVED; /*!< Reserved, 0x18 */
  348. __IO uint32_t OBR; /*!< FLASH Option byte register, Address offset: 0x1C */
  349. __IO uint32_t WRPR; /*!< FLASH Write register, Address offset: 0x20 */
  350. } FLASH_TypeDef;
  351. /**
  352. * @brief Option Bytes Registers
  353. */
  354. typedef struct
  355. {
  356. __IO uint16_t RDP; /*!<FLASH option byte Read protection, Address offset: 0x00 */
  357. __IO uint16_t USER; /*!<FLASH option byte user options, Address offset: 0x02 */
  358. uint16_t RESERVED0; /*!< Reserved, 0x04 */
  359. uint16_t RESERVED1; /*!< Reserved, 0x06 */
  360. __IO uint16_t WRP0; /*!<FLASH option byte write protection 0, Address offset: 0x08 */
  361. __IO uint16_t WRP1; /*!<FLASH option byte write protection 1, Address offset: 0x0C */
  362. __IO uint16_t WRP2; /*!<FLASH option byte write protection 2, Address offset: 0x10 */
  363. __IO uint16_t WRP3; /*!<FLASH option byte write protection 3, Address offset: 0x12 */
  364. } OB_TypeDef;
  365. /**
  366. * @brief General Purpose I/O
  367. */
  368. typedef struct
  369. {
  370. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  371. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  372. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  373. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  374. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  375. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  376. __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x1A */
  377. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  378. __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
  379. __IO uint32_t BRR; /*!< GPIO bit reset register, Address offset: 0x28 */
  380. }GPIO_TypeDef;
  381. /**
  382. * @brief Operational Amplifier (OPAMP)
  383. */
  384. typedef struct
  385. {
  386. __IO uint32_t CSR; /*!< OPAMP control and status register, Address offset: 0x00 */
  387. } OPAMP_TypeDef;
  388. /**
  389. * @brief System configuration controller
  390. */
  391. typedef struct
  392. {
  393. __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x00 */
  394. __IO uint32_t RCR; /*!< SYSCFG CCM SRAM protection register, Address offset: 0x04 */
  395. __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x14-0x08 */
  396. __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x18 */
  397. __IO uint32_t RESERVED0; /*!< Reserved, 0x1C */
  398. __IO uint32_t RESERVED1; /*!< Reserved, 0x20 */
  399. __IO uint32_t RESERVED2; /*!< Reserved, 0x24 */
  400. __IO uint32_t RESERVED4; /*!< Reserved, 0x28 */
  401. __IO uint32_t RESERVED5; /*!< Reserved, 0x2C */
  402. __IO uint32_t RESERVED6; /*!< Reserved, 0x30 */
  403. __IO uint32_t RESERVED7; /*!< Reserved, 0x34 */
  404. __IO uint32_t RESERVED8; /*!< Reserved, 0x38 */
  405. __IO uint32_t RESERVED9; /*!< Reserved, 0x3C */
  406. __IO uint32_t RESERVED10; /*!< Reserved, 0x40 */
  407. __IO uint32_t RESERVED11; /*!< Reserved, 0x44 */
  408. __IO uint32_t RESERVED12; /*!< Reserved, 0x48 */
  409. __IO uint32_t RESERVED13; /*!< Reserved, 0x4C */
  410. __IO uint32_t CFGR3; /*!< SYSCFG configuration register 3, Address offset: 0x50 */
  411. } SYSCFG_TypeDef;
  412. /**
  413. * @brief Inter-integrated Circuit Interface
  414. */
  415. typedef struct
  416. {
  417. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  418. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  419. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  420. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  421. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  422. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  423. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  424. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  425. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  426. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  427. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  428. }I2C_TypeDef;
  429. /**
  430. * @brief Independent WATCHDOG
  431. */
  432. typedef struct
  433. {
  434. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  435. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  436. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  437. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  438. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  439. } IWDG_TypeDef;
  440. /**
  441. * @brief Power Control
  442. */
  443. typedef struct
  444. {
  445. __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */
  446. __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */
  447. } PWR_TypeDef;
  448. /**
  449. * @brief Reset and Clock Control
  450. */
  451. typedef struct
  452. {
  453. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  454. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x04 */
  455. __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x08 */
  456. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x0C */
  457. __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x10 */
  458. __IO uint32_t AHBENR; /*!< RCC AHB peripheral clock register, Address offset: 0x14 */
  459. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x18 */
  460. __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x1C */
  461. __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x20 */
  462. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x24 */
  463. __IO uint32_t AHBRSTR; /*!< RCC AHB peripheral reset register, Address offset: 0x28 */
  464. __IO uint32_t CFGR2; /*!< RCC clock configuration register 2, Address offset: 0x2C */
  465. __IO uint32_t CFGR3; /*!< RCC clock configuration register 3, Address offset: 0x30 */
  466. } RCC_TypeDef;
  467. /**
  468. * @brief Real-Time Clock
  469. */
  470. typedef struct
  471. {
  472. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  473. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  474. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
  475. __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
  476. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  477. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  478. uint32_t RESERVED0; /*!< Reserved, 0x18 */
  479. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
  480. __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */
  481. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  482. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
  483. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  484. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  485. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  486. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  487. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  488. __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
  489. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  490. __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */
  491. uint32_t RESERVED7; /*!< Reserved, 0x4C */
  492. __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  493. __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  494. __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  495. __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  496. __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  497. } RTC_TypeDef;
  498. /**
  499. * @brief Serial Peripheral Interface
  500. */
  501. typedef struct
  502. {
  503. __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */
  504. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  505. __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
  506. __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
  507. __IO uint32_t CRCPR; /*!< SPI CRC polynomial register, Address offset: 0x10 */
  508. __IO uint32_t RXCRCR; /*!< SPI Rx CRC register, Address offset: 0x14 */
  509. __IO uint32_t TXCRCR; /*!< SPI Tx CRC register, Address offset: 0x18 */
  510. } SPI_TypeDef;
  511. /**
  512. * @brief TIM
  513. */
  514. typedef struct
  515. {
  516. __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  517. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  518. __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
  519. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  520. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  521. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  522. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  523. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  524. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  525. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  526. __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */
  527. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  528. __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  529. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  530. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  531. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  532. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  533. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  534. __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  535. __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
  536. __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */
  537. __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
  538. __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
  539. __IO uint32_t CCR6; /*!< TIM capture/compare register 4, Address offset: 0x5C */
  540. } TIM_TypeDef;
  541. /**
  542. * @brief Touch Sensing Controller (TSC)
  543. */
  544. typedef struct
  545. {
  546. __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
  547. __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
  548. __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
  549. __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
  550. __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
  551. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  552. __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
  553. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
  554. __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
  555. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
  556. __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
  557. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
  558. __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
  559. __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
  560. } TSC_TypeDef;
  561. /**
  562. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  563. */
  564. typedef struct
  565. {
  566. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  567. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  568. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  569. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  570. __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  571. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  572. __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
  573. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  574. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  575. __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  576. uint16_t RESERVED1; /*!< Reserved, 0x26 */
  577. __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  578. uint16_t RESERVED2; /*!< Reserved, 0x2A */
  579. } USART_TypeDef;
  580. /**
  581. * @brief Window WATCHDOG
  582. */
  583. typedef struct
  584. {
  585. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  586. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  587. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  588. } WWDG_TypeDef;
  589. /** @addtogroup Peripheral_memory_map
  590. * @{
  591. */
  592. #define FLASH_BASE ((uint32_t)0x08000000U) /*!< FLASH base address in the alias region */
  593. #define CCMDATARAM_BASE ((uint32_t)0x10000000U) /*!< CCM(core coupled memory) data RAM base address in the alias region */
  594. #define SRAM_BASE ((uint32_t)0x20000000U) /*!< SRAM base address in the alias region */
  595. #define PERIPH_BASE ((uint32_t)0x40000000U) /*!< Peripheral base address in the alias region */
  596. #define SRAM_BB_BASE ((uint32_t)0x22000000U) /*!< SRAM base address in the bit-band region */
  597. #define PERIPH_BB_BASE ((uint32_t)0x42000000U) /*!< Peripheral base address in the bit-band region */
  598. /*!< Peripheral memory map */
  599. #define APB1PERIPH_BASE PERIPH_BASE
  600. #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000U)
  601. #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000U)
  602. #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000U)
  603. #define AHB3PERIPH_BASE (PERIPH_BASE + 0x10000000U)
  604. /*!< APB1 peripherals */
  605. #define TIM2_BASE (APB1PERIPH_BASE + 0x00000000U)
  606. #define TIM3_BASE (APB1PERIPH_BASE + 0x00000400U)
  607. #define TIM6_BASE (APB1PERIPH_BASE + 0x00001000U)
  608. #define TIM7_BASE (APB1PERIPH_BASE + 0x00001400U)
  609. #define RTC_BASE (APB1PERIPH_BASE + 0x00002800U)
  610. #define WWDG_BASE (APB1PERIPH_BASE + 0x00002C00U)
  611. #define IWDG_BASE (APB1PERIPH_BASE + 0x00003000U)
  612. #define USART2_BASE (APB1PERIPH_BASE + 0x00004400U)
  613. #define USART3_BASE (APB1PERIPH_BASE + 0x00004800U)
  614. #define I2C1_BASE (APB1PERIPH_BASE + 0x00005400U)
  615. #define CAN_BASE (APB1PERIPH_BASE + 0x00006400U)
  616. #define PWR_BASE (APB1PERIPH_BASE + 0x00007000U)
  617. #define DAC1_BASE (APB1PERIPH_BASE + 0x00007400U)
  618. #define DAC2_BASE (APB1PERIPH_BASE + 0x00009800U)
  619. #define DAC_BASE DAC1_BASE
  620. /*!< APB2 peripherals */
  621. #define SYSCFG_BASE (APB2PERIPH_BASE + 0x00000000U)
  622. #define COMP2_BASE (APB2PERIPH_BASE + 0x00000020U)
  623. #define COMP4_BASE (APB2PERIPH_BASE + 0x00000028U)
  624. #define COMP6_BASE (APB2PERIPH_BASE + 0x00000030U)
  625. #define COMP_BASE COMP2_BASE
  626. #define OPAMP2_BASE (APB2PERIPH_BASE + 0x0000003CU)
  627. #define OPAMP_BASE OPAMP2_BASE
  628. #define EXTI_BASE (APB2PERIPH_BASE + 0x00000400U)
  629. #define TIM1_BASE (APB2PERIPH_BASE + 0x00002C00U)
  630. #define SPI1_BASE (APB2PERIPH_BASE + 0x00003000U)
  631. #define USART1_BASE (APB2PERIPH_BASE + 0x00003800U)
  632. #define TIM15_BASE (APB2PERIPH_BASE + 0x00004000U)
  633. #define TIM16_BASE (APB2PERIPH_BASE + 0x00004400U)
  634. #define TIM17_BASE (APB2PERIPH_BASE + 0x00004800U)
  635. /*!< AHB1 peripherals */
  636. #define DMA1_BASE (AHB1PERIPH_BASE + 0x00000000U)
  637. #define DMA1_Channel1_BASE (AHB1PERIPH_BASE + 0x00000008U)
  638. #define DMA1_Channel2_BASE (AHB1PERIPH_BASE + 0x0000001CU)
  639. #define DMA1_Channel3_BASE (AHB1PERIPH_BASE + 0x00000030U)
  640. #define DMA1_Channel4_BASE (AHB1PERIPH_BASE + 0x00000044U)
  641. #define DMA1_Channel5_BASE (AHB1PERIPH_BASE + 0x00000058U)
  642. #define DMA1_Channel6_BASE (AHB1PERIPH_BASE + 0x0000006CU)
  643. #define DMA1_Channel7_BASE (AHB1PERIPH_BASE + 0x00000080U)
  644. #define RCC_BASE (AHB1PERIPH_BASE + 0x00001000U)
  645. #define FLASH_R_BASE (AHB1PERIPH_BASE + 0x00002000U) /*!< Flash registers base address */
  646. #define OB_BASE ((uint32_t)0x1FFFF800U) /*!< Flash Option Bytes base address */
  647. #define FLASHSIZE_BASE ((uint32_t)0x1FFFF7CCU) /*!< FLASH Size register base address */
  648. #define UID_BASE ((uint32_t)0x1FFFF7ACU) /*!< Unique device ID register base address */
  649. #define CRC_BASE (AHB1PERIPH_BASE + 0x00003000U)
  650. #define TSC_BASE (AHB1PERIPH_BASE + 0x00004000U)
  651. /*!< AHB2 peripherals */
  652. #define GPIOA_BASE (AHB2PERIPH_BASE + 0x00000000U)
  653. #define GPIOB_BASE (AHB2PERIPH_BASE + 0x00000400U)
  654. #define GPIOC_BASE (AHB2PERIPH_BASE + 0x00000800U)
  655. #define GPIOD_BASE (AHB2PERIPH_BASE + 0x00000C00U)
  656. #define GPIOF_BASE (AHB2PERIPH_BASE + 0x00001400U)
  657. /*!< AHB3 peripherals */
  658. #define ADC1_BASE (AHB3PERIPH_BASE + 0x00000000U)
  659. #define ADC2_BASE (AHB3PERIPH_BASE + 0x00000100U)
  660. #define ADC1_2_COMMON_BASE (AHB3PERIPH_BASE + 0x00000300U)
  661. #define DBGMCU_BASE ((uint32_t)0xE0042000U) /*!< Debug MCU registers base address */
  662. /**
  663. * @}
  664. */
  665. /** @addtogroup Peripheral_declaration
  666. * @{
  667. */
  668. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  669. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  670. #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
  671. #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
  672. #define RTC ((RTC_TypeDef *) RTC_BASE)
  673. #define WWDG ((WWDG_TypeDef *) WWDG_BASE)
  674. #define IWDG ((IWDG_TypeDef *) IWDG_BASE)
  675. #define USART2 ((USART_TypeDef *) USART2_BASE)
  676. #define USART3 ((USART_TypeDef *) USART3_BASE)
  677. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  678. #define CAN ((CAN_TypeDef *) CAN_BASE)
  679. #define PWR ((PWR_TypeDef *) PWR_BASE)
  680. #define DAC ((DAC_TypeDef *) DAC_BASE)
  681. #define DAC1 ((DAC_TypeDef *) DAC1_BASE)
  682. #define DAC2 ((DAC_TypeDef *) DAC2_BASE)
  683. #define COMP2 ((COMP_TypeDef *) COMP2_BASE)
  684. #define COMP4 ((COMP_TypeDef *) COMP4_BASE)
  685. #define COMP6 ((COMP_TypeDef *) COMP6_BASE)
  686. /* Legacy define */
  687. #define COMP ((COMP_TypeDef *) COMP_BASE)
  688. #define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE)
  689. #define OPAMP2 ((OPAMP_TypeDef *) OPAMP2_BASE)
  690. #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
  691. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  692. #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
  693. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  694. #define USART1 ((USART_TypeDef *) USART1_BASE)
  695. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  696. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  697. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  698. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  699. #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
  700. #define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
  701. #define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
  702. #define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
  703. #define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
  704. #define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
  705. #define DMA1_Channel6 ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE)
  706. #define DMA1_Channel7 ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE)
  707. #define RCC ((RCC_TypeDef *) RCC_BASE)
  708. #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
  709. #define OB ((OB_TypeDef *) OB_BASE)
  710. #define CRC ((CRC_TypeDef *) CRC_BASE)
  711. #define TSC ((TSC_TypeDef *) TSC_BASE)
  712. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  713. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  714. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  715. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  716. #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
  717. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  718. #define ADC2 ((ADC_TypeDef *) ADC2_BASE)
  719. #define ADC12_COMMON ((ADC_Common_TypeDef *) ADC1_2_COMMON_BASE)
  720. /* Legacy defines */
  721. #define ADC1_2_COMMON ADC12_COMMON
  722. /**
  723. * @}
  724. */
  725. /** @addtogroup Exported_constants
  726. * @{
  727. */
  728. /** @addtogroup Peripheral_Registers_Bits_Definition
  729. * @{
  730. */
  731. /******************************************************************************/
  732. /* Peripheral Registers_Bits_Definition */
  733. /******************************************************************************/
  734. /******************************************************************************/
  735. /* */
  736. /* Analog to Digital Converter SAR (ADC) */
  737. /* */
  738. /******************************************************************************/
  739. #define ADC5_V1_1 /*!< ADC IP version */
  740. /*
  741. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  742. */
  743. #define ADC_MULTIMODE_SUPPORT /*!< ADC feature available only on specific devices: multimode available on devices with several ADC instances */
  744. /******************** Bit definition for ADC_ISR register ********************/
  745. #define ADC_ISR_ADRDY_Pos (0U)
  746. #define ADC_ISR_ADRDY_Msk (0x1U << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */
  747. #define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC ready flag */
  748. #define ADC_ISR_EOSMP_Pos (1U)
  749. #define ADC_ISR_EOSMP_Msk (0x1U << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  750. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC group regular end of sampling flag */
  751. #define ADC_ISR_EOC_Pos (2U)
  752. #define ADC_ISR_EOC_Msk (0x1U << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  753. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC group regular end of unitary conversion flag */
  754. #define ADC_ISR_EOS_Pos (3U)
  755. #define ADC_ISR_EOS_Msk (0x1U << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  756. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */
  757. #define ADC_ISR_OVR_Pos (4U)
  758. #define ADC_ISR_OVR_Msk (0x1U << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  759. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC group regular overrun flag */
  760. #define ADC_ISR_JEOC_Pos (5U)
  761. #define ADC_ISR_JEOC_Msk (0x1U << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */
  762. #define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC group injected end of unitary conversion flag */
  763. #define ADC_ISR_JEOS_Pos (6U)
  764. #define ADC_ISR_JEOS_Msk (0x1U << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */
  765. #define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC group injected end of sequence conversions flag */
  766. #define ADC_ISR_AWD1_Pos (7U)
  767. #define ADC_ISR_AWD1_Msk (0x1U << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  768. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC analog watchdog 1 flag */
  769. #define ADC_ISR_AWD2_Pos (8U)
  770. #define ADC_ISR_AWD2_Msk (0x1U << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */
  771. #define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC analog watchdog 2 flag */
  772. #define ADC_ISR_AWD3_Pos (9U)
  773. #define ADC_ISR_AWD3_Msk (0x1U << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */
  774. #define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC analog watchdog 3 flag */
  775. #define ADC_ISR_JQOVF_Pos (10U)
  776. #define ADC_ISR_JQOVF_Msk (0x1U << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */
  777. #define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC group injected contexts queue overflow flag */
  778. /* Legacy defines */
  779. #define ADC_ISR_ADRD (ADC_ISR_ADRDY)
  780. /******************** Bit definition for ADC_IER register ********************/
  781. #define ADC_IER_ADRDYIE_Pos (0U)
  782. #define ADC_IER_ADRDYIE_Msk (0x1U << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */
  783. #define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC ready interrupt */
  784. #define ADC_IER_EOSMPIE_Pos (1U)
  785. #define ADC_IER_EOSMPIE_Msk (0x1U << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */
  786. #define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC group regular end of sampling interrupt */
  787. #define ADC_IER_EOCIE_Pos (2U)
  788. #define ADC_IER_EOCIE_Msk (0x1U << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */
  789. #define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC group regular end of unitary conversion interrupt */
  790. #define ADC_IER_EOSIE_Pos (3U)
  791. #define ADC_IER_EOSIE_Msk (0x1U << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */
  792. #define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */
  793. #define ADC_IER_OVRIE_Pos (4U)
  794. #define ADC_IER_OVRIE_Msk (0x1U << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */
  795. #define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC group regular overrun interrupt */
  796. #define ADC_IER_JEOCIE_Pos (5U)
  797. #define ADC_IER_JEOCIE_Msk (0x1U << ADC_IER_JEOCIE_Pos) /*!< 0x00000020 */
  798. #define ADC_IER_JEOCIE ADC_IER_JEOCIE_Msk /*!< ADC group injected end of unitary conversion interrupt */
  799. #define ADC_IER_JEOSIE_Pos (6U)
  800. #define ADC_IER_JEOSIE_Msk (0x1U << ADC_IER_JEOSIE_Pos) /*!< 0x00000040 */
  801. #define ADC_IER_JEOSIE ADC_IER_JEOSIE_Msk /*!< ADC group injected end of sequence conversions interrupt */
  802. #define ADC_IER_AWD1IE_Pos (7U)
  803. #define ADC_IER_AWD1IE_Msk (0x1U << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */
  804. #define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC analog watchdog 1 interrupt */
  805. #define ADC_IER_AWD2IE_Pos (8U)
  806. #define ADC_IER_AWD2IE_Msk (0x1U << ADC_IER_AWD2IE_Pos) /*!< 0x00000100 */
  807. #define ADC_IER_AWD2IE ADC_IER_AWD2IE_Msk /*!< ADC analog watchdog 2 interrupt */
  808. #define ADC_IER_AWD3IE_Pos (9U)
  809. #define ADC_IER_AWD3IE_Msk (0x1U << ADC_IER_AWD3IE_Pos) /*!< 0x00000200 */
  810. #define ADC_IER_AWD3IE ADC_IER_AWD3IE_Msk /*!< ADC analog watchdog 3 interrupt */
  811. #define ADC_IER_JQOVFIE_Pos (10U)
  812. #define ADC_IER_JQOVFIE_Msk (0x1U << ADC_IER_JQOVFIE_Pos) /*!< 0x00000400 */
  813. #define ADC_IER_JQOVFIE ADC_IER_JQOVFIE_Msk /*!< ADC group injected contexts queue overflow interrupt */
  814. /* Legacy defines */
  815. #define ADC_IER_RDY (ADC_IER_ADRDYIE)
  816. #define ADC_IER_EOSMP (ADC_IER_EOSMPIE)
  817. #define ADC_IER_EOC (ADC_IER_EOCIE)
  818. #define ADC_IER_EOS (ADC_IER_EOSIE)
  819. #define ADC_IER_OVR (ADC_IER_OVRIE)
  820. #define ADC_IER_JEOC (ADC_IER_JEOCIE)
  821. #define ADC_IER_JEOS (ADC_IER_JEOSIE)
  822. #define ADC_IER_AWD1 (ADC_IER_AWD1IE)
  823. #define ADC_IER_AWD2 (ADC_IER_AWD2IE)
  824. #define ADC_IER_AWD3 (ADC_IER_AWD3IE)
  825. #define ADC_IER_JQOVF (ADC_IER_JQOVFIE)
  826. /******************** Bit definition for ADC_CR register ********************/
  827. #define ADC_CR_ADEN_Pos (0U)
  828. #define ADC_CR_ADEN_Msk (0x1U << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  829. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC enable */
  830. #define ADC_CR_ADDIS_Pos (1U)
  831. #define ADC_CR_ADDIS_Msk (0x1U << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  832. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC disable */
  833. #define ADC_CR_ADSTART_Pos (2U)
  834. #define ADC_CR_ADSTART_Msk (0x1U << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  835. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC group regular conversion start */
  836. #define ADC_CR_JADSTART_Pos (3U)
  837. #define ADC_CR_JADSTART_Msk (0x1U << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */
  838. #define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC group injected conversion start */
  839. #define ADC_CR_ADSTP_Pos (4U)
  840. #define ADC_CR_ADSTP_Msk (0x1U << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  841. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC group regular conversion stop */
  842. #define ADC_CR_JADSTP_Pos (5U)
  843. #define ADC_CR_JADSTP_Msk (0x1U << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */
  844. #define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC group injected conversion stop */
  845. #define ADC_CR_ADVREGEN_Pos (28U)
  846. #define ADC_CR_ADVREGEN_Msk (0x3U << ADC_CR_ADVREGEN_Pos) /*!< 0x30000000 */
  847. #define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC voltage regulator enable */
  848. #define ADC_CR_ADVREGEN_0 (0x1U << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */
  849. #define ADC_CR_ADVREGEN_1 (0x2U << ADC_CR_ADVREGEN_Pos) /*!< 0x20000000 */
  850. #define ADC_CR_ADCALDIF_Pos (30U)
  851. #define ADC_CR_ADCALDIF_Msk (0x1U << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */
  852. #define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC differential mode for calibration */
  853. #define ADC_CR_ADCAL_Pos (31U)
  854. #define ADC_CR_ADCAL_Msk (0x1U << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  855. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC calibration */
  856. /******************** Bit definition for ADC_CFGR register ******************/
  857. #define ADC_CFGR_DMAEN_Pos (0U)
  858. #define ADC_CFGR_DMAEN_Msk (0x1U << ADC_CFGR_DMAEN_Pos) /*!< 0x00000001 */
  859. #define ADC_CFGR_DMAEN ADC_CFGR_DMAEN_Msk /*!< ADC DMA enable */
  860. #define ADC_CFGR_DMACFG_Pos (1U)
  861. #define ADC_CFGR_DMACFG_Msk (0x1U << ADC_CFGR_DMACFG_Pos) /*!< 0x00000002 */
  862. #define ADC_CFGR_DMACFG ADC_CFGR_DMACFG_Msk /*!< ADC DMA configuration */
  863. #define ADC_CFGR_RES_Pos (3U)
  864. #define ADC_CFGR_RES_Msk (0x3U << ADC_CFGR_RES_Pos) /*!< 0x00000018 */
  865. #define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC data resolution */
  866. #define ADC_CFGR_RES_0 (0x1U << ADC_CFGR_RES_Pos) /*!< 0x00000008 */
  867. #define ADC_CFGR_RES_1 (0x2U << ADC_CFGR_RES_Pos) /*!< 0x00000010 */
  868. #define ADC_CFGR_ALIGN_Pos (5U)
  869. #define ADC_CFGR_ALIGN_Msk (0x1U << ADC_CFGR_ALIGN_Pos) /*!< 0x00000020 */
  870. #define ADC_CFGR_ALIGN ADC_CFGR_ALIGN_Msk /*!< ADC data alignement */
  871. #define ADC_CFGR_EXTSEL_Pos (6U)
  872. #define ADC_CFGR_EXTSEL_Msk (0xFU << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003C0 */
  873. #define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC group regular external trigger source */
  874. #define ADC_CFGR_EXTSEL_0 (0x1U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */
  875. #define ADC_CFGR_EXTSEL_1 (0x2U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */
  876. #define ADC_CFGR_EXTSEL_2 (0x4U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */
  877. #define ADC_CFGR_EXTSEL_3 (0x8U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */
  878. #define ADC_CFGR_EXTEN_Pos (10U)
  879. #define ADC_CFGR_EXTEN_Msk (0x3U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */
  880. #define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC group regular external trigger polarity */
  881. #define ADC_CFGR_EXTEN_0 (0x1U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */
  882. #define ADC_CFGR_EXTEN_1 (0x2U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */
  883. #define ADC_CFGR_OVRMOD_Pos (12U)
  884. #define ADC_CFGR_OVRMOD_Msk (0x1U << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */
  885. #define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC group regular overrun configuration */
  886. #define ADC_CFGR_CONT_Pos (13U)
  887. #define ADC_CFGR_CONT_Msk (0x1U << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */
  888. #define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC group regular continuous conversion mode */
  889. #define ADC_CFGR_AUTDLY_Pos (14U)
  890. #define ADC_CFGR_AUTDLY_Msk (0x1U << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */
  891. #define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC low power auto wait */
  892. #define ADC_CFGR_DISCEN_Pos (16U)
  893. #define ADC_CFGR_DISCEN_Msk (0x1U << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */
  894. #define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */
  895. #define ADC_CFGR_DISCNUM_Pos (17U)
  896. #define ADC_CFGR_DISCNUM_Msk (0x7U << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */
  897. #define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC Discontinuous mode channel count */
  898. #define ADC_CFGR_DISCNUM_0 (0x1U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */
  899. #define ADC_CFGR_DISCNUM_1 (0x2U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */
  900. #define ADC_CFGR_DISCNUM_2 (0x4U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */
  901. #define ADC_CFGR_JDISCEN_Pos (20U)
  902. #define ADC_CFGR_JDISCEN_Msk (0x1U << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */
  903. #define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC Discontinuous mode on injected channels */
  904. #define ADC_CFGR_JQM_Pos (21U)
  905. #define ADC_CFGR_JQM_Msk (0x1U << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */
  906. #define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC group injected contexts queue mode */
  907. #define ADC_CFGR_AWD1SGL_Pos (22U)
  908. #define ADC_CFGR_AWD1SGL_Msk (0x1U << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */
  909. #define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */
  910. #define ADC_CFGR_AWD1EN_Pos (23U)
  911. #define ADC_CFGR_AWD1EN_Msk (0x1U << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */
  912. #define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */
  913. #define ADC_CFGR_JAWD1EN_Pos (24U)
  914. #define ADC_CFGR_JAWD1EN_Msk (0x1U << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */
  915. #define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group injected */
  916. #define ADC_CFGR_JAUTO_Pos (25U)
  917. #define ADC_CFGR_JAUTO_Msk (0x1U << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */
  918. #define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC group injected automatic trigger mode */
  919. #define ADC_CFGR_AWD1CH_Pos (26U)
  920. #define ADC_CFGR_AWD1CH_Msk (0x1FU << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */
  921. #define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC analog watchdog 1 monitored channel selection */
  922. #define ADC_CFGR_AWD1CH_0 (0x01U << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */
  923. #define ADC_CFGR_AWD1CH_1 (0x02U << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */
  924. #define ADC_CFGR_AWD1CH_2 (0x04U << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */
  925. #define ADC_CFGR_AWD1CH_3 (0x08U << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */
  926. #define ADC_CFGR_AWD1CH_4 (0x10U << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */
  927. /* Legacy defines */
  928. #define ADC_CFGR_AUTOFF_Pos (15U)
  929. #define ADC_CFGR_AUTOFF_Msk (0x1U << ADC_CFGR_AUTOFF_Pos) /*!< 0x00008000 */
  930. #define ADC_CFGR_AUTOFF ADC_CFGR_AUTOFF_Msk /*!< ADC low power auto power off */
  931. /******************** Bit definition for ADC_SMPR1 register *****************/
  932. #define ADC_SMPR1_SMP0_Pos (0U)
  933. #define ADC_SMPR1_SMP0_Msk (0x7U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */
  934. #define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC channel 0 sampling time selection */
  935. #define ADC_SMPR1_SMP0_0 (0x1U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */
  936. #define ADC_SMPR1_SMP0_1 (0x2U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */
  937. #define ADC_SMPR1_SMP0_2 (0x4U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */
  938. #define ADC_SMPR1_SMP1_Pos (3U)
  939. #define ADC_SMPR1_SMP1_Msk (0x7U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */
  940. #define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC channel 1 sampling time selection */
  941. #define ADC_SMPR1_SMP1_0 (0x1U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */
  942. #define ADC_SMPR1_SMP1_1 (0x2U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */
  943. #define ADC_SMPR1_SMP1_2 (0x4U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */
  944. #define ADC_SMPR1_SMP2_Pos (6U)
  945. #define ADC_SMPR1_SMP2_Msk (0x7U << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */
  946. #define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC channel 2 sampling time selection */
  947. #define ADC_SMPR1_SMP2_0 (0x1U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */
  948. #define ADC_SMPR1_SMP2_1 (0x2U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */
  949. #define ADC_SMPR1_SMP2_2 (0x4U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */
  950. #define ADC_SMPR1_SMP3_Pos (9U)
  951. #define ADC_SMPR1_SMP3_Msk (0x7U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */
  952. #define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC channel 3 sampling time selection */
  953. #define ADC_SMPR1_SMP3_0 (0x1U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */
  954. #define ADC_SMPR1_SMP3_1 (0x2U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */
  955. #define ADC_SMPR1_SMP3_2 (0x4U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */
  956. #define ADC_SMPR1_SMP4_Pos (12U)
  957. #define ADC_SMPR1_SMP4_Msk (0x7U << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */
  958. #define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC channel 4 sampling time selection */
  959. #define ADC_SMPR1_SMP4_0 (0x1U << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */
  960. #define ADC_SMPR1_SMP4_1 (0x2U << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */
  961. #define ADC_SMPR1_SMP4_2 (0x4U << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */
  962. #define ADC_SMPR1_SMP5_Pos (15U)
  963. #define ADC_SMPR1_SMP5_Msk (0x7U << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */
  964. #define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC channel 5 sampling time selection */
  965. #define ADC_SMPR1_SMP5_0 (0x1U << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */
  966. #define ADC_SMPR1_SMP5_1 (0x2U << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */
  967. #define ADC_SMPR1_SMP5_2 (0x4U << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */
  968. #define ADC_SMPR1_SMP6_Pos (18U)
  969. #define ADC_SMPR1_SMP6_Msk (0x7U << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */
  970. #define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC channel 6 sampling time selection */
  971. #define ADC_SMPR1_SMP6_0 (0x1U << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */
  972. #define ADC_SMPR1_SMP6_1 (0x2U << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */
  973. #define ADC_SMPR1_SMP6_2 (0x4U << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */
  974. #define ADC_SMPR1_SMP7_Pos (21U)
  975. #define ADC_SMPR1_SMP7_Msk (0x7U << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */
  976. #define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC channel 7 sampling time selection */
  977. #define ADC_SMPR1_SMP7_0 (0x1U << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */
  978. #define ADC_SMPR1_SMP7_1 (0x2U << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */
  979. #define ADC_SMPR1_SMP7_2 (0x4U << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */
  980. #define ADC_SMPR1_SMP8_Pos (24U)
  981. #define ADC_SMPR1_SMP8_Msk (0x7U << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */
  982. #define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC channel 8 sampling time selection */
  983. #define ADC_SMPR1_SMP8_0 (0x1U << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */
  984. #define ADC_SMPR1_SMP8_1 (0x2U << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */
  985. #define ADC_SMPR1_SMP8_2 (0x4U << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */
  986. #define ADC_SMPR1_SMP9_Pos (27U)
  987. #define ADC_SMPR1_SMP9_Msk (0x7U << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */
  988. #define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC channel 9 sampling time selection */
  989. #define ADC_SMPR1_SMP9_0 (0x1U << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */
  990. #define ADC_SMPR1_SMP9_1 (0x2U << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
  991. #define ADC_SMPR1_SMP9_2 (0x4U << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
  992. /******************** Bit definition for ADC_SMPR2 register *****************/
  993. #define ADC_SMPR2_SMP10_Pos (0U)
  994. #define ADC_SMPR2_SMP10_Msk (0x7U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
  995. #define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC channel 10 sampling time selection */
  996. #define ADC_SMPR2_SMP10_0 (0x1U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */
  997. #define ADC_SMPR2_SMP10_1 (0x2U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */
  998. #define ADC_SMPR2_SMP10_2 (0x4U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */
  999. #define ADC_SMPR2_SMP11_Pos (3U)
  1000. #define ADC_SMPR2_SMP11_Msk (0x7U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */
  1001. #define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC channel 11 sampling time selection */
  1002. #define ADC_SMPR2_SMP11_0 (0x1U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */
  1003. #define ADC_SMPR2_SMP11_1 (0x2U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */
  1004. #define ADC_SMPR2_SMP11_2 (0x4U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */
  1005. #define ADC_SMPR2_SMP12_Pos (6U)
  1006. #define ADC_SMPR2_SMP12_Msk (0x7U << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */
  1007. #define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC channel 12 sampling time selection */
  1008. #define ADC_SMPR2_SMP12_0 (0x1U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */
  1009. #define ADC_SMPR2_SMP12_1 (0x2U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */
  1010. #define ADC_SMPR2_SMP12_2 (0x4U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */
  1011. #define ADC_SMPR2_SMP13_Pos (9U)
  1012. #define ADC_SMPR2_SMP13_Msk (0x7U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */
  1013. #define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC channel 13 sampling time selection */
  1014. #define ADC_SMPR2_SMP13_0 (0x1U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */
  1015. #define ADC_SMPR2_SMP13_1 (0x2U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */
  1016. #define ADC_SMPR2_SMP13_2 (0x4U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */
  1017. #define ADC_SMPR2_SMP14_Pos (12U)
  1018. #define ADC_SMPR2_SMP14_Msk (0x7U << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */
  1019. #define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC channel 14 sampling time selection */
  1020. #define ADC_SMPR2_SMP14_0 (0x1U << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */
  1021. #define ADC_SMPR2_SMP14_1 (0x2U << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */
  1022. #define ADC_SMPR2_SMP14_2 (0x4U << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */
  1023. #define ADC_SMPR2_SMP15_Pos (15U)
  1024. #define ADC_SMPR2_SMP15_Msk (0x7U << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */
  1025. #define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC channel 15 sampling time selection */
  1026. #define ADC_SMPR2_SMP15_0 (0x1U << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */
  1027. #define ADC_SMPR2_SMP15_1 (0x2U << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */
  1028. #define ADC_SMPR2_SMP15_2 (0x4U << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */
  1029. #define ADC_SMPR2_SMP16_Pos (18U)
  1030. #define ADC_SMPR2_SMP16_Msk (0x7U << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */
  1031. #define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC channel 16 sampling time selection */
  1032. #define ADC_SMPR2_SMP16_0 (0x1U << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */
  1033. #define ADC_SMPR2_SMP16_1 (0x2U << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */
  1034. #define ADC_SMPR2_SMP16_2 (0x4U << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */
  1035. #define ADC_SMPR2_SMP17_Pos (21U)
  1036. #define ADC_SMPR2_SMP17_Msk (0x7U << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */
  1037. #define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC channel 17 sampling time selection */
  1038. #define ADC_SMPR2_SMP17_0 (0x1U << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */
  1039. #define ADC_SMPR2_SMP17_1 (0x2U << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */
  1040. #define ADC_SMPR2_SMP17_2 (0x4U << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */
  1041. #define ADC_SMPR2_SMP18_Pos (24U)
  1042. #define ADC_SMPR2_SMP18_Msk (0x7U << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */
  1043. #define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC channel 18 sampling time selection */
  1044. #define ADC_SMPR2_SMP18_0 (0x1U << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */
  1045. #define ADC_SMPR2_SMP18_1 (0x2U << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */
  1046. #define ADC_SMPR2_SMP18_2 (0x4U << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */
  1047. /******************** Bit definition for ADC_TR1 register *******************/
  1048. #define ADC_TR1_LT1_Pos (0U)
  1049. #define ADC_TR1_LT1_Msk (0xFFFU << ADC_TR1_LT1_Pos) /*!< 0x00000FFF */
  1050. #define ADC_TR1_LT1 ADC_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */
  1051. #define ADC_TR1_LT1_0 (0x001U << ADC_TR1_LT1_Pos) /*!< 0x00000001 */
  1052. #define ADC_TR1_LT1_1 (0x002U << ADC_TR1_LT1_Pos) /*!< 0x00000002 */
  1053. #define ADC_TR1_LT1_2 (0x004U << ADC_TR1_LT1_Pos) /*!< 0x00000004 */
  1054. #define ADC_TR1_LT1_3 (0x008U << ADC_TR1_LT1_Pos) /*!< 0x00000008 */
  1055. #define ADC_TR1_LT1_4 (0x010U << ADC_TR1_LT1_Pos) /*!< 0x00000010 */
  1056. #define ADC_TR1_LT1_5 (0x020U << ADC_TR1_LT1_Pos) /*!< 0x00000020 */
  1057. #define ADC_TR1_LT1_6 (0x040U << ADC_TR1_LT1_Pos) /*!< 0x00000040 */
  1058. #define ADC_TR1_LT1_7 (0x080U << ADC_TR1_LT1_Pos) /*!< 0x00000080 */
  1059. #define ADC_TR1_LT1_8 (0x100U << ADC_TR1_LT1_Pos) /*!< 0x00000100 */
  1060. #define ADC_TR1_LT1_9 (0x200U << ADC_TR1_LT1_Pos) /*!< 0x00000200 */
  1061. #define ADC_TR1_LT1_10 (0x400U << ADC_TR1_LT1_Pos) /*!< 0x00000400 */
  1062. #define ADC_TR1_LT1_11 (0x800U << ADC_TR1_LT1_Pos) /*!< 0x00000800 */
  1063. #define ADC_TR1_HT1_Pos (16U)
  1064. #define ADC_TR1_HT1_Msk (0xFFFU << ADC_TR1_HT1_Pos) /*!< 0x0FFF0000 */
  1065. #define ADC_TR1_HT1 ADC_TR1_HT1_Msk /*!< ADC Analog watchdog 1 threshold high */
  1066. #define ADC_TR1_HT1_0 (0x001U << ADC_TR1_HT1_Pos) /*!< 0x00010000 */
  1067. #define ADC_TR1_HT1_1 (0x002U << ADC_TR1_HT1_Pos) /*!< 0x00020000 */
  1068. #define ADC_TR1_HT1_2 (0x004U << ADC_TR1_HT1_Pos) /*!< 0x00040000 */
  1069. #define ADC_TR1_HT1_3 (0x008U << ADC_TR1_HT1_Pos) /*!< 0x00080000 */
  1070. #define ADC_TR1_HT1_4 (0x010U << ADC_TR1_HT1_Pos) /*!< 0x00100000 */
  1071. #define ADC_TR1_HT1_5 (0x020U << ADC_TR1_HT1_Pos) /*!< 0x00200000 */
  1072. #define ADC_TR1_HT1_6 (0x040U << ADC_TR1_HT1_Pos) /*!< 0x00400000 */
  1073. #define ADC_TR1_HT1_7 (0x080U << ADC_TR1_HT1_Pos) /*!< 0x00800000 */
  1074. #define ADC_TR1_HT1_8 (0x100U << ADC_TR1_HT1_Pos) /*!< 0x01000000 */
  1075. #define ADC_TR1_HT1_9 (0x200U << ADC_TR1_HT1_Pos) /*!< 0x02000000 */
  1076. #define ADC_TR1_HT1_10 (0x400U << ADC_TR1_HT1_Pos) /*!< 0x04000000 */
  1077. #define ADC_TR1_HT1_11 (0x800U << ADC_TR1_HT1_Pos) /*!< 0x08000000 */
  1078. /******************** Bit definition for ADC_TR2 register *******************/
  1079. #define ADC_TR2_LT2_Pos (0U)
  1080. #define ADC_TR2_LT2_Msk (0xFFU << ADC_TR2_LT2_Pos) /*!< 0x000000FF */
  1081. #define ADC_TR2_LT2 ADC_TR2_LT2_Msk /*!< ADC analog watchdog 2 threshold low */
  1082. #define ADC_TR2_LT2_0 (0x01U << ADC_TR2_LT2_Pos) /*!< 0x00000001 */
  1083. #define ADC_TR2_LT2_1 (0x02U << ADC_TR2_LT2_Pos) /*!< 0x00000002 */
  1084. #define ADC_TR2_LT2_2 (0x04U << ADC_TR2_LT2_Pos) /*!< 0x00000004 */
  1085. #define ADC_TR2_LT2_3 (0x08U << ADC_TR2_LT2_Pos) /*!< 0x00000008 */
  1086. #define ADC_TR2_LT2_4 (0x10U << ADC_TR2_LT2_Pos) /*!< 0x00000010 */
  1087. #define ADC_TR2_LT2_5 (0x20U << ADC_TR2_LT2_Pos) /*!< 0x00000020 */
  1088. #define ADC_TR2_LT2_6 (0x40U << ADC_TR2_LT2_Pos) /*!< 0x00000040 */
  1089. #define ADC_TR2_LT2_7 (0x80U << ADC_TR2_LT2_Pos) /*!< 0x00000080 */
  1090. #define ADC_TR2_HT2_Pos (16U)
  1091. #define ADC_TR2_HT2_Msk (0xFFU << ADC_TR2_HT2_Pos) /*!< 0x00FF0000 */
  1092. #define ADC_TR2_HT2 ADC_TR2_HT2_Msk /*!< ADC analog watchdog 2 threshold high */
  1093. #define ADC_TR2_HT2_0 (0x01U << ADC_TR2_HT2_Pos) /*!< 0x00010000 */
  1094. #define ADC_TR2_HT2_1 (0x02U << ADC_TR2_HT2_Pos) /*!< 0x00020000 */
  1095. #define ADC_TR2_HT2_2 (0x04U << ADC_TR2_HT2_Pos) /*!< 0x00040000 */
  1096. #define ADC_TR2_HT2_3 (0x08U << ADC_TR2_HT2_Pos) /*!< 0x00080000 */
  1097. #define ADC_TR2_HT2_4 (0x10U << ADC_TR2_HT2_Pos) /*!< 0x00100000 */
  1098. #define ADC_TR2_HT2_5 (0x20U << ADC_TR2_HT2_Pos) /*!< 0x00200000 */
  1099. #define ADC_TR2_HT2_6 (0x40U << ADC_TR2_HT2_Pos) /*!< 0x00400000 */
  1100. #define ADC_TR2_HT2_7 (0x80U << ADC_TR2_HT2_Pos) /*!< 0x00800000 */
  1101. /******************** Bit definition for ADC_TR3 register *******************/
  1102. #define ADC_TR3_LT3_Pos (0U)
  1103. #define ADC_TR3_LT3_Msk (0xFFU << ADC_TR3_LT3_Pos) /*!< 0x000000FF */
  1104. #define ADC_TR3_LT3 ADC_TR3_LT3_Msk /*!< ADC analog watchdog 3 threshold low */
  1105. #define ADC_TR3_LT3_0 (0x01U << ADC_TR3_LT3_Pos) /*!< 0x00000001 */
  1106. #define ADC_TR3_LT3_1 (0x02U << ADC_TR3_LT3_Pos) /*!< 0x00000002 */
  1107. #define ADC_TR3_LT3_2 (0x04U << ADC_TR3_LT3_Pos) /*!< 0x00000004 */
  1108. #define ADC_TR3_LT3_3 (0x08U << ADC_TR3_LT3_Pos) /*!< 0x00000008 */
  1109. #define ADC_TR3_LT3_4 (0x10U << ADC_TR3_LT3_Pos) /*!< 0x00000010 */
  1110. #define ADC_TR3_LT3_5 (0x20U << ADC_TR3_LT3_Pos) /*!< 0x00000020 */
  1111. #define ADC_TR3_LT3_6 (0x40U << ADC_TR3_LT3_Pos) /*!< 0x00000040 */
  1112. #define ADC_TR3_LT3_7 (0x80U << ADC_TR3_LT3_Pos) /*!< 0x00000080 */
  1113. #define ADC_TR3_HT3_Pos (16U)
  1114. #define ADC_TR3_HT3_Msk (0xFFU << ADC_TR3_HT3_Pos) /*!< 0x00FF0000 */
  1115. #define ADC_TR3_HT3 ADC_TR3_HT3_Msk /*!< ADC analog watchdog 3 threshold high */
  1116. #define ADC_TR3_HT3_0 (0x01U << ADC_TR3_HT3_Pos) /*!< 0x00010000 */
  1117. #define ADC_TR3_HT3_1 (0x02U << ADC_TR3_HT3_Pos) /*!< 0x00020000 */
  1118. #define ADC_TR3_HT3_2 (0x04U << ADC_TR3_HT3_Pos) /*!< 0x00040000 */
  1119. #define ADC_TR3_HT3_3 (0x08U << ADC_TR3_HT3_Pos) /*!< 0x00080000 */
  1120. #define ADC_TR3_HT3_4 (0x10U << ADC_TR3_HT3_Pos) /*!< 0x00100000 */
  1121. #define ADC_TR3_HT3_5 (0x20U << ADC_TR3_HT3_Pos) /*!< 0x00200000 */
  1122. #define ADC_TR3_HT3_6 (0x40U << ADC_TR3_HT3_Pos) /*!< 0x00400000 */
  1123. #define ADC_TR3_HT3_7 (0x80U << ADC_TR3_HT3_Pos) /*!< 0x00800000 */
  1124. /******************** Bit definition for ADC_SQR1 register ******************/
  1125. #define ADC_SQR1_L_Pos (0U)
  1126. #define ADC_SQR1_L_Msk (0xFU << ADC_SQR1_L_Pos) /*!< 0x0000000F */
  1127. #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC group regular sequencer scan length */
  1128. #define ADC_SQR1_L_0 (0x1U << ADC_SQR1_L_Pos) /*!< 0x00000001 */
  1129. #define ADC_SQR1_L_1 (0x2U << ADC_SQR1_L_Pos) /*!< 0x00000002 */
  1130. #define ADC_SQR1_L_2 (0x4U << ADC_SQR1_L_Pos) /*!< 0x00000004 */
  1131. #define ADC_SQR1_L_3 (0x8U << ADC_SQR1_L_Pos) /*!< 0x00000008 */
  1132. #define ADC_SQR1_SQ1_Pos (6U)
  1133. #define ADC_SQR1_SQ1_Msk (0x1FU << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */
  1134. #define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC group regular sequencer rank 1 */
  1135. #define ADC_SQR1_SQ1_0 (0x01U << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */
  1136. #define ADC_SQR1_SQ1_1 (0x02U << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */
  1137. #define ADC_SQR1_SQ1_2 (0x04U << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */
  1138. #define ADC_SQR1_SQ1_3 (0x08U << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */
  1139. #define ADC_SQR1_SQ1_4 (0x10U << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */
  1140. #define ADC_SQR1_SQ2_Pos (12U)
  1141. #define ADC_SQR1_SQ2_Msk (0x1FU << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */
  1142. #define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC group regular sequencer rank 2 */
  1143. #define ADC_SQR1_SQ2_0 (0x01U << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */
  1144. #define ADC_SQR1_SQ2_1 (0x02U << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */
  1145. #define ADC_SQR1_SQ2_2 (0x04U << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */
  1146. #define ADC_SQR1_SQ2_3 (0x08U << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */
  1147. #define ADC_SQR1_SQ2_4 (0x10U << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */
  1148. #define ADC_SQR1_SQ3_Pos (18U)
  1149. #define ADC_SQR1_SQ3_Msk (0x1FU << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */
  1150. #define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC group regular sequencer rank 3 */
  1151. #define ADC_SQR1_SQ3_0 (0x01U << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */
  1152. #define ADC_SQR1_SQ3_1 (0x02U << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */
  1153. #define ADC_SQR1_SQ3_2 (0x04U << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */
  1154. #define ADC_SQR1_SQ3_3 (0x08U << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */
  1155. #define ADC_SQR1_SQ3_4 (0x10U << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */
  1156. #define ADC_SQR1_SQ4_Pos (24U)
  1157. #define ADC_SQR1_SQ4_Msk (0x1FU << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */
  1158. #define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC group regular sequencer rank 4 */
  1159. #define ADC_SQR1_SQ4_0 (0x01U << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */
  1160. #define ADC_SQR1_SQ4_1 (0x02U << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */
  1161. #define ADC_SQR1_SQ4_2 (0x04U << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */
  1162. #define ADC_SQR1_SQ4_3 (0x08U << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */
  1163. #define ADC_SQR1_SQ4_4 (0x10U << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */
  1164. /******************** Bit definition for ADC_SQR2 register ******************/
  1165. #define ADC_SQR2_SQ5_Pos (0U)
  1166. #define ADC_SQR2_SQ5_Msk (0x1FU << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */
  1167. #define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC group regular sequencer rank 5 */
  1168. #define ADC_SQR2_SQ5_0 (0x01U << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */
  1169. #define ADC_SQR2_SQ5_1 (0x02U << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */
  1170. #define ADC_SQR2_SQ5_2 (0x04U << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */
  1171. #define ADC_SQR2_SQ5_3 (0x08U << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */
  1172. #define ADC_SQR2_SQ5_4 (0x10U << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */
  1173. #define ADC_SQR2_SQ6_Pos (6U)
  1174. #define ADC_SQR2_SQ6_Msk (0x1FU << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */
  1175. #define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC group regular sequencer rank 6 */
  1176. #define ADC_SQR2_SQ6_0 (0x01U << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */
  1177. #define ADC_SQR2_SQ6_1 (0x02U << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */
  1178. #define ADC_SQR2_SQ6_2 (0x04U << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */
  1179. #define ADC_SQR2_SQ6_3 (0x08U << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */
  1180. #define ADC_SQR2_SQ6_4 (0x10U << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */
  1181. #define ADC_SQR2_SQ7_Pos (12U)
  1182. #define ADC_SQR2_SQ7_Msk (0x1FU << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */
  1183. #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC group regular sequencer rank 7 */
  1184. #define ADC_SQR2_SQ7_0 (0x01U << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */
  1185. #define ADC_SQR2_SQ7_1 (0x02U << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */
  1186. #define ADC_SQR2_SQ7_2 (0x04U << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */
  1187. #define ADC_SQR2_SQ7_3 (0x08U << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */
  1188. #define ADC_SQR2_SQ7_4 (0x10U << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */
  1189. #define ADC_SQR2_SQ8_Pos (18U)
  1190. #define ADC_SQR2_SQ8_Msk (0x1FU << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */
  1191. #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC group regular sequencer rank 8 */
  1192. #define ADC_SQR2_SQ8_0 (0x01U << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */
  1193. #define ADC_SQR2_SQ8_1 (0x02U << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */
  1194. #define ADC_SQR2_SQ8_2 (0x04U << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */
  1195. #define ADC_SQR2_SQ8_3 (0x08U << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */
  1196. #define ADC_SQR2_SQ8_4 (0x10U << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */
  1197. #define ADC_SQR2_SQ9_Pos (24U)
  1198. #define ADC_SQR2_SQ9_Msk (0x1FU << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */
  1199. #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC group regular sequencer rank 9 */
  1200. #define ADC_SQR2_SQ9_0 (0x01U << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */
  1201. #define ADC_SQR2_SQ9_1 (0x02U << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */
  1202. #define ADC_SQR2_SQ9_2 (0x04U << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */
  1203. #define ADC_SQR2_SQ9_3 (0x08U << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */
  1204. #define ADC_SQR2_SQ9_4 (0x10U << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */
  1205. /******************** Bit definition for ADC_SQR3 register ******************/
  1206. #define ADC_SQR3_SQ10_Pos (0U)
  1207. #define ADC_SQR3_SQ10_Msk (0x1FU << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */
  1208. #define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC group regular sequencer rank 10 */
  1209. #define ADC_SQR3_SQ10_0 (0x01U << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */
  1210. #define ADC_SQR3_SQ10_1 (0x02U << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */
  1211. #define ADC_SQR3_SQ10_2 (0x04U << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */
  1212. #define ADC_SQR3_SQ10_3 (0x08U << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */
  1213. #define ADC_SQR3_SQ10_4 (0x10U << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */
  1214. #define ADC_SQR3_SQ11_Pos (6U)
  1215. #define ADC_SQR3_SQ11_Msk (0x1FU << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */
  1216. #define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC group regular sequencer rank 11 */
  1217. #define ADC_SQR3_SQ11_0 (0x01U << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */
  1218. #define ADC_SQR3_SQ11_1 (0x02U << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */
  1219. #define ADC_SQR3_SQ11_2 (0x04U << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */
  1220. #define ADC_SQR3_SQ11_3 (0x08U << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */
  1221. #define ADC_SQR3_SQ11_4 (0x10U << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */
  1222. #define ADC_SQR3_SQ12_Pos (12U)
  1223. #define ADC_SQR3_SQ12_Msk (0x1FU << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */
  1224. #define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC group regular sequencer rank 12 */
  1225. #define ADC_SQR3_SQ12_0 (0x01U << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */
  1226. #define ADC_SQR3_SQ12_1 (0x02U << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */
  1227. #define ADC_SQR3_SQ12_2 (0x04U << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */
  1228. #define ADC_SQR3_SQ12_3 (0x08U << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */
  1229. #define ADC_SQR3_SQ12_4 (0x10U << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */
  1230. #define ADC_SQR3_SQ13_Pos (18U)
  1231. #define ADC_SQR3_SQ13_Msk (0x1FU << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */
  1232. #define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC group regular sequencer rank 13 */
  1233. #define ADC_SQR3_SQ13_0 (0x01U << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */
  1234. #define ADC_SQR3_SQ13_1 (0x02U << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */
  1235. #define ADC_SQR3_SQ13_2 (0x04U << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */
  1236. #define ADC_SQR3_SQ13_3 (0x08U << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */
  1237. #define ADC_SQR3_SQ13_4 (0x10U << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */
  1238. #define ADC_SQR3_SQ14_Pos (24U)
  1239. #define ADC_SQR3_SQ14_Msk (0x1FU << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */
  1240. #define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC group regular sequencer rank 14 */
  1241. #define ADC_SQR3_SQ14_0 (0x01U << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */
  1242. #define ADC_SQR3_SQ14_1 (0x02U << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */
  1243. #define ADC_SQR3_SQ14_2 (0x04U << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */
  1244. #define ADC_SQR3_SQ14_3 (0x08U << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */
  1245. #define ADC_SQR3_SQ14_4 (0x10U << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */
  1246. /******************** Bit definition for ADC_SQR4 register ******************/
  1247. #define ADC_SQR4_SQ15_Pos (0U)
  1248. #define ADC_SQR4_SQ15_Msk (0x1FU << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */
  1249. #define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC group regular sequencer rank 15 */
  1250. #define ADC_SQR4_SQ15_0 (0x01U << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */
  1251. #define ADC_SQR4_SQ15_1 (0x02U << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */
  1252. #define ADC_SQR4_SQ15_2 (0x04U << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */
  1253. #define ADC_SQR4_SQ15_3 (0x08U << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */
  1254. #define ADC_SQR4_SQ15_4 (0x10U << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */
  1255. #define ADC_SQR4_SQ16_Pos (6U)
  1256. #define ADC_SQR4_SQ16_Msk (0x1FU << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */
  1257. #define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC group regular sequencer rank 16 */
  1258. #define ADC_SQR4_SQ16_0 (0x01U << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */
  1259. #define ADC_SQR4_SQ16_1 (0x02U << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */
  1260. #define ADC_SQR4_SQ16_2 (0x04U << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */
  1261. #define ADC_SQR4_SQ16_3 (0x08U << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */
  1262. #define ADC_SQR4_SQ16_4 (0x10U << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */
  1263. /******************** Bit definition for ADC_DR register ********************/
  1264. #define ADC_DR_RDATA_Pos (0U)
  1265. #define ADC_DR_RDATA_Msk (0xFFFFU << ADC_DR_RDATA_Pos) /*!< 0x0000FFFF */
  1266. #define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC group regular conversion data */
  1267. #define ADC_DR_RDATA_0 (0x0001U << ADC_DR_RDATA_Pos) /*!< 0x00000001 */
  1268. #define ADC_DR_RDATA_1 (0x0002U << ADC_DR_RDATA_Pos) /*!< 0x00000002 */
  1269. #define ADC_DR_RDATA_2 (0x0004U << ADC_DR_RDATA_Pos) /*!< 0x00000004 */
  1270. #define ADC_DR_RDATA_3 (0x0008U << ADC_DR_RDATA_Pos) /*!< 0x00000008 */
  1271. #define ADC_DR_RDATA_4 (0x0010U << ADC_DR_RDATA_Pos) /*!< 0x00000010 */
  1272. #define ADC_DR_RDATA_5 (0x0020U << ADC_DR_RDATA_Pos) /*!< 0x00000020 */
  1273. #define ADC_DR_RDATA_6 (0x0040U << ADC_DR_RDATA_Pos) /*!< 0x00000040 */
  1274. #define ADC_DR_RDATA_7 (0x0080U << ADC_DR_RDATA_Pos) /*!< 0x00000080 */
  1275. #define ADC_DR_RDATA_8 (0x0100U << ADC_DR_RDATA_Pos) /*!< 0x00000100 */
  1276. #define ADC_DR_RDATA_9 (0x0200U << ADC_DR_RDATA_Pos) /*!< 0x00000200 */
  1277. #define ADC_DR_RDATA_10 (0x0400U << ADC_DR_RDATA_Pos) /*!< 0x00000400 */
  1278. #define ADC_DR_RDATA_11 (0x0800U << ADC_DR_RDATA_Pos) /*!< 0x00000800 */
  1279. #define ADC_DR_RDATA_12 (0x1000U << ADC_DR_RDATA_Pos) /*!< 0x00001000 */
  1280. #define ADC_DR_RDATA_13 (0x2000U << ADC_DR_RDATA_Pos) /*!< 0x00002000 */
  1281. #define ADC_DR_RDATA_14 (0x4000U << ADC_DR_RDATA_Pos) /*!< 0x00004000 */
  1282. #define ADC_DR_RDATA_15 (0x8000U << ADC_DR_RDATA_Pos) /*!< 0x00008000 */
  1283. /******************** Bit definition for ADC_JSQR register ******************/
  1284. #define ADC_JSQR_JL_Pos (0U)
  1285. #define ADC_JSQR_JL_Msk (0x3U << ADC_JSQR_JL_Pos) /*!< 0x00000003 */
  1286. #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC group injected sequencer scan length */
  1287. #define ADC_JSQR_JL_0 (0x1U << ADC_JSQR_JL_Pos) /*!< 0x00000001 */
  1288. #define ADC_JSQR_JL_1 (0x2U << ADC_JSQR_JL_Pos) /*!< 0x00000002 */
  1289. #define ADC_JSQR_JEXTSEL_Pos (2U)
  1290. #define ADC_JSQR_JEXTSEL_Msk (0xFU << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000003C */
  1291. #define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC group injected external trigger source */
  1292. #define ADC_JSQR_JEXTSEL_0 (0x1U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */
  1293. #define ADC_JSQR_JEXTSEL_1 (0x2U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */
  1294. #define ADC_JSQR_JEXTSEL_2 (0x4U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */
  1295. #define ADC_JSQR_JEXTSEL_3 (0x8U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */
  1296. #define ADC_JSQR_JEXTEN_Pos (6U)
  1297. #define ADC_JSQR_JEXTEN_Msk (0x3U << ADC_JSQR_JEXTEN_Pos) /*!< 0x000000C0 */
  1298. #define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC group injected external trigger polarity */
  1299. #define ADC_JSQR_JEXTEN_0 (0x1U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000040 */
  1300. #define ADC_JSQR_JEXTEN_1 (0x2U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */
  1301. #define ADC_JSQR_JSQ1_Pos (8U)
  1302. #define ADC_JSQR_JSQ1_Msk (0x1FU << ADC_JSQR_JSQ1_Pos) /*!< 0x00001F00 */
  1303. #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC group injected sequencer rank 1 */
  1304. #define ADC_JSQR_JSQ1_0 (0x01U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000100 */
  1305. #define ADC_JSQR_JSQ1_1 (0x02U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */
  1306. #define ADC_JSQR_JSQ1_2 (0x04U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */
  1307. #define ADC_JSQR_JSQ1_3 (0x08U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */
  1308. #define ADC_JSQR_JSQ1_4 (0x10U << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */
  1309. #define ADC_JSQR_JSQ2_Pos (14U)
  1310. #define ADC_JSQR_JSQ2_Msk (0x1FU << ADC_JSQR_JSQ2_Pos) /*!< 0x0007C000 */
  1311. #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC group injected sequencer rank 2 */
  1312. #define ADC_JSQR_JSQ2_0 (0x01U << ADC_JSQR_JSQ2_Pos) /*!< 0x00004000 */
  1313. #define ADC_JSQR_JSQ2_1 (0x02U << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */
  1314. #define ADC_JSQR_JSQ2_2 (0x04U << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */
  1315. #define ADC_JSQR_JSQ2_3 (0x08U << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */
  1316. #define ADC_JSQR_JSQ2_4 (0x10U << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */
  1317. #define ADC_JSQR_JSQ3_Pos (20U)
  1318. #define ADC_JSQR_JSQ3_Msk (0x1FU << ADC_JSQR_JSQ3_Pos) /*!< 0x01F00000 */
  1319. #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC group injected sequencer rank 3 */
  1320. #define ADC_JSQR_JSQ3_0 (0x01U << ADC_JSQR_JSQ3_Pos) /*!< 0x00100000 */
  1321. #define ADC_JSQR_JSQ3_1 (0x02U << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */
  1322. #define ADC_JSQR_JSQ3_2 (0x04U << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */
  1323. #define ADC_JSQR_JSQ3_3 (0x08U << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */
  1324. #define ADC_JSQR_JSQ3_4 (0x10U << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */
  1325. #define ADC_JSQR_JSQ4_Pos (26U)
  1326. #define ADC_JSQR_JSQ4_Msk (0x1FU << ADC_JSQR_JSQ4_Pos) /*!< 0x7C000000 */
  1327. #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC group injected sequencer rank 4 */
  1328. #define ADC_JSQR_JSQ4_0 (0x01U << ADC_JSQR_JSQ4_Pos) /*!< 0x04000000 */
  1329. #define ADC_JSQR_JSQ4_1 (0x02U << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */
  1330. #define ADC_JSQR_JSQ4_2 (0x04U << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */
  1331. #define ADC_JSQR_JSQ4_3 (0x08U << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */
  1332. #define ADC_JSQR_JSQ4_4 (0x10U << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */
  1333. /******************** Bit definition for ADC_OFR1 register ******************/
  1334. #define ADC_OFR1_OFFSET1_Pos (0U)
  1335. #define ADC_OFR1_OFFSET1_Msk (0xFFFU << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000FFF */
  1336. #define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC offset number 1 offset level */
  1337. #define ADC_OFR1_OFFSET1_0 (0x001U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
  1338. #define ADC_OFR1_OFFSET1_1 (0x002U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
  1339. #define ADC_OFR1_OFFSET1_2 (0x004U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
  1340. #define ADC_OFR1_OFFSET1_3 (0x008U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
  1341. #define ADC_OFR1_OFFSET1_4 (0x010U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
  1342. #define ADC_OFR1_OFFSET1_5 (0x020U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
  1343. #define ADC_OFR1_OFFSET1_6 (0x040U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
  1344. #define ADC_OFR1_OFFSET1_7 (0x080U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
  1345. #define ADC_OFR1_OFFSET1_8 (0x100U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
  1346. #define ADC_OFR1_OFFSET1_9 (0x200U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
  1347. #define ADC_OFR1_OFFSET1_10 (0x400U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
  1348. #define ADC_OFR1_OFFSET1_11 (0x800U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
  1349. #define ADC_OFR1_OFFSET1_CH_Pos (26U)
  1350. #define ADC_OFR1_OFFSET1_CH_Msk (0x1FU << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */
  1351. #define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC offset number 1 channel selection */
  1352. #define ADC_OFR1_OFFSET1_CH_0 (0x01U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */
  1353. #define ADC_OFR1_OFFSET1_CH_1 (0x02U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */
  1354. #define ADC_OFR1_OFFSET1_CH_2 (0x04U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */
  1355. #define ADC_OFR1_OFFSET1_CH_3 (0x08U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */
  1356. #define ADC_OFR1_OFFSET1_CH_4 (0x10U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */
  1357. #define ADC_OFR1_OFFSET1_EN_Pos (31U)
  1358. #define ADC_OFR1_OFFSET1_EN_Msk (0x1U << ADC_OFR1_OFFSET1_EN_Pos) /*!< 0x80000000 */
  1359. #define ADC_OFR1_OFFSET1_EN ADC_OFR1_OFFSET1_EN_Msk /*!< ADC offset number 1 enable */
  1360. /******************** Bit definition for ADC_OFR2 register ******************/
  1361. #define ADC_OFR2_OFFSET2_Pos (0U)
  1362. #define ADC_OFR2_OFFSET2_Msk (0xFFFU << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000FFF */
  1363. #define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC offset number 2 offset level */
  1364. #define ADC_OFR2_OFFSET2_0 (0x001U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
  1365. #define ADC_OFR2_OFFSET2_1 (0x002U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
  1366. #define ADC_OFR2_OFFSET2_2 (0x004U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
  1367. #define ADC_OFR2_OFFSET2_3 (0x008U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
  1368. #define ADC_OFR2_OFFSET2_4 (0x010U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
  1369. #define ADC_OFR2_OFFSET2_5 (0x020U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
  1370. #define ADC_OFR2_OFFSET2_6 (0x040U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
  1371. #define ADC_OFR2_OFFSET2_7 (0x080U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
  1372. #define ADC_OFR2_OFFSET2_8 (0x100U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
  1373. #define ADC_OFR2_OFFSET2_9 (0x200U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
  1374. #define ADC_OFR2_OFFSET2_10 (0x400U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
  1375. #define ADC_OFR2_OFFSET2_11 (0x800U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
  1376. #define ADC_OFR2_OFFSET2_CH_Pos (26U)
  1377. #define ADC_OFR2_OFFSET2_CH_Msk (0x1FU << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */
  1378. #define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC offset number 2 channel selection */
  1379. #define ADC_OFR2_OFFSET2_CH_0 (0x01U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */
  1380. #define ADC_OFR2_OFFSET2_CH_1 (0x02U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */
  1381. #define ADC_OFR2_OFFSET2_CH_2 (0x04U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */
  1382. #define ADC_OFR2_OFFSET2_CH_3 (0x08U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */
  1383. #define ADC_OFR2_OFFSET2_CH_4 (0x10U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */
  1384. #define ADC_OFR2_OFFSET2_EN_Pos (31U)
  1385. #define ADC_OFR2_OFFSET2_EN_Msk (0x1U << ADC_OFR2_OFFSET2_EN_Pos) /*!< 0x80000000 */
  1386. #define ADC_OFR2_OFFSET2_EN ADC_OFR2_OFFSET2_EN_Msk /*!< ADC offset number 2 enable */
  1387. /******************** Bit definition for ADC_OFR3 register ******************/
  1388. #define ADC_OFR3_OFFSET3_Pos (0U)
  1389. #define ADC_OFR3_OFFSET3_Msk (0xFFFU << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000FFF */
  1390. #define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC offset number 3 offset level */
  1391. #define ADC_OFR3_OFFSET3_0 (0x001U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
  1392. #define ADC_OFR3_OFFSET3_1 (0x002U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
  1393. #define ADC_OFR3_OFFSET3_2 (0x004U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
  1394. #define ADC_OFR3_OFFSET3_3 (0x008U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
  1395. #define ADC_OFR3_OFFSET3_4 (0x010U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
  1396. #define ADC_OFR3_OFFSET3_5 (0x020U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
  1397. #define ADC_OFR3_OFFSET3_6 (0x040U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
  1398. #define ADC_OFR3_OFFSET3_7 (0x080U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
  1399. #define ADC_OFR3_OFFSET3_8 (0x100U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
  1400. #define ADC_OFR3_OFFSET3_9 (0x200U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
  1401. #define ADC_OFR3_OFFSET3_10 (0x400U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
  1402. #define ADC_OFR3_OFFSET3_11 (0x800U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
  1403. #define ADC_OFR3_OFFSET3_CH_Pos (26U)
  1404. #define ADC_OFR3_OFFSET3_CH_Msk (0x1FU << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */
  1405. #define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC offset number 3 channel selection */
  1406. #define ADC_OFR3_OFFSET3_CH_0 (0x01U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */
  1407. #define ADC_OFR3_OFFSET3_CH_1 (0x02U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */
  1408. #define ADC_OFR3_OFFSET3_CH_2 (0x04U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */
  1409. #define ADC_OFR3_OFFSET3_CH_3 (0x08U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */
  1410. #define ADC_OFR3_OFFSET3_CH_4 (0x10U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */
  1411. #define ADC_OFR3_OFFSET3_EN_Pos (31U)
  1412. #define ADC_OFR3_OFFSET3_EN_Msk (0x1U << ADC_OFR3_OFFSET3_EN_Pos) /*!< 0x80000000 */
  1413. #define ADC_OFR3_OFFSET3_EN ADC_OFR3_OFFSET3_EN_Msk /*!< ADC offset number 3 enable */
  1414. /******************** Bit definition for ADC_OFR4 register ******************/
  1415. #define ADC_OFR4_OFFSET4_Pos (0U)
  1416. #define ADC_OFR4_OFFSET4_Msk (0xFFFU << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000FFF */
  1417. #define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC offset number 4 offset level */
  1418. #define ADC_OFR4_OFFSET4_0 (0x001U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
  1419. #define ADC_OFR4_OFFSET4_1 (0x002U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
  1420. #define ADC_OFR4_OFFSET4_2 (0x004U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
  1421. #define ADC_OFR4_OFFSET4_3 (0x008U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
  1422. #define ADC_OFR4_OFFSET4_4 (0x010U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
  1423. #define ADC_OFR4_OFFSET4_5 (0x020U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
  1424. #define ADC_OFR4_OFFSET4_6 (0x040U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
  1425. #define ADC_OFR4_OFFSET4_7 (0x080U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
  1426. #define ADC_OFR4_OFFSET4_8 (0x100U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
  1427. #define ADC_OFR4_OFFSET4_9 (0x200U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
  1428. #define ADC_OFR4_OFFSET4_10 (0x400U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
  1429. #define ADC_OFR4_OFFSET4_11 (0x800U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
  1430. #define ADC_OFR4_OFFSET4_CH_Pos (26U)
  1431. #define ADC_OFR4_OFFSET4_CH_Msk (0x1FU << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */
  1432. #define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC offset number 4 channel selection */
  1433. #define ADC_OFR4_OFFSET4_CH_0 (0x01U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */
  1434. #define ADC_OFR4_OFFSET4_CH_1 (0x02U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */
  1435. #define ADC_OFR4_OFFSET4_CH_2 (0x04U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */
  1436. #define ADC_OFR4_OFFSET4_CH_3 (0x08U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */
  1437. #define ADC_OFR4_OFFSET4_CH_4 (0x10U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */
  1438. #define ADC_OFR4_OFFSET4_EN_Pos (31U)
  1439. #define ADC_OFR4_OFFSET4_EN_Msk (0x1U << ADC_OFR4_OFFSET4_EN_Pos) /*!< 0x80000000 */
  1440. #define ADC_OFR4_OFFSET4_EN ADC_OFR4_OFFSET4_EN_Msk /*!< ADC offset number 4 enable */
  1441. /******************** Bit definition for ADC_JDR1 register ******************/
  1442. #define ADC_JDR1_JDATA_Pos (0U)
  1443. #define ADC_JDR1_JDATA_Msk (0xFFFFU << ADC_JDR1_JDATA_Pos) /*!< 0x0000FFFF */
  1444. #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC group injected sequencer rank 1 conversion data */
  1445. #define ADC_JDR1_JDATA_0 (0x0001U << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */
  1446. #define ADC_JDR1_JDATA_1 (0x0002U << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */
  1447. #define ADC_JDR1_JDATA_2 (0x0004U << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */
  1448. #define ADC_JDR1_JDATA_3 (0x0008U << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */
  1449. #define ADC_JDR1_JDATA_4 (0x0010U << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */
  1450. #define ADC_JDR1_JDATA_5 (0x0020U << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */
  1451. #define ADC_JDR1_JDATA_6 (0x0040U << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */
  1452. #define ADC_JDR1_JDATA_7 (0x0080U << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */
  1453. #define ADC_JDR1_JDATA_8 (0x0100U << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */
  1454. #define ADC_JDR1_JDATA_9 (0x0200U << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */
  1455. #define ADC_JDR1_JDATA_10 (0x0400U << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */
  1456. #define ADC_JDR1_JDATA_11 (0x0800U << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */
  1457. #define ADC_JDR1_JDATA_12 (0x1000U << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */
  1458. #define ADC_JDR1_JDATA_13 (0x2000U << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */
  1459. #define ADC_JDR1_JDATA_14 (0x4000U << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */
  1460. #define ADC_JDR1_JDATA_15 (0x8000U << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */
  1461. /******************** Bit definition for ADC_JDR2 register ******************/
  1462. #define ADC_JDR2_JDATA_Pos (0U)
  1463. #define ADC_JDR2_JDATA_Msk (0xFFFFU << ADC_JDR2_JDATA_Pos) /*!< 0x0000FFFF */
  1464. #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC group injected sequencer rank 2 conversion data */
  1465. #define ADC_JDR2_JDATA_0 (0x0001U << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */
  1466. #define ADC_JDR2_JDATA_1 (0x0002U << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */
  1467. #define ADC_JDR2_JDATA_2 (0x0004U << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */
  1468. #define ADC_JDR2_JDATA_3 (0x0008U << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */
  1469. #define ADC_JDR2_JDATA_4 (0x0010U << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */
  1470. #define ADC_JDR2_JDATA_5 (0x0020U << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */
  1471. #define ADC_JDR2_JDATA_6 (0x0040U << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */
  1472. #define ADC_JDR2_JDATA_7 (0x0080U << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */
  1473. #define ADC_JDR2_JDATA_8 (0x0100U << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */
  1474. #define ADC_JDR2_JDATA_9 (0x0200U << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */
  1475. #define ADC_JDR2_JDATA_10 (0x0400U << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */
  1476. #define ADC_JDR2_JDATA_11 (0x0800U << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */
  1477. #define ADC_JDR2_JDATA_12 (0x1000U << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */
  1478. #define ADC_JDR2_JDATA_13 (0x2000U << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */
  1479. #define ADC_JDR2_JDATA_14 (0x4000U << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */
  1480. #define ADC_JDR2_JDATA_15 (0x8000U << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */
  1481. /******************** Bit definition for ADC_JDR3 register ******************/
  1482. #define ADC_JDR3_JDATA_Pos (0U)
  1483. #define ADC_JDR3_JDATA_Msk (0xFFFFU << ADC_JDR3_JDATA_Pos) /*!< 0x0000FFFF */
  1484. #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC group injected sequencer rank 3 conversion data */
  1485. #define ADC_JDR3_JDATA_0 (0x0001U << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */
  1486. #define ADC_JDR3_JDATA_1 (0x0002U << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */
  1487. #define ADC_JDR3_JDATA_2 (0x0004U << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */
  1488. #define ADC_JDR3_JDATA_3 (0x0008U << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */
  1489. #define ADC_JDR3_JDATA_4 (0x0010U << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */
  1490. #define ADC_JDR3_JDATA_5 (0x0020U << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */
  1491. #define ADC_JDR3_JDATA_6 (0x0040U << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */
  1492. #define ADC_JDR3_JDATA_7 (0x0080U << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */
  1493. #define ADC_JDR3_JDATA_8 (0x0100U << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */
  1494. #define ADC_JDR3_JDATA_9 (0x0200U << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */
  1495. #define ADC_JDR3_JDATA_10 (0x0400U << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */
  1496. #define ADC_JDR3_JDATA_11 (0x0800U << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */
  1497. #define ADC_JDR3_JDATA_12 (0x1000U << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */
  1498. #define ADC_JDR3_JDATA_13 (0x2000U << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */
  1499. #define ADC_JDR3_JDATA_14 (0x4000U << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */
  1500. #define ADC_JDR3_JDATA_15 (0x8000U << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */
  1501. /******************** Bit definition for ADC_JDR4 register ******************/
  1502. #define ADC_JDR4_JDATA_Pos (0U)
  1503. #define ADC_JDR4_JDATA_Msk (0xFFFFU << ADC_JDR4_JDATA_Pos) /*!< 0x0000FFFF */
  1504. #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC group injected sequencer rank 4 conversion data */
  1505. #define ADC_JDR4_JDATA_0 (0x0001U << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */
  1506. #define ADC_JDR4_JDATA_1 (0x0002U << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */
  1507. #define ADC_JDR4_JDATA_2 (0x0004U << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */
  1508. #define ADC_JDR4_JDATA_3 (0x0008U << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */
  1509. #define ADC_JDR4_JDATA_4 (0x0010U << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */
  1510. #define ADC_JDR4_JDATA_5 (0x0020U << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */
  1511. #define ADC_JDR4_JDATA_6 (0x0040U << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */
  1512. #define ADC_JDR4_JDATA_7 (0x0080U << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */
  1513. #define ADC_JDR4_JDATA_8 (0x0100U << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */
  1514. #define ADC_JDR4_JDATA_9 (0x0200U << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */
  1515. #define ADC_JDR4_JDATA_10 (0x0400U << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */
  1516. #define ADC_JDR4_JDATA_11 (0x0800U << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */
  1517. #define ADC_JDR4_JDATA_12 (0x1000U << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */
  1518. #define ADC_JDR4_JDATA_13 (0x2000U << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */
  1519. #define ADC_JDR4_JDATA_14 (0x4000U << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */
  1520. #define ADC_JDR4_JDATA_15 (0x8000U << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */
  1521. /******************** Bit definition for ADC_AWD2CR register ****************/
  1522. #define ADC_AWD2CR_AWD2CH_Pos (0U)
  1523. #define ADC_AWD2CR_AWD2CH_Msk (0x7FFFFU << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x0007FFFF */
  1524. #define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC analog watchdog 2 monitored channel selection */
  1525. #define ADC_AWD2CR_AWD2CH_0 (0x00001U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */
  1526. #define ADC_AWD2CR_AWD2CH_1 (0x00002U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */
  1527. #define ADC_AWD2CR_AWD2CH_2 (0x00004U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */
  1528. #define ADC_AWD2CR_AWD2CH_3 (0x00008U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */
  1529. #define ADC_AWD2CR_AWD2CH_4 (0x00010U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */
  1530. #define ADC_AWD2CR_AWD2CH_5 (0x00020U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */
  1531. #define ADC_AWD2CR_AWD2CH_6 (0x00040U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */
  1532. #define ADC_AWD2CR_AWD2CH_7 (0x00080U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */
  1533. #define ADC_AWD2CR_AWD2CH_8 (0x00100U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */
  1534. #define ADC_AWD2CR_AWD2CH_9 (0x00200U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */
  1535. #define ADC_AWD2CR_AWD2CH_10 (0x00400U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */
  1536. #define ADC_AWD2CR_AWD2CH_11 (0x00800U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */
  1537. #define ADC_AWD2CR_AWD2CH_12 (0x01000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */
  1538. #define ADC_AWD2CR_AWD2CH_13 (0x02000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */
  1539. #define ADC_AWD2CR_AWD2CH_14 (0x04000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */
  1540. #define ADC_AWD2CR_AWD2CH_15 (0x08000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */
  1541. #define ADC_AWD2CR_AWD2CH_16 (0x10000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */
  1542. #define ADC_AWD2CR_AWD2CH_17 (0x20000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */
  1543. #define ADC_AWD2CR_AWD2CH_18 (0x40000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */
  1544. /******************** Bit definition for ADC_AWD3CR register ****************/
  1545. #define ADC_AWD3CR_AWD3CH_Pos (0U)
  1546. #define ADC_AWD3CR_AWD3CH_Msk (0x7FFFFU << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x0007FFFF */
  1547. #define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC analog watchdog 3 monitored channel selection */
  1548. #define ADC_AWD3CR_AWD3CH_0 (0x00001U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */
  1549. #define ADC_AWD3CR_AWD3CH_1 (0x00002U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */
  1550. #define ADC_AWD3CR_AWD3CH_2 (0x00004U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */
  1551. #define ADC_AWD3CR_AWD3CH_3 (0x00008U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */
  1552. #define ADC_AWD3CR_AWD3CH_4 (0x00010U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */
  1553. #define ADC_AWD3CR_AWD3CH_5 (0x00020U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */
  1554. #define ADC_AWD3CR_AWD3CH_6 (0x00040U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */
  1555. #define ADC_AWD3CR_AWD3CH_7 (0x00080U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */
  1556. #define ADC_AWD3CR_AWD3CH_8 (0x00100U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */
  1557. #define ADC_AWD3CR_AWD3CH_9 (0x00200U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */
  1558. #define ADC_AWD3CR_AWD3CH_10 (0x00400U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */
  1559. #define ADC_AWD3CR_AWD3CH_11 (0x00800U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */
  1560. #define ADC_AWD3CR_AWD3CH_12 (0x01000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */
  1561. #define ADC_AWD3CR_AWD3CH_13 (0x02000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */
  1562. #define ADC_AWD3CR_AWD3CH_14 (0x04000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */
  1563. #define ADC_AWD3CR_AWD3CH_15 (0x08000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */
  1564. #define ADC_AWD3CR_AWD3CH_16 (0x10000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */
  1565. #define ADC_AWD3CR_AWD3CH_17 (0x20000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */
  1566. #define ADC_AWD3CR_AWD3CH_18 (0x40000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */
  1567. /******************** Bit definition for ADC_DIFSEL register ****************/
  1568. #define ADC_DIFSEL_DIFSEL_Pos (0U)
  1569. #define ADC_DIFSEL_DIFSEL_Msk (0x7FFFFU << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x0007FFFF */
  1570. #define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC channel differential or single-ended mode */
  1571. #define ADC_DIFSEL_DIFSEL_0 (0x00001U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */
  1572. #define ADC_DIFSEL_DIFSEL_1 (0x00002U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */
  1573. #define ADC_DIFSEL_DIFSEL_2 (0x00004U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */
  1574. #define ADC_DIFSEL_DIFSEL_3 (0x00008U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */
  1575. #define ADC_DIFSEL_DIFSEL_4 (0x00010U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */
  1576. #define ADC_DIFSEL_DIFSEL_5 (0x00020U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */
  1577. #define ADC_DIFSEL_DIFSEL_6 (0x00040U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */
  1578. #define ADC_DIFSEL_DIFSEL_7 (0x00080U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */
  1579. #define ADC_DIFSEL_DIFSEL_8 (0x00100U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */
  1580. #define ADC_DIFSEL_DIFSEL_9 (0x00200U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */
  1581. #define ADC_DIFSEL_DIFSEL_10 (0x00400U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */
  1582. #define ADC_DIFSEL_DIFSEL_11 (0x00800U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */
  1583. #define ADC_DIFSEL_DIFSEL_12 (0x01000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */
  1584. #define ADC_DIFSEL_DIFSEL_13 (0x02000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */
  1585. #define ADC_DIFSEL_DIFSEL_14 (0x04000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */
  1586. #define ADC_DIFSEL_DIFSEL_15 (0x08000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */
  1587. #define ADC_DIFSEL_DIFSEL_16 (0x10000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */
  1588. #define ADC_DIFSEL_DIFSEL_17 (0x20000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */
  1589. #define ADC_DIFSEL_DIFSEL_18 (0x40000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */
  1590. /******************** Bit definition for ADC_CALFACT register ***************/
  1591. #define ADC_CALFACT_CALFACT_S_Pos (0U)
  1592. #define ADC_CALFACT_CALFACT_S_Msk (0x7FU << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x0000007F */
  1593. #define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factor in single-ended mode */
  1594. #define ADC_CALFACT_CALFACT_S_0 (0x01U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */
  1595. #define ADC_CALFACT_CALFACT_S_1 (0x02U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */
  1596. #define ADC_CALFACT_CALFACT_S_2 (0x04U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */
  1597. #define ADC_CALFACT_CALFACT_S_3 (0x08U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */
  1598. #define ADC_CALFACT_CALFACT_S_4 (0x10U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */
  1599. #define ADC_CALFACT_CALFACT_S_5 (0x20U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */
  1600. #define ADC_CALFACT_CALFACT_S_6 (0x40U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */
  1601. #define ADC_CALFACT_CALFACT_D_Pos (16U)
  1602. #define ADC_CALFACT_CALFACT_D_Msk (0x7FU << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x007F0000 */
  1603. #define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factor in differential mode */
  1604. #define ADC_CALFACT_CALFACT_D_0 (0x01U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */
  1605. #define ADC_CALFACT_CALFACT_D_1 (0x02U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */
  1606. #define ADC_CALFACT_CALFACT_D_2 (0x04U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */
  1607. #define ADC_CALFACT_CALFACT_D_3 (0x08U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */
  1608. #define ADC_CALFACT_CALFACT_D_4 (0x10U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */
  1609. #define ADC_CALFACT_CALFACT_D_5 (0x20U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */
  1610. #define ADC_CALFACT_CALFACT_D_6 (0x40U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */
  1611. /************************* ADC Common registers *****************************/
  1612. /*************** Bit definition for ADC12_COMMON_CSR register ***************/
  1613. #define ADC12_CSR_ADRDY_MST_Pos (0U)
  1614. #define ADC12_CSR_ADRDY_MST_Msk (0x1U << ADC12_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
  1615. #define ADC12_CSR_ADRDY_MST ADC12_CSR_ADRDY_MST_Msk /*!< Master ADC ready */
  1616. #define ADC12_CSR_ADRDY_EOSMP_MST_Pos (1U)
  1617. #define ADC12_CSR_ADRDY_EOSMP_MST_Msk (0x1U << ADC12_CSR_ADRDY_EOSMP_MST_Pos) /*!< 0x00000002 */
  1618. #define ADC12_CSR_ADRDY_EOSMP_MST ADC12_CSR_ADRDY_EOSMP_MST_Msk /*!< End of sampling phase flag of the master ADC */
  1619. #define ADC12_CSR_ADRDY_EOC_MST_Pos (2U)
  1620. #define ADC12_CSR_ADRDY_EOC_MST_Msk (0x1U << ADC12_CSR_ADRDY_EOC_MST_Pos) /*!< 0x00000004 */
  1621. #define ADC12_CSR_ADRDY_EOC_MST ADC12_CSR_ADRDY_EOC_MST_Msk /*!< End of regular conversion of the master ADC */
  1622. #define ADC12_CSR_ADRDY_EOS_MST_Pos (3U)
  1623. #define ADC12_CSR_ADRDY_EOS_MST_Msk (0x1U << ADC12_CSR_ADRDY_EOS_MST_Pos) /*!< 0x00000008 */
  1624. #define ADC12_CSR_ADRDY_EOS_MST ADC12_CSR_ADRDY_EOS_MST_Msk /*!< End of regular sequence flag of the master ADC */
  1625. #define ADC12_CSR_ADRDY_OVR_MST_Pos (4U)
  1626. #define ADC12_CSR_ADRDY_OVR_MST_Msk (0x1U << ADC12_CSR_ADRDY_OVR_MST_Pos) /*!< 0x00000010 */
  1627. #define ADC12_CSR_ADRDY_OVR_MST ADC12_CSR_ADRDY_OVR_MST_Msk /*!< Overrun flag of the master ADC */
  1628. #define ADC12_CSR_ADRDY_JEOC_MST_Pos (5U)
  1629. #define ADC12_CSR_ADRDY_JEOC_MST_Msk (0x1U << ADC12_CSR_ADRDY_JEOC_MST_Pos) /*!< 0x00000020 */
  1630. #define ADC12_CSR_ADRDY_JEOC_MST ADC12_CSR_ADRDY_JEOC_MST_Msk /*!< End of injected conversion of the master ADC */
  1631. #define ADC12_CSR_ADRDY_JEOS_MST_Pos (6U)
  1632. #define ADC12_CSR_ADRDY_JEOS_MST_Msk (0x1U << ADC12_CSR_ADRDY_JEOS_MST_Pos) /*!< 0x00000040 */
  1633. #define ADC12_CSR_ADRDY_JEOS_MST ADC12_CSR_ADRDY_JEOS_MST_Msk /*!< End of injected sequence flag of the master ADC */
  1634. #define ADC12_CSR_AWD1_MST_Pos (7U)
  1635. #define ADC12_CSR_AWD1_MST_Msk (0x1U << ADC12_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
  1636. #define ADC12_CSR_AWD1_MST ADC12_CSR_AWD1_MST_Msk /*!< Analog watchdog 1 flag of the master ADC */
  1637. #define ADC12_CSR_AWD2_MST_Pos (8U)
  1638. #define ADC12_CSR_AWD2_MST_Msk (0x1U << ADC12_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
  1639. #define ADC12_CSR_AWD2_MST ADC12_CSR_AWD2_MST_Msk /*!< Analog watchdog 2 flag of the master ADC */
  1640. #define ADC12_CSR_AWD3_MST_Pos (9U)
  1641. #define ADC12_CSR_AWD3_MST_Msk (0x1U << ADC12_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
  1642. #define ADC12_CSR_AWD3_MST ADC12_CSR_AWD3_MST_Msk /*!< Analog watchdog 3 flag of the master ADC */
  1643. #define ADC12_CSR_JQOVF_MST_Pos (10U)
  1644. #define ADC12_CSR_JQOVF_MST_Msk (0x1U << ADC12_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
  1645. #define ADC12_CSR_JQOVF_MST ADC12_CSR_JQOVF_MST_Msk /*!< Injected context queue overflow flag of the master ADC */
  1646. #define ADC12_CSR_ADRDY_SLV_Pos (16U)
  1647. #define ADC12_CSR_ADRDY_SLV_Msk (0x1U << ADC12_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
  1648. #define ADC12_CSR_ADRDY_SLV ADC12_CSR_ADRDY_SLV_Msk /*!< Slave ADC ready */
  1649. #define ADC12_CSR_ADRDY_EOSMP_SLV_Pos (17U)
  1650. #define ADC12_CSR_ADRDY_EOSMP_SLV_Msk (0x1U << ADC12_CSR_ADRDY_EOSMP_SLV_Pos) /*!< 0x00020000 */
  1651. #define ADC12_CSR_ADRDY_EOSMP_SLV ADC12_CSR_ADRDY_EOSMP_SLV_Msk /*!< End of sampling phase flag of the slave ADC */
  1652. #define ADC12_CSR_ADRDY_EOC_SLV_Pos (18U)
  1653. #define ADC12_CSR_ADRDY_EOC_SLV_Msk (0x1U << ADC12_CSR_ADRDY_EOC_SLV_Pos) /*!< 0x00040000 */
  1654. #define ADC12_CSR_ADRDY_EOC_SLV ADC12_CSR_ADRDY_EOC_SLV_Msk /*!< End of regular conversion of the slave ADC */
  1655. #define ADC12_CSR_ADRDY_EOS_SLV_Pos (19U)
  1656. #define ADC12_CSR_ADRDY_EOS_SLV_Msk (0x1U << ADC12_CSR_ADRDY_EOS_SLV_Pos) /*!< 0x00080000 */
  1657. #define ADC12_CSR_ADRDY_EOS_SLV ADC12_CSR_ADRDY_EOS_SLV_Msk /*!< End of regular sequence flag of the slave ADC */
  1658. #define ADC12_CSR_ADRDY_OVR_SLV_Pos (20U)
  1659. #define ADC12_CSR_ADRDY_OVR_SLV_Msk (0x1U << ADC12_CSR_ADRDY_OVR_SLV_Pos) /*!< 0x00100000 */
  1660. #define ADC12_CSR_ADRDY_OVR_SLV ADC12_CSR_ADRDY_OVR_SLV_Msk /*!< Overrun flag of the slave ADC */
  1661. #define ADC12_CSR_ADRDY_JEOC_SLV_Pos (21U)
  1662. #define ADC12_CSR_ADRDY_JEOC_SLV_Msk (0x1U << ADC12_CSR_ADRDY_JEOC_SLV_Pos) /*!< 0x00200000 */
  1663. #define ADC12_CSR_ADRDY_JEOC_SLV ADC12_CSR_ADRDY_JEOC_SLV_Msk /*!< End of injected conversion of the slave ADC */
  1664. #define ADC12_CSR_ADRDY_JEOS_SLV_Pos (22U)
  1665. #define ADC12_CSR_ADRDY_JEOS_SLV_Msk (0x1U << ADC12_CSR_ADRDY_JEOS_SLV_Pos) /*!< 0x00400000 */
  1666. #define ADC12_CSR_ADRDY_JEOS_SLV ADC12_CSR_ADRDY_JEOS_SLV_Msk /*!< End of injected sequence flag of the slave ADC */
  1667. #define ADC12_CSR_AWD1_SLV_Pos (23U)
  1668. #define ADC12_CSR_AWD1_SLV_Msk (0x1U << ADC12_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
  1669. #define ADC12_CSR_AWD1_SLV ADC12_CSR_AWD1_SLV_Msk /*!< Analog watchdog 1 flag of the slave ADC */
  1670. #define ADC12_CSR_AWD2_SLV_Pos (24U)
  1671. #define ADC12_CSR_AWD2_SLV_Msk (0x1U << ADC12_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
  1672. #define ADC12_CSR_AWD2_SLV ADC12_CSR_AWD2_SLV_Msk /*!< Analog watchdog 2 flag of the slave ADC */
  1673. #define ADC12_CSR_AWD3_SLV_Pos (25U)
  1674. #define ADC12_CSR_AWD3_SLV_Msk (0x1U << ADC12_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
  1675. #define ADC12_CSR_AWD3_SLV ADC12_CSR_AWD3_SLV_Msk /*!< Analog watchdog 3 flag of the slave ADC */
  1676. #define ADC12_CSR_JQOVF_SLV_Pos (26U)
  1677. #define ADC12_CSR_JQOVF_SLV_Msk (0x1U << ADC12_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
  1678. #define ADC12_CSR_JQOVF_SLV ADC12_CSR_JQOVF_SLV_Msk /*!< Injected context queue overflow flag of the slave ADC */
  1679. /*************** Bit definition for ADC12_COMMON_CCR register ***************/
  1680. #define ADC12_CCR_MULTI_Pos (0U)
  1681. #define ADC12_CCR_MULTI_Msk (0x1FU << ADC12_CCR_MULTI_Pos) /*!< 0x0000001F */
  1682. #define ADC12_CCR_MULTI ADC12_CCR_MULTI_Msk /*!< Multi ADC mode selection */
  1683. #define ADC12_CCR_MULTI_0 (0x01U << ADC12_CCR_MULTI_Pos) /*!< 0x00000001 */
  1684. #define ADC12_CCR_MULTI_1 (0x02U << ADC12_CCR_MULTI_Pos) /*!< 0x00000002 */
  1685. #define ADC12_CCR_MULTI_2 (0x04U << ADC12_CCR_MULTI_Pos) /*!< 0x00000004 */
  1686. #define ADC12_CCR_MULTI_3 (0x08U << ADC12_CCR_MULTI_Pos) /*!< 0x00000008 */
  1687. #define ADC12_CCR_MULTI_4 (0x10U << ADC12_CCR_MULTI_Pos) /*!< 0x00000010 */
  1688. #define ADC12_CCR_DELAY_Pos (8U)
  1689. #define ADC12_CCR_DELAY_Msk (0xFU << ADC12_CCR_DELAY_Pos) /*!< 0x00000F00 */
  1690. #define ADC12_CCR_DELAY ADC12_CCR_DELAY_Msk /*!< Delay between 2 sampling phases */
  1691. #define ADC12_CCR_DELAY_0 (0x1U << ADC12_CCR_DELAY_Pos) /*!< 0x00000100 */
  1692. #define ADC12_CCR_DELAY_1 (0x2U << ADC12_CCR_DELAY_Pos) /*!< 0x00000200 */
  1693. #define ADC12_CCR_DELAY_2 (0x4U << ADC12_CCR_DELAY_Pos) /*!< 0x00000400 */
  1694. #define ADC12_CCR_DELAY_3 (0x8U << ADC12_CCR_DELAY_Pos) /*!< 0x00000800 */
  1695. #define ADC12_CCR_DMACFG_Pos (13U)
  1696. #define ADC12_CCR_DMACFG_Msk (0x1U << ADC12_CCR_DMACFG_Pos) /*!< 0x00002000 */
  1697. #define ADC12_CCR_DMACFG ADC12_CCR_DMACFG_Msk /*!< DMA configuration for multi-ADC mode */
  1698. #define ADC12_CCR_MDMA_Pos (14U)
  1699. #define ADC12_CCR_MDMA_Msk (0x3U << ADC12_CCR_MDMA_Pos) /*!< 0x0000C000 */
  1700. #define ADC12_CCR_MDMA ADC12_CCR_MDMA_Msk /*!< DMA mode for multi-ADC mode */
  1701. #define ADC12_CCR_MDMA_0 (0x1U << ADC12_CCR_MDMA_Pos) /*!< 0x00004000 */
  1702. #define ADC12_CCR_MDMA_1 (0x2U << ADC12_CCR_MDMA_Pos) /*!< 0x00008000 */
  1703. #define ADC12_CCR_CKMODE_Pos (16U)
  1704. #define ADC12_CCR_CKMODE_Msk (0x3U << ADC12_CCR_CKMODE_Pos) /*!< 0x00030000 */
  1705. #define ADC12_CCR_CKMODE ADC12_CCR_CKMODE_Msk /*!< ADC clock mode */
  1706. #define ADC12_CCR_CKMODE_0 (0x1U << ADC12_CCR_CKMODE_Pos) /*!< 0x00010000 */
  1707. #define ADC12_CCR_CKMODE_1 (0x2U << ADC12_CCR_CKMODE_Pos) /*!< 0x00020000 */
  1708. #define ADC12_CCR_VREFEN_Pos (22U)
  1709. #define ADC12_CCR_VREFEN_Msk (0x1U << ADC12_CCR_VREFEN_Pos) /*!< 0x00400000 */
  1710. #define ADC12_CCR_VREFEN ADC12_CCR_VREFEN_Msk /*!< VREFINT enable */
  1711. #define ADC12_CCR_TSEN_Pos (23U)
  1712. #define ADC12_CCR_TSEN_Msk (0x1U << ADC12_CCR_TSEN_Pos) /*!< 0x00800000 */
  1713. #define ADC12_CCR_TSEN ADC12_CCR_TSEN_Msk /*!< Temperature sensor enable */
  1714. #define ADC12_CCR_VBATEN_Pos (24U)
  1715. #define ADC12_CCR_VBATEN_Msk (0x1U << ADC12_CCR_VBATEN_Pos) /*!< 0x01000000 */
  1716. #define ADC12_CCR_VBATEN ADC12_CCR_VBATEN_Msk /*!< VBAT enable */
  1717. /*************** Bit definition for ADC12_COMMON_CDR register ***************/
  1718. #define ADC12_CDR_RDATA_MST_Pos (0U)
  1719. #define ADC12_CDR_RDATA_MST_Msk (0xFFFFU << ADC12_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
  1720. #define ADC12_CDR_RDATA_MST ADC12_CDR_RDATA_MST_Msk /*!< Regular Data of the master ADC */
  1721. #define ADC12_CDR_RDATA_MST_0 (0x0001U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000001 */
  1722. #define ADC12_CDR_RDATA_MST_1 (0x0002U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000002 */
  1723. #define ADC12_CDR_RDATA_MST_2 (0x0004U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000004 */
  1724. #define ADC12_CDR_RDATA_MST_3 (0x0008U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000008 */
  1725. #define ADC12_CDR_RDATA_MST_4 (0x0010U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000010 */
  1726. #define ADC12_CDR_RDATA_MST_5 (0x0020U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000020 */
  1727. #define ADC12_CDR_RDATA_MST_6 (0x0040U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000040 */
  1728. #define ADC12_CDR_RDATA_MST_7 (0x0080U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000080 */
  1729. #define ADC12_CDR_RDATA_MST_8 (0x0100U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000100 */
  1730. #define ADC12_CDR_RDATA_MST_9 (0x0200U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000200 */
  1731. #define ADC12_CDR_RDATA_MST_10 (0x0400U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000400 */
  1732. #define ADC12_CDR_RDATA_MST_11 (0x0800U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00000800 */
  1733. #define ADC12_CDR_RDATA_MST_12 (0x1000U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00001000 */
  1734. #define ADC12_CDR_RDATA_MST_13 (0x2000U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00002000 */
  1735. #define ADC12_CDR_RDATA_MST_14 (0x4000U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00004000 */
  1736. #define ADC12_CDR_RDATA_MST_15 (0x8000U << ADC12_CDR_RDATA_MST_Pos) /*!< 0x00008000 */
  1737. #define ADC12_CDR_RDATA_SLV_Pos (16U)
  1738. #define ADC12_CDR_RDATA_SLV_Msk (0xFFFFU << ADC12_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
  1739. #define ADC12_CDR_RDATA_SLV ADC12_CDR_RDATA_SLV_Msk /*!< Regular Data of the master ADC */
  1740. #define ADC12_CDR_RDATA_SLV_0 (0x0001U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00010000 */
  1741. #define ADC12_CDR_RDATA_SLV_1 (0x0002U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00020000 */
  1742. #define ADC12_CDR_RDATA_SLV_2 (0x0004U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00040000 */
  1743. #define ADC12_CDR_RDATA_SLV_3 (0x0008U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00080000 */
  1744. #define ADC12_CDR_RDATA_SLV_4 (0x0010U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00100000 */
  1745. #define ADC12_CDR_RDATA_SLV_5 (0x0020U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00200000 */
  1746. #define ADC12_CDR_RDATA_SLV_6 (0x0040U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00400000 */
  1747. #define ADC12_CDR_RDATA_SLV_7 (0x0080U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x00800000 */
  1748. #define ADC12_CDR_RDATA_SLV_8 (0x0100U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x01000000 */
  1749. #define ADC12_CDR_RDATA_SLV_9 (0x0200U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x02000000 */
  1750. #define ADC12_CDR_RDATA_SLV_10 (0x0400U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x04000000 */
  1751. #define ADC12_CDR_RDATA_SLV_11 (0x0800U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x08000000 */
  1752. #define ADC12_CDR_RDATA_SLV_12 (0x1000U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x10000000 */
  1753. #define ADC12_CDR_RDATA_SLV_13 (0x2000U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x20000000 */
  1754. #define ADC12_CDR_RDATA_SLV_14 (0x4000U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x40000000 */
  1755. #define ADC12_CDR_RDATA_SLV_15 (0x8000U << ADC12_CDR_RDATA_SLV_Pos) /*!< 0x80000000 */
  1756. /******************** Bit definition for ADC_CSR register *******************/
  1757. #define ADC_CSR_ADRDY_MST_Pos (0U)
  1758. #define ADC_CSR_ADRDY_MST_Msk (0x1U << ADC_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
  1759. #define ADC_CSR_ADRDY_MST ADC_CSR_ADRDY_MST_Msk /*!< ADC multimode master ready flag */
  1760. #define ADC_CSR_EOSMP_MST_Pos (1U)
  1761. #define ADC_CSR_EOSMP_MST_Msk (0x1U << ADC_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */
  1762. #define ADC_CSR_EOSMP_MST ADC_CSR_EOSMP_MST_Msk /*!< ADC multimode master group regular end of sampling flag */
  1763. #define ADC_CSR_EOC_MST_Pos (2U)
  1764. #define ADC_CSR_EOC_MST_Msk (0x1U << ADC_CSR_EOC_MST_Pos) /*!< 0x00000004 */
  1765. #define ADC_CSR_EOC_MST ADC_CSR_EOC_MST_Msk /*!< ADC multimode master group regular end of unitary conversion flag */
  1766. #define ADC_CSR_EOS_MST_Pos (3U)
  1767. #define ADC_CSR_EOS_MST_Msk (0x1U << ADC_CSR_EOS_MST_Pos) /*!< 0x00000008 */
  1768. #define ADC_CSR_EOS_MST ADC_CSR_EOS_MST_Msk /*!< ADC multimode master group regular end of sequence conversions flag */
  1769. #define ADC_CSR_OVR_MST_Pos (4U)
  1770. #define ADC_CSR_OVR_MST_Msk (0x1U << ADC_CSR_OVR_MST_Pos) /*!< 0x00000010 */
  1771. #define ADC_CSR_OVR_MST ADC_CSR_OVR_MST_Msk /*!< ADC multimode master group regular overrun flag */
  1772. #define ADC_CSR_JEOC_MST_Pos (5U)
  1773. #define ADC_CSR_JEOC_MST_Msk (0x1U << ADC_CSR_JEOC_MST_Pos) /*!< 0x00000020 */
  1774. #define ADC_CSR_JEOC_MST ADC_CSR_JEOC_MST_Msk /*!< ADC multimode master group injected end of unitary conversion flag */
  1775. #define ADC_CSR_JEOS_MST_Pos (6U)
  1776. #define ADC_CSR_JEOS_MST_Msk (0x1U << ADC_CSR_JEOS_MST_Pos) /*!< 0x00000040 */
  1777. #define ADC_CSR_JEOS_MST ADC_CSR_JEOS_MST_Msk /*!< ADC multimode master group injected end of sequence conversions flag */
  1778. #define ADC_CSR_AWD1_MST_Pos (7U)
  1779. #define ADC_CSR_AWD1_MST_Msk (0x1U << ADC_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
  1780. #define ADC_CSR_AWD1_MST ADC_CSR_AWD1_MST_Msk /*!< ADC multimode master analog watchdog 1 flag */
  1781. #define ADC_CSR_AWD2_MST_Pos (8U)
  1782. #define ADC_CSR_AWD2_MST_Msk (0x1U << ADC_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
  1783. #define ADC_CSR_AWD2_MST ADC_CSR_AWD2_MST_Msk /*!< ADC multimode master analog watchdog 2 flag */
  1784. #define ADC_CSR_AWD3_MST_Pos (9U)
  1785. #define ADC_CSR_AWD3_MST_Msk (0x1U << ADC_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
  1786. #define ADC_CSR_AWD3_MST ADC_CSR_AWD3_MST_Msk /*!< ADC multimode master analog watchdog 3 flag */
  1787. #define ADC_CSR_JQOVF_MST_Pos (10U)
  1788. #define ADC_CSR_JQOVF_MST_Msk (0x1U << ADC_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
  1789. #define ADC_CSR_JQOVF_MST ADC_CSR_JQOVF_MST_Msk /*!< ADC multimode master group injected contexts queue overflow flag */
  1790. #define ADC_CSR_ADRDY_SLV_Pos (16U)
  1791. #define ADC_CSR_ADRDY_SLV_Msk (0x1U << ADC_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
  1792. #define ADC_CSR_ADRDY_SLV ADC_CSR_ADRDY_SLV_Msk /*!< ADC multimode slave ready flag */
  1793. #define ADC_CSR_EOSMP_SLV_Pos (17U)
  1794. #define ADC_CSR_EOSMP_SLV_Msk (0x1U << ADC_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */
  1795. #define ADC_CSR_EOSMP_SLV ADC_CSR_EOSMP_SLV_Msk /*!< ADC multimode slave group regular end of sampling flag */
  1796. #define ADC_CSR_EOC_SLV_Pos (18U)
  1797. #define ADC_CSR_EOC_SLV_Msk (0x1U << ADC_CSR_EOC_SLV_Pos) /*!< 0x00040000 */
  1798. #define ADC_CSR_EOC_SLV ADC_CSR_EOC_SLV_Msk /*!< ADC multimode slave group regular end of unitary conversion flag */
  1799. #define ADC_CSR_EOS_SLV_Pos (19U)
  1800. #define ADC_CSR_EOS_SLV_Msk (0x1U << ADC_CSR_EOS_SLV_Pos) /*!< 0x00080000 */
  1801. #define ADC_CSR_EOS_SLV ADC_CSR_EOS_SLV_Msk /*!< ADC multimode slave group regular end of sequence conversions flag */
  1802. #define ADC_CSR_OVR_SLV_Pos (20U)
  1803. #define ADC_CSR_OVR_SLV_Msk (0x1U << ADC_CSR_OVR_SLV_Pos) /*!< 0x00100000 */
  1804. #define ADC_CSR_OVR_SLV ADC_CSR_OVR_SLV_Msk /*!< ADC multimode slave group regular overrun flag */
  1805. #define ADC_CSR_JEOC_SLV_Pos (21U)
  1806. #define ADC_CSR_JEOC_SLV_Msk (0x1U << ADC_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */
  1807. #define ADC_CSR_JEOC_SLV ADC_CSR_JEOC_SLV_Msk /*!< ADC multimode slave group injected end of unitary conversion flag */
  1808. #define ADC_CSR_JEOS_SLV_Pos (22U)
  1809. #define ADC_CSR_JEOS_SLV_Msk (0x1U << ADC_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */
  1810. #define ADC_CSR_JEOS_SLV ADC_CSR_JEOS_SLV_Msk /*!< ADC multimode slave group injected end of sequence conversions flag */
  1811. #define ADC_CSR_AWD1_SLV_Pos (23U)
  1812. #define ADC_CSR_AWD1_SLV_Msk (0x1U << ADC_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
  1813. #define ADC_CSR_AWD1_SLV ADC_CSR_AWD1_SLV_Msk /*!< ADC multimode slave analog watchdog 1 flag */
  1814. #define ADC_CSR_AWD2_SLV_Pos (24U)
  1815. #define ADC_CSR_AWD2_SLV_Msk (0x1U << ADC_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
  1816. #define ADC_CSR_AWD2_SLV ADC_CSR_AWD2_SLV_Msk /*!< ADC multimode slave analog watchdog 2 flag */
  1817. #define ADC_CSR_AWD3_SLV_Pos (25U)
  1818. #define ADC_CSR_AWD3_SLV_Msk (0x1U << ADC_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
  1819. #define ADC_CSR_AWD3_SLV ADC_CSR_AWD3_SLV_Msk /*!< ADC multimode slave analog watchdog 3 flag */
  1820. #define ADC_CSR_JQOVF_SLV_Pos (26U)
  1821. #define ADC_CSR_JQOVF_SLV_Msk (0x1U << ADC_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
  1822. #define ADC_CSR_JQOVF_SLV ADC_CSR_JQOVF_SLV_Msk /*!< ADC multimode slave group injected contexts queue overflow flag */
  1823. /* Legacy defines */
  1824. #define ADC_CSR_ADRDY_EOSMP_MST ADC_CSR_EOSMP_MST
  1825. #define ADC_CSR_ADRDY_EOC_MST ADC_CSR_EOC_MST
  1826. #define ADC_CSR_ADRDY_EOS_MST ADC_CSR_EOS_MST
  1827. #define ADC_CSR_ADRDY_OVR_MST ADC_CSR_OVR_MST
  1828. #define ADC_CSR_ADRDY_JEOC_MST ADC_CSR_JEOC_MST
  1829. #define ADC_CSR_ADRDY_JEOS_MST ADC_CSR_JEOS_MST
  1830. #define ADC_CSR_ADRDY_EOSMP_SLV ADC_CSR_EOSMP_SLV
  1831. #define ADC_CSR_ADRDY_EOC_SLV ADC_CSR_EOC_SLV
  1832. #define ADC_CSR_ADRDY_EOS_SLV ADC_CSR_EOS_SLV
  1833. #define ADC_CSR_ADRDY_OVR_SLV ADC_CSR_OVR_SLV
  1834. #define ADC_CSR_ADRDY_JEOC_SLV ADC_CSR_JEOC_SLV
  1835. #define ADC_CSR_ADRDY_JEOS_SLV ADC_CSR_JEOS_SLV
  1836. /******************** Bit definition for ADC_CCR register *******************/
  1837. #define ADC_CCR_DUAL_Pos (0U)
  1838. #define ADC_CCR_DUAL_Msk (0x1FU << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */
  1839. #define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< ADC multimode mode selection */
  1840. #define ADC_CCR_DUAL_0 (0x01U << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */
  1841. #define ADC_CCR_DUAL_1 (0x02U << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */
  1842. #define ADC_CCR_DUAL_2 (0x04U << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */
  1843. #define ADC_CCR_DUAL_3 (0x08U << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */
  1844. #define ADC_CCR_DUAL_4 (0x10U << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */
  1845. #define ADC_CCR_DELAY_Pos (8U)
  1846. #define ADC_CCR_DELAY_Msk (0xFU << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */
  1847. #define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< ADC multimode delay between 2 sampling phases */
  1848. #define ADC_CCR_DELAY_0 (0x1U << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */
  1849. #define ADC_CCR_DELAY_1 (0x2U << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */
  1850. #define ADC_CCR_DELAY_2 (0x4U << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */
  1851. #define ADC_CCR_DELAY_3 (0x8U << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */
  1852. #define ADC_CCR_DMACFG_Pos (13U)
  1853. #define ADC_CCR_DMACFG_Msk (0x1U << ADC_CCR_DMACFG_Pos) /*!< 0x00002000 */
  1854. #define ADC_CCR_DMACFG ADC_CCR_DMACFG_Msk /*!< ADC multimode DMA transfer configuration */
  1855. #define ADC_CCR_MDMA_Pos (14U)
  1856. #define ADC_CCR_MDMA_Msk (0x3U << ADC_CCR_MDMA_Pos) /*!< 0x0000C000 */
  1857. #define ADC_CCR_MDMA ADC_CCR_MDMA_Msk /*!< ADC multimode DMA transfer enable */
  1858. #define ADC_CCR_MDMA_0 (0x1U << ADC_CCR_MDMA_Pos) /*!< 0x00004000 */
  1859. #define ADC_CCR_MDMA_1 (0x2U << ADC_CCR_MDMA_Pos) /*!< 0x00008000 */
  1860. #define ADC_CCR_CKMODE_Pos (16U)
  1861. #define ADC_CCR_CKMODE_Msk (0x3U << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */
  1862. #define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC common clock source and prescaler (prescaler only for clock source synchronous) */
  1863. #define ADC_CCR_CKMODE_0 (0x1U << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */
  1864. #define ADC_CCR_CKMODE_1 (0x2U << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */
  1865. #define ADC_CCR_VREFEN_Pos (22U)
  1866. #define ADC_CCR_VREFEN_Msk (0x1U << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  1867. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< ADC internal path to VrefInt enable */
  1868. #define ADC_CCR_TSEN_Pos (23U)
  1869. #define ADC_CCR_TSEN_Msk (0x1U << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  1870. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< ADC internal path to temperature sensor enable */
  1871. #define ADC_CCR_VBATEN_Pos (24U)
  1872. #define ADC_CCR_VBATEN_Msk (0x1U << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  1873. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
  1874. /* Legacy defines */
  1875. #define ADC_CCR_MULTI (ADC_CCR_DUAL)
  1876. #define ADC_CCR_MULTI_0 (ADC_CCR_DUAL_0)
  1877. #define ADC_CCR_MULTI_1 (ADC_CCR_DUAL_1)
  1878. #define ADC_CCR_MULTI_2 (ADC_CCR_DUAL_2)
  1879. #define ADC_CCR_MULTI_3 (ADC_CCR_DUAL_3)
  1880. #define ADC_CCR_MULTI_4 (ADC_CCR_DUAL_4)
  1881. /******************** Bit definition for ADC_CDR register *******************/
  1882. #define ADC_CDR_RDATA_MST_Pos (0U)
  1883. #define ADC_CDR_RDATA_MST_Msk (0xFFFFU << ADC_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
  1884. #define ADC_CDR_RDATA_MST ADC_CDR_RDATA_MST_Msk /*!< ADC multimode master group regular conversion data */
  1885. #define ADC_CDR_RDATA_MST_0 (0x0001U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000001 */
  1886. #define ADC_CDR_RDATA_MST_1 (0x0002U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000002 */
  1887. #define ADC_CDR_RDATA_MST_2 (0x0004U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000004 */
  1888. #define ADC_CDR_RDATA_MST_3 (0x0008U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000008 */
  1889. #define ADC_CDR_RDATA_MST_4 (0x0010U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000010 */
  1890. #define ADC_CDR_RDATA_MST_5 (0x0020U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000020 */
  1891. #define ADC_CDR_RDATA_MST_6 (0x0040U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000040 */
  1892. #define ADC_CDR_RDATA_MST_7 (0x0080U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000080 */
  1893. #define ADC_CDR_RDATA_MST_8 (0x0100U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000100 */
  1894. #define ADC_CDR_RDATA_MST_9 (0x0200U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000200 */
  1895. #define ADC_CDR_RDATA_MST_10 (0x0400U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000400 */
  1896. #define ADC_CDR_RDATA_MST_11 (0x0800U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000800 */
  1897. #define ADC_CDR_RDATA_MST_12 (0x1000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00001000 */
  1898. #define ADC_CDR_RDATA_MST_13 (0x2000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00002000 */
  1899. #define ADC_CDR_RDATA_MST_14 (0x4000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00004000 */
  1900. #define ADC_CDR_RDATA_MST_15 (0x8000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00008000 */
  1901. #define ADC_CDR_RDATA_SLV_Pos (16U)
  1902. #define ADC_CDR_RDATA_SLV_Msk (0xFFFFU << ADC_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
  1903. #define ADC_CDR_RDATA_SLV ADC_CDR_RDATA_SLV_Msk /*!< ADC multimode slave group regular conversion data */
  1904. #define ADC_CDR_RDATA_SLV_0 (0x0001U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00010000 */
  1905. #define ADC_CDR_RDATA_SLV_1 (0x0002U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00020000 */
  1906. #define ADC_CDR_RDATA_SLV_2 (0x0004U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00040000 */
  1907. #define ADC_CDR_RDATA_SLV_3 (0x0008U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00080000 */
  1908. #define ADC_CDR_RDATA_SLV_4 (0x0010U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00100000 */
  1909. #define ADC_CDR_RDATA_SLV_5 (0x0020U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00200000 */
  1910. #define ADC_CDR_RDATA_SLV_6 (0x0040U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00400000 */
  1911. #define ADC_CDR_RDATA_SLV_7 (0x0080U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00800000 */
  1912. #define ADC_CDR_RDATA_SLV_8 (0x0100U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x01000000 */
  1913. #define ADC_CDR_RDATA_SLV_9 (0x0200U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x02000000 */
  1914. #define ADC_CDR_RDATA_SLV_10 (0x0400U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x04000000 */
  1915. #define ADC_CDR_RDATA_SLV_11 (0x0800U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x08000000 */
  1916. #define ADC_CDR_RDATA_SLV_12 (0x1000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x10000000 */
  1917. #define ADC_CDR_RDATA_SLV_13 (0x2000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x20000000 */
  1918. #define ADC_CDR_RDATA_SLV_14 (0x4000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x40000000 */
  1919. #define ADC_CDR_RDATA_SLV_15 (0x8000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x80000000 */
  1920. /******************************************************************************/
  1921. /* */
  1922. /* Analog Comparators (COMP) */
  1923. /* */
  1924. /******************************************************************************/
  1925. #define COMP_V1_3_0_0 /*!< Comparator IP version */
  1926. /********************** Bit definition for COMP2_CSR register ***************/
  1927. #define COMP2_CSR_COMP2EN_Pos (0U)
  1928. #define COMP2_CSR_COMP2EN_Msk (0x1U << COMP2_CSR_COMP2EN_Pos) /*!< 0x00000001 */
  1929. #define COMP2_CSR_COMP2EN COMP2_CSR_COMP2EN_Msk /*!< COMP2 enable */
  1930. #define COMP2_CSR_COMP2INSEL_Pos (4U)
  1931. #define COMP2_CSR_COMP2INSEL_Msk (0x40007U << COMP2_CSR_COMP2INSEL_Pos) /*!< 0x00400070 */
  1932. #define COMP2_CSR_COMP2INSEL COMP2_CSR_COMP2INSEL_Msk /*!< COMP2 inverting input select */
  1933. #define COMP2_CSR_COMP2INSEL_0 (0x00000010U) /*!< COMP2 inverting input select bit 0 */
  1934. #define COMP2_CSR_COMP2INSEL_1 (0x00000020U) /*!< COMP2 inverting input select bit 1 */
  1935. #define COMP2_CSR_COMP2INSEL_2 (0x00000040U) /*!< COMP2 inverting input select bit 2 */
  1936. #define COMP2_CSR_COMP2INSEL_3 (0x00400000U) /*!< COMP2 inverting input select bit 3 */
  1937. #define COMP2_CSR_COMP2OUTSEL_Pos (10U)
  1938. #define COMP2_CSR_COMP2OUTSEL_Msk (0xFU << COMP2_CSR_COMP2OUTSEL_Pos) /*!< 0x00003C00 */
  1939. #define COMP2_CSR_COMP2OUTSEL COMP2_CSR_COMP2OUTSEL_Msk /*!< COMP2 output select */
  1940. #define COMP2_CSR_COMP2OUTSEL_0 (0x1U << COMP2_CSR_COMP2OUTSEL_Pos) /*!< 0x00000400 */
  1941. #define COMP2_CSR_COMP2OUTSEL_1 (0x2U << COMP2_CSR_COMP2OUTSEL_Pos) /*!< 0x00000800 */
  1942. #define COMP2_CSR_COMP2OUTSEL_2 (0x4U << COMP2_CSR_COMP2OUTSEL_Pos) /*!< 0x00001000 */
  1943. #define COMP2_CSR_COMP2OUTSEL_3 (0x8U << COMP2_CSR_COMP2OUTSEL_Pos) /*!< 0x00002000 */
  1944. #define COMP2_CSR_COMP2POL_Pos (15U)
  1945. #define COMP2_CSR_COMP2POL_Msk (0x1U << COMP2_CSR_COMP2POL_Pos) /*!< 0x00008000 */
  1946. #define COMP2_CSR_COMP2POL COMP2_CSR_COMP2POL_Msk /*!< COMP2 output polarity */
  1947. #define COMP2_CSR_COMP2BLANKING_Pos (18U)
  1948. #define COMP2_CSR_COMP2BLANKING_Msk (0x3U << COMP2_CSR_COMP2BLANKING_Pos) /*!< 0x000C0000 */
  1949. #define COMP2_CSR_COMP2BLANKING COMP2_CSR_COMP2BLANKING_Msk /*!< COMP2 blanking */
  1950. #define COMP2_CSR_COMP2BLANKING_0 (0x1U << COMP2_CSR_COMP2BLANKING_Pos) /*!< 0x00040000 */
  1951. #define COMP2_CSR_COMP2BLANKING_1 (0x2U << COMP2_CSR_COMP2BLANKING_Pos) /*!< 0x00080000 */
  1952. #define COMP2_CSR_COMP2BLANKING_2 (0x4U << COMP2_CSR_COMP2BLANKING_Pos) /*!< 0x00100000 */
  1953. #define COMP2_CSR_COMP2OUT_Pos (30U)
  1954. #define COMP2_CSR_COMP2OUT_Msk (0x1U << COMP2_CSR_COMP2OUT_Pos) /*!< 0x40000000 */
  1955. #define COMP2_CSR_COMP2OUT COMP2_CSR_COMP2OUT_Msk /*!< COMP2 output level */
  1956. #define COMP2_CSR_COMP2LOCK_Pos (31U)
  1957. #define COMP2_CSR_COMP2LOCK_Msk (0x1U << COMP2_CSR_COMP2LOCK_Pos) /*!< 0x80000000 */
  1958. #define COMP2_CSR_COMP2LOCK COMP2_CSR_COMP2LOCK_Msk /*!< COMP2 lock */
  1959. /********************** Bit definition for COMP4_CSR register ***************/
  1960. #define COMP4_CSR_COMP4EN_Pos (0U)
  1961. #define COMP4_CSR_COMP4EN_Msk (0x1U << COMP4_CSR_COMP4EN_Pos) /*!< 0x00000001 */
  1962. #define COMP4_CSR_COMP4EN COMP4_CSR_COMP4EN_Msk /*!< COMP4 enable */
  1963. #define COMP4_CSR_COMP4INSEL_Pos (4U)
  1964. #define COMP4_CSR_COMP4INSEL_Msk (0x40007U << COMP4_CSR_COMP4INSEL_Pos) /*!< 0x00400070 */
  1965. #define COMP4_CSR_COMP4INSEL COMP4_CSR_COMP4INSEL_Msk /*!< COMP4 inverting input select */
  1966. #define COMP4_CSR_COMP4INSEL_0 (0x00000010U) /*!< COMP4 inverting input select bit 0 */
  1967. #define COMP4_CSR_COMP4INSEL_1 (0x00000020U) /*!< COMP4 inverting input select bit 1 */
  1968. #define COMP4_CSR_COMP4INSEL_2 (0x00000040U) /*!< COMP4 inverting input select bit 2 */
  1969. #define COMP4_CSR_COMP4INSEL_3 (0x00400000U) /*!< COMP4 inverting input select bit 3 */
  1970. #define COMP4_CSR_COMP4OUTSEL_Pos (10U)
  1971. #define COMP4_CSR_COMP4OUTSEL_Msk (0xFU << COMP4_CSR_COMP4OUTSEL_Pos) /*!< 0x00003C00 */
  1972. #define COMP4_CSR_COMP4OUTSEL COMP4_CSR_COMP4OUTSEL_Msk /*!< COMP4 output select */
  1973. #define COMP4_CSR_COMP4OUTSEL_0 (0x1U << COMP4_CSR_COMP4OUTSEL_Pos) /*!< 0x00000400 */
  1974. #define COMP4_CSR_COMP4OUTSEL_1 (0x2U << COMP4_CSR_COMP4OUTSEL_Pos) /*!< 0x00000800 */
  1975. #define COMP4_CSR_COMP4OUTSEL_2 (0x4U << COMP4_CSR_COMP4OUTSEL_Pos) /*!< 0x00001000 */
  1976. #define COMP4_CSR_COMP4OUTSEL_3 (0x8U << COMP4_CSR_COMP4OUTSEL_Pos) /*!< 0x00002000 */
  1977. #define COMP4_CSR_COMP4POL_Pos (15U)
  1978. #define COMP4_CSR_COMP4POL_Msk (0x1U << COMP4_CSR_COMP4POL_Pos) /*!< 0x00008000 */
  1979. #define COMP4_CSR_COMP4POL COMP4_CSR_COMP4POL_Msk /*!< COMP4 output polarity */
  1980. #define COMP4_CSR_COMP4BLANKING_Pos (18U)
  1981. #define COMP4_CSR_COMP4BLANKING_Msk (0x3U << COMP4_CSR_COMP4BLANKING_Pos) /*!< 0x000C0000 */
  1982. #define COMP4_CSR_COMP4BLANKING COMP4_CSR_COMP4BLANKING_Msk /*!< COMP4 blanking */
  1983. #define COMP4_CSR_COMP4BLANKING_0 (0x1U << COMP4_CSR_COMP4BLANKING_Pos) /*!< 0x00040000 */
  1984. #define COMP4_CSR_COMP4BLANKING_1 (0x2U << COMP4_CSR_COMP4BLANKING_Pos) /*!< 0x00080000 */
  1985. #define COMP4_CSR_COMP4BLANKING_2 (0x4U << COMP4_CSR_COMP4BLANKING_Pos) /*!< 0x00100000 */
  1986. #define COMP4_CSR_COMP4OUT_Pos (30U)
  1987. #define COMP4_CSR_COMP4OUT_Msk (0x1U << COMP4_CSR_COMP4OUT_Pos) /*!< 0x40000000 */
  1988. #define COMP4_CSR_COMP4OUT COMP4_CSR_COMP4OUT_Msk /*!< COMP4 output level */
  1989. #define COMP4_CSR_COMP4LOCK_Pos (31U)
  1990. #define COMP4_CSR_COMP4LOCK_Msk (0x1U << COMP4_CSR_COMP4LOCK_Pos) /*!< 0x80000000 */
  1991. #define COMP4_CSR_COMP4LOCK COMP4_CSR_COMP4LOCK_Msk /*!< COMP4 lock */
  1992. /********************** Bit definition for COMP6_CSR register ***************/
  1993. #define COMP6_CSR_COMP6EN_Pos (0U)
  1994. #define COMP6_CSR_COMP6EN_Msk (0x1U << COMP6_CSR_COMP6EN_Pos) /*!< 0x00000001 */
  1995. #define COMP6_CSR_COMP6EN COMP6_CSR_COMP6EN_Msk /*!< COMP6 enable */
  1996. #define COMP6_CSR_COMP6INSEL_Pos (4U)
  1997. #define COMP6_CSR_COMP6INSEL_Msk (0x40007U << COMP6_CSR_COMP6INSEL_Pos) /*!< 0x00400070 */
  1998. #define COMP6_CSR_COMP6INSEL COMP6_CSR_COMP6INSEL_Msk /*!< COMP6 inverting input select */
  1999. #define COMP6_CSR_COMP6INSEL_0 (0x00000010U) /*!< COMP6 inverting input select bit 0 */
  2000. #define COMP6_CSR_COMP6INSEL_1 (0x00000020U) /*!< COMP6 inverting input select bit 1 */
  2001. #define COMP6_CSR_COMP6INSEL_2 (0x00000040U) /*!< COMP6 inverting input select bit 2 */
  2002. #define COMP6_CSR_COMP6INSEL_3 (0x00400000U) /*!< COMP6 inverting input select bit 3 */
  2003. #define COMP6_CSR_COMP6OUTSEL_Pos (10U)
  2004. #define COMP6_CSR_COMP6OUTSEL_Msk (0xFU << COMP6_CSR_COMP6OUTSEL_Pos) /*!< 0x00003C00 */
  2005. #define COMP6_CSR_COMP6OUTSEL COMP6_CSR_COMP6OUTSEL_Msk /*!< COMP6 output select */
  2006. #define COMP6_CSR_COMP6OUTSEL_0 (0x1U << COMP6_CSR_COMP6OUTSEL_Pos) /*!< 0x00000400 */
  2007. #define COMP6_CSR_COMP6OUTSEL_1 (0x2U << COMP6_CSR_COMP6OUTSEL_Pos) /*!< 0x00000800 */
  2008. #define COMP6_CSR_COMP6OUTSEL_2 (0x4U << COMP6_CSR_COMP6OUTSEL_Pos) /*!< 0x00001000 */
  2009. #define COMP6_CSR_COMP6OUTSEL_3 (0x8U << COMP6_CSR_COMP6OUTSEL_Pos) /*!< 0x00002000 */
  2010. #define COMP6_CSR_COMP6POL_Pos (15U)
  2011. #define COMP6_CSR_COMP6POL_Msk (0x1U << COMP6_CSR_COMP6POL_Pos) /*!< 0x00008000 */
  2012. #define COMP6_CSR_COMP6POL COMP6_CSR_COMP6POL_Msk /*!< COMP6 output polarity */
  2013. #define COMP6_CSR_COMP6BLANKING_Pos (18U)
  2014. #define COMP6_CSR_COMP6BLANKING_Msk (0x3U << COMP6_CSR_COMP6BLANKING_Pos) /*!< 0x000C0000 */
  2015. #define COMP6_CSR_COMP6BLANKING COMP6_CSR_COMP6BLANKING_Msk /*!< COMP6 blanking */
  2016. #define COMP6_CSR_COMP6BLANKING_0 (0x1U << COMP6_CSR_COMP6BLANKING_Pos) /*!< 0x00040000 */
  2017. #define COMP6_CSR_COMP6BLANKING_1 (0x2U << COMP6_CSR_COMP6BLANKING_Pos) /*!< 0x00080000 */
  2018. #define COMP6_CSR_COMP6BLANKING_2 (0x4U << COMP6_CSR_COMP6BLANKING_Pos) /*!< 0x00100000 */
  2019. #define COMP6_CSR_COMP6OUT_Pos (30U)
  2020. #define COMP6_CSR_COMP6OUT_Msk (0x1U << COMP6_CSR_COMP6OUT_Pos) /*!< 0x40000000 */
  2021. #define COMP6_CSR_COMP6OUT COMP6_CSR_COMP6OUT_Msk /*!< COMP6 output level */
  2022. #define COMP6_CSR_COMP6LOCK_Pos (31U)
  2023. #define COMP6_CSR_COMP6LOCK_Msk (0x1U << COMP6_CSR_COMP6LOCK_Pos) /*!< 0x80000000 */
  2024. #define COMP6_CSR_COMP6LOCK COMP6_CSR_COMP6LOCK_Msk /*!< COMP6 lock */
  2025. /********************** Bit definition for COMP_CSR register ****************/
  2026. #define COMP_CSR_COMPxEN_Pos (0U)
  2027. #define COMP_CSR_COMPxEN_Msk (0x1U << COMP_CSR_COMPxEN_Pos) /*!< 0x00000001 */
  2028. #define COMP_CSR_COMPxEN COMP_CSR_COMPxEN_Msk /*!< COMPx enable */
  2029. #define COMP_CSR_COMPxINSEL_Pos (4U)
  2030. #define COMP_CSR_COMPxINSEL_Msk (0x40007U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00400070 */
  2031. #define COMP_CSR_COMPxINSEL COMP_CSR_COMPxINSEL_Msk /*!< COMPx inverting input select */
  2032. #define COMP_CSR_COMPxINSEL_0 (0x00000010U) /*!< COMPx inverting input select bit 0 */
  2033. #define COMP_CSR_COMPxINSEL_1 (0x00000020U) /*!< COMPx inverting input select bit 1 */
  2034. #define COMP_CSR_COMPxINSEL_2 (0x00000040U) /*!< COMPx inverting input select bit 2 */
  2035. #define COMP_CSR_COMPxINSEL_3 (0x00400000U) /*!< COMPx inverting input select bit 3 */
  2036. #define COMP_CSR_COMPxOUTSEL_Pos (10U)
  2037. #define COMP_CSR_COMPxOUTSEL_Msk (0xFU << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00003C00 */
  2038. #define COMP_CSR_COMPxOUTSEL COMP_CSR_COMPxOUTSEL_Msk /*!< COMPx output select */
  2039. #define COMP_CSR_COMPxOUTSEL_0 (0x1U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000400 */
  2040. #define COMP_CSR_COMPxOUTSEL_1 (0x2U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000800 */
  2041. #define COMP_CSR_COMPxOUTSEL_2 (0x4U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00001000 */
  2042. #define COMP_CSR_COMPxOUTSEL_3 (0x8U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00002000 */
  2043. #define COMP_CSR_COMPxPOL_Pos (15U)
  2044. #define COMP_CSR_COMPxPOL_Msk (0x1U << COMP_CSR_COMPxPOL_Pos) /*!< 0x00008000 */
  2045. #define COMP_CSR_COMPxPOL COMP_CSR_COMPxPOL_Msk /*!< COMPx output polarity */
  2046. #define COMP_CSR_COMPxBLANKING_Pos (18U)
  2047. #define COMP_CSR_COMPxBLANKING_Msk (0x3U << COMP_CSR_COMPxBLANKING_Pos) /*!< 0x000C0000 */
  2048. #define COMP_CSR_COMPxBLANKING COMP_CSR_COMPxBLANKING_Msk /*!< COMPx blanking */
  2049. #define COMP_CSR_COMPxBLANKING_0 (0x1U << COMP_CSR_COMPxBLANKING_Pos) /*!< 0x00040000 */
  2050. #define COMP_CSR_COMPxBLANKING_1 (0x2U << COMP_CSR_COMPxBLANKING_Pos) /*!< 0x00080000 */
  2051. #define COMP_CSR_COMPxBLANKING_2 (0x4U << COMP_CSR_COMPxBLANKING_Pos) /*!< 0x00100000 */
  2052. #define COMP_CSR_COMPxOUT_Pos (30U)
  2053. #define COMP_CSR_COMPxOUT_Msk (0x1U << COMP_CSR_COMPxOUT_Pos) /*!< 0x40000000 */
  2054. #define COMP_CSR_COMPxOUT COMP_CSR_COMPxOUT_Msk /*!< COMPx output level */
  2055. #define COMP_CSR_COMPxLOCK_Pos (31U)
  2056. #define COMP_CSR_COMPxLOCK_Msk (0x1U << COMP_CSR_COMPxLOCK_Pos) /*!< 0x80000000 */
  2057. #define COMP_CSR_COMPxLOCK COMP_CSR_COMPxLOCK_Msk /*!< COMPx lock */
  2058. /******************************************************************************/
  2059. /* */
  2060. /* Operational Amplifier (OPAMP) */
  2061. /* */
  2062. /******************************************************************************/
  2063. /********************* Bit definition for OPAMP2_CSR register ***************/
  2064. #define OPAMP2_CSR_OPAMP2EN_Pos (0U)
  2065. #define OPAMP2_CSR_OPAMP2EN_Msk (0x1U << OPAMP2_CSR_OPAMP2EN_Pos) /*!< 0x00000001 */
  2066. #define OPAMP2_CSR_OPAMP2EN OPAMP2_CSR_OPAMP2EN_Msk /*!< OPAMP2 enable */
  2067. #define OPAMP2_CSR_FORCEVP_Pos (1U)
  2068. #define OPAMP2_CSR_FORCEVP_Msk (0x1U << OPAMP2_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  2069. #define OPAMP2_CSR_FORCEVP OPAMP2_CSR_FORCEVP_Msk /*!< Connect the internal references to the plus input of the OPAMPX */
  2070. #define OPAMP2_CSR_VPSEL_Pos (2U)
  2071. #define OPAMP2_CSR_VPSEL_Msk (0x3U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x0000000C */
  2072. #define OPAMP2_CSR_VPSEL OPAMP2_CSR_VPSEL_Msk /*!< Non inverting input selection */
  2073. #define OPAMP2_CSR_VPSEL_0 (0x1U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000004 */
  2074. #define OPAMP2_CSR_VPSEL_1 (0x2U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000008 */
  2075. #define OPAMP2_CSR_VMSEL_Pos (5U)
  2076. #define OPAMP2_CSR_VMSEL_Msk (0x3U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000060 */
  2077. #define OPAMP2_CSR_VMSEL OPAMP2_CSR_VMSEL_Msk /*!< Inverting input selection */
  2078. #define OPAMP2_CSR_VMSEL_0 (0x1U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000020 */
  2079. #define OPAMP2_CSR_VMSEL_1 (0x2U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000040 */
  2080. #define OPAMP2_CSR_TCMEN_Pos (7U)
  2081. #define OPAMP2_CSR_TCMEN_Msk (0x1U << OPAMP2_CSR_TCMEN_Pos) /*!< 0x00000080 */
  2082. #define OPAMP2_CSR_TCMEN OPAMP2_CSR_TCMEN_Msk /*!< Timer-Controlled Mux mode enable */
  2083. #define OPAMP2_CSR_VMSSEL_Pos (8U)
  2084. #define OPAMP2_CSR_VMSSEL_Msk (0x1U << OPAMP2_CSR_VMSSEL_Pos) /*!< 0x00000100 */
  2085. #define OPAMP2_CSR_VMSSEL OPAMP2_CSR_VMSSEL_Msk /*!< Inverting input secondary selection */
  2086. #define OPAMP2_CSR_VPSSEL_Pos (9U)
  2087. #define OPAMP2_CSR_VPSSEL_Msk (0x3U << OPAMP2_CSR_VPSSEL_Pos) /*!< 0x00000600 */
  2088. #define OPAMP2_CSR_VPSSEL OPAMP2_CSR_VPSSEL_Msk /*!< Non inverting input secondary selection */
  2089. #define OPAMP2_CSR_VPSSEL_0 (0x1U << OPAMP2_CSR_VPSSEL_Pos) /*!< 0x00000200 */
  2090. #define OPAMP2_CSR_VPSSEL_1 (0x2U << OPAMP2_CSR_VPSSEL_Pos) /*!< 0x00000400 */
  2091. #define OPAMP2_CSR_CALON_Pos (11U)
  2092. #define OPAMP2_CSR_CALON_Msk (0x1U << OPAMP2_CSR_CALON_Pos) /*!< 0x00000800 */
  2093. #define OPAMP2_CSR_CALON OPAMP2_CSR_CALON_Msk /*!< Calibration mode enable */
  2094. #define OPAMP2_CSR_CALSEL_Pos (12U)
  2095. #define OPAMP2_CSR_CALSEL_Msk (0x3U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00003000 */
  2096. #define OPAMP2_CSR_CALSEL OPAMP2_CSR_CALSEL_Msk /*!< Calibration selection */
  2097. #define OPAMP2_CSR_CALSEL_0 (0x1U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00001000 */
  2098. #define OPAMP2_CSR_CALSEL_1 (0x2U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00002000 */
  2099. #define OPAMP2_CSR_PGGAIN_Pos (14U)
  2100. #define OPAMP2_CSR_PGGAIN_Msk (0xFU << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  2101. #define OPAMP2_CSR_PGGAIN OPAMP2_CSR_PGGAIN_Msk /*!< Gain in PGA mode */
  2102. #define OPAMP2_CSR_PGGAIN_0 (0x1U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  2103. #define OPAMP2_CSR_PGGAIN_1 (0x2U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  2104. #define OPAMP2_CSR_PGGAIN_2 (0x4U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  2105. #define OPAMP2_CSR_PGGAIN_3 (0x8U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  2106. #define OPAMP2_CSR_USERTRIM_Pos (18U)
  2107. #define OPAMP2_CSR_USERTRIM_Msk (0x1U << OPAMP2_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  2108. #define OPAMP2_CSR_USERTRIM OPAMP2_CSR_USERTRIM_Msk /*!< User trimming enable */
  2109. #define OPAMP2_CSR_TRIMOFFSETP_Pos (19U)
  2110. #define OPAMP2_CSR_TRIMOFFSETP_Msk (0x1FU << OPAMP2_CSR_TRIMOFFSETP_Pos) /*!< 0x00F80000 */
  2111. #define OPAMP2_CSR_TRIMOFFSETP OPAMP2_CSR_TRIMOFFSETP_Msk /*!< Offset trimming value (PMOS) */
  2112. #define OPAMP2_CSR_TRIMOFFSETN_Pos (24U)
  2113. #define OPAMP2_CSR_TRIMOFFSETN_Msk (0x1FU << OPAMP2_CSR_TRIMOFFSETN_Pos) /*!< 0x1F000000 */
  2114. #define OPAMP2_CSR_TRIMOFFSETN OPAMP2_CSR_TRIMOFFSETN_Msk /*!< Offset trimming value (NMOS) */
  2115. #define OPAMP2_CSR_TSTREF_Pos (29U)
  2116. #define OPAMP2_CSR_TSTREF_Msk (0x1U << OPAMP2_CSR_TSTREF_Pos) /*!< 0x20000000 */
  2117. #define OPAMP2_CSR_TSTREF OPAMP2_CSR_TSTREF_Msk /*!< It enables the switch to put out the internal reference */
  2118. #define OPAMP2_CSR_OUTCAL_Pos (30U)
  2119. #define OPAMP2_CSR_OUTCAL_Msk (0x1U << OPAMP2_CSR_OUTCAL_Pos) /*!< 0x40000000 */
  2120. #define OPAMP2_CSR_OUTCAL OPAMP2_CSR_OUTCAL_Msk /*!< OPAMP ouput status flag */
  2121. #define OPAMP2_CSR_LOCK_Pos (31U)
  2122. #define OPAMP2_CSR_LOCK_Msk (0x1U << OPAMP2_CSR_LOCK_Pos) /*!< 0x80000000 */
  2123. #define OPAMP2_CSR_LOCK OPAMP2_CSR_LOCK_Msk /*!< OPAMP lock */
  2124. /********************* Bit definition for OPAMPx_CSR register ***************/
  2125. #define OPAMP_CSR_OPAMPxEN_Pos (0U)
  2126. #define OPAMP_CSR_OPAMPxEN_Msk (0x1U << OPAMP_CSR_OPAMPxEN_Pos) /*!< 0x00000001 */
  2127. #define OPAMP_CSR_OPAMPxEN OPAMP_CSR_OPAMPxEN_Msk /*!< OPAMP enable */
  2128. #define OPAMP_CSR_FORCEVP_Pos (1U)
  2129. #define OPAMP_CSR_FORCEVP_Msk (0x1U << OPAMP_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  2130. #define OPAMP_CSR_FORCEVP OPAMP_CSR_FORCEVP_Msk /*!< Connect the internal references to the plus input of the OPAMPX */
  2131. #define OPAMP_CSR_VPSEL_Pos (2U)
  2132. #define OPAMP_CSR_VPSEL_Msk (0x3U << OPAMP_CSR_VPSEL_Pos) /*!< 0x0000000C */
  2133. #define OPAMP_CSR_VPSEL OPAMP_CSR_VPSEL_Msk /*!< Non inverting input selection */
  2134. #define OPAMP_CSR_VPSEL_0 (0x1U << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000004 */
  2135. #define OPAMP_CSR_VPSEL_1 (0x2U << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000008 */
  2136. #define OPAMP_CSR_VMSEL_Pos (5U)
  2137. #define OPAMP_CSR_VMSEL_Msk (0x3U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000060 */
  2138. #define OPAMP_CSR_VMSEL OPAMP_CSR_VMSEL_Msk /*!< Inverting input selection */
  2139. #define OPAMP_CSR_VMSEL_0 (0x1U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000020 */
  2140. #define OPAMP_CSR_VMSEL_1 (0x2U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000040 */
  2141. #define OPAMP_CSR_TCMEN_Pos (7U)
  2142. #define OPAMP_CSR_TCMEN_Msk (0x1U << OPAMP_CSR_TCMEN_Pos) /*!< 0x00000080 */
  2143. #define OPAMP_CSR_TCMEN OPAMP_CSR_TCMEN_Msk /*!< Timer-Controlled Mux mode enable */
  2144. #define OPAMP_CSR_VMSSEL_Pos (8U)
  2145. #define OPAMP_CSR_VMSSEL_Msk (0x1U << OPAMP_CSR_VMSSEL_Pos) /*!< 0x00000100 */
  2146. #define OPAMP_CSR_VMSSEL OPAMP_CSR_VMSSEL_Msk /*!< Inverting input secondary selection */
  2147. #define OPAMP_CSR_VPSSEL_Pos (9U)
  2148. #define OPAMP_CSR_VPSSEL_Msk (0x3U << OPAMP_CSR_VPSSEL_Pos) /*!< 0x00000600 */
  2149. #define OPAMP_CSR_VPSSEL OPAMP_CSR_VPSSEL_Msk /*!< Non inverting input secondary selection */
  2150. #define OPAMP_CSR_VPSSEL_0 (0x1U << OPAMP_CSR_VPSSEL_Pos) /*!< 0x00000200 */
  2151. #define OPAMP_CSR_VPSSEL_1 (0x2U << OPAMP_CSR_VPSSEL_Pos) /*!< 0x00000400 */
  2152. #define OPAMP_CSR_CALON_Pos (11U)
  2153. #define OPAMP_CSR_CALON_Msk (0x1U << OPAMP_CSR_CALON_Pos) /*!< 0x00000800 */
  2154. #define OPAMP_CSR_CALON OPAMP_CSR_CALON_Msk /*!< Calibration mode enable */
  2155. #define OPAMP_CSR_CALSEL_Pos (12U)
  2156. #define OPAMP_CSR_CALSEL_Msk (0x3U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00003000 */
  2157. #define OPAMP_CSR_CALSEL OPAMP_CSR_CALSEL_Msk /*!< Calibration selection */
  2158. #define OPAMP_CSR_CALSEL_0 (0x1U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00001000 */
  2159. #define OPAMP_CSR_CALSEL_1 (0x2U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00002000 */
  2160. #define OPAMP_CSR_PGGAIN_Pos (14U)
  2161. #define OPAMP_CSR_PGGAIN_Msk (0xFU << OPAMP_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  2162. #define OPAMP_CSR_PGGAIN OPAMP_CSR_PGGAIN_Msk /*!< Gain in PGA mode */
  2163. #define OPAMP_CSR_PGGAIN_0 (0x1U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  2164. #define OPAMP_CSR_PGGAIN_1 (0x2U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  2165. #define OPAMP_CSR_PGGAIN_2 (0x4U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  2166. #define OPAMP_CSR_PGGAIN_3 (0x8U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  2167. #define OPAMP_CSR_USERTRIM_Pos (18U)
  2168. #define OPAMP_CSR_USERTRIM_Msk (0x1U << OPAMP_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  2169. #define OPAMP_CSR_USERTRIM OPAMP_CSR_USERTRIM_Msk /*!< User trimming enable */
  2170. #define OPAMP_CSR_TRIMOFFSETP_Pos (19U)
  2171. #define OPAMP_CSR_TRIMOFFSETP_Msk (0x1FU << OPAMP_CSR_TRIMOFFSETP_Pos) /*!< 0x00F80000 */
  2172. #define OPAMP_CSR_TRIMOFFSETP OPAMP_CSR_TRIMOFFSETP_Msk /*!< Offset trimming value (PMOS) */
  2173. #define OPAMP_CSR_TRIMOFFSETN_Pos (24U)
  2174. #define OPAMP_CSR_TRIMOFFSETN_Msk (0x1FU << OPAMP_CSR_TRIMOFFSETN_Pos) /*!< 0x1F000000 */
  2175. #define OPAMP_CSR_TRIMOFFSETN OPAMP_CSR_TRIMOFFSETN_Msk /*!< Offset trimming value (NMOS) */
  2176. #define OPAMP_CSR_TSTREF_Pos (29U)
  2177. #define OPAMP_CSR_TSTREF_Msk (0x1U << OPAMP_CSR_TSTREF_Pos) /*!< 0x20000000 */
  2178. #define OPAMP_CSR_TSTREF OPAMP_CSR_TSTREF_Msk /*!< It enables the switch to put out the internal reference */
  2179. #define OPAMP_CSR_OUTCAL_Pos (30U)
  2180. #define OPAMP_CSR_OUTCAL_Msk (0x1U << OPAMP_CSR_OUTCAL_Pos) /*!< 0x40000000 */
  2181. #define OPAMP_CSR_OUTCAL OPAMP_CSR_OUTCAL_Msk /*!< OPAMP ouput status flag */
  2182. #define OPAMP_CSR_LOCK_Pos (31U)
  2183. #define OPAMP_CSR_LOCK_Msk (0x1U << OPAMP_CSR_LOCK_Pos) /*!< 0x80000000 */
  2184. #define OPAMP_CSR_LOCK OPAMP_CSR_LOCK_Msk /*!< OPAMP lock */
  2185. /******************************************************************************/
  2186. /* */
  2187. /* Controller Area Network (CAN ) */
  2188. /* */
  2189. /******************************************************************************/
  2190. /******************* Bit definition for CAN_MCR register ********************/
  2191. #define CAN_MCR_INRQ_Pos (0U)
  2192. #define CAN_MCR_INRQ_Msk (0x1U << CAN_MCR_INRQ_Pos) /*!< 0x00000001 */
  2193. #define CAN_MCR_INRQ CAN_MCR_INRQ_Msk /*!<Initialization Request */
  2194. #define CAN_MCR_SLEEP_Pos (1U)
  2195. #define CAN_MCR_SLEEP_Msk (0x1U << CAN_MCR_SLEEP_Pos) /*!< 0x00000002 */
  2196. #define CAN_MCR_SLEEP CAN_MCR_SLEEP_Msk /*!<Sleep Mode Request */
  2197. #define CAN_MCR_TXFP_Pos (2U)
  2198. #define CAN_MCR_TXFP_Msk (0x1U << CAN_MCR_TXFP_Pos) /*!< 0x00000004 */
  2199. #define CAN_MCR_TXFP CAN_MCR_TXFP_Msk /*!<Transmit FIFO Priority */
  2200. #define CAN_MCR_RFLM_Pos (3U)
  2201. #define CAN_MCR_RFLM_Msk (0x1U << CAN_MCR_RFLM_Pos) /*!< 0x00000008 */
  2202. #define CAN_MCR_RFLM CAN_MCR_RFLM_Msk /*!<Receive FIFO Locked Mode */
  2203. #define CAN_MCR_NART_Pos (4U)
  2204. #define CAN_MCR_NART_Msk (0x1U << CAN_MCR_NART_Pos) /*!< 0x00000010 */
  2205. #define CAN_MCR_NART CAN_MCR_NART_Msk /*!<No Automatic Retransmission */
  2206. #define CAN_MCR_AWUM_Pos (5U)
  2207. #define CAN_MCR_AWUM_Msk (0x1U << CAN_MCR_AWUM_Pos) /*!< 0x00000020 */
  2208. #define CAN_MCR_AWUM CAN_MCR_AWUM_Msk /*!<Automatic Wakeup Mode */
  2209. #define CAN_MCR_ABOM_Pos (6U)
  2210. #define CAN_MCR_ABOM_Msk (0x1U << CAN_MCR_ABOM_Pos) /*!< 0x00000040 */
  2211. #define CAN_MCR_ABOM CAN_MCR_ABOM_Msk /*!<Automatic Bus-Off Management */
  2212. #define CAN_MCR_TTCM_Pos (7U)
  2213. #define CAN_MCR_TTCM_Msk (0x1U << CAN_MCR_TTCM_Pos) /*!< 0x00000080 */
  2214. #define CAN_MCR_TTCM CAN_MCR_TTCM_Msk /*!<Time Triggered Communication Mode */
  2215. #define CAN_MCR_RESET_Pos (15U)
  2216. #define CAN_MCR_RESET_Msk (0x1U << CAN_MCR_RESET_Pos) /*!< 0x00008000 */
  2217. #define CAN_MCR_RESET CAN_MCR_RESET_Msk /*!<bxCAN software master reset */
  2218. /******************* Bit definition for CAN_MSR register ********************/
  2219. #define CAN_MSR_INAK_Pos (0U)
  2220. #define CAN_MSR_INAK_Msk (0x1U << CAN_MSR_INAK_Pos) /*!< 0x00000001 */
  2221. #define CAN_MSR_INAK CAN_MSR_INAK_Msk /*!<Initialization Acknowledge */
  2222. #define CAN_MSR_SLAK_Pos (1U)
  2223. #define CAN_MSR_SLAK_Msk (0x1U << CAN_MSR_SLAK_Pos) /*!< 0x00000002 */
  2224. #define CAN_MSR_SLAK CAN_MSR_SLAK_Msk /*!<Sleep Acknowledge */
  2225. #define CAN_MSR_ERRI_Pos (2U)
  2226. #define CAN_MSR_ERRI_Msk (0x1U << CAN_MSR_ERRI_Pos) /*!< 0x00000004 */
  2227. #define CAN_MSR_ERRI CAN_MSR_ERRI_Msk /*!<Error Interrupt */
  2228. #define CAN_MSR_WKUI_Pos (3U)
  2229. #define CAN_MSR_WKUI_Msk (0x1U << CAN_MSR_WKUI_Pos) /*!< 0x00000008 */
  2230. #define CAN_MSR_WKUI CAN_MSR_WKUI_Msk /*!<Wakeup Interrupt */
  2231. #define CAN_MSR_SLAKI_Pos (4U)
  2232. #define CAN_MSR_SLAKI_Msk (0x1U << CAN_MSR_SLAKI_Pos) /*!< 0x00000010 */
  2233. #define CAN_MSR_SLAKI CAN_MSR_SLAKI_Msk /*!<Sleep Acknowledge Interrupt */
  2234. #define CAN_MSR_TXM_Pos (8U)
  2235. #define CAN_MSR_TXM_Msk (0x1U << CAN_MSR_TXM_Pos) /*!< 0x00000100 */
  2236. #define CAN_MSR_TXM CAN_MSR_TXM_Msk /*!<Transmit Mode */
  2237. #define CAN_MSR_RXM_Pos (9U)
  2238. #define CAN_MSR_RXM_Msk (0x1U << CAN_MSR_RXM_Pos) /*!< 0x00000200 */
  2239. #define CAN_MSR_RXM CAN_MSR_RXM_Msk /*!<Receive Mode */
  2240. #define CAN_MSR_SAMP_Pos (10U)
  2241. #define CAN_MSR_SAMP_Msk (0x1U << CAN_MSR_SAMP_Pos) /*!< 0x00000400 */
  2242. #define CAN_MSR_SAMP CAN_MSR_SAMP_Msk /*!<Last Sample Point */
  2243. #define CAN_MSR_RX_Pos (11U)
  2244. #define CAN_MSR_RX_Msk (0x1U << CAN_MSR_RX_Pos) /*!< 0x00000800 */
  2245. #define CAN_MSR_RX CAN_MSR_RX_Msk /*!<CAN Rx Signal */
  2246. /******************* Bit definition for CAN_TSR register ********************/
  2247. #define CAN_TSR_RQCP0_Pos (0U)
  2248. #define CAN_TSR_RQCP0_Msk (0x1U << CAN_TSR_RQCP0_Pos) /*!< 0x00000001 */
  2249. #define CAN_TSR_RQCP0 CAN_TSR_RQCP0_Msk /*!<Request Completed Mailbox0 */
  2250. #define CAN_TSR_TXOK0_Pos (1U)
  2251. #define CAN_TSR_TXOK0_Msk (0x1U << CAN_TSR_TXOK0_Pos) /*!< 0x00000002 */
  2252. #define CAN_TSR_TXOK0 CAN_TSR_TXOK0_Msk /*!<Transmission OK of Mailbox0 */
  2253. #define CAN_TSR_ALST0_Pos (2U)
  2254. #define CAN_TSR_ALST0_Msk (0x1U << CAN_TSR_ALST0_Pos) /*!< 0x00000004 */
  2255. #define CAN_TSR_ALST0 CAN_TSR_ALST0_Msk /*!<Arbitration Lost for Mailbox0 */
  2256. #define CAN_TSR_TERR0_Pos (3U)
  2257. #define CAN_TSR_TERR0_Msk (0x1U << CAN_TSR_TERR0_Pos) /*!< 0x00000008 */
  2258. #define CAN_TSR_TERR0 CAN_TSR_TERR0_Msk /*!<Transmission Error of Mailbox0 */
  2259. #define CAN_TSR_ABRQ0_Pos (7U)
  2260. #define CAN_TSR_ABRQ0_Msk (0x1U << CAN_TSR_ABRQ0_Pos) /*!< 0x00000080 */
  2261. #define CAN_TSR_ABRQ0 CAN_TSR_ABRQ0_Msk /*!<Abort Request for Mailbox0 */
  2262. #define CAN_TSR_RQCP1_Pos (8U)
  2263. #define CAN_TSR_RQCP1_Msk (0x1U << CAN_TSR_RQCP1_Pos) /*!< 0x00000100 */
  2264. #define CAN_TSR_RQCP1 CAN_TSR_RQCP1_Msk /*!<Request Completed Mailbox1 */
  2265. #define CAN_TSR_TXOK1_Pos (9U)
  2266. #define CAN_TSR_TXOK1_Msk (0x1U << CAN_TSR_TXOK1_Pos) /*!< 0x00000200 */
  2267. #define CAN_TSR_TXOK1 CAN_TSR_TXOK1_Msk /*!<Transmission OK of Mailbox1 */
  2268. #define CAN_TSR_ALST1_Pos (10U)
  2269. #define CAN_TSR_ALST1_Msk (0x1U << CAN_TSR_ALST1_Pos) /*!< 0x00000400 */
  2270. #define CAN_TSR_ALST1 CAN_TSR_ALST1_Msk /*!<Arbitration Lost for Mailbox1 */
  2271. #define CAN_TSR_TERR1_Pos (11U)
  2272. #define CAN_TSR_TERR1_Msk (0x1U << CAN_TSR_TERR1_Pos) /*!< 0x00000800 */
  2273. #define CAN_TSR_TERR1 CAN_TSR_TERR1_Msk /*!<Transmission Error of Mailbox1 */
  2274. #define CAN_TSR_ABRQ1_Pos (15U)
  2275. #define CAN_TSR_ABRQ1_Msk (0x1U << CAN_TSR_ABRQ1_Pos) /*!< 0x00008000 */
  2276. #define CAN_TSR_ABRQ1 CAN_TSR_ABRQ1_Msk /*!<Abort Request for Mailbox 1 */
  2277. #define CAN_TSR_RQCP2_Pos (16U)
  2278. #define CAN_TSR_RQCP2_Msk (0x1U << CAN_TSR_RQCP2_Pos) /*!< 0x00010000 */
  2279. #define CAN_TSR_RQCP2 CAN_TSR_RQCP2_Msk /*!<Request Completed Mailbox2 */
  2280. #define CAN_TSR_TXOK2_Pos (17U)
  2281. #define CAN_TSR_TXOK2_Msk (0x1U << CAN_TSR_TXOK2_Pos) /*!< 0x00020000 */
  2282. #define CAN_TSR_TXOK2 CAN_TSR_TXOK2_Msk /*!<Transmission OK of Mailbox 2 */
  2283. #define CAN_TSR_ALST2_Pos (18U)
  2284. #define CAN_TSR_ALST2_Msk (0x1U << CAN_TSR_ALST2_Pos) /*!< 0x00040000 */
  2285. #define CAN_TSR_ALST2 CAN_TSR_ALST2_Msk /*!<Arbitration Lost for mailbox 2 */
  2286. #define CAN_TSR_TERR2_Pos (19U)
  2287. #define CAN_TSR_TERR2_Msk (0x1U << CAN_TSR_TERR2_Pos) /*!< 0x00080000 */
  2288. #define CAN_TSR_TERR2 CAN_TSR_TERR2_Msk /*!<Transmission Error of Mailbox 2 */
  2289. #define CAN_TSR_ABRQ2_Pos (23U)
  2290. #define CAN_TSR_ABRQ2_Msk (0x1U << CAN_TSR_ABRQ2_Pos) /*!< 0x00800000 */
  2291. #define CAN_TSR_ABRQ2 CAN_TSR_ABRQ2_Msk /*!<Abort Request for Mailbox 2 */
  2292. #define CAN_TSR_CODE_Pos (24U)
  2293. #define CAN_TSR_CODE_Msk (0x3U << CAN_TSR_CODE_Pos) /*!< 0x03000000 */
  2294. #define CAN_TSR_CODE CAN_TSR_CODE_Msk /*!<Mailbox Code */
  2295. #define CAN_TSR_TME_Pos (26U)
  2296. #define CAN_TSR_TME_Msk (0x7U << CAN_TSR_TME_Pos) /*!< 0x1C000000 */
  2297. #define CAN_TSR_TME CAN_TSR_TME_Msk /*!<TME[2:0] bits */
  2298. #define CAN_TSR_TME0_Pos (26U)
  2299. #define CAN_TSR_TME0_Msk (0x1U << CAN_TSR_TME0_Pos) /*!< 0x04000000 */
  2300. #define CAN_TSR_TME0 CAN_TSR_TME0_Msk /*!<Transmit Mailbox 0 Empty */
  2301. #define CAN_TSR_TME1_Pos (27U)
  2302. #define CAN_TSR_TME1_Msk (0x1U << CAN_TSR_TME1_Pos) /*!< 0x08000000 */
  2303. #define CAN_TSR_TME1 CAN_TSR_TME1_Msk /*!<Transmit Mailbox 1 Empty */
  2304. #define CAN_TSR_TME2_Pos (28U)
  2305. #define CAN_TSR_TME2_Msk (0x1U << CAN_TSR_TME2_Pos) /*!< 0x10000000 */
  2306. #define CAN_TSR_TME2 CAN_TSR_TME2_Msk /*!<Transmit Mailbox 2 Empty */
  2307. #define CAN_TSR_LOW_Pos (29U)
  2308. #define CAN_TSR_LOW_Msk (0x7U << CAN_TSR_LOW_Pos) /*!< 0xE0000000 */
  2309. #define CAN_TSR_LOW CAN_TSR_LOW_Msk /*!<LOW[2:0] bits */
  2310. #define CAN_TSR_LOW0_Pos (29U)
  2311. #define CAN_TSR_LOW0_Msk (0x1U << CAN_TSR_LOW0_Pos) /*!< 0x20000000 */
  2312. #define CAN_TSR_LOW0 CAN_TSR_LOW0_Msk /*!<Lowest Priority Flag for Mailbox 0 */
  2313. #define CAN_TSR_LOW1_Pos (30U)
  2314. #define CAN_TSR_LOW1_Msk (0x1U << CAN_TSR_LOW1_Pos) /*!< 0x40000000 */
  2315. #define CAN_TSR_LOW1 CAN_TSR_LOW1_Msk /*!<Lowest Priority Flag for Mailbox 1 */
  2316. #define CAN_TSR_LOW2_Pos (31U)
  2317. #define CAN_TSR_LOW2_Msk (0x1U << CAN_TSR_LOW2_Pos) /*!< 0x80000000 */
  2318. #define CAN_TSR_LOW2 CAN_TSR_LOW2_Msk /*!<Lowest Priority Flag for Mailbox 2 */
  2319. /******************* Bit definition for CAN_RF0R register *******************/
  2320. #define CAN_RF0R_FMP0_Pos (0U)
  2321. #define CAN_RF0R_FMP0_Msk (0x3U << CAN_RF0R_FMP0_Pos) /*!< 0x00000003 */
  2322. #define CAN_RF0R_FMP0 CAN_RF0R_FMP0_Msk /*!<FIFO 0 Message Pending */
  2323. #define CAN_RF0R_FULL0_Pos (3U)
  2324. #define CAN_RF0R_FULL0_Msk (0x1U << CAN_RF0R_FULL0_Pos) /*!< 0x00000008 */
  2325. #define CAN_RF0R_FULL0 CAN_RF0R_FULL0_Msk /*!<FIFO 0 Full */
  2326. #define CAN_RF0R_FOVR0_Pos (4U)
  2327. #define CAN_RF0R_FOVR0_Msk (0x1U << CAN_RF0R_FOVR0_Pos) /*!< 0x00000010 */
  2328. #define CAN_RF0R_FOVR0 CAN_RF0R_FOVR0_Msk /*!<FIFO 0 Overrun */
  2329. #define CAN_RF0R_RFOM0_Pos (5U)
  2330. #define CAN_RF0R_RFOM0_Msk (0x1U << CAN_RF0R_RFOM0_Pos) /*!< 0x00000020 */
  2331. #define CAN_RF0R_RFOM0 CAN_RF0R_RFOM0_Msk /*!<Release FIFO 0 Output Mailbox */
  2332. /******************* Bit definition for CAN_RF1R register *******************/
  2333. #define CAN_RF1R_FMP1_Pos (0U)
  2334. #define CAN_RF1R_FMP1_Msk (0x3U << CAN_RF1R_FMP1_Pos) /*!< 0x00000003 */
  2335. #define CAN_RF1R_FMP1 CAN_RF1R_FMP1_Msk /*!<FIFO 1 Message Pending */
  2336. #define CAN_RF1R_FULL1_Pos (3U)
  2337. #define CAN_RF1R_FULL1_Msk (0x1U << CAN_RF1R_FULL1_Pos) /*!< 0x00000008 */
  2338. #define CAN_RF1R_FULL1 CAN_RF1R_FULL1_Msk /*!<FIFO 1 Full */
  2339. #define CAN_RF1R_FOVR1_Pos (4U)
  2340. #define CAN_RF1R_FOVR1_Msk (0x1U << CAN_RF1R_FOVR1_Pos) /*!< 0x00000010 */
  2341. #define CAN_RF1R_FOVR1 CAN_RF1R_FOVR1_Msk /*!<FIFO 1 Overrun */
  2342. #define CAN_RF1R_RFOM1_Pos (5U)
  2343. #define CAN_RF1R_RFOM1_Msk (0x1U << CAN_RF1R_RFOM1_Pos) /*!< 0x00000020 */
  2344. #define CAN_RF1R_RFOM1 CAN_RF1R_RFOM1_Msk /*!<Release FIFO 1 Output Mailbox */
  2345. /******************** Bit definition for CAN_IER register *******************/
  2346. #define CAN_IER_TMEIE_Pos (0U)
  2347. #define CAN_IER_TMEIE_Msk (0x1U << CAN_IER_TMEIE_Pos) /*!< 0x00000001 */
  2348. #define CAN_IER_TMEIE CAN_IER_TMEIE_Msk /*!<Transmit Mailbox Empty Interrupt Enable */
  2349. #define CAN_IER_FMPIE0_Pos (1U)
  2350. #define CAN_IER_FMPIE0_Msk (0x1U << CAN_IER_FMPIE0_Pos) /*!< 0x00000002 */
  2351. #define CAN_IER_FMPIE0 CAN_IER_FMPIE0_Msk /*!<FIFO Message Pending Interrupt Enable */
  2352. #define CAN_IER_FFIE0_Pos (2U)
  2353. #define CAN_IER_FFIE0_Msk (0x1U << CAN_IER_FFIE0_Pos) /*!< 0x00000004 */
  2354. #define CAN_IER_FFIE0 CAN_IER_FFIE0_Msk /*!<FIFO Full Interrupt Enable */
  2355. #define CAN_IER_FOVIE0_Pos (3U)
  2356. #define CAN_IER_FOVIE0_Msk (0x1U << CAN_IER_FOVIE0_Pos) /*!< 0x00000008 */
  2357. #define CAN_IER_FOVIE0 CAN_IER_FOVIE0_Msk /*!<FIFO Overrun Interrupt Enable */
  2358. #define CAN_IER_FMPIE1_Pos (4U)
  2359. #define CAN_IER_FMPIE1_Msk (0x1U << CAN_IER_FMPIE1_Pos) /*!< 0x00000010 */
  2360. #define CAN_IER_FMPIE1 CAN_IER_FMPIE1_Msk /*!<FIFO Message Pending Interrupt Enable */
  2361. #define CAN_IER_FFIE1_Pos (5U)
  2362. #define CAN_IER_FFIE1_Msk (0x1U << CAN_IER_FFIE1_Pos) /*!< 0x00000020 */
  2363. #define CAN_IER_FFIE1 CAN_IER_FFIE1_Msk /*!<FIFO Full Interrupt Enable */
  2364. #define CAN_IER_FOVIE1_Pos (6U)
  2365. #define CAN_IER_FOVIE1_Msk (0x1U << CAN_IER_FOVIE1_Pos) /*!< 0x00000040 */
  2366. #define CAN_IER_FOVIE1 CAN_IER_FOVIE1_Msk /*!<FIFO Overrun Interrupt Enable */
  2367. #define CAN_IER_EWGIE_Pos (8U)
  2368. #define CAN_IER_EWGIE_Msk (0x1U << CAN_IER_EWGIE_Pos) /*!< 0x00000100 */
  2369. #define CAN_IER_EWGIE CAN_IER_EWGIE_Msk /*!<Error Warning Interrupt Enable */
  2370. #define CAN_IER_EPVIE_Pos (9U)
  2371. #define CAN_IER_EPVIE_Msk (0x1U << CAN_IER_EPVIE_Pos) /*!< 0x00000200 */
  2372. #define CAN_IER_EPVIE CAN_IER_EPVIE_Msk /*!<Error Passive Interrupt Enable */
  2373. #define CAN_IER_BOFIE_Pos (10U)
  2374. #define CAN_IER_BOFIE_Msk (0x1U << CAN_IER_BOFIE_Pos) /*!< 0x00000400 */
  2375. #define CAN_IER_BOFIE CAN_IER_BOFIE_Msk /*!<Bus-Off Interrupt Enable */
  2376. #define CAN_IER_LECIE_Pos (11U)
  2377. #define CAN_IER_LECIE_Msk (0x1U << CAN_IER_LECIE_Pos) /*!< 0x00000800 */
  2378. #define CAN_IER_LECIE CAN_IER_LECIE_Msk /*!<Last Error Code Interrupt Enable */
  2379. #define CAN_IER_ERRIE_Pos (15U)
  2380. #define CAN_IER_ERRIE_Msk (0x1U << CAN_IER_ERRIE_Pos) /*!< 0x00008000 */
  2381. #define CAN_IER_ERRIE CAN_IER_ERRIE_Msk /*!<Error Interrupt Enable */
  2382. #define CAN_IER_WKUIE_Pos (16U)
  2383. #define CAN_IER_WKUIE_Msk (0x1U << CAN_IER_WKUIE_Pos) /*!< 0x00010000 */
  2384. #define CAN_IER_WKUIE CAN_IER_WKUIE_Msk /*!<Wakeup Interrupt Enable */
  2385. #define CAN_IER_SLKIE_Pos (17U)
  2386. #define CAN_IER_SLKIE_Msk (0x1U << CAN_IER_SLKIE_Pos) /*!< 0x00020000 */
  2387. #define CAN_IER_SLKIE CAN_IER_SLKIE_Msk /*!<Sleep Interrupt Enable */
  2388. /******************** Bit definition for CAN_ESR register *******************/
  2389. #define CAN_ESR_EWGF_Pos (0U)
  2390. #define CAN_ESR_EWGF_Msk (0x1U << CAN_ESR_EWGF_Pos) /*!< 0x00000001 */
  2391. #define CAN_ESR_EWGF CAN_ESR_EWGF_Msk /*!<Error Warning Flag */
  2392. #define CAN_ESR_EPVF_Pos (1U)
  2393. #define CAN_ESR_EPVF_Msk (0x1U << CAN_ESR_EPVF_Pos) /*!< 0x00000002 */
  2394. #define CAN_ESR_EPVF CAN_ESR_EPVF_Msk /*!<Error Passive Flag */
  2395. #define CAN_ESR_BOFF_Pos (2U)
  2396. #define CAN_ESR_BOFF_Msk (0x1U << CAN_ESR_BOFF_Pos) /*!< 0x00000004 */
  2397. #define CAN_ESR_BOFF CAN_ESR_BOFF_Msk /*!<Bus-Off Flag */
  2398. #define CAN_ESR_LEC_Pos (4U)
  2399. #define CAN_ESR_LEC_Msk (0x7U << CAN_ESR_LEC_Pos) /*!< 0x00000070 */
  2400. #define CAN_ESR_LEC CAN_ESR_LEC_Msk /*!<LEC[2:0] bits (Last Error Code) */
  2401. #define CAN_ESR_LEC_0 (0x1U << CAN_ESR_LEC_Pos) /*!< 0x00000010 */
  2402. #define CAN_ESR_LEC_1 (0x2U << CAN_ESR_LEC_Pos) /*!< 0x00000020 */
  2403. #define CAN_ESR_LEC_2 (0x4U << CAN_ESR_LEC_Pos) /*!< 0x00000040 */
  2404. #define CAN_ESR_TEC_Pos (16U)
  2405. #define CAN_ESR_TEC_Msk (0xFFU << CAN_ESR_TEC_Pos) /*!< 0x00FF0000 */
  2406. #define CAN_ESR_TEC CAN_ESR_TEC_Msk /*!<Least significant byte of the 9-bit Transmit Error Counter */
  2407. #define CAN_ESR_REC_Pos (24U)
  2408. #define CAN_ESR_REC_Msk (0xFFU << CAN_ESR_REC_Pos) /*!< 0xFF000000 */
  2409. #define CAN_ESR_REC CAN_ESR_REC_Msk /*!<Receive Error Counter */
  2410. /******************* Bit definition for CAN_BTR register ********************/
  2411. #define CAN_BTR_BRP_Pos (0U)
  2412. #define CAN_BTR_BRP_Msk (0x3FFU << CAN_BTR_BRP_Pos) /*!< 0x000003FF */
  2413. #define CAN_BTR_BRP CAN_BTR_BRP_Msk /*!<Baud Rate Prescaler */
  2414. #define CAN_BTR_TS1_Pos (16U)
  2415. #define CAN_BTR_TS1_Msk (0xFU << CAN_BTR_TS1_Pos) /*!< 0x000F0000 */
  2416. #define CAN_BTR_TS1 CAN_BTR_TS1_Msk /*!<Time Segment 1 */
  2417. #define CAN_BTR_TS1_0 (0x1U << CAN_BTR_TS1_Pos) /*!< 0x00010000 */
  2418. #define CAN_BTR_TS1_1 (0x2U << CAN_BTR_TS1_Pos) /*!< 0x00020000 */
  2419. #define CAN_BTR_TS1_2 (0x4U << CAN_BTR_TS1_Pos) /*!< 0x00040000 */
  2420. #define CAN_BTR_TS1_3 (0x8U << CAN_BTR_TS1_Pos) /*!< 0x00080000 */
  2421. #define CAN_BTR_TS2_Pos (20U)
  2422. #define CAN_BTR_TS2_Msk (0x7U << CAN_BTR_TS2_Pos) /*!< 0x00700000 */
  2423. #define CAN_BTR_TS2 CAN_BTR_TS2_Msk /*!<Time Segment 2 */
  2424. #define CAN_BTR_TS2_0 (0x1U << CAN_BTR_TS2_Pos) /*!< 0x00100000 */
  2425. #define CAN_BTR_TS2_1 (0x2U << CAN_BTR_TS2_Pos) /*!< 0x00200000 */
  2426. #define CAN_BTR_TS2_2 (0x4U << CAN_BTR_TS2_Pos) /*!< 0x00400000 */
  2427. #define CAN_BTR_SJW_Pos (24U)
  2428. #define CAN_BTR_SJW_Msk (0x3U << CAN_BTR_SJW_Pos) /*!< 0x03000000 */
  2429. #define CAN_BTR_SJW CAN_BTR_SJW_Msk /*!<Resynchronization Jump Width */
  2430. #define CAN_BTR_SJW_0 (0x1U << CAN_BTR_SJW_Pos) /*!< 0x01000000 */
  2431. #define CAN_BTR_SJW_1 (0x2U << CAN_BTR_SJW_Pos) /*!< 0x02000000 */
  2432. #define CAN_BTR_LBKM_Pos (30U)
  2433. #define CAN_BTR_LBKM_Msk (0x1U << CAN_BTR_LBKM_Pos) /*!< 0x40000000 */
  2434. #define CAN_BTR_LBKM CAN_BTR_LBKM_Msk /*!<Loop Back Mode (Debug) */
  2435. #define CAN_BTR_SILM_Pos (31U)
  2436. #define CAN_BTR_SILM_Msk (0x1U << CAN_BTR_SILM_Pos) /*!< 0x80000000 */
  2437. #define CAN_BTR_SILM CAN_BTR_SILM_Msk /*!<Silent Mode */
  2438. /*!<Mailbox registers */
  2439. /****************** Bit definition for CAN_TI0R register ********************/
  2440. #define CAN_TI0R_TXRQ_Pos (0U)
  2441. #define CAN_TI0R_TXRQ_Msk (0x1U << CAN_TI0R_TXRQ_Pos) /*!< 0x00000001 */
  2442. #define CAN_TI0R_TXRQ CAN_TI0R_TXRQ_Msk /*!<Transmit Mailbox Request */
  2443. #define CAN_TI0R_RTR_Pos (1U)
  2444. #define CAN_TI0R_RTR_Msk (0x1U << CAN_TI0R_RTR_Pos) /*!< 0x00000002 */
  2445. #define CAN_TI0R_RTR CAN_TI0R_RTR_Msk /*!<Remote Transmission Request */
  2446. #define CAN_TI0R_IDE_Pos (2U)
  2447. #define CAN_TI0R_IDE_Msk (0x1U << CAN_TI0R_IDE_Pos) /*!< 0x00000004 */
  2448. #define CAN_TI0R_IDE CAN_TI0R_IDE_Msk /*!<Identifier Extension */
  2449. #define CAN_TI0R_EXID_Pos (3U)
  2450. #define CAN_TI0R_EXID_Msk (0x3FFFFU << CAN_TI0R_EXID_Pos) /*!< 0x001FFFF8 */
  2451. #define CAN_TI0R_EXID CAN_TI0R_EXID_Msk /*!<Extended Identifier */
  2452. #define CAN_TI0R_STID_Pos (21U)
  2453. #define CAN_TI0R_STID_Msk (0x7FFU << CAN_TI0R_STID_Pos) /*!< 0xFFE00000 */
  2454. #define CAN_TI0R_STID CAN_TI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  2455. /****************** Bit definition for CAN_TDT0R register *******************/
  2456. #define CAN_TDT0R_DLC_Pos (0U)
  2457. #define CAN_TDT0R_DLC_Msk (0xFU << CAN_TDT0R_DLC_Pos) /*!< 0x0000000F */
  2458. #define CAN_TDT0R_DLC CAN_TDT0R_DLC_Msk /*!<Data Length Code */
  2459. #define CAN_TDT0R_TGT_Pos (8U)
  2460. #define CAN_TDT0R_TGT_Msk (0x1U << CAN_TDT0R_TGT_Pos) /*!< 0x00000100 */
  2461. #define CAN_TDT0R_TGT CAN_TDT0R_TGT_Msk /*!<Transmit Global Time */
  2462. #define CAN_TDT0R_TIME_Pos (16U)
  2463. #define CAN_TDT0R_TIME_Msk (0xFFFFU << CAN_TDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  2464. #define CAN_TDT0R_TIME CAN_TDT0R_TIME_Msk /*!<Message Time Stamp */
  2465. /****************** Bit definition for CAN_TDL0R register *******************/
  2466. #define CAN_TDL0R_DATA0_Pos (0U)
  2467. #define CAN_TDL0R_DATA0_Msk (0xFFU << CAN_TDL0R_DATA0_Pos) /*!< 0x000000FF */
  2468. #define CAN_TDL0R_DATA0 CAN_TDL0R_DATA0_Msk /*!<Data byte 0 */
  2469. #define CAN_TDL0R_DATA1_Pos (8U)
  2470. #define CAN_TDL0R_DATA1_Msk (0xFFU << CAN_TDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  2471. #define CAN_TDL0R_DATA1 CAN_TDL0R_DATA1_Msk /*!<Data byte 1 */
  2472. #define CAN_TDL0R_DATA2_Pos (16U)
  2473. #define CAN_TDL0R_DATA2_Msk (0xFFU << CAN_TDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  2474. #define CAN_TDL0R_DATA2 CAN_TDL0R_DATA2_Msk /*!<Data byte 2 */
  2475. #define CAN_TDL0R_DATA3_Pos (24U)
  2476. #define CAN_TDL0R_DATA3_Msk (0xFFU << CAN_TDL0R_DATA3_Pos) /*!< 0xFF000000 */
  2477. #define CAN_TDL0R_DATA3 CAN_TDL0R_DATA3_Msk /*!<Data byte 3 */
  2478. /****************** Bit definition for CAN_TDH0R register *******************/
  2479. #define CAN_TDH0R_DATA4_Pos (0U)
  2480. #define CAN_TDH0R_DATA4_Msk (0xFFU << CAN_TDH0R_DATA4_Pos) /*!< 0x000000FF */
  2481. #define CAN_TDH0R_DATA4 CAN_TDH0R_DATA4_Msk /*!<Data byte 4 */
  2482. #define CAN_TDH0R_DATA5_Pos (8U)
  2483. #define CAN_TDH0R_DATA5_Msk (0xFFU << CAN_TDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  2484. #define CAN_TDH0R_DATA5 CAN_TDH0R_DATA5_Msk /*!<Data byte 5 */
  2485. #define CAN_TDH0R_DATA6_Pos (16U)
  2486. #define CAN_TDH0R_DATA6_Msk (0xFFU << CAN_TDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  2487. #define CAN_TDH0R_DATA6 CAN_TDH0R_DATA6_Msk /*!<Data byte 6 */
  2488. #define CAN_TDH0R_DATA7_Pos (24U)
  2489. #define CAN_TDH0R_DATA7_Msk (0xFFU << CAN_TDH0R_DATA7_Pos) /*!< 0xFF000000 */
  2490. #define CAN_TDH0R_DATA7 CAN_TDH0R_DATA7_Msk /*!<Data byte 7 */
  2491. /******************* Bit definition for CAN_TI1R register *******************/
  2492. #define CAN_TI1R_TXRQ_Pos (0U)
  2493. #define CAN_TI1R_TXRQ_Msk (0x1U << CAN_TI1R_TXRQ_Pos) /*!< 0x00000001 */
  2494. #define CAN_TI1R_TXRQ CAN_TI1R_TXRQ_Msk /*!<Transmit Mailbox Request */
  2495. #define CAN_TI1R_RTR_Pos (1U)
  2496. #define CAN_TI1R_RTR_Msk (0x1U << CAN_TI1R_RTR_Pos) /*!< 0x00000002 */
  2497. #define CAN_TI1R_RTR CAN_TI1R_RTR_Msk /*!<Remote Transmission Request */
  2498. #define CAN_TI1R_IDE_Pos (2U)
  2499. #define CAN_TI1R_IDE_Msk (0x1U << CAN_TI1R_IDE_Pos) /*!< 0x00000004 */
  2500. #define CAN_TI1R_IDE CAN_TI1R_IDE_Msk /*!<Identifier Extension */
  2501. #define CAN_TI1R_EXID_Pos (3U)
  2502. #define CAN_TI1R_EXID_Msk (0x3FFFFU << CAN_TI1R_EXID_Pos) /*!< 0x001FFFF8 */
  2503. #define CAN_TI1R_EXID CAN_TI1R_EXID_Msk /*!<Extended Identifier */
  2504. #define CAN_TI1R_STID_Pos (21U)
  2505. #define CAN_TI1R_STID_Msk (0x7FFU << CAN_TI1R_STID_Pos) /*!< 0xFFE00000 */
  2506. #define CAN_TI1R_STID CAN_TI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  2507. /******************* Bit definition for CAN_TDT1R register ******************/
  2508. #define CAN_TDT1R_DLC_Pos (0U)
  2509. #define CAN_TDT1R_DLC_Msk (0xFU << CAN_TDT1R_DLC_Pos) /*!< 0x0000000F */
  2510. #define CAN_TDT1R_DLC CAN_TDT1R_DLC_Msk /*!<Data Length Code */
  2511. #define CAN_TDT1R_TGT_Pos (8U)
  2512. #define CAN_TDT1R_TGT_Msk (0x1U << CAN_TDT1R_TGT_Pos) /*!< 0x00000100 */
  2513. #define CAN_TDT1R_TGT CAN_TDT1R_TGT_Msk /*!<Transmit Global Time */
  2514. #define CAN_TDT1R_TIME_Pos (16U)
  2515. #define CAN_TDT1R_TIME_Msk (0xFFFFU << CAN_TDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  2516. #define CAN_TDT1R_TIME CAN_TDT1R_TIME_Msk /*!<Message Time Stamp */
  2517. /******************* Bit definition for CAN_TDL1R register ******************/
  2518. #define CAN_TDL1R_DATA0_Pos (0U)
  2519. #define CAN_TDL1R_DATA0_Msk (0xFFU << CAN_TDL1R_DATA0_Pos) /*!< 0x000000FF */
  2520. #define CAN_TDL1R_DATA0 CAN_TDL1R_DATA0_Msk /*!<Data byte 0 */
  2521. #define CAN_TDL1R_DATA1_Pos (8U)
  2522. #define CAN_TDL1R_DATA1_Msk (0xFFU << CAN_TDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  2523. #define CAN_TDL1R_DATA1 CAN_TDL1R_DATA1_Msk /*!<Data byte 1 */
  2524. #define CAN_TDL1R_DATA2_Pos (16U)
  2525. #define CAN_TDL1R_DATA2_Msk (0xFFU << CAN_TDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  2526. #define CAN_TDL1R_DATA2 CAN_TDL1R_DATA2_Msk /*!<Data byte 2 */
  2527. #define CAN_TDL1R_DATA3_Pos (24U)
  2528. #define CAN_TDL1R_DATA3_Msk (0xFFU << CAN_TDL1R_DATA3_Pos) /*!< 0xFF000000 */
  2529. #define CAN_TDL1R_DATA3 CAN_TDL1R_DATA3_Msk /*!<Data byte 3 */
  2530. /******************* Bit definition for CAN_TDH1R register ******************/
  2531. #define CAN_TDH1R_DATA4_Pos (0U)
  2532. #define CAN_TDH1R_DATA4_Msk (0xFFU << CAN_TDH1R_DATA4_Pos) /*!< 0x000000FF */
  2533. #define CAN_TDH1R_DATA4 CAN_TDH1R_DATA4_Msk /*!<Data byte 4 */
  2534. #define CAN_TDH1R_DATA5_Pos (8U)
  2535. #define CAN_TDH1R_DATA5_Msk (0xFFU << CAN_TDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  2536. #define CAN_TDH1R_DATA5 CAN_TDH1R_DATA5_Msk /*!<Data byte 5 */
  2537. #define CAN_TDH1R_DATA6_Pos (16U)
  2538. #define CAN_TDH1R_DATA6_Msk (0xFFU << CAN_TDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  2539. #define CAN_TDH1R_DATA6 CAN_TDH1R_DATA6_Msk /*!<Data byte 6 */
  2540. #define CAN_TDH1R_DATA7_Pos (24U)
  2541. #define CAN_TDH1R_DATA7_Msk (0xFFU << CAN_TDH1R_DATA7_Pos) /*!< 0xFF000000 */
  2542. #define CAN_TDH1R_DATA7 CAN_TDH1R_DATA7_Msk /*!<Data byte 7 */
  2543. /******************* Bit definition for CAN_TI2R register *******************/
  2544. #define CAN_TI2R_TXRQ_Pos (0U)
  2545. #define CAN_TI2R_TXRQ_Msk (0x1U << CAN_TI2R_TXRQ_Pos) /*!< 0x00000001 */
  2546. #define CAN_TI2R_TXRQ CAN_TI2R_TXRQ_Msk /*!<Transmit Mailbox Request */
  2547. #define CAN_TI2R_RTR_Pos (1U)
  2548. #define CAN_TI2R_RTR_Msk (0x1U << CAN_TI2R_RTR_Pos) /*!< 0x00000002 */
  2549. #define CAN_TI2R_RTR CAN_TI2R_RTR_Msk /*!<Remote Transmission Request */
  2550. #define CAN_TI2R_IDE_Pos (2U)
  2551. #define CAN_TI2R_IDE_Msk (0x1U << CAN_TI2R_IDE_Pos) /*!< 0x00000004 */
  2552. #define CAN_TI2R_IDE CAN_TI2R_IDE_Msk /*!<Identifier Extension */
  2553. #define CAN_TI2R_EXID_Pos (3U)
  2554. #define CAN_TI2R_EXID_Msk (0x3FFFFU << CAN_TI2R_EXID_Pos) /*!< 0x001FFFF8 */
  2555. #define CAN_TI2R_EXID CAN_TI2R_EXID_Msk /*!<Extended identifier */
  2556. #define CAN_TI2R_STID_Pos (21U)
  2557. #define CAN_TI2R_STID_Msk (0x7FFU << CAN_TI2R_STID_Pos) /*!< 0xFFE00000 */
  2558. #define CAN_TI2R_STID CAN_TI2R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  2559. /******************* Bit definition for CAN_TDT2R register ******************/
  2560. #define CAN_TDT2R_DLC_Pos (0U)
  2561. #define CAN_TDT2R_DLC_Msk (0xFU << CAN_TDT2R_DLC_Pos) /*!< 0x0000000F */
  2562. #define CAN_TDT2R_DLC CAN_TDT2R_DLC_Msk /*!<Data Length Code */
  2563. #define CAN_TDT2R_TGT_Pos (8U)
  2564. #define CAN_TDT2R_TGT_Msk (0x1U << CAN_TDT2R_TGT_Pos) /*!< 0x00000100 */
  2565. #define CAN_TDT2R_TGT CAN_TDT2R_TGT_Msk /*!<Transmit Global Time */
  2566. #define CAN_TDT2R_TIME_Pos (16U)
  2567. #define CAN_TDT2R_TIME_Msk (0xFFFFU << CAN_TDT2R_TIME_Pos) /*!< 0xFFFF0000 */
  2568. #define CAN_TDT2R_TIME CAN_TDT2R_TIME_Msk /*!<Message Time Stamp */
  2569. /******************* Bit definition for CAN_TDL2R register ******************/
  2570. #define CAN_TDL2R_DATA0_Pos (0U)
  2571. #define CAN_TDL2R_DATA0_Msk (0xFFU << CAN_TDL2R_DATA0_Pos) /*!< 0x000000FF */
  2572. #define CAN_TDL2R_DATA0 CAN_TDL2R_DATA0_Msk /*!<Data byte 0 */
  2573. #define CAN_TDL2R_DATA1_Pos (8U)
  2574. #define CAN_TDL2R_DATA1_Msk (0xFFU << CAN_TDL2R_DATA1_Pos) /*!< 0x0000FF00 */
  2575. #define CAN_TDL2R_DATA1 CAN_TDL2R_DATA1_Msk /*!<Data byte 1 */
  2576. #define CAN_TDL2R_DATA2_Pos (16U)
  2577. #define CAN_TDL2R_DATA2_Msk (0xFFU << CAN_TDL2R_DATA2_Pos) /*!< 0x00FF0000 */
  2578. #define CAN_TDL2R_DATA2 CAN_TDL2R_DATA2_Msk /*!<Data byte 2 */
  2579. #define CAN_TDL2R_DATA3_Pos (24U)
  2580. #define CAN_TDL2R_DATA3_Msk (0xFFU << CAN_TDL2R_DATA3_Pos) /*!< 0xFF000000 */
  2581. #define CAN_TDL2R_DATA3 CAN_TDL2R_DATA3_Msk /*!<Data byte 3 */
  2582. /******************* Bit definition for CAN_TDH2R register ******************/
  2583. #define CAN_TDH2R_DATA4_Pos (0U)
  2584. #define CAN_TDH2R_DATA4_Msk (0xFFU << CAN_TDH2R_DATA4_Pos) /*!< 0x000000FF */
  2585. #define CAN_TDH2R_DATA4 CAN_TDH2R_DATA4_Msk /*!<Data byte 4 */
  2586. #define CAN_TDH2R_DATA5_Pos (8U)
  2587. #define CAN_TDH2R_DATA5_Msk (0xFFU << CAN_TDH2R_DATA5_Pos) /*!< 0x0000FF00 */
  2588. #define CAN_TDH2R_DATA5 CAN_TDH2R_DATA5_Msk /*!<Data byte 5 */
  2589. #define CAN_TDH2R_DATA6_Pos (16U)
  2590. #define CAN_TDH2R_DATA6_Msk (0xFFU << CAN_TDH2R_DATA6_Pos) /*!< 0x00FF0000 */
  2591. #define CAN_TDH2R_DATA6 CAN_TDH2R_DATA6_Msk /*!<Data byte 6 */
  2592. #define CAN_TDH2R_DATA7_Pos (24U)
  2593. #define CAN_TDH2R_DATA7_Msk (0xFFU << CAN_TDH2R_DATA7_Pos) /*!< 0xFF000000 */
  2594. #define CAN_TDH2R_DATA7 CAN_TDH2R_DATA7_Msk /*!<Data byte 7 */
  2595. /******************* Bit definition for CAN_RI0R register *******************/
  2596. #define CAN_RI0R_RTR_Pos (1U)
  2597. #define CAN_RI0R_RTR_Msk (0x1U << CAN_RI0R_RTR_Pos) /*!< 0x00000002 */
  2598. #define CAN_RI0R_RTR CAN_RI0R_RTR_Msk /*!<Remote Transmission Request */
  2599. #define CAN_RI0R_IDE_Pos (2U)
  2600. #define CAN_RI0R_IDE_Msk (0x1U << CAN_RI0R_IDE_Pos) /*!< 0x00000004 */
  2601. #define CAN_RI0R_IDE CAN_RI0R_IDE_Msk /*!<Identifier Extension */
  2602. #define CAN_RI0R_EXID_Pos (3U)
  2603. #define CAN_RI0R_EXID_Msk (0x3FFFFU << CAN_RI0R_EXID_Pos) /*!< 0x001FFFF8 */
  2604. #define CAN_RI0R_EXID CAN_RI0R_EXID_Msk /*!<Extended Identifier */
  2605. #define CAN_RI0R_STID_Pos (21U)
  2606. #define CAN_RI0R_STID_Msk (0x7FFU << CAN_RI0R_STID_Pos) /*!< 0xFFE00000 */
  2607. #define CAN_RI0R_STID CAN_RI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  2608. /******************* Bit definition for CAN_RDT0R register ******************/
  2609. #define CAN_RDT0R_DLC_Pos (0U)
  2610. #define CAN_RDT0R_DLC_Msk (0xFU << CAN_RDT0R_DLC_Pos) /*!< 0x0000000F */
  2611. #define CAN_RDT0R_DLC CAN_RDT0R_DLC_Msk /*!<Data Length Code */
  2612. #define CAN_RDT0R_FMI_Pos (8U)
  2613. #define CAN_RDT0R_FMI_Msk (0xFFU << CAN_RDT0R_FMI_Pos) /*!< 0x0000FF00 */
  2614. #define CAN_RDT0R_FMI CAN_RDT0R_FMI_Msk /*!<Filter Match Index */
  2615. #define CAN_RDT0R_TIME_Pos (16U)
  2616. #define CAN_RDT0R_TIME_Msk (0xFFFFU << CAN_RDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  2617. #define CAN_RDT0R_TIME CAN_RDT0R_TIME_Msk /*!<Message Time Stamp */
  2618. /******************* Bit definition for CAN_RDL0R register ******************/
  2619. #define CAN_RDL0R_DATA0_Pos (0U)
  2620. #define CAN_RDL0R_DATA0_Msk (0xFFU << CAN_RDL0R_DATA0_Pos) /*!< 0x000000FF */
  2621. #define CAN_RDL0R_DATA0 CAN_RDL0R_DATA0_Msk /*!<Data byte 0 */
  2622. #define CAN_RDL0R_DATA1_Pos (8U)
  2623. #define CAN_RDL0R_DATA1_Msk (0xFFU << CAN_RDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  2624. #define CAN_RDL0R_DATA1 CAN_RDL0R_DATA1_Msk /*!<Data byte 1 */
  2625. #define CAN_RDL0R_DATA2_Pos (16U)
  2626. #define CAN_RDL0R_DATA2_Msk (0xFFU << CAN_RDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  2627. #define CAN_RDL0R_DATA2 CAN_RDL0R_DATA2_Msk /*!<Data byte 2 */
  2628. #define CAN_RDL0R_DATA3_Pos (24U)
  2629. #define CAN_RDL0R_DATA3_Msk (0xFFU << CAN_RDL0R_DATA3_Pos) /*!< 0xFF000000 */
  2630. #define CAN_RDL0R_DATA3 CAN_RDL0R_DATA3_Msk /*!<Data byte 3 */
  2631. /******************* Bit definition for CAN_RDH0R register ******************/
  2632. #define CAN_RDH0R_DATA4_Pos (0U)
  2633. #define CAN_RDH0R_DATA4_Msk (0xFFU << CAN_RDH0R_DATA4_Pos) /*!< 0x000000FF */
  2634. #define CAN_RDH0R_DATA4 CAN_RDH0R_DATA4_Msk /*!<Data byte 4 */
  2635. #define CAN_RDH0R_DATA5_Pos (8U)
  2636. #define CAN_RDH0R_DATA5_Msk (0xFFU << CAN_RDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  2637. #define CAN_RDH0R_DATA5 CAN_RDH0R_DATA5_Msk /*!<Data byte 5 */
  2638. #define CAN_RDH0R_DATA6_Pos (16U)
  2639. #define CAN_RDH0R_DATA6_Msk (0xFFU << CAN_RDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  2640. #define CAN_RDH0R_DATA6 CAN_RDH0R_DATA6_Msk /*!<Data byte 6 */
  2641. #define CAN_RDH0R_DATA7_Pos (24U)
  2642. #define CAN_RDH0R_DATA7_Msk (0xFFU << CAN_RDH0R_DATA7_Pos) /*!< 0xFF000000 */
  2643. #define CAN_RDH0R_DATA7 CAN_RDH0R_DATA7_Msk /*!<Data byte 7 */
  2644. /******************* Bit definition for CAN_RI1R register *******************/
  2645. #define CAN_RI1R_RTR_Pos (1U)
  2646. #define CAN_RI1R_RTR_Msk (0x1U << CAN_RI1R_RTR_Pos) /*!< 0x00000002 */
  2647. #define CAN_RI1R_RTR CAN_RI1R_RTR_Msk /*!<Remote Transmission Request */
  2648. #define CAN_RI1R_IDE_Pos (2U)
  2649. #define CAN_RI1R_IDE_Msk (0x1U << CAN_RI1R_IDE_Pos) /*!< 0x00000004 */
  2650. #define CAN_RI1R_IDE CAN_RI1R_IDE_Msk /*!<Identifier Extension */
  2651. #define CAN_RI1R_EXID_Pos (3U)
  2652. #define CAN_RI1R_EXID_Msk (0x3FFFFU << CAN_RI1R_EXID_Pos) /*!< 0x001FFFF8 */
  2653. #define CAN_RI1R_EXID CAN_RI1R_EXID_Msk /*!<Extended identifier */
  2654. #define CAN_RI1R_STID_Pos (21U)
  2655. #define CAN_RI1R_STID_Msk (0x7FFU << CAN_RI1R_STID_Pos) /*!< 0xFFE00000 */
  2656. #define CAN_RI1R_STID CAN_RI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  2657. /******************* Bit definition for CAN_RDT1R register ******************/
  2658. #define CAN_RDT1R_DLC_Pos (0U)
  2659. #define CAN_RDT1R_DLC_Msk (0xFU << CAN_RDT1R_DLC_Pos) /*!< 0x0000000F */
  2660. #define CAN_RDT1R_DLC CAN_RDT1R_DLC_Msk /*!<Data Length Code */
  2661. #define CAN_RDT1R_FMI_Pos (8U)
  2662. #define CAN_RDT1R_FMI_Msk (0xFFU << CAN_RDT1R_FMI_Pos) /*!< 0x0000FF00 */
  2663. #define CAN_RDT1R_FMI CAN_RDT1R_FMI_Msk /*!<Filter Match Index */
  2664. #define CAN_RDT1R_TIME_Pos (16U)
  2665. #define CAN_RDT1R_TIME_Msk (0xFFFFU << CAN_RDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  2666. #define CAN_RDT1R_TIME CAN_RDT1R_TIME_Msk /*!<Message Time Stamp */
  2667. /******************* Bit definition for CAN_RDL1R register ******************/
  2668. #define CAN_RDL1R_DATA0_Pos (0U)
  2669. #define CAN_RDL1R_DATA0_Msk (0xFFU << CAN_RDL1R_DATA0_Pos) /*!< 0x000000FF */
  2670. #define CAN_RDL1R_DATA0 CAN_RDL1R_DATA0_Msk /*!<Data byte 0 */
  2671. #define CAN_RDL1R_DATA1_Pos (8U)
  2672. #define CAN_RDL1R_DATA1_Msk (0xFFU << CAN_RDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  2673. #define CAN_RDL1R_DATA1 CAN_RDL1R_DATA1_Msk /*!<Data byte 1 */
  2674. #define CAN_RDL1R_DATA2_Pos (16U)
  2675. #define CAN_RDL1R_DATA2_Msk (0xFFU << CAN_RDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  2676. #define CAN_RDL1R_DATA2 CAN_RDL1R_DATA2_Msk /*!<Data byte 2 */
  2677. #define CAN_RDL1R_DATA3_Pos (24U)
  2678. #define CAN_RDL1R_DATA3_Msk (0xFFU << CAN_RDL1R_DATA3_Pos) /*!< 0xFF000000 */
  2679. #define CAN_RDL1R_DATA3 CAN_RDL1R_DATA3_Msk /*!<Data byte 3 */
  2680. /******************* Bit definition for CAN_RDH1R register ******************/
  2681. #define CAN_RDH1R_DATA4_Pos (0U)
  2682. #define CAN_RDH1R_DATA4_Msk (0xFFU << CAN_RDH1R_DATA4_Pos) /*!< 0x000000FF */
  2683. #define CAN_RDH1R_DATA4 CAN_RDH1R_DATA4_Msk /*!<Data byte 4 */
  2684. #define CAN_RDH1R_DATA5_Pos (8U)
  2685. #define CAN_RDH1R_DATA5_Msk (0xFFU << CAN_RDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  2686. #define CAN_RDH1R_DATA5 CAN_RDH1R_DATA5_Msk /*!<Data byte 5 */
  2687. #define CAN_RDH1R_DATA6_Pos (16U)
  2688. #define CAN_RDH1R_DATA6_Msk (0xFFU << CAN_RDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  2689. #define CAN_RDH1R_DATA6 CAN_RDH1R_DATA6_Msk /*!<Data byte 6 */
  2690. #define CAN_RDH1R_DATA7_Pos (24U)
  2691. #define CAN_RDH1R_DATA7_Msk (0xFFU << CAN_RDH1R_DATA7_Pos) /*!< 0xFF000000 */
  2692. #define CAN_RDH1R_DATA7 CAN_RDH1R_DATA7_Msk /*!<Data byte 7 */
  2693. /*!<CAN filter registers */
  2694. /******************* Bit definition for CAN_FMR register ********************/
  2695. #define CAN_FMR_FINIT_Pos (0U)
  2696. #define CAN_FMR_FINIT_Msk (0x1U << CAN_FMR_FINIT_Pos) /*!< 0x00000001 */
  2697. #define CAN_FMR_FINIT CAN_FMR_FINIT_Msk /*!<Filter Init Mode */
  2698. /******************* Bit definition for CAN_FM1R register *******************/
  2699. #define CAN_FM1R_FBM_Pos (0U)
  2700. #define CAN_FM1R_FBM_Msk (0x3FFFU << CAN_FM1R_FBM_Pos) /*!< 0x00003FFF */
  2701. #define CAN_FM1R_FBM CAN_FM1R_FBM_Msk /*!<Filter Mode */
  2702. #define CAN_FM1R_FBM0_Pos (0U)
  2703. #define CAN_FM1R_FBM0_Msk (0x1U << CAN_FM1R_FBM0_Pos) /*!< 0x00000001 */
  2704. #define CAN_FM1R_FBM0 CAN_FM1R_FBM0_Msk /*!<Filter Init Mode bit 0 */
  2705. #define CAN_FM1R_FBM1_Pos (1U)
  2706. #define CAN_FM1R_FBM1_Msk (0x1U << CAN_FM1R_FBM1_Pos) /*!< 0x00000002 */
  2707. #define CAN_FM1R_FBM1 CAN_FM1R_FBM1_Msk /*!<Filter Init Mode bit 1 */
  2708. #define CAN_FM1R_FBM2_Pos (2U)
  2709. #define CAN_FM1R_FBM2_Msk (0x1U << CAN_FM1R_FBM2_Pos) /*!< 0x00000004 */
  2710. #define CAN_FM1R_FBM2 CAN_FM1R_FBM2_Msk /*!<Filter Init Mode bit 2 */
  2711. #define CAN_FM1R_FBM3_Pos (3U)
  2712. #define CAN_FM1R_FBM3_Msk (0x1U << CAN_FM1R_FBM3_Pos) /*!< 0x00000008 */
  2713. #define CAN_FM1R_FBM3 CAN_FM1R_FBM3_Msk /*!<Filter Init Mode bit 3 */
  2714. #define CAN_FM1R_FBM4_Pos (4U)
  2715. #define CAN_FM1R_FBM4_Msk (0x1U << CAN_FM1R_FBM4_Pos) /*!< 0x00000010 */
  2716. #define CAN_FM1R_FBM4 CAN_FM1R_FBM4_Msk /*!<Filter Init Mode bit 4 */
  2717. #define CAN_FM1R_FBM5_Pos (5U)
  2718. #define CAN_FM1R_FBM5_Msk (0x1U << CAN_FM1R_FBM5_Pos) /*!< 0x00000020 */
  2719. #define CAN_FM1R_FBM5 CAN_FM1R_FBM5_Msk /*!<Filter Init Mode bit 5 */
  2720. #define CAN_FM1R_FBM6_Pos (6U)
  2721. #define CAN_FM1R_FBM6_Msk (0x1U << CAN_FM1R_FBM6_Pos) /*!< 0x00000040 */
  2722. #define CAN_FM1R_FBM6 CAN_FM1R_FBM6_Msk /*!<Filter Init Mode bit 6 */
  2723. #define CAN_FM1R_FBM7_Pos (7U)
  2724. #define CAN_FM1R_FBM7_Msk (0x1U << CAN_FM1R_FBM7_Pos) /*!< 0x00000080 */
  2725. #define CAN_FM1R_FBM7 CAN_FM1R_FBM7_Msk /*!<Filter Init Mode bit 7 */
  2726. #define CAN_FM1R_FBM8_Pos (8U)
  2727. #define CAN_FM1R_FBM8_Msk (0x1U << CAN_FM1R_FBM8_Pos) /*!< 0x00000100 */
  2728. #define CAN_FM1R_FBM8 CAN_FM1R_FBM8_Msk /*!<Filter Init Mode bit 8 */
  2729. #define CAN_FM1R_FBM9_Pos (9U)
  2730. #define CAN_FM1R_FBM9_Msk (0x1U << CAN_FM1R_FBM9_Pos) /*!< 0x00000200 */
  2731. #define CAN_FM1R_FBM9 CAN_FM1R_FBM9_Msk /*!<Filter Init Mode bit 9 */
  2732. #define CAN_FM1R_FBM10_Pos (10U)
  2733. #define CAN_FM1R_FBM10_Msk (0x1U << CAN_FM1R_FBM10_Pos) /*!< 0x00000400 */
  2734. #define CAN_FM1R_FBM10 CAN_FM1R_FBM10_Msk /*!<Filter Init Mode bit 10 */
  2735. #define CAN_FM1R_FBM11_Pos (11U)
  2736. #define CAN_FM1R_FBM11_Msk (0x1U << CAN_FM1R_FBM11_Pos) /*!< 0x00000800 */
  2737. #define CAN_FM1R_FBM11 CAN_FM1R_FBM11_Msk /*!<Filter Init Mode bit 11 */
  2738. #define CAN_FM1R_FBM12_Pos (12U)
  2739. #define CAN_FM1R_FBM12_Msk (0x1U << CAN_FM1R_FBM12_Pos) /*!< 0x00001000 */
  2740. #define CAN_FM1R_FBM12 CAN_FM1R_FBM12_Msk /*!<Filter Init Mode bit 12 */
  2741. #define CAN_FM1R_FBM13_Pos (13U)
  2742. #define CAN_FM1R_FBM13_Msk (0x1U << CAN_FM1R_FBM13_Pos) /*!< 0x00002000 */
  2743. #define CAN_FM1R_FBM13 CAN_FM1R_FBM13_Msk /*!<Filter Init Mode bit 13 */
  2744. /******************* Bit definition for CAN_FS1R register *******************/
  2745. #define CAN_FS1R_FSC_Pos (0U)
  2746. #define CAN_FS1R_FSC_Msk (0x3FFFU << CAN_FS1R_FSC_Pos) /*!< 0x00003FFF */
  2747. #define CAN_FS1R_FSC CAN_FS1R_FSC_Msk /*!<Filter Scale Configuration */
  2748. #define CAN_FS1R_FSC0_Pos (0U)
  2749. #define CAN_FS1R_FSC0_Msk (0x1U << CAN_FS1R_FSC0_Pos) /*!< 0x00000001 */
  2750. #define CAN_FS1R_FSC0 CAN_FS1R_FSC0_Msk /*!<Filter Scale Configuration bit 0 */
  2751. #define CAN_FS1R_FSC1_Pos (1U)
  2752. #define CAN_FS1R_FSC1_Msk (0x1U << CAN_FS1R_FSC1_Pos) /*!< 0x00000002 */
  2753. #define CAN_FS1R_FSC1 CAN_FS1R_FSC1_Msk /*!<Filter Scale Configuration bit 1 */
  2754. #define CAN_FS1R_FSC2_Pos (2U)
  2755. #define CAN_FS1R_FSC2_Msk (0x1U << CAN_FS1R_FSC2_Pos) /*!< 0x00000004 */
  2756. #define CAN_FS1R_FSC2 CAN_FS1R_FSC2_Msk /*!<Filter Scale Configuration bit 2 */
  2757. #define CAN_FS1R_FSC3_Pos (3U)
  2758. #define CAN_FS1R_FSC3_Msk (0x1U << CAN_FS1R_FSC3_Pos) /*!< 0x00000008 */
  2759. #define CAN_FS1R_FSC3 CAN_FS1R_FSC3_Msk /*!<Filter Scale Configuration bit 3 */
  2760. #define CAN_FS1R_FSC4_Pos (4U)
  2761. #define CAN_FS1R_FSC4_Msk (0x1U << CAN_FS1R_FSC4_Pos) /*!< 0x00000010 */
  2762. #define CAN_FS1R_FSC4 CAN_FS1R_FSC4_Msk /*!<Filter Scale Configuration bit 4 */
  2763. #define CAN_FS1R_FSC5_Pos (5U)
  2764. #define CAN_FS1R_FSC5_Msk (0x1U << CAN_FS1R_FSC5_Pos) /*!< 0x00000020 */
  2765. #define CAN_FS1R_FSC5 CAN_FS1R_FSC5_Msk /*!<Filter Scale Configuration bit 5 */
  2766. #define CAN_FS1R_FSC6_Pos (6U)
  2767. #define CAN_FS1R_FSC6_Msk (0x1U << CAN_FS1R_FSC6_Pos) /*!< 0x00000040 */
  2768. #define CAN_FS1R_FSC6 CAN_FS1R_FSC6_Msk /*!<Filter Scale Configuration bit 6 */
  2769. #define CAN_FS1R_FSC7_Pos (7U)
  2770. #define CAN_FS1R_FSC7_Msk (0x1U << CAN_FS1R_FSC7_Pos) /*!< 0x00000080 */
  2771. #define CAN_FS1R_FSC7 CAN_FS1R_FSC7_Msk /*!<Filter Scale Configuration bit 7 */
  2772. #define CAN_FS1R_FSC8_Pos (8U)
  2773. #define CAN_FS1R_FSC8_Msk (0x1U << CAN_FS1R_FSC8_Pos) /*!< 0x00000100 */
  2774. #define CAN_FS1R_FSC8 CAN_FS1R_FSC8_Msk /*!<Filter Scale Configuration bit 8 */
  2775. #define CAN_FS1R_FSC9_Pos (9U)
  2776. #define CAN_FS1R_FSC9_Msk (0x1U << CAN_FS1R_FSC9_Pos) /*!< 0x00000200 */
  2777. #define CAN_FS1R_FSC9 CAN_FS1R_FSC9_Msk /*!<Filter Scale Configuration bit 9 */
  2778. #define CAN_FS1R_FSC10_Pos (10U)
  2779. #define CAN_FS1R_FSC10_Msk (0x1U << CAN_FS1R_FSC10_Pos) /*!< 0x00000400 */
  2780. #define CAN_FS1R_FSC10 CAN_FS1R_FSC10_Msk /*!<Filter Scale Configuration bit 10 */
  2781. #define CAN_FS1R_FSC11_Pos (11U)
  2782. #define CAN_FS1R_FSC11_Msk (0x1U << CAN_FS1R_FSC11_Pos) /*!< 0x00000800 */
  2783. #define CAN_FS1R_FSC11 CAN_FS1R_FSC11_Msk /*!<Filter Scale Configuration bit 11 */
  2784. #define CAN_FS1R_FSC12_Pos (12U)
  2785. #define CAN_FS1R_FSC12_Msk (0x1U << CAN_FS1R_FSC12_Pos) /*!< 0x00001000 */
  2786. #define CAN_FS1R_FSC12 CAN_FS1R_FSC12_Msk /*!<Filter Scale Configuration bit 12 */
  2787. #define CAN_FS1R_FSC13_Pos (13U)
  2788. #define CAN_FS1R_FSC13_Msk (0x1U << CAN_FS1R_FSC13_Pos) /*!< 0x00002000 */
  2789. #define CAN_FS1R_FSC13 CAN_FS1R_FSC13_Msk /*!<Filter Scale Configuration bit 13 */
  2790. /****************** Bit definition for CAN_FFA1R register *******************/
  2791. #define CAN_FFA1R_FFA_Pos (0U)
  2792. #define CAN_FFA1R_FFA_Msk (0x3FFFU << CAN_FFA1R_FFA_Pos) /*!< 0x00003FFF */
  2793. #define CAN_FFA1R_FFA CAN_FFA1R_FFA_Msk /*!<Filter FIFO Assignment */
  2794. #define CAN_FFA1R_FFA0_Pos (0U)
  2795. #define CAN_FFA1R_FFA0_Msk (0x1U << CAN_FFA1R_FFA0_Pos) /*!< 0x00000001 */
  2796. #define CAN_FFA1R_FFA0 CAN_FFA1R_FFA0_Msk /*!<Filter FIFO Assignment for Filter 0 */
  2797. #define CAN_FFA1R_FFA1_Pos (1U)
  2798. #define CAN_FFA1R_FFA1_Msk (0x1U << CAN_FFA1R_FFA1_Pos) /*!< 0x00000002 */
  2799. #define CAN_FFA1R_FFA1 CAN_FFA1R_FFA1_Msk /*!<Filter FIFO Assignment for Filter 1 */
  2800. #define CAN_FFA1R_FFA2_Pos (2U)
  2801. #define CAN_FFA1R_FFA2_Msk (0x1U << CAN_FFA1R_FFA2_Pos) /*!< 0x00000004 */
  2802. #define CAN_FFA1R_FFA2 CAN_FFA1R_FFA2_Msk /*!<Filter FIFO Assignment for Filter 2 */
  2803. #define CAN_FFA1R_FFA3_Pos (3U)
  2804. #define CAN_FFA1R_FFA3_Msk (0x1U << CAN_FFA1R_FFA3_Pos) /*!< 0x00000008 */
  2805. #define CAN_FFA1R_FFA3 CAN_FFA1R_FFA3_Msk /*!<Filter FIFO Assignment for Filter 3 */
  2806. #define CAN_FFA1R_FFA4_Pos (4U)
  2807. #define CAN_FFA1R_FFA4_Msk (0x1U << CAN_FFA1R_FFA4_Pos) /*!< 0x00000010 */
  2808. #define CAN_FFA1R_FFA4 CAN_FFA1R_FFA4_Msk /*!<Filter FIFO Assignment for Filter 4 */
  2809. #define CAN_FFA1R_FFA5_Pos (5U)
  2810. #define CAN_FFA1R_FFA5_Msk (0x1U << CAN_FFA1R_FFA5_Pos) /*!< 0x00000020 */
  2811. #define CAN_FFA1R_FFA5 CAN_FFA1R_FFA5_Msk /*!<Filter FIFO Assignment for Filter 5 */
  2812. #define CAN_FFA1R_FFA6_Pos (6U)
  2813. #define CAN_FFA1R_FFA6_Msk (0x1U << CAN_FFA1R_FFA6_Pos) /*!< 0x00000040 */
  2814. #define CAN_FFA1R_FFA6 CAN_FFA1R_FFA6_Msk /*!<Filter FIFO Assignment for Filter 6 */
  2815. #define CAN_FFA1R_FFA7_Pos (7U)
  2816. #define CAN_FFA1R_FFA7_Msk (0x1U << CAN_FFA1R_FFA7_Pos) /*!< 0x00000080 */
  2817. #define CAN_FFA1R_FFA7 CAN_FFA1R_FFA7_Msk /*!<Filter FIFO Assignment for Filter 7 */
  2818. #define CAN_FFA1R_FFA8_Pos (8U)
  2819. #define CAN_FFA1R_FFA8_Msk (0x1U << CAN_FFA1R_FFA8_Pos) /*!< 0x00000100 */
  2820. #define CAN_FFA1R_FFA8 CAN_FFA1R_FFA8_Msk /*!<Filter FIFO Assignment for Filter 8 */
  2821. #define CAN_FFA1R_FFA9_Pos (9U)
  2822. #define CAN_FFA1R_FFA9_Msk (0x1U << CAN_FFA1R_FFA9_Pos) /*!< 0x00000200 */
  2823. #define CAN_FFA1R_FFA9 CAN_FFA1R_FFA9_Msk /*!<Filter FIFO Assignment for Filter 9 */
  2824. #define CAN_FFA1R_FFA10_Pos (10U)
  2825. #define CAN_FFA1R_FFA10_Msk (0x1U << CAN_FFA1R_FFA10_Pos) /*!< 0x00000400 */
  2826. #define CAN_FFA1R_FFA10 CAN_FFA1R_FFA10_Msk /*!<Filter FIFO Assignment for Filter 10 */
  2827. #define CAN_FFA1R_FFA11_Pos (11U)
  2828. #define CAN_FFA1R_FFA11_Msk (0x1U << CAN_FFA1R_FFA11_Pos) /*!< 0x00000800 */
  2829. #define CAN_FFA1R_FFA11 CAN_FFA1R_FFA11_Msk /*!<Filter FIFO Assignment for Filter 11 */
  2830. #define CAN_FFA1R_FFA12_Pos (12U)
  2831. #define CAN_FFA1R_FFA12_Msk (0x1U << CAN_FFA1R_FFA12_Pos) /*!< 0x00001000 */
  2832. #define CAN_FFA1R_FFA12 CAN_FFA1R_FFA12_Msk /*!<Filter FIFO Assignment for Filter 12 */
  2833. #define CAN_FFA1R_FFA13_Pos (13U)
  2834. #define CAN_FFA1R_FFA13_Msk (0x1U << CAN_FFA1R_FFA13_Pos) /*!< 0x00002000 */
  2835. #define CAN_FFA1R_FFA13 CAN_FFA1R_FFA13_Msk /*!<Filter FIFO Assignment for Filter 13 */
  2836. /******************* Bit definition for CAN_FA1R register *******************/
  2837. #define CAN_FA1R_FACT_Pos (0U)
  2838. #define CAN_FA1R_FACT_Msk (0x3FFFU << CAN_FA1R_FACT_Pos) /*!< 0x00003FFF */
  2839. #define CAN_FA1R_FACT CAN_FA1R_FACT_Msk /*!<Filter Active */
  2840. #define CAN_FA1R_FACT0_Pos (0U)
  2841. #define CAN_FA1R_FACT0_Msk (0x1U << CAN_FA1R_FACT0_Pos) /*!< 0x00000001 */
  2842. #define CAN_FA1R_FACT0 CAN_FA1R_FACT0_Msk /*!<Filter 0 Active */
  2843. #define CAN_FA1R_FACT1_Pos (1U)
  2844. #define CAN_FA1R_FACT1_Msk (0x1U << CAN_FA1R_FACT1_Pos) /*!< 0x00000002 */
  2845. #define CAN_FA1R_FACT1 CAN_FA1R_FACT1_Msk /*!<Filter 1 Active */
  2846. #define CAN_FA1R_FACT2_Pos (2U)
  2847. #define CAN_FA1R_FACT2_Msk (0x1U << CAN_FA1R_FACT2_Pos) /*!< 0x00000004 */
  2848. #define CAN_FA1R_FACT2 CAN_FA1R_FACT2_Msk /*!<Filter 2 Active */
  2849. #define CAN_FA1R_FACT3_Pos (3U)
  2850. #define CAN_FA1R_FACT3_Msk (0x1U << CAN_FA1R_FACT3_Pos) /*!< 0x00000008 */
  2851. #define CAN_FA1R_FACT3 CAN_FA1R_FACT3_Msk /*!<Filter 3 Active */
  2852. #define CAN_FA1R_FACT4_Pos (4U)
  2853. #define CAN_FA1R_FACT4_Msk (0x1U << CAN_FA1R_FACT4_Pos) /*!< 0x00000010 */
  2854. #define CAN_FA1R_FACT4 CAN_FA1R_FACT4_Msk /*!<Filter 4 Active */
  2855. #define CAN_FA1R_FACT5_Pos (5U)
  2856. #define CAN_FA1R_FACT5_Msk (0x1U << CAN_FA1R_FACT5_Pos) /*!< 0x00000020 */
  2857. #define CAN_FA1R_FACT5 CAN_FA1R_FACT5_Msk /*!<Filter 5 Active */
  2858. #define CAN_FA1R_FACT6_Pos (6U)
  2859. #define CAN_FA1R_FACT6_Msk (0x1U << CAN_FA1R_FACT6_Pos) /*!< 0x00000040 */
  2860. #define CAN_FA1R_FACT6 CAN_FA1R_FACT6_Msk /*!<Filter 6 Active */
  2861. #define CAN_FA1R_FACT7_Pos (7U)
  2862. #define CAN_FA1R_FACT7_Msk (0x1U << CAN_FA1R_FACT7_Pos) /*!< 0x00000080 */
  2863. #define CAN_FA1R_FACT7 CAN_FA1R_FACT7_Msk /*!<Filter 7 Active */
  2864. #define CAN_FA1R_FACT8_Pos (8U)
  2865. #define CAN_FA1R_FACT8_Msk (0x1U << CAN_FA1R_FACT8_Pos) /*!< 0x00000100 */
  2866. #define CAN_FA1R_FACT8 CAN_FA1R_FACT8_Msk /*!<Filter 8 Active */
  2867. #define CAN_FA1R_FACT9_Pos (9U)
  2868. #define CAN_FA1R_FACT9_Msk (0x1U << CAN_FA1R_FACT9_Pos) /*!< 0x00000200 */
  2869. #define CAN_FA1R_FACT9 CAN_FA1R_FACT9_Msk /*!<Filter 9 Active */
  2870. #define CAN_FA1R_FACT10_Pos (10U)
  2871. #define CAN_FA1R_FACT10_Msk (0x1U << CAN_FA1R_FACT10_Pos) /*!< 0x00000400 */
  2872. #define CAN_FA1R_FACT10 CAN_FA1R_FACT10_Msk /*!<Filter 10 Active */
  2873. #define CAN_FA1R_FACT11_Pos (11U)
  2874. #define CAN_FA1R_FACT11_Msk (0x1U << CAN_FA1R_FACT11_Pos) /*!< 0x00000800 */
  2875. #define CAN_FA1R_FACT11 CAN_FA1R_FACT11_Msk /*!<Filter 11 Active */
  2876. #define CAN_FA1R_FACT12_Pos (12U)
  2877. #define CAN_FA1R_FACT12_Msk (0x1U << CAN_FA1R_FACT12_Pos) /*!< 0x00001000 */
  2878. #define CAN_FA1R_FACT12 CAN_FA1R_FACT12_Msk /*!<Filter 12 Active */
  2879. #define CAN_FA1R_FACT13_Pos (13U)
  2880. #define CAN_FA1R_FACT13_Msk (0x1U << CAN_FA1R_FACT13_Pos) /*!< 0x00002000 */
  2881. #define CAN_FA1R_FACT13 CAN_FA1R_FACT13_Msk /*!<Filter 13 Active */
  2882. /******************* Bit definition for CAN_F0R1 register *******************/
  2883. #define CAN_F0R1_FB0_Pos (0U)
  2884. #define CAN_F0R1_FB0_Msk (0x1U << CAN_F0R1_FB0_Pos) /*!< 0x00000001 */
  2885. #define CAN_F0R1_FB0 CAN_F0R1_FB0_Msk /*!<Filter bit 0 */
  2886. #define CAN_F0R1_FB1_Pos (1U)
  2887. #define CAN_F0R1_FB1_Msk (0x1U << CAN_F0R1_FB1_Pos) /*!< 0x00000002 */
  2888. #define CAN_F0R1_FB1 CAN_F0R1_FB1_Msk /*!<Filter bit 1 */
  2889. #define CAN_F0R1_FB2_Pos (2U)
  2890. #define CAN_F0R1_FB2_Msk (0x1U << CAN_F0R1_FB2_Pos) /*!< 0x00000004 */
  2891. #define CAN_F0R1_FB2 CAN_F0R1_FB2_Msk /*!<Filter bit 2 */
  2892. #define CAN_F0R1_FB3_Pos (3U)
  2893. #define CAN_F0R1_FB3_Msk (0x1U << CAN_F0R1_FB3_Pos) /*!< 0x00000008 */
  2894. #define CAN_F0R1_FB3 CAN_F0R1_FB3_Msk /*!<Filter bit 3 */
  2895. #define CAN_F0R1_FB4_Pos (4U)
  2896. #define CAN_F0R1_FB4_Msk (0x1U << CAN_F0R1_FB4_Pos) /*!< 0x00000010 */
  2897. #define CAN_F0R1_FB4 CAN_F0R1_FB4_Msk /*!<Filter bit 4 */
  2898. #define CAN_F0R1_FB5_Pos (5U)
  2899. #define CAN_F0R1_FB5_Msk (0x1U << CAN_F0R1_FB5_Pos) /*!< 0x00000020 */
  2900. #define CAN_F0R1_FB5 CAN_F0R1_FB5_Msk /*!<Filter bit 5 */
  2901. #define CAN_F0R1_FB6_Pos (6U)
  2902. #define CAN_F0R1_FB6_Msk (0x1U << CAN_F0R1_FB6_Pos) /*!< 0x00000040 */
  2903. #define CAN_F0R1_FB6 CAN_F0R1_FB6_Msk /*!<Filter bit 6 */
  2904. #define CAN_F0R1_FB7_Pos (7U)
  2905. #define CAN_F0R1_FB7_Msk (0x1U << CAN_F0R1_FB7_Pos) /*!< 0x00000080 */
  2906. #define CAN_F0R1_FB7 CAN_F0R1_FB7_Msk /*!<Filter bit 7 */
  2907. #define CAN_F0R1_FB8_Pos (8U)
  2908. #define CAN_F0R1_FB8_Msk (0x1U << CAN_F0R1_FB8_Pos) /*!< 0x00000100 */
  2909. #define CAN_F0R1_FB8 CAN_F0R1_FB8_Msk /*!<Filter bit 8 */
  2910. #define CAN_F0R1_FB9_Pos (9U)
  2911. #define CAN_F0R1_FB9_Msk (0x1U << CAN_F0R1_FB9_Pos) /*!< 0x00000200 */
  2912. #define CAN_F0R1_FB9 CAN_F0R1_FB9_Msk /*!<Filter bit 9 */
  2913. #define CAN_F0R1_FB10_Pos (10U)
  2914. #define CAN_F0R1_FB10_Msk (0x1U << CAN_F0R1_FB10_Pos) /*!< 0x00000400 */
  2915. #define CAN_F0R1_FB10 CAN_F0R1_FB10_Msk /*!<Filter bit 10 */
  2916. #define CAN_F0R1_FB11_Pos (11U)
  2917. #define CAN_F0R1_FB11_Msk (0x1U << CAN_F0R1_FB11_Pos) /*!< 0x00000800 */
  2918. #define CAN_F0R1_FB11 CAN_F0R1_FB11_Msk /*!<Filter bit 11 */
  2919. #define CAN_F0R1_FB12_Pos (12U)
  2920. #define CAN_F0R1_FB12_Msk (0x1U << CAN_F0R1_FB12_Pos) /*!< 0x00001000 */
  2921. #define CAN_F0R1_FB12 CAN_F0R1_FB12_Msk /*!<Filter bit 12 */
  2922. #define CAN_F0R1_FB13_Pos (13U)
  2923. #define CAN_F0R1_FB13_Msk (0x1U << CAN_F0R1_FB13_Pos) /*!< 0x00002000 */
  2924. #define CAN_F0R1_FB13 CAN_F0R1_FB13_Msk /*!<Filter bit 13 */
  2925. #define CAN_F0R1_FB14_Pos (14U)
  2926. #define CAN_F0R1_FB14_Msk (0x1U << CAN_F0R1_FB14_Pos) /*!< 0x00004000 */
  2927. #define CAN_F0R1_FB14 CAN_F0R1_FB14_Msk /*!<Filter bit 14 */
  2928. #define CAN_F0R1_FB15_Pos (15U)
  2929. #define CAN_F0R1_FB15_Msk (0x1U << CAN_F0R1_FB15_Pos) /*!< 0x00008000 */
  2930. #define CAN_F0R1_FB15 CAN_F0R1_FB15_Msk /*!<Filter bit 15 */
  2931. #define CAN_F0R1_FB16_Pos (16U)
  2932. #define CAN_F0R1_FB16_Msk (0x1U << CAN_F0R1_FB16_Pos) /*!< 0x00010000 */
  2933. #define CAN_F0R1_FB16 CAN_F0R1_FB16_Msk /*!<Filter bit 16 */
  2934. #define CAN_F0R1_FB17_Pos (17U)
  2935. #define CAN_F0R1_FB17_Msk (0x1U << CAN_F0R1_FB17_Pos) /*!< 0x00020000 */
  2936. #define CAN_F0R1_FB17 CAN_F0R1_FB17_Msk /*!<Filter bit 17 */
  2937. #define CAN_F0R1_FB18_Pos (18U)
  2938. #define CAN_F0R1_FB18_Msk (0x1U << CAN_F0R1_FB18_Pos) /*!< 0x00040000 */
  2939. #define CAN_F0R1_FB18 CAN_F0R1_FB18_Msk /*!<Filter bit 18 */
  2940. #define CAN_F0R1_FB19_Pos (19U)
  2941. #define CAN_F0R1_FB19_Msk (0x1U << CAN_F0R1_FB19_Pos) /*!< 0x00080000 */
  2942. #define CAN_F0R1_FB19 CAN_F0R1_FB19_Msk /*!<Filter bit 19 */
  2943. #define CAN_F0R1_FB20_Pos (20U)
  2944. #define CAN_F0R1_FB20_Msk (0x1U << CAN_F0R1_FB20_Pos) /*!< 0x00100000 */
  2945. #define CAN_F0R1_FB20 CAN_F0R1_FB20_Msk /*!<Filter bit 20 */
  2946. #define CAN_F0R1_FB21_Pos (21U)
  2947. #define CAN_F0R1_FB21_Msk (0x1U << CAN_F0R1_FB21_Pos) /*!< 0x00200000 */
  2948. #define CAN_F0R1_FB21 CAN_F0R1_FB21_Msk /*!<Filter bit 21 */
  2949. #define CAN_F0R1_FB22_Pos (22U)
  2950. #define CAN_F0R1_FB22_Msk (0x1U << CAN_F0R1_FB22_Pos) /*!< 0x00400000 */
  2951. #define CAN_F0R1_FB22 CAN_F0R1_FB22_Msk /*!<Filter bit 22 */
  2952. #define CAN_F0R1_FB23_Pos (23U)
  2953. #define CAN_F0R1_FB23_Msk (0x1U << CAN_F0R1_FB23_Pos) /*!< 0x00800000 */
  2954. #define CAN_F0R1_FB23 CAN_F0R1_FB23_Msk /*!<Filter bit 23 */
  2955. #define CAN_F0R1_FB24_Pos (24U)
  2956. #define CAN_F0R1_FB24_Msk (0x1U << CAN_F0R1_FB24_Pos) /*!< 0x01000000 */
  2957. #define CAN_F0R1_FB24 CAN_F0R1_FB24_Msk /*!<Filter bit 24 */
  2958. #define CAN_F0R1_FB25_Pos (25U)
  2959. #define CAN_F0R1_FB25_Msk (0x1U << CAN_F0R1_FB25_Pos) /*!< 0x02000000 */
  2960. #define CAN_F0R1_FB25 CAN_F0R1_FB25_Msk /*!<Filter bit 25 */
  2961. #define CAN_F0R1_FB26_Pos (26U)
  2962. #define CAN_F0R1_FB26_Msk (0x1U << CAN_F0R1_FB26_Pos) /*!< 0x04000000 */
  2963. #define CAN_F0R1_FB26 CAN_F0R1_FB26_Msk /*!<Filter bit 26 */
  2964. #define CAN_F0R1_FB27_Pos (27U)
  2965. #define CAN_F0R1_FB27_Msk (0x1U << CAN_F0R1_FB27_Pos) /*!< 0x08000000 */
  2966. #define CAN_F0R1_FB27 CAN_F0R1_FB27_Msk /*!<Filter bit 27 */
  2967. #define CAN_F0R1_FB28_Pos (28U)
  2968. #define CAN_F0R1_FB28_Msk (0x1U << CAN_F0R1_FB28_Pos) /*!< 0x10000000 */
  2969. #define CAN_F0R1_FB28 CAN_F0R1_FB28_Msk /*!<Filter bit 28 */
  2970. #define CAN_F0R1_FB29_Pos (29U)
  2971. #define CAN_F0R1_FB29_Msk (0x1U << CAN_F0R1_FB29_Pos) /*!< 0x20000000 */
  2972. #define CAN_F0R1_FB29 CAN_F0R1_FB29_Msk /*!<Filter bit 29 */
  2973. #define CAN_F0R1_FB30_Pos (30U)
  2974. #define CAN_F0R1_FB30_Msk (0x1U << CAN_F0R1_FB30_Pos) /*!< 0x40000000 */
  2975. #define CAN_F0R1_FB30 CAN_F0R1_FB30_Msk /*!<Filter bit 30 */
  2976. #define CAN_F0R1_FB31_Pos (31U)
  2977. #define CAN_F0R1_FB31_Msk (0x1U << CAN_F0R1_FB31_Pos) /*!< 0x80000000 */
  2978. #define CAN_F0R1_FB31 CAN_F0R1_FB31_Msk /*!<Filter bit 31 */
  2979. /******************* Bit definition for CAN_F1R1 register *******************/
  2980. #define CAN_F1R1_FB0_Pos (0U)
  2981. #define CAN_F1R1_FB0_Msk (0x1U << CAN_F1R1_FB0_Pos) /*!< 0x00000001 */
  2982. #define CAN_F1R1_FB0 CAN_F1R1_FB0_Msk /*!<Filter bit 0 */
  2983. #define CAN_F1R1_FB1_Pos (1U)
  2984. #define CAN_F1R1_FB1_Msk (0x1U << CAN_F1R1_FB1_Pos) /*!< 0x00000002 */
  2985. #define CAN_F1R1_FB1 CAN_F1R1_FB1_Msk /*!<Filter bit 1 */
  2986. #define CAN_F1R1_FB2_Pos (2U)
  2987. #define CAN_F1R1_FB2_Msk (0x1U << CAN_F1R1_FB2_Pos) /*!< 0x00000004 */
  2988. #define CAN_F1R1_FB2 CAN_F1R1_FB2_Msk /*!<Filter bit 2 */
  2989. #define CAN_F1R1_FB3_Pos (3U)
  2990. #define CAN_F1R1_FB3_Msk (0x1U << CAN_F1R1_FB3_Pos) /*!< 0x00000008 */
  2991. #define CAN_F1R1_FB3 CAN_F1R1_FB3_Msk /*!<Filter bit 3 */
  2992. #define CAN_F1R1_FB4_Pos (4U)
  2993. #define CAN_F1R1_FB4_Msk (0x1U << CAN_F1R1_FB4_Pos) /*!< 0x00000010 */
  2994. #define CAN_F1R1_FB4 CAN_F1R1_FB4_Msk /*!<Filter bit 4 */
  2995. #define CAN_F1R1_FB5_Pos (5U)
  2996. #define CAN_F1R1_FB5_Msk (0x1U << CAN_F1R1_FB5_Pos) /*!< 0x00000020 */
  2997. #define CAN_F1R1_FB5 CAN_F1R1_FB5_Msk /*!<Filter bit 5 */
  2998. #define CAN_F1R1_FB6_Pos (6U)
  2999. #define CAN_F1R1_FB6_Msk (0x1U << CAN_F1R1_FB6_Pos) /*!< 0x00000040 */
  3000. #define CAN_F1R1_FB6 CAN_F1R1_FB6_Msk /*!<Filter bit 6 */
  3001. #define CAN_F1R1_FB7_Pos (7U)
  3002. #define CAN_F1R1_FB7_Msk (0x1U << CAN_F1R1_FB7_Pos) /*!< 0x00000080 */
  3003. #define CAN_F1R1_FB7 CAN_F1R1_FB7_Msk /*!<Filter bit 7 */
  3004. #define CAN_F1R1_FB8_Pos (8U)
  3005. #define CAN_F1R1_FB8_Msk (0x1U << CAN_F1R1_FB8_Pos) /*!< 0x00000100 */
  3006. #define CAN_F1R1_FB8 CAN_F1R1_FB8_Msk /*!<Filter bit 8 */
  3007. #define CAN_F1R1_FB9_Pos (9U)
  3008. #define CAN_F1R1_FB9_Msk (0x1U << CAN_F1R1_FB9_Pos) /*!< 0x00000200 */
  3009. #define CAN_F1R1_FB9 CAN_F1R1_FB9_Msk /*!<Filter bit 9 */
  3010. #define CAN_F1R1_FB10_Pos (10U)
  3011. #define CAN_F1R1_FB10_Msk (0x1U << CAN_F1R1_FB10_Pos) /*!< 0x00000400 */
  3012. #define CAN_F1R1_FB10 CAN_F1R1_FB10_Msk /*!<Filter bit 10 */
  3013. #define CAN_F1R1_FB11_Pos (11U)
  3014. #define CAN_F1R1_FB11_Msk (0x1U << CAN_F1R1_FB11_Pos) /*!< 0x00000800 */
  3015. #define CAN_F1R1_FB11 CAN_F1R1_FB11_Msk /*!<Filter bit 11 */
  3016. #define CAN_F1R1_FB12_Pos (12U)
  3017. #define CAN_F1R1_FB12_Msk (0x1U << CAN_F1R1_FB12_Pos) /*!< 0x00001000 */
  3018. #define CAN_F1R1_FB12 CAN_F1R1_FB12_Msk /*!<Filter bit 12 */
  3019. #define CAN_F1R1_FB13_Pos (13U)
  3020. #define CAN_F1R1_FB13_Msk (0x1U << CAN_F1R1_FB13_Pos) /*!< 0x00002000 */
  3021. #define CAN_F1R1_FB13 CAN_F1R1_FB13_Msk /*!<Filter bit 13 */
  3022. #define CAN_F1R1_FB14_Pos (14U)
  3023. #define CAN_F1R1_FB14_Msk (0x1U << CAN_F1R1_FB14_Pos) /*!< 0x00004000 */
  3024. #define CAN_F1R1_FB14 CAN_F1R1_FB14_Msk /*!<Filter bit 14 */
  3025. #define CAN_F1R1_FB15_Pos (15U)
  3026. #define CAN_F1R1_FB15_Msk (0x1U << CAN_F1R1_FB15_Pos) /*!< 0x00008000 */
  3027. #define CAN_F1R1_FB15 CAN_F1R1_FB15_Msk /*!<Filter bit 15 */
  3028. #define CAN_F1R1_FB16_Pos (16U)
  3029. #define CAN_F1R1_FB16_Msk (0x1U << CAN_F1R1_FB16_Pos) /*!< 0x00010000 */
  3030. #define CAN_F1R1_FB16 CAN_F1R1_FB16_Msk /*!<Filter bit 16 */
  3031. #define CAN_F1R1_FB17_Pos (17U)
  3032. #define CAN_F1R1_FB17_Msk (0x1U << CAN_F1R1_FB17_Pos) /*!< 0x00020000 */
  3033. #define CAN_F1R1_FB17 CAN_F1R1_FB17_Msk /*!<Filter bit 17 */
  3034. #define CAN_F1R1_FB18_Pos (18U)
  3035. #define CAN_F1R1_FB18_Msk (0x1U << CAN_F1R1_FB18_Pos) /*!< 0x00040000 */
  3036. #define CAN_F1R1_FB18 CAN_F1R1_FB18_Msk /*!<Filter bit 18 */
  3037. #define CAN_F1R1_FB19_Pos (19U)
  3038. #define CAN_F1R1_FB19_Msk (0x1U << CAN_F1R1_FB19_Pos) /*!< 0x00080000 */
  3039. #define CAN_F1R1_FB19 CAN_F1R1_FB19_Msk /*!<Filter bit 19 */
  3040. #define CAN_F1R1_FB20_Pos (20U)
  3041. #define CAN_F1R1_FB20_Msk (0x1U << CAN_F1R1_FB20_Pos) /*!< 0x00100000 */
  3042. #define CAN_F1R1_FB20 CAN_F1R1_FB20_Msk /*!<Filter bit 20 */
  3043. #define CAN_F1R1_FB21_Pos (21U)
  3044. #define CAN_F1R1_FB21_Msk (0x1U << CAN_F1R1_FB21_Pos) /*!< 0x00200000 */
  3045. #define CAN_F1R1_FB21 CAN_F1R1_FB21_Msk /*!<Filter bit 21 */
  3046. #define CAN_F1R1_FB22_Pos (22U)
  3047. #define CAN_F1R1_FB22_Msk (0x1U << CAN_F1R1_FB22_Pos) /*!< 0x00400000 */
  3048. #define CAN_F1R1_FB22 CAN_F1R1_FB22_Msk /*!<Filter bit 22 */
  3049. #define CAN_F1R1_FB23_Pos (23U)
  3050. #define CAN_F1R1_FB23_Msk (0x1U << CAN_F1R1_FB23_Pos) /*!< 0x00800000 */
  3051. #define CAN_F1R1_FB23 CAN_F1R1_FB23_Msk /*!<Filter bit 23 */
  3052. #define CAN_F1R1_FB24_Pos (24U)
  3053. #define CAN_F1R1_FB24_Msk (0x1U << CAN_F1R1_FB24_Pos) /*!< 0x01000000 */
  3054. #define CAN_F1R1_FB24 CAN_F1R1_FB24_Msk /*!<Filter bit 24 */
  3055. #define CAN_F1R1_FB25_Pos (25U)
  3056. #define CAN_F1R1_FB25_Msk (0x1U << CAN_F1R1_FB25_Pos) /*!< 0x02000000 */
  3057. #define CAN_F1R1_FB25 CAN_F1R1_FB25_Msk /*!<Filter bit 25 */
  3058. #define CAN_F1R1_FB26_Pos (26U)
  3059. #define CAN_F1R1_FB26_Msk (0x1U << CAN_F1R1_FB26_Pos) /*!< 0x04000000 */
  3060. #define CAN_F1R1_FB26 CAN_F1R1_FB26_Msk /*!<Filter bit 26 */
  3061. #define CAN_F1R1_FB27_Pos (27U)
  3062. #define CAN_F1R1_FB27_Msk (0x1U << CAN_F1R1_FB27_Pos) /*!< 0x08000000 */
  3063. #define CAN_F1R1_FB27 CAN_F1R1_FB27_Msk /*!<Filter bit 27 */
  3064. #define CAN_F1R1_FB28_Pos (28U)
  3065. #define CAN_F1R1_FB28_Msk (0x1U << CAN_F1R1_FB28_Pos) /*!< 0x10000000 */
  3066. #define CAN_F1R1_FB28 CAN_F1R1_FB28_Msk /*!<Filter bit 28 */
  3067. #define CAN_F1R1_FB29_Pos (29U)
  3068. #define CAN_F1R1_FB29_Msk (0x1U << CAN_F1R1_FB29_Pos) /*!< 0x20000000 */
  3069. #define CAN_F1R1_FB29 CAN_F1R1_FB29_Msk /*!<Filter bit 29 */
  3070. #define CAN_F1R1_FB30_Pos (30U)
  3071. #define CAN_F1R1_FB30_Msk (0x1U << CAN_F1R1_FB30_Pos) /*!< 0x40000000 */
  3072. #define CAN_F1R1_FB30 CAN_F1R1_FB30_Msk /*!<Filter bit 30 */
  3073. #define CAN_F1R1_FB31_Pos (31U)
  3074. #define CAN_F1R1_FB31_Msk (0x1U << CAN_F1R1_FB31_Pos) /*!< 0x80000000 */
  3075. #define CAN_F1R1_FB31 CAN_F1R1_FB31_Msk /*!<Filter bit 31 */
  3076. /******************* Bit definition for CAN_F2R1 register *******************/
  3077. #define CAN_F2R1_FB0_Pos (0U)
  3078. #define CAN_F2R1_FB0_Msk (0x1U << CAN_F2R1_FB0_Pos) /*!< 0x00000001 */
  3079. #define CAN_F2R1_FB0 CAN_F2R1_FB0_Msk /*!<Filter bit 0 */
  3080. #define CAN_F2R1_FB1_Pos (1U)
  3081. #define CAN_F2R1_FB1_Msk (0x1U << CAN_F2R1_FB1_Pos) /*!< 0x00000002 */
  3082. #define CAN_F2R1_FB1 CAN_F2R1_FB1_Msk /*!<Filter bit 1 */
  3083. #define CAN_F2R1_FB2_Pos (2U)
  3084. #define CAN_F2R1_FB2_Msk (0x1U << CAN_F2R1_FB2_Pos) /*!< 0x00000004 */
  3085. #define CAN_F2R1_FB2 CAN_F2R1_FB2_Msk /*!<Filter bit 2 */
  3086. #define CAN_F2R1_FB3_Pos (3U)
  3087. #define CAN_F2R1_FB3_Msk (0x1U << CAN_F2R1_FB3_Pos) /*!< 0x00000008 */
  3088. #define CAN_F2R1_FB3 CAN_F2R1_FB3_Msk /*!<Filter bit 3 */
  3089. #define CAN_F2R1_FB4_Pos (4U)
  3090. #define CAN_F2R1_FB4_Msk (0x1U << CAN_F2R1_FB4_Pos) /*!< 0x00000010 */
  3091. #define CAN_F2R1_FB4 CAN_F2R1_FB4_Msk /*!<Filter bit 4 */
  3092. #define CAN_F2R1_FB5_Pos (5U)
  3093. #define CAN_F2R1_FB5_Msk (0x1U << CAN_F2R1_FB5_Pos) /*!< 0x00000020 */
  3094. #define CAN_F2R1_FB5 CAN_F2R1_FB5_Msk /*!<Filter bit 5 */
  3095. #define CAN_F2R1_FB6_Pos (6U)
  3096. #define CAN_F2R1_FB6_Msk (0x1U << CAN_F2R1_FB6_Pos) /*!< 0x00000040 */
  3097. #define CAN_F2R1_FB6 CAN_F2R1_FB6_Msk /*!<Filter bit 6 */
  3098. #define CAN_F2R1_FB7_Pos (7U)
  3099. #define CAN_F2R1_FB7_Msk (0x1U << CAN_F2R1_FB7_Pos) /*!< 0x00000080 */
  3100. #define CAN_F2R1_FB7 CAN_F2R1_FB7_Msk /*!<Filter bit 7 */
  3101. #define CAN_F2R1_FB8_Pos (8U)
  3102. #define CAN_F2R1_FB8_Msk (0x1U << CAN_F2R1_FB8_Pos) /*!< 0x00000100 */
  3103. #define CAN_F2R1_FB8 CAN_F2R1_FB8_Msk /*!<Filter bit 8 */
  3104. #define CAN_F2R1_FB9_Pos (9U)
  3105. #define CAN_F2R1_FB9_Msk (0x1U << CAN_F2R1_FB9_Pos) /*!< 0x00000200 */
  3106. #define CAN_F2R1_FB9 CAN_F2R1_FB9_Msk /*!<Filter bit 9 */
  3107. #define CAN_F2R1_FB10_Pos (10U)
  3108. #define CAN_F2R1_FB10_Msk (0x1U << CAN_F2R1_FB10_Pos) /*!< 0x00000400 */
  3109. #define CAN_F2R1_FB10 CAN_F2R1_FB10_Msk /*!<Filter bit 10 */
  3110. #define CAN_F2R1_FB11_Pos (11U)
  3111. #define CAN_F2R1_FB11_Msk (0x1U << CAN_F2R1_FB11_Pos) /*!< 0x00000800 */
  3112. #define CAN_F2R1_FB11 CAN_F2R1_FB11_Msk /*!<Filter bit 11 */
  3113. #define CAN_F2R1_FB12_Pos (12U)
  3114. #define CAN_F2R1_FB12_Msk (0x1U << CAN_F2R1_FB12_Pos) /*!< 0x00001000 */
  3115. #define CAN_F2R1_FB12 CAN_F2R1_FB12_Msk /*!<Filter bit 12 */
  3116. #define CAN_F2R1_FB13_Pos (13U)
  3117. #define CAN_F2R1_FB13_Msk (0x1U << CAN_F2R1_FB13_Pos) /*!< 0x00002000 */
  3118. #define CAN_F2R1_FB13 CAN_F2R1_FB13_Msk /*!<Filter bit 13 */
  3119. #define CAN_F2R1_FB14_Pos (14U)
  3120. #define CAN_F2R1_FB14_Msk (0x1U << CAN_F2R1_FB14_Pos) /*!< 0x00004000 */
  3121. #define CAN_F2R1_FB14 CAN_F2R1_FB14_Msk /*!<Filter bit 14 */
  3122. #define CAN_F2R1_FB15_Pos (15U)
  3123. #define CAN_F2R1_FB15_Msk (0x1U << CAN_F2R1_FB15_Pos) /*!< 0x00008000 */
  3124. #define CAN_F2R1_FB15 CAN_F2R1_FB15_Msk /*!<Filter bit 15 */
  3125. #define CAN_F2R1_FB16_Pos (16U)
  3126. #define CAN_F2R1_FB16_Msk (0x1U << CAN_F2R1_FB16_Pos) /*!< 0x00010000 */
  3127. #define CAN_F2R1_FB16 CAN_F2R1_FB16_Msk /*!<Filter bit 16 */
  3128. #define CAN_F2R1_FB17_Pos (17U)
  3129. #define CAN_F2R1_FB17_Msk (0x1U << CAN_F2R1_FB17_Pos) /*!< 0x00020000 */
  3130. #define CAN_F2R1_FB17 CAN_F2R1_FB17_Msk /*!<Filter bit 17 */
  3131. #define CAN_F2R1_FB18_Pos (18U)
  3132. #define CAN_F2R1_FB18_Msk (0x1U << CAN_F2R1_FB18_Pos) /*!< 0x00040000 */
  3133. #define CAN_F2R1_FB18 CAN_F2R1_FB18_Msk /*!<Filter bit 18 */
  3134. #define CAN_F2R1_FB19_Pos (19U)
  3135. #define CAN_F2R1_FB19_Msk (0x1U << CAN_F2R1_FB19_Pos) /*!< 0x00080000 */
  3136. #define CAN_F2R1_FB19 CAN_F2R1_FB19_Msk /*!<Filter bit 19 */
  3137. #define CAN_F2R1_FB20_Pos (20U)
  3138. #define CAN_F2R1_FB20_Msk (0x1U << CAN_F2R1_FB20_Pos) /*!< 0x00100000 */
  3139. #define CAN_F2R1_FB20 CAN_F2R1_FB20_Msk /*!<Filter bit 20 */
  3140. #define CAN_F2R1_FB21_Pos (21U)
  3141. #define CAN_F2R1_FB21_Msk (0x1U << CAN_F2R1_FB21_Pos) /*!< 0x00200000 */
  3142. #define CAN_F2R1_FB21 CAN_F2R1_FB21_Msk /*!<Filter bit 21 */
  3143. #define CAN_F2R1_FB22_Pos (22U)
  3144. #define CAN_F2R1_FB22_Msk (0x1U << CAN_F2R1_FB22_Pos) /*!< 0x00400000 */
  3145. #define CAN_F2R1_FB22 CAN_F2R1_FB22_Msk /*!<Filter bit 22 */
  3146. #define CAN_F2R1_FB23_Pos (23U)
  3147. #define CAN_F2R1_FB23_Msk (0x1U << CAN_F2R1_FB23_Pos) /*!< 0x00800000 */
  3148. #define CAN_F2R1_FB23 CAN_F2R1_FB23_Msk /*!<Filter bit 23 */
  3149. #define CAN_F2R1_FB24_Pos (24U)
  3150. #define CAN_F2R1_FB24_Msk (0x1U << CAN_F2R1_FB24_Pos) /*!< 0x01000000 */
  3151. #define CAN_F2R1_FB24 CAN_F2R1_FB24_Msk /*!<Filter bit 24 */
  3152. #define CAN_F2R1_FB25_Pos (25U)
  3153. #define CAN_F2R1_FB25_Msk (0x1U << CAN_F2R1_FB25_Pos) /*!< 0x02000000 */
  3154. #define CAN_F2R1_FB25 CAN_F2R1_FB25_Msk /*!<Filter bit 25 */
  3155. #define CAN_F2R1_FB26_Pos (26U)
  3156. #define CAN_F2R1_FB26_Msk (0x1U << CAN_F2R1_FB26_Pos) /*!< 0x04000000 */
  3157. #define CAN_F2R1_FB26 CAN_F2R1_FB26_Msk /*!<Filter bit 26 */
  3158. #define CAN_F2R1_FB27_Pos (27U)
  3159. #define CAN_F2R1_FB27_Msk (0x1U << CAN_F2R1_FB27_Pos) /*!< 0x08000000 */
  3160. #define CAN_F2R1_FB27 CAN_F2R1_FB27_Msk /*!<Filter bit 27 */
  3161. #define CAN_F2R1_FB28_Pos (28U)
  3162. #define CAN_F2R1_FB28_Msk (0x1U << CAN_F2R1_FB28_Pos) /*!< 0x10000000 */
  3163. #define CAN_F2R1_FB28 CAN_F2R1_FB28_Msk /*!<Filter bit 28 */
  3164. #define CAN_F2R1_FB29_Pos (29U)
  3165. #define CAN_F2R1_FB29_Msk (0x1U << CAN_F2R1_FB29_Pos) /*!< 0x20000000 */
  3166. #define CAN_F2R1_FB29 CAN_F2R1_FB29_Msk /*!<Filter bit 29 */
  3167. #define CAN_F2R1_FB30_Pos (30U)
  3168. #define CAN_F2R1_FB30_Msk (0x1U << CAN_F2R1_FB30_Pos) /*!< 0x40000000 */
  3169. #define CAN_F2R1_FB30 CAN_F2R1_FB30_Msk /*!<Filter bit 30 */
  3170. #define CAN_F2R1_FB31_Pos (31U)
  3171. #define CAN_F2R1_FB31_Msk (0x1U << CAN_F2R1_FB31_Pos) /*!< 0x80000000 */
  3172. #define CAN_F2R1_FB31 CAN_F2R1_FB31_Msk /*!<Filter bit 31 */
  3173. /******************* Bit definition for CAN_F3R1 register *******************/
  3174. #define CAN_F3R1_FB0_Pos (0U)
  3175. #define CAN_F3R1_FB0_Msk (0x1U << CAN_F3R1_FB0_Pos) /*!< 0x00000001 */
  3176. #define CAN_F3R1_FB0 CAN_F3R1_FB0_Msk /*!<Filter bit 0 */
  3177. #define CAN_F3R1_FB1_Pos (1U)
  3178. #define CAN_F3R1_FB1_Msk (0x1U << CAN_F3R1_FB1_Pos) /*!< 0x00000002 */
  3179. #define CAN_F3R1_FB1 CAN_F3R1_FB1_Msk /*!<Filter bit 1 */
  3180. #define CAN_F3R1_FB2_Pos (2U)
  3181. #define CAN_F3R1_FB2_Msk (0x1U << CAN_F3R1_FB2_Pos) /*!< 0x00000004 */
  3182. #define CAN_F3R1_FB2 CAN_F3R1_FB2_Msk /*!<Filter bit 2 */
  3183. #define CAN_F3R1_FB3_Pos (3U)
  3184. #define CAN_F3R1_FB3_Msk (0x1U << CAN_F3R1_FB3_Pos) /*!< 0x00000008 */
  3185. #define CAN_F3R1_FB3 CAN_F3R1_FB3_Msk /*!<Filter bit 3 */
  3186. #define CAN_F3R1_FB4_Pos (4U)
  3187. #define CAN_F3R1_FB4_Msk (0x1U << CAN_F3R1_FB4_Pos) /*!< 0x00000010 */
  3188. #define CAN_F3R1_FB4 CAN_F3R1_FB4_Msk /*!<Filter bit 4 */
  3189. #define CAN_F3R1_FB5_Pos (5U)
  3190. #define CAN_F3R1_FB5_Msk (0x1U << CAN_F3R1_FB5_Pos) /*!< 0x00000020 */
  3191. #define CAN_F3R1_FB5 CAN_F3R1_FB5_Msk /*!<Filter bit 5 */
  3192. #define CAN_F3R1_FB6_Pos (6U)
  3193. #define CAN_F3R1_FB6_Msk (0x1U << CAN_F3R1_FB6_Pos) /*!< 0x00000040 */
  3194. #define CAN_F3R1_FB6 CAN_F3R1_FB6_Msk /*!<Filter bit 6 */
  3195. #define CAN_F3R1_FB7_Pos (7U)
  3196. #define CAN_F3R1_FB7_Msk (0x1U << CAN_F3R1_FB7_Pos) /*!< 0x00000080 */
  3197. #define CAN_F3R1_FB7 CAN_F3R1_FB7_Msk /*!<Filter bit 7 */
  3198. #define CAN_F3R1_FB8_Pos (8U)
  3199. #define CAN_F3R1_FB8_Msk (0x1U << CAN_F3R1_FB8_Pos) /*!< 0x00000100 */
  3200. #define CAN_F3R1_FB8 CAN_F3R1_FB8_Msk /*!<Filter bit 8 */
  3201. #define CAN_F3R1_FB9_Pos (9U)
  3202. #define CAN_F3R1_FB9_Msk (0x1U << CAN_F3R1_FB9_Pos) /*!< 0x00000200 */
  3203. #define CAN_F3R1_FB9 CAN_F3R1_FB9_Msk /*!<Filter bit 9 */
  3204. #define CAN_F3R1_FB10_Pos (10U)
  3205. #define CAN_F3R1_FB10_Msk (0x1U << CAN_F3R1_FB10_Pos) /*!< 0x00000400 */
  3206. #define CAN_F3R1_FB10 CAN_F3R1_FB10_Msk /*!<Filter bit 10 */
  3207. #define CAN_F3R1_FB11_Pos (11U)
  3208. #define CAN_F3R1_FB11_Msk (0x1U << CAN_F3R1_FB11_Pos) /*!< 0x00000800 */
  3209. #define CAN_F3R1_FB11 CAN_F3R1_FB11_Msk /*!<Filter bit 11 */
  3210. #define CAN_F3R1_FB12_Pos (12U)
  3211. #define CAN_F3R1_FB12_Msk (0x1U << CAN_F3R1_FB12_Pos) /*!< 0x00001000 */
  3212. #define CAN_F3R1_FB12 CAN_F3R1_FB12_Msk /*!<Filter bit 12 */
  3213. #define CAN_F3R1_FB13_Pos (13U)
  3214. #define CAN_F3R1_FB13_Msk (0x1U << CAN_F3R1_FB13_Pos) /*!< 0x00002000 */
  3215. #define CAN_F3R1_FB13 CAN_F3R1_FB13_Msk /*!<Filter bit 13 */
  3216. #define CAN_F3R1_FB14_Pos (14U)
  3217. #define CAN_F3R1_FB14_Msk (0x1U << CAN_F3R1_FB14_Pos) /*!< 0x00004000 */
  3218. #define CAN_F3R1_FB14 CAN_F3R1_FB14_Msk /*!<Filter bit 14 */
  3219. #define CAN_F3R1_FB15_Pos (15U)
  3220. #define CAN_F3R1_FB15_Msk (0x1U << CAN_F3R1_FB15_Pos) /*!< 0x00008000 */
  3221. #define CAN_F3R1_FB15 CAN_F3R1_FB15_Msk /*!<Filter bit 15 */
  3222. #define CAN_F3R1_FB16_Pos (16U)
  3223. #define CAN_F3R1_FB16_Msk (0x1U << CAN_F3R1_FB16_Pos) /*!< 0x00010000 */
  3224. #define CAN_F3R1_FB16 CAN_F3R1_FB16_Msk /*!<Filter bit 16 */
  3225. #define CAN_F3R1_FB17_Pos (17U)
  3226. #define CAN_F3R1_FB17_Msk (0x1U << CAN_F3R1_FB17_Pos) /*!< 0x00020000 */
  3227. #define CAN_F3R1_FB17 CAN_F3R1_FB17_Msk /*!<Filter bit 17 */
  3228. #define CAN_F3R1_FB18_Pos (18U)
  3229. #define CAN_F3R1_FB18_Msk (0x1U << CAN_F3R1_FB18_Pos) /*!< 0x00040000 */
  3230. #define CAN_F3R1_FB18 CAN_F3R1_FB18_Msk /*!<Filter bit 18 */
  3231. #define CAN_F3R1_FB19_Pos (19U)
  3232. #define CAN_F3R1_FB19_Msk (0x1U << CAN_F3R1_FB19_Pos) /*!< 0x00080000 */
  3233. #define CAN_F3R1_FB19 CAN_F3R1_FB19_Msk /*!<Filter bit 19 */
  3234. #define CAN_F3R1_FB20_Pos (20U)
  3235. #define CAN_F3R1_FB20_Msk (0x1U << CAN_F3R1_FB20_Pos) /*!< 0x00100000 */
  3236. #define CAN_F3R1_FB20 CAN_F3R1_FB20_Msk /*!<Filter bit 20 */
  3237. #define CAN_F3R1_FB21_Pos (21U)
  3238. #define CAN_F3R1_FB21_Msk (0x1U << CAN_F3R1_FB21_Pos) /*!< 0x00200000 */
  3239. #define CAN_F3R1_FB21 CAN_F3R1_FB21_Msk /*!<Filter bit 21 */
  3240. #define CAN_F3R1_FB22_Pos (22U)
  3241. #define CAN_F3R1_FB22_Msk (0x1U << CAN_F3R1_FB22_Pos) /*!< 0x00400000 */
  3242. #define CAN_F3R1_FB22 CAN_F3R1_FB22_Msk /*!<Filter bit 22 */
  3243. #define CAN_F3R1_FB23_Pos (23U)
  3244. #define CAN_F3R1_FB23_Msk (0x1U << CAN_F3R1_FB23_Pos) /*!< 0x00800000 */
  3245. #define CAN_F3R1_FB23 CAN_F3R1_FB23_Msk /*!<Filter bit 23 */
  3246. #define CAN_F3R1_FB24_Pos (24U)
  3247. #define CAN_F3R1_FB24_Msk (0x1U << CAN_F3R1_FB24_Pos) /*!< 0x01000000 */
  3248. #define CAN_F3R1_FB24 CAN_F3R1_FB24_Msk /*!<Filter bit 24 */
  3249. #define CAN_F3R1_FB25_Pos (25U)
  3250. #define CAN_F3R1_FB25_Msk (0x1U << CAN_F3R1_FB25_Pos) /*!< 0x02000000 */
  3251. #define CAN_F3R1_FB25 CAN_F3R1_FB25_Msk /*!<Filter bit 25 */
  3252. #define CAN_F3R1_FB26_Pos (26U)
  3253. #define CAN_F3R1_FB26_Msk (0x1U << CAN_F3R1_FB26_Pos) /*!< 0x04000000 */
  3254. #define CAN_F3R1_FB26 CAN_F3R1_FB26_Msk /*!<Filter bit 26 */
  3255. #define CAN_F3R1_FB27_Pos (27U)
  3256. #define CAN_F3R1_FB27_Msk (0x1U << CAN_F3R1_FB27_Pos) /*!< 0x08000000 */
  3257. #define CAN_F3R1_FB27 CAN_F3R1_FB27_Msk /*!<Filter bit 27 */
  3258. #define CAN_F3R1_FB28_Pos (28U)
  3259. #define CAN_F3R1_FB28_Msk (0x1U << CAN_F3R1_FB28_Pos) /*!< 0x10000000 */
  3260. #define CAN_F3R1_FB28 CAN_F3R1_FB28_Msk /*!<Filter bit 28 */
  3261. #define CAN_F3R1_FB29_Pos (29U)
  3262. #define CAN_F3R1_FB29_Msk (0x1U << CAN_F3R1_FB29_Pos) /*!< 0x20000000 */
  3263. #define CAN_F3R1_FB29 CAN_F3R1_FB29_Msk /*!<Filter bit 29 */
  3264. #define CAN_F3R1_FB30_Pos (30U)
  3265. #define CAN_F3R1_FB30_Msk (0x1U << CAN_F3R1_FB30_Pos) /*!< 0x40000000 */
  3266. #define CAN_F3R1_FB30 CAN_F3R1_FB30_Msk /*!<Filter bit 30 */
  3267. #define CAN_F3R1_FB31_Pos (31U)
  3268. #define CAN_F3R1_FB31_Msk (0x1U << CAN_F3R1_FB31_Pos) /*!< 0x80000000 */
  3269. #define CAN_F3R1_FB31 CAN_F3R1_FB31_Msk /*!<Filter bit 31 */
  3270. /******************* Bit definition for CAN_F4R1 register *******************/
  3271. #define CAN_F4R1_FB0_Pos (0U)
  3272. #define CAN_F4R1_FB0_Msk (0x1U << CAN_F4R1_FB0_Pos) /*!< 0x00000001 */
  3273. #define CAN_F4R1_FB0 CAN_F4R1_FB0_Msk /*!<Filter bit 0 */
  3274. #define CAN_F4R1_FB1_Pos (1U)
  3275. #define CAN_F4R1_FB1_Msk (0x1U << CAN_F4R1_FB1_Pos) /*!< 0x00000002 */
  3276. #define CAN_F4R1_FB1 CAN_F4R1_FB1_Msk /*!<Filter bit 1 */
  3277. #define CAN_F4R1_FB2_Pos (2U)
  3278. #define CAN_F4R1_FB2_Msk (0x1U << CAN_F4R1_FB2_Pos) /*!< 0x00000004 */
  3279. #define CAN_F4R1_FB2 CAN_F4R1_FB2_Msk /*!<Filter bit 2 */
  3280. #define CAN_F4R1_FB3_Pos (3U)
  3281. #define CAN_F4R1_FB3_Msk (0x1U << CAN_F4R1_FB3_Pos) /*!< 0x00000008 */
  3282. #define CAN_F4R1_FB3 CAN_F4R1_FB3_Msk /*!<Filter bit 3 */
  3283. #define CAN_F4R1_FB4_Pos (4U)
  3284. #define CAN_F4R1_FB4_Msk (0x1U << CAN_F4R1_FB4_Pos) /*!< 0x00000010 */
  3285. #define CAN_F4R1_FB4 CAN_F4R1_FB4_Msk /*!<Filter bit 4 */
  3286. #define CAN_F4R1_FB5_Pos (5U)
  3287. #define CAN_F4R1_FB5_Msk (0x1U << CAN_F4R1_FB5_Pos) /*!< 0x00000020 */
  3288. #define CAN_F4R1_FB5 CAN_F4R1_FB5_Msk /*!<Filter bit 5 */
  3289. #define CAN_F4R1_FB6_Pos (6U)
  3290. #define CAN_F4R1_FB6_Msk (0x1U << CAN_F4R1_FB6_Pos) /*!< 0x00000040 */
  3291. #define CAN_F4R1_FB6 CAN_F4R1_FB6_Msk /*!<Filter bit 6 */
  3292. #define CAN_F4R1_FB7_Pos (7U)
  3293. #define CAN_F4R1_FB7_Msk (0x1U << CAN_F4R1_FB7_Pos) /*!< 0x00000080 */
  3294. #define CAN_F4R1_FB7 CAN_F4R1_FB7_Msk /*!<Filter bit 7 */
  3295. #define CAN_F4R1_FB8_Pos (8U)
  3296. #define CAN_F4R1_FB8_Msk (0x1U << CAN_F4R1_FB8_Pos) /*!< 0x00000100 */
  3297. #define CAN_F4R1_FB8 CAN_F4R1_FB8_Msk /*!<Filter bit 8 */
  3298. #define CAN_F4R1_FB9_Pos (9U)
  3299. #define CAN_F4R1_FB9_Msk (0x1U << CAN_F4R1_FB9_Pos) /*!< 0x00000200 */
  3300. #define CAN_F4R1_FB9 CAN_F4R1_FB9_Msk /*!<Filter bit 9 */
  3301. #define CAN_F4R1_FB10_Pos (10U)
  3302. #define CAN_F4R1_FB10_Msk (0x1U << CAN_F4R1_FB10_Pos) /*!< 0x00000400 */
  3303. #define CAN_F4R1_FB10 CAN_F4R1_FB10_Msk /*!<Filter bit 10 */
  3304. #define CAN_F4R1_FB11_Pos (11U)
  3305. #define CAN_F4R1_FB11_Msk (0x1U << CAN_F4R1_FB11_Pos) /*!< 0x00000800 */
  3306. #define CAN_F4R1_FB11 CAN_F4R1_FB11_Msk /*!<Filter bit 11 */
  3307. #define CAN_F4R1_FB12_Pos (12U)
  3308. #define CAN_F4R1_FB12_Msk (0x1U << CAN_F4R1_FB12_Pos) /*!< 0x00001000 */
  3309. #define CAN_F4R1_FB12 CAN_F4R1_FB12_Msk /*!<Filter bit 12 */
  3310. #define CAN_F4R1_FB13_Pos (13U)
  3311. #define CAN_F4R1_FB13_Msk (0x1U << CAN_F4R1_FB13_Pos) /*!< 0x00002000 */
  3312. #define CAN_F4R1_FB13 CAN_F4R1_FB13_Msk /*!<Filter bit 13 */
  3313. #define CAN_F4R1_FB14_Pos (14U)
  3314. #define CAN_F4R1_FB14_Msk (0x1U << CAN_F4R1_FB14_Pos) /*!< 0x00004000 */
  3315. #define CAN_F4R1_FB14 CAN_F4R1_FB14_Msk /*!<Filter bit 14 */
  3316. #define CAN_F4R1_FB15_Pos (15U)
  3317. #define CAN_F4R1_FB15_Msk (0x1U << CAN_F4R1_FB15_Pos) /*!< 0x00008000 */
  3318. #define CAN_F4R1_FB15 CAN_F4R1_FB15_Msk /*!<Filter bit 15 */
  3319. #define CAN_F4R1_FB16_Pos (16U)
  3320. #define CAN_F4R1_FB16_Msk (0x1U << CAN_F4R1_FB16_Pos) /*!< 0x00010000 */
  3321. #define CAN_F4R1_FB16 CAN_F4R1_FB16_Msk /*!<Filter bit 16 */
  3322. #define CAN_F4R1_FB17_Pos (17U)
  3323. #define CAN_F4R1_FB17_Msk (0x1U << CAN_F4R1_FB17_Pos) /*!< 0x00020000 */
  3324. #define CAN_F4R1_FB17 CAN_F4R1_FB17_Msk /*!<Filter bit 17 */
  3325. #define CAN_F4R1_FB18_Pos (18U)
  3326. #define CAN_F4R1_FB18_Msk (0x1U << CAN_F4R1_FB18_Pos) /*!< 0x00040000 */
  3327. #define CAN_F4R1_FB18 CAN_F4R1_FB18_Msk /*!<Filter bit 18 */
  3328. #define CAN_F4R1_FB19_Pos (19U)
  3329. #define CAN_F4R1_FB19_Msk (0x1U << CAN_F4R1_FB19_Pos) /*!< 0x00080000 */
  3330. #define CAN_F4R1_FB19 CAN_F4R1_FB19_Msk /*!<Filter bit 19 */
  3331. #define CAN_F4R1_FB20_Pos (20U)
  3332. #define CAN_F4R1_FB20_Msk (0x1U << CAN_F4R1_FB20_Pos) /*!< 0x00100000 */
  3333. #define CAN_F4R1_FB20 CAN_F4R1_FB20_Msk /*!<Filter bit 20 */
  3334. #define CAN_F4R1_FB21_Pos (21U)
  3335. #define CAN_F4R1_FB21_Msk (0x1U << CAN_F4R1_FB21_Pos) /*!< 0x00200000 */
  3336. #define CAN_F4R1_FB21 CAN_F4R1_FB21_Msk /*!<Filter bit 21 */
  3337. #define CAN_F4R1_FB22_Pos (22U)
  3338. #define CAN_F4R1_FB22_Msk (0x1U << CAN_F4R1_FB22_Pos) /*!< 0x00400000 */
  3339. #define CAN_F4R1_FB22 CAN_F4R1_FB22_Msk /*!<Filter bit 22 */
  3340. #define CAN_F4R1_FB23_Pos (23U)
  3341. #define CAN_F4R1_FB23_Msk (0x1U << CAN_F4R1_FB23_Pos) /*!< 0x00800000 */
  3342. #define CAN_F4R1_FB23 CAN_F4R1_FB23_Msk /*!<Filter bit 23 */
  3343. #define CAN_F4R1_FB24_Pos (24U)
  3344. #define CAN_F4R1_FB24_Msk (0x1U << CAN_F4R1_FB24_Pos) /*!< 0x01000000 */
  3345. #define CAN_F4R1_FB24 CAN_F4R1_FB24_Msk /*!<Filter bit 24 */
  3346. #define CAN_F4R1_FB25_Pos (25U)
  3347. #define CAN_F4R1_FB25_Msk (0x1U << CAN_F4R1_FB25_Pos) /*!< 0x02000000 */
  3348. #define CAN_F4R1_FB25 CAN_F4R1_FB25_Msk /*!<Filter bit 25 */
  3349. #define CAN_F4R1_FB26_Pos (26U)
  3350. #define CAN_F4R1_FB26_Msk (0x1U << CAN_F4R1_FB26_Pos) /*!< 0x04000000 */
  3351. #define CAN_F4R1_FB26 CAN_F4R1_FB26_Msk /*!<Filter bit 26 */
  3352. #define CAN_F4R1_FB27_Pos (27U)
  3353. #define CAN_F4R1_FB27_Msk (0x1U << CAN_F4R1_FB27_Pos) /*!< 0x08000000 */
  3354. #define CAN_F4R1_FB27 CAN_F4R1_FB27_Msk /*!<Filter bit 27 */
  3355. #define CAN_F4R1_FB28_Pos (28U)
  3356. #define CAN_F4R1_FB28_Msk (0x1U << CAN_F4R1_FB28_Pos) /*!< 0x10000000 */
  3357. #define CAN_F4R1_FB28 CAN_F4R1_FB28_Msk /*!<Filter bit 28 */
  3358. #define CAN_F4R1_FB29_Pos (29U)
  3359. #define CAN_F4R1_FB29_Msk (0x1U << CAN_F4R1_FB29_Pos) /*!< 0x20000000 */
  3360. #define CAN_F4R1_FB29 CAN_F4R1_FB29_Msk /*!<Filter bit 29 */
  3361. #define CAN_F4R1_FB30_Pos (30U)
  3362. #define CAN_F4R1_FB30_Msk (0x1U << CAN_F4R1_FB30_Pos) /*!< 0x40000000 */
  3363. #define CAN_F4R1_FB30 CAN_F4R1_FB30_Msk /*!<Filter bit 30 */
  3364. #define CAN_F4R1_FB31_Pos (31U)
  3365. #define CAN_F4R1_FB31_Msk (0x1U << CAN_F4R1_FB31_Pos) /*!< 0x80000000 */
  3366. #define CAN_F4R1_FB31 CAN_F4R1_FB31_Msk /*!<Filter bit 31 */
  3367. /******************* Bit definition for CAN_F5R1 register *******************/
  3368. #define CAN_F5R1_FB0_Pos (0U)
  3369. #define CAN_F5R1_FB0_Msk (0x1U << CAN_F5R1_FB0_Pos) /*!< 0x00000001 */
  3370. #define CAN_F5R1_FB0 CAN_F5R1_FB0_Msk /*!<Filter bit 0 */
  3371. #define CAN_F5R1_FB1_Pos (1U)
  3372. #define CAN_F5R1_FB1_Msk (0x1U << CAN_F5R1_FB1_Pos) /*!< 0x00000002 */
  3373. #define CAN_F5R1_FB1 CAN_F5R1_FB1_Msk /*!<Filter bit 1 */
  3374. #define CAN_F5R1_FB2_Pos (2U)
  3375. #define CAN_F5R1_FB2_Msk (0x1U << CAN_F5R1_FB2_Pos) /*!< 0x00000004 */
  3376. #define CAN_F5R1_FB2 CAN_F5R1_FB2_Msk /*!<Filter bit 2 */
  3377. #define CAN_F5R1_FB3_Pos (3U)
  3378. #define CAN_F5R1_FB3_Msk (0x1U << CAN_F5R1_FB3_Pos) /*!< 0x00000008 */
  3379. #define CAN_F5R1_FB3 CAN_F5R1_FB3_Msk /*!<Filter bit 3 */
  3380. #define CAN_F5R1_FB4_Pos (4U)
  3381. #define CAN_F5R1_FB4_Msk (0x1U << CAN_F5R1_FB4_Pos) /*!< 0x00000010 */
  3382. #define CAN_F5R1_FB4 CAN_F5R1_FB4_Msk /*!<Filter bit 4 */
  3383. #define CAN_F5R1_FB5_Pos (5U)
  3384. #define CAN_F5R1_FB5_Msk (0x1U << CAN_F5R1_FB5_Pos) /*!< 0x00000020 */
  3385. #define CAN_F5R1_FB5 CAN_F5R1_FB5_Msk /*!<Filter bit 5 */
  3386. #define CAN_F5R1_FB6_Pos (6U)
  3387. #define CAN_F5R1_FB6_Msk (0x1U << CAN_F5R1_FB6_Pos) /*!< 0x00000040 */
  3388. #define CAN_F5R1_FB6 CAN_F5R1_FB6_Msk /*!<Filter bit 6 */
  3389. #define CAN_F5R1_FB7_Pos (7U)
  3390. #define CAN_F5R1_FB7_Msk (0x1U << CAN_F5R1_FB7_Pos) /*!< 0x00000080 */
  3391. #define CAN_F5R1_FB7 CAN_F5R1_FB7_Msk /*!<Filter bit 7 */
  3392. #define CAN_F5R1_FB8_Pos (8U)
  3393. #define CAN_F5R1_FB8_Msk (0x1U << CAN_F5R1_FB8_Pos) /*!< 0x00000100 */
  3394. #define CAN_F5R1_FB8 CAN_F5R1_FB8_Msk /*!<Filter bit 8 */
  3395. #define CAN_F5R1_FB9_Pos (9U)
  3396. #define CAN_F5R1_FB9_Msk (0x1U << CAN_F5R1_FB9_Pos) /*!< 0x00000200 */
  3397. #define CAN_F5R1_FB9 CAN_F5R1_FB9_Msk /*!<Filter bit 9 */
  3398. #define CAN_F5R1_FB10_Pos (10U)
  3399. #define CAN_F5R1_FB10_Msk (0x1U << CAN_F5R1_FB10_Pos) /*!< 0x00000400 */
  3400. #define CAN_F5R1_FB10 CAN_F5R1_FB10_Msk /*!<Filter bit 10 */
  3401. #define CAN_F5R1_FB11_Pos (11U)
  3402. #define CAN_F5R1_FB11_Msk (0x1U << CAN_F5R1_FB11_Pos) /*!< 0x00000800 */
  3403. #define CAN_F5R1_FB11 CAN_F5R1_FB11_Msk /*!<Filter bit 11 */
  3404. #define CAN_F5R1_FB12_Pos (12U)
  3405. #define CAN_F5R1_FB12_Msk (0x1U << CAN_F5R1_FB12_Pos) /*!< 0x00001000 */
  3406. #define CAN_F5R1_FB12 CAN_F5R1_FB12_Msk /*!<Filter bit 12 */
  3407. #define CAN_F5R1_FB13_Pos (13U)
  3408. #define CAN_F5R1_FB13_Msk (0x1U << CAN_F5R1_FB13_Pos) /*!< 0x00002000 */
  3409. #define CAN_F5R1_FB13 CAN_F5R1_FB13_Msk /*!<Filter bit 13 */
  3410. #define CAN_F5R1_FB14_Pos (14U)
  3411. #define CAN_F5R1_FB14_Msk (0x1U << CAN_F5R1_FB14_Pos) /*!< 0x00004000 */
  3412. #define CAN_F5R1_FB14 CAN_F5R1_FB14_Msk /*!<Filter bit 14 */
  3413. #define CAN_F5R1_FB15_Pos (15U)
  3414. #define CAN_F5R1_FB15_Msk (0x1U << CAN_F5R1_FB15_Pos) /*!< 0x00008000 */
  3415. #define CAN_F5R1_FB15 CAN_F5R1_FB15_Msk /*!<Filter bit 15 */
  3416. #define CAN_F5R1_FB16_Pos (16U)
  3417. #define CAN_F5R1_FB16_Msk (0x1U << CAN_F5R1_FB16_Pos) /*!< 0x00010000 */
  3418. #define CAN_F5R1_FB16 CAN_F5R1_FB16_Msk /*!<Filter bit 16 */
  3419. #define CAN_F5R1_FB17_Pos (17U)
  3420. #define CAN_F5R1_FB17_Msk (0x1U << CAN_F5R1_FB17_Pos) /*!< 0x00020000 */
  3421. #define CAN_F5R1_FB17 CAN_F5R1_FB17_Msk /*!<Filter bit 17 */
  3422. #define CAN_F5R1_FB18_Pos (18U)
  3423. #define CAN_F5R1_FB18_Msk (0x1U << CAN_F5R1_FB18_Pos) /*!< 0x00040000 */
  3424. #define CAN_F5R1_FB18 CAN_F5R1_FB18_Msk /*!<Filter bit 18 */
  3425. #define CAN_F5R1_FB19_Pos (19U)
  3426. #define CAN_F5R1_FB19_Msk (0x1U << CAN_F5R1_FB19_Pos) /*!< 0x00080000 */
  3427. #define CAN_F5R1_FB19 CAN_F5R1_FB19_Msk /*!<Filter bit 19 */
  3428. #define CAN_F5R1_FB20_Pos (20U)
  3429. #define CAN_F5R1_FB20_Msk (0x1U << CAN_F5R1_FB20_Pos) /*!< 0x00100000 */
  3430. #define CAN_F5R1_FB20 CAN_F5R1_FB20_Msk /*!<Filter bit 20 */
  3431. #define CAN_F5R1_FB21_Pos (21U)
  3432. #define CAN_F5R1_FB21_Msk (0x1U << CAN_F5R1_FB21_Pos) /*!< 0x00200000 */
  3433. #define CAN_F5R1_FB21 CAN_F5R1_FB21_Msk /*!<Filter bit 21 */
  3434. #define CAN_F5R1_FB22_Pos (22U)
  3435. #define CAN_F5R1_FB22_Msk (0x1U << CAN_F5R1_FB22_Pos) /*!< 0x00400000 */
  3436. #define CAN_F5R1_FB22 CAN_F5R1_FB22_Msk /*!<Filter bit 22 */
  3437. #define CAN_F5R1_FB23_Pos (23U)
  3438. #define CAN_F5R1_FB23_Msk (0x1U << CAN_F5R1_FB23_Pos) /*!< 0x00800000 */
  3439. #define CAN_F5R1_FB23 CAN_F5R1_FB23_Msk /*!<Filter bit 23 */
  3440. #define CAN_F5R1_FB24_Pos (24U)
  3441. #define CAN_F5R1_FB24_Msk (0x1U << CAN_F5R1_FB24_Pos) /*!< 0x01000000 */
  3442. #define CAN_F5R1_FB24 CAN_F5R1_FB24_Msk /*!<Filter bit 24 */
  3443. #define CAN_F5R1_FB25_Pos (25U)
  3444. #define CAN_F5R1_FB25_Msk (0x1U << CAN_F5R1_FB25_Pos) /*!< 0x02000000 */
  3445. #define CAN_F5R1_FB25 CAN_F5R1_FB25_Msk /*!<Filter bit 25 */
  3446. #define CAN_F5R1_FB26_Pos (26U)
  3447. #define CAN_F5R1_FB26_Msk (0x1U << CAN_F5R1_FB26_Pos) /*!< 0x04000000 */
  3448. #define CAN_F5R1_FB26 CAN_F5R1_FB26_Msk /*!<Filter bit 26 */
  3449. #define CAN_F5R1_FB27_Pos (27U)
  3450. #define CAN_F5R1_FB27_Msk (0x1U << CAN_F5R1_FB27_Pos) /*!< 0x08000000 */
  3451. #define CAN_F5R1_FB27 CAN_F5R1_FB27_Msk /*!<Filter bit 27 */
  3452. #define CAN_F5R1_FB28_Pos (28U)
  3453. #define CAN_F5R1_FB28_Msk (0x1U << CAN_F5R1_FB28_Pos) /*!< 0x10000000 */
  3454. #define CAN_F5R1_FB28 CAN_F5R1_FB28_Msk /*!<Filter bit 28 */
  3455. #define CAN_F5R1_FB29_Pos (29U)
  3456. #define CAN_F5R1_FB29_Msk (0x1U << CAN_F5R1_FB29_Pos) /*!< 0x20000000 */
  3457. #define CAN_F5R1_FB29 CAN_F5R1_FB29_Msk /*!<Filter bit 29 */
  3458. #define CAN_F5R1_FB30_Pos (30U)
  3459. #define CAN_F5R1_FB30_Msk (0x1U << CAN_F5R1_FB30_Pos) /*!< 0x40000000 */
  3460. #define CAN_F5R1_FB30 CAN_F5R1_FB30_Msk /*!<Filter bit 30 */
  3461. #define CAN_F5R1_FB31_Pos (31U)
  3462. #define CAN_F5R1_FB31_Msk (0x1U << CAN_F5R1_FB31_Pos) /*!< 0x80000000 */
  3463. #define CAN_F5R1_FB31 CAN_F5R1_FB31_Msk /*!<Filter bit 31 */
  3464. /******************* Bit definition for CAN_F6R1 register *******************/
  3465. #define CAN_F6R1_FB0_Pos (0U)
  3466. #define CAN_F6R1_FB0_Msk (0x1U << CAN_F6R1_FB0_Pos) /*!< 0x00000001 */
  3467. #define CAN_F6R1_FB0 CAN_F6R1_FB0_Msk /*!<Filter bit 0 */
  3468. #define CAN_F6R1_FB1_Pos (1U)
  3469. #define CAN_F6R1_FB1_Msk (0x1U << CAN_F6R1_FB1_Pos) /*!< 0x00000002 */
  3470. #define CAN_F6R1_FB1 CAN_F6R1_FB1_Msk /*!<Filter bit 1 */
  3471. #define CAN_F6R1_FB2_Pos (2U)
  3472. #define CAN_F6R1_FB2_Msk (0x1U << CAN_F6R1_FB2_Pos) /*!< 0x00000004 */
  3473. #define CAN_F6R1_FB2 CAN_F6R1_FB2_Msk /*!<Filter bit 2 */
  3474. #define CAN_F6R1_FB3_Pos (3U)
  3475. #define CAN_F6R1_FB3_Msk (0x1U << CAN_F6R1_FB3_Pos) /*!< 0x00000008 */
  3476. #define CAN_F6R1_FB3 CAN_F6R1_FB3_Msk /*!<Filter bit 3 */
  3477. #define CAN_F6R1_FB4_Pos (4U)
  3478. #define CAN_F6R1_FB4_Msk (0x1U << CAN_F6R1_FB4_Pos) /*!< 0x00000010 */
  3479. #define CAN_F6R1_FB4 CAN_F6R1_FB4_Msk /*!<Filter bit 4 */
  3480. #define CAN_F6R1_FB5_Pos (5U)
  3481. #define CAN_F6R1_FB5_Msk (0x1U << CAN_F6R1_FB5_Pos) /*!< 0x00000020 */
  3482. #define CAN_F6R1_FB5 CAN_F6R1_FB5_Msk /*!<Filter bit 5 */
  3483. #define CAN_F6R1_FB6_Pos (6U)
  3484. #define CAN_F6R1_FB6_Msk (0x1U << CAN_F6R1_FB6_Pos) /*!< 0x00000040 */
  3485. #define CAN_F6R1_FB6 CAN_F6R1_FB6_Msk /*!<Filter bit 6 */
  3486. #define CAN_F6R1_FB7_Pos (7U)
  3487. #define CAN_F6R1_FB7_Msk (0x1U << CAN_F6R1_FB7_Pos) /*!< 0x00000080 */
  3488. #define CAN_F6R1_FB7 CAN_F6R1_FB7_Msk /*!<Filter bit 7 */
  3489. #define CAN_F6R1_FB8_Pos (8U)
  3490. #define CAN_F6R1_FB8_Msk (0x1U << CAN_F6R1_FB8_Pos) /*!< 0x00000100 */
  3491. #define CAN_F6R1_FB8 CAN_F6R1_FB8_Msk /*!<Filter bit 8 */
  3492. #define CAN_F6R1_FB9_Pos (9U)
  3493. #define CAN_F6R1_FB9_Msk (0x1U << CAN_F6R1_FB9_Pos) /*!< 0x00000200 */
  3494. #define CAN_F6R1_FB9 CAN_F6R1_FB9_Msk /*!<Filter bit 9 */
  3495. #define CAN_F6R1_FB10_Pos (10U)
  3496. #define CAN_F6R1_FB10_Msk (0x1U << CAN_F6R1_FB10_Pos) /*!< 0x00000400 */
  3497. #define CAN_F6R1_FB10 CAN_F6R1_FB10_Msk /*!<Filter bit 10 */
  3498. #define CAN_F6R1_FB11_Pos (11U)
  3499. #define CAN_F6R1_FB11_Msk (0x1U << CAN_F6R1_FB11_Pos) /*!< 0x00000800 */
  3500. #define CAN_F6R1_FB11 CAN_F6R1_FB11_Msk /*!<Filter bit 11 */
  3501. #define CAN_F6R1_FB12_Pos (12U)
  3502. #define CAN_F6R1_FB12_Msk (0x1U << CAN_F6R1_FB12_Pos) /*!< 0x00001000 */
  3503. #define CAN_F6R1_FB12 CAN_F6R1_FB12_Msk /*!<Filter bit 12 */
  3504. #define CAN_F6R1_FB13_Pos (13U)
  3505. #define CAN_F6R1_FB13_Msk (0x1U << CAN_F6R1_FB13_Pos) /*!< 0x00002000 */
  3506. #define CAN_F6R1_FB13 CAN_F6R1_FB13_Msk /*!<Filter bit 13 */
  3507. #define CAN_F6R1_FB14_Pos (14U)
  3508. #define CAN_F6R1_FB14_Msk (0x1U << CAN_F6R1_FB14_Pos) /*!< 0x00004000 */
  3509. #define CAN_F6R1_FB14 CAN_F6R1_FB14_Msk /*!<Filter bit 14 */
  3510. #define CAN_F6R1_FB15_Pos (15U)
  3511. #define CAN_F6R1_FB15_Msk (0x1U << CAN_F6R1_FB15_Pos) /*!< 0x00008000 */
  3512. #define CAN_F6R1_FB15 CAN_F6R1_FB15_Msk /*!<Filter bit 15 */
  3513. #define CAN_F6R1_FB16_Pos (16U)
  3514. #define CAN_F6R1_FB16_Msk (0x1U << CAN_F6R1_FB16_Pos) /*!< 0x00010000 */
  3515. #define CAN_F6R1_FB16 CAN_F6R1_FB16_Msk /*!<Filter bit 16 */
  3516. #define CAN_F6R1_FB17_Pos (17U)
  3517. #define CAN_F6R1_FB17_Msk (0x1U << CAN_F6R1_FB17_Pos) /*!< 0x00020000 */
  3518. #define CAN_F6R1_FB17 CAN_F6R1_FB17_Msk /*!<Filter bit 17 */
  3519. #define CAN_F6R1_FB18_Pos (18U)
  3520. #define CAN_F6R1_FB18_Msk (0x1U << CAN_F6R1_FB18_Pos) /*!< 0x00040000 */
  3521. #define CAN_F6R1_FB18 CAN_F6R1_FB18_Msk /*!<Filter bit 18 */
  3522. #define CAN_F6R1_FB19_Pos (19U)
  3523. #define CAN_F6R1_FB19_Msk (0x1U << CAN_F6R1_FB19_Pos) /*!< 0x00080000 */
  3524. #define CAN_F6R1_FB19 CAN_F6R1_FB19_Msk /*!<Filter bit 19 */
  3525. #define CAN_F6R1_FB20_Pos (20U)
  3526. #define CAN_F6R1_FB20_Msk (0x1U << CAN_F6R1_FB20_Pos) /*!< 0x00100000 */
  3527. #define CAN_F6R1_FB20 CAN_F6R1_FB20_Msk /*!<Filter bit 20 */
  3528. #define CAN_F6R1_FB21_Pos (21U)
  3529. #define CAN_F6R1_FB21_Msk (0x1U << CAN_F6R1_FB21_Pos) /*!< 0x00200000 */
  3530. #define CAN_F6R1_FB21 CAN_F6R1_FB21_Msk /*!<Filter bit 21 */
  3531. #define CAN_F6R1_FB22_Pos (22U)
  3532. #define CAN_F6R1_FB22_Msk (0x1U << CAN_F6R1_FB22_Pos) /*!< 0x00400000 */
  3533. #define CAN_F6R1_FB22 CAN_F6R1_FB22_Msk /*!<Filter bit 22 */
  3534. #define CAN_F6R1_FB23_Pos (23U)
  3535. #define CAN_F6R1_FB23_Msk (0x1U << CAN_F6R1_FB23_Pos) /*!< 0x00800000 */
  3536. #define CAN_F6R1_FB23 CAN_F6R1_FB23_Msk /*!<Filter bit 23 */
  3537. #define CAN_F6R1_FB24_Pos (24U)
  3538. #define CAN_F6R1_FB24_Msk (0x1U << CAN_F6R1_FB24_Pos) /*!< 0x01000000 */
  3539. #define CAN_F6R1_FB24 CAN_F6R1_FB24_Msk /*!<Filter bit 24 */
  3540. #define CAN_F6R1_FB25_Pos (25U)
  3541. #define CAN_F6R1_FB25_Msk (0x1U << CAN_F6R1_FB25_Pos) /*!< 0x02000000 */
  3542. #define CAN_F6R1_FB25 CAN_F6R1_FB25_Msk /*!<Filter bit 25 */
  3543. #define CAN_F6R1_FB26_Pos (26U)
  3544. #define CAN_F6R1_FB26_Msk (0x1U << CAN_F6R1_FB26_Pos) /*!< 0x04000000 */
  3545. #define CAN_F6R1_FB26 CAN_F6R1_FB26_Msk /*!<Filter bit 26 */
  3546. #define CAN_F6R1_FB27_Pos (27U)
  3547. #define CAN_F6R1_FB27_Msk (0x1U << CAN_F6R1_FB27_Pos) /*!< 0x08000000 */
  3548. #define CAN_F6R1_FB27 CAN_F6R1_FB27_Msk /*!<Filter bit 27 */
  3549. #define CAN_F6R1_FB28_Pos (28U)
  3550. #define CAN_F6R1_FB28_Msk (0x1U << CAN_F6R1_FB28_Pos) /*!< 0x10000000 */
  3551. #define CAN_F6R1_FB28 CAN_F6R1_FB28_Msk /*!<Filter bit 28 */
  3552. #define CAN_F6R1_FB29_Pos (29U)
  3553. #define CAN_F6R1_FB29_Msk (0x1U << CAN_F6R1_FB29_Pos) /*!< 0x20000000 */
  3554. #define CAN_F6R1_FB29 CAN_F6R1_FB29_Msk /*!<Filter bit 29 */
  3555. #define CAN_F6R1_FB30_Pos (30U)
  3556. #define CAN_F6R1_FB30_Msk (0x1U << CAN_F6R1_FB30_Pos) /*!< 0x40000000 */
  3557. #define CAN_F6R1_FB30 CAN_F6R1_FB30_Msk /*!<Filter bit 30 */
  3558. #define CAN_F6R1_FB31_Pos (31U)
  3559. #define CAN_F6R1_FB31_Msk (0x1U << CAN_F6R1_FB31_Pos) /*!< 0x80000000 */
  3560. #define CAN_F6R1_FB31 CAN_F6R1_FB31_Msk /*!<Filter bit 31 */
  3561. /******************* Bit definition for CAN_F7R1 register *******************/
  3562. #define CAN_F7R1_FB0_Pos (0U)
  3563. #define CAN_F7R1_FB0_Msk (0x1U << CAN_F7R1_FB0_Pos) /*!< 0x00000001 */
  3564. #define CAN_F7R1_FB0 CAN_F7R1_FB0_Msk /*!<Filter bit 0 */
  3565. #define CAN_F7R1_FB1_Pos (1U)
  3566. #define CAN_F7R1_FB1_Msk (0x1U << CAN_F7R1_FB1_Pos) /*!< 0x00000002 */
  3567. #define CAN_F7R1_FB1 CAN_F7R1_FB1_Msk /*!<Filter bit 1 */
  3568. #define CAN_F7R1_FB2_Pos (2U)
  3569. #define CAN_F7R1_FB2_Msk (0x1U << CAN_F7R1_FB2_Pos) /*!< 0x00000004 */
  3570. #define CAN_F7R1_FB2 CAN_F7R1_FB2_Msk /*!<Filter bit 2 */
  3571. #define CAN_F7R1_FB3_Pos (3U)
  3572. #define CAN_F7R1_FB3_Msk (0x1U << CAN_F7R1_FB3_Pos) /*!< 0x00000008 */
  3573. #define CAN_F7R1_FB3 CAN_F7R1_FB3_Msk /*!<Filter bit 3 */
  3574. #define CAN_F7R1_FB4_Pos (4U)
  3575. #define CAN_F7R1_FB4_Msk (0x1U << CAN_F7R1_FB4_Pos) /*!< 0x00000010 */
  3576. #define CAN_F7R1_FB4 CAN_F7R1_FB4_Msk /*!<Filter bit 4 */
  3577. #define CAN_F7R1_FB5_Pos (5U)
  3578. #define CAN_F7R1_FB5_Msk (0x1U << CAN_F7R1_FB5_Pos) /*!< 0x00000020 */
  3579. #define CAN_F7R1_FB5 CAN_F7R1_FB5_Msk /*!<Filter bit 5 */
  3580. #define CAN_F7R1_FB6_Pos (6U)
  3581. #define CAN_F7R1_FB6_Msk (0x1U << CAN_F7R1_FB6_Pos) /*!< 0x00000040 */
  3582. #define CAN_F7R1_FB6 CAN_F7R1_FB6_Msk /*!<Filter bit 6 */
  3583. #define CAN_F7R1_FB7_Pos (7U)
  3584. #define CAN_F7R1_FB7_Msk (0x1U << CAN_F7R1_FB7_Pos) /*!< 0x00000080 */
  3585. #define CAN_F7R1_FB7 CAN_F7R1_FB7_Msk /*!<Filter bit 7 */
  3586. #define CAN_F7R1_FB8_Pos (8U)
  3587. #define CAN_F7R1_FB8_Msk (0x1U << CAN_F7R1_FB8_Pos) /*!< 0x00000100 */
  3588. #define CAN_F7R1_FB8 CAN_F7R1_FB8_Msk /*!<Filter bit 8 */
  3589. #define CAN_F7R1_FB9_Pos (9U)
  3590. #define CAN_F7R1_FB9_Msk (0x1U << CAN_F7R1_FB9_Pos) /*!< 0x00000200 */
  3591. #define CAN_F7R1_FB9 CAN_F7R1_FB9_Msk /*!<Filter bit 9 */
  3592. #define CAN_F7R1_FB10_Pos (10U)
  3593. #define CAN_F7R1_FB10_Msk (0x1U << CAN_F7R1_FB10_Pos) /*!< 0x00000400 */
  3594. #define CAN_F7R1_FB10 CAN_F7R1_FB10_Msk /*!<Filter bit 10 */
  3595. #define CAN_F7R1_FB11_Pos (11U)
  3596. #define CAN_F7R1_FB11_Msk (0x1U << CAN_F7R1_FB11_Pos) /*!< 0x00000800 */
  3597. #define CAN_F7R1_FB11 CAN_F7R1_FB11_Msk /*!<Filter bit 11 */
  3598. #define CAN_F7R1_FB12_Pos (12U)
  3599. #define CAN_F7R1_FB12_Msk (0x1U << CAN_F7R1_FB12_Pos) /*!< 0x00001000 */
  3600. #define CAN_F7R1_FB12 CAN_F7R1_FB12_Msk /*!<Filter bit 12 */
  3601. #define CAN_F7R1_FB13_Pos (13U)
  3602. #define CAN_F7R1_FB13_Msk (0x1U << CAN_F7R1_FB13_Pos) /*!< 0x00002000 */
  3603. #define CAN_F7R1_FB13 CAN_F7R1_FB13_Msk /*!<Filter bit 13 */
  3604. #define CAN_F7R1_FB14_Pos (14U)
  3605. #define CAN_F7R1_FB14_Msk (0x1U << CAN_F7R1_FB14_Pos) /*!< 0x00004000 */
  3606. #define CAN_F7R1_FB14 CAN_F7R1_FB14_Msk /*!<Filter bit 14 */
  3607. #define CAN_F7R1_FB15_Pos (15U)
  3608. #define CAN_F7R1_FB15_Msk (0x1U << CAN_F7R1_FB15_Pos) /*!< 0x00008000 */
  3609. #define CAN_F7R1_FB15 CAN_F7R1_FB15_Msk /*!<Filter bit 15 */
  3610. #define CAN_F7R1_FB16_Pos (16U)
  3611. #define CAN_F7R1_FB16_Msk (0x1U << CAN_F7R1_FB16_Pos) /*!< 0x00010000 */
  3612. #define CAN_F7R1_FB16 CAN_F7R1_FB16_Msk /*!<Filter bit 16 */
  3613. #define CAN_F7R1_FB17_Pos (17U)
  3614. #define CAN_F7R1_FB17_Msk (0x1U << CAN_F7R1_FB17_Pos) /*!< 0x00020000 */
  3615. #define CAN_F7R1_FB17 CAN_F7R1_FB17_Msk /*!<Filter bit 17 */
  3616. #define CAN_F7R1_FB18_Pos (18U)
  3617. #define CAN_F7R1_FB18_Msk (0x1U << CAN_F7R1_FB18_Pos) /*!< 0x00040000 */
  3618. #define CAN_F7R1_FB18 CAN_F7R1_FB18_Msk /*!<Filter bit 18 */
  3619. #define CAN_F7R1_FB19_Pos (19U)
  3620. #define CAN_F7R1_FB19_Msk (0x1U << CAN_F7R1_FB19_Pos) /*!< 0x00080000 */
  3621. #define CAN_F7R1_FB19 CAN_F7R1_FB19_Msk /*!<Filter bit 19 */
  3622. #define CAN_F7R1_FB20_Pos (20U)
  3623. #define CAN_F7R1_FB20_Msk (0x1U << CAN_F7R1_FB20_Pos) /*!< 0x00100000 */
  3624. #define CAN_F7R1_FB20 CAN_F7R1_FB20_Msk /*!<Filter bit 20 */
  3625. #define CAN_F7R1_FB21_Pos (21U)
  3626. #define CAN_F7R1_FB21_Msk (0x1U << CAN_F7R1_FB21_Pos) /*!< 0x00200000 */
  3627. #define CAN_F7R1_FB21 CAN_F7R1_FB21_Msk /*!<Filter bit 21 */
  3628. #define CAN_F7R1_FB22_Pos (22U)
  3629. #define CAN_F7R1_FB22_Msk (0x1U << CAN_F7R1_FB22_Pos) /*!< 0x00400000 */
  3630. #define CAN_F7R1_FB22 CAN_F7R1_FB22_Msk /*!<Filter bit 22 */
  3631. #define CAN_F7R1_FB23_Pos (23U)
  3632. #define CAN_F7R1_FB23_Msk (0x1U << CAN_F7R1_FB23_Pos) /*!< 0x00800000 */
  3633. #define CAN_F7R1_FB23 CAN_F7R1_FB23_Msk /*!<Filter bit 23 */
  3634. #define CAN_F7R1_FB24_Pos (24U)
  3635. #define CAN_F7R1_FB24_Msk (0x1U << CAN_F7R1_FB24_Pos) /*!< 0x01000000 */
  3636. #define CAN_F7R1_FB24 CAN_F7R1_FB24_Msk /*!<Filter bit 24 */
  3637. #define CAN_F7R1_FB25_Pos (25U)
  3638. #define CAN_F7R1_FB25_Msk (0x1U << CAN_F7R1_FB25_Pos) /*!< 0x02000000 */
  3639. #define CAN_F7R1_FB25 CAN_F7R1_FB25_Msk /*!<Filter bit 25 */
  3640. #define CAN_F7R1_FB26_Pos (26U)
  3641. #define CAN_F7R1_FB26_Msk (0x1U << CAN_F7R1_FB26_Pos) /*!< 0x04000000 */
  3642. #define CAN_F7R1_FB26 CAN_F7R1_FB26_Msk /*!<Filter bit 26 */
  3643. #define CAN_F7R1_FB27_Pos (27U)
  3644. #define CAN_F7R1_FB27_Msk (0x1U << CAN_F7R1_FB27_Pos) /*!< 0x08000000 */
  3645. #define CAN_F7R1_FB27 CAN_F7R1_FB27_Msk /*!<Filter bit 27 */
  3646. #define CAN_F7R1_FB28_Pos (28U)
  3647. #define CAN_F7R1_FB28_Msk (0x1U << CAN_F7R1_FB28_Pos) /*!< 0x10000000 */
  3648. #define CAN_F7R1_FB28 CAN_F7R1_FB28_Msk /*!<Filter bit 28 */
  3649. #define CAN_F7R1_FB29_Pos (29U)
  3650. #define CAN_F7R1_FB29_Msk (0x1U << CAN_F7R1_FB29_Pos) /*!< 0x20000000 */
  3651. #define CAN_F7R1_FB29 CAN_F7R1_FB29_Msk /*!<Filter bit 29 */
  3652. #define CAN_F7R1_FB30_Pos (30U)
  3653. #define CAN_F7R1_FB30_Msk (0x1U << CAN_F7R1_FB30_Pos) /*!< 0x40000000 */
  3654. #define CAN_F7R1_FB30 CAN_F7R1_FB30_Msk /*!<Filter bit 30 */
  3655. #define CAN_F7R1_FB31_Pos (31U)
  3656. #define CAN_F7R1_FB31_Msk (0x1U << CAN_F7R1_FB31_Pos) /*!< 0x80000000 */
  3657. #define CAN_F7R1_FB31 CAN_F7R1_FB31_Msk /*!<Filter bit 31 */
  3658. /******************* Bit definition for CAN_F8R1 register *******************/
  3659. #define CAN_F8R1_FB0_Pos (0U)
  3660. #define CAN_F8R1_FB0_Msk (0x1U << CAN_F8R1_FB0_Pos) /*!< 0x00000001 */
  3661. #define CAN_F8R1_FB0 CAN_F8R1_FB0_Msk /*!<Filter bit 0 */
  3662. #define CAN_F8R1_FB1_Pos (1U)
  3663. #define CAN_F8R1_FB1_Msk (0x1U << CAN_F8R1_FB1_Pos) /*!< 0x00000002 */
  3664. #define CAN_F8R1_FB1 CAN_F8R1_FB1_Msk /*!<Filter bit 1 */
  3665. #define CAN_F8R1_FB2_Pos (2U)
  3666. #define CAN_F8R1_FB2_Msk (0x1U << CAN_F8R1_FB2_Pos) /*!< 0x00000004 */
  3667. #define CAN_F8R1_FB2 CAN_F8R1_FB2_Msk /*!<Filter bit 2 */
  3668. #define CAN_F8R1_FB3_Pos (3U)
  3669. #define CAN_F8R1_FB3_Msk (0x1U << CAN_F8R1_FB3_Pos) /*!< 0x00000008 */
  3670. #define CAN_F8R1_FB3 CAN_F8R1_FB3_Msk /*!<Filter bit 3 */
  3671. #define CAN_F8R1_FB4_Pos (4U)
  3672. #define CAN_F8R1_FB4_Msk (0x1U << CAN_F8R1_FB4_Pos) /*!< 0x00000010 */
  3673. #define CAN_F8R1_FB4 CAN_F8R1_FB4_Msk /*!<Filter bit 4 */
  3674. #define CAN_F8R1_FB5_Pos (5U)
  3675. #define CAN_F8R1_FB5_Msk (0x1U << CAN_F8R1_FB5_Pos) /*!< 0x00000020 */
  3676. #define CAN_F8R1_FB5 CAN_F8R1_FB5_Msk /*!<Filter bit 5 */
  3677. #define CAN_F8R1_FB6_Pos (6U)
  3678. #define CAN_F8R1_FB6_Msk (0x1U << CAN_F8R1_FB6_Pos) /*!< 0x00000040 */
  3679. #define CAN_F8R1_FB6 CAN_F8R1_FB6_Msk /*!<Filter bit 6 */
  3680. #define CAN_F8R1_FB7_Pos (7U)
  3681. #define CAN_F8R1_FB7_Msk (0x1U << CAN_F8R1_FB7_Pos) /*!< 0x00000080 */
  3682. #define CAN_F8R1_FB7 CAN_F8R1_FB7_Msk /*!<Filter bit 7 */
  3683. #define CAN_F8R1_FB8_Pos (8U)
  3684. #define CAN_F8R1_FB8_Msk (0x1U << CAN_F8R1_FB8_Pos) /*!< 0x00000100 */
  3685. #define CAN_F8R1_FB8 CAN_F8R1_FB8_Msk /*!<Filter bit 8 */
  3686. #define CAN_F8R1_FB9_Pos (9U)
  3687. #define CAN_F8R1_FB9_Msk (0x1U << CAN_F8R1_FB9_Pos) /*!< 0x00000200 */
  3688. #define CAN_F8R1_FB9 CAN_F8R1_FB9_Msk /*!<Filter bit 9 */
  3689. #define CAN_F8R1_FB10_Pos (10U)
  3690. #define CAN_F8R1_FB10_Msk (0x1U << CAN_F8R1_FB10_Pos) /*!< 0x00000400 */
  3691. #define CAN_F8R1_FB10 CAN_F8R1_FB10_Msk /*!<Filter bit 10 */
  3692. #define CAN_F8R1_FB11_Pos (11U)
  3693. #define CAN_F8R1_FB11_Msk (0x1U << CAN_F8R1_FB11_Pos) /*!< 0x00000800 */
  3694. #define CAN_F8R1_FB11 CAN_F8R1_FB11_Msk /*!<Filter bit 11 */
  3695. #define CAN_F8R1_FB12_Pos (12U)
  3696. #define CAN_F8R1_FB12_Msk (0x1U << CAN_F8R1_FB12_Pos) /*!< 0x00001000 */
  3697. #define CAN_F8R1_FB12 CAN_F8R1_FB12_Msk /*!<Filter bit 12 */
  3698. #define CAN_F8R1_FB13_Pos (13U)
  3699. #define CAN_F8R1_FB13_Msk (0x1U << CAN_F8R1_FB13_Pos) /*!< 0x00002000 */
  3700. #define CAN_F8R1_FB13 CAN_F8R1_FB13_Msk /*!<Filter bit 13 */
  3701. #define CAN_F8R1_FB14_Pos (14U)
  3702. #define CAN_F8R1_FB14_Msk (0x1U << CAN_F8R1_FB14_Pos) /*!< 0x00004000 */
  3703. #define CAN_F8R1_FB14 CAN_F8R1_FB14_Msk /*!<Filter bit 14 */
  3704. #define CAN_F8R1_FB15_Pos (15U)
  3705. #define CAN_F8R1_FB15_Msk (0x1U << CAN_F8R1_FB15_Pos) /*!< 0x00008000 */
  3706. #define CAN_F8R1_FB15 CAN_F8R1_FB15_Msk /*!<Filter bit 15 */
  3707. #define CAN_F8R1_FB16_Pos (16U)
  3708. #define CAN_F8R1_FB16_Msk (0x1U << CAN_F8R1_FB16_Pos) /*!< 0x00010000 */
  3709. #define CAN_F8R1_FB16 CAN_F8R1_FB16_Msk /*!<Filter bit 16 */
  3710. #define CAN_F8R1_FB17_Pos (17U)
  3711. #define CAN_F8R1_FB17_Msk (0x1U << CAN_F8R1_FB17_Pos) /*!< 0x00020000 */
  3712. #define CAN_F8R1_FB17 CAN_F8R1_FB17_Msk /*!<Filter bit 17 */
  3713. #define CAN_F8R1_FB18_Pos (18U)
  3714. #define CAN_F8R1_FB18_Msk (0x1U << CAN_F8R1_FB18_Pos) /*!< 0x00040000 */
  3715. #define CAN_F8R1_FB18 CAN_F8R1_FB18_Msk /*!<Filter bit 18 */
  3716. #define CAN_F8R1_FB19_Pos (19U)
  3717. #define CAN_F8R1_FB19_Msk (0x1U << CAN_F8R1_FB19_Pos) /*!< 0x00080000 */
  3718. #define CAN_F8R1_FB19 CAN_F8R1_FB19_Msk /*!<Filter bit 19 */
  3719. #define CAN_F8R1_FB20_Pos (20U)
  3720. #define CAN_F8R1_FB20_Msk (0x1U << CAN_F8R1_FB20_Pos) /*!< 0x00100000 */
  3721. #define CAN_F8R1_FB20 CAN_F8R1_FB20_Msk /*!<Filter bit 20 */
  3722. #define CAN_F8R1_FB21_Pos (21U)
  3723. #define CAN_F8R1_FB21_Msk (0x1U << CAN_F8R1_FB21_Pos) /*!< 0x00200000 */
  3724. #define CAN_F8R1_FB21 CAN_F8R1_FB21_Msk /*!<Filter bit 21 */
  3725. #define CAN_F8R1_FB22_Pos (22U)
  3726. #define CAN_F8R1_FB22_Msk (0x1U << CAN_F8R1_FB22_Pos) /*!< 0x00400000 */
  3727. #define CAN_F8R1_FB22 CAN_F8R1_FB22_Msk /*!<Filter bit 22 */
  3728. #define CAN_F8R1_FB23_Pos (23U)
  3729. #define CAN_F8R1_FB23_Msk (0x1U << CAN_F8R1_FB23_Pos) /*!< 0x00800000 */
  3730. #define CAN_F8R1_FB23 CAN_F8R1_FB23_Msk /*!<Filter bit 23 */
  3731. #define CAN_F8R1_FB24_Pos (24U)
  3732. #define CAN_F8R1_FB24_Msk (0x1U << CAN_F8R1_FB24_Pos) /*!< 0x01000000 */
  3733. #define CAN_F8R1_FB24 CAN_F8R1_FB24_Msk /*!<Filter bit 24 */
  3734. #define CAN_F8R1_FB25_Pos (25U)
  3735. #define CAN_F8R1_FB25_Msk (0x1U << CAN_F8R1_FB25_Pos) /*!< 0x02000000 */
  3736. #define CAN_F8R1_FB25 CAN_F8R1_FB25_Msk /*!<Filter bit 25 */
  3737. #define CAN_F8R1_FB26_Pos (26U)
  3738. #define CAN_F8R1_FB26_Msk (0x1U << CAN_F8R1_FB26_Pos) /*!< 0x04000000 */
  3739. #define CAN_F8R1_FB26 CAN_F8R1_FB26_Msk /*!<Filter bit 26 */
  3740. #define CAN_F8R1_FB27_Pos (27U)
  3741. #define CAN_F8R1_FB27_Msk (0x1U << CAN_F8R1_FB27_Pos) /*!< 0x08000000 */
  3742. #define CAN_F8R1_FB27 CAN_F8R1_FB27_Msk /*!<Filter bit 27 */
  3743. #define CAN_F8R1_FB28_Pos (28U)
  3744. #define CAN_F8R1_FB28_Msk (0x1U << CAN_F8R1_FB28_Pos) /*!< 0x10000000 */
  3745. #define CAN_F8R1_FB28 CAN_F8R1_FB28_Msk /*!<Filter bit 28 */
  3746. #define CAN_F8R1_FB29_Pos (29U)
  3747. #define CAN_F8R1_FB29_Msk (0x1U << CAN_F8R1_FB29_Pos) /*!< 0x20000000 */
  3748. #define CAN_F8R1_FB29 CAN_F8R1_FB29_Msk /*!<Filter bit 29 */
  3749. #define CAN_F8R1_FB30_Pos (30U)
  3750. #define CAN_F8R1_FB30_Msk (0x1U << CAN_F8R1_FB30_Pos) /*!< 0x40000000 */
  3751. #define CAN_F8R1_FB30 CAN_F8R1_FB30_Msk /*!<Filter bit 30 */
  3752. #define CAN_F8R1_FB31_Pos (31U)
  3753. #define CAN_F8R1_FB31_Msk (0x1U << CAN_F8R1_FB31_Pos) /*!< 0x80000000 */
  3754. #define CAN_F8R1_FB31 CAN_F8R1_FB31_Msk /*!<Filter bit 31 */
  3755. /******************* Bit definition for CAN_F9R1 register *******************/
  3756. #define CAN_F9R1_FB0_Pos (0U)
  3757. #define CAN_F9R1_FB0_Msk (0x1U << CAN_F9R1_FB0_Pos) /*!< 0x00000001 */
  3758. #define CAN_F9R1_FB0 CAN_F9R1_FB0_Msk /*!<Filter bit 0 */
  3759. #define CAN_F9R1_FB1_Pos (1U)
  3760. #define CAN_F9R1_FB1_Msk (0x1U << CAN_F9R1_FB1_Pos) /*!< 0x00000002 */
  3761. #define CAN_F9R1_FB1 CAN_F9R1_FB1_Msk /*!<Filter bit 1 */
  3762. #define CAN_F9R1_FB2_Pos (2U)
  3763. #define CAN_F9R1_FB2_Msk (0x1U << CAN_F9R1_FB2_Pos) /*!< 0x00000004 */
  3764. #define CAN_F9R1_FB2 CAN_F9R1_FB2_Msk /*!<Filter bit 2 */
  3765. #define CAN_F9R1_FB3_Pos (3U)
  3766. #define CAN_F9R1_FB3_Msk (0x1U << CAN_F9R1_FB3_Pos) /*!< 0x00000008 */
  3767. #define CAN_F9R1_FB3 CAN_F9R1_FB3_Msk /*!<Filter bit 3 */
  3768. #define CAN_F9R1_FB4_Pos (4U)
  3769. #define CAN_F9R1_FB4_Msk (0x1U << CAN_F9R1_FB4_Pos) /*!< 0x00000010 */
  3770. #define CAN_F9R1_FB4 CAN_F9R1_FB4_Msk /*!<Filter bit 4 */
  3771. #define CAN_F9R1_FB5_Pos (5U)
  3772. #define CAN_F9R1_FB5_Msk (0x1U << CAN_F9R1_FB5_Pos) /*!< 0x00000020 */
  3773. #define CAN_F9R1_FB5 CAN_F9R1_FB5_Msk /*!<Filter bit 5 */
  3774. #define CAN_F9R1_FB6_Pos (6U)
  3775. #define CAN_F9R1_FB6_Msk (0x1U << CAN_F9R1_FB6_Pos) /*!< 0x00000040 */
  3776. #define CAN_F9R1_FB6 CAN_F9R1_FB6_Msk /*!<Filter bit 6 */
  3777. #define CAN_F9R1_FB7_Pos (7U)
  3778. #define CAN_F9R1_FB7_Msk (0x1U << CAN_F9R1_FB7_Pos) /*!< 0x00000080 */
  3779. #define CAN_F9R1_FB7 CAN_F9R1_FB7_Msk /*!<Filter bit 7 */
  3780. #define CAN_F9R1_FB8_Pos (8U)
  3781. #define CAN_F9R1_FB8_Msk (0x1U << CAN_F9R1_FB8_Pos) /*!< 0x00000100 */
  3782. #define CAN_F9R1_FB8 CAN_F9R1_FB8_Msk /*!<Filter bit 8 */
  3783. #define CAN_F9R1_FB9_Pos (9U)
  3784. #define CAN_F9R1_FB9_Msk (0x1U << CAN_F9R1_FB9_Pos) /*!< 0x00000200 */
  3785. #define CAN_F9R1_FB9 CAN_F9R1_FB9_Msk /*!<Filter bit 9 */
  3786. #define CAN_F9R1_FB10_Pos (10U)
  3787. #define CAN_F9R1_FB10_Msk (0x1U << CAN_F9R1_FB10_Pos) /*!< 0x00000400 */
  3788. #define CAN_F9R1_FB10 CAN_F9R1_FB10_Msk /*!<Filter bit 10 */
  3789. #define CAN_F9R1_FB11_Pos (11U)
  3790. #define CAN_F9R1_FB11_Msk (0x1U << CAN_F9R1_FB11_Pos) /*!< 0x00000800 */
  3791. #define CAN_F9R1_FB11 CAN_F9R1_FB11_Msk /*!<Filter bit 11 */
  3792. #define CAN_F9R1_FB12_Pos (12U)
  3793. #define CAN_F9R1_FB12_Msk (0x1U << CAN_F9R1_FB12_Pos) /*!< 0x00001000 */
  3794. #define CAN_F9R1_FB12 CAN_F9R1_FB12_Msk /*!<Filter bit 12 */
  3795. #define CAN_F9R1_FB13_Pos (13U)
  3796. #define CAN_F9R1_FB13_Msk (0x1U << CAN_F9R1_FB13_Pos) /*!< 0x00002000 */
  3797. #define CAN_F9R1_FB13 CAN_F9R1_FB13_Msk /*!<Filter bit 13 */
  3798. #define CAN_F9R1_FB14_Pos (14U)
  3799. #define CAN_F9R1_FB14_Msk (0x1U << CAN_F9R1_FB14_Pos) /*!< 0x00004000 */
  3800. #define CAN_F9R1_FB14 CAN_F9R1_FB14_Msk /*!<Filter bit 14 */
  3801. #define CAN_F9R1_FB15_Pos (15U)
  3802. #define CAN_F9R1_FB15_Msk (0x1U << CAN_F9R1_FB15_Pos) /*!< 0x00008000 */
  3803. #define CAN_F9R1_FB15 CAN_F9R1_FB15_Msk /*!<Filter bit 15 */
  3804. #define CAN_F9R1_FB16_Pos (16U)
  3805. #define CAN_F9R1_FB16_Msk (0x1U << CAN_F9R1_FB16_Pos) /*!< 0x00010000 */
  3806. #define CAN_F9R1_FB16 CAN_F9R1_FB16_Msk /*!<Filter bit 16 */
  3807. #define CAN_F9R1_FB17_Pos (17U)
  3808. #define CAN_F9R1_FB17_Msk (0x1U << CAN_F9R1_FB17_Pos) /*!< 0x00020000 */
  3809. #define CAN_F9R1_FB17 CAN_F9R1_FB17_Msk /*!<Filter bit 17 */
  3810. #define CAN_F9R1_FB18_Pos (18U)
  3811. #define CAN_F9R1_FB18_Msk (0x1U << CAN_F9R1_FB18_Pos) /*!< 0x00040000 */
  3812. #define CAN_F9R1_FB18 CAN_F9R1_FB18_Msk /*!<Filter bit 18 */
  3813. #define CAN_F9R1_FB19_Pos (19U)
  3814. #define CAN_F9R1_FB19_Msk (0x1U << CAN_F9R1_FB19_Pos) /*!< 0x00080000 */
  3815. #define CAN_F9R1_FB19 CAN_F9R1_FB19_Msk /*!<Filter bit 19 */
  3816. #define CAN_F9R1_FB20_Pos (20U)
  3817. #define CAN_F9R1_FB20_Msk (0x1U << CAN_F9R1_FB20_Pos) /*!< 0x00100000 */
  3818. #define CAN_F9R1_FB20 CAN_F9R1_FB20_Msk /*!<Filter bit 20 */
  3819. #define CAN_F9R1_FB21_Pos (21U)
  3820. #define CAN_F9R1_FB21_Msk (0x1U << CAN_F9R1_FB21_Pos) /*!< 0x00200000 */
  3821. #define CAN_F9R1_FB21 CAN_F9R1_FB21_Msk /*!<Filter bit 21 */
  3822. #define CAN_F9R1_FB22_Pos (22U)
  3823. #define CAN_F9R1_FB22_Msk (0x1U << CAN_F9R1_FB22_Pos) /*!< 0x00400000 */
  3824. #define CAN_F9R1_FB22 CAN_F9R1_FB22_Msk /*!<Filter bit 22 */
  3825. #define CAN_F9R1_FB23_Pos (23U)
  3826. #define CAN_F9R1_FB23_Msk (0x1U << CAN_F9R1_FB23_Pos) /*!< 0x00800000 */
  3827. #define CAN_F9R1_FB23 CAN_F9R1_FB23_Msk /*!<Filter bit 23 */
  3828. #define CAN_F9R1_FB24_Pos (24U)
  3829. #define CAN_F9R1_FB24_Msk (0x1U << CAN_F9R1_FB24_Pos) /*!< 0x01000000 */
  3830. #define CAN_F9R1_FB24 CAN_F9R1_FB24_Msk /*!<Filter bit 24 */
  3831. #define CAN_F9R1_FB25_Pos (25U)
  3832. #define CAN_F9R1_FB25_Msk (0x1U << CAN_F9R1_FB25_Pos) /*!< 0x02000000 */
  3833. #define CAN_F9R1_FB25 CAN_F9R1_FB25_Msk /*!<Filter bit 25 */
  3834. #define CAN_F9R1_FB26_Pos (26U)
  3835. #define CAN_F9R1_FB26_Msk (0x1U << CAN_F9R1_FB26_Pos) /*!< 0x04000000 */
  3836. #define CAN_F9R1_FB26 CAN_F9R1_FB26_Msk /*!<Filter bit 26 */
  3837. #define CAN_F9R1_FB27_Pos (27U)
  3838. #define CAN_F9R1_FB27_Msk (0x1U << CAN_F9R1_FB27_Pos) /*!< 0x08000000 */
  3839. #define CAN_F9R1_FB27 CAN_F9R1_FB27_Msk /*!<Filter bit 27 */
  3840. #define CAN_F9R1_FB28_Pos (28U)
  3841. #define CAN_F9R1_FB28_Msk (0x1U << CAN_F9R1_FB28_Pos) /*!< 0x10000000 */
  3842. #define CAN_F9R1_FB28 CAN_F9R1_FB28_Msk /*!<Filter bit 28 */
  3843. #define CAN_F9R1_FB29_Pos (29U)
  3844. #define CAN_F9R1_FB29_Msk (0x1U << CAN_F9R1_FB29_Pos) /*!< 0x20000000 */
  3845. #define CAN_F9R1_FB29 CAN_F9R1_FB29_Msk /*!<Filter bit 29 */
  3846. #define CAN_F9R1_FB30_Pos (30U)
  3847. #define CAN_F9R1_FB30_Msk (0x1U << CAN_F9R1_FB30_Pos) /*!< 0x40000000 */
  3848. #define CAN_F9R1_FB30 CAN_F9R1_FB30_Msk /*!<Filter bit 30 */
  3849. #define CAN_F9R1_FB31_Pos (31U)
  3850. #define CAN_F9R1_FB31_Msk (0x1U << CAN_F9R1_FB31_Pos) /*!< 0x80000000 */
  3851. #define CAN_F9R1_FB31 CAN_F9R1_FB31_Msk /*!<Filter bit 31 */
  3852. /******************* Bit definition for CAN_F10R1 register ******************/
  3853. #define CAN_F10R1_FB0_Pos (0U)
  3854. #define CAN_F10R1_FB0_Msk (0x1U << CAN_F10R1_FB0_Pos) /*!< 0x00000001 */
  3855. #define CAN_F10R1_FB0 CAN_F10R1_FB0_Msk /*!<Filter bit 0 */
  3856. #define CAN_F10R1_FB1_Pos (1U)
  3857. #define CAN_F10R1_FB1_Msk (0x1U << CAN_F10R1_FB1_Pos) /*!< 0x00000002 */
  3858. #define CAN_F10R1_FB1 CAN_F10R1_FB1_Msk /*!<Filter bit 1 */
  3859. #define CAN_F10R1_FB2_Pos (2U)
  3860. #define CAN_F10R1_FB2_Msk (0x1U << CAN_F10R1_FB2_Pos) /*!< 0x00000004 */
  3861. #define CAN_F10R1_FB2 CAN_F10R1_FB2_Msk /*!<Filter bit 2 */
  3862. #define CAN_F10R1_FB3_Pos (3U)
  3863. #define CAN_F10R1_FB3_Msk (0x1U << CAN_F10R1_FB3_Pos) /*!< 0x00000008 */
  3864. #define CAN_F10R1_FB3 CAN_F10R1_FB3_Msk /*!<Filter bit 3 */
  3865. #define CAN_F10R1_FB4_Pos (4U)
  3866. #define CAN_F10R1_FB4_Msk (0x1U << CAN_F10R1_FB4_Pos) /*!< 0x00000010 */
  3867. #define CAN_F10R1_FB4 CAN_F10R1_FB4_Msk /*!<Filter bit 4 */
  3868. #define CAN_F10R1_FB5_Pos (5U)
  3869. #define CAN_F10R1_FB5_Msk (0x1U << CAN_F10R1_FB5_Pos) /*!< 0x00000020 */
  3870. #define CAN_F10R1_FB5 CAN_F10R1_FB5_Msk /*!<Filter bit 5 */
  3871. #define CAN_F10R1_FB6_Pos (6U)
  3872. #define CAN_F10R1_FB6_Msk (0x1U << CAN_F10R1_FB6_Pos) /*!< 0x00000040 */
  3873. #define CAN_F10R1_FB6 CAN_F10R1_FB6_Msk /*!<Filter bit 6 */
  3874. #define CAN_F10R1_FB7_Pos (7U)
  3875. #define CAN_F10R1_FB7_Msk (0x1U << CAN_F10R1_FB7_Pos) /*!< 0x00000080 */
  3876. #define CAN_F10R1_FB7 CAN_F10R1_FB7_Msk /*!<Filter bit 7 */
  3877. #define CAN_F10R1_FB8_Pos (8U)
  3878. #define CAN_F10R1_FB8_Msk (0x1U << CAN_F10R1_FB8_Pos) /*!< 0x00000100 */
  3879. #define CAN_F10R1_FB8 CAN_F10R1_FB8_Msk /*!<Filter bit 8 */
  3880. #define CAN_F10R1_FB9_Pos (9U)
  3881. #define CAN_F10R1_FB9_Msk (0x1U << CAN_F10R1_FB9_Pos) /*!< 0x00000200 */
  3882. #define CAN_F10R1_FB9 CAN_F10R1_FB9_Msk /*!<Filter bit 9 */
  3883. #define CAN_F10R1_FB10_Pos (10U)
  3884. #define CAN_F10R1_FB10_Msk (0x1U << CAN_F10R1_FB10_Pos) /*!< 0x00000400 */
  3885. #define CAN_F10R1_FB10 CAN_F10R1_FB10_Msk /*!<Filter bit 10 */
  3886. #define CAN_F10R1_FB11_Pos (11U)
  3887. #define CAN_F10R1_FB11_Msk (0x1U << CAN_F10R1_FB11_Pos) /*!< 0x00000800 */
  3888. #define CAN_F10R1_FB11 CAN_F10R1_FB11_Msk /*!<Filter bit 11 */
  3889. #define CAN_F10R1_FB12_Pos (12U)
  3890. #define CAN_F10R1_FB12_Msk (0x1U << CAN_F10R1_FB12_Pos) /*!< 0x00001000 */
  3891. #define CAN_F10R1_FB12 CAN_F10R1_FB12_Msk /*!<Filter bit 12 */
  3892. #define CAN_F10R1_FB13_Pos (13U)
  3893. #define CAN_F10R1_FB13_Msk (0x1U << CAN_F10R1_FB13_Pos) /*!< 0x00002000 */
  3894. #define CAN_F10R1_FB13 CAN_F10R1_FB13_Msk /*!<Filter bit 13 */
  3895. #define CAN_F10R1_FB14_Pos (14U)
  3896. #define CAN_F10R1_FB14_Msk (0x1U << CAN_F10R1_FB14_Pos) /*!< 0x00004000 */
  3897. #define CAN_F10R1_FB14 CAN_F10R1_FB14_Msk /*!<Filter bit 14 */
  3898. #define CAN_F10R1_FB15_Pos (15U)
  3899. #define CAN_F10R1_FB15_Msk (0x1U << CAN_F10R1_FB15_Pos) /*!< 0x00008000 */
  3900. #define CAN_F10R1_FB15 CAN_F10R1_FB15_Msk /*!<Filter bit 15 */
  3901. #define CAN_F10R1_FB16_Pos (16U)
  3902. #define CAN_F10R1_FB16_Msk (0x1U << CAN_F10R1_FB16_Pos) /*!< 0x00010000 */
  3903. #define CAN_F10R1_FB16 CAN_F10R1_FB16_Msk /*!<Filter bit 16 */
  3904. #define CAN_F10R1_FB17_Pos (17U)
  3905. #define CAN_F10R1_FB17_Msk (0x1U << CAN_F10R1_FB17_Pos) /*!< 0x00020000 */
  3906. #define CAN_F10R1_FB17 CAN_F10R1_FB17_Msk /*!<Filter bit 17 */
  3907. #define CAN_F10R1_FB18_Pos (18U)
  3908. #define CAN_F10R1_FB18_Msk (0x1U << CAN_F10R1_FB18_Pos) /*!< 0x00040000 */
  3909. #define CAN_F10R1_FB18 CAN_F10R1_FB18_Msk /*!<Filter bit 18 */
  3910. #define CAN_F10R1_FB19_Pos (19U)
  3911. #define CAN_F10R1_FB19_Msk (0x1U << CAN_F10R1_FB19_Pos) /*!< 0x00080000 */
  3912. #define CAN_F10R1_FB19 CAN_F10R1_FB19_Msk /*!<Filter bit 19 */
  3913. #define CAN_F10R1_FB20_Pos (20U)
  3914. #define CAN_F10R1_FB20_Msk (0x1U << CAN_F10R1_FB20_Pos) /*!< 0x00100000 */
  3915. #define CAN_F10R1_FB20 CAN_F10R1_FB20_Msk /*!<Filter bit 20 */
  3916. #define CAN_F10R1_FB21_Pos (21U)
  3917. #define CAN_F10R1_FB21_Msk (0x1U << CAN_F10R1_FB21_Pos) /*!< 0x00200000 */
  3918. #define CAN_F10R1_FB21 CAN_F10R1_FB21_Msk /*!<Filter bit 21 */
  3919. #define CAN_F10R1_FB22_Pos (22U)
  3920. #define CAN_F10R1_FB22_Msk (0x1U << CAN_F10R1_FB22_Pos) /*!< 0x00400000 */
  3921. #define CAN_F10R1_FB22 CAN_F10R1_FB22_Msk /*!<Filter bit 22 */
  3922. #define CAN_F10R1_FB23_Pos (23U)
  3923. #define CAN_F10R1_FB23_Msk (0x1U << CAN_F10R1_FB23_Pos) /*!< 0x00800000 */
  3924. #define CAN_F10R1_FB23 CAN_F10R1_FB23_Msk /*!<Filter bit 23 */
  3925. #define CAN_F10R1_FB24_Pos (24U)
  3926. #define CAN_F10R1_FB24_Msk (0x1U << CAN_F10R1_FB24_Pos) /*!< 0x01000000 */
  3927. #define CAN_F10R1_FB24 CAN_F10R1_FB24_Msk /*!<Filter bit 24 */
  3928. #define CAN_F10R1_FB25_Pos (25U)
  3929. #define CAN_F10R1_FB25_Msk (0x1U << CAN_F10R1_FB25_Pos) /*!< 0x02000000 */
  3930. #define CAN_F10R1_FB25 CAN_F10R1_FB25_Msk /*!<Filter bit 25 */
  3931. #define CAN_F10R1_FB26_Pos (26U)
  3932. #define CAN_F10R1_FB26_Msk (0x1U << CAN_F10R1_FB26_Pos) /*!< 0x04000000 */
  3933. #define CAN_F10R1_FB26 CAN_F10R1_FB26_Msk /*!<Filter bit 26 */
  3934. #define CAN_F10R1_FB27_Pos (27U)
  3935. #define CAN_F10R1_FB27_Msk (0x1U << CAN_F10R1_FB27_Pos) /*!< 0x08000000 */
  3936. #define CAN_F10R1_FB27 CAN_F10R1_FB27_Msk /*!<Filter bit 27 */
  3937. #define CAN_F10R1_FB28_Pos (28U)
  3938. #define CAN_F10R1_FB28_Msk (0x1U << CAN_F10R1_FB28_Pos) /*!< 0x10000000 */
  3939. #define CAN_F10R1_FB28 CAN_F10R1_FB28_Msk /*!<Filter bit 28 */
  3940. #define CAN_F10R1_FB29_Pos (29U)
  3941. #define CAN_F10R1_FB29_Msk (0x1U << CAN_F10R1_FB29_Pos) /*!< 0x20000000 */
  3942. #define CAN_F10R1_FB29 CAN_F10R1_FB29_Msk /*!<Filter bit 29 */
  3943. #define CAN_F10R1_FB30_Pos (30U)
  3944. #define CAN_F10R1_FB30_Msk (0x1U << CAN_F10R1_FB30_Pos) /*!< 0x40000000 */
  3945. #define CAN_F10R1_FB30 CAN_F10R1_FB30_Msk /*!<Filter bit 30 */
  3946. #define CAN_F10R1_FB31_Pos (31U)
  3947. #define CAN_F10R1_FB31_Msk (0x1U << CAN_F10R1_FB31_Pos) /*!< 0x80000000 */
  3948. #define CAN_F10R1_FB31 CAN_F10R1_FB31_Msk /*!<Filter bit 31 */
  3949. /******************* Bit definition for CAN_F11R1 register ******************/
  3950. #define CAN_F11R1_FB0_Pos (0U)
  3951. #define CAN_F11R1_FB0_Msk (0x1U << CAN_F11R1_FB0_Pos) /*!< 0x00000001 */
  3952. #define CAN_F11R1_FB0 CAN_F11R1_FB0_Msk /*!<Filter bit 0 */
  3953. #define CAN_F11R1_FB1_Pos (1U)
  3954. #define CAN_F11R1_FB1_Msk (0x1U << CAN_F11R1_FB1_Pos) /*!< 0x00000002 */
  3955. #define CAN_F11R1_FB1 CAN_F11R1_FB1_Msk /*!<Filter bit 1 */
  3956. #define CAN_F11R1_FB2_Pos (2U)
  3957. #define CAN_F11R1_FB2_Msk (0x1U << CAN_F11R1_FB2_Pos) /*!< 0x00000004 */
  3958. #define CAN_F11R1_FB2 CAN_F11R1_FB2_Msk /*!<Filter bit 2 */
  3959. #define CAN_F11R1_FB3_Pos (3U)
  3960. #define CAN_F11R1_FB3_Msk (0x1U << CAN_F11R1_FB3_Pos) /*!< 0x00000008 */
  3961. #define CAN_F11R1_FB3 CAN_F11R1_FB3_Msk /*!<Filter bit 3 */
  3962. #define CAN_F11R1_FB4_Pos (4U)
  3963. #define CAN_F11R1_FB4_Msk (0x1U << CAN_F11R1_FB4_Pos) /*!< 0x00000010 */
  3964. #define CAN_F11R1_FB4 CAN_F11R1_FB4_Msk /*!<Filter bit 4 */
  3965. #define CAN_F11R1_FB5_Pos (5U)
  3966. #define CAN_F11R1_FB5_Msk (0x1U << CAN_F11R1_FB5_Pos) /*!< 0x00000020 */
  3967. #define CAN_F11R1_FB5 CAN_F11R1_FB5_Msk /*!<Filter bit 5 */
  3968. #define CAN_F11R1_FB6_Pos (6U)
  3969. #define CAN_F11R1_FB6_Msk (0x1U << CAN_F11R1_FB6_Pos) /*!< 0x00000040 */
  3970. #define CAN_F11R1_FB6 CAN_F11R1_FB6_Msk /*!<Filter bit 6 */
  3971. #define CAN_F11R1_FB7_Pos (7U)
  3972. #define CAN_F11R1_FB7_Msk (0x1U << CAN_F11R1_FB7_Pos) /*!< 0x00000080 */
  3973. #define CAN_F11R1_FB7 CAN_F11R1_FB7_Msk /*!<Filter bit 7 */
  3974. #define CAN_F11R1_FB8_Pos (8U)
  3975. #define CAN_F11R1_FB8_Msk (0x1U << CAN_F11R1_FB8_Pos) /*!< 0x00000100 */
  3976. #define CAN_F11R1_FB8 CAN_F11R1_FB8_Msk /*!<Filter bit 8 */
  3977. #define CAN_F11R1_FB9_Pos (9U)
  3978. #define CAN_F11R1_FB9_Msk (0x1U << CAN_F11R1_FB9_Pos) /*!< 0x00000200 */
  3979. #define CAN_F11R1_FB9 CAN_F11R1_FB9_Msk /*!<Filter bit 9 */
  3980. #define CAN_F11R1_FB10_Pos (10U)
  3981. #define CAN_F11R1_FB10_Msk (0x1U << CAN_F11R1_FB10_Pos) /*!< 0x00000400 */
  3982. #define CAN_F11R1_FB10 CAN_F11R1_FB10_Msk /*!<Filter bit 10 */
  3983. #define CAN_F11R1_FB11_Pos (11U)
  3984. #define CAN_F11R1_FB11_Msk (0x1U << CAN_F11R1_FB11_Pos) /*!< 0x00000800 */
  3985. #define CAN_F11R1_FB11 CAN_F11R1_FB11_Msk /*!<Filter bit 11 */
  3986. #define CAN_F11R1_FB12_Pos (12U)
  3987. #define CAN_F11R1_FB12_Msk (0x1U << CAN_F11R1_FB12_Pos) /*!< 0x00001000 */
  3988. #define CAN_F11R1_FB12 CAN_F11R1_FB12_Msk /*!<Filter bit 12 */
  3989. #define CAN_F11R1_FB13_Pos (13U)
  3990. #define CAN_F11R1_FB13_Msk (0x1U << CAN_F11R1_FB13_Pos) /*!< 0x00002000 */
  3991. #define CAN_F11R1_FB13 CAN_F11R1_FB13_Msk /*!<Filter bit 13 */
  3992. #define CAN_F11R1_FB14_Pos (14U)
  3993. #define CAN_F11R1_FB14_Msk (0x1U << CAN_F11R1_FB14_Pos) /*!< 0x00004000 */
  3994. #define CAN_F11R1_FB14 CAN_F11R1_FB14_Msk /*!<Filter bit 14 */
  3995. #define CAN_F11R1_FB15_Pos (15U)
  3996. #define CAN_F11R1_FB15_Msk (0x1U << CAN_F11R1_FB15_Pos) /*!< 0x00008000 */
  3997. #define CAN_F11R1_FB15 CAN_F11R1_FB15_Msk /*!<Filter bit 15 */
  3998. #define CAN_F11R1_FB16_Pos (16U)
  3999. #define CAN_F11R1_FB16_Msk (0x1U << CAN_F11R1_FB16_Pos) /*!< 0x00010000 */
  4000. #define CAN_F11R1_FB16 CAN_F11R1_FB16_Msk /*!<Filter bit 16 */
  4001. #define CAN_F11R1_FB17_Pos (17U)
  4002. #define CAN_F11R1_FB17_Msk (0x1U << CAN_F11R1_FB17_Pos) /*!< 0x00020000 */
  4003. #define CAN_F11R1_FB17 CAN_F11R1_FB17_Msk /*!<Filter bit 17 */
  4004. #define CAN_F11R1_FB18_Pos (18U)
  4005. #define CAN_F11R1_FB18_Msk (0x1U << CAN_F11R1_FB18_Pos) /*!< 0x00040000 */
  4006. #define CAN_F11R1_FB18 CAN_F11R1_FB18_Msk /*!<Filter bit 18 */
  4007. #define CAN_F11R1_FB19_Pos (19U)
  4008. #define CAN_F11R1_FB19_Msk (0x1U << CAN_F11R1_FB19_Pos) /*!< 0x00080000 */
  4009. #define CAN_F11R1_FB19 CAN_F11R1_FB19_Msk /*!<Filter bit 19 */
  4010. #define CAN_F11R1_FB20_Pos (20U)
  4011. #define CAN_F11R1_FB20_Msk (0x1U << CAN_F11R1_FB20_Pos) /*!< 0x00100000 */
  4012. #define CAN_F11R1_FB20 CAN_F11R1_FB20_Msk /*!<Filter bit 20 */
  4013. #define CAN_F11R1_FB21_Pos (21U)
  4014. #define CAN_F11R1_FB21_Msk (0x1U << CAN_F11R1_FB21_Pos) /*!< 0x00200000 */
  4015. #define CAN_F11R1_FB21 CAN_F11R1_FB21_Msk /*!<Filter bit 21 */
  4016. #define CAN_F11R1_FB22_Pos (22U)
  4017. #define CAN_F11R1_FB22_Msk (0x1U << CAN_F11R1_FB22_Pos) /*!< 0x00400000 */
  4018. #define CAN_F11R1_FB22 CAN_F11R1_FB22_Msk /*!<Filter bit 22 */
  4019. #define CAN_F11R1_FB23_Pos (23U)
  4020. #define CAN_F11R1_FB23_Msk (0x1U << CAN_F11R1_FB23_Pos) /*!< 0x00800000 */
  4021. #define CAN_F11R1_FB23 CAN_F11R1_FB23_Msk /*!<Filter bit 23 */
  4022. #define CAN_F11R1_FB24_Pos (24U)
  4023. #define CAN_F11R1_FB24_Msk (0x1U << CAN_F11R1_FB24_Pos) /*!< 0x01000000 */
  4024. #define CAN_F11R1_FB24 CAN_F11R1_FB24_Msk /*!<Filter bit 24 */
  4025. #define CAN_F11R1_FB25_Pos (25U)
  4026. #define CAN_F11R1_FB25_Msk (0x1U << CAN_F11R1_FB25_Pos) /*!< 0x02000000 */
  4027. #define CAN_F11R1_FB25 CAN_F11R1_FB25_Msk /*!<Filter bit 25 */
  4028. #define CAN_F11R1_FB26_Pos (26U)
  4029. #define CAN_F11R1_FB26_Msk (0x1U << CAN_F11R1_FB26_Pos) /*!< 0x04000000 */
  4030. #define CAN_F11R1_FB26 CAN_F11R1_FB26_Msk /*!<Filter bit 26 */
  4031. #define CAN_F11R1_FB27_Pos (27U)
  4032. #define CAN_F11R1_FB27_Msk (0x1U << CAN_F11R1_FB27_Pos) /*!< 0x08000000 */
  4033. #define CAN_F11R1_FB27 CAN_F11R1_FB27_Msk /*!<Filter bit 27 */
  4034. #define CAN_F11R1_FB28_Pos (28U)
  4035. #define CAN_F11R1_FB28_Msk (0x1U << CAN_F11R1_FB28_Pos) /*!< 0x10000000 */
  4036. #define CAN_F11R1_FB28 CAN_F11R1_FB28_Msk /*!<Filter bit 28 */
  4037. #define CAN_F11R1_FB29_Pos (29U)
  4038. #define CAN_F11R1_FB29_Msk (0x1U << CAN_F11R1_FB29_Pos) /*!< 0x20000000 */
  4039. #define CAN_F11R1_FB29 CAN_F11R1_FB29_Msk /*!<Filter bit 29 */
  4040. #define CAN_F11R1_FB30_Pos (30U)
  4041. #define CAN_F11R1_FB30_Msk (0x1U << CAN_F11R1_FB30_Pos) /*!< 0x40000000 */
  4042. #define CAN_F11R1_FB30 CAN_F11R1_FB30_Msk /*!<Filter bit 30 */
  4043. #define CAN_F11R1_FB31_Pos (31U)
  4044. #define CAN_F11R1_FB31_Msk (0x1U << CAN_F11R1_FB31_Pos) /*!< 0x80000000 */
  4045. #define CAN_F11R1_FB31 CAN_F11R1_FB31_Msk /*!<Filter bit 31 */
  4046. /******************* Bit definition for CAN_F12R1 register ******************/
  4047. #define CAN_F12R1_FB0_Pos (0U)
  4048. #define CAN_F12R1_FB0_Msk (0x1U << CAN_F12R1_FB0_Pos) /*!< 0x00000001 */
  4049. #define CAN_F12R1_FB0 CAN_F12R1_FB0_Msk /*!<Filter bit 0 */
  4050. #define CAN_F12R1_FB1_Pos (1U)
  4051. #define CAN_F12R1_FB1_Msk (0x1U << CAN_F12R1_FB1_Pos) /*!< 0x00000002 */
  4052. #define CAN_F12R1_FB1 CAN_F12R1_FB1_Msk /*!<Filter bit 1 */
  4053. #define CAN_F12R1_FB2_Pos (2U)
  4054. #define CAN_F12R1_FB2_Msk (0x1U << CAN_F12R1_FB2_Pos) /*!< 0x00000004 */
  4055. #define CAN_F12R1_FB2 CAN_F12R1_FB2_Msk /*!<Filter bit 2 */
  4056. #define CAN_F12R1_FB3_Pos (3U)
  4057. #define CAN_F12R1_FB3_Msk (0x1U << CAN_F12R1_FB3_Pos) /*!< 0x00000008 */
  4058. #define CAN_F12R1_FB3 CAN_F12R1_FB3_Msk /*!<Filter bit 3 */
  4059. #define CAN_F12R1_FB4_Pos (4U)
  4060. #define CAN_F12R1_FB4_Msk (0x1U << CAN_F12R1_FB4_Pos) /*!< 0x00000010 */
  4061. #define CAN_F12R1_FB4 CAN_F12R1_FB4_Msk /*!<Filter bit 4 */
  4062. #define CAN_F12R1_FB5_Pos (5U)
  4063. #define CAN_F12R1_FB5_Msk (0x1U << CAN_F12R1_FB5_Pos) /*!< 0x00000020 */
  4064. #define CAN_F12R1_FB5 CAN_F12R1_FB5_Msk /*!<Filter bit 5 */
  4065. #define CAN_F12R1_FB6_Pos (6U)
  4066. #define CAN_F12R1_FB6_Msk (0x1U << CAN_F12R1_FB6_Pos) /*!< 0x00000040 */
  4067. #define CAN_F12R1_FB6 CAN_F12R1_FB6_Msk /*!<Filter bit 6 */
  4068. #define CAN_F12R1_FB7_Pos (7U)
  4069. #define CAN_F12R1_FB7_Msk (0x1U << CAN_F12R1_FB7_Pos) /*!< 0x00000080 */
  4070. #define CAN_F12R1_FB7 CAN_F12R1_FB7_Msk /*!<Filter bit 7 */
  4071. #define CAN_F12R1_FB8_Pos (8U)
  4072. #define CAN_F12R1_FB8_Msk (0x1U << CAN_F12R1_FB8_Pos) /*!< 0x00000100 */
  4073. #define CAN_F12R1_FB8 CAN_F12R1_FB8_Msk /*!<Filter bit 8 */
  4074. #define CAN_F12R1_FB9_Pos (9U)
  4075. #define CAN_F12R1_FB9_Msk (0x1U << CAN_F12R1_FB9_Pos) /*!< 0x00000200 */
  4076. #define CAN_F12R1_FB9 CAN_F12R1_FB9_Msk /*!<Filter bit 9 */
  4077. #define CAN_F12R1_FB10_Pos (10U)
  4078. #define CAN_F12R1_FB10_Msk (0x1U << CAN_F12R1_FB10_Pos) /*!< 0x00000400 */
  4079. #define CAN_F12R1_FB10 CAN_F12R1_FB10_Msk /*!<Filter bit 10 */
  4080. #define CAN_F12R1_FB11_Pos (11U)
  4081. #define CAN_F12R1_FB11_Msk (0x1U << CAN_F12R1_FB11_Pos) /*!< 0x00000800 */
  4082. #define CAN_F12R1_FB11 CAN_F12R1_FB11_Msk /*!<Filter bit 11 */
  4083. #define CAN_F12R1_FB12_Pos (12U)
  4084. #define CAN_F12R1_FB12_Msk (0x1U << CAN_F12R1_FB12_Pos) /*!< 0x00001000 */
  4085. #define CAN_F12R1_FB12 CAN_F12R1_FB12_Msk /*!<Filter bit 12 */
  4086. #define CAN_F12R1_FB13_Pos (13U)
  4087. #define CAN_F12R1_FB13_Msk (0x1U << CAN_F12R1_FB13_Pos) /*!< 0x00002000 */
  4088. #define CAN_F12R1_FB13 CAN_F12R1_FB13_Msk /*!<Filter bit 13 */
  4089. #define CAN_F12R1_FB14_Pos (14U)
  4090. #define CAN_F12R1_FB14_Msk (0x1U << CAN_F12R1_FB14_Pos) /*!< 0x00004000 */
  4091. #define CAN_F12R1_FB14 CAN_F12R1_FB14_Msk /*!<Filter bit 14 */
  4092. #define CAN_F12R1_FB15_Pos (15U)
  4093. #define CAN_F12R1_FB15_Msk (0x1U << CAN_F12R1_FB15_Pos) /*!< 0x00008000 */
  4094. #define CAN_F12R1_FB15 CAN_F12R1_FB15_Msk /*!<Filter bit 15 */
  4095. #define CAN_F12R1_FB16_Pos (16U)
  4096. #define CAN_F12R1_FB16_Msk (0x1U << CAN_F12R1_FB16_Pos) /*!< 0x00010000 */
  4097. #define CAN_F12R1_FB16 CAN_F12R1_FB16_Msk /*!<Filter bit 16 */
  4098. #define CAN_F12R1_FB17_Pos (17U)
  4099. #define CAN_F12R1_FB17_Msk (0x1U << CAN_F12R1_FB17_Pos) /*!< 0x00020000 */
  4100. #define CAN_F12R1_FB17 CAN_F12R1_FB17_Msk /*!<Filter bit 17 */
  4101. #define CAN_F12R1_FB18_Pos (18U)
  4102. #define CAN_F12R1_FB18_Msk (0x1U << CAN_F12R1_FB18_Pos) /*!< 0x00040000 */
  4103. #define CAN_F12R1_FB18 CAN_F12R1_FB18_Msk /*!<Filter bit 18 */
  4104. #define CAN_F12R1_FB19_Pos (19U)
  4105. #define CAN_F12R1_FB19_Msk (0x1U << CAN_F12R1_FB19_Pos) /*!< 0x00080000 */
  4106. #define CAN_F12R1_FB19 CAN_F12R1_FB19_Msk /*!<Filter bit 19 */
  4107. #define CAN_F12R1_FB20_Pos (20U)
  4108. #define CAN_F12R1_FB20_Msk (0x1U << CAN_F12R1_FB20_Pos) /*!< 0x00100000 */
  4109. #define CAN_F12R1_FB20 CAN_F12R1_FB20_Msk /*!<Filter bit 20 */
  4110. #define CAN_F12R1_FB21_Pos (21U)
  4111. #define CAN_F12R1_FB21_Msk (0x1U << CAN_F12R1_FB21_Pos) /*!< 0x00200000 */
  4112. #define CAN_F12R1_FB21 CAN_F12R1_FB21_Msk /*!<Filter bit 21 */
  4113. #define CAN_F12R1_FB22_Pos (22U)
  4114. #define CAN_F12R1_FB22_Msk (0x1U << CAN_F12R1_FB22_Pos) /*!< 0x00400000 */
  4115. #define CAN_F12R1_FB22 CAN_F12R1_FB22_Msk /*!<Filter bit 22 */
  4116. #define CAN_F12R1_FB23_Pos (23U)
  4117. #define CAN_F12R1_FB23_Msk (0x1U << CAN_F12R1_FB23_Pos) /*!< 0x00800000 */
  4118. #define CAN_F12R1_FB23 CAN_F12R1_FB23_Msk /*!<Filter bit 23 */
  4119. #define CAN_F12R1_FB24_Pos (24U)
  4120. #define CAN_F12R1_FB24_Msk (0x1U << CAN_F12R1_FB24_Pos) /*!< 0x01000000 */
  4121. #define CAN_F12R1_FB24 CAN_F12R1_FB24_Msk /*!<Filter bit 24 */
  4122. #define CAN_F12R1_FB25_Pos (25U)
  4123. #define CAN_F12R1_FB25_Msk (0x1U << CAN_F12R1_FB25_Pos) /*!< 0x02000000 */
  4124. #define CAN_F12R1_FB25 CAN_F12R1_FB25_Msk /*!<Filter bit 25 */
  4125. #define CAN_F12R1_FB26_Pos (26U)
  4126. #define CAN_F12R1_FB26_Msk (0x1U << CAN_F12R1_FB26_Pos) /*!< 0x04000000 */
  4127. #define CAN_F12R1_FB26 CAN_F12R1_FB26_Msk /*!<Filter bit 26 */
  4128. #define CAN_F12R1_FB27_Pos (27U)
  4129. #define CAN_F12R1_FB27_Msk (0x1U << CAN_F12R1_FB27_Pos) /*!< 0x08000000 */
  4130. #define CAN_F12R1_FB27 CAN_F12R1_FB27_Msk /*!<Filter bit 27 */
  4131. #define CAN_F12R1_FB28_Pos (28U)
  4132. #define CAN_F12R1_FB28_Msk (0x1U << CAN_F12R1_FB28_Pos) /*!< 0x10000000 */
  4133. #define CAN_F12R1_FB28 CAN_F12R1_FB28_Msk /*!<Filter bit 28 */
  4134. #define CAN_F12R1_FB29_Pos (29U)
  4135. #define CAN_F12R1_FB29_Msk (0x1U << CAN_F12R1_FB29_Pos) /*!< 0x20000000 */
  4136. #define CAN_F12R1_FB29 CAN_F12R1_FB29_Msk /*!<Filter bit 29 */
  4137. #define CAN_F12R1_FB30_Pos (30U)
  4138. #define CAN_F12R1_FB30_Msk (0x1U << CAN_F12R1_FB30_Pos) /*!< 0x40000000 */
  4139. #define CAN_F12R1_FB30 CAN_F12R1_FB30_Msk /*!<Filter bit 30 */
  4140. #define CAN_F12R1_FB31_Pos (31U)
  4141. #define CAN_F12R1_FB31_Msk (0x1U << CAN_F12R1_FB31_Pos) /*!< 0x80000000 */
  4142. #define CAN_F12R1_FB31 CAN_F12R1_FB31_Msk /*!<Filter bit 31 */
  4143. /******************* Bit definition for CAN_F13R1 register ******************/
  4144. #define CAN_F13R1_FB0_Pos (0U)
  4145. #define CAN_F13R1_FB0_Msk (0x1U << CAN_F13R1_FB0_Pos) /*!< 0x00000001 */
  4146. #define CAN_F13R1_FB0 CAN_F13R1_FB0_Msk /*!<Filter bit 0 */
  4147. #define CAN_F13R1_FB1_Pos (1U)
  4148. #define CAN_F13R1_FB1_Msk (0x1U << CAN_F13R1_FB1_Pos) /*!< 0x00000002 */
  4149. #define CAN_F13R1_FB1 CAN_F13R1_FB1_Msk /*!<Filter bit 1 */
  4150. #define CAN_F13R1_FB2_Pos (2U)
  4151. #define CAN_F13R1_FB2_Msk (0x1U << CAN_F13R1_FB2_Pos) /*!< 0x00000004 */
  4152. #define CAN_F13R1_FB2 CAN_F13R1_FB2_Msk /*!<Filter bit 2 */
  4153. #define CAN_F13R1_FB3_Pos (3U)
  4154. #define CAN_F13R1_FB3_Msk (0x1U << CAN_F13R1_FB3_Pos) /*!< 0x00000008 */
  4155. #define CAN_F13R1_FB3 CAN_F13R1_FB3_Msk /*!<Filter bit 3 */
  4156. #define CAN_F13R1_FB4_Pos (4U)
  4157. #define CAN_F13R1_FB4_Msk (0x1U << CAN_F13R1_FB4_Pos) /*!< 0x00000010 */
  4158. #define CAN_F13R1_FB4 CAN_F13R1_FB4_Msk /*!<Filter bit 4 */
  4159. #define CAN_F13R1_FB5_Pos (5U)
  4160. #define CAN_F13R1_FB5_Msk (0x1U << CAN_F13R1_FB5_Pos) /*!< 0x00000020 */
  4161. #define CAN_F13R1_FB5 CAN_F13R1_FB5_Msk /*!<Filter bit 5 */
  4162. #define CAN_F13R1_FB6_Pos (6U)
  4163. #define CAN_F13R1_FB6_Msk (0x1U << CAN_F13R1_FB6_Pos) /*!< 0x00000040 */
  4164. #define CAN_F13R1_FB6 CAN_F13R1_FB6_Msk /*!<Filter bit 6 */
  4165. #define CAN_F13R1_FB7_Pos (7U)
  4166. #define CAN_F13R1_FB7_Msk (0x1U << CAN_F13R1_FB7_Pos) /*!< 0x00000080 */
  4167. #define CAN_F13R1_FB7 CAN_F13R1_FB7_Msk /*!<Filter bit 7 */
  4168. #define CAN_F13R1_FB8_Pos (8U)
  4169. #define CAN_F13R1_FB8_Msk (0x1U << CAN_F13R1_FB8_Pos) /*!< 0x00000100 */
  4170. #define CAN_F13R1_FB8 CAN_F13R1_FB8_Msk /*!<Filter bit 8 */
  4171. #define CAN_F13R1_FB9_Pos (9U)
  4172. #define CAN_F13R1_FB9_Msk (0x1U << CAN_F13R1_FB9_Pos) /*!< 0x00000200 */
  4173. #define CAN_F13R1_FB9 CAN_F13R1_FB9_Msk /*!<Filter bit 9 */
  4174. #define CAN_F13R1_FB10_Pos (10U)
  4175. #define CAN_F13R1_FB10_Msk (0x1U << CAN_F13R1_FB10_Pos) /*!< 0x00000400 */
  4176. #define CAN_F13R1_FB10 CAN_F13R1_FB10_Msk /*!<Filter bit 10 */
  4177. #define CAN_F13R1_FB11_Pos (11U)
  4178. #define CAN_F13R1_FB11_Msk (0x1U << CAN_F13R1_FB11_Pos) /*!< 0x00000800 */
  4179. #define CAN_F13R1_FB11 CAN_F13R1_FB11_Msk /*!<Filter bit 11 */
  4180. #define CAN_F13R1_FB12_Pos (12U)
  4181. #define CAN_F13R1_FB12_Msk (0x1U << CAN_F13R1_FB12_Pos) /*!< 0x00001000 */
  4182. #define CAN_F13R1_FB12 CAN_F13R1_FB12_Msk /*!<Filter bit 12 */
  4183. #define CAN_F13R1_FB13_Pos (13U)
  4184. #define CAN_F13R1_FB13_Msk (0x1U << CAN_F13R1_FB13_Pos) /*!< 0x00002000 */
  4185. #define CAN_F13R1_FB13 CAN_F13R1_FB13_Msk /*!<Filter bit 13 */
  4186. #define CAN_F13R1_FB14_Pos (14U)
  4187. #define CAN_F13R1_FB14_Msk (0x1U << CAN_F13R1_FB14_Pos) /*!< 0x00004000 */
  4188. #define CAN_F13R1_FB14 CAN_F13R1_FB14_Msk /*!<Filter bit 14 */
  4189. #define CAN_F13R1_FB15_Pos (15U)
  4190. #define CAN_F13R1_FB15_Msk (0x1U << CAN_F13R1_FB15_Pos) /*!< 0x00008000 */
  4191. #define CAN_F13R1_FB15 CAN_F13R1_FB15_Msk /*!<Filter bit 15 */
  4192. #define CAN_F13R1_FB16_Pos (16U)
  4193. #define CAN_F13R1_FB16_Msk (0x1U << CAN_F13R1_FB16_Pos) /*!< 0x00010000 */
  4194. #define CAN_F13R1_FB16 CAN_F13R1_FB16_Msk /*!<Filter bit 16 */
  4195. #define CAN_F13R1_FB17_Pos (17U)
  4196. #define CAN_F13R1_FB17_Msk (0x1U << CAN_F13R1_FB17_Pos) /*!< 0x00020000 */
  4197. #define CAN_F13R1_FB17 CAN_F13R1_FB17_Msk /*!<Filter bit 17 */
  4198. #define CAN_F13R1_FB18_Pos (18U)
  4199. #define CAN_F13R1_FB18_Msk (0x1U << CAN_F13R1_FB18_Pos) /*!< 0x00040000 */
  4200. #define CAN_F13R1_FB18 CAN_F13R1_FB18_Msk /*!<Filter bit 18 */
  4201. #define CAN_F13R1_FB19_Pos (19U)
  4202. #define CAN_F13R1_FB19_Msk (0x1U << CAN_F13R1_FB19_Pos) /*!< 0x00080000 */
  4203. #define CAN_F13R1_FB19 CAN_F13R1_FB19_Msk /*!<Filter bit 19 */
  4204. #define CAN_F13R1_FB20_Pos (20U)
  4205. #define CAN_F13R1_FB20_Msk (0x1U << CAN_F13R1_FB20_Pos) /*!< 0x00100000 */
  4206. #define CAN_F13R1_FB20 CAN_F13R1_FB20_Msk /*!<Filter bit 20 */
  4207. #define CAN_F13R1_FB21_Pos (21U)
  4208. #define CAN_F13R1_FB21_Msk (0x1U << CAN_F13R1_FB21_Pos) /*!< 0x00200000 */
  4209. #define CAN_F13R1_FB21 CAN_F13R1_FB21_Msk /*!<Filter bit 21 */
  4210. #define CAN_F13R1_FB22_Pos (22U)
  4211. #define CAN_F13R1_FB22_Msk (0x1U << CAN_F13R1_FB22_Pos) /*!< 0x00400000 */
  4212. #define CAN_F13R1_FB22 CAN_F13R1_FB22_Msk /*!<Filter bit 22 */
  4213. #define CAN_F13R1_FB23_Pos (23U)
  4214. #define CAN_F13R1_FB23_Msk (0x1U << CAN_F13R1_FB23_Pos) /*!< 0x00800000 */
  4215. #define CAN_F13R1_FB23 CAN_F13R1_FB23_Msk /*!<Filter bit 23 */
  4216. #define CAN_F13R1_FB24_Pos (24U)
  4217. #define CAN_F13R1_FB24_Msk (0x1U << CAN_F13R1_FB24_Pos) /*!< 0x01000000 */
  4218. #define CAN_F13R1_FB24 CAN_F13R1_FB24_Msk /*!<Filter bit 24 */
  4219. #define CAN_F13R1_FB25_Pos (25U)
  4220. #define CAN_F13R1_FB25_Msk (0x1U << CAN_F13R1_FB25_Pos) /*!< 0x02000000 */
  4221. #define CAN_F13R1_FB25 CAN_F13R1_FB25_Msk /*!<Filter bit 25 */
  4222. #define CAN_F13R1_FB26_Pos (26U)
  4223. #define CAN_F13R1_FB26_Msk (0x1U << CAN_F13R1_FB26_Pos) /*!< 0x04000000 */
  4224. #define CAN_F13R1_FB26 CAN_F13R1_FB26_Msk /*!<Filter bit 26 */
  4225. #define CAN_F13R1_FB27_Pos (27U)
  4226. #define CAN_F13R1_FB27_Msk (0x1U << CAN_F13R1_FB27_Pos) /*!< 0x08000000 */
  4227. #define CAN_F13R1_FB27 CAN_F13R1_FB27_Msk /*!<Filter bit 27 */
  4228. #define CAN_F13R1_FB28_Pos (28U)
  4229. #define CAN_F13R1_FB28_Msk (0x1U << CAN_F13R1_FB28_Pos) /*!< 0x10000000 */
  4230. #define CAN_F13R1_FB28 CAN_F13R1_FB28_Msk /*!<Filter bit 28 */
  4231. #define CAN_F13R1_FB29_Pos (29U)
  4232. #define CAN_F13R1_FB29_Msk (0x1U << CAN_F13R1_FB29_Pos) /*!< 0x20000000 */
  4233. #define CAN_F13R1_FB29 CAN_F13R1_FB29_Msk /*!<Filter bit 29 */
  4234. #define CAN_F13R1_FB30_Pos (30U)
  4235. #define CAN_F13R1_FB30_Msk (0x1U << CAN_F13R1_FB30_Pos) /*!< 0x40000000 */
  4236. #define CAN_F13R1_FB30 CAN_F13R1_FB30_Msk /*!<Filter bit 30 */
  4237. #define CAN_F13R1_FB31_Pos (31U)
  4238. #define CAN_F13R1_FB31_Msk (0x1U << CAN_F13R1_FB31_Pos) /*!< 0x80000000 */
  4239. #define CAN_F13R1_FB31 CAN_F13R1_FB31_Msk /*!<Filter bit 31 */
  4240. /******************* Bit definition for CAN_F0R2 register *******************/
  4241. #define CAN_F0R2_FB0_Pos (0U)
  4242. #define CAN_F0R2_FB0_Msk (0x1U << CAN_F0R2_FB0_Pos) /*!< 0x00000001 */
  4243. #define CAN_F0R2_FB0 CAN_F0R2_FB0_Msk /*!<Filter bit 0 */
  4244. #define CAN_F0R2_FB1_Pos (1U)
  4245. #define CAN_F0R2_FB1_Msk (0x1U << CAN_F0R2_FB1_Pos) /*!< 0x00000002 */
  4246. #define CAN_F0R2_FB1 CAN_F0R2_FB1_Msk /*!<Filter bit 1 */
  4247. #define CAN_F0R2_FB2_Pos (2U)
  4248. #define CAN_F0R2_FB2_Msk (0x1U << CAN_F0R2_FB2_Pos) /*!< 0x00000004 */
  4249. #define CAN_F0R2_FB2 CAN_F0R2_FB2_Msk /*!<Filter bit 2 */
  4250. #define CAN_F0R2_FB3_Pos (3U)
  4251. #define CAN_F0R2_FB3_Msk (0x1U << CAN_F0R2_FB3_Pos) /*!< 0x00000008 */
  4252. #define CAN_F0R2_FB3 CAN_F0R2_FB3_Msk /*!<Filter bit 3 */
  4253. #define CAN_F0R2_FB4_Pos (4U)
  4254. #define CAN_F0R2_FB4_Msk (0x1U << CAN_F0R2_FB4_Pos) /*!< 0x00000010 */
  4255. #define CAN_F0R2_FB4 CAN_F0R2_FB4_Msk /*!<Filter bit 4 */
  4256. #define CAN_F0R2_FB5_Pos (5U)
  4257. #define CAN_F0R2_FB5_Msk (0x1U << CAN_F0R2_FB5_Pos) /*!< 0x00000020 */
  4258. #define CAN_F0R2_FB5 CAN_F0R2_FB5_Msk /*!<Filter bit 5 */
  4259. #define CAN_F0R2_FB6_Pos (6U)
  4260. #define CAN_F0R2_FB6_Msk (0x1U << CAN_F0R2_FB6_Pos) /*!< 0x00000040 */
  4261. #define CAN_F0R2_FB6 CAN_F0R2_FB6_Msk /*!<Filter bit 6 */
  4262. #define CAN_F0R2_FB7_Pos (7U)
  4263. #define CAN_F0R2_FB7_Msk (0x1U << CAN_F0R2_FB7_Pos) /*!< 0x00000080 */
  4264. #define CAN_F0R2_FB7 CAN_F0R2_FB7_Msk /*!<Filter bit 7 */
  4265. #define CAN_F0R2_FB8_Pos (8U)
  4266. #define CAN_F0R2_FB8_Msk (0x1U << CAN_F0R2_FB8_Pos) /*!< 0x00000100 */
  4267. #define CAN_F0R2_FB8 CAN_F0R2_FB8_Msk /*!<Filter bit 8 */
  4268. #define CAN_F0R2_FB9_Pos (9U)
  4269. #define CAN_F0R2_FB9_Msk (0x1U << CAN_F0R2_FB9_Pos) /*!< 0x00000200 */
  4270. #define CAN_F0R2_FB9 CAN_F0R2_FB9_Msk /*!<Filter bit 9 */
  4271. #define CAN_F0R2_FB10_Pos (10U)
  4272. #define CAN_F0R2_FB10_Msk (0x1U << CAN_F0R2_FB10_Pos) /*!< 0x00000400 */
  4273. #define CAN_F0R2_FB10 CAN_F0R2_FB10_Msk /*!<Filter bit 10 */
  4274. #define CAN_F0R2_FB11_Pos (11U)
  4275. #define CAN_F0R2_FB11_Msk (0x1U << CAN_F0R2_FB11_Pos) /*!< 0x00000800 */
  4276. #define CAN_F0R2_FB11 CAN_F0R2_FB11_Msk /*!<Filter bit 11 */
  4277. #define CAN_F0R2_FB12_Pos (12U)
  4278. #define CAN_F0R2_FB12_Msk (0x1U << CAN_F0R2_FB12_Pos) /*!< 0x00001000 */
  4279. #define CAN_F0R2_FB12 CAN_F0R2_FB12_Msk /*!<Filter bit 12 */
  4280. #define CAN_F0R2_FB13_Pos (13U)
  4281. #define CAN_F0R2_FB13_Msk (0x1U << CAN_F0R2_FB13_Pos) /*!< 0x00002000 */
  4282. #define CAN_F0R2_FB13 CAN_F0R2_FB13_Msk /*!<Filter bit 13 */
  4283. #define CAN_F0R2_FB14_Pos (14U)
  4284. #define CAN_F0R2_FB14_Msk (0x1U << CAN_F0R2_FB14_Pos) /*!< 0x00004000 */
  4285. #define CAN_F0R2_FB14 CAN_F0R2_FB14_Msk /*!<Filter bit 14 */
  4286. #define CAN_F0R2_FB15_Pos (15U)
  4287. #define CAN_F0R2_FB15_Msk (0x1U << CAN_F0R2_FB15_Pos) /*!< 0x00008000 */
  4288. #define CAN_F0R2_FB15 CAN_F0R2_FB15_Msk /*!<Filter bit 15 */
  4289. #define CAN_F0R2_FB16_Pos (16U)
  4290. #define CAN_F0R2_FB16_Msk (0x1U << CAN_F0R2_FB16_Pos) /*!< 0x00010000 */
  4291. #define CAN_F0R2_FB16 CAN_F0R2_FB16_Msk /*!<Filter bit 16 */
  4292. #define CAN_F0R2_FB17_Pos (17U)
  4293. #define CAN_F0R2_FB17_Msk (0x1U << CAN_F0R2_FB17_Pos) /*!< 0x00020000 */
  4294. #define CAN_F0R2_FB17 CAN_F0R2_FB17_Msk /*!<Filter bit 17 */
  4295. #define CAN_F0R2_FB18_Pos (18U)
  4296. #define CAN_F0R2_FB18_Msk (0x1U << CAN_F0R2_FB18_Pos) /*!< 0x00040000 */
  4297. #define CAN_F0R2_FB18 CAN_F0R2_FB18_Msk /*!<Filter bit 18 */
  4298. #define CAN_F0R2_FB19_Pos (19U)
  4299. #define CAN_F0R2_FB19_Msk (0x1U << CAN_F0R2_FB19_Pos) /*!< 0x00080000 */
  4300. #define CAN_F0R2_FB19 CAN_F0R2_FB19_Msk /*!<Filter bit 19 */
  4301. #define CAN_F0R2_FB20_Pos (20U)
  4302. #define CAN_F0R2_FB20_Msk (0x1U << CAN_F0R2_FB20_Pos) /*!< 0x00100000 */
  4303. #define CAN_F0R2_FB20 CAN_F0R2_FB20_Msk /*!<Filter bit 20 */
  4304. #define CAN_F0R2_FB21_Pos (21U)
  4305. #define CAN_F0R2_FB21_Msk (0x1U << CAN_F0R2_FB21_Pos) /*!< 0x00200000 */
  4306. #define CAN_F0R2_FB21 CAN_F0R2_FB21_Msk /*!<Filter bit 21 */
  4307. #define CAN_F0R2_FB22_Pos (22U)
  4308. #define CAN_F0R2_FB22_Msk (0x1U << CAN_F0R2_FB22_Pos) /*!< 0x00400000 */
  4309. #define CAN_F0R2_FB22 CAN_F0R2_FB22_Msk /*!<Filter bit 22 */
  4310. #define CAN_F0R2_FB23_Pos (23U)
  4311. #define CAN_F0R2_FB23_Msk (0x1U << CAN_F0R2_FB23_Pos) /*!< 0x00800000 */
  4312. #define CAN_F0R2_FB23 CAN_F0R2_FB23_Msk /*!<Filter bit 23 */
  4313. #define CAN_F0R2_FB24_Pos (24U)
  4314. #define CAN_F0R2_FB24_Msk (0x1U << CAN_F0R2_FB24_Pos) /*!< 0x01000000 */
  4315. #define CAN_F0R2_FB24 CAN_F0R2_FB24_Msk /*!<Filter bit 24 */
  4316. #define CAN_F0R2_FB25_Pos (25U)
  4317. #define CAN_F0R2_FB25_Msk (0x1U << CAN_F0R2_FB25_Pos) /*!< 0x02000000 */
  4318. #define CAN_F0R2_FB25 CAN_F0R2_FB25_Msk /*!<Filter bit 25 */
  4319. #define CAN_F0R2_FB26_Pos (26U)
  4320. #define CAN_F0R2_FB26_Msk (0x1U << CAN_F0R2_FB26_Pos) /*!< 0x04000000 */
  4321. #define CAN_F0R2_FB26 CAN_F0R2_FB26_Msk /*!<Filter bit 26 */
  4322. #define CAN_F0R2_FB27_Pos (27U)
  4323. #define CAN_F0R2_FB27_Msk (0x1U << CAN_F0R2_FB27_Pos) /*!< 0x08000000 */
  4324. #define CAN_F0R2_FB27 CAN_F0R2_FB27_Msk /*!<Filter bit 27 */
  4325. #define CAN_F0R2_FB28_Pos (28U)
  4326. #define CAN_F0R2_FB28_Msk (0x1U << CAN_F0R2_FB28_Pos) /*!< 0x10000000 */
  4327. #define CAN_F0R2_FB28 CAN_F0R2_FB28_Msk /*!<Filter bit 28 */
  4328. #define CAN_F0R2_FB29_Pos (29U)
  4329. #define CAN_F0R2_FB29_Msk (0x1U << CAN_F0R2_FB29_Pos) /*!< 0x20000000 */
  4330. #define CAN_F0R2_FB29 CAN_F0R2_FB29_Msk /*!<Filter bit 29 */
  4331. #define CAN_F0R2_FB30_Pos (30U)
  4332. #define CAN_F0R2_FB30_Msk (0x1U << CAN_F0R2_FB30_Pos) /*!< 0x40000000 */
  4333. #define CAN_F0R2_FB30 CAN_F0R2_FB30_Msk /*!<Filter bit 30 */
  4334. #define CAN_F0R2_FB31_Pos (31U)
  4335. #define CAN_F0R2_FB31_Msk (0x1U << CAN_F0R2_FB31_Pos) /*!< 0x80000000 */
  4336. #define CAN_F0R2_FB31 CAN_F0R2_FB31_Msk /*!<Filter bit 31 */
  4337. /******************* Bit definition for CAN_F1R2 register *******************/
  4338. #define CAN_F1R2_FB0_Pos (0U)
  4339. #define CAN_F1R2_FB0_Msk (0x1U << CAN_F1R2_FB0_Pos) /*!< 0x00000001 */
  4340. #define CAN_F1R2_FB0 CAN_F1R2_FB0_Msk /*!<Filter bit 0 */
  4341. #define CAN_F1R2_FB1_Pos (1U)
  4342. #define CAN_F1R2_FB1_Msk (0x1U << CAN_F1R2_FB1_Pos) /*!< 0x00000002 */
  4343. #define CAN_F1R2_FB1 CAN_F1R2_FB1_Msk /*!<Filter bit 1 */
  4344. #define CAN_F1R2_FB2_Pos (2U)
  4345. #define CAN_F1R2_FB2_Msk (0x1U << CAN_F1R2_FB2_Pos) /*!< 0x00000004 */
  4346. #define CAN_F1R2_FB2 CAN_F1R2_FB2_Msk /*!<Filter bit 2 */
  4347. #define CAN_F1R2_FB3_Pos (3U)
  4348. #define CAN_F1R2_FB3_Msk (0x1U << CAN_F1R2_FB3_Pos) /*!< 0x00000008 */
  4349. #define CAN_F1R2_FB3 CAN_F1R2_FB3_Msk /*!<Filter bit 3 */
  4350. #define CAN_F1R2_FB4_Pos (4U)
  4351. #define CAN_F1R2_FB4_Msk (0x1U << CAN_F1R2_FB4_Pos) /*!< 0x00000010 */
  4352. #define CAN_F1R2_FB4 CAN_F1R2_FB4_Msk /*!<Filter bit 4 */
  4353. #define CAN_F1R2_FB5_Pos (5U)
  4354. #define CAN_F1R2_FB5_Msk (0x1U << CAN_F1R2_FB5_Pos) /*!< 0x00000020 */
  4355. #define CAN_F1R2_FB5 CAN_F1R2_FB5_Msk /*!<Filter bit 5 */
  4356. #define CAN_F1R2_FB6_Pos (6U)
  4357. #define CAN_F1R2_FB6_Msk (0x1U << CAN_F1R2_FB6_Pos) /*!< 0x00000040 */
  4358. #define CAN_F1R2_FB6 CAN_F1R2_FB6_Msk /*!<Filter bit 6 */
  4359. #define CAN_F1R2_FB7_Pos (7U)
  4360. #define CAN_F1R2_FB7_Msk (0x1U << CAN_F1R2_FB7_Pos) /*!< 0x00000080 */
  4361. #define CAN_F1R2_FB7 CAN_F1R2_FB7_Msk /*!<Filter bit 7 */
  4362. #define CAN_F1R2_FB8_Pos (8U)
  4363. #define CAN_F1R2_FB8_Msk (0x1U << CAN_F1R2_FB8_Pos) /*!< 0x00000100 */
  4364. #define CAN_F1R2_FB8 CAN_F1R2_FB8_Msk /*!<Filter bit 8 */
  4365. #define CAN_F1R2_FB9_Pos (9U)
  4366. #define CAN_F1R2_FB9_Msk (0x1U << CAN_F1R2_FB9_Pos) /*!< 0x00000200 */
  4367. #define CAN_F1R2_FB9 CAN_F1R2_FB9_Msk /*!<Filter bit 9 */
  4368. #define CAN_F1R2_FB10_Pos (10U)
  4369. #define CAN_F1R2_FB10_Msk (0x1U << CAN_F1R2_FB10_Pos) /*!< 0x00000400 */
  4370. #define CAN_F1R2_FB10 CAN_F1R2_FB10_Msk /*!<Filter bit 10 */
  4371. #define CAN_F1R2_FB11_Pos (11U)
  4372. #define CAN_F1R2_FB11_Msk (0x1U << CAN_F1R2_FB11_Pos) /*!< 0x00000800 */
  4373. #define CAN_F1R2_FB11 CAN_F1R2_FB11_Msk /*!<Filter bit 11 */
  4374. #define CAN_F1R2_FB12_Pos (12U)
  4375. #define CAN_F1R2_FB12_Msk (0x1U << CAN_F1R2_FB12_Pos) /*!< 0x00001000 */
  4376. #define CAN_F1R2_FB12 CAN_F1R2_FB12_Msk /*!<Filter bit 12 */
  4377. #define CAN_F1R2_FB13_Pos (13U)
  4378. #define CAN_F1R2_FB13_Msk (0x1U << CAN_F1R2_FB13_Pos) /*!< 0x00002000 */
  4379. #define CAN_F1R2_FB13 CAN_F1R2_FB13_Msk /*!<Filter bit 13 */
  4380. #define CAN_F1R2_FB14_Pos (14U)
  4381. #define CAN_F1R2_FB14_Msk (0x1U << CAN_F1R2_FB14_Pos) /*!< 0x00004000 */
  4382. #define CAN_F1R2_FB14 CAN_F1R2_FB14_Msk /*!<Filter bit 14 */
  4383. #define CAN_F1R2_FB15_Pos (15U)
  4384. #define CAN_F1R2_FB15_Msk (0x1U << CAN_F1R2_FB15_Pos) /*!< 0x00008000 */
  4385. #define CAN_F1R2_FB15 CAN_F1R2_FB15_Msk /*!<Filter bit 15 */
  4386. #define CAN_F1R2_FB16_Pos (16U)
  4387. #define CAN_F1R2_FB16_Msk (0x1U << CAN_F1R2_FB16_Pos) /*!< 0x00010000 */
  4388. #define CAN_F1R2_FB16 CAN_F1R2_FB16_Msk /*!<Filter bit 16 */
  4389. #define CAN_F1R2_FB17_Pos (17U)
  4390. #define CAN_F1R2_FB17_Msk (0x1U << CAN_F1R2_FB17_Pos) /*!< 0x00020000 */
  4391. #define CAN_F1R2_FB17 CAN_F1R2_FB17_Msk /*!<Filter bit 17 */
  4392. #define CAN_F1R2_FB18_Pos (18U)
  4393. #define CAN_F1R2_FB18_Msk (0x1U << CAN_F1R2_FB18_Pos) /*!< 0x00040000 */
  4394. #define CAN_F1R2_FB18 CAN_F1R2_FB18_Msk /*!<Filter bit 18 */
  4395. #define CAN_F1R2_FB19_Pos (19U)
  4396. #define CAN_F1R2_FB19_Msk (0x1U << CAN_F1R2_FB19_Pos) /*!< 0x00080000 */
  4397. #define CAN_F1R2_FB19 CAN_F1R2_FB19_Msk /*!<Filter bit 19 */
  4398. #define CAN_F1R2_FB20_Pos (20U)
  4399. #define CAN_F1R2_FB20_Msk (0x1U << CAN_F1R2_FB20_Pos) /*!< 0x00100000 */
  4400. #define CAN_F1R2_FB20 CAN_F1R2_FB20_Msk /*!<Filter bit 20 */
  4401. #define CAN_F1R2_FB21_Pos (21U)
  4402. #define CAN_F1R2_FB21_Msk (0x1U << CAN_F1R2_FB21_Pos) /*!< 0x00200000 */
  4403. #define CAN_F1R2_FB21 CAN_F1R2_FB21_Msk /*!<Filter bit 21 */
  4404. #define CAN_F1R2_FB22_Pos (22U)
  4405. #define CAN_F1R2_FB22_Msk (0x1U << CAN_F1R2_FB22_Pos) /*!< 0x00400000 */
  4406. #define CAN_F1R2_FB22 CAN_F1R2_FB22_Msk /*!<Filter bit 22 */
  4407. #define CAN_F1R2_FB23_Pos (23U)
  4408. #define CAN_F1R2_FB23_Msk (0x1U << CAN_F1R2_FB23_Pos) /*!< 0x00800000 */
  4409. #define CAN_F1R2_FB23 CAN_F1R2_FB23_Msk /*!<Filter bit 23 */
  4410. #define CAN_F1R2_FB24_Pos (24U)
  4411. #define CAN_F1R2_FB24_Msk (0x1U << CAN_F1R2_FB24_Pos) /*!< 0x01000000 */
  4412. #define CAN_F1R2_FB24 CAN_F1R2_FB24_Msk /*!<Filter bit 24 */
  4413. #define CAN_F1R2_FB25_Pos (25U)
  4414. #define CAN_F1R2_FB25_Msk (0x1U << CAN_F1R2_FB25_Pos) /*!< 0x02000000 */
  4415. #define CAN_F1R2_FB25 CAN_F1R2_FB25_Msk /*!<Filter bit 25 */
  4416. #define CAN_F1R2_FB26_Pos (26U)
  4417. #define CAN_F1R2_FB26_Msk (0x1U << CAN_F1R2_FB26_Pos) /*!< 0x04000000 */
  4418. #define CAN_F1R2_FB26 CAN_F1R2_FB26_Msk /*!<Filter bit 26 */
  4419. #define CAN_F1R2_FB27_Pos (27U)
  4420. #define CAN_F1R2_FB27_Msk (0x1U << CAN_F1R2_FB27_Pos) /*!< 0x08000000 */
  4421. #define CAN_F1R2_FB27 CAN_F1R2_FB27_Msk /*!<Filter bit 27 */
  4422. #define CAN_F1R2_FB28_Pos (28U)
  4423. #define CAN_F1R2_FB28_Msk (0x1U << CAN_F1R2_FB28_Pos) /*!< 0x10000000 */
  4424. #define CAN_F1R2_FB28 CAN_F1R2_FB28_Msk /*!<Filter bit 28 */
  4425. #define CAN_F1R2_FB29_Pos (29U)
  4426. #define CAN_F1R2_FB29_Msk (0x1U << CAN_F1R2_FB29_Pos) /*!< 0x20000000 */
  4427. #define CAN_F1R2_FB29 CAN_F1R2_FB29_Msk /*!<Filter bit 29 */
  4428. #define CAN_F1R2_FB30_Pos (30U)
  4429. #define CAN_F1R2_FB30_Msk (0x1U << CAN_F1R2_FB30_Pos) /*!< 0x40000000 */
  4430. #define CAN_F1R2_FB30 CAN_F1R2_FB30_Msk /*!<Filter bit 30 */
  4431. #define CAN_F1R2_FB31_Pos (31U)
  4432. #define CAN_F1R2_FB31_Msk (0x1U << CAN_F1R2_FB31_Pos) /*!< 0x80000000 */
  4433. #define CAN_F1R2_FB31 CAN_F1R2_FB31_Msk /*!<Filter bit 31 */
  4434. /******************* Bit definition for CAN_F2R2 register *******************/
  4435. #define CAN_F2R2_FB0_Pos (0U)
  4436. #define CAN_F2R2_FB0_Msk (0x1U << CAN_F2R2_FB0_Pos) /*!< 0x00000001 */
  4437. #define CAN_F2R2_FB0 CAN_F2R2_FB0_Msk /*!<Filter bit 0 */
  4438. #define CAN_F2R2_FB1_Pos (1U)
  4439. #define CAN_F2R2_FB1_Msk (0x1U << CAN_F2R2_FB1_Pos) /*!< 0x00000002 */
  4440. #define CAN_F2R2_FB1 CAN_F2R2_FB1_Msk /*!<Filter bit 1 */
  4441. #define CAN_F2R2_FB2_Pos (2U)
  4442. #define CAN_F2R2_FB2_Msk (0x1U << CAN_F2R2_FB2_Pos) /*!< 0x00000004 */
  4443. #define CAN_F2R2_FB2 CAN_F2R2_FB2_Msk /*!<Filter bit 2 */
  4444. #define CAN_F2R2_FB3_Pos (3U)
  4445. #define CAN_F2R2_FB3_Msk (0x1U << CAN_F2R2_FB3_Pos) /*!< 0x00000008 */
  4446. #define CAN_F2R2_FB3 CAN_F2R2_FB3_Msk /*!<Filter bit 3 */
  4447. #define CAN_F2R2_FB4_Pos (4U)
  4448. #define CAN_F2R2_FB4_Msk (0x1U << CAN_F2R2_FB4_Pos) /*!< 0x00000010 */
  4449. #define CAN_F2R2_FB4 CAN_F2R2_FB4_Msk /*!<Filter bit 4 */
  4450. #define CAN_F2R2_FB5_Pos (5U)
  4451. #define CAN_F2R2_FB5_Msk (0x1U << CAN_F2R2_FB5_Pos) /*!< 0x00000020 */
  4452. #define CAN_F2R2_FB5 CAN_F2R2_FB5_Msk /*!<Filter bit 5 */
  4453. #define CAN_F2R2_FB6_Pos (6U)
  4454. #define CAN_F2R2_FB6_Msk (0x1U << CAN_F2R2_FB6_Pos) /*!< 0x00000040 */
  4455. #define CAN_F2R2_FB6 CAN_F2R2_FB6_Msk /*!<Filter bit 6 */
  4456. #define CAN_F2R2_FB7_Pos (7U)
  4457. #define CAN_F2R2_FB7_Msk (0x1U << CAN_F2R2_FB7_Pos) /*!< 0x00000080 */
  4458. #define CAN_F2R2_FB7 CAN_F2R2_FB7_Msk /*!<Filter bit 7 */
  4459. #define CAN_F2R2_FB8_Pos (8U)
  4460. #define CAN_F2R2_FB8_Msk (0x1U << CAN_F2R2_FB8_Pos) /*!< 0x00000100 */
  4461. #define CAN_F2R2_FB8 CAN_F2R2_FB8_Msk /*!<Filter bit 8 */
  4462. #define CAN_F2R2_FB9_Pos (9U)
  4463. #define CAN_F2R2_FB9_Msk (0x1U << CAN_F2R2_FB9_Pos) /*!< 0x00000200 */
  4464. #define CAN_F2R2_FB9 CAN_F2R2_FB9_Msk /*!<Filter bit 9 */
  4465. #define CAN_F2R2_FB10_Pos (10U)
  4466. #define CAN_F2R2_FB10_Msk (0x1U << CAN_F2R2_FB10_Pos) /*!< 0x00000400 */
  4467. #define CAN_F2R2_FB10 CAN_F2R2_FB10_Msk /*!<Filter bit 10 */
  4468. #define CAN_F2R2_FB11_Pos (11U)
  4469. #define CAN_F2R2_FB11_Msk (0x1U << CAN_F2R2_FB11_Pos) /*!< 0x00000800 */
  4470. #define CAN_F2R2_FB11 CAN_F2R2_FB11_Msk /*!<Filter bit 11 */
  4471. #define CAN_F2R2_FB12_Pos (12U)
  4472. #define CAN_F2R2_FB12_Msk (0x1U << CAN_F2R2_FB12_Pos) /*!< 0x00001000 */
  4473. #define CAN_F2R2_FB12 CAN_F2R2_FB12_Msk /*!<Filter bit 12 */
  4474. #define CAN_F2R2_FB13_Pos (13U)
  4475. #define CAN_F2R2_FB13_Msk (0x1U << CAN_F2R2_FB13_Pos) /*!< 0x00002000 */
  4476. #define CAN_F2R2_FB13 CAN_F2R2_FB13_Msk /*!<Filter bit 13 */
  4477. #define CAN_F2R2_FB14_Pos (14U)
  4478. #define CAN_F2R2_FB14_Msk (0x1U << CAN_F2R2_FB14_Pos) /*!< 0x00004000 */
  4479. #define CAN_F2R2_FB14 CAN_F2R2_FB14_Msk /*!<Filter bit 14 */
  4480. #define CAN_F2R2_FB15_Pos (15U)
  4481. #define CAN_F2R2_FB15_Msk (0x1U << CAN_F2R2_FB15_Pos) /*!< 0x00008000 */
  4482. #define CAN_F2R2_FB15 CAN_F2R2_FB15_Msk /*!<Filter bit 15 */
  4483. #define CAN_F2R2_FB16_Pos (16U)
  4484. #define CAN_F2R2_FB16_Msk (0x1U << CAN_F2R2_FB16_Pos) /*!< 0x00010000 */
  4485. #define CAN_F2R2_FB16 CAN_F2R2_FB16_Msk /*!<Filter bit 16 */
  4486. #define CAN_F2R2_FB17_Pos (17U)
  4487. #define CAN_F2R2_FB17_Msk (0x1U << CAN_F2R2_FB17_Pos) /*!< 0x00020000 */
  4488. #define CAN_F2R2_FB17 CAN_F2R2_FB17_Msk /*!<Filter bit 17 */
  4489. #define CAN_F2R2_FB18_Pos (18U)
  4490. #define CAN_F2R2_FB18_Msk (0x1U << CAN_F2R2_FB18_Pos) /*!< 0x00040000 */
  4491. #define CAN_F2R2_FB18 CAN_F2R2_FB18_Msk /*!<Filter bit 18 */
  4492. #define CAN_F2R2_FB19_Pos (19U)
  4493. #define CAN_F2R2_FB19_Msk (0x1U << CAN_F2R2_FB19_Pos) /*!< 0x00080000 */
  4494. #define CAN_F2R2_FB19 CAN_F2R2_FB19_Msk /*!<Filter bit 19 */
  4495. #define CAN_F2R2_FB20_Pos (20U)
  4496. #define CAN_F2R2_FB20_Msk (0x1U << CAN_F2R2_FB20_Pos) /*!< 0x00100000 */
  4497. #define CAN_F2R2_FB20 CAN_F2R2_FB20_Msk /*!<Filter bit 20 */
  4498. #define CAN_F2R2_FB21_Pos (21U)
  4499. #define CAN_F2R2_FB21_Msk (0x1U << CAN_F2R2_FB21_Pos) /*!< 0x00200000 */
  4500. #define CAN_F2R2_FB21 CAN_F2R2_FB21_Msk /*!<Filter bit 21 */
  4501. #define CAN_F2R2_FB22_Pos (22U)
  4502. #define CAN_F2R2_FB22_Msk (0x1U << CAN_F2R2_FB22_Pos) /*!< 0x00400000 */
  4503. #define CAN_F2R2_FB22 CAN_F2R2_FB22_Msk /*!<Filter bit 22 */
  4504. #define CAN_F2R2_FB23_Pos (23U)
  4505. #define CAN_F2R2_FB23_Msk (0x1U << CAN_F2R2_FB23_Pos) /*!< 0x00800000 */
  4506. #define CAN_F2R2_FB23 CAN_F2R2_FB23_Msk /*!<Filter bit 23 */
  4507. #define CAN_F2R2_FB24_Pos (24U)
  4508. #define CAN_F2R2_FB24_Msk (0x1U << CAN_F2R2_FB24_Pos) /*!< 0x01000000 */
  4509. #define CAN_F2R2_FB24 CAN_F2R2_FB24_Msk /*!<Filter bit 24 */
  4510. #define CAN_F2R2_FB25_Pos (25U)
  4511. #define CAN_F2R2_FB25_Msk (0x1U << CAN_F2R2_FB25_Pos) /*!< 0x02000000 */
  4512. #define CAN_F2R2_FB25 CAN_F2R2_FB25_Msk /*!<Filter bit 25 */
  4513. #define CAN_F2R2_FB26_Pos (26U)
  4514. #define CAN_F2R2_FB26_Msk (0x1U << CAN_F2R2_FB26_Pos) /*!< 0x04000000 */
  4515. #define CAN_F2R2_FB26 CAN_F2R2_FB26_Msk /*!<Filter bit 26 */
  4516. #define CAN_F2R2_FB27_Pos (27U)
  4517. #define CAN_F2R2_FB27_Msk (0x1U << CAN_F2R2_FB27_Pos) /*!< 0x08000000 */
  4518. #define CAN_F2R2_FB27 CAN_F2R2_FB27_Msk /*!<Filter bit 27 */
  4519. #define CAN_F2R2_FB28_Pos (28U)
  4520. #define CAN_F2R2_FB28_Msk (0x1U << CAN_F2R2_FB28_Pos) /*!< 0x10000000 */
  4521. #define CAN_F2R2_FB28 CAN_F2R2_FB28_Msk /*!<Filter bit 28 */
  4522. #define CAN_F2R2_FB29_Pos (29U)
  4523. #define CAN_F2R2_FB29_Msk (0x1U << CAN_F2R2_FB29_Pos) /*!< 0x20000000 */
  4524. #define CAN_F2R2_FB29 CAN_F2R2_FB29_Msk /*!<Filter bit 29 */
  4525. #define CAN_F2R2_FB30_Pos (30U)
  4526. #define CAN_F2R2_FB30_Msk (0x1U << CAN_F2R2_FB30_Pos) /*!< 0x40000000 */
  4527. #define CAN_F2R2_FB30 CAN_F2R2_FB30_Msk /*!<Filter bit 30 */
  4528. #define CAN_F2R2_FB31_Pos (31U)
  4529. #define CAN_F2R2_FB31_Msk (0x1U << CAN_F2R2_FB31_Pos) /*!< 0x80000000 */
  4530. #define CAN_F2R2_FB31 CAN_F2R2_FB31_Msk /*!<Filter bit 31 */
  4531. /******************* Bit definition for CAN_F3R2 register *******************/
  4532. #define CAN_F3R2_FB0_Pos (0U)
  4533. #define CAN_F3R2_FB0_Msk (0x1U << CAN_F3R2_FB0_Pos) /*!< 0x00000001 */
  4534. #define CAN_F3R2_FB0 CAN_F3R2_FB0_Msk /*!<Filter bit 0 */
  4535. #define CAN_F3R2_FB1_Pos (1U)
  4536. #define CAN_F3R2_FB1_Msk (0x1U << CAN_F3R2_FB1_Pos) /*!< 0x00000002 */
  4537. #define CAN_F3R2_FB1 CAN_F3R2_FB1_Msk /*!<Filter bit 1 */
  4538. #define CAN_F3R2_FB2_Pos (2U)
  4539. #define CAN_F3R2_FB2_Msk (0x1U << CAN_F3R2_FB2_Pos) /*!< 0x00000004 */
  4540. #define CAN_F3R2_FB2 CAN_F3R2_FB2_Msk /*!<Filter bit 2 */
  4541. #define CAN_F3R2_FB3_Pos (3U)
  4542. #define CAN_F3R2_FB3_Msk (0x1U << CAN_F3R2_FB3_Pos) /*!< 0x00000008 */
  4543. #define CAN_F3R2_FB3 CAN_F3R2_FB3_Msk /*!<Filter bit 3 */
  4544. #define CAN_F3R2_FB4_Pos (4U)
  4545. #define CAN_F3R2_FB4_Msk (0x1U << CAN_F3R2_FB4_Pos) /*!< 0x00000010 */
  4546. #define CAN_F3R2_FB4 CAN_F3R2_FB4_Msk /*!<Filter bit 4 */
  4547. #define CAN_F3R2_FB5_Pos (5U)
  4548. #define CAN_F3R2_FB5_Msk (0x1U << CAN_F3R2_FB5_Pos) /*!< 0x00000020 */
  4549. #define CAN_F3R2_FB5 CAN_F3R2_FB5_Msk /*!<Filter bit 5 */
  4550. #define CAN_F3R2_FB6_Pos (6U)
  4551. #define CAN_F3R2_FB6_Msk (0x1U << CAN_F3R2_FB6_Pos) /*!< 0x00000040 */
  4552. #define CAN_F3R2_FB6 CAN_F3R2_FB6_Msk /*!<Filter bit 6 */
  4553. #define CAN_F3R2_FB7_Pos (7U)
  4554. #define CAN_F3R2_FB7_Msk (0x1U << CAN_F3R2_FB7_Pos) /*!< 0x00000080 */
  4555. #define CAN_F3R2_FB7 CAN_F3R2_FB7_Msk /*!<Filter bit 7 */
  4556. #define CAN_F3R2_FB8_Pos (8U)
  4557. #define CAN_F3R2_FB8_Msk (0x1U << CAN_F3R2_FB8_Pos) /*!< 0x00000100 */
  4558. #define CAN_F3R2_FB8 CAN_F3R2_FB8_Msk /*!<Filter bit 8 */
  4559. #define CAN_F3R2_FB9_Pos (9U)
  4560. #define CAN_F3R2_FB9_Msk (0x1U << CAN_F3R2_FB9_Pos) /*!< 0x00000200 */
  4561. #define CAN_F3R2_FB9 CAN_F3R2_FB9_Msk /*!<Filter bit 9 */
  4562. #define CAN_F3R2_FB10_Pos (10U)
  4563. #define CAN_F3R2_FB10_Msk (0x1U << CAN_F3R2_FB10_Pos) /*!< 0x00000400 */
  4564. #define CAN_F3R2_FB10 CAN_F3R2_FB10_Msk /*!<Filter bit 10 */
  4565. #define CAN_F3R2_FB11_Pos (11U)
  4566. #define CAN_F3R2_FB11_Msk (0x1U << CAN_F3R2_FB11_Pos) /*!< 0x00000800 */
  4567. #define CAN_F3R2_FB11 CAN_F3R2_FB11_Msk /*!<Filter bit 11 */
  4568. #define CAN_F3R2_FB12_Pos (12U)
  4569. #define CAN_F3R2_FB12_Msk (0x1U << CAN_F3R2_FB12_Pos) /*!< 0x00001000 */
  4570. #define CAN_F3R2_FB12 CAN_F3R2_FB12_Msk /*!<Filter bit 12 */
  4571. #define CAN_F3R2_FB13_Pos (13U)
  4572. #define CAN_F3R2_FB13_Msk (0x1U << CAN_F3R2_FB13_Pos) /*!< 0x00002000 */
  4573. #define CAN_F3R2_FB13 CAN_F3R2_FB13_Msk /*!<Filter bit 13 */
  4574. #define CAN_F3R2_FB14_Pos (14U)
  4575. #define CAN_F3R2_FB14_Msk (0x1U << CAN_F3R2_FB14_Pos) /*!< 0x00004000 */
  4576. #define CAN_F3R2_FB14 CAN_F3R2_FB14_Msk /*!<Filter bit 14 */
  4577. #define CAN_F3R2_FB15_Pos (15U)
  4578. #define CAN_F3R2_FB15_Msk (0x1U << CAN_F3R2_FB15_Pos) /*!< 0x00008000 */
  4579. #define CAN_F3R2_FB15 CAN_F3R2_FB15_Msk /*!<Filter bit 15 */
  4580. #define CAN_F3R2_FB16_Pos (16U)
  4581. #define CAN_F3R2_FB16_Msk (0x1U << CAN_F3R2_FB16_Pos) /*!< 0x00010000 */
  4582. #define CAN_F3R2_FB16 CAN_F3R2_FB16_Msk /*!<Filter bit 16 */
  4583. #define CAN_F3R2_FB17_Pos (17U)
  4584. #define CAN_F3R2_FB17_Msk (0x1U << CAN_F3R2_FB17_Pos) /*!< 0x00020000 */
  4585. #define CAN_F3R2_FB17 CAN_F3R2_FB17_Msk /*!<Filter bit 17 */
  4586. #define CAN_F3R2_FB18_Pos (18U)
  4587. #define CAN_F3R2_FB18_Msk (0x1U << CAN_F3R2_FB18_Pos) /*!< 0x00040000 */
  4588. #define CAN_F3R2_FB18 CAN_F3R2_FB18_Msk /*!<Filter bit 18 */
  4589. #define CAN_F3R2_FB19_Pos (19U)
  4590. #define CAN_F3R2_FB19_Msk (0x1U << CAN_F3R2_FB19_Pos) /*!< 0x00080000 */
  4591. #define CAN_F3R2_FB19 CAN_F3R2_FB19_Msk /*!<Filter bit 19 */
  4592. #define CAN_F3R2_FB20_Pos (20U)
  4593. #define CAN_F3R2_FB20_Msk (0x1U << CAN_F3R2_FB20_Pos) /*!< 0x00100000 */
  4594. #define CAN_F3R2_FB20 CAN_F3R2_FB20_Msk /*!<Filter bit 20 */
  4595. #define CAN_F3R2_FB21_Pos (21U)
  4596. #define CAN_F3R2_FB21_Msk (0x1U << CAN_F3R2_FB21_Pos) /*!< 0x00200000 */
  4597. #define CAN_F3R2_FB21 CAN_F3R2_FB21_Msk /*!<Filter bit 21 */
  4598. #define CAN_F3R2_FB22_Pos (22U)
  4599. #define CAN_F3R2_FB22_Msk (0x1U << CAN_F3R2_FB22_Pos) /*!< 0x00400000 */
  4600. #define CAN_F3R2_FB22 CAN_F3R2_FB22_Msk /*!<Filter bit 22 */
  4601. #define CAN_F3R2_FB23_Pos (23U)
  4602. #define CAN_F3R2_FB23_Msk (0x1U << CAN_F3R2_FB23_Pos) /*!< 0x00800000 */
  4603. #define CAN_F3R2_FB23 CAN_F3R2_FB23_Msk /*!<Filter bit 23 */
  4604. #define CAN_F3R2_FB24_Pos (24U)
  4605. #define CAN_F3R2_FB24_Msk (0x1U << CAN_F3R2_FB24_Pos) /*!< 0x01000000 */
  4606. #define CAN_F3R2_FB24 CAN_F3R2_FB24_Msk /*!<Filter bit 24 */
  4607. #define CAN_F3R2_FB25_Pos (25U)
  4608. #define CAN_F3R2_FB25_Msk (0x1U << CAN_F3R2_FB25_Pos) /*!< 0x02000000 */
  4609. #define CAN_F3R2_FB25 CAN_F3R2_FB25_Msk /*!<Filter bit 25 */
  4610. #define CAN_F3R2_FB26_Pos (26U)
  4611. #define CAN_F3R2_FB26_Msk (0x1U << CAN_F3R2_FB26_Pos) /*!< 0x04000000 */
  4612. #define CAN_F3R2_FB26 CAN_F3R2_FB26_Msk /*!<Filter bit 26 */
  4613. #define CAN_F3R2_FB27_Pos (27U)
  4614. #define CAN_F3R2_FB27_Msk (0x1U << CAN_F3R2_FB27_Pos) /*!< 0x08000000 */
  4615. #define CAN_F3R2_FB27 CAN_F3R2_FB27_Msk /*!<Filter bit 27 */
  4616. #define CAN_F3R2_FB28_Pos (28U)
  4617. #define CAN_F3R2_FB28_Msk (0x1U << CAN_F3R2_FB28_Pos) /*!< 0x10000000 */
  4618. #define CAN_F3R2_FB28 CAN_F3R2_FB28_Msk /*!<Filter bit 28 */
  4619. #define CAN_F3R2_FB29_Pos (29U)
  4620. #define CAN_F3R2_FB29_Msk (0x1U << CAN_F3R2_FB29_Pos) /*!< 0x20000000 */
  4621. #define CAN_F3R2_FB29 CAN_F3R2_FB29_Msk /*!<Filter bit 29 */
  4622. #define CAN_F3R2_FB30_Pos (30U)
  4623. #define CAN_F3R2_FB30_Msk (0x1U << CAN_F3R2_FB30_Pos) /*!< 0x40000000 */
  4624. #define CAN_F3R2_FB30 CAN_F3R2_FB30_Msk /*!<Filter bit 30 */
  4625. #define CAN_F3R2_FB31_Pos (31U)
  4626. #define CAN_F3R2_FB31_Msk (0x1U << CAN_F3R2_FB31_Pos) /*!< 0x80000000 */
  4627. #define CAN_F3R2_FB31 CAN_F3R2_FB31_Msk /*!<Filter bit 31 */
  4628. /******************* Bit definition for CAN_F4R2 register *******************/
  4629. #define CAN_F4R2_FB0_Pos (0U)
  4630. #define CAN_F4R2_FB0_Msk (0x1U << CAN_F4R2_FB0_Pos) /*!< 0x00000001 */
  4631. #define CAN_F4R2_FB0 CAN_F4R2_FB0_Msk /*!<Filter bit 0 */
  4632. #define CAN_F4R2_FB1_Pos (1U)
  4633. #define CAN_F4R2_FB1_Msk (0x1U << CAN_F4R2_FB1_Pos) /*!< 0x00000002 */
  4634. #define CAN_F4R2_FB1 CAN_F4R2_FB1_Msk /*!<Filter bit 1 */
  4635. #define CAN_F4R2_FB2_Pos (2U)
  4636. #define CAN_F4R2_FB2_Msk (0x1U << CAN_F4R2_FB2_Pos) /*!< 0x00000004 */
  4637. #define CAN_F4R2_FB2 CAN_F4R2_FB2_Msk /*!<Filter bit 2 */
  4638. #define CAN_F4R2_FB3_Pos (3U)
  4639. #define CAN_F4R2_FB3_Msk (0x1U << CAN_F4R2_FB3_Pos) /*!< 0x00000008 */
  4640. #define CAN_F4R2_FB3 CAN_F4R2_FB3_Msk /*!<Filter bit 3 */
  4641. #define CAN_F4R2_FB4_Pos (4U)
  4642. #define CAN_F4R2_FB4_Msk (0x1U << CAN_F4R2_FB4_Pos) /*!< 0x00000010 */
  4643. #define CAN_F4R2_FB4 CAN_F4R2_FB4_Msk /*!<Filter bit 4 */
  4644. #define CAN_F4R2_FB5_Pos (5U)
  4645. #define CAN_F4R2_FB5_Msk (0x1U << CAN_F4R2_FB5_Pos) /*!< 0x00000020 */
  4646. #define CAN_F4R2_FB5 CAN_F4R2_FB5_Msk /*!<Filter bit 5 */
  4647. #define CAN_F4R2_FB6_Pos (6U)
  4648. #define CAN_F4R2_FB6_Msk (0x1U << CAN_F4R2_FB6_Pos) /*!< 0x00000040 */
  4649. #define CAN_F4R2_FB6 CAN_F4R2_FB6_Msk /*!<Filter bit 6 */
  4650. #define CAN_F4R2_FB7_Pos (7U)
  4651. #define CAN_F4R2_FB7_Msk (0x1U << CAN_F4R2_FB7_Pos) /*!< 0x00000080 */
  4652. #define CAN_F4R2_FB7 CAN_F4R2_FB7_Msk /*!<Filter bit 7 */
  4653. #define CAN_F4R2_FB8_Pos (8U)
  4654. #define CAN_F4R2_FB8_Msk (0x1U << CAN_F4R2_FB8_Pos) /*!< 0x00000100 */
  4655. #define CAN_F4R2_FB8 CAN_F4R2_FB8_Msk /*!<Filter bit 8 */
  4656. #define CAN_F4R2_FB9_Pos (9U)
  4657. #define CAN_F4R2_FB9_Msk (0x1U << CAN_F4R2_FB9_Pos) /*!< 0x00000200 */
  4658. #define CAN_F4R2_FB9 CAN_F4R2_FB9_Msk /*!<Filter bit 9 */
  4659. #define CAN_F4R2_FB10_Pos (10U)
  4660. #define CAN_F4R2_FB10_Msk (0x1U << CAN_F4R2_FB10_Pos) /*!< 0x00000400 */
  4661. #define CAN_F4R2_FB10 CAN_F4R2_FB10_Msk /*!<Filter bit 10 */
  4662. #define CAN_F4R2_FB11_Pos (11U)
  4663. #define CAN_F4R2_FB11_Msk (0x1U << CAN_F4R2_FB11_Pos) /*!< 0x00000800 */
  4664. #define CAN_F4R2_FB11 CAN_F4R2_FB11_Msk /*!<Filter bit 11 */
  4665. #define CAN_F4R2_FB12_Pos (12U)
  4666. #define CAN_F4R2_FB12_Msk (0x1U << CAN_F4R2_FB12_Pos) /*!< 0x00001000 */
  4667. #define CAN_F4R2_FB12 CAN_F4R2_FB12_Msk /*!<Filter bit 12 */
  4668. #define CAN_F4R2_FB13_Pos (13U)
  4669. #define CAN_F4R2_FB13_Msk (0x1U << CAN_F4R2_FB13_Pos) /*!< 0x00002000 */
  4670. #define CAN_F4R2_FB13 CAN_F4R2_FB13_Msk /*!<Filter bit 13 */
  4671. #define CAN_F4R2_FB14_Pos (14U)
  4672. #define CAN_F4R2_FB14_Msk (0x1U << CAN_F4R2_FB14_Pos) /*!< 0x00004000 */
  4673. #define CAN_F4R2_FB14 CAN_F4R2_FB14_Msk /*!<Filter bit 14 */
  4674. #define CAN_F4R2_FB15_Pos (15U)
  4675. #define CAN_F4R2_FB15_Msk (0x1U << CAN_F4R2_FB15_Pos) /*!< 0x00008000 */
  4676. #define CAN_F4R2_FB15 CAN_F4R2_FB15_Msk /*!<Filter bit 15 */
  4677. #define CAN_F4R2_FB16_Pos (16U)
  4678. #define CAN_F4R2_FB16_Msk (0x1U << CAN_F4R2_FB16_Pos) /*!< 0x00010000 */
  4679. #define CAN_F4R2_FB16 CAN_F4R2_FB16_Msk /*!<Filter bit 16 */
  4680. #define CAN_F4R2_FB17_Pos (17U)
  4681. #define CAN_F4R2_FB17_Msk (0x1U << CAN_F4R2_FB17_Pos) /*!< 0x00020000 */
  4682. #define CAN_F4R2_FB17 CAN_F4R2_FB17_Msk /*!<Filter bit 17 */
  4683. #define CAN_F4R2_FB18_Pos (18U)
  4684. #define CAN_F4R2_FB18_Msk (0x1U << CAN_F4R2_FB18_Pos) /*!< 0x00040000 */
  4685. #define CAN_F4R2_FB18 CAN_F4R2_FB18_Msk /*!<Filter bit 18 */
  4686. #define CAN_F4R2_FB19_Pos (19U)
  4687. #define CAN_F4R2_FB19_Msk (0x1U << CAN_F4R2_FB19_Pos) /*!< 0x00080000 */
  4688. #define CAN_F4R2_FB19 CAN_F4R2_FB19_Msk /*!<Filter bit 19 */
  4689. #define CAN_F4R2_FB20_Pos (20U)
  4690. #define CAN_F4R2_FB20_Msk (0x1U << CAN_F4R2_FB20_Pos) /*!< 0x00100000 */
  4691. #define CAN_F4R2_FB20 CAN_F4R2_FB20_Msk /*!<Filter bit 20 */
  4692. #define CAN_F4R2_FB21_Pos (21U)
  4693. #define CAN_F4R2_FB21_Msk (0x1U << CAN_F4R2_FB21_Pos) /*!< 0x00200000 */
  4694. #define CAN_F4R2_FB21 CAN_F4R2_FB21_Msk /*!<Filter bit 21 */
  4695. #define CAN_F4R2_FB22_Pos (22U)
  4696. #define CAN_F4R2_FB22_Msk (0x1U << CAN_F4R2_FB22_Pos) /*!< 0x00400000 */
  4697. #define CAN_F4R2_FB22 CAN_F4R2_FB22_Msk /*!<Filter bit 22 */
  4698. #define CAN_F4R2_FB23_Pos (23U)
  4699. #define CAN_F4R2_FB23_Msk (0x1U << CAN_F4R2_FB23_Pos) /*!< 0x00800000 */
  4700. #define CAN_F4R2_FB23 CAN_F4R2_FB23_Msk /*!<Filter bit 23 */
  4701. #define CAN_F4R2_FB24_Pos (24U)
  4702. #define CAN_F4R2_FB24_Msk (0x1U << CAN_F4R2_FB24_Pos) /*!< 0x01000000 */
  4703. #define CAN_F4R2_FB24 CAN_F4R2_FB24_Msk /*!<Filter bit 24 */
  4704. #define CAN_F4R2_FB25_Pos (25U)
  4705. #define CAN_F4R2_FB25_Msk (0x1U << CAN_F4R2_FB25_Pos) /*!< 0x02000000 */
  4706. #define CAN_F4R2_FB25 CAN_F4R2_FB25_Msk /*!<Filter bit 25 */
  4707. #define CAN_F4R2_FB26_Pos (26U)
  4708. #define CAN_F4R2_FB26_Msk (0x1U << CAN_F4R2_FB26_Pos) /*!< 0x04000000 */
  4709. #define CAN_F4R2_FB26 CAN_F4R2_FB26_Msk /*!<Filter bit 26 */
  4710. #define CAN_F4R2_FB27_Pos (27U)
  4711. #define CAN_F4R2_FB27_Msk (0x1U << CAN_F4R2_FB27_Pos) /*!< 0x08000000 */
  4712. #define CAN_F4R2_FB27 CAN_F4R2_FB27_Msk /*!<Filter bit 27 */
  4713. #define CAN_F4R2_FB28_Pos (28U)
  4714. #define CAN_F4R2_FB28_Msk (0x1U << CAN_F4R2_FB28_Pos) /*!< 0x10000000 */
  4715. #define CAN_F4R2_FB28 CAN_F4R2_FB28_Msk /*!<Filter bit 28 */
  4716. #define CAN_F4R2_FB29_Pos (29U)
  4717. #define CAN_F4R2_FB29_Msk (0x1U << CAN_F4R2_FB29_Pos) /*!< 0x20000000 */
  4718. #define CAN_F4R2_FB29 CAN_F4R2_FB29_Msk /*!<Filter bit 29 */
  4719. #define CAN_F4R2_FB30_Pos (30U)
  4720. #define CAN_F4R2_FB30_Msk (0x1U << CAN_F4R2_FB30_Pos) /*!< 0x40000000 */
  4721. #define CAN_F4R2_FB30 CAN_F4R2_FB30_Msk /*!<Filter bit 30 */
  4722. #define CAN_F4R2_FB31_Pos (31U)
  4723. #define CAN_F4R2_FB31_Msk (0x1U << CAN_F4R2_FB31_Pos) /*!< 0x80000000 */
  4724. #define CAN_F4R2_FB31 CAN_F4R2_FB31_Msk /*!<Filter bit 31 */
  4725. /******************* Bit definition for CAN_F5R2 register *******************/
  4726. #define CAN_F5R2_FB0_Pos (0U)
  4727. #define CAN_F5R2_FB0_Msk (0x1U << CAN_F5R2_FB0_Pos) /*!< 0x00000001 */
  4728. #define CAN_F5R2_FB0 CAN_F5R2_FB0_Msk /*!<Filter bit 0 */
  4729. #define CAN_F5R2_FB1_Pos (1U)
  4730. #define CAN_F5R2_FB1_Msk (0x1U << CAN_F5R2_FB1_Pos) /*!< 0x00000002 */
  4731. #define CAN_F5R2_FB1 CAN_F5R2_FB1_Msk /*!<Filter bit 1 */
  4732. #define CAN_F5R2_FB2_Pos (2U)
  4733. #define CAN_F5R2_FB2_Msk (0x1U << CAN_F5R2_FB2_Pos) /*!< 0x00000004 */
  4734. #define CAN_F5R2_FB2 CAN_F5R2_FB2_Msk /*!<Filter bit 2 */
  4735. #define CAN_F5R2_FB3_Pos (3U)
  4736. #define CAN_F5R2_FB3_Msk (0x1U << CAN_F5R2_FB3_Pos) /*!< 0x00000008 */
  4737. #define CAN_F5R2_FB3 CAN_F5R2_FB3_Msk /*!<Filter bit 3 */
  4738. #define CAN_F5R2_FB4_Pos (4U)
  4739. #define CAN_F5R2_FB4_Msk (0x1U << CAN_F5R2_FB4_Pos) /*!< 0x00000010 */
  4740. #define CAN_F5R2_FB4 CAN_F5R2_FB4_Msk /*!<Filter bit 4 */
  4741. #define CAN_F5R2_FB5_Pos (5U)
  4742. #define CAN_F5R2_FB5_Msk (0x1U << CAN_F5R2_FB5_Pos) /*!< 0x00000020 */
  4743. #define CAN_F5R2_FB5 CAN_F5R2_FB5_Msk /*!<Filter bit 5 */
  4744. #define CAN_F5R2_FB6_Pos (6U)
  4745. #define CAN_F5R2_FB6_Msk (0x1U << CAN_F5R2_FB6_Pos) /*!< 0x00000040 */
  4746. #define CAN_F5R2_FB6 CAN_F5R2_FB6_Msk /*!<Filter bit 6 */
  4747. #define CAN_F5R2_FB7_Pos (7U)
  4748. #define CAN_F5R2_FB7_Msk (0x1U << CAN_F5R2_FB7_Pos) /*!< 0x00000080 */
  4749. #define CAN_F5R2_FB7 CAN_F5R2_FB7_Msk /*!<Filter bit 7 */
  4750. #define CAN_F5R2_FB8_Pos (8U)
  4751. #define CAN_F5R2_FB8_Msk (0x1U << CAN_F5R2_FB8_Pos) /*!< 0x00000100 */
  4752. #define CAN_F5R2_FB8 CAN_F5R2_FB8_Msk /*!<Filter bit 8 */
  4753. #define CAN_F5R2_FB9_Pos (9U)
  4754. #define CAN_F5R2_FB9_Msk (0x1U << CAN_F5R2_FB9_Pos) /*!< 0x00000200 */
  4755. #define CAN_F5R2_FB9 CAN_F5R2_FB9_Msk /*!<Filter bit 9 */
  4756. #define CAN_F5R2_FB10_Pos (10U)
  4757. #define CAN_F5R2_FB10_Msk (0x1U << CAN_F5R2_FB10_Pos) /*!< 0x00000400 */
  4758. #define CAN_F5R2_FB10 CAN_F5R2_FB10_Msk /*!<Filter bit 10 */
  4759. #define CAN_F5R2_FB11_Pos (11U)
  4760. #define CAN_F5R2_FB11_Msk (0x1U << CAN_F5R2_FB11_Pos) /*!< 0x00000800 */
  4761. #define CAN_F5R2_FB11 CAN_F5R2_FB11_Msk /*!<Filter bit 11 */
  4762. #define CAN_F5R2_FB12_Pos (12U)
  4763. #define CAN_F5R2_FB12_Msk (0x1U << CAN_F5R2_FB12_Pos) /*!< 0x00001000 */
  4764. #define CAN_F5R2_FB12 CAN_F5R2_FB12_Msk /*!<Filter bit 12 */
  4765. #define CAN_F5R2_FB13_Pos (13U)
  4766. #define CAN_F5R2_FB13_Msk (0x1U << CAN_F5R2_FB13_Pos) /*!< 0x00002000 */
  4767. #define CAN_F5R2_FB13 CAN_F5R2_FB13_Msk /*!<Filter bit 13 */
  4768. #define CAN_F5R2_FB14_Pos (14U)
  4769. #define CAN_F5R2_FB14_Msk (0x1U << CAN_F5R2_FB14_Pos) /*!< 0x00004000 */
  4770. #define CAN_F5R2_FB14 CAN_F5R2_FB14_Msk /*!<Filter bit 14 */
  4771. #define CAN_F5R2_FB15_Pos (15U)
  4772. #define CAN_F5R2_FB15_Msk (0x1U << CAN_F5R2_FB15_Pos) /*!< 0x00008000 */
  4773. #define CAN_F5R2_FB15 CAN_F5R2_FB15_Msk /*!<Filter bit 15 */
  4774. #define CAN_F5R2_FB16_Pos (16U)
  4775. #define CAN_F5R2_FB16_Msk (0x1U << CAN_F5R2_FB16_Pos) /*!< 0x00010000 */
  4776. #define CAN_F5R2_FB16 CAN_F5R2_FB16_Msk /*!<Filter bit 16 */
  4777. #define CAN_F5R2_FB17_Pos (17U)
  4778. #define CAN_F5R2_FB17_Msk (0x1U << CAN_F5R2_FB17_Pos) /*!< 0x00020000 */
  4779. #define CAN_F5R2_FB17 CAN_F5R2_FB17_Msk /*!<Filter bit 17 */
  4780. #define CAN_F5R2_FB18_Pos (18U)
  4781. #define CAN_F5R2_FB18_Msk (0x1U << CAN_F5R2_FB18_Pos) /*!< 0x00040000 */
  4782. #define CAN_F5R2_FB18 CAN_F5R2_FB18_Msk /*!<Filter bit 18 */
  4783. #define CAN_F5R2_FB19_Pos (19U)
  4784. #define CAN_F5R2_FB19_Msk (0x1U << CAN_F5R2_FB19_Pos) /*!< 0x00080000 */
  4785. #define CAN_F5R2_FB19 CAN_F5R2_FB19_Msk /*!<Filter bit 19 */
  4786. #define CAN_F5R2_FB20_Pos (20U)
  4787. #define CAN_F5R2_FB20_Msk (0x1U << CAN_F5R2_FB20_Pos) /*!< 0x00100000 */
  4788. #define CAN_F5R2_FB20 CAN_F5R2_FB20_Msk /*!<Filter bit 20 */
  4789. #define CAN_F5R2_FB21_Pos (21U)
  4790. #define CAN_F5R2_FB21_Msk (0x1U << CAN_F5R2_FB21_Pos) /*!< 0x00200000 */
  4791. #define CAN_F5R2_FB21 CAN_F5R2_FB21_Msk /*!<Filter bit 21 */
  4792. #define CAN_F5R2_FB22_Pos (22U)
  4793. #define CAN_F5R2_FB22_Msk (0x1U << CAN_F5R2_FB22_Pos) /*!< 0x00400000 */
  4794. #define CAN_F5R2_FB22 CAN_F5R2_FB22_Msk /*!<Filter bit 22 */
  4795. #define CAN_F5R2_FB23_Pos (23U)
  4796. #define CAN_F5R2_FB23_Msk (0x1U << CAN_F5R2_FB23_Pos) /*!< 0x00800000 */
  4797. #define CAN_F5R2_FB23 CAN_F5R2_FB23_Msk /*!<Filter bit 23 */
  4798. #define CAN_F5R2_FB24_Pos (24U)
  4799. #define CAN_F5R2_FB24_Msk (0x1U << CAN_F5R2_FB24_Pos) /*!< 0x01000000 */
  4800. #define CAN_F5R2_FB24 CAN_F5R2_FB24_Msk /*!<Filter bit 24 */
  4801. #define CAN_F5R2_FB25_Pos (25U)
  4802. #define CAN_F5R2_FB25_Msk (0x1U << CAN_F5R2_FB25_Pos) /*!< 0x02000000 */
  4803. #define CAN_F5R2_FB25 CAN_F5R2_FB25_Msk /*!<Filter bit 25 */
  4804. #define CAN_F5R2_FB26_Pos (26U)
  4805. #define CAN_F5R2_FB26_Msk (0x1U << CAN_F5R2_FB26_Pos) /*!< 0x04000000 */
  4806. #define CAN_F5R2_FB26 CAN_F5R2_FB26_Msk /*!<Filter bit 26 */
  4807. #define CAN_F5R2_FB27_Pos (27U)
  4808. #define CAN_F5R2_FB27_Msk (0x1U << CAN_F5R2_FB27_Pos) /*!< 0x08000000 */
  4809. #define CAN_F5R2_FB27 CAN_F5R2_FB27_Msk /*!<Filter bit 27 */
  4810. #define CAN_F5R2_FB28_Pos (28U)
  4811. #define CAN_F5R2_FB28_Msk (0x1U << CAN_F5R2_FB28_Pos) /*!< 0x10000000 */
  4812. #define CAN_F5R2_FB28 CAN_F5R2_FB28_Msk /*!<Filter bit 28 */
  4813. #define CAN_F5R2_FB29_Pos (29U)
  4814. #define CAN_F5R2_FB29_Msk (0x1U << CAN_F5R2_FB29_Pos) /*!< 0x20000000 */
  4815. #define CAN_F5R2_FB29 CAN_F5R2_FB29_Msk /*!<Filter bit 29 */
  4816. #define CAN_F5R2_FB30_Pos (30U)
  4817. #define CAN_F5R2_FB30_Msk (0x1U << CAN_F5R2_FB30_Pos) /*!< 0x40000000 */
  4818. #define CAN_F5R2_FB30 CAN_F5R2_FB30_Msk /*!<Filter bit 30 */
  4819. #define CAN_F5R2_FB31_Pos (31U)
  4820. #define CAN_F5R2_FB31_Msk (0x1U << CAN_F5R2_FB31_Pos) /*!< 0x80000000 */
  4821. #define CAN_F5R2_FB31 CAN_F5R2_FB31_Msk /*!<Filter bit 31 */
  4822. /******************* Bit definition for CAN_F6R2 register *******************/
  4823. #define CAN_F6R2_FB0_Pos (0U)
  4824. #define CAN_F6R2_FB0_Msk (0x1U << CAN_F6R2_FB0_Pos) /*!< 0x00000001 */
  4825. #define CAN_F6R2_FB0 CAN_F6R2_FB0_Msk /*!<Filter bit 0 */
  4826. #define CAN_F6R2_FB1_Pos (1U)
  4827. #define CAN_F6R2_FB1_Msk (0x1U << CAN_F6R2_FB1_Pos) /*!< 0x00000002 */
  4828. #define CAN_F6R2_FB1 CAN_F6R2_FB1_Msk /*!<Filter bit 1 */
  4829. #define CAN_F6R2_FB2_Pos (2U)
  4830. #define CAN_F6R2_FB2_Msk (0x1U << CAN_F6R2_FB2_Pos) /*!< 0x00000004 */
  4831. #define CAN_F6R2_FB2 CAN_F6R2_FB2_Msk /*!<Filter bit 2 */
  4832. #define CAN_F6R2_FB3_Pos (3U)
  4833. #define CAN_F6R2_FB3_Msk (0x1U << CAN_F6R2_FB3_Pos) /*!< 0x00000008 */
  4834. #define CAN_F6R2_FB3 CAN_F6R2_FB3_Msk /*!<Filter bit 3 */
  4835. #define CAN_F6R2_FB4_Pos (4U)
  4836. #define CAN_F6R2_FB4_Msk (0x1U << CAN_F6R2_FB4_Pos) /*!< 0x00000010 */
  4837. #define CAN_F6R2_FB4 CAN_F6R2_FB4_Msk /*!<Filter bit 4 */
  4838. #define CAN_F6R2_FB5_Pos (5U)
  4839. #define CAN_F6R2_FB5_Msk (0x1U << CAN_F6R2_FB5_Pos) /*!< 0x00000020 */
  4840. #define CAN_F6R2_FB5 CAN_F6R2_FB5_Msk /*!<Filter bit 5 */
  4841. #define CAN_F6R2_FB6_Pos (6U)
  4842. #define CAN_F6R2_FB6_Msk (0x1U << CAN_F6R2_FB6_Pos) /*!< 0x00000040 */
  4843. #define CAN_F6R2_FB6 CAN_F6R2_FB6_Msk /*!<Filter bit 6 */
  4844. #define CAN_F6R2_FB7_Pos (7U)
  4845. #define CAN_F6R2_FB7_Msk (0x1U << CAN_F6R2_FB7_Pos) /*!< 0x00000080 */
  4846. #define CAN_F6R2_FB7 CAN_F6R2_FB7_Msk /*!<Filter bit 7 */
  4847. #define CAN_F6R2_FB8_Pos (8U)
  4848. #define CAN_F6R2_FB8_Msk (0x1U << CAN_F6R2_FB8_Pos) /*!< 0x00000100 */
  4849. #define CAN_F6R2_FB8 CAN_F6R2_FB8_Msk /*!<Filter bit 8 */
  4850. #define CAN_F6R2_FB9_Pos (9U)
  4851. #define CAN_F6R2_FB9_Msk (0x1U << CAN_F6R2_FB9_Pos) /*!< 0x00000200 */
  4852. #define CAN_F6R2_FB9 CAN_F6R2_FB9_Msk /*!<Filter bit 9 */
  4853. #define CAN_F6R2_FB10_Pos (10U)
  4854. #define CAN_F6R2_FB10_Msk (0x1U << CAN_F6R2_FB10_Pos) /*!< 0x00000400 */
  4855. #define CAN_F6R2_FB10 CAN_F6R2_FB10_Msk /*!<Filter bit 10 */
  4856. #define CAN_F6R2_FB11_Pos (11U)
  4857. #define CAN_F6R2_FB11_Msk (0x1U << CAN_F6R2_FB11_Pos) /*!< 0x00000800 */
  4858. #define CAN_F6R2_FB11 CAN_F6R2_FB11_Msk /*!<Filter bit 11 */
  4859. #define CAN_F6R2_FB12_Pos (12U)
  4860. #define CAN_F6R2_FB12_Msk (0x1U << CAN_F6R2_FB12_Pos) /*!< 0x00001000 */
  4861. #define CAN_F6R2_FB12 CAN_F6R2_FB12_Msk /*!<Filter bit 12 */
  4862. #define CAN_F6R2_FB13_Pos (13U)
  4863. #define CAN_F6R2_FB13_Msk (0x1U << CAN_F6R2_FB13_Pos) /*!< 0x00002000 */
  4864. #define CAN_F6R2_FB13 CAN_F6R2_FB13_Msk /*!<Filter bit 13 */
  4865. #define CAN_F6R2_FB14_Pos (14U)
  4866. #define CAN_F6R2_FB14_Msk (0x1U << CAN_F6R2_FB14_Pos) /*!< 0x00004000 */
  4867. #define CAN_F6R2_FB14 CAN_F6R2_FB14_Msk /*!<Filter bit 14 */
  4868. #define CAN_F6R2_FB15_Pos (15U)
  4869. #define CAN_F6R2_FB15_Msk (0x1U << CAN_F6R2_FB15_Pos) /*!< 0x00008000 */
  4870. #define CAN_F6R2_FB15 CAN_F6R2_FB15_Msk /*!<Filter bit 15 */
  4871. #define CAN_F6R2_FB16_Pos (16U)
  4872. #define CAN_F6R2_FB16_Msk (0x1U << CAN_F6R2_FB16_Pos) /*!< 0x00010000 */
  4873. #define CAN_F6R2_FB16 CAN_F6R2_FB16_Msk /*!<Filter bit 16 */
  4874. #define CAN_F6R2_FB17_Pos (17U)
  4875. #define CAN_F6R2_FB17_Msk (0x1U << CAN_F6R2_FB17_Pos) /*!< 0x00020000 */
  4876. #define CAN_F6R2_FB17 CAN_F6R2_FB17_Msk /*!<Filter bit 17 */
  4877. #define CAN_F6R2_FB18_Pos (18U)
  4878. #define CAN_F6R2_FB18_Msk (0x1U << CAN_F6R2_FB18_Pos) /*!< 0x00040000 */
  4879. #define CAN_F6R2_FB18 CAN_F6R2_FB18_Msk /*!<Filter bit 18 */
  4880. #define CAN_F6R2_FB19_Pos (19U)
  4881. #define CAN_F6R2_FB19_Msk (0x1U << CAN_F6R2_FB19_Pos) /*!< 0x00080000 */
  4882. #define CAN_F6R2_FB19 CAN_F6R2_FB19_Msk /*!<Filter bit 19 */
  4883. #define CAN_F6R2_FB20_Pos (20U)
  4884. #define CAN_F6R2_FB20_Msk (0x1U << CAN_F6R2_FB20_Pos) /*!< 0x00100000 */
  4885. #define CAN_F6R2_FB20 CAN_F6R2_FB20_Msk /*!<Filter bit 20 */
  4886. #define CAN_F6R2_FB21_Pos (21U)
  4887. #define CAN_F6R2_FB21_Msk (0x1U << CAN_F6R2_FB21_Pos) /*!< 0x00200000 */
  4888. #define CAN_F6R2_FB21 CAN_F6R2_FB21_Msk /*!<Filter bit 21 */
  4889. #define CAN_F6R2_FB22_Pos (22U)
  4890. #define CAN_F6R2_FB22_Msk (0x1U << CAN_F6R2_FB22_Pos) /*!< 0x00400000 */
  4891. #define CAN_F6R2_FB22 CAN_F6R2_FB22_Msk /*!<Filter bit 22 */
  4892. #define CAN_F6R2_FB23_Pos (23U)
  4893. #define CAN_F6R2_FB23_Msk (0x1U << CAN_F6R2_FB23_Pos) /*!< 0x00800000 */
  4894. #define CAN_F6R2_FB23 CAN_F6R2_FB23_Msk /*!<Filter bit 23 */
  4895. #define CAN_F6R2_FB24_Pos (24U)
  4896. #define CAN_F6R2_FB24_Msk (0x1U << CAN_F6R2_FB24_Pos) /*!< 0x01000000 */
  4897. #define CAN_F6R2_FB24 CAN_F6R2_FB24_Msk /*!<Filter bit 24 */
  4898. #define CAN_F6R2_FB25_Pos (25U)
  4899. #define CAN_F6R2_FB25_Msk (0x1U << CAN_F6R2_FB25_Pos) /*!< 0x02000000 */
  4900. #define CAN_F6R2_FB25 CAN_F6R2_FB25_Msk /*!<Filter bit 25 */
  4901. #define CAN_F6R2_FB26_Pos (26U)
  4902. #define CAN_F6R2_FB26_Msk (0x1U << CAN_F6R2_FB26_Pos) /*!< 0x04000000 */
  4903. #define CAN_F6R2_FB26 CAN_F6R2_FB26_Msk /*!<Filter bit 26 */
  4904. #define CAN_F6R2_FB27_Pos (27U)
  4905. #define CAN_F6R2_FB27_Msk (0x1U << CAN_F6R2_FB27_Pos) /*!< 0x08000000 */
  4906. #define CAN_F6R2_FB27 CAN_F6R2_FB27_Msk /*!<Filter bit 27 */
  4907. #define CAN_F6R2_FB28_Pos (28U)
  4908. #define CAN_F6R2_FB28_Msk (0x1U << CAN_F6R2_FB28_Pos) /*!< 0x10000000 */
  4909. #define CAN_F6R2_FB28 CAN_F6R2_FB28_Msk /*!<Filter bit 28 */
  4910. #define CAN_F6R2_FB29_Pos (29U)
  4911. #define CAN_F6R2_FB29_Msk (0x1U << CAN_F6R2_FB29_Pos) /*!< 0x20000000 */
  4912. #define CAN_F6R2_FB29 CAN_F6R2_FB29_Msk /*!<Filter bit 29 */
  4913. #define CAN_F6R2_FB30_Pos (30U)
  4914. #define CAN_F6R2_FB30_Msk (0x1U << CAN_F6R2_FB30_Pos) /*!< 0x40000000 */
  4915. #define CAN_F6R2_FB30 CAN_F6R2_FB30_Msk /*!<Filter bit 30 */
  4916. #define CAN_F6R2_FB31_Pos (31U)
  4917. #define CAN_F6R2_FB31_Msk (0x1U << CAN_F6R2_FB31_Pos) /*!< 0x80000000 */
  4918. #define CAN_F6R2_FB31 CAN_F6R2_FB31_Msk /*!<Filter bit 31 */
  4919. /******************* Bit definition for CAN_F7R2 register *******************/
  4920. #define CAN_F7R2_FB0_Pos (0U)
  4921. #define CAN_F7R2_FB0_Msk (0x1U << CAN_F7R2_FB0_Pos) /*!< 0x00000001 */
  4922. #define CAN_F7R2_FB0 CAN_F7R2_FB0_Msk /*!<Filter bit 0 */
  4923. #define CAN_F7R2_FB1_Pos (1U)
  4924. #define CAN_F7R2_FB1_Msk (0x1U << CAN_F7R2_FB1_Pos) /*!< 0x00000002 */
  4925. #define CAN_F7R2_FB1 CAN_F7R2_FB1_Msk /*!<Filter bit 1 */
  4926. #define CAN_F7R2_FB2_Pos (2U)
  4927. #define CAN_F7R2_FB2_Msk (0x1U << CAN_F7R2_FB2_Pos) /*!< 0x00000004 */
  4928. #define CAN_F7R2_FB2 CAN_F7R2_FB2_Msk /*!<Filter bit 2 */
  4929. #define CAN_F7R2_FB3_Pos (3U)
  4930. #define CAN_F7R2_FB3_Msk (0x1U << CAN_F7R2_FB3_Pos) /*!< 0x00000008 */
  4931. #define CAN_F7R2_FB3 CAN_F7R2_FB3_Msk /*!<Filter bit 3 */
  4932. #define CAN_F7R2_FB4_Pos (4U)
  4933. #define CAN_F7R2_FB4_Msk (0x1U << CAN_F7R2_FB4_Pos) /*!< 0x00000010 */
  4934. #define CAN_F7R2_FB4 CAN_F7R2_FB4_Msk /*!<Filter bit 4 */
  4935. #define CAN_F7R2_FB5_Pos (5U)
  4936. #define CAN_F7R2_FB5_Msk (0x1U << CAN_F7R2_FB5_Pos) /*!< 0x00000020 */
  4937. #define CAN_F7R2_FB5 CAN_F7R2_FB5_Msk /*!<Filter bit 5 */
  4938. #define CAN_F7R2_FB6_Pos (6U)
  4939. #define CAN_F7R2_FB6_Msk (0x1U << CAN_F7R2_FB6_Pos) /*!< 0x00000040 */
  4940. #define CAN_F7R2_FB6 CAN_F7R2_FB6_Msk /*!<Filter bit 6 */
  4941. #define CAN_F7R2_FB7_Pos (7U)
  4942. #define CAN_F7R2_FB7_Msk (0x1U << CAN_F7R2_FB7_Pos) /*!< 0x00000080 */
  4943. #define CAN_F7R2_FB7 CAN_F7R2_FB7_Msk /*!<Filter bit 7 */
  4944. #define CAN_F7R2_FB8_Pos (8U)
  4945. #define CAN_F7R2_FB8_Msk (0x1U << CAN_F7R2_FB8_Pos) /*!< 0x00000100 */
  4946. #define CAN_F7R2_FB8 CAN_F7R2_FB8_Msk /*!<Filter bit 8 */
  4947. #define CAN_F7R2_FB9_Pos (9U)
  4948. #define CAN_F7R2_FB9_Msk (0x1U << CAN_F7R2_FB9_Pos) /*!< 0x00000200 */
  4949. #define CAN_F7R2_FB9 CAN_F7R2_FB9_Msk /*!<Filter bit 9 */
  4950. #define CAN_F7R2_FB10_Pos (10U)
  4951. #define CAN_F7R2_FB10_Msk (0x1U << CAN_F7R2_FB10_Pos) /*!< 0x00000400 */
  4952. #define CAN_F7R2_FB10 CAN_F7R2_FB10_Msk /*!<Filter bit 10 */
  4953. #define CAN_F7R2_FB11_Pos (11U)
  4954. #define CAN_F7R2_FB11_Msk (0x1U << CAN_F7R2_FB11_Pos) /*!< 0x00000800 */
  4955. #define CAN_F7R2_FB11 CAN_F7R2_FB11_Msk /*!<Filter bit 11 */
  4956. #define CAN_F7R2_FB12_Pos (12U)
  4957. #define CAN_F7R2_FB12_Msk (0x1U << CAN_F7R2_FB12_Pos) /*!< 0x00001000 */
  4958. #define CAN_F7R2_FB12 CAN_F7R2_FB12_Msk /*!<Filter bit 12 */
  4959. #define CAN_F7R2_FB13_Pos (13U)
  4960. #define CAN_F7R2_FB13_Msk (0x1U << CAN_F7R2_FB13_Pos) /*!< 0x00002000 */
  4961. #define CAN_F7R2_FB13 CAN_F7R2_FB13_Msk /*!<Filter bit 13 */
  4962. #define CAN_F7R2_FB14_Pos (14U)
  4963. #define CAN_F7R2_FB14_Msk (0x1U << CAN_F7R2_FB14_Pos) /*!< 0x00004000 */
  4964. #define CAN_F7R2_FB14 CAN_F7R2_FB14_Msk /*!<Filter bit 14 */
  4965. #define CAN_F7R2_FB15_Pos (15U)
  4966. #define CAN_F7R2_FB15_Msk (0x1U << CAN_F7R2_FB15_Pos) /*!< 0x00008000 */
  4967. #define CAN_F7R2_FB15 CAN_F7R2_FB15_Msk /*!<Filter bit 15 */
  4968. #define CAN_F7R2_FB16_Pos (16U)
  4969. #define CAN_F7R2_FB16_Msk (0x1U << CAN_F7R2_FB16_Pos) /*!< 0x00010000 */
  4970. #define CAN_F7R2_FB16 CAN_F7R2_FB16_Msk /*!<Filter bit 16 */
  4971. #define CAN_F7R2_FB17_Pos (17U)
  4972. #define CAN_F7R2_FB17_Msk (0x1U << CAN_F7R2_FB17_Pos) /*!< 0x00020000 */
  4973. #define CAN_F7R2_FB17 CAN_F7R2_FB17_Msk /*!<Filter bit 17 */
  4974. #define CAN_F7R2_FB18_Pos (18U)
  4975. #define CAN_F7R2_FB18_Msk (0x1U << CAN_F7R2_FB18_Pos) /*!< 0x00040000 */
  4976. #define CAN_F7R2_FB18 CAN_F7R2_FB18_Msk /*!<Filter bit 18 */
  4977. #define CAN_F7R2_FB19_Pos (19U)
  4978. #define CAN_F7R2_FB19_Msk (0x1U << CAN_F7R2_FB19_Pos) /*!< 0x00080000 */
  4979. #define CAN_F7R2_FB19 CAN_F7R2_FB19_Msk /*!<Filter bit 19 */
  4980. #define CAN_F7R2_FB20_Pos (20U)
  4981. #define CAN_F7R2_FB20_Msk (0x1U << CAN_F7R2_FB20_Pos) /*!< 0x00100000 */
  4982. #define CAN_F7R2_FB20 CAN_F7R2_FB20_Msk /*!<Filter bit 20 */
  4983. #define CAN_F7R2_FB21_Pos (21U)
  4984. #define CAN_F7R2_FB21_Msk (0x1U << CAN_F7R2_FB21_Pos) /*!< 0x00200000 */
  4985. #define CAN_F7R2_FB21 CAN_F7R2_FB21_Msk /*!<Filter bit 21 */
  4986. #define CAN_F7R2_FB22_Pos (22U)
  4987. #define CAN_F7R2_FB22_Msk (0x1U << CAN_F7R2_FB22_Pos) /*!< 0x00400000 */
  4988. #define CAN_F7R2_FB22 CAN_F7R2_FB22_Msk /*!<Filter bit 22 */
  4989. #define CAN_F7R2_FB23_Pos (23U)
  4990. #define CAN_F7R2_FB23_Msk (0x1U << CAN_F7R2_FB23_Pos) /*!< 0x00800000 */
  4991. #define CAN_F7R2_FB23 CAN_F7R2_FB23_Msk /*!<Filter bit 23 */
  4992. #define CAN_F7R2_FB24_Pos (24U)
  4993. #define CAN_F7R2_FB24_Msk (0x1U << CAN_F7R2_FB24_Pos) /*!< 0x01000000 */
  4994. #define CAN_F7R2_FB24 CAN_F7R2_FB24_Msk /*!<Filter bit 24 */
  4995. #define CAN_F7R2_FB25_Pos (25U)
  4996. #define CAN_F7R2_FB25_Msk (0x1U << CAN_F7R2_FB25_Pos) /*!< 0x02000000 */
  4997. #define CAN_F7R2_FB25 CAN_F7R2_FB25_Msk /*!<Filter bit 25 */
  4998. #define CAN_F7R2_FB26_Pos (26U)
  4999. #define CAN_F7R2_FB26_Msk (0x1U << CAN_F7R2_FB26_Pos) /*!< 0x04000000 */
  5000. #define CAN_F7R2_FB26 CAN_F7R2_FB26_Msk /*!<Filter bit 26 */
  5001. #define CAN_F7R2_FB27_Pos (27U)
  5002. #define CAN_F7R2_FB27_Msk (0x1U << CAN_F7R2_FB27_Pos) /*!< 0x08000000 */
  5003. #define CAN_F7R2_FB27 CAN_F7R2_FB27_Msk /*!<Filter bit 27 */
  5004. #define CAN_F7R2_FB28_Pos (28U)
  5005. #define CAN_F7R2_FB28_Msk (0x1U << CAN_F7R2_FB28_Pos) /*!< 0x10000000 */
  5006. #define CAN_F7R2_FB28 CAN_F7R2_FB28_Msk /*!<Filter bit 28 */
  5007. #define CAN_F7R2_FB29_Pos (29U)
  5008. #define CAN_F7R2_FB29_Msk (0x1U << CAN_F7R2_FB29_Pos) /*!< 0x20000000 */
  5009. #define CAN_F7R2_FB29 CAN_F7R2_FB29_Msk /*!<Filter bit 29 */
  5010. #define CAN_F7R2_FB30_Pos (30U)
  5011. #define CAN_F7R2_FB30_Msk (0x1U << CAN_F7R2_FB30_Pos) /*!< 0x40000000 */
  5012. #define CAN_F7R2_FB30 CAN_F7R2_FB30_Msk /*!<Filter bit 30 */
  5013. #define CAN_F7R2_FB31_Pos (31U)
  5014. #define CAN_F7R2_FB31_Msk (0x1U << CAN_F7R2_FB31_Pos) /*!< 0x80000000 */
  5015. #define CAN_F7R2_FB31 CAN_F7R2_FB31_Msk /*!<Filter bit 31 */
  5016. /******************* Bit definition for CAN_F8R2 register *******************/
  5017. #define CAN_F8R2_FB0_Pos (0U)
  5018. #define CAN_F8R2_FB0_Msk (0x1U << CAN_F8R2_FB0_Pos) /*!< 0x00000001 */
  5019. #define CAN_F8R2_FB0 CAN_F8R2_FB0_Msk /*!<Filter bit 0 */
  5020. #define CAN_F8R2_FB1_Pos (1U)
  5021. #define CAN_F8R2_FB1_Msk (0x1U << CAN_F8R2_FB1_Pos) /*!< 0x00000002 */
  5022. #define CAN_F8R2_FB1 CAN_F8R2_FB1_Msk /*!<Filter bit 1 */
  5023. #define CAN_F8R2_FB2_Pos (2U)
  5024. #define CAN_F8R2_FB2_Msk (0x1U << CAN_F8R2_FB2_Pos) /*!< 0x00000004 */
  5025. #define CAN_F8R2_FB2 CAN_F8R2_FB2_Msk /*!<Filter bit 2 */
  5026. #define CAN_F8R2_FB3_Pos (3U)
  5027. #define CAN_F8R2_FB3_Msk (0x1U << CAN_F8R2_FB3_Pos) /*!< 0x00000008 */
  5028. #define CAN_F8R2_FB3 CAN_F8R2_FB3_Msk /*!<Filter bit 3 */
  5029. #define CAN_F8R2_FB4_Pos (4U)
  5030. #define CAN_F8R2_FB4_Msk (0x1U << CAN_F8R2_FB4_Pos) /*!< 0x00000010 */
  5031. #define CAN_F8R2_FB4 CAN_F8R2_FB4_Msk /*!<Filter bit 4 */
  5032. #define CAN_F8R2_FB5_Pos (5U)
  5033. #define CAN_F8R2_FB5_Msk (0x1U << CAN_F8R2_FB5_Pos) /*!< 0x00000020 */
  5034. #define CAN_F8R2_FB5 CAN_F8R2_FB5_Msk /*!<Filter bit 5 */
  5035. #define CAN_F8R2_FB6_Pos (6U)
  5036. #define CAN_F8R2_FB6_Msk (0x1U << CAN_F8R2_FB6_Pos) /*!< 0x00000040 */
  5037. #define CAN_F8R2_FB6 CAN_F8R2_FB6_Msk /*!<Filter bit 6 */
  5038. #define CAN_F8R2_FB7_Pos (7U)
  5039. #define CAN_F8R2_FB7_Msk (0x1U << CAN_F8R2_FB7_Pos) /*!< 0x00000080 */
  5040. #define CAN_F8R2_FB7 CAN_F8R2_FB7_Msk /*!<Filter bit 7 */
  5041. #define CAN_F8R2_FB8_Pos (8U)
  5042. #define CAN_F8R2_FB8_Msk (0x1U << CAN_F8R2_FB8_Pos) /*!< 0x00000100 */
  5043. #define CAN_F8R2_FB8 CAN_F8R2_FB8_Msk /*!<Filter bit 8 */
  5044. #define CAN_F8R2_FB9_Pos (9U)
  5045. #define CAN_F8R2_FB9_Msk (0x1U << CAN_F8R2_FB9_Pos) /*!< 0x00000200 */
  5046. #define CAN_F8R2_FB9 CAN_F8R2_FB9_Msk /*!<Filter bit 9 */
  5047. #define CAN_F8R2_FB10_Pos (10U)
  5048. #define CAN_F8R2_FB10_Msk (0x1U << CAN_F8R2_FB10_Pos) /*!< 0x00000400 */
  5049. #define CAN_F8R2_FB10 CAN_F8R2_FB10_Msk /*!<Filter bit 10 */
  5050. #define CAN_F8R2_FB11_Pos (11U)
  5051. #define CAN_F8R2_FB11_Msk (0x1U << CAN_F8R2_FB11_Pos) /*!< 0x00000800 */
  5052. #define CAN_F8R2_FB11 CAN_F8R2_FB11_Msk /*!<Filter bit 11 */
  5053. #define CAN_F8R2_FB12_Pos (12U)
  5054. #define CAN_F8R2_FB12_Msk (0x1U << CAN_F8R2_FB12_Pos) /*!< 0x00001000 */
  5055. #define CAN_F8R2_FB12 CAN_F8R2_FB12_Msk /*!<Filter bit 12 */
  5056. #define CAN_F8R2_FB13_Pos (13U)
  5057. #define CAN_F8R2_FB13_Msk (0x1U << CAN_F8R2_FB13_Pos) /*!< 0x00002000 */
  5058. #define CAN_F8R2_FB13 CAN_F8R2_FB13_Msk /*!<Filter bit 13 */
  5059. #define CAN_F8R2_FB14_Pos (14U)
  5060. #define CAN_F8R2_FB14_Msk (0x1U << CAN_F8R2_FB14_Pos) /*!< 0x00004000 */
  5061. #define CAN_F8R2_FB14 CAN_F8R2_FB14_Msk /*!<Filter bit 14 */
  5062. #define CAN_F8R2_FB15_Pos (15U)
  5063. #define CAN_F8R2_FB15_Msk (0x1U << CAN_F8R2_FB15_Pos) /*!< 0x00008000 */
  5064. #define CAN_F8R2_FB15 CAN_F8R2_FB15_Msk /*!<Filter bit 15 */
  5065. #define CAN_F8R2_FB16_Pos (16U)
  5066. #define CAN_F8R2_FB16_Msk (0x1U << CAN_F8R2_FB16_Pos) /*!< 0x00010000 */
  5067. #define CAN_F8R2_FB16 CAN_F8R2_FB16_Msk /*!<Filter bit 16 */
  5068. #define CAN_F8R2_FB17_Pos (17U)
  5069. #define CAN_F8R2_FB17_Msk (0x1U << CAN_F8R2_FB17_Pos) /*!< 0x00020000 */
  5070. #define CAN_F8R2_FB17 CAN_F8R2_FB17_Msk /*!<Filter bit 17 */
  5071. #define CAN_F8R2_FB18_Pos (18U)
  5072. #define CAN_F8R2_FB18_Msk (0x1U << CAN_F8R2_FB18_Pos) /*!< 0x00040000 */
  5073. #define CAN_F8R2_FB18 CAN_F8R2_FB18_Msk /*!<Filter bit 18 */
  5074. #define CAN_F8R2_FB19_Pos (19U)
  5075. #define CAN_F8R2_FB19_Msk (0x1U << CAN_F8R2_FB19_Pos) /*!< 0x00080000 */
  5076. #define CAN_F8R2_FB19 CAN_F8R2_FB19_Msk /*!<Filter bit 19 */
  5077. #define CAN_F8R2_FB20_Pos (20U)
  5078. #define CAN_F8R2_FB20_Msk (0x1U << CAN_F8R2_FB20_Pos) /*!< 0x00100000 */
  5079. #define CAN_F8R2_FB20 CAN_F8R2_FB20_Msk /*!<Filter bit 20 */
  5080. #define CAN_F8R2_FB21_Pos (21U)
  5081. #define CAN_F8R2_FB21_Msk (0x1U << CAN_F8R2_FB21_Pos) /*!< 0x00200000 */
  5082. #define CAN_F8R2_FB21 CAN_F8R2_FB21_Msk /*!<Filter bit 21 */
  5083. #define CAN_F8R2_FB22_Pos (22U)
  5084. #define CAN_F8R2_FB22_Msk (0x1U << CAN_F8R2_FB22_Pos) /*!< 0x00400000 */
  5085. #define CAN_F8R2_FB22 CAN_F8R2_FB22_Msk /*!<Filter bit 22 */
  5086. #define CAN_F8R2_FB23_Pos (23U)
  5087. #define CAN_F8R2_FB23_Msk (0x1U << CAN_F8R2_FB23_Pos) /*!< 0x00800000 */
  5088. #define CAN_F8R2_FB23 CAN_F8R2_FB23_Msk /*!<Filter bit 23 */
  5089. #define CAN_F8R2_FB24_Pos (24U)
  5090. #define CAN_F8R2_FB24_Msk (0x1U << CAN_F8R2_FB24_Pos) /*!< 0x01000000 */
  5091. #define CAN_F8R2_FB24 CAN_F8R2_FB24_Msk /*!<Filter bit 24 */
  5092. #define CAN_F8R2_FB25_Pos (25U)
  5093. #define CAN_F8R2_FB25_Msk (0x1U << CAN_F8R2_FB25_Pos) /*!< 0x02000000 */
  5094. #define CAN_F8R2_FB25 CAN_F8R2_FB25_Msk /*!<Filter bit 25 */
  5095. #define CAN_F8R2_FB26_Pos (26U)
  5096. #define CAN_F8R2_FB26_Msk (0x1U << CAN_F8R2_FB26_Pos) /*!< 0x04000000 */
  5097. #define CAN_F8R2_FB26 CAN_F8R2_FB26_Msk /*!<Filter bit 26 */
  5098. #define CAN_F8R2_FB27_Pos (27U)
  5099. #define CAN_F8R2_FB27_Msk (0x1U << CAN_F8R2_FB27_Pos) /*!< 0x08000000 */
  5100. #define CAN_F8R2_FB27 CAN_F8R2_FB27_Msk /*!<Filter bit 27 */
  5101. #define CAN_F8R2_FB28_Pos (28U)
  5102. #define CAN_F8R2_FB28_Msk (0x1U << CAN_F8R2_FB28_Pos) /*!< 0x10000000 */
  5103. #define CAN_F8R2_FB28 CAN_F8R2_FB28_Msk /*!<Filter bit 28 */
  5104. #define CAN_F8R2_FB29_Pos (29U)
  5105. #define CAN_F8R2_FB29_Msk (0x1U << CAN_F8R2_FB29_Pos) /*!< 0x20000000 */
  5106. #define CAN_F8R2_FB29 CAN_F8R2_FB29_Msk /*!<Filter bit 29 */
  5107. #define CAN_F8R2_FB30_Pos (30U)
  5108. #define CAN_F8R2_FB30_Msk (0x1U << CAN_F8R2_FB30_Pos) /*!< 0x40000000 */
  5109. #define CAN_F8R2_FB30 CAN_F8R2_FB30_Msk /*!<Filter bit 30 */
  5110. #define CAN_F8R2_FB31_Pos (31U)
  5111. #define CAN_F8R2_FB31_Msk (0x1U << CAN_F8R2_FB31_Pos) /*!< 0x80000000 */
  5112. #define CAN_F8R2_FB31 CAN_F8R2_FB31_Msk /*!<Filter bit 31 */
  5113. /******************* Bit definition for CAN_F9R2 register *******************/
  5114. #define CAN_F9R2_FB0_Pos (0U)
  5115. #define CAN_F9R2_FB0_Msk (0x1U << CAN_F9R2_FB0_Pos) /*!< 0x00000001 */
  5116. #define CAN_F9R2_FB0 CAN_F9R2_FB0_Msk /*!<Filter bit 0 */
  5117. #define CAN_F9R2_FB1_Pos (1U)
  5118. #define CAN_F9R2_FB1_Msk (0x1U << CAN_F9R2_FB1_Pos) /*!< 0x00000002 */
  5119. #define CAN_F9R2_FB1 CAN_F9R2_FB1_Msk /*!<Filter bit 1 */
  5120. #define CAN_F9R2_FB2_Pos (2U)
  5121. #define CAN_F9R2_FB2_Msk (0x1U << CAN_F9R2_FB2_Pos) /*!< 0x00000004 */
  5122. #define CAN_F9R2_FB2 CAN_F9R2_FB2_Msk /*!<Filter bit 2 */
  5123. #define CAN_F9R2_FB3_Pos (3U)
  5124. #define CAN_F9R2_FB3_Msk (0x1U << CAN_F9R2_FB3_Pos) /*!< 0x00000008 */
  5125. #define CAN_F9R2_FB3 CAN_F9R2_FB3_Msk /*!<Filter bit 3 */
  5126. #define CAN_F9R2_FB4_Pos (4U)
  5127. #define CAN_F9R2_FB4_Msk (0x1U << CAN_F9R2_FB4_Pos) /*!< 0x00000010 */
  5128. #define CAN_F9R2_FB4 CAN_F9R2_FB4_Msk /*!<Filter bit 4 */
  5129. #define CAN_F9R2_FB5_Pos (5U)
  5130. #define CAN_F9R2_FB5_Msk (0x1U << CAN_F9R2_FB5_Pos) /*!< 0x00000020 */
  5131. #define CAN_F9R2_FB5 CAN_F9R2_FB5_Msk /*!<Filter bit 5 */
  5132. #define CAN_F9R2_FB6_Pos (6U)
  5133. #define CAN_F9R2_FB6_Msk (0x1U << CAN_F9R2_FB6_Pos) /*!< 0x00000040 */
  5134. #define CAN_F9R2_FB6 CAN_F9R2_FB6_Msk /*!<Filter bit 6 */
  5135. #define CAN_F9R2_FB7_Pos (7U)
  5136. #define CAN_F9R2_FB7_Msk (0x1U << CAN_F9R2_FB7_Pos) /*!< 0x00000080 */
  5137. #define CAN_F9R2_FB7 CAN_F9R2_FB7_Msk /*!<Filter bit 7 */
  5138. #define CAN_F9R2_FB8_Pos (8U)
  5139. #define CAN_F9R2_FB8_Msk (0x1U << CAN_F9R2_FB8_Pos) /*!< 0x00000100 */
  5140. #define CAN_F9R2_FB8 CAN_F9R2_FB8_Msk /*!<Filter bit 8 */
  5141. #define CAN_F9R2_FB9_Pos (9U)
  5142. #define CAN_F9R2_FB9_Msk (0x1U << CAN_F9R2_FB9_Pos) /*!< 0x00000200 */
  5143. #define CAN_F9R2_FB9 CAN_F9R2_FB9_Msk /*!<Filter bit 9 */
  5144. #define CAN_F9R2_FB10_Pos (10U)
  5145. #define CAN_F9R2_FB10_Msk (0x1U << CAN_F9R2_FB10_Pos) /*!< 0x00000400 */
  5146. #define CAN_F9R2_FB10 CAN_F9R2_FB10_Msk /*!<Filter bit 10 */
  5147. #define CAN_F9R2_FB11_Pos (11U)
  5148. #define CAN_F9R2_FB11_Msk (0x1U << CAN_F9R2_FB11_Pos) /*!< 0x00000800 */
  5149. #define CAN_F9R2_FB11 CAN_F9R2_FB11_Msk /*!<Filter bit 11 */
  5150. #define CAN_F9R2_FB12_Pos (12U)
  5151. #define CAN_F9R2_FB12_Msk (0x1U << CAN_F9R2_FB12_Pos) /*!< 0x00001000 */
  5152. #define CAN_F9R2_FB12 CAN_F9R2_FB12_Msk /*!<Filter bit 12 */
  5153. #define CAN_F9R2_FB13_Pos (13U)
  5154. #define CAN_F9R2_FB13_Msk (0x1U << CAN_F9R2_FB13_Pos) /*!< 0x00002000 */
  5155. #define CAN_F9R2_FB13 CAN_F9R2_FB13_Msk /*!<Filter bit 13 */
  5156. #define CAN_F9R2_FB14_Pos (14U)
  5157. #define CAN_F9R2_FB14_Msk (0x1U << CAN_F9R2_FB14_Pos) /*!< 0x00004000 */
  5158. #define CAN_F9R2_FB14 CAN_F9R2_FB14_Msk /*!<Filter bit 14 */
  5159. #define CAN_F9R2_FB15_Pos (15U)
  5160. #define CAN_F9R2_FB15_Msk (0x1U << CAN_F9R2_FB15_Pos) /*!< 0x00008000 */
  5161. #define CAN_F9R2_FB15 CAN_F9R2_FB15_Msk /*!<Filter bit 15 */
  5162. #define CAN_F9R2_FB16_Pos (16U)
  5163. #define CAN_F9R2_FB16_Msk (0x1U << CAN_F9R2_FB16_Pos) /*!< 0x00010000 */
  5164. #define CAN_F9R2_FB16 CAN_F9R2_FB16_Msk /*!<Filter bit 16 */
  5165. #define CAN_F9R2_FB17_Pos (17U)
  5166. #define CAN_F9R2_FB17_Msk (0x1U << CAN_F9R2_FB17_Pos) /*!< 0x00020000 */
  5167. #define CAN_F9R2_FB17 CAN_F9R2_FB17_Msk /*!<Filter bit 17 */
  5168. #define CAN_F9R2_FB18_Pos (18U)
  5169. #define CAN_F9R2_FB18_Msk (0x1U << CAN_F9R2_FB18_Pos) /*!< 0x00040000 */
  5170. #define CAN_F9R2_FB18 CAN_F9R2_FB18_Msk /*!<Filter bit 18 */
  5171. #define CAN_F9R2_FB19_Pos (19U)
  5172. #define CAN_F9R2_FB19_Msk (0x1U << CAN_F9R2_FB19_Pos) /*!< 0x00080000 */
  5173. #define CAN_F9R2_FB19 CAN_F9R2_FB19_Msk /*!<Filter bit 19 */
  5174. #define CAN_F9R2_FB20_Pos (20U)
  5175. #define CAN_F9R2_FB20_Msk (0x1U << CAN_F9R2_FB20_Pos) /*!< 0x00100000 */
  5176. #define CAN_F9R2_FB20 CAN_F9R2_FB20_Msk /*!<Filter bit 20 */
  5177. #define CAN_F9R2_FB21_Pos (21U)
  5178. #define CAN_F9R2_FB21_Msk (0x1U << CAN_F9R2_FB21_Pos) /*!< 0x00200000 */
  5179. #define CAN_F9R2_FB21 CAN_F9R2_FB21_Msk /*!<Filter bit 21 */
  5180. #define CAN_F9R2_FB22_Pos (22U)
  5181. #define CAN_F9R2_FB22_Msk (0x1U << CAN_F9R2_FB22_Pos) /*!< 0x00400000 */
  5182. #define CAN_F9R2_FB22 CAN_F9R2_FB22_Msk /*!<Filter bit 22 */
  5183. #define CAN_F9R2_FB23_Pos (23U)
  5184. #define CAN_F9R2_FB23_Msk (0x1U << CAN_F9R2_FB23_Pos) /*!< 0x00800000 */
  5185. #define CAN_F9R2_FB23 CAN_F9R2_FB23_Msk /*!<Filter bit 23 */
  5186. #define CAN_F9R2_FB24_Pos (24U)
  5187. #define CAN_F9R2_FB24_Msk (0x1U << CAN_F9R2_FB24_Pos) /*!< 0x01000000 */
  5188. #define CAN_F9R2_FB24 CAN_F9R2_FB24_Msk /*!<Filter bit 24 */
  5189. #define CAN_F9R2_FB25_Pos (25U)
  5190. #define CAN_F9R2_FB25_Msk (0x1U << CAN_F9R2_FB25_Pos) /*!< 0x02000000 */
  5191. #define CAN_F9R2_FB25 CAN_F9R2_FB25_Msk /*!<Filter bit 25 */
  5192. #define CAN_F9R2_FB26_Pos (26U)
  5193. #define CAN_F9R2_FB26_Msk (0x1U << CAN_F9R2_FB26_Pos) /*!< 0x04000000 */
  5194. #define CAN_F9R2_FB26 CAN_F9R2_FB26_Msk /*!<Filter bit 26 */
  5195. #define CAN_F9R2_FB27_Pos (27U)
  5196. #define CAN_F9R2_FB27_Msk (0x1U << CAN_F9R2_FB27_Pos) /*!< 0x08000000 */
  5197. #define CAN_F9R2_FB27 CAN_F9R2_FB27_Msk /*!<Filter bit 27 */
  5198. #define CAN_F9R2_FB28_Pos (28U)
  5199. #define CAN_F9R2_FB28_Msk (0x1U << CAN_F9R2_FB28_Pos) /*!< 0x10000000 */
  5200. #define CAN_F9R2_FB28 CAN_F9R2_FB28_Msk /*!<Filter bit 28 */
  5201. #define CAN_F9R2_FB29_Pos (29U)
  5202. #define CAN_F9R2_FB29_Msk (0x1U << CAN_F9R2_FB29_Pos) /*!< 0x20000000 */
  5203. #define CAN_F9R2_FB29 CAN_F9R2_FB29_Msk /*!<Filter bit 29 */
  5204. #define CAN_F9R2_FB30_Pos (30U)
  5205. #define CAN_F9R2_FB30_Msk (0x1U << CAN_F9R2_FB30_Pos) /*!< 0x40000000 */
  5206. #define CAN_F9R2_FB30 CAN_F9R2_FB30_Msk /*!<Filter bit 30 */
  5207. #define CAN_F9R2_FB31_Pos (31U)
  5208. #define CAN_F9R2_FB31_Msk (0x1U << CAN_F9R2_FB31_Pos) /*!< 0x80000000 */
  5209. #define CAN_F9R2_FB31 CAN_F9R2_FB31_Msk /*!<Filter bit 31 */
  5210. /******************* Bit definition for CAN_F10R2 register ******************/
  5211. #define CAN_F10R2_FB0_Pos (0U)
  5212. #define CAN_F10R2_FB0_Msk (0x1U << CAN_F10R2_FB0_Pos) /*!< 0x00000001 */
  5213. #define CAN_F10R2_FB0 CAN_F10R2_FB0_Msk /*!<Filter bit 0 */
  5214. #define CAN_F10R2_FB1_Pos (1U)
  5215. #define CAN_F10R2_FB1_Msk (0x1U << CAN_F10R2_FB1_Pos) /*!< 0x00000002 */
  5216. #define CAN_F10R2_FB1 CAN_F10R2_FB1_Msk /*!<Filter bit 1 */
  5217. #define CAN_F10R2_FB2_Pos (2U)
  5218. #define CAN_F10R2_FB2_Msk (0x1U << CAN_F10R2_FB2_Pos) /*!< 0x00000004 */
  5219. #define CAN_F10R2_FB2 CAN_F10R2_FB2_Msk /*!<Filter bit 2 */
  5220. #define CAN_F10R2_FB3_Pos (3U)
  5221. #define CAN_F10R2_FB3_Msk (0x1U << CAN_F10R2_FB3_Pos) /*!< 0x00000008 */
  5222. #define CAN_F10R2_FB3 CAN_F10R2_FB3_Msk /*!<Filter bit 3 */
  5223. #define CAN_F10R2_FB4_Pos (4U)
  5224. #define CAN_F10R2_FB4_Msk (0x1U << CAN_F10R2_FB4_Pos) /*!< 0x00000010 */
  5225. #define CAN_F10R2_FB4 CAN_F10R2_FB4_Msk /*!<Filter bit 4 */
  5226. #define CAN_F10R2_FB5_Pos (5U)
  5227. #define CAN_F10R2_FB5_Msk (0x1U << CAN_F10R2_FB5_Pos) /*!< 0x00000020 */
  5228. #define CAN_F10R2_FB5 CAN_F10R2_FB5_Msk /*!<Filter bit 5 */
  5229. #define CAN_F10R2_FB6_Pos (6U)
  5230. #define CAN_F10R2_FB6_Msk (0x1U << CAN_F10R2_FB6_Pos) /*!< 0x00000040 */
  5231. #define CAN_F10R2_FB6 CAN_F10R2_FB6_Msk /*!<Filter bit 6 */
  5232. #define CAN_F10R2_FB7_Pos (7U)
  5233. #define CAN_F10R2_FB7_Msk (0x1U << CAN_F10R2_FB7_Pos) /*!< 0x00000080 */
  5234. #define CAN_F10R2_FB7 CAN_F10R2_FB7_Msk /*!<Filter bit 7 */
  5235. #define CAN_F10R2_FB8_Pos (8U)
  5236. #define CAN_F10R2_FB8_Msk (0x1U << CAN_F10R2_FB8_Pos) /*!< 0x00000100 */
  5237. #define CAN_F10R2_FB8 CAN_F10R2_FB8_Msk /*!<Filter bit 8 */
  5238. #define CAN_F10R2_FB9_Pos (9U)
  5239. #define CAN_F10R2_FB9_Msk (0x1U << CAN_F10R2_FB9_Pos) /*!< 0x00000200 */
  5240. #define CAN_F10R2_FB9 CAN_F10R2_FB9_Msk /*!<Filter bit 9 */
  5241. #define CAN_F10R2_FB10_Pos (10U)
  5242. #define CAN_F10R2_FB10_Msk (0x1U << CAN_F10R2_FB10_Pos) /*!< 0x00000400 */
  5243. #define CAN_F10R2_FB10 CAN_F10R2_FB10_Msk /*!<Filter bit 10 */
  5244. #define CAN_F10R2_FB11_Pos (11U)
  5245. #define CAN_F10R2_FB11_Msk (0x1U << CAN_F10R2_FB11_Pos) /*!< 0x00000800 */
  5246. #define CAN_F10R2_FB11 CAN_F10R2_FB11_Msk /*!<Filter bit 11 */
  5247. #define CAN_F10R2_FB12_Pos (12U)
  5248. #define CAN_F10R2_FB12_Msk (0x1U << CAN_F10R2_FB12_Pos) /*!< 0x00001000 */
  5249. #define CAN_F10R2_FB12 CAN_F10R2_FB12_Msk /*!<Filter bit 12 */
  5250. #define CAN_F10R2_FB13_Pos (13U)
  5251. #define CAN_F10R2_FB13_Msk (0x1U << CAN_F10R2_FB13_Pos) /*!< 0x00002000 */
  5252. #define CAN_F10R2_FB13 CAN_F10R2_FB13_Msk /*!<Filter bit 13 */
  5253. #define CAN_F10R2_FB14_Pos (14U)
  5254. #define CAN_F10R2_FB14_Msk (0x1U << CAN_F10R2_FB14_Pos) /*!< 0x00004000 */
  5255. #define CAN_F10R2_FB14 CAN_F10R2_FB14_Msk /*!<Filter bit 14 */
  5256. #define CAN_F10R2_FB15_Pos (15U)
  5257. #define CAN_F10R2_FB15_Msk (0x1U << CAN_F10R2_FB15_Pos) /*!< 0x00008000 */
  5258. #define CAN_F10R2_FB15 CAN_F10R2_FB15_Msk /*!<Filter bit 15 */
  5259. #define CAN_F10R2_FB16_Pos (16U)
  5260. #define CAN_F10R2_FB16_Msk (0x1U << CAN_F10R2_FB16_Pos) /*!< 0x00010000 */
  5261. #define CAN_F10R2_FB16 CAN_F10R2_FB16_Msk /*!<Filter bit 16 */
  5262. #define CAN_F10R2_FB17_Pos (17U)
  5263. #define CAN_F10R2_FB17_Msk (0x1U << CAN_F10R2_FB17_Pos) /*!< 0x00020000 */
  5264. #define CAN_F10R2_FB17 CAN_F10R2_FB17_Msk /*!<Filter bit 17 */
  5265. #define CAN_F10R2_FB18_Pos (18U)
  5266. #define CAN_F10R2_FB18_Msk (0x1U << CAN_F10R2_FB18_Pos) /*!< 0x00040000 */
  5267. #define CAN_F10R2_FB18 CAN_F10R2_FB18_Msk /*!<Filter bit 18 */
  5268. #define CAN_F10R2_FB19_Pos (19U)
  5269. #define CAN_F10R2_FB19_Msk (0x1U << CAN_F10R2_FB19_Pos) /*!< 0x00080000 */
  5270. #define CAN_F10R2_FB19 CAN_F10R2_FB19_Msk /*!<Filter bit 19 */
  5271. #define CAN_F10R2_FB20_Pos (20U)
  5272. #define CAN_F10R2_FB20_Msk (0x1U << CAN_F10R2_FB20_Pos) /*!< 0x00100000 */
  5273. #define CAN_F10R2_FB20 CAN_F10R2_FB20_Msk /*!<Filter bit 20 */
  5274. #define CAN_F10R2_FB21_Pos (21U)
  5275. #define CAN_F10R2_FB21_Msk (0x1U << CAN_F10R2_FB21_Pos) /*!< 0x00200000 */
  5276. #define CAN_F10R2_FB21 CAN_F10R2_FB21_Msk /*!<Filter bit 21 */
  5277. #define CAN_F10R2_FB22_Pos (22U)
  5278. #define CAN_F10R2_FB22_Msk (0x1U << CAN_F10R2_FB22_Pos) /*!< 0x00400000 */
  5279. #define CAN_F10R2_FB22 CAN_F10R2_FB22_Msk /*!<Filter bit 22 */
  5280. #define CAN_F10R2_FB23_Pos (23U)
  5281. #define CAN_F10R2_FB23_Msk (0x1U << CAN_F10R2_FB23_Pos) /*!< 0x00800000 */
  5282. #define CAN_F10R2_FB23 CAN_F10R2_FB23_Msk /*!<Filter bit 23 */
  5283. #define CAN_F10R2_FB24_Pos (24U)
  5284. #define CAN_F10R2_FB24_Msk (0x1U << CAN_F10R2_FB24_Pos) /*!< 0x01000000 */
  5285. #define CAN_F10R2_FB24 CAN_F10R2_FB24_Msk /*!<Filter bit 24 */
  5286. #define CAN_F10R2_FB25_Pos (25U)
  5287. #define CAN_F10R2_FB25_Msk (0x1U << CAN_F10R2_FB25_Pos) /*!< 0x02000000 */
  5288. #define CAN_F10R2_FB25 CAN_F10R2_FB25_Msk /*!<Filter bit 25 */
  5289. #define CAN_F10R2_FB26_Pos (26U)
  5290. #define CAN_F10R2_FB26_Msk (0x1U << CAN_F10R2_FB26_Pos) /*!< 0x04000000 */
  5291. #define CAN_F10R2_FB26 CAN_F10R2_FB26_Msk /*!<Filter bit 26 */
  5292. #define CAN_F10R2_FB27_Pos (27U)
  5293. #define CAN_F10R2_FB27_Msk (0x1U << CAN_F10R2_FB27_Pos) /*!< 0x08000000 */
  5294. #define CAN_F10R2_FB27 CAN_F10R2_FB27_Msk /*!<Filter bit 27 */
  5295. #define CAN_F10R2_FB28_Pos (28U)
  5296. #define CAN_F10R2_FB28_Msk (0x1U << CAN_F10R2_FB28_Pos) /*!< 0x10000000 */
  5297. #define CAN_F10R2_FB28 CAN_F10R2_FB28_Msk /*!<Filter bit 28 */
  5298. #define CAN_F10R2_FB29_Pos (29U)
  5299. #define CAN_F10R2_FB29_Msk (0x1U << CAN_F10R2_FB29_Pos) /*!< 0x20000000 */
  5300. #define CAN_F10R2_FB29 CAN_F10R2_FB29_Msk /*!<Filter bit 29 */
  5301. #define CAN_F10R2_FB30_Pos (30U)
  5302. #define CAN_F10R2_FB30_Msk (0x1U << CAN_F10R2_FB30_Pos) /*!< 0x40000000 */
  5303. #define CAN_F10R2_FB30 CAN_F10R2_FB30_Msk /*!<Filter bit 30 */
  5304. #define CAN_F10R2_FB31_Pos (31U)
  5305. #define CAN_F10R2_FB31_Msk (0x1U << CAN_F10R2_FB31_Pos) /*!< 0x80000000 */
  5306. #define CAN_F10R2_FB31 CAN_F10R2_FB31_Msk /*!<Filter bit 31 */
  5307. /******************* Bit definition for CAN_F11R2 register ******************/
  5308. #define CAN_F11R2_FB0_Pos (0U)
  5309. #define CAN_F11R2_FB0_Msk (0x1U << CAN_F11R2_FB0_Pos) /*!< 0x00000001 */
  5310. #define CAN_F11R2_FB0 CAN_F11R2_FB0_Msk /*!<Filter bit 0 */
  5311. #define CAN_F11R2_FB1_Pos (1U)
  5312. #define CAN_F11R2_FB1_Msk (0x1U << CAN_F11R2_FB1_Pos) /*!< 0x00000002 */
  5313. #define CAN_F11R2_FB1 CAN_F11R2_FB1_Msk /*!<Filter bit 1 */
  5314. #define CAN_F11R2_FB2_Pos (2U)
  5315. #define CAN_F11R2_FB2_Msk (0x1U << CAN_F11R2_FB2_Pos) /*!< 0x00000004 */
  5316. #define CAN_F11R2_FB2 CAN_F11R2_FB2_Msk /*!<Filter bit 2 */
  5317. #define CAN_F11R2_FB3_Pos (3U)
  5318. #define CAN_F11R2_FB3_Msk (0x1U << CAN_F11R2_FB3_Pos) /*!< 0x00000008 */
  5319. #define CAN_F11R2_FB3 CAN_F11R2_FB3_Msk /*!<Filter bit 3 */
  5320. #define CAN_F11R2_FB4_Pos (4U)
  5321. #define CAN_F11R2_FB4_Msk (0x1U << CAN_F11R2_FB4_Pos) /*!< 0x00000010 */
  5322. #define CAN_F11R2_FB4 CAN_F11R2_FB4_Msk /*!<Filter bit 4 */
  5323. #define CAN_F11R2_FB5_Pos (5U)
  5324. #define CAN_F11R2_FB5_Msk (0x1U << CAN_F11R2_FB5_Pos) /*!< 0x00000020 */
  5325. #define CAN_F11R2_FB5 CAN_F11R2_FB5_Msk /*!<Filter bit 5 */
  5326. #define CAN_F11R2_FB6_Pos (6U)
  5327. #define CAN_F11R2_FB6_Msk (0x1U << CAN_F11R2_FB6_Pos) /*!< 0x00000040 */
  5328. #define CAN_F11R2_FB6 CAN_F11R2_FB6_Msk /*!<Filter bit 6 */
  5329. #define CAN_F11R2_FB7_Pos (7U)
  5330. #define CAN_F11R2_FB7_Msk (0x1U << CAN_F11R2_FB7_Pos) /*!< 0x00000080 */
  5331. #define CAN_F11R2_FB7 CAN_F11R2_FB7_Msk /*!<Filter bit 7 */
  5332. #define CAN_F11R2_FB8_Pos (8U)
  5333. #define CAN_F11R2_FB8_Msk (0x1U << CAN_F11R2_FB8_Pos) /*!< 0x00000100 */
  5334. #define CAN_F11R2_FB8 CAN_F11R2_FB8_Msk /*!<Filter bit 8 */
  5335. #define CAN_F11R2_FB9_Pos (9U)
  5336. #define CAN_F11R2_FB9_Msk (0x1U << CAN_F11R2_FB9_Pos) /*!< 0x00000200 */
  5337. #define CAN_F11R2_FB9 CAN_F11R2_FB9_Msk /*!<Filter bit 9 */
  5338. #define CAN_F11R2_FB10_Pos (10U)
  5339. #define CAN_F11R2_FB10_Msk (0x1U << CAN_F11R2_FB10_Pos) /*!< 0x00000400 */
  5340. #define CAN_F11R2_FB10 CAN_F11R2_FB10_Msk /*!<Filter bit 10 */
  5341. #define CAN_F11R2_FB11_Pos (11U)
  5342. #define CAN_F11R2_FB11_Msk (0x1U << CAN_F11R2_FB11_Pos) /*!< 0x00000800 */
  5343. #define CAN_F11R2_FB11 CAN_F11R2_FB11_Msk /*!<Filter bit 11 */
  5344. #define CAN_F11R2_FB12_Pos (12U)
  5345. #define CAN_F11R2_FB12_Msk (0x1U << CAN_F11R2_FB12_Pos) /*!< 0x00001000 */
  5346. #define CAN_F11R2_FB12 CAN_F11R2_FB12_Msk /*!<Filter bit 12 */
  5347. #define CAN_F11R2_FB13_Pos (13U)
  5348. #define CAN_F11R2_FB13_Msk (0x1U << CAN_F11R2_FB13_Pos) /*!< 0x00002000 */
  5349. #define CAN_F11R2_FB13 CAN_F11R2_FB13_Msk /*!<Filter bit 13 */
  5350. #define CAN_F11R2_FB14_Pos (14U)
  5351. #define CAN_F11R2_FB14_Msk (0x1U << CAN_F11R2_FB14_Pos) /*!< 0x00004000 */
  5352. #define CAN_F11R2_FB14 CAN_F11R2_FB14_Msk /*!<Filter bit 14 */
  5353. #define CAN_F11R2_FB15_Pos (15U)
  5354. #define CAN_F11R2_FB15_Msk (0x1U << CAN_F11R2_FB15_Pos) /*!< 0x00008000 */
  5355. #define CAN_F11R2_FB15 CAN_F11R2_FB15_Msk /*!<Filter bit 15 */
  5356. #define CAN_F11R2_FB16_Pos (16U)
  5357. #define CAN_F11R2_FB16_Msk (0x1U << CAN_F11R2_FB16_Pos) /*!< 0x00010000 */
  5358. #define CAN_F11R2_FB16 CAN_F11R2_FB16_Msk /*!<Filter bit 16 */
  5359. #define CAN_F11R2_FB17_Pos (17U)
  5360. #define CAN_F11R2_FB17_Msk (0x1U << CAN_F11R2_FB17_Pos) /*!< 0x00020000 */
  5361. #define CAN_F11R2_FB17 CAN_F11R2_FB17_Msk /*!<Filter bit 17 */
  5362. #define CAN_F11R2_FB18_Pos (18U)
  5363. #define CAN_F11R2_FB18_Msk (0x1U << CAN_F11R2_FB18_Pos) /*!< 0x00040000 */
  5364. #define CAN_F11R2_FB18 CAN_F11R2_FB18_Msk /*!<Filter bit 18 */
  5365. #define CAN_F11R2_FB19_Pos (19U)
  5366. #define CAN_F11R2_FB19_Msk (0x1U << CAN_F11R2_FB19_Pos) /*!< 0x00080000 */
  5367. #define CAN_F11R2_FB19 CAN_F11R2_FB19_Msk /*!<Filter bit 19 */
  5368. #define CAN_F11R2_FB20_Pos (20U)
  5369. #define CAN_F11R2_FB20_Msk (0x1U << CAN_F11R2_FB20_Pos) /*!< 0x00100000 */
  5370. #define CAN_F11R2_FB20 CAN_F11R2_FB20_Msk /*!<Filter bit 20 */
  5371. #define CAN_F11R2_FB21_Pos (21U)
  5372. #define CAN_F11R2_FB21_Msk (0x1U << CAN_F11R2_FB21_Pos) /*!< 0x00200000 */
  5373. #define CAN_F11R2_FB21 CAN_F11R2_FB21_Msk /*!<Filter bit 21 */
  5374. #define CAN_F11R2_FB22_Pos (22U)
  5375. #define CAN_F11R2_FB22_Msk (0x1U << CAN_F11R2_FB22_Pos) /*!< 0x00400000 */
  5376. #define CAN_F11R2_FB22 CAN_F11R2_FB22_Msk /*!<Filter bit 22 */
  5377. #define CAN_F11R2_FB23_Pos (23U)
  5378. #define CAN_F11R2_FB23_Msk (0x1U << CAN_F11R2_FB23_Pos) /*!< 0x00800000 */
  5379. #define CAN_F11R2_FB23 CAN_F11R2_FB23_Msk /*!<Filter bit 23 */
  5380. #define CAN_F11R2_FB24_Pos (24U)
  5381. #define CAN_F11R2_FB24_Msk (0x1U << CAN_F11R2_FB24_Pos) /*!< 0x01000000 */
  5382. #define CAN_F11R2_FB24 CAN_F11R2_FB24_Msk /*!<Filter bit 24 */
  5383. #define CAN_F11R2_FB25_Pos (25U)
  5384. #define CAN_F11R2_FB25_Msk (0x1U << CAN_F11R2_FB25_Pos) /*!< 0x02000000 */
  5385. #define CAN_F11R2_FB25 CAN_F11R2_FB25_Msk /*!<Filter bit 25 */
  5386. #define CAN_F11R2_FB26_Pos (26U)
  5387. #define CAN_F11R2_FB26_Msk (0x1U << CAN_F11R2_FB26_Pos) /*!< 0x04000000 */
  5388. #define CAN_F11R2_FB26 CAN_F11R2_FB26_Msk /*!<Filter bit 26 */
  5389. #define CAN_F11R2_FB27_Pos (27U)
  5390. #define CAN_F11R2_FB27_Msk (0x1U << CAN_F11R2_FB27_Pos) /*!< 0x08000000 */
  5391. #define CAN_F11R2_FB27 CAN_F11R2_FB27_Msk /*!<Filter bit 27 */
  5392. #define CAN_F11R2_FB28_Pos (28U)
  5393. #define CAN_F11R2_FB28_Msk (0x1U << CAN_F11R2_FB28_Pos) /*!< 0x10000000 */
  5394. #define CAN_F11R2_FB28 CAN_F11R2_FB28_Msk /*!<Filter bit 28 */
  5395. #define CAN_F11R2_FB29_Pos (29U)
  5396. #define CAN_F11R2_FB29_Msk (0x1U << CAN_F11R2_FB29_Pos) /*!< 0x20000000 */
  5397. #define CAN_F11R2_FB29 CAN_F11R2_FB29_Msk /*!<Filter bit 29 */
  5398. #define CAN_F11R2_FB30_Pos (30U)
  5399. #define CAN_F11R2_FB30_Msk (0x1U << CAN_F11R2_FB30_Pos) /*!< 0x40000000 */
  5400. #define CAN_F11R2_FB30 CAN_F11R2_FB30_Msk /*!<Filter bit 30 */
  5401. #define CAN_F11R2_FB31_Pos (31U)
  5402. #define CAN_F11R2_FB31_Msk (0x1U << CAN_F11R2_FB31_Pos) /*!< 0x80000000 */
  5403. #define CAN_F11R2_FB31 CAN_F11R2_FB31_Msk /*!<Filter bit 31 */
  5404. /******************* Bit definition for CAN_F12R2 register ******************/
  5405. #define CAN_F12R2_FB0_Pos (0U)
  5406. #define CAN_F12R2_FB0_Msk (0x1U << CAN_F12R2_FB0_Pos) /*!< 0x00000001 */
  5407. #define CAN_F12R2_FB0 CAN_F12R2_FB0_Msk /*!<Filter bit 0 */
  5408. #define CAN_F12R2_FB1_Pos (1U)
  5409. #define CAN_F12R2_FB1_Msk (0x1U << CAN_F12R2_FB1_Pos) /*!< 0x00000002 */
  5410. #define CAN_F12R2_FB1 CAN_F12R2_FB1_Msk /*!<Filter bit 1 */
  5411. #define CAN_F12R2_FB2_Pos (2U)
  5412. #define CAN_F12R2_FB2_Msk (0x1U << CAN_F12R2_FB2_Pos) /*!< 0x00000004 */
  5413. #define CAN_F12R2_FB2 CAN_F12R2_FB2_Msk /*!<Filter bit 2 */
  5414. #define CAN_F12R2_FB3_Pos (3U)
  5415. #define CAN_F12R2_FB3_Msk (0x1U << CAN_F12R2_FB3_Pos) /*!< 0x00000008 */
  5416. #define CAN_F12R2_FB3 CAN_F12R2_FB3_Msk /*!<Filter bit 3 */
  5417. #define CAN_F12R2_FB4_Pos (4U)
  5418. #define CAN_F12R2_FB4_Msk (0x1U << CAN_F12R2_FB4_Pos) /*!< 0x00000010 */
  5419. #define CAN_F12R2_FB4 CAN_F12R2_FB4_Msk /*!<Filter bit 4 */
  5420. #define CAN_F12R2_FB5_Pos (5U)
  5421. #define CAN_F12R2_FB5_Msk (0x1U << CAN_F12R2_FB5_Pos) /*!< 0x00000020 */
  5422. #define CAN_F12R2_FB5 CAN_F12R2_FB5_Msk /*!<Filter bit 5 */
  5423. #define CAN_F12R2_FB6_Pos (6U)
  5424. #define CAN_F12R2_FB6_Msk (0x1U << CAN_F12R2_FB6_Pos) /*!< 0x00000040 */
  5425. #define CAN_F12R2_FB6 CAN_F12R2_FB6_Msk /*!<Filter bit 6 */
  5426. #define CAN_F12R2_FB7_Pos (7U)
  5427. #define CAN_F12R2_FB7_Msk (0x1U << CAN_F12R2_FB7_Pos) /*!< 0x00000080 */
  5428. #define CAN_F12R2_FB7 CAN_F12R2_FB7_Msk /*!<Filter bit 7 */
  5429. #define CAN_F12R2_FB8_Pos (8U)
  5430. #define CAN_F12R2_FB8_Msk (0x1U << CAN_F12R2_FB8_Pos) /*!< 0x00000100 */
  5431. #define CAN_F12R2_FB8 CAN_F12R2_FB8_Msk /*!<Filter bit 8 */
  5432. #define CAN_F12R2_FB9_Pos (9U)
  5433. #define CAN_F12R2_FB9_Msk (0x1U << CAN_F12R2_FB9_Pos) /*!< 0x00000200 */
  5434. #define CAN_F12R2_FB9 CAN_F12R2_FB9_Msk /*!<Filter bit 9 */
  5435. #define CAN_F12R2_FB10_Pos (10U)
  5436. #define CAN_F12R2_FB10_Msk (0x1U << CAN_F12R2_FB10_Pos) /*!< 0x00000400 */
  5437. #define CAN_F12R2_FB10 CAN_F12R2_FB10_Msk /*!<Filter bit 10 */
  5438. #define CAN_F12R2_FB11_Pos (11U)
  5439. #define CAN_F12R2_FB11_Msk (0x1U << CAN_F12R2_FB11_Pos) /*!< 0x00000800 */
  5440. #define CAN_F12R2_FB11 CAN_F12R2_FB11_Msk /*!<Filter bit 11 */
  5441. #define CAN_F12R2_FB12_Pos (12U)
  5442. #define CAN_F12R2_FB12_Msk (0x1U << CAN_F12R2_FB12_Pos) /*!< 0x00001000 */
  5443. #define CAN_F12R2_FB12 CAN_F12R2_FB12_Msk /*!<Filter bit 12 */
  5444. #define CAN_F12R2_FB13_Pos (13U)
  5445. #define CAN_F12R2_FB13_Msk (0x1U << CAN_F12R2_FB13_Pos) /*!< 0x00002000 */
  5446. #define CAN_F12R2_FB13 CAN_F12R2_FB13_Msk /*!<Filter bit 13 */
  5447. #define CAN_F12R2_FB14_Pos (14U)
  5448. #define CAN_F12R2_FB14_Msk (0x1U << CAN_F12R2_FB14_Pos) /*!< 0x00004000 */
  5449. #define CAN_F12R2_FB14 CAN_F12R2_FB14_Msk /*!<Filter bit 14 */
  5450. #define CAN_F12R2_FB15_Pos (15U)
  5451. #define CAN_F12R2_FB15_Msk (0x1U << CAN_F12R2_FB15_Pos) /*!< 0x00008000 */
  5452. #define CAN_F12R2_FB15 CAN_F12R2_FB15_Msk /*!<Filter bit 15 */
  5453. #define CAN_F12R2_FB16_Pos (16U)
  5454. #define CAN_F12R2_FB16_Msk (0x1U << CAN_F12R2_FB16_Pos) /*!< 0x00010000 */
  5455. #define CAN_F12R2_FB16 CAN_F12R2_FB16_Msk /*!<Filter bit 16 */
  5456. #define CAN_F12R2_FB17_Pos (17U)
  5457. #define CAN_F12R2_FB17_Msk (0x1U << CAN_F12R2_FB17_Pos) /*!< 0x00020000 */
  5458. #define CAN_F12R2_FB17 CAN_F12R2_FB17_Msk /*!<Filter bit 17 */
  5459. #define CAN_F12R2_FB18_Pos (18U)
  5460. #define CAN_F12R2_FB18_Msk (0x1U << CAN_F12R2_FB18_Pos) /*!< 0x00040000 */
  5461. #define CAN_F12R2_FB18 CAN_F12R2_FB18_Msk /*!<Filter bit 18 */
  5462. #define CAN_F12R2_FB19_Pos (19U)
  5463. #define CAN_F12R2_FB19_Msk (0x1U << CAN_F12R2_FB19_Pos) /*!< 0x00080000 */
  5464. #define CAN_F12R2_FB19 CAN_F12R2_FB19_Msk /*!<Filter bit 19 */
  5465. #define CAN_F12R2_FB20_Pos (20U)
  5466. #define CAN_F12R2_FB20_Msk (0x1U << CAN_F12R2_FB20_Pos) /*!< 0x00100000 */
  5467. #define CAN_F12R2_FB20 CAN_F12R2_FB20_Msk /*!<Filter bit 20 */
  5468. #define CAN_F12R2_FB21_Pos (21U)
  5469. #define CAN_F12R2_FB21_Msk (0x1U << CAN_F12R2_FB21_Pos) /*!< 0x00200000 */
  5470. #define CAN_F12R2_FB21 CAN_F12R2_FB21_Msk /*!<Filter bit 21 */
  5471. #define CAN_F12R2_FB22_Pos (22U)
  5472. #define CAN_F12R2_FB22_Msk (0x1U << CAN_F12R2_FB22_Pos) /*!< 0x00400000 */
  5473. #define CAN_F12R2_FB22 CAN_F12R2_FB22_Msk /*!<Filter bit 22 */
  5474. #define CAN_F12R2_FB23_Pos (23U)
  5475. #define CAN_F12R2_FB23_Msk (0x1U << CAN_F12R2_FB23_Pos) /*!< 0x00800000 */
  5476. #define CAN_F12R2_FB23 CAN_F12R2_FB23_Msk /*!<Filter bit 23 */
  5477. #define CAN_F12R2_FB24_Pos (24U)
  5478. #define CAN_F12R2_FB24_Msk (0x1U << CAN_F12R2_FB24_Pos) /*!< 0x01000000 */
  5479. #define CAN_F12R2_FB24 CAN_F12R2_FB24_Msk /*!<Filter bit 24 */
  5480. #define CAN_F12R2_FB25_Pos (25U)
  5481. #define CAN_F12R2_FB25_Msk (0x1U << CAN_F12R2_FB25_Pos) /*!< 0x02000000 */
  5482. #define CAN_F12R2_FB25 CAN_F12R2_FB25_Msk /*!<Filter bit 25 */
  5483. #define CAN_F12R2_FB26_Pos (26U)
  5484. #define CAN_F12R2_FB26_Msk (0x1U << CAN_F12R2_FB26_Pos) /*!< 0x04000000 */
  5485. #define CAN_F12R2_FB26 CAN_F12R2_FB26_Msk /*!<Filter bit 26 */
  5486. #define CAN_F12R2_FB27_Pos (27U)
  5487. #define CAN_F12R2_FB27_Msk (0x1U << CAN_F12R2_FB27_Pos) /*!< 0x08000000 */
  5488. #define CAN_F12R2_FB27 CAN_F12R2_FB27_Msk /*!<Filter bit 27 */
  5489. #define CAN_F12R2_FB28_Pos (28U)
  5490. #define CAN_F12R2_FB28_Msk (0x1U << CAN_F12R2_FB28_Pos) /*!< 0x10000000 */
  5491. #define CAN_F12R2_FB28 CAN_F12R2_FB28_Msk /*!<Filter bit 28 */
  5492. #define CAN_F12R2_FB29_Pos (29U)
  5493. #define CAN_F12R2_FB29_Msk (0x1U << CAN_F12R2_FB29_Pos) /*!< 0x20000000 */
  5494. #define CAN_F12R2_FB29 CAN_F12R2_FB29_Msk /*!<Filter bit 29 */
  5495. #define CAN_F12R2_FB30_Pos (30U)
  5496. #define CAN_F12R2_FB30_Msk (0x1U << CAN_F12R2_FB30_Pos) /*!< 0x40000000 */
  5497. #define CAN_F12R2_FB30 CAN_F12R2_FB30_Msk /*!<Filter bit 30 */
  5498. #define CAN_F12R2_FB31_Pos (31U)
  5499. #define CAN_F12R2_FB31_Msk (0x1U << CAN_F12R2_FB31_Pos) /*!< 0x80000000 */
  5500. #define CAN_F12R2_FB31 CAN_F12R2_FB31_Msk /*!<Filter bit 31 */
  5501. /******************* Bit definition for CAN_F13R2 register ******************/
  5502. #define CAN_F13R2_FB0_Pos (0U)
  5503. #define CAN_F13R2_FB0_Msk (0x1U << CAN_F13R2_FB0_Pos) /*!< 0x00000001 */
  5504. #define CAN_F13R2_FB0 CAN_F13R2_FB0_Msk /*!<Filter bit 0 */
  5505. #define CAN_F13R2_FB1_Pos (1U)
  5506. #define CAN_F13R2_FB1_Msk (0x1U << CAN_F13R2_FB1_Pos) /*!< 0x00000002 */
  5507. #define CAN_F13R2_FB1 CAN_F13R2_FB1_Msk /*!<Filter bit 1 */
  5508. #define CAN_F13R2_FB2_Pos (2U)
  5509. #define CAN_F13R2_FB2_Msk (0x1U << CAN_F13R2_FB2_Pos) /*!< 0x00000004 */
  5510. #define CAN_F13R2_FB2 CAN_F13R2_FB2_Msk /*!<Filter bit 2 */
  5511. #define CAN_F13R2_FB3_Pos (3U)
  5512. #define CAN_F13R2_FB3_Msk (0x1U << CAN_F13R2_FB3_Pos) /*!< 0x00000008 */
  5513. #define CAN_F13R2_FB3 CAN_F13R2_FB3_Msk /*!<Filter bit 3 */
  5514. #define CAN_F13R2_FB4_Pos (4U)
  5515. #define CAN_F13R2_FB4_Msk (0x1U << CAN_F13R2_FB4_Pos) /*!< 0x00000010 */
  5516. #define CAN_F13R2_FB4 CAN_F13R2_FB4_Msk /*!<Filter bit 4 */
  5517. #define CAN_F13R2_FB5_Pos (5U)
  5518. #define CAN_F13R2_FB5_Msk (0x1U << CAN_F13R2_FB5_Pos) /*!< 0x00000020 */
  5519. #define CAN_F13R2_FB5 CAN_F13R2_FB5_Msk /*!<Filter bit 5 */
  5520. #define CAN_F13R2_FB6_Pos (6U)
  5521. #define CAN_F13R2_FB6_Msk (0x1U << CAN_F13R2_FB6_Pos) /*!< 0x00000040 */
  5522. #define CAN_F13R2_FB6 CAN_F13R2_FB6_Msk /*!<Filter bit 6 */
  5523. #define CAN_F13R2_FB7_Pos (7U)
  5524. #define CAN_F13R2_FB7_Msk (0x1U << CAN_F13R2_FB7_Pos) /*!< 0x00000080 */
  5525. #define CAN_F13R2_FB7 CAN_F13R2_FB7_Msk /*!<Filter bit 7 */
  5526. #define CAN_F13R2_FB8_Pos (8U)
  5527. #define CAN_F13R2_FB8_Msk (0x1U << CAN_F13R2_FB8_Pos) /*!< 0x00000100 */
  5528. #define CAN_F13R2_FB8 CAN_F13R2_FB8_Msk /*!<Filter bit 8 */
  5529. #define CAN_F13R2_FB9_Pos (9U)
  5530. #define CAN_F13R2_FB9_Msk (0x1U << CAN_F13R2_FB9_Pos) /*!< 0x00000200 */
  5531. #define CAN_F13R2_FB9 CAN_F13R2_FB9_Msk /*!<Filter bit 9 */
  5532. #define CAN_F13R2_FB10_Pos (10U)
  5533. #define CAN_F13R2_FB10_Msk (0x1U << CAN_F13R2_FB10_Pos) /*!< 0x00000400 */
  5534. #define CAN_F13R2_FB10 CAN_F13R2_FB10_Msk /*!<Filter bit 10 */
  5535. #define CAN_F13R2_FB11_Pos (11U)
  5536. #define CAN_F13R2_FB11_Msk (0x1U << CAN_F13R2_FB11_Pos) /*!< 0x00000800 */
  5537. #define CAN_F13R2_FB11 CAN_F13R2_FB11_Msk /*!<Filter bit 11 */
  5538. #define CAN_F13R2_FB12_Pos (12U)
  5539. #define CAN_F13R2_FB12_Msk (0x1U << CAN_F13R2_FB12_Pos) /*!< 0x00001000 */
  5540. #define CAN_F13R2_FB12 CAN_F13R2_FB12_Msk /*!<Filter bit 12 */
  5541. #define CAN_F13R2_FB13_Pos (13U)
  5542. #define CAN_F13R2_FB13_Msk (0x1U << CAN_F13R2_FB13_Pos) /*!< 0x00002000 */
  5543. #define CAN_F13R2_FB13 CAN_F13R2_FB13_Msk /*!<Filter bit 13 */
  5544. #define CAN_F13R2_FB14_Pos (14U)
  5545. #define CAN_F13R2_FB14_Msk (0x1U << CAN_F13R2_FB14_Pos) /*!< 0x00004000 */
  5546. #define CAN_F13R2_FB14 CAN_F13R2_FB14_Msk /*!<Filter bit 14 */
  5547. #define CAN_F13R2_FB15_Pos (15U)
  5548. #define CAN_F13R2_FB15_Msk (0x1U << CAN_F13R2_FB15_Pos) /*!< 0x00008000 */
  5549. #define CAN_F13R2_FB15 CAN_F13R2_FB15_Msk /*!<Filter bit 15 */
  5550. #define CAN_F13R2_FB16_Pos (16U)
  5551. #define CAN_F13R2_FB16_Msk (0x1U << CAN_F13R2_FB16_Pos) /*!< 0x00010000 */
  5552. #define CAN_F13R2_FB16 CAN_F13R2_FB16_Msk /*!<Filter bit 16 */
  5553. #define CAN_F13R2_FB17_Pos (17U)
  5554. #define CAN_F13R2_FB17_Msk (0x1U << CAN_F13R2_FB17_Pos) /*!< 0x00020000 */
  5555. #define CAN_F13R2_FB17 CAN_F13R2_FB17_Msk /*!<Filter bit 17 */
  5556. #define CAN_F13R2_FB18_Pos (18U)
  5557. #define CAN_F13R2_FB18_Msk (0x1U << CAN_F13R2_FB18_Pos) /*!< 0x00040000 */
  5558. #define CAN_F13R2_FB18 CAN_F13R2_FB18_Msk /*!<Filter bit 18 */
  5559. #define CAN_F13R2_FB19_Pos (19U)
  5560. #define CAN_F13R2_FB19_Msk (0x1U << CAN_F13R2_FB19_Pos) /*!< 0x00080000 */
  5561. #define CAN_F13R2_FB19 CAN_F13R2_FB19_Msk /*!<Filter bit 19 */
  5562. #define CAN_F13R2_FB20_Pos (20U)
  5563. #define CAN_F13R2_FB20_Msk (0x1U << CAN_F13R2_FB20_Pos) /*!< 0x00100000 */
  5564. #define CAN_F13R2_FB20 CAN_F13R2_FB20_Msk /*!<Filter bit 20 */
  5565. #define CAN_F13R2_FB21_Pos (21U)
  5566. #define CAN_F13R2_FB21_Msk (0x1U << CAN_F13R2_FB21_Pos) /*!< 0x00200000 */
  5567. #define CAN_F13R2_FB21 CAN_F13R2_FB21_Msk /*!<Filter bit 21 */
  5568. #define CAN_F13R2_FB22_Pos (22U)
  5569. #define CAN_F13R2_FB22_Msk (0x1U << CAN_F13R2_FB22_Pos) /*!< 0x00400000 */
  5570. #define CAN_F13R2_FB22 CAN_F13R2_FB22_Msk /*!<Filter bit 22 */
  5571. #define CAN_F13R2_FB23_Pos (23U)
  5572. #define CAN_F13R2_FB23_Msk (0x1U << CAN_F13R2_FB23_Pos) /*!< 0x00800000 */
  5573. #define CAN_F13R2_FB23 CAN_F13R2_FB23_Msk /*!<Filter bit 23 */
  5574. #define CAN_F13R2_FB24_Pos (24U)
  5575. #define CAN_F13R2_FB24_Msk (0x1U << CAN_F13R2_FB24_Pos) /*!< 0x01000000 */
  5576. #define CAN_F13R2_FB24 CAN_F13R2_FB24_Msk /*!<Filter bit 24 */
  5577. #define CAN_F13R2_FB25_Pos (25U)
  5578. #define CAN_F13R2_FB25_Msk (0x1U << CAN_F13R2_FB25_Pos) /*!< 0x02000000 */
  5579. #define CAN_F13R2_FB25 CAN_F13R2_FB25_Msk /*!<Filter bit 25 */
  5580. #define CAN_F13R2_FB26_Pos (26U)
  5581. #define CAN_F13R2_FB26_Msk (0x1U << CAN_F13R2_FB26_Pos) /*!< 0x04000000 */
  5582. #define CAN_F13R2_FB26 CAN_F13R2_FB26_Msk /*!<Filter bit 26 */
  5583. #define CAN_F13R2_FB27_Pos (27U)
  5584. #define CAN_F13R2_FB27_Msk (0x1U << CAN_F13R2_FB27_Pos) /*!< 0x08000000 */
  5585. #define CAN_F13R2_FB27 CAN_F13R2_FB27_Msk /*!<Filter bit 27 */
  5586. #define CAN_F13R2_FB28_Pos (28U)
  5587. #define CAN_F13R2_FB28_Msk (0x1U << CAN_F13R2_FB28_Pos) /*!< 0x10000000 */
  5588. #define CAN_F13R2_FB28 CAN_F13R2_FB28_Msk /*!<Filter bit 28 */
  5589. #define CAN_F13R2_FB29_Pos (29U)
  5590. #define CAN_F13R2_FB29_Msk (0x1U << CAN_F13R2_FB29_Pos) /*!< 0x20000000 */
  5591. #define CAN_F13R2_FB29 CAN_F13R2_FB29_Msk /*!<Filter bit 29 */
  5592. #define CAN_F13R2_FB30_Pos (30U)
  5593. #define CAN_F13R2_FB30_Msk (0x1U << CAN_F13R2_FB30_Pos) /*!< 0x40000000 */
  5594. #define CAN_F13R2_FB30 CAN_F13R2_FB30_Msk /*!<Filter bit 30 */
  5595. #define CAN_F13R2_FB31_Pos (31U)
  5596. #define CAN_F13R2_FB31_Msk (0x1U << CAN_F13R2_FB31_Pos) /*!< 0x80000000 */
  5597. #define CAN_F13R2_FB31 CAN_F13R2_FB31_Msk /*!<Filter bit 31 */
  5598. /******************************************************************************/
  5599. /* */
  5600. /* CRC calculation unit (CRC) */
  5601. /* */
  5602. /******************************************************************************/
  5603. /******************* Bit definition for CRC_DR register *********************/
  5604. #define CRC_DR_DR_Pos (0U)
  5605. #define CRC_DR_DR_Msk (0xFFFFFFFFU << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  5606. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  5607. /******************* Bit definition for CRC_IDR register ********************/
  5608. #define CRC_IDR_IDR ((uint8_t)0xFFU) /*!< General-purpose 8-bit data register bits */
  5609. /******************** Bit definition for CRC_CR register ********************/
  5610. #define CRC_CR_RESET_Pos (0U)
  5611. #define CRC_CR_RESET_Msk (0x1U << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  5612. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  5613. #define CRC_CR_POLYSIZE_Pos (3U)
  5614. #define CRC_CR_POLYSIZE_Msk (0x3U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  5615. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  5616. #define CRC_CR_POLYSIZE_0 (0x1U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  5617. #define CRC_CR_POLYSIZE_1 (0x2U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  5618. #define CRC_CR_REV_IN_Pos (5U)
  5619. #define CRC_CR_REV_IN_Msk (0x3U << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  5620. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  5621. #define CRC_CR_REV_IN_0 (0x1U << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  5622. #define CRC_CR_REV_IN_1 (0x2U << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  5623. #define CRC_CR_REV_OUT_Pos (7U)
  5624. #define CRC_CR_REV_OUT_Msk (0x1U << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  5625. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  5626. /******************* Bit definition for CRC_INIT register *******************/
  5627. #define CRC_INIT_INIT_Pos (0U)
  5628. #define CRC_INIT_INIT_Msk (0xFFFFFFFFU << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  5629. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  5630. /******************* Bit definition for CRC_POL register ********************/
  5631. #define CRC_POL_POL_Pos (0U)
  5632. #define CRC_POL_POL_Msk (0xFFFFFFFFU << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  5633. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  5634. /******************************************************************************/
  5635. /* */
  5636. /* Digital to Analog Converter (DAC) */
  5637. /* */
  5638. /******************************************************************************/
  5639. /*
  5640. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  5641. */
  5642. #define DAC_CHANNEL2_SUPPORT /*!< DAC feature available only on specific devices: DAC channel 2 available (may not be available on all DAC instances DACx) */
  5643. /******************** Bit definition for DAC_CR register ********************/
  5644. #define DAC_CR_EN1_Pos (0U)
  5645. #define DAC_CR_EN1_Msk (0x1U << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  5646. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!< DAC channel1 enable */
  5647. #define DAC_CR_BOFF1_Pos (1U)
  5648. #define DAC_CR_BOFF1_Msk (0x1U << DAC_CR_BOFF1_Pos) /*!< 0x00000002 */
  5649. #define DAC_CR_BOFF1 DAC_CR_BOFF1_Msk /*!< DAC channel1 output buffer disable */
  5650. #define DAC_CR_OUTEN1_Pos (1U)
  5651. #define DAC_CR_OUTEN1_Msk (0x1U << DAC_CR_OUTEN1_Pos) /*!< 0x00000002 */
  5652. #define DAC_CR_OUTEN1 DAC_CR_OUTEN1_Msk /*!< DAC channel1 output switch enable (only for DAC instance: DAC2) */
  5653. #define DAC_CR_TEN1_Pos (2U)
  5654. #define DAC_CR_TEN1_Msk (0x1U << DAC_CR_TEN1_Pos) /*!< 0x00000004 */
  5655. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!< DAC channel1 Trigger enable */
  5656. #define DAC_CR_TSEL1_Pos (3U)
  5657. #define DAC_CR_TSEL1_Msk (0x7U << DAC_CR_TSEL1_Pos) /*!< 0x00000038 */
  5658. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!< TSEL1[2:0] (DAC channel1 Trigger selection) */
  5659. #define DAC_CR_TSEL1_0 (0x1U << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  5660. #define DAC_CR_TSEL1_1 (0x2U << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  5661. #define DAC_CR_TSEL1_2 (0x4U << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  5662. #define DAC_CR_WAVE1_Pos (6U)
  5663. #define DAC_CR_WAVE1_Msk (0x3U << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  5664. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!< WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  5665. #define DAC_CR_WAVE1_0 (0x1U << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  5666. #define DAC_CR_WAVE1_1 (0x2U << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  5667. #define DAC_CR_MAMP1_Pos (8U)
  5668. #define DAC_CR_MAMP1_Msk (0xFU << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  5669. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!< MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  5670. #define DAC_CR_MAMP1_0 (0x1U << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  5671. #define DAC_CR_MAMP1_1 (0x2U << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  5672. #define DAC_CR_MAMP1_2 (0x4U << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  5673. #define DAC_CR_MAMP1_3 (0x8U << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  5674. #define DAC_CR_DMAEN1_Pos (12U)
  5675. #define DAC_CR_DMAEN1_Msk (0x1U << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  5676. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!< DAC channel1 DMA enable */
  5677. #define DAC_CR_DMAUDRIE1_Pos (13U)
  5678. #define DAC_CR_DMAUDRIE1_Msk (0x1U << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  5679. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!< DAC channel1 DMA underrun IT enable */
  5680. #define DAC_CR_EN2_Pos (16U)
  5681. #define DAC_CR_EN2_Msk (0x1U << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  5682. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!< DAC channel2 enable */
  5683. #define DAC_CR_BOFF2_Pos (17U)
  5684. #define DAC_CR_BOFF2_Msk (0x1U << DAC_CR_BOFF2_Pos) /*!< 0x00020000 */
  5685. #define DAC_CR_BOFF2 DAC_CR_BOFF2_Msk /*!< DAC channel2 output buffer disable */
  5686. #define DAC_CR_OUTEN2_Pos (17U)
  5687. #define DAC_CR_OUTEN2_Msk (0x1U << DAC_CR_OUTEN2_Pos) /*!< 0x00020000 */
  5688. #define DAC_CR_OUTEN2 DAC_CR_OUTEN2_Msk /*!< DAC channel2 output switch enable (only for DAC instance: DAC2) */
  5689. #define DAC_CR_TEN2_Pos (18U)
  5690. #define DAC_CR_TEN2_Msk (0x1U << DAC_CR_TEN2_Pos) /*!< 0x00040000 */
  5691. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!< DAC channel2 Trigger enable */
  5692. #define DAC_CR_TSEL2_Pos (19U)
  5693. #define DAC_CR_TSEL2_Msk (0x7U << DAC_CR_TSEL2_Pos) /*!< 0x00380000 */
  5694. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!< TSEL2[2:0] (DAC channel2 Trigger selection) */
  5695. #define DAC_CR_TSEL2_0 (0x1U << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  5696. #define DAC_CR_TSEL2_1 (0x2U << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  5697. #define DAC_CR_TSEL2_2 (0x4U << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  5698. #define DAC_CR_WAVE2_Pos (22U)
  5699. #define DAC_CR_WAVE2_Msk (0x3U << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  5700. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!< WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  5701. #define DAC_CR_WAVE2_0 (0x1U << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  5702. #define DAC_CR_WAVE2_1 (0x2U << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  5703. #define DAC_CR_MAMP2_Pos (24U)
  5704. #define DAC_CR_MAMP2_Msk (0xFU << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  5705. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!< MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  5706. #define DAC_CR_MAMP2_0 (0x1U << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  5707. #define DAC_CR_MAMP2_1 (0x2U << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  5708. #define DAC_CR_MAMP2_2 (0x4U << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  5709. #define DAC_CR_MAMP2_3 (0x8U << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  5710. #define DAC_CR_DMAEN2_Pos (28U)
  5711. #define DAC_CR_DMAEN2_Msk (0x1U << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  5712. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!< DAC channel2 DMA enabled */
  5713. #define DAC_CR_DMAUDRIE2_Pos (29U)
  5714. #define DAC_CR_DMAUDRIE2_Msk (0x1U << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  5715. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!< DAC channel2 DMA underrun IT enable */
  5716. /***************** Bit definition for DAC_SWTRIGR register ******************/
  5717. #define DAC_SWTRIGR_SWTRIG1_Pos (0U)
  5718. #define DAC_SWTRIGR_SWTRIG1_Msk (0x1U << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */
  5719. #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!< DAC channel1 software trigger */
  5720. #define DAC_SWTRIGR_SWTRIG2_Pos (1U)
  5721. #define DAC_SWTRIGR_SWTRIG2_Msk (0x1U << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */
  5722. #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!< DAC channel2 software trigger */
  5723. /***************** Bit definition for DAC_DHR12R1 register ******************/
  5724. #define DAC_DHR12R1_DACC1DHR_Pos (0U)
  5725. #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFU << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */
  5726. #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  5727. /***************** Bit definition for DAC_DHR12L1 register ******************/
  5728. #define DAC_DHR12L1_DACC1DHR_Pos (4U)
  5729. #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFU << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5730. #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  5731. /****************** Bit definition for DAC_DHR8R1 register ******************/
  5732. #define DAC_DHR8R1_DACC1DHR_Pos (0U)
  5733. #define DAC_DHR8R1_DACC1DHR_Msk (0xFFU << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */
  5734. #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  5735. /***************** Bit definition for DAC_DHR12R2 register ******************/
  5736. #define DAC_DHR12R2_DACC2DHR_Pos (0U)
  5737. #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFU << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */
  5738. #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  5739. /***************** Bit definition for DAC_DHR12L2 register ******************/
  5740. #define DAC_DHR12L2_DACC2DHR_Pos (4U)
  5741. #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFU << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */
  5742. #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  5743. /****************** Bit definition for DAC_DHR8R2 register ******************/
  5744. #define DAC_DHR8R2_DACC2DHR_Pos (0U)
  5745. #define DAC_DHR8R2_DACC2DHR_Msk (0xFFU << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */
  5746. #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  5747. /***************** Bit definition for DAC_DHR12RD register ******************/
  5748. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  5749. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFU << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  5750. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  5751. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  5752. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFU << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  5753. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  5754. /***************** Bit definition for DAC_DHR12LD register ******************/
  5755. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  5756. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFU << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5757. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  5758. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  5759. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFU << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  5760. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  5761. /****************** Bit definition for DAC_DHR8RD register ******************/
  5762. #define DAC_DHR8RD_DACC1DHR_Pos (0U)
  5763. #define DAC_DHR8RD_DACC1DHR_Msk (0xFFU << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */
  5764. #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  5765. #define DAC_DHR8RD_DACC2DHR_Pos (8U)
  5766. #define DAC_DHR8RD_DACC2DHR_Msk (0xFFU << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */
  5767. #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  5768. /******************* Bit definition for DAC_DOR1 register *******************/
  5769. #define DAC_DOR1_DACC1DOR_Pos (0U)
  5770. #define DAC_DOR1_DACC1DOR_Msk (0xFFFU << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */
  5771. #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!< DAC channel1 data output */
  5772. /******************* Bit definition for DAC_DOR2 register *******************/
  5773. #define DAC_DOR2_DACC2DOR_Pos (0U)
  5774. #define DAC_DOR2_DACC2DOR_Msk (0xFFFU << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */
  5775. #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!< DAC channel2 data output */
  5776. /******************** Bit definition for DAC_SR register ********************/
  5777. #define DAC_SR_DMAUDR1_Pos (13U)
  5778. #define DAC_SR_DMAUDR1_Msk (0x1U << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  5779. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!< DAC channel1 DMA underrun flag */
  5780. #define DAC_SR_DMAUDR2_Pos (29U)
  5781. #define DAC_SR_DMAUDR2_Msk (0x1U << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  5782. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!< DAC channel2 DMA underrun flag */
  5783. /******************************************************************************/
  5784. /* */
  5785. /* Debug MCU (DBGMCU) */
  5786. /* */
  5787. /******************************************************************************/
  5788. /******************** Bit definition for DBGMCU_IDCODE register *************/
  5789. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  5790. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFU << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
  5791. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk
  5792. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  5793. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFU << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */
  5794. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk
  5795. /******************** Bit definition for DBGMCU_CR register *****************/
  5796. #define DBGMCU_CR_DBG_SLEEP_Pos (0U)
  5797. #define DBGMCU_CR_DBG_SLEEP_Msk (0x1U << DBGMCU_CR_DBG_SLEEP_Pos) /*!< 0x00000001 */
  5798. #define DBGMCU_CR_DBG_SLEEP DBGMCU_CR_DBG_SLEEP_Msk
  5799. #define DBGMCU_CR_DBG_STOP_Pos (1U)
  5800. #define DBGMCU_CR_DBG_STOP_Msk (0x1U << DBGMCU_CR_DBG_STOP_Pos) /*!< 0x00000002 */
  5801. #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk
  5802. #define DBGMCU_CR_DBG_STANDBY_Pos (2U)
  5803. #define DBGMCU_CR_DBG_STANDBY_Msk (0x1U << DBGMCU_CR_DBG_STANDBY_Pos) /*!< 0x00000004 */
  5804. #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk
  5805. #define DBGMCU_CR_TRACE_IOEN_Pos (5U)
  5806. #define DBGMCU_CR_TRACE_IOEN_Msk (0x1U << DBGMCU_CR_TRACE_IOEN_Pos) /*!< 0x00000020 */
  5807. #define DBGMCU_CR_TRACE_IOEN DBGMCU_CR_TRACE_IOEN_Msk
  5808. #define DBGMCU_CR_TRACE_MODE_Pos (6U)
  5809. #define DBGMCU_CR_TRACE_MODE_Msk (0x3U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x000000C0 */
  5810. #define DBGMCU_CR_TRACE_MODE DBGMCU_CR_TRACE_MODE_Msk
  5811. #define DBGMCU_CR_TRACE_MODE_0 (0x1U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000040 */
  5812. #define DBGMCU_CR_TRACE_MODE_1 (0x2U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000080 */
  5813. /******************** Bit definition for DBGMCU_APB1_FZ register ************/
  5814. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos (0U)
  5815. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos) /*!< 0x00000001 */
  5816. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk
  5817. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos (1U)
  5818. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos) /*!< 0x00000002 */
  5819. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk
  5820. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos (4U)
  5821. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos) /*!< 0x00000010 */
  5822. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk
  5823. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos (5U)
  5824. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos) /*!< 0x00000020 */
  5825. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk
  5826. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos (10U)
  5827. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos) /*!< 0x00000400 */
  5828. #define DBGMCU_APB1_FZ_DBG_RTC_STOP DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk
  5829. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos (11U)
  5830. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos) /*!< 0x00000800 */
  5831. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk
  5832. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos (12U)
  5833. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos) /*!< 0x00001000 */
  5834. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk
  5835. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos (21U)
  5836. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk (0x1U << DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos) /*!< 0x00200000 */
  5837. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk
  5838. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos (25U)
  5839. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos) /*!< 0x02000000 */
  5840. #define DBGMCU_APB1_FZ_DBG_CAN_STOP DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk
  5841. /******************** Bit definition for DBGMCU_APB2_FZ register ************/
  5842. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP_Pos (0U)
  5843. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM1_STOP_Pos) /*!< 0x00000001 */
  5844. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP DBGMCU_APB2_FZ_DBG_TIM1_STOP_Msk
  5845. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos (2U)
  5846. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos) /*!< 0x00000004 */
  5847. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk
  5848. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos (3U)
  5849. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos) /*!< 0x00000008 */
  5850. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk
  5851. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos (4U)
  5852. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos) /*!< 0x00000010 */
  5853. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk
  5854. /******************************************************************************/
  5855. /* */
  5856. /* DMA Controller (DMA) */
  5857. /* */
  5858. /******************************************************************************/
  5859. /******************* Bit definition for DMA_ISR register ********************/
  5860. #define DMA_ISR_GIF1_Pos (0U)
  5861. #define DMA_ISR_GIF1_Msk (0x1U << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */
  5862. #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  5863. #define DMA_ISR_TCIF1_Pos (1U)
  5864. #define DMA_ISR_TCIF1_Msk (0x1U << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */
  5865. #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  5866. #define DMA_ISR_HTIF1_Pos (2U)
  5867. #define DMA_ISR_HTIF1_Msk (0x1U << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */
  5868. #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  5869. #define DMA_ISR_TEIF1_Pos (3U)
  5870. #define DMA_ISR_TEIF1_Msk (0x1U << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */
  5871. #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  5872. #define DMA_ISR_GIF2_Pos (4U)
  5873. #define DMA_ISR_GIF2_Msk (0x1U << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */
  5874. #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  5875. #define DMA_ISR_TCIF2_Pos (5U)
  5876. #define DMA_ISR_TCIF2_Msk (0x1U << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */
  5877. #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  5878. #define DMA_ISR_HTIF2_Pos (6U)
  5879. #define DMA_ISR_HTIF2_Msk (0x1U << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */
  5880. #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  5881. #define DMA_ISR_TEIF2_Pos (7U)
  5882. #define DMA_ISR_TEIF2_Msk (0x1U << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */
  5883. #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  5884. #define DMA_ISR_GIF3_Pos (8U)
  5885. #define DMA_ISR_GIF3_Msk (0x1U << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */
  5886. #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  5887. #define DMA_ISR_TCIF3_Pos (9U)
  5888. #define DMA_ISR_TCIF3_Msk (0x1U << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */
  5889. #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  5890. #define DMA_ISR_HTIF3_Pos (10U)
  5891. #define DMA_ISR_HTIF3_Msk (0x1U << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */
  5892. #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  5893. #define DMA_ISR_TEIF3_Pos (11U)
  5894. #define DMA_ISR_TEIF3_Msk (0x1U << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */
  5895. #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  5896. #define DMA_ISR_GIF4_Pos (12U)
  5897. #define DMA_ISR_GIF4_Msk (0x1U << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */
  5898. #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  5899. #define DMA_ISR_TCIF4_Pos (13U)
  5900. #define DMA_ISR_TCIF4_Msk (0x1U << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */
  5901. #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  5902. #define DMA_ISR_HTIF4_Pos (14U)
  5903. #define DMA_ISR_HTIF4_Msk (0x1U << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */
  5904. #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  5905. #define DMA_ISR_TEIF4_Pos (15U)
  5906. #define DMA_ISR_TEIF4_Msk (0x1U << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */
  5907. #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  5908. #define DMA_ISR_GIF5_Pos (16U)
  5909. #define DMA_ISR_GIF5_Msk (0x1U << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */
  5910. #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  5911. #define DMA_ISR_TCIF5_Pos (17U)
  5912. #define DMA_ISR_TCIF5_Msk (0x1U << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */
  5913. #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  5914. #define DMA_ISR_HTIF5_Pos (18U)
  5915. #define DMA_ISR_HTIF5_Msk (0x1U << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */
  5916. #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  5917. #define DMA_ISR_TEIF5_Pos (19U)
  5918. #define DMA_ISR_TEIF5_Msk (0x1U << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */
  5919. #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  5920. #define DMA_ISR_GIF6_Pos (20U)
  5921. #define DMA_ISR_GIF6_Msk (0x1U << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */
  5922. #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  5923. #define DMA_ISR_TCIF6_Pos (21U)
  5924. #define DMA_ISR_TCIF6_Msk (0x1U << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */
  5925. #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  5926. #define DMA_ISR_HTIF6_Pos (22U)
  5927. #define DMA_ISR_HTIF6_Msk (0x1U << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */
  5928. #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  5929. #define DMA_ISR_TEIF6_Pos (23U)
  5930. #define DMA_ISR_TEIF6_Msk (0x1U << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */
  5931. #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  5932. #define DMA_ISR_GIF7_Pos (24U)
  5933. #define DMA_ISR_GIF7_Msk (0x1U << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */
  5934. #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  5935. #define DMA_ISR_TCIF7_Pos (25U)
  5936. #define DMA_ISR_TCIF7_Msk (0x1U << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */
  5937. #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  5938. #define DMA_ISR_HTIF7_Pos (26U)
  5939. #define DMA_ISR_HTIF7_Msk (0x1U << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */
  5940. #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  5941. #define DMA_ISR_TEIF7_Pos (27U)
  5942. #define DMA_ISR_TEIF7_Msk (0x1U << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */
  5943. #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  5944. /******************* Bit definition for DMA_IFCR register *******************/
  5945. #define DMA_IFCR_CGIF1_Pos (0U)
  5946. #define DMA_IFCR_CGIF1_Msk (0x1U << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */
  5947. #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */
  5948. #define DMA_IFCR_CTCIF1_Pos (1U)
  5949. #define DMA_IFCR_CTCIF1_Msk (0x1U << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */
  5950. #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  5951. #define DMA_IFCR_CHTIF1_Pos (2U)
  5952. #define DMA_IFCR_CHTIF1_Msk (0x1U << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */
  5953. #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  5954. #define DMA_IFCR_CTEIF1_Pos (3U)
  5955. #define DMA_IFCR_CTEIF1_Msk (0x1U << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */
  5956. #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  5957. #define DMA_IFCR_CGIF2_Pos (4U)
  5958. #define DMA_IFCR_CGIF2_Msk (0x1U << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */
  5959. #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  5960. #define DMA_IFCR_CTCIF2_Pos (5U)
  5961. #define DMA_IFCR_CTCIF2_Msk (0x1U << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */
  5962. #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  5963. #define DMA_IFCR_CHTIF2_Pos (6U)
  5964. #define DMA_IFCR_CHTIF2_Msk (0x1U << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */
  5965. #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  5966. #define DMA_IFCR_CTEIF2_Pos (7U)
  5967. #define DMA_IFCR_CTEIF2_Msk (0x1U << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */
  5968. #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  5969. #define DMA_IFCR_CGIF3_Pos (8U)
  5970. #define DMA_IFCR_CGIF3_Msk (0x1U << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */
  5971. #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  5972. #define DMA_IFCR_CTCIF3_Pos (9U)
  5973. #define DMA_IFCR_CTCIF3_Msk (0x1U << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */
  5974. #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  5975. #define DMA_IFCR_CHTIF3_Pos (10U)
  5976. #define DMA_IFCR_CHTIF3_Msk (0x1U << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */
  5977. #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  5978. #define DMA_IFCR_CTEIF3_Pos (11U)
  5979. #define DMA_IFCR_CTEIF3_Msk (0x1U << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */
  5980. #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  5981. #define DMA_IFCR_CGIF4_Pos (12U)
  5982. #define DMA_IFCR_CGIF4_Msk (0x1U << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */
  5983. #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  5984. #define DMA_IFCR_CTCIF4_Pos (13U)
  5985. #define DMA_IFCR_CTCIF4_Msk (0x1U << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */
  5986. #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  5987. #define DMA_IFCR_CHTIF4_Pos (14U)
  5988. #define DMA_IFCR_CHTIF4_Msk (0x1U << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */
  5989. #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  5990. #define DMA_IFCR_CTEIF4_Pos (15U)
  5991. #define DMA_IFCR_CTEIF4_Msk (0x1U << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */
  5992. #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  5993. #define DMA_IFCR_CGIF5_Pos (16U)
  5994. #define DMA_IFCR_CGIF5_Msk (0x1U << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */
  5995. #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  5996. #define DMA_IFCR_CTCIF5_Pos (17U)
  5997. #define DMA_IFCR_CTCIF5_Msk (0x1U << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */
  5998. #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  5999. #define DMA_IFCR_CHTIF5_Pos (18U)
  6000. #define DMA_IFCR_CHTIF5_Msk (0x1U << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */
  6001. #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  6002. #define DMA_IFCR_CTEIF5_Pos (19U)
  6003. #define DMA_IFCR_CTEIF5_Msk (0x1U << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */
  6004. #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  6005. #define DMA_IFCR_CGIF6_Pos (20U)
  6006. #define DMA_IFCR_CGIF6_Msk (0x1U << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */
  6007. #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  6008. #define DMA_IFCR_CTCIF6_Pos (21U)
  6009. #define DMA_IFCR_CTCIF6_Msk (0x1U << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */
  6010. #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  6011. #define DMA_IFCR_CHTIF6_Pos (22U)
  6012. #define DMA_IFCR_CHTIF6_Msk (0x1U << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */
  6013. #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  6014. #define DMA_IFCR_CTEIF6_Pos (23U)
  6015. #define DMA_IFCR_CTEIF6_Msk (0x1U << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */
  6016. #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  6017. #define DMA_IFCR_CGIF7_Pos (24U)
  6018. #define DMA_IFCR_CGIF7_Msk (0x1U << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */
  6019. #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  6020. #define DMA_IFCR_CTCIF7_Pos (25U)
  6021. #define DMA_IFCR_CTCIF7_Msk (0x1U << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */
  6022. #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  6023. #define DMA_IFCR_CHTIF7_Pos (26U)
  6024. #define DMA_IFCR_CHTIF7_Msk (0x1U << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */
  6025. #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  6026. #define DMA_IFCR_CTEIF7_Pos (27U)
  6027. #define DMA_IFCR_CTEIF7_Msk (0x1U << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */
  6028. #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  6029. /******************* Bit definition for DMA_CCR register ********************/
  6030. #define DMA_CCR_EN_Pos (0U)
  6031. #define DMA_CCR_EN_Msk (0x1U << DMA_CCR_EN_Pos) /*!< 0x00000001 */
  6032. #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */
  6033. #define DMA_CCR_TCIE_Pos (1U)
  6034. #define DMA_CCR_TCIE_Msk (0x1U << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  6035. #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  6036. #define DMA_CCR_HTIE_Pos (2U)
  6037. #define DMA_CCR_HTIE_Msk (0x1U << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  6038. #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  6039. #define DMA_CCR_TEIE_Pos (3U)
  6040. #define DMA_CCR_TEIE_Msk (0x1U << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  6041. #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  6042. #define DMA_CCR_DIR_Pos (4U)
  6043. #define DMA_CCR_DIR_Msk (0x1U << DMA_CCR_DIR_Pos) /*!< 0x00000010 */
  6044. #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */
  6045. #define DMA_CCR_CIRC_Pos (5U)
  6046. #define DMA_CCR_CIRC_Msk (0x1U << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  6047. #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */
  6048. #define DMA_CCR_PINC_Pos (6U)
  6049. #define DMA_CCR_PINC_Msk (0x1U << DMA_CCR_PINC_Pos) /*!< 0x00000040 */
  6050. #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  6051. #define DMA_CCR_MINC_Pos (7U)
  6052. #define DMA_CCR_MINC_Msk (0x1U << DMA_CCR_MINC_Pos) /*!< 0x00000080 */
  6053. #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */
  6054. #define DMA_CCR_PSIZE_Pos (8U)
  6055. #define DMA_CCR_PSIZE_Msk (0x3U << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  6056. #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  6057. #define DMA_CCR_PSIZE_0 (0x1U << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  6058. #define DMA_CCR_PSIZE_1 (0x2U << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  6059. #define DMA_CCR_MSIZE_Pos (10U)
  6060. #define DMA_CCR_MSIZE_Msk (0x3U << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  6061. #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  6062. #define DMA_CCR_MSIZE_0 (0x1U << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  6063. #define DMA_CCR_MSIZE_1 (0x2U << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  6064. #define DMA_CCR_PL_Pos (12U)
  6065. #define DMA_CCR_PL_Msk (0x3U << DMA_CCR_PL_Pos) /*!< 0x00003000 */
  6066. #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  6067. #define DMA_CCR_PL_0 (0x1U << DMA_CCR_PL_Pos) /*!< 0x00001000 */
  6068. #define DMA_CCR_PL_1 (0x2U << DMA_CCR_PL_Pos) /*!< 0x00002000 */
  6069. #define DMA_CCR_MEM2MEM_Pos (14U)
  6070. #define DMA_CCR_MEM2MEM_Msk (0x1U << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  6071. #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  6072. /****************** Bit definition for DMA_CNDTR register *******************/
  6073. #define DMA_CNDTR_NDT_Pos (0U)
  6074. #define DMA_CNDTR_NDT_Msk (0xFFFFU << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  6075. #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  6076. /****************** Bit definition for DMA_CPAR register ********************/
  6077. #define DMA_CPAR_PA_Pos (0U)
  6078. #define DMA_CPAR_PA_Msk (0xFFFFFFFFU << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  6079. #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */
  6080. /****************** Bit definition for DMA_CMAR register ********************/
  6081. #define DMA_CMAR_MA_Pos (0U)
  6082. #define DMA_CMAR_MA_Msk (0xFFFFFFFFU << DMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */
  6083. #define DMA_CMAR_MA DMA_CMAR_MA_Msk /*!< Memory Address */
  6084. /******************************************************************************/
  6085. /* */
  6086. /* External Interrupt/Event Controller (EXTI) */
  6087. /* */
  6088. /******************************************************************************/
  6089. /******************* Bit definition for EXTI_IMR register *******************/
  6090. #define EXTI_IMR_MR0_Pos (0U)
  6091. #define EXTI_IMR_MR0_Msk (0x1U << EXTI_IMR_MR0_Pos) /*!< 0x00000001 */
  6092. #define EXTI_IMR_MR0 EXTI_IMR_MR0_Msk /*!< Interrupt Mask on line 0 */
  6093. #define EXTI_IMR_MR1_Pos (1U)
  6094. #define EXTI_IMR_MR1_Msk (0x1U << EXTI_IMR_MR1_Pos) /*!< 0x00000002 */
  6095. #define EXTI_IMR_MR1 EXTI_IMR_MR1_Msk /*!< Interrupt Mask on line 1 */
  6096. #define EXTI_IMR_MR2_Pos (2U)
  6097. #define EXTI_IMR_MR2_Msk (0x1U << EXTI_IMR_MR2_Pos) /*!< 0x00000004 */
  6098. #define EXTI_IMR_MR2 EXTI_IMR_MR2_Msk /*!< Interrupt Mask on line 2 */
  6099. #define EXTI_IMR_MR3_Pos (3U)
  6100. #define EXTI_IMR_MR3_Msk (0x1U << EXTI_IMR_MR3_Pos) /*!< 0x00000008 */
  6101. #define EXTI_IMR_MR3 EXTI_IMR_MR3_Msk /*!< Interrupt Mask on line 3 */
  6102. #define EXTI_IMR_MR4_Pos (4U)
  6103. #define EXTI_IMR_MR4_Msk (0x1U << EXTI_IMR_MR4_Pos) /*!< 0x00000010 */
  6104. #define EXTI_IMR_MR4 EXTI_IMR_MR4_Msk /*!< Interrupt Mask on line 4 */
  6105. #define EXTI_IMR_MR5_Pos (5U)
  6106. #define EXTI_IMR_MR5_Msk (0x1U << EXTI_IMR_MR5_Pos) /*!< 0x00000020 */
  6107. #define EXTI_IMR_MR5 EXTI_IMR_MR5_Msk /*!< Interrupt Mask on line 5 */
  6108. #define EXTI_IMR_MR6_Pos (6U)
  6109. #define EXTI_IMR_MR6_Msk (0x1U << EXTI_IMR_MR6_Pos) /*!< 0x00000040 */
  6110. #define EXTI_IMR_MR6 EXTI_IMR_MR6_Msk /*!< Interrupt Mask on line 6 */
  6111. #define EXTI_IMR_MR7_Pos (7U)
  6112. #define EXTI_IMR_MR7_Msk (0x1U << EXTI_IMR_MR7_Pos) /*!< 0x00000080 */
  6113. #define EXTI_IMR_MR7 EXTI_IMR_MR7_Msk /*!< Interrupt Mask on line 7 */
  6114. #define EXTI_IMR_MR8_Pos (8U)
  6115. #define EXTI_IMR_MR8_Msk (0x1U << EXTI_IMR_MR8_Pos) /*!< 0x00000100 */
  6116. #define EXTI_IMR_MR8 EXTI_IMR_MR8_Msk /*!< Interrupt Mask on line 8 */
  6117. #define EXTI_IMR_MR9_Pos (9U)
  6118. #define EXTI_IMR_MR9_Msk (0x1U << EXTI_IMR_MR9_Pos) /*!< 0x00000200 */
  6119. #define EXTI_IMR_MR9 EXTI_IMR_MR9_Msk /*!< Interrupt Mask on line 9 */
  6120. #define EXTI_IMR_MR10_Pos (10U)
  6121. #define EXTI_IMR_MR10_Msk (0x1U << EXTI_IMR_MR10_Pos) /*!< 0x00000400 */
  6122. #define EXTI_IMR_MR10 EXTI_IMR_MR10_Msk /*!< Interrupt Mask on line 10 */
  6123. #define EXTI_IMR_MR11_Pos (11U)
  6124. #define EXTI_IMR_MR11_Msk (0x1U << EXTI_IMR_MR11_Pos) /*!< 0x00000800 */
  6125. #define EXTI_IMR_MR11 EXTI_IMR_MR11_Msk /*!< Interrupt Mask on line 11 */
  6126. #define EXTI_IMR_MR12_Pos (12U)
  6127. #define EXTI_IMR_MR12_Msk (0x1U << EXTI_IMR_MR12_Pos) /*!< 0x00001000 */
  6128. #define EXTI_IMR_MR12 EXTI_IMR_MR12_Msk /*!< Interrupt Mask on line 12 */
  6129. #define EXTI_IMR_MR13_Pos (13U)
  6130. #define EXTI_IMR_MR13_Msk (0x1U << EXTI_IMR_MR13_Pos) /*!< 0x00002000 */
  6131. #define EXTI_IMR_MR13 EXTI_IMR_MR13_Msk /*!< Interrupt Mask on line 13 */
  6132. #define EXTI_IMR_MR14_Pos (14U)
  6133. #define EXTI_IMR_MR14_Msk (0x1U << EXTI_IMR_MR14_Pos) /*!< 0x00004000 */
  6134. #define EXTI_IMR_MR14 EXTI_IMR_MR14_Msk /*!< Interrupt Mask on line 14 */
  6135. #define EXTI_IMR_MR15_Pos (15U)
  6136. #define EXTI_IMR_MR15_Msk (0x1U << EXTI_IMR_MR15_Pos) /*!< 0x00008000 */
  6137. #define EXTI_IMR_MR15 EXTI_IMR_MR15_Msk /*!< Interrupt Mask on line 15 */
  6138. #define EXTI_IMR_MR16_Pos (16U)
  6139. #define EXTI_IMR_MR16_Msk (0x1U << EXTI_IMR_MR16_Pos) /*!< 0x00010000 */
  6140. #define EXTI_IMR_MR16 EXTI_IMR_MR16_Msk /*!< Interrupt Mask on line 16 */
  6141. #define EXTI_IMR_MR17_Pos (17U)
  6142. #define EXTI_IMR_MR17_Msk (0x1U << EXTI_IMR_MR17_Pos) /*!< 0x00020000 */
  6143. #define EXTI_IMR_MR17 EXTI_IMR_MR17_Msk /*!< Interrupt Mask on line 17 */
  6144. #define EXTI_IMR_MR19_Pos (19U)
  6145. #define EXTI_IMR_MR19_Msk (0x1U << EXTI_IMR_MR19_Pos) /*!< 0x00080000 */
  6146. #define EXTI_IMR_MR19 EXTI_IMR_MR19_Msk /*!< Interrupt Mask on line 19 */
  6147. #define EXTI_IMR_MR20_Pos (20U)
  6148. #define EXTI_IMR_MR20_Msk (0x1U << EXTI_IMR_MR20_Pos) /*!< 0x00100000 */
  6149. #define EXTI_IMR_MR20 EXTI_IMR_MR20_Msk /*!< Interrupt Mask on line 20 */
  6150. #define EXTI_IMR_MR22_Pos (22U)
  6151. #define EXTI_IMR_MR22_Msk (0x1U << EXTI_IMR_MR22_Pos) /*!< 0x00400000 */
  6152. #define EXTI_IMR_MR22 EXTI_IMR_MR22_Msk /*!< Interrupt Mask on line 22 */
  6153. #define EXTI_IMR_MR23_Pos (23U)
  6154. #define EXTI_IMR_MR23_Msk (0x1U << EXTI_IMR_MR23_Pos) /*!< 0x00800000 */
  6155. #define EXTI_IMR_MR23 EXTI_IMR_MR23_Msk /*!< Interrupt Mask on line 23 */
  6156. #define EXTI_IMR_MR25_Pos (25U)
  6157. #define EXTI_IMR_MR25_Msk (0x1U << EXTI_IMR_MR25_Pos) /*!< 0x02000000 */
  6158. #define EXTI_IMR_MR25 EXTI_IMR_MR25_Msk /*!< Interrupt Mask on line 25 */
  6159. #define EXTI_IMR_MR30_Pos (30U)
  6160. #define EXTI_IMR_MR30_Msk (0x1U << EXTI_IMR_MR30_Pos) /*!< 0x40000000 */
  6161. #define EXTI_IMR_MR30 EXTI_IMR_MR30_Msk /*!< Interrupt Mask on line 30 */
  6162. /* References Defines */
  6163. #define EXTI_IMR_IM0 EXTI_IMR_MR0
  6164. #define EXTI_IMR_IM1 EXTI_IMR_MR1
  6165. #define EXTI_IMR_IM2 EXTI_IMR_MR2
  6166. #define EXTI_IMR_IM3 EXTI_IMR_MR3
  6167. #define EXTI_IMR_IM4 EXTI_IMR_MR4
  6168. #define EXTI_IMR_IM5 EXTI_IMR_MR5
  6169. #define EXTI_IMR_IM6 EXTI_IMR_MR6
  6170. #define EXTI_IMR_IM7 EXTI_IMR_MR7
  6171. #define EXTI_IMR_IM8 EXTI_IMR_MR8
  6172. #define EXTI_IMR_IM9 EXTI_IMR_MR9
  6173. #define EXTI_IMR_IM10 EXTI_IMR_MR10
  6174. #define EXTI_IMR_IM11 EXTI_IMR_MR11
  6175. #define EXTI_IMR_IM12 EXTI_IMR_MR12
  6176. #define EXTI_IMR_IM13 EXTI_IMR_MR13
  6177. #define EXTI_IMR_IM14 EXTI_IMR_MR14
  6178. #define EXTI_IMR_IM15 EXTI_IMR_MR15
  6179. #define EXTI_IMR_IM16 EXTI_IMR_MR16
  6180. #define EXTI_IMR_IM17 EXTI_IMR_MR17
  6181. #if defined(EXTI_IMR_MR18)
  6182. #define EXTI_IMR_IM18 EXTI_IMR_MR18
  6183. #endif
  6184. #define EXTI_IMR_IM19 EXTI_IMR_MR19
  6185. #define EXTI_IMR_IM20 EXTI_IMR_MR20
  6186. #if defined(EXTI_IMR_MR21)
  6187. #define EXTI_IMR_IM21 EXTI_IMR_MR21
  6188. #endif
  6189. #define EXTI_IMR_IM22 EXTI_IMR_MR22
  6190. #define EXTI_IMR_IM23 EXTI_IMR_MR23
  6191. #if defined(EXTI_IMR_MR24)
  6192. #define EXTI_IMR_IM24 EXTI_IMR_MR24
  6193. #endif
  6194. #define EXTI_IMR_IM25 EXTI_IMR_MR25
  6195. #if defined(EXTI_IMR_MR26)
  6196. #define EXTI_IMR_IM26 EXTI_IMR_MR26
  6197. #endif
  6198. #if defined(EXTI_IMR_MR27)
  6199. #define EXTI_IMR_IM27 EXTI_IMR_MR27
  6200. #endif
  6201. #if defined(EXTI_IMR_MR28)
  6202. #define EXTI_IMR_IM28 EXTI_IMR_MR28
  6203. #endif
  6204. #if defined(EXTI_IMR_MR29)
  6205. #define EXTI_IMR_IM29 EXTI_IMR_MR29
  6206. #endif
  6207. #define EXTI_IMR_IM30 EXTI_IMR_MR30
  6208. #if defined(EXTI_IMR_MR31)
  6209. #define EXTI_IMR_IM31 EXTI_IMR_MR31
  6210. #endif
  6211. #define EXTI_IMR_IM_Pos (0U)
  6212. #define EXTI_IMR_IM_Msk (0xFFFFFFFFU << EXTI_IMR_IM_Pos) /*!< 0xFFFFFFFF */
  6213. #define EXTI_IMR_IM EXTI_IMR_IM_Msk /*!< Interrupt Mask All */
  6214. /******************* Bit definition for EXTI_EMR register *******************/
  6215. #define EXTI_EMR_MR0_Pos (0U)
  6216. #define EXTI_EMR_MR0_Msk (0x1U << EXTI_EMR_MR0_Pos) /*!< 0x00000001 */
  6217. #define EXTI_EMR_MR0 EXTI_EMR_MR0_Msk /*!< Event Mask on line 0 */
  6218. #define EXTI_EMR_MR1_Pos (1U)
  6219. #define EXTI_EMR_MR1_Msk (0x1U << EXTI_EMR_MR1_Pos) /*!< 0x00000002 */
  6220. #define EXTI_EMR_MR1 EXTI_EMR_MR1_Msk /*!< Event Mask on line 1 */
  6221. #define EXTI_EMR_MR2_Pos (2U)
  6222. #define EXTI_EMR_MR2_Msk (0x1U << EXTI_EMR_MR2_Pos) /*!< 0x00000004 */
  6223. #define EXTI_EMR_MR2 EXTI_EMR_MR2_Msk /*!< Event Mask on line 2 */
  6224. #define EXTI_EMR_MR3_Pos (3U)
  6225. #define EXTI_EMR_MR3_Msk (0x1U << EXTI_EMR_MR3_Pos) /*!< 0x00000008 */
  6226. #define EXTI_EMR_MR3 EXTI_EMR_MR3_Msk /*!< Event Mask on line 3 */
  6227. #define EXTI_EMR_MR4_Pos (4U)
  6228. #define EXTI_EMR_MR4_Msk (0x1U << EXTI_EMR_MR4_Pos) /*!< 0x00000010 */
  6229. #define EXTI_EMR_MR4 EXTI_EMR_MR4_Msk /*!< Event Mask on line 4 */
  6230. #define EXTI_EMR_MR5_Pos (5U)
  6231. #define EXTI_EMR_MR5_Msk (0x1U << EXTI_EMR_MR5_Pos) /*!< 0x00000020 */
  6232. #define EXTI_EMR_MR5 EXTI_EMR_MR5_Msk /*!< Event Mask on line 5 */
  6233. #define EXTI_EMR_MR6_Pos (6U)
  6234. #define EXTI_EMR_MR6_Msk (0x1U << EXTI_EMR_MR6_Pos) /*!< 0x00000040 */
  6235. #define EXTI_EMR_MR6 EXTI_EMR_MR6_Msk /*!< Event Mask on line 6 */
  6236. #define EXTI_EMR_MR7_Pos (7U)
  6237. #define EXTI_EMR_MR7_Msk (0x1U << EXTI_EMR_MR7_Pos) /*!< 0x00000080 */
  6238. #define EXTI_EMR_MR7 EXTI_EMR_MR7_Msk /*!< Event Mask on line 7 */
  6239. #define EXTI_EMR_MR8_Pos (8U)
  6240. #define EXTI_EMR_MR8_Msk (0x1U << EXTI_EMR_MR8_Pos) /*!< 0x00000100 */
  6241. #define EXTI_EMR_MR8 EXTI_EMR_MR8_Msk /*!< Event Mask on line 8 */
  6242. #define EXTI_EMR_MR9_Pos (9U)
  6243. #define EXTI_EMR_MR9_Msk (0x1U << EXTI_EMR_MR9_Pos) /*!< 0x00000200 */
  6244. #define EXTI_EMR_MR9 EXTI_EMR_MR9_Msk /*!< Event Mask on line 9 */
  6245. #define EXTI_EMR_MR10_Pos (10U)
  6246. #define EXTI_EMR_MR10_Msk (0x1U << EXTI_EMR_MR10_Pos) /*!< 0x00000400 */
  6247. #define EXTI_EMR_MR10 EXTI_EMR_MR10_Msk /*!< Event Mask on line 10 */
  6248. #define EXTI_EMR_MR11_Pos (11U)
  6249. #define EXTI_EMR_MR11_Msk (0x1U << EXTI_EMR_MR11_Pos) /*!< 0x00000800 */
  6250. #define EXTI_EMR_MR11 EXTI_EMR_MR11_Msk /*!< Event Mask on line 11 */
  6251. #define EXTI_EMR_MR12_Pos (12U)
  6252. #define EXTI_EMR_MR12_Msk (0x1U << EXTI_EMR_MR12_Pos) /*!< 0x00001000 */
  6253. #define EXTI_EMR_MR12 EXTI_EMR_MR12_Msk /*!< Event Mask on line 12 */
  6254. #define EXTI_EMR_MR13_Pos (13U)
  6255. #define EXTI_EMR_MR13_Msk (0x1U << EXTI_EMR_MR13_Pos) /*!< 0x00002000 */
  6256. #define EXTI_EMR_MR13 EXTI_EMR_MR13_Msk /*!< Event Mask on line 13 */
  6257. #define EXTI_EMR_MR14_Pos (14U)
  6258. #define EXTI_EMR_MR14_Msk (0x1U << EXTI_EMR_MR14_Pos) /*!< 0x00004000 */
  6259. #define EXTI_EMR_MR14 EXTI_EMR_MR14_Msk /*!< Event Mask on line 14 */
  6260. #define EXTI_EMR_MR15_Pos (15U)
  6261. #define EXTI_EMR_MR15_Msk (0x1U << EXTI_EMR_MR15_Pos) /*!< 0x00008000 */
  6262. #define EXTI_EMR_MR15 EXTI_EMR_MR15_Msk /*!< Event Mask on line 15 */
  6263. #define EXTI_EMR_MR16_Pos (16U)
  6264. #define EXTI_EMR_MR16_Msk (0x1U << EXTI_EMR_MR16_Pos) /*!< 0x00010000 */
  6265. #define EXTI_EMR_MR16 EXTI_EMR_MR16_Msk /*!< Event Mask on line 16 */
  6266. #define EXTI_EMR_MR17_Pos (17U)
  6267. #define EXTI_EMR_MR17_Msk (0x1U << EXTI_EMR_MR17_Pos) /*!< 0x00020000 */
  6268. #define EXTI_EMR_MR17 EXTI_EMR_MR17_Msk /*!< Event Mask on line 17 */
  6269. #define EXTI_EMR_MR19_Pos (19U)
  6270. #define EXTI_EMR_MR19_Msk (0x1U << EXTI_EMR_MR19_Pos) /*!< 0x00080000 */
  6271. #define EXTI_EMR_MR19 EXTI_EMR_MR19_Msk /*!< Event Mask on line 19 */
  6272. #define EXTI_EMR_MR20_Pos (20U)
  6273. #define EXTI_EMR_MR20_Msk (0x1U << EXTI_EMR_MR20_Pos) /*!< 0x00100000 */
  6274. #define EXTI_EMR_MR20 EXTI_EMR_MR20_Msk /*!< Event Mask on line 20 */
  6275. #define EXTI_EMR_MR22_Pos (22U)
  6276. #define EXTI_EMR_MR22_Msk (0x1U << EXTI_EMR_MR22_Pos) /*!< 0x00400000 */
  6277. #define EXTI_EMR_MR22 EXTI_EMR_MR22_Msk /*!< Event Mask on line 22 */
  6278. #define EXTI_EMR_MR23_Pos (23U)
  6279. #define EXTI_EMR_MR23_Msk (0x1U << EXTI_EMR_MR23_Pos) /*!< 0x00800000 */
  6280. #define EXTI_EMR_MR23 EXTI_EMR_MR23_Msk /*!< Event Mask on line 23 */
  6281. #define EXTI_EMR_MR25_Pos (25U)
  6282. #define EXTI_EMR_MR25_Msk (0x1U << EXTI_EMR_MR25_Pos) /*!< 0x02000000 */
  6283. #define EXTI_EMR_MR25 EXTI_EMR_MR25_Msk /*!< Event Mask on line 25 */
  6284. #define EXTI_EMR_MR30_Pos (30U)
  6285. #define EXTI_EMR_MR30_Msk (0x1U << EXTI_EMR_MR30_Pos) /*!< 0x40000000 */
  6286. #define EXTI_EMR_MR30 EXTI_EMR_MR30_Msk /*!< Event Mask on line 30 */
  6287. /* References Defines */
  6288. #define EXTI_EMR_EM0 EXTI_EMR_MR0
  6289. #define EXTI_EMR_EM1 EXTI_EMR_MR1
  6290. #define EXTI_EMR_EM2 EXTI_EMR_MR2
  6291. #define EXTI_EMR_EM3 EXTI_EMR_MR3
  6292. #define EXTI_EMR_EM4 EXTI_EMR_MR4
  6293. #define EXTI_EMR_EM5 EXTI_EMR_MR5
  6294. #define EXTI_EMR_EM6 EXTI_EMR_MR6
  6295. #define EXTI_EMR_EM7 EXTI_EMR_MR7
  6296. #define EXTI_EMR_EM8 EXTI_EMR_MR8
  6297. #define EXTI_EMR_EM9 EXTI_EMR_MR9
  6298. #define EXTI_EMR_EM10 EXTI_EMR_MR10
  6299. #define EXTI_EMR_EM11 EXTI_EMR_MR11
  6300. #define EXTI_EMR_EM12 EXTI_EMR_MR12
  6301. #define EXTI_EMR_EM13 EXTI_EMR_MR13
  6302. #define EXTI_EMR_EM14 EXTI_EMR_MR14
  6303. #define EXTI_EMR_EM15 EXTI_EMR_MR15
  6304. #define EXTI_EMR_EM16 EXTI_EMR_MR16
  6305. #define EXTI_EMR_EM17 EXTI_EMR_MR17
  6306. #if defined(EXTI_EMR_MR18)
  6307. #define EXTI_EMR_EM18 EXTI_EMR_MR18
  6308. #endif
  6309. #define EXTI_EMR_EM19 EXTI_EMR_MR19
  6310. #define EXTI_EMR_EM20 EXTI_EMR_MR20
  6311. #if defined(EXTI_EMR_MR21)
  6312. #define EXTI_EMR_EM21 EXTI_EMR_MR21
  6313. #endif
  6314. #define EXTI_EMR_EM22 EXTI_EMR_MR22
  6315. #define EXTI_EMR_EM23 EXTI_EMR_MR23
  6316. #if defined(EXTI_EMR_MR24)
  6317. #define EXTI_EMR_EM24 EXTI_EMR_MR24
  6318. #endif
  6319. #define EXTI_EMR_EM25 EXTI_EMR_MR25
  6320. #if defined(EXTI_EMR_MR26)
  6321. #define EXTI_EMR_EM26 EXTI_EMR_MR26
  6322. #endif
  6323. #if defined(EXTI_EMR_MR27)
  6324. #define EXTI_EMR_EM27 EXTI_EMR_MR27
  6325. #endif
  6326. #if defined(EXTI_EMR_MR28)
  6327. #define EXTI_EMR_EM28 EXTI_EMR_MR28
  6328. #endif
  6329. #if defined(EXTI_EMR_MR29)
  6330. #define EXTI_EMR_EM29 EXTI_EMR_MR29
  6331. #endif
  6332. #define EXTI_EMR_EM30 EXTI_EMR_MR30
  6333. #if defined(EXTI_EMR_MR31)
  6334. #define EXTI_EMR_EM31 EXTI_EMR_MR31
  6335. #endif
  6336. /****************** Bit definition for EXTI_RTSR register *******************/
  6337. #define EXTI_RTSR_TR0_Pos (0U)
  6338. #define EXTI_RTSR_TR0_Msk (0x1U << EXTI_RTSR_TR0_Pos) /*!< 0x00000001 */
  6339. #define EXTI_RTSR_TR0 EXTI_RTSR_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */
  6340. #define EXTI_RTSR_TR1_Pos (1U)
  6341. #define EXTI_RTSR_TR1_Msk (0x1U << EXTI_RTSR_TR1_Pos) /*!< 0x00000002 */
  6342. #define EXTI_RTSR_TR1 EXTI_RTSR_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */
  6343. #define EXTI_RTSR_TR2_Pos (2U)
  6344. #define EXTI_RTSR_TR2_Msk (0x1U << EXTI_RTSR_TR2_Pos) /*!< 0x00000004 */
  6345. #define EXTI_RTSR_TR2 EXTI_RTSR_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */
  6346. #define EXTI_RTSR_TR3_Pos (3U)
  6347. #define EXTI_RTSR_TR3_Msk (0x1U << EXTI_RTSR_TR3_Pos) /*!< 0x00000008 */
  6348. #define EXTI_RTSR_TR3 EXTI_RTSR_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */
  6349. #define EXTI_RTSR_TR4_Pos (4U)
  6350. #define EXTI_RTSR_TR4_Msk (0x1U << EXTI_RTSR_TR4_Pos) /*!< 0x00000010 */
  6351. #define EXTI_RTSR_TR4 EXTI_RTSR_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */
  6352. #define EXTI_RTSR_TR5_Pos (5U)
  6353. #define EXTI_RTSR_TR5_Msk (0x1U << EXTI_RTSR_TR5_Pos) /*!< 0x00000020 */
  6354. #define EXTI_RTSR_TR5 EXTI_RTSR_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */
  6355. #define EXTI_RTSR_TR6_Pos (6U)
  6356. #define EXTI_RTSR_TR6_Msk (0x1U << EXTI_RTSR_TR6_Pos) /*!< 0x00000040 */
  6357. #define EXTI_RTSR_TR6 EXTI_RTSR_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */
  6358. #define EXTI_RTSR_TR7_Pos (7U)
  6359. #define EXTI_RTSR_TR7_Msk (0x1U << EXTI_RTSR_TR7_Pos) /*!< 0x00000080 */
  6360. #define EXTI_RTSR_TR7 EXTI_RTSR_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */
  6361. #define EXTI_RTSR_TR8_Pos (8U)
  6362. #define EXTI_RTSR_TR8_Msk (0x1U << EXTI_RTSR_TR8_Pos) /*!< 0x00000100 */
  6363. #define EXTI_RTSR_TR8 EXTI_RTSR_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */
  6364. #define EXTI_RTSR_TR9_Pos (9U)
  6365. #define EXTI_RTSR_TR9_Msk (0x1U << EXTI_RTSR_TR9_Pos) /*!< 0x00000200 */
  6366. #define EXTI_RTSR_TR9 EXTI_RTSR_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */
  6367. #define EXTI_RTSR_TR10_Pos (10U)
  6368. #define EXTI_RTSR_TR10_Msk (0x1U << EXTI_RTSR_TR10_Pos) /*!< 0x00000400 */
  6369. #define EXTI_RTSR_TR10 EXTI_RTSR_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */
  6370. #define EXTI_RTSR_TR11_Pos (11U)
  6371. #define EXTI_RTSR_TR11_Msk (0x1U << EXTI_RTSR_TR11_Pos) /*!< 0x00000800 */
  6372. #define EXTI_RTSR_TR11 EXTI_RTSR_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */
  6373. #define EXTI_RTSR_TR12_Pos (12U)
  6374. #define EXTI_RTSR_TR12_Msk (0x1U << EXTI_RTSR_TR12_Pos) /*!< 0x00001000 */
  6375. #define EXTI_RTSR_TR12 EXTI_RTSR_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */
  6376. #define EXTI_RTSR_TR13_Pos (13U)
  6377. #define EXTI_RTSR_TR13_Msk (0x1U << EXTI_RTSR_TR13_Pos) /*!< 0x00002000 */
  6378. #define EXTI_RTSR_TR13 EXTI_RTSR_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */
  6379. #define EXTI_RTSR_TR14_Pos (14U)
  6380. #define EXTI_RTSR_TR14_Msk (0x1U << EXTI_RTSR_TR14_Pos) /*!< 0x00004000 */
  6381. #define EXTI_RTSR_TR14 EXTI_RTSR_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */
  6382. #define EXTI_RTSR_TR15_Pos (15U)
  6383. #define EXTI_RTSR_TR15_Msk (0x1U << EXTI_RTSR_TR15_Pos) /*!< 0x00008000 */
  6384. #define EXTI_RTSR_TR15 EXTI_RTSR_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */
  6385. #define EXTI_RTSR_TR16_Pos (16U)
  6386. #define EXTI_RTSR_TR16_Msk (0x1U << EXTI_RTSR_TR16_Pos) /*!< 0x00010000 */
  6387. #define EXTI_RTSR_TR16 EXTI_RTSR_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */
  6388. #define EXTI_RTSR_TR17_Pos (17U)
  6389. #define EXTI_RTSR_TR17_Msk (0x1U << EXTI_RTSR_TR17_Pos) /*!< 0x00020000 */
  6390. #define EXTI_RTSR_TR17 EXTI_RTSR_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */
  6391. #define EXTI_RTSR_TR19_Pos (19U)
  6392. #define EXTI_RTSR_TR19_Msk (0x1U << EXTI_RTSR_TR19_Pos) /*!< 0x00080000 */
  6393. #define EXTI_RTSR_TR19 EXTI_RTSR_TR19_Msk /*!< Rising trigger event configuration bit of line 19 */
  6394. #define EXTI_RTSR_TR20_Pos (20U)
  6395. #define EXTI_RTSR_TR20_Msk (0x1U << EXTI_RTSR_TR20_Pos) /*!< 0x00100000 */
  6396. #define EXTI_RTSR_TR20 EXTI_RTSR_TR20_Msk /*!< Rising trigger event configuration bit of line 20 */
  6397. #define EXTI_RTSR_TR22_Pos (22U)
  6398. #define EXTI_RTSR_TR22_Msk (0x1U << EXTI_RTSR_TR22_Pos) /*!< 0x00400000 */
  6399. #define EXTI_RTSR_TR22 EXTI_RTSR_TR22_Msk /*!< Rising trigger event configuration bit of line 22 */
  6400. #define EXTI_RTSR_TR30_Pos (30U)
  6401. #define EXTI_RTSR_TR30_Msk (0x1U << EXTI_RTSR_TR30_Pos) /*!< 0x40000000 */
  6402. #define EXTI_RTSR_TR30 EXTI_RTSR_TR30_Msk /*!< Rising trigger event configuration bit of line 30 */
  6403. /* References Defines */
  6404. #define EXTI_RTSR_RT0 EXTI_RTSR_TR0
  6405. #define EXTI_RTSR_RT1 EXTI_RTSR_TR1
  6406. #define EXTI_RTSR_RT2 EXTI_RTSR_TR2
  6407. #define EXTI_RTSR_RT3 EXTI_RTSR_TR3
  6408. #define EXTI_RTSR_RT4 EXTI_RTSR_TR4
  6409. #define EXTI_RTSR_RT5 EXTI_RTSR_TR5
  6410. #define EXTI_RTSR_RT6 EXTI_RTSR_TR6
  6411. #define EXTI_RTSR_RT7 EXTI_RTSR_TR7
  6412. #define EXTI_RTSR_RT8 EXTI_RTSR_TR8
  6413. #define EXTI_RTSR_RT9 EXTI_RTSR_TR9
  6414. #define EXTI_RTSR_RT10 EXTI_RTSR_TR10
  6415. #define EXTI_RTSR_RT11 EXTI_RTSR_TR11
  6416. #define EXTI_RTSR_RT12 EXTI_RTSR_TR12
  6417. #define EXTI_RTSR_RT13 EXTI_RTSR_TR13
  6418. #define EXTI_RTSR_RT14 EXTI_RTSR_TR14
  6419. #define EXTI_RTSR_RT15 EXTI_RTSR_TR15
  6420. #define EXTI_RTSR_RT16 EXTI_RTSR_TR16
  6421. #define EXTI_RTSR_RT17 EXTI_RTSR_TR17
  6422. #if defined(EXTI_RTSR_TR18)
  6423. #define EXTI_RTSR_RT18 EXTI_RTSR_TR18
  6424. #endif
  6425. #define EXTI_RTSR_RT19 EXTI_RTSR_TR19
  6426. #define EXTI_RTSR_RT20 EXTI_RTSR_TR20
  6427. #if defined(EXTI_RTSR_TR21)
  6428. #define EXTI_RTSR_RT21 EXTI_RTSR_TR21
  6429. #endif
  6430. #define EXTI_RTSR_RT22 EXTI_RTSR_TR22
  6431. #if defined(EXTI_RTSR_TR23)
  6432. #define EXTI_RTSR_RT23 EXTI_RTSR_TR23
  6433. #endif
  6434. #if defined(EXTI_RTSR_TR24)
  6435. #define EXTI_RTSR_RT24 EXTI_RTSR_TR24
  6436. #endif
  6437. #if defined(EXTI_RTSR_TR25)
  6438. #define EXTI_RTSR_RT25 EXTI_RTSR_TR25
  6439. #endif
  6440. #if defined(EXTI_RTSR_TR26)
  6441. #define EXTI_RTSR_RT26 EXTI_RTSR_TR26
  6442. #endif
  6443. #if defined(EXTI_RTSR_TR27)
  6444. #define EXTI_RTSR_RT27 EXTI_RTSR_TR27
  6445. #endif
  6446. #if defined(EXTI_RTSR_TR28)
  6447. #define EXTI_RTSR_RT28 EXTI_RTSR_TR28
  6448. #endif
  6449. #if defined(EXTI_RTSR_TR29)
  6450. #define EXTI_RTSR_RT29 EXTI_RTSR_TR29
  6451. #endif
  6452. #define EXTI_RTSR_RT30 EXTI_RTSR_TR30
  6453. #if defined(EXTI_RTSR_TR31)
  6454. #define EXTI_RTSR_RT31 EXTI_RTSR_TR31
  6455. #endif
  6456. /****************** Bit definition for EXTI_FTSR register *******************/
  6457. #define EXTI_FTSR_TR0_Pos (0U)
  6458. #define EXTI_FTSR_TR0_Msk (0x1U << EXTI_FTSR_TR0_Pos) /*!< 0x00000001 */
  6459. #define EXTI_FTSR_TR0 EXTI_FTSR_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */
  6460. #define EXTI_FTSR_TR1_Pos (1U)
  6461. #define EXTI_FTSR_TR1_Msk (0x1U << EXTI_FTSR_TR1_Pos) /*!< 0x00000002 */
  6462. #define EXTI_FTSR_TR1 EXTI_FTSR_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */
  6463. #define EXTI_FTSR_TR2_Pos (2U)
  6464. #define EXTI_FTSR_TR2_Msk (0x1U << EXTI_FTSR_TR2_Pos) /*!< 0x00000004 */
  6465. #define EXTI_FTSR_TR2 EXTI_FTSR_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */
  6466. #define EXTI_FTSR_TR3_Pos (3U)
  6467. #define EXTI_FTSR_TR3_Msk (0x1U << EXTI_FTSR_TR3_Pos) /*!< 0x00000008 */
  6468. #define EXTI_FTSR_TR3 EXTI_FTSR_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */
  6469. #define EXTI_FTSR_TR4_Pos (4U)
  6470. #define EXTI_FTSR_TR4_Msk (0x1U << EXTI_FTSR_TR4_Pos) /*!< 0x00000010 */
  6471. #define EXTI_FTSR_TR4 EXTI_FTSR_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */
  6472. #define EXTI_FTSR_TR5_Pos (5U)
  6473. #define EXTI_FTSR_TR5_Msk (0x1U << EXTI_FTSR_TR5_Pos) /*!< 0x00000020 */
  6474. #define EXTI_FTSR_TR5 EXTI_FTSR_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */
  6475. #define EXTI_FTSR_TR6_Pos (6U)
  6476. #define EXTI_FTSR_TR6_Msk (0x1U << EXTI_FTSR_TR6_Pos) /*!< 0x00000040 */
  6477. #define EXTI_FTSR_TR6 EXTI_FTSR_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */
  6478. #define EXTI_FTSR_TR7_Pos (7U)
  6479. #define EXTI_FTSR_TR7_Msk (0x1U << EXTI_FTSR_TR7_Pos) /*!< 0x00000080 */
  6480. #define EXTI_FTSR_TR7 EXTI_FTSR_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */
  6481. #define EXTI_FTSR_TR8_Pos (8U)
  6482. #define EXTI_FTSR_TR8_Msk (0x1U << EXTI_FTSR_TR8_Pos) /*!< 0x00000100 */
  6483. #define EXTI_FTSR_TR8 EXTI_FTSR_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */
  6484. #define EXTI_FTSR_TR9_Pos (9U)
  6485. #define EXTI_FTSR_TR9_Msk (0x1U << EXTI_FTSR_TR9_Pos) /*!< 0x00000200 */
  6486. #define EXTI_FTSR_TR9 EXTI_FTSR_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */
  6487. #define EXTI_FTSR_TR10_Pos (10U)
  6488. #define EXTI_FTSR_TR10_Msk (0x1U << EXTI_FTSR_TR10_Pos) /*!< 0x00000400 */
  6489. #define EXTI_FTSR_TR10 EXTI_FTSR_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */
  6490. #define EXTI_FTSR_TR11_Pos (11U)
  6491. #define EXTI_FTSR_TR11_Msk (0x1U << EXTI_FTSR_TR11_Pos) /*!< 0x00000800 */
  6492. #define EXTI_FTSR_TR11 EXTI_FTSR_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */
  6493. #define EXTI_FTSR_TR12_Pos (12U)
  6494. #define EXTI_FTSR_TR12_Msk (0x1U << EXTI_FTSR_TR12_Pos) /*!< 0x00001000 */
  6495. #define EXTI_FTSR_TR12 EXTI_FTSR_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */
  6496. #define EXTI_FTSR_TR13_Pos (13U)
  6497. #define EXTI_FTSR_TR13_Msk (0x1U << EXTI_FTSR_TR13_Pos) /*!< 0x00002000 */
  6498. #define EXTI_FTSR_TR13 EXTI_FTSR_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */
  6499. #define EXTI_FTSR_TR14_Pos (14U)
  6500. #define EXTI_FTSR_TR14_Msk (0x1U << EXTI_FTSR_TR14_Pos) /*!< 0x00004000 */
  6501. #define EXTI_FTSR_TR14 EXTI_FTSR_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */
  6502. #define EXTI_FTSR_TR15_Pos (15U)
  6503. #define EXTI_FTSR_TR15_Msk (0x1U << EXTI_FTSR_TR15_Pos) /*!< 0x00008000 */
  6504. #define EXTI_FTSR_TR15 EXTI_FTSR_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */
  6505. #define EXTI_FTSR_TR16_Pos (16U)
  6506. #define EXTI_FTSR_TR16_Msk (0x1U << EXTI_FTSR_TR16_Pos) /*!< 0x00010000 */
  6507. #define EXTI_FTSR_TR16 EXTI_FTSR_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */
  6508. #define EXTI_FTSR_TR17_Pos (17U)
  6509. #define EXTI_FTSR_TR17_Msk (0x1U << EXTI_FTSR_TR17_Pos) /*!< 0x00020000 */
  6510. #define EXTI_FTSR_TR17 EXTI_FTSR_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */
  6511. #define EXTI_FTSR_TR19_Pos (19U)
  6512. #define EXTI_FTSR_TR19_Msk (0x1U << EXTI_FTSR_TR19_Pos) /*!< 0x00080000 */
  6513. #define EXTI_FTSR_TR19 EXTI_FTSR_TR19_Msk /*!< Falling trigger event configuration bit of line 19 */
  6514. #define EXTI_FTSR_TR20_Pos (20U)
  6515. #define EXTI_FTSR_TR20_Msk (0x1U << EXTI_FTSR_TR20_Pos) /*!< 0x00100000 */
  6516. #define EXTI_FTSR_TR20 EXTI_FTSR_TR20_Msk /*!< Falling trigger event configuration bit of line 20 */
  6517. #define EXTI_FTSR_TR22_Pos (22U)
  6518. #define EXTI_FTSR_TR22_Msk (0x1U << EXTI_FTSR_TR22_Pos) /*!< 0x00400000 */
  6519. #define EXTI_FTSR_TR22 EXTI_FTSR_TR22_Msk /*!< Falling trigger event configuration bit of line 22 */
  6520. #define EXTI_FTSR_TR30_Pos (30U)
  6521. #define EXTI_FTSR_TR30_Msk (0x1U << EXTI_FTSR_TR30_Pos) /*!< 0x40000000 */
  6522. #define EXTI_FTSR_TR30 EXTI_FTSR_TR30_Msk /*!< Falling trigger event configuration bit of line 30 */
  6523. /* References Defines */
  6524. #define EXTI_FTSR_FT0 EXTI_FTSR_TR0
  6525. #define EXTI_FTSR_FT1 EXTI_FTSR_TR1
  6526. #define EXTI_FTSR_FT2 EXTI_FTSR_TR2
  6527. #define EXTI_FTSR_FT3 EXTI_FTSR_TR3
  6528. #define EXTI_FTSR_FT4 EXTI_FTSR_TR4
  6529. #define EXTI_FTSR_FT5 EXTI_FTSR_TR5
  6530. #define EXTI_FTSR_FT6 EXTI_FTSR_TR6
  6531. #define EXTI_FTSR_FT7 EXTI_FTSR_TR7
  6532. #define EXTI_FTSR_FT8 EXTI_FTSR_TR8
  6533. #define EXTI_FTSR_FT9 EXTI_FTSR_TR9
  6534. #define EXTI_FTSR_FT10 EXTI_FTSR_TR10
  6535. #define EXTI_FTSR_FT11 EXTI_FTSR_TR11
  6536. #define EXTI_FTSR_FT12 EXTI_FTSR_TR12
  6537. #define EXTI_FTSR_FT13 EXTI_FTSR_TR13
  6538. #define EXTI_FTSR_FT14 EXTI_FTSR_TR14
  6539. #define EXTI_FTSR_FT15 EXTI_FTSR_TR15
  6540. #define EXTI_FTSR_FT16 EXTI_FTSR_TR16
  6541. #define EXTI_FTSR_FT17 EXTI_FTSR_TR17
  6542. #if defined(EXTI_FTSR_TR18)
  6543. #define EXTI_FTSR_FT18 EXTI_FTSR_TR18
  6544. #endif
  6545. #define EXTI_FTSR_FT19 EXTI_FTSR_TR19
  6546. #define EXTI_FTSR_FT20 EXTI_FTSR_TR20
  6547. #if defined(EXTI_FTSR_TR21)
  6548. #define EXTI_FTSR_FT21 EXTI_FTSR_TR21
  6549. #endif
  6550. #define EXTI_FTSR_FT22 EXTI_FTSR_TR22
  6551. #if defined(EXTI_FTSR_TR23)
  6552. #define EXTI_FTSR_FT23 EXTI_FTSR_TR23
  6553. #endif
  6554. #if defined(EXTI_FTSR_TR24)
  6555. #define EXTI_FTSR_FT24 EXTI_FTSR_TR24
  6556. #endif
  6557. #if defined(EXTI_FTSR_TR25)
  6558. #define EXTI_FTSR_FT25 EXTI_FTSR_TR25
  6559. #endif
  6560. #if defined(EXTI_FTSR_TR26)
  6561. #define EXTI_FTSR_FT26 EXTI_FTSR_TR26
  6562. #endif
  6563. #if defined(EXTI_FTSR_TR27)
  6564. #define EXTI_FTSR_FT27 EXTI_FTSR_TR27
  6565. #endif
  6566. #if defined(EXTI_FTSR_TR28)
  6567. #define EXTI_FTSR_FT28 EXTI_FTSR_TR28
  6568. #endif
  6569. #if defined(EXTI_FTSR_TR29)
  6570. #define EXTI_FTSR_FT29 EXTI_FTSR_TR29
  6571. #endif
  6572. #define EXTI_FTSR_FT30 EXTI_FTSR_TR30
  6573. #if defined(EXTI_FTSR_TR31)
  6574. #define EXTI_FTSR_FT31 EXTI_FTSR_TR31
  6575. #endif
  6576. /****************** Bit definition for EXTI_SWIER register ******************/
  6577. #define EXTI_SWIER_SWIER0_Pos (0U)
  6578. #define EXTI_SWIER_SWIER0_Msk (0x1U << EXTI_SWIER_SWIER0_Pos) /*!< 0x00000001 */
  6579. #define EXTI_SWIER_SWIER0 EXTI_SWIER_SWIER0_Msk /*!< Software Interrupt on line 0 */
  6580. #define EXTI_SWIER_SWIER1_Pos (1U)
  6581. #define EXTI_SWIER_SWIER1_Msk (0x1U << EXTI_SWIER_SWIER1_Pos) /*!< 0x00000002 */
  6582. #define EXTI_SWIER_SWIER1 EXTI_SWIER_SWIER1_Msk /*!< Software Interrupt on line 1 */
  6583. #define EXTI_SWIER_SWIER2_Pos (2U)
  6584. #define EXTI_SWIER_SWIER2_Msk (0x1U << EXTI_SWIER_SWIER2_Pos) /*!< 0x00000004 */
  6585. #define EXTI_SWIER_SWIER2 EXTI_SWIER_SWIER2_Msk /*!< Software Interrupt on line 2 */
  6586. #define EXTI_SWIER_SWIER3_Pos (3U)
  6587. #define EXTI_SWIER_SWIER3_Msk (0x1U << EXTI_SWIER_SWIER3_Pos) /*!< 0x00000008 */
  6588. #define EXTI_SWIER_SWIER3 EXTI_SWIER_SWIER3_Msk /*!< Software Interrupt on line 3 */
  6589. #define EXTI_SWIER_SWIER4_Pos (4U)
  6590. #define EXTI_SWIER_SWIER4_Msk (0x1U << EXTI_SWIER_SWIER4_Pos) /*!< 0x00000010 */
  6591. #define EXTI_SWIER_SWIER4 EXTI_SWIER_SWIER4_Msk /*!< Software Interrupt on line 4 */
  6592. #define EXTI_SWIER_SWIER5_Pos (5U)
  6593. #define EXTI_SWIER_SWIER5_Msk (0x1U << EXTI_SWIER_SWIER5_Pos) /*!< 0x00000020 */
  6594. #define EXTI_SWIER_SWIER5 EXTI_SWIER_SWIER5_Msk /*!< Software Interrupt on line 5 */
  6595. #define EXTI_SWIER_SWIER6_Pos (6U)
  6596. #define EXTI_SWIER_SWIER6_Msk (0x1U << EXTI_SWIER_SWIER6_Pos) /*!< 0x00000040 */
  6597. #define EXTI_SWIER_SWIER6 EXTI_SWIER_SWIER6_Msk /*!< Software Interrupt on line 6 */
  6598. #define EXTI_SWIER_SWIER7_Pos (7U)
  6599. #define EXTI_SWIER_SWIER7_Msk (0x1U << EXTI_SWIER_SWIER7_Pos) /*!< 0x00000080 */
  6600. #define EXTI_SWIER_SWIER7 EXTI_SWIER_SWIER7_Msk /*!< Software Interrupt on line 7 */
  6601. #define EXTI_SWIER_SWIER8_Pos (8U)
  6602. #define EXTI_SWIER_SWIER8_Msk (0x1U << EXTI_SWIER_SWIER8_Pos) /*!< 0x00000100 */
  6603. #define EXTI_SWIER_SWIER8 EXTI_SWIER_SWIER8_Msk /*!< Software Interrupt on line 8 */
  6604. #define EXTI_SWIER_SWIER9_Pos (9U)
  6605. #define EXTI_SWIER_SWIER9_Msk (0x1U << EXTI_SWIER_SWIER9_Pos) /*!< 0x00000200 */
  6606. #define EXTI_SWIER_SWIER9 EXTI_SWIER_SWIER9_Msk /*!< Software Interrupt on line 9 */
  6607. #define EXTI_SWIER_SWIER10_Pos (10U)
  6608. #define EXTI_SWIER_SWIER10_Msk (0x1U << EXTI_SWIER_SWIER10_Pos) /*!< 0x00000400 */
  6609. #define EXTI_SWIER_SWIER10 EXTI_SWIER_SWIER10_Msk /*!< Software Interrupt on line 10 */
  6610. #define EXTI_SWIER_SWIER11_Pos (11U)
  6611. #define EXTI_SWIER_SWIER11_Msk (0x1U << EXTI_SWIER_SWIER11_Pos) /*!< 0x00000800 */
  6612. #define EXTI_SWIER_SWIER11 EXTI_SWIER_SWIER11_Msk /*!< Software Interrupt on line 11 */
  6613. #define EXTI_SWIER_SWIER12_Pos (12U)
  6614. #define EXTI_SWIER_SWIER12_Msk (0x1U << EXTI_SWIER_SWIER12_Pos) /*!< 0x00001000 */
  6615. #define EXTI_SWIER_SWIER12 EXTI_SWIER_SWIER12_Msk /*!< Software Interrupt on line 12 */
  6616. #define EXTI_SWIER_SWIER13_Pos (13U)
  6617. #define EXTI_SWIER_SWIER13_Msk (0x1U << EXTI_SWIER_SWIER13_Pos) /*!< 0x00002000 */
  6618. #define EXTI_SWIER_SWIER13 EXTI_SWIER_SWIER13_Msk /*!< Software Interrupt on line 13 */
  6619. #define EXTI_SWIER_SWIER14_Pos (14U)
  6620. #define EXTI_SWIER_SWIER14_Msk (0x1U << EXTI_SWIER_SWIER14_Pos) /*!< 0x00004000 */
  6621. #define EXTI_SWIER_SWIER14 EXTI_SWIER_SWIER14_Msk /*!< Software Interrupt on line 14 */
  6622. #define EXTI_SWIER_SWIER15_Pos (15U)
  6623. #define EXTI_SWIER_SWIER15_Msk (0x1U << EXTI_SWIER_SWIER15_Pos) /*!< 0x00008000 */
  6624. #define EXTI_SWIER_SWIER15 EXTI_SWIER_SWIER15_Msk /*!< Software Interrupt on line 15 */
  6625. #define EXTI_SWIER_SWIER16_Pos (16U)
  6626. #define EXTI_SWIER_SWIER16_Msk (0x1U << EXTI_SWIER_SWIER16_Pos) /*!< 0x00010000 */
  6627. #define EXTI_SWIER_SWIER16 EXTI_SWIER_SWIER16_Msk /*!< Software Interrupt on line 16 */
  6628. #define EXTI_SWIER_SWIER17_Pos (17U)
  6629. #define EXTI_SWIER_SWIER17_Msk (0x1U << EXTI_SWIER_SWIER17_Pos) /*!< 0x00020000 */
  6630. #define EXTI_SWIER_SWIER17 EXTI_SWIER_SWIER17_Msk /*!< Software Interrupt on line 17 */
  6631. #define EXTI_SWIER_SWIER19_Pos (19U)
  6632. #define EXTI_SWIER_SWIER19_Msk (0x1U << EXTI_SWIER_SWIER19_Pos) /*!< 0x00080000 */
  6633. #define EXTI_SWIER_SWIER19 EXTI_SWIER_SWIER19_Msk /*!< Software Interrupt on line 19 */
  6634. #define EXTI_SWIER_SWIER20_Pos (20U)
  6635. #define EXTI_SWIER_SWIER20_Msk (0x1U << EXTI_SWIER_SWIER20_Pos) /*!< 0x00100000 */
  6636. #define EXTI_SWIER_SWIER20 EXTI_SWIER_SWIER20_Msk /*!< Software Interrupt on line 20 */
  6637. #define EXTI_SWIER_SWIER22_Pos (22U)
  6638. #define EXTI_SWIER_SWIER22_Msk (0x1U << EXTI_SWIER_SWIER22_Pos) /*!< 0x00400000 */
  6639. #define EXTI_SWIER_SWIER22 EXTI_SWIER_SWIER22_Msk /*!< Software Interrupt on line 22 */
  6640. #define EXTI_SWIER_SWIER30_Pos (30U)
  6641. #define EXTI_SWIER_SWIER30_Msk (0x1U << EXTI_SWIER_SWIER30_Pos) /*!< 0x40000000 */
  6642. #define EXTI_SWIER_SWIER30 EXTI_SWIER_SWIER30_Msk /*!< Software Interrupt on line 30 */
  6643. /* References Defines */
  6644. #define EXTI_SWIER_SWI0 EXTI_SWIER_SWIER0
  6645. #define EXTI_SWIER_SWI1 EXTI_SWIER_SWIER1
  6646. #define EXTI_SWIER_SWI2 EXTI_SWIER_SWIER2
  6647. #define EXTI_SWIER_SWI3 EXTI_SWIER_SWIER3
  6648. #define EXTI_SWIER_SWI4 EXTI_SWIER_SWIER4
  6649. #define EXTI_SWIER_SWI5 EXTI_SWIER_SWIER5
  6650. #define EXTI_SWIER_SWI6 EXTI_SWIER_SWIER6
  6651. #define EXTI_SWIER_SWI7 EXTI_SWIER_SWIER7
  6652. #define EXTI_SWIER_SWI8 EXTI_SWIER_SWIER8
  6653. #define EXTI_SWIER_SWI9 EXTI_SWIER_SWIER9
  6654. #define EXTI_SWIER_SWI10 EXTI_SWIER_SWIER10
  6655. #define EXTI_SWIER_SWI11 EXTI_SWIER_SWIER11
  6656. #define EXTI_SWIER_SWI12 EXTI_SWIER_SWIER12
  6657. #define EXTI_SWIER_SWI13 EXTI_SWIER_SWIER13
  6658. #define EXTI_SWIER_SWI14 EXTI_SWIER_SWIER14
  6659. #define EXTI_SWIER_SWI15 EXTI_SWIER_SWIER15
  6660. #define EXTI_SWIER_SWI16 EXTI_SWIER_SWIER16
  6661. #define EXTI_SWIER_SWI17 EXTI_SWIER_SWIER17
  6662. #if defined(EXTI_SWIER_SWIER18)
  6663. #define EXTI_SWIER_SWI18 EXTI_SWIER_SWIER18
  6664. #endif
  6665. #define EXTI_SWIER_SWI19 EXTI_SWIER_SWIER19
  6666. #define EXTI_SWIER_SWI20 EXTI_SWIER_SWIER20
  6667. #if defined(EXTI_SWIER_SWIER21)
  6668. #define EXTI_SWIER_SWI21 EXTI_SWIER_SWIER21
  6669. #endif
  6670. #define EXTI_SWIER_SWI22 EXTI_SWIER_SWIER22
  6671. #if defined(EXTI_SWIER_SWIER23)
  6672. #define EXTI_SWIER_SWI23 EXTI_SWIER_SWIER23
  6673. #endif
  6674. #if defined(EXTI_SWIER_SWIER24)
  6675. #define EXTI_SWIER_SWI24 EXTI_SWIER_SWIER24
  6676. #endif
  6677. #if defined(EXTI_SWIER_SWIER25)
  6678. #define EXTI_SWIER_SWI25 EXTI_SWIER_SWIER25
  6679. #endif
  6680. #if defined(EXTI_SWIER_SWIER26)
  6681. #define EXTI_SWIER_SWI26 EXTI_SWIER_SWIER26
  6682. #endif
  6683. #if defined(EXTI_SWIER_SWIER27)
  6684. #define EXTI_SWIER_SWI27 EXTI_SWIER_SWIER27
  6685. #endif
  6686. #if defined(EXTI_SWIER_SWIER28)
  6687. #define EXTI_SWIER_SWI28 EXTI_SWIER_SWIER28
  6688. #endif
  6689. #if defined(EXTI_SWIER_SWIER29)
  6690. #define EXTI_SWIER_SWI29 EXTI_SWIER_SWIER29
  6691. #endif
  6692. #define EXTI_SWIER_SWI30 EXTI_SWIER_SWIER30
  6693. #if defined(EXTI_SWIER_SWIER31)
  6694. #define EXTI_SWIER_SWI31 EXTI_SWIER_SWIER31
  6695. #endif
  6696. /******************* Bit definition for EXTI_PR register ********************/
  6697. #define EXTI_PR_PR0_Pos (0U)
  6698. #define EXTI_PR_PR0_Msk (0x1U << EXTI_PR_PR0_Pos) /*!< 0x00000001 */
  6699. #define EXTI_PR_PR0 EXTI_PR_PR0_Msk /*!< Pending bit for line 0 */
  6700. #define EXTI_PR_PR1_Pos (1U)
  6701. #define EXTI_PR_PR1_Msk (0x1U << EXTI_PR_PR1_Pos) /*!< 0x00000002 */
  6702. #define EXTI_PR_PR1 EXTI_PR_PR1_Msk /*!< Pending bit for line 1 */
  6703. #define EXTI_PR_PR2_Pos (2U)
  6704. #define EXTI_PR_PR2_Msk (0x1U << EXTI_PR_PR2_Pos) /*!< 0x00000004 */
  6705. #define EXTI_PR_PR2 EXTI_PR_PR2_Msk /*!< Pending bit for line 2 */
  6706. #define EXTI_PR_PR3_Pos (3U)
  6707. #define EXTI_PR_PR3_Msk (0x1U << EXTI_PR_PR3_Pos) /*!< 0x00000008 */
  6708. #define EXTI_PR_PR3 EXTI_PR_PR3_Msk /*!< Pending bit for line 3 */
  6709. #define EXTI_PR_PR4_Pos (4U)
  6710. #define EXTI_PR_PR4_Msk (0x1U << EXTI_PR_PR4_Pos) /*!< 0x00000010 */
  6711. #define EXTI_PR_PR4 EXTI_PR_PR4_Msk /*!< Pending bit for line 4 */
  6712. #define EXTI_PR_PR5_Pos (5U)
  6713. #define EXTI_PR_PR5_Msk (0x1U << EXTI_PR_PR5_Pos) /*!< 0x00000020 */
  6714. #define EXTI_PR_PR5 EXTI_PR_PR5_Msk /*!< Pending bit for line 5 */
  6715. #define EXTI_PR_PR6_Pos (6U)
  6716. #define EXTI_PR_PR6_Msk (0x1U << EXTI_PR_PR6_Pos) /*!< 0x00000040 */
  6717. #define EXTI_PR_PR6 EXTI_PR_PR6_Msk /*!< Pending bit for line 6 */
  6718. #define EXTI_PR_PR7_Pos (7U)
  6719. #define EXTI_PR_PR7_Msk (0x1U << EXTI_PR_PR7_Pos) /*!< 0x00000080 */
  6720. #define EXTI_PR_PR7 EXTI_PR_PR7_Msk /*!< Pending bit for line 7 */
  6721. #define EXTI_PR_PR8_Pos (8U)
  6722. #define EXTI_PR_PR8_Msk (0x1U << EXTI_PR_PR8_Pos) /*!< 0x00000100 */
  6723. #define EXTI_PR_PR8 EXTI_PR_PR8_Msk /*!< Pending bit for line 8 */
  6724. #define EXTI_PR_PR9_Pos (9U)
  6725. #define EXTI_PR_PR9_Msk (0x1U << EXTI_PR_PR9_Pos) /*!< 0x00000200 */
  6726. #define EXTI_PR_PR9 EXTI_PR_PR9_Msk /*!< Pending bit for line 9 */
  6727. #define EXTI_PR_PR10_Pos (10U)
  6728. #define EXTI_PR_PR10_Msk (0x1U << EXTI_PR_PR10_Pos) /*!< 0x00000400 */
  6729. #define EXTI_PR_PR10 EXTI_PR_PR10_Msk /*!< Pending bit for line 10 */
  6730. #define EXTI_PR_PR11_Pos (11U)
  6731. #define EXTI_PR_PR11_Msk (0x1U << EXTI_PR_PR11_Pos) /*!< 0x00000800 */
  6732. #define EXTI_PR_PR11 EXTI_PR_PR11_Msk /*!< Pending bit for line 11 */
  6733. #define EXTI_PR_PR12_Pos (12U)
  6734. #define EXTI_PR_PR12_Msk (0x1U << EXTI_PR_PR12_Pos) /*!< 0x00001000 */
  6735. #define EXTI_PR_PR12 EXTI_PR_PR12_Msk /*!< Pending bit for line 12 */
  6736. #define EXTI_PR_PR13_Pos (13U)
  6737. #define EXTI_PR_PR13_Msk (0x1U << EXTI_PR_PR13_Pos) /*!< 0x00002000 */
  6738. #define EXTI_PR_PR13 EXTI_PR_PR13_Msk /*!< Pending bit for line 13 */
  6739. #define EXTI_PR_PR14_Pos (14U)
  6740. #define EXTI_PR_PR14_Msk (0x1U << EXTI_PR_PR14_Pos) /*!< 0x00004000 */
  6741. #define EXTI_PR_PR14 EXTI_PR_PR14_Msk /*!< Pending bit for line 14 */
  6742. #define EXTI_PR_PR15_Pos (15U)
  6743. #define EXTI_PR_PR15_Msk (0x1U << EXTI_PR_PR15_Pos) /*!< 0x00008000 */
  6744. #define EXTI_PR_PR15 EXTI_PR_PR15_Msk /*!< Pending bit for line 15 */
  6745. #define EXTI_PR_PR16_Pos (16U)
  6746. #define EXTI_PR_PR16_Msk (0x1U << EXTI_PR_PR16_Pos) /*!< 0x00010000 */
  6747. #define EXTI_PR_PR16 EXTI_PR_PR16_Msk /*!< Pending bit for line 16 */
  6748. #define EXTI_PR_PR17_Pos (17U)
  6749. #define EXTI_PR_PR17_Msk (0x1U << EXTI_PR_PR17_Pos) /*!< 0x00020000 */
  6750. #define EXTI_PR_PR17 EXTI_PR_PR17_Msk /*!< Pending bit for line 17 */
  6751. #define EXTI_PR_PR19_Pos (19U)
  6752. #define EXTI_PR_PR19_Msk (0x1U << EXTI_PR_PR19_Pos) /*!< 0x00080000 */
  6753. #define EXTI_PR_PR19 EXTI_PR_PR19_Msk /*!< Pending bit for line 19 */
  6754. #define EXTI_PR_PR20_Pos (20U)
  6755. #define EXTI_PR_PR20_Msk (0x1U << EXTI_PR_PR20_Pos) /*!< 0x00100000 */
  6756. #define EXTI_PR_PR20 EXTI_PR_PR20_Msk /*!< Pending bit for line 20 */
  6757. #define EXTI_PR_PR22_Pos (22U)
  6758. #define EXTI_PR_PR22_Msk (0x1U << EXTI_PR_PR22_Pos) /*!< 0x00400000 */
  6759. #define EXTI_PR_PR22 EXTI_PR_PR22_Msk /*!< Pending bit for line 22 */
  6760. #define EXTI_PR_PR30_Pos (30U)
  6761. #define EXTI_PR_PR30_Msk (0x1U << EXTI_PR_PR30_Pos) /*!< 0x40000000 */
  6762. #define EXTI_PR_PR30 EXTI_PR_PR30_Msk /*!< Pending bit for line 30 */
  6763. /* References Defines */
  6764. #define EXTI_PR_PIF0 EXTI_PR_PR0
  6765. #define EXTI_PR_PIF1 EXTI_PR_PR1
  6766. #define EXTI_PR_PIF2 EXTI_PR_PR2
  6767. #define EXTI_PR_PIF3 EXTI_PR_PR3
  6768. #define EXTI_PR_PIF4 EXTI_PR_PR4
  6769. #define EXTI_PR_PIF5 EXTI_PR_PR5
  6770. #define EXTI_PR_PIF6 EXTI_PR_PR6
  6771. #define EXTI_PR_PIF6 EXTI_PR_PR6
  6772. #define EXTI_PR_PIF7 EXTI_PR_PR7
  6773. #define EXTI_PR_PIF8 EXTI_PR_PR8
  6774. #define EXTI_PR_PIF9 EXTI_PR_PR9
  6775. #define EXTI_PR_PIF10 EXTI_PR_PR10
  6776. #define EXTI_PR_PIF11 EXTI_PR_PR11
  6777. #define EXTI_PR_PIF12 EXTI_PR_PR12
  6778. #define EXTI_PR_PIF13 EXTI_PR_PR13
  6779. #define EXTI_PR_PIF14 EXTI_PR_PR14
  6780. #define EXTI_PR_PIF15 EXTI_PR_PR15
  6781. #define EXTI_PR_PIF16 EXTI_PR_PR16
  6782. #define EXTI_PR_PIF17 EXTI_PR_PR17
  6783. #if defined(EXTI_PR_PR18)
  6784. #define EXTI_PR_PIF18 EXTI_PR_PR18
  6785. #endif
  6786. #define EXTI_PR_PIF19 EXTI_PR_PR19
  6787. #define EXTI_PR_PIF20 EXTI_PR_PR20
  6788. #if defined(EXTI_PR_PR21)
  6789. #define EXTI_PR_PIF21 EXTI_PR_PR21
  6790. #endif
  6791. #define EXTI_PR_PIF22 EXTI_PR_PR22
  6792. #if defined(EXTI_PR_PR23)
  6793. #define EXTI_PR_PIF23 EXTI_PR_PR23
  6794. #endif
  6795. #if defined(EXTI_PR_PR24)
  6796. #define EXTI_PR_PIF24 EXTI_PR_PR24
  6797. #endif
  6798. #if defined(EXTI_PR_PR25)
  6799. #define EXTI_PR_PIF25 EXTI_PR_PR25
  6800. #endif
  6801. #if defined(EXTI_PR_PR26)
  6802. #define EXTI_PR_PIF26 EXTI_PR_PR26
  6803. #endif
  6804. #if defined(EXTI_PR_PR27)
  6805. #define EXTI_PR_PIF27 EXTI_PR_PR27
  6806. #endif
  6807. #if defined(EXTI_PR_PR28)
  6808. #define EXTI_PR_PIF28 EXTI_PR_PR28
  6809. #endif
  6810. #if defined(EXTI_PR_PR29)
  6811. #define EXTI_PR_PIF29 EXTI_PR_PR29
  6812. #endif
  6813. #define EXTI_PR_PIF30 EXTI_PR_PR30
  6814. #if defined(EXTI_PR_PR31)
  6815. #define EXTI_PR_PIF31 EXTI_PR_PR31
  6816. #endif
  6817. #define EXTI_32_63_SUPPORT /* EXTI support more than 32 lines */
  6818. /******************* Bit definition for EXTI_IMR2 register ******************/
  6819. #define EXTI_IMR2_MR32_Pos (0U)
  6820. #define EXTI_IMR2_MR32_Msk (0x1U << EXTI_IMR2_MR32_Pos) /*!< 0x00000001 */
  6821. #define EXTI_IMR2_MR32 EXTI_IMR2_MR32_Msk /*!< Interrupt Mask on line 32 */
  6822. /* References Defines */
  6823. #define EXTI_IMR2_IM32 EXTI_IMR2_MR32
  6824. #if defined(EXTI_IMR2_MR33)
  6825. #define EXTI_IMR2_IM33 EXTI_IMR2_MR33
  6826. #endif
  6827. #if defined(EXTI_IMR2_MR34)
  6828. #define EXTI_IMR2_IM34 EXTI_IMR2_MR34
  6829. #endif
  6830. #if defined(EXTI_IMR2_MR35)
  6831. #define EXTI_IMR2_IM35 EXTI_IMR2_MR35
  6832. #endif
  6833. #if defined(EXTI_IMR2_MR33) && defined(EXTI_IMR2_MR34) && defined(EXTI_IMR2_MR35)
  6834. #define EXTI_IMR2_IM_Pos (0U)
  6835. #define EXTI_IMR2_IM_Msk (0xFU << EXTI_IMR2_IM_Pos) /*!< 0x0000000F */
  6836. #define EXTI_IMR2_IM EXTI_IMR2_IM_Msk
  6837. #elif defined(EXTI_IMR2_MR34) && defined(EXTI_IMR2_MR35)
  6838. #define EXTI_IMR2_IM_Pos (0U)
  6839. #define EXTI_IMR2_IM_Msk (0xDU << EXTI_IMR2_IM_Pos) /*!< 0x0000000D */
  6840. #define EXTI_IMR2_IM EXTI_IMR2_IM_Msk
  6841. #else
  6842. #define EXTI_IMR2_IM_Pos (0U)
  6843. #define EXTI_IMR2_IM_Msk (0x1U << EXTI_IMR2_IM_Pos) /*!< 0x00000001 */
  6844. #define EXTI_IMR2_IM EXTI_IMR2_IM_Msk
  6845. #endif
  6846. /******************* Bit definition for EXTI_EMR2 ****************************/
  6847. #define EXTI_EMR2_MR32_Pos (0U)
  6848. #define EXTI_EMR2_MR32_Msk (0x1U << EXTI_EMR2_MR32_Pos) /*!< 0x00000001 */
  6849. #define EXTI_EMR2_MR32 EXTI_EMR2_MR32_Msk /*!< Event Mask on line 32 */
  6850. /* References Defines */
  6851. #define EXTI_EMR2_EM32 EXTI_EMR2_MR32
  6852. #if defined(EXTI_EMR2_MR33)
  6853. #define EXTI_EMR2_EM33 EXTI_EMR2_MR33
  6854. #endif
  6855. #if defined(EXTI_EMR2_MR34)
  6856. #define EXTI_EMR2_EM34 EXTI_EMR2_MR34
  6857. #endif
  6858. #if defined(EXTI_EMR2_MR35)
  6859. #define EXTI_EMR2_EM35 EXTI_EMR2_MR35
  6860. #endif
  6861. #if defined(EXTI_EMR2_MR33) && defined(EXTI_EMR2_MR34) && defined(EXTI_EMR2_MR35)
  6862. #define EXTI_EMR2_EM_Pos (0U)
  6863. #define EXTI_EMR2_EM_Msk (0xFU << EXTI_EMR2_EM_Pos) /*!< 0x0000000F */
  6864. #define EXTI_EMR2_EM EXTI_EMR2_EM_Msk
  6865. #elif defined(EXTI_EMR2_MR34) && defined(EXTI_EMR2_MR35)
  6866. #define EXTI_EMR2_EM_Pos (0U)
  6867. #define EXTI_EMR2_EM_Msk (0xDU << EXTI_EMR2_EM_Pos) /*!< 0x0000000D */
  6868. #define EXTI_EMR2_EM EXTI_EMR2_EM_Msk
  6869. #else
  6870. #define EXTI_EMR2_EM_Pos (0U)
  6871. #define EXTI_EMR2_EM_Msk (0x1U << EXTI_EMR2_EM_Pos) /*!< 0x00000001 */
  6872. #define EXTI_EMR2_EM EXTI_EMR2_EM_Msk
  6873. #endif
  6874. /****************** Bit definition for EXTI_RTSR2 register ********************/
  6875. #define EXTI_RTSR2_TR32_Pos (0U)
  6876. #define EXTI_RTSR2_TR32_Msk (0x1U << EXTI_RTSR2_TR32_Pos) /*!< 0x00000001 */
  6877. #define EXTI_RTSR2_TR32 EXTI_RTSR2_TR32_Msk /*!< Rising trigger event configuration bit of line 32 */
  6878. /* References Defines */
  6879. #define EXTI_RTSR2_RT32 EXTI_RTSR2_TR32
  6880. #if defined(EXTI_RTSR2_TR33)
  6881. #define EXTI_RTSR2_RT33 EXTI_RTSR2_TR33
  6882. #endif
  6883. #if defined(EXTI_RTSR2_TR34)
  6884. #define EXTI_RTSR2_RT34 EXTI_RTSR2_TR34
  6885. #endif
  6886. #if defined(EXTI_RTSR2_TR35)
  6887. #define EXTI_RTSR2_RT35 EXTI_RTSR2_TR35
  6888. #endif
  6889. /****************** Bit definition for EXTI_FTSR2 register ******************/
  6890. #define EXTI_FTSR2_TR32_Pos (0U)
  6891. #define EXTI_FTSR2_TR32_Msk (0x1U << EXTI_FTSR2_TR32_Pos) /*!< 0x00000001 */
  6892. #define EXTI_FTSR2_TR32 EXTI_FTSR2_TR32_Msk /*!< Falling trigger event configuration bit of line 32 */
  6893. /* References Defines */
  6894. #define EXTI_FTSR2_FT32 EXTI_FTSR2_TR32
  6895. #if defined(EXTI_FTSR2_TR33)
  6896. #define EXTI_FTSR2_FT33 EXTI_FTSR2_TR33
  6897. #endif
  6898. #if defined(EXTI_FTSR2_TR34)
  6899. #define EXTI_FTSR2_FT34 EXTI_FTSR2_TR34
  6900. #endif
  6901. #if defined(EXTI_FTSR2_TR35)
  6902. #define EXTI_FTSR2_FT35 EXTI_FTSR2_TR35
  6903. #endif
  6904. /****************** Bit definition for EXTI_SWIER2 register *****************/
  6905. #define EXTI_SWIER2_SWIER32_Pos (0U)
  6906. #define EXTI_SWIER2_SWIER32_Msk (0x1U << EXTI_SWIER2_SWIER32_Pos) /*!< 0x00000001 */
  6907. #define EXTI_SWIER2_SWIER32 EXTI_SWIER2_SWIER32_Msk /*!< Software Interrupt on line 32 */
  6908. /* References Defines */
  6909. #define EXTI_SWIER2_SWI32 EXTI_SWIER2_SWIER32
  6910. #if defined(EXTI_SWIER2_SWIER33)
  6911. #define EXTI_SWIER2_SWI33 EXTI_SWIER2_SWIER33
  6912. #endif
  6913. #if defined(EXTI_SWIER2_SWIER34)
  6914. #define EXTI_SWIER2_SWI34 EXTI_SWIER2_SWIER34
  6915. #endif
  6916. #if defined(EXTI_SWIER2_SWIER35)
  6917. #define EXTI_SWIER2_SWI35 EXTI_SWIER2_SWIER35
  6918. #endif
  6919. /******************* Bit definition for EXTI_PR2 register *******************/
  6920. #define EXTI_PR2_PR32_Pos (0U)
  6921. #define EXTI_PR2_PR32_Msk (0x1U << EXTI_PR2_PR32_Pos) /*!< 0x00000001 */
  6922. #define EXTI_PR2_PR32 EXTI_PR2_PR32_Msk /*!< Pending bit for line 32 */
  6923. /* References Defines */
  6924. #define EXTI_PR2_PIF32 EXTI_PR2_PR32
  6925. #if defined(EXTI_PR2_PR33)
  6926. #define EXTI_PR2_PIF33 EXTI_PR2_PR33
  6927. #endif
  6928. #if defined(EXTI_PR2_PR34)
  6929. #define EXTI_PR2_PIF34 EXTI_PR2_PR34
  6930. #endif
  6931. #if defined(EXTI_PR2_PR35)
  6932. #define EXTI_PR2_PIF35 EXTI_PR2_PR35
  6933. #endif
  6934. /******************************************************************************/
  6935. /* */
  6936. /* FLASH */
  6937. /* */
  6938. /******************************************************************************/
  6939. /******************* Bit definition for FLASH_ACR register ******************/
  6940. #define FLASH_ACR_LATENCY_Pos (0U)
  6941. #define FLASH_ACR_LATENCY_Msk (0x7U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000007 */
  6942. #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk /*!< LATENCY[2:0] bits (Latency) */
  6943. #define FLASH_ACR_LATENCY_0 (0x1U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000001 */
  6944. #define FLASH_ACR_LATENCY_1 (0x2U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000002 */
  6945. #define FLASH_ACR_LATENCY_2 (0x4U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000004 */
  6946. #define FLASH_ACR_HLFCYA_Pos (3U)
  6947. #define FLASH_ACR_HLFCYA_Msk (0x1U << FLASH_ACR_HLFCYA_Pos) /*!< 0x00000008 */
  6948. #define FLASH_ACR_HLFCYA FLASH_ACR_HLFCYA_Msk /*!< Flash Half Cycle Access Enable */
  6949. #define FLASH_ACR_PRFTBE_Pos (4U)
  6950. #define FLASH_ACR_PRFTBE_Msk (0x1U << FLASH_ACR_PRFTBE_Pos) /*!< 0x00000010 */
  6951. #define FLASH_ACR_PRFTBE FLASH_ACR_PRFTBE_Msk /*!< Prefetch Buffer Enable */
  6952. #define FLASH_ACR_PRFTBS_Pos (5U)
  6953. #define FLASH_ACR_PRFTBS_Msk (0x1U << FLASH_ACR_PRFTBS_Pos) /*!< 0x00000020 */
  6954. #define FLASH_ACR_PRFTBS FLASH_ACR_PRFTBS_Msk /*!< Prefetch Buffer Status */
  6955. /****************** Bit definition for FLASH_KEYR register ******************/
  6956. #define FLASH_KEYR_FKEYR_Pos (0U)
  6957. #define FLASH_KEYR_FKEYR_Msk (0xFFFFFFFFU << FLASH_KEYR_FKEYR_Pos) /*!< 0xFFFFFFFF */
  6958. #define FLASH_KEYR_FKEYR FLASH_KEYR_FKEYR_Msk /*!< FPEC Key */
  6959. #define RDP_KEY_Pos (0U)
  6960. #define RDP_KEY_Msk (0xA5U << RDP_KEY_Pos) /*!< 0x000000A5 */
  6961. #define RDP_KEY RDP_KEY_Msk /*!< RDP Key */
  6962. #define FLASH_KEY1_Pos (0U)
  6963. #define FLASH_KEY1_Msk (0x45670123U << FLASH_KEY1_Pos) /*!< 0x45670123 */
  6964. #define FLASH_KEY1 FLASH_KEY1_Msk /*!< FPEC Key1 */
  6965. #define FLASH_KEY2_Pos (0U)
  6966. #define FLASH_KEY2_Msk (0xCDEF89ABU << FLASH_KEY2_Pos) /*!< 0xCDEF89AB */
  6967. #define FLASH_KEY2 FLASH_KEY2_Msk /*!< FPEC Key2 */
  6968. /***************** Bit definition for FLASH_OPTKEYR register ****************/
  6969. #define FLASH_OPTKEYR_OPTKEYR_Pos (0U)
  6970. #define FLASH_OPTKEYR_OPTKEYR_Msk (0xFFFFFFFFU << FLASH_OPTKEYR_OPTKEYR_Pos) /*!< 0xFFFFFFFF */
  6971. #define FLASH_OPTKEYR_OPTKEYR FLASH_OPTKEYR_OPTKEYR_Msk /*!< Option Byte Key */
  6972. #define FLASH_OPTKEY1 FLASH_KEY1 /*!< Option Byte Key1 */
  6973. #define FLASH_OPTKEY2 FLASH_KEY2 /*!< Option Byte Key2 */
  6974. /****************** Bit definition for FLASH_SR register *******************/
  6975. #define FLASH_SR_BSY_Pos (0U)
  6976. #define FLASH_SR_BSY_Msk (0x1U << FLASH_SR_BSY_Pos) /*!< 0x00000001 */
  6977. #define FLASH_SR_BSY FLASH_SR_BSY_Msk /*!< Busy */
  6978. #define FLASH_SR_PGERR_Pos (2U)
  6979. #define FLASH_SR_PGERR_Msk (0x1U << FLASH_SR_PGERR_Pos) /*!< 0x00000004 */
  6980. #define FLASH_SR_PGERR FLASH_SR_PGERR_Msk /*!< Programming Error */
  6981. #define FLASH_SR_WRPERR_Pos (4U)
  6982. #define FLASH_SR_WRPERR_Msk (0x1U << FLASH_SR_WRPERR_Pos) /*!< 0x00000010 */
  6983. #define FLASH_SR_WRPERR FLASH_SR_WRPERR_Msk /*!< Write Protection Error */
  6984. #define FLASH_SR_EOP_Pos (5U)
  6985. #define FLASH_SR_EOP_Msk (0x1U << FLASH_SR_EOP_Pos) /*!< 0x00000020 */
  6986. #define FLASH_SR_EOP FLASH_SR_EOP_Msk /*!< End of operation */
  6987. /******************* Bit definition for FLASH_CR register *******************/
  6988. #define FLASH_CR_PG_Pos (0U)
  6989. #define FLASH_CR_PG_Msk (0x1U << FLASH_CR_PG_Pos) /*!< 0x00000001 */
  6990. #define FLASH_CR_PG FLASH_CR_PG_Msk /*!< Programming */
  6991. #define FLASH_CR_PER_Pos (1U)
  6992. #define FLASH_CR_PER_Msk (0x1U << FLASH_CR_PER_Pos) /*!< 0x00000002 */
  6993. #define FLASH_CR_PER FLASH_CR_PER_Msk /*!< Page Erase */
  6994. #define FLASH_CR_MER_Pos (2U)
  6995. #define FLASH_CR_MER_Msk (0x1U << FLASH_CR_MER_Pos) /*!< 0x00000004 */
  6996. #define FLASH_CR_MER FLASH_CR_MER_Msk /*!< Mass Erase */
  6997. #define FLASH_CR_OPTPG_Pos (4U)
  6998. #define FLASH_CR_OPTPG_Msk (0x1U << FLASH_CR_OPTPG_Pos) /*!< 0x00000010 */
  6999. #define FLASH_CR_OPTPG FLASH_CR_OPTPG_Msk /*!< Option Byte Programming */
  7000. #define FLASH_CR_OPTER_Pos (5U)
  7001. #define FLASH_CR_OPTER_Msk (0x1U << FLASH_CR_OPTER_Pos) /*!< 0x00000020 */
  7002. #define FLASH_CR_OPTER FLASH_CR_OPTER_Msk /*!< Option Byte Erase */
  7003. #define FLASH_CR_STRT_Pos (6U)
  7004. #define FLASH_CR_STRT_Msk (0x1U << FLASH_CR_STRT_Pos) /*!< 0x00000040 */
  7005. #define FLASH_CR_STRT FLASH_CR_STRT_Msk /*!< Start */
  7006. #define FLASH_CR_LOCK_Pos (7U)
  7007. #define FLASH_CR_LOCK_Msk (0x1U << FLASH_CR_LOCK_Pos) /*!< 0x00000080 */
  7008. #define FLASH_CR_LOCK FLASH_CR_LOCK_Msk /*!< Lock */
  7009. #define FLASH_CR_OPTWRE_Pos (9U)
  7010. #define FLASH_CR_OPTWRE_Msk (0x1U << FLASH_CR_OPTWRE_Pos) /*!< 0x00000200 */
  7011. #define FLASH_CR_OPTWRE FLASH_CR_OPTWRE_Msk /*!< Option Bytes Write Enable */
  7012. #define FLASH_CR_ERRIE_Pos (10U)
  7013. #define FLASH_CR_ERRIE_Msk (0x1U << FLASH_CR_ERRIE_Pos) /*!< 0x00000400 */
  7014. #define FLASH_CR_ERRIE FLASH_CR_ERRIE_Msk /*!< Error Interrupt Enable */
  7015. #define FLASH_CR_EOPIE_Pos (12U)
  7016. #define FLASH_CR_EOPIE_Msk (0x1U << FLASH_CR_EOPIE_Pos) /*!< 0x00001000 */
  7017. #define FLASH_CR_EOPIE FLASH_CR_EOPIE_Msk /*!< End of operation interrupt enable */
  7018. #define FLASH_CR_OBL_LAUNCH_Pos (13U)
  7019. #define FLASH_CR_OBL_LAUNCH_Msk (0x1U << FLASH_CR_OBL_LAUNCH_Pos) /*!< 0x00002000 */
  7020. #define FLASH_CR_OBL_LAUNCH FLASH_CR_OBL_LAUNCH_Msk /*!< OptionBytes Loader Launch */
  7021. /******************* Bit definition for FLASH_AR register *******************/
  7022. #define FLASH_AR_FAR_Pos (0U)
  7023. #define FLASH_AR_FAR_Msk (0xFFFFFFFFU << FLASH_AR_FAR_Pos) /*!< 0xFFFFFFFF */
  7024. #define FLASH_AR_FAR FLASH_AR_FAR_Msk /*!< Flash Address */
  7025. /****************** Bit definition for FLASH_OBR register *******************/
  7026. #define FLASH_OBR_OPTERR_Pos (0U)
  7027. #define FLASH_OBR_OPTERR_Msk (0x1U << FLASH_OBR_OPTERR_Pos) /*!< 0x00000001 */
  7028. #define FLASH_OBR_OPTERR FLASH_OBR_OPTERR_Msk /*!< Option Byte Error */
  7029. #define FLASH_OBR_RDPRT_Pos (1U)
  7030. #define FLASH_OBR_RDPRT_Msk (0x3U << FLASH_OBR_RDPRT_Pos) /*!< 0x00000006 */
  7031. #define FLASH_OBR_RDPRT FLASH_OBR_RDPRT_Msk /*!< Read protection */
  7032. #define FLASH_OBR_RDPRT_1 (0x1U << FLASH_OBR_RDPRT_Pos) /*!< 0x00000002 */
  7033. #define FLASH_OBR_RDPRT_2 (0x3U << FLASH_OBR_RDPRT_Pos) /*!< 0x00000006 */
  7034. #define FLASH_OBR_USER_Pos (8U)
  7035. #define FLASH_OBR_USER_Msk (0x77U << FLASH_OBR_USER_Pos) /*!< 0x00007700 */
  7036. #define FLASH_OBR_USER FLASH_OBR_USER_Msk /*!< User Option Bytes */
  7037. #define FLASH_OBR_IWDG_SW_Pos (8U)
  7038. #define FLASH_OBR_IWDG_SW_Msk (0x1U << FLASH_OBR_IWDG_SW_Pos) /*!< 0x00000100 */
  7039. #define FLASH_OBR_IWDG_SW FLASH_OBR_IWDG_SW_Msk /*!< IWDG SW */
  7040. #define FLASH_OBR_nRST_STOP_Pos (9U)
  7041. #define FLASH_OBR_nRST_STOP_Msk (0x1U << FLASH_OBR_nRST_STOP_Pos) /*!< 0x00000200 */
  7042. #define FLASH_OBR_nRST_STOP FLASH_OBR_nRST_STOP_Msk /*!< nRST_STOP */
  7043. #define FLASH_OBR_nRST_STDBY_Pos (10U)
  7044. #define FLASH_OBR_nRST_STDBY_Msk (0x1U << FLASH_OBR_nRST_STDBY_Pos) /*!< 0x00000400 */
  7045. #define FLASH_OBR_nRST_STDBY FLASH_OBR_nRST_STDBY_Msk /*!< nRST_STDBY */
  7046. #define FLASH_OBR_nBOOT1_Pos (12U)
  7047. #define FLASH_OBR_nBOOT1_Msk (0x1U << FLASH_OBR_nBOOT1_Pos) /*!< 0x00001000 */
  7048. #define FLASH_OBR_nBOOT1 FLASH_OBR_nBOOT1_Msk /*!< nBOOT1 */
  7049. #define FLASH_OBR_VDDA_MONITOR_Pos (13U)
  7050. #define FLASH_OBR_VDDA_MONITOR_Msk (0x1U << FLASH_OBR_VDDA_MONITOR_Pos) /*!< 0x00002000 */
  7051. #define FLASH_OBR_VDDA_MONITOR FLASH_OBR_VDDA_MONITOR_Msk /*!< VDDA_MONITOR */
  7052. #define FLASH_OBR_SRAM_PE_Pos (14U)
  7053. #define FLASH_OBR_SRAM_PE_Msk (0x1U << FLASH_OBR_SRAM_PE_Pos) /*!< 0x00004000 */
  7054. #define FLASH_OBR_SRAM_PE FLASH_OBR_SRAM_PE_Msk /*!< SRAM_PE */
  7055. #define FLASH_OBR_DATA0_Pos (16U)
  7056. #define FLASH_OBR_DATA0_Msk (0xFFU << FLASH_OBR_DATA0_Pos) /*!< 0x00FF0000 */
  7057. #define FLASH_OBR_DATA0 FLASH_OBR_DATA0_Msk /*!< Data0 */
  7058. #define FLASH_OBR_DATA1_Pos (24U)
  7059. #define FLASH_OBR_DATA1_Msk (0xFFU << FLASH_OBR_DATA1_Pos) /*!< 0xFF000000 */
  7060. #define FLASH_OBR_DATA1 FLASH_OBR_DATA1_Msk /*!< Data1 */
  7061. /* Legacy defines */
  7062. #define FLASH_OBR_WDG_SW FLASH_OBR_IWDG_SW
  7063. /****************** Bit definition for FLASH_WRPR register ******************/
  7064. #define FLASH_WRPR_WRP_Pos (0U)
  7065. #define FLASH_WRPR_WRP_Msk (0xFFFFFFFFU << FLASH_WRPR_WRP_Pos) /*!< 0xFFFFFFFF */
  7066. #define FLASH_WRPR_WRP FLASH_WRPR_WRP_Msk /*!< Write Protect */
  7067. /*----------------------------------------------------------------------------*/
  7068. /****************** Bit definition for OB_RDP register **********************/
  7069. #define OB_RDP_RDP_Pos (0U)
  7070. #define OB_RDP_RDP_Msk (0xFFU << OB_RDP_RDP_Pos) /*!< 0x000000FF */
  7071. #define OB_RDP_RDP OB_RDP_RDP_Msk /*!< Read protection option byte */
  7072. #define OB_RDP_nRDP_Pos (8U)
  7073. #define OB_RDP_nRDP_Msk (0xFFU << OB_RDP_nRDP_Pos) /*!< 0x0000FF00 */
  7074. #define OB_RDP_nRDP OB_RDP_nRDP_Msk /*!< Read protection complemented option byte */
  7075. /****************** Bit definition for OB_USER register *********************/
  7076. #define OB_USER_USER_Pos (16U)
  7077. #define OB_USER_USER_Msk (0xFFU << OB_USER_USER_Pos) /*!< 0x00FF0000 */
  7078. #define OB_USER_USER OB_USER_USER_Msk /*!< User option byte */
  7079. #define OB_USER_nUSER_Pos (24U)
  7080. #define OB_USER_nUSER_Msk (0xFFU << OB_USER_nUSER_Pos) /*!< 0xFF000000 */
  7081. #define OB_USER_nUSER OB_USER_nUSER_Msk /*!< User complemented option byte */
  7082. /****************** Bit definition for FLASH_WRP0 register ******************/
  7083. #define OB_WRP0_WRP0_Pos (0U)
  7084. #define OB_WRP0_WRP0_Msk (0xFFU << OB_WRP0_WRP0_Pos) /*!< 0x000000FF */
  7085. #define OB_WRP0_WRP0 OB_WRP0_WRP0_Msk /*!< Flash memory write protection option bytes */
  7086. #define OB_WRP0_nWRP0_Pos (8U)
  7087. #define OB_WRP0_nWRP0_Msk (0xFFU << OB_WRP0_nWRP0_Pos) /*!< 0x0000FF00 */
  7088. #define OB_WRP0_nWRP0 OB_WRP0_nWRP0_Msk /*!< Flash memory write protection complemented option bytes */
  7089. /****************** Bit definition for FLASH_WRP1 register ******************/
  7090. #define OB_WRP1_WRP1_Pos (16U)
  7091. #define OB_WRP1_WRP1_Msk (0xFFU << OB_WRP1_WRP1_Pos) /*!< 0x00FF0000 */
  7092. #define OB_WRP1_WRP1 OB_WRP1_WRP1_Msk /*!< Flash memory write protection option bytes */
  7093. #define OB_WRP1_nWRP1_Pos (24U)
  7094. #define OB_WRP1_nWRP1_Msk (0xFFU << OB_WRP1_nWRP1_Pos) /*!< 0xFF000000 */
  7095. #define OB_WRP1_nWRP1 OB_WRP1_nWRP1_Msk /*!< Flash memory write protection complemented option bytes */
  7096. /******************************************************************************/
  7097. /* */
  7098. /* General Purpose I/O (GPIO) */
  7099. /* */
  7100. /******************************************************************************/
  7101. /******************* Bit definition for GPIO_MODER register *****************/
  7102. #define GPIO_MODER_MODER0_Pos (0U)
  7103. #define GPIO_MODER_MODER0_Msk (0x3U << GPIO_MODER_MODER0_Pos) /*!< 0x00000003 */
  7104. #define GPIO_MODER_MODER0 GPIO_MODER_MODER0_Msk
  7105. #define GPIO_MODER_MODER0_0 (0x1U << GPIO_MODER_MODER0_Pos) /*!< 0x00000001 */
  7106. #define GPIO_MODER_MODER0_1 (0x2U << GPIO_MODER_MODER0_Pos) /*!< 0x00000002 */
  7107. #define GPIO_MODER_MODER1_Pos (2U)
  7108. #define GPIO_MODER_MODER1_Msk (0x3U << GPIO_MODER_MODER1_Pos) /*!< 0x0000000C */
  7109. #define GPIO_MODER_MODER1 GPIO_MODER_MODER1_Msk
  7110. #define GPIO_MODER_MODER1_0 (0x1U << GPIO_MODER_MODER1_Pos) /*!< 0x00000004 */
  7111. #define GPIO_MODER_MODER1_1 (0x2U << GPIO_MODER_MODER1_Pos) /*!< 0x00000008 */
  7112. #define GPIO_MODER_MODER2_Pos (4U)
  7113. #define GPIO_MODER_MODER2_Msk (0x3U << GPIO_MODER_MODER2_Pos) /*!< 0x00000030 */
  7114. #define GPIO_MODER_MODER2 GPIO_MODER_MODER2_Msk
  7115. #define GPIO_MODER_MODER2_0 (0x1U << GPIO_MODER_MODER2_Pos) /*!< 0x00000010 */
  7116. #define GPIO_MODER_MODER2_1 (0x2U << GPIO_MODER_MODER2_Pos) /*!< 0x00000020 */
  7117. #define GPIO_MODER_MODER3_Pos (6U)
  7118. #define GPIO_MODER_MODER3_Msk (0x3U << GPIO_MODER_MODER3_Pos) /*!< 0x000000C0 */
  7119. #define GPIO_MODER_MODER3 GPIO_MODER_MODER3_Msk
  7120. #define GPIO_MODER_MODER3_0 (0x1U << GPIO_MODER_MODER3_Pos) /*!< 0x00000040 */
  7121. #define GPIO_MODER_MODER3_1 (0x2U << GPIO_MODER_MODER3_Pos) /*!< 0x00000080 */
  7122. #define GPIO_MODER_MODER4_Pos (8U)
  7123. #define GPIO_MODER_MODER4_Msk (0x3U << GPIO_MODER_MODER4_Pos) /*!< 0x00000300 */
  7124. #define GPIO_MODER_MODER4 GPIO_MODER_MODER4_Msk
  7125. #define GPIO_MODER_MODER4_0 (0x1U << GPIO_MODER_MODER4_Pos) /*!< 0x00000100 */
  7126. #define GPIO_MODER_MODER4_1 (0x2U << GPIO_MODER_MODER4_Pos) /*!< 0x00000200 */
  7127. #define GPIO_MODER_MODER5_Pos (10U)
  7128. #define GPIO_MODER_MODER5_Msk (0x3U << GPIO_MODER_MODER5_Pos) /*!< 0x00000C00 */
  7129. #define GPIO_MODER_MODER5 GPIO_MODER_MODER5_Msk
  7130. #define GPIO_MODER_MODER5_0 (0x1U << GPIO_MODER_MODER5_Pos) /*!< 0x00000400 */
  7131. #define GPIO_MODER_MODER5_1 (0x2U << GPIO_MODER_MODER5_Pos) /*!< 0x00000800 */
  7132. #define GPIO_MODER_MODER6_Pos (12U)
  7133. #define GPIO_MODER_MODER6_Msk (0x3U << GPIO_MODER_MODER6_Pos) /*!< 0x00003000 */
  7134. #define GPIO_MODER_MODER6 GPIO_MODER_MODER6_Msk
  7135. #define GPIO_MODER_MODER6_0 (0x1U << GPIO_MODER_MODER6_Pos) /*!< 0x00001000 */
  7136. #define GPIO_MODER_MODER6_1 (0x2U << GPIO_MODER_MODER6_Pos) /*!< 0x00002000 */
  7137. #define GPIO_MODER_MODER7_Pos (14U)
  7138. #define GPIO_MODER_MODER7_Msk (0x3U << GPIO_MODER_MODER7_Pos) /*!< 0x0000C000 */
  7139. #define GPIO_MODER_MODER7 GPIO_MODER_MODER7_Msk
  7140. #define GPIO_MODER_MODER7_0 (0x1U << GPIO_MODER_MODER7_Pos) /*!< 0x00004000 */
  7141. #define GPIO_MODER_MODER7_1 (0x2U << GPIO_MODER_MODER7_Pos) /*!< 0x00008000 */
  7142. #define GPIO_MODER_MODER8_Pos (16U)
  7143. #define GPIO_MODER_MODER8_Msk (0x3U << GPIO_MODER_MODER8_Pos) /*!< 0x00030000 */
  7144. #define GPIO_MODER_MODER8 GPIO_MODER_MODER8_Msk
  7145. #define GPIO_MODER_MODER8_0 (0x1U << GPIO_MODER_MODER8_Pos) /*!< 0x00010000 */
  7146. #define GPIO_MODER_MODER8_1 (0x2U << GPIO_MODER_MODER8_Pos) /*!< 0x00020000 */
  7147. #define GPIO_MODER_MODER9_Pos (18U)
  7148. #define GPIO_MODER_MODER9_Msk (0x3U << GPIO_MODER_MODER9_Pos) /*!< 0x000C0000 */
  7149. #define GPIO_MODER_MODER9 GPIO_MODER_MODER9_Msk
  7150. #define GPIO_MODER_MODER9_0 (0x1U << GPIO_MODER_MODER9_Pos) /*!< 0x00040000 */
  7151. #define GPIO_MODER_MODER9_1 (0x2U << GPIO_MODER_MODER9_Pos) /*!< 0x00080000 */
  7152. #define GPIO_MODER_MODER10_Pos (20U)
  7153. #define GPIO_MODER_MODER10_Msk (0x3U << GPIO_MODER_MODER10_Pos) /*!< 0x00300000 */
  7154. #define GPIO_MODER_MODER10 GPIO_MODER_MODER10_Msk
  7155. #define GPIO_MODER_MODER10_0 (0x1U << GPIO_MODER_MODER10_Pos) /*!< 0x00100000 */
  7156. #define GPIO_MODER_MODER10_1 (0x2U << GPIO_MODER_MODER10_Pos) /*!< 0x00200000 */
  7157. #define GPIO_MODER_MODER11_Pos (22U)
  7158. #define GPIO_MODER_MODER11_Msk (0x3U << GPIO_MODER_MODER11_Pos) /*!< 0x00C00000 */
  7159. #define GPIO_MODER_MODER11 GPIO_MODER_MODER11_Msk
  7160. #define GPIO_MODER_MODER11_0 (0x1U << GPIO_MODER_MODER11_Pos) /*!< 0x00400000 */
  7161. #define GPIO_MODER_MODER11_1 (0x2U << GPIO_MODER_MODER11_Pos) /*!< 0x00800000 */
  7162. #define GPIO_MODER_MODER12_Pos (24U)
  7163. #define GPIO_MODER_MODER12_Msk (0x3U << GPIO_MODER_MODER12_Pos) /*!< 0x03000000 */
  7164. #define GPIO_MODER_MODER12 GPIO_MODER_MODER12_Msk
  7165. #define GPIO_MODER_MODER12_0 (0x1U << GPIO_MODER_MODER12_Pos) /*!< 0x01000000 */
  7166. #define GPIO_MODER_MODER12_1 (0x2U << GPIO_MODER_MODER12_Pos) /*!< 0x02000000 */
  7167. #define GPIO_MODER_MODER13_Pos (26U)
  7168. #define GPIO_MODER_MODER13_Msk (0x3U << GPIO_MODER_MODER13_Pos) /*!< 0x0C000000 */
  7169. #define GPIO_MODER_MODER13 GPIO_MODER_MODER13_Msk
  7170. #define GPIO_MODER_MODER13_0 (0x1U << GPIO_MODER_MODER13_Pos) /*!< 0x04000000 */
  7171. #define GPIO_MODER_MODER13_1 (0x2U << GPIO_MODER_MODER13_Pos) /*!< 0x08000000 */
  7172. #define GPIO_MODER_MODER14_Pos (28U)
  7173. #define GPIO_MODER_MODER14_Msk (0x3U << GPIO_MODER_MODER14_Pos) /*!< 0x30000000 */
  7174. #define GPIO_MODER_MODER14 GPIO_MODER_MODER14_Msk
  7175. #define GPIO_MODER_MODER14_0 (0x1U << GPIO_MODER_MODER14_Pos) /*!< 0x10000000 */
  7176. #define GPIO_MODER_MODER14_1 (0x2U << GPIO_MODER_MODER14_Pos) /*!< 0x20000000 */
  7177. #define GPIO_MODER_MODER15_Pos (30U)
  7178. #define GPIO_MODER_MODER15_Msk (0x3U << GPIO_MODER_MODER15_Pos) /*!< 0xC0000000 */
  7179. #define GPIO_MODER_MODER15 GPIO_MODER_MODER15_Msk
  7180. #define GPIO_MODER_MODER15_0 (0x1U << GPIO_MODER_MODER15_Pos) /*!< 0x40000000 */
  7181. #define GPIO_MODER_MODER15_1 (0x2U << GPIO_MODER_MODER15_Pos) /*!< 0x80000000 */
  7182. /****************** Bit definition for GPIO_OTYPER register *****************/
  7183. #define GPIO_OTYPER_OT_0 (0x00000001U)
  7184. #define GPIO_OTYPER_OT_1 (0x00000002U)
  7185. #define GPIO_OTYPER_OT_2 (0x00000004U)
  7186. #define GPIO_OTYPER_OT_3 (0x00000008U)
  7187. #define GPIO_OTYPER_OT_4 (0x00000010U)
  7188. #define GPIO_OTYPER_OT_5 (0x00000020U)
  7189. #define GPIO_OTYPER_OT_6 (0x00000040U)
  7190. #define GPIO_OTYPER_OT_7 (0x00000080U)
  7191. #define GPIO_OTYPER_OT_8 (0x00000100U)
  7192. #define GPIO_OTYPER_OT_9 (0x00000200U)
  7193. #define GPIO_OTYPER_OT_10 (0x00000400U)
  7194. #define GPIO_OTYPER_OT_11 (0x00000800U)
  7195. #define GPIO_OTYPER_OT_12 (0x00001000U)
  7196. #define GPIO_OTYPER_OT_13 (0x00002000U)
  7197. #define GPIO_OTYPER_OT_14 (0x00004000U)
  7198. #define GPIO_OTYPER_OT_15 (0x00008000U)
  7199. /**************** Bit definition for GPIO_OSPEEDR register ******************/
  7200. #define GPIO_OSPEEDER_OSPEEDR0_Pos (0U)
  7201. #define GPIO_OSPEEDER_OSPEEDR0_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000003 */
  7202. #define GPIO_OSPEEDER_OSPEEDR0 GPIO_OSPEEDER_OSPEEDR0_Msk
  7203. #define GPIO_OSPEEDER_OSPEEDR0_0 (0x1U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000001 */
  7204. #define GPIO_OSPEEDER_OSPEEDR0_1 (0x2U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000002 */
  7205. #define GPIO_OSPEEDER_OSPEEDR1_Pos (2U)
  7206. #define GPIO_OSPEEDER_OSPEEDR1_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x0000000C */
  7207. #define GPIO_OSPEEDER_OSPEEDR1 GPIO_OSPEEDER_OSPEEDR1_Msk
  7208. #define GPIO_OSPEEDER_OSPEEDR1_0 (0x1U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000004 */
  7209. #define GPIO_OSPEEDER_OSPEEDR1_1 (0x2U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000008 */
  7210. #define GPIO_OSPEEDER_OSPEEDR2_Pos (4U)
  7211. #define GPIO_OSPEEDER_OSPEEDR2_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000030 */
  7212. #define GPIO_OSPEEDER_OSPEEDR2 GPIO_OSPEEDER_OSPEEDR2_Msk
  7213. #define GPIO_OSPEEDER_OSPEEDR2_0 (0x1U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000010 */
  7214. #define GPIO_OSPEEDER_OSPEEDR2_1 (0x2U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000020 */
  7215. #define GPIO_OSPEEDER_OSPEEDR3_Pos (6U)
  7216. #define GPIO_OSPEEDER_OSPEEDR3_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x000000C0 */
  7217. #define GPIO_OSPEEDER_OSPEEDR3 GPIO_OSPEEDER_OSPEEDR3_Msk
  7218. #define GPIO_OSPEEDER_OSPEEDR3_0 (0x1U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000040 */
  7219. #define GPIO_OSPEEDER_OSPEEDR3_1 (0x2U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000080 */
  7220. #define GPIO_OSPEEDER_OSPEEDR4_Pos (8U)
  7221. #define GPIO_OSPEEDER_OSPEEDR4_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000300 */
  7222. #define GPIO_OSPEEDER_OSPEEDR4 GPIO_OSPEEDER_OSPEEDR4_Msk
  7223. #define GPIO_OSPEEDER_OSPEEDR4_0 (0x1U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000100 */
  7224. #define GPIO_OSPEEDER_OSPEEDR4_1 (0x2U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000200 */
  7225. #define GPIO_OSPEEDER_OSPEEDR5_Pos (10U)
  7226. #define GPIO_OSPEEDER_OSPEEDR5_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000C00 */
  7227. #define GPIO_OSPEEDER_OSPEEDR5 GPIO_OSPEEDER_OSPEEDR5_Msk
  7228. #define GPIO_OSPEEDER_OSPEEDR5_0 (0x1U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000400 */
  7229. #define GPIO_OSPEEDER_OSPEEDR5_1 (0x2U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000800 */
  7230. #define GPIO_OSPEEDER_OSPEEDR6_Pos (12U)
  7231. #define GPIO_OSPEEDER_OSPEEDR6_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00003000 */
  7232. #define GPIO_OSPEEDER_OSPEEDR6 GPIO_OSPEEDER_OSPEEDR6_Msk
  7233. #define GPIO_OSPEEDER_OSPEEDR6_0 (0x1U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00001000 */
  7234. #define GPIO_OSPEEDER_OSPEEDR6_1 (0x2U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00002000 */
  7235. #define GPIO_OSPEEDER_OSPEEDR7_Pos (14U)
  7236. #define GPIO_OSPEEDER_OSPEEDR7_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x0000C000 */
  7237. #define GPIO_OSPEEDER_OSPEEDR7 GPIO_OSPEEDER_OSPEEDR7_Msk
  7238. #define GPIO_OSPEEDER_OSPEEDR7_0 (0x1U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00004000 */
  7239. #define GPIO_OSPEEDER_OSPEEDR7_1 (0x2U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00008000 */
  7240. #define GPIO_OSPEEDER_OSPEEDR8_Pos (16U)
  7241. #define GPIO_OSPEEDER_OSPEEDR8_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00030000 */
  7242. #define GPIO_OSPEEDER_OSPEEDR8 GPIO_OSPEEDER_OSPEEDR8_Msk
  7243. #define GPIO_OSPEEDER_OSPEEDR8_0 (0x1U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00010000 */
  7244. #define GPIO_OSPEEDER_OSPEEDR8_1 (0x2U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00020000 */
  7245. #define GPIO_OSPEEDER_OSPEEDR9_Pos (18U)
  7246. #define GPIO_OSPEEDER_OSPEEDR9_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x000C0000 */
  7247. #define GPIO_OSPEEDER_OSPEEDR9 GPIO_OSPEEDER_OSPEEDR9_Msk
  7248. #define GPIO_OSPEEDER_OSPEEDR9_0 (0x1U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00040000 */
  7249. #define GPIO_OSPEEDER_OSPEEDR9_1 (0x2U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00080000 */
  7250. #define GPIO_OSPEEDER_OSPEEDR10_Pos (20U)
  7251. #define GPIO_OSPEEDER_OSPEEDR10_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00300000 */
  7252. #define GPIO_OSPEEDER_OSPEEDR10 GPIO_OSPEEDER_OSPEEDR10_Msk
  7253. #define GPIO_OSPEEDER_OSPEEDR10_0 (0x1U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00100000 */
  7254. #define GPIO_OSPEEDER_OSPEEDR10_1 (0x2U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00200000 */
  7255. #define GPIO_OSPEEDER_OSPEEDR11_Pos (22U)
  7256. #define GPIO_OSPEEDER_OSPEEDR11_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00C00000 */
  7257. #define GPIO_OSPEEDER_OSPEEDR11 GPIO_OSPEEDER_OSPEEDR11_Msk
  7258. #define GPIO_OSPEEDER_OSPEEDR11_0 (0x1U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00400000 */
  7259. #define GPIO_OSPEEDER_OSPEEDR11_1 (0x2U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00800000 */
  7260. #define GPIO_OSPEEDER_OSPEEDR12_Pos (24U)
  7261. #define GPIO_OSPEEDER_OSPEEDR12_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x03000000 */
  7262. #define GPIO_OSPEEDER_OSPEEDR12 GPIO_OSPEEDER_OSPEEDR12_Msk
  7263. #define GPIO_OSPEEDER_OSPEEDR12_0 (0x1U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x01000000 */
  7264. #define GPIO_OSPEEDER_OSPEEDR12_1 (0x2U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x02000000 */
  7265. #define GPIO_OSPEEDER_OSPEEDR13_Pos (26U)
  7266. #define GPIO_OSPEEDER_OSPEEDR13_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x0C000000 */
  7267. #define GPIO_OSPEEDER_OSPEEDR13 GPIO_OSPEEDER_OSPEEDR13_Msk
  7268. #define GPIO_OSPEEDER_OSPEEDR13_0 (0x1U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x04000000 */
  7269. #define GPIO_OSPEEDER_OSPEEDR13_1 (0x2U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x08000000 */
  7270. #define GPIO_OSPEEDER_OSPEEDR14_Pos (28U)
  7271. #define GPIO_OSPEEDER_OSPEEDR14_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x30000000 */
  7272. #define GPIO_OSPEEDER_OSPEEDR14 GPIO_OSPEEDER_OSPEEDR14_Msk
  7273. #define GPIO_OSPEEDER_OSPEEDR14_0 (0x1U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x10000000 */
  7274. #define GPIO_OSPEEDER_OSPEEDR14_1 (0x2U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x20000000 */
  7275. #define GPIO_OSPEEDER_OSPEEDR15_Pos (30U)
  7276. #define GPIO_OSPEEDER_OSPEEDR15_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0xC0000000 */
  7277. #define GPIO_OSPEEDER_OSPEEDR15 GPIO_OSPEEDER_OSPEEDR15_Msk
  7278. #define GPIO_OSPEEDER_OSPEEDR15_0 (0x1U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x40000000 */
  7279. #define GPIO_OSPEEDER_OSPEEDR15_1 (0x2U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x80000000 */
  7280. /******************* Bit definition for GPIO_PUPDR register ******************/
  7281. #define GPIO_PUPDR_PUPDR0_Pos (0U)
  7282. #define GPIO_PUPDR_PUPDR0_Msk (0x3U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000003 */
  7283. #define GPIO_PUPDR_PUPDR0 GPIO_PUPDR_PUPDR0_Msk
  7284. #define GPIO_PUPDR_PUPDR0_0 (0x1U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000001 */
  7285. #define GPIO_PUPDR_PUPDR0_1 (0x2U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000002 */
  7286. #define GPIO_PUPDR_PUPDR1_Pos (2U)
  7287. #define GPIO_PUPDR_PUPDR1_Msk (0x3U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x0000000C */
  7288. #define GPIO_PUPDR_PUPDR1 GPIO_PUPDR_PUPDR1_Msk
  7289. #define GPIO_PUPDR_PUPDR1_0 (0x1U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000004 */
  7290. #define GPIO_PUPDR_PUPDR1_1 (0x2U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000008 */
  7291. #define GPIO_PUPDR_PUPDR2_Pos (4U)
  7292. #define GPIO_PUPDR_PUPDR2_Msk (0x3U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000030 */
  7293. #define GPIO_PUPDR_PUPDR2 GPIO_PUPDR_PUPDR2_Msk
  7294. #define GPIO_PUPDR_PUPDR2_0 (0x1U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000010 */
  7295. #define GPIO_PUPDR_PUPDR2_1 (0x2U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000020 */
  7296. #define GPIO_PUPDR_PUPDR3_Pos (6U)
  7297. #define GPIO_PUPDR_PUPDR3_Msk (0x3U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x000000C0 */
  7298. #define GPIO_PUPDR_PUPDR3 GPIO_PUPDR_PUPDR3_Msk
  7299. #define GPIO_PUPDR_PUPDR3_0 (0x1U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000040 */
  7300. #define GPIO_PUPDR_PUPDR3_1 (0x2U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000080 */
  7301. #define GPIO_PUPDR_PUPDR4_Pos (8U)
  7302. #define GPIO_PUPDR_PUPDR4_Msk (0x3U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000300 */
  7303. #define GPIO_PUPDR_PUPDR4 GPIO_PUPDR_PUPDR4_Msk
  7304. #define GPIO_PUPDR_PUPDR4_0 (0x1U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000100 */
  7305. #define GPIO_PUPDR_PUPDR4_1 (0x2U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000200 */
  7306. #define GPIO_PUPDR_PUPDR5_Pos (10U)
  7307. #define GPIO_PUPDR_PUPDR5_Msk (0x3U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000C00 */
  7308. #define GPIO_PUPDR_PUPDR5 GPIO_PUPDR_PUPDR5_Msk
  7309. #define GPIO_PUPDR_PUPDR5_0 (0x1U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000400 */
  7310. #define GPIO_PUPDR_PUPDR5_1 (0x2U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000800 */
  7311. #define GPIO_PUPDR_PUPDR6_Pos (12U)
  7312. #define GPIO_PUPDR_PUPDR6_Msk (0x3U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00003000 */
  7313. #define GPIO_PUPDR_PUPDR6 GPIO_PUPDR_PUPDR6_Msk
  7314. #define GPIO_PUPDR_PUPDR6_0 (0x1U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00001000 */
  7315. #define GPIO_PUPDR_PUPDR6_1 (0x2U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00002000 */
  7316. #define GPIO_PUPDR_PUPDR7_Pos (14U)
  7317. #define GPIO_PUPDR_PUPDR7_Msk (0x3U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x0000C000 */
  7318. #define GPIO_PUPDR_PUPDR7 GPIO_PUPDR_PUPDR7_Msk
  7319. #define GPIO_PUPDR_PUPDR7_0 (0x1U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00004000 */
  7320. #define GPIO_PUPDR_PUPDR7_1 (0x2U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00008000 */
  7321. #define GPIO_PUPDR_PUPDR8_Pos (16U)
  7322. #define GPIO_PUPDR_PUPDR8_Msk (0x3U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00030000 */
  7323. #define GPIO_PUPDR_PUPDR8 GPIO_PUPDR_PUPDR8_Msk
  7324. #define GPIO_PUPDR_PUPDR8_0 (0x1U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00010000 */
  7325. #define GPIO_PUPDR_PUPDR8_1 (0x2U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00020000 */
  7326. #define GPIO_PUPDR_PUPDR9_Pos (18U)
  7327. #define GPIO_PUPDR_PUPDR9_Msk (0x3U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x000C0000 */
  7328. #define GPIO_PUPDR_PUPDR9 GPIO_PUPDR_PUPDR9_Msk
  7329. #define GPIO_PUPDR_PUPDR9_0 (0x1U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00040000 */
  7330. #define GPIO_PUPDR_PUPDR9_1 (0x2U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00080000 */
  7331. #define GPIO_PUPDR_PUPDR10_Pos (20U)
  7332. #define GPIO_PUPDR_PUPDR10_Msk (0x3U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00300000 */
  7333. #define GPIO_PUPDR_PUPDR10 GPIO_PUPDR_PUPDR10_Msk
  7334. #define GPIO_PUPDR_PUPDR10_0 (0x1U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00100000 */
  7335. #define GPIO_PUPDR_PUPDR10_1 (0x2U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00200000 */
  7336. #define GPIO_PUPDR_PUPDR11_Pos (22U)
  7337. #define GPIO_PUPDR_PUPDR11_Msk (0x3U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00C00000 */
  7338. #define GPIO_PUPDR_PUPDR11 GPIO_PUPDR_PUPDR11_Msk
  7339. #define GPIO_PUPDR_PUPDR11_0 (0x1U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00400000 */
  7340. #define GPIO_PUPDR_PUPDR11_1 (0x2U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00800000 */
  7341. #define GPIO_PUPDR_PUPDR12_Pos (24U)
  7342. #define GPIO_PUPDR_PUPDR12_Msk (0x3U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x03000000 */
  7343. #define GPIO_PUPDR_PUPDR12 GPIO_PUPDR_PUPDR12_Msk
  7344. #define GPIO_PUPDR_PUPDR12_0 (0x1U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x01000000 */
  7345. #define GPIO_PUPDR_PUPDR12_1 (0x2U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x02000000 */
  7346. #define GPIO_PUPDR_PUPDR13_Pos (26U)
  7347. #define GPIO_PUPDR_PUPDR13_Msk (0x3U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x0C000000 */
  7348. #define GPIO_PUPDR_PUPDR13 GPIO_PUPDR_PUPDR13_Msk
  7349. #define GPIO_PUPDR_PUPDR13_0 (0x1U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x04000000 */
  7350. #define GPIO_PUPDR_PUPDR13_1 (0x2U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x08000000 */
  7351. #define GPIO_PUPDR_PUPDR14_Pos (28U)
  7352. #define GPIO_PUPDR_PUPDR14_Msk (0x3U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x30000000 */
  7353. #define GPIO_PUPDR_PUPDR14 GPIO_PUPDR_PUPDR14_Msk
  7354. #define GPIO_PUPDR_PUPDR14_0 (0x1U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x10000000 */
  7355. #define GPIO_PUPDR_PUPDR14_1 (0x2U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x20000000 */
  7356. #define GPIO_PUPDR_PUPDR15_Pos (30U)
  7357. #define GPIO_PUPDR_PUPDR15_Msk (0x3U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0xC0000000 */
  7358. #define GPIO_PUPDR_PUPDR15 GPIO_PUPDR_PUPDR15_Msk
  7359. #define GPIO_PUPDR_PUPDR15_0 (0x1U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x40000000 */
  7360. #define GPIO_PUPDR_PUPDR15_1 (0x2U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x80000000 */
  7361. /******************* Bit definition for GPIO_IDR register *******************/
  7362. #define GPIO_IDR_0 (0x00000001U)
  7363. #define GPIO_IDR_1 (0x00000002U)
  7364. #define GPIO_IDR_2 (0x00000004U)
  7365. #define GPIO_IDR_3 (0x00000008U)
  7366. #define GPIO_IDR_4 (0x00000010U)
  7367. #define GPIO_IDR_5 (0x00000020U)
  7368. #define GPIO_IDR_6 (0x00000040U)
  7369. #define GPIO_IDR_7 (0x00000080U)
  7370. #define GPIO_IDR_8 (0x00000100U)
  7371. #define GPIO_IDR_9 (0x00000200U)
  7372. #define GPIO_IDR_10 (0x00000400U)
  7373. #define GPIO_IDR_11 (0x00000800U)
  7374. #define GPIO_IDR_12 (0x00001000U)
  7375. #define GPIO_IDR_13 (0x00002000U)
  7376. #define GPIO_IDR_14 (0x00004000U)
  7377. #define GPIO_IDR_15 (0x00008000U)
  7378. /****************** Bit definition for GPIO_ODR register ********************/
  7379. #define GPIO_ODR_0 (0x00000001U)
  7380. #define GPIO_ODR_1 (0x00000002U)
  7381. #define GPIO_ODR_2 (0x00000004U)
  7382. #define GPIO_ODR_3 (0x00000008U)
  7383. #define GPIO_ODR_4 (0x00000010U)
  7384. #define GPIO_ODR_5 (0x00000020U)
  7385. #define GPIO_ODR_6 (0x00000040U)
  7386. #define GPIO_ODR_7 (0x00000080U)
  7387. #define GPIO_ODR_8 (0x00000100U)
  7388. #define GPIO_ODR_9 (0x00000200U)
  7389. #define GPIO_ODR_10 (0x00000400U)
  7390. #define GPIO_ODR_11 (0x00000800U)
  7391. #define GPIO_ODR_12 (0x00001000U)
  7392. #define GPIO_ODR_13 (0x00002000U)
  7393. #define GPIO_ODR_14 (0x00004000U)
  7394. #define GPIO_ODR_15 (0x00008000U)
  7395. /****************** Bit definition for GPIO_BSRR register ********************/
  7396. #define GPIO_BSRR_BS_0 (0x00000001U)
  7397. #define GPIO_BSRR_BS_1 (0x00000002U)
  7398. #define GPIO_BSRR_BS_2 (0x00000004U)
  7399. #define GPIO_BSRR_BS_3 (0x00000008U)
  7400. #define GPIO_BSRR_BS_4 (0x00000010U)
  7401. #define GPIO_BSRR_BS_5 (0x00000020U)
  7402. #define GPIO_BSRR_BS_6 (0x00000040U)
  7403. #define GPIO_BSRR_BS_7 (0x00000080U)
  7404. #define GPIO_BSRR_BS_8 (0x00000100U)
  7405. #define GPIO_BSRR_BS_9 (0x00000200U)
  7406. #define GPIO_BSRR_BS_10 (0x00000400U)
  7407. #define GPIO_BSRR_BS_11 (0x00000800U)
  7408. #define GPIO_BSRR_BS_12 (0x00001000U)
  7409. #define GPIO_BSRR_BS_13 (0x00002000U)
  7410. #define GPIO_BSRR_BS_14 (0x00004000U)
  7411. #define GPIO_BSRR_BS_15 (0x00008000U)
  7412. #define GPIO_BSRR_BR_0 (0x00010000U)
  7413. #define GPIO_BSRR_BR_1 (0x00020000U)
  7414. #define GPIO_BSRR_BR_2 (0x00040000U)
  7415. #define GPIO_BSRR_BR_3 (0x00080000U)
  7416. #define GPIO_BSRR_BR_4 (0x00100000U)
  7417. #define GPIO_BSRR_BR_5 (0x00200000U)
  7418. #define GPIO_BSRR_BR_6 (0x00400000U)
  7419. #define GPIO_BSRR_BR_7 (0x00800000U)
  7420. #define GPIO_BSRR_BR_8 (0x01000000U)
  7421. #define GPIO_BSRR_BR_9 (0x02000000U)
  7422. #define GPIO_BSRR_BR_10 (0x04000000U)
  7423. #define GPIO_BSRR_BR_11 (0x08000000U)
  7424. #define GPIO_BSRR_BR_12 (0x10000000U)
  7425. #define GPIO_BSRR_BR_13 (0x20000000U)
  7426. #define GPIO_BSRR_BR_14 (0x40000000U)
  7427. #define GPIO_BSRR_BR_15 (0x80000000U)
  7428. /****************** Bit definition for GPIO_LCKR register ********************/
  7429. #define GPIO_LCKR_LCK0_Pos (0U)
  7430. #define GPIO_LCKR_LCK0_Msk (0x1U << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  7431. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  7432. #define GPIO_LCKR_LCK1_Pos (1U)
  7433. #define GPIO_LCKR_LCK1_Msk (0x1U << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  7434. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  7435. #define GPIO_LCKR_LCK2_Pos (2U)
  7436. #define GPIO_LCKR_LCK2_Msk (0x1U << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  7437. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  7438. #define GPIO_LCKR_LCK3_Pos (3U)
  7439. #define GPIO_LCKR_LCK3_Msk (0x1U << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  7440. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  7441. #define GPIO_LCKR_LCK4_Pos (4U)
  7442. #define GPIO_LCKR_LCK4_Msk (0x1U << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  7443. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  7444. #define GPIO_LCKR_LCK5_Pos (5U)
  7445. #define GPIO_LCKR_LCK5_Msk (0x1U << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  7446. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  7447. #define GPIO_LCKR_LCK6_Pos (6U)
  7448. #define GPIO_LCKR_LCK6_Msk (0x1U << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  7449. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  7450. #define GPIO_LCKR_LCK7_Pos (7U)
  7451. #define GPIO_LCKR_LCK7_Msk (0x1U << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  7452. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  7453. #define GPIO_LCKR_LCK8_Pos (8U)
  7454. #define GPIO_LCKR_LCK8_Msk (0x1U << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  7455. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  7456. #define GPIO_LCKR_LCK9_Pos (9U)
  7457. #define GPIO_LCKR_LCK9_Msk (0x1U << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  7458. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  7459. #define GPIO_LCKR_LCK10_Pos (10U)
  7460. #define GPIO_LCKR_LCK10_Msk (0x1U << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  7461. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  7462. #define GPIO_LCKR_LCK11_Pos (11U)
  7463. #define GPIO_LCKR_LCK11_Msk (0x1U << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  7464. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  7465. #define GPIO_LCKR_LCK12_Pos (12U)
  7466. #define GPIO_LCKR_LCK12_Msk (0x1U << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  7467. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  7468. #define GPIO_LCKR_LCK13_Pos (13U)
  7469. #define GPIO_LCKR_LCK13_Msk (0x1U << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  7470. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  7471. #define GPIO_LCKR_LCK14_Pos (14U)
  7472. #define GPIO_LCKR_LCK14_Msk (0x1U << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  7473. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  7474. #define GPIO_LCKR_LCK15_Pos (15U)
  7475. #define GPIO_LCKR_LCK15_Msk (0x1U << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  7476. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  7477. #define GPIO_LCKR_LCKK_Pos (16U)
  7478. #define GPIO_LCKR_LCKK_Msk (0x1U << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  7479. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  7480. /****************** Bit definition for GPIO_AFRL register ********************/
  7481. #define GPIO_AFRL_AFRL0_Pos (0U)
  7482. #define GPIO_AFRL_AFRL0_Msk (0xFU << GPIO_AFRL_AFRL0_Pos) /*!< 0x0000000F */
  7483. #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFRL0_Msk
  7484. #define GPIO_AFRL_AFRL1_Pos (4U)
  7485. #define GPIO_AFRL_AFRL1_Msk (0xFU << GPIO_AFRL_AFRL1_Pos) /*!< 0x000000F0 */
  7486. #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFRL1_Msk
  7487. #define GPIO_AFRL_AFRL2_Pos (8U)
  7488. #define GPIO_AFRL_AFRL2_Msk (0xFU << GPIO_AFRL_AFRL2_Pos) /*!< 0x00000F00 */
  7489. #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFRL2_Msk
  7490. #define GPIO_AFRL_AFRL3_Pos (12U)
  7491. #define GPIO_AFRL_AFRL3_Msk (0xFU << GPIO_AFRL_AFRL3_Pos) /*!< 0x0000F000 */
  7492. #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFRL3_Msk
  7493. #define GPIO_AFRL_AFRL4_Pos (16U)
  7494. #define GPIO_AFRL_AFRL4_Msk (0xFU << GPIO_AFRL_AFRL4_Pos) /*!< 0x000F0000 */
  7495. #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFRL4_Msk
  7496. #define GPIO_AFRL_AFRL5_Pos (20U)
  7497. #define GPIO_AFRL_AFRL5_Msk (0xFU << GPIO_AFRL_AFRL5_Pos) /*!< 0x00F00000 */
  7498. #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFRL5_Msk
  7499. #define GPIO_AFRL_AFRL6_Pos (24U)
  7500. #define GPIO_AFRL_AFRL6_Msk (0xFU << GPIO_AFRL_AFRL6_Pos) /*!< 0x0F000000 */
  7501. #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFRL6_Msk
  7502. #define GPIO_AFRL_AFRL7_Pos (28U)
  7503. #define GPIO_AFRL_AFRL7_Msk (0xFU << GPIO_AFRL_AFRL7_Pos) /*!< 0xF0000000 */
  7504. #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFRL7_Msk
  7505. /****************** Bit definition for GPIO_AFRH register ********************/
  7506. #define GPIO_AFRH_AFRH0_Pos (0U)
  7507. #define GPIO_AFRH_AFRH0_Msk (0xFU << GPIO_AFRH_AFRH0_Pos) /*!< 0x0000000F */
  7508. #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFRH0_Msk
  7509. #define GPIO_AFRH_AFRH1_Pos (4U)
  7510. #define GPIO_AFRH_AFRH1_Msk (0xFU << GPIO_AFRH_AFRH1_Pos) /*!< 0x000000F0 */
  7511. #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFRH1_Msk
  7512. #define GPIO_AFRH_AFRH2_Pos (8U)
  7513. #define GPIO_AFRH_AFRH2_Msk (0xFU << GPIO_AFRH_AFRH2_Pos) /*!< 0x00000F00 */
  7514. #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFRH2_Msk
  7515. #define GPIO_AFRH_AFRH3_Pos (12U)
  7516. #define GPIO_AFRH_AFRH3_Msk (0xFU << GPIO_AFRH_AFRH3_Pos) /*!< 0x0000F000 */
  7517. #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFRH3_Msk
  7518. #define GPIO_AFRH_AFRH4_Pos (16U)
  7519. #define GPIO_AFRH_AFRH4_Msk (0xFU << GPIO_AFRH_AFRH4_Pos) /*!< 0x000F0000 */
  7520. #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFRH4_Msk
  7521. #define GPIO_AFRH_AFRH5_Pos (20U)
  7522. #define GPIO_AFRH_AFRH5_Msk (0xFU << GPIO_AFRH_AFRH5_Pos) /*!< 0x00F00000 */
  7523. #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFRH5_Msk
  7524. #define GPIO_AFRH_AFRH6_Pos (24U)
  7525. #define GPIO_AFRH_AFRH6_Msk (0xFU << GPIO_AFRH_AFRH6_Pos) /*!< 0x0F000000 */
  7526. #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFRH6_Msk
  7527. #define GPIO_AFRH_AFRH7_Pos (28U)
  7528. #define GPIO_AFRH_AFRH7_Msk (0xFU << GPIO_AFRH_AFRH7_Pos) /*!< 0xF0000000 */
  7529. #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFRH7_Msk
  7530. /****************** Bit definition for GPIO_BRR register *********************/
  7531. #define GPIO_BRR_BR_0 (0x00000001U)
  7532. #define GPIO_BRR_BR_1 (0x00000002U)
  7533. #define GPIO_BRR_BR_2 (0x00000004U)
  7534. #define GPIO_BRR_BR_3 (0x00000008U)
  7535. #define GPIO_BRR_BR_4 (0x00000010U)
  7536. #define GPIO_BRR_BR_5 (0x00000020U)
  7537. #define GPIO_BRR_BR_6 (0x00000040U)
  7538. #define GPIO_BRR_BR_7 (0x00000080U)
  7539. #define GPIO_BRR_BR_8 (0x00000100U)
  7540. #define GPIO_BRR_BR_9 (0x00000200U)
  7541. #define GPIO_BRR_BR_10 (0x00000400U)
  7542. #define GPIO_BRR_BR_11 (0x00000800U)
  7543. #define GPIO_BRR_BR_12 (0x00001000U)
  7544. #define GPIO_BRR_BR_13 (0x00002000U)
  7545. #define GPIO_BRR_BR_14 (0x00004000U)
  7546. #define GPIO_BRR_BR_15 (0x00008000U)
  7547. /******************************************************************************/
  7548. /* */
  7549. /* Inter-integrated Circuit Interface (I2C) */
  7550. /* */
  7551. /******************************************************************************/
  7552. /******************* Bit definition for I2C_CR1 register *******************/
  7553. #define I2C_CR1_PE_Pos (0U)
  7554. #define I2C_CR1_PE_Msk (0x1U << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  7555. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  7556. #define I2C_CR1_TXIE_Pos (1U)
  7557. #define I2C_CR1_TXIE_Msk (0x1U << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  7558. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  7559. #define I2C_CR1_RXIE_Pos (2U)
  7560. #define I2C_CR1_RXIE_Msk (0x1U << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  7561. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  7562. #define I2C_CR1_ADDRIE_Pos (3U)
  7563. #define I2C_CR1_ADDRIE_Msk (0x1U << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  7564. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  7565. #define I2C_CR1_NACKIE_Pos (4U)
  7566. #define I2C_CR1_NACKIE_Msk (0x1U << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  7567. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  7568. #define I2C_CR1_STOPIE_Pos (5U)
  7569. #define I2C_CR1_STOPIE_Msk (0x1U << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  7570. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  7571. #define I2C_CR1_TCIE_Pos (6U)
  7572. #define I2C_CR1_TCIE_Msk (0x1U << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  7573. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  7574. #define I2C_CR1_ERRIE_Pos (7U)
  7575. #define I2C_CR1_ERRIE_Msk (0x1U << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  7576. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  7577. #define I2C_CR1_DNF_Pos (8U)
  7578. #define I2C_CR1_DNF_Msk (0xFU << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  7579. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  7580. #define I2C_CR1_ANFOFF_Pos (12U)
  7581. #define I2C_CR1_ANFOFF_Msk (0x1U << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  7582. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  7583. #define I2C_CR1_SWRST_Pos (13U)
  7584. #define I2C_CR1_SWRST_Msk (0x1U << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  7585. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  7586. #define I2C_CR1_TXDMAEN_Pos (14U)
  7587. #define I2C_CR1_TXDMAEN_Msk (0x1U << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  7588. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  7589. #define I2C_CR1_RXDMAEN_Pos (15U)
  7590. #define I2C_CR1_RXDMAEN_Msk (0x1U << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  7591. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  7592. #define I2C_CR1_SBC_Pos (16U)
  7593. #define I2C_CR1_SBC_Msk (0x1U << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  7594. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  7595. #define I2C_CR1_NOSTRETCH_Pos (17U)
  7596. #define I2C_CR1_NOSTRETCH_Msk (0x1U << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  7597. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  7598. #define I2C_CR1_WUPEN_Pos (18U)
  7599. #define I2C_CR1_WUPEN_Msk (0x1U << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  7600. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  7601. #define I2C_CR1_GCEN_Pos (19U)
  7602. #define I2C_CR1_GCEN_Msk (0x1U << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  7603. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  7604. #define I2C_CR1_SMBHEN_Pos (20U)
  7605. #define I2C_CR1_SMBHEN_Msk (0x1U << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  7606. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  7607. #define I2C_CR1_SMBDEN_Pos (21U)
  7608. #define I2C_CR1_SMBDEN_Msk (0x1U << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  7609. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  7610. #define I2C_CR1_ALERTEN_Pos (22U)
  7611. #define I2C_CR1_ALERTEN_Msk (0x1U << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  7612. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  7613. #define I2C_CR1_PECEN_Pos (23U)
  7614. #define I2C_CR1_PECEN_Msk (0x1U << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  7615. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  7616. /* Legacy defines */
  7617. #define I2C_CR1_DFN I2C_CR1_DNF
  7618. /****************** Bit definition for I2C_CR2 register ********************/
  7619. #define I2C_CR2_SADD_Pos (0U)
  7620. #define I2C_CR2_SADD_Msk (0x3FFU << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  7621. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  7622. #define I2C_CR2_RD_WRN_Pos (10U)
  7623. #define I2C_CR2_RD_WRN_Msk (0x1U << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  7624. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  7625. #define I2C_CR2_ADD10_Pos (11U)
  7626. #define I2C_CR2_ADD10_Msk (0x1U << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  7627. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  7628. #define I2C_CR2_HEAD10R_Pos (12U)
  7629. #define I2C_CR2_HEAD10R_Msk (0x1U << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  7630. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  7631. #define I2C_CR2_START_Pos (13U)
  7632. #define I2C_CR2_START_Msk (0x1U << I2C_CR2_START_Pos) /*!< 0x00002000 */
  7633. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  7634. #define I2C_CR2_STOP_Pos (14U)
  7635. #define I2C_CR2_STOP_Msk (0x1U << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  7636. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  7637. #define I2C_CR2_NACK_Pos (15U)
  7638. #define I2C_CR2_NACK_Msk (0x1U << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  7639. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  7640. #define I2C_CR2_NBYTES_Pos (16U)
  7641. #define I2C_CR2_NBYTES_Msk (0xFFU << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  7642. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  7643. #define I2C_CR2_RELOAD_Pos (24U)
  7644. #define I2C_CR2_RELOAD_Msk (0x1U << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  7645. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  7646. #define I2C_CR2_AUTOEND_Pos (25U)
  7647. #define I2C_CR2_AUTOEND_Msk (0x1U << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  7648. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  7649. #define I2C_CR2_PECBYTE_Pos (26U)
  7650. #define I2C_CR2_PECBYTE_Msk (0x1U << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  7651. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  7652. /******************* Bit definition for I2C_OAR1 register ******************/
  7653. #define I2C_OAR1_OA1_Pos (0U)
  7654. #define I2C_OAR1_OA1_Msk (0x3FFU << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  7655. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  7656. #define I2C_OAR1_OA1MODE_Pos (10U)
  7657. #define I2C_OAR1_OA1MODE_Msk (0x1U << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  7658. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  7659. #define I2C_OAR1_OA1EN_Pos (15U)
  7660. #define I2C_OAR1_OA1EN_Msk (0x1U << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  7661. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  7662. /******************* Bit definition for I2C_OAR2 register *******************/
  7663. #define I2C_OAR2_OA2_Pos (1U)
  7664. #define I2C_OAR2_OA2_Msk (0x7FU << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  7665. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  7666. #define I2C_OAR2_OA2MSK_Pos (8U)
  7667. #define I2C_OAR2_OA2MSK_Msk (0x7U << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  7668. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  7669. #define I2C_OAR2_OA2NOMASK (0x00000000U) /*!< No mask */
  7670. #define I2C_OAR2_OA2MASK01_Pos (8U)
  7671. #define I2C_OAR2_OA2MASK01_Msk (0x1U << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */
  7672. #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */
  7673. #define I2C_OAR2_OA2MASK02_Pos (9U)
  7674. #define I2C_OAR2_OA2MASK02_Msk (0x1U << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */
  7675. #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
  7676. #define I2C_OAR2_OA2MASK03_Pos (8U)
  7677. #define I2C_OAR2_OA2MASK03_Msk (0x3U << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */
  7678. #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
  7679. #define I2C_OAR2_OA2MASK04_Pos (10U)
  7680. #define I2C_OAR2_OA2MASK04_Msk (0x1U << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */
  7681. #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
  7682. #define I2C_OAR2_OA2MASK05_Pos (8U)
  7683. #define I2C_OAR2_OA2MASK05_Msk (0x5U << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */
  7684. #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
  7685. #define I2C_OAR2_OA2MASK06_Pos (9U)
  7686. #define I2C_OAR2_OA2MASK06_Msk (0x3U << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */
  7687. #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */
  7688. #define I2C_OAR2_OA2MASK07_Pos (8U)
  7689. #define I2C_OAR2_OA2MASK07_Msk (0x7U << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */
  7690. #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */
  7691. #define I2C_OAR2_OA2EN_Pos (15U)
  7692. #define I2C_OAR2_OA2EN_Msk (0x1U << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  7693. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  7694. /******************* Bit definition for I2C_TIMINGR register *****************/
  7695. #define I2C_TIMINGR_SCLL_Pos (0U)
  7696. #define I2C_TIMINGR_SCLL_Msk (0xFFU << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  7697. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  7698. #define I2C_TIMINGR_SCLH_Pos (8U)
  7699. #define I2C_TIMINGR_SCLH_Msk (0xFFU << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  7700. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  7701. #define I2C_TIMINGR_SDADEL_Pos (16U)
  7702. #define I2C_TIMINGR_SDADEL_Msk (0xFU << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  7703. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  7704. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  7705. #define I2C_TIMINGR_SCLDEL_Msk (0xFU << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  7706. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  7707. #define I2C_TIMINGR_PRESC_Pos (28U)
  7708. #define I2C_TIMINGR_PRESC_Msk (0xFU << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  7709. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  7710. /******************* Bit definition for I2C_TIMEOUTR register *****************/
  7711. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  7712. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  7713. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  7714. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  7715. #define I2C_TIMEOUTR_TIDLE_Msk (0x1U << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  7716. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  7717. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  7718. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1U << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  7719. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  7720. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  7721. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  7722. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  7723. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  7724. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1U << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  7725. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  7726. /****************** Bit definition for I2C_ISR register *********************/
  7727. #define I2C_ISR_TXE_Pos (0U)
  7728. #define I2C_ISR_TXE_Msk (0x1U << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  7729. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  7730. #define I2C_ISR_TXIS_Pos (1U)
  7731. #define I2C_ISR_TXIS_Msk (0x1U << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  7732. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  7733. #define I2C_ISR_RXNE_Pos (2U)
  7734. #define I2C_ISR_RXNE_Msk (0x1U << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  7735. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  7736. #define I2C_ISR_ADDR_Pos (3U)
  7737. #define I2C_ISR_ADDR_Msk (0x1U << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  7738. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  7739. #define I2C_ISR_NACKF_Pos (4U)
  7740. #define I2C_ISR_NACKF_Msk (0x1U << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  7741. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  7742. #define I2C_ISR_STOPF_Pos (5U)
  7743. #define I2C_ISR_STOPF_Msk (0x1U << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  7744. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  7745. #define I2C_ISR_TC_Pos (6U)
  7746. #define I2C_ISR_TC_Msk (0x1U << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  7747. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  7748. #define I2C_ISR_TCR_Pos (7U)
  7749. #define I2C_ISR_TCR_Msk (0x1U << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  7750. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  7751. #define I2C_ISR_BERR_Pos (8U)
  7752. #define I2C_ISR_BERR_Msk (0x1U << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  7753. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  7754. #define I2C_ISR_ARLO_Pos (9U)
  7755. #define I2C_ISR_ARLO_Msk (0x1U << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  7756. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  7757. #define I2C_ISR_OVR_Pos (10U)
  7758. #define I2C_ISR_OVR_Msk (0x1U << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  7759. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  7760. #define I2C_ISR_PECERR_Pos (11U)
  7761. #define I2C_ISR_PECERR_Msk (0x1U << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  7762. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  7763. #define I2C_ISR_TIMEOUT_Pos (12U)
  7764. #define I2C_ISR_TIMEOUT_Msk (0x1U << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  7765. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  7766. #define I2C_ISR_ALERT_Pos (13U)
  7767. #define I2C_ISR_ALERT_Msk (0x1U << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  7768. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  7769. #define I2C_ISR_BUSY_Pos (15U)
  7770. #define I2C_ISR_BUSY_Msk (0x1U << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  7771. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  7772. #define I2C_ISR_DIR_Pos (16U)
  7773. #define I2C_ISR_DIR_Msk (0x1U << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  7774. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  7775. #define I2C_ISR_ADDCODE_Pos (17U)
  7776. #define I2C_ISR_ADDCODE_Msk (0x7FU << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  7777. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  7778. /****************** Bit definition for I2C_ICR register *********************/
  7779. #define I2C_ICR_ADDRCF_Pos (3U)
  7780. #define I2C_ICR_ADDRCF_Msk (0x1U << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  7781. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  7782. #define I2C_ICR_NACKCF_Pos (4U)
  7783. #define I2C_ICR_NACKCF_Msk (0x1U << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  7784. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  7785. #define I2C_ICR_STOPCF_Pos (5U)
  7786. #define I2C_ICR_STOPCF_Msk (0x1U << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  7787. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  7788. #define I2C_ICR_BERRCF_Pos (8U)
  7789. #define I2C_ICR_BERRCF_Msk (0x1U << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  7790. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  7791. #define I2C_ICR_ARLOCF_Pos (9U)
  7792. #define I2C_ICR_ARLOCF_Msk (0x1U << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  7793. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  7794. #define I2C_ICR_OVRCF_Pos (10U)
  7795. #define I2C_ICR_OVRCF_Msk (0x1U << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  7796. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  7797. #define I2C_ICR_PECCF_Pos (11U)
  7798. #define I2C_ICR_PECCF_Msk (0x1U << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  7799. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  7800. #define I2C_ICR_TIMOUTCF_Pos (12U)
  7801. #define I2C_ICR_TIMOUTCF_Msk (0x1U << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  7802. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  7803. #define I2C_ICR_ALERTCF_Pos (13U)
  7804. #define I2C_ICR_ALERTCF_Msk (0x1U << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  7805. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  7806. /****************** Bit definition for I2C_PECR register ********************/
  7807. #define I2C_PECR_PEC_Pos (0U)
  7808. #define I2C_PECR_PEC_Msk (0xFFU << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  7809. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  7810. /****************** Bit definition for I2C_RXDR register *********************/
  7811. #define I2C_RXDR_RXDATA_Pos (0U)
  7812. #define I2C_RXDR_RXDATA_Msk (0xFFU << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  7813. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  7814. /****************** Bit definition for I2C_TXDR register *********************/
  7815. #define I2C_TXDR_TXDATA_Pos (0U)
  7816. #define I2C_TXDR_TXDATA_Msk (0xFFU << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  7817. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  7818. /******************************************************************************/
  7819. /* */
  7820. /* Independent WATCHDOG (IWDG) */
  7821. /* */
  7822. /******************************************************************************/
  7823. /******************* Bit definition for IWDG_KR register ********************/
  7824. #define IWDG_KR_KEY_Pos (0U)
  7825. #define IWDG_KR_KEY_Msk (0xFFFFU << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */
  7826. #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!< Key value (write only, read 0000h) */
  7827. /******************* Bit definition for IWDG_PR register ********************/
  7828. #define IWDG_PR_PR_Pos (0U)
  7829. #define IWDG_PR_PR_Msk (0x7U << IWDG_PR_PR_Pos) /*!< 0x00000007 */
  7830. #define IWDG_PR_PR IWDG_PR_PR_Msk /*!< PR[2:0] (Prescaler divider) */
  7831. #define IWDG_PR_PR_0 (0x1U << IWDG_PR_PR_Pos) /*!< 0x00000001 */
  7832. #define IWDG_PR_PR_1 (0x2U << IWDG_PR_PR_Pos) /*!< 0x00000002 */
  7833. #define IWDG_PR_PR_2 (0x4U << IWDG_PR_PR_Pos) /*!< 0x00000004 */
  7834. /******************* Bit definition for IWDG_RLR register *******************/
  7835. #define IWDG_RLR_RL_Pos (0U)
  7836. #define IWDG_RLR_RL_Msk (0xFFFU << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */
  7837. #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!< Watchdog counter reload value */
  7838. /******************* Bit definition for IWDG_SR register ********************/
  7839. #define IWDG_SR_PVU_Pos (0U)
  7840. #define IWDG_SR_PVU_Msk (0x1U << IWDG_SR_PVU_Pos) /*!< 0x00000001 */
  7841. #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */
  7842. #define IWDG_SR_RVU_Pos (1U)
  7843. #define IWDG_SR_RVU_Msk (0x1U << IWDG_SR_RVU_Pos) /*!< 0x00000002 */
  7844. #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */
  7845. #define IWDG_SR_WVU_Pos (2U)
  7846. #define IWDG_SR_WVU_Msk (0x1U << IWDG_SR_WVU_Pos) /*!< 0x00000004 */
  7847. #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */
  7848. /******************* Bit definition for IWDG_KR register ********************/
  7849. #define IWDG_WINR_WIN_Pos (0U)
  7850. #define IWDG_WINR_WIN_Msk (0xFFFU << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */
  7851. #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */
  7852. /******************************************************************************/
  7853. /* */
  7854. /* Power Control */
  7855. /* */
  7856. /******************************************************************************/
  7857. #define PWR_PVD_SUPPORT /*!< PWR feature available only on specific devices: Power Voltage Detection feature */
  7858. /******************** Bit definition for PWR_CR register ********************/
  7859. #define PWR_CR_LPDS_Pos (0U)
  7860. #define PWR_CR_LPDS_Msk (0x1U << PWR_CR_LPDS_Pos) /*!< 0x00000001 */
  7861. #define PWR_CR_LPDS PWR_CR_LPDS_Msk /*!< Low-power Deepsleep */
  7862. #define PWR_CR_PDDS_Pos (1U)
  7863. #define PWR_CR_PDDS_Msk (0x1U << PWR_CR_PDDS_Pos) /*!< 0x00000002 */
  7864. #define PWR_CR_PDDS PWR_CR_PDDS_Msk /*!< Power Down Deepsleep */
  7865. #define PWR_CR_CWUF_Pos (2U)
  7866. #define PWR_CR_CWUF_Msk (0x1U << PWR_CR_CWUF_Pos) /*!< 0x00000004 */
  7867. #define PWR_CR_CWUF PWR_CR_CWUF_Msk /*!< Clear Wakeup Flag */
  7868. #define PWR_CR_CSBF_Pos (3U)
  7869. #define PWR_CR_CSBF_Msk (0x1U << PWR_CR_CSBF_Pos) /*!< 0x00000008 */
  7870. #define PWR_CR_CSBF PWR_CR_CSBF_Msk /*!< Clear Standby Flag */
  7871. #define PWR_CR_PVDE_Pos (4U)
  7872. #define PWR_CR_PVDE_Msk (0x1U << PWR_CR_PVDE_Pos) /*!< 0x00000010 */
  7873. #define PWR_CR_PVDE PWR_CR_PVDE_Msk /*!< Power Voltage Detector Enable */
  7874. #define PWR_CR_PLS_Pos (5U)
  7875. #define PWR_CR_PLS_Msk (0x7U << PWR_CR_PLS_Pos) /*!< 0x000000E0 */
  7876. #define PWR_CR_PLS PWR_CR_PLS_Msk /*!< PLS[2:0] bits (PVD Level Selection) */
  7877. #define PWR_CR_PLS_0 (0x1U << PWR_CR_PLS_Pos) /*!< 0x00000020 */
  7878. #define PWR_CR_PLS_1 (0x2U << PWR_CR_PLS_Pos) /*!< 0x00000040 */
  7879. #define PWR_CR_PLS_2 (0x4U << PWR_CR_PLS_Pos) /*!< 0x00000080 */
  7880. /*!< PVD level configuration */
  7881. #define PWR_CR_PLS_LEV0 (0x00000000U) /*!< PVD level 0 */
  7882. #define PWR_CR_PLS_LEV1 (0x00000020U) /*!< PVD level 1 */
  7883. #define PWR_CR_PLS_LEV2 (0x00000040U) /*!< PVD level 2 */
  7884. #define PWR_CR_PLS_LEV3 (0x00000060U) /*!< PVD level 3 */
  7885. #define PWR_CR_PLS_LEV4 (0x00000080U) /*!< PVD level 4 */
  7886. #define PWR_CR_PLS_LEV5 (0x000000A0U) /*!< PVD level 5 */
  7887. #define PWR_CR_PLS_LEV6 (0x000000C0U) /*!< PVD level 6 */
  7888. #define PWR_CR_PLS_LEV7 (0x000000E0U) /*!< PVD level 7 */
  7889. #define PWR_CR_DBP_Pos (8U)
  7890. #define PWR_CR_DBP_Msk (0x1U << PWR_CR_DBP_Pos) /*!< 0x00000100 */
  7891. #define PWR_CR_DBP PWR_CR_DBP_Msk /*!< Disable Backup Domain write protection */
  7892. /******************* Bit definition for PWR_CSR register ********************/
  7893. #define PWR_CSR_WUF_Pos (0U)
  7894. #define PWR_CSR_WUF_Msk (0x1U << PWR_CSR_WUF_Pos) /*!< 0x00000001 */
  7895. #define PWR_CSR_WUF PWR_CSR_WUF_Msk /*!< Wakeup Flag */
  7896. #define PWR_CSR_SBF_Pos (1U)
  7897. #define PWR_CSR_SBF_Msk (0x1U << PWR_CSR_SBF_Pos) /*!< 0x00000002 */
  7898. #define PWR_CSR_SBF PWR_CSR_SBF_Msk /*!< Standby Flag */
  7899. #define PWR_CSR_PVDO_Pos (2U)
  7900. #define PWR_CSR_PVDO_Msk (0x1U << PWR_CSR_PVDO_Pos) /*!< 0x00000004 */
  7901. #define PWR_CSR_PVDO PWR_CSR_PVDO_Msk /*!< PVD Output */
  7902. #define PWR_CSR_EWUP1_Pos (8U)
  7903. #define PWR_CSR_EWUP1_Msk (0x1U << PWR_CSR_EWUP1_Pos) /*!< 0x00000100 */
  7904. #define PWR_CSR_EWUP1 PWR_CSR_EWUP1_Msk /*!< Enable WKUP pin 1 */
  7905. #define PWR_CSR_EWUP2_Pos (9U)
  7906. #define PWR_CSR_EWUP2_Msk (0x1U << PWR_CSR_EWUP2_Pos) /*!< 0x00000200 */
  7907. #define PWR_CSR_EWUP2 PWR_CSR_EWUP2_Msk /*!< Enable WKUP pin 2 */
  7908. #define PWR_CSR_EWUP3_Pos (10U)
  7909. #define PWR_CSR_EWUP3_Msk (0x1U << PWR_CSR_EWUP3_Pos) /*!< 0x00000400 */
  7910. #define PWR_CSR_EWUP3 PWR_CSR_EWUP3_Msk /*!< Enable WKUP pin 3 */
  7911. /******************************************************************************/
  7912. /* */
  7913. /* Reset and Clock Control */
  7914. /* */
  7915. /******************************************************************************/
  7916. /*
  7917. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  7918. */
  7919. /******************** Bit definition for RCC_CR register ********************/
  7920. #define RCC_CR_HSION_Pos (0U)
  7921. #define RCC_CR_HSION_Msk (0x1U << RCC_CR_HSION_Pos) /*!< 0x00000001 */
  7922. #define RCC_CR_HSION RCC_CR_HSION_Msk
  7923. #define RCC_CR_HSIRDY_Pos (1U)
  7924. #define RCC_CR_HSIRDY_Msk (0x1U << RCC_CR_HSIRDY_Pos) /*!< 0x00000002 */
  7925. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk
  7926. #define RCC_CR_HSITRIM_Pos (3U)
  7927. #define RCC_CR_HSITRIM_Msk (0x1FU << RCC_CR_HSITRIM_Pos) /*!< 0x000000F8 */
  7928. #define RCC_CR_HSITRIM RCC_CR_HSITRIM_Msk
  7929. #define RCC_CR_HSITRIM_0 (0x01U << RCC_CR_HSITRIM_Pos) /*!< 0x00000008 */
  7930. #define RCC_CR_HSITRIM_1 (0x02U << RCC_CR_HSITRIM_Pos) /*!< 0x00000010 */
  7931. #define RCC_CR_HSITRIM_2 (0x04U << RCC_CR_HSITRIM_Pos) /*!< 0x00000020 */
  7932. #define RCC_CR_HSITRIM_3 (0x08U << RCC_CR_HSITRIM_Pos) /*!< 0x00000040 */
  7933. #define RCC_CR_HSITRIM_4 (0x10U << RCC_CR_HSITRIM_Pos) /*!< 0x00000080 */
  7934. #define RCC_CR_HSICAL_Pos (8U)
  7935. #define RCC_CR_HSICAL_Msk (0xFFU << RCC_CR_HSICAL_Pos) /*!< 0x0000FF00 */
  7936. #define RCC_CR_HSICAL RCC_CR_HSICAL_Msk
  7937. #define RCC_CR_HSICAL_0 (0x01U << RCC_CR_HSICAL_Pos) /*!< 0x00000100 */
  7938. #define RCC_CR_HSICAL_1 (0x02U << RCC_CR_HSICAL_Pos) /*!< 0x00000200 */
  7939. #define RCC_CR_HSICAL_2 (0x04U << RCC_CR_HSICAL_Pos) /*!< 0x00000400 */
  7940. #define RCC_CR_HSICAL_3 (0x08U << RCC_CR_HSICAL_Pos) /*!< 0x00000800 */
  7941. #define RCC_CR_HSICAL_4 (0x10U << RCC_CR_HSICAL_Pos) /*!< 0x00001000 */
  7942. #define RCC_CR_HSICAL_5 (0x20U << RCC_CR_HSICAL_Pos) /*!< 0x00002000 */
  7943. #define RCC_CR_HSICAL_6 (0x40U << RCC_CR_HSICAL_Pos) /*!< 0x00004000 */
  7944. #define RCC_CR_HSICAL_7 (0x80U << RCC_CR_HSICAL_Pos) /*!< 0x00008000 */
  7945. #define RCC_CR_HSEON_Pos (16U)
  7946. #define RCC_CR_HSEON_Msk (0x1U << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  7947. #define RCC_CR_HSEON RCC_CR_HSEON_Msk
  7948. #define RCC_CR_HSERDY_Pos (17U)
  7949. #define RCC_CR_HSERDY_Msk (0x1U << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  7950. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk
  7951. #define RCC_CR_HSEBYP_Pos (18U)
  7952. #define RCC_CR_HSEBYP_Msk (0x1U << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  7953. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk
  7954. #define RCC_CR_CSSON_Pos (19U)
  7955. #define RCC_CR_CSSON_Msk (0x1U << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
  7956. #define RCC_CR_CSSON RCC_CR_CSSON_Msk
  7957. #define RCC_CR_PLLON_Pos (24U)
  7958. #define RCC_CR_PLLON_Msk (0x1U << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  7959. #define RCC_CR_PLLON RCC_CR_PLLON_Msk
  7960. #define RCC_CR_PLLRDY_Pos (25U)
  7961. #define RCC_CR_PLLRDY_Msk (0x1U << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  7962. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk
  7963. /******************** Bit definition for RCC_CFGR register ******************/
  7964. /*!< SW configuration */
  7965. #define RCC_CFGR_SW_Pos (0U)
  7966. #define RCC_CFGR_SW_Msk (0x3U << RCC_CFGR_SW_Pos) /*!< 0x00000003 */
  7967. #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */
  7968. #define RCC_CFGR_SW_0 (0x1U << RCC_CFGR_SW_Pos) /*!< 0x00000001 */
  7969. #define RCC_CFGR_SW_1 (0x2U << RCC_CFGR_SW_Pos) /*!< 0x00000002 */
  7970. #define RCC_CFGR_SW_HSI (0x00000000U) /*!< HSI selected as system clock */
  7971. #define RCC_CFGR_SW_HSE (0x00000001U) /*!< HSE selected as system clock */
  7972. #define RCC_CFGR_SW_PLL (0x00000002U) /*!< PLL selected as system clock */
  7973. /*!< SWS configuration */
  7974. #define RCC_CFGR_SWS_Pos (2U)
  7975. #define RCC_CFGR_SWS_Msk (0x3U << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */
  7976. #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */
  7977. #define RCC_CFGR_SWS_0 (0x1U << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */
  7978. #define RCC_CFGR_SWS_1 (0x2U << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */
  7979. #define RCC_CFGR_SWS_HSI (0x00000000U) /*!< HSI oscillator used as system clock */
  7980. #define RCC_CFGR_SWS_HSE (0x00000004U) /*!< HSE oscillator used as system clock */
  7981. #define RCC_CFGR_SWS_PLL (0x00000008U) /*!< PLL used as system clock */
  7982. /*!< HPRE configuration */
  7983. #define RCC_CFGR_HPRE_Pos (4U)
  7984. #define RCC_CFGR_HPRE_Msk (0xFU << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */
  7985. #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */
  7986. #define RCC_CFGR_HPRE_0 (0x1U << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */
  7987. #define RCC_CFGR_HPRE_1 (0x2U << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */
  7988. #define RCC_CFGR_HPRE_2 (0x4U << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */
  7989. #define RCC_CFGR_HPRE_3 (0x8U << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */
  7990. #define RCC_CFGR_HPRE_DIV1 (0x00000000U) /*!< SYSCLK not divided */
  7991. #define RCC_CFGR_HPRE_DIV2 (0x00000080U) /*!< SYSCLK divided by 2 */
  7992. #define RCC_CFGR_HPRE_DIV4 (0x00000090U) /*!< SYSCLK divided by 4 */
  7993. #define RCC_CFGR_HPRE_DIV8 (0x000000A0U) /*!< SYSCLK divided by 8 */
  7994. #define RCC_CFGR_HPRE_DIV16 (0x000000B0U) /*!< SYSCLK divided by 16 */
  7995. #define RCC_CFGR_HPRE_DIV64 (0x000000C0U) /*!< SYSCLK divided by 64 */
  7996. #define RCC_CFGR_HPRE_DIV128 (0x000000D0U) /*!< SYSCLK divided by 128 */
  7997. #define RCC_CFGR_HPRE_DIV256 (0x000000E0U) /*!< SYSCLK divided by 256 */
  7998. #define RCC_CFGR_HPRE_DIV512 (0x000000F0U) /*!< SYSCLK divided by 512 */
  7999. /*!< PPRE1 configuration */
  8000. #define RCC_CFGR_PPRE1_Pos (8U)
  8001. #define RCC_CFGR_PPRE1_Msk (0x7U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000700 */
  8002. #define RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_Msk /*!< PRE1[2:0] bits (APB1 prescaler) */
  8003. #define RCC_CFGR_PPRE1_0 (0x1U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000100 */
  8004. #define RCC_CFGR_PPRE1_1 (0x2U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000200 */
  8005. #define RCC_CFGR_PPRE1_2 (0x4U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000400 */
  8006. #define RCC_CFGR_PPRE1_DIV1 (0x00000000U) /*!< HCLK not divided */
  8007. #define RCC_CFGR_PPRE1_DIV2 (0x00000400U) /*!< HCLK divided by 2 */
  8008. #define RCC_CFGR_PPRE1_DIV4 (0x00000500U) /*!< HCLK divided by 4 */
  8009. #define RCC_CFGR_PPRE1_DIV8 (0x00000600U) /*!< HCLK divided by 8 */
  8010. #define RCC_CFGR_PPRE1_DIV16 (0x00000700U) /*!< HCLK divided by 16 */
  8011. /*!< PPRE2 configuration */
  8012. #define RCC_CFGR_PPRE2_Pos (11U)
  8013. #define RCC_CFGR_PPRE2_Msk (0x7U << RCC_CFGR_PPRE2_Pos) /*!< 0x00003800 */
  8014. #define RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_Msk /*!< PRE2[2:0] bits (APB2 prescaler) */
  8015. #define RCC_CFGR_PPRE2_0 (0x1U << RCC_CFGR_PPRE2_Pos) /*!< 0x00000800 */
  8016. #define RCC_CFGR_PPRE2_1 (0x2U << RCC_CFGR_PPRE2_Pos) /*!< 0x00001000 */
  8017. #define RCC_CFGR_PPRE2_2 (0x4U << RCC_CFGR_PPRE2_Pos) /*!< 0x00002000 */
  8018. #define RCC_CFGR_PPRE2_DIV1 (0x00000000U) /*!< HCLK not divided */
  8019. #define RCC_CFGR_PPRE2_DIV2 (0x00002000U) /*!< HCLK divided by 2 */
  8020. #define RCC_CFGR_PPRE2_DIV4 (0x00002800U) /*!< HCLK divided by 4 */
  8021. #define RCC_CFGR_PPRE2_DIV8 (0x00003000U) /*!< HCLK divided by 8 */
  8022. #define RCC_CFGR_PPRE2_DIV16 (0x00003800U) /*!< HCLK divided by 16 */
  8023. #define RCC_CFGR_PLLSRC_Pos (16U)
  8024. #define RCC_CFGR_PLLSRC_Msk (0x1U << RCC_CFGR_PLLSRC_Pos) /*!< 0x00010000 */
  8025. #define RCC_CFGR_PLLSRC RCC_CFGR_PLLSRC_Msk /*!< PLL entry clock source */
  8026. #define RCC_CFGR_PLLSRC_HSI_DIV2 (0x00000000U) /*!< HSI clock divided by 2 selected as PLL entry clock source */
  8027. #define RCC_CFGR_PLLSRC_HSE_PREDIV (0x00010000U) /*!< HSE/PREDIV clock selected as PLL entry clock source */
  8028. #define RCC_CFGR_PLLXTPRE_Pos (17U)
  8029. #define RCC_CFGR_PLLXTPRE_Msk (0x1U << RCC_CFGR_PLLXTPRE_Pos) /*!< 0x00020000 */
  8030. #define RCC_CFGR_PLLXTPRE RCC_CFGR_PLLXTPRE_Msk /*!< HSE divider for PLL entry */
  8031. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV1 (0x00000000U) /*!< HSE/PREDIV clock not divided for PLL entry */
  8032. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV2 (0x00020000U) /*!< HSE/PREDIV clock divided by 2 for PLL entry */
  8033. /*!< PLLMUL configuration */
  8034. #define RCC_CFGR_PLLMUL_Pos (18U)
  8035. #define RCC_CFGR_PLLMUL_Msk (0xFU << RCC_CFGR_PLLMUL_Pos) /*!< 0x003C0000 */
  8036. #define RCC_CFGR_PLLMUL RCC_CFGR_PLLMUL_Msk /*!< PLLMUL[3:0] bits (PLL multiplication factor) */
  8037. #define RCC_CFGR_PLLMUL_0 (0x1U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00040000 */
  8038. #define RCC_CFGR_PLLMUL_1 (0x2U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00080000 */
  8039. #define RCC_CFGR_PLLMUL_2 (0x4U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00100000 */
  8040. #define RCC_CFGR_PLLMUL_3 (0x8U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00200000 */
  8041. #define RCC_CFGR_PLLMUL2 (0x00000000U) /*!< PLL input clock*2 */
  8042. #define RCC_CFGR_PLLMUL3 (0x00040000U) /*!< PLL input clock*3 */
  8043. #define RCC_CFGR_PLLMUL4 (0x00080000U) /*!< PLL input clock*4 */
  8044. #define RCC_CFGR_PLLMUL5 (0x000C0000U) /*!< PLL input clock*5 */
  8045. #define RCC_CFGR_PLLMUL6 (0x00100000U) /*!< PLL input clock*6 */
  8046. #define RCC_CFGR_PLLMUL7 (0x00140000U) /*!< PLL input clock*7 */
  8047. #define RCC_CFGR_PLLMUL8 (0x00180000U) /*!< PLL input clock*8 */
  8048. #define RCC_CFGR_PLLMUL9 (0x001C0000U) /*!< PLL input clock*9 */
  8049. #define RCC_CFGR_PLLMUL10 (0x00200000U) /*!< PLL input clock10 */
  8050. #define RCC_CFGR_PLLMUL11 (0x00240000U) /*!< PLL input clock*11 */
  8051. #define RCC_CFGR_PLLMUL12 (0x00280000U) /*!< PLL input clock*12 */
  8052. #define RCC_CFGR_PLLMUL13 (0x002C0000U) /*!< PLL input clock*13 */
  8053. #define RCC_CFGR_PLLMUL14 (0x00300000U) /*!< PLL input clock*14 */
  8054. #define RCC_CFGR_PLLMUL15 (0x00340000U) /*!< PLL input clock*15 */
  8055. #define RCC_CFGR_PLLMUL16 (0x00380000U) /*!< PLL input clock*16 */
  8056. /*!< MCO configuration */
  8057. #define RCC_CFGR_MCO_Pos (24U)
  8058. #define RCC_CFGR_MCO_Msk (0x7U << RCC_CFGR_MCO_Pos) /*!< 0x07000000 */
  8059. #define RCC_CFGR_MCO RCC_CFGR_MCO_Msk /*!< MCO[2:0] bits (Microcontroller Clock Output) */
  8060. #define RCC_CFGR_MCO_0 (0x1U << RCC_CFGR_MCO_Pos) /*!< 0x01000000 */
  8061. #define RCC_CFGR_MCO_1 (0x2U << RCC_CFGR_MCO_Pos) /*!< 0x02000000 */
  8062. #define RCC_CFGR_MCO_2 (0x4U << RCC_CFGR_MCO_Pos) /*!< 0x04000000 */
  8063. #define RCC_CFGR_MCO_NOCLOCK (0x00000000U) /*!< No clock */
  8064. #define RCC_CFGR_MCO_LSI (0x02000000U) /*!< LSI clock selected as MCO source */
  8065. #define RCC_CFGR_MCO_LSE (0x03000000U) /*!< LSE clock selected as MCO source */
  8066. #define RCC_CFGR_MCO_SYSCLK (0x04000000U) /*!< System clock selected as MCO source */
  8067. #define RCC_CFGR_MCO_HSI (0x05000000U) /*!< HSI clock selected as MCO source */
  8068. #define RCC_CFGR_MCO_HSE (0x06000000U) /*!< HSE clock selected as MCO source */
  8069. #define RCC_CFGR_MCO_PLL (0x07000000U) /*!< PLL clock divided by 2 selected as MCO source */
  8070. #define RCC_CFGR_MCOPRE_Pos (28U)
  8071. #define RCC_CFGR_MCOPRE_Msk (0x7U << RCC_CFGR_MCOPRE_Pos) /*!< 0x70000000 */
  8072. #define RCC_CFGR_MCOPRE RCC_CFGR_MCOPRE_Msk /*!< MCOPRE[3:0] bits (Microcontroller Clock Output Prescaler) */
  8073. #define RCC_CFGR_MCOPRE_0 (0x1U << RCC_CFGR_MCOPRE_Pos) /*!< 0x10000000 */
  8074. #define RCC_CFGR_MCOPRE_1 (0x2U << RCC_CFGR_MCOPRE_Pos) /*!< 0x20000000 */
  8075. #define RCC_CFGR_MCOPRE_2 (0x4U << RCC_CFGR_MCOPRE_Pos) /*!< 0x40000000 */
  8076. #define RCC_CFGR_MCOPRE_DIV1 (0x00000000U) /*!< MCO is divided by 1 */
  8077. #define RCC_CFGR_MCOPRE_DIV2 (0x10000000U) /*!< MCO is divided by 2 */
  8078. #define RCC_CFGR_MCOPRE_DIV4 (0x20000000U) /*!< MCO is divided by 4 */
  8079. #define RCC_CFGR_MCOPRE_DIV8 (0x30000000U) /*!< MCO is divided by 8 */
  8080. #define RCC_CFGR_MCOPRE_DIV16 (0x40000000U) /*!< MCO is divided by 16 */
  8081. #define RCC_CFGR_MCOPRE_DIV32 (0x50000000U) /*!< MCO is divided by 32 */
  8082. #define RCC_CFGR_MCOPRE_DIV64 (0x60000000U) /*!< MCO is divided by 64 */
  8083. #define RCC_CFGR_MCOPRE_DIV128 (0x70000000U) /*!< MCO is divided by 128 */
  8084. #define RCC_CFGR_PLLNODIV_Pos (31U)
  8085. #define RCC_CFGR_PLLNODIV_Msk (0x1U << RCC_CFGR_PLLNODIV_Pos) /*!< 0x80000000 */
  8086. #define RCC_CFGR_PLLNODIV RCC_CFGR_PLLNODIV_Msk /*!< Do not divide PLL to MCO */
  8087. /* Reference defines */
  8088. #define RCC_CFGR_MCOSEL RCC_CFGR_MCO
  8089. #define RCC_CFGR_MCOSEL_0 RCC_CFGR_MCO_0
  8090. #define RCC_CFGR_MCOSEL_1 RCC_CFGR_MCO_1
  8091. #define RCC_CFGR_MCOSEL_2 RCC_CFGR_MCO_2
  8092. #define RCC_CFGR_MCOSEL_NOCLOCK RCC_CFGR_MCO_NOCLOCK
  8093. #define RCC_CFGR_MCOSEL_LSI RCC_CFGR_MCO_LSI
  8094. #define RCC_CFGR_MCOSEL_LSE RCC_CFGR_MCO_LSE
  8095. #define RCC_CFGR_MCOSEL_SYSCLK RCC_CFGR_MCO_SYSCLK
  8096. #define RCC_CFGR_MCOSEL_HSI RCC_CFGR_MCO_HSI
  8097. #define RCC_CFGR_MCOSEL_HSE RCC_CFGR_MCO_HSE
  8098. #define RCC_CFGR_MCOSEL_PLL_DIV2 RCC_CFGR_MCO_PLL
  8099. /********************* Bit definition for RCC_CIR register ********************/
  8100. #define RCC_CIR_LSIRDYF_Pos (0U)
  8101. #define RCC_CIR_LSIRDYF_Msk (0x1U << RCC_CIR_LSIRDYF_Pos) /*!< 0x00000001 */
  8102. #define RCC_CIR_LSIRDYF RCC_CIR_LSIRDYF_Msk /*!< LSI Ready Interrupt flag */
  8103. #define RCC_CIR_LSERDYF_Pos (1U)
  8104. #define RCC_CIR_LSERDYF_Msk (0x1U << RCC_CIR_LSERDYF_Pos) /*!< 0x00000002 */
  8105. #define RCC_CIR_LSERDYF RCC_CIR_LSERDYF_Msk /*!< LSE Ready Interrupt flag */
  8106. #define RCC_CIR_HSIRDYF_Pos (2U)
  8107. #define RCC_CIR_HSIRDYF_Msk (0x1U << RCC_CIR_HSIRDYF_Pos) /*!< 0x00000004 */
  8108. #define RCC_CIR_HSIRDYF RCC_CIR_HSIRDYF_Msk /*!< HSI Ready Interrupt flag */
  8109. #define RCC_CIR_HSERDYF_Pos (3U)
  8110. #define RCC_CIR_HSERDYF_Msk (0x1U << RCC_CIR_HSERDYF_Pos) /*!< 0x00000008 */
  8111. #define RCC_CIR_HSERDYF RCC_CIR_HSERDYF_Msk /*!< HSE Ready Interrupt flag */
  8112. #define RCC_CIR_PLLRDYF_Pos (4U)
  8113. #define RCC_CIR_PLLRDYF_Msk (0x1U << RCC_CIR_PLLRDYF_Pos) /*!< 0x00000010 */
  8114. #define RCC_CIR_PLLRDYF RCC_CIR_PLLRDYF_Msk /*!< PLL Ready Interrupt flag */
  8115. #define RCC_CIR_CSSF_Pos (7U)
  8116. #define RCC_CIR_CSSF_Msk (0x1U << RCC_CIR_CSSF_Pos) /*!< 0x00000080 */
  8117. #define RCC_CIR_CSSF RCC_CIR_CSSF_Msk /*!< Clock Security System Interrupt flag */
  8118. #define RCC_CIR_LSIRDYIE_Pos (8U)
  8119. #define RCC_CIR_LSIRDYIE_Msk (0x1U << RCC_CIR_LSIRDYIE_Pos) /*!< 0x00000100 */
  8120. #define RCC_CIR_LSIRDYIE RCC_CIR_LSIRDYIE_Msk /*!< LSI Ready Interrupt Enable */
  8121. #define RCC_CIR_LSERDYIE_Pos (9U)
  8122. #define RCC_CIR_LSERDYIE_Msk (0x1U << RCC_CIR_LSERDYIE_Pos) /*!< 0x00000200 */
  8123. #define RCC_CIR_LSERDYIE RCC_CIR_LSERDYIE_Msk /*!< LSE Ready Interrupt Enable */
  8124. #define RCC_CIR_HSIRDYIE_Pos (10U)
  8125. #define RCC_CIR_HSIRDYIE_Msk (0x1U << RCC_CIR_HSIRDYIE_Pos) /*!< 0x00000400 */
  8126. #define RCC_CIR_HSIRDYIE RCC_CIR_HSIRDYIE_Msk /*!< HSI Ready Interrupt Enable */
  8127. #define RCC_CIR_HSERDYIE_Pos (11U)
  8128. #define RCC_CIR_HSERDYIE_Msk (0x1U << RCC_CIR_HSERDYIE_Pos) /*!< 0x00000800 */
  8129. #define RCC_CIR_HSERDYIE RCC_CIR_HSERDYIE_Msk /*!< HSE Ready Interrupt Enable */
  8130. #define RCC_CIR_PLLRDYIE_Pos (12U)
  8131. #define RCC_CIR_PLLRDYIE_Msk (0x1U << RCC_CIR_PLLRDYIE_Pos) /*!< 0x00001000 */
  8132. #define RCC_CIR_PLLRDYIE RCC_CIR_PLLRDYIE_Msk /*!< PLL Ready Interrupt Enable */
  8133. #define RCC_CIR_LSIRDYC_Pos (16U)
  8134. #define RCC_CIR_LSIRDYC_Msk (0x1U << RCC_CIR_LSIRDYC_Pos) /*!< 0x00010000 */
  8135. #define RCC_CIR_LSIRDYC RCC_CIR_LSIRDYC_Msk /*!< LSI Ready Interrupt Clear */
  8136. #define RCC_CIR_LSERDYC_Pos (17U)
  8137. #define RCC_CIR_LSERDYC_Msk (0x1U << RCC_CIR_LSERDYC_Pos) /*!< 0x00020000 */
  8138. #define RCC_CIR_LSERDYC RCC_CIR_LSERDYC_Msk /*!< LSE Ready Interrupt Clear */
  8139. #define RCC_CIR_HSIRDYC_Pos (18U)
  8140. #define RCC_CIR_HSIRDYC_Msk (0x1U << RCC_CIR_HSIRDYC_Pos) /*!< 0x00040000 */
  8141. #define RCC_CIR_HSIRDYC RCC_CIR_HSIRDYC_Msk /*!< HSI Ready Interrupt Clear */
  8142. #define RCC_CIR_HSERDYC_Pos (19U)
  8143. #define RCC_CIR_HSERDYC_Msk (0x1U << RCC_CIR_HSERDYC_Pos) /*!< 0x00080000 */
  8144. #define RCC_CIR_HSERDYC RCC_CIR_HSERDYC_Msk /*!< HSE Ready Interrupt Clear */
  8145. #define RCC_CIR_PLLRDYC_Pos (20U)
  8146. #define RCC_CIR_PLLRDYC_Msk (0x1U << RCC_CIR_PLLRDYC_Pos) /*!< 0x00100000 */
  8147. #define RCC_CIR_PLLRDYC RCC_CIR_PLLRDYC_Msk /*!< PLL Ready Interrupt Clear */
  8148. #define RCC_CIR_CSSC_Pos (23U)
  8149. #define RCC_CIR_CSSC_Msk (0x1U << RCC_CIR_CSSC_Pos) /*!< 0x00800000 */
  8150. #define RCC_CIR_CSSC RCC_CIR_CSSC_Msk /*!< Clock Security System Interrupt Clear */
  8151. /****************** Bit definition for RCC_APB2RSTR register *****************/
  8152. #define RCC_APB2RSTR_SYSCFGRST_Pos (0U)
  8153. #define RCC_APB2RSTR_SYSCFGRST_Msk (0x1U << RCC_APB2RSTR_SYSCFGRST_Pos) /*!< 0x00000001 */
  8154. #define RCC_APB2RSTR_SYSCFGRST RCC_APB2RSTR_SYSCFGRST_Msk /*!< SYSCFG reset */
  8155. #define RCC_APB2RSTR_TIM1RST_Pos (11U)
  8156. #define RCC_APB2RSTR_TIM1RST_Msk (0x1U << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000800 */
  8157. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk /*!< TIM1 reset */
  8158. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  8159. #define RCC_APB2RSTR_SPI1RST_Msk (0x1U << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */
  8160. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk /*!< SPI1 reset */
  8161. #define RCC_APB2RSTR_USART1RST_Pos (14U)
  8162. #define RCC_APB2RSTR_USART1RST_Msk (0x1U << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00004000 */
  8163. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk /*!< USART1 reset */
  8164. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  8165. #define RCC_APB2RSTR_TIM15RST_Msk (0x1U << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */
  8166. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk /*!< TIM15 reset */
  8167. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  8168. #define RCC_APB2RSTR_TIM16RST_Msk (0x1U << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */
  8169. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk /*!< TIM16 reset */
  8170. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  8171. #define RCC_APB2RSTR_TIM17RST_Msk (0x1U << RCC_APB2RSTR_TIM17RST_Pos) /*!< 0x00040000 */
  8172. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk /*!< TIM17 reset */
  8173. /****************** Bit definition for RCC_APB1RSTR register ******************/
  8174. #define RCC_APB1RSTR_TIM2RST_Pos (0U)
  8175. #define RCC_APB1RSTR_TIM2RST_Msk (0x1U << RCC_APB1RSTR_TIM2RST_Pos) /*!< 0x00000001 */
  8176. #define RCC_APB1RSTR_TIM2RST RCC_APB1RSTR_TIM2RST_Msk /*!< Timer 2 reset */
  8177. #define RCC_APB1RSTR_TIM3RST_Pos (1U)
  8178. #define RCC_APB1RSTR_TIM3RST_Msk (0x1U << RCC_APB1RSTR_TIM3RST_Pos) /*!< 0x00000002 */
  8179. #define RCC_APB1RSTR_TIM3RST RCC_APB1RSTR_TIM3RST_Msk /*!< Timer 3 reset */
  8180. #define RCC_APB1RSTR_TIM6RST_Pos (4U)
  8181. #define RCC_APB1RSTR_TIM6RST_Msk (0x1U << RCC_APB1RSTR_TIM6RST_Pos) /*!< 0x00000010 */
  8182. #define RCC_APB1RSTR_TIM6RST RCC_APB1RSTR_TIM6RST_Msk /*!< Timer 6 reset */
  8183. #define RCC_APB1RSTR_TIM7RST_Pos (5U)
  8184. #define RCC_APB1RSTR_TIM7RST_Msk (0x1U << RCC_APB1RSTR_TIM7RST_Pos) /*!< 0x00000020 */
  8185. #define RCC_APB1RSTR_TIM7RST RCC_APB1RSTR_TIM7RST_Msk /*!< Timer 7 reset */
  8186. #define RCC_APB1RSTR_WWDGRST_Pos (11U)
  8187. #define RCC_APB1RSTR_WWDGRST_Msk (0x1U << RCC_APB1RSTR_WWDGRST_Pos) /*!< 0x00000800 */
  8188. #define RCC_APB1RSTR_WWDGRST RCC_APB1RSTR_WWDGRST_Msk /*!< Window Watchdog reset */
  8189. #define RCC_APB1RSTR_USART2RST_Pos (17U)
  8190. #define RCC_APB1RSTR_USART2RST_Msk (0x1U << RCC_APB1RSTR_USART2RST_Pos) /*!< 0x00020000 */
  8191. #define RCC_APB1RSTR_USART2RST RCC_APB1RSTR_USART2RST_Msk /*!< USART 2 reset */
  8192. #define RCC_APB1RSTR_USART3RST_Pos (18U)
  8193. #define RCC_APB1RSTR_USART3RST_Msk (0x1U << RCC_APB1RSTR_USART3RST_Pos) /*!< 0x00040000 */
  8194. #define RCC_APB1RSTR_USART3RST RCC_APB1RSTR_USART3RST_Msk /*!< USART 3 reset */
  8195. #define RCC_APB1RSTR_I2C1RST_Pos (21U)
  8196. #define RCC_APB1RSTR_I2C1RST_Msk (0x1U << RCC_APB1RSTR_I2C1RST_Pos) /*!< 0x00200000 */
  8197. #define RCC_APB1RSTR_I2C1RST RCC_APB1RSTR_I2C1RST_Msk /*!< I2C 1 reset */
  8198. #define RCC_APB1RSTR_CANRST_Pos (25U)
  8199. #define RCC_APB1RSTR_CANRST_Msk (0x1U << RCC_APB1RSTR_CANRST_Pos) /*!< 0x02000000 */
  8200. #define RCC_APB1RSTR_CANRST RCC_APB1RSTR_CANRST_Msk /*!< CAN reset */
  8201. #define RCC_APB1RSTR_DAC2RST_Pos (26U)
  8202. #define RCC_APB1RSTR_DAC2RST_Msk (0x1U << RCC_APB1RSTR_DAC2RST_Pos) /*!< 0x04000000 */
  8203. #define RCC_APB1RSTR_DAC2RST RCC_APB1RSTR_DAC2RST_Msk /*!< DAC 2 reset */
  8204. #define RCC_APB1RSTR_PWRRST_Pos (28U)
  8205. #define RCC_APB1RSTR_PWRRST_Msk (0x1U << RCC_APB1RSTR_PWRRST_Pos) /*!< 0x10000000 */
  8206. #define RCC_APB1RSTR_PWRRST RCC_APB1RSTR_PWRRST_Msk /*!< PWR reset */
  8207. #define RCC_APB1RSTR_DAC1RST_Pos (29U)
  8208. #define RCC_APB1RSTR_DAC1RST_Msk (0x1U << RCC_APB1RSTR_DAC1RST_Pos) /*!< 0x20000000 */
  8209. #define RCC_APB1RSTR_DAC1RST RCC_APB1RSTR_DAC1RST_Msk /*!< DAC 1 reset */
  8210. /****************** Bit definition for RCC_AHBENR register ******************/
  8211. #define RCC_AHBENR_DMA1EN_Pos (0U)
  8212. #define RCC_AHBENR_DMA1EN_Msk (0x1U << RCC_AHBENR_DMA1EN_Pos) /*!< 0x00000001 */
  8213. #define RCC_AHBENR_DMA1EN RCC_AHBENR_DMA1EN_Msk /*!< DMA1 clock enable */
  8214. #define RCC_AHBENR_SRAMEN_Pos (2U)
  8215. #define RCC_AHBENR_SRAMEN_Msk (0x1U << RCC_AHBENR_SRAMEN_Pos) /*!< 0x00000004 */
  8216. #define RCC_AHBENR_SRAMEN RCC_AHBENR_SRAMEN_Msk /*!< SRAM interface clock enable */
  8217. #define RCC_AHBENR_FLITFEN_Pos (4U)
  8218. #define RCC_AHBENR_FLITFEN_Msk (0x1U << RCC_AHBENR_FLITFEN_Pos) /*!< 0x00000010 */
  8219. #define RCC_AHBENR_FLITFEN RCC_AHBENR_FLITFEN_Msk /*!< FLITF clock enable */
  8220. #define RCC_AHBENR_CRCEN_Pos (6U)
  8221. #define RCC_AHBENR_CRCEN_Msk (0x1U << RCC_AHBENR_CRCEN_Pos) /*!< 0x00000040 */
  8222. #define RCC_AHBENR_CRCEN RCC_AHBENR_CRCEN_Msk /*!< CRC clock enable */
  8223. #define RCC_AHBENR_GPIOAEN_Pos (17U)
  8224. #define RCC_AHBENR_GPIOAEN_Msk (0x1U << RCC_AHBENR_GPIOAEN_Pos) /*!< 0x00020000 */
  8225. #define RCC_AHBENR_GPIOAEN RCC_AHBENR_GPIOAEN_Msk /*!< GPIOA clock enable */
  8226. #define RCC_AHBENR_GPIOBEN_Pos (18U)
  8227. #define RCC_AHBENR_GPIOBEN_Msk (0x1U << RCC_AHBENR_GPIOBEN_Pos) /*!< 0x00040000 */
  8228. #define RCC_AHBENR_GPIOBEN RCC_AHBENR_GPIOBEN_Msk /*!< GPIOB clock enable */
  8229. #define RCC_AHBENR_GPIOCEN_Pos (19U)
  8230. #define RCC_AHBENR_GPIOCEN_Msk (0x1U << RCC_AHBENR_GPIOCEN_Pos) /*!< 0x00080000 */
  8231. #define RCC_AHBENR_GPIOCEN RCC_AHBENR_GPIOCEN_Msk /*!< GPIOC clock enable */
  8232. #define RCC_AHBENR_GPIODEN_Pos (20U)
  8233. #define RCC_AHBENR_GPIODEN_Msk (0x1U << RCC_AHBENR_GPIODEN_Pos) /*!< 0x00100000 */
  8234. #define RCC_AHBENR_GPIODEN RCC_AHBENR_GPIODEN_Msk /*!< GPIOD clock enable */
  8235. #define RCC_AHBENR_GPIOFEN_Pos (22U)
  8236. #define RCC_AHBENR_GPIOFEN_Msk (0x1U << RCC_AHBENR_GPIOFEN_Pos) /*!< 0x00400000 */
  8237. #define RCC_AHBENR_GPIOFEN RCC_AHBENR_GPIOFEN_Msk /*!< GPIOF clock enable */
  8238. #define RCC_AHBENR_TSCEN_Pos (24U)
  8239. #define RCC_AHBENR_TSCEN_Msk (0x1U << RCC_AHBENR_TSCEN_Pos) /*!< 0x01000000 */
  8240. #define RCC_AHBENR_TSCEN RCC_AHBENR_TSCEN_Msk /*!< TS clock enable */
  8241. #define RCC_AHBENR_ADC12EN_Pos (28U)
  8242. #define RCC_AHBENR_ADC12EN_Msk (0x1U << RCC_AHBENR_ADC12EN_Pos) /*!< 0x10000000 */
  8243. #define RCC_AHBENR_ADC12EN RCC_AHBENR_ADC12EN_Msk /*!< ADC1/ ADC2 clock enable */
  8244. /***************** Bit definition for RCC_APB2ENR register ******************/
  8245. #define RCC_APB2ENR_SYSCFGEN_Pos (0U)
  8246. #define RCC_APB2ENR_SYSCFGEN_Msk (0x1U << RCC_APB2ENR_SYSCFGEN_Pos) /*!< 0x00000001 */
  8247. #define RCC_APB2ENR_SYSCFGEN RCC_APB2ENR_SYSCFGEN_Msk /*!< SYSCFG clock enable */
  8248. #define RCC_APB2ENR_TIM1EN_Pos (11U)
  8249. #define RCC_APB2ENR_TIM1EN_Msk (0x1U << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */
  8250. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk /*!< TIM1 clock enable */
  8251. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  8252. #define RCC_APB2ENR_SPI1EN_Msk (0x1U << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  8253. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk /*!< SPI1 clock enable */
  8254. #define RCC_APB2ENR_USART1EN_Pos (14U)
  8255. #define RCC_APB2ENR_USART1EN_Msk (0x1U << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00004000 */
  8256. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk /*!< USART1 clock enable */
  8257. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  8258. #define RCC_APB2ENR_TIM15EN_Msk (0x1U << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */
  8259. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk /*!< TIM15 clock enable */
  8260. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  8261. #define RCC_APB2ENR_TIM16EN_Msk (0x1U << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
  8262. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk /*!< TIM16 clock enable */
  8263. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  8264. #define RCC_APB2ENR_TIM17EN_Msk (0x1U << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
  8265. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk /*!< TIM17 clock enable */
  8266. /****************** Bit definition for RCC_APB1ENR register ******************/
  8267. #define RCC_APB1ENR_TIM2EN_Pos (0U)
  8268. #define RCC_APB1ENR_TIM2EN_Msk (0x1U << RCC_APB1ENR_TIM2EN_Pos) /*!< 0x00000001 */
  8269. #define RCC_APB1ENR_TIM2EN RCC_APB1ENR_TIM2EN_Msk /*!< Timer 2 clock enable */
  8270. #define RCC_APB1ENR_TIM3EN_Pos (1U)
  8271. #define RCC_APB1ENR_TIM3EN_Msk (0x1U << RCC_APB1ENR_TIM3EN_Pos) /*!< 0x00000002 */
  8272. #define RCC_APB1ENR_TIM3EN RCC_APB1ENR_TIM3EN_Msk /*!< Timer 3 clock enable */
  8273. #define RCC_APB1ENR_TIM6EN_Pos (4U)
  8274. #define RCC_APB1ENR_TIM6EN_Msk (0x1U << RCC_APB1ENR_TIM6EN_Pos) /*!< 0x00000010 */
  8275. #define RCC_APB1ENR_TIM6EN RCC_APB1ENR_TIM6EN_Msk /*!< Timer 6 clock enable */
  8276. #define RCC_APB1ENR_TIM7EN_Pos (5U)
  8277. #define RCC_APB1ENR_TIM7EN_Msk (0x1U << RCC_APB1ENR_TIM7EN_Pos) /*!< 0x00000020 */
  8278. #define RCC_APB1ENR_TIM7EN RCC_APB1ENR_TIM7EN_Msk /*!< Timer 7 clock enable */
  8279. #define RCC_APB1ENR_WWDGEN_Pos (11U)
  8280. #define RCC_APB1ENR_WWDGEN_Msk (0x1U << RCC_APB1ENR_WWDGEN_Pos) /*!< 0x00000800 */
  8281. #define RCC_APB1ENR_WWDGEN RCC_APB1ENR_WWDGEN_Msk /*!< Window Watchdog clock enable */
  8282. #define RCC_APB1ENR_USART2EN_Pos (17U)
  8283. #define RCC_APB1ENR_USART2EN_Msk (0x1U << RCC_APB1ENR_USART2EN_Pos) /*!< 0x00020000 */
  8284. #define RCC_APB1ENR_USART2EN RCC_APB1ENR_USART2EN_Msk /*!< USART 2 clock enable */
  8285. #define RCC_APB1ENR_USART3EN_Pos (18U)
  8286. #define RCC_APB1ENR_USART3EN_Msk (0x1U << RCC_APB1ENR_USART3EN_Pos) /*!< 0x00040000 */
  8287. #define RCC_APB1ENR_USART3EN RCC_APB1ENR_USART3EN_Msk /*!< USART 3 clock enable */
  8288. #define RCC_APB1ENR_I2C1EN_Pos (21U)
  8289. #define RCC_APB1ENR_I2C1EN_Msk (0x1U << RCC_APB1ENR_I2C1EN_Pos) /*!< 0x00200000 */
  8290. #define RCC_APB1ENR_I2C1EN RCC_APB1ENR_I2C1EN_Msk /*!< I2C 1 clock enable */
  8291. #define RCC_APB1ENR_CANEN_Pos (25U)
  8292. #define RCC_APB1ENR_CANEN_Msk (0x1U << RCC_APB1ENR_CANEN_Pos) /*!< 0x02000000 */
  8293. #define RCC_APB1ENR_CANEN RCC_APB1ENR_CANEN_Msk /*!< CAN clock enable */
  8294. #define RCC_APB1ENR_DAC2EN_Pos (26U)
  8295. #define RCC_APB1ENR_DAC2EN_Msk (0x1U << RCC_APB1ENR_DAC2EN_Pos) /*!< 0x04000000 */
  8296. #define RCC_APB1ENR_DAC2EN RCC_APB1ENR_DAC2EN_Msk /*!< DAC 2 clock enable */
  8297. #define RCC_APB1ENR_PWREN_Pos (28U)
  8298. #define RCC_APB1ENR_PWREN_Msk (0x1U << RCC_APB1ENR_PWREN_Pos) /*!< 0x10000000 */
  8299. #define RCC_APB1ENR_PWREN RCC_APB1ENR_PWREN_Msk /*!< PWR clock enable */
  8300. #define RCC_APB1ENR_DAC1EN_Pos (29U)
  8301. #define RCC_APB1ENR_DAC1EN_Msk (0x1U << RCC_APB1ENR_DAC1EN_Pos) /*!< 0x20000000 */
  8302. #define RCC_APB1ENR_DAC1EN RCC_APB1ENR_DAC1EN_Msk /*!< DAC 1 clock enable */
  8303. /******************** Bit definition for RCC_BDCR register ******************/
  8304. #define RCC_BDCR_LSE_Pos (0U)
  8305. #define RCC_BDCR_LSE_Msk (0x7U << RCC_BDCR_LSE_Pos) /*!< 0x00000007 */
  8306. #define RCC_BDCR_LSE RCC_BDCR_LSE_Msk /*!< External Low Speed oscillator [2:0] bits */
  8307. #define RCC_BDCR_LSEON_Pos (0U)
  8308. #define RCC_BDCR_LSEON_Msk (0x1U << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  8309. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk /*!< External Low Speed oscillator enable */
  8310. #define RCC_BDCR_LSERDY_Pos (1U)
  8311. #define RCC_BDCR_LSERDY_Msk (0x1U << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  8312. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk /*!< External Low Speed oscillator Ready */
  8313. #define RCC_BDCR_LSEBYP_Pos (2U)
  8314. #define RCC_BDCR_LSEBYP_Msk (0x1U << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  8315. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk /*!< External Low Speed oscillator Bypass */
  8316. #define RCC_BDCR_LSEDRV_Pos (3U)
  8317. #define RCC_BDCR_LSEDRV_Msk (0x3U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  8318. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk /*!< LSEDRV[1:0] bits (LSE Osc. drive capability) */
  8319. #define RCC_BDCR_LSEDRV_0 (0x1U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  8320. #define RCC_BDCR_LSEDRV_1 (0x2U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  8321. #define RCC_BDCR_RTCSEL_Pos (8U)
  8322. #define RCC_BDCR_RTCSEL_Msk (0x3U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  8323. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk /*!< RTCSEL[1:0] bits (RTC clock source selection) */
  8324. #define RCC_BDCR_RTCSEL_0 (0x1U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  8325. #define RCC_BDCR_RTCSEL_1 (0x2U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  8326. /*!< RTC configuration */
  8327. #define RCC_BDCR_RTCSEL_NOCLOCK (0x00000000U) /*!< No clock */
  8328. #define RCC_BDCR_RTCSEL_LSE (0x00000100U) /*!< LSE oscillator clock used as RTC clock */
  8329. #define RCC_BDCR_RTCSEL_LSI (0x00000200U) /*!< LSI oscillator clock used as RTC clock */
  8330. #define RCC_BDCR_RTCSEL_HSE (0x00000300U) /*!< HSE oscillator clock divided by 32 used as RTC clock */
  8331. #define RCC_BDCR_RTCEN_Pos (15U)
  8332. #define RCC_BDCR_RTCEN_Msk (0x1U << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  8333. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk /*!< RTC clock enable */
  8334. #define RCC_BDCR_BDRST_Pos (16U)
  8335. #define RCC_BDCR_BDRST_Msk (0x1U << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  8336. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk /*!< Backup domain software reset */
  8337. /******************** Bit definition for RCC_CSR register *******************/
  8338. #define RCC_CSR_LSION_Pos (0U)
  8339. #define RCC_CSR_LSION_Msk (0x1U << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  8340. #define RCC_CSR_LSION RCC_CSR_LSION_Msk /*!< Internal Low Speed oscillator enable */
  8341. #define RCC_CSR_LSIRDY_Pos (1U)
  8342. #define RCC_CSR_LSIRDY_Msk (0x1U << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  8343. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk /*!< Internal Low Speed oscillator Ready */
  8344. #define RCC_CSR_V18PWRRSTF_Pos (23U)
  8345. #define RCC_CSR_V18PWRRSTF_Msk (0x1U << RCC_CSR_V18PWRRSTF_Pos) /*!< 0x00800000 */
  8346. #define RCC_CSR_V18PWRRSTF RCC_CSR_V18PWRRSTF_Msk /*!< V1.8 power domain reset flag */
  8347. #define RCC_CSR_RMVF_Pos (24U)
  8348. #define RCC_CSR_RMVF_Msk (0x1U << RCC_CSR_RMVF_Pos) /*!< 0x01000000 */
  8349. #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk /*!< Remove reset flag */
  8350. #define RCC_CSR_OBLRSTF_Pos (25U)
  8351. #define RCC_CSR_OBLRSTF_Msk (0x1U << RCC_CSR_OBLRSTF_Pos) /*!< 0x02000000 */
  8352. #define RCC_CSR_OBLRSTF RCC_CSR_OBLRSTF_Msk /*!< OBL reset flag */
  8353. #define RCC_CSR_PINRSTF_Pos (26U)
  8354. #define RCC_CSR_PINRSTF_Msk (0x1U << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */
  8355. #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk /*!< PIN reset flag */
  8356. #define RCC_CSR_PORRSTF_Pos (27U)
  8357. #define RCC_CSR_PORRSTF_Msk (0x1U << RCC_CSR_PORRSTF_Pos) /*!< 0x08000000 */
  8358. #define RCC_CSR_PORRSTF RCC_CSR_PORRSTF_Msk /*!< POR/PDR reset flag */
  8359. #define RCC_CSR_SFTRSTF_Pos (28U)
  8360. #define RCC_CSR_SFTRSTF_Msk (0x1U << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */
  8361. #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk /*!< Software Reset flag */
  8362. #define RCC_CSR_IWDGRSTF_Pos (29U)
  8363. #define RCC_CSR_IWDGRSTF_Msk (0x1U << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */
  8364. #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk /*!< Independent Watchdog reset flag */
  8365. #define RCC_CSR_WWDGRSTF_Pos (30U)
  8366. #define RCC_CSR_WWDGRSTF_Msk (0x1U << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */
  8367. #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk /*!< Window watchdog reset flag */
  8368. #define RCC_CSR_LPWRRSTF_Pos (31U)
  8369. #define RCC_CSR_LPWRRSTF_Msk (0x1U << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */
  8370. #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk /*!< Low-Power reset flag */
  8371. /******************* Bit definition for RCC_AHBRSTR register ****************/
  8372. #define RCC_AHBRSTR_GPIOARST_Pos (17U)
  8373. #define RCC_AHBRSTR_GPIOARST_Msk (0x1U << RCC_AHBRSTR_GPIOARST_Pos) /*!< 0x00020000 */
  8374. #define RCC_AHBRSTR_GPIOARST RCC_AHBRSTR_GPIOARST_Msk /*!< GPIOA reset */
  8375. #define RCC_AHBRSTR_GPIOBRST_Pos (18U)
  8376. #define RCC_AHBRSTR_GPIOBRST_Msk (0x1U << RCC_AHBRSTR_GPIOBRST_Pos) /*!< 0x00040000 */
  8377. #define RCC_AHBRSTR_GPIOBRST RCC_AHBRSTR_GPIOBRST_Msk /*!< GPIOB reset */
  8378. #define RCC_AHBRSTR_GPIOCRST_Pos (19U)
  8379. #define RCC_AHBRSTR_GPIOCRST_Msk (0x1U << RCC_AHBRSTR_GPIOCRST_Pos) /*!< 0x00080000 */
  8380. #define RCC_AHBRSTR_GPIOCRST RCC_AHBRSTR_GPIOCRST_Msk /*!< GPIOC reset */
  8381. #define RCC_AHBRSTR_GPIODRST_Pos (20U)
  8382. #define RCC_AHBRSTR_GPIODRST_Msk (0x1U << RCC_AHBRSTR_GPIODRST_Pos) /*!< 0x00100000 */
  8383. #define RCC_AHBRSTR_GPIODRST RCC_AHBRSTR_GPIODRST_Msk /*!< GPIOD reset */
  8384. #define RCC_AHBRSTR_GPIOFRST_Pos (22U)
  8385. #define RCC_AHBRSTR_GPIOFRST_Msk (0x1U << RCC_AHBRSTR_GPIOFRST_Pos) /*!< 0x00400000 */
  8386. #define RCC_AHBRSTR_GPIOFRST RCC_AHBRSTR_GPIOFRST_Msk /*!< GPIOF reset */
  8387. #define RCC_AHBRSTR_TSCRST_Pos (24U)
  8388. #define RCC_AHBRSTR_TSCRST_Msk (0x1U << RCC_AHBRSTR_TSCRST_Pos) /*!< 0x01000000 */
  8389. #define RCC_AHBRSTR_TSCRST RCC_AHBRSTR_TSCRST_Msk /*!< TSC reset */
  8390. #define RCC_AHBRSTR_ADC12RST_Pos (28U)
  8391. #define RCC_AHBRSTR_ADC12RST_Msk (0x1U << RCC_AHBRSTR_ADC12RST_Pos) /*!< 0x10000000 */
  8392. #define RCC_AHBRSTR_ADC12RST RCC_AHBRSTR_ADC12RST_Msk /*!< ADC1 & ADC2 reset */
  8393. /******************* Bit definition for RCC_CFGR2 register ******************/
  8394. /*!< PREDIV configuration */
  8395. #define RCC_CFGR2_PREDIV_Pos (0U)
  8396. #define RCC_CFGR2_PREDIV_Msk (0xFU << RCC_CFGR2_PREDIV_Pos) /*!< 0x0000000F */
  8397. #define RCC_CFGR2_PREDIV RCC_CFGR2_PREDIV_Msk /*!< PREDIV[3:0] bits */
  8398. #define RCC_CFGR2_PREDIV_0 (0x1U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000001 */
  8399. #define RCC_CFGR2_PREDIV_1 (0x2U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000002 */
  8400. #define RCC_CFGR2_PREDIV_2 (0x4U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000004 */
  8401. #define RCC_CFGR2_PREDIV_3 (0x8U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000008 */
  8402. #define RCC_CFGR2_PREDIV_DIV1 (0x00000000U) /*!< PREDIV input clock not divided */
  8403. #define RCC_CFGR2_PREDIV_DIV2 (0x00000001U) /*!< PREDIV input clock divided by 2 */
  8404. #define RCC_CFGR2_PREDIV_DIV3 (0x00000002U) /*!< PREDIV input clock divided by 3 */
  8405. #define RCC_CFGR2_PREDIV_DIV4 (0x00000003U) /*!< PREDIV input clock divided by 4 */
  8406. #define RCC_CFGR2_PREDIV_DIV5 (0x00000004U) /*!< PREDIV input clock divided by 5 */
  8407. #define RCC_CFGR2_PREDIV_DIV6 (0x00000005U) /*!< PREDIV input clock divided by 6 */
  8408. #define RCC_CFGR2_PREDIV_DIV7 (0x00000006U) /*!< PREDIV input clock divided by 7 */
  8409. #define RCC_CFGR2_PREDIV_DIV8 (0x00000007U) /*!< PREDIV input clock divided by 8 */
  8410. #define RCC_CFGR2_PREDIV_DIV9 (0x00000008U) /*!< PREDIV input clock divided by 9 */
  8411. #define RCC_CFGR2_PREDIV_DIV10 (0x00000009U) /*!< PREDIV input clock divided by 10 */
  8412. #define RCC_CFGR2_PREDIV_DIV11 (0x0000000AU) /*!< PREDIV input clock divided by 11 */
  8413. #define RCC_CFGR2_PREDIV_DIV12 (0x0000000BU) /*!< PREDIV input clock divided by 12 */
  8414. #define RCC_CFGR2_PREDIV_DIV13 (0x0000000CU) /*!< PREDIV input clock divided by 13 */
  8415. #define RCC_CFGR2_PREDIV_DIV14 (0x0000000DU) /*!< PREDIV input clock divided by 14 */
  8416. #define RCC_CFGR2_PREDIV_DIV15 (0x0000000EU) /*!< PREDIV input clock divided by 15 */
  8417. #define RCC_CFGR2_PREDIV_DIV16 (0x0000000FU) /*!< PREDIV input clock divided by 16 */
  8418. /*!< ADCPRE12 configuration */
  8419. #define RCC_CFGR2_ADCPRE12_Pos (4U)
  8420. #define RCC_CFGR2_ADCPRE12_Msk (0x1FU << RCC_CFGR2_ADCPRE12_Pos) /*!< 0x000001F0 */
  8421. #define RCC_CFGR2_ADCPRE12 RCC_CFGR2_ADCPRE12_Msk /*!< ADCPRE12[8:4] bits */
  8422. #define RCC_CFGR2_ADCPRE12_0 (0x01U << RCC_CFGR2_ADCPRE12_Pos) /*!< 0x00000010 */
  8423. #define RCC_CFGR2_ADCPRE12_1 (0x02U << RCC_CFGR2_ADCPRE12_Pos) /*!< 0x00000020 */
  8424. #define RCC_CFGR2_ADCPRE12_2 (0x04U << RCC_CFGR2_ADCPRE12_Pos) /*!< 0x00000040 */
  8425. #define RCC_CFGR2_ADCPRE12_3 (0x08U << RCC_CFGR2_ADCPRE12_Pos) /*!< 0x00000080 */
  8426. #define RCC_CFGR2_ADCPRE12_4 (0x10U << RCC_CFGR2_ADCPRE12_Pos) /*!< 0x00000100 */
  8427. #define RCC_CFGR2_ADCPRE12_NO (0x00000000U) /*!< ADC12 clock disabled, ADC12 can use AHB clock */
  8428. #define RCC_CFGR2_ADCPRE12_DIV1 (0x00000100U) /*!< ADC12 PLL clock divided by 1 */
  8429. #define RCC_CFGR2_ADCPRE12_DIV2 (0x00000110U) /*!< ADC12 PLL clock divided by 2 */
  8430. #define RCC_CFGR2_ADCPRE12_DIV4 (0x00000120U) /*!< ADC12 PLL clock divided by 4 */
  8431. #define RCC_CFGR2_ADCPRE12_DIV6 (0x00000130U) /*!< ADC12 PLL clock divided by 6 */
  8432. #define RCC_CFGR2_ADCPRE12_DIV8 (0x00000140U) /*!< ADC12 PLL clock divided by 8 */
  8433. #define RCC_CFGR2_ADCPRE12_DIV10 (0x00000150U) /*!< ADC12 PLL clock divided by 10 */
  8434. #define RCC_CFGR2_ADCPRE12_DIV12 (0x00000160U) /*!< ADC12 PLL clock divided by 12 */
  8435. #define RCC_CFGR2_ADCPRE12_DIV16 (0x00000170U) /*!< ADC12 PLL clock divided by 16 */
  8436. #define RCC_CFGR2_ADCPRE12_DIV32 (0x00000180U) /*!< ADC12 PLL clock divided by 32 */
  8437. #define RCC_CFGR2_ADCPRE12_DIV64 (0x00000190U) /*!< ADC12 PLL clock divided by 64 */
  8438. #define RCC_CFGR2_ADCPRE12_DIV128 (0x000001A0U) /*!< ADC12 PLL clock divided by 128 */
  8439. #define RCC_CFGR2_ADCPRE12_DIV256 (0x000001B0U) /*!< ADC12 PLL clock divided by 256 */
  8440. /******************* Bit definition for RCC_CFGR3 register ******************/
  8441. #define RCC_CFGR3_USART1SW_Pos (0U)
  8442. #define RCC_CFGR3_USART1SW_Msk (0x3U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000003 */
  8443. #define RCC_CFGR3_USART1SW RCC_CFGR3_USART1SW_Msk /*!< USART1SW[1:0] bits */
  8444. #define RCC_CFGR3_USART1SW_0 (0x1U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000001 */
  8445. #define RCC_CFGR3_USART1SW_1 (0x2U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000002 */
  8446. #define RCC_CFGR3_USART1SW_PCLK1 (0x00000000U) /*!< PCLK1 clock used as USART1 clock source */
  8447. #define RCC_CFGR3_USART1SW_SYSCLK (0x00000001U) /*!< System clock selected as USART1 clock source */
  8448. #define RCC_CFGR3_USART1SW_LSE (0x00000002U) /*!< LSE oscillator clock used as USART1 clock source */
  8449. #define RCC_CFGR3_USART1SW_HSI (0x00000003U) /*!< HSI oscillator clock used as USART1 clock source */
  8450. /* Legacy defines */
  8451. #define RCC_CFGR3_USART1SW_PCLK RCC_CFGR3_USART1SW_PCLK1
  8452. #define RCC_CFGR3_I2CSW_Pos (4U)
  8453. #define RCC_CFGR3_I2CSW_Msk (0x1U << RCC_CFGR3_I2CSW_Pos) /*!< 0x00000010 */
  8454. #define RCC_CFGR3_I2CSW RCC_CFGR3_I2CSW_Msk /*!< I2CSW bits */
  8455. #define RCC_CFGR3_I2C1SW_Pos (4U)
  8456. #define RCC_CFGR3_I2C1SW_Msk (0x1U << RCC_CFGR3_I2C1SW_Pos) /*!< 0x00000010 */
  8457. #define RCC_CFGR3_I2C1SW RCC_CFGR3_I2C1SW_Msk /*!< I2C1SW bits */
  8458. #define RCC_CFGR3_I2C1SW_HSI (0x00000000U) /*!< HSI oscillator clock used as I2C1 clock source */
  8459. #define RCC_CFGR3_I2C1SW_SYSCLK_Pos (4U)
  8460. #define RCC_CFGR3_I2C1SW_SYSCLK_Msk (0x1U << RCC_CFGR3_I2C1SW_SYSCLK_Pos) /*!< 0x00000010 */
  8461. #define RCC_CFGR3_I2C1SW_SYSCLK RCC_CFGR3_I2C1SW_SYSCLK_Msk /*!< System clock selected as I2C1 clock source */
  8462. #define RCC_CFGR3_TIMSW_Pos (8U)
  8463. #define RCC_CFGR3_TIMSW_Msk (0x1U << RCC_CFGR3_TIMSW_Pos) /*!< 0x00000100 */
  8464. #define RCC_CFGR3_TIMSW RCC_CFGR3_TIMSW_Msk /*!< TIMSW bits */
  8465. #define RCC_CFGR3_TIM1SW_Pos (8U)
  8466. #define RCC_CFGR3_TIM1SW_Msk (0x1U << RCC_CFGR3_TIM1SW_Pos) /*!< 0x00000100 */
  8467. #define RCC_CFGR3_TIM1SW RCC_CFGR3_TIM1SW_Msk /*!< TIM1SW bits */
  8468. #define RCC_CFGR3_TIM1SW_PCLK2 (0x00000000U) /*!< PCLK2 used as TIM1 clock source */
  8469. #define RCC_CFGR3_TIM1SW_PLL_Pos (8U)
  8470. #define RCC_CFGR3_TIM1SW_PLL_Msk (0x1U << RCC_CFGR3_TIM1SW_PLL_Pos) /*!< 0x00000100 */
  8471. #define RCC_CFGR3_TIM1SW_PLL RCC_CFGR3_TIM1SW_PLL_Msk /*!< PLL clock used as TIM1 clock source */
  8472. /* Legacy defines */
  8473. #define RCC_CFGR3_TIM1SW_HCLK RCC_CFGR3_TIM1SW_PCLK2
  8474. /******************************************************************************/
  8475. /* */
  8476. /* Real-Time Clock (RTC) */
  8477. /* */
  8478. /******************************************************************************/
  8479. /*
  8480. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  8481. */
  8482. #define RTC_TAMPER1_SUPPORT /*!< TAMPER 1 feature support */
  8483. #define RTC_TAMPER2_SUPPORT /*!< TAMPER 2 feature support */
  8484. #define RTC_BACKUP_SUPPORT /*!< BACKUP register feature support */
  8485. #define RTC_WAKEUP_SUPPORT /*!< WAKEUP feature support */
  8486. /******************** Bits definition for RTC_TR register *******************/
  8487. #define RTC_TR_PM_Pos (22U)
  8488. #define RTC_TR_PM_Msk (0x1U << RTC_TR_PM_Pos) /*!< 0x00400000 */
  8489. #define RTC_TR_PM RTC_TR_PM_Msk
  8490. #define RTC_TR_HT_Pos (20U)
  8491. #define RTC_TR_HT_Msk (0x3U << RTC_TR_HT_Pos) /*!< 0x00300000 */
  8492. #define RTC_TR_HT RTC_TR_HT_Msk
  8493. #define RTC_TR_HT_0 (0x1U << RTC_TR_HT_Pos) /*!< 0x00100000 */
  8494. #define RTC_TR_HT_1 (0x2U << RTC_TR_HT_Pos) /*!< 0x00200000 */
  8495. #define RTC_TR_HU_Pos (16U)
  8496. #define RTC_TR_HU_Msk (0xFU << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  8497. #define RTC_TR_HU RTC_TR_HU_Msk
  8498. #define RTC_TR_HU_0 (0x1U << RTC_TR_HU_Pos) /*!< 0x00010000 */
  8499. #define RTC_TR_HU_1 (0x2U << RTC_TR_HU_Pos) /*!< 0x00020000 */
  8500. #define RTC_TR_HU_2 (0x4U << RTC_TR_HU_Pos) /*!< 0x00040000 */
  8501. #define RTC_TR_HU_3 (0x8U << RTC_TR_HU_Pos) /*!< 0x00080000 */
  8502. #define RTC_TR_MNT_Pos (12U)
  8503. #define RTC_TR_MNT_Msk (0x7U << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  8504. #define RTC_TR_MNT RTC_TR_MNT_Msk
  8505. #define RTC_TR_MNT_0 (0x1U << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  8506. #define RTC_TR_MNT_1 (0x2U << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  8507. #define RTC_TR_MNT_2 (0x4U << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  8508. #define RTC_TR_MNU_Pos (8U)
  8509. #define RTC_TR_MNU_Msk (0xFU << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  8510. #define RTC_TR_MNU RTC_TR_MNU_Msk
  8511. #define RTC_TR_MNU_0 (0x1U << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  8512. #define RTC_TR_MNU_1 (0x2U << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  8513. #define RTC_TR_MNU_2 (0x4U << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  8514. #define RTC_TR_MNU_3 (0x8U << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  8515. #define RTC_TR_ST_Pos (4U)
  8516. #define RTC_TR_ST_Msk (0x7U << RTC_TR_ST_Pos) /*!< 0x00000070 */
  8517. #define RTC_TR_ST RTC_TR_ST_Msk
  8518. #define RTC_TR_ST_0 (0x1U << RTC_TR_ST_Pos) /*!< 0x00000010 */
  8519. #define RTC_TR_ST_1 (0x2U << RTC_TR_ST_Pos) /*!< 0x00000020 */
  8520. #define RTC_TR_ST_2 (0x4U << RTC_TR_ST_Pos) /*!< 0x00000040 */
  8521. #define RTC_TR_SU_Pos (0U)
  8522. #define RTC_TR_SU_Msk (0xFU << RTC_TR_SU_Pos) /*!< 0x0000000F */
  8523. #define RTC_TR_SU RTC_TR_SU_Msk
  8524. #define RTC_TR_SU_0 (0x1U << RTC_TR_SU_Pos) /*!< 0x00000001 */
  8525. #define RTC_TR_SU_1 (0x2U << RTC_TR_SU_Pos) /*!< 0x00000002 */
  8526. #define RTC_TR_SU_2 (0x4U << RTC_TR_SU_Pos) /*!< 0x00000004 */
  8527. #define RTC_TR_SU_3 (0x8U << RTC_TR_SU_Pos) /*!< 0x00000008 */
  8528. /******************** Bits definition for RTC_DR register *******************/
  8529. #define RTC_DR_YT_Pos (20U)
  8530. #define RTC_DR_YT_Msk (0xFU << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  8531. #define RTC_DR_YT RTC_DR_YT_Msk
  8532. #define RTC_DR_YT_0 (0x1U << RTC_DR_YT_Pos) /*!< 0x00100000 */
  8533. #define RTC_DR_YT_1 (0x2U << RTC_DR_YT_Pos) /*!< 0x00200000 */
  8534. #define RTC_DR_YT_2 (0x4U << RTC_DR_YT_Pos) /*!< 0x00400000 */
  8535. #define RTC_DR_YT_3 (0x8U << RTC_DR_YT_Pos) /*!< 0x00800000 */
  8536. #define RTC_DR_YU_Pos (16U)
  8537. #define RTC_DR_YU_Msk (0xFU << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  8538. #define RTC_DR_YU RTC_DR_YU_Msk
  8539. #define RTC_DR_YU_0 (0x1U << RTC_DR_YU_Pos) /*!< 0x00010000 */
  8540. #define RTC_DR_YU_1 (0x2U << RTC_DR_YU_Pos) /*!< 0x00020000 */
  8541. #define RTC_DR_YU_2 (0x4U << RTC_DR_YU_Pos) /*!< 0x00040000 */
  8542. #define RTC_DR_YU_3 (0x8U << RTC_DR_YU_Pos) /*!< 0x00080000 */
  8543. #define RTC_DR_WDU_Pos (13U)
  8544. #define RTC_DR_WDU_Msk (0x7U << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  8545. #define RTC_DR_WDU RTC_DR_WDU_Msk
  8546. #define RTC_DR_WDU_0 (0x1U << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  8547. #define RTC_DR_WDU_1 (0x2U << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  8548. #define RTC_DR_WDU_2 (0x4U << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  8549. #define RTC_DR_MT_Pos (12U)
  8550. #define RTC_DR_MT_Msk (0x1U << RTC_DR_MT_Pos) /*!< 0x00001000 */
  8551. #define RTC_DR_MT RTC_DR_MT_Msk
  8552. #define RTC_DR_MU_Pos (8U)
  8553. #define RTC_DR_MU_Msk (0xFU << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  8554. #define RTC_DR_MU RTC_DR_MU_Msk
  8555. #define RTC_DR_MU_0 (0x1U << RTC_DR_MU_Pos) /*!< 0x00000100 */
  8556. #define RTC_DR_MU_1 (0x2U << RTC_DR_MU_Pos) /*!< 0x00000200 */
  8557. #define RTC_DR_MU_2 (0x4U << RTC_DR_MU_Pos) /*!< 0x00000400 */
  8558. #define RTC_DR_MU_3 (0x8U << RTC_DR_MU_Pos) /*!< 0x00000800 */
  8559. #define RTC_DR_DT_Pos (4U)
  8560. #define RTC_DR_DT_Msk (0x3U << RTC_DR_DT_Pos) /*!< 0x00000030 */
  8561. #define RTC_DR_DT RTC_DR_DT_Msk
  8562. #define RTC_DR_DT_0 (0x1U << RTC_DR_DT_Pos) /*!< 0x00000010 */
  8563. #define RTC_DR_DT_1 (0x2U << RTC_DR_DT_Pos) /*!< 0x00000020 */
  8564. #define RTC_DR_DU_Pos (0U)
  8565. #define RTC_DR_DU_Msk (0xFU << RTC_DR_DU_Pos) /*!< 0x0000000F */
  8566. #define RTC_DR_DU RTC_DR_DU_Msk
  8567. #define RTC_DR_DU_0 (0x1U << RTC_DR_DU_Pos) /*!< 0x00000001 */
  8568. #define RTC_DR_DU_1 (0x2U << RTC_DR_DU_Pos) /*!< 0x00000002 */
  8569. #define RTC_DR_DU_2 (0x4U << RTC_DR_DU_Pos) /*!< 0x00000004 */
  8570. #define RTC_DR_DU_3 (0x8U << RTC_DR_DU_Pos) /*!< 0x00000008 */
  8571. /******************** Bits definition for RTC_CR register *******************/
  8572. #define RTC_CR_COE_Pos (23U)
  8573. #define RTC_CR_COE_Msk (0x1U << RTC_CR_COE_Pos) /*!< 0x00800000 */
  8574. #define RTC_CR_COE RTC_CR_COE_Msk
  8575. #define RTC_CR_OSEL_Pos (21U)
  8576. #define RTC_CR_OSEL_Msk (0x3U << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  8577. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  8578. #define RTC_CR_OSEL_0 (0x1U << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  8579. #define RTC_CR_OSEL_1 (0x2U << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  8580. #define RTC_CR_POL_Pos (20U)
  8581. #define RTC_CR_POL_Msk (0x1U << RTC_CR_POL_Pos) /*!< 0x00100000 */
  8582. #define RTC_CR_POL RTC_CR_POL_Msk
  8583. #define RTC_CR_COSEL_Pos (19U)
  8584. #define RTC_CR_COSEL_Msk (0x1U << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  8585. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  8586. #define RTC_CR_BKP_Pos (18U)
  8587. #define RTC_CR_BKP_Msk (0x1U << RTC_CR_BKP_Pos) /*!< 0x00040000 */
  8588. #define RTC_CR_BKP RTC_CR_BKP_Msk
  8589. #define RTC_CR_SUB1H_Pos (17U)
  8590. #define RTC_CR_SUB1H_Msk (0x1U << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  8591. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  8592. #define RTC_CR_ADD1H_Pos (16U)
  8593. #define RTC_CR_ADD1H_Msk (0x1U << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  8594. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  8595. #define RTC_CR_TSIE_Pos (15U)
  8596. #define RTC_CR_TSIE_Msk (0x1U << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  8597. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  8598. #define RTC_CR_WUTIE_Pos (14U)
  8599. #define RTC_CR_WUTIE_Msk (0x1U << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  8600. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  8601. #define RTC_CR_ALRBIE_Pos (13U)
  8602. #define RTC_CR_ALRBIE_Msk (0x1U << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */
  8603. #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk
  8604. #define RTC_CR_ALRAIE_Pos (12U)
  8605. #define RTC_CR_ALRAIE_Msk (0x1U << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  8606. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  8607. #define RTC_CR_TSE_Pos (11U)
  8608. #define RTC_CR_TSE_Msk (0x1U << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  8609. #define RTC_CR_TSE RTC_CR_TSE_Msk
  8610. #define RTC_CR_WUTE_Pos (10U)
  8611. #define RTC_CR_WUTE_Msk (0x1U << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  8612. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  8613. #define RTC_CR_ALRBE_Pos (9U)
  8614. #define RTC_CR_ALRBE_Msk (0x1U << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */
  8615. #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk
  8616. #define RTC_CR_ALRAE_Pos (8U)
  8617. #define RTC_CR_ALRAE_Msk (0x1U << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  8618. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  8619. #define RTC_CR_FMT_Pos (6U)
  8620. #define RTC_CR_FMT_Msk (0x1U << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  8621. #define RTC_CR_FMT RTC_CR_FMT_Msk
  8622. #define RTC_CR_BYPSHAD_Pos (5U)
  8623. #define RTC_CR_BYPSHAD_Msk (0x1U << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  8624. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  8625. #define RTC_CR_REFCKON_Pos (4U)
  8626. #define RTC_CR_REFCKON_Msk (0x1U << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  8627. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  8628. #define RTC_CR_TSEDGE_Pos (3U)
  8629. #define RTC_CR_TSEDGE_Msk (0x1U << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  8630. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  8631. #define RTC_CR_WUCKSEL_Pos (0U)
  8632. #define RTC_CR_WUCKSEL_Msk (0x7U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  8633. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  8634. #define RTC_CR_WUCKSEL_0 (0x1U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  8635. #define RTC_CR_WUCKSEL_1 (0x2U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  8636. #define RTC_CR_WUCKSEL_2 (0x4U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  8637. /* Legacy defines */
  8638. #define RTC_CR_BCK_Pos RTC_CR_BKP_Pos
  8639. #define RTC_CR_BCK_Msk RTC_CR_BKP_Msk
  8640. #define RTC_CR_BCK RTC_CR_BKP
  8641. /******************** Bits definition for RTC_ISR register ******************/
  8642. #define RTC_ISR_RECALPF_Pos (16U)
  8643. #define RTC_ISR_RECALPF_Msk (0x1U << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */
  8644. #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk
  8645. #define RTC_ISR_TAMP2F_Pos (14U)
  8646. #define RTC_ISR_TAMP2F_Msk (0x1U << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */
  8647. #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk
  8648. #define RTC_ISR_TAMP1F_Pos (13U)
  8649. #define RTC_ISR_TAMP1F_Msk (0x1U << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */
  8650. #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk
  8651. #define RTC_ISR_TSOVF_Pos (12U)
  8652. #define RTC_ISR_TSOVF_Msk (0x1U << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */
  8653. #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk
  8654. #define RTC_ISR_TSF_Pos (11U)
  8655. #define RTC_ISR_TSF_Msk (0x1U << RTC_ISR_TSF_Pos) /*!< 0x00000800 */
  8656. #define RTC_ISR_TSF RTC_ISR_TSF_Msk
  8657. #define RTC_ISR_WUTF_Pos (10U)
  8658. #define RTC_ISR_WUTF_Msk (0x1U << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */
  8659. #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk
  8660. #define RTC_ISR_ALRBF_Pos (9U)
  8661. #define RTC_ISR_ALRBF_Msk (0x1U << RTC_ISR_ALRBF_Pos) /*!< 0x00000200 */
  8662. #define RTC_ISR_ALRBF RTC_ISR_ALRBF_Msk
  8663. #define RTC_ISR_ALRAF_Pos (8U)
  8664. #define RTC_ISR_ALRAF_Msk (0x1U << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */
  8665. #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk
  8666. #define RTC_ISR_INIT_Pos (7U)
  8667. #define RTC_ISR_INIT_Msk (0x1U << RTC_ISR_INIT_Pos) /*!< 0x00000080 */
  8668. #define RTC_ISR_INIT RTC_ISR_INIT_Msk
  8669. #define RTC_ISR_INITF_Pos (6U)
  8670. #define RTC_ISR_INITF_Msk (0x1U << RTC_ISR_INITF_Pos) /*!< 0x00000040 */
  8671. #define RTC_ISR_INITF RTC_ISR_INITF_Msk
  8672. #define RTC_ISR_RSF_Pos (5U)
  8673. #define RTC_ISR_RSF_Msk (0x1U << RTC_ISR_RSF_Pos) /*!< 0x00000020 */
  8674. #define RTC_ISR_RSF RTC_ISR_RSF_Msk
  8675. #define RTC_ISR_INITS_Pos (4U)
  8676. #define RTC_ISR_INITS_Msk (0x1U << RTC_ISR_INITS_Pos) /*!< 0x00000010 */
  8677. #define RTC_ISR_INITS RTC_ISR_INITS_Msk
  8678. #define RTC_ISR_SHPF_Pos (3U)
  8679. #define RTC_ISR_SHPF_Msk (0x1U << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */
  8680. #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk
  8681. #define RTC_ISR_WUTWF_Pos (2U)
  8682. #define RTC_ISR_WUTWF_Msk (0x1U << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */
  8683. #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk
  8684. #define RTC_ISR_ALRBWF_Pos (1U)
  8685. #define RTC_ISR_ALRBWF_Msk (0x1U << RTC_ISR_ALRBWF_Pos) /*!< 0x00000002 */
  8686. #define RTC_ISR_ALRBWF RTC_ISR_ALRBWF_Msk
  8687. #define RTC_ISR_ALRAWF_Pos (0U)
  8688. #define RTC_ISR_ALRAWF_Msk (0x1U << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */
  8689. #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk
  8690. /******************** Bits definition for RTC_PRER register *****************/
  8691. #define RTC_PRER_PREDIV_A_Pos (16U)
  8692. #define RTC_PRER_PREDIV_A_Msk (0x7FU << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  8693. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  8694. #define RTC_PRER_PREDIV_S_Pos (0U)
  8695. #define RTC_PRER_PREDIV_S_Msk (0x7FFFU << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  8696. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  8697. /******************** Bits definition for RTC_WUTR register *****************/
  8698. #define RTC_WUTR_WUT_Pos (0U)
  8699. #define RTC_WUTR_WUT_Msk (0xFFFFU << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  8700. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  8701. /******************** Bits definition for RTC_ALRMAR register ***************/
  8702. #define RTC_ALRMAR_MSK4_Pos (31U)
  8703. #define RTC_ALRMAR_MSK4_Msk (0x1U << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  8704. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  8705. #define RTC_ALRMAR_WDSEL_Pos (30U)
  8706. #define RTC_ALRMAR_WDSEL_Msk (0x1U << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  8707. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  8708. #define RTC_ALRMAR_DT_Pos (28U)
  8709. #define RTC_ALRMAR_DT_Msk (0x3U << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  8710. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  8711. #define RTC_ALRMAR_DT_0 (0x1U << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  8712. #define RTC_ALRMAR_DT_1 (0x2U << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  8713. #define RTC_ALRMAR_DU_Pos (24U)
  8714. #define RTC_ALRMAR_DU_Msk (0xFU << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  8715. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  8716. #define RTC_ALRMAR_DU_0 (0x1U << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  8717. #define RTC_ALRMAR_DU_1 (0x2U << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  8718. #define RTC_ALRMAR_DU_2 (0x4U << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  8719. #define RTC_ALRMAR_DU_3 (0x8U << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  8720. #define RTC_ALRMAR_MSK3_Pos (23U)
  8721. #define RTC_ALRMAR_MSK3_Msk (0x1U << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  8722. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  8723. #define RTC_ALRMAR_PM_Pos (22U)
  8724. #define RTC_ALRMAR_PM_Msk (0x1U << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  8725. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  8726. #define RTC_ALRMAR_HT_Pos (20U)
  8727. #define RTC_ALRMAR_HT_Msk (0x3U << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  8728. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  8729. #define RTC_ALRMAR_HT_0 (0x1U << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  8730. #define RTC_ALRMAR_HT_1 (0x2U << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  8731. #define RTC_ALRMAR_HU_Pos (16U)
  8732. #define RTC_ALRMAR_HU_Msk (0xFU << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  8733. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  8734. #define RTC_ALRMAR_HU_0 (0x1U << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  8735. #define RTC_ALRMAR_HU_1 (0x2U << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  8736. #define RTC_ALRMAR_HU_2 (0x4U << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  8737. #define RTC_ALRMAR_HU_3 (0x8U << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  8738. #define RTC_ALRMAR_MSK2_Pos (15U)
  8739. #define RTC_ALRMAR_MSK2_Msk (0x1U << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  8740. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  8741. #define RTC_ALRMAR_MNT_Pos (12U)
  8742. #define RTC_ALRMAR_MNT_Msk (0x7U << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  8743. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  8744. #define RTC_ALRMAR_MNT_0 (0x1U << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  8745. #define RTC_ALRMAR_MNT_1 (0x2U << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  8746. #define RTC_ALRMAR_MNT_2 (0x4U << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  8747. #define RTC_ALRMAR_MNU_Pos (8U)
  8748. #define RTC_ALRMAR_MNU_Msk (0xFU << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  8749. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  8750. #define RTC_ALRMAR_MNU_0 (0x1U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  8751. #define RTC_ALRMAR_MNU_1 (0x2U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  8752. #define RTC_ALRMAR_MNU_2 (0x4U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  8753. #define RTC_ALRMAR_MNU_3 (0x8U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  8754. #define RTC_ALRMAR_MSK1_Pos (7U)
  8755. #define RTC_ALRMAR_MSK1_Msk (0x1U << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  8756. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  8757. #define RTC_ALRMAR_ST_Pos (4U)
  8758. #define RTC_ALRMAR_ST_Msk (0x7U << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  8759. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  8760. #define RTC_ALRMAR_ST_0 (0x1U << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  8761. #define RTC_ALRMAR_ST_1 (0x2U << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  8762. #define RTC_ALRMAR_ST_2 (0x4U << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  8763. #define RTC_ALRMAR_SU_Pos (0U)
  8764. #define RTC_ALRMAR_SU_Msk (0xFU << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  8765. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  8766. #define RTC_ALRMAR_SU_0 (0x1U << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  8767. #define RTC_ALRMAR_SU_1 (0x2U << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  8768. #define RTC_ALRMAR_SU_2 (0x4U << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  8769. #define RTC_ALRMAR_SU_3 (0x8U << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  8770. /******************** Bits definition for RTC_ALRMBR register ***************/
  8771. #define RTC_ALRMBR_MSK4_Pos (31U)
  8772. #define RTC_ALRMBR_MSK4_Msk (0x1U << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */
  8773. #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk
  8774. #define RTC_ALRMBR_WDSEL_Pos (30U)
  8775. #define RTC_ALRMBR_WDSEL_Msk (0x1U << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */
  8776. #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk
  8777. #define RTC_ALRMBR_DT_Pos (28U)
  8778. #define RTC_ALRMBR_DT_Msk (0x3U << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */
  8779. #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk
  8780. #define RTC_ALRMBR_DT_0 (0x1U << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */
  8781. #define RTC_ALRMBR_DT_1 (0x2U << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */
  8782. #define RTC_ALRMBR_DU_Pos (24U)
  8783. #define RTC_ALRMBR_DU_Msk (0xFU << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */
  8784. #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk
  8785. #define RTC_ALRMBR_DU_0 (0x1U << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */
  8786. #define RTC_ALRMBR_DU_1 (0x2U << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */
  8787. #define RTC_ALRMBR_DU_2 (0x4U << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */
  8788. #define RTC_ALRMBR_DU_3 (0x8U << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */
  8789. #define RTC_ALRMBR_MSK3_Pos (23U)
  8790. #define RTC_ALRMBR_MSK3_Msk (0x1U << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */
  8791. #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk
  8792. #define RTC_ALRMBR_PM_Pos (22U)
  8793. #define RTC_ALRMBR_PM_Msk (0x1U << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */
  8794. #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk
  8795. #define RTC_ALRMBR_HT_Pos (20U)
  8796. #define RTC_ALRMBR_HT_Msk (0x3U << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */
  8797. #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk
  8798. #define RTC_ALRMBR_HT_0 (0x1U << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */
  8799. #define RTC_ALRMBR_HT_1 (0x2U << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */
  8800. #define RTC_ALRMBR_HU_Pos (16U)
  8801. #define RTC_ALRMBR_HU_Msk (0xFU << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */
  8802. #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk
  8803. #define RTC_ALRMBR_HU_0 (0x1U << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */
  8804. #define RTC_ALRMBR_HU_1 (0x2U << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */
  8805. #define RTC_ALRMBR_HU_2 (0x4U << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */
  8806. #define RTC_ALRMBR_HU_3 (0x8U << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */
  8807. #define RTC_ALRMBR_MSK2_Pos (15U)
  8808. #define RTC_ALRMBR_MSK2_Msk (0x1U << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */
  8809. #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk
  8810. #define RTC_ALRMBR_MNT_Pos (12U)
  8811. #define RTC_ALRMBR_MNT_Msk (0x7U << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */
  8812. #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk
  8813. #define RTC_ALRMBR_MNT_0 (0x1U << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */
  8814. #define RTC_ALRMBR_MNT_1 (0x2U << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */
  8815. #define RTC_ALRMBR_MNT_2 (0x4U << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */
  8816. #define RTC_ALRMBR_MNU_Pos (8U)
  8817. #define RTC_ALRMBR_MNU_Msk (0xFU << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */
  8818. #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk
  8819. #define RTC_ALRMBR_MNU_0 (0x1U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */
  8820. #define RTC_ALRMBR_MNU_1 (0x2U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */
  8821. #define RTC_ALRMBR_MNU_2 (0x4U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */
  8822. #define RTC_ALRMBR_MNU_3 (0x8U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */
  8823. #define RTC_ALRMBR_MSK1_Pos (7U)
  8824. #define RTC_ALRMBR_MSK1_Msk (0x1U << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */
  8825. #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk
  8826. #define RTC_ALRMBR_ST_Pos (4U)
  8827. #define RTC_ALRMBR_ST_Msk (0x7U << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */
  8828. #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk
  8829. #define RTC_ALRMBR_ST_0 (0x1U << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */
  8830. #define RTC_ALRMBR_ST_1 (0x2U << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */
  8831. #define RTC_ALRMBR_ST_2 (0x4U << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */
  8832. #define RTC_ALRMBR_SU_Pos (0U)
  8833. #define RTC_ALRMBR_SU_Msk (0xFU << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */
  8834. #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk
  8835. #define RTC_ALRMBR_SU_0 (0x1U << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */
  8836. #define RTC_ALRMBR_SU_1 (0x2U << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */
  8837. #define RTC_ALRMBR_SU_2 (0x4U << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */
  8838. #define RTC_ALRMBR_SU_3 (0x8U << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */
  8839. /******************** Bits definition for RTC_WPR register ******************/
  8840. #define RTC_WPR_KEY_Pos (0U)
  8841. #define RTC_WPR_KEY_Msk (0xFFU << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  8842. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  8843. /******************** Bits definition for RTC_SSR register ******************/
  8844. #define RTC_SSR_SS_Pos (0U)
  8845. #define RTC_SSR_SS_Msk (0xFFFFU << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  8846. #define RTC_SSR_SS RTC_SSR_SS_Msk
  8847. /******************** Bits definition for RTC_SHIFTR register ***************/
  8848. #define RTC_SHIFTR_SUBFS_Pos (0U)
  8849. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFU << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  8850. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  8851. #define RTC_SHIFTR_ADD1S_Pos (31U)
  8852. #define RTC_SHIFTR_ADD1S_Msk (0x1U << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  8853. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  8854. /******************** Bits definition for RTC_TSTR register *****************/
  8855. #define RTC_TSTR_PM_Pos (22U)
  8856. #define RTC_TSTR_PM_Msk (0x1U << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  8857. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  8858. #define RTC_TSTR_HT_Pos (20U)
  8859. #define RTC_TSTR_HT_Msk (0x3U << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  8860. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  8861. #define RTC_TSTR_HT_0 (0x1U << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  8862. #define RTC_TSTR_HT_1 (0x2U << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  8863. #define RTC_TSTR_HU_Pos (16U)
  8864. #define RTC_TSTR_HU_Msk (0xFU << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  8865. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  8866. #define RTC_TSTR_HU_0 (0x1U << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  8867. #define RTC_TSTR_HU_1 (0x2U << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  8868. #define RTC_TSTR_HU_2 (0x4U << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  8869. #define RTC_TSTR_HU_3 (0x8U << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  8870. #define RTC_TSTR_MNT_Pos (12U)
  8871. #define RTC_TSTR_MNT_Msk (0x7U << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  8872. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  8873. #define RTC_TSTR_MNT_0 (0x1U << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  8874. #define RTC_TSTR_MNT_1 (0x2U << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  8875. #define RTC_TSTR_MNT_2 (0x4U << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  8876. #define RTC_TSTR_MNU_Pos (8U)
  8877. #define RTC_TSTR_MNU_Msk (0xFU << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  8878. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  8879. #define RTC_TSTR_MNU_0 (0x1U << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  8880. #define RTC_TSTR_MNU_1 (0x2U << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  8881. #define RTC_TSTR_MNU_2 (0x4U << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  8882. #define RTC_TSTR_MNU_3 (0x8U << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  8883. #define RTC_TSTR_ST_Pos (4U)
  8884. #define RTC_TSTR_ST_Msk (0x7U << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  8885. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  8886. #define RTC_TSTR_ST_0 (0x1U << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  8887. #define RTC_TSTR_ST_1 (0x2U << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  8888. #define RTC_TSTR_ST_2 (0x4U << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  8889. #define RTC_TSTR_SU_Pos (0U)
  8890. #define RTC_TSTR_SU_Msk (0xFU << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  8891. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  8892. #define RTC_TSTR_SU_0 (0x1U << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  8893. #define RTC_TSTR_SU_1 (0x2U << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  8894. #define RTC_TSTR_SU_2 (0x4U << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  8895. #define RTC_TSTR_SU_3 (0x8U << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  8896. /******************** Bits definition for RTC_TSDR register *****************/
  8897. #define RTC_TSDR_WDU_Pos (13U)
  8898. #define RTC_TSDR_WDU_Msk (0x7U << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  8899. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  8900. #define RTC_TSDR_WDU_0 (0x1U << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  8901. #define RTC_TSDR_WDU_1 (0x2U << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  8902. #define RTC_TSDR_WDU_2 (0x4U << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  8903. #define RTC_TSDR_MT_Pos (12U)
  8904. #define RTC_TSDR_MT_Msk (0x1U << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  8905. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  8906. #define RTC_TSDR_MU_Pos (8U)
  8907. #define RTC_TSDR_MU_Msk (0xFU << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  8908. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  8909. #define RTC_TSDR_MU_0 (0x1U << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  8910. #define RTC_TSDR_MU_1 (0x2U << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  8911. #define RTC_TSDR_MU_2 (0x4U << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  8912. #define RTC_TSDR_MU_3 (0x8U << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  8913. #define RTC_TSDR_DT_Pos (4U)
  8914. #define RTC_TSDR_DT_Msk (0x3U << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  8915. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  8916. #define RTC_TSDR_DT_0 (0x1U << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  8917. #define RTC_TSDR_DT_1 (0x2U << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  8918. #define RTC_TSDR_DU_Pos (0U)
  8919. #define RTC_TSDR_DU_Msk (0xFU << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  8920. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  8921. #define RTC_TSDR_DU_0 (0x1U << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  8922. #define RTC_TSDR_DU_1 (0x2U << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  8923. #define RTC_TSDR_DU_2 (0x4U << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  8924. #define RTC_TSDR_DU_3 (0x8U << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  8925. /******************** Bits definition for RTC_TSSSR register ****************/
  8926. #define RTC_TSSSR_SS_Pos (0U)
  8927. #define RTC_TSSSR_SS_Msk (0xFFFFU << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  8928. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  8929. /******************** Bits definition for RTC_CAL register *****************/
  8930. #define RTC_CALR_CALP_Pos (15U)
  8931. #define RTC_CALR_CALP_Msk (0x1U << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  8932. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  8933. #define RTC_CALR_CALW8_Pos (14U)
  8934. #define RTC_CALR_CALW8_Msk (0x1U << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  8935. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  8936. #define RTC_CALR_CALW16_Pos (13U)
  8937. #define RTC_CALR_CALW16_Msk (0x1U << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  8938. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  8939. #define RTC_CALR_CALM_Pos (0U)
  8940. #define RTC_CALR_CALM_Msk (0x1FFU << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  8941. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  8942. #define RTC_CALR_CALM_0 (0x001U << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  8943. #define RTC_CALR_CALM_1 (0x002U << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  8944. #define RTC_CALR_CALM_2 (0x004U << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  8945. #define RTC_CALR_CALM_3 (0x008U << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  8946. #define RTC_CALR_CALM_4 (0x010U << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  8947. #define RTC_CALR_CALM_5 (0x020U << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  8948. #define RTC_CALR_CALM_6 (0x040U << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  8949. #define RTC_CALR_CALM_7 (0x080U << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  8950. #define RTC_CALR_CALM_8 (0x100U << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  8951. /******************** Bits definition for RTC_TAFCR register ****************/
  8952. #define RTC_TAFCR_PC15MODE_Pos (23U)
  8953. #define RTC_TAFCR_PC15MODE_Msk (0x1U << RTC_TAFCR_PC15MODE_Pos) /*!< 0x00800000 */
  8954. #define RTC_TAFCR_PC15MODE RTC_TAFCR_PC15MODE_Msk
  8955. #define RTC_TAFCR_PC15VALUE_Pos (22U)
  8956. #define RTC_TAFCR_PC15VALUE_Msk (0x1U << RTC_TAFCR_PC15VALUE_Pos) /*!< 0x00400000 */
  8957. #define RTC_TAFCR_PC15VALUE RTC_TAFCR_PC15VALUE_Msk
  8958. #define RTC_TAFCR_PC14MODE_Pos (21U)
  8959. #define RTC_TAFCR_PC14MODE_Msk (0x1U << RTC_TAFCR_PC14MODE_Pos) /*!< 0x00200000 */
  8960. #define RTC_TAFCR_PC14MODE RTC_TAFCR_PC14MODE_Msk
  8961. #define RTC_TAFCR_PC14VALUE_Pos (20U)
  8962. #define RTC_TAFCR_PC14VALUE_Msk (0x1U << RTC_TAFCR_PC14VALUE_Pos) /*!< 0x00100000 */
  8963. #define RTC_TAFCR_PC14VALUE RTC_TAFCR_PC14VALUE_Msk
  8964. #define RTC_TAFCR_PC13MODE_Pos (19U)
  8965. #define RTC_TAFCR_PC13MODE_Msk (0x1U << RTC_TAFCR_PC13MODE_Pos) /*!< 0x00080000 */
  8966. #define RTC_TAFCR_PC13MODE RTC_TAFCR_PC13MODE_Msk
  8967. #define RTC_TAFCR_PC13VALUE_Pos (18U)
  8968. #define RTC_TAFCR_PC13VALUE_Msk (0x1U << RTC_TAFCR_PC13VALUE_Pos) /*!< 0x00040000 */
  8969. #define RTC_TAFCR_PC13VALUE RTC_TAFCR_PC13VALUE_Msk
  8970. #define RTC_TAFCR_TAMPPUDIS_Pos (15U)
  8971. #define RTC_TAFCR_TAMPPUDIS_Msk (0x1U << RTC_TAFCR_TAMPPUDIS_Pos) /*!< 0x00008000 */
  8972. #define RTC_TAFCR_TAMPPUDIS RTC_TAFCR_TAMPPUDIS_Msk
  8973. #define RTC_TAFCR_TAMPPRCH_Pos (13U)
  8974. #define RTC_TAFCR_TAMPPRCH_Msk (0x3U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00006000 */
  8975. #define RTC_TAFCR_TAMPPRCH RTC_TAFCR_TAMPPRCH_Msk
  8976. #define RTC_TAFCR_TAMPPRCH_0 (0x1U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00002000 */
  8977. #define RTC_TAFCR_TAMPPRCH_1 (0x2U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00004000 */
  8978. #define RTC_TAFCR_TAMPFLT_Pos (11U)
  8979. #define RTC_TAFCR_TAMPFLT_Msk (0x3U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001800 */
  8980. #define RTC_TAFCR_TAMPFLT RTC_TAFCR_TAMPFLT_Msk
  8981. #define RTC_TAFCR_TAMPFLT_0 (0x1U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00000800 */
  8982. #define RTC_TAFCR_TAMPFLT_1 (0x2U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001000 */
  8983. #define RTC_TAFCR_TAMPFREQ_Pos (8U)
  8984. #define RTC_TAFCR_TAMPFREQ_Msk (0x7U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000700 */
  8985. #define RTC_TAFCR_TAMPFREQ RTC_TAFCR_TAMPFREQ_Msk
  8986. #define RTC_TAFCR_TAMPFREQ_0 (0x1U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000100 */
  8987. #define RTC_TAFCR_TAMPFREQ_1 (0x2U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000200 */
  8988. #define RTC_TAFCR_TAMPFREQ_2 (0x4U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000400 */
  8989. #define RTC_TAFCR_TAMPTS_Pos (7U)
  8990. #define RTC_TAFCR_TAMPTS_Msk (0x1U << RTC_TAFCR_TAMPTS_Pos) /*!< 0x00000080 */
  8991. #define RTC_TAFCR_TAMPTS RTC_TAFCR_TAMPTS_Msk
  8992. #define RTC_TAFCR_TAMP2TRG_Pos (4U)
  8993. #define RTC_TAFCR_TAMP2TRG_Msk (0x1U << RTC_TAFCR_TAMP2TRG_Pos) /*!< 0x00000010 */
  8994. #define RTC_TAFCR_TAMP2TRG RTC_TAFCR_TAMP2TRG_Msk
  8995. #define RTC_TAFCR_TAMP2E_Pos (3U)
  8996. #define RTC_TAFCR_TAMP2E_Msk (0x1U << RTC_TAFCR_TAMP2E_Pos) /*!< 0x00000008 */
  8997. #define RTC_TAFCR_TAMP2E RTC_TAFCR_TAMP2E_Msk
  8998. #define RTC_TAFCR_TAMPIE_Pos (2U)
  8999. #define RTC_TAFCR_TAMPIE_Msk (0x1U << RTC_TAFCR_TAMPIE_Pos) /*!< 0x00000004 */
  9000. #define RTC_TAFCR_TAMPIE RTC_TAFCR_TAMPIE_Msk
  9001. #define RTC_TAFCR_TAMP1TRG_Pos (1U)
  9002. #define RTC_TAFCR_TAMP1TRG_Msk (0x1U << RTC_TAFCR_TAMP1TRG_Pos) /*!< 0x00000002 */
  9003. #define RTC_TAFCR_TAMP1TRG RTC_TAFCR_TAMP1TRG_Msk
  9004. #define RTC_TAFCR_TAMP1E_Pos (0U)
  9005. #define RTC_TAFCR_TAMP1E_Msk (0x1U << RTC_TAFCR_TAMP1E_Pos) /*!< 0x00000001 */
  9006. #define RTC_TAFCR_TAMP1E RTC_TAFCR_TAMP1E_Msk
  9007. /* Reference defines */
  9008. #define RTC_TAFCR_ALARMOUTTYPE RTC_TAFCR_PC13VALUE
  9009. /******************** Bits definition for RTC_ALRMASSR register *************/
  9010. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  9011. #define RTC_ALRMASSR_MASKSS_Msk (0xFU << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  9012. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  9013. #define RTC_ALRMASSR_MASKSS_0 (0x1U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  9014. #define RTC_ALRMASSR_MASKSS_1 (0x2U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  9015. #define RTC_ALRMASSR_MASKSS_2 (0x4U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  9016. #define RTC_ALRMASSR_MASKSS_3 (0x8U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  9017. #define RTC_ALRMASSR_SS_Pos (0U)
  9018. #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  9019. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  9020. /******************** Bits definition for RTC_ALRMBSSR register *************/
  9021. #define RTC_ALRMBSSR_MASKSS_Pos (24U)
  9022. #define RTC_ALRMBSSR_MASKSS_Msk (0xFU << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */
  9023. #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk
  9024. #define RTC_ALRMBSSR_MASKSS_0 (0x1U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */
  9025. #define RTC_ALRMBSSR_MASKSS_1 (0x2U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */
  9026. #define RTC_ALRMBSSR_MASKSS_2 (0x4U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */
  9027. #define RTC_ALRMBSSR_MASKSS_3 (0x8U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */
  9028. #define RTC_ALRMBSSR_SS_Pos (0U)
  9029. #define RTC_ALRMBSSR_SS_Msk (0x7FFFU << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */
  9030. #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk
  9031. /******************** Bits definition for RTC_BKP0R register ****************/
  9032. #define RTC_BKP0R_Pos (0U)
  9033. #define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  9034. #define RTC_BKP0R RTC_BKP0R_Msk
  9035. /******************** Bits definition for RTC_BKP1R register ****************/
  9036. #define RTC_BKP1R_Pos (0U)
  9037. #define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  9038. #define RTC_BKP1R RTC_BKP1R_Msk
  9039. /******************** Bits definition for RTC_BKP2R register ****************/
  9040. #define RTC_BKP2R_Pos (0U)
  9041. #define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  9042. #define RTC_BKP2R RTC_BKP2R_Msk
  9043. /******************** Bits definition for RTC_BKP3R register ****************/
  9044. #define RTC_BKP3R_Pos (0U)
  9045. #define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  9046. #define RTC_BKP3R RTC_BKP3R_Msk
  9047. /******************** Bits definition for RTC_BKP4R register ****************/
  9048. #define RTC_BKP4R_Pos (0U)
  9049. #define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  9050. #define RTC_BKP4R RTC_BKP4R_Msk
  9051. /******************** Number of backup registers ******************************/
  9052. #define RTC_BKP_NUMBER 5
  9053. /******************************************************************************/
  9054. /* */
  9055. /* Serial Peripheral Interface (SPI) */
  9056. /* */
  9057. /******************************************************************************/
  9058. /*
  9059. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  9060. */
  9061. /* Note: No specific macro feature on this device */
  9062. /******************* Bit definition for SPI_CR1 register ********************/
  9063. #define SPI_CR1_CPHA_Pos (0U)
  9064. #define SPI_CR1_CPHA_Msk (0x1U << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */
  9065. #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!< Clock Phase */
  9066. #define SPI_CR1_CPOL_Pos (1U)
  9067. #define SPI_CR1_CPOL_Msk (0x1U << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */
  9068. #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!< Clock Polarity */
  9069. #define SPI_CR1_MSTR_Pos (2U)
  9070. #define SPI_CR1_MSTR_Msk (0x1U << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */
  9071. #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!< Master Selection */
  9072. #define SPI_CR1_BR_Pos (3U)
  9073. #define SPI_CR1_BR_Msk (0x7U << SPI_CR1_BR_Pos) /*!< 0x00000038 */
  9074. #define SPI_CR1_BR SPI_CR1_BR_Msk /*!< BR[2:0] bits (Baud Rate Control) */
  9075. #define SPI_CR1_BR_0 (0x1U << SPI_CR1_BR_Pos) /*!< 0x00000008 */
  9076. #define SPI_CR1_BR_1 (0x2U << SPI_CR1_BR_Pos) /*!< 0x00000010 */
  9077. #define SPI_CR1_BR_2 (0x4U << SPI_CR1_BR_Pos) /*!< 0x00000020 */
  9078. #define SPI_CR1_SPE_Pos (6U)
  9079. #define SPI_CR1_SPE_Msk (0x1U << SPI_CR1_SPE_Pos) /*!< 0x00000040 */
  9080. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!< SPI Enable */
  9081. #define SPI_CR1_LSBFIRST_Pos (7U)
  9082. #define SPI_CR1_LSBFIRST_Msk (0x1U << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */
  9083. #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!< Frame Format */
  9084. #define SPI_CR1_SSI_Pos (8U)
  9085. #define SPI_CR1_SSI_Msk (0x1U << SPI_CR1_SSI_Pos) /*!< 0x00000100 */
  9086. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!< Internal slave select */
  9087. #define SPI_CR1_SSM_Pos (9U)
  9088. #define SPI_CR1_SSM_Msk (0x1U << SPI_CR1_SSM_Pos) /*!< 0x00000200 */
  9089. #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!< Software slave management */
  9090. #define SPI_CR1_RXONLY_Pos (10U)
  9091. #define SPI_CR1_RXONLY_Msk (0x1U << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */
  9092. #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!< Receive only */
  9093. #define SPI_CR1_CRCL_Pos (11U)
  9094. #define SPI_CR1_CRCL_Msk (0x1U << SPI_CR1_CRCL_Pos) /*!< 0x00000800 */
  9095. #define SPI_CR1_CRCL SPI_CR1_CRCL_Msk /*!< CRC Length */
  9096. #define SPI_CR1_CRCNEXT_Pos (12U)
  9097. #define SPI_CR1_CRCNEXT_Msk (0x1U << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */
  9098. #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!< Transmit CRC next */
  9099. #define SPI_CR1_CRCEN_Pos (13U)
  9100. #define SPI_CR1_CRCEN_Msk (0x1U << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */
  9101. #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!< Hardware CRC calculation enable */
  9102. #define SPI_CR1_BIDIOE_Pos (14U)
  9103. #define SPI_CR1_BIDIOE_Msk (0x1U << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */
  9104. #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!< Output enable in bidirectional mode */
  9105. #define SPI_CR1_BIDIMODE_Pos (15U)
  9106. #define SPI_CR1_BIDIMODE_Msk (0x1U << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */
  9107. #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!< Bidirectional data mode enable */
  9108. /******************* Bit definition for SPI_CR2 register ********************/
  9109. #define SPI_CR2_RXDMAEN_Pos (0U)
  9110. #define SPI_CR2_RXDMAEN_Msk (0x1U << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */
  9111. #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */
  9112. #define SPI_CR2_TXDMAEN_Pos (1U)
  9113. #define SPI_CR2_TXDMAEN_Msk (0x1U << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */
  9114. #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */
  9115. #define SPI_CR2_SSOE_Pos (2U)
  9116. #define SPI_CR2_SSOE_Msk (0x1U << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */
  9117. #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */
  9118. #define SPI_CR2_NSSP_Pos (3U)
  9119. #define SPI_CR2_NSSP_Msk (0x1U << SPI_CR2_NSSP_Pos) /*!< 0x00000008 */
  9120. #define SPI_CR2_NSSP SPI_CR2_NSSP_Msk /*!< NSS pulse management Enable */
  9121. #define SPI_CR2_FRF_Pos (4U)
  9122. #define SPI_CR2_FRF_Msk (0x1U << SPI_CR2_FRF_Pos) /*!< 0x00000010 */
  9123. #define SPI_CR2_FRF SPI_CR2_FRF_Msk /*!< Frame Format Enable */
  9124. #define SPI_CR2_ERRIE_Pos (5U)
  9125. #define SPI_CR2_ERRIE_Msk (0x1U << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */
  9126. #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */
  9127. #define SPI_CR2_RXNEIE_Pos (6U)
  9128. #define SPI_CR2_RXNEIE_Msk (0x1U << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */
  9129. #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */
  9130. #define SPI_CR2_TXEIE_Pos (7U)
  9131. #define SPI_CR2_TXEIE_Msk (0x1U << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */
  9132. #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */
  9133. #define SPI_CR2_DS_Pos (8U)
  9134. #define SPI_CR2_DS_Msk (0xFU << SPI_CR2_DS_Pos) /*!< 0x00000F00 */
  9135. #define SPI_CR2_DS SPI_CR2_DS_Msk /*!< DS[3:0] Data Size */
  9136. #define SPI_CR2_DS_0 (0x1U << SPI_CR2_DS_Pos) /*!< 0x00000100 */
  9137. #define SPI_CR2_DS_1 (0x2U << SPI_CR2_DS_Pos) /*!< 0x00000200 */
  9138. #define SPI_CR2_DS_2 (0x4U << SPI_CR2_DS_Pos) /*!< 0x00000400 */
  9139. #define SPI_CR2_DS_3 (0x8U << SPI_CR2_DS_Pos) /*!< 0x00000800 */
  9140. #define SPI_CR2_FRXTH_Pos (12U)
  9141. #define SPI_CR2_FRXTH_Msk (0x1U << SPI_CR2_FRXTH_Pos) /*!< 0x00001000 */
  9142. #define SPI_CR2_FRXTH SPI_CR2_FRXTH_Msk /*!< FIFO reception Threshold */
  9143. #define SPI_CR2_LDMARX_Pos (13U)
  9144. #define SPI_CR2_LDMARX_Msk (0x1U << SPI_CR2_LDMARX_Pos) /*!< 0x00002000 */
  9145. #define SPI_CR2_LDMARX SPI_CR2_LDMARX_Msk /*!< Last DMA transfer for reception */
  9146. #define SPI_CR2_LDMATX_Pos (14U)
  9147. #define SPI_CR2_LDMATX_Msk (0x1U << SPI_CR2_LDMATX_Pos) /*!< 0x00004000 */
  9148. #define SPI_CR2_LDMATX SPI_CR2_LDMATX_Msk /*!< Last DMA transfer for transmission */
  9149. /******************** Bit definition for SPI_SR register ********************/
  9150. #define SPI_SR_RXNE_Pos (0U)
  9151. #define SPI_SR_RXNE_Msk (0x1U << SPI_SR_RXNE_Pos) /*!< 0x00000001 */
  9152. #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */
  9153. #define SPI_SR_TXE_Pos (1U)
  9154. #define SPI_SR_TXE_Msk (0x1U << SPI_SR_TXE_Pos) /*!< 0x00000002 */
  9155. #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */
  9156. #define SPI_SR_CRCERR_Pos (4U)
  9157. #define SPI_SR_CRCERR_Msk (0x1U << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */
  9158. #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */
  9159. #define SPI_SR_MODF_Pos (5U)
  9160. #define SPI_SR_MODF_Msk (0x1U << SPI_SR_MODF_Pos) /*!< 0x00000020 */
  9161. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */
  9162. #define SPI_SR_OVR_Pos (6U)
  9163. #define SPI_SR_OVR_Msk (0x1U << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  9164. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */
  9165. #define SPI_SR_BSY_Pos (7U)
  9166. #define SPI_SR_BSY_Msk (0x1U << SPI_SR_BSY_Pos) /*!< 0x00000080 */
  9167. #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */
  9168. #define SPI_SR_FRE_Pos (8U)
  9169. #define SPI_SR_FRE_Msk (0x1U << SPI_SR_FRE_Pos) /*!< 0x00000100 */
  9170. #define SPI_SR_FRE SPI_SR_FRE_Msk /*!< TI frame format error */
  9171. #define SPI_SR_FRLVL_Pos (9U)
  9172. #define SPI_SR_FRLVL_Msk (0x3U << SPI_SR_FRLVL_Pos) /*!< 0x00000600 */
  9173. #define SPI_SR_FRLVL SPI_SR_FRLVL_Msk /*!< FIFO Reception Level */
  9174. #define SPI_SR_FRLVL_0 (0x1U << SPI_SR_FRLVL_Pos) /*!< 0x00000200 */
  9175. #define SPI_SR_FRLVL_1 (0x2U << SPI_SR_FRLVL_Pos) /*!< 0x00000400 */
  9176. #define SPI_SR_FTLVL_Pos (11U)
  9177. #define SPI_SR_FTLVL_Msk (0x3U << SPI_SR_FTLVL_Pos) /*!< 0x00001800 */
  9178. #define SPI_SR_FTLVL SPI_SR_FTLVL_Msk /*!< FIFO Transmission Level */
  9179. #define SPI_SR_FTLVL_0 (0x1U << SPI_SR_FTLVL_Pos) /*!< 0x00000800 */
  9180. #define SPI_SR_FTLVL_1 (0x2U << SPI_SR_FTLVL_Pos) /*!< 0x00001000 */
  9181. /******************** Bit definition for SPI_DR register ********************/
  9182. #define SPI_DR_DR_Pos (0U)
  9183. #define SPI_DR_DR_Msk (0xFFFFU << SPI_DR_DR_Pos) /*!< 0x0000FFFF */
  9184. #define SPI_DR_DR SPI_DR_DR_Msk /*!< Data Register */
  9185. /******************* Bit definition for SPI_CRCPR register ******************/
  9186. #define SPI_CRCPR_CRCPOLY_Pos (0U)
  9187. #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFU << SPI_CRCPR_CRCPOLY_Pos) /*!< 0x0000FFFF */
  9188. #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!< CRC polynomial register */
  9189. /****************** Bit definition for SPI_RXCRCR register ******************/
  9190. #define SPI_RXCRCR_RXCRC_Pos (0U)
  9191. #define SPI_RXCRCR_RXCRC_Msk (0xFFFFU << SPI_RXCRCR_RXCRC_Pos) /*!< 0x0000FFFF */
  9192. #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!< Rx CRC Register */
  9193. /****************** Bit definition for SPI_TXCRCR register ******************/
  9194. #define SPI_TXCRCR_TXCRC_Pos (0U)
  9195. #define SPI_TXCRCR_TXCRC_Msk (0xFFFFU << SPI_TXCRCR_TXCRC_Pos) /*!< 0x0000FFFF */
  9196. #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!< Tx CRC Register */
  9197. /******************************************************************************/
  9198. /* */
  9199. /* System Configuration(SYSCFG) */
  9200. /* */
  9201. /******************************************************************************/
  9202. /***************** Bit definition for SYSCFG_CFGR1 register ****************/
  9203. #define SYSCFG_CFGR1_MEM_MODE_Pos (0U)
  9204. #define SYSCFG_CFGR1_MEM_MODE_Msk (0x3U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000003 */
  9205. #define SYSCFG_CFGR1_MEM_MODE SYSCFG_CFGR1_MEM_MODE_Msk /*!< SYSCFG_Memory Remap Config */
  9206. #define SYSCFG_CFGR1_MEM_MODE_0 (0x00000001U) /*!< Bit 0 */
  9207. #define SYSCFG_CFGR1_MEM_MODE_1 (0x00000002U) /*!< Bit 1 */
  9208. #define SYSCFG_CFGR1_TIM1_ITR3_RMP_Pos (6U)
  9209. #define SYSCFG_CFGR1_TIM1_ITR3_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM1_ITR3_RMP_Pos) /*!< 0x00000040 */
  9210. #define SYSCFG_CFGR1_TIM1_ITR3_RMP SYSCFG_CFGR1_TIM1_ITR3_RMP_Msk /*!< Timer 1 ITR3 selection */
  9211. #define SYSCFG_CFGR1_DAC1_TRIG1_RMP_Pos (7U)
  9212. #define SYSCFG_CFGR1_DAC1_TRIG1_RMP_Msk (0x1U << SYSCFG_CFGR1_DAC1_TRIG1_RMP_Pos) /*!< 0x00000080 */
  9213. #define SYSCFG_CFGR1_DAC1_TRIG1_RMP SYSCFG_CFGR1_DAC1_TRIG1_RMP_Msk /*!< DAC1 Trigger1 remap */
  9214. #define SYSCFG_CFGR1_DMA_RMP_Pos (11U)
  9215. #define SYSCFG_CFGR1_DMA_RMP_Msk (0x1FU << SYSCFG_CFGR1_DMA_RMP_Pos) /*!< 0x0000F800 */
  9216. #define SYSCFG_CFGR1_DMA_RMP SYSCFG_CFGR1_DMA_RMP_Msk /*!< DMA remap mask */
  9217. #define SYSCFG_CFGR1_TIM16_DMA_RMP_Pos (11U)
  9218. #define SYSCFG_CFGR1_TIM16_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM16_DMA_RMP_Pos) /*!< 0x00000800 */
  9219. #define SYSCFG_CFGR1_TIM16_DMA_RMP SYSCFG_CFGR1_TIM16_DMA_RMP_Msk /*!< Timer 16 DMA remap */
  9220. #define SYSCFG_CFGR1_TIM17_DMA_RMP_Pos (12U)
  9221. #define SYSCFG_CFGR1_TIM17_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM17_DMA_RMP_Pos) /*!< 0x00001000 */
  9222. #define SYSCFG_CFGR1_TIM17_DMA_RMP SYSCFG_CFGR1_TIM17_DMA_RMP_Msk /*!< Timer 17 DMA remap */
  9223. #define SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Pos (13U)
  9224. #define SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Pos) /*!< 0x00002000 */
  9225. #define SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP_Msk /*!< Timer 6 / DAC1 Ch1 DMA remap */
  9226. #define SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Pos (14U)
  9227. #define SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Pos) /*!< 0x00004000 */
  9228. #define SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP_Msk /*!< Timer 7 / DAC1 Ch2 DMA remap */
  9229. #define SYSCFG_CFGR1_DAC2Ch1_DMA_RMP_Pos (15U)
  9230. #define SYSCFG_CFGR1_DAC2Ch1_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_DAC2Ch1_DMA_RMP_Pos) /*!< 0x00008000 */
  9231. #define SYSCFG_CFGR1_DAC2Ch1_DMA_RMP SYSCFG_CFGR1_DAC2Ch1_DMA_RMP_Msk /*!< DAC2 CH1 DMA remap */
  9232. #define SYSCFG_CFGR1_I2C_PB6_FMP_Pos (16U)
  9233. #define SYSCFG_CFGR1_I2C_PB6_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB6_FMP_Pos) /*!< 0x00010000 */
  9234. #define SYSCFG_CFGR1_I2C_PB6_FMP SYSCFG_CFGR1_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */
  9235. #define SYSCFG_CFGR1_I2C_PB7_FMP_Pos (17U)
  9236. #define SYSCFG_CFGR1_I2C_PB7_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB7_FMP_Pos) /*!< 0x00020000 */
  9237. #define SYSCFG_CFGR1_I2C_PB7_FMP SYSCFG_CFGR1_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */
  9238. #define SYSCFG_CFGR1_I2C_PB8_FMP_Pos (18U)
  9239. #define SYSCFG_CFGR1_I2C_PB8_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB8_FMP_Pos) /*!< 0x00040000 */
  9240. #define SYSCFG_CFGR1_I2C_PB8_FMP SYSCFG_CFGR1_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */
  9241. #define SYSCFG_CFGR1_I2C_PB9_FMP_Pos (19U)
  9242. #define SYSCFG_CFGR1_I2C_PB9_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB9_FMP_Pos) /*!< 0x00080000 */
  9243. #define SYSCFG_CFGR1_I2C_PB9_FMP SYSCFG_CFGR1_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */
  9244. #define SYSCFG_CFGR1_I2C1_FMP_Pos (20U)
  9245. #define SYSCFG_CFGR1_I2C1_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C1_FMP_Pos) /*!< 0x00100000 */
  9246. #define SYSCFG_CFGR1_I2C1_FMP SYSCFG_CFGR1_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */
  9247. #define SYSCFG_CFGR1_ENCODER_MODE_Pos (22U)
  9248. #define SYSCFG_CFGR1_ENCODER_MODE_Msk (0x3U << SYSCFG_CFGR1_ENCODER_MODE_Pos) /*!< 0x00C00000 */
  9249. #define SYSCFG_CFGR1_ENCODER_MODE SYSCFG_CFGR1_ENCODER_MODE_Msk /*!< Encoder Mode */
  9250. #define SYSCFG_CFGR1_ENCODER_MODE_0 (0x1U << SYSCFG_CFGR1_ENCODER_MODE_Pos) /*!< 0x00400000 */
  9251. #define SYSCFG_CFGR1_ENCODER_MODE_1 (0x2U << SYSCFG_CFGR1_ENCODER_MODE_Pos) /*!< 0x00800000 */
  9252. #define SYSCFG_CFGR1_ENCODER_MODE_TIM2_Pos (22U)
  9253. #define SYSCFG_CFGR1_ENCODER_MODE_TIM2_Msk (0x1U << SYSCFG_CFGR1_ENCODER_MODE_TIM2_Pos) /*!< 0x00400000 */
  9254. #define SYSCFG_CFGR1_ENCODER_MODE_TIM2 SYSCFG_CFGR1_ENCODER_MODE_TIM2_Msk /*!< TIM2 IC1 and TIM2 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively */
  9255. #define SYSCFG_CFGR1_ENCODER_MODE_TIM3_Pos (23U)
  9256. #define SYSCFG_CFGR1_ENCODER_MODE_TIM3_Msk (0x1U << SYSCFG_CFGR1_ENCODER_MODE_TIM3_Pos) /*!< 0x00800000 */
  9257. #define SYSCFG_CFGR1_ENCODER_MODE_TIM3 SYSCFG_CFGR1_ENCODER_MODE_TIM3_Msk /*!< TIM3 IC1 and TIM3 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively */
  9258. #define SYSCFG_CFGR1_FPU_IE_Pos (26U)
  9259. #define SYSCFG_CFGR1_FPU_IE_Msk (0x3FU << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0xFC000000 */
  9260. #define SYSCFG_CFGR1_FPU_IE SYSCFG_CFGR1_FPU_IE_Msk /*!< Floating Point Unit Interrupt Enable */
  9261. #define SYSCFG_CFGR1_FPU_IE_0 (0x01U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x04000000 */
  9262. #define SYSCFG_CFGR1_FPU_IE_1 (0x02U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x08000000 */
  9263. #define SYSCFG_CFGR1_FPU_IE_2 (0x04U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x10000000 */
  9264. #define SYSCFG_CFGR1_FPU_IE_3 (0x08U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x20000000 */
  9265. #define SYSCFG_CFGR1_FPU_IE_4 (0x10U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x40000000 */
  9266. #define SYSCFG_CFGR1_FPU_IE_5 (0x20U << SYSCFG_CFGR1_FPU_IE_Pos) /*!< 0x80000000 */
  9267. /***************** Bit definition for SYSCFG_RCR register *******************/
  9268. #define SYSCFG_RCR_PAGE0_Pos (0U)
  9269. #define SYSCFG_RCR_PAGE0_Msk (0x1U << SYSCFG_RCR_PAGE0_Pos) /*!< 0x00000001 */
  9270. #define SYSCFG_RCR_PAGE0 SYSCFG_RCR_PAGE0_Msk /*!< ICODE SRAM Write protection page 0 */
  9271. #define SYSCFG_RCR_PAGE1_Pos (1U)
  9272. #define SYSCFG_RCR_PAGE1_Msk (0x1U << SYSCFG_RCR_PAGE1_Pos) /*!< 0x00000002 */
  9273. #define SYSCFG_RCR_PAGE1 SYSCFG_RCR_PAGE1_Msk /*!< ICODE SRAM Write protection page 1 */
  9274. #define SYSCFG_RCR_PAGE2_Pos (2U)
  9275. #define SYSCFG_RCR_PAGE2_Msk (0x1U << SYSCFG_RCR_PAGE2_Pos) /*!< 0x00000004 */
  9276. #define SYSCFG_RCR_PAGE2 SYSCFG_RCR_PAGE2_Msk /*!< ICODE SRAM Write protection page 2 */
  9277. #define SYSCFG_RCR_PAGE3_Pos (3U)
  9278. #define SYSCFG_RCR_PAGE3_Msk (0x1U << SYSCFG_RCR_PAGE3_Pos) /*!< 0x00000008 */
  9279. #define SYSCFG_RCR_PAGE3 SYSCFG_RCR_PAGE3_Msk /*!< ICODE SRAM Write protection page 3 */
  9280. /***************** Bit definition for SYSCFG_EXTICR1 register ***************/
  9281. #define SYSCFG_EXTICR1_EXTI0_Pos (0U)
  9282. #define SYSCFG_EXTICR1_EXTI0_Msk (0xFU << SYSCFG_EXTICR1_EXTI0_Pos) /*!< 0x0000000F */
  9283. #define SYSCFG_EXTICR1_EXTI0 SYSCFG_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */
  9284. #define SYSCFG_EXTICR1_EXTI1_Pos (4U)
  9285. #define SYSCFG_EXTICR1_EXTI1_Msk (0xFU << SYSCFG_EXTICR1_EXTI1_Pos) /*!< 0x000000F0 */
  9286. #define SYSCFG_EXTICR1_EXTI1 SYSCFG_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */
  9287. #define SYSCFG_EXTICR1_EXTI2_Pos (8U)
  9288. #define SYSCFG_EXTICR1_EXTI2_Msk (0xFU << SYSCFG_EXTICR1_EXTI2_Pos) /*!< 0x00000F00 */
  9289. #define SYSCFG_EXTICR1_EXTI2 SYSCFG_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */
  9290. #define SYSCFG_EXTICR1_EXTI3_Pos (12U)
  9291. #define SYSCFG_EXTICR1_EXTI3_Msk (0xFU << SYSCFG_EXTICR1_EXTI3_Pos) /*!< 0x0000F000 */
  9292. #define SYSCFG_EXTICR1_EXTI3 SYSCFG_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */
  9293. /*!<*
  9294. * @brief EXTI0 configuration
  9295. */
  9296. #define SYSCFG_EXTICR1_EXTI0_PA (0x00000000U) /*!< PA[0] pin */
  9297. #define SYSCFG_EXTICR1_EXTI0_PB (0x00000001U) /*!< PB[0] pin */
  9298. #define SYSCFG_EXTICR1_EXTI0_PC (0x00000002U) /*!< PC[0] pin */
  9299. #define SYSCFG_EXTICR1_EXTI0_PD (0x00000003U) /*!< PD[0] pin */
  9300. #define SYSCFG_EXTICR1_EXTI0_PE (0x00000004U) /*!< PE[0] pin */
  9301. #define SYSCFG_EXTICR1_EXTI0_PF (0x00000005U) /*!< PF[0] pin */
  9302. /*!<*
  9303. * @brief EXTI1 configuration
  9304. */
  9305. #define SYSCFG_EXTICR1_EXTI1_PA (0x00000000U) /*!< PA[1] pin */
  9306. #define SYSCFG_EXTICR1_EXTI1_PB (0x00000010U) /*!< PB[1] pin */
  9307. #define SYSCFG_EXTICR1_EXTI1_PC (0x00000020U) /*!< PC[1] pin */
  9308. #define SYSCFG_EXTICR1_EXTI1_PD (0x00000030U) /*!< PD[1] pin */
  9309. #define SYSCFG_EXTICR1_EXTI1_PE (0x00000040U) /*!< PE[1] pin */
  9310. #define SYSCFG_EXTICR1_EXTI1_PF (0x00000050U) /*!< PF[1] pin */
  9311. /*!<*
  9312. * @brief EXTI2 configuration
  9313. */
  9314. #define SYSCFG_EXTICR1_EXTI2_PA (0x00000000U) /*!< PA[2] pin */
  9315. #define SYSCFG_EXTICR1_EXTI2_PB (0x00000100U) /*!< PB[2] pin */
  9316. #define SYSCFG_EXTICR1_EXTI2_PC (0x00000200U) /*!< PC[2] pin */
  9317. #define SYSCFG_EXTICR1_EXTI2_PD (0x00000300U) /*!< PD[2] pin */
  9318. #define SYSCFG_EXTICR1_EXTI2_PE (0x00000400U) /*!< PE[2] pin */
  9319. #define SYSCFG_EXTICR1_EXTI2_PF (0x00000500U) /*!< PF[2] pin */
  9320. /*!<*
  9321. * @brief EXTI3 configuration
  9322. */
  9323. #define SYSCFG_EXTICR1_EXTI3_PA (0x00000000U) /*!< PA[3] pin */
  9324. #define SYSCFG_EXTICR1_EXTI3_PB (0x00001000U) /*!< PB[3] pin */
  9325. #define SYSCFG_EXTICR1_EXTI3_PC (0x00002000U) /*!< PC[3] pin */
  9326. #define SYSCFG_EXTICR1_EXTI3_PD (0x00003000U) /*!< PD[3] pin */
  9327. #define SYSCFG_EXTICR1_EXTI3_PE (0x00004000U) /*!< PE[3] pin */
  9328. /***************** Bit definition for SYSCFG_EXTICR2 register ***************/
  9329. #define SYSCFG_EXTICR2_EXTI4_Pos (0U)
  9330. #define SYSCFG_EXTICR2_EXTI4_Msk (0xFU << SYSCFG_EXTICR2_EXTI4_Pos) /*!< 0x0000000F */
  9331. #define SYSCFG_EXTICR2_EXTI4 SYSCFG_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */
  9332. #define SYSCFG_EXTICR2_EXTI5_Pos (4U)
  9333. #define SYSCFG_EXTICR2_EXTI5_Msk (0xFU << SYSCFG_EXTICR2_EXTI5_Pos) /*!< 0x000000F0 */
  9334. #define SYSCFG_EXTICR2_EXTI5 SYSCFG_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */
  9335. #define SYSCFG_EXTICR2_EXTI6_Pos (8U)
  9336. #define SYSCFG_EXTICR2_EXTI6_Msk (0xFU << SYSCFG_EXTICR2_EXTI6_Pos) /*!< 0x00000F00 */
  9337. #define SYSCFG_EXTICR2_EXTI6 SYSCFG_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */
  9338. #define SYSCFG_EXTICR2_EXTI7_Pos (12U)
  9339. #define SYSCFG_EXTICR2_EXTI7_Msk (0xFU << SYSCFG_EXTICR2_EXTI7_Pos) /*!< 0x0000F000 */
  9340. #define SYSCFG_EXTICR2_EXTI7 SYSCFG_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */
  9341. /*!<*
  9342. * @brief EXTI4 configuration
  9343. */
  9344. #define SYSCFG_EXTICR2_EXTI4_PA (0x00000000U) /*!< PA[4] pin */
  9345. #define SYSCFG_EXTICR2_EXTI4_PB (0x00000001U) /*!< PB[4] pin */
  9346. #define SYSCFG_EXTICR2_EXTI4_PC (0x00000002U) /*!< PC[4] pin */
  9347. #define SYSCFG_EXTICR2_EXTI4_PD (0x00000003U) /*!< PD[4] pin */
  9348. #define SYSCFG_EXTICR2_EXTI4_PE (0x00000004U) /*!< PE[4] pin */
  9349. #define SYSCFG_EXTICR2_EXTI4_PF (0x00000005U) /*!< PF[4] pin */
  9350. /*!<*
  9351. * @brief EXTI5 configuration
  9352. */
  9353. #define SYSCFG_EXTICR2_EXTI5_PA (0x00000000U) /*!< PA[5] pin */
  9354. #define SYSCFG_EXTICR2_EXTI5_PB (0x00000010U) /*!< PB[5] pin */
  9355. #define SYSCFG_EXTICR2_EXTI5_PC (0x00000020U) /*!< PC[5] pin */
  9356. #define SYSCFG_EXTICR2_EXTI5_PD (0x00000030U) /*!< PD[5] pin */
  9357. #define SYSCFG_EXTICR2_EXTI5_PE (0x00000040U) /*!< PE[5] pin */
  9358. #define SYSCFG_EXTICR2_EXTI5_PF (0x00000050U) /*!< PF[5] pin */
  9359. /*!<*
  9360. * @brief EXTI6 configuration
  9361. */
  9362. #define SYSCFG_EXTICR2_EXTI6_PA (0x00000000U) /*!< PA[6] pin */
  9363. #define SYSCFG_EXTICR2_EXTI6_PB (0x00000100U) /*!< PB[6] pin */
  9364. #define SYSCFG_EXTICR2_EXTI6_PC (0x00000200U) /*!< PC[6] pin */
  9365. #define SYSCFG_EXTICR2_EXTI6_PD (0x00000300U) /*!< PD[6] pin */
  9366. #define SYSCFG_EXTICR2_EXTI6_PE (0x00000400U) /*!< PE[6] pin */
  9367. #define SYSCFG_EXTICR2_EXTI6_PF (0x00000500U) /*!< PF[6] pin */
  9368. /*!<*
  9369. * @brief EXTI7 configuration
  9370. */
  9371. #define SYSCFG_EXTICR2_EXTI7_PA (0x00000000U) /*!< PA[7] pin */
  9372. #define SYSCFG_EXTICR2_EXTI7_PB (0x00001000U) /*!< PB[7] pin */
  9373. #define SYSCFG_EXTICR2_EXTI7_PC (0x00002000U) /*!< PC[7] pin */
  9374. #define SYSCFG_EXTICR2_EXTI7_PD (0x00003000U) /*!< PD[7] pin */
  9375. #define SYSCFG_EXTICR2_EXTI7_PE (0x00004000U) /*!< PE[7] pin */
  9376. /***************** Bit definition for SYSCFG_EXTICR3 register ***************/
  9377. #define SYSCFG_EXTICR3_EXTI8_Pos (0U)
  9378. #define SYSCFG_EXTICR3_EXTI8_Msk (0xFU << SYSCFG_EXTICR3_EXTI8_Pos) /*!< 0x0000000F */
  9379. #define SYSCFG_EXTICR3_EXTI8 SYSCFG_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */
  9380. #define SYSCFG_EXTICR3_EXTI9_Pos (4U)
  9381. #define SYSCFG_EXTICR3_EXTI9_Msk (0xFU << SYSCFG_EXTICR3_EXTI9_Pos) /*!< 0x000000F0 */
  9382. #define SYSCFG_EXTICR3_EXTI9 SYSCFG_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */
  9383. #define SYSCFG_EXTICR3_EXTI10_Pos (8U)
  9384. #define SYSCFG_EXTICR3_EXTI10_Msk (0xFU << SYSCFG_EXTICR3_EXTI10_Pos) /*!< 0x00000F00 */
  9385. #define SYSCFG_EXTICR3_EXTI10 SYSCFG_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */
  9386. #define SYSCFG_EXTICR3_EXTI11_Pos (12U)
  9387. #define SYSCFG_EXTICR3_EXTI11_Msk (0xFU << SYSCFG_EXTICR3_EXTI11_Pos) /*!< 0x0000F000 */
  9388. #define SYSCFG_EXTICR3_EXTI11 SYSCFG_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */
  9389. /*!<*
  9390. * @brief EXTI8 configuration
  9391. */
  9392. #define SYSCFG_EXTICR3_EXTI8_PA (0x00000000U) /*!< PA[8] pin */
  9393. #define SYSCFG_EXTICR3_EXTI8_PB (0x00000001U) /*!< PB[8] pin */
  9394. #define SYSCFG_EXTICR3_EXTI8_PC (0x00000002U) /*!< PC[8] pin */
  9395. #define SYSCFG_EXTICR3_EXTI8_PD (0x00000003U) /*!< PD[8] pin */
  9396. #define SYSCFG_EXTICR3_EXTI8_PE (0x00000004U) /*!< PE[8] pin */
  9397. /*!<*
  9398. * @brief EXTI9 configuration
  9399. */
  9400. #define SYSCFG_EXTICR3_EXTI9_PA (0x00000000U) /*!< PA[9] pin */
  9401. #define SYSCFG_EXTICR3_EXTI9_PB (0x00000010U) /*!< PB[9] pin */
  9402. #define SYSCFG_EXTICR3_EXTI9_PC (0x00000020U) /*!< PC[9] pin */
  9403. #define SYSCFG_EXTICR3_EXTI9_PD (0x00000030U) /*!< PD[9] pin */
  9404. #define SYSCFG_EXTICR3_EXTI9_PE (0x00000040U) /*!< PE[9] pin */
  9405. #define SYSCFG_EXTICR3_EXTI9_PF (0x00000050U) /*!< PF[9] pin */
  9406. /*!<*
  9407. * @brief EXTI10 configuration
  9408. */
  9409. #define SYSCFG_EXTICR3_EXTI10_PA (0x00000000U) /*!< PA[10] pin */
  9410. #define SYSCFG_EXTICR3_EXTI10_PB (0x00000100U) /*!< PB[10] pin */
  9411. #define SYSCFG_EXTICR3_EXTI10_PC (0x00000200U) /*!< PC[10] pin */
  9412. #define SYSCFG_EXTICR3_EXTI10_PD (0x00000300U) /*!< PD[10] pin */
  9413. #define SYSCFG_EXTICR3_EXTI10_PE (0x00000400U) /*!< PE[10] pin */
  9414. #define SYSCFG_EXTICR3_EXTI10_PF (0x00000500U) /*!< PF[10] pin */
  9415. /*!<*
  9416. * @brief EXTI11 configuration
  9417. */
  9418. #define SYSCFG_EXTICR3_EXTI11_PA (0x00000000U) /*!< PA[11] pin */
  9419. #define SYSCFG_EXTICR3_EXTI11_PB (0x00001000U) /*!< PB[11] pin */
  9420. #define SYSCFG_EXTICR3_EXTI11_PC (0x00002000U) /*!< PC[11] pin */
  9421. #define SYSCFG_EXTICR3_EXTI11_PD (0x00003000U) /*!< PD[11] pin */
  9422. #define SYSCFG_EXTICR3_EXTI11_PE (0x00004000U) /*!< PE[11] pin */
  9423. /***************** Bit definition for SYSCFG_EXTICR4 register *****************/
  9424. #define SYSCFG_EXTICR4_EXTI12_Pos (0U)
  9425. #define SYSCFG_EXTICR4_EXTI12_Msk (0xFU << SYSCFG_EXTICR4_EXTI12_Pos) /*!< 0x0000000F */
  9426. #define SYSCFG_EXTICR4_EXTI12 SYSCFG_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */
  9427. #define SYSCFG_EXTICR4_EXTI13_Pos (4U)
  9428. #define SYSCFG_EXTICR4_EXTI13_Msk (0xFU << SYSCFG_EXTICR4_EXTI13_Pos) /*!< 0x000000F0 */
  9429. #define SYSCFG_EXTICR4_EXTI13 SYSCFG_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */
  9430. #define SYSCFG_EXTICR4_EXTI14_Pos (8U)
  9431. #define SYSCFG_EXTICR4_EXTI14_Msk (0xFU << SYSCFG_EXTICR4_EXTI14_Pos) /*!< 0x00000F00 */
  9432. #define SYSCFG_EXTICR4_EXTI14 SYSCFG_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */
  9433. #define SYSCFG_EXTICR4_EXTI15_Pos (12U)
  9434. #define SYSCFG_EXTICR4_EXTI15_Msk (0xFU << SYSCFG_EXTICR4_EXTI15_Pos) /*!< 0x0000F000 */
  9435. #define SYSCFG_EXTICR4_EXTI15 SYSCFG_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */
  9436. /*!<*
  9437. * @brief EXTI12 configuration
  9438. */
  9439. #define SYSCFG_EXTICR4_EXTI12_PA (0x00000000U) /*!< PA[12] pin */
  9440. #define SYSCFG_EXTICR4_EXTI12_PB (0x00000001U) /*!< PB[12] pin */
  9441. #define SYSCFG_EXTICR4_EXTI12_PC (0x00000002U) /*!< PC[12] pin */
  9442. #define SYSCFG_EXTICR4_EXTI12_PD (0x00000003U) /*!< PD[12] pin */
  9443. #define SYSCFG_EXTICR4_EXTI12_PE (0x00000004U) /*!< PE[12] pin */
  9444. /*!<*
  9445. * @brief EXTI13 configuration
  9446. */
  9447. #define SYSCFG_EXTICR4_EXTI13_PA (0x00000000U) /*!< PA[13] pin */
  9448. #define SYSCFG_EXTICR4_EXTI13_PB (0x00000010U) /*!< PB[13] pin */
  9449. #define SYSCFG_EXTICR4_EXTI13_PC (0x00000020U) /*!< PC[13] pin */
  9450. #define SYSCFG_EXTICR4_EXTI13_PD (0x00000030U) /*!< PD[13] pin */
  9451. #define SYSCFG_EXTICR4_EXTI13_PE (0x00000040U) /*!< PE[13] pin */
  9452. /*!<*
  9453. * @brief EXTI14 configuration
  9454. */
  9455. #define SYSCFG_EXTICR4_EXTI14_PA (0x00000000U) /*!< PA[14] pin */
  9456. #define SYSCFG_EXTICR4_EXTI14_PB (0x00000100U) /*!< PB[14] pin */
  9457. #define SYSCFG_EXTICR4_EXTI14_PC (0x00000200U) /*!< PC[14] pin */
  9458. #define SYSCFG_EXTICR4_EXTI14_PD (0x00000300U) /*!< PD[14] pin */
  9459. #define SYSCFG_EXTICR4_EXTI14_PE (0x00000400U) /*!< PE[14] pin */
  9460. /*!<*
  9461. * @brief EXTI15 configuration
  9462. */
  9463. #define SYSCFG_EXTICR4_EXTI15_PA (0x00000000U) /*!< PA[15] pin */
  9464. #define SYSCFG_EXTICR4_EXTI15_PB (0x00001000U) /*!< PB[15] pin */
  9465. #define SYSCFG_EXTICR4_EXTI15_PC (0x00002000U) /*!< PC[15] pin */
  9466. #define SYSCFG_EXTICR4_EXTI15_PD (0x00003000U) /*!< PD[15] pin */
  9467. #define SYSCFG_EXTICR4_EXTI15_PE (0x00004000U) /*!< PE[15] pin */
  9468. /***************** Bit definition for SYSCFG_CFGR2 register ****************/
  9469. #define SYSCFG_CFGR2_LOCKUP_LOCK_Pos (0U)
  9470. #define SYSCFG_CFGR2_LOCKUP_LOCK_Msk (0x1U << SYSCFG_CFGR2_LOCKUP_LOCK_Pos) /*!< 0x00000001 */
  9471. #define SYSCFG_CFGR2_LOCKUP_LOCK SYSCFG_CFGR2_LOCKUP_LOCK_Msk /*!< Enables and locks the LOCKUP (Hardfault) output of CortexM4 with Break Input of TIMx */
  9472. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos (1U)
  9473. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk (0x1U << SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos) /*!< 0x00000002 */
  9474. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk /*!< Enables and locks the SRAM_PARITY error signal with Break Input of TIMx */
  9475. #define SYSCFG_CFGR2_PVD_LOCK_Pos (2U)
  9476. #define SYSCFG_CFGR2_PVD_LOCK_Msk (0x1U << SYSCFG_CFGR2_PVD_LOCK_Pos) /*!< 0x00000004 */
  9477. #define SYSCFG_CFGR2_PVD_LOCK SYSCFG_CFGR2_PVD_LOCK_Msk /*!< Enables and locks the PVD connection with TIMx Break Input, as well as the PVDE and PLS[2:0] in the PWR_CR register */
  9478. #define SYSCFG_CFGR2_BYP_ADDR_PAR_Pos (4U)
  9479. #define SYSCFG_CFGR2_BYP_ADDR_PAR_Msk (0x1U << SYSCFG_CFGR2_BYP_ADDR_PAR_Pos) /*!< 0x00000010 */
  9480. #define SYSCFG_CFGR2_BYP_ADDR_PAR SYSCFG_CFGR2_BYP_ADDR_PAR_Msk /*!< Disables the adddress parity check on RAM */
  9481. #define SYSCFG_CFGR2_SRAM_PE_Pos (8U)
  9482. #define SYSCFG_CFGR2_SRAM_PE_Msk (0x1U << SYSCFG_CFGR2_SRAM_PE_Pos) /*!< 0x00000100 */
  9483. #define SYSCFG_CFGR2_SRAM_PE SYSCFG_CFGR2_SRAM_PE_Msk /*!< SRAM Parity error flag */
  9484. /***************** Bit definition for SYSCFG_CFGR3 register *****************/
  9485. #define SYSCFG_CFGR3_DMA_RMP_Pos (0U)
  9486. #define SYSCFG_CFGR3_DMA_RMP_Msk (0x3FFU << SYSCFG_CFGR3_DMA_RMP_Pos) /*!< 0x000003FF */
  9487. #define SYSCFG_CFGR3_DMA_RMP SYSCFG_CFGR3_DMA_RMP_Msk /*!< DMA remap mask */
  9488. #define SYSCFG_CFGR3_SPI1_RX_DMA_RMP_Pos (0U)
  9489. #define SYSCFG_CFGR3_SPI1_RX_DMA_RMP_Msk (0x3U << SYSCFG_CFGR3_SPI1_RX_DMA_RMP_Pos) /*!< 0x00000003 */
  9490. #define SYSCFG_CFGR3_SPI1_RX_DMA_RMP SYSCFG_CFGR3_SPI1_RX_DMA_RMP_Msk /*!< SPI1 RX DMA remap */
  9491. #define SYSCFG_CFGR3_SPI1_RX_DMA_RMP_0 (0x1U << SYSCFG_CFGR3_SPI1_RX_DMA_RMP_Pos) /*!< 0x00000001 */
  9492. #define SYSCFG_CFGR3_SPI1_RX_DMA_RMP_1 (0x2U << SYSCFG_CFGR3_SPI1_RX_DMA_RMP_Pos) /*!< 0x00000002 */
  9493. #define SYSCFG_CFGR3_SPI1_TX_DMA_RMP_Pos (2U)
  9494. #define SYSCFG_CFGR3_SPI1_TX_DMA_RMP_Msk (0x3U << SYSCFG_CFGR3_SPI1_TX_DMA_RMP_Pos) /*!< 0x0000000C */
  9495. #define SYSCFG_CFGR3_SPI1_TX_DMA_RMP SYSCFG_CFGR3_SPI1_TX_DMA_RMP_Msk /*!< SPI1 TX DMA remap */
  9496. #define SYSCFG_CFGR3_SPI1_TX_DMA_RMP_0 (0x1U << SYSCFG_CFGR3_SPI1_TX_DMA_RMP_Pos) /*!< 0x00000004 */
  9497. #define SYSCFG_CFGR3_SPI1_TX_DMA_RMP_1 (0x2U << SYSCFG_CFGR3_SPI1_TX_DMA_RMP_Pos) /*!< 0x00000008 */
  9498. #define SYSCFG_CFGR3_I2C1_RX_DMA_RMP_Pos (4U)
  9499. #define SYSCFG_CFGR3_I2C1_RX_DMA_RMP_Msk (0x3U << SYSCFG_CFGR3_I2C1_RX_DMA_RMP_Pos) /*!< 0x00000030 */
  9500. #define SYSCFG_CFGR3_I2C1_RX_DMA_RMP SYSCFG_CFGR3_I2C1_RX_DMA_RMP_Msk /*!< I2C1 RX DMA remap */
  9501. #define SYSCFG_CFGR3_I2C1_RX_DMA_RMP_0 (0x1U << SYSCFG_CFGR3_I2C1_RX_DMA_RMP_Pos) /*!< 0x00000010 */
  9502. #define SYSCFG_CFGR3_I2C1_RX_DMA_RMP_1 (0x2U << SYSCFG_CFGR3_I2C1_RX_DMA_RMP_Pos) /*!< 0x00000020 */
  9503. #define SYSCFG_CFGR3_I2C1_TX_DMA_RMP_Pos (6U)
  9504. #define SYSCFG_CFGR3_I2C1_TX_DMA_RMP_Msk (0x3U << SYSCFG_CFGR3_I2C1_TX_DMA_RMP_Pos) /*!< 0x000000C0 */
  9505. #define SYSCFG_CFGR3_I2C1_TX_DMA_RMP SYSCFG_CFGR3_I2C1_TX_DMA_RMP_Msk /*!< I2C1 RX DMA remap */
  9506. #define SYSCFG_CFGR3_I2C1_TX_DMA_RMP_0 (0x1U << SYSCFG_CFGR3_I2C1_TX_DMA_RMP_Pos) /*!< 0x00000040 */
  9507. #define SYSCFG_CFGR3_I2C1_TX_DMA_RMP_1 (0x2U << SYSCFG_CFGR3_I2C1_TX_DMA_RMP_Pos) /*!< 0x00000080 */
  9508. #define SYSCFG_CFGR3_ADC2_DMA_RMP_Pos (8U)
  9509. #define SYSCFG_CFGR3_ADC2_DMA_RMP_Msk (0x3U << SYSCFG_CFGR3_ADC2_DMA_RMP_Pos) /*!< 0x00000300 */
  9510. #define SYSCFG_CFGR3_ADC2_DMA_RMP SYSCFG_CFGR3_ADC2_DMA_RMP_Msk /*!< ADC2 DMA remap */
  9511. #define SYSCFG_CFGR3_ADC2_DMA_RMP_0 (0x1U << SYSCFG_CFGR3_ADC2_DMA_RMP_Pos) /*!< 0x00000100 */
  9512. #define SYSCFG_CFGR3_ADC2_DMA_RMP_1 (0x2U << SYSCFG_CFGR3_ADC2_DMA_RMP_Pos) /*!< 0x00000200 */
  9513. /******************************************************************************/
  9514. /* */
  9515. /* TIM */
  9516. /* */
  9517. /******************************************************************************/
  9518. /******************* Bit definition for TIM_CR1 register ********************/
  9519. #define TIM_CR1_CEN_Pos (0U)
  9520. #define TIM_CR1_CEN_Msk (0x1U << TIM_CR1_CEN_Pos) /*!< 0x00000001 */
  9521. #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */
  9522. #define TIM_CR1_UDIS_Pos (1U)
  9523. #define TIM_CR1_UDIS_Msk (0x1U << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */
  9524. #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */
  9525. #define TIM_CR1_URS_Pos (2U)
  9526. #define TIM_CR1_URS_Msk (0x1U << TIM_CR1_URS_Pos) /*!< 0x00000004 */
  9527. #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */
  9528. #define TIM_CR1_OPM_Pos (3U)
  9529. #define TIM_CR1_OPM_Msk (0x1U << TIM_CR1_OPM_Pos) /*!< 0x00000008 */
  9530. #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */
  9531. #define TIM_CR1_DIR_Pos (4U)
  9532. #define TIM_CR1_DIR_Msk (0x1U << TIM_CR1_DIR_Pos) /*!< 0x00000010 */
  9533. #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */
  9534. #define TIM_CR1_CMS_Pos (5U)
  9535. #define TIM_CR1_CMS_Msk (0x3U << TIM_CR1_CMS_Pos) /*!< 0x00000060 */
  9536. #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */
  9537. #define TIM_CR1_CMS_0 (0x1U << TIM_CR1_CMS_Pos) /*!< 0x00000020 */
  9538. #define TIM_CR1_CMS_1 (0x2U << TIM_CR1_CMS_Pos) /*!< 0x00000040 */
  9539. #define TIM_CR1_ARPE_Pos (7U)
  9540. #define TIM_CR1_ARPE_Msk (0x1U << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */
  9541. #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */
  9542. #define TIM_CR1_CKD_Pos (8U)
  9543. #define TIM_CR1_CKD_Msk (0x3U << TIM_CR1_CKD_Pos) /*!< 0x00000300 */
  9544. #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */
  9545. #define TIM_CR1_CKD_0 (0x1U << TIM_CR1_CKD_Pos) /*!< 0x00000100 */
  9546. #define TIM_CR1_CKD_1 (0x2U << TIM_CR1_CKD_Pos) /*!< 0x00000200 */
  9547. #define TIM_CR1_UIFREMAP_Pos (11U)
  9548. #define TIM_CR1_UIFREMAP_Msk (0x1U << TIM_CR1_UIFREMAP_Pos) /*!< 0x00000800 */
  9549. #define TIM_CR1_UIFREMAP TIM_CR1_UIFREMAP_Msk /*!<Update interrupt flag remap */
  9550. /******************* Bit definition for TIM_CR2 register ********************/
  9551. #define TIM_CR2_CCPC_Pos (0U)
  9552. #define TIM_CR2_CCPC_Msk (0x1U << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  9553. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  9554. #define TIM_CR2_CCUS_Pos (2U)
  9555. #define TIM_CR2_CCUS_Msk (0x1U << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  9556. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  9557. #define TIM_CR2_CCDS_Pos (3U)
  9558. #define TIM_CR2_CCDS_Msk (0x1U << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  9559. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  9560. #define TIM_CR2_MMS_Pos (4U)
  9561. #define TIM_CR2_MMS_Msk (0x7U << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  9562. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  9563. #define TIM_CR2_MMS_0 (0x1U << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  9564. #define TIM_CR2_MMS_1 (0x2U << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  9565. #define TIM_CR2_MMS_2 (0x4U << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  9566. #define TIM_CR2_TI1S_Pos (7U)
  9567. #define TIM_CR2_TI1S_Msk (0x1U << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  9568. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  9569. #define TIM_CR2_OIS1_Pos (8U)
  9570. #define TIM_CR2_OIS1_Msk (0x1U << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  9571. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  9572. #define TIM_CR2_OIS1N_Pos (9U)
  9573. #define TIM_CR2_OIS1N_Msk (0x1U << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  9574. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  9575. #define TIM_CR2_OIS2_Pos (10U)
  9576. #define TIM_CR2_OIS2_Msk (0x1U << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  9577. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  9578. #define TIM_CR2_OIS2N_Pos (11U)
  9579. #define TIM_CR2_OIS2N_Msk (0x1U << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  9580. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  9581. #define TIM_CR2_OIS3_Pos (12U)
  9582. #define TIM_CR2_OIS3_Msk (0x1U << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  9583. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  9584. #define TIM_CR2_OIS3N_Pos (13U)
  9585. #define TIM_CR2_OIS3N_Msk (0x1U << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  9586. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  9587. #define TIM_CR2_OIS4_Pos (14U)
  9588. #define TIM_CR2_OIS4_Msk (0x1U << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  9589. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  9590. #define TIM_CR2_OIS5_Pos (16U)
  9591. #define TIM_CR2_OIS5_Msk (0x1U << TIM_CR2_OIS5_Pos) /*!< 0x00010000 */
  9592. #define TIM_CR2_OIS5 TIM_CR2_OIS5_Msk /*!<Output Idle state 4 (OC4 output) */
  9593. #define TIM_CR2_OIS6_Pos (18U)
  9594. #define TIM_CR2_OIS6_Msk (0x1U << TIM_CR2_OIS6_Pos) /*!< 0x00040000 */
  9595. #define TIM_CR2_OIS6 TIM_CR2_OIS6_Msk /*!<Output Idle state 4 (OC4 output) */
  9596. #define TIM_CR2_MMS2_Pos (20U)
  9597. #define TIM_CR2_MMS2_Msk (0xFU << TIM_CR2_MMS2_Pos) /*!< 0x00F00000 */
  9598. #define TIM_CR2_MMS2 TIM_CR2_MMS2_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  9599. #define TIM_CR2_MMS2_0 (0x1U << TIM_CR2_MMS2_Pos) /*!< 0x00100000 */
  9600. #define TIM_CR2_MMS2_1 (0x2U << TIM_CR2_MMS2_Pos) /*!< 0x00200000 */
  9601. #define TIM_CR2_MMS2_2 (0x4U << TIM_CR2_MMS2_Pos) /*!< 0x00400000 */
  9602. #define TIM_CR2_MMS2_3 (0x8U << TIM_CR2_MMS2_Pos) /*!< 0x00800000 */
  9603. /******************* Bit definition for TIM_SMCR register *******************/
  9604. #define TIM_SMCR_SMS_Pos (0U)
  9605. #define TIM_SMCR_SMS_Msk (0x10007U << TIM_SMCR_SMS_Pos) /*!< 0x00010007 */
  9606. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  9607. #define TIM_SMCR_SMS_0 (0x00000001U) /*!<Bit 0 */
  9608. #define TIM_SMCR_SMS_1 (0x00000002U) /*!<Bit 1 */
  9609. #define TIM_SMCR_SMS_2 (0x00000004U) /*!<Bit 2 */
  9610. #define TIM_SMCR_SMS_3 (0x00010000U) /*!<Bit 3 */
  9611. #define TIM_SMCR_OCCS_Pos (3U)
  9612. #define TIM_SMCR_OCCS_Msk (0x1U << TIM_SMCR_OCCS_Pos) /*!< 0x00000008 */
  9613. #define TIM_SMCR_OCCS TIM_SMCR_OCCS_Msk /*!< OCREF clear selection */
  9614. #define TIM_SMCR_TS_Pos (4U)
  9615. #define TIM_SMCR_TS_Msk (0x7U << TIM_SMCR_TS_Pos) /*!< 0x00000070 */
  9616. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */
  9617. #define TIM_SMCR_TS_0 (0x1U << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  9618. #define TIM_SMCR_TS_1 (0x2U << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  9619. #define TIM_SMCR_TS_2 (0x4U << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  9620. #define TIM_SMCR_MSM_Pos (7U)
  9621. #define TIM_SMCR_MSM_Msk (0x1U << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  9622. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  9623. #define TIM_SMCR_ETF_Pos (8U)
  9624. #define TIM_SMCR_ETF_Msk (0xFU << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  9625. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  9626. #define TIM_SMCR_ETF_0 (0x1U << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  9627. #define TIM_SMCR_ETF_1 (0x2U << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  9628. #define TIM_SMCR_ETF_2 (0x4U << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  9629. #define TIM_SMCR_ETF_3 (0x8U << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  9630. #define TIM_SMCR_ETPS_Pos (12U)
  9631. #define TIM_SMCR_ETPS_Msk (0x3U << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  9632. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  9633. #define TIM_SMCR_ETPS_0 (0x1U << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  9634. #define TIM_SMCR_ETPS_1 (0x2U << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  9635. #define TIM_SMCR_ECE_Pos (14U)
  9636. #define TIM_SMCR_ECE_Msk (0x1U << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  9637. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  9638. #define TIM_SMCR_ETP_Pos (15U)
  9639. #define TIM_SMCR_ETP_Msk (0x1U << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  9640. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  9641. /******************* Bit definition for TIM_DIER register *******************/
  9642. #define TIM_DIER_UIE_Pos (0U)
  9643. #define TIM_DIER_UIE_Msk (0x1U << TIM_DIER_UIE_Pos) /*!< 0x00000001 */
  9644. #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */
  9645. #define TIM_DIER_CC1IE_Pos (1U)
  9646. #define TIM_DIER_CC1IE_Msk (0x1U << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */
  9647. #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */
  9648. #define TIM_DIER_CC2IE_Pos (2U)
  9649. #define TIM_DIER_CC2IE_Msk (0x1U << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */
  9650. #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */
  9651. #define TIM_DIER_CC3IE_Pos (3U)
  9652. #define TIM_DIER_CC3IE_Msk (0x1U << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */
  9653. #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */
  9654. #define TIM_DIER_CC4IE_Pos (4U)
  9655. #define TIM_DIER_CC4IE_Msk (0x1U << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */
  9656. #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */
  9657. #define TIM_DIER_COMIE_Pos (5U)
  9658. #define TIM_DIER_COMIE_Msk (0x1U << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */
  9659. #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */
  9660. #define TIM_DIER_TIE_Pos (6U)
  9661. #define TIM_DIER_TIE_Msk (0x1U << TIM_DIER_TIE_Pos) /*!< 0x00000040 */
  9662. #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */
  9663. #define TIM_DIER_BIE_Pos (7U)
  9664. #define TIM_DIER_BIE_Msk (0x1U << TIM_DIER_BIE_Pos) /*!< 0x00000080 */
  9665. #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */
  9666. #define TIM_DIER_UDE_Pos (8U)
  9667. #define TIM_DIER_UDE_Msk (0x1U << TIM_DIER_UDE_Pos) /*!< 0x00000100 */
  9668. #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */
  9669. #define TIM_DIER_CC1DE_Pos (9U)
  9670. #define TIM_DIER_CC1DE_Msk (0x1U << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */
  9671. #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */
  9672. #define TIM_DIER_CC2DE_Pos (10U)
  9673. #define TIM_DIER_CC2DE_Msk (0x1U << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */
  9674. #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */
  9675. #define TIM_DIER_CC3DE_Pos (11U)
  9676. #define TIM_DIER_CC3DE_Msk (0x1U << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */
  9677. #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */
  9678. #define TIM_DIER_CC4DE_Pos (12U)
  9679. #define TIM_DIER_CC4DE_Msk (0x1U << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */
  9680. #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */
  9681. #define TIM_DIER_COMDE_Pos (13U)
  9682. #define TIM_DIER_COMDE_Msk (0x1U << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */
  9683. #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */
  9684. #define TIM_DIER_TDE_Pos (14U)
  9685. #define TIM_DIER_TDE_Msk (0x1U << TIM_DIER_TDE_Pos) /*!< 0x00004000 */
  9686. #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */
  9687. /******************** Bit definition for TIM_SR register ********************/
  9688. #define TIM_SR_UIF_Pos (0U)
  9689. #define TIM_SR_UIF_Msk (0x1U << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  9690. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  9691. #define TIM_SR_CC1IF_Pos (1U)
  9692. #define TIM_SR_CC1IF_Msk (0x1U << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  9693. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  9694. #define TIM_SR_CC2IF_Pos (2U)
  9695. #define TIM_SR_CC2IF_Msk (0x1U << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  9696. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  9697. #define TIM_SR_CC3IF_Pos (3U)
  9698. #define TIM_SR_CC3IF_Msk (0x1U << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  9699. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  9700. #define TIM_SR_CC4IF_Pos (4U)
  9701. #define TIM_SR_CC4IF_Msk (0x1U << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  9702. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  9703. #define TIM_SR_COMIF_Pos (5U)
  9704. #define TIM_SR_COMIF_Msk (0x1U << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  9705. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  9706. #define TIM_SR_TIF_Pos (6U)
  9707. #define TIM_SR_TIF_Msk (0x1U << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  9708. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  9709. #define TIM_SR_BIF_Pos (7U)
  9710. #define TIM_SR_BIF_Msk (0x1U << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  9711. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  9712. #define TIM_SR_B2IF_Pos (8U)
  9713. #define TIM_SR_B2IF_Msk (0x1U << TIM_SR_B2IF_Pos) /*!< 0x00000100 */
  9714. #define TIM_SR_B2IF TIM_SR_B2IF_Msk /*!<Break2 interrupt Flag */
  9715. #define TIM_SR_CC1OF_Pos (9U)
  9716. #define TIM_SR_CC1OF_Msk (0x1U << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  9717. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  9718. #define TIM_SR_CC2OF_Pos (10U)
  9719. #define TIM_SR_CC2OF_Msk (0x1U << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  9720. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  9721. #define TIM_SR_CC3OF_Pos (11U)
  9722. #define TIM_SR_CC3OF_Msk (0x1U << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  9723. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  9724. #define TIM_SR_CC4OF_Pos (12U)
  9725. #define TIM_SR_CC4OF_Msk (0x1U << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  9726. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  9727. #define TIM_SR_CC5IF_Pos (16U)
  9728. #define TIM_SR_CC5IF_Msk (0x1U << TIM_SR_CC5IF_Pos) /*!< 0x00010000 */
  9729. #define TIM_SR_CC5IF TIM_SR_CC5IF_Msk /*!<Capture/Compare 5 interrupt Flag */
  9730. #define TIM_SR_CC6IF_Pos (17U)
  9731. #define TIM_SR_CC6IF_Msk (0x1U << TIM_SR_CC6IF_Pos) /*!< 0x00020000 */
  9732. #define TIM_SR_CC6IF TIM_SR_CC6IF_Msk /*!<Capture/Compare 6 interrupt Flag */
  9733. /******************* Bit definition for TIM_EGR register ********************/
  9734. #define TIM_EGR_UG_Pos (0U)
  9735. #define TIM_EGR_UG_Msk (0x1U << TIM_EGR_UG_Pos) /*!< 0x00000001 */
  9736. #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */
  9737. #define TIM_EGR_CC1G_Pos (1U)
  9738. #define TIM_EGR_CC1G_Msk (0x1U << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */
  9739. #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */
  9740. #define TIM_EGR_CC2G_Pos (2U)
  9741. #define TIM_EGR_CC2G_Msk (0x1U << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */
  9742. #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */
  9743. #define TIM_EGR_CC3G_Pos (3U)
  9744. #define TIM_EGR_CC3G_Msk (0x1U << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */
  9745. #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */
  9746. #define TIM_EGR_CC4G_Pos (4U)
  9747. #define TIM_EGR_CC4G_Msk (0x1U << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */
  9748. #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */
  9749. #define TIM_EGR_COMG_Pos (5U)
  9750. #define TIM_EGR_COMG_Msk (0x1U << TIM_EGR_COMG_Pos) /*!< 0x00000020 */
  9751. #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */
  9752. #define TIM_EGR_TG_Pos (6U)
  9753. #define TIM_EGR_TG_Msk (0x1U << TIM_EGR_TG_Pos) /*!< 0x00000040 */
  9754. #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */
  9755. #define TIM_EGR_BG_Pos (7U)
  9756. #define TIM_EGR_BG_Msk (0x1U << TIM_EGR_BG_Pos) /*!< 0x00000080 */
  9757. #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */
  9758. #define TIM_EGR_B2G_Pos (8U)
  9759. #define TIM_EGR_B2G_Msk (0x1U << TIM_EGR_B2G_Pos) /*!< 0x00000100 */
  9760. #define TIM_EGR_B2G TIM_EGR_B2G_Msk /*!<Break Generation */
  9761. /****************** Bit definition for TIM_CCMR1 register *******************/
  9762. #define TIM_CCMR1_CC1S_Pos (0U)
  9763. #define TIM_CCMR1_CC1S_Msk (0x3U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  9764. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  9765. #define TIM_CCMR1_CC1S_0 (0x1U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  9766. #define TIM_CCMR1_CC1S_1 (0x2U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  9767. #define TIM_CCMR1_OC1FE_Pos (2U)
  9768. #define TIM_CCMR1_OC1FE_Msk (0x1U << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  9769. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  9770. #define TIM_CCMR1_OC1PE_Pos (3U)
  9771. #define TIM_CCMR1_OC1PE_Msk (0x1U << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  9772. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  9773. #define TIM_CCMR1_OC1M_Pos (4U)
  9774. #define TIM_CCMR1_OC1M_Msk (0x1007U << TIM_CCMR1_OC1M_Pos) /*!< 0x00010070 */
  9775. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  9776. #define TIM_CCMR1_OC1M_0 (0x00000010U) /*!<Bit 0 */
  9777. #define TIM_CCMR1_OC1M_1 (0x00000020U) /*!<Bit 1 */
  9778. #define TIM_CCMR1_OC1M_2 (0x00000040U) /*!<Bit 2 */
  9779. #define TIM_CCMR1_OC1M_3 (0x00010000U) /*!<Bit 3 */
  9780. #define TIM_CCMR1_OC1CE_Pos (7U)
  9781. #define TIM_CCMR1_OC1CE_Msk (0x1U << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  9782. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */
  9783. #define TIM_CCMR1_CC2S_Pos (8U)
  9784. #define TIM_CCMR1_CC2S_Msk (0x3U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  9785. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  9786. #define TIM_CCMR1_CC2S_0 (0x1U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  9787. #define TIM_CCMR1_CC2S_1 (0x2U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  9788. #define TIM_CCMR1_OC2FE_Pos (10U)
  9789. #define TIM_CCMR1_OC2FE_Msk (0x1U << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  9790. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  9791. #define TIM_CCMR1_OC2PE_Pos (11U)
  9792. #define TIM_CCMR1_OC2PE_Msk (0x1U << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  9793. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  9794. #define TIM_CCMR1_OC2M_Pos (12U)
  9795. #define TIM_CCMR1_OC2M_Msk (0x1007U << TIM_CCMR1_OC2M_Pos) /*!< 0x01007000 */
  9796. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  9797. #define TIM_CCMR1_OC2M_0 (0x00001000U) /*!<Bit 0 */
  9798. #define TIM_CCMR1_OC2M_1 (0x00002000U) /*!<Bit 1 */
  9799. #define TIM_CCMR1_OC2M_2 (0x00004000U) /*!<Bit 2 */
  9800. #define TIM_CCMR1_OC2M_3 (0x01000000U) /*!<Bit 3 */
  9801. #define TIM_CCMR1_OC2CE_Pos (15U)
  9802. #define TIM_CCMR1_OC2CE_Msk (0x1U << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  9803. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  9804. /*----------------------------------------------------------------------------*/
  9805. #define TIM_CCMR1_IC1PSC_Pos (2U)
  9806. #define TIM_CCMR1_IC1PSC_Msk (0x3U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  9807. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  9808. #define TIM_CCMR1_IC1PSC_0 (0x1U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  9809. #define TIM_CCMR1_IC1PSC_1 (0x2U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  9810. #define TIM_CCMR1_IC1F_Pos (4U)
  9811. #define TIM_CCMR1_IC1F_Msk (0xFU << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  9812. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  9813. #define TIM_CCMR1_IC1F_0 (0x1U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  9814. #define TIM_CCMR1_IC1F_1 (0x2U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  9815. #define TIM_CCMR1_IC1F_2 (0x4U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  9816. #define TIM_CCMR1_IC1F_3 (0x8U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  9817. #define TIM_CCMR1_IC2PSC_Pos (10U)
  9818. #define TIM_CCMR1_IC2PSC_Msk (0x3U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  9819. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  9820. #define TIM_CCMR1_IC2PSC_0 (0x1U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  9821. #define TIM_CCMR1_IC2PSC_1 (0x2U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  9822. #define TIM_CCMR1_IC2F_Pos (12U)
  9823. #define TIM_CCMR1_IC2F_Msk (0xFU << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  9824. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  9825. #define TIM_CCMR1_IC2F_0 (0x1U << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  9826. #define TIM_CCMR1_IC2F_1 (0x2U << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  9827. #define TIM_CCMR1_IC2F_2 (0x4U << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  9828. #define TIM_CCMR1_IC2F_3 (0x8U << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  9829. /****************** Bit definition for TIM_CCMR2 register *******************/
  9830. #define TIM_CCMR2_CC3S_Pos (0U)
  9831. #define TIM_CCMR2_CC3S_Msk (0x3U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  9832. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  9833. #define TIM_CCMR2_CC3S_0 (0x1U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  9834. #define TIM_CCMR2_CC3S_1 (0x2U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  9835. #define TIM_CCMR2_OC3FE_Pos (2U)
  9836. #define TIM_CCMR2_OC3FE_Msk (0x1U << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  9837. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  9838. #define TIM_CCMR2_OC3PE_Pos (3U)
  9839. #define TIM_CCMR2_OC3PE_Msk (0x1U << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  9840. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  9841. #define TIM_CCMR2_OC3M_Pos (4U)
  9842. #define TIM_CCMR2_OC3M_Msk (0x1007U << TIM_CCMR2_OC3M_Pos) /*!< 0x00010070 */
  9843. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  9844. #define TIM_CCMR2_OC3M_0 (0x00000010U) /*!<Bit 0 */
  9845. #define TIM_CCMR2_OC3M_1 (0x00000020U) /*!<Bit 1 */
  9846. #define TIM_CCMR2_OC3M_2 (0x00000040U) /*!<Bit 2 */
  9847. #define TIM_CCMR2_OC3M_3 (0x00010000U) /*!<Bit 3 */
  9848. #define TIM_CCMR2_OC3CE_Pos (7U)
  9849. #define TIM_CCMR2_OC3CE_Msk (0x1U << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  9850. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  9851. #define TIM_CCMR2_CC4S_Pos (8U)
  9852. #define TIM_CCMR2_CC4S_Msk (0x3U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  9853. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  9854. #define TIM_CCMR2_CC4S_0 (0x1U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  9855. #define TIM_CCMR2_CC4S_1 (0x2U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  9856. #define TIM_CCMR2_OC4FE_Pos (10U)
  9857. #define TIM_CCMR2_OC4FE_Msk (0x1U << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  9858. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  9859. #define TIM_CCMR2_OC4PE_Pos (11U)
  9860. #define TIM_CCMR2_OC4PE_Msk (0x1U << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  9861. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  9862. #define TIM_CCMR2_OC4M_Pos (12U)
  9863. #define TIM_CCMR2_OC4M_Msk (0x1007U << TIM_CCMR2_OC4M_Pos) /*!< 0x01007000 */
  9864. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  9865. #define TIM_CCMR2_OC4M_0 (0x00001000U) /*!<Bit 0 */
  9866. #define TIM_CCMR2_OC4M_1 (0x00002000U) /*!<Bit 1 */
  9867. #define TIM_CCMR2_OC4M_2 (0x00004000U) /*!<Bit 2 */
  9868. #define TIM_CCMR2_OC4M_3 (0x01000000U) /*!<Bit 3 */
  9869. #define TIM_CCMR2_OC4CE_Pos (15U)
  9870. #define TIM_CCMR2_OC4CE_Msk (0x1U << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  9871. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  9872. /*----------------------------------------------------------------------------*/
  9873. #define TIM_CCMR2_IC3PSC_Pos (2U)
  9874. #define TIM_CCMR2_IC3PSC_Msk (0x3U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */
  9875. #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  9876. #define TIM_CCMR2_IC3PSC_0 (0x1U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */
  9877. #define TIM_CCMR2_IC3PSC_1 (0x2U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */
  9878. #define TIM_CCMR2_IC3F_Pos (4U)
  9879. #define TIM_CCMR2_IC3F_Msk (0xFU << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */
  9880. #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  9881. #define TIM_CCMR2_IC3F_0 (0x1U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */
  9882. #define TIM_CCMR2_IC3F_1 (0x2U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */
  9883. #define TIM_CCMR2_IC3F_2 (0x4U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */
  9884. #define TIM_CCMR2_IC3F_3 (0x8U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */
  9885. #define TIM_CCMR2_IC4PSC_Pos (10U)
  9886. #define TIM_CCMR2_IC4PSC_Msk (0x3U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */
  9887. #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  9888. #define TIM_CCMR2_IC4PSC_0 (0x1U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */
  9889. #define TIM_CCMR2_IC4PSC_1 (0x2U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */
  9890. #define TIM_CCMR2_IC4F_Pos (12U)
  9891. #define TIM_CCMR2_IC4F_Msk (0xFU << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */
  9892. #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  9893. #define TIM_CCMR2_IC4F_0 (0x1U << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */
  9894. #define TIM_CCMR2_IC4F_1 (0x2U << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */
  9895. #define TIM_CCMR2_IC4F_2 (0x4U << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */
  9896. #define TIM_CCMR2_IC4F_3 (0x8U << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */
  9897. /******************* Bit definition for TIM_CCER register *******************/
  9898. #define TIM_CCER_CC1E_Pos (0U)
  9899. #define TIM_CCER_CC1E_Msk (0x1U << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  9900. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  9901. #define TIM_CCER_CC1P_Pos (1U)
  9902. #define TIM_CCER_CC1P_Msk (0x1U << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  9903. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  9904. #define TIM_CCER_CC1NE_Pos (2U)
  9905. #define TIM_CCER_CC1NE_Msk (0x1U << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  9906. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  9907. #define TIM_CCER_CC1NP_Pos (3U)
  9908. #define TIM_CCER_CC1NP_Msk (0x1U << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  9909. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  9910. #define TIM_CCER_CC2E_Pos (4U)
  9911. #define TIM_CCER_CC2E_Msk (0x1U << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  9912. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  9913. #define TIM_CCER_CC2P_Pos (5U)
  9914. #define TIM_CCER_CC2P_Msk (0x1U << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  9915. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  9916. #define TIM_CCER_CC2NE_Pos (6U)
  9917. #define TIM_CCER_CC2NE_Msk (0x1U << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  9918. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  9919. #define TIM_CCER_CC2NP_Pos (7U)
  9920. #define TIM_CCER_CC2NP_Msk (0x1U << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  9921. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  9922. #define TIM_CCER_CC3E_Pos (8U)
  9923. #define TIM_CCER_CC3E_Msk (0x1U << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  9924. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  9925. #define TIM_CCER_CC3P_Pos (9U)
  9926. #define TIM_CCER_CC3P_Msk (0x1U << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  9927. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  9928. #define TIM_CCER_CC3NE_Pos (10U)
  9929. #define TIM_CCER_CC3NE_Msk (0x1U << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  9930. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  9931. #define TIM_CCER_CC3NP_Pos (11U)
  9932. #define TIM_CCER_CC3NP_Msk (0x1U << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  9933. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  9934. #define TIM_CCER_CC4E_Pos (12U)
  9935. #define TIM_CCER_CC4E_Msk (0x1U << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  9936. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  9937. #define TIM_CCER_CC4P_Pos (13U)
  9938. #define TIM_CCER_CC4P_Msk (0x1U << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  9939. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  9940. #define TIM_CCER_CC4NP_Pos (15U)
  9941. #define TIM_CCER_CC4NP_Msk (0x1U << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  9942. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  9943. #define TIM_CCER_CC5E_Pos (16U)
  9944. #define TIM_CCER_CC5E_Msk (0x1U << TIM_CCER_CC5E_Pos) /*!< 0x00010000 */
  9945. #define TIM_CCER_CC5E TIM_CCER_CC5E_Msk /*!<Capture/Compare 5 output enable */
  9946. #define TIM_CCER_CC5P_Pos (17U)
  9947. #define TIM_CCER_CC5P_Msk (0x1U << TIM_CCER_CC5P_Pos) /*!< 0x00020000 */
  9948. #define TIM_CCER_CC5P TIM_CCER_CC5P_Msk /*!<Capture/Compare 5 output Polarity */
  9949. #define TIM_CCER_CC6E_Pos (20U)
  9950. #define TIM_CCER_CC6E_Msk (0x1U << TIM_CCER_CC6E_Pos) /*!< 0x00100000 */
  9951. #define TIM_CCER_CC6E TIM_CCER_CC6E_Msk /*!<Capture/Compare 6 output enable */
  9952. #define TIM_CCER_CC6P_Pos (21U)
  9953. #define TIM_CCER_CC6P_Msk (0x1U << TIM_CCER_CC6P_Pos) /*!< 0x00200000 */
  9954. #define TIM_CCER_CC6P TIM_CCER_CC6P_Msk /*!<Capture/Compare 6 output Polarity */
  9955. /******************* Bit definition for TIM_CNT register ********************/
  9956. #define TIM_CNT_CNT_Pos (0U)
  9957. #define TIM_CNT_CNT_Msk (0xFFFFFFFFU << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  9958. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  9959. #define TIM_CNT_UIFCPY_Pos (31U)
  9960. #define TIM_CNT_UIFCPY_Msk (0x1U << TIM_CNT_UIFCPY_Pos) /*!< 0x80000000 */
  9961. #define TIM_CNT_UIFCPY TIM_CNT_UIFCPY_Msk /*!<Update interrupt flag copy */
  9962. /******************* Bit definition for TIM_PSC register ********************/
  9963. #define TIM_PSC_PSC_Pos (0U)
  9964. #define TIM_PSC_PSC_Msk (0xFFFFU << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */
  9965. #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */
  9966. /******************* Bit definition for TIM_ARR register ********************/
  9967. #define TIM_ARR_ARR_Pos (0U)
  9968. #define TIM_ARR_ARR_Msk (0xFFFFFFFFU << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  9969. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */
  9970. /******************* Bit definition for TIM_RCR register ********************/
  9971. #define TIM_RCR_REP_Pos (0U)
  9972. #define TIM_RCR_REP_Msk (0xFFFFU << TIM_RCR_REP_Pos) /*!< 0x0000FFFF */
  9973. #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */
  9974. /******************* Bit definition for TIM_CCR1 register *******************/
  9975. #define TIM_CCR1_CCR1_Pos (0U)
  9976. #define TIM_CCR1_CCR1_Msk (0xFFFFU << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */
  9977. #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */
  9978. /******************* Bit definition for TIM_CCR2 register *******************/
  9979. #define TIM_CCR2_CCR2_Pos (0U)
  9980. #define TIM_CCR2_CCR2_Msk (0xFFFFU << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */
  9981. #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */
  9982. /******************* Bit definition for TIM_CCR3 register *******************/
  9983. #define TIM_CCR3_CCR3_Pos (0U)
  9984. #define TIM_CCR3_CCR3_Msk (0xFFFFU << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */
  9985. #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */
  9986. /******************* Bit definition for TIM_CCR4 register *******************/
  9987. #define TIM_CCR4_CCR4_Pos (0U)
  9988. #define TIM_CCR4_CCR4_Msk (0xFFFFU << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */
  9989. #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */
  9990. /******************* Bit definition for TIM_CCR5 register *******************/
  9991. #define TIM_CCR5_CCR5_Pos (0U)
  9992. #define TIM_CCR5_CCR5_Msk (0xFFFFFFFFU << TIM_CCR5_CCR5_Pos) /*!< 0xFFFFFFFF */
  9993. #define TIM_CCR5_CCR5 TIM_CCR5_CCR5_Msk /*!<Capture/Compare 5 Value */
  9994. #define TIM_CCR5_GC5C1_Pos (29U)
  9995. #define TIM_CCR5_GC5C1_Msk (0x1U << TIM_CCR5_GC5C1_Pos) /*!< 0x20000000 */
  9996. #define TIM_CCR5_GC5C1 TIM_CCR5_GC5C1_Msk /*!<Group Channel 5 and Channel 1 */
  9997. #define TIM_CCR5_GC5C2_Pos (30U)
  9998. #define TIM_CCR5_GC5C2_Msk (0x1U << TIM_CCR5_GC5C2_Pos) /*!< 0x40000000 */
  9999. #define TIM_CCR5_GC5C2 TIM_CCR5_GC5C2_Msk /*!<Group Channel 5 and Channel 2 */
  10000. #define TIM_CCR5_GC5C3_Pos (31U)
  10001. #define TIM_CCR5_GC5C3_Msk (0x1U << TIM_CCR5_GC5C3_Pos) /*!< 0x80000000 */
  10002. #define TIM_CCR5_GC5C3 TIM_CCR5_GC5C3_Msk /*!<Group Channel 5 and Channel 3 */
  10003. /******************* Bit definition for TIM_CCR6 register *******************/
  10004. #define TIM_CCR6_CCR6_Pos (0U)
  10005. #define TIM_CCR6_CCR6_Msk (0xFFFFU << TIM_CCR6_CCR6_Pos) /*!< 0x0000FFFF */
  10006. #define TIM_CCR6_CCR6 TIM_CCR6_CCR6_Msk /*!<Capture/Compare 6 Value */
  10007. /******************* Bit definition for TIM_BDTR register *******************/
  10008. #define TIM_BDTR_DTG_Pos (0U)
  10009. #define TIM_BDTR_DTG_Msk (0xFFU << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  10010. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  10011. #define TIM_BDTR_DTG_0 (0x01U << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  10012. #define TIM_BDTR_DTG_1 (0x02U << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  10013. #define TIM_BDTR_DTG_2 (0x04U << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  10014. #define TIM_BDTR_DTG_3 (0x08U << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  10015. #define TIM_BDTR_DTG_4 (0x10U << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  10016. #define TIM_BDTR_DTG_5 (0x20U << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  10017. #define TIM_BDTR_DTG_6 (0x40U << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  10018. #define TIM_BDTR_DTG_7 (0x80U << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  10019. #define TIM_BDTR_LOCK_Pos (8U)
  10020. #define TIM_BDTR_LOCK_Msk (0x3U << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  10021. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  10022. #define TIM_BDTR_LOCK_0 (0x1U << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  10023. #define TIM_BDTR_LOCK_1 (0x2U << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  10024. #define TIM_BDTR_OSSI_Pos (10U)
  10025. #define TIM_BDTR_OSSI_Msk (0x1U << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  10026. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  10027. #define TIM_BDTR_OSSR_Pos (11U)
  10028. #define TIM_BDTR_OSSR_Msk (0x1U << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  10029. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  10030. #define TIM_BDTR_BKE_Pos (12U)
  10031. #define TIM_BDTR_BKE_Msk (0x1U << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  10032. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break1 */
  10033. #define TIM_BDTR_BKP_Pos (13U)
  10034. #define TIM_BDTR_BKP_Msk (0x1U << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  10035. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break1 */
  10036. #define TIM_BDTR_AOE_Pos (14U)
  10037. #define TIM_BDTR_AOE_Msk (0x1U << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  10038. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  10039. #define TIM_BDTR_MOE_Pos (15U)
  10040. #define TIM_BDTR_MOE_Msk (0x1U << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  10041. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  10042. #define TIM_BDTR_BKF_Pos (16U)
  10043. #define TIM_BDTR_BKF_Msk (0xFU << TIM_BDTR_BKF_Pos) /*!< 0x000F0000 */
  10044. #define TIM_BDTR_BKF TIM_BDTR_BKF_Msk /*!<Break Filter for Break1 */
  10045. #define TIM_BDTR_BK2F_Pos (20U)
  10046. #define TIM_BDTR_BK2F_Msk (0xFU << TIM_BDTR_BK2F_Pos) /*!< 0x00F00000 */
  10047. #define TIM_BDTR_BK2F TIM_BDTR_BK2F_Msk /*!<Break Filter for Break2 */
  10048. #define TIM_BDTR_BK2E_Pos (24U)
  10049. #define TIM_BDTR_BK2E_Msk (0x1U << TIM_BDTR_BK2E_Pos) /*!< 0x01000000 */
  10050. #define TIM_BDTR_BK2E TIM_BDTR_BK2E_Msk /*!<Break enable for Break2 */
  10051. #define TIM_BDTR_BK2P_Pos (25U)
  10052. #define TIM_BDTR_BK2P_Msk (0x1U << TIM_BDTR_BK2P_Pos) /*!< 0x02000000 */
  10053. #define TIM_BDTR_BK2P TIM_BDTR_BK2P_Msk /*!<Break Polarity for Break2 */
  10054. /******************* Bit definition for TIM_DCR register ********************/
  10055. #define TIM_DCR_DBA_Pos (0U)
  10056. #define TIM_DCR_DBA_Msk (0x1FU << TIM_DCR_DBA_Pos) /*!< 0x0000001F */
  10057. #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */
  10058. #define TIM_DCR_DBA_0 (0x01U << TIM_DCR_DBA_Pos) /*!< 0x00000001 */
  10059. #define TIM_DCR_DBA_1 (0x02U << TIM_DCR_DBA_Pos) /*!< 0x00000002 */
  10060. #define TIM_DCR_DBA_2 (0x04U << TIM_DCR_DBA_Pos) /*!< 0x00000004 */
  10061. #define TIM_DCR_DBA_3 (0x08U << TIM_DCR_DBA_Pos) /*!< 0x00000008 */
  10062. #define TIM_DCR_DBA_4 (0x10U << TIM_DCR_DBA_Pos) /*!< 0x00000010 */
  10063. #define TIM_DCR_DBL_Pos (8U)
  10064. #define TIM_DCR_DBL_Msk (0x1FU << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */
  10065. #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */
  10066. #define TIM_DCR_DBL_0 (0x01U << TIM_DCR_DBL_Pos) /*!< 0x00000100 */
  10067. #define TIM_DCR_DBL_1 (0x02U << TIM_DCR_DBL_Pos) /*!< 0x00000200 */
  10068. #define TIM_DCR_DBL_2 (0x04U << TIM_DCR_DBL_Pos) /*!< 0x00000400 */
  10069. #define TIM_DCR_DBL_3 (0x08U << TIM_DCR_DBL_Pos) /*!< 0x00000800 */
  10070. #define TIM_DCR_DBL_4 (0x10U << TIM_DCR_DBL_Pos) /*!< 0x00001000 */
  10071. /******************* Bit definition for TIM_DMAR register *******************/
  10072. #define TIM_DMAR_DMAB_Pos (0U)
  10073. #define TIM_DMAR_DMAB_Msk (0xFFFFU << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */
  10074. #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */
  10075. /******************* Bit definition for TIM16_OR register *********************/
  10076. #define TIM16_OR_TI1_RMP_Pos (6U)
  10077. #define TIM16_OR_TI1_RMP_Msk (0x3U << TIM16_OR_TI1_RMP_Pos) /*!< 0x000000C0 */
  10078. #define TIM16_OR_TI1_RMP TIM16_OR_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM16 Input 1 remap) */
  10079. #define TIM16_OR_TI1_RMP_0 (0x1U << TIM16_OR_TI1_RMP_Pos) /*!< 0x00000040 */
  10080. #define TIM16_OR_TI1_RMP_1 (0x2U << TIM16_OR_TI1_RMP_Pos) /*!< 0x00000080 */
  10081. /******************* Bit definition for TIM1_OR register *********************/
  10082. #define TIM1_OR_ETR_RMP_Pos (0U)
  10083. #define TIM1_OR_ETR_RMP_Msk (0xFU << TIM1_OR_ETR_RMP_Pos) /*!< 0x0000000F */
  10084. #define TIM1_OR_ETR_RMP TIM1_OR_ETR_RMP_Msk /*!<ETR_RMP[3:0] bits (TIM1 ETR remap) */
  10085. #define TIM1_OR_ETR_RMP_0 (0x1U << TIM1_OR_ETR_RMP_Pos) /*!< 0x00000001 */
  10086. #define TIM1_OR_ETR_RMP_1 (0x2U << TIM1_OR_ETR_RMP_Pos) /*!< 0x00000002 */
  10087. #define TIM1_OR_ETR_RMP_2 (0x4U << TIM1_OR_ETR_RMP_Pos) /*!< 0x00000004 */
  10088. #define TIM1_OR_ETR_RMP_3 (0x8U << TIM1_OR_ETR_RMP_Pos) /*!< 0x00000008 */
  10089. /****************** Bit definition for TIM_CCMR3 register *******************/
  10090. #define TIM_CCMR3_OC5FE_Pos (2U)
  10091. #define TIM_CCMR3_OC5FE_Msk (0x1U << TIM_CCMR3_OC5FE_Pos) /*!< 0x00000004 */
  10092. #define TIM_CCMR3_OC5FE TIM_CCMR3_OC5FE_Msk /*!<Output Compare 5 Fast enable */
  10093. #define TIM_CCMR3_OC5PE_Pos (3U)
  10094. #define TIM_CCMR3_OC5PE_Msk (0x1U << TIM_CCMR3_OC5PE_Pos) /*!< 0x00000008 */
  10095. #define TIM_CCMR3_OC5PE TIM_CCMR3_OC5PE_Msk /*!<Output Compare 5 Preload enable */
  10096. #define TIM_CCMR3_OC5M_Pos (4U)
  10097. #define TIM_CCMR3_OC5M_Msk (0x1007U << TIM_CCMR3_OC5M_Pos) /*!< 0x00010070 */
  10098. #define TIM_CCMR3_OC5M TIM_CCMR3_OC5M_Msk /*!<OC5M[2:0] bits (Output Compare 5 Mode) */
  10099. #define TIM_CCMR3_OC5M_0 (0x0001U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000010 */
  10100. #define TIM_CCMR3_OC5M_1 (0x0002U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000020 */
  10101. #define TIM_CCMR3_OC5M_2 (0x0004U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000040 */
  10102. #define TIM_CCMR3_OC5M_3 (0x1000U << TIM_CCMR3_OC5M_Pos) /*!< 0x00010000 */
  10103. #define TIM_CCMR3_OC5CE_Pos (7U)
  10104. #define TIM_CCMR3_OC5CE_Msk (0x1U << TIM_CCMR3_OC5CE_Pos) /*!< 0x00000080 */
  10105. #define TIM_CCMR3_OC5CE TIM_CCMR3_OC5CE_Msk /*!<Output Compare 5 Clear Enable */
  10106. #define TIM_CCMR3_OC6FE_Pos (10U)
  10107. #define TIM_CCMR3_OC6FE_Msk (0x1U << TIM_CCMR3_OC6FE_Pos) /*!< 0x00000400 */
  10108. #define TIM_CCMR3_OC6FE TIM_CCMR3_OC6FE_Msk /*!<Output Compare 6 Fast enable */
  10109. #define TIM_CCMR3_OC6PE_Pos (11U)
  10110. #define TIM_CCMR3_OC6PE_Msk (0x1U << TIM_CCMR3_OC6PE_Pos) /*!< 0x00000800 */
  10111. #define TIM_CCMR3_OC6PE TIM_CCMR3_OC6PE_Msk /*!<Output Compare 6 Preload enable */
  10112. #define TIM_CCMR3_OC6M_Pos (12U)
  10113. #define TIM_CCMR3_OC6M_Msk (0x1007U << TIM_CCMR3_OC6M_Pos) /*!< 0x01007000 */
  10114. #define TIM_CCMR3_OC6M TIM_CCMR3_OC6M_Msk /*!<OC6M[2:0] bits (Output Compare 6 Mode) */
  10115. #define TIM_CCMR3_OC6M_0 (0x0001U << TIM_CCMR3_OC6M_Pos) /*!< 0x00001000 */
  10116. #define TIM_CCMR3_OC6M_1 (0x0002U << TIM_CCMR3_OC6M_Pos) /*!< 0x00002000 */
  10117. #define TIM_CCMR3_OC6M_2 (0x0004U << TIM_CCMR3_OC6M_Pos) /*!< 0x00004000 */
  10118. #define TIM_CCMR3_OC6M_3 (0x1000U << TIM_CCMR3_OC6M_Pos) /*!< 0x01000000 */
  10119. #define TIM_CCMR3_OC6CE_Pos (15U)
  10120. #define TIM_CCMR3_OC6CE_Msk (0x1U << TIM_CCMR3_OC6CE_Pos) /*!< 0x00008000 */
  10121. #define TIM_CCMR3_OC6CE TIM_CCMR3_OC6CE_Msk /*!<Output Compare 6 Clear Enable */
  10122. /******************************************************************************/
  10123. /* */
  10124. /* Touch Sensing Controller (TSC) */
  10125. /* */
  10126. /******************************************************************************/
  10127. /******************* Bit definition for TSC_CR register *********************/
  10128. #define TSC_CR_TSCE_Pos (0U)
  10129. #define TSC_CR_TSCE_Msk (0x1U << TSC_CR_TSCE_Pos) /*!< 0x00000001 */
  10130. #define TSC_CR_TSCE TSC_CR_TSCE_Msk /*!<Touch sensing controller enable */
  10131. #define TSC_CR_START_Pos (1U)
  10132. #define TSC_CR_START_Msk (0x1U << TSC_CR_START_Pos) /*!< 0x00000002 */
  10133. #define TSC_CR_START TSC_CR_START_Msk /*!<Start acquisition */
  10134. #define TSC_CR_AM_Pos (2U)
  10135. #define TSC_CR_AM_Msk (0x1U << TSC_CR_AM_Pos) /*!< 0x00000004 */
  10136. #define TSC_CR_AM TSC_CR_AM_Msk /*!<Acquisition mode */
  10137. #define TSC_CR_SYNCPOL_Pos (3U)
  10138. #define TSC_CR_SYNCPOL_Msk (0x1U << TSC_CR_SYNCPOL_Pos) /*!< 0x00000008 */
  10139. #define TSC_CR_SYNCPOL TSC_CR_SYNCPOL_Msk /*!<Synchronization pin polarity */
  10140. #define TSC_CR_IODEF_Pos (4U)
  10141. #define TSC_CR_IODEF_Msk (0x1U << TSC_CR_IODEF_Pos) /*!< 0x00000010 */
  10142. #define TSC_CR_IODEF TSC_CR_IODEF_Msk /*!<IO default mode */
  10143. #define TSC_CR_MCV_Pos (5U)
  10144. #define TSC_CR_MCV_Msk (0x7U << TSC_CR_MCV_Pos) /*!< 0x000000E0 */
  10145. #define TSC_CR_MCV TSC_CR_MCV_Msk /*!<MCV[2:0] bits (Max Count Value) */
  10146. #define TSC_CR_MCV_0 (0x1U << TSC_CR_MCV_Pos) /*!< 0x00000020 */
  10147. #define TSC_CR_MCV_1 (0x2U << TSC_CR_MCV_Pos) /*!< 0x00000040 */
  10148. #define TSC_CR_MCV_2 (0x4U << TSC_CR_MCV_Pos) /*!< 0x00000080 */
  10149. #define TSC_CR_PGPSC_Pos (12U)
  10150. #define TSC_CR_PGPSC_Msk (0x7U << TSC_CR_PGPSC_Pos) /*!< 0x00007000 */
  10151. #define TSC_CR_PGPSC TSC_CR_PGPSC_Msk /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
  10152. #define TSC_CR_PGPSC_0 (0x1U << TSC_CR_PGPSC_Pos) /*!< 0x00001000 */
  10153. #define TSC_CR_PGPSC_1 (0x2U << TSC_CR_PGPSC_Pos) /*!< 0x00002000 */
  10154. #define TSC_CR_PGPSC_2 (0x4U << TSC_CR_PGPSC_Pos) /*!< 0x00004000 */
  10155. #define TSC_CR_SSPSC_Pos (15U)
  10156. #define TSC_CR_SSPSC_Msk (0x1U << TSC_CR_SSPSC_Pos) /*!< 0x00008000 */
  10157. #define TSC_CR_SSPSC TSC_CR_SSPSC_Msk /*!<Spread Spectrum Prescaler */
  10158. #define TSC_CR_SSE_Pos (16U)
  10159. #define TSC_CR_SSE_Msk (0x1U << TSC_CR_SSE_Pos) /*!< 0x00010000 */
  10160. #define TSC_CR_SSE TSC_CR_SSE_Msk /*!<Spread Spectrum Enable */
  10161. #define TSC_CR_SSD_Pos (17U)
  10162. #define TSC_CR_SSD_Msk (0x7FU << TSC_CR_SSD_Pos) /*!< 0x00FE0000 */
  10163. #define TSC_CR_SSD TSC_CR_SSD_Msk /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
  10164. #define TSC_CR_SSD_0 (0x01U << TSC_CR_SSD_Pos) /*!< 0x00020000 */
  10165. #define TSC_CR_SSD_1 (0x02U << TSC_CR_SSD_Pos) /*!< 0x00040000 */
  10166. #define TSC_CR_SSD_2 (0x04U << TSC_CR_SSD_Pos) /*!< 0x00080000 */
  10167. #define TSC_CR_SSD_3 (0x08U << TSC_CR_SSD_Pos) /*!< 0x00100000 */
  10168. #define TSC_CR_SSD_4 (0x10U << TSC_CR_SSD_Pos) /*!< 0x00200000 */
  10169. #define TSC_CR_SSD_5 (0x20U << TSC_CR_SSD_Pos) /*!< 0x00400000 */
  10170. #define TSC_CR_SSD_6 (0x40U << TSC_CR_SSD_Pos) /*!< 0x00800000 */
  10171. #define TSC_CR_CTPL_Pos (24U)
  10172. #define TSC_CR_CTPL_Msk (0xFU << TSC_CR_CTPL_Pos) /*!< 0x0F000000 */
  10173. #define TSC_CR_CTPL TSC_CR_CTPL_Msk /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
  10174. #define TSC_CR_CTPL_0 (0x1U << TSC_CR_CTPL_Pos) /*!< 0x01000000 */
  10175. #define TSC_CR_CTPL_1 (0x2U << TSC_CR_CTPL_Pos) /*!< 0x02000000 */
  10176. #define TSC_CR_CTPL_2 (0x4U << TSC_CR_CTPL_Pos) /*!< 0x04000000 */
  10177. #define TSC_CR_CTPL_3 (0x8U << TSC_CR_CTPL_Pos) /*!< 0x08000000 */
  10178. #define TSC_CR_CTPH_Pos (28U)
  10179. #define TSC_CR_CTPH_Msk (0xFU << TSC_CR_CTPH_Pos) /*!< 0xF0000000 */
  10180. #define TSC_CR_CTPH TSC_CR_CTPH_Msk /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
  10181. #define TSC_CR_CTPH_0 (0x1U << TSC_CR_CTPH_Pos) /*!< 0x10000000 */
  10182. #define TSC_CR_CTPH_1 (0x2U << TSC_CR_CTPH_Pos) /*!< 0x20000000 */
  10183. #define TSC_CR_CTPH_2 (0x4U << TSC_CR_CTPH_Pos) /*!< 0x40000000 */
  10184. #define TSC_CR_CTPH_3 (0x8U << TSC_CR_CTPH_Pos) /*!< 0x80000000 */
  10185. /******************* Bit definition for TSC_IER register ********************/
  10186. #define TSC_IER_EOAIE_Pos (0U)
  10187. #define TSC_IER_EOAIE_Msk (0x1U << TSC_IER_EOAIE_Pos) /*!< 0x00000001 */
  10188. #define TSC_IER_EOAIE TSC_IER_EOAIE_Msk /*!<End of acquisition interrupt enable */
  10189. #define TSC_IER_MCEIE_Pos (1U)
  10190. #define TSC_IER_MCEIE_Msk (0x1U << TSC_IER_MCEIE_Pos) /*!< 0x00000002 */
  10191. #define TSC_IER_MCEIE TSC_IER_MCEIE_Msk /*!<Max count error interrupt enable */
  10192. /******************* Bit definition for TSC_ICR register ********************/
  10193. #define TSC_ICR_EOAIC_Pos (0U)
  10194. #define TSC_ICR_EOAIC_Msk (0x1U << TSC_ICR_EOAIC_Pos) /*!< 0x00000001 */
  10195. #define TSC_ICR_EOAIC TSC_ICR_EOAIC_Msk /*!<End of acquisition interrupt clear */
  10196. #define TSC_ICR_MCEIC_Pos (1U)
  10197. #define TSC_ICR_MCEIC_Msk (0x1U << TSC_ICR_MCEIC_Pos) /*!< 0x00000002 */
  10198. #define TSC_ICR_MCEIC TSC_ICR_MCEIC_Msk /*!<Max count error interrupt clear */
  10199. /******************* Bit definition for TSC_ISR register ********************/
  10200. #define TSC_ISR_EOAF_Pos (0U)
  10201. #define TSC_ISR_EOAF_Msk (0x1U << TSC_ISR_EOAF_Pos) /*!< 0x00000001 */
  10202. #define TSC_ISR_EOAF TSC_ISR_EOAF_Msk /*!<End of acquisition flag */
  10203. #define TSC_ISR_MCEF_Pos (1U)
  10204. #define TSC_ISR_MCEF_Msk (0x1U << TSC_ISR_MCEF_Pos) /*!< 0x00000002 */
  10205. #define TSC_ISR_MCEF TSC_ISR_MCEF_Msk /*!<Max count error flag */
  10206. /******************* Bit definition for TSC_IOHCR register ******************/
  10207. #define TSC_IOHCR_G1_IO1_Pos (0U)
  10208. #define TSC_IOHCR_G1_IO1_Msk (0x1U << TSC_IOHCR_G1_IO1_Pos) /*!< 0x00000001 */
  10209. #define TSC_IOHCR_G1_IO1 TSC_IOHCR_G1_IO1_Msk /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
  10210. #define TSC_IOHCR_G1_IO2_Pos (1U)
  10211. #define TSC_IOHCR_G1_IO2_Msk (0x1U << TSC_IOHCR_G1_IO2_Pos) /*!< 0x00000002 */
  10212. #define TSC_IOHCR_G1_IO2 TSC_IOHCR_G1_IO2_Msk /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
  10213. #define TSC_IOHCR_G1_IO3_Pos (2U)
  10214. #define TSC_IOHCR_G1_IO3_Msk (0x1U << TSC_IOHCR_G1_IO3_Pos) /*!< 0x00000004 */
  10215. #define TSC_IOHCR_G1_IO3 TSC_IOHCR_G1_IO3_Msk /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
  10216. #define TSC_IOHCR_G1_IO4_Pos (3U)
  10217. #define TSC_IOHCR_G1_IO4_Msk (0x1U << TSC_IOHCR_G1_IO4_Pos) /*!< 0x00000008 */
  10218. #define TSC_IOHCR_G1_IO4 TSC_IOHCR_G1_IO4_Msk /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
  10219. #define TSC_IOHCR_G2_IO1_Pos (4U)
  10220. #define TSC_IOHCR_G2_IO1_Msk (0x1U << TSC_IOHCR_G2_IO1_Pos) /*!< 0x00000010 */
  10221. #define TSC_IOHCR_G2_IO1 TSC_IOHCR_G2_IO1_Msk /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
  10222. #define TSC_IOHCR_G2_IO2_Pos (5U)
  10223. #define TSC_IOHCR_G2_IO2_Msk (0x1U << TSC_IOHCR_G2_IO2_Pos) /*!< 0x00000020 */
  10224. #define TSC_IOHCR_G2_IO2 TSC_IOHCR_G2_IO2_Msk /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
  10225. #define TSC_IOHCR_G2_IO3_Pos (6U)
  10226. #define TSC_IOHCR_G2_IO3_Msk (0x1U << TSC_IOHCR_G2_IO3_Pos) /*!< 0x00000040 */
  10227. #define TSC_IOHCR_G2_IO3 TSC_IOHCR_G2_IO3_Msk /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
  10228. #define TSC_IOHCR_G2_IO4_Pos (7U)
  10229. #define TSC_IOHCR_G2_IO4_Msk (0x1U << TSC_IOHCR_G2_IO4_Pos) /*!< 0x00000080 */
  10230. #define TSC_IOHCR_G2_IO4 TSC_IOHCR_G2_IO4_Msk /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
  10231. #define TSC_IOHCR_G3_IO1_Pos (8U)
  10232. #define TSC_IOHCR_G3_IO1_Msk (0x1U << TSC_IOHCR_G3_IO1_Pos) /*!< 0x00000100 */
  10233. #define TSC_IOHCR_G3_IO1 TSC_IOHCR_G3_IO1_Msk /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
  10234. #define TSC_IOHCR_G3_IO2_Pos (9U)
  10235. #define TSC_IOHCR_G3_IO2_Msk (0x1U << TSC_IOHCR_G3_IO2_Pos) /*!< 0x00000200 */
  10236. #define TSC_IOHCR_G3_IO2 TSC_IOHCR_G3_IO2_Msk /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
  10237. #define TSC_IOHCR_G3_IO3_Pos (10U)
  10238. #define TSC_IOHCR_G3_IO3_Msk (0x1U << TSC_IOHCR_G3_IO3_Pos) /*!< 0x00000400 */
  10239. #define TSC_IOHCR_G3_IO3 TSC_IOHCR_G3_IO3_Msk /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
  10240. #define TSC_IOHCR_G3_IO4_Pos (11U)
  10241. #define TSC_IOHCR_G3_IO4_Msk (0x1U << TSC_IOHCR_G3_IO4_Pos) /*!< 0x00000800 */
  10242. #define TSC_IOHCR_G3_IO4 TSC_IOHCR_G3_IO4_Msk /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
  10243. #define TSC_IOHCR_G4_IO1_Pos (12U)
  10244. #define TSC_IOHCR_G4_IO1_Msk (0x1U << TSC_IOHCR_G4_IO1_Pos) /*!< 0x00001000 */
  10245. #define TSC_IOHCR_G4_IO1 TSC_IOHCR_G4_IO1_Msk /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
  10246. #define TSC_IOHCR_G4_IO2_Pos (13U)
  10247. #define TSC_IOHCR_G4_IO2_Msk (0x1U << TSC_IOHCR_G4_IO2_Pos) /*!< 0x00002000 */
  10248. #define TSC_IOHCR_G4_IO2 TSC_IOHCR_G4_IO2_Msk /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
  10249. #define TSC_IOHCR_G4_IO3_Pos (14U)
  10250. #define TSC_IOHCR_G4_IO3_Msk (0x1U << TSC_IOHCR_G4_IO3_Pos) /*!< 0x00004000 */
  10251. #define TSC_IOHCR_G4_IO3 TSC_IOHCR_G4_IO3_Msk /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
  10252. #define TSC_IOHCR_G4_IO4_Pos (15U)
  10253. #define TSC_IOHCR_G4_IO4_Msk (0x1U << TSC_IOHCR_G4_IO4_Pos) /*!< 0x00008000 */
  10254. #define TSC_IOHCR_G4_IO4 TSC_IOHCR_G4_IO4_Msk /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
  10255. #define TSC_IOHCR_G5_IO1_Pos (16U)
  10256. #define TSC_IOHCR_G5_IO1_Msk (0x1U << TSC_IOHCR_G5_IO1_Pos) /*!< 0x00010000 */
  10257. #define TSC_IOHCR_G5_IO1 TSC_IOHCR_G5_IO1_Msk /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
  10258. #define TSC_IOHCR_G5_IO2_Pos (17U)
  10259. #define TSC_IOHCR_G5_IO2_Msk (0x1U << TSC_IOHCR_G5_IO2_Pos) /*!< 0x00020000 */
  10260. #define TSC_IOHCR_G5_IO2 TSC_IOHCR_G5_IO2_Msk /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
  10261. #define TSC_IOHCR_G5_IO3_Pos (18U)
  10262. #define TSC_IOHCR_G5_IO3_Msk (0x1U << TSC_IOHCR_G5_IO3_Pos) /*!< 0x00040000 */
  10263. #define TSC_IOHCR_G5_IO3 TSC_IOHCR_G5_IO3_Msk /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
  10264. #define TSC_IOHCR_G5_IO4_Pos (19U)
  10265. #define TSC_IOHCR_G5_IO4_Msk (0x1U << TSC_IOHCR_G5_IO4_Pos) /*!< 0x00080000 */
  10266. #define TSC_IOHCR_G5_IO4 TSC_IOHCR_G5_IO4_Msk /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
  10267. #define TSC_IOHCR_G6_IO1_Pos (20U)
  10268. #define TSC_IOHCR_G6_IO1_Msk (0x1U << TSC_IOHCR_G6_IO1_Pos) /*!< 0x00100000 */
  10269. #define TSC_IOHCR_G6_IO1 TSC_IOHCR_G6_IO1_Msk /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
  10270. #define TSC_IOHCR_G6_IO2_Pos (21U)
  10271. #define TSC_IOHCR_G6_IO2_Msk (0x1U << TSC_IOHCR_G6_IO2_Pos) /*!< 0x00200000 */
  10272. #define TSC_IOHCR_G6_IO2 TSC_IOHCR_G6_IO2_Msk /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
  10273. #define TSC_IOHCR_G6_IO3_Pos (22U)
  10274. #define TSC_IOHCR_G6_IO3_Msk (0x1U << TSC_IOHCR_G6_IO3_Pos) /*!< 0x00400000 */
  10275. #define TSC_IOHCR_G6_IO3 TSC_IOHCR_G6_IO3_Msk /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
  10276. #define TSC_IOHCR_G6_IO4_Pos (23U)
  10277. #define TSC_IOHCR_G6_IO4_Msk (0x1U << TSC_IOHCR_G6_IO4_Pos) /*!< 0x00800000 */
  10278. #define TSC_IOHCR_G6_IO4 TSC_IOHCR_G6_IO4_Msk /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
  10279. #define TSC_IOHCR_G7_IO1_Pos (24U)
  10280. #define TSC_IOHCR_G7_IO1_Msk (0x1U << TSC_IOHCR_G7_IO1_Pos) /*!< 0x01000000 */
  10281. #define TSC_IOHCR_G7_IO1 TSC_IOHCR_G7_IO1_Msk /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
  10282. #define TSC_IOHCR_G7_IO2_Pos (25U)
  10283. #define TSC_IOHCR_G7_IO2_Msk (0x1U << TSC_IOHCR_G7_IO2_Pos) /*!< 0x02000000 */
  10284. #define TSC_IOHCR_G7_IO2 TSC_IOHCR_G7_IO2_Msk /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
  10285. #define TSC_IOHCR_G7_IO3_Pos (26U)
  10286. #define TSC_IOHCR_G7_IO3_Msk (0x1U << TSC_IOHCR_G7_IO3_Pos) /*!< 0x04000000 */
  10287. #define TSC_IOHCR_G7_IO3 TSC_IOHCR_G7_IO3_Msk /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
  10288. #define TSC_IOHCR_G7_IO4_Pos (27U)
  10289. #define TSC_IOHCR_G7_IO4_Msk (0x1U << TSC_IOHCR_G7_IO4_Pos) /*!< 0x08000000 */
  10290. #define TSC_IOHCR_G7_IO4 TSC_IOHCR_G7_IO4_Msk /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
  10291. #define TSC_IOHCR_G8_IO1_Pos (28U)
  10292. #define TSC_IOHCR_G8_IO1_Msk (0x1U << TSC_IOHCR_G8_IO1_Pos) /*!< 0x10000000 */
  10293. #define TSC_IOHCR_G8_IO1 TSC_IOHCR_G8_IO1_Msk /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
  10294. #define TSC_IOHCR_G8_IO2_Pos (29U)
  10295. #define TSC_IOHCR_G8_IO2_Msk (0x1U << TSC_IOHCR_G8_IO2_Pos) /*!< 0x20000000 */
  10296. #define TSC_IOHCR_G8_IO2 TSC_IOHCR_G8_IO2_Msk /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
  10297. #define TSC_IOHCR_G8_IO3_Pos (30U)
  10298. #define TSC_IOHCR_G8_IO3_Msk (0x1U << TSC_IOHCR_G8_IO3_Pos) /*!< 0x40000000 */
  10299. #define TSC_IOHCR_G8_IO3 TSC_IOHCR_G8_IO3_Msk /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
  10300. #define TSC_IOHCR_G8_IO4_Pos (31U)
  10301. #define TSC_IOHCR_G8_IO4_Msk (0x1U << TSC_IOHCR_G8_IO4_Pos) /*!< 0x80000000 */
  10302. #define TSC_IOHCR_G8_IO4 TSC_IOHCR_G8_IO4_Msk /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
  10303. /******************* Bit definition for TSC_IOASCR register *****************/
  10304. #define TSC_IOASCR_G1_IO1_Pos (0U)
  10305. #define TSC_IOASCR_G1_IO1_Msk (0x1U << TSC_IOASCR_G1_IO1_Pos) /*!< 0x00000001 */
  10306. #define TSC_IOASCR_G1_IO1 TSC_IOASCR_G1_IO1_Msk /*!<GROUP1_IO1 analog switch enable */
  10307. #define TSC_IOASCR_G1_IO2_Pos (1U)
  10308. #define TSC_IOASCR_G1_IO2_Msk (0x1U << TSC_IOASCR_G1_IO2_Pos) /*!< 0x00000002 */
  10309. #define TSC_IOASCR_G1_IO2 TSC_IOASCR_G1_IO2_Msk /*!<GROUP1_IO2 analog switch enable */
  10310. #define TSC_IOASCR_G1_IO3_Pos (2U)
  10311. #define TSC_IOASCR_G1_IO3_Msk (0x1U << TSC_IOASCR_G1_IO3_Pos) /*!< 0x00000004 */
  10312. #define TSC_IOASCR_G1_IO3 TSC_IOASCR_G1_IO3_Msk /*!<GROUP1_IO3 analog switch enable */
  10313. #define TSC_IOASCR_G1_IO4_Pos (3U)
  10314. #define TSC_IOASCR_G1_IO4_Msk (0x1U << TSC_IOASCR_G1_IO4_Pos) /*!< 0x00000008 */
  10315. #define TSC_IOASCR_G1_IO4 TSC_IOASCR_G1_IO4_Msk /*!<GROUP1_IO4 analog switch enable */
  10316. #define TSC_IOASCR_G2_IO1_Pos (4U)
  10317. #define TSC_IOASCR_G2_IO1_Msk (0x1U << TSC_IOASCR_G2_IO1_Pos) /*!< 0x00000010 */
  10318. #define TSC_IOASCR_G2_IO1 TSC_IOASCR_G2_IO1_Msk /*!<GROUP2_IO1 analog switch enable */
  10319. #define TSC_IOASCR_G2_IO2_Pos (5U)
  10320. #define TSC_IOASCR_G2_IO2_Msk (0x1U << TSC_IOASCR_G2_IO2_Pos) /*!< 0x00000020 */
  10321. #define TSC_IOASCR_G2_IO2 TSC_IOASCR_G2_IO2_Msk /*!<GROUP2_IO2 analog switch enable */
  10322. #define TSC_IOASCR_G2_IO3_Pos (6U)
  10323. #define TSC_IOASCR_G2_IO3_Msk (0x1U << TSC_IOASCR_G2_IO3_Pos) /*!< 0x00000040 */
  10324. #define TSC_IOASCR_G2_IO3 TSC_IOASCR_G2_IO3_Msk /*!<GROUP2_IO3 analog switch enable */
  10325. #define TSC_IOASCR_G2_IO4_Pos (7U)
  10326. #define TSC_IOASCR_G2_IO4_Msk (0x1U << TSC_IOASCR_G2_IO4_Pos) /*!< 0x00000080 */
  10327. #define TSC_IOASCR_G2_IO4 TSC_IOASCR_G2_IO4_Msk /*!<GROUP2_IO4 analog switch enable */
  10328. #define TSC_IOASCR_G3_IO1_Pos (8U)
  10329. #define TSC_IOASCR_G3_IO1_Msk (0x1U << TSC_IOASCR_G3_IO1_Pos) /*!< 0x00000100 */
  10330. #define TSC_IOASCR_G3_IO1 TSC_IOASCR_G3_IO1_Msk /*!<GROUP3_IO1 analog switch enable */
  10331. #define TSC_IOASCR_G3_IO2_Pos (9U)
  10332. #define TSC_IOASCR_G3_IO2_Msk (0x1U << TSC_IOASCR_G3_IO2_Pos) /*!< 0x00000200 */
  10333. #define TSC_IOASCR_G3_IO2 TSC_IOASCR_G3_IO2_Msk /*!<GROUP3_IO2 analog switch enable */
  10334. #define TSC_IOASCR_G3_IO3_Pos (10U)
  10335. #define TSC_IOASCR_G3_IO3_Msk (0x1U << TSC_IOASCR_G3_IO3_Pos) /*!< 0x00000400 */
  10336. #define TSC_IOASCR_G3_IO3 TSC_IOASCR_G3_IO3_Msk /*!<GROUP3_IO3 analog switch enable */
  10337. #define TSC_IOASCR_G3_IO4_Pos (11U)
  10338. #define TSC_IOASCR_G3_IO4_Msk (0x1U << TSC_IOASCR_G3_IO4_Pos) /*!< 0x00000800 */
  10339. #define TSC_IOASCR_G3_IO4 TSC_IOASCR_G3_IO4_Msk /*!<GROUP3_IO4 analog switch enable */
  10340. #define TSC_IOASCR_G4_IO1_Pos (12U)
  10341. #define TSC_IOASCR_G4_IO1_Msk (0x1U << TSC_IOASCR_G4_IO1_Pos) /*!< 0x00001000 */
  10342. #define TSC_IOASCR_G4_IO1 TSC_IOASCR_G4_IO1_Msk /*!<GROUP4_IO1 analog switch enable */
  10343. #define TSC_IOASCR_G4_IO2_Pos (13U)
  10344. #define TSC_IOASCR_G4_IO2_Msk (0x1U << TSC_IOASCR_G4_IO2_Pos) /*!< 0x00002000 */
  10345. #define TSC_IOASCR_G4_IO2 TSC_IOASCR_G4_IO2_Msk /*!<GROUP4_IO2 analog switch enable */
  10346. #define TSC_IOASCR_G4_IO3_Pos (14U)
  10347. #define TSC_IOASCR_G4_IO3_Msk (0x1U << TSC_IOASCR_G4_IO3_Pos) /*!< 0x00004000 */
  10348. #define TSC_IOASCR_G4_IO3 TSC_IOASCR_G4_IO3_Msk /*!<GROUP4_IO3 analog switch enable */
  10349. #define TSC_IOASCR_G4_IO4_Pos (15U)
  10350. #define TSC_IOASCR_G4_IO4_Msk (0x1U << TSC_IOASCR_G4_IO4_Pos) /*!< 0x00008000 */
  10351. #define TSC_IOASCR_G4_IO4 TSC_IOASCR_G4_IO4_Msk /*!<GROUP4_IO4 analog switch enable */
  10352. #define TSC_IOASCR_G5_IO1_Pos (16U)
  10353. #define TSC_IOASCR_G5_IO1_Msk (0x1U << TSC_IOASCR_G5_IO1_Pos) /*!< 0x00010000 */
  10354. #define TSC_IOASCR_G5_IO1 TSC_IOASCR_G5_IO1_Msk /*!<GROUP5_IO1 analog switch enable */
  10355. #define TSC_IOASCR_G5_IO2_Pos (17U)
  10356. #define TSC_IOASCR_G5_IO2_Msk (0x1U << TSC_IOASCR_G5_IO2_Pos) /*!< 0x00020000 */
  10357. #define TSC_IOASCR_G5_IO2 TSC_IOASCR_G5_IO2_Msk /*!<GROUP5_IO2 analog switch enable */
  10358. #define TSC_IOASCR_G5_IO3_Pos (18U)
  10359. #define TSC_IOASCR_G5_IO3_Msk (0x1U << TSC_IOASCR_G5_IO3_Pos) /*!< 0x00040000 */
  10360. #define TSC_IOASCR_G5_IO3 TSC_IOASCR_G5_IO3_Msk /*!<GROUP5_IO3 analog switch enable */
  10361. #define TSC_IOASCR_G5_IO4_Pos (19U)
  10362. #define TSC_IOASCR_G5_IO4_Msk (0x1U << TSC_IOASCR_G5_IO4_Pos) /*!< 0x00080000 */
  10363. #define TSC_IOASCR_G5_IO4 TSC_IOASCR_G5_IO4_Msk /*!<GROUP5_IO4 analog switch enable */
  10364. #define TSC_IOASCR_G6_IO1_Pos (20U)
  10365. #define TSC_IOASCR_G6_IO1_Msk (0x1U << TSC_IOASCR_G6_IO1_Pos) /*!< 0x00100000 */
  10366. #define TSC_IOASCR_G6_IO1 TSC_IOASCR_G6_IO1_Msk /*!<GROUP6_IO1 analog switch enable */
  10367. #define TSC_IOASCR_G6_IO2_Pos (21U)
  10368. #define TSC_IOASCR_G6_IO2_Msk (0x1U << TSC_IOASCR_G6_IO2_Pos) /*!< 0x00200000 */
  10369. #define TSC_IOASCR_G6_IO2 TSC_IOASCR_G6_IO2_Msk /*!<GROUP6_IO2 analog switch enable */
  10370. #define TSC_IOASCR_G6_IO3_Pos (22U)
  10371. #define TSC_IOASCR_G6_IO3_Msk (0x1U << TSC_IOASCR_G6_IO3_Pos) /*!< 0x00400000 */
  10372. #define TSC_IOASCR_G6_IO3 TSC_IOASCR_G6_IO3_Msk /*!<GROUP6_IO3 analog switch enable */
  10373. #define TSC_IOASCR_G6_IO4_Pos (23U)
  10374. #define TSC_IOASCR_G6_IO4_Msk (0x1U << TSC_IOASCR_G6_IO4_Pos) /*!< 0x00800000 */
  10375. #define TSC_IOASCR_G6_IO4 TSC_IOASCR_G6_IO4_Msk /*!<GROUP6_IO4 analog switch enable */
  10376. #define TSC_IOASCR_G7_IO1_Pos (24U)
  10377. #define TSC_IOASCR_G7_IO1_Msk (0x1U << TSC_IOASCR_G7_IO1_Pos) /*!< 0x01000000 */
  10378. #define TSC_IOASCR_G7_IO1 TSC_IOASCR_G7_IO1_Msk /*!<GROUP7_IO1 analog switch enable */
  10379. #define TSC_IOASCR_G7_IO2_Pos (25U)
  10380. #define TSC_IOASCR_G7_IO2_Msk (0x1U << TSC_IOASCR_G7_IO2_Pos) /*!< 0x02000000 */
  10381. #define TSC_IOASCR_G7_IO2 TSC_IOASCR_G7_IO2_Msk /*!<GROUP7_IO2 analog switch enable */
  10382. #define TSC_IOASCR_G7_IO3_Pos (26U)
  10383. #define TSC_IOASCR_G7_IO3_Msk (0x1U << TSC_IOASCR_G7_IO3_Pos) /*!< 0x04000000 */
  10384. #define TSC_IOASCR_G7_IO3 TSC_IOASCR_G7_IO3_Msk /*!<GROUP7_IO3 analog switch enable */
  10385. #define TSC_IOASCR_G7_IO4_Pos (27U)
  10386. #define TSC_IOASCR_G7_IO4_Msk (0x1U << TSC_IOASCR_G7_IO4_Pos) /*!< 0x08000000 */
  10387. #define TSC_IOASCR_G7_IO4 TSC_IOASCR_G7_IO4_Msk /*!<GROUP7_IO4 analog switch enable */
  10388. #define TSC_IOASCR_G8_IO1_Pos (28U)
  10389. #define TSC_IOASCR_G8_IO1_Msk (0x1U << TSC_IOASCR_G8_IO1_Pos) /*!< 0x10000000 */
  10390. #define TSC_IOASCR_G8_IO1 TSC_IOASCR_G8_IO1_Msk /*!<GROUP8_IO1 analog switch enable */
  10391. #define TSC_IOASCR_G8_IO2_Pos (29U)
  10392. #define TSC_IOASCR_G8_IO2_Msk (0x1U << TSC_IOASCR_G8_IO2_Pos) /*!< 0x20000000 */
  10393. #define TSC_IOASCR_G8_IO2 TSC_IOASCR_G8_IO2_Msk /*!<GROUP8_IO2 analog switch enable */
  10394. #define TSC_IOASCR_G8_IO3_Pos (30U)
  10395. #define TSC_IOASCR_G8_IO3_Msk (0x1U << TSC_IOASCR_G8_IO3_Pos) /*!< 0x40000000 */
  10396. #define TSC_IOASCR_G8_IO3 TSC_IOASCR_G8_IO3_Msk /*!<GROUP8_IO3 analog switch enable */
  10397. #define TSC_IOASCR_G8_IO4_Pos (31U)
  10398. #define TSC_IOASCR_G8_IO4_Msk (0x1U << TSC_IOASCR_G8_IO4_Pos) /*!< 0x80000000 */
  10399. #define TSC_IOASCR_G8_IO4 TSC_IOASCR_G8_IO4_Msk /*!<GROUP8_IO4 analog switch enable */
  10400. /******************* Bit definition for TSC_IOSCR register ******************/
  10401. #define TSC_IOSCR_G1_IO1_Pos (0U)
  10402. #define TSC_IOSCR_G1_IO1_Msk (0x1U << TSC_IOSCR_G1_IO1_Pos) /*!< 0x00000001 */
  10403. #define TSC_IOSCR_G1_IO1 TSC_IOSCR_G1_IO1_Msk /*!<GROUP1_IO1 sampling mode */
  10404. #define TSC_IOSCR_G1_IO2_Pos (1U)
  10405. #define TSC_IOSCR_G1_IO2_Msk (0x1U << TSC_IOSCR_G1_IO2_Pos) /*!< 0x00000002 */
  10406. #define TSC_IOSCR_G1_IO2 TSC_IOSCR_G1_IO2_Msk /*!<GROUP1_IO2 sampling mode */
  10407. #define TSC_IOSCR_G1_IO3_Pos (2U)
  10408. #define TSC_IOSCR_G1_IO3_Msk (0x1U << TSC_IOSCR_G1_IO3_Pos) /*!< 0x00000004 */
  10409. #define TSC_IOSCR_G1_IO3 TSC_IOSCR_G1_IO3_Msk /*!<GROUP1_IO3 sampling mode */
  10410. #define TSC_IOSCR_G1_IO4_Pos (3U)
  10411. #define TSC_IOSCR_G1_IO4_Msk (0x1U << TSC_IOSCR_G1_IO4_Pos) /*!< 0x00000008 */
  10412. #define TSC_IOSCR_G1_IO4 TSC_IOSCR_G1_IO4_Msk /*!<GROUP1_IO4 sampling mode */
  10413. #define TSC_IOSCR_G2_IO1_Pos (4U)
  10414. #define TSC_IOSCR_G2_IO1_Msk (0x1U << TSC_IOSCR_G2_IO1_Pos) /*!< 0x00000010 */
  10415. #define TSC_IOSCR_G2_IO1 TSC_IOSCR_G2_IO1_Msk /*!<GROUP2_IO1 sampling mode */
  10416. #define TSC_IOSCR_G2_IO2_Pos (5U)
  10417. #define TSC_IOSCR_G2_IO2_Msk (0x1U << TSC_IOSCR_G2_IO2_Pos) /*!< 0x00000020 */
  10418. #define TSC_IOSCR_G2_IO2 TSC_IOSCR_G2_IO2_Msk /*!<GROUP2_IO2 sampling mode */
  10419. #define TSC_IOSCR_G2_IO3_Pos (6U)
  10420. #define TSC_IOSCR_G2_IO3_Msk (0x1U << TSC_IOSCR_G2_IO3_Pos) /*!< 0x00000040 */
  10421. #define TSC_IOSCR_G2_IO3 TSC_IOSCR_G2_IO3_Msk /*!<GROUP2_IO3 sampling mode */
  10422. #define TSC_IOSCR_G2_IO4_Pos (7U)
  10423. #define TSC_IOSCR_G2_IO4_Msk (0x1U << TSC_IOSCR_G2_IO4_Pos) /*!< 0x00000080 */
  10424. #define TSC_IOSCR_G2_IO4 TSC_IOSCR_G2_IO4_Msk /*!<GROUP2_IO4 sampling mode */
  10425. #define TSC_IOSCR_G3_IO1_Pos (8U)
  10426. #define TSC_IOSCR_G3_IO1_Msk (0x1U << TSC_IOSCR_G3_IO1_Pos) /*!< 0x00000100 */
  10427. #define TSC_IOSCR_G3_IO1 TSC_IOSCR_G3_IO1_Msk /*!<GROUP3_IO1 sampling mode */
  10428. #define TSC_IOSCR_G3_IO2_Pos (9U)
  10429. #define TSC_IOSCR_G3_IO2_Msk (0x1U << TSC_IOSCR_G3_IO2_Pos) /*!< 0x00000200 */
  10430. #define TSC_IOSCR_G3_IO2 TSC_IOSCR_G3_IO2_Msk /*!<GROUP3_IO2 sampling mode */
  10431. #define TSC_IOSCR_G3_IO3_Pos (10U)
  10432. #define TSC_IOSCR_G3_IO3_Msk (0x1U << TSC_IOSCR_G3_IO3_Pos) /*!< 0x00000400 */
  10433. #define TSC_IOSCR_G3_IO3 TSC_IOSCR_G3_IO3_Msk /*!<GROUP3_IO3 sampling mode */
  10434. #define TSC_IOSCR_G3_IO4_Pos (11U)
  10435. #define TSC_IOSCR_G3_IO4_Msk (0x1U << TSC_IOSCR_G3_IO4_Pos) /*!< 0x00000800 */
  10436. #define TSC_IOSCR_G3_IO4 TSC_IOSCR_G3_IO4_Msk /*!<GROUP3_IO4 sampling mode */
  10437. #define TSC_IOSCR_G4_IO1_Pos (12U)
  10438. #define TSC_IOSCR_G4_IO1_Msk (0x1U << TSC_IOSCR_G4_IO1_Pos) /*!< 0x00001000 */
  10439. #define TSC_IOSCR_G4_IO1 TSC_IOSCR_G4_IO1_Msk /*!<GROUP4_IO1 sampling mode */
  10440. #define TSC_IOSCR_G4_IO2_Pos (13U)
  10441. #define TSC_IOSCR_G4_IO2_Msk (0x1U << TSC_IOSCR_G4_IO2_Pos) /*!< 0x00002000 */
  10442. #define TSC_IOSCR_G4_IO2 TSC_IOSCR_G4_IO2_Msk /*!<GROUP4_IO2 sampling mode */
  10443. #define TSC_IOSCR_G4_IO3_Pos (14U)
  10444. #define TSC_IOSCR_G4_IO3_Msk (0x1U << TSC_IOSCR_G4_IO3_Pos) /*!< 0x00004000 */
  10445. #define TSC_IOSCR_G4_IO3 TSC_IOSCR_G4_IO3_Msk /*!<GROUP4_IO3 sampling mode */
  10446. #define TSC_IOSCR_G4_IO4_Pos (15U)
  10447. #define TSC_IOSCR_G4_IO4_Msk (0x1U << TSC_IOSCR_G4_IO4_Pos) /*!< 0x00008000 */
  10448. #define TSC_IOSCR_G4_IO4 TSC_IOSCR_G4_IO4_Msk /*!<GROUP4_IO4 sampling mode */
  10449. #define TSC_IOSCR_G5_IO1_Pos (16U)
  10450. #define TSC_IOSCR_G5_IO1_Msk (0x1U << TSC_IOSCR_G5_IO1_Pos) /*!< 0x00010000 */
  10451. #define TSC_IOSCR_G5_IO1 TSC_IOSCR_G5_IO1_Msk /*!<GROUP5_IO1 sampling mode */
  10452. #define TSC_IOSCR_G5_IO2_Pos (17U)
  10453. #define TSC_IOSCR_G5_IO2_Msk (0x1U << TSC_IOSCR_G5_IO2_Pos) /*!< 0x00020000 */
  10454. #define TSC_IOSCR_G5_IO2 TSC_IOSCR_G5_IO2_Msk /*!<GROUP5_IO2 sampling mode */
  10455. #define TSC_IOSCR_G5_IO3_Pos (18U)
  10456. #define TSC_IOSCR_G5_IO3_Msk (0x1U << TSC_IOSCR_G5_IO3_Pos) /*!< 0x00040000 */
  10457. #define TSC_IOSCR_G5_IO3 TSC_IOSCR_G5_IO3_Msk /*!<GROUP5_IO3 sampling mode */
  10458. #define TSC_IOSCR_G5_IO4_Pos (19U)
  10459. #define TSC_IOSCR_G5_IO4_Msk (0x1U << TSC_IOSCR_G5_IO4_Pos) /*!< 0x00080000 */
  10460. #define TSC_IOSCR_G5_IO4 TSC_IOSCR_G5_IO4_Msk /*!<GROUP5_IO4 sampling mode */
  10461. #define TSC_IOSCR_G6_IO1_Pos (20U)
  10462. #define TSC_IOSCR_G6_IO1_Msk (0x1U << TSC_IOSCR_G6_IO1_Pos) /*!< 0x00100000 */
  10463. #define TSC_IOSCR_G6_IO1 TSC_IOSCR_G6_IO1_Msk /*!<GROUP6_IO1 sampling mode */
  10464. #define TSC_IOSCR_G6_IO2_Pos (21U)
  10465. #define TSC_IOSCR_G6_IO2_Msk (0x1U << TSC_IOSCR_G6_IO2_Pos) /*!< 0x00200000 */
  10466. #define TSC_IOSCR_G6_IO2 TSC_IOSCR_G6_IO2_Msk /*!<GROUP6_IO2 sampling mode */
  10467. #define TSC_IOSCR_G6_IO3_Pos (22U)
  10468. #define TSC_IOSCR_G6_IO3_Msk (0x1U << TSC_IOSCR_G6_IO3_Pos) /*!< 0x00400000 */
  10469. #define TSC_IOSCR_G6_IO3 TSC_IOSCR_G6_IO3_Msk /*!<GROUP6_IO3 sampling mode */
  10470. #define TSC_IOSCR_G6_IO4_Pos (23U)
  10471. #define TSC_IOSCR_G6_IO4_Msk (0x1U << TSC_IOSCR_G6_IO4_Pos) /*!< 0x00800000 */
  10472. #define TSC_IOSCR_G6_IO4 TSC_IOSCR_G6_IO4_Msk /*!<GROUP6_IO4 sampling mode */
  10473. #define TSC_IOSCR_G7_IO1_Pos (24U)
  10474. #define TSC_IOSCR_G7_IO1_Msk (0x1U << TSC_IOSCR_G7_IO1_Pos) /*!< 0x01000000 */
  10475. #define TSC_IOSCR_G7_IO1 TSC_IOSCR_G7_IO1_Msk /*!<GROUP7_IO1 sampling mode */
  10476. #define TSC_IOSCR_G7_IO2_Pos (25U)
  10477. #define TSC_IOSCR_G7_IO2_Msk (0x1U << TSC_IOSCR_G7_IO2_Pos) /*!< 0x02000000 */
  10478. #define TSC_IOSCR_G7_IO2 TSC_IOSCR_G7_IO2_Msk /*!<GROUP7_IO2 sampling mode */
  10479. #define TSC_IOSCR_G7_IO3_Pos (26U)
  10480. #define TSC_IOSCR_G7_IO3_Msk (0x1U << TSC_IOSCR_G7_IO3_Pos) /*!< 0x04000000 */
  10481. #define TSC_IOSCR_G7_IO3 TSC_IOSCR_G7_IO3_Msk /*!<GROUP7_IO3 sampling mode */
  10482. #define TSC_IOSCR_G7_IO4_Pos (27U)
  10483. #define TSC_IOSCR_G7_IO4_Msk (0x1U << TSC_IOSCR_G7_IO4_Pos) /*!< 0x08000000 */
  10484. #define TSC_IOSCR_G7_IO4 TSC_IOSCR_G7_IO4_Msk /*!<GROUP7_IO4 sampling mode */
  10485. #define TSC_IOSCR_G8_IO1_Pos (28U)
  10486. #define TSC_IOSCR_G8_IO1_Msk (0x1U << TSC_IOSCR_G8_IO1_Pos) /*!< 0x10000000 */
  10487. #define TSC_IOSCR_G8_IO1 TSC_IOSCR_G8_IO1_Msk /*!<GROUP8_IO1 sampling mode */
  10488. #define TSC_IOSCR_G8_IO2_Pos (29U)
  10489. #define TSC_IOSCR_G8_IO2_Msk (0x1U << TSC_IOSCR_G8_IO2_Pos) /*!< 0x20000000 */
  10490. #define TSC_IOSCR_G8_IO2 TSC_IOSCR_G8_IO2_Msk /*!<GROUP8_IO2 sampling mode */
  10491. #define TSC_IOSCR_G8_IO3_Pos (30U)
  10492. #define TSC_IOSCR_G8_IO3_Msk (0x1U << TSC_IOSCR_G8_IO3_Pos) /*!< 0x40000000 */
  10493. #define TSC_IOSCR_G8_IO3 TSC_IOSCR_G8_IO3_Msk /*!<GROUP8_IO3 sampling mode */
  10494. #define TSC_IOSCR_G8_IO4_Pos (31U)
  10495. #define TSC_IOSCR_G8_IO4_Msk (0x1U << TSC_IOSCR_G8_IO4_Pos) /*!< 0x80000000 */
  10496. #define TSC_IOSCR_G8_IO4 TSC_IOSCR_G8_IO4_Msk /*!<GROUP8_IO4 sampling mode */
  10497. /******************* Bit definition for TSC_IOCCR register ******************/
  10498. #define TSC_IOCCR_G1_IO1_Pos (0U)
  10499. #define TSC_IOCCR_G1_IO1_Msk (0x1U << TSC_IOCCR_G1_IO1_Pos) /*!< 0x00000001 */
  10500. #define TSC_IOCCR_G1_IO1 TSC_IOCCR_G1_IO1_Msk /*!<GROUP1_IO1 channel mode */
  10501. #define TSC_IOCCR_G1_IO2_Pos (1U)
  10502. #define TSC_IOCCR_G1_IO2_Msk (0x1U << TSC_IOCCR_G1_IO2_Pos) /*!< 0x00000002 */
  10503. #define TSC_IOCCR_G1_IO2 TSC_IOCCR_G1_IO2_Msk /*!<GROUP1_IO2 channel mode */
  10504. #define TSC_IOCCR_G1_IO3_Pos (2U)
  10505. #define TSC_IOCCR_G1_IO3_Msk (0x1U << TSC_IOCCR_G1_IO3_Pos) /*!< 0x00000004 */
  10506. #define TSC_IOCCR_G1_IO3 TSC_IOCCR_G1_IO3_Msk /*!<GROUP1_IO3 channel mode */
  10507. #define TSC_IOCCR_G1_IO4_Pos (3U)
  10508. #define TSC_IOCCR_G1_IO4_Msk (0x1U << TSC_IOCCR_G1_IO4_Pos) /*!< 0x00000008 */
  10509. #define TSC_IOCCR_G1_IO4 TSC_IOCCR_G1_IO4_Msk /*!<GROUP1_IO4 channel mode */
  10510. #define TSC_IOCCR_G2_IO1_Pos (4U)
  10511. #define TSC_IOCCR_G2_IO1_Msk (0x1U << TSC_IOCCR_G2_IO1_Pos) /*!< 0x00000010 */
  10512. #define TSC_IOCCR_G2_IO1 TSC_IOCCR_G2_IO1_Msk /*!<GROUP2_IO1 channel mode */
  10513. #define TSC_IOCCR_G2_IO2_Pos (5U)
  10514. #define TSC_IOCCR_G2_IO2_Msk (0x1U << TSC_IOCCR_G2_IO2_Pos) /*!< 0x00000020 */
  10515. #define TSC_IOCCR_G2_IO2 TSC_IOCCR_G2_IO2_Msk /*!<GROUP2_IO2 channel mode */
  10516. #define TSC_IOCCR_G2_IO3_Pos (6U)
  10517. #define TSC_IOCCR_G2_IO3_Msk (0x1U << TSC_IOCCR_G2_IO3_Pos) /*!< 0x00000040 */
  10518. #define TSC_IOCCR_G2_IO3 TSC_IOCCR_G2_IO3_Msk /*!<GROUP2_IO3 channel mode */
  10519. #define TSC_IOCCR_G2_IO4_Pos (7U)
  10520. #define TSC_IOCCR_G2_IO4_Msk (0x1U << TSC_IOCCR_G2_IO4_Pos) /*!< 0x00000080 */
  10521. #define TSC_IOCCR_G2_IO4 TSC_IOCCR_G2_IO4_Msk /*!<GROUP2_IO4 channel mode */
  10522. #define TSC_IOCCR_G3_IO1_Pos (8U)
  10523. #define TSC_IOCCR_G3_IO1_Msk (0x1U << TSC_IOCCR_G3_IO1_Pos) /*!< 0x00000100 */
  10524. #define TSC_IOCCR_G3_IO1 TSC_IOCCR_G3_IO1_Msk /*!<GROUP3_IO1 channel mode */
  10525. #define TSC_IOCCR_G3_IO2_Pos (9U)
  10526. #define TSC_IOCCR_G3_IO2_Msk (0x1U << TSC_IOCCR_G3_IO2_Pos) /*!< 0x00000200 */
  10527. #define TSC_IOCCR_G3_IO2 TSC_IOCCR_G3_IO2_Msk /*!<GROUP3_IO2 channel mode */
  10528. #define TSC_IOCCR_G3_IO3_Pos (10U)
  10529. #define TSC_IOCCR_G3_IO3_Msk (0x1U << TSC_IOCCR_G3_IO3_Pos) /*!< 0x00000400 */
  10530. #define TSC_IOCCR_G3_IO3 TSC_IOCCR_G3_IO3_Msk /*!<GROUP3_IO3 channel mode */
  10531. #define TSC_IOCCR_G3_IO4_Pos (11U)
  10532. #define TSC_IOCCR_G3_IO4_Msk (0x1U << TSC_IOCCR_G3_IO4_Pos) /*!< 0x00000800 */
  10533. #define TSC_IOCCR_G3_IO4 TSC_IOCCR_G3_IO4_Msk /*!<GROUP3_IO4 channel mode */
  10534. #define TSC_IOCCR_G4_IO1_Pos (12U)
  10535. #define TSC_IOCCR_G4_IO1_Msk (0x1U << TSC_IOCCR_G4_IO1_Pos) /*!< 0x00001000 */
  10536. #define TSC_IOCCR_G4_IO1 TSC_IOCCR_G4_IO1_Msk /*!<GROUP4_IO1 channel mode */
  10537. #define TSC_IOCCR_G4_IO2_Pos (13U)
  10538. #define TSC_IOCCR_G4_IO2_Msk (0x1U << TSC_IOCCR_G4_IO2_Pos) /*!< 0x00002000 */
  10539. #define TSC_IOCCR_G4_IO2 TSC_IOCCR_G4_IO2_Msk /*!<GROUP4_IO2 channel mode */
  10540. #define TSC_IOCCR_G4_IO3_Pos (14U)
  10541. #define TSC_IOCCR_G4_IO3_Msk (0x1U << TSC_IOCCR_G4_IO3_Pos) /*!< 0x00004000 */
  10542. #define TSC_IOCCR_G4_IO3 TSC_IOCCR_G4_IO3_Msk /*!<GROUP4_IO3 channel mode */
  10543. #define TSC_IOCCR_G4_IO4_Pos (15U)
  10544. #define TSC_IOCCR_G4_IO4_Msk (0x1U << TSC_IOCCR_G4_IO4_Pos) /*!< 0x00008000 */
  10545. #define TSC_IOCCR_G4_IO4 TSC_IOCCR_G4_IO4_Msk /*!<GROUP4_IO4 channel mode */
  10546. #define TSC_IOCCR_G5_IO1_Pos (16U)
  10547. #define TSC_IOCCR_G5_IO1_Msk (0x1U << TSC_IOCCR_G5_IO1_Pos) /*!< 0x00010000 */
  10548. #define TSC_IOCCR_G5_IO1 TSC_IOCCR_G5_IO1_Msk /*!<GROUP5_IO1 channel mode */
  10549. #define TSC_IOCCR_G5_IO2_Pos (17U)
  10550. #define TSC_IOCCR_G5_IO2_Msk (0x1U << TSC_IOCCR_G5_IO2_Pos) /*!< 0x00020000 */
  10551. #define TSC_IOCCR_G5_IO2 TSC_IOCCR_G5_IO2_Msk /*!<GROUP5_IO2 channel mode */
  10552. #define TSC_IOCCR_G5_IO3_Pos (18U)
  10553. #define TSC_IOCCR_G5_IO3_Msk (0x1U << TSC_IOCCR_G5_IO3_Pos) /*!< 0x00040000 */
  10554. #define TSC_IOCCR_G5_IO3 TSC_IOCCR_G5_IO3_Msk /*!<GROUP5_IO3 channel mode */
  10555. #define TSC_IOCCR_G5_IO4_Pos (19U)
  10556. #define TSC_IOCCR_G5_IO4_Msk (0x1U << TSC_IOCCR_G5_IO4_Pos) /*!< 0x00080000 */
  10557. #define TSC_IOCCR_G5_IO4 TSC_IOCCR_G5_IO4_Msk /*!<GROUP5_IO4 channel mode */
  10558. #define TSC_IOCCR_G6_IO1_Pos (20U)
  10559. #define TSC_IOCCR_G6_IO1_Msk (0x1U << TSC_IOCCR_G6_IO1_Pos) /*!< 0x00100000 */
  10560. #define TSC_IOCCR_G6_IO1 TSC_IOCCR_G6_IO1_Msk /*!<GROUP6_IO1 channel mode */
  10561. #define TSC_IOCCR_G6_IO2_Pos (21U)
  10562. #define TSC_IOCCR_G6_IO2_Msk (0x1U << TSC_IOCCR_G6_IO2_Pos) /*!< 0x00200000 */
  10563. #define TSC_IOCCR_G6_IO2 TSC_IOCCR_G6_IO2_Msk /*!<GROUP6_IO2 channel mode */
  10564. #define TSC_IOCCR_G6_IO3_Pos (22U)
  10565. #define TSC_IOCCR_G6_IO3_Msk (0x1U << TSC_IOCCR_G6_IO3_Pos) /*!< 0x00400000 */
  10566. #define TSC_IOCCR_G6_IO3 TSC_IOCCR_G6_IO3_Msk /*!<GROUP6_IO3 channel mode */
  10567. #define TSC_IOCCR_G6_IO4_Pos (23U)
  10568. #define TSC_IOCCR_G6_IO4_Msk (0x1U << TSC_IOCCR_G6_IO4_Pos) /*!< 0x00800000 */
  10569. #define TSC_IOCCR_G6_IO4 TSC_IOCCR_G6_IO4_Msk /*!<GROUP6_IO4 channel mode */
  10570. #define TSC_IOCCR_G7_IO1_Pos (24U)
  10571. #define TSC_IOCCR_G7_IO1_Msk (0x1U << TSC_IOCCR_G7_IO1_Pos) /*!< 0x01000000 */
  10572. #define TSC_IOCCR_G7_IO1 TSC_IOCCR_G7_IO1_Msk /*!<GROUP7_IO1 channel mode */
  10573. #define TSC_IOCCR_G7_IO2_Pos (25U)
  10574. #define TSC_IOCCR_G7_IO2_Msk (0x1U << TSC_IOCCR_G7_IO2_Pos) /*!< 0x02000000 */
  10575. #define TSC_IOCCR_G7_IO2 TSC_IOCCR_G7_IO2_Msk /*!<GROUP7_IO2 channel mode */
  10576. #define TSC_IOCCR_G7_IO3_Pos (26U)
  10577. #define TSC_IOCCR_G7_IO3_Msk (0x1U << TSC_IOCCR_G7_IO3_Pos) /*!< 0x04000000 */
  10578. #define TSC_IOCCR_G7_IO3 TSC_IOCCR_G7_IO3_Msk /*!<GROUP7_IO3 channel mode */
  10579. #define TSC_IOCCR_G7_IO4_Pos (27U)
  10580. #define TSC_IOCCR_G7_IO4_Msk (0x1U << TSC_IOCCR_G7_IO4_Pos) /*!< 0x08000000 */
  10581. #define TSC_IOCCR_G7_IO4 TSC_IOCCR_G7_IO4_Msk /*!<GROUP7_IO4 channel mode */
  10582. #define TSC_IOCCR_G8_IO1_Pos (28U)
  10583. #define TSC_IOCCR_G8_IO1_Msk (0x1U << TSC_IOCCR_G8_IO1_Pos) /*!< 0x10000000 */
  10584. #define TSC_IOCCR_G8_IO1 TSC_IOCCR_G8_IO1_Msk /*!<GROUP8_IO1 channel mode */
  10585. #define TSC_IOCCR_G8_IO2_Pos (29U)
  10586. #define TSC_IOCCR_G8_IO2_Msk (0x1U << TSC_IOCCR_G8_IO2_Pos) /*!< 0x20000000 */
  10587. #define TSC_IOCCR_G8_IO2 TSC_IOCCR_G8_IO2_Msk /*!<GROUP8_IO2 channel mode */
  10588. #define TSC_IOCCR_G8_IO3_Pos (30U)
  10589. #define TSC_IOCCR_G8_IO3_Msk (0x1U << TSC_IOCCR_G8_IO3_Pos) /*!< 0x40000000 */
  10590. #define TSC_IOCCR_G8_IO3 TSC_IOCCR_G8_IO3_Msk /*!<GROUP8_IO3 channel mode */
  10591. #define TSC_IOCCR_G8_IO4_Pos (31U)
  10592. #define TSC_IOCCR_G8_IO4_Msk (0x1U << TSC_IOCCR_G8_IO4_Pos) /*!< 0x80000000 */
  10593. #define TSC_IOCCR_G8_IO4 TSC_IOCCR_G8_IO4_Msk /*!<GROUP8_IO4 channel mode */
  10594. /******************* Bit definition for TSC_IOGCSR register *****************/
  10595. #define TSC_IOGCSR_G1E_Pos (0U)
  10596. #define TSC_IOGCSR_G1E_Msk (0x1U << TSC_IOGCSR_G1E_Pos) /*!< 0x00000001 */
  10597. #define TSC_IOGCSR_G1E TSC_IOGCSR_G1E_Msk /*!<Analog IO GROUP1 enable */
  10598. #define TSC_IOGCSR_G2E_Pos (1U)
  10599. #define TSC_IOGCSR_G2E_Msk (0x1U << TSC_IOGCSR_G2E_Pos) /*!< 0x00000002 */
  10600. #define TSC_IOGCSR_G2E TSC_IOGCSR_G2E_Msk /*!<Analog IO GROUP2 enable */
  10601. #define TSC_IOGCSR_G3E_Pos (2U)
  10602. #define TSC_IOGCSR_G3E_Msk (0x1U << TSC_IOGCSR_G3E_Pos) /*!< 0x00000004 */
  10603. #define TSC_IOGCSR_G3E TSC_IOGCSR_G3E_Msk /*!<Analog IO GROUP3 enable */
  10604. #define TSC_IOGCSR_G4E_Pos (3U)
  10605. #define TSC_IOGCSR_G4E_Msk (0x1U << TSC_IOGCSR_G4E_Pos) /*!< 0x00000008 */
  10606. #define TSC_IOGCSR_G4E TSC_IOGCSR_G4E_Msk /*!<Analog IO GROUP4 enable */
  10607. #define TSC_IOGCSR_G5E_Pos (4U)
  10608. #define TSC_IOGCSR_G5E_Msk (0x1U << TSC_IOGCSR_G5E_Pos) /*!< 0x00000010 */
  10609. #define TSC_IOGCSR_G5E TSC_IOGCSR_G5E_Msk /*!<Analog IO GROUP5 enable */
  10610. #define TSC_IOGCSR_G6E_Pos (5U)
  10611. #define TSC_IOGCSR_G6E_Msk (0x1U << TSC_IOGCSR_G6E_Pos) /*!< 0x00000020 */
  10612. #define TSC_IOGCSR_G6E TSC_IOGCSR_G6E_Msk /*!<Analog IO GROUP6 enable */
  10613. #define TSC_IOGCSR_G7E_Pos (6U)
  10614. #define TSC_IOGCSR_G7E_Msk (0x1U << TSC_IOGCSR_G7E_Pos) /*!< 0x00000040 */
  10615. #define TSC_IOGCSR_G7E TSC_IOGCSR_G7E_Msk /*!<Analog IO GROUP7 enable */
  10616. #define TSC_IOGCSR_G8E_Pos (7U)
  10617. #define TSC_IOGCSR_G8E_Msk (0x1U << TSC_IOGCSR_G8E_Pos) /*!< 0x00000080 */
  10618. #define TSC_IOGCSR_G8E TSC_IOGCSR_G8E_Msk /*!<Analog IO GROUP8 enable */
  10619. #define TSC_IOGCSR_G1S_Pos (16U)
  10620. #define TSC_IOGCSR_G1S_Msk (0x1U << TSC_IOGCSR_G1S_Pos) /*!< 0x00010000 */
  10621. #define TSC_IOGCSR_G1S TSC_IOGCSR_G1S_Msk /*!<Analog IO GROUP1 status */
  10622. #define TSC_IOGCSR_G2S_Pos (17U)
  10623. #define TSC_IOGCSR_G2S_Msk (0x1U << TSC_IOGCSR_G2S_Pos) /*!< 0x00020000 */
  10624. #define TSC_IOGCSR_G2S TSC_IOGCSR_G2S_Msk /*!<Analog IO GROUP2 status */
  10625. #define TSC_IOGCSR_G3S_Pos (18U)
  10626. #define TSC_IOGCSR_G3S_Msk (0x1U << TSC_IOGCSR_G3S_Pos) /*!< 0x00040000 */
  10627. #define TSC_IOGCSR_G3S TSC_IOGCSR_G3S_Msk /*!<Analog IO GROUP3 status */
  10628. #define TSC_IOGCSR_G4S_Pos (19U)
  10629. #define TSC_IOGCSR_G4S_Msk (0x1U << TSC_IOGCSR_G4S_Pos) /*!< 0x00080000 */
  10630. #define TSC_IOGCSR_G4S TSC_IOGCSR_G4S_Msk /*!<Analog IO GROUP4 status */
  10631. #define TSC_IOGCSR_G5S_Pos (20U)
  10632. #define TSC_IOGCSR_G5S_Msk (0x1U << TSC_IOGCSR_G5S_Pos) /*!< 0x00100000 */
  10633. #define TSC_IOGCSR_G5S TSC_IOGCSR_G5S_Msk /*!<Analog IO GROUP5 status */
  10634. #define TSC_IOGCSR_G6S_Pos (21U)
  10635. #define TSC_IOGCSR_G6S_Msk (0x1U << TSC_IOGCSR_G6S_Pos) /*!< 0x00200000 */
  10636. #define TSC_IOGCSR_G6S TSC_IOGCSR_G6S_Msk /*!<Analog IO GROUP6 status */
  10637. #define TSC_IOGCSR_G7S_Pos (22U)
  10638. #define TSC_IOGCSR_G7S_Msk (0x1U << TSC_IOGCSR_G7S_Pos) /*!< 0x00400000 */
  10639. #define TSC_IOGCSR_G7S TSC_IOGCSR_G7S_Msk /*!<Analog IO GROUP7 status */
  10640. #define TSC_IOGCSR_G8S_Pos (23U)
  10641. #define TSC_IOGCSR_G8S_Msk (0x1U << TSC_IOGCSR_G8S_Pos) /*!< 0x00800000 */
  10642. #define TSC_IOGCSR_G8S TSC_IOGCSR_G8S_Msk /*!<Analog IO GROUP8 status */
  10643. /******************* Bit definition for TSC_IOGXCR register *****************/
  10644. #define TSC_IOGXCR_CNT_Pos (0U)
  10645. #define TSC_IOGXCR_CNT_Msk (0x3FFFU << TSC_IOGXCR_CNT_Pos) /*!< 0x00003FFF */
  10646. #define TSC_IOGXCR_CNT TSC_IOGXCR_CNT_Msk /*!<CNT[13:0] bits (Counter value) */
  10647. /******************************************************************************/
  10648. /* */
  10649. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  10650. /* */
  10651. /******************************************************************************/
  10652. /*
  10653. * @brief Specific device feature definitions (not present on all devices in the STM32F3 serie)
  10654. */
  10655. /* Support of 7 bits data length feature */
  10656. #define USART_7BITS_SUPPORT
  10657. /****************** Bit definition for USART_CR1 register *******************/
  10658. #define USART_CR1_UE_Pos (0U)
  10659. #define USART_CR1_UE_Msk (0x1U << USART_CR1_UE_Pos) /*!< 0x00000001 */
  10660. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  10661. #define USART_CR1_UESM_Pos (1U)
  10662. #define USART_CR1_UESM_Msk (0x1U << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  10663. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  10664. #define USART_CR1_RE_Pos (2U)
  10665. #define USART_CR1_RE_Msk (0x1U << USART_CR1_RE_Pos) /*!< 0x00000004 */
  10666. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  10667. #define USART_CR1_TE_Pos (3U)
  10668. #define USART_CR1_TE_Msk (0x1U << USART_CR1_TE_Pos) /*!< 0x00000008 */
  10669. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  10670. #define USART_CR1_IDLEIE_Pos (4U)
  10671. #define USART_CR1_IDLEIE_Msk (0x1U << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  10672. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  10673. #define USART_CR1_RXNEIE_Pos (5U)
  10674. #define USART_CR1_RXNEIE_Msk (0x1U << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  10675. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  10676. #define USART_CR1_TCIE_Pos (6U)
  10677. #define USART_CR1_TCIE_Msk (0x1U << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  10678. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  10679. #define USART_CR1_TXEIE_Pos (7U)
  10680. #define USART_CR1_TXEIE_Msk (0x1U << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  10681. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  10682. #define USART_CR1_PEIE_Pos (8U)
  10683. #define USART_CR1_PEIE_Msk (0x1U << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  10684. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  10685. #define USART_CR1_PS_Pos (9U)
  10686. #define USART_CR1_PS_Msk (0x1U << USART_CR1_PS_Pos) /*!< 0x00000200 */
  10687. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  10688. #define USART_CR1_PCE_Pos (10U)
  10689. #define USART_CR1_PCE_Msk (0x1U << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  10690. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  10691. #define USART_CR1_WAKE_Pos (11U)
  10692. #define USART_CR1_WAKE_Msk (0x1U << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  10693. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  10694. #define USART_CR1_M0_Pos (12U)
  10695. #define USART_CR1_M0_Msk (0x1U << USART_CR1_M0_Pos) /*!< 0x00001000 */
  10696. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length bit 0 */
  10697. #define USART_CR1_MME_Pos (13U)
  10698. #define USART_CR1_MME_Msk (0x1U << USART_CR1_MME_Pos) /*!< 0x00002000 */
  10699. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  10700. #define USART_CR1_CMIE_Pos (14U)
  10701. #define USART_CR1_CMIE_Msk (0x1U << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  10702. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  10703. #define USART_CR1_OVER8_Pos (15U)
  10704. #define USART_CR1_OVER8_Msk (0x1U << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  10705. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  10706. #define USART_CR1_DEDT_Pos (16U)
  10707. #define USART_CR1_DEDT_Msk (0x1FU << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  10708. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  10709. #define USART_CR1_DEDT_0 (0x01U << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  10710. #define USART_CR1_DEDT_1 (0x02U << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  10711. #define USART_CR1_DEDT_2 (0x04U << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  10712. #define USART_CR1_DEDT_3 (0x08U << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  10713. #define USART_CR1_DEDT_4 (0x10U << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  10714. #define USART_CR1_DEAT_Pos (21U)
  10715. #define USART_CR1_DEAT_Msk (0x1FU << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  10716. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  10717. #define USART_CR1_DEAT_0 (0x01U << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  10718. #define USART_CR1_DEAT_1 (0x02U << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  10719. #define USART_CR1_DEAT_2 (0x04U << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  10720. #define USART_CR1_DEAT_3 (0x08U << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  10721. #define USART_CR1_DEAT_4 (0x10U << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  10722. #define USART_CR1_RTOIE_Pos (26U)
  10723. #define USART_CR1_RTOIE_Msk (0x1U << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  10724. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */
  10725. #define USART_CR1_EOBIE_Pos (27U)
  10726. #define USART_CR1_EOBIE_Msk (0x1U << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  10727. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */
  10728. #define USART_CR1_M1_Pos (28U)
  10729. #define USART_CR1_M1_Msk (0x1U << USART_CR1_M1_Pos) /*!< 0x10000000 */
  10730. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length bit 1 */
  10731. #define USART_CR1_M_Pos (12U)
  10732. #define USART_CR1_M_Msk (0x10001U << USART_CR1_M_Pos) /*!< 0x10001000 */
  10733. #define USART_CR1_M USART_CR1_M_Msk /*!< [M1:M0] Word length */
  10734. /****************** Bit definition for USART_CR2 register *******************/
  10735. #define USART_CR2_ADDM7_Pos (4U)
  10736. #define USART_CR2_ADDM7_Msk (0x1U << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  10737. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  10738. #define USART_CR2_LBDL_Pos (5U)
  10739. #define USART_CR2_LBDL_Msk (0x1U << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  10740. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  10741. #define USART_CR2_LBDIE_Pos (6U)
  10742. #define USART_CR2_LBDIE_Msk (0x1U << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  10743. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  10744. #define USART_CR2_LBCL_Pos (8U)
  10745. #define USART_CR2_LBCL_Msk (0x1U << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  10746. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  10747. #define USART_CR2_CPHA_Pos (9U)
  10748. #define USART_CR2_CPHA_Msk (0x1U << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  10749. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  10750. #define USART_CR2_CPOL_Pos (10U)
  10751. #define USART_CR2_CPOL_Msk (0x1U << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  10752. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  10753. #define USART_CR2_CLKEN_Pos (11U)
  10754. #define USART_CR2_CLKEN_Msk (0x1U << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  10755. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  10756. #define USART_CR2_STOP_Pos (12U)
  10757. #define USART_CR2_STOP_Msk (0x3U << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  10758. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  10759. #define USART_CR2_STOP_0 (0x1U << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  10760. #define USART_CR2_STOP_1 (0x2U << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  10761. #define USART_CR2_LINEN_Pos (14U)
  10762. #define USART_CR2_LINEN_Msk (0x1U << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  10763. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  10764. #define USART_CR2_SWAP_Pos (15U)
  10765. #define USART_CR2_SWAP_Msk (0x1U << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  10766. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  10767. #define USART_CR2_RXINV_Pos (16U)
  10768. #define USART_CR2_RXINV_Msk (0x1U << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  10769. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  10770. #define USART_CR2_TXINV_Pos (17U)
  10771. #define USART_CR2_TXINV_Msk (0x1U << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  10772. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  10773. #define USART_CR2_DATAINV_Pos (18U)
  10774. #define USART_CR2_DATAINV_Msk (0x1U << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  10775. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  10776. #define USART_CR2_MSBFIRST_Pos (19U)
  10777. #define USART_CR2_MSBFIRST_Msk (0x1U << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  10778. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  10779. #define USART_CR2_ABREN_Pos (20U)
  10780. #define USART_CR2_ABREN_Msk (0x1U << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  10781. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  10782. #define USART_CR2_ABRMODE_Pos (21U)
  10783. #define USART_CR2_ABRMODE_Msk (0x3U << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  10784. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  10785. #define USART_CR2_ABRMODE_0 (0x1U << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  10786. #define USART_CR2_ABRMODE_1 (0x2U << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  10787. #define USART_CR2_RTOEN_Pos (23U)
  10788. #define USART_CR2_RTOEN_Msk (0x1U << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  10789. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  10790. #define USART_CR2_ADD_Pos (24U)
  10791. #define USART_CR2_ADD_Msk (0xFFU << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  10792. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  10793. /****************** Bit definition for USART_CR3 register *******************/
  10794. #define USART_CR3_EIE_Pos (0U)
  10795. #define USART_CR3_EIE_Msk (0x1U << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  10796. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  10797. #define USART_CR3_IREN_Pos (1U)
  10798. #define USART_CR3_IREN_Msk (0x1U << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  10799. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  10800. #define USART_CR3_IRLP_Pos (2U)
  10801. #define USART_CR3_IRLP_Msk (0x1U << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  10802. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  10803. #define USART_CR3_HDSEL_Pos (3U)
  10804. #define USART_CR3_HDSEL_Msk (0x1U << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  10805. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  10806. #define USART_CR3_NACK_Pos (4U)
  10807. #define USART_CR3_NACK_Msk (0x1U << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  10808. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  10809. #define USART_CR3_SCEN_Pos (5U)
  10810. #define USART_CR3_SCEN_Msk (0x1U << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  10811. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  10812. #define USART_CR3_DMAR_Pos (6U)
  10813. #define USART_CR3_DMAR_Msk (0x1U << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  10814. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  10815. #define USART_CR3_DMAT_Pos (7U)
  10816. #define USART_CR3_DMAT_Msk (0x1U << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  10817. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  10818. #define USART_CR3_RTSE_Pos (8U)
  10819. #define USART_CR3_RTSE_Msk (0x1U << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  10820. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  10821. #define USART_CR3_CTSE_Pos (9U)
  10822. #define USART_CR3_CTSE_Msk (0x1U << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  10823. #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */
  10824. #define USART_CR3_CTSIE_Pos (10U)
  10825. #define USART_CR3_CTSIE_Msk (0x1U << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  10826. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  10827. #define USART_CR3_ONEBIT_Pos (11U)
  10828. #define USART_CR3_ONEBIT_Msk (0x1U << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  10829. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  10830. #define USART_CR3_OVRDIS_Pos (12U)
  10831. #define USART_CR3_OVRDIS_Msk (0x1U << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  10832. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  10833. #define USART_CR3_DDRE_Pos (13U)
  10834. #define USART_CR3_DDRE_Msk (0x1U << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  10835. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  10836. #define USART_CR3_DEM_Pos (14U)
  10837. #define USART_CR3_DEM_Msk (0x1U << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  10838. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  10839. #define USART_CR3_DEP_Pos (15U)
  10840. #define USART_CR3_DEP_Msk (0x1U << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  10841. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  10842. #define USART_CR3_SCARCNT_Pos (17U)
  10843. #define USART_CR3_SCARCNT_Msk (0x7U << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  10844. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  10845. #define USART_CR3_SCARCNT_0 (0x1U << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  10846. #define USART_CR3_SCARCNT_1 (0x2U << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  10847. #define USART_CR3_SCARCNT_2 (0x4U << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  10848. #define USART_CR3_WUS_Pos (20U)
  10849. #define USART_CR3_WUS_Msk (0x3U << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  10850. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  10851. #define USART_CR3_WUS_0 (0x1U << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  10852. #define USART_CR3_WUS_1 (0x2U << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  10853. #define USART_CR3_WUFIE_Pos (22U)
  10854. #define USART_CR3_WUFIE_Msk (0x1U << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  10855. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  10856. /****************** Bit definition for USART_BRR register *******************/
  10857. #define USART_BRR_DIV_FRACTION_Pos (0U)
  10858. #define USART_BRR_DIV_FRACTION_Msk (0xFU << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */
  10859. #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */
  10860. #define USART_BRR_DIV_MANTISSA_Pos (4U)
  10861. #define USART_BRR_DIV_MANTISSA_Msk (0xFFFU << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */
  10862. #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */
  10863. /****************** Bit definition for USART_GTPR register ******************/
  10864. #define USART_GTPR_PSC_Pos (0U)
  10865. #define USART_GTPR_PSC_Msk (0xFFU << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  10866. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  10867. #define USART_GTPR_GT_Pos (8U)
  10868. #define USART_GTPR_GT_Msk (0xFFU << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  10869. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  10870. /******************* Bit definition for USART_RTOR register *****************/
  10871. #define USART_RTOR_RTO_Pos (0U)
  10872. #define USART_RTOR_RTO_Msk (0xFFFFFFU << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  10873. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */
  10874. #define USART_RTOR_BLEN_Pos (24U)
  10875. #define USART_RTOR_BLEN_Msk (0xFFU << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  10876. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  10877. /******************* Bit definition for USART_RQR register ******************/
  10878. #define USART_RQR_ABRRQ_Pos (0U)
  10879. #define USART_RQR_ABRRQ_Msk (0x1U << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  10880. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  10881. #define USART_RQR_SBKRQ_Pos (1U)
  10882. #define USART_RQR_SBKRQ_Msk (0x1U << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  10883. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  10884. #define USART_RQR_MMRQ_Pos (2U)
  10885. #define USART_RQR_MMRQ_Msk (0x1U << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  10886. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  10887. #define USART_RQR_RXFRQ_Pos (3U)
  10888. #define USART_RQR_RXFRQ_Msk (0x1U << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  10889. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  10890. #define USART_RQR_TXFRQ_Pos (4U)
  10891. #define USART_RQR_TXFRQ_Msk (0x1U << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  10892. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */
  10893. /******************* Bit definition for USART_ISR register ******************/
  10894. #define USART_ISR_PE_Pos (0U)
  10895. #define USART_ISR_PE_Msk (0x1U << USART_ISR_PE_Pos) /*!< 0x00000001 */
  10896. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  10897. #define USART_ISR_FE_Pos (1U)
  10898. #define USART_ISR_FE_Msk (0x1U << USART_ISR_FE_Pos) /*!< 0x00000002 */
  10899. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  10900. #define USART_ISR_NE_Pos (2U)
  10901. #define USART_ISR_NE_Msk (0x1U << USART_ISR_NE_Pos) /*!< 0x00000004 */
  10902. #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */
  10903. #define USART_ISR_ORE_Pos (3U)
  10904. #define USART_ISR_ORE_Msk (0x1U << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  10905. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  10906. #define USART_ISR_IDLE_Pos (4U)
  10907. #define USART_ISR_IDLE_Msk (0x1U << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  10908. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  10909. #define USART_ISR_RXNE_Pos (5U)
  10910. #define USART_ISR_RXNE_Msk (0x1U << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  10911. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  10912. #define USART_ISR_TC_Pos (6U)
  10913. #define USART_ISR_TC_Msk (0x1U << USART_ISR_TC_Pos) /*!< 0x00000040 */
  10914. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  10915. #define USART_ISR_TXE_Pos (7U)
  10916. #define USART_ISR_TXE_Msk (0x1U << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  10917. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  10918. #define USART_ISR_LBDF_Pos (8U)
  10919. #define USART_ISR_LBDF_Msk (0x1U << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  10920. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  10921. #define USART_ISR_CTSIF_Pos (9U)
  10922. #define USART_ISR_CTSIF_Msk (0x1U << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  10923. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */
  10924. #define USART_ISR_CTS_Pos (10U)
  10925. #define USART_ISR_CTS_Msk (0x1U << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  10926. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */
  10927. #define USART_ISR_RTOF_Pos (11U)
  10928. #define USART_ISR_RTOF_Msk (0x1U << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  10929. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */
  10930. #define USART_ISR_EOBF_Pos (12U)
  10931. #define USART_ISR_EOBF_Msk (0x1U << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  10932. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  10933. #define USART_ISR_ABRE_Pos (14U)
  10934. #define USART_ISR_ABRE_Msk (0x1U << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  10935. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  10936. #define USART_ISR_ABRF_Pos (15U)
  10937. #define USART_ISR_ABRF_Msk (0x1U << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  10938. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  10939. #define USART_ISR_BUSY_Pos (16U)
  10940. #define USART_ISR_BUSY_Msk (0x1U << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  10941. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  10942. #define USART_ISR_CMF_Pos (17U)
  10943. #define USART_ISR_CMF_Msk (0x1U << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  10944. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  10945. #define USART_ISR_SBKF_Pos (18U)
  10946. #define USART_ISR_SBKF_Msk (0x1U << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  10947. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  10948. #define USART_ISR_RWU_Pos (19U)
  10949. #define USART_ISR_RWU_Msk (0x1U << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  10950. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  10951. #define USART_ISR_WUF_Pos (20U)
  10952. #define USART_ISR_WUF_Msk (0x1U << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  10953. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  10954. #define USART_ISR_TEACK_Pos (21U)
  10955. #define USART_ISR_TEACK_Msk (0x1U << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  10956. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  10957. #define USART_ISR_REACK_Pos (22U)
  10958. #define USART_ISR_REACK_Msk (0x1U << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  10959. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  10960. /******************* Bit definition for USART_ICR register ******************/
  10961. #define USART_ICR_PECF_Pos (0U)
  10962. #define USART_ICR_PECF_Msk (0x1U << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  10963. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  10964. #define USART_ICR_FECF_Pos (1U)
  10965. #define USART_ICR_FECF_Msk (0x1U << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  10966. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  10967. #define USART_ICR_NCF_Pos (2U)
  10968. #define USART_ICR_NCF_Msk (0x1U << USART_ICR_NCF_Pos) /*!< 0x00000004 */
  10969. #define USART_ICR_NCF USART_ICR_NCF_Msk /*!< Noise detected Clear Flag */
  10970. #define USART_ICR_ORECF_Pos (3U)
  10971. #define USART_ICR_ORECF_Msk (0x1U << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  10972. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  10973. #define USART_ICR_IDLECF_Pos (4U)
  10974. #define USART_ICR_IDLECF_Msk (0x1U << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  10975. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  10976. #define USART_ICR_TCCF_Pos (6U)
  10977. #define USART_ICR_TCCF_Msk (0x1U << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  10978. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  10979. #define USART_ICR_LBDCF_Pos (8U)
  10980. #define USART_ICR_LBDCF_Msk (0x1U << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  10981. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  10982. #define USART_ICR_CTSCF_Pos (9U)
  10983. #define USART_ICR_CTSCF_Msk (0x1U << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  10984. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  10985. #define USART_ICR_RTOCF_Pos (11U)
  10986. #define USART_ICR_RTOCF_Msk (0x1U << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  10987. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  10988. #define USART_ICR_EOBCF_Pos (12U)
  10989. #define USART_ICR_EOBCF_Msk (0x1U << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  10990. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  10991. #define USART_ICR_CMCF_Pos (17U)
  10992. #define USART_ICR_CMCF_Msk (0x1U << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  10993. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  10994. #define USART_ICR_WUCF_Pos (20U)
  10995. #define USART_ICR_WUCF_Msk (0x1U << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  10996. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  10997. /******************* Bit definition for USART_RDR register ******************/
  10998. #define USART_RDR_RDR_Pos (0U)
  10999. #define USART_RDR_RDR_Msk (0x1FFU << USART_RDR_RDR_Pos) /*!< 0x000001FF */
  11000. #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */
  11001. /******************* Bit definition for USART_TDR register ******************/
  11002. #define USART_TDR_TDR_Pos (0U)
  11003. #define USART_TDR_TDR_Msk (0x1FFU << USART_TDR_TDR_Pos) /*!< 0x000001FF */
  11004. #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */
  11005. /******************************************************************************/
  11006. /* */
  11007. /* Window WATCHDOG */
  11008. /* */
  11009. /******************************************************************************/
  11010. /******************* Bit definition for WWDG_CR register ********************/
  11011. #define WWDG_CR_T_Pos (0U)
  11012. #define WWDG_CR_T_Msk (0x7FU << WWDG_CR_T_Pos) /*!< 0x0000007F */
  11013. #define WWDG_CR_T WWDG_CR_T_Msk /*!< T[6:0] bits (7-Bit counter (MSB to LSB)) */
  11014. #define WWDG_CR_T_0 (0x01U << WWDG_CR_T_Pos) /*!< 0x00000001 */
  11015. #define WWDG_CR_T_1 (0x02U << WWDG_CR_T_Pos) /*!< 0x00000002 */
  11016. #define WWDG_CR_T_2 (0x04U << WWDG_CR_T_Pos) /*!< 0x00000004 */
  11017. #define WWDG_CR_T_3 (0x08U << WWDG_CR_T_Pos) /*!< 0x00000008 */
  11018. #define WWDG_CR_T_4 (0x10U << WWDG_CR_T_Pos) /*!< 0x00000010 */
  11019. #define WWDG_CR_T_5 (0x20U << WWDG_CR_T_Pos) /*!< 0x00000020 */
  11020. #define WWDG_CR_T_6 (0x40U << WWDG_CR_T_Pos) /*!< 0x00000040 */
  11021. /* Legacy defines */
  11022. #define WWDG_CR_T0 WWDG_CR_T_0
  11023. #define WWDG_CR_T1 WWDG_CR_T_1
  11024. #define WWDG_CR_T2 WWDG_CR_T_2
  11025. #define WWDG_CR_T3 WWDG_CR_T_3
  11026. #define WWDG_CR_T4 WWDG_CR_T_4
  11027. #define WWDG_CR_T5 WWDG_CR_T_5
  11028. #define WWDG_CR_T6 WWDG_CR_T_6
  11029. #define WWDG_CR_WDGA_Pos (7U)
  11030. #define WWDG_CR_WDGA_Msk (0x1U << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */
  11031. #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!<Activation bit */
  11032. /******************* Bit definition for WWDG_CFR register *******************/
  11033. #define WWDG_CFR_W_Pos (0U)
  11034. #define WWDG_CFR_W_Msk (0x7FU << WWDG_CFR_W_Pos) /*!< 0x0000007F */
  11035. #define WWDG_CFR_W WWDG_CFR_W_Msk /*!< W[6:0] bits (7-bit window value) */
  11036. #define WWDG_CFR_W_0 (0x01U << WWDG_CFR_W_Pos) /*!< 0x00000001 */
  11037. #define WWDG_CFR_W_1 (0x02U << WWDG_CFR_W_Pos) /*!< 0x00000002 */
  11038. #define WWDG_CFR_W_2 (0x04U << WWDG_CFR_W_Pos) /*!< 0x00000004 */
  11039. #define WWDG_CFR_W_3 (0x08U << WWDG_CFR_W_Pos) /*!< 0x00000008 */
  11040. #define WWDG_CFR_W_4 (0x10U << WWDG_CFR_W_Pos) /*!< 0x00000010 */
  11041. #define WWDG_CFR_W_5 (0x20U << WWDG_CFR_W_Pos) /*!< 0x00000020 */
  11042. #define WWDG_CFR_W_6 (0x40U << WWDG_CFR_W_Pos) /*!< 0x00000040 */
  11043. /* Legacy defines */
  11044. #define WWDG_CFR_W0 WWDG_CFR_W_0
  11045. #define WWDG_CFR_W1 WWDG_CFR_W_1
  11046. #define WWDG_CFR_W2 WWDG_CFR_W_2
  11047. #define WWDG_CFR_W3 WWDG_CFR_W_3
  11048. #define WWDG_CFR_W4 WWDG_CFR_W_4
  11049. #define WWDG_CFR_W5 WWDG_CFR_W_5
  11050. #define WWDG_CFR_W6 WWDG_CFR_W_6
  11051. #define WWDG_CFR_WDGTB_Pos (7U)
  11052. #define WWDG_CFR_WDGTB_Msk (0x3U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000180 */
  11053. #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!< WDGTB[1:0] bits (Timer Base) */
  11054. #define WWDG_CFR_WDGTB_0 (0x1U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000080 */
  11055. #define WWDG_CFR_WDGTB_1 (0x2U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000100 */
  11056. /* Legacy defines */
  11057. #define WWDG_CFR_WDGTB0 WWDG_CFR_WDGTB_0
  11058. #define WWDG_CFR_WDGTB1 WWDG_CFR_WDGTB_1
  11059. #define WWDG_CFR_EWI_Pos (9U)
  11060. #define WWDG_CFR_EWI_Msk (0x1U << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */
  11061. #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!<Early Wakeup Interrupt */
  11062. /******************* Bit definition for WWDG_SR register ********************/
  11063. #define WWDG_SR_EWIF_Pos (0U)
  11064. #define WWDG_SR_EWIF_Msk (0x1U << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */
  11065. #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!<Early Wakeup Interrupt Flag */
  11066. /**
  11067. * @}
  11068. */
  11069. /**
  11070. * @}
  11071. */
  11072. /** @addtogroup Exported_macros
  11073. * @{
  11074. */
  11075. /****************************** ADC Instances *********************************/
  11076. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \
  11077. ((INSTANCE) == ADC2))
  11078. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == ADC1))
  11079. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON)
  11080. /****************************** CAN Instances *********************************/
  11081. #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN)
  11082. /****************************** COMP Instances ********************************/
  11083. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP2) || \
  11084. ((INSTANCE) == COMP4) || \
  11085. ((INSTANCE) == COMP6))
  11086. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) (0U)
  11087. /******************** COMP Instances with switch on DAC1 Channel1 output ******/
  11088. #define IS_COMP_DAC1SWITCH_INSTANCE(INSTANCE) (0U)
  11089. /******************** COMP Instances with window mode capability **************/
  11090. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) (0U)
  11091. /****************************** CRC Instances *********************************/
  11092. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
  11093. /****************************** DAC Instances *********************************/
  11094. #define IS_DAC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DAC1) || \
  11095. ((INSTANCE) == DAC2))
  11096. #define IS_DAC_CHANNEL_INSTANCE(INSTANCE, CHANNEL) \
  11097. ((((INSTANCE) == DAC1) && \
  11098. (((CHANNEL) == DAC_CHANNEL_1) || \
  11099. ((CHANNEL) == DAC_CHANNEL_2))) \
  11100. || \
  11101. (((INSTANCE) == DAC2) && \
  11102. (((CHANNEL) == DAC_CHANNEL_1))))
  11103. /****************************** DMA Instances *********************************/
  11104. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \
  11105. ((INSTANCE) == DMA1_Channel2) || \
  11106. ((INSTANCE) == DMA1_Channel3) || \
  11107. ((INSTANCE) == DMA1_Channel4) || \
  11108. ((INSTANCE) == DMA1_Channel5) || \
  11109. ((INSTANCE) == DMA1_Channel6) || \
  11110. ((INSTANCE) == DMA1_Channel7))
  11111. /****************************** GPIO Instances ********************************/
  11112. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  11113. ((INSTANCE) == GPIOB) || \
  11114. ((INSTANCE) == GPIOC) || \
  11115. ((INSTANCE) == GPIOD) || \
  11116. ((INSTANCE) == GPIOF))
  11117. #define IS_GPIO_AF_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  11118. ((INSTANCE) == GPIOB) || \
  11119. ((INSTANCE) == GPIOC) || \
  11120. ((INSTANCE) == GPIOD) || \
  11121. ((INSTANCE) == GPIOF))
  11122. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  11123. ((INSTANCE) == GPIOB) || \
  11124. ((INSTANCE) == GPIOC) || \
  11125. ((INSTANCE) == GPIOD) || \
  11126. ((INSTANCE) == GPIOF))
  11127. /****************************** I2C Instances *********************************/
  11128. #define IS_I2C_ALL_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  11129. /****************** I2C Instances : wakeup capability from stop modes *********/
  11130. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  11131. /****************************** OPAMP Instances *******************************/
  11132. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OPAMP2)
  11133. /****************************** IWDG Instances ********************************/
  11134. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG)
  11135. /****************************** RTC Instances *********************************/
  11136. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
  11137. /****************************** SMBUS Instances *******************************/
  11138. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  11139. /****************************** SPI Instances *********************************/
  11140. #define IS_SPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SPI1)
  11141. /******************* TIM Instances : All supported instances ******************/
  11142. #define IS_TIM_INSTANCE(INSTANCE)\
  11143. (((INSTANCE) == TIM1) || \
  11144. ((INSTANCE) == TIM2) || \
  11145. ((INSTANCE) == TIM3) || \
  11146. ((INSTANCE) == TIM6) || \
  11147. ((INSTANCE) == TIM7) || \
  11148. ((INSTANCE) == TIM15) || \
  11149. ((INSTANCE) == TIM16) || \
  11150. ((INSTANCE) == TIM17))
  11151. /******************* TIM Instances : at least 1 capture/compare channel *******/
  11152. #define IS_TIM_CC1_INSTANCE(INSTANCE)\
  11153. (((INSTANCE) == TIM1) || \
  11154. ((INSTANCE) == TIM2) || \
  11155. ((INSTANCE) == TIM3) || \
  11156. ((INSTANCE) == TIM15) || \
  11157. ((INSTANCE) == TIM16) || \
  11158. ((INSTANCE) == TIM17))
  11159. /****************** TIM Instances : at least 2 capture/compare channels *******/
  11160. #define IS_TIM_CC2_INSTANCE(INSTANCE)\
  11161. (((INSTANCE) == TIM1) || \
  11162. ((INSTANCE) == TIM2) || \
  11163. ((INSTANCE) == TIM3) || \
  11164. ((INSTANCE) == TIM15))
  11165. /****************** TIM Instances : at least 3 capture/compare channels *******/
  11166. #define IS_TIM_CC3_INSTANCE(INSTANCE)\
  11167. (((INSTANCE) == TIM1) || \
  11168. ((INSTANCE) == TIM2) || \
  11169. ((INSTANCE) == TIM3))
  11170. /****************** TIM Instances : at least 4 capture/compare channels *******/
  11171. #define IS_TIM_CC4_INSTANCE(INSTANCE)\
  11172. (((INSTANCE) == TIM1) || \
  11173. ((INSTANCE) == TIM2) || \
  11174. ((INSTANCE) == TIM3))
  11175. /****************** TIM Instances : at least 5 capture/compare channels *******/
  11176. #define IS_TIM_CC5_INSTANCE(INSTANCE)\
  11177. (((INSTANCE) == TIM1))
  11178. /****************** TIM Instances : at least 6 capture/compare channels *******/
  11179. #define IS_TIM_CC6_INSTANCE(INSTANCE)\
  11180. (((INSTANCE) == TIM1))
  11181. /************************** TIM Instances : Advanced-control timers ***********/
  11182. /****************** TIM Instances : Advanced timer instances *******************/
  11183. #define IS_TIM_ADVANCED_INSTANCE(INSTANCE)\
  11184. ((INSTANCE) == TIM1)
  11185. /****************** TIM Instances : supporting clock selection ****************/
  11186. #define IS_TIM_CLOCK_SELECT_INSTANCE(INSTANCE)\
  11187. (((INSTANCE) == TIM1) || \
  11188. ((INSTANCE) == TIM2) || \
  11189. ((INSTANCE) == TIM3) || \
  11190. ((INSTANCE) == TIM15))
  11191. /****************** TIM Instances : supporting external clock mode 1 for ETRF input */
  11192. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
  11193. (((INSTANCE) == TIM1) || \
  11194. ((INSTANCE) == TIM2) || \
  11195. ((INSTANCE) == TIM3))
  11196. /****************** TIM Instances : supporting external clock mode 2 **********/
  11197. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
  11198. (((INSTANCE) == TIM1) || \
  11199. ((INSTANCE) == TIM2) || \
  11200. ((INSTANCE) == TIM3))
  11201. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  11202. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
  11203. (((INSTANCE) == TIM1) || \
  11204. ((INSTANCE) == TIM2) || \
  11205. ((INSTANCE) == TIM3) || \
  11206. ((INSTANCE) == TIM15))
  11207. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  11208. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
  11209. (((INSTANCE) == TIM1) || \
  11210. ((INSTANCE) == TIM2) || \
  11211. ((INSTANCE) == TIM3) || \
  11212. ((INSTANCE) == TIM15))
  11213. /****************** TIM Instances : supporting OCxREF clear *******************/
  11214. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
  11215. (((INSTANCE) == TIM1) || \
  11216. ((INSTANCE) == TIM2) || \
  11217. ((INSTANCE) == TIM3))
  11218. /****************** TIM Instances : supporting encoder interface **************/
  11219. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)\
  11220. (((INSTANCE) == TIM1) || \
  11221. ((INSTANCE) == TIM2) || \
  11222. ((INSTANCE) == TIM3))
  11223. /****************** TIM Instances : supporting Hall interface *****************/
  11224. #define IS_TIM_HALL_INTERFACE_INSTANCE(INSTANCE)\
  11225. (((INSTANCE) == TIM1))
  11226. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE)\
  11227. (((INSTANCE) == TIM1))
  11228. /**************** TIM Instances : external trigger input available ************/
  11229. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  11230. ((INSTANCE) == TIM2) || \
  11231. ((INSTANCE) == TIM3))
  11232. /****************** TIM Instances : supporting input XOR function *************/
  11233. #define IS_TIM_XOR_INSTANCE(INSTANCE)\
  11234. (((INSTANCE) == TIM1) || \
  11235. ((INSTANCE) == TIM2) || \
  11236. ((INSTANCE) == TIM3) || \
  11237. ((INSTANCE) == TIM15))
  11238. /****************** TIM Instances : supporting master mode ********************/
  11239. #define IS_TIM_MASTER_INSTANCE(INSTANCE)\
  11240. (((INSTANCE) == TIM1) || \
  11241. ((INSTANCE) == TIM2) || \
  11242. ((INSTANCE) == TIM3) || \
  11243. ((INSTANCE) == TIM6) || \
  11244. ((INSTANCE) == TIM7) || \
  11245. ((INSTANCE) == TIM15))
  11246. /****************** TIM Instances : supporting slave mode *********************/
  11247. #define IS_TIM_SLAVE_INSTANCE(INSTANCE)\
  11248. (((INSTANCE) == TIM1) || \
  11249. ((INSTANCE) == TIM2) || \
  11250. ((INSTANCE) == TIM3) || \
  11251. ((INSTANCE) == TIM15))
  11252. /****************** TIM Instances : supporting synchronization ****************/
  11253. #define IS_TIM_SYNCHRO_INSTANCE(INSTANCE)\
  11254. (((INSTANCE) == TIM1) || \
  11255. ((INSTANCE) == TIM2) || \
  11256. ((INSTANCE) == TIM3) || \
  11257. ((INSTANCE) == TIM6) || \
  11258. ((INSTANCE) == TIM7) || \
  11259. ((INSTANCE) == TIM15))
  11260. /****************** TIM Instances : supporting 32 bits counter ****************/
  11261. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
  11262. ((INSTANCE) == TIM2)
  11263. /****************** TIM Instances : supporting DMA burst **********************/
  11264. #define IS_TIM_DMABURST_INSTANCE(INSTANCE)\
  11265. (((INSTANCE) == TIM1) || \
  11266. ((INSTANCE) == TIM2) || \
  11267. ((INSTANCE) == TIM3) || \
  11268. ((INSTANCE) == TIM15) || \
  11269. ((INSTANCE) == TIM16) || \
  11270. ((INSTANCE) == TIM17))
  11271. /****************** TIM Instances : supporting the break function *************/
  11272. #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
  11273. (((INSTANCE) == TIM1) || \
  11274. ((INSTANCE) == TIM15) || \
  11275. ((INSTANCE) == TIM16) || \
  11276. ((INSTANCE) == TIM17))
  11277. /****************** TIM Instances : supporting input/output channel(s) ********/
  11278. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  11279. ((((INSTANCE) == TIM1) && \
  11280. (((CHANNEL) == TIM_CHANNEL_1) || \
  11281. ((CHANNEL) == TIM_CHANNEL_2) || \
  11282. ((CHANNEL) == TIM_CHANNEL_3) || \
  11283. ((CHANNEL) == TIM_CHANNEL_4) || \
  11284. ((CHANNEL) == TIM_CHANNEL_5) || \
  11285. ((CHANNEL) == TIM_CHANNEL_6))) \
  11286. || \
  11287. (((INSTANCE) == TIM2) && \
  11288. (((CHANNEL) == TIM_CHANNEL_1) || \
  11289. ((CHANNEL) == TIM_CHANNEL_2) || \
  11290. ((CHANNEL) == TIM_CHANNEL_3) || \
  11291. ((CHANNEL) == TIM_CHANNEL_4))) \
  11292. || \
  11293. (((INSTANCE) == TIM3) && \
  11294. (((CHANNEL) == TIM_CHANNEL_1) || \
  11295. ((CHANNEL) == TIM_CHANNEL_2) || \
  11296. ((CHANNEL) == TIM_CHANNEL_3) || \
  11297. ((CHANNEL) == TIM_CHANNEL_4))) \
  11298. || \
  11299. (((INSTANCE) == TIM15) && \
  11300. (((CHANNEL) == TIM_CHANNEL_1) || \
  11301. ((CHANNEL) == TIM_CHANNEL_2))) \
  11302. || \
  11303. (((INSTANCE) == TIM16) && \
  11304. (((CHANNEL) == TIM_CHANNEL_1))) \
  11305. || \
  11306. (((INSTANCE) == TIM17) && \
  11307. (((CHANNEL) == TIM_CHANNEL_1))))
  11308. /****************** TIM Instances : supporting complementary output(s) ********/
  11309. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  11310. ((((INSTANCE) == TIM1) && \
  11311. (((CHANNEL) == TIM_CHANNEL_1) || \
  11312. ((CHANNEL) == TIM_CHANNEL_2) || \
  11313. ((CHANNEL) == TIM_CHANNEL_3))) \
  11314. || \
  11315. (((INSTANCE) == TIM15) && \
  11316. ((CHANNEL) == TIM_CHANNEL_1)) \
  11317. || \
  11318. (((INSTANCE) == TIM16) && \
  11319. ((CHANNEL) == TIM_CHANNEL_1)) \
  11320. || \
  11321. (((INSTANCE) == TIM17) && \
  11322. ((CHANNEL) == TIM_CHANNEL_1)))
  11323. /****************** TIM Instances : supporting counting mode selection ********/
  11324. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
  11325. (((INSTANCE) == TIM1) || \
  11326. ((INSTANCE) == TIM2) || \
  11327. ((INSTANCE) == TIM3))
  11328. /****************** TIM Instances : supporting repetition counter *************/
  11329. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
  11330. (((INSTANCE) == TIM1) || \
  11331. ((INSTANCE) == TIM15) || \
  11332. ((INSTANCE) == TIM16) || \
  11333. ((INSTANCE) == TIM17))
  11334. /****************** TIM Instances : supporting clock division *****************/
  11335. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
  11336. (((INSTANCE) == TIM1) || \
  11337. ((INSTANCE) == TIM2) || \
  11338. ((INSTANCE) == TIM3) || \
  11339. ((INSTANCE) == TIM15) || \
  11340. ((INSTANCE) == TIM16) || \
  11341. ((INSTANCE) == TIM17))
  11342. /****************** TIM Instances : supporting 2 break inputs *****************/
  11343. #define IS_TIM_BKIN2_INSTANCE(INSTANCE)\
  11344. (((INSTANCE) == TIM1))
  11345. /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
  11346. #define IS_TIM_TRGO2_INSTANCE(INSTANCE)\
  11347. (((INSTANCE) == TIM1))
  11348. /****************** TIM Instances : supporting DMA generation on Update events*/
  11349. #define IS_TIM_DMA_INSTANCE(INSTANCE)\
  11350. (((INSTANCE) == TIM1) || \
  11351. ((INSTANCE) == TIM2) || \
  11352. ((INSTANCE) == TIM3) || \
  11353. ((INSTANCE) == TIM6) || \
  11354. ((INSTANCE) == TIM7) || \
  11355. ((INSTANCE) == TIM15) || \
  11356. ((INSTANCE) == TIM16) || \
  11357. ((INSTANCE) == TIM17))
  11358. /****************** TIM Instances : supporting DMA generation on Capture/Compare events */
  11359. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)\
  11360. (((INSTANCE) == TIM1) || \
  11361. ((INSTANCE) == TIM2) || \
  11362. ((INSTANCE) == TIM3) || \
  11363. ((INSTANCE) == TIM15) || \
  11364. ((INSTANCE) == TIM16) || \
  11365. ((INSTANCE) == TIM17))
  11366. /****************** TIM Instances : supporting commutation event generation ***/
  11367. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE)\
  11368. (((INSTANCE) == TIM1) || \
  11369. ((INSTANCE) == TIM15) || \
  11370. ((INSTANCE) == TIM16) || \
  11371. ((INSTANCE) == TIM17))
  11372. /****************** TIM Instances : supporting remapping capability ***********/
  11373. #define IS_TIM_REMAP_INSTANCE(INSTANCE)\
  11374. (((INSTANCE) == TIM1) || \
  11375. ((INSTANCE) == TIM16))
  11376. /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
  11377. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) \
  11378. (((INSTANCE) == TIM1))
  11379. /****************************** TSC Instances *********************************/
  11380. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC)
  11381. /******************** USART Instances : Synchronous mode **********************/
  11382. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11383. ((INSTANCE) == USART2) || \
  11384. ((INSTANCE) == USART3))
  11385. /****************** USART Instances : Auto Baud Rate detection ****************/
  11386. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) ((INSTANCE) == USART1)
  11387. /******************** UART Instances : Asynchronous mode **********************/
  11388. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11389. ((INSTANCE) == USART2) || \
  11390. ((INSTANCE) == USART3))
  11391. /******************** UART Instances : Half-Duplex mode **********************/
  11392. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11393. ((INSTANCE) == USART2) || \
  11394. ((INSTANCE) == USART3))
  11395. /******************** UART Instances : LIN mode **********************/
  11396. #define IS_UART_LIN_INSTANCE(INSTANCE) ((INSTANCE) == USART1)
  11397. /******************** UART Instances : Wake-up from Stop mode **********************/
  11398. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) ((INSTANCE) == USART1)
  11399. /****************** UART Instances : Hardware Flow control ********************/
  11400. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11401. ((INSTANCE) == USART2) || \
  11402. ((INSTANCE) == USART3))
  11403. /****************** UART Instances : Auto Baud Rate detection *****************/
  11404. #define IS_UART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) ((INSTANCE) == USART1)
  11405. /****************** UART Instances : Driver Enable ****************************/
  11406. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  11407. ((INSTANCE) == USART2) || \
  11408. ((INSTANCE) == USART3))
  11409. /********************* UART Instances : Smard card mode ***********************/
  11410. #define IS_SMARTCARD_INSTANCE(INSTANCE) ((INSTANCE) == USART1)
  11411. /*********************** UART Instances : IRDA mode ***************************/
  11412. #define IS_IRDA_INSTANCE(INSTANCE) ((INSTANCE) == USART1)
  11413. /******************** UART Instances : Support of continuous communication using DMA ****/
  11414. #define IS_UART_DMA_INSTANCE(INSTANCE) (1)
  11415. /****************************** WWDG Instances ********************************/
  11416. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG)
  11417. /**
  11418. * @}
  11419. */
  11420. /******************************************************************************/
  11421. /* For a painless codes migration between the STM32F3xx device product */
  11422. /* lines, the aliases defined below are put in place to overcome the */
  11423. /* differences in the interrupt handlers and IRQn definitions. */
  11424. /* No need to update developed interrupt code when moving across */
  11425. /* product lines within the same STM32F3 Family */
  11426. /******************************************************************************/
  11427. /* Aliases for __IRQn */
  11428. #define ADC1_IRQn ADC1_2_IRQn
  11429. #define USB_LP_CAN_RX0_IRQn CAN_RX0_IRQn
  11430. #define USB_HP_CAN_TX_IRQn CAN_TX_IRQn
  11431. #define COMP1_2_IRQn COMP2_IRQn
  11432. #define COMP1_2_3_IRQn COMP2_IRQn
  11433. #define COMP_IRQn COMP2_IRQn
  11434. #define COMP4_5_6_IRQn COMP4_6_IRQn
  11435. #define TIM15_IRQn TIM1_BRK_TIM15_IRQn
  11436. #define TIM18_DAC2_IRQn TIM1_CC_IRQn
  11437. #define TIM17_IRQn TIM1_TRG_COM_TIM17_IRQn
  11438. #define TIM16_IRQn TIM1_UP_TIM16_IRQn
  11439. #define TIM6_DAC_IRQn TIM6_DAC1_IRQn
  11440. #define TIM7_IRQn TIM7_DAC2_IRQn
  11441. /* Aliases for __IRQHandler */
  11442. #define ADC1_IRQHandler ADC1_2_IRQHandler
  11443. #define USB_LP_CAN_RX0_IRQHandler CAN_RX0_IRQHandler
  11444. #define USB_HP_CAN_TX_IRQHandler CAN_TX_IRQHandler
  11445. #define COMP1_2_IRQHandler COMP2_IRQHandler
  11446. #define COMP1_2_3_IRQHandler COMP2_IRQHandler
  11447. #define COMP_IRQHandler COMP2_IRQHandler
  11448. #define COMP4_5_6_IRQHandler COMP4_6_IRQHandler
  11449. #define TIM15_IRQHandler TIM1_BRK_TIM15_IRQHandler
  11450. #define TIM18_DAC2_IRQHandler TIM1_CC_IRQHandler
  11451. #define TIM17_IRQHandler TIM1_TRG_COM_TIM17_IRQHandler
  11452. #define TIM16_IRQHandler TIM1_UP_TIM16_IRQHandler
  11453. #define TIM6_DAC_IRQHandler TIM6_DAC1_IRQHandler
  11454. #define TIM7_IRQHandler TIM7_DAC2_IRQHandler
  11455. #ifdef __cplusplus
  11456. }
  11457. #endif /* __cplusplus */
  11458. #endif /* __STM32F303x8_H */
  11459. /**
  11460. * @}
  11461. */
  11462. /**
  11463. * @}
  11464. */
  11465. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/