Teensy 4.1 core updated for C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

imxrt.h 254KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356
  1. #include <stdint.h>
  2. #if !defined(KINETISL) && !defined(KINETISK)
  3. enum IRQ_NUMBER_t {
  4. IRQ_DMA_CH0 = 0,
  5. IRQ_DMA_CH1 = 1,
  6. IRQ_DMA_CH2 = 2,
  7. IRQ_DMA_CH3 = 3,
  8. IRQ_DMA_CH4 = 4,
  9. IRQ_DMA_CH5 = 5,
  10. IRQ_DMA_CH6 = 6,
  11. IRQ_DMA_CH7 = 7,
  12. IRQ_DMA_CH8 = 8,
  13. IRQ_DMA_CH9 = 9,
  14. IRQ_DMA_CH10 = 10,
  15. IRQ_DMA_CH11 = 11,
  16. IRQ_DMA_CH12 = 12,
  17. IRQ_DMA_CH13 = 13,
  18. IRQ_DMA_CH14 = 14,
  19. IRQ_DMA_CH15 = 15,
  20. IRQ_DMA_ERROR = 16,
  21. IRQ_CTI0 = 17,
  22. IRQ_CTI1 = 18,
  23. IRQ_CORE_ERROR = 19, // TODO - name?
  24. IRQ_LPUART1 = 20,
  25. IRQ_LPUART2 = 21,
  26. IRQ_LPUART3 = 22,
  27. IRQ_LPUART4 = 23,
  28. IRQ_LPUART5 = 24,
  29. IRQ_LPUART6 = 25,
  30. IRQ_LPUART7 = 26,
  31. IRQ_LPUART8 = 27,
  32. IRQ_LPI2C1 = 28,
  33. IRQ_LPI2C2 = 29,
  34. IRQ_LPI2C3 = 30,
  35. IRQ_LPI2C4 = 31,
  36. IRQ_LPSPI1 = 32,
  37. IRQ_LPSPI2 = 33,
  38. IRQ_LPSPI3 = 34,
  39. IRQ_LPSPI4 = 35,
  40. IRQ_CAN1 = 36,
  41. IRQ_CAN2 = 37,
  42. IRQ_ADDR_ERR = 38, // TODO: name?
  43. IRQ_KPP = 39,
  44. IRQ_TSC_DIG = 40,
  45. IRQ_GPR_IRQ = 41,
  46. IRQ_LCDIF = 42,
  47. IRQ_CSI = 43,
  48. IRQ_PXP = 44,
  49. IRQ_WDOG2 = 45,
  50. IRQ_SNVS_IRQ = 46,
  51. IRQ_SNVS_SECURITY = 47,
  52. IRQ_SNVS_ONOFF = 48,
  53. IRQ_CSU = 49,
  54. IRQ_DCP0 = 50, // TODO: ???
  55. IRQ_DCP1 = 51, // TODO: ???
  56. IRQ_DCP2 = 52, // TODO: ???
  57. IRQ_TRNG = 53,
  58. IRQ_SJC_IRQ = 54,
  59. IRQ_BEE = 55,
  60. IRQ_SAI1 = 56,
  61. IRQ_SAI2 = 57,
  62. IRQ_SAI3_RX = 58,
  63. IRQ_SAI3_TX = 59,
  64. IRQ_SPDIF = 60,
  65. IRQ_BROWNOUT0 = 61,
  66. IRQ_BROWNOUT1 = 62,
  67. IRQ_TEMPERATURE = 63,
  68. IRQ_TEMPERATURE_PANIC = 64,
  69. IRQ_USBPHY0 = 65,
  70. IRQ_USBPHY1 = 66,
  71. IRQ_ADC1 = 67,
  72. IRQ_ADC2 = 68,
  73. IRQ_DCDC = 69,
  74. IRQ_Reserved1 = 70,
  75. IRQ_Reserved2 = 71,
  76. IRQ_GPIO1_INT0 = 72,
  77. IRQ_GPIO1_INT1 = 73,
  78. IRQ_GPIO1_INT2 = 74,
  79. IRQ_GPIO1_INT3 = 75,
  80. IRQ_GPIO1_INT4 = 76,
  81. IRQ_GPIO1_INT5 = 77,
  82. IRQ_GPIO1_INT6 = 78,
  83. IRQ_GPIO1_INT7 = 79,
  84. IRQ_GPI01_0_15 = 80,
  85. IRQ_GPIO1_16_31 = 81,
  86. IRQ_GPI02_0_15 = 82,
  87. IRQ_GPIO2_16_31 = 83,
  88. IRQ_GPI03_0_15 = 84,
  89. IRQ_GPIO3_16_31 = 85,
  90. IRQ_GPI04_0_15 = 86,
  91. IRQ_GPIO4_16_31 = 87,
  92. IRQ_GPI05_0_15 = 88,
  93. IRQ_GPIO5_16_31 = 89,
  94. IRQ_FLEXIO1 = 90,
  95. IRQ_FLEXIO2 = 91,
  96. IRQ_WDOG1 = 92,
  97. IRQ_WDOG3 = 93,
  98. IRQ_EWM = 94,
  99. IRQ_CCM1 = 95,
  100. IRQ_CCM2 = 96,
  101. IRQ_GPC = 97,
  102. IRQ_SRC = 98,
  103. IRQ_Reserved3 = 99,
  104. IRQ_GPT1 = 100,
  105. IRQ_GPT2 = 101,
  106. IRQ_FLEXPWM1_0 = 102,
  107. IRQ_FLEXPWM1_1 = 103,
  108. IRQ_FLEXPWM1_2 = 104,
  109. IRQ_FLEXPWM1_3 = 105,
  110. IRQ_FLEXPWM1_FAULT = 106,
  111. IRQ_Reserved4 = 107,
  112. IRQ_FLEXSPI = 108,
  113. IRQ_SEMC = 109,
  114. IRQ_SDHC1 = 110,
  115. IRQ_SDHC2 = 111,
  116. IRQ_USB2 = 112,
  117. IRQ_USB1 = 113,
  118. IRQ_ENET = 114,
  119. IRQ_ENET_TIMER = 115,
  120. IRQ_XBAR1_01 = 116,
  121. IRQ_XBAR1_23 = 117,
  122. IRQ_ADC_ETC0 = 118,
  123. IRQ_ADC_ETC1 = 119,
  124. IRQ_ADC_ETC2 = 120,
  125. IRQ_ADC_ETC_ERR = 121,
  126. IRQ_PIT = 122,
  127. IRQ_ACMP0 = 123,
  128. IRQ_ACMP1 = 124,
  129. IRQ_ACMP2 = 125,
  130. IRQ_ACMP3 = 126,
  131. IRQ_Reserved5 = 127,
  132. IRQ_Reserved6 = 128,
  133. IRQ_ENC1 = 129,
  134. IRQ_ENC2 = 130,
  135. IRQ_ENC3 = 131,
  136. IRQ_ENC4 = 132,
  137. IRQ_QTIMER1 = 133,
  138. IRQ_QTIMER2 = 134,
  139. IRQ_QTIMER3 = 135,
  140. IRQ_QTIMER4 = 136,
  141. IRQ_FLEXPWM2_0 = 137,
  142. IRQ_FLEXPWM2_1 = 138,
  143. IRQ_FLEXPWM2_2 = 139,
  144. IRQ_FLEXPWM2_3 = 140,
  145. IRQ_FLEXPWM2_FAULT = 141,
  146. IRQ_FLEXPWM3_0 = 142,
  147. IRQ_FLEXPWM3_1 = 143,
  148. IRQ_FLEXPWM3_2 = 144,
  149. IRQ_FLEXPWM3_3 = 145,
  150. IRQ_FLEXPWM3_FAULT = 146,
  151. IRQ_FLEXPWM4_0 = 147,
  152. IRQ_FLEXPWM4_1 = 148,
  153. IRQ_FLEXPWM4_2 = 149,
  154. IRQ_FLEXPWM4_3 = 150,
  155. IRQ_FLEXPWM4_FAULT = 151,
  156. IRQ_Reserved7 = 152,
  157. IRQ_Reserved8 = 153,
  158. IRQ_Reserved9 = 154,
  159. IRQ_Reserved10 = 155,
  160. IRQ_Reserved11 = 156,
  161. IRQ_Reserved12 = 157,
  162. IRQ_SJC_DEBUG = 158,
  163. IRQ_NMI_WAKEUP = 159
  164. };
  165. #endif
  166. typedef struct {
  167. volatile uint32_t offset000;
  168. volatile uint32_t offset004;
  169. volatile uint32_t offset008;
  170. volatile uint32_t offset00C;
  171. volatile uint32_t offset010;
  172. volatile uint32_t offset014;
  173. volatile uint32_t offset018;
  174. volatile uint32_t offset01C;
  175. volatile uint32_t offset020;
  176. volatile uint32_t offset024;
  177. volatile uint32_t offset028;
  178. volatile uint32_t offset02C;
  179. volatile uint32_t offset030;
  180. volatile uint32_t offset034;
  181. volatile uint32_t offset038;
  182. volatile uint32_t offset03C;
  183. volatile uint32_t offset040;
  184. volatile uint32_t offset044;
  185. volatile uint32_t offset048;
  186. volatile uint32_t offset04C;
  187. volatile uint32_t offset050;
  188. volatile uint32_t offset054;
  189. volatile uint32_t offset058;
  190. volatile uint32_t offset05C;
  191. volatile uint32_t offset060;
  192. volatile uint32_t offset064;
  193. volatile uint32_t offset068;
  194. volatile uint32_t offset06C;
  195. volatile uint32_t offset070;
  196. volatile uint32_t offset074;
  197. volatile uint32_t offset078;
  198. volatile uint32_t offset07C;
  199. volatile uint32_t offset080;
  200. volatile uint32_t offset084;
  201. volatile uint32_t offset088;
  202. volatile uint32_t offset08C;
  203. volatile uint32_t offset090;
  204. volatile uint32_t offset094;
  205. volatile uint32_t offset098;
  206. volatile uint32_t offset09C;
  207. volatile uint32_t offset0A0;
  208. volatile uint32_t offset0A4;
  209. volatile uint32_t offset0A8;
  210. volatile uint32_t offset0AC;
  211. volatile uint32_t offset0B0;
  212. volatile uint32_t offset0B4;
  213. volatile uint32_t offset0B8;
  214. volatile uint32_t offset0BC;
  215. volatile uint32_t offset0C0;
  216. volatile uint32_t offset0C4;
  217. volatile uint32_t offset0C8;
  218. volatile uint32_t offset0CC;
  219. volatile uint32_t offset0D0;
  220. volatile uint32_t offset0D4;
  221. volatile uint32_t offset0D8;
  222. volatile uint32_t offset0DC;
  223. volatile uint32_t offset0E0;
  224. volatile uint32_t offset0E4;
  225. volatile uint32_t offset0E8;
  226. volatile uint32_t offset0EC;
  227. volatile uint32_t offset0F0;
  228. volatile uint32_t offset0F4;
  229. volatile uint32_t offset0F8;
  230. volatile uint32_t offset0FC;
  231. volatile uint32_t offset100;
  232. volatile uint32_t offset104;
  233. volatile uint32_t offset108;
  234. volatile uint32_t offset10C;
  235. volatile uint32_t offset110;
  236. volatile uint32_t offset114;
  237. volatile uint32_t offset118;
  238. volatile uint32_t offset11C;
  239. volatile uint32_t offset120;
  240. volatile uint32_t offset124;
  241. volatile uint32_t offset128;
  242. volatile uint32_t offset12C;
  243. volatile uint32_t offset130;
  244. volatile uint32_t offset134;
  245. volatile uint32_t offset138;
  246. volatile uint32_t offset13C;
  247. volatile uint32_t offset140;
  248. volatile uint32_t offset144;
  249. volatile uint32_t offset148;
  250. volatile uint32_t offset14C;
  251. volatile uint32_t offset150;
  252. volatile uint32_t offset154;
  253. volatile uint32_t offset158;
  254. volatile uint32_t offset15C;
  255. volatile uint32_t offset160;
  256. volatile uint32_t offset164;
  257. volatile uint32_t offset168;
  258. volatile uint32_t offset16C;
  259. volatile uint32_t offset170;
  260. volatile uint32_t offset174;
  261. volatile uint32_t offset178;
  262. volatile uint32_t offset17C;
  263. volatile uint32_t offset180;
  264. volatile uint32_t offset184;
  265. volatile uint32_t offset188;
  266. volatile uint32_t offset18C;
  267. volatile uint32_t offset190;
  268. volatile uint32_t offset194;
  269. volatile uint32_t offset198;
  270. volatile uint32_t offset19C;
  271. volatile uint32_t offset1A0;
  272. volatile uint32_t offset1A4;
  273. volatile uint32_t offset1A8;
  274. volatile uint32_t offset1AC;
  275. volatile uint32_t offset1B0;
  276. volatile uint32_t offset1B4;
  277. volatile uint32_t offset1B8;
  278. volatile uint32_t offset1BC;
  279. volatile uint32_t offset1C0;
  280. volatile uint32_t offset1C4;
  281. volatile uint32_t offset1C8;
  282. volatile uint32_t offset1CC;
  283. volatile uint32_t offset1D0;
  284. volatile uint32_t offset1D4;
  285. volatile uint32_t offset1D8;
  286. volatile uint32_t offset1DC;
  287. volatile uint32_t offset1E0;
  288. volatile uint32_t offset1E4;
  289. volatile uint32_t offset1E8;
  290. volatile uint32_t offset1EC;
  291. volatile uint32_t offset1F0;
  292. volatile uint32_t offset1F4;
  293. volatile uint32_t offset1F8;
  294. volatile uint32_t offset1FC;
  295. volatile uint32_t offset200;
  296. volatile uint32_t offset204;
  297. volatile uint32_t offset208;
  298. volatile uint32_t offset20C;
  299. volatile uint32_t offset210;
  300. volatile uint32_t offset214;
  301. volatile uint32_t offset218;
  302. volatile uint32_t offset21C;
  303. volatile uint32_t offset220;
  304. volatile uint32_t offset224;
  305. volatile uint32_t offset228;
  306. volatile uint32_t offset22C;
  307. volatile uint32_t offset230;
  308. volatile uint32_t offset234;
  309. volatile uint32_t offset238;
  310. volatile uint32_t offset23C;
  311. volatile uint32_t offset240;
  312. volatile uint32_t offset244;
  313. volatile uint32_t offset248;
  314. volatile uint32_t offset24C;
  315. volatile uint32_t offset250;
  316. volatile uint32_t offset254;
  317. volatile uint32_t offset258;
  318. volatile uint32_t offset25C;
  319. volatile uint32_t offset260;
  320. volatile uint32_t offset264;
  321. volatile uint32_t offset268;
  322. volatile uint32_t offset26C;
  323. volatile uint32_t offset270;
  324. volatile uint32_t offset274;
  325. volatile uint32_t offset278;
  326. volatile uint32_t offset27C;
  327. volatile uint32_t offset280;
  328. volatile uint32_t offset284;
  329. volatile uint32_t offset288;
  330. volatile uint32_t offset28C;
  331. volatile uint32_t offset290;
  332. volatile uint32_t offset294;
  333. volatile uint32_t offset298;
  334. volatile uint32_t offset29C;
  335. volatile uint32_t offset2A0;
  336. volatile uint32_t offset2A4;
  337. volatile uint32_t offset2A8;
  338. volatile uint32_t offset2AC;
  339. volatile uint32_t offset2B0;
  340. volatile uint32_t offset2B4;
  341. volatile uint32_t offset2B8;
  342. volatile uint32_t offset2BC;
  343. volatile uint32_t offset2C0;
  344. volatile uint32_t offset2C4;
  345. volatile uint32_t offset2C8;
  346. volatile uint32_t offset2CC;
  347. volatile uint32_t offset2D0;
  348. volatile uint32_t offset2D4;
  349. volatile uint32_t offset2D8;
  350. volatile uint32_t offset2DC;
  351. volatile uint32_t offset2E0;
  352. volatile uint32_t offset2E4;
  353. volatile uint32_t offset2E8;
  354. volatile uint32_t offset2EC;
  355. volatile uint32_t offset2F0;
  356. volatile uint32_t offset2F4;
  357. volatile uint32_t offset2F8;
  358. volatile uint32_t offset2FC;
  359. volatile uint32_t offset300;
  360. volatile uint32_t offset304;
  361. volatile uint32_t offset308;
  362. volatile uint32_t offset30C;
  363. volatile uint32_t offset310;
  364. volatile uint32_t offset314;
  365. volatile uint32_t offset318;
  366. volatile uint32_t offset31C;
  367. volatile uint32_t offset320;
  368. volatile uint32_t offset324;
  369. volatile uint32_t offset328;
  370. volatile uint32_t offset32C;
  371. volatile uint32_t offset330;
  372. volatile uint32_t offset334;
  373. volatile uint32_t offset338;
  374. volatile uint32_t offset33C;
  375. volatile uint32_t offset340;
  376. volatile uint32_t offset344;
  377. volatile uint32_t offset348;
  378. volatile uint32_t offset34C;
  379. volatile uint32_t offset350;
  380. volatile uint32_t offset354;
  381. volatile uint32_t offset358;
  382. volatile uint32_t offset35C;
  383. volatile uint32_t offset360;
  384. volatile uint32_t offset364;
  385. volatile uint32_t offset368;
  386. volatile uint32_t offset36C;
  387. volatile uint32_t offset370;
  388. volatile uint32_t offset374;
  389. volatile uint32_t offset378;
  390. volatile uint32_t offset37C;
  391. volatile uint32_t offset380;
  392. volatile uint32_t offset384;
  393. volatile uint32_t offset388;
  394. volatile uint32_t offset38C;
  395. volatile uint32_t offset390;
  396. volatile uint32_t offset394;
  397. volatile uint32_t offset398;
  398. volatile uint32_t offset39C;
  399. volatile uint32_t offset3A0;
  400. volatile uint32_t offset3A4;
  401. volatile uint32_t offset3A8;
  402. volatile uint32_t offset3AC;
  403. volatile uint32_t offset3B0;
  404. volatile uint32_t offset3B4;
  405. volatile uint32_t offset3B8;
  406. volatile uint32_t offset3BC;
  407. volatile uint32_t offset3C0;
  408. volatile uint32_t offset3C4;
  409. volatile uint32_t offset3C8;
  410. volatile uint32_t offset3CC;
  411. volatile uint32_t offset3D0;
  412. volatile uint32_t offset3D4;
  413. volatile uint32_t offset3D8;
  414. volatile uint32_t offset3DC;
  415. volatile uint32_t offset3E0;
  416. volatile uint32_t offset3E4;
  417. volatile uint32_t offset3E8;
  418. volatile uint32_t offset3EC;
  419. volatile uint32_t offset3F0;
  420. volatile uint32_t offset3F4;
  421. volatile uint32_t offset3F8;
  422. volatile uint32_t offset3FC;
  423. } IMXRT_REGISTER32_t;
  424. typedef struct {
  425. volatile uint16_t offset000;
  426. volatile uint16_t offset002;
  427. volatile uint16_t offset004;
  428. volatile uint16_t offset006;
  429. volatile uint16_t offset008;
  430. volatile uint16_t offset00A;
  431. volatile uint16_t offset00C;
  432. volatile uint16_t offset00E;
  433. volatile uint16_t offset010;
  434. volatile uint16_t offset012;
  435. volatile uint16_t offset014;
  436. volatile uint16_t offset016;
  437. volatile uint16_t offset018;
  438. volatile uint16_t offset01A;
  439. volatile uint16_t offset01C;
  440. volatile uint16_t offset01E;
  441. volatile uint16_t offset020;
  442. volatile uint16_t offset022;
  443. volatile uint16_t offset024;
  444. volatile uint16_t offset026;
  445. volatile uint16_t offset028;
  446. volatile uint16_t offset02A;
  447. volatile uint16_t offset02C;
  448. volatile uint16_t offset02E;
  449. volatile uint16_t offset030;
  450. volatile uint16_t offset032;
  451. volatile uint16_t offset034;
  452. volatile uint16_t offset036;
  453. volatile uint16_t offset038;
  454. volatile uint16_t offset03A;
  455. volatile uint16_t offset03C;
  456. volatile uint16_t offset03E;
  457. volatile uint16_t offset040;
  458. volatile uint16_t offset042;
  459. volatile uint16_t offset044;
  460. volatile uint16_t offset046;
  461. volatile uint16_t offset048;
  462. volatile uint16_t offset04A;
  463. volatile uint16_t offset04C;
  464. volatile uint16_t offset04E;
  465. volatile uint16_t offset050;
  466. volatile uint16_t offset052;
  467. volatile uint16_t offset054;
  468. volatile uint16_t offset056;
  469. volatile uint16_t offset058;
  470. volatile uint16_t offset05A;
  471. volatile uint16_t offset05C;
  472. volatile uint16_t offset05E;
  473. volatile uint16_t offset060;
  474. volatile uint16_t offset062;
  475. volatile uint16_t offset064;
  476. volatile uint16_t offset066;
  477. volatile uint16_t offset068;
  478. volatile uint16_t offset06A;
  479. volatile uint16_t offset06C;
  480. volatile uint16_t offset06E;
  481. volatile uint16_t offset070;
  482. volatile uint16_t offset072;
  483. volatile uint16_t offset074;
  484. volatile uint16_t offset076;
  485. volatile uint16_t offset078;
  486. volatile uint16_t offset07A;
  487. volatile uint16_t offset07C;
  488. volatile uint16_t offset07E;
  489. volatile uint16_t offset080;
  490. volatile uint16_t offset082;
  491. volatile uint16_t offset084;
  492. volatile uint16_t offset086;
  493. volatile uint16_t offset088;
  494. volatile uint16_t offset08A;
  495. volatile uint16_t offset08C;
  496. volatile uint16_t offset08E;
  497. volatile uint16_t offset090;
  498. volatile uint16_t offset092;
  499. volatile uint16_t offset094;
  500. volatile uint16_t offset096;
  501. volatile uint16_t offset098;
  502. volatile uint16_t offset09A;
  503. volatile uint16_t offset09C;
  504. volatile uint16_t offset09E;
  505. volatile uint16_t offset0A0;
  506. volatile uint16_t offset0A2;
  507. volatile uint16_t offset0A4;
  508. volatile uint16_t offset0A6;
  509. volatile uint16_t offset0A8;
  510. volatile uint16_t offset0AA;
  511. volatile uint16_t offset0AC;
  512. volatile uint16_t offset0AE;
  513. volatile uint16_t offset0B0;
  514. volatile uint16_t offset0B2;
  515. volatile uint16_t offset0B4;
  516. volatile uint16_t offset0B6;
  517. volatile uint16_t offset0B8;
  518. volatile uint16_t offset0BA;
  519. volatile uint16_t offset0BC;
  520. volatile uint16_t offset0BE;
  521. volatile uint16_t offset0C0;
  522. volatile uint16_t offset0C2;
  523. volatile uint16_t offset0C4;
  524. volatile uint16_t offset0C6;
  525. volatile uint16_t offset0C8;
  526. volatile uint16_t offset0CA;
  527. volatile uint16_t offset0CC;
  528. volatile uint16_t offset0CE;
  529. volatile uint16_t offset0D0;
  530. volatile uint16_t offset0D2;
  531. volatile uint16_t offset0D4;
  532. volatile uint16_t offset0D6;
  533. volatile uint16_t offset0D8;
  534. volatile uint16_t offset0DA;
  535. volatile uint16_t offset0DC;
  536. volatile uint16_t offset0DE;
  537. volatile uint16_t offset0E0;
  538. volatile uint16_t offset0E2;
  539. volatile uint16_t offset0E4;
  540. volatile uint16_t offset0E6;
  541. volatile uint16_t offset0E8;
  542. volatile uint16_t offset0EA;
  543. volatile uint16_t offset0EC;
  544. volatile uint16_t offset0EE;
  545. volatile uint16_t offset0F0;
  546. volatile uint16_t offset0F2;
  547. volatile uint16_t offset0F4;
  548. volatile uint16_t offset0F6;
  549. volatile uint16_t offset0F8;
  550. volatile uint16_t offset0FA;
  551. volatile uint16_t offset0FC;
  552. volatile uint16_t offset0FE;
  553. volatile uint16_t offset100;
  554. volatile uint16_t offset102;
  555. volatile uint16_t offset104;
  556. volatile uint16_t offset106;
  557. volatile uint16_t offset108;
  558. volatile uint16_t offset10A;
  559. volatile uint16_t offset10C;
  560. volatile uint16_t offset10E;
  561. volatile uint16_t offset110;
  562. volatile uint16_t offset112;
  563. volatile uint16_t offset114;
  564. volatile uint16_t offset116;
  565. volatile uint16_t offset118;
  566. volatile uint16_t offset11A;
  567. volatile uint16_t offset11C;
  568. volatile uint16_t offset11E;
  569. volatile uint16_t offset120;
  570. volatile uint16_t offset122;
  571. volatile uint16_t offset124;
  572. volatile uint16_t offset126;
  573. volatile uint16_t offset128;
  574. volatile uint16_t offset12A;
  575. volatile uint16_t offset12C;
  576. volatile uint16_t offset12E;
  577. volatile uint16_t offset130;
  578. volatile uint16_t offset132;
  579. volatile uint16_t offset134;
  580. volatile uint16_t offset136;
  581. volatile uint16_t offset138;
  582. volatile uint16_t offset13A;
  583. volatile uint16_t offset13C;
  584. volatile uint16_t offset13E;
  585. volatile uint16_t offset140;
  586. volatile uint16_t offset142;
  587. volatile uint16_t offset144;
  588. volatile uint16_t offset146;
  589. volatile uint16_t offset148;
  590. volatile uint16_t offset14A;
  591. volatile uint16_t offset14C;
  592. volatile uint16_t offset14E;
  593. volatile uint16_t offset150;
  594. volatile uint16_t offset152;
  595. volatile uint16_t offset154;
  596. volatile uint16_t offset156;
  597. volatile uint16_t offset158;
  598. volatile uint16_t offset15A;
  599. volatile uint16_t offset15C;
  600. volatile uint16_t offset15E;
  601. volatile uint16_t offset160;
  602. volatile uint16_t offset162;
  603. volatile uint16_t offset164;
  604. volatile uint16_t offset166;
  605. volatile uint16_t offset168;
  606. volatile uint16_t offset16A;
  607. volatile uint16_t offset16C;
  608. volatile uint16_t offset16E;
  609. volatile uint16_t offset170;
  610. volatile uint16_t offset172;
  611. volatile uint16_t offset174;
  612. volatile uint16_t offset176;
  613. volatile uint16_t offset178;
  614. volatile uint16_t offset17A;
  615. volatile uint16_t offset17C;
  616. volatile uint16_t offset17E;
  617. volatile uint16_t offset180;
  618. volatile uint16_t offset182;
  619. volatile uint16_t offset184;
  620. volatile uint16_t offset186;
  621. volatile uint16_t offset188;
  622. volatile uint16_t offset18A;
  623. volatile uint16_t offset18C;
  624. volatile uint16_t offset18E;
  625. volatile uint16_t offset190;
  626. volatile uint16_t offset192;
  627. volatile uint16_t offset194;
  628. volatile uint16_t offset196;
  629. volatile uint16_t offset198;
  630. volatile uint16_t offset19A;
  631. volatile uint16_t offset19C;
  632. volatile uint16_t offset19E;
  633. volatile uint16_t offset1A0;
  634. volatile uint16_t offset1A2;
  635. volatile uint16_t offset1A4;
  636. volatile uint16_t offset1A6;
  637. volatile uint16_t offset1A8;
  638. volatile uint16_t offset1AA;
  639. volatile uint16_t offset1AC;
  640. volatile uint16_t offset1AE;
  641. volatile uint16_t offset1B0;
  642. volatile uint16_t offset1B2;
  643. volatile uint16_t offset1B4;
  644. volatile uint16_t offset1B6;
  645. volatile uint16_t offset1B8;
  646. volatile uint16_t offset1BA;
  647. volatile uint16_t offset1BC;
  648. volatile uint16_t offset1BE;
  649. volatile uint16_t offset1C0;
  650. volatile uint16_t offset1C2;
  651. volatile uint16_t offset1C4;
  652. volatile uint16_t offset1C6;
  653. volatile uint16_t offset1C8;
  654. volatile uint16_t offset1CA;
  655. volatile uint16_t offset1CC;
  656. volatile uint16_t offset1CE;
  657. volatile uint16_t offset1D0;
  658. volatile uint16_t offset1D2;
  659. volatile uint16_t offset1D4;
  660. volatile uint16_t offset1D6;
  661. volatile uint16_t offset1D8;
  662. volatile uint16_t offset1DA;
  663. volatile uint16_t offset1DC;
  664. volatile uint16_t offset1DE;
  665. volatile uint16_t offset1E0;
  666. volatile uint16_t offset1E2;
  667. volatile uint16_t offset1E4;
  668. volatile uint16_t offset1E6;
  669. volatile uint16_t offset1E8;
  670. volatile uint16_t offset1EA;
  671. volatile uint16_t offset1EC;
  672. volatile uint16_t offset1EE;
  673. volatile uint16_t offset1F0;
  674. volatile uint16_t offset1F2;
  675. volatile uint16_t offset1F4;
  676. volatile uint16_t offset1F6;
  677. volatile uint16_t offset1F8;
  678. volatile uint16_t offset1FA;
  679. volatile uint16_t offset1FC;
  680. volatile uint16_t offset1FE;
  681. } IMXRT_REGISTER16_t;
  682. typedef struct {
  683. volatile uint8_t offset00;
  684. volatile uint8_t offset01;
  685. volatile uint8_t offset02;
  686. volatile uint8_t offset03;
  687. volatile uint8_t offset04;
  688. volatile uint8_t offset05;
  689. volatile uint8_t offset06;
  690. volatile uint8_t offset07;
  691. volatile uint8_t offset08;
  692. volatile uint8_t offset09;
  693. volatile uint8_t offset0A;
  694. volatile uint8_t offset0B;
  695. volatile uint8_t offset0C;
  696. volatile uint8_t offset0D;
  697. volatile uint8_t offset0E;
  698. volatile uint8_t offset0F;
  699. } IMXRT_REGISTER8_t;
  700. // page 684
  701. #define IMXRT_AIPSTZ1 (*(IMXRT_REGISTER32_t *)0x4007C000)
  702. #define IMXRT_AIPSTZ2 (*(IMXRT_REGISTER32_t *)0x4017C000)
  703. #define IMXRT_AIPSTZ3 (*(IMXRT_REGISTER32_t *)0x4027C000)
  704. #define IMXRT_AIPSTZ4 (*(IMXRT_REGISTER32_t *)0x4037C000)
  705. #define AIPSTZ1_MPR (IMXRT_AIPSTZ1.offset000)
  706. #define AIPSTZ1_OPACR (IMXRT_AIPSTZ1.offset040)
  707. #define AIPSTZ1_OPACR1 (IMXRT_AIPSTZ1.offset044)
  708. #define AIPSTZ1_OPACR2 (IMXRT_AIPSTZ1.offset048)
  709. #define AIPSTZ1_OPACR3 (IMXRT_AIPSTZ1.offset04C)
  710. #define AIPSTZ1_OPACR4 (IMXRT_AIPSTZ1.offset050)
  711. #define AIPSTZ2_MPR (IMXRT_AIPSTZ2.offset000)
  712. #define AIPSTZ2_OPACR (IMXRT_AIPSTZ2.offset040)
  713. #define AIPSTZ2_OPACR1 (IMXRT_AIPSTZ2.offset044)
  714. #define AIPSTZ2_OPACR2 (IMXRT_AIPSTZ2.offset048)
  715. #define AIPSTZ2_OPACR3 (IMXRT_AIPSTZ2.offset04C)
  716. #define AIPSTZ2_OPACR4 (IMXRT_AIPSTZ2.offset050)
  717. #define AIPSTZ3_MPR (IMXRT_AIPSTZ3.offset000)
  718. #define AIPSTZ3_OPACR (IMXRT_AIPSTZ3.offset040)
  719. #define AIPSTZ3_OPACR1 (IMXRT_AIPSTZ3.offset044)
  720. #define AIPSTZ3_OPACR2 (IMXRT_AIPSTZ3.offset048)
  721. #define AIPSTZ3_OPACR3 (IMXRT_AIPSTZ3.offset04C)
  722. #define AIPSTZ3_OPACR4 (IMXRT_AIPSTZ3.offset050)
  723. #define AIPSTZ4_MPR (IMXRT_AIPSTZ4.offset000)
  724. #define AIPSTZ4_OPACR (IMXRT_AIPSTZ4.offset040)
  725. #define AIPSTZ4_OPACR1 (IMXRT_AIPSTZ4.offset044)
  726. #define AIPSTZ4_OPACR2 (IMXRT_AIPSTZ4.offset048)
  727. #define AIPSTZ4_OPACR3 (IMXRT_AIPSTZ4.offset04C)
  728. #define AIPSTZ4_OPACR4 (IMXRT_AIPSTZ4.offset050)
  729. // page 706 (offsets are wrong)
  730. #define IMXRT_AOI1 (*(IMXRT_REGISTER16_t *)0x403B4000)
  731. #define AOI1_BFCRT010 (IMXRT_AOI1.offset000)
  732. #define AOI1_BFCRT230 (IMXRT_AOI1.offset002)
  733. #define AOI1_BFCRT011 (IMXRT_AOI1.offset004)
  734. #define AOI1_BFCRT231 (IMXRT_AOI1.offset006)
  735. #define AOI1_BFCRT012 (IMXRT_AOI1.offset008)
  736. #define AOI1_BFCRT232 (IMXRT_AOI1.offset00A)
  737. #define AOI1_BFCRT013 (IMXRT_AOI1.offset00C)
  738. #define AOI1_BFCRT233 (IMXRT_AOI1.offset00E)
  739. #define IMXRT_AOI2 (*(IMXRT_REGISTER16_t *)0x403B8000)
  740. #define AOI2_BFCRT010 (IMXRT_AOI2.offset000)
  741. #define AOI2_BFCRT230 (IMXRT_AOI2.offset002)
  742. #define AOI2_BFCRT011 (IMXRT_AOI2.offset004)
  743. #define AOI2_BFCRT231 (IMXRT_AOI2.offset006)
  744. #define AOI2_BFCRT012 (IMXRT_AOI2.offset008)
  745. #define AOI2_BFCRT232 (IMXRT_AOI2.offset00A)
  746. #define AOI2_BFCRT013 (IMXRT_AOI2.offset00C)
  747. #define AOI2_BFCRT233 (IMXRT_AOI2.offset00E)
  748. // page 708
  749. #define IMXRT_CCM (*(IMXRT_REGISTER32_t *)0x400FC000)
  750. #define CCM_CCR (IMXRT_CCM.offset000)
  751. #define CCM_CSR (IMXRT_CCM.offset008)
  752. #define CCM_CCSR (IMXRT_CCM.offset00C)
  753. #define CCM_CACRR (IMXRT_CCM.offset010)
  754. #define CCM_CBCDR (IMXRT_CCM.offset014)
  755. #define CCM_CBCMR (IMXRT_CCM.offset018)
  756. #define CCM_CSCMR1 (IMXRT_CCM.offset01C)
  757. #define CCM_CSCMR2 (IMXRT_CCM.offset020)
  758. #define CCM_CSCDR1 (IMXRT_CCM.offset024)
  759. #define CCM_CS1CDR (IMXRT_CCM.offset028)
  760. #define CCM_CS2CDR (IMXRT_CCM.offset02C)
  761. #define CCM_CDCDR (IMXRT_CCM.offset030)
  762. #define CCM_CSCDR2 (IMXRT_CCM.offset038)
  763. #define CCM_CSCDR3 (IMXRT_CCM.offset03C)
  764. #define CCM_CDHIPR (IMXRT_CCM.offset048)
  765. #define CCM_CLPCR (IMXRT_CCM.offset054)
  766. #define CCM_CISR (IMXRT_CCM.offset058)
  767. #define CCM_CIMR (IMXRT_CCM.offset05C)
  768. #define CCM_CCOSR (IMXRT_CCM.offset060)
  769. #define CCM_CGPR (IMXRT_CCM.offset064)
  770. #define CCM_CCGR0 (IMXRT_CCM.offset068)
  771. #define CCM_CCGR1 (IMXRT_CCM.offset06C)
  772. #define CCM_CCGR2 (IMXRT_CCM.offset070)
  773. #define CCM_CCGR3 (IMXRT_CCM.offset074)
  774. #define CCM_CCGR4 (IMXRT_CCM.offset078)
  775. #define CCM_CCGR5 (IMXRT_CCM.offset07C)
  776. #define CCM_CCGR6 (IMXRT_CCM.offset080)
  777. #define CCM_CMEOR (IMXRT_CCM.offset088)
  778. #define CCM_CCR_RBC_EN ((uint32_t)0x08000000)
  779. #define CCM_CCR_REG_BYPASS_COUNT(n) ((uint32_t)(((n) & 0x3F) << 21))
  780. #define CCM_CCR_COSC_EN ((uint32_t)0x00001000)
  781. #define CCM_CCR_OSCNT(n) ((uint32_t)(((n) & 0xFF) << 0))
  782. #define CCM_CSR_COSC_READY ((uint32_t)0x00000020)
  783. #define CCM_CSR_CAMP2_READY ((uint32_t)0x00000008)
  784. #define CCM_CSR_REF_EN_B ((uint32_t)0x00000001)
  785. #define CCM_CCSR_PLL3_SW_CLK_SEL ((uint32_t)0x00000001)
  786. #define CCM_CACRR_ARM_PODF(n) ((uint32_t)(((n) & 0x07) << 0))
  787. #define CCM_CBCDR_PERIPH_CLK2_PODF(n) ((uint32_t)(((n) & 0x07) << 27))
  788. #define CCM_CBCDR_PERIPH_CLK_SEL ((uint32_t)0x02000000)
  789. #define CCM_CBCDR_SEMC_PODF(n) ((uint32_t)(((n) & 0x07) << 16))
  790. #define CCM_CBCDR_AHB_PODF(n) ((uint32_t)(((n) & 0x07) << 10))
  791. #define CCM_CBCDR_IPG_PODF(n) ((uint32_t)(((n) & 0x03) << 8))
  792. #define CCM_CBCDR_SEMC_ALT_CLK_SEL ((uint32_t)0x00000080)
  793. #define CCM_CBCDR_SEMC_CLK_SEL ((uint32_t)0x00000040)
  794. #define CCM_CBCMR_LPSPI_PODF(n) ((uint32_t)(((n) & 0x07) << 26))
  795. #define CCM_CBCMR_LCDIF_PODF(n) ((uint32_t)(((n) & 0x07) << 23))
  796. #define CCM_CBCMR_PRE_PERIPH_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 18))
  797. #define CCM_CBCMR_TRACE_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 14))
  798. #define CCM_CBCMR_PERIPH_CLK2_SEL(n) ((uint32_t)(((n) & 0x03) << 12))
  799. #define CCM_CBCMR_LPSPI_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 5))
  800. #define CCM_CSCMR1_FLEXSPI_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 29))
  801. #define CCM_CSCMR1_FLEXSPI_PODF(n) ((uint32_t)(((n) & 0x07) << 23))
  802. #define CCM_CSCMR1_USDHC2_CLK_SEL ((uint32_t)0x00020000)
  803. #define CCM_CSCMR1_USDHC1_CLK_SEL ((uint32_t)0x00010000)
  804. #define CCM_CSCMR1_SAI3_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 14))
  805. #define CCM_CSCMR1_SAI2_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 12))
  806. #define CCM_CSCMR1_SAI1_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 10))
  807. #define CCM_CSCMR1_PERCLK_CLK_SEL ((uint32_t)0x00000040)
  808. #define CCM_CSCMR1_PERCLK_PODF(n) ((uint32_t)(((n) & 0x3F) << 0))
  809. #define CCM_CSCMR2_FLEXIO2_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 19))
  810. #define CCM_CSCMR2_CAN_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 8))
  811. #define CCM_CSCMR2_CAN_CLK_PODF(n) ((uint32_t)(((n) & 0x3F) << 2))
  812. #define CCM_CSCDR1_TRACE_PODF(n) ((uint32_t)(((n) & 0x07) << 25))
  813. #define CCM_CSCDR1_USDHC2_PODF(n) ((uint32_t)(((n) & 0x07) << 16))
  814. #define CCM_CSCDR1_USDHC1_PODF(n) ((uint32_t)(((n) & 0x07) << 11))
  815. #define CCM_CSCDR1_UART_CLK_SEL ((uint32_t)0x00000040)
  816. #define CCM_CSCDR1_UART_CLK_PODF(n) ((uint32_t)(((n) & 0x1F) << 0))
  817. #define CCM_CS1CDR_FLEXIO2_CLK_PODF(n) ((uint32_t)(((n) & 0x07) << 25))
  818. #define CCM_CS1CDR_SAI3_CLK_PRED(n) ((uint32_t)(((n) & 0x07) << 22))
  819. #define CCM_CS1CDR_SAI3_CLK_PODF(n) ((uint32_t)(((n) & 0x1F) << 16))
  820. #define CCM_CS1CDR_FLEXIO2_CLK_PRED(n) ((uint32_t)(((n) & 0x07) << 9))
  821. #define CCM_CS1CDR_SAI1_CLK_PRED(n) ((uint32_t)(((n) & 0x07) << 6))
  822. #define CCM_CS1CDR_SAI1_CLK_PODF(n) ((uint32_t)(((n) & 0x1F) << 0))
  823. #define CCM_CS2CDR_SAI2_CLK_PRED(n) ((uint32_t)(((n) & 0x07) << 6))
  824. #define CCM_CS2CDR_SAI2_CLK_PODF(n) ((uint32_t)(((n) & 0x3F) << 0))
  825. #define CCM_CDCDR_SPDIF0_CLK_PRED(n) ((uint32_t)(((n) & 0x07) << 25))
  826. #define CCM_CDCDR_SPDIF0_CLK_PODF(n) ((uint32_t)(((n) & 0x07) << 22))
  827. #define CCM_CDCDR_SPDIF0_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 20))
  828. #define CCM_CDCDR_FLEXIO1_CLK_PRED(n) ((uint32_t)(((n) & 0x07) << 12))
  829. #define CCM_CDCDR_FLEXIO1_CLK_PODF(n) ((uint32_t)(((n) & 0x07) << 9))
  830. #define CCM_CDCDR_FLEXIO1_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 7))
  831. #define CCM_CSCDR2_LPI2C_CLK_PODF(n) ((uint32_t)(((n) & 0x1F) << 19))
  832. #define CCM_CSCDR2_LPI2C_CLK_SEL ((uint32_t)0x00040000)
  833. #define CCM_CSCDR2_LCDIF_PRE_CLK_SEL(n) ((uint32_t)(((n) & 0x07) << 15))
  834. #define CCM_CSCDR2_LCDIF_PRED(n) ((uint32_t)(((n) & 0x07) << 12))
  835. #define CCM_CSCDR2_LCDIF_CLK_SEL(n) ((uint32_t)(((n) & 0x07) << 9))
  836. #define CCM_CSCDR3_CSI_PODF(n) ((uint32_t)(((n) & 0x07) << 11))
  837. #define CCM_CSCDR3_CSI_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 9))
  838. #define CCM_CDHIPR_ARM_PODF_BUSY ((uint32_t)0x00010000)
  839. #define CCM_CDHIPR_PERIPH_CLK_SEL_BUSY ((uint32_t)0x00000020)
  840. #define CCM_CDHIPR_PERIPH2_CLK_SEL_BUSY ((uint32_t)0x00000008)
  841. #define CCM_CDHIPR_AHB_PODF_BUSY ((uint32_t)0x00000002)
  842. #define CCM_CDHIPR_SEMC_PODF_BUSY ((uint32_t)0x00000001)
  843. #define CCM_CLPCR_MASK_L2CC_IDLE ((uint32_t)0x08000000)
  844. #define CCM_CLPCR_MASK_SCU_IDLE ((uint32_t)0x04000000)
  845. #define CCM_CLPCR_MASK_CORE0_WFI ((uint32_t)0x00400000)
  846. #define CCM_CLPCR_BYPASS_LPM_HS0 ((uint32_t)0x00200000)
  847. #define CCM_CLPCR_BYPASS_LPM_HS1 ((uint32_t)0x00080000)
  848. #define CCM_CLPCR_COSC_PWRDOWN ((uint32_t)0x00000800)
  849. #define CCM_CLPCR_STBY_COUNT(n) ((uint32_t)(((n) & 0x03) << 9))
  850. #define CCM_CLPCR_VSTBY ((uint32_t)0x00000100)
  851. #define CCM_CLPCR_DIS_REF_OSC ((uint32_t)0x00000080)
  852. #define CCM_CLPCR_SBYOS ((uint32_t)0x00000040)
  853. #define CCM_CLPCR_ARM_CLK_DIS_ON_LPM ((uint32_t)0x00000020)
  854. #define CCM_CLPCR_LPM(n) ((uint32_t)(((n) & 0x03) << 0))
  855. #define CCM_CISR_ARM_PODF_LOADED ((uint32_t)0x04000000)
  856. #define CCM_CISR_PERIPH_CLK_SEL_LOADED ((uint32_t)0x00400000)
  857. #define CCM_CISR_AHB_PODF_LOADED ((uint32_t)0x00100000)
  858. #define CCM_CISR_PERIPH2_CLK_SEL_LOADED ((uint32_t)0x00080000)
  859. #define CCM_CISR_SEMC_PODF_LOADED ((uint32_t)0x00020000)
  860. #define CCM_CISR_COSC_READY ((uint32_t)0x00000040)
  861. #define CCM_CISR_LRF_PLL ((uint32_t)0x00000001)
  862. #define CCM_CIMR_ARM_PODF_LOADED ((uint32_t)0x04000000)
  863. #define CCM_CIMR_MASK_PERIPH_CLK_SEL_LOADED ((uint32_t)0x00400000)
  864. #define CCM_CIMR_MASK_AHB_PODF_LOADED ((uint32_t)0x00100000)
  865. #define CCM_CIMR_MASK_PERIPH2_CLK_SEL_LOADED ((uint32_t)0x00080000)
  866. #define CCM_CIMR_MASK_SEMC_PODF_LOADED ((uint32_t)0x00020000)
  867. #define CCM_CIMR_MASK_COSC_READY ((uint32_t)0x00000040)
  868. #define CCM_CIMR_MASK_LRF_PLL ((uint32_t)0x00000001)
  869. #define CCM_CCOSR_CLKO2_EN ((uint32_t)0x01000000)
  870. #define CCM_CCOSR_CLKO2_DIV(n) ((uint32_t)(((n) & 0x07) << 21))
  871. #define CCM_CCOSR_CLKO2_SEL(n) ((uint32_t)(((n) & 0x1F) << 16))
  872. #define CCM_CCOSR_CLK_OUT_SEL ((uint32_t)0x00000100)
  873. #define CCM_CCOSR_CLKO1_EN ((uint32_t)0x00000080)
  874. #define CCM_CCOSR_CLKO1_DIV(n) ((uint32_t)(((n) & 0x07) << 4))
  875. #define CCM_CCOSR_CLKO1_SEL(n) ((uint32_t)(((n) & 0x0F) << 0))
  876. #define CCM_CGPR_INT_MEM_CLK_LPM ((uint32_t)0x00020000)
  877. #define CCM_CGPR_FPL ((uint32_t)0x00010000)
  878. #define CCM_CGPR_SYS_MEM_DS_CTRL(n) ((uint32_t)(((n) & 0x03) << 14))
  879. #define CCM_CGPR_EFUSE_PROG_SUPPLY_GATE ((uint32_t)0x00000010)
  880. #define CCM_CGPR_PMIC_DELAY_SCALER ((uint32_t)0x00000001)
  881. #define CCM_CCGR_OFF 0
  882. #define CCM_CCGR_ON_RUNONLY 1
  883. #define CCM_CCGR_ON 3
  884. #define CCM_CCGR0_GPIO2(n) ((uint32_t)(((n) & 0x03) << 30))
  885. #define CCM_CCGR0_LPUART2(n) ((uint32_t)(((n) & 0x03) << 28))
  886. #define CCM_CCGR0_GPT2_SERIAL(n) ((uint32_t)(((n) & 0x03) << 26))
  887. #define CCM_CCGR0_GPT2_BUS(n) ((uint32_t)(((n) & 0x03) << 24))
  888. #define CCM_CCGR0_TRACE(n) ((uint32_t)(((n) & 0x03) << 22))
  889. #define CCM_CCGR0_CAN2_SERIAL(n) ((uint32_t)(((n) & 0x03) << 20))
  890. #define CCM_CCGR0_CAN2(n) ((uint32_t)(((n) & 0x03) << 18))
  891. #define CCM_CCGR0_CAN1_SERIAl(n) ((uint32_t)(((n) & 0x03) << 16))
  892. #define CCM_CCGR0_CAN1(n) ((uint32_t)(((n) & 0x03) << 14))
  893. #define CCM_CCGR0_LPUART3(n) ((uint32_t)(((n) & 0x03) << 12))
  894. #define CCM_CCGR0_DCP(n) ((uint32_t)(((n) & 0x03) << 10))
  895. #define CCM_CCGR0_MQS_HMCLK(n) ((uint32_t)(((n) & 0x03) << 4))
  896. #define CCM_CCGR0_AIPS_TZ2(n) ((uint32_t)(((n) & 0x03) << 2))
  897. #define CCM_CCGR0_aips_tz1(n) ((uint32_t)(((n) & 0x03) << 0))
  898. #define CCM_CCGR1_CSU(n) ((uint32_t)(((n) & 0x03) << 28))
  899. #define CCM_CCGR1_GPIO1(n) ((uint32_t)(((n) & 0x03) << 26))
  900. #define CCM_CCGR1_LPUART4(n) ((uint32_t)(((n) & 0x03) << 24))
  901. #define CCM_CCGR1_GPT_SERIAL(n) ((uint32_t)(((n) & 0x03) << 22))
  902. #define CCM_CCGR1_GPT(n) ((uint32_t)(((n) & 0x03) << 20))
  903. #define CCM_CCGR1_ADC1(n) ((uint32_t)(((n) & 0x03) << 16))
  904. #define CCM_CCGR1_AOI2(n) ((uint32_t)(((n) & 0x03) << 14))
  905. #define CCM_CCGR1_PIT(n) ((uint32_t)(((n) & 0x03) << 12))
  906. #define CCM_CCGR1_ENET(n) ((uint32_t)(((n) & 0x03) << 10))
  907. #define CCM_CCGR1_ADC2(n) ((uint32_t)(((n) & 0x03) << 8))
  908. #define CCM_CCGR1_LPSPI4(n) ((uint32_t)(((n) & 0x03) << 6))
  909. #define CCM_CCGR1_LPSPI3(n) ((uint32_t)(((n) & 0x03) << 4))
  910. #define CCM_CCGR1_LPSPI2(n) ((uint32_t)(((n) & 0x03) << 2))
  911. #define CCM_CCGR1_LPSPI1(n) ((uint32_t)(((n) & 0x03) << 0))
  912. #define CCM_CCGR2_PXP(n) ((uint32_t)(((n) & 0x03) << 30))
  913. #define CCM_CCGR2_LCD(n) ((uint32_t)(((n) & 0x03) << 28))
  914. #define CCM_CCGR2_GPIO3(n) ((uint32_t)(((n) & 0x03) << 26))
  915. #define CCM_CCGR2_XBAR2(n) ((uint32_t)(((n) & 0x03) << 24))
  916. #define CCM_CCGR2_XBAR1(n) ((uint32_t)(((n) & 0x03) << 22))
  917. #define CCM_CCGR2_IPMUX3(n) ((uint32_t)(((n) & 0x03) << 20))
  918. #define CCM_CCGR2_IPMUX2(n) ((uint32_t)(((n) & 0x03) << 18))
  919. #define CCM_CCGR2_IPMUX1(n) ((uint32_t)(((n) & 0x03) << 16))
  920. #define CCM_CCGR2_XBAR3(n) ((uint32_t)(((n) & 0x03) << 14))
  921. #define CCM_CCGR2_IIM(n) ((uint32_t)(((n) & 0x03) << 12))
  922. #define CCM_CCGR2_LPI2C3(n) ((uint32_t)(((n) & 0x03) << 10))
  923. #define CCM_CCGR2_LPI2C2(n) ((uint32_t)(((n) & 0x03) << 8))
  924. #define CCM_CCGR2_LPI2C1(n) ((uint32_t)(((n) & 0x03) << 6))
  925. #define CCM_CCGR2_IOMUXC_SNVS(n) ((uint32_t)(((n) & 0x03) << 4))
  926. #define CCM_CCGR2_CSI(n) ((uint32_t)(((n) & 0x03) << 2))
  927. #define CCM_CCGR2_(n) ((uint32_t)(((n) & 0x03) << 0))
  928. #define CCM_CCGR3_IOMUXC_SNVS_GPR(n) ((uint32_t)(((n) & 0x03) << 30))
  929. #define CCM_CCGR3_OCRAM(n) ((uint32_t)(((n) & 0x03) << 28))
  930. #define CCM_CCGR3_ACMP4(n) ((uint32_t)(((n) & 0x03) << 26))
  931. #define CCM_CCGR3_ACMP3(n) ((uint32_t)(((n) & 0x03) << 24))
  932. #define CCM_CCGR3_ACMP2(n) ((uint32_t)(((n) & 0x03) << 22))
  933. #define CCM_CCGR3_ACMP1(n) ((uint32_t)(((n) & 0x03) << 20))
  934. #define CCM_CCGR3_FLEXRAM(n) ((uint32_t)(((n) & 0x03) << 18))
  935. #define CCM_CCGR3_WDOG1(n) ((uint32_t)(((n) & 0x03) << 16))
  936. #define CCM_CCGR3_EWM(n) ((uint32_t)(((n) & 0x03) << 14))
  937. #define CCM_CCGR3_GPIO4(n) ((uint32_t)(((n) & 0x03) << 12))
  938. #define CCM_CCGR3_LCDIF_PIX(n) ((uint32_t)(((n) & 0x03) << 10))
  939. #define CCM_CCGR3_AOI1(n) ((uint32_t)(((n) & 0x03) << 8))
  940. #define CCM_CCGR3_LPUART6(n) ((uint32_t)(((n) & 0x03) << 6))
  941. #define CCM_CCGR3_SEMC(n) ((uint32_t)(((n) & 0x03) << 4))
  942. #define CCM_CCGR3_LPUART5(n) ((uint32_t)(((n) & 0x03) << 2))
  943. #define CCM_CCGR3_FLEXIO2(n) ((uint32_t)(((n) & 0x03) << 0))
  944. #define CCM_CCGR4_ENC4(n) ((uint32_t)(((n) & 0x03) << 30))
  945. #define CCM_CCGR4_ENC3(n) ((uint32_t)(((n) & 0x03) << 28))
  946. #define CCM_CCGR4_ENC2(n) ((uint32_t)(((n) & 0x03) << 26))
  947. #define CCM_CCGR4_ENC1(n) ((uint32_t)(((n) & 0x03) << 24))
  948. #define CCM_CCGR4_PWM4(n) ((uint32_t)(((n) & 0x03) << 22))
  949. #define CCM_CCGR4_PWM3(n) ((uint32_t)(((n) & 0x03) << 20))
  950. #define CCM_CCGR4_PWM2(n) ((uint32_t)(((n) & 0x03) << 18))
  951. #define CCM_CCGR4_PWM1(n) ((uint32_t)(((n) & 0x03) << 16))
  952. #define CCM_CCGR4_SIM_EMS(n) ((uint32_t)(((n) & 0x03) << 14))
  953. #define CCM_CCGR4_SIM_M(n) ((uint32_t)(((n) & 0x03) << 12))
  954. #define CCM_CCGR4_TSC(n) ((uint32_t)(((n) & 0x03) << 10))
  955. #define CCM_CCGR4_SIM_M7(n) ((uint32_t)(((n) & 0x03) << 8))
  956. #define CCM_CCGR4_BEE(n) ((uint32_t)(((n) & 0x03) << 6))
  957. #define CCM_CCGR4_IOMUXC_GPR(n) ((uint32_t)(((n) & 0x03) << 4))
  958. #define CCM_CCGR4_IOMUXC(n) ((uint32_t)(((n) & 0x03) << 2))
  959. #define CCM_CCGR5_SNVS_LP(n) ((uint32_t)(((n) & 0x03) << 30))
  960. #define CCM_CCGR5_SNVS_HP(n) ((uint32_t)(((n) & 0x03) << 28))
  961. #define CCM_CCGR5_LPUART7(n) ((uint32_t)(((n) & 0x03) << 26))
  962. #define CCM_CCGR5_LPUART1(n) ((uint32_t)(((n) & 0x03) << 24))
  963. #define CCM_CCGR5_SAI3(n) ((uint32_t)(((n) & 0x03) << 22))
  964. #define CCM_CCGR5_SAI2(n) ((uint32_t)(((n) & 0x03) << 20))
  965. #define CCM_CCGR5_SAI1(n) ((uint32_t)(((n) & 0x03) << 18))
  966. #define CCM_CCGR5_SIM_MAIN(n) ((uint32_t)(((n) & 0x03) << 16))
  967. #define CCM_CCGR5_SPDIF(n) ((uint32_t)(((n) & 0x03) << 14))
  968. #define CCM_CCGR5_AIPS_TZ4(n) ((uint32_t)(((n) & 0x03) << 12))
  969. #define CCM_CCGR5_WDOG2(n) ((uint32_t)(((n) & 0x03) << 10))
  970. #define CCM_CCGR5_KPP(n) ((uint32_t)(((n) & 0x03) << 8))
  971. #define CCM_CCGR5_DMA(n) ((uint32_t)(((n) & 0x03) << 6))
  972. #define CCM_CCGR5_WDOG3(n) ((uint32_t)(((n) & 0x03) << 4))
  973. #define CCM_CCGR5_FLEXIO1(n) ((uint32_t)(((n) & 0x03) << 2))
  974. #define CCM_CCGR5_ROM(n) ((uint32_t)(((n) & 0x03) << 0))
  975. #define CCM_CCGR6_TIMER3(n) ((uint32_t)(((n) & 0x03) << 30))
  976. #define CCM_CCGR6_TIMER2(n) ((uint32_t)(((n) & 0x03) << 28))
  977. #define CCM_CCGR6_TIMER1(n) ((uint32_t)(((n) & 0x03) << 26))
  978. #define CCM_CCGR6_LPI2C4_SERIAL(n) ((uint32_t)(((n) & 0x03) << 24))
  979. #define CCM_CCGR6_ANADIG(n) ((uint32_t)(((n) & 0x03) << 22))
  980. #define CCM_CCGR6_SIM_PER(n) ((uint32_t)(((n) & 0x03) << 20))
  981. #define CCM_CCGR6_AIPS_TZ3(n) ((uint32_t)(((n) & 0x03) << 18))
  982. #define CCM_CCGR6_TIMER4(n) ((uint32_t)(((n) & 0x03) << 16))
  983. #define CCM_CCGR6_LPUART8(n) ((uint32_t)(((n) & 0x03) << 14))
  984. #define CCM_CCGR6_TRNG(n) ((uint32_t)(((n) & 0x03) << 12))
  985. #define CCM_CCGR6_FLEXSPi(n) ((uint32_t)(((n) & 0x03) << 10))
  986. #define CCM_CCGR6_IPMUX4(n) ((uint32_t)(((n) & 0x03) << 8))
  987. #define CCM_CCGR6_DCDC(n) ((uint32_t)(((n) & 0x03) << 6))
  988. #define CCM_CCGR6_USDHC2(n) ((uint32_t)(((n) & 0x03) << 4))
  989. #define CCM_CCGR6_USDHC1(n) ((uint32_t)(((n) & 0x03) << 2))
  990. #define CCM_CCGR6_USBOH3(n) ((uint32_t)(((n) & 0x03) << 0))
  991. #define CCM_CMEOR_MOD_EN_OV_CAN1_CPI ((uint32_t)0x40000000)
  992. #define CCM_CMEOR_MOD_EN_OV_CAN2_CPI ((uint32_t)0x10000000)
  993. #define CCM_CMEOR_MOD_EN_OV_TRNG ((uint32_t)0x00000200)
  994. #define CCM_CMEOR_MOD_EN_USDHC ((uint32_t)0x00000080)
  995. #define CCM_CMEOR_MOD_EN_OV_PIT ((uint32_t)0x00000040)
  996. #define CCM_CMEOR_MOD_EN_OV_GPT ((uint32_t)0x00000020)
  997. // page 796
  998. #define IMXRT_CCM_ANALOG (*(IMXRT_REGISTER32_t *)0x400D8000)
  999. #define CCM_ANALOG_PLL_ARM (IMXRT_CCM_ANALOG.offset000)
  1000. #define CCM_ANALOG_PLL_ARM_SET (IMXRT_CCM_ANALOG.offset004)
  1001. #define CCM_ANALOG_PLL_ARM_CLR (IMXRT_CCM_ANALOG.offset008)
  1002. #define CCM_ANALOG_PLL_ARM_TOG (IMXRT_CCM_ANALOG.offset00C)
  1003. #define CCM_ANALOG_PLL_USB1 (IMXRT_CCM_ANALOG.offset010)
  1004. #define CCM_ANALOG_PLL_USB1_SET (IMXRT_CCM_ANALOG.offset014)
  1005. #define CCM_ANALOG_PLL_USB1_CLR (IMXRT_CCM_ANALOG.offset018)
  1006. #define CCM_ANALOG_PLL_USB1_TOG (IMXRT_CCM_ANALOG.offset01C)
  1007. #define CCM_ANALOG_PLL_USB2 (IMXRT_CCM_ANALOG.offset020)
  1008. #define CCM_ANALOG_PLL_USB2_SET (IMXRT_CCM_ANALOG.offset024)
  1009. #define CCM_ANALOG_PLL_USB2_CLR (IMXRT_CCM_ANALOG.offset028)
  1010. #define CCM_ANALOG_PLL_USB2_TOG (IMXRT_CCM_ANALOG.offset02C)
  1011. #define CCM_ANALOG_PLL_SYS (IMXRT_CCM_ANALOG.offset030)
  1012. #define CCM_ANALOG_PLL_SYS_SET (IMXRT_CCM_ANALOG.offset034)
  1013. #define CCM_ANALOG_PLL_SYS_CLR (IMXRT_CCM_ANALOG.offset038)
  1014. #define CCM_ANALOG_PLL_SYS_TOG (IMXRT_CCM_ANALOG.offset03C)
  1015. #define CCM_ANALOG_PLL_SYS_SS (IMXRT_CCM_ANALOG.offset040)
  1016. #define CCM_ANALOG_PLL_SYS_NUM (IMXRT_CCM_ANALOG.offset050)
  1017. #define CCM_ANALOG_PLL_SYS_DENOM (IMXRT_CCM_ANALOG.offset060)
  1018. #define CCM_ANALOG_PLL_AUDIO (IMXRT_CCM_ANALOG.offset070)
  1019. #define CCM_ANALOG_PLL_AUDIO_SET (IMXRT_CCM_ANALOG.offset074)
  1020. #define CCM_ANALOG_PLL_AUDIO_CLR (IMXRT_CCM_ANALOG.offset078)
  1021. #define CCM_ANALOG_PLL_AUDIO_TOG (IMXRT_CCM_ANALOG.offset07C)
  1022. #define CCM_ANALOG_PLL_AUDIO_NUM (IMXRT_CCM_ANALOG.offset080)
  1023. #define CCM_ANALOG_PLL_AUDIO_DENOM (IMXRT_CCM_ANALOG.offset090)
  1024. #define CCM_ANALOG_PLL_VIDEO (IMXRT_CCM_ANALOG.offset0A0)
  1025. #define CCM_ANALOG_PLL_VIDEO_SET (IMXRT_CCM_ANALOG.offset0A4)
  1026. #define CCM_ANALOG_PLL_VIDEO_CLR (IMXRT_CCM_ANALOG.offset0A8)
  1027. #define CCM_ANALOG_PLL_VIDEO_TOG (IMXRT_CCM_ANALOG.offset0AC)
  1028. #define CCM_ANALOG_PLL_VIDEO_NUM (IMXRT_CCM_ANALOG.offset0B0)
  1029. #define CCM_ANALOG_PLL_VIDEO_DENOM (IMXRT_CCM_ANALOG.offset0C0)
  1030. #define CCM_ANALOG_PLL_ENET (IMXRT_CCM_ANALOG.offset0EC)
  1031. #define CCM_ANALOG_PLL_ENET_SET (IMXRT_CCM_ANALOG.offset0E4)
  1032. #define CCM_ANALOG_PLL_ENET_CLR (IMXRT_CCM_ANALOG.offset0E8)
  1033. #define CCM_ANALOG_PLL_ENET_TOG (IMXRT_CCM_ANALOG.offset0EC)
  1034. #define CCM_ANALOG_PFD_480 (IMXRT_CCM_ANALOG.offset0F0)
  1035. #define CCM_ANALOG_PFD_480_SET (IMXRT_CCM_ANALOG.offset0F4)
  1036. #define CCM_ANALOG_PFD_480_CLR (IMXRT_CCM_ANALOG.offset0F8)
  1037. #define CCM_ANALOG_PFD_480_TOG (IMXRT_CCM_ANALOG.offset0FC)
  1038. #define CCM_ANALOG_PFD_528 (IMXRT_CCM_ANALOG.offset100)
  1039. #define CCM_ANALOG_PFD_528_SET (IMXRT_CCM_ANALOG.offset104)
  1040. #define CCM_ANALOG_PFD_528_CLR (IMXRT_CCM_ANALOG.offset108)
  1041. #define CCM_ANALOG_PFD_528_TOG (IMXRT_CCM_ANALOG.offset10C)
  1042. #define CCM_ANALOG_MISC0 (IMXRT_CCM_ANALOG.offset150)
  1043. #define CCM_ANALOG_MISC0_SET (IMXRT_CCM_ANALOG.offset154)
  1044. #define CCM_ANALOG_MISC0_CLR (IMXRT_CCM_ANALOG.offset158)
  1045. #define CCM_ANALOG_MISC0_TOG (IMXRT_CCM_ANALOG.offset15C)
  1046. #define CCM_ANALOG_MISC1 (IMXRT_CCM_ANALOG.offset160)
  1047. #define CCM_ANALOG_MISC1_SET (IMXRT_CCM_ANALOG.offset164)
  1048. #define CCM_ANALOG_MISC1_CLR (IMXRT_CCM_ANALOG.offset168)
  1049. #define CCM_ANALOG_MISC1_TOG (IMXRT_CCM_ANALOG.offset16C)
  1050. #define CCM_ANALOG_MISC2 (IMXRT_CCM_ANALOG.offset170)
  1051. #define CCM_ANALOG_MISC2_SET (IMXRT_CCM_ANALOG.offset174)
  1052. #define CCM_ANALOG_MISC2_CLR (IMXRT_CCM_ANALOG.offset178)
  1053. #define CCM_ANALOG_MISC2_TOG (IMXRT_CCM_ANALOG.offset17C)
  1054. // page 852
  1055. #define IMXRT_CSI (*(IMXRT_REGISTER32_t *)0x402BC000)
  1056. #define CSI_CSICR1 (IMXRT_CSI.offset000)
  1057. #define CSI_CSICR2 (IMXRT_CSI.offset004)
  1058. #define CSI_CSICR3 (IMXRT_CSI.offset008)
  1059. #define CSI_CSISTATFIFO (IMXRT_CSI.offset00C)
  1060. #define CSI_CSIRFIFO (IMXRT_CSI.offset010)
  1061. #define CSI_CSIRXCNT (IMXRT_CSI.offset014)
  1062. #define CSI_CSISR (IMXRT_CSI.offset018)
  1063. #define CSI_CSIDMASA_STATFIFO (IMXRT_CSI.offset020)
  1064. #define CSI_CSIDMATS_STATFIFO (IMXRT_CSI.offset024)
  1065. #define CSI_CSIDMASA_FB1 (IMXRT_CSI.offset028)
  1066. #define CSI_CSIDMASA_FB2 (IMXRT_CSI.offset02C)
  1067. #define CSI_CSIFBUF_PARA (IMXRT_CSI.offset030)
  1068. #define CSI_CSIIMAG_PARA (IMXRT_CSI.offset034)
  1069. #define CSI_CSICR18 (IMXRT_CSI.offset038)
  1070. #define CSI_CSICR19 (IMXRT_CSI.offset03C)
  1071. // page 878
  1072. #define IMXRT_DCDC (*(IMXRT_REGISTER32_t *)0x40080000)
  1073. #define DCDC_REG0 (IMXRT_DCDC.offset000)
  1074. #define DCDC_REG1 (IMXRT_DCDC.offset004)
  1075. #define DCDC_REG2 (IMXRT_DCDC.offset008)
  1076. #define DCDC_REG3 (IMXRT_DCDC.offset00C)
  1077. // page 489
  1078. #define IMXRT_CMP1 (*(IMXRT_REGISTER8_t *)0x40094000)
  1079. #define CMP1_CR0 (IMXRT_CMP1.offset00)
  1080. #define CMP1_CR1 (IMXRT_CMP1.offset01)
  1081. #define CMP1_FPR (IMXRT_CMP1.offset02)
  1082. #define CMP1_SCR (IMXRT_CMP1.offset03)
  1083. #define CMP1_DACCR (IMXRT_CMP1.offset04)
  1084. #define CMP1_MUXCR (IMXRT_CMP1.offset05)
  1085. #define IMXRT_CMP2 (*(IMXRT_REGISTER8_t *)0x40094008)
  1086. #define CMP2_CR0 (IMXRT_CMP2.offset00)
  1087. #define CMP2_CR1 (IMXRT_CMP2.offset01)
  1088. #define CMP2_FPR (IMXRT_CMP2.offset02)
  1089. #define CMP2_SCR (IMXRT_CMP2.offset03)
  1090. #define CMP2_DACCR (IMXRT_CMP2.offset04)
  1091. #define CMP2_MUXCR (IMXRT_CMP2.offset05)
  1092. #define IMXRT_CMP3 (*(IMXRT_REGISTER8_t *)0x40094010)
  1093. #define CMP3_CR0 (IMXRT_CMP3.offset00)
  1094. #define CMP3_CR1 (IMXRT_CMP3.offset01)
  1095. #define CMP3_FPR (IMXRT_CMP3.offset02)
  1096. #define CMP3_SCR (IMXRT_CMP3.offset03)
  1097. #define CMP3_DACCR (IMXRT_CMP3.offset04)
  1098. #define CMP3_MUXCR (IMXRT_CMP3.offset05)
  1099. #define IMXRT_CMP4 (*(IMXRT_REGISTER8_t *)0x40094018)
  1100. #define CMP4_CR0 (IMXRT_CMP4.offset00)
  1101. #define CMP4_CR1 (IMXRT_CMP4.offset01)
  1102. #define CMP4_FPR (IMXRT_CMP4.offset02)
  1103. #define CMP4_SCR (IMXRT_CMP4.offset03)
  1104. #define CMP4_DACCR (IMXRT_CMP4.offset04)
  1105. #define CMP4_MUXCR (IMXRT_CMP4.offset05)
  1106. // page 538
  1107. #define IMXRT_ADC1 (*(IMXRT_REGISTER32_t *)0x400C4000)
  1108. #define ADC1_HC0 (IMXRT_ADC1.offset000)
  1109. #define ADC1_HC1 (IMXRT_ADC1.offset004)
  1110. #define ADC1_HS (IMXRT_ADC1.offset008)
  1111. #define ADC1_R0 (IMXRT_ADC1.offset00C)
  1112. #define ADC1_R1 (IMXRT_ADC1.offset010)
  1113. #define ADC1_CFG (IMXRT_ADC1.offset014)
  1114. #define ADC1_GC (IMXRT_ADC1.offset018)
  1115. #define ADC1_GS (IMXRT_ADC1.offset01C)
  1116. #define ADC1_CV (IMXRT_ADC1.offset020)
  1117. #define ADC1_OFS (IMXRT_ADC1.offset024)
  1118. #define ADC1_CAL (IMXRT_ADC1.offset028)
  1119. // page 552
  1120. #define IMXRT_ADC2 (*(IMXRT_REGISTER32_t *)0x400C8000)
  1121. #define ADC2_HC0 (IMXRT_ADC2.offset000)
  1122. #define ADC2_HC1 (IMXRT_ADC2.offset004)
  1123. #define ADC2_HC2 (IMXRT_ADC2.offset008)
  1124. #define ADC2_HC3 (IMXRT_ADC2.offset00C)
  1125. #define ADC2_HC4 (IMXRT_ADC2.offset010)
  1126. #define ADC2_HS (IMXRT_ADC2.offset014)
  1127. #define ADC2_R0 (IMXRT_ADC2.offset018)
  1128. #define ADC2_R1 (IMXRT_ADC2.offset01C)
  1129. #define ADC2_R2 (IMXRT_ADC2.offset020)
  1130. #define ADC2_R3 (IMXRT_ADC2.offset024)
  1131. #define ADC2_R4 (IMXRT_ADC2.offset028)
  1132. #define ADC2_CFG (IMXRT_ADC2.offset02C)
  1133. #define ADC2_GC (IMXRT_ADC2.offset030)
  1134. #define ADC2_GS (IMXRT_ADC2.offset034)
  1135. #define ADC2_CV (IMXRT_ADC2.offset038)
  1136. #define ADC2_OFS (IMXRT_ADC2.offset03C)
  1137. #define ADC2_CAL (IMXRT_ADC2.offset040)
  1138. // page 891
  1139. #define IMXRT_DMAMUX (*(IMXRT_REGISTER32_t *)0x400EC000)
  1140. #define DMAMUX_CHCFG0 (IMXRT_DMAMUX.offset000)
  1141. #define DMAMUX_CHCFG1 (IMXRT_DMAMUX.offset004)
  1142. #define DMAMUX_CHCFG2 (IMXRT_DMAMUX.offset008)
  1143. #define DMAMUX_CHCFG3 (IMXRT_DMAMUX.offset00C)
  1144. #define DMAMUX_CHCFG4 (IMXRT_DMAMUX.offset010)
  1145. #define DMAMUX_CHCFG5 (IMXRT_DMAMUX.offset014)
  1146. #define DMAMUX_CHCFG6 (IMXRT_DMAMUX.offset018)
  1147. #define DMAMUX_CHCFG7 (IMXRT_DMAMUX.offset01C)
  1148. #define DMAMUX_CHCFG8 (IMXRT_DMAMUX.offset020)
  1149. #define DMAMUX_CHCFG9 (IMXRT_DMAMUX.offset024)
  1150. #define DMAMUX_CHCFG10 (IMXRT_DMAMUX.offset028)
  1151. #define DMAMUX_CHCFG11 (IMXRT_DMAMUX.offset02C)
  1152. #define DMAMUX_CHCFG12 (IMXRT_DMAMUX.offset030)
  1153. #define DMAMUX_CHCFG13 (IMXRT_DMAMUX.offset034)
  1154. #define DMAMUX_CHCFG14 (IMXRT_DMAMUX.offset038)
  1155. #define DMAMUX_CHCFG15 (IMXRT_DMAMUX.offset03C)
  1156. #define DMAMUX_CHCFG16 (IMXRT_DMAMUX.offset040)
  1157. #define DMAMUX_CHCFG17 (IMXRT_DMAMUX.offset044)
  1158. #define DMAMUX_CHCFG18 (IMXRT_DMAMUX.offset048)
  1159. #define DMAMUX_CHCFG19 (IMXRT_DMAMUX.offset04C)
  1160. #define DMAMUX_CHCFG20 (IMXRT_DMAMUX.offset050)
  1161. #define DMAMUX_CHCFG21 (IMXRT_DMAMUX.offset054)
  1162. #define DMAMUX_CHCFG22 (IMXRT_DMAMUX.offset058)
  1163. #define DMAMUX_CHCFG23 (IMXRT_DMAMUX.offset05C)
  1164. #define DMAMUX_CHCFG24 (IMXRT_DMAMUX.offset060)
  1165. #define DMAMUX_CHCFG25 (IMXRT_DMAMUX.offset064)
  1166. #define DMAMUX_CHCFG26 (IMXRT_DMAMUX.offset068)
  1167. #define DMAMUX_CHCFG27 (IMXRT_DMAMUX.offset06C)
  1168. #define DMAMUX_CHCFG28 (IMXRT_DMAMUX.offset070)
  1169. #define DMAMUX_CHCFG29 (IMXRT_DMAMUX.offset074)
  1170. #define DMAMUX_CHCFG30 (IMXRT_DMAMUX.offset078)
  1171. #define DMAMUX_CHCFG31 (IMXRT_DMAMUX.offset07C)
  1172. // page 906
  1173. // TODO: DMA is complicated...
  1174. // page 1063 (offsets are wrong)
  1175. #define IMXRT_ENC1 (*(IMXRT_REGISTER16_t *)0x403C8000)
  1176. #define ENC1_CTRL (IMXRT_ENC1.offset000)
  1177. #define ENC1_FILT (IMXRT_ENC1.offset002)
  1178. #define ENC1_WTR (IMXRT_ENC1.offset004)
  1179. #define ENC1_POSD (IMXRT_ENC1.offset006)
  1180. #define ENC1_POSDH (IMXRT_ENC1.offset008)
  1181. #define ENC1_REV (IMXRT_ENC1.offset00A)
  1182. #define ENC1_REVH (IMXRT_ENC1.offset00C)
  1183. #define ENC1_UPOS (IMXRT_ENC1.offset00E)
  1184. #define ENC1_LPOS (IMXRT_ENC1.offset010)
  1185. #define ENC1_UPOSH (IMXRT_ENC1.offset012)
  1186. #define ENC1_LPOSH (IMXRT_ENC1.offset014)
  1187. #define ENC1_UINIT (IMXRT_ENC1.offset016)
  1188. #define ENC1_LINIT (IMXRT_ENC1.offset018)
  1189. #define ENC1_IMR (IMXRT_ENC1.offset01A)
  1190. #define ENC1_TST (IMXRT_ENC1.offset01C)
  1191. #define ENC1_CTRL2 (IMXRT_ENC1.offset01E)
  1192. #define ENC1_UMOD (IMXRT_ENC1.offset020)
  1193. #define ENC1_LMOD (IMXRT_ENC1.offset022)
  1194. #define ENC1_UCOMP (IMXRT_ENC1.offset024)
  1195. #define ENC1_LCOMP (IMXRT_ENC1.offset026)
  1196. #define IMXRT_ENC2 (*(IMXRT_REGISTER16_t *)0x403CC000)
  1197. #define ENC2_CTRL (IMXRT_ENC2.offset000)
  1198. #define ENC2_FILT (IMXRT_ENC2.offset002)
  1199. #define ENC2_WTR (IMXRT_ENC2.offset004)
  1200. #define ENC2_POSD (IMXRT_ENC2.offset006)
  1201. #define ENC2_POSDH (IMXRT_ENC2.offset008)
  1202. #define ENC2_REV (IMXRT_ENC2.offset00A)
  1203. #define ENC2_REVH (IMXRT_ENC2.offset00C)
  1204. #define ENC2_UPOS (IMXRT_ENC2.offset00E)
  1205. #define ENC2_LPOS (IMXRT_ENC2.offset010)
  1206. #define ENC2_UPOSH (IMXRT_ENC2.offset012)
  1207. #define ENC2_LPOSH (IMXRT_ENC2.offset014)
  1208. #define ENC2_UINIT (IMXRT_ENC2.offset016)
  1209. #define ENC2_LINIT (IMXRT_ENC2.offset018)
  1210. #define ENC2_IMR (IMXRT_ENC2.offset01A)
  1211. #define ENC2_TST (IMXRT_ENC2.offset01C)
  1212. #define ENC2_CTRL2 (IMXRT_ENC2.offset01E)
  1213. #define ENC2_UMOD (IMXRT_ENC2.offset020)
  1214. #define ENC2_LMOD (IMXRT_ENC2.offset022)
  1215. #define ENC2_UCOMP (IMXRT_ENC2.offset024)
  1216. #define ENC2_LCOMP (IMXRT_ENC2.offset026)
  1217. #define IMXRT_ENC3 (*(IMXRT_REGISTER16_t *)0x403D0000)
  1218. #define ENC3_CTRL (IMXRT_ENC3.offset000)
  1219. #define ENC3_FILT (IMXRT_ENC3.offset002)
  1220. #define ENC3_WTR (IMXRT_ENC3.offset004)
  1221. #define ENC3_POSD (IMXRT_ENC3.offset006)
  1222. #define ENC3_POSDH (IMXRT_ENC3.offset008)
  1223. #define ENC3_REV (IMXRT_ENC3.offset00A)
  1224. #define ENC3_REVH (IMXRT_ENC3.offset00C)
  1225. #define ENC3_UPOS (IMXRT_ENC3.offset00E)
  1226. #define ENC3_LPOS (IMXRT_ENC3.offset010)
  1227. #define ENC3_UPOSH (IMXRT_ENC3.offset012)
  1228. #define ENC3_LPOSH (IMXRT_ENC3.offset014)
  1229. #define ENC3_UINIT (IMXRT_ENC3.offset016)
  1230. #define ENC3_LINIT (IMXRT_ENC3.offset018)
  1231. #define ENC3_IMR (IMXRT_ENC3.offset01A)
  1232. #define ENC3_TST (IMXRT_ENC3.offset01C)
  1233. #define ENC3_CTRL2 (IMXRT_ENC3.offset01E)
  1234. #define ENC3_UMOD (IMXRT_ENC3.offset020)
  1235. #define ENC3_LMOD (IMXRT_ENC3.offset022)
  1236. #define ENC3_UCOMP (IMXRT_ENC3.offset024)
  1237. #define ENC3_LCOMP (IMXRT_ENC3.offset026)
  1238. #define IMXRT_ENC4 (*(IMXRT_REGISTER16_t *)0x403D4000)
  1239. #define ENC4_CTRL (IMXRT_ENC4.offset000)
  1240. #define ENC4_FILT (IMXRT_ENC4.offset002)
  1241. #define ENC4_WTR (IMXRT_ENC4.offset004)
  1242. #define ENC4_POSD (IMXRT_ENC4.offset006)
  1243. #define ENC4_POSDH (IMXRT_ENC4.offset008)
  1244. #define ENC4_REV (IMXRT_ENC4.offset00A)
  1245. #define ENC4_REVH (IMXRT_ENC4.offset00C)
  1246. #define ENC4_UPOS (IMXRT_ENC4.offset00E)
  1247. #define ENC4_LPOS (IMXRT_ENC4.offset010)
  1248. #define ENC4_UPOSH (IMXRT_ENC4.offset012)
  1249. #define ENC4_LPOSH (IMXRT_ENC4.offset014)
  1250. #define ENC4_UINIT (IMXRT_ENC4.offset016)
  1251. #define ENC4_LINIT (IMXRT_ENC4.offset018)
  1252. #define ENC4_IMR (IMXRT_ENC4.offset01A)
  1253. #define ENC4_TST (IMXRT_ENC4.offset01C)
  1254. #define ENC4_CTRL2 (IMXRT_ENC4.offset01E)
  1255. #define ENC4_UMOD (IMXRT_ENC4.offset020)
  1256. #define ENC4_LMOD (IMXRT_ENC4.offset022)
  1257. #define ENC4_UCOMP (IMXRT_ENC4.offset024)
  1258. #define ENC4_LCOMP (IMXRT_ENC4.offset026)
  1259. // page 1088
  1260. #define IMXRT_ENET (*(IMXRT_REGISTER32_t *)0x402D8000)
  1261. #define IMXRT_ENET_TIMER (*(IMXRT_REGISTER32_t *)0x402D8400)
  1262. #define ENET_EIR (IMXRT_ENET.offset004)
  1263. #define ENET_EIMR (IMXRT_ENET.offset008)
  1264. #define ENET_RDAR (IMXRT_ENET.offset010)
  1265. #define ENET_TDAR (IMXRT_ENET.offset014)
  1266. #define ENET_ECR (IMXRT_ENET.offset024)
  1267. #define ENET_MMFR (IMXRT_ENET.offset040)
  1268. #define ENET_MSCR (IMXRT_ENET.offset044)
  1269. #define ENET_MIBC (IMXRT_ENET.offset064)
  1270. #define ENET_RCR (IMXRT_ENET.offset084)
  1271. #define ENET_TCR (IMXRT_ENET.offset0C4)
  1272. #define ENET_PALR (IMXRT_ENET.offset0E4)
  1273. #define ENET_PAUR (IMXRT_ENET.offset0E8)
  1274. #define ENET_OPD (IMXRT_ENET.offset0EC)
  1275. #define ENET_TXIC (IMXRT_ENET.offset0F0)
  1276. #define ENET_RXIC (IMXRT_ENET.offset100)
  1277. #define ENET_IAUR (IMXRT_ENET.offset118)
  1278. #define ENET_IALR (IMXRT_ENET.offset11C)
  1279. #define ENET_GAUR (IMXRT_ENET.offset120)
  1280. #define ENET_GALR (IMXRT_ENET.offset124)
  1281. #define ENET_TFWR (IMXRT_ENET.offset144)
  1282. #define ENET_RDSR (IMXRT_ENET.offset180)
  1283. #define ENET_TDSR (IMXRT_ENET.offset184)
  1284. #define ENET_MRBR (IMXRT_ENET.offset188)
  1285. #define ENET_RSFL (IMXRT_ENET.offset190)
  1286. #define ENET_RSEM (IMXRT_ENET.offset194)
  1287. #define ENET_RAEM (IMXRT_ENET.offset198)
  1288. #define ENET_RAFL (IMXRT_ENET.offset19C)
  1289. #define ENET_TSEM (IMXRT_ENET.offset1A0)
  1290. #define ENET_TAEM (IMXRT_ENET.offset1A4)
  1291. #define ENET_TAFL (IMXRT_ENET.offset1A8)
  1292. #define ENET_TIPG (IMXRT_ENET.offset1AC)
  1293. #define ENET_FTRL (IMXRT_ENET.offset1B0)
  1294. #define ENET_TACC (IMXRT_ENET.offset1C0)
  1295. #define ENET_RACC (IMXRT_ENET.offset1C4)
  1296. #define ENET_RMON_T_DROP (IMXRT_ENET.offset200)
  1297. #define ENET_RMON_T_PACKETS (IMXRT_ENET.offset204)
  1298. #define ENET_RMON_T_BC_PKT (IMXRT_ENET.offset208)
  1299. #define ENET_RMON_T_MC_PKT (IMXRT_ENET.offset20C)
  1300. #define ENET_RMON_T_CRC_ALIGN (IMXRT_ENET.offset210)
  1301. #define ENET_RMON_T_UNDERSIZE (IMXRT_ENET.offset214)
  1302. #define ENET_RMON_T_OVERSIZE (IMXRT_ENET.offset218)
  1303. #define ENET_RMON_T_FRAG (IMXRT_ENET.offset21C)
  1304. #define ENET_RMON_T_JAB (IMXRT_ENET.offset220)
  1305. #define ENET_RMON_T_COL (IMXRT_ENET.offset224)
  1306. #define ENET_RMON_T_P64 (IMXRT_ENET.offset228)
  1307. #define ENET_RMON_T_P65TO127 (IMXRT_ENET.offset22C)
  1308. #define ENET_RMON_T_P128TO255 (IMXRT_ENET.offset230)
  1309. #define ENET_RMON_T_P256TO511 (IMXRT_ENET.offset234)
  1310. #define ENET_RMON_T_P512TO1023 (IMXRT_ENET.offset238)
  1311. #define ENET_RMON_T_P1024TO2047 (IMXRT_ENET.offset23C)
  1312. #define ENET_RMON_T_P_GTE2048 (IMXRT_ENET.offset240)
  1313. #define ENET_RMON_T_OCTETS (IMXRT_ENET.offset244)
  1314. #define ENET_IEEE_T_DROP (IMXRT_ENET.offset248)
  1315. #define ENET_IEEE_T_FRAME_OK (IMXRT_ENET.offset24C)
  1316. #define ENET_IEEE_T_1COL (IMXRT_ENET.offset250)
  1317. #define ENET_IEEE_T_MCOL (IMXRT_ENET.offset254)
  1318. #define ENET_IEEE_T_DEF (IMXRT_ENET.offset258)
  1319. #define ENET_IEEE_T_LCOL (IMXRT_ENET.offset25C)
  1320. #define ENET_IEEE_T_EXCOL (IMXRT_ENET.offset260)
  1321. #define ENET_IEEE_T_MACERR (IMXRT_ENET.offset264)
  1322. #define ENET_IEEE_T_CSERR (IMXRT_ENET.offset268)
  1323. #define ENET_IEEE_T_SQE (IMXRT_ENET.offset26C)
  1324. #define ENET_IEEE_T_FDXFC (IMXRT_ENET.offset270)
  1325. #define ENET_IEEE_T_OCTETS_OK (IMXRT_ENET.offset274)
  1326. #define ENET_RMON_R_PACKETS (IMXRT_ENET.offset284)
  1327. #define ENET_RMON_R_BC_PKT (IMXRT_ENET.offset288)
  1328. #define ENET_RMON_R_MC_PKT (IMXRT_ENET.offset28C)
  1329. #define ENET_RMON_R_CRC_ALIGN (IMXRT_ENET.offset290)
  1330. #define ENET_RMON_R_UNDERSIZE (IMXRT_ENET.offset294)
  1331. #define ENET_RMON_R_OVERSIZE (IMXRT_ENET.offset298)
  1332. #define ENET_RMON_R_FRAG (IMXRT_ENET.offset29C)
  1333. #define ENET_RMON_R_JAB (IMXRT_ENET.offset2A0)
  1334. #define ENET_RMON_R_RESVD_0 (IMXRT_ENET.offset2A4)
  1335. #define ENET_RMON_R_P64 (IMXRT_ENET.offset2A8)
  1336. #define ENET_RMON_R_P65TO127 (IMXRT_ENET.offset2AC)
  1337. #define ENET_RMON_R_P128TO255 (IMXRT_ENET.offset2B0)
  1338. #define ENET_RMON_R_P256TO511 (IMXRT_ENET.offset2B4)
  1339. #define ENET_RMON_R_P512TO1023 (IMXRT_ENET.offset2B8)
  1340. #define ENET_RMON_R_P1024TO2047 (IMXRT_ENET.offset2BC)
  1341. #define ENET_RMON_R_P_GTE2048 (IMXRT_ENET.offset2C0)
  1342. #define ENET_RMON_R_OCTETS (IMXRT_ENET.offset2C4)
  1343. #define ENET_IEEE_R_DROP (IMXRT_ENET.offset2C8)
  1344. #define ENET_IEEE_R_FRAME_OK (IMXRT_ENET.offset2CC)
  1345. #define ENET_IEEE_R_CRC (IMXRT_ENET.offset2D0)
  1346. #define ENET_IEEE_R_ALIGN (IMXRT_ENET.offset2D4)
  1347. #define ENET_IEEE_R_MACERR (IMXRT_ENET.offset2D8)
  1348. #define ENET_IEEE_R_FDXFC (IMXRT_ENET.offset2DC)
  1349. #define ENET_IEEE_R_OCTETS_OK (IMXRT_ENET.offset2E0)
  1350. #define ENET_ATCR (IMXRT_ENET_TIMER.offset000)
  1351. #define ENET_ATVR (IMXRT_ENET_TIMER.offset004)
  1352. #define ENET_ATOFF (IMXRT_ENET_TIMER.offset008)
  1353. #define ENET_ATPER (IMXRT_ENET_TIMER.offset00C)
  1354. #define ENET_ATCOR (IMXRT_ENET_TIMER.offset010)
  1355. #define ENET_ATINC (IMXRT_ENET_TIMER.offset014)
  1356. #define ENET_ATSTMP (IMXRT_ENET_TIMER.offset018)
  1357. #define ENET_TGSR (IMXRT_ENET_TIMER.offset204)
  1358. #define ENET_TCSR0 (IMXRT_ENET_TIMER.offset208)
  1359. #define ENET_TCCR0 (IMXRT_ENET_TIMER.offset20C)
  1360. #define ENET_TCSR1 (IMXRT_ENET_TIMER.offset210)
  1361. #define ENET_TCCR1 (IMXRT_ENET_TIMER.offset214)
  1362. #define ENET_TCSR2 (IMXRT_ENET_TIMER.offset218)
  1363. #define ENET_TCCR2 (IMXRT_ENET_TIMER.offset21C)
  1364. #define ENET_TCSR3 (IMXRT_ENET_TIMER.offset220)
  1365. #define ENET_TCCR3 (IMXRT_ENET_TIMER.offset224)
  1366. // page 1226
  1367. #define IMXRT_EWM (*(IMXRT_REGISTER8_t *)0x402D8000)
  1368. #define EWM_CTRL (IMXRT_EWM.offset00)
  1369. #define EWM_SERV (IMXRT_EWM.offset01)
  1370. #define EWM_CMPL (IMXRT_EWM.offset02)
  1371. #define EWM_CMPH (IMXRT_EWM.offset03)
  1372. #define EWM_CLKCTRL (IMXRT_EWM.offset04)
  1373. #define EWM_CLKPRESCALER (IMXRT_EWM.offset05)
  1374. // page 1277
  1375. #define IMXRT_FLEXCAN1 (*(IMXRT_REGISTER32_t *)0x401D0000)
  1376. #define IMXRT_FLEXCAN1_MASK (*(IMXRT_REGISTER32_t *)0x401D0800)
  1377. #define FLEXCAN1_MCR (IMXRT_FLEXCAN1.offset000)
  1378. #define FLEXCAN1_CTRL1 (IMXRT_FLEXCAN1.offset004)
  1379. #define FLEXCAN1_TIMER (IMXRT_FLEXCAN1.offset008)
  1380. #define FLEXCAN1_RXMGMASK (IMXRT_FLEXCAN1.offset010)
  1381. #define FLEXCAN1_RX14MASK (IMXRT_FLEXCAN1.offset014)
  1382. #define FLEXCAN1_RX15MASK (IMXRT_FLEXCAN1.offset018)
  1383. #define FLEXCAN1_ECR (IMXRT_FLEXCAN1.offset01C)
  1384. #define FLEXCAN1_ESR1 (IMXRT_FLEXCAN1.offset020)
  1385. #define FLEXCAN1_IMASK2 (IMXRT_FLEXCAN1.offset024)
  1386. #define FLEXCAN1_IMASK1 (IMXRT_FLEXCAN1.offset028)
  1387. #define FLEXCAN1_IFLAG2 (IMXRT_FLEXCAN1.offset02C)
  1388. #define FLEXCAN1_IFLAG1 (IMXRT_FLEXCAN1.offset030)
  1389. #define FLEXCAN1_CTRL2 (IMXRT_FLEXCAN1.offset034)
  1390. #define FLEXCAN1_ESR2 (IMXRT_FLEXCAN1.offset038)
  1391. #define FLEXCAN1_CRCR (IMXRT_FLEXCAN1.offset044)
  1392. #define FLEXCAN1_RXFGMASK (IMXRT_FLEXCAN1.offset048)
  1393. #define FLEXCAN1_RXFIR (IMXRT_FLEXCAN1.offset04C)
  1394. #define FLEXCAN1_RXIMR0 (IMXRT_FLEXCAN1_MASK.offset080)
  1395. #define FLEXCAN1_RXIMR1 (IMXRT_FLEXCAN1_MASK.offset084)
  1396. #define FLEXCAN1_RXIMR2 (IMXRT_FLEXCAN1_MASK.offset088)
  1397. #define FLEXCAN1_RXIMR3 (IMXRT_FLEXCAN1_MASK.offset08C)
  1398. #define FLEXCAN1_RXIMR4 (IMXRT_FLEXCAN1_MASK.offset090)
  1399. #define FLEXCAN1_RXIMR5 (IMXRT_FLEXCAN1_MASK.offset094)
  1400. #define FLEXCAN1_RXIMR6 (IMXRT_FLEXCAN1_MASK.offset098)
  1401. #define FLEXCAN1_RXIMR7 (IMXRT_FLEXCAN1_MASK.offset09C)
  1402. #define FLEXCAN1_RXIMR8 (IMXRT_FLEXCAN1_MASK.offset0A0)
  1403. #define FLEXCAN1_RXIMR9 (IMXRT_FLEXCAN1_MASK.offset0A4)
  1404. #define FLEXCAN1_RXIMR10 (IMXRT_FLEXCAN1_MASK.offset0A8)
  1405. #define FLEXCAN1_RXIMR11 (IMXRT_FLEXCAN1_MASK.offset0AC)
  1406. #define FLEXCAN1_RXIMR12 (IMXRT_FLEXCAN1_MASK.offset0B0)
  1407. #define FLEXCAN1_RXIMR13 (IMXRT_FLEXCAN1_MASK.offset0B4)
  1408. #define FLEXCAN1_RXIMR14 (IMXRT_FLEXCAN1_MASK.offset0B8)
  1409. #define FLEXCAN1_RXIMR15 (IMXRT_FLEXCAN1_MASK.offset0BC)
  1410. #define FLEXCAN1_RXIMR16 (IMXRT_FLEXCAN1_MASK.offset0C0)
  1411. #define FLEXCAN1_RXIMR17 (IMXRT_FLEXCAN1_MASK.offset0C4)
  1412. #define FLEXCAN1_RXIMR18 (IMXRT_FLEXCAN1_MASK.offset0C8)
  1413. #define FLEXCAN1_RXIMR19 (IMXRT_FLEXCAN1_MASK.offset0CC)
  1414. #define FLEXCAN1_RXIMR20 (IMXRT_FLEXCAN1_MASK.offset0D0)
  1415. #define FLEXCAN1_RXIMR21 (IMXRT_FLEXCAN1_MASK.offset0D4)
  1416. #define FLEXCAN1_RXIMR22 (IMXRT_FLEXCAN1_MASK.offset0D8)
  1417. #define FLEXCAN1_RXIMR23 (IMXRT_FLEXCAN1_MASK.offset0DC)
  1418. #define FLEXCAN1_RXIMR24 (IMXRT_FLEXCAN1_MASK.offset0E0)
  1419. #define FLEXCAN1_RXIMR25 (IMXRT_FLEXCAN1_MASK.offset0E4)
  1420. #define FLEXCAN1_RXIMR26 (IMXRT_FLEXCAN1_MASK.offset0E8)
  1421. #define FLEXCAN1_RXIMR27 (IMXRT_FLEXCAN1_MASK.offset0EC)
  1422. #define FLEXCAN1_RXIMR28 (IMXRT_FLEXCAN1_MASK.offset0F0)
  1423. #define FLEXCAN1_RXIMR29 (IMXRT_FLEXCAN1_MASK.offset0F4)
  1424. #define FLEXCAN1_RXIMR30 (IMXRT_FLEXCAN1_MASK.offset0F8)
  1425. #define FLEXCAN1_RXIMR31 (IMXRT_FLEXCAN1_MASK.offset0FC)
  1426. #define FLEXCAN1_RXIMR32 (IMXRT_FLEXCAN1_MASK.offset100)
  1427. #define FLEXCAN1_RXIMR33 (IMXRT_FLEXCAN1_MASK.offset104)
  1428. #define FLEXCAN1_RXIMR34 (IMXRT_FLEXCAN1_MASK.offset108)
  1429. #define FLEXCAN1_RXIMR35 (IMXRT_FLEXCAN1_MASK.offset10C)
  1430. #define FLEXCAN1_RXIMR36 (IMXRT_FLEXCAN1_MASK.offset110)
  1431. #define FLEXCAN1_RXIMR37 (IMXRT_FLEXCAN1_MASK.offset114)
  1432. #define FLEXCAN1_RXIMR38 (IMXRT_FLEXCAN1_MASK.offset118)
  1433. #define FLEXCAN1_RXIMR39 (IMXRT_FLEXCAN1_MASK.offset11C)
  1434. #define FLEXCAN1_RXIMR40 (IMXRT_FLEXCAN1_MASK.offset120)
  1435. #define FLEXCAN1_RXIMR41 (IMXRT_FLEXCAN1_MASK.offset124)
  1436. #define FLEXCAN1_RXIMR42 (IMXRT_FLEXCAN1_MASK.offset128)
  1437. #define FLEXCAN1_RXIMR43 (IMXRT_FLEXCAN1_MASK.offset12C)
  1438. #define FLEXCAN1_RXIMR44 (IMXRT_FLEXCAN1_MASK.offset130)
  1439. #define FLEXCAN1_RXIMR45 (IMXRT_FLEXCAN1_MASK.offset134)
  1440. #define FLEXCAN1_RXIMR46 (IMXRT_FLEXCAN1_MASK.offset138)
  1441. #define FLEXCAN1_RXIMR47 (IMXRT_FLEXCAN1_MASK.offset13C)
  1442. #define FLEXCAN1_RXIMR48 (IMXRT_FLEXCAN1_MASK.offset140)
  1443. #define FLEXCAN1_RXIMR49 (IMXRT_FLEXCAN1_MASK.offset144)
  1444. #define FLEXCAN1_RXIMR50 (IMXRT_FLEXCAN1_MASK.offset148)
  1445. #define FLEXCAN1_RXIMR51 (IMXRT_FLEXCAN1_MASK.offset14C)
  1446. #define FLEXCAN1_RXIMR52 (IMXRT_FLEXCAN1_MASK.offset150)
  1447. #define FLEXCAN1_RXIMR53 (IMXRT_FLEXCAN1_MASK.offset154)
  1448. #define FLEXCAN1_RXIMR54 (IMXRT_FLEXCAN1_MASK.offset158)
  1449. #define FLEXCAN1_RXIMR55 (IMXRT_FLEXCAN1_MASK.offset15C)
  1450. #define FLEXCAN1_RXIMR56 (IMXRT_FLEXCAN1_MASK.offset160)
  1451. #define FLEXCAN1_RXIMR57 (IMXRT_FLEXCAN1_MASK.offset164)
  1452. #define FLEXCAN1_RXIMR58 (IMXRT_FLEXCAN1_MASK.offset168)
  1453. #define FLEXCAN1_RXIMR59 (IMXRT_FLEXCAN1_MASK.offset16C)
  1454. #define FLEXCAN1_RXIMR60 (IMXRT_FLEXCAN1_MASK.offset170)
  1455. #define FLEXCAN1_RXIMR61 (IMXRT_FLEXCAN1_MASK.offset174)
  1456. #define FLEXCAN1_RXIMR62 (IMXRT_FLEXCAN1_MASK.offset178)
  1457. #define FLEXCAN1_RXIMR63 (IMXRT_FLEXCAN1_MASK.offset17C)
  1458. #define FLEXCAN1_GFWR (IMXRT_FLEXCAN1_MASK.offset1E0)
  1459. #define IMXRT_FLEXCAN2 (*(IMXRT_REGISTER32_t *)0x401D4000)
  1460. #define IMXRT_FLEXCAN2_MASK (*(IMXRT_REGISTER32_t *)0x401D4800)
  1461. #define FLEXCAN2_MCR (IMXRT_FLEXCAN2.offset000)
  1462. #define FLEXCAN2_CTRL1 (IMXRT_FLEXCAN2.offset004)
  1463. #define FLEXCAN2_TIMER (IMXRT_FLEXCAN2.offset008)
  1464. #define FLEXCAN2_RXMGMASK (IMXRT_FLEXCAN2.offset010)
  1465. #define FLEXCAN2_RX14MASK (IMXRT_FLEXCAN2.offset014)
  1466. #define FLEXCAN2_RX15MASK (IMXRT_FLEXCAN2.offset018)
  1467. #define FLEXCAN2_ECR (IMXRT_FLEXCAN2.offset01C)
  1468. #define FLEXCAN2_ESR1 (IMXRT_FLEXCAN2.offset020)
  1469. #define FLEXCAN2_IMASK2 (IMXRT_FLEXCAN2.offset024)
  1470. #define FLEXCAN2_IMASK1 (IMXRT_FLEXCAN2.offset028)
  1471. #define FLEXCAN2_IFLAG2 (IMXRT_FLEXCAN2.offset02C)
  1472. #define FLEXCAN2_IFLAG1 (IMXRT_FLEXCAN2.offset030)
  1473. #define FLEXCAN2_CTRL2 (IMXRT_FLEXCAN2.offset034)
  1474. #define FLEXCAN2_ESR2 (IMXRT_FLEXCAN2.offset038)
  1475. #define FLEXCAN2_CRCR (IMXRT_FLEXCAN2.offset044)
  1476. #define FLEXCAN2_RXFGMASK (IMXRT_FLEXCAN2.offset048)
  1477. #define FLEXCAN2_RXFIR (IMXRT_FLEXCAN2.offset04C)
  1478. #define FLEXCAN2_RXIMR0 (IMXRT_FLEXCAN2_MASK.offset080)
  1479. #define FLEXCAN2_RXIMR1 (IMXRT_FLEXCAN2_MASK.offset084)
  1480. #define FLEXCAN2_RXIMR2 (IMXRT_FLEXCAN2_MASK.offset088)
  1481. #define FLEXCAN2_RXIMR3 (IMXRT_FLEXCAN2_MASK.offset08C)
  1482. #define FLEXCAN2_RXIMR4 (IMXRT_FLEXCAN2_MASK.offset090)
  1483. #define FLEXCAN2_RXIMR5 (IMXRT_FLEXCAN2_MASK.offset094)
  1484. #define FLEXCAN2_RXIMR6 (IMXRT_FLEXCAN2_MASK.offset098)
  1485. #define FLEXCAN2_RXIMR7 (IMXRT_FLEXCAN2_MASK.offset09C)
  1486. #define FLEXCAN2_RXIMR8 (IMXRT_FLEXCAN2_MASK.offset0A0)
  1487. #define FLEXCAN2_RXIMR9 (IMXRT_FLEXCAN2_MASK.offset0A4)
  1488. #define FLEXCAN2_RXIMR10 (IMXRT_FLEXCAN2_MASK.offset0A8)
  1489. #define FLEXCAN2_RXIMR11 (IMXRT_FLEXCAN2_MASK.offset0AC)
  1490. #define FLEXCAN2_RXIMR12 (IMXRT_FLEXCAN2_MASK.offset0B0)
  1491. #define FLEXCAN2_RXIMR13 (IMXRT_FLEXCAN2_MASK.offset0B4)
  1492. #define FLEXCAN2_RXIMR14 (IMXRT_FLEXCAN2_MASK.offset0B8)
  1493. #define FLEXCAN2_RXIMR15 (IMXRT_FLEXCAN2_MASK.offset0BC)
  1494. #define FLEXCAN2_RXIMR16 (IMXRT_FLEXCAN2_MASK.offset0C0)
  1495. #define FLEXCAN2_RXIMR17 (IMXRT_FLEXCAN2_MASK.offset0C4)
  1496. #define FLEXCAN2_RXIMR18 (IMXRT_FLEXCAN2_MASK.offset0C8)
  1497. #define FLEXCAN2_RXIMR19 (IMXRT_FLEXCAN2_MASK.offset0CC)
  1498. #define FLEXCAN2_RXIMR20 (IMXRT_FLEXCAN2_MASK.offset0D0)
  1499. #define FLEXCAN2_RXIMR21 (IMXRT_FLEXCAN2_MASK.offset0D4)
  1500. #define FLEXCAN2_RXIMR22 (IMXRT_FLEXCAN2_MASK.offset0D8)
  1501. #define FLEXCAN2_RXIMR23 (IMXRT_FLEXCAN2_MASK.offset0DC)
  1502. #define FLEXCAN2_RXIMR24 (IMXRT_FLEXCAN2_MASK.offset0E0)
  1503. #define FLEXCAN2_RXIMR25 (IMXRT_FLEXCAN2_MASK.offset0E4)
  1504. #define FLEXCAN2_RXIMR26 (IMXRT_FLEXCAN2_MASK.offset0E8)
  1505. #define FLEXCAN2_RXIMR27 (IMXRT_FLEXCAN2_MASK.offset0EC)
  1506. #define FLEXCAN2_RXIMR28 (IMXRT_FLEXCAN2_MASK.offset0F0)
  1507. #define FLEXCAN2_RXIMR29 (IMXRT_FLEXCAN2_MASK.offset0F4)
  1508. #define FLEXCAN2_RXIMR30 (IMXRT_FLEXCAN2_MASK.offset0F8)
  1509. #define FLEXCAN2_RXIMR31 (IMXRT_FLEXCAN2_MASK.offset0FC)
  1510. #define FLEXCAN2_RXIMR32 (IMXRT_FLEXCAN2_MASK.offset100)
  1511. #define FLEXCAN2_RXIMR33 (IMXRT_FLEXCAN2_MASK.offset104)
  1512. #define FLEXCAN2_RXIMR34 (IMXRT_FLEXCAN2_MASK.offset108)
  1513. #define FLEXCAN2_RXIMR35 (IMXRT_FLEXCAN2_MASK.offset10C)
  1514. #define FLEXCAN2_RXIMR36 (IMXRT_FLEXCAN2_MASK.offset110)
  1515. #define FLEXCAN2_RXIMR37 (IMXRT_FLEXCAN2_MASK.offset114)
  1516. #define FLEXCAN2_RXIMR38 (IMXRT_FLEXCAN2_MASK.offset118)
  1517. #define FLEXCAN2_RXIMR39 (IMXRT_FLEXCAN2_MASK.offset11C)
  1518. #define FLEXCAN2_RXIMR40 (IMXRT_FLEXCAN2_MASK.offset120)
  1519. #define FLEXCAN2_RXIMR41 (IMXRT_FLEXCAN2_MASK.offset124)
  1520. #define FLEXCAN2_RXIMR42 (IMXRT_FLEXCAN2_MASK.offset128)
  1521. #define FLEXCAN2_RXIMR43 (IMXRT_FLEXCAN2_MASK.offset12C)
  1522. #define FLEXCAN2_RXIMR44 (IMXRT_FLEXCAN2_MASK.offset130)
  1523. #define FLEXCAN2_RXIMR45 (IMXRT_FLEXCAN2_MASK.offset134)
  1524. #define FLEXCAN2_RXIMR46 (IMXRT_FLEXCAN2_MASK.offset138)
  1525. #define FLEXCAN2_RXIMR47 (IMXRT_FLEXCAN2_MASK.offset13C)
  1526. #define FLEXCAN2_RXIMR48 (IMXRT_FLEXCAN2_MASK.offset140)
  1527. #define FLEXCAN2_RXIMR49 (IMXRT_FLEXCAN2_MASK.offset144)
  1528. #define FLEXCAN2_RXIMR50 (IMXRT_FLEXCAN2_MASK.offset148)
  1529. #define FLEXCAN2_RXIMR51 (IMXRT_FLEXCAN2_MASK.offset14C)
  1530. #define FLEXCAN2_RXIMR52 (IMXRT_FLEXCAN2_MASK.offset150)
  1531. #define FLEXCAN2_RXIMR53 (IMXRT_FLEXCAN2_MASK.offset154)
  1532. #define FLEXCAN2_RXIMR54 (IMXRT_FLEXCAN2_MASK.offset158)
  1533. #define FLEXCAN2_RXIMR55 (IMXRT_FLEXCAN2_MASK.offset15C)
  1534. #define FLEXCAN2_RXIMR56 (IMXRT_FLEXCAN2_MASK.offset160)
  1535. #define FLEXCAN2_RXIMR57 (IMXRT_FLEXCAN2_MASK.offset164)
  1536. #define FLEXCAN2_RXIMR58 (IMXRT_FLEXCAN2_MASK.offset168)
  1537. #define FLEXCAN2_RXIMR59 (IMXRT_FLEXCAN2_MASK.offset16C)
  1538. #define FLEXCAN2_RXIMR60 (IMXRT_FLEXCAN2_MASK.offset170)
  1539. #define FLEXCAN2_RXIMR61 (IMXRT_FLEXCAN2_MASK.offset174)
  1540. #define FLEXCAN2_RXIMR62 (IMXRT_FLEXCAN2_MASK.offset178)
  1541. #define FLEXCAN2_RXIMR63 (IMXRT_FLEXCAN2_MASK.offset17C)
  1542. #define FLEXCAN2_GFWR (IMXRT_FLEXCAN2_MASK.offset1E0)
  1543. // page 1320
  1544. #define IMXRT_FLEXIO1 (*(IMXRT_REGISTER32_t *)0x401AC000)
  1545. #define IMXRT_FLEXIO1_b (*(IMXRT_REGISTER32_t *)0x401AC400)
  1546. #define FLEXIO1_VERID (IMXRT_FLEXIO1.offset000)
  1547. #define FLEXIO1_PARAM (IMXRT_FLEXIO1.offset004)
  1548. #define FLEXIO1_CTRL (IMXRT_FLEXIO1.offset008)
  1549. #define FLEXIO1_PIN (IMXRT_FLEXIO1.offset00C)
  1550. #define FLEXIO1_SHIFTSTAT (IMXRT_FLEXIO1.offset010)
  1551. #define FLEXIO1_SHIFTERR (IMXRT_FLEXIO1.offset014)
  1552. #define FLEXIO1_TIMSTAT (IMXRT_FLEXIO1.offset018)
  1553. #define FLEXIO1_SHIFTSIEN (IMXRT_FLEXIO1.offset020)
  1554. #define FLEXIO1_SHIFTEIEN (IMXRT_FLEXIO1.offset024)
  1555. #define FLEXIO1_TIMIEN (IMXRT_FLEXIO1.offset028)
  1556. #define FLEXIO1_SHIFTSDEN (IMXRT_FLEXIO1.offset030)
  1557. #define FLEXIO1_SHIFTSTATE (IMXRT_FLEXIO1.offset040)
  1558. #define FLEXIO1_SHIFTCTL0 (IMXRT_FLEXIO1.offset080)
  1559. #define FLEXIO1_SHIFTCTL1 (IMXRT_FLEXIO1.offset084)
  1560. #define FLEXIO1_SHIFTCTL2 (IMXRT_FLEXIO1.offset088)
  1561. #define FLEXIO1_SHIFTCTL3 (IMXRT_FLEXIO1.offset08C)
  1562. #define FLEXIO1_SHIFTCFG0 (IMXRT_FLEXIO1.offset100)
  1563. #define FLEXIO1_SHIFTCFG1 (IMXRT_FLEXIO1.offset104)
  1564. #define FLEXIO1_SHIFTCFG2 (IMXRT_FLEXIO1.offset108)
  1565. #define FLEXIO1_SHIFTCFG3 (IMXRT_FLEXIO1.offset10C)
  1566. #define FLEXIO1_SHIFTBUF0 (IMXRT_FLEXIO1.offset200)
  1567. #define FLEXIO1_SHIFTBUF1 (IMXRT_FLEXIO1.offset204)
  1568. #define FLEXIO1_SHIFTBUF2 (IMXRT_FLEXIO1.offset208)
  1569. #define FLEXIO1_SHIFTBUF3 (IMXRT_FLEXIO1.offset20C)
  1570. #define FLEXIO1_SHIFTBUFBIS0 (IMXRT_FLEXIO1.offset280)
  1571. #define FLEXIO1_SHIFTBUFBIS1 (IMXRT_FLEXIO1.offset284)
  1572. #define FLEXIO1_SHIFTBUFBIS2 (IMXRT_FLEXIO1.offset288)
  1573. #define FLEXIO1_SHIFTBUFBIS3 (IMXRT_FLEXIO1.offset28C)
  1574. #define FLEXIO1_SHIFTBUFBYS0 (IMXRT_FLEXIO1.offset300)
  1575. #define FLEXIO1_SHIFTBUFBYS1 (IMXRT_FLEXIO1.offset304)
  1576. #define FLEXIO1_SHIFTBUFBYS2 (IMXRT_FLEXIO1.offset308)
  1577. #define FLEXIO1_SHIFTBUFBYS3 (IMXRT_FLEXIO1.offset30C)
  1578. #define FLEXIO1_SHIFTBUFBBS0 (IMXRT_FLEXIO1.offset380)
  1579. #define FLEXIO1_SHIFTBUFBBS1 (IMXRT_FLEXIO1.offset384)
  1580. #define FLEXIO1_SHIFTBUFBBS2 (IMXRT_FLEXIO1.offset388)
  1581. #define FLEXIO1_SHIFTBUFBBS3 (IMXRT_FLEXIO1.offset38C)
  1582. #define FLEXIO1_TIMCTL0 (IMXRT_FLEXIO1_b.offset000)
  1583. #define FLEXIO1_TIMCTL1 (IMXRT_FLEXIO1_b.offset004)
  1584. #define FLEXIO1_TIMCTL2 (IMXRT_FLEXIO1_b.offset008)
  1585. #define FLEXIO1_TIMCTL3 (IMXRT_FLEXIO1_b.offset00C)
  1586. #define FLEXIO1_TIMCFG0 (IMXRT_FLEXIO1_b.offset080)
  1587. #define FLEXIO1_TIMCFG1 (IMXRT_FLEXIO1_b.offset084)
  1588. #define FLEXIO1_TIMCFG2 (IMXRT_FLEXIO1_b.offset088)
  1589. #define FLEXIO1_TIMCFG3 (IMXRT_FLEXIO1_b.offset08C)
  1590. #define FLEXIO1_TIMCMP0 (IMXRT_FLEXIO1_b.offset100)
  1591. #define FLEXIO1_TIMCMP1 (IMXRT_FLEXIO1_b.offset104)
  1592. #define FLEXIO1_TIMCMP2 (IMXRT_FLEXIO1_b.offset108)
  1593. #define FLEXIO1_TIMCMP3 (IMXRT_FLEXIO1_b.offset10C)
  1594. #define FLEXIO1_SHIFTBUFNBS0 (IMXRT_FLEXIO1_b.offset280)
  1595. #define FLEXIO1_SHIFTBUFNBS1 (IMXRT_FLEXIO1_b.offset284)
  1596. #define FLEXIO1_SHIFTBUFNBS2 (IMXRT_FLEXIO1_b.offset288)
  1597. #define FLEXIO1_SHIFTBUFNBS3 (IMXRT_FLEXIO1_b.offset28C)
  1598. #define FLEXIO1_SHIFTBUFHWS0 (IMXRT_FLEXIO1_b.offset300)
  1599. #define FLEXIO1_SHIFTBUFHWS1 (IMXRT_FLEXIO1_b.offset304)
  1600. #define FLEXIO1_SHIFTBUFHWS2 (IMXRT_FLEXIO1_b.offset308)
  1601. #define FLEXIO1_SHIFTBUFHWS3 (IMXRT_FLEXIO1_b.offset30C)
  1602. #define FLEXIO1_SHIFTBUFNIS0 (IMXRT_FLEXIO1_b.offset380)
  1603. #define FLEXIO1_SHIFTBUFNIS1 (IMXRT_FLEXIO1_b.offset384)
  1604. #define FLEXIO1_SHIFTBUFNIS2 (IMXRT_FLEXIO1_b.offset388)
  1605. #define FLEXIO1_SHIFTBUFNIS3 (IMXRT_FLEXIO1_b.offset38C)
  1606. #define IMXRT_FLEXIO2 (*(IMXRT_REGISTER32_t *)0x401B0000)
  1607. #define IMXRT_FLEXIO2_b (*(IMXRT_REGISTER32_t *)0x401B0400)
  1608. #define FLEXIO2_VERID (IMXRT_FLEXIO2.offset000)
  1609. #define FLEXIO2_PARAM (IMXRT_FLEXIO2.offset004)
  1610. #define FLEXIO2_CTRL (IMXRT_FLEXIO2.offset008)
  1611. #define FLEXIO2_PIN (IMXRT_FLEXIO2.offset00C)
  1612. #define FLEXIO2_SHIFTSTAT (IMXRT_FLEXIO2.offset010)
  1613. #define FLEXIO2_SHIFTERR (IMXRT_FLEXIO2.offset014)
  1614. #define FLEXIO2_TIMSTAT (IMXRT_FLEXIO2.offset018)
  1615. #define FLEXIO2_SHIFTSIEN (IMXRT_FLEXIO2.offset020)
  1616. #define FLEXIO2_SHIFTEIEN (IMXRT_FLEXIO2.offset024)
  1617. #define FLEXIO2_TIMIEN (IMXRT_FLEXIO2.offset028)
  1618. #define FLEXIO2_SHIFTSDEN (IMXRT_FLEXIO2.offset030)
  1619. #define FLEXIO2_SHIFTSTATE (IMXRT_FLEXIO2.offset040)
  1620. #define FLEXIO2_SHIFTCTL0 (IMXRT_FLEXIO2.offset080)
  1621. #define FLEXIO2_SHIFTCTL1 (IMXRT_FLEXIO2.offset084)
  1622. #define FLEXIO2_SHIFTCTL2 (IMXRT_FLEXIO2.offset088)
  1623. #define FLEXIO2_SHIFTCTL3 (IMXRT_FLEXIO2.offset08C)
  1624. #define FLEXIO2_SHIFTCFG0 (IMXRT_FLEXIO2.offset100)
  1625. #define FLEXIO2_SHIFTCFG1 (IMXRT_FLEXIO2.offset104)
  1626. #define FLEXIO2_SHIFTCFG2 (IMXRT_FLEXIO2.offset108)
  1627. #define FLEXIO2_SHIFTCFG3 (IMXRT_FLEXIO2.offset10C)
  1628. #define FLEXIO2_SHIFTBUF0 (IMXRT_FLEXIO2.offset200)
  1629. #define FLEXIO2_SHIFTBUF1 (IMXRT_FLEXIO2.offset204)
  1630. #define FLEXIO2_SHIFTBUF2 (IMXRT_FLEXIO2.offset208)
  1631. #define FLEXIO2_SHIFTBUF3 (IMXRT_FLEXIO2.offset20C)
  1632. #define FLEXIO2_SHIFTBUFBIS0 (IMXRT_FLEXIO2.offset280)
  1633. #define FLEXIO2_SHIFTBUFBIS1 (IMXRT_FLEXIO2.offset284)
  1634. #define FLEXIO2_SHIFTBUFBIS2 (IMXRT_FLEXIO2.offset288)
  1635. #define FLEXIO2_SHIFTBUFBIS3 (IMXRT_FLEXIO2.offset28C)
  1636. #define FLEXIO2_SHIFTBUFBYS0 (IMXRT_FLEXIO2.offset300)
  1637. #define FLEXIO2_SHIFTBUFBYS1 (IMXRT_FLEXIO2.offset304)
  1638. #define FLEXIO2_SHIFTBUFBYS2 (IMXRT_FLEXIO2.offset308)
  1639. #define FLEXIO2_SHIFTBUFBYS3 (IMXRT_FLEXIO2.offset30C)
  1640. #define FLEXIO2_SHIFTBUFBBS0 (IMXRT_FLEXIO2.offset380)
  1641. #define FLEXIO2_SHIFTBUFBBS1 (IMXRT_FLEXIO2.offset384)
  1642. #define FLEXIO2_SHIFTBUFBBS2 (IMXRT_FLEXIO2.offset388)
  1643. #define FLEXIO2_SHIFTBUFBBS3 (IMXRT_FLEXIO2.offset38C)
  1644. #define FLEXIO2_TIMCTL0 (IMXRT_FLEXIO2_b.offset000)
  1645. #define FLEXIO2_TIMCTL1 (IMXRT_FLEXIO2_b.offset004)
  1646. #define FLEXIO2_TIMCTL2 (IMXRT_FLEXIO2_b.offset008)
  1647. #define FLEXIO2_TIMCTL3 (IMXRT_FLEXIO2_b.offset00C)
  1648. #define FLEXIO2_TIMCFG0 (IMXRT_FLEXIO2_b.offset080)
  1649. #define FLEXIO2_TIMCFG1 (IMXRT_FLEXIO2_b.offset084)
  1650. #define FLEXIO2_TIMCFG2 (IMXRT_FLEXIO2_b.offset088)
  1651. #define FLEXIO2_TIMCFG3 (IMXRT_FLEXIO2_b.offset08C)
  1652. #define FLEXIO2_TIMCMP0 (IMXRT_FLEXIO2_b.offset100)
  1653. #define FLEXIO2_TIMCMP1 (IMXRT_FLEXIO2_b.offset104)
  1654. #define FLEXIO2_TIMCMP2 (IMXRT_FLEXIO2_b.offset108)
  1655. #define FLEXIO2_TIMCMP3 (IMXRT_FLEXIO2_b.offset10C)
  1656. #define FLEXIO2_SHIFTBUFNBS0 (IMXRT_FLEXIO2_b.offset280)
  1657. #define FLEXIO2_SHIFTBUFNBS1 (IMXRT_FLEXIO2_b.offset284)
  1658. #define FLEXIO2_SHIFTBUFNBS2 (IMXRT_FLEXIO2_b.offset288)
  1659. #define FLEXIO2_SHIFTBUFNBS3 (IMXRT_FLEXIO2_b.offset28C)
  1660. #define FLEXIO2_SHIFTBUFHWS0 (IMXRT_FLEXIO2_b.offset300)
  1661. #define FLEXIO2_SHIFTBUFHWS1 (IMXRT_FLEXIO2_b.offset304)
  1662. #define FLEXIO2_SHIFTBUFHWS2 (IMXRT_FLEXIO2_b.offset308)
  1663. #define FLEXIO2_SHIFTBUFHWS3 (IMXRT_FLEXIO2_b.offset30C)
  1664. #define FLEXIO2_SHIFTBUFNIS0 (IMXRT_FLEXIO2_b.offset380)
  1665. #define FLEXIO2_SHIFTBUFNIS1 (IMXRT_FLEXIO2_b.offset384)
  1666. #define FLEXIO2_SHIFTBUFNIS2 (IMXRT_FLEXIO2_b.offset388)
  1667. #define FLEXIO2_SHIFTBUFNIS3 (IMXRT_FLEXIO2_b.offset38C)
  1668. // page 1382
  1669. #define IMXRT_FLEXPWM1 (*(IMXRT_REGISTER16_t *)0x403DC000)
  1670. #define FLEXPWM1_SM0CNT (IMXRT_FLEXPWM1.offset000)
  1671. #define FLEXPWM1_SM0INIT (IMXRT_FLEXPWM1.offset002)
  1672. #define FLEXPWM1_SM0CTRL2 (IMXRT_FLEXPWM1.offset004)
  1673. #define FLEXPWM1_SM0CTRL (IMXRT_FLEXPWM1.offset006)
  1674. #define FLEXPWM1_SM0VAL0 (IMXRT_FLEXPWM1.offset008)
  1675. #define FLEXPWM1_SM0FRACVAL1 (IMXRT_FLEXPWM1.offset00A)
  1676. #define FLEXPWM1_SM0VAL1 (IMXRT_FLEXPWM1.offset00C)
  1677. #define FLEXPWM1_SM0FRACVAL2 (IMXRT_FLEXPWM1.offset00E)
  1678. #define FLEXPWM1_SM0VAL2 (IMXRT_FLEXPWM1.offset010)
  1679. #define FLEXPWM1_SM0FRACVAL3 (IMXRT_FLEXPWM1.offset012)
  1680. #define FLEXPWM1_SM0VAL3 (IMXRT_FLEXPWM1.offset014)
  1681. #define FLEXPWM1_SM0FRACVAL4 (IMXRT_FLEXPWM1.offset016)
  1682. #define FLEXPWM1_SM0VAL4 (IMXRT_FLEXPWM1.offset018)
  1683. #define FLEXPWM1_SM0FRACVAL5 (IMXRT_FLEXPWM1.offset01A)
  1684. #define FLEXPWM1_SM0VAL5 (IMXRT_FLEXPWM1.offset01C)
  1685. #define FLEXPWM1_SM0FRCTRL (IMXRT_FLEXPWM1.offset01E)
  1686. #define FLEXPWM1_SM0OCTRL (IMXRT_FLEXPWM1.offset020)
  1687. #define FLEXPWM1_SM0STS (IMXRT_FLEXPWM1.offset022)
  1688. #define FLEXPWM1_SM0INTEN (IMXRT_FLEXPWM1.offset024)
  1689. #define FLEXPWM1_SM0DMAEN (IMXRT_FLEXPWM1.offset026)
  1690. #define FLEXPWM1_SM0TCTRL (IMXRT_FLEXPWM1.offset028)
  1691. #define FLEXPWM1_SM0DISMAP0 (IMXRT_FLEXPWM1.offset02A)
  1692. #define FLEXPWM1_SM0DISMAP1 (IMXRT_FLEXPWM1.offset02C)
  1693. #define FLEXPWM1_SM0DTCNT0 (IMXRT_FLEXPWM1.offset02E)
  1694. #define FLEXPWM1_SM0DTCNT1 (IMXRT_FLEXPWM1.offset030)
  1695. #define FLEXPWM1_SM0CAPTCTRLA (IMXRT_FLEXPWM1.offset032)
  1696. #define FLEXPWM1_SM0CAPTCOMPA (IMXRT_FLEXPWM1.offset034)
  1697. #define FLEXPWM1_SM0CAPTCTRLB (IMXRT_FLEXPWM1.offset036)
  1698. #define FLEXPWM1_SM0CAPTCOMPB (IMXRT_FLEXPWM1.offset038)
  1699. #define FLEXPWM1_SM0CAPTCTRLX (IMXRT_FLEXPWM1.offset03A)
  1700. #define FLEXPWM1_SM0CAPTCOMPX (IMXRT_FLEXPWM1.offset03C)
  1701. #define FLEXPWM1_SM0CVAL0 (IMXRT_FLEXPWM1.offset03E)
  1702. #define FLEXPWM1_SM0CVAL0CYC (IMXRT_FLEXPWM1.offset040)
  1703. #define FLEXPWM1_SM0CVAL1 (IMXRT_FLEXPWM1.offset042)
  1704. #define FLEXPWM1_SM0CVAL1CYC (IMXRT_FLEXPWM1.offset044)
  1705. #define FLEXPWM1_SM0CVAL2 (IMXRT_FLEXPWM1.offset046)
  1706. #define FLEXPWM1_SM0CVAL2CYC (IMXRT_FLEXPWM1.offset048)
  1707. #define FLEXPWM1_SM0CVAL3 (IMXRT_FLEXPWM1.offset04A)
  1708. #define FLEXPWM1_SM0CVAL3CYC (IMXRT_FLEXPWM1.offset04C)
  1709. #define FLEXPWM1_SM0CVAL4 (IMXRT_FLEXPWM1.offset04E)
  1710. #define FLEXPWM1_SM0CVAL4CYC (IMXRT_FLEXPWM1.offset050)
  1711. #define FLEXPWM1_SM0CVAL5 (IMXRT_FLEXPWM1.offset052)
  1712. #define FLEXPWM1_SM0CVAL5CYC (IMXRT_FLEXPWM1.offset054)
  1713. #define FLEXPWM1_SM1CNT (IMXRT_FLEXPWM1.offset060)
  1714. #define FLEXPWM1_SM1INIT (IMXRT_FLEXPWM1.offset062)
  1715. #define FLEXPWM1_SM1CTRL2 (IMXRT_FLEXPWM1.offset064)
  1716. #define FLEXPWM1_SM1CTRL (IMXRT_FLEXPWM1.offset066)
  1717. #define FLEXPWM1_SM1VAL0 (IMXRT_FLEXPWM1.offset068)
  1718. #define FLEXPWM1_SM1FRACVAL1 (IMXRT_FLEXPWM1.offset06A)
  1719. #define FLEXPWM1_SM1VAL1 (IMXRT_FLEXPWM1.offset06C)
  1720. #define FLEXPWM1_SM1FRACVAL2 (IMXRT_FLEXPWM1.offset06E)
  1721. #define FLEXPWM1_SM1VAL2 (IMXRT_FLEXPWM1.offset070)
  1722. #define FLEXPWM1_SM1FRACVAL3 (IMXRT_FLEXPWM1.offset072)
  1723. #define FLEXPWM1_SM1VAL3 (IMXRT_FLEXPWM1.offset074)
  1724. #define FLEXPWM1_SM1FRACVAL4 (IMXRT_FLEXPWM1.offset076)
  1725. #define FLEXPWM1_SM1VAL4 (IMXRT_FLEXPWM1.offset078)
  1726. #define FLEXPWM1_SM1FRACVAL5 (IMXRT_FLEXPWM1.offset07A)
  1727. #define FLEXPWM1_SM1VAL5 (IMXRT_FLEXPWM1.offset07C)
  1728. #define FLEXPWM1_SM1FRCTRL (IMXRT_FLEXPWM1.offset07E)
  1729. #define FLEXPWM1_SM1OCTRL (IMXRT_FLEXPWM1.offset080)
  1730. #define FLEXPWM1_SM1STS (IMXRT_FLEXPWM1.offset082)
  1731. #define FLEXPWM1_SM1INTEN (IMXRT_FLEXPWM1.offset084)
  1732. #define FLEXPWM1_SM1DMAEN (IMXRT_FLEXPWM1.offset086)
  1733. #define FLEXPWM1_SM1TCTRL (IMXRT_FLEXPWM1.offset088)
  1734. #define FLEXPWM1_SM1DISMAP0 (IMXRT_FLEXPWM1.offset08A)
  1735. #define FLEXPWM1_SM1DISMAP1 (IMXRT_FLEXPWM1.offset08C)
  1736. #define FLEXPWM1_SM1DTCNT0 (IMXRT_FLEXPWM1.offset08E)
  1737. #define FLEXPWM1_SM1DTCNT1 (IMXRT_FLEXPWM1.offset090)
  1738. #define FLEXPWM1_SM1CAPTCTRLA (IMXRT_FLEXPWM1.offset092)
  1739. #define FLEXPWM1_SM1CAPTCOMPA (IMXRT_FLEXPWM1.offset094)
  1740. #define FLEXPWM1_SM1CAPTCTRLB (IMXRT_FLEXPWM1.offset096)
  1741. #define FLEXPWM1_SM1CAPTCOMPB (IMXRT_FLEXPWM1.offset098)
  1742. #define FLEXPWM1_SM1CAPTCTRLX (IMXRT_FLEXPWM1.offset09A)
  1743. #define FLEXPWM1_SM1CAPTCOMPX (IMXRT_FLEXPWM1.offset09C)
  1744. #define FLEXPWM1_SM1CVAL0 (IMXRT_FLEXPWM1.offset09E)
  1745. #define FLEXPWM1_SM1CVAL0CYC (IMXRT_FLEXPWM1.offset0A0)
  1746. #define FLEXPWM1_SM1CVAL1 (IMXRT_FLEXPWM1.offset0A2)
  1747. #define FLEXPWM1_SM1CVAL1CYC (IMXRT_FLEXPWM1.offset0A4)
  1748. #define FLEXPWM1_SM1CVAL2 (IMXRT_FLEXPWM1.offset0A6)
  1749. #define FLEXPWM1_SM1CVAL2CYC (IMXRT_FLEXPWM1.offset0A8)
  1750. #define FLEXPWM1_SM1CVAL3 (IMXRT_FLEXPWM1.offset0AA)
  1751. #define FLEXPWM1_SM1CVAL3CYC (IMXRT_FLEXPWM1.offset0AC)
  1752. #define FLEXPWM1_SM1CVAL4 (IMXRT_FLEXPWM1.offset0AE)
  1753. #define FLEXPWM1_SM1CVAL4CYC (IMXRT_FLEXPWM1.offset0B0)
  1754. #define FLEXPWM1_SM1CVAL5 (IMXRT_FLEXPWM1.offset0B2)
  1755. #define FLEXPWM1_SM1CVAL5CYC (IMXRT_FLEXPWM1.offset0B4)
  1756. #define FLEXPWM1_SM2CNT (IMXRT_FLEXPWM1.offset0C0)
  1757. #define FLEXPWM1_SM2INIT (IMXRT_FLEXPWM1.offset0C2)
  1758. #define FLEXPWM1_SM2CTRL2 (IMXRT_FLEXPWM1.offset0C4)
  1759. #define FLEXPWM1_SM2CTRL (IMXRT_FLEXPWM1.offset0C6)
  1760. #define FLEXPWM1_SM2VAL0 (IMXRT_FLEXPWM1.offset0C8)
  1761. #define FLEXPWM1_SM2FRACVAL1 (IMXRT_FLEXPWM1.offset0CA)
  1762. #define FLEXPWM1_SM2VAL1 (IMXRT_FLEXPWM1.offset0CC)
  1763. #define FLEXPWM1_SM2FRACVAL2 (IMXRT_FLEXPWM1.offset0CE)
  1764. #define FLEXPWM1_SM2VAL2 (IMXRT_FLEXPWM1.offset0D0)
  1765. #define FLEXPWM1_SM2FRACVAL3 (IMXRT_FLEXPWM1.offset0D2)
  1766. #define FLEXPWM1_SM2VAL3 (IMXRT_FLEXPWM1.offset0D4)
  1767. #define FLEXPWM1_SM2FRACVAL4 (IMXRT_FLEXPWM1.offset0D6)
  1768. #define FLEXPWM1_SM2VAL4 (IMXRT_FLEXPWM1.offset0D8)
  1769. #define FLEXPWM1_SM2FRACVAL5 (IMXRT_FLEXPWM1.offset0DA)
  1770. #define FLEXPWM1_SM2VAL5 (IMXRT_FLEXPWM1.offset0DC)
  1771. #define FLEXPWM1_SM2FRCTRL (IMXRT_FLEXPWM1.offset0DE)
  1772. #define FLEXPWM1_SM2OCTRL (IMXRT_FLEXPWM1.offset0E0)
  1773. #define FLEXPWM1_SM2STS (IMXRT_FLEXPWM1.offset0E2)
  1774. #define FLEXPWM1_SM2INTEN (IMXRT_FLEXPWM1.offset0E4)
  1775. #define FLEXPWM1_SM2DMAEN (IMXRT_FLEXPWM1.offset0E6)
  1776. #define FLEXPWM1_SM2TCTRL (IMXRT_FLEXPWM1.offset0E8)
  1777. #define FLEXPWM1_SM2DISMAP0 (IMXRT_FLEXPWM1.offset0EA)
  1778. #define FLEXPWM1_SM2DISMAP1 (IMXRT_FLEXPWM1.offset0EC)
  1779. #define FLEXPWM1_SM2DTCNT0 (IMXRT_FLEXPWM1.offset0EE)
  1780. #define FLEXPWM1_SM2DTCNT1 (IMXRT_FLEXPWM1.offset0F0)
  1781. #define FLEXPWM1_SM2CAPTCTRLA (IMXRT_FLEXPWM1.offset0F2)
  1782. #define FLEXPWM1_SM2CAPTCOMPA (IMXRT_FLEXPWM1.offset0F4)
  1783. #define FLEXPWM1_SM2CAPTCTRLB (IMXRT_FLEXPWM1.offset0F6)
  1784. #define FLEXPWM1_SM2CAPTCOMPB (IMXRT_FLEXPWM1.offset0F8)
  1785. #define FLEXPWM1_SM2CAPTCTRLX (IMXRT_FLEXPWM1.offset0FA)
  1786. #define FLEXPWM1_SM2CAPTCOMPX (IMXRT_FLEXPWM1.offset0FC)
  1787. #define FLEXPWM1_SM2CVAL0 (IMXRT_FLEXPWM1.offset0FE)
  1788. #define FLEXPWM1_SM2CVAL0CYC (IMXRT_FLEXPWM1.offset100)
  1789. #define FLEXPWM1_SM2CVAL1 (IMXRT_FLEXPWM1.offset102)
  1790. #define FLEXPWM1_SM2CVAL1CYC (IMXRT_FLEXPWM1.offset104)
  1791. #define FLEXPWM1_SM2CVAL2 (IMXRT_FLEXPWM1.offset106)
  1792. #define FLEXPWM1_SM2CVAL2CYC (IMXRT_FLEXPWM1.offset108)
  1793. #define FLEXPWM1_SM2CVAL3 (IMXRT_FLEXPWM1.offset10A)
  1794. #define FLEXPWM1_SM2CVAL3CYC (IMXRT_FLEXPWM1.offset10C)
  1795. #define FLEXPWM1_SM2CVAL4 (IMXRT_FLEXPWM1.offset10E)
  1796. #define FLEXPWM1_SM2CVAL4CYC (IMXRT_FLEXPWM1.offset110)
  1797. #define FLEXPWM1_SM2CVAL5 (IMXRT_FLEXPWM1.offset112)
  1798. #define FLEXPWM1_SM2CVAL5CYC (IMXRT_FLEXPWM1.offset114)
  1799. #define FLEXPWM1_SM3CNT (IMXRT_FLEXPWM1.offset120)
  1800. #define FLEXPWM1_SM3INIT (IMXRT_FLEXPWM1.offset122)
  1801. #define FLEXPWM1_SM3CTRL2 (IMXRT_FLEXPWM1.offset124)
  1802. #define FLEXPWM1_SM3CTRL (IMXRT_FLEXPWM1.offset126)
  1803. #define FLEXPWM1_SM3VAL0 (IMXRT_FLEXPWM1.offset128)
  1804. #define FLEXPWM1_SM3FRACVAL1 (IMXRT_FLEXPWM1.offset12A)
  1805. #define FLEXPWM1_SM3VAL1 (IMXRT_FLEXPWM1.offset12C)
  1806. #define FLEXPWM1_SM3FRACVAL2 (IMXRT_FLEXPWM1.offset12E)
  1807. #define FLEXPWM1_SM3VAL2 (IMXRT_FLEXPWM1.offset130)
  1808. #define FLEXPWM1_SM3FRACVAL3 (IMXRT_FLEXPWM1.offset132)
  1809. #define FLEXPWM1_SM3VAL3 (IMXRT_FLEXPWM1.offset134)
  1810. #define FLEXPWM1_SM3FRACVAL4 (IMXRT_FLEXPWM1.offset136)
  1811. #define FLEXPWM1_SM3VAL4 (IMXRT_FLEXPWM1.offset138)
  1812. #define FLEXPWM1_SM3FRACVAL5 (IMXRT_FLEXPWM1.offset13A)
  1813. #define FLEXPWM1_SM3VAL5 (IMXRT_FLEXPWM1.offset13C)
  1814. #define FLEXPWM1_SM3FRCTRL (IMXRT_FLEXPWM1.offset13E)
  1815. #define FLEXPWM1_SM3OCTRL (IMXRT_FLEXPWM1.offset140)
  1816. #define FLEXPWM1_SM3STS (IMXRT_FLEXPWM1.offset142)
  1817. #define FLEXPWM1_SM3INTEN (IMXRT_FLEXPWM1.offset144)
  1818. #define FLEXPWM1_SM3DMAEN (IMXRT_FLEXPWM1.offset146)
  1819. #define FLEXPWM1_SM3TCTRL (IMXRT_FLEXPWM1.offset148)
  1820. #define FLEXPWM1_SM3DISMAP0 (IMXRT_FLEXPWM1.offset14A)
  1821. #define FLEXPWM1_SM3DISMAP1 (IMXRT_FLEXPWM1.offset14C)
  1822. #define FLEXPWM1_SM3DTCNT0 (IMXRT_FLEXPWM1.offset15E)
  1823. #define FLEXPWM1_SM3DTCNT1 (IMXRT_FLEXPWM1.offset150)
  1824. #define FLEXPWM1_SM3CAPTCTRLA (IMXRT_FLEXPWM1.offset152)
  1825. #define FLEXPWM1_SM3CAPTCOMPA (IMXRT_FLEXPWM1.offset154)
  1826. #define FLEXPWM1_SM3CAPTCTRLB (IMXRT_FLEXPWM1.offset156)
  1827. #define FLEXPWM1_SM3CAPTCOMPB (IMXRT_FLEXPWM1.offset158)
  1828. #define FLEXPWM1_SM3CAPTCTRLX (IMXRT_FLEXPWM1.offset15A)
  1829. #define FLEXPWM1_SM3CAPTCOMPX (IMXRT_FLEXPWM1.offset15C)
  1830. #define FLEXPWM1_SM3CVAL0 (IMXRT_FLEXPWM1.offset15E)
  1831. #define FLEXPWM1_SM3CVAL0CYC (IMXRT_FLEXPWM1.offset160)
  1832. #define FLEXPWM1_SM3CVAL1 (IMXRT_FLEXPWM1.offset162)
  1833. #define FLEXPWM1_SM3CVAL1CYC (IMXRT_FLEXPWM1.offset164)
  1834. #define FLEXPWM1_SM3CVAL2 (IMXRT_FLEXPWM1.offset166)
  1835. #define FLEXPWM1_SM3CVAL2CYC (IMXRT_FLEXPWM1.offset168)
  1836. #define FLEXPWM1_SM3CVAL3 (IMXRT_FLEXPWM1.offset16A)
  1837. #define FLEXPWM1_SM3CVAL3CYC (IMXRT_FLEXPWM1.offset16C)
  1838. #define FLEXPWM1_SM3CVAL4 (IMXRT_FLEXPWM1.offset16E)
  1839. #define FLEXPWM1_SM3CVAL4CYC (IMXRT_FLEXPWM1.offset170)
  1840. #define FLEXPWM1_SM3CVAL5 (IMXRT_FLEXPWM1.offset172)
  1841. #define FLEXPWM1_SM3CVAL5CYC (IMXRT_FLEXPWM1.offset174)
  1842. #define FLEXPWM1_OUTEN (IMXRT_FLEXPWM1.offset180)
  1843. #define FLEXPWM1_MASK (IMXRT_FLEXPWM1.offset182)
  1844. #define FLEXPWM1_SWCOUT (IMXRT_FLEXPWM1.offset184)
  1845. #define FLEXPWM1_DTSRCSEL (IMXRT_FLEXPWM1.offset186)
  1846. #define FLEXPWM1_MCTRL (IMXRT_FLEXPWM1.offset188)
  1847. #define FLEXPWM1_MCTRL2 (IMXRT_FLEXPWM1.offset18A)
  1848. #define FLEXPWM1_FCTRL0 (IMXRT_FLEXPWM1.offset18C)
  1849. #define FLEXPWM1_FSTS0 (IMXRT_FLEXPWM1.offset18E)
  1850. #define FLEXPWM1_FFILT0 (IMXRT_FLEXPWM1.offset190)
  1851. #define FLEXPWM1_FTST0 (IMXRT_FLEXPWM1.offset192)
  1852. #define FLEXPWM1_FCTRL20 (IMXRT_FLEXPWM1.offset194)
  1853. #define IMXRT_FLEXPWM2 (*(IMXRT_REGISTER16_t *)0x403E0000)
  1854. #define FLEXPWM2_SM0CNT (IMXRT_FLEXPWM2.offset000)
  1855. #define FLEXPWM2_SM0INIT (IMXRT_FLEXPWM2.offset002)
  1856. #define FLEXPWM2_SM0CTRL2 (IMXRT_FLEXPWM2.offset004)
  1857. #define FLEXPWM2_SM0CTRL (IMXRT_FLEXPWM2.offset006)
  1858. #define FLEXPWM2_SM0VAL0 (IMXRT_FLEXPWM2.offset008)
  1859. #define FLEXPWM2_SM0FRACVAL1 (IMXRT_FLEXPWM2.offset00A)
  1860. #define FLEXPWM2_SM0VAL1 (IMXRT_FLEXPWM2.offset00C)
  1861. #define FLEXPWM2_SM0FRACVAL2 (IMXRT_FLEXPWM2.offset00E)
  1862. #define FLEXPWM2_SM0VAL2 (IMXRT_FLEXPWM2.offset010)
  1863. #define FLEXPWM2_SM0FRACVAL3 (IMXRT_FLEXPWM2.offset012)
  1864. #define FLEXPWM2_SM0VAL3 (IMXRT_FLEXPWM2.offset014)
  1865. #define FLEXPWM2_SM0FRACVAL4 (IMXRT_FLEXPWM2.offset016)
  1866. #define FLEXPWM2_SM0VAL4 (IMXRT_FLEXPWM2.offset018)
  1867. #define FLEXPWM2_SM0FRACVAL5 (IMXRT_FLEXPWM2.offset01A)
  1868. #define FLEXPWM2_SM0VAL5 (IMXRT_FLEXPWM2.offset01C)
  1869. #define FLEXPWM2_SM0FRCTRL (IMXRT_FLEXPWM2.offset01E)
  1870. #define FLEXPWM2_SM0OCTRL (IMXRT_FLEXPWM2.offset020)
  1871. #define FLEXPWM2_SM0STS (IMXRT_FLEXPWM2.offset022)
  1872. #define FLEXPWM2_SM0INTEN (IMXRT_FLEXPWM2.offset024)
  1873. #define FLEXPWM2_SM0DMAEN (IMXRT_FLEXPWM2.offset026)
  1874. #define FLEXPWM2_SM0TCTRL (IMXRT_FLEXPWM2.offset028)
  1875. #define FLEXPWM2_SM0DISMAP0 (IMXRT_FLEXPWM2.offset02A)
  1876. #define FLEXPWM2_SM0DISMAP1 (IMXRT_FLEXPWM2.offset02C)
  1877. #define FLEXPWM2_SM0DTCNT0 (IMXRT_FLEXPWM2.offset02E)
  1878. #define FLEXPWM2_SM0DTCNT1 (IMXRT_FLEXPWM2.offset030)
  1879. #define FLEXPWM2_SM0CAPTCTRLA (IMXRT_FLEXPWM2.offset032)
  1880. #define FLEXPWM2_SM0CAPTCOMPA (IMXRT_FLEXPWM2.offset034)
  1881. #define FLEXPWM2_SM0CAPTCTRLB (IMXRT_FLEXPWM2.offset036)
  1882. #define FLEXPWM2_SM0CAPTCOMPB (IMXRT_FLEXPWM2.offset038)
  1883. #define FLEXPWM2_SM0CAPTCTRLX (IMXRT_FLEXPWM2.offset03A)
  1884. #define FLEXPWM2_SM0CAPTCOMPX (IMXRT_FLEXPWM2.offset03C)
  1885. #define FLEXPWM2_SM0CVAL0 (IMXRT_FLEXPWM2.offset03E)
  1886. #define FLEXPWM2_SM0CVAL0CYC (IMXRT_FLEXPWM2.offset040)
  1887. #define FLEXPWM2_SM0CVAL1 (IMXRT_FLEXPWM2.offset042)
  1888. #define FLEXPWM2_SM0CVAL1CYC (IMXRT_FLEXPWM2.offset044)
  1889. #define FLEXPWM2_SM0CVAL2 (IMXRT_FLEXPWM2.offset046)
  1890. #define FLEXPWM2_SM0CVAL2CYC (IMXRT_FLEXPWM2.offset048)
  1891. #define FLEXPWM2_SM0CVAL3 (IMXRT_FLEXPWM2.offset04A)
  1892. #define FLEXPWM2_SM0CVAL3CYC (IMXRT_FLEXPWM2.offset04C)
  1893. #define FLEXPWM2_SM0CVAL4 (IMXRT_FLEXPWM2.offset04E)
  1894. #define FLEXPWM2_SM0CVAL4CYC (IMXRT_FLEXPWM2.offset050)
  1895. #define FLEXPWM2_SM0CVAL5 (IMXRT_FLEXPWM2.offset052)
  1896. #define FLEXPWM2_SM0CVAL5CYC (IMXRT_FLEXPWM2.offset054)
  1897. #define FLEXPWM2_SM1CNT (IMXRT_FLEXPWM2.offset060)
  1898. #define FLEXPWM2_SM1INIT (IMXRT_FLEXPWM2.offset062)
  1899. #define FLEXPWM2_SM1CTRL2 (IMXRT_FLEXPWM2.offset064)
  1900. #define FLEXPWM2_SM1CTRL (IMXRT_FLEXPWM2.offset066)
  1901. #define FLEXPWM2_SM1VAL0 (IMXRT_FLEXPWM2.offset068)
  1902. #define FLEXPWM2_SM1FRACVAL1 (IMXRT_FLEXPWM2.offset06A)
  1903. #define FLEXPWM2_SM1VAL1 (IMXRT_FLEXPWM2.offset06C)
  1904. #define FLEXPWM2_SM1FRACVAL2 (IMXRT_FLEXPWM2.offset06E)
  1905. #define FLEXPWM2_SM1VAL2 (IMXRT_FLEXPWM2.offset070)
  1906. #define FLEXPWM2_SM1FRACVAL3 (IMXRT_FLEXPWM2.offset072)
  1907. #define FLEXPWM2_SM1VAL3 (IMXRT_FLEXPWM2.offset074)
  1908. #define FLEXPWM2_SM1FRACVAL4 (IMXRT_FLEXPWM2.offset076)
  1909. #define FLEXPWM2_SM1VAL4 (IMXRT_FLEXPWM2.offset078)
  1910. #define FLEXPWM2_SM1FRACVAL5 (IMXRT_FLEXPWM2.offset07A)
  1911. #define FLEXPWM2_SM1VAL5 (IMXRT_FLEXPWM2.offset07C)
  1912. #define FLEXPWM2_SM1FRCTRL (IMXRT_FLEXPWM2.offset07E)
  1913. #define FLEXPWM2_SM1OCTRL (IMXRT_FLEXPWM2.offset080)
  1914. #define FLEXPWM2_SM1STS (IMXRT_FLEXPWM2.offset082)
  1915. #define FLEXPWM2_SM1INTEN (IMXRT_FLEXPWM2.offset084)
  1916. #define FLEXPWM2_SM1DMAEN (IMXRT_FLEXPWM2.offset086)
  1917. #define FLEXPWM2_SM1TCTRL (IMXRT_FLEXPWM2.offset088)
  1918. #define FLEXPWM2_SM1DISMAP0 (IMXRT_FLEXPWM2.offset08A)
  1919. #define FLEXPWM2_SM1DISMAP1 (IMXRT_FLEXPWM2.offset08C)
  1920. #define FLEXPWM2_SM1DTCNT0 (IMXRT_FLEXPWM2.offset08E)
  1921. #define FLEXPWM2_SM1DTCNT1 (IMXRT_FLEXPWM2.offset090)
  1922. #define FLEXPWM2_SM1CAPTCTRLA (IMXRT_FLEXPWM2.offset092)
  1923. #define FLEXPWM2_SM1CAPTCOMPA (IMXRT_FLEXPWM2.offset094)
  1924. #define FLEXPWM2_SM1CAPTCTRLB (IMXRT_FLEXPWM2.offset096)
  1925. #define FLEXPWM2_SM1CAPTCOMPB (IMXRT_FLEXPWM2.offset098)
  1926. #define FLEXPWM2_SM1CAPTCTRLX (IMXRT_FLEXPWM2.offset09A)
  1927. #define FLEXPWM2_SM1CAPTCOMPX (IMXRT_FLEXPWM2.offset09C)
  1928. #define FLEXPWM2_SM1CVAL0 (IMXRT_FLEXPWM2.offset09E)
  1929. #define FLEXPWM2_SM1CVAL0CYC (IMXRT_FLEXPWM2.offset0A0)
  1930. #define FLEXPWM2_SM1CVAL1 (IMXRT_FLEXPWM2.offset0A2)
  1931. #define FLEXPWM2_SM1CVAL1CYC (IMXRT_FLEXPWM2.offset0A4)
  1932. #define FLEXPWM2_SM1CVAL2 (IMXRT_FLEXPWM2.offset0A6)
  1933. #define FLEXPWM2_SM1CVAL2CYC (IMXRT_FLEXPWM2.offset0A8)
  1934. #define FLEXPWM2_SM1CVAL3 (IMXRT_FLEXPWM2.offset0AA)
  1935. #define FLEXPWM2_SM1CVAL3CYC (IMXRT_FLEXPWM2.offset0AC)
  1936. #define FLEXPWM2_SM1CVAL4 (IMXRT_FLEXPWM2.offset0AE)
  1937. #define FLEXPWM2_SM1CVAL4CYC (IMXRT_FLEXPWM2.offset0B0)
  1938. #define FLEXPWM2_SM1CVAL5 (IMXRT_FLEXPWM2.offset0B2)
  1939. #define FLEXPWM2_SM1CVAL5CYC (IMXRT_FLEXPWM2.offset0B4)
  1940. #define FLEXPWM2_SM2CNT (IMXRT_FLEXPWM2.offset0C0)
  1941. #define FLEXPWM2_SM2INIT (IMXRT_FLEXPWM2.offset0C2)
  1942. #define FLEXPWM2_SM2CTRL2 (IMXRT_FLEXPWM2.offset0C4)
  1943. #define FLEXPWM2_SM2CTRL (IMXRT_FLEXPWM2.offset0C6)
  1944. #define FLEXPWM2_SM2VAL0 (IMXRT_FLEXPWM2.offset0C8)
  1945. #define FLEXPWM2_SM2FRACVAL1 (IMXRT_FLEXPWM2.offset0CA)
  1946. #define FLEXPWM2_SM2VAL1 (IMXRT_FLEXPWM2.offset0CC)
  1947. #define FLEXPWM2_SM2FRACVAL2 (IMXRT_FLEXPWM2.offset0CE)
  1948. #define FLEXPWM2_SM2VAL2 (IMXRT_FLEXPWM2.offset0D0)
  1949. #define FLEXPWM2_SM2FRACVAL3 (IMXRT_FLEXPWM2.offset0D2)
  1950. #define FLEXPWM2_SM2VAL3 (IMXRT_FLEXPWM2.offset0D4)
  1951. #define FLEXPWM2_SM2FRACVAL4 (IMXRT_FLEXPWM2.offset0D6)
  1952. #define FLEXPWM2_SM2VAL4 (IMXRT_FLEXPWM2.offset0D8)
  1953. #define FLEXPWM2_SM2FRACVAL5 (IMXRT_FLEXPWM2.offset0DA)
  1954. #define FLEXPWM2_SM2VAL5 (IMXRT_FLEXPWM2.offset0DC)
  1955. #define FLEXPWM2_SM2FRCTRL (IMXRT_FLEXPWM2.offset0DE)
  1956. #define FLEXPWM2_SM2OCTRL (IMXRT_FLEXPWM2.offset0E0)
  1957. #define FLEXPWM2_SM2STS (IMXRT_FLEXPWM2.offset0E2)
  1958. #define FLEXPWM2_SM2INTEN (IMXRT_FLEXPWM2.offset0E4)
  1959. #define FLEXPWM2_SM2DMAEN (IMXRT_FLEXPWM2.offset0E6)
  1960. #define FLEXPWM2_SM2TCTRL (IMXRT_FLEXPWM2.offset0E8)
  1961. #define FLEXPWM2_SM2DISMAP0 (IMXRT_FLEXPWM2.offset0EA)
  1962. #define FLEXPWM2_SM2DISMAP1 (IMXRT_FLEXPWM2.offset0EC)
  1963. #define FLEXPWM2_SM2DTCNT0 (IMXRT_FLEXPWM2.offset0EE)
  1964. #define FLEXPWM2_SM2DTCNT1 (IMXRT_FLEXPWM2.offset0F0)
  1965. #define FLEXPWM2_SM2CAPTCTRLA (IMXRT_FLEXPWM2.offset0F2)
  1966. #define FLEXPWM2_SM2CAPTCOMPA (IMXRT_FLEXPWM2.offset0F4)
  1967. #define FLEXPWM2_SM2CAPTCTRLB (IMXRT_FLEXPWM2.offset0F6)
  1968. #define FLEXPWM2_SM2CAPTCOMPB (IMXRT_FLEXPWM2.offset0F8)
  1969. #define FLEXPWM2_SM2CAPTCTRLX (IMXRT_FLEXPWM2.offset0FA)
  1970. #define FLEXPWM2_SM2CAPTCOMPX (IMXRT_FLEXPWM2.offset0FC)
  1971. #define FLEXPWM2_SM2CVAL0 (IMXRT_FLEXPWM2.offset0FE)
  1972. #define FLEXPWM2_SM2CVAL0CYC (IMXRT_FLEXPWM2.offset100)
  1973. #define FLEXPWM2_SM2CVAL1 (IMXRT_FLEXPWM2.offset102)
  1974. #define FLEXPWM2_SM2CVAL1CYC (IMXRT_FLEXPWM2.offset104)
  1975. #define FLEXPWM2_SM2CVAL2 (IMXRT_FLEXPWM2.offset106)
  1976. #define FLEXPWM2_SM2CVAL2CYC (IMXRT_FLEXPWM2.offset108)
  1977. #define FLEXPWM2_SM2CVAL3 (IMXRT_FLEXPWM2.offset10A)
  1978. #define FLEXPWM2_SM2CVAL3CYC (IMXRT_FLEXPWM2.offset10C)
  1979. #define FLEXPWM2_SM2CVAL4 (IMXRT_FLEXPWM2.offset10E)
  1980. #define FLEXPWM2_SM2CVAL4CYC (IMXRT_FLEXPWM2.offset110)
  1981. #define FLEXPWM2_SM2CVAL5 (IMXRT_FLEXPWM2.offset112)
  1982. #define FLEXPWM2_SM2CVAL5CYC (IMXRT_FLEXPWM2.offset114)
  1983. #define FLEXPWM2_SM3CNT (IMXRT_FLEXPWM2.offset120)
  1984. #define FLEXPWM2_SM3INIT (IMXRT_FLEXPWM2.offset122)
  1985. #define FLEXPWM2_SM3CTRL2 (IMXRT_FLEXPWM2.offset124)
  1986. #define FLEXPWM2_SM3CTRL (IMXRT_FLEXPWM2.offset126)
  1987. #define FLEXPWM2_SM3VAL0 (IMXRT_FLEXPWM2.offset128)
  1988. #define FLEXPWM2_SM3FRACVAL1 (IMXRT_FLEXPWM2.offset12A)
  1989. #define FLEXPWM2_SM3VAL1 (IMXRT_FLEXPWM2.offset12C)
  1990. #define FLEXPWM2_SM3FRACVAL2 (IMXRT_FLEXPWM2.offset12E)
  1991. #define FLEXPWM2_SM3VAL2 (IMXRT_FLEXPWM2.offset130)
  1992. #define FLEXPWM2_SM3FRACVAL3 (IMXRT_FLEXPWM2.offset132)
  1993. #define FLEXPWM2_SM3VAL3 (IMXRT_FLEXPWM2.offset134)
  1994. #define FLEXPWM2_SM3FRACVAL4 (IMXRT_FLEXPWM2.offset136)
  1995. #define FLEXPWM2_SM3VAL4 (IMXRT_FLEXPWM2.offset138)
  1996. #define FLEXPWM2_SM3FRACVAL5 (IMXRT_FLEXPWM2.offset13A)
  1997. #define FLEXPWM2_SM3VAL5 (IMXRT_FLEXPWM2.offset13C)
  1998. #define FLEXPWM2_SM3FRCTRL (IMXRT_FLEXPWM2.offset13E)
  1999. #define FLEXPWM2_SM3OCTRL (IMXRT_FLEXPWM2.offset140)
  2000. #define FLEXPWM2_SM3STS (IMXRT_FLEXPWM2.offset142)
  2001. #define FLEXPWM2_SM3INTEN (IMXRT_FLEXPWM2.offset144)
  2002. #define FLEXPWM2_SM3DMAEN (IMXRT_FLEXPWM2.offset146)
  2003. #define FLEXPWM2_SM3TCTRL (IMXRT_FLEXPWM2.offset148)
  2004. #define FLEXPWM2_SM3DISMAP0 (IMXRT_FLEXPWM2.offset14A)
  2005. #define FLEXPWM2_SM3DISMAP1 (IMXRT_FLEXPWM2.offset14C)
  2006. #define FLEXPWM2_SM3DTCNT0 (IMXRT_FLEXPWM2.offset15E)
  2007. #define FLEXPWM2_SM3DTCNT1 (IMXRT_FLEXPWM2.offset150)
  2008. #define FLEXPWM2_SM3CAPTCTRLA (IMXRT_FLEXPWM2.offset152)
  2009. #define FLEXPWM2_SM3CAPTCOMPA (IMXRT_FLEXPWM2.offset154)
  2010. #define FLEXPWM2_SM3CAPTCTRLB (IMXRT_FLEXPWM2.offset156)
  2011. #define FLEXPWM2_SM3CAPTCOMPB (IMXRT_FLEXPWM2.offset158)
  2012. #define FLEXPWM2_SM3CAPTCTRLX (IMXRT_FLEXPWM2.offset15A)
  2013. #define FLEXPWM2_SM3CAPTCOMPX (IMXRT_FLEXPWM2.offset15C)
  2014. #define FLEXPWM2_SM3CVAL0 (IMXRT_FLEXPWM2.offset15E)
  2015. #define FLEXPWM2_SM3CVAL0CYC (IMXRT_FLEXPWM2.offset160)
  2016. #define FLEXPWM2_SM3CVAL1 (IMXRT_FLEXPWM2.offset162)
  2017. #define FLEXPWM2_SM3CVAL1CYC (IMXRT_FLEXPWM2.offset164)
  2018. #define FLEXPWM2_SM3CVAL2 (IMXRT_FLEXPWM2.offset166)
  2019. #define FLEXPWM2_SM3CVAL2CYC (IMXRT_FLEXPWM2.offset168)
  2020. #define FLEXPWM2_SM3CVAL3 (IMXRT_FLEXPWM2.offset16A)
  2021. #define FLEXPWM2_SM3CVAL3CYC (IMXRT_FLEXPWM2.offset16C)
  2022. #define FLEXPWM2_SM3CVAL4 (IMXRT_FLEXPWM2.offset16E)
  2023. #define FLEXPWM2_SM3CVAL4CYC (IMXRT_FLEXPWM2.offset170)
  2024. #define FLEXPWM2_SM3CVAL5 (IMXRT_FLEXPWM2.offset172)
  2025. #define FLEXPWM2_SM3CVAL5CYC (IMXRT_FLEXPWM2.offset174)
  2026. #define FLEXPWM2_OUTEN (IMXRT_FLEXPWM2.offset180)
  2027. #define FLEXPWM2_MASK (IMXRT_FLEXPWM2.offset182)
  2028. #define FLEXPWM2_SWCOUT (IMXRT_FLEXPWM2.offset184)
  2029. #define FLEXPWM2_DTSRCSEL (IMXRT_FLEXPWM2.offset186)
  2030. #define FLEXPWM2_MCTRL (IMXRT_FLEXPWM2.offset188)
  2031. #define FLEXPWM2_MCTRL2 (IMXRT_FLEXPWM2.offset18A)
  2032. #define FLEXPWM2_FCTRL0 (IMXRT_FLEXPWM2.offset18C)
  2033. #define FLEXPWM2_FSTS0 (IMXRT_FLEXPWM2.offset18E)
  2034. #define FLEXPWM2_FFILT0 (IMXRT_FLEXPWM2.offset190)
  2035. #define FLEXPWM2_FTST0 (IMXRT_FLEXPWM2.offset192)
  2036. #define FLEXPWM2_FCTRL20 (IMXRT_FLEXPWM2.offset194)
  2037. #define IMXRT_FLEXPWM3 (*(IMXRT_REGISTER16_t *)0x403E4000)
  2038. #define FLEXPWM3_SM0CNT (IMXRT_FLEXPWM3.offset000)
  2039. #define FLEXPWM3_SM0INIT (IMXRT_FLEXPWM3.offset002)
  2040. #define FLEXPWM3_SM0CTRL2 (IMXRT_FLEXPWM3.offset004)
  2041. #define FLEXPWM3_SM0CTRL (IMXRT_FLEXPWM3.offset006)
  2042. #define FLEXPWM3_SM0VAL0 (IMXRT_FLEXPWM3.offset008)
  2043. #define FLEXPWM3_SM0FRACVAL1 (IMXRT_FLEXPWM3.offset00A)
  2044. #define FLEXPWM3_SM0VAL1 (IMXRT_FLEXPWM3.offset00C)
  2045. #define FLEXPWM3_SM0FRACVAL2 (IMXRT_FLEXPWM3.offset00E)
  2046. #define FLEXPWM3_SM0VAL2 (IMXRT_FLEXPWM3.offset010)
  2047. #define FLEXPWM3_SM0FRACVAL3 (IMXRT_FLEXPWM3.offset012)
  2048. #define FLEXPWM3_SM0VAL3 (IMXRT_FLEXPWM3.offset014)
  2049. #define FLEXPWM3_SM0FRACVAL4 (IMXRT_FLEXPWM3.offset016)
  2050. #define FLEXPWM3_SM0VAL4 (IMXRT_FLEXPWM3.offset018)
  2051. #define FLEXPWM3_SM0FRACVAL5 (IMXRT_FLEXPWM3.offset01A)
  2052. #define FLEXPWM3_SM0VAL5 (IMXRT_FLEXPWM3.offset01C)
  2053. #define FLEXPWM3_SM0FRCTRL (IMXRT_FLEXPWM3.offset01E)
  2054. #define FLEXPWM3_SM0OCTRL (IMXRT_FLEXPWM3.offset020)
  2055. #define FLEXPWM3_SM0STS (IMXRT_FLEXPWM3.offset022)
  2056. #define FLEXPWM3_SM0INTEN (IMXRT_FLEXPWM3.offset024)
  2057. #define FLEXPWM3_SM0DMAEN (IMXRT_FLEXPWM3.offset026)
  2058. #define FLEXPWM3_SM0TCTRL (IMXRT_FLEXPWM3.offset028)
  2059. #define FLEXPWM3_SM0DISMAP0 (IMXRT_FLEXPWM3.offset02A)
  2060. #define FLEXPWM3_SM0DISMAP1 (IMXRT_FLEXPWM3.offset02C)
  2061. #define FLEXPWM3_SM0DTCNT0 (IMXRT_FLEXPWM3.offset02E)
  2062. #define FLEXPWM3_SM0DTCNT1 (IMXRT_FLEXPWM3.offset030)
  2063. #define FLEXPWM3_SM0CAPTCTRLA (IMXRT_FLEXPWM3.offset032)
  2064. #define FLEXPWM3_SM0CAPTCOMPA (IMXRT_FLEXPWM3.offset034)
  2065. #define FLEXPWM3_SM0CAPTCTRLB (IMXRT_FLEXPWM3.offset036)
  2066. #define FLEXPWM3_SM0CAPTCOMPB (IMXRT_FLEXPWM3.offset038)
  2067. #define FLEXPWM3_SM0CAPTCTRLX (IMXRT_FLEXPWM3.offset03A)
  2068. #define FLEXPWM3_SM0CAPTCOMPX (IMXRT_FLEXPWM3.offset03C)
  2069. #define FLEXPWM3_SM0CVAL0 (IMXRT_FLEXPWM3.offset03E)
  2070. #define FLEXPWM3_SM0CVAL0CYC (IMXRT_FLEXPWM3.offset040)
  2071. #define FLEXPWM3_SM0CVAL1 (IMXRT_FLEXPWM3.offset042)
  2072. #define FLEXPWM3_SM0CVAL1CYC (IMXRT_FLEXPWM3.offset044)
  2073. #define FLEXPWM3_SM0CVAL2 (IMXRT_FLEXPWM3.offset046)
  2074. #define FLEXPWM3_SM0CVAL2CYC (IMXRT_FLEXPWM3.offset048)
  2075. #define FLEXPWM3_SM0CVAL3 (IMXRT_FLEXPWM3.offset04A)
  2076. #define FLEXPWM3_SM0CVAL3CYC (IMXRT_FLEXPWM3.offset04C)
  2077. #define FLEXPWM3_SM0CVAL4 (IMXRT_FLEXPWM3.offset04E)
  2078. #define FLEXPWM3_SM0CVAL4CYC (IMXRT_FLEXPWM3.offset050)
  2079. #define FLEXPWM3_SM0CVAL5 (IMXRT_FLEXPWM3.offset052)
  2080. #define FLEXPWM3_SM0CVAL5CYC (IMXRT_FLEXPWM3.offset054)
  2081. #define FLEXPWM3_SM1CNT (IMXRT_FLEXPWM3.offset060)
  2082. #define FLEXPWM3_SM1INIT (IMXRT_FLEXPWM3.offset062)
  2083. #define FLEXPWM3_SM1CTRL2 (IMXRT_FLEXPWM3.offset064)
  2084. #define FLEXPWM3_SM1CTRL (IMXRT_FLEXPWM3.offset066)
  2085. #define FLEXPWM3_SM1VAL0 (IMXRT_FLEXPWM3.offset068)
  2086. #define FLEXPWM3_SM1FRACVAL1 (IMXRT_FLEXPWM3.offset06A)
  2087. #define FLEXPWM3_SM1VAL1 (IMXRT_FLEXPWM3.offset06C)
  2088. #define FLEXPWM3_SM1FRACVAL2 (IMXRT_FLEXPWM3.offset06E)
  2089. #define FLEXPWM3_SM1VAL2 (IMXRT_FLEXPWM3.offset070)
  2090. #define FLEXPWM3_SM1FRACVAL3 (IMXRT_FLEXPWM3.offset072)
  2091. #define FLEXPWM3_SM1VAL3 (IMXRT_FLEXPWM3.offset074)
  2092. #define FLEXPWM3_SM1FRACVAL4 (IMXRT_FLEXPWM3.offset076)
  2093. #define FLEXPWM3_SM1VAL4 (IMXRT_FLEXPWM3.offset078)
  2094. #define FLEXPWM3_SM1FRACVAL5 (IMXRT_FLEXPWM3.offset07A)
  2095. #define FLEXPWM3_SM1VAL5 (IMXRT_FLEXPWM3.offset07C)
  2096. #define FLEXPWM3_SM1FRCTRL (IMXRT_FLEXPWM3.offset07E)
  2097. #define FLEXPWM3_SM1OCTRL (IMXRT_FLEXPWM3.offset080)
  2098. #define FLEXPWM3_SM1STS (IMXRT_FLEXPWM3.offset082)
  2099. #define FLEXPWM3_SM1INTEN (IMXRT_FLEXPWM3.offset084)
  2100. #define FLEXPWM3_SM1DMAEN (IMXRT_FLEXPWM3.offset086)
  2101. #define FLEXPWM3_SM1TCTRL (IMXRT_FLEXPWM3.offset088)
  2102. #define FLEXPWM3_SM1DISMAP0 (IMXRT_FLEXPWM3.offset08A)
  2103. #define FLEXPWM3_SM1DISMAP1 (IMXRT_FLEXPWM3.offset08C)
  2104. #define FLEXPWM3_SM1DTCNT0 (IMXRT_FLEXPWM3.offset08E)
  2105. #define FLEXPWM3_SM1DTCNT1 (IMXRT_FLEXPWM3.offset090)
  2106. #define FLEXPWM3_SM1CAPTCTRLA (IMXRT_FLEXPWM3.offset092)
  2107. #define FLEXPWM3_SM1CAPTCOMPA (IMXRT_FLEXPWM3.offset094)
  2108. #define FLEXPWM3_SM1CAPTCTRLB (IMXRT_FLEXPWM3.offset096)
  2109. #define FLEXPWM3_SM1CAPTCOMPB (IMXRT_FLEXPWM3.offset098)
  2110. #define FLEXPWM3_SM1CAPTCTRLX (IMXRT_FLEXPWM3.offset09A)
  2111. #define FLEXPWM3_SM1CAPTCOMPX (IMXRT_FLEXPWM3.offset09C)
  2112. #define FLEXPWM3_SM1CVAL0 (IMXRT_FLEXPWM3.offset09E)
  2113. #define FLEXPWM3_SM1CVAL0CYC (IMXRT_FLEXPWM3.offset0A0)
  2114. #define FLEXPWM3_SM1CVAL1 (IMXRT_FLEXPWM3.offset0A2)
  2115. #define FLEXPWM3_SM1CVAL1CYC (IMXRT_FLEXPWM3.offset0A4)
  2116. #define FLEXPWM3_SM1CVAL2 (IMXRT_FLEXPWM3.offset0A6)
  2117. #define FLEXPWM3_SM1CVAL2CYC (IMXRT_FLEXPWM3.offset0A8)
  2118. #define FLEXPWM3_SM1CVAL3 (IMXRT_FLEXPWM3.offset0AA)
  2119. #define FLEXPWM3_SM1CVAL3CYC (IMXRT_FLEXPWM3.offset0AC)
  2120. #define FLEXPWM3_SM1CVAL4 (IMXRT_FLEXPWM3.offset0AE)
  2121. #define FLEXPWM3_SM1CVAL4CYC (IMXRT_FLEXPWM3.offset0B0)
  2122. #define FLEXPWM3_SM1CVAL5 (IMXRT_FLEXPWM3.offset0B2)
  2123. #define FLEXPWM3_SM1CVAL5CYC (IMXRT_FLEXPWM3.offset0B4)
  2124. #define FLEXPWM3_SM2CNT (IMXRT_FLEXPWM3.offset0C0)
  2125. #define FLEXPWM3_SM2INIT (IMXRT_FLEXPWM3.offset0C2)
  2126. #define FLEXPWM3_SM2CTRL2 (IMXRT_FLEXPWM3.offset0C4)
  2127. #define FLEXPWM3_SM2CTRL (IMXRT_FLEXPWM3.offset0C6)
  2128. #define FLEXPWM3_SM2VAL0 (IMXRT_FLEXPWM3.offset0C8)
  2129. #define FLEXPWM3_SM2FRACVAL1 (IMXRT_FLEXPWM3.offset0CA)
  2130. #define FLEXPWM3_SM2VAL1 (IMXRT_FLEXPWM3.offset0CC)
  2131. #define FLEXPWM3_SM2FRACVAL2 (IMXRT_FLEXPWM3.offset0CE)
  2132. #define FLEXPWM3_SM2VAL2 (IMXRT_FLEXPWM3.offset0D0)
  2133. #define FLEXPWM3_SM2FRACVAL3 (IMXRT_FLEXPWM3.offset0D2)
  2134. #define FLEXPWM3_SM2VAL3 (IMXRT_FLEXPWM3.offset0D4)
  2135. #define FLEXPWM3_SM2FRACVAL4 (IMXRT_FLEXPWM3.offset0D6)
  2136. #define FLEXPWM3_SM2VAL4 (IMXRT_FLEXPWM3.offset0D8)
  2137. #define FLEXPWM3_SM2FRACVAL5 (IMXRT_FLEXPWM3.offset0DA)
  2138. #define FLEXPWM3_SM2VAL5 (IMXRT_FLEXPWM3.offset0DC)
  2139. #define FLEXPWM3_SM2FRCTRL (IMXRT_FLEXPWM3.offset0DE)
  2140. #define FLEXPWM3_SM2OCTRL (IMXRT_FLEXPWM3.offset0E0)
  2141. #define FLEXPWM3_SM2STS (IMXRT_FLEXPWM3.offset0E2)
  2142. #define FLEXPWM3_SM2INTEN (IMXRT_FLEXPWM3.offset0E4)
  2143. #define FLEXPWM3_SM2DMAEN (IMXRT_FLEXPWM3.offset0E6)
  2144. #define FLEXPWM3_SM2TCTRL (IMXRT_FLEXPWM3.offset0E8)
  2145. #define FLEXPWM3_SM2DISMAP0 (IMXRT_FLEXPWM3.offset0EA)
  2146. #define FLEXPWM3_SM2DISMAP1 (IMXRT_FLEXPWM3.offset0EC)
  2147. #define FLEXPWM3_SM2DTCNT0 (IMXRT_FLEXPWM3.offset0EE)
  2148. #define FLEXPWM3_SM2DTCNT1 (IMXRT_FLEXPWM3.offset0F0)
  2149. #define FLEXPWM3_SM2CAPTCTRLA (IMXRT_FLEXPWM3.offset0F2)
  2150. #define FLEXPWM3_SM2CAPTCOMPA (IMXRT_FLEXPWM3.offset0F4)
  2151. #define FLEXPWM3_SM2CAPTCTRLB (IMXRT_FLEXPWM3.offset0F6)
  2152. #define FLEXPWM3_SM2CAPTCOMPB (IMXRT_FLEXPWM3.offset0F8)
  2153. #define FLEXPWM3_SM2CAPTCTRLX (IMXRT_FLEXPWM3.offset0FA)
  2154. #define FLEXPWM3_SM2CAPTCOMPX (IMXRT_FLEXPWM3.offset0FC)
  2155. #define FLEXPWM3_SM2CVAL0 (IMXRT_FLEXPWM3.offset0FE)
  2156. #define FLEXPWM3_SM2CVAL0CYC (IMXRT_FLEXPWM3.offset100)
  2157. #define FLEXPWM3_SM2CVAL1 (IMXRT_FLEXPWM3.offset102)
  2158. #define FLEXPWM3_SM2CVAL1CYC (IMXRT_FLEXPWM3.offset104)
  2159. #define FLEXPWM3_SM2CVAL2 (IMXRT_FLEXPWM3.offset106)
  2160. #define FLEXPWM3_SM2CVAL2CYC (IMXRT_FLEXPWM3.offset108)
  2161. #define FLEXPWM3_SM2CVAL3 (IMXRT_FLEXPWM3.offset10A)
  2162. #define FLEXPWM3_SM2CVAL3CYC (IMXRT_FLEXPWM3.offset10C)
  2163. #define FLEXPWM3_SM2CVAL4 (IMXRT_FLEXPWM3.offset10E)
  2164. #define FLEXPWM3_SM2CVAL4CYC (IMXRT_FLEXPWM3.offset110)
  2165. #define FLEXPWM3_SM2CVAL5 (IMXRT_FLEXPWM3.offset112)
  2166. #define FLEXPWM3_SM2CVAL5CYC (IMXRT_FLEXPWM3.offset114)
  2167. #define FLEXPWM3_SM3CNT (IMXRT_FLEXPWM3.offset120)
  2168. #define FLEXPWM3_SM3INIT (IMXRT_FLEXPWM3.offset122)
  2169. #define FLEXPWM3_SM3CTRL2 (IMXRT_FLEXPWM3.offset124)
  2170. #define FLEXPWM3_SM3CTRL (IMXRT_FLEXPWM3.offset126)
  2171. #define FLEXPWM3_SM3VAL0 (IMXRT_FLEXPWM3.offset128)
  2172. #define FLEXPWM3_SM3FRACVAL1 (IMXRT_FLEXPWM3.offset12A)
  2173. #define FLEXPWM3_SM3VAL1 (IMXRT_FLEXPWM3.offset12C)
  2174. #define FLEXPWM3_SM3FRACVAL2 (IMXRT_FLEXPWM3.offset12E)
  2175. #define FLEXPWM3_SM3VAL2 (IMXRT_FLEXPWM3.offset130)
  2176. #define FLEXPWM3_SM3FRACVAL3 (IMXRT_FLEXPWM3.offset132)
  2177. #define FLEXPWM3_SM3VAL3 (IMXRT_FLEXPWM3.offset134)
  2178. #define FLEXPWM3_SM3FRACVAL4 (IMXRT_FLEXPWM3.offset136)
  2179. #define FLEXPWM3_SM3VAL4 (IMXRT_FLEXPWM3.offset138)
  2180. #define FLEXPWM3_SM3FRACVAL5 (IMXRT_FLEXPWM3.offset13A)
  2181. #define FLEXPWM3_SM3VAL5 (IMXRT_FLEXPWM3.offset13C)
  2182. #define FLEXPWM3_SM3FRCTRL (IMXRT_FLEXPWM3.offset13E)
  2183. #define FLEXPWM3_SM3OCTRL (IMXRT_FLEXPWM3.offset140)
  2184. #define FLEXPWM3_SM3STS (IMXRT_FLEXPWM3.offset142)
  2185. #define FLEXPWM3_SM3INTEN (IMXRT_FLEXPWM3.offset144)
  2186. #define FLEXPWM3_SM3DMAEN (IMXRT_FLEXPWM3.offset146)
  2187. #define FLEXPWM3_SM3TCTRL (IMXRT_FLEXPWM3.offset148)
  2188. #define FLEXPWM3_SM3DISMAP0 (IMXRT_FLEXPWM3.offset14A)
  2189. #define FLEXPWM3_SM3DISMAP1 (IMXRT_FLEXPWM3.offset14C)
  2190. #define FLEXPWM3_SM3DTCNT0 (IMXRT_FLEXPWM3.offset15E)
  2191. #define FLEXPWM3_SM3DTCNT1 (IMXRT_FLEXPWM3.offset150)
  2192. #define FLEXPWM3_SM3CAPTCTRLA (IMXRT_FLEXPWM3.offset152)
  2193. #define FLEXPWM3_SM3CAPTCOMPA (IMXRT_FLEXPWM3.offset154)
  2194. #define FLEXPWM3_SM3CAPTCTRLB (IMXRT_FLEXPWM3.offset156)
  2195. #define FLEXPWM3_SM3CAPTCOMPB (IMXRT_FLEXPWM3.offset158)
  2196. #define FLEXPWM3_SM3CAPTCTRLX (IMXRT_FLEXPWM3.offset15A)
  2197. #define FLEXPWM3_SM3CAPTCOMPX (IMXRT_FLEXPWM3.offset15C)
  2198. #define FLEXPWM3_SM3CVAL0 (IMXRT_FLEXPWM3.offset15E)
  2199. #define FLEXPWM3_SM3CVAL0CYC (IMXRT_FLEXPWM3.offset160)
  2200. #define FLEXPWM3_SM3CVAL1 (IMXRT_FLEXPWM3.offset162)
  2201. #define FLEXPWM3_SM3CVAL1CYC (IMXRT_FLEXPWM3.offset164)
  2202. #define FLEXPWM3_SM3CVAL2 (IMXRT_FLEXPWM3.offset166)
  2203. #define FLEXPWM3_SM3CVAL2CYC (IMXRT_FLEXPWM3.offset168)
  2204. #define FLEXPWM3_SM3CVAL3 (IMXRT_FLEXPWM3.offset16A)
  2205. #define FLEXPWM3_SM3CVAL3CYC (IMXRT_FLEXPWM3.offset16C)
  2206. #define FLEXPWM3_SM3CVAL4 (IMXRT_FLEXPWM3.offset16E)
  2207. #define FLEXPWM3_SM3CVAL4CYC (IMXRT_FLEXPWM3.offset170)
  2208. #define FLEXPWM3_SM3CVAL5 (IMXRT_FLEXPWM3.offset172)
  2209. #define FLEXPWM3_SM3CVAL5CYC (IMXRT_FLEXPWM3.offset174)
  2210. #define FLEXPWM3_OUTEN (IMXRT_FLEXPWM3.offset180)
  2211. #define FLEXPWM3_MASK (IMXRT_FLEXPWM3.offset182)
  2212. #define FLEXPWM3_SWCOUT (IMXRT_FLEXPWM3.offset184)
  2213. #define FLEXPWM3_DTSRCSEL (IMXRT_FLEXPWM3.offset186)
  2214. #define FLEXPWM3_MCTRL (IMXRT_FLEXPWM3.offset188)
  2215. #define FLEXPWM3_MCTRL2 (IMXRT_FLEXPWM3.offset18A)
  2216. #define FLEXPWM3_FCTRL0 (IMXRT_FLEXPWM3.offset18C)
  2217. #define FLEXPWM3_FSTS0 (IMXRT_FLEXPWM3.offset18E)
  2218. #define FLEXPWM3_FFILT0 (IMXRT_FLEXPWM3.offset190)
  2219. #define FLEXPWM3_FTST0 (IMXRT_FLEXPWM3.offset192)
  2220. #define FLEXPWM3_FCTRL20 (IMXRT_FLEXPWM3.offset194)
  2221. #define IMXRT_FLEXPWM4 (*(IMXRT_REGISTER16_t *)0x403E8000)
  2222. #define FLEXPWM4_SM0CNT (IMXRT_FLEXPWM4.offset000)
  2223. #define FLEXPWM4_SM0INIT (IMXRT_FLEXPWM4.offset002)
  2224. #define FLEXPWM4_SM0CTRL2 (IMXRT_FLEXPWM4.offset004)
  2225. #define FLEXPWM4_SM0CTRL (IMXRT_FLEXPWM4.offset006)
  2226. #define FLEXPWM4_SM0VAL0 (IMXRT_FLEXPWM4.offset008)
  2227. #define FLEXPWM4_SM0FRACVAL1 (IMXRT_FLEXPWM4.offset00A)
  2228. #define FLEXPWM4_SM0VAL1 (IMXRT_FLEXPWM4.offset00C)
  2229. #define FLEXPWM4_SM0FRACVAL2 (IMXRT_FLEXPWM4.offset00E)
  2230. #define FLEXPWM4_SM0VAL2 (IMXRT_FLEXPWM4.offset010)
  2231. #define FLEXPWM4_SM0FRACVAL3 (IMXRT_FLEXPWM4.offset012)
  2232. #define FLEXPWM4_SM0VAL3 (IMXRT_FLEXPWM4.offset014)
  2233. #define FLEXPWM4_SM0FRACVAL4 (IMXRT_FLEXPWM4.offset016)
  2234. #define FLEXPWM4_SM0VAL4 (IMXRT_FLEXPWM4.offset018)
  2235. #define FLEXPWM4_SM0FRACVAL5 (IMXRT_FLEXPWM4.offset01A)
  2236. #define FLEXPWM4_SM0VAL5 (IMXRT_FLEXPWM4.offset01C)
  2237. #define FLEXPWM4_SM0FRCTRL (IMXRT_FLEXPWM4.offset01E)
  2238. #define FLEXPWM4_SM0OCTRL (IMXRT_FLEXPWM4.offset020)
  2239. #define FLEXPWM4_SM0STS (IMXRT_FLEXPWM4.offset022)
  2240. #define FLEXPWM4_SM0INTEN (IMXRT_FLEXPWM4.offset024)
  2241. #define FLEXPWM4_SM0DMAEN (IMXRT_FLEXPWM4.offset026)
  2242. #define FLEXPWM4_SM0TCTRL (IMXRT_FLEXPWM4.offset028)
  2243. #define FLEXPWM4_SM0DISMAP0 (IMXRT_FLEXPWM4.offset02A)
  2244. #define FLEXPWM4_SM0DISMAP1 (IMXRT_FLEXPWM4.offset02C)
  2245. #define FLEXPWM4_SM0DTCNT0 (IMXRT_FLEXPWM4.offset02E)
  2246. #define FLEXPWM4_SM0DTCNT1 (IMXRT_FLEXPWM4.offset030)
  2247. #define FLEXPWM4_SM0CAPTCTRLA (IMXRT_FLEXPWM4.offset032)
  2248. #define FLEXPWM4_SM0CAPTCOMPA (IMXRT_FLEXPWM4.offset034)
  2249. #define FLEXPWM4_SM0CAPTCTRLB (IMXRT_FLEXPWM4.offset036)
  2250. #define FLEXPWM4_SM0CAPTCOMPB (IMXRT_FLEXPWM4.offset038)
  2251. #define FLEXPWM4_SM0CAPTCTRLX (IMXRT_FLEXPWM4.offset03A)
  2252. #define FLEXPWM4_SM0CAPTCOMPX (IMXRT_FLEXPWM4.offset03C)
  2253. #define FLEXPWM4_SM0CVAL0 (IMXRT_FLEXPWM4.offset03E)
  2254. #define FLEXPWM4_SM0CVAL0CYC (IMXRT_FLEXPWM4.offset040)
  2255. #define FLEXPWM4_SM0CVAL1 (IMXRT_FLEXPWM4.offset042)
  2256. #define FLEXPWM4_SM0CVAL1CYC (IMXRT_FLEXPWM4.offset044)
  2257. #define FLEXPWM4_SM0CVAL2 (IMXRT_FLEXPWM4.offset046)
  2258. #define FLEXPWM4_SM0CVAL2CYC (IMXRT_FLEXPWM4.offset048)
  2259. #define FLEXPWM4_SM0CVAL3 (IMXRT_FLEXPWM4.offset04A)
  2260. #define FLEXPWM4_SM0CVAL3CYC (IMXRT_FLEXPWM4.offset04C)
  2261. #define FLEXPWM4_SM0CVAL4 (IMXRT_FLEXPWM4.offset04E)
  2262. #define FLEXPWM4_SM0CVAL4CYC (IMXRT_FLEXPWM4.offset050)
  2263. #define FLEXPWM4_SM0CVAL5 (IMXRT_FLEXPWM4.offset052)
  2264. #define FLEXPWM4_SM0CVAL5CYC (IMXRT_FLEXPWM4.offset054)
  2265. #define FLEXPWM4_SM1CNT (IMXRT_FLEXPWM4.offset060)
  2266. #define FLEXPWM4_SM1INIT (IMXRT_FLEXPWM4.offset062)
  2267. #define FLEXPWM4_SM1CTRL2 (IMXRT_FLEXPWM4.offset064)
  2268. #define FLEXPWM4_SM1CTRL (IMXRT_FLEXPWM4.offset066)
  2269. #define FLEXPWM4_SM1VAL0 (IMXRT_FLEXPWM4.offset068)
  2270. #define FLEXPWM4_SM1FRACVAL1 (IMXRT_FLEXPWM4.offset06A)
  2271. #define FLEXPWM4_SM1VAL1 (IMXRT_FLEXPWM4.offset06C)
  2272. #define FLEXPWM4_SM1FRACVAL2 (IMXRT_FLEXPWM4.offset06E)
  2273. #define FLEXPWM4_SM1VAL2 (IMXRT_FLEXPWM4.offset070)
  2274. #define FLEXPWM4_SM1FRACVAL3 (IMXRT_FLEXPWM4.offset072)
  2275. #define FLEXPWM4_SM1VAL3 (IMXRT_FLEXPWM4.offset074)
  2276. #define FLEXPWM4_SM1FRACVAL4 (IMXRT_FLEXPWM4.offset076)
  2277. #define FLEXPWM4_SM1VAL4 (IMXRT_FLEXPWM4.offset078)
  2278. #define FLEXPWM4_SM1FRACVAL5 (IMXRT_FLEXPWM4.offset07A)
  2279. #define FLEXPWM4_SM1VAL5 (IMXRT_FLEXPWM4.offset07C)
  2280. #define FLEXPWM4_SM1FRCTRL (IMXRT_FLEXPWM4.offset07E)
  2281. #define FLEXPWM4_SM1OCTRL (IMXRT_FLEXPWM4.offset080)
  2282. #define FLEXPWM4_SM1STS (IMXRT_FLEXPWM4.offset082)
  2283. #define FLEXPWM4_SM1INTEN (IMXRT_FLEXPWM4.offset084)
  2284. #define FLEXPWM4_SM1DMAEN (IMXRT_FLEXPWM4.offset086)
  2285. #define FLEXPWM4_SM1TCTRL (IMXRT_FLEXPWM4.offset088)
  2286. #define FLEXPWM4_SM1DISMAP0 (IMXRT_FLEXPWM4.offset08A)
  2287. #define FLEXPWM4_SM1DISMAP1 (IMXRT_FLEXPWM4.offset08C)
  2288. #define FLEXPWM4_SM1DTCNT0 (IMXRT_FLEXPWM4.offset08E)
  2289. #define FLEXPWM4_SM1DTCNT1 (IMXRT_FLEXPWM4.offset090)
  2290. #define FLEXPWM4_SM1CAPTCTRLA (IMXRT_FLEXPWM4.offset092)
  2291. #define FLEXPWM4_SM1CAPTCOMPA (IMXRT_FLEXPWM4.offset094)
  2292. #define FLEXPWM4_SM1CAPTCTRLB (IMXRT_FLEXPWM4.offset096)
  2293. #define FLEXPWM4_SM1CAPTCOMPB (IMXRT_FLEXPWM4.offset098)
  2294. #define FLEXPWM4_SM1CAPTCTRLX (IMXRT_FLEXPWM4.offset09A)
  2295. #define FLEXPWM4_SM1CAPTCOMPX (IMXRT_FLEXPWM4.offset09C)
  2296. #define FLEXPWM4_SM1CVAL0 (IMXRT_FLEXPWM4.offset09E)
  2297. #define FLEXPWM4_SM1CVAL0CYC (IMXRT_FLEXPWM4.offset0A0)
  2298. #define FLEXPWM4_SM1CVAL1 (IMXRT_FLEXPWM4.offset0A2)
  2299. #define FLEXPWM4_SM1CVAL1CYC (IMXRT_FLEXPWM4.offset0A4)
  2300. #define FLEXPWM4_SM1CVAL2 (IMXRT_FLEXPWM4.offset0A6)
  2301. #define FLEXPWM4_SM1CVAL2CYC (IMXRT_FLEXPWM4.offset0A8)
  2302. #define FLEXPWM4_SM1CVAL3 (IMXRT_FLEXPWM4.offset0AA)
  2303. #define FLEXPWM4_SM1CVAL3CYC (IMXRT_FLEXPWM4.offset0AC)
  2304. #define FLEXPWM4_SM1CVAL4 (IMXRT_FLEXPWM4.offset0AE)
  2305. #define FLEXPWM4_SM1CVAL4CYC (IMXRT_FLEXPWM4.offset0B0)
  2306. #define FLEXPWM4_SM1CVAL5 (IMXRT_FLEXPWM4.offset0B2)
  2307. #define FLEXPWM4_SM1CVAL5CYC (IMXRT_FLEXPWM4.offset0B4)
  2308. #define FLEXPWM4_SM2CNT (IMXRT_FLEXPWM4.offset0C0)
  2309. #define FLEXPWM4_SM2INIT (IMXRT_FLEXPWM4.offset0C2)
  2310. #define FLEXPWM4_SM2CTRL2 (IMXRT_FLEXPWM4.offset0C4)
  2311. #define FLEXPWM4_SM2CTRL (IMXRT_FLEXPWM4.offset0C6)
  2312. #define FLEXPWM4_SM2VAL0 (IMXRT_FLEXPWM4.offset0C8)
  2313. #define FLEXPWM4_SM2FRACVAL1 (IMXRT_FLEXPWM4.offset0CA)
  2314. #define FLEXPWM4_SM2VAL1 (IMXRT_FLEXPWM4.offset0CC)
  2315. #define FLEXPWM4_SM2FRACVAL2 (IMXRT_FLEXPWM4.offset0CE)
  2316. #define FLEXPWM4_SM2VAL2 (IMXRT_FLEXPWM4.offset0D0)
  2317. #define FLEXPWM4_SM2FRACVAL3 (IMXRT_FLEXPWM4.offset0D2)
  2318. #define FLEXPWM4_SM2VAL3 (IMXRT_FLEXPWM4.offset0D4)
  2319. #define FLEXPWM4_SM2FRACVAL4 (IMXRT_FLEXPWM4.offset0D6)
  2320. #define FLEXPWM4_SM2VAL4 (IMXRT_FLEXPWM4.offset0D8)
  2321. #define FLEXPWM4_SM2FRACVAL5 (IMXRT_FLEXPWM4.offset0DA)
  2322. #define FLEXPWM4_SM2VAL5 (IMXRT_FLEXPWM4.offset0DC)
  2323. #define FLEXPWM4_SM2FRCTRL (IMXRT_FLEXPWM4.offset0DE)
  2324. #define FLEXPWM4_SM2OCTRL (IMXRT_FLEXPWM4.offset0E0)
  2325. #define FLEXPWM4_SM2STS (IMXRT_FLEXPWM4.offset0E2)
  2326. #define FLEXPWM4_SM2INTEN (IMXRT_FLEXPWM4.offset0E4)
  2327. #define FLEXPWM4_SM2DMAEN (IMXRT_FLEXPWM4.offset0E6)
  2328. #define FLEXPWM4_SM2TCTRL (IMXRT_FLEXPWM4.offset0E8)
  2329. #define FLEXPWM4_SM2DISMAP0 (IMXRT_FLEXPWM4.offset0EA)
  2330. #define FLEXPWM4_SM2DISMAP1 (IMXRT_FLEXPWM4.offset0EC)
  2331. #define FLEXPWM4_SM2DTCNT0 (IMXRT_FLEXPWM4.offset0EE)
  2332. #define FLEXPWM4_SM2DTCNT1 (IMXRT_FLEXPWM4.offset0F0)
  2333. #define FLEXPWM4_SM2CAPTCTRLA (IMXRT_FLEXPWM4.offset0F2)
  2334. #define FLEXPWM4_SM2CAPTCOMPA (IMXRT_FLEXPWM4.offset0F4)
  2335. #define FLEXPWM4_SM2CAPTCTRLB (IMXRT_FLEXPWM4.offset0F6)
  2336. #define FLEXPWM4_SM2CAPTCOMPB (IMXRT_FLEXPWM4.offset0F8)
  2337. #define FLEXPWM4_SM2CAPTCTRLX (IMXRT_FLEXPWM4.offset0FA)
  2338. #define FLEXPWM4_SM2CAPTCOMPX (IMXRT_FLEXPWM4.offset0FC)
  2339. #define FLEXPWM4_SM2CVAL0 (IMXRT_FLEXPWM4.offset0FE)
  2340. #define FLEXPWM4_SM2CVAL0CYC (IMXRT_FLEXPWM4.offset100)
  2341. #define FLEXPWM4_SM2CVAL1 (IMXRT_FLEXPWM4.offset102)
  2342. #define FLEXPWM4_SM2CVAL1CYC (IMXRT_FLEXPWM4.offset104)
  2343. #define FLEXPWM4_SM2CVAL2 (IMXRT_FLEXPWM4.offset106)
  2344. #define FLEXPWM4_SM2CVAL2CYC (IMXRT_FLEXPWM4.offset108)
  2345. #define FLEXPWM4_SM2CVAL3 (IMXRT_FLEXPWM4.offset10A)
  2346. #define FLEXPWM4_SM2CVAL3CYC (IMXRT_FLEXPWM4.offset10C)
  2347. #define FLEXPWM4_SM2CVAL4 (IMXRT_FLEXPWM4.offset10E)
  2348. #define FLEXPWM4_SM2CVAL4CYC (IMXRT_FLEXPWM4.offset110)
  2349. #define FLEXPWM4_SM2CVAL5 (IMXRT_FLEXPWM4.offset112)
  2350. #define FLEXPWM4_SM2CVAL5CYC (IMXRT_FLEXPWM4.offset114)
  2351. #define FLEXPWM4_SM3CNT (IMXRT_FLEXPWM4.offset120)
  2352. #define FLEXPWM4_SM3INIT (IMXRT_FLEXPWM4.offset122)
  2353. #define FLEXPWM4_SM3CTRL2 (IMXRT_FLEXPWM4.offset124)
  2354. #define FLEXPWM4_SM3CTRL (IMXRT_FLEXPWM4.offset126)
  2355. #define FLEXPWM4_SM3VAL0 (IMXRT_FLEXPWM4.offset128)
  2356. #define FLEXPWM4_SM3FRACVAL1 (IMXRT_FLEXPWM4.offset12A)
  2357. #define FLEXPWM4_SM3VAL1 (IMXRT_FLEXPWM4.offset12C)
  2358. #define FLEXPWM4_SM3FRACVAL2 (IMXRT_FLEXPWM4.offset12E)
  2359. #define FLEXPWM4_SM3VAL2 (IMXRT_FLEXPWM4.offset130)
  2360. #define FLEXPWM4_SM3FRACVAL3 (IMXRT_FLEXPWM4.offset132)
  2361. #define FLEXPWM4_SM3VAL3 (IMXRT_FLEXPWM4.offset134)
  2362. #define FLEXPWM4_SM3FRACVAL4 (IMXRT_FLEXPWM4.offset136)
  2363. #define FLEXPWM4_SM3VAL4 (IMXRT_FLEXPWM4.offset138)
  2364. #define FLEXPWM4_SM3FRACVAL5 (IMXRT_FLEXPWM4.offset13A)
  2365. #define FLEXPWM4_SM3VAL5 (IMXRT_FLEXPWM4.offset13C)
  2366. #define FLEXPWM4_SM3FRCTRL (IMXRT_FLEXPWM4.offset13E)
  2367. #define FLEXPWM4_SM3OCTRL (IMXRT_FLEXPWM4.offset140)
  2368. #define FLEXPWM4_SM3STS (IMXRT_FLEXPWM4.offset142)
  2369. #define FLEXPWM4_SM3INTEN (IMXRT_FLEXPWM4.offset144)
  2370. #define FLEXPWM4_SM3DMAEN (IMXRT_FLEXPWM4.offset146)
  2371. #define FLEXPWM4_SM3TCTRL (IMXRT_FLEXPWM4.offset148)
  2372. #define FLEXPWM4_SM3DISMAP0 (IMXRT_FLEXPWM4.offset14A)
  2373. #define FLEXPWM4_SM3DISMAP1 (IMXRT_FLEXPWM4.offset14C)
  2374. #define FLEXPWM4_SM3DTCNT0 (IMXRT_FLEXPWM4.offset15E)
  2375. #define FLEXPWM4_SM3DTCNT1 (IMXRT_FLEXPWM4.offset150)
  2376. #define FLEXPWM4_SM3CAPTCTRLA (IMXRT_FLEXPWM4.offset152)
  2377. #define FLEXPWM4_SM3CAPTCOMPA (IMXRT_FLEXPWM4.offset154)
  2378. #define FLEXPWM4_SM3CAPTCTRLB (IMXRT_FLEXPWM4.offset156)
  2379. #define FLEXPWM4_SM3CAPTCOMPB (IMXRT_FLEXPWM4.offset158)
  2380. #define FLEXPWM4_SM3CAPTCTRLX (IMXRT_FLEXPWM4.offset15A)
  2381. #define FLEXPWM4_SM3CAPTCOMPX (IMXRT_FLEXPWM4.offset15C)
  2382. #define FLEXPWM4_SM3CVAL0 (IMXRT_FLEXPWM4.offset15E)
  2383. #define FLEXPWM4_SM3CVAL0CYC (IMXRT_FLEXPWM4.offset160)
  2384. #define FLEXPWM4_SM3CVAL1 (IMXRT_FLEXPWM4.offset162)
  2385. #define FLEXPWM4_SM3CVAL1CYC (IMXRT_FLEXPWM4.offset164)
  2386. #define FLEXPWM4_SM3CVAL2 (IMXRT_FLEXPWM4.offset166)
  2387. #define FLEXPWM4_SM3CVAL2CYC (IMXRT_FLEXPWM4.offset168)
  2388. #define FLEXPWM4_SM3CVAL3 (IMXRT_FLEXPWM4.offset16A)
  2389. #define FLEXPWM4_SM3CVAL3CYC (IMXRT_FLEXPWM4.offset16C)
  2390. #define FLEXPWM4_SM3CVAL4 (IMXRT_FLEXPWM4.offset16E)
  2391. #define FLEXPWM4_SM3CVAL4CYC (IMXRT_FLEXPWM4.offset170)
  2392. #define FLEXPWM4_SM3CVAL5 (IMXRT_FLEXPWM4.offset172)
  2393. #define FLEXPWM4_SM3CVAL5CYC (IMXRT_FLEXPWM4.offset174)
  2394. #define FLEXPWM4_OUTEN (IMXRT_FLEXPWM4.offset180)
  2395. #define FLEXPWM4_MASK (IMXRT_FLEXPWM4.offset182)
  2396. #define FLEXPWM4_SWCOUT (IMXRT_FLEXPWM4.offset184)
  2397. #define FLEXPWM4_DTSRCSEL (IMXRT_FLEXPWM4.offset186)
  2398. #define FLEXPWM4_MCTRL (IMXRT_FLEXPWM4.offset188)
  2399. #define FLEXPWM4_MCTRL2 (IMXRT_FLEXPWM4.offset18A)
  2400. #define FLEXPWM4_FCTRL0 (IMXRT_FLEXPWM4.offset18C)
  2401. #define FLEXPWM4_FSTS0 (IMXRT_FLEXPWM4.offset18E)
  2402. #define FLEXPWM4_FFILT0 (IMXRT_FLEXPWM4.offset190)
  2403. #define FLEXPWM4_FTST0 (IMXRT_FLEXPWM4.offset192)
  2404. #define FLEXPWM4_FCTRL20 (IMXRT_FLEXPWM4.offset194)
  2405. // page 1470
  2406. #define IMXRT_FLEXRAM (*(IMXRT_REGISTER32_t *)0x400B0000)
  2407. #define FLEXRAM_TCM_CTRL (IMXRT_FLEXRAM.offset000)
  2408. #define FLEXRAM_OCRAM_MAGIC_ADDR (IMXRT_FLEXRAM.offset004)
  2409. #define FLEXRAM_DTCM_MAGIC_ADDR (IMXRT_FLEXRAM.offset008)
  2410. #define FLEXRAM_ITCM_MAGIC_ADDR (IMXRT_FLEXRAM.offset00C)
  2411. #define FLEXRAM_INT_STATUS (IMXRT_FLEXRAM.offset010)
  2412. #define FLEXRAM_INT_STAT_EN (IMXRT_FLEXRAM.offset014)
  2413. #define FLEXRAM_INT_SIG_EN (IMXRT_FLEXRAM.offset018)
  2414. #define FLEXRAM_TCM_CTRL_FORCE_CLK_ON ((uint32_t)0x00000004)
  2415. #define FLEXRAM_TCM_CTRL_TCM_RWAIT_EN ((uint32_t)0x00000002)
  2416. #define FLEXRAM_TCM_CTRL_TCM_WWAIT_EN ((uint32_t)0x00000001)
  2417. #define FLEXRAM_INT_STATUS_OCRAM_ERR_STATUS ((uint32_t)0x00000020)
  2418. #define FLEXRAM_INT_STATUS_DTCM_ERR_STATUS ((uint32_t)0x00000010)
  2419. #define FLEXRAM_INT_STATUS_ITCM_ERR_STATUS ((uint32_t)0x00000008)
  2420. #define FLEXRAM_INT_STAT_EN_OCRAM_ERR_STAT_EN ((uint32_t)0x00000020)
  2421. #define FLEXRAM_INT_STAT_EN_DTCM_ERR_STAT_EN ((uint32_t)0x00000010)
  2422. #define FLEXRAM_INT_STAT_EN_ITCM_ERR_STAT_EN ((uint32_t)0x00000008)
  2423. #define FLEXRAM_INT_SIG_EN_OCRAM_ERR_SIG_EN ((uint32_t)0x00000020)
  2424. #define FLEXRAM_INT_SIG_EN_DTCM_ERR_SIG_EN ((uint32_t)0x00000010)
  2425. #define FLEXRAM_INT_SIG_EN_ITCM_ERR_SIG_EN ((uint32_t)0x00000008)
  2426. // page 1583
  2427. #define IMXRT_FLEXSPI (*(IMXRT_REGISTER32_t *)0x400B0000)
  2428. #define FLEXSPI_MCR0 (IMXRT_FLEXSPI.offset000)
  2429. #define FLEXSPI_MCR1 (IMXRT_FLEXSPI.offset004)
  2430. #define FLEXSPI_MCR2 (IMXRT_FLEXSPI.offset008)
  2431. #define FLEXSPI_AHBCR (IMXRT_FLEXSPI.offset00C)
  2432. #define FLEXSPI_INTEN (IMXRT_FLEXSPI.offset010)
  2433. #define FLEXSPI_INTR (IMXRT_FLEXSPI.offset014)
  2434. #define FLEXSPI_LUTKEY (IMXRT_FLEXSPI.offset018)
  2435. #define FLEXSPI_LUTCR (IMXRT_FLEXSPI.offset01C)
  2436. #define FLEXSPI_AHBRXBUF0CR0 (IMXRT_FLEXSPI.offset020)
  2437. #define FLEXSPI_AHBRXBUF1CR0 (IMXRT_FLEXSPI.offset024)
  2438. #define FLEXSPI_AHBRXBUF2CR0 (IMXRT_FLEXSPI.offset028)
  2439. #define FLEXSPI_AHBRXBUF3CR0 (IMXRT_FLEXSPI.offset02C)
  2440. #define FLEXSPI_FLSHA1CR0 (IMXRT_FLEXSPI.offset060)
  2441. #define FLEXSPI_FLSHA2CR0 (IMXRT_FLEXSPI.offset064)
  2442. #define FLEXSPI_FLSHB1CR0 (IMXRT_FLEXSPI.offset068)
  2443. #define FLEXSPI_FLSHB2CR0 (IMXRT_FLEXSPI.offset06C)
  2444. #define FLEXSPI_FLSHA1CR1 (IMXRT_FLEXSPI.offset070)
  2445. #define FLEXSPI_FLSHA2CR1 (IMXRT_FLEXSPI.offset074)
  2446. #define FLEXSPI_FLSHB1CR1 (IMXRT_FLEXSPI.offset078)
  2447. #define FLEXSPI_FLSHB2CR1 (IMXRT_FLEXSPI.offset07C)
  2448. #define FLEXSPI_FLSHA1CR2 (IMXRT_FLEXSPI.offset080)
  2449. #define FLEXSPI_FLSHA2CR2 (IMXRT_FLEXSPI.offset084)
  2450. #define FLEXSPI_FLSHB1CR2 (IMXRT_FLEXSPI.offset088)
  2451. #define FLEXSPI_FLSHB2CR2 (IMXRT_FLEXSPI.offset08C)
  2452. #define FLEXSPI_IPCR0 (IMXRT_FLEXSPI.offset0A0)
  2453. #define FLEXSPI_IPCR1 (IMXRT_FLEXSPI.offset0A4)
  2454. #define FLEXSPI_IPCMD (IMXRT_FLEXSPI.offset0B0)
  2455. #define FLEXSPI_DLPR (IMXRT_FLEXSPI.offset0B4)
  2456. #define FLEXSPI_IPRXFCR (IMXRT_FLEXSPI.offset0B8)
  2457. #define FLEXSPI_IPTXFCR (IMXRT_FLEXSPI.offset0BC)
  2458. #define FLEXSPI_DLLACR (IMXRT_FLEXSPI.offset0C0)
  2459. #define FLEXSPI_DLLBCR (IMXRT_FLEXSPI.offset0C4)
  2460. #define FLEXSPI_STS0 (IMXRT_FLEXSPI.offset0E0)
  2461. #define FLEXSPI_STS1 (IMXRT_FLEXSPI.offset0E4)
  2462. #define FLEXSPI_STS2 (IMXRT_FLEXSPI.offset0E8)
  2463. #define FLEXSPI_AHBSPNDSTS (IMXRT_FLEXSPI.offset0EC)
  2464. #define FLEXSPI_IPRXFSTS (IMXRT_FLEXSPI.offset0F0)
  2465. #define FLEXSPI_IPTXFSTS (IMXRT_FLEXSPI.offset0F4)
  2466. #define FLEXSPI_RFDR0 (IMXRT_FLEXSPI.offset100)
  2467. #define FLEXSPI_RFDR1 (IMXRT_FLEXSPI.offset104)
  2468. #define FLEXSPI_RFDR2 (IMXRT_FLEXSPI.offset108)
  2469. #define FLEXSPI_RFDR3 (IMXRT_FLEXSPI.offset10C)
  2470. #define FLEXSPI_RFDR4 (IMXRT_FLEXSPI.offset110)
  2471. #define FLEXSPI_RFDR5 (IMXRT_FLEXSPI.offset114)
  2472. #define FLEXSPI_RFDR6 (IMXRT_FLEXSPI.offset118)
  2473. #define FLEXSPI_RFDR7 (IMXRT_FLEXSPI.offset11C)
  2474. #define FLEXSPI_RFDR8 (IMXRT_FLEXSPI.offset120)
  2475. #define FLEXSPI_RFDR9 (IMXRT_FLEXSPI.offset124)
  2476. #define FLEXSPI_RFDR10 (IMXRT_FLEXSPI.offset128)
  2477. #define FLEXSPI_RFDR11 (IMXRT_FLEXSPI.offset12C)
  2478. #define FLEXSPI_RFDR12 (IMXRT_FLEXSPI.offset130)
  2479. #define FLEXSPI_RFDR13 (IMXRT_FLEXSPI.offset134)
  2480. #define FLEXSPI_RFDR14 (IMXRT_FLEXSPI.offset138)
  2481. #define FLEXSPI_RFDR15 (IMXRT_FLEXSPI.offset13C)
  2482. #define FLEXSPI_RFDR16 (IMXRT_FLEXSPI.offset140)
  2483. #define FLEXSPI_RFDR17 (IMXRT_FLEXSPI.offset144)
  2484. #define FLEXSPI_RFDR18 (IMXRT_FLEXSPI.offset148)
  2485. #define FLEXSPI_RFDR19 (IMXRT_FLEXSPI.offset14C)
  2486. #define FLEXSPI_RFDR20 (IMXRT_FLEXSPI.offset150)
  2487. #define FLEXSPI_RFDR21 (IMXRT_FLEXSPI.offset154)
  2488. #define FLEXSPI_RFDR22 (IMXRT_FLEXSPI.offset158)
  2489. #define FLEXSPI_RFDR23 (IMXRT_FLEXSPI.offset15C)
  2490. #define FLEXSPI_RFDR24 (IMXRT_FLEXSPI.offset160)
  2491. #define FLEXSPI_RFDR25 (IMXRT_FLEXSPI.offset164)
  2492. #define FLEXSPI_RFDR26 (IMXRT_FLEXSPI.offset168)
  2493. #define FLEXSPI_RFDR27 (IMXRT_FLEXSPI.offset16C)
  2494. #define FLEXSPI_RFDR28 (IMXRT_FLEXSPI.offset170)
  2495. #define FLEXSPI_RFDR29 (IMXRT_FLEXSPI.offset174)
  2496. #define FLEXSPI_RFDR30 (IMXRT_FLEXSPI.offset178)
  2497. #define FLEXSPI_RFDR31 (IMXRT_FLEXSPI.offset17C)
  2498. #define FLEXSPI_TFDR0 (IMXRT_FLEXSPI.offset180)
  2499. #define FLEXSPI_TFDR1 (IMXRT_FLEXSPI.offset184)
  2500. #define FLEXSPI_TFDR2 (IMXRT_FLEXSPI.offset188)
  2501. #define FLEXSPI_TFDR3 (IMXRT_FLEXSPI.offset18C)
  2502. #define FLEXSPI_TFDR4 (IMXRT_FLEXSPI.offset190)
  2503. #define FLEXSPI_TFDR5 (IMXRT_FLEXSPI.offset194)
  2504. #define FLEXSPI_TFDR6 (IMXRT_FLEXSPI.offset198)
  2505. #define FLEXSPI_TFDR7 (IMXRT_FLEXSPI.offset19C)
  2506. #define FLEXSPI_TFDR8 (IMXRT_FLEXSPI.offset1A0)
  2507. #define FLEXSPI_TFDR9 (IMXRT_FLEXSPI.offset1A4)
  2508. #define FLEXSPI_TFDR10 (IMXRT_FLEXSPI.offset1A8)
  2509. #define FLEXSPI_TFDR11 (IMXRT_FLEXSPI.offset1AC)
  2510. #define FLEXSPI_TFDR12 (IMXRT_FLEXSPI.offset1B0)
  2511. #define FLEXSPI_TFDR13 (IMXRT_FLEXSPI.offset1B4)
  2512. #define FLEXSPI_TFDR14 (IMXRT_FLEXSPI.offset1B8)
  2513. #define FLEXSPI_TFDR15 (IMXRT_FLEXSPI.offset1BC)
  2514. #define FLEXSPI_TFDR16 (IMXRT_FLEXSPI.offset1C0)
  2515. #define FLEXSPI_TFDR17 (IMXRT_FLEXSPI.offset1C4)
  2516. #define FLEXSPI_TFDR18 (IMXRT_FLEXSPI.offset1C8)
  2517. #define FLEXSPI_TFDR19 (IMXRT_FLEXSPI.offset1CC)
  2518. #define FLEXSPI_TFDR20 (IMXRT_FLEXSPI.offset1D0)
  2519. #define FLEXSPI_TFDR21 (IMXRT_FLEXSPI.offset1D4)
  2520. #define FLEXSPI_TFDR22 (IMXRT_FLEXSPI.offset1D8)
  2521. #define FLEXSPI_TFDR23 (IMXRT_FLEXSPI.offset1DC)
  2522. #define FLEXSPI_TFDR24 (IMXRT_FLEXSPI.offset1E0)
  2523. #define FLEXSPI_TFDR25 (IMXRT_FLEXSPI.offset1E4)
  2524. #define FLEXSPI_TFDR26 (IMXRT_FLEXSPI.offset1E8)
  2525. #define FLEXSPI_TFDR27 (IMXRT_FLEXSPI.offset1EC)
  2526. #define FLEXSPI_TFDR28 (IMXRT_FLEXSPI.offset1F0)
  2527. #define FLEXSPI_TFDR29 (IMXRT_FLEXSPI.offset1F4)
  2528. #define FLEXSPI_TFDR30 (IMXRT_FLEXSPI.offset1F8)
  2529. #define FLEXSPI_TFDR31 (IMXRT_FLEXSPI.offset1FC)
  2530. #define FLEXSPI_LUT0 (IMXRT_FLEXSPI.offset200)
  2531. #define FLEXSPI_LUT1 (IMXRT_FLEXSPI.offset204)
  2532. #define FLEXSPI_LUT2 (IMXRT_FLEXSPI.offset208)
  2533. #define FLEXSPI_LUT3 (IMXRT_FLEXSPI.offset20C)
  2534. #define FLEXSPI_LUT4 (IMXRT_FLEXSPI.offset210)
  2535. #define FLEXSPI_LUT5 (IMXRT_FLEXSPI.offset214)
  2536. #define FLEXSPI_LUT6 (IMXRT_FLEXSPI.offset218)
  2537. #define FLEXSPI_LUT7 (IMXRT_FLEXSPI.offset21C)
  2538. #define FLEXSPI_LUT8 (IMXRT_FLEXSPI.offset220)
  2539. #define FLEXSPI_LUT9 (IMXRT_FLEXSPI.offset224)
  2540. #define FLEXSPI_LUT10 (IMXRT_FLEXSPI.offset228)
  2541. #define FLEXSPI_LUT11 (IMXRT_FLEXSPI.offset22C)
  2542. #define FLEXSPI_LUT12 (IMXRT_FLEXSPI.offset230)
  2543. #define FLEXSPI_LUT13 (IMXRT_FLEXSPI.offset234)
  2544. #define FLEXSPI_LUT14 (IMXRT_FLEXSPI.offset238)
  2545. #define FLEXSPI_LUT15 (IMXRT_FLEXSPI.offset23C)
  2546. #define FLEXSPI_LUT16 (IMXRT_FLEXSPI.offset240)
  2547. #define FLEXSPI_LUT17 (IMXRT_FLEXSPI.offset244)
  2548. #define FLEXSPI_LUT18 (IMXRT_FLEXSPI.offset248)
  2549. #define FLEXSPI_LUT19 (IMXRT_FLEXSPI.offset24C)
  2550. #define FLEXSPI_LUT20 (IMXRT_FLEXSPI.offset250)
  2551. #define FLEXSPI_LUT21 (IMXRT_FLEXSPI.offset254)
  2552. #define FLEXSPI_LUT22 (IMXRT_FLEXSPI.offset258)
  2553. #define FLEXSPI_LUT23 (IMXRT_FLEXSPI.offset25C)
  2554. #define FLEXSPI_LUT24 (IMXRT_FLEXSPI.offset260)
  2555. #define FLEXSPI_LUT25 (IMXRT_FLEXSPI.offset264)
  2556. #define FLEXSPI_LUT26 (IMXRT_FLEXSPI.offset268)
  2557. #define FLEXSPI_LUT27 (IMXRT_FLEXSPI.offset26C)
  2558. #define FLEXSPI_LUT28 (IMXRT_FLEXSPI.offset270)
  2559. #define FLEXSPI_LUT29 (IMXRT_FLEXSPI.offset274)
  2560. #define FLEXSPI_LUT30 (IMXRT_FLEXSPI.offset278)
  2561. #define FLEXSPI_LUT31 (IMXRT_FLEXSPI.offset27C)
  2562. #define FLEXSPI_LUT32 (IMXRT_FLEXSPI.offset280)
  2563. #define FLEXSPI_LUT33 (IMXRT_FLEXSPI.offset284)
  2564. #define FLEXSPI_LUT34 (IMXRT_FLEXSPI.offset288)
  2565. #define FLEXSPI_LUT35 (IMXRT_FLEXSPI.offset28C)
  2566. #define FLEXSPI_LUT36 (IMXRT_FLEXSPI.offset290)
  2567. #define FLEXSPI_LUT37 (IMXRT_FLEXSPI.offset294)
  2568. #define FLEXSPI_LUT38 (IMXRT_FLEXSPI.offset298)
  2569. #define FLEXSPI_LUT39 (IMXRT_FLEXSPI.offset29C)
  2570. #define FLEXSPI_LUT40 (IMXRT_FLEXSPI.offset2A0)
  2571. #define FLEXSPI_LUT41 (IMXRT_FLEXSPI.offset2A4)
  2572. #define FLEXSPI_LUT42 (IMXRT_FLEXSPI.offset2A8)
  2573. #define FLEXSPI_LUT43 (IMXRT_FLEXSPI.offset2AC)
  2574. #define FLEXSPI_LUT44 (IMXRT_FLEXSPI.offset2B0)
  2575. #define FLEXSPI_LUT45 (IMXRT_FLEXSPI.offset2B4)
  2576. #define FLEXSPI_LUT46 (IMXRT_FLEXSPI.offset2B8)
  2577. #define FLEXSPI_LUT47 (IMXRT_FLEXSPI.offset2BC)
  2578. #define FLEXSPI_LUT48 (IMXRT_FLEXSPI.offset2C0)
  2579. #define FLEXSPI_LUT49 (IMXRT_FLEXSPI.offset2C4)
  2580. #define FLEXSPI_LUT50 (IMXRT_FLEXSPI.offset2C8)
  2581. #define FLEXSPI_LUT51 (IMXRT_FLEXSPI.offset2CC)
  2582. #define FLEXSPI_LUT52 (IMXRT_FLEXSPI.offset2D0)
  2583. #define FLEXSPI_LUT53 (IMXRT_FLEXSPI.offset2D4)
  2584. #define FLEXSPI_LUT54 (IMXRT_FLEXSPI.offset2D8)
  2585. #define FLEXSPI_LUT55 (IMXRT_FLEXSPI.offset2DC)
  2586. #define FLEXSPI_LUT56 (IMXRT_FLEXSPI.offset2E0)
  2587. #define FLEXSPI_LUT57 (IMXRT_FLEXSPI.offset2E4)
  2588. #define FLEXSPI_LUT58 (IMXRT_FLEXSPI.offset2E8)
  2589. #define FLEXSPI_LUT59 (IMXRT_FLEXSPI.offset2EC)
  2590. #define FLEXSPI_LUT60 (IMXRT_FLEXSPI.offset2F0)
  2591. #define FLEXSPI_LUT61 (IMXRT_FLEXSPI.offset2F4)
  2592. #define FLEXSPI_LUT62 (IMXRT_FLEXSPI.offset2F8)
  2593. #define FLEXSPI_LUT63 (IMXRT_FLEXSPI.offset2FC)
  2594. // page 1595
  2595. #define IMXRT_GPC (*(IMXRT_REGISTER32_t *)0x400F4000)
  2596. #define GPC_CNTR (IMXRT_GPC.offset000)
  2597. #define GPC_IMR1 (IMXRT_GPC.offset008)
  2598. #define GPC_IMR2 (IMXRT_GPC.offset00C)
  2599. #define GPC_IMR3 (IMXRT_GPC.offset010)
  2600. #define GPC_IMR4 (IMXRT_GPC.offset014)
  2601. #define GPC_ISR1 (IMXRT_GPC.offset018)
  2602. #define GPC_ISR2 (IMXRT_GPC.offset01C)
  2603. #define GPC_ISR3 (IMXRT_GPC.offset020)
  2604. #define GPC_ISR4 (IMXRT_GPC.offset024)
  2605. #define GPC_IMR5 (IMXRT_GPC.offset034)
  2606. #define GPC_ISR5 (IMXRT_GPC.offset038)
  2607. #define GPC_CNTR_PDRAM0_PGE ((uint32_t)0x00400000)
  2608. #define GPC_CNTR_MEGA_PUP_REQ ((uint32_t)0x00000008)
  2609. #define GPC_CNTR_MEGA_PDN_REQ ((uint32_t)0x00000004)
  2610. // page 1602
  2611. #define PGC_MEGA_CTRL (IMXRT_GPC.offset220)
  2612. #define PGC_MEGA_PUPSCR (IMXRT_GPC.offset224)
  2613. #define PGC_MEGA_PDNSCR (IMXRT_GPC.offset228)
  2614. #define PGC_MEGA_SR (IMXRT_GPC.offset22C)
  2615. #define PGC_CPU_CTRL (IMXRT_GPC.offset2A0)
  2616. #define PGC_CPU_PUPSCR (IMXRT_GPC.offset2A4)
  2617. #define PGC_CPU_PDNSCR (IMXRT_GPC.offset2A8)
  2618. #define PGC_CPU_SR (IMXRT_GPC.offset2AC)
  2619. #define PGC_MEGA_CTRL_PCR ((uint32_t)0x00000001)
  2620. #define PGC_MEGA_PUPSCR_SW2ISO(n) ((uint32_t)(((n) & 0x3F) << 8))
  2621. #define PGC_MEGA_PUPSCR_SW(n) ((uint32_t)(((n) & 0x3F) << 0))
  2622. #define PGC_MEGA_PDNSCR_ISO2SW(n) ((uint32_t)(((n) & 0x3F) << 8))
  2623. #define PGC_MEGA_PDNSCR_ISO(n) ((uint32_t)(((n) & 0x3F) << 0))
  2624. #define PGC_MEGA_SR_PSR ((uint32_t)0x00000001)
  2625. #define PGC_CPU_CTRL_PCR ((uint32_t)0x00000001)
  2626. #define PGC_CPU_PUPSCR_SW2ISO(n) ((uint32_t)(((n) & 0x3F) << 8))
  2627. #define PGC_CPU_PUPSCR_SW(n) ((uint32_t)(((n) & 0x3F) << 0))
  2628. #define PGC_CPU_PDNSCR_ISO2SW(n) ((uint32_t)(((n) & 0x3F) << 8))
  2629. #define PGC_CPU_PDNSCR_ISO(n) ((uint32_t)(((n) & 0x3F) << 0))
  2630. #define PGC_CPU_SR_PSR ((uint32_t)0x00000001)
  2631. // page 1658
  2632. #define IMXRT_GPIO1 (*(IMXRT_REGISTER32_t *)0x401B8000)
  2633. #define GPIO1_DR (IMXRT_GPIO1.offset000)
  2634. #define GPIO1_GDIR (IMXRT_GPIO1.offset004)
  2635. #define GPIO1_PSR (IMXRT_GPIO1.offset008)
  2636. #define GPIO1_ICR1 (IMXRT_GPIO1.offset00C)
  2637. #define GPIO1_ICR2 (IMXRT_GPIO1.offset010)
  2638. #define GPIO1_IMR (IMXRT_GPIO1.offset014)
  2639. #define GPIO1_ISR (IMXRT_GPIO1.offset018)
  2640. #define GPIO1_EDGE_SEL (IMXRT_GPIO1.offset01C)
  2641. #define IMXRT_GPIO2 (*(IMXRT_REGISTER32_t *)0x401BC000)
  2642. #define GPIO2_DR (IMXRT_GPIO2.offset000)
  2643. #define GPIO2_GDIR (IMXRT_GPIO2.offset004)
  2644. #define GPIO2_PSR (IMXRT_GPIO2.offset008)
  2645. #define GPIO2_ICR1 (IMXRT_GPIO2.offset00C)
  2646. #define GPIO2_ICR2 (IMXRT_GPIO2.offset010)
  2647. #define GPIO2_IMR (IMXRT_GPIO2.offset014)
  2648. #define GPIO2_ISR (IMXRT_GPIO2.offset018)
  2649. #define GPIO2_EDGE_SEL (IMXRT_GPIO2.offset01C)
  2650. #define IMXRT_GPIO3 (*(IMXRT_REGISTER32_t *)0x401C0000)
  2651. #define GPIO3_DR (IMXRT_GPIO3.offset000)
  2652. #define GPIO3_GDIR (IMXRT_GPIO3.offset004)
  2653. #define GPIO3_PSR (IMXRT_GPIO3.offset008)
  2654. #define GPIO3_ICR1 (IMXRT_GPIO3.offset00C)
  2655. #define GPIO3_ICR2 (IMXRT_GPIO3.offset010)
  2656. #define GPIO3_IMR (IMXRT_GPIO3.offset014)
  2657. #define GPIO3_ISR (IMXRT_GPIO3.offset018)
  2658. #define GPIO3_EDGE_SEL (IMXRT_GPIO3.offset01C)
  2659. #define IMXRT_GPIO4 (*(IMXRT_REGISTER32_t *)0x401C4000)
  2660. #define GPIO4_DR (IMXRT_GPIO4.offset000)
  2661. #define GPIO4_GDIR (IMXRT_GPIO4.offset004)
  2662. #define GPIO4_PSR (IMXRT_GPIO4.offset008)
  2663. #define GPIO4_ICR1 (IMXRT_GPIO4.offset00C)
  2664. #define GPIO4_ICR2 (IMXRT_GPIO4.offset010)
  2665. #define GPIO4_IMR (IMXRT_GPIO4.offset014)
  2666. #define GPIO4_ISR (IMXRT_GPIO4.offset018)
  2667. #define GPIO4_EDGE_SEL (IMXRT_GPIO4.offset01C)
  2668. #define IMXRT_GPIO5 (*(IMXRT_REGISTER32_t *)0x400C0000)
  2669. #define GPIO5_DR (IMXRT_GPIO5.offset000)
  2670. #define GPIO5_GDIR (IMXRT_GPIO5.offset004)
  2671. #define GPIO5_PSR (IMXRT_GPIO5.offset008)
  2672. #define GPIO5_ICR1 (IMXRT_GPIO5.offset00C)
  2673. #define GPIO5_ICR2 (IMXRT_GPIO5.offset010)
  2674. #define GPIO5_IMR (IMXRT_GPIO5.offset014)
  2675. #define GPIO5_ISR (IMXRT_GPIO5.offset018)
  2676. #define GPIO5_EDGE_SEL (IMXRT_GPIO5.offset01C)
  2677. // page 1686
  2678. #define IMXRT_GPT1 (*(IMXRT_REGISTER32_t *)0x401EC000)
  2679. #define GPT1_CR (IMXRT_GPT1.offset000)
  2680. #define GPT1_PR (IMXRT_GPT1.offset004)
  2681. #define GPT1_SR (IMXRT_GPT1.offset008)
  2682. #define GPT1_IR (IMXRT_GPT1.offset00C)
  2683. #define GPT1_OCR1 (IMXRT_GPT1.offset010)
  2684. #define GPT1_OCR2 (IMXRT_GPT1.offset014)
  2685. #define GPT1_OCR3 (IMXRT_GPT1.offset018)
  2686. #define GPT1_ICR1 (IMXRT_GPT1.offset01C)
  2687. #define GPT1_ICR2 (IMXRT_GPT1.offset020)
  2688. #define GPT1_CNT (IMXRT_GPT1.offset024)
  2689. #define IMXRT_GPT2 (*(IMXRT_REGISTER32_t *)0x401F0000)
  2690. #define GPT2_CR (IMXRT_GPT2.offset000)
  2691. #define GPT2_PR (IMXRT_GPT2.offset004)
  2692. #define GPT2_SR (IMXRT_GPT2.offset008)
  2693. #define GPT2_IR (IMXRT_GPT2.offset00C)
  2694. #define GPT2_OCR1 (IMXRT_GPT2.offset010)
  2695. #define GPT2_OCR2 (IMXRT_GPT2.offset014)
  2696. #define GPT2_OCR3 (IMXRT_GPT2.offset018)
  2697. #define GPT2_ICR1 (IMXRT_GPT2.offset01C)
  2698. #define GPT2_ICR2 (IMXRT_GPT2.offset020)
  2699. #define GPT2_CNT (IMXRT_GPT2.offset024)
  2700. // page 1669
  2701. #define IMXRT_IOMUXC_GPR (*(IMXRT_REGISTER32_t *)0x400AC000)
  2702. #define IOMUXC_GPR_GPR0 (IMXRT_IOMUXC_GPR.offset000)
  2703. #define IOMUXC_GPR_GPR1 (IMXRT_IOMUXC_GPR.offset004)
  2704. #define IOMUXC_GPR_GPR2 (IMXRT_IOMUXC_GPR.offset008)
  2705. #define IOMUXC_GPR_GPR3 (IMXRT_IOMUXC_GPR.offset00C)
  2706. #define IOMUXC_GPR_GPR4 (IMXRT_IOMUXC_GPR.offset010)
  2707. #define IOMUXC_GPR_GPR5 (IMXRT_IOMUXC_GPR.offset014)
  2708. #define IOMUXC_GPR_GPR6 (IMXRT_IOMUXC_GPR.offset018)
  2709. #define IOMUXC_GPR_GPR7 (IMXRT_IOMUXC_GPR.offset01C)
  2710. #define IOMUXC_GPR_GPR8 (IMXRT_IOMUXC_GPR.offset020)
  2711. #define IOMUXC_GPR_GPR9 (IMXRT_IOMUXC_GPR.offset024)
  2712. #define IOMUXC_GPR_GPR10 (IMXRT_IOMUXC_GPR.offset028)
  2713. #define IOMUXC_GPR_GPR11 (IMXRT_IOMUXC_GPR.offset02C)
  2714. #define IOMUXC_GPR_GPR12 (IMXRT_IOMUXC_GPR.offset030)
  2715. #define IOMUXC_GPR_GPR13 (IMXRT_IOMUXC_GPR.offset034)
  2716. #define IOMUXC_GPR_GPR14 (IMXRT_IOMUXC_GPR.offset038)
  2717. #define IOMUXC_GPR_GPR15 (IMXRT_IOMUXC_GPR.offset03C)
  2718. #define IOMUXC_GPR_GPR16 (IMXRT_IOMUXC_GPR.offset040)
  2719. #define IOMUXC_GPR_GPR17 (IMXRT_IOMUXC_GPR.offset044)
  2720. #define IOMUXC_GPR_GPR18 (IMXRT_IOMUXC_GPR.offset048)
  2721. #define IOMUXC_GPR_GPR19 (IMXRT_IOMUXC_GPR.offset04C)
  2722. #define IOMUXC_GPR_GPR20 (IMXRT_IOMUXC_GPR.offset050)
  2723. #define IOMUXC_GPR_GPR21 (IMXRT_IOMUXC_GPR.offset054)
  2724. #define IOMUXC_GPR_GPR22 (IMXRT_IOMUXC_GPR.offset058)
  2725. #define IOMUXC_GPR_GPR23 (IMXRT_IOMUXC_GPR.offset05C)
  2726. #define IOMUXC_GPR_GPR24 (IMXRT_IOMUXC_GPR.offset060)
  2727. #define IOMUXC_GPR_GPR25 (IMXRT_IOMUXC_GPR.offset064)
  2728. #define IOMUXC_GPR_GPR1_CM7_FORCE_HCLK_EN ((uint32_t)0x80000000)
  2729. #define IOMUXC_GPR_GPR1_ENET_IPG_CLK_S_EN ((uint32_t)0x00800000)
  2730. #define IOMUXC_GPR_GPR1_EXC_MON ((uint32_t)0x00400000)
  2731. #define IOMUXC_GPR_GPR1_SAI3_MCLK_DIR ((uint32_t)0x00200000)
  2732. #define IOMUXC_GPR_GPR1_SAI2_MCLK_DIR ((uint32_t)0x00100000)
  2733. #define IOMUXC_GPR_GPR1_SAI1_MCLK_DIR ((uint32_t)0x00080000)
  2734. #define IOMUXC_GPR_GPR1_ENET1_TX_CLK_DIR ((uint32_t)0x00020000)
  2735. #define IOMUXC_GPR_GPR1_USB_EXP_MODE ((uint32_t)0x00008000)
  2736. #define IOMUXC_GPR_GPR1_ENET1_CLK_SEL ((uint32_t)0x00002000)
  2737. #define IOMUXC_GPR_GPR1_GINT ((uint32_t)0x00001000)
  2738. #define IOMUXC_GPR_GPR1_SAI3_MCLK3_SEL(n) ((uint32_t)(((n) & 0x03) << 10))
  2739. #define IOMUXC_GPR_GPR1_SAI2_MCLK3_SEL(n) ((uint32_t)(((n) & 0x03) << 8))
  2740. #define IOMUXC_GPR_GPR1_SAI1_MCLK3_SEL(n) ((uint32_t)(((n) & 0x03) << 6))
  2741. #define IOMUXC_GPR_GPR1_SAI1_MCLK2_SEL(n) ((uint32_t)(((n) & 0x07) << 3))
  2742. #define IOMUXC_GPR_GPR1_SAI1_MCLK1_SEL(n) ((uint32_t)(((n) & 0x07) << 0))
  2743. #define IOMUXC_GPR_GPR1_SAI3_MCLK3_SEL_MASK IOMUXC_GPR_GPR1_SAI3_MCLK3_SEL(3)
  2744. #define IOMUXC_GPR_GPR1_SAI2_MCLK3_SEL_MASK IOMUXC_GPR_GPR1_SAI2_MCLK3_SEL(3)
  2745. #define IOMUXC_GPR_GPR1_SAI1_MCLK3_SEL_MASK IOMUXC_GPR_GPR1_SAI1_MCLK3_SEL(3)
  2746. #define IOMUXC_GPR_GPR1_SAI1_MCLK2_SEL_MASK IOMUXC_GPR_GPR1_SAI1_MCLK2_SEL(7)
  2747. #define IOMUXC_GPR_GPR1_SAI1_MCLK1_SEL_MASK IOMUXC_GPR_GPR1_SAI1_MCLK1_SEL(7)
  2748. #define IOMUXC_GPR_GPR2_QTIMER4_TMR_CNTS_FREEZE ((uint32_t)0x80000000)
  2749. #define IOMUXC_GPR_GPR2_QTIMER3_TMR_CNTS_FREEZE ((uint32_t)0x40000000)
  2750. #define IOMUXC_GPR_GPR2_QTIMER2_TMR_CNTS_FREEZE ((uint32_t)0x20000000)
  2751. #define IOMUXC_GPR_GPR2_QTIMER1_TMR_CNTS_FREEZE ((uint32_t)0x10000000)
  2752. #define IOMUXC_GPR_GPR2_MQS_OVERSAMPLE ((uint32_t)0x04000000)
  2753. #define IOMUXC_GPR_GPR2_MQS_EN ((uint32_t)0x02000000)
  2754. #define IOMUXC_GPR_GPR2_MQS_SW_RST ((uint32_t)0x01000000)
  2755. #define IOMUXC_GPR_GPR2_MQS_CLK_DIV(n) ((uint32_t)(((n) & 0xFF) << 16))
  2756. #define IOMUXC_GPR_GPR2_L2_MEM_DEEPSLEEP ((uint32_t)0x00004000)
  2757. #define IOMUXC_GPR_GPR2_L2_MEM_EN_POWERSAVING ((uint32_t)0x00001000)
  2758. #define IOMUXC_GPR_GPR2_MQS_CLK_DIV_MASK IOMUXC_GPR_GPR2_MQS_CLK_DIV(255)
  2759. #define IOMUXC_GPR_GPR3_OCRAM_STATUS(n) ((uint32_t)(((n) & 0x0F) << 16))
  2760. #define IOMUXC_GPR_GPR3_DCP_KEY_SEL ((uint32_t)0x00000010)
  2761. #define IOMUXC_GPR_GPR3_OCRAM_CTL(n) ((uint32_t)(((n) & 0x0F) << 0))
  2762. #define IOMUXC_GPR_GPR4_FLEXIO2_STOP_ACK ((uint32_t)0x20000000)
  2763. #define IOMUXC_GPR_GPR4_FLEXIO1_STOP_ACK ((uint32_t)0x10000000)
  2764. #define IOMUXC_GPR_GPR4_FLEXSPI_STOP_ACK ((uint32_t)0x08000000)
  2765. #define IOMUXC_GPR_GPR4_PIT_STOP_ACK ((uint32_t)0x04000000)
  2766. #define IOMUXC_GPR_GPR4_SEMC_STOP_ACK ((uint32_t)0x02000000)
  2767. #define IOMUXC_GPR_GPR4_SAI3_STOP_ACK ((uint32_t)0x00800000)
  2768. #define IOMUXC_GPR_GPR4_SAI2_STOP_ACK ((uint32_t)0x00400000)
  2769. #define IOMUXC_GPR_GPR4_SAI1_STOP_ACK ((uint32_t)0x00200000)
  2770. #define IOMUXC_GPR_GPR4_ENET_STOP_ACK ((uint32_t)0x00100000)
  2771. #define IOMUXC_GPR_GPR4_TRNG_STOP_ACK ((uint32_t)0x00080000)
  2772. #define IOMUXC_GPR_GPR4_CAN2_STOP_ACK ((uint32_t)0x00040000)
  2773. #define IOMUXC_GPR_GPR4_CAN1_STOP_ACK ((uint32_t)0x00020000)
  2774. #define IOMUXC_GPR_GPR4_EDMA_STOP_ACK ((uint32_t)0x00010000)
  2775. #define IOMUXC_GPR_GPR4_FLEXIO2_STOP_REQ ((uint32_t)0x00002000)
  2776. #define IOMUXC_GPR_GPR4_FLEXIO1_STOP_REQ ((uint32_t)0x00001000)
  2777. #define IOMUXC_GPR_GPR4_FLEXSPI_STOP_REQ ((uint32_t)0x00000800)
  2778. #define IOMUXC_GPR_GPR4_PIT_STOP_REQ ((uint32_t)0x00000400)
  2779. #define IOMUXC_GPR_GPR4_SEMC_STOP_REQ ((uint32_t)0x00000200)
  2780. #define IOMUXC_GPR_GPR4_SAI3_STOP_REQ ((uint32_t)0x00000080)
  2781. #define IOMUXC_GPR_GPR4_SAI2_STOP_REQ ((uint32_t)0x00000040)
  2782. #define IOMUXC_GPR_GPR4_SAI1_STOP_REQ ((uint32_t)0x00000020)
  2783. #define IOMUXC_GPR_GPR4_ENET_STOP_REQ ((uint32_t)0x00000010)
  2784. #define IOMUXC_GPR_GPR4_TRNG_STOP_REQ ((uint32_t)0x00000008)
  2785. #define IOMUXC_GPR_GPR4_CAN2_STOP_REQ ((uint32_t)0x00000004)
  2786. #define IOMUXC_GPR_GPR4_CAN1_STOP_REQ ((uint32_t)0x00000002)
  2787. #define IOMUXC_GPR_GPR4_EDMA_STOP_REQ ((uint32_t)0x00000001)
  2788. #define IOMUXC_GPR_GPR5_VREF_1M_CLK_GPT2 ((uint32_t)0x20000000)
  2789. #define IOMUXC_GPR_GPR5_VREF_1M_CLK_GPT1 ((uint32_t)0x10000000)
  2790. #define IOMUXC_GPR_GPR5_ENET_EVENT3IN_SEL ((uint32_t)0x02000000)
  2791. #define IOMUXC_GPR_GPR5_GPT2_CAPIN2_SEL ((uint32_t)0x01000000)
  2792. #define IOMUXC_GPR_GPR5_GPT2_CAPIN1_SEL ((uint32_t)0x00800000)
  2793. #define IOMUXC_GPR_GPR5_WDOG2_MASK ((uint32_t)0x00000080)
  2794. #define IOMUXC_GPR_GPR5_WDOG1_MASK ((uint32_t)0x00000040)
  2795. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_19 ((uint32_t)0x80000000)
  2796. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_18 ((uint32_t)0x40000000)
  2797. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_17 ((uint32_t)0x20000000)
  2798. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_16 ((uint32_t)0x10000000)
  2799. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_15 ((uint32_t)0x08000000)
  2800. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_14 ((uint32_t)0x04000000)
  2801. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_13 ((uint32_t)0x02000000)
  2802. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_12 ((uint32_t)0x01000000)
  2803. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_11 ((uint32_t)0x00800000)
  2804. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_10 ((uint32_t)0x00400000)
  2805. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_9 ((uint32_t)0x00200000)
  2806. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_8 ((uint32_t)0x00100000)
  2807. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_7 ((uint32_t)0x00080000)
  2808. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_6 ((uint32_t)0x00040000)
  2809. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_5 ((uint32_t)0x00020000)
  2810. #define IOMUXC_GPR_GPR6_IOMUXC_XBAR_DIR_SEL_4 ((uint32_t)0x00010000)
  2811. #define IOMUXC_GPR_GPR6_QTIMER4_TRM3_INPUT_SEL ((uint32_t)0x00008000)
  2812. #define IOMUXC_GPR_GPR6_QTIMER4_TRM2_INPUT_SEL ((uint32_t)0x00004000)
  2813. #define IOMUXC_GPR_GPR6_QTIMER4_TRM1_INPUT_SEL ((uint32_t)0x00002000)
  2814. #define IOMUXC_GPR_GPR6_QTIMER4_TRM0_INPUT_SEL ((uint32_t)0x00001000)
  2815. #define IOMUXC_GPR_GPR6_QTIMER3_TRM3_INPUT_SEL ((uint32_t)0x00000800)
  2816. #define IOMUXC_GPR_GPR6_QTIMER3_TRM2_INPUT_SEL ((uint32_t)0x00000400)
  2817. #define IOMUXC_GPR_GPR6_QTIMER3_TRM1_INPUT_SEL ((uint32_t)0x00000200)
  2818. #define IOMUXC_GPR_GPR6_QTIMER3_TRM0_INPUT_SEL ((uint32_t)0x00000100)
  2819. #define IOMUXC_GPR_GPR6_QTIMER2_TRM3_INPUT_SEL ((uint32_t)0x00000080)
  2820. #define IOMUXC_GPR_GPR6_QTIMER2_TRM2_INPUT_SEL ((uint32_t)0x00000040)
  2821. #define IOMUXC_GPR_GPR6_QTIMER2_TRM1_INPUT_SEL ((uint32_t)0x00000020)
  2822. #define IOMUXC_GPR_GPR6_QTIMER2_TRM0_INPUT_SEL ((uint32_t)0x00000010)
  2823. #define IOMUXC_GPR_GPR6_QTIMER1_TRM3_INPUT_SEL ((uint32_t)0x00000008)
  2824. #define IOMUXC_GPR_GPR6_QTIMER1_TRM2_INPUT_SEL ((uint32_t)0x00000004)
  2825. #define IOMUXC_GPR_GPR6_QTIMER1_TRM1_INPUT_SEL ((uint32_t)0x00000002)
  2826. #define IOMUXC_GPR_GPR6_QTIMER1_TRM0_INPUT_SEL ((uint32_t)0x00000001)
  2827. #define IOMUXC_GPR_GPR7_LPUART8_STOP_ACK ((uint32_t)0x80000000)
  2828. #define IOMUXC_GPR_GPR7_LPUART7_STOP_ACK ((uint32_t)0x40000000)
  2829. #define IOMUXC_GPR_GPR7_LPUART6_STOP_ACK ((uint32_t)0x20000000)
  2830. #define IOMUXC_GPR_GPR7_LPUART5_STOP_ACK ((uint32_t)0x10000000)
  2831. #define IOMUXC_GPR_GPR7_LPUART4_STOP_ACK ((uint32_t)0x08000000)
  2832. #define IOMUXC_GPR_GPR7_LPUART3_STOP_ACK ((uint32_t)0x04000000)
  2833. #define IOMUXC_GPR_GPR7_LPUART2_STOP_ACK ((uint32_t)0x02000000)
  2834. #define IOMUXC_GPR_GPR7_LPUART1_STOP_ACK ((uint32_t)0x01000000)
  2835. #define IOMUXC_GPR_GPR7_LPSPI4_STOP_ACK ((uint32_t)0x00800000)
  2836. #define IOMUXC_GPR_GPR7_LPSPI3_STOP_ACK ((uint32_t)0x00400000)
  2837. #define IOMUXC_GPR_GPR7_LPSPI2_STOP_ACK ((uint32_t)0x00200000)
  2838. #define IOMUXC_GPR_GPR7_LPSPI1_STOP_ACK ((uint32_t)0x00100000)
  2839. #define IOMUXC_GPR_GPR7_LPI2C4_STOP_ACK ((uint32_t)0x00080000)
  2840. #define IOMUXC_GPR_GPR7_LPI2C3_STOP_ACK ((uint32_t)0x00040000)
  2841. #define IOMUXC_GPR_GPR7_LPI2C2_STOP_ACK ((uint32_t)0x00020000)
  2842. #define IOMUXC_GPR_GPR7_LPI2C1_STOP_ACK ((uint32_t)0x00010000)
  2843. #define IOMUXC_GPR_GPR7_LPUART8_STOP_REQ ((uint32_t)0x00008000)
  2844. #define IOMUXC_GPR_GPR7_LPUART7_STOP_REQ ((uint32_t)0x00004000)
  2845. #define IOMUXC_GPR_GPR7_LPUART6_STOP_REQ ((uint32_t)0x00002000)
  2846. #define IOMUXC_GPR_GPR7_LPUART5_STOP_REQ ((uint32_t)0x00001000)
  2847. #define IOMUXC_GPR_GPR7_LPUART4_STOP_REQ ((uint32_t)0x00000800)
  2848. #define IOMUXC_GPR_GPR7_LPUART3_STOP_REQ ((uint32_t)0x00000400)
  2849. #define IOMUXC_GPR_GPR7_LPUART2_STOP_REQ ((uint32_t)0x00000200)
  2850. #define IOMUXC_GPR_GPR7_LPUART1_STOP_REQ ((uint32_t)0x00000100)
  2851. #define IOMUXC_GPR_GPR7_LPSPI4_STOP_REQ ((uint32_t)0x00000080)
  2852. #define IOMUXC_GPR_GPR7_LPSPI3_STOP_REQ ((uint32_t)0x00000040)
  2853. #define IOMUXC_GPR_GPR7_LPSPI2_STOP_REQ ((uint32_t)0x00000020)
  2854. #define IOMUXC_GPR_GPR7_LPSPI1_STOP_REQ ((uint32_t)0x00000010)
  2855. #define IOMUXC_GPR_GPR7_LPI2C4_STOP_REQ ((uint32_t)0x00000008)
  2856. #define IOMUXC_GPR_GPR7_LPI2C3_STOP_REQ ((uint32_t)0x00000004)
  2857. #define IOMUXC_GPR_GPR7_LPI2C2_STOP_REQ ((uint32_t)0x00000002)
  2858. #define IOMUXC_GPR_GPR7_LPI2C1_STOP_REQ ((uint32_t)0x00000001)
  2859. #define IOMUXC_GPR_GPR8_LPUART8_IPG_DOZE ((uint32_t)0x80000000)
  2860. #define IOMUXC_GPR_GPR8_LPUART8_IPG_STOP_MODE ((uint32_t)0x40000000)
  2861. #define IOMUXC_GPR_GPR8_LPUART7_IPG_DOZE ((uint32_t)0x20000000)
  2862. #define IOMUXC_GPR_GPR8_LPUART7_IPG_STOP_MODE ((uint32_t)0x10000000)
  2863. #define IOMUXC_GPR_GPR8_LPUART6_IPG_DOZE ((uint32_t)0x08000000)
  2864. #define IOMUXC_GPR_GPR8_LPUART6_IPG_STOP_MODE ((uint32_t)0x04000000)
  2865. #define IOMUXC_GPR_GPR8_LPUART5_IPG_DOZE ((uint32_t)0x02000000)
  2866. #define IOMUXC_GPR_GPR8_LPUART5_IPG_STOP_MODE ((uint32_t)0x01000000)
  2867. #define IOMUXC_GPR_GPR8_LPUART4_IPG_DOZE ((uint32_t)0x00800000)
  2868. #define IOMUXC_GPR_GPR8_LPUART4_IPG_STOP_MODE ((uint32_t)0x00400000)
  2869. #define IOMUXC_GPR_GPR8_LPUART3_IPG_DOZE ((uint32_t)0x00200000)
  2870. #define IOMUXC_GPR_GPR8_LPUART3_IPG_STOP_MODE ((uint32_t)0x00100000)
  2871. #define IOMUXC_GPR_GPR8_LPUART2_IPG_DOZE ((uint32_t)0x00080000)
  2872. #define IOMUXC_GPR_GPR8_LPUART2_IPG_STOP_MODE ((uint32_t)0x00040000)
  2873. #define IOMUXC_GPR_GPR8_LPUART1_IPG_DOZE ((uint32_t)0x00020000)
  2874. #define IOMUXC_GPR_GPR8_LPUART1_IPG_STOP_MODE ((uint32_t)0x00010000)
  2875. #define IOMUXC_GPR_GPR8_LPSPI4_IPG_DOZE ((uint32_t)0x00008000)
  2876. #define IOMUXC_GPR_GPR8_LPSPI4_IPG_STOP_MODE ((uint32_t)0x00004000)
  2877. #define IOMUXC_GPR_GPR8_LPSPI3_IPG_DOZE ((uint32_t)0x00002000)
  2878. #define IOMUXC_GPR_GPR8_LPSPI3_IPG_STOP_MODE ((uint32_t)0x00001000)
  2879. #define IOMUXC_GPR_GPR8_LPSPI2_IPG_DOZE ((uint32_t)0x00000800)
  2880. #define IOMUXC_GPR_GPR8_LPSPI2_IPG_STOP_MODE ((uint32_t)0x00000400)
  2881. #define IOMUXC_GPR_GPR8_LPSPI1_IPG_DOZE ((uint32_t)0x00000200)
  2882. #define IOMUXC_GPR_GPR8_LPSPI1_IPG_STOP_MODE ((uint32_t)0x00000100)
  2883. #define IOMUXC_GPR_GPR8_LPI2C4_IPG_DOZE ((uint32_t)0x00000080)
  2884. #define IOMUXC_GPR_GPR8_LPI2C4_IPG_STOP_MODE ((uint32_t)0x00000040)
  2885. #define IOMUXC_GPR_GPR8_LPI2C3_IPG_DOZE ((uint32_t)0x00000020)
  2886. #define IOMUXC_GPR_GPR8_LPI2C3_IPG_STOP_MODE ((uint32_t)0x00000010)
  2887. #define IOMUXC_GPR_GPR8_LPI2C2_IPG_DOZE ((uint32_t)0x00000008)
  2888. #define IOMUXC_GPR_GPR8_LPI2C2_IPG_STOP_MODE ((uint32_t)0x00000004)
  2889. #define IOMUXC_GPR_GPR8_LPI2C1_IPG_DOZE ((uint32_t)0x00000002)
  2890. #define IOMUXC_GPR_GPR8_LPI2C1_IPG_STOP_MODE ((uint32_t)0x00000001)
  2891. #define IOMUXC_GPR_GPR10_LOCK_OCRAM_TZ_ADDR(n) ((uint32_t)(((n) & 0x7F) << 25))
  2892. #define IOMUXC_GPR_GPR10_LOCK_OCRAM_TZ_EN ((uint32_t)0x01000000)
  2893. #define IOMUXC_GPR_GPR10_LOCK_DCPKEY_OCOTP_OR_KEYMUX ((uint32_t)0x00100000)
  2894. #define IOMUXC_GPR_GPR10_LOCK_SEC_ERR_RESP ((uint32_t)0x00040000)
  2895. #define IOMUXC_GPR_GPR10_LOCK_DBG_EN ((uint32_t)0x00020000)
  2896. #define IOMUXC_GPR_GPR10_LOCK_NIDEN ((uint32_t)0x00010000)
  2897. #define IOMUXC_GPR_GPR10_OCRAM_TZ_ADDR(n) ((uint32_t)(((n) & 0x7F) << 9))
  2898. #define IOMUXC_GPR_GPR10_OCRAM_TZ_EN ((uint32_t)0x00000100)
  2899. #define IOMUXC_GPR_GPR10_DCPKEY_OCOTP_OR_KEYMUX ((uint32_t)0x00000010)
  2900. #define IOMUXC_GPR_GPR10_SEC_ERR_RESP ((uint32_t)0x00000004)
  2901. #define IOMUXC_GPR_GPR10_DBG_EN ((uint32_t)0x00000002)
  2902. #define IOMUXC_GPR_GPR10_NIDEN ((uint32_t)0x00000001)
  2903. #define IOMUXC_GPR_GPR11_LOCK_BEE_DE_RX_EN(n) ((uint32_t)(((n) & 0x0F) << 24))
  2904. #define IOMUXC_GPR_GPR11_LOCK_M7_APC_AC_R3_CTRL(n) ((uint32_t)(((n) & 0x03) << 22))
  2905. #define IOMUXC_GPR_GPR11_LOCK_M7_APC_AC_R2_CTRL(n) ((uint32_t)(((n) & 0x03) << 20))
  2906. #define IOMUXC_GPR_GPR11_LOCK_M7_APC_AC_R1_CTRL(n) ((uint32_t)(((n) & 0x03) << 18))
  2907. #define IOMUXC_GPR_GPR11_LOCK_M7_APC_AC_R0_CTRL(n) ((uint32_t)(((n) & 0x03) << 16))
  2908. #define IOMUXC_GPR_GPR11_BEE_DE_RX_EN(n) ((uint32_t)(((n) & 0x0F) << 8))
  2909. #define IOMUXC_GPR_GPR11_M7_APC_AC_R3_CTRL(n) ((uint32_t)(((n) & 0x03) << 6))
  2910. #define IOMUXC_GPR_GPR11_M7_APC_AC_R2_CTRL(n) ((uint32_t)(((n) & 0x03) << 4))
  2911. #define IOMUXC_GPR_GPR11_M7_APC_AC_R1_CTRL(n) ((uint32_t)(((n) & 0x03) << 2))
  2912. #define IOMUXC_GPR_GPR11_M7_APC_AC_R0_CTRL(n) ((uint32_t)(((n) & 0x03) << 0))
  2913. #define IOMUXC_GPR_GPR12_ACMP_IPG_STOP_MODE ((uint32_t)0x00000010)
  2914. #define IOMUXC_GPR_GPR12_FLEXIO2_IPG_DOZE ((uint32_t)0x00000008)
  2915. #define IOMUXC_GPR_GPR12_FLEXIO2_IPG_STOP_MODE ((uint32_t)0x00000004)
  2916. #define IOMUXC_GPR_GPR12_FLEXIO1_IPG_DOZE ((uint32_t)0x00000002)
  2917. #define IOMUXC_GPR_GPR12_FLEXIO1_IPG_STOP_MODE ((uint32_t)0x00000001)
  2918. #define IOMUXC_GPR_GPR13_CACHE_USB ((uint32_t)0x00002000)
  2919. #define IOMUXC_GPR_GPR13_CACHE_ENET ((uint32_t)0x00000080)
  2920. #define IOMUXC_GPR_GPR13_AWCACHE_USDHC ((uint32_t)0x00000002)
  2921. #define IOMUXC_GPR_GPR13_ARCACHE_USDHC ((uint32_t)0x00000001)
  2922. #define IOMUXC_GPR_GPR14_CM7_MX6RT_CFGDTCMSZ(n) ((uint32_t)(((n) & 0x0F) << 20))
  2923. #define IOMUXC_GPR_GPR14_CM7_MX6RT_CFGITCMSZ(n) ((uint32_t)(((n) & 0x0F) << 16))
  2924. #define IOMUXC_GPR_GPR14_ACMP4_SAMPLE_SYNC_EN ((uint32_t)0x00000800)
  2925. #define IOMUXC_GPR_GPR14_ACMP3_SAMPLE_SYNC_EN ((uint32_t)0x00000400)
  2926. #define IOMUXC_GPR_GPR14_ACMP2_SAMPLE_SYNC_EN ((uint32_t)0x00000200)
  2927. #define IOMUXC_GPR_GPR14_ACMP1_SAMPLE_SYNC_EN ((uint32_t)0x00000100)
  2928. #define IOMUXC_GPR_GPR14_ACMP4_CMP_IGEN_TRIM_UP ((uint32_t)0x00000080)
  2929. #define IOMUXC_GPR_GPR14_ACMP3_CMP_IGEN_TRIM_UP ((uint32_t)0x00000040)
  2930. #define IOMUXC_GPR_GPR14_ACMP2_CMP_IGEN_TRIM_UP ((uint32_t)0x00000020)
  2931. #define IOMUXC_GPR_GPR14_ACMP1_CMP_IGEN_TRIM_UP ((uint32_t)0x00000010)
  2932. #define IOMUXC_GPR_GPR14_ACMP4_CMP_IGEN_TRIM_DN ((uint32_t)0x00000008)
  2933. #define IOMUXC_GPR_GPR14_ACMP3_CMP_IGEN_TRIM_DN ((uint32_t)0x00000004)
  2934. #define IOMUXC_GPR_GPR14_ACMP2_CMP_IGEN_TRIM_DN ((uint32_t)0x00000002)
  2935. #define IOMUXC_GPR_GPR14_ACMP1_CMP_IGEN_TRIM_DN ((uint32_t)0x00000001)
  2936. #define IOMUXC_GPR_GPR16_CM7_INIT_VTOR(n) ((uint32_t)(((n) & 0x1FFFFFF) << 7))
  2937. #define IOMUXC_GPR_GPR16_FLEXRAM_BANK_CFG_SEL ((uint32_t)0x00000004)
  2938. #define IOMUXC_GPR_GPR16_INIT_DTCM_EN ((uint32_t)0x00000002)
  2939. #define IOMUXC_GPR_GPR16_INIT_ITCM_EN ((uint32_t)0x00000001)
  2940. #define IOMUXC_GPR_GPR18_M7_APC_AC_R0_BOT(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2941. #define IOMUXC_GPR_GPR18_LOCK_M7_APC_AC_R0_BOT ((uint32_t)0x00000001)
  2942. #define IOMUXC_GPR_GPR19_M7_APC_AC_R0_TOP(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2943. #define IOMUXC_GPR_GPR19_LOCK_M7_APC_AC_R0_TOP ((uint32_t)0x00000001)
  2944. #define IOMUXC_GPR_GPR20_M7_APC_AC_R1_BOT(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2945. #define IOMUXC_GPR_GPR20_LOCK_M7_APC_AC_R1_BOT ((uint32_t)0x00000001)
  2946. #define IOMUXC_GPR_GPR21_M7_APC_AC_R1_TOP(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2947. #define IOMUXC_GPR_GPR21_LOCK_M7_APC_AC_R1_TOP ((uint32_t)0x00000001)
  2948. #define IOMUXC_GPR_GPR22_M7_APC_AC_R2_BOT(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2949. #define IOMUXC_GPR_GPR22_LOCK_M7_APC_AC_R2_BOT ((uint32_t)0x00000001)
  2950. #define IOMUXC_GPR_GPR23_M7_APC_AC_R2_TOP(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2951. #define IOMUXC_GPR_GPR23_LOCK_M7_APC_AC_R2_TOP ((uint32_t)0x00000001)
  2952. #define IOMUXC_GPR_GPR24_M7_APC_AC_R3_BOT(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2953. #define IOMUXC_GPR_GPR24_LOCK_M7_APC_AC_R3_BOT ((uint32_t)0x00000001)
  2954. #define IOMUXC_GPR_GPR25_M7_APC_AC_R3_TOP(n) ((uint32_t)(((n) & 0x1FFFFFFF) << 3))
  2955. #define IOMUXC_GPR_GPR25_LOCK_M7_APC_AC_R3_TOP ((uint32_t)0x00000001)
  2956. // page 1750
  2957. #define IMXRT_IOMUXC_SNVS (*(IMXRT_REGISTER32_t *)0x400A8000)
  2958. #define IOMUXC_SNVS_SW_MUX_CTL_PAD_WAKEUP (IMXRT_IOMUXC_SNVS.offset000)
  2959. #define IOMUXC_SNVS_SW_MUX_CTL_PAD_PMIC_ON_REQ (IMXRT_IOMUXC_SNVS.offset004)
  2960. #define IOMUXC_SNVS_SW_MUX_CTL_PAD_PMIC_STBY_REQ (IMXRT_IOMUXC_SNVS.offset008)
  2961. #define IOMUXC_SNVS_SW_PAD_CTL_PAD_TEST_MODE (IMXRT_IOMUXC_SNVS.offset00C)
  2962. #define IOMUXC_SNVS_SW_PAD_CTL_PAD_POR_B (IMXRT_IOMUXC_SNVS.offset010)
  2963. #define IOMUXC_SNVS_SW_PAD_CTL_PAD_ONOFF (IMXRT_IOMUXC_SNVS.offset014)
  2964. #define IOMUXC_SNVS_SW_PAD_CTL_PAD_WAKEUP (IMXRT_IOMUXC_SNVS.offset018)
  2965. #define IOMUXC_SNVS_SW_PAD_CTL_PAD_PMIC_ON_REQ (IMXRT_IOMUXC_SNVS.offset01C)
  2966. #define IOMUXC_SNVS_SW_PAD_CTL_PAD_PMIC_STBY_REQ (IMXRT_IOMUXC_SNVS.offset020)
  2967. // page 1765
  2968. #define IMXRT_IOMUXC_SNVS_GPR (*(IMXRT_REGISTER32_t *)0x400A4000)
  2969. #define IOMUXC_SNVS_GPR_GPR0 (IMXRT_IOMUXC_SNVS_GPR.offset000)
  2970. #define IOMUXC_SNVS_GPR_GPR1 (IMXRT_IOMUXC_SNVS_GPR.offset004)
  2971. #define IOMUXC_SNVS_GPR_GPR2 (IMXRT_IOMUXC_SNVS_GPR.offset008)
  2972. #define IOMUXC_SNVS_GPR_GPR3 (IMXRT_IOMUXC_SNVS_GPR.offset00C)
  2973. // page 1769
  2974. #define IMXRT_IOMUXC (*(IMXRT_REGISTER32_t *)0x401F8000)
  2975. #define IMXRT_IOMUXC_b (*(IMXRT_REGISTER32_t *)0x401F8400)
  2976. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_00 (IMXRT_IOMUXC.offset014)
  2977. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_01 (IMXRT_IOMUXC.offset018)
  2978. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_02 (IMXRT_IOMUXC.offset01C)
  2979. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_03 (IMXRT_IOMUXC.offset020)
  2980. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_04 (IMXRT_IOMUXC.offset024)
  2981. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_05 (IMXRT_IOMUXC.offset028)
  2982. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_06 (IMXRT_IOMUXC.offset02C)
  2983. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_07 (IMXRT_IOMUXC.offset030)
  2984. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_08 (IMXRT_IOMUXC.offset034)
  2985. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_09 (IMXRT_IOMUXC.offset038)
  2986. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_10 (IMXRT_IOMUXC.offset03C)
  2987. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_11 (IMXRT_IOMUXC.offset040)
  2988. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_12 (IMXRT_IOMUXC.offset044)
  2989. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_13 (IMXRT_IOMUXC.offset048)
  2990. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_14 (IMXRT_IOMUXC.offset04C)
  2991. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_15 (IMXRT_IOMUXC.offset050)
  2992. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_16 (IMXRT_IOMUXC.offset054)
  2993. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_17 (IMXRT_IOMUXC.offset058)
  2994. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_18 (IMXRT_IOMUXC.offset05C)
  2995. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_19 (IMXRT_IOMUXC.offset060)
  2996. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_20 (IMXRT_IOMUXC.offset064)
  2997. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_21 (IMXRT_IOMUXC.offset068)
  2998. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_22 (IMXRT_IOMUXC.offset06C)
  2999. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_23 (IMXRT_IOMUXC.offset070)
  3000. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_24 (IMXRT_IOMUXC.offset074)
  3001. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_25 (IMXRT_IOMUXC.offset078)
  3002. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_26 (IMXRT_IOMUXC.offset07C)
  3003. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_27 (IMXRT_IOMUXC.offset080)
  3004. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_28 (IMXRT_IOMUXC.offset084)
  3005. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_29 (IMXRT_IOMUXC.offset088)
  3006. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_30 (IMXRT_IOMUXC.offset08C)
  3007. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_31 (IMXRT_IOMUXC.offset090)
  3008. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_32 (IMXRT_IOMUXC.offset094)
  3009. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_33 (IMXRT_IOMUXC.offset098)
  3010. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_34 (IMXRT_IOMUXC.offset09C)
  3011. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_35 (IMXRT_IOMUXC.offset0A0)
  3012. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_36 (IMXRT_IOMUXC.offset0A4)
  3013. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_37 (IMXRT_IOMUXC.offset0A8)
  3014. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_38 (IMXRT_IOMUXC.offset0AC)
  3015. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_39 (IMXRT_IOMUXC.offset0B0)
  3016. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_40 (IMXRT_IOMUXC.offset0B4)
  3017. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_41 (IMXRT_IOMUXC.offset0B8)
  3018. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_00 (IMXRT_IOMUXC.offset0BC)
  3019. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_01 (IMXRT_IOMUXC.offset0C0)
  3020. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_02 (IMXRT_IOMUXC.offset0C4)
  3021. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_03 (IMXRT_IOMUXC.offset0C8)
  3022. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_04 (IMXRT_IOMUXC.offset0CC)
  3023. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_05 (IMXRT_IOMUXC.offset0D0)
  3024. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_06 (IMXRT_IOMUXC.offset0D4)
  3025. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_07 (IMXRT_IOMUXC.offset0D8)
  3026. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_08 (IMXRT_IOMUXC.offset0DC)
  3027. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_09 (IMXRT_IOMUXC.offset0E0)
  3028. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_10 (IMXRT_IOMUXC.offset0E4)
  3029. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_11 (IMXRT_IOMUXC.offset0E8)
  3030. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_12 (IMXRT_IOMUXC.offset0EC)
  3031. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_13 (IMXRT_IOMUXC.offset0F0)
  3032. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_14 (IMXRT_IOMUXC.offset0F4)
  3033. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_15 (IMXRT_IOMUXC.offset0F8)
  3034. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_00 (IMXRT_IOMUXC.offset0FC)
  3035. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_01 (IMXRT_IOMUXC.offset100)
  3036. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_02 (IMXRT_IOMUXC.offset104)
  3037. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_03 (IMXRT_IOMUXC.offset108)
  3038. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_04 (IMXRT_IOMUXC.offset10C)
  3039. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_05 (IMXRT_IOMUXC.offset110)
  3040. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_06 (IMXRT_IOMUXC.offset114)
  3041. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_07 (IMXRT_IOMUXC.offset118)
  3042. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_08 (IMXRT_IOMUXC.offset11C)
  3043. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_09 (IMXRT_IOMUXC.offset120)
  3044. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_10 (IMXRT_IOMUXC.offset124)
  3045. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_11 (IMXRT_IOMUXC.offset128)
  3046. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_12 (IMXRT_IOMUXC.offset12C)
  3047. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_13 (IMXRT_IOMUXC.offset130)
  3048. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_14 (IMXRT_IOMUXC.offset134)
  3049. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_15 (IMXRT_IOMUXC.offset138)
  3050. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_00 (IMXRT_IOMUXC.offset13C)
  3051. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_01 (IMXRT_IOMUXC.offset140)
  3052. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_02 (IMXRT_IOMUXC.offset144)
  3053. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_03 (IMXRT_IOMUXC.offset148)
  3054. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_04 (IMXRT_IOMUXC.offset14C)
  3055. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_05 (IMXRT_IOMUXC.offset150)
  3056. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_06 (IMXRT_IOMUXC.offset154)
  3057. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_07 (IMXRT_IOMUXC.offset158)
  3058. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_08 (IMXRT_IOMUXC.offset15C)
  3059. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_09 (IMXRT_IOMUXC.offset160)
  3060. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_10 (IMXRT_IOMUXC.offset164)
  3061. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_11 (IMXRT_IOMUXC.offset168)
  3062. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_12 (IMXRT_IOMUXC.offset16C)
  3063. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_13 (IMXRT_IOMUXC.offset170)
  3064. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_14 (IMXRT_IOMUXC.offset174)
  3065. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_15 (IMXRT_IOMUXC.offset178)
  3066. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_00 (IMXRT_IOMUXC.offset17C)
  3067. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_01 (IMXRT_IOMUXC.offset180)
  3068. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_02 (IMXRT_IOMUXC.offset184)
  3069. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_03 (IMXRT_IOMUXC.offset188)
  3070. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_04 (IMXRT_IOMUXC.offset18C)
  3071. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_05 (IMXRT_IOMUXC.offset190)
  3072. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_06 (IMXRT_IOMUXC.offset194)
  3073. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_07 (IMXRT_IOMUXC.offset198)
  3074. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_08 (IMXRT_IOMUXC.offset19C)
  3075. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_09 (IMXRT_IOMUXC.offset1A0)
  3076. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_10 (IMXRT_IOMUXC.offset1A4)
  3077. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_11 (IMXRT_IOMUXC.offset1A8)
  3078. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_12 (IMXRT_IOMUXC.offset1AC)
  3079. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_13 (IMXRT_IOMUXC.offset1B0)
  3080. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_14 (IMXRT_IOMUXC.offset1B4)
  3081. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_15 (IMXRT_IOMUXC.offset1B8)
  3082. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B0_00 (IMXRT_IOMUXC.offset1BC)
  3083. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B0_01 (IMXRT_IOMUXC.offset1C0)
  3084. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B0_02 (IMXRT_IOMUXC.offset1C4)
  3085. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B0_03 (IMXRT_IOMUXC.offset1C8)
  3086. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B0_04 (IMXRT_IOMUXC.offset1CC)
  3087. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B0_05 (IMXRT_IOMUXC.offset1D0)
  3088. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_00 (IMXRT_IOMUXC.offset1D4)
  3089. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_01 (IMXRT_IOMUXC.offset1D8)
  3090. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_02 (IMXRT_IOMUXC.offset1DC)
  3091. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_03 (IMXRT_IOMUXC.offset1E0)
  3092. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_04 (IMXRT_IOMUXC.offset1E4)
  3093. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_05 (IMXRT_IOMUXC.offset1E8)
  3094. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_06 (IMXRT_IOMUXC.offset1EC)
  3095. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_07 (IMXRT_IOMUXC.offset1F0)
  3096. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_08 (IMXRT_IOMUXC.offset1F4)
  3097. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_09 (IMXRT_IOMUXC.offset1F8)
  3098. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_10 (IMXRT_IOMUXC.offset1FC)
  3099. #define IOMUXC_SW_MUX_CTL_PAD_GPIO_SD_B1_11 (IMXRT_IOMUXC.offset200)
  3100. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_00 (IMXRT_IOMUXC.offset204)
  3101. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_01 (IMXRT_IOMUXC.offset208)
  3102. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_02 (IMXRT_IOMUXC.offset20C)
  3103. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_03 (IMXRT_IOMUXC.offset210)
  3104. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_04 (IMXRT_IOMUXC.offset214)
  3105. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_05 (IMXRT_IOMUXC.offset218)
  3106. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_06 (IMXRT_IOMUXC.offset21C)
  3107. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_07 (IMXRT_IOMUXC.offset220)
  3108. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_08 (IMXRT_IOMUXC.offset224)
  3109. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_09 (IMXRT_IOMUXC.offset228)
  3110. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_10 (IMXRT_IOMUXC.offset22C)
  3111. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_11 (IMXRT_IOMUXC.offset230)
  3112. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_12 (IMXRT_IOMUXC.offset234)
  3113. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_13 (IMXRT_IOMUXC.offset238)
  3114. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_14 (IMXRT_IOMUXC.offset23C)
  3115. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_15 (IMXRT_IOMUXC.offset240)
  3116. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_16 (IMXRT_IOMUXC.offset244)
  3117. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_17 (IMXRT_IOMUXC.offset248)
  3118. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_18 (IMXRT_IOMUXC.offset24C)
  3119. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_19 (IMXRT_IOMUXC.offset250)
  3120. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_20 (IMXRT_IOMUXC.offset254)
  3121. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_21 (IMXRT_IOMUXC.offset258)
  3122. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_22 (IMXRT_IOMUXC.offset25C)
  3123. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_23 (IMXRT_IOMUXC.offset260)
  3124. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_24 (IMXRT_IOMUXC.offset264)
  3125. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_25 (IMXRT_IOMUXC.offset268)
  3126. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_26 (IMXRT_IOMUXC.offset26C)
  3127. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_27 (IMXRT_IOMUXC.offset270)
  3128. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_28 (IMXRT_IOMUXC.offset274)
  3129. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_29 (IMXRT_IOMUXC.offset278)
  3130. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_30 (IMXRT_IOMUXC.offset27C)
  3131. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_31 (IMXRT_IOMUXC.offset280)
  3132. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_32 (IMXRT_IOMUXC.offset284)
  3133. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_33 (IMXRT_IOMUXC.offset288)
  3134. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_34 (IMXRT_IOMUXC.offset28C)
  3135. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_35 (IMXRT_IOMUXC.offset290)
  3136. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_36 (IMXRT_IOMUXC.offset294)
  3137. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_37 (IMXRT_IOMUXC.offset298)
  3138. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_38 (IMXRT_IOMUXC.offset29C)
  3139. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_39 (IMXRT_IOMUXC.offset2A0)
  3140. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_40 (IMXRT_IOMUXC.offset2A4)
  3141. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_41 (IMXRT_IOMUXC.offset2A8)
  3142. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_00 (IMXRT_IOMUXC.offset2AC)
  3143. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_01 (IMXRT_IOMUXC.offset2B0)
  3144. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_02 (IMXRT_IOMUXC.offset2B4)
  3145. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_03 (IMXRT_IOMUXC.offset2B8)
  3146. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_04 (IMXRT_IOMUXC.offset2BC)
  3147. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_05 (IMXRT_IOMUXC.offset2C0)
  3148. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_06 (IMXRT_IOMUXC.offset2C4)
  3149. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_07 (IMXRT_IOMUXC.offset2C8)
  3150. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_08 (IMXRT_IOMUXC.offset2CC)
  3151. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_09 (IMXRT_IOMUXC.offset2D0)
  3152. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_10 (IMXRT_IOMUXC.offset2D4)
  3153. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_11 (IMXRT_IOMUXC.offset2D8)
  3154. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_12 (IMXRT_IOMUXC.offset2DC)
  3155. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_13 (IMXRT_IOMUXC.offset2E0)
  3156. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_14 (IMXRT_IOMUXC.offset2E4)
  3157. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_15 (IMXRT_IOMUXC.offset2E8)
  3158. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_00 (IMXRT_IOMUXC.offset2EC)
  3159. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_01 (IMXRT_IOMUXC.offset2F0)
  3160. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_02 (IMXRT_IOMUXC.offset2F4)
  3161. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_03 (IMXRT_IOMUXC.offset2F8)
  3162. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_04 (IMXRT_IOMUXC.offset2FC)
  3163. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_05 (IMXRT_IOMUXC.offset300)
  3164. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_06 (IMXRT_IOMUXC.offset304)
  3165. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_07 (IMXRT_IOMUXC.offset308)
  3166. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_08 (IMXRT_IOMUXC.offset30C)
  3167. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_09 (IMXRT_IOMUXC.offset310)
  3168. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_10 (IMXRT_IOMUXC.offset314)
  3169. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_11 (IMXRT_IOMUXC.offset318)
  3170. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_12 (IMXRT_IOMUXC.offset31C)
  3171. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_13 (IMXRT_IOMUXC.offset320)
  3172. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_14 (IMXRT_IOMUXC.offset324)
  3173. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_15 (IMXRT_IOMUXC.offset328)
  3174. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_00 (IMXRT_IOMUXC.offset32C)
  3175. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_01 (IMXRT_IOMUXC.offset330)
  3176. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_02 (IMXRT_IOMUXC.offset334)
  3177. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_03 (IMXRT_IOMUXC.offset338)
  3178. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_04 (IMXRT_IOMUXC.offset33C)
  3179. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_05 (IMXRT_IOMUXC.offset340)
  3180. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_06 (IMXRT_IOMUXC.offset344)
  3181. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_07 (IMXRT_IOMUXC.offset348)
  3182. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_08 (IMXRT_IOMUXC.offset34C)
  3183. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_09 (IMXRT_IOMUXC.offset350)
  3184. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_10 (IMXRT_IOMUXC.offset354)
  3185. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_11 (IMXRT_IOMUXC.offset358)
  3186. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_12 (IMXRT_IOMUXC.offset35C)
  3187. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_13 (IMXRT_IOMUXC.offset360)
  3188. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_14 (IMXRT_IOMUXC.offset364)
  3189. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_15 (IMXRT_IOMUXC.offset368)
  3190. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_00 (IMXRT_IOMUXC.offset36C)
  3191. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_01 (IMXRT_IOMUXC.offset370)
  3192. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_02 (IMXRT_IOMUXC.offset374)
  3193. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_03 (IMXRT_IOMUXC.offset378)
  3194. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_04 (IMXRT_IOMUXC.offset37C)
  3195. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_05 (IMXRT_IOMUXC.offset380)
  3196. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_06 (IMXRT_IOMUXC.offset384)
  3197. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_07 (IMXRT_IOMUXC.offset388)
  3198. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_08 (IMXRT_IOMUXC.offset38C)
  3199. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_09 (IMXRT_IOMUXC.offset390)
  3200. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_10 (IMXRT_IOMUXC.offset394)
  3201. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_11 (IMXRT_IOMUXC.offset398)
  3202. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_12 (IMXRT_IOMUXC.offset39C)
  3203. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_13 (IMXRT_IOMUXC.offset3A0)
  3204. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_14 (IMXRT_IOMUXC.offset3A4)
  3205. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_15 (IMXRT_IOMUXC.offset3A8)
  3206. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B0_00 (IMXRT_IOMUXC.offset3AC)
  3207. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B0_01 (IMXRT_IOMUXC.offset3B0)
  3208. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B0_02 (IMXRT_IOMUXC.offset3B4)
  3209. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B0_03 (IMXRT_IOMUXC.offset3B8)
  3210. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B0_04 (IMXRT_IOMUXC.offset3BC)
  3211. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B0_05 (IMXRT_IOMUXC.offset3C0)
  3212. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_00 (IMXRT_IOMUXC.offset3C4)
  3213. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_01 (IMXRT_IOMUXC.offset3C8)
  3214. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_02 (IMXRT_IOMUXC.offset3CC)
  3215. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_03 (IMXRT_IOMUXC.offset3D0)
  3216. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_04 (IMXRT_IOMUXC.offset3D4)
  3217. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_05 (IMXRT_IOMUXC.offset3D8)
  3218. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_06 (IMXRT_IOMUXC.offset3DC)
  3219. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_07 (IMXRT_IOMUXC.offset3E0)
  3220. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_08 (IMXRT_IOMUXC.offset3E4)
  3221. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_09 (IMXRT_IOMUXC.offset3E8)
  3222. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_10 (IMXRT_IOMUXC.offset3EC)
  3223. #define IOMUXC_SW_PAD_CTL_PAD_GPIO_SD_B1_11 (IMXRT_IOMUXC.offset3F0)
  3224. #define IOMUXC_ANATOP_USB_OTG_ID_SELECT_INPUT (IMXRT_IOMUXC.offset3F4)
  3225. #define IOMUXC_ANATOP_USB_UH1_ID_SELECT_INPUT (IMXRT_IOMUXC.offset3F8)
  3226. #define IOMUXC_CCM_PMIC_READY_SELECT_INPUT (IMXRT_IOMUXC.offset3FC)
  3227. #define IOMUXC_CSI_DATA02_SELECT_INPUT (IMXRT_IOMUXC_b.offset000)
  3228. #define IOMUXC_CSI_DATA03_SELECT_INPUT (IMXRT_IOMUXC_b.offset004)
  3229. #define IOMUXC_CSI_DATA04_SELECT_INPUT (IMXRT_IOMUXC_b.offset008)
  3230. #define IOMUXC_CSI_DATA05_SELECT_INPUT (IMXRT_IOMUXC_b.offset00C)
  3231. #define IOMUXC_CSI_DATA06_SELECT_INPUT (IMXRT_IOMUXC_b.offset010)
  3232. #define IOMUXC_CSI_DATA07_SELECT_INPUT (IMXRT_IOMUXC_b.offset014)
  3233. #define IOMUXC_CSI_DATA08_SELECT_INPUT (IMXRT_IOMUXC_b.offset018)
  3234. #define IOMUXC_CSI_DATA09_SELECT_INPUT (IMXRT_IOMUXC_b.offset01C)
  3235. #define IOMUXC_CSI_HSYNC_SELECT_INPUT (IMXRT_IOMUXC_b.offset020)
  3236. #define IOMUXC_CSI_PIXCLK_SELECT_INPUT (IMXRT_IOMUXC_b.offset024)
  3237. #define IOMUXC_CSI_VSYNC_SELECT_INPUT (IMXRT_IOMUXC_b.offset028)
  3238. #define IOMUXC_ENET_IPG_CLK_RMII_SELECT_INPUT (IMXRT_IOMUXC_b.offset02C)
  3239. #define IOMUXC_ENET_MDIO_SELECT_INPUT (IMXRT_IOMUXC_b.offset030)
  3240. #define IOMUXC_ENET0_RXDATA_SELECT_INPUT (IMXRT_IOMUXC_b.offset034)
  3241. #define IOMUXC_ENET1_RXDATA_SELECT_INPUT (IMXRT_IOMUXC_b.offset038)
  3242. #define IOMUXC_ENET_RXEN_SELECT_INPUT (IMXRT_IOMUXC_b.offset03C)
  3243. #define IOMUXC_ENET_RXERR_SELECT_INPUT (IMXRT_IOMUXC_b.offset040)
  3244. #define IOMUXC_ENET0_TIMER_SELECT_INPUT (IMXRT_IOMUXC_b.offset044)
  3245. #define IOMUXC_ENET_TXCLK_SELECT_INPUT (IMXRT_IOMUXC_b.offset048)
  3246. #define IOMUXC_FLEXCAN1_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset04C)
  3247. #define IOMUXC_FLEXCAN2_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset050)
  3248. #define IOMUXC_FLEXPWM1_PWMA3_SELECT_INPUT (IMXRT_IOMUXC_b.offset054)
  3249. #define IOMUXC_FLEXPWM1_PWMA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset058)
  3250. #define IOMUXC_FLEXPWM1_PWMA1_SELECT_INPUT (IMXRT_IOMUXC_b.offset05C)
  3251. #define IOMUXC_FLEXPWM1_PWMA2_SELECT_INPUT (IMXRT_IOMUXC_b.offset060)
  3252. #define IOMUXC_FLEXPWM1_PWMB3_SELECT_INPUT (IMXRT_IOMUXC_b.offset064)
  3253. #define IOMUXC_FLEXPWM1_PWMB0_SELECT_INPUT (IMXRT_IOMUXC_b.offset068)
  3254. #define IOMUXC_FLEXPWM1_PWMB1_SELECT_INPUT (IMXRT_IOMUXC_b.offset06C)
  3255. #define IOMUXC_FLEXPWM1_PWMB2_SELECT_INPUT (IMXRT_IOMUXC_b.offset070)
  3256. #define IOMUXC_FLEXPWM2_PWMA3_SELECT_INPUT (IMXRT_IOMUXC_b.offset074)
  3257. #define IOMUXC_FLEXPWM2_PWMA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset078)
  3258. #define IOMUXC_FLEXPWM2_PWMA1_SELECT_INPUT (IMXRT_IOMUXC_b.offset07C)
  3259. #define IOMUXC_FLEXPWM2_PWMA2_SELECT_INPUT (IMXRT_IOMUXC_b.offset080)
  3260. #define IOMUXC_FLEXPWM2_PWMB3_SELECT_INPUT (IMXRT_IOMUXC_b.offset084)
  3261. #define IOMUXC_FLEXPWM2_PWMB0_SELECT_INPUT (IMXRT_IOMUXC_b.offset088)
  3262. #define IOMUXC_FLEXPWM2_PWMB1_SELECT_INPUT (IMXRT_IOMUXC_b.offset09C)
  3263. #define IOMUXC_FLEXPWM2_PWMB2_SELECT_INPUT (IMXRT_IOMUXC_b.offset090)
  3264. #define IOMUXC_FLEXPWM4_PWMA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset094)
  3265. #define IOMUXC_FLEXPWM4_PWMA1_SELECT_INPUT (IMXRT_IOMUXC_b.offset098)
  3266. #define IOMUXC_FLEXPWM4_PWMA2_SELECT_INPUT (IMXRT_IOMUXC_b.offset09C)
  3267. #define IOMUXC_FLEXPWM4_PWMA3_SELECT_INPUT (IMXRT_IOMUXC_b.offset0A0)
  3268. #define IOMUXC_FLEXSPIA_DQS_SELECT_INPUT (IMXRT_IOMUXC_b.offset0A4)
  3269. #define IOMUXC_FLEXSPIA_DATA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset0A8)
  3270. #define IOMUXC_FLEXSPIA_DATA1_SELECT_INPUT (IMXRT_IOMUXC_b.offset0AC)
  3271. #define IOMUXC_FLEXSPIA_DATA2_SELECT_INPUT (IMXRT_IOMUXC_b.offset0B0)
  3272. #define IOMUXC_FLEXSPIA_DATA3_SELECT_INPUT (IMXRT_IOMUXC_b.offset0B4)
  3273. #define IOMUXC_FLEXSPIB_DATA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset0B8)
  3274. #define IOMUXC_FLEXSPIB_DATA1_SELECT_INPUT (IMXRT_IOMUXC_b.offset0BC)
  3275. #define IOMUXC_FLEXSPIB_DATA2_SELECT_INPUT (IMXRT_IOMUXC_b.offset0C0)
  3276. #define IOMUXC_FLEXSPIB_DATA3_SELECT_INPUT (IMXRT_IOMUXC_b.offset0C4)
  3277. #define IOMUXC_FLEXSPIA_SCK_SELECT_INPUT (IMXRT_IOMUXC_b.offset0C8)
  3278. #define IOMUXC_LPI2C1_SCL_SELECT_INPUT (IMXRT_IOMUXC_b.offset0CC)
  3279. #define IOMUXC_LPI2C1_SDA_SELECT_INPUT (IMXRT_IOMUXC_b.offset0D0)
  3280. #define IOMUXC_LPI2C2_SCL_SELECT_INPUT (IMXRT_IOMUXC_b.offset0D4)
  3281. #define IOMUXC_LPI2C2_SDA_SELECT_INPUT (IMXRT_IOMUXC_b.offset0D8)
  3282. #define IOMUXC_LPI2C3_SCL_SELECT_INPUT (IMXRT_IOMUXC_b.offset0DC)
  3283. #define IOMUXC_LPI2C3_SDA_SELECT_INPUT (IMXRT_IOMUXC_b.offset0E0)
  3284. #define IOMUXC_LPI2C4_SCL_SELECT_INPUT (IMXRT_IOMUXC_b.offset0E4)
  3285. #define IOMUXC_LPI2C4_SDA_SELECT_INPUT (IMXRT_IOMUXC_b.offset0E8)
  3286. #define IOMUXC_LPSPI1_PCS0_SELECT_INPUT (IMXRT_IOMUXC_b.offset0EC)
  3287. #define IOMUXC_LPSPI1_SCK_SELECT_INPUT (IMXRT_IOMUXC_b.offset0F0)
  3288. #define IOMUXC_LPSPI1_SDI_SELECT_INPUT (IMXRT_IOMUXC_b.offset0F4)
  3289. #define IOMUXC_LPSPI1_SDO_SELECT_INPUT (IMXRT_IOMUXC_b.offset0F8)
  3290. #define IOMUXC_LPSPI2_PCS0_SELECT_INPUT (IMXRT_IOMUXC_b.offset0FC)
  3291. #define IOMUXC_LPSPI2_SCK_SELECT_INPUT (IMXRT_IOMUXC_b.offset100)
  3292. #define IOMUXC_LPSPI2_SDI_SELECT_INPUT (IMXRT_IOMUXC_b.offset104)
  3293. #define IOMUXC_LPSPI2_SDO_SELECT_INPUT (IMXRT_IOMUXC_b.offset108)
  3294. #define IOMUXC_LPSPI3_PCS0_SELECT_INPUT (IMXRT_IOMUXC_b.offset10C)
  3295. #define IOMUXC_LPSPI3_SCK_SELECT_INPUT (IMXRT_IOMUXC_b.offset110)
  3296. #define IOMUXC_LPSPI3_SDI_SELECT_INPUT (IMXRT_IOMUXC_b.offset114)
  3297. #define IOMUXC_LPSPI3_SDO_SELECT_INPUT (IMXRT_IOMUXC_b.offset118)
  3298. #define IOMUXC_LPSPI4_PCS0_SELECT_INPUT (IMXRT_IOMUXC_b.offset11C)
  3299. #define IOMUXC_LPSPI4_SCK_SELECT_INPUT (IMXRT_IOMUXC_b.offset120)
  3300. #define IOMUXC_LPSPI4_SDI_SELECT_INPUT (IMXRT_IOMUXC_b.offset124)
  3301. #define IOMUXC_LPSPI4_SDO_SELECT_INPUT (IMXRT_IOMUXC_b.offset128)
  3302. #define IOMUXC_LPUART2_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset12C)
  3303. #define IOMUXC_LPUART2_TX_SELECT_INPUT (IMXRT_IOMUXC_b.offset130)
  3304. #define IOMUXC_LPUART3_CTS_B_SELECT_INPUT (IMXRT_IOMUXC_b.offset134)
  3305. #define IOMUXC_LPUART3_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset138)
  3306. #define IOMUXC_LPUART3_TX_SELECT_INPUT (IMXRT_IOMUXC_b.offset13C)
  3307. #define IOMUXC_LPUART4_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset140)
  3308. #define IOMUXC_LPUART4_TX_SELECT_INPUT (IMXRT_IOMUXC_b.offset144)
  3309. #define IOMUXC_LPUART5_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset148)
  3310. #define IOMUXC_LPUART5_TX_SELECT_INPUT (IMXRT_IOMUXC_b.offset14C)
  3311. #define IOMUXC_LPUART6_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset150)
  3312. #define IOMUXC_LPUART6_TX_SELECT_INPUT (IMXRT_IOMUXC_b.offset154)
  3313. #define IOMUXC_LPUART7_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset158)
  3314. #define IOMUXC_LPUART7_TX_SELECT_INPUT (IMXRT_IOMUXC_b.offset15C)
  3315. #define IOMUXC_LPUART8_RX_SELECT_INPUT (IMXRT_IOMUXC_b.offset160)
  3316. #define IOMUXC_LPUART8_TX_SELECT_INPUT (IMXRT_IOMUXC_b.offset164)
  3317. #define IOMUXC_NMI_GLUE_NMI_SELECT_INPUT (IMXRT_IOMUXC_b.offset168)
  3318. #define IOMUXC_QTIMER2_TIMER0_SELECT_INPUT (IMXRT_IOMUXC_b.offset16C)
  3319. #define IOMUXC_QTIMER2_TIMER1_SELECT_INPUT (IMXRT_IOMUXC_b.offset170)
  3320. #define IOMUXC_QTIMER2_TIMER2_SELECT_INPUT (IMXRT_IOMUXC_b.offset174)
  3321. #define IOMUXC_QTIMER2_TIMER3_SELECT_INPUT (IMXRT_IOMUXC_b.offset178)
  3322. #define IOMUXC_QTIMER3_TIMER0_SELECT_INPUT (IMXRT_IOMUXC_b.offset17C)
  3323. #define IOMUXC_QTIMER3_TIMER1_SELECT_INPUT (IMXRT_IOMUXC_b.offset180)
  3324. #define IOMUXC_QTIMER3_TIMER2_SELECT_INPUT (IMXRT_IOMUXC_b.offset184)
  3325. #define IOMUXC_QTIMER3_TIMER3_SELECT_INPUT (IMXRT_IOMUXC_b.offset188)
  3326. #define IOMUXC_SAI1_MCLK2_SELECT_INPUT (IMXRT_IOMUXC_b.offset18C)
  3327. #define IOMUXC_SAI1_RX_BCLK_SELECT_INPUT (IMXRT_IOMUXC_b.offset190)
  3328. #define IOMUXC_SAI1_RX_DATA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset194)
  3329. #define IOMUXC_SAI1_RX_DATA1_SELECT_INPUT (IMXRT_IOMUXC_b.offset198)
  3330. #define IOMUXC_SAI1_RX_DATA2_SELECT_INPUT (IMXRT_IOMUXC_b.offset19C)
  3331. #define IOMUXC_SAI1_RX_DATA3_SELECT_INPUT (IMXRT_IOMUXC_b.offset1A0)
  3332. #define IOMUXC_SAI1_RX_SYNC_SELECT_INPUT (IMXRT_IOMUXC_b.offset1A4)
  3333. #define IOMUXC_SAI1_TX_BCLK_SELECT_INPUT (IMXRT_IOMUXC_b.offset1A8)
  3334. #define IOMUXC_SAI1_TX_SYNC_SELECT_INPUT (IMXRT_IOMUXC_b.offset1AC)
  3335. #define IOMUXC_SAI2_MCLK2_SELECT_INPUT (IMXRT_IOMUXC_b.offset1B0)
  3336. #define IOMUXC_SAI2_RX_BCLK_SELECT_INPUT (IMXRT_IOMUXC_b.offset1B4)
  3337. #define IOMUXC_SAI2_RX_DATA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset1B8)
  3338. #define IOMUXC_SAI2_RX_SYNC_SELECT_INPUT (IMXRT_IOMUXC_b.offset1BC)
  3339. #define IOMUXC_SAI2_TX_BCLK_SELECT_INPUT (IMXRT_IOMUXC_b.offset1C0)
  3340. #define IOMUXC_SAI2_TX_SYNC_SELECT_INPUT (IMXRT_IOMUXC_b.offset1C4)
  3341. #define IOMUXC_SPDIF_IN_SELECT_INPUT (IMXRT_IOMUXC_b.offset1C8)
  3342. #define IOMUXC_USB_OTG2_OC_SELECT_INPUT (IMXRT_IOMUXC_b.offset1CC)
  3343. #define IOMUXC_USB_OTG1_OC_SELECT_INPUT (IMXRT_IOMUXC_b.offset1D0)
  3344. #define IOMUXC_USDHC1_CD_B_SELECT_INPUT (IMXRT_IOMUXC_b.offset1D4)
  3345. #define IOMUXC_USDHC1_WP_SELECT_INPUT (IMXRT_IOMUXC_b.offset1D8)
  3346. #define IOMUXC_USDHC2_CLK_SELECT_INPUT (IMXRT_IOMUXC_b.offset1DC)
  3347. #define IOMUXC_USDHC2_CD_B_SELECT_INPUT (IMXRT_IOMUXC_b.offset1E0)
  3348. #define IOMUXC_USDHC2_CMD_SELECT_INPUT (IMXRT_IOMUXC_b.offset1E4)
  3349. #define IOMUXC_USDHC2_DATA0_SELECT_INPUT (IMXRT_IOMUXC_b.offset1E8)
  3350. #define IOMUXC_USDHC2_DATA1_SELECT_INPUT (IMXRT_IOMUXC_b.offset1EC)
  3351. #define IOMUXC_USDHC2_DATA2_SELECT_INPUT (IMXRT_IOMUXC_b.offset1F0)
  3352. #define IOMUXC_USDHC2_DATA3_SELECT_INPUT (IMXRT_IOMUXC_b.offset1F4)
  3353. #define IOMUXC_USDHC2_DATA4_SELECT_INPUT (IMXRT_IOMUXC_b.offset1F8)
  3354. #define IOMUXC_USDHC2_DATA5_SELECT_INPUT (IMXRT_IOMUXC_b.offset1FC)
  3355. #define IOMUXC_USDHC2_DATA6_SELECT_INPUT (IMXRT_IOMUXC_b.offset200)
  3356. #define IOMUXC_USDHC2_DATA7_SELECT_INPUT (IMXRT_IOMUXC_b.offset204)
  3357. #define IOMUXC_USDHC2_WP_SELECT_INPUT (IMXRT_IOMUXC_b.offset208)
  3358. #define IOMUXC_XBAR1_IN02_SELECT_INPUT (IMXRT_IOMUXC_b.offset20C)
  3359. #define IOMUXC_XBAR1_IN03_SELECT_INPUT (IMXRT_IOMUXC_b.offset210)
  3360. #define IOMUXC_XBAR1_IN04_SELECT_INPUT (IMXRT_IOMUXC_b.offset214)
  3361. #define IOMUXC_XBAR1_IN05_SELECT_INPUT (IMXRT_IOMUXC_b.offset218)
  3362. #define IOMUXC_XBAR1_IN06_SELECT_INPUT (IMXRT_IOMUXC_b.offset21C)
  3363. #define IOMUXC_XBAR1_IN07_SELECT_INPUT (IMXRT_IOMUXC_b.offset220)
  3364. #define IOMUXC_XBAR1_IN08_SELECT_INPUT (IMXRT_IOMUXC_b.offset224)
  3365. #define IOMUXC_XBAR1_IN09_SELECT_INPUT (IMXRT_IOMUXC_b.offset228)
  3366. #define IOMUXC_XBAR1_IN17_SELECT_INPUT (IMXRT_IOMUXC_b.offset22C)
  3367. #define IOMUXC_XBAR1_IN18_SELECT_INPUT (IMXRT_IOMUXC_b.offset230)
  3368. #define IOMUXC_XBAR1_IN20_SELECT_INPUT (IMXRT_IOMUXC_b.offset234)
  3369. #define IOMUXC_XBAR1_IN22_SELECT_INPUT (IMXRT_IOMUXC_b.offset238)
  3370. #define IOMUXC_XBAR1_IN23_SELECT_INPUT (IMXRT_IOMUXC_b.offset23C)
  3371. #define IOMUXC_XBAR1_IN24_SELECT_INPUT (IMXRT_IOMUXC_b.offset240)
  3372. #define IOMUXC_XBAR1_IN14_SELECT_INPUT (IMXRT_IOMUXC_b.offset244)
  3373. #define IOMUXC_XBAR1_IN15_SELECT_INPUT (IMXRT_IOMUXC_b.offset248)
  3374. #define IOMUXC_XBAR1_IN16_SELECT_INPUT (IMXRT_IOMUXC_b.offset24C)
  3375. #define IOMUXC_XBAR1_IN25_SELECT_INPUT (IMXRT_IOMUXC_b.offset250)
  3376. #define IOMUXC_XBAR1_IN19_SELECT_INPUT (IMXRT_IOMUXC_b.offset254)
  3377. #define IOMUXC_XBAR1_IN21_SELECT_INPUT (IMXRT_IOMUXC_b.offset258)
  3378. // page 2356
  3379. #define IMXRT_KPP (*(IMXRT_REGISTER16_t *)0x401FC000)
  3380. #define KPP_KPCR (IMXRT_KPP.offset000)
  3381. #define KPP_KPSR (IMXRT_KPP.offset002)
  3382. #define KPP_KDDR (IMXRT_KPP.offset004)
  3383. #define KPP_KPDR (IMXRT_KPP.offset006)
  3384. // page 2380
  3385. #define IMXRT_LCDIF (*(IMXRT_REGISTER32_t *)0x402B8000)
  3386. #define LCDIF_CTRL (IMXRT_LCDIF.offset000)
  3387. #define LCDIF_CTRL_SET (IMXRT_LCDIF.offset004)
  3388. #define LCDIF_CTRL_CLR (IMXRT_LCDIF.offset008)
  3389. #define LCDIF_CTRL_TOG (IMXRT_LCDIF.offset00C)
  3390. #define LCDIF_CTRL1 (IMXRT_LCDIF.offset010)
  3391. #define LCDIF_CTRL1_SET (IMXRT_LCDIF.offset014)
  3392. #define LCDIF_CTRL1_CLR (IMXRT_LCDIF.offset018)
  3393. #define LCDIF_CTRL1_TOG (IMXRT_LCDIF.offset01C)
  3394. #define LCDIF_CTRL2 (IMXRT_LCDIF.offset020)
  3395. #define LCDIF_CTRL2_SET (IMXRT_LCDIF.offset024)
  3396. #define LCDIF_CTRL2_CLR (IMXRT_LCDIF.offset028)
  3397. #define LCDIF_CTRL2_TOG (IMXRT_LCDIF.offset02C)
  3398. #define LCDIF_TRANSFER_COUNT (IMXRT_LCDIF.offset030)
  3399. #define LCDIF_CUR_BUF (IMXRT_LCDIF.offset040)
  3400. #define LCDIF_NEXT_BUF (IMXRT_LCDIF.offset050)
  3401. #define LCDIF_VDCTRL0 (IMXRT_LCDIF.offset070)
  3402. #define LCDIF_VDCTRL0_SET (IMXRT_LCDIF.offset074)
  3403. #define LCDIF_VDCTRL0_CLR (IMXRT_LCDIF.offset078)
  3404. #define LCDIF_VDCTRL0_TOG (IMXRT_LCDIF.offset07C)
  3405. #define LCDIF_VDCTRL1 (IMXRT_LCDIF.offset080)
  3406. #define LCDIF_VDCTRL2 (IMXRT_LCDIF.offset090)
  3407. #define LCDIF_VDCTRL3 (IMXRT_LCDIF.offset0A0)
  3408. #define LCDIF_VDCTRL4 (IMXRT_LCDIF.offset0B0)
  3409. #define LCDIF_BM_ERROR_STAT (IMXRT_LCDIF.offset190)
  3410. #define LCDIF_CRC_STAT (IMXRT_LCDIF.offset1A0)
  3411. #define LCDIF_STAT (IMXRT_LCDIF.offset1B0)
  3412. #define LCDIF_THRES (IMXRT_LCDIF.offset200)
  3413. #define LCDIF_AS_CTRL (IMXRT_LCDIF.offset210)
  3414. #define LCDIF_AS_BUF (IMXRT_LCDIF.offset220)
  3415. #define LCDIF_AS_NEXT_BUF (IMXRT_LCDIF.offset230)
  3416. #define LCDIF_AS_CLRKEYLOW (IMXRT_LCDIF.offset240)
  3417. #define LCDIF_AS_CLRKEYHIGH (IMXRT_LCDIF.offset250)
  3418. #define LCDIF_PIGEONCTRL0 (IMXRT_LCDIF.offset380)
  3419. #define LCDIF_PIGEONCTRL0_SET (IMXRT_LCDIF.offset384)
  3420. #define LCDIF_PIGEONCTRL0_CLR (IMXRT_LCDIF.offset388)
  3421. #define LCDIF_PIGEONCTRL0_TOG (IMXRT_LCDIF.offset38C)
  3422. #define LCDIF_PIGEONCTRL1 (IMXRT_LCDIF.offset390)
  3423. #define LCDIF_PIGEONCTRL1_SET (IMXRT_LCDIF.offset394)
  3424. #define LCDIF_PIGEONCTRL1_CLR (IMXRT_LCDIF.offset398)
  3425. #define LCDIF_PIGEONCTRL1_TOG (IMXRT_LCDIF.offset39C)
  3426. #define LCDIF_PIGEONCTRL2 (IMXRT_LCDIF.offset3A0)
  3427. #define LCDIF_PIGEONCTRL2_SET (IMXRT_LCDIF.offset3A4)
  3428. #define LCDIF_PIGEONCTRL2_CLR (IMXRT_LCDIF.offset3A8)
  3429. #define LCDIF_PIGEONCTRL2_TOG (IMXRT_LCDIF.offset3AC)
  3430. #define IMXRT_LCDIF_b (*(IMXRT_REGISTER32_t *)0x402B8800)
  3431. #define LCDIF_PIGEON_0_0 (IMXRT_LCDIF_b.offset000)
  3432. #define LCDIF_PIGEON_0_1 (IMXRT_LCDIF_b.offset010)
  3433. #define LCDIF_PIGEON_0_2 (IMXRT_LCDIF_b.offset020)
  3434. #define LCDIF_PIGEON_1_0 (IMXRT_LCDIF_b.offset040)
  3435. #define LCDIF_PIGEON_1_1 (IMXRT_LCDIF_b.offset050)
  3436. #define LCDIF_PIGEON_1_2 (IMXRT_LCDIF_b.offset060)
  3437. #define LCDIF_PIGEON_2_0 (IMXRT_LCDIF_b.offset080)
  3438. #define LCDIF_PIGEON_2_1 (IMXRT_LCDIF_b.offset090)
  3439. #define LCDIF_PIGEON_2_2 (IMXRT_LCDIF_b.offset0A0)
  3440. #define LCDIF_PIGEON_3_0 (IMXRT_LCDIF_b.offset0C0)
  3441. #define LCDIF_PIGEON_3_1 (IMXRT_LCDIF_b.offset0D0)
  3442. #define LCDIF_PIGEON_3_2 (IMXRT_LCDIF_b.offset0E0)
  3443. #define LCDIF_PIGEON_4_0 (IMXRT_LCDIF_b.offset100)
  3444. #define LCDIF_PIGEON_4_1 (IMXRT_LCDIF_b.offset110)
  3445. #define LCDIF_PIGEON_4_2 (IMXRT_LCDIF_b.offset120)
  3446. #define LCDIF_PIGEON_5_0 (IMXRT_LCDIF_b.offset140)
  3447. #define LCDIF_PIGEON_5_1 (IMXRT_LCDIF_b.offset150)
  3448. #define LCDIF_PIGEON_5_2 (IMXRT_LCDIF_b.offset160)
  3449. #define LCDIF_PIGEON_6_0 (IMXRT_LCDIF_b.offset180)
  3450. #define LCDIF_PIGEON_6_1 (IMXRT_LCDIF_b.offset190)
  3451. #define LCDIF_PIGEON_6_2 (IMXRT_LCDIF_b.offset1A0)
  3452. #define LCDIF_PIGEON_7_0 (IMXRT_LCDIF_b.offset1C0)
  3453. #define LCDIF_PIGEON_7_1 (IMXRT_LCDIF_b.offset1D0)
  3454. #define LCDIF_PIGEON_7_2 (IMXRT_LCDIF_b.offset1E0)
  3455. #define LCDIF_PIGEON_8_0 (IMXRT_LCDIF_b.offset200)
  3456. #define LCDIF_PIGEON_8_1 (IMXRT_LCDIF_b.offset210)
  3457. #define LCDIF_PIGEON_8_2 (IMXRT_LCDIF_b.offset220)
  3458. #define LCDIF_PIGEON_9_0 (IMXRT_LCDIF_b.offset240)
  3459. #define LCDIF_PIGEON_9_1 (IMXRT_LCDIF_b.offset250)
  3460. #define LCDIF_PIGEON_9_2 (IMXRT_LCDIF_b.offset260)
  3461. #define LCDIF_PIGEON_10_0 (IMXRT_LCDIF_b.offset280)
  3462. #define LCDIF_PIGEON_10_1 (IMXRT_LCDIF_b.offset290)
  3463. #define LCDIF_PIGEON_10_2 (IMXRT_LCDIF_b.offset2A0)
  3464. #define LCDIF_PIGEON_11_0 (IMXRT_LCDIF_b.offset2C0)
  3465. #define LCDIF_PIGEON_11_1 (IMXRT_LCDIF_b.offset2D0)
  3466. #define LCDIF_PIGEON_11_2 (IMXRT_LCDIF_b.offset2E0)
  3467. // page 2415
  3468. #define IMXRT_LPI2C1 (*(IMXRT_REGISTER32_t *)0x403F0000)
  3469. #define LPI2C1_VERID (IMXRT_LPI2C1.offset000)
  3470. #define LPI2C1_PARAM (IMXRT_LPI2C1.offset004)
  3471. #define LPI2C1_MCR (IMXRT_LPI2C1.offset010)
  3472. #define LPI2C1_MSR (IMXRT_LPI2C1.offset014)
  3473. #define LPI2C1_MIER (IMXRT_LPI2C1.offset018)
  3474. #define LPI2C1_MDER (IMXRT_LPI2C1.offset01C)
  3475. #define LPI2C1_MCFGR0 (IMXRT_LPI2C1.offset020)
  3476. #define LPI2C1_MCFGR1 (IMXRT_LPI2C1.offset024)
  3477. #define LPI2C1_MCFGR2 (IMXRT_LPI2C1.offset028)
  3478. #define LPI2C1_MCFGR3 (IMXRT_LPI2C1.offset02C)
  3479. #define LPI2C1_MDMR (IMXRT_LPI2C1.offset040)
  3480. #define LPI2C1_MCCR0 (IMXRT_LPI2C1.offset048)
  3481. #define LPI2C1_MCCR1 (IMXRT_LPI2C1.offset050)
  3482. #define LPI2C1_MFCR (IMXRT_LPI2C1.offset058)
  3483. #define LPI2C1_MFSR (IMXRT_LPI2C1.offset05C)
  3484. #define LPI2C1_MTDR (IMXRT_LPI2C1.offset060)
  3485. #define LPI2C1_MRDR (IMXRT_LPI2C1.offset070)
  3486. #define LPI2C1_SCR (IMXRT_LPI2C1.offset110)
  3487. #define LPI2C1_SSR (IMXRT_LPI2C1.offset114)
  3488. #define LPI2C1_SIER (IMXRT_LPI2C1.offset118)
  3489. #define LPI2C1_SDER (IMXRT_LPI2C1.offset11C)
  3490. #define LPI2C1_SCFGR1 (IMXRT_LPI2C1.offset124)
  3491. #define LPI2C1_SCFGR2 (IMXRT_LPI2C1.offset128)
  3492. #define LPI2C1_SAMR (IMXRT_LPI2C1.offset140)
  3493. #define LPI2C1_SASR (IMXRT_LPI2C1.offset150)
  3494. #define LPI2C1_STAR (IMXRT_LPI2C1.offset154)
  3495. #define LPI2C1_STDR (IMXRT_LPI2C1.offset160)
  3496. #define LPI2C1_SRDR (IMXRT_LPI2C1.offset170)
  3497. #define IMXRT_LPI2C2 (*(IMXRT_REGISTER32_t *)0x403F4000)
  3498. #define LPI2C2_VERID (IMXRT_LPI2C2.offset000)
  3499. #define LPI2C2_PARAM (IMXRT_LPI2C2.offset004)
  3500. #define LPI2C2_MCR (IMXRT_LPI2C2.offset010)
  3501. #define LPI2C2_MSR (IMXRT_LPI2C2.offset014)
  3502. #define LPI2C2_MIER (IMXRT_LPI2C2.offset018)
  3503. #define LPI2C2_MDER (IMXRT_LPI2C2.offset01C)
  3504. #define LPI2C2_MCFGR0 (IMXRT_LPI2C2.offset020)
  3505. #define LPI2C2_MCFGR1 (IMXRT_LPI2C2.offset024)
  3506. #define LPI2C2_MCFGR2 (IMXRT_LPI2C2.offset028)
  3507. #define LPI2C2_MCFGR3 (IMXRT_LPI2C2.offset02C)
  3508. #define LPI2C2_MDMR (IMXRT_LPI2C2.offset040)
  3509. #define LPI2C2_MCCR0 (IMXRT_LPI2C2.offset048)
  3510. #define LPI2C2_MCCR1 (IMXRT_LPI2C2.offset050)
  3511. #define LPI2C2_MFCR (IMXRT_LPI2C2.offset058)
  3512. #define LPI2C2_MFSR (IMXRT_LPI2C2.offset05C)
  3513. #define LPI2C2_MTDR (IMXRT_LPI2C2.offset060)
  3514. #define LPI2C2_MRDR (IMXRT_LPI2C2.offset070)
  3515. #define LPI2C2_SCR (IMXRT_LPI2C2.offset110)
  3516. #define LPI2C2_SSR (IMXRT_LPI2C2.offset114)
  3517. #define LPI2C2_SIER (IMXRT_LPI2C2.offset118)
  3518. #define LPI2C2_SDER (IMXRT_LPI2C2.offset11C)
  3519. #define LPI2C2_SCFGR1 (IMXRT_LPI2C2.offset124)
  3520. #define LPI2C2_SCFGR2 (IMXRT_LPI2C2.offset128)
  3521. #define LPI2C2_SAMR (IMXRT_LPI2C2.offset140)
  3522. #define LPI2C2_SASR (IMXRT_LPI2C2.offset150)
  3523. #define LPI2C2_STAR (IMXRT_LPI2C2.offset154)
  3524. #define LPI2C2_STDR (IMXRT_LPI2C2.offset160)
  3525. #define LPI2C2_SRDR (IMXRT_LPI2C2.offset170)
  3526. #define IMXRT_LPI2C3 (*(IMXRT_REGISTER32_t *)0x403F8000)
  3527. #define LPI2C3_VERID (IMXRT_LPI2C3.offset000)
  3528. #define LPI2C3_PARAM (IMXRT_LPI2C3.offset004)
  3529. #define LPI2C3_MCR (IMXRT_LPI2C3.offset010)
  3530. #define LPI2C3_MSR (IMXRT_LPI2C3.offset014)
  3531. #define LPI2C3_MIER (IMXRT_LPI2C3.offset018)
  3532. #define LPI2C3_MDER (IMXRT_LPI2C3.offset01C)
  3533. #define LPI2C3_MCFGR0 (IMXRT_LPI2C3.offset020)
  3534. #define LPI2C3_MCFGR1 (IMXRT_LPI2C3.offset024)
  3535. #define LPI2C3_MCFGR2 (IMXRT_LPI2C3.offset028)
  3536. #define LPI2C3_MCFGR3 (IMXRT_LPI2C3.offset02C)
  3537. #define LPI2C3_MDMR (IMXRT_LPI2C3.offset040)
  3538. #define LPI2C3_MCCR0 (IMXRT_LPI2C3.offset048)
  3539. #define LPI2C3_MCCR1 (IMXRT_LPI2C3.offset050)
  3540. #define LPI2C3_MFCR (IMXRT_LPI2C3.offset058)
  3541. #define LPI2C3_MFSR (IMXRT_LPI2C3.offset05C)
  3542. #define LPI2C3_MTDR (IMXRT_LPI2C3.offset060)
  3543. #define LPI2C3_MRDR (IMXRT_LPI2C3.offset070)
  3544. #define LPI2C3_SCR (IMXRT_LPI2C3.offset110)
  3545. #define LPI2C3_SSR (IMXRT_LPI2C3.offset114)
  3546. #define LPI2C3_SIER (IMXRT_LPI2C3.offset118)
  3547. #define LPI2C3_SDER (IMXRT_LPI2C3.offset11C)
  3548. #define LPI2C3_SCFGR1 (IMXRT_LPI2C3.offset124)
  3549. #define LPI2C3_SCFGR2 (IMXRT_LPI2C3.offset128)
  3550. #define LPI2C3_SAMR (IMXRT_LPI2C3.offset140)
  3551. #define LPI2C3_SASR (IMXRT_LPI2C3.offset150)
  3552. #define LPI2C3_STAR (IMXRT_LPI2C3.offset154)
  3553. #define LPI2C3_STDR (IMXRT_LPI2C3.offset160)
  3554. #define LPI2C3_SRDR (IMXRT_LPI2C3.offset170)
  3555. #define IMXRT_LPI2C4 (*(IMXRT_REGISTER32_t *)0x403FC000)
  3556. #define LPI2C4_VERID (IMXRT_LPI2C4.offset000)
  3557. #define LPI2C4_PARAM (IMXRT_LPI2C4.offset004)
  3558. #define LPI2C4_MCR (IMXRT_LPI2C4.offset010)
  3559. #define LPI2C4_MSR (IMXRT_LPI2C4.offset014)
  3560. #define LPI2C4_MIER (IMXRT_LPI2C4.offset018)
  3561. #define LPI2C4_MDER (IMXRT_LPI2C4.offset01C)
  3562. #define LPI2C4_MCFGR0 (IMXRT_LPI2C4.offset020)
  3563. #define LPI2C4_MCFGR1 (IMXRT_LPI2C4.offset024)
  3564. #define LPI2C4_MCFGR2 (IMXRT_LPI2C4.offset028)
  3565. #define LPI2C4_MCFGR3 (IMXRT_LPI2C4.offset02C)
  3566. #define LPI2C4_MDMR (IMXRT_LPI2C4.offset040)
  3567. #define LPI2C4_MCCR0 (IMXRT_LPI2C4.offset048)
  3568. #define LPI2C4_MCCR1 (IMXRT_LPI2C4.offset050)
  3569. #define LPI2C4_MFCR (IMXRT_LPI2C4.offset058)
  3570. #define LPI2C4_MFSR (IMXRT_LPI2C4.offset05C)
  3571. #define LPI2C4_MTDR (IMXRT_LPI2C4.offset060)
  3572. #define LPI2C4_MRDR (IMXRT_LPI2C4.offset070)
  3573. #define LPI2C4_SCR (IMXRT_LPI2C4.offset110)
  3574. #define LPI2C4_SSR (IMXRT_LPI2C4.offset114)
  3575. #define LPI2C4_SIER (IMXRT_LPI2C4.offset118)
  3576. #define LPI2C4_SDER (IMXRT_LPI2C4.offset11C)
  3577. #define LPI2C4_SCFGR1 (IMXRT_LPI2C4.offset124)
  3578. #define LPI2C4_SCFGR2 (IMXRT_LPI2C4.offset128)
  3579. #define LPI2C4_SAMR (IMXRT_LPI2C4.offset140)
  3580. #define LPI2C4_SASR (IMXRT_LPI2C4.offset150)
  3581. #define LPI2C4_STAR (IMXRT_LPI2C4.offset154)
  3582. #define LPI2C4_STDR (IMXRT_LPI2C4.offset160)
  3583. #define LPI2C4_SRDR (IMXRT_LPI2C4.offset170)
  3584. // page 2479
  3585. #define IMXRT_LPSPI1 (*(IMXRT_REGISTER32_t *)0x40394000)
  3586. #define LPSPI1_VERID (IMXRT_LPSPI1.offset000)
  3587. #define LPSPI1_PARAM (IMXRT_LPSPI1.offset004)
  3588. #define LPSPI1_CR (IMXRT_LPSPI1.offset010)
  3589. #define LPSPI1_SR (IMXRT_LPSPI1.offset014)
  3590. #define LPSPI1_IER (IMXRT_LPSPI1.offset018)
  3591. #define LPSPI1_DER (IMXRT_LPSPI1.offset01C)
  3592. #define LPSPI1_CFGR0 (IMXRT_LPSPI1.offset020)
  3593. #define LPSPI1_CFGR1 (IMXRT_LPSPI1.offset024)
  3594. #define LPSPI1_DMR0 (IMXRT_LPSPI1.offset030)
  3595. #define LPSPI1_DMR1 (IMXRT_LPSPI1.offset034)
  3596. #define LPSPI1_CCR (IMXRT_LPSPI1.offset040)
  3597. #define LPSPI1_FCR (IMXRT_LPSPI1.offset058)
  3598. #define LPSPI1_FSR (IMXRT_LPSPI1.offset05C)
  3599. #define LPSPI1_TCR (IMXRT_LPSPI1.offset060)
  3600. #define LPSPI1_TDR (IMXRT_LPSPI1.offset064)
  3601. #define LPSPI1_RSR (IMXRT_LPSPI1.offset070)
  3602. #define LPSPI1_RDR (IMXRT_LPSPI1.offset074)
  3603. #define IMXRT_LPSPI2 (*(IMXRT_REGISTER32_t *)0x40398000)
  3604. #define LPSPI2_VERID (IMXRT_LPSPI2.offset000)
  3605. #define LPSPI2_PARAM (IMXRT_LPSPI2.offset004)
  3606. #define LPSPI2_CR (IMXRT_LPSPI2.offset010)
  3607. #define LPSPI2_SR (IMXRT_LPSPI2.offset014)
  3608. #define LPSPI2_IER (IMXRT_LPSPI2.offset018)
  3609. #define LPSPI2_DER (IMXRT_LPSPI2.offset01C)
  3610. #define LPSPI2_CFGR0 (IMXRT_LPSPI2.offset020)
  3611. #define LPSPI2_CFGR1 (IMXRT_LPSPI2.offset024)
  3612. #define LPSPI2_DMR0 (IMXRT_LPSPI2.offset030)
  3613. #define LPSPI2_DMR1 (IMXRT_LPSPI2.offset034)
  3614. #define LPSPI2_CCR (IMXRT_LPSPI2.offset040)
  3615. #define LPSPI2_FCR (IMXRT_LPSPI2.offset058)
  3616. #define LPSPI2_FSR (IMXRT_LPSPI2.offset05C)
  3617. #define LPSPI2_TCR (IMXRT_LPSPI2.offset060)
  3618. #define LPSPI2_TDR (IMXRT_LPSPI2.offset064)
  3619. #define LPSPI2_RSR (IMXRT_LPSPI2.offset070)
  3620. #define LPSPI2_RDR (IMXRT_LPSPI2.offset074)
  3621. #define IMXRT_LPSPI3 (*(IMXRT_REGISTER32_t *)0x4039C000)
  3622. #define LPSPI3_VERID (IMXRT_LPSPI3.offset000)
  3623. #define LPSPI3_PARAM (IMXRT_LPSPI3.offset004)
  3624. #define LPSPI3_CR (IMXRT_LPSPI3.offset010)
  3625. #define LPSPI3_SR (IMXRT_LPSPI3.offset014)
  3626. #define LPSPI3_IER (IMXRT_LPSPI3.offset018)
  3627. #define LPSPI3_DER (IMXRT_LPSPI3.offset01C)
  3628. #define LPSPI3_CFGR0 (IMXRT_LPSPI3.offset020)
  3629. #define LPSPI3_CFGR1 (IMXRT_LPSPI3.offset024)
  3630. #define LPSPI3_DMR0 (IMXRT_LPSPI3.offset030)
  3631. #define LPSPI3_DMR1 (IMXRT_LPSPI3.offset034)
  3632. #define LPSPI3_CCR (IMXRT_LPSPI3.offset040)
  3633. #define LPSPI3_FCR (IMXRT_LPSPI3.offset058)
  3634. #define LPSPI3_FSR (IMXRT_LPSPI3.offset05C)
  3635. #define LPSPI3_TCR (IMXRT_LPSPI3.offset060)
  3636. #define LPSPI3_TDR (IMXRT_LPSPI3.offset064)
  3637. #define LPSPI3_RSR (IMXRT_LPSPI3.offset070)
  3638. #define LPSPI3_RDR (IMXRT_LPSPI3.offset074)
  3639. #define IMXRT_LPSPI4 (*(IMXRT_REGISTER32_t *)0x403A0000)
  3640. #define LPSPI4_VERID (IMXRT_LPSPI4.offset000)
  3641. #define LPSPI4_PARAM (IMXRT_LPSPI4.offset004)
  3642. #define LPSPI4_CR (IMXRT_LPSPI4.offset010)
  3643. #define LPSPI4_SR (IMXRT_LPSPI4.offset014)
  3644. #define LPSPI4_IER (IMXRT_LPSPI4.offset018)
  3645. #define LPSPI4_DER (IMXRT_LPSPI4.offset01C)
  3646. #define LPSPI4_CFGR0 (IMXRT_LPSPI4.offset020)
  3647. #define LPSPI4_CFGR1 (IMXRT_LPSPI4.offset024)
  3648. #define LPSPI4_DMR0 (IMXRT_LPSPI4.offset030)
  3649. #define LPSPI4_DMR1 (IMXRT_LPSPI4.offset034)
  3650. #define LPSPI4_CCR (IMXRT_LPSPI4.offset040)
  3651. #define LPSPI4_FCR (IMXRT_LPSPI4.offset058)
  3652. #define LPSPI4_FSR (IMXRT_LPSPI4.offset05C)
  3653. #define LPSPI4_TCR (IMXRT_LPSPI4.offset060)
  3654. #define LPSPI4_TDR (IMXRT_LPSPI4.offset064)
  3655. #define LPSPI4_RSR (IMXRT_LPSPI4.offset070)
  3656. #define LPSPI4_RDR (IMXRT_LPSPI4.offset074)
  3657. // page 2486
  3658. #define IMXRT_LPUART1 (*(IMXRT_REGISTER32_t *)0x40184000)
  3659. #define LPUART1_VERID (IMXRT_LPUART1.offset000)
  3660. #define LPUART1_PARAM (IMXRT_LPUART1.offset004)
  3661. #define LPUART1_GLOBAL (IMXRT_LPUART1.offset008)
  3662. #define LPUART1_PINCFG (IMXRT_LPUART1.offset00C)
  3663. #define LPUART1_BAUD (IMXRT_LPUART1.offset010)
  3664. #define LPUART1_STAT (IMXRT_LPUART1.offset014)
  3665. #define LPUART1_CTRL (IMXRT_LPUART1.offset018)
  3666. #define LPUART1_DATA (IMXRT_LPUART1.offset01C)
  3667. #define LPUART1_MATCH (IMXRT_LPUART1.offset020)
  3668. #define LPUART1_MODIR (IMXRT_LPUART1.offset024)
  3669. #define LPUART1_FIFO (IMXRT_LPUART1.offset028)
  3670. #define LPUART1_WATER (IMXRT_LPUART1.offset02C)
  3671. #define IMXRT_LPUART2 (*(IMXRT_REGISTER32_t *)0x40188000)
  3672. #define LPUART2_VERID (IMXRT_LPUART2.offset000)
  3673. #define LPUART2_PARAM (IMXRT_LPUART2.offset004)
  3674. #define LPUART2_GLOBAL (IMXRT_LPUART2.offset008)
  3675. #define LPUART2_PINCFG (IMXRT_LPUART2.offset00C)
  3676. #define LPUART2_BAUD (IMXRT_LPUART2.offset010)
  3677. #define LPUART2_STAT (IMXRT_LPUART2.offset014)
  3678. #define LPUART2_CTRL (IMXRT_LPUART2.offset018)
  3679. #define LPUART2_DATA (IMXRT_LPUART2.offset01C)
  3680. #define LPUART2_MATCH (IMXRT_LPUART2.offset020)
  3681. #define LPUART2_MODIR (IMXRT_LPUART2.offset024)
  3682. #define LPUART2_FIFO (IMXRT_LPUART2.offset028)
  3683. #define LPUART2_WATER (IMXRT_LPUART2.offset02C)
  3684. #define IMXRT_LPUART3 (*(IMXRT_REGISTER32_t *)0x4018C000)
  3685. #define LPUART3_VERID (IMXRT_LPUART3.offset000)
  3686. #define LPUART3_PARAM (IMXRT_LPUART3.offset004)
  3687. #define LPUART3_GLOBAL (IMXRT_LPUART3.offset008)
  3688. #define LPUART3_PINCFG (IMXRT_LPUART3.offset00C)
  3689. #define LPUART3_BAUD (IMXRT_LPUART3.offset010)
  3690. #define LPUART3_STAT (IMXRT_LPUART3.offset014)
  3691. #define LPUART3_CTRL (IMXRT_LPUART3.offset018)
  3692. #define LPUART3_DATA (IMXRT_LPUART3.offset01C)
  3693. #define LPUART3_MATCH (IMXRT_LPUART3.offset020)
  3694. #define LPUART3_MODIR (IMXRT_LPUART3.offset024)
  3695. #define LPUART3_FIFO (IMXRT_LPUART3.offset028)
  3696. #define LPUART3_WATER (IMXRT_LPUART3.offset02C)
  3697. #define IMXRT_LPUART4 (*(IMXRT_REGISTER32_t *)0x40190000)
  3698. #define LPUART4_VERID (IMXRT_LPUART4.offset000)
  3699. #define LPUART4_PARAM (IMXRT_LPUART4.offset004)
  3700. #define LPUART4_GLOBAL (IMXRT_LPUART4.offset008)
  3701. #define LPUART4_PINCFG (IMXRT_LPUART4.offset00C)
  3702. #define LPUART4_BAUD (IMXRT_LPUART4.offset010)
  3703. #define LPUART4_STAT (IMXRT_LPUART4.offset014)
  3704. #define LPUART4_CTRL (IMXRT_LPUART4.offset018)
  3705. #define LPUART4_DATA (IMXRT_LPUART4.offset01C)
  3706. #define LPUART4_MATCH (IMXRT_LPUART4.offset020)
  3707. #define LPUART4_MODIR (IMXRT_LPUART4.offset024)
  3708. #define LPUART4_FIFO (IMXRT_LPUART4.offset028)
  3709. #define LPUART4_WATER (IMXRT_LPUART4.offset02C)
  3710. #define IMXRT_LPUART5 (*(IMXRT_REGISTER32_t *)0x40194000)
  3711. #define LPUART5_VERID (IMXRT_LPUART5.offset000)
  3712. #define LPUART5_PARAM (IMXRT_LPUART5.offset004)
  3713. #define LPUART5_GLOBAL (IMXRT_LPUART5.offset008)
  3714. #define LPUART5_PINCFG (IMXRT_LPUART5.offset00C)
  3715. #define LPUART5_BAUD (IMXRT_LPUART5.offset010)
  3716. #define LPUART5_STAT (IMXRT_LPUART5.offset014)
  3717. #define LPUART5_CTRL (IMXRT_LPUART5.offset018)
  3718. #define LPUART5_DATA (IMXRT_LPUART5.offset01C)
  3719. #define LPUART5_MATCH (IMXRT_LPUART5.offset020)
  3720. #define LPUART5_MODIR (IMXRT_LPUART5.offset024)
  3721. #define LPUART5_FIFO (IMXRT_LPUART5.offset028)
  3722. #define LPUART5_WATER (IMXRT_LPUART5.offset02C)
  3723. #define IMXRT_LPUART6 (*(IMXRT_REGISTER32_t *)0x40198000)
  3724. #define LPUART6_VERID (IMXRT_LPUART6.offset000)
  3725. #define LPUART6_PARAM (IMXRT_LPUART6.offset004)
  3726. #define LPUART6_GLOBAL (IMXRT_LPUART6.offset008)
  3727. #define LPUART6_PINCFG (IMXRT_LPUART6.offset00C)
  3728. #define LPUART6_BAUD (IMXRT_LPUART6.offset010)
  3729. #define LPUART6_STAT (IMXRT_LPUART6.offset014)
  3730. #define LPUART6_CTRL (IMXRT_LPUART6.offset018)
  3731. #define LPUART6_DATA (IMXRT_LPUART6.offset01C)
  3732. #define LPUART6_MATCH (IMXRT_LPUART6.offset020)
  3733. #define LPUART6_MODIR (IMXRT_LPUART6.offset024)
  3734. #define LPUART6_FIFO (IMXRT_LPUART6.offset028)
  3735. #define LPUART6_WATER (IMXRT_LPUART6.offset02C)
  3736. #define IMXRT_LPUART7 (*(IMXRT_REGISTER32_t *)0x4019C000)
  3737. #define LPUART7_VERID (IMXRT_LPUART7.offset000)
  3738. #define LPUART7_PARAM (IMXRT_LPUART7.offset004)
  3739. #define LPUART7_GLOBAL (IMXRT_LPUART7.offset008)
  3740. #define LPUART7_PINCFG (IMXRT_LPUART7.offset00C)
  3741. #define LPUART7_BAUD (IMXRT_LPUART7.offset010)
  3742. #define LPUART7_STAT (IMXRT_LPUART7.offset014)
  3743. #define LPUART7_CTRL (IMXRT_LPUART7.offset018)
  3744. #define LPUART7_DATA (IMXRT_LPUART7.offset01C)
  3745. #define LPUART7_MATCH (IMXRT_LPUART7.offset020)
  3746. #define LPUART7_MODIR (IMXRT_LPUART7.offset024)
  3747. #define LPUART7_FIFO (IMXRT_LPUART7.offset028)
  3748. #define LPUART7_WATER (IMXRT_LPUART7.offset02C)
  3749. #define IMXRT_LPUART8 (*(IMXRT_REGISTER32_t *)0x401A0000)
  3750. #define LPUART8_VERID (IMXRT_LPUART8.offset000)
  3751. #define LPUART8_PARAM (IMXRT_LPUART8.offset004)
  3752. #define LPUART8_GLOBAL (IMXRT_LPUART8.offset008)
  3753. #define LPUART8_PINCFG (IMXRT_LPUART8.offset00C)
  3754. #define LPUART8_BAUD (IMXRT_LPUART8.offset010)
  3755. #define LPUART8_STAT (IMXRT_LPUART8.offset014)
  3756. #define LPUART8_CTRL (IMXRT_LPUART8.offset018)
  3757. #define LPUART8_DATA (IMXRT_LPUART8.offset01C)
  3758. #define LPUART8_MATCH (IMXRT_LPUART8.offset020)
  3759. #define LPUART8_MODIR (IMXRT_LPUART8.offset024)
  3760. #define LPUART8_FIFO (IMXRT_LPUART8.offset028)
  3761. #define LPUART8_WATER (IMXRT_LPUART8.offset02C)
  3762. #define LPUART_VERID_MAJOR(n) ((uint32_t)(((n) & 0xFF) << 24))
  3763. #define LPUART_VERID_MINOR(n) ((uint32_t)(((n) & 0xFF) << 16))
  3764. #define LPUART_VERID_FEATURE(n) ((uint32_t)(((n) & 0xFFFF) << 0))
  3765. #define LPUART_PARAM_RXFIFO(n) ((uint32_t)(((n) & 0xFF) << 8))
  3766. #define LPUART_PARAM_TXFIFO(n) ((uint32_t)(((n) & 0xFF) << 0))
  3767. #define LPUART_GLOBAL_RST ((uint32_t)0x00000002)
  3768. #define LPUART_PINCFG_TRGSEL(n) ((uint32_t)(((n) & 0x03) << 0))
  3769. #define LPUART_BAUD_MAEN1 ((uint32_t)0x80000000)
  3770. #define LPUART_BAUD_MAEN2 ((uint32_t)0x40000000)
  3771. #define LPUART_BAUD_M10 ((uint32_t)0x20000000)
  3772. #define LPUART_BAUD_OSR(n) ((uint32_t)(((n) & 0x1F) << 24))
  3773. #define LPUART_BAUD_TDMAE ((uint32_t)0x00800000)
  3774. #define LPUART_BAUD_RDMAE ((uint32_t)0x00200000)
  3775. #define LPUART_BAUD_MATCFG(n) ((uint32_t)(((n) & 0x03) << 18))
  3776. #define LPUART_BAUD_BOTHEDGE ((uint32_t)0x00020000)
  3777. #define LPUART_BAUD_RESYNCDIS ((uint32_t)0x00010000)
  3778. #define LPUART_BAUD_LBKDIE ((uint32_t)0x00008000)
  3779. #define LPUART_BAUD_RXEDGIE ((uint32_t)0x00004000)
  3780. #define LPUART_BAUD_SBNS ((uint32_t)0x00002000)
  3781. #define LPUART_BAUD_SBR(n) ((uint32_t)(((n) & 0x01FFF) << 0))
  3782. #define LPUART_STAT_LBKDIF ((uint32_t)0x80000000)
  3783. #define LPUART_STAT_RXEDGIF ((uint32_t)0x40000000)
  3784. #define LPUART_STAT_MSBF ((uint32_t)0x20000000)
  3785. #define LPUART_STAT_RXINV ((uint32_t)0x10000000)
  3786. #define LPUART_STAT_RWUID ((uint32_t)0x08000000)
  3787. #define LPUART_STAT_BRK13 ((uint32_t)0x04000000)
  3788. #define LPUART_STAT_LBKDE ((uint32_t)0x02000000)
  3789. #define LPUART_STAT_RAF ((uint32_t)0x01000000)
  3790. #define LPUART_STAT_TDRE ((uint32_t)0x00800000)
  3791. #define LPUART_STAT_TC ((uint32_t)0x00400000)
  3792. #define LPUART_STAT_RDRF ((uint32_t)0x00200000)
  3793. #define LPUART_STAT_IDLE ((uint32_t)0x00100000)
  3794. #define LPUART_STAT_OR ((uint32_t)0x00080000)
  3795. #define LPUART_STAT_NF ((uint32_t)0x00040000)
  3796. #define LPUART_STAT_FE ((uint32_t)0x00020000)
  3797. #define LPUART_STAT_PF ((uint32_t)0x00010000)
  3798. #define LPUART_STAT_MA1F ((uint32_t)0x00008000)
  3799. #define LPUART_STAT_MA2F ((uint32_t)0x00004000)
  3800. #define LPUART_CTRL_R8T9 ((uint32_t)0x80000000)
  3801. #define LPUART_CTRL_R9T8 ((uint32_t)0x40000000)
  3802. #define LPUART_CTRL_TXDIR ((uint32_t)0x20000000)
  3803. #define LPUART_CTRL_TXINV ((uint32_t)0x10000000)
  3804. #define LPUART_CTRL_ORIE ((uint32_t)0x08000000)
  3805. #define LPUART_CTRL_NEIE ((uint32_t)0x04000000)
  3806. #define LPUART_CTRL_FEIE ((uint32_t)0x02000000)
  3807. #define LPUART_CTRL_PEIE ((uint32_t)0x01000000)
  3808. #define LPUART_CTRL_TIE ((uint32_t)0x00800000)
  3809. #define LPUART_CTRL_TCIE ((uint32_t)0x00400000)
  3810. #define LPUART_CTRL_RIE ((uint32_t)0x00200000)
  3811. #define LPUART_CTRL_ILIE ((uint32_t)0x00100000)
  3812. #define LPUART_CTRL_TE ((uint32_t)0x00080000)
  3813. #define LPUART_CTRL_RE ((uint32_t)0x00040000)
  3814. #define LPUART_CTRL_RWU ((uint32_t)0x00020000)
  3815. #define LPUART_CTRL_SBK ((uint32_t)0x00010000)
  3816. #define LPUART_CTRL_MA1IE ((uint32_t)0x00008000)
  3817. #define LPUART_CTRL_MA2IE ((uint32_t)0x00004000)
  3818. #define LPUART_CTRL_M7 ((uint32_t)0x00000800)
  3819. #define LPUART_CTRL_IDLECFG(n) ((uint32_t)(((n) & 0x07) << 8))
  3820. #define LPUART_CTRL_LOOPS ((uint32_t)0x00000080)
  3821. #define LPUART_CTRL_DOZEEN ((uint32_t)0x00000040)
  3822. #define LPUART_CTRL_RSRC ((uint32_t)0x00000020)
  3823. #define LPUART_CTRL_M ((uint32_t)0x00000010)
  3824. #define LPUART_CTRL_WAKE ((uint32_t)0x00000008)
  3825. #define LPUART_CTRL_ILT ((uint32_t)0x00000004)
  3826. #define LPUART_CTRL_PE ((uint32_t)0x00000002)
  3827. #define LPUART_CTRL_PT ((uint32_t)0x00000001)
  3828. #define LPUART_DATA_NOISY ((uint32_t)0x00008000)
  3829. #define LPUART_DATA_PARITYE ((uint32_t)0x00004000)
  3830. #define LPUART_DATA_FRETSC ((uint32_t)0x00002000)
  3831. #define LPUART_DATA_RXEMPT ((uint32_t)0x00001000)
  3832. #define LPUART_DATA_IDLINE ((uint32_t)0x00000800)
  3833. #define LPUART_MATCH_MA2(n) ((uint32_t)(((n) & 0x3FF) << 16))
  3834. #define LPUART_MATCH_MA1(n) ((uint32_t)(((n) & 0x3FF) << 0))
  3835. #define LPUART_MODIR_IREN ((uint32_t)0x00040000)
  3836. #define LPUART_MODIR_TNP(n) ((uint32_t)(((n) & 0x03) << 16))
  3837. #define LPUART_MODIR_RTSWATER(n) ((uint32_t)(((n) & 0x03) << 8))
  3838. #define LPUART_MODIR_TXCTSSRC ((uint32_t)0x00000020)
  3839. #define LPUART_MODIR_TXCTSC ((uint32_t)0x00000010)
  3840. #define LPUART_MODIR_RXRTSE ((uint32_t)0x00000008)
  3841. #define LPUART_MODIR_TXRTSPOL ((uint32_t)0x00000004)
  3842. #define LPUART_MODIR_TXRTSE ((uint32_t)0x00000002)
  3843. #define LPUART_MODIR_TXCTSE ((uint32_t)0x00000001)
  3844. #define LPUART_FIFO_TXEMPT ((uint32_t)0x00800000)
  3845. #define LPUART_FIFO_RXEMPT ((uint32_t)0x00400000)
  3846. #define LPUART_FIFO_TXOF ((uint32_t)0x00020000)
  3847. #define LPUART_FIFO_RXUF ((uint32_t)0x00010000)
  3848. #define LPUART_FIFO_TXFLUSH ((uint32_t)0x00008000)
  3849. #define LPUART_FIFO_RXFLUSH ((uint32_t)0x00004000)
  3850. #define LPUART_FIFO_RXIDEN(n) ((uint32_t)(((n) & 0x07) << 10))
  3851. #define LPUART_FIFO_TXOFE ((uint32_t)0x00000200)
  3852. #define LPUART_FIFO_RXUFE ((uint32_t)0x00000100)
  3853. #define LPUART_FIFO_TXFE ((uint32_t)0x00000080)
  3854. #define LPUART_FIFO_TXFIFOSIZE(n) ((uint32_t)(((n) & 0x07) << 4))
  3855. #define LPUART_FIFO_RXFE ((uint32_t)0x00000008)
  3856. #define LPUART_FIFO_RXFIFOSIZE(n) ((uint32_t)(((n) & 0x07) << 0))
  3857. #define LPUART_WATER_RXCOUNT(n) ((uint32_t)(((n) & 0x07) << 24))
  3858. #define LPUART_WATER_RXWATER(n) ((uint32_t)(((n) & 0x03) << 16))
  3859. #define LPUART_WATER_TXCOUNT(n) ((uint32_t)(((n) & 0x07) << 8))
  3860. #define LPUART_WATER_TXWATER(n) ((uint32_t)(((n) & 0x03) << 0))
  3861. // page 2558
  3862. #define IMXRT_OCOTP (*(IMXRT_REGISTER32_t *)0x401F4000)
  3863. #define HW_OCOTP_CTRL (IMXRT_OCOTP.offset000)
  3864. #define HW_OCOTP_CTRL_SET (IMXRT_OCOTP.offset004)
  3865. #define HW_OCOTP_CTRL_CLR (IMXRT_OCOTP.offset008)
  3866. #define HW_OCOTP_CTRL_TOG (IMXRT_OCOTP.offset00C)
  3867. #define HW_OCOTP_TIMING (IMXRT_OCOTP.offset010)
  3868. #define HW_OCOTP_DATA (IMXRT_OCOTP.offset020)
  3869. #define HW_OCOTP_READ_CTRL (IMXRT_OCOTP.offset030)
  3870. #define HW_OCOTP_READ_FUSE_DATA (IMXRT_OCOTP.offset040)
  3871. #define HW_OCOTP_SW_STICKY (IMXRT_OCOTP.offset050)
  3872. #define HW_OCOTP_SCS (IMXRT_OCOTP.offset060)
  3873. #define HW_OCOTP_SCS_SET (IMXRT_OCOTP.offset064)
  3874. #define HW_OCOTP_SCS_CLR (IMXRT_OCOTP.offset068)
  3875. #define HW_OCOTP_SCS_TOG (IMXRT_OCOTP.offset06C)
  3876. #define HW_OCOTP_VERSION (IMXRT_OCOTP.offset090)
  3877. #define HW_OCOTP_TIMING2 (IMXRT_OCOTP.offset100)
  3878. #define IMXRT_OCOTP_VALUE (*(IMXRT_REGISTER32_t *)0x401F4400)
  3879. #define HW_OCOTP_LOCK (IMXRT_OCOTP_VALUE.offset000)
  3880. #define HW_OCOTP_CFG0 (IMXRT_OCOTP_VALUE.offset010)
  3881. #define HW_OCOTP_CFG1 (IMXRT_OCOTP_VALUE.offset020)
  3882. #define HW_OCOTP_CFG2 (IMXRT_OCOTP_VALUE.offset030)
  3883. #define HW_OCOTP_CFG3 (IMXRT_OCOTP_VALUE.offset040)
  3884. #define HW_OCOTP_CFG4 (IMXRT_OCOTP_VALUE.offset050)
  3885. #define HW_OCOTP_CFG5 (IMXRT_OCOTP_VALUE.offset060)
  3886. #define HW_OCOTP_CFG6 (IMXRT_OCOTP_VALUE.offset070)
  3887. #define HW_OCOTP_MEM0 (IMXRT_OCOTP_VALUE.offset080)
  3888. #define HW_OCOTP MEM1 (IMXRT_OCOTP_VALUE.offset090)
  3889. #define HW_OCOTP_MEM2 (IMXRT_OCOTP_VALUE.offset0A0)
  3890. #define HW_OCOTP_MEM3 (IMXRT_OCOTP_VALUE.offset0B0)
  3891. #define HW_OCOTP_MEM4 (IMXRT_OCOTP_VALUE.offset0C0)
  3892. #define HW_OCOTP_ANA0 (IMXRT_OCOTP_VALUE.offset0D0)
  3893. #define HW_OCOTP_ANA1 (IMXRT_OCOTP_VALUE.offset0E0)
  3894. #define HW_OCOTP_ANA2 (IMXRT_OCOTP_VALUE.offset0F0)
  3895. #define HW_OCOTP_SRK0 (IMXRT_OCOTP_VALUE.offset180)
  3896. #define HW_OCOTP_SRK1 (IMXRT_OCOTP_VALUE.offset190)
  3897. #define HW_OCOTP_SRK2 (IMXRT_OCOTP_VALUE.offset1A0)
  3898. #define HW_OCOTP_SRK3 (IMXRT_OCOTP_VALUE.offset1B0)
  3899. #define HW_OCOTP_SRK4 (IMXRT_OCOTP_VALUE.offset1C0)
  3900. #define HW_OCOTP_SRK5 (IMXRT_OCOTP_VALUE.offset1D0)
  3901. #define HW_OCOTP_SRK6 (IMXRT_OCOTP_VALUE.offset1E0)
  3902. #define HW_OCOTP_SRK7 (IMXRT_OCOTP_VALUE.offset1F0)
  3903. #define HW_OCOTP_SJC_RESP0 (IMXRT_OCOTP_VALUE.offset200)
  3904. #define HW_OCOTP_SJC_RESP1 (IMXRT_OCOTP_VALUE.offset210)
  3905. #define HW_OCOTP_MAC0 (IMXRT_OCOTP_VALUE.offset220)
  3906. #define HW_OCOTP_MAC1 (IMXRT_OCOTP_VALUE.offset230)
  3907. #define HW_OCOTP_GP3 (IMXRT_OCOTP_VALUE.offset240)
  3908. #define HW_OCOTP_GP1 (IMXRT_OCOTP_VALUE.offset260)
  3909. #define HW_OCOTP_GP2 (IMXRT_OCOTP_VALUE.offset270)
  3910. #define HW_OCOTP_SW_GP1 (IMXRT_OCOTP_VALUE.offset280)
  3911. #define HW_OCOTP_SW_GP20 (IMXRT_OCOTP_VALUE.offset290)
  3912. #define HW_OCOTP_SW_GP21 (IMXRT_OCOTP_VALUE.offset2A0)
  3913. #define HW_OCOTP_SW_GP22 (IMXRT_OCOTP_VALUE.offset2B0)
  3914. #define HW_OCOTP_SW_GP23 (IMXRT_OCOTP_VALUE.offset2C0)
  3915. #define HW_OCOTP_MISC_CONF0 (IMXRT_OCOTP_VALUE.offset2D0)
  3916. #define HW_OCOTP_MISC_CONF1 (IMXRT_OCOTP_VALUE.offset2E0)
  3917. #define HW_OCOTP_SRK_REVOKE (IMXRT_OCOTP_VALUE.offset2F0)
  3918. // page 2631
  3919. #define IMXRT_PIT (*(IMXRT_REGISTER32_t *)0x40084000)
  3920. #define PIT_MCR (IMXRT_PIT.offset000)
  3921. #define PIT_LTMR64H (IMXRT_PIT.offset0E0)
  3922. #define PIT_LTMR64L (IMXRT_PIT.offset0E4)
  3923. #define PIT_LDVAL0 (IMXRT_PIT.offset100)
  3924. #define PIT_CVAL0 (IMXRT_PIT.offset104)
  3925. #define PIT_TCTRL0 (IMXRT_PIT.offset108)
  3926. #define PIT_TFLG0 (IMXRT_PIT.offset10C)
  3927. #define PIT_LDVAL1 (IMXRT_PIT.offset110)
  3928. #define PIT_CVAL1 (IMXRT_PIT.offset114)
  3929. #define PIT_TCTRL1 (IMXRT_PIT.offset118)
  3930. #define PIT_TFLG1 (IMXRT_PIT.offset11C)
  3931. #define PIT_LDVAL2 (IMXRT_PIT.offset120)
  3932. #define PIT_CVAL2 (IMXRT_PIT.offset124)
  3933. #define PIT_TCTRL2 (IMXRT_PIT.offset128)
  3934. #define PIT_TFLG2 (IMXRT_PIT.offset12C)
  3935. #define PIT_LDVAL3 (IMXRT_PIT.offset130)
  3936. #define PIT_CVAL3 (IMXRT_PIT.offset134)
  3937. #define PIT_TCTRL3 (IMXRT_PIT.offset138)
  3938. #define PIT_TFLG3 (IMXRT_PIT.offset13C)
  3939. // page 2646
  3940. #define IMXRT_PMU (*(IMXRT_REGISTER32_t *)0x400D8000)
  3941. #define PMU_REG_1P1 (IMXRT_PMU.offset110)
  3942. #define PMU_REG_1P1_SET (IMXRT_PMU.offset114)
  3943. #define PMU_REG_1P1_CLR (IMXRT_PMU.offset118)
  3944. #define PMU_REG_1P1_TOG (IMXRT_PMU.offset11C)
  3945. #define PMU_REG_3P0 (IMXRT_PMU.offset120)
  3946. #define PMU_REG_3P0_SET (IMXRT_PMU.offset124)
  3947. #define PMU_REG_3P0_CLR (IMXRT_PMU.offset128)
  3948. #define PMU_REG_3P0_TOG (IMXRT_PMU.offset12C)
  3949. #define PMU_REG_2P5 (IMXRT_PMU.offset130)
  3950. #define PMU_REG_2P5_SET (IMXRT_PMU.offset134)
  3951. #define PMU_REG_2P5_CLR (IMXRT_PMU.offset138)
  3952. #define PMU_REG_2P5_TOG (IMXRT_PMU.offset13C)
  3953. #define PMU_REG_CORE (IMXRT_PMU.offset140)
  3954. #define PMU_REG_CORE_SET (IMXRT_PMU.offset144)
  3955. #define PMU_REG_CORE_CLR (IMXRT_PMU.offset148)
  3956. #define PMU_REG_CORE_TOG (IMXRT_PMU.offset14C)
  3957. #define PMU_MISC0 (IMXRT_PMU.offset150)
  3958. #define PMU_MISC0_SET (IMXRT_PMU.offset154)
  3959. #define PMU_MISC0_CLR (IMXRT_PMU.offset158)
  3960. #define PMU_MISC0_TOG (IMXRT_PMU.offset15C)
  3961. #define PMU_MISC1 (IMXRT_PMU.offset160)
  3962. #define PMU_MISC1_SET (IMXRT_PMU.offset164)
  3963. #define PMU_MISC1_CLR (IMXRT_PMU.offset168)
  3964. #define PMU_MISC1_TOG (IMXRT_PMU.offset16C)
  3965. #define PMU_MISC2 (IMXRT_PMU.offset170)
  3966. #define PMU_MISC2_SET (IMXRT_PMU.offset174)
  3967. #define PMU_MISC2_CLR (IMXRT_PMU.offset178)
  3968. #define PMU_MISC2_TOG (IMXRT_PMU.offset17C)
  3969. // page 2728
  3970. #define IMXRT_PXP (*(IMXRT_REGISTER32_t *)0x402B4000)
  3971. #define PXP_HW_PXP_CTRL
  3972. #define PXP_HW_PXP_CTRL_SET
  3973. #define PXP_HW_PXP_CTRL_CLR
  3974. #define PXP_HW_PXP_CTRL_TOG
  3975. #define PXP_HW_PXP_STAT
  3976. #define PXP_HW_PXP_STAT_SET
  3977. #define PXP_HW_PXP_STAT_CLR
  3978. #define PXP_HW_PXP_STAT_TOG
  3979. #define PXP_HW_PXP_OUT_CTRL
  3980. #define PXP_HW_PXP_OUT_CTRL_SET
  3981. #define PXP_HW_PXP_OUT_CTRL_CLR
  3982. #define PXP_HW_PXP_OUT_CTRL_TOG
  3983. #define PXP_HW_PXP_OUT_BUF
  3984. #define PXP_HW_PXP_OUT_BUF2
  3985. #define PXP_HW_PXP_OUT_PITCH
  3986. #define PXP_HW_PXP_OUT_LRC
  3987. #define PXP_HW_PXP_OUT_PS_ULC
  3988. #define PXP_HW_PXP_OUT_PS_LRC
  3989. #define PXP_HW_PXP_OUT_AS_ULC
  3990. #define PXP_HW_PXP_OUT_AS_LRC
  3991. #define PXP_HW_PXP_PS_CTRL
  3992. #define PXP_HW_PXP_PS_CTRL_SET
  3993. #define PXP_HW_PXP_PS_CTRL_CLR
  3994. #define PXP_HW_PXP_PS_CTRL_TOG
  3995. #define PXP_HW_PXP_PS_BUF
  3996. #define PXP_HW_PXP_PS_UBUF
  3997. #define PXP_HW_PXP_PS_VBUF
  3998. #define PXP_HW_PXP_PS_PITCH
  3999. #define PXP_HW_PXP_PS_BACKGROUND_0
  4000. #define PXP_HW_PXP_PS_SCALE
  4001. #define PXP_HW_PXP_PS_OFFSET
  4002. #define PXP_HW_PXP_PS_CLRKEYLOW_0
  4003. #define PXP_HW_PXP_PS_CLRKEYHIGH_0
  4004. #define PXP_HW_PXP_AS_CTRL
  4005. #define PXP_HW_PXP_AS_BUF
  4006. #define PXP_HW_PXP_AS_PITCH
  4007. #define PXP_HW_PXP_AS_CLRKEYLOW_0
  4008. #define PXP_HW_PXP_AS_CLRKEYHIGH_0
  4009. #define PXP_HW_PXP_CSC1_COEF0
  4010. #define PXP_HW_PXP_CSC1_COEF1
  4011. #define PXP_HW_PXP_CSC1_COEF2
  4012. #define PXP_HW_PXP_CSC2_CTRL
  4013. #define PXP_HW_PXP_CSC2_COEF0
  4014. #define PXP_HW_PXP_CSC2_COEF1
  4015. #define PXP_HW_PXP_CSC2_COEF2
  4016. #define PXP_HW_PXP_CSC2_COEF3
  4017. #define PXP_HW_PXP_CSC2_COEF4
  4018. #define PXP_HW_PXP_CSC2_COEF5
  4019. #define PXP_HW_PXP_LUT_CTRL
  4020. #define PXP_HW_PXP_LUT_ADDR
  4021. #define PXP_HW_PXP_LUT_DATA
  4022. #define PXP_HW_PXP_LUT_EXTMEM
  4023. #define PXP_HW_PXP_CFA
  4024. #define PXP_HW_PXP_ALPHA_A_CTRL
  4025. #define PXP_HW_PXP_PS_BACKGROUND_1
  4026. #define PXP_HW_PXP_PS_CLRKEYLOW_1
  4027. #define PXP_HW_PXP_PS_CLRKEYHIGH_1
  4028. #define PXP_HW_PXP_AS_CLRKEYLOW_1
  4029. #define PXP_HW_PXP_AS_CLRKEYHIGH_1
  4030. #define PXP_HW_PXP_CTRL2
  4031. #define PXP_HW_PXP_CTRL2_SET
  4032. #define PXP_HW_PXP_CTRL2_CLR
  4033. #define PXP_HW_PXP_CTRL2_TOG
  4034. #define PXP_HW_PXP_POWER_REG0
  4035. #define PXP_HW_PXP_POWER_REG1
  4036. #define PXP_HW_PXP_DATA_PATH_CTRL0
  4037. #define PXP_HW_PXP_DATA_PATH_CTRL0_SET
  4038. #define PXP_HW_PXP_DATA_PATH_CTRL0_CLR
  4039. #define PXP_HW_PXP_DATA_PATH_CTRL0_TOG
  4040. #define PXP_HW_PXP_DATA_PATH_CTRL1
  4041. #define PXP_HW_PXP_DATA_PATH_CTRL1_SET
  4042. #define PXP_HW_PXP_DATA_PATH_CTRL1_CLR
  4043. #define PXP_HW_PXP_DATA_PATH_CTRL1_TOG
  4044. #define PXP_HW_PXP_INIT_MEM_CTRL
  4045. #define PXP_HW_PXP_INIT_MEM_CTRL_SET
  4046. #define PXP_HW_PXP_INIT_MEM_CTRL_CLR
  4047. #define PXP_HW_PXP_INIT_MEM_CTRL_TOG
  4048. #define PXP_HW_PXP_INIT_MEM_DATA
  4049. #define PXP_HW_PXP_INIT_MEM_DATA_HIGH
  4050. #define PXP_HW_PXP_IRQ_MASK
  4051. #define PXP_HW_PXP_IRQ_MASK_SET
  4052. #define PXP_HW_PXP_IRQ_MASK_CLR
  4053. #define PXP_HW_PXP_IRQ_MASK_TOG
  4054. #define PXP_HW_PXP_IRQ
  4055. #define PXP_HW_PXP_IRQ_SET
  4056. #define PXP_HW_PXP_IRQ_CLR
  4057. #define PXP_HW_PXP_IRQ_TOG
  4058. #define PXP_HW_PXP_NEXT_EN
  4059. #define PXP_HW_PXP_NEXT_EN_SET
  4060. #define PXP_HW_PXP_NEXT_EN_CLR
  4061. #define PXP_HW_PXP_NEXT_EN_TOG
  4062. #define PXP_HW_PXP_NEXT
  4063. #define PXP_HW_PXP_DEBUGCTRL
  4064. #define PXP_HW_PXP_DEBUG
  4065. #define PXP_HW_PXP_VERSION
  4066. #define PXP_HW_PXP_DITHER_STORE_SIZE_CH0
  4067. #define PXP_HW_PXP_WFB_FETCH_CTRL
  4068. #define PXP_HW_PXP_WFB_FETCH_CTRL_SET
  4069. #define PXP_HW_PXP_WFB_FETCH_CTRL_CLR
  4070. #define PXP_HW_PXP_WFB_FETCH_CTRL_TOG
  4071. #define PXP_HW_PXP_WFB_FETCH_BUF1_ADDR
  4072. #define PXP_HW_PXP_WFB_FETCH_BUF1_PITCH
  4073. #define PXP_HW_PXP_WFB_FETCH_BUF1_SIZE
  4074. #define PXP_HW_PXP_WFB_FETCH_BUF2_ADDR
  4075. #define PXP_HW_PXP_WFB_FETCH_BUF2_PITCH
  4076. #define PXP_HW_PXP_WFB_FETCH_BUF2_SIZE
  4077. #define PXP_HW_PXP_WFB_ARRAY_PIXEL0_MASK
  4078. #define PXP_HW_PXP_WFB_ARRAY_PIXEL1_MASK
  4079. #define PXP_HW_PXP_WFB_ARRAY_PIXEL2_MASK
  4080. #define PXP_HW_PXP_WFB_ARRAY_PIXEL3_MASK
  4081. #define PXP_HW_PXP_WFB_ARRAY_PIXEL4_MASK
  4082. #define PXP_HW_PXP_WFB_ARRAY_PIXEL5_MASK
  4083. #define PXP_HW_PXP_WFB_ARRAY_PIXEL6_MASK
  4084. #define PXP_HW_PXP_WFB_ARRAY_PIXEL7_MASK
  4085. #define PXP_HW_PXP_WFB_ARRAY_FLAG0_MASK
  4086. #define PXP_HW_PXP_WFB_ARRAY_FLAG1_MASK
  4087. #define PXP_HW_PXP_WFB_ARRAY_FLAG2_MASK
  4088. #define PXP_HW_PXP_WFB_ARRAY_FLAG3_MASK
  4089. #define PXP_HW_PXP_WFB_ARRAY_FLAG4_MASK
  4090. #define PXP_HW_PXP_WFB_ARRAY_FLAG5_MASK
  4091. #define PXP_HW_PXP_WFB_ARRAY_FLAG6_MASK
  4092. #define PXP_HW_PXP_WFB_ARRAY_FLAG7_MASK
  4093. #define PXP_HW_PXP_WFB_FETCH_BUF1_CORD
  4094. #define PXP_HW_PXP_WFB_FETCH_BUF2_CORD
  4095. #define PXP_HW_PXP_WFB_ARRAY_FLAG8_MASK
  4096. #define PXP_HW_PXP_WFB_ARRAY_FLAG9_MASK
  4097. #define PXP_HW_PXP_WFB_ARRAY_FLAG10_MASK
  4098. #define PXP_HW_PXP_WFB_ARRAY_FLAG11_MASK
  4099. #define PXP_HW_PXP_WFB_ARRAY_FLAG12_MASK
  4100. #define PXP_HW_PXP_WFB_ARRAY_FLAG13_MASK
  4101. #define PXP_HW_PXP_WFB_ARRAY_FLAG14_MASK
  4102. #define PXP_HW_PXP_WFB_ARRAY_FLAG15_MASK
  4103. #define PXP_HW_PXP_WFB_ARRAY_REG0
  4104. #define PXP_HW_PXP_WFB_ARRAY_REG1
  4105. #define PXP_HW_PXP_WFB_ARRAY_REG2
  4106. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH0
  4107. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH0_SET
  4108. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH0_CLR
  4109. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH0_TOG
  4110. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH1
  4111. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH1_SET
  4112. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH1_CLR
  4113. #define PXP_HW_PXP_WFE_B_STORE_CTRL_CH1_TOG
  4114. #define PXP_HW_PXP_WFE_B_STORE_STATUS_CH0
  4115. #define PXP_HW_PXP_WFE_B_STORE_STATUS_CH1
  4116. #define PXP_HW_PXP_WFE_B_STORE_SIZE_CH0
  4117. #define PXP_HW_PXP_WFE_B_STORE_SIZE_CH1
  4118. #define PXP_HW_PXP_WFE_B_STORE_PITCH
  4119. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH0
  4120. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH0_SET
  4121. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH0_CLR
  4122. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH0_TOG
  4123. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH1
  4124. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH1_SET
  4125. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH1_CLR
  4126. #define PXP_HW_PXP_WFE_B_STORE_SHIFT_CTRL_CH1_TOG
  4127. #define PXP_HW_PXP_WFE_B_STORE_ADDR_0_CH0
  4128. #define PXP_HW_PXP_WFE_B_STORE_ADDR_1_CH0
  4129. #define PXP_HW_PXP_WFE_B_STORE_FILL_DATA_CH0
  4130. #define PXP_HW_PXP_WFE_B_STORE_ADDR_0_CH1
  4131. #define PXP_HW_PXP_WFE_B_STORE_ADDR_1_CH1
  4132. #define PXP_HW_PXP_WFE_B_STORE_D_MASK0_H_CH0
  4133. #define PXP_HW_PXP_WFE_B_STORE_D_MASK0_L_CH0
  4134. #define PXP_HW_PXP_WFE_B_STORE_D_MASK1_H_CH0
  4135. #define PXP_HW_PXP_WFE_B_STORE_D_MASK1_L_CH0
  4136. #define PXP_HW_PXP_WFE_B_STORE_D_MASK2_H_CH0
  4137. #define PXP_HW_PXP_WFE_B_STORE_D_MASK2_L_CH0
  4138. #define PXP_HW_PXP_WFE_B_STORE_D_MASK3_H_CH0
  4139. #define PXP_HW_PXP_WFE_B_STORE_D_MASK3_L_CH0
  4140. #define PXP_HW_PXP_WFE_B_STORE_D_MASK4_H_CH0
  4141. #define PXP_HW_PXP_WFE_B_STORE_D_MASK4_L_CH0
  4142. #define PXP_HW_PXP_WFE_B_STORE_D_MASK5_H_CH0
  4143. #define PXP_HW_PXP_WFE_B_STORE_D_MASK5_L_CH0
  4144. #define PXP_HW_PXP_WFE_B_STORE_D_MASK6_H_CH0
  4145. #define PXP_HW_PXP_WFE_B_STORE_D_MASK6_L_CH0
  4146. #define PXP_HW_PXP_WFE_B_STORE_D_MASK7_H_CH0
  4147. #define PXP_HW_PXP_WFE_B_STORE_D_MASK7_L_CH0
  4148. #define PXP_HW_PXP_WFE_B_STORE_D_SHIFT_L_CH0
  4149. #define PXP_HW_PXP_WFE_B_STORE_D_SHIFT_H_CH0
  4150. #define PXP_HW_PXP_WFE_B_STORE_F_SHIFT_L_CH0
  4151. #define PXP_HW_PXP_WFE_B_STORE_F_SHIFT_H_CH0
  4152. #define PXP_HW_PXP_WFE_B_STORE_F_MASK_L_CH0
  4153. #define PXP_HW_PXP_WFE_B_STORE_F_MASK_H_CH0
  4154. #define PXP_HW_PXP_FETCH_WFE_B_DEBUG
  4155. #define PXP_HW_PXP_DITHER_CTRL
  4156. #define PXP_HW_PXP_DITHER_CTRL_SET
  4157. #define PXP_HW_PXP_DITHER_CTRL_CLR
  4158. #define PXP_HW_PXP_DITHER_CTRL_TOG
  4159. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA0
  4160. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA0_SET
  4161. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA0_CLR
  4162. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA0_TOG
  4163. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA1
  4164. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA1_SET
  4165. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA1_CLR
  4166. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA1_TOG
  4167. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA2
  4168. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA2_SET
  4169. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA2_CLR
  4170. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA2_TOG
  4171. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA3
  4172. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA3_SET
  4173. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA3_CLR
  4174. #define PXP_HW_PXP_DITHER_FINAL_LUT_DATA3_TOG
  4175. #define PXP_HW_PXP_WFE_B_CTRL
  4176. #define PXP_HW_PXP_WFE_B_CTRL_SET
  4177. #define PXP_HW_PXP_WFE_B_CTRL_CLR
  4178. #define PXP_HW_PXP_WFE_B_CTRL_TOG
  4179. #define PXP_HW_PXP_WFE_B_DIMENSIONS
  4180. #define PXP_HW_PXP_WFE_B_OFFSET
  4181. #define PXP_HW_PXP_WFE_B_SW_DATA_REGS
  4182. #define PXP_HW_PXP_WFE_B_SW_FLAG_REGS
  4183. #define PXP_HW_PXP_WFE_B_STAGE1_MUX0
  4184. #define PXP_HW_PXP_WFE_B_STAGE1_MUX0_SET
  4185. #define PXP_HW_PXP_WFE_B_STAGE1_MUX0_CLR
  4186. #define PXP_HW_PXP_WFE_B_STAGE1_MUX0_TOG
  4187. #define PXP_HW_PXP_WFE_B_STAGE1_MUX1
  4188. #define PXP_HW_PXP_WFE_B_STAGE1_MUX1_SET
  4189. #define PXP_HW_PXP_WFE_B_STAGE1_MUX1_CLR
  4190. #define PXP_HW_PXP_WFE_B_STAGE1_MUX1_TOG
  4191. #define PXP_HW_PXP_WFE_B_STAGE1_MUX2
  4192. #define PXP_HW_PXP_WFE_B_STAGE1_MUX2_SET
  4193. #define PXP_HW_PXP_WFE_B_STAGE1_MUX2_CLR
  4194. #define PXP_HW_PXP_WFE_B_STAGE1_MUX2_TOG
  4195. #define PXP_HW_PXP_WFE_B_STAGE1_MUX3
  4196. #define PXP_HW_PXP_WFE_B_STAGE1_MUX3_SET
  4197. #define PXP_HW_PXP_WFE_B_STAGE1_MUX3_CLR
  4198. #define PXP_HW_PXP_WFE_B_STAGE1_MUX3_TOG
  4199. #define PXP_HW_PXP_WFE_B_STAGE1_MUX4
  4200. #define PXP_HW_PXP_WFE_B_STAGE1_MUX4_SET
  4201. #define PXP_HW_PXP_WFE_B_STAGE1_MUX4_CLR
  4202. #define PXP_HW_PXP_WFE_B_STAGE1_MUX4_TOG
  4203. #define PXP_HW_PXP_WFE_B_STAGE1_MUX5
  4204. #define PXP_HW_PXP_WFE_B_STAGE1_MUX5_SET
  4205. #define PXP_HW_PXP_WFE_B_STAGE1_MUX5_CLR
  4206. #define PXP_HW_PXP_WFE_B_STAGE1_MUX5_TOG
  4207. #define PXP_HW_PXP_WFE_B_STAGE1_MUX6
  4208. #define PXP_HW_PXP_WFE_B_STAGE1_MUX6_SET
  4209. #define PXP_HW_PXP_WFE_B_STAGE1_MUX6_CLR
  4210. #define PXP_HW_PXP_WFE_B_STAGE1_MUX6_TOG
  4211. #define PXP_HW_PXP_WFE_B_STAGE1_MUX7
  4212. #define PXP_HW_PXP_WFE_B_STAGE1_MUX7_SET
  4213. #define PXP_HW_PXP_WFE_B_STAGE1_MUX7_CLR
  4214. #define PXP_HW_PXP_WFE_B_STAGE1_MUX7_TOG
  4215. #define PXP_HW_PXP_WFE_B_STAGE1_MUX8
  4216. #define PXP_HW_PXP_WFE_B_STAGE1_MUX8_SET
  4217. #define PXP_HW_PXP_WFE_B_STAGE1_MUX8_CLR
  4218. #define PXP_HW_PXP_WFE_B_STAGE1_MUX8_TOG
  4219. #define PXP_HW_PXP_WFE_B_STAGE2_MUX0
  4220. #define PXP_HW_PXP_WFE_B_STAGE2_MUX0_SET
  4221. #define PXP_HW_PXP_WFE_B_STAGE2_MUX0_CLR
  4222. #define PXP_HW_PXP_WFE_B_STAGE2_MUX0_TOG
  4223. #define PXP_HW_PXP_WFE_B_STAGE2_MUX1
  4224. #define PXP_HW_PXP_WFE_B_STAGE2_MUX1_SET
  4225. #define PXP_HW_PXP_WFE_B_STAGE2_MUX1_CLR
  4226. #define PXP_HW_PXP_WFE_B_STAGE2_MUX1_TOG
  4227. #define PXP_HW_PXP_WFE_B_STAGE2_MUX2
  4228. #define PXP_HW_PXP_WFE_B_STAGE2_MUX2_SET
  4229. #define PXP_HW_PXP_WFE_B_STAGE2_MUX2_CLR
  4230. #define PXP_HW_PXP_WFE_B_STAGE2_MUX2_TOG
  4231. #define PXP_HW_PXP_WFE_B_STAGE2_MUX3
  4232. #define PXP_HW_PXP_WFE_B_STAGE2_MUX3_SET
  4233. #define PXP_HW_PXP_WFE_B_STAGE2_MUX3_CLR
  4234. #define PXP_HW_PXP_WFE_B_STAGE2_MUX3_TOG
  4235. #define PXP_HW_PXP_WFE_B_STAGE2_MUX4
  4236. #define PXP_HW_PXP_WFE_B_STAGE2_MUX4_SET
  4237. #define PXP_HW_PXP_WFE_B_STAGE2_MUX4_CLR
  4238. #define PXP_HW_PXP_WFE_B_STAGE2_MUX4_TOG
  4239. #define PXP_HW_PXP_WFE_B_STAGE2_MUX5
  4240. #define PXP_HW_PXP_WFE_B_STAGE2_MUX5_SET
  4241. #define PXP_HW_PXP_WFE_B_STAGE2_MUX5_CLR
  4242. #define PXP_HW_PXP_WFE_B_STAGE2_MUX5_TOG
  4243. #define PXP_HW_PXP_WFE_B_STAGE2_MUX6
  4244. #define PXP_HW_PXP_WFE_B_STAGE2_MUX6_SET
  4245. #define PXP_HW_PXP_WFE_B_STAGE2_MUX6_CLR
  4246. #define PXP_HW_PXP_WFE_B_STAGE2_MUX6_TOG
  4247. #define PXP_HW_PXP_WFE_B_STAGE2_MUX7
  4248. #define PXP_HW_PXP_WFE_B_STAGE2_MUX7_SET
  4249. #define PXP_HW_PXP_WFE_B_STAGE2_MUX7_CLR
  4250. #define PXP_HW_PXP_WFE_B_STAGE2_MUX7_TOG
  4251. #define PXP_HW_PXP_WFE_B_STAGE2_MUX8
  4252. #define PXP_HW_PXP_WFE_B_STAGE2_MUX8_SET
  4253. #define PXP_HW_PXP_WFE_B_STAGE2_MUX8_CLR
  4254. #define PXP_HW_PXP_WFE_B_STAGE2_MUX8_TOG
  4255. #define PXP_HW_PXP_WFE_B_STAGE2_MUX9
  4256. #define PXP_HW_PXP_WFE_B_STAGE2_MUX9_SET
  4257. #define PXP_HW_PXP_WFE_B_STAGE2_MUX9_CLR
  4258. #define PXP_HW_PXP_WFE_B_STAGE2_MUX9_TOG
  4259. #define PXP_HW_PXP_WFE_B_STAGE2_MUX10
  4260. #define PXP_HW_PXP_WFE_B_STAGE2_MUX10_SET
  4261. #define PXP_HW_PXP_WFE_B_STAGE2_MUX10_CLR
  4262. #define PXP_HW_PXP_WFE_B_STAGE2_MUX10_TOG
  4263. #define PXP_HW_PXP_WFE_B_STAGE2_MUX11
  4264. #define PXP_HW_PXP_WFE_B_STAGE2_MUX11_SET
  4265. #define PXP_HW_PXP_WFE_B_STAGE2_MUX11_CLR
  4266. #define PXP_HW_PXP_WFE_B_STAGE2_MUX11_TOG
  4267. #define PXP_HW_PXP_WFE_B_STAGE2_MUX12
  4268. #define PXP_HW_PXP_WFE_B_STAGE2_MUX12_SET
  4269. #define PXP_HW_PXP_WFE_B_STAGE2_MUX12_CLR
  4270. #define PXP_HW_PXP_WFE_B_STAGE2_MUX12_TOG
  4271. #define PXP_HW_PXP_WFE_B_STAGE3_MUX0
  4272. #define PXP_HW_PXP_WFE_B_STAGE3_MUX0_SET
  4273. #define PXP_HW_PXP_WFE_B_STAGE3_MUX0_CLR
  4274. #define PXP_HW_PXP_WFE_B_STAGE3_MUX0_TOG
  4275. #define PXP_HW_PXP_WFE_B_STAGE3_MUX1
  4276. #define PXP_HW_PXP_WFE_B_STAGE3_MUX1_SET
  4277. #define PXP_HW_PXP_WFE_B_STAGE3_MUX1_CLR
  4278. #define PXP_HW_PXP_WFE_B_STAGE3_MUX1_TOG
  4279. #define PXP_HW_PXP_WFE_B_STAGE3_MUX2
  4280. #define PXP_HW_PXP_WFE_B_STAGE3_MUX2_SET
  4281. #define PXP_HW_PXP_WFE_B_STAGE3_MUX2_CLR
  4282. #define PXP_HW_PXP_WFE_B_STAGE3_MUX2_TOG
  4283. #define PXP_HW_PXP_WFE_B_STAGE3_MUX3
  4284. #define PXP_HW_PXP_WFE_B_STAGE3_MUX3_SET
  4285. #define PXP_HW_PXP_WFE_B_STAGE3_MUX3_CLR
  4286. #define PXP_HW_PXP_WFE_B_STAGE3_MUX3_TOG
  4287. #define PXP_HW_PXP_WFE_B_STAGE3_MUX4
  4288. #define PXP_HW_PXP_WFE_B_STAGE3_MUX4_SET
  4289. #define PXP_HW_PXP_WFE_B_STAGE3_MUX4_CLR
  4290. #define PXP_HW_PXP_WFE_B_STAGE3_MUX4_TOG
  4291. #define PXP_HW_PXP_WFE_B_STAGE3_MUX5
  4292. #define PXP_HW_PXP_WFE_B_STAGE3_MUX5_SET
  4293. #define PXP_HW_PXP_WFE_B_STAGE3_MUX5_CLR
  4294. #define PXP_HW_PXP_WFE_B_STAGE3_MUX5_TOG
  4295. #define PXP_HW_PXP_WFE_B_STAGE3_MUX6
  4296. #define PXP_HW_PXP_WFE_B_STAGE3_MUX6_SET
  4297. #define PXP_HW_PXP_WFE_B_STAGE3_MUX6_CLR
  4298. #define PXP_HW_PXP_WFE_B_STAGE3_MUX6_TOG
  4299. #define PXP_HW_PXP_WFE_B_STAGE3_MUX7
  4300. #define PXP_HW_PXP_WFE_B_STAGE3_MUX7_SET
  4301. #define PXP_HW_PXP_WFE_B_STAGE3_MUX7_CLR
  4302. #define PXP_HW_PXP_WFE_B_STAGE3_MUX7_TOG
  4303. #define PXP_HW_PXP_WFE_B_STAGE3_MUX8
  4304. #define PXP_HW_PXP_WFE_B_STAGE3_MUX8_SET
  4305. #define PXP_HW_PXP_WFE_B_STAGE3_MUX8_CLR
  4306. #define PXP_HW_PXP_WFE_B_STAGE3_MUX8_TOG
  4307. #define PXP_HW_PXP_WFE_B_STAGE3_MUX9
  4308. #define PXP_HW_PXP_WFE_B_STAGE3_MUX9_SET
  4309. #define PXP_HW_PXP_WFE_B_STAGE3_MUX9_CLR
  4310. #define PXP_HW_PXP_WFE_B_STAGE3_MUX9_TOG
  4311. #define PXP_HW_PXP_WFE_B_STAGE3_MUX10
  4312. #define PXP_HW_PXP_WFE_B_STAGE3_MUX10_SET
  4313. #define PXP_HW_PXP_WFE_B_STAGE3_MUX10_CLR
  4314. #define PXP_HW_PXP_WFE_B_STAGE3_MUX10_TOG
  4315. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_0
  4316. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_1
  4317. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_2
  4318. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_3
  4319. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_4
  4320. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_5
  4321. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_6
  4322. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT0_7
  4323. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_0
  4324. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_1
  4325. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_2
  4326. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_3
  4327. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_4
  4328. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_5
  4329. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_6
  4330. #define PXP_HW_PXP_WFE_B_STG1_5X8_OUT1_7
  4331. #define PXP_HW_PXP_WFE_B_STAGE1_5X8_MASKS_0
  4332. #define PXP_HW_PXP_WFE_B_STG1_5X1_OUT0
  4333. #define PXP_HW_PXP_WFE_B_STG1_5X1_MASKS
  4334. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_0
  4335. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_1
  4336. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_2
  4337. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_3
  4338. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_4
  4339. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_5
  4340. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_6
  4341. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT0_7
  4342. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_0
  4343. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_1
  4344. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_2
  4345. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_3
  4346. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_4
  4347. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_5
  4348. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_6
  4349. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT1_7
  4350. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_0
  4351. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_1
  4352. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_2
  4353. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_3
  4354. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_4
  4355. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_5
  4356. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_6
  4357. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT2_7
  4358. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_0
  4359. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_1
  4360. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_2
  4361. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_3
  4362. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_4
  4363. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_5
  4364. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_6
  4365. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT3_7
  4366. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_0
  4367. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_1
  4368. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_2
  4369. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_3
  4370. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_4
  4371. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_5
  4372. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_6
  4373. #define PXP_HW_PXP_WFE_B_STG1_8X1_OUT4_7
  4374. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_0
  4375. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_1
  4376. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_2
  4377. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_3
  4378. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_4
  4379. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_5
  4380. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_6
  4381. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT0_7
  4382. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_0
  4383. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_1
  4384. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_2
  4385. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_3
  4386. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_4
  4387. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_5
  4388. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_6
  4389. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT1_7
  4390. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_0
  4391. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_1
  4392. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_2
  4393. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_3
  4394. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_4
  4395. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_5
  4396. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_6
  4397. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT2_7
  4398. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_0
  4399. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_1
  4400. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_2
  4401. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_3
  4402. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_4
  4403. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_5
  4404. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_6
  4405. #define PXP_HW_PXP_WFE_B_STG2_5X6_OUT3_7
  4406. #define PXP_HW_PXP_WFE_B_STAGE2_5X6_MASKS_0
  4407. #define PXP_HW_PXP_WFE_B_STAGE2_5X6_ADDR_0
  4408. #define PXP_HW_PXP_WFE_B_STG2_5X1_OUT0
  4409. #define PXP_HW_PXP_WFE_B_STG2_5X1_OUT1
  4410. #define PXP_HW_PXP_WFE_B_STG2_5X1_OUT2
  4411. #define PXP_HW_PXP_WFE_B_STG2_5X1_OUT3
  4412. #define PXP_HW_PXP_WFE_B_STG2_5X1_MASKS
  4413. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_0
  4414. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_1
  4415. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_2
  4416. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_3
  4417. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_4
  4418. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_5
  4419. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_6
  4420. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT0_7
  4421. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_0
  4422. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_1
  4423. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_2
  4424. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_3
  4425. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_4
  4426. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_5
  4427. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_6
  4428. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT1_7
  4429. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_0
  4430. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_1
  4431. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_2
  4432. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_3
  4433. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_4
  4434. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_5
  4435. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_6
  4436. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT2_7
  4437. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_0
  4438. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_1
  4439. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_2
  4440. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_3
  4441. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_4
  4442. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_5
  4443. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_6
  4444. #define PXP_HW_PXP_WFE_B_STG3_F8X1_OUT3_7
  4445. #define PXP_HW_PXP_WFE_B_STG3_F8X1_MASKS
  4446. #define PXP_HW_PXP_ALU_B_CTRL
  4447. #define PXP_HW_PXP_ALU_B_CTRL_SET
  4448. #define PXP_HW_PXP_ALU_B_CTRL_CLR
  4449. #define PXP_HW_PXP_ALU_B_CTRL_TOG
  4450. #define PXP_HW_PXP_ALU_B_BUF_SIZE
  4451. #define PXP_HW_PXP_ALU_B_INST_ENTRY
  4452. #define PXP_HW_PXP_ALU_B_PARAM
  4453. #define PXP_HW_PXP_ALU_B_CONFIG
  4454. #define PXP_HW_PXP_ALU_B_LUT_CONFIG
  4455. #define PXP_HW_PXP_ALU_B_LUT_CONFIG_SET
  4456. #define PXP_HW_PXP_ALU_B_LUT_CONFIG_CLR
  4457. #define PXP_HW_PXP_ALU_B_LUT_CONFIG_TOG
  4458. #define PXP_HW_PXP_ALU_B_LUT_DATA0
  4459. #define PXP_HW_PXP_ALU_B_LUT_DATA1
  4460. #define PXP_HW_PXP_ALU_B_DBG
  4461. #define PXP_HW_PXP_HIST_A_CTRL
  4462. #define PXP_HW_PXP_HIST_A_MASK
  4463. #define PXP_HW_PXP_HIST_A_BUF_SIZE
  4464. #define PXP_HW_PXP_HIST_A_TOTAL_PIXEL
  4465. #define PXP_HW_PXP_HIST_A_ACTIVE_AREA_X
  4466. #define PXP_HW_PXP_HIST_A_ACTIVE_AREA_Y
  4467. #define PXP_HW_PXP_HIST_A_RAW_STAT0
  4468. #define PXP_HW_PXP_HIST_A_RAW_STAT1
  4469. #define PXP_HW_PXP_HIST_B_CTRL
  4470. #define PXP_HW_PXP_HIST_B_MASK
  4471. #define PXP_HW_PXP_HIST_B_BUF_SIZE
  4472. #define PXP_HW_PXP_HIST_B_TOTAL_PIXEL
  4473. #define PXP_HW_PXP_HIST_B_ACTIVE_AREA_X
  4474. #define PXP_HW_PXP_HIST_B_ACTIVE_AREA_Y
  4475. #define PXP_HW_PXP_HIST_B_RAW_STAT0
  4476. #define PXP_HW_PXP_HIST_B_RAW_STAT1
  4477. #define PXP_HW_PXP_HIST2_PARAM
  4478. #define PXP_HW_PXP_HIST4_PARAM
  4479. #define PXP_HW_PXP_HIST8_PARAM0
  4480. #define PXP_HW_PXP_HIST8_PARAM1
  4481. #define PXP_HW_PXP_HIST16_PARAM0
  4482. #define PXP_HW_PXP_HIST16_PARAM1
  4483. #define PXP_HW_PXP_HIST16_PARAM2
  4484. #define PXP_HW_PXP_HIST16_PARAM3
  4485. #define PXP_HW_PXP_HIST32_PARAM0
  4486. #define PXP_HW_PXP_HIST32_PARAM1
  4487. #define PXP_HW_PXP_HIST32_PARAM2
  4488. #define PXP_HW_PXP_HIST32_PARAM3
  4489. #define PXP_HW_PXP_HIST32_PARAM4
  4490. #define PXP_HW_PXP_HIST32_PARAM5
  4491. #define PXP_HW_PXP_HIST32_PARAM6
  4492. #define PXP_HW_PXP_HIST32_PARAM7
  4493. #define PXP_HW_PXP_HANDSHAKE_READY_MUX0
  4494. #define PXP_HW_PXP_HANDSHAKE_DONE_MUX0
  4495. // page 3147
  4496. #define IMXRT_TMR1 (*(IMXRT_REGISTER16_t *)0x401DC000)
  4497. #define TMR1_COMP10 (IMXRT_TMR1.offset000)
  4498. #define TMR1_COMP20 (IMXRT_TMR1.offset002)
  4499. #define TMR1_CAPT0 (IMXRT_TMR1.offset004)
  4500. #define TMR1_LOAD0 (IMXRT_TMR1.offset006)
  4501. #define TMR1_HOLD0 (IMXRT_TMR1.offset008)
  4502. #define TMR1_CNTR0 (IMXRT_TMR1.offset00A)
  4503. #define TMR1_CTRL0 (IMXRT_TMR1.offset00C)
  4504. #define TMR1_SCTRL0 (IMXRT_TMR1.offset00E)
  4505. #define TMR1_CMPLD10 (IMXRT_TMR1.offset010)
  4506. #define TMR1_CMPLD20 (IMXRT_TMR1.offset012)
  4507. #define TMR1_CSCTRL0 (IMXRT_TMR1.offset014)
  4508. #define TMR1_FILT0 (IMXRT_TMR1.offset016)
  4509. #define TMR1_DMA0 (IMXRT_TMR1.offset018)
  4510. #define TMR1_ENBL (IMXRT_TMR1.offset01E)
  4511. #define TMR1_COMP11 (IMXRT_TMR1.offset020)
  4512. #define TMR1_COMP21 (IMXRT_TMR1.offset022)
  4513. #define TMR1_CAPT1 (IMXRT_TMR1.offset024)
  4514. #define TMR1_LOAD1 (IMXRT_TMR1.offset026)
  4515. #define TMR1_HOLD1 (IMXRT_TMR1.offset028)
  4516. #define TMR1_CNTR1 (IMXRT_TMR1.offset02A)
  4517. #define TMR1_CTRL1 (IMXRT_TMR1.offset02C)
  4518. #define TMR1_SCTRL1 (IMXRT_TMR1.offset02E)
  4519. #define TMR1_CMPLD11 (IMXRT_TMR1.offset030)
  4520. #define TMR1_CMPLD21 (IMXRT_TMR1.offset032)
  4521. #define TMR1_CSCTRL1 (IMXRT_TMR1.offset034)
  4522. #define TMR1_FILT1 (IMXRT_TMR1.offset036)
  4523. #define TMR1_DMA1 (IMXRT_TMR1.offset038)
  4524. #define TMR1_COMP12 (IMXRT_TMR1.offset040)
  4525. #define TMR1_COMP22 (IMXRT_TMR1.offset042)
  4526. #define TMR1_CAPT2 (IMXRT_TMR1.offset044)
  4527. #define TMR1_LOAD2 (IMXRT_TMR1.offset046)
  4528. #define TMR1_HOLD2 (IMXRT_TMR1.offset048)
  4529. #define TMR1_CNTR2 (IMXRT_TMR1.offset04A)
  4530. #define TMR1_CTRL2 (IMXRT_TMR1.offset04C)
  4531. #define TMR1_SCTRL2 (IMXRT_TMR1.offset04E)
  4532. #define TMR1_CMPLD12 (IMXRT_TMR1.offset050)
  4533. #define TMR1_CMPLD22 (IMXRT_TMR1.offset052)
  4534. #define TMR1_CSCTRL2 (IMXRT_TMR1.offset054)
  4535. #define TMR1_FILT2 (IMXRT_TMR1.offset056)
  4536. #define TMR1_DMA2 (IMXRT_TMR1.offset058)
  4537. #define TMR1_COMP13 (IMXRT_TMR1.offset060)
  4538. #define TMR1_COMP23 (IMXRT_TMR1.offset062)
  4539. #define TMR1_CAPT3 (IMXRT_TMR1.offset064)
  4540. #define TMR1_LOAD3 (IMXRT_TMR1.offset066)
  4541. #define TMR1_HOLD3 (IMXRT_TMR1.offset068)
  4542. #define TMR1_CNTR3 (IMXRT_TMR1.offset06A)
  4543. #define TMR1_CTRL3 (IMXRT_TMR1.offset06C)
  4544. #define TMR1_SCTRL3 (IMXRT_TMR1.offset06E)
  4545. #define TMR1_CMPLD13 (IMXRT_TMR1.offset070)
  4546. #define TMR1_CMPLD23 (IMXRT_TMR1.offset072)
  4547. #define TMR1_CSCTRL3 (IMXRT_TMR1.offset074)
  4548. #define TMR1_FILT3 (IMXRT_TMR1.offset076)
  4549. #define TMR1_DMA3 (IMXRT_TMR1.offset078)
  4550. #define IMXRT_TMR2 (*(IMXRT_REGISTER16_t *)0x401E0000)
  4551. #define TMR2_COMP10 (IMXRT_TMR2.offset000)
  4552. #define TMR2_COMP20 (IMXRT_TMR2.offset002)
  4553. #define TMR2_CAPT0 (IMXRT_TMR2.offset004)
  4554. #define TMR2_LOAD0 (IMXRT_TMR2.offset006)
  4555. #define TMR2_HOLD0 (IMXRT_TMR2.offset008)
  4556. #define TMR2_CNTR0 (IMXRT_TMR2.offset00A)
  4557. #define TMR2_CTRL0 (IMXRT_TMR2.offset00C)
  4558. #define TMR2_SCTRL0 (IMXRT_TMR2.offset00E)
  4559. #define TMR2_CMPLD10 (IMXRT_TMR2.offset010)
  4560. #define TMR2_CMPLD20 (IMXRT_TMR2.offset012)
  4561. #define TMR2_CSCTRL0 (IMXRT_TMR2.offset014)
  4562. #define TMR2_FILT0 (IMXRT_TMR2.offset016)
  4563. #define TMR2_DMA0 (IMXRT_TMR2.offset018)
  4564. #define TMR2_ENBL (IMXRT_TMR2.offset01E)
  4565. #define TMR2_COMP11 (IMXRT_TMR2.offset020)
  4566. #define TMR2_COMP21 (IMXRT_TMR2.offset022)
  4567. #define TMR2_CAPT1 (IMXRT_TMR2.offset024)
  4568. #define TMR2_LOAD1 (IMXRT_TMR2.offset026)
  4569. #define TMR2_HOLD1 (IMXRT_TMR2.offset028)
  4570. #define TMR2_CNTR1 (IMXRT_TMR2.offset02A)
  4571. #define TMR2_CTRL1 (IMXRT_TMR2.offset02C)
  4572. #define TMR2_SCTRL1 (IMXRT_TMR2.offset02E)
  4573. #define TMR2_CMPLD11 (IMXRT_TMR2.offset030)
  4574. #define TMR2_CMPLD21 (IMXRT_TMR2.offset032)
  4575. #define TMR2_CSCTRL1 (IMXRT_TMR2.offset034)
  4576. #define TMR2_FILT1 (IMXRT_TMR2.offset036)
  4577. #define TMR2_DMA1 (IMXRT_TMR2.offset038)
  4578. #define TMR2_COMP12 (IMXRT_TMR2.offset040)
  4579. #define TMR2_COMP22 (IMXRT_TMR2.offset042)
  4580. #define TMR2_CAPT2 (IMXRT_TMR2.offset044)
  4581. #define TMR2_LOAD2 (IMXRT_TMR2.offset046)
  4582. #define TMR2_HOLD2 (IMXRT_TMR2.offset048)
  4583. #define TMR2_CNTR2 (IMXRT_TMR2.offset04A)
  4584. #define TMR2_CTRL2 (IMXRT_TMR2.offset04C)
  4585. #define TMR2_SCTRL2 (IMXRT_TMR2.offset04E)
  4586. #define TMR2_CMPLD12 (IMXRT_TMR2.offset050)
  4587. #define TMR2_CMPLD22 (IMXRT_TMR2.offset052)
  4588. #define TMR2_CSCTRL2 (IMXRT_TMR2.offset054)
  4589. #define TMR2_FILT2 (IMXRT_TMR2.offset056)
  4590. #define TMR2_DMA2 (IMXRT_TMR2.offset058)
  4591. #define TMR2_COMP13 (IMXRT_TMR2.offset060)
  4592. #define TMR2_COMP23 (IMXRT_TMR2.offset062)
  4593. #define TMR2_CAPT3 (IMXRT_TMR2.offset064)
  4594. #define TMR2_LOAD3 (IMXRT_TMR2.offset066)
  4595. #define TMR2_HOLD3 (IMXRT_TMR2.offset068)
  4596. #define TMR2_CNTR3 (IMXRT_TMR2.offset06A)
  4597. #define TMR2_CTRL3 (IMXRT_TMR2.offset06C)
  4598. #define TMR2_SCTRL3 (IMXRT_TMR2.offset06E)
  4599. #define TMR2_CMPLD13 (IMXRT_TMR2.offset070)
  4600. #define TMR2_CMPLD23 (IMXRT_TMR2.offset072)
  4601. #define TMR2_CSCTRL3 (IMXRT_TMR2.offset074)
  4602. #define TMR2_FILT3 (IMXRT_TMR2.offset076)
  4603. #define TMR2_DMA3 (IMXRT_TMR2.offset078)
  4604. #define IMXRT_TMR3 (*(IMXRT_REGISTER16_t *)0x401E4000)
  4605. #define TMR3_COMP10 (IMXRT_TMR3.offset000)
  4606. #define TMR3_COMP20 (IMXRT_TMR3.offset002)
  4607. #define TMR3_CAPT0 (IMXRT_TMR3.offset004)
  4608. #define TMR3_LOAD0 (IMXRT_TMR3.offset006)
  4609. #define TMR3_HOLD0 (IMXRT_TMR3.offset008)
  4610. #define TMR3_CNTR0 (IMXRT_TMR3.offset00A)
  4611. #define TMR3_CTRL0 (IMXRT_TMR3.offset00C)
  4612. #define TMR3_SCTRL0 (IMXRT_TMR3.offset00E)
  4613. #define TMR3_CMPLD10 (IMXRT_TMR3.offset010)
  4614. #define TMR3_CMPLD20 (IMXRT_TMR3.offset012)
  4615. #define TMR3_CSCTRL0 (IMXRT_TMR3.offset014)
  4616. #define TMR3_FILT0 (IMXRT_TMR3.offset016)
  4617. #define TMR3_DMA0 (IMXRT_TMR3.offset018)
  4618. #define TMR3_ENBL (IMXRT_TMR3.offset01E)
  4619. #define TMR3_COMP11 (IMXRT_TMR3.offset020)
  4620. #define TMR3_COMP21 (IMXRT_TMR3.offset022)
  4621. #define TMR3_CAPT1 (IMXRT_TMR3.offset024)
  4622. #define TMR3_LOAD1 (IMXRT_TMR3.offset026)
  4623. #define TMR3_HOLD1 (IMXRT_TMR3.offset028)
  4624. #define TMR3_CNTR1 (IMXRT_TMR3.offset02A)
  4625. #define TMR3_CTRL1 (IMXRT_TMR3.offset02C)
  4626. #define TMR3_SCTRL1 (IMXRT_TMR3.offset02E)
  4627. #define TMR3_CMPLD11 (IMXRT_TMR3.offset030)
  4628. #define TMR3_CMPLD21 (IMXRT_TMR3.offset032)
  4629. #define TMR3_CSCTRL1 (IMXRT_TMR3.offset034)
  4630. #define TMR3_FILT1 (IMXRT_TMR3.offset036)
  4631. #define TMR3_DMA1 (IMXRT_TMR3.offset038)
  4632. #define TMR3_COMP12 (IMXRT_TMR3.offset040)
  4633. #define TMR3_COMP22 (IMXRT_TMR3.offset042)
  4634. #define TMR3_CAPT2 (IMXRT_TMR3.offset044)
  4635. #define TMR3_LOAD2 (IMXRT_TMR3.offset046)
  4636. #define TMR3_HOLD2 (IMXRT_TMR3.offset048)
  4637. #define TMR3_CNTR2 (IMXRT_TMR3.offset04A)
  4638. #define TMR3_CTRL2 (IMXRT_TMR3.offset04C)
  4639. #define TMR3_SCTRL2 (IMXRT_TMR3.offset04E)
  4640. #define TMR3_CMPLD12 (IMXRT_TMR3.offset050)
  4641. #define TMR3_CMPLD22 (IMXRT_TMR3.offset052)
  4642. #define TMR3_CSCTRL2 (IMXRT_TMR3.offset054)
  4643. #define TMR3_FILT2 (IMXRT_TMR3.offset056)
  4644. #define TMR3_DMA2 (IMXRT_TMR3.offset058)
  4645. #define TMR3_COMP13 (IMXRT_TMR3.offset060)
  4646. #define TMR3_COMP23 (IMXRT_TMR3.offset062)
  4647. #define TMR3_CAPT3 (IMXRT_TMR3.offset064)
  4648. #define TMR3_LOAD3 (IMXRT_TMR3.offset066)
  4649. #define TMR3_HOLD3 (IMXRT_TMR3.offset068)
  4650. #define TMR3_CNTR3 (IMXRT_TMR3.offset06A)
  4651. #define TMR3_CTRL3 (IMXRT_TMR3.offset06C)
  4652. #define TMR3_SCTRL3 (IMXRT_TMR3.offset06E)
  4653. #define TMR3_CMPLD13 (IMXRT_TMR3.offset070)
  4654. #define TMR3_CMPLD23 (IMXRT_TMR3.offset072)
  4655. #define TMR3_CSCTRL3 (IMXRT_TMR3.offset074)
  4656. #define TMR3_FILT3 (IMXRT_TMR3.offset076)
  4657. #define TMR3_DMA3 (IMXRT_TMR3.offset078)
  4658. #define IMXRT_TMR4 (*(IMXRT_REGISTER16_t *)0x401E8000)
  4659. #define TMR4_COMP10 (IMXRT_TMR4.offset000)
  4660. #define TMR4_COMP20 (IMXRT_TMR4.offset002)
  4661. #define TMR4_CAPT0 (IMXRT_TMR4.offset004)
  4662. #define TMR4_LOAD0 (IMXRT_TMR4.offset006)
  4663. #define TMR4_HOLD0 (IMXRT_TMR4.offset008)
  4664. #define TMR4_CNTR0 (IMXRT_TMR4.offset00A)
  4665. #define TMR4_CTRL0 (IMXRT_TMR4.offset00C)
  4666. #define TMR4_SCTRL0 (IMXRT_TMR4.offset00E)
  4667. #define TMR4_CMPLD10 (IMXRT_TMR4.offset010)
  4668. #define TMR4_CMPLD20 (IMXRT_TMR4.offset012)
  4669. #define TMR4_CSCTRL0 (IMXRT_TMR4.offset014)
  4670. #define TMR4_FILT0 (IMXRT_TMR4.offset016)
  4671. #define TMR4_DMA0 (IMXRT_TMR4.offset018)
  4672. #define TMR4_ENBL (IMXRT_TMR4.offset01E)
  4673. #define TMR4_COMP11 (IMXRT_TMR4.offset020)
  4674. #define TMR4_COMP21 (IMXRT_TMR4.offset022)
  4675. #define TMR4_CAPT1 (IMXRT_TMR4.offset024)
  4676. #define TMR4_LOAD1 (IMXRT_TMR4.offset026)
  4677. #define TMR4_HOLD1 (IMXRT_TMR4.offset028)
  4678. #define TMR4_CNTR1 (IMXRT_TMR4.offset02A)
  4679. #define TMR4_CTRL1 (IMXRT_TMR4.offset02C)
  4680. #define TMR4_SCTRL1 (IMXRT_TMR4.offset02E)
  4681. #define TMR4_CMPLD11 (IMXRT_TMR4.offset030)
  4682. #define TMR4_CMPLD21 (IMXRT_TMR4.offset032)
  4683. #define TMR4_CSCTRL1 (IMXRT_TMR4.offset034)
  4684. #define TMR4_FILT1 (IMXRT_TMR4.offset036)
  4685. #define TMR4_DMA1 (IMXRT_TMR4.offset038)
  4686. #define TMR4_COMP12 (IMXRT_TMR4.offset040)
  4687. #define TMR4_COMP22 (IMXRT_TMR4.offset042)
  4688. #define TMR4_CAPT2 (IMXRT_TMR4.offset044)
  4689. #define TMR4_LOAD2 (IMXRT_TMR4.offset046)
  4690. #define TMR4_HOLD2 (IMXRT_TMR4.offset048)
  4691. #define TMR4_CNTR2 (IMXRT_TMR4.offset04A)
  4692. #define TMR4_CTRL2 (IMXRT_TMR4.offset04C)
  4693. #define TMR4_SCTRL2 (IMXRT_TMR4.offset04E)
  4694. #define TMR4_CMPLD12 (IMXRT_TMR4.offset050)
  4695. #define TMR4_CMPLD22 (IMXRT_TMR4.offset052)
  4696. #define TMR4_CSCTRL2 (IMXRT_TMR4.offset054)
  4697. #define TMR4_FILT2 (IMXRT_TMR4.offset056)
  4698. #define TMR4_DMA2 (IMXRT_TMR4.offset058)
  4699. #define TMR4_COMP13 (IMXRT_TMR4.offset060)
  4700. #define TMR4_COMP23 (IMXRT_TMR4.offset062)
  4701. #define TMR4_CAPT3 (IMXRT_TMR4.offset064)
  4702. #define TMR4_LOAD3 (IMXRT_TMR4.offset066)
  4703. #define TMR4_HOLD3 (IMXRT_TMR4.offset068)
  4704. #define TMR4_CNTR3 (IMXRT_TMR4.offset06A)
  4705. #define TMR4_CTRL3 (IMXRT_TMR4.offset06C)
  4706. #define TMR4_SCTRL3 (IMXRT_TMR4.offset06E)
  4707. #define TMR4_CMPLD13 (IMXRT_TMR4.offset070)
  4708. #define TMR4_CMPLD23 (IMXRT_TMR4.offset072)
  4709. #define TMR4_CSCTRL3 (IMXRT_TMR4.offset074)
  4710. #define TMR4_FILT3 (IMXRT_TMR4.offset076)
  4711. #define TMR4_DMA3 (IMXRT_TMR4.offset078)
  4712. #define IMXRT_ROMC (*(IMXRT_REGISTER32_t *)0x40180000)
  4713. #define ROMC_ROMPATCH7D (IMXRT_ROMC.offset0D4)
  4714. #define ROMC_ROMPATCH6D (IMXRT_ROMC.offset0D8)
  4715. #define ROMC_ROMPATCH5D (IMXRT_ROMC.offset0DC)
  4716. #define ROMC_ROMPATCH4D (IMXRT_ROMC.offset0E0)
  4717. #define ROMC_ROMPATCH3D (IMXRT_ROMC.offset0E4)
  4718. #define ROMC_ROMPATCH2D (IMXRT_ROMC.offset0E8)
  4719. #define ROMC_ROMPATCH1D (IMXRT_ROMC.offset0EC)
  4720. #define ROMC_ROMPATCH0D (IMXRT_ROMC.offset0F0)
  4721. #define ROMC_ROMPATCHCNTL (IMXRT_ROMC.offset0F4)
  4722. #define ROMC_ROMPATCHENH (IMXRT_ROMC.offset0F8)
  4723. #define ROMC_ROMPATCHENL (IMXRT_ROMC.offset0FC)
  4724. #define ROMC_ROMPATCH0A (IMXRT_ROMC.offset100)
  4725. #define ROMC_ROMPATCH1A (IMXRT_ROMC.offset104)
  4726. #define ROMC_ROMPATCH2A (IMXRT_ROMC.offset108)
  4727. #define ROMC_ROMPATCH3A (IMXRT_ROMC.offset10C)
  4728. #define ROMC_ROMPATCH4A (IMXRT_ROMC.offset110)
  4729. #define ROMC_ROMPATCH5A (IMXRT_ROMC.offset114)
  4730. #define ROMC_ROMPATCH6A (IMXRT_ROMC.offset118)
  4731. #define ROMC_ROMPATCH7A (IMXRT_ROMC.offset11C)
  4732. #define ROMC_ROMPATCH8A (IMXRT_ROMC.offset120)
  4733. #define ROMC_ROMPATCH9A (IMXRT_ROMC.offset124)
  4734. #define ROMC_ROMPATCH10A (IMXRT_ROMC.offset128)
  4735. #define ROMC_ROMPATCH11A (IMXRT_ROMC.offset12C)
  4736. #define ROMC_ROMPATCH12A (IMXRT_ROMC.offset130)
  4737. #define ROMC_ROMPATCH13A (IMXRT_ROMC.offset134)
  4738. #define ROMC_ROMPATCH14A (IMXRT_ROMC.offset138)
  4739. #define ROMC_ROMPATCH15A (IMXRT_ROMC.offset13C)
  4740. #define ROMC_ROMPATCHSR (IMXRT_ROMC.offset208)
  4741. // page 3216
  4742. #define IMXRT_I2S1 (*(IMXRT_REGISTER32_t *)0x40384000)
  4743. #define I2S1_VERID (IMXRT_I2S1.offset000)
  4744. #define I2S1_PARAM (IMXRT_I2S1.offset004)
  4745. #define I2S1_TCSR (IMXRT_I2S1.offset008)
  4746. #define I2S1_TCR1 (IMXRT_I2S1.offset00C)
  4747. #define I2S1_TCR2 (IMXRT_I2S1.offset010)
  4748. #define I2S1_TCR3 (IMXRT_I2S1.offset014)
  4749. #define I2S1_TCR4 (IMXRT_I2S1.offset018)
  4750. #define I2S1_TCR5 (IMXRT_I2S1.offset01C)
  4751. #define I2S1_TDR0 (IMXRT_I2S1.offset020)
  4752. #define I2S1_TDR1 (IMXRT_I2S1.offset024)
  4753. #define I2S1_TDR2 (IMXRT_I2S1.offset028)
  4754. #define I2S1_TDR3 (IMXRT_I2S1.offset02C)
  4755. #define I2S1_TFR0 (IMXRT_I2S1.offset040)
  4756. #define I2S1_TFR1 (IMXRT_I2S1.offset044)
  4757. #define I2S1_TFR2 (IMXRT_I2S1.offset048)
  4758. #define I2S1_TFR3 (IMXRT_I2S1.offset04C)
  4759. #define I2S1_TMR (IMXRT_I2S1.offset060)
  4760. #define I2S1_RCSR (IMXRT_I2S1.offset088)
  4761. #define I2S1_RCR1 (IMXRT_I2S1.offset08C)
  4762. #define I2S1_RCR2 (IMXRT_I2S1.offset090)
  4763. #define I2S1_RCR3 (IMXRT_I2S1.offset094)
  4764. #define I2S1_RCR4 (IMXRT_I2S1.offset098)
  4765. #define I2S1_RCR5 (IMXRT_I2S1.offset09C)
  4766. #define I2S1_RDR0 (IMXRT_I2S1.offset0A0)
  4767. #define I2S1_RDR1 (IMXRT_I2S1.offset0A4)
  4768. #define I2S1_RDR2 (IMXRT_I2S1.offset0A8)
  4769. #define I2S1_RDR3 (IMXRT_I2S1.offset0AC)
  4770. #define I2S1_RFR0 (IMXRT_I2S1.offset0C0)
  4771. #define I2S1_RFR1 (IMXRT_I2S1.offset0C4)
  4772. #define I2S1_RFR2 (IMXRT_I2S1.offset0C8)
  4773. #define I2S1_RFR3 (IMXRT_I2S1.offset0CC)
  4774. #define I2S1_RMR (IMXRT_I2S1.offset0E0)
  4775. #define IMXRT_I2S2 (*(IMXRT_REGISTER32_t *)0x40388000)
  4776. #define I2S2_VERID (IMXRT_I2S2.offset000)
  4777. #define I2S2_PARAM (IMXRT_I2S2.offset004)
  4778. #define I2S2_TCSR (IMXRT_I2S2.offset008)
  4779. #define I2S2_TCR1 (IMXRT_I2S2.offset00C)
  4780. #define I2S2_TCR2 (IMXRT_I2S2.offset010)
  4781. #define I2S2_TCR3 (IMXRT_I2S2.offset014)
  4782. #define I2S2_TCR4 (IMXRT_I2S2.offset018)
  4783. #define I2S2_TCR5 (IMXRT_I2S2.offset01C)
  4784. #define I2S2_TDR0 (IMXRT_I2S2.offset020)
  4785. #define I2S2_TDR1 (IMXRT_I2S2.offset024)
  4786. #define I2S2_TDR2 (IMXRT_I2S2.offset028)
  4787. #define I2S2_TDR3 (IMXRT_I2S2.offset02C)
  4788. #define I2S2_TFR0 (IMXRT_I2S2.offset040)
  4789. #define I2S2_TFR1 (IMXRT_I2S2.offset044)
  4790. #define I2S2_TFR2 (IMXRT_I2S2.offset048)
  4791. #define I2S2_TFR3 (IMXRT_I2S2.offset04C)
  4792. #define I2S2_TMR (IMXRT_I2S2.offset060)
  4793. #define I2S2_RCSR (IMXRT_I2S2.offset088)
  4794. #define I2S2_RCR1 (IMXRT_I2S2.offset08C)
  4795. #define I2S2_RCR2 (IMXRT_I2S2.offset090)
  4796. #define I2S2_RCR3 (IMXRT_I2S2.offset094)
  4797. #define I2S2_RCR4 (IMXRT_I2S2.offset098)
  4798. #define I2S2_RCR5 (IMXRT_I2S2.offset09C)
  4799. #define I2S2_RDR0 (IMXRT_I2S2.offset0A0)
  4800. #define I2S2_RDR1 (IMXRT_I2S2.offset0A4)
  4801. #define I2S2_RDR2 (IMXRT_I2S2.offset0A8)
  4802. #define I2S2_RDR3 (IMXRT_I2S2.offset0AC)
  4803. #define I2S2_RFR0 (IMXRT_I2S2.offset0C0)
  4804. #define I2S2_RFR1 (IMXRT_I2S2.offset0C4)
  4805. #define I2S2_RFR2 (IMXRT_I2S2.offset0C8)
  4806. #define I2S2_RFR3 (IMXRT_I2S2.offset0CC)
  4807. #define I2S2_RMR (IMXRT_I2S2.offset0E0)
  4808. #define IMXRT_I2S3 (*(IMXRT_REGISTER32_t *)0x4038C000)
  4809. #define I2S3_VERID (IMXRT_I2S3.offset000)
  4810. #define I2S3_PARAM (IMXRT_I2S3.offset004)
  4811. #define I2S3_TCSR (IMXRT_I2S3.offset008)
  4812. #define I2S3_TCR1 (IMXRT_I2S3.offset00C)
  4813. #define I2S3_TCR2 (IMXRT_I2S3.offset010)
  4814. #define I2S3_TCR3 (IMXRT_I2S3.offset014)
  4815. #define I2S3_TCR4 (IMXRT_I2S3.offset018)
  4816. #define I2S3_TCR5 (IMXRT_I2S3.offset01C)
  4817. #define I2S3_TDR0 (IMXRT_I2S3.offset020)
  4818. #define I2S3_TDR1 (IMXRT_I2S3.offset024)
  4819. #define I2S3_TDR2 (IMXRT_I2S3.offset028)
  4820. #define I2S3_TDR3 (IMXRT_I2S3.offset02C)
  4821. #define I2S3_TFR0 (IMXRT_I2S3.offset040)
  4822. #define I2S3_TFR1 (IMXRT_I2S3.offset044)
  4823. #define I2S3_TFR2 (IMXRT_I2S3.offset048)
  4824. #define I2S3_TFR3 (IMXRT_I2S3.offset04C)
  4825. #define I2S3_TMR (IMXRT_I2S3.offset060)
  4826. #define I2S3_RCSR (IMXRT_I2S3.offset088)
  4827. #define I2S3_RCR1 (IMXRT_I2S3.offset08C)
  4828. #define I2S3_RCR2 (IMXRT_I2S3.offset090)
  4829. #define I2S3_RCR3 (IMXRT_I2S3.offset094)
  4830. #define I2S3_RCR4 (IMXRT_I2S3.offset098)
  4831. #define I2S3_RCR5 (IMXRT_I2S3.offset09C)
  4832. #define I2S3_RDR0 (IMXRT_I2S3.offset0A0)
  4833. #define I2S3_RDR1 (IMXRT_I2S3.offset0A4)
  4834. #define I2S3_RDR2 (IMXRT_I2S3.offset0A8)
  4835. #define I2S3_RDR3 (IMXRT_I2S3.offset0AC)
  4836. #define I2S3_RFR0 (IMXRT_I2S3.offset0C0)
  4837. #define I2S3_RFR1 (IMXRT_I2S3.offset0C4)
  4838. #define I2S3_RFR2 (IMXRT_I2S3.offset0C8)
  4839. #define I2S3_RFR3 (IMXRT_I2S3.offset0CC)
  4840. #define I2S3_RMR (IMXRT_I2S3.offset0E0)
  4841. // page 3290
  4842. #define IMXRT_SEMC (*(IMXRT_REGISTER32_t *)0x402F0000)
  4843. #define SEMC_MCR (IMXRT_SEMC.offset000)
  4844. #define SEMC_IOCR (IMXRT_SEMC.offset004)
  4845. #define SEMC_BMCR0 (IMXRT_SEMC.offset008)
  4846. #define SEMC_BMCR1 (IMXRT_SEMC.offset00C)
  4847. #define SEMC_BR0 (IMXRT_SEMC.offset010)
  4848. #define SEMC_BR1 (IMXRT_SEMC.offset014)
  4849. #define SEMC_BR2 (IMXRT_SEMC.offset018)
  4850. #define SEMC_BR3 (IMXRT_SEMC.offset01C)
  4851. #define SEMC_BR4 (IMXRT_SEMC.offset020)
  4852. #define SEMC_BR5 (IMXRT_SEMC.offset024)
  4853. #define SEMC_BR6 (IMXRT_SEMC.offset028)
  4854. #define SEMC_BR7 (IMXRT_SEMC.offset02C)
  4855. #define SEMC_BR8 (IMXRT_SEMC.offset030)
  4856. #define SEMC_INTEN (IMXRT_SEMC.offset038)
  4857. #define SEMC_INTR (IMXRT_SEMC.offset03C)
  4858. #define SEMC_SDRAMCR0 (IMXRT_SEMC.offset040)
  4859. #define SEMC_SDRAMCR1 (IMXRT_SEMC.offset044)
  4860. #define SEMC_SDRAMCR2 (IMXRT_SEMC.offset048)
  4861. #define SEMC_SDRAMCR3 (IMXRT_SEMC.offset04C)
  4862. #define SEMC_NANDCR0 (IMXRT_SEMC.offset050)
  4863. #define SEMC_NANDCR1 (IMXRT_SEMC.offset054)
  4864. #define SEMC_NANDCR2 (IMXRT_SEMC.offset058)
  4865. #define SEMC_NANDCR3 (IMXRT_SEMC.offset05C)
  4866. #define SEMC_ORCR0 (IMXRT_SEMC.offset060)
  4867. #define SEMC_ORCR1 (IMXRT_SEMC.offset064)
  4868. #define SEMC_ORCR2 (IMXRT_SEMC.offset068)
  4869. #define SEMC_ORCR3 (IMXRT_SEMC.offset06C)
  4870. #define SEMC_SRAMCR0 (IMXRT_SEMC.offset070)
  4871. #define SEMC_SRAMCR1 (IMXRT_SEMC.offset074)
  4872. #define SEMC_SRAMCR2 (IMXRT_SEMC.offset078)
  4873. #define SEMC_SRAMCR3 (IMXRT_SEMC.offset07C)
  4874. #define SEMC_DBICR0 (IMXRT_SEMC.offset080)
  4875. #define SEMC_DBICR1 (IMXRT_SEMC.offset084)
  4876. #define SEMC_IPCR0 (IMXRT_SEMC.offset090)
  4877. #define SEMC_IPCR1 (IMXRT_SEMC.offset094)
  4878. #define SEMC_IPCR2 (IMXRT_SEMC.offset098)
  4879. #define SEMC_IPCMD (IMXRT_SEMC.offset09C)
  4880. #define SEMC_IPTXDAT (IMXRT_SEMC.offset0A0)
  4881. #define SEMC_IPRXDAT (IMXRT_SEMC.offset0B0)
  4882. #define SEMC_STS0 (IMXRT_SEMC.offset0C0)
  4883. #define SEMC_STS1 (IMXRT_SEMC.offset0C4)
  4884. #define SEMC_STS2 (IMXRT_SEMC.offset0C8)
  4885. #define SEMC_STS3 (IMXRT_SEMC.offset0CC)
  4886. #define SEMC_STS4 (IMXRT_SEMC.offset0D0)
  4887. #define SEMC_STS5 (IMXRT_SEMC.offset0D4)
  4888. #define SEMC_STS6 (IMXRT_SEMC.offset0D8)
  4889. #define SEMC_STS7 (IMXRT_SEMC.offset0DC)
  4890. #define SEMC_STS8 (IMXRT_SEMC.offset0E0)
  4891. #define SEMC_STS9 (IMXRT_SEMC.offset0E4)
  4892. #define SEMC_STS10 (IMXRT_SEMC.offset0E8)
  4893. #define SEMC_STS11 (IMXRT_SEMC.offset0EC)
  4894. #define SEMC_STS12 (IMXRT_SEMC.offset0F0)
  4895. #define SEMC_STS13 (IMXRT_SEMC.offset0F4)
  4896. #define SEMC_STS14 (IMXRT_SEMC.offset0F8)
  4897. #define SEMC_STS15 (IMXRT_SEMC.offset0FC)
  4898. // page 3398
  4899. #define IMXRT_SNVS (*(IMXRT_REGISTER32_t *)0x400D4000)
  4900. #define SNVS_HPLR (IMXRT_SNVS.offset000)
  4901. #define SNVS_HPCOMR (IMXRT_SNVS.offset004)
  4902. #define SNVS_HPCR (IMXRT_SNVS.offset008)
  4903. #define SNVS_HPSR (IMXRT_SNVS.offset014)
  4904. #define SNVS_HPRTCMR (IMXRT_SNVS.offset024)
  4905. #define SNVS_HPRTCLR (IMXRT_SNVS.offset028)
  4906. #define SNVS_HPTAMR (IMXRT_SNVS.offset02C)
  4907. #define SNVS_HPTALR (IMXRT_SNVS.offset030)
  4908. #define SNVS_LPLR (IMXRT_SNVS.offset034)
  4909. #define SNVS_LPCR (IMXRT_SNVS.offset038)
  4910. #define SNVS_LPSR (IMXRT_SNVS.offset04C)
  4911. #define SNVS_LPSMCMR (IMXRT_SNVS.offset05C)
  4912. #define SNVS_LPSMCLR (IMXRT_SNVS.offset060)
  4913. #define SNVS_LPGPR (IMXRT_SNVS.offset068)
  4914. #define IMXRT_SNVS_b (*(IMXRT_REGISTER32_t *)0x400D4800)
  4915. #define SNVS_HPVIDR1 (IMXRT_SNVS_b.offset3F8)
  4916. #define SNVS_HPVIDR2 (IMXRT_SNVS_b.offset3FC)
  4917. // page 3500
  4918. #define IMXRT_SPDIF (*(IMXRT_REGISTER32_t *)0x400D4000)
  4919. #define SPDIF_SCR (IMXRT_SPDIF.offset000)
  4920. #define SPDIF_SRCD (IMXRT_SPDIF.offset004)
  4921. #define SPDIF_SRPC (IMXRT_SPDIF.offset008)
  4922. #define SPDIF_SIE (IMXRT_SPDIF.offset00C)
  4923. #define SPDIF_SIS (IMXRT_SPDIF.offset010)
  4924. #define SPDIF_SIC (IMXRT_SPDIF.offset010)
  4925. #define SPDIF_SRL (IMXRT_SPDIF.offset014)
  4926. #define SPDIF_SRR (IMXRT_SPDIF.offset018)
  4927. #define SPDIF_SRCSH (IMXRT_SPDIF.offset01C)
  4928. #define SPDIF_SRCSL (IMXRT_SPDIF.offset020)
  4929. #define SPDIF_SRU (IMXRT_SPDIF.offset024)
  4930. #define SPDIF_SRQ (IMXRT_SPDIF.offset028)
  4931. #define SPDIF_STL (IMXRT_SPDIF.offset02C)
  4932. #define SPDIF_STR (IMXRT_SPDIF.offset030)
  4933. #define SPDIF_STCSCH (IMXRT_SPDIF.offset034)
  4934. #define SPDIF_STCSCL (IMXRT_SPDIF.offset038)
  4935. #define SPDIF_SRFM (IMXRT_SPDIF.offset044)
  4936. #define SPDIF_STC (IMXRT_SPDIF.offset050)
  4937. // page 3521
  4938. #define IMXRT_SRC (*(IMXRT_REGISTER32_t *)0x400F8000)
  4939. #define SRC_SCR (IMXRT_SRC.offset000)
  4940. #define SRC_SBMR1 (IMXRT_SRC.offset004)
  4941. #define SRC_SRSR (IMXRT_SRC.offset008)
  4942. #define SRC_SISR (IMXRT_SRC.offset014)
  4943. #define SRC_SBMR2 (IMXRT_SRC.offset01C)
  4944. #define SRC_GPR1 (IMXRT_SRC.offset020)
  4945. #define SRC_GPR2 (IMXRT_SRC.offset024)
  4946. #define SRC_GPR3 (IMXRT_SRC.offset028)
  4947. #define SRC_GPR4 (IMXRT_SRC.offset02C)
  4948. #define SRC_GPR5 (IMXRT_SRC.offset030)
  4949. #define SRC_GPR6 (IMXRT_SRC.offset034)
  4950. #define SRC_GPR7 (IMXRT_SRC.offset038)
  4951. #define SRC_GPR8 (IMXRT_SRC.offset03C)
  4952. #define SRC_GPR9 (IMXRT_SRC.offset040)
  4953. #define SRC_GPR10 (IMXRT_SRC.offset044)
  4954. // page 3554
  4955. #define IMXRT_TSC (*(IMXRT_REGISTER32_t *)0x400E0000)
  4956. #define TSC_BASIC_SETTING (IMXRT_TSC.offset000)
  4957. #define TSC_PS_INPUT_BUFFER_ADDR (IMXRT_TSC.offset010)
  4958. #define TSC_FLOW_CONTROL (IMXRT_TSC.offset020)
  4959. #define TSC_MEASEURE_VALUE (IMXRT_TSC.offset030)
  4960. #define TSC_INT_EN (IMXRT_TSC.offset040)
  4961. #define TSC_INT_SIG_EN (IMXRT_TSC.offset050)
  4962. #define TSC_INT_STATUS (IMXRT_TSC.offset060)
  4963. #define TSC_DEBUG_MODE (IMXRT_TSC.offset070)
  4964. #define TSC_DEBUG_MODE2 (IMXRT_TSC.offset080)
  4965. // page 3575
  4966. #define IMXRT_USB1 (*(IMXRT_REGISTER32_t *)0x402E0000)
  4967. #define USB1_ID (IMXRT_USB1.offset000)
  4968. #define USB1_HWGENERAL (IMXRT_USB1.offset004)
  4969. #define USB1_HWHOST (IMXRT_USB1.offset008)
  4970. #define USB1_HWDEVICE (IMXRT_USB1.offset00C)
  4971. #define USB1_HWTXBUF (IMXRT_USB1.offset010)
  4972. #define USB1_HWRXBUF (IMXRT_USB1.offset014)
  4973. #define USB1_GPTIMER0LD (IMXRT_USB1.offset080)
  4974. #define USB1_GPTIMER0CTRL (IMXRT_USB1.offset084)
  4975. #define USB1_GPTIMER1LD (IMXRT_USB1.offset088)
  4976. #define USB1_GPTIMER1CTRL (IMXRT_USB1.offset08C)
  4977. #define USB1_SBUSCFG (IMXRT_USB1.offset090)
  4978. #define USB1_HCIVERSION (IMXRT_USB1.offset100)
  4979. #define USB1_HCSPARAMS (IMXRT_USB1.offset104)
  4980. #define USB1_HCCPARAMS (IMXRT_USB1.offset108)
  4981. #define USB1_DCIVERSION (IMXRT_USB1.offset120)
  4982. #define USB1_DCCPARAMS (IMXRT_USB1.offset124)
  4983. #define USB1_USBCMD (IMXRT_USB1.offset140)
  4984. #define USB1_USBSTS (IMXRT_USB1.offset144)
  4985. #define USB1_USBINTR (IMXRT_USB1.offset148)
  4986. #define USB1_FRINDEX (IMXRT_USB1.offset14C)
  4987. #define USB1_PERIODICLISTBASE (IMXRT_USB1.offset154)
  4988. #define USB1_DEVICEADDR (IMXRT_USB1.offset154)
  4989. #define USB1_ASYNCLISTADDR (IMXRT_USB1.offset158)
  4990. #define USB1_ENDPOINTLISTADDR (IMXRT_USB1.offset158)
  4991. #define USB1_BURSTSIZE (IMXRT_USB1.offset160)
  4992. #define USB1_TXFILLTUNING (IMXRT_USB1.offset164)
  4993. #define USB1_ENDPTNAK (IMXRT_USB1.offset178)
  4994. #define USB1_ENDPTNAKEN (IMXRT_USB1.offset17C)
  4995. #define USB1_CONFIGFLAG (IMXRT_USB1.offset180)
  4996. #define USB1_PORTSC1 (IMXRT_USB1.offset184)
  4997. #define USB1_OTGSC (IMXRT_USB1.offset1A4)
  4998. #define USB1_USBMODE (IMXRT_USB1.offset1A8)
  4999. #define USB1_ENDPTSETUPSTAT (IMXRT_USB1.offset1AC)
  5000. #define USB1_ENDPTPRIME (IMXRT_USB1.offset1B0)
  5001. #define USB1_ENDPTFLUSH (IMXRT_USB1.offset1B4)
  5002. #define USB1_ENDPTSTATUS (IMXRT_USB1.offset1B8)
  5003. #define USB1_ENDPTCOMPLETE (IMXRT_USB1.offset1BC)
  5004. #define USB1_ENDPTCTRL0 (IMXRT_USB1.offset1C0)
  5005. #define USB1_ENDPTCTRL1 (IMXRT_USB1.offset1C4)
  5006. #define USB1_ENDPTCTRL2 (IMXRT_USB1.offset1C8)
  5007. #define USB1_ENDPTCTRL3 (IMXRT_USB1.offset1CC)
  5008. #define USB1_ENDPTCTRL4 (IMXRT_USB1.offset1D0)
  5009. #define USB1_ENDPTCTRL5 (IMXRT_USB1.offset1D4)
  5010. #define USB1_ENDPTCTRL6 (IMXRT_USB1.offset1D8)
  5011. #define USB1_ENDPTCTRL7 (IMXRT_USB1.offset1DC)
  5012. #define IMXRT_USB2 (*(IMXRT_REGISTER32_t *)0x402DC000)
  5013. #define USB2_ID (IMXRT_USB2.offset000)
  5014. #define USB2_HWGENERAL (IMXRT_USB2.offset004)
  5015. #define USB2_HWHOST (IMXRT_USB2.offset008)
  5016. #define USB2_HWDEVICE (IMXRT_USB2.offset00C)
  5017. #define USB2_HWTXBUF (IMXRT_USB2.offset010)
  5018. #define USB2_HWRXBUF (IMXRT_USB2.offset014)
  5019. #define USB2_GPTIMER0LD (IMXRT_USB2.offset080)
  5020. #define USB2_GPTIMER0CTRL (IMXRT_USB2.offset084)
  5021. #define USB2_GPTIMER1LD (IMXRT_USB2.offset088)
  5022. #define USB2_GPTIMER1CTRL (IMXRT_USB2.offset08C)
  5023. #define USB2_SBUSCFG (IMXRT_USB2.offset090)
  5024. #define USB2_HCIVERSION (IMXRT_USB2.offset100)
  5025. #define USB2_HCSPARAMS (IMXRT_USB2.offset104)
  5026. #define USB2_HCCPARAMS (IMXRT_USB2.offset108)
  5027. #define USB2_DCIVERSION (IMXRT_USB2.offset120)
  5028. #define USB2_DCCPARAMS (IMXRT_USB2.offset124)
  5029. #define USB2_USBCMD (IMXRT_USB2.offset140)
  5030. #define USB2_USBSTS (IMXRT_USB2.offset144)
  5031. #define USB2_USBINTR (IMXRT_USB2.offset148)
  5032. #define USB2_FRINDEX (IMXRT_USB2.offset14C)
  5033. #define USB2_PERIODICLISTBASE (IMXRT_USB2.offset154)
  5034. #define USB2_DEVICEADDR (IMXRT_USB2.offset154)
  5035. #define USB2_ASYNCLISTADDR (IMXRT_USB2.offset158)
  5036. #define USB2_ENDPOINTLISTADDR (IMXRT_USB2.offset158)
  5037. #define USB2_BURSTSIZE (IMXRT_USB2.offset160)
  5038. #define USB2_TXFILLTUNING (IMXRT_USB2.offset164)
  5039. #define USB2_ENDPTNAK (IMXRT_USB2.offset178)
  5040. #define USB2_ENDPTNAKEN (IMXRT_USB2.offset17C)
  5041. #define USB2_CONFIGFLAG (IMXRT_USB2.offset180)
  5042. #define USB2_PORTSC1 (IMXRT_USB2.offset184)
  5043. #define USB2_OTGSC (IMXRT_USB2.offset1A4)
  5044. #define USB2_USBMODE (IMXRT_USB2.offset1A8)
  5045. #define USB2_ENDPTSETUPSTAT (IMXRT_USB2.offset1AC)
  5046. #define USB2_ENDPTPRIME (IMXRT_USB2.offset1B0)
  5047. #define USB2_ENDPTFLUSH (IMXRT_USB2.offset1B4)
  5048. #define USB2_ENDPTSTATUS (IMXRT_USB2.offset1B8)
  5049. #define USB2_ENDPTCOMPLETE (IMXRT_USB2.offset1BC)
  5050. #define USB2_ENDPTCTRL0 (IMXRT_USB2.offset1C0)
  5051. #define USB2_ENDPTCTRL1 (IMXRT_USB2.offset1C4)
  5052. #define USB2_ENDPTCTRL2 (IMXRT_USB2.offset1C8)
  5053. #define USB2_ENDPTCTRL3 (IMXRT_USB2.offset1CC)
  5054. #define USB2_ENDPTCTRL4 (IMXRT_USB2.offset1D0)
  5055. #define USB2_ENDPTCTRL5 (IMXRT_USB2.offset1D4)
  5056. #define USB2_ENDPTCTRL6 (IMXRT_USB2.offset1D8)
  5057. #define USB2_ENDPTCTRL7 (IMXRT_USB2.offset1DC)
  5058. // page 3835
  5059. #define IMXRT_USBPHY1 (*(IMXRT_REGISTER32_t *)0x400D9000)
  5060. #define USBPHY1_PWD (IMXRT_USBPHY1.offset000)
  5061. #define USBPHY1_PWD_SET (IMXRT_USBPHY1.offset004)
  5062. #define USBPHY1_PWD_CLR (IMXRT_USBPHY1.offset008)
  5063. #define USBPHY1_PWD_TOG (IMXRT_USBPHY1.offset00C)
  5064. #define USBPHY1_TX (IMXRT_USBPHY1.offset010)
  5065. #define USBPHY1_TX_SET (IMXRT_USBPHY1.offset014)
  5066. #define USBPHY1_TX_CLR (IMXRT_USBPHY1.offset018)
  5067. #define USBPHY1_TX_TOG (IMXRT_USBPHY1.offset01C)
  5068. #define USBPHY1_RX (IMXRT_USBPHY1.offset020)
  5069. #define USBPHY1_RX_SET (IMXRT_USBPHY1.offset024)
  5070. #define USBPHY1_RX_CLR (IMXRT_USBPHY1.offset028)
  5071. #define USBPHY1_RX_TOG (IMXRT_USBPHY1.offset02C)
  5072. #define USBPHY1_CTRL (IMXRT_USBPHY1.offset030)
  5073. #define USBPHY1_CTRL_SET (IMXRT_USBPHY1.offset034)
  5074. #define USBPHY1_CTRL_CLR (IMXRT_USBPHY1.offset038)
  5075. #define USBPHY1_CTRL_TOG (IMXRT_USBPHY1.offset03C)
  5076. #define USBPHY1_STATUS (IMXRT_USBPHY1.offset040)
  5077. #define USBPHY1_DEBUG (IMXRT_USBPHY1.offset050)
  5078. #define USBPHY1_DEBUG_SET (IMXRT_USBPHY1.offset054)
  5079. #define USBPHY1_DEBUG_CLR (IMXRT_USBPHY1.offset058)
  5080. #define USBPHY1_DEBUG_TOG (IMXRT_USBPHY1.offset05C)
  5081. #define USBPHY1_DEBUG0_STATUS (IMXRT_USBPHY1.offset060)
  5082. #define USBPHY1_DEBUG1 (IMXRT_USBPHY1.offset070)
  5083. #define USBPHY1_DEBUG1_SET (IMXRT_USBPHY1.offset074)
  5084. #define USBPHY1_DEBUG1_CLR (IMXRT_USBPHY1.offset078)
  5085. #define USBPHY1_DEBUG1_TOG (IMXRT_USBPHY1.offset07C)
  5086. #define USBPHY1_VERSION (IMXRT_USBPHY1.offset080)
  5087. #define IMXRT_USBPHY2 (*(IMXRT_REGISTER32_t *)0x400DA000)
  5088. #define USBPHY2_PWD (IMXRT_USBPHY2.offset000)
  5089. #define USBPHY2_PWD_SET (IMXRT_USBPHY2.offset004)
  5090. #define USBPHY2_PWD_CLR (IMXRT_USBPHY2.offset008)
  5091. #define USBPHY2_PWD_TOG (IMXRT_USBPHY2.offset00C)
  5092. #define USBPHY2_TX (IMXRT_USBPHY2.offset010)
  5093. #define USBPHY2_TX_SET (IMXRT_USBPHY2.offset014)
  5094. #define USBPHY2_TX_CLR (IMXRT_USBPHY2.offset018)
  5095. #define USBPHY2_TX_TOG (IMXRT_USBPHY2.offset01C)
  5096. #define USBPHY2_RX (IMXRT_USBPHY2.offset020)
  5097. #define USBPHY2_RX_SET (IMXRT_USBPHY2.offset024)
  5098. #define USBPHY2_RX_CLR (IMXRT_USBPHY2.offset028)
  5099. #define USBPHY2_RX_TOG (IMXRT_USBPHY2.offset02C)
  5100. #define USBPHY2_CTRL (IMXRT_USBPHY2.offset030)
  5101. #define USBPHY2_CTRL_SET (IMXRT_USBPHY2.offset034)
  5102. #define USBPHY2_CTRL_CLR (IMXRT_USBPHY2.offset038)
  5103. #define USBPHY2_CTRL_TOG (IMXRT_USBPHY2.offset03C)
  5104. #define USBPHY2_STATUS (IMXRT_USBPHY2.offset040)
  5105. #define USBPHY2_DEBUG (IMXRT_USBPHY2.offset050)
  5106. #define USBPHY2_DEBUG_SET (IMXRT_USBPHY2.offset054)
  5107. #define USBPHY2_DEBUG_CLR (IMXRT_USBPHY2.offset058)
  5108. #define USBPHY2_DEBUG_TOG (IMXRT_USBPHY2.offset05C)
  5109. #define USBPHY2_DEBUG0_STATUS (IMXRT_USBPHY2.offset060)
  5110. #define USBPHY2_DEBUG1 (IMXRT_USBPHY2.offset070)
  5111. #define USBPHY2_DEBUG1_SET (IMXRT_USBPHY2.offset074)
  5112. #define USBPHY2_DEBUG1_CLR (IMXRT_USBPHY2.offset078)
  5113. #define USBPHY2_DEBUG1_TOG (IMXRT_USBPHY2.offset07C)
  5114. #define USBPHY2_VERSION (IMXRT_USBPHY2.offset080)
  5115. // page 3926
  5116. #define IMXRT_USDHC1 (*(IMXRT_REGISTER32_t *)0x402C0000)
  5117. #define USDHC1_DS_ADDR (IMXRT_USDHC1.offset000)
  5118. #define USDHC1_BLK_ATT (IMXRT_USDHC1.offset004)
  5119. #define USDHC1_CMD_ARG (IMXRT_USDHC1.offset008)
  5120. #define USDHC1_CMD_XFR_TYP (IMXRT_USDHC1.offset00C)
  5121. #define USDHC1_CMD_RSP0 (IMXRT_USDHC1.offset010)
  5122. #define USDHC1_CMD_RSP1 (IMXRT_USDHC1.offset014)
  5123. #define USDHC1_CMD_RSP2 (IMXRT_USDHC1.offset018)
  5124. #define USDHC1_CMD_RSP3 (IMXRT_USDHC1.offset01C)
  5125. #define USDHC1_DATA_BUFF_ACC_PORT (IMXRT_USDHC1.offset020)
  5126. #define USDHC1_PRES_STATE (IMXRT_USDHC1.offset024)
  5127. #define USDHC1_PROT_CTRL (IMXRT_USDHC1.offset028)
  5128. #define USDHC1_SYS_CTRL (IMXRT_USDHC1.offset02C)
  5129. #define USDHC1_INT_STATUS (IMXRT_USDHC1.offset030)
  5130. #define USDHC1_INT_STATUS_EN (IMXRT_USDHC1.offset034)
  5131. #define USDHC1_INT_SIGNAL_EN (IMXRT_USDHC1.offset038)
  5132. #define USDHC1_AUTOCMD12_ERR_STATUS (IMXRT_USDHC1.offset03C)
  5133. #define USDHC1_HOST_CTRL_CAP (IMXRT_USDHC1.offset040)
  5134. #define USDHC1_WTMK_LVL (IMXRT_USDHC1.offset044)
  5135. #define USDHC1_MIX_CTRL (IMXRT_USDHC1.offset048)
  5136. #define USDHC1_FORCE_EVENT (IMXRT_USDHC1.offset050)
  5137. #define USDHC1_ADMA_ERR_STATUS (IMXRT_USDHC1.offset054)
  5138. #define USDHC1_ADMA_SYS_ADDR (IMXRT_USDHC1.offset058)
  5139. #define USDHC1_DLL_CTRL (IMXRT_USDHC1.offset060)
  5140. #define USDHC1_DLL_STATUS (IMXRT_USDHC1.offset064)
  5141. #define USDHC1_CLK_TUNE_CTRL_STATUS (IMXRT_USDHC1.offset068)
  5142. #define USDHC1_VEND_SPEC (IMXRT_USDHC1.offset0C0)
  5143. #define USDHC1_MMC_BOOT (IMXRT_USDHC1.offset0C4)
  5144. #define USDHC1_VEND_SPEC2 (IMXRT_USDHC1.offset0C8)
  5145. #define USDHC1_TUNING_CTRL (IMXRT_USDHC1.offset0CC)
  5146. #define IMXRT_USDHC2 (*(IMXRT_REGISTER32_t *)0x402C4000)
  5147. #define USDHC2_DS_ADDR (IMXRT_USDHC2.offset000)
  5148. #define USDHC2_BLK_ATT (IMXRT_USDHC2.offset004)
  5149. #define USDHC2_CMD_ARG (IMXRT_USDHC2.offset008)
  5150. #define USDHC2_CMD_XFR_TYP (IMXRT_USDHC2.offset00C)
  5151. #define USDHC2_CMD_RSP0 (IMXRT_USDHC2.offset010)
  5152. #define USDHC2_CMD_RSP1 (IMXRT_USDHC2.offset014)
  5153. #define USDHC2_CMD_RSP2 (IMXRT_USDHC2.offset018)
  5154. #define USDHC2_CMD_RSP3 (IMXRT_USDHC2.offset01C)
  5155. #define USDHC2_DATA_BUFF_ACC_PORT (IMXRT_USDHC2.offset020)
  5156. #define USDHC2_PRES_STATE (IMXRT_USDHC2.offset024)
  5157. #define USDHC2_PROT_CTRL (IMXRT_USDHC2.offset028)
  5158. #define USDHC2_SYS_CTRL (IMXRT_USDHC2.offset02C)
  5159. #define USDHC2_INT_STATUS (IMXRT_USDHC2.offset030)
  5160. #define USDHC2_INT_STATUS_EN (IMXRT_USDHC2.offset034)
  5161. #define USDHC2_INT_SIGNAL_EN (IMXRT_USDHC2.offset038)
  5162. #define USDHC2_AUTOCMD12_ERR_STATUS (IMXRT_USDHC2.offset03C)
  5163. #define USDHC2_HOST_CTRL_CAP (IMXRT_USDHC2.offset040)
  5164. #define USDHC2_WTMK_LVL (IMXRT_USDHC2.offset044)
  5165. #define USDHC2_MIX_CTRL (IMXRT_USDHC2.offset048)
  5166. #define USDHC2_FORCE_EVENT (IMXRT_USDHC2.offset050)
  5167. #define USDHC2_ADMA_ERR_STATUS (IMXRT_USDHC2.offset054)
  5168. #define USDHC2_ADMA_SYS_ADDR (IMXRT_USDHC2.offset058)
  5169. #define USDHC2_DLL_CTRL (IMXRT_USDHC2.offset060)
  5170. #define USDHC2_DLL_STATUS (IMXRT_USDHC2.offset064)
  5171. #define USDHC2_CLK_TUNE_CTRL_STATUS (IMXRT_USDHC2.offset068)
  5172. #define USDHC2_VEND_SPEC (IMXRT_USDHC2.offset0C0)
  5173. #define USDHC2_MMC_BOOT (IMXRT_USDHC2.offset0C4)
  5174. #define USDHC2_VEND_SPEC2 (IMXRT_USDHC2.offset0C8)
  5175. #define USDHC2_TUNING_CTRL (IMXRT_USDHC2.offset0CC)
  5176. // page 4009
  5177. #define IMXRT_WDOG1 (*(IMXRT_REGISTER16_t *)0x400B8000)
  5178. #define WDOG1_WCR (IMXRT_WDOG1.offset000)
  5179. #define WDOG1_WSR (IMXRT_WDOG1.offset002)
  5180. #define WDOG1_WRSR (IMXRT_WDOG1.offset004)
  5181. #define WDOG1_WICR (IMXRT_WDOG1.offset006)
  5182. #define WDOG1_WMCR (IMXRT_WDOG1.offset008)
  5183. #define IMXRT_WDOG2 (*(IMXRT_REGISTER16_t *)0x400D0000)
  5184. #define WDOG2_WCR (IMXRT_WDOG2.offset000)
  5185. #define WDOG2_WSR (IMXRT_WDOG2.offset002)
  5186. #define WDOG2_WRSR (IMXRT_WDOG2.offset004)
  5187. #define WDOG2_WICR (IMXRT_WDOG2.offset006)
  5188. #define WDOG2_WMCR (IMXRT_WDOG2.offset008)
  5189. // page 4017
  5190. #define IMXRT_WDOG3 (*(IMXRT_REGISTER32_t *)0x400BC000)
  5191. #define WDOG3_CS (IMXRT_WDOG3.offset000)
  5192. #define WDOG3_CNT (IMXRT_WDOG3.offset004)
  5193. #define WDOG3_TOVAL (IMXRT_WDOG3.offset008)
  5194. #define WDOG3_WIN (IMXRT_WDOG3.offset00C)
  5195. // page 4036
  5196. #define IMXRT_XBARA1 (*(IMXRT_REGISTER16_t *)0x403BC000)
  5197. #define XBARA1_SEL0 (IMXRT_XBARA1.offset000)
  5198. #define XBARA1_SEL1 (IMXRT_XBARA1.offset002)
  5199. #define XBARA1_SEL2 (IMXRT_XBARA1.offset004)
  5200. #define XBARA1_SEL3 (IMXRT_XBARA1.offset006)
  5201. #define XBARA1_SEL4 (IMXRT_XBARA1.offset008)
  5202. #define XBARA1_SEL5 (IMXRT_XBARA1.offset00A)
  5203. #define XBARA1_SEL6 (IMXRT_XBARA1.offset00C)
  5204. #define XBARA1_SEL7 (IMXRT_XBARA1.offset00E)
  5205. #define XBARA1_SEL8 (IMXRT_XBARA1.offset010)
  5206. #define XBARA1_SEL9 (IMXRT_XBARA1.offset012)
  5207. #define XBARA1_SEL10 (IMXRT_XBARA1.offset014)
  5208. #define XBARA1_SEL11 (IMXRT_XBARA1.offset016)
  5209. #define XBARA1_SEL12 (IMXRT_XBARA1.offset018)
  5210. #define XBARA1_SEL13 (IMXRT_XBARA1.offset01A)
  5211. #define XBARA1_SEL14 (IMXRT_XBARA1.offset01C)
  5212. #define XBARA1_SEL15 (IMXRT_XBARA1.offset01E)
  5213. #define XBARA1_SEL16 (IMXRT_XBARA1.offset020)
  5214. #define XBARA1_SEL17 (IMXRT_XBARA1.offset022)
  5215. #define XBARA1_SEL18 (IMXRT_XBARA1.offset024)
  5216. #define XBARA1_SEL19 (IMXRT_XBARA1.offset026)
  5217. #define XBARA1_SEL20 (IMXRT_XBARA1.offset028)
  5218. #define XBARA1_SEL21 (IMXRT_XBARA1.offset02A)
  5219. #define XBARA1_SEL22 (IMXRT_XBARA1.offset02C)
  5220. #define XBARA1_SEL23 (IMXRT_XBARA1.offset02E)
  5221. #define XBARA1_SEL24 (IMXRT_XBARA1.offset030)
  5222. #define XBARA1_SEL25 (IMXRT_XBARA1.offset032)
  5223. #define XBARA1_SEL26 (IMXRT_XBARA1.offset034)
  5224. #define XBARA1_SEL27 (IMXRT_XBARA1.offset036)
  5225. #define XBARA1_SEL28 (IMXRT_XBARA1.offset038)
  5226. #define XBARA1_SEL29 (IMXRT_XBARA1.offset03A)
  5227. #define XBARA1_CTRL0 (IMXRT_XBARA1.offset03C)
  5228. #define XBARA1_CTRL1 (IMXRT_XBARA1.offset03E)
  5229. // page 4059
  5230. #define IMXRT_XBARB2 (*(IMXRT_REGISTER16_t *)0x403C0000)
  5231. #define XBARB2_SEL0 (IMXRT_XBARB2.offset000)
  5232. #define XBARB2_SEL1 (IMXRT_XBARB2.offset002)
  5233. #define XBARB2_SEL2 (IMXRT_XBARB2.offset004)
  5234. #define XBARB2_SEL3 (IMXRT_XBARB2.offset006)
  5235. #define XBARB2_SEL4 (IMXRT_XBARB2.offset008)
  5236. #define XBARB2_SEL5 (IMXRT_XBARB2.offset00A)
  5237. #define XBARB2_SEL6 (IMXRT_XBARB2.offset00C)
  5238. #define XBARB2_SEL7 (IMXRT_XBARB2.offset00E)
  5239. #define IMXRT_XBARB3 (*(IMXRT_REGISTER16_t *)0x403C4000)
  5240. #define XBARB3_SEL0 (IMXRT_XBARB3.offset000)
  5241. #define XBARB3_SEL1 (IMXRT_XBARB3.offset002)
  5242. #define XBARB3_SEL2 (IMXRT_XBARB3.offset004)
  5243. #define XBARB3_SEL3 (IMXRT_XBARB3.offset006)
  5244. #define XBARB3_SEL4 (IMXRT_XBARB3.offset008)
  5245. #define XBARB3_SEL5 (IMXRT_XBARB3.offset00A)
  5246. #define XBARB3_SEL6 (IMXRT_XBARB3.offset00C)
  5247. #define XBARB3_SEL7 (IMXRT_XBARB3.offset00E)
  5248. // page 4069
  5249. #define IMXRT_XTALOSC24M (*(IMXRT_REGISTER32_t *)0x400D8000)
  5250. #define XTALOSC24M_MISC0 (IMXRT_XTALOSC24M.offset150)
  5251. #define XTALOSC24M_LOWPWR_CTRL (IMXRT_XTALOSC24M.offset270)
  5252. #define XTALOSC24M_LOWPWR_CTRL_SET (IMXRT_XTALOSC24M.offset274)
  5253. #define XTALOSC24M_LOWPWR_CTRL_CLR (IMXRT_XTALOSC24M.offset278)
  5254. #define XTALOSC24M_LOWPWR_CTRL_TOG (IMXRT_XTALOSC24M.offset27C)
  5255. #define XTALOSC24M_OSC_CONFIG0 (IMXRT_XTALOSC24M.offset2A0)
  5256. #define XTALOSC24M_OSC_CONFIG0_SET (IMXRT_XTALOSC24M.offset2A4)
  5257. #define XTALOSC24M_OSC_CONFIG0_CLR (IMXRT_XTALOSC24M.offset2A8)
  5258. #define XTALOSC24M_OSC_CONFIG0_TOG (IMXRT_XTALOSC24M.offset2AC)
  5259. #define XTALOSC24M_OSC_CONFIG1 (IMXRT_XTALOSC24M.offset2B0)
  5260. #define XTALOSC24M_OSC_CONFIG1_SET (IMXRT_XTALOSC24M.offset2B4)
  5261. #define XTALOSC24M_OSC_CONFIG1_CLR (IMXRT_XTALOSC24M.offset2B8)
  5262. #define XTALOSC24M_OSC_CONFIG1_TOG (IMXRT_XTALOSC24M.offset2BC)
  5263. #define XTALOSC24M_OSC_CONFIG2 (IMXRT_XTALOSC24M.offset2C0)
  5264. #define XTALOSC24M_OSC_CONFIG2_SET (IMXRT_XTALOSC24M.offset2C4)
  5265. #define XTALOSC24M_OSC_CONFIG2_CLR (IMXRT_XTALOSC24M.offset2C8)
  5266. #define XTALOSC24M_OSC_CONFIG2_TOG (IMXRT_XTALOSC24M.offset2CC)