stm32f072xb.h 930 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251
  1. /**
  2. ******************************************************************************
  3. * @file stm32f072xb.h
  4. * @author MCD Application Team
  5. * @version V2.3.1
  6. * @date 04-November-2016
  7. * @brief CMSIS Cortex-M0 Device Peripheral Access Layer Header File.
  8. * This file contains all the peripheral register's definitions, bits
  9. * definitions and memory mapping for STM32F0xx devices.
  10. *
  11. * This file contains:
  12. * - Data structures and the address mapping for all peripherals
  13. * - Peripheral's registers declarations and bits definition
  14. * - Macros to access peripheral’s registers hardware
  15. *
  16. ******************************************************************************
  17. * @attention
  18. *
  19. * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
  20. *
  21. * Redistribution and use in source and binary forms, with or without modification,
  22. * are permitted provided that the following conditions are met:
  23. * 1. Redistributions of source code must retain the above copyright notice,
  24. * this list of conditions and the following disclaimer.
  25. * 2. Redistributions in binary form must reproduce the above copyright notice,
  26. * this list of conditions and the following disclaimer in the documentation
  27. * and/or other materials provided with the distribution.
  28. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  29. * may be used to endorse or promote products derived from this software
  30. * without specific prior written permission.
  31. *
  32. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  33. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  34. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  35. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  36. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  37. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  38. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  39. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  40. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  41. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  42. *
  43. ******************************************************************************
  44. */
  45. /** @addtogroup CMSIS
  46. * @{
  47. */
  48. /** @addtogroup stm32f072xb
  49. * @{
  50. */
  51. #ifndef __STM32F072xB_H
  52. #define __STM32F072xB_H
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif /* __cplusplus */
  56. /** @addtogroup Configuration_section_for_CMSIS
  57. * @{
  58. */
  59. /**
  60. * @brief Configuration of the Cortex-M0 Processor and Core Peripherals
  61. */
  62. #define __CM0_REV 0 /*!< Core Revision r0p0 */
  63. #define __MPU_PRESENT 0 /*!< STM32F0xx do not provide MPU */
  64. #define __NVIC_PRIO_BITS 2 /*!< STM32F0xx uses 2 Bits for the Priority Levels */
  65. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  66. /**
  67. * @}
  68. */
  69. /** @addtogroup Peripheral_interrupt_number_definition
  70. * @{
  71. */
  72. /**
  73. * @brief STM32F0xx Interrupt Number Definition, according to the selected device
  74. * in @ref Library_configuration_section
  75. */
  76. /*!< Interrupt Number Definition */
  77. typedef enum
  78. {
  79. /****** Cortex-M0 Processor Exceptions Numbers **************************************************************/
  80. NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
  81. HardFault_IRQn = -13, /*!< 3 Cortex-M0 Hard Fault Interrupt */
  82. SVC_IRQn = -5, /*!< 11 Cortex-M0 SV Call Interrupt */
  83. PendSV_IRQn = -2, /*!< 14 Cortex-M0 Pend SV Interrupt */
  84. SysTick_IRQn = -1, /*!< 15 Cortex-M0 System Tick Interrupt */
  85. /****** STM32F0 specific Interrupt Numbers ******************************************************************/
  86. WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
  87. PVD_VDDIO2_IRQn = 1, /*!< PVD & VDDIO2 Interrupt through EXTI Lines 16 and 31 */
  88. RTC_IRQn = 2, /*!< RTC Interrupt through EXTI Lines 17, 19 and 20 */
  89. FLASH_IRQn = 3, /*!< FLASH global Interrupt */
  90. RCC_CRS_IRQn = 4, /*!< RCC & CRS global Interrupt */
  91. EXTI0_1_IRQn = 5, /*!< EXTI Line 0 and 1 Interrupt */
  92. EXTI2_3_IRQn = 6, /*!< EXTI Line 2 and 3 Interrupt */
  93. EXTI4_15_IRQn = 7, /*!< EXTI Line 4 to 15 Interrupt */
  94. TSC_IRQn = 8, /*!< Touch Sensing Controller Interrupts */
  95. DMA1_Channel1_IRQn = 9, /*!< DMA1 Channel 1 Interrupt */
  96. DMA1_Channel2_3_IRQn = 10, /*!< DMA1 Channel 2 and Channel 3 Interrupt */
  97. DMA1_Channel4_5_6_7_IRQn = 11, /*!< DMA1 Channel 4 to Channel 7 Interrupt */
  98. ADC1_COMP_IRQn = 12, /*!< ADC1 and COMP interrupts (ADC interrupt combined with EXTI Lines 21 and 22 */
  99. TIM1_BRK_UP_TRG_COM_IRQn = 13, /*!< TIM1 Break, Update, Trigger and Commutation Interrupt */
  100. TIM1_CC_IRQn = 14, /*!< TIM1 Capture Compare Interrupt */
  101. TIM2_IRQn = 15, /*!< TIM2 global Interrupt */
  102. TIM3_IRQn = 16, /*!< TIM3 global Interrupt */
  103. TIM6_DAC_IRQn = 17, /*!< TIM6 global and DAC channel underrun error Interrupt */
  104. TIM7_IRQn = 18, /*!< TIM7 global Interrupt */
  105. TIM14_IRQn = 19, /*!< TIM14 global Interrupt */
  106. TIM15_IRQn = 20, /*!< TIM15 global Interrupt */
  107. TIM16_IRQn = 21, /*!< TIM16 global Interrupt */
  108. TIM17_IRQn = 22, /*!< TIM17 global Interrupt */
  109. I2C1_IRQn = 23, /*!< I2C1 Event Interrupt & EXTI Line23 Interrupt (I2C1 wakeup) */
  110. I2C2_IRQn = 24, /*!< I2C2 Event Interrupt */
  111. SPI1_IRQn = 25, /*!< SPI1 global Interrupt */
  112. SPI2_IRQn = 26, /*!< SPI2 global Interrupt */
  113. USART1_IRQn = 27, /*!< USART1 global Interrupt & EXTI Line25 Interrupt (USART1 wakeup) */
  114. USART2_IRQn = 28, /*!< USART2 global Interrupt & EXTI Line26 Interrupt (USART2 wakeup) */
  115. USART3_4_IRQn = 29, /*!< USART3 and USART4 global Interrupt */
  116. CEC_CAN_IRQn = 30, /*!< CEC and CAN global Interrupts & EXTI Line27 Interrupt */
  117. USB_IRQn = 31 /*!< USB global Interrupt & EXTI Line18 Interrupt */
  118. } IRQn_Type;
  119. /**
  120. * @}
  121. */
  122. #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
  123. #include "system_stm32f0xx.h" /* STM32F0xx System Header */
  124. #include <stdint.h>
  125. /** @addtogroup Peripheral_registers_structures
  126. * @{
  127. */
  128. /**
  129. * @brief Analog to Digital Converter
  130. */
  131. typedef struct
  132. {
  133. __IO uint32_t ISR; /*!< ADC interrupt and status register, Address offset: 0x00 */
  134. __IO uint32_t IER; /*!< ADC interrupt enable register, Address offset: 0x04 */
  135. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  136. __IO uint32_t CFGR1; /*!< ADC configuration register 1, Address offset: 0x0C */
  137. __IO uint32_t CFGR2; /*!< ADC configuration register 2, Address offset: 0x10 */
  138. __IO uint32_t SMPR; /*!< ADC sampling time register, Address offset: 0x14 */
  139. uint32_t RESERVED1; /*!< Reserved, 0x18 */
  140. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  141. __IO uint32_t TR; /*!< ADC analog watchdog 1 threshold register, Address offset: 0x20 */
  142. uint32_t RESERVED3; /*!< Reserved, 0x24 */
  143. __IO uint32_t CHSELR; /*!< ADC group regular sequencer register, Address offset: 0x28 */
  144. uint32_t RESERVED4[5]; /*!< Reserved, 0x2C */
  145. __IO uint32_t DR; /*!< ADC group regular data register, Address offset: 0x40 */
  146. } ADC_TypeDef;
  147. typedef struct
  148. {
  149. __IO uint32_t CCR; /*!< ADC common configuration register, Address offset: ADC1 base address + 0x308 */
  150. } ADC_Common_TypeDef;
  151. /**
  152. * @brief Controller Area Network TxMailBox
  153. */
  154. typedef struct
  155. {
  156. __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */
  157. __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */
  158. __IO uint32_t TDLR; /*!< CAN mailbox data low register */
  159. __IO uint32_t TDHR; /*!< CAN mailbox data high register */
  160. }CAN_TxMailBox_TypeDef;
  161. /**
  162. * @brief Controller Area Network FIFOMailBox
  163. */
  164. typedef struct
  165. {
  166. __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */
  167. __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */
  168. __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */
  169. __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */
  170. }CAN_FIFOMailBox_TypeDef;
  171. /**
  172. * @brief Controller Area Network FilterRegister
  173. */
  174. typedef struct
  175. {
  176. __IO uint32_t FR1; /*!< CAN Filter bank register 1 */
  177. __IO uint32_t FR2; /*!< CAN Filter bank register 1 */
  178. }CAN_FilterRegister_TypeDef;
  179. /**
  180. * @brief Controller Area Network
  181. */
  182. typedef struct
  183. {
  184. __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */
  185. __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */
  186. __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */
  187. __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */
  188. __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */
  189. __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */
  190. __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */
  191. __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */
  192. uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */
  193. CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */
  194. CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */
  195. uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */
  196. __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */
  197. __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */
  198. uint32_t RESERVED2; /*!< Reserved, 0x208 */
  199. __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */
  200. uint32_t RESERVED3; /*!< Reserved, 0x210 */
  201. __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */
  202. uint32_t RESERVED4; /*!< Reserved, 0x218 */
  203. __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */
  204. uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */
  205. CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */
  206. }CAN_TypeDef;
  207. /**
  208. * @brief HDMI-CEC
  209. */
  210. typedef struct
  211. {
  212. __IO uint32_t CR; /*!< CEC control register, Address offset:0x00 */
  213. __IO uint32_t CFGR; /*!< CEC configuration register, Address offset:0x04 */
  214. __IO uint32_t TXDR; /*!< CEC Tx data register , Address offset:0x08 */
  215. __IO uint32_t RXDR; /*!< CEC Rx Data Register, Address offset:0x0C */
  216. __IO uint32_t ISR; /*!< CEC Interrupt and Status Register, Address offset:0x10 */
  217. __IO uint32_t IER; /*!< CEC interrupt enable register, Address offset:0x14 */
  218. }CEC_TypeDef;
  219. /**
  220. * @brief Comparator
  221. */
  222. typedef struct
  223. {
  224. __IO uint16_t CSR; /*!< COMP control and status register, Address offset: 0x00 */
  225. } COMP_TypeDef;
  226. typedef struct
  227. {
  228. __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  229. } COMP_Common_TypeDef;
  230. /* Legacy defines */
  231. typedef struct
  232. {
  233. __IO uint32_t CSR; /*!< Kept for legacy purpose. Use structure 'COMP_Common_TypeDef'. */
  234. }COMP1_2_TypeDef;
  235. /**
  236. * @brief CRC calculation unit
  237. */
  238. typedef struct
  239. {
  240. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  241. __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  242. uint8_t RESERVED0; /*!< Reserved, 0x05 */
  243. uint16_t RESERVED1; /*!< Reserved, 0x06 */
  244. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  245. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  246. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  247. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  248. } CRC_TypeDef;
  249. /**
  250. * @brief Clock Recovery System
  251. */
  252. typedef struct
  253. {
  254. __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */
  255. __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */
  256. __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */
  257. __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */
  258. }CRS_TypeDef;
  259. /**
  260. * @brief Digital to Analog Converter
  261. */
  262. typedef struct
  263. {
  264. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  265. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  266. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  267. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  268. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  269. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  270. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  271. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  272. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  273. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  274. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  275. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  276. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  277. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  278. } DAC_TypeDef;
  279. /**
  280. * @brief Debug MCU
  281. */
  282. typedef struct
  283. {
  284. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  285. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  286. __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */
  287. __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */
  288. }DBGMCU_TypeDef;
  289. /**
  290. * @brief DMA Controller
  291. */
  292. typedef struct
  293. {
  294. __IO uint32_t CCR; /*!< DMA channel x configuration register */
  295. __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
  296. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
  297. __IO uint32_t CMAR; /*!< DMA channel x memory address register */
  298. } DMA_Channel_TypeDef;
  299. typedef struct
  300. {
  301. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  302. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  303. } DMA_TypeDef;
  304. /**
  305. * @brief External Interrupt/Event Controller
  306. */
  307. typedef struct
  308. {
  309. __IO uint32_t IMR; /*!<EXTI Interrupt mask register, Address offset: 0x00 */
  310. __IO uint32_t EMR; /*!<EXTI Event mask register, Address offset: 0x04 */
  311. __IO uint32_t RTSR; /*!<EXTI Rising trigger selection register , Address offset: 0x08 */
  312. __IO uint32_t FTSR; /*!<EXTI Falling trigger selection register, Address offset: 0x0C */
  313. __IO uint32_t SWIER; /*!<EXTI Software interrupt event register, Address offset: 0x10 */
  314. __IO uint32_t PR; /*!<EXTI Pending register, Address offset: 0x14 */
  315. } EXTI_TypeDef;
  316. /**
  317. * @brief FLASH Registers
  318. */
  319. typedef struct
  320. {
  321. __IO uint32_t ACR; /*!<FLASH access control register, Address offset: 0x00 */
  322. __IO uint32_t KEYR; /*!<FLASH key register, Address offset: 0x04 */
  323. __IO uint32_t OPTKEYR; /*!<FLASH OPT key register, Address offset: 0x08 */
  324. __IO uint32_t SR; /*!<FLASH status register, Address offset: 0x0C */
  325. __IO uint32_t CR; /*!<FLASH control register, Address offset: 0x10 */
  326. __IO uint32_t AR; /*!<FLASH address register, Address offset: 0x14 */
  327. __IO uint32_t RESERVED; /*!< Reserved, 0x18 */
  328. __IO uint32_t OBR; /*!<FLASH option bytes register, Address offset: 0x1C */
  329. __IO uint32_t WRPR; /*!<FLASH option bytes register, Address offset: 0x20 */
  330. } FLASH_TypeDef;
  331. /**
  332. * @brief Option Bytes Registers
  333. */
  334. typedef struct
  335. {
  336. __IO uint16_t RDP; /*!< FLASH option byte Read protection, Address offset: 0x00 */
  337. __IO uint16_t USER; /*!< FLASH option byte user options, Address offset: 0x02 */
  338. __IO uint16_t DATA0; /*!< User data byte 0 (stored in FLASH_OBR[23:16]), Address offset: 0x04 */
  339. __IO uint16_t DATA1; /*!< User data byte 1 (stored in FLASH_OBR[31:24]), Address offset: 0x06 */
  340. __IO uint16_t WRP0; /*!< FLASH option byte write protection 0, Address offset: 0x08 */
  341. __IO uint16_t WRP1; /*!< FLASH option byte write protection 1, Address offset: 0x0A */
  342. __IO uint16_t WRP2; /*!< FLASH option byte write protection 2, Address offset: 0x0C */
  343. __IO uint16_t WRP3; /*!< FLASH option byte write protection 3, Address offset: 0x0E */
  344. } OB_TypeDef;
  345. /**
  346. * @brief General Purpose I/O
  347. */
  348. typedef struct
  349. {
  350. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  351. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  352. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  353. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  354. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  355. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  356. __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x1A */
  357. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  358. __IO uint32_t AFR[2]; /*!< GPIO alternate function low register, Address offset: 0x20-0x24 */
  359. __IO uint32_t BRR; /*!< GPIO bit reset register, Address offset: 0x28 */
  360. } GPIO_TypeDef;
  361. /**
  362. * @brief SysTem Configuration
  363. */
  364. typedef struct
  365. {
  366. __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x00 */
  367. uint32_t RESERVED; /*!< Reserved, 0x04 */
  368. __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration register, Address offset: 0x14-0x08 */
  369. __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x18 */
  370. } SYSCFG_TypeDef;
  371. /**
  372. * @brief Inter-integrated Circuit Interface
  373. */
  374. typedef struct
  375. {
  376. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  377. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  378. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  379. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  380. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  381. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  382. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  383. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  384. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  385. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  386. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  387. } I2C_TypeDef;
  388. /**
  389. * @brief Independent WATCHDOG
  390. */
  391. typedef struct
  392. {
  393. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  394. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  395. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  396. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  397. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  398. } IWDG_TypeDef;
  399. /**
  400. * @brief Power Control
  401. */
  402. typedef struct
  403. {
  404. __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */
  405. __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */
  406. } PWR_TypeDef;
  407. /**
  408. * @brief Reset and Clock Control
  409. */
  410. typedef struct
  411. {
  412. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  413. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x04 */
  414. __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x08 */
  415. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x0C */
  416. __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x10 */
  417. __IO uint32_t AHBENR; /*!< RCC AHB peripheral clock register, Address offset: 0x14 */
  418. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x18 */
  419. __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x1C */
  420. __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x20 */
  421. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x24 */
  422. __IO uint32_t AHBRSTR; /*!< RCC AHB peripheral reset register, Address offset: 0x28 */
  423. __IO uint32_t CFGR2; /*!< RCC clock configuration register 2, Address offset: 0x2C */
  424. __IO uint32_t CFGR3; /*!< RCC clock configuration register 3, Address offset: 0x30 */
  425. __IO uint32_t CR2; /*!< RCC clock control register 2, Address offset: 0x34 */
  426. } RCC_TypeDef;
  427. /**
  428. * @brief Real-Time Clock
  429. */
  430. typedef struct
  431. {
  432. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  433. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  434. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
  435. __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
  436. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  437. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  438. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x18 */
  439. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
  440. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x20 */
  441. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  442. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
  443. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  444. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  445. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  446. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  447. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  448. __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
  449. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  450. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x48 */
  451. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x4C */
  452. __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  453. __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  454. __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  455. __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  456. __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  457. } RTC_TypeDef;
  458. /**
  459. * @brief Serial Peripheral Interface
  460. */
  461. typedef struct
  462. {
  463. __IO uint32_t CR1; /*!< SPI Control register 1 (not used in I2S mode), Address offset: 0x00 */
  464. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  465. __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
  466. __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
  467. __IO uint32_t CRCPR; /*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 */
  468. __IO uint32_t RXCRCR; /*!< SPI Rx CRC register (not used in I2S mode), Address offset: 0x14 */
  469. __IO uint32_t TXCRCR; /*!< SPI Tx CRC register (not used in I2S mode), Address offset: 0x18 */
  470. __IO uint32_t I2SCFGR; /*!< SPI_I2S configuration register, Address offset: 0x1C */
  471. __IO uint32_t I2SPR; /*!< SPI_I2S prescaler register, Address offset: 0x20 */
  472. } SPI_TypeDef;
  473. /**
  474. * @brief TIM
  475. */
  476. typedef struct
  477. {
  478. __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  479. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  480. __IO uint32_t SMCR; /*!< TIM slave Mode Control register, Address offset: 0x08 */
  481. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  482. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  483. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  484. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  485. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  486. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  487. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  488. __IO uint32_t PSC; /*!< TIM prescaler register, Address offset: 0x28 */
  489. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  490. __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  491. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  492. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  493. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  494. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  495. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  496. __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  497. __IO uint32_t DMAR; /*!< TIM DMA address for full transfer register, Address offset: 0x4C */
  498. __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */
  499. } TIM_TypeDef;
  500. /**
  501. * @brief Touch Sensing Controller (TSC)
  502. */
  503. typedef struct
  504. {
  505. __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
  506. __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
  507. __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
  508. __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
  509. __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
  510. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  511. __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
  512. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
  513. __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
  514. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
  515. __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
  516. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
  517. __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
  518. __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
  519. }TSC_TypeDef;
  520. /**
  521. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  522. */
  523. typedef struct
  524. {
  525. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  526. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  527. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  528. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  529. __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  530. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  531. __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
  532. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  533. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  534. __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  535. uint16_t RESERVED1; /*!< Reserved, 0x26 */
  536. __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  537. uint16_t RESERVED2; /*!< Reserved, 0x2A */
  538. } USART_TypeDef;
  539. /**
  540. * @brief Universal Serial Bus Full Speed Device
  541. */
  542. typedef struct
  543. {
  544. __IO uint16_t EP0R; /*!< USB Endpoint 0 register, Address offset: 0x00 */
  545. __IO uint16_t RESERVED0; /*!< Reserved */
  546. __IO uint16_t EP1R; /*!< USB Endpoint 1 register, Address offset: 0x04 */
  547. __IO uint16_t RESERVED1; /*!< Reserved */
  548. __IO uint16_t EP2R; /*!< USB Endpoint 2 register, Address offset: 0x08 */
  549. __IO uint16_t RESERVED2; /*!< Reserved */
  550. __IO uint16_t EP3R; /*!< USB Endpoint 3 register, Address offset: 0x0C */
  551. __IO uint16_t RESERVED3; /*!< Reserved */
  552. __IO uint16_t EP4R; /*!< USB Endpoint 4 register, Address offset: 0x10 */
  553. __IO uint16_t RESERVED4; /*!< Reserved */
  554. __IO uint16_t EP5R; /*!< USB Endpoint 5 register, Address offset: 0x14 */
  555. __IO uint16_t RESERVED5; /*!< Reserved */
  556. __IO uint16_t EP6R; /*!< USB Endpoint 6 register, Address offset: 0x18 */
  557. __IO uint16_t RESERVED6; /*!< Reserved */
  558. __IO uint16_t EP7R; /*!< USB Endpoint 7 register, Address offset: 0x1C */
  559. __IO uint16_t RESERVED7[17]; /*!< Reserved */
  560. __IO uint16_t CNTR; /*!< Control register, Address offset: 0x40 */
  561. __IO uint16_t RESERVED8; /*!< Reserved */
  562. __IO uint16_t ISTR; /*!< Interrupt status register, Address offset: 0x44 */
  563. __IO uint16_t RESERVED9; /*!< Reserved */
  564. __IO uint16_t FNR; /*!< Frame number register, Address offset: 0x48 */
  565. __IO uint16_t RESERVEDA; /*!< Reserved */
  566. __IO uint16_t DADDR; /*!< Device address register, Address offset: 0x4C */
  567. __IO uint16_t RESERVEDB; /*!< Reserved */
  568. __IO uint16_t BTABLE; /*!< Buffer Table address register, Address offset: 0x50 */
  569. __IO uint16_t RESERVEDC; /*!< Reserved */
  570. __IO uint16_t LPMCSR; /*!< LPM Control and Status register, Address offset: 0x54 */
  571. __IO uint16_t RESERVEDD; /*!< Reserved */
  572. __IO uint16_t BCDR; /*!< Battery Charging detector register, Address offset: 0x58 */
  573. __IO uint16_t RESERVEDE; /*!< Reserved */
  574. } USB_TypeDef;
  575. /**
  576. * @brief Window WATCHDOG
  577. */
  578. typedef struct
  579. {
  580. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  581. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  582. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  583. } WWDG_TypeDef;
  584. /**
  585. * @}
  586. */
  587. /** @addtogroup Peripheral_memory_map
  588. * @{
  589. */
  590. #define FLASH_BASE ((uint32_t)0x08000000U) /*!< FLASH base address in the alias region */
  591. #define FLASH_BANK1_END ((uint32_t)0x0801FFFFU) /*!< FLASH END address of bank1 */
  592. #define SRAM_BASE ((uint32_t)0x20000000U) /*!< SRAM base address in the alias region */
  593. #define PERIPH_BASE ((uint32_t)0x40000000U) /*!< Peripheral base address in the alias region */
  594. /*!< Peripheral memory map */
  595. #define APBPERIPH_BASE PERIPH_BASE
  596. #define AHBPERIPH_BASE (PERIPH_BASE + 0x00020000)
  597. #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000)
  598. /*!< APB peripherals */
  599. #define TIM2_BASE (APBPERIPH_BASE + 0x00000000)
  600. #define TIM3_BASE (APBPERIPH_BASE + 0x00000400)
  601. #define TIM6_BASE (APBPERIPH_BASE + 0x00001000)
  602. #define TIM7_BASE (APBPERIPH_BASE + 0x00001400)
  603. #define TIM14_BASE (APBPERIPH_BASE + 0x00002000)
  604. #define RTC_BASE (APBPERIPH_BASE + 0x00002800)
  605. #define WWDG_BASE (APBPERIPH_BASE + 0x00002C00)
  606. #define IWDG_BASE (APBPERIPH_BASE + 0x00003000)
  607. #define SPI2_BASE (APBPERIPH_BASE + 0x00003800)
  608. #define USART2_BASE (APBPERIPH_BASE + 0x00004400)
  609. #define USART3_BASE (APBPERIPH_BASE + 0x00004800)
  610. #define USART4_BASE (APBPERIPH_BASE + 0x00004C00)
  611. #define I2C1_BASE (APBPERIPH_BASE + 0x00005400)
  612. #define I2C2_BASE (APBPERIPH_BASE + 0x00005800)
  613. #define USB_BASE (APBPERIPH_BASE + 0x00005C00) /*!< USB_IP Peripheral Registers base address */
  614. #define USB_PMAADDR (APBPERIPH_BASE + 0x00006000) /*!< USB_IP Packet Memory Area base address */
  615. #define CAN_BASE (APBPERIPH_BASE + 0x00006400)
  616. #define CRS_BASE (APBPERIPH_BASE + 0x00006C00)
  617. #define PWR_BASE (APBPERIPH_BASE + 0x00007000)
  618. #define DAC_BASE (APBPERIPH_BASE + 0x00007400)
  619. #define CEC_BASE (APBPERIPH_BASE + 0x00007800)
  620. #define SYSCFG_BASE (APBPERIPH_BASE + 0x00010000)
  621. #define COMP_BASE (APBPERIPH_BASE + 0x0001001C)
  622. #define EXTI_BASE (APBPERIPH_BASE + 0x00010400)
  623. #define ADC1_BASE (APBPERIPH_BASE + 0x00012400)
  624. #define ADC_BASE (APBPERIPH_BASE + 0x00012708)
  625. #define TIM1_BASE (APBPERIPH_BASE + 0x00012C00)
  626. #define SPI1_BASE (APBPERIPH_BASE + 0x00013000)
  627. #define USART1_BASE (APBPERIPH_BASE + 0x00013800)
  628. #define TIM15_BASE (APBPERIPH_BASE + 0x00014000)
  629. #define TIM16_BASE (APBPERIPH_BASE + 0x00014400)
  630. #define TIM17_BASE (APBPERIPH_BASE + 0x00014800)
  631. #define DBGMCU_BASE (APBPERIPH_BASE + 0x00015800)
  632. /*!< AHB peripherals */
  633. #define DMA1_BASE (AHBPERIPH_BASE + 0x00000000)
  634. #define DMA1_Channel1_BASE (DMA1_BASE + 0x00000008)
  635. #define DMA1_Channel2_BASE (DMA1_BASE + 0x0000001C)
  636. #define DMA1_Channel3_BASE (DMA1_BASE + 0x00000030)
  637. #define DMA1_Channel4_BASE (DMA1_BASE + 0x00000044)
  638. #define DMA1_Channel5_BASE (DMA1_BASE + 0x00000058)
  639. #define DMA1_Channel6_BASE (DMA1_BASE + 0x0000006C)
  640. #define DMA1_Channel7_BASE (DMA1_BASE + 0x00000080)
  641. #define RCC_BASE (AHBPERIPH_BASE + 0x00001000)
  642. #define FLASH_R_BASE (AHBPERIPH_BASE + 0x00002000) /*!< FLASH registers base address */
  643. #define OB_BASE ((uint32_t)0x1FFFF800U) /*!< FLASH Option Bytes base address */
  644. #define FLASHSIZE_BASE ((uint32_t)0x1FFFF7CCU) /*!< FLASH Size register base address */
  645. #define UID_BASE ((uint32_t)0x1FFFF7ACU) /*!< Unique device ID register base address */
  646. #define CRC_BASE (AHBPERIPH_BASE + 0x00003000)
  647. #define TSC_BASE (AHBPERIPH_BASE + 0x00004000)
  648. /*!< AHB2 peripherals */
  649. #define GPIOA_BASE (AHB2PERIPH_BASE + 0x00000000)
  650. #define GPIOB_BASE (AHB2PERIPH_BASE + 0x00000400)
  651. #define GPIOC_BASE (AHB2PERIPH_BASE + 0x00000800)
  652. #define GPIOD_BASE (AHB2PERIPH_BASE + 0x00000C00)
  653. #define GPIOE_BASE (AHB2PERIPH_BASE + 0x00001000)
  654. #define GPIOF_BASE (AHB2PERIPH_BASE + 0x00001400)
  655. /**
  656. * @}
  657. */
  658. /** @addtogroup Peripheral_declaration
  659. * @{
  660. */
  661. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  662. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  663. #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
  664. #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
  665. #define TIM14 ((TIM_TypeDef *) TIM14_BASE)
  666. #define RTC ((RTC_TypeDef *) RTC_BASE)
  667. #define WWDG ((WWDG_TypeDef *) WWDG_BASE)
  668. #define IWDG ((IWDG_TypeDef *) IWDG_BASE)
  669. #define USART2 ((USART_TypeDef *) USART2_BASE)
  670. #define USART3 ((USART_TypeDef *) USART3_BASE)
  671. #define USART4 ((USART_TypeDef *) USART4_BASE)
  672. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  673. #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
  674. #define CAN ((CAN_TypeDef *) CAN_BASE)
  675. #define CRS ((CRS_TypeDef *) CRS_BASE)
  676. #define PWR ((PWR_TypeDef *) PWR_BASE)
  677. #define DAC1 ((DAC_TypeDef *) DAC_BASE)
  678. #define DAC ((DAC_TypeDef *) DAC_BASE) /* Kept for legacy purpose */
  679. #define CEC ((CEC_TypeDef *) CEC_BASE)
  680. #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
  681. #define COMP1 ((COMP_TypeDef *) COMP_BASE)
  682. #define COMP2 ((COMP_TypeDef *) (COMP_BASE + 0x00000002))
  683. #define COMP12_COMMON ((COMP_Common_TypeDef *) COMP_BASE)
  684. #define COMP ((COMP1_2_TypeDef *) COMP_BASE) /* Kept for legacy purpose */
  685. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  686. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  687. #define ADC1_COMMON ((ADC_Common_TypeDef *) ADC_BASE)
  688. #define ADC ((ADC_Common_TypeDef *) ADC_BASE) /* Kept for legacy purpose */
  689. #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
  690. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  691. #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
  692. #define USART1 ((USART_TypeDef *) USART1_BASE)
  693. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  694. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  695. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  696. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  697. #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
  698. #define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
  699. #define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
  700. #define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
  701. #define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
  702. #define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
  703. #define DMA1_Channel6 ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE)
  704. #define DMA1_Channel7 ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE)
  705. #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
  706. #define OB ((OB_TypeDef *) OB_BASE)
  707. #define RCC ((RCC_TypeDef *) RCC_BASE)
  708. #define CRC ((CRC_TypeDef *) CRC_BASE)
  709. #define TSC ((TSC_TypeDef *) TSC_BASE)
  710. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  711. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  712. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  713. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  714. #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
  715. #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
  716. #define USB ((USB_TypeDef *) USB_BASE)
  717. /**
  718. * @}
  719. */
  720. /** @addtogroup Exported_constants
  721. * @{
  722. */
  723. /** @addtogroup Peripheral_Registers_Bits_Definition
  724. * @{
  725. */
  726. /******************************************************************************/
  727. /* Peripheral Registers Bits Definition */
  728. /******************************************************************************/
  729. /******************************************************************************/
  730. /* */
  731. /* Analog to Digital Converter (ADC) */
  732. /* */
  733. /******************************************************************************/
  734. /*
  735. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  736. */
  737. #define ADC_CHANNEL_VBAT_SUPPORT /*!< ADC feature available only on specific devices: ADC internal channel Vbat */
  738. /******************** Bits definition for ADC_ISR register ******************/
  739. #define ADC_ISR_ADRDY_Pos (0U)
  740. #define ADC_ISR_ADRDY_Msk (0x1U << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */
  741. #define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC ready flag */
  742. #define ADC_ISR_EOSMP_Pos (1U)
  743. #define ADC_ISR_EOSMP_Msk (0x1U << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  744. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC group regular end of sampling flag */
  745. #define ADC_ISR_EOC_Pos (2U)
  746. #define ADC_ISR_EOC_Msk (0x1U << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  747. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC group regular end of unitary conversion flag */
  748. #define ADC_ISR_EOS_Pos (3U)
  749. #define ADC_ISR_EOS_Msk (0x1U << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  750. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */
  751. #define ADC_ISR_OVR_Pos (4U)
  752. #define ADC_ISR_OVR_Msk (0x1U << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  753. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC group regular overrun flag */
  754. #define ADC_ISR_AWD1_Pos (7U)
  755. #define ADC_ISR_AWD1_Msk (0x1U << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  756. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC analog watchdog 1 flag */
  757. /* Legacy defines */
  758. #define ADC_ISR_AWD (ADC_ISR_AWD1)
  759. #define ADC_ISR_EOSEQ (ADC_ISR_EOS)
  760. /******************** Bits definition for ADC_IER register ******************/
  761. #define ADC_IER_ADRDYIE_Pos (0U)
  762. #define ADC_IER_ADRDYIE_Msk (0x1U << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */
  763. #define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC ready interrupt */
  764. #define ADC_IER_EOSMPIE_Pos (1U)
  765. #define ADC_IER_EOSMPIE_Msk (0x1U << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */
  766. #define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC group regular end of sampling interrupt */
  767. #define ADC_IER_EOCIE_Pos (2U)
  768. #define ADC_IER_EOCIE_Msk (0x1U << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */
  769. #define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC group regular end of unitary conversion interrupt */
  770. #define ADC_IER_EOSIE_Pos (3U)
  771. #define ADC_IER_EOSIE_Msk (0x1U << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */
  772. #define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */
  773. #define ADC_IER_OVRIE_Pos (4U)
  774. #define ADC_IER_OVRIE_Msk (0x1U << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */
  775. #define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC group regular overrun interrupt */
  776. #define ADC_IER_AWD1IE_Pos (7U)
  777. #define ADC_IER_AWD1IE_Msk (0x1U << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */
  778. #define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC analog watchdog 1 interrupt */
  779. /* Legacy defines */
  780. #define ADC_IER_AWDIE (ADC_IER_AWD1IE)
  781. #define ADC_IER_EOSEQIE (ADC_IER_EOSIE)
  782. /******************** Bits definition for ADC_CR register *******************/
  783. #define ADC_CR_ADEN_Pos (0U)
  784. #define ADC_CR_ADEN_Msk (0x1U << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  785. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC enable */
  786. #define ADC_CR_ADDIS_Pos (1U)
  787. #define ADC_CR_ADDIS_Msk (0x1U << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  788. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC disable */
  789. #define ADC_CR_ADSTART_Pos (2U)
  790. #define ADC_CR_ADSTART_Msk (0x1U << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  791. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC group regular conversion start */
  792. #define ADC_CR_ADSTP_Pos (4U)
  793. #define ADC_CR_ADSTP_Msk (0x1U << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  794. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC group regular conversion stop */
  795. #define ADC_CR_ADCAL_Pos (31U)
  796. #define ADC_CR_ADCAL_Msk (0x1U << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  797. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC calibration */
  798. /******************* Bits definition for ADC_CFGR1 register *****************/
  799. #define ADC_CFGR1_DMAEN_Pos (0U)
  800. #define ADC_CFGR1_DMAEN_Msk (0x1U << ADC_CFGR1_DMAEN_Pos) /*!< 0x00000001 */
  801. #define ADC_CFGR1_DMAEN ADC_CFGR1_DMAEN_Msk /*!< ADC DMA transfer enable */
  802. #define ADC_CFGR1_DMACFG_Pos (1U)
  803. #define ADC_CFGR1_DMACFG_Msk (0x1U << ADC_CFGR1_DMACFG_Pos) /*!< 0x00000002 */
  804. #define ADC_CFGR1_DMACFG ADC_CFGR1_DMACFG_Msk /*!< ADC DMA transfer configuration */
  805. #define ADC_CFGR1_SCANDIR_Pos (2U)
  806. #define ADC_CFGR1_SCANDIR_Msk (0x1U << ADC_CFGR1_SCANDIR_Pos) /*!< 0x00000004 */
  807. #define ADC_CFGR1_SCANDIR ADC_CFGR1_SCANDIR_Msk /*!< ADC group regular sequencer scan direction */
  808. #define ADC_CFGR1_RES_Pos (3U)
  809. #define ADC_CFGR1_RES_Msk (0x3U << ADC_CFGR1_RES_Pos) /*!< 0x00000018 */
  810. #define ADC_CFGR1_RES ADC_CFGR1_RES_Msk /*!< ADC data resolution */
  811. #define ADC_CFGR1_RES_0 (0x1U << ADC_CFGR1_RES_Pos) /*!< 0x00000008 */
  812. #define ADC_CFGR1_RES_1 (0x2U << ADC_CFGR1_RES_Pos) /*!< 0x00000010 */
  813. #define ADC_CFGR1_ALIGN_Pos (5U)
  814. #define ADC_CFGR1_ALIGN_Msk (0x1U << ADC_CFGR1_ALIGN_Pos) /*!< 0x00000020 */
  815. #define ADC_CFGR1_ALIGN ADC_CFGR1_ALIGN_Msk /*!< ADC data alignement */
  816. #define ADC_CFGR1_EXTSEL_Pos (6U)
  817. #define ADC_CFGR1_EXTSEL_Msk (0x7U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x000001C0 */
  818. #define ADC_CFGR1_EXTSEL ADC_CFGR1_EXTSEL_Msk /*!< ADC group regular external trigger source */
  819. #define ADC_CFGR1_EXTSEL_0 (0x1U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x00000040 */
  820. #define ADC_CFGR1_EXTSEL_1 (0x2U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x00000080 */
  821. #define ADC_CFGR1_EXTSEL_2 (0x4U << ADC_CFGR1_EXTSEL_Pos) /*!< 0x00000100 */
  822. #define ADC_CFGR1_EXTEN_Pos (10U)
  823. #define ADC_CFGR1_EXTEN_Msk (0x3U << ADC_CFGR1_EXTEN_Pos) /*!< 0x00000C00 */
  824. #define ADC_CFGR1_EXTEN ADC_CFGR1_EXTEN_Msk /*!< ADC group regular external trigger polarity */
  825. #define ADC_CFGR1_EXTEN_0 (0x1U << ADC_CFGR1_EXTEN_Pos) /*!< 0x00000400 */
  826. #define ADC_CFGR1_EXTEN_1 (0x2U << ADC_CFGR1_EXTEN_Pos) /*!< 0x00000800 */
  827. #define ADC_CFGR1_OVRMOD_Pos (12U)
  828. #define ADC_CFGR1_OVRMOD_Msk (0x1U << ADC_CFGR1_OVRMOD_Pos) /*!< 0x00001000 */
  829. #define ADC_CFGR1_OVRMOD ADC_CFGR1_OVRMOD_Msk /*!< ADC group regular overrun configuration */
  830. #define ADC_CFGR1_CONT_Pos (13U)
  831. #define ADC_CFGR1_CONT_Msk (0x1U << ADC_CFGR1_CONT_Pos) /*!< 0x00002000 */
  832. #define ADC_CFGR1_CONT ADC_CFGR1_CONT_Msk /*!< ADC group regular continuous conversion mode */
  833. #define ADC_CFGR1_WAIT_Pos (14U)
  834. #define ADC_CFGR1_WAIT_Msk (0x1U << ADC_CFGR1_WAIT_Pos) /*!< 0x00004000 */
  835. #define ADC_CFGR1_WAIT ADC_CFGR1_WAIT_Msk /*!< ADC low power auto wait */
  836. #define ADC_CFGR1_AUTOFF_Pos (15U)
  837. #define ADC_CFGR1_AUTOFF_Msk (0x1U << ADC_CFGR1_AUTOFF_Pos) /*!< 0x00008000 */
  838. #define ADC_CFGR1_AUTOFF ADC_CFGR1_AUTOFF_Msk /*!< ADC low power auto power off */
  839. #define ADC_CFGR1_DISCEN_Pos (16U)
  840. #define ADC_CFGR1_DISCEN_Msk (0x1U << ADC_CFGR1_DISCEN_Pos) /*!< 0x00010000 */
  841. #define ADC_CFGR1_DISCEN ADC_CFGR1_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */
  842. #define ADC_CFGR1_AWD1SGL_Pos (22U)
  843. #define ADC_CFGR1_AWD1SGL_Msk (0x1U << ADC_CFGR1_AWD1SGL_Pos) /*!< 0x00400000 */
  844. #define ADC_CFGR1_AWD1SGL ADC_CFGR1_AWD1SGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */
  845. #define ADC_CFGR1_AWD1EN_Pos (23U)
  846. #define ADC_CFGR1_AWD1EN_Msk (0x1U << ADC_CFGR1_AWD1EN_Pos) /*!< 0x00800000 */
  847. #define ADC_CFGR1_AWD1EN ADC_CFGR1_AWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */
  848. #define ADC_CFGR1_AWD1CH_Pos (26U)
  849. #define ADC_CFGR1_AWD1CH_Msk (0x1FU << ADC_CFGR1_AWD1CH_Pos) /*!< 0x7C000000 */
  850. #define ADC_CFGR1_AWD1CH ADC_CFGR1_AWD1CH_Msk /*!< ADC analog watchdog 1 monitored channel selection */
  851. #define ADC_CFGR1_AWD1CH_0 (0x01U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x04000000 */
  852. #define ADC_CFGR1_AWD1CH_1 (0x02U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x08000000 */
  853. #define ADC_CFGR1_AWD1CH_2 (0x04U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x10000000 */
  854. #define ADC_CFGR1_AWD1CH_3 (0x08U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x20000000 */
  855. #define ADC_CFGR1_AWD1CH_4 (0x10U << ADC_CFGR1_AWD1CH_Pos) /*!< 0x40000000 */
  856. /* Legacy defines */
  857. #define ADC_CFGR1_AUTDLY (ADC_CFGR1_WAIT)
  858. #define ADC_CFGR1_AWDSGL (ADC_CFGR1_AWD1SGL)
  859. #define ADC_CFGR1_AWDEN (ADC_CFGR1_AWD1EN)
  860. #define ADC_CFGR1_AWDCH (ADC_CFGR1_AWD1CH)
  861. #define ADC_CFGR1_AWDCH_0 (ADC_CFGR1_AWD1CH_0)
  862. #define ADC_CFGR1_AWDCH_1 (ADC_CFGR1_AWD1CH_1)
  863. #define ADC_CFGR1_AWDCH_2 (ADC_CFGR1_AWD1CH_2)
  864. #define ADC_CFGR1_AWDCH_3 (ADC_CFGR1_AWD1CH_3)
  865. #define ADC_CFGR1_AWDCH_4 (ADC_CFGR1_AWD1CH_4)
  866. /******************* Bits definition for ADC_CFGR2 register *****************/
  867. #define ADC_CFGR2_CKMODE_Pos (30U)
  868. #define ADC_CFGR2_CKMODE_Msk (0x3U << ADC_CFGR2_CKMODE_Pos) /*!< 0xC0000000 */
  869. #define ADC_CFGR2_CKMODE ADC_CFGR2_CKMODE_Msk /*!< ADC clock source and prescaler (prescaler only for clock source synchronous) */
  870. #define ADC_CFGR2_CKMODE_1 (0x2U << ADC_CFGR2_CKMODE_Pos) /*!< 0x80000000 */
  871. #define ADC_CFGR2_CKMODE_0 (0x1U << ADC_CFGR2_CKMODE_Pos) /*!< 0x40000000 */
  872. /* Legacy defines */
  873. #define ADC_CFGR2_JITOFFDIV4 (ADC_CFGR2_CKMODE_1) /*!< ADC clocked by PCLK div4 */
  874. #define ADC_CFGR2_JITOFFDIV2 (ADC_CFGR2_CKMODE_0) /*!< ADC clocked by PCLK div2 */
  875. /****************** Bit definition for ADC_SMPR register ********************/
  876. #define ADC_SMPR_SMP_Pos (0U)
  877. #define ADC_SMPR_SMP_Msk (0x7U << ADC_SMPR_SMP_Pos) /*!< 0x00000007 */
  878. #define ADC_SMPR_SMP ADC_SMPR_SMP_Msk /*!< ADC group of channels sampling time 2 */
  879. #define ADC_SMPR_SMP_0 (0x1U << ADC_SMPR_SMP_Pos) /*!< 0x00000001 */
  880. #define ADC_SMPR_SMP_1 (0x2U << ADC_SMPR_SMP_Pos) /*!< 0x00000002 */
  881. #define ADC_SMPR_SMP_2 (0x4U << ADC_SMPR_SMP_Pos) /*!< 0x00000004 */
  882. /* Legacy defines */
  883. #define ADC_SMPR1_SMPR (ADC_SMPR_SMP) /*!< SMP[2:0] bits (Sampling time selection) */
  884. #define ADC_SMPR1_SMPR_0 (ADC_SMPR_SMP_0) /*!< bit 0 */
  885. #define ADC_SMPR1_SMPR_1 (ADC_SMPR_SMP_1) /*!< bit 1 */
  886. #define ADC_SMPR1_SMPR_2 (ADC_SMPR_SMP_2) /*!< bit 2 */
  887. /******************* Bit definition for ADC_TR register ********************/
  888. #define ADC_TR1_LT1_Pos (0U)
  889. #define ADC_TR1_LT1_Msk (0xFFFU << ADC_TR1_LT1_Pos) /*!< 0x00000FFF */
  890. #define ADC_TR1_LT1 ADC_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */
  891. #define ADC_TR1_LT1_0 (0x001U << ADC_TR1_LT1_Pos) /*!< 0x00000001 */
  892. #define ADC_TR1_LT1_1 (0x002U << ADC_TR1_LT1_Pos) /*!< 0x00000002 */
  893. #define ADC_TR1_LT1_2 (0x004U << ADC_TR1_LT1_Pos) /*!< 0x00000004 */
  894. #define ADC_TR1_LT1_3 (0x008U << ADC_TR1_LT1_Pos) /*!< 0x00000008 */
  895. #define ADC_TR1_LT1_4 (0x010U << ADC_TR1_LT1_Pos) /*!< 0x00000010 */
  896. #define ADC_TR1_LT1_5 (0x020U << ADC_TR1_LT1_Pos) /*!< 0x00000020 */
  897. #define ADC_TR1_LT1_6 (0x040U << ADC_TR1_LT1_Pos) /*!< 0x00000040 */
  898. #define ADC_TR1_LT1_7 (0x080U << ADC_TR1_LT1_Pos) /*!< 0x00000080 */
  899. #define ADC_TR1_LT1_8 (0x100U << ADC_TR1_LT1_Pos) /*!< 0x00000100 */
  900. #define ADC_TR1_LT1_9 (0x200U << ADC_TR1_LT1_Pos) /*!< 0x00000200 */
  901. #define ADC_TR1_LT1_10 (0x400U << ADC_TR1_LT1_Pos) /*!< 0x00000400 */
  902. #define ADC_TR1_LT1_11 (0x800U << ADC_TR1_LT1_Pos) /*!< 0x00000800 */
  903. #define ADC_TR1_HT1_Pos (16U)
  904. #define ADC_TR1_HT1_Msk (0xFFFU << ADC_TR1_HT1_Pos) /*!< 0x0FFF0000 */
  905. #define ADC_TR1_HT1 ADC_TR1_HT1_Msk /*!< ADC Analog watchdog 1 threshold high */
  906. #define ADC_TR1_HT1_0 (0x001U << ADC_TR1_HT1_Pos) /*!< 0x00010000 */
  907. #define ADC_TR1_HT1_1 (0x002U << ADC_TR1_HT1_Pos) /*!< 0x00020000 */
  908. #define ADC_TR1_HT1_2 (0x004U << ADC_TR1_HT1_Pos) /*!< 0x00040000 */
  909. #define ADC_TR1_HT1_3 (0x008U << ADC_TR1_HT1_Pos) /*!< 0x00080000 */
  910. #define ADC_TR1_HT1_4 (0x010U << ADC_TR1_HT1_Pos) /*!< 0x00100000 */
  911. #define ADC_TR1_HT1_5 (0x020U << ADC_TR1_HT1_Pos) /*!< 0x00200000 */
  912. #define ADC_TR1_HT1_6 (0x040U << ADC_TR1_HT1_Pos) /*!< 0x00400000 */
  913. #define ADC_TR1_HT1_7 (0x080U << ADC_TR1_HT1_Pos) /*!< 0x00800000 */
  914. #define ADC_TR1_HT1_8 (0x100U << ADC_TR1_HT1_Pos) /*!< 0x01000000 */
  915. #define ADC_TR1_HT1_9 (0x200U << ADC_TR1_HT1_Pos) /*!< 0x02000000 */
  916. #define ADC_TR1_HT1_10 (0x400U << ADC_TR1_HT1_Pos) /*!< 0x04000000 */
  917. #define ADC_TR1_HT1_11 (0x800U << ADC_TR1_HT1_Pos) /*!< 0x08000000 */
  918. /* Legacy defines */
  919. #define ADC_TR_HT (ADC_TR1_HT1)
  920. #define ADC_TR_LT (ADC_TR1_LT1)
  921. #define ADC_HTR_HT (ADC_TR1_HT1)
  922. #define ADC_LTR_LT (ADC_TR1_LT1)
  923. /****************** Bit definition for ADC_CHSELR register ******************/
  924. #define ADC_CHSELR_CHSEL_Pos (0U)
  925. #define ADC_CHSELR_CHSEL_Msk (0x7FFFFU << ADC_CHSELR_CHSEL_Pos) /*!< 0x0007FFFF */
  926. #define ADC_CHSELR_CHSEL ADC_CHSELR_CHSEL_Msk /*!< ADC group regular sequencer channels, available when ADC_CFGR1_CHSELRMOD is reset */
  927. #define ADC_CHSELR_CHSEL18_Pos (18U)
  928. #define ADC_CHSELR_CHSEL18_Msk (0x1U << ADC_CHSELR_CHSEL18_Pos) /*!< 0x00040000 */
  929. #define ADC_CHSELR_CHSEL18 ADC_CHSELR_CHSEL18_Msk /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
  930. #define ADC_CHSELR_CHSEL17_Pos (17U)
  931. #define ADC_CHSELR_CHSEL17_Msk (0x1U << ADC_CHSELR_CHSEL17_Pos) /*!< 0x00020000 */
  932. #define ADC_CHSELR_CHSEL17 ADC_CHSELR_CHSEL17_Msk /*!< ADC group regular sequencer channel 17, available when ADC_CFGR1_CHSELRMOD is reset */
  933. #define ADC_CHSELR_CHSEL16_Pos (16U)
  934. #define ADC_CHSELR_CHSEL16_Msk (0x1U << ADC_CHSELR_CHSEL16_Pos) /*!< 0x00010000 */
  935. #define ADC_CHSELR_CHSEL16 ADC_CHSELR_CHSEL16_Msk /*!< ADC group regular sequencer channel 16, available when ADC_CFGR1_CHSELRMOD is reset */
  936. #define ADC_CHSELR_CHSEL15_Pos (15U)
  937. #define ADC_CHSELR_CHSEL15_Msk (0x1U << ADC_CHSELR_CHSEL15_Pos) /*!< 0x00008000 */
  938. #define ADC_CHSELR_CHSEL15 ADC_CHSELR_CHSEL15_Msk /*!< ADC group regular sequencer channel 15, available when ADC_CFGR1_CHSELRMOD is reset */
  939. #define ADC_CHSELR_CHSEL14_Pos (14U)
  940. #define ADC_CHSELR_CHSEL14_Msk (0x1U << ADC_CHSELR_CHSEL14_Pos) /*!< 0x00004000 */
  941. #define ADC_CHSELR_CHSEL14 ADC_CHSELR_CHSEL14_Msk /*!< ADC group regular sequencer channel 14, available when ADC_CFGR1_CHSELRMOD is reset */
  942. #define ADC_CHSELR_CHSEL13_Pos (13U)
  943. #define ADC_CHSELR_CHSEL13_Msk (0x1U << ADC_CHSELR_CHSEL13_Pos) /*!< 0x00002000 */
  944. #define ADC_CHSELR_CHSEL13 ADC_CHSELR_CHSEL13_Msk /*!< ADC group regular sequencer channel 13, available when ADC_CFGR1_CHSELRMOD is reset */
  945. #define ADC_CHSELR_CHSEL12_Pos (12U)
  946. #define ADC_CHSELR_CHSEL12_Msk (0x1U << ADC_CHSELR_CHSEL12_Pos) /*!< 0x00001000 */
  947. #define ADC_CHSELR_CHSEL12 ADC_CHSELR_CHSEL12_Msk /*!< ADC group regular sequencer channel 12, available when ADC_CFGR1_CHSELRMOD is reset */
  948. #define ADC_CHSELR_CHSEL11_Pos (11U)
  949. #define ADC_CHSELR_CHSEL11_Msk (0x1U << ADC_CHSELR_CHSEL11_Pos) /*!< 0x00000800 */
  950. #define ADC_CHSELR_CHSEL11 ADC_CHSELR_CHSEL11_Msk /*!< ADC group regular sequencer channel 11, available when ADC_CFGR1_CHSELRMOD is reset */
  951. #define ADC_CHSELR_CHSEL10_Pos (10U)
  952. #define ADC_CHSELR_CHSEL10_Msk (0x1U << ADC_CHSELR_CHSEL10_Pos) /*!< 0x00000400 */
  953. #define ADC_CHSELR_CHSEL10 ADC_CHSELR_CHSEL10_Msk /*!< ADC group regular sequencer channel 10, available when ADC_CFGR1_CHSELRMOD is reset */
  954. #define ADC_CHSELR_CHSEL9_Pos (9U)
  955. #define ADC_CHSELR_CHSEL9_Msk (0x1U << ADC_CHSELR_CHSEL9_Pos) /*!< 0x00000200 */
  956. #define ADC_CHSELR_CHSEL9 ADC_CHSELR_CHSEL9_Msk /*!< ADC group regular sequencer channel 9, available when ADC_CFGR1_CHSELRMOD is reset */
  957. #define ADC_CHSELR_CHSEL8_Pos (8U)
  958. #define ADC_CHSELR_CHSEL8_Msk (0x1U << ADC_CHSELR_CHSEL8_Pos) /*!< 0x00000100 */
  959. #define ADC_CHSELR_CHSEL8 ADC_CHSELR_CHSEL8_Msk /*!< ADC group regular sequencer channel 8, available when ADC_CFGR1_CHSELRMOD is reset */
  960. #define ADC_CHSELR_CHSEL7_Pos (7U)
  961. #define ADC_CHSELR_CHSEL7_Msk (0x1U << ADC_CHSELR_CHSEL7_Pos) /*!< 0x00000080 */
  962. #define ADC_CHSELR_CHSEL7 ADC_CHSELR_CHSEL7_Msk /*!< ADC group regular sequencer channel 7, available when ADC_CFGR1_CHSELRMOD is reset */
  963. #define ADC_CHSELR_CHSEL6_Pos (6U)
  964. #define ADC_CHSELR_CHSEL6_Msk (0x1U << ADC_CHSELR_CHSEL6_Pos) /*!< 0x00000040 */
  965. #define ADC_CHSELR_CHSEL6 ADC_CHSELR_CHSEL6_Msk /*!< ADC group regular sequencer channel 6, available when ADC_CFGR1_CHSELRMOD is reset */
  966. #define ADC_CHSELR_CHSEL5_Pos (5U)
  967. #define ADC_CHSELR_CHSEL5_Msk (0x1U << ADC_CHSELR_CHSEL5_Pos) /*!< 0x00000020 */
  968. #define ADC_CHSELR_CHSEL5 ADC_CHSELR_CHSEL5_Msk /*!< ADC group regular sequencer channel 5, available when ADC_CFGR1_CHSELRMOD is reset */
  969. #define ADC_CHSELR_CHSEL4_Pos (4U)
  970. #define ADC_CHSELR_CHSEL4_Msk (0x1U << ADC_CHSELR_CHSEL4_Pos) /*!< 0x00000010 */
  971. #define ADC_CHSELR_CHSEL4 ADC_CHSELR_CHSEL4_Msk /*!< ADC group regular sequencer channel 4, available when ADC_CFGR1_CHSELRMOD is reset */
  972. #define ADC_CHSELR_CHSEL3_Pos (3U)
  973. #define ADC_CHSELR_CHSEL3_Msk (0x1U << ADC_CHSELR_CHSEL3_Pos) /*!< 0x00000008 */
  974. #define ADC_CHSELR_CHSEL3 ADC_CHSELR_CHSEL3_Msk /*!< ADC group regular sequencer channel 3, available when ADC_CFGR1_CHSELRMOD is reset */
  975. #define ADC_CHSELR_CHSEL2_Pos (2U)
  976. #define ADC_CHSELR_CHSEL2_Msk (0x1U << ADC_CHSELR_CHSEL2_Pos) /*!< 0x00000004 */
  977. #define ADC_CHSELR_CHSEL2 ADC_CHSELR_CHSEL2_Msk /*!< ADC group regular sequencer channel 2, available when ADC_CFGR1_CHSELRMOD is reset */
  978. #define ADC_CHSELR_CHSEL1_Pos (1U)
  979. #define ADC_CHSELR_CHSEL1_Msk (0x1U << ADC_CHSELR_CHSEL1_Pos) /*!< 0x00000002 */
  980. #define ADC_CHSELR_CHSEL1 ADC_CHSELR_CHSEL1_Msk /*!< ADC group regular sequencer channel 1, available when ADC_CFGR1_CHSELRMOD is reset */
  981. #define ADC_CHSELR_CHSEL0_Pos (0U)
  982. #define ADC_CHSELR_CHSEL0_Msk (0x1U << ADC_CHSELR_CHSEL0_Pos) /*!< 0x00000001 */
  983. #define ADC_CHSELR_CHSEL0 ADC_CHSELR_CHSEL0_Msk /*!< ADC group regular sequencer channel 0, available when ADC_CFGR1_CHSELRMOD is reset */
  984. /******************** Bit definition for ADC_DR register ********************/
  985. #define ADC_DR_DATA_Pos (0U)
  986. #define ADC_DR_DATA_Msk (0xFFFFU << ADC_DR_DATA_Pos) /*!< 0x0000FFFF */
  987. #define ADC_DR_DATA ADC_DR_DATA_Msk /*!< ADC group regular conversion data */
  988. #define ADC_DR_DATA_0 (0x0001U << ADC_DR_DATA_Pos) /*!< 0x00000001 */
  989. #define ADC_DR_DATA_1 (0x0002U << ADC_DR_DATA_Pos) /*!< 0x00000002 */
  990. #define ADC_DR_DATA_2 (0x0004U << ADC_DR_DATA_Pos) /*!< 0x00000004 */
  991. #define ADC_DR_DATA_3 (0x0008U << ADC_DR_DATA_Pos) /*!< 0x00000008 */
  992. #define ADC_DR_DATA_4 (0x0010U << ADC_DR_DATA_Pos) /*!< 0x00000010 */
  993. #define ADC_DR_DATA_5 (0x0020U << ADC_DR_DATA_Pos) /*!< 0x00000020 */
  994. #define ADC_DR_DATA_6 (0x0040U << ADC_DR_DATA_Pos) /*!< 0x00000040 */
  995. #define ADC_DR_DATA_7 (0x0080U << ADC_DR_DATA_Pos) /*!< 0x00000080 */
  996. #define ADC_DR_DATA_8 (0x0100U << ADC_DR_DATA_Pos) /*!< 0x00000100 */
  997. #define ADC_DR_DATA_9 (0x0200U << ADC_DR_DATA_Pos) /*!< 0x00000200 */
  998. #define ADC_DR_DATA_10 (0x0400U << ADC_DR_DATA_Pos) /*!< 0x00000400 */
  999. #define ADC_DR_DATA_11 (0x0800U << ADC_DR_DATA_Pos) /*!< 0x00000800 */
  1000. #define ADC_DR_DATA_12 (0x1000U << ADC_DR_DATA_Pos) /*!< 0x00001000 */
  1001. #define ADC_DR_DATA_13 (0x2000U << ADC_DR_DATA_Pos) /*!< 0x00002000 */
  1002. #define ADC_DR_DATA_14 (0x4000U << ADC_DR_DATA_Pos) /*!< 0x00004000 */
  1003. #define ADC_DR_DATA_15 (0x8000U << ADC_DR_DATA_Pos) /*!< 0x00008000 */
  1004. /************************* ADC Common registers *****************************/
  1005. /******************* Bit definition for ADC_CCR register ********************/
  1006. #define ADC_CCR_VREFEN_Pos (22U)
  1007. #define ADC_CCR_VREFEN_Msk (0x1U << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  1008. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< ADC internal path to VrefInt enable */
  1009. #define ADC_CCR_TSEN_Pos (23U)
  1010. #define ADC_CCR_TSEN_Msk (0x1U << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  1011. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< ADC internal path to temperature sensor enable */
  1012. #define ADC_CCR_VBATEN_Pos (24U)
  1013. #define ADC_CCR_VBATEN_Msk (0x1U << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  1014. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
  1015. /******************************************************************************/
  1016. /* */
  1017. /* Controller Area Network (CAN ) */
  1018. /* */
  1019. /******************************************************************************/
  1020. /*!<CAN control and status registers */
  1021. /******************* Bit definition for CAN_MCR register ********************/
  1022. #define CAN_MCR_INRQ_Pos (0U)
  1023. #define CAN_MCR_INRQ_Msk (0x1U << CAN_MCR_INRQ_Pos) /*!< 0x00000001 */
  1024. #define CAN_MCR_INRQ CAN_MCR_INRQ_Msk /*!<Initialization Request */
  1025. #define CAN_MCR_SLEEP_Pos (1U)
  1026. #define CAN_MCR_SLEEP_Msk (0x1U << CAN_MCR_SLEEP_Pos) /*!< 0x00000002 */
  1027. #define CAN_MCR_SLEEP CAN_MCR_SLEEP_Msk /*!<Sleep Mode Request */
  1028. #define CAN_MCR_TXFP_Pos (2U)
  1029. #define CAN_MCR_TXFP_Msk (0x1U << CAN_MCR_TXFP_Pos) /*!< 0x00000004 */
  1030. #define CAN_MCR_TXFP CAN_MCR_TXFP_Msk /*!<Transmit FIFO Priority */
  1031. #define CAN_MCR_RFLM_Pos (3U)
  1032. #define CAN_MCR_RFLM_Msk (0x1U << CAN_MCR_RFLM_Pos) /*!< 0x00000008 */
  1033. #define CAN_MCR_RFLM CAN_MCR_RFLM_Msk /*!<Receive FIFO Locked Mode */
  1034. #define CAN_MCR_NART_Pos (4U)
  1035. #define CAN_MCR_NART_Msk (0x1U << CAN_MCR_NART_Pos) /*!< 0x00000010 */
  1036. #define CAN_MCR_NART CAN_MCR_NART_Msk /*!<No Automatic Retransmission */
  1037. #define CAN_MCR_AWUM_Pos (5U)
  1038. #define CAN_MCR_AWUM_Msk (0x1U << CAN_MCR_AWUM_Pos) /*!< 0x00000020 */
  1039. #define CAN_MCR_AWUM CAN_MCR_AWUM_Msk /*!<Automatic Wakeup Mode */
  1040. #define CAN_MCR_ABOM_Pos (6U)
  1041. #define CAN_MCR_ABOM_Msk (0x1U << CAN_MCR_ABOM_Pos) /*!< 0x00000040 */
  1042. #define CAN_MCR_ABOM CAN_MCR_ABOM_Msk /*!<Automatic Bus-Off Management */
  1043. #define CAN_MCR_TTCM_Pos (7U)
  1044. #define CAN_MCR_TTCM_Msk (0x1U << CAN_MCR_TTCM_Pos) /*!< 0x00000080 */
  1045. #define CAN_MCR_TTCM CAN_MCR_TTCM_Msk /*!<Time Triggered Communication Mode */
  1046. #define CAN_MCR_RESET_Pos (15U)
  1047. #define CAN_MCR_RESET_Msk (0x1U << CAN_MCR_RESET_Pos) /*!< 0x00008000 */
  1048. #define CAN_MCR_RESET CAN_MCR_RESET_Msk /*!<bxCAN software master reset */
  1049. /******************* Bit definition for CAN_MSR register ********************/
  1050. #define CAN_MSR_INAK_Pos (0U)
  1051. #define CAN_MSR_INAK_Msk (0x1U << CAN_MSR_INAK_Pos) /*!< 0x00000001 */
  1052. #define CAN_MSR_INAK CAN_MSR_INAK_Msk /*!<Initialization Acknowledge */
  1053. #define CAN_MSR_SLAK_Pos (1U)
  1054. #define CAN_MSR_SLAK_Msk (0x1U << CAN_MSR_SLAK_Pos) /*!< 0x00000002 */
  1055. #define CAN_MSR_SLAK CAN_MSR_SLAK_Msk /*!<Sleep Acknowledge */
  1056. #define CAN_MSR_ERRI_Pos (2U)
  1057. #define CAN_MSR_ERRI_Msk (0x1U << CAN_MSR_ERRI_Pos) /*!< 0x00000004 */
  1058. #define CAN_MSR_ERRI CAN_MSR_ERRI_Msk /*!<Error Interrupt */
  1059. #define CAN_MSR_WKUI_Pos (3U)
  1060. #define CAN_MSR_WKUI_Msk (0x1U << CAN_MSR_WKUI_Pos) /*!< 0x00000008 */
  1061. #define CAN_MSR_WKUI CAN_MSR_WKUI_Msk /*!<Wakeup Interrupt */
  1062. #define CAN_MSR_SLAKI_Pos (4U)
  1063. #define CAN_MSR_SLAKI_Msk (0x1U << CAN_MSR_SLAKI_Pos) /*!< 0x00000010 */
  1064. #define CAN_MSR_SLAKI CAN_MSR_SLAKI_Msk /*!<Sleep Acknowledge Interrupt */
  1065. #define CAN_MSR_TXM_Pos (8U)
  1066. #define CAN_MSR_TXM_Msk (0x1U << CAN_MSR_TXM_Pos) /*!< 0x00000100 */
  1067. #define CAN_MSR_TXM CAN_MSR_TXM_Msk /*!<Transmit Mode */
  1068. #define CAN_MSR_RXM_Pos (9U)
  1069. #define CAN_MSR_RXM_Msk (0x1U << CAN_MSR_RXM_Pos) /*!< 0x00000200 */
  1070. #define CAN_MSR_RXM CAN_MSR_RXM_Msk /*!<Receive Mode */
  1071. #define CAN_MSR_SAMP_Pos (10U)
  1072. #define CAN_MSR_SAMP_Msk (0x1U << CAN_MSR_SAMP_Pos) /*!< 0x00000400 */
  1073. #define CAN_MSR_SAMP CAN_MSR_SAMP_Msk /*!<Last Sample Point */
  1074. #define CAN_MSR_RX_Pos (11U)
  1075. #define CAN_MSR_RX_Msk (0x1U << CAN_MSR_RX_Pos) /*!< 0x00000800 */
  1076. #define CAN_MSR_RX CAN_MSR_RX_Msk /*!<CAN Rx Signal */
  1077. /******************* Bit definition for CAN_TSR register ********************/
  1078. #define CAN_TSR_RQCP0_Pos (0U)
  1079. #define CAN_TSR_RQCP0_Msk (0x1U << CAN_TSR_RQCP0_Pos) /*!< 0x00000001 */
  1080. #define CAN_TSR_RQCP0 CAN_TSR_RQCP0_Msk /*!<Request Completed Mailbox0 */
  1081. #define CAN_TSR_TXOK0_Pos (1U)
  1082. #define CAN_TSR_TXOK0_Msk (0x1U << CAN_TSR_TXOK0_Pos) /*!< 0x00000002 */
  1083. #define CAN_TSR_TXOK0 CAN_TSR_TXOK0_Msk /*!<Transmission OK of Mailbox0 */
  1084. #define CAN_TSR_ALST0_Pos (2U)
  1085. #define CAN_TSR_ALST0_Msk (0x1U << CAN_TSR_ALST0_Pos) /*!< 0x00000004 */
  1086. #define CAN_TSR_ALST0 CAN_TSR_ALST0_Msk /*!<Arbitration Lost for Mailbox0 */
  1087. #define CAN_TSR_TERR0_Pos (3U)
  1088. #define CAN_TSR_TERR0_Msk (0x1U << CAN_TSR_TERR0_Pos) /*!< 0x00000008 */
  1089. #define CAN_TSR_TERR0 CAN_TSR_TERR0_Msk /*!<Transmission Error of Mailbox0 */
  1090. #define CAN_TSR_ABRQ0_Pos (7U)
  1091. #define CAN_TSR_ABRQ0_Msk (0x1U << CAN_TSR_ABRQ0_Pos) /*!< 0x00000080 */
  1092. #define CAN_TSR_ABRQ0 CAN_TSR_ABRQ0_Msk /*!<Abort Request for Mailbox0 */
  1093. #define CAN_TSR_RQCP1_Pos (8U)
  1094. #define CAN_TSR_RQCP1_Msk (0x1U << CAN_TSR_RQCP1_Pos) /*!< 0x00000100 */
  1095. #define CAN_TSR_RQCP1 CAN_TSR_RQCP1_Msk /*!<Request Completed Mailbox1 */
  1096. #define CAN_TSR_TXOK1_Pos (9U)
  1097. #define CAN_TSR_TXOK1_Msk (0x1U << CAN_TSR_TXOK1_Pos) /*!< 0x00000200 */
  1098. #define CAN_TSR_TXOK1 CAN_TSR_TXOK1_Msk /*!<Transmission OK of Mailbox1 */
  1099. #define CAN_TSR_ALST1_Pos (10U)
  1100. #define CAN_TSR_ALST1_Msk (0x1U << CAN_TSR_ALST1_Pos) /*!< 0x00000400 */
  1101. #define CAN_TSR_ALST1 CAN_TSR_ALST1_Msk /*!<Arbitration Lost for Mailbox1 */
  1102. #define CAN_TSR_TERR1_Pos (11U)
  1103. #define CAN_TSR_TERR1_Msk (0x1U << CAN_TSR_TERR1_Pos) /*!< 0x00000800 */
  1104. #define CAN_TSR_TERR1 CAN_TSR_TERR1_Msk /*!<Transmission Error of Mailbox1 */
  1105. #define CAN_TSR_ABRQ1_Pos (15U)
  1106. #define CAN_TSR_ABRQ1_Msk (0x1U << CAN_TSR_ABRQ1_Pos) /*!< 0x00008000 */
  1107. #define CAN_TSR_ABRQ1 CAN_TSR_ABRQ1_Msk /*!<Abort Request for Mailbox 1 */
  1108. #define CAN_TSR_RQCP2_Pos (16U)
  1109. #define CAN_TSR_RQCP2_Msk (0x1U << CAN_TSR_RQCP2_Pos) /*!< 0x00010000 */
  1110. #define CAN_TSR_RQCP2 CAN_TSR_RQCP2_Msk /*!<Request Completed Mailbox2 */
  1111. #define CAN_TSR_TXOK2_Pos (17U)
  1112. #define CAN_TSR_TXOK2_Msk (0x1U << CAN_TSR_TXOK2_Pos) /*!< 0x00020000 */
  1113. #define CAN_TSR_TXOK2 CAN_TSR_TXOK2_Msk /*!<Transmission OK of Mailbox 2 */
  1114. #define CAN_TSR_ALST2_Pos (18U)
  1115. #define CAN_TSR_ALST2_Msk (0x1U << CAN_TSR_ALST2_Pos) /*!< 0x00040000 */
  1116. #define CAN_TSR_ALST2 CAN_TSR_ALST2_Msk /*!<Arbitration Lost for mailbox 2 */
  1117. #define CAN_TSR_TERR2_Pos (19U)
  1118. #define CAN_TSR_TERR2_Msk (0x1U << CAN_TSR_TERR2_Pos) /*!< 0x00080000 */
  1119. #define CAN_TSR_TERR2 CAN_TSR_TERR2_Msk /*!<Transmission Error of Mailbox 2 */
  1120. #define CAN_TSR_ABRQ2_Pos (23U)
  1121. #define CAN_TSR_ABRQ2_Msk (0x1U << CAN_TSR_ABRQ2_Pos) /*!< 0x00800000 */
  1122. #define CAN_TSR_ABRQ2 CAN_TSR_ABRQ2_Msk /*!<Abort Request for Mailbox 2 */
  1123. #define CAN_TSR_CODE_Pos (24U)
  1124. #define CAN_TSR_CODE_Msk (0x3U << CAN_TSR_CODE_Pos) /*!< 0x03000000 */
  1125. #define CAN_TSR_CODE CAN_TSR_CODE_Msk /*!<Mailbox Code */
  1126. #define CAN_TSR_TME_Pos (26U)
  1127. #define CAN_TSR_TME_Msk (0x7U << CAN_TSR_TME_Pos) /*!< 0x1C000000 */
  1128. #define CAN_TSR_TME CAN_TSR_TME_Msk /*!<TME[2:0] bits */
  1129. #define CAN_TSR_TME0_Pos (26U)
  1130. #define CAN_TSR_TME0_Msk (0x1U << CAN_TSR_TME0_Pos) /*!< 0x04000000 */
  1131. #define CAN_TSR_TME0 CAN_TSR_TME0_Msk /*!<Transmit Mailbox 0 Empty */
  1132. #define CAN_TSR_TME1_Pos (27U)
  1133. #define CAN_TSR_TME1_Msk (0x1U << CAN_TSR_TME1_Pos) /*!< 0x08000000 */
  1134. #define CAN_TSR_TME1 CAN_TSR_TME1_Msk /*!<Transmit Mailbox 1 Empty */
  1135. #define CAN_TSR_TME2_Pos (28U)
  1136. #define CAN_TSR_TME2_Msk (0x1U << CAN_TSR_TME2_Pos) /*!< 0x10000000 */
  1137. #define CAN_TSR_TME2 CAN_TSR_TME2_Msk /*!<Transmit Mailbox 2 Empty */
  1138. #define CAN_TSR_LOW_Pos (29U)
  1139. #define CAN_TSR_LOW_Msk (0x7U << CAN_TSR_LOW_Pos) /*!< 0xE0000000 */
  1140. #define CAN_TSR_LOW CAN_TSR_LOW_Msk /*!<LOW[2:0] bits */
  1141. #define CAN_TSR_LOW0_Pos (29U)
  1142. #define CAN_TSR_LOW0_Msk (0x1U << CAN_TSR_LOW0_Pos) /*!< 0x20000000 */
  1143. #define CAN_TSR_LOW0 CAN_TSR_LOW0_Msk /*!<Lowest Priority Flag for Mailbox 0 */
  1144. #define CAN_TSR_LOW1_Pos (30U)
  1145. #define CAN_TSR_LOW1_Msk (0x1U << CAN_TSR_LOW1_Pos) /*!< 0x40000000 */
  1146. #define CAN_TSR_LOW1 CAN_TSR_LOW1_Msk /*!<Lowest Priority Flag for Mailbox 1 */
  1147. #define CAN_TSR_LOW2_Pos (31U)
  1148. #define CAN_TSR_LOW2_Msk (0x1U << CAN_TSR_LOW2_Pos) /*!< 0x80000000 */
  1149. #define CAN_TSR_LOW2 CAN_TSR_LOW2_Msk /*!<Lowest Priority Flag for Mailbox 2 */
  1150. /******************* Bit definition for CAN_RF0R register *******************/
  1151. #define CAN_RF0R_FMP0_Pos (0U)
  1152. #define CAN_RF0R_FMP0_Msk (0x3U << CAN_RF0R_FMP0_Pos) /*!< 0x00000003 */
  1153. #define CAN_RF0R_FMP0 CAN_RF0R_FMP0_Msk /*!<FIFO 0 Message Pending */
  1154. #define CAN_RF0R_FULL0_Pos (3U)
  1155. #define CAN_RF0R_FULL0_Msk (0x1U << CAN_RF0R_FULL0_Pos) /*!< 0x00000008 */
  1156. #define CAN_RF0R_FULL0 CAN_RF0R_FULL0_Msk /*!<FIFO 0 Full */
  1157. #define CAN_RF0R_FOVR0_Pos (4U)
  1158. #define CAN_RF0R_FOVR0_Msk (0x1U << CAN_RF0R_FOVR0_Pos) /*!< 0x00000010 */
  1159. #define CAN_RF0R_FOVR0 CAN_RF0R_FOVR0_Msk /*!<FIFO 0 Overrun */
  1160. #define CAN_RF0R_RFOM0_Pos (5U)
  1161. #define CAN_RF0R_RFOM0_Msk (0x1U << CAN_RF0R_RFOM0_Pos) /*!< 0x00000020 */
  1162. #define CAN_RF0R_RFOM0 CAN_RF0R_RFOM0_Msk /*!<Release FIFO 0 Output Mailbox */
  1163. /******************* Bit definition for CAN_RF1R register *******************/
  1164. #define CAN_RF1R_FMP1_Pos (0U)
  1165. #define CAN_RF1R_FMP1_Msk (0x3U << CAN_RF1R_FMP1_Pos) /*!< 0x00000003 */
  1166. #define CAN_RF1R_FMP1 CAN_RF1R_FMP1_Msk /*!<FIFO 1 Message Pending */
  1167. #define CAN_RF1R_FULL1_Pos (3U)
  1168. #define CAN_RF1R_FULL1_Msk (0x1U << CAN_RF1R_FULL1_Pos) /*!< 0x00000008 */
  1169. #define CAN_RF1R_FULL1 CAN_RF1R_FULL1_Msk /*!<FIFO 1 Full */
  1170. #define CAN_RF1R_FOVR1_Pos (4U)
  1171. #define CAN_RF1R_FOVR1_Msk (0x1U << CAN_RF1R_FOVR1_Pos) /*!< 0x00000010 */
  1172. #define CAN_RF1R_FOVR1 CAN_RF1R_FOVR1_Msk /*!<FIFO 1 Overrun */
  1173. #define CAN_RF1R_RFOM1_Pos (5U)
  1174. #define CAN_RF1R_RFOM1_Msk (0x1U << CAN_RF1R_RFOM1_Pos) /*!< 0x00000020 */
  1175. #define CAN_RF1R_RFOM1 CAN_RF1R_RFOM1_Msk /*!<Release FIFO 1 Output Mailbox */
  1176. /******************** Bit definition for CAN_IER register *******************/
  1177. #define CAN_IER_TMEIE_Pos (0U)
  1178. #define CAN_IER_TMEIE_Msk (0x1U << CAN_IER_TMEIE_Pos) /*!< 0x00000001 */
  1179. #define CAN_IER_TMEIE CAN_IER_TMEIE_Msk /*!<Transmit Mailbox Empty Interrupt Enable */
  1180. #define CAN_IER_FMPIE0_Pos (1U)
  1181. #define CAN_IER_FMPIE0_Msk (0x1U << CAN_IER_FMPIE0_Pos) /*!< 0x00000002 */
  1182. #define CAN_IER_FMPIE0 CAN_IER_FMPIE0_Msk /*!<FIFO Message Pending Interrupt Enable */
  1183. #define CAN_IER_FFIE0_Pos (2U)
  1184. #define CAN_IER_FFIE0_Msk (0x1U << CAN_IER_FFIE0_Pos) /*!< 0x00000004 */
  1185. #define CAN_IER_FFIE0 CAN_IER_FFIE0_Msk /*!<FIFO Full Interrupt Enable */
  1186. #define CAN_IER_FOVIE0_Pos (3U)
  1187. #define CAN_IER_FOVIE0_Msk (0x1U << CAN_IER_FOVIE0_Pos) /*!< 0x00000008 */
  1188. #define CAN_IER_FOVIE0 CAN_IER_FOVIE0_Msk /*!<FIFO Overrun Interrupt Enable */
  1189. #define CAN_IER_FMPIE1_Pos (4U)
  1190. #define CAN_IER_FMPIE1_Msk (0x1U << CAN_IER_FMPIE1_Pos) /*!< 0x00000010 */
  1191. #define CAN_IER_FMPIE1 CAN_IER_FMPIE1_Msk /*!<FIFO Message Pending Interrupt Enable */
  1192. #define CAN_IER_FFIE1_Pos (5U)
  1193. #define CAN_IER_FFIE1_Msk (0x1U << CAN_IER_FFIE1_Pos) /*!< 0x00000020 */
  1194. #define CAN_IER_FFIE1 CAN_IER_FFIE1_Msk /*!<FIFO Full Interrupt Enable */
  1195. #define CAN_IER_FOVIE1_Pos (6U)
  1196. #define CAN_IER_FOVIE1_Msk (0x1U << CAN_IER_FOVIE1_Pos) /*!< 0x00000040 */
  1197. #define CAN_IER_FOVIE1 CAN_IER_FOVIE1_Msk /*!<FIFO Overrun Interrupt Enable */
  1198. #define CAN_IER_EWGIE_Pos (8U)
  1199. #define CAN_IER_EWGIE_Msk (0x1U << CAN_IER_EWGIE_Pos) /*!< 0x00000100 */
  1200. #define CAN_IER_EWGIE CAN_IER_EWGIE_Msk /*!<Error Warning Interrupt Enable */
  1201. #define CAN_IER_EPVIE_Pos (9U)
  1202. #define CAN_IER_EPVIE_Msk (0x1U << CAN_IER_EPVIE_Pos) /*!< 0x00000200 */
  1203. #define CAN_IER_EPVIE CAN_IER_EPVIE_Msk /*!<Error Passive Interrupt Enable */
  1204. #define CAN_IER_BOFIE_Pos (10U)
  1205. #define CAN_IER_BOFIE_Msk (0x1U << CAN_IER_BOFIE_Pos) /*!< 0x00000400 */
  1206. #define CAN_IER_BOFIE CAN_IER_BOFIE_Msk /*!<Bus-Off Interrupt Enable */
  1207. #define CAN_IER_LECIE_Pos (11U)
  1208. #define CAN_IER_LECIE_Msk (0x1U << CAN_IER_LECIE_Pos) /*!< 0x00000800 */
  1209. #define CAN_IER_LECIE CAN_IER_LECIE_Msk /*!<Last Error Code Interrupt Enable */
  1210. #define CAN_IER_ERRIE_Pos (15U)
  1211. #define CAN_IER_ERRIE_Msk (0x1U << CAN_IER_ERRIE_Pos) /*!< 0x00008000 */
  1212. #define CAN_IER_ERRIE CAN_IER_ERRIE_Msk /*!<Error Interrupt Enable */
  1213. #define CAN_IER_WKUIE_Pos (16U)
  1214. #define CAN_IER_WKUIE_Msk (0x1U << CAN_IER_WKUIE_Pos) /*!< 0x00010000 */
  1215. #define CAN_IER_WKUIE CAN_IER_WKUIE_Msk /*!<Wakeup Interrupt Enable */
  1216. #define CAN_IER_SLKIE_Pos (17U)
  1217. #define CAN_IER_SLKIE_Msk (0x1U << CAN_IER_SLKIE_Pos) /*!< 0x00020000 */
  1218. #define CAN_IER_SLKIE CAN_IER_SLKIE_Msk /*!<Sleep Interrupt Enable */
  1219. /******************** Bit definition for CAN_ESR register *******************/
  1220. #define CAN_ESR_EWGF_Pos (0U)
  1221. #define CAN_ESR_EWGF_Msk (0x1U << CAN_ESR_EWGF_Pos) /*!< 0x00000001 */
  1222. #define CAN_ESR_EWGF CAN_ESR_EWGF_Msk /*!<Error Warning Flag */
  1223. #define CAN_ESR_EPVF_Pos (1U)
  1224. #define CAN_ESR_EPVF_Msk (0x1U << CAN_ESR_EPVF_Pos) /*!< 0x00000002 */
  1225. #define CAN_ESR_EPVF CAN_ESR_EPVF_Msk /*!<Error Passive Flag */
  1226. #define CAN_ESR_BOFF_Pos (2U)
  1227. #define CAN_ESR_BOFF_Msk (0x1U << CAN_ESR_BOFF_Pos) /*!< 0x00000004 */
  1228. #define CAN_ESR_BOFF CAN_ESR_BOFF_Msk /*!<Bus-Off Flag */
  1229. #define CAN_ESR_LEC_Pos (4U)
  1230. #define CAN_ESR_LEC_Msk (0x7U << CAN_ESR_LEC_Pos) /*!< 0x00000070 */
  1231. #define CAN_ESR_LEC CAN_ESR_LEC_Msk /*!<LEC[2:0] bits (Last Error Code) */
  1232. #define CAN_ESR_LEC_0 (0x1U << CAN_ESR_LEC_Pos) /*!< 0x00000010 */
  1233. #define CAN_ESR_LEC_1 (0x2U << CAN_ESR_LEC_Pos) /*!< 0x00000020 */
  1234. #define CAN_ESR_LEC_2 (0x4U << CAN_ESR_LEC_Pos) /*!< 0x00000040 */
  1235. #define CAN_ESR_TEC_Pos (16U)
  1236. #define CAN_ESR_TEC_Msk (0xFFU << CAN_ESR_TEC_Pos) /*!< 0x00FF0000 */
  1237. #define CAN_ESR_TEC CAN_ESR_TEC_Msk /*!<Least significant byte of the 9-bit Transmit Error Counter */
  1238. #define CAN_ESR_REC_Pos (24U)
  1239. #define CAN_ESR_REC_Msk (0xFFU << CAN_ESR_REC_Pos) /*!< 0xFF000000 */
  1240. #define CAN_ESR_REC CAN_ESR_REC_Msk /*!<Receive Error Counter */
  1241. /******************* Bit definition for CAN_BTR register ********************/
  1242. #define CAN_BTR_BRP_Pos (0U)
  1243. #define CAN_BTR_BRP_Msk (0x3FFU << CAN_BTR_BRP_Pos) /*!< 0x000003FF */
  1244. #define CAN_BTR_BRP CAN_BTR_BRP_Msk /*!<Baud Rate Prescaler */
  1245. #define CAN_BTR_TS1_Pos (16U)
  1246. #define CAN_BTR_TS1_Msk (0xFU << CAN_BTR_TS1_Pos) /*!< 0x000F0000 */
  1247. #define CAN_BTR_TS1 CAN_BTR_TS1_Msk /*!<Time Segment 1 */
  1248. #define CAN_BTR_TS1_0 (0x1U << CAN_BTR_TS1_Pos) /*!< 0x00010000 */
  1249. #define CAN_BTR_TS1_1 (0x2U << CAN_BTR_TS1_Pos) /*!< 0x00020000 */
  1250. #define CAN_BTR_TS1_2 (0x4U << CAN_BTR_TS1_Pos) /*!< 0x00040000 */
  1251. #define CAN_BTR_TS1_3 (0x8U << CAN_BTR_TS1_Pos) /*!< 0x00080000 */
  1252. #define CAN_BTR_TS2_Pos (20U)
  1253. #define CAN_BTR_TS2_Msk (0x7U << CAN_BTR_TS2_Pos) /*!< 0x00700000 */
  1254. #define CAN_BTR_TS2 CAN_BTR_TS2_Msk /*!<Time Segment 2 */
  1255. #define CAN_BTR_TS2_0 (0x1U << CAN_BTR_TS2_Pos) /*!< 0x00100000 */
  1256. #define CAN_BTR_TS2_1 (0x2U << CAN_BTR_TS2_Pos) /*!< 0x00200000 */
  1257. #define CAN_BTR_TS2_2 (0x4U << CAN_BTR_TS2_Pos) /*!< 0x00400000 */
  1258. #define CAN_BTR_SJW_Pos (24U)
  1259. #define CAN_BTR_SJW_Msk (0x3U << CAN_BTR_SJW_Pos) /*!< 0x03000000 */
  1260. #define CAN_BTR_SJW CAN_BTR_SJW_Msk /*!<Resynchronization Jump Width */
  1261. #define CAN_BTR_SJW_0 (0x1U << CAN_BTR_SJW_Pos) /*!< 0x01000000 */
  1262. #define CAN_BTR_SJW_1 (0x2U << CAN_BTR_SJW_Pos) /*!< 0x02000000 */
  1263. #define CAN_BTR_LBKM_Pos (30U)
  1264. #define CAN_BTR_LBKM_Msk (0x1U << CAN_BTR_LBKM_Pos) /*!< 0x40000000 */
  1265. #define CAN_BTR_LBKM CAN_BTR_LBKM_Msk /*!<Loop Back Mode (Debug) */
  1266. #define CAN_BTR_SILM_Pos (31U)
  1267. #define CAN_BTR_SILM_Msk (0x1U << CAN_BTR_SILM_Pos) /*!< 0x80000000 */
  1268. #define CAN_BTR_SILM CAN_BTR_SILM_Msk /*!<Silent Mode */
  1269. /*!<Mailbox registers */
  1270. /****************** Bit definition for CAN_TI0R register ********************/
  1271. #define CAN_TI0R_TXRQ_Pos (0U)
  1272. #define CAN_TI0R_TXRQ_Msk (0x1U << CAN_TI0R_TXRQ_Pos) /*!< 0x00000001 */
  1273. #define CAN_TI0R_TXRQ CAN_TI0R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1274. #define CAN_TI0R_RTR_Pos (1U)
  1275. #define CAN_TI0R_RTR_Msk (0x1U << CAN_TI0R_RTR_Pos) /*!< 0x00000002 */
  1276. #define CAN_TI0R_RTR CAN_TI0R_RTR_Msk /*!<Remote Transmission Request */
  1277. #define CAN_TI0R_IDE_Pos (2U)
  1278. #define CAN_TI0R_IDE_Msk (0x1U << CAN_TI0R_IDE_Pos) /*!< 0x00000004 */
  1279. #define CAN_TI0R_IDE CAN_TI0R_IDE_Msk /*!<Identifier Extension */
  1280. #define CAN_TI0R_EXID_Pos (3U)
  1281. #define CAN_TI0R_EXID_Msk (0x3FFFFU << CAN_TI0R_EXID_Pos) /*!< 0x001FFFF8 */
  1282. #define CAN_TI0R_EXID CAN_TI0R_EXID_Msk /*!<Extended Identifier */
  1283. #define CAN_TI0R_STID_Pos (21U)
  1284. #define CAN_TI0R_STID_Msk (0x7FFU << CAN_TI0R_STID_Pos) /*!< 0xFFE00000 */
  1285. #define CAN_TI0R_STID CAN_TI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1286. /****************** Bit definition for CAN_TDT0R register *******************/
  1287. #define CAN_TDT0R_DLC_Pos (0U)
  1288. #define CAN_TDT0R_DLC_Msk (0xFU << CAN_TDT0R_DLC_Pos) /*!< 0x0000000F */
  1289. #define CAN_TDT0R_DLC CAN_TDT0R_DLC_Msk /*!<Data Length Code */
  1290. #define CAN_TDT0R_TGT_Pos (8U)
  1291. #define CAN_TDT0R_TGT_Msk (0x1U << CAN_TDT0R_TGT_Pos) /*!< 0x00000100 */
  1292. #define CAN_TDT0R_TGT CAN_TDT0R_TGT_Msk /*!<Transmit Global Time */
  1293. #define CAN_TDT0R_TIME_Pos (16U)
  1294. #define CAN_TDT0R_TIME_Msk (0xFFFFU << CAN_TDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  1295. #define CAN_TDT0R_TIME CAN_TDT0R_TIME_Msk /*!<Message Time Stamp */
  1296. /****************** Bit definition for CAN_TDL0R register *******************/
  1297. #define CAN_TDL0R_DATA0_Pos (0U)
  1298. #define CAN_TDL0R_DATA0_Msk (0xFFU << CAN_TDL0R_DATA0_Pos) /*!< 0x000000FF */
  1299. #define CAN_TDL0R_DATA0 CAN_TDL0R_DATA0_Msk /*!<Data byte 0 */
  1300. #define CAN_TDL0R_DATA1_Pos (8U)
  1301. #define CAN_TDL0R_DATA1_Msk (0xFFU << CAN_TDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  1302. #define CAN_TDL0R_DATA1 CAN_TDL0R_DATA1_Msk /*!<Data byte 1 */
  1303. #define CAN_TDL0R_DATA2_Pos (16U)
  1304. #define CAN_TDL0R_DATA2_Msk (0xFFU << CAN_TDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  1305. #define CAN_TDL0R_DATA2 CAN_TDL0R_DATA2_Msk /*!<Data byte 2 */
  1306. #define CAN_TDL0R_DATA3_Pos (24U)
  1307. #define CAN_TDL0R_DATA3_Msk (0xFFU << CAN_TDL0R_DATA3_Pos) /*!< 0xFF000000 */
  1308. #define CAN_TDL0R_DATA3 CAN_TDL0R_DATA3_Msk /*!<Data byte 3 */
  1309. /****************** Bit definition for CAN_TDH0R register *******************/
  1310. #define CAN_TDH0R_DATA4_Pos (0U)
  1311. #define CAN_TDH0R_DATA4_Msk (0xFFU << CAN_TDH0R_DATA4_Pos) /*!< 0x000000FF */
  1312. #define CAN_TDH0R_DATA4 CAN_TDH0R_DATA4_Msk /*!<Data byte 4 */
  1313. #define CAN_TDH0R_DATA5_Pos (8U)
  1314. #define CAN_TDH0R_DATA5_Msk (0xFFU << CAN_TDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  1315. #define CAN_TDH0R_DATA5 CAN_TDH0R_DATA5_Msk /*!<Data byte 5 */
  1316. #define CAN_TDH0R_DATA6_Pos (16U)
  1317. #define CAN_TDH0R_DATA6_Msk (0xFFU << CAN_TDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  1318. #define CAN_TDH0R_DATA6 CAN_TDH0R_DATA6_Msk /*!<Data byte 6 */
  1319. #define CAN_TDH0R_DATA7_Pos (24U)
  1320. #define CAN_TDH0R_DATA7_Msk (0xFFU << CAN_TDH0R_DATA7_Pos) /*!< 0xFF000000 */
  1321. #define CAN_TDH0R_DATA7 CAN_TDH0R_DATA7_Msk /*!<Data byte 7 */
  1322. /******************* Bit definition for CAN_TI1R register *******************/
  1323. #define CAN_TI1R_TXRQ_Pos (0U)
  1324. #define CAN_TI1R_TXRQ_Msk (0x1U << CAN_TI1R_TXRQ_Pos) /*!< 0x00000001 */
  1325. #define CAN_TI1R_TXRQ CAN_TI1R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1326. #define CAN_TI1R_RTR_Pos (1U)
  1327. #define CAN_TI1R_RTR_Msk (0x1U << CAN_TI1R_RTR_Pos) /*!< 0x00000002 */
  1328. #define CAN_TI1R_RTR CAN_TI1R_RTR_Msk /*!<Remote Transmission Request */
  1329. #define CAN_TI1R_IDE_Pos (2U)
  1330. #define CAN_TI1R_IDE_Msk (0x1U << CAN_TI1R_IDE_Pos) /*!< 0x00000004 */
  1331. #define CAN_TI1R_IDE CAN_TI1R_IDE_Msk /*!<Identifier Extension */
  1332. #define CAN_TI1R_EXID_Pos (3U)
  1333. #define CAN_TI1R_EXID_Msk (0x3FFFFU << CAN_TI1R_EXID_Pos) /*!< 0x001FFFF8 */
  1334. #define CAN_TI1R_EXID CAN_TI1R_EXID_Msk /*!<Extended Identifier */
  1335. #define CAN_TI1R_STID_Pos (21U)
  1336. #define CAN_TI1R_STID_Msk (0x7FFU << CAN_TI1R_STID_Pos) /*!< 0xFFE00000 */
  1337. #define CAN_TI1R_STID CAN_TI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1338. /******************* Bit definition for CAN_TDT1R register ******************/
  1339. #define CAN_TDT1R_DLC_Pos (0U)
  1340. #define CAN_TDT1R_DLC_Msk (0xFU << CAN_TDT1R_DLC_Pos) /*!< 0x0000000F */
  1341. #define CAN_TDT1R_DLC CAN_TDT1R_DLC_Msk /*!<Data Length Code */
  1342. #define CAN_TDT1R_TGT_Pos (8U)
  1343. #define CAN_TDT1R_TGT_Msk (0x1U << CAN_TDT1R_TGT_Pos) /*!< 0x00000100 */
  1344. #define CAN_TDT1R_TGT CAN_TDT1R_TGT_Msk /*!<Transmit Global Time */
  1345. #define CAN_TDT1R_TIME_Pos (16U)
  1346. #define CAN_TDT1R_TIME_Msk (0xFFFFU << CAN_TDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  1347. #define CAN_TDT1R_TIME CAN_TDT1R_TIME_Msk /*!<Message Time Stamp */
  1348. /******************* Bit definition for CAN_TDL1R register ******************/
  1349. #define CAN_TDL1R_DATA0_Pos (0U)
  1350. #define CAN_TDL1R_DATA0_Msk (0xFFU << CAN_TDL1R_DATA0_Pos) /*!< 0x000000FF */
  1351. #define CAN_TDL1R_DATA0 CAN_TDL1R_DATA0_Msk /*!<Data byte 0 */
  1352. #define CAN_TDL1R_DATA1_Pos (8U)
  1353. #define CAN_TDL1R_DATA1_Msk (0xFFU << CAN_TDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  1354. #define CAN_TDL1R_DATA1 CAN_TDL1R_DATA1_Msk /*!<Data byte 1 */
  1355. #define CAN_TDL1R_DATA2_Pos (16U)
  1356. #define CAN_TDL1R_DATA2_Msk (0xFFU << CAN_TDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  1357. #define CAN_TDL1R_DATA2 CAN_TDL1R_DATA2_Msk /*!<Data byte 2 */
  1358. #define CAN_TDL1R_DATA3_Pos (24U)
  1359. #define CAN_TDL1R_DATA3_Msk (0xFFU << CAN_TDL1R_DATA3_Pos) /*!< 0xFF000000 */
  1360. #define CAN_TDL1R_DATA3 CAN_TDL1R_DATA3_Msk /*!<Data byte 3 */
  1361. /******************* Bit definition for CAN_TDH1R register ******************/
  1362. #define CAN_TDH1R_DATA4_Pos (0U)
  1363. #define CAN_TDH1R_DATA4_Msk (0xFFU << CAN_TDH1R_DATA4_Pos) /*!< 0x000000FF */
  1364. #define CAN_TDH1R_DATA4 CAN_TDH1R_DATA4_Msk /*!<Data byte 4 */
  1365. #define CAN_TDH1R_DATA5_Pos (8U)
  1366. #define CAN_TDH1R_DATA5_Msk (0xFFU << CAN_TDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  1367. #define CAN_TDH1R_DATA5 CAN_TDH1R_DATA5_Msk /*!<Data byte 5 */
  1368. #define CAN_TDH1R_DATA6_Pos (16U)
  1369. #define CAN_TDH1R_DATA6_Msk (0xFFU << CAN_TDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  1370. #define CAN_TDH1R_DATA6 CAN_TDH1R_DATA6_Msk /*!<Data byte 6 */
  1371. #define CAN_TDH1R_DATA7_Pos (24U)
  1372. #define CAN_TDH1R_DATA7_Msk (0xFFU << CAN_TDH1R_DATA7_Pos) /*!< 0xFF000000 */
  1373. #define CAN_TDH1R_DATA7 CAN_TDH1R_DATA7_Msk /*!<Data byte 7 */
  1374. /******************* Bit definition for CAN_TI2R register *******************/
  1375. #define CAN_TI2R_TXRQ_Pos (0U)
  1376. #define CAN_TI2R_TXRQ_Msk (0x1U << CAN_TI2R_TXRQ_Pos) /*!< 0x00000001 */
  1377. #define CAN_TI2R_TXRQ CAN_TI2R_TXRQ_Msk /*!<Transmit Mailbox Request */
  1378. #define CAN_TI2R_RTR_Pos (1U)
  1379. #define CAN_TI2R_RTR_Msk (0x1U << CAN_TI2R_RTR_Pos) /*!< 0x00000002 */
  1380. #define CAN_TI2R_RTR CAN_TI2R_RTR_Msk /*!<Remote Transmission Request */
  1381. #define CAN_TI2R_IDE_Pos (2U)
  1382. #define CAN_TI2R_IDE_Msk (0x1U << CAN_TI2R_IDE_Pos) /*!< 0x00000004 */
  1383. #define CAN_TI2R_IDE CAN_TI2R_IDE_Msk /*!<Identifier Extension */
  1384. #define CAN_TI2R_EXID_Pos (3U)
  1385. #define CAN_TI2R_EXID_Msk (0x3FFFFU << CAN_TI2R_EXID_Pos) /*!< 0x001FFFF8 */
  1386. #define CAN_TI2R_EXID CAN_TI2R_EXID_Msk /*!<Extended identifier */
  1387. #define CAN_TI2R_STID_Pos (21U)
  1388. #define CAN_TI2R_STID_Msk (0x7FFU << CAN_TI2R_STID_Pos) /*!< 0xFFE00000 */
  1389. #define CAN_TI2R_STID CAN_TI2R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1390. /******************* Bit definition for CAN_TDT2R register ******************/
  1391. #define CAN_TDT2R_DLC_Pos (0U)
  1392. #define CAN_TDT2R_DLC_Msk (0xFU << CAN_TDT2R_DLC_Pos) /*!< 0x0000000F */
  1393. #define CAN_TDT2R_DLC CAN_TDT2R_DLC_Msk /*!<Data Length Code */
  1394. #define CAN_TDT2R_TGT_Pos (8U)
  1395. #define CAN_TDT2R_TGT_Msk (0x1U << CAN_TDT2R_TGT_Pos) /*!< 0x00000100 */
  1396. #define CAN_TDT2R_TGT CAN_TDT2R_TGT_Msk /*!<Transmit Global Time */
  1397. #define CAN_TDT2R_TIME_Pos (16U)
  1398. #define CAN_TDT2R_TIME_Msk (0xFFFFU << CAN_TDT2R_TIME_Pos) /*!< 0xFFFF0000 */
  1399. #define CAN_TDT2R_TIME CAN_TDT2R_TIME_Msk /*!<Message Time Stamp */
  1400. /******************* Bit definition for CAN_TDL2R register ******************/
  1401. #define CAN_TDL2R_DATA0_Pos (0U)
  1402. #define CAN_TDL2R_DATA0_Msk (0xFFU << CAN_TDL2R_DATA0_Pos) /*!< 0x000000FF */
  1403. #define CAN_TDL2R_DATA0 CAN_TDL2R_DATA0_Msk /*!<Data byte 0 */
  1404. #define CAN_TDL2R_DATA1_Pos (8U)
  1405. #define CAN_TDL2R_DATA1_Msk (0xFFU << CAN_TDL2R_DATA1_Pos) /*!< 0x0000FF00 */
  1406. #define CAN_TDL2R_DATA1 CAN_TDL2R_DATA1_Msk /*!<Data byte 1 */
  1407. #define CAN_TDL2R_DATA2_Pos (16U)
  1408. #define CAN_TDL2R_DATA2_Msk (0xFFU << CAN_TDL2R_DATA2_Pos) /*!< 0x00FF0000 */
  1409. #define CAN_TDL2R_DATA2 CAN_TDL2R_DATA2_Msk /*!<Data byte 2 */
  1410. #define CAN_TDL2R_DATA3_Pos (24U)
  1411. #define CAN_TDL2R_DATA3_Msk (0xFFU << CAN_TDL2R_DATA3_Pos) /*!< 0xFF000000 */
  1412. #define CAN_TDL2R_DATA3 CAN_TDL2R_DATA3_Msk /*!<Data byte 3 */
  1413. /******************* Bit definition for CAN_TDH2R register ******************/
  1414. #define CAN_TDH2R_DATA4_Pos (0U)
  1415. #define CAN_TDH2R_DATA4_Msk (0xFFU << CAN_TDH2R_DATA4_Pos) /*!< 0x000000FF */
  1416. #define CAN_TDH2R_DATA4 CAN_TDH2R_DATA4_Msk /*!<Data byte 4 */
  1417. #define CAN_TDH2R_DATA5_Pos (8U)
  1418. #define CAN_TDH2R_DATA5_Msk (0xFFU << CAN_TDH2R_DATA5_Pos) /*!< 0x0000FF00 */
  1419. #define CAN_TDH2R_DATA5 CAN_TDH2R_DATA5_Msk /*!<Data byte 5 */
  1420. #define CAN_TDH2R_DATA6_Pos (16U)
  1421. #define CAN_TDH2R_DATA6_Msk (0xFFU << CAN_TDH2R_DATA6_Pos) /*!< 0x00FF0000 */
  1422. #define CAN_TDH2R_DATA6 CAN_TDH2R_DATA6_Msk /*!<Data byte 6 */
  1423. #define CAN_TDH2R_DATA7_Pos (24U)
  1424. #define CAN_TDH2R_DATA7_Msk (0xFFU << CAN_TDH2R_DATA7_Pos) /*!< 0xFF000000 */
  1425. #define CAN_TDH2R_DATA7 CAN_TDH2R_DATA7_Msk /*!<Data byte 7 */
  1426. /******************* Bit definition for CAN_RI0R register *******************/
  1427. #define CAN_RI0R_RTR_Pos (1U)
  1428. #define CAN_RI0R_RTR_Msk (0x1U << CAN_RI0R_RTR_Pos) /*!< 0x00000002 */
  1429. #define CAN_RI0R_RTR CAN_RI0R_RTR_Msk /*!<Remote Transmission Request */
  1430. #define CAN_RI0R_IDE_Pos (2U)
  1431. #define CAN_RI0R_IDE_Msk (0x1U << CAN_RI0R_IDE_Pos) /*!< 0x00000004 */
  1432. #define CAN_RI0R_IDE CAN_RI0R_IDE_Msk /*!<Identifier Extension */
  1433. #define CAN_RI0R_EXID_Pos (3U)
  1434. #define CAN_RI0R_EXID_Msk (0x3FFFFU << CAN_RI0R_EXID_Pos) /*!< 0x001FFFF8 */
  1435. #define CAN_RI0R_EXID CAN_RI0R_EXID_Msk /*!<Extended Identifier */
  1436. #define CAN_RI0R_STID_Pos (21U)
  1437. #define CAN_RI0R_STID_Msk (0x7FFU << CAN_RI0R_STID_Pos) /*!< 0xFFE00000 */
  1438. #define CAN_RI0R_STID CAN_RI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1439. /******************* Bit definition for CAN_RDT0R register ******************/
  1440. #define CAN_RDT0R_DLC_Pos (0U)
  1441. #define CAN_RDT0R_DLC_Msk (0xFU << CAN_RDT0R_DLC_Pos) /*!< 0x0000000F */
  1442. #define CAN_RDT0R_DLC CAN_RDT0R_DLC_Msk /*!<Data Length Code */
  1443. #define CAN_RDT0R_FMI_Pos (8U)
  1444. #define CAN_RDT0R_FMI_Msk (0xFFU << CAN_RDT0R_FMI_Pos) /*!< 0x0000FF00 */
  1445. #define CAN_RDT0R_FMI CAN_RDT0R_FMI_Msk /*!<Filter Match Index */
  1446. #define CAN_RDT0R_TIME_Pos (16U)
  1447. #define CAN_RDT0R_TIME_Msk (0xFFFFU << CAN_RDT0R_TIME_Pos) /*!< 0xFFFF0000 */
  1448. #define CAN_RDT0R_TIME CAN_RDT0R_TIME_Msk /*!<Message Time Stamp */
  1449. /******************* Bit definition for CAN_RDL0R register ******************/
  1450. #define CAN_RDL0R_DATA0_Pos (0U)
  1451. #define CAN_RDL0R_DATA0_Msk (0xFFU << CAN_RDL0R_DATA0_Pos) /*!< 0x000000FF */
  1452. #define CAN_RDL0R_DATA0 CAN_RDL0R_DATA0_Msk /*!<Data byte 0 */
  1453. #define CAN_RDL0R_DATA1_Pos (8U)
  1454. #define CAN_RDL0R_DATA1_Msk (0xFFU << CAN_RDL0R_DATA1_Pos) /*!< 0x0000FF00 */
  1455. #define CAN_RDL0R_DATA1 CAN_RDL0R_DATA1_Msk /*!<Data byte 1 */
  1456. #define CAN_RDL0R_DATA2_Pos (16U)
  1457. #define CAN_RDL0R_DATA2_Msk (0xFFU << CAN_RDL0R_DATA2_Pos) /*!< 0x00FF0000 */
  1458. #define CAN_RDL0R_DATA2 CAN_RDL0R_DATA2_Msk /*!<Data byte 2 */
  1459. #define CAN_RDL0R_DATA3_Pos (24U)
  1460. #define CAN_RDL0R_DATA3_Msk (0xFFU << CAN_RDL0R_DATA3_Pos) /*!< 0xFF000000 */
  1461. #define CAN_RDL0R_DATA3 CAN_RDL0R_DATA3_Msk /*!<Data byte 3 */
  1462. /******************* Bit definition for CAN_RDH0R register ******************/
  1463. #define CAN_RDH0R_DATA4_Pos (0U)
  1464. #define CAN_RDH0R_DATA4_Msk (0xFFU << CAN_RDH0R_DATA4_Pos) /*!< 0x000000FF */
  1465. #define CAN_RDH0R_DATA4 CAN_RDH0R_DATA4_Msk /*!<Data byte 4 */
  1466. #define CAN_RDH0R_DATA5_Pos (8U)
  1467. #define CAN_RDH0R_DATA5_Msk (0xFFU << CAN_RDH0R_DATA5_Pos) /*!< 0x0000FF00 */
  1468. #define CAN_RDH0R_DATA5 CAN_RDH0R_DATA5_Msk /*!<Data byte 5 */
  1469. #define CAN_RDH0R_DATA6_Pos (16U)
  1470. #define CAN_RDH0R_DATA6_Msk (0xFFU << CAN_RDH0R_DATA6_Pos) /*!< 0x00FF0000 */
  1471. #define CAN_RDH0R_DATA6 CAN_RDH0R_DATA6_Msk /*!<Data byte 6 */
  1472. #define CAN_RDH0R_DATA7_Pos (24U)
  1473. #define CAN_RDH0R_DATA7_Msk (0xFFU << CAN_RDH0R_DATA7_Pos) /*!< 0xFF000000 */
  1474. #define CAN_RDH0R_DATA7 CAN_RDH0R_DATA7_Msk /*!<Data byte 7 */
  1475. /******************* Bit definition for CAN_RI1R register *******************/
  1476. #define CAN_RI1R_RTR_Pos (1U)
  1477. #define CAN_RI1R_RTR_Msk (0x1U << CAN_RI1R_RTR_Pos) /*!< 0x00000002 */
  1478. #define CAN_RI1R_RTR CAN_RI1R_RTR_Msk /*!<Remote Transmission Request */
  1479. #define CAN_RI1R_IDE_Pos (2U)
  1480. #define CAN_RI1R_IDE_Msk (0x1U << CAN_RI1R_IDE_Pos) /*!< 0x00000004 */
  1481. #define CAN_RI1R_IDE CAN_RI1R_IDE_Msk /*!<Identifier Extension */
  1482. #define CAN_RI1R_EXID_Pos (3U)
  1483. #define CAN_RI1R_EXID_Msk (0x3FFFFU << CAN_RI1R_EXID_Pos) /*!< 0x001FFFF8 */
  1484. #define CAN_RI1R_EXID CAN_RI1R_EXID_Msk /*!<Extended identifier */
  1485. #define CAN_RI1R_STID_Pos (21U)
  1486. #define CAN_RI1R_STID_Msk (0x7FFU << CAN_RI1R_STID_Pos) /*!< 0xFFE00000 */
  1487. #define CAN_RI1R_STID CAN_RI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
  1488. /******************* Bit definition for CAN_RDT1R register ******************/
  1489. #define CAN_RDT1R_DLC_Pos (0U)
  1490. #define CAN_RDT1R_DLC_Msk (0xFU << CAN_RDT1R_DLC_Pos) /*!< 0x0000000F */
  1491. #define CAN_RDT1R_DLC CAN_RDT1R_DLC_Msk /*!<Data Length Code */
  1492. #define CAN_RDT1R_FMI_Pos (8U)
  1493. #define CAN_RDT1R_FMI_Msk (0xFFU << CAN_RDT1R_FMI_Pos) /*!< 0x0000FF00 */
  1494. #define CAN_RDT1R_FMI CAN_RDT1R_FMI_Msk /*!<Filter Match Index */
  1495. #define CAN_RDT1R_TIME_Pos (16U)
  1496. #define CAN_RDT1R_TIME_Msk (0xFFFFU << CAN_RDT1R_TIME_Pos) /*!< 0xFFFF0000 */
  1497. #define CAN_RDT1R_TIME CAN_RDT1R_TIME_Msk /*!<Message Time Stamp */
  1498. /******************* Bit definition for CAN_RDL1R register ******************/
  1499. #define CAN_RDL1R_DATA0_Pos (0U)
  1500. #define CAN_RDL1R_DATA0_Msk (0xFFU << CAN_RDL1R_DATA0_Pos) /*!< 0x000000FF */
  1501. #define CAN_RDL1R_DATA0 CAN_RDL1R_DATA0_Msk /*!<Data byte 0 */
  1502. #define CAN_RDL1R_DATA1_Pos (8U)
  1503. #define CAN_RDL1R_DATA1_Msk (0xFFU << CAN_RDL1R_DATA1_Pos) /*!< 0x0000FF00 */
  1504. #define CAN_RDL1R_DATA1 CAN_RDL1R_DATA1_Msk /*!<Data byte 1 */
  1505. #define CAN_RDL1R_DATA2_Pos (16U)
  1506. #define CAN_RDL1R_DATA2_Msk (0xFFU << CAN_RDL1R_DATA2_Pos) /*!< 0x00FF0000 */
  1507. #define CAN_RDL1R_DATA2 CAN_RDL1R_DATA2_Msk /*!<Data byte 2 */
  1508. #define CAN_RDL1R_DATA3_Pos (24U)
  1509. #define CAN_RDL1R_DATA3_Msk (0xFFU << CAN_RDL1R_DATA3_Pos) /*!< 0xFF000000 */
  1510. #define CAN_RDL1R_DATA3 CAN_RDL1R_DATA3_Msk /*!<Data byte 3 */
  1511. /******************* Bit definition for CAN_RDH1R register ******************/
  1512. #define CAN_RDH1R_DATA4_Pos (0U)
  1513. #define CAN_RDH1R_DATA4_Msk (0xFFU << CAN_RDH1R_DATA4_Pos) /*!< 0x000000FF */
  1514. #define CAN_RDH1R_DATA4 CAN_RDH1R_DATA4_Msk /*!<Data byte 4 */
  1515. #define CAN_RDH1R_DATA5_Pos (8U)
  1516. #define CAN_RDH1R_DATA5_Msk (0xFFU << CAN_RDH1R_DATA5_Pos) /*!< 0x0000FF00 */
  1517. #define CAN_RDH1R_DATA5 CAN_RDH1R_DATA5_Msk /*!<Data byte 5 */
  1518. #define CAN_RDH1R_DATA6_Pos (16U)
  1519. #define CAN_RDH1R_DATA6_Msk (0xFFU << CAN_RDH1R_DATA6_Pos) /*!< 0x00FF0000 */
  1520. #define CAN_RDH1R_DATA6 CAN_RDH1R_DATA6_Msk /*!<Data byte 6 */
  1521. #define CAN_RDH1R_DATA7_Pos (24U)
  1522. #define CAN_RDH1R_DATA7_Msk (0xFFU << CAN_RDH1R_DATA7_Pos) /*!< 0xFF000000 */
  1523. #define CAN_RDH1R_DATA7 CAN_RDH1R_DATA7_Msk /*!<Data byte 7 */
  1524. /*!<CAN filter registers */
  1525. /******************* Bit definition for CAN_FMR register ********************/
  1526. #define CAN_FMR_FINIT_Pos (0U)
  1527. #define CAN_FMR_FINIT_Msk (0x1U << CAN_FMR_FINIT_Pos) /*!< 0x00000001 */
  1528. #define CAN_FMR_FINIT CAN_FMR_FINIT_Msk /*!<Filter Init Mode */
  1529. #define CAN_FMR_CAN2SB_Pos (8U)
  1530. #define CAN_FMR_CAN2SB_Msk (0x3FU << CAN_FMR_CAN2SB_Pos) /*!< 0x00003F00 */
  1531. #define CAN_FMR_CAN2SB CAN_FMR_CAN2SB_Msk /*!<CAN2 start bank */
  1532. /******************* Bit definition for CAN_FM1R register *******************/
  1533. #define CAN_FM1R_FBM_Pos (0U)
  1534. #define CAN_FM1R_FBM_Msk (0xFFFFFFFU << CAN_FM1R_FBM_Pos) /*!< 0x0FFFFFFF */
  1535. #define CAN_FM1R_FBM CAN_FM1R_FBM_Msk /*!<Filter Mode */
  1536. #define CAN_FM1R_FBM0_Pos (0U)
  1537. #define CAN_FM1R_FBM0_Msk (0x1U << CAN_FM1R_FBM0_Pos) /*!< 0x00000001 */
  1538. #define CAN_FM1R_FBM0 CAN_FM1R_FBM0_Msk /*!<Filter Init Mode bit 0 */
  1539. #define CAN_FM1R_FBM1_Pos (1U)
  1540. #define CAN_FM1R_FBM1_Msk (0x1U << CAN_FM1R_FBM1_Pos) /*!< 0x00000002 */
  1541. #define CAN_FM1R_FBM1 CAN_FM1R_FBM1_Msk /*!<Filter Init Mode bit 1 */
  1542. #define CAN_FM1R_FBM2_Pos (2U)
  1543. #define CAN_FM1R_FBM2_Msk (0x1U << CAN_FM1R_FBM2_Pos) /*!< 0x00000004 */
  1544. #define CAN_FM1R_FBM2 CAN_FM1R_FBM2_Msk /*!<Filter Init Mode bit 2 */
  1545. #define CAN_FM1R_FBM3_Pos (3U)
  1546. #define CAN_FM1R_FBM3_Msk (0x1U << CAN_FM1R_FBM3_Pos) /*!< 0x00000008 */
  1547. #define CAN_FM1R_FBM3 CAN_FM1R_FBM3_Msk /*!<Filter Init Mode bit 3 */
  1548. #define CAN_FM1R_FBM4_Pos (4U)
  1549. #define CAN_FM1R_FBM4_Msk (0x1U << CAN_FM1R_FBM4_Pos) /*!< 0x00000010 */
  1550. #define CAN_FM1R_FBM4 CAN_FM1R_FBM4_Msk /*!<Filter Init Mode bit 4 */
  1551. #define CAN_FM1R_FBM5_Pos (5U)
  1552. #define CAN_FM1R_FBM5_Msk (0x1U << CAN_FM1R_FBM5_Pos) /*!< 0x00000020 */
  1553. #define CAN_FM1R_FBM5 CAN_FM1R_FBM5_Msk /*!<Filter Init Mode bit 5 */
  1554. #define CAN_FM1R_FBM6_Pos (6U)
  1555. #define CAN_FM1R_FBM6_Msk (0x1U << CAN_FM1R_FBM6_Pos) /*!< 0x00000040 */
  1556. #define CAN_FM1R_FBM6 CAN_FM1R_FBM6_Msk /*!<Filter Init Mode bit 6 */
  1557. #define CAN_FM1R_FBM7_Pos (7U)
  1558. #define CAN_FM1R_FBM7_Msk (0x1U << CAN_FM1R_FBM7_Pos) /*!< 0x00000080 */
  1559. #define CAN_FM1R_FBM7 CAN_FM1R_FBM7_Msk /*!<Filter Init Mode bit 7 */
  1560. #define CAN_FM1R_FBM8_Pos (8U)
  1561. #define CAN_FM1R_FBM8_Msk (0x1U << CAN_FM1R_FBM8_Pos) /*!< 0x00000100 */
  1562. #define CAN_FM1R_FBM8 CAN_FM1R_FBM8_Msk /*!<Filter Init Mode bit 8 */
  1563. #define CAN_FM1R_FBM9_Pos (9U)
  1564. #define CAN_FM1R_FBM9_Msk (0x1U << CAN_FM1R_FBM9_Pos) /*!< 0x00000200 */
  1565. #define CAN_FM1R_FBM9 CAN_FM1R_FBM9_Msk /*!<Filter Init Mode bit 9 */
  1566. #define CAN_FM1R_FBM10_Pos (10U)
  1567. #define CAN_FM1R_FBM10_Msk (0x1U << CAN_FM1R_FBM10_Pos) /*!< 0x00000400 */
  1568. #define CAN_FM1R_FBM10 CAN_FM1R_FBM10_Msk /*!<Filter Init Mode bit 10 */
  1569. #define CAN_FM1R_FBM11_Pos (11U)
  1570. #define CAN_FM1R_FBM11_Msk (0x1U << CAN_FM1R_FBM11_Pos) /*!< 0x00000800 */
  1571. #define CAN_FM1R_FBM11 CAN_FM1R_FBM11_Msk /*!<Filter Init Mode bit 11 */
  1572. #define CAN_FM1R_FBM12_Pos (12U)
  1573. #define CAN_FM1R_FBM12_Msk (0x1U << CAN_FM1R_FBM12_Pos) /*!< 0x00001000 */
  1574. #define CAN_FM1R_FBM12 CAN_FM1R_FBM12_Msk /*!<Filter Init Mode bit 12 */
  1575. #define CAN_FM1R_FBM13_Pos (13U)
  1576. #define CAN_FM1R_FBM13_Msk (0x1U << CAN_FM1R_FBM13_Pos) /*!< 0x00002000 */
  1577. #define CAN_FM1R_FBM13 CAN_FM1R_FBM13_Msk /*!<Filter Init Mode bit 13 */
  1578. #define CAN_FM1R_FBM14_Pos (14U)
  1579. #define CAN_FM1R_FBM14_Msk (0x1U << CAN_FM1R_FBM14_Pos) /*!< 0x00004000 */
  1580. #define CAN_FM1R_FBM14 CAN_FM1R_FBM14_Msk /*!<Filter Init Mode bit 14 */
  1581. #define CAN_FM1R_FBM15_Pos (15U)
  1582. #define CAN_FM1R_FBM15_Msk (0x1U << CAN_FM1R_FBM15_Pos) /*!< 0x00008000 */
  1583. #define CAN_FM1R_FBM15 CAN_FM1R_FBM15_Msk /*!<Filter Init Mode bit 15 */
  1584. #define CAN_FM1R_FBM16_Pos (16U)
  1585. #define CAN_FM1R_FBM16_Msk (0x1U << CAN_FM1R_FBM16_Pos) /*!< 0x00010000 */
  1586. #define CAN_FM1R_FBM16 CAN_FM1R_FBM16_Msk /*!<Filter Init Mode bit 16 */
  1587. #define CAN_FM1R_FBM17_Pos (17U)
  1588. #define CAN_FM1R_FBM17_Msk (0x1U << CAN_FM1R_FBM17_Pos) /*!< 0x00020000 */
  1589. #define CAN_FM1R_FBM17 CAN_FM1R_FBM17_Msk /*!<Filter Init Mode bit 17 */
  1590. #define CAN_FM1R_FBM18_Pos (18U)
  1591. #define CAN_FM1R_FBM18_Msk (0x1U << CAN_FM1R_FBM18_Pos) /*!< 0x00040000 */
  1592. #define CAN_FM1R_FBM18 CAN_FM1R_FBM18_Msk /*!<Filter Init Mode bit 18 */
  1593. #define CAN_FM1R_FBM19_Pos (19U)
  1594. #define CAN_FM1R_FBM19_Msk (0x1U << CAN_FM1R_FBM19_Pos) /*!< 0x00080000 */
  1595. #define CAN_FM1R_FBM19 CAN_FM1R_FBM19_Msk /*!<Filter Init Mode bit 19 */
  1596. #define CAN_FM1R_FBM20_Pos (20U)
  1597. #define CAN_FM1R_FBM20_Msk (0x1U << CAN_FM1R_FBM20_Pos) /*!< 0x00100000 */
  1598. #define CAN_FM1R_FBM20 CAN_FM1R_FBM20_Msk /*!<Filter Init Mode bit 20 */
  1599. #define CAN_FM1R_FBM21_Pos (21U)
  1600. #define CAN_FM1R_FBM21_Msk (0x1U << CAN_FM1R_FBM21_Pos) /*!< 0x00200000 */
  1601. #define CAN_FM1R_FBM21 CAN_FM1R_FBM21_Msk /*!<Filter Init Mode bit 21 */
  1602. #define CAN_FM1R_FBM22_Pos (22U)
  1603. #define CAN_FM1R_FBM22_Msk (0x1U << CAN_FM1R_FBM22_Pos) /*!< 0x00400000 */
  1604. #define CAN_FM1R_FBM22 CAN_FM1R_FBM22_Msk /*!<Filter Init Mode bit 22 */
  1605. #define CAN_FM1R_FBM23_Pos (23U)
  1606. #define CAN_FM1R_FBM23_Msk (0x1U << CAN_FM1R_FBM23_Pos) /*!< 0x00800000 */
  1607. #define CAN_FM1R_FBM23 CAN_FM1R_FBM23_Msk /*!<Filter Init Mode bit 23 */
  1608. #define CAN_FM1R_FBM24_Pos (24U)
  1609. #define CAN_FM1R_FBM24_Msk (0x1U << CAN_FM1R_FBM24_Pos) /*!< 0x01000000 */
  1610. #define CAN_FM1R_FBM24 CAN_FM1R_FBM24_Msk /*!<Filter Init Mode bit 24 */
  1611. #define CAN_FM1R_FBM25_Pos (25U)
  1612. #define CAN_FM1R_FBM25_Msk (0x1U << CAN_FM1R_FBM25_Pos) /*!< 0x02000000 */
  1613. #define CAN_FM1R_FBM25 CAN_FM1R_FBM25_Msk /*!<Filter Init Mode bit 25 */
  1614. #define CAN_FM1R_FBM26_Pos (26U)
  1615. #define CAN_FM1R_FBM26_Msk (0x1U << CAN_FM1R_FBM26_Pos) /*!< 0x04000000 */
  1616. #define CAN_FM1R_FBM26 CAN_FM1R_FBM26_Msk /*!<Filter Init Mode bit 26 */
  1617. #define CAN_FM1R_FBM27_Pos (27U)
  1618. #define CAN_FM1R_FBM27_Msk (0x1U << CAN_FM1R_FBM27_Pos) /*!< 0x08000000 */
  1619. #define CAN_FM1R_FBM27 CAN_FM1R_FBM27_Msk /*!<Filter Init Mode bit 27 */
  1620. /******************* Bit definition for CAN_FS1R register *******************/
  1621. #define CAN_FS1R_FSC_Pos (0U)
  1622. #define CAN_FS1R_FSC_Msk (0xFFFFFFFU << CAN_FS1R_FSC_Pos) /*!< 0x0FFFFFFF */
  1623. #define CAN_FS1R_FSC CAN_FS1R_FSC_Msk /*!<Filter Scale Configuration */
  1624. #define CAN_FS1R_FSC0_Pos (0U)
  1625. #define CAN_FS1R_FSC0_Msk (0x1U << CAN_FS1R_FSC0_Pos) /*!< 0x00000001 */
  1626. #define CAN_FS1R_FSC0 CAN_FS1R_FSC0_Msk /*!<Filter Scale Configuration bit 0 */
  1627. #define CAN_FS1R_FSC1_Pos (1U)
  1628. #define CAN_FS1R_FSC1_Msk (0x1U << CAN_FS1R_FSC1_Pos) /*!< 0x00000002 */
  1629. #define CAN_FS1R_FSC1 CAN_FS1R_FSC1_Msk /*!<Filter Scale Configuration bit 1 */
  1630. #define CAN_FS1R_FSC2_Pos (2U)
  1631. #define CAN_FS1R_FSC2_Msk (0x1U << CAN_FS1R_FSC2_Pos) /*!< 0x00000004 */
  1632. #define CAN_FS1R_FSC2 CAN_FS1R_FSC2_Msk /*!<Filter Scale Configuration bit 2 */
  1633. #define CAN_FS1R_FSC3_Pos (3U)
  1634. #define CAN_FS1R_FSC3_Msk (0x1U << CAN_FS1R_FSC3_Pos) /*!< 0x00000008 */
  1635. #define CAN_FS1R_FSC3 CAN_FS1R_FSC3_Msk /*!<Filter Scale Configuration bit 3 */
  1636. #define CAN_FS1R_FSC4_Pos (4U)
  1637. #define CAN_FS1R_FSC4_Msk (0x1U << CAN_FS1R_FSC4_Pos) /*!< 0x00000010 */
  1638. #define CAN_FS1R_FSC4 CAN_FS1R_FSC4_Msk /*!<Filter Scale Configuration bit 4 */
  1639. #define CAN_FS1R_FSC5_Pos (5U)
  1640. #define CAN_FS1R_FSC5_Msk (0x1U << CAN_FS1R_FSC5_Pos) /*!< 0x00000020 */
  1641. #define CAN_FS1R_FSC5 CAN_FS1R_FSC5_Msk /*!<Filter Scale Configuration bit 5 */
  1642. #define CAN_FS1R_FSC6_Pos (6U)
  1643. #define CAN_FS1R_FSC6_Msk (0x1U << CAN_FS1R_FSC6_Pos) /*!< 0x00000040 */
  1644. #define CAN_FS1R_FSC6 CAN_FS1R_FSC6_Msk /*!<Filter Scale Configuration bit 6 */
  1645. #define CAN_FS1R_FSC7_Pos (7U)
  1646. #define CAN_FS1R_FSC7_Msk (0x1U << CAN_FS1R_FSC7_Pos) /*!< 0x00000080 */
  1647. #define CAN_FS1R_FSC7 CAN_FS1R_FSC7_Msk /*!<Filter Scale Configuration bit 7 */
  1648. #define CAN_FS1R_FSC8_Pos (8U)
  1649. #define CAN_FS1R_FSC8_Msk (0x1U << CAN_FS1R_FSC8_Pos) /*!< 0x00000100 */
  1650. #define CAN_FS1R_FSC8 CAN_FS1R_FSC8_Msk /*!<Filter Scale Configuration bit 8 */
  1651. #define CAN_FS1R_FSC9_Pos (9U)
  1652. #define CAN_FS1R_FSC9_Msk (0x1U << CAN_FS1R_FSC9_Pos) /*!< 0x00000200 */
  1653. #define CAN_FS1R_FSC9 CAN_FS1R_FSC9_Msk /*!<Filter Scale Configuration bit 9 */
  1654. #define CAN_FS1R_FSC10_Pos (10U)
  1655. #define CAN_FS1R_FSC10_Msk (0x1U << CAN_FS1R_FSC10_Pos) /*!< 0x00000400 */
  1656. #define CAN_FS1R_FSC10 CAN_FS1R_FSC10_Msk /*!<Filter Scale Configuration bit 10 */
  1657. #define CAN_FS1R_FSC11_Pos (11U)
  1658. #define CAN_FS1R_FSC11_Msk (0x1U << CAN_FS1R_FSC11_Pos) /*!< 0x00000800 */
  1659. #define CAN_FS1R_FSC11 CAN_FS1R_FSC11_Msk /*!<Filter Scale Configuration bit 11 */
  1660. #define CAN_FS1R_FSC12_Pos (12U)
  1661. #define CAN_FS1R_FSC12_Msk (0x1U << CAN_FS1R_FSC12_Pos) /*!< 0x00001000 */
  1662. #define CAN_FS1R_FSC12 CAN_FS1R_FSC12_Msk /*!<Filter Scale Configuration bit 12 */
  1663. #define CAN_FS1R_FSC13_Pos (13U)
  1664. #define CAN_FS1R_FSC13_Msk (0x1U << CAN_FS1R_FSC13_Pos) /*!< 0x00002000 */
  1665. #define CAN_FS1R_FSC13 CAN_FS1R_FSC13_Msk /*!<Filter Scale Configuration bit 13 */
  1666. #define CAN_FS1R_FSC14_Pos (14U)
  1667. #define CAN_FS1R_FSC14_Msk (0x1U << CAN_FS1R_FSC14_Pos) /*!< 0x00004000 */
  1668. #define CAN_FS1R_FSC14 CAN_FS1R_FSC14_Msk /*!<Filter Scale Configuration bit 14 */
  1669. #define CAN_FS1R_FSC15_Pos (15U)
  1670. #define CAN_FS1R_FSC15_Msk (0x1U << CAN_FS1R_FSC15_Pos) /*!< 0x00008000 */
  1671. #define CAN_FS1R_FSC15 CAN_FS1R_FSC15_Msk /*!<Filter Scale Configuration bit 15 */
  1672. #define CAN_FS1R_FSC16_Pos (16U)
  1673. #define CAN_FS1R_FSC16_Msk (0x1U << CAN_FS1R_FSC16_Pos) /*!< 0x00010000 */
  1674. #define CAN_FS1R_FSC16 CAN_FS1R_FSC16_Msk /*!<Filter Scale Configuration bit 16 */
  1675. #define CAN_FS1R_FSC17_Pos (17U)
  1676. #define CAN_FS1R_FSC17_Msk (0x1U << CAN_FS1R_FSC17_Pos) /*!< 0x00020000 */
  1677. #define CAN_FS1R_FSC17 CAN_FS1R_FSC17_Msk /*!<Filter Scale Configuration bit 17 */
  1678. #define CAN_FS1R_FSC18_Pos (18U)
  1679. #define CAN_FS1R_FSC18_Msk (0x1U << CAN_FS1R_FSC18_Pos) /*!< 0x00040000 */
  1680. #define CAN_FS1R_FSC18 CAN_FS1R_FSC18_Msk /*!<Filter Scale Configuration bit 18 */
  1681. #define CAN_FS1R_FSC19_Pos (19U)
  1682. #define CAN_FS1R_FSC19_Msk (0x1U << CAN_FS1R_FSC19_Pos) /*!< 0x00080000 */
  1683. #define CAN_FS1R_FSC19 CAN_FS1R_FSC19_Msk /*!<Filter Scale Configuration bit 19 */
  1684. #define CAN_FS1R_FSC20_Pos (20U)
  1685. #define CAN_FS1R_FSC20_Msk (0x1U << CAN_FS1R_FSC20_Pos) /*!< 0x00100000 */
  1686. #define CAN_FS1R_FSC20 CAN_FS1R_FSC20_Msk /*!<Filter Scale Configuration bit 20 */
  1687. #define CAN_FS1R_FSC21_Pos (21U)
  1688. #define CAN_FS1R_FSC21_Msk (0x1U << CAN_FS1R_FSC21_Pos) /*!< 0x00200000 */
  1689. #define CAN_FS1R_FSC21 CAN_FS1R_FSC21_Msk /*!<Filter Scale Configuration bit 21 */
  1690. #define CAN_FS1R_FSC22_Pos (22U)
  1691. #define CAN_FS1R_FSC22_Msk (0x1U << CAN_FS1R_FSC22_Pos) /*!< 0x00400000 */
  1692. #define CAN_FS1R_FSC22 CAN_FS1R_FSC22_Msk /*!<Filter Scale Configuration bit 22 */
  1693. #define CAN_FS1R_FSC23_Pos (23U)
  1694. #define CAN_FS1R_FSC23_Msk (0x1U << CAN_FS1R_FSC23_Pos) /*!< 0x00800000 */
  1695. #define CAN_FS1R_FSC23 CAN_FS1R_FSC23_Msk /*!<Filter Scale Configuration bit 23 */
  1696. #define CAN_FS1R_FSC24_Pos (24U)
  1697. #define CAN_FS1R_FSC24_Msk (0x1U << CAN_FS1R_FSC24_Pos) /*!< 0x01000000 */
  1698. #define CAN_FS1R_FSC24 CAN_FS1R_FSC24_Msk /*!<Filter Scale Configuration bit 24 */
  1699. #define CAN_FS1R_FSC25_Pos (25U)
  1700. #define CAN_FS1R_FSC25_Msk (0x1U << CAN_FS1R_FSC25_Pos) /*!< 0x02000000 */
  1701. #define CAN_FS1R_FSC25 CAN_FS1R_FSC25_Msk /*!<Filter Scale Configuration bit 25 */
  1702. #define CAN_FS1R_FSC26_Pos (26U)
  1703. #define CAN_FS1R_FSC26_Msk (0x1U << CAN_FS1R_FSC26_Pos) /*!< 0x04000000 */
  1704. #define CAN_FS1R_FSC26 CAN_FS1R_FSC26_Msk /*!<Filter Scale Configuration bit 26 */
  1705. #define CAN_FS1R_FSC27_Pos (27U)
  1706. #define CAN_FS1R_FSC27_Msk (0x1U << CAN_FS1R_FSC27_Pos) /*!< 0x08000000 */
  1707. #define CAN_FS1R_FSC27 CAN_FS1R_FSC27_Msk /*!<Filter Scale Configuration bit 27 */
  1708. /****************** Bit definition for CAN_FFA1R register *******************/
  1709. #define CAN_FFA1R_FFA_Pos (0U)
  1710. #define CAN_FFA1R_FFA_Msk (0xFFFFFFFU << CAN_FFA1R_FFA_Pos) /*!< 0x0FFFFFFF */
  1711. #define CAN_FFA1R_FFA CAN_FFA1R_FFA_Msk /*!<Filter FIFO Assignment */
  1712. #define CAN_FFA1R_FFA0_Pos (0U)
  1713. #define CAN_FFA1R_FFA0_Msk (0x1U << CAN_FFA1R_FFA0_Pos) /*!< 0x00000001 */
  1714. #define CAN_FFA1R_FFA0 CAN_FFA1R_FFA0_Msk /*!<Filter FIFO Assignment bit 0 */
  1715. #define CAN_FFA1R_FFA1_Pos (1U)
  1716. #define CAN_FFA1R_FFA1_Msk (0x1U << CAN_FFA1R_FFA1_Pos) /*!< 0x00000002 */
  1717. #define CAN_FFA1R_FFA1 CAN_FFA1R_FFA1_Msk /*!<Filter FIFO Assignment bit 1 */
  1718. #define CAN_FFA1R_FFA2_Pos (2U)
  1719. #define CAN_FFA1R_FFA2_Msk (0x1U << CAN_FFA1R_FFA2_Pos) /*!< 0x00000004 */
  1720. #define CAN_FFA1R_FFA2 CAN_FFA1R_FFA2_Msk /*!<Filter FIFO Assignment bit 2 */
  1721. #define CAN_FFA1R_FFA3_Pos (3U)
  1722. #define CAN_FFA1R_FFA3_Msk (0x1U << CAN_FFA1R_FFA3_Pos) /*!< 0x00000008 */
  1723. #define CAN_FFA1R_FFA3 CAN_FFA1R_FFA3_Msk /*!<Filter FIFO Assignment bit 3 */
  1724. #define CAN_FFA1R_FFA4_Pos (4U)
  1725. #define CAN_FFA1R_FFA4_Msk (0x1U << CAN_FFA1R_FFA4_Pos) /*!< 0x00000010 */
  1726. #define CAN_FFA1R_FFA4 CAN_FFA1R_FFA4_Msk /*!<Filter FIFO Assignment bit 4 */
  1727. #define CAN_FFA1R_FFA5_Pos (5U)
  1728. #define CAN_FFA1R_FFA5_Msk (0x1U << CAN_FFA1R_FFA5_Pos) /*!< 0x00000020 */
  1729. #define CAN_FFA1R_FFA5 CAN_FFA1R_FFA5_Msk /*!<Filter FIFO Assignment bit 5 */
  1730. #define CAN_FFA1R_FFA6_Pos (6U)
  1731. #define CAN_FFA1R_FFA6_Msk (0x1U << CAN_FFA1R_FFA6_Pos) /*!< 0x00000040 */
  1732. #define CAN_FFA1R_FFA6 CAN_FFA1R_FFA6_Msk /*!<Filter FIFO Assignment bit 6 */
  1733. #define CAN_FFA1R_FFA7_Pos (7U)
  1734. #define CAN_FFA1R_FFA7_Msk (0x1U << CAN_FFA1R_FFA7_Pos) /*!< 0x00000080 */
  1735. #define CAN_FFA1R_FFA7 CAN_FFA1R_FFA7_Msk /*!<Filter FIFO Assignment bit 7 */
  1736. #define CAN_FFA1R_FFA8_Pos (8U)
  1737. #define CAN_FFA1R_FFA8_Msk (0x1U << CAN_FFA1R_FFA8_Pos) /*!< 0x00000100 */
  1738. #define CAN_FFA1R_FFA8 CAN_FFA1R_FFA8_Msk /*!<Filter FIFO Assignment bit 8 */
  1739. #define CAN_FFA1R_FFA9_Pos (9U)
  1740. #define CAN_FFA1R_FFA9_Msk (0x1U << CAN_FFA1R_FFA9_Pos) /*!< 0x00000200 */
  1741. #define CAN_FFA1R_FFA9 CAN_FFA1R_FFA9_Msk /*!<Filter FIFO Assignment bit 9 */
  1742. #define CAN_FFA1R_FFA10_Pos (10U)
  1743. #define CAN_FFA1R_FFA10_Msk (0x1U << CAN_FFA1R_FFA10_Pos) /*!< 0x00000400 */
  1744. #define CAN_FFA1R_FFA10 CAN_FFA1R_FFA10_Msk /*!<Filter FIFO Assignment bit 10 */
  1745. #define CAN_FFA1R_FFA11_Pos (11U)
  1746. #define CAN_FFA1R_FFA11_Msk (0x1U << CAN_FFA1R_FFA11_Pos) /*!< 0x00000800 */
  1747. #define CAN_FFA1R_FFA11 CAN_FFA1R_FFA11_Msk /*!<Filter FIFO Assignment bit 11 */
  1748. #define CAN_FFA1R_FFA12_Pos (12U)
  1749. #define CAN_FFA1R_FFA12_Msk (0x1U << CAN_FFA1R_FFA12_Pos) /*!< 0x00001000 */
  1750. #define CAN_FFA1R_FFA12 CAN_FFA1R_FFA12_Msk /*!<Filter FIFO Assignment bit 12 */
  1751. #define CAN_FFA1R_FFA13_Pos (13U)
  1752. #define CAN_FFA1R_FFA13_Msk (0x1U << CAN_FFA1R_FFA13_Pos) /*!< 0x00002000 */
  1753. #define CAN_FFA1R_FFA13 CAN_FFA1R_FFA13_Msk /*!<Filter FIFO Assignment bit 13 */
  1754. #define CAN_FFA1R_FFA14_Pos (14U)
  1755. #define CAN_FFA1R_FFA14_Msk (0x1U << CAN_FFA1R_FFA14_Pos) /*!< 0x00004000 */
  1756. #define CAN_FFA1R_FFA14 CAN_FFA1R_FFA14_Msk /*!<Filter FIFO Assignment bit 14 */
  1757. #define CAN_FFA1R_FFA15_Pos (15U)
  1758. #define CAN_FFA1R_FFA15_Msk (0x1U << CAN_FFA1R_FFA15_Pos) /*!< 0x00008000 */
  1759. #define CAN_FFA1R_FFA15 CAN_FFA1R_FFA15_Msk /*!<Filter FIFO Assignment bit 15 */
  1760. #define CAN_FFA1R_FFA16_Pos (16U)
  1761. #define CAN_FFA1R_FFA16_Msk (0x1U << CAN_FFA1R_FFA16_Pos) /*!< 0x00010000 */
  1762. #define CAN_FFA1R_FFA16 CAN_FFA1R_FFA16_Msk /*!<Filter FIFO Assignment bit 16 */
  1763. #define CAN_FFA1R_FFA17_Pos (17U)
  1764. #define CAN_FFA1R_FFA17_Msk (0x1U << CAN_FFA1R_FFA17_Pos) /*!< 0x00020000 */
  1765. #define CAN_FFA1R_FFA17 CAN_FFA1R_FFA17_Msk /*!<Filter FIFO Assignment bit 17 */
  1766. #define CAN_FFA1R_FFA18_Pos (18U)
  1767. #define CAN_FFA1R_FFA18_Msk (0x1U << CAN_FFA1R_FFA18_Pos) /*!< 0x00040000 */
  1768. #define CAN_FFA1R_FFA18 CAN_FFA1R_FFA18_Msk /*!<Filter FIFO Assignment bit 18 */
  1769. #define CAN_FFA1R_FFA19_Pos (19U)
  1770. #define CAN_FFA1R_FFA19_Msk (0x1U << CAN_FFA1R_FFA19_Pos) /*!< 0x00080000 */
  1771. #define CAN_FFA1R_FFA19 CAN_FFA1R_FFA19_Msk /*!<Filter FIFO Assignment bit 19 */
  1772. #define CAN_FFA1R_FFA20_Pos (20U)
  1773. #define CAN_FFA1R_FFA20_Msk (0x1U << CAN_FFA1R_FFA20_Pos) /*!< 0x00100000 */
  1774. #define CAN_FFA1R_FFA20 CAN_FFA1R_FFA20_Msk /*!<Filter FIFO Assignment bit 20 */
  1775. #define CAN_FFA1R_FFA21_Pos (21U)
  1776. #define CAN_FFA1R_FFA21_Msk (0x1U << CAN_FFA1R_FFA21_Pos) /*!< 0x00200000 */
  1777. #define CAN_FFA1R_FFA21 CAN_FFA1R_FFA21_Msk /*!<Filter FIFO Assignment bit 21 */
  1778. #define CAN_FFA1R_FFA22_Pos (22U)
  1779. #define CAN_FFA1R_FFA22_Msk (0x1U << CAN_FFA1R_FFA22_Pos) /*!< 0x00400000 */
  1780. #define CAN_FFA1R_FFA22 CAN_FFA1R_FFA22_Msk /*!<Filter FIFO Assignment bit 22 */
  1781. #define CAN_FFA1R_FFA23_Pos (23U)
  1782. #define CAN_FFA1R_FFA23_Msk (0x1U << CAN_FFA1R_FFA23_Pos) /*!< 0x00800000 */
  1783. #define CAN_FFA1R_FFA23 CAN_FFA1R_FFA23_Msk /*!<Filter FIFO Assignment bit 23 */
  1784. #define CAN_FFA1R_FFA24_Pos (24U)
  1785. #define CAN_FFA1R_FFA24_Msk (0x1U << CAN_FFA1R_FFA24_Pos) /*!< 0x01000000 */
  1786. #define CAN_FFA1R_FFA24 CAN_FFA1R_FFA24_Msk /*!<Filter FIFO Assignment bit 24 */
  1787. #define CAN_FFA1R_FFA25_Pos (25U)
  1788. #define CAN_FFA1R_FFA25_Msk (0x1U << CAN_FFA1R_FFA25_Pos) /*!< 0x02000000 */
  1789. #define CAN_FFA1R_FFA25 CAN_FFA1R_FFA25_Msk /*!<Filter FIFO Assignment bit 25 */
  1790. #define CAN_FFA1R_FFA26_Pos (26U)
  1791. #define CAN_FFA1R_FFA26_Msk (0x1U << CAN_FFA1R_FFA26_Pos) /*!< 0x04000000 */
  1792. #define CAN_FFA1R_FFA26 CAN_FFA1R_FFA26_Msk /*!<Filter FIFO Assignment bit 26 */
  1793. #define CAN_FFA1R_FFA27_Pos (27U)
  1794. #define CAN_FFA1R_FFA27_Msk (0x1U << CAN_FFA1R_FFA27_Pos) /*!< 0x08000000 */
  1795. #define CAN_FFA1R_FFA27 CAN_FFA1R_FFA27_Msk /*!<Filter FIFO Assignment bit 27 */
  1796. /******************* Bit definition for CAN_FA1R register *******************/
  1797. #define CAN_FA1R_FACT_Pos (0U)
  1798. #define CAN_FA1R_FACT_Msk (0xFFFFFFFU << CAN_FA1R_FACT_Pos) /*!< 0x0FFFFFFF */
  1799. #define CAN_FA1R_FACT CAN_FA1R_FACT_Msk /*!<Filter Active */
  1800. #define CAN_FA1R_FACT0_Pos (0U)
  1801. #define CAN_FA1R_FACT0_Msk (0x1U << CAN_FA1R_FACT0_Pos) /*!< 0x00000001 */
  1802. #define CAN_FA1R_FACT0 CAN_FA1R_FACT0_Msk /*!<Filter Active bit 0 */
  1803. #define CAN_FA1R_FACT1_Pos (1U)
  1804. #define CAN_FA1R_FACT1_Msk (0x1U << CAN_FA1R_FACT1_Pos) /*!< 0x00000002 */
  1805. #define CAN_FA1R_FACT1 CAN_FA1R_FACT1_Msk /*!<Filter Active bit 1 */
  1806. #define CAN_FA1R_FACT2_Pos (2U)
  1807. #define CAN_FA1R_FACT2_Msk (0x1U << CAN_FA1R_FACT2_Pos) /*!< 0x00000004 */
  1808. #define CAN_FA1R_FACT2 CAN_FA1R_FACT2_Msk /*!<Filter Active bit 2 */
  1809. #define CAN_FA1R_FACT3_Pos (3U)
  1810. #define CAN_FA1R_FACT3_Msk (0x1U << CAN_FA1R_FACT3_Pos) /*!< 0x00000008 */
  1811. #define CAN_FA1R_FACT3 CAN_FA1R_FACT3_Msk /*!<Filter Active bit 3 */
  1812. #define CAN_FA1R_FACT4_Pos (4U)
  1813. #define CAN_FA1R_FACT4_Msk (0x1U << CAN_FA1R_FACT4_Pos) /*!< 0x00000010 */
  1814. #define CAN_FA1R_FACT4 CAN_FA1R_FACT4_Msk /*!<Filter Active bit 4 */
  1815. #define CAN_FA1R_FACT5_Pos (5U)
  1816. #define CAN_FA1R_FACT5_Msk (0x1U << CAN_FA1R_FACT5_Pos) /*!< 0x00000020 */
  1817. #define CAN_FA1R_FACT5 CAN_FA1R_FACT5_Msk /*!<Filter Active bit 5 */
  1818. #define CAN_FA1R_FACT6_Pos (6U)
  1819. #define CAN_FA1R_FACT6_Msk (0x1U << CAN_FA1R_FACT6_Pos) /*!< 0x00000040 */
  1820. #define CAN_FA1R_FACT6 CAN_FA1R_FACT6_Msk /*!<Filter Active bit 6 */
  1821. #define CAN_FA1R_FACT7_Pos (7U)
  1822. #define CAN_FA1R_FACT7_Msk (0x1U << CAN_FA1R_FACT7_Pos) /*!< 0x00000080 */
  1823. #define CAN_FA1R_FACT7 CAN_FA1R_FACT7_Msk /*!<Filter Active bit 7 */
  1824. #define CAN_FA1R_FACT8_Pos (8U)
  1825. #define CAN_FA1R_FACT8_Msk (0x1U << CAN_FA1R_FACT8_Pos) /*!< 0x00000100 */
  1826. #define CAN_FA1R_FACT8 CAN_FA1R_FACT8_Msk /*!<Filter Active bit 8 */
  1827. #define CAN_FA1R_FACT9_Pos (9U)
  1828. #define CAN_FA1R_FACT9_Msk (0x1U << CAN_FA1R_FACT9_Pos) /*!< 0x00000200 */
  1829. #define CAN_FA1R_FACT9 CAN_FA1R_FACT9_Msk /*!<Filter Active bit 9 */
  1830. #define CAN_FA1R_FACT10_Pos (10U)
  1831. #define CAN_FA1R_FACT10_Msk (0x1U << CAN_FA1R_FACT10_Pos) /*!< 0x00000400 */
  1832. #define CAN_FA1R_FACT10 CAN_FA1R_FACT10_Msk /*!<Filter Active bit 10 */
  1833. #define CAN_FA1R_FACT11_Pos (11U)
  1834. #define CAN_FA1R_FACT11_Msk (0x1U << CAN_FA1R_FACT11_Pos) /*!< 0x00000800 */
  1835. #define CAN_FA1R_FACT11 CAN_FA1R_FACT11_Msk /*!<Filter Active bit 11 */
  1836. #define CAN_FA1R_FACT12_Pos (12U)
  1837. #define CAN_FA1R_FACT12_Msk (0x1U << CAN_FA1R_FACT12_Pos) /*!< 0x00001000 */
  1838. #define CAN_FA1R_FACT12 CAN_FA1R_FACT12_Msk /*!<Filter Active bit 12 */
  1839. #define CAN_FA1R_FACT13_Pos (13U)
  1840. #define CAN_FA1R_FACT13_Msk (0x1U << CAN_FA1R_FACT13_Pos) /*!< 0x00002000 */
  1841. #define CAN_FA1R_FACT13 CAN_FA1R_FACT13_Msk /*!<Filter Active bit 13 */
  1842. #define CAN_FA1R_FACT14_Pos (14U)
  1843. #define CAN_FA1R_FACT14_Msk (0x1U << CAN_FA1R_FACT14_Pos) /*!< 0x00004000 */
  1844. #define CAN_FA1R_FACT14 CAN_FA1R_FACT14_Msk /*!<Filter Active bit 14 */
  1845. #define CAN_FA1R_FACT15_Pos (15U)
  1846. #define CAN_FA1R_FACT15_Msk (0x1U << CAN_FA1R_FACT15_Pos) /*!< 0x00008000 */
  1847. #define CAN_FA1R_FACT15 CAN_FA1R_FACT15_Msk /*!<Filter Active bit 15 */
  1848. #define CAN_FA1R_FACT16_Pos (16U)
  1849. #define CAN_FA1R_FACT16_Msk (0x1U << CAN_FA1R_FACT16_Pos) /*!< 0x00010000 */
  1850. #define CAN_FA1R_FACT16 CAN_FA1R_FACT16_Msk /*!<Filter Active bit 16 */
  1851. #define CAN_FA1R_FACT17_Pos (17U)
  1852. #define CAN_FA1R_FACT17_Msk (0x1U << CAN_FA1R_FACT17_Pos) /*!< 0x00020000 */
  1853. #define CAN_FA1R_FACT17 CAN_FA1R_FACT17_Msk /*!<Filter Active bit 17 */
  1854. #define CAN_FA1R_FACT18_Pos (18U)
  1855. #define CAN_FA1R_FACT18_Msk (0x1U << CAN_FA1R_FACT18_Pos) /*!< 0x00040000 */
  1856. #define CAN_FA1R_FACT18 CAN_FA1R_FACT18_Msk /*!<Filter Active bit 18 */
  1857. #define CAN_FA1R_FACT19_Pos (19U)
  1858. #define CAN_FA1R_FACT19_Msk (0x1U << CAN_FA1R_FACT19_Pos) /*!< 0x00080000 */
  1859. #define CAN_FA1R_FACT19 CAN_FA1R_FACT19_Msk /*!<Filter Active bit 19 */
  1860. #define CAN_FA1R_FACT20_Pos (20U)
  1861. #define CAN_FA1R_FACT20_Msk (0x1U << CAN_FA1R_FACT20_Pos) /*!< 0x00100000 */
  1862. #define CAN_FA1R_FACT20 CAN_FA1R_FACT20_Msk /*!<Filter Active bit 20 */
  1863. #define CAN_FA1R_FACT21_Pos (21U)
  1864. #define CAN_FA1R_FACT21_Msk (0x1U << CAN_FA1R_FACT21_Pos) /*!< 0x00200000 */
  1865. #define CAN_FA1R_FACT21 CAN_FA1R_FACT21_Msk /*!<Filter Active bit 21 */
  1866. #define CAN_FA1R_FACT22_Pos (22U)
  1867. #define CAN_FA1R_FACT22_Msk (0x1U << CAN_FA1R_FACT22_Pos) /*!< 0x00400000 */
  1868. #define CAN_FA1R_FACT22 CAN_FA1R_FACT22_Msk /*!<Filter Active bit 22 */
  1869. #define CAN_FA1R_FACT23_Pos (23U)
  1870. #define CAN_FA1R_FACT23_Msk (0x1U << CAN_FA1R_FACT23_Pos) /*!< 0x00800000 */
  1871. #define CAN_FA1R_FACT23 CAN_FA1R_FACT23_Msk /*!<Filter Active bit 23 */
  1872. #define CAN_FA1R_FACT24_Pos (24U)
  1873. #define CAN_FA1R_FACT24_Msk (0x1U << CAN_FA1R_FACT24_Pos) /*!< 0x01000000 */
  1874. #define CAN_FA1R_FACT24 CAN_FA1R_FACT24_Msk /*!<Filter Active bit 24 */
  1875. #define CAN_FA1R_FACT25_Pos (25U)
  1876. #define CAN_FA1R_FACT25_Msk (0x1U << CAN_FA1R_FACT25_Pos) /*!< 0x02000000 */
  1877. #define CAN_FA1R_FACT25 CAN_FA1R_FACT25_Msk /*!<Filter Active bit 25 */
  1878. #define CAN_FA1R_FACT26_Pos (26U)
  1879. #define CAN_FA1R_FACT26_Msk (0x1U << CAN_FA1R_FACT26_Pos) /*!< 0x04000000 */
  1880. #define CAN_FA1R_FACT26 CAN_FA1R_FACT26_Msk /*!<Filter Active bit 26 */
  1881. #define CAN_FA1R_FACT27_Pos (27U)
  1882. #define CAN_FA1R_FACT27_Msk (0x1U << CAN_FA1R_FACT27_Pos) /*!< 0x08000000 */
  1883. #define CAN_FA1R_FACT27 CAN_FA1R_FACT27_Msk /*!<Filter Active bit 27 */
  1884. /******************* Bit definition for CAN_F0R1 register *******************/
  1885. #define CAN_F0R1_FB0_Pos (0U)
  1886. #define CAN_F0R1_FB0_Msk (0x1U << CAN_F0R1_FB0_Pos) /*!< 0x00000001 */
  1887. #define CAN_F0R1_FB0 CAN_F0R1_FB0_Msk /*!<Filter bit 0 */
  1888. #define CAN_F0R1_FB1_Pos (1U)
  1889. #define CAN_F0R1_FB1_Msk (0x1U << CAN_F0R1_FB1_Pos) /*!< 0x00000002 */
  1890. #define CAN_F0R1_FB1 CAN_F0R1_FB1_Msk /*!<Filter bit 1 */
  1891. #define CAN_F0R1_FB2_Pos (2U)
  1892. #define CAN_F0R1_FB2_Msk (0x1U << CAN_F0R1_FB2_Pos) /*!< 0x00000004 */
  1893. #define CAN_F0R1_FB2 CAN_F0R1_FB2_Msk /*!<Filter bit 2 */
  1894. #define CAN_F0R1_FB3_Pos (3U)
  1895. #define CAN_F0R1_FB3_Msk (0x1U << CAN_F0R1_FB3_Pos) /*!< 0x00000008 */
  1896. #define CAN_F0R1_FB3 CAN_F0R1_FB3_Msk /*!<Filter bit 3 */
  1897. #define CAN_F0R1_FB4_Pos (4U)
  1898. #define CAN_F0R1_FB4_Msk (0x1U << CAN_F0R1_FB4_Pos) /*!< 0x00000010 */
  1899. #define CAN_F0R1_FB4 CAN_F0R1_FB4_Msk /*!<Filter bit 4 */
  1900. #define CAN_F0R1_FB5_Pos (5U)
  1901. #define CAN_F0R1_FB5_Msk (0x1U << CAN_F0R1_FB5_Pos) /*!< 0x00000020 */
  1902. #define CAN_F0R1_FB5 CAN_F0R1_FB5_Msk /*!<Filter bit 5 */
  1903. #define CAN_F0R1_FB6_Pos (6U)
  1904. #define CAN_F0R1_FB6_Msk (0x1U << CAN_F0R1_FB6_Pos) /*!< 0x00000040 */
  1905. #define CAN_F0R1_FB6 CAN_F0R1_FB6_Msk /*!<Filter bit 6 */
  1906. #define CAN_F0R1_FB7_Pos (7U)
  1907. #define CAN_F0R1_FB7_Msk (0x1U << CAN_F0R1_FB7_Pos) /*!< 0x00000080 */
  1908. #define CAN_F0R1_FB7 CAN_F0R1_FB7_Msk /*!<Filter bit 7 */
  1909. #define CAN_F0R1_FB8_Pos (8U)
  1910. #define CAN_F0R1_FB8_Msk (0x1U << CAN_F0R1_FB8_Pos) /*!< 0x00000100 */
  1911. #define CAN_F0R1_FB8 CAN_F0R1_FB8_Msk /*!<Filter bit 8 */
  1912. #define CAN_F0R1_FB9_Pos (9U)
  1913. #define CAN_F0R1_FB9_Msk (0x1U << CAN_F0R1_FB9_Pos) /*!< 0x00000200 */
  1914. #define CAN_F0R1_FB9 CAN_F0R1_FB9_Msk /*!<Filter bit 9 */
  1915. #define CAN_F0R1_FB10_Pos (10U)
  1916. #define CAN_F0R1_FB10_Msk (0x1U << CAN_F0R1_FB10_Pos) /*!< 0x00000400 */
  1917. #define CAN_F0R1_FB10 CAN_F0R1_FB10_Msk /*!<Filter bit 10 */
  1918. #define CAN_F0R1_FB11_Pos (11U)
  1919. #define CAN_F0R1_FB11_Msk (0x1U << CAN_F0R1_FB11_Pos) /*!< 0x00000800 */
  1920. #define CAN_F0R1_FB11 CAN_F0R1_FB11_Msk /*!<Filter bit 11 */
  1921. #define CAN_F0R1_FB12_Pos (12U)
  1922. #define CAN_F0R1_FB12_Msk (0x1U << CAN_F0R1_FB12_Pos) /*!< 0x00001000 */
  1923. #define CAN_F0R1_FB12 CAN_F0R1_FB12_Msk /*!<Filter bit 12 */
  1924. #define CAN_F0R1_FB13_Pos (13U)
  1925. #define CAN_F0R1_FB13_Msk (0x1U << CAN_F0R1_FB13_Pos) /*!< 0x00002000 */
  1926. #define CAN_F0R1_FB13 CAN_F0R1_FB13_Msk /*!<Filter bit 13 */
  1927. #define CAN_F0R1_FB14_Pos (14U)
  1928. #define CAN_F0R1_FB14_Msk (0x1U << CAN_F0R1_FB14_Pos) /*!< 0x00004000 */
  1929. #define CAN_F0R1_FB14 CAN_F0R1_FB14_Msk /*!<Filter bit 14 */
  1930. #define CAN_F0R1_FB15_Pos (15U)
  1931. #define CAN_F0R1_FB15_Msk (0x1U << CAN_F0R1_FB15_Pos) /*!< 0x00008000 */
  1932. #define CAN_F0R1_FB15 CAN_F0R1_FB15_Msk /*!<Filter bit 15 */
  1933. #define CAN_F0R1_FB16_Pos (16U)
  1934. #define CAN_F0R1_FB16_Msk (0x1U << CAN_F0R1_FB16_Pos) /*!< 0x00010000 */
  1935. #define CAN_F0R1_FB16 CAN_F0R1_FB16_Msk /*!<Filter bit 16 */
  1936. #define CAN_F0R1_FB17_Pos (17U)
  1937. #define CAN_F0R1_FB17_Msk (0x1U << CAN_F0R1_FB17_Pos) /*!< 0x00020000 */
  1938. #define CAN_F0R1_FB17 CAN_F0R1_FB17_Msk /*!<Filter bit 17 */
  1939. #define CAN_F0R1_FB18_Pos (18U)
  1940. #define CAN_F0R1_FB18_Msk (0x1U << CAN_F0R1_FB18_Pos) /*!< 0x00040000 */
  1941. #define CAN_F0R1_FB18 CAN_F0R1_FB18_Msk /*!<Filter bit 18 */
  1942. #define CAN_F0R1_FB19_Pos (19U)
  1943. #define CAN_F0R1_FB19_Msk (0x1U << CAN_F0R1_FB19_Pos) /*!< 0x00080000 */
  1944. #define CAN_F0R1_FB19 CAN_F0R1_FB19_Msk /*!<Filter bit 19 */
  1945. #define CAN_F0R1_FB20_Pos (20U)
  1946. #define CAN_F0R1_FB20_Msk (0x1U << CAN_F0R1_FB20_Pos) /*!< 0x00100000 */
  1947. #define CAN_F0R1_FB20 CAN_F0R1_FB20_Msk /*!<Filter bit 20 */
  1948. #define CAN_F0R1_FB21_Pos (21U)
  1949. #define CAN_F0R1_FB21_Msk (0x1U << CAN_F0R1_FB21_Pos) /*!< 0x00200000 */
  1950. #define CAN_F0R1_FB21 CAN_F0R1_FB21_Msk /*!<Filter bit 21 */
  1951. #define CAN_F0R1_FB22_Pos (22U)
  1952. #define CAN_F0R1_FB22_Msk (0x1U << CAN_F0R1_FB22_Pos) /*!< 0x00400000 */
  1953. #define CAN_F0R1_FB22 CAN_F0R1_FB22_Msk /*!<Filter bit 22 */
  1954. #define CAN_F0R1_FB23_Pos (23U)
  1955. #define CAN_F0R1_FB23_Msk (0x1U << CAN_F0R1_FB23_Pos) /*!< 0x00800000 */
  1956. #define CAN_F0R1_FB23 CAN_F0R1_FB23_Msk /*!<Filter bit 23 */
  1957. #define CAN_F0R1_FB24_Pos (24U)
  1958. #define CAN_F0R1_FB24_Msk (0x1U << CAN_F0R1_FB24_Pos) /*!< 0x01000000 */
  1959. #define CAN_F0R1_FB24 CAN_F0R1_FB24_Msk /*!<Filter bit 24 */
  1960. #define CAN_F0R1_FB25_Pos (25U)
  1961. #define CAN_F0R1_FB25_Msk (0x1U << CAN_F0R1_FB25_Pos) /*!< 0x02000000 */
  1962. #define CAN_F0R1_FB25 CAN_F0R1_FB25_Msk /*!<Filter bit 25 */
  1963. #define CAN_F0R1_FB26_Pos (26U)
  1964. #define CAN_F0R1_FB26_Msk (0x1U << CAN_F0R1_FB26_Pos) /*!< 0x04000000 */
  1965. #define CAN_F0R1_FB26 CAN_F0R1_FB26_Msk /*!<Filter bit 26 */
  1966. #define CAN_F0R1_FB27_Pos (27U)
  1967. #define CAN_F0R1_FB27_Msk (0x1U << CAN_F0R1_FB27_Pos) /*!< 0x08000000 */
  1968. #define CAN_F0R1_FB27 CAN_F0R1_FB27_Msk /*!<Filter bit 27 */
  1969. #define CAN_F0R1_FB28_Pos (28U)
  1970. #define CAN_F0R1_FB28_Msk (0x1U << CAN_F0R1_FB28_Pos) /*!< 0x10000000 */
  1971. #define CAN_F0R1_FB28 CAN_F0R1_FB28_Msk /*!<Filter bit 28 */
  1972. #define CAN_F0R1_FB29_Pos (29U)
  1973. #define CAN_F0R1_FB29_Msk (0x1U << CAN_F0R1_FB29_Pos) /*!< 0x20000000 */
  1974. #define CAN_F0R1_FB29 CAN_F0R1_FB29_Msk /*!<Filter bit 29 */
  1975. #define CAN_F0R1_FB30_Pos (30U)
  1976. #define CAN_F0R1_FB30_Msk (0x1U << CAN_F0R1_FB30_Pos) /*!< 0x40000000 */
  1977. #define CAN_F0R1_FB30 CAN_F0R1_FB30_Msk /*!<Filter bit 30 */
  1978. #define CAN_F0R1_FB31_Pos (31U)
  1979. #define CAN_F0R1_FB31_Msk (0x1U << CAN_F0R1_FB31_Pos) /*!< 0x80000000 */
  1980. #define CAN_F0R1_FB31 CAN_F0R1_FB31_Msk /*!<Filter bit 31 */
  1981. /******************* Bit definition for CAN_F1R1 register *******************/
  1982. #define CAN_F1R1_FB0_Pos (0U)
  1983. #define CAN_F1R1_FB0_Msk (0x1U << CAN_F1R1_FB0_Pos) /*!< 0x00000001 */
  1984. #define CAN_F1R1_FB0 CAN_F1R1_FB0_Msk /*!<Filter bit 0 */
  1985. #define CAN_F1R1_FB1_Pos (1U)
  1986. #define CAN_F1R1_FB1_Msk (0x1U << CAN_F1R1_FB1_Pos) /*!< 0x00000002 */
  1987. #define CAN_F1R1_FB1 CAN_F1R1_FB1_Msk /*!<Filter bit 1 */
  1988. #define CAN_F1R1_FB2_Pos (2U)
  1989. #define CAN_F1R1_FB2_Msk (0x1U << CAN_F1R1_FB2_Pos) /*!< 0x00000004 */
  1990. #define CAN_F1R1_FB2 CAN_F1R1_FB2_Msk /*!<Filter bit 2 */
  1991. #define CAN_F1R1_FB3_Pos (3U)
  1992. #define CAN_F1R1_FB3_Msk (0x1U << CAN_F1R1_FB3_Pos) /*!< 0x00000008 */
  1993. #define CAN_F1R1_FB3 CAN_F1R1_FB3_Msk /*!<Filter bit 3 */
  1994. #define CAN_F1R1_FB4_Pos (4U)
  1995. #define CAN_F1R1_FB4_Msk (0x1U << CAN_F1R1_FB4_Pos) /*!< 0x00000010 */
  1996. #define CAN_F1R1_FB4 CAN_F1R1_FB4_Msk /*!<Filter bit 4 */
  1997. #define CAN_F1R1_FB5_Pos (5U)
  1998. #define CAN_F1R1_FB5_Msk (0x1U << CAN_F1R1_FB5_Pos) /*!< 0x00000020 */
  1999. #define CAN_F1R1_FB5 CAN_F1R1_FB5_Msk /*!<Filter bit 5 */
  2000. #define CAN_F1R1_FB6_Pos (6U)
  2001. #define CAN_F1R1_FB6_Msk (0x1U << CAN_F1R1_FB6_Pos) /*!< 0x00000040 */
  2002. #define CAN_F1R1_FB6 CAN_F1R1_FB6_Msk /*!<Filter bit 6 */
  2003. #define CAN_F1R1_FB7_Pos (7U)
  2004. #define CAN_F1R1_FB7_Msk (0x1U << CAN_F1R1_FB7_Pos) /*!< 0x00000080 */
  2005. #define CAN_F1R1_FB7 CAN_F1R1_FB7_Msk /*!<Filter bit 7 */
  2006. #define CAN_F1R1_FB8_Pos (8U)
  2007. #define CAN_F1R1_FB8_Msk (0x1U << CAN_F1R1_FB8_Pos) /*!< 0x00000100 */
  2008. #define CAN_F1R1_FB8 CAN_F1R1_FB8_Msk /*!<Filter bit 8 */
  2009. #define CAN_F1R1_FB9_Pos (9U)
  2010. #define CAN_F1R1_FB9_Msk (0x1U << CAN_F1R1_FB9_Pos) /*!< 0x00000200 */
  2011. #define CAN_F1R1_FB9 CAN_F1R1_FB9_Msk /*!<Filter bit 9 */
  2012. #define CAN_F1R1_FB10_Pos (10U)
  2013. #define CAN_F1R1_FB10_Msk (0x1U << CAN_F1R1_FB10_Pos) /*!< 0x00000400 */
  2014. #define CAN_F1R1_FB10 CAN_F1R1_FB10_Msk /*!<Filter bit 10 */
  2015. #define CAN_F1R1_FB11_Pos (11U)
  2016. #define CAN_F1R1_FB11_Msk (0x1U << CAN_F1R1_FB11_Pos) /*!< 0x00000800 */
  2017. #define CAN_F1R1_FB11 CAN_F1R1_FB11_Msk /*!<Filter bit 11 */
  2018. #define CAN_F1R1_FB12_Pos (12U)
  2019. #define CAN_F1R1_FB12_Msk (0x1U << CAN_F1R1_FB12_Pos) /*!< 0x00001000 */
  2020. #define CAN_F1R1_FB12 CAN_F1R1_FB12_Msk /*!<Filter bit 12 */
  2021. #define CAN_F1R1_FB13_Pos (13U)
  2022. #define CAN_F1R1_FB13_Msk (0x1U << CAN_F1R1_FB13_Pos) /*!< 0x00002000 */
  2023. #define CAN_F1R1_FB13 CAN_F1R1_FB13_Msk /*!<Filter bit 13 */
  2024. #define CAN_F1R1_FB14_Pos (14U)
  2025. #define CAN_F1R1_FB14_Msk (0x1U << CAN_F1R1_FB14_Pos) /*!< 0x00004000 */
  2026. #define CAN_F1R1_FB14 CAN_F1R1_FB14_Msk /*!<Filter bit 14 */
  2027. #define CAN_F1R1_FB15_Pos (15U)
  2028. #define CAN_F1R1_FB15_Msk (0x1U << CAN_F1R1_FB15_Pos) /*!< 0x00008000 */
  2029. #define CAN_F1R1_FB15 CAN_F1R1_FB15_Msk /*!<Filter bit 15 */
  2030. #define CAN_F1R1_FB16_Pos (16U)
  2031. #define CAN_F1R1_FB16_Msk (0x1U << CAN_F1R1_FB16_Pos) /*!< 0x00010000 */
  2032. #define CAN_F1R1_FB16 CAN_F1R1_FB16_Msk /*!<Filter bit 16 */
  2033. #define CAN_F1R1_FB17_Pos (17U)
  2034. #define CAN_F1R1_FB17_Msk (0x1U << CAN_F1R1_FB17_Pos) /*!< 0x00020000 */
  2035. #define CAN_F1R1_FB17 CAN_F1R1_FB17_Msk /*!<Filter bit 17 */
  2036. #define CAN_F1R1_FB18_Pos (18U)
  2037. #define CAN_F1R1_FB18_Msk (0x1U << CAN_F1R1_FB18_Pos) /*!< 0x00040000 */
  2038. #define CAN_F1R1_FB18 CAN_F1R1_FB18_Msk /*!<Filter bit 18 */
  2039. #define CAN_F1R1_FB19_Pos (19U)
  2040. #define CAN_F1R1_FB19_Msk (0x1U << CAN_F1R1_FB19_Pos) /*!< 0x00080000 */
  2041. #define CAN_F1R1_FB19 CAN_F1R1_FB19_Msk /*!<Filter bit 19 */
  2042. #define CAN_F1R1_FB20_Pos (20U)
  2043. #define CAN_F1R1_FB20_Msk (0x1U << CAN_F1R1_FB20_Pos) /*!< 0x00100000 */
  2044. #define CAN_F1R1_FB20 CAN_F1R1_FB20_Msk /*!<Filter bit 20 */
  2045. #define CAN_F1R1_FB21_Pos (21U)
  2046. #define CAN_F1R1_FB21_Msk (0x1U << CAN_F1R1_FB21_Pos) /*!< 0x00200000 */
  2047. #define CAN_F1R1_FB21 CAN_F1R1_FB21_Msk /*!<Filter bit 21 */
  2048. #define CAN_F1R1_FB22_Pos (22U)
  2049. #define CAN_F1R1_FB22_Msk (0x1U << CAN_F1R1_FB22_Pos) /*!< 0x00400000 */
  2050. #define CAN_F1R1_FB22 CAN_F1R1_FB22_Msk /*!<Filter bit 22 */
  2051. #define CAN_F1R1_FB23_Pos (23U)
  2052. #define CAN_F1R1_FB23_Msk (0x1U << CAN_F1R1_FB23_Pos) /*!< 0x00800000 */
  2053. #define CAN_F1R1_FB23 CAN_F1R1_FB23_Msk /*!<Filter bit 23 */
  2054. #define CAN_F1R1_FB24_Pos (24U)
  2055. #define CAN_F1R1_FB24_Msk (0x1U << CAN_F1R1_FB24_Pos) /*!< 0x01000000 */
  2056. #define CAN_F1R1_FB24 CAN_F1R1_FB24_Msk /*!<Filter bit 24 */
  2057. #define CAN_F1R1_FB25_Pos (25U)
  2058. #define CAN_F1R1_FB25_Msk (0x1U << CAN_F1R1_FB25_Pos) /*!< 0x02000000 */
  2059. #define CAN_F1R1_FB25 CAN_F1R1_FB25_Msk /*!<Filter bit 25 */
  2060. #define CAN_F1R1_FB26_Pos (26U)
  2061. #define CAN_F1R1_FB26_Msk (0x1U << CAN_F1R1_FB26_Pos) /*!< 0x04000000 */
  2062. #define CAN_F1R1_FB26 CAN_F1R1_FB26_Msk /*!<Filter bit 26 */
  2063. #define CAN_F1R1_FB27_Pos (27U)
  2064. #define CAN_F1R1_FB27_Msk (0x1U << CAN_F1R1_FB27_Pos) /*!< 0x08000000 */
  2065. #define CAN_F1R1_FB27 CAN_F1R1_FB27_Msk /*!<Filter bit 27 */
  2066. #define CAN_F1R1_FB28_Pos (28U)
  2067. #define CAN_F1R1_FB28_Msk (0x1U << CAN_F1R1_FB28_Pos) /*!< 0x10000000 */
  2068. #define CAN_F1R1_FB28 CAN_F1R1_FB28_Msk /*!<Filter bit 28 */
  2069. #define CAN_F1R1_FB29_Pos (29U)
  2070. #define CAN_F1R1_FB29_Msk (0x1U << CAN_F1R1_FB29_Pos) /*!< 0x20000000 */
  2071. #define CAN_F1R1_FB29 CAN_F1R1_FB29_Msk /*!<Filter bit 29 */
  2072. #define CAN_F1R1_FB30_Pos (30U)
  2073. #define CAN_F1R1_FB30_Msk (0x1U << CAN_F1R1_FB30_Pos) /*!< 0x40000000 */
  2074. #define CAN_F1R1_FB30 CAN_F1R1_FB30_Msk /*!<Filter bit 30 */
  2075. #define CAN_F1R1_FB31_Pos (31U)
  2076. #define CAN_F1R1_FB31_Msk (0x1U << CAN_F1R1_FB31_Pos) /*!< 0x80000000 */
  2077. #define CAN_F1R1_FB31 CAN_F1R1_FB31_Msk /*!<Filter bit 31 */
  2078. /******************* Bit definition for CAN_F2R1 register *******************/
  2079. #define CAN_F2R1_FB0_Pos (0U)
  2080. #define CAN_F2R1_FB0_Msk (0x1U << CAN_F2R1_FB0_Pos) /*!< 0x00000001 */
  2081. #define CAN_F2R1_FB0 CAN_F2R1_FB0_Msk /*!<Filter bit 0 */
  2082. #define CAN_F2R1_FB1_Pos (1U)
  2083. #define CAN_F2R1_FB1_Msk (0x1U << CAN_F2R1_FB1_Pos) /*!< 0x00000002 */
  2084. #define CAN_F2R1_FB1 CAN_F2R1_FB1_Msk /*!<Filter bit 1 */
  2085. #define CAN_F2R1_FB2_Pos (2U)
  2086. #define CAN_F2R1_FB2_Msk (0x1U << CAN_F2R1_FB2_Pos) /*!< 0x00000004 */
  2087. #define CAN_F2R1_FB2 CAN_F2R1_FB2_Msk /*!<Filter bit 2 */
  2088. #define CAN_F2R1_FB3_Pos (3U)
  2089. #define CAN_F2R1_FB3_Msk (0x1U << CAN_F2R1_FB3_Pos) /*!< 0x00000008 */
  2090. #define CAN_F2R1_FB3 CAN_F2R1_FB3_Msk /*!<Filter bit 3 */
  2091. #define CAN_F2R1_FB4_Pos (4U)
  2092. #define CAN_F2R1_FB4_Msk (0x1U << CAN_F2R1_FB4_Pos) /*!< 0x00000010 */
  2093. #define CAN_F2R1_FB4 CAN_F2R1_FB4_Msk /*!<Filter bit 4 */
  2094. #define CAN_F2R1_FB5_Pos (5U)
  2095. #define CAN_F2R1_FB5_Msk (0x1U << CAN_F2R1_FB5_Pos) /*!< 0x00000020 */
  2096. #define CAN_F2R1_FB5 CAN_F2R1_FB5_Msk /*!<Filter bit 5 */
  2097. #define CAN_F2R1_FB6_Pos (6U)
  2098. #define CAN_F2R1_FB6_Msk (0x1U << CAN_F2R1_FB6_Pos) /*!< 0x00000040 */
  2099. #define CAN_F2R1_FB6 CAN_F2R1_FB6_Msk /*!<Filter bit 6 */
  2100. #define CAN_F2R1_FB7_Pos (7U)
  2101. #define CAN_F2R1_FB7_Msk (0x1U << CAN_F2R1_FB7_Pos) /*!< 0x00000080 */
  2102. #define CAN_F2R1_FB7 CAN_F2R1_FB7_Msk /*!<Filter bit 7 */
  2103. #define CAN_F2R1_FB8_Pos (8U)
  2104. #define CAN_F2R1_FB8_Msk (0x1U << CAN_F2R1_FB8_Pos) /*!< 0x00000100 */
  2105. #define CAN_F2R1_FB8 CAN_F2R1_FB8_Msk /*!<Filter bit 8 */
  2106. #define CAN_F2R1_FB9_Pos (9U)
  2107. #define CAN_F2R1_FB9_Msk (0x1U << CAN_F2R1_FB9_Pos) /*!< 0x00000200 */
  2108. #define CAN_F2R1_FB9 CAN_F2R1_FB9_Msk /*!<Filter bit 9 */
  2109. #define CAN_F2R1_FB10_Pos (10U)
  2110. #define CAN_F2R1_FB10_Msk (0x1U << CAN_F2R1_FB10_Pos) /*!< 0x00000400 */
  2111. #define CAN_F2R1_FB10 CAN_F2R1_FB10_Msk /*!<Filter bit 10 */
  2112. #define CAN_F2R1_FB11_Pos (11U)
  2113. #define CAN_F2R1_FB11_Msk (0x1U << CAN_F2R1_FB11_Pos) /*!< 0x00000800 */
  2114. #define CAN_F2R1_FB11 CAN_F2R1_FB11_Msk /*!<Filter bit 11 */
  2115. #define CAN_F2R1_FB12_Pos (12U)
  2116. #define CAN_F2R1_FB12_Msk (0x1U << CAN_F2R1_FB12_Pos) /*!< 0x00001000 */
  2117. #define CAN_F2R1_FB12 CAN_F2R1_FB12_Msk /*!<Filter bit 12 */
  2118. #define CAN_F2R1_FB13_Pos (13U)
  2119. #define CAN_F2R1_FB13_Msk (0x1U << CAN_F2R1_FB13_Pos) /*!< 0x00002000 */
  2120. #define CAN_F2R1_FB13 CAN_F2R1_FB13_Msk /*!<Filter bit 13 */
  2121. #define CAN_F2R1_FB14_Pos (14U)
  2122. #define CAN_F2R1_FB14_Msk (0x1U << CAN_F2R1_FB14_Pos) /*!< 0x00004000 */
  2123. #define CAN_F2R1_FB14 CAN_F2R1_FB14_Msk /*!<Filter bit 14 */
  2124. #define CAN_F2R1_FB15_Pos (15U)
  2125. #define CAN_F2R1_FB15_Msk (0x1U << CAN_F2R1_FB15_Pos) /*!< 0x00008000 */
  2126. #define CAN_F2R1_FB15 CAN_F2R1_FB15_Msk /*!<Filter bit 15 */
  2127. #define CAN_F2R1_FB16_Pos (16U)
  2128. #define CAN_F2R1_FB16_Msk (0x1U << CAN_F2R1_FB16_Pos) /*!< 0x00010000 */
  2129. #define CAN_F2R1_FB16 CAN_F2R1_FB16_Msk /*!<Filter bit 16 */
  2130. #define CAN_F2R1_FB17_Pos (17U)
  2131. #define CAN_F2R1_FB17_Msk (0x1U << CAN_F2R1_FB17_Pos) /*!< 0x00020000 */
  2132. #define CAN_F2R1_FB17 CAN_F2R1_FB17_Msk /*!<Filter bit 17 */
  2133. #define CAN_F2R1_FB18_Pos (18U)
  2134. #define CAN_F2R1_FB18_Msk (0x1U << CAN_F2R1_FB18_Pos) /*!< 0x00040000 */
  2135. #define CAN_F2R1_FB18 CAN_F2R1_FB18_Msk /*!<Filter bit 18 */
  2136. #define CAN_F2R1_FB19_Pos (19U)
  2137. #define CAN_F2R1_FB19_Msk (0x1U << CAN_F2R1_FB19_Pos) /*!< 0x00080000 */
  2138. #define CAN_F2R1_FB19 CAN_F2R1_FB19_Msk /*!<Filter bit 19 */
  2139. #define CAN_F2R1_FB20_Pos (20U)
  2140. #define CAN_F2R1_FB20_Msk (0x1U << CAN_F2R1_FB20_Pos) /*!< 0x00100000 */
  2141. #define CAN_F2R1_FB20 CAN_F2R1_FB20_Msk /*!<Filter bit 20 */
  2142. #define CAN_F2R1_FB21_Pos (21U)
  2143. #define CAN_F2R1_FB21_Msk (0x1U << CAN_F2R1_FB21_Pos) /*!< 0x00200000 */
  2144. #define CAN_F2R1_FB21 CAN_F2R1_FB21_Msk /*!<Filter bit 21 */
  2145. #define CAN_F2R1_FB22_Pos (22U)
  2146. #define CAN_F2R1_FB22_Msk (0x1U << CAN_F2R1_FB22_Pos) /*!< 0x00400000 */
  2147. #define CAN_F2R1_FB22 CAN_F2R1_FB22_Msk /*!<Filter bit 22 */
  2148. #define CAN_F2R1_FB23_Pos (23U)
  2149. #define CAN_F2R1_FB23_Msk (0x1U << CAN_F2R1_FB23_Pos) /*!< 0x00800000 */
  2150. #define CAN_F2R1_FB23 CAN_F2R1_FB23_Msk /*!<Filter bit 23 */
  2151. #define CAN_F2R1_FB24_Pos (24U)
  2152. #define CAN_F2R1_FB24_Msk (0x1U << CAN_F2R1_FB24_Pos) /*!< 0x01000000 */
  2153. #define CAN_F2R1_FB24 CAN_F2R1_FB24_Msk /*!<Filter bit 24 */
  2154. #define CAN_F2R1_FB25_Pos (25U)
  2155. #define CAN_F2R1_FB25_Msk (0x1U << CAN_F2R1_FB25_Pos) /*!< 0x02000000 */
  2156. #define CAN_F2R1_FB25 CAN_F2R1_FB25_Msk /*!<Filter bit 25 */
  2157. #define CAN_F2R1_FB26_Pos (26U)
  2158. #define CAN_F2R1_FB26_Msk (0x1U << CAN_F2R1_FB26_Pos) /*!< 0x04000000 */
  2159. #define CAN_F2R1_FB26 CAN_F2R1_FB26_Msk /*!<Filter bit 26 */
  2160. #define CAN_F2R1_FB27_Pos (27U)
  2161. #define CAN_F2R1_FB27_Msk (0x1U << CAN_F2R1_FB27_Pos) /*!< 0x08000000 */
  2162. #define CAN_F2R1_FB27 CAN_F2R1_FB27_Msk /*!<Filter bit 27 */
  2163. #define CAN_F2R1_FB28_Pos (28U)
  2164. #define CAN_F2R1_FB28_Msk (0x1U << CAN_F2R1_FB28_Pos) /*!< 0x10000000 */
  2165. #define CAN_F2R1_FB28 CAN_F2R1_FB28_Msk /*!<Filter bit 28 */
  2166. #define CAN_F2R1_FB29_Pos (29U)
  2167. #define CAN_F2R1_FB29_Msk (0x1U << CAN_F2R1_FB29_Pos) /*!< 0x20000000 */
  2168. #define CAN_F2R1_FB29 CAN_F2R1_FB29_Msk /*!<Filter bit 29 */
  2169. #define CAN_F2R1_FB30_Pos (30U)
  2170. #define CAN_F2R1_FB30_Msk (0x1U << CAN_F2R1_FB30_Pos) /*!< 0x40000000 */
  2171. #define CAN_F2R1_FB30 CAN_F2R1_FB30_Msk /*!<Filter bit 30 */
  2172. #define CAN_F2R1_FB31_Pos (31U)
  2173. #define CAN_F2R1_FB31_Msk (0x1U << CAN_F2R1_FB31_Pos) /*!< 0x80000000 */
  2174. #define CAN_F2R1_FB31 CAN_F2R1_FB31_Msk /*!<Filter bit 31 */
  2175. /******************* Bit definition for CAN_F3R1 register *******************/
  2176. #define CAN_F3R1_FB0_Pos (0U)
  2177. #define CAN_F3R1_FB0_Msk (0x1U << CAN_F3R1_FB0_Pos) /*!< 0x00000001 */
  2178. #define CAN_F3R1_FB0 CAN_F3R1_FB0_Msk /*!<Filter bit 0 */
  2179. #define CAN_F3R1_FB1_Pos (1U)
  2180. #define CAN_F3R1_FB1_Msk (0x1U << CAN_F3R1_FB1_Pos) /*!< 0x00000002 */
  2181. #define CAN_F3R1_FB1 CAN_F3R1_FB1_Msk /*!<Filter bit 1 */
  2182. #define CAN_F3R1_FB2_Pos (2U)
  2183. #define CAN_F3R1_FB2_Msk (0x1U << CAN_F3R1_FB2_Pos) /*!< 0x00000004 */
  2184. #define CAN_F3R1_FB2 CAN_F3R1_FB2_Msk /*!<Filter bit 2 */
  2185. #define CAN_F3R1_FB3_Pos (3U)
  2186. #define CAN_F3R1_FB3_Msk (0x1U << CAN_F3R1_FB3_Pos) /*!< 0x00000008 */
  2187. #define CAN_F3R1_FB3 CAN_F3R1_FB3_Msk /*!<Filter bit 3 */
  2188. #define CAN_F3R1_FB4_Pos (4U)
  2189. #define CAN_F3R1_FB4_Msk (0x1U << CAN_F3R1_FB4_Pos) /*!< 0x00000010 */
  2190. #define CAN_F3R1_FB4 CAN_F3R1_FB4_Msk /*!<Filter bit 4 */
  2191. #define CAN_F3R1_FB5_Pos (5U)
  2192. #define CAN_F3R1_FB5_Msk (0x1U << CAN_F3R1_FB5_Pos) /*!< 0x00000020 */
  2193. #define CAN_F3R1_FB5 CAN_F3R1_FB5_Msk /*!<Filter bit 5 */
  2194. #define CAN_F3R1_FB6_Pos (6U)
  2195. #define CAN_F3R1_FB6_Msk (0x1U << CAN_F3R1_FB6_Pos) /*!< 0x00000040 */
  2196. #define CAN_F3R1_FB6 CAN_F3R1_FB6_Msk /*!<Filter bit 6 */
  2197. #define CAN_F3R1_FB7_Pos (7U)
  2198. #define CAN_F3R1_FB7_Msk (0x1U << CAN_F3R1_FB7_Pos) /*!< 0x00000080 */
  2199. #define CAN_F3R1_FB7 CAN_F3R1_FB7_Msk /*!<Filter bit 7 */
  2200. #define CAN_F3R1_FB8_Pos (8U)
  2201. #define CAN_F3R1_FB8_Msk (0x1U << CAN_F3R1_FB8_Pos) /*!< 0x00000100 */
  2202. #define CAN_F3R1_FB8 CAN_F3R1_FB8_Msk /*!<Filter bit 8 */
  2203. #define CAN_F3R1_FB9_Pos (9U)
  2204. #define CAN_F3R1_FB9_Msk (0x1U << CAN_F3R1_FB9_Pos) /*!< 0x00000200 */
  2205. #define CAN_F3R1_FB9 CAN_F3R1_FB9_Msk /*!<Filter bit 9 */
  2206. #define CAN_F3R1_FB10_Pos (10U)
  2207. #define CAN_F3R1_FB10_Msk (0x1U << CAN_F3R1_FB10_Pos) /*!< 0x00000400 */
  2208. #define CAN_F3R1_FB10 CAN_F3R1_FB10_Msk /*!<Filter bit 10 */
  2209. #define CAN_F3R1_FB11_Pos (11U)
  2210. #define CAN_F3R1_FB11_Msk (0x1U << CAN_F3R1_FB11_Pos) /*!< 0x00000800 */
  2211. #define CAN_F3R1_FB11 CAN_F3R1_FB11_Msk /*!<Filter bit 11 */
  2212. #define CAN_F3R1_FB12_Pos (12U)
  2213. #define CAN_F3R1_FB12_Msk (0x1U << CAN_F3R1_FB12_Pos) /*!< 0x00001000 */
  2214. #define CAN_F3R1_FB12 CAN_F3R1_FB12_Msk /*!<Filter bit 12 */
  2215. #define CAN_F3R1_FB13_Pos (13U)
  2216. #define CAN_F3R1_FB13_Msk (0x1U << CAN_F3R1_FB13_Pos) /*!< 0x00002000 */
  2217. #define CAN_F3R1_FB13 CAN_F3R1_FB13_Msk /*!<Filter bit 13 */
  2218. #define CAN_F3R1_FB14_Pos (14U)
  2219. #define CAN_F3R1_FB14_Msk (0x1U << CAN_F3R1_FB14_Pos) /*!< 0x00004000 */
  2220. #define CAN_F3R1_FB14 CAN_F3R1_FB14_Msk /*!<Filter bit 14 */
  2221. #define CAN_F3R1_FB15_Pos (15U)
  2222. #define CAN_F3R1_FB15_Msk (0x1U << CAN_F3R1_FB15_Pos) /*!< 0x00008000 */
  2223. #define CAN_F3R1_FB15 CAN_F3R1_FB15_Msk /*!<Filter bit 15 */
  2224. #define CAN_F3R1_FB16_Pos (16U)
  2225. #define CAN_F3R1_FB16_Msk (0x1U << CAN_F3R1_FB16_Pos) /*!< 0x00010000 */
  2226. #define CAN_F3R1_FB16 CAN_F3R1_FB16_Msk /*!<Filter bit 16 */
  2227. #define CAN_F3R1_FB17_Pos (17U)
  2228. #define CAN_F3R1_FB17_Msk (0x1U << CAN_F3R1_FB17_Pos) /*!< 0x00020000 */
  2229. #define CAN_F3R1_FB17 CAN_F3R1_FB17_Msk /*!<Filter bit 17 */
  2230. #define CAN_F3R1_FB18_Pos (18U)
  2231. #define CAN_F3R1_FB18_Msk (0x1U << CAN_F3R1_FB18_Pos) /*!< 0x00040000 */
  2232. #define CAN_F3R1_FB18 CAN_F3R1_FB18_Msk /*!<Filter bit 18 */
  2233. #define CAN_F3R1_FB19_Pos (19U)
  2234. #define CAN_F3R1_FB19_Msk (0x1U << CAN_F3R1_FB19_Pos) /*!< 0x00080000 */
  2235. #define CAN_F3R1_FB19 CAN_F3R1_FB19_Msk /*!<Filter bit 19 */
  2236. #define CAN_F3R1_FB20_Pos (20U)
  2237. #define CAN_F3R1_FB20_Msk (0x1U << CAN_F3R1_FB20_Pos) /*!< 0x00100000 */
  2238. #define CAN_F3R1_FB20 CAN_F3R1_FB20_Msk /*!<Filter bit 20 */
  2239. #define CAN_F3R1_FB21_Pos (21U)
  2240. #define CAN_F3R1_FB21_Msk (0x1U << CAN_F3R1_FB21_Pos) /*!< 0x00200000 */
  2241. #define CAN_F3R1_FB21 CAN_F3R1_FB21_Msk /*!<Filter bit 21 */
  2242. #define CAN_F3R1_FB22_Pos (22U)
  2243. #define CAN_F3R1_FB22_Msk (0x1U << CAN_F3R1_FB22_Pos) /*!< 0x00400000 */
  2244. #define CAN_F3R1_FB22 CAN_F3R1_FB22_Msk /*!<Filter bit 22 */
  2245. #define CAN_F3R1_FB23_Pos (23U)
  2246. #define CAN_F3R1_FB23_Msk (0x1U << CAN_F3R1_FB23_Pos) /*!< 0x00800000 */
  2247. #define CAN_F3R1_FB23 CAN_F3R1_FB23_Msk /*!<Filter bit 23 */
  2248. #define CAN_F3R1_FB24_Pos (24U)
  2249. #define CAN_F3R1_FB24_Msk (0x1U << CAN_F3R1_FB24_Pos) /*!< 0x01000000 */
  2250. #define CAN_F3R1_FB24 CAN_F3R1_FB24_Msk /*!<Filter bit 24 */
  2251. #define CAN_F3R1_FB25_Pos (25U)
  2252. #define CAN_F3R1_FB25_Msk (0x1U << CAN_F3R1_FB25_Pos) /*!< 0x02000000 */
  2253. #define CAN_F3R1_FB25 CAN_F3R1_FB25_Msk /*!<Filter bit 25 */
  2254. #define CAN_F3R1_FB26_Pos (26U)
  2255. #define CAN_F3R1_FB26_Msk (0x1U << CAN_F3R1_FB26_Pos) /*!< 0x04000000 */
  2256. #define CAN_F3R1_FB26 CAN_F3R1_FB26_Msk /*!<Filter bit 26 */
  2257. #define CAN_F3R1_FB27_Pos (27U)
  2258. #define CAN_F3R1_FB27_Msk (0x1U << CAN_F3R1_FB27_Pos) /*!< 0x08000000 */
  2259. #define CAN_F3R1_FB27 CAN_F3R1_FB27_Msk /*!<Filter bit 27 */
  2260. #define CAN_F3R1_FB28_Pos (28U)
  2261. #define CAN_F3R1_FB28_Msk (0x1U << CAN_F3R1_FB28_Pos) /*!< 0x10000000 */
  2262. #define CAN_F3R1_FB28 CAN_F3R1_FB28_Msk /*!<Filter bit 28 */
  2263. #define CAN_F3R1_FB29_Pos (29U)
  2264. #define CAN_F3R1_FB29_Msk (0x1U << CAN_F3R1_FB29_Pos) /*!< 0x20000000 */
  2265. #define CAN_F3R1_FB29 CAN_F3R1_FB29_Msk /*!<Filter bit 29 */
  2266. #define CAN_F3R1_FB30_Pos (30U)
  2267. #define CAN_F3R1_FB30_Msk (0x1U << CAN_F3R1_FB30_Pos) /*!< 0x40000000 */
  2268. #define CAN_F3R1_FB30 CAN_F3R1_FB30_Msk /*!<Filter bit 30 */
  2269. #define CAN_F3R1_FB31_Pos (31U)
  2270. #define CAN_F3R1_FB31_Msk (0x1U << CAN_F3R1_FB31_Pos) /*!< 0x80000000 */
  2271. #define CAN_F3R1_FB31 CAN_F3R1_FB31_Msk /*!<Filter bit 31 */
  2272. /******************* Bit definition for CAN_F4R1 register *******************/
  2273. #define CAN_F4R1_FB0_Pos (0U)
  2274. #define CAN_F4R1_FB0_Msk (0x1U << CAN_F4R1_FB0_Pos) /*!< 0x00000001 */
  2275. #define CAN_F4R1_FB0 CAN_F4R1_FB0_Msk /*!<Filter bit 0 */
  2276. #define CAN_F4R1_FB1_Pos (1U)
  2277. #define CAN_F4R1_FB1_Msk (0x1U << CAN_F4R1_FB1_Pos) /*!< 0x00000002 */
  2278. #define CAN_F4R1_FB1 CAN_F4R1_FB1_Msk /*!<Filter bit 1 */
  2279. #define CAN_F4R1_FB2_Pos (2U)
  2280. #define CAN_F4R1_FB2_Msk (0x1U << CAN_F4R1_FB2_Pos) /*!< 0x00000004 */
  2281. #define CAN_F4R1_FB2 CAN_F4R1_FB2_Msk /*!<Filter bit 2 */
  2282. #define CAN_F4R1_FB3_Pos (3U)
  2283. #define CAN_F4R1_FB3_Msk (0x1U << CAN_F4R1_FB3_Pos) /*!< 0x00000008 */
  2284. #define CAN_F4R1_FB3 CAN_F4R1_FB3_Msk /*!<Filter bit 3 */
  2285. #define CAN_F4R1_FB4_Pos (4U)
  2286. #define CAN_F4R1_FB4_Msk (0x1U << CAN_F4R1_FB4_Pos) /*!< 0x00000010 */
  2287. #define CAN_F4R1_FB4 CAN_F4R1_FB4_Msk /*!<Filter bit 4 */
  2288. #define CAN_F4R1_FB5_Pos (5U)
  2289. #define CAN_F4R1_FB5_Msk (0x1U << CAN_F4R1_FB5_Pos) /*!< 0x00000020 */
  2290. #define CAN_F4R1_FB5 CAN_F4R1_FB5_Msk /*!<Filter bit 5 */
  2291. #define CAN_F4R1_FB6_Pos (6U)
  2292. #define CAN_F4R1_FB6_Msk (0x1U << CAN_F4R1_FB6_Pos) /*!< 0x00000040 */
  2293. #define CAN_F4R1_FB6 CAN_F4R1_FB6_Msk /*!<Filter bit 6 */
  2294. #define CAN_F4R1_FB7_Pos (7U)
  2295. #define CAN_F4R1_FB7_Msk (0x1U << CAN_F4R1_FB7_Pos) /*!< 0x00000080 */
  2296. #define CAN_F4R1_FB7 CAN_F4R1_FB7_Msk /*!<Filter bit 7 */
  2297. #define CAN_F4R1_FB8_Pos (8U)
  2298. #define CAN_F4R1_FB8_Msk (0x1U << CAN_F4R1_FB8_Pos) /*!< 0x00000100 */
  2299. #define CAN_F4R1_FB8 CAN_F4R1_FB8_Msk /*!<Filter bit 8 */
  2300. #define CAN_F4R1_FB9_Pos (9U)
  2301. #define CAN_F4R1_FB9_Msk (0x1U << CAN_F4R1_FB9_Pos) /*!< 0x00000200 */
  2302. #define CAN_F4R1_FB9 CAN_F4R1_FB9_Msk /*!<Filter bit 9 */
  2303. #define CAN_F4R1_FB10_Pos (10U)
  2304. #define CAN_F4R1_FB10_Msk (0x1U << CAN_F4R1_FB10_Pos) /*!< 0x00000400 */
  2305. #define CAN_F4R1_FB10 CAN_F4R1_FB10_Msk /*!<Filter bit 10 */
  2306. #define CAN_F4R1_FB11_Pos (11U)
  2307. #define CAN_F4R1_FB11_Msk (0x1U << CAN_F4R1_FB11_Pos) /*!< 0x00000800 */
  2308. #define CAN_F4R1_FB11 CAN_F4R1_FB11_Msk /*!<Filter bit 11 */
  2309. #define CAN_F4R1_FB12_Pos (12U)
  2310. #define CAN_F4R1_FB12_Msk (0x1U << CAN_F4R1_FB12_Pos) /*!< 0x00001000 */
  2311. #define CAN_F4R1_FB12 CAN_F4R1_FB12_Msk /*!<Filter bit 12 */
  2312. #define CAN_F4R1_FB13_Pos (13U)
  2313. #define CAN_F4R1_FB13_Msk (0x1U << CAN_F4R1_FB13_Pos) /*!< 0x00002000 */
  2314. #define CAN_F4R1_FB13 CAN_F4R1_FB13_Msk /*!<Filter bit 13 */
  2315. #define CAN_F4R1_FB14_Pos (14U)
  2316. #define CAN_F4R1_FB14_Msk (0x1U << CAN_F4R1_FB14_Pos) /*!< 0x00004000 */
  2317. #define CAN_F4R1_FB14 CAN_F4R1_FB14_Msk /*!<Filter bit 14 */
  2318. #define CAN_F4R1_FB15_Pos (15U)
  2319. #define CAN_F4R1_FB15_Msk (0x1U << CAN_F4R1_FB15_Pos) /*!< 0x00008000 */
  2320. #define CAN_F4R1_FB15 CAN_F4R1_FB15_Msk /*!<Filter bit 15 */
  2321. #define CAN_F4R1_FB16_Pos (16U)
  2322. #define CAN_F4R1_FB16_Msk (0x1U << CAN_F4R1_FB16_Pos) /*!< 0x00010000 */
  2323. #define CAN_F4R1_FB16 CAN_F4R1_FB16_Msk /*!<Filter bit 16 */
  2324. #define CAN_F4R1_FB17_Pos (17U)
  2325. #define CAN_F4R1_FB17_Msk (0x1U << CAN_F4R1_FB17_Pos) /*!< 0x00020000 */
  2326. #define CAN_F4R1_FB17 CAN_F4R1_FB17_Msk /*!<Filter bit 17 */
  2327. #define CAN_F4R1_FB18_Pos (18U)
  2328. #define CAN_F4R1_FB18_Msk (0x1U << CAN_F4R1_FB18_Pos) /*!< 0x00040000 */
  2329. #define CAN_F4R1_FB18 CAN_F4R1_FB18_Msk /*!<Filter bit 18 */
  2330. #define CAN_F4R1_FB19_Pos (19U)
  2331. #define CAN_F4R1_FB19_Msk (0x1U << CAN_F4R1_FB19_Pos) /*!< 0x00080000 */
  2332. #define CAN_F4R1_FB19 CAN_F4R1_FB19_Msk /*!<Filter bit 19 */
  2333. #define CAN_F4R1_FB20_Pos (20U)
  2334. #define CAN_F4R1_FB20_Msk (0x1U << CAN_F4R1_FB20_Pos) /*!< 0x00100000 */
  2335. #define CAN_F4R1_FB20 CAN_F4R1_FB20_Msk /*!<Filter bit 20 */
  2336. #define CAN_F4R1_FB21_Pos (21U)
  2337. #define CAN_F4R1_FB21_Msk (0x1U << CAN_F4R1_FB21_Pos) /*!< 0x00200000 */
  2338. #define CAN_F4R1_FB21 CAN_F4R1_FB21_Msk /*!<Filter bit 21 */
  2339. #define CAN_F4R1_FB22_Pos (22U)
  2340. #define CAN_F4R1_FB22_Msk (0x1U << CAN_F4R1_FB22_Pos) /*!< 0x00400000 */
  2341. #define CAN_F4R1_FB22 CAN_F4R1_FB22_Msk /*!<Filter bit 22 */
  2342. #define CAN_F4R1_FB23_Pos (23U)
  2343. #define CAN_F4R1_FB23_Msk (0x1U << CAN_F4R1_FB23_Pos) /*!< 0x00800000 */
  2344. #define CAN_F4R1_FB23 CAN_F4R1_FB23_Msk /*!<Filter bit 23 */
  2345. #define CAN_F4R1_FB24_Pos (24U)
  2346. #define CAN_F4R1_FB24_Msk (0x1U << CAN_F4R1_FB24_Pos) /*!< 0x01000000 */
  2347. #define CAN_F4R1_FB24 CAN_F4R1_FB24_Msk /*!<Filter bit 24 */
  2348. #define CAN_F4R1_FB25_Pos (25U)
  2349. #define CAN_F4R1_FB25_Msk (0x1U << CAN_F4R1_FB25_Pos) /*!< 0x02000000 */
  2350. #define CAN_F4R1_FB25 CAN_F4R1_FB25_Msk /*!<Filter bit 25 */
  2351. #define CAN_F4R1_FB26_Pos (26U)
  2352. #define CAN_F4R1_FB26_Msk (0x1U << CAN_F4R1_FB26_Pos) /*!< 0x04000000 */
  2353. #define CAN_F4R1_FB26 CAN_F4R1_FB26_Msk /*!<Filter bit 26 */
  2354. #define CAN_F4R1_FB27_Pos (27U)
  2355. #define CAN_F4R1_FB27_Msk (0x1U << CAN_F4R1_FB27_Pos) /*!< 0x08000000 */
  2356. #define CAN_F4R1_FB27 CAN_F4R1_FB27_Msk /*!<Filter bit 27 */
  2357. #define CAN_F4R1_FB28_Pos (28U)
  2358. #define CAN_F4R1_FB28_Msk (0x1U << CAN_F4R1_FB28_Pos) /*!< 0x10000000 */
  2359. #define CAN_F4R1_FB28 CAN_F4R1_FB28_Msk /*!<Filter bit 28 */
  2360. #define CAN_F4R1_FB29_Pos (29U)
  2361. #define CAN_F4R1_FB29_Msk (0x1U << CAN_F4R1_FB29_Pos) /*!< 0x20000000 */
  2362. #define CAN_F4R1_FB29 CAN_F4R1_FB29_Msk /*!<Filter bit 29 */
  2363. #define CAN_F4R1_FB30_Pos (30U)
  2364. #define CAN_F4R1_FB30_Msk (0x1U << CAN_F4R1_FB30_Pos) /*!< 0x40000000 */
  2365. #define CAN_F4R1_FB30 CAN_F4R1_FB30_Msk /*!<Filter bit 30 */
  2366. #define CAN_F4R1_FB31_Pos (31U)
  2367. #define CAN_F4R1_FB31_Msk (0x1U << CAN_F4R1_FB31_Pos) /*!< 0x80000000 */
  2368. #define CAN_F4R1_FB31 CAN_F4R1_FB31_Msk /*!<Filter bit 31 */
  2369. /******************* Bit definition for CAN_F5R1 register *******************/
  2370. #define CAN_F5R1_FB0_Pos (0U)
  2371. #define CAN_F5R1_FB0_Msk (0x1U << CAN_F5R1_FB0_Pos) /*!< 0x00000001 */
  2372. #define CAN_F5R1_FB0 CAN_F5R1_FB0_Msk /*!<Filter bit 0 */
  2373. #define CAN_F5R1_FB1_Pos (1U)
  2374. #define CAN_F5R1_FB1_Msk (0x1U << CAN_F5R1_FB1_Pos) /*!< 0x00000002 */
  2375. #define CAN_F5R1_FB1 CAN_F5R1_FB1_Msk /*!<Filter bit 1 */
  2376. #define CAN_F5R1_FB2_Pos (2U)
  2377. #define CAN_F5R1_FB2_Msk (0x1U << CAN_F5R1_FB2_Pos) /*!< 0x00000004 */
  2378. #define CAN_F5R1_FB2 CAN_F5R1_FB2_Msk /*!<Filter bit 2 */
  2379. #define CAN_F5R1_FB3_Pos (3U)
  2380. #define CAN_F5R1_FB3_Msk (0x1U << CAN_F5R1_FB3_Pos) /*!< 0x00000008 */
  2381. #define CAN_F5R1_FB3 CAN_F5R1_FB3_Msk /*!<Filter bit 3 */
  2382. #define CAN_F5R1_FB4_Pos (4U)
  2383. #define CAN_F5R1_FB4_Msk (0x1U << CAN_F5R1_FB4_Pos) /*!< 0x00000010 */
  2384. #define CAN_F5R1_FB4 CAN_F5R1_FB4_Msk /*!<Filter bit 4 */
  2385. #define CAN_F5R1_FB5_Pos (5U)
  2386. #define CAN_F5R1_FB5_Msk (0x1U << CAN_F5R1_FB5_Pos) /*!< 0x00000020 */
  2387. #define CAN_F5R1_FB5 CAN_F5R1_FB5_Msk /*!<Filter bit 5 */
  2388. #define CAN_F5R1_FB6_Pos (6U)
  2389. #define CAN_F5R1_FB6_Msk (0x1U << CAN_F5R1_FB6_Pos) /*!< 0x00000040 */
  2390. #define CAN_F5R1_FB6 CAN_F5R1_FB6_Msk /*!<Filter bit 6 */
  2391. #define CAN_F5R1_FB7_Pos (7U)
  2392. #define CAN_F5R1_FB7_Msk (0x1U << CAN_F5R1_FB7_Pos) /*!< 0x00000080 */
  2393. #define CAN_F5R1_FB7 CAN_F5R1_FB7_Msk /*!<Filter bit 7 */
  2394. #define CAN_F5R1_FB8_Pos (8U)
  2395. #define CAN_F5R1_FB8_Msk (0x1U << CAN_F5R1_FB8_Pos) /*!< 0x00000100 */
  2396. #define CAN_F5R1_FB8 CAN_F5R1_FB8_Msk /*!<Filter bit 8 */
  2397. #define CAN_F5R1_FB9_Pos (9U)
  2398. #define CAN_F5R1_FB9_Msk (0x1U << CAN_F5R1_FB9_Pos) /*!< 0x00000200 */
  2399. #define CAN_F5R1_FB9 CAN_F5R1_FB9_Msk /*!<Filter bit 9 */
  2400. #define CAN_F5R1_FB10_Pos (10U)
  2401. #define CAN_F5R1_FB10_Msk (0x1U << CAN_F5R1_FB10_Pos) /*!< 0x00000400 */
  2402. #define CAN_F5R1_FB10 CAN_F5R1_FB10_Msk /*!<Filter bit 10 */
  2403. #define CAN_F5R1_FB11_Pos (11U)
  2404. #define CAN_F5R1_FB11_Msk (0x1U << CAN_F5R1_FB11_Pos) /*!< 0x00000800 */
  2405. #define CAN_F5R1_FB11 CAN_F5R1_FB11_Msk /*!<Filter bit 11 */
  2406. #define CAN_F5R1_FB12_Pos (12U)
  2407. #define CAN_F5R1_FB12_Msk (0x1U << CAN_F5R1_FB12_Pos) /*!< 0x00001000 */
  2408. #define CAN_F5R1_FB12 CAN_F5R1_FB12_Msk /*!<Filter bit 12 */
  2409. #define CAN_F5R1_FB13_Pos (13U)
  2410. #define CAN_F5R1_FB13_Msk (0x1U << CAN_F5R1_FB13_Pos) /*!< 0x00002000 */
  2411. #define CAN_F5R1_FB13 CAN_F5R1_FB13_Msk /*!<Filter bit 13 */
  2412. #define CAN_F5R1_FB14_Pos (14U)
  2413. #define CAN_F5R1_FB14_Msk (0x1U << CAN_F5R1_FB14_Pos) /*!< 0x00004000 */
  2414. #define CAN_F5R1_FB14 CAN_F5R1_FB14_Msk /*!<Filter bit 14 */
  2415. #define CAN_F5R1_FB15_Pos (15U)
  2416. #define CAN_F5R1_FB15_Msk (0x1U << CAN_F5R1_FB15_Pos) /*!< 0x00008000 */
  2417. #define CAN_F5R1_FB15 CAN_F5R1_FB15_Msk /*!<Filter bit 15 */
  2418. #define CAN_F5R1_FB16_Pos (16U)
  2419. #define CAN_F5R1_FB16_Msk (0x1U << CAN_F5R1_FB16_Pos) /*!< 0x00010000 */
  2420. #define CAN_F5R1_FB16 CAN_F5R1_FB16_Msk /*!<Filter bit 16 */
  2421. #define CAN_F5R1_FB17_Pos (17U)
  2422. #define CAN_F5R1_FB17_Msk (0x1U << CAN_F5R1_FB17_Pos) /*!< 0x00020000 */
  2423. #define CAN_F5R1_FB17 CAN_F5R1_FB17_Msk /*!<Filter bit 17 */
  2424. #define CAN_F5R1_FB18_Pos (18U)
  2425. #define CAN_F5R1_FB18_Msk (0x1U << CAN_F5R1_FB18_Pos) /*!< 0x00040000 */
  2426. #define CAN_F5R1_FB18 CAN_F5R1_FB18_Msk /*!<Filter bit 18 */
  2427. #define CAN_F5R1_FB19_Pos (19U)
  2428. #define CAN_F5R1_FB19_Msk (0x1U << CAN_F5R1_FB19_Pos) /*!< 0x00080000 */
  2429. #define CAN_F5R1_FB19 CAN_F5R1_FB19_Msk /*!<Filter bit 19 */
  2430. #define CAN_F5R1_FB20_Pos (20U)
  2431. #define CAN_F5R1_FB20_Msk (0x1U << CAN_F5R1_FB20_Pos) /*!< 0x00100000 */
  2432. #define CAN_F5R1_FB20 CAN_F5R1_FB20_Msk /*!<Filter bit 20 */
  2433. #define CAN_F5R1_FB21_Pos (21U)
  2434. #define CAN_F5R1_FB21_Msk (0x1U << CAN_F5R1_FB21_Pos) /*!< 0x00200000 */
  2435. #define CAN_F5R1_FB21 CAN_F5R1_FB21_Msk /*!<Filter bit 21 */
  2436. #define CAN_F5R1_FB22_Pos (22U)
  2437. #define CAN_F5R1_FB22_Msk (0x1U << CAN_F5R1_FB22_Pos) /*!< 0x00400000 */
  2438. #define CAN_F5R1_FB22 CAN_F5R1_FB22_Msk /*!<Filter bit 22 */
  2439. #define CAN_F5R1_FB23_Pos (23U)
  2440. #define CAN_F5R1_FB23_Msk (0x1U << CAN_F5R1_FB23_Pos) /*!< 0x00800000 */
  2441. #define CAN_F5R1_FB23 CAN_F5R1_FB23_Msk /*!<Filter bit 23 */
  2442. #define CAN_F5R1_FB24_Pos (24U)
  2443. #define CAN_F5R1_FB24_Msk (0x1U << CAN_F5R1_FB24_Pos) /*!< 0x01000000 */
  2444. #define CAN_F5R1_FB24 CAN_F5R1_FB24_Msk /*!<Filter bit 24 */
  2445. #define CAN_F5R1_FB25_Pos (25U)
  2446. #define CAN_F5R1_FB25_Msk (0x1U << CAN_F5R1_FB25_Pos) /*!< 0x02000000 */
  2447. #define CAN_F5R1_FB25 CAN_F5R1_FB25_Msk /*!<Filter bit 25 */
  2448. #define CAN_F5R1_FB26_Pos (26U)
  2449. #define CAN_F5R1_FB26_Msk (0x1U << CAN_F5R1_FB26_Pos) /*!< 0x04000000 */
  2450. #define CAN_F5R1_FB26 CAN_F5R1_FB26_Msk /*!<Filter bit 26 */
  2451. #define CAN_F5R1_FB27_Pos (27U)
  2452. #define CAN_F5R1_FB27_Msk (0x1U << CAN_F5R1_FB27_Pos) /*!< 0x08000000 */
  2453. #define CAN_F5R1_FB27 CAN_F5R1_FB27_Msk /*!<Filter bit 27 */
  2454. #define CAN_F5R1_FB28_Pos (28U)
  2455. #define CAN_F5R1_FB28_Msk (0x1U << CAN_F5R1_FB28_Pos) /*!< 0x10000000 */
  2456. #define CAN_F5R1_FB28 CAN_F5R1_FB28_Msk /*!<Filter bit 28 */
  2457. #define CAN_F5R1_FB29_Pos (29U)
  2458. #define CAN_F5R1_FB29_Msk (0x1U << CAN_F5R1_FB29_Pos) /*!< 0x20000000 */
  2459. #define CAN_F5R1_FB29 CAN_F5R1_FB29_Msk /*!<Filter bit 29 */
  2460. #define CAN_F5R1_FB30_Pos (30U)
  2461. #define CAN_F5R1_FB30_Msk (0x1U << CAN_F5R1_FB30_Pos) /*!< 0x40000000 */
  2462. #define CAN_F5R1_FB30 CAN_F5R1_FB30_Msk /*!<Filter bit 30 */
  2463. #define CAN_F5R1_FB31_Pos (31U)
  2464. #define CAN_F5R1_FB31_Msk (0x1U << CAN_F5R1_FB31_Pos) /*!< 0x80000000 */
  2465. #define CAN_F5R1_FB31 CAN_F5R1_FB31_Msk /*!<Filter bit 31 */
  2466. /******************* Bit definition for CAN_F6R1 register *******************/
  2467. #define CAN_F6R1_FB0_Pos (0U)
  2468. #define CAN_F6R1_FB0_Msk (0x1U << CAN_F6R1_FB0_Pos) /*!< 0x00000001 */
  2469. #define CAN_F6R1_FB0 CAN_F6R1_FB0_Msk /*!<Filter bit 0 */
  2470. #define CAN_F6R1_FB1_Pos (1U)
  2471. #define CAN_F6R1_FB1_Msk (0x1U << CAN_F6R1_FB1_Pos) /*!< 0x00000002 */
  2472. #define CAN_F6R1_FB1 CAN_F6R1_FB1_Msk /*!<Filter bit 1 */
  2473. #define CAN_F6R1_FB2_Pos (2U)
  2474. #define CAN_F6R1_FB2_Msk (0x1U << CAN_F6R1_FB2_Pos) /*!< 0x00000004 */
  2475. #define CAN_F6R1_FB2 CAN_F6R1_FB2_Msk /*!<Filter bit 2 */
  2476. #define CAN_F6R1_FB3_Pos (3U)
  2477. #define CAN_F6R1_FB3_Msk (0x1U << CAN_F6R1_FB3_Pos) /*!< 0x00000008 */
  2478. #define CAN_F6R1_FB3 CAN_F6R1_FB3_Msk /*!<Filter bit 3 */
  2479. #define CAN_F6R1_FB4_Pos (4U)
  2480. #define CAN_F6R1_FB4_Msk (0x1U << CAN_F6R1_FB4_Pos) /*!< 0x00000010 */
  2481. #define CAN_F6R1_FB4 CAN_F6R1_FB4_Msk /*!<Filter bit 4 */
  2482. #define CAN_F6R1_FB5_Pos (5U)
  2483. #define CAN_F6R1_FB5_Msk (0x1U << CAN_F6R1_FB5_Pos) /*!< 0x00000020 */
  2484. #define CAN_F6R1_FB5 CAN_F6R1_FB5_Msk /*!<Filter bit 5 */
  2485. #define CAN_F6R1_FB6_Pos (6U)
  2486. #define CAN_F6R1_FB6_Msk (0x1U << CAN_F6R1_FB6_Pos) /*!< 0x00000040 */
  2487. #define CAN_F6R1_FB6 CAN_F6R1_FB6_Msk /*!<Filter bit 6 */
  2488. #define CAN_F6R1_FB7_Pos (7U)
  2489. #define CAN_F6R1_FB7_Msk (0x1U << CAN_F6R1_FB7_Pos) /*!< 0x00000080 */
  2490. #define CAN_F6R1_FB7 CAN_F6R1_FB7_Msk /*!<Filter bit 7 */
  2491. #define CAN_F6R1_FB8_Pos (8U)
  2492. #define CAN_F6R1_FB8_Msk (0x1U << CAN_F6R1_FB8_Pos) /*!< 0x00000100 */
  2493. #define CAN_F6R1_FB8 CAN_F6R1_FB8_Msk /*!<Filter bit 8 */
  2494. #define CAN_F6R1_FB9_Pos (9U)
  2495. #define CAN_F6R1_FB9_Msk (0x1U << CAN_F6R1_FB9_Pos) /*!< 0x00000200 */
  2496. #define CAN_F6R1_FB9 CAN_F6R1_FB9_Msk /*!<Filter bit 9 */
  2497. #define CAN_F6R1_FB10_Pos (10U)
  2498. #define CAN_F6R1_FB10_Msk (0x1U << CAN_F6R1_FB10_Pos) /*!< 0x00000400 */
  2499. #define CAN_F6R1_FB10 CAN_F6R1_FB10_Msk /*!<Filter bit 10 */
  2500. #define CAN_F6R1_FB11_Pos (11U)
  2501. #define CAN_F6R1_FB11_Msk (0x1U << CAN_F6R1_FB11_Pos) /*!< 0x00000800 */
  2502. #define CAN_F6R1_FB11 CAN_F6R1_FB11_Msk /*!<Filter bit 11 */
  2503. #define CAN_F6R1_FB12_Pos (12U)
  2504. #define CAN_F6R1_FB12_Msk (0x1U << CAN_F6R1_FB12_Pos) /*!< 0x00001000 */
  2505. #define CAN_F6R1_FB12 CAN_F6R1_FB12_Msk /*!<Filter bit 12 */
  2506. #define CAN_F6R1_FB13_Pos (13U)
  2507. #define CAN_F6R1_FB13_Msk (0x1U << CAN_F6R1_FB13_Pos) /*!< 0x00002000 */
  2508. #define CAN_F6R1_FB13 CAN_F6R1_FB13_Msk /*!<Filter bit 13 */
  2509. #define CAN_F6R1_FB14_Pos (14U)
  2510. #define CAN_F6R1_FB14_Msk (0x1U << CAN_F6R1_FB14_Pos) /*!< 0x00004000 */
  2511. #define CAN_F6R1_FB14 CAN_F6R1_FB14_Msk /*!<Filter bit 14 */
  2512. #define CAN_F6R1_FB15_Pos (15U)
  2513. #define CAN_F6R1_FB15_Msk (0x1U << CAN_F6R1_FB15_Pos) /*!< 0x00008000 */
  2514. #define CAN_F6R1_FB15 CAN_F6R1_FB15_Msk /*!<Filter bit 15 */
  2515. #define CAN_F6R1_FB16_Pos (16U)
  2516. #define CAN_F6R1_FB16_Msk (0x1U << CAN_F6R1_FB16_Pos) /*!< 0x00010000 */
  2517. #define CAN_F6R1_FB16 CAN_F6R1_FB16_Msk /*!<Filter bit 16 */
  2518. #define CAN_F6R1_FB17_Pos (17U)
  2519. #define CAN_F6R1_FB17_Msk (0x1U << CAN_F6R1_FB17_Pos) /*!< 0x00020000 */
  2520. #define CAN_F6R1_FB17 CAN_F6R1_FB17_Msk /*!<Filter bit 17 */
  2521. #define CAN_F6R1_FB18_Pos (18U)
  2522. #define CAN_F6R1_FB18_Msk (0x1U << CAN_F6R1_FB18_Pos) /*!< 0x00040000 */
  2523. #define CAN_F6R1_FB18 CAN_F6R1_FB18_Msk /*!<Filter bit 18 */
  2524. #define CAN_F6R1_FB19_Pos (19U)
  2525. #define CAN_F6R1_FB19_Msk (0x1U << CAN_F6R1_FB19_Pos) /*!< 0x00080000 */
  2526. #define CAN_F6R1_FB19 CAN_F6R1_FB19_Msk /*!<Filter bit 19 */
  2527. #define CAN_F6R1_FB20_Pos (20U)
  2528. #define CAN_F6R1_FB20_Msk (0x1U << CAN_F6R1_FB20_Pos) /*!< 0x00100000 */
  2529. #define CAN_F6R1_FB20 CAN_F6R1_FB20_Msk /*!<Filter bit 20 */
  2530. #define CAN_F6R1_FB21_Pos (21U)
  2531. #define CAN_F6R1_FB21_Msk (0x1U << CAN_F6R1_FB21_Pos) /*!< 0x00200000 */
  2532. #define CAN_F6R1_FB21 CAN_F6R1_FB21_Msk /*!<Filter bit 21 */
  2533. #define CAN_F6R1_FB22_Pos (22U)
  2534. #define CAN_F6R1_FB22_Msk (0x1U << CAN_F6R1_FB22_Pos) /*!< 0x00400000 */
  2535. #define CAN_F6R1_FB22 CAN_F6R1_FB22_Msk /*!<Filter bit 22 */
  2536. #define CAN_F6R1_FB23_Pos (23U)
  2537. #define CAN_F6R1_FB23_Msk (0x1U << CAN_F6R1_FB23_Pos) /*!< 0x00800000 */
  2538. #define CAN_F6R1_FB23 CAN_F6R1_FB23_Msk /*!<Filter bit 23 */
  2539. #define CAN_F6R1_FB24_Pos (24U)
  2540. #define CAN_F6R1_FB24_Msk (0x1U << CAN_F6R1_FB24_Pos) /*!< 0x01000000 */
  2541. #define CAN_F6R1_FB24 CAN_F6R1_FB24_Msk /*!<Filter bit 24 */
  2542. #define CAN_F6R1_FB25_Pos (25U)
  2543. #define CAN_F6R1_FB25_Msk (0x1U << CAN_F6R1_FB25_Pos) /*!< 0x02000000 */
  2544. #define CAN_F6R1_FB25 CAN_F6R1_FB25_Msk /*!<Filter bit 25 */
  2545. #define CAN_F6R1_FB26_Pos (26U)
  2546. #define CAN_F6R1_FB26_Msk (0x1U << CAN_F6R1_FB26_Pos) /*!< 0x04000000 */
  2547. #define CAN_F6R1_FB26 CAN_F6R1_FB26_Msk /*!<Filter bit 26 */
  2548. #define CAN_F6R1_FB27_Pos (27U)
  2549. #define CAN_F6R1_FB27_Msk (0x1U << CAN_F6R1_FB27_Pos) /*!< 0x08000000 */
  2550. #define CAN_F6R1_FB27 CAN_F6R1_FB27_Msk /*!<Filter bit 27 */
  2551. #define CAN_F6R1_FB28_Pos (28U)
  2552. #define CAN_F6R1_FB28_Msk (0x1U << CAN_F6R1_FB28_Pos) /*!< 0x10000000 */
  2553. #define CAN_F6R1_FB28 CAN_F6R1_FB28_Msk /*!<Filter bit 28 */
  2554. #define CAN_F6R1_FB29_Pos (29U)
  2555. #define CAN_F6R1_FB29_Msk (0x1U << CAN_F6R1_FB29_Pos) /*!< 0x20000000 */
  2556. #define CAN_F6R1_FB29 CAN_F6R1_FB29_Msk /*!<Filter bit 29 */
  2557. #define CAN_F6R1_FB30_Pos (30U)
  2558. #define CAN_F6R1_FB30_Msk (0x1U << CAN_F6R1_FB30_Pos) /*!< 0x40000000 */
  2559. #define CAN_F6R1_FB30 CAN_F6R1_FB30_Msk /*!<Filter bit 30 */
  2560. #define CAN_F6R1_FB31_Pos (31U)
  2561. #define CAN_F6R1_FB31_Msk (0x1U << CAN_F6R1_FB31_Pos) /*!< 0x80000000 */
  2562. #define CAN_F6R1_FB31 CAN_F6R1_FB31_Msk /*!<Filter bit 31 */
  2563. /******************* Bit definition for CAN_F7R1 register *******************/
  2564. #define CAN_F7R1_FB0_Pos (0U)
  2565. #define CAN_F7R1_FB0_Msk (0x1U << CAN_F7R1_FB0_Pos) /*!< 0x00000001 */
  2566. #define CAN_F7R1_FB0 CAN_F7R1_FB0_Msk /*!<Filter bit 0 */
  2567. #define CAN_F7R1_FB1_Pos (1U)
  2568. #define CAN_F7R1_FB1_Msk (0x1U << CAN_F7R1_FB1_Pos) /*!< 0x00000002 */
  2569. #define CAN_F7R1_FB1 CAN_F7R1_FB1_Msk /*!<Filter bit 1 */
  2570. #define CAN_F7R1_FB2_Pos (2U)
  2571. #define CAN_F7R1_FB2_Msk (0x1U << CAN_F7R1_FB2_Pos) /*!< 0x00000004 */
  2572. #define CAN_F7R1_FB2 CAN_F7R1_FB2_Msk /*!<Filter bit 2 */
  2573. #define CAN_F7R1_FB3_Pos (3U)
  2574. #define CAN_F7R1_FB3_Msk (0x1U << CAN_F7R1_FB3_Pos) /*!< 0x00000008 */
  2575. #define CAN_F7R1_FB3 CAN_F7R1_FB3_Msk /*!<Filter bit 3 */
  2576. #define CAN_F7R1_FB4_Pos (4U)
  2577. #define CAN_F7R1_FB4_Msk (0x1U << CAN_F7R1_FB4_Pos) /*!< 0x00000010 */
  2578. #define CAN_F7R1_FB4 CAN_F7R1_FB4_Msk /*!<Filter bit 4 */
  2579. #define CAN_F7R1_FB5_Pos (5U)
  2580. #define CAN_F7R1_FB5_Msk (0x1U << CAN_F7R1_FB5_Pos) /*!< 0x00000020 */
  2581. #define CAN_F7R1_FB5 CAN_F7R1_FB5_Msk /*!<Filter bit 5 */
  2582. #define CAN_F7R1_FB6_Pos (6U)
  2583. #define CAN_F7R1_FB6_Msk (0x1U << CAN_F7R1_FB6_Pos) /*!< 0x00000040 */
  2584. #define CAN_F7R1_FB6 CAN_F7R1_FB6_Msk /*!<Filter bit 6 */
  2585. #define CAN_F7R1_FB7_Pos (7U)
  2586. #define CAN_F7R1_FB7_Msk (0x1U << CAN_F7R1_FB7_Pos) /*!< 0x00000080 */
  2587. #define CAN_F7R1_FB7 CAN_F7R1_FB7_Msk /*!<Filter bit 7 */
  2588. #define CAN_F7R1_FB8_Pos (8U)
  2589. #define CAN_F7R1_FB8_Msk (0x1U << CAN_F7R1_FB8_Pos) /*!< 0x00000100 */
  2590. #define CAN_F7R1_FB8 CAN_F7R1_FB8_Msk /*!<Filter bit 8 */
  2591. #define CAN_F7R1_FB9_Pos (9U)
  2592. #define CAN_F7R1_FB9_Msk (0x1U << CAN_F7R1_FB9_Pos) /*!< 0x00000200 */
  2593. #define CAN_F7R1_FB9 CAN_F7R1_FB9_Msk /*!<Filter bit 9 */
  2594. #define CAN_F7R1_FB10_Pos (10U)
  2595. #define CAN_F7R1_FB10_Msk (0x1U << CAN_F7R1_FB10_Pos) /*!< 0x00000400 */
  2596. #define CAN_F7R1_FB10 CAN_F7R1_FB10_Msk /*!<Filter bit 10 */
  2597. #define CAN_F7R1_FB11_Pos (11U)
  2598. #define CAN_F7R1_FB11_Msk (0x1U << CAN_F7R1_FB11_Pos) /*!< 0x00000800 */
  2599. #define CAN_F7R1_FB11 CAN_F7R1_FB11_Msk /*!<Filter bit 11 */
  2600. #define CAN_F7R1_FB12_Pos (12U)
  2601. #define CAN_F7R1_FB12_Msk (0x1U << CAN_F7R1_FB12_Pos) /*!< 0x00001000 */
  2602. #define CAN_F7R1_FB12 CAN_F7R1_FB12_Msk /*!<Filter bit 12 */
  2603. #define CAN_F7R1_FB13_Pos (13U)
  2604. #define CAN_F7R1_FB13_Msk (0x1U << CAN_F7R1_FB13_Pos) /*!< 0x00002000 */
  2605. #define CAN_F7R1_FB13 CAN_F7R1_FB13_Msk /*!<Filter bit 13 */
  2606. #define CAN_F7R1_FB14_Pos (14U)
  2607. #define CAN_F7R1_FB14_Msk (0x1U << CAN_F7R1_FB14_Pos) /*!< 0x00004000 */
  2608. #define CAN_F7R1_FB14 CAN_F7R1_FB14_Msk /*!<Filter bit 14 */
  2609. #define CAN_F7R1_FB15_Pos (15U)
  2610. #define CAN_F7R1_FB15_Msk (0x1U << CAN_F7R1_FB15_Pos) /*!< 0x00008000 */
  2611. #define CAN_F7R1_FB15 CAN_F7R1_FB15_Msk /*!<Filter bit 15 */
  2612. #define CAN_F7R1_FB16_Pos (16U)
  2613. #define CAN_F7R1_FB16_Msk (0x1U << CAN_F7R1_FB16_Pos) /*!< 0x00010000 */
  2614. #define CAN_F7R1_FB16 CAN_F7R1_FB16_Msk /*!<Filter bit 16 */
  2615. #define CAN_F7R1_FB17_Pos (17U)
  2616. #define CAN_F7R1_FB17_Msk (0x1U << CAN_F7R1_FB17_Pos) /*!< 0x00020000 */
  2617. #define CAN_F7R1_FB17 CAN_F7R1_FB17_Msk /*!<Filter bit 17 */
  2618. #define CAN_F7R1_FB18_Pos (18U)
  2619. #define CAN_F7R1_FB18_Msk (0x1U << CAN_F7R1_FB18_Pos) /*!< 0x00040000 */
  2620. #define CAN_F7R1_FB18 CAN_F7R1_FB18_Msk /*!<Filter bit 18 */
  2621. #define CAN_F7R1_FB19_Pos (19U)
  2622. #define CAN_F7R1_FB19_Msk (0x1U << CAN_F7R1_FB19_Pos) /*!< 0x00080000 */
  2623. #define CAN_F7R1_FB19 CAN_F7R1_FB19_Msk /*!<Filter bit 19 */
  2624. #define CAN_F7R1_FB20_Pos (20U)
  2625. #define CAN_F7R1_FB20_Msk (0x1U << CAN_F7R1_FB20_Pos) /*!< 0x00100000 */
  2626. #define CAN_F7R1_FB20 CAN_F7R1_FB20_Msk /*!<Filter bit 20 */
  2627. #define CAN_F7R1_FB21_Pos (21U)
  2628. #define CAN_F7R1_FB21_Msk (0x1U << CAN_F7R1_FB21_Pos) /*!< 0x00200000 */
  2629. #define CAN_F7R1_FB21 CAN_F7R1_FB21_Msk /*!<Filter bit 21 */
  2630. #define CAN_F7R1_FB22_Pos (22U)
  2631. #define CAN_F7R1_FB22_Msk (0x1U << CAN_F7R1_FB22_Pos) /*!< 0x00400000 */
  2632. #define CAN_F7R1_FB22 CAN_F7R1_FB22_Msk /*!<Filter bit 22 */
  2633. #define CAN_F7R1_FB23_Pos (23U)
  2634. #define CAN_F7R1_FB23_Msk (0x1U << CAN_F7R1_FB23_Pos) /*!< 0x00800000 */
  2635. #define CAN_F7R1_FB23 CAN_F7R1_FB23_Msk /*!<Filter bit 23 */
  2636. #define CAN_F7R1_FB24_Pos (24U)
  2637. #define CAN_F7R1_FB24_Msk (0x1U << CAN_F7R1_FB24_Pos) /*!< 0x01000000 */
  2638. #define CAN_F7R1_FB24 CAN_F7R1_FB24_Msk /*!<Filter bit 24 */
  2639. #define CAN_F7R1_FB25_Pos (25U)
  2640. #define CAN_F7R1_FB25_Msk (0x1U << CAN_F7R1_FB25_Pos) /*!< 0x02000000 */
  2641. #define CAN_F7R1_FB25 CAN_F7R1_FB25_Msk /*!<Filter bit 25 */
  2642. #define CAN_F7R1_FB26_Pos (26U)
  2643. #define CAN_F7R1_FB26_Msk (0x1U << CAN_F7R1_FB26_Pos) /*!< 0x04000000 */
  2644. #define CAN_F7R1_FB26 CAN_F7R1_FB26_Msk /*!<Filter bit 26 */
  2645. #define CAN_F7R1_FB27_Pos (27U)
  2646. #define CAN_F7R1_FB27_Msk (0x1U << CAN_F7R1_FB27_Pos) /*!< 0x08000000 */
  2647. #define CAN_F7R1_FB27 CAN_F7R1_FB27_Msk /*!<Filter bit 27 */
  2648. #define CAN_F7R1_FB28_Pos (28U)
  2649. #define CAN_F7R1_FB28_Msk (0x1U << CAN_F7R1_FB28_Pos) /*!< 0x10000000 */
  2650. #define CAN_F7R1_FB28 CAN_F7R1_FB28_Msk /*!<Filter bit 28 */
  2651. #define CAN_F7R1_FB29_Pos (29U)
  2652. #define CAN_F7R1_FB29_Msk (0x1U << CAN_F7R1_FB29_Pos) /*!< 0x20000000 */
  2653. #define CAN_F7R1_FB29 CAN_F7R1_FB29_Msk /*!<Filter bit 29 */
  2654. #define CAN_F7R1_FB30_Pos (30U)
  2655. #define CAN_F7R1_FB30_Msk (0x1U << CAN_F7R1_FB30_Pos) /*!< 0x40000000 */
  2656. #define CAN_F7R1_FB30 CAN_F7R1_FB30_Msk /*!<Filter bit 30 */
  2657. #define CAN_F7R1_FB31_Pos (31U)
  2658. #define CAN_F7R1_FB31_Msk (0x1U << CAN_F7R1_FB31_Pos) /*!< 0x80000000 */
  2659. #define CAN_F7R1_FB31 CAN_F7R1_FB31_Msk /*!<Filter bit 31 */
  2660. /******************* Bit definition for CAN_F8R1 register *******************/
  2661. #define CAN_F8R1_FB0_Pos (0U)
  2662. #define CAN_F8R1_FB0_Msk (0x1U << CAN_F8R1_FB0_Pos) /*!< 0x00000001 */
  2663. #define CAN_F8R1_FB0 CAN_F8R1_FB0_Msk /*!<Filter bit 0 */
  2664. #define CAN_F8R1_FB1_Pos (1U)
  2665. #define CAN_F8R1_FB1_Msk (0x1U << CAN_F8R1_FB1_Pos) /*!< 0x00000002 */
  2666. #define CAN_F8R1_FB1 CAN_F8R1_FB1_Msk /*!<Filter bit 1 */
  2667. #define CAN_F8R1_FB2_Pos (2U)
  2668. #define CAN_F8R1_FB2_Msk (0x1U << CAN_F8R1_FB2_Pos) /*!< 0x00000004 */
  2669. #define CAN_F8R1_FB2 CAN_F8R1_FB2_Msk /*!<Filter bit 2 */
  2670. #define CAN_F8R1_FB3_Pos (3U)
  2671. #define CAN_F8R1_FB3_Msk (0x1U << CAN_F8R1_FB3_Pos) /*!< 0x00000008 */
  2672. #define CAN_F8R1_FB3 CAN_F8R1_FB3_Msk /*!<Filter bit 3 */
  2673. #define CAN_F8R1_FB4_Pos (4U)
  2674. #define CAN_F8R1_FB4_Msk (0x1U << CAN_F8R1_FB4_Pos) /*!< 0x00000010 */
  2675. #define CAN_F8R1_FB4 CAN_F8R1_FB4_Msk /*!<Filter bit 4 */
  2676. #define CAN_F8R1_FB5_Pos (5U)
  2677. #define CAN_F8R1_FB5_Msk (0x1U << CAN_F8R1_FB5_Pos) /*!< 0x00000020 */
  2678. #define CAN_F8R1_FB5 CAN_F8R1_FB5_Msk /*!<Filter bit 5 */
  2679. #define CAN_F8R1_FB6_Pos (6U)
  2680. #define CAN_F8R1_FB6_Msk (0x1U << CAN_F8R1_FB6_Pos) /*!< 0x00000040 */
  2681. #define CAN_F8R1_FB6 CAN_F8R1_FB6_Msk /*!<Filter bit 6 */
  2682. #define CAN_F8R1_FB7_Pos (7U)
  2683. #define CAN_F8R1_FB7_Msk (0x1U << CAN_F8R1_FB7_Pos) /*!< 0x00000080 */
  2684. #define CAN_F8R1_FB7 CAN_F8R1_FB7_Msk /*!<Filter bit 7 */
  2685. #define CAN_F8R1_FB8_Pos (8U)
  2686. #define CAN_F8R1_FB8_Msk (0x1U << CAN_F8R1_FB8_Pos) /*!< 0x00000100 */
  2687. #define CAN_F8R1_FB8 CAN_F8R1_FB8_Msk /*!<Filter bit 8 */
  2688. #define CAN_F8R1_FB9_Pos (9U)
  2689. #define CAN_F8R1_FB9_Msk (0x1U << CAN_F8R1_FB9_Pos) /*!< 0x00000200 */
  2690. #define CAN_F8R1_FB9 CAN_F8R1_FB9_Msk /*!<Filter bit 9 */
  2691. #define CAN_F8R1_FB10_Pos (10U)
  2692. #define CAN_F8R1_FB10_Msk (0x1U << CAN_F8R1_FB10_Pos) /*!< 0x00000400 */
  2693. #define CAN_F8R1_FB10 CAN_F8R1_FB10_Msk /*!<Filter bit 10 */
  2694. #define CAN_F8R1_FB11_Pos (11U)
  2695. #define CAN_F8R1_FB11_Msk (0x1U << CAN_F8R1_FB11_Pos) /*!< 0x00000800 */
  2696. #define CAN_F8R1_FB11 CAN_F8R1_FB11_Msk /*!<Filter bit 11 */
  2697. #define CAN_F8R1_FB12_Pos (12U)
  2698. #define CAN_F8R1_FB12_Msk (0x1U << CAN_F8R1_FB12_Pos) /*!< 0x00001000 */
  2699. #define CAN_F8R1_FB12 CAN_F8R1_FB12_Msk /*!<Filter bit 12 */
  2700. #define CAN_F8R1_FB13_Pos (13U)
  2701. #define CAN_F8R1_FB13_Msk (0x1U << CAN_F8R1_FB13_Pos) /*!< 0x00002000 */
  2702. #define CAN_F8R1_FB13 CAN_F8R1_FB13_Msk /*!<Filter bit 13 */
  2703. #define CAN_F8R1_FB14_Pos (14U)
  2704. #define CAN_F8R1_FB14_Msk (0x1U << CAN_F8R1_FB14_Pos) /*!< 0x00004000 */
  2705. #define CAN_F8R1_FB14 CAN_F8R1_FB14_Msk /*!<Filter bit 14 */
  2706. #define CAN_F8R1_FB15_Pos (15U)
  2707. #define CAN_F8R1_FB15_Msk (0x1U << CAN_F8R1_FB15_Pos) /*!< 0x00008000 */
  2708. #define CAN_F8R1_FB15 CAN_F8R1_FB15_Msk /*!<Filter bit 15 */
  2709. #define CAN_F8R1_FB16_Pos (16U)
  2710. #define CAN_F8R1_FB16_Msk (0x1U << CAN_F8R1_FB16_Pos) /*!< 0x00010000 */
  2711. #define CAN_F8R1_FB16 CAN_F8R1_FB16_Msk /*!<Filter bit 16 */
  2712. #define CAN_F8R1_FB17_Pos (17U)
  2713. #define CAN_F8R1_FB17_Msk (0x1U << CAN_F8R1_FB17_Pos) /*!< 0x00020000 */
  2714. #define CAN_F8R1_FB17 CAN_F8R1_FB17_Msk /*!<Filter bit 17 */
  2715. #define CAN_F8R1_FB18_Pos (18U)
  2716. #define CAN_F8R1_FB18_Msk (0x1U << CAN_F8R1_FB18_Pos) /*!< 0x00040000 */
  2717. #define CAN_F8R1_FB18 CAN_F8R1_FB18_Msk /*!<Filter bit 18 */
  2718. #define CAN_F8R1_FB19_Pos (19U)
  2719. #define CAN_F8R1_FB19_Msk (0x1U << CAN_F8R1_FB19_Pos) /*!< 0x00080000 */
  2720. #define CAN_F8R1_FB19 CAN_F8R1_FB19_Msk /*!<Filter bit 19 */
  2721. #define CAN_F8R1_FB20_Pos (20U)
  2722. #define CAN_F8R1_FB20_Msk (0x1U << CAN_F8R1_FB20_Pos) /*!< 0x00100000 */
  2723. #define CAN_F8R1_FB20 CAN_F8R1_FB20_Msk /*!<Filter bit 20 */
  2724. #define CAN_F8R1_FB21_Pos (21U)
  2725. #define CAN_F8R1_FB21_Msk (0x1U << CAN_F8R1_FB21_Pos) /*!< 0x00200000 */
  2726. #define CAN_F8R1_FB21 CAN_F8R1_FB21_Msk /*!<Filter bit 21 */
  2727. #define CAN_F8R1_FB22_Pos (22U)
  2728. #define CAN_F8R1_FB22_Msk (0x1U << CAN_F8R1_FB22_Pos) /*!< 0x00400000 */
  2729. #define CAN_F8R1_FB22 CAN_F8R1_FB22_Msk /*!<Filter bit 22 */
  2730. #define CAN_F8R1_FB23_Pos (23U)
  2731. #define CAN_F8R1_FB23_Msk (0x1U << CAN_F8R1_FB23_Pos) /*!< 0x00800000 */
  2732. #define CAN_F8R1_FB23 CAN_F8R1_FB23_Msk /*!<Filter bit 23 */
  2733. #define CAN_F8R1_FB24_Pos (24U)
  2734. #define CAN_F8R1_FB24_Msk (0x1U << CAN_F8R1_FB24_Pos) /*!< 0x01000000 */
  2735. #define CAN_F8R1_FB24 CAN_F8R1_FB24_Msk /*!<Filter bit 24 */
  2736. #define CAN_F8R1_FB25_Pos (25U)
  2737. #define CAN_F8R1_FB25_Msk (0x1U << CAN_F8R1_FB25_Pos) /*!< 0x02000000 */
  2738. #define CAN_F8R1_FB25 CAN_F8R1_FB25_Msk /*!<Filter bit 25 */
  2739. #define CAN_F8R1_FB26_Pos (26U)
  2740. #define CAN_F8R1_FB26_Msk (0x1U << CAN_F8R1_FB26_Pos) /*!< 0x04000000 */
  2741. #define CAN_F8R1_FB26 CAN_F8R1_FB26_Msk /*!<Filter bit 26 */
  2742. #define CAN_F8R1_FB27_Pos (27U)
  2743. #define CAN_F8R1_FB27_Msk (0x1U << CAN_F8R1_FB27_Pos) /*!< 0x08000000 */
  2744. #define CAN_F8R1_FB27 CAN_F8R1_FB27_Msk /*!<Filter bit 27 */
  2745. #define CAN_F8R1_FB28_Pos (28U)
  2746. #define CAN_F8R1_FB28_Msk (0x1U << CAN_F8R1_FB28_Pos) /*!< 0x10000000 */
  2747. #define CAN_F8R1_FB28 CAN_F8R1_FB28_Msk /*!<Filter bit 28 */
  2748. #define CAN_F8R1_FB29_Pos (29U)
  2749. #define CAN_F8R1_FB29_Msk (0x1U << CAN_F8R1_FB29_Pos) /*!< 0x20000000 */
  2750. #define CAN_F8R1_FB29 CAN_F8R1_FB29_Msk /*!<Filter bit 29 */
  2751. #define CAN_F8R1_FB30_Pos (30U)
  2752. #define CAN_F8R1_FB30_Msk (0x1U << CAN_F8R1_FB30_Pos) /*!< 0x40000000 */
  2753. #define CAN_F8R1_FB30 CAN_F8R1_FB30_Msk /*!<Filter bit 30 */
  2754. #define CAN_F8R1_FB31_Pos (31U)
  2755. #define CAN_F8R1_FB31_Msk (0x1U << CAN_F8R1_FB31_Pos) /*!< 0x80000000 */
  2756. #define CAN_F8R1_FB31 CAN_F8R1_FB31_Msk /*!<Filter bit 31 */
  2757. /******************* Bit definition for CAN_F9R1 register *******************/
  2758. #define CAN_F9R1_FB0_Pos (0U)
  2759. #define CAN_F9R1_FB0_Msk (0x1U << CAN_F9R1_FB0_Pos) /*!< 0x00000001 */
  2760. #define CAN_F9R1_FB0 CAN_F9R1_FB0_Msk /*!<Filter bit 0 */
  2761. #define CAN_F9R1_FB1_Pos (1U)
  2762. #define CAN_F9R1_FB1_Msk (0x1U << CAN_F9R1_FB1_Pos) /*!< 0x00000002 */
  2763. #define CAN_F9R1_FB1 CAN_F9R1_FB1_Msk /*!<Filter bit 1 */
  2764. #define CAN_F9R1_FB2_Pos (2U)
  2765. #define CAN_F9R1_FB2_Msk (0x1U << CAN_F9R1_FB2_Pos) /*!< 0x00000004 */
  2766. #define CAN_F9R1_FB2 CAN_F9R1_FB2_Msk /*!<Filter bit 2 */
  2767. #define CAN_F9R1_FB3_Pos (3U)
  2768. #define CAN_F9R1_FB3_Msk (0x1U << CAN_F9R1_FB3_Pos) /*!< 0x00000008 */
  2769. #define CAN_F9R1_FB3 CAN_F9R1_FB3_Msk /*!<Filter bit 3 */
  2770. #define CAN_F9R1_FB4_Pos (4U)
  2771. #define CAN_F9R1_FB4_Msk (0x1U << CAN_F9R1_FB4_Pos) /*!< 0x00000010 */
  2772. #define CAN_F9R1_FB4 CAN_F9R1_FB4_Msk /*!<Filter bit 4 */
  2773. #define CAN_F9R1_FB5_Pos (5U)
  2774. #define CAN_F9R1_FB5_Msk (0x1U << CAN_F9R1_FB5_Pos) /*!< 0x00000020 */
  2775. #define CAN_F9R1_FB5 CAN_F9R1_FB5_Msk /*!<Filter bit 5 */
  2776. #define CAN_F9R1_FB6_Pos (6U)
  2777. #define CAN_F9R1_FB6_Msk (0x1U << CAN_F9R1_FB6_Pos) /*!< 0x00000040 */
  2778. #define CAN_F9R1_FB6 CAN_F9R1_FB6_Msk /*!<Filter bit 6 */
  2779. #define CAN_F9R1_FB7_Pos (7U)
  2780. #define CAN_F9R1_FB7_Msk (0x1U << CAN_F9R1_FB7_Pos) /*!< 0x00000080 */
  2781. #define CAN_F9R1_FB7 CAN_F9R1_FB7_Msk /*!<Filter bit 7 */
  2782. #define CAN_F9R1_FB8_Pos (8U)
  2783. #define CAN_F9R1_FB8_Msk (0x1U << CAN_F9R1_FB8_Pos) /*!< 0x00000100 */
  2784. #define CAN_F9R1_FB8 CAN_F9R1_FB8_Msk /*!<Filter bit 8 */
  2785. #define CAN_F9R1_FB9_Pos (9U)
  2786. #define CAN_F9R1_FB9_Msk (0x1U << CAN_F9R1_FB9_Pos) /*!< 0x00000200 */
  2787. #define CAN_F9R1_FB9 CAN_F9R1_FB9_Msk /*!<Filter bit 9 */
  2788. #define CAN_F9R1_FB10_Pos (10U)
  2789. #define CAN_F9R1_FB10_Msk (0x1U << CAN_F9R1_FB10_Pos) /*!< 0x00000400 */
  2790. #define CAN_F9R1_FB10 CAN_F9R1_FB10_Msk /*!<Filter bit 10 */
  2791. #define CAN_F9R1_FB11_Pos (11U)
  2792. #define CAN_F9R1_FB11_Msk (0x1U << CAN_F9R1_FB11_Pos) /*!< 0x00000800 */
  2793. #define CAN_F9R1_FB11 CAN_F9R1_FB11_Msk /*!<Filter bit 11 */
  2794. #define CAN_F9R1_FB12_Pos (12U)
  2795. #define CAN_F9R1_FB12_Msk (0x1U << CAN_F9R1_FB12_Pos) /*!< 0x00001000 */
  2796. #define CAN_F9R1_FB12 CAN_F9R1_FB12_Msk /*!<Filter bit 12 */
  2797. #define CAN_F9R1_FB13_Pos (13U)
  2798. #define CAN_F9R1_FB13_Msk (0x1U << CAN_F9R1_FB13_Pos) /*!< 0x00002000 */
  2799. #define CAN_F9R1_FB13 CAN_F9R1_FB13_Msk /*!<Filter bit 13 */
  2800. #define CAN_F9R1_FB14_Pos (14U)
  2801. #define CAN_F9R1_FB14_Msk (0x1U << CAN_F9R1_FB14_Pos) /*!< 0x00004000 */
  2802. #define CAN_F9R1_FB14 CAN_F9R1_FB14_Msk /*!<Filter bit 14 */
  2803. #define CAN_F9R1_FB15_Pos (15U)
  2804. #define CAN_F9R1_FB15_Msk (0x1U << CAN_F9R1_FB15_Pos) /*!< 0x00008000 */
  2805. #define CAN_F9R1_FB15 CAN_F9R1_FB15_Msk /*!<Filter bit 15 */
  2806. #define CAN_F9R1_FB16_Pos (16U)
  2807. #define CAN_F9R1_FB16_Msk (0x1U << CAN_F9R1_FB16_Pos) /*!< 0x00010000 */
  2808. #define CAN_F9R1_FB16 CAN_F9R1_FB16_Msk /*!<Filter bit 16 */
  2809. #define CAN_F9R1_FB17_Pos (17U)
  2810. #define CAN_F9R1_FB17_Msk (0x1U << CAN_F9R1_FB17_Pos) /*!< 0x00020000 */
  2811. #define CAN_F9R1_FB17 CAN_F9R1_FB17_Msk /*!<Filter bit 17 */
  2812. #define CAN_F9R1_FB18_Pos (18U)
  2813. #define CAN_F9R1_FB18_Msk (0x1U << CAN_F9R1_FB18_Pos) /*!< 0x00040000 */
  2814. #define CAN_F9R1_FB18 CAN_F9R1_FB18_Msk /*!<Filter bit 18 */
  2815. #define CAN_F9R1_FB19_Pos (19U)
  2816. #define CAN_F9R1_FB19_Msk (0x1U << CAN_F9R1_FB19_Pos) /*!< 0x00080000 */
  2817. #define CAN_F9R1_FB19 CAN_F9R1_FB19_Msk /*!<Filter bit 19 */
  2818. #define CAN_F9R1_FB20_Pos (20U)
  2819. #define CAN_F9R1_FB20_Msk (0x1U << CAN_F9R1_FB20_Pos) /*!< 0x00100000 */
  2820. #define CAN_F9R1_FB20 CAN_F9R1_FB20_Msk /*!<Filter bit 20 */
  2821. #define CAN_F9R1_FB21_Pos (21U)
  2822. #define CAN_F9R1_FB21_Msk (0x1U << CAN_F9R1_FB21_Pos) /*!< 0x00200000 */
  2823. #define CAN_F9R1_FB21 CAN_F9R1_FB21_Msk /*!<Filter bit 21 */
  2824. #define CAN_F9R1_FB22_Pos (22U)
  2825. #define CAN_F9R1_FB22_Msk (0x1U << CAN_F9R1_FB22_Pos) /*!< 0x00400000 */
  2826. #define CAN_F9R1_FB22 CAN_F9R1_FB22_Msk /*!<Filter bit 22 */
  2827. #define CAN_F9R1_FB23_Pos (23U)
  2828. #define CAN_F9R1_FB23_Msk (0x1U << CAN_F9R1_FB23_Pos) /*!< 0x00800000 */
  2829. #define CAN_F9R1_FB23 CAN_F9R1_FB23_Msk /*!<Filter bit 23 */
  2830. #define CAN_F9R1_FB24_Pos (24U)
  2831. #define CAN_F9R1_FB24_Msk (0x1U << CAN_F9R1_FB24_Pos) /*!< 0x01000000 */
  2832. #define CAN_F9R1_FB24 CAN_F9R1_FB24_Msk /*!<Filter bit 24 */
  2833. #define CAN_F9R1_FB25_Pos (25U)
  2834. #define CAN_F9R1_FB25_Msk (0x1U << CAN_F9R1_FB25_Pos) /*!< 0x02000000 */
  2835. #define CAN_F9R1_FB25 CAN_F9R1_FB25_Msk /*!<Filter bit 25 */
  2836. #define CAN_F9R1_FB26_Pos (26U)
  2837. #define CAN_F9R1_FB26_Msk (0x1U << CAN_F9R1_FB26_Pos) /*!< 0x04000000 */
  2838. #define CAN_F9R1_FB26 CAN_F9R1_FB26_Msk /*!<Filter bit 26 */
  2839. #define CAN_F9R1_FB27_Pos (27U)
  2840. #define CAN_F9R1_FB27_Msk (0x1U << CAN_F9R1_FB27_Pos) /*!< 0x08000000 */
  2841. #define CAN_F9R1_FB27 CAN_F9R1_FB27_Msk /*!<Filter bit 27 */
  2842. #define CAN_F9R1_FB28_Pos (28U)
  2843. #define CAN_F9R1_FB28_Msk (0x1U << CAN_F9R1_FB28_Pos) /*!< 0x10000000 */
  2844. #define CAN_F9R1_FB28 CAN_F9R1_FB28_Msk /*!<Filter bit 28 */
  2845. #define CAN_F9R1_FB29_Pos (29U)
  2846. #define CAN_F9R1_FB29_Msk (0x1U << CAN_F9R1_FB29_Pos) /*!< 0x20000000 */
  2847. #define CAN_F9R1_FB29 CAN_F9R1_FB29_Msk /*!<Filter bit 29 */
  2848. #define CAN_F9R1_FB30_Pos (30U)
  2849. #define CAN_F9R1_FB30_Msk (0x1U << CAN_F9R1_FB30_Pos) /*!< 0x40000000 */
  2850. #define CAN_F9R1_FB30 CAN_F9R1_FB30_Msk /*!<Filter bit 30 */
  2851. #define CAN_F9R1_FB31_Pos (31U)
  2852. #define CAN_F9R1_FB31_Msk (0x1U << CAN_F9R1_FB31_Pos) /*!< 0x80000000 */
  2853. #define CAN_F9R1_FB31 CAN_F9R1_FB31_Msk /*!<Filter bit 31 */
  2854. /******************* Bit definition for CAN_F10R1 register ******************/
  2855. #define CAN_F10R1_FB0_Pos (0U)
  2856. #define CAN_F10R1_FB0_Msk (0x1U << CAN_F10R1_FB0_Pos) /*!< 0x00000001 */
  2857. #define CAN_F10R1_FB0 CAN_F10R1_FB0_Msk /*!<Filter bit 0 */
  2858. #define CAN_F10R1_FB1_Pos (1U)
  2859. #define CAN_F10R1_FB1_Msk (0x1U << CAN_F10R1_FB1_Pos) /*!< 0x00000002 */
  2860. #define CAN_F10R1_FB1 CAN_F10R1_FB1_Msk /*!<Filter bit 1 */
  2861. #define CAN_F10R1_FB2_Pos (2U)
  2862. #define CAN_F10R1_FB2_Msk (0x1U << CAN_F10R1_FB2_Pos) /*!< 0x00000004 */
  2863. #define CAN_F10R1_FB2 CAN_F10R1_FB2_Msk /*!<Filter bit 2 */
  2864. #define CAN_F10R1_FB3_Pos (3U)
  2865. #define CAN_F10R1_FB3_Msk (0x1U << CAN_F10R1_FB3_Pos) /*!< 0x00000008 */
  2866. #define CAN_F10R1_FB3 CAN_F10R1_FB3_Msk /*!<Filter bit 3 */
  2867. #define CAN_F10R1_FB4_Pos (4U)
  2868. #define CAN_F10R1_FB4_Msk (0x1U << CAN_F10R1_FB4_Pos) /*!< 0x00000010 */
  2869. #define CAN_F10R1_FB4 CAN_F10R1_FB4_Msk /*!<Filter bit 4 */
  2870. #define CAN_F10R1_FB5_Pos (5U)
  2871. #define CAN_F10R1_FB5_Msk (0x1U << CAN_F10R1_FB5_Pos) /*!< 0x00000020 */
  2872. #define CAN_F10R1_FB5 CAN_F10R1_FB5_Msk /*!<Filter bit 5 */
  2873. #define CAN_F10R1_FB6_Pos (6U)
  2874. #define CAN_F10R1_FB6_Msk (0x1U << CAN_F10R1_FB6_Pos) /*!< 0x00000040 */
  2875. #define CAN_F10R1_FB6 CAN_F10R1_FB6_Msk /*!<Filter bit 6 */
  2876. #define CAN_F10R1_FB7_Pos (7U)
  2877. #define CAN_F10R1_FB7_Msk (0x1U << CAN_F10R1_FB7_Pos) /*!< 0x00000080 */
  2878. #define CAN_F10R1_FB7 CAN_F10R1_FB7_Msk /*!<Filter bit 7 */
  2879. #define CAN_F10R1_FB8_Pos (8U)
  2880. #define CAN_F10R1_FB8_Msk (0x1U << CAN_F10R1_FB8_Pos) /*!< 0x00000100 */
  2881. #define CAN_F10R1_FB8 CAN_F10R1_FB8_Msk /*!<Filter bit 8 */
  2882. #define CAN_F10R1_FB9_Pos (9U)
  2883. #define CAN_F10R1_FB9_Msk (0x1U << CAN_F10R1_FB9_Pos) /*!< 0x00000200 */
  2884. #define CAN_F10R1_FB9 CAN_F10R1_FB9_Msk /*!<Filter bit 9 */
  2885. #define CAN_F10R1_FB10_Pos (10U)
  2886. #define CAN_F10R1_FB10_Msk (0x1U << CAN_F10R1_FB10_Pos) /*!< 0x00000400 */
  2887. #define CAN_F10R1_FB10 CAN_F10R1_FB10_Msk /*!<Filter bit 10 */
  2888. #define CAN_F10R1_FB11_Pos (11U)
  2889. #define CAN_F10R1_FB11_Msk (0x1U << CAN_F10R1_FB11_Pos) /*!< 0x00000800 */
  2890. #define CAN_F10R1_FB11 CAN_F10R1_FB11_Msk /*!<Filter bit 11 */
  2891. #define CAN_F10R1_FB12_Pos (12U)
  2892. #define CAN_F10R1_FB12_Msk (0x1U << CAN_F10R1_FB12_Pos) /*!< 0x00001000 */
  2893. #define CAN_F10R1_FB12 CAN_F10R1_FB12_Msk /*!<Filter bit 12 */
  2894. #define CAN_F10R1_FB13_Pos (13U)
  2895. #define CAN_F10R1_FB13_Msk (0x1U << CAN_F10R1_FB13_Pos) /*!< 0x00002000 */
  2896. #define CAN_F10R1_FB13 CAN_F10R1_FB13_Msk /*!<Filter bit 13 */
  2897. #define CAN_F10R1_FB14_Pos (14U)
  2898. #define CAN_F10R1_FB14_Msk (0x1U << CAN_F10R1_FB14_Pos) /*!< 0x00004000 */
  2899. #define CAN_F10R1_FB14 CAN_F10R1_FB14_Msk /*!<Filter bit 14 */
  2900. #define CAN_F10R1_FB15_Pos (15U)
  2901. #define CAN_F10R1_FB15_Msk (0x1U << CAN_F10R1_FB15_Pos) /*!< 0x00008000 */
  2902. #define CAN_F10R1_FB15 CAN_F10R1_FB15_Msk /*!<Filter bit 15 */
  2903. #define CAN_F10R1_FB16_Pos (16U)
  2904. #define CAN_F10R1_FB16_Msk (0x1U << CAN_F10R1_FB16_Pos) /*!< 0x00010000 */
  2905. #define CAN_F10R1_FB16 CAN_F10R1_FB16_Msk /*!<Filter bit 16 */
  2906. #define CAN_F10R1_FB17_Pos (17U)
  2907. #define CAN_F10R1_FB17_Msk (0x1U << CAN_F10R1_FB17_Pos) /*!< 0x00020000 */
  2908. #define CAN_F10R1_FB17 CAN_F10R1_FB17_Msk /*!<Filter bit 17 */
  2909. #define CAN_F10R1_FB18_Pos (18U)
  2910. #define CAN_F10R1_FB18_Msk (0x1U << CAN_F10R1_FB18_Pos) /*!< 0x00040000 */
  2911. #define CAN_F10R1_FB18 CAN_F10R1_FB18_Msk /*!<Filter bit 18 */
  2912. #define CAN_F10R1_FB19_Pos (19U)
  2913. #define CAN_F10R1_FB19_Msk (0x1U << CAN_F10R1_FB19_Pos) /*!< 0x00080000 */
  2914. #define CAN_F10R1_FB19 CAN_F10R1_FB19_Msk /*!<Filter bit 19 */
  2915. #define CAN_F10R1_FB20_Pos (20U)
  2916. #define CAN_F10R1_FB20_Msk (0x1U << CAN_F10R1_FB20_Pos) /*!< 0x00100000 */
  2917. #define CAN_F10R1_FB20 CAN_F10R1_FB20_Msk /*!<Filter bit 20 */
  2918. #define CAN_F10R1_FB21_Pos (21U)
  2919. #define CAN_F10R1_FB21_Msk (0x1U << CAN_F10R1_FB21_Pos) /*!< 0x00200000 */
  2920. #define CAN_F10R1_FB21 CAN_F10R1_FB21_Msk /*!<Filter bit 21 */
  2921. #define CAN_F10R1_FB22_Pos (22U)
  2922. #define CAN_F10R1_FB22_Msk (0x1U << CAN_F10R1_FB22_Pos) /*!< 0x00400000 */
  2923. #define CAN_F10R1_FB22 CAN_F10R1_FB22_Msk /*!<Filter bit 22 */
  2924. #define CAN_F10R1_FB23_Pos (23U)
  2925. #define CAN_F10R1_FB23_Msk (0x1U << CAN_F10R1_FB23_Pos) /*!< 0x00800000 */
  2926. #define CAN_F10R1_FB23 CAN_F10R1_FB23_Msk /*!<Filter bit 23 */
  2927. #define CAN_F10R1_FB24_Pos (24U)
  2928. #define CAN_F10R1_FB24_Msk (0x1U << CAN_F10R1_FB24_Pos) /*!< 0x01000000 */
  2929. #define CAN_F10R1_FB24 CAN_F10R1_FB24_Msk /*!<Filter bit 24 */
  2930. #define CAN_F10R1_FB25_Pos (25U)
  2931. #define CAN_F10R1_FB25_Msk (0x1U << CAN_F10R1_FB25_Pos) /*!< 0x02000000 */
  2932. #define CAN_F10R1_FB25 CAN_F10R1_FB25_Msk /*!<Filter bit 25 */
  2933. #define CAN_F10R1_FB26_Pos (26U)
  2934. #define CAN_F10R1_FB26_Msk (0x1U << CAN_F10R1_FB26_Pos) /*!< 0x04000000 */
  2935. #define CAN_F10R1_FB26 CAN_F10R1_FB26_Msk /*!<Filter bit 26 */
  2936. #define CAN_F10R1_FB27_Pos (27U)
  2937. #define CAN_F10R1_FB27_Msk (0x1U << CAN_F10R1_FB27_Pos) /*!< 0x08000000 */
  2938. #define CAN_F10R1_FB27 CAN_F10R1_FB27_Msk /*!<Filter bit 27 */
  2939. #define CAN_F10R1_FB28_Pos (28U)
  2940. #define CAN_F10R1_FB28_Msk (0x1U << CAN_F10R1_FB28_Pos) /*!< 0x10000000 */
  2941. #define CAN_F10R1_FB28 CAN_F10R1_FB28_Msk /*!<Filter bit 28 */
  2942. #define CAN_F10R1_FB29_Pos (29U)
  2943. #define CAN_F10R1_FB29_Msk (0x1U << CAN_F10R1_FB29_Pos) /*!< 0x20000000 */
  2944. #define CAN_F10R1_FB29 CAN_F10R1_FB29_Msk /*!<Filter bit 29 */
  2945. #define CAN_F10R1_FB30_Pos (30U)
  2946. #define CAN_F10R1_FB30_Msk (0x1U << CAN_F10R1_FB30_Pos) /*!< 0x40000000 */
  2947. #define CAN_F10R1_FB30 CAN_F10R1_FB30_Msk /*!<Filter bit 30 */
  2948. #define CAN_F10R1_FB31_Pos (31U)
  2949. #define CAN_F10R1_FB31_Msk (0x1U << CAN_F10R1_FB31_Pos) /*!< 0x80000000 */
  2950. #define CAN_F10R1_FB31 CAN_F10R1_FB31_Msk /*!<Filter bit 31 */
  2951. /******************* Bit definition for CAN_F11R1 register ******************/
  2952. #define CAN_F11R1_FB0_Pos (0U)
  2953. #define CAN_F11R1_FB0_Msk (0x1U << CAN_F11R1_FB0_Pos) /*!< 0x00000001 */
  2954. #define CAN_F11R1_FB0 CAN_F11R1_FB0_Msk /*!<Filter bit 0 */
  2955. #define CAN_F11R1_FB1_Pos (1U)
  2956. #define CAN_F11R1_FB1_Msk (0x1U << CAN_F11R1_FB1_Pos) /*!< 0x00000002 */
  2957. #define CAN_F11R1_FB1 CAN_F11R1_FB1_Msk /*!<Filter bit 1 */
  2958. #define CAN_F11R1_FB2_Pos (2U)
  2959. #define CAN_F11R1_FB2_Msk (0x1U << CAN_F11R1_FB2_Pos) /*!< 0x00000004 */
  2960. #define CAN_F11R1_FB2 CAN_F11R1_FB2_Msk /*!<Filter bit 2 */
  2961. #define CAN_F11R1_FB3_Pos (3U)
  2962. #define CAN_F11R1_FB3_Msk (0x1U << CAN_F11R1_FB3_Pos) /*!< 0x00000008 */
  2963. #define CAN_F11R1_FB3 CAN_F11R1_FB3_Msk /*!<Filter bit 3 */
  2964. #define CAN_F11R1_FB4_Pos (4U)
  2965. #define CAN_F11R1_FB4_Msk (0x1U << CAN_F11R1_FB4_Pos) /*!< 0x00000010 */
  2966. #define CAN_F11R1_FB4 CAN_F11R1_FB4_Msk /*!<Filter bit 4 */
  2967. #define CAN_F11R1_FB5_Pos (5U)
  2968. #define CAN_F11R1_FB5_Msk (0x1U << CAN_F11R1_FB5_Pos) /*!< 0x00000020 */
  2969. #define CAN_F11R1_FB5 CAN_F11R1_FB5_Msk /*!<Filter bit 5 */
  2970. #define CAN_F11R1_FB6_Pos (6U)
  2971. #define CAN_F11R1_FB6_Msk (0x1U << CAN_F11R1_FB6_Pos) /*!< 0x00000040 */
  2972. #define CAN_F11R1_FB6 CAN_F11R1_FB6_Msk /*!<Filter bit 6 */
  2973. #define CAN_F11R1_FB7_Pos (7U)
  2974. #define CAN_F11R1_FB7_Msk (0x1U << CAN_F11R1_FB7_Pos) /*!< 0x00000080 */
  2975. #define CAN_F11R1_FB7 CAN_F11R1_FB7_Msk /*!<Filter bit 7 */
  2976. #define CAN_F11R1_FB8_Pos (8U)
  2977. #define CAN_F11R1_FB8_Msk (0x1U << CAN_F11R1_FB8_Pos) /*!< 0x00000100 */
  2978. #define CAN_F11R1_FB8 CAN_F11R1_FB8_Msk /*!<Filter bit 8 */
  2979. #define CAN_F11R1_FB9_Pos (9U)
  2980. #define CAN_F11R1_FB9_Msk (0x1U << CAN_F11R1_FB9_Pos) /*!< 0x00000200 */
  2981. #define CAN_F11R1_FB9 CAN_F11R1_FB9_Msk /*!<Filter bit 9 */
  2982. #define CAN_F11R1_FB10_Pos (10U)
  2983. #define CAN_F11R1_FB10_Msk (0x1U << CAN_F11R1_FB10_Pos) /*!< 0x00000400 */
  2984. #define CAN_F11R1_FB10 CAN_F11R1_FB10_Msk /*!<Filter bit 10 */
  2985. #define CAN_F11R1_FB11_Pos (11U)
  2986. #define CAN_F11R1_FB11_Msk (0x1U << CAN_F11R1_FB11_Pos) /*!< 0x00000800 */
  2987. #define CAN_F11R1_FB11 CAN_F11R1_FB11_Msk /*!<Filter bit 11 */
  2988. #define CAN_F11R1_FB12_Pos (12U)
  2989. #define CAN_F11R1_FB12_Msk (0x1U << CAN_F11R1_FB12_Pos) /*!< 0x00001000 */
  2990. #define CAN_F11R1_FB12 CAN_F11R1_FB12_Msk /*!<Filter bit 12 */
  2991. #define CAN_F11R1_FB13_Pos (13U)
  2992. #define CAN_F11R1_FB13_Msk (0x1U << CAN_F11R1_FB13_Pos) /*!< 0x00002000 */
  2993. #define CAN_F11R1_FB13 CAN_F11R1_FB13_Msk /*!<Filter bit 13 */
  2994. #define CAN_F11R1_FB14_Pos (14U)
  2995. #define CAN_F11R1_FB14_Msk (0x1U << CAN_F11R1_FB14_Pos) /*!< 0x00004000 */
  2996. #define CAN_F11R1_FB14 CAN_F11R1_FB14_Msk /*!<Filter bit 14 */
  2997. #define CAN_F11R1_FB15_Pos (15U)
  2998. #define CAN_F11R1_FB15_Msk (0x1U << CAN_F11R1_FB15_Pos) /*!< 0x00008000 */
  2999. #define CAN_F11R1_FB15 CAN_F11R1_FB15_Msk /*!<Filter bit 15 */
  3000. #define CAN_F11R1_FB16_Pos (16U)
  3001. #define CAN_F11R1_FB16_Msk (0x1U << CAN_F11R1_FB16_Pos) /*!< 0x00010000 */
  3002. #define CAN_F11R1_FB16 CAN_F11R1_FB16_Msk /*!<Filter bit 16 */
  3003. #define CAN_F11R1_FB17_Pos (17U)
  3004. #define CAN_F11R1_FB17_Msk (0x1U << CAN_F11R1_FB17_Pos) /*!< 0x00020000 */
  3005. #define CAN_F11R1_FB17 CAN_F11R1_FB17_Msk /*!<Filter bit 17 */
  3006. #define CAN_F11R1_FB18_Pos (18U)
  3007. #define CAN_F11R1_FB18_Msk (0x1U << CAN_F11R1_FB18_Pos) /*!< 0x00040000 */
  3008. #define CAN_F11R1_FB18 CAN_F11R1_FB18_Msk /*!<Filter bit 18 */
  3009. #define CAN_F11R1_FB19_Pos (19U)
  3010. #define CAN_F11R1_FB19_Msk (0x1U << CAN_F11R1_FB19_Pos) /*!< 0x00080000 */
  3011. #define CAN_F11R1_FB19 CAN_F11R1_FB19_Msk /*!<Filter bit 19 */
  3012. #define CAN_F11R1_FB20_Pos (20U)
  3013. #define CAN_F11R1_FB20_Msk (0x1U << CAN_F11R1_FB20_Pos) /*!< 0x00100000 */
  3014. #define CAN_F11R1_FB20 CAN_F11R1_FB20_Msk /*!<Filter bit 20 */
  3015. #define CAN_F11R1_FB21_Pos (21U)
  3016. #define CAN_F11R1_FB21_Msk (0x1U << CAN_F11R1_FB21_Pos) /*!< 0x00200000 */
  3017. #define CAN_F11R1_FB21 CAN_F11R1_FB21_Msk /*!<Filter bit 21 */
  3018. #define CAN_F11R1_FB22_Pos (22U)
  3019. #define CAN_F11R1_FB22_Msk (0x1U << CAN_F11R1_FB22_Pos) /*!< 0x00400000 */
  3020. #define CAN_F11R1_FB22 CAN_F11R1_FB22_Msk /*!<Filter bit 22 */
  3021. #define CAN_F11R1_FB23_Pos (23U)
  3022. #define CAN_F11R1_FB23_Msk (0x1U << CAN_F11R1_FB23_Pos) /*!< 0x00800000 */
  3023. #define CAN_F11R1_FB23 CAN_F11R1_FB23_Msk /*!<Filter bit 23 */
  3024. #define CAN_F11R1_FB24_Pos (24U)
  3025. #define CAN_F11R1_FB24_Msk (0x1U << CAN_F11R1_FB24_Pos) /*!< 0x01000000 */
  3026. #define CAN_F11R1_FB24 CAN_F11R1_FB24_Msk /*!<Filter bit 24 */
  3027. #define CAN_F11R1_FB25_Pos (25U)
  3028. #define CAN_F11R1_FB25_Msk (0x1U << CAN_F11R1_FB25_Pos) /*!< 0x02000000 */
  3029. #define CAN_F11R1_FB25 CAN_F11R1_FB25_Msk /*!<Filter bit 25 */
  3030. #define CAN_F11R1_FB26_Pos (26U)
  3031. #define CAN_F11R1_FB26_Msk (0x1U << CAN_F11R1_FB26_Pos) /*!< 0x04000000 */
  3032. #define CAN_F11R1_FB26 CAN_F11R1_FB26_Msk /*!<Filter bit 26 */
  3033. #define CAN_F11R1_FB27_Pos (27U)
  3034. #define CAN_F11R1_FB27_Msk (0x1U << CAN_F11R1_FB27_Pos) /*!< 0x08000000 */
  3035. #define CAN_F11R1_FB27 CAN_F11R1_FB27_Msk /*!<Filter bit 27 */
  3036. #define CAN_F11R1_FB28_Pos (28U)
  3037. #define CAN_F11R1_FB28_Msk (0x1U << CAN_F11R1_FB28_Pos) /*!< 0x10000000 */
  3038. #define CAN_F11R1_FB28 CAN_F11R1_FB28_Msk /*!<Filter bit 28 */
  3039. #define CAN_F11R1_FB29_Pos (29U)
  3040. #define CAN_F11R1_FB29_Msk (0x1U << CAN_F11R1_FB29_Pos) /*!< 0x20000000 */
  3041. #define CAN_F11R1_FB29 CAN_F11R1_FB29_Msk /*!<Filter bit 29 */
  3042. #define CAN_F11R1_FB30_Pos (30U)
  3043. #define CAN_F11R1_FB30_Msk (0x1U << CAN_F11R1_FB30_Pos) /*!< 0x40000000 */
  3044. #define CAN_F11R1_FB30 CAN_F11R1_FB30_Msk /*!<Filter bit 30 */
  3045. #define CAN_F11R1_FB31_Pos (31U)
  3046. #define CAN_F11R1_FB31_Msk (0x1U << CAN_F11R1_FB31_Pos) /*!< 0x80000000 */
  3047. #define CAN_F11R1_FB31 CAN_F11R1_FB31_Msk /*!<Filter bit 31 */
  3048. /******************* Bit definition for CAN_F12R1 register ******************/
  3049. #define CAN_F12R1_FB0_Pos (0U)
  3050. #define CAN_F12R1_FB0_Msk (0x1U << CAN_F12R1_FB0_Pos) /*!< 0x00000001 */
  3051. #define CAN_F12R1_FB0 CAN_F12R1_FB0_Msk /*!<Filter bit 0 */
  3052. #define CAN_F12R1_FB1_Pos (1U)
  3053. #define CAN_F12R1_FB1_Msk (0x1U << CAN_F12R1_FB1_Pos) /*!< 0x00000002 */
  3054. #define CAN_F12R1_FB1 CAN_F12R1_FB1_Msk /*!<Filter bit 1 */
  3055. #define CAN_F12R1_FB2_Pos (2U)
  3056. #define CAN_F12R1_FB2_Msk (0x1U << CAN_F12R1_FB2_Pos) /*!< 0x00000004 */
  3057. #define CAN_F12R1_FB2 CAN_F12R1_FB2_Msk /*!<Filter bit 2 */
  3058. #define CAN_F12R1_FB3_Pos (3U)
  3059. #define CAN_F12R1_FB3_Msk (0x1U << CAN_F12R1_FB3_Pos) /*!< 0x00000008 */
  3060. #define CAN_F12R1_FB3 CAN_F12R1_FB3_Msk /*!<Filter bit 3 */
  3061. #define CAN_F12R1_FB4_Pos (4U)
  3062. #define CAN_F12R1_FB4_Msk (0x1U << CAN_F12R1_FB4_Pos) /*!< 0x00000010 */
  3063. #define CAN_F12R1_FB4 CAN_F12R1_FB4_Msk /*!<Filter bit 4 */
  3064. #define CAN_F12R1_FB5_Pos (5U)
  3065. #define CAN_F12R1_FB5_Msk (0x1U << CAN_F12R1_FB5_Pos) /*!< 0x00000020 */
  3066. #define CAN_F12R1_FB5 CAN_F12R1_FB5_Msk /*!<Filter bit 5 */
  3067. #define CAN_F12R1_FB6_Pos (6U)
  3068. #define CAN_F12R1_FB6_Msk (0x1U << CAN_F12R1_FB6_Pos) /*!< 0x00000040 */
  3069. #define CAN_F12R1_FB6 CAN_F12R1_FB6_Msk /*!<Filter bit 6 */
  3070. #define CAN_F12R1_FB7_Pos (7U)
  3071. #define CAN_F12R1_FB7_Msk (0x1U << CAN_F12R1_FB7_Pos) /*!< 0x00000080 */
  3072. #define CAN_F12R1_FB7 CAN_F12R1_FB7_Msk /*!<Filter bit 7 */
  3073. #define CAN_F12R1_FB8_Pos (8U)
  3074. #define CAN_F12R1_FB8_Msk (0x1U << CAN_F12R1_FB8_Pos) /*!< 0x00000100 */
  3075. #define CAN_F12R1_FB8 CAN_F12R1_FB8_Msk /*!<Filter bit 8 */
  3076. #define CAN_F12R1_FB9_Pos (9U)
  3077. #define CAN_F12R1_FB9_Msk (0x1U << CAN_F12R1_FB9_Pos) /*!< 0x00000200 */
  3078. #define CAN_F12R1_FB9 CAN_F12R1_FB9_Msk /*!<Filter bit 9 */
  3079. #define CAN_F12R1_FB10_Pos (10U)
  3080. #define CAN_F12R1_FB10_Msk (0x1U << CAN_F12R1_FB10_Pos) /*!< 0x00000400 */
  3081. #define CAN_F12R1_FB10 CAN_F12R1_FB10_Msk /*!<Filter bit 10 */
  3082. #define CAN_F12R1_FB11_Pos (11U)
  3083. #define CAN_F12R1_FB11_Msk (0x1U << CAN_F12R1_FB11_Pos) /*!< 0x00000800 */
  3084. #define CAN_F12R1_FB11 CAN_F12R1_FB11_Msk /*!<Filter bit 11 */
  3085. #define CAN_F12R1_FB12_Pos (12U)
  3086. #define CAN_F12R1_FB12_Msk (0x1U << CAN_F12R1_FB12_Pos) /*!< 0x00001000 */
  3087. #define CAN_F12R1_FB12 CAN_F12R1_FB12_Msk /*!<Filter bit 12 */
  3088. #define CAN_F12R1_FB13_Pos (13U)
  3089. #define CAN_F12R1_FB13_Msk (0x1U << CAN_F12R1_FB13_Pos) /*!< 0x00002000 */
  3090. #define CAN_F12R1_FB13 CAN_F12R1_FB13_Msk /*!<Filter bit 13 */
  3091. #define CAN_F12R1_FB14_Pos (14U)
  3092. #define CAN_F12R1_FB14_Msk (0x1U << CAN_F12R1_FB14_Pos) /*!< 0x00004000 */
  3093. #define CAN_F12R1_FB14 CAN_F12R1_FB14_Msk /*!<Filter bit 14 */
  3094. #define CAN_F12R1_FB15_Pos (15U)
  3095. #define CAN_F12R1_FB15_Msk (0x1U << CAN_F12R1_FB15_Pos) /*!< 0x00008000 */
  3096. #define CAN_F12R1_FB15 CAN_F12R1_FB15_Msk /*!<Filter bit 15 */
  3097. #define CAN_F12R1_FB16_Pos (16U)
  3098. #define CAN_F12R1_FB16_Msk (0x1U << CAN_F12R1_FB16_Pos) /*!< 0x00010000 */
  3099. #define CAN_F12R1_FB16 CAN_F12R1_FB16_Msk /*!<Filter bit 16 */
  3100. #define CAN_F12R1_FB17_Pos (17U)
  3101. #define CAN_F12R1_FB17_Msk (0x1U << CAN_F12R1_FB17_Pos) /*!< 0x00020000 */
  3102. #define CAN_F12R1_FB17 CAN_F12R1_FB17_Msk /*!<Filter bit 17 */
  3103. #define CAN_F12R1_FB18_Pos (18U)
  3104. #define CAN_F12R1_FB18_Msk (0x1U << CAN_F12R1_FB18_Pos) /*!< 0x00040000 */
  3105. #define CAN_F12R1_FB18 CAN_F12R1_FB18_Msk /*!<Filter bit 18 */
  3106. #define CAN_F12R1_FB19_Pos (19U)
  3107. #define CAN_F12R1_FB19_Msk (0x1U << CAN_F12R1_FB19_Pos) /*!< 0x00080000 */
  3108. #define CAN_F12R1_FB19 CAN_F12R1_FB19_Msk /*!<Filter bit 19 */
  3109. #define CAN_F12R1_FB20_Pos (20U)
  3110. #define CAN_F12R1_FB20_Msk (0x1U << CAN_F12R1_FB20_Pos) /*!< 0x00100000 */
  3111. #define CAN_F12R1_FB20 CAN_F12R1_FB20_Msk /*!<Filter bit 20 */
  3112. #define CAN_F12R1_FB21_Pos (21U)
  3113. #define CAN_F12R1_FB21_Msk (0x1U << CAN_F12R1_FB21_Pos) /*!< 0x00200000 */
  3114. #define CAN_F12R1_FB21 CAN_F12R1_FB21_Msk /*!<Filter bit 21 */
  3115. #define CAN_F12R1_FB22_Pos (22U)
  3116. #define CAN_F12R1_FB22_Msk (0x1U << CAN_F12R1_FB22_Pos) /*!< 0x00400000 */
  3117. #define CAN_F12R1_FB22 CAN_F12R1_FB22_Msk /*!<Filter bit 22 */
  3118. #define CAN_F12R1_FB23_Pos (23U)
  3119. #define CAN_F12R1_FB23_Msk (0x1U << CAN_F12R1_FB23_Pos) /*!< 0x00800000 */
  3120. #define CAN_F12R1_FB23 CAN_F12R1_FB23_Msk /*!<Filter bit 23 */
  3121. #define CAN_F12R1_FB24_Pos (24U)
  3122. #define CAN_F12R1_FB24_Msk (0x1U << CAN_F12R1_FB24_Pos) /*!< 0x01000000 */
  3123. #define CAN_F12R1_FB24 CAN_F12R1_FB24_Msk /*!<Filter bit 24 */
  3124. #define CAN_F12R1_FB25_Pos (25U)
  3125. #define CAN_F12R1_FB25_Msk (0x1U << CAN_F12R1_FB25_Pos) /*!< 0x02000000 */
  3126. #define CAN_F12R1_FB25 CAN_F12R1_FB25_Msk /*!<Filter bit 25 */
  3127. #define CAN_F12R1_FB26_Pos (26U)
  3128. #define CAN_F12R1_FB26_Msk (0x1U << CAN_F12R1_FB26_Pos) /*!< 0x04000000 */
  3129. #define CAN_F12R1_FB26 CAN_F12R1_FB26_Msk /*!<Filter bit 26 */
  3130. #define CAN_F12R1_FB27_Pos (27U)
  3131. #define CAN_F12R1_FB27_Msk (0x1U << CAN_F12R1_FB27_Pos) /*!< 0x08000000 */
  3132. #define CAN_F12R1_FB27 CAN_F12R1_FB27_Msk /*!<Filter bit 27 */
  3133. #define CAN_F12R1_FB28_Pos (28U)
  3134. #define CAN_F12R1_FB28_Msk (0x1U << CAN_F12R1_FB28_Pos) /*!< 0x10000000 */
  3135. #define CAN_F12R1_FB28 CAN_F12R1_FB28_Msk /*!<Filter bit 28 */
  3136. #define CAN_F12R1_FB29_Pos (29U)
  3137. #define CAN_F12R1_FB29_Msk (0x1U << CAN_F12R1_FB29_Pos) /*!< 0x20000000 */
  3138. #define CAN_F12R1_FB29 CAN_F12R1_FB29_Msk /*!<Filter bit 29 */
  3139. #define CAN_F12R1_FB30_Pos (30U)
  3140. #define CAN_F12R1_FB30_Msk (0x1U << CAN_F12R1_FB30_Pos) /*!< 0x40000000 */
  3141. #define CAN_F12R1_FB30 CAN_F12R1_FB30_Msk /*!<Filter bit 30 */
  3142. #define CAN_F12R1_FB31_Pos (31U)
  3143. #define CAN_F12R1_FB31_Msk (0x1U << CAN_F12R1_FB31_Pos) /*!< 0x80000000 */
  3144. #define CAN_F12R1_FB31 CAN_F12R1_FB31_Msk /*!<Filter bit 31 */
  3145. /******************* Bit definition for CAN_F13R1 register ******************/
  3146. #define CAN_F13R1_FB0_Pos (0U)
  3147. #define CAN_F13R1_FB0_Msk (0x1U << CAN_F13R1_FB0_Pos) /*!< 0x00000001 */
  3148. #define CAN_F13R1_FB0 CAN_F13R1_FB0_Msk /*!<Filter bit 0 */
  3149. #define CAN_F13R1_FB1_Pos (1U)
  3150. #define CAN_F13R1_FB1_Msk (0x1U << CAN_F13R1_FB1_Pos) /*!< 0x00000002 */
  3151. #define CAN_F13R1_FB1 CAN_F13R1_FB1_Msk /*!<Filter bit 1 */
  3152. #define CAN_F13R1_FB2_Pos (2U)
  3153. #define CAN_F13R1_FB2_Msk (0x1U << CAN_F13R1_FB2_Pos) /*!< 0x00000004 */
  3154. #define CAN_F13R1_FB2 CAN_F13R1_FB2_Msk /*!<Filter bit 2 */
  3155. #define CAN_F13R1_FB3_Pos (3U)
  3156. #define CAN_F13R1_FB3_Msk (0x1U << CAN_F13R1_FB3_Pos) /*!< 0x00000008 */
  3157. #define CAN_F13R1_FB3 CAN_F13R1_FB3_Msk /*!<Filter bit 3 */
  3158. #define CAN_F13R1_FB4_Pos (4U)
  3159. #define CAN_F13R1_FB4_Msk (0x1U << CAN_F13R1_FB4_Pos) /*!< 0x00000010 */
  3160. #define CAN_F13R1_FB4 CAN_F13R1_FB4_Msk /*!<Filter bit 4 */
  3161. #define CAN_F13R1_FB5_Pos (5U)
  3162. #define CAN_F13R1_FB5_Msk (0x1U << CAN_F13R1_FB5_Pos) /*!< 0x00000020 */
  3163. #define CAN_F13R1_FB5 CAN_F13R1_FB5_Msk /*!<Filter bit 5 */
  3164. #define CAN_F13R1_FB6_Pos (6U)
  3165. #define CAN_F13R1_FB6_Msk (0x1U << CAN_F13R1_FB6_Pos) /*!< 0x00000040 */
  3166. #define CAN_F13R1_FB6 CAN_F13R1_FB6_Msk /*!<Filter bit 6 */
  3167. #define CAN_F13R1_FB7_Pos (7U)
  3168. #define CAN_F13R1_FB7_Msk (0x1U << CAN_F13R1_FB7_Pos) /*!< 0x00000080 */
  3169. #define CAN_F13R1_FB7 CAN_F13R1_FB7_Msk /*!<Filter bit 7 */
  3170. #define CAN_F13R1_FB8_Pos (8U)
  3171. #define CAN_F13R1_FB8_Msk (0x1U << CAN_F13R1_FB8_Pos) /*!< 0x00000100 */
  3172. #define CAN_F13R1_FB8 CAN_F13R1_FB8_Msk /*!<Filter bit 8 */
  3173. #define CAN_F13R1_FB9_Pos (9U)
  3174. #define CAN_F13R1_FB9_Msk (0x1U << CAN_F13R1_FB9_Pos) /*!< 0x00000200 */
  3175. #define CAN_F13R1_FB9 CAN_F13R1_FB9_Msk /*!<Filter bit 9 */
  3176. #define CAN_F13R1_FB10_Pos (10U)
  3177. #define CAN_F13R1_FB10_Msk (0x1U << CAN_F13R1_FB10_Pos) /*!< 0x00000400 */
  3178. #define CAN_F13R1_FB10 CAN_F13R1_FB10_Msk /*!<Filter bit 10 */
  3179. #define CAN_F13R1_FB11_Pos (11U)
  3180. #define CAN_F13R1_FB11_Msk (0x1U << CAN_F13R1_FB11_Pos) /*!< 0x00000800 */
  3181. #define CAN_F13R1_FB11 CAN_F13R1_FB11_Msk /*!<Filter bit 11 */
  3182. #define CAN_F13R1_FB12_Pos (12U)
  3183. #define CAN_F13R1_FB12_Msk (0x1U << CAN_F13R1_FB12_Pos) /*!< 0x00001000 */
  3184. #define CAN_F13R1_FB12 CAN_F13R1_FB12_Msk /*!<Filter bit 12 */
  3185. #define CAN_F13R1_FB13_Pos (13U)
  3186. #define CAN_F13R1_FB13_Msk (0x1U << CAN_F13R1_FB13_Pos) /*!< 0x00002000 */
  3187. #define CAN_F13R1_FB13 CAN_F13R1_FB13_Msk /*!<Filter bit 13 */
  3188. #define CAN_F13R1_FB14_Pos (14U)
  3189. #define CAN_F13R1_FB14_Msk (0x1U << CAN_F13R1_FB14_Pos) /*!< 0x00004000 */
  3190. #define CAN_F13R1_FB14 CAN_F13R1_FB14_Msk /*!<Filter bit 14 */
  3191. #define CAN_F13R1_FB15_Pos (15U)
  3192. #define CAN_F13R1_FB15_Msk (0x1U << CAN_F13R1_FB15_Pos) /*!< 0x00008000 */
  3193. #define CAN_F13R1_FB15 CAN_F13R1_FB15_Msk /*!<Filter bit 15 */
  3194. #define CAN_F13R1_FB16_Pos (16U)
  3195. #define CAN_F13R1_FB16_Msk (0x1U << CAN_F13R1_FB16_Pos) /*!< 0x00010000 */
  3196. #define CAN_F13R1_FB16 CAN_F13R1_FB16_Msk /*!<Filter bit 16 */
  3197. #define CAN_F13R1_FB17_Pos (17U)
  3198. #define CAN_F13R1_FB17_Msk (0x1U << CAN_F13R1_FB17_Pos) /*!< 0x00020000 */
  3199. #define CAN_F13R1_FB17 CAN_F13R1_FB17_Msk /*!<Filter bit 17 */
  3200. #define CAN_F13R1_FB18_Pos (18U)
  3201. #define CAN_F13R1_FB18_Msk (0x1U << CAN_F13R1_FB18_Pos) /*!< 0x00040000 */
  3202. #define CAN_F13R1_FB18 CAN_F13R1_FB18_Msk /*!<Filter bit 18 */
  3203. #define CAN_F13R1_FB19_Pos (19U)
  3204. #define CAN_F13R1_FB19_Msk (0x1U << CAN_F13R1_FB19_Pos) /*!< 0x00080000 */
  3205. #define CAN_F13R1_FB19 CAN_F13R1_FB19_Msk /*!<Filter bit 19 */
  3206. #define CAN_F13R1_FB20_Pos (20U)
  3207. #define CAN_F13R1_FB20_Msk (0x1U << CAN_F13R1_FB20_Pos) /*!< 0x00100000 */
  3208. #define CAN_F13R1_FB20 CAN_F13R1_FB20_Msk /*!<Filter bit 20 */
  3209. #define CAN_F13R1_FB21_Pos (21U)
  3210. #define CAN_F13R1_FB21_Msk (0x1U << CAN_F13R1_FB21_Pos) /*!< 0x00200000 */
  3211. #define CAN_F13R1_FB21 CAN_F13R1_FB21_Msk /*!<Filter bit 21 */
  3212. #define CAN_F13R1_FB22_Pos (22U)
  3213. #define CAN_F13R1_FB22_Msk (0x1U << CAN_F13R1_FB22_Pos) /*!< 0x00400000 */
  3214. #define CAN_F13R1_FB22 CAN_F13R1_FB22_Msk /*!<Filter bit 22 */
  3215. #define CAN_F13R1_FB23_Pos (23U)
  3216. #define CAN_F13R1_FB23_Msk (0x1U << CAN_F13R1_FB23_Pos) /*!< 0x00800000 */
  3217. #define CAN_F13R1_FB23 CAN_F13R1_FB23_Msk /*!<Filter bit 23 */
  3218. #define CAN_F13R1_FB24_Pos (24U)
  3219. #define CAN_F13R1_FB24_Msk (0x1U << CAN_F13R1_FB24_Pos) /*!< 0x01000000 */
  3220. #define CAN_F13R1_FB24 CAN_F13R1_FB24_Msk /*!<Filter bit 24 */
  3221. #define CAN_F13R1_FB25_Pos (25U)
  3222. #define CAN_F13R1_FB25_Msk (0x1U << CAN_F13R1_FB25_Pos) /*!< 0x02000000 */
  3223. #define CAN_F13R1_FB25 CAN_F13R1_FB25_Msk /*!<Filter bit 25 */
  3224. #define CAN_F13R1_FB26_Pos (26U)
  3225. #define CAN_F13R1_FB26_Msk (0x1U << CAN_F13R1_FB26_Pos) /*!< 0x04000000 */
  3226. #define CAN_F13R1_FB26 CAN_F13R1_FB26_Msk /*!<Filter bit 26 */
  3227. #define CAN_F13R1_FB27_Pos (27U)
  3228. #define CAN_F13R1_FB27_Msk (0x1U << CAN_F13R1_FB27_Pos) /*!< 0x08000000 */
  3229. #define CAN_F13R1_FB27 CAN_F13R1_FB27_Msk /*!<Filter bit 27 */
  3230. #define CAN_F13R1_FB28_Pos (28U)
  3231. #define CAN_F13R1_FB28_Msk (0x1U << CAN_F13R1_FB28_Pos) /*!< 0x10000000 */
  3232. #define CAN_F13R1_FB28 CAN_F13R1_FB28_Msk /*!<Filter bit 28 */
  3233. #define CAN_F13R1_FB29_Pos (29U)
  3234. #define CAN_F13R1_FB29_Msk (0x1U << CAN_F13R1_FB29_Pos) /*!< 0x20000000 */
  3235. #define CAN_F13R1_FB29 CAN_F13R1_FB29_Msk /*!<Filter bit 29 */
  3236. #define CAN_F13R1_FB30_Pos (30U)
  3237. #define CAN_F13R1_FB30_Msk (0x1U << CAN_F13R1_FB30_Pos) /*!< 0x40000000 */
  3238. #define CAN_F13R1_FB30 CAN_F13R1_FB30_Msk /*!<Filter bit 30 */
  3239. #define CAN_F13R1_FB31_Pos (31U)
  3240. #define CAN_F13R1_FB31_Msk (0x1U << CAN_F13R1_FB31_Pos) /*!< 0x80000000 */
  3241. #define CAN_F13R1_FB31 CAN_F13R1_FB31_Msk /*!<Filter bit 31 */
  3242. /******************* Bit definition for CAN_F0R2 register *******************/
  3243. #define CAN_F0R2_FB0_Pos (0U)
  3244. #define CAN_F0R2_FB0_Msk (0x1U << CAN_F0R2_FB0_Pos) /*!< 0x00000001 */
  3245. #define CAN_F0R2_FB0 CAN_F0R2_FB0_Msk /*!<Filter bit 0 */
  3246. #define CAN_F0R2_FB1_Pos (1U)
  3247. #define CAN_F0R2_FB1_Msk (0x1U << CAN_F0R2_FB1_Pos) /*!< 0x00000002 */
  3248. #define CAN_F0R2_FB1 CAN_F0R2_FB1_Msk /*!<Filter bit 1 */
  3249. #define CAN_F0R2_FB2_Pos (2U)
  3250. #define CAN_F0R2_FB2_Msk (0x1U << CAN_F0R2_FB2_Pos) /*!< 0x00000004 */
  3251. #define CAN_F0R2_FB2 CAN_F0R2_FB2_Msk /*!<Filter bit 2 */
  3252. #define CAN_F0R2_FB3_Pos (3U)
  3253. #define CAN_F0R2_FB3_Msk (0x1U << CAN_F0R2_FB3_Pos) /*!< 0x00000008 */
  3254. #define CAN_F0R2_FB3 CAN_F0R2_FB3_Msk /*!<Filter bit 3 */
  3255. #define CAN_F0R2_FB4_Pos (4U)
  3256. #define CAN_F0R2_FB4_Msk (0x1U << CAN_F0R2_FB4_Pos) /*!< 0x00000010 */
  3257. #define CAN_F0R2_FB4 CAN_F0R2_FB4_Msk /*!<Filter bit 4 */
  3258. #define CAN_F0R2_FB5_Pos (5U)
  3259. #define CAN_F0R2_FB5_Msk (0x1U << CAN_F0R2_FB5_Pos) /*!< 0x00000020 */
  3260. #define CAN_F0R2_FB5 CAN_F0R2_FB5_Msk /*!<Filter bit 5 */
  3261. #define CAN_F0R2_FB6_Pos (6U)
  3262. #define CAN_F0R2_FB6_Msk (0x1U << CAN_F0R2_FB6_Pos) /*!< 0x00000040 */
  3263. #define CAN_F0R2_FB6 CAN_F0R2_FB6_Msk /*!<Filter bit 6 */
  3264. #define CAN_F0R2_FB7_Pos (7U)
  3265. #define CAN_F0R2_FB7_Msk (0x1U << CAN_F0R2_FB7_Pos) /*!< 0x00000080 */
  3266. #define CAN_F0R2_FB7 CAN_F0R2_FB7_Msk /*!<Filter bit 7 */
  3267. #define CAN_F0R2_FB8_Pos (8U)
  3268. #define CAN_F0R2_FB8_Msk (0x1U << CAN_F0R2_FB8_Pos) /*!< 0x00000100 */
  3269. #define CAN_F0R2_FB8 CAN_F0R2_FB8_Msk /*!<Filter bit 8 */
  3270. #define CAN_F0R2_FB9_Pos (9U)
  3271. #define CAN_F0R2_FB9_Msk (0x1U << CAN_F0R2_FB9_Pos) /*!< 0x00000200 */
  3272. #define CAN_F0R2_FB9 CAN_F0R2_FB9_Msk /*!<Filter bit 9 */
  3273. #define CAN_F0R2_FB10_Pos (10U)
  3274. #define CAN_F0R2_FB10_Msk (0x1U << CAN_F0R2_FB10_Pos) /*!< 0x00000400 */
  3275. #define CAN_F0R2_FB10 CAN_F0R2_FB10_Msk /*!<Filter bit 10 */
  3276. #define CAN_F0R2_FB11_Pos (11U)
  3277. #define CAN_F0R2_FB11_Msk (0x1U << CAN_F0R2_FB11_Pos) /*!< 0x00000800 */
  3278. #define CAN_F0R2_FB11 CAN_F0R2_FB11_Msk /*!<Filter bit 11 */
  3279. #define CAN_F0R2_FB12_Pos (12U)
  3280. #define CAN_F0R2_FB12_Msk (0x1U << CAN_F0R2_FB12_Pos) /*!< 0x00001000 */
  3281. #define CAN_F0R2_FB12 CAN_F0R2_FB12_Msk /*!<Filter bit 12 */
  3282. #define CAN_F0R2_FB13_Pos (13U)
  3283. #define CAN_F0R2_FB13_Msk (0x1U << CAN_F0R2_FB13_Pos) /*!< 0x00002000 */
  3284. #define CAN_F0R2_FB13 CAN_F0R2_FB13_Msk /*!<Filter bit 13 */
  3285. #define CAN_F0R2_FB14_Pos (14U)
  3286. #define CAN_F0R2_FB14_Msk (0x1U << CAN_F0R2_FB14_Pos) /*!< 0x00004000 */
  3287. #define CAN_F0R2_FB14 CAN_F0R2_FB14_Msk /*!<Filter bit 14 */
  3288. #define CAN_F0R2_FB15_Pos (15U)
  3289. #define CAN_F0R2_FB15_Msk (0x1U << CAN_F0R2_FB15_Pos) /*!< 0x00008000 */
  3290. #define CAN_F0R2_FB15 CAN_F0R2_FB15_Msk /*!<Filter bit 15 */
  3291. #define CAN_F0R2_FB16_Pos (16U)
  3292. #define CAN_F0R2_FB16_Msk (0x1U << CAN_F0R2_FB16_Pos) /*!< 0x00010000 */
  3293. #define CAN_F0R2_FB16 CAN_F0R2_FB16_Msk /*!<Filter bit 16 */
  3294. #define CAN_F0R2_FB17_Pos (17U)
  3295. #define CAN_F0R2_FB17_Msk (0x1U << CAN_F0R2_FB17_Pos) /*!< 0x00020000 */
  3296. #define CAN_F0R2_FB17 CAN_F0R2_FB17_Msk /*!<Filter bit 17 */
  3297. #define CAN_F0R2_FB18_Pos (18U)
  3298. #define CAN_F0R2_FB18_Msk (0x1U << CAN_F0R2_FB18_Pos) /*!< 0x00040000 */
  3299. #define CAN_F0R2_FB18 CAN_F0R2_FB18_Msk /*!<Filter bit 18 */
  3300. #define CAN_F0R2_FB19_Pos (19U)
  3301. #define CAN_F0R2_FB19_Msk (0x1U << CAN_F0R2_FB19_Pos) /*!< 0x00080000 */
  3302. #define CAN_F0R2_FB19 CAN_F0R2_FB19_Msk /*!<Filter bit 19 */
  3303. #define CAN_F0R2_FB20_Pos (20U)
  3304. #define CAN_F0R2_FB20_Msk (0x1U << CAN_F0R2_FB20_Pos) /*!< 0x00100000 */
  3305. #define CAN_F0R2_FB20 CAN_F0R2_FB20_Msk /*!<Filter bit 20 */
  3306. #define CAN_F0R2_FB21_Pos (21U)
  3307. #define CAN_F0R2_FB21_Msk (0x1U << CAN_F0R2_FB21_Pos) /*!< 0x00200000 */
  3308. #define CAN_F0R2_FB21 CAN_F0R2_FB21_Msk /*!<Filter bit 21 */
  3309. #define CAN_F0R2_FB22_Pos (22U)
  3310. #define CAN_F0R2_FB22_Msk (0x1U << CAN_F0R2_FB22_Pos) /*!< 0x00400000 */
  3311. #define CAN_F0R2_FB22 CAN_F0R2_FB22_Msk /*!<Filter bit 22 */
  3312. #define CAN_F0R2_FB23_Pos (23U)
  3313. #define CAN_F0R2_FB23_Msk (0x1U << CAN_F0R2_FB23_Pos) /*!< 0x00800000 */
  3314. #define CAN_F0R2_FB23 CAN_F0R2_FB23_Msk /*!<Filter bit 23 */
  3315. #define CAN_F0R2_FB24_Pos (24U)
  3316. #define CAN_F0R2_FB24_Msk (0x1U << CAN_F0R2_FB24_Pos) /*!< 0x01000000 */
  3317. #define CAN_F0R2_FB24 CAN_F0R2_FB24_Msk /*!<Filter bit 24 */
  3318. #define CAN_F0R2_FB25_Pos (25U)
  3319. #define CAN_F0R2_FB25_Msk (0x1U << CAN_F0R2_FB25_Pos) /*!< 0x02000000 */
  3320. #define CAN_F0R2_FB25 CAN_F0R2_FB25_Msk /*!<Filter bit 25 */
  3321. #define CAN_F0R2_FB26_Pos (26U)
  3322. #define CAN_F0R2_FB26_Msk (0x1U << CAN_F0R2_FB26_Pos) /*!< 0x04000000 */
  3323. #define CAN_F0R2_FB26 CAN_F0R2_FB26_Msk /*!<Filter bit 26 */
  3324. #define CAN_F0R2_FB27_Pos (27U)
  3325. #define CAN_F0R2_FB27_Msk (0x1U << CAN_F0R2_FB27_Pos) /*!< 0x08000000 */
  3326. #define CAN_F0R2_FB27 CAN_F0R2_FB27_Msk /*!<Filter bit 27 */
  3327. #define CAN_F0R2_FB28_Pos (28U)
  3328. #define CAN_F0R2_FB28_Msk (0x1U << CAN_F0R2_FB28_Pos) /*!< 0x10000000 */
  3329. #define CAN_F0R2_FB28 CAN_F0R2_FB28_Msk /*!<Filter bit 28 */
  3330. #define CAN_F0R2_FB29_Pos (29U)
  3331. #define CAN_F0R2_FB29_Msk (0x1U << CAN_F0R2_FB29_Pos) /*!< 0x20000000 */
  3332. #define CAN_F0R2_FB29 CAN_F0R2_FB29_Msk /*!<Filter bit 29 */
  3333. #define CAN_F0R2_FB30_Pos (30U)
  3334. #define CAN_F0R2_FB30_Msk (0x1U << CAN_F0R2_FB30_Pos) /*!< 0x40000000 */
  3335. #define CAN_F0R2_FB30 CAN_F0R2_FB30_Msk /*!<Filter bit 30 */
  3336. #define CAN_F0R2_FB31_Pos (31U)
  3337. #define CAN_F0R2_FB31_Msk (0x1U << CAN_F0R2_FB31_Pos) /*!< 0x80000000 */
  3338. #define CAN_F0R2_FB31 CAN_F0R2_FB31_Msk /*!<Filter bit 31 */
  3339. /******************* Bit definition for CAN_F1R2 register *******************/
  3340. #define CAN_F1R2_FB0_Pos (0U)
  3341. #define CAN_F1R2_FB0_Msk (0x1U << CAN_F1R2_FB0_Pos) /*!< 0x00000001 */
  3342. #define CAN_F1R2_FB0 CAN_F1R2_FB0_Msk /*!<Filter bit 0 */
  3343. #define CAN_F1R2_FB1_Pos (1U)
  3344. #define CAN_F1R2_FB1_Msk (0x1U << CAN_F1R2_FB1_Pos) /*!< 0x00000002 */
  3345. #define CAN_F1R2_FB1 CAN_F1R2_FB1_Msk /*!<Filter bit 1 */
  3346. #define CAN_F1R2_FB2_Pos (2U)
  3347. #define CAN_F1R2_FB2_Msk (0x1U << CAN_F1R2_FB2_Pos) /*!< 0x00000004 */
  3348. #define CAN_F1R2_FB2 CAN_F1R2_FB2_Msk /*!<Filter bit 2 */
  3349. #define CAN_F1R2_FB3_Pos (3U)
  3350. #define CAN_F1R2_FB3_Msk (0x1U << CAN_F1R2_FB3_Pos) /*!< 0x00000008 */
  3351. #define CAN_F1R2_FB3 CAN_F1R2_FB3_Msk /*!<Filter bit 3 */
  3352. #define CAN_F1R2_FB4_Pos (4U)
  3353. #define CAN_F1R2_FB4_Msk (0x1U << CAN_F1R2_FB4_Pos) /*!< 0x00000010 */
  3354. #define CAN_F1R2_FB4 CAN_F1R2_FB4_Msk /*!<Filter bit 4 */
  3355. #define CAN_F1R2_FB5_Pos (5U)
  3356. #define CAN_F1R2_FB5_Msk (0x1U << CAN_F1R2_FB5_Pos) /*!< 0x00000020 */
  3357. #define CAN_F1R2_FB5 CAN_F1R2_FB5_Msk /*!<Filter bit 5 */
  3358. #define CAN_F1R2_FB6_Pos (6U)
  3359. #define CAN_F1R2_FB6_Msk (0x1U << CAN_F1R2_FB6_Pos) /*!< 0x00000040 */
  3360. #define CAN_F1R2_FB6 CAN_F1R2_FB6_Msk /*!<Filter bit 6 */
  3361. #define CAN_F1R2_FB7_Pos (7U)
  3362. #define CAN_F1R2_FB7_Msk (0x1U << CAN_F1R2_FB7_Pos) /*!< 0x00000080 */
  3363. #define CAN_F1R2_FB7 CAN_F1R2_FB7_Msk /*!<Filter bit 7 */
  3364. #define CAN_F1R2_FB8_Pos (8U)
  3365. #define CAN_F1R2_FB8_Msk (0x1U << CAN_F1R2_FB8_Pos) /*!< 0x00000100 */
  3366. #define CAN_F1R2_FB8 CAN_F1R2_FB8_Msk /*!<Filter bit 8 */
  3367. #define CAN_F1R2_FB9_Pos (9U)
  3368. #define CAN_F1R2_FB9_Msk (0x1U << CAN_F1R2_FB9_Pos) /*!< 0x00000200 */
  3369. #define CAN_F1R2_FB9 CAN_F1R2_FB9_Msk /*!<Filter bit 9 */
  3370. #define CAN_F1R2_FB10_Pos (10U)
  3371. #define CAN_F1R2_FB10_Msk (0x1U << CAN_F1R2_FB10_Pos) /*!< 0x00000400 */
  3372. #define CAN_F1R2_FB10 CAN_F1R2_FB10_Msk /*!<Filter bit 10 */
  3373. #define CAN_F1R2_FB11_Pos (11U)
  3374. #define CAN_F1R2_FB11_Msk (0x1U << CAN_F1R2_FB11_Pos) /*!< 0x00000800 */
  3375. #define CAN_F1R2_FB11 CAN_F1R2_FB11_Msk /*!<Filter bit 11 */
  3376. #define CAN_F1R2_FB12_Pos (12U)
  3377. #define CAN_F1R2_FB12_Msk (0x1U << CAN_F1R2_FB12_Pos) /*!< 0x00001000 */
  3378. #define CAN_F1R2_FB12 CAN_F1R2_FB12_Msk /*!<Filter bit 12 */
  3379. #define CAN_F1R2_FB13_Pos (13U)
  3380. #define CAN_F1R2_FB13_Msk (0x1U << CAN_F1R2_FB13_Pos) /*!< 0x00002000 */
  3381. #define CAN_F1R2_FB13 CAN_F1R2_FB13_Msk /*!<Filter bit 13 */
  3382. #define CAN_F1R2_FB14_Pos (14U)
  3383. #define CAN_F1R2_FB14_Msk (0x1U << CAN_F1R2_FB14_Pos) /*!< 0x00004000 */
  3384. #define CAN_F1R2_FB14 CAN_F1R2_FB14_Msk /*!<Filter bit 14 */
  3385. #define CAN_F1R2_FB15_Pos (15U)
  3386. #define CAN_F1R2_FB15_Msk (0x1U << CAN_F1R2_FB15_Pos) /*!< 0x00008000 */
  3387. #define CAN_F1R2_FB15 CAN_F1R2_FB15_Msk /*!<Filter bit 15 */
  3388. #define CAN_F1R2_FB16_Pos (16U)
  3389. #define CAN_F1R2_FB16_Msk (0x1U << CAN_F1R2_FB16_Pos) /*!< 0x00010000 */
  3390. #define CAN_F1R2_FB16 CAN_F1R2_FB16_Msk /*!<Filter bit 16 */
  3391. #define CAN_F1R2_FB17_Pos (17U)
  3392. #define CAN_F1R2_FB17_Msk (0x1U << CAN_F1R2_FB17_Pos) /*!< 0x00020000 */
  3393. #define CAN_F1R2_FB17 CAN_F1R2_FB17_Msk /*!<Filter bit 17 */
  3394. #define CAN_F1R2_FB18_Pos (18U)
  3395. #define CAN_F1R2_FB18_Msk (0x1U << CAN_F1R2_FB18_Pos) /*!< 0x00040000 */
  3396. #define CAN_F1R2_FB18 CAN_F1R2_FB18_Msk /*!<Filter bit 18 */
  3397. #define CAN_F1R2_FB19_Pos (19U)
  3398. #define CAN_F1R2_FB19_Msk (0x1U << CAN_F1R2_FB19_Pos) /*!< 0x00080000 */
  3399. #define CAN_F1R2_FB19 CAN_F1R2_FB19_Msk /*!<Filter bit 19 */
  3400. #define CAN_F1R2_FB20_Pos (20U)
  3401. #define CAN_F1R2_FB20_Msk (0x1U << CAN_F1R2_FB20_Pos) /*!< 0x00100000 */
  3402. #define CAN_F1R2_FB20 CAN_F1R2_FB20_Msk /*!<Filter bit 20 */
  3403. #define CAN_F1R2_FB21_Pos (21U)
  3404. #define CAN_F1R2_FB21_Msk (0x1U << CAN_F1R2_FB21_Pos) /*!< 0x00200000 */
  3405. #define CAN_F1R2_FB21 CAN_F1R2_FB21_Msk /*!<Filter bit 21 */
  3406. #define CAN_F1R2_FB22_Pos (22U)
  3407. #define CAN_F1R2_FB22_Msk (0x1U << CAN_F1R2_FB22_Pos) /*!< 0x00400000 */
  3408. #define CAN_F1R2_FB22 CAN_F1R2_FB22_Msk /*!<Filter bit 22 */
  3409. #define CAN_F1R2_FB23_Pos (23U)
  3410. #define CAN_F1R2_FB23_Msk (0x1U << CAN_F1R2_FB23_Pos) /*!< 0x00800000 */
  3411. #define CAN_F1R2_FB23 CAN_F1R2_FB23_Msk /*!<Filter bit 23 */
  3412. #define CAN_F1R2_FB24_Pos (24U)
  3413. #define CAN_F1R2_FB24_Msk (0x1U << CAN_F1R2_FB24_Pos) /*!< 0x01000000 */
  3414. #define CAN_F1R2_FB24 CAN_F1R2_FB24_Msk /*!<Filter bit 24 */
  3415. #define CAN_F1R2_FB25_Pos (25U)
  3416. #define CAN_F1R2_FB25_Msk (0x1U << CAN_F1R2_FB25_Pos) /*!< 0x02000000 */
  3417. #define CAN_F1R2_FB25 CAN_F1R2_FB25_Msk /*!<Filter bit 25 */
  3418. #define CAN_F1R2_FB26_Pos (26U)
  3419. #define CAN_F1R2_FB26_Msk (0x1U << CAN_F1R2_FB26_Pos) /*!< 0x04000000 */
  3420. #define CAN_F1R2_FB26 CAN_F1R2_FB26_Msk /*!<Filter bit 26 */
  3421. #define CAN_F1R2_FB27_Pos (27U)
  3422. #define CAN_F1R2_FB27_Msk (0x1U << CAN_F1R2_FB27_Pos) /*!< 0x08000000 */
  3423. #define CAN_F1R2_FB27 CAN_F1R2_FB27_Msk /*!<Filter bit 27 */
  3424. #define CAN_F1R2_FB28_Pos (28U)
  3425. #define CAN_F1R2_FB28_Msk (0x1U << CAN_F1R2_FB28_Pos) /*!< 0x10000000 */
  3426. #define CAN_F1R2_FB28 CAN_F1R2_FB28_Msk /*!<Filter bit 28 */
  3427. #define CAN_F1R2_FB29_Pos (29U)
  3428. #define CAN_F1R2_FB29_Msk (0x1U << CAN_F1R2_FB29_Pos) /*!< 0x20000000 */
  3429. #define CAN_F1R2_FB29 CAN_F1R2_FB29_Msk /*!<Filter bit 29 */
  3430. #define CAN_F1R2_FB30_Pos (30U)
  3431. #define CAN_F1R2_FB30_Msk (0x1U << CAN_F1R2_FB30_Pos) /*!< 0x40000000 */
  3432. #define CAN_F1R2_FB30 CAN_F1R2_FB30_Msk /*!<Filter bit 30 */
  3433. #define CAN_F1R2_FB31_Pos (31U)
  3434. #define CAN_F1R2_FB31_Msk (0x1U << CAN_F1R2_FB31_Pos) /*!< 0x80000000 */
  3435. #define CAN_F1R2_FB31 CAN_F1R2_FB31_Msk /*!<Filter bit 31 */
  3436. /******************* Bit definition for CAN_F2R2 register *******************/
  3437. #define CAN_F2R2_FB0_Pos (0U)
  3438. #define CAN_F2R2_FB0_Msk (0x1U << CAN_F2R2_FB0_Pos) /*!< 0x00000001 */
  3439. #define CAN_F2R2_FB0 CAN_F2R2_FB0_Msk /*!<Filter bit 0 */
  3440. #define CAN_F2R2_FB1_Pos (1U)
  3441. #define CAN_F2R2_FB1_Msk (0x1U << CAN_F2R2_FB1_Pos) /*!< 0x00000002 */
  3442. #define CAN_F2R2_FB1 CAN_F2R2_FB1_Msk /*!<Filter bit 1 */
  3443. #define CAN_F2R2_FB2_Pos (2U)
  3444. #define CAN_F2R2_FB2_Msk (0x1U << CAN_F2R2_FB2_Pos) /*!< 0x00000004 */
  3445. #define CAN_F2R2_FB2 CAN_F2R2_FB2_Msk /*!<Filter bit 2 */
  3446. #define CAN_F2R2_FB3_Pos (3U)
  3447. #define CAN_F2R2_FB3_Msk (0x1U << CAN_F2R2_FB3_Pos) /*!< 0x00000008 */
  3448. #define CAN_F2R2_FB3 CAN_F2R2_FB3_Msk /*!<Filter bit 3 */
  3449. #define CAN_F2R2_FB4_Pos (4U)
  3450. #define CAN_F2R2_FB4_Msk (0x1U << CAN_F2R2_FB4_Pos) /*!< 0x00000010 */
  3451. #define CAN_F2R2_FB4 CAN_F2R2_FB4_Msk /*!<Filter bit 4 */
  3452. #define CAN_F2R2_FB5_Pos (5U)
  3453. #define CAN_F2R2_FB5_Msk (0x1U << CAN_F2R2_FB5_Pos) /*!< 0x00000020 */
  3454. #define CAN_F2R2_FB5 CAN_F2R2_FB5_Msk /*!<Filter bit 5 */
  3455. #define CAN_F2R2_FB6_Pos (6U)
  3456. #define CAN_F2R2_FB6_Msk (0x1U << CAN_F2R2_FB6_Pos) /*!< 0x00000040 */
  3457. #define CAN_F2R2_FB6 CAN_F2R2_FB6_Msk /*!<Filter bit 6 */
  3458. #define CAN_F2R2_FB7_Pos (7U)
  3459. #define CAN_F2R2_FB7_Msk (0x1U << CAN_F2R2_FB7_Pos) /*!< 0x00000080 */
  3460. #define CAN_F2R2_FB7 CAN_F2R2_FB7_Msk /*!<Filter bit 7 */
  3461. #define CAN_F2R2_FB8_Pos (8U)
  3462. #define CAN_F2R2_FB8_Msk (0x1U << CAN_F2R2_FB8_Pos) /*!< 0x00000100 */
  3463. #define CAN_F2R2_FB8 CAN_F2R2_FB8_Msk /*!<Filter bit 8 */
  3464. #define CAN_F2R2_FB9_Pos (9U)
  3465. #define CAN_F2R2_FB9_Msk (0x1U << CAN_F2R2_FB9_Pos) /*!< 0x00000200 */
  3466. #define CAN_F2R2_FB9 CAN_F2R2_FB9_Msk /*!<Filter bit 9 */
  3467. #define CAN_F2R2_FB10_Pos (10U)
  3468. #define CAN_F2R2_FB10_Msk (0x1U << CAN_F2R2_FB10_Pos) /*!< 0x00000400 */
  3469. #define CAN_F2R2_FB10 CAN_F2R2_FB10_Msk /*!<Filter bit 10 */
  3470. #define CAN_F2R2_FB11_Pos (11U)
  3471. #define CAN_F2R2_FB11_Msk (0x1U << CAN_F2R2_FB11_Pos) /*!< 0x00000800 */
  3472. #define CAN_F2R2_FB11 CAN_F2R2_FB11_Msk /*!<Filter bit 11 */
  3473. #define CAN_F2R2_FB12_Pos (12U)
  3474. #define CAN_F2R2_FB12_Msk (0x1U << CAN_F2R2_FB12_Pos) /*!< 0x00001000 */
  3475. #define CAN_F2R2_FB12 CAN_F2R2_FB12_Msk /*!<Filter bit 12 */
  3476. #define CAN_F2R2_FB13_Pos (13U)
  3477. #define CAN_F2R2_FB13_Msk (0x1U << CAN_F2R2_FB13_Pos) /*!< 0x00002000 */
  3478. #define CAN_F2R2_FB13 CAN_F2R2_FB13_Msk /*!<Filter bit 13 */
  3479. #define CAN_F2R2_FB14_Pos (14U)
  3480. #define CAN_F2R2_FB14_Msk (0x1U << CAN_F2R2_FB14_Pos) /*!< 0x00004000 */
  3481. #define CAN_F2R2_FB14 CAN_F2R2_FB14_Msk /*!<Filter bit 14 */
  3482. #define CAN_F2R2_FB15_Pos (15U)
  3483. #define CAN_F2R2_FB15_Msk (0x1U << CAN_F2R2_FB15_Pos) /*!< 0x00008000 */
  3484. #define CAN_F2R2_FB15 CAN_F2R2_FB15_Msk /*!<Filter bit 15 */
  3485. #define CAN_F2R2_FB16_Pos (16U)
  3486. #define CAN_F2R2_FB16_Msk (0x1U << CAN_F2R2_FB16_Pos) /*!< 0x00010000 */
  3487. #define CAN_F2R2_FB16 CAN_F2R2_FB16_Msk /*!<Filter bit 16 */
  3488. #define CAN_F2R2_FB17_Pos (17U)
  3489. #define CAN_F2R2_FB17_Msk (0x1U << CAN_F2R2_FB17_Pos) /*!< 0x00020000 */
  3490. #define CAN_F2R2_FB17 CAN_F2R2_FB17_Msk /*!<Filter bit 17 */
  3491. #define CAN_F2R2_FB18_Pos (18U)
  3492. #define CAN_F2R2_FB18_Msk (0x1U << CAN_F2R2_FB18_Pos) /*!< 0x00040000 */
  3493. #define CAN_F2R2_FB18 CAN_F2R2_FB18_Msk /*!<Filter bit 18 */
  3494. #define CAN_F2R2_FB19_Pos (19U)
  3495. #define CAN_F2R2_FB19_Msk (0x1U << CAN_F2R2_FB19_Pos) /*!< 0x00080000 */
  3496. #define CAN_F2R2_FB19 CAN_F2R2_FB19_Msk /*!<Filter bit 19 */
  3497. #define CAN_F2R2_FB20_Pos (20U)
  3498. #define CAN_F2R2_FB20_Msk (0x1U << CAN_F2R2_FB20_Pos) /*!< 0x00100000 */
  3499. #define CAN_F2R2_FB20 CAN_F2R2_FB20_Msk /*!<Filter bit 20 */
  3500. #define CAN_F2R2_FB21_Pos (21U)
  3501. #define CAN_F2R2_FB21_Msk (0x1U << CAN_F2R2_FB21_Pos) /*!< 0x00200000 */
  3502. #define CAN_F2R2_FB21 CAN_F2R2_FB21_Msk /*!<Filter bit 21 */
  3503. #define CAN_F2R2_FB22_Pos (22U)
  3504. #define CAN_F2R2_FB22_Msk (0x1U << CAN_F2R2_FB22_Pos) /*!< 0x00400000 */
  3505. #define CAN_F2R2_FB22 CAN_F2R2_FB22_Msk /*!<Filter bit 22 */
  3506. #define CAN_F2R2_FB23_Pos (23U)
  3507. #define CAN_F2R2_FB23_Msk (0x1U << CAN_F2R2_FB23_Pos) /*!< 0x00800000 */
  3508. #define CAN_F2R2_FB23 CAN_F2R2_FB23_Msk /*!<Filter bit 23 */
  3509. #define CAN_F2R2_FB24_Pos (24U)
  3510. #define CAN_F2R2_FB24_Msk (0x1U << CAN_F2R2_FB24_Pos) /*!< 0x01000000 */
  3511. #define CAN_F2R2_FB24 CAN_F2R2_FB24_Msk /*!<Filter bit 24 */
  3512. #define CAN_F2R2_FB25_Pos (25U)
  3513. #define CAN_F2R2_FB25_Msk (0x1U << CAN_F2R2_FB25_Pos) /*!< 0x02000000 */
  3514. #define CAN_F2R2_FB25 CAN_F2R2_FB25_Msk /*!<Filter bit 25 */
  3515. #define CAN_F2R2_FB26_Pos (26U)
  3516. #define CAN_F2R2_FB26_Msk (0x1U << CAN_F2R2_FB26_Pos) /*!< 0x04000000 */
  3517. #define CAN_F2R2_FB26 CAN_F2R2_FB26_Msk /*!<Filter bit 26 */
  3518. #define CAN_F2R2_FB27_Pos (27U)
  3519. #define CAN_F2R2_FB27_Msk (0x1U << CAN_F2R2_FB27_Pos) /*!< 0x08000000 */
  3520. #define CAN_F2R2_FB27 CAN_F2R2_FB27_Msk /*!<Filter bit 27 */
  3521. #define CAN_F2R2_FB28_Pos (28U)
  3522. #define CAN_F2R2_FB28_Msk (0x1U << CAN_F2R2_FB28_Pos) /*!< 0x10000000 */
  3523. #define CAN_F2R2_FB28 CAN_F2R2_FB28_Msk /*!<Filter bit 28 */
  3524. #define CAN_F2R2_FB29_Pos (29U)
  3525. #define CAN_F2R2_FB29_Msk (0x1U << CAN_F2R2_FB29_Pos) /*!< 0x20000000 */
  3526. #define CAN_F2R2_FB29 CAN_F2R2_FB29_Msk /*!<Filter bit 29 */
  3527. #define CAN_F2R2_FB30_Pos (30U)
  3528. #define CAN_F2R2_FB30_Msk (0x1U << CAN_F2R2_FB30_Pos) /*!< 0x40000000 */
  3529. #define CAN_F2R2_FB30 CAN_F2R2_FB30_Msk /*!<Filter bit 30 */
  3530. #define CAN_F2R2_FB31_Pos (31U)
  3531. #define CAN_F2R2_FB31_Msk (0x1U << CAN_F2R2_FB31_Pos) /*!< 0x80000000 */
  3532. #define CAN_F2R2_FB31 CAN_F2R2_FB31_Msk /*!<Filter bit 31 */
  3533. /******************* Bit definition for CAN_F3R2 register *******************/
  3534. #define CAN_F3R2_FB0_Pos (0U)
  3535. #define CAN_F3R2_FB0_Msk (0x1U << CAN_F3R2_FB0_Pos) /*!< 0x00000001 */
  3536. #define CAN_F3R2_FB0 CAN_F3R2_FB0_Msk /*!<Filter bit 0 */
  3537. #define CAN_F3R2_FB1_Pos (1U)
  3538. #define CAN_F3R2_FB1_Msk (0x1U << CAN_F3R2_FB1_Pos) /*!< 0x00000002 */
  3539. #define CAN_F3R2_FB1 CAN_F3R2_FB1_Msk /*!<Filter bit 1 */
  3540. #define CAN_F3R2_FB2_Pos (2U)
  3541. #define CAN_F3R2_FB2_Msk (0x1U << CAN_F3R2_FB2_Pos) /*!< 0x00000004 */
  3542. #define CAN_F3R2_FB2 CAN_F3R2_FB2_Msk /*!<Filter bit 2 */
  3543. #define CAN_F3R2_FB3_Pos (3U)
  3544. #define CAN_F3R2_FB3_Msk (0x1U << CAN_F3R2_FB3_Pos) /*!< 0x00000008 */
  3545. #define CAN_F3R2_FB3 CAN_F3R2_FB3_Msk /*!<Filter bit 3 */
  3546. #define CAN_F3R2_FB4_Pos (4U)
  3547. #define CAN_F3R2_FB4_Msk (0x1U << CAN_F3R2_FB4_Pos) /*!< 0x00000010 */
  3548. #define CAN_F3R2_FB4 CAN_F3R2_FB4_Msk /*!<Filter bit 4 */
  3549. #define CAN_F3R2_FB5_Pos (5U)
  3550. #define CAN_F3R2_FB5_Msk (0x1U << CAN_F3R2_FB5_Pos) /*!< 0x00000020 */
  3551. #define CAN_F3R2_FB5 CAN_F3R2_FB5_Msk /*!<Filter bit 5 */
  3552. #define CAN_F3R2_FB6_Pos (6U)
  3553. #define CAN_F3R2_FB6_Msk (0x1U << CAN_F3R2_FB6_Pos) /*!< 0x00000040 */
  3554. #define CAN_F3R2_FB6 CAN_F3R2_FB6_Msk /*!<Filter bit 6 */
  3555. #define CAN_F3R2_FB7_Pos (7U)
  3556. #define CAN_F3R2_FB7_Msk (0x1U << CAN_F3R2_FB7_Pos) /*!< 0x00000080 */
  3557. #define CAN_F3R2_FB7 CAN_F3R2_FB7_Msk /*!<Filter bit 7 */
  3558. #define CAN_F3R2_FB8_Pos (8U)
  3559. #define CAN_F3R2_FB8_Msk (0x1U << CAN_F3R2_FB8_Pos) /*!< 0x00000100 */
  3560. #define CAN_F3R2_FB8 CAN_F3R2_FB8_Msk /*!<Filter bit 8 */
  3561. #define CAN_F3R2_FB9_Pos (9U)
  3562. #define CAN_F3R2_FB9_Msk (0x1U << CAN_F3R2_FB9_Pos) /*!< 0x00000200 */
  3563. #define CAN_F3R2_FB9 CAN_F3R2_FB9_Msk /*!<Filter bit 9 */
  3564. #define CAN_F3R2_FB10_Pos (10U)
  3565. #define CAN_F3R2_FB10_Msk (0x1U << CAN_F3R2_FB10_Pos) /*!< 0x00000400 */
  3566. #define CAN_F3R2_FB10 CAN_F3R2_FB10_Msk /*!<Filter bit 10 */
  3567. #define CAN_F3R2_FB11_Pos (11U)
  3568. #define CAN_F3R2_FB11_Msk (0x1U << CAN_F3R2_FB11_Pos) /*!< 0x00000800 */
  3569. #define CAN_F3R2_FB11 CAN_F3R2_FB11_Msk /*!<Filter bit 11 */
  3570. #define CAN_F3R2_FB12_Pos (12U)
  3571. #define CAN_F3R2_FB12_Msk (0x1U << CAN_F3R2_FB12_Pos) /*!< 0x00001000 */
  3572. #define CAN_F3R2_FB12 CAN_F3R2_FB12_Msk /*!<Filter bit 12 */
  3573. #define CAN_F3R2_FB13_Pos (13U)
  3574. #define CAN_F3R2_FB13_Msk (0x1U << CAN_F3R2_FB13_Pos) /*!< 0x00002000 */
  3575. #define CAN_F3R2_FB13 CAN_F3R2_FB13_Msk /*!<Filter bit 13 */
  3576. #define CAN_F3R2_FB14_Pos (14U)
  3577. #define CAN_F3R2_FB14_Msk (0x1U << CAN_F3R2_FB14_Pos) /*!< 0x00004000 */
  3578. #define CAN_F3R2_FB14 CAN_F3R2_FB14_Msk /*!<Filter bit 14 */
  3579. #define CAN_F3R2_FB15_Pos (15U)
  3580. #define CAN_F3R2_FB15_Msk (0x1U << CAN_F3R2_FB15_Pos) /*!< 0x00008000 */
  3581. #define CAN_F3R2_FB15 CAN_F3R2_FB15_Msk /*!<Filter bit 15 */
  3582. #define CAN_F3R2_FB16_Pos (16U)
  3583. #define CAN_F3R2_FB16_Msk (0x1U << CAN_F3R2_FB16_Pos) /*!< 0x00010000 */
  3584. #define CAN_F3R2_FB16 CAN_F3R2_FB16_Msk /*!<Filter bit 16 */
  3585. #define CAN_F3R2_FB17_Pos (17U)
  3586. #define CAN_F3R2_FB17_Msk (0x1U << CAN_F3R2_FB17_Pos) /*!< 0x00020000 */
  3587. #define CAN_F3R2_FB17 CAN_F3R2_FB17_Msk /*!<Filter bit 17 */
  3588. #define CAN_F3R2_FB18_Pos (18U)
  3589. #define CAN_F3R2_FB18_Msk (0x1U << CAN_F3R2_FB18_Pos) /*!< 0x00040000 */
  3590. #define CAN_F3R2_FB18 CAN_F3R2_FB18_Msk /*!<Filter bit 18 */
  3591. #define CAN_F3R2_FB19_Pos (19U)
  3592. #define CAN_F3R2_FB19_Msk (0x1U << CAN_F3R2_FB19_Pos) /*!< 0x00080000 */
  3593. #define CAN_F3R2_FB19 CAN_F3R2_FB19_Msk /*!<Filter bit 19 */
  3594. #define CAN_F3R2_FB20_Pos (20U)
  3595. #define CAN_F3R2_FB20_Msk (0x1U << CAN_F3R2_FB20_Pos) /*!< 0x00100000 */
  3596. #define CAN_F3R2_FB20 CAN_F3R2_FB20_Msk /*!<Filter bit 20 */
  3597. #define CAN_F3R2_FB21_Pos (21U)
  3598. #define CAN_F3R2_FB21_Msk (0x1U << CAN_F3R2_FB21_Pos) /*!< 0x00200000 */
  3599. #define CAN_F3R2_FB21 CAN_F3R2_FB21_Msk /*!<Filter bit 21 */
  3600. #define CAN_F3R2_FB22_Pos (22U)
  3601. #define CAN_F3R2_FB22_Msk (0x1U << CAN_F3R2_FB22_Pos) /*!< 0x00400000 */
  3602. #define CAN_F3R2_FB22 CAN_F3R2_FB22_Msk /*!<Filter bit 22 */
  3603. #define CAN_F3R2_FB23_Pos (23U)
  3604. #define CAN_F3R2_FB23_Msk (0x1U << CAN_F3R2_FB23_Pos) /*!< 0x00800000 */
  3605. #define CAN_F3R2_FB23 CAN_F3R2_FB23_Msk /*!<Filter bit 23 */
  3606. #define CAN_F3R2_FB24_Pos (24U)
  3607. #define CAN_F3R2_FB24_Msk (0x1U << CAN_F3R2_FB24_Pos) /*!< 0x01000000 */
  3608. #define CAN_F3R2_FB24 CAN_F3R2_FB24_Msk /*!<Filter bit 24 */
  3609. #define CAN_F3R2_FB25_Pos (25U)
  3610. #define CAN_F3R2_FB25_Msk (0x1U << CAN_F3R2_FB25_Pos) /*!< 0x02000000 */
  3611. #define CAN_F3R2_FB25 CAN_F3R2_FB25_Msk /*!<Filter bit 25 */
  3612. #define CAN_F3R2_FB26_Pos (26U)
  3613. #define CAN_F3R2_FB26_Msk (0x1U << CAN_F3R2_FB26_Pos) /*!< 0x04000000 */
  3614. #define CAN_F3R2_FB26 CAN_F3R2_FB26_Msk /*!<Filter bit 26 */
  3615. #define CAN_F3R2_FB27_Pos (27U)
  3616. #define CAN_F3R2_FB27_Msk (0x1U << CAN_F3R2_FB27_Pos) /*!< 0x08000000 */
  3617. #define CAN_F3R2_FB27 CAN_F3R2_FB27_Msk /*!<Filter bit 27 */
  3618. #define CAN_F3R2_FB28_Pos (28U)
  3619. #define CAN_F3R2_FB28_Msk (0x1U << CAN_F3R2_FB28_Pos) /*!< 0x10000000 */
  3620. #define CAN_F3R2_FB28 CAN_F3R2_FB28_Msk /*!<Filter bit 28 */
  3621. #define CAN_F3R2_FB29_Pos (29U)
  3622. #define CAN_F3R2_FB29_Msk (0x1U << CAN_F3R2_FB29_Pos) /*!< 0x20000000 */
  3623. #define CAN_F3R2_FB29 CAN_F3R2_FB29_Msk /*!<Filter bit 29 */
  3624. #define CAN_F3R2_FB30_Pos (30U)
  3625. #define CAN_F3R2_FB30_Msk (0x1U << CAN_F3R2_FB30_Pos) /*!< 0x40000000 */
  3626. #define CAN_F3R2_FB30 CAN_F3R2_FB30_Msk /*!<Filter bit 30 */
  3627. #define CAN_F3R2_FB31_Pos (31U)
  3628. #define CAN_F3R2_FB31_Msk (0x1U << CAN_F3R2_FB31_Pos) /*!< 0x80000000 */
  3629. #define CAN_F3R2_FB31 CAN_F3R2_FB31_Msk /*!<Filter bit 31 */
  3630. /******************* Bit definition for CAN_F4R2 register *******************/
  3631. #define CAN_F4R2_FB0_Pos (0U)
  3632. #define CAN_F4R2_FB0_Msk (0x1U << CAN_F4R2_FB0_Pos) /*!< 0x00000001 */
  3633. #define CAN_F4R2_FB0 CAN_F4R2_FB0_Msk /*!<Filter bit 0 */
  3634. #define CAN_F4R2_FB1_Pos (1U)
  3635. #define CAN_F4R2_FB1_Msk (0x1U << CAN_F4R2_FB1_Pos) /*!< 0x00000002 */
  3636. #define CAN_F4R2_FB1 CAN_F4R2_FB1_Msk /*!<Filter bit 1 */
  3637. #define CAN_F4R2_FB2_Pos (2U)
  3638. #define CAN_F4R2_FB2_Msk (0x1U << CAN_F4R2_FB2_Pos) /*!< 0x00000004 */
  3639. #define CAN_F4R2_FB2 CAN_F4R2_FB2_Msk /*!<Filter bit 2 */
  3640. #define CAN_F4R2_FB3_Pos (3U)
  3641. #define CAN_F4R2_FB3_Msk (0x1U << CAN_F4R2_FB3_Pos) /*!< 0x00000008 */
  3642. #define CAN_F4R2_FB3 CAN_F4R2_FB3_Msk /*!<Filter bit 3 */
  3643. #define CAN_F4R2_FB4_Pos (4U)
  3644. #define CAN_F4R2_FB4_Msk (0x1U << CAN_F4R2_FB4_Pos) /*!< 0x00000010 */
  3645. #define CAN_F4R2_FB4 CAN_F4R2_FB4_Msk /*!<Filter bit 4 */
  3646. #define CAN_F4R2_FB5_Pos (5U)
  3647. #define CAN_F4R2_FB5_Msk (0x1U << CAN_F4R2_FB5_Pos) /*!< 0x00000020 */
  3648. #define CAN_F4R2_FB5 CAN_F4R2_FB5_Msk /*!<Filter bit 5 */
  3649. #define CAN_F4R2_FB6_Pos (6U)
  3650. #define CAN_F4R2_FB6_Msk (0x1U << CAN_F4R2_FB6_Pos) /*!< 0x00000040 */
  3651. #define CAN_F4R2_FB6 CAN_F4R2_FB6_Msk /*!<Filter bit 6 */
  3652. #define CAN_F4R2_FB7_Pos (7U)
  3653. #define CAN_F4R2_FB7_Msk (0x1U << CAN_F4R2_FB7_Pos) /*!< 0x00000080 */
  3654. #define CAN_F4R2_FB7 CAN_F4R2_FB7_Msk /*!<Filter bit 7 */
  3655. #define CAN_F4R2_FB8_Pos (8U)
  3656. #define CAN_F4R2_FB8_Msk (0x1U << CAN_F4R2_FB8_Pos) /*!< 0x00000100 */
  3657. #define CAN_F4R2_FB8 CAN_F4R2_FB8_Msk /*!<Filter bit 8 */
  3658. #define CAN_F4R2_FB9_Pos (9U)
  3659. #define CAN_F4R2_FB9_Msk (0x1U << CAN_F4R2_FB9_Pos) /*!< 0x00000200 */
  3660. #define CAN_F4R2_FB9 CAN_F4R2_FB9_Msk /*!<Filter bit 9 */
  3661. #define CAN_F4R2_FB10_Pos (10U)
  3662. #define CAN_F4R2_FB10_Msk (0x1U << CAN_F4R2_FB10_Pos) /*!< 0x00000400 */
  3663. #define CAN_F4R2_FB10 CAN_F4R2_FB10_Msk /*!<Filter bit 10 */
  3664. #define CAN_F4R2_FB11_Pos (11U)
  3665. #define CAN_F4R2_FB11_Msk (0x1U << CAN_F4R2_FB11_Pos) /*!< 0x00000800 */
  3666. #define CAN_F4R2_FB11 CAN_F4R2_FB11_Msk /*!<Filter bit 11 */
  3667. #define CAN_F4R2_FB12_Pos (12U)
  3668. #define CAN_F4R2_FB12_Msk (0x1U << CAN_F4R2_FB12_Pos) /*!< 0x00001000 */
  3669. #define CAN_F4R2_FB12 CAN_F4R2_FB12_Msk /*!<Filter bit 12 */
  3670. #define CAN_F4R2_FB13_Pos (13U)
  3671. #define CAN_F4R2_FB13_Msk (0x1U << CAN_F4R2_FB13_Pos) /*!< 0x00002000 */
  3672. #define CAN_F4R2_FB13 CAN_F4R2_FB13_Msk /*!<Filter bit 13 */
  3673. #define CAN_F4R2_FB14_Pos (14U)
  3674. #define CAN_F4R2_FB14_Msk (0x1U << CAN_F4R2_FB14_Pos) /*!< 0x00004000 */
  3675. #define CAN_F4R2_FB14 CAN_F4R2_FB14_Msk /*!<Filter bit 14 */
  3676. #define CAN_F4R2_FB15_Pos (15U)
  3677. #define CAN_F4R2_FB15_Msk (0x1U << CAN_F4R2_FB15_Pos) /*!< 0x00008000 */
  3678. #define CAN_F4R2_FB15 CAN_F4R2_FB15_Msk /*!<Filter bit 15 */
  3679. #define CAN_F4R2_FB16_Pos (16U)
  3680. #define CAN_F4R2_FB16_Msk (0x1U << CAN_F4R2_FB16_Pos) /*!< 0x00010000 */
  3681. #define CAN_F4R2_FB16 CAN_F4R2_FB16_Msk /*!<Filter bit 16 */
  3682. #define CAN_F4R2_FB17_Pos (17U)
  3683. #define CAN_F4R2_FB17_Msk (0x1U << CAN_F4R2_FB17_Pos) /*!< 0x00020000 */
  3684. #define CAN_F4R2_FB17 CAN_F4R2_FB17_Msk /*!<Filter bit 17 */
  3685. #define CAN_F4R2_FB18_Pos (18U)
  3686. #define CAN_F4R2_FB18_Msk (0x1U << CAN_F4R2_FB18_Pos) /*!< 0x00040000 */
  3687. #define CAN_F4R2_FB18 CAN_F4R2_FB18_Msk /*!<Filter bit 18 */
  3688. #define CAN_F4R2_FB19_Pos (19U)
  3689. #define CAN_F4R2_FB19_Msk (0x1U << CAN_F4R2_FB19_Pos) /*!< 0x00080000 */
  3690. #define CAN_F4R2_FB19 CAN_F4R2_FB19_Msk /*!<Filter bit 19 */
  3691. #define CAN_F4R2_FB20_Pos (20U)
  3692. #define CAN_F4R2_FB20_Msk (0x1U << CAN_F4R2_FB20_Pos) /*!< 0x00100000 */
  3693. #define CAN_F4R2_FB20 CAN_F4R2_FB20_Msk /*!<Filter bit 20 */
  3694. #define CAN_F4R2_FB21_Pos (21U)
  3695. #define CAN_F4R2_FB21_Msk (0x1U << CAN_F4R2_FB21_Pos) /*!< 0x00200000 */
  3696. #define CAN_F4R2_FB21 CAN_F4R2_FB21_Msk /*!<Filter bit 21 */
  3697. #define CAN_F4R2_FB22_Pos (22U)
  3698. #define CAN_F4R2_FB22_Msk (0x1U << CAN_F4R2_FB22_Pos) /*!< 0x00400000 */
  3699. #define CAN_F4R2_FB22 CAN_F4R2_FB22_Msk /*!<Filter bit 22 */
  3700. #define CAN_F4R2_FB23_Pos (23U)
  3701. #define CAN_F4R2_FB23_Msk (0x1U << CAN_F4R2_FB23_Pos) /*!< 0x00800000 */
  3702. #define CAN_F4R2_FB23 CAN_F4R2_FB23_Msk /*!<Filter bit 23 */
  3703. #define CAN_F4R2_FB24_Pos (24U)
  3704. #define CAN_F4R2_FB24_Msk (0x1U << CAN_F4R2_FB24_Pos) /*!< 0x01000000 */
  3705. #define CAN_F4R2_FB24 CAN_F4R2_FB24_Msk /*!<Filter bit 24 */
  3706. #define CAN_F4R2_FB25_Pos (25U)
  3707. #define CAN_F4R2_FB25_Msk (0x1U << CAN_F4R2_FB25_Pos) /*!< 0x02000000 */
  3708. #define CAN_F4R2_FB25 CAN_F4R2_FB25_Msk /*!<Filter bit 25 */
  3709. #define CAN_F4R2_FB26_Pos (26U)
  3710. #define CAN_F4R2_FB26_Msk (0x1U << CAN_F4R2_FB26_Pos) /*!< 0x04000000 */
  3711. #define CAN_F4R2_FB26 CAN_F4R2_FB26_Msk /*!<Filter bit 26 */
  3712. #define CAN_F4R2_FB27_Pos (27U)
  3713. #define CAN_F4R2_FB27_Msk (0x1U << CAN_F4R2_FB27_Pos) /*!< 0x08000000 */
  3714. #define CAN_F4R2_FB27 CAN_F4R2_FB27_Msk /*!<Filter bit 27 */
  3715. #define CAN_F4R2_FB28_Pos (28U)
  3716. #define CAN_F4R2_FB28_Msk (0x1U << CAN_F4R2_FB28_Pos) /*!< 0x10000000 */
  3717. #define CAN_F4R2_FB28 CAN_F4R2_FB28_Msk /*!<Filter bit 28 */
  3718. #define CAN_F4R2_FB29_Pos (29U)
  3719. #define CAN_F4R2_FB29_Msk (0x1U << CAN_F4R2_FB29_Pos) /*!< 0x20000000 */
  3720. #define CAN_F4R2_FB29 CAN_F4R2_FB29_Msk /*!<Filter bit 29 */
  3721. #define CAN_F4R2_FB30_Pos (30U)
  3722. #define CAN_F4R2_FB30_Msk (0x1U << CAN_F4R2_FB30_Pos) /*!< 0x40000000 */
  3723. #define CAN_F4R2_FB30 CAN_F4R2_FB30_Msk /*!<Filter bit 30 */
  3724. #define CAN_F4R2_FB31_Pos (31U)
  3725. #define CAN_F4R2_FB31_Msk (0x1U << CAN_F4R2_FB31_Pos) /*!< 0x80000000 */
  3726. #define CAN_F4R2_FB31 CAN_F4R2_FB31_Msk /*!<Filter bit 31 */
  3727. /******************* Bit definition for CAN_F5R2 register *******************/
  3728. #define CAN_F5R2_FB0_Pos (0U)
  3729. #define CAN_F5R2_FB0_Msk (0x1U << CAN_F5R2_FB0_Pos) /*!< 0x00000001 */
  3730. #define CAN_F5R2_FB0 CAN_F5R2_FB0_Msk /*!<Filter bit 0 */
  3731. #define CAN_F5R2_FB1_Pos (1U)
  3732. #define CAN_F5R2_FB1_Msk (0x1U << CAN_F5R2_FB1_Pos) /*!< 0x00000002 */
  3733. #define CAN_F5R2_FB1 CAN_F5R2_FB1_Msk /*!<Filter bit 1 */
  3734. #define CAN_F5R2_FB2_Pos (2U)
  3735. #define CAN_F5R2_FB2_Msk (0x1U << CAN_F5R2_FB2_Pos) /*!< 0x00000004 */
  3736. #define CAN_F5R2_FB2 CAN_F5R2_FB2_Msk /*!<Filter bit 2 */
  3737. #define CAN_F5R2_FB3_Pos (3U)
  3738. #define CAN_F5R2_FB3_Msk (0x1U << CAN_F5R2_FB3_Pos) /*!< 0x00000008 */
  3739. #define CAN_F5R2_FB3 CAN_F5R2_FB3_Msk /*!<Filter bit 3 */
  3740. #define CAN_F5R2_FB4_Pos (4U)
  3741. #define CAN_F5R2_FB4_Msk (0x1U << CAN_F5R2_FB4_Pos) /*!< 0x00000010 */
  3742. #define CAN_F5R2_FB4 CAN_F5R2_FB4_Msk /*!<Filter bit 4 */
  3743. #define CAN_F5R2_FB5_Pos (5U)
  3744. #define CAN_F5R2_FB5_Msk (0x1U << CAN_F5R2_FB5_Pos) /*!< 0x00000020 */
  3745. #define CAN_F5R2_FB5 CAN_F5R2_FB5_Msk /*!<Filter bit 5 */
  3746. #define CAN_F5R2_FB6_Pos (6U)
  3747. #define CAN_F5R2_FB6_Msk (0x1U << CAN_F5R2_FB6_Pos) /*!< 0x00000040 */
  3748. #define CAN_F5R2_FB6 CAN_F5R2_FB6_Msk /*!<Filter bit 6 */
  3749. #define CAN_F5R2_FB7_Pos (7U)
  3750. #define CAN_F5R2_FB7_Msk (0x1U << CAN_F5R2_FB7_Pos) /*!< 0x00000080 */
  3751. #define CAN_F5R2_FB7 CAN_F5R2_FB7_Msk /*!<Filter bit 7 */
  3752. #define CAN_F5R2_FB8_Pos (8U)
  3753. #define CAN_F5R2_FB8_Msk (0x1U << CAN_F5R2_FB8_Pos) /*!< 0x00000100 */
  3754. #define CAN_F5R2_FB8 CAN_F5R2_FB8_Msk /*!<Filter bit 8 */
  3755. #define CAN_F5R2_FB9_Pos (9U)
  3756. #define CAN_F5R2_FB9_Msk (0x1U << CAN_F5R2_FB9_Pos) /*!< 0x00000200 */
  3757. #define CAN_F5R2_FB9 CAN_F5R2_FB9_Msk /*!<Filter bit 9 */
  3758. #define CAN_F5R2_FB10_Pos (10U)
  3759. #define CAN_F5R2_FB10_Msk (0x1U << CAN_F5R2_FB10_Pos) /*!< 0x00000400 */
  3760. #define CAN_F5R2_FB10 CAN_F5R2_FB10_Msk /*!<Filter bit 10 */
  3761. #define CAN_F5R2_FB11_Pos (11U)
  3762. #define CAN_F5R2_FB11_Msk (0x1U << CAN_F5R2_FB11_Pos) /*!< 0x00000800 */
  3763. #define CAN_F5R2_FB11 CAN_F5R2_FB11_Msk /*!<Filter bit 11 */
  3764. #define CAN_F5R2_FB12_Pos (12U)
  3765. #define CAN_F5R2_FB12_Msk (0x1U << CAN_F5R2_FB12_Pos) /*!< 0x00001000 */
  3766. #define CAN_F5R2_FB12 CAN_F5R2_FB12_Msk /*!<Filter bit 12 */
  3767. #define CAN_F5R2_FB13_Pos (13U)
  3768. #define CAN_F5R2_FB13_Msk (0x1U << CAN_F5R2_FB13_Pos) /*!< 0x00002000 */
  3769. #define CAN_F5R2_FB13 CAN_F5R2_FB13_Msk /*!<Filter bit 13 */
  3770. #define CAN_F5R2_FB14_Pos (14U)
  3771. #define CAN_F5R2_FB14_Msk (0x1U << CAN_F5R2_FB14_Pos) /*!< 0x00004000 */
  3772. #define CAN_F5R2_FB14 CAN_F5R2_FB14_Msk /*!<Filter bit 14 */
  3773. #define CAN_F5R2_FB15_Pos (15U)
  3774. #define CAN_F5R2_FB15_Msk (0x1U << CAN_F5R2_FB15_Pos) /*!< 0x00008000 */
  3775. #define CAN_F5R2_FB15 CAN_F5R2_FB15_Msk /*!<Filter bit 15 */
  3776. #define CAN_F5R2_FB16_Pos (16U)
  3777. #define CAN_F5R2_FB16_Msk (0x1U << CAN_F5R2_FB16_Pos) /*!< 0x00010000 */
  3778. #define CAN_F5R2_FB16 CAN_F5R2_FB16_Msk /*!<Filter bit 16 */
  3779. #define CAN_F5R2_FB17_Pos (17U)
  3780. #define CAN_F5R2_FB17_Msk (0x1U << CAN_F5R2_FB17_Pos) /*!< 0x00020000 */
  3781. #define CAN_F5R2_FB17 CAN_F5R2_FB17_Msk /*!<Filter bit 17 */
  3782. #define CAN_F5R2_FB18_Pos (18U)
  3783. #define CAN_F5R2_FB18_Msk (0x1U << CAN_F5R2_FB18_Pos) /*!< 0x00040000 */
  3784. #define CAN_F5R2_FB18 CAN_F5R2_FB18_Msk /*!<Filter bit 18 */
  3785. #define CAN_F5R2_FB19_Pos (19U)
  3786. #define CAN_F5R2_FB19_Msk (0x1U << CAN_F5R2_FB19_Pos) /*!< 0x00080000 */
  3787. #define CAN_F5R2_FB19 CAN_F5R2_FB19_Msk /*!<Filter bit 19 */
  3788. #define CAN_F5R2_FB20_Pos (20U)
  3789. #define CAN_F5R2_FB20_Msk (0x1U << CAN_F5R2_FB20_Pos) /*!< 0x00100000 */
  3790. #define CAN_F5R2_FB20 CAN_F5R2_FB20_Msk /*!<Filter bit 20 */
  3791. #define CAN_F5R2_FB21_Pos (21U)
  3792. #define CAN_F5R2_FB21_Msk (0x1U << CAN_F5R2_FB21_Pos) /*!< 0x00200000 */
  3793. #define CAN_F5R2_FB21 CAN_F5R2_FB21_Msk /*!<Filter bit 21 */
  3794. #define CAN_F5R2_FB22_Pos (22U)
  3795. #define CAN_F5R2_FB22_Msk (0x1U << CAN_F5R2_FB22_Pos) /*!< 0x00400000 */
  3796. #define CAN_F5R2_FB22 CAN_F5R2_FB22_Msk /*!<Filter bit 22 */
  3797. #define CAN_F5R2_FB23_Pos (23U)
  3798. #define CAN_F5R2_FB23_Msk (0x1U << CAN_F5R2_FB23_Pos) /*!< 0x00800000 */
  3799. #define CAN_F5R2_FB23 CAN_F5R2_FB23_Msk /*!<Filter bit 23 */
  3800. #define CAN_F5R2_FB24_Pos (24U)
  3801. #define CAN_F5R2_FB24_Msk (0x1U << CAN_F5R2_FB24_Pos) /*!< 0x01000000 */
  3802. #define CAN_F5R2_FB24 CAN_F5R2_FB24_Msk /*!<Filter bit 24 */
  3803. #define CAN_F5R2_FB25_Pos (25U)
  3804. #define CAN_F5R2_FB25_Msk (0x1U << CAN_F5R2_FB25_Pos) /*!< 0x02000000 */
  3805. #define CAN_F5R2_FB25 CAN_F5R2_FB25_Msk /*!<Filter bit 25 */
  3806. #define CAN_F5R2_FB26_Pos (26U)
  3807. #define CAN_F5R2_FB26_Msk (0x1U << CAN_F5R2_FB26_Pos) /*!< 0x04000000 */
  3808. #define CAN_F5R2_FB26 CAN_F5R2_FB26_Msk /*!<Filter bit 26 */
  3809. #define CAN_F5R2_FB27_Pos (27U)
  3810. #define CAN_F5R2_FB27_Msk (0x1U << CAN_F5R2_FB27_Pos) /*!< 0x08000000 */
  3811. #define CAN_F5R2_FB27 CAN_F5R2_FB27_Msk /*!<Filter bit 27 */
  3812. #define CAN_F5R2_FB28_Pos (28U)
  3813. #define CAN_F5R2_FB28_Msk (0x1U << CAN_F5R2_FB28_Pos) /*!< 0x10000000 */
  3814. #define CAN_F5R2_FB28 CAN_F5R2_FB28_Msk /*!<Filter bit 28 */
  3815. #define CAN_F5R2_FB29_Pos (29U)
  3816. #define CAN_F5R2_FB29_Msk (0x1U << CAN_F5R2_FB29_Pos) /*!< 0x20000000 */
  3817. #define CAN_F5R2_FB29 CAN_F5R2_FB29_Msk /*!<Filter bit 29 */
  3818. #define CAN_F5R2_FB30_Pos (30U)
  3819. #define CAN_F5R2_FB30_Msk (0x1U << CAN_F5R2_FB30_Pos) /*!< 0x40000000 */
  3820. #define CAN_F5R2_FB30 CAN_F5R2_FB30_Msk /*!<Filter bit 30 */
  3821. #define CAN_F5R2_FB31_Pos (31U)
  3822. #define CAN_F5R2_FB31_Msk (0x1U << CAN_F5R2_FB31_Pos) /*!< 0x80000000 */
  3823. #define CAN_F5R2_FB31 CAN_F5R2_FB31_Msk /*!<Filter bit 31 */
  3824. /******************* Bit definition for CAN_F6R2 register *******************/
  3825. #define CAN_F6R2_FB0_Pos (0U)
  3826. #define CAN_F6R2_FB0_Msk (0x1U << CAN_F6R2_FB0_Pos) /*!< 0x00000001 */
  3827. #define CAN_F6R2_FB0 CAN_F6R2_FB0_Msk /*!<Filter bit 0 */
  3828. #define CAN_F6R2_FB1_Pos (1U)
  3829. #define CAN_F6R2_FB1_Msk (0x1U << CAN_F6R2_FB1_Pos) /*!< 0x00000002 */
  3830. #define CAN_F6R2_FB1 CAN_F6R2_FB1_Msk /*!<Filter bit 1 */
  3831. #define CAN_F6R2_FB2_Pos (2U)
  3832. #define CAN_F6R2_FB2_Msk (0x1U << CAN_F6R2_FB2_Pos) /*!< 0x00000004 */
  3833. #define CAN_F6R2_FB2 CAN_F6R2_FB2_Msk /*!<Filter bit 2 */
  3834. #define CAN_F6R2_FB3_Pos (3U)
  3835. #define CAN_F6R2_FB3_Msk (0x1U << CAN_F6R2_FB3_Pos) /*!< 0x00000008 */
  3836. #define CAN_F6R2_FB3 CAN_F6R2_FB3_Msk /*!<Filter bit 3 */
  3837. #define CAN_F6R2_FB4_Pos (4U)
  3838. #define CAN_F6R2_FB4_Msk (0x1U << CAN_F6R2_FB4_Pos) /*!< 0x00000010 */
  3839. #define CAN_F6R2_FB4 CAN_F6R2_FB4_Msk /*!<Filter bit 4 */
  3840. #define CAN_F6R2_FB5_Pos (5U)
  3841. #define CAN_F6R2_FB5_Msk (0x1U << CAN_F6R2_FB5_Pos) /*!< 0x00000020 */
  3842. #define CAN_F6R2_FB5 CAN_F6R2_FB5_Msk /*!<Filter bit 5 */
  3843. #define CAN_F6R2_FB6_Pos (6U)
  3844. #define CAN_F6R2_FB6_Msk (0x1U << CAN_F6R2_FB6_Pos) /*!< 0x00000040 */
  3845. #define CAN_F6R2_FB6 CAN_F6R2_FB6_Msk /*!<Filter bit 6 */
  3846. #define CAN_F6R2_FB7_Pos (7U)
  3847. #define CAN_F6R2_FB7_Msk (0x1U << CAN_F6R2_FB7_Pos) /*!< 0x00000080 */
  3848. #define CAN_F6R2_FB7 CAN_F6R2_FB7_Msk /*!<Filter bit 7 */
  3849. #define CAN_F6R2_FB8_Pos (8U)
  3850. #define CAN_F6R2_FB8_Msk (0x1U << CAN_F6R2_FB8_Pos) /*!< 0x00000100 */
  3851. #define CAN_F6R2_FB8 CAN_F6R2_FB8_Msk /*!<Filter bit 8 */
  3852. #define CAN_F6R2_FB9_Pos (9U)
  3853. #define CAN_F6R2_FB9_Msk (0x1U << CAN_F6R2_FB9_Pos) /*!< 0x00000200 */
  3854. #define CAN_F6R2_FB9 CAN_F6R2_FB9_Msk /*!<Filter bit 9 */
  3855. #define CAN_F6R2_FB10_Pos (10U)
  3856. #define CAN_F6R2_FB10_Msk (0x1U << CAN_F6R2_FB10_Pos) /*!< 0x00000400 */
  3857. #define CAN_F6R2_FB10 CAN_F6R2_FB10_Msk /*!<Filter bit 10 */
  3858. #define CAN_F6R2_FB11_Pos (11U)
  3859. #define CAN_F6R2_FB11_Msk (0x1U << CAN_F6R2_FB11_Pos) /*!< 0x00000800 */
  3860. #define CAN_F6R2_FB11 CAN_F6R2_FB11_Msk /*!<Filter bit 11 */
  3861. #define CAN_F6R2_FB12_Pos (12U)
  3862. #define CAN_F6R2_FB12_Msk (0x1U << CAN_F6R2_FB12_Pos) /*!< 0x00001000 */
  3863. #define CAN_F6R2_FB12 CAN_F6R2_FB12_Msk /*!<Filter bit 12 */
  3864. #define CAN_F6R2_FB13_Pos (13U)
  3865. #define CAN_F6R2_FB13_Msk (0x1U << CAN_F6R2_FB13_Pos) /*!< 0x00002000 */
  3866. #define CAN_F6R2_FB13 CAN_F6R2_FB13_Msk /*!<Filter bit 13 */
  3867. #define CAN_F6R2_FB14_Pos (14U)
  3868. #define CAN_F6R2_FB14_Msk (0x1U << CAN_F6R2_FB14_Pos) /*!< 0x00004000 */
  3869. #define CAN_F6R2_FB14 CAN_F6R2_FB14_Msk /*!<Filter bit 14 */
  3870. #define CAN_F6R2_FB15_Pos (15U)
  3871. #define CAN_F6R2_FB15_Msk (0x1U << CAN_F6R2_FB15_Pos) /*!< 0x00008000 */
  3872. #define CAN_F6R2_FB15 CAN_F6R2_FB15_Msk /*!<Filter bit 15 */
  3873. #define CAN_F6R2_FB16_Pos (16U)
  3874. #define CAN_F6R2_FB16_Msk (0x1U << CAN_F6R2_FB16_Pos) /*!< 0x00010000 */
  3875. #define CAN_F6R2_FB16 CAN_F6R2_FB16_Msk /*!<Filter bit 16 */
  3876. #define CAN_F6R2_FB17_Pos (17U)
  3877. #define CAN_F6R2_FB17_Msk (0x1U << CAN_F6R2_FB17_Pos) /*!< 0x00020000 */
  3878. #define CAN_F6R2_FB17 CAN_F6R2_FB17_Msk /*!<Filter bit 17 */
  3879. #define CAN_F6R2_FB18_Pos (18U)
  3880. #define CAN_F6R2_FB18_Msk (0x1U << CAN_F6R2_FB18_Pos) /*!< 0x00040000 */
  3881. #define CAN_F6R2_FB18 CAN_F6R2_FB18_Msk /*!<Filter bit 18 */
  3882. #define CAN_F6R2_FB19_Pos (19U)
  3883. #define CAN_F6R2_FB19_Msk (0x1U << CAN_F6R2_FB19_Pos) /*!< 0x00080000 */
  3884. #define CAN_F6R2_FB19 CAN_F6R2_FB19_Msk /*!<Filter bit 19 */
  3885. #define CAN_F6R2_FB20_Pos (20U)
  3886. #define CAN_F6R2_FB20_Msk (0x1U << CAN_F6R2_FB20_Pos) /*!< 0x00100000 */
  3887. #define CAN_F6R2_FB20 CAN_F6R2_FB20_Msk /*!<Filter bit 20 */
  3888. #define CAN_F6R2_FB21_Pos (21U)
  3889. #define CAN_F6R2_FB21_Msk (0x1U << CAN_F6R2_FB21_Pos) /*!< 0x00200000 */
  3890. #define CAN_F6R2_FB21 CAN_F6R2_FB21_Msk /*!<Filter bit 21 */
  3891. #define CAN_F6R2_FB22_Pos (22U)
  3892. #define CAN_F6R2_FB22_Msk (0x1U << CAN_F6R2_FB22_Pos) /*!< 0x00400000 */
  3893. #define CAN_F6R2_FB22 CAN_F6R2_FB22_Msk /*!<Filter bit 22 */
  3894. #define CAN_F6R2_FB23_Pos (23U)
  3895. #define CAN_F6R2_FB23_Msk (0x1U << CAN_F6R2_FB23_Pos) /*!< 0x00800000 */
  3896. #define CAN_F6R2_FB23 CAN_F6R2_FB23_Msk /*!<Filter bit 23 */
  3897. #define CAN_F6R2_FB24_Pos (24U)
  3898. #define CAN_F6R2_FB24_Msk (0x1U << CAN_F6R2_FB24_Pos) /*!< 0x01000000 */
  3899. #define CAN_F6R2_FB24 CAN_F6R2_FB24_Msk /*!<Filter bit 24 */
  3900. #define CAN_F6R2_FB25_Pos (25U)
  3901. #define CAN_F6R2_FB25_Msk (0x1U << CAN_F6R2_FB25_Pos) /*!< 0x02000000 */
  3902. #define CAN_F6R2_FB25 CAN_F6R2_FB25_Msk /*!<Filter bit 25 */
  3903. #define CAN_F6R2_FB26_Pos (26U)
  3904. #define CAN_F6R2_FB26_Msk (0x1U << CAN_F6R2_FB26_Pos) /*!< 0x04000000 */
  3905. #define CAN_F6R2_FB26 CAN_F6R2_FB26_Msk /*!<Filter bit 26 */
  3906. #define CAN_F6R2_FB27_Pos (27U)
  3907. #define CAN_F6R2_FB27_Msk (0x1U << CAN_F6R2_FB27_Pos) /*!< 0x08000000 */
  3908. #define CAN_F6R2_FB27 CAN_F6R2_FB27_Msk /*!<Filter bit 27 */
  3909. #define CAN_F6R2_FB28_Pos (28U)
  3910. #define CAN_F6R2_FB28_Msk (0x1U << CAN_F6R2_FB28_Pos) /*!< 0x10000000 */
  3911. #define CAN_F6R2_FB28 CAN_F6R2_FB28_Msk /*!<Filter bit 28 */
  3912. #define CAN_F6R2_FB29_Pos (29U)
  3913. #define CAN_F6R2_FB29_Msk (0x1U << CAN_F6R2_FB29_Pos) /*!< 0x20000000 */
  3914. #define CAN_F6R2_FB29 CAN_F6R2_FB29_Msk /*!<Filter bit 29 */
  3915. #define CAN_F6R2_FB30_Pos (30U)
  3916. #define CAN_F6R2_FB30_Msk (0x1U << CAN_F6R2_FB30_Pos) /*!< 0x40000000 */
  3917. #define CAN_F6R2_FB30 CAN_F6R2_FB30_Msk /*!<Filter bit 30 */
  3918. #define CAN_F6R2_FB31_Pos (31U)
  3919. #define CAN_F6R2_FB31_Msk (0x1U << CAN_F6R2_FB31_Pos) /*!< 0x80000000 */
  3920. #define CAN_F6R2_FB31 CAN_F6R2_FB31_Msk /*!<Filter bit 31 */
  3921. /******************* Bit definition for CAN_F7R2 register *******************/
  3922. #define CAN_F7R2_FB0_Pos (0U)
  3923. #define CAN_F7R2_FB0_Msk (0x1U << CAN_F7R2_FB0_Pos) /*!< 0x00000001 */
  3924. #define CAN_F7R2_FB0 CAN_F7R2_FB0_Msk /*!<Filter bit 0 */
  3925. #define CAN_F7R2_FB1_Pos (1U)
  3926. #define CAN_F7R2_FB1_Msk (0x1U << CAN_F7R2_FB1_Pos) /*!< 0x00000002 */
  3927. #define CAN_F7R2_FB1 CAN_F7R2_FB1_Msk /*!<Filter bit 1 */
  3928. #define CAN_F7R2_FB2_Pos (2U)
  3929. #define CAN_F7R2_FB2_Msk (0x1U << CAN_F7R2_FB2_Pos) /*!< 0x00000004 */
  3930. #define CAN_F7R2_FB2 CAN_F7R2_FB2_Msk /*!<Filter bit 2 */
  3931. #define CAN_F7R2_FB3_Pos (3U)
  3932. #define CAN_F7R2_FB3_Msk (0x1U << CAN_F7R2_FB3_Pos) /*!< 0x00000008 */
  3933. #define CAN_F7R2_FB3 CAN_F7R2_FB3_Msk /*!<Filter bit 3 */
  3934. #define CAN_F7R2_FB4_Pos (4U)
  3935. #define CAN_F7R2_FB4_Msk (0x1U << CAN_F7R2_FB4_Pos) /*!< 0x00000010 */
  3936. #define CAN_F7R2_FB4 CAN_F7R2_FB4_Msk /*!<Filter bit 4 */
  3937. #define CAN_F7R2_FB5_Pos (5U)
  3938. #define CAN_F7R2_FB5_Msk (0x1U << CAN_F7R2_FB5_Pos) /*!< 0x00000020 */
  3939. #define CAN_F7R2_FB5 CAN_F7R2_FB5_Msk /*!<Filter bit 5 */
  3940. #define CAN_F7R2_FB6_Pos (6U)
  3941. #define CAN_F7R2_FB6_Msk (0x1U << CAN_F7R2_FB6_Pos) /*!< 0x00000040 */
  3942. #define CAN_F7R2_FB6 CAN_F7R2_FB6_Msk /*!<Filter bit 6 */
  3943. #define CAN_F7R2_FB7_Pos (7U)
  3944. #define CAN_F7R2_FB7_Msk (0x1U << CAN_F7R2_FB7_Pos) /*!< 0x00000080 */
  3945. #define CAN_F7R2_FB7 CAN_F7R2_FB7_Msk /*!<Filter bit 7 */
  3946. #define CAN_F7R2_FB8_Pos (8U)
  3947. #define CAN_F7R2_FB8_Msk (0x1U << CAN_F7R2_FB8_Pos) /*!< 0x00000100 */
  3948. #define CAN_F7R2_FB8 CAN_F7R2_FB8_Msk /*!<Filter bit 8 */
  3949. #define CAN_F7R2_FB9_Pos (9U)
  3950. #define CAN_F7R2_FB9_Msk (0x1U << CAN_F7R2_FB9_Pos) /*!< 0x00000200 */
  3951. #define CAN_F7R2_FB9 CAN_F7R2_FB9_Msk /*!<Filter bit 9 */
  3952. #define CAN_F7R2_FB10_Pos (10U)
  3953. #define CAN_F7R2_FB10_Msk (0x1U << CAN_F7R2_FB10_Pos) /*!< 0x00000400 */
  3954. #define CAN_F7R2_FB10 CAN_F7R2_FB10_Msk /*!<Filter bit 10 */
  3955. #define CAN_F7R2_FB11_Pos (11U)
  3956. #define CAN_F7R2_FB11_Msk (0x1U << CAN_F7R2_FB11_Pos) /*!< 0x00000800 */
  3957. #define CAN_F7R2_FB11 CAN_F7R2_FB11_Msk /*!<Filter bit 11 */
  3958. #define CAN_F7R2_FB12_Pos (12U)
  3959. #define CAN_F7R2_FB12_Msk (0x1U << CAN_F7R2_FB12_Pos) /*!< 0x00001000 */
  3960. #define CAN_F7R2_FB12 CAN_F7R2_FB12_Msk /*!<Filter bit 12 */
  3961. #define CAN_F7R2_FB13_Pos (13U)
  3962. #define CAN_F7R2_FB13_Msk (0x1U << CAN_F7R2_FB13_Pos) /*!< 0x00002000 */
  3963. #define CAN_F7R2_FB13 CAN_F7R2_FB13_Msk /*!<Filter bit 13 */
  3964. #define CAN_F7R2_FB14_Pos (14U)
  3965. #define CAN_F7R2_FB14_Msk (0x1U << CAN_F7R2_FB14_Pos) /*!< 0x00004000 */
  3966. #define CAN_F7R2_FB14 CAN_F7R2_FB14_Msk /*!<Filter bit 14 */
  3967. #define CAN_F7R2_FB15_Pos (15U)
  3968. #define CAN_F7R2_FB15_Msk (0x1U << CAN_F7R2_FB15_Pos) /*!< 0x00008000 */
  3969. #define CAN_F7R2_FB15 CAN_F7R2_FB15_Msk /*!<Filter bit 15 */
  3970. #define CAN_F7R2_FB16_Pos (16U)
  3971. #define CAN_F7R2_FB16_Msk (0x1U << CAN_F7R2_FB16_Pos) /*!< 0x00010000 */
  3972. #define CAN_F7R2_FB16 CAN_F7R2_FB16_Msk /*!<Filter bit 16 */
  3973. #define CAN_F7R2_FB17_Pos (17U)
  3974. #define CAN_F7R2_FB17_Msk (0x1U << CAN_F7R2_FB17_Pos) /*!< 0x00020000 */
  3975. #define CAN_F7R2_FB17 CAN_F7R2_FB17_Msk /*!<Filter bit 17 */
  3976. #define CAN_F7R2_FB18_Pos (18U)
  3977. #define CAN_F7R2_FB18_Msk (0x1U << CAN_F7R2_FB18_Pos) /*!< 0x00040000 */
  3978. #define CAN_F7R2_FB18 CAN_F7R2_FB18_Msk /*!<Filter bit 18 */
  3979. #define CAN_F7R2_FB19_Pos (19U)
  3980. #define CAN_F7R2_FB19_Msk (0x1U << CAN_F7R2_FB19_Pos) /*!< 0x00080000 */
  3981. #define CAN_F7R2_FB19 CAN_F7R2_FB19_Msk /*!<Filter bit 19 */
  3982. #define CAN_F7R2_FB20_Pos (20U)
  3983. #define CAN_F7R2_FB20_Msk (0x1U << CAN_F7R2_FB20_Pos) /*!< 0x00100000 */
  3984. #define CAN_F7R2_FB20 CAN_F7R2_FB20_Msk /*!<Filter bit 20 */
  3985. #define CAN_F7R2_FB21_Pos (21U)
  3986. #define CAN_F7R2_FB21_Msk (0x1U << CAN_F7R2_FB21_Pos) /*!< 0x00200000 */
  3987. #define CAN_F7R2_FB21 CAN_F7R2_FB21_Msk /*!<Filter bit 21 */
  3988. #define CAN_F7R2_FB22_Pos (22U)
  3989. #define CAN_F7R2_FB22_Msk (0x1U << CAN_F7R2_FB22_Pos) /*!< 0x00400000 */
  3990. #define CAN_F7R2_FB22 CAN_F7R2_FB22_Msk /*!<Filter bit 22 */
  3991. #define CAN_F7R2_FB23_Pos (23U)
  3992. #define CAN_F7R2_FB23_Msk (0x1U << CAN_F7R2_FB23_Pos) /*!< 0x00800000 */
  3993. #define CAN_F7R2_FB23 CAN_F7R2_FB23_Msk /*!<Filter bit 23 */
  3994. #define CAN_F7R2_FB24_Pos (24U)
  3995. #define CAN_F7R2_FB24_Msk (0x1U << CAN_F7R2_FB24_Pos) /*!< 0x01000000 */
  3996. #define CAN_F7R2_FB24 CAN_F7R2_FB24_Msk /*!<Filter bit 24 */
  3997. #define CAN_F7R2_FB25_Pos (25U)
  3998. #define CAN_F7R2_FB25_Msk (0x1U << CAN_F7R2_FB25_Pos) /*!< 0x02000000 */
  3999. #define CAN_F7R2_FB25 CAN_F7R2_FB25_Msk /*!<Filter bit 25 */
  4000. #define CAN_F7R2_FB26_Pos (26U)
  4001. #define CAN_F7R2_FB26_Msk (0x1U << CAN_F7R2_FB26_Pos) /*!< 0x04000000 */
  4002. #define CAN_F7R2_FB26 CAN_F7R2_FB26_Msk /*!<Filter bit 26 */
  4003. #define CAN_F7R2_FB27_Pos (27U)
  4004. #define CAN_F7R2_FB27_Msk (0x1U << CAN_F7R2_FB27_Pos) /*!< 0x08000000 */
  4005. #define CAN_F7R2_FB27 CAN_F7R2_FB27_Msk /*!<Filter bit 27 */
  4006. #define CAN_F7R2_FB28_Pos (28U)
  4007. #define CAN_F7R2_FB28_Msk (0x1U << CAN_F7R2_FB28_Pos) /*!< 0x10000000 */
  4008. #define CAN_F7R2_FB28 CAN_F7R2_FB28_Msk /*!<Filter bit 28 */
  4009. #define CAN_F7R2_FB29_Pos (29U)
  4010. #define CAN_F7R2_FB29_Msk (0x1U << CAN_F7R2_FB29_Pos) /*!< 0x20000000 */
  4011. #define CAN_F7R2_FB29 CAN_F7R2_FB29_Msk /*!<Filter bit 29 */
  4012. #define CAN_F7R2_FB30_Pos (30U)
  4013. #define CAN_F7R2_FB30_Msk (0x1U << CAN_F7R2_FB30_Pos) /*!< 0x40000000 */
  4014. #define CAN_F7R2_FB30 CAN_F7R2_FB30_Msk /*!<Filter bit 30 */
  4015. #define CAN_F7R2_FB31_Pos (31U)
  4016. #define CAN_F7R2_FB31_Msk (0x1U << CAN_F7R2_FB31_Pos) /*!< 0x80000000 */
  4017. #define CAN_F7R2_FB31 CAN_F7R2_FB31_Msk /*!<Filter bit 31 */
  4018. /******************* Bit definition for CAN_F8R2 register *******************/
  4019. #define CAN_F8R2_FB0_Pos (0U)
  4020. #define CAN_F8R2_FB0_Msk (0x1U << CAN_F8R2_FB0_Pos) /*!< 0x00000001 */
  4021. #define CAN_F8R2_FB0 CAN_F8R2_FB0_Msk /*!<Filter bit 0 */
  4022. #define CAN_F8R2_FB1_Pos (1U)
  4023. #define CAN_F8R2_FB1_Msk (0x1U << CAN_F8R2_FB1_Pos) /*!< 0x00000002 */
  4024. #define CAN_F8R2_FB1 CAN_F8R2_FB1_Msk /*!<Filter bit 1 */
  4025. #define CAN_F8R2_FB2_Pos (2U)
  4026. #define CAN_F8R2_FB2_Msk (0x1U << CAN_F8R2_FB2_Pos) /*!< 0x00000004 */
  4027. #define CAN_F8R2_FB2 CAN_F8R2_FB2_Msk /*!<Filter bit 2 */
  4028. #define CAN_F8R2_FB3_Pos (3U)
  4029. #define CAN_F8R2_FB3_Msk (0x1U << CAN_F8R2_FB3_Pos) /*!< 0x00000008 */
  4030. #define CAN_F8R2_FB3 CAN_F8R2_FB3_Msk /*!<Filter bit 3 */
  4031. #define CAN_F8R2_FB4_Pos (4U)
  4032. #define CAN_F8R2_FB4_Msk (0x1U << CAN_F8R2_FB4_Pos) /*!< 0x00000010 */
  4033. #define CAN_F8R2_FB4 CAN_F8R2_FB4_Msk /*!<Filter bit 4 */
  4034. #define CAN_F8R2_FB5_Pos (5U)
  4035. #define CAN_F8R2_FB5_Msk (0x1U << CAN_F8R2_FB5_Pos) /*!< 0x00000020 */
  4036. #define CAN_F8R2_FB5 CAN_F8R2_FB5_Msk /*!<Filter bit 5 */
  4037. #define CAN_F8R2_FB6_Pos (6U)
  4038. #define CAN_F8R2_FB6_Msk (0x1U << CAN_F8R2_FB6_Pos) /*!< 0x00000040 */
  4039. #define CAN_F8R2_FB6 CAN_F8R2_FB6_Msk /*!<Filter bit 6 */
  4040. #define CAN_F8R2_FB7_Pos (7U)
  4041. #define CAN_F8R2_FB7_Msk (0x1U << CAN_F8R2_FB7_Pos) /*!< 0x00000080 */
  4042. #define CAN_F8R2_FB7 CAN_F8R2_FB7_Msk /*!<Filter bit 7 */
  4043. #define CAN_F8R2_FB8_Pos (8U)
  4044. #define CAN_F8R2_FB8_Msk (0x1U << CAN_F8R2_FB8_Pos) /*!< 0x00000100 */
  4045. #define CAN_F8R2_FB8 CAN_F8R2_FB8_Msk /*!<Filter bit 8 */
  4046. #define CAN_F8R2_FB9_Pos (9U)
  4047. #define CAN_F8R2_FB9_Msk (0x1U << CAN_F8R2_FB9_Pos) /*!< 0x00000200 */
  4048. #define CAN_F8R2_FB9 CAN_F8R2_FB9_Msk /*!<Filter bit 9 */
  4049. #define CAN_F8R2_FB10_Pos (10U)
  4050. #define CAN_F8R2_FB10_Msk (0x1U << CAN_F8R2_FB10_Pos) /*!< 0x00000400 */
  4051. #define CAN_F8R2_FB10 CAN_F8R2_FB10_Msk /*!<Filter bit 10 */
  4052. #define CAN_F8R2_FB11_Pos (11U)
  4053. #define CAN_F8R2_FB11_Msk (0x1U << CAN_F8R2_FB11_Pos) /*!< 0x00000800 */
  4054. #define CAN_F8R2_FB11 CAN_F8R2_FB11_Msk /*!<Filter bit 11 */
  4055. #define CAN_F8R2_FB12_Pos (12U)
  4056. #define CAN_F8R2_FB12_Msk (0x1U << CAN_F8R2_FB12_Pos) /*!< 0x00001000 */
  4057. #define CAN_F8R2_FB12 CAN_F8R2_FB12_Msk /*!<Filter bit 12 */
  4058. #define CAN_F8R2_FB13_Pos (13U)
  4059. #define CAN_F8R2_FB13_Msk (0x1U << CAN_F8R2_FB13_Pos) /*!< 0x00002000 */
  4060. #define CAN_F8R2_FB13 CAN_F8R2_FB13_Msk /*!<Filter bit 13 */
  4061. #define CAN_F8R2_FB14_Pos (14U)
  4062. #define CAN_F8R2_FB14_Msk (0x1U << CAN_F8R2_FB14_Pos) /*!< 0x00004000 */
  4063. #define CAN_F8R2_FB14 CAN_F8R2_FB14_Msk /*!<Filter bit 14 */
  4064. #define CAN_F8R2_FB15_Pos (15U)
  4065. #define CAN_F8R2_FB15_Msk (0x1U << CAN_F8R2_FB15_Pos) /*!< 0x00008000 */
  4066. #define CAN_F8R2_FB15 CAN_F8R2_FB15_Msk /*!<Filter bit 15 */
  4067. #define CAN_F8R2_FB16_Pos (16U)
  4068. #define CAN_F8R2_FB16_Msk (0x1U << CAN_F8R2_FB16_Pos) /*!< 0x00010000 */
  4069. #define CAN_F8R2_FB16 CAN_F8R2_FB16_Msk /*!<Filter bit 16 */
  4070. #define CAN_F8R2_FB17_Pos (17U)
  4071. #define CAN_F8R2_FB17_Msk (0x1U << CAN_F8R2_FB17_Pos) /*!< 0x00020000 */
  4072. #define CAN_F8R2_FB17 CAN_F8R2_FB17_Msk /*!<Filter bit 17 */
  4073. #define CAN_F8R2_FB18_Pos (18U)
  4074. #define CAN_F8R2_FB18_Msk (0x1U << CAN_F8R2_FB18_Pos) /*!< 0x00040000 */
  4075. #define CAN_F8R2_FB18 CAN_F8R2_FB18_Msk /*!<Filter bit 18 */
  4076. #define CAN_F8R2_FB19_Pos (19U)
  4077. #define CAN_F8R2_FB19_Msk (0x1U << CAN_F8R2_FB19_Pos) /*!< 0x00080000 */
  4078. #define CAN_F8R2_FB19 CAN_F8R2_FB19_Msk /*!<Filter bit 19 */
  4079. #define CAN_F8R2_FB20_Pos (20U)
  4080. #define CAN_F8R2_FB20_Msk (0x1U << CAN_F8R2_FB20_Pos) /*!< 0x00100000 */
  4081. #define CAN_F8R2_FB20 CAN_F8R2_FB20_Msk /*!<Filter bit 20 */
  4082. #define CAN_F8R2_FB21_Pos (21U)
  4083. #define CAN_F8R2_FB21_Msk (0x1U << CAN_F8R2_FB21_Pos) /*!< 0x00200000 */
  4084. #define CAN_F8R2_FB21 CAN_F8R2_FB21_Msk /*!<Filter bit 21 */
  4085. #define CAN_F8R2_FB22_Pos (22U)
  4086. #define CAN_F8R2_FB22_Msk (0x1U << CAN_F8R2_FB22_Pos) /*!< 0x00400000 */
  4087. #define CAN_F8R2_FB22 CAN_F8R2_FB22_Msk /*!<Filter bit 22 */
  4088. #define CAN_F8R2_FB23_Pos (23U)
  4089. #define CAN_F8R2_FB23_Msk (0x1U << CAN_F8R2_FB23_Pos) /*!< 0x00800000 */
  4090. #define CAN_F8R2_FB23 CAN_F8R2_FB23_Msk /*!<Filter bit 23 */
  4091. #define CAN_F8R2_FB24_Pos (24U)
  4092. #define CAN_F8R2_FB24_Msk (0x1U << CAN_F8R2_FB24_Pos) /*!< 0x01000000 */
  4093. #define CAN_F8R2_FB24 CAN_F8R2_FB24_Msk /*!<Filter bit 24 */
  4094. #define CAN_F8R2_FB25_Pos (25U)
  4095. #define CAN_F8R2_FB25_Msk (0x1U << CAN_F8R2_FB25_Pos) /*!< 0x02000000 */
  4096. #define CAN_F8R2_FB25 CAN_F8R2_FB25_Msk /*!<Filter bit 25 */
  4097. #define CAN_F8R2_FB26_Pos (26U)
  4098. #define CAN_F8R2_FB26_Msk (0x1U << CAN_F8R2_FB26_Pos) /*!< 0x04000000 */
  4099. #define CAN_F8R2_FB26 CAN_F8R2_FB26_Msk /*!<Filter bit 26 */
  4100. #define CAN_F8R2_FB27_Pos (27U)
  4101. #define CAN_F8R2_FB27_Msk (0x1U << CAN_F8R2_FB27_Pos) /*!< 0x08000000 */
  4102. #define CAN_F8R2_FB27 CAN_F8R2_FB27_Msk /*!<Filter bit 27 */
  4103. #define CAN_F8R2_FB28_Pos (28U)
  4104. #define CAN_F8R2_FB28_Msk (0x1U << CAN_F8R2_FB28_Pos) /*!< 0x10000000 */
  4105. #define CAN_F8R2_FB28 CAN_F8R2_FB28_Msk /*!<Filter bit 28 */
  4106. #define CAN_F8R2_FB29_Pos (29U)
  4107. #define CAN_F8R2_FB29_Msk (0x1U << CAN_F8R2_FB29_Pos) /*!< 0x20000000 */
  4108. #define CAN_F8R2_FB29 CAN_F8R2_FB29_Msk /*!<Filter bit 29 */
  4109. #define CAN_F8R2_FB30_Pos (30U)
  4110. #define CAN_F8R2_FB30_Msk (0x1U << CAN_F8R2_FB30_Pos) /*!< 0x40000000 */
  4111. #define CAN_F8R2_FB30 CAN_F8R2_FB30_Msk /*!<Filter bit 30 */
  4112. #define CAN_F8R2_FB31_Pos (31U)
  4113. #define CAN_F8R2_FB31_Msk (0x1U << CAN_F8R2_FB31_Pos) /*!< 0x80000000 */
  4114. #define CAN_F8R2_FB31 CAN_F8R2_FB31_Msk /*!<Filter bit 31 */
  4115. /******************* Bit definition for CAN_F9R2 register *******************/
  4116. #define CAN_F9R2_FB0_Pos (0U)
  4117. #define CAN_F9R2_FB0_Msk (0x1U << CAN_F9R2_FB0_Pos) /*!< 0x00000001 */
  4118. #define CAN_F9R2_FB0 CAN_F9R2_FB0_Msk /*!<Filter bit 0 */
  4119. #define CAN_F9R2_FB1_Pos (1U)
  4120. #define CAN_F9R2_FB1_Msk (0x1U << CAN_F9R2_FB1_Pos) /*!< 0x00000002 */
  4121. #define CAN_F9R2_FB1 CAN_F9R2_FB1_Msk /*!<Filter bit 1 */
  4122. #define CAN_F9R2_FB2_Pos (2U)
  4123. #define CAN_F9R2_FB2_Msk (0x1U << CAN_F9R2_FB2_Pos) /*!< 0x00000004 */
  4124. #define CAN_F9R2_FB2 CAN_F9R2_FB2_Msk /*!<Filter bit 2 */
  4125. #define CAN_F9R2_FB3_Pos (3U)
  4126. #define CAN_F9R2_FB3_Msk (0x1U << CAN_F9R2_FB3_Pos) /*!< 0x00000008 */
  4127. #define CAN_F9R2_FB3 CAN_F9R2_FB3_Msk /*!<Filter bit 3 */
  4128. #define CAN_F9R2_FB4_Pos (4U)
  4129. #define CAN_F9R2_FB4_Msk (0x1U << CAN_F9R2_FB4_Pos) /*!< 0x00000010 */
  4130. #define CAN_F9R2_FB4 CAN_F9R2_FB4_Msk /*!<Filter bit 4 */
  4131. #define CAN_F9R2_FB5_Pos (5U)
  4132. #define CAN_F9R2_FB5_Msk (0x1U << CAN_F9R2_FB5_Pos) /*!< 0x00000020 */
  4133. #define CAN_F9R2_FB5 CAN_F9R2_FB5_Msk /*!<Filter bit 5 */
  4134. #define CAN_F9R2_FB6_Pos (6U)
  4135. #define CAN_F9R2_FB6_Msk (0x1U << CAN_F9R2_FB6_Pos) /*!< 0x00000040 */
  4136. #define CAN_F9R2_FB6 CAN_F9R2_FB6_Msk /*!<Filter bit 6 */
  4137. #define CAN_F9R2_FB7_Pos (7U)
  4138. #define CAN_F9R2_FB7_Msk (0x1U << CAN_F9R2_FB7_Pos) /*!< 0x00000080 */
  4139. #define CAN_F9R2_FB7 CAN_F9R2_FB7_Msk /*!<Filter bit 7 */
  4140. #define CAN_F9R2_FB8_Pos (8U)
  4141. #define CAN_F9R2_FB8_Msk (0x1U << CAN_F9R2_FB8_Pos) /*!< 0x00000100 */
  4142. #define CAN_F9R2_FB8 CAN_F9R2_FB8_Msk /*!<Filter bit 8 */
  4143. #define CAN_F9R2_FB9_Pos (9U)
  4144. #define CAN_F9R2_FB9_Msk (0x1U << CAN_F9R2_FB9_Pos) /*!< 0x00000200 */
  4145. #define CAN_F9R2_FB9 CAN_F9R2_FB9_Msk /*!<Filter bit 9 */
  4146. #define CAN_F9R2_FB10_Pos (10U)
  4147. #define CAN_F9R2_FB10_Msk (0x1U << CAN_F9R2_FB10_Pos) /*!< 0x00000400 */
  4148. #define CAN_F9R2_FB10 CAN_F9R2_FB10_Msk /*!<Filter bit 10 */
  4149. #define CAN_F9R2_FB11_Pos (11U)
  4150. #define CAN_F9R2_FB11_Msk (0x1U << CAN_F9R2_FB11_Pos) /*!< 0x00000800 */
  4151. #define CAN_F9R2_FB11 CAN_F9R2_FB11_Msk /*!<Filter bit 11 */
  4152. #define CAN_F9R2_FB12_Pos (12U)
  4153. #define CAN_F9R2_FB12_Msk (0x1U << CAN_F9R2_FB12_Pos) /*!< 0x00001000 */
  4154. #define CAN_F9R2_FB12 CAN_F9R2_FB12_Msk /*!<Filter bit 12 */
  4155. #define CAN_F9R2_FB13_Pos (13U)
  4156. #define CAN_F9R2_FB13_Msk (0x1U << CAN_F9R2_FB13_Pos) /*!< 0x00002000 */
  4157. #define CAN_F9R2_FB13 CAN_F9R2_FB13_Msk /*!<Filter bit 13 */
  4158. #define CAN_F9R2_FB14_Pos (14U)
  4159. #define CAN_F9R2_FB14_Msk (0x1U << CAN_F9R2_FB14_Pos) /*!< 0x00004000 */
  4160. #define CAN_F9R2_FB14 CAN_F9R2_FB14_Msk /*!<Filter bit 14 */
  4161. #define CAN_F9R2_FB15_Pos (15U)
  4162. #define CAN_F9R2_FB15_Msk (0x1U << CAN_F9R2_FB15_Pos) /*!< 0x00008000 */
  4163. #define CAN_F9R2_FB15 CAN_F9R2_FB15_Msk /*!<Filter bit 15 */
  4164. #define CAN_F9R2_FB16_Pos (16U)
  4165. #define CAN_F9R2_FB16_Msk (0x1U << CAN_F9R2_FB16_Pos) /*!< 0x00010000 */
  4166. #define CAN_F9R2_FB16 CAN_F9R2_FB16_Msk /*!<Filter bit 16 */
  4167. #define CAN_F9R2_FB17_Pos (17U)
  4168. #define CAN_F9R2_FB17_Msk (0x1U << CAN_F9R2_FB17_Pos) /*!< 0x00020000 */
  4169. #define CAN_F9R2_FB17 CAN_F9R2_FB17_Msk /*!<Filter bit 17 */
  4170. #define CAN_F9R2_FB18_Pos (18U)
  4171. #define CAN_F9R2_FB18_Msk (0x1U << CAN_F9R2_FB18_Pos) /*!< 0x00040000 */
  4172. #define CAN_F9R2_FB18 CAN_F9R2_FB18_Msk /*!<Filter bit 18 */
  4173. #define CAN_F9R2_FB19_Pos (19U)
  4174. #define CAN_F9R2_FB19_Msk (0x1U << CAN_F9R2_FB19_Pos) /*!< 0x00080000 */
  4175. #define CAN_F9R2_FB19 CAN_F9R2_FB19_Msk /*!<Filter bit 19 */
  4176. #define CAN_F9R2_FB20_Pos (20U)
  4177. #define CAN_F9R2_FB20_Msk (0x1U << CAN_F9R2_FB20_Pos) /*!< 0x00100000 */
  4178. #define CAN_F9R2_FB20 CAN_F9R2_FB20_Msk /*!<Filter bit 20 */
  4179. #define CAN_F9R2_FB21_Pos (21U)
  4180. #define CAN_F9R2_FB21_Msk (0x1U << CAN_F9R2_FB21_Pos) /*!< 0x00200000 */
  4181. #define CAN_F9R2_FB21 CAN_F9R2_FB21_Msk /*!<Filter bit 21 */
  4182. #define CAN_F9R2_FB22_Pos (22U)
  4183. #define CAN_F9R2_FB22_Msk (0x1U << CAN_F9R2_FB22_Pos) /*!< 0x00400000 */
  4184. #define CAN_F9R2_FB22 CAN_F9R2_FB22_Msk /*!<Filter bit 22 */
  4185. #define CAN_F9R2_FB23_Pos (23U)
  4186. #define CAN_F9R2_FB23_Msk (0x1U << CAN_F9R2_FB23_Pos) /*!< 0x00800000 */
  4187. #define CAN_F9R2_FB23 CAN_F9R2_FB23_Msk /*!<Filter bit 23 */
  4188. #define CAN_F9R2_FB24_Pos (24U)
  4189. #define CAN_F9R2_FB24_Msk (0x1U << CAN_F9R2_FB24_Pos) /*!< 0x01000000 */
  4190. #define CAN_F9R2_FB24 CAN_F9R2_FB24_Msk /*!<Filter bit 24 */
  4191. #define CAN_F9R2_FB25_Pos (25U)
  4192. #define CAN_F9R2_FB25_Msk (0x1U << CAN_F9R2_FB25_Pos) /*!< 0x02000000 */
  4193. #define CAN_F9R2_FB25 CAN_F9R2_FB25_Msk /*!<Filter bit 25 */
  4194. #define CAN_F9R2_FB26_Pos (26U)
  4195. #define CAN_F9R2_FB26_Msk (0x1U << CAN_F9R2_FB26_Pos) /*!< 0x04000000 */
  4196. #define CAN_F9R2_FB26 CAN_F9R2_FB26_Msk /*!<Filter bit 26 */
  4197. #define CAN_F9R2_FB27_Pos (27U)
  4198. #define CAN_F9R2_FB27_Msk (0x1U << CAN_F9R2_FB27_Pos) /*!< 0x08000000 */
  4199. #define CAN_F9R2_FB27 CAN_F9R2_FB27_Msk /*!<Filter bit 27 */
  4200. #define CAN_F9R2_FB28_Pos (28U)
  4201. #define CAN_F9R2_FB28_Msk (0x1U << CAN_F9R2_FB28_Pos) /*!< 0x10000000 */
  4202. #define CAN_F9R2_FB28 CAN_F9R2_FB28_Msk /*!<Filter bit 28 */
  4203. #define CAN_F9R2_FB29_Pos (29U)
  4204. #define CAN_F9R2_FB29_Msk (0x1U << CAN_F9R2_FB29_Pos) /*!< 0x20000000 */
  4205. #define CAN_F9R2_FB29 CAN_F9R2_FB29_Msk /*!<Filter bit 29 */
  4206. #define CAN_F9R2_FB30_Pos (30U)
  4207. #define CAN_F9R2_FB30_Msk (0x1U << CAN_F9R2_FB30_Pos) /*!< 0x40000000 */
  4208. #define CAN_F9R2_FB30 CAN_F9R2_FB30_Msk /*!<Filter bit 30 */
  4209. #define CAN_F9R2_FB31_Pos (31U)
  4210. #define CAN_F9R2_FB31_Msk (0x1U << CAN_F9R2_FB31_Pos) /*!< 0x80000000 */
  4211. #define CAN_F9R2_FB31 CAN_F9R2_FB31_Msk /*!<Filter bit 31 */
  4212. /******************* Bit definition for CAN_F10R2 register ******************/
  4213. #define CAN_F10R2_FB0_Pos (0U)
  4214. #define CAN_F10R2_FB0_Msk (0x1U << CAN_F10R2_FB0_Pos) /*!< 0x00000001 */
  4215. #define CAN_F10R2_FB0 CAN_F10R2_FB0_Msk /*!<Filter bit 0 */
  4216. #define CAN_F10R2_FB1_Pos (1U)
  4217. #define CAN_F10R2_FB1_Msk (0x1U << CAN_F10R2_FB1_Pos) /*!< 0x00000002 */
  4218. #define CAN_F10R2_FB1 CAN_F10R2_FB1_Msk /*!<Filter bit 1 */
  4219. #define CAN_F10R2_FB2_Pos (2U)
  4220. #define CAN_F10R2_FB2_Msk (0x1U << CAN_F10R2_FB2_Pos) /*!< 0x00000004 */
  4221. #define CAN_F10R2_FB2 CAN_F10R2_FB2_Msk /*!<Filter bit 2 */
  4222. #define CAN_F10R2_FB3_Pos (3U)
  4223. #define CAN_F10R2_FB3_Msk (0x1U << CAN_F10R2_FB3_Pos) /*!< 0x00000008 */
  4224. #define CAN_F10R2_FB3 CAN_F10R2_FB3_Msk /*!<Filter bit 3 */
  4225. #define CAN_F10R2_FB4_Pos (4U)
  4226. #define CAN_F10R2_FB4_Msk (0x1U << CAN_F10R2_FB4_Pos) /*!< 0x00000010 */
  4227. #define CAN_F10R2_FB4 CAN_F10R2_FB4_Msk /*!<Filter bit 4 */
  4228. #define CAN_F10R2_FB5_Pos (5U)
  4229. #define CAN_F10R2_FB5_Msk (0x1U << CAN_F10R2_FB5_Pos) /*!< 0x00000020 */
  4230. #define CAN_F10R2_FB5 CAN_F10R2_FB5_Msk /*!<Filter bit 5 */
  4231. #define CAN_F10R2_FB6_Pos (6U)
  4232. #define CAN_F10R2_FB6_Msk (0x1U << CAN_F10R2_FB6_Pos) /*!< 0x00000040 */
  4233. #define CAN_F10R2_FB6 CAN_F10R2_FB6_Msk /*!<Filter bit 6 */
  4234. #define CAN_F10R2_FB7_Pos (7U)
  4235. #define CAN_F10R2_FB7_Msk (0x1U << CAN_F10R2_FB7_Pos) /*!< 0x00000080 */
  4236. #define CAN_F10R2_FB7 CAN_F10R2_FB7_Msk /*!<Filter bit 7 */
  4237. #define CAN_F10R2_FB8_Pos (8U)
  4238. #define CAN_F10R2_FB8_Msk (0x1U << CAN_F10R2_FB8_Pos) /*!< 0x00000100 */
  4239. #define CAN_F10R2_FB8 CAN_F10R2_FB8_Msk /*!<Filter bit 8 */
  4240. #define CAN_F10R2_FB9_Pos (9U)
  4241. #define CAN_F10R2_FB9_Msk (0x1U << CAN_F10R2_FB9_Pos) /*!< 0x00000200 */
  4242. #define CAN_F10R2_FB9 CAN_F10R2_FB9_Msk /*!<Filter bit 9 */
  4243. #define CAN_F10R2_FB10_Pos (10U)
  4244. #define CAN_F10R2_FB10_Msk (0x1U << CAN_F10R2_FB10_Pos) /*!< 0x00000400 */
  4245. #define CAN_F10R2_FB10 CAN_F10R2_FB10_Msk /*!<Filter bit 10 */
  4246. #define CAN_F10R2_FB11_Pos (11U)
  4247. #define CAN_F10R2_FB11_Msk (0x1U << CAN_F10R2_FB11_Pos) /*!< 0x00000800 */
  4248. #define CAN_F10R2_FB11 CAN_F10R2_FB11_Msk /*!<Filter bit 11 */
  4249. #define CAN_F10R2_FB12_Pos (12U)
  4250. #define CAN_F10R2_FB12_Msk (0x1U << CAN_F10R2_FB12_Pos) /*!< 0x00001000 */
  4251. #define CAN_F10R2_FB12 CAN_F10R2_FB12_Msk /*!<Filter bit 12 */
  4252. #define CAN_F10R2_FB13_Pos (13U)
  4253. #define CAN_F10R2_FB13_Msk (0x1U << CAN_F10R2_FB13_Pos) /*!< 0x00002000 */
  4254. #define CAN_F10R2_FB13 CAN_F10R2_FB13_Msk /*!<Filter bit 13 */
  4255. #define CAN_F10R2_FB14_Pos (14U)
  4256. #define CAN_F10R2_FB14_Msk (0x1U << CAN_F10R2_FB14_Pos) /*!< 0x00004000 */
  4257. #define CAN_F10R2_FB14 CAN_F10R2_FB14_Msk /*!<Filter bit 14 */
  4258. #define CAN_F10R2_FB15_Pos (15U)
  4259. #define CAN_F10R2_FB15_Msk (0x1U << CAN_F10R2_FB15_Pos) /*!< 0x00008000 */
  4260. #define CAN_F10R2_FB15 CAN_F10R2_FB15_Msk /*!<Filter bit 15 */
  4261. #define CAN_F10R2_FB16_Pos (16U)
  4262. #define CAN_F10R2_FB16_Msk (0x1U << CAN_F10R2_FB16_Pos) /*!< 0x00010000 */
  4263. #define CAN_F10R2_FB16 CAN_F10R2_FB16_Msk /*!<Filter bit 16 */
  4264. #define CAN_F10R2_FB17_Pos (17U)
  4265. #define CAN_F10R2_FB17_Msk (0x1U << CAN_F10R2_FB17_Pos) /*!< 0x00020000 */
  4266. #define CAN_F10R2_FB17 CAN_F10R2_FB17_Msk /*!<Filter bit 17 */
  4267. #define CAN_F10R2_FB18_Pos (18U)
  4268. #define CAN_F10R2_FB18_Msk (0x1U << CAN_F10R2_FB18_Pos) /*!< 0x00040000 */
  4269. #define CAN_F10R2_FB18 CAN_F10R2_FB18_Msk /*!<Filter bit 18 */
  4270. #define CAN_F10R2_FB19_Pos (19U)
  4271. #define CAN_F10R2_FB19_Msk (0x1U << CAN_F10R2_FB19_Pos) /*!< 0x00080000 */
  4272. #define CAN_F10R2_FB19 CAN_F10R2_FB19_Msk /*!<Filter bit 19 */
  4273. #define CAN_F10R2_FB20_Pos (20U)
  4274. #define CAN_F10R2_FB20_Msk (0x1U << CAN_F10R2_FB20_Pos) /*!< 0x00100000 */
  4275. #define CAN_F10R2_FB20 CAN_F10R2_FB20_Msk /*!<Filter bit 20 */
  4276. #define CAN_F10R2_FB21_Pos (21U)
  4277. #define CAN_F10R2_FB21_Msk (0x1U << CAN_F10R2_FB21_Pos) /*!< 0x00200000 */
  4278. #define CAN_F10R2_FB21 CAN_F10R2_FB21_Msk /*!<Filter bit 21 */
  4279. #define CAN_F10R2_FB22_Pos (22U)
  4280. #define CAN_F10R2_FB22_Msk (0x1U << CAN_F10R2_FB22_Pos) /*!< 0x00400000 */
  4281. #define CAN_F10R2_FB22 CAN_F10R2_FB22_Msk /*!<Filter bit 22 */
  4282. #define CAN_F10R2_FB23_Pos (23U)
  4283. #define CAN_F10R2_FB23_Msk (0x1U << CAN_F10R2_FB23_Pos) /*!< 0x00800000 */
  4284. #define CAN_F10R2_FB23 CAN_F10R2_FB23_Msk /*!<Filter bit 23 */
  4285. #define CAN_F10R2_FB24_Pos (24U)
  4286. #define CAN_F10R2_FB24_Msk (0x1U << CAN_F10R2_FB24_Pos) /*!< 0x01000000 */
  4287. #define CAN_F10R2_FB24 CAN_F10R2_FB24_Msk /*!<Filter bit 24 */
  4288. #define CAN_F10R2_FB25_Pos (25U)
  4289. #define CAN_F10R2_FB25_Msk (0x1U << CAN_F10R2_FB25_Pos) /*!< 0x02000000 */
  4290. #define CAN_F10R2_FB25 CAN_F10R2_FB25_Msk /*!<Filter bit 25 */
  4291. #define CAN_F10R2_FB26_Pos (26U)
  4292. #define CAN_F10R2_FB26_Msk (0x1U << CAN_F10R2_FB26_Pos) /*!< 0x04000000 */
  4293. #define CAN_F10R2_FB26 CAN_F10R2_FB26_Msk /*!<Filter bit 26 */
  4294. #define CAN_F10R2_FB27_Pos (27U)
  4295. #define CAN_F10R2_FB27_Msk (0x1U << CAN_F10R2_FB27_Pos) /*!< 0x08000000 */
  4296. #define CAN_F10R2_FB27 CAN_F10R2_FB27_Msk /*!<Filter bit 27 */
  4297. #define CAN_F10R2_FB28_Pos (28U)
  4298. #define CAN_F10R2_FB28_Msk (0x1U << CAN_F10R2_FB28_Pos) /*!< 0x10000000 */
  4299. #define CAN_F10R2_FB28 CAN_F10R2_FB28_Msk /*!<Filter bit 28 */
  4300. #define CAN_F10R2_FB29_Pos (29U)
  4301. #define CAN_F10R2_FB29_Msk (0x1U << CAN_F10R2_FB29_Pos) /*!< 0x20000000 */
  4302. #define CAN_F10R2_FB29 CAN_F10R2_FB29_Msk /*!<Filter bit 29 */
  4303. #define CAN_F10R2_FB30_Pos (30U)
  4304. #define CAN_F10R2_FB30_Msk (0x1U << CAN_F10R2_FB30_Pos) /*!< 0x40000000 */
  4305. #define CAN_F10R2_FB30 CAN_F10R2_FB30_Msk /*!<Filter bit 30 */
  4306. #define CAN_F10R2_FB31_Pos (31U)
  4307. #define CAN_F10R2_FB31_Msk (0x1U << CAN_F10R2_FB31_Pos) /*!< 0x80000000 */
  4308. #define CAN_F10R2_FB31 CAN_F10R2_FB31_Msk /*!<Filter bit 31 */
  4309. /******************* Bit definition for CAN_F11R2 register ******************/
  4310. #define CAN_F11R2_FB0_Pos (0U)
  4311. #define CAN_F11R2_FB0_Msk (0x1U << CAN_F11R2_FB0_Pos) /*!< 0x00000001 */
  4312. #define CAN_F11R2_FB0 CAN_F11R2_FB0_Msk /*!<Filter bit 0 */
  4313. #define CAN_F11R2_FB1_Pos (1U)
  4314. #define CAN_F11R2_FB1_Msk (0x1U << CAN_F11R2_FB1_Pos) /*!< 0x00000002 */
  4315. #define CAN_F11R2_FB1 CAN_F11R2_FB1_Msk /*!<Filter bit 1 */
  4316. #define CAN_F11R2_FB2_Pos (2U)
  4317. #define CAN_F11R2_FB2_Msk (0x1U << CAN_F11R2_FB2_Pos) /*!< 0x00000004 */
  4318. #define CAN_F11R2_FB2 CAN_F11R2_FB2_Msk /*!<Filter bit 2 */
  4319. #define CAN_F11R2_FB3_Pos (3U)
  4320. #define CAN_F11R2_FB3_Msk (0x1U << CAN_F11R2_FB3_Pos) /*!< 0x00000008 */
  4321. #define CAN_F11R2_FB3 CAN_F11R2_FB3_Msk /*!<Filter bit 3 */
  4322. #define CAN_F11R2_FB4_Pos (4U)
  4323. #define CAN_F11R2_FB4_Msk (0x1U << CAN_F11R2_FB4_Pos) /*!< 0x00000010 */
  4324. #define CAN_F11R2_FB4 CAN_F11R2_FB4_Msk /*!<Filter bit 4 */
  4325. #define CAN_F11R2_FB5_Pos (5U)
  4326. #define CAN_F11R2_FB5_Msk (0x1U << CAN_F11R2_FB5_Pos) /*!< 0x00000020 */
  4327. #define CAN_F11R2_FB5 CAN_F11R2_FB5_Msk /*!<Filter bit 5 */
  4328. #define CAN_F11R2_FB6_Pos (6U)
  4329. #define CAN_F11R2_FB6_Msk (0x1U << CAN_F11R2_FB6_Pos) /*!< 0x00000040 */
  4330. #define CAN_F11R2_FB6 CAN_F11R2_FB6_Msk /*!<Filter bit 6 */
  4331. #define CAN_F11R2_FB7_Pos (7U)
  4332. #define CAN_F11R2_FB7_Msk (0x1U << CAN_F11R2_FB7_Pos) /*!< 0x00000080 */
  4333. #define CAN_F11R2_FB7 CAN_F11R2_FB7_Msk /*!<Filter bit 7 */
  4334. #define CAN_F11R2_FB8_Pos (8U)
  4335. #define CAN_F11R2_FB8_Msk (0x1U << CAN_F11R2_FB8_Pos) /*!< 0x00000100 */
  4336. #define CAN_F11R2_FB8 CAN_F11R2_FB8_Msk /*!<Filter bit 8 */
  4337. #define CAN_F11R2_FB9_Pos (9U)
  4338. #define CAN_F11R2_FB9_Msk (0x1U << CAN_F11R2_FB9_Pos) /*!< 0x00000200 */
  4339. #define CAN_F11R2_FB9 CAN_F11R2_FB9_Msk /*!<Filter bit 9 */
  4340. #define CAN_F11R2_FB10_Pos (10U)
  4341. #define CAN_F11R2_FB10_Msk (0x1U << CAN_F11R2_FB10_Pos) /*!< 0x00000400 */
  4342. #define CAN_F11R2_FB10 CAN_F11R2_FB10_Msk /*!<Filter bit 10 */
  4343. #define CAN_F11R2_FB11_Pos (11U)
  4344. #define CAN_F11R2_FB11_Msk (0x1U << CAN_F11R2_FB11_Pos) /*!< 0x00000800 */
  4345. #define CAN_F11R2_FB11 CAN_F11R2_FB11_Msk /*!<Filter bit 11 */
  4346. #define CAN_F11R2_FB12_Pos (12U)
  4347. #define CAN_F11R2_FB12_Msk (0x1U << CAN_F11R2_FB12_Pos) /*!< 0x00001000 */
  4348. #define CAN_F11R2_FB12 CAN_F11R2_FB12_Msk /*!<Filter bit 12 */
  4349. #define CAN_F11R2_FB13_Pos (13U)
  4350. #define CAN_F11R2_FB13_Msk (0x1U << CAN_F11R2_FB13_Pos) /*!< 0x00002000 */
  4351. #define CAN_F11R2_FB13 CAN_F11R2_FB13_Msk /*!<Filter bit 13 */
  4352. #define CAN_F11R2_FB14_Pos (14U)
  4353. #define CAN_F11R2_FB14_Msk (0x1U << CAN_F11R2_FB14_Pos) /*!< 0x00004000 */
  4354. #define CAN_F11R2_FB14 CAN_F11R2_FB14_Msk /*!<Filter bit 14 */
  4355. #define CAN_F11R2_FB15_Pos (15U)
  4356. #define CAN_F11R2_FB15_Msk (0x1U << CAN_F11R2_FB15_Pos) /*!< 0x00008000 */
  4357. #define CAN_F11R2_FB15 CAN_F11R2_FB15_Msk /*!<Filter bit 15 */
  4358. #define CAN_F11R2_FB16_Pos (16U)
  4359. #define CAN_F11R2_FB16_Msk (0x1U << CAN_F11R2_FB16_Pos) /*!< 0x00010000 */
  4360. #define CAN_F11R2_FB16 CAN_F11R2_FB16_Msk /*!<Filter bit 16 */
  4361. #define CAN_F11R2_FB17_Pos (17U)
  4362. #define CAN_F11R2_FB17_Msk (0x1U << CAN_F11R2_FB17_Pos) /*!< 0x00020000 */
  4363. #define CAN_F11R2_FB17 CAN_F11R2_FB17_Msk /*!<Filter bit 17 */
  4364. #define CAN_F11R2_FB18_Pos (18U)
  4365. #define CAN_F11R2_FB18_Msk (0x1U << CAN_F11R2_FB18_Pos) /*!< 0x00040000 */
  4366. #define CAN_F11R2_FB18 CAN_F11R2_FB18_Msk /*!<Filter bit 18 */
  4367. #define CAN_F11R2_FB19_Pos (19U)
  4368. #define CAN_F11R2_FB19_Msk (0x1U << CAN_F11R2_FB19_Pos) /*!< 0x00080000 */
  4369. #define CAN_F11R2_FB19 CAN_F11R2_FB19_Msk /*!<Filter bit 19 */
  4370. #define CAN_F11R2_FB20_Pos (20U)
  4371. #define CAN_F11R2_FB20_Msk (0x1U << CAN_F11R2_FB20_Pos) /*!< 0x00100000 */
  4372. #define CAN_F11R2_FB20 CAN_F11R2_FB20_Msk /*!<Filter bit 20 */
  4373. #define CAN_F11R2_FB21_Pos (21U)
  4374. #define CAN_F11R2_FB21_Msk (0x1U << CAN_F11R2_FB21_Pos) /*!< 0x00200000 */
  4375. #define CAN_F11R2_FB21 CAN_F11R2_FB21_Msk /*!<Filter bit 21 */
  4376. #define CAN_F11R2_FB22_Pos (22U)
  4377. #define CAN_F11R2_FB22_Msk (0x1U << CAN_F11R2_FB22_Pos) /*!< 0x00400000 */
  4378. #define CAN_F11R2_FB22 CAN_F11R2_FB22_Msk /*!<Filter bit 22 */
  4379. #define CAN_F11R2_FB23_Pos (23U)
  4380. #define CAN_F11R2_FB23_Msk (0x1U << CAN_F11R2_FB23_Pos) /*!< 0x00800000 */
  4381. #define CAN_F11R2_FB23 CAN_F11R2_FB23_Msk /*!<Filter bit 23 */
  4382. #define CAN_F11R2_FB24_Pos (24U)
  4383. #define CAN_F11R2_FB24_Msk (0x1U << CAN_F11R2_FB24_Pos) /*!< 0x01000000 */
  4384. #define CAN_F11R2_FB24 CAN_F11R2_FB24_Msk /*!<Filter bit 24 */
  4385. #define CAN_F11R2_FB25_Pos (25U)
  4386. #define CAN_F11R2_FB25_Msk (0x1U << CAN_F11R2_FB25_Pos) /*!< 0x02000000 */
  4387. #define CAN_F11R2_FB25 CAN_F11R2_FB25_Msk /*!<Filter bit 25 */
  4388. #define CAN_F11R2_FB26_Pos (26U)
  4389. #define CAN_F11R2_FB26_Msk (0x1U << CAN_F11R2_FB26_Pos) /*!< 0x04000000 */
  4390. #define CAN_F11R2_FB26 CAN_F11R2_FB26_Msk /*!<Filter bit 26 */
  4391. #define CAN_F11R2_FB27_Pos (27U)
  4392. #define CAN_F11R2_FB27_Msk (0x1U << CAN_F11R2_FB27_Pos) /*!< 0x08000000 */
  4393. #define CAN_F11R2_FB27 CAN_F11R2_FB27_Msk /*!<Filter bit 27 */
  4394. #define CAN_F11R2_FB28_Pos (28U)
  4395. #define CAN_F11R2_FB28_Msk (0x1U << CAN_F11R2_FB28_Pos) /*!< 0x10000000 */
  4396. #define CAN_F11R2_FB28 CAN_F11R2_FB28_Msk /*!<Filter bit 28 */
  4397. #define CAN_F11R2_FB29_Pos (29U)
  4398. #define CAN_F11R2_FB29_Msk (0x1U << CAN_F11R2_FB29_Pos) /*!< 0x20000000 */
  4399. #define CAN_F11R2_FB29 CAN_F11R2_FB29_Msk /*!<Filter bit 29 */
  4400. #define CAN_F11R2_FB30_Pos (30U)
  4401. #define CAN_F11R2_FB30_Msk (0x1U << CAN_F11R2_FB30_Pos) /*!< 0x40000000 */
  4402. #define CAN_F11R2_FB30 CAN_F11R2_FB30_Msk /*!<Filter bit 30 */
  4403. #define CAN_F11R2_FB31_Pos (31U)
  4404. #define CAN_F11R2_FB31_Msk (0x1U << CAN_F11R2_FB31_Pos) /*!< 0x80000000 */
  4405. #define CAN_F11R2_FB31 CAN_F11R2_FB31_Msk /*!<Filter bit 31 */
  4406. /******************* Bit definition for CAN_F12R2 register ******************/
  4407. #define CAN_F12R2_FB0_Pos (0U)
  4408. #define CAN_F12R2_FB0_Msk (0x1U << CAN_F12R2_FB0_Pos) /*!< 0x00000001 */
  4409. #define CAN_F12R2_FB0 CAN_F12R2_FB0_Msk /*!<Filter bit 0 */
  4410. #define CAN_F12R2_FB1_Pos (1U)
  4411. #define CAN_F12R2_FB1_Msk (0x1U << CAN_F12R2_FB1_Pos) /*!< 0x00000002 */
  4412. #define CAN_F12R2_FB1 CAN_F12R2_FB1_Msk /*!<Filter bit 1 */
  4413. #define CAN_F12R2_FB2_Pos (2U)
  4414. #define CAN_F12R2_FB2_Msk (0x1U << CAN_F12R2_FB2_Pos) /*!< 0x00000004 */
  4415. #define CAN_F12R2_FB2 CAN_F12R2_FB2_Msk /*!<Filter bit 2 */
  4416. #define CAN_F12R2_FB3_Pos (3U)
  4417. #define CAN_F12R2_FB3_Msk (0x1U << CAN_F12R2_FB3_Pos) /*!< 0x00000008 */
  4418. #define CAN_F12R2_FB3 CAN_F12R2_FB3_Msk /*!<Filter bit 3 */
  4419. #define CAN_F12R2_FB4_Pos (4U)
  4420. #define CAN_F12R2_FB4_Msk (0x1U << CAN_F12R2_FB4_Pos) /*!< 0x00000010 */
  4421. #define CAN_F12R2_FB4 CAN_F12R2_FB4_Msk /*!<Filter bit 4 */
  4422. #define CAN_F12R2_FB5_Pos (5U)
  4423. #define CAN_F12R2_FB5_Msk (0x1U << CAN_F12R2_FB5_Pos) /*!< 0x00000020 */
  4424. #define CAN_F12R2_FB5 CAN_F12R2_FB5_Msk /*!<Filter bit 5 */
  4425. #define CAN_F12R2_FB6_Pos (6U)
  4426. #define CAN_F12R2_FB6_Msk (0x1U << CAN_F12R2_FB6_Pos) /*!< 0x00000040 */
  4427. #define CAN_F12R2_FB6 CAN_F12R2_FB6_Msk /*!<Filter bit 6 */
  4428. #define CAN_F12R2_FB7_Pos (7U)
  4429. #define CAN_F12R2_FB7_Msk (0x1U << CAN_F12R2_FB7_Pos) /*!< 0x00000080 */
  4430. #define CAN_F12R2_FB7 CAN_F12R2_FB7_Msk /*!<Filter bit 7 */
  4431. #define CAN_F12R2_FB8_Pos (8U)
  4432. #define CAN_F12R2_FB8_Msk (0x1U << CAN_F12R2_FB8_Pos) /*!< 0x00000100 */
  4433. #define CAN_F12R2_FB8 CAN_F12R2_FB8_Msk /*!<Filter bit 8 */
  4434. #define CAN_F12R2_FB9_Pos (9U)
  4435. #define CAN_F12R2_FB9_Msk (0x1U << CAN_F12R2_FB9_Pos) /*!< 0x00000200 */
  4436. #define CAN_F12R2_FB9 CAN_F12R2_FB9_Msk /*!<Filter bit 9 */
  4437. #define CAN_F12R2_FB10_Pos (10U)
  4438. #define CAN_F12R2_FB10_Msk (0x1U << CAN_F12R2_FB10_Pos) /*!< 0x00000400 */
  4439. #define CAN_F12R2_FB10 CAN_F12R2_FB10_Msk /*!<Filter bit 10 */
  4440. #define CAN_F12R2_FB11_Pos (11U)
  4441. #define CAN_F12R2_FB11_Msk (0x1U << CAN_F12R2_FB11_Pos) /*!< 0x00000800 */
  4442. #define CAN_F12R2_FB11 CAN_F12R2_FB11_Msk /*!<Filter bit 11 */
  4443. #define CAN_F12R2_FB12_Pos (12U)
  4444. #define CAN_F12R2_FB12_Msk (0x1U << CAN_F12R2_FB12_Pos) /*!< 0x00001000 */
  4445. #define CAN_F12R2_FB12 CAN_F12R2_FB12_Msk /*!<Filter bit 12 */
  4446. #define CAN_F12R2_FB13_Pos (13U)
  4447. #define CAN_F12R2_FB13_Msk (0x1U << CAN_F12R2_FB13_Pos) /*!< 0x00002000 */
  4448. #define CAN_F12R2_FB13 CAN_F12R2_FB13_Msk /*!<Filter bit 13 */
  4449. #define CAN_F12R2_FB14_Pos (14U)
  4450. #define CAN_F12R2_FB14_Msk (0x1U << CAN_F12R2_FB14_Pos) /*!< 0x00004000 */
  4451. #define CAN_F12R2_FB14 CAN_F12R2_FB14_Msk /*!<Filter bit 14 */
  4452. #define CAN_F12R2_FB15_Pos (15U)
  4453. #define CAN_F12R2_FB15_Msk (0x1U << CAN_F12R2_FB15_Pos) /*!< 0x00008000 */
  4454. #define CAN_F12R2_FB15 CAN_F12R2_FB15_Msk /*!<Filter bit 15 */
  4455. #define CAN_F12R2_FB16_Pos (16U)
  4456. #define CAN_F12R2_FB16_Msk (0x1U << CAN_F12R2_FB16_Pos) /*!< 0x00010000 */
  4457. #define CAN_F12R2_FB16 CAN_F12R2_FB16_Msk /*!<Filter bit 16 */
  4458. #define CAN_F12R2_FB17_Pos (17U)
  4459. #define CAN_F12R2_FB17_Msk (0x1U << CAN_F12R2_FB17_Pos) /*!< 0x00020000 */
  4460. #define CAN_F12R2_FB17 CAN_F12R2_FB17_Msk /*!<Filter bit 17 */
  4461. #define CAN_F12R2_FB18_Pos (18U)
  4462. #define CAN_F12R2_FB18_Msk (0x1U << CAN_F12R2_FB18_Pos) /*!< 0x00040000 */
  4463. #define CAN_F12R2_FB18 CAN_F12R2_FB18_Msk /*!<Filter bit 18 */
  4464. #define CAN_F12R2_FB19_Pos (19U)
  4465. #define CAN_F12R2_FB19_Msk (0x1U << CAN_F12R2_FB19_Pos) /*!< 0x00080000 */
  4466. #define CAN_F12R2_FB19 CAN_F12R2_FB19_Msk /*!<Filter bit 19 */
  4467. #define CAN_F12R2_FB20_Pos (20U)
  4468. #define CAN_F12R2_FB20_Msk (0x1U << CAN_F12R2_FB20_Pos) /*!< 0x00100000 */
  4469. #define CAN_F12R2_FB20 CAN_F12R2_FB20_Msk /*!<Filter bit 20 */
  4470. #define CAN_F12R2_FB21_Pos (21U)
  4471. #define CAN_F12R2_FB21_Msk (0x1U << CAN_F12R2_FB21_Pos) /*!< 0x00200000 */
  4472. #define CAN_F12R2_FB21 CAN_F12R2_FB21_Msk /*!<Filter bit 21 */
  4473. #define CAN_F12R2_FB22_Pos (22U)
  4474. #define CAN_F12R2_FB22_Msk (0x1U << CAN_F12R2_FB22_Pos) /*!< 0x00400000 */
  4475. #define CAN_F12R2_FB22 CAN_F12R2_FB22_Msk /*!<Filter bit 22 */
  4476. #define CAN_F12R2_FB23_Pos (23U)
  4477. #define CAN_F12R2_FB23_Msk (0x1U << CAN_F12R2_FB23_Pos) /*!< 0x00800000 */
  4478. #define CAN_F12R2_FB23 CAN_F12R2_FB23_Msk /*!<Filter bit 23 */
  4479. #define CAN_F12R2_FB24_Pos (24U)
  4480. #define CAN_F12R2_FB24_Msk (0x1U << CAN_F12R2_FB24_Pos) /*!< 0x01000000 */
  4481. #define CAN_F12R2_FB24 CAN_F12R2_FB24_Msk /*!<Filter bit 24 */
  4482. #define CAN_F12R2_FB25_Pos (25U)
  4483. #define CAN_F12R2_FB25_Msk (0x1U << CAN_F12R2_FB25_Pos) /*!< 0x02000000 */
  4484. #define CAN_F12R2_FB25 CAN_F12R2_FB25_Msk /*!<Filter bit 25 */
  4485. #define CAN_F12R2_FB26_Pos (26U)
  4486. #define CAN_F12R2_FB26_Msk (0x1U << CAN_F12R2_FB26_Pos) /*!< 0x04000000 */
  4487. #define CAN_F12R2_FB26 CAN_F12R2_FB26_Msk /*!<Filter bit 26 */
  4488. #define CAN_F12R2_FB27_Pos (27U)
  4489. #define CAN_F12R2_FB27_Msk (0x1U << CAN_F12R2_FB27_Pos) /*!< 0x08000000 */
  4490. #define CAN_F12R2_FB27 CAN_F12R2_FB27_Msk /*!<Filter bit 27 */
  4491. #define CAN_F12R2_FB28_Pos (28U)
  4492. #define CAN_F12R2_FB28_Msk (0x1U << CAN_F12R2_FB28_Pos) /*!< 0x10000000 */
  4493. #define CAN_F12R2_FB28 CAN_F12R2_FB28_Msk /*!<Filter bit 28 */
  4494. #define CAN_F12R2_FB29_Pos (29U)
  4495. #define CAN_F12R2_FB29_Msk (0x1U << CAN_F12R2_FB29_Pos) /*!< 0x20000000 */
  4496. #define CAN_F12R2_FB29 CAN_F12R2_FB29_Msk /*!<Filter bit 29 */
  4497. #define CAN_F12R2_FB30_Pos (30U)
  4498. #define CAN_F12R2_FB30_Msk (0x1U << CAN_F12R2_FB30_Pos) /*!< 0x40000000 */
  4499. #define CAN_F12R2_FB30 CAN_F12R2_FB30_Msk /*!<Filter bit 30 */
  4500. #define CAN_F12R2_FB31_Pos (31U)
  4501. #define CAN_F12R2_FB31_Msk (0x1U << CAN_F12R2_FB31_Pos) /*!< 0x80000000 */
  4502. #define CAN_F12R2_FB31 CAN_F12R2_FB31_Msk /*!<Filter bit 31 */
  4503. /******************* Bit definition for CAN_F13R2 register ******************/
  4504. #define CAN_F13R2_FB0_Pos (0U)
  4505. #define CAN_F13R2_FB0_Msk (0x1U << CAN_F13R2_FB0_Pos) /*!< 0x00000001 */
  4506. #define CAN_F13R2_FB0 CAN_F13R2_FB0_Msk /*!<Filter bit 0 */
  4507. #define CAN_F13R2_FB1_Pos (1U)
  4508. #define CAN_F13R2_FB1_Msk (0x1U << CAN_F13R2_FB1_Pos) /*!< 0x00000002 */
  4509. #define CAN_F13R2_FB1 CAN_F13R2_FB1_Msk /*!<Filter bit 1 */
  4510. #define CAN_F13R2_FB2_Pos (2U)
  4511. #define CAN_F13R2_FB2_Msk (0x1U << CAN_F13R2_FB2_Pos) /*!< 0x00000004 */
  4512. #define CAN_F13R2_FB2 CAN_F13R2_FB2_Msk /*!<Filter bit 2 */
  4513. #define CAN_F13R2_FB3_Pos (3U)
  4514. #define CAN_F13R2_FB3_Msk (0x1U << CAN_F13R2_FB3_Pos) /*!< 0x00000008 */
  4515. #define CAN_F13R2_FB3 CAN_F13R2_FB3_Msk /*!<Filter bit 3 */
  4516. #define CAN_F13R2_FB4_Pos (4U)
  4517. #define CAN_F13R2_FB4_Msk (0x1U << CAN_F13R2_FB4_Pos) /*!< 0x00000010 */
  4518. #define CAN_F13R2_FB4 CAN_F13R2_FB4_Msk /*!<Filter bit 4 */
  4519. #define CAN_F13R2_FB5_Pos (5U)
  4520. #define CAN_F13R2_FB5_Msk (0x1U << CAN_F13R2_FB5_Pos) /*!< 0x00000020 */
  4521. #define CAN_F13R2_FB5 CAN_F13R2_FB5_Msk /*!<Filter bit 5 */
  4522. #define CAN_F13R2_FB6_Pos (6U)
  4523. #define CAN_F13R2_FB6_Msk (0x1U << CAN_F13R2_FB6_Pos) /*!< 0x00000040 */
  4524. #define CAN_F13R2_FB6 CAN_F13R2_FB6_Msk /*!<Filter bit 6 */
  4525. #define CAN_F13R2_FB7_Pos (7U)
  4526. #define CAN_F13R2_FB7_Msk (0x1U << CAN_F13R2_FB7_Pos) /*!< 0x00000080 */
  4527. #define CAN_F13R2_FB7 CAN_F13R2_FB7_Msk /*!<Filter bit 7 */
  4528. #define CAN_F13R2_FB8_Pos (8U)
  4529. #define CAN_F13R2_FB8_Msk (0x1U << CAN_F13R2_FB8_Pos) /*!< 0x00000100 */
  4530. #define CAN_F13R2_FB8 CAN_F13R2_FB8_Msk /*!<Filter bit 8 */
  4531. #define CAN_F13R2_FB9_Pos (9U)
  4532. #define CAN_F13R2_FB9_Msk (0x1U << CAN_F13R2_FB9_Pos) /*!< 0x00000200 */
  4533. #define CAN_F13R2_FB9 CAN_F13R2_FB9_Msk /*!<Filter bit 9 */
  4534. #define CAN_F13R2_FB10_Pos (10U)
  4535. #define CAN_F13R2_FB10_Msk (0x1U << CAN_F13R2_FB10_Pos) /*!< 0x00000400 */
  4536. #define CAN_F13R2_FB10 CAN_F13R2_FB10_Msk /*!<Filter bit 10 */
  4537. #define CAN_F13R2_FB11_Pos (11U)
  4538. #define CAN_F13R2_FB11_Msk (0x1U << CAN_F13R2_FB11_Pos) /*!< 0x00000800 */
  4539. #define CAN_F13R2_FB11 CAN_F13R2_FB11_Msk /*!<Filter bit 11 */
  4540. #define CAN_F13R2_FB12_Pos (12U)
  4541. #define CAN_F13R2_FB12_Msk (0x1U << CAN_F13R2_FB12_Pos) /*!< 0x00001000 */
  4542. #define CAN_F13R2_FB12 CAN_F13R2_FB12_Msk /*!<Filter bit 12 */
  4543. #define CAN_F13R2_FB13_Pos (13U)
  4544. #define CAN_F13R2_FB13_Msk (0x1U << CAN_F13R2_FB13_Pos) /*!< 0x00002000 */
  4545. #define CAN_F13R2_FB13 CAN_F13R2_FB13_Msk /*!<Filter bit 13 */
  4546. #define CAN_F13R2_FB14_Pos (14U)
  4547. #define CAN_F13R2_FB14_Msk (0x1U << CAN_F13R2_FB14_Pos) /*!< 0x00004000 */
  4548. #define CAN_F13R2_FB14 CAN_F13R2_FB14_Msk /*!<Filter bit 14 */
  4549. #define CAN_F13R2_FB15_Pos (15U)
  4550. #define CAN_F13R2_FB15_Msk (0x1U << CAN_F13R2_FB15_Pos) /*!< 0x00008000 */
  4551. #define CAN_F13R2_FB15 CAN_F13R2_FB15_Msk /*!<Filter bit 15 */
  4552. #define CAN_F13R2_FB16_Pos (16U)
  4553. #define CAN_F13R2_FB16_Msk (0x1U << CAN_F13R2_FB16_Pos) /*!< 0x00010000 */
  4554. #define CAN_F13R2_FB16 CAN_F13R2_FB16_Msk /*!<Filter bit 16 */
  4555. #define CAN_F13R2_FB17_Pos (17U)
  4556. #define CAN_F13R2_FB17_Msk (0x1U << CAN_F13R2_FB17_Pos) /*!< 0x00020000 */
  4557. #define CAN_F13R2_FB17 CAN_F13R2_FB17_Msk /*!<Filter bit 17 */
  4558. #define CAN_F13R2_FB18_Pos (18U)
  4559. #define CAN_F13R2_FB18_Msk (0x1U << CAN_F13R2_FB18_Pos) /*!< 0x00040000 */
  4560. #define CAN_F13R2_FB18 CAN_F13R2_FB18_Msk /*!<Filter bit 18 */
  4561. #define CAN_F13R2_FB19_Pos (19U)
  4562. #define CAN_F13R2_FB19_Msk (0x1U << CAN_F13R2_FB19_Pos) /*!< 0x00080000 */
  4563. #define CAN_F13R2_FB19 CAN_F13R2_FB19_Msk /*!<Filter bit 19 */
  4564. #define CAN_F13R2_FB20_Pos (20U)
  4565. #define CAN_F13R2_FB20_Msk (0x1U << CAN_F13R2_FB20_Pos) /*!< 0x00100000 */
  4566. #define CAN_F13R2_FB20 CAN_F13R2_FB20_Msk /*!<Filter bit 20 */
  4567. #define CAN_F13R2_FB21_Pos (21U)
  4568. #define CAN_F13R2_FB21_Msk (0x1U << CAN_F13R2_FB21_Pos) /*!< 0x00200000 */
  4569. #define CAN_F13R2_FB21 CAN_F13R2_FB21_Msk /*!<Filter bit 21 */
  4570. #define CAN_F13R2_FB22_Pos (22U)
  4571. #define CAN_F13R2_FB22_Msk (0x1U << CAN_F13R2_FB22_Pos) /*!< 0x00400000 */
  4572. #define CAN_F13R2_FB22 CAN_F13R2_FB22_Msk /*!<Filter bit 22 */
  4573. #define CAN_F13R2_FB23_Pos (23U)
  4574. #define CAN_F13R2_FB23_Msk (0x1U << CAN_F13R2_FB23_Pos) /*!< 0x00800000 */
  4575. #define CAN_F13R2_FB23 CAN_F13R2_FB23_Msk /*!<Filter bit 23 */
  4576. #define CAN_F13R2_FB24_Pos (24U)
  4577. #define CAN_F13R2_FB24_Msk (0x1U << CAN_F13R2_FB24_Pos) /*!< 0x01000000 */
  4578. #define CAN_F13R2_FB24 CAN_F13R2_FB24_Msk /*!<Filter bit 24 */
  4579. #define CAN_F13R2_FB25_Pos (25U)
  4580. #define CAN_F13R2_FB25_Msk (0x1U << CAN_F13R2_FB25_Pos) /*!< 0x02000000 */
  4581. #define CAN_F13R2_FB25 CAN_F13R2_FB25_Msk /*!<Filter bit 25 */
  4582. #define CAN_F13R2_FB26_Pos (26U)
  4583. #define CAN_F13R2_FB26_Msk (0x1U << CAN_F13R2_FB26_Pos) /*!< 0x04000000 */
  4584. #define CAN_F13R2_FB26 CAN_F13R2_FB26_Msk /*!<Filter bit 26 */
  4585. #define CAN_F13R2_FB27_Pos (27U)
  4586. #define CAN_F13R2_FB27_Msk (0x1U << CAN_F13R2_FB27_Pos) /*!< 0x08000000 */
  4587. #define CAN_F13R2_FB27 CAN_F13R2_FB27_Msk /*!<Filter bit 27 */
  4588. #define CAN_F13R2_FB28_Pos (28U)
  4589. #define CAN_F13R2_FB28_Msk (0x1U << CAN_F13R2_FB28_Pos) /*!< 0x10000000 */
  4590. #define CAN_F13R2_FB28 CAN_F13R2_FB28_Msk /*!<Filter bit 28 */
  4591. #define CAN_F13R2_FB29_Pos (29U)
  4592. #define CAN_F13R2_FB29_Msk (0x1U << CAN_F13R2_FB29_Pos) /*!< 0x20000000 */
  4593. #define CAN_F13R2_FB29 CAN_F13R2_FB29_Msk /*!<Filter bit 29 */
  4594. #define CAN_F13R2_FB30_Pos (30U)
  4595. #define CAN_F13R2_FB30_Msk (0x1U << CAN_F13R2_FB30_Pos) /*!< 0x40000000 */
  4596. #define CAN_F13R2_FB30 CAN_F13R2_FB30_Msk /*!<Filter bit 30 */
  4597. #define CAN_F13R2_FB31_Pos (31U)
  4598. #define CAN_F13R2_FB31_Msk (0x1U << CAN_F13R2_FB31_Pos) /*!< 0x80000000 */
  4599. #define CAN_F13R2_FB31 CAN_F13R2_FB31_Msk /*!<Filter bit 31 */
  4600. /******************************************************************************/
  4601. /* */
  4602. /* HDMI-CEC (CEC) */
  4603. /* */
  4604. /******************************************************************************/
  4605. /******************* Bit definition for CEC_CR register *********************/
  4606. #define CEC_CR_CECEN_Pos (0U)
  4607. #define CEC_CR_CECEN_Msk (0x1U << CEC_CR_CECEN_Pos) /*!< 0x00000001 */
  4608. #define CEC_CR_CECEN CEC_CR_CECEN_Msk /*!< CEC Enable */
  4609. #define CEC_CR_TXSOM_Pos (1U)
  4610. #define CEC_CR_TXSOM_Msk (0x1U << CEC_CR_TXSOM_Pos) /*!< 0x00000002 */
  4611. #define CEC_CR_TXSOM CEC_CR_TXSOM_Msk /*!< CEC Tx Start Of Message */
  4612. #define CEC_CR_TXEOM_Pos (2U)
  4613. #define CEC_CR_TXEOM_Msk (0x1U << CEC_CR_TXEOM_Pos) /*!< 0x00000004 */
  4614. #define CEC_CR_TXEOM CEC_CR_TXEOM_Msk /*!< CEC Tx End Of Message */
  4615. /******************* Bit definition for CEC_CFGR register *******************/
  4616. #define CEC_CFGR_SFT_Pos (0U)
  4617. #define CEC_CFGR_SFT_Msk (0x7U << CEC_CFGR_SFT_Pos) /*!< 0x00000007 */
  4618. #define CEC_CFGR_SFT CEC_CFGR_SFT_Msk /*!< CEC Signal Free Time */
  4619. #define CEC_CFGR_RXTOL_Pos (3U)
  4620. #define CEC_CFGR_RXTOL_Msk (0x1U << CEC_CFGR_RXTOL_Pos) /*!< 0x00000008 */
  4621. #define CEC_CFGR_RXTOL CEC_CFGR_RXTOL_Msk /*!< CEC Tolerance */
  4622. #define CEC_CFGR_BRESTP_Pos (4U)
  4623. #define CEC_CFGR_BRESTP_Msk (0x1U << CEC_CFGR_BRESTP_Pos) /*!< 0x00000010 */
  4624. #define CEC_CFGR_BRESTP CEC_CFGR_BRESTP_Msk /*!< CEC Rx Stop */
  4625. #define CEC_CFGR_BREGEN_Pos (5U)
  4626. #define CEC_CFGR_BREGEN_Msk (0x1U << CEC_CFGR_BREGEN_Pos) /*!< 0x00000020 */
  4627. #define CEC_CFGR_BREGEN CEC_CFGR_BREGEN_Msk /*!< CEC Bit Rising Error generation */
  4628. #define CEC_CFGR_LBPEGEN_Pos (6U)
  4629. #define CEC_CFGR_LBPEGEN_Msk (0x1U << CEC_CFGR_LBPEGEN_Pos) /*!< 0x00000040 */
  4630. #define CEC_CFGR_LBPEGEN CEC_CFGR_LBPEGEN_Msk /*!< CEC Long Bit Period Error gener. */
  4631. #define CEC_CFGR_BRDNOGEN_Pos (7U)
  4632. #define CEC_CFGR_BRDNOGEN_Msk (0x1U << CEC_CFGR_BRDNOGEN_Pos) /*!< 0x00000080 */
  4633. #define CEC_CFGR_BRDNOGEN CEC_CFGR_BRDNOGEN_Msk /*!< CEC Broadcast No Error generation */
  4634. #define CEC_CFGR_SFTOPT_Pos (8U)
  4635. #define CEC_CFGR_SFTOPT_Msk (0x1U << CEC_CFGR_SFTOPT_Pos) /*!< 0x00000100 */
  4636. #define CEC_CFGR_SFTOPT CEC_CFGR_SFTOPT_Msk /*!< CEC Signal Free Time optional */
  4637. #define CEC_CFGR_OAR_Pos (16U)
  4638. #define CEC_CFGR_OAR_Msk (0x7FFFU << CEC_CFGR_OAR_Pos) /*!< 0x7FFF0000 */
  4639. #define CEC_CFGR_OAR CEC_CFGR_OAR_Msk /*!< CEC Own Address */
  4640. #define CEC_CFGR_LSTN_Pos (31U)
  4641. #define CEC_CFGR_LSTN_Msk (0x1U << CEC_CFGR_LSTN_Pos) /*!< 0x80000000 */
  4642. #define CEC_CFGR_LSTN CEC_CFGR_LSTN_Msk /*!< CEC Listen mode */
  4643. /******************* Bit definition for CEC_TXDR register *******************/
  4644. #define CEC_TXDR_TXD_Pos (0U)
  4645. #define CEC_TXDR_TXD_Msk (0xFFU << CEC_TXDR_TXD_Pos) /*!< 0x000000FF */
  4646. #define CEC_TXDR_TXD CEC_TXDR_TXD_Msk /*!< CEC Tx Data */
  4647. /******************* Bit definition for CEC_RXDR register *******************/
  4648. #define CEC_TXDR_RXD_Pos (0U)
  4649. #define CEC_TXDR_RXD_Msk (0xFFU << CEC_TXDR_RXD_Pos) /*!< 0x000000FF */
  4650. #define CEC_TXDR_RXD CEC_TXDR_RXD_Msk /*!< CEC Rx Data */
  4651. /******************* Bit definition for CEC_ISR register ********************/
  4652. #define CEC_ISR_RXBR_Pos (0U)
  4653. #define CEC_ISR_RXBR_Msk (0x1U << CEC_ISR_RXBR_Pos) /*!< 0x00000001 */
  4654. #define CEC_ISR_RXBR CEC_ISR_RXBR_Msk /*!< CEC Rx-Byte Received */
  4655. #define CEC_ISR_RXEND_Pos (1U)
  4656. #define CEC_ISR_RXEND_Msk (0x1U << CEC_ISR_RXEND_Pos) /*!< 0x00000002 */
  4657. #define CEC_ISR_RXEND CEC_ISR_RXEND_Msk /*!< CEC End Of Reception */
  4658. #define CEC_ISR_RXOVR_Pos (2U)
  4659. #define CEC_ISR_RXOVR_Msk (0x1U << CEC_ISR_RXOVR_Pos) /*!< 0x00000004 */
  4660. #define CEC_ISR_RXOVR CEC_ISR_RXOVR_Msk /*!< CEC Rx-Overrun */
  4661. #define CEC_ISR_BRE_Pos (3U)
  4662. #define CEC_ISR_BRE_Msk (0x1U << CEC_ISR_BRE_Pos) /*!< 0x00000008 */
  4663. #define CEC_ISR_BRE CEC_ISR_BRE_Msk /*!< CEC Rx Bit Rising Error */
  4664. #define CEC_ISR_SBPE_Pos (4U)
  4665. #define CEC_ISR_SBPE_Msk (0x1U << CEC_ISR_SBPE_Pos) /*!< 0x00000010 */
  4666. #define CEC_ISR_SBPE CEC_ISR_SBPE_Msk /*!< CEC Rx Short Bit period Error */
  4667. #define CEC_ISR_LBPE_Pos (5U)
  4668. #define CEC_ISR_LBPE_Msk (0x1U << CEC_ISR_LBPE_Pos) /*!< 0x00000020 */
  4669. #define CEC_ISR_LBPE CEC_ISR_LBPE_Msk /*!< CEC Rx Long Bit period Error */
  4670. #define CEC_ISR_RXACKE_Pos (6U)
  4671. #define CEC_ISR_RXACKE_Msk (0x1U << CEC_ISR_RXACKE_Pos) /*!< 0x00000040 */
  4672. #define CEC_ISR_RXACKE CEC_ISR_RXACKE_Msk /*!< CEC Rx Missing Acknowledge */
  4673. #define CEC_ISR_ARBLST_Pos (7U)
  4674. #define CEC_ISR_ARBLST_Msk (0x1U << CEC_ISR_ARBLST_Pos) /*!< 0x00000080 */
  4675. #define CEC_ISR_ARBLST CEC_ISR_ARBLST_Msk /*!< CEC Arbitration Lost */
  4676. #define CEC_ISR_TXBR_Pos (8U)
  4677. #define CEC_ISR_TXBR_Msk (0x1U << CEC_ISR_TXBR_Pos) /*!< 0x00000100 */
  4678. #define CEC_ISR_TXBR CEC_ISR_TXBR_Msk /*!< CEC Tx Byte Request */
  4679. #define CEC_ISR_TXEND_Pos (9U)
  4680. #define CEC_ISR_TXEND_Msk (0x1U << CEC_ISR_TXEND_Pos) /*!< 0x00000200 */
  4681. #define CEC_ISR_TXEND CEC_ISR_TXEND_Msk /*!< CEC End of Transmission */
  4682. #define CEC_ISR_TXUDR_Pos (10U)
  4683. #define CEC_ISR_TXUDR_Msk (0x1U << CEC_ISR_TXUDR_Pos) /*!< 0x00000400 */
  4684. #define CEC_ISR_TXUDR CEC_ISR_TXUDR_Msk /*!< CEC Tx-Buffer Underrun */
  4685. #define CEC_ISR_TXERR_Pos (11U)
  4686. #define CEC_ISR_TXERR_Msk (0x1U << CEC_ISR_TXERR_Pos) /*!< 0x00000800 */
  4687. #define CEC_ISR_TXERR CEC_ISR_TXERR_Msk /*!< CEC Tx-Error */
  4688. #define CEC_ISR_TXACKE_Pos (12U)
  4689. #define CEC_ISR_TXACKE_Msk (0x1U << CEC_ISR_TXACKE_Pos) /*!< 0x00001000 */
  4690. #define CEC_ISR_TXACKE CEC_ISR_TXACKE_Msk /*!< CEC Tx Missing Acknowledge */
  4691. /******************* Bit definition for CEC_IER register ********************/
  4692. #define CEC_IER_RXBRIE_Pos (0U)
  4693. #define CEC_IER_RXBRIE_Msk (0x1U << CEC_IER_RXBRIE_Pos) /*!< 0x00000001 */
  4694. #define CEC_IER_RXBRIE CEC_IER_RXBRIE_Msk /*!< CEC Rx-Byte Received IT Enable */
  4695. #define CEC_IER_RXENDIE_Pos (1U)
  4696. #define CEC_IER_RXENDIE_Msk (0x1U << CEC_IER_RXENDIE_Pos) /*!< 0x00000002 */
  4697. #define CEC_IER_RXENDIE CEC_IER_RXENDIE_Msk /*!< CEC End Of Reception IT Enable */
  4698. #define CEC_IER_RXOVRIE_Pos (2U)
  4699. #define CEC_IER_RXOVRIE_Msk (0x1U << CEC_IER_RXOVRIE_Pos) /*!< 0x00000004 */
  4700. #define CEC_IER_RXOVRIE CEC_IER_RXOVRIE_Msk /*!< CEC Rx-Overrun IT Enable */
  4701. #define CEC_IER_BREIE_Pos (3U)
  4702. #define CEC_IER_BREIE_Msk (0x1U << CEC_IER_BREIE_Pos) /*!< 0x00000008 */
  4703. #define CEC_IER_BREIE CEC_IER_BREIE_Msk /*!< CEC Rx Bit Rising Error IT Enable */
  4704. #define CEC_IER_SBPEIE_Pos (4U)
  4705. #define CEC_IER_SBPEIE_Msk (0x1U << CEC_IER_SBPEIE_Pos) /*!< 0x00000010 */
  4706. #define CEC_IER_SBPEIE CEC_IER_SBPEIE_Msk /*!< CEC Rx Short Bit period Error IT Enable*/
  4707. #define CEC_IER_LBPEIE_Pos (5U)
  4708. #define CEC_IER_LBPEIE_Msk (0x1U << CEC_IER_LBPEIE_Pos) /*!< 0x00000020 */
  4709. #define CEC_IER_LBPEIE CEC_IER_LBPEIE_Msk /*!< CEC Rx Long Bit period Error IT Enable */
  4710. #define CEC_IER_RXACKEIE_Pos (6U)
  4711. #define CEC_IER_RXACKEIE_Msk (0x1U << CEC_IER_RXACKEIE_Pos) /*!< 0x00000040 */
  4712. #define CEC_IER_RXACKEIE CEC_IER_RXACKEIE_Msk /*!< CEC Rx Missing Acknowledge IT Enable */
  4713. #define CEC_IER_ARBLSTIE_Pos (7U)
  4714. #define CEC_IER_ARBLSTIE_Msk (0x1U << CEC_IER_ARBLSTIE_Pos) /*!< 0x00000080 */
  4715. #define CEC_IER_ARBLSTIE CEC_IER_ARBLSTIE_Msk /*!< CEC Arbitration Lost IT Enable */
  4716. #define CEC_IER_TXBRIE_Pos (8U)
  4717. #define CEC_IER_TXBRIE_Msk (0x1U << CEC_IER_TXBRIE_Pos) /*!< 0x00000100 */
  4718. #define CEC_IER_TXBRIE CEC_IER_TXBRIE_Msk /*!< CEC Tx Byte Request IT Enable */
  4719. #define CEC_IER_TXENDIE_Pos (9U)
  4720. #define CEC_IER_TXENDIE_Msk (0x1U << CEC_IER_TXENDIE_Pos) /*!< 0x00000200 */
  4721. #define CEC_IER_TXENDIE CEC_IER_TXENDIE_Msk /*!< CEC End of Transmission IT Enable */
  4722. #define CEC_IER_TXUDRIE_Pos (10U)
  4723. #define CEC_IER_TXUDRIE_Msk (0x1U << CEC_IER_TXUDRIE_Pos) /*!< 0x00000400 */
  4724. #define CEC_IER_TXUDRIE CEC_IER_TXUDRIE_Msk /*!< CEC Tx-Buffer Underrun IT Enable */
  4725. #define CEC_IER_TXERRIE_Pos (11U)
  4726. #define CEC_IER_TXERRIE_Msk (0x1U << CEC_IER_TXERRIE_Pos) /*!< 0x00000800 */
  4727. #define CEC_IER_TXERRIE CEC_IER_TXERRIE_Msk /*!< CEC Tx-Error IT Enable */
  4728. #define CEC_IER_TXACKEIE_Pos (12U)
  4729. #define CEC_IER_TXACKEIE_Msk (0x1U << CEC_IER_TXACKEIE_Pos) /*!< 0x00001000 */
  4730. #define CEC_IER_TXACKEIE CEC_IER_TXACKEIE_Msk /*!< CEC Tx Missing Acknowledge IT Enable */
  4731. /******************************************************************************/
  4732. /* */
  4733. /* Analog Comparators (COMP) */
  4734. /* */
  4735. /******************************************************************************/
  4736. /*********************** Bit definition for COMP_CSR register ***************/
  4737. /* COMP1 bits definition */
  4738. #define COMP_CSR_COMP1EN_Pos (0U)
  4739. #define COMP_CSR_COMP1EN_Msk (0x1U << COMP_CSR_COMP1EN_Pos) /*!< 0x00000001 */
  4740. #define COMP_CSR_COMP1EN COMP_CSR_COMP1EN_Msk /*!< COMP1 enable */
  4741. #define COMP_CSR_COMP1SW1_Pos (1U)
  4742. #define COMP_CSR_COMP1SW1_Msk (0x1U << COMP_CSR_COMP1SW1_Pos) /*!< 0x00000002 */
  4743. #define COMP_CSR_COMP1SW1 COMP_CSR_COMP1SW1_Msk /*!< COMP1 SW1 switch control */
  4744. #define COMP_CSR_COMP1MODE_Pos (2U)
  4745. #define COMP_CSR_COMP1MODE_Msk (0x3U << COMP_CSR_COMP1MODE_Pos) /*!< 0x0000000C */
  4746. #define COMP_CSR_COMP1MODE COMP_CSR_COMP1MODE_Msk /*!< COMP1 power mode */
  4747. #define COMP_CSR_COMP1MODE_0 (0x1U << COMP_CSR_COMP1MODE_Pos) /*!< 0x00000004 */
  4748. #define COMP_CSR_COMP1MODE_1 (0x2U << COMP_CSR_COMP1MODE_Pos) /*!< 0x00000008 */
  4749. #define COMP_CSR_COMP1INSEL_Pos (4U)
  4750. #define COMP_CSR_COMP1INSEL_Msk (0x7U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000070 */
  4751. #define COMP_CSR_COMP1INSEL COMP_CSR_COMP1INSEL_Msk /*!< COMP1 inverting input select */
  4752. #define COMP_CSR_COMP1INSEL_0 (0x1U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000010 */
  4753. #define COMP_CSR_COMP1INSEL_1 (0x2U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000020 */
  4754. #define COMP_CSR_COMP1INSEL_2 (0x4U << COMP_CSR_COMP1INSEL_Pos) /*!< 0x00000040 */
  4755. #define COMP_CSR_COMP1OUTSEL_Pos (8U)
  4756. #define COMP_CSR_COMP1OUTSEL_Msk (0x7U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000700 */
  4757. #define COMP_CSR_COMP1OUTSEL COMP_CSR_COMP1OUTSEL_Msk /*!< COMP1 output select */
  4758. #define COMP_CSR_COMP1OUTSEL_0 (0x1U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000100 */
  4759. #define COMP_CSR_COMP1OUTSEL_1 (0x2U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000200 */
  4760. #define COMP_CSR_COMP1OUTSEL_2 (0x4U << COMP_CSR_COMP1OUTSEL_Pos) /*!< 0x00000400 */
  4761. #define COMP_CSR_COMP1POL_Pos (11U)
  4762. #define COMP_CSR_COMP1POL_Msk (0x1U << COMP_CSR_COMP1POL_Pos) /*!< 0x00000800 */
  4763. #define COMP_CSR_COMP1POL COMP_CSR_COMP1POL_Msk /*!< COMP1 output polarity */
  4764. #define COMP_CSR_COMP1HYST_Pos (12U)
  4765. #define COMP_CSR_COMP1HYST_Msk (0x3U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00003000 */
  4766. #define COMP_CSR_COMP1HYST COMP_CSR_COMP1HYST_Msk /*!< COMP1 hysteresis */
  4767. #define COMP_CSR_COMP1HYST_0 (0x1U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00001000 */
  4768. #define COMP_CSR_COMP1HYST_1 (0x2U << COMP_CSR_COMP1HYST_Pos) /*!< 0x00002000 */
  4769. #define COMP_CSR_COMP1OUT_Pos (14U)
  4770. #define COMP_CSR_COMP1OUT_Msk (0x1U << COMP_CSR_COMP1OUT_Pos) /*!< 0x00004000 */
  4771. #define COMP_CSR_COMP1OUT COMP_CSR_COMP1OUT_Msk /*!< COMP1 output level */
  4772. #define COMP_CSR_COMP1LOCK_Pos (15U)
  4773. #define COMP_CSR_COMP1LOCK_Msk (0x1U << COMP_CSR_COMP1LOCK_Pos) /*!< 0x00008000 */
  4774. #define COMP_CSR_COMP1LOCK COMP_CSR_COMP1LOCK_Msk /*!< COMP1 lock */
  4775. /* COMP2 bits definition */
  4776. #define COMP_CSR_COMP2EN_Pos (16U)
  4777. #define COMP_CSR_COMP2EN_Msk (0x1U << COMP_CSR_COMP2EN_Pos) /*!< 0x00010000 */
  4778. #define COMP_CSR_COMP2EN COMP_CSR_COMP2EN_Msk /*!< COMP2 enable */
  4779. #define COMP_CSR_COMP2MODE_Pos (18U)
  4780. #define COMP_CSR_COMP2MODE_Msk (0x3U << COMP_CSR_COMP2MODE_Pos) /*!< 0x000C0000 */
  4781. #define COMP_CSR_COMP2MODE COMP_CSR_COMP2MODE_Msk /*!< COMP2 power mode */
  4782. #define COMP_CSR_COMP2MODE_0 (0x1U << COMP_CSR_COMP2MODE_Pos) /*!< 0x00040000 */
  4783. #define COMP_CSR_COMP2MODE_1 (0x2U << COMP_CSR_COMP2MODE_Pos) /*!< 0x00080000 */
  4784. #define COMP_CSR_COMP2INSEL_Pos (20U)
  4785. #define COMP_CSR_COMP2INSEL_Msk (0x7U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00700000 */
  4786. #define COMP_CSR_COMP2INSEL COMP_CSR_COMP2INSEL_Msk /*!< COMP2 inverting input select */
  4787. #define COMP_CSR_COMP2INSEL_0 (0x1U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00100000 */
  4788. #define COMP_CSR_COMP2INSEL_1 (0x2U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00200000 */
  4789. #define COMP_CSR_COMP2INSEL_2 (0x4U << COMP_CSR_COMP2INSEL_Pos) /*!< 0x00400000 */
  4790. #define COMP_CSR_WNDWEN_Pos (23U)
  4791. #define COMP_CSR_WNDWEN_Msk (0x1U << COMP_CSR_WNDWEN_Pos) /*!< 0x00800000 */
  4792. #define COMP_CSR_WNDWEN COMP_CSR_WNDWEN_Msk /*!< COMPx window mode. Bit intended to be used with COMP common instance (COMP_Common_TypeDef) */
  4793. #define COMP_CSR_COMP2OUTSEL_Pos (24U)
  4794. #define COMP_CSR_COMP2OUTSEL_Msk (0x7U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x07000000 */
  4795. #define COMP_CSR_COMP2OUTSEL COMP_CSR_COMP2OUTSEL_Msk /*!< COMP2 output select */
  4796. #define COMP_CSR_COMP2OUTSEL_0 (0x1U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x01000000 */
  4797. #define COMP_CSR_COMP2OUTSEL_1 (0x2U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x02000000 */
  4798. #define COMP_CSR_COMP2OUTSEL_2 (0x4U << COMP_CSR_COMP2OUTSEL_Pos) /*!< 0x04000000 */
  4799. #define COMP_CSR_COMP2POL_Pos (27U)
  4800. #define COMP_CSR_COMP2POL_Msk (0x1U << COMP_CSR_COMP2POL_Pos) /*!< 0x08000000 */
  4801. #define COMP_CSR_COMP2POL COMP_CSR_COMP2POL_Msk /*!< COMP2 output polarity */
  4802. #define COMP_CSR_COMP2HYST_Pos (28U)
  4803. #define COMP_CSR_COMP2HYST_Msk (0x3U << COMP_CSR_COMP2HYST_Pos) /*!< 0x30000000 */
  4804. #define COMP_CSR_COMP2HYST COMP_CSR_COMP2HYST_Msk /*!< COMP2 hysteresis */
  4805. #define COMP_CSR_COMP2HYST_0 (0x1U << COMP_CSR_COMP2HYST_Pos) /*!< 0x10000000 */
  4806. #define COMP_CSR_COMP2HYST_1 (0x2U << COMP_CSR_COMP2HYST_Pos) /*!< 0x20000000 */
  4807. #define COMP_CSR_COMP2OUT_Pos (30U)
  4808. #define COMP_CSR_COMP2OUT_Msk (0x1U << COMP_CSR_COMP2OUT_Pos) /*!< 0x40000000 */
  4809. #define COMP_CSR_COMP2OUT COMP_CSR_COMP2OUT_Msk /*!< COMP2 output level */
  4810. #define COMP_CSR_COMP2LOCK_Pos (31U)
  4811. #define COMP_CSR_COMP2LOCK_Msk (0x1U << COMP_CSR_COMP2LOCK_Pos) /*!< 0x80000000 */
  4812. #define COMP_CSR_COMP2LOCK COMP_CSR_COMP2LOCK_Msk /*!< COMP2 lock */
  4813. /* COMPx bits definition */
  4814. #define COMP_CSR_COMPxEN_Pos (0U)
  4815. #define COMP_CSR_COMPxEN_Msk (0x1U << COMP_CSR_COMPxEN_Pos) /*!< 0x00000001 */
  4816. #define COMP_CSR_COMPxEN COMP_CSR_COMPxEN_Msk /*!< COMPx enable */
  4817. #define COMP_CSR_COMPxMODE_Pos (2U)
  4818. #define COMP_CSR_COMPxMODE_Msk (0x3U << COMP_CSR_COMPxMODE_Pos) /*!< 0x0000000C */
  4819. #define COMP_CSR_COMPxMODE COMP_CSR_COMPxMODE_Msk /*!< COMPx power mode */
  4820. #define COMP_CSR_COMPxMODE_0 (0x1U << COMP_CSR_COMPxMODE_Pos) /*!< 0x00000004 */
  4821. #define COMP_CSR_COMPxMODE_1 (0x2U << COMP_CSR_COMPxMODE_Pos) /*!< 0x00000008 */
  4822. #define COMP_CSR_COMPxINSEL_Pos (4U)
  4823. #define COMP_CSR_COMPxINSEL_Msk (0x7U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000070 */
  4824. #define COMP_CSR_COMPxINSEL COMP_CSR_COMPxINSEL_Msk /*!< COMPx inverting input select */
  4825. #define COMP_CSR_COMPxINSEL_0 (0x1U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000010 */
  4826. #define COMP_CSR_COMPxINSEL_1 (0x2U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000020 */
  4827. #define COMP_CSR_COMPxINSEL_2 (0x4U << COMP_CSR_COMPxINSEL_Pos) /*!< 0x00000040 */
  4828. #define COMP_CSR_COMPxOUTSEL_Pos (8U)
  4829. #define COMP_CSR_COMPxOUTSEL_Msk (0x7U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000700 */
  4830. #define COMP_CSR_COMPxOUTSEL COMP_CSR_COMPxOUTSEL_Msk /*!< COMPx output select */
  4831. #define COMP_CSR_COMPxOUTSEL_0 (0x1U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000100 */
  4832. #define COMP_CSR_COMPxOUTSEL_1 (0x2U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000200 */
  4833. #define COMP_CSR_COMPxOUTSEL_2 (0x4U << COMP_CSR_COMPxOUTSEL_Pos) /*!< 0x00000400 */
  4834. #define COMP_CSR_COMPxPOL_Pos (11U)
  4835. #define COMP_CSR_COMPxPOL_Msk (0x1U << COMP_CSR_COMPxPOL_Pos) /*!< 0x00000800 */
  4836. #define COMP_CSR_COMPxPOL COMP_CSR_COMPxPOL_Msk /*!< COMPx output polarity */
  4837. #define COMP_CSR_COMPxHYST_Pos (12U)
  4838. #define COMP_CSR_COMPxHYST_Msk (0x3U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00003000 */
  4839. #define COMP_CSR_COMPxHYST COMP_CSR_COMPxHYST_Msk /*!< COMPx hysteresis */
  4840. #define COMP_CSR_COMPxHYST_0 (0x1U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00001000 */
  4841. #define COMP_CSR_COMPxHYST_1 (0x2U << COMP_CSR_COMPxHYST_Pos) /*!< 0x00002000 */
  4842. #define COMP_CSR_COMPxOUT_Pos (14U)
  4843. #define COMP_CSR_COMPxOUT_Msk (0x1U << COMP_CSR_COMPxOUT_Pos) /*!< 0x00004000 */
  4844. #define COMP_CSR_COMPxOUT COMP_CSR_COMPxOUT_Msk /*!< COMPx output level */
  4845. #define COMP_CSR_COMPxLOCK_Pos (15U)
  4846. #define COMP_CSR_COMPxLOCK_Msk (0x1U << COMP_CSR_COMPxLOCK_Pos) /*!< 0x00008000 */
  4847. #define COMP_CSR_COMPxLOCK COMP_CSR_COMPxLOCK_Msk /*!< COMPx lock */
  4848. /******************************************************************************/
  4849. /* */
  4850. /* CRC calculation unit (CRC) */
  4851. /* */
  4852. /******************************************************************************/
  4853. /*
  4854. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  4855. */
  4856. /* Support of Programmable Polynomial size and value feature */
  4857. #define CRC_PROG_POLYNOMIAL_SUPPORT
  4858. /******************* Bit definition for CRC_DR register *********************/
  4859. #define CRC_DR_DR_Pos (0U)
  4860. #define CRC_DR_DR_Msk (0xFFFFFFFFU << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  4861. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  4862. /******************* Bit definition for CRC_IDR register ********************/
  4863. #define CRC_IDR_IDR ((uint8_t)0xFFU) /*!< General-purpose 8-bit data register bits */
  4864. /******************** Bit definition for CRC_CR register ********************/
  4865. #define CRC_CR_RESET_Pos (0U)
  4866. #define CRC_CR_RESET_Msk (0x1U << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  4867. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  4868. #define CRC_CR_POLYSIZE_Pos (3U)
  4869. #define CRC_CR_POLYSIZE_Msk (0x3U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  4870. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  4871. #define CRC_CR_POLYSIZE_0 (0x1U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  4872. #define CRC_CR_POLYSIZE_1 (0x2U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  4873. #define CRC_CR_REV_IN_Pos (5U)
  4874. #define CRC_CR_REV_IN_Msk (0x3U << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  4875. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  4876. #define CRC_CR_REV_IN_0 (0x1U << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  4877. #define CRC_CR_REV_IN_1 (0x2U << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  4878. #define CRC_CR_REV_OUT_Pos (7U)
  4879. #define CRC_CR_REV_OUT_Msk (0x1U << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  4880. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  4881. /******************* Bit definition for CRC_INIT register *******************/
  4882. #define CRC_INIT_INIT_Pos (0U)
  4883. #define CRC_INIT_INIT_Msk (0xFFFFFFFFU << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  4884. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  4885. /******************* Bit definition for CRC_POL register ********************/
  4886. #define CRC_POL_POL_Pos (0U)
  4887. #define CRC_POL_POL_Msk (0xFFFFFFFFU << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  4888. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  4889. /******************************************************************************/
  4890. /* */
  4891. /* CRS Clock Recovery System */
  4892. /******************************************************************************/
  4893. /******************* Bit definition for CRS_CR register *********************/
  4894. #define CRS_CR_SYNCOKIE_Pos (0U)
  4895. #define CRS_CR_SYNCOKIE_Msk (0x1U << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */
  4896. #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /* SYNC event OK interrupt enable */
  4897. #define CRS_CR_SYNCWARNIE_Pos (1U)
  4898. #define CRS_CR_SYNCWARNIE_Msk (0x1U << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */
  4899. #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /* SYNC warning interrupt enable */
  4900. #define CRS_CR_ERRIE_Pos (2U)
  4901. #define CRS_CR_ERRIE_Msk (0x1U << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */
  4902. #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /* SYNC error interrupt enable */
  4903. #define CRS_CR_ESYNCIE_Pos (3U)
  4904. #define CRS_CR_ESYNCIE_Msk (0x1U << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */
  4905. #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /* Expected SYNC(ESYNCF) interrupt Enable*/
  4906. #define CRS_CR_CEN_Pos (5U)
  4907. #define CRS_CR_CEN_Msk (0x1U << CRS_CR_CEN_Pos) /*!< 0x00000020 */
  4908. #define CRS_CR_CEN CRS_CR_CEN_Msk /* Frequency error counter enable */
  4909. #define CRS_CR_AUTOTRIMEN_Pos (6U)
  4910. #define CRS_CR_AUTOTRIMEN_Msk (0x1U << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */
  4911. #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /* Automatic trimming enable */
  4912. #define CRS_CR_SWSYNC_Pos (7U)
  4913. #define CRS_CR_SWSYNC_Msk (0x1U << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */
  4914. #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /* A Software SYNC event is generated */
  4915. #define CRS_CR_TRIM_Pos (8U)
  4916. #define CRS_CR_TRIM_Msk (0x3FU << CRS_CR_TRIM_Pos) /*!< 0x00003F00 */
  4917. #define CRS_CR_TRIM CRS_CR_TRIM_Msk /* HSI48 oscillator smooth trimming */
  4918. /******************* Bit definition for CRS_CFGR register *********************/
  4919. #define CRS_CFGR_RELOAD_Pos (0U)
  4920. #define CRS_CFGR_RELOAD_Msk (0xFFFFU << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */
  4921. #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /* Counter reload value */
  4922. #define CRS_CFGR_FELIM_Pos (16U)
  4923. #define CRS_CFGR_FELIM_Msk (0xFFU << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */
  4924. #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /* Frequency error limit */
  4925. #define CRS_CFGR_SYNCDIV_Pos (24U)
  4926. #define CRS_CFGR_SYNCDIV_Msk (0x7U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */
  4927. #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /* SYNC divider */
  4928. #define CRS_CFGR_SYNCDIV_0 (0x1U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */
  4929. #define CRS_CFGR_SYNCDIV_1 (0x2U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */
  4930. #define CRS_CFGR_SYNCDIV_2 (0x4U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */
  4931. #define CRS_CFGR_SYNCSRC_Pos (28U)
  4932. #define CRS_CFGR_SYNCSRC_Msk (0x3U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */
  4933. #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /* SYNC signal source selection */
  4934. #define CRS_CFGR_SYNCSRC_0 (0x1U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */
  4935. #define CRS_CFGR_SYNCSRC_1 (0x2U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */
  4936. #define CRS_CFGR_SYNCPOL_Pos (31U)
  4937. #define CRS_CFGR_SYNCPOL_Msk (0x1U << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */
  4938. #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /* SYNC polarity selection */
  4939. /******************* Bit definition for CRS_ISR register *********************/
  4940. #define CRS_ISR_SYNCOKF_Pos (0U)
  4941. #define CRS_ISR_SYNCOKF_Msk (0x1U << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */
  4942. #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /* SYNC event OK flag */
  4943. #define CRS_ISR_SYNCWARNF_Pos (1U)
  4944. #define CRS_ISR_SYNCWARNF_Msk (0x1U << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */
  4945. #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /* SYNC warning */
  4946. #define CRS_ISR_ERRF_Pos (2U)
  4947. #define CRS_ISR_ERRF_Msk (0x1U << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */
  4948. #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /* SYNC error flag */
  4949. #define CRS_ISR_ESYNCF_Pos (3U)
  4950. #define CRS_ISR_ESYNCF_Msk (0x1U << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */
  4951. #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /* Expected SYNC flag */
  4952. #define CRS_ISR_SYNCERR_Pos (8U)
  4953. #define CRS_ISR_SYNCERR_Msk (0x1U << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */
  4954. #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /* SYNC error */
  4955. #define CRS_ISR_SYNCMISS_Pos (9U)
  4956. #define CRS_ISR_SYNCMISS_Msk (0x1U << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */
  4957. #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /* SYNC missed */
  4958. #define CRS_ISR_TRIMOVF_Pos (10U)
  4959. #define CRS_ISR_TRIMOVF_Msk (0x1U << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */
  4960. #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /* Trimming overflow or underflow */
  4961. #define CRS_ISR_FEDIR_Pos (15U)
  4962. #define CRS_ISR_FEDIR_Msk (0x1U << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */
  4963. #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /* Frequency error direction */
  4964. #define CRS_ISR_FECAP_Pos (16U)
  4965. #define CRS_ISR_FECAP_Msk (0xFFFFU << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */
  4966. #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /* Frequency error capture */
  4967. /******************* Bit definition for CRS_ICR register *********************/
  4968. #define CRS_ICR_SYNCOKC_Pos (0U)
  4969. #define CRS_ICR_SYNCOKC_Msk (0x1U << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */
  4970. #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /* SYNC event OK clear flag */
  4971. #define CRS_ICR_SYNCWARNC_Pos (1U)
  4972. #define CRS_ICR_SYNCWARNC_Msk (0x1U << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */
  4973. #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /* SYNC warning clear flag */
  4974. #define CRS_ICR_ERRC_Pos (2U)
  4975. #define CRS_ICR_ERRC_Msk (0x1U << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */
  4976. #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /* Error clear flag */
  4977. #define CRS_ICR_ESYNCC_Pos (3U)
  4978. #define CRS_ICR_ESYNCC_Msk (0x1U << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */
  4979. #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /* Expected SYNC clear flag */
  4980. /******************************************************************************/
  4981. /* */
  4982. /* Digital to Analog Converter (DAC) */
  4983. /* */
  4984. /******************************************************************************/
  4985. /*
  4986. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  4987. */
  4988. #define DAC_CHANNEL2_SUPPORT /*!< DAC feature available only on specific devices: availability of DAC channel 2 */
  4989. /******************** Bit definition for DAC_CR register ********************/
  4990. #define DAC_CR_EN1_Pos (0U)
  4991. #define DAC_CR_EN1_Msk (0x1U << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  4992. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!< DAC channel1 enable */
  4993. #define DAC_CR_BOFF1_Pos (1U)
  4994. #define DAC_CR_BOFF1_Msk (0x1U << DAC_CR_BOFF1_Pos) /*!< 0x00000002 */
  4995. #define DAC_CR_BOFF1 DAC_CR_BOFF1_Msk /*!< DAC channel1 output buffer disable */
  4996. #define DAC_CR_TEN1_Pos (2U)
  4997. #define DAC_CR_TEN1_Msk (0x1U << DAC_CR_TEN1_Pos) /*!< 0x00000004 */
  4998. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!< DAC channel1 Trigger enable */
  4999. #define DAC_CR_TSEL1_Pos (3U)
  5000. #define DAC_CR_TSEL1_Msk (0x7U << DAC_CR_TSEL1_Pos) /*!< 0x00000038 */
  5001. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!< TSEL1[2:0] (DAC channel1 Trigger selection) */
  5002. #define DAC_CR_TSEL1_0 (0x1U << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  5003. #define DAC_CR_TSEL1_1 (0x2U << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  5004. #define DAC_CR_TSEL1_2 (0x4U << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  5005. #define DAC_CR_WAVE1_Pos (6U)
  5006. #define DAC_CR_WAVE1_Msk (0x3U << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  5007. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!< WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  5008. #define DAC_CR_WAVE1_0 (0x1U << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  5009. #define DAC_CR_WAVE1_1 (0x2U << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  5010. #define DAC_CR_MAMP1_Pos (8U)
  5011. #define DAC_CR_MAMP1_Msk (0xFU << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  5012. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!< MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  5013. #define DAC_CR_MAMP1_0 (0x1U << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  5014. #define DAC_CR_MAMP1_1 (0x2U << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  5015. #define DAC_CR_MAMP1_2 (0x4U << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  5016. #define DAC_CR_MAMP1_3 (0x8U << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  5017. #define DAC_CR_DMAEN1_Pos (12U)
  5018. #define DAC_CR_DMAEN1_Msk (0x1U << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  5019. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!< DAC channel1 DMA enable */
  5020. #define DAC_CR_DMAUDRIE1_Pos (13U)
  5021. #define DAC_CR_DMAUDRIE1_Msk (0x1U << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  5022. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!< DAC channel1 DMA Underrun Interrupt enable */
  5023. #define DAC_CR_EN2_Pos (16U)
  5024. #define DAC_CR_EN2_Msk (0x1U << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  5025. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!< DAC channel2 enable */
  5026. #define DAC_CR_BOFF2_Pos (17U)
  5027. #define DAC_CR_BOFF2_Msk (0x1U << DAC_CR_BOFF2_Pos) /*!< 0x00020000 */
  5028. #define DAC_CR_BOFF2 DAC_CR_BOFF2_Msk /*!< DAC channel2 output buffer disable */
  5029. #define DAC_CR_TEN2_Pos (18U)
  5030. #define DAC_CR_TEN2_Msk (0x1U << DAC_CR_TEN2_Pos) /*!< 0x00040000 */
  5031. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!< DAC channel2 Trigger enable */
  5032. #define DAC_CR_TSEL2_Pos (19U)
  5033. #define DAC_CR_TSEL2_Msk (0x7U << DAC_CR_TSEL2_Pos) /*!< 0x00380000 */
  5034. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!< TSEL2[2:0] (DAC channel2 Trigger selection) */
  5035. #define DAC_CR_TSEL2_0 (0x1U << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  5036. #define DAC_CR_TSEL2_1 (0x2U << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  5037. #define DAC_CR_TSEL2_2 (0x4U << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  5038. #define DAC_CR_WAVE2_Pos (22U)
  5039. #define DAC_CR_WAVE2_Msk (0x3U << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  5040. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!< WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  5041. #define DAC_CR_WAVE2_0 (0x1U << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  5042. #define DAC_CR_WAVE2_1 (0x2U << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  5043. #define DAC_CR_MAMP2_Pos (24U)
  5044. #define DAC_CR_MAMP2_Msk (0xFU << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  5045. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!< MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  5046. #define DAC_CR_MAMP2_0 (0x1U << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  5047. #define DAC_CR_MAMP2_1 (0x2U << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  5048. #define DAC_CR_MAMP2_2 (0x4U << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  5049. #define DAC_CR_MAMP2_3 (0x8U << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  5050. #define DAC_CR_DMAEN2_Pos (28U)
  5051. #define DAC_CR_DMAEN2_Msk (0x1U << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  5052. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!< DAC channel2 DMA enabled */
  5053. #define DAC_CR_DMAUDRIE2_Pos (29U)
  5054. #define DAC_CR_DMAUDRIE2_Msk (0x1U << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  5055. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!< DAC channel2 DMA Underrun Interrupt enable */
  5056. /***************** Bit definition for DAC_SWTRIGR register ******************/
  5057. #define DAC_SWTRIGR_SWTRIG1_Pos (0U)
  5058. #define DAC_SWTRIGR_SWTRIG1_Msk (0x1U << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */
  5059. #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!< DAC channel1 software trigger */
  5060. #define DAC_SWTRIGR_SWTRIG2_Pos (1U)
  5061. #define DAC_SWTRIGR_SWTRIG2_Msk (0x1U << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */
  5062. #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!< DAC channel2 software trigger */
  5063. /***************** Bit definition for DAC_DHR12R1 register ******************/
  5064. #define DAC_DHR12R1_DACC1DHR_Pos (0U)
  5065. #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFU << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */
  5066. #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  5067. /***************** Bit definition for DAC_DHR12L1 register ******************/
  5068. #define DAC_DHR12L1_DACC1DHR_Pos (4U)
  5069. #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFU << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5070. #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  5071. /****************** Bit definition for DAC_DHR8R1 register ******************/
  5072. #define DAC_DHR8R1_DACC1DHR_Pos (0U)
  5073. #define DAC_DHR8R1_DACC1DHR_Msk (0xFFU << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */
  5074. #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  5075. /***************** Bit definition for DAC_DHR12R2 register ******************/
  5076. #define DAC_DHR12R2_DACC2DHR_Pos (0U)
  5077. #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFU << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */
  5078. #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  5079. /***************** Bit definition for DAC_DHR12L2 register ******************/
  5080. #define DAC_DHR12L2_DACC2DHR_Pos (4U)
  5081. #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFU << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */
  5082. #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  5083. /****************** Bit definition for DAC_DHR8R2 register ******************/
  5084. #define DAC_DHR8R2_DACC2DHR_Pos (0U)
  5085. #define DAC_DHR8R2_DACC2DHR_Msk (0xFFU << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */
  5086. #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  5087. /***************** Bit definition for DAC_DHR12RD register ******************/
  5088. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  5089. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFU << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  5090. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!< DAC channel1 12-bit Right aligned data */
  5091. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  5092. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFU << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  5093. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!< DAC channel2 12-bit Right aligned data */
  5094. /***************** Bit definition for DAC_DHR12LD register ******************/
  5095. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  5096. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFU << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5097. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!< DAC channel1 12-bit Left aligned data */
  5098. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  5099. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFU << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  5100. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!< DAC channel2 12-bit Left aligned data */
  5101. /****************** Bit definition for DAC_DHR8RD register ******************/
  5102. #define DAC_DHR8RD_DACC1DHR_Pos (0U)
  5103. #define DAC_DHR8RD_DACC1DHR_Msk (0xFFU << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */
  5104. #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!< DAC channel1 8-bit Right aligned data */
  5105. #define DAC_DHR8RD_DACC2DHR_Pos (8U)
  5106. #define DAC_DHR8RD_DACC2DHR_Msk (0xFFU << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */
  5107. #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!< DAC channel2 8-bit Right aligned data */
  5108. /******************* Bit definition for DAC_DOR1 register *******************/
  5109. #define DAC_DOR1_DACC1DOR_Pos (0U)
  5110. #define DAC_DOR1_DACC1DOR_Msk (0xFFFU << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */
  5111. #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!< DAC channel1 data output */
  5112. /******************* Bit definition for DAC_DOR2 register *******************/
  5113. #define DAC_DOR2_DACC2DOR_Pos (0U)
  5114. #define DAC_DOR2_DACC2DOR_Msk (0xFFFU << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */
  5115. #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!< DAC channel2 data output */
  5116. /******************** Bit definition for DAC_SR register ********************/
  5117. #define DAC_SR_DMAUDR1_Pos (13U)
  5118. #define DAC_SR_DMAUDR1_Msk (0x1U << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  5119. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!< DAC channel1 DMA underrun flag */
  5120. #define DAC_SR_DMAUDR2_Pos (29U)
  5121. #define DAC_SR_DMAUDR2_Msk (0x1U << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  5122. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!< DAC channel2 DMA underrun flag */
  5123. /******************************************************************************/
  5124. /* */
  5125. /* Debug MCU (DBGMCU) */
  5126. /* */
  5127. /******************************************************************************/
  5128. /**************** Bit definition for DBGMCU_IDCODE register *****************/
  5129. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  5130. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFU << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
  5131. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk /*!< Device Identifier */
  5132. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  5133. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFU << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */
  5134. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk /*!< REV_ID[15:0] bits (Revision Identifier) */
  5135. #define DBGMCU_IDCODE_REV_ID_0 (0x0001U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00010000 */
  5136. #define DBGMCU_IDCODE_REV_ID_1 (0x0002U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00020000 */
  5137. #define DBGMCU_IDCODE_REV_ID_2 (0x0004U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00040000 */
  5138. #define DBGMCU_IDCODE_REV_ID_3 (0x0008U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00080000 */
  5139. #define DBGMCU_IDCODE_REV_ID_4 (0x0010U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00100000 */
  5140. #define DBGMCU_IDCODE_REV_ID_5 (0x0020U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00200000 */
  5141. #define DBGMCU_IDCODE_REV_ID_6 (0x0040U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00400000 */
  5142. #define DBGMCU_IDCODE_REV_ID_7 (0x0080U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00800000 */
  5143. #define DBGMCU_IDCODE_REV_ID_8 (0x0100U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x01000000 */
  5144. #define DBGMCU_IDCODE_REV_ID_9 (0x0200U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x02000000 */
  5145. #define DBGMCU_IDCODE_REV_ID_10 (0x0400U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x04000000 */
  5146. #define DBGMCU_IDCODE_REV_ID_11 (0x0800U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x08000000 */
  5147. #define DBGMCU_IDCODE_REV_ID_12 (0x1000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x10000000 */
  5148. #define DBGMCU_IDCODE_REV_ID_13 (0x2000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x20000000 */
  5149. #define DBGMCU_IDCODE_REV_ID_14 (0x4000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x40000000 */
  5150. #define DBGMCU_IDCODE_REV_ID_15 (0x8000U << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x80000000 */
  5151. /****************** Bit definition for DBGMCU_CR register *******************/
  5152. #define DBGMCU_CR_DBG_STOP_Pos (1U)
  5153. #define DBGMCU_CR_DBG_STOP_Msk (0x1U << DBGMCU_CR_DBG_STOP_Pos) /*!< 0x00000002 */
  5154. #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk /*!< Debug Stop Mode */
  5155. #define DBGMCU_CR_DBG_STANDBY_Pos (2U)
  5156. #define DBGMCU_CR_DBG_STANDBY_Msk (0x1U << DBGMCU_CR_DBG_STANDBY_Pos) /*!< 0x00000004 */
  5157. #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk /*!< Debug Standby mode */
  5158. /****************** Bit definition for DBGMCU_APB1_FZ register **************/
  5159. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos (0U)
  5160. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM2_STOP_Pos) /*!< 0x00000001 */
  5161. #define DBGMCU_APB1_FZ_DBG_TIM2_STOP DBGMCU_APB1_FZ_DBG_TIM2_STOP_Msk /*!< TIM2 counter stopped when core is halted */
  5162. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos (1U)
  5163. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM3_STOP_Pos) /*!< 0x00000002 */
  5164. #define DBGMCU_APB1_FZ_DBG_TIM3_STOP DBGMCU_APB1_FZ_DBG_TIM3_STOP_Msk /*!< TIM3 counter stopped when core is halted */
  5165. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos (4U)
  5166. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM6_STOP_Pos) /*!< 0x00000010 */
  5167. #define DBGMCU_APB1_FZ_DBG_TIM6_STOP DBGMCU_APB1_FZ_DBG_TIM6_STOP_Msk /*!< TIM6 counter stopped when core is halted */
  5168. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos (5U)
  5169. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM7_STOP_Pos) /*!< 0x00000020 */
  5170. #define DBGMCU_APB1_FZ_DBG_TIM7_STOP DBGMCU_APB1_FZ_DBG_TIM7_STOP_Msk /*!< TIM7 counter stopped when core is halted */
  5171. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP_Pos (8U)
  5172. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_TIM14_STOP_Pos) /*!< 0x00000100 */
  5173. #define DBGMCU_APB1_FZ_DBG_TIM14_STOP DBGMCU_APB1_FZ_DBG_TIM14_STOP_Msk /*!< TIM14 counter stopped when core is halted */
  5174. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos (10U)
  5175. #define DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_RTC_STOP_Pos) /*!< 0x00000400 */
  5176. #define DBGMCU_APB1_FZ_DBG_RTC_STOP DBGMCU_APB1_FZ_DBG_RTC_STOP_Msk /*!< RTC Calendar frozen when core is halted */
  5177. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos (11U)
  5178. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_WWDG_STOP_Pos) /*!< 0x00000800 */
  5179. #define DBGMCU_APB1_FZ_DBG_WWDG_STOP DBGMCU_APB1_FZ_DBG_WWDG_STOP_Msk /*!< Debug Window Watchdog stopped when Core is halted */
  5180. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos (12U)
  5181. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_IWDG_STOP_Pos) /*!< 0x00001000 */
  5182. #define DBGMCU_APB1_FZ_DBG_IWDG_STOP DBGMCU_APB1_FZ_DBG_IWDG_STOP_Msk /*!< Debug Independent Watchdog stopped when Core is halted */
  5183. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos (21U)
  5184. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk (0x1U << DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Pos) /*!< 0x00200000 */
  5185. #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT_Msk /*!< I2C1 SMBUS timeout mode stopped when Core is halted */
  5186. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos (25U)
  5187. #define DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk (0x1U << DBGMCU_APB1_FZ_DBG_CAN_STOP_Pos) /*!< 0x02000000 */
  5188. #define DBGMCU_APB1_FZ_DBG_CAN_STOP DBGMCU_APB1_FZ_DBG_CAN_STOP_Msk /*!< CAN debug stopped when Core is halted */
  5189. /****************** Bit definition for DBGMCU_APB2_FZ register **************/
  5190. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP_Pos (11U)
  5191. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM1_STOP_Pos) /*!< 0x00000800 */
  5192. #define DBGMCU_APB2_FZ_DBG_TIM1_STOP DBGMCU_APB2_FZ_DBG_TIM1_STOP_Msk /*!< TIM1 counter stopped when core is halted */
  5193. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos (16U)
  5194. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM15_STOP_Pos) /*!< 0x00010000 */
  5195. #define DBGMCU_APB2_FZ_DBG_TIM15_STOP DBGMCU_APB2_FZ_DBG_TIM15_STOP_Msk /*!< TIM15 counter stopped when core is halted */
  5196. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos (17U)
  5197. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM16_STOP_Pos) /*!< 0x00020000 */
  5198. #define DBGMCU_APB2_FZ_DBG_TIM16_STOP DBGMCU_APB2_FZ_DBG_TIM16_STOP_Msk /*!< TIM16 counter stopped when core is halted */
  5199. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos (18U)
  5200. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk (0x1U << DBGMCU_APB2_FZ_DBG_TIM17_STOP_Pos) /*!< 0x00040000 */
  5201. #define DBGMCU_APB2_FZ_DBG_TIM17_STOP DBGMCU_APB2_FZ_DBG_TIM17_STOP_Msk /*!< TIM17 counter stopped when core is halted */
  5202. /******************************************************************************/
  5203. /* */
  5204. /* DMA Controller (DMA) */
  5205. /* */
  5206. /******************************************************************************/
  5207. /******************* Bit definition for DMA_ISR register ********************/
  5208. #define DMA_ISR_GIF1_Pos (0U)
  5209. #define DMA_ISR_GIF1_Msk (0x1U << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */
  5210. #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  5211. #define DMA_ISR_TCIF1_Pos (1U)
  5212. #define DMA_ISR_TCIF1_Msk (0x1U << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */
  5213. #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  5214. #define DMA_ISR_HTIF1_Pos (2U)
  5215. #define DMA_ISR_HTIF1_Msk (0x1U << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */
  5216. #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  5217. #define DMA_ISR_TEIF1_Pos (3U)
  5218. #define DMA_ISR_TEIF1_Msk (0x1U << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */
  5219. #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  5220. #define DMA_ISR_GIF2_Pos (4U)
  5221. #define DMA_ISR_GIF2_Msk (0x1U << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */
  5222. #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  5223. #define DMA_ISR_TCIF2_Pos (5U)
  5224. #define DMA_ISR_TCIF2_Msk (0x1U << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */
  5225. #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  5226. #define DMA_ISR_HTIF2_Pos (6U)
  5227. #define DMA_ISR_HTIF2_Msk (0x1U << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */
  5228. #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  5229. #define DMA_ISR_TEIF2_Pos (7U)
  5230. #define DMA_ISR_TEIF2_Msk (0x1U << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */
  5231. #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  5232. #define DMA_ISR_GIF3_Pos (8U)
  5233. #define DMA_ISR_GIF3_Msk (0x1U << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */
  5234. #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  5235. #define DMA_ISR_TCIF3_Pos (9U)
  5236. #define DMA_ISR_TCIF3_Msk (0x1U << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */
  5237. #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  5238. #define DMA_ISR_HTIF3_Pos (10U)
  5239. #define DMA_ISR_HTIF3_Msk (0x1U << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */
  5240. #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  5241. #define DMA_ISR_TEIF3_Pos (11U)
  5242. #define DMA_ISR_TEIF3_Msk (0x1U << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */
  5243. #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  5244. #define DMA_ISR_GIF4_Pos (12U)
  5245. #define DMA_ISR_GIF4_Msk (0x1U << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */
  5246. #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  5247. #define DMA_ISR_TCIF4_Pos (13U)
  5248. #define DMA_ISR_TCIF4_Msk (0x1U << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */
  5249. #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  5250. #define DMA_ISR_HTIF4_Pos (14U)
  5251. #define DMA_ISR_HTIF4_Msk (0x1U << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */
  5252. #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  5253. #define DMA_ISR_TEIF4_Pos (15U)
  5254. #define DMA_ISR_TEIF4_Msk (0x1U << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */
  5255. #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  5256. #define DMA_ISR_GIF5_Pos (16U)
  5257. #define DMA_ISR_GIF5_Msk (0x1U << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */
  5258. #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  5259. #define DMA_ISR_TCIF5_Pos (17U)
  5260. #define DMA_ISR_TCIF5_Msk (0x1U << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */
  5261. #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  5262. #define DMA_ISR_HTIF5_Pos (18U)
  5263. #define DMA_ISR_HTIF5_Msk (0x1U << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */
  5264. #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  5265. #define DMA_ISR_TEIF5_Pos (19U)
  5266. #define DMA_ISR_TEIF5_Msk (0x1U << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */
  5267. #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  5268. #define DMA_ISR_GIF6_Pos (20U)
  5269. #define DMA_ISR_GIF6_Msk (0x1U << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */
  5270. #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  5271. #define DMA_ISR_TCIF6_Pos (21U)
  5272. #define DMA_ISR_TCIF6_Msk (0x1U << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */
  5273. #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  5274. #define DMA_ISR_HTIF6_Pos (22U)
  5275. #define DMA_ISR_HTIF6_Msk (0x1U << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */
  5276. #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  5277. #define DMA_ISR_TEIF6_Pos (23U)
  5278. #define DMA_ISR_TEIF6_Msk (0x1U << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */
  5279. #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  5280. #define DMA_ISR_GIF7_Pos (24U)
  5281. #define DMA_ISR_GIF7_Msk (0x1U << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */
  5282. #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  5283. #define DMA_ISR_TCIF7_Pos (25U)
  5284. #define DMA_ISR_TCIF7_Msk (0x1U << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */
  5285. #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  5286. #define DMA_ISR_HTIF7_Pos (26U)
  5287. #define DMA_ISR_HTIF7_Msk (0x1U << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */
  5288. #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  5289. #define DMA_ISR_TEIF7_Pos (27U)
  5290. #define DMA_ISR_TEIF7_Msk (0x1U << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */
  5291. #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  5292. /******************* Bit definition for DMA_IFCR register *******************/
  5293. #define DMA_IFCR_CGIF1_Pos (0U)
  5294. #define DMA_IFCR_CGIF1_Msk (0x1U << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */
  5295. #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */
  5296. #define DMA_IFCR_CTCIF1_Pos (1U)
  5297. #define DMA_IFCR_CTCIF1_Msk (0x1U << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */
  5298. #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  5299. #define DMA_IFCR_CHTIF1_Pos (2U)
  5300. #define DMA_IFCR_CHTIF1_Msk (0x1U << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */
  5301. #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  5302. #define DMA_IFCR_CTEIF1_Pos (3U)
  5303. #define DMA_IFCR_CTEIF1_Msk (0x1U << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */
  5304. #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  5305. #define DMA_IFCR_CGIF2_Pos (4U)
  5306. #define DMA_IFCR_CGIF2_Msk (0x1U << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */
  5307. #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  5308. #define DMA_IFCR_CTCIF2_Pos (5U)
  5309. #define DMA_IFCR_CTCIF2_Msk (0x1U << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */
  5310. #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  5311. #define DMA_IFCR_CHTIF2_Pos (6U)
  5312. #define DMA_IFCR_CHTIF2_Msk (0x1U << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */
  5313. #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  5314. #define DMA_IFCR_CTEIF2_Pos (7U)
  5315. #define DMA_IFCR_CTEIF2_Msk (0x1U << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */
  5316. #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  5317. #define DMA_IFCR_CGIF3_Pos (8U)
  5318. #define DMA_IFCR_CGIF3_Msk (0x1U << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */
  5319. #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  5320. #define DMA_IFCR_CTCIF3_Pos (9U)
  5321. #define DMA_IFCR_CTCIF3_Msk (0x1U << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */
  5322. #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  5323. #define DMA_IFCR_CHTIF3_Pos (10U)
  5324. #define DMA_IFCR_CHTIF3_Msk (0x1U << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */
  5325. #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  5326. #define DMA_IFCR_CTEIF3_Pos (11U)
  5327. #define DMA_IFCR_CTEIF3_Msk (0x1U << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */
  5328. #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  5329. #define DMA_IFCR_CGIF4_Pos (12U)
  5330. #define DMA_IFCR_CGIF4_Msk (0x1U << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */
  5331. #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  5332. #define DMA_IFCR_CTCIF4_Pos (13U)
  5333. #define DMA_IFCR_CTCIF4_Msk (0x1U << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */
  5334. #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  5335. #define DMA_IFCR_CHTIF4_Pos (14U)
  5336. #define DMA_IFCR_CHTIF4_Msk (0x1U << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */
  5337. #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  5338. #define DMA_IFCR_CTEIF4_Pos (15U)
  5339. #define DMA_IFCR_CTEIF4_Msk (0x1U << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */
  5340. #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  5341. #define DMA_IFCR_CGIF5_Pos (16U)
  5342. #define DMA_IFCR_CGIF5_Msk (0x1U << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */
  5343. #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  5344. #define DMA_IFCR_CTCIF5_Pos (17U)
  5345. #define DMA_IFCR_CTCIF5_Msk (0x1U << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */
  5346. #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  5347. #define DMA_IFCR_CHTIF5_Pos (18U)
  5348. #define DMA_IFCR_CHTIF5_Msk (0x1U << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */
  5349. #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  5350. #define DMA_IFCR_CTEIF5_Pos (19U)
  5351. #define DMA_IFCR_CTEIF5_Msk (0x1U << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */
  5352. #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  5353. #define DMA_IFCR_CGIF6_Pos (20U)
  5354. #define DMA_IFCR_CGIF6_Msk (0x1U << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */
  5355. #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  5356. #define DMA_IFCR_CTCIF6_Pos (21U)
  5357. #define DMA_IFCR_CTCIF6_Msk (0x1U << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */
  5358. #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  5359. #define DMA_IFCR_CHTIF6_Pos (22U)
  5360. #define DMA_IFCR_CHTIF6_Msk (0x1U << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */
  5361. #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  5362. #define DMA_IFCR_CTEIF6_Pos (23U)
  5363. #define DMA_IFCR_CTEIF6_Msk (0x1U << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */
  5364. #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  5365. #define DMA_IFCR_CGIF7_Pos (24U)
  5366. #define DMA_IFCR_CGIF7_Msk (0x1U << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */
  5367. #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  5368. #define DMA_IFCR_CTCIF7_Pos (25U)
  5369. #define DMA_IFCR_CTCIF7_Msk (0x1U << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */
  5370. #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  5371. #define DMA_IFCR_CHTIF7_Pos (26U)
  5372. #define DMA_IFCR_CHTIF7_Msk (0x1U << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */
  5373. #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  5374. #define DMA_IFCR_CTEIF7_Pos (27U)
  5375. #define DMA_IFCR_CTEIF7_Msk (0x1U << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */
  5376. #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  5377. /******************* Bit definition for DMA_CCR register ********************/
  5378. #define DMA_CCR_EN_Pos (0U)
  5379. #define DMA_CCR_EN_Msk (0x1U << DMA_CCR_EN_Pos) /*!< 0x00000001 */
  5380. #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */
  5381. #define DMA_CCR_TCIE_Pos (1U)
  5382. #define DMA_CCR_TCIE_Msk (0x1U << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  5383. #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  5384. #define DMA_CCR_HTIE_Pos (2U)
  5385. #define DMA_CCR_HTIE_Msk (0x1U << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  5386. #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  5387. #define DMA_CCR_TEIE_Pos (3U)
  5388. #define DMA_CCR_TEIE_Msk (0x1U << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  5389. #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  5390. #define DMA_CCR_DIR_Pos (4U)
  5391. #define DMA_CCR_DIR_Msk (0x1U << DMA_CCR_DIR_Pos) /*!< 0x00000010 */
  5392. #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */
  5393. #define DMA_CCR_CIRC_Pos (5U)
  5394. #define DMA_CCR_CIRC_Msk (0x1U << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  5395. #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */
  5396. #define DMA_CCR_PINC_Pos (6U)
  5397. #define DMA_CCR_PINC_Msk (0x1U << DMA_CCR_PINC_Pos) /*!< 0x00000040 */
  5398. #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  5399. #define DMA_CCR_MINC_Pos (7U)
  5400. #define DMA_CCR_MINC_Msk (0x1U << DMA_CCR_MINC_Pos) /*!< 0x00000080 */
  5401. #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */
  5402. #define DMA_CCR_PSIZE_Pos (8U)
  5403. #define DMA_CCR_PSIZE_Msk (0x3U << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  5404. #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  5405. #define DMA_CCR_PSIZE_0 (0x1U << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  5406. #define DMA_CCR_PSIZE_1 (0x2U << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  5407. #define DMA_CCR_MSIZE_Pos (10U)
  5408. #define DMA_CCR_MSIZE_Msk (0x3U << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  5409. #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  5410. #define DMA_CCR_MSIZE_0 (0x1U << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  5411. #define DMA_CCR_MSIZE_1 (0x2U << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  5412. #define DMA_CCR_PL_Pos (12U)
  5413. #define DMA_CCR_PL_Msk (0x3U << DMA_CCR_PL_Pos) /*!< 0x00003000 */
  5414. #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  5415. #define DMA_CCR_PL_0 (0x1U << DMA_CCR_PL_Pos) /*!< 0x00001000 */
  5416. #define DMA_CCR_PL_1 (0x2U << DMA_CCR_PL_Pos) /*!< 0x00002000 */
  5417. #define DMA_CCR_MEM2MEM_Pos (14U)
  5418. #define DMA_CCR_MEM2MEM_Msk (0x1U << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  5419. #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  5420. /****************** Bit definition for DMA_CNDTR register *******************/
  5421. #define DMA_CNDTR_NDT_Pos (0U)
  5422. #define DMA_CNDTR_NDT_Msk (0xFFFFU << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  5423. #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  5424. /****************** Bit definition for DMA_CPAR register ********************/
  5425. #define DMA_CPAR_PA_Pos (0U)
  5426. #define DMA_CPAR_PA_Msk (0xFFFFFFFFU << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  5427. #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */
  5428. /****************** Bit definition for DMA_CMAR register ********************/
  5429. #define DMA_CMAR_MA_Pos (0U)
  5430. #define DMA_CMAR_MA_Msk (0xFFFFFFFFU << DMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */
  5431. #define DMA_CMAR_MA DMA_CMAR_MA_Msk /*!< Memory Address */
  5432. /******************************************************************************/
  5433. /* */
  5434. /* External Interrupt/Event Controller (EXTI) */
  5435. /* */
  5436. /******************************************************************************/
  5437. /******************* Bit definition for EXTI_IMR register *******************/
  5438. #define EXTI_IMR_MR0_Pos (0U)
  5439. #define EXTI_IMR_MR0_Msk (0x1U << EXTI_IMR_MR0_Pos) /*!< 0x00000001 */
  5440. #define EXTI_IMR_MR0 EXTI_IMR_MR0_Msk /*!< Interrupt Mask on line 0 */
  5441. #define EXTI_IMR_MR1_Pos (1U)
  5442. #define EXTI_IMR_MR1_Msk (0x1U << EXTI_IMR_MR1_Pos) /*!< 0x00000002 */
  5443. #define EXTI_IMR_MR1 EXTI_IMR_MR1_Msk /*!< Interrupt Mask on line 1 */
  5444. #define EXTI_IMR_MR2_Pos (2U)
  5445. #define EXTI_IMR_MR2_Msk (0x1U << EXTI_IMR_MR2_Pos) /*!< 0x00000004 */
  5446. #define EXTI_IMR_MR2 EXTI_IMR_MR2_Msk /*!< Interrupt Mask on line 2 */
  5447. #define EXTI_IMR_MR3_Pos (3U)
  5448. #define EXTI_IMR_MR3_Msk (0x1U << EXTI_IMR_MR3_Pos) /*!< 0x00000008 */
  5449. #define EXTI_IMR_MR3 EXTI_IMR_MR3_Msk /*!< Interrupt Mask on line 3 */
  5450. #define EXTI_IMR_MR4_Pos (4U)
  5451. #define EXTI_IMR_MR4_Msk (0x1U << EXTI_IMR_MR4_Pos) /*!< 0x00000010 */
  5452. #define EXTI_IMR_MR4 EXTI_IMR_MR4_Msk /*!< Interrupt Mask on line 4 */
  5453. #define EXTI_IMR_MR5_Pos (5U)
  5454. #define EXTI_IMR_MR5_Msk (0x1U << EXTI_IMR_MR5_Pos) /*!< 0x00000020 */
  5455. #define EXTI_IMR_MR5 EXTI_IMR_MR5_Msk /*!< Interrupt Mask on line 5 */
  5456. #define EXTI_IMR_MR6_Pos (6U)
  5457. #define EXTI_IMR_MR6_Msk (0x1U << EXTI_IMR_MR6_Pos) /*!< 0x00000040 */
  5458. #define EXTI_IMR_MR6 EXTI_IMR_MR6_Msk /*!< Interrupt Mask on line 6 */
  5459. #define EXTI_IMR_MR7_Pos (7U)
  5460. #define EXTI_IMR_MR7_Msk (0x1U << EXTI_IMR_MR7_Pos) /*!< 0x00000080 */
  5461. #define EXTI_IMR_MR7 EXTI_IMR_MR7_Msk /*!< Interrupt Mask on line 7 */
  5462. #define EXTI_IMR_MR8_Pos (8U)
  5463. #define EXTI_IMR_MR8_Msk (0x1U << EXTI_IMR_MR8_Pos) /*!< 0x00000100 */
  5464. #define EXTI_IMR_MR8 EXTI_IMR_MR8_Msk /*!< Interrupt Mask on line 8 */
  5465. #define EXTI_IMR_MR9_Pos (9U)
  5466. #define EXTI_IMR_MR9_Msk (0x1U << EXTI_IMR_MR9_Pos) /*!< 0x00000200 */
  5467. #define EXTI_IMR_MR9 EXTI_IMR_MR9_Msk /*!< Interrupt Mask on line 9 */
  5468. #define EXTI_IMR_MR10_Pos (10U)
  5469. #define EXTI_IMR_MR10_Msk (0x1U << EXTI_IMR_MR10_Pos) /*!< 0x00000400 */
  5470. #define EXTI_IMR_MR10 EXTI_IMR_MR10_Msk /*!< Interrupt Mask on line 10 */
  5471. #define EXTI_IMR_MR11_Pos (11U)
  5472. #define EXTI_IMR_MR11_Msk (0x1U << EXTI_IMR_MR11_Pos) /*!< 0x00000800 */
  5473. #define EXTI_IMR_MR11 EXTI_IMR_MR11_Msk /*!< Interrupt Mask on line 11 */
  5474. #define EXTI_IMR_MR12_Pos (12U)
  5475. #define EXTI_IMR_MR12_Msk (0x1U << EXTI_IMR_MR12_Pos) /*!< 0x00001000 */
  5476. #define EXTI_IMR_MR12 EXTI_IMR_MR12_Msk /*!< Interrupt Mask on line 12 */
  5477. #define EXTI_IMR_MR13_Pos (13U)
  5478. #define EXTI_IMR_MR13_Msk (0x1U << EXTI_IMR_MR13_Pos) /*!< 0x00002000 */
  5479. #define EXTI_IMR_MR13 EXTI_IMR_MR13_Msk /*!< Interrupt Mask on line 13 */
  5480. #define EXTI_IMR_MR14_Pos (14U)
  5481. #define EXTI_IMR_MR14_Msk (0x1U << EXTI_IMR_MR14_Pos) /*!< 0x00004000 */
  5482. #define EXTI_IMR_MR14 EXTI_IMR_MR14_Msk /*!< Interrupt Mask on line 14 */
  5483. #define EXTI_IMR_MR15_Pos (15U)
  5484. #define EXTI_IMR_MR15_Msk (0x1U << EXTI_IMR_MR15_Pos) /*!< 0x00008000 */
  5485. #define EXTI_IMR_MR15 EXTI_IMR_MR15_Msk /*!< Interrupt Mask on line 15 */
  5486. #define EXTI_IMR_MR16_Pos (16U)
  5487. #define EXTI_IMR_MR16_Msk (0x1U << EXTI_IMR_MR16_Pos) /*!< 0x00010000 */
  5488. #define EXTI_IMR_MR16 EXTI_IMR_MR16_Msk /*!< Interrupt Mask on line 16 */
  5489. #define EXTI_IMR_MR17_Pos (17U)
  5490. #define EXTI_IMR_MR17_Msk (0x1U << EXTI_IMR_MR17_Pos) /*!< 0x00020000 */
  5491. #define EXTI_IMR_MR17 EXTI_IMR_MR17_Msk /*!< Interrupt Mask on line 17 */
  5492. #define EXTI_IMR_MR18_Pos (18U)
  5493. #define EXTI_IMR_MR18_Msk (0x1U << EXTI_IMR_MR18_Pos) /*!< 0x00040000 */
  5494. #define EXTI_IMR_MR18 EXTI_IMR_MR18_Msk /*!< Interrupt Mask on line 18 */
  5495. #define EXTI_IMR_MR19_Pos (19U)
  5496. #define EXTI_IMR_MR19_Msk (0x1U << EXTI_IMR_MR19_Pos) /*!< 0x00080000 */
  5497. #define EXTI_IMR_MR19 EXTI_IMR_MR19_Msk /*!< Interrupt Mask on line 19 */
  5498. #define EXTI_IMR_MR20_Pos (20U)
  5499. #define EXTI_IMR_MR20_Msk (0x1U << EXTI_IMR_MR20_Pos) /*!< 0x00100000 */
  5500. #define EXTI_IMR_MR20 EXTI_IMR_MR20_Msk /*!< Interrupt Mask on line 20 */
  5501. #define EXTI_IMR_MR21_Pos (21U)
  5502. #define EXTI_IMR_MR21_Msk (0x1U << EXTI_IMR_MR21_Pos) /*!< 0x00200000 */
  5503. #define EXTI_IMR_MR21 EXTI_IMR_MR21_Msk /*!< Interrupt Mask on line 21 */
  5504. #define EXTI_IMR_MR22_Pos (22U)
  5505. #define EXTI_IMR_MR22_Msk (0x1U << EXTI_IMR_MR22_Pos) /*!< 0x00400000 */
  5506. #define EXTI_IMR_MR22 EXTI_IMR_MR22_Msk /*!< Interrupt Mask on line 22 */
  5507. #define EXTI_IMR_MR23_Pos (23U)
  5508. #define EXTI_IMR_MR23_Msk (0x1U << EXTI_IMR_MR23_Pos) /*!< 0x00800000 */
  5509. #define EXTI_IMR_MR23 EXTI_IMR_MR23_Msk /*!< Interrupt Mask on line 23 */
  5510. #define EXTI_IMR_MR25_Pos (25U)
  5511. #define EXTI_IMR_MR25_Msk (0x1U << EXTI_IMR_MR25_Pos) /*!< 0x02000000 */
  5512. #define EXTI_IMR_MR25 EXTI_IMR_MR25_Msk /*!< Interrupt Mask on line 25 */
  5513. #define EXTI_IMR_MR26_Pos (26U)
  5514. #define EXTI_IMR_MR26_Msk (0x1U << EXTI_IMR_MR26_Pos) /*!< 0x04000000 */
  5515. #define EXTI_IMR_MR26 EXTI_IMR_MR26_Msk /*!< Interrupt Mask on line 26 */
  5516. #define EXTI_IMR_MR27_Pos (27U)
  5517. #define EXTI_IMR_MR27_Msk (0x1U << EXTI_IMR_MR27_Pos) /*!< 0x08000000 */
  5518. #define EXTI_IMR_MR27 EXTI_IMR_MR27_Msk /*!< Interrupt Mask on line 27 */
  5519. #define EXTI_IMR_MR31_Pos (31U)
  5520. #define EXTI_IMR_MR31_Msk (0x1U << EXTI_IMR_MR31_Pos) /*!< 0x80000000 */
  5521. #define EXTI_IMR_MR31 EXTI_IMR_MR31_Msk /*!< Interrupt Mask on line 31 */
  5522. /* References Defines */
  5523. #define EXTI_IMR_IM0 EXTI_IMR_MR0
  5524. #define EXTI_IMR_IM1 EXTI_IMR_MR1
  5525. #define EXTI_IMR_IM2 EXTI_IMR_MR2
  5526. #define EXTI_IMR_IM3 EXTI_IMR_MR3
  5527. #define EXTI_IMR_IM4 EXTI_IMR_MR4
  5528. #define EXTI_IMR_IM5 EXTI_IMR_MR5
  5529. #define EXTI_IMR_IM6 EXTI_IMR_MR6
  5530. #define EXTI_IMR_IM7 EXTI_IMR_MR7
  5531. #define EXTI_IMR_IM8 EXTI_IMR_MR8
  5532. #define EXTI_IMR_IM9 EXTI_IMR_MR9
  5533. #define EXTI_IMR_IM10 EXTI_IMR_MR10
  5534. #define EXTI_IMR_IM11 EXTI_IMR_MR11
  5535. #define EXTI_IMR_IM12 EXTI_IMR_MR12
  5536. #define EXTI_IMR_IM13 EXTI_IMR_MR13
  5537. #define EXTI_IMR_IM14 EXTI_IMR_MR14
  5538. #define EXTI_IMR_IM15 EXTI_IMR_MR15
  5539. #define EXTI_IMR_IM16 EXTI_IMR_MR16
  5540. #define EXTI_IMR_IM17 EXTI_IMR_MR17
  5541. #define EXTI_IMR_IM18 EXTI_IMR_MR18
  5542. #define EXTI_IMR_IM19 EXTI_IMR_MR19
  5543. #define EXTI_IMR_IM20 EXTI_IMR_MR20
  5544. #define EXTI_IMR_IM21 EXTI_IMR_MR21
  5545. #define EXTI_IMR_IM22 EXTI_IMR_MR22
  5546. #define EXTI_IMR_IM23 EXTI_IMR_MR23
  5547. #define EXTI_IMR_IM25 EXTI_IMR_MR25
  5548. #define EXTI_IMR_IM26 EXTI_IMR_MR26
  5549. #define EXTI_IMR_IM27 EXTI_IMR_MR27
  5550. #define EXTI_IMR_IM31 EXTI_IMR_MR31
  5551. #define EXTI_IMR_IM_Pos (0U)
  5552. #define EXTI_IMR_IM_Msk (0x8EFFFFFFU << EXTI_IMR_IM_Pos) /*!< 0x8EFFFFFF */
  5553. #define EXTI_IMR_IM EXTI_IMR_IM_Msk /*!< Interrupt Mask All */
  5554. /****************** Bit definition for EXTI_EMR register ********************/
  5555. #define EXTI_EMR_MR0_Pos (0U)
  5556. #define EXTI_EMR_MR0_Msk (0x1U << EXTI_EMR_MR0_Pos) /*!< 0x00000001 */
  5557. #define EXTI_EMR_MR0 EXTI_EMR_MR0_Msk /*!< Event Mask on line 0 */
  5558. #define EXTI_EMR_MR1_Pos (1U)
  5559. #define EXTI_EMR_MR1_Msk (0x1U << EXTI_EMR_MR1_Pos) /*!< 0x00000002 */
  5560. #define EXTI_EMR_MR1 EXTI_EMR_MR1_Msk /*!< Event Mask on line 1 */
  5561. #define EXTI_EMR_MR2_Pos (2U)
  5562. #define EXTI_EMR_MR2_Msk (0x1U << EXTI_EMR_MR2_Pos) /*!< 0x00000004 */
  5563. #define EXTI_EMR_MR2 EXTI_EMR_MR2_Msk /*!< Event Mask on line 2 */
  5564. #define EXTI_EMR_MR3_Pos (3U)
  5565. #define EXTI_EMR_MR3_Msk (0x1U << EXTI_EMR_MR3_Pos) /*!< 0x00000008 */
  5566. #define EXTI_EMR_MR3 EXTI_EMR_MR3_Msk /*!< Event Mask on line 3 */
  5567. #define EXTI_EMR_MR4_Pos (4U)
  5568. #define EXTI_EMR_MR4_Msk (0x1U << EXTI_EMR_MR4_Pos) /*!< 0x00000010 */
  5569. #define EXTI_EMR_MR4 EXTI_EMR_MR4_Msk /*!< Event Mask on line 4 */
  5570. #define EXTI_EMR_MR5_Pos (5U)
  5571. #define EXTI_EMR_MR5_Msk (0x1U << EXTI_EMR_MR5_Pos) /*!< 0x00000020 */
  5572. #define EXTI_EMR_MR5 EXTI_EMR_MR5_Msk /*!< Event Mask on line 5 */
  5573. #define EXTI_EMR_MR6_Pos (6U)
  5574. #define EXTI_EMR_MR6_Msk (0x1U << EXTI_EMR_MR6_Pos) /*!< 0x00000040 */
  5575. #define EXTI_EMR_MR6 EXTI_EMR_MR6_Msk /*!< Event Mask on line 6 */
  5576. #define EXTI_EMR_MR7_Pos (7U)
  5577. #define EXTI_EMR_MR7_Msk (0x1U << EXTI_EMR_MR7_Pos) /*!< 0x00000080 */
  5578. #define EXTI_EMR_MR7 EXTI_EMR_MR7_Msk /*!< Event Mask on line 7 */
  5579. #define EXTI_EMR_MR8_Pos (8U)
  5580. #define EXTI_EMR_MR8_Msk (0x1U << EXTI_EMR_MR8_Pos) /*!< 0x00000100 */
  5581. #define EXTI_EMR_MR8 EXTI_EMR_MR8_Msk /*!< Event Mask on line 8 */
  5582. #define EXTI_EMR_MR9_Pos (9U)
  5583. #define EXTI_EMR_MR9_Msk (0x1U << EXTI_EMR_MR9_Pos) /*!< 0x00000200 */
  5584. #define EXTI_EMR_MR9 EXTI_EMR_MR9_Msk /*!< Event Mask on line 9 */
  5585. #define EXTI_EMR_MR10_Pos (10U)
  5586. #define EXTI_EMR_MR10_Msk (0x1U << EXTI_EMR_MR10_Pos) /*!< 0x00000400 */
  5587. #define EXTI_EMR_MR10 EXTI_EMR_MR10_Msk /*!< Event Mask on line 10 */
  5588. #define EXTI_EMR_MR11_Pos (11U)
  5589. #define EXTI_EMR_MR11_Msk (0x1U << EXTI_EMR_MR11_Pos) /*!< 0x00000800 */
  5590. #define EXTI_EMR_MR11 EXTI_EMR_MR11_Msk /*!< Event Mask on line 11 */
  5591. #define EXTI_EMR_MR12_Pos (12U)
  5592. #define EXTI_EMR_MR12_Msk (0x1U << EXTI_EMR_MR12_Pos) /*!< 0x00001000 */
  5593. #define EXTI_EMR_MR12 EXTI_EMR_MR12_Msk /*!< Event Mask on line 12 */
  5594. #define EXTI_EMR_MR13_Pos (13U)
  5595. #define EXTI_EMR_MR13_Msk (0x1U << EXTI_EMR_MR13_Pos) /*!< 0x00002000 */
  5596. #define EXTI_EMR_MR13 EXTI_EMR_MR13_Msk /*!< Event Mask on line 13 */
  5597. #define EXTI_EMR_MR14_Pos (14U)
  5598. #define EXTI_EMR_MR14_Msk (0x1U << EXTI_EMR_MR14_Pos) /*!< 0x00004000 */
  5599. #define EXTI_EMR_MR14 EXTI_EMR_MR14_Msk /*!< Event Mask on line 14 */
  5600. #define EXTI_EMR_MR15_Pos (15U)
  5601. #define EXTI_EMR_MR15_Msk (0x1U << EXTI_EMR_MR15_Pos) /*!< 0x00008000 */
  5602. #define EXTI_EMR_MR15 EXTI_EMR_MR15_Msk /*!< Event Mask on line 15 */
  5603. #define EXTI_EMR_MR16_Pos (16U)
  5604. #define EXTI_EMR_MR16_Msk (0x1U << EXTI_EMR_MR16_Pos) /*!< 0x00010000 */
  5605. #define EXTI_EMR_MR16 EXTI_EMR_MR16_Msk /*!< Event Mask on line 16 */
  5606. #define EXTI_EMR_MR17_Pos (17U)
  5607. #define EXTI_EMR_MR17_Msk (0x1U << EXTI_EMR_MR17_Pos) /*!< 0x00020000 */
  5608. #define EXTI_EMR_MR17 EXTI_EMR_MR17_Msk /*!< Event Mask on line 17 */
  5609. #define EXTI_EMR_MR18_Pos (18U)
  5610. #define EXTI_EMR_MR18_Msk (0x1U << EXTI_EMR_MR18_Pos) /*!< 0x00040000 */
  5611. #define EXTI_EMR_MR18 EXTI_EMR_MR18_Msk /*!< Event Mask on line 18 */
  5612. #define EXTI_EMR_MR19_Pos (19U)
  5613. #define EXTI_EMR_MR19_Msk (0x1U << EXTI_EMR_MR19_Pos) /*!< 0x00080000 */
  5614. #define EXTI_EMR_MR19 EXTI_EMR_MR19_Msk /*!< Event Mask on line 19 */
  5615. #define EXTI_EMR_MR20_Pos (20U)
  5616. #define EXTI_EMR_MR20_Msk (0x1U << EXTI_EMR_MR20_Pos) /*!< 0x00100000 */
  5617. #define EXTI_EMR_MR20 EXTI_EMR_MR20_Msk /*!< Event Mask on line 20 */
  5618. #define EXTI_EMR_MR21_Pos (21U)
  5619. #define EXTI_EMR_MR21_Msk (0x1U << EXTI_EMR_MR21_Pos) /*!< 0x00200000 */
  5620. #define EXTI_EMR_MR21 EXTI_EMR_MR21_Msk /*!< Event Mask on line 21 */
  5621. #define EXTI_EMR_MR22_Pos (22U)
  5622. #define EXTI_EMR_MR22_Msk (0x1U << EXTI_EMR_MR22_Pos) /*!< 0x00400000 */
  5623. #define EXTI_EMR_MR22 EXTI_EMR_MR22_Msk /*!< Event Mask on line 22 */
  5624. #define EXTI_EMR_MR23_Pos (23U)
  5625. #define EXTI_EMR_MR23_Msk (0x1U << EXTI_EMR_MR23_Pos) /*!< 0x00800000 */
  5626. #define EXTI_EMR_MR23 EXTI_EMR_MR23_Msk /*!< Event Mask on line 23 */
  5627. #define EXTI_EMR_MR25_Pos (25U)
  5628. #define EXTI_EMR_MR25_Msk (0x1U << EXTI_EMR_MR25_Pos) /*!< 0x02000000 */
  5629. #define EXTI_EMR_MR25 EXTI_EMR_MR25_Msk /*!< Event Mask on line 25 */
  5630. #define EXTI_EMR_MR26_Pos (26U)
  5631. #define EXTI_EMR_MR26_Msk (0x1U << EXTI_EMR_MR26_Pos) /*!< 0x04000000 */
  5632. #define EXTI_EMR_MR26 EXTI_EMR_MR26_Msk /*!< Event Mask on line 26 */
  5633. #define EXTI_EMR_MR27_Pos (27U)
  5634. #define EXTI_EMR_MR27_Msk (0x1U << EXTI_EMR_MR27_Pos) /*!< 0x08000000 */
  5635. #define EXTI_EMR_MR27 EXTI_EMR_MR27_Msk /*!< Event Mask on line 27 */
  5636. #define EXTI_EMR_MR31_Pos (31U)
  5637. #define EXTI_EMR_MR31_Msk (0x1U << EXTI_EMR_MR31_Pos) /*!< 0x80000000 */
  5638. #define EXTI_EMR_MR31 EXTI_EMR_MR31_Msk /*!< Event Mask on line 31 */
  5639. /* References Defines */
  5640. #define EXTI_EMR_EM0 EXTI_EMR_MR0
  5641. #define EXTI_EMR_EM1 EXTI_EMR_MR1
  5642. #define EXTI_EMR_EM2 EXTI_EMR_MR2
  5643. #define EXTI_EMR_EM3 EXTI_EMR_MR3
  5644. #define EXTI_EMR_EM4 EXTI_EMR_MR4
  5645. #define EXTI_EMR_EM5 EXTI_EMR_MR5
  5646. #define EXTI_EMR_EM6 EXTI_EMR_MR6
  5647. #define EXTI_EMR_EM7 EXTI_EMR_MR7
  5648. #define EXTI_EMR_EM8 EXTI_EMR_MR8
  5649. #define EXTI_EMR_EM9 EXTI_EMR_MR9
  5650. #define EXTI_EMR_EM10 EXTI_EMR_MR10
  5651. #define EXTI_EMR_EM11 EXTI_EMR_MR11
  5652. #define EXTI_EMR_EM12 EXTI_EMR_MR12
  5653. #define EXTI_EMR_EM13 EXTI_EMR_MR13
  5654. #define EXTI_EMR_EM14 EXTI_EMR_MR14
  5655. #define EXTI_EMR_EM15 EXTI_EMR_MR15
  5656. #define EXTI_EMR_EM16 EXTI_EMR_MR16
  5657. #define EXTI_EMR_EM17 EXTI_EMR_MR17
  5658. #define EXTI_EMR_EM18 EXTI_EMR_MR18
  5659. #define EXTI_EMR_EM19 EXTI_EMR_MR19
  5660. #define EXTI_EMR_EM20 EXTI_EMR_MR20
  5661. #define EXTI_EMR_EM21 EXTI_EMR_MR21
  5662. #define EXTI_EMR_EM22 EXTI_EMR_MR22
  5663. #define EXTI_EMR_EM23 EXTI_EMR_MR23
  5664. #define EXTI_EMR_EM25 EXTI_EMR_MR25
  5665. #define EXTI_EMR_EM26 EXTI_EMR_MR26
  5666. #define EXTI_EMR_EM27 EXTI_EMR_MR27
  5667. #define EXTI_EMR_EM31 EXTI_EMR_MR31
  5668. /******************* Bit definition for EXTI_RTSR register ******************/
  5669. #define EXTI_RTSR_TR0_Pos (0U)
  5670. #define EXTI_RTSR_TR0_Msk (0x1U << EXTI_RTSR_TR0_Pos) /*!< 0x00000001 */
  5671. #define EXTI_RTSR_TR0 EXTI_RTSR_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */
  5672. #define EXTI_RTSR_TR1_Pos (1U)
  5673. #define EXTI_RTSR_TR1_Msk (0x1U << EXTI_RTSR_TR1_Pos) /*!< 0x00000002 */
  5674. #define EXTI_RTSR_TR1 EXTI_RTSR_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */
  5675. #define EXTI_RTSR_TR2_Pos (2U)
  5676. #define EXTI_RTSR_TR2_Msk (0x1U << EXTI_RTSR_TR2_Pos) /*!< 0x00000004 */
  5677. #define EXTI_RTSR_TR2 EXTI_RTSR_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */
  5678. #define EXTI_RTSR_TR3_Pos (3U)
  5679. #define EXTI_RTSR_TR3_Msk (0x1U << EXTI_RTSR_TR3_Pos) /*!< 0x00000008 */
  5680. #define EXTI_RTSR_TR3 EXTI_RTSR_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */
  5681. #define EXTI_RTSR_TR4_Pos (4U)
  5682. #define EXTI_RTSR_TR4_Msk (0x1U << EXTI_RTSR_TR4_Pos) /*!< 0x00000010 */
  5683. #define EXTI_RTSR_TR4 EXTI_RTSR_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */
  5684. #define EXTI_RTSR_TR5_Pos (5U)
  5685. #define EXTI_RTSR_TR5_Msk (0x1U << EXTI_RTSR_TR5_Pos) /*!< 0x00000020 */
  5686. #define EXTI_RTSR_TR5 EXTI_RTSR_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */
  5687. #define EXTI_RTSR_TR6_Pos (6U)
  5688. #define EXTI_RTSR_TR6_Msk (0x1U << EXTI_RTSR_TR6_Pos) /*!< 0x00000040 */
  5689. #define EXTI_RTSR_TR6 EXTI_RTSR_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */
  5690. #define EXTI_RTSR_TR7_Pos (7U)
  5691. #define EXTI_RTSR_TR7_Msk (0x1U << EXTI_RTSR_TR7_Pos) /*!< 0x00000080 */
  5692. #define EXTI_RTSR_TR7 EXTI_RTSR_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */
  5693. #define EXTI_RTSR_TR8_Pos (8U)
  5694. #define EXTI_RTSR_TR8_Msk (0x1U << EXTI_RTSR_TR8_Pos) /*!< 0x00000100 */
  5695. #define EXTI_RTSR_TR8 EXTI_RTSR_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */
  5696. #define EXTI_RTSR_TR9_Pos (9U)
  5697. #define EXTI_RTSR_TR9_Msk (0x1U << EXTI_RTSR_TR9_Pos) /*!< 0x00000200 */
  5698. #define EXTI_RTSR_TR9 EXTI_RTSR_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */
  5699. #define EXTI_RTSR_TR10_Pos (10U)
  5700. #define EXTI_RTSR_TR10_Msk (0x1U << EXTI_RTSR_TR10_Pos) /*!< 0x00000400 */
  5701. #define EXTI_RTSR_TR10 EXTI_RTSR_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */
  5702. #define EXTI_RTSR_TR11_Pos (11U)
  5703. #define EXTI_RTSR_TR11_Msk (0x1U << EXTI_RTSR_TR11_Pos) /*!< 0x00000800 */
  5704. #define EXTI_RTSR_TR11 EXTI_RTSR_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */
  5705. #define EXTI_RTSR_TR12_Pos (12U)
  5706. #define EXTI_RTSR_TR12_Msk (0x1U << EXTI_RTSR_TR12_Pos) /*!< 0x00001000 */
  5707. #define EXTI_RTSR_TR12 EXTI_RTSR_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */
  5708. #define EXTI_RTSR_TR13_Pos (13U)
  5709. #define EXTI_RTSR_TR13_Msk (0x1U << EXTI_RTSR_TR13_Pos) /*!< 0x00002000 */
  5710. #define EXTI_RTSR_TR13 EXTI_RTSR_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */
  5711. #define EXTI_RTSR_TR14_Pos (14U)
  5712. #define EXTI_RTSR_TR14_Msk (0x1U << EXTI_RTSR_TR14_Pos) /*!< 0x00004000 */
  5713. #define EXTI_RTSR_TR14 EXTI_RTSR_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */
  5714. #define EXTI_RTSR_TR15_Pos (15U)
  5715. #define EXTI_RTSR_TR15_Msk (0x1U << EXTI_RTSR_TR15_Pos) /*!< 0x00008000 */
  5716. #define EXTI_RTSR_TR15 EXTI_RTSR_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */
  5717. #define EXTI_RTSR_TR16_Pos (16U)
  5718. #define EXTI_RTSR_TR16_Msk (0x1U << EXTI_RTSR_TR16_Pos) /*!< 0x00010000 */
  5719. #define EXTI_RTSR_TR16 EXTI_RTSR_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */
  5720. #define EXTI_RTSR_TR17_Pos (17U)
  5721. #define EXTI_RTSR_TR17_Msk (0x1U << EXTI_RTSR_TR17_Pos) /*!< 0x00020000 */
  5722. #define EXTI_RTSR_TR17 EXTI_RTSR_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */
  5723. #define EXTI_RTSR_TR19_Pos (19U)
  5724. #define EXTI_RTSR_TR19_Msk (0x1U << EXTI_RTSR_TR19_Pos) /*!< 0x00080000 */
  5725. #define EXTI_RTSR_TR19 EXTI_RTSR_TR19_Msk /*!< Rising trigger event configuration bit of line 19 */
  5726. #define EXTI_RTSR_TR20_Pos (20U)
  5727. #define EXTI_RTSR_TR20_Msk (0x1U << EXTI_RTSR_TR20_Pos) /*!< 0x00100000 */
  5728. #define EXTI_RTSR_TR20 EXTI_RTSR_TR20_Msk /*!< Rising trigger event configuration bit of line 20 */
  5729. #define EXTI_RTSR_TR21_Pos (21U)
  5730. #define EXTI_RTSR_TR21_Msk (0x1U << EXTI_RTSR_TR21_Pos) /*!< 0x00200000 */
  5731. #define EXTI_RTSR_TR21 EXTI_RTSR_TR21_Msk /*!< Rising trigger event configuration bit of line 21 */
  5732. #define EXTI_RTSR_TR22_Pos (22U)
  5733. #define EXTI_RTSR_TR22_Msk (0x1U << EXTI_RTSR_TR22_Pos) /*!< 0x00400000 */
  5734. #define EXTI_RTSR_TR22 EXTI_RTSR_TR22_Msk /*!< Rising trigger event configuration bit of line 22 */
  5735. #define EXTI_RTSR_TR31_Pos (31U)
  5736. #define EXTI_RTSR_TR31_Msk (0x1U << EXTI_RTSR_TR31_Pos) /*!< 0x80000000 */
  5737. #define EXTI_RTSR_TR31 EXTI_RTSR_TR31_Msk /*!< Rising trigger event configuration bit of line 31 */
  5738. /* References Defines */
  5739. #define EXTI_RTSR_RT0 EXTI_RTSR_TR0
  5740. #define EXTI_RTSR_RT1 EXTI_RTSR_TR1
  5741. #define EXTI_RTSR_RT2 EXTI_RTSR_TR2
  5742. #define EXTI_RTSR_RT3 EXTI_RTSR_TR3
  5743. #define EXTI_RTSR_RT4 EXTI_RTSR_TR4
  5744. #define EXTI_RTSR_RT5 EXTI_RTSR_TR5
  5745. #define EXTI_RTSR_RT6 EXTI_RTSR_TR6
  5746. #define EXTI_RTSR_RT7 EXTI_RTSR_TR7
  5747. #define EXTI_RTSR_RT8 EXTI_RTSR_TR8
  5748. #define EXTI_RTSR_RT9 EXTI_RTSR_TR9
  5749. #define EXTI_RTSR_RT10 EXTI_RTSR_TR10
  5750. #define EXTI_RTSR_RT11 EXTI_RTSR_TR11
  5751. #define EXTI_RTSR_RT12 EXTI_RTSR_TR12
  5752. #define EXTI_RTSR_RT13 EXTI_RTSR_TR13
  5753. #define EXTI_RTSR_RT14 EXTI_RTSR_TR14
  5754. #define EXTI_RTSR_RT15 EXTI_RTSR_TR15
  5755. #define EXTI_RTSR_RT16 EXTI_RTSR_TR16
  5756. #define EXTI_RTSR_RT17 EXTI_RTSR_TR17
  5757. #define EXTI_RTSR_RT19 EXTI_RTSR_TR19
  5758. #define EXTI_RTSR_RT20 EXTI_RTSR_TR20
  5759. #define EXTI_RTSR_RT21 EXTI_RTSR_TR21
  5760. #define EXTI_RTSR_RT22 EXTI_RTSR_TR22
  5761. #define EXTI_RTSR_RT31 EXTI_RTSR_TR31
  5762. /******************* Bit definition for EXTI_FTSR register *******************/
  5763. #define EXTI_FTSR_TR0_Pos (0U)
  5764. #define EXTI_FTSR_TR0_Msk (0x1U << EXTI_FTSR_TR0_Pos) /*!< 0x00000001 */
  5765. #define EXTI_FTSR_TR0 EXTI_FTSR_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */
  5766. #define EXTI_FTSR_TR1_Pos (1U)
  5767. #define EXTI_FTSR_TR1_Msk (0x1U << EXTI_FTSR_TR1_Pos) /*!< 0x00000002 */
  5768. #define EXTI_FTSR_TR1 EXTI_FTSR_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */
  5769. #define EXTI_FTSR_TR2_Pos (2U)
  5770. #define EXTI_FTSR_TR2_Msk (0x1U << EXTI_FTSR_TR2_Pos) /*!< 0x00000004 */
  5771. #define EXTI_FTSR_TR2 EXTI_FTSR_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */
  5772. #define EXTI_FTSR_TR3_Pos (3U)
  5773. #define EXTI_FTSR_TR3_Msk (0x1U << EXTI_FTSR_TR3_Pos) /*!< 0x00000008 */
  5774. #define EXTI_FTSR_TR3 EXTI_FTSR_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */
  5775. #define EXTI_FTSR_TR4_Pos (4U)
  5776. #define EXTI_FTSR_TR4_Msk (0x1U << EXTI_FTSR_TR4_Pos) /*!< 0x00000010 */
  5777. #define EXTI_FTSR_TR4 EXTI_FTSR_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */
  5778. #define EXTI_FTSR_TR5_Pos (5U)
  5779. #define EXTI_FTSR_TR5_Msk (0x1U << EXTI_FTSR_TR5_Pos) /*!< 0x00000020 */
  5780. #define EXTI_FTSR_TR5 EXTI_FTSR_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */
  5781. #define EXTI_FTSR_TR6_Pos (6U)
  5782. #define EXTI_FTSR_TR6_Msk (0x1U << EXTI_FTSR_TR6_Pos) /*!< 0x00000040 */
  5783. #define EXTI_FTSR_TR6 EXTI_FTSR_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */
  5784. #define EXTI_FTSR_TR7_Pos (7U)
  5785. #define EXTI_FTSR_TR7_Msk (0x1U << EXTI_FTSR_TR7_Pos) /*!< 0x00000080 */
  5786. #define EXTI_FTSR_TR7 EXTI_FTSR_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */
  5787. #define EXTI_FTSR_TR8_Pos (8U)
  5788. #define EXTI_FTSR_TR8_Msk (0x1U << EXTI_FTSR_TR8_Pos) /*!< 0x00000100 */
  5789. #define EXTI_FTSR_TR8 EXTI_FTSR_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */
  5790. #define EXTI_FTSR_TR9_Pos (9U)
  5791. #define EXTI_FTSR_TR9_Msk (0x1U << EXTI_FTSR_TR9_Pos) /*!< 0x00000200 */
  5792. #define EXTI_FTSR_TR9 EXTI_FTSR_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */
  5793. #define EXTI_FTSR_TR10_Pos (10U)
  5794. #define EXTI_FTSR_TR10_Msk (0x1U << EXTI_FTSR_TR10_Pos) /*!< 0x00000400 */
  5795. #define EXTI_FTSR_TR10 EXTI_FTSR_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */
  5796. #define EXTI_FTSR_TR11_Pos (11U)
  5797. #define EXTI_FTSR_TR11_Msk (0x1U << EXTI_FTSR_TR11_Pos) /*!< 0x00000800 */
  5798. #define EXTI_FTSR_TR11 EXTI_FTSR_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */
  5799. #define EXTI_FTSR_TR12_Pos (12U)
  5800. #define EXTI_FTSR_TR12_Msk (0x1U << EXTI_FTSR_TR12_Pos) /*!< 0x00001000 */
  5801. #define EXTI_FTSR_TR12 EXTI_FTSR_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */
  5802. #define EXTI_FTSR_TR13_Pos (13U)
  5803. #define EXTI_FTSR_TR13_Msk (0x1U << EXTI_FTSR_TR13_Pos) /*!< 0x00002000 */
  5804. #define EXTI_FTSR_TR13 EXTI_FTSR_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */
  5805. #define EXTI_FTSR_TR14_Pos (14U)
  5806. #define EXTI_FTSR_TR14_Msk (0x1U << EXTI_FTSR_TR14_Pos) /*!< 0x00004000 */
  5807. #define EXTI_FTSR_TR14 EXTI_FTSR_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */
  5808. #define EXTI_FTSR_TR15_Pos (15U)
  5809. #define EXTI_FTSR_TR15_Msk (0x1U << EXTI_FTSR_TR15_Pos) /*!< 0x00008000 */
  5810. #define EXTI_FTSR_TR15 EXTI_FTSR_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */
  5811. #define EXTI_FTSR_TR16_Pos (16U)
  5812. #define EXTI_FTSR_TR16_Msk (0x1U << EXTI_FTSR_TR16_Pos) /*!< 0x00010000 */
  5813. #define EXTI_FTSR_TR16 EXTI_FTSR_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */
  5814. #define EXTI_FTSR_TR17_Pos (17U)
  5815. #define EXTI_FTSR_TR17_Msk (0x1U << EXTI_FTSR_TR17_Pos) /*!< 0x00020000 */
  5816. #define EXTI_FTSR_TR17 EXTI_FTSR_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */
  5817. #define EXTI_FTSR_TR19_Pos (19U)
  5818. #define EXTI_FTSR_TR19_Msk (0x1U << EXTI_FTSR_TR19_Pos) /*!< 0x00080000 */
  5819. #define EXTI_FTSR_TR19 EXTI_FTSR_TR19_Msk /*!< Falling trigger event configuration bit of line 19 */
  5820. #define EXTI_FTSR_TR20_Pos (20U)
  5821. #define EXTI_FTSR_TR20_Msk (0x1U << EXTI_FTSR_TR20_Pos) /*!< 0x00100000 */
  5822. #define EXTI_FTSR_TR20 EXTI_FTSR_TR20_Msk /*!< Falling trigger event configuration bit of line 20 */
  5823. #define EXTI_FTSR_TR21_Pos (21U)
  5824. #define EXTI_FTSR_TR21_Msk (0x1U << EXTI_FTSR_TR21_Pos) /*!< 0x00200000 */
  5825. #define EXTI_FTSR_TR21 EXTI_FTSR_TR21_Msk /*!< Falling trigger event configuration bit of line 21 */
  5826. #define EXTI_FTSR_TR22_Pos (22U)
  5827. #define EXTI_FTSR_TR22_Msk (0x1U << EXTI_FTSR_TR22_Pos) /*!< 0x00400000 */
  5828. #define EXTI_FTSR_TR22 EXTI_FTSR_TR22_Msk /*!< Falling trigger event configuration bit of line 22 */
  5829. #define EXTI_FTSR_TR31_Pos (31U)
  5830. #define EXTI_FTSR_TR31_Msk (0x1U << EXTI_FTSR_TR31_Pos) /*!< 0x80000000 */
  5831. #define EXTI_FTSR_TR31 EXTI_FTSR_TR31_Msk /*!< Falling trigger event configuration bit of line 31 */
  5832. /* References Defines */
  5833. #define EXTI_FTSR_FT0 EXTI_FTSR_TR0
  5834. #define EXTI_FTSR_FT1 EXTI_FTSR_TR1
  5835. #define EXTI_FTSR_FT2 EXTI_FTSR_TR2
  5836. #define EXTI_FTSR_FT3 EXTI_FTSR_TR3
  5837. #define EXTI_FTSR_FT4 EXTI_FTSR_TR4
  5838. #define EXTI_FTSR_FT5 EXTI_FTSR_TR5
  5839. #define EXTI_FTSR_FT6 EXTI_FTSR_TR6
  5840. #define EXTI_FTSR_FT7 EXTI_FTSR_TR7
  5841. #define EXTI_FTSR_FT8 EXTI_FTSR_TR8
  5842. #define EXTI_FTSR_FT9 EXTI_FTSR_TR9
  5843. #define EXTI_FTSR_FT10 EXTI_FTSR_TR10
  5844. #define EXTI_FTSR_FT11 EXTI_FTSR_TR11
  5845. #define EXTI_FTSR_FT12 EXTI_FTSR_TR12
  5846. #define EXTI_FTSR_FT13 EXTI_FTSR_TR13
  5847. #define EXTI_FTSR_FT14 EXTI_FTSR_TR14
  5848. #define EXTI_FTSR_FT15 EXTI_FTSR_TR15
  5849. #define EXTI_FTSR_FT16 EXTI_FTSR_TR16
  5850. #define EXTI_FTSR_FT17 EXTI_FTSR_TR17
  5851. #define EXTI_FTSR_FT19 EXTI_FTSR_TR19
  5852. #define EXTI_FTSR_FT20 EXTI_FTSR_TR20
  5853. #define EXTI_FTSR_FT21 EXTI_FTSR_TR21
  5854. #define EXTI_FTSR_FT22 EXTI_FTSR_TR22
  5855. #define EXTI_FTSR_FT31 EXTI_FTSR_TR31
  5856. /******************* Bit definition for EXTI_SWIER register *******************/
  5857. #define EXTI_SWIER_SWIER0_Pos (0U)
  5858. #define EXTI_SWIER_SWIER0_Msk (0x1U << EXTI_SWIER_SWIER0_Pos) /*!< 0x00000001 */
  5859. #define EXTI_SWIER_SWIER0 EXTI_SWIER_SWIER0_Msk /*!< Software Interrupt on line 0 */
  5860. #define EXTI_SWIER_SWIER1_Pos (1U)
  5861. #define EXTI_SWIER_SWIER1_Msk (0x1U << EXTI_SWIER_SWIER1_Pos) /*!< 0x00000002 */
  5862. #define EXTI_SWIER_SWIER1 EXTI_SWIER_SWIER1_Msk /*!< Software Interrupt on line 1 */
  5863. #define EXTI_SWIER_SWIER2_Pos (2U)
  5864. #define EXTI_SWIER_SWIER2_Msk (0x1U << EXTI_SWIER_SWIER2_Pos) /*!< 0x00000004 */
  5865. #define EXTI_SWIER_SWIER2 EXTI_SWIER_SWIER2_Msk /*!< Software Interrupt on line 2 */
  5866. #define EXTI_SWIER_SWIER3_Pos (3U)
  5867. #define EXTI_SWIER_SWIER3_Msk (0x1U << EXTI_SWIER_SWIER3_Pos) /*!< 0x00000008 */
  5868. #define EXTI_SWIER_SWIER3 EXTI_SWIER_SWIER3_Msk /*!< Software Interrupt on line 3 */
  5869. #define EXTI_SWIER_SWIER4_Pos (4U)
  5870. #define EXTI_SWIER_SWIER4_Msk (0x1U << EXTI_SWIER_SWIER4_Pos) /*!< 0x00000010 */
  5871. #define EXTI_SWIER_SWIER4 EXTI_SWIER_SWIER4_Msk /*!< Software Interrupt on line 4 */
  5872. #define EXTI_SWIER_SWIER5_Pos (5U)
  5873. #define EXTI_SWIER_SWIER5_Msk (0x1U << EXTI_SWIER_SWIER5_Pos) /*!< 0x00000020 */
  5874. #define EXTI_SWIER_SWIER5 EXTI_SWIER_SWIER5_Msk /*!< Software Interrupt on line 5 */
  5875. #define EXTI_SWIER_SWIER6_Pos (6U)
  5876. #define EXTI_SWIER_SWIER6_Msk (0x1U << EXTI_SWIER_SWIER6_Pos) /*!< 0x00000040 */
  5877. #define EXTI_SWIER_SWIER6 EXTI_SWIER_SWIER6_Msk /*!< Software Interrupt on line 6 */
  5878. #define EXTI_SWIER_SWIER7_Pos (7U)
  5879. #define EXTI_SWIER_SWIER7_Msk (0x1U << EXTI_SWIER_SWIER7_Pos) /*!< 0x00000080 */
  5880. #define EXTI_SWIER_SWIER7 EXTI_SWIER_SWIER7_Msk /*!< Software Interrupt on line 7 */
  5881. #define EXTI_SWIER_SWIER8_Pos (8U)
  5882. #define EXTI_SWIER_SWIER8_Msk (0x1U << EXTI_SWIER_SWIER8_Pos) /*!< 0x00000100 */
  5883. #define EXTI_SWIER_SWIER8 EXTI_SWIER_SWIER8_Msk /*!< Software Interrupt on line 8 */
  5884. #define EXTI_SWIER_SWIER9_Pos (9U)
  5885. #define EXTI_SWIER_SWIER9_Msk (0x1U << EXTI_SWIER_SWIER9_Pos) /*!< 0x00000200 */
  5886. #define EXTI_SWIER_SWIER9 EXTI_SWIER_SWIER9_Msk /*!< Software Interrupt on line 9 */
  5887. #define EXTI_SWIER_SWIER10_Pos (10U)
  5888. #define EXTI_SWIER_SWIER10_Msk (0x1U << EXTI_SWIER_SWIER10_Pos) /*!< 0x00000400 */
  5889. #define EXTI_SWIER_SWIER10 EXTI_SWIER_SWIER10_Msk /*!< Software Interrupt on line 10 */
  5890. #define EXTI_SWIER_SWIER11_Pos (11U)
  5891. #define EXTI_SWIER_SWIER11_Msk (0x1U << EXTI_SWIER_SWIER11_Pos) /*!< 0x00000800 */
  5892. #define EXTI_SWIER_SWIER11 EXTI_SWIER_SWIER11_Msk /*!< Software Interrupt on line 11 */
  5893. #define EXTI_SWIER_SWIER12_Pos (12U)
  5894. #define EXTI_SWIER_SWIER12_Msk (0x1U << EXTI_SWIER_SWIER12_Pos) /*!< 0x00001000 */
  5895. #define EXTI_SWIER_SWIER12 EXTI_SWIER_SWIER12_Msk /*!< Software Interrupt on line 12 */
  5896. #define EXTI_SWIER_SWIER13_Pos (13U)
  5897. #define EXTI_SWIER_SWIER13_Msk (0x1U << EXTI_SWIER_SWIER13_Pos) /*!< 0x00002000 */
  5898. #define EXTI_SWIER_SWIER13 EXTI_SWIER_SWIER13_Msk /*!< Software Interrupt on line 13 */
  5899. #define EXTI_SWIER_SWIER14_Pos (14U)
  5900. #define EXTI_SWIER_SWIER14_Msk (0x1U << EXTI_SWIER_SWIER14_Pos) /*!< 0x00004000 */
  5901. #define EXTI_SWIER_SWIER14 EXTI_SWIER_SWIER14_Msk /*!< Software Interrupt on line 14 */
  5902. #define EXTI_SWIER_SWIER15_Pos (15U)
  5903. #define EXTI_SWIER_SWIER15_Msk (0x1U << EXTI_SWIER_SWIER15_Pos) /*!< 0x00008000 */
  5904. #define EXTI_SWIER_SWIER15 EXTI_SWIER_SWIER15_Msk /*!< Software Interrupt on line 15 */
  5905. #define EXTI_SWIER_SWIER16_Pos (16U)
  5906. #define EXTI_SWIER_SWIER16_Msk (0x1U << EXTI_SWIER_SWIER16_Pos) /*!< 0x00010000 */
  5907. #define EXTI_SWIER_SWIER16 EXTI_SWIER_SWIER16_Msk /*!< Software Interrupt on line 16 */
  5908. #define EXTI_SWIER_SWIER17_Pos (17U)
  5909. #define EXTI_SWIER_SWIER17_Msk (0x1U << EXTI_SWIER_SWIER17_Pos) /*!< 0x00020000 */
  5910. #define EXTI_SWIER_SWIER17 EXTI_SWIER_SWIER17_Msk /*!< Software Interrupt on line 17 */
  5911. #define EXTI_SWIER_SWIER19_Pos (19U)
  5912. #define EXTI_SWIER_SWIER19_Msk (0x1U << EXTI_SWIER_SWIER19_Pos) /*!< 0x00080000 */
  5913. #define EXTI_SWIER_SWIER19 EXTI_SWIER_SWIER19_Msk /*!< Software Interrupt on line 19 */
  5914. #define EXTI_SWIER_SWIER20_Pos (20U)
  5915. #define EXTI_SWIER_SWIER20_Msk (0x1U << EXTI_SWIER_SWIER20_Pos) /*!< 0x00100000 */
  5916. #define EXTI_SWIER_SWIER20 EXTI_SWIER_SWIER20_Msk /*!< Software Interrupt on line 20 */
  5917. #define EXTI_SWIER_SWIER21_Pos (21U)
  5918. #define EXTI_SWIER_SWIER21_Msk (0x1U << EXTI_SWIER_SWIER21_Pos) /*!< 0x00200000 */
  5919. #define EXTI_SWIER_SWIER21 EXTI_SWIER_SWIER21_Msk /*!< Software Interrupt on line 21 */
  5920. #define EXTI_SWIER_SWIER22_Pos (22U)
  5921. #define EXTI_SWIER_SWIER22_Msk (0x1U << EXTI_SWIER_SWIER22_Pos) /*!< 0x00400000 */
  5922. #define EXTI_SWIER_SWIER22 EXTI_SWIER_SWIER22_Msk /*!< Software Interrupt on line 22 */
  5923. #define EXTI_SWIER_SWIER31_Pos (31U)
  5924. #define EXTI_SWIER_SWIER31_Msk (0x1U << EXTI_SWIER_SWIER31_Pos) /*!< 0x80000000 */
  5925. #define EXTI_SWIER_SWIER31 EXTI_SWIER_SWIER31_Msk /*!< Software Interrupt on line 31 */
  5926. /* References Defines */
  5927. #define EXTI_SWIER_SWI0 EXTI_SWIER_SWIER0
  5928. #define EXTI_SWIER_SWI1 EXTI_SWIER_SWIER1
  5929. #define EXTI_SWIER_SWI2 EXTI_SWIER_SWIER2
  5930. #define EXTI_SWIER_SWI3 EXTI_SWIER_SWIER3
  5931. #define EXTI_SWIER_SWI4 EXTI_SWIER_SWIER4
  5932. #define EXTI_SWIER_SWI5 EXTI_SWIER_SWIER5
  5933. #define EXTI_SWIER_SWI6 EXTI_SWIER_SWIER6
  5934. #define EXTI_SWIER_SWI7 EXTI_SWIER_SWIER7
  5935. #define EXTI_SWIER_SWI8 EXTI_SWIER_SWIER8
  5936. #define EXTI_SWIER_SWI9 EXTI_SWIER_SWIER9
  5937. #define EXTI_SWIER_SWI10 EXTI_SWIER_SWIER10
  5938. #define EXTI_SWIER_SWI11 EXTI_SWIER_SWIER11
  5939. #define EXTI_SWIER_SWI12 EXTI_SWIER_SWIER12
  5940. #define EXTI_SWIER_SWI13 EXTI_SWIER_SWIER13
  5941. #define EXTI_SWIER_SWI14 EXTI_SWIER_SWIER14
  5942. #define EXTI_SWIER_SWI15 EXTI_SWIER_SWIER15
  5943. #define EXTI_SWIER_SWI16 EXTI_SWIER_SWIER16
  5944. #define EXTI_SWIER_SWI17 EXTI_SWIER_SWIER17
  5945. #define EXTI_SWIER_SWI19 EXTI_SWIER_SWIER19
  5946. #define EXTI_SWIER_SWI20 EXTI_SWIER_SWIER20
  5947. #define EXTI_SWIER_SWI21 EXTI_SWIER_SWIER21
  5948. #define EXTI_SWIER_SWI22 EXTI_SWIER_SWIER22
  5949. #define EXTI_SWIER_SWI31 EXTI_SWIER_SWIER31
  5950. /****************** Bit definition for EXTI_PR register *********************/
  5951. #define EXTI_PR_PR0_Pos (0U)
  5952. #define EXTI_PR_PR0_Msk (0x1U << EXTI_PR_PR0_Pos) /*!< 0x00000001 */
  5953. #define EXTI_PR_PR0 EXTI_PR_PR0_Msk /*!< Pending bit 0 */
  5954. #define EXTI_PR_PR1_Pos (1U)
  5955. #define EXTI_PR_PR1_Msk (0x1U << EXTI_PR_PR1_Pos) /*!< 0x00000002 */
  5956. #define EXTI_PR_PR1 EXTI_PR_PR1_Msk /*!< Pending bit 1 */
  5957. #define EXTI_PR_PR2_Pos (2U)
  5958. #define EXTI_PR_PR2_Msk (0x1U << EXTI_PR_PR2_Pos) /*!< 0x00000004 */
  5959. #define EXTI_PR_PR2 EXTI_PR_PR2_Msk /*!< Pending bit 2 */
  5960. #define EXTI_PR_PR3_Pos (3U)
  5961. #define EXTI_PR_PR3_Msk (0x1U << EXTI_PR_PR3_Pos) /*!< 0x00000008 */
  5962. #define EXTI_PR_PR3 EXTI_PR_PR3_Msk /*!< Pending bit 3 */
  5963. #define EXTI_PR_PR4_Pos (4U)
  5964. #define EXTI_PR_PR4_Msk (0x1U << EXTI_PR_PR4_Pos) /*!< 0x00000010 */
  5965. #define EXTI_PR_PR4 EXTI_PR_PR4_Msk /*!< Pending bit 4 */
  5966. #define EXTI_PR_PR5_Pos (5U)
  5967. #define EXTI_PR_PR5_Msk (0x1U << EXTI_PR_PR5_Pos) /*!< 0x00000020 */
  5968. #define EXTI_PR_PR5 EXTI_PR_PR5_Msk /*!< Pending bit 5 */
  5969. #define EXTI_PR_PR6_Pos (6U)
  5970. #define EXTI_PR_PR6_Msk (0x1U << EXTI_PR_PR6_Pos) /*!< 0x00000040 */
  5971. #define EXTI_PR_PR6 EXTI_PR_PR6_Msk /*!< Pending bit 6 */
  5972. #define EXTI_PR_PR7_Pos (7U)
  5973. #define EXTI_PR_PR7_Msk (0x1U << EXTI_PR_PR7_Pos) /*!< 0x00000080 */
  5974. #define EXTI_PR_PR7 EXTI_PR_PR7_Msk /*!< Pending bit 7 */
  5975. #define EXTI_PR_PR8_Pos (8U)
  5976. #define EXTI_PR_PR8_Msk (0x1U << EXTI_PR_PR8_Pos) /*!< 0x00000100 */
  5977. #define EXTI_PR_PR8 EXTI_PR_PR8_Msk /*!< Pending bit 8 */
  5978. #define EXTI_PR_PR9_Pos (9U)
  5979. #define EXTI_PR_PR9_Msk (0x1U << EXTI_PR_PR9_Pos) /*!< 0x00000200 */
  5980. #define EXTI_PR_PR9 EXTI_PR_PR9_Msk /*!< Pending bit 9 */
  5981. #define EXTI_PR_PR10_Pos (10U)
  5982. #define EXTI_PR_PR10_Msk (0x1U << EXTI_PR_PR10_Pos) /*!< 0x00000400 */
  5983. #define EXTI_PR_PR10 EXTI_PR_PR10_Msk /*!< Pending bit 10 */
  5984. #define EXTI_PR_PR11_Pos (11U)
  5985. #define EXTI_PR_PR11_Msk (0x1U << EXTI_PR_PR11_Pos) /*!< 0x00000800 */
  5986. #define EXTI_PR_PR11 EXTI_PR_PR11_Msk /*!< Pending bit 11 */
  5987. #define EXTI_PR_PR12_Pos (12U)
  5988. #define EXTI_PR_PR12_Msk (0x1U << EXTI_PR_PR12_Pos) /*!< 0x00001000 */
  5989. #define EXTI_PR_PR12 EXTI_PR_PR12_Msk /*!< Pending bit 12 */
  5990. #define EXTI_PR_PR13_Pos (13U)
  5991. #define EXTI_PR_PR13_Msk (0x1U << EXTI_PR_PR13_Pos) /*!< 0x00002000 */
  5992. #define EXTI_PR_PR13 EXTI_PR_PR13_Msk /*!< Pending bit 13 */
  5993. #define EXTI_PR_PR14_Pos (14U)
  5994. #define EXTI_PR_PR14_Msk (0x1U << EXTI_PR_PR14_Pos) /*!< 0x00004000 */
  5995. #define EXTI_PR_PR14 EXTI_PR_PR14_Msk /*!< Pending bit 14 */
  5996. #define EXTI_PR_PR15_Pos (15U)
  5997. #define EXTI_PR_PR15_Msk (0x1U << EXTI_PR_PR15_Pos) /*!< 0x00008000 */
  5998. #define EXTI_PR_PR15 EXTI_PR_PR15_Msk /*!< Pending bit 15 */
  5999. #define EXTI_PR_PR16_Pos (16U)
  6000. #define EXTI_PR_PR16_Msk (0x1U << EXTI_PR_PR16_Pos) /*!< 0x00010000 */
  6001. #define EXTI_PR_PR16 EXTI_PR_PR16_Msk /*!< Pending bit 16 */
  6002. #define EXTI_PR_PR17_Pos (17U)
  6003. #define EXTI_PR_PR17_Msk (0x1U << EXTI_PR_PR17_Pos) /*!< 0x00020000 */
  6004. #define EXTI_PR_PR17 EXTI_PR_PR17_Msk /*!< Pending bit 17 */
  6005. #define EXTI_PR_PR19_Pos (19U)
  6006. #define EXTI_PR_PR19_Msk (0x1U << EXTI_PR_PR19_Pos) /*!< 0x00080000 */
  6007. #define EXTI_PR_PR19 EXTI_PR_PR19_Msk /*!< Pending bit 19 */
  6008. #define EXTI_PR_PR20_Pos (20U)
  6009. #define EXTI_PR_PR20_Msk (0x1U << EXTI_PR_PR20_Pos) /*!< 0x00100000 */
  6010. #define EXTI_PR_PR20 EXTI_PR_PR20_Msk /*!< Pending bit 20 */
  6011. #define EXTI_PR_PR21_Pos (21U)
  6012. #define EXTI_PR_PR21_Msk (0x1U << EXTI_PR_PR21_Pos) /*!< 0x00200000 */
  6013. #define EXTI_PR_PR21 EXTI_PR_PR21_Msk /*!< Pending bit 21 */
  6014. #define EXTI_PR_PR22_Pos (22U)
  6015. #define EXTI_PR_PR22_Msk (0x1U << EXTI_PR_PR22_Pos) /*!< 0x00400000 */
  6016. #define EXTI_PR_PR22 EXTI_PR_PR22_Msk /*!< Pending bit 22 */
  6017. #define EXTI_PR_PR31_Pos (31U)
  6018. #define EXTI_PR_PR31_Msk (0x1U << EXTI_PR_PR31_Pos) /*!< 0x80000000 */
  6019. #define EXTI_PR_PR31 EXTI_PR_PR31_Msk /*!< Pending bit 31 */
  6020. /* References Defines */
  6021. #define EXTI_PR_PIF0 EXTI_PR_PR0
  6022. #define EXTI_PR_PIF1 EXTI_PR_PR1
  6023. #define EXTI_PR_PIF2 EXTI_PR_PR2
  6024. #define EXTI_PR_PIF3 EXTI_PR_PR3
  6025. #define EXTI_PR_PIF4 EXTI_PR_PR4
  6026. #define EXTI_PR_PIF5 EXTI_PR_PR5
  6027. #define EXTI_PR_PIF6 EXTI_PR_PR6
  6028. #define EXTI_PR_PIF7 EXTI_PR_PR7
  6029. #define EXTI_PR_PIF8 EXTI_PR_PR8
  6030. #define EXTI_PR_PIF9 EXTI_PR_PR9
  6031. #define EXTI_PR_PIF10 EXTI_PR_PR10
  6032. #define EXTI_PR_PIF11 EXTI_PR_PR11
  6033. #define EXTI_PR_PIF12 EXTI_PR_PR12
  6034. #define EXTI_PR_PIF13 EXTI_PR_PR13
  6035. #define EXTI_PR_PIF14 EXTI_PR_PR14
  6036. #define EXTI_PR_PIF15 EXTI_PR_PR15
  6037. #define EXTI_PR_PIF16 EXTI_PR_PR16
  6038. #define EXTI_PR_PIF17 EXTI_PR_PR17
  6039. #define EXTI_PR_PIF19 EXTI_PR_PR19
  6040. #define EXTI_PR_PIF20 EXTI_PR_PR20
  6041. #define EXTI_PR_PIF21 EXTI_PR_PR21
  6042. #define EXTI_PR_PIF22 EXTI_PR_PR22
  6043. #define EXTI_PR_PIF31 EXTI_PR_PR31
  6044. /******************************************************************************/
  6045. /* */
  6046. /* FLASH and Option Bytes Registers */
  6047. /* */
  6048. /******************************************************************************/
  6049. /******************* Bit definition for FLASH_ACR register ******************/
  6050. #define FLASH_ACR_LATENCY_Pos (0U)
  6051. #define FLASH_ACR_LATENCY_Msk (0x1U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000001 */
  6052. #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk /*!< LATENCY bit (Latency) */
  6053. #define FLASH_ACR_PRFTBE_Pos (4U)
  6054. #define FLASH_ACR_PRFTBE_Msk (0x1U << FLASH_ACR_PRFTBE_Pos) /*!< 0x00000010 */
  6055. #define FLASH_ACR_PRFTBE FLASH_ACR_PRFTBE_Msk /*!< Prefetch Buffer Enable */
  6056. #define FLASH_ACR_PRFTBS_Pos (5U)
  6057. #define FLASH_ACR_PRFTBS_Msk (0x1U << FLASH_ACR_PRFTBS_Pos) /*!< 0x00000020 */
  6058. #define FLASH_ACR_PRFTBS FLASH_ACR_PRFTBS_Msk /*!< Prefetch Buffer Status */
  6059. /****************** Bit definition for FLASH_KEYR register ******************/
  6060. #define FLASH_KEYR_FKEYR_Pos (0U)
  6061. #define FLASH_KEYR_FKEYR_Msk (0xFFFFFFFFU << FLASH_KEYR_FKEYR_Pos) /*!< 0xFFFFFFFF */
  6062. #define FLASH_KEYR_FKEYR FLASH_KEYR_FKEYR_Msk /*!< FPEC Key */
  6063. /***************** Bit definition for FLASH_OPTKEYR register ****************/
  6064. #define FLASH_OPTKEYR_OPTKEYR_Pos (0U)
  6065. #define FLASH_OPTKEYR_OPTKEYR_Msk (0xFFFFFFFFU << FLASH_OPTKEYR_OPTKEYR_Pos) /*!< 0xFFFFFFFF */
  6066. #define FLASH_OPTKEYR_OPTKEYR FLASH_OPTKEYR_OPTKEYR_Msk /*!< Option Byte Key */
  6067. /****************** FLASH Keys **********************************************/
  6068. #define FLASH_KEY1_Pos (0U)
  6069. #define FLASH_KEY1_Msk (0x45670123U << FLASH_KEY1_Pos) /*!< 0x45670123 */
  6070. #define FLASH_KEY1 FLASH_KEY1_Msk /*!< Flash program erase key1 */
  6071. #define FLASH_KEY2_Pos (0U)
  6072. #define FLASH_KEY2_Msk (0xCDEF89ABU << FLASH_KEY2_Pos) /*!< 0xCDEF89AB */
  6073. #define FLASH_KEY2 FLASH_KEY2_Msk /*!< Flash program erase key2: used with FLASH_PEKEY1
  6074. to unlock the write access to the FPEC. */
  6075. #define FLASH_OPTKEY1_Pos (0U)
  6076. #define FLASH_OPTKEY1_Msk (0x45670123U << FLASH_OPTKEY1_Pos) /*!< 0x45670123 */
  6077. #define FLASH_OPTKEY1 FLASH_OPTKEY1_Msk /*!< Flash option key1 */
  6078. #define FLASH_OPTKEY2_Pos (0U)
  6079. #define FLASH_OPTKEY2_Msk (0xCDEF89ABU << FLASH_OPTKEY2_Pos) /*!< 0xCDEF89AB */
  6080. #define FLASH_OPTKEY2 FLASH_OPTKEY2_Msk /*!< Flash option key2: used with FLASH_OPTKEY1 to
  6081. unlock the write access to the option byte block */
  6082. /****************** Bit definition for FLASH_SR register *******************/
  6083. #define FLASH_SR_BSY_Pos (0U)
  6084. #define FLASH_SR_BSY_Msk (0x1U << FLASH_SR_BSY_Pos) /*!< 0x00000001 */
  6085. #define FLASH_SR_BSY FLASH_SR_BSY_Msk /*!< Busy */
  6086. #define FLASH_SR_PGERR_Pos (2U)
  6087. #define FLASH_SR_PGERR_Msk (0x1U << FLASH_SR_PGERR_Pos) /*!< 0x00000004 */
  6088. #define FLASH_SR_PGERR FLASH_SR_PGERR_Msk /*!< Programming Error */
  6089. #define FLASH_SR_WRPRTERR_Pos (4U)
  6090. #define FLASH_SR_WRPRTERR_Msk (0x1U << FLASH_SR_WRPRTERR_Pos) /*!< 0x00000010 */
  6091. #define FLASH_SR_WRPRTERR FLASH_SR_WRPRTERR_Msk /*!< Write Protection Error */
  6092. #define FLASH_SR_EOP_Pos (5U)
  6093. #define FLASH_SR_EOP_Msk (0x1U << FLASH_SR_EOP_Pos) /*!< 0x00000020 */
  6094. #define FLASH_SR_EOP FLASH_SR_EOP_Msk /*!< End of operation */
  6095. #define FLASH_SR_WRPERR FLASH_SR_WRPRTERR /*!< Legacy of Write Protection Error */
  6096. /******************* Bit definition for FLASH_CR register *******************/
  6097. #define FLASH_CR_PG_Pos (0U)
  6098. #define FLASH_CR_PG_Msk (0x1U << FLASH_CR_PG_Pos) /*!< 0x00000001 */
  6099. #define FLASH_CR_PG FLASH_CR_PG_Msk /*!< Programming */
  6100. #define FLASH_CR_PER_Pos (1U)
  6101. #define FLASH_CR_PER_Msk (0x1U << FLASH_CR_PER_Pos) /*!< 0x00000002 */
  6102. #define FLASH_CR_PER FLASH_CR_PER_Msk /*!< Page Erase */
  6103. #define FLASH_CR_MER_Pos (2U)
  6104. #define FLASH_CR_MER_Msk (0x1U << FLASH_CR_MER_Pos) /*!< 0x00000004 */
  6105. #define FLASH_CR_MER FLASH_CR_MER_Msk /*!< Mass Erase */
  6106. #define FLASH_CR_OPTPG_Pos (4U)
  6107. #define FLASH_CR_OPTPG_Msk (0x1U << FLASH_CR_OPTPG_Pos) /*!< 0x00000010 */
  6108. #define FLASH_CR_OPTPG FLASH_CR_OPTPG_Msk /*!< Option Byte Programming */
  6109. #define FLASH_CR_OPTER_Pos (5U)
  6110. #define FLASH_CR_OPTER_Msk (0x1U << FLASH_CR_OPTER_Pos) /*!< 0x00000020 */
  6111. #define FLASH_CR_OPTER FLASH_CR_OPTER_Msk /*!< Option Byte Erase */
  6112. #define FLASH_CR_STRT_Pos (6U)
  6113. #define FLASH_CR_STRT_Msk (0x1U << FLASH_CR_STRT_Pos) /*!< 0x00000040 */
  6114. #define FLASH_CR_STRT FLASH_CR_STRT_Msk /*!< Start */
  6115. #define FLASH_CR_LOCK_Pos (7U)
  6116. #define FLASH_CR_LOCK_Msk (0x1U << FLASH_CR_LOCK_Pos) /*!< 0x00000080 */
  6117. #define FLASH_CR_LOCK FLASH_CR_LOCK_Msk /*!< Lock */
  6118. #define FLASH_CR_OPTWRE_Pos (9U)
  6119. #define FLASH_CR_OPTWRE_Msk (0x1U << FLASH_CR_OPTWRE_Pos) /*!< 0x00000200 */
  6120. #define FLASH_CR_OPTWRE FLASH_CR_OPTWRE_Msk /*!< Option Bytes Write Enable */
  6121. #define FLASH_CR_ERRIE_Pos (10U)
  6122. #define FLASH_CR_ERRIE_Msk (0x1U << FLASH_CR_ERRIE_Pos) /*!< 0x00000400 */
  6123. #define FLASH_CR_ERRIE FLASH_CR_ERRIE_Msk /*!< Error Interrupt Enable */
  6124. #define FLASH_CR_EOPIE_Pos (12U)
  6125. #define FLASH_CR_EOPIE_Msk (0x1U << FLASH_CR_EOPIE_Pos) /*!< 0x00001000 */
  6126. #define FLASH_CR_EOPIE FLASH_CR_EOPIE_Msk /*!< End of operation interrupt enable */
  6127. #define FLASH_CR_OBL_LAUNCH_Pos (13U)
  6128. #define FLASH_CR_OBL_LAUNCH_Msk (0x1U << FLASH_CR_OBL_LAUNCH_Pos) /*!< 0x00002000 */
  6129. #define FLASH_CR_OBL_LAUNCH FLASH_CR_OBL_LAUNCH_Msk /*!< Option Bytes Loader Launch */
  6130. /******************* Bit definition for FLASH_AR register *******************/
  6131. #define FLASH_AR_FAR_Pos (0U)
  6132. #define FLASH_AR_FAR_Msk (0xFFFFFFFFU << FLASH_AR_FAR_Pos) /*!< 0xFFFFFFFF */
  6133. #define FLASH_AR_FAR FLASH_AR_FAR_Msk /*!< Flash Address */
  6134. /****************** Bit definition for FLASH_OBR register *******************/
  6135. #define FLASH_OBR_OPTERR_Pos (0U)
  6136. #define FLASH_OBR_OPTERR_Msk (0x1U << FLASH_OBR_OPTERR_Pos) /*!< 0x00000001 */
  6137. #define FLASH_OBR_OPTERR FLASH_OBR_OPTERR_Msk /*!< Option Byte Error */
  6138. #define FLASH_OBR_RDPRT1_Pos (1U)
  6139. #define FLASH_OBR_RDPRT1_Msk (0x1U << FLASH_OBR_RDPRT1_Pos) /*!< 0x00000002 */
  6140. #define FLASH_OBR_RDPRT1 FLASH_OBR_RDPRT1_Msk /*!< Read protection Level 1 */
  6141. #define FLASH_OBR_RDPRT2_Pos (2U)
  6142. #define FLASH_OBR_RDPRT2_Msk (0x1U << FLASH_OBR_RDPRT2_Pos) /*!< 0x00000004 */
  6143. #define FLASH_OBR_RDPRT2 FLASH_OBR_RDPRT2_Msk /*!< Read protection Level 2 */
  6144. #define FLASH_OBR_USER_Pos (8U)
  6145. #define FLASH_OBR_USER_Msk (0x77U << FLASH_OBR_USER_Pos) /*!< 0x00007700 */
  6146. #define FLASH_OBR_USER FLASH_OBR_USER_Msk /*!< User Option Bytes */
  6147. #define FLASH_OBR_IWDG_SW_Pos (8U)
  6148. #define FLASH_OBR_IWDG_SW_Msk (0x1U << FLASH_OBR_IWDG_SW_Pos) /*!< 0x00000100 */
  6149. #define FLASH_OBR_IWDG_SW FLASH_OBR_IWDG_SW_Msk /*!< IWDG SW */
  6150. #define FLASH_OBR_nRST_STOP_Pos (9U)
  6151. #define FLASH_OBR_nRST_STOP_Msk (0x1U << FLASH_OBR_nRST_STOP_Pos) /*!< 0x00000200 */
  6152. #define FLASH_OBR_nRST_STOP FLASH_OBR_nRST_STOP_Msk /*!< nRST_STOP */
  6153. #define FLASH_OBR_nRST_STDBY_Pos (10U)
  6154. #define FLASH_OBR_nRST_STDBY_Msk (0x1U << FLASH_OBR_nRST_STDBY_Pos) /*!< 0x00000400 */
  6155. #define FLASH_OBR_nRST_STDBY FLASH_OBR_nRST_STDBY_Msk /*!< nRST_STDBY */
  6156. #define FLASH_OBR_nBOOT1_Pos (12U)
  6157. #define FLASH_OBR_nBOOT1_Msk (0x1U << FLASH_OBR_nBOOT1_Pos) /*!< 0x00001000 */
  6158. #define FLASH_OBR_nBOOT1 FLASH_OBR_nBOOT1_Msk /*!< nBOOT1 */
  6159. #define FLASH_OBR_VDDA_MONITOR_Pos (13U)
  6160. #define FLASH_OBR_VDDA_MONITOR_Msk (0x1U << FLASH_OBR_VDDA_MONITOR_Pos) /*!< 0x00002000 */
  6161. #define FLASH_OBR_VDDA_MONITOR FLASH_OBR_VDDA_MONITOR_Msk /*!< VDDA power supply supervisor */
  6162. #define FLASH_OBR_RAM_PARITY_CHECK_Pos (14U)
  6163. #define FLASH_OBR_RAM_PARITY_CHECK_Msk (0x1U << FLASH_OBR_RAM_PARITY_CHECK_Pos) /*!< 0x00004000 */
  6164. #define FLASH_OBR_RAM_PARITY_CHECK FLASH_OBR_RAM_PARITY_CHECK_Msk /*!< RAM parity check */
  6165. #define FLASH_OBR_DATA0_Pos (16U)
  6166. #define FLASH_OBR_DATA0_Msk (0xFFU << FLASH_OBR_DATA0_Pos) /*!< 0x00FF0000 */
  6167. #define FLASH_OBR_DATA0 FLASH_OBR_DATA0_Msk /*!< Data0 */
  6168. #define FLASH_OBR_DATA1_Pos (24U)
  6169. #define FLASH_OBR_DATA1_Msk (0xFFU << FLASH_OBR_DATA1_Pos) /*!< 0xFF000000 */
  6170. #define FLASH_OBR_DATA1 FLASH_OBR_DATA1_Msk /*!< Data1 */
  6171. /* Old BOOT1 bit definition, maintained for legacy purpose */
  6172. #define FLASH_OBR_BOOT1 FLASH_OBR_nBOOT1
  6173. /* Old OBR_VDDA bit definition, maintained for legacy purpose */
  6174. #define FLASH_OBR_VDDA_ANALOG FLASH_OBR_VDDA_MONITOR
  6175. /****************** Bit definition for FLASH_WRPR register ******************/
  6176. #define FLASH_WRPR_WRP_Pos (0U)
  6177. #define FLASH_WRPR_WRP_Msk (0xFFFFU << FLASH_WRPR_WRP_Pos) /*!< 0x0000FFFF */
  6178. #define FLASH_WRPR_WRP FLASH_WRPR_WRP_Msk /*!< Write Protect */
  6179. /*----------------------------------------------------------------------------*/
  6180. /****************** Bit definition for OB_RDP register **********************/
  6181. #define OB_RDP_RDP_Pos (0U)
  6182. #define OB_RDP_RDP_Msk (0xFFU << OB_RDP_RDP_Pos) /*!< 0x000000FF */
  6183. #define OB_RDP_RDP OB_RDP_RDP_Msk /*!< Read protection option byte */
  6184. #define OB_RDP_nRDP_Pos (8U)
  6185. #define OB_RDP_nRDP_Msk (0xFFU << OB_RDP_nRDP_Pos) /*!< 0x0000FF00 */
  6186. #define OB_RDP_nRDP OB_RDP_nRDP_Msk /*!< Read protection complemented option byte */
  6187. /****************** Bit definition for OB_USER register *********************/
  6188. #define OB_USER_USER_Pos (16U)
  6189. #define OB_USER_USER_Msk (0xFFU << OB_USER_USER_Pos) /*!< 0x00FF0000 */
  6190. #define OB_USER_USER OB_USER_USER_Msk /*!< User option byte */
  6191. #define OB_USER_nUSER_Pos (24U)
  6192. #define OB_USER_nUSER_Msk (0xFFU << OB_USER_nUSER_Pos) /*!< 0xFF000000 */
  6193. #define OB_USER_nUSER OB_USER_nUSER_Msk /*!< User complemented option byte */
  6194. /****************** Bit definition for OB_WRP0 register *********************/
  6195. #define OB_WRP0_WRP0_Pos (0U)
  6196. #define OB_WRP0_WRP0_Msk (0xFFU << OB_WRP0_WRP0_Pos) /*!< 0x000000FF */
  6197. #define OB_WRP0_WRP0 OB_WRP0_WRP0_Msk /*!< Flash memory write protection option bytes */
  6198. #define OB_WRP0_nWRP0_Pos (8U)
  6199. #define OB_WRP0_nWRP0_Msk (0xFFU << OB_WRP0_nWRP0_Pos) /*!< 0x0000FF00 */
  6200. #define OB_WRP0_nWRP0 OB_WRP0_nWRP0_Msk /*!< Flash memory write protection complemented option bytes */
  6201. /****************** Bit definition for OB_WRP1 register *********************/
  6202. #define OB_WRP1_WRP1_Pos (16U)
  6203. #define OB_WRP1_WRP1_Msk (0xFFU << OB_WRP1_WRP1_Pos) /*!< 0x00FF0000 */
  6204. #define OB_WRP1_WRP1 OB_WRP1_WRP1_Msk /*!< Flash memory write protection option bytes */
  6205. #define OB_WRP1_nWRP1_Pos (24U)
  6206. #define OB_WRP1_nWRP1_Msk (0xFFU << OB_WRP1_nWRP1_Pos) /*!< 0xFF000000 */
  6207. #define OB_WRP1_nWRP1 OB_WRP1_nWRP1_Msk /*!< Flash memory write protection complemented option bytes */
  6208. /****************** Bit definition for OB_WRP2 register *********************/
  6209. #define OB_WRP2_WRP2_Pos (0U)
  6210. #define OB_WRP2_WRP2_Msk (0xFFU << OB_WRP2_WRP2_Pos) /*!< 0x000000FF */
  6211. #define OB_WRP2_WRP2 OB_WRP2_WRP2_Msk /*!< Flash memory write protection option bytes */
  6212. #define OB_WRP2_nWRP2_Pos (8U)
  6213. #define OB_WRP2_nWRP2_Msk (0xFFU << OB_WRP2_nWRP2_Pos) /*!< 0x0000FF00 */
  6214. #define OB_WRP2_nWRP2 OB_WRP2_nWRP2_Msk /*!< Flash memory write protection complemented option bytes */
  6215. /****************** Bit definition for OB_WRP3 register *********************/
  6216. #define OB_WRP3_WRP3_Pos (16U)
  6217. #define OB_WRP3_WRP3_Msk (0xFFU << OB_WRP3_WRP3_Pos) /*!< 0x00FF0000 */
  6218. #define OB_WRP3_WRP3 OB_WRP3_WRP3_Msk /*!< Flash memory write protection option bytes */
  6219. #define OB_WRP3_nWRP3_Pos (24U)
  6220. #define OB_WRP3_nWRP3_Msk (0xFFU << OB_WRP3_nWRP3_Pos) /*!< 0xFF000000 */
  6221. #define OB_WRP3_nWRP3 OB_WRP3_nWRP3_Msk /*!< Flash memory write protection complemented option bytes */
  6222. /******************************************************************************/
  6223. /* */
  6224. /* General Purpose IOs (GPIO) */
  6225. /* */
  6226. /******************************************************************************/
  6227. /******************* Bit definition for GPIO_MODER register *****************/
  6228. #define GPIO_MODER_MODER0_Pos (0U)
  6229. #define GPIO_MODER_MODER0_Msk (0x3U << GPIO_MODER_MODER0_Pos) /*!< 0x00000003 */
  6230. #define GPIO_MODER_MODER0 GPIO_MODER_MODER0_Msk
  6231. #define GPIO_MODER_MODER0_0 (0x1U << GPIO_MODER_MODER0_Pos) /*!< 0x00000001 */
  6232. #define GPIO_MODER_MODER0_1 (0x2U << GPIO_MODER_MODER0_Pos) /*!< 0x00000002 */
  6233. #define GPIO_MODER_MODER1_Pos (2U)
  6234. #define GPIO_MODER_MODER1_Msk (0x3U << GPIO_MODER_MODER1_Pos) /*!< 0x0000000C */
  6235. #define GPIO_MODER_MODER1 GPIO_MODER_MODER1_Msk
  6236. #define GPIO_MODER_MODER1_0 (0x1U << GPIO_MODER_MODER1_Pos) /*!< 0x00000004 */
  6237. #define GPIO_MODER_MODER1_1 (0x2U << GPIO_MODER_MODER1_Pos) /*!< 0x00000008 */
  6238. #define GPIO_MODER_MODER2_Pos (4U)
  6239. #define GPIO_MODER_MODER2_Msk (0x3U << GPIO_MODER_MODER2_Pos) /*!< 0x00000030 */
  6240. #define GPIO_MODER_MODER2 GPIO_MODER_MODER2_Msk
  6241. #define GPIO_MODER_MODER2_0 (0x1U << GPIO_MODER_MODER2_Pos) /*!< 0x00000010 */
  6242. #define GPIO_MODER_MODER2_1 (0x2U << GPIO_MODER_MODER2_Pos) /*!< 0x00000020 */
  6243. #define GPIO_MODER_MODER3_Pos (6U)
  6244. #define GPIO_MODER_MODER3_Msk (0x3U << GPIO_MODER_MODER3_Pos) /*!< 0x000000C0 */
  6245. #define GPIO_MODER_MODER3 GPIO_MODER_MODER3_Msk
  6246. #define GPIO_MODER_MODER3_0 (0x1U << GPIO_MODER_MODER3_Pos) /*!< 0x00000040 */
  6247. #define GPIO_MODER_MODER3_1 (0x2U << GPIO_MODER_MODER3_Pos) /*!< 0x00000080 */
  6248. #define GPIO_MODER_MODER4_Pos (8U)
  6249. #define GPIO_MODER_MODER4_Msk (0x3U << GPIO_MODER_MODER4_Pos) /*!< 0x00000300 */
  6250. #define GPIO_MODER_MODER4 GPIO_MODER_MODER4_Msk
  6251. #define GPIO_MODER_MODER4_0 (0x1U << GPIO_MODER_MODER4_Pos) /*!< 0x00000100 */
  6252. #define GPIO_MODER_MODER4_1 (0x2U << GPIO_MODER_MODER4_Pos) /*!< 0x00000200 */
  6253. #define GPIO_MODER_MODER5_Pos (10U)
  6254. #define GPIO_MODER_MODER5_Msk (0x3U << GPIO_MODER_MODER5_Pos) /*!< 0x00000C00 */
  6255. #define GPIO_MODER_MODER5 GPIO_MODER_MODER5_Msk
  6256. #define GPIO_MODER_MODER5_0 (0x1U << GPIO_MODER_MODER5_Pos) /*!< 0x00000400 */
  6257. #define GPIO_MODER_MODER5_1 (0x2U << GPIO_MODER_MODER5_Pos) /*!< 0x00000800 */
  6258. #define GPIO_MODER_MODER6_Pos (12U)
  6259. #define GPIO_MODER_MODER6_Msk (0x3U << GPIO_MODER_MODER6_Pos) /*!< 0x00003000 */
  6260. #define GPIO_MODER_MODER6 GPIO_MODER_MODER6_Msk
  6261. #define GPIO_MODER_MODER6_0 (0x1U << GPIO_MODER_MODER6_Pos) /*!< 0x00001000 */
  6262. #define GPIO_MODER_MODER6_1 (0x2U << GPIO_MODER_MODER6_Pos) /*!< 0x00002000 */
  6263. #define GPIO_MODER_MODER7_Pos (14U)
  6264. #define GPIO_MODER_MODER7_Msk (0x3U << GPIO_MODER_MODER7_Pos) /*!< 0x0000C000 */
  6265. #define GPIO_MODER_MODER7 GPIO_MODER_MODER7_Msk
  6266. #define GPIO_MODER_MODER7_0 (0x1U << GPIO_MODER_MODER7_Pos) /*!< 0x00004000 */
  6267. #define GPIO_MODER_MODER7_1 (0x2U << GPIO_MODER_MODER7_Pos) /*!< 0x00008000 */
  6268. #define GPIO_MODER_MODER8_Pos (16U)
  6269. #define GPIO_MODER_MODER8_Msk (0x3U << GPIO_MODER_MODER8_Pos) /*!< 0x00030000 */
  6270. #define GPIO_MODER_MODER8 GPIO_MODER_MODER8_Msk
  6271. #define GPIO_MODER_MODER8_0 (0x1U << GPIO_MODER_MODER8_Pos) /*!< 0x00010000 */
  6272. #define GPIO_MODER_MODER8_1 (0x2U << GPIO_MODER_MODER8_Pos) /*!< 0x00020000 */
  6273. #define GPIO_MODER_MODER9_Pos (18U)
  6274. #define GPIO_MODER_MODER9_Msk (0x3U << GPIO_MODER_MODER9_Pos) /*!< 0x000C0000 */
  6275. #define GPIO_MODER_MODER9 GPIO_MODER_MODER9_Msk
  6276. #define GPIO_MODER_MODER9_0 (0x1U << GPIO_MODER_MODER9_Pos) /*!< 0x00040000 */
  6277. #define GPIO_MODER_MODER9_1 (0x2U << GPIO_MODER_MODER9_Pos) /*!< 0x00080000 */
  6278. #define GPIO_MODER_MODER10_Pos (20U)
  6279. #define GPIO_MODER_MODER10_Msk (0x3U << GPIO_MODER_MODER10_Pos) /*!< 0x00300000 */
  6280. #define GPIO_MODER_MODER10 GPIO_MODER_MODER10_Msk
  6281. #define GPIO_MODER_MODER10_0 (0x1U << GPIO_MODER_MODER10_Pos) /*!< 0x00100000 */
  6282. #define GPIO_MODER_MODER10_1 (0x2U << GPIO_MODER_MODER10_Pos) /*!< 0x00200000 */
  6283. #define GPIO_MODER_MODER11_Pos (22U)
  6284. #define GPIO_MODER_MODER11_Msk (0x3U << GPIO_MODER_MODER11_Pos) /*!< 0x00C00000 */
  6285. #define GPIO_MODER_MODER11 GPIO_MODER_MODER11_Msk
  6286. #define GPIO_MODER_MODER11_0 (0x1U << GPIO_MODER_MODER11_Pos) /*!< 0x00400000 */
  6287. #define GPIO_MODER_MODER11_1 (0x2U << GPIO_MODER_MODER11_Pos) /*!< 0x00800000 */
  6288. #define GPIO_MODER_MODER12_Pos (24U)
  6289. #define GPIO_MODER_MODER12_Msk (0x3U << GPIO_MODER_MODER12_Pos) /*!< 0x03000000 */
  6290. #define GPIO_MODER_MODER12 GPIO_MODER_MODER12_Msk
  6291. #define GPIO_MODER_MODER12_0 (0x1U << GPIO_MODER_MODER12_Pos) /*!< 0x01000000 */
  6292. #define GPIO_MODER_MODER12_1 (0x2U << GPIO_MODER_MODER12_Pos) /*!< 0x02000000 */
  6293. #define GPIO_MODER_MODER13_Pos (26U)
  6294. #define GPIO_MODER_MODER13_Msk (0x3U << GPIO_MODER_MODER13_Pos) /*!< 0x0C000000 */
  6295. #define GPIO_MODER_MODER13 GPIO_MODER_MODER13_Msk
  6296. #define GPIO_MODER_MODER13_0 (0x1U << GPIO_MODER_MODER13_Pos) /*!< 0x04000000 */
  6297. #define GPIO_MODER_MODER13_1 (0x2U << GPIO_MODER_MODER13_Pos) /*!< 0x08000000 */
  6298. #define GPIO_MODER_MODER14_Pos (28U)
  6299. #define GPIO_MODER_MODER14_Msk (0x3U << GPIO_MODER_MODER14_Pos) /*!< 0x30000000 */
  6300. #define GPIO_MODER_MODER14 GPIO_MODER_MODER14_Msk
  6301. #define GPIO_MODER_MODER14_0 (0x1U << GPIO_MODER_MODER14_Pos) /*!< 0x10000000 */
  6302. #define GPIO_MODER_MODER14_1 (0x2U << GPIO_MODER_MODER14_Pos) /*!< 0x20000000 */
  6303. #define GPIO_MODER_MODER15_Pos (30U)
  6304. #define GPIO_MODER_MODER15_Msk (0x3U << GPIO_MODER_MODER15_Pos) /*!< 0xC0000000 */
  6305. #define GPIO_MODER_MODER15 GPIO_MODER_MODER15_Msk
  6306. #define GPIO_MODER_MODER15_0 (0x1U << GPIO_MODER_MODER15_Pos) /*!< 0x40000000 */
  6307. #define GPIO_MODER_MODER15_1 (0x2U << GPIO_MODER_MODER15_Pos) /*!< 0x80000000 */
  6308. /****************** Bit definition for GPIO_OTYPER register *****************/
  6309. #define GPIO_OTYPER_OT_0 (0x00000001U)
  6310. #define GPIO_OTYPER_OT_1 (0x00000002U)
  6311. #define GPIO_OTYPER_OT_2 (0x00000004U)
  6312. #define GPIO_OTYPER_OT_3 (0x00000008U)
  6313. #define GPIO_OTYPER_OT_4 (0x00000010U)
  6314. #define GPIO_OTYPER_OT_5 (0x00000020U)
  6315. #define GPIO_OTYPER_OT_6 (0x00000040U)
  6316. #define GPIO_OTYPER_OT_7 (0x00000080U)
  6317. #define GPIO_OTYPER_OT_8 (0x00000100U)
  6318. #define GPIO_OTYPER_OT_9 (0x00000200U)
  6319. #define GPIO_OTYPER_OT_10 (0x00000400U)
  6320. #define GPIO_OTYPER_OT_11 (0x00000800U)
  6321. #define GPIO_OTYPER_OT_12 (0x00001000U)
  6322. #define GPIO_OTYPER_OT_13 (0x00002000U)
  6323. #define GPIO_OTYPER_OT_14 (0x00004000U)
  6324. #define GPIO_OTYPER_OT_15 (0x00008000U)
  6325. /**************** Bit definition for GPIO_OSPEEDR register ******************/
  6326. #define GPIO_OSPEEDR_OSPEEDR0_Pos (0U)
  6327. #define GPIO_OSPEEDR_OSPEEDR0_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR0_Pos) /*!< 0x00000003 */
  6328. #define GPIO_OSPEEDR_OSPEEDR0 GPIO_OSPEEDR_OSPEEDR0_Msk
  6329. #define GPIO_OSPEEDR_OSPEEDR0_0 (0x1U << GPIO_OSPEEDR_OSPEEDR0_Pos) /*!< 0x00000001 */
  6330. #define GPIO_OSPEEDR_OSPEEDR0_1 (0x2U << GPIO_OSPEEDR_OSPEEDR0_Pos) /*!< 0x00000002 */
  6331. #define GPIO_OSPEEDR_OSPEEDR1_Pos (2U)
  6332. #define GPIO_OSPEEDR_OSPEEDR1_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR1_Pos) /*!< 0x0000000C */
  6333. #define GPIO_OSPEEDR_OSPEEDR1 GPIO_OSPEEDR_OSPEEDR1_Msk
  6334. #define GPIO_OSPEEDR_OSPEEDR1_0 (0x1U << GPIO_OSPEEDR_OSPEEDR1_Pos) /*!< 0x00000004 */
  6335. #define GPIO_OSPEEDR_OSPEEDR1_1 (0x2U << GPIO_OSPEEDR_OSPEEDR1_Pos) /*!< 0x00000008 */
  6336. #define GPIO_OSPEEDR_OSPEEDR2_Pos (4U)
  6337. #define GPIO_OSPEEDR_OSPEEDR2_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR2_Pos) /*!< 0x00000030 */
  6338. #define GPIO_OSPEEDR_OSPEEDR2 GPIO_OSPEEDR_OSPEEDR2_Msk
  6339. #define GPIO_OSPEEDR_OSPEEDR2_0 (0x1U << GPIO_OSPEEDR_OSPEEDR2_Pos) /*!< 0x00000010 */
  6340. #define GPIO_OSPEEDR_OSPEEDR2_1 (0x2U << GPIO_OSPEEDR_OSPEEDR2_Pos) /*!< 0x00000020 */
  6341. #define GPIO_OSPEEDR_OSPEEDR3_Pos (6U)
  6342. #define GPIO_OSPEEDR_OSPEEDR3_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR3_Pos) /*!< 0x000000C0 */
  6343. #define GPIO_OSPEEDR_OSPEEDR3 GPIO_OSPEEDR_OSPEEDR3_Msk
  6344. #define GPIO_OSPEEDR_OSPEEDR3_0 (0x1U << GPIO_OSPEEDR_OSPEEDR3_Pos) /*!< 0x00000040 */
  6345. #define GPIO_OSPEEDR_OSPEEDR3_1 (0x2U << GPIO_OSPEEDR_OSPEEDR3_Pos) /*!< 0x00000080 */
  6346. #define GPIO_OSPEEDR_OSPEEDR4_Pos (8U)
  6347. #define GPIO_OSPEEDR_OSPEEDR4_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR4_Pos) /*!< 0x00000300 */
  6348. #define GPIO_OSPEEDR_OSPEEDR4 GPIO_OSPEEDR_OSPEEDR4_Msk
  6349. #define GPIO_OSPEEDR_OSPEEDR4_0 (0x1U << GPIO_OSPEEDR_OSPEEDR4_Pos) /*!< 0x00000100 */
  6350. #define GPIO_OSPEEDR_OSPEEDR4_1 (0x2U << GPIO_OSPEEDR_OSPEEDR4_Pos) /*!< 0x00000200 */
  6351. #define GPIO_OSPEEDR_OSPEEDR5_Pos (10U)
  6352. #define GPIO_OSPEEDR_OSPEEDR5_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR5_Pos) /*!< 0x00000C00 */
  6353. #define GPIO_OSPEEDR_OSPEEDR5 GPIO_OSPEEDR_OSPEEDR5_Msk
  6354. #define GPIO_OSPEEDR_OSPEEDR5_0 (0x1U << GPIO_OSPEEDR_OSPEEDR5_Pos) /*!< 0x00000400 */
  6355. #define GPIO_OSPEEDR_OSPEEDR5_1 (0x2U << GPIO_OSPEEDR_OSPEEDR5_Pos) /*!< 0x00000800 */
  6356. #define GPIO_OSPEEDR_OSPEEDR6_Pos (12U)
  6357. #define GPIO_OSPEEDR_OSPEEDR6_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR6_Pos) /*!< 0x00003000 */
  6358. #define GPIO_OSPEEDR_OSPEEDR6 GPIO_OSPEEDR_OSPEEDR6_Msk
  6359. #define GPIO_OSPEEDR_OSPEEDR6_0 (0x1U << GPIO_OSPEEDR_OSPEEDR6_Pos) /*!< 0x00001000 */
  6360. #define GPIO_OSPEEDR_OSPEEDR6_1 (0x2U << GPIO_OSPEEDR_OSPEEDR6_Pos) /*!< 0x00002000 */
  6361. #define GPIO_OSPEEDR_OSPEEDR7_Pos (14U)
  6362. #define GPIO_OSPEEDR_OSPEEDR7_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR7_Pos) /*!< 0x0000C000 */
  6363. #define GPIO_OSPEEDR_OSPEEDR7 GPIO_OSPEEDR_OSPEEDR7_Msk
  6364. #define GPIO_OSPEEDR_OSPEEDR7_0 (0x1U << GPIO_OSPEEDR_OSPEEDR7_Pos) /*!< 0x00004000 */
  6365. #define GPIO_OSPEEDR_OSPEEDR7_1 (0x2U << GPIO_OSPEEDR_OSPEEDR7_Pos) /*!< 0x00008000 */
  6366. #define GPIO_OSPEEDR_OSPEEDR8_Pos (16U)
  6367. #define GPIO_OSPEEDR_OSPEEDR8_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR8_Pos) /*!< 0x00030000 */
  6368. #define GPIO_OSPEEDR_OSPEEDR8 GPIO_OSPEEDR_OSPEEDR8_Msk
  6369. #define GPIO_OSPEEDR_OSPEEDR8_0 (0x1U << GPIO_OSPEEDR_OSPEEDR8_Pos) /*!< 0x00010000 */
  6370. #define GPIO_OSPEEDR_OSPEEDR8_1 (0x2U << GPIO_OSPEEDR_OSPEEDR8_Pos) /*!< 0x00020000 */
  6371. #define GPIO_OSPEEDR_OSPEEDR9_Pos (18U)
  6372. #define GPIO_OSPEEDR_OSPEEDR9_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR9_Pos) /*!< 0x000C0000 */
  6373. #define GPIO_OSPEEDR_OSPEEDR9 GPIO_OSPEEDR_OSPEEDR9_Msk
  6374. #define GPIO_OSPEEDR_OSPEEDR9_0 (0x1U << GPIO_OSPEEDR_OSPEEDR9_Pos) /*!< 0x00040000 */
  6375. #define GPIO_OSPEEDR_OSPEEDR9_1 (0x2U << GPIO_OSPEEDR_OSPEEDR9_Pos) /*!< 0x00080000 */
  6376. #define GPIO_OSPEEDR_OSPEEDR10_Pos (20U)
  6377. #define GPIO_OSPEEDR_OSPEEDR10_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR10_Pos) /*!< 0x00300000 */
  6378. #define GPIO_OSPEEDR_OSPEEDR10 GPIO_OSPEEDR_OSPEEDR10_Msk
  6379. #define GPIO_OSPEEDR_OSPEEDR10_0 (0x1U << GPIO_OSPEEDR_OSPEEDR10_Pos) /*!< 0x00100000 */
  6380. #define GPIO_OSPEEDR_OSPEEDR10_1 (0x2U << GPIO_OSPEEDR_OSPEEDR10_Pos) /*!< 0x00200000 */
  6381. #define GPIO_OSPEEDR_OSPEEDR11_Pos (22U)
  6382. #define GPIO_OSPEEDR_OSPEEDR11_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR11_Pos) /*!< 0x00C00000 */
  6383. #define GPIO_OSPEEDR_OSPEEDR11 GPIO_OSPEEDR_OSPEEDR11_Msk
  6384. #define GPIO_OSPEEDR_OSPEEDR11_0 (0x1U << GPIO_OSPEEDR_OSPEEDR11_Pos) /*!< 0x00400000 */
  6385. #define GPIO_OSPEEDR_OSPEEDR11_1 (0x2U << GPIO_OSPEEDR_OSPEEDR11_Pos) /*!< 0x00800000 */
  6386. #define GPIO_OSPEEDR_OSPEEDR12_Pos (24U)
  6387. #define GPIO_OSPEEDR_OSPEEDR12_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR12_Pos) /*!< 0x03000000 */
  6388. #define GPIO_OSPEEDR_OSPEEDR12 GPIO_OSPEEDR_OSPEEDR12_Msk
  6389. #define GPIO_OSPEEDR_OSPEEDR12_0 (0x1U << GPIO_OSPEEDR_OSPEEDR12_Pos) /*!< 0x01000000 */
  6390. #define GPIO_OSPEEDR_OSPEEDR12_1 (0x2U << GPIO_OSPEEDR_OSPEEDR12_Pos) /*!< 0x02000000 */
  6391. #define GPIO_OSPEEDR_OSPEEDR13_Pos (26U)
  6392. #define GPIO_OSPEEDR_OSPEEDR13_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR13_Pos) /*!< 0x0C000000 */
  6393. #define GPIO_OSPEEDR_OSPEEDR13 GPIO_OSPEEDR_OSPEEDR13_Msk
  6394. #define GPIO_OSPEEDR_OSPEEDR13_0 (0x1U << GPIO_OSPEEDR_OSPEEDR13_Pos) /*!< 0x04000000 */
  6395. #define GPIO_OSPEEDR_OSPEEDR13_1 (0x2U << GPIO_OSPEEDR_OSPEEDR13_Pos) /*!< 0x08000000 */
  6396. #define GPIO_OSPEEDR_OSPEEDR14_Pos (28U)
  6397. #define GPIO_OSPEEDR_OSPEEDR14_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR14_Pos) /*!< 0x30000000 */
  6398. #define GPIO_OSPEEDR_OSPEEDR14 GPIO_OSPEEDR_OSPEEDR14_Msk
  6399. #define GPIO_OSPEEDR_OSPEEDR14_0 (0x1U << GPIO_OSPEEDR_OSPEEDR14_Pos) /*!< 0x10000000 */
  6400. #define GPIO_OSPEEDR_OSPEEDR14_1 (0x2U << GPIO_OSPEEDR_OSPEEDR14_Pos) /*!< 0x20000000 */
  6401. #define GPIO_OSPEEDR_OSPEEDR15_Pos (30U)
  6402. #define GPIO_OSPEEDR_OSPEEDR15_Msk (0x3U << GPIO_OSPEEDR_OSPEEDR15_Pos) /*!< 0xC0000000 */
  6403. #define GPIO_OSPEEDR_OSPEEDR15 GPIO_OSPEEDR_OSPEEDR15_Msk
  6404. #define GPIO_OSPEEDR_OSPEEDR15_0 (0x1U << GPIO_OSPEEDR_OSPEEDR15_Pos) /*!< 0x40000000 */
  6405. #define GPIO_OSPEEDR_OSPEEDR15_1 (0x2U << GPIO_OSPEEDR_OSPEEDR15_Pos) /*!< 0x80000000 */
  6406. /* Old Bit definition for GPIO_OSPEEDR register maintained for legacy purpose */
  6407. #define GPIO_OSPEEDER_OSPEEDR0 GPIO_OSPEEDR_OSPEEDR0
  6408. #define GPIO_OSPEEDER_OSPEEDR0_0 GPIO_OSPEEDR_OSPEEDR0_0
  6409. #define GPIO_OSPEEDER_OSPEEDR0_1 GPIO_OSPEEDR_OSPEEDR0_1
  6410. #define GPIO_OSPEEDER_OSPEEDR1 GPIO_OSPEEDR_OSPEEDR1
  6411. #define GPIO_OSPEEDER_OSPEEDR1_0 GPIO_OSPEEDR_OSPEEDR1_0
  6412. #define GPIO_OSPEEDER_OSPEEDR1_1 GPIO_OSPEEDR_OSPEEDR1_1
  6413. #define GPIO_OSPEEDER_OSPEEDR2 GPIO_OSPEEDR_OSPEEDR2
  6414. #define GPIO_OSPEEDER_OSPEEDR2_0 GPIO_OSPEEDR_OSPEEDR2_0
  6415. #define GPIO_OSPEEDER_OSPEEDR2_1 GPIO_OSPEEDR_OSPEEDR2_1
  6416. #define GPIO_OSPEEDER_OSPEEDR3 GPIO_OSPEEDR_OSPEEDR3
  6417. #define GPIO_OSPEEDER_OSPEEDR3_0 GPIO_OSPEEDR_OSPEEDR3_0
  6418. #define GPIO_OSPEEDER_OSPEEDR3_1 GPIO_OSPEEDR_OSPEEDR3_1
  6419. #define GPIO_OSPEEDER_OSPEEDR4 GPIO_OSPEEDR_OSPEEDR4
  6420. #define GPIO_OSPEEDER_OSPEEDR4_0 GPIO_OSPEEDR_OSPEEDR4_0
  6421. #define GPIO_OSPEEDER_OSPEEDR4_1 GPIO_OSPEEDR_OSPEEDR4_1
  6422. #define GPIO_OSPEEDER_OSPEEDR5 GPIO_OSPEEDR_OSPEEDR5
  6423. #define GPIO_OSPEEDER_OSPEEDR5_0 GPIO_OSPEEDR_OSPEEDR5_0
  6424. #define GPIO_OSPEEDER_OSPEEDR5_1 GPIO_OSPEEDR_OSPEEDR5_1
  6425. #define GPIO_OSPEEDER_OSPEEDR6 GPIO_OSPEEDR_OSPEEDR6
  6426. #define GPIO_OSPEEDER_OSPEEDR6_0 GPIO_OSPEEDR_OSPEEDR6_0
  6427. #define GPIO_OSPEEDER_OSPEEDR6_1 GPIO_OSPEEDR_OSPEEDR6_1
  6428. #define GPIO_OSPEEDER_OSPEEDR7 GPIO_OSPEEDR_OSPEEDR7
  6429. #define GPIO_OSPEEDER_OSPEEDR7_0 GPIO_OSPEEDR_OSPEEDR7_0
  6430. #define GPIO_OSPEEDER_OSPEEDR7_1 GPIO_OSPEEDR_OSPEEDR7_1
  6431. #define GPIO_OSPEEDER_OSPEEDR8 GPIO_OSPEEDR_OSPEEDR8
  6432. #define GPIO_OSPEEDER_OSPEEDR8_0 GPIO_OSPEEDR_OSPEEDR8_0
  6433. #define GPIO_OSPEEDER_OSPEEDR8_1 GPIO_OSPEEDR_OSPEEDR8_1
  6434. #define GPIO_OSPEEDER_OSPEEDR9 GPIO_OSPEEDR_OSPEEDR9
  6435. #define GPIO_OSPEEDER_OSPEEDR9_0 GPIO_OSPEEDR_OSPEEDR9_0
  6436. #define GPIO_OSPEEDER_OSPEEDR9_1 GPIO_OSPEEDR_OSPEEDR9_1
  6437. #define GPIO_OSPEEDER_OSPEEDR10 GPIO_OSPEEDR_OSPEEDR10
  6438. #define GPIO_OSPEEDER_OSPEEDR10_0 GPIO_OSPEEDR_OSPEEDR10_0
  6439. #define GPIO_OSPEEDER_OSPEEDR10_1 GPIO_OSPEEDR_OSPEEDR10_1
  6440. #define GPIO_OSPEEDER_OSPEEDR11 GPIO_OSPEEDR_OSPEEDR11
  6441. #define GPIO_OSPEEDER_OSPEEDR11_0 GPIO_OSPEEDR_OSPEEDR11_0
  6442. #define GPIO_OSPEEDER_OSPEEDR11_1 GPIO_OSPEEDR_OSPEEDR11_1
  6443. #define GPIO_OSPEEDER_OSPEEDR12 GPIO_OSPEEDR_OSPEEDR12
  6444. #define GPIO_OSPEEDER_OSPEEDR12_0 GPIO_OSPEEDR_OSPEEDR12_0
  6445. #define GPIO_OSPEEDER_OSPEEDR12_1 GPIO_OSPEEDR_OSPEEDR12_1
  6446. #define GPIO_OSPEEDER_OSPEEDR13 GPIO_OSPEEDR_OSPEEDR13
  6447. #define GPIO_OSPEEDER_OSPEEDR13_0 GPIO_OSPEEDR_OSPEEDR13_0
  6448. #define GPIO_OSPEEDER_OSPEEDR13_1 GPIO_OSPEEDR_OSPEEDR13_1
  6449. #define GPIO_OSPEEDER_OSPEEDR14 GPIO_OSPEEDR_OSPEEDR14
  6450. #define GPIO_OSPEEDER_OSPEEDR14_0 GPIO_OSPEEDR_OSPEEDR14_0
  6451. #define GPIO_OSPEEDER_OSPEEDR14_1 GPIO_OSPEEDR_OSPEEDR14_1
  6452. #define GPIO_OSPEEDER_OSPEEDR15 GPIO_OSPEEDR_OSPEEDR15
  6453. #define GPIO_OSPEEDER_OSPEEDR15_0 GPIO_OSPEEDR_OSPEEDR15_0
  6454. #define GPIO_OSPEEDER_OSPEEDR15_1 GPIO_OSPEEDR_OSPEEDR15_1
  6455. /******************* Bit definition for GPIO_PUPDR register ******************/
  6456. #define GPIO_PUPDR_PUPDR0_Pos (0U)
  6457. #define GPIO_PUPDR_PUPDR0_Msk (0x3U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000003 */
  6458. #define GPIO_PUPDR_PUPDR0 GPIO_PUPDR_PUPDR0_Msk
  6459. #define GPIO_PUPDR_PUPDR0_0 (0x1U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000001 */
  6460. #define GPIO_PUPDR_PUPDR0_1 (0x2U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000002 */
  6461. #define GPIO_PUPDR_PUPDR1_Pos (2U)
  6462. #define GPIO_PUPDR_PUPDR1_Msk (0x3U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x0000000C */
  6463. #define GPIO_PUPDR_PUPDR1 GPIO_PUPDR_PUPDR1_Msk
  6464. #define GPIO_PUPDR_PUPDR1_0 (0x1U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000004 */
  6465. #define GPIO_PUPDR_PUPDR1_1 (0x2U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000008 */
  6466. #define GPIO_PUPDR_PUPDR2_Pos (4U)
  6467. #define GPIO_PUPDR_PUPDR2_Msk (0x3U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000030 */
  6468. #define GPIO_PUPDR_PUPDR2 GPIO_PUPDR_PUPDR2_Msk
  6469. #define GPIO_PUPDR_PUPDR2_0 (0x1U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000010 */
  6470. #define GPIO_PUPDR_PUPDR2_1 (0x2U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000020 */
  6471. #define GPIO_PUPDR_PUPDR3_Pos (6U)
  6472. #define GPIO_PUPDR_PUPDR3_Msk (0x3U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x000000C0 */
  6473. #define GPIO_PUPDR_PUPDR3 GPIO_PUPDR_PUPDR3_Msk
  6474. #define GPIO_PUPDR_PUPDR3_0 (0x1U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000040 */
  6475. #define GPIO_PUPDR_PUPDR3_1 (0x2U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000080 */
  6476. #define GPIO_PUPDR_PUPDR4_Pos (8U)
  6477. #define GPIO_PUPDR_PUPDR4_Msk (0x3U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000300 */
  6478. #define GPIO_PUPDR_PUPDR4 GPIO_PUPDR_PUPDR4_Msk
  6479. #define GPIO_PUPDR_PUPDR4_0 (0x1U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000100 */
  6480. #define GPIO_PUPDR_PUPDR4_1 (0x2U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000200 */
  6481. #define GPIO_PUPDR_PUPDR5_Pos (10U)
  6482. #define GPIO_PUPDR_PUPDR5_Msk (0x3U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000C00 */
  6483. #define GPIO_PUPDR_PUPDR5 GPIO_PUPDR_PUPDR5_Msk
  6484. #define GPIO_PUPDR_PUPDR5_0 (0x1U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000400 */
  6485. #define GPIO_PUPDR_PUPDR5_1 (0x2U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000800 */
  6486. #define GPIO_PUPDR_PUPDR6_Pos (12U)
  6487. #define GPIO_PUPDR_PUPDR6_Msk (0x3U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00003000 */
  6488. #define GPIO_PUPDR_PUPDR6 GPIO_PUPDR_PUPDR6_Msk
  6489. #define GPIO_PUPDR_PUPDR6_0 (0x1U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00001000 */
  6490. #define GPIO_PUPDR_PUPDR6_1 (0x2U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00002000 */
  6491. #define GPIO_PUPDR_PUPDR7_Pos (14U)
  6492. #define GPIO_PUPDR_PUPDR7_Msk (0x3U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x0000C000 */
  6493. #define GPIO_PUPDR_PUPDR7 GPIO_PUPDR_PUPDR7_Msk
  6494. #define GPIO_PUPDR_PUPDR7_0 (0x1U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00004000 */
  6495. #define GPIO_PUPDR_PUPDR7_1 (0x2U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00008000 */
  6496. #define GPIO_PUPDR_PUPDR8_Pos (16U)
  6497. #define GPIO_PUPDR_PUPDR8_Msk (0x3U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00030000 */
  6498. #define GPIO_PUPDR_PUPDR8 GPIO_PUPDR_PUPDR8_Msk
  6499. #define GPIO_PUPDR_PUPDR8_0 (0x1U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00010000 */
  6500. #define GPIO_PUPDR_PUPDR8_1 (0x2U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00020000 */
  6501. #define GPIO_PUPDR_PUPDR9_Pos (18U)
  6502. #define GPIO_PUPDR_PUPDR9_Msk (0x3U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x000C0000 */
  6503. #define GPIO_PUPDR_PUPDR9 GPIO_PUPDR_PUPDR9_Msk
  6504. #define GPIO_PUPDR_PUPDR9_0 (0x1U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00040000 */
  6505. #define GPIO_PUPDR_PUPDR9_1 (0x2U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00080000 */
  6506. #define GPIO_PUPDR_PUPDR10_Pos (20U)
  6507. #define GPIO_PUPDR_PUPDR10_Msk (0x3U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00300000 */
  6508. #define GPIO_PUPDR_PUPDR10 GPIO_PUPDR_PUPDR10_Msk
  6509. #define GPIO_PUPDR_PUPDR10_0 (0x1U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00100000 */
  6510. #define GPIO_PUPDR_PUPDR10_1 (0x2U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00200000 */
  6511. #define GPIO_PUPDR_PUPDR11_Pos (22U)
  6512. #define GPIO_PUPDR_PUPDR11_Msk (0x3U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00C00000 */
  6513. #define GPIO_PUPDR_PUPDR11 GPIO_PUPDR_PUPDR11_Msk
  6514. #define GPIO_PUPDR_PUPDR11_0 (0x1U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00400000 */
  6515. #define GPIO_PUPDR_PUPDR11_1 (0x2U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00800000 */
  6516. #define GPIO_PUPDR_PUPDR12_Pos (24U)
  6517. #define GPIO_PUPDR_PUPDR12_Msk (0x3U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x03000000 */
  6518. #define GPIO_PUPDR_PUPDR12 GPIO_PUPDR_PUPDR12_Msk
  6519. #define GPIO_PUPDR_PUPDR12_0 (0x1U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x01000000 */
  6520. #define GPIO_PUPDR_PUPDR12_1 (0x2U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x02000000 */
  6521. #define GPIO_PUPDR_PUPDR13_Pos (26U)
  6522. #define GPIO_PUPDR_PUPDR13_Msk (0x3U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x0C000000 */
  6523. #define GPIO_PUPDR_PUPDR13 GPIO_PUPDR_PUPDR13_Msk
  6524. #define GPIO_PUPDR_PUPDR13_0 (0x1U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x04000000 */
  6525. #define GPIO_PUPDR_PUPDR13_1 (0x2U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x08000000 */
  6526. #define GPIO_PUPDR_PUPDR14_Pos (28U)
  6527. #define GPIO_PUPDR_PUPDR14_Msk (0x3U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x30000000 */
  6528. #define GPIO_PUPDR_PUPDR14 GPIO_PUPDR_PUPDR14_Msk
  6529. #define GPIO_PUPDR_PUPDR14_0 (0x1U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x10000000 */
  6530. #define GPIO_PUPDR_PUPDR14_1 (0x2U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x20000000 */
  6531. #define GPIO_PUPDR_PUPDR15_Pos (30U)
  6532. #define GPIO_PUPDR_PUPDR15_Msk (0x3U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0xC0000000 */
  6533. #define GPIO_PUPDR_PUPDR15 GPIO_PUPDR_PUPDR15_Msk
  6534. #define GPIO_PUPDR_PUPDR15_0 (0x1U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x40000000 */
  6535. #define GPIO_PUPDR_PUPDR15_1 (0x2U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x80000000 */
  6536. /******************* Bit definition for GPIO_IDR register *******************/
  6537. #define GPIO_IDR_0 (0x00000001U)
  6538. #define GPIO_IDR_1 (0x00000002U)
  6539. #define GPIO_IDR_2 (0x00000004U)
  6540. #define GPIO_IDR_3 (0x00000008U)
  6541. #define GPIO_IDR_4 (0x00000010U)
  6542. #define GPIO_IDR_5 (0x00000020U)
  6543. #define GPIO_IDR_6 (0x00000040U)
  6544. #define GPIO_IDR_7 (0x00000080U)
  6545. #define GPIO_IDR_8 (0x00000100U)
  6546. #define GPIO_IDR_9 (0x00000200U)
  6547. #define GPIO_IDR_10 (0x00000400U)
  6548. #define GPIO_IDR_11 (0x00000800U)
  6549. #define GPIO_IDR_12 (0x00001000U)
  6550. #define GPIO_IDR_13 (0x00002000U)
  6551. #define GPIO_IDR_14 (0x00004000U)
  6552. #define GPIO_IDR_15 (0x00008000U)
  6553. /****************** Bit definition for GPIO_ODR register ********************/
  6554. #define GPIO_ODR_0 (0x00000001U)
  6555. #define GPIO_ODR_1 (0x00000002U)
  6556. #define GPIO_ODR_2 (0x00000004U)
  6557. #define GPIO_ODR_3 (0x00000008U)
  6558. #define GPIO_ODR_4 (0x00000010U)
  6559. #define GPIO_ODR_5 (0x00000020U)
  6560. #define GPIO_ODR_6 (0x00000040U)
  6561. #define GPIO_ODR_7 (0x00000080U)
  6562. #define GPIO_ODR_8 (0x00000100U)
  6563. #define GPIO_ODR_9 (0x00000200U)
  6564. #define GPIO_ODR_10 (0x00000400U)
  6565. #define GPIO_ODR_11 (0x00000800U)
  6566. #define GPIO_ODR_12 (0x00001000U)
  6567. #define GPIO_ODR_13 (0x00002000U)
  6568. #define GPIO_ODR_14 (0x00004000U)
  6569. #define GPIO_ODR_15 (0x00008000U)
  6570. /****************** Bit definition for GPIO_BSRR register ********************/
  6571. #define GPIO_BSRR_BS_0 (0x00000001U)
  6572. #define GPIO_BSRR_BS_1 (0x00000002U)
  6573. #define GPIO_BSRR_BS_2 (0x00000004U)
  6574. #define GPIO_BSRR_BS_3 (0x00000008U)
  6575. #define GPIO_BSRR_BS_4 (0x00000010U)
  6576. #define GPIO_BSRR_BS_5 (0x00000020U)
  6577. #define GPIO_BSRR_BS_6 (0x00000040U)
  6578. #define GPIO_BSRR_BS_7 (0x00000080U)
  6579. #define GPIO_BSRR_BS_8 (0x00000100U)
  6580. #define GPIO_BSRR_BS_9 (0x00000200U)
  6581. #define GPIO_BSRR_BS_10 (0x00000400U)
  6582. #define GPIO_BSRR_BS_11 (0x00000800U)
  6583. #define GPIO_BSRR_BS_12 (0x00001000U)
  6584. #define GPIO_BSRR_BS_13 (0x00002000U)
  6585. #define GPIO_BSRR_BS_14 (0x00004000U)
  6586. #define GPIO_BSRR_BS_15 (0x00008000U)
  6587. #define GPIO_BSRR_BR_0 (0x00010000U)
  6588. #define GPIO_BSRR_BR_1 (0x00020000U)
  6589. #define GPIO_BSRR_BR_2 (0x00040000U)
  6590. #define GPIO_BSRR_BR_3 (0x00080000U)
  6591. #define GPIO_BSRR_BR_4 (0x00100000U)
  6592. #define GPIO_BSRR_BR_5 (0x00200000U)
  6593. #define GPIO_BSRR_BR_6 (0x00400000U)
  6594. #define GPIO_BSRR_BR_7 (0x00800000U)
  6595. #define GPIO_BSRR_BR_8 (0x01000000U)
  6596. #define GPIO_BSRR_BR_9 (0x02000000U)
  6597. #define GPIO_BSRR_BR_10 (0x04000000U)
  6598. #define GPIO_BSRR_BR_11 (0x08000000U)
  6599. #define GPIO_BSRR_BR_12 (0x10000000U)
  6600. #define GPIO_BSRR_BR_13 (0x20000000U)
  6601. #define GPIO_BSRR_BR_14 (0x40000000U)
  6602. #define GPIO_BSRR_BR_15 (0x80000000U)
  6603. /****************** Bit definition for GPIO_LCKR register ********************/
  6604. #define GPIO_LCKR_LCK0_Pos (0U)
  6605. #define GPIO_LCKR_LCK0_Msk (0x1U << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  6606. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  6607. #define GPIO_LCKR_LCK1_Pos (1U)
  6608. #define GPIO_LCKR_LCK1_Msk (0x1U << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  6609. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  6610. #define GPIO_LCKR_LCK2_Pos (2U)
  6611. #define GPIO_LCKR_LCK2_Msk (0x1U << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  6612. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  6613. #define GPIO_LCKR_LCK3_Pos (3U)
  6614. #define GPIO_LCKR_LCK3_Msk (0x1U << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  6615. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  6616. #define GPIO_LCKR_LCK4_Pos (4U)
  6617. #define GPIO_LCKR_LCK4_Msk (0x1U << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  6618. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  6619. #define GPIO_LCKR_LCK5_Pos (5U)
  6620. #define GPIO_LCKR_LCK5_Msk (0x1U << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  6621. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  6622. #define GPIO_LCKR_LCK6_Pos (6U)
  6623. #define GPIO_LCKR_LCK6_Msk (0x1U << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  6624. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  6625. #define GPIO_LCKR_LCK7_Pos (7U)
  6626. #define GPIO_LCKR_LCK7_Msk (0x1U << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  6627. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  6628. #define GPIO_LCKR_LCK8_Pos (8U)
  6629. #define GPIO_LCKR_LCK8_Msk (0x1U << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  6630. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  6631. #define GPIO_LCKR_LCK9_Pos (9U)
  6632. #define GPIO_LCKR_LCK9_Msk (0x1U << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  6633. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  6634. #define GPIO_LCKR_LCK10_Pos (10U)
  6635. #define GPIO_LCKR_LCK10_Msk (0x1U << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  6636. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  6637. #define GPIO_LCKR_LCK11_Pos (11U)
  6638. #define GPIO_LCKR_LCK11_Msk (0x1U << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  6639. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  6640. #define GPIO_LCKR_LCK12_Pos (12U)
  6641. #define GPIO_LCKR_LCK12_Msk (0x1U << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  6642. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  6643. #define GPIO_LCKR_LCK13_Pos (13U)
  6644. #define GPIO_LCKR_LCK13_Msk (0x1U << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  6645. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  6646. #define GPIO_LCKR_LCK14_Pos (14U)
  6647. #define GPIO_LCKR_LCK14_Msk (0x1U << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  6648. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  6649. #define GPIO_LCKR_LCK15_Pos (15U)
  6650. #define GPIO_LCKR_LCK15_Msk (0x1U << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  6651. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  6652. #define GPIO_LCKR_LCKK_Pos (16U)
  6653. #define GPIO_LCKR_LCKK_Msk (0x1U << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  6654. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  6655. /****************** Bit definition for GPIO_AFRL register ********************/
  6656. #define GPIO_AFRL_AFRL0_Pos (0U)
  6657. #define GPIO_AFRL_AFRL0_Msk (0xFU << GPIO_AFRL_AFRL0_Pos) /*!< 0x0000000F */
  6658. #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFRL0_Msk
  6659. #define GPIO_AFRL_AFRL1_Pos (4U)
  6660. #define GPIO_AFRL_AFRL1_Msk (0xFU << GPIO_AFRL_AFRL1_Pos) /*!< 0x000000F0 */
  6661. #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFRL1_Msk
  6662. #define GPIO_AFRL_AFRL2_Pos (8U)
  6663. #define GPIO_AFRL_AFRL2_Msk (0xFU << GPIO_AFRL_AFRL2_Pos) /*!< 0x00000F00 */
  6664. #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFRL2_Msk
  6665. #define GPIO_AFRL_AFRL3_Pos (12U)
  6666. #define GPIO_AFRL_AFRL3_Msk (0xFU << GPIO_AFRL_AFRL3_Pos) /*!< 0x0000F000 */
  6667. #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFRL3_Msk
  6668. #define GPIO_AFRL_AFRL4_Pos (16U)
  6669. #define GPIO_AFRL_AFRL4_Msk (0xFU << GPIO_AFRL_AFRL4_Pos) /*!< 0x000F0000 */
  6670. #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFRL4_Msk
  6671. #define GPIO_AFRL_AFRL5_Pos (20U)
  6672. #define GPIO_AFRL_AFRL5_Msk (0xFU << GPIO_AFRL_AFRL5_Pos) /*!< 0x00F00000 */
  6673. #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFRL5_Msk
  6674. #define GPIO_AFRL_AFRL6_Pos (24U)
  6675. #define GPIO_AFRL_AFRL6_Msk (0xFU << GPIO_AFRL_AFRL6_Pos) /*!< 0x0F000000 */
  6676. #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFRL6_Msk
  6677. #define GPIO_AFRL_AFRL7_Pos (28U)
  6678. #define GPIO_AFRL_AFRL7_Msk (0xFU << GPIO_AFRL_AFRL7_Pos) /*!< 0xF0000000 */
  6679. #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFRL7_Msk
  6680. /****************** Bit definition for GPIO_AFRH register ********************/
  6681. #define GPIO_AFRH_AFRH0_Pos (0U)
  6682. #define GPIO_AFRH_AFRH0_Msk (0xFU << GPIO_AFRH_AFRH0_Pos) /*!< 0x0000000F */
  6683. #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFRH0_Msk
  6684. #define GPIO_AFRH_AFRH1_Pos (4U)
  6685. #define GPIO_AFRH_AFRH1_Msk (0xFU << GPIO_AFRH_AFRH1_Pos) /*!< 0x000000F0 */
  6686. #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFRH1_Msk
  6687. #define GPIO_AFRH_AFRH2_Pos (8U)
  6688. #define GPIO_AFRH_AFRH2_Msk (0xFU << GPIO_AFRH_AFRH2_Pos) /*!< 0x00000F00 */
  6689. #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFRH2_Msk
  6690. #define GPIO_AFRH_AFRH3_Pos (12U)
  6691. #define GPIO_AFRH_AFRH3_Msk (0xFU << GPIO_AFRH_AFRH3_Pos) /*!< 0x0000F000 */
  6692. #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFRH3_Msk
  6693. #define GPIO_AFRH_AFRH4_Pos (16U)
  6694. #define GPIO_AFRH_AFRH4_Msk (0xFU << GPIO_AFRH_AFRH4_Pos) /*!< 0x000F0000 */
  6695. #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFRH4_Msk
  6696. #define GPIO_AFRH_AFRH5_Pos (20U)
  6697. #define GPIO_AFRH_AFRH5_Msk (0xFU << GPIO_AFRH_AFRH5_Pos) /*!< 0x00F00000 */
  6698. #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFRH5_Msk
  6699. #define GPIO_AFRH_AFRH6_Pos (24U)
  6700. #define GPIO_AFRH_AFRH6_Msk (0xFU << GPIO_AFRH_AFRH6_Pos) /*!< 0x0F000000 */
  6701. #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFRH6_Msk
  6702. #define GPIO_AFRH_AFRH7_Pos (28U)
  6703. #define GPIO_AFRH_AFRH7_Msk (0xFU << GPIO_AFRH_AFRH7_Pos) /*!< 0xF0000000 */
  6704. #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFRH7_Msk
  6705. /****************** Bit definition for GPIO_BRR register *********************/
  6706. #define GPIO_BRR_BR_0 (0x00000001U)
  6707. #define GPIO_BRR_BR_1 (0x00000002U)
  6708. #define GPIO_BRR_BR_2 (0x00000004U)
  6709. #define GPIO_BRR_BR_3 (0x00000008U)
  6710. #define GPIO_BRR_BR_4 (0x00000010U)
  6711. #define GPIO_BRR_BR_5 (0x00000020U)
  6712. #define GPIO_BRR_BR_6 (0x00000040U)
  6713. #define GPIO_BRR_BR_7 (0x00000080U)
  6714. #define GPIO_BRR_BR_8 (0x00000100U)
  6715. #define GPIO_BRR_BR_9 (0x00000200U)
  6716. #define GPIO_BRR_BR_10 (0x00000400U)
  6717. #define GPIO_BRR_BR_11 (0x00000800U)
  6718. #define GPIO_BRR_BR_12 (0x00001000U)
  6719. #define GPIO_BRR_BR_13 (0x00002000U)
  6720. #define GPIO_BRR_BR_14 (0x00004000U)
  6721. #define GPIO_BRR_BR_15 (0x00008000U)
  6722. /******************************************************************************/
  6723. /* */
  6724. /* Inter-integrated Circuit Interface (I2C) */
  6725. /* */
  6726. /******************************************************************************/
  6727. /******************* Bit definition for I2C_CR1 register *******************/
  6728. #define I2C_CR1_PE_Pos (0U)
  6729. #define I2C_CR1_PE_Msk (0x1U << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  6730. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  6731. #define I2C_CR1_TXIE_Pos (1U)
  6732. #define I2C_CR1_TXIE_Msk (0x1U << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  6733. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  6734. #define I2C_CR1_RXIE_Pos (2U)
  6735. #define I2C_CR1_RXIE_Msk (0x1U << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  6736. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  6737. #define I2C_CR1_ADDRIE_Pos (3U)
  6738. #define I2C_CR1_ADDRIE_Msk (0x1U << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  6739. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  6740. #define I2C_CR1_NACKIE_Pos (4U)
  6741. #define I2C_CR1_NACKIE_Msk (0x1U << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  6742. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  6743. #define I2C_CR1_STOPIE_Pos (5U)
  6744. #define I2C_CR1_STOPIE_Msk (0x1U << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  6745. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  6746. #define I2C_CR1_TCIE_Pos (6U)
  6747. #define I2C_CR1_TCIE_Msk (0x1U << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  6748. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  6749. #define I2C_CR1_ERRIE_Pos (7U)
  6750. #define I2C_CR1_ERRIE_Msk (0x1U << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  6751. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  6752. #define I2C_CR1_DNF_Pos (8U)
  6753. #define I2C_CR1_DNF_Msk (0xFU << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  6754. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  6755. #define I2C_CR1_ANFOFF_Pos (12U)
  6756. #define I2C_CR1_ANFOFF_Msk (0x1U << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  6757. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  6758. #define I2C_CR1_SWRST_Pos (13U)
  6759. #define I2C_CR1_SWRST_Msk (0x1U << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  6760. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  6761. #define I2C_CR1_TXDMAEN_Pos (14U)
  6762. #define I2C_CR1_TXDMAEN_Msk (0x1U << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  6763. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  6764. #define I2C_CR1_RXDMAEN_Pos (15U)
  6765. #define I2C_CR1_RXDMAEN_Msk (0x1U << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  6766. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  6767. #define I2C_CR1_SBC_Pos (16U)
  6768. #define I2C_CR1_SBC_Msk (0x1U << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  6769. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  6770. #define I2C_CR1_NOSTRETCH_Pos (17U)
  6771. #define I2C_CR1_NOSTRETCH_Msk (0x1U << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  6772. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  6773. #define I2C_CR1_WUPEN_Pos (18U)
  6774. #define I2C_CR1_WUPEN_Msk (0x1U << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  6775. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  6776. #define I2C_CR1_GCEN_Pos (19U)
  6777. #define I2C_CR1_GCEN_Msk (0x1U << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  6778. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  6779. #define I2C_CR1_SMBHEN_Pos (20U)
  6780. #define I2C_CR1_SMBHEN_Msk (0x1U << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  6781. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  6782. #define I2C_CR1_SMBDEN_Pos (21U)
  6783. #define I2C_CR1_SMBDEN_Msk (0x1U << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  6784. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  6785. #define I2C_CR1_ALERTEN_Pos (22U)
  6786. #define I2C_CR1_ALERTEN_Msk (0x1U << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  6787. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  6788. #define I2C_CR1_PECEN_Pos (23U)
  6789. #define I2C_CR1_PECEN_Msk (0x1U << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  6790. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  6791. /****************** Bit definition for I2C_CR2 register ********************/
  6792. #define I2C_CR2_SADD_Pos (0U)
  6793. #define I2C_CR2_SADD_Msk (0x3FFU << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  6794. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  6795. #define I2C_CR2_RD_WRN_Pos (10U)
  6796. #define I2C_CR2_RD_WRN_Msk (0x1U << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  6797. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  6798. #define I2C_CR2_ADD10_Pos (11U)
  6799. #define I2C_CR2_ADD10_Msk (0x1U << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  6800. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  6801. #define I2C_CR2_HEAD10R_Pos (12U)
  6802. #define I2C_CR2_HEAD10R_Msk (0x1U << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  6803. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  6804. #define I2C_CR2_START_Pos (13U)
  6805. #define I2C_CR2_START_Msk (0x1U << I2C_CR2_START_Pos) /*!< 0x00002000 */
  6806. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  6807. #define I2C_CR2_STOP_Pos (14U)
  6808. #define I2C_CR2_STOP_Msk (0x1U << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  6809. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  6810. #define I2C_CR2_NACK_Pos (15U)
  6811. #define I2C_CR2_NACK_Msk (0x1U << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  6812. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  6813. #define I2C_CR2_NBYTES_Pos (16U)
  6814. #define I2C_CR2_NBYTES_Msk (0xFFU << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  6815. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  6816. #define I2C_CR2_RELOAD_Pos (24U)
  6817. #define I2C_CR2_RELOAD_Msk (0x1U << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  6818. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  6819. #define I2C_CR2_AUTOEND_Pos (25U)
  6820. #define I2C_CR2_AUTOEND_Msk (0x1U << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  6821. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  6822. #define I2C_CR2_PECBYTE_Pos (26U)
  6823. #define I2C_CR2_PECBYTE_Msk (0x1U << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  6824. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  6825. /******************* Bit definition for I2C_OAR1 register ******************/
  6826. #define I2C_OAR1_OA1_Pos (0U)
  6827. #define I2C_OAR1_OA1_Msk (0x3FFU << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  6828. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  6829. #define I2C_OAR1_OA1MODE_Pos (10U)
  6830. #define I2C_OAR1_OA1MODE_Msk (0x1U << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  6831. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  6832. #define I2C_OAR1_OA1EN_Pos (15U)
  6833. #define I2C_OAR1_OA1EN_Msk (0x1U << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  6834. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  6835. /******************* Bit definition for I2C_OAR2 register ******************/
  6836. #define I2C_OAR2_OA2_Pos (1U)
  6837. #define I2C_OAR2_OA2_Msk (0x7FU << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  6838. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  6839. #define I2C_OAR2_OA2MSK_Pos (8U)
  6840. #define I2C_OAR2_OA2MSK_Msk (0x7U << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  6841. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  6842. #define I2C_OAR2_OA2NOMASK (0x00000000U) /*!< No mask */
  6843. #define I2C_OAR2_OA2MASK01_Pos (8U)
  6844. #define I2C_OAR2_OA2MASK01_Msk (0x1U << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */
  6845. #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */
  6846. #define I2C_OAR2_OA2MASK02_Pos (9U)
  6847. #define I2C_OAR2_OA2MASK02_Msk (0x1U << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */
  6848. #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
  6849. #define I2C_OAR2_OA2MASK03_Pos (8U)
  6850. #define I2C_OAR2_OA2MASK03_Msk (0x3U << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */
  6851. #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
  6852. #define I2C_OAR2_OA2MASK04_Pos (10U)
  6853. #define I2C_OAR2_OA2MASK04_Msk (0x1U << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */
  6854. #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
  6855. #define I2C_OAR2_OA2MASK05_Pos (8U)
  6856. #define I2C_OAR2_OA2MASK05_Msk (0x5U << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */
  6857. #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
  6858. #define I2C_OAR2_OA2MASK06_Pos (9U)
  6859. #define I2C_OAR2_OA2MASK06_Msk (0x3U << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */
  6860. #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */
  6861. #define I2C_OAR2_OA2MASK07_Pos (8U)
  6862. #define I2C_OAR2_OA2MASK07_Msk (0x7U << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */
  6863. #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */
  6864. #define I2C_OAR2_OA2EN_Pos (15U)
  6865. #define I2C_OAR2_OA2EN_Msk (0x1U << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  6866. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  6867. /******************* Bit definition for I2C_TIMINGR register ****************/
  6868. #define I2C_TIMINGR_SCLL_Pos (0U)
  6869. #define I2C_TIMINGR_SCLL_Msk (0xFFU << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  6870. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  6871. #define I2C_TIMINGR_SCLH_Pos (8U)
  6872. #define I2C_TIMINGR_SCLH_Msk (0xFFU << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  6873. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  6874. #define I2C_TIMINGR_SDADEL_Pos (16U)
  6875. #define I2C_TIMINGR_SDADEL_Msk (0xFU << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  6876. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  6877. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  6878. #define I2C_TIMINGR_SCLDEL_Msk (0xFU << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  6879. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  6880. #define I2C_TIMINGR_PRESC_Pos (28U)
  6881. #define I2C_TIMINGR_PRESC_Msk (0xFU << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  6882. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  6883. /******************* Bit definition for I2C_TIMEOUTR register ****************/
  6884. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  6885. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  6886. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  6887. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  6888. #define I2C_TIMEOUTR_TIDLE_Msk (0x1U << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  6889. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  6890. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  6891. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1U << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  6892. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  6893. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  6894. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  6895. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  6896. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  6897. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1U << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  6898. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  6899. /****************** Bit definition for I2C_ISR register ********************/
  6900. #define I2C_ISR_TXE_Pos (0U)
  6901. #define I2C_ISR_TXE_Msk (0x1U << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  6902. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  6903. #define I2C_ISR_TXIS_Pos (1U)
  6904. #define I2C_ISR_TXIS_Msk (0x1U << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  6905. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  6906. #define I2C_ISR_RXNE_Pos (2U)
  6907. #define I2C_ISR_RXNE_Msk (0x1U << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  6908. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  6909. #define I2C_ISR_ADDR_Pos (3U)
  6910. #define I2C_ISR_ADDR_Msk (0x1U << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  6911. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  6912. #define I2C_ISR_NACKF_Pos (4U)
  6913. #define I2C_ISR_NACKF_Msk (0x1U << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  6914. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  6915. #define I2C_ISR_STOPF_Pos (5U)
  6916. #define I2C_ISR_STOPF_Msk (0x1U << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  6917. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  6918. #define I2C_ISR_TC_Pos (6U)
  6919. #define I2C_ISR_TC_Msk (0x1U << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  6920. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  6921. #define I2C_ISR_TCR_Pos (7U)
  6922. #define I2C_ISR_TCR_Msk (0x1U << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  6923. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  6924. #define I2C_ISR_BERR_Pos (8U)
  6925. #define I2C_ISR_BERR_Msk (0x1U << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  6926. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  6927. #define I2C_ISR_ARLO_Pos (9U)
  6928. #define I2C_ISR_ARLO_Msk (0x1U << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  6929. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  6930. #define I2C_ISR_OVR_Pos (10U)
  6931. #define I2C_ISR_OVR_Msk (0x1U << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  6932. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  6933. #define I2C_ISR_PECERR_Pos (11U)
  6934. #define I2C_ISR_PECERR_Msk (0x1U << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  6935. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  6936. #define I2C_ISR_TIMEOUT_Pos (12U)
  6937. #define I2C_ISR_TIMEOUT_Msk (0x1U << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  6938. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  6939. #define I2C_ISR_ALERT_Pos (13U)
  6940. #define I2C_ISR_ALERT_Msk (0x1U << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  6941. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  6942. #define I2C_ISR_BUSY_Pos (15U)
  6943. #define I2C_ISR_BUSY_Msk (0x1U << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  6944. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  6945. #define I2C_ISR_DIR_Pos (16U)
  6946. #define I2C_ISR_DIR_Msk (0x1U << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  6947. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  6948. #define I2C_ISR_ADDCODE_Pos (17U)
  6949. #define I2C_ISR_ADDCODE_Msk (0x7FU << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  6950. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  6951. /****************** Bit definition for I2C_ICR register ********************/
  6952. #define I2C_ICR_ADDRCF_Pos (3U)
  6953. #define I2C_ICR_ADDRCF_Msk (0x1U << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  6954. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  6955. #define I2C_ICR_NACKCF_Pos (4U)
  6956. #define I2C_ICR_NACKCF_Msk (0x1U << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  6957. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  6958. #define I2C_ICR_STOPCF_Pos (5U)
  6959. #define I2C_ICR_STOPCF_Msk (0x1U << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  6960. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  6961. #define I2C_ICR_BERRCF_Pos (8U)
  6962. #define I2C_ICR_BERRCF_Msk (0x1U << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  6963. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  6964. #define I2C_ICR_ARLOCF_Pos (9U)
  6965. #define I2C_ICR_ARLOCF_Msk (0x1U << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  6966. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  6967. #define I2C_ICR_OVRCF_Pos (10U)
  6968. #define I2C_ICR_OVRCF_Msk (0x1U << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  6969. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  6970. #define I2C_ICR_PECCF_Pos (11U)
  6971. #define I2C_ICR_PECCF_Msk (0x1U << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  6972. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  6973. #define I2C_ICR_TIMOUTCF_Pos (12U)
  6974. #define I2C_ICR_TIMOUTCF_Msk (0x1U << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  6975. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  6976. #define I2C_ICR_ALERTCF_Pos (13U)
  6977. #define I2C_ICR_ALERTCF_Msk (0x1U << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  6978. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  6979. /****************** Bit definition for I2C_PECR register *******************/
  6980. #define I2C_PECR_PEC_Pos (0U)
  6981. #define I2C_PECR_PEC_Msk (0xFFU << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  6982. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  6983. /****************** Bit definition for I2C_RXDR register *********************/
  6984. #define I2C_RXDR_RXDATA_Pos (0U)
  6985. #define I2C_RXDR_RXDATA_Msk (0xFFU << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  6986. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  6987. /****************** Bit definition for I2C_TXDR register *******************/
  6988. #define I2C_TXDR_TXDATA_Pos (0U)
  6989. #define I2C_TXDR_TXDATA_Msk (0xFFU << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  6990. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  6991. /*****************************************************************************/
  6992. /* */
  6993. /* Independent WATCHDOG (IWDG) */
  6994. /* */
  6995. /*****************************************************************************/
  6996. /******************* Bit definition for IWDG_KR register *******************/
  6997. #define IWDG_KR_KEY_Pos (0U)
  6998. #define IWDG_KR_KEY_Msk (0xFFFFU << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */
  6999. #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!< Key value (write only, read 0000h) */
  7000. /******************* Bit definition for IWDG_PR register *******************/
  7001. #define IWDG_PR_PR_Pos (0U)
  7002. #define IWDG_PR_PR_Msk (0x7U << IWDG_PR_PR_Pos) /*!< 0x00000007 */
  7003. #define IWDG_PR_PR IWDG_PR_PR_Msk /*!< PR[2:0] (Prescaler divider) */
  7004. #define IWDG_PR_PR_0 (0x1U << IWDG_PR_PR_Pos) /*!< 0x01 */
  7005. #define IWDG_PR_PR_1 (0x2U << IWDG_PR_PR_Pos) /*!< 0x02 */
  7006. #define IWDG_PR_PR_2 (0x4U << IWDG_PR_PR_Pos) /*!< 0x04 */
  7007. /******************* Bit definition for IWDG_RLR register ******************/
  7008. #define IWDG_RLR_RL_Pos (0U)
  7009. #define IWDG_RLR_RL_Msk (0xFFFU << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */
  7010. #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!< Watchdog counter reload value */
  7011. /******************* Bit definition for IWDG_SR register *******************/
  7012. #define IWDG_SR_PVU_Pos (0U)
  7013. #define IWDG_SR_PVU_Msk (0x1U << IWDG_SR_PVU_Pos) /*!< 0x00000001 */
  7014. #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */
  7015. #define IWDG_SR_RVU_Pos (1U)
  7016. #define IWDG_SR_RVU_Msk (0x1U << IWDG_SR_RVU_Pos) /*!< 0x00000002 */
  7017. #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */
  7018. #define IWDG_SR_WVU_Pos (2U)
  7019. #define IWDG_SR_WVU_Msk (0x1U << IWDG_SR_WVU_Pos) /*!< 0x00000004 */
  7020. #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */
  7021. /******************* Bit definition for IWDG_KR register *******************/
  7022. #define IWDG_WINR_WIN_Pos (0U)
  7023. #define IWDG_WINR_WIN_Msk (0xFFFU << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */
  7024. #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */
  7025. /*****************************************************************************/
  7026. /* */
  7027. /* Power Control (PWR) */
  7028. /* */
  7029. /*****************************************************************************/
  7030. #define PWR_PVD_SUPPORT /*!< PWR feature available only on specific devices: Power Voltage Detection feature */
  7031. /******************** Bit definition for PWR_CR register *******************/
  7032. #define PWR_CR_LPDS_Pos (0U)
  7033. #define PWR_CR_LPDS_Msk (0x1U << PWR_CR_LPDS_Pos) /*!< 0x00000001 */
  7034. #define PWR_CR_LPDS PWR_CR_LPDS_Msk /*!< Low-power Deepsleep */
  7035. #define PWR_CR_PDDS_Pos (1U)
  7036. #define PWR_CR_PDDS_Msk (0x1U << PWR_CR_PDDS_Pos) /*!< 0x00000002 */
  7037. #define PWR_CR_PDDS PWR_CR_PDDS_Msk /*!< Power Down Deepsleep */
  7038. #define PWR_CR_CWUF_Pos (2U)
  7039. #define PWR_CR_CWUF_Msk (0x1U << PWR_CR_CWUF_Pos) /*!< 0x00000004 */
  7040. #define PWR_CR_CWUF PWR_CR_CWUF_Msk /*!< Clear Wakeup Flag */
  7041. #define PWR_CR_CSBF_Pos (3U)
  7042. #define PWR_CR_CSBF_Msk (0x1U << PWR_CR_CSBF_Pos) /*!< 0x00000008 */
  7043. #define PWR_CR_CSBF PWR_CR_CSBF_Msk /*!< Clear Standby Flag */
  7044. #define PWR_CR_PVDE_Pos (4U)
  7045. #define PWR_CR_PVDE_Msk (0x1U << PWR_CR_PVDE_Pos) /*!< 0x00000010 */
  7046. #define PWR_CR_PVDE PWR_CR_PVDE_Msk /*!< Power Voltage Detector Enable */
  7047. #define PWR_CR_PLS_Pos (5U)
  7048. #define PWR_CR_PLS_Msk (0x7U << PWR_CR_PLS_Pos) /*!< 0x000000E0 */
  7049. #define PWR_CR_PLS PWR_CR_PLS_Msk /*!< PLS[2:0] bits (PVD Level Selection) */
  7050. #define PWR_CR_PLS_0 (0x1U << PWR_CR_PLS_Pos) /*!< 0x00000020 */
  7051. #define PWR_CR_PLS_1 (0x2U << PWR_CR_PLS_Pos) /*!< 0x00000040 */
  7052. #define PWR_CR_PLS_2 (0x4U << PWR_CR_PLS_Pos) /*!< 0x00000080 */
  7053. /*!< PVD level configuration */
  7054. #define PWR_CR_PLS_LEV0 (0x00000000U) /*!< PVD level 0 */
  7055. #define PWR_CR_PLS_LEV1 (0x00000020U) /*!< PVD level 1 */
  7056. #define PWR_CR_PLS_LEV2 (0x00000040U) /*!< PVD level 2 */
  7057. #define PWR_CR_PLS_LEV3 (0x00000060U) /*!< PVD level 3 */
  7058. #define PWR_CR_PLS_LEV4 (0x00000080U) /*!< PVD level 4 */
  7059. #define PWR_CR_PLS_LEV5 (0x000000A0U) /*!< PVD level 5 */
  7060. #define PWR_CR_PLS_LEV6 (0x000000C0U) /*!< PVD level 6 */
  7061. #define PWR_CR_PLS_LEV7 (0x000000E0U) /*!< PVD level 7 */
  7062. #define PWR_CR_DBP_Pos (8U)
  7063. #define PWR_CR_DBP_Msk (0x1U << PWR_CR_DBP_Pos) /*!< 0x00000100 */
  7064. #define PWR_CR_DBP PWR_CR_DBP_Msk /*!< Disable Backup Domain write protection */
  7065. /******************* Bit definition for PWR_CSR register *******************/
  7066. #define PWR_CSR_WUF_Pos (0U)
  7067. #define PWR_CSR_WUF_Msk (0x1U << PWR_CSR_WUF_Pos) /*!< 0x00000001 */
  7068. #define PWR_CSR_WUF PWR_CSR_WUF_Msk /*!< Wakeup Flag */
  7069. #define PWR_CSR_SBF_Pos (1U)
  7070. #define PWR_CSR_SBF_Msk (0x1U << PWR_CSR_SBF_Pos) /*!< 0x00000002 */
  7071. #define PWR_CSR_SBF PWR_CSR_SBF_Msk /*!< Standby Flag */
  7072. #define PWR_CSR_PVDO_Pos (2U)
  7073. #define PWR_CSR_PVDO_Msk (0x1U << PWR_CSR_PVDO_Pos) /*!< 0x00000004 */
  7074. #define PWR_CSR_PVDO PWR_CSR_PVDO_Msk /*!< PVD Output */
  7075. #define PWR_CSR_VREFINTRDYF_Pos (3U)
  7076. #define PWR_CSR_VREFINTRDYF_Msk (0x1U << PWR_CSR_VREFINTRDYF_Pos) /*!< 0x00000008 */
  7077. #define PWR_CSR_VREFINTRDYF PWR_CSR_VREFINTRDYF_Msk /*!< Internal voltage reference (VREFINT) ready flag */
  7078. #define PWR_CSR_EWUP1_Pos (8U)
  7079. #define PWR_CSR_EWUP1_Msk (0x1U << PWR_CSR_EWUP1_Pos) /*!< 0x00000100 */
  7080. #define PWR_CSR_EWUP1 PWR_CSR_EWUP1_Msk /*!< Enable WKUP pin 1 */
  7081. #define PWR_CSR_EWUP2_Pos (9U)
  7082. #define PWR_CSR_EWUP2_Msk (0x1U << PWR_CSR_EWUP2_Pos) /*!< 0x00000200 */
  7083. #define PWR_CSR_EWUP2 PWR_CSR_EWUP2_Msk /*!< Enable WKUP pin 2 */
  7084. #define PWR_CSR_EWUP3_Pos (10U)
  7085. #define PWR_CSR_EWUP3_Msk (0x1U << PWR_CSR_EWUP3_Pos) /*!< 0x00000400 */
  7086. #define PWR_CSR_EWUP3 PWR_CSR_EWUP3_Msk /*!< Enable WKUP pin 3 */
  7087. #define PWR_CSR_EWUP4_Pos (11U)
  7088. #define PWR_CSR_EWUP4_Msk (0x1U << PWR_CSR_EWUP4_Pos) /*!< 0x00000800 */
  7089. #define PWR_CSR_EWUP4 PWR_CSR_EWUP4_Msk /*!< Enable WKUP pin 4 */
  7090. #define PWR_CSR_EWUP5_Pos (12U)
  7091. #define PWR_CSR_EWUP5_Msk (0x1U << PWR_CSR_EWUP5_Pos) /*!< 0x00001000 */
  7092. #define PWR_CSR_EWUP5 PWR_CSR_EWUP5_Msk /*!< Enable WKUP pin 5 */
  7093. #define PWR_CSR_EWUP6_Pos (13U)
  7094. #define PWR_CSR_EWUP6_Msk (0x1U << PWR_CSR_EWUP6_Pos) /*!< 0x00002000 */
  7095. #define PWR_CSR_EWUP6 PWR_CSR_EWUP6_Msk /*!< Enable WKUP pin 6 */
  7096. #define PWR_CSR_EWUP7_Pos (14U)
  7097. #define PWR_CSR_EWUP7_Msk (0x1U << PWR_CSR_EWUP7_Pos) /*!< 0x00004000 */
  7098. #define PWR_CSR_EWUP7 PWR_CSR_EWUP7_Msk /*!< Enable WKUP pin 7 */
  7099. #define PWR_CSR_EWUP8_Pos (15U)
  7100. #define PWR_CSR_EWUP8_Msk (0x1U << PWR_CSR_EWUP8_Pos) /*!< 0x00008000 */
  7101. #define PWR_CSR_EWUP8 PWR_CSR_EWUP8_Msk /*!< Enable WKUP pin 8 */
  7102. /*****************************************************************************/
  7103. /* */
  7104. /* Reset and Clock Control */
  7105. /* */
  7106. /*****************************************************************************/
  7107. /*
  7108. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  7109. */
  7110. #define RCC_HSI48_SUPPORT /*!< HSI48 feature support */
  7111. #define RCC_PLLSRC_PREDIV1_SUPPORT /*!< PREDIV support used as PLL source input */
  7112. /******************** Bit definition for RCC_CR register *******************/
  7113. #define RCC_CR_HSION_Pos (0U)
  7114. #define RCC_CR_HSION_Msk (0x1U << RCC_CR_HSION_Pos) /*!< 0x00000001 */
  7115. #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed clock enable */
  7116. #define RCC_CR_HSIRDY_Pos (1U)
  7117. #define RCC_CR_HSIRDY_Msk (0x1U << RCC_CR_HSIRDY_Pos) /*!< 0x00000002 */
  7118. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed clock ready flag */
  7119. #define RCC_CR_HSITRIM_Pos (3U)
  7120. #define RCC_CR_HSITRIM_Msk (0x1FU << RCC_CR_HSITRIM_Pos) /*!< 0x000000F8 */
  7121. #define RCC_CR_HSITRIM RCC_CR_HSITRIM_Msk /*!< Internal High Speed clock trimming */
  7122. #define RCC_CR_HSITRIM_0 (0x01U << RCC_CR_HSITRIM_Pos) /*!< 0x00000008 */
  7123. #define RCC_CR_HSITRIM_1 (0x02U << RCC_CR_HSITRIM_Pos) /*!< 0x00000010 */
  7124. #define RCC_CR_HSITRIM_2 (0x04U << RCC_CR_HSITRIM_Pos) /*!< 0x00000020 */
  7125. #define RCC_CR_HSITRIM_3 (0x08U << RCC_CR_HSITRIM_Pos) /*!< 0x00000040 */
  7126. #define RCC_CR_HSITRIM_4 (0x10U << RCC_CR_HSITRIM_Pos) /*!< 0x00000080 */
  7127. #define RCC_CR_HSICAL_Pos (8U)
  7128. #define RCC_CR_HSICAL_Msk (0xFFU << RCC_CR_HSICAL_Pos) /*!< 0x0000FF00 */
  7129. #define RCC_CR_HSICAL RCC_CR_HSICAL_Msk /*!< Internal High Speed clock Calibration */
  7130. #define RCC_CR_HSICAL_0 (0x01U << RCC_CR_HSICAL_Pos) /*!< 0x00000100 */
  7131. #define RCC_CR_HSICAL_1 (0x02U << RCC_CR_HSICAL_Pos) /*!< 0x00000200 */
  7132. #define RCC_CR_HSICAL_2 (0x04U << RCC_CR_HSICAL_Pos) /*!< 0x00000400 */
  7133. #define RCC_CR_HSICAL_3 (0x08U << RCC_CR_HSICAL_Pos) /*!< 0x00000800 */
  7134. #define RCC_CR_HSICAL_4 (0x10U << RCC_CR_HSICAL_Pos) /*!< 0x00001000 */
  7135. #define RCC_CR_HSICAL_5 (0x20U << RCC_CR_HSICAL_Pos) /*!< 0x00002000 */
  7136. #define RCC_CR_HSICAL_6 (0x40U << RCC_CR_HSICAL_Pos) /*!< 0x00004000 */
  7137. #define RCC_CR_HSICAL_7 (0x80U << RCC_CR_HSICAL_Pos) /*!< 0x00008000 */
  7138. #define RCC_CR_HSEON_Pos (16U)
  7139. #define RCC_CR_HSEON_Msk (0x1U << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  7140. #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed clock enable */
  7141. #define RCC_CR_HSERDY_Pos (17U)
  7142. #define RCC_CR_HSERDY_Msk (0x1U << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  7143. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed clock ready flag */
  7144. #define RCC_CR_HSEBYP_Pos (18U)
  7145. #define RCC_CR_HSEBYP_Msk (0x1U << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  7146. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed clock Bypass */
  7147. #define RCC_CR_CSSON_Pos (19U)
  7148. #define RCC_CR_CSSON_Msk (0x1U << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
  7149. #define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< Clock Security System enable */
  7150. #define RCC_CR_PLLON_Pos (24U)
  7151. #define RCC_CR_PLLON_Msk (0x1U << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  7152. #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< PLL enable */
  7153. #define RCC_CR_PLLRDY_Pos (25U)
  7154. #define RCC_CR_PLLRDY_Msk (0x1U << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  7155. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< PLL clock ready flag */
  7156. /******************** Bit definition for RCC_CFGR register *****************/
  7157. /*!< SW configuration */
  7158. #define RCC_CFGR_SW_Pos (0U)
  7159. #define RCC_CFGR_SW_Msk (0x3U << RCC_CFGR_SW_Pos) /*!< 0x00000003 */
  7160. #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */
  7161. #define RCC_CFGR_SW_0 (0x1U << RCC_CFGR_SW_Pos) /*!< 0x00000001 */
  7162. #define RCC_CFGR_SW_1 (0x2U << RCC_CFGR_SW_Pos) /*!< 0x00000002 */
  7163. #define RCC_CFGR_SW_HSI (0x00000000U) /*!< HSI selected as system clock */
  7164. #define RCC_CFGR_SW_HSE (0x00000001U) /*!< HSE selected as system clock */
  7165. #define RCC_CFGR_SW_PLL (0x00000002U) /*!< PLL selected as system clock */
  7166. #define RCC_CFGR_SW_HSI48 (0x00000003U) /*!< HSI48 selected as system clock */
  7167. /*!< SWS configuration */
  7168. #define RCC_CFGR_SWS_Pos (2U)
  7169. #define RCC_CFGR_SWS_Msk (0x3U << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */
  7170. #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */
  7171. #define RCC_CFGR_SWS_0 (0x1U << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */
  7172. #define RCC_CFGR_SWS_1 (0x2U << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */
  7173. #define RCC_CFGR_SWS_HSI (0x00000000U) /*!< HSI oscillator used as system clock */
  7174. #define RCC_CFGR_SWS_HSE (0x00000004U) /*!< HSE oscillator used as system clock */
  7175. #define RCC_CFGR_SWS_PLL (0x00000008U) /*!< PLL used as system clock */
  7176. #define RCC_CFGR_SWS_HSI48 (0x0000000CU) /*!< HSI48 oscillator used as system clock */
  7177. /*!< HPRE configuration */
  7178. #define RCC_CFGR_HPRE_Pos (4U)
  7179. #define RCC_CFGR_HPRE_Msk (0xFU << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */
  7180. #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */
  7181. #define RCC_CFGR_HPRE_0 (0x1U << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */
  7182. #define RCC_CFGR_HPRE_1 (0x2U << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */
  7183. #define RCC_CFGR_HPRE_2 (0x4U << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */
  7184. #define RCC_CFGR_HPRE_3 (0x8U << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */
  7185. #define RCC_CFGR_HPRE_DIV1 (0x00000000U) /*!< SYSCLK not divided */
  7186. #define RCC_CFGR_HPRE_DIV2 (0x00000080U) /*!< SYSCLK divided by 2 */
  7187. #define RCC_CFGR_HPRE_DIV4 (0x00000090U) /*!< SYSCLK divided by 4 */
  7188. #define RCC_CFGR_HPRE_DIV8 (0x000000A0U) /*!< SYSCLK divided by 8 */
  7189. #define RCC_CFGR_HPRE_DIV16 (0x000000B0U) /*!< SYSCLK divided by 16 */
  7190. #define RCC_CFGR_HPRE_DIV64 (0x000000C0U) /*!< SYSCLK divided by 64 */
  7191. #define RCC_CFGR_HPRE_DIV128 (0x000000D0U) /*!< SYSCLK divided by 128 */
  7192. #define RCC_CFGR_HPRE_DIV256 (0x000000E0U) /*!< SYSCLK divided by 256 */
  7193. #define RCC_CFGR_HPRE_DIV512 (0x000000F0U) /*!< SYSCLK divided by 512 */
  7194. /*!< PPRE configuration */
  7195. #define RCC_CFGR_PPRE_Pos (8U)
  7196. #define RCC_CFGR_PPRE_Msk (0x7U << RCC_CFGR_PPRE_Pos) /*!< 0x00000700 */
  7197. #define RCC_CFGR_PPRE RCC_CFGR_PPRE_Msk /*!< PRE[2:0] bits (APB prescaler) */
  7198. #define RCC_CFGR_PPRE_0 (0x1U << RCC_CFGR_PPRE_Pos) /*!< 0x00000100 */
  7199. #define RCC_CFGR_PPRE_1 (0x2U << RCC_CFGR_PPRE_Pos) /*!< 0x00000200 */
  7200. #define RCC_CFGR_PPRE_2 (0x4U << RCC_CFGR_PPRE_Pos) /*!< 0x00000400 */
  7201. #define RCC_CFGR_PPRE_DIV1 (0x00000000U) /*!< HCLK not divided */
  7202. #define RCC_CFGR_PPRE_DIV2_Pos (10U)
  7203. #define RCC_CFGR_PPRE_DIV2_Msk (0x1U << RCC_CFGR_PPRE_DIV2_Pos) /*!< 0x00000400 */
  7204. #define RCC_CFGR_PPRE_DIV2 RCC_CFGR_PPRE_DIV2_Msk /*!< HCLK divided by 2 */
  7205. #define RCC_CFGR_PPRE_DIV4_Pos (8U)
  7206. #define RCC_CFGR_PPRE_DIV4_Msk (0x5U << RCC_CFGR_PPRE_DIV4_Pos) /*!< 0x00000500 */
  7207. #define RCC_CFGR_PPRE_DIV4 RCC_CFGR_PPRE_DIV4_Msk /*!< HCLK divided by 4 */
  7208. #define RCC_CFGR_PPRE_DIV8_Pos (9U)
  7209. #define RCC_CFGR_PPRE_DIV8_Msk (0x3U << RCC_CFGR_PPRE_DIV8_Pos) /*!< 0x00000600 */
  7210. #define RCC_CFGR_PPRE_DIV8 RCC_CFGR_PPRE_DIV8_Msk /*!< HCLK divided by 8 */
  7211. #define RCC_CFGR_PPRE_DIV16_Pos (8U)
  7212. #define RCC_CFGR_PPRE_DIV16_Msk (0x7U << RCC_CFGR_PPRE_DIV16_Pos) /*!< 0x00000700 */
  7213. #define RCC_CFGR_PPRE_DIV16 RCC_CFGR_PPRE_DIV16_Msk /*!< HCLK divided by 16 */
  7214. /*!< ADCPPRE configuration */
  7215. #define RCC_CFGR_ADCPRE_Pos (14U)
  7216. #define RCC_CFGR_ADCPRE_Msk (0x1U << RCC_CFGR_ADCPRE_Pos) /*!< 0x00004000 */
  7217. #define RCC_CFGR_ADCPRE RCC_CFGR_ADCPRE_Msk /*!< ADCPRE bit (ADC prescaler) */
  7218. #define RCC_CFGR_ADCPRE_DIV2 (0x00000000U) /*!< PCLK divided by 2 */
  7219. #define RCC_CFGR_ADCPRE_DIV4 (0x00004000U) /*!< PCLK divided by 4 */
  7220. #define RCC_CFGR_PLLSRC_Pos (15U)
  7221. #define RCC_CFGR_PLLSRC_Msk (0x3U << RCC_CFGR_PLLSRC_Pos) /*!< 0x00018000 */
  7222. #define RCC_CFGR_PLLSRC RCC_CFGR_PLLSRC_Msk /*!< PLL entry clock source */
  7223. #define RCC_CFGR_PLLSRC_HSI_DIV2 (0x00000000U) /*!< HSI clock divided by 2 selected as PLL entry clock source */
  7224. #define RCC_CFGR_PLLSRC_HSI_PREDIV (0x00008000U) /*!< HSI/PREDIV clock selected as PLL entry clock source */
  7225. #define RCC_CFGR_PLLSRC_HSE_PREDIV (0x00010000U) /*!< HSE/PREDIV clock selected as PLL entry clock source */
  7226. #define RCC_CFGR_PLLSRC_HSI48_PREDIV (0x00018000U) /*!< HSI48/PREDIV clock selected as PLL entry clock source */
  7227. #define RCC_CFGR_PLLXTPRE_Pos (17U)
  7228. #define RCC_CFGR_PLLXTPRE_Msk (0x1U << RCC_CFGR_PLLXTPRE_Pos) /*!< 0x00020000 */
  7229. #define RCC_CFGR_PLLXTPRE RCC_CFGR_PLLXTPRE_Msk /*!< HSE divider for PLL entry */
  7230. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV1 (0x00000000U) /*!< HSE/PREDIV clock not divided for PLL entry */
  7231. #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV2 (0x00020000U) /*!< HSE/PREDIV clock divided by 2 for PLL entry */
  7232. /*!< PLLMUL configuration */
  7233. #define RCC_CFGR_PLLMUL_Pos (18U)
  7234. #define RCC_CFGR_PLLMUL_Msk (0xFU << RCC_CFGR_PLLMUL_Pos) /*!< 0x003C0000 */
  7235. #define RCC_CFGR_PLLMUL RCC_CFGR_PLLMUL_Msk /*!< PLLMUL[3:0] bits (PLL multiplication factor) */
  7236. #define RCC_CFGR_PLLMUL_0 (0x1U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00040000 */
  7237. #define RCC_CFGR_PLLMUL_1 (0x2U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00080000 */
  7238. #define RCC_CFGR_PLLMUL_2 (0x4U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00100000 */
  7239. #define RCC_CFGR_PLLMUL_3 (0x8U << RCC_CFGR_PLLMUL_Pos) /*!< 0x00200000 */
  7240. #define RCC_CFGR_PLLMUL2 (0x00000000U) /*!< PLL input clock*2 */
  7241. #define RCC_CFGR_PLLMUL3 (0x00040000U) /*!< PLL input clock*3 */
  7242. #define RCC_CFGR_PLLMUL4 (0x00080000U) /*!< PLL input clock*4 */
  7243. #define RCC_CFGR_PLLMUL5 (0x000C0000U) /*!< PLL input clock*5 */
  7244. #define RCC_CFGR_PLLMUL6 (0x00100000U) /*!< PLL input clock*6 */
  7245. #define RCC_CFGR_PLLMUL7 (0x00140000U) /*!< PLL input clock*7 */
  7246. #define RCC_CFGR_PLLMUL8 (0x00180000U) /*!< PLL input clock*8 */
  7247. #define RCC_CFGR_PLLMUL9 (0x001C0000U) /*!< PLL input clock*9 */
  7248. #define RCC_CFGR_PLLMUL10 (0x00200000U) /*!< PLL input clock10 */
  7249. #define RCC_CFGR_PLLMUL11 (0x00240000U) /*!< PLL input clock*11 */
  7250. #define RCC_CFGR_PLLMUL12 (0x00280000U) /*!< PLL input clock*12 */
  7251. #define RCC_CFGR_PLLMUL13 (0x002C0000U) /*!< PLL input clock*13 */
  7252. #define RCC_CFGR_PLLMUL14 (0x00300000U) /*!< PLL input clock*14 */
  7253. #define RCC_CFGR_PLLMUL15 (0x00340000U) /*!< PLL input clock*15 */
  7254. #define RCC_CFGR_PLLMUL16 (0x00380000U) /*!< PLL input clock*16 */
  7255. /*!< USB configuration */
  7256. #define RCC_CFGR_USBPRE_Pos (22U)
  7257. #define RCC_CFGR_USBPRE_Msk (0x1U << RCC_CFGR_USBPRE_Pos) /*!< 0x00400000 */
  7258. #define RCC_CFGR_USBPRE RCC_CFGR_USBPRE_Msk /*!< USB prescaler */
  7259. /*!< MCO configuration */
  7260. #define RCC_CFGR_MCO_Pos (24U)
  7261. #define RCC_CFGR_MCO_Msk (0xFU << RCC_CFGR_MCO_Pos) /*!< 0x0F000000 */
  7262. #define RCC_CFGR_MCO RCC_CFGR_MCO_Msk /*!< MCO[3:0] bits (Microcontroller Clock Output) */
  7263. #define RCC_CFGR_MCO_0 (0x1U << RCC_CFGR_MCO_Pos) /*!< 0x01000000 */
  7264. #define RCC_CFGR_MCO_1 (0x2U << RCC_CFGR_MCO_Pos) /*!< 0x02000000 */
  7265. #define RCC_CFGR_MCO_2 (0x4U << RCC_CFGR_MCO_Pos) /*!< 0x04000000 */
  7266. #define RCC_CFGR_MCO_3 (0x08000000U) /*!< Bit 3 */
  7267. #define RCC_CFGR_MCO_NOCLOCK (0x00000000U) /*!< No clock */
  7268. #define RCC_CFGR_MCO_HSI14 (0x01000000U) /*!< HSI14 clock selected as MCO source */
  7269. #define RCC_CFGR_MCO_LSI (0x02000000U) /*!< LSI clock selected as MCO source */
  7270. #define RCC_CFGR_MCO_LSE (0x03000000U) /*!< LSE clock selected as MCO source */
  7271. #define RCC_CFGR_MCO_SYSCLK (0x04000000U) /*!< System clock selected as MCO source */
  7272. #define RCC_CFGR_MCO_HSI (0x05000000U) /*!< HSI clock selected as MCO source */
  7273. #define RCC_CFGR_MCO_HSE (0x06000000U) /*!< HSE clock selected as MCO source */
  7274. #define RCC_CFGR_MCO_PLL (0x07000000U) /*!< PLL clock divided by 2 selected as MCO source */
  7275. #define RCC_CFGR_MCO_HSI48 (0x08000000U) /*!< HSI48 clock selected as MCO source */
  7276. #define RCC_CFGR_MCOPRE_Pos (28U)
  7277. #define RCC_CFGR_MCOPRE_Msk (0x7U << RCC_CFGR_MCOPRE_Pos) /*!< 0x70000000 */
  7278. #define RCC_CFGR_MCOPRE RCC_CFGR_MCOPRE_Msk /*!< MCO prescaler */
  7279. #define RCC_CFGR_MCOPRE_DIV1 (0x00000000U) /*!< MCO is divided by 1 */
  7280. #define RCC_CFGR_MCOPRE_DIV2 (0x10000000U) /*!< MCO is divided by 2 */
  7281. #define RCC_CFGR_MCOPRE_DIV4 (0x20000000U) /*!< MCO is divided by 4 */
  7282. #define RCC_CFGR_MCOPRE_DIV8 (0x30000000U) /*!< MCO is divided by 8 */
  7283. #define RCC_CFGR_MCOPRE_DIV16 (0x40000000U) /*!< MCO is divided by 16 */
  7284. #define RCC_CFGR_MCOPRE_DIV32 (0x50000000U) /*!< MCO is divided by 32 */
  7285. #define RCC_CFGR_MCOPRE_DIV64 (0x60000000U) /*!< MCO is divided by 64 */
  7286. #define RCC_CFGR_MCOPRE_DIV128 (0x70000000U) /*!< MCO is divided by 128 */
  7287. #define RCC_CFGR_PLLNODIV_Pos (31U)
  7288. #define RCC_CFGR_PLLNODIV_Msk (0x1U << RCC_CFGR_PLLNODIV_Pos) /*!< 0x80000000 */
  7289. #define RCC_CFGR_PLLNODIV RCC_CFGR_PLLNODIV_Msk /*!< PLL is not divided to MCO */
  7290. /* Reference defines */
  7291. #define RCC_CFGR_MCOSEL RCC_CFGR_MCO
  7292. #define RCC_CFGR_MCOSEL_0 RCC_CFGR_MCO_0
  7293. #define RCC_CFGR_MCOSEL_1 RCC_CFGR_MCO_1
  7294. #define RCC_CFGR_MCOSEL_2 RCC_CFGR_MCO_2
  7295. #define RCC_CFGR_MCOSEL_3 RCC_CFGR_MCO_3
  7296. #define RCC_CFGR_MCOSEL_NOCLOCK RCC_CFGR_MCO_NOCLOCK
  7297. #define RCC_CFGR_MCOSEL_HSI14 RCC_CFGR_MCO_HSI14
  7298. #define RCC_CFGR_MCOSEL_LSI RCC_CFGR_MCO_LSI
  7299. #define RCC_CFGR_MCOSEL_LSE RCC_CFGR_MCO_LSE
  7300. #define RCC_CFGR_MCOSEL_SYSCLK RCC_CFGR_MCO_SYSCLK
  7301. #define RCC_CFGR_MCOSEL_HSI RCC_CFGR_MCO_HSI
  7302. #define RCC_CFGR_MCOSEL_HSE RCC_CFGR_MCO_HSE
  7303. #define RCC_CFGR_MCOSEL_PLL_DIV2 RCC_CFGR_MCO_PLL
  7304. #define RCC_CFGR_MCOSEL_HSI48 RCC_CFGR_MCO_HSI48
  7305. /*!<****************** Bit definition for RCC_CIR register *****************/
  7306. #define RCC_CIR_LSIRDYF_Pos (0U)
  7307. #define RCC_CIR_LSIRDYF_Msk (0x1U << RCC_CIR_LSIRDYF_Pos) /*!< 0x00000001 */
  7308. #define RCC_CIR_LSIRDYF RCC_CIR_LSIRDYF_Msk /*!< LSI Ready Interrupt flag */
  7309. #define RCC_CIR_LSERDYF_Pos (1U)
  7310. #define RCC_CIR_LSERDYF_Msk (0x1U << RCC_CIR_LSERDYF_Pos) /*!< 0x00000002 */
  7311. #define RCC_CIR_LSERDYF RCC_CIR_LSERDYF_Msk /*!< LSE Ready Interrupt flag */
  7312. #define RCC_CIR_HSIRDYF_Pos (2U)
  7313. #define RCC_CIR_HSIRDYF_Msk (0x1U << RCC_CIR_HSIRDYF_Pos) /*!< 0x00000004 */
  7314. #define RCC_CIR_HSIRDYF RCC_CIR_HSIRDYF_Msk /*!< HSI Ready Interrupt flag */
  7315. #define RCC_CIR_HSERDYF_Pos (3U)
  7316. #define RCC_CIR_HSERDYF_Msk (0x1U << RCC_CIR_HSERDYF_Pos) /*!< 0x00000008 */
  7317. #define RCC_CIR_HSERDYF RCC_CIR_HSERDYF_Msk /*!< HSE Ready Interrupt flag */
  7318. #define RCC_CIR_PLLRDYF_Pos (4U)
  7319. #define RCC_CIR_PLLRDYF_Msk (0x1U << RCC_CIR_PLLRDYF_Pos) /*!< 0x00000010 */
  7320. #define RCC_CIR_PLLRDYF RCC_CIR_PLLRDYF_Msk /*!< PLL Ready Interrupt flag */
  7321. #define RCC_CIR_HSI14RDYF_Pos (5U)
  7322. #define RCC_CIR_HSI14RDYF_Msk (0x1U << RCC_CIR_HSI14RDYF_Pos) /*!< 0x00000020 */
  7323. #define RCC_CIR_HSI14RDYF RCC_CIR_HSI14RDYF_Msk /*!< HSI14 Ready Interrupt flag */
  7324. #define RCC_CIR_HSI48RDYF_Pos (6U)
  7325. #define RCC_CIR_HSI48RDYF_Msk (0x1U << RCC_CIR_HSI48RDYF_Pos) /*!< 0x00000040 */
  7326. #define RCC_CIR_HSI48RDYF RCC_CIR_HSI48RDYF_Msk /*!< HSI48 Ready Interrupt flag */
  7327. #define RCC_CIR_CSSF_Pos (7U)
  7328. #define RCC_CIR_CSSF_Msk (0x1U << RCC_CIR_CSSF_Pos) /*!< 0x00000080 */
  7329. #define RCC_CIR_CSSF RCC_CIR_CSSF_Msk /*!< Clock Security System Interrupt flag */
  7330. #define RCC_CIR_LSIRDYIE_Pos (8U)
  7331. #define RCC_CIR_LSIRDYIE_Msk (0x1U << RCC_CIR_LSIRDYIE_Pos) /*!< 0x00000100 */
  7332. #define RCC_CIR_LSIRDYIE RCC_CIR_LSIRDYIE_Msk /*!< LSI Ready Interrupt Enable */
  7333. #define RCC_CIR_LSERDYIE_Pos (9U)
  7334. #define RCC_CIR_LSERDYIE_Msk (0x1U << RCC_CIR_LSERDYIE_Pos) /*!< 0x00000200 */
  7335. #define RCC_CIR_LSERDYIE RCC_CIR_LSERDYIE_Msk /*!< LSE Ready Interrupt Enable */
  7336. #define RCC_CIR_HSIRDYIE_Pos (10U)
  7337. #define RCC_CIR_HSIRDYIE_Msk (0x1U << RCC_CIR_HSIRDYIE_Pos) /*!< 0x00000400 */
  7338. #define RCC_CIR_HSIRDYIE RCC_CIR_HSIRDYIE_Msk /*!< HSI Ready Interrupt Enable */
  7339. #define RCC_CIR_HSERDYIE_Pos (11U)
  7340. #define RCC_CIR_HSERDYIE_Msk (0x1U << RCC_CIR_HSERDYIE_Pos) /*!< 0x00000800 */
  7341. #define RCC_CIR_HSERDYIE RCC_CIR_HSERDYIE_Msk /*!< HSE Ready Interrupt Enable */
  7342. #define RCC_CIR_PLLRDYIE_Pos (12U)
  7343. #define RCC_CIR_PLLRDYIE_Msk (0x1U << RCC_CIR_PLLRDYIE_Pos) /*!< 0x00001000 */
  7344. #define RCC_CIR_PLLRDYIE RCC_CIR_PLLRDYIE_Msk /*!< PLL Ready Interrupt Enable */
  7345. #define RCC_CIR_HSI14RDYIE_Pos (13U)
  7346. #define RCC_CIR_HSI14RDYIE_Msk (0x1U << RCC_CIR_HSI14RDYIE_Pos) /*!< 0x00002000 */
  7347. #define RCC_CIR_HSI14RDYIE RCC_CIR_HSI14RDYIE_Msk /*!< HSI14 Ready Interrupt Enable */
  7348. #define RCC_CIR_HSI48RDYIE_Pos (14U)
  7349. #define RCC_CIR_HSI48RDYIE_Msk (0x1U << RCC_CIR_HSI48RDYIE_Pos) /*!< 0x00004000 */
  7350. #define RCC_CIR_HSI48RDYIE RCC_CIR_HSI48RDYIE_Msk /*!< HSI48 Ready Interrupt Enable */
  7351. #define RCC_CIR_LSIRDYC_Pos (16U)
  7352. #define RCC_CIR_LSIRDYC_Msk (0x1U << RCC_CIR_LSIRDYC_Pos) /*!< 0x00010000 */
  7353. #define RCC_CIR_LSIRDYC RCC_CIR_LSIRDYC_Msk /*!< LSI Ready Interrupt Clear */
  7354. #define RCC_CIR_LSERDYC_Pos (17U)
  7355. #define RCC_CIR_LSERDYC_Msk (0x1U << RCC_CIR_LSERDYC_Pos) /*!< 0x00020000 */
  7356. #define RCC_CIR_LSERDYC RCC_CIR_LSERDYC_Msk /*!< LSE Ready Interrupt Clear */
  7357. #define RCC_CIR_HSIRDYC_Pos (18U)
  7358. #define RCC_CIR_HSIRDYC_Msk (0x1U << RCC_CIR_HSIRDYC_Pos) /*!< 0x00040000 */
  7359. #define RCC_CIR_HSIRDYC RCC_CIR_HSIRDYC_Msk /*!< HSI Ready Interrupt Clear */
  7360. #define RCC_CIR_HSERDYC_Pos (19U)
  7361. #define RCC_CIR_HSERDYC_Msk (0x1U << RCC_CIR_HSERDYC_Pos) /*!< 0x00080000 */
  7362. #define RCC_CIR_HSERDYC RCC_CIR_HSERDYC_Msk /*!< HSE Ready Interrupt Clear */
  7363. #define RCC_CIR_PLLRDYC_Pos (20U)
  7364. #define RCC_CIR_PLLRDYC_Msk (0x1U << RCC_CIR_PLLRDYC_Pos) /*!< 0x00100000 */
  7365. #define RCC_CIR_PLLRDYC RCC_CIR_PLLRDYC_Msk /*!< PLL Ready Interrupt Clear */
  7366. #define RCC_CIR_HSI14RDYC_Pos (21U)
  7367. #define RCC_CIR_HSI14RDYC_Msk (0x1U << RCC_CIR_HSI14RDYC_Pos) /*!< 0x00200000 */
  7368. #define RCC_CIR_HSI14RDYC RCC_CIR_HSI14RDYC_Msk /*!< HSI14 Ready Interrupt Clear */
  7369. #define RCC_CIR_HSI48RDYC_Pos (22U)
  7370. #define RCC_CIR_HSI48RDYC_Msk (0x1U << RCC_CIR_HSI48RDYC_Pos) /*!< 0x00400000 */
  7371. #define RCC_CIR_HSI48RDYC RCC_CIR_HSI48RDYC_Msk /*!< HSI48 Ready Interrupt Clear */
  7372. #define RCC_CIR_CSSC_Pos (23U)
  7373. #define RCC_CIR_CSSC_Msk (0x1U << RCC_CIR_CSSC_Pos) /*!< 0x00800000 */
  7374. #define RCC_CIR_CSSC RCC_CIR_CSSC_Msk /*!< Clock Security System Interrupt Clear */
  7375. /***************** Bit definition for RCC_APB2RSTR register ****************/
  7376. #define RCC_APB2RSTR_SYSCFGRST_Pos (0U)
  7377. #define RCC_APB2RSTR_SYSCFGRST_Msk (0x1U << RCC_APB2RSTR_SYSCFGRST_Pos) /*!< 0x00000001 */
  7378. #define RCC_APB2RSTR_SYSCFGRST RCC_APB2RSTR_SYSCFGRST_Msk /*!< SYSCFG clock reset */
  7379. #define RCC_APB2RSTR_ADCRST_Pos (9U)
  7380. #define RCC_APB2RSTR_ADCRST_Msk (0x1U << RCC_APB2RSTR_ADCRST_Pos) /*!< 0x00000200 */
  7381. #define RCC_APB2RSTR_ADCRST RCC_APB2RSTR_ADCRST_Msk /*!< ADC clock reset */
  7382. #define RCC_APB2RSTR_TIM1RST_Pos (11U)
  7383. #define RCC_APB2RSTR_TIM1RST_Msk (0x1U << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000800 */
  7384. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk /*!< TIM1 clock reset */
  7385. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  7386. #define RCC_APB2RSTR_SPI1RST_Msk (0x1U << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */
  7387. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk /*!< SPI1 clock reset */
  7388. #define RCC_APB2RSTR_USART1RST_Pos (14U)
  7389. #define RCC_APB2RSTR_USART1RST_Msk (0x1U << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00004000 */
  7390. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk /*!< USART1 clock reset */
  7391. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  7392. #define RCC_APB2RSTR_TIM15RST_Msk (0x1U << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */
  7393. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk /*!< TIM15 clock reset */
  7394. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  7395. #define RCC_APB2RSTR_TIM16RST_Msk (0x1U << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */
  7396. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk /*!< TIM16 clock reset */
  7397. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  7398. #define RCC_APB2RSTR_TIM17RST_Msk (0x1U << RCC_APB2RSTR_TIM17RST_Pos) /*!< 0x00040000 */
  7399. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk /*!< TIM17 clock reset */
  7400. #define RCC_APB2RSTR_DBGMCURST_Pos (22U)
  7401. #define RCC_APB2RSTR_DBGMCURST_Msk (0x1U << RCC_APB2RSTR_DBGMCURST_Pos) /*!< 0x00400000 */
  7402. #define RCC_APB2RSTR_DBGMCURST RCC_APB2RSTR_DBGMCURST_Msk /*!< DBGMCU clock reset */
  7403. /*!< Old ADC1 clock reset bit definition maintained for legacy purpose */
  7404. #define RCC_APB2RSTR_ADC1RST RCC_APB2RSTR_ADCRST
  7405. /***************** Bit definition for RCC_APB1RSTR register ****************/
  7406. #define RCC_APB1RSTR_TIM2RST_Pos (0U)
  7407. #define RCC_APB1RSTR_TIM2RST_Msk (0x1U << RCC_APB1RSTR_TIM2RST_Pos) /*!< 0x00000001 */
  7408. #define RCC_APB1RSTR_TIM2RST RCC_APB1RSTR_TIM2RST_Msk /*!< Timer 2 clock reset */
  7409. #define RCC_APB1RSTR_TIM3RST_Pos (1U)
  7410. #define RCC_APB1RSTR_TIM3RST_Msk (0x1U << RCC_APB1RSTR_TIM3RST_Pos) /*!< 0x00000002 */
  7411. #define RCC_APB1RSTR_TIM3RST RCC_APB1RSTR_TIM3RST_Msk /*!< Timer 3 clock reset */
  7412. #define RCC_APB1RSTR_TIM6RST_Pos (4U)
  7413. #define RCC_APB1RSTR_TIM6RST_Msk (0x1U << RCC_APB1RSTR_TIM6RST_Pos) /*!< 0x00000010 */
  7414. #define RCC_APB1RSTR_TIM6RST RCC_APB1RSTR_TIM6RST_Msk /*!< Timer 6 clock reset */
  7415. #define RCC_APB1RSTR_TIM7RST_Pos (5U)
  7416. #define RCC_APB1RSTR_TIM7RST_Msk (0x1U << RCC_APB1RSTR_TIM7RST_Pos) /*!< 0x00000020 */
  7417. #define RCC_APB1RSTR_TIM7RST RCC_APB1RSTR_TIM7RST_Msk /*!< Timer 7 clock reset */
  7418. #define RCC_APB1RSTR_TIM14RST_Pos (8U)
  7419. #define RCC_APB1RSTR_TIM14RST_Msk (0x1U << RCC_APB1RSTR_TIM14RST_Pos) /*!< 0x00000100 */
  7420. #define RCC_APB1RSTR_TIM14RST RCC_APB1RSTR_TIM14RST_Msk /*!< Timer 14 clock reset */
  7421. #define RCC_APB1RSTR_WWDGRST_Pos (11U)
  7422. #define RCC_APB1RSTR_WWDGRST_Msk (0x1U << RCC_APB1RSTR_WWDGRST_Pos) /*!< 0x00000800 */
  7423. #define RCC_APB1RSTR_WWDGRST RCC_APB1RSTR_WWDGRST_Msk /*!< Window Watchdog clock reset */
  7424. #define RCC_APB1RSTR_SPI2RST_Pos (14U)
  7425. #define RCC_APB1RSTR_SPI2RST_Msk (0x1U << RCC_APB1RSTR_SPI2RST_Pos) /*!< 0x00004000 */
  7426. #define RCC_APB1RSTR_SPI2RST RCC_APB1RSTR_SPI2RST_Msk /*!< SPI2 clock reset */
  7427. #define RCC_APB1RSTR_USART2RST_Pos (17U)
  7428. #define RCC_APB1RSTR_USART2RST_Msk (0x1U << RCC_APB1RSTR_USART2RST_Pos) /*!< 0x00020000 */
  7429. #define RCC_APB1RSTR_USART2RST RCC_APB1RSTR_USART2RST_Msk /*!< USART 2 clock reset */
  7430. #define RCC_APB1RSTR_USART3RST_Pos (18U)
  7431. #define RCC_APB1RSTR_USART3RST_Msk (0x1U << RCC_APB1RSTR_USART3RST_Pos) /*!< 0x00040000 */
  7432. #define RCC_APB1RSTR_USART3RST RCC_APB1RSTR_USART3RST_Msk /*!< USART 3 clock reset */
  7433. #define RCC_APB1RSTR_USART4RST_Pos (19U)
  7434. #define RCC_APB1RSTR_USART4RST_Msk (0x1U << RCC_APB1RSTR_USART4RST_Pos) /*!< 0x00080000 */
  7435. #define RCC_APB1RSTR_USART4RST RCC_APB1RSTR_USART4RST_Msk /*!< USART 4 clock reset */
  7436. #define RCC_APB1RSTR_I2C1RST_Pos (21U)
  7437. #define RCC_APB1RSTR_I2C1RST_Msk (0x1U << RCC_APB1RSTR_I2C1RST_Pos) /*!< 0x00200000 */
  7438. #define RCC_APB1RSTR_I2C1RST RCC_APB1RSTR_I2C1RST_Msk /*!< I2C 1 clock reset */
  7439. #define RCC_APB1RSTR_I2C2RST_Pos (22U)
  7440. #define RCC_APB1RSTR_I2C2RST_Msk (0x1U << RCC_APB1RSTR_I2C2RST_Pos) /*!< 0x00400000 */
  7441. #define RCC_APB1RSTR_I2C2RST RCC_APB1RSTR_I2C2RST_Msk /*!< I2C 2 clock reset */
  7442. #define RCC_APB1RSTR_USBRST_Pos (23U)
  7443. #define RCC_APB1RSTR_USBRST_Msk (0x1U << RCC_APB1RSTR_USBRST_Pos) /*!< 0x00800000 */
  7444. #define RCC_APB1RSTR_USBRST RCC_APB1RSTR_USBRST_Msk /*!< USB clock reset */
  7445. #define RCC_APB1RSTR_CANRST_Pos (25U)
  7446. #define RCC_APB1RSTR_CANRST_Msk (0x1U << RCC_APB1RSTR_CANRST_Pos) /*!< 0x02000000 */
  7447. #define RCC_APB1RSTR_CANRST RCC_APB1RSTR_CANRST_Msk /*!< CAN clock reset */
  7448. #define RCC_APB1RSTR_CRSRST_Pos (27U)
  7449. #define RCC_APB1RSTR_CRSRST_Msk (0x1U << RCC_APB1RSTR_CRSRST_Pos) /*!< 0x08000000 */
  7450. #define RCC_APB1RSTR_CRSRST RCC_APB1RSTR_CRSRST_Msk /*!< CRS clock reset */
  7451. #define RCC_APB1RSTR_PWRRST_Pos (28U)
  7452. #define RCC_APB1RSTR_PWRRST_Msk (0x1U << RCC_APB1RSTR_PWRRST_Pos) /*!< 0x10000000 */
  7453. #define RCC_APB1RSTR_PWRRST RCC_APB1RSTR_PWRRST_Msk /*!< PWR clock reset */
  7454. #define RCC_APB1RSTR_DACRST_Pos (29U)
  7455. #define RCC_APB1RSTR_DACRST_Msk (0x1U << RCC_APB1RSTR_DACRST_Pos) /*!< 0x20000000 */
  7456. #define RCC_APB1RSTR_DACRST RCC_APB1RSTR_DACRST_Msk /*!< DAC clock reset */
  7457. #define RCC_APB1RSTR_CECRST_Pos (30U)
  7458. #define RCC_APB1RSTR_CECRST_Msk (0x1U << RCC_APB1RSTR_CECRST_Pos) /*!< 0x40000000 */
  7459. #define RCC_APB1RSTR_CECRST RCC_APB1RSTR_CECRST_Msk /*!< CEC clock reset */
  7460. /****************** Bit definition for RCC_AHBENR register *****************/
  7461. #define RCC_AHBENR_DMAEN_Pos (0U)
  7462. #define RCC_AHBENR_DMAEN_Msk (0x1U << RCC_AHBENR_DMAEN_Pos) /*!< 0x00000001 */
  7463. #define RCC_AHBENR_DMAEN RCC_AHBENR_DMAEN_Msk /*!< DMA1 clock enable */
  7464. #define RCC_AHBENR_SRAMEN_Pos (2U)
  7465. #define RCC_AHBENR_SRAMEN_Msk (0x1U << RCC_AHBENR_SRAMEN_Pos) /*!< 0x00000004 */
  7466. #define RCC_AHBENR_SRAMEN RCC_AHBENR_SRAMEN_Msk /*!< SRAM interface clock enable */
  7467. #define RCC_AHBENR_FLITFEN_Pos (4U)
  7468. #define RCC_AHBENR_FLITFEN_Msk (0x1U << RCC_AHBENR_FLITFEN_Pos) /*!< 0x00000010 */
  7469. #define RCC_AHBENR_FLITFEN RCC_AHBENR_FLITFEN_Msk /*!< FLITF clock enable */
  7470. #define RCC_AHBENR_CRCEN_Pos (6U)
  7471. #define RCC_AHBENR_CRCEN_Msk (0x1U << RCC_AHBENR_CRCEN_Pos) /*!< 0x00000040 */
  7472. #define RCC_AHBENR_CRCEN RCC_AHBENR_CRCEN_Msk /*!< CRC clock enable */
  7473. #define RCC_AHBENR_GPIOAEN_Pos (17U)
  7474. #define RCC_AHBENR_GPIOAEN_Msk (0x1U << RCC_AHBENR_GPIOAEN_Pos) /*!< 0x00020000 */
  7475. #define RCC_AHBENR_GPIOAEN RCC_AHBENR_GPIOAEN_Msk /*!< GPIOA clock enable */
  7476. #define RCC_AHBENR_GPIOBEN_Pos (18U)
  7477. #define RCC_AHBENR_GPIOBEN_Msk (0x1U << RCC_AHBENR_GPIOBEN_Pos) /*!< 0x00040000 */
  7478. #define RCC_AHBENR_GPIOBEN RCC_AHBENR_GPIOBEN_Msk /*!< GPIOB clock enable */
  7479. #define RCC_AHBENR_GPIOCEN_Pos (19U)
  7480. #define RCC_AHBENR_GPIOCEN_Msk (0x1U << RCC_AHBENR_GPIOCEN_Pos) /*!< 0x00080000 */
  7481. #define RCC_AHBENR_GPIOCEN RCC_AHBENR_GPIOCEN_Msk /*!< GPIOC clock enable */
  7482. #define RCC_AHBENR_GPIODEN_Pos (20U)
  7483. #define RCC_AHBENR_GPIODEN_Msk (0x1U << RCC_AHBENR_GPIODEN_Pos) /*!< 0x00100000 */
  7484. #define RCC_AHBENR_GPIODEN RCC_AHBENR_GPIODEN_Msk /*!< GPIOD clock enable */
  7485. #define RCC_AHBENR_GPIOEEN_Pos (21U)
  7486. #define RCC_AHBENR_GPIOEEN_Msk (0x1U << RCC_AHBENR_GPIOEEN_Pos) /*!< 0x00200000 */
  7487. #define RCC_AHBENR_GPIOEEN RCC_AHBENR_GPIOEEN_Msk /*!< GPIOE clock enable */
  7488. #define RCC_AHBENR_GPIOFEN_Pos (22U)
  7489. #define RCC_AHBENR_GPIOFEN_Msk (0x1U << RCC_AHBENR_GPIOFEN_Pos) /*!< 0x00400000 */
  7490. #define RCC_AHBENR_GPIOFEN RCC_AHBENR_GPIOFEN_Msk /*!< GPIOF clock enable */
  7491. #define RCC_AHBENR_TSCEN_Pos (24U)
  7492. #define RCC_AHBENR_TSCEN_Msk (0x1U << RCC_AHBENR_TSCEN_Pos) /*!< 0x01000000 */
  7493. #define RCC_AHBENR_TSCEN RCC_AHBENR_TSCEN_Msk /*!< TS controller clock enable */
  7494. /* Old Bit definition maintained for legacy purpose */
  7495. #define RCC_AHBENR_DMA1EN RCC_AHBENR_DMAEN /*!< DMA1 clock enable */
  7496. #define RCC_AHBENR_TSEN RCC_AHBENR_TSCEN /*!< TS clock enable */
  7497. /***************** Bit definition for RCC_APB2ENR register *****************/
  7498. #define RCC_APB2ENR_SYSCFGCOMPEN_Pos (0U)
  7499. #define RCC_APB2ENR_SYSCFGCOMPEN_Msk (0x1U << RCC_APB2ENR_SYSCFGCOMPEN_Pos) /*!< 0x00000001 */
  7500. #define RCC_APB2ENR_SYSCFGCOMPEN RCC_APB2ENR_SYSCFGCOMPEN_Msk /*!< SYSCFG and comparator clock enable */
  7501. #define RCC_APB2ENR_ADCEN_Pos (9U)
  7502. #define RCC_APB2ENR_ADCEN_Msk (0x1U << RCC_APB2ENR_ADCEN_Pos) /*!< 0x00000200 */
  7503. #define RCC_APB2ENR_ADCEN RCC_APB2ENR_ADCEN_Msk /*!< ADC1 clock enable */
  7504. #define RCC_APB2ENR_TIM1EN_Pos (11U)
  7505. #define RCC_APB2ENR_TIM1EN_Msk (0x1U << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */
  7506. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk /*!< TIM1 clock enable */
  7507. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  7508. #define RCC_APB2ENR_SPI1EN_Msk (0x1U << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  7509. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk /*!< SPI1 clock enable */
  7510. #define RCC_APB2ENR_USART1EN_Pos (14U)
  7511. #define RCC_APB2ENR_USART1EN_Msk (0x1U << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00004000 */
  7512. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk /*!< USART1 clock enable */
  7513. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  7514. #define RCC_APB2ENR_TIM15EN_Msk (0x1U << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */
  7515. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk /*!< TIM15 clock enable */
  7516. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  7517. #define RCC_APB2ENR_TIM16EN_Msk (0x1U << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
  7518. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk /*!< TIM16 clock enable */
  7519. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  7520. #define RCC_APB2ENR_TIM17EN_Msk (0x1U << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
  7521. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk /*!< TIM17 clock enable */
  7522. #define RCC_APB2ENR_DBGMCUEN_Pos (22U)
  7523. #define RCC_APB2ENR_DBGMCUEN_Msk (0x1U << RCC_APB2ENR_DBGMCUEN_Pos) /*!< 0x00400000 */
  7524. #define RCC_APB2ENR_DBGMCUEN RCC_APB2ENR_DBGMCUEN_Msk /*!< DBGMCU clock enable */
  7525. /* Old Bit definition maintained for legacy purpose */
  7526. #define RCC_APB2ENR_SYSCFGEN RCC_APB2ENR_SYSCFGCOMPEN /*!< SYSCFG clock enable */
  7527. #define RCC_APB2ENR_ADC1EN RCC_APB2ENR_ADCEN /*!< ADC1 clock enable */
  7528. /***************** Bit definition for RCC_APB1ENR register *****************/
  7529. #define RCC_APB1ENR_TIM2EN_Pos (0U)
  7530. #define RCC_APB1ENR_TIM2EN_Msk (0x1U << RCC_APB1ENR_TIM2EN_Pos) /*!< 0x00000001 */
  7531. #define RCC_APB1ENR_TIM2EN RCC_APB1ENR_TIM2EN_Msk /*!< Timer 2 clock enable */
  7532. #define RCC_APB1ENR_TIM3EN_Pos (1U)
  7533. #define RCC_APB1ENR_TIM3EN_Msk (0x1U << RCC_APB1ENR_TIM3EN_Pos) /*!< 0x00000002 */
  7534. #define RCC_APB1ENR_TIM3EN RCC_APB1ENR_TIM3EN_Msk /*!< Timer 3 clock enable */
  7535. #define RCC_APB1ENR_TIM6EN_Pos (4U)
  7536. #define RCC_APB1ENR_TIM6EN_Msk (0x1U << RCC_APB1ENR_TIM6EN_Pos) /*!< 0x00000010 */
  7537. #define RCC_APB1ENR_TIM6EN RCC_APB1ENR_TIM6EN_Msk /*!< Timer 6 clock enable */
  7538. #define RCC_APB1ENR_TIM7EN_Pos (5U)
  7539. #define RCC_APB1ENR_TIM7EN_Msk (0x1U << RCC_APB1ENR_TIM7EN_Pos) /*!< 0x00000020 */
  7540. #define RCC_APB1ENR_TIM7EN RCC_APB1ENR_TIM7EN_Msk /*!< Timer 7 clock enable */
  7541. #define RCC_APB1ENR_TIM14EN_Pos (8U)
  7542. #define RCC_APB1ENR_TIM14EN_Msk (0x1U << RCC_APB1ENR_TIM14EN_Pos) /*!< 0x00000100 */
  7543. #define RCC_APB1ENR_TIM14EN RCC_APB1ENR_TIM14EN_Msk /*!< Timer 14 clock enable */
  7544. #define RCC_APB1ENR_WWDGEN_Pos (11U)
  7545. #define RCC_APB1ENR_WWDGEN_Msk (0x1U << RCC_APB1ENR_WWDGEN_Pos) /*!< 0x00000800 */
  7546. #define RCC_APB1ENR_WWDGEN RCC_APB1ENR_WWDGEN_Msk /*!< Window Watchdog clock enable */
  7547. #define RCC_APB1ENR_SPI2EN_Pos (14U)
  7548. #define RCC_APB1ENR_SPI2EN_Msk (0x1U << RCC_APB1ENR_SPI2EN_Pos) /*!< 0x00004000 */
  7549. #define RCC_APB1ENR_SPI2EN RCC_APB1ENR_SPI2EN_Msk /*!< SPI2 clock enable */
  7550. #define RCC_APB1ENR_USART2EN_Pos (17U)
  7551. #define RCC_APB1ENR_USART2EN_Msk (0x1U << RCC_APB1ENR_USART2EN_Pos) /*!< 0x00020000 */
  7552. #define RCC_APB1ENR_USART2EN RCC_APB1ENR_USART2EN_Msk /*!< USART2 clock enable */
  7553. #define RCC_APB1ENR_USART3EN_Pos (18U)
  7554. #define RCC_APB1ENR_USART3EN_Msk (0x1U << RCC_APB1ENR_USART3EN_Pos) /*!< 0x00040000 */
  7555. #define RCC_APB1ENR_USART3EN RCC_APB1ENR_USART3EN_Msk /*!< USART3 clock enable */
  7556. #define RCC_APB1ENR_USART4EN_Pos (19U)
  7557. #define RCC_APB1ENR_USART4EN_Msk (0x1U << RCC_APB1ENR_USART4EN_Pos) /*!< 0x00080000 */
  7558. #define RCC_APB1ENR_USART4EN RCC_APB1ENR_USART4EN_Msk /*!< USART4 clock enable */
  7559. #define RCC_APB1ENR_I2C1EN_Pos (21U)
  7560. #define RCC_APB1ENR_I2C1EN_Msk (0x1U << RCC_APB1ENR_I2C1EN_Pos) /*!< 0x00200000 */
  7561. #define RCC_APB1ENR_I2C1EN RCC_APB1ENR_I2C1EN_Msk /*!< I2C1 clock enable */
  7562. #define RCC_APB1ENR_I2C2EN_Pos (22U)
  7563. #define RCC_APB1ENR_I2C2EN_Msk (0x1U << RCC_APB1ENR_I2C2EN_Pos) /*!< 0x00400000 */
  7564. #define RCC_APB1ENR_I2C2EN RCC_APB1ENR_I2C2EN_Msk /*!< I2C2 clock enable */
  7565. #define RCC_APB1ENR_USBEN_Pos (23U)
  7566. #define RCC_APB1ENR_USBEN_Msk (0x1U << RCC_APB1ENR_USBEN_Pos) /*!< 0x00800000 */
  7567. #define RCC_APB1ENR_USBEN RCC_APB1ENR_USBEN_Msk /*!< USB clock enable */
  7568. #define RCC_APB1ENR_CANEN_Pos (25U)
  7569. #define RCC_APB1ENR_CANEN_Msk (0x1U << RCC_APB1ENR_CANEN_Pos) /*!< 0x02000000 */
  7570. #define RCC_APB1ENR_CANEN RCC_APB1ENR_CANEN_Msk /*!< CAN clock enable */
  7571. #define RCC_APB1ENR_CRSEN_Pos (27U)
  7572. #define RCC_APB1ENR_CRSEN_Msk (0x1U << RCC_APB1ENR_CRSEN_Pos) /*!< 0x08000000 */
  7573. #define RCC_APB1ENR_CRSEN RCC_APB1ENR_CRSEN_Msk /*!< CRS clock enable */
  7574. #define RCC_APB1ENR_PWREN_Pos (28U)
  7575. #define RCC_APB1ENR_PWREN_Msk (0x1U << RCC_APB1ENR_PWREN_Pos) /*!< 0x10000000 */
  7576. #define RCC_APB1ENR_PWREN RCC_APB1ENR_PWREN_Msk /*!< PWR clock enable */
  7577. #define RCC_APB1ENR_DACEN_Pos (29U)
  7578. #define RCC_APB1ENR_DACEN_Msk (0x1U << RCC_APB1ENR_DACEN_Pos) /*!< 0x20000000 */
  7579. #define RCC_APB1ENR_DACEN RCC_APB1ENR_DACEN_Msk /*!< DAC clock enable */
  7580. #define RCC_APB1ENR_CECEN_Pos (30U)
  7581. #define RCC_APB1ENR_CECEN_Msk (0x1U << RCC_APB1ENR_CECEN_Pos) /*!< 0x40000000 */
  7582. #define RCC_APB1ENR_CECEN RCC_APB1ENR_CECEN_Msk /*!< CEC clock enable */
  7583. /******************* Bit definition for RCC_BDCR register ******************/
  7584. #define RCC_BDCR_LSEON_Pos (0U)
  7585. #define RCC_BDCR_LSEON_Msk (0x1U << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  7586. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk /*!< External Low Speed oscillator enable */
  7587. #define RCC_BDCR_LSERDY_Pos (1U)
  7588. #define RCC_BDCR_LSERDY_Msk (0x1U << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  7589. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk /*!< External Low Speed oscillator Ready */
  7590. #define RCC_BDCR_LSEBYP_Pos (2U)
  7591. #define RCC_BDCR_LSEBYP_Msk (0x1U << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  7592. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk /*!< External Low Speed oscillator Bypass */
  7593. #define RCC_BDCR_LSEDRV_Pos (3U)
  7594. #define RCC_BDCR_LSEDRV_Msk (0x3U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  7595. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk /*!< LSEDRV[1:0] bits (LSE Osc. drive capability) */
  7596. #define RCC_BDCR_LSEDRV_0 (0x1U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  7597. #define RCC_BDCR_LSEDRV_1 (0x2U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  7598. #define RCC_BDCR_RTCSEL_Pos (8U)
  7599. #define RCC_BDCR_RTCSEL_Msk (0x3U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  7600. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk /*!< RTCSEL[1:0] bits (RTC clock source selection) */
  7601. #define RCC_BDCR_RTCSEL_0 (0x1U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  7602. #define RCC_BDCR_RTCSEL_1 (0x2U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  7603. /*!< RTC configuration */
  7604. #define RCC_BDCR_RTCSEL_NOCLOCK (0x00000000U) /*!< No clock */
  7605. #define RCC_BDCR_RTCSEL_LSE (0x00000100U) /*!< LSE oscillator clock used as RTC clock */
  7606. #define RCC_BDCR_RTCSEL_LSI (0x00000200U) /*!< LSI oscillator clock used as RTC clock */
  7607. #define RCC_BDCR_RTCSEL_HSE (0x00000300U) /*!< HSE oscillator clock divided by 128 used as RTC clock */
  7608. #define RCC_BDCR_RTCEN_Pos (15U)
  7609. #define RCC_BDCR_RTCEN_Msk (0x1U << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  7610. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk /*!< RTC clock enable */
  7611. #define RCC_BDCR_BDRST_Pos (16U)
  7612. #define RCC_BDCR_BDRST_Msk (0x1U << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  7613. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk /*!< Backup domain software reset */
  7614. /******************* Bit definition for RCC_CSR register *******************/
  7615. #define RCC_CSR_LSION_Pos (0U)
  7616. #define RCC_CSR_LSION_Msk (0x1U << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  7617. #define RCC_CSR_LSION RCC_CSR_LSION_Msk /*!< Internal Low Speed oscillator enable */
  7618. #define RCC_CSR_LSIRDY_Pos (1U)
  7619. #define RCC_CSR_LSIRDY_Msk (0x1U << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  7620. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk /*!< Internal Low Speed oscillator Ready */
  7621. #define RCC_CSR_V18PWRRSTF_Pos (23U)
  7622. #define RCC_CSR_V18PWRRSTF_Msk (0x1U << RCC_CSR_V18PWRRSTF_Pos) /*!< 0x00800000 */
  7623. #define RCC_CSR_V18PWRRSTF RCC_CSR_V18PWRRSTF_Msk /*!< V1.8 power domain reset flag */
  7624. #define RCC_CSR_RMVF_Pos (24U)
  7625. #define RCC_CSR_RMVF_Msk (0x1U << RCC_CSR_RMVF_Pos) /*!< 0x01000000 */
  7626. #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk /*!< Remove reset flag */
  7627. #define RCC_CSR_OBLRSTF_Pos (25U)
  7628. #define RCC_CSR_OBLRSTF_Msk (0x1U << RCC_CSR_OBLRSTF_Pos) /*!< 0x02000000 */
  7629. #define RCC_CSR_OBLRSTF RCC_CSR_OBLRSTF_Msk /*!< OBL reset flag */
  7630. #define RCC_CSR_PINRSTF_Pos (26U)
  7631. #define RCC_CSR_PINRSTF_Msk (0x1U << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */
  7632. #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk /*!< PIN reset flag */
  7633. #define RCC_CSR_PORRSTF_Pos (27U)
  7634. #define RCC_CSR_PORRSTF_Msk (0x1U << RCC_CSR_PORRSTF_Pos) /*!< 0x08000000 */
  7635. #define RCC_CSR_PORRSTF RCC_CSR_PORRSTF_Msk /*!< POR/PDR reset flag */
  7636. #define RCC_CSR_SFTRSTF_Pos (28U)
  7637. #define RCC_CSR_SFTRSTF_Msk (0x1U << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */
  7638. #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk /*!< Software Reset flag */
  7639. #define RCC_CSR_IWDGRSTF_Pos (29U)
  7640. #define RCC_CSR_IWDGRSTF_Msk (0x1U << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */
  7641. #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk /*!< Independent Watchdog reset flag */
  7642. #define RCC_CSR_WWDGRSTF_Pos (30U)
  7643. #define RCC_CSR_WWDGRSTF_Msk (0x1U << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */
  7644. #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk /*!< Window watchdog reset flag */
  7645. #define RCC_CSR_LPWRRSTF_Pos (31U)
  7646. #define RCC_CSR_LPWRRSTF_Msk (0x1U << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */
  7647. #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk /*!< Low-Power reset flag */
  7648. /* Old Bit definition maintained for legacy purpose */
  7649. #define RCC_CSR_OBL RCC_CSR_OBLRSTF /*!< OBL reset flag */
  7650. /******************* Bit definition for RCC_AHBRSTR register ***************/
  7651. #define RCC_AHBRSTR_GPIOARST_Pos (17U)
  7652. #define RCC_AHBRSTR_GPIOARST_Msk (0x1U << RCC_AHBRSTR_GPIOARST_Pos) /*!< 0x00020000 */
  7653. #define RCC_AHBRSTR_GPIOARST RCC_AHBRSTR_GPIOARST_Msk /*!< GPIOA clock reset */
  7654. #define RCC_AHBRSTR_GPIOBRST_Pos (18U)
  7655. #define RCC_AHBRSTR_GPIOBRST_Msk (0x1U << RCC_AHBRSTR_GPIOBRST_Pos) /*!< 0x00040000 */
  7656. #define RCC_AHBRSTR_GPIOBRST RCC_AHBRSTR_GPIOBRST_Msk /*!< GPIOB clock reset */
  7657. #define RCC_AHBRSTR_GPIOCRST_Pos (19U)
  7658. #define RCC_AHBRSTR_GPIOCRST_Msk (0x1U << RCC_AHBRSTR_GPIOCRST_Pos) /*!< 0x00080000 */
  7659. #define RCC_AHBRSTR_GPIOCRST RCC_AHBRSTR_GPIOCRST_Msk /*!< GPIOC clock reset */
  7660. #define RCC_AHBRSTR_GPIODRST_Pos (20U)
  7661. #define RCC_AHBRSTR_GPIODRST_Msk (0x1U << RCC_AHBRSTR_GPIODRST_Pos) /*!< 0x00100000 */
  7662. #define RCC_AHBRSTR_GPIODRST RCC_AHBRSTR_GPIODRST_Msk /*!< GPIOD clock reset */
  7663. #define RCC_AHBRSTR_GPIOERST_Pos (21U)
  7664. #define RCC_AHBRSTR_GPIOERST_Msk (0x1U << RCC_AHBRSTR_GPIOERST_Pos) /*!< 0x00200000 */
  7665. #define RCC_AHBRSTR_GPIOERST RCC_AHBRSTR_GPIOERST_Msk /*!< GPIOE clock reset */
  7666. #define RCC_AHBRSTR_GPIOFRST_Pos (22U)
  7667. #define RCC_AHBRSTR_GPIOFRST_Msk (0x1U << RCC_AHBRSTR_GPIOFRST_Pos) /*!< 0x00400000 */
  7668. #define RCC_AHBRSTR_GPIOFRST RCC_AHBRSTR_GPIOFRST_Msk /*!< GPIOF clock reset */
  7669. #define RCC_AHBRSTR_TSCRST_Pos (24U)
  7670. #define RCC_AHBRSTR_TSCRST_Msk (0x1U << RCC_AHBRSTR_TSCRST_Pos) /*!< 0x01000000 */
  7671. #define RCC_AHBRSTR_TSCRST RCC_AHBRSTR_TSCRST_Msk /*!< TS clock reset */
  7672. /* Old Bit definition maintained for legacy purpose */
  7673. #define RCC_AHBRSTR_TSRST RCC_AHBRSTR_TSCRST /*!< TS clock reset */
  7674. /******************* Bit definition for RCC_CFGR2 register *****************/
  7675. /*!< PREDIV configuration */
  7676. #define RCC_CFGR2_PREDIV_Pos (0U)
  7677. #define RCC_CFGR2_PREDIV_Msk (0xFU << RCC_CFGR2_PREDIV_Pos) /*!< 0x0000000F */
  7678. #define RCC_CFGR2_PREDIV RCC_CFGR2_PREDIV_Msk /*!< PREDIV[3:0] bits */
  7679. #define RCC_CFGR2_PREDIV_0 (0x1U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000001 */
  7680. #define RCC_CFGR2_PREDIV_1 (0x2U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000002 */
  7681. #define RCC_CFGR2_PREDIV_2 (0x4U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000004 */
  7682. #define RCC_CFGR2_PREDIV_3 (0x8U << RCC_CFGR2_PREDIV_Pos) /*!< 0x00000008 */
  7683. #define RCC_CFGR2_PREDIV_DIV1 (0x00000000U) /*!< PREDIV input clock not divided */
  7684. #define RCC_CFGR2_PREDIV_DIV2 (0x00000001U) /*!< PREDIV input clock divided by 2 */
  7685. #define RCC_CFGR2_PREDIV_DIV3 (0x00000002U) /*!< PREDIV input clock divided by 3 */
  7686. #define RCC_CFGR2_PREDIV_DIV4 (0x00000003U) /*!< PREDIV input clock divided by 4 */
  7687. #define RCC_CFGR2_PREDIV_DIV5 (0x00000004U) /*!< PREDIV input clock divided by 5 */
  7688. #define RCC_CFGR2_PREDIV_DIV6 (0x00000005U) /*!< PREDIV input clock divided by 6 */
  7689. #define RCC_CFGR2_PREDIV_DIV7 (0x00000006U) /*!< PREDIV input clock divided by 7 */
  7690. #define RCC_CFGR2_PREDIV_DIV8 (0x00000007U) /*!< PREDIV input clock divided by 8 */
  7691. #define RCC_CFGR2_PREDIV_DIV9 (0x00000008U) /*!< PREDIV input clock divided by 9 */
  7692. #define RCC_CFGR2_PREDIV_DIV10 (0x00000009U) /*!< PREDIV input clock divided by 10 */
  7693. #define RCC_CFGR2_PREDIV_DIV11 (0x0000000AU) /*!< PREDIV input clock divided by 11 */
  7694. #define RCC_CFGR2_PREDIV_DIV12 (0x0000000BU) /*!< PREDIV input clock divided by 12 */
  7695. #define RCC_CFGR2_PREDIV_DIV13 (0x0000000CU) /*!< PREDIV input clock divided by 13 */
  7696. #define RCC_CFGR2_PREDIV_DIV14 (0x0000000DU) /*!< PREDIV input clock divided by 14 */
  7697. #define RCC_CFGR2_PREDIV_DIV15 (0x0000000EU) /*!< PREDIV input clock divided by 15 */
  7698. #define RCC_CFGR2_PREDIV_DIV16 (0x0000000FU) /*!< PREDIV input clock divided by 16 */
  7699. /******************* Bit definition for RCC_CFGR3 register *****************/
  7700. /*!< USART1 Clock source selection */
  7701. #define RCC_CFGR3_USART1SW_Pos (0U)
  7702. #define RCC_CFGR3_USART1SW_Msk (0x3U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000003 */
  7703. #define RCC_CFGR3_USART1SW RCC_CFGR3_USART1SW_Msk /*!< USART1SW[1:0] bits */
  7704. #define RCC_CFGR3_USART1SW_0 (0x1U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000001 */
  7705. #define RCC_CFGR3_USART1SW_1 (0x2U << RCC_CFGR3_USART1SW_Pos) /*!< 0x00000002 */
  7706. #define RCC_CFGR3_USART1SW_PCLK (0x00000000U) /*!< PCLK clock used as USART1 clock source */
  7707. #define RCC_CFGR3_USART1SW_SYSCLK (0x00000001U) /*!< System clock selected as USART1 clock source */
  7708. #define RCC_CFGR3_USART1SW_LSE (0x00000002U) /*!< LSE oscillator clock used as USART1 clock source */
  7709. #define RCC_CFGR3_USART1SW_HSI (0x00000003U) /*!< HSI oscillator clock used as USART1 clock source */
  7710. /*!< I2C1 Clock source selection */
  7711. #define RCC_CFGR3_I2C1SW_Pos (4U)
  7712. #define RCC_CFGR3_I2C1SW_Msk (0x1U << RCC_CFGR3_I2C1SW_Pos) /*!< 0x00000010 */
  7713. #define RCC_CFGR3_I2C1SW RCC_CFGR3_I2C1SW_Msk /*!< I2C1SW bits */
  7714. #define RCC_CFGR3_I2C1SW_HSI (0x00000000U) /*!< HSI oscillator clock used as I2C1 clock source */
  7715. #define RCC_CFGR3_I2C1SW_SYSCLK_Pos (4U)
  7716. #define RCC_CFGR3_I2C1SW_SYSCLK_Msk (0x1U << RCC_CFGR3_I2C1SW_SYSCLK_Pos) /*!< 0x00000010 */
  7717. #define RCC_CFGR3_I2C1SW_SYSCLK RCC_CFGR3_I2C1SW_SYSCLK_Msk /*!< System clock selected as I2C1 clock source */
  7718. /*!< CEC Clock source selection */
  7719. #define RCC_CFGR3_CECSW_Pos (6U)
  7720. #define RCC_CFGR3_CECSW_Msk (0x1U << RCC_CFGR3_CECSW_Pos) /*!< 0x00000040 */
  7721. #define RCC_CFGR3_CECSW RCC_CFGR3_CECSW_Msk /*!< CECSW bits */
  7722. #define RCC_CFGR3_CECSW_HSI_DIV244 (0x00000000U) /*!< HSI clock divided by 244 selected as HDMI CEC entry clock source */
  7723. #define RCC_CFGR3_CECSW_LSE_Pos (6U)
  7724. #define RCC_CFGR3_CECSW_LSE_Msk (0x1U << RCC_CFGR3_CECSW_LSE_Pos) /*!< 0x00000040 */
  7725. #define RCC_CFGR3_CECSW_LSE RCC_CFGR3_CECSW_LSE_Msk /*!< LSE clock selected as HDMI CEC entry clock source */
  7726. /*!< USB Clock source selection */
  7727. #define RCC_CFGR3_USBSW_Pos (7U)
  7728. #define RCC_CFGR3_USBSW_Msk (0x1U << RCC_CFGR3_USBSW_Pos) /*!< 0x00000080 */
  7729. #define RCC_CFGR3_USBSW RCC_CFGR3_USBSW_Msk /*!< USBSW bits */
  7730. #define RCC_CFGR3_USBSW_HSI48 (0x00000000U) /*!< HSI48 oscillator clock used as USB clock source */
  7731. #define RCC_CFGR3_USBSW_PLLCLK_Pos (7U)
  7732. #define RCC_CFGR3_USBSW_PLLCLK_Msk (0x1U << RCC_CFGR3_USBSW_PLLCLK_Pos) /*!< 0x00000080 */
  7733. #define RCC_CFGR3_USBSW_PLLCLK RCC_CFGR3_USBSW_PLLCLK_Msk /*!< PLLCLK selected as USB clock source */
  7734. /*!< USART2 Clock source selection */
  7735. #define RCC_CFGR3_USART2SW_Pos (16U)
  7736. #define RCC_CFGR3_USART2SW_Msk (0x3U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00030000 */
  7737. #define RCC_CFGR3_USART2SW RCC_CFGR3_USART2SW_Msk /*!< USART2SW[1:0] bits */
  7738. #define RCC_CFGR3_USART2SW_0 (0x1U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00010000 */
  7739. #define RCC_CFGR3_USART2SW_1 (0x2U << RCC_CFGR3_USART2SW_Pos) /*!< 0x00020000 */
  7740. #define RCC_CFGR3_USART2SW_PCLK (0x00000000U) /*!< PCLK clock used as USART2 clock source */
  7741. #define RCC_CFGR3_USART2SW_SYSCLK (0x00010000U) /*!< System clock selected as USART2 clock source */
  7742. #define RCC_CFGR3_USART2SW_LSE (0x00020000U) /*!< LSE oscillator clock used as USART2 clock source */
  7743. #define RCC_CFGR3_USART2SW_HSI (0x00030000U) /*!< HSI oscillator clock used as USART2 clock source */
  7744. /******************* Bit definition for RCC_CR2 register *******************/
  7745. #define RCC_CR2_HSI14ON_Pos (0U)
  7746. #define RCC_CR2_HSI14ON_Msk (0x1U << RCC_CR2_HSI14ON_Pos) /*!< 0x00000001 */
  7747. #define RCC_CR2_HSI14ON RCC_CR2_HSI14ON_Msk /*!< Internal High Speed 14MHz clock enable */
  7748. #define RCC_CR2_HSI14RDY_Pos (1U)
  7749. #define RCC_CR2_HSI14RDY_Msk (0x1U << RCC_CR2_HSI14RDY_Pos) /*!< 0x00000002 */
  7750. #define RCC_CR2_HSI14RDY RCC_CR2_HSI14RDY_Msk /*!< Internal High Speed 14MHz clock ready flag */
  7751. #define RCC_CR2_HSI14DIS_Pos (2U)
  7752. #define RCC_CR2_HSI14DIS_Msk (0x1U << RCC_CR2_HSI14DIS_Pos) /*!< 0x00000004 */
  7753. #define RCC_CR2_HSI14DIS RCC_CR2_HSI14DIS_Msk /*!< Internal High Speed 14MHz clock disable */
  7754. #define RCC_CR2_HSI14TRIM_Pos (3U)
  7755. #define RCC_CR2_HSI14TRIM_Msk (0x1FU << RCC_CR2_HSI14TRIM_Pos) /*!< 0x000000F8 */
  7756. #define RCC_CR2_HSI14TRIM RCC_CR2_HSI14TRIM_Msk /*!< Internal High Speed 14MHz clock trimming */
  7757. #define RCC_CR2_HSI14CAL_Pos (8U)
  7758. #define RCC_CR2_HSI14CAL_Msk (0xFFU << RCC_CR2_HSI14CAL_Pos) /*!< 0x0000FF00 */
  7759. #define RCC_CR2_HSI14CAL RCC_CR2_HSI14CAL_Msk /*!< Internal High Speed 14MHz clock Calibration */
  7760. #define RCC_CR2_HSI48ON_Pos (16U)
  7761. #define RCC_CR2_HSI48ON_Msk (0x1U << RCC_CR2_HSI48ON_Pos) /*!< 0x00010000 */
  7762. #define RCC_CR2_HSI48ON RCC_CR2_HSI48ON_Msk /*!< Internal High Speed 48MHz clock enable */
  7763. #define RCC_CR2_HSI48RDY_Pos (17U)
  7764. #define RCC_CR2_HSI48RDY_Msk (0x1U << RCC_CR2_HSI48RDY_Pos) /*!< 0x00020000 */
  7765. #define RCC_CR2_HSI48RDY RCC_CR2_HSI48RDY_Msk /*!< Internal High Speed 48MHz clock ready flag */
  7766. #define RCC_CR2_HSI48CAL_Pos (24U)
  7767. #define RCC_CR2_HSI48CAL_Msk (0xFFU << RCC_CR2_HSI48CAL_Pos) /*!< 0xFF000000 */
  7768. #define RCC_CR2_HSI48CAL RCC_CR2_HSI48CAL_Msk /*!< Internal High Speed 48MHz clock Calibration */
  7769. /*****************************************************************************/
  7770. /* */
  7771. /* Real-Time Clock (RTC) */
  7772. /* */
  7773. /*****************************************************************************/
  7774. /*
  7775. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  7776. */
  7777. #define RTC_TAMPER1_SUPPORT /*!< TAMPER 1 feature support */
  7778. #define RTC_TAMPER2_SUPPORT /*!< TAMPER 2 feature support */
  7779. #define RTC_TAMPER3_SUPPORT /*!< TAMPER 3 feature support */
  7780. #define RTC_BACKUP_SUPPORT /*!< BACKUP register feature support */
  7781. #define RTC_WAKEUP_SUPPORT /*!< WAKEUP feature support */
  7782. /******************** Bits definition for RTC_TR register ******************/
  7783. #define RTC_TR_PM_Pos (22U)
  7784. #define RTC_TR_PM_Msk (0x1U << RTC_TR_PM_Pos) /*!< 0x00400000 */
  7785. #define RTC_TR_PM RTC_TR_PM_Msk
  7786. #define RTC_TR_HT_Pos (20U)
  7787. #define RTC_TR_HT_Msk (0x3U << RTC_TR_HT_Pos) /*!< 0x00300000 */
  7788. #define RTC_TR_HT RTC_TR_HT_Msk
  7789. #define RTC_TR_HT_0 (0x1U << RTC_TR_HT_Pos) /*!< 0x00100000 */
  7790. #define RTC_TR_HT_1 (0x2U << RTC_TR_HT_Pos) /*!< 0x00200000 */
  7791. #define RTC_TR_HU_Pos (16U)
  7792. #define RTC_TR_HU_Msk (0xFU << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  7793. #define RTC_TR_HU RTC_TR_HU_Msk
  7794. #define RTC_TR_HU_0 (0x1U << RTC_TR_HU_Pos) /*!< 0x00010000 */
  7795. #define RTC_TR_HU_1 (0x2U << RTC_TR_HU_Pos) /*!< 0x00020000 */
  7796. #define RTC_TR_HU_2 (0x4U << RTC_TR_HU_Pos) /*!< 0x00040000 */
  7797. #define RTC_TR_HU_3 (0x8U << RTC_TR_HU_Pos) /*!< 0x00080000 */
  7798. #define RTC_TR_MNT_Pos (12U)
  7799. #define RTC_TR_MNT_Msk (0x7U << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  7800. #define RTC_TR_MNT RTC_TR_MNT_Msk
  7801. #define RTC_TR_MNT_0 (0x1U << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  7802. #define RTC_TR_MNT_1 (0x2U << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  7803. #define RTC_TR_MNT_2 (0x4U << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  7804. #define RTC_TR_MNU_Pos (8U)
  7805. #define RTC_TR_MNU_Msk (0xFU << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  7806. #define RTC_TR_MNU RTC_TR_MNU_Msk
  7807. #define RTC_TR_MNU_0 (0x1U << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  7808. #define RTC_TR_MNU_1 (0x2U << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  7809. #define RTC_TR_MNU_2 (0x4U << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  7810. #define RTC_TR_MNU_3 (0x8U << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  7811. #define RTC_TR_ST_Pos (4U)
  7812. #define RTC_TR_ST_Msk (0x7U << RTC_TR_ST_Pos) /*!< 0x00000070 */
  7813. #define RTC_TR_ST RTC_TR_ST_Msk
  7814. #define RTC_TR_ST_0 (0x1U << RTC_TR_ST_Pos) /*!< 0x00000010 */
  7815. #define RTC_TR_ST_1 (0x2U << RTC_TR_ST_Pos) /*!< 0x00000020 */
  7816. #define RTC_TR_ST_2 (0x4U << RTC_TR_ST_Pos) /*!< 0x00000040 */
  7817. #define RTC_TR_SU_Pos (0U)
  7818. #define RTC_TR_SU_Msk (0xFU << RTC_TR_SU_Pos) /*!< 0x0000000F */
  7819. #define RTC_TR_SU RTC_TR_SU_Msk
  7820. #define RTC_TR_SU_0 (0x1U << RTC_TR_SU_Pos) /*!< 0x00000001 */
  7821. #define RTC_TR_SU_1 (0x2U << RTC_TR_SU_Pos) /*!< 0x00000002 */
  7822. #define RTC_TR_SU_2 (0x4U << RTC_TR_SU_Pos) /*!< 0x00000004 */
  7823. #define RTC_TR_SU_3 (0x8U << RTC_TR_SU_Pos) /*!< 0x00000008 */
  7824. /******************** Bits definition for RTC_DR register ******************/
  7825. #define RTC_DR_YT_Pos (20U)
  7826. #define RTC_DR_YT_Msk (0xFU << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  7827. #define RTC_DR_YT RTC_DR_YT_Msk
  7828. #define RTC_DR_YT_0 (0x1U << RTC_DR_YT_Pos) /*!< 0x00100000 */
  7829. #define RTC_DR_YT_1 (0x2U << RTC_DR_YT_Pos) /*!< 0x00200000 */
  7830. #define RTC_DR_YT_2 (0x4U << RTC_DR_YT_Pos) /*!< 0x00400000 */
  7831. #define RTC_DR_YT_3 (0x8U << RTC_DR_YT_Pos) /*!< 0x00800000 */
  7832. #define RTC_DR_YU_Pos (16U)
  7833. #define RTC_DR_YU_Msk (0xFU << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  7834. #define RTC_DR_YU RTC_DR_YU_Msk
  7835. #define RTC_DR_YU_0 (0x1U << RTC_DR_YU_Pos) /*!< 0x00010000 */
  7836. #define RTC_DR_YU_1 (0x2U << RTC_DR_YU_Pos) /*!< 0x00020000 */
  7837. #define RTC_DR_YU_2 (0x4U << RTC_DR_YU_Pos) /*!< 0x00040000 */
  7838. #define RTC_DR_YU_3 (0x8U << RTC_DR_YU_Pos) /*!< 0x00080000 */
  7839. #define RTC_DR_WDU_Pos (13U)
  7840. #define RTC_DR_WDU_Msk (0x7U << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  7841. #define RTC_DR_WDU RTC_DR_WDU_Msk
  7842. #define RTC_DR_WDU_0 (0x1U << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  7843. #define RTC_DR_WDU_1 (0x2U << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  7844. #define RTC_DR_WDU_2 (0x4U << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  7845. #define RTC_DR_MT_Pos (12U)
  7846. #define RTC_DR_MT_Msk (0x1U << RTC_DR_MT_Pos) /*!< 0x00001000 */
  7847. #define RTC_DR_MT RTC_DR_MT_Msk
  7848. #define RTC_DR_MU_Pos (8U)
  7849. #define RTC_DR_MU_Msk (0xFU << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  7850. #define RTC_DR_MU RTC_DR_MU_Msk
  7851. #define RTC_DR_MU_0 (0x1U << RTC_DR_MU_Pos) /*!< 0x00000100 */
  7852. #define RTC_DR_MU_1 (0x2U << RTC_DR_MU_Pos) /*!< 0x00000200 */
  7853. #define RTC_DR_MU_2 (0x4U << RTC_DR_MU_Pos) /*!< 0x00000400 */
  7854. #define RTC_DR_MU_3 (0x8U << RTC_DR_MU_Pos) /*!< 0x00000800 */
  7855. #define RTC_DR_DT_Pos (4U)
  7856. #define RTC_DR_DT_Msk (0x3U << RTC_DR_DT_Pos) /*!< 0x00000030 */
  7857. #define RTC_DR_DT RTC_DR_DT_Msk
  7858. #define RTC_DR_DT_0 (0x1U << RTC_DR_DT_Pos) /*!< 0x00000010 */
  7859. #define RTC_DR_DT_1 (0x2U << RTC_DR_DT_Pos) /*!< 0x00000020 */
  7860. #define RTC_DR_DU_Pos (0U)
  7861. #define RTC_DR_DU_Msk (0xFU << RTC_DR_DU_Pos) /*!< 0x0000000F */
  7862. #define RTC_DR_DU RTC_DR_DU_Msk
  7863. #define RTC_DR_DU_0 (0x1U << RTC_DR_DU_Pos) /*!< 0x00000001 */
  7864. #define RTC_DR_DU_1 (0x2U << RTC_DR_DU_Pos) /*!< 0x00000002 */
  7865. #define RTC_DR_DU_2 (0x4U << RTC_DR_DU_Pos) /*!< 0x00000004 */
  7866. #define RTC_DR_DU_3 (0x8U << RTC_DR_DU_Pos) /*!< 0x00000008 */
  7867. /******************** Bits definition for RTC_CR register ******************/
  7868. #define RTC_CR_COE_Pos (23U)
  7869. #define RTC_CR_COE_Msk (0x1U << RTC_CR_COE_Pos) /*!< 0x00800000 */
  7870. #define RTC_CR_COE RTC_CR_COE_Msk
  7871. #define RTC_CR_OSEL_Pos (21U)
  7872. #define RTC_CR_OSEL_Msk (0x3U << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  7873. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  7874. #define RTC_CR_OSEL_0 (0x1U << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  7875. #define RTC_CR_OSEL_1 (0x2U << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  7876. #define RTC_CR_POL_Pos (20U)
  7877. #define RTC_CR_POL_Msk (0x1U << RTC_CR_POL_Pos) /*!< 0x00100000 */
  7878. #define RTC_CR_POL RTC_CR_POL_Msk
  7879. #define RTC_CR_COSEL_Pos (19U)
  7880. #define RTC_CR_COSEL_Msk (0x1U << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  7881. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  7882. #define RTC_CR_BCK_Pos (18U)
  7883. #define RTC_CR_BCK_Msk (0x1U << RTC_CR_BCK_Pos) /*!< 0x00040000 */
  7884. #define RTC_CR_BCK RTC_CR_BCK_Msk
  7885. #define RTC_CR_SUB1H_Pos (17U)
  7886. #define RTC_CR_SUB1H_Msk (0x1U << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  7887. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  7888. #define RTC_CR_ADD1H_Pos (16U)
  7889. #define RTC_CR_ADD1H_Msk (0x1U << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  7890. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  7891. #define RTC_CR_TSIE_Pos (15U)
  7892. #define RTC_CR_TSIE_Msk (0x1U << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  7893. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  7894. #define RTC_CR_WUTIE_Pos (14U)
  7895. #define RTC_CR_WUTIE_Msk (0x1U << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  7896. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  7897. #define RTC_CR_ALRAIE_Pos (12U)
  7898. #define RTC_CR_ALRAIE_Msk (0x1U << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  7899. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  7900. #define RTC_CR_TSE_Pos (11U)
  7901. #define RTC_CR_TSE_Msk (0x1U << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  7902. #define RTC_CR_TSE RTC_CR_TSE_Msk
  7903. #define RTC_CR_WUTE_Pos (10U)
  7904. #define RTC_CR_WUTE_Msk (0x1U << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  7905. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  7906. #define RTC_CR_ALRAE_Pos (8U)
  7907. #define RTC_CR_ALRAE_Msk (0x1U << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  7908. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  7909. #define RTC_CR_FMT_Pos (6U)
  7910. #define RTC_CR_FMT_Msk (0x1U << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  7911. #define RTC_CR_FMT RTC_CR_FMT_Msk
  7912. #define RTC_CR_BYPSHAD_Pos (5U)
  7913. #define RTC_CR_BYPSHAD_Msk (0x1U << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  7914. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  7915. #define RTC_CR_REFCKON_Pos (4U)
  7916. #define RTC_CR_REFCKON_Msk (0x1U << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  7917. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  7918. #define RTC_CR_TSEDGE_Pos (3U)
  7919. #define RTC_CR_TSEDGE_Msk (0x1U << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  7920. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  7921. #define RTC_CR_WUCKSEL_Pos (0U)
  7922. #define RTC_CR_WUCKSEL_Msk (0x7U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  7923. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  7924. #define RTC_CR_WUCKSEL_0 (0x1U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  7925. #define RTC_CR_WUCKSEL_1 (0x2U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  7926. #define RTC_CR_WUCKSEL_2 (0x4U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  7927. /******************** Bits definition for RTC_ISR register *****************/
  7928. #define RTC_ISR_RECALPF_Pos (16U)
  7929. #define RTC_ISR_RECALPF_Msk (0x1U << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */
  7930. #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk
  7931. #define RTC_ISR_TAMP3F_Pos (15U)
  7932. #define RTC_ISR_TAMP3F_Msk (0x1U << RTC_ISR_TAMP3F_Pos) /*!< 0x00008000 */
  7933. #define RTC_ISR_TAMP3F RTC_ISR_TAMP3F_Msk
  7934. #define RTC_ISR_TAMP2F_Pos (14U)
  7935. #define RTC_ISR_TAMP2F_Msk (0x1U << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */
  7936. #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk
  7937. #define RTC_ISR_TAMP1F_Pos (13U)
  7938. #define RTC_ISR_TAMP1F_Msk (0x1U << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */
  7939. #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk
  7940. #define RTC_ISR_TSOVF_Pos (12U)
  7941. #define RTC_ISR_TSOVF_Msk (0x1U << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */
  7942. #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk
  7943. #define RTC_ISR_TSF_Pos (11U)
  7944. #define RTC_ISR_TSF_Msk (0x1U << RTC_ISR_TSF_Pos) /*!< 0x00000800 */
  7945. #define RTC_ISR_TSF RTC_ISR_TSF_Msk
  7946. #define RTC_ISR_WUTF_Pos (10U)
  7947. #define RTC_ISR_WUTF_Msk (0x1U << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */
  7948. #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk
  7949. #define RTC_ISR_ALRAF_Pos (8U)
  7950. #define RTC_ISR_ALRAF_Msk (0x1U << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */
  7951. #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk
  7952. #define RTC_ISR_INIT_Pos (7U)
  7953. #define RTC_ISR_INIT_Msk (0x1U << RTC_ISR_INIT_Pos) /*!< 0x00000080 */
  7954. #define RTC_ISR_INIT RTC_ISR_INIT_Msk
  7955. #define RTC_ISR_INITF_Pos (6U)
  7956. #define RTC_ISR_INITF_Msk (0x1U << RTC_ISR_INITF_Pos) /*!< 0x00000040 */
  7957. #define RTC_ISR_INITF RTC_ISR_INITF_Msk
  7958. #define RTC_ISR_RSF_Pos (5U)
  7959. #define RTC_ISR_RSF_Msk (0x1U << RTC_ISR_RSF_Pos) /*!< 0x00000020 */
  7960. #define RTC_ISR_RSF RTC_ISR_RSF_Msk
  7961. #define RTC_ISR_INITS_Pos (4U)
  7962. #define RTC_ISR_INITS_Msk (0x1U << RTC_ISR_INITS_Pos) /*!< 0x00000010 */
  7963. #define RTC_ISR_INITS RTC_ISR_INITS_Msk
  7964. #define RTC_ISR_SHPF_Pos (3U)
  7965. #define RTC_ISR_SHPF_Msk (0x1U << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */
  7966. #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk
  7967. #define RTC_ISR_WUTWF_Pos (2U)
  7968. #define RTC_ISR_WUTWF_Msk (0x1U << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */
  7969. #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk
  7970. #define RTC_ISR_ALRAWF_Pos (0U)
  7971. #define RTC_ISR_ALRAWF_Msk (0x1U << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */
  7972. #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk
  7973. /******************** Bits definition for RTC_PRER register ****************/
  7974. #define RTC_PRER_PREDIV_A_Pos (16U)
  7975. #define RTC_PRER_PREDIV_A_Msk (0x7FU << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  7976. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  7977. #define RTC_PRER_PREDIV_S_Pos (0U)
  7978. #define RTC_PRER_PREDIV_S_Msk (0x7FFFU << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  7979. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  7980. /******************** Bits definition for RTC_WUTR register ****************/
  7981. #define RTC_WUTR_WUT_Pos (0U)
  7982. #define RTC_WUTR_WUT_Msk (0xFFFFU << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  7983. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  7984. /******************** Bits definition for RTC_ALRMAR register **************/
  7985. #define RTC_ALRMAR_MSK4_Pos (31U)
  7986. #define RTC_ALRMAR_MSK4_Msk (0x1U << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  7987. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  7988. #define RTC_ALRMAR_WDSEL_Pos (30U)
  7989. #define RTC_ALRMAR_WDSEL_Msk (0x1U << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  7990. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  7991. #define RTC_ALRMAR_DT_Pos (28U)
  7992. #define RTC_ALRMAR_DT_Msk (0x3U << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  7993. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  7994. #define RTC_ALRMAR_DT_0 (0x1U << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  7995. #define RTC_ALRMAR_DT_1 (0x2U << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  7996. #define RTC_ALRMAR_DU_Pos (24U)
  7997. #define RTC_ALRMAR_DU_Msk (0xFU << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  7998. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  7999. #define RTC_ALRMAR_DU_0 (0x1U << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  8000. #define RTC_ALRMAR_DU_1 (0x2U << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  8001. #define RTC_ALRMAR_DU_2 (0x4U << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  8002. #define RTC_ALRMAR_DU_3 (0x8U << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  8003. #define RTC_ALRMAR_MSK3_Pos (23U)
  8004. #define RTC_ALRMAR_MSK3_Msk (0x1U << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  8005. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  8006. #define RTC_ALRMAR_PM_Pos (22U)
  8007. #define RTC_ALRMAR_PM_Msk (0x1U << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  8008. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  8009. #define RTC_ALRMAR_HT_Pos (20U)
  8010. #define RTC_ALRMAR_HT_Msk (0x3U << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  8011. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  8012. #define RTC_ALRMAR_HT_0 (0x1U << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  8013. #define RTC_ALRMAR_HT_1 (0x2U << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  8014. #define RTC_ALRMAR_HU_Pos (16U)
  8015. #define RTC_ALRMAR_HU_Msk (0xFU << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  8016. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  8017. #define RTC_ALRMAR_HU_0 (0x1U << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  8018. #define RTC_ALRMAR_HU_1 (0x2U << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  8019. #define RTC_ALRMAR_HU_2 (0x4U << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  8020. #define RTC_ALRMAR_HU_3 (0x8U << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  8021. #define RTC_ALRMAR_MSK2_Pos (15U)
  8022. #define RTC_ALRMAR_MSK2_Msk (0x1U << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  8023. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  8024. #define RTC_ALRMAR_MNT_Pos (12U)
  8025. #define RTC_ALRMAR_MNT_Msk (0x7U << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  8026. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  8027. #define RTC_ALRMAR_MNT_0 (0x1U << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  8028. #define RTC_ALRMAR_MNT_1 (0x2U << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  8029. #define RTC_ALRMAR_MNT_2 (0x4U << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  8030. #define RTC_ALRMAR_MNU_Pos (8U)
  8031. #define RTC_ALRMAR_MNU_Msk (0xFU << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  8032. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  8033. #define RTC_ALRMAR_MNU_0 (0x1U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  8034. #define RTC_ALRMAR_MNU_1 (0x2U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  8035. #define RTC_ALRMAR_MNU_2 (0x4U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  8036. #define RTC_ALRMAR_MNU_3 (0x8U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  8037. #define RTC_ALRMAR_MSK1_Pos (7U)
  8038. #define RTC_ALRMAR_MSK1_Msk (0x1U << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  8039. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  8040. #define RTC_ALRMAR_ST_Pos (4U)
  8041. #define RTC_ALRMAR_ST_Msk (0x7U << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  8042. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  8043. #define RTC_ALRMAR_ST_0 (0x1U << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  8044. #define RTC_ALRMAR_ST_1 (0x2U << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  8045. #define RTC_ALRMAR_ST_2 (0x4U << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  8046. #define RTC_ALRMAR_SU_Pos (0U)
  8047. #define RTC_ALRMAR_SU_Msk (0xFU << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  8048. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  8049. #define RTC_ALRMAR_SU_0 (0x1U << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  8050. #define RTC_ALRMAR_SU_1 (0x2U << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  8051. #define RTC_ALRMAR_SU_2 (0x4U << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  8052. #define RTC_ALRMAR_SU_3 (0x8U << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  8053. /******************** Bits definition for RTC_WPR register *****************/
  8054. #define RTC_WPR_KEY_Pos (0U)
  8055. #define RTC_WPR_KEY_Msk (0xFFU << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  8056. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  8057. /******************** Bits definition for RTC_SSR register *****************/
  8058. #define RTC_SSR_SS_Pos (0U)
  8059. #define RTC_SSR_SS_Msk (0xFFFFU << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  8060. #define RTC_SSR_SS RTC_SSR_SS_Msk
  8061. /******************** Bits definition for RTC_SHIFTR register **************/
  8062. #define RTC_SHIFTR_SUBFS_Pos (0U)
  8063. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFU << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  8064. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  8065. #define RTC_SHIFTR_ADD1S_Pos (31U)
  8066. #define RTC_SHIFTR_ADD1S_Msk (0x1U << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  8067. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  8068. /******************** Bits definition for RTC_TSTR register ****************/
  8069. #define RTC_TSTR_PM_Pos (22U)
  8070. #define RTC_TSTR_PM_Msk (0x1U << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  8071. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  8072. #define RTC_TSTR_HT_Pos (20U)
  8073. #define RTC_TSTR_HT_Msk (0x3U << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  8074. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  8075. #define RTC_TSTR_HT_0 (0x1U << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  8076. #define RTC_TSTR_HT_1 (0x2U << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  8077. #define RTC_TSTR_HU_Pos (16U)
  8078. #define RTC_TSTR_HU_Msk (0xFU << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  8079. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  8080. #define RTC_TSTR_HU_0 (0x1U << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  8081. #define RTC_TSTR_HU_1 (0x2U << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  8082. #define RTC_TSTR_HU_2 (0x4U << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  8083. #define RTC_TSTR_HU_3 (0x8U << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  8084. #define RTC_TSTR_MNT_Pos (12U)
  8085. #define RTC_TSTR_MNT_Msk (0x7U << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  8086. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  8087. #define RTC_TSTR_MNT_0 (0x1U << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  8088. #define RTC_TSTR_MNT_1 (0x2U << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  8089. #define RTC_TSTR_MNT_2 (0x4U << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  8090. #define RTC_TSTR_MNU_Pos (8U)
  8091. #define RTC_TSTR_MNU_Msk (0xFU << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  8092. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  8093. #define RTC_TSTR_MNU_0 (0x1U << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  8094. #define RTC_TSTR_MNU_1 (0x2U << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  8095. #define RTC_TSTR_MNU_2 (0x4U << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  8096. #define RTC_TSTR_MNU_3 (0x8U << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  8097. #define RTC_TSTR_ST_Pos (4U)
  8098. #define RTC_TSTR_ST_Msk (0x7U << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  8099. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  8100. #define RTC_TSTR_ST_0 (0x1U << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  8101. #define RTC_TSTR_ST_1 (0x2U << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  8102. #define RTC_TSTR_ST_2 (0x4U << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  8103. #define RTC_TSTR_SU_Pos (0U)
  8104. #define RTC_TSTR_SU_Msk (0xFU << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  8105. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  8106. #define RTC_TSTR_SU_0 (0x1U << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  8107. #define RTC_TSTR_SU_1 (0x2U << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  8108. #define RTC_TSTR_SU_2 (0x4U << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  8109. #define RTC_TSTR_SU_3 (0x8U << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  8110. /******************** Bits definition for RTC_TSDR register ****************/
  8111. #define RTC_TSDR_WDU_Pos (13U)
  8112. #define RTC_TSDR_WDU_Msk (0x7U << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  8113. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  8114. #define RTC_TSDR_WDU_0 (0x1U << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  8115. #define RTC_TSDR_WDU_1 (0x2U << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  8116. #define RTC_TSDR_WDU_2 (0x4U << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  8117. #define RTC_TSDR_MT_Pos (12U)
  8118. #define RTC_TSDR_MT_Msk (0x1U << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  8119. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  8120. #define RTC_TSDR_MU_Pos (8U)
  8121. #define RTC_TSDR_MU_Msk (0xFU << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  8122. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  8123. #define RTC_TSDR_MU_0 (0x1U << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  8124. #define RTC_TSDR_MU_1 (0x2U << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  8125. #define RTC_TSDR_MU_2 (0x4U << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  8126. #define RTC_TSDR_MU_3 (0x8U << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  8127. #define RTC_TSDR_DT_Pos (4U)
  8128. #define RTC_TSDR_DT_Msk (0x3U << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  8129. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  8130. #define RTC_TSDR_DT_0 (0x1U << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  8131. #define RTC_TSDR_DT_1 (0x2U << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  8132. #define RTC_TSDR_DU_Pos (0U)
  8133. #define RTC_TSDR_DU_Msk (0xFU << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  8134. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  8135. #define RTC_TSDR_DU_0 (0x1U << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  8136. #define RTC_TSDR_DU_1 (0x2U << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  8137. #define RTC_TSDR_DU_2 (0x4U << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  8138. #define RTC_TSDR_DU_3 (0x8U << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  8139. /******************** Bits definition for RTC_TSSSR register ***************/
  8140. #define RTC_TSSSR_SS_Pos (0U)
  8141. #define RTC_TSSSR_SS_Msk (0xFFFFU << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  8142. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  8143. /******************** Bits definition for RTC_CALR register ****************/
  8144. #define RTC_CALR_CALP_Pos (15U)
  8145. #define RTC_CALR_CALP_Msk (0x1U << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  8146. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  8147. #define RTC_CALR_CALW8_Pos (14U)
  8148. #define RTC_CALR_CALW8_Msk (0x1U << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  8149. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  8150. #define RTC_CALR_CALW16_Pos (13U)
  8151. #define RTC_CALR_CALW16_Msk (0x1U << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  8152. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  8153. #define RTC_CALR_CALM_Pos (0U)
  8154. #define RTC_CALR_CALM_Msk (0x1FFU << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  8155. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  8156. #define RTC_CALR_CALM_0 (0x001U << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  8157. #define RTC_CALR_CALM_1 (0x002U << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  8158. #define RTC_CALR_CALM_2 (0x004U << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  8159. #define RTC_CALR_CALM_3 (0x008U << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  8160. #define RTC_CALR_CALM_4 (0x010U << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  8161. #define RTC_CALR_CALM_5 (0x020U << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  8162. #define RTC_CALR_CALM_6 (0x040U << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  8163. #define RTC_CALR_CALM_7 (0x080U << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  8164. #define RTC_CALR_CALM_8 (0x100U << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  8165. /******************** Bits definition for RTC_TAFCR register ***************/
  8166. #define RTC_TAFCR_PC15MODE_Pos (23U)
  8167. #define RTC_TAFCR_PC15MODE_Msk (0x1U << RTC_TAFCR_PC15MODE_Pos) /*!< 0x00800000 */
  8168. #define RTC_TAFCR_PC15MODE RTC_TAFCR_PC15MODE_Msk
  8169. #define RTC_TAFCR_PC15VALUE_Pos (22U)
  8170. #define RTC_TAFCR_PC15VALUE_Msk (0x1U << RTC_TAFCR_PC15VALUE_Pos) /*!< 0x00400000 */
  8171. #define RTC_TAFCR_PC15VALUE RTC_TAFCR_PC15VALUE_Msk
  8172. #define RTC_TAFCR_PC14MODE_Pos (21U)
  8173. #define RTC_TAFCR_PC14MODE_Msk (0x1U << RTC_TAFCR_PC14MODE_Pos) /*!< 0x00200000 */
  8174. #define RTC_TAFCR_PC14MODE RTC_TAFCR_PC14MODE_Msk
  8175. #define RTC_TAFCR_PC14VALUE_Pos (20U)
  8176. #define RTC_TAFCR_PC14VALUE_Msk (0x1U << RTC_TAFCR_PC14VALUE_Pos) /*!< 0x00100000 */
  8177. #define RTC_TAFCR_PC14VALUE RTC_TAFCR_PC14VALUE_Msk
  8178. #define RTC_TAFCR_PC13MODE_Pos (19U)
  8179. #define RTC_TAFCR_PC13MODE_Msk (0x1U << RTC_TAFCR_PC13MODE_Pos) /*!< 0x00080000 */
  8180. #define RTC_TAFCR_PC13MODE RTC_TAFCR_PC13MODE_Msk
  8181. #define RTC_TAFCR_PC13VALUE_Pos (18U)
  8182. #define RTC_TAFCR_PC13VALUE_Msk (0x1U << RTC_TAFCR_PC13VALUE_Pos) /*!< 0x00040000 */
  8183. #define RTC_TAFCR_PC13VALUE RTC_TAFCR_PC13VALUE_Msk
  8184. #define RTC_TAFCR_TAMPPUDIS_Pos (15U)
  8185. #define RTC_TAFCR_TAMPPUDIS_Msk (0x1U << RTC_TAFCR_TAMPPUDIS_Pos) /*!< 0x00008000 */
  8186. #define RTC_TAFCR_TAMPPUDIS RTC_TAFCR_TAMPPUDIS_Msk
  8187. #define RTC_TAFCR_TAMPPRCH_Pos (13U)
  8188. #define RTC_TAFCR_TAMPPRCH_Msk (0x3U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00006000 */
  8189. #define RTC_TAFCR_TAMPPRCH RTC_TAFCR_TAMPPRCH_Msk
  8190. #define RTC_TAFCR_TAMPPRCH_0 (0x1U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00002000 */
  8191. #define RTC_TAFCR_TAMPPRCH_1 (0x2U << RTC_TAFCR_TAMPPRCH_Pos) /*!< 0x00004000 */
  8192. #define RTC_TAFCR_TAMPFLT_Pos (11U)
  8193. #define RTC_TAFCR_TAMPFLT_Msk (0x3U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001800 */
  8194. #define RTC_TAFCR_TAMPFLT RTC_TAFCR_TAMPFLT_Msk
  8195. #define RTC_TAFCR_TAMPFLT_0 (0x1U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00000800 */
  8196. #define RTC_TAFCR_TAMPFLT_1 (0x2U << RTC_TAFCR_TAMPFLT_Pos) /*!< 0x00001000 */
  8197. #define RTC_TAFCR_TAMPFREQ_Pos (8U)
  8198. #define RTC_TAFCR_TAMPFREQ_Msk (0x7U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000700 */
  8199. #define RTC_TAFCR_TAMPFREQ RTC_TAFCR_TAMPFREQ_Msk
  8200. #define RTC_TAFCR_TAMPFREQ_0 (0x1U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000100 */
  8201. #define RTC_TAFCR_TAMPFREQ_1 (0x2U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000200 */
  8202. #define RTC_TAFCR_TAMPFREQ_2 (0x4U << RTC_TAFCR_TAMPFREQ_Pos) /*!< 0x00000400 */
  8203. #define RTC_TAFCR_TAMPTS_Pos (7U)
  8204. #define RTC_TAFCR_TAMPTS_Msk (0x1U << RTC_TAFCR_TAMPTS_Pos) /*!< 0x00000080 */
  8205. #define RTC_TAFCR_TAMPTS RTC_TAFCR_TAMPTS_Msk
  8206. #define RTC_TAFCR_TAMP3TRG_Pos (6U)
  8207. #define RTC_TAFCR_TAMP3TRG_Msk (0x1U << RTC_TAFCR_TAMP3TRG_Pos) /*!< 0x00000040 */
  8208. #define RTC_TAFCR_TAMP3TRG RTC_TAFCR_TAMP3TRG_Msk
  8209. #define RTC_TAFCR_TAMP3E_Pos (5U)
  8210. #define RTC_TAFCR_TAMP3E_Msk (0x1U << RTC_TAFCR_TAMP3E_Pos) /*!< 0x00000020 */
  8211. #define RTC_TAFCR_TAMP3E RTC_TAFCR_TAMP3E_Msk
  8212. #define RTC_TAFCR_TAMP2TRG_Pos (4U)
  8213. #define RTC_TAFCR_TAMP2TRG_Msk (0x1U << RTC_TAFCR_TAMP2TRG_Pos) /*!< 0x00000010 */
  8214. #define RTC_TAFCR_TAMP2TRG RTC_TAFCR_TAMP2TRG_Msk
  8215. #define RTC_TAFCR_TAMP2E_Pos (3U)
  8216. #define RTC_TAFCR_TAMP2E_Msk (0x1U << RTC_TAFCR_TAMP2E_Pos) /*!< 0x00000008 */
  8217. #define RTC_TAFCR_TAMP2E RTC_TAFCR_TAMP2E_Msk
  8218. #define RTC_TAFCR_TAMPIE_Pos (2U)
  8219. #define RTC_TAFCR_TAMPIE_Msk (0x1U << RTC_TAFCR_TAMPIE_Pos) /*!< 0x00000004 */
  8220. #define RTC_TAFCR_TAMPIE RTC_TAFCR_TAMPIE_Msk
  8221. #define RTC_TAFCR_TAMP1TRG_Pos (1U)
  8222. #define RTC_TAFCR_TAMP1TRG_Msk (0x1U << RTC_TAFCR_TAMP1TRG_Pos) /*!< 0x00000002 */
  8223. #define RTC_TAFCR_TAMP1TRG RTC_TAFCR_TAMP1TRG_Msk
  8224. #define RTC_TAFCR_TAMP1E_Pos (0U)
  8225. #define RTC_TAFCR_TAMP1E_Msk (0x1U << RTC_TAFCR_TAMP1E_Pos) /*!< 0x00000001 */
  8226. #define RTC_TAFCR_TAMP1E RTC_TAFCR_TAMP1E_Msk
  8227. /* Reference defines */
  8228. #define RTC_TAFCR_ALARMOUTTYPE RTC_TAFCR_PC13VALUE
  8229. /******************** Bits definition for RTC_ALRMASSR register ************/
  8230. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  8231. #define RTC_ALRMASSR_MASKSS_Msk (0xFU << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  8232. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  8233. #define RTC_ALRMASSR_MASKSS_0 (0x1U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  8234. #define RTC_ALRMASSR_MASKSS_1 (0x2U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  8235. #define RTC_ALRMASSR_MASKSS_2 (0x4U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  8236. #define RTC_ALRMASSR_MASKSS_3 (0x8U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  8237. #define RTC_ALRMASSR_SS_Pos (0U)
  8238. #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  8239. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  8240. /******************** Bits definition for RTC_BKP0R register ***************/
  8241. #define RTC_BKP0R_Pos (0U)
  8242. #define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  8243. #define RTC_BKP0R RTC_BKP0R_Msk
  8244. /******************** Bits definition for RTC_BKP1R register ***************/
  8245. #define RTC_BKP1R_Pos (0U)
  8246. #define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  8247. #define RTC_BKP1R RTC_BKP1R_Msk
  8248. /******************** Bits definition for RTC_BKP2R register ***************/
  8249. #define RTC_BKP2R_Pos (0U)
  8250. #define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  8251. #define RTC_BKP2R RTC_BKP2R_Msk
  8252. /******************** Bits definition for RTC_BKP3R register ***************/
  8253. #define RTC_BKP3R_Pos (0U)
  8254. #define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  8255. #define RTC_BKP3R RTC_BKP3R_Msk
  8256. /******************** Bits definition for RTC_BKP4R register ***************/
  8257. #define RTC_BKP4R_Pos (0U)
  8258. #define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  8259. #define RTC_BKP4R RTC_BKP4R_Msk
  8260. /******************** Number of backup registers ******************************/
  8261. #define RTC_BKP_NUMBER 0x00000005U
  8262. /*****************************************************************************/
  8263. /* */
  8264. /* Serial Peripheral Interface (SPI) */
  8265. /* */
  8266. /*****************************************************************************/
  8267. /*
  8268. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  8269. */
  8270. #define SPI_I2S_SUPPORT /*!< I2S support */
  8271. /******************* Bit definition for SPI_CR1 register *******************/
  8272. #define SPI_CR1_CPHA_Pos (0U)
  8273. #define SPI_CR1_CPHA_Msk (0x1U << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */
  8274. #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!< Clock Phase */
  8275. #define SPI_CR1_CPOL_Pos (1U)
  8276. #define SPI_CR1_CPOL_Msk (0x1U << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */
  8277. #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!< Clock Polarity */
  8278. #define SPI_CR1_MSTR_Pos (2U)
  8279. #define SPI_CR1_MSTR_Msk (0x1U << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */
  8280. #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!< Master Selection */
  8281. #define SPI_CR1_BR_Pos (3U)
  8282. #define SPI_CR1_BR_Msk (0x7U << SPI_CR1_BR_Pos) /*!< 0x00000038 */
  8283. #define SPI_CR1_BR SPI_CR1_BR_Msk /*!< BR[2:0] bits (Baud Rate Control) */
  8284. #define SPI_CR1_BR_0 (0x1U << SPI_CR1_BR_Pos) /*!< 0x00000008 */
  8285. #define SPI_CR1_BR_1 (0x2U << SPI_CR1_BR_Pos) /*!< 0x00000010 */
  8286. #define SPI_CR1_BR_2 (0x4U << SPI_CR1_BR_Pos) /*!< 0x00000020 */
  8287. #define SPI_CR1_SPE_Pos (6U)
  8288. #define SPI_CR1_SPE_Msk (0x1U << SPI_CR1_SPE_Pos) /*!< 0x00000040 */
  8289. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!< SPI Enable */
  8290. #define SPI_CR1_LSBFIRST_Pos (7U)
  8291. #define SPI_CR1_LSBFIRST_Msk (0x1U << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */
  8292. #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!< Frame Format */
  8293. #define SPI_CR1_SSI_Pos (8U)
  8294. #define SPI_CR1_SSI_Msk (0x1U << SPI_CR1_SSI_Pos) /*!< 0x00000100 */
  8295. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!< Internal slave select */
  8296. #define SPI_CR1_SSM_Pos (9U)
  8297. #define SPI_CR1_SSM_Msk (0x1U << SPI_CR1_SSM_Pos) /*!< 0x00000200 */
  8298. #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!< Software slave management */
  8299. #define SPI_CR1_RXONLY_Pos (10U)
  8300. #define SPI_CR1_RXONLY_Msk (0x1U << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */
  8301. #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!< Receive only */
  8302. #define SPI_CR1_CRCL_Pos (11U)
  8303. #define SPI_CR1_CRCL_Msk (0x1U << SPI_CR1_CRCL_Pos) /*!< 0x00000800 */
  8304. #define SPI_CR1_CRCL SPI_CR1_CRCL_Msk /*!< CRC Length */
  8305. #define SPI_CR1_CRCNEXT_Pos (12U)
  8306. #define SPI_CR1_CRCNEXT_Msk (0x1U << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */
  8307. #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!< Transmit CRC next */
  8308. #define SPI_CR1_CRCEN_Pos (13U)
  8309. #define SPI_CR1_CRCEN_Msk (0x1U << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */
  8310. #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!< Hardware CRC calculation enable */
  8311. #define SPI_CR1_BIDIOE_Pos (14U)
  8312. #define SPI_CR1_BIDIOE_Msk (0x1U << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */
  8313. #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!< Output enable in bidirectional mode */
  8314. #define SPI_CR1_BIDIMODE_Pos (15U)
  8315. #define SPI_CR1_BIDIMODE_Msk (0x1U << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */
  8316. #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!< Bidirectional data mode enable */
  8317. /******************* Bit definition for SPI_CR2 register *******************/
  8318. #define SPI_CR2_RXDMAEN_Pos (0U)
  8319. #define SPI_CR2_RXDMAEN_Msk (0x1U << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */
  8320. #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */
  8321. #define SPI_CR2_TXDMAEN_Pos (1U)
  8322. #define SPI_CR2_TXDMAEN_Msk (0x1U << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */
  8323. #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */
  8324. #define SPI_CR2_SSOE_Pos (2U)
  8325. #define SPI_CR2_SSOE_Msk (0x1U << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */
  8326. #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */
  8327. #define SPI_CR2_NSSP_Pos (3U)
  8328. #define SPI_CR2_NSSP_Msk (0x1U << SPI_CR2_NSSP_Pos) /*!< 0x00000008 */
  8329. #define SPI_CR2_NSSP SPI_CR2_NSSP_Msk /*!< NSS pulse management Enable */
  8330. #define SPI_CR2_FRF_Pos (4U)
  8331. #define SPI_CR2_FRF_Msk (0x1U << SPI_CR2_FRF_Pos) /*!< 0x00000010 */
  8332. #define SPI_CR2_FRF SPI_CR2_FRF_Msk /*!< Frame Format Enable */
  8333. #define SPI_CR2_ERRIE_Pos (5U)
  8334. #define SPI_CR2_ERRIE_Msk (0x1U << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */
  8335. #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */
  8336. #define SPI_CR2_RXNEIE_Pos (6U)
  8337. #define SPI_CR2_RXNEIE_Msk (0x1U << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */
  8338. #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */
  8339. #define SPI_CR2_TXEIE_Pos (7U)
  8340. #define SPI_CR2_TXEIE_Msk (0x1U << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */
  8341. #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */
  8342. #define SPI_CR2_DS_Pos (8U)
  8343. #define SPI_CR2_DS_Msk (0xFU << SPI_CR2_DS_Pos) /*!< 0x00000F00 */
  8344. #define SPI_CR2_DS SPI_CR2_DS_Msk /*!< DS[3:0] Data Size */
  8345. #define SPI_CR2_DS_0 (0x1U << SPI_CR2_DS_Pos) /*!< 0x00000100 */
  8346. #define SPI_CR2_DS_1 (0x2U << SPI_CR2_DS_Pos) /*!< 0x00000200 */
  8347. #define SPI_CR2_DS_2 (0x4U << SPI_CR2_DS_Pos) /*!< 0x00000400 */
  8348. #define SPI_CR2_DS_3 (0x8U << SPI_CR2_DS_Pos) /*!< 0x00000800 */
  8349. #define SPI_CR2_FRXTH_Pos (12U)
  8350. #define SPI_CR2_FRXTH_Msk (0x1U << SPI_CR2_FRXTH_Pos) /*!< 0x00001000 */
  8351. #define SPI_CR2_FRXTH SPI_CR2_FRXTH_Msk /*!< FIFO reception Threshold */
  8352. #define SPI_CR2_LDMARX_Pos (13U)
  8353. #define SPI_CR2_LDMARX_Msk (0x1U << SPI_CR2_LDMARX_Pos) /*!< 0x00002000 */
  8354. #define SPI_CR2_LDMARX SPI_CR2_LDMARX_Msk /*!< Last DMA transfer for reception */
  8355. #define SPI_CR2_LDMATX_Pos (14U)
  8356. #define SPI_CR2_LDMATX_Msk (0x1U << SPI_CR2_LDMATX_Pos) /*!< 0x00004000 */
  8357. #define SPI_CR2_LDMATX SPI_CR2_LDMATX_Msk /*!< Last DMA transfer for transmission */
  8358. /******************** Bit definition for SPI_SR register *******************/
  8359. #define SPI_SR_RXNE_Pos (0U)
  8360. #define SPI_SR_RXNE_Msk (0x1U << SPI_SR_RXNE_Pos) /*!< 0x00000001 */
  8361. #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */
  8362. #define SPI_SR_TXE_Pos (1U)
  8363. #define SPI_SR_TXE_Msk (0x1U << SPI_SR_TXE_Pos) /*!< 0x00000002 */
  8364. #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */
  8365. #define SPI_SR_CHSIDE_Pos (2U)
  8366. #define SPI_SR_CHSIDE_Msk (0x1U << SPI_SR_CHSIDE_Pos) /*!< 0x00000004 */
  8367. #define SPI_SR_CHSIDE SPI_SR_CHSIDE_Msk /*!< Channel side */
  8368. #define SPI_SR_UDR_Pos (3U)
  8369. #define SPI_SR_UDR_Msk (0x1U << SPI_SR_UDR_Pos) /*!< 0x00000008 */
  8370. #define SPI_SR_UDR SPI_SR_UDR_Msk /*!< Underrun flag */
  8371. #define SPI_SR_CRCERR_Pos (4U)
  8372. #define SPI_SR_CRCERR_Msk (0x1U << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */
  8373. #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */
  8374. #define SPI_SR_MODF_Pos (5U)
  8375. #define SPI_SR_MODF_Msk (0x1U << SPI_SR_MODF_Pos) /*!< 0x00000020 */
  8376. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */
  8377. #define SPI_SR_OVR_Pos (6U)
  8378. #define SPI_SR_OVR_Msk (0x1U << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  8379. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */
  8380. #define SPI_SR_BSY_Pos (7U)
  8381. #define SPI_SR_BSY_Msk (0x1U << SPI_SR_BSY_Pos) /*!< 0x00000080 */
  8382. #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */
  8383. #define SPI_SR_FRE_Pos (8U)
  8384. #define SPI_SR_FRE_Msk (0x1U << SPI_SR_FRE_Pos) /*!< 0x00000100 */
  8385. #define SPI_SR_FRE SPI_SR_FRE_Msk /*!< TI frame format error */
  8386. #define SPI_SR_FRLVL_Pos (9U)
  8387. #define SPI_SR_FRLVL_Msk (0x3U << SPI_SR_FRLVL_Pos) /*!< 0x00000600 */
  8388. #define SPI_SR_FRLVL SPI_SR_FRLVL_Msk /*!< FIFO Reception Level */
  8389. #define SPI_SR_FRLVL_0 (0x1U << SPI_SR_FRLVL_Pos) /*!< 0x00000200 */
  8390. #define SPI_SR_FRLVL_1 (0x2U << SPI_SR_FRLVL_Pos) /*!< 0x00000400 */
  8391. #define SPI_SR_FTLVL_Pos (11U)
  8392. #define SPI_SR_FTLVL_Msk (0x3U << SPI_SR_FTLVL_Pos) /*!< 0x00001800 */
  8393. #define SPI_SR_FTLVL SPI_SR_FTLVL_Msk /*!< FIFO Transmission Level */
  8394. #define SPI_SR_FTLVL_0 (0x1U << SPI_SR_FTLVL_Pos) /*!< 0x00000800 */
  8395. #define SPI_SR_FTLVL_1 (0x2U << SPI_SR_FTLVL_Pos) /*!< 0x00001000 */
  8396. /******************** Bit definition for SPI_DR register *******************/
  8397. #define SPI_DR_DR_Pos (0U)
  8398. #define SPI_DR_DR_Msk (0xFFFFFFFFU << SPI_DR_DR_Pos) /*!< 0xFFFFFFFF */
  8399. #define SPI_DR_DR SPI_DR_DR_Msk /*!< Data Register */
  8400. /******************* Bit definition for SPI_CRCPR register *****************/
  8401. #define SPI_CRCPR_CRCPOLY_Pos (0U)
  8402. #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFFFFFU << SPI_CRCPR_CRCPOLY_Pos) /*!< 0xFFFFFFFF */
  8403. #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!< CRC polynomial register */
  8404. /****************** Bit definition for SPI_RXCRCR register *****************/
  8405. #define SPI_RXCRCR_RXCRC_Pos (0U)
  8406. #define SPI_RXCRCR_RXCRC_Msk (0xFFFFFFFFU << SPI_RXCRCR_RXCRC_Pos) /*!< 0xFFFFFFFF */
  8407. #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!< Rx CRC Register */
  8408. /****************** Bit definition for SPI_TXCRCR register *****************/
  8409. #define SPI_TXCRCR_TXCRC_Pos (0U)
  8410. #define SPI_TXCRCR_TXCRC_Msk (0xFFFFFFFFU << SPI_TXCRCR_TXCRC_Pos) /*!< 0xFFFFFFFF */
  8411. #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!< Tx CRC Register */
  8412. /****************** Bit definition for SPI_I2SCFGR register ****************/
  8413. #define SPI_I2SCFGR_CHLEN_Pos (0U)
  8414. #define SPI_I2SCFGR_CHLEN_Msk (0x1U << SPI_I2SCFGR_CHLEN_Pos) /*!< 0x00000001 */
  8415. #define SPI_I2SCFGR_CHLEN SPI_I2SCFGR_CHLEN_Msk /*!<Channel length (number of bits per audio channel) */
  8416. #define SPI_I2SCFGR_DATLEN_Pos (1U)
  8417. #define SPI_I2SCFGR_DATLEN_Msk (0x3U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000006 */
  8418. #define SPI_I2SCFGR_DATLEN SPI_I2SCFGR_DATLEN_Msk /*!<DATLEN[1:0] bits (Data length to be transferred) */
  8419. #define SPI_I2SCFGR_DATLEN_0 (0x1U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000002 */
  8420. #define SPI_I2SCFGR_DATLEN_1 (0x2U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000004 */
  8421. #define SPI_I2SCFGR_CKPOL_Pos (3U)
  8422. #define SPI_I2SCFGR_CKPOL_Msk (0x1U << SPI_I2SCFGR_CKPOL_Pos) /*!< 0x00000008 */
  8423. #define SPI_I2SCFGR_CKPOL SPI_I2SCFGR_CKPOL_Msk /*!<steady state clock polarity */
  8424. #define SPI_I2SCFGR_I2SSTD_Pos (4U)
  8425. #define SPI_I2SCFGR_I2SSTD_Msk (0x3U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000030 */
  8426. #define SPI_I2SCFGR_I2SSTD SPI_I2SCFGR_I2SSTD_Msk /*!<I2SSTD[1:0] bits (I2S standard selection) */
  8427. #define SPI_I2SCFGR_I2SSTD_0 (0x1U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000010 */
  8428. #define SPI_I2SCFGR_I2SSTD_1 (0x2U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000020 */
  8429. #define SPI_I2SCFGR_PCMSYNC_Pos (7U)
  8430. #define SPI_I2SCFGR_PCMSYNC_Msk (0x1U << SPI_I2SCFGR_PCMSYNC_Pos) /*!< 0x00000080 */
  8431. #define SPI_I2SCFGR_PCMSYNC SPI_I2SCFGR_PCMSYNC_Msk /*!<PCM frame synchronization */
  8432. #define SPI_I2SCFGR_I2SCFG_Pos (8U)
  8433. #define SPI_I2SCFGR_I2SCFG_Msk (0x3U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000300 */
  8434. #define SPI_I2SCFGR_I2SCFG SPI_I2SCFGR_I2SCFG_Msk /*!<I2SCFG[1:0] bits (I2S configuration mode) */
  8435. #define SPI_I2SCFGR_I2SCFG_0 (0x1U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000100 */
  8436. #define SPI_I2SCFGR_I2SCFG_1 (0x2U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000200 */
  8437. #define SPI_I2SCFGR_I2SE_Pos (10U)
  8438. #define SPI_I2SCFGR_I2SE_Msk (0x1U << SPI_I2SCFGR_I2SE_Pos) /*!< 0x00000400 */
  8439. #define SPI_I2SCFGR_I2SE SPI_I2SCFGR_I2SE_Msk /*!<I2S Enable */
  8440. #define SPI_I2SCFGR_I2SMOD_Pos (11U)
  8441. #define SPI_I2SCFGR_I2SMOD_Msk (0x1U << SPI_I2SCFGR_I2SMOD_Pos) /*!< 0x00000800 */
  8442. #define SPI_I2SCFGR_I2SMOD SPI_I2SCFGR_I2SMOD_Msk /*!<I2S mode selection */
  8443. /****************** Bit definition for SPI_I2SPR register ******************/
  8444. #define SPI_I2SPR_I2SDIV_Pos (0U)
  8445. #define SPI_I2SPR_I2SDIV_Msk (0xFFU << SPI_I2SPR_I2SDIV_Pos) /*!< 0x000000FF */
  8446. #define SPI_I2SPR_I2SDIV SPI_I2SPR_I2SDIV_Msk /*!<I2S Linear prescaler */
  8447. #define SPI_I2SPR_ODD_Pos (8U)
  8448. #define SPI_I2SPR_ODD_Msk (0x1U << SPI_I2SPR_ODD_Pos) /*!< 0x00000100 */
  8449. #define SPI_I2SPR_ODD SPI_I2SPR_ODD_Msk /*!<Odd factor for the prescaler */
  8450. #define SPI_I2SPR_MCKOE_Pos (9U)
  8451. #define SPI_I2SPR_MCKOE_Msk (0x1U << SPI_I2SPR_MCKOE_Pos) /*!< 0x00000200 */
  8452. #define SPI_I2SPR_MCKOE SPI_I2SPR_MCKOE_Msk /*!<Master Clock Output Enable */
  8453. /*****************************************************************************/
  8454. /* */
  8455. /* System Configuration (SYSCFG) */
  8456. /* */
  8457. /*****************************************************************************/
  8458. /***************** Bit definition for SYSCFG_CFGR1 register ****************/
  8459. #define SYSCFG_CFGR1_MEM_MODE_Pos (0U)
  8460. #define SYSCFG_CFGR1_MEM_MODE_Msk (0x3U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000003 */
  8461. #define SYSCFG_CFGR1_MEM_MODE SYSCFG_CFGR1_MEM_MODE_Msk /*!< SYSCFG_Memory Remap Config */
  8462. #define SYSCFG_CFGR1_MEM_MODE_0 (0x1U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000001 */
  8463. #define SYSCFG_CFGR1_MEM_MODE_1 (0x2U << SYSCFG_CFGR1_MEM_MODE_Pos) /*!< 0x00000002 */
  8464. #define SYSCFG_CFGR1_DMA_RMP_Pos (8U)
  8465. #define SYSCFG_CFGR1_DMA_RMP_Msk (0x7F007FU << SYSCFG_CFGR1_DMA_RMP_Pos) /*!< 0x7F007F00 */
  8466. #define SYSCFG_CFGR1_DMA_RMP SYSCFG_CFGR1_DMA_RMP_Msk /*!< DMA remap mask */
  8467. #define SYSCFG_CFGR1_ADC_DMA_RMP_Pos (8U)
  8468. #define SYSCFG_CFGR1_ADC_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_ADC_DMA_RMP_Pos) /*!< 0x00000100 */
  8469. #define SYSCFG_CFGR1_ADC_DMA_RMP SYSCFG_CFGR1_ADC_DMA_RMP_Msk /*!< ADC DMA remap */
  8470. #define SYSCFG_CFGR1_USART1TX_DMA_RMP_Pos (9U)
  8471. #define SYSCFG_CFGR1_USART1TX_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_USART1TX_DMA_RMP_Pos) /*!< 0x00000200 */
  8472. #define SYSCFG_CFGR1_USART1TX_DMA_RMP SYSCFG_CFGR1_USART1TX_DMA_RMP_Msk /*!< USART1 TX DMA remap */
  8473. #define SYSCFG_CFGR1_USART1RX_DMA_RMP_Pos (10U)
  8474. #define SYSCFG_CFGR1_USART1RX_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_USART1RX_DMA_RMP_Pos) /*!< 0x00000400 */
  8475. #define SYSCFG_CFGR1_USART1RX_DMA_RMP SYSCFG_CFGR1_USART1RX_DMA_RMP_Msk /*!< USART1 RX DMA remap */
  8476. #define SYSCFG_CFGR1_TIM16_DMA_RMP_Pos (11U)
  8477. #define SYSCFG_CFGR1_TIM16_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM16_DMA_RMP_Pos) /*!< 0x00000800 */
  8478. #define SYSCFG_CFGR1_TIM16_DMA_RMP SYSCFG_CFGR1_TIM16_DMA_RMP_Msk /*!< Timer 16 DMA remap */
  8479. #define SYSCFG_CFGR1_TIM17_DMA_RMP_Pos (12U)
  8480. #define SYSCFG_CFGR1_TIM17_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM17_DMA_RMP_Pos) /*!< 0x00001000 */
  8481. #define SYSCFG_CFGR1_TIM17_DMA_RMP SYSCFG_CFGR1_TIM17_DMA_RMP_Msk /*!< Timer 17 DMA remap */
  8482. #define SYSCFG_CFGR1_TIM16_DMA_RMP2_Pos (13U)
  8483. #define SYSCFG_CFGR1_TIM16_DMA_RMP2_Msk (0x1U << SYSCFG_CFGR1_TIM16_DMA_RMP2_Pos) /*!< 0x00002000 */
  8484. #define SYSCFG_CFGR1_TIM16_DMA_RMP2 SYSCFG_CFGR1_TIM16_DMA_RMP2_Msk /*!< Timer 16 DMA remap 2 */
  8485. #define SYSCFG_CFGR1_TIM17_DMA_RMP2_Pos (14U)
  8486. #define SYSCFG_CFGR1_TIM17_DMA_RMP2_Msk (0x1U << SYSCFG_CFGR1_TIM17_DMA_RMP2_Pos) /*!< 0x00004000 */
  8487. #define SYSCFG_CFGR1_TIM17_DMA_RMP2 SYSCFG_CFGR1_TIM17_DMA_RMP2_Msk /*!< Timer 17 DMA remap 2 */
  8488. #define SYSCFG_CFGR1_SPI2_DMA_RMP_Pos (24U)
  8489. #define SYSCFG_CFGR1_SPI2_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_SPI2_DMA_RMP_Pos) /*!< 0x01000000 */
  8490. #define SYSCFG_CFGR1_SPI2_DMA_RMP SYSCFG_CFGR1_SPI2_DMA_RMP_Msk /*!< SPI2 DMA remap */
  8491. #define SYSCFG_CFGR1_USART2_DMA_RMP_Pos (25U)
  8492. #define SYSCFG_CFGR1_USART2_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_USART2_DMA_RMP_Pos) /*!< 0x02000000 */
  8493. #define SYSCFG_CFGR1_USART2_DMA_RMP SYSCFG_CFGR1_USART2_DMA_RMP_Msk /*!< USART2 DMA remap */
  8494. #define SYSCFG_CFGR1_USART3_DMA_RMP_Pos (26U)
  8495. #define SYSCFG_CFGR1_USART3_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_USART3_DMA_RMP_Pos) /*!< 0x04000000 */
  8496. #define SYSCFG_CFGR1_USART3_DMA_RMP SYSCFG_CFGR1_USART3_DMA_RMP_Msk /*!< USART3 DMA remap */
  8497. #define SYSCFG_CFGR1_I2C1_DMA_RMP_Pos (27U)
  8498. #define SYSCFG_CFGR1_I2C1_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_I2C1_DMA_RMP_Pos) /*!< 0x08000000 */
  8499. #define SYSCFG_CFGR1_I2C1_DMA_RMP SYSCFG_CFGR1_I2C1_DMA_RMP_Msk /*!< I2C1 DMA remap */
  8500. #define SYSCFG_CFGR1_TIM1_DMA_RMP_Pos (28U)
  8501. #define SYSCFG_CFGR1_TIM1_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM1_DMA_RMP_Pos) /*!< 0x10000000 */
  8502. #define SYSCFG_CFGR1_TIM1_DMA_RMP SYSCFG_CFGR1_TIM1_DMA_RMP_Msk /*!< TIM1 DMA remap */
  8503. #define SYSCFG_CFGR1_TIM2_DMA_RMP_Pos (29U)
  8504. #define SYSCFG_CFGR1_TIM2_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM2_DMA_RMP_Pos) /*!< 0x20000000 */
  8505. #define SYSCFG_CFGR1_TIM2_DMA_RMP SYSCFG_CFGR1_TIM2_DMA_RMP_Msk /*!< TIM2 DMA remap */
  8506. #define SYSCFG_CFGR1_TIM3_DMA_RMP_Pos (30U)
  8507. #define SYSCFG_CFGR1_TIM3_DMA_RMP_Msk (0x1U << SYSCFG_CFGR1_TIM3_DMA_RMP_Pos) /*!< 0x40000000 */
  8508. #define SYSCFG_CFGR1_TIM3_DMA_RMP SYSCFG_CFGR1_TIM3_DMA_RMP_Msk /*!< TIM3 DMA remap */
  8509. #define SYSCFG_CFGR1_I2C_FMP_PB6_Pos (16U)
  8510. #define SYSCFG_CFGR1_I2C_FMP_PB6_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB6_Pos) /*!< 0x00010000 */
  8511. #define SYSCFG_CFGR1_I2C_FMP_PB6 SYSCFG_CFGR1_I2C_FMP_PB6_Msk /*!< I2C PB6 Fast mode plus */
  8512. #define SYSCFG_CFGR1_I2C_FMP_PB7_Pos (17U)
  8513. #define SYSCFG_CFGR1_I2C_FMP_PB7_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB7_Pos) /*!< 0x00020000 */
  8514. #define SYSCFG_CFGR1_I2C_FMP_PB7 SYSCFG_CFGR1_I2C_FMP_PB7_Msk /*!< I2C PB7 Fast mode plus */
  8515. #define SYSCFG_CFGR1_I2C_FMP_PB8_Pos (18U)
  8516. #define SYSCFG_CFGR1_I2C_FMP_PB8_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB8_Pos) /*!< 0x00040000 */
  8517. #define SYSCFG_CFGR1_I2C_FMP_PB8 SYSCFG_CFGR1_I2C_FMP_PB8_Msk /*!< I2C PB8 Fast mode plus */
  8518. #define SYSCFG_CFGR1_I2C_FMP_PB9_Pos (19U)
  8519. #define SYSCFG_CFGR1_I2C_FMP_PB9_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_PB9_Pos) /*!< 0x00080000 */
  8520. #define SYSCFG_CFGR1_I2C_FMP_PB9 SYSCFG_CFGR1_I2C_FMP_PB9_Msk /*!< I2C PB9 Fast mode plus */
  8521. #define SYSCFG_CFGR1_I2C_FMP_I2C1_Pos (20U)
  8522. #define SYSCFG_CFGR1_I2C_FMP_I2C1_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_I2C1_Pos) /*!< 0x00100000 */
  8523. #define SYSCFG_CFGR1_I2C_FMP_I2C1 SYSCFG_CFGR1_I2C_FMP_I2C1_Msk /*!< Enable Fast Mode Plus on PB10, PB11, PF6 and PF7 */
  8524. #define SYSCFG_CFGR1_I2C_FMP_I2C2_Pos (21U)
  8525. #define SYSCFG_CFGR1_I2C_FMP_I2C2_Msk (0x1U << SYSCFG_CFGR1_I2C_FMP_I2C2_Pos) /*!< 0x00200000 */
  8526. #define SYSCFG_CFGR1_I2C_FMP_I2C2 SYSCFG_CFGR1_I2C_FMP_I2C2_Msk /*!< Enable I2C2 Fast mode plus */
  8527. /***************** Bit definition for SYSCFG_EXTICR1 register **************/
  8528. #define SYSCFG_EXTICR1_EXTI0_Pos (0U)
  8529. #define SYSCFG_EXTICR1_EXTI0_Msk (0xFU << SYSCFG_EXTICR1_EXTI0_Pos) /*!< 0x0000000F */
  8530. #define SYSCFG_EXTICR1_EXTI0 SYSCFG_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */
  8531. #define SYSCFG_EXTICR1_EXTI1_Pos (4U)
  8532. #define SYSCFG_EXTICR1_EXTI1_Msk (0xFU << SYSCFG_EXTICR1_EXTI1_Pos) /*!< 0x000000F0 */
  8533. #define SYSCFG_EXTICR1_EXTI1 SYSCFG_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */
  8534. #define SYSCFG_EXTICR1_EXTI2_Pos (8U)
  8535. #define SYSCFG_EXTICR1_EXTI2_Msk (0xFU << SYSCFG_EXTICR1_EXTI2_Pos) /*!< 0x00000F00 */
  8536. #define SYSCFG_EXTICR1_EXTI2 SYSCFG_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */
  8537. #define SYSCFG_EXTICR1_EXTI3_Pos (12U)
  8538. #define SYSCFG_EXTICR1_EXTI3_Msk (0xFU << SYSCFG_EXTICR1_EXTI3_Pos) /*!< 0x0000F000 */
  8539. #define SYSCFG_EXTICR1_EXTI3 SYSCFG_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */
  8540. /**
  8541. * @brief EXTI0 configuration
  8542. */
  8543. #define SYSCFG_EXTICR1_EXTI0_PA (0x00000000U) /*!< PA[0] pin */
  8544. #define SYSCFG_EXTICR1_EXTI0_PB (0x00000001U) /*!< PB[0] pin */
  8545. #define SYSCFG_EXTICR1_EXTI0_PC (0x00000002U) /*!< PC[0] pin */
  8546. #define SYSCFG_EXTICR1_EXTI0_PD (0x00000003U) /*!< PD[0] pin */
  8547. #define SYSCFG_EXTICR1_EXTI0_PE (0x00000004U) /*!< PE[0] pin */
  8548. #define SYSCFG_EXTICR1_EXTI0_PF (0x00000005U) /*!< PF[0] pin */
  8549. /**
  8550. * @brief EXTI1 configuration
  8551. */
  8552. #define SYSCFG_EXTICR1_EXTI1_PA (0x00000000U) /*!< PA[1] pin */
  8553. #define SYSCFG_EXTICR1_EXTI1_PB (0x00000010U) /*!< PB[1] pin */
  8554. #define SYSCFG_EXTICR1_EXTI1_PC (0x00000020U) /*!< PC[1] pin */
  8555. #define SYSCFG_EXTICR1_EXTI1_PD (0x00000030U) /*!< PD[1] pin */
  8556. #define SYSCFG_EXTICR1_EXTI1_PE (0x00000040U) /*!< PE[1] pin */
  8557. #define SYSCFG_EXTICR1_EXTI1_PF (0x00000050U) /*!< PF[1] pin */
  8558. /**
  8559. * @brief EXTI2 configuration
  8560. */
  8561. #define SYSCFG_EXTICR1_EXTI2_PA (0x00000000U) /*!< PA[2] pin */
  8562. #define SYSCFG_EXTICR1_EXTI2_PB (0x00000100U) /*!< PB[2] pin */
  8563. #define SYSCFG_EXTICR1_EXTI2_PC (0x00000200U) /*!< PC[2] pin */
  8564. #define SYSCFG_EXTICR1_EXTI2_PD (0x00000300U) /*!< PD[2] pin */
  8565. #define SYSCFG_EXTICR1_EXTI2_PE (0x00000400U) /*!< PE[2] pin */
  8566. #define SYSCFG_EXTICR1_EXTI2_PF (0x00000500U) /*!< PF[2] pin */
  8567. /**
  8568. * @brief EXTI3 configuration
  8569. */
  8570. #define SYSCFG_EXTICR1_EXTI3_PA (0x00000000U) /*!< PA[3] pin */
  8571. #define SYSCFG_EXTICR1_EXTI3_PB (0x00001000U) /*!< PB[3] pin */
  8572. #define SYSCFG_EXTICR1_EXTI3_PC (0x00002000U) /*!< PC[3] pin */
  8573. #define SYSCFG_EXTICR1_EXTI3_PD (0x00003000U) /*!< PD[3] pin */
  8574. #define SYSCFG_EXTICR1_EXTI3_PE (0x00004000U) /*!< PE[3] pin */
  8575. #define SYSCFG_EXTICR1_EXTI3_PF (0x00005000U) /*!< PF[3] pin */
  8576. /***************** Bit definition for SYSCFG_EXTICR2 register **************/
  8577. #define SYSCFG_EXTICR2_EXTI4_Pos (0U)
  8578. #define SYSCFG_EXTICR2_EXTI4_Msk (0xFU << SYSCFG_EXTICR2_EXTI4_Pos) /*!< 0x0000000F */
  8579. #define SYSCFG_EXTICR2_EXTI4 SYSCFG_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */
  8580. #define SYSCFG_EXTICR2_EXTI5_Pos (4U)
  8581. #define SYSCFG_EXTICR2_EXTI5_Msk (0xFU << SYSCFG_EXTICR2_EXTI5_Pos) /*!< 0x000000F0 */
  8582. #define SYSCFG_EXTICR2_EXTI5 SYSCFG_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */
  8583. #define SYSCFG_EXTICR2_EXTI6_Pos (8U)
  8584. #define SYSCFG_EXTICR2_EXTI6_Msk (0xFU << SYSCFG_EXTICR2_EXTI6_Pos) /*!< 0x00000F00 */
  8585. #define SYSCFG_EXTICR2_EXTI6 SYSCFG_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */
  8586. #define SYSCFG_EXTICR2_EXTI7_Pos (12U)
  8587. #define SYSCFG_EXTICR2_EXTI7_Msk (0xFU << SYSCFG_EXTICR2_EXTI7_Pos) /*!< 0x0000F000 */
  8588. #define SYSCFG_EXTICR2_EXTI7 SYSCFG_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */
  8589. /**
  8590. * @brief EXTI4 configuration
  8591. */
  8592. #define SYSCFG_EXTICR2_EXTI4_PA (0x00000000U) /*!< PA[4] pin */
  8593. #define SYSCFG_EXTICR2_EXTI4_PB (0x00000001U) /*!< PB[4] pin */
  8594. #define SYSCFG_EXTICR2_EXTI4_PC (0x00000002U) /*!< PC[4] pin */
  8595. #define SYSCFG_EXTICR2_EXTI4_PD (0x00000003U) /*!< PD[4] pin */
  8596. #define SYSCFG_EXTICR2_EXTI4_PE (0x00000004U) /*!< PE[4] pin */
  8597. #define SYSCFG_EXTICR2_EXTI4_PF (0x00000005U) /*!< PF[4] pin */
  8598. /**
  8599. * @brief EXTI5 configuration
  8600. */
  8601. #define SYSCFG_EXTICR2_EXTI5_PA (0x00000000U) /*!< PA[5] pin */
  8602. #define SYSCFG_EXTICR2_EXTI5_PB (0x00000010U) /*!< PB[5] pin */
  8603. #define SYSCFG_EXTICR2_EXTI5_PC (0x00000020U) /*!< PC[5] pin */
  8604. #define SYSCFG_EXTICR2_EXTI5_PD (0x00000030U) /*!< PD[5] pin */
  8605. #define SYSCFG_EXTICR2_EXTI5_PE (0x00000040U) /*!< PE[5] pin */
  8606. #define SYSCFG_EXTICR2_EXTI5_PF (0x00000050U) /*!< PF[5] pin */
  8607. /**
  8608. * @brief EXTI6 configuration
  8609. */
  8610. #define SYSCFG_EXTICR2_EXTI6_PA (0x00000000U) /*!< PA[6] pin */
  8611. #define SYSCFG_EXTICR2_EXTI6_PB (0x00000100U) /*!< PB[6] pin */
  8612. #define SYSCFG_EXTICR2_EXTI6_PC (0x00000200U) /*!< PC[6] pin */
  8613. #define SYSCFG_EXTICR2_EXTI6_PD (0x00000300U) /*!< PD[6] pin */
  8614. #define SYSCFG_EXTICR2_EXTI6_PE (0x00000400U) /*!< PE[6] pin */
  8615. #define SYSCFG_EXTICR2_EXTI6_PF (0x00000500U) /*!< PF[6] pin */
  8616. /**
  8617. * @brief EXTI7 configuration
  8618. */
  8619. #define SYSCFG_EXTICR2_EXTI7_PA (0x00000000U) /*!< PA[7] pin */
  8620. #define SYSCFG_EXTICR2_EXTI7_PB (0x00001000U) /*!< PB[7] pin */
  8621. #define SYSCFG_EXTICR2_EXTI7_PC (0x00002000U) /*!< PC[7] pin */
  8622. #define SYSCFG_EXTICR2_EXTI7_PD (0x00003000U) /*!< PD[7] pin */
  8623. #define SYSCFG_EXTICR2_EXTI7_PE (0x00004000U) /*!< PE[7] pin */
  8624. #define SYSCFG_EXTICR2_EXTI7_PF (0x00005000U) /*!< PF[7] pin */
  8625. /***************** Bit definition for SYSCFG_EXTICR3 register **************/
  8626. #define SYSCFG_EXTICR3_EXTI8_Pos (0U)
  8627. #define SYSCFG_EXTICR3_EXTI8_Msk (0xFU << SYSCFG_EXTICR3_EXTI8_Pos) /*!< 0x0000000F */
  8628. #define SYSCFG_EXTICR3_EXTI8 SYSCFG_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */
  8629. #define SYSCFG_EXTICR3_EXTI9_Pos (4U)
  8630. #define SYSCFG_EXTICR3_EXTI9_Msk (0xFU << SYSCFG_EXTICR3_EXTI9_Pos) /*!< 0x000000F0 */
  8631. #define SYSCFG_EXTICR3_EXTI9 SYSCFG_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */
  8632. #define SYSCFG_EXTICR3_EXTI10_Pos (8U)
  8633. #define SYSCFG_EXTICR3_EXTI10_Msk (0xFU << SYSCFG_EXTICR3_EXTI10_Pos) /*!< 0x00000F00 */
  8634. #define SYSCFG_EXTICR3_EXTI10 SYSCFG_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */
  8635. #define SYSCFG_EXTICR3_EXTI11_Pos (12U)
  8636. #define SYSCFG_EXTICR3_EXTI11_Msk (0xFU << SYSCFG_EXTICR3_EXTI11_Pos) /*!< 0x0000F000 */
  8637. #define SYSCFG_EXTICR3_EXTI11 SYSCFG_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */
  8638. /**
  8639. * @brief EXTI8 configuration
  8640. */
  8641. #define SYSCFG_EXTICR3_EXTI8_PA (0x00000000U) /*!< PA[8] pin */
  8642. #define SYSCFG_EXTICR3_EXTI8_PB (0x00000001U) /*!< PB[8] pin */
  8643. #define SYSCFG_EXTICR3_EXTI8_PC (0x00000002U) /*!< PC[8] pin */
  8644. #define SYSCFG_EXTICR3_EXTI8_PD (0x00000003U) /*!< PD[8] pin */
  8645. #define SYSCFG_EXTICR3_EXTI8_PE (0x00000004U) /*!< PE[8] pin */
  8646. /**
  8647. * @brief EXTI9 configuration
  8648. */
  8649. #define SYSCFG_EXTICR3_EXTI9_PA (0x00000000U) /*!< PA[9] pin */
  8650. #define SYSCFG_EXTICR3_EXTI9_PB (0x00000010U) /*!< PB[9] pin */
  8651. #define SYSCFG_EXTICR3_EXTI9_PC (0x00000020U) /*!< PC[9] pin */
  8652. #define SYSCFG_EXTICR3_EXTI9_PD (0x00000030U) /*!< PD[9] pin */
  8653. #define SYSCFG_EXTICR3_EXTI9_PE (0x00000040U) /*!< PE[9] pin */
  8654. #define SYSCFG_EXTICR3_EXTI9_PF (0x00000050U) /*!< PF[9] pin */
  8655. /**
  8656. * @brief EXTI10 configuration
  8657. */
  8658. #define SYSCFG_EXTICR3_EXTI10_PA (0x00000000U) /*!< PA[10] pin */
  8659. #define SYSCFG_EXTICR3_EXTI10_PB (0x00000100U) /*!< PB[10] pin */
  8660. #define SYSCFG_EXTICR3_EXTI10_PC (0x00000200U) /*!< PC[10] pin */
  8661. #define SYSCFG_EXTICR3_EXTI10_PD (0x00000300U) /*!< PD[10] pin */
  8662. #define SYSCFG_EXTICR3_EXTI10_PE (0x00000400U) /*!< PE[10] pin */
  8663. #define SYSCFG_EXTICR3_EXTI10_PF (0x00000500U) /*!< PF[10] pin */
  8664. /**
  8665. * @brief EXTI11 configuration
  8666. */
  8667. #define SYSCFG_EXTICR3_EXTI11_PA (0x00000000U) /*!< PA[11] pin */
  8668. #define SYSCFG_EXTICR3_EXTI11_PB (0x00001000U) /*!< PB[11] pin */
  8669. #define SYSCFG_EXTICR3_EXTI11_PC (0x00002000U) /*!< PC[11] pin */
  8670. #define SYSCFG_EXTICR3_EXTI11_PD (0x00003000U) /*!< PD[11] pin */
  8671. #define SYSCFG_EXTICR3_EXTI11_PE (0x00004000U) /*!< PE[11] pin */
  8672. /***************** Bit definition for SYSCFG_EXTICR4 register **************/
  8673. #define SYSCFG_EXTICR4_EXTI12_Pos (0U)
  8674. #define SYSCFG_EXTICR4_EXTI12_Msk (0xFU << SYSCFG_EXTICR4_EXTI12_Pos) /*!< 0x0000000F */
  8675. #define SYSCFG_EXTICR4_EXTI12 SYSCFG_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */
  8676. #define SYSCFG_EXTICR4_EXTI13_Pos (4U)
  8677. #define SYSCFG_EXTICR4_EXTI13_Msk (0xFU << SYSCFG_EXTICR4_EXTI13_Pos) /*!< 0x000000F0 */
  8678. #define SYSCFG_EXTICR4_EXTI13 SYSCFG_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */
  8679. #define SYSCFG_EXTICR4_EXTI14_Pos (8U)
  8680. #define SYSCFG_EXTICR4_EXTI14_Msk (0xFU << SYSCFG_EXTICR4_EXTI14_Pos) /*!< 0x00000F00 */
  8681. #define SYSCFG_EXTICR4_EXTI14 SYSCFG_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */
  8682. #define SYSCFG_EXTICR4_EXTI15_Pos (12U)
  8683. #define SYSCFG_EXTICR4_EXTI15_Msk (0xFU << SYSCFG_EXTICR4_EXTI15_Pos) /*!< 0x0000F000 */
  8684. #define SYSCFG_EXTICR4_EXTI15 SYSCFG_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */
  8685. /**
  8686. * @brief EXTI12 configuration
  8687. */
  8688. #define SYSCFG_EXTICR4_EXTI12_PA (0x00000000U) /*!< PA[12] pin */
  8689. #define SYSCFG_EXTICR4_EXTI12_PB (0x00000001U) /*!< PB[12] pin */
  8690. #define SYSCFG_EXTICR4_EXTI12_PC (0x00000002U) /*!< PC[12] pin */
  8691. #define SYSCFG_EXTICR4_EXTI12_PD (0x00000003U) /*!< PD[12] pin */
  8692. #define SYSCFG_EXTICR4_EXTI12_PE (0x00000004U) /*!< PE[12] pin */
  8693. /**
  8694. * @brief EXTI13 configuration
  8695. */
  8696. #define SYSCFG_EXTICR4_EXTI13_PA (0x00000000U) /*!< PA[13] pin */
  8697. #define SYSCFG_EXTICR4_EXTI13_PB (0x00000010U) /*!< PB[13] pin */
  8698. #define SYSCFG_EXTICR4_EXTI13_PC (0x00000020U) /*!< PC[13] pin */
  8699. #define SYSCFG_EXTICR4_EXTI13_PD (0x00000030U) /*!< PD[13] pin */
  8700. #define SYSCFG_EXTICR4_EXTI13_PE (0x00000040U) /*!< PE[13] pin */
  8701. /**
  8702. * @brief EXTI14 configuration
  8703. */
  8704. #define SYSCFG_EXTICR4_EXTI14_PA (0x00000000U) /*!< PA[14] pin */
  8705. #define SYSCFG_EXTICR4_EXTI14_PB (0x00000100U) /*!< PB[14] pin */
  8706. #define SYSCFG_EXTICR4_EXTI14_PC (0x00000200U) /*!< PC[14] pin */
  8707. #define SYSCFG_EXTICR4_EXTI14_PD (0x00000300U) /*!< PD[14] pin */
  8708. #define SYSCFG_EXTICR4_EXTI14_PE (0x00000400U) /*!< PE[14] pin */
  8709. /**
  8710. * @brief EXTI15 configuration
  8711. */
  8712. #define SYSCFG_EXTICR4_EXTI15_PA (0x00000000U) /*!< PA[15] pin */
  8713. #define SYSCFG_EXTICR4_EXTI15_PB (0x00001000U) /*!< PB[15] pin */
  8714. #define SYSCFG_EXTICR4_EXTI15_PC (0x00002000U) /*!< PC[15] pin */
  8715. #define SYSCFG_EXTICR4_EXTI15_PD (0x00003000U) /*!< PD[15] pin */
  8716. #define SYSCFG_EXTICR4_EXTI15_PE (0x00004000U) /*!< PE[15] pin */
  8717. /***************** Bit definition for SYSCFG_CFGR2 register ****************/
  8718. #define SYSCFG_CFGR2_LOCKUP_LOCK_Pos (0U)
  8719. #define SYSCFG_CFGR2_LOCKUP_LOCK_Msk (0x1U << SYSCFG_CFGR2_LOCKUP_LOCK_Pos) /*!< 0x00000001 */
  8720. #define SYSCFG_CFGR2_LOCKUP_LOCK SYSCFG_CFGR2_LOCKUP_LOCK_Msk /*!< Enables and locks the LOCKUP (Hardfault) output of CortexM0 with Break Input of TIMER1 */
  8721. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos (1U)
  8722. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk (0x1U << SYSCFG_CFGR2_SRAM_PARITY_LOCK_Pos) /*!< 0x00000002 */
  8723. #define SYSCFG_CFGR2_SRAM_PARITY_LOCK SYSCFG_CFGR2_SRAM_PARITY_LOCK_Msk /*!< Enables and locks the SRAM_PARITY error signal with Break Input of TIMER1 */
  8724. #define SYSCFG_CFGR2_PVD_LOCK_Pos (2U)
  8725. #define SYSCFG_CFGR2_PVD_LOCK_Msk (0x1U << SYSCFG_CFGR2_PVD_LOCK_Pos) /*!< 0x00000004 */
  8726. #define SYSCFG_CFGR2_PVD_LOCK SYSCFG_CFGR2_PVD_LOCK_Msk /*!< Enables and locks the PVD connection with Timer1 Break Input and also the PVD_EN and PVDSEL[2:0] bits of the Power Control Interface */
  8727. #define SYSCFG_CFGR2_SRAM_PEF_Pos (8U)
  8728. #define SYSCFG_CFGR2_SRAM_PEF_Msk (0x1U << SYSCFG_CFGR2_SRAM_PEF_Pos) /*!< 0x00000100 */
  8729. #define SYSCFG_CFGR2_SRAM_PEF SYSCFG_CFGR2_SRAM_PEF_Msk /*!< SRAM Parity error flag */
  8730. #define SYSCFG_CFGR2_SRAM_PE SYSCFG_CFGR2_SRAM_PEF /*!< SRAM Parity error flag (define maintained for legacy purpose) */
  8731. /*****************************************************************************/
  8732. /* */
  8733. /* Timers (TIM) */
  8734. /* */
  8735. /*****************************************************************************/
  8736. /******************* Bit definition for TIM_CR1 register *******************/
  8737. #define TIM_CR1_CEN_Pos (0U)
  8738. #define TIM_CR1_CEN_Msk (0x1U << TIM_CR1_CEN_Pos) /*!< 0x00000001 */
  8739. #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */
  8740. #define TIM_CR1_UDIS_Pos (1U)
  8741. #define TIM_CR1_UDIS_Msk (0x1U << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */
  8742. #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */
  8743. #define TIM_CR1_URS_Pos (2U)
  8744. #define TIM_CR1_URS_Msk (0x1U << TIM_CR1_URS_Pos) /*!< 0x00000004 */
  8745. #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */
  8746. #define TIM_CR1_OPM_Pos (3U)
  8747. #define TIM_CR1_OPM_Msk (0x1U << TIM_CR1_OPM_Pos) /*!< 0x00000008 */
  8748. #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */
  8749. #define TIM_CR1_DIR_Pos (4U)
  8750. #define TIM_CR1_DIR_Msk (0x1U << TIM_CR1_DIR_Pos) /*!< 0x00000010 */
  8751. #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */
  8752. #define TIM_CR1_CMS_Pos (5U)
  8753. #define TIM_CR1_CMS_Msk (0x3U << TIM_CR1_CMS_Pos) /*!< 0x00000060 */
  8754. #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */
  8755. #define TIM_CR1_CMS_0 (0x1U << TIM_CR1_CMS_Pos) /*!< 0x00000020 */
  8756. #define TIM_CR1_CMS_1 (0x2U << TIM_CR1_CMS_Pos) /*!< 0x00000040 */
  8757. #define TIM_CR1_ARPE_Pos (7U)
  8758. #define TIM_CR1_ARPE_Msk (0x1U << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */
  8759. #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */
  8760. #define TIM_CR1_CKD_Pos (8U)
  8761. #define TIM_CR1_CKD_Msk (0x3U << TIM_CR1_CKD_Pos) /*!< 0x00000300 */
  8762. #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */
  8763. #define TIM_CR1_CKD_0 (0x1U << TIM_CR1_CKD_Pos) /*!< 0x00000100 */
  8764. #define TIM_CR1_CKD_1 (0x2U << TIM_CR1_CKD_Pos) /*!< 0x00000200 */
  8765. /******************* Bit definition for TIM_CR2 register *******************/
  8766. #define TIM_CR2_CCPC_Pos (0U)
  8767. #define TIM_CR2_CCPC_Msk (0x1U << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  8768. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  8769. #define TIM_CR2_CCUS_Pos (2U)
  8770. #define TIM_CR2_CCUS_Msk (0x1U << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  8771. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  8772. #define TIM_CR2_CCDS_Pos (3U)
  8773. #define TIM_CR2_CCDS_Msk (0x1U << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  8774. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  8775. #define TIM_CR2_MMS_Pos (4U)
  8776. #define TIM_CR2_MMS_Msk (0x7U << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  8777. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  8778. #define TIM_CR2_MMS_0 (0x1U << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  8779. #define TIM_CR2_MMS_1 (0x2U << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  8780. #define TIM_CR2_MMS_2 (0x4U << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  8781. #define TIM_CR2_TI1S_Pos (7U)
  8782. #define TIM_CR2_TI1S_Msk (0x1U << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  8783. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  8784. #define TIM_CR2_OIS1_Pos (8U)
  8785. #define TIM_CR2_OIS1_Msk (0x1U << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  8786. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  8787. #define TIM_CR2_OIS1N_Pos (9U)
  8788. #define TIM_CR2_OIS1N_Msk (0x1U << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  8789. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  8790. #define TIM_CR2_OIS2_Pos (10U)
  8791. #define TIM_CR2_OIS2_Msk (0x1U << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  8792. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  8793. #define TIM_CR2_OIS2N_Pos (11U)
  8794. #define TIM_CR2_OIS2N_Msk (0x1U << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  8795. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  8796. #define TIM_CR2_OIS3_Pos (12U)
  8797. #define TIM_CR2_OIS3_Msk (0x1U << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  8798. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  8799. #define TIM_CR2_OIS3N_Pos (13U)
  8800. #define TIM_CR2_OIS3N_Msk (0x1U << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  8801. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  8802. #define TIM_CR2_OIS4_Pos (14U)
  8803. #define TIM_CR2_OIS4_Msk (0x1U << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  8804. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  8805. /******************* Bit definition for TIM_SMCR register ******************/
  8806. #define TIM_SMCR_SMS_Pos (0U)
  8807. #define TIM_SMCR_SMS_Msk (0x7U << TIM_SMCR_SMS_Pos) /*!< 0x00000007 */
  8808. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  8809. #define TIM_SMCR_SMS_0 (0x1U << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */
  8810. #define TIM_SMCR_SMS_1 (0x2U << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */
  8811. #define TIM_SMCR_SMS_2 (0x4U << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */
  8812. #define TIM_SMCR_OCCS_Pos (3U)
  8813. #define TIM_SMCR_OCCS_Msk (0x1U << TIM_SMCR_OCCS_Pos) /*!< 0x00000008 */
  8814. #define TIM_SMCR_OCCS TIM_SMCR_OCCS_Msk /*!< OCREF clear selection */
  8815. #define TIM_SMCR_TS_Pos (4U)
  8816. #define TIM_SMCR_TS_Msk (0x7U << TIM_SMCR_TS_Pos) /*!< 0x00000070 */
  8817. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */
  8818. #define TIM_SMCR_TS_0 (0x1U << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  8819. #define TIM_SMCR_TS_1 (0x2U << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  8820. #define TIM_SMCR_TS_2 (0x4U << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  8821. #define TIM_SMCR_MSM_Pos (7U)
  8822. #define TIM_SMCR_MSM_Msk (0x1U << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  8823. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  8824. #define TIM_SMCR_ETF_Pos (8U)
  8825. #define TIM_SMCR_ETF_Msk (0xFU << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  8826. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  8827. #define TIM_SMCR_ETF_0 (0x1U << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  8828. #define TIM_SMCR_ETF_1 (0x2U << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  8829. #define TIM_SMCR_ETF_2 (0x4U << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  8830. #define TIM_SMCR_ETF_3 (0x8U << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  8831. #define TIM_SMCR_ETPS_Pos (12U)
  8832. #define TIM_SMCR_ETPS_Msk (0x3U << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  8833. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  8834. #define TIM_SMCR_ETPS_0 (0x1U << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  8835. #define TIM_SMCR_ETPS_1 (0x2U << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  8836. #define TIM_SMCR_ECE_Pos (14U)
  8837. #define TIM_SMCR_ECE_Msk (0x1U << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  8838. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  8839. #define TIM_SMCR_ETP_Pos (15U)
  8840. #define TIM_SMCR_ETP_Msk (0x1U << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  8841. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  8842. /******************* Bit definition for TIM_DIER register ******************/
  8843. #define TIM_DIER_UIE_Pos (0U)
  8844. #define TIM_DIER_UIE_Msk (0x1U << TIM_DIER_UIE_Pos) /*!< 0x00000001 */
  8845. #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */
  8846. #define TIM_DIER_CC1IE_Pos (1U)
  8847. #define TIM_DIER_CC1IE_Msk (0x1U << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */
  8848. #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */
  8849. #define TIM_DIER_CC2IE_Pos (2U)
  8850. #define TIM_DIER_CC2IE_Msk (0x1U << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */
  8851. #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */
  8852. #define TIM_DIER_CC3IE_Pos (3U)
  8853. #define TIM_DIER_CC3IE_Msk (0x1U << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */
  8854. #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */
  8855. #define TIM_DIER_CC4IE_Pos (4U)
  8856. #define TIM_DIER_CC4IE_Msk (0x1U << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */
  8857. #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */
  8858. #define TIM_DIER_COMIE_Pos (5U)
  8859. #define TIM_DIER_COMIE_Msk (0x1U << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */
  8860. #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */
  8861. #define TIM_DIER_TIE_Pos (6U)
  8862. #define TIM_DIER_TIE_Msk (0x1U << TIM_DIER_TIE_Pos) /*!< 0x00000040 */
  8863. #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */
  8864. #define TIM_DIER_BIE_Pos (7U)
  8865. #define TIM_DIER_BIE_Msk (0x1U << TIM_DIER_BIE_Pos) /*!< 0x00000080 */
  8866. #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */
  8867. #define TIM_DIER_UDE_Pos (8U)
  8868. #define TIM_DIER_UDE_Msk (0x1U << TIM_DIER_UDE_Pos) /*!< 0x00000100 */
  8869. #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */
  8870. #define TIM_DIER_CC1DE_Pos (9U)
  8871. #define TIM_DIER_CC1DE_Msk (0x1U << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */
  8872. #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */
  8873. #define TIM_DIER_CC2DE_Pos (10U)
  8874. #define TIM_DIER_CC2DE_Msk (0x1U << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */
  8875. #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */
  8876. #define TIM_DIER_CC3DE_Pos (11U)
  8877. #define TIM_DIER_CC3DE_Msk (0x1U << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */
  8878. #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */
  8879. #define TIM_DIER_CC4DE_Pos (12U)
  8880. #define TIM_DIER_CC4DE_Msk (0x1U << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */
  8881. #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */
  8882. #define TIM_DIER_COMDE_Pos (13U)
  8883. #define TIM_DIER_COMDE_Msk (0x1U << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */
  8884. #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */
  8885. #define TIM_DIER_TDE_Pos (14U)
  8886. #define TIM_DIER_TDE_Msk (0x1U << TIM_DIER_TDE_Pos) /*!< 0x00004000 */
  8887. #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */
  8888. /******************** Bit definition for TIM_SR register *******************/
  8889. #define TIM_SR_UIF_Pos (0U)
  8890. #define TIM_SR_UIF_Msk (0x1U << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  8891. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  8892. #define TIM_SR_CC1IF_Pos (1U)
  8893. #define TIM_SR_CC1IF_Msk (0x1U << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  8894. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  8895. #define TIM_SR_CC2IF_Pos (2U)
  8896. #define TIM_SR_CC2IF_Msk (0x1U << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  8897. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  8898. #define TIM_SR_CC3IF_Pos (3U)
  8899. #define TIM_SR_CC3IF_Msk (0x1U << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  8900. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  8901. #define TIM_SR_CC4IF_Pos (4U)
  8902. #define TIM_SR_CC4IF_Msk (0x1U << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  8903. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  8904. #define TIM_SR_COMIF_Pos (5U)
  8905. #define TIM_SR_COMIF_Msk (0x1U << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  8906. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  8907. #define TIM_SR_TIF_Pos (6U)
  8908. #define TIM_SR_TIF_Msk (0x1U << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  8909. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  8910. #define TIM_SR_BIF_Pos (7U)
  8911. #define TIM_SR_BIF_Msk (0x1U << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  8912. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  8913. #define TIM_SR_CC1OF_Pos (9U)
  8914. #define TIM_SR_CC1OF_Msk (0x1U << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  8915. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  8916. #define TIM_SR_CC2OF_Pos (10U)
  8917. #define TIM_SR_CC2OF_Msk (0x1U << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  8918. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  8919. #define TIM_SR_CC3OF_Pos (11U)
  8920. #define TIM_SR_CC3OF_Msk (0x1U << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  8921. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  8922. #define TIM_SR_CC4OF_Pos (12U)
  8923. #define TIM_SR_CC4OF_Msk (0x1U << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  8924. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  8925. /******************* Bit definition for TIM_EGR register *******************/
  8926. #define TIM_EGR_UG_Pos (0U)
  8927. #define TIM_EGR_UG_Msk (0x1U << TIM_EGR_UG_Pos) /*!< 0x00000001 */
  8928. #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */
  8929. #define TIM_EGR_CC1G_Pos (1U)
  8930. #define TIM_EGR_CC1G_Msk (0x1U << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */
  8931. #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */
  8932. #define TIM_EGR_CC2G_Pos (2U)
  8933. #define TIM_EGR_CC2G_Msk (0x1U << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */
  8934. #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */
  8935. #define TIM_EGR_CC3G_Pos (3U)
  8936. #define TIM_EGR_CC3G_Msk (0x1U << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */
  8937. #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */
  8938. #define TIM_EGR_CC4G_Pos (4U)
  8939. #define TIM_EGR_CC4G_Msk (0x1U << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */
  8940. #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */
  8941. #define TIM_EGR_COMG_Pos (5U)
  8942. #define TIM_EGR_COMG_Msk (0x1U << TIM_EGR_COMG_Pos) /*!< 0x00000020 */
  8943. #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */
  8944. #define TIM_EGR_TG_Pos (6U)
  8945. #define TIM_EGR_TG_Msk (0x1U << TIM_EGR_TG_Pos) /*!< 0x00000040 */
  8946. #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */
  8947. #define TIM_EGR_BG_Pos (7U)
  8948. #define TIM_EGR_BG_Msk (0x1U << TIM_EGR_BG_Pos) /*!< 0x00000080 */
  8949. #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */
  8950. /****************** Bit definition for TIM_CCMR1 register ******************/
  8951. #define TIM_CCMR1_CC1S_Pos (0U)
  8952. #define TIM_CCMR1_CC1S_Msk (0x3U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  8953. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  8954. #define TIM_CCMR1_CC1S_0 (0x1U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  8955. #define TIM_CCMR1_CC1S_1 (0x2U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  8956. #define TIM_CCMR1_OC1FE_Pos (2U)
  8957. #define TIM_CCMR1_OC1FE_Msk (0x1U << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  8958. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  8959. #define TIM_CCMR1_OC1PE_Pos (3U)
  8960. #define TIM_CCMR1_OC1PE_Msk (0x1U << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  8961. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  8962. #define TIM_CCMR1_OC1M_Pos (4U)
  8963. #define TIM_CCMR1_OC1M_Msk (0x7U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000070 */
  8964. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  8965. #define TIM_CCMR1_OC1M_0 (0x1U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */
  8966. #define TIM_CCMR1_OC1M_1 (0x2U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */
  8967. #define TIM_CCMR1_OC1M_2 (0x4U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */
  8968. #define TIM_CCMR1_OC1CE_Pos (7U)
  8969. #define TIM_CCMR1_OC1CE_Msk (0x1U << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  8970. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */
  8971. #define TIM_CCMR1_CC2S_Pos (8U)
  8972. #define TIM_CCMR1_CC2S_Msk (0x3U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  8973. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  8974. #define TIM_CCMR1_CC2S_0 (0x1U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  8975. #define TIM_CCMR1_CC2S_1 (0x2U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  8976. #define TIM_CCMR1_OC2FE_Pos (10U)
  8977. #define TIM_CCMR1_OC2FE_Msk (0x1U << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  8978. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  8979. #define TIM_CCMR1_OC2PE_Pos (11U)
  8980. #define TIM_CCMR1_OC2PE_Msk (0x1U << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  8981. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  8982. #define TIM_CCMR1_OC2M_Pos (12U)
  8983. #define TIM_CCMR1_OC2M_Msk (0x7U << TIM_CCMR1_OC2M_Pos) /*!< 0x00007000 */
  8984. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  8985. #define TIM_CCMR1_OC2M_0 (0x1U << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */
  8986. #define TIM_CCMR1_OC2M_1 (0x2U << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */
  8987. #define TIM_CCMR1_OC2M_2 (0x4U << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */
  8988. #define TIM_CCMR1_OC2CE_Pos (15U)
  8989. #define TIM_CCMR1_OC2CE_Msk (0x1U << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  8990. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  8991. /*---------------------------------------------------------------------------*/
  8992. #define TIM_CCMR1_IC1PSC_Pos (2U)
  8993. #define TIM_CCMR1_IC1PSC_Msk (0x3U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  8994. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  8995. #define TIM_CCMR1_IC1PSC_0 (0x1U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  8996. #define TIM_CCMR1_IC1PSC_1 (0x2U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  8997. #define TIM_CCMR1_IC1F_Pos (4U)
  8998. #define TIM_CCMR1_IC1F_Msk (0xFU << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  8999. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  9000. #define TIM_CCMR1_IC1F_0 (0x1U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  9001. #define TIM_CCMR1_IC1F_1 (0x2U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  9002. #define TIM_CCMR1_IC1F_2 (0x4U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  9003. #define TIM_CCMR1_IC1F_3 (0x8U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  9004. #define TIM_CCMR1_IC2PSC_Pos (10U)
  9005. #define TIM_CCMR1_IC2PSC_Msk (0x3U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  9006. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  9007. #define TIM_CCMR1_IC2PSC_0 (0x1U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  9008. #define TIM_CCMR1_IC2PSC_1 (0x2U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  9009. #define TIM_CCMR1_IC2F_Pos (12U)
  9010. #define TIM_CCMR1_IC2F_Msk (0xFU << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  9011. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  9012. #define TIM_CCMR1_IC2F_0 (0x1U << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  9013. #define TIM_CCMR1_IC2F_1 (0x2U << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  9014. #define TIM_CCMR1_IC2F_2 (0x4U << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  9015. #define TIM_CCMR1_IC2F_3 (0x8U << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  9016. /****************** Bit definition for TIM_CCMR2 register ******************/
  9017. #define TIM_CCMR2_CC3S_Pos (0U)
  9018. #define TIM_CCMR2_CC3S_Msk (0x3U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  9019. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  9020. #define TIM_CCMR2_CC3S_0 (0x1U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  9021. #define TIM_CCMR2_CC3S_1 (0x2U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  9022. #define TIM_CCMR2_OC3FE_Pos (2U)
  9023. #define TIM_CCMR2_OC3FE_Msk (0x1U << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  9024. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  9025. #define TIM_CCMR2_OC3PE_Pos (3U)
  9026. #define TIM_CCMR2_OC3PE_Msk (0x1U << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  9027. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  9028. #define TIM_CCMR2_OC3M_Pos (4U)
  9029. #define TIM_CCMR2_OC3M_Msk (0x7U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000070 */
  9030. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  9031. #define TIM_CCMR2_OC3M_0 (0x1U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */
  9032. #define TIM_CCMR2_OC3M_1 (0x2U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */
  9033. #define TIM_CCMR2_OC3M_2 (0x4U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */
  9034. #define TIM_CCMR2_OC3CE_Pos (7U)
  9035. #define TIM_CCMR2_OC3CE_Msk (0x1U << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  9036. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  9037. #define TIM_CCMR2_CC4S_Pos (8U)
  9038. #define TIM_CCMR2_CC4S_Msk (0x3U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  9039. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  9040. #define TIM_CCMR2_CC4S_0 (0x1U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  9041. #define TIM_CCMR2_CC4S_1 (0x2U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  9042. #define TIM_CCMR2_OC4FE_Pos (10U)
  9043. #define TIM_CCMR2_OC4FE_Msk (0x1U << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  9044. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  9045. #define TIM_CCMR2_OC4PE_Pos (11U)
  9046. #define TIM_CCMR2_OC4PE_Msk (0x1U << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  9047. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  9048. #define TIM_CCMR2_OC4M_Pos (12U)
  9049. #define TIM_CCMR2_OC4M_Msk (0x7U << TIM_CCMR2_OC4M_Pos) /*!< 0x00007000 */
  9050. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  9051. #define TIM_CCMR2_OC4M_0 (0x1U << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */
  9052. #define TIM_CCMR2_OC4M_1 (0x2U << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */
  9053. #define TIM_CCMR2_OC4M_2 (0x4U << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */
  9054. #define TIM_CCMR2_OC4CE_Pos (15U)
  9055. #define TIM_CCMR2_OC4CE_Msk (0x1U << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  9056. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  9057. /*---------------------------------------------------------------------------*/
  9058. #define TIM_CCMR2_IC3PSC_Pos (2U)
  9059. #define TIM_CCMR2_IC3PSC_Msk (0x3U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */
  9060. #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  9061. #define TIM_CCMR2_IC3PSC_0 (0x1U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */
  9062. #define TIM_CCMR2_IC3PSC_1 (0x2U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */
  9063. #define TIM_CCMR2_IC3F_Pos (4U)
  9064. #define TIM_CCMR2_IC3F_Msk (0xFU << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */
  9065. #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  9066. #define TIM_CCMR2_IC3F_0 (0x1U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */
  9067. #define TIM_CCMR2_IC3F_1 (0x2U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */
  9068. #define TIM_CCMR2_IC3F_2 (0x4U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */
  9069. #define TIM_CCMR2_IC3F_3 (0x8U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */
  9070. #define TIM_CCMR2_IC4PSC_Pos (10U)
  9071. #define TIM_CCMR2_IC4PSC_Msk (0x3U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */
  9072. #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  9073. #define TIM_CCMR2_IC4PSC_0 (0x1U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */
  9074. #define TIM_CCMR2_IC4PSC_1 (0x2U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */
  9075. #define TIM_CCMR2_IC4F_Pos (12U)
  9076. #define TIM_CCMR2_IC4F_Msk (0xFU << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */
  9077. #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  9078. #define TIM_CCMR2_IC4F_0 (0x1U << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */
  9079. #define TIM_CCMR2_IC4F_1 (0x2U << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */
  9080. #define TIM_CCMR2_IC4F_2 (0x4U << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */
  9081. #define TIM_CCMR2_IC4F_3 (0x8U << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */
  9082. /******************* Bit definition for TIM_CCER register ******************/
  9083. #define TIM_CCER_CC1E_Pos (0U)
  9084. #define TIM_CCER_CC1E_Msk (0x1U << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  9085. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  9086. #define TIM_CCER_CC1P_Pos (1U)
  9087. #define TIM_CCER_CC1P_Msk (0x1U << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  9088. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  9089. #define TIM_CCER_CC1NE_Pos (2U)
  9090. #define TIM_CCER_CC1NE_Msk (0x1U << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  9091. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  9092. #define TIM_CCER_CC1NP_Pos (3U)
  9093. #define TIM_CCER_CC1NP_Msk (0x1U << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  9094. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  9095. #define TIM_CCER_CC2E_Pos (4U)
  9096. #define TIM_CCER_CC2E_Msk (0x1U << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  9097. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  9098. #define TIM_CCER_CC2P_Pos (5U)
  9099. #define TIM_CCER_CC2P_Msk (0x1U << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  9100. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  9101. #define TIM_CCER_CC2NE_Pos (6U)
  9102. #define TIM_CCER_CC2NE_Msk (0x1U << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  9103. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  9104. #define TIM_CCER_CC2NP_Pos (7U)
  9105. #define TIM_CCER_CC2NP_Msk (0x1U << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  9106. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  9107. #define TIM_CCER_CC3E_Pos (8U)
  9108. #define TIM_CCER_CC3E_Msk (0x1U << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  9109. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  9110. #define TIM_CCER_CC3P_Pos (9U)
  9111. #define TIM_CCER_CC3P_Msk (0x1U << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  9112. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  9113. #define TIM_CCER_CC3NE_Pos (10U)
  9114. #define TIM_CCER_CC3NE_Msk (0x1U << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  9115. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  9116. #define TIM_CCER_CC3NP_Pos (11U)
  9117. #define TIM_CCER_CC3NP_Msk (0x1U << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  9118. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  9119. #define TIM_CCER_CC4E_Pos (12U)
  9120. #define TIM_CCER_CC4E_Msk (0x1U << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  9121. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  9122. #define TIM_CCER_CC4P_Pos (13U)
  9123. #define TIM_CCER_CC4P_Msk (0x1U << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  9124. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  9125. #define TIM_CCER_CC4NP_Pos (15U)
  9126. #define TIM_CCER_CC4NP_Msk (0x1U << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  9127. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  9128. /******************* Bit definition for TIM_CNT register *******************/
  9129. #define TIM_CNT_CNT_Pos (0U)
  9130. #define TIM_CNT_CNT_Msk (0xFFFFFFFFU << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  9131. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  9132. /******************* Bit definition for TIM_PSC register *******************/
  9133. #define TIM_PSC_PSC_Pos (0U)
  9134. #define TIM_PSC_PSC_Msk (0xFFFFU << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */
  9135. #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */
  9136. /******************* Bit definition for TIM_ARR register *******************/
  9137. #define TIM_ARR_ARR_Pos (0U)
  9138. #define TIM_ARR_ARR_Msk (0xFFFFFFFFU << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  9139. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */
  9140. /******************* Bit definition for TIM_RCR register *******************/
  9141. #define TIM_RCR_REP_Pos (0U)
  9142. #define TIM_RCR_REP_Msk (0xFFU << TIM_RCR_REP_Pos) /*!< 0x000000FF */
  9143. #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */
  9144. /******************* Bit definition for TIM_CCR1 register ******************/
  9145. #define TIM_CCR1_CCR1_Pos (0U)
  9146. #define TIM_CCR1_CCR1_Msk (0xFFFFU << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */
  9147. #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */
  9148. /******************* Bit definition for TIM_CCR2 register ******************/
  9149. #define TIM_CCR2_CCR2_Pos (0U)
  9150. #define TIM_CCR2_CCR2_Msk (0xFFFFU << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */
  9151. #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */
  9152. /******************* Bit definition for TIM_CCR3 register ******************/
  9153. #define TIM_CCR3_CCR3_Pos (0U)
  9154. #define TIM_CCR3_CCR3_Msk (0xFFFFU << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */
  9155. #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */
  9156. /******************* Bit definition for TIM_CCR4 register ******************/
  9157. #define TIM_CCR4_CCR4_Pos (0U)
  9158. #define TIM_CCR4_CCR4_Msk (0xFFFFU << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */
  9159. #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */
  9160. /******************* Bit definition for TIM_BDTR register ******************/
  9161. #define TIM_BDTR_DTG_Pos (0U)
  9162. #define TIM_BDTR_DTG_Msk (0xFFU << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  9163. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  9164. #define TIM_BDTR_DTG_0 (0x01U << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  9165. #define TIM_BDTR_DTG_1 (0x02U << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  9166. #define TIM_BDTR_DTG_2 (0x04U << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  9167. #define TIM_BDTR_DTG_3 (0x08U << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  9168. #define TIM_BDTR_DTG_4 (0x10U << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  9169. #define TIM_BDTR_DTG_5 (0x20U << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  9170. #define TIM_BDTR_DTG_6 (0x40U << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  9171. #define TIM_BDTR_DTG_7 (0x80U << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  9172. #define TIM_BDTR_LOCK_Pos (8U)
  9173. #define TIM_BDTR_LOCK_Msk (0x3U << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  9174. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  9175. #define TIM_BDTR_LOCK_0 (0x1U << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  9176. #define TIM_BDTR_LOCK_1 (0x2U << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  9177. #define TIM_BDTR_OSSI_Pos (10U)
  9178. #define TIM_BDTR_OSSI_Msk (0x1U << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  9179. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  9180. #define TIM_BDTR_OSSR_Pos (11U)
  9181. #define TIM_BDTR_OSSR_Msk (0x1U << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  9182. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  9183. #define TIM_BDTR_BKE_Pos (12U)
  9184. #define TIM_BDTR_BKE_Msk (0x1U << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  9185. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable */
  9186. #define TIM_BDTR_BKP_Pos (13U)
  9187. #define TIM_BDTR_BKP_Msk (0x1U << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  9188. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity */
  9189. #define TIM_BDTR_AOE_Pos (14U)
  9190. #define TIM_BDTR_AOE_Msk (0x1U << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  9191. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  9192. #define TIM_BDTR_MOE_Pos (15U)
  9193. #define TIM_BDTR_MOE_Msk (0x1U << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  9194. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  9195. /******************* Bit definition for TIM_DCR register *******************/
  9196. #define TIM_DCR_DBA_Pos (0U)
  9197. #define TIM_DCR_DBA_Msk (0x1FU << TIM_DCR_DBA_Pos) /*!< 0x0000001F */
  9198. #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */
  9199. #define TIM_DCR_DBA_0 (0x01U << TIM_DCR_DBA_Pos) /*!< 0x00000001 */
  9200. #define TIM_DCR_DBA_1 (0x02U << TIM_DCR_DBA_Pos) /*!< 0x00000002 */
  9201. #define TIM_DCR_DBA_2 (0x04U << TIM_DCR_DBA_Pos) /*!< 0x00000004 */
  9202. #define TIM_DCR_DBA_3 (0x08U << TIM_DCR_DBA_Pos) /*!< 0x00000008 */
  9203. #define TIM_DCR_DBA_4 (0x10U << TIM_DCR_DBA_Pos) /*!< 0x00000010 */
  9204. #define TIM_DCR_DBL_Pos (8U)
  9205. #define TIM_DCR_DBL_Msk (0x1FU << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */
  9206. #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */
  9207. #define TIM_DCR_DBL_0 (0x01U << TIM_DCR_DBL_Pos) /*!< 0x00000100 */
  9208. #define TIM_DCR_DBL_1 (0x02U << TIM_DCR_DBL_Pos) /*!< 0x00000200 */
  9209. #define TIM_DCR_DBL_2 (0x04U << TIM_DCR_DBL_Pos) /*!< 0x00000400 */
  9210. #define TIM_DCR_DBL_3 (0x08U << TIM_DCR_DBL_Pos) /*!< 0x00000800 */
  9211. #define TIM_DCR_DBL_4 (0x10U << TIM_DCR_DBL_Pos) /*!< 0x00001000 */
  9212. /******************* Bit definition for TIM_DMAR register ******************/
  9213. #define TIM_DMAR_DMAB_Pos (0U)
  9214. #define TIM_DMAR_DMAB_Msk (0xFFFFU << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */
  9215. #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */
  9216. /******************* Bit definition for TIM14_OR register ********************/
  9217. #define TIM14_OR_TI1_RMP_Pos (0U)
  9218. #define TIM14_OR_TI1_RMP_Msk (0x3U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000003 */
  9219. #define TIM14_OR_TI1_RMP TIM14_OR_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM14 Input 4 remap) */
  9220. #define TIM14_OR_TI1_RMP_0 (0x1U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000001 */
  9221. #define TIM14_OR_TI1_RMP_1 (0x2U << TIM14_OR_TI1_RMP_Pos) /*!< 0x00000002 */
  9222. /******************************************************************************/
  9223. /* */
  9224. /* Touch Sensing Controller (TSC) */
  9225. /* */
  9226. /******************************************************************************/
  9227. /******************* Bit definition for TSC_CR register *********************/
  9228. #define TSC_CR_TSCE_Pos (0U)
  9229. #define TSC_CR_TSCE_Msk (0x1U << TSC_CR_TSCE_Pos) /*!< 0x00000001 */
  9230. #define TSC_CR_TSCE TSC_CR_TSCE_Msk /*!<Touch sensing controller enable */
  9231. #define TSC_CR_START_Pos (1U)
  9232. #define TSC_CR_START_Msk (0x1U << TSC_CR_START_Pos) /*!< 0x00000002 */
  9233. #define TSC_CR_START TSC_CR_START_Msk /*!<Start acquisition */
  9234. #define TSC_CR_AM_Pos (2U)
  9235. #define TSC_CR_AM_Msk (0x1U << TSC_CR_AM_Pos) /*!< 0x00000004 */
  9236. #define TSC_CR_AM TSC_CR_AM_Msk /*!<Acquisition mode */
  9237. #define TSC_CR_SYNCPOL_Pos (3U)
  9238. #define TSC_CR_SYNCPOL_Msk (0x1U << TSC_CR_SYNCPOL_Pos) /*!< 0x00000008 */
  9239. #define TSC_CR_SYNCPOL TSC_CR_SYNCPOL_Msk /*!<Synchronization pin polarity */
  9240. #define TSC_CR_IODEF_Pos (4U)
  9241. #define TSC_CR_IODEF_Msk (0x1U << TSC_CR_IODEF_Pos) /*!< 0x00000010 */
  9242. #define TSC_CR_IODEF TSC_CR_IODEF_Msk /*!<IO default mode */
  9243. #define TSC_CR_MCV_Pos (5U)
  9244. #define TSC_CR_MCV_Msk (0x7U << TSC_CR_MCV_Pos) /*!< 0x000000E0 */
  9245. #define TSC_CR_MCV TSC_CR_MCV_Msk /*!<MCV[2:0] bits (Max Count Value) */
  9246. #define TSC_CR_MCV_0 (0x1U << TSC_CR_MCV_Pos) /*!< 0x00000020 */
  9247. #define TSC_CR_MCV_1 (0x2U << TSC_CR_MCV_Pos) /*!< 0x00000040 */
  9248. #define TSC_CR_MCV_2 (0x4U << TSC_CR_MCV_Pos) /*!< 0x00000080 */
  9249. #define TSC_CR_PGPSC_Pos (12U)
  9250. #define TSC_CR_PGPSC_Msk (0x7U << TSC_CR_PGPSC_Pos) /*!< 0x00007000 */
  9251. #define TSC_CR_PGPSC TSC_CR_PGPSC_Msk /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
  9252. #define TSC_CR_PGPSC_0 (0x1U << TSC_CR_PGPSC_Pos) /*!< 0x00001000 */
  9253. #define TSC_CR_PGPSC_1 (0x2U << TSC_CR_PGPSC_Pos) /*!< 0x00002000 */
  9254. #define TSC_CR_PGPSC_2 (0x4U << TSC_CR_PGPSC_Pos) /*!< 0x00004000 */
  9255. #define TSC_CR_SSPSC_Pos (15U)
  9256. #define TSC_CR_SSPSC_Msk (0x1U << TSC_CR_SSPSC_Pos) /*!< 0x00008000 */
  9257. #define TSC_CR_SSPSC TSC_CR_SSPSC_Msk /*!<Spread Spectrum Prescaler */
  9258. #define TSC_CR_SSE_Pos (16U)
  9259. #define TSC_CR_SSE_Msk (0x1U << TSC_CR_SSE_Pos) /*!< 0x00010000 */
  9260. #define TSC_CR_SSE TSC_CR_SSE_Msk /*!<Spread Spectrum Enable */
  9261. #define TSC_CR_SSD_Pos (17U)
  9262. #define TSC_CR_SSD_Msk (0x7FU << TSC_CR_SSD_Pos) /*!< 0x00FE0000 */
  9263. #define TSC_CR_SSD TSC_CR_SSD_Msk /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
  9264. #define TSC_CR_SSD_0 (0x01U << TSC_CR_SSD_Pos) /*!< 0x00020000 */
  9265. #define TSC_CR_SSD_1 (0x02U << TSC_CR_SSD_Pos) /*!< 0x00040000 */
  9266. #define TSC_CR_SSD_2 (0x04U << TSC_CR_SSD_Pos) /*!< 0x00080000 */
  9267. #define TSC_CR_SSD_3 (0x08U << TSC_CR_SSD_Pos) /*!< 0x00100000 */
  9268. #define TSC_CR_SSD_4 (0x10U << TSC_CR_SSD_Pos) /*!< 0x00200000 */
  9269. #define TSC_CR_SSD_5 (0x20U << TSC_CR_SSD_Pos) /*!< 0x00400000 */
  9270. #define TSC_CR_SSD_6 (0x40U << TSC_CR_SSD_Pos) /*!< 0x00800000 */
  9271. #define TSC_CR_CTPL_Pos (24U)
  9272. #define TSC_CR_CTPL_Msk (0xFU << TSC_CR_CTPL_Pos) /*!< 0x0F000000 */
  9273. #define TSC_CR_CTPL TSC_CR_CTPL_Msk /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
  9274. #define TSC_CR_CTPL_0 (0x1U << TSC_CR_CTPL_Pos) /*!< 0x01000000 */
  9275. #define TSC_CR_CTPL_1 (0x2U << TSC_CR_CTPL_Pos) /*!< 0x02000000 */
  9276. #define TSC_CR_CTPL_2 (0x4U << TSC_CR_CTPL_Pos) /*!< 0x04000000 */
  9277. #define TSC_CR_CTPL_3 (0x8U << TSC_CR_CTPL_Pos) /*!< 0x08000000 */
  9278. #define TSC_CR_CTPH_Pos (28U)
  9279. #define TSC_CR_CTPH_Msk (0xFU << TSC_CR_CTPH_Pos) /*!< 0xF0000000 */
  9280. #define TSC_CR_CTPH TSC_CR_CTPH_Msk /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
  9281. #define TSC_CR_CTPH_0 (0x1U << TSC_CR_CTPH_Pos) /*!< 0x10000000 */
  9282. #define TSC_CR_CTPH_1 (0x2U << TSC_CR_CTPH_Pos) /*!< 0x20000000 */
  9283. #define TSC_CR_CTPH_2 (0x4U << TSC_CR_CTPH_Pos) /*!< 0x40000000 */
  9284. #define TSC_CR_CTPH_3 (0x8U << TSC_CR_CTPH_Pos) /*!< 0x80000000 */
  9285. /******************* Bit definition for TSC_IER register ********************/
  9286. #define TSC_IER_EOAIE_Pos (0U)
  9287. #define TSC_IER_EOAIE_Msk (0x1U << TSC_IER_EOAIE_Pos) /*!< 0x00000001 */
  9288. #define TSC_IER_EOAIE TSC_IER_EOAIE_Msk /*!<End of acquisition interrupt enable */
  9289. #define TSC_IER_MCEIE_Pos (1U)
  9290. #define TSC_IER_MCEIE_Msk (0x1U << TSC_IER_MCEIE_Pos) /*!< 0x00000002 */
  9291. #define TSC_IER_MCEIE TSC_IER_MCEIE_Msk /*!<Max count error interrupt enable */
  9292. /******************* Bit definition for TSC_ICR register ********************/
  9293. #define TSC_ICR_EOAIC_Pos (0U)
  9294. #define TSC_ICR_EOAIC_Msk (0x1U << TSC_ICR_EOAIC_Pos) /*!< 0x00000001 */
  9295. #define TSC_ICR_EOAIC TSC_ICR_EOAIC_Msk /*!<End of acquisition interrupt clear */
  9296. #define TSC_ICR_MCEIC_Pos (1U)
  9297. #define TSC_ICR_MCEIC_Msk (0x1U << TSC_ICR_MCEIC_Pos) /*!< 0x00000002 */
  9298. #define TSC_ICR_MCEIC TSC_ICR_MCEIC_Msk /*!<Max count error interrupt clear */
  9299. /******************* Bit definition for TSC_ISR register ********************/
  9300. #define TSC_ISR_EOAF_Pos (0U)
  9301. #define TSC_ISR_EOAF_Msk (0x1U << TSC_ISR_EOAF_Pos) /*!< 0x00000001 */
  9302. #define TSC_ISR_EOAF TSC_ISR_EOAF_Msk /*!<End of acquisition flag */
  9303. #define TSC_ISR_MCEF_Pos (1U)
  9304. #define TSC_ISR_MCEF_Msk (0x1U << TSC_ISR_MCEF_Pos) /*!< 0x00000002 */
  9305. #define TSC_ISR_MCEF TSC_ISR_MCEF_Msk /*!<Max count error flag */
  9306. /******************* Bit definition for TSC_IOHCR register ******************/
  9307. #define TSC_IOHCR_G1_IO1_Pos (0U)
  9308. #define TSC_IOHCR_G1_IO1_Msk (0x1U << TSC_IOHCR_G1_IO1_Pos) /*!< 0x00000001 */
  9309. #define TSC_IOHCR_G1_IO1 TSC_IOHCR_G1_IO1_Msk /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
  9310. #define TSC_IOHCR_G1_IO2_Pos (1U)
  9311. #define TSC_IOHCR_G1_IO2_Msk (0x1U << TSC_IOHCR_G1_IO2_Pos) /*!< 0x00000002 */
  9312. #define TSC_IOHCR_G1_IO2 TSC_IOHCR_G1_IO2_Msk /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
  9313. #define TSC_IOHCR_G1_IO3_Pos (2U)
  9314. #define TSC_IOHCR_G1_IO3_Msk (0x1U << TSC_IOHCR_G1_IO3_Pos) /*!< 0x00000004 */
  9315. #define TSC_IOHCR_G1_IO3 TSC_IOHCR_G1_IO3_Msk /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
  9316. #define TSC_IOHCR_G1_IO4_Pos (3U)
  9317. #define TSC_IOHCR_G1_IO4_Msk (0x1U << TSC_IOHCR_G1_IO4_Pos) /*!< 0x00000008 */
  9318. #define TSC_IOHCR_G1_IO4 TSC_IOHCR_G1_IO4_Msk /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
  9319. #define TSC_IOHCR_G2_IO1_Pos (4U)
  9320. #define TSC_IOHCR_G2_IO1_Msk (0x1U << TSC_IOHCR_G2_IO1_Pos) /*!< 0x00000010 */
  9321. #define TSC_IOHCR_G2_IO1 TSC_IOHCR_G2_IO1_Msk /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
  9322. #define TSC_IOHCR_G2_IO2_Pos (5U)
  9323. #define TSC_IOHCR_G2_IO2_Msk (0x1U << TSC_IOHCR_G2_IO2_Pos) /*!< 0x00000020 */
  9324. #define TSC_IOHCR_G2_IO2 TSC_IOHCR_G2_IO2_Msk /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
  9325. #define TSC_IOHCR_G2_IO3_Pos (6U)
  9326. #define TSC_IOHCR_G2_IO3_Msk (0x1U << TSC_IOHCR_G2_IO3_Pos) /*!< 0x00000040 */
  9327. #define TSC_IOHCR_G2_IO3 TSC_IOHCR_G2_IO3_Msk /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
  9328. #define TSC_IOHCR_G2_IO4_Pos (7U)
  9329. #define TSC_IOHCR_G2_IO4_Msk (0x1U << TSC_IOHCR_G2_IO4_Pos) /*!< 0x00000080 */
  9330. #define TSC_IOHCR_G2_IO4 TSC_IOHCR_G2_IO4_Msk /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
  9331. #define TSC_IOHCR_G3_IO1_Pos (8U)
  9332. #define TSC_IOHCR_G3_IO1_Msk (0x1U << TSC_IOHCR_G3_IO1_Pos) /*!< 0x00000100 */
  9333. #define TSC_IOHCR_G3_IO1 TSC_IOHCR_G3_IO1_Msk /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
  9334. #define TSC_IOHCR_G3_IO2_Pos (9U)
  9335. #define TSC_IOHCR_G3_IO2_Msk (0x1U << TSC_IOHCR_G3_IO2_Pos) /*!< 0x00000200 */
  9336. #define TSC_IOHCR_G3_IO2 TSC_IOHCR_G3_IO2_Msk /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
  9337. #define TSC_IOHCR_G3_IO3_Pos (10U)
  9338. #define TSC_IOHCR_G3_IO3_Msk (0x1U << TSC_IOHCR_G3_IO3_Pos) /*!< 0x00000400 */
  9339. #define TSC_IOHCR_G3_IO3 TSC_IOHCR_G3_IO3_Msk /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
  9340. #define TSC_IOHCR_G3_IO4_Pos (11U)
  9341. #define TSC_IOHCR_G3_IO4_Msk (0x1U << TSC_IOHCR_G3_IO4_Pos) /*!< 0x00000800 */
  9342. #define TSC_IOHCR_G3_IO4 TSC_IOHCR_G3_IO4_Msk /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
  9343. #define TSC_IOHCR_G4_IO1_Pos (12U)
  9344. #define TSC_IOHCR_G4_IO1_Msk (0x1U << TSC_IOHCR_G4_IO1_Pos) /*!< 0x00001000 */
  9345. #define TSC_IOHCR_G4_IO1 TSC_IOHCR_G4_IO1_Msk /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
  9346. #define TSC_IOHCR_G4_IO2_Pos (13U)
  9347. #define TSC_IOHCR_G4_IO2_Msk (0x1U << TSC_IOHCR_G4_IO2_Pos) /*!< 0x00002000 */
  9348. #define TSC_IOHCR_G4_IO2 TSC_IOHCR_G4_IO2_Msk /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
  9349. #define TSC_IOHCR_G4_IO3_Pos (14U)
  9350. #define TSC_IOHCR_G4_IO3_Msk (0x1U << TSC_IOHCR_G4_IO3_Pos) /*!< 0x00004000 */
  9351. #define TSC_IOHCR_G4_IO3 TSC_IOHCR_G4_IO3_Msk /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
  9352. #define TSC_IOHCR_G4_IO4_Pos (15U)
  9353. #define TSC_IOHCR_G4_IO4_Msk (0x1U << TSC_IOHCR_G4_IO4_Pos) /*!< 0x00008000 */
  9354. #define TSC_IOHCR_G4_IO4 TSC_IOHCR_G4_IO4_Msk /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
  9355. #define TSC_IOHCR_G5_IO1_Pos (16U)
  9356. #define TSC_IOHCR_G5_IO1_Msk (0x1U << TSC_IOHCR_G5_IO1_Pos) /*!< 0x00010000 */
  9357. #define TSC_IOHCR_G5_IO1 TSC_IOHCR_G5_IO1_Msk /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
  9358. #define TSC_IOHCR_G5_IO2_Pos (17U)
  9359. #define TSC_IOHCR_G5_IO2_Msk (0x1U << TSC_IOHCR_G5_IO2_Pos) /*!< 0x00020000 */
  9360. #define TSC_IOHCR_G5_IO2 TSC_IOHCR_G5_IO2_Msk /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
  9361. #define TSC_IOHCR_G5_IO3_Pos (18U)
  9362. #define TSC_IOHCR_G5_IO3_Msk (0x1U << TSC_IOHCR_G5_IO3_Pos) /*!< 0x00040000 */
  9363. #define TSC_IOHCR_G5_IO3 TSC_IOHCR_G5_IO3_Msk /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
  9364. #define TSC_IOHCR_G5_IO4_Pos (19U)
  9365. #define TSC_IOHCR_G5_IO4_Msk (0x1U << TSC_IOHCR_G5_IO4_Pos) /*!< 0x00080000 */
  9366. #define TSC_IOHCR_G5_IO4 TSC_IOHCR_G5_IO4_Msk /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
  9367. #define TSC_IOHCR_G6_IO1_Pos (20U)
  9368. #define TSC_IOHCR_G6_IO1_Msk (0x1U << TSC_IOHCR_G6_IO1_Pos) /*!< 0x00100000 */
  9369. #define TSC_IOHCR_G6_IO1 TSC_IOHCR_G6_IO1_Msk /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
  9370. #define TSC_IOHCR_G6_IO2_Pos (21U)
  9371. #define TSC_IOHCR_G6_IO2_Msk (0x1U << TSC_IOHCR_G6_IO2_Pos) /*!< 0x00200000 */
  9372. #define TSC_IOHCR_G6_IO2 TSC_IOHCR_G6_IO2_Msk /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
  9373. #define TSC_IOHCR_G6_IO3_Pos (22U)
  9374. #define TSC_IOHCR_G6_IO3_Msk (0x1U << TSC_IOHCR_G6_IO3_Pos) /*!< 0x00400000 */
  9375. #define TSC_IOHCR_G6_IO3 TSC_IOHCR_G6_IO3_Msk /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
  9376. #define TSC_IOHCR_G6_IO4_Pos (23U)
  9377. #define TSC_IOHCR_G6_IO4_Msk (0x1U << TSC_IOHCR_G6_IO4_Pos) /*!< 0x00800000 */
  9378. #define TSC_IOHCR_G6_IO4 TSC_IOHCR_G6_IO4_Msk /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
  9379. #define TSC_IOHCR_G7_IO1_Pos (24U)
  9380. #define TSC_IOHCR_G7_IO1_Msk (0x1U << TSC_IOHCR_G7_IO1_Pos) /*!< 0x01000000 */
  9381. #define TSC_IOHCR_G7_IO1 TSC_IOHCR_G7_IO1_Msk /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
  9382. #define TSC_IOHCR_G7_IO2_Pos (25U)
  9383. #define TSC_IOHCR_G7_IO2_Msk (0x1U << TSC_IOHCR_G7_IO2_Pos) /*!< 0x02000000 */
  9384. #define TSC_IOHCR_G7_IO2 TSC_IOHCR_G7_IO2_Msk /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
  9385. #define TSC_IOHCR_G7_IO3_Pos (26U)
  9386. #define TSC_IOHCR_G7_IO3_Msk (0x1U << TSC_IOHCR_G7_IO3_Pos) /*!< 0x04000000 */
  9387. #define TSC_IOHCR_G7_IO3 TSC_IOHCR_G7_IO3_Msk /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
  9388. #define TSC_IOHCR_G7_IO4_Pos (27U)
  9389. #define TSC_IOHCR_G7_IO4_Msk (0x1U << TSC_IOHCR_G7_IO4_Pos) /*!< 0x08000000 */
  9390. #define TSC_IOHCR_G7_IO4 TSC_IOHCR_G7_IO4_Msk /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
  9391. #define TSC_IOHCR_G8_IO1_Pos (28U)
  9392. #define TSC_IOHCR_G8_IO1_Msk (0x1U << TSC_IOHCR_G8_IO1_Pos) /*!< 0x10000000 */
  9393. #define TSC_IOHCR_G8_IO1 TSC_IOHCR_G8_IO1_Msk /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
  9394. #define TSC_IOHCR_G8_IO2_Pos (29U)
  9395. #define TSC_IOHCR_G8_IO2_Msk (0x1U << TSC_IOHCR_G8_IO2_Pos) /*!< 0x20000000 */
  9396. #define TSC_IOHCR_G8_IO2 TSC_IOHCR_G8_IO2_Msk /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
  9397. #define TSC_IOHCR_G8_IO3_Pos (30U)
  9398. #define TSC_IOHCR_G8_IO3_Msk (0x1U << TSC_IOHCR_G8_IO3_Pos) /*!< 0x40000000 */
  9399. #define TSC_IOHCR_G8_IO3 TSC_IOHCR_G8_IO3_Msk /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
  9400. #define TSC_IOHCR_G8_IO4_Pos (31U)
  9401. #define TSC_IOHCR_G8_IO4_Msk (0x1U << TSC_IOHCR_G8_IO4_Pos) /*!< 0x80000000 */
  9402. #define TSC_IOHCR_G8_IO4 TSC_IOHCR_G8_IO4_Msk /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
  9403. /******************* Bit definition for TSC_IOASCR register *****************/
  9404. #define TSC_IOASCR_G1_IO1_Pos (0U)
  9405. #define TSC_IOASCR_G1_IO1_Msk (0x1U << TSC_IOASCR_G1_IO1_Pos) /*!< 0x00000001 */
  9406. #define TSC_IOASCR_G1_IO1 TSC_IOASCR_G1_IO1_Msk /*!<GROUP1_IO1 analog switch enable */
  9407. #define TSC_IOASCR_G1_IO2_Pos (1U)
  9408. #define TSC_IOASCR_G1_IO2_Msk (0x1U << TSC_IOASCR_G1_IO2_Pos) /*!< 0x00000002 */
  9409. #define TSC_IOASCR_G1_IO2 TSC_IOASCR_G1_IO2_Msk /*!<GROUP1_IO2 analog switch enable */
  9410. #define TSC_IOASCR_G1_IO3_Pos (2U)
  9411. #define TSC_IOASCR_G1_IO3_Msk (0x1U << TSC_IOASCR_G1_IO3_Pos) /*!< 0x00000004 */
  9412. #define TSC_IOASCR_G1_IO3 TSC_IOASCR_G1_IO3_Msk /*!<GROUP1_IO3 analog switch enable */
  9413. #define TSC_IOASCR_G1_IO4_Pos (3U)
  9414. #define TSC_IOASCR_G1_IO4_Msk (0x1U << TSC_IOASCR_G1_IO4_Pos) /*!< 0x00000008 */
  9415. #define TSC_IOASCR_G1_IO4 TSC_IOASCR_G1_IO4_Msk /*!<GROUP1_IO4 analog switch enable */
  9416. #define TSC_IOASCR_G2_IO1_Pos (4U)
  9417. #define TSC_IOASCR_G2_IO1_Msk (0x1U << TSC_IOASCR_G2_IO1_Pos) /*!< 0x00000010 */
  9418. #define TSC_IOASCR_G2_IO1 TSC_IOASCR_G2_IO1_Msk /*!<GROUP2_IO1 analog switch enable */
  9419. #define TSC_IOASCR_G2_IO2_Pos (5U)
  9420. #define TSC_IOASCR_G2_IO2_Msk (0x1U << TSC_IOASCR_G2_IO2_Pos) /*!< 0x00000020 */
  9421. #define TSC_IOASCR_G2_IO2 TSC_IOASCR_G2_IO2_Msk /*!<GROUP2_IO2 analog switch enable */
  9422. #define TSC_IOASCR_G2_IO3_Pos (6U)
  9423. #define TSC_IOASCR_G2_IO3_Msk (0x1U << TSC_IOASCR_G2_IO3_Pos) /*!< 0x00000040 */
  9424. #define TSC_IOASCR_G2_IO3 TSC_IOASCR_G2_IO3_Msk /*!<GROUP2_IO3 analog switch enable */
  9425. #define TSC_IOASCR_G2_IO4_Pos (7U)
  9426. #define TSC_IOASCR_G2_IO4_Msk (0x1U << TSC_IOASCR_G2_IO4_Pos) /*!< 0x00000080 */
  9427. #define TSC_IOASCR_G2_IO4 TSC_IOASCR_G2_IO4_Msk /*!<GROUP2_IO4 analog switch enable */
  9428. #define TSC_IOASCR_G3_IO1_Pos (8U)
  9429. #define TSC_IOASCR_G3_IO1_Msk (0x1U << TSC_IOASCR_G3_IO1_Pos) /*!< 0x00000100 */
  9430. #define TSC_IOASCR_G3_IO1 TSC_IOASCR_G3_IO1_Msk /*!<GROUP3_IO1 analog switch enable */
  9431. #define TSC_IOASCR_G3_IO2_Pos (9U)
  9432. #define TSC_IOASCR_G3_IO2_Msk (0x1U << TSC_IOASCR_G3_IO2_Pos) /*!< 0x00000200 */
  9433. #define TSC_IOASCR_G3_IO2 TSC_IOASCR_G3_IO2_Msk /*!<GROUP3_IO2 analog switch enable */
  9434. #define TSC_IOASCR_G3_IO3_Pos (10U)
  9435. #define TSC_IOASCR_G3_IO3_Msk (0x1U << TSC_IOASCR_G3_IO3_Pos) /*!< 0x00000400 */
  9436. #define TSC_IOASCR_G3_IO3 TSC_IOASCR_G3_IO3_Msk /*!<GROUP3_IO3 analog switch enable */
  9437. #define TSC_IOASCR_G3_IO4_Pos (11U)
  9438. #define TSC_IOASCR_G3_IO4_Msk (0x1U << TSC_IOASCR_G3_IO4_Pos) /*!< 0x00000800 */
  9439. #define TSC_IOASCR_G3_IO4 TSC_IOASCR_G3_IO4_Msk /*!<GROUP3_IO4 analog switch enable */
  9440. #define TSC_IOASCR_G4_IO1_Pos (12U)
  9441. #define TSC_IOASCR_G4_IO1_Msk (0x1U << TSC_IOASCR_G4_IO1_Pos) /*!< 0x00001000 */
  9442. #define TSC_IOASCR_G4_IO1 TSC_IOASCR_G4_IO1_Msk /*!<GROUP4_IO1 analog switch enable */
  9443. #define TSC_IOASCR_G4_IO2_Pos (13U)
  9444. #define TSC_IOASCR_G4_IO2_Msk (0x1U << TSC_IOASCR_G4_IO2_Pos) /*!< 0x00002000 */
  9445. #define TSC_IOASCR_G4_IO2 TSC_IOASCR_G4_IO2_Msk /*!<GROUP4_IO2 analog switch enable */
  9446. #define TSC_IOASCR_G4_IO3_Pos (14U)
  9447. #define TSC_IOASCR_G4_IO3_Msk (0x1U << TSC_IOASCR_G4_IO3_Pos) /*!< 0x00004000 */
  9448. #define TSC_IOASCR_G4_IO3 TSC_IOASCR_G4_IO3_Msk /*!<GROUP4_IO3 analog switch enable */
  9449. #define TSC_IOASCR_G4_IO4_Pos (15U)
  9450. #define TSC_IOASCR_G4_IO4_Msk (0x1U << TSC_IOASCR_G4_IO4_Pos) /*!< 0x00008000 */
  9451. #define TSC_IOASCR_G4_IO4 TSC_IOASCR_G4_IO4_Msk /*!<GROUP4_IO4 analog switch enable */
  9452. #define TSC_IOASCR_G5_IO1_Pos (16U)
  9453. #define TSC_IOASCR_G5_IO1_Msk (0x1U << TSC_IOASCR_G5_IO1_Pos) /*!< 0x00010000 */
  9454. #define TSC_IOASCR_G5_IO1 TSC_IOASCR_G5_IO1_Msk /*!<GROUP5_IO1 analog switch enable */
  9455. #define TSC_IOASCR_G5_IO2_Pos (17U)
  9456. #define TSC_IOASCR_G5_IO2_Msk (0x1U << TSC_IOASCR_G5_IO2_Pos) /*!< 0x00020000 */
  9457. #define TSC_IOASCR_G5_IO2 TSC_IOASCR_G5_IO2_Msk /*!<GROUP5_IO2 analog switch enable */
  9458. #define TSC_IOASCR_G5_IO3_Pos (18U)
  9459. #define TSC_IOASCR_G5_IO3_Msk (0x1U << TSC_IOASCR_G5_IO3_Pos) /*!< 0x00040000 */
  9460. #define TSC_IOASCR_G5_IO3 TSC_IOASCR_G5_IO3_Msk /*!<GROUP5_IO3 analog switch enable */
  9461. #define TSC_IOASCR_G5_IO4_Pos (19U)
  9462. #define TSC_IOASCR_G5_IO4_Msk (0x1U << TSC_IOASCR_G5_IO4_Pos) /*!< 0x00080000 */
  9463. #define TSC_IOASCR_G5_IO4 TSC_IOASCR_G5_IO4_Msk /*!<GROUP5_IO4 analog switch enable */
  9464. #define TSC_IOASCR_G6_IO1_Pos (20U)
  9465. #define TSC_IOASCR_G6_IO1_Msk (0x1U << TSC_IOASCR_G6_IO1_Pos) /*!< 0x00100000 */
  9466. #define TSC_IOASCR_G6_IO1 TSC_IOASCR_G6_IO1_Msk /*!<GROUP6_IO1 analog switch enable */
  9467. #define TSC_IOASCR_G6_IO2_Pos (21U)
  9468. #define TSC_IOASCR_G6_IO2_Msk (0x1U << TSC_IOASCR_G6_IO2_Pos) /*!< 0x00200000 */
  9469. #define TSC_IOASCR_G6_IO2 TSC_IOASCR_G6_IO2_Msk /*!<GROUP6_IO2 analog switch enable */
  9470. #define TSC_IOASCR_G6_IO3_Pos (22U)
  9471. #define TSC_IOASCR_G6_IO3_Msk (0x1U << TSC_IOASCR_G6_IO3_Pos) /*!< 0x00400000 */
  9472. #define TSC_IOASCR_G6_IO3 TSC_IOASCR_G6_IO3_Msk /*!<GROUP6_IO3 analog switch enable */
  9473. #define TSC_IOASCR_G6_IO4_Pos (23U)
  9474. #define TSC_IOASCR_G6_IO4_Msk (0x1U << TSC_IOASCR_G6_IO4_Pos) /*!< 0x00800000 */
  9475. #define TSC_IOASCR_G6_IO4 TSC_IOASCR_G6_IO4_Msk /*!<GROUP6_IO4 analog switch enable */
  9476. #define TSC_IOASCR_G7_IO1_Pos (24U)
  9477. #define TSC_IOASCR_G7_IO1_Msk (0x1U << TSC_IOASCR_G7_IO1_Pos) /*!< 0x01000000 */
  9478. #define TSC_IOASCR_G7_IO1 TSC_IOASCR_G7_IO1_Msk /*!<GROUP7_IO1 analog switch enable */
  9479. #define TSC_IOASCR_G7_IO2_Pos (25U)
  9480. #define TSC_IOASCR_G7_IO2_Msk (0x1U << TSC_IOASCR_G7_IO2_Pos) /*!< 0x02000000 */
  9481. #define TSC_IOASCR_G7_IO2 TSC_IOASCR_G7_IO2_Msk /*!<GROUP7_IO2 analog switch enable */
  9482. #define TSC_IOASCR_G7_IO3_Pos (26U)
  9483. #define TSC_IOASCR_G7_IO3_Msk (0x1U << TSC_IOASCR_G7_IO3_Pos) /*!< 0x04000000 */
  9484. #define TSC_IOASCR_G7_IO3 TSC_IOASCR_G7_IO3_Msk /*!<GROUP7_IO3 analog switch enable */
  9485. #define TSC_IOASCR_G7_IO4_Pos (27U)
  9486. #define TSC_IOASCR_G7_IO4_Msk (0x1U << TSC_IOASCR_G7_IO4_Pos) /*!< 0x08000000 */
  9487. #define TSC_IOASCR_G7_IO4 TSC_IOASCR_G7_IO4_Msk /*!<GROUP7_IO4 analog switch enable */
  9488. #define TSC_IOASCR_G8_IO1_Pos (28U)
  9489. #define TSC_IOASCR_G8_IO1_Msk (0x1U << TSC_IOASCR_G8_IO1_Pos) /*!< 0x10000000 */
  9490. #define TSC_IOASCR_G8_IO1 TSC_IOASCR_G8_IO1_Msk /*!<GROUP8_IO1 analog switch enable */
  9491. #define TSC_IOASCR_G8_IO2_Pos (29U)
  9492. #define TSC_IOASCR_G8_IO2_Msk (0x1U << TSC_IOASCR_G8_IO2_Pos) /*!< 0x20000000 */
  9493. #define TSC_IOASCR_G8_IO2 TSC_IOASCR_G8_IO2_Msk /*!<GROUP8_IO2 analog switch enable */
  9494. #define TSC_IOASCR_G8_IO3_Pos (30U)
  9495. #define TSC_IOASCR_G8_IO3_Msk (0x1U << TSC_IOASCR_G8_IO3_Pos) /*!< 0x40000000 */
  9496. #define TSC_IOASCR_G8_IO3 TSC_IOASCR_G8_IO3_Msk /*!<GROUP8_IO3 analog switch enable */
  9497. #define TSC_IOASCR_G8_IO4_Pos (31U)
  9498. #define TSC_IOASCR_G8_IO4_Msk (0x1U << TSC_IOASCR_G8_IO4_Pos) /*!< 0x80000000 */
  9499. #define TSC_IOASCR_G8_IO4 TSC_IOASCR_G8_IO4_Msk /*!<GROUP8_IO4 analog switch enable */
  9500. /******************* Bit definition for TSC_IOSCR register ******************/
  9501. #define TSC_IOSCR_G1_IO1_Pos (0U)
  9502. #define TSC_IOSCR_G1_IO1_Msk (0x1U << TSC_IOSCR_G1_IO1_Pos) /*!< 0x00000001 */
  9503. #define TSC_IOSCR_G1_IO1 TSC_IOSCR_G1_IO1_Msk /*!<GROUP1_IO1 sampling mode */
  9504. #define TSC_IOSCR_G1_IO2_Pos (1U)
  9505. #define TSC_IOSCR_G1_IO2_Msk (0x1U << TSC_IOSCR_G1_IO2_Pos) /*!< 0x00000002 */
  9506. #define TSC_IOSCR_G1_IO2 TSC_IOSCR_G1_IO2_Msk /*!<GROUP1_IO2 sampling mode */
  9507. #define TSC_IOSCR_G1_IO3_Pos (2U)
  9508. #define TSC_IOSCR_G1_IO3_Msk (0x1U << TSC_IOSCR_G1_IO3_Pos) /*!< 0x00000004 */
  9509. #define TSC_IOSCR_G1_IO3 TSC_IOSCR_G1_IO3_Msk /*!<GROUP1_IO3 sampling mode */
  9510. #define TSC_IOSCR_G1_IO4_Pos (3U)
  9511. #define TSC_IOSCR_G1_IO4_Msk (0x1U << TSC_IOSCR_G1_IO4_Pos) /*!< 0x00000008 */
  9512. #define TSC_IOSCR_G1_IO4 TSC_IOSCR_G1_IO4_Msk /*!<GROUP1_IO4 sampling mode */
  9513. #define TSC_IOSCR_G2_IO1_Pos (4U)
  9514. #define TSC_IOSCR_G2_IO1_Msk (0x1U << TSC_IOSCR_G2_IO1_Pos) /*!< 0x00000010 */
  9515. #define TSC_IOSCR_G2_IO1 TSC_IOSCR_G2_IO1_Msk /*!<GROUP2_IO1 sampling mode */
  9516. #define TSC_IOSCR_G2_IO2_Pos (5U)
  9517. #define TSC_IOSCR_G2_IO2_Msk (0x1U << TSC_IOSCR_G2_IO2_Pos) /*!< 0x00000020 */
  9518. #define TSC_IOSCR_G2_IO2 TSC_IOSCR_G2_IO2_Msk /*!<GROUP2_IO2 sampling mode */
  9519. #define TSC_IOSCR_G2_IO3_Pos (6U)
  9520. #define TSC_IOSCR_G2_IO3_Msk (0x1U << TSC_IOSCR_G2_IO3_Pos) /*!< 0x00000040 */
  9521. #define TSC_IOSCR_G2_IO3 TSC_IOSCR_G2_IO3_Msk /*!<GROUP2_IO3 sampling mode */
  9522. #define TSC_IOSCR_G2_IO4_Pos (7U)
  9523. #define TSC_IOSCR_G2_IO4_Msk (0x1U << TSC_IOSCR_G2_IO4_Pos) /*!< 0x00000080 */
  9524. #define TSC_IOSCR_G2_IO4 TSC_IOSCR_G2_IO4_Msk /*!<GROUP2_IO4 sampling mode */
  9525. #define TSC_IOSCR_G3_IO1_Pos (8U)
  9526. #define TSC_IOSCR_G3_IO1_Msk (0x1U << TSC_IOSCR_G3_IO1_Pos) /*!< 0x00000100 */
  9527. #define TSC_IOSCR_G3_IO1 TSC_IOSCR_G3_IO1_Msk /*!<GROUP3_IO1 sampling mode */
  9528. #define TSC_IOSCR_G3_IO2_Pos (9U)
  9529. #define TSC_IOSCR_G3_IO2_Msk (0x1U << TSC_IOSCR_G3_IO2_Pos) /*!< 0x00000200 */
  9530. #define TSC_IOSCR_G3_IO2 TSC_IOSCR_G3_IO2_Msk /*!<GROUP3_IO2 sampling mode */
  9531. #define TSC_IOSCR_G3_IO3_Pos (10U)
  9532. #define TSC_IOSCR_G3_IO3_Msk (0x1U << TSC_IOSCR_G3_IO3_Pos) /*!< 0x00000400 */
  9533. #define TSC_IOSCR_G3_IO3 TSC_IOSCR_G3_IO3_Msk /*!<GROUP3_IO3 sampling mode */
  9534. #define TSC_IOSCR_G3_IO4_Pos (11U)
  9535. #define TSC_IOSCR_G3_IO4_Msk (0x1U << TSC_IOSCR_G3_IO4_Pos) /*!< 0x00000800 */
  9536. #define TSC_IOSCR_G3_IO4 TSC_IOSCR_G3_IO4_Msk /*!<GROUP3_IO4 sampling mode */
  9537. #define TSC_IOSCR_G4_IO1_Pos (12U)
  9538. #define TSC_IOSCR_G4_IO1_Msk (0x1U << TSC_IOSCR_G4_IO1_Pos) /*!< 0x00001000 */
  9539. #define TSC_IOSCR_G4_IO1 TSC_IOSCR_G4_IO1_Msk /*!<GROUP4_IO1 sampling mode */
  9540. #define TSC_IOSCR_G4_IO2_Pos (13U)
  9541. #define TSC_IOSCR_G4_IO2_Msk (0x1U << TSC_IOSCR_G4_IO2_Pos) /*!< 0x00002000 */
  9542. #define TSC_IOSCR_G4_IO2 TSC_IOSCR_G4_IO2_Msk /*!<GROUP4_IO2 sampling mode */
  9543. #define TSC_IOSCR_G4_IO3_Pos (14U)
  9544. #define TSC_IOSCR_G4_IO3_Msk (0x1U << TSC_IOSCR_G4_IO3_Pos) /*!< 0x00004000 */
  9545. #define TSC_IOSCR_G4_IO3 TSC_IOSCR_G4_IO3_Msk /*!<GROUP4_IO3 sampling mode */
  9546. #define TSC_IOSCR_G4_IO4_Pos (15U)
  9547. #define TSC_IOSCR_G4_IO4_Msk (0x1U << TSC_IOSCR_G4_IO4_Pos) /*!< 0x00008000 */
  9548. #define TSC_IOSCR_G4_IO4 TSC_IOSCR_G4_IO4_Msk /*!<GROUP4_IO4 sampling mode */
  9549. #define TSC_IOSCR_G5_IO1_Pos (16U)
  9550. #define TSC_IOSCR_G5_IO1_Msk (0x1U << TSC_IOSCR_G5_IO1_Pos) /*!< 0x00010000 */
  9551. #define TSC_IOSCR_G5_IO1 TSC_IOSCR_G5_IO1_Msk /*!<GROUP5_IO1 sampling mode */
  9552. #define TSC_IOSCR_G5_IO2_Pos (17U)
  9553. #define TSC_IOSCR_G5_IO2_Msk (0x1U << TSC_IOSCR_G5_IO2_Pos) /*!< 0x00020000 */
  9554. #define TSC_IOSCR_G5_IO2 TSC_IOSCR_G5_IO2_Msk /*!<GROUP5_IO2 sampling mode */
  9555. #define TSC_IOSCR_G5_IO3_Pos (18U)
  9556. #define TSC_IOSCR_G5_IO3_Msk (0x1U << TSC_IOSCR_G5_IO3_Pos) /*!< 0x00040000 */
  9557. #define TSC_IOSCR_G5_IO3 TSC_IOSCR_G5_IO3_Msk /*!<GROUP5_IO3 sampling mode */
  9558. #define TSC_IOSCR_G5_IO4_Pos (19U)
  9559. #define TSC_IOSCR_G5_IO4_Msk (0x1U << TSC_IOSCR_G5_IO4_Pos) /*!< 0x00080000 */
  9560. #define TSC_IOSCR_G5_IO4 TSC_IOSCR_G5_IO4_Msk /*!<GROUP5_IO4 sampling mode */
  9561. #define TSC_IOSCR_G6_IO1_Pos (20U)
  9562. #define TSC_IOSCR_G6_IO1_Msk (0x1U << TSC_IOSCR_G6_IO1_Pos) /*!< 0x00100000 */
  9563. #define TSC_IOSCR_G6_IO1 TSC_IOSCR_G6_IO1_Msk /*!<GROUP6_IO1 sampling mode */
  9564. #define TSC_IOSCR_G6_IO2_Pos (21U)
  9565. #define TSC_IOSCR_G6_IO2_Msk (0x1U << TSC_IOSCR_G6_IO2_Pos) /*!< 0x00200000 */
  9566. #define TSC_IOSCR_G6_IO2 TSC_IOSCR_G6_IO2_Msk /*!<GROUP6_IO2 sampling mode */
  9567. #define TSC_IOSCR_G6_IO3_Pos (22U)
  9568. #define TSC_IOSCR_G6_IO3_Msk (0x1U << TSC_IOSCR_G6_IO3_Pos) /*!< 0x00400000 */
  9569. #define TSC_IOSCR_G6_IO3 TSC_IOSCR_G6_IO3_Msk /*!<GROUP6_IO3 sampling mode */
  9570. #define TSC_IOSCR_G6_IO4_Pos (23U)
  9571. #define TSC_IOSCR_G6_IO4_Msk (0x1U << TSC_IOSCR_G6_IO4_Pos) /*!< 0x00800000 */
  9572. #define TSC_IOSCR_G6_IO4 TSC_IOSCR_G6_IO4_Msk /*!<GROUP6_IO4 sampling mode */
  9573. #define TSC_IOSCR_G7_IO1_Pos (24U)
  9574. #define TSC_IOSCR_G7_IO1_Msk (0x1U << TSC_IOSCR_G7_IO1_Pos) /*!< 0x01000000 */
  9575. #define TSC_IOSCR_G7_IO1 TSC_IOSCR_G7_IO1_Msk /*!<GROUP7_IO1 sampling mode */
  9576. #define TSC_IOSCR_G7_IO2_Pos (25U)
  9577. #define TSC_IOSCR_G7_IO2_Msk (0x1U << TSC_IOSCR_G7_IO2_Pos) /*!< 0x02000000 */
  9578. #define TSC_IOSCR_G7_IO2 TSC_IOSCR_G7_IO2_Msk /*!<GROUP7_IO2 sampling mode */
  9579. #define TSC_IOSCR_G7_IO3_Pos (26U)
  9580. #define TSC_IOSCR_G7_IO3_Msk (0x1U << TSC_IOSCR_G7_IO3_Pos) /*!< 0x04000000 */
  9581. #define TSC_IOSCR_G7_IO3 TSC_IOSCR_G7_IO3_Msk /*!<GROUP7_IO3 sampling mode */
  9582. #define TSC_IOSCR_G7_IO4_Pos (27U)
  9583. #define TSC_IOSCR_G7_IO4_Msk (0x1U << TSC_IOSCR_G7_IO4_Pos) /*!< 0x08000000 */
  9584. #define TSC_IOSCR_G7_IO4 TSC_IOSCR_G7_IO4_Msk /*!<GROUP7_IO4 sampling mode */
  9585. #define TSC_IOSCR_G8_IO1_Pos (28U)
  9586. #define TSC_IOSCR_G8_IO1_Msk (0x1U << TSC_IOSCR_G8_IO1_Pos) /*!< 0x10000000 */
  9587. #define TSC_IOSCR_G8_IO1 TSC_IOSCR_G8_IO1_Msk /*!<GROUP8_IO1 sampling mode */
  9588. #define TSC_IOSCR_G8_IO2_Pos (29U)
  9589. #define TSC_IOSCR_G8_IO2_Msk (0x1U << TSC_IOSCR_G8_IO2_Pos) /*!< 0x20000000 */
  9590. #define TSC_IOSCR_G8_IO2 TSC_IOSCR_G8_IO2_Msk /*!<GROUP8_IO2 sampling mode */
  9591. #define TSC_IOSCR_G8_IO3_Pos (30U)
  9592. #define TSC_IOSCR_G8_IO3_Msk (0x1U << TSC_IOSCR_G8_IO3_Pos) /*!< 0x40000000 */
  9593. #define TSC_IOSCR_G8_IO3 TSC_IOSCR_G8_IO3_Msk /*!<GROUP8_IO3 sampling mode */
  9594. #define TSC_IOSCR_G8_IO4_Pos (31U)
  9595. #define TSC_IOSCR_G8_IO4_Msk (0x1U << TSC_IOSCR_G8_IO4_Pos) /*!< 0x80000000 */
  9596. #define TSC_IOSCR_G8_IO4 TSC_IOSCR_G8_IO4_Msk /*!<GROUP8_IO4 sampling mode */
  9597. /******************* Bit definition for TSC_IOCCR register ******************/
  9598. #define TSC_IOCCR_G1_IO1_Pos (0U)
  9599. #define TSC_IOCCR_G1_IO1_Msk (0x1U << TSC_IOCCR_G1_IO1_Pos) /*!< 0x00000001 */
  9600. #define TSC_IOCCR_G1_IO1 TSC_IOCCR_G1_IO1_Msk /*!<GROUP1_IO1 channel mode */
  9601. #define TSC_IOCCR_G1_IO2_Pos (1U)
  9602. #define TSC_IOCCR_G1_IO2_Msk (0x1U << TSC_IOCCR_G1_IO2_Pos) /*!< 0x00000002 */
  9603. #define TSC_IOCCR_G1_IO2 TSC_IOCCR_G1_IO2_Msk /*!<GROUP1_IO2 channel mode */
  9604. #define TSC_IOCCR_G1_IO3_Pos (2U)
  9605. #define TSC_IOCCR_G1_IO3_Msk (0x1U << TSC_IOCCR_G1_IO3_Pos) /*!< 0x00000004 */
  9606. #define TSC_IOCCR_G1_IO3 TSC_IOCCR_G1_IO3_Msk /*!<GROUP1_IO3 channel mode */
  9607. #define TSC_IOCCR_G1_IO4_Pos (3U)
  9608. #define TSC_IOCCR_G1_IO4_Msk (0x1U << TSC_IOCCR_G1_IO4_Pos) /*!< 0x00000008 */
  9609. #define TSC_IOCCR_G1_IO4 TSC_IOCCR_G1_IO4_Msk /*!<GROUP1_IO4 channel mode */
  9610. #define TSC_IOCCR_G2_IO1_Pos (4U)
  9611. #define TSC_IOCCR_G2_IO1_Msk (0x1U << TSC_IOCCR_G2_IO1_Pos) /*!< 0x00000010 */
  9612. #define TSC_IOCCR_G2_IO1 TSC_IOCCR_G2_IO1_Msk /*!<GROUP2_IO1 channel mode */
  9613. #define TSC_IOCCR_G2_IO2_Pos (5U)
  9614. #define TSC_IOCCR_G2_IO2_Msk (0x1U << TSC_IOCCR_G2_IO2_Pos) /*!< 0x00000020 */
  9615. #define TSC_IOCCR_G2_IO2 TSC_IOCCR_G2_IO2_Msk /*!<GROUP2_IO2 channel mode */
  9616. #define TSC_IOCCR_G2_IO3_Pos (6U)
  9617. #define TSC_IOCCR_G2_IO3_Msk (0x1U << TSC_IOCCR_G2_IO3_Pos) /*!< 0x00000040 */
  9618. #define TSC_IOCCR_G2_IO3 TSC_IOCCR_G2_IO3_Msk /*!<GROUP2_IO3 channel mode */
  9619. #define TSC_IOCCR_G2_IO4_Pos (7U)
  9620. #define TSC_IOCCR_G2_IO4_Msk (0x1U << TSC_IOCCR_G2_IO4_Pos) /*!< 0x00000080 */
  9621. #define TSC_IOCCR_G2_IO4 TSC_IOCCR_G2_IO4_Msk /*!<GROUP2_IO4 channel mode */
  9622. #define TSC_IOCCR_G3_IO1_Pos (8U)
  9623. #define TSC_IOCCR_G3_IO1_Msk (0x1U << TSC_IOCCR_G3_IO1_Pos) /*!< 0x00000100 */
  9624. #define TSC_IOCCR_G3_IO1 TSC_IOCCR_G3_IO1_Msk /*!<GROUP3_IO1 channel mode */
  9625. #define TSC_IOCCR_G3_IO2_Pos (9U)
  9626. #define TSC_IOCCR_G3_IO2_Msk (0x1U << TSC_IOCCR_G3_IO2_Pos) /*!< 0x00000200 */
  9627. #define TSC_IOCCR_G3_IO2 TSC_IOCCR_G3_IO2_Msk /*!<GROUP3_IO2 channel mode */
  9628. #define TSC_IOCCR_G3_IO3_Pos (10U)
  9629. #define TSC_IOCCR_G3_IO3_Msk (0x1U << TSC_IOCCR_G3_IO3_Pos) /*!< 0x00000400 */
  9630. #define TSC_IOCCR_G3_IO3 TSC_IOCCR_G3_IO3_Msk /*!<GROUP3_IO3 channel mode */
  9631. #define TSC_IOCCR_G3_IO4_Pos (11U)
  9632. #define TSC_IOCCR_G3_IO4_Msk (0x1U << TSC_IOCCR_G3_IO4_Pos) /*!< 0x00000800 */
  9633. #define TSC_IOCCR_G3_IO4 TSC_IOCCR_G3_IO4_Msk /*!<GROUP3_IO4 channel mode */
  9634. #define TSC_IOCCR_G4_IO1_Pos (12U)
  9635. #define TSC_IOCCR_G4_IO1_Msk (0x1U << TSC_IOCCR_G4_IO1_Pos) /*!< 0x00001000 */
  9636. #define TSC_IOCCR_G4_IO1 TSC_IOCCR_G4_IO1_Msk /*!<GROUP4_IO1 channel mode */
  9637. #define TSC_IOCCR_G4_IO2_Pos (13U)
  9638. #define TSC_IOCCR_G4_IO2_Msk (0x1U << TSC_IOCCR_G4_IO2_Pos) /*!< 0x00002000 */
  9639. #define TSC_IOCCR_G4_IO2 TSC_IOCCR_G4_IO2_Msk /*!<GROUP4_IO2 channel mode */
  9640. #define TSC_IOCCR_G4_IO3_Pos (14U)
  9641. #define TSC_IOCCR_G4_IO3_Msk (0x1U << TSC_IOCCR_G4_IO3_Pos) /*!< 0x00004000 */
  9642. #define TSC_IOCCR_G4_IO3 TSC_IOCCR_G4_IO3_Msk /*!<GROUP4_IO3 channel mode */
  9643. #define TSC_IOCCR_G4_IO4_Pos (15U)
  9644. #define TSC_IOCCR_G4_IO4_Msk (0x1U << TSC_IOCCR_G4_IO4_Pos) /*!< 0x00008000 */
  9645. #define TSC_IOCCR_G4_IO4 TSC_IOCCR_G4_IO4_Msk /*!<GROUP4_IO4 channel mode */
  9646. #define TSC_IOCCR_G5_IO1_Pos (16U)
  9647. #define TSC_IOCCR_G5_IO1_Msk (0x1U << TSC_IOCCR_G5_IO1_Pos) /*!< 0x00010000 */
  9648. #define TSC_IOCCR_G5_IO1 TSC_IOCCR_G5_IO1_Msk /*!<GROUP5_IO1 channel mode */
  9649. #define TSC_IOCCR_G5_IO2_Pos (17U)
  9650. #define TSC_IOCCR_G5_IO2_Msk (0x1U << TSC_IOCCR_G5_IO2_Pos) /*!< 0x00020000 */
  9651. #define TSC_IOCCR_G5_IO2 TSC_IOCCR_G5_IO2_Msk /*!<GROUP5_IO2 channel mode */
  9652. #define TSC_IOCCR_G5_IO3_Pos (18U)
  9653. #define TSC_IOCCR_G5_IO3_Msk (0x1U << TSC_IOCCR_G5_IO3_Pos) /*!< 0x00040000 */
  9654. #define TSC_IOCCR_G5_IO3 TSC_IOCCR_G5_IO3_Msk /*!<GROUP5_IO3 channel mode */
  9655. #define TSC_IOCCR_G5_IO4_Pos (19U)
  9656. #define TSC_IOCCR_G5_IO4_Msk (0x1U << TSC_IOCCR_G5_IO4_Pos) /*!< 0x00080000 */
  9657. #define TSC_IOCCR_G5_IO4 TSC_IOCCR_G5_IO4_Msk /*!<GROUP5_IO4 channel mode */
  9658. #define TSC_IOCCR_G6_IO1_Pos (20U)
  9659. #define TSC_IOCCR_G6_IO1_Msk (0x1U << TSC_IOCCR_G6_IO1_Pos) /*!< 0x00100000 */
  9660. #define TSC_IOCCR_G6_IO1 TSC_IOCCR_G6_IO1_Msk /*!<GROUP6_IO1 channel mode */
  9661. #define TSC_IOCCR_G6_IO2_Pos (21U)
  9662. #define TSC_IOCCR_G6_IO2_Msk (0x1U << TSC_IOCCR_G6_IO2_Pos) /*!< 0x00200000 */
  9663. #define TSC_IOCCR_G6_IO2 TSC_IOCCR_G6_IO2_Msk /*!<GROUP6_IO2 channel mode */
  9664. #define TSC_IOCCR_G6_IO3_Pos (22U)
  9665. #define TSC_IOCCR_G6_IO3_Msk (0x1U << TSC_IOCCR_G6_IO3_Pos) /*!< 0x00400000 */
  9666. #define TSC_IOCCR_G6_IO3 TSC_IOCCR_G6_IO3_Msk /*!<GROUP6_IO3 channel mode */
  9667. #define TSC_IOCCR_G6_IO4_Pos (23U)
  9668. #define TSC_IOCCR_G6_IO4_Msk (0x1U << TSC_IOCCR_G6_IO4_Pos) /*!< 0x00800000 */
  9669. #define TSC_IOCCR_G6_IO4 TSC_IOCCR_G6_IO4_Msk /*!<GROUP6_IO4 channel mode */
  9670. #define TSC_IOCCR_G7_IO1_Pos (24U)
  9671. #define TSC_IOCCR_G7_IO1_Msk (0x1U << TSC_IOCCR_G7_IO1_Pos) /*!< 0x01000000 */
  9672. #define TSC_IOCCR_G7_IO1 TSC_IOCCR_G7_IO1_Msk /*!<GROUP7_IO1 channel mode */
  9673. #define TSC_IOCCR_G7_IO2_Pos (25U)
  9674. #define TSC_IOCCR_G7_IO2_Msk (0x1U << TSC_IOCCR_G7_IO2_Pos) /*!< 0x02000000 */
  9675. #define TSC_IOCCR_G7_IO2 TSC_IOCCR_G7_IO2_Msk /*!<GROUP7_IO2 channel mode */
  9676. #define TSC_IOCCR_G7_IO3_Pos (26U)
  9677. #define TSC_IOCCR_G7_IO3_Msk (0x1U << TSC_IOCCR_G7_IO3_Pos) /*!< 0x04000000 */
  9678. #define TSC_IOCCR_G7_IO3 TSC_IOCCR_G7_IO3_Msk /*!<GROUP7_IO3 channel mode */
  9679. #define TSC_IOCCR_G7_IO4_Pos (27U)
  9680. #define TSC_IOCCR_G7_IO4_Msk (0x1U << TSC_IOCCR_G7_IO4_Pos) /*!< 0x08000000 */
  9681. #define TSC_IOCCR_G7_IO4 TSC_IOCCR_G7_IO4_Msk /*!<GROUP7_IO4 channel mode */
  9682. #define TSC_IOCCR_G8_IO1_Pos (28U)
  9683. #define TSC_IOCCR_G8_IO1_Msk (0x1U << TSC_IOCCR_G8_IO1_Pos) /*!< 0x10000000 */
  9684. #define TSC_IOCCR_G8_IO1 TSC_IOCCR_G8_IO1_Msk /*!<GROUP8_IO1 channel mode */
  9685. #define TSC_IOCCR_G8_IO2_Pos (29U)
  9686. #define TSC_IOCCR_G8_IO2_Msk (0x1U << TSC_IOCCR_G8_IO2_Pos) /*!< 0x20000000 */
  9687. #define TSC_IOCCR_G8_IO2 TSC_IOCCR_G8_IO2_Msk /*!<GROUP8_IO2 channel mode */
  9688. #define TSC_IOCCR_G8_IO3_Pos (30U)
  9689. #define TSC_IOCCR_G8_IO3_Msk (0x1U << TSC_IOCCR_G8_IO3_Pos) /*!< 0x40000000 */
  9690. #define TSC_IOCCR_G8_IO3 TSC_IOCCR_G8_IO3_Msk /*!<GROUP8_IO3 channel mode */
  9691. #define TSC_IOCCR_G8_IO4_Pos (31U)
  9692. #define TSC_IOCCR_G8_IO4_Msk (0x1U << TSC_IOCCR_G8_IO4_Pos) /*!< 0x80000000 */
  9693. #define TSC_IOCCR_G8_IO4 TSC_IOCCR_G8_IO4_Msk /*!<GROUP8_IO4 channel mode */
  9694. /******************* Bit definition for TSC_IOGCSR register *****************/
  9695. #define TSC_IOGCSR_G1E_Pos (0U)
  9696. #define TSC_IOGCSR_G1E_Msk (0x1U << TSC_IOGCSR_G1E_Pos) /*!< 0x00000001 */
  9697. #define TSC_IOGCSR_G1E TSC_IOGCSR_G1E_Msk /*!<Analog IO GROUP1 enable */
  9698. #define TSC_IOGCSR_G2E_Pos (1U)
  9699. #define TSC_IOGCSR_G2E_Msk (0x1U << TSC_IOGCSR_G2E_Pos) /*!< 0x00000002 */
  9700. #define TSC_IOGCSR_G2E TSC_IOGCSR_G2E_Msk /*!<Analog IO GROUP2 enable */
  9701. #define TSC_IOGCSR_G3E_Pos (2U)
  9702. #define TSC_IOGCSR_G3E_Msk (0x1U << TSC_IOGCSR_G3E_Pos) /*!< 0x00000004 */
  9703. #define TSC_IOGCSR_G3E TSC_IOGCSR_G3E_Msk /*!<Analog IO GROUP3 enable */
  9704. #define TSC_IOGCSR_G4E_Pos (3U)
  9705. #define TSC_IOGCSR_G4E_Msk (0x1U << TSC_IOGCSR_G4E_Pos) /*!< 0x00000008 */
  9706. #define TSC_IOGCSR_G4E TSC_IOGCSR_G4E_Msk /*!<Analog IO GROUP4 enable */
  9707. #define TSC_IOGCSR_G5E_Pos (4U)
  9708. #define TSC_IOGCSR_G5E_Msk (0x1U << TSC_IOGCSR_G5E_Pos) /*!< 0x00000010 */
  9709. #define TSC_IOGCSR_G5E TSC_IOGCSR_G5E_Msk /*!<Analog IO GROUP5 enable */
  9710. #define TSC_IOGCSR_G6E_Pos (5U)
  9711. #define TSC_IOGCSR_G6E_Msk (0x1U << TSC_IOGCSR_G6E_Pos) /*!< 0x00000020 */
  9712. #define TSC_IOGCSR_G6E TSC_IOGCSR_G6E_Msk /*!<Analog IO GROUP6 enable */
  9713. #define TSC_IOGCSR_G7E_Pos (6U)
  9714. #define TSC_IOGCSR_G7E_Msk (0x1U << TSC_IOGCSR_G7E_Pos) /*!< 0x00000040 */
  9715. #define TSC_IOGCSR_G7E TSC_IOGCSR_G7E_Msk /*!<Analog IO GROUP7 enable */
  9716. #define TSC_IOGCSR_G8E_Pos (7U)
  9717. #define TSC_IOGCSR_G8E_Msk (0x1U << TSC_IOGCSR_G8E_Pos) /*!< 0x00000080 */
  9718. #define TSC_IOGCSR_G8E TSC_IOGCSR_G8E_Msk /*!<Analog IO GROUP8 enable */
  9719. #define TSC_IOGCSR_G1S_Pos (16U)
  9720. #define TSC_IOGCSR_G1S_Msk (0x1U << TSC_IOGCSR_G1S_Pos) /*!< 0x00010000 */
  9721. #define TSC_IOGCSR_G1S TSC_IOGCSR_G1S_Msk /*!<Analog IO GROUP1 status */
  9722. #define TSC_IOGCSR_G2S_Pos (17U)
  9723. #define TSC_IOGCSR_G2S_Msk (0x1U << TSC_IOGCSR_G2S_Pos) /*!< 0x00020000 */
  9724. #define TSC_IOGCSR_G2S TSC_IOGCSR_G2S_Msk /*!<Analog IO GROUP2 status */
  9725. #define TSC_IOGCSR_G3S_Pos (18U)
  9726. #define TSC_IOGCSR_G3S_Msk (0x1U << TSC_IOGCSR_G3S_Pos) /*!< 0x00040000 */
  9727. #define TSC_IOGCSR_G3S TSC_IOGCSR_G3S_Msk /*!<Analog IO GROUP3 status */
  9728. #define TSC_IOGCSR_G4S_Pos (19U)
  9729. #define TSC_IOGCSR_G4S_Msk (0x1U << TSC_IOGCSR_G4S_Pos) /*!< 0x00080000 */
  9730. #define TSC_IOGCSR_G4S TSC_IOGCSR_G4S_Msk /*!<Analog IO GROUP4 status */
  9731. #define TSC_IOGCSR_G5S_Pos (20U)
  9732. #define TSC_IOGCSR_G5S_Msk (0x1U << TSC_IOGCSR_G5S_Pos) /*!< 0x00100000 */
  9733. #define TSC_IOGCSR_G5S TSC_IOGCSR_G5S_Msk /*!<Analog IO GROUP5 status */
  9734. #define TSC_IOGCSR_G6S_Pos (21U)
  9735. #define TSC_IOGCSR_G6S_Msk (0x1U << TSC_IOGCSR_G6S_Pos) /*!< 0x00200000 */
  9736. #define TSC_IOGCSR_G6S TSC_IOGCSR_G6S_Msk /*!<Analog IO GROUP6 status */
  9737. #define TSC_IOGCSR_G7S_Pos (22U)
  9738. #define TSC_IOGCSR_G7S_Msk (0x1U << TSC_IOGCSR_G7S_Pos) /*!< 0x00400000 */
  9739. #define TSC_IOGCSR_G7S TSC_IOGCSR_G7S_Msk /*!<Analog IO GROUP7 status */
  9740. #define TSC_IOGCSR_G8S_Pos (23U)
  9741. #define TSC_IOGCSR_G8S_Msk (0x1U << TSC_IOGCSR_G8S_Pos) /*!< 0x00800000 */
  9742. #define TSC_IOGCSR_G8S TSC_IOGCSR_G8S_Msk /*!<Analog IO GROUP8 status */
  9743. /******************* Bit definition for TSC_IOGXCR register *****************/
  9744. #define TSC_IOGXCR_CNT_Pos (0U)
  9745. #define TSC_IOGXCR_CNT_Msk (0x3FFFU << TSC_IOGXCR_CNT_Pos) /*!< 0x00003FFF */
  9746. #define TSC_IOGXCR_CNT TSC_IOGXCR_CNT_Msk /*!<CNT[13:0] bits (Counter value) */
  9747. /******************************************************************************/
  9748. /* */
  9749. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  9750. /* */
  9751. /******************************************************************************/
  9752. /*
  9753. * @brief Specific device feature definitions (not present on all devices in the STM32F0 serie)
  9754. */
  9755. /* Support of 7 bits data length feature */
  9756. #define USART_7BITS_SUPPORT
  9757. /* Support of LIN feature */
  9758. #define USART_LIN_SUPPORT
  9759. /* Support of Smartcard feature */
  9760. #define USART_SMARTCARD_SUPPORT
  9761. /* Support of Irda feature */
  9762. #define USART_IRDA_SUPPORT
  9763. /* Support of Wake Up from Stop Mode feature */
  9764. #define USART_WUSM_SUPPORT
  9765. /* Support of Full Auto Baud rate feature (4 modes) activation */
  9766. #define USART_FABR_SUPPORT
  9767. /****************** Bit definition for USART_CR1 register *******************/
  9768. #define USART_CR1_UE_Pos (0U)
  9769. #define USART_CR1_UE_Msk (0x1U << USART_CR1_UE_Pos) /*!< 0x00000001 */
  9770. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  9771. #define USART_CR1_UESM_Pos (1U)
  9772. #define USART_CR1_UESM_Msk (0x1U << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  9773. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  9774. #define USART_CR1_RE_Pos (2U)
  9775. #define USART_CR1_RE_Msk (0x1U << USART_CR1_RE_Pos) /*!< 0x00000004 */
  9776. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  9777. #define USART_CR1_TE_Pos (3U)
  9778. #define USART_CR1_TE_Msk (0x1U << USART_CR1_TE_Pos) /*!< 0x00000008 */
  9779. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  9780. #define USART_CR1_IDLEIE_Pos (4U)
  9781. #define USART_CR1_IDLEIE_Msk (0x1U << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  9782. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  9783. #define USART_CR1_RXNEIE_Pos (5U)
  9784. #define USART_CR1_RXNEIE_Msk (0x1U << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  9785. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  9786. #define USART_CR1_TCIE_Pos (6U)
  9787. #define USART_CR1_TCIE_Msk (0x1U << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  9788. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  9789. #define USART_CR1_TXEIE_Pos (7U)
  9790. #define USART_CR1_TXEIE_Msk (0x1U << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  9791. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  9792. #define USART_CR1_PEIE_Pos (8U)
  9793. #define USART_CR1_PEIE_Msk (0x1U << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  9794. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  9795. #define USART_CR1_PS_Pos (9U)
  9796. #define USART_CR1_PS_Msk (0x1U << USART_CR1_PS_Pos) /*!< 0x00000200 */
  9797. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  9798. #define USART_CR1_PCE_Pos (10U)
  9799. #define USART_CR1_PCE_Msk (0x1U << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  9800. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  9801. #define USART_CR1_WAKE_Pos (11U)
  9802. #define USART_CR1_WAKE_Msk (0x1U << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  9803. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  9804. #define USART_CR1_M0_Pos (12U)
  9805. #define USART_CR1_M0_Msk (0x1U << USART_CR1_M0_Pos) /*!< 0x00001000 */
  9806. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length bit 0 */
  9807. #define USART_CR1_MME_Pos (13U)
  9808. #define USART_CR1_MME_Msk (0x1U << USART_CR1_MME_Pos) /*!< 0x00002000 */
  9809. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  9810. #define USART_CR1_CMIE_Pos (14U)
  9811. #define USART_CR1_CMIE_Msk (0x1U << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  9812. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  9813. #define USART_CR1_OVER8_Pos (15U)
  9814. #define USART_CR1_OVER8_Msk (0x1U << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  9815. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  9816. #define USART_CR1_DEDT_Pos (16U)
  9817. #define USART_CR1_DEDT_Msk (0x1FU << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  9818. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  9819. #define USART_CR1_DEDT_0 (0x01U << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  9820. #define USART_CR1_DEDT_1 (0x02U << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  9821. #define USART_CR1_DEDT_2 (0x04U << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  9822. #define USART_CR1_DEDT_3 (0x08U << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  9823. #define USART_CR1_DEDT_4 (0x10U << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  9824. #define USART_CR1_DEAT_Pos (21U)
  9825. #define USART_CR1_DEAT_Msk (0x1FU << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  9826. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  9827. #define USART_CR1_DEAT_0 (0x01U << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  9828. #define USART_CR1_DEAT_1 (0x02U << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  9829. #define USART_CR1_DEAT_2 (0x04U << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  9830. #define USART_CR1_DEAT_3 (0x08U << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  9831. #define USART_CR1_DEAT_4 (0x10U << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  9832. #define USART_CR1_RTOIE_Pos (26U)
  9833. #define USART_CR1_RTOIE_Msk (0x1U << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  9834. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */
  9835. #define USART_CR1_EOBIE_Pos (27U)
  9836. #define USART_CR1_EOBIE_Msk (0x1U << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  9837. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */
  9838. #define USART_CR1_M1_Pos (28U)
  9839. #define USART_CR1_M1_Msk (0x1U << USART_CR1_M1_Pos) /*!< 0x10000000 */
  9840. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length bit 1 */
  9841. #define USART_CR1_M_Pos (12U)
  9842. #define USART_CR1_M_Msk (0x10001U << USART_CR1_M_Pos) /*!< 0x10001000 */
  9843. #define USART_CR1_M USART_CR1_M_Msk /*!< [M1:M0] Word length */
  9844. /****************** Bit definition for USART_CR2 register *******************/
  9845. #define USART_CR2_ADDM7_Pos (4U)
  9846. #define USART_CR2_ADDM7_Msk (0x1U << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  9847. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  9848. #define USART_CR2_LBDL_Pos (5U)
  9849. #define USART_CR2_LBDL_Msk (0x1U << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  9850. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  9851. #define USART_CR2_LBDIE_Pos (6U)
  9852. #define USART_CR2_LBDIE_Msk (0x1U << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  9853. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  9854. #define USART_CR2_LBCL_Pos (8U)
  9855. #define USART_CR2_LBCL_Msk (0x1U << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  9856. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  9857. #define USART_CR2_CPHA_Pos (9U)
  9858. #define USART_CR2_CPHA_Msk (0x1U << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  9859. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  9860. #define USART_CR2_CPOL_Pos (10U)
  9861. #define USART_CR2_CPOL_Msk (0x1U << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  9862. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  9863. #define USART_CR2_CLKEN_Pos (11U)
  9864. #define USART_CR2_CLKEN_Msk (0x1U << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  9865. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  9866. #define USART_CR2_STOP_Pos (12U)
  9867. #define USART_CR2_STOP_Msk (0x3U << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  9868. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  9869. #define USART_CR2_STOP_0 (0x1U << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  9870. #define USART_CR2_STOP_1 (0x2U << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  9871. #define USART_CR2_LINEN_Pos (14U)
  9872. #define USART_CR2_LINEN_Msk (0x1U << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  9873. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  9874. #define USART_CR2_SWAP_Pos (15U)
  9875. #define USART_CR2_SWAP_Msk (0x1U << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  9876. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  9877. #define USART_CR2_RXINV_Pos (16U)
  9878. #define USART_CR2_RXINV_Msk (0x1U << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  9879. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  9880. #define USART_CR2_TXINV_Pos (17U)
  9881. #define USART_CR2_TXINV_Msk (0x1U << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  9882. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  9883. #define USART_CR2_DATAINV_Pos (18U)
  9884. #define USART_CR2_DATAINV_Msk (0x1U << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  9885. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  9886. #define USART_CR2_MSBFIRST_Pos (19U)
  9887. #define USART_CR2_MSBFIRST_Msk (0x1U << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  9888. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  9889. #define USART_CR2_ABREN_Pos (20U)
  9890. #define USART_CR2_ABREN_Msk (0x1U << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  9891. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  9892. #define USART_CR2_ABRMODE_Pos (21U)
  9893. #define USART_CR2_ABRMODE_Msk (0x3U << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  9894. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  9895. #define USART_CR2_ABRMODE_0 (0x1U << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  9896. #define USART_CR2_ABRMODE_1 (0x2U << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  9897. #define USART_CR2_RTOEN_Pos (23U)
  9898. #define USART_CR2_RTOEN_Msk (0x1U << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  9899. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  9900. #define USART_CR2_ADD_Pos (24U)
  9901. #define USART_CR2_ADD_Msk (0xFFU << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  9902. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  9903. /****************** Bit definition for USART_CR3 register *******************/
  9904. #define USART_CR3_EIE_Pos (0U)
  9905. #define USART_CR3_EIE_Msk (0x1U << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  9906. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  9907. #define USART_CR3_IREN_Pos (1U)
  9908. #define USART_CR3_IREN_Msk (0x1U << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  9909. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  9910. #define USART_CR3_IRLP_Pos (2U)
  9911. #define USART_CR3_IRLP_Msk (0x1U << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  9912. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  9913. #define USART_CR3_HDSEL_Pos (3U)
  9914. #define USART_CR3_HDSEL_Msk (0x1U << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  9915. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  9916. #define USART_CR3_NACK_Pos (4U)
  9917. #define USART_CR3_NACK_Msk (0x1U << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  9918. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  9919. #define USART_CR3_SCEN_Pos (5U)
  9920. #define USART_CR3_SCEN_Msk (0x1U << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  9921. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  9922. #define USART_CR3_DMAR_Pos (6U)
  9923. #define USART_CR3_DMAR_Msk (0x1U << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  9924. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  9925. #define USART_CR3_DMAT_Pos (7U)
  9926. #define USART_CR3_DMAT_Msk (0x1U << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  9927. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  9928. #define USART_CR3_RTSE_Pos (8U)
  9929. #define USART_CR3_RTSE_Msk (0x1U << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  9930. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  9931. #define USART_CR3_CTSE_Pos (9U)
  9932. #define USART_CR3_CTSE_Msk (0x1U << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  9933. #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */
  9934. #define USART_CR3_CTSIE_Pos (10U)
  9935. #define USART_CR3_CTSIE_Msk (0x1U << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  9936. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  9937. #define USART_CR3_ONEBIT_Pos (11U)
  9938. #define USART_CR3_ONEBIT_Msk (0x1U << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  9939. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  9940. #define USART_CR3_OVRDIS_Pos (12U)
  9941. #define USART_CR3_OVRDIS_Msk (0x1U << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  9942. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  9943. #define USART_CR3_DDRE_Pos (13U)
  9944. #define USART_CR3_DDRE_Msk (0x1U << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  9945. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  9946. #define USART_CR3_DEM_Pos (14U)
  9947. #define USART_CR3_DEM_Msk (0x1U << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  9948. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  9949. #define USART_CR3_DEP_Pos (15U)
  9950. #define USART_CR3_DEP_Msk (0x1U << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  9951. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  9952. #define USART_CR3_SCARCNT_Pos (17U)
  9953. #define USART_CR3_SCARCNT_Msk (0x7U << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  9954. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  9955. #define USART_CR3_SCARCNT_0 (0x1U << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  9956. #define USART_CR3_SCARCNT_1 (0x2U << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  9957. #define USART_CR3_SCARCNT_2 (0x4U << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  9958. #define USART_CR3_WUS_Pos (20U)
  9959. #define USART_CR3_WUS_Msk (0x3U << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  9960. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  9961. #define USART_CR3_WUS_0 (0x1U << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  9962. #define USART_CR3_WUS_1 (0x2U << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  9963. #define USART_CR3_WUFIE_Pos (22U)
  9964. #define USART_CR3_WUFIE_Msk (0x1U << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  9965. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  9966. /****************** Bit definition for USART_BRR register *******************/
  9967. #define USART_BRR_DIV_FRACTION_Pos (0U)
  9968. #define USART_BRR_DIV_FRACTION_Msk (0xFU << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */
  9969. #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */
  9970. #define USART_BRR_DIV_MANTISSA_Pos (4U)
  9971. #define USART_BRR_DIV_MANTISSA_Msk (0xFFFU << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */
  9972. #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */
  9973. /****************** Bit definition for USART_GTPR register ******************/
  9974. #define USART_GTPR_PSC_Pos (0U)
  9975. #define USART_GTPR_PSC_Msk (0xFFU << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  9976. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  9977. #define USART_GTPR_GT_Pos (8U)
  9978. #define USART_GTPR_GT_Msk (0xFFU << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  9979. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  9980. /******************* Bit definition for USART_RTOR register *****************/
  9981. #define USART_RTOR_RTO_Pos (0U)
  9982. #define USART_RTOR_RTO_Msk (0xFFFFFFU << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  9983. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */
  9984. #define USART_RTOR_BLEN_Pos (24U)
  9985. #define USART_RTOR_BLEN_Msk (0xFFU << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  9986. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  9987. /******************* Bit definition for USART_RQR register ******************/
  9988. #define USART_RQR_ABRRQ_Pos (0U)
  9989. #define USART_RQR_ABRRQ_Msk (0x1U << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  9990. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  9991. #define USART_RQR_SBKRQ_Pos (1U)
  9992. #define USART_RQR_SBKRQ_Msk (0x1U << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  9993. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  9994. #define USART_RQR_MMRQ_Pos (2U)
  9995. #define USART_RQR_MMRQ_Msk (0x1U << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  9996. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  9997. #define USART_RQR_RXFRQ_Pos (3U)
  9998. #define USART_RQR_RXFRQ_Msk (0x1U << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  9999. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  10000. #define USART_RQR_TXFRQ_Pos (4U)
  10001. #define USART_RQR_TXFRQ_Msk (0x1U << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  10002. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */
  10003. /******************* Bit definition for USART_ISR register ******************/
  10004. #define USART_ISR_PE_Pos (0U)
  10005. #define USART_ISR_PE_Msk (0x1U << USART_ISR_PE_Pos) /*!< 0x00000001 */
  10006. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  10007. #define USART_ISR_FE_Pos (1U)
  10008. #define USART_ISR_FE_Msk (0x1U << USART_ISR_FE_Pos) /*!< 0x00000002 */
  10009. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  10010. #define USART_ISR_NE_Pos (2U)
  10011. #define USART_ISR_NE_Msk (0x1U << USART_ISR_NE_Pos) /*!< 0x00000004 */
  10012. #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */
  10013. #define USART_ISR_ORE_Pos (3U)
  10014. #define USART_ISR_ORE_Msk (0x1U << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  10015. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  10016. #define USART_ISR_IDLE_Pos (4U)
  10017. #define USART_ISR_IDLE_Msk (0x1U << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  10018. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  10019. #define USART_ISR_RXNE_Pos (5U)
  10020. #define USART_ISR_RXNE_Msk (0x1U << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  10021. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  10022. #define USART_ISR_TC_Pos (6U)
  10023. #define USART_ISR_TC_Msk (0x1U << USART_ISR_TC_Pos) /*!< 0x00000040 */
  10024. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  10025. #define USART_ISR_TXE_Pos (7U)
  10026. #define USART_ISR_TXE_Msk (0x1U << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  10027. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  10028. #define USART_ISR_LBDF_Pos (8U)
  10029. #define USART_ISR_LBDF_Msk (0x1U << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  10030. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  10031. #define USART_ISR_CTSIF_Pos (9U)
  10032. #define USART_ISR_CTSIF_Msk (0x1U << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  10033. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */
  10034. #define USART_ISR_CTS_Pos (10U)
  10035. #define USART_ISR_CTS_Msk (0x1U << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  10036. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */
  10037. #define USART_ISR_RTOF_Pos (11U)
  10038. #define USART_ISR_RTOF_Msk (0x1U << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  10039. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */
  10040. #define USART_ISR_EOBF_Pos (12U)
  10041. #define USART_ISR_EOBF_Msk (0x1U << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  10042. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  10043. #define USART_ISR_ABRE_Pos (14U)
  10044. #define USART_ISR_ABRE_Msk (0x1U << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  10045. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  10046. #define USART_ISR_ABRF_Pos (15U)
  10047. #define USART_ISR_ABRF_Msk (0x1U << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  10048. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  10049. #define USART_ISR_BUSY_Pos (16U)
  10050. #define USART_ISR_BUSY_Msk (0x1U << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  10051. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  10052. #define USART_ISR_CMF_Pos (17U)
  10053. #define USART_ISR_CMF_Msk (0x1U << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  10054. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  10055. #define USART_ISR_SBKF_Pos (18U)
  10056. #define USART_ISR_SBKF_Msk (0x1U << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  10057. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  10058. #define USART_ISR_RWU_Pos (19U)
  10059. #define USART_ISR_RWU_Msk (0x1U << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  10060. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  10061. #define USART_ISR_WUF_Pos (20U)
  10062. #define USART_ISR_WUF_Msk (0x1U << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  10063. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  10064. #define USART_ISR_TEACK_Pos (21U)
  10065. #define USART_ISR_TEACK_Msk (0x1U << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  10066. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  10067. #define USART_ISR_REACK_Pos (22U)
  10068. #define USART_ISR_REACK_Msk (0x1U << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  10069. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  10070. /******************* Bit definition for USART_ICR register ******************/
  10071. #define USART_ICR_PECF_Pos (0U)
  10072. #define USART_ICR_PECF_Msk (0x1U << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  10073. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  10074. #define USART_ICR_FECF_Pos (1U)
  10075. #define USART_ICR_FECF_Msk (0x1U << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  10076. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  10077. #define USART_ICR_NCF_Pos (2U)
  10078. #define USART_ICR_NCF_Msk (0x1U << USART_ICR_NCF_Pos) /*!< 0x00000004 */
  10079. #define USART_ICR_NCF USART_ICR_NCF_Msk /*!< Noise detected Clear Flag */
  10080. #define USART_ICR_ORECF_Pos (3U)
  10081. #define USART_ICR_ORECF_Msk (0x1U << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  10082. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  10083. #define USART_ICR_IDLECF_Pos (4U)
  10084. #define USART_ICR_IDLECF_Msk (0x1U << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  10085. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  10086. #define USART_ICR_TCCF_Pos (6U)
  10087. #define USART_ICR_TCCF_Msk (0x1U << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  10088. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  10089. #define USART_ICR_LBDCF_Pos (8U)
  10090. #define USART_ICR_LBDCF_Msk (0x1U << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  10091. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  10092. #define USART_ICR_CTSCF_Pos (9U)
  10093. #define USART_ICR_CTSCF_Msk (0x1U << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  10094. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  10095. #define USART_ICR_RTOCF_Pos (11U)
  10096. #define USART_ICR_RTOCF_Msk (0x1U << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  10097. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  10098. #define USART_ICR_EOBCF_Pos (12U)
  10099. #define USART_ICR_EOBCF_Msk (0x1U << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  10100. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  10101. #define USART_ICR_CMCF_Pos (17U)
  10102. #define USART_ICR_CMCF_Msk (0x1U << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  10103. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  10104. #define USART_ICR_WUCF_Pos (20U)
  10105. #define USART_ICR_WUCF_Msk (0x1U << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  10106. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  10107. /******************* Bit definition for USART_RDR register ******************/
  10108. #define USART_RDR_RDR ((uint16_t)0x01FFU) /*!< RDR[8:0] bits (Receive Data value) */
  10109. /******************* Bit definition for USART_TDR register ******************/
  10110. #define USART_TDR_TDR ((uint16_t)0x01FFU) /*!< TDR[8:0] bits (Transmit Data value) */
  10111. /******************************************************************************/
  10112. /* */
  10113. /* USB Device General registers */
  10114. /* */
  10115. /******************************************************************************/
  10116. #define USB_CNTR (USB_BASE + 0x40) /*!< Control register */
  10117. #define USB_ISTR (USB_BASE + 0x44) /*!< Interrupt status register */
  10118. #define USB_FNR (USB_BASE + 0x48) /*!< Frame number register */
  10119. #define USB_DADDR (USB_BASE + 0x4C) /*!< Device address register */
  10120. #define USB_BTABLE (USB_BASE + 0x50) /*!< Buffer Table address register */
  10121. #define USB_LPMCSR (USB_BASE + 0x54) /*!< LPM Control and Status register */
  10122. #define USB_BCDR (USB_BASE + 0x58) /*!< Battery Charging detector register*/
  10123. /**************************** ISTR interrupt events *************************/
  10124. #define USB_ISTR_CTR ((uint16_t)0x8000U) /*!< Correct TRansfer (clear-only bit) */
  10125. #define USB_ISTR_PMAOVR ((uint16_t)0x4000U) /*!< DMA OVeR/underrun (clear-only bit) */
  10126. #define USB_ISTR_ERR ((uint16_t)0x2000U) /*!< ERRor (clear-only bit) */
  10127. #define USB_ISTR_WKUP ((uint16_t)0x1000U) /*!< WaKe UP (clear-only bit) */
  10128. #define USB_ISTR_SUSP ((uint16_t)0x0800U) /*!< SUSPend (clear-only bit) */
  10129. #define USB_ISTR_RESET ((uint16_t)0x0400U) /*!< RESET (clear-only bit) */
  10130. #define USB_ISTR_SOF ((uint16_t)0x0200U) /*!< Start Of Frame (clear-only bit) */
  10131. #define USB_ISTR_ESOF ((uint16_t)0x0100U) /*!< Expected Start Of Frame (clear-only bit) */
  10132. #define USB_ISTR_L1REQ ((uint16_t)0x0080U) /*!< LPM L1 state request */
  10133. #define USB_ISTR_DIR ((uint16_t)0x0010U) /*!< DIRection of transaction (read-only bit) */
  10134. #define USB_ISTR_EP_ID ((uint16_t)0x000FU) /*!< EndPoint IDentifier (read-only bit) */
  10135. #define USB_CLR_CTR (~USB_ISTR_CTR) /*!< clear Correct TRansfer bit */
  10136. #define USB_CLR_PMAOVR (~USB_ISTR_PMAOVR) /*!< clear DMA OVeR/underrun bit*/
  10137. #define USB_CLR_ERR (~USB_ISTR_ERR) /*!< clear ERRor bit */
  10138. #define USB_CLR_WKUP (~USB_ISTR_WKUP) /*!< clear WaKe UP bit */
  10139. #define USB_CLR_SUSP (~USB_ISTR_SUSP) /*!< clear SUSPend bit */
  10140. #define USB_CLR_RESET (~USB_ISTR_RESET) /*!< clear RESET bit */
  10141. #define USB_CLR_SOF (~USB_ISTR_SOF) /*!< clear Start Of Frame bit */
  10142. #define USB_CLR_ESOF (~USB_ISTR_ESOF) /*!< clear Expected Start Of Frame bit */
  10143. #define USB_CLR_L1REQ (~USB_ISTR_L1REQ) /*!< clear LPM L1 bit */
  10144. /************************* CNTR control register bits definitions ***********/
  10145. #define USB_CNTR_CTRM ((uint16_t)0x8000U) /*!< Correct TRansfer Mask */
  10146. #define USB_CNTR_PMAOVRM ((uint16_t)0x4000U) /*!< DMA OVeR/underrun Mask */
  10147. #define USB_CNTR_ERRM ((uint16_t)0x2000U) /*!< ERRor Mask */
  10148. #define USB_CNTR_WKUPM ((uint16_t)0x1000U) /*!< WaKe UP Mask */
  10149. #define USB_CNTR_SUSPM ((uint16_t)0x0800U) /*!< SUSPend Mask */
  10150. #define USB_CNTR_RESETM ((uint16_t)0x0400U) /*!< RESET Mask */
  10151. #define USB_CNTR_SOFM ((uint16_t)0x0200U) /*!< Start Of Frame Mask */
  10152. #define USB_CNTR_ESOFM ((uint16_t)0x0100U) /*!< Expected Start Of Frame Mask */
  10153. #define USB_CNTR_L1REQM ((uint16_t)0x0080U) /*!< LPM L1 state request interrupt mask */
  10154. #define USB_CNTR_L1RESUME ((uint16_t)0x0020U) /*!< LPM L1 Resume request */
  10155. #define USB_CNTR_RESUME ((uint16_t)0x0010U) /*!< RESUME request */
  10156. #define USB_CNTR_FSUSP ((uint16_t)0x0008U) /*!< Force SUSPend */
  10157. #define USB_CNTR_LPMODE ((uint16_t)0x0004U) /*!< Low-power MODE */
  10158. #define USB_CNTR_PDWN ((uint16_t)0x0002U) /*!< Power DoWN */
  10159. #define USB_CNTR_FRES ((uint16_t)0x0001U) /*!< Force USB RESet */
  10160. /************************* BCDR control register bits definitions ***********/
  10161. #define USB_BCDR_DPPU ((uint16_t)0x8000U) /*!< DP Pull-up Enable */
  10162. #define USB_BCDR_PS2DET ((uint16_t)0x0080U) /*!< PS2 port or proprietary charger detected */
  10163. #define USB_BCDR_SDET ((uint16_t)0x0040U) /*!< Secondary detection (SD) status */
  10164. #define USB_BCDR_PDET ((uint16_t)0x0020U) /*!< Primary detection (PD) status */
  10165. #define USB_BCDR_DCDET ((uint16_t)0x0010U) /*!< Data contact detection (DCD) status */
  10166. #define USB_BCDR_SDEN ((uint16_t)0x0008U) /*!< Secondary detection (SD) mode enable */
  10167. #define USB_BCDR_PDEN ((uint16_t)0x0004U) /*!< Primary detection (PD) mode enable */
  10168. #define USB_BCDR_DCDEN ((uint16_t)0x0002U) /*!< Data contact detection (DCD) mode enable */
  10169. #define USB_BCDR_BCDEN ((uint16_t)0x0001U) /*!< Battery charging detector (BCD) enable */
  10170. /*************************** LPM register bits definitions ******************/
  10171. #define USB_LPMCSR_BESL ((uint16_t)0x00F0U) /*!< BESL value received with last ACKed LPM Token */
  10172. #define USB_LPMCSR_REMWAKE ((uint16_t)0x0008U) /*!< bRemoteWake value received with last ACKed LPM Token */
  10173. #define USB_LPMCSR_LPMACK ((uint16_t)0x0002U) /*!< LPM Token acknowledge enable*/
  10174. #define USB_LPMCSR_LMPEN ((uint16_t)0x0001U) /*!< LPM support enable */
  10175. /******************** FNR Frame Number Register bit definitions ************/
  10176. #define USB_FNR_RXDP ((uint16_t)0x8000U) /*!< status of D+ data line */
  10177. #define USB_FNR_RXDM ((uint16_t)0x4000U) /*!< status of D- data line */
  10178. #define USB_FNR_LCK ((uint16_t)0x2000U) /*!< LoCKed */
  10179. #define USB_FNR_LSOF ((uint16_t)0x1800U) /*!< Lost SOF */
  10180. #define USB_FNR_FN ((uint16_t)0x07FFU) /*!< Frame Number */
  10181. /******************** DADDR Device ADDRess bit definitions ****************/
  10182. #define USB_DADDR_EF ((uint8_t)0x80U) /*!< USB device address Enable Function */
  10183. #define USB_DADDR_ADD ((uint8_t)0x7FU) /*!< USB device address */
  10184. /****************************** Endpoint register *************************/
  10185. #define USB_EP0R USB_BASE /*!< endpoint 0 register address */
  10186. #define USB_EP1R (USB_BASE + 0x04) /*!< endpoint 1 register address */
  10187. #define USB_EP2R (USB_BASE + 0x08) /*!< endpoint 2 register address */
  10188. #define USB_EP3R (USB_BASE + 0x0C) /*!< endpoint 3 register address */
  10189. #define USB_EP4R (USB_BASE + 0x10) /*!< endpoint 4 register address */
  10190. #define USB_EP5R (USB_BASE + 0x14) /*!< endpoint 5 register address */
  10191. #define USB_EP6R (USB_BASE + 0x18) /*!< endpoint 6 register address */
  10192. #define USB_EP7R (USB_BASE + 0x1C) /*!< endpoint 7 register address */
  10193. /* bit positions */
  10194. #define USB_EP_CTR_RX ((uint16_t)0x8000U) /*!< EndPoint Correct TRansfer RX */
  10195. #define USB_EP_DTOG_RX ((uint16_t)0x4000U) /*!< EndPoint Data TOGGLE RX */
  10196. #define USB_EPRX_STAT ((uint16_t)0x3000U) /*!< EndPoint RX STATus bit field */
  10197. #define USB_EP_SETUP ((uint16_t)0x0800U) /*!< EndPoint SETUP */
  10198. #define USB_EP_T_FIELD ((uint16_t)0x0600U) /*!< EndPoint TYPE */
  10199. #define USB_EP_KIND ((uint16_t)0x0100U) /*!< EndPoint KIND */
  10200. #define USB_EP_CTR_TX ((uint16_t)0x0080U) /*!< EndPoint Correct TRansfer TX */
  10201. #define USB_EP_DTOG_TX ((uint16_t)0x0040U) /*!< EndPoint Data TOGGLE TX */
  10202. #define USB_EPTX_STAT ((uint16_t)0x0030U) /*!< EndPoint TX STATus bit field */
  10203. #define USB_EPADDR_FIELD ((uint16_t)0x000FU) /*!< EndPoint ADDRess FIELD */
  10204. /* EndPoint REGister MASK (no toggle fields) */
  10205. #define USB_EPREG_MASK (USB_EP_CTR_RX|USB_EP_SETUP|USB_EP_T_FIELD|USB_EP_KIND|USB_EP_CTR_TX|USB_EPADDR_FIELD)
  10206. /*!< EP_TYPE[1:0] EndPoint TYPE */
  10207. #define USB_EP_TYPE_MASK ((uint16_t)0x0600U) /*!< EndPoint TYPE Mask */
  10208. #define USB_EP_BULK ((uint16_t)0x0000U) /*!< EndPoint BULK */
  10209. #define USB_EP_CONTROL ((uint16_t)0x0200U) /*!< EndPoint CONTROL */
  10210. #define USB_EP_ISOCHRONOUS ((uint16_t)0x0400U) /*!< EndPoint ISOCHRONOUS */
  10211. #define USB_EP_INTERRUPT ((uint16_t)0x0600U) /*!< EndPoint INTERRUPT */
  10212. #define USB_EP_T_MASK (((uint16_t)(~USB_EP_T_FIELD)) & USB_EPREG_MASK)
  10213. #define USB_EPKIND_MASK (~USB_EP_KIND & USB_EPREG_MASK) /*!< EP_KIND EndPoint KIND */
  10214. /*!< STAT_TX[1:0] STATus for TX transfer */
  10215. #define USB_EP_TX_DIS ((uint16_t)0x0000U) /*!< EndPoint TX DISabled */
  10216. #define USB_EP_TX_STALL ((uint16_t)0x0010U) /*!< EndPoint TX STALLed */
  10217. #define USB_EP_TX_NAK ((uint16_t)0x0020U) /*!< EndPoint TX NAKed */
  10218. #define USB_EP_TX_VALID ((uint16_t)0x0030U) /*!< EndPoint TX VALID */
  10219. #define USB_EPTX_DTOG1 ((uint16_t)0x0010U) /*!< EndPoint TX Data TOGgle bit1 */
  10220. #define USB_EPTX_DTOG2 ((uint16_t)0x0020U) /*!< EndPoint TX Data TOGgle bit2 */
  10221. #define USB_EPTX_DTOGMASK (USB_EPTX_STAT|USB_EPREG_MASK)
  10222. /*!< STAT_RX[1:0] STATus for RX transfer */
  10223. #define USB_EP_RX_DIS ((uint16_t)0x0000U) /*!< EndPoint RX DISabled */
  10224. #define USB_EP_RX_STALL ((uint16_t)0x1000U) /*!< EndPoint RX STALLed */
  10225. #define USB_EP_RX_NAK ((uint16_t)0x2000U) /*!< EndPoint RX NAKed */
  10226. #define USB_EP_RX_VALID ((uint16_t)0x3000U) /*!< EndPoint RX VALID */
  10227. #define USB_EPRX_DTOG1 ((uint16_t)0x1000U) /*!< EndPoint RX Data TOGgle bit1 */
  10228. #define USB_EPRX_DTOG2 ((uint16_t)0x2000U) /*!< EndPoint RX Data TOGgle bit1 */
  10229. #define USB_EPRX_DTOGMASK (USB_EPRX_STAT|USB_EPREG_MASK)
  10230. /******************************************************************************/
  10231. /* */
  10232. /* Window WATCHDOG (WWDG) */
  10233. /* */
  10234. /******************************************************************************/
  10235. /******************* Bit definition for WWDG_CR register ********************/
  10236. #define WWDG_CR_T_Pos (0U)
  10237. #define WWDG_CR_T_Msk (0x7FU << WWDG_CR_T_Pos) /*!< 0x0000007F */
  10238. #define WWDG_CR_T WWDG_CR_T_Msk /*!< T[6:0] bits (7-Bit counter (MSB to LSB)) */
  10239. #define WWDG_CR_T_0 (0x01U << WWDG_CR_T_Pos) /*!< 0x00000001 */
  10240. #define WWDG_CR_T_1 (0x02U << WWDG_CR_T_Pos) /*!< 0x00000002 */
  10241. #define WWDG_CR_T_2 (0x04U << WWDG_CR_T_Pos) /*!< 0x00000004 */
  10242. #define WWDG_CR_T_3 (0x08U << WWDG_CR_T_Pos) /*!< 0x00000008 */
  10243. #define WWDG_CR_T_4 (0x10U << WWDG_CR_T_Pos) /*!< 0x00000010 */
  10244. #define WWDG_CR_T_5 (0x20U << WWDG_CR_T_Pos) /*!< 0x00000020 */
  10245. #define WWDG_CR_T_6 (0x40U << WWDG_CR_T_Pos) /*!< 0x00000040 */
  10246. /* Legacy defines */
  10247. #define WWDG_CR_T0 WWDG_CR_T_0
  10248. #define WWDG_CR_T1 WWDG_CR_T_1
  10249. #define WWDG_CR_T2 WWDG_CR_T_2
  10250. #define WWDG_CR_T3 WWDG_CR_T_3
  10251. #define WWDG_CR_T4 WWDG_CR_T_4
  10252. #define WWDG_CR_T5 WWDG_CR_T_5
  10253. #define WWDG_CR_T6 WWDG_CR_T_6
  10254. #define WWDG_CR_WDGA_Pos (7U)
  10255. #define WWDG_CR_WDGA_Msk (0x1U << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */
  10256. #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!< Activation bit */
  10257. /******************* Bit definition for WWDG_CFR register *******************/
  10258. #define WWDG_CFR_W_Pos (0U)
  10259. #define WWDG_CFR_W_Msk (0x7FU << WWDG_CFR_W_Pos) /*!< 0x0000007F */
  10260. #define WWDG_CFR_W WWDG_CFR_W_Msk /*!< W[6:0] bits (7-bit window value) */
  10261. #define WWDG_CFR_W_0 (0x01U << WWDG_CFR_W_Pos) /*!< 0x00000001 */
  10262. #define WWDG_CFR_W_1 (0x02U << WWDG_CFR_W_Pos) /*!< 0x00000002 */
  10263. #define WWDG_CFR_W_2 (0x04U << WWDG_CFR_W_Pos) /*!< 0x00000004 */
  10264. #define WWDG_CFR_W_3 (0x08U << WWDG_CFR_W_Pos) /*!< 0x00000008 */
  10265. #define WWDG_CFR_W_4 (0x10U << WWDG_CFR_W_Pos) /*!< 0x00000010 */
  10266. #define WWDG_CFR_W_5 (0x20U << WWDG_CFR_W_Pos) /*!< 0x00000020 */
  10267. #define WWDG_CFR_W_6 (0x40U << WWDG_CFR_W_Pos) /*!< 0x00000040 */
  10268. /* Legacy defines */
  10269. #define WWDG_CFR_W0 WWDG_CFR_W_0
  10270. #define WWDG_CFR_W1 WWDG_CFR_W_1
  10271. #define WWDG_CFR_W2 WWDG_CFR_W_2
  10272. #define WWDG_CFR_W3 WWDG_CFR_W_3
  10273. #define WWDG_CFR_W4 WWDG_CFR_W_4
  10274. #define WWDG_CFR_W5 WWDG_CFR_W_5
  10275. #define WWDG_CFR_W6 WWDG_CFR_W_6
  10276. #define WWDG_CFR_WDGTB_Pos (7U)
  10277. #define WWDG_CFR_WDGTB_Msk (0x3U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000180 */
  10278. #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!< WDGTB[1:0] bits (Timer Base) */
  10279. #define WWDG_CFR_WDGTB_0 (0x1U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000080 */
  10280. #define WWDG_CFR_WDGTB_1 (0x2U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000100 */
  10281. /* Legacy defines */
  10282. #define WWDG_CFR_WDGTB0 WWDG_CFR_WDGTB_0
  10283. #define WWDG_CFR_WDGTB1 WWDG_CFR_WDGTB_1
  10284. #define WWDG_CFR_EWI_Pos (9U)
  10285. #define WWDG_CFR_EWI_Msk (0x1U << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */
  10286. #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!< Early Wakeup Interrupt */
  10287. /******************* Bit definition for WWDG_SR register ********************/
  10288. #define WWDG_SR_EWIF_Pos (0U)
  10289. #define WWDG_SR_EWIF_Msk (0x1U << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */
  10290. #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!< Early Wakeup Interrupt Flag */
  10291. /**
  10292. * @}
  10293. */
  10294. /**
  10295. * @}
  10296. */
  10297. /** @addtogroup Exported_macro
  10298. * @{
  10299. */
  10300. /****************************** ADC Instances *********************************/
  10301. #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC1)
  10302. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC)
  10303. /******************************* CAN Instances ********************************/
  10304. #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN)
  10305. /****************************** COMP Instances *********************************/
  10306. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
  10307. ((INSTANCE) == COMP2))
  10308. #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON)
  10309. #define IS_COMP_DAC1SWITCH_INSTANCE(INSTANCE) ((INSTANCE) == COMP1)
  10310. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2)
  10311. /****************************** CEC Instances *********************************/
  10312. #define IS_CEC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CEC)
  10313. /****************************** CRC Instances *********************************/
  10314. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
  10315. /******************************* DAC Instances ********************************/
  10316. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1)
  10317. /******************************* DMA Instances ********************************/
  10318. #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \
  10319. ((INSTANCE) == DMA1_Channel2) || \
  10320. ((INSTANCE) == DMA1_Channel3) || \
  10321. ((INSTANCE) == DMA1_Channel4) || \
  10322. ((INSTANCE) == DMA1_Channel5) || \
  10323. ((INSTANCE) == DMA1_Channel6) || \
  10324. ((INSTANCE) == DMA1_Channel7))
  10325. /****************************** GPIO Instances ********************************/
  10326. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10327. ((INSTANCE) == GPIOB) || \
  10328. ((INSTANCE) == GPIOC) || \
  10329. ((INSTANCE) == GPIOD) || \
  10330. ((INSTANCE) == GPIOE) || \
  10331. ((INSTANCE) == GPIOF))
  10332. /**************************** GPIO Alternate Function Instances ***************/
  10333. #define IS_GPIO_AF_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10334. ((INSTANCE) == GPIOB) || \
  10335. ((INSTANCE) == GPIOC) || \
  10336. ((INSTANCE) == GPIOD) || \
  10337. ((INSTANCE) == GPIOE))
  10338. /****************************** GPIO Lock Instances ***************************/
  10339. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  10340. ((INSTANCE) == GPIOB))
  10341. /****************************** I2C Instances *********************************/
  10342. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  10343. ((INSTANCE) == I2C2))
  10344. /****************** I2C Instances : wakeup capability from stop modes *********/
  10345. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  10346. /****************************** I2S Instances *********************************/
  10347. #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  10348. ((INSTANCE) == SPI2))
  10349. /****************************** IWDG Instances ********************************/
  10350. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG)
  10351. /****************************** RTC Instances *********************************/
  10352. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
  10353. /****************************** SMBUS Instances *********************************/
  10354. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  10355. /****************************** SPI Instances *********************************/
  10356. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  10357. ((INSTANCE) == SPI2))
  10358. /****************************** TIM Instances *********************************/
  10359. #define IS_TIM_INSTANCE(INSTANCE)\
  10360. (((INSTANCE) == TIM1) || \
  10361. ((INSTANCE) == TIM2) || \
  10362. ((INSTANCE) == TIM3) || \
  10363. ((INSTANCE) == TIM6) || \
  10364. ((INSTANCE) == TIM7) || \
  10365. ((INSTANCE) == TIM14) || \
  10366. ((INSTANCE) == TIM15) || \
  10367. ((INSTANCE) == TIM16) || \
  10368. ((INSTANCE) == TIM17))
  10369. #define IS_TIM_CC1_INSTANCE(INSTANCE)\
  10370. (((INSTANCE) == TIM1) || \
  10371. ((INSTANCE) == TIM2) || \
  10372. ((INSTANCE) == TIM3) || \
  10373. ((INSTANCE) == TIM14) || \
  10374. ((INSTANCE) == TIM15) || \
  10375. ((INSTANCE) == TIM16) || \
  10376. ((INSTANCE) == TIM17))
  10377. #define IS_TIM_CC2_INSTANCE(INSTANCE)\
  10378. (((INSTANCE) == TIM1) || \
  10379. ((INSTANCE) == TIM2) || \
  10380. ((INSTANCE) == TIM3) || \
  10381. ((INSTANCE) == TIM15))
  10382. #define IS_TIM_CC3_INSTANCE(INSTANCE)\
  10383. (((INSTANCE) == TIM1) || \
  10384. ((INSTANCE) == TIM2) || \
  10385. ((INSTANCE) == TIM3))
  10386. #define IS_TIM_CC4_INSTANCE(INSTANCE)\
  10387. (((INSTANCE) == TIM1) || \
  10388. ((INSTANCE) == TIM2) || \
  10389. ((INSTANCE) == TIM3))
  10390. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
  10391. (((INSTANCE) == TIM1) || \
  10392. ((INSTANCE) == TIM2) || \
  10393. ((INSTANCE) == TIM3))
  10394. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
  10395. (((INSTANCE) == TIM1) || \
  10396. ((INSTANCE) == TIM2) || \
  10397. ((INSTANCE) == TIM3))
  10398. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
  10399. (((INSTANCE) == TIM1) || \
  10400. ((INSTANCE) == TIM2) || \
  10401. ((INSTANCE) == TIM3) || \
  10402. ((INSTANCE) == TIM15))
  10403. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
  10404. (((INSTANCE) == TIM1) || \
  10405. ((INSTANCE) == TIM2) || \
  10406. ((INSTANCE) == TIM3) || \
  10407. ((INSTANCE) == TIM15))
  10408. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
  10409. (((INSTANCE) == TIM1) || \
  10410. ((INSTANCE) == TIM2) || \
  10411. ((INSTANCE) == TIM3))
  10412. #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)\
  10413. (((INSTANCE) == TIM1) || \
  10414. ((INSTANCE) == TIM2) || \
  10415. ((INSTANCE) == TIM3))
  10416. #define IS_TIM_HALL_INTERFACE_INSTANCE(INSTANCE)\
  10417. (((INSTANCE) == TIM1))
  10418. #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE)\
  10419. (((INSTANCE) == TIM1))
  10420. #define IS_TIM_ETR_INSTANCE(INSTANCE)\
  10421. (((INSTANCE) == TIM1) || \
  10422. ((INSTANCE) == TIM2) || \
  10423. ((INSTANCE) == TIM3))
  10424. #define IS_TIM_XOR_INSTANCE(INSTANCE)\
  10425. (((INSTANCE) == TIM1) || \
  10426. ((INSTANCE) == TIM2) || \
  10427. ((INSTANCE) == TIM3))
  10428. #define IS_TIM_MASTER_INSTANCE(INSTANCE)\
  10429. (((INSTANCE) == TIM1) || \
  10430. ((INSTANCE) == TIM2) || \
  10431. ((INSTANCE) == TIM3) || \
  10432. ((INSTANCE) == TIM6) || \
  10433. ((INSTANCE) == TIM7) || \
  10434. ((INSTANCE) == TIM15))
  10435. #define IS_TIM_SLAVE_INSTANCE(INSTANCE)\
  10436. (((INSTANCE) == TIM1) || \
  10437. ((INSTANCE) == TIM2) || \
  10438. ((INSTANCE) == TIM3) || \
  10439. ((INSTANCE) == TIM15))
  10440. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
  10441. ((INSTANCE) == TIM2)
  10442. #define IS_TIM_DMABURST_INSTANCE(INSTANCE)\
  10443. (((INSTANCE) == TIM1) || \
  10444. ((INSTANCE) == TIM2) || \
  10445. ((INSTANCE) == TIM3) || \
  10446. ((INSTANCE) == TIM15) || \
  10447. ((INSTANCE) == TIM16) || \
  10448. ((INSTANCE) == TIM17))
  10449. #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
  10450. (((INSTANCE) == TIM1) || \
  10451. ((INSTANCE) == TIM15) || \
  10452. ((INSTANCE) == TIM16) || \
  10453. ((INSTANCE) == TIM17))
  10454. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  10455. ((((INSTANCE) == TIM1) && \
  10456. (((CHANNEL) == TIM_CHANNEL_1) || \
  10457. ((CHANNEL) == TIM_CHANNEL_2) || \
  10458. ((CHANNEL) == TIM_CHANNEL_3) || \
  10459. ((CHANNEL) == TIM_CHANNEL_4))) \
  10460. || \
  10461. (((INSTANCE) == TIM2) && \
  10462. (((CHANNEL) == TIM_CHANNEL_1) || \
  10463. ((CHANNEL) == TIM_CHANNEL_2) || \
  10464. ((CHANNEL) == TIM_CHANNEL_3) || \
  10465. ((CHANNEL) == TIM_CHANNEL_4))) \
  10466. || \
  10467. (((INSTANCE) == TIM3) && \
  10468. (((CHANNEL) == TIM_CHANNEL_1) || \
  10469. ((CHANNEL) == TIM_CHANNEL_2) || \
  10470. ((CHANNEL) == TIM_CHANNEL_3) || \
  10471. ((CHANNEL) == TIM_CHANNEL_4))) \
  10472. || \
  10473. (((INSTANCE) == TIM14) && \
  10474. (((CHANNEL) == TIM_CHANNEL_1))) \
  10475. || \
  10476. (((INSTANCE) == TIM15) && \
  10477. (((CHANNEL) == TIM_CHANNEL_1) || \
  10478. ((CHANNEL) == TIM_CHANNEL_2))) \
  10479. || \
  10480. (((INSTANCE) == TIM16) && \
  10481. (((CHANNEL) == TIM_CHANNEL_1))) \
  10482. || \
  10483. (((INSTANCE) == TIM17) && \
  10484. (((CHANNEL) == TIM_CHANNEL_1))))
  10485. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  10486. ((((INSTANCE) == TIM1) && \
  10487. (((CHANNEL) == TIM_CHANNEL_1) || \
  10488. ((CHANNEL) == TIM_CHANNEL_2) || \
  10489. ((CHANNEL) == TIM_CHANNEL_3))) \
  10490. || \
  10491. (((INSTANCE) == TIM15) && \
  10492. ((CHANNEL) == TIM_CHANNEL_1)) \
  10493. || \
  10494. (((INSTANCE) == TIM16) && \
  10495. ((CHANNEL) == TIM_CHANNEL_1)) \
  10496. || \
  10497. (((INSTANCE) == TIM17) && \
  10498. ((CHANNEL) == TIM_CHANNEL_1)))
  10499. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
  10500. (((INSTANCE) == TIM1) || \
  10501. ((INSTANCE) == TIM2) || \
  10502. ((INSTANCE) == TIM3))
  10503. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
  10504. (((INSTANCE) == TIM1) || \
  10505. ((INSTANCE) == TIM15) || \
  10506. ((INSTANCE) == TIM16) || \
  10507. ((INSTANCE) == TIM17))
  10508. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
  10509. (((INSTANCE) == TIM1) || \
  10510. ((INSTANCE) == TIM2) || \
  10511. ((INSTANCE) == TIM3) || \
  10512. ((INSTANCE) == TIM14) || \
  10513. ((INSTANCE) == TIM15) || \
  10514. ((INSTANCE) == TIM16) || \
  10515. ((INSTANCE) == TIM17))
  10516. #define IS_TIM_DMA_INSTANCE(INSTANCE)\
  10517. (((INSTANCE) == TIM1) || \
  10518. ((INSTANCE) == TIM2) || \
  10519. ((INSTANCE) == TIM3) || \
  10520. ((INSTANCE) == TIM6) || \
  10521. ((INSTANCE) == TIM7) || \
  10522. ((INSTANCE) == TIM15) || \
  10523. ((INSTANCE) == TIM16) || \
  10524. ((INSTANCE) == TIM17))
  10525. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)\
  10526. (((INSTANCE) == TIM1) || \
  10527. ((INSTANCE) == TIM2) || \
  10528. ((INSTANCE) == TIM3) || \
  10529. ((INSTANCE) == TIM15) || \
  10530. ((INSTANCE) == TIM16) || \
  10531. ((INSTANCE) == TIM17))
  10532. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE)\
  10533. (((INSTANCE) == TIM1) || \
  10534. ((INSTANCE) == TIM15) || \
  10535. ((INSTANCE) == TIM16) || \
  10536. ((INSTANCE) == TIM17))
  10537. #define IS_TIM_REMAP_INSTANCE(INSTANCE)\
  10538. ((INSTANCE) == TIM14)
  10539. /****************************** TSC Instances *********************************/
  10540. #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC)
  10541. /*********************** UART Instances : IRDA mode ***************************/
  10542. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10543. ((INSTANCE) == USART2))
  10544. /********************* UART Instances : Smard card mode ***********************/
  10545. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10546. ((INSTANCE) == USART2))
  10547. /******************** USART Instances : Synchronous mode **********************/
  10548. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10549. ((INSTANCE) == USART2) || \
  10550. ((INSTANCE) == USART3) || \
  10551. ((INSTANCE) == USART4))
  10552. /******************** USART Instances : auto Baud rate detection **************/
  10553. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10554. ((INSTANCE) == USART2))
  10555. /******************** UART Instances : Asynchronous mode **********************/
  10556. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10557. ((INSTANCE) == USART2) || \
  10558. ((INSTANCE) == USART3) || \
  10559. ((INSTANCE) == USART4))
  10560. /******************** UART Instances : Half-Duplex mode **********************/
  10561. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10562. ((INSTANCE) == USART2) || \
  10563. ((INSTANCE) == USART3) || \
  10564. ((INSTANCE) == USART4))
  10565. /****************** UART Instances : Hardware Flow control ********************/
  10566. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10567. ((INSTANCE) == USART2) || \
  10568. ((INSTANCE) == USART3) || \
  10569. ((INSTANCE) == USART4))
  10570. /****************** UART Instances : LIN mode ********************/
  10571. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10572. ((INSTANCE) == USART2))
  10573. /****************** UART Instances : wakeup from stop mode ********************/
  10574. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10575. ((INSTANCE) == USART2))
  10576. /* Old macro definition maintained for legacy purpose */
  10577. #define IS_UART_WAKEUP_INSTANCE IS_UART_WAKEUP_FROMSTOP_INSTANCE
  10578. /****************** UART Instances : Driver enable detection ********************/
  10579. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  10580. ((INSTANCE) == USART2) || \
  10581. ((INSTANCE) == USART3) || \
  10582. ((INSTANCE) == USART4))
  10583. /****************************** USB Instances ********************************/
  10584. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB)
  10585. /****************************** WWDG Instances ********************************/
  10586. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG)
  10587. /**
  10588. * @}
  10589. */
  10590. /******************************************************************************/
  10591. /* For a painless codes migration between the STM32F0xx device product */
  10592. /* lines, the aliases defined below are put in place to overcome the */
  10593. /* differences in the interrupt handlers and IRQn definitions. */
  10594. /* No need to update developed interrupt code when moving across */
  10595. /* product lines within the same STM32F0 Family */
  10596. /******************************************************************************/
  10597. /* Aliases for __IRQn */
  10598. #define ADC1_IRQn ADC1_COMP_IRQn
  10599. #define DMA1_Ch1_IRQn DMA1_Channel1_IRQn
  10600. #define DMA1_Ch2_3_DMA2_Ch1_2_IRQn DMA1_Channel2_3_IRQn
  10601. #define DMA1_Ch4_7_DMA2_Ch3_5_IRQn DMA1_Channel4_5_6_7_IRQn
  10602. #define DMA1_Channel4_5_IRQn DMA1_Channel4_5_6_7_IRQn
  10603. #define PVD_IRQn PVD_VDDIO2_IRQn
  10604. #define VDDIO2_IRQn PVD_VDDIO2_IRQn
  10605. #define RCC_IRQn RCC_CRS_IRQn
  10606. #define TIM6_IRQn TIM6_DAC_IRQn
  10607. #define USART3_6_IRQn USART3_4_IRQn
  10608. #define USART3_8_IRQn USART3_4_IRQn
  10609. /* Aliases for __IRQHandler */
  10610. #define ADC1_IRQHandler ADC1_COMP_IRQHandler
  10611. #define DMA1_Ch1_IRQHandler DMA1_Channel1_IRQHandler
  10612. #define DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler DMA1_Channel2_3_IRQHandler
  10613. #define DMA1_Ch4_7_DMA2_Ch3_5_IRQHandler DMA1_Channel4_5_6_7_IRQHandler
  10614. #define DMA1_Channel4_5_IRQHandler DMA1_Channel4_5_6_7_IRQHandler
  10615. #define PVD_IRQHandler PVD_VDDIO2_IRQHandler
  10616. #define VDDIO2_IRQHandler PVD_VDDIO2_IRQHandler
  10617. #define RCC_IRQHandler RCC_CRS_IRQHandler
  10618. #define TIM6_IRQHandler TIM6_DAC_IRQHandler
  10619. #define USART3_6_IRQHandler USART3_4_IRQHandler
  10620. #define USART3_8_IRQHandler USART3_4_IRQHandler
  10621. #ifdef __cplusplus
  10622. }
  10623. #endif /* __cplusplus */
  10624. #endif /* __STM32F072xB_H */
  10625. /**
  10626. * @}
  10627. */
  10628. /**
  10629. * @}
  10630. */
  10631. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/